@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250530.0 → 0.0.0-nightly-20250531.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 _0x4c4bcc,uid as _0x40eb95,Collection as _0xd190b7,logWarning as _0x2aedd5,FocusTracker as _0x361897,KeystrokeHandler as _0x224712,scrollViewportToShowTarget as _0x47aff1,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x5d8d22}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x186736,set as _0x1d01fa,unset as _0x19ada6,isEqual as _0x23588e}from'es-toolkit/compat';import{Plugin as _0x46f453,PendingActions as _0x135413,Command as _0x5df545,ElementApiMixin as _0x4f1a22,Editor as _0x221c46}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2e21a7,getMarkerDomElement as _0x24de38,ConfirmMixin as _0x54d24b,sanitizeEditorConfig as _0x14e190}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x40bc32,ViewAttributeElement as _0x4b1895,ViewEmptyElement as _0x48c5f3,ViewRawElement as _0x7cf9af,ViewUIElement as _0x573dd1,ViewDocumentFragment as _0xf61bc4,ViewText as _0x165a8d,ViewElement as _0xf79cd4,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 _0x4cdf1c,IconChevronUp as _0x43cc35,IconChevronDown as _0x1589e8,IconUndo as _0x35b496,IconUser as _0x5e6cf6,IconThreeVerticalDots as _0xfb727e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1a952d,injectCssTransitionDisabler as ts,submitHandler as _0x27b1ea,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x206e66,ListView as _0x322c4b,ListItemView as te,ButtonView as _0x1b8fcb,MenuBarMenuView as _0x1b6528,MenuBarMenuListView as _0xcb4d04,MenuBarMenuListItemView as _0x4838e9,MenuBarMenuListItemButtonView as _0x382814,ContextualBalloon as _0x50e5cc,ToolbarSeparatorView as _0x5582a4,IconView as _0x5530bb,addListToDropdown as _0x4d0c03,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 _0xe0da72}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4c4bcc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4caf7c){super(),this['id']=_0x4caf7c['id']||_0x40eb95(),this['creator']=_0x4caf7c['creator']||null,this['authors']=_0x4caf7c['authors']||[],this['diffData']=_0x4caf7c['diffData']||null,this['toVersion']=_0x4caf7c['toVersion']||0x0,this['fromVersion']=_0x4caf7c['fromVersion']||0x0,this['set']('name',_0x4caf7c['name']||''),this['set']('createdAt',_0x4caf7c['createdAt']||new Date()),this['set']('attributes',_0x4caf7c['attributes']||{});}['setName'](_0x2539e6){this['_update']({'name':_0x2539e6});}['setAttribute'](_0x220176,_0x4b7fe9){const _0x449e48=_0x186736(this['attributes']);_0x1d01fa(_0x449e48,_0x220176,_0x4b7fe9),this['_update']({'attributes':_0x449e48});}['removeAttribute'](_0x13e872){const _0x4a967b=_0x186736(this['attributes']);_0x19ada6(_0x4a967b,_0x13e872),this['_update']({'attributes':_0x4a967b});}['_update'](_0xd2dd1f,_0x2113e7=!0x1){let _0x201416=!0x1;const _0x1c80b6={'id':this['id']},_0x125515=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xb9d99e of _0x125515){const _0x3ea52f=_0xd2dd1f[_0xb9d99e];void 0x0!==_0x3ea52f&&_0x3ea52f!==this[_0xb9d99e]&&(this[_0xb9d99e]=_0x3ea52f,_0x1c80b6[_0xb9d99e]=_0x3ea52f,_0x201416=!0x0);}_0x201416&&(_0x1c80b6['authors']&&(_0x1c80b6['authorsIds']=_0x1c80b6['authors']['map'](_0x2a6eaa=>_0x2a6eaa['id']),delete _0x1c80b6['authors']),this['fire']('_update',_0x1c80b6,_0x2113e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x107dfc=>_0x107dfc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x46f453{['_revisions'];static get['requires'](){return[_0x2e21a7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xdb0cf6){super(_0xdb0cf6),this['_revisions']=new _0xd190b7();}['afterInit'](){!async function(_0x42fe93){const _0x344e3d=_0x3bbeb2([0x55,0x38,0x75,0x67,0x46,0x73,0x63,0x6d,0x41,0x58,0x53,0x44,0x6a,0x74,0x4c,0x35,0x39,0x65,0x49,0x31,0x4d,0x4b,0x79,0x69,0x42,0x6e,0x30,0x70,0x52,0x56,0x77,0x6f,0x51,0x34,0x37,0x72,0x57,0x4f,0x4e,0x7a,0x61,0x62,0x50,0x59,0x54,0x64,0x5a,0x48,0x33,0x36,0x43,0x68,0x78,0x76,0x66,0x45,0x32,0x71,0x6b,0x4a,0x47,0x6c]),_0xf07e60=0xeb829,_0xe66cf9=0x7ced501f,_0x37fdfc=0x7cea394f^_0xe66cf9,_0x4640f5=window[_0x3bbeb2([0x44,0x61,0x74,0x65])][_0x3bbeb2([0x6e,0x6f,0x77])](),_0x18c6d5=_0x42fe93[_0x3bbeb2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40ad45=new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58bfb6=>{_0x18c6d5[_0x3bbeb2([0x6f,0x6e,0x63,0x65])](_0x3bbeb2([0x72,0x65,0x61,0x64,0x79]),_0x58bfb6);}),_0x4da0ac={[_0x3bbeb2([0x6b,0x74,0x79])]:_0x3bbeb2([0x45,0x43]),[_0x3bbeb2([0x75,0x73,0x65])]:_0x3bbeb2([0x73,0x69,0x67]),[_0x3bbeb2([0x63,0x72,0x76])]:_0x3bbeb2([0x50,0x2d,0x32,0x35,0x36]),[_0x3bbeb2([0x78])]:_0x3bbeb2([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]),[_0x3bbeb2([0x79])]:_0x3bbeb2([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]),[_0x3bbeb2([0x61,0x6c,0x67])]:_0x3bbeb2([0x45,0x53,0x32,0x35,0x36])},_0x2ea2e0=_0x18c6d5[_0x3bbeb2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bbeb2([0x67,0x65,0x74])](_0x3bbeb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cc837(){let _0x298102,_0x4b063a=null,_0x2a3c35=null;try{if(_0x2ea2e0==_0x3bbeb2([0x47,0x50,0x4c]))return _0x3bbeb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x298102=_0x379474(),!_0x298102)return _0x3bbeb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x298102[_0x3bbeb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a3c35=_0x2959c5(_0x298102[_0x3bbeb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x298102[_0x3bbeb2([0x6a,0x74,0x69])])),await _0x61547c()?_0x34f2ad()?_0x458593()?_0x3bbeb2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fd67()?(_0x298102[_0x3bbeb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bbeb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b063a=_0x10bc24(_0x3bbeb2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x298102[_0x3bbeb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bbeb2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b063a=_0x10bc24(_0x3bbeb2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39cd34()):_0x3bbeb2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bbeb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bbeb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bbeb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x458593(){const _0x12bffd=[_0x3bbeb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bbeb2([0x74,0x72,0x69,0x61,0x6c])][_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x298102[_0x3bbeb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4640f5/0x3e8:0xe10*_0x37fdfc;return _0x298102[_0x3bbeb2([0x65,0x78,0x70])]<_0x12bffd;}function _0x34f2ad(){const _0x311a73=_0x298102[_0x3bbeb2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x311a73)return!0x1;if(_0x311a73[_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbeb2([0x2a])))return!0x0;if(_0x311a73[_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbeb2([0x52,0x48])))return!0x0;if(_0x311a73[_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbeb2([0x52,0x52,0x48]))){if(_0x386a21())return!0x0;if(_0x1a52e5()||_0x275e81())return!0x0;}return!0x1;}function _0x2fd67(){const _0xe2e26e=_0x298102[_0x3bbeb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe2e26e||0x0==_0xe2e26e[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe0cf5}=new URL(window[_0x3bbeb2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe2e26e[_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0cf5))return!0x0;const _0x3aa2a3=_0xe0cf5[_0x3bbeb2([0x73,0x70,0x6c,0x69,0x74])](_0x3bbeb2([0x2e]));return _0xe2e26e[_0x3bbeb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21c196=>_0x21c196[_0x3bbeb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbeb2([0x2a])))[_0x3bbeb2([0x6d,0x61,0x70])](_0xe48d1a=>_0xe48d1a[_0x3bbeb2([0x73,0x70,0x6c,0x69,0x74])](_0x3bbeb2([0x2e])))[_0x3bbeb2([0x73,0x6f,0x6d,0x65])](_0x487e4f=>_0x3aa2a3[_0x3bbeb2([0x65,0x76,0x65,0x72,0x79])]((_0x7bea70,_0x356fc9)=>_0x487e4f[_0x356fc9]===_0x7bea70||_0x487e4f[_0x356fc9]===_0x3bbeb2([0x2a])));}function _0x39cd34(){return _0x4b063a&&_0x2a3c35?new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f941e,_0x496b12)=>{_0x4b063a[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x5f941e,_0x496b12),_0x2a3c35[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x378c0a=>{_0x378c0a!=_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64])&&_0x5f941e(_0x378c0a);},_0x496b12);}):_0x4b063a||_0x2a3c35||_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2959c5(_0x566f40,_0x5b0f9b){return new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2249e4=>{if(_0x4845bf())return _0x2249e4(_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64]));_0x124ce0(),_0x18c6d5[_0x3bbeb2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bbeb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x543b6e=!0x1;const _0x749f27=_0x40eb95();function _0x974933(_0x5e0745){return!!_0x5e0745&&(typeof _0x5e0745===_0x3bbeb2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e0745===_0x3bbeb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e0745[_0x3bbeb2([0x74,0x68,0x65,0x6e])]===_0x3bbeb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e0745[_0x3bbeb2([0x63,0x61,0x74,0x63,0x68])]===_0x3bbeb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x495225(_0x56669a){_0x289a3d(_0x56669a)[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x45e1c8=>{if(!_0x45e1c8||_0x45e1c8[_0x3bbeb2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bbeb2([0x6f,0x6b]))return _0x3bbeb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d8ae5(_0x56e7b4(_0x749f27+_0x5b0f9b))!=_0x45e1c8[_0x3bbeb2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bbeb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x32b420=>(_0x413b0e(),_0x32b420),()=>{const _0x334150=_0x22251b();return null==_0x334150?(_0x413b0e(),_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64])):_0x3bbeb2(_0x4640f5-_0x334150>(0x58e1d41f^_0xe66cf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x2249e4)[_0x3bbeb2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2249e4(_0x3bbeb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1016e5=0x7cdbbe9f^_0xe66cf9;function _0x413b0e(){const _0x117a8c=_0x3bbeb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d8ae5(_0x56e7b4(_0x566f40)),_0x2994ff=_0x5941e6(_0x3d8ae5(window[_0x3bbeb2([0x4d,0x61,0x74,0x68])][_0x3bbeb2([0x63,0x65,0x69,0x6c])](_0x4640f5/_0x1016e5)));window[_0x3bbeb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bbeb2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x117a8c,_0x2994ff);}function _0x22251b(){const _0x504fd0=_0x3bbeb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d8ae5(_0x56e7b4(_0x566f40)),_0x43ee36=window[_0x3bbeb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bbeb2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504fd0);return _0x43ee36?window[_0x3bbeb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5941e6(_0x43ee36),0x10)*_0x1016e5:null;}function _0x289a3d(_0x595d6d){return new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24fd9c,_0x4924c5)=>{_0x595d6d[_0x3bbeb2([0x74,0x68,0x65,0x6e])](_0x24fd9c,_0x4924c5),window[_0x3bbeb2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4924c5,0x7cec84df^_0xe66cf9);});}}_0x18c6d5[_0x3bbeb2([0x6f,0x6e])](_0x3bbeb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x335948,_0x1dccaf)=>{if(_0x1dccaf[0x0]!=_0x566f40)return _0x2249e4(_0x3bbeb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1dccaf[0x1]={..._0x1dccaf[0x1],[_0x3bbeb2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x749f27};},{[_0x3bbeb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bbeb2([0x68,0x69,0x67,0x68])}),_0x18c6d5[_0x3bbeb2([0x6f,0x6e])](_0x3bbeb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x302d0a=>{_0x974933(_0x302d0a[_0x3bbeb2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x543b6e=!0x0,_0x495225(_0x302d0a[_0x3bbeb2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bbeb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bbeb2([0x6c,0x6f,0x77])}),_0x40ad45[_0x3bbeb2([0x74,0x68,0x65,0x6e])](()=>{_0x543b6e||_0x2249e4(_0x3bbeb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4845bf(){return _0x18c6d5[_0x3bbeb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bbeb2([0x76,0x69,0x65,0x77])][_0x3bbeb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bbeb2([0x61,0x75,0x74,0x6f]);}function _0x124ce0(){_0x18c6d5[_0x3bbeb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bbeb2([0x76,0x69,0x65,0x77])][_0x3bbeb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bbeb2([0x61,0x75,0x74,0x6f]);}}function _0x10bc24(_0x2e41dd){const _0x51139a=[new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4993ac=>setTimeout(_0x4993ac,0x7ce46ed3^_0xe66cf9)),_0x40ad45[_0x3bbeb2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0d2a=>{const _0x50c095=0x7ced5018^_0xe66cf9,_0xbc4b3b=_0x42fe93[_0x3bbeb2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x67be1d(){_0xbc4b3b[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50c095&&_0x1b0d2a();}_0x67be1d(),_0xbc4b3b[_0x3bbeb2([0x6f,0x6e])](_0x3bbeb2([0x61,0x64,0x64]),_0x67be1d);})),new window[(_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eecf4=>{function _0x4fe479(){for(const _0x300037 in window)if(window[_0x3bbeb2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3bbeb2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x300037))&&window[_0x300037]==_0xf07e60)return _0x1eecf4();_0x18c6d5[_0x3bbeb2([0x73,0x74,0x61,0x74,0x65])]!=_0x3bbeb2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3bbeb2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fe479,0x7ced4397^_0xe66cf9);}_0x336807(_0x3bbeb2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4fe479();})];return window[_0x3bbeb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bbeb2([0x72,0x61,0x63,0x65])](_0x51139a)[_0x3bbeb2([0x74,0x68,0x65,0x6e])](()=>_0x2e41dd);}async function _0x46f70b(){if(await _0x40ad45,_0x336807(_0x3bbeb2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x58c6b3=_0x42fe93[_0x3bbeb2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5533d9=_0x42fe93[_0x3bbeb2([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])](_0x58c6b3[_0x3bbeb2([0x69,0x64])]),_0x548b2d=_0x10edc2(_0x3bbeb2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x548b2d[_0x3bbeb2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x58c6b3['id'],_0x5533d9?_0x5533d9['id']:null,!0x0),_0x548b2d[_0x3bbeb2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3bbeb2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x548b2d[_0x3bbeb2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x548b2d[_0x3bbeb2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x405b24,void(_0x548b2d[_0x3bbeb2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x405b24);}if(_0x336807(_0x3bbeb2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x55ff04=_0x10edc2(_0x3bbeb2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x55ff04[_0x3bbeb2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3bbeb2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x55ff04[_0x3bbeb2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x55ff04[_0x3bbeb2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x405b24,_0x55ff04[_0x3bbeb2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x405b24;}_0x18c6d5[_0x3bbeb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bbeb2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x405b24,_0x18c6d5[_0x3bbeb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bbeb2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x405b24,_0x18c6d5[_0x3bbeb2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bbeb2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x386a21(){return _0x336807(_0x3bbeb2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10edc2(_0x3bbeb2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bbeb2([0x73,0x74,0x61,0x74,0x65])]==_0x3bbeb2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a52e5(){return _0x336807(_0x3bbeb2([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 _0x275e81(){return _0x336807(_0x3bbeb2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x136d60(_0x33df72){const _0x52abd1=_0x25bdb1();_0x18c6d5[_0x52abd1]=_0x3bbeb2([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])+_0x33df72,_0x33df72[_0x3bbeb2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3bbeb2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x25bdb1()]=_0xf07e60),_0x33df72!=_0x3bbeb2([0x56,0x61,0x6c,0x69,0x64])&&_0x46f70b();}function _0x25bdb1(){const _0xf65ef5=window[_0x3bbeb2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bbeb2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bbeb2([0x6e,0x6f,0x77])]())[_0x3bbeb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bbeb2([0x2e]),'');let _0x4f6449=_0x3bbeb2([0x55]);for(let _0x249db4=0x0;_0x249db4<_0xf65ef5[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249db4+=0x2){let _0x37503a=window[_0x3bbeb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf65ef5[_0x3bbeb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249db4,_0x249db4+0x2));_0x37503a>=_0x344e3d[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37503a-=_0x344e3d[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f6449+=_0x344e3d[_0x37503a];}return _0x4f6449;}function _0x379474(){const _0x1bae03=_0x2ea2e0[_0x3bbeb2([0x73,0x70,0x6c,0x69,0x74])](_0x3bbeb2([0x2e]));if(0x3!=_0x1bae03[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e6bb2(_0x1bae03[0x1]);function _0x4e6bb2(_0x1f55b2){const _0x3ffb76=_0x418ce6(_0x1f55b2);return _0x3ffb76&&_0x15c6da()?_0x3ffb76:null;function _0x15c6da(){const _0x46a7af=_0x3ffb76[_0x3bbeb2([0x6a,0x74,0x69])],_0x37c313=window[_0x3bbeb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46a7af[_0x3bbeb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46a7af[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x95befa={..._0x3ffb76,[_0x3bbeb2([0x6a,0x74,0x69])]:_0x46a7af[_0x3bbeb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46a7af[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x95befa[_0x3bbeb2([0x76,0x63])],_0x56e7b4(_0x95befa)==_0x37c313;}}}async function _0x61547c(){let _0x1cfc9b=!0x0;try{const _0x4a2e60=_0x2ea2e0[_0x3bbeb2([0x73,0x70,0x6c,0x69,0x74])](_0x3bbeb2([0x2e])),[_0x24759c,_0x16f178,_0x13c01e]=_0x4a2e60;return _0x3d1d20(_0x24759c),await _0x501b81(_0x24759c,_0x16f178,_0x13c01e),_0x1cfc9b;}catch{return!0x1;}function _0x3d1d20(_0x32a4a7){const _0x585187=_0x418ce6(_0x32a4a7);_0x585187&&_0x585187[_0x3bbeb2([0x61,0x6c,0x67])]==_0x3bbeb2([0x45,0x53,0x32,0x35,0x36])||(_0x1cfc9b=!0x1);}async function _0x501b81(_0x36ea81,_0x35487f,_0x4f1289){const _0x52ba33=window[_0x3bbeb2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bbeb2([0x66,0x72,0x6f,0x6d])](_0x22374a(_0x4f1289),_0x55774a=>_0x55774a[_0x3bbeb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f57b=new window[(_0x3bbeb2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bbeb2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36ea81+_0x3bbeb2([0x2e])+_0x35487f),_0x54953f=window[_0x3bbeb2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bbeb2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54953f)return;const _0x46c671=await _0x54953f[_0x3bbeb2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bbeb2([0x6a,0x77,0x6b]),_0x4da0ac,{[_0x3bbeb2([0x6e,0x61,0x6d,0x65])]:_0x3bbeb2([0x45,0x43,0x44,0x53,0x41]),[_0x3bbeb2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bbeb2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bbeb2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54953f[_0x3bbeb2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bbeb2([0x6e,0x61,0x6d,0x65])]:_0x3bbeb2([0x45,0x43,0x44,0x53,0x41]),[_0x3bbeb2([0x68,0x61,0x73,0x68])]:{[_0x3bbeb2([0x6e,0x61,0x6d,0x65])]:_0x3bbeb2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46c671,_0x52ba33,_0x10f57b)||(_0x1cfc9b=!0x1);}}function _0x418ce6(_0xe7f211){return _0xe7f211[_0x3bbeb2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bbeb2([0x65,0x79]))?JSON[_0x3bbeb2([0x70,0x61,0x72,0x73,0x65])](_0x22374a(_0xe7f211)):null;}function _0x22374a(_0x2e1791){return window[_0x3bbeb2([0x61,0x74,0x6f,0x62])](_0x2e1791[_0x3bbeb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bbeb2([0x2b]))[_0x3bbeb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bbeb2([0x2f])));}function _0x56e7b4(_0x1adf80){let _0x19ee41=0x1505;function _0x3e1671(_0x4356a0){for(let _0x242308=0x0;_0x242308<_0x4356a0[_0x3bbeb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x242308++){const _0x4e571d=_0x4356a0[_0x3bbeb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x242308);_0x19ee41=(_0x19ee41<<0x5)+_0x19ee41+_0x4e571d,_0x19ee41&=_0x19ee41;}}function _0x54e502(_0x4acb40){Array[_0x3bbeb2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4acb40)?_0x4acb40[_0x3bbeb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54e502):_0x4acb40&&typeof _0x4acb40==_0x3bbeb2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bbeb2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4acb40)[_0x3bbeb2([0x73,0x6f,0x72,0x74])]()[_0x3bbeb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x188ec7,_0x55f009])=>{_0x3e1671(_0x188ec7),_0x54e502(_0x55f009);}):_0x3e1671(window[_0x3bbeb2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4acb40));}return _0x54e502(_0x1adf80),_0x19ee41>>>0x0;}function _0x3d8ae5(_0x127b66){return _0x127b66[_0x3bbeb2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bbeb2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bbeb2([0x30]));}function _0x5941e6(_0x1cd7b0){return _0x1cd7b0[_0x3bbeb2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bbeb2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bbeb2([0x6a,0x6f,0x69,0x6e])]('');}function _0x336807(_0x499503){return _0x18c6d5[_0x3bbeb2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bbeb2([0x68,0x61,0x73])](_0x499503);}function _0x10edc2(_0x38fb39){return _0x18c6d5[_0x3bbeb2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bbeb2([0x67,0x65,0x74])](_0x38fb39);}function _0x405b24(){}function _0x3bbeb2(_0x2e4ed2){return _0x2e4ed2['map'](_0x3bdbc1=>String['fromCharCode'](_0x3bdbc1))['join']('');}_0x136d60(await _0x1cc837());}(this);}['createRevision'](_0x86eb6e){const _0x391dab=this['editor']['plugins']['get']('Users');return new h({'id':_0x86eb6e['id'],'name':_0x86eb6e['name'],'creator':_0x86eb6e['creatorId']?_0x391dab['getUser'](_0x86eb6e['creatorId']):null,'diffData':_0x86eb6e['diffData']||_0x86eb6e['data'],'authors':_0x86eb6e['authorsIds']['map'](_0x4e0abc=>_0x391dab['getUser'](_0x4e0abc)),'createdAt':new Date(_0x86eb6e['createdAt']),'attributes':_0x86eb6e['attributes'],'fromVersion':_0x86eb6e['fromVersion'],'toVersion':_0x86eb6e['toVersion']});}['addRevision'](_0x509569,_0x2f611b=0x0){this['_revisions']['add'](_0x509569,_0x2f611b);}['getRevision'](_0x2c9c52){return this['_revisions']['get'](_0x2c9c52);}['getRevisions'](_0x95eb9e={'toJSON':!0x1}){const _0x12e74b=Array['from'](this['_revisions']);return _0x12e74b['reverse'](),_0x95eb9e['toJSON']?_0x12e74b['map'](_0x805e52=>_0x805e52['toJSON']()):_0x12e74b;}['getIndex'](_0x5a1840){return this['_revisions']['getIndex'](_0x5a1840);}['getEarlierVisibleRevision'](_0x30da45){const [,_0x1f2ade]=this['getRevisionsIterator'](_0x30da45,{'direction':'earlier'});return _0x1f2ade;}['getLaterVisibleRevision'](_0x3d87af){const [,_0x29668a]=this['getRevisionsIterator'](_0x3d87af,{'direction':'later'});return _0x29668a;}['getRevisionsInDiff'](_0x14be35){const _0x165fc9=[];for(const _0x2c0bf9 of this['getRevisionsIterator'](_0x14be35['newRevisionId']))if(_0x165fc9['push'](_0x2c0bf9),_0x2c0bf9['id']===_0x14be35['oldRevisionId'])break;return _0x165fc9;}*['getRevisionsIterator'](_0x5b22f,{direction:_0x24f190='earlier',filter:_0x4ff0f6=()=>!0x0}={}){const _0x23206d='earlier'===_0x24f190?0x1:-0x1;let _0x3b2dd8=this['_revisions']['get'](_0x5b22f),_0x187684=this['getIndex'](_0x3b2dd8);for(yield _0x3b2dd8;_0x3b2dd8;){if(_0x187684+=_0x23206d,_0x3b2dd8=this['getRevision'](_0x187684),!_0x3b2dd8)return;_0x4ff0f6(_0x3b2dd8)&&(yield _0x3b2dd8);}}}class V extends _0x46f453{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x40bc32,'c'],[_0x4b1895,'a'],[_0x48c5f3,'e'],[_0x7cf9af,'r'],[_0x573dd1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x40bc32],['a',_0x4b1895],['e',_0x48c5f3],['r',_0x7cf9af],['u',_0x573dd1]]);async['loadRevisionData'](_0xd7f509,_0x31a883){if(_0xd7f509['diffData']||!_0x31a883)return;const _0xc84de1=this['editor']['config']['get']('collaboration.channelId'),_0x2dcf7d=await _0x31a883['getRevision']({'channelId':_0xc84de1,'revisionId':_0xd7f509['id']});_0xd7f509['diffData']=_0x2dcf7d['diffData'];}['getRevisionDocumentData'](_0x24679c){const _0x2f0a6d={};for(const _0x44f95e in _0x24679c['diffData']){if(_0x24679c['diffData'][_0x44f95e]['attachChange']&&!_0x24679c['diffData'][_0x44f95e]['attachChange']['isAttached'])continue;const _0x1e28d0=this['_removeRevisionMarkers'](JSON['parse'](_0x24679c['diffData'][_0x44f95e]['insertions'])),_0x5c3334=this['editor']['editing']['view']['document'],_0x1526b0=new _0xf61bc4(_0x5c3334,_0x1e28d0['map'](_0x5d8deb=>this['_getViewFromDiffObj'](_0x5d8deb,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f0a6d[_0x44f95e]=this['editor']['data']['processor']['toData'](_0x1526b0),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f0a6d;}['getRevisionRootsAttributes'](_0x2efd62){const _0x32425c={};for(const _0x44e02b in _0x2efd62['diffData'])_0x2efd62['diffData'][_0x44e02b]['attachChange']&&!_0x2efd62['diffData'][_0x44e02b]['attachChange']['isAttached']||(_0x32425c[_0x44e02b]=_0x2efd62['diffData'][_0x44e02b]['attributesAfter']||{});return _0x32425c;}['_getTypeCharForViewElement'](_0x36252a){return this['_viewClassToTypeChar']['get'](_0x36252a['constructor']);}['_getViewFromDiffObj'](_0x17147d,_0x43a36a){const _0x5dba0b=this['editor']['editing']['view']['document'];if('string'==typeof _0x17147d)return new _0x165a8d(_0x5dba0b,_0x17147d);{let _0x51fd93,_0x2800b7;_0x2800b7='u'==_0x17147d['type']||'r'==_0x17147d['type']?[]:_0x17147d['children']['map'](_0x558f48=>this['_getViewFromDiffObj'](_0x558f48,_0x43a36a));const _0x1cf5ac=this['_typeCharToViewClass']['get'](_0x17147d['type'])||_0xf79cd4,_0x541a51=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x51fd93=new _0x1cf5ac(_0x5dba0b,_0x17147d['name'],_0x17147d['attributes'],_0x2800b7),'u'==_0x17147d['type']&&_0x17147d['children'][0x0]){const _0x1c3676=_0x17147d['children'][0x0];if(_0x51fd93['render']=function(_0x110d72){const _0x121fd0=_0x110d72['createElement']('div');return _0x121fd0['innerHTML']=_0x1c3676,_0x121fd0['childNodes'][0x0];},_0x43a36a){const _0x2da600=new _0xf61bc4(_0x5dba0b);_0x2da600['_appendChild'](_0x51fd93);const _0x139159=Array['from'](_0x541a51['viewChildrenToDom'](_0x2da600,{'bind':!0x1})),_0x78fd29=_0x541a51['domDocument']['createElement']('div');_0x78fd29['append'](..._0x139159),_0x51fd93=Array['from'](_0x541a51['domChildrenToView'](_0x78fd29))[0x0];}}else{if('r'==_0x17147d['type']&&_0x17147d['children'][0x0]){const _0x72961b=_0x17147d['children'][0x0];if(_0x51fd93['render']=function(_0x5b1bd8){_0x5b1bd8['innerHTML']=_0x72961b;},_0x43a36a){const _0x2a0d77=new _0xf61bc4(_0x5dba0b);_0x2a0d77['_appendChild'](_0x51fd93);const _0x5c7fe9=Array['from'](_0x541a51['viewChildrenToDom'](_0x2a0d77,{'bind':!0x1})),_0x2462ed=_0x541a51['domDocument']['createElement']('div');_0x2462ed['append'](..._0x5c7fe9);const _0x216f2b=Array['from'](_0x541a51['domChildrenToView'](_0x2462ed));_0x216f2b['length']>0x1?_0x51fd93['_appendChild'](_0x216f2b):_0x51fd93=_0x216f2b[0x0];}}}if(_0x17147d['customProperties']){for(const [_0x4f5d45,_0x3ef991]of _0x17147d['customProperties'])_0x51fd93['_setCustomProperty'](_0x4f5d45,_0x3ef991);}const _0xa22994=void 0x0===_0x17147d['fillerOffset']?null:_0x17147d['fillerOffset'];return null!==_0xa22994&&(_0x51fd93['getFillerOffset']=()=>_0xa22994),_0x51fd93;}}['_makeModelFromViewString'](_0x1956d2){const _0x4a9cbb=JSON['parse'](_0x1956d2),_0x4a844f=this['editor']['editing']['view']['document'],_0x4d0f81=new _0xf61bc4(_0x4a844f,_0x4a9cbb['map'](_0x2baa3a=>this['_getViewFromDiffObj'](_0x2baa3a,!0x0)));return this['editor']['data']['toModel'](_0x4d0f81);}['_removeRevisionMarkers'](_0x4a89dc){return(_0x4a89dc=_0x4a89dc['filter'](_0x3a990b=>!_0x3a990b['name']||'revision-start'!==_0x3a990b['name']&&'revision-end'!==_0x3a990b['name']))['forEach'](_0x1032d5=>{'string'!=typeof _0x1032d5&&(_0x1032d5['children']=this['_removeRevisionMarkers'](_0x1032d5['children']),_0x1032d5['attributes']=_0x1032d5['attributes']['filter'](_0x11f2e0=>!_0x11f2e0[0x0]['startsWith']('data-revision-')));}),_0x4a89dc;}}function g(_0x5d3bf5,_0x10e206,_0xa5fcc8){const t=_0x5d3bf5['t'];switch(_0x10e206){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'},_0xa5fcc8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa5fcc8);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 _0x46f453{['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[_0x2e21a7,I,V,_0x135413];}constructor(_0xf01d4d){super(_0xf01d4d),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 _0x4809de=_0x40eb95();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4809de},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 _0x40e680=this['repository']['getRevision'](0x0),_0x5ad722=_0x40e680&&null===_0x40e680['creator']?_0x40e680:null;if(this['_continueCurrentRevision']=!!_0x5ad722&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x191c68=this['_source']['getCurrentRevisionId'](),_0x183357=this['repository']['getRevision'](_0x191c68);if(_0x183357)this['_startingVersion']=_0x183357['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x188691=this['_source']['history']['_operations']['find'](_0x460711=>!_0x460711['_isInit']),_0x474866=_0x188691?_0x188691['baseVersion']:this['_source']['history']['version'];_0x40e680?(_0x40e680['toVersion']<_0x474866&&_0x40e680['_update']({'toVersion':_0x474866}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5ad722['id'],this['_startingVersion']=_0x5ad722['fromVersion']):(this['_startingVersion']=_0x40e680['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x474866,this['_continueCurrentRevision']=!0x1);}}else _0x5ad722&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5ad722['toVersion'],this['editor']['model']['document']['history']['version']),_0x5ad722['fromVersion']===_0x5ad722['toVersion']?(0x0!==_0x5ad722['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ad722['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ad722['id'],this['_startingVersion']=_0x5ad722['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',_0x332047=>!_0x332047),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fe1e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53bc15;for(const _0x14ce14 in _0x4fe1e6){const _0x21cb3a=_0x14ce14,_0x3bcd30=_0x4fe1e6[_0x21cb3a];if('revisionHistoryLicenseKeyValid'==_0x3bcd30||'revisionHistoryLicenseKeyInvalid'==_0x3bcd30||'revisionHistoryLicenseKeyExpired'==_0x3bcd30||'revisionHistoryLicenseKeyDomainLimit'==_0x3bcd30||'revisionHistoryLicenseKeyNotAllowed'==_0x3bcd30||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3bcd30||'revisionHistoryLicenseKeyTrialLimit'==_0x3bcd30||'revisionHistoryLicenseKeyUsageLimit'==_0x3bcd30){delete _0x4fe1e6[_0x21cb3a],_0x53bc15=_0x3bcd30,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x53bc15&&_0x4fe1e6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4dd4ff=this['repository']['getRevision'](0x0),_0x197a6c=await this['getRevisionDocumentData'](_0x4dd4ff),_0x1b6cfe=await this['getRevisionRootsAttributes'](_0x4dd4ff);this['_replaceEditorDataWithRevisionData'](_0x197a6c,_0x1b6cfe);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x50980b){this['_source']=_0x50980b;}async['update'](){const _0x34fed8=await this['_source']['getLatestVersion']();if(_0x34fed8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5b2d83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x34fed8});_0x5b2d83['authors']=_0x5b2d83['authorsIds']['map'](_0xf803fb=>this['editor']['plugins']['get']('Users')['getUser'](_0xf803fb)),this['currentRevision']['_update'](_0x5b2d83);}}async['saveRevision'](_0x18962f={},_0x269bbd=null){const _0x313259=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x269bbd>this['currentRevision']['toVersion']&&(_0x269bbd=null),null===_0x269bbd&&(_0x269bbd=await this['_source']['getLatestVersion']());const _0x68190c=this['_getFromVersion'](_0x269bbd),_0x4cfb45=this['buildRevisionData']({'from':_0x68190c,'to':_0x269bbd});if(this['currentRevision']['toVersion']<_0x269bbd){const _0x3e36ee=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x269bbd,'to':_0x269bbd});_0x3e36ee['authors']=[],_0x3e36ee['authorsIds']=[],_0x3e36ee['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3e36ee,!0x0),delete _0x3e36ee['authors'],_0x313259['push'](_0x3e36ee);}_0x18962f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x18962f['name']=_0x18962f['name']||null,_0x18962f['id']=_0x18962f['id']||_0x40eb95(),_0x18962f={..._0x18962f,..._0x4cfb45};const _0x1ccf74=this['addRevisionData'](_0x18962f);_0x313259['push'](_0x18962f);const _0x41279e=this['repository']['getIndex'](_0x1ccf74);if(0x0!==_0x41279e){const _0x337497=this['repository']['getRevision'](_0x41279e-0x1);if(_0x337497['fromVersion']!==_0x269bbd){const _0x2c9955=this['_revisionDataBuilder']['getData'](_0x269bbd,_0x337497['toVersion']),_0x41a871={'id':_0x337497['id'],'diffData':_0x2c9955['diffData'],'authorsIds':_0x2c9955['authorsIds'],'authors':_0x2c9955['authorsIds']['map'](_0xd0eb66=>this['editor']['plugins']['get']('Users')['getUser'](_0xd0eb66)),'fromVersion':_0x269bbd};_0x337497===this['currentRevision']&&(_0x41a871['createdAt']=new Date(_0x18962f['createdAt']['getTime']()+0xa)),_0x337497['_update'](_0x41a871,!0x0),delete _0x41a871['authors'],_0x313259['push'](_0x41a871);}}if(this['adapter']){for(const _0x345354 of _0x313259)this['_bufferUpdate'](_0x345354['id'],_0x345354,!0x0);this['sendBufferedUpdates']();}return _0x1ccf74;}['addRevisionData'](_0x3927c0){const _0xce0d2=this['repository']['createRevision'](_0x3927c0);return this['adapter']&&_0xce0d2['on']('_update',(_0x21e836,_0x45c91e,_0x5e9338)=>{_0x5e9338||(this['_bufferUpdate'](_0x45c91e['id'],_0x45c91e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xce0d2,this['_findInsertionIndex'](_0xce0d2)),_0xce0d2;}async['getRevisionDocumentData'](_0x472884){return await this['_utils']['loadRevisionData'](_0x472884,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x472884);}async['getRevisionRootsAttributes'](_0x47f1dd){return await this['_utils']['loadRevisionData'](_0x47f1dd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x47f1dd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4e902c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x32494c=0x0;_0x32494c<_0x4e902c['length'];_0x32494c++){const _0x466489=_0x4e902c[_0x32494c];let _0x30ea75=!0x1;for(const _0x271ed1 of Object['keys'](_0x466489))void 0x0===_0x466489[_0x271ed1]?delete _0x466489[_0x271ed1]:'id'!==_0x271ed1&&(_0x30ea75=!0x0);_0x30ea75||(_0x4e902c[_0x32494c]=null);}if(_0x4e902c=_0x4e902c['filter'](_0x249606=>null!==_0x249606),!_0x4e902c['length'])return;for(let _0x406634=0x0;_0x406634<_0x4e902c['length'];_0x406634++){const _0x160dfc=_0x4e902c[_0x406634];void 0x0!==_0x160dfc['fromVersion']&&void 0x0===_0x160dfc['toVersion']&&(_0x160dfc['toVersion']=this['repository']['getRevision'](_0x160dfc['id'])['toVersion']),void 0x0!==_0x160dfc['toVersion']&&void 0x0===_0x160dfc['fromVersion']&&(_0x160dfc['fromVersion']=this['repository']['getRevision'](_0x160dfc['id'])['fromVersion']);}const _0xc25501=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4e902c,_0xc25501)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x12a00d=>{if(_0x12a00d){for(const _0x4e72c2 of _0x12a00d)this['setRevisionData']({'id':_0x4e72c2['id'],'createdAt':_0x4e72c2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x51e289=null,from:_0x1a555a=null,to:_0x4e7a89=null}){_0x1a555a=null!==_0x1a555a?_0x1a555a:_0x51e289['fromVersion'],_0x4e7a89=null!==_0x4e7a89?_0x4e7a89:_0x51e289['toVersion'];const _0xb07b63=this['_revisionDataBuilder']['getData'](_0x1a555a,_0x4e7a89),_0x16f6d4={'diffData':_0xb07b63['diffData'],'authorsIds':_0xb07b63['authorsIds'],'fromVersion':_0x1a555a,'toVersion':_0x4e7a89};if(!_0x51e289||_0x4e7a89!==_0x51e289['toVersion']){const _0x3639e0=_0x4e7a89-0x1,_0x16a341=this['_source']['history']['getOperation'](_0x3639e0);_0x16f6d4['createdAt']=_0x16a341&&_0x16a341['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a555a===this['_loadedStateData']['fromVersion']){for(const _0x382bc3 of this['_loadedStateData']['authors'])_0x16f6d4['authorsIds']['includes'](_0x382bc3['id'])||_0x16f6d4['authorsIds']['push'](_0x382bc3['id']);}return _0x16f6d4;}['_bufferUpdate'](_0x3cfc7d,_0x2671f6,_0x144177){if(this['_bufferedUpdates']['has'](_0x3cfc7d)){const _0x5baf85=this['_bufferedUpdates']['get'](_0x3cfc7d);_0x2671f6=_0x144177?{..._0x5baf85,..._0x2671f6}:{..._0x2671f6,..._0x5baf85};}this['_bufferedUpdates']['set'](_0x3cfc7d,_0x2671f6);}['setRevisionData'](_0x15d3c3){const _0x21c53e=this['repository']['getRevision'](_0x15d3c3['id']);if(_0x15d3c3['createdAt']&&(_0x15d3c3['createdAt']=new Date(_0x15d3c3['createdAt'])),_0x15d3c3['authorsIds']){const _0x31f451=this['editor']['plugins']['get']('Users');_0x15d3c3['authors']=_0x15d3c3['authorsIds']['map'](_0x25273b=>_0x31f451['getUser'](_0x25273b));}_0x21c53e['_update'](_0x15d3c3,!0x0);}['_createInitialRevision'](_0x4613cd){const _0x1de3f0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1de3f0)this['_initialRevisionId']=_0x1de3f0['id'];else{const _0x32810f=!this['editor']['model']['document']['roots']['find'](_0x198fc7=>this['editor']['model']['hasContent'](_0x198fc7)),_0x4a9d3d=this['editor']['plugins']['get']('Users')['me']['id'],_0xe7de0c=g(this['editor']['locale'],_0x32810f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4613cd,'to':_0x4613cd,'id':this['_initialRevisionId'],'name':_0xe7de0c,'creatorId':_0x4a9d3d});}}['_createCurrentRevision'](_0x49e805){const _0x489561=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x489561),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x49e805,'to':_0x49e805,'id':_0x489561,'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'](_0x30b677,_0x2c9c87){let _0x70fc43=this['editor']['config']['get']('initialData'),_0xd4d20d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x70fc43){_0x70fc43={};for(const _0x4c6b8b of this['editor']['model']['document']['getRootNames']())_0x70fc43[_0x4c6b8b]='';}if('string'==typeof _0x70fc43&&(_0x70fc43={'main':_0x70fc43}),void 0x0===_0xd4d20d){_0xd4d20d={};for(const _0x265236 of this['editor']['model']['document']['getRootNames']())_0xd4d20d[_0x265236]={};}let _0x2960d4=!0x1;const _0x2f471b=Object['keys'](_0x70fc43),_0x4dcdc3=Object['keys'](_0x30b677);for(const _0x14b744 of _0x2f471b){if(_0x70fc43[_0x14b744]!==_0x30b677[_0x14b744]&&''!==_0x70fc43[_0x14b744]['trim']()){_0x2960d4=!0x0;break;}if(!_0x23588e(_0xd4d20d[_0x14b744],_0x2c9c87[_0x14b744])&&Object['keys'](_0xd4d20d[_0x14b744])['length']>0x0){_0x2960d4=!0x0;break;}}_0x2960d4||(_0x2960d4=_0x4dcdc3['some'](_0x237a24=>!this['editor']['model']['document']['getRoot'](_0x237a24))),_0x2960d4&&_0x2aedd5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x70fc43,'editorRootsAttributes':_0xd4d20d,'revisionData':_0x30b677,'revisionRootsAttributes':_0x2c9c87}),this['editor']['config']['set']('initialData',_0x30b677),this['editor']['config']['set']('rootsAttributes',_0x2c9c87);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x231dcb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x231dcb['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x39bd78){const _0x233faf=this['repository']['getRevisions']();_0x233faf['reverse']();let _0x192e71=0x0;for(;_0x192e71<_0x233faf['length'];){const _0x2398de=_0x233faf[_0x192e71];if(_0x2398de===this['currentRevision']){_0x192e71++;continue;}if(_0x2398de['id']===this['_initialRevisionId'])break;const _0x53aa09=_0x39bd78['toVersion']-_0x2398de['toVersion']||_0x39bd78['fromVersion']-_0x2398de['fromVersion'];if(_0x53aa09>0x0)break;if(_0x53aa09<0x0)_0x192e71++;else{if(!_0x39bd78['creator']&&_0x2398de['creator'])break;if(_0x2398de['creator']||!_0x39bd78['creator']){if(_0x39bd78['createdAt']>_0x2398de['createdAt'])break;_0x192e71++;}else _0x192e71++;}}return _0x192e71;}['_getFromVersion'](_0xf83808){const _0x20b13b=this['repository']['getRevisions']();_0x20b13b['reverse'](),_0x20b13b['shift']();const _0x9a1c80=_0x20b13b['find'](_0x1f27f0=>_0x1f27f0['toVersion']<=_0xf83808)['toVersion'];return _0x9a1c80<this['_startingVersion']?this['_startingVersion']:_0x9a1c80;}['_makeRevision']({name:_0x551b0b,from:_0x5f1bd4,to:_0x321c37,creatorId:_0xb65cac,id:_0x3b9bcb}){const _0x4241e4=this['buildRevisionData']({'from':_0x5f1bd4,'to':_0x321c37});_0x4241e4['name']=_0x551b0b,_0x4241e4['creatorId']=_0xb65cac,_0x4241e4['id']=_0x3b9bcb;const _0x41b7d1=this['addRevisionData'](_0x4241e4);return this['adapter']&&this['_bufferUpdate'](_0x4241e4['id'],_0x4241e4,!0x0),_0x41b7d1;}['_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(_0x326ffb){this['editor']=_0x326ffb,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'](_0x4c1958){this['source']=_0x4c1958;const _0x536a30=new Map(),_0x51f260=new Map(),_0x2c0882=this['editor']['model']['document']['roots']['map'](_0x4e2ed6=>_0x4e2ed6['rootName']);for(const _0x160022 of _0x2c0882){const _0x361ed4=this['editor']['model']['document']['getRoot'](_0x160022),_0x441a55=N(_0x361ed4);_0x536a30['set'](_0x160022,_0x441a55),_0x51f260['set'](_0x160022,Object['fromEntries'](_0x361ed4['getAttributes']()));}const _0x583f06=Array['from'](this['editor']['model']['markers'])['map'](_0x440552=>[_0x440552['name'],_0x440552['getRange']()]),_0x16c6d4=this['source']['version'];this['_saveMetaData'](_0x16c6d4,_0x536a30,_0x583f06,_0x51f260),this['_startingRevisionId']=this['_revisionId'];const _0x16ad04=new Map(),_0x24b907=new Map();for(const _0x11780b of _0x2c0882){const _0x197d5f=P(_0x11780b);_0x16ad04['set'](_0x11780b,_0x197d5f),_0x24b907['set'](_0x11780b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x16ad04,[],_0x24b907);}['getData'](_0x30facb,_0x2d4f9c){if(this['_lastFrom']===_0x30facb&&this['_lastTo']<=_0x2d4f9c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2d4f9c,!0x0);else{if(!this['_savedMetaData']['has'](_0x30facb)){const _0x542766=this['_getPreviousFrom'](_0x30facb);this['_calculateMetaData'](_0x542766,_0x30facb,!0x1);}this['_calculateMetaData'](_0x30facb,_0x2d4f9c,!0x0);}return this['_lastFrom']=_0x30facb,this['_lastTo']=_0x2d4f9c,this['_getState']();}['loadState'](_0x1d04a5){const _0x501bf4=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1d04a5['fromVersion'],this['_lastTo']=_0x1d04a5['toVersion'];for(const _0x3b7caf in _0x1d04a5['diffData']){const _0x3d4653=_0x1d04a5['diffData'][_0x3b7caf]['attachChange'],_0x1acbae=_0x186736(_0x1d04a5['diffData'][_0x3b7caf]['attributesBefore'])||{},_0xa50db6=_0x501bf4['_makeModelFromViewString'](_0x1d04a5['diffData'][_0x3b7caf]['deletions']);_0xa50db6['rootName']=_0x3b7caf,_0xa50db6['_isAttached']=!_0x3d4653||!_0x3d4653['isAttached'],_0xa50db6['isAttached']=()=>_0xa50db6['_isAttached'],this['_baseRoots']['set'](_0x3b7caf,_0xa50db6),this['_baseRootsAttributes']['set'](_0x3b7caf,_0x1acbae),_0x3d4653&&this['_touchedRoots']['set'](_0x3b7caf,_0x3d4653);const _0x55e812=this['_makeIdsRoot'](_0xa50db6);this['_baseIdsRoots']['set'](_0x3b7caf,_0x55e812);for(const [_0x4b99ac,_0x1e21ca]of _0xa50db6['markers']){if(!_0x4b99ac['startsWith']('revision:'))continue;const _0x952fb7=_0x4b99ac['split'](':')[0x2];for(const _0x22fc17 of _0x1e21ca['getWalker']({'singleCharacters':!0x0})){const _0x1aaeba=this['_getVidAttributeName'](_0x22fc17),_0xa30b46='elementEnd'==_0x22fc17['type']?_0x22fc17['previousPosition']['path']['slice'](0x0,-0x1):_0x22fc17['previousPosition']['path'],_0x15cf79=_0x55e812['getNodeByPath'](_0xa30b46)['getAttribute'](_0x1aaeba);this['_touched']['set'](_0x15cf79,{'userId':_0x952fb7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x12163a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2504ee=>!this['_touched']['has'](_0x2504ee));let _0x56dde0=0x0;const _0x332ebc=new Map();for(const _0x4be2aa in _0x1d04a5['diffData']){const _0x187244=_0x1d04a5['diffData'][_0x4be2aa]['attachChange'],_0xb07054=_0x186736(_0x1d04a5['diffData'][_0x4be2aa]['attributesAfter'])||{},_0x193661=_0x501bf4['_makeModelFromViewString'](_0x1d04a5['diffData'][_0x4be2aa]['insertions']);_0x193661['rootName']=_0x4be2aa,_0x193661['_isAttached']=!_0x187244||_0x187244['isAttached'],_0x193661['isAttached']=()=>_0x193661['_isAttached'],this['_diffRoots']['set'](_0x4be2aa,_0x193661),this['_diffRootsAttributes']['set'](_0x4be2aa,_0xb07054);const _0x2bd814=this['_makeIdsRoot'](_0x193661,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4be2aa,_0x2bd814),_0x332ebc['set'](_0x4be2aa,_0x193661['isAttached']()?_0xb07054:{});for(const [_0x57f304,_0x2ae0e3]of _0x193661['markers']){if(!_0x57f304['startsWith']('revision:'))continue;const _0x3dd338=_0x57f304['split'](':')[0x2];for(const _0x5edcdd of _0x2ae0e3['getWalker']({'singleCharacters':!0x0})){const _0x2cea22=this['_getVidAttributeName'](_0x5edcdd),_0x4c1319=this['_revisionId']++,_0x15d730='elementEnd'==_0x5edcdd['type']?_0x5edcdd['previousPosition']['path']['slice'](0x0,-0x1):_0x5edcdd['previousPosition']['path'];_0x2bd814['getNodeByPath'](_0x15d730)['_setAttribute'](_0x2cea22,_0x4c1319),this['_touched']['set'](_0x4c1319,{'userId':_0x3dd338});}}for(const _0x2d116a of this['editor']['model']['createRangeIn'](_0x193661)['getWalker']({'singleCharacters':!0x0})){const _0x384ed5=this['_getVidAttributeName'](_0x2d116a),_0x37358='elementEnd'==_0x2d116a['type']?_0x2d116a['previousPosition']['path']['slice'](0x0,-0x1):_0x2d116a['previousPosition']['path'],_0x2a6528=_0x2bd814['getNodeByPath'](_0x37358);_0x2a6528['getAttribute'](_0x384ed5)>0x0||_0x2a6528['_setAttribute'](_0x384ed5,_0x12163a[_0x56dde0++]);}for(const [_0x38db15,_0x55dff0]of _0x193661['markers'])_0x38db15['startsWith']('revision:')||this['_markers']['set'](_0x38db15,_0x55dff0);}const _0x73f9=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x73f9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x73f9,0x1));const _0x4ce31f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4ce31f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4ce31f,0x1));const _0x436790=Array['from'](this['_diffRoots'])['map'](([_0x5b9269,_0x4a531a])=>[_0x5b9269,N(_0x4a531a)]);this['_saveMetaData'](this['_lastTo'],_0x436790,this['_markers'],_0x332ebc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4efc66,_0x4c2fa3,_0x411f4f,_0x386df4){const _0x3c16e9=new Map(_0x4c2fa3),_0x3e13ab=new Map(_0x186736(_0x386df4)),_0x4dd7ad=new Map();for(const [_0x4323df,_0x2dfd30]of _0x411f4f)_0x4dd7ad['set'](_0x4323df,{'start':_0x2dfd30['start']['clone'](),'end':_0x2dfd30['end']['clone'](),'rootName':_0x2dfd30['root']['rootName']});this['_savedMetaData']['set'](_0x4efc66,{'roots':_0x3c16e9,'markers':_0x4dd7ad,'rootsAttributes':_0x3e13ab});}['_removeMetaData'](_0x2b4c3d){this['_savedMetaData']['delete'](_0x2b4c3d);}['_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'](_0x556c2d,_0x1d1953=null){let _0x113f22=null;_0x556c2d['is']('documentFragment')||(_0x113f22=new ut(_0x556c2d['name'],{'vid_start':null===_0x1d1953?this['_revisionId']++:_0x1d1953++}));const _0x45673a=[];for(const _0x4f06cd of _0x556c2d['getChildren']())if(_0x4f06cd['is']('element')){_0x45673a['push'](this['_makeIdsRoot'](_0x4f06cd,_0x1d1953));const _0x54607b=_0x45673a[_0x45673a['length']-0x1];null!==_0x1d1953&&(_0x1d1953=_0x54607b['is']('element','$text')?_0x54607b['getAttribute']('vid')+0x1:_0x54607b['getAttribute']('vid_end')+0x1);}else{for(let _0x5441ad=0x0;_0x5441ad<_0x4f06cd['offsetSize'];_0x5441ad++)_0x45673a['push'](new ut('$text',{'vid':null===_0x1d1953?this['_revisionId']++:_0x1d1953++}));}if(_0x556c2d['is']('documentFragment')){const _0x3f781f=P(_0x556c2d['rootName']);return _0x3f781f['_insertChild'](0x0,_0x45673a),_0x3f781f;}return _0x113f22['_setAttribute']('vid_end',null===_0x1d1953?this['_revisionId']++:_0x1d1953++),_0x113f22['_insertChild'](0x0,_0x45673a),_0x113f22;}['_calculateMetaData'](_0xe204dd,_0x5d78be,_0x43c350){this['_reset']();const {roots:_0x2cace8,markers:_0x335283,rootsAttributes:_0x104c1e}=this['_savedMetaData']['get'](_0xe204dd);this['_baseRoots']=new Map(_0x2cace8),this['_baseRootsAttributes']=new Map(_0x186736(_0x104c1e));for(const [_0x5bdf4e,_0x2c9299]of this['_baseRoots'])if('$graveyard'!==_0x5bdf4e&&(this['_diffRoots']['set'](_0x5bdf4e,N(_0x2c9299)),this['_diffRootsAttributes']=new Map(_0x186736(_0x104c1e)),_0x43c350)){const _0x1c198b=this['_revisionId'];this['_idsRoots']['set'](_0x5bdf4e,this['_makeIdsRoot'](_0x2c9299)),this['_baseIdsRoots']['set'](_0x5bdf4e,this['_makeIdsRoot'](_0x2c9299,_0x1c198b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x43c350&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x538860,_0x5b16ab]of _0x335283){const _0x2bddab=this['_baseRoots']['get'](_0x5b16ab['rootName']),_0x4b1460=this['_diffRoots']['get'](_0x5b16ab['rootName']),_0x493c05=new ft(this['_fixPosition'](_0x5b16ab['start'],_0x2bddab),this['_fixPosition'](_0x5b16ab['end'],_0x2bddab)),_0x5e6fa1=this['_fixRange'](_0x493c05,_0x4b1460);_0x2bddab['markers']['set'](_0x538860,_0x493c05),this['_markers']['set'](_0x538860,_0x5e6fa1);}this['_applyOperations'](_0xe204dd,_0x5d78be,_0x43c350);}['_applyOperations'](_0x460558,_0x14d958,_0x2f1e83){for(const _0x20fa2e of this['source']['getOperations'](_0x460558,_0x14d958))this['_handleOperation'](_0x20fa2e,_0x2f1e83);for(const _0x294165 of this['_diffRoots']['values']())_0x294165['markers']['clear']();for(const [_0x4be774,_0x11e854]of this['_markers']){this['_diffRoots']['get'](_0x11e854['root']['rootName'])['markers']['set'](_0x4be774,_0x11e854['clone']());}const _0x5c269c=new Map(),_0x5927d4=new Map();for(const [_0x245f8c,_0x49c1ca]of this['_diffRoots'])_0x5c269c['set'](_0x245f8c,N(_0x49c1ca)),_0x5927d4['set'](_0x245f8c,this['_diffRootsAttributes']['get'](_0x245f8c));this['_saveMetaData'](_0x14d958,_0x5c269c,this['_markers'],_0x5927d4);}['_getPreviousFrom'](_0x32019f){const _0x5190d0=Array['from'](this['_savedMetaData']['keys']());_0x5190d0['sort']((_0x27b87f,_0x1b00c2)=>_0x27b87f-_0x1b00c2),_0x5190d0['reverse']();for(const _0x49009f of _0x5190d0)if(_0x49009f<_0x32019f)return _0x49009f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5e55a9,_0x34e57b){const _0x475f74=Array['from'](_0x34e57b['markers'])['map'](([_0x545abd,_0x4b38bd])=>[_0x545abd,this['_fixRange'](_0x4b38bd,_0x5e55a9)]);_0x5e55a9['markers']=new Map(_0x475f74);}['_transformMarkers'](_0x1ccb08){for(const _0x7a1915 of this['_markers']['values']()){const _0x625740=_0x7a1915['getTransformedByOperation'](_0x1ccb08),_0x341d49=ft['_createFromRanges'](_0x625740);_0x7a1915['start']=_0x341d49['start'],_0x7a1915['end']=_0x341d49['end'];}}['_handleOperation'](_0xfd0577,_0x5c8c67){if('addRoot'!=_0xfd0577['type']&&'detachRoot'!=_0xfd0577['type']){if('insert'==_0xfd0577['type']){const _0x74bfcf=_0xfd0577['position']['root']['rootName'];this['_diffRoots']['has'](_0x74bfcf)||(this['_diffRoots']['set'](_0x74bfcf,P(_0x74bfcf,!0x0)),this['_diffRootsAttributes']['set'](_0x74bfcf,{}),_0x5c8c67&&this['_idsRoots']['set'](_0x74bfcf,P(_0x74bfcf,!0x0)));}else{if('addRootAttribute'==_0xfd0577['type']||'removeRootAttribute'==_0xfd0577['type']||'changeRootAttribute'==_0xfd0577['type'])return void this['_handleRootAttributeOperation'](_0xfd0577);'marker'==_0xfd0577['type']&&this['_handleMarkerOperation'](_0xfd0577);}if('marker'!==_0xfd0577['type']){const _0x38f569=this['_cloneOperation'](_0xfd0577,this['_diffRoots']);_0x38f569['_execute'](),this['_transformMarkers'](_0x38f569);}if(_0x5c8c67)switch(_0xfd0577['type']){case'insert':this['_handleInsertOperation'](_0xfd0577);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xfd0577);break;case'merge':this['_handleMergeOperation'](_0xfd0577);break;case'split':this['_handleSplitOperation'](_0xfd0577);}}else this['_handleRootOperation'](_0xfd0577,_0x5c8c67);}['_cloneOperation'](_0x3b5df3,_0x55040a){const _0xea1dad=_0x3b5df3['clone']();return _0xea1dad['_authorId']=_0x3b5df3['_authorId'],this['_fixOperation'](_0xea1dad,_0x55040a),_0xea1dad;}['_getBaseVids'](_0x3f8319){return _0x3f8319['map'](_0x5dc4db=>{const _0x5b6bc5=this['_getVidAttributeName'](_0x5dc4db);return Number(_0x5dc4db['item']['getAttribute'](_0x5b6bc5));});}['_generateTape'](_0x397f64,_0x496489){if(_0x397f64['is']('element','$text'))_0x496489['push']({'item':_0x397f64,'type':'text'});else{_0x397f64['is']('element')&&_0x496489['push']({'item':_0x397f64,'type':'elementStart'});for(const _0x26c78a of _0x397f64['getChildren']())this['_generateTape'](_0x26c78a,_0x496489);_0x397f64['is']('element')&&_0x496489['push']({'item':_0x397f64,'type':'elementEnd'});}return _0x496489;}['_getState'](){const _0x2ac8c5=new Map(this['_touched']),_0x7aa600=new Map(_0x2ac8c5),_0x252558=new Map(),_0x5abea9={'insertions':{},'deletions':{}},_0x569c5f={'insertions':{},'deletions':{}},_0x267b9a=new Map(),_0x39a25a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39a25a['delete']('$graveyard');for(const _0x54fe5a of _0x39a25a){const _0x3e07fc=this['_diffRoots']['get'](_0x54fe5a)||P(_0x54fe5a,!0x1),_0x5dcc3b=this['_baseRoots']['get'](_0x54fe5a)||P(_0x54fe5a,!0x1);_0x3e07fc['isAttached']()||_0x5dcc3b['isAttached']()?(_0x5abea9['insertions'][_0x54fe5a]=N(_0x3e07fc),_0x5abea9['deletions'][_0x54fe5a]=N(_0x5dcc3b),this['_copyMarkers'](_0x5abea9['deletions'][_0x54fe5a],_0x5dcc3b),this['_copyMarkers'](_0x5abea9['insertions'][_0x54fe5a],_0x3e07fc),_0x569c5f['insertions'][_0x54fe5a]=this['_generateTape'](this['_idsRoots']['get'](_0x54fe5a),[]),_0x569c5f['deletions'][_0x54fe5a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x54fe5a)||P(_0x54fe5a,!0x1),[])):_0x39a25a['delete'](_0x54fe5a);}for(const _0x300d57 of _0x39a25a){const _0xf018e6=_0x569c5f['insertions'][_0x300d57];for(const _0x167324 of _0xf018e6){const _0x2d2d33=this['_getVidAttributeName'](_0x167324),_0x251448=_0x167324['item']['getAttribute'](_0x2d2d33);_0x7aa600['delete'](_0x251448),_0x251448>=this['_startingRevisionId']&&_0x252558['set'](_0x251448,_0x2ac8c5['get'](_0x251448));}}for(const _0x34d13c of _0x39a25a){const _0x2cd0bb=_0x569c5f['insertions'][_0x34d13c],_0x362faa=this['_getBaseVids'](_0x569c5f['deletions'][_0x34d13c]);let _0x25d5b7=0x0;for(const _0x4680de of _0x2cd0bb){const _0x3f6bfd=this['_getVidAttributeName'](_0x4680de),_0x7beae1=_0x4680de['item']['getAttribute'](_0x3f6bfd);if(!_0x252558['has'](_0x7beae1)&&!_0x267b9a['has'](_0x7beae1)){if(_0x7aa600['has'](_0x7beae1))_0x25d5b7++;else{if(_0x7beae1!=_0x362faa[_0x25d5b7]){const _0xf90c39=_0x2ac8c5['get'](_0x7beae1)||_0x2ac8c5['get'](_0x362faa[_0x25d5b7]);for(;_0x7beae1!=_0x362faa[_0x25d5b7];)_0x7aa600['has'](_0x362faa[_0x25d5b7])||(_0x267b9a['set'](_0x362faa[_0x25d5b7],_0xf90c39),_0x2ac8c5['set'](_0x362faa[_0x25d5b7],_0xf90c39)),_0x25d5b7++;}_0x25d5b7++;}}}}for(const _0x17fa6b of _0x39a25a){const _0x460b84=_0x569c5f['insertions'][_0x17fa6b];for(const _0x23b5c6 of _0x460b84){const _0x200b7f=this['_getVidAttributeName'](_0x23b5c6),_0x4ae4ee=_0x23b5c6['item']['getAttribute'](_0x200b7f);if(_0x267b9a['has'](_0x4ae4ee)){const _0x3c3060=_0x267b9a['get'](_0x4ae4ee);_0x7aa600['has'](_0x4ae4ee)||_0x7aa600['set'](_0x4ae4ee,{..._0x3c3060}),_0x252558['set'](_0x4ae4ee,{..._0x3c3060});}}}for(const _0x52e8b2 of _0x7aa600['keys']())_0x52e8b2>=this['_startingRevisionId']&&_0x7aa600['delete'](_0x52e8b2);const _0x594494=new Map();for(const _0x2a0eeb of _0x39a25a){let _0x1ec11a=_0x569c5f['insertions'][_0x2a0eeb];for(const _0x44bd43 of _0x1ec11a)if(_0x44bd43['item']['is']('element','tableCell')){const _0x5952e9=this['_getVidAttributeName'](_0x44bd43),_0x3e4bcf=_0x44bd43['item']['getAttribute'](_0x5952e9);if(_0x252558['has'](_0x3e4bcf)){const _0x490c4=_0x44bd43['item']['parent']['parent']['getAttribute']('vid_start'),_0x3ffcff=_0x594494['get'](_0x490c4)||new Set();_0x3ffcff['add'](_0x252558['get'](_0x3e4bcf)['userId']),_0x594494['set'](_0x490c4,_0x3ffcff);}}_0x1ec11a=_0x569c5f['deletions'][_0x2a0eeb];for(const _0xe2af6f of _0x1ec11a)if(_0xe2af6f['item']['is']('element','tableCell')){const _0x2fae63=this['_getVidAttributeName'](_0xe2af6f),_0x1aabb3=_0xe2af6f['item']['getAttribute'](_0x2fae63);if(_0x7aa600['has'](_0x1aabb3)){const _0x287b2a=_0xe2af6f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a7ba5=_0x594494['get'](_0x287b2a)||new Set();_0x5a7ba5['add'](_0x7aa600['get'](_0x1aabb3)['userId']),_0x594494['set'](_0x287b2a,_0x5a7ba5);}}for(const _0x1f161b of _0x594494['keys']())(_0x252558['has'](_0x1f161b)||_0x7aa600['has'](_0x1f161b))&&_0x594494['delete'](_0x1f161b);}for(const _0x45e4db of _0x39a25a){const _0x55c908=_0x569c5f['insertions'][_0x45e4db];let _0x28e1bb=null,_0x2d9428=null;for(const _0x1ec2fd of _0x55c908){const _0x55d798=this['_getVidAttributeName'](_0x1ec2fd),_0x2d8f23=_0x1ec2fd['item']['getAttribute'](_0x55d798),_0x1591e8=_0x594494['get'](_0x2d8f23);_0x1591e8&&'elementStart'==_0x1ec2fd['type']&&(_0x28e1bb=Array['from'](_0x1591e8)[0x0],_0x2d9428=_0x1ec2fd['item']['getAttribute']('vid_end')),_0x28e1bb&&(_0x7aa600['set'](_0x2d8f23,{'userId':_0x28e1bb}),_0x252558['set'](_0x2d8f23,{'userId':_0x28e1bb})),_0x2d8f23==_0x2d9428&&(_0x28e1bb=null,_0x2d9428=null);}}const _0x9184a1={},_0x566cff=new Set();for(const _0x2c5fc3 of _0x39a25a){const _0x31cc4d=_0x5abea9['deletions'][_0x2c5fc3],_0x42645d=_0x5abea9['insertions'][_0x2c5fc3];for(const {userId:_0x3a91d3}of this['_touchedMarkers']['values']())null!==_0x3a91d3&&_0x566cff['add'](_0x3a91d3);for(const {userId:_0x1ac8d3}of this['_touchedRoots']['values']())null!==_0x1ac8d3&&_0x566cff['add'](_0x1ac8d3);this['_markChanges'](_0x42645d,_0x569c5f['insertions'][_0x2c5fc3],_0x252558,'insertion',_0x566cff),this['_markChanges'](_0x31cc4d,_0x569c5f['deletions'][_0x2c5fc3],_0x7aa600,'deletion',_0x566cff),_0x9184a1[_0x2c5fc3]={'insertions':this['_prepareViewToSave'](_0x42645d),'deletions':this['_prepareViewToSave'](_0x31cc4d),'attachChange':this['_touchedRoots']['get'](_0x2c5fc3)||null,'attributesBefore':_0x186736(this['_baseRootsAttributes']['get'](_0x2c5fc3))||{},'attributesAfter':_0x186736(this['_diffRootsAttributes']['get'](_0x2c5fc3))};}return{'diffData':_0x9184a1,'authorsIds':Array['from'](_0x566cff)};}['_processRootBeforeSave'](_0x160ba7){for(const [,_0x3ec349]of _0x160ba7['markers']){const _0x592a68=_0x3ec349['start']['getAncestors']()['filter'](_0x13742e=>'tableCell'==_0x13742e['name']);for(const _0x5e8bf3 of _0x592a68)0x1==_0x5e8bf3['childCount']&&_0x5e8bf3['getChild'](0x0)['is']('element','paragraph')&&_0x5e8bf3['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d30d5){this['_processRootBeforeSave'](_0x5d30d5);const _0x44ce7a=this['editor']['data']['toView'](_0x5d30d5,{}),_0x203903=Array['from'](_0x44ce7a['getChildren']())['map'](_0x371ce9=>this['_getViewJson'](_0x371ce9));return JSON['stringify'](_0x203903);}['_getViewJson'](_0x7063db){if(_0x7063db['is']('$text'))return _0x7063db['data'];{const _0x1a3343=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x10b39a=_0x7063db,_0x2250fa=this['editor']['data']['htmlProcessor']['domConverter'],_0x5b5a61={'type':_0x1a3343['_getTypeCharForViewElement'](_0x10b39a),'name':_0x10b39a['name'],'attributes':Array['from'](_0x10b39a['getAttributes']()),'children':Array['from'](_0x10b39a['getChildren']())['map'](_0x4b3f89=>this['_getViewJson'](_0x4b3f89))};if(_0x7063db['is']('uiElement')&&'$comment'!=_0x7063db['name']){const _0x1a15ba=_0x7063db['render'](_0x2250fa['domDocument'],_0x2250fa);_0x5b5a61['children']['push'](_0x1a15ba['outerHTML']);}else{if(_0x7063db['is']('rawElement')){const _0x1d36d7=_0x2250fa['domDocument']['createElement'](_0x10b39a['name']);_0x7063db['render'](_0x1d36d7,_0x2250fa),_0x5b5a61['children']['push'](_0x1d36d7['innerHTML']);}}const _0x2e22e7=Array['from'](_0x10b39a['getCustomProperties']());_0x2e22e7['length']>0x0&&(_0x5b5a61['customProperties']=_0x2e22e7);const _0x34be6d=_0x10b39a['getFillerOffset']();return null!==_0x34be6d&&(_0x5b5a61['fillerOffset']=_0x34be6d),_0x5b5a61;}}['_markChanges'](_0x42aeda,_0x2ff75d,_0x185418,_0x1235a0,_0x3d958a){let _0x3d6af6=null,_0x33d593=null,_0x47b764=0x0;const _0x33be04=this['editor']['model'];for(let _0x2fbacd=0x0;_0x2fbacd<_0x2ff75d['length'];_0x2fbacd++){const _0x338245=this['_getVidAttributeName'](_0x2ff75d[_0x2fbacd]),_0x10a558=_0x2ff75d[_0x2fbacd]['item']['getAttribute'](_0x338245),_0x1d21e4=_0x185418['get'](_0x10a558),_0x3ef565=_0x2fbacd==_0x2ff75d['length']-0x1;(!_0x3d6af6&&_0x1d21e4&&(_0x3d6af6=_0x1d21e4,_0x33d593=_0x2ff75d[_0x2fbacd]),_0x3d6af6&&(!_0x1d21e4||_0x1d21e4['userId']!=_0x3d6af6['userId']))&&(_0x3c3a5a(_0x1d21e4,F(_0x33d593,_0x42aeda,_0x33be04),F(_0x2ff75d[_0x2fbacd],_0x42aeda,_0x33be04)),_0x3d6af6=_0x1d21e4||null,_0x33d593=_0x1d21e4?_0x2ff75d[_0x2fbacd]:null),_0x3d6af6&&_0x3ef565&&_0x3c3a5a(_0x1d21e4,F(_0x33d593,_0x42aeda,_0x33be04),B(_0x2ff75d[_0x2fbacd],_0x42aeda,_0x33be04));}function _0x3c3a5a(_0x45b654,_0x48b5b6,_0x518532){const _0x4099b5=_0x3d6af6['userId'],_0x49c664='revision:'+_0x1235a0+':'+_0x4099b5+':'+_0x47b764++,_0x3bf961=_0x33be04['createRange'](_0x48b5b6,_0x518532);_0x42aeda['markers']['set'](_0x49c664,_0x3bf961),null!==_0x4099b5&&_0x3d958a['add'](_0x4099b5);}}['_getVidAttributeName'](_0x3524af){switch(_0x3524af['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x38d77f,_0x20c138){_0x38d77f['baseVersion']=null;for(const _0x8fca68 in _0x38d77f){const _0x192052=_0x38d77f[_0x8fca68];if(_0x192052 instanceof vt){const _0x292953=_0x20c138['get'](_0x192052['root']['rootName']);_0x38d77f[_0x8fca68]=this['_fixPosition'](_0x192052,_0x292953);}if(_0x192052 instanceof ft){const _0x506f50=_0x20c138['get'](_0x192052['root']['rootName']);_0x38d77f[_0x8fca68]=this['_fixRange'](_0x192052,_0x506f50);}'root'===_0x8fca68&&(_0x38d77f['root']=_0x20c138['get'](_0x38d77f['root']['rootName']));}}['_fixRange'](_0x54a345,_0x382694){return this['editor']['model']['createRange'](this['_fixPosition'](_0x54a345['start'],_0x382694),this['_fixPosition'](_0x54a345['end'],_0x382694));}['_fixPosition'](_0x23cd26,_0x12d61b){return this['editor']['model']['createPositionFromPath'](_0x12d61b,_0x23cd26['path'],_0x23cd26['stickiness']);}['_handleInsertOperation'](_0x1c1127){const _0x4db41a=this['_idsRoots']['get'](_0x1c1127['position']['root']['rootName']),_0x8fdf94=this['_fixPosition'](_0x1c1127['position'],_0x4db41a),_0x2e87b5=null===_0x1c1127['_authorId']?null:_0x1c1127['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29ed12=_0x8fdf94['parent'],_0x488fef=this['_revisionId'],_0x4b1c56=[];for(const _0x16b93a of _0x1c1127['nodes'])if(_0x16b93a['is']('element'))_0x4b1c56['push'](this['_makeIdsRoot'](_0x16b93a));else{for(let _0x301d3f=0x0;_0x301d3f<_0x16b93a['offsetSize'];_0x301d3f++)_0x4b1c56['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4fe048=this['_revisionId'];for(let _0xe9238d=_0x488fef;_0xe9238d<_0x4fe048;_0xe9238d++)this['_touched']['set'](_0xe9238d,{'userId':_0x2e87b5});_0x29ed12['_insertChild'](_0x8fdf94['offset'],_0x4b1c56);}['_handleMoveOperation'](_0x140367){(_0x140367=this['_cloneOperation'](_0x140367,this['_idsRoots']))['_execute']();const _0x587414=null===_0x140367['_authorId']?null:_0x140367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4cf026=_0x140367['getMovedRangeStart'](),_0x1fb68d=_0x4cf026['parent'],_0x275232=_0x4cf026['offset'];!function _0x90dd96(_0x90ca29,_0x24852b,_0x28339f,_0x5733d6){for(let _0x521488=_0x28339f;_0x521488<_0x5733d6;_0x521488++){const _0x3737b5=_0x24852b['getChild'](_0x521488);_0x3737b5['is']('element','$text')?_0x90ca29['set'](_0x3737b5['getAttribute']('vid'),{'userId':_0x587414}):(_0x90ca29['set'](_0x3737b5['getAttribute']('vid_start'),{'userId':_0x587414}),_0x90dd96(_0x90ca29,_0x3737b5,0x0,_0x3737b5['childCount']),_0x90ca29['set'](_0x3737b5['getAttribute']('vid_end'),{'userId':_0x587414}));}}(this['_touched'],_0x1fb68d,_0x275232,_0x275232+_0x140367['howMany']);}['_handleMergeOperation'](_0x47943b){const _0x4cf48a=null===(_0x47943b=this['_cloneOperation'](_0x47943b,this['_idsRoots']))['_authorId']?null:_0x47943b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1198bd=_0x47943b['targetPosition']['parent'],_0x36e4b3=_0x47943b['sourcePosition']['parent'],_0x507288=_0x1198bd['getAttribute']('vid_end'),_0x12449c=_0x36e4b3['getAttribute']('vid_start');_0x1198bd['_setAttribute']('vid_end',_0x36e4b3['getAttribute']('vid_end')),_0x36e4b3['_setAttribute']('vid_end',_0x507288),this['_touched']['set'](_0x12449c,{'userId':_0x4cf48a}),this['_touched']['set'](_0x507288,{'userId':_0x4cf48a}),_0x47943b['_execute']();}['_handleSplitOperation'](_0x136bc7){const _0x2edc77=null===(_0x136bc7=this['_cloneOperation'](_0x136bc7,this['_idsRoots']))['_authorId']?null:_0x136bc7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd0e2d8=_0x136bc7['graveyardPosition'],_0x5277ad=_0x136bc7['splitPosition']['parent'];_0x136bc7['_execute']();const _0x16d90e=_0x5277ad['getAttribute']('vid_end'),_0x1346a5=_0x136bc7['insertionPosition']['nodeAfter'];if(_0xd0e2d8){const _0x2a5221=_0x1346a5['getAttribute']('vid_end'),_0x15c6be=_0x5277ad['getAttribute']('vid_end');_0x5277ad['_setAttribute']('vid_end',_0x2a5221),_0x1346a5['_setAttribute']('vid_end',_0x15c6be),this['_touched']['set'](_0x5277ad['getAttribute']('vid_end'),{'userId':_0x2edc77}),this['_touched']['set'](_0x1346a5['getAttribute']('vid_start'),{'userId':_0x2edc77});}else{const _0x388b4c=this['_revisionId']++,_0x48f736=this['_revisionId']++;_0x5277ad['_setAttribute']('vid_end',_0x388b4c),_0x1346a5['_setAttribute']('vid_start',_0x48f736),_0x1346a5['_setAttribute']('vid_end',_0x16d90e),this['_touched']['set'](_0x388b4c,{'userId':_0x2edc77}),this['_touched']['set'](_0x48f736,{'userId':_0x2edc77});}}['_handleMarkerOperation'](_0x8c5b65){if(!_0x8c5b65['affectsData'])return;const _0xd320cd=(_0x8c5b65=this['_cloneOperation'](_0x8c5b65,this['_diffRoots']))['oldRange']?_0x8c5b65['oldRange']['root']:null,_0x5ead2d=_0x8c5b65['newRange']?_0x8c5b65['newRange']['root']:null;_0xd320cd&&this['_markers']['delete'](_0x8c5b65['name']),_0x5ead2d&&this['_markers']['set'](_0x8c5b65['name'],_0x8c5b65['newRange']['clone']());const _0x180fd6=null===_0x8c5b65['_authorId']?null:_0x8c5b65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3784ca=_0x8c5b65['name'];if(!this['_touchedMarkers']['has'](_0x3784ca))return void this['_touchedMarkers']['set'](_0x3784ca,{'range':_0x8c5b65['oldRange'],'userId':_0x180fd6});const _0x315b95=this['_touchedMarkers']['get'](_0x3784ca),_0x250159=_0x315b95['range'],_0x2ece70=_0x8c5b65['newRange'];null==_0x250159&&null==_0x2ece70||_0x250159&&_0x2ece70&&_0x250159['isEqual'](_0x2ece70)?this['_touchedMarkers']['delete'](_0x8c5b65['name']):_0x315b95['userId']=_0x180fd6;}['_handleRootOperation'](_0x58acdf,_0x3aefb8){this['_diffRoots']['has'](_0x58acdf['rootName'])?this['_diffRoots']['get'](_0x58acdf['rootName'])['_isAttached']=_0x58acdf['isAdd']:(this['_diffRoots']['set'](_0x58acdf['rootName'],P(_0x58acdf['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x58acdf['rootName'],{}),_0x3aefb8&&this['_idsRoots']['set'](_0x58acdf['rootName'],P(_0x58acdf['rootName'],!0x0)));const _0x2846f6=null===_0x58acdf['_authorId']?null:_0x58acdf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575afb=this['_touchedRoots']['get'](_0x58acdf['rootName']);_0x575afb&&_0x575afb['userId']===_0x2846f6?this['_touchedRoots']['delete'](_0x58acdf['rootName']):this['_touchedRoots']['set'](_0x58acdf['rootName'],{'userId':_0x2846f6,'isAttached':_0x58acdf['isAdd']});}['_handleRootAttributeOperation'](_0x3e181e){const _0x304d7b=this['_diffRootsAttributes']['get'](_0x3e181e['root']['rootName']);null===_0x3e181e['newValue']?delete _0x304d7b[_0x3e181e['key']]:_0x304d7b[_0x3e181e['key']]=_0x3e181e['newValue'];}}function N(_0x2dd113){const _0x23cb66=P(_0x2dd113['rootName'],_0x2dd113['isAttached']());for(const _0x315a59 of _0x2dd113['getChildren']()){const _0xf6b6f0=_0x315a59['_clone'](!0x0);_0x23cb66['_appendChild'](_0xf6b6f0);}return _0x23cb66;}function P(_0x29077c,_0x3f85a4=!0x0){const _0x46364d=new gt();return _0x46364d['rootName']=_0x29077c,_0x46364d['_isAttached']=_0x3f85a4,_0x46364d['isAttached']=()=>_0x46364d['_isAttached'],_0x46364d;}function F(_0x36ad26,_0x6ef5d5,_0x435cf1){const _0xfd6153='elementEnd'==_0x36ad26['type']?_0x435cf1['createPositionAt'](_0x36ad26['item'],'end'):_0x435cf1['createPositionBefore'](_0x36ad26['item']);return _0x435cf1['createPositionFromPath'](_0x6ef5d5,_0xfd6153['path'],_0xfd6153['stickiness']);}function B(_0x4602a9,_0x36d9c2,_0x32bd5a){const _0x4b8603='elementStart'==_0x4602a9['type']?_0x32bd5a['createPositionAt'](_0x4602a9['item'],0x0):_0x32bd5a['createPositionAfter'](_0x4602a9['item']);return _0x32bd5a['createPositionFromPath'](_0x36d9c2,_0x4b8603['path'],_0x4b8603['stickiness']);}class os extends _0x1a952d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xd83310,_0x18956f){super(_0xd83310),this['focusTracker']=new _0x361897(),this['keystrokes']=new _0x224712(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x18956f),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'](),_0x27b1ea({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5cbf9d=_0x15265e=>_0x15265e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5cbf9d),this['keystrokes']['set']('arrowleft',_0x5cbf9d),this['keystrokes']['set']('arrowup',_0x5cbf9d),this['keystrokes']['set']('arrowdown',_0x5cbf9d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x28c611){this['revisionNameInputView']['fieldView']['element']['value']=_0x28c611['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x219571){const _0x4a2bd9=new nt(this['locale'],ti),_0x1c98c8=_0x4a2bd9['fieldView'];_0x1c98c8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x8d99fd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x219571&&(_0x8d99fd+='\x20('+g(this['locale'],'optional')+')'),(_0x4a2bd9['label']=_0x8d99fd,_0x1c98c8['on']('input',()=>{this['revisionNameInputValue']=_0x1c98c8['element']['value']['trim']();}),_0x4a2bd9);}}class f extends _0x46f453{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4e67db=this['editor'],_0x1f9269=_0x4e67db['plugins']['get']('RevisionTracker');_0x4e67db['ui']['componentFactory']['add']('revisionHistory',_0x237f39=>{const _0x41673d=_0x206e66(_0x237f39),_0x20dd26=_0x41673d['panelView']['children'],_0x2df1ab=new _0x322c4b(_0x237f39),_0x48ed23=new te(_0x237f39),_0x1519cc=new _0x1b8fcb(_0x237f39),_0x23beb0=new te(_0x237f39),_0x2f2e80=new _0x1b8fcb(_0x237f39);return _0x41673d['bind']('isEnabled')['to'](_0x1f9269,'isReady',_0x1f9269,'isEnabled',_0x4e67db,'isReadOnly',(_0x1c7687,_0x10ffdf,_0x16c2d6)=>_0x1c7687&&_0x10ffdf&&!_0x16c2d6),_0x41673d['buttonView']['set']({'icon':_0x4cdf1c,'label':g(_0x237f39,'Revision\x20history'),'tooltip':!0x0}),_0x1519cc['set']({'label':g(_0x237f39,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1519cc['bind']('isEnabled')['to'](_0x1f9269,'isReady',_0x1f9269,'isEnabled',_0x4e67db,'isReadOnly',(_0x49a074,_0x5c3dbe,_0x5bc88a)=>_0x49a074&&_0x5c3dbe&&!_0x5bc88a),_0x1519cc['on']('execute',()=>this['_showDialog']()),_0x2f2e80['set']({'label':g(_0x237f39,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2f2e80['bind']('isEnabled')['to'](_0x1f9269,'isReady',_0x4e67db,'isReadOnly',(_0x41be52,_0x1516dd)=>_0x41be52&&!_0x1516dd),_0x2f2e80['on']('execute',()=>{_0x4e67db['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41673d['isOpen']=!0x1,_0x4e67db['editing']['view']['focus']();}),_0x48ed23['children']['add'](_0x1519cc),_0x23beb0['children']['add'](_0x2f2e80),_0x2df1ab['role']='menu',_0x2df1ab['items']['addMany']([_0x48ed23,_0x23beb0]),_0x20dd26['add'](_0x2df1ab),_0x41673d;}),_0x4e67db['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x29941c=this['editor'],_0xdc9777=_0x29941c['locale'],_0x14746e=new _0x1b6528(_0xdc9777),_0xab47eb=new _0xcb4d04(_0xdc9777);_0x14746e['buttonView']['set']({'icon':_0x4cdf1c,'label':g(_0xdc9777,'Revision\x20history')});const _0x5f4309=new _0x4838e9(_0xdc9777,_0x14746e),_0x4decad=new _0x382814(_0xdc9777);_0x4decad['set']({'label':g(_0xdc9777,'Save\x20current\x20revision')}),_0x4decad['delegate']('execute')['to'](_0x14746e),_0x4decad['on']('execute',()=>{this['_showDialog']();}),_0x5f4309['children']['add'](_0x4decad),_0xab47eb['items']['add'](_0x5f4309);const _0x3657ba=new _0x4838e9(_0xdc9777,_0x14746e),_0x788afd=new _0x382814(_0xdc9777);return _0x788afd['set']({'label':g(_0xdc9777,'Open\x20revision\x20history')}),_0x788afd['delegate']('execute')['to'](_0x14746e),_0x788afd['on']('execute',()=>{_0x29941c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3657ba['children']['add'](_0x788afd),_0xab47eb['items']['add'](_0x3657ba),_0x14746e['panelView']['children']['add'](_0xab47eb),_0x14746e;}['_showDialog'](){const _0x3d1a58=this['editor'],_0x5e74f2=_0x3d1a58['locale'],_0x51dc0c=_0x3d1a58['plugins']['get']('Dialog'),_0x2d5611=_0x3d1a58['plugins']['get']('RevisionTracker');function _0x425703(_0x53b4b4){_0x3d1a58['config']['get']('revisionHistory.requireRevisionName')&&''===_0x53b4b4['revisionName']?_0x53b4b4['revisionNameInputView']['errorText']=g(_0x5e74f2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3d1a58['plugins']['get'](u)['saveRevision']({'name':_0x53b4b4['revisionName']}),_0x51dc0c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x425703(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x51dc0c['show']({'id':'revisionSave','title':g(_0x5e74f2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3d1a58['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x51dc0c['hide']()},{'label':g(_0x3d1a58['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x40bbea){_0x40bbea['bind']('isEnabled')['to'](_0x2d5611,'isReady',_0x2d5611,'isEnabled',_0x3d1a58,'isReadOnly',(_0x46a240,_0x47ddf4,_0x1fa1f8)=>_0x46a240&&_0x47ddf4&&!_0x1fa1f8);},'onExecute':()=>_0x425703(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3909e6=this['editor'],_0x124285=_0x3909e6['locale'];this['_saveRevisionFormView']=new os(_0x124285,_0x3909e6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x1a952d{['changeId'];['_model'];constructor(_0x588987,_0x1a5d84){super(_0x588987),this['_model']=_0x1a5d84,this['changeId']=_0x1a5d84['id'];const _0x17a775=this['bindTemplate'],_0x1c9839=g(_0x588987,_0x1a5d84['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1a5d84['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1a5d84['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x17a775['to']('type',_0x623632=>'ck-revision-change__'+_0x623632)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1c9839}]},{'text':'\x20'+_0x1a5d84['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4c4bcc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x160b1d){super(),this['id']=_0x160b1d['id']||_0x40eb95(),this['author']=_0x160b1d['author'],this['type']=_0x160b1d['type'],this['data']=_0x160b1d['data']||{},this['rootName']=_0x160b1d['rootName'],this['set']('createdAt',_0x160b1d['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(_0x12a44f,_0x5c2f5d){this['newRevisionId']=_0x12a44f,this['oldRevisionId']=_0x5c2f5d,this['changes']=new _0xd190b7();}['_setChanges'](_0x18d0db){for(const _0x6873cc of _0x18d0db)this['changes']['add'](_0x6873cc);}}class m extends _0x46f453{['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[_0x2e21a7,_0x50e5cc,I,V];}constructor(_0x4e9e8e){super(_0x4e9e8e),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',(_0xe53d5,_0x45a0fe,_0x33c243)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2e7ca3=>{for(const _0x13a52d of this['editor']['editing']['view']['document']['roots'])_0x33c243?_0x2e7ca3['removeClass']('ck-editor__editable__overlay',_0x13a52d):_0x2e7ca3['addClass']('ck-editor__editable__overlay',_0x13a52d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x112e6f=>null!==_0x112e6f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5720df,_0x2fa093,_0x69f012)=>_0x5720df&&_0x69f012?_0x2fa093['changes']['getIndex'](_0x69f012):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4ae2b2,_0x35f606)=>_0x4ae2b2?_0x35f606['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x50e5cc);}['init'](){const _0x4095db=this['editor'],_0x158c31=new pt(_0x4095db,{'direction':'backward'}),_0x23f824=new pt(_0x4095db,{'direction':'forward'});(_0x4095db['commands']['add']('showPreviousChange',_0x158c31),_0x4095db['commands']['add']('showNextChange',_0x23f824),_0x4095db['commands']['add']('restoreRevision',new wt(_0x4095db)),this['on']('change:numberOfChanges',()=>{_0x158c31['refresh'](),_0x23f824['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4095db['enableReadOnlyMode']('revision-viewer'),_0x4095db['plugins']['has']('WidgetToolbarRepository'))&&_0x4095db['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x329300){return await this['_utils']['loadRevisionData'](_0x329300,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x329300);}async['getRevisionRootsAttributes'](_0x24e9ee){return await this['_utils']['loadRevisionData'](_0x24e9ee,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x24e9ee);}async['compare'](_0x4198a4,_0x1dd9b1,_0x229a47=!0x1){if(!this['isEnabled'])return;const _0x476916=this['diff'],_0x3f5ff3=this['repository'],_0xd932de='string'==typeof _0x4198a4?_0x3f5ff3['getRevision'](_0x4198a4):_0x4198a4,_0x5cdf46='string'==typeof _0x1dd9b1?_0x3f5ff3['getRevision'](_0x1dd9b1):_0x1dd9b1,_0xbcf0f4=_0xd932de['id'],_0x5c892e=_0x5cdf46?_0x5cdf46['id']:null;if(!_0x229a47&&this['diff']&&this['diff']['newRevisionId']===_0xbcf0f4&&this['diff']['oldRevisionId']===_0x5c892e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xbcf0f4,_0x5c892e);const _0x30efa1=this['_getRevisionsRange'](_0xd932de,_0x5cdf46,!0x0)['map'](_0x108280=>this['_utils']['loadRevisionData'](_0x108280,this['adapter']));return _0x30efa1['push'](new Promise(_0x33c338=>{setTimeout(_0x33c338,0x14);})),Promise['all'](_0x30efa1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x354426=this['_getDiff'](_0xbcf0f4,_0x5c892e);for(const _0x3508c6 of _0x354426['changes'])this['_changeIdToChange']['set'](_0x3508c6['id'],_0x3508c6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x56b46e=>{for(const _0x4a43c5 of this['editor']['model']['document']['getRootNames']())_0x56b46e['detachRoot'](_0x4a43c5);for(const _0x576e5b of Object['keys'](_0x354426['model'])){const _0x27b864=_0x56b46e['addRoot'](_0x576e5b);for(const _0x41c29f of Object['keys'](_0x354426['attributes'][_0x576e5b]))_0x56b46e['setAttribute'](_0x41c29f,_0x354426['attributes'][_0x576e5b][_0x41c29f],_0x27b864);_0x56b46e['insert'](_0x354426['model'][_0x576e5b],_0x27b864,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x354426['changes'])),this['isReady']=!0x0;})['catch'](_0xae3f28=>{console['error'](_0xae3f28),this['_cleanUp'](),_0x476916&&(this['diff']=_0x476916),this['isReady']=!0x0;});}['addRevisionData'](_0x51389c,_0x11abf0){const _0x5307e3=this['repository']['createRevision'](_0x51389c);return _0x5307e3['on']('_update',(_0x1d0203,_0x2c6834,_0x2108e6)=>_0x11abf0(_0x2c6834,_0x2108e6,_0x5307e3)),this['repository']['addRevision'](_0x5307e3),_0x5307e3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10790e=>{for(const _0xf45466 of this['editor']['model']['document']['getRootNames']())_0x10790e['detachRoot'](_0xf45466);});}['_sortAndFilterDiffChanges'](_0x462b8c){const _0x1c1ca2=[],_0x23defe=new Map();for(const _0x212a29 of this['editor']['model']['document']['getRootNames']()){const _0x43190f=this['editor']['editing']['view']['getDomRoot'](_0x212a29);if(!_0x43190f)continue;const _0x246b57=_0x43190f['getClientRects']()['item'](0x0);_0x246b57&&(_0x1c1ca2['push'](_0x212a29),_0x23defe['set'](_0x212a29,_0x246b57));}return _0x1c1ca2['sort']((_0x25ecc4,_0x50945a)=>{const _0x465ea8=_0x23defe['get'](_0x25ecc4),_0x839576=_0x23defe['get'](_0x50945a);return _0x465ea8['y']-_0x839576['y']||_0x465ea8['x']-_0x839576['x'];}),(_0x462b8c=_0x462b8c['filter'](_0x5d4b04=>_0x1c1ca2['includes'](_0x5d4b04['rootName'])))['sort']((_0x2e13ae,_0x2ff416)=>_0x1c1ca2['indexOf'](_0x2e13ae['rootName'])-_0x1c1ca2['indexOf'](_0x2ff416['rootName'])),_0x462b8c;}['_makeTape'](_0x4cc2d8){const _0x2bc37c=Array['from'](_0x4cc2d8['markers'])['filter'](([_0x54098f,_0x357d2e])=>_0x54098f['startsWith']('revision:')&&!_0x357d2e['isCollapsed']),_0x4ac2e6=Array['from'](this['editor']['model']['createRangeIn'](_0x4cc2d8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2bc37c['length'])for(const _0x368a39 of _0x4ac2e6){const [_0x50d735,_0x43afd8]=_0x2bc37c[0x0],[,_0x4fd47c,_0x960302]=_0x50d735['split'](':');if(_0x43afd8['end']['isEqual'](_0x368a39['nextPosition'])&&_0x2bc37c['shift'](),(_0x368a39['previousPosition']['isEqual'](_0x43afd8['start'])||_0x368a39['previousPosition']['isAfter'](_0x43afd8['start']))&&('insertion'==_0x4fd47c?_0x368a39['isAdded']={'userId':_0x960302}:'deletion'==_0x4fd47c&&(_0x368a39['isRemoved']={'userId':_0x960302})),0x0==_0x2bc37c['length'])break;}return _0x4ac2e6;}['_refreshStartEndIndex'](_0x2296f2){const _0x44795f=new Map();for(let _0x5758b1=0x0;_0x5758b1<_0x2296f2['length'];_0x5758b1++)'text'===_0x2296f2[_0x5758b1]['type']?(_0x2296f2[_0x5758b1]['item']['startIndex']=_0x5758b1,_0x2296f2[_0x5758b1]['item']['endIndex']=_0x5758b1):('elementStart'===_0x2296f2[_0x5758b1]['type']?_0x2296f2[_0x5758b1]['item']['startIndex']=_0x5758b1:'elementEnd'===_0x2296f2[_0x5758b1]['type']&&(_0x2296f2[_0x5758b1]['item']['endIndex']=_0x5758b1),_0x44795f['set'](_0x2296f2[_0x5758b1]['id'],_0x5758b1));for(const _0x35220c of _0x44795f['values']())'elementStart'===_0x2296f2[_0x35220c]['type']?_0x2296f2[_0x35220c]['item']['endIndex']=_0x44795f['get'](_0x2296f2[_0x35220c]['pairId']):'elementEnd'===_0x2296f2[_0x35220c]['type']&&(_0x2296f2[_0x35220c]['item']['startIndex']=_0x44795f['get'](_0x2296f2[_0x35220c]['pairId']));}['_processTape'](_0x2ff569){for(let _0x306dd1=0x0;_0x306dd1<_0x2ff569['length'];_0x306dd1++){if('elementStart'===_0x2ff569[_0x306dd1]['type'])_0x2ff569[_0x306dd1]['item']['startIndex']=_0x306dd1;else{if('elementEnd'===_0x2ff569[_0x306dd1]['type']){_0x2ff569[_0x306dd1]['item']['endIndex']=_0x306dd1;const _0x5c7ccc=_0x2ff569[_0x306dd1]['item']['startIndex'];_0x2ff569[_0x5c7ccc]['pairId']=_0x2ff569[_0x306dd1]['id'],_0x2ff569[_0x306dd1]['pairId']=_0x2ff569[_0x5c7ccc]['id'];}else _0x2ff569[_0x306dd1]['item']['startIndex']=_0x306dd1,_0x2ff569[_0x306dd1]['item']['endIndex']=_0x306dd1,_0x2ff569[_0x306dd1]['pairId']=null;}_0x2ff569[_0x306dd1]['markersStart']||(_0x2ff569[_0x306dd1]['markersStart']=[],_0x2ff569[_0x306dd1]['markersEnd']=[]);}}['_markInsertions'](_0x5c6f0f,_0x366d45){const _0x9f4e29=_0x5c6f0f['filter'](_0x51269b=>!_0x51269b['isAdded']);for(let _0xea5508=0x0;_0xea5508<_0x366d45['length'];_0xea5508++)_0x366d45[_0xea5508]['isAdded']&&(_0x9f4e29[_0xea5508]['isAdded']=_0x366d45[_0xea5508]['isAdded']);}['_getDiff'](_0x444861,_0x2aa529=null){const _0x53245c=this['repository']['getRevision'](_0x444861),_0x46b5f2=_0x2aa529?this['repository']['getRevision'](_0x2aa529):null,_0x1322df=this['_getRevisionsRange'](_0x53245c,_0x46b5f2),_0x338eaa=_0x1322df[_0x1322df['length']-0x1],_0x51a84d=new Map(),_0x10d315={'model':{},'attributes':{},'changes':[]},_0x51ce4c=new Set(),_0x56d456=new Map();for(let _0x66d4f8=_0x1322df['length']-0x1;_0x66d4f8>=0x0;_0x66d4f8--){const _0x5b7f6e=_0x1322df[_0x66d4f8];for(const _0x45534f of Object['keys'](_0x5b7f6e['diffData']))if(_0x5b7f6e['diffData'][_0x45534f]['attachChange']){const _0x5a6f0c=_0x5b7f6e['diffData'][_0x45534f]['attachChange'];_0x5a6f0c['isAttached']?(_0x51ce4c['add'](_0x45534f),_0x56d456['has'](_0x45534f)&&_0x56d456['get'](_0x45534f)['userId']==_0x5a6f0c['userId']?_0x56d456['delete'](_0x45534f):_0x56d456['set'](_0x45534f,_0x5a6f0c)):_0x56d456['has'](_0x45534f)?(_0x51ce4c['delete'](_0x45534f),_0x56d456['delete'](_0x45534f)):(_0x51ce4c['add'](_0x45534f),_0x56d456['set'](_0x45534f,_0x5a6f0c));}else _0x51ce4c['add'](_0x45534f);}for(const _0x293f88 of _0x51ce4c){const _0x4bfd31=_0x56d456['has'](_0x293f88)&&!_0x56d456['get'](_0x293f88)['isAttached'];let _0x37e318=_0x4bfd31?_0x1322df['length']-0x1:0x0;const _0x8c6ec3=_0x4bfd31?-0x1:0x1;for(;_0x1322df[_0x37e318];){const _0x2265f9=_0x1322df[_0x37e318];if(_0x2265f9['diffData'][_0x293f88]){const _0x52f542=_0x4bfd31?_0x2265f9['diffData'][_0x293f88]['attributesBefore']:_0x2265f9['diffData'][_0x293f88]['attributesAfter'];_0x10d315['attributes'][_0x293f88]=_0x52f542?_0x186736(_0x52f542):{};break;}_0x37e318+=_0x8c6ec3;}}for(const _0x13206a of _0x1322df){_0x13206a['model']={};for(const _0x2c8d38 of _0x13206a['authors'])_0x51a84d['set'](_0x2c8d38['id'],_0x2c8d38);for(const _0x565e55 of _0x51ce4c){const _0x2cac91=_0x13206a['diffData'][_0x565e55]?_0x13206a['diffData'][_0x565e55]['insertions']:'[]',_0x8ffca8=_0x13206a['diffData'][_0x565e55]?_0x13206a['diffData'][_0x565e55]['deletions']:'[]';_0x13206a['model'][_0x565e55]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2cac91),'deletions':this['_utils']['_makeModelFromViewString'](_0x8ffca8)};}}for(const _0x192773 of _0x51ce4c){let _0x588f94=null,_0x509861=0x0;const _0xc3ec3f=new Map(Array['from'](_0x53245c['model'][_0x192773]['insertions']['markers'])['filter'](([_0x1e8e62])=>!_0x1e8e62['startsWith']('revision:')));let _0xbea9f0=0x0;for(const _0x552232 of _0x1322df){const _0x628054=this['_makeTape'](_0x552232['model'][_0x192773]['insertions']);_0x552232==_0x53245c?(_0x588f94=_0x628054,_0x509861=_0x588f94['length'],_0x588f94['forEach'](_0x1f76ca=>{_0x1f76ca['id']=_0xbea9f0++;}),this['_processTape'](_0x588f94)):this['_markInsertions'](_0x588f94,_0x628054);const _0x150a34=_0x588f94['filter'](_0x518f7f=>!_0x518f7f['isAdded'])['map'](_0x5a329d=>_0x5a329d['id']);let _0x384043=0x0;const _0x3b82e7=this['_makeTape'](_0x552232['model'][_0x192773]['deletions']);_0x3b82e7['forEach'](_0x13b12e=>{_0x13b12e['isRemoved']?_0x13b12e['id']=_0x509861++:_0x13b12e['id']=_0x150a34[_0x384043++];}),this['_processTape'](_0x3b82e7),this['_setDistance'](_0x588f94,'isAdded'),this['_setDistance'](_0x3b82e7,'isRemoved'),_0x552232==_0x53245c&&this['_markMarkers'](_0x588f94,_0xc3ec3f),_0x588f94=this['_joinTapes'](_0x588f94,_0x3b82e7),this['_refreshStartEndIndex'](_0x588f94),this['_setDistance'](_0x588f94,'isRemoved');}_0x588f94=_0x588f94['filter'](_0x3dc2ff=>!(_0x3dc2ff['isAdded']&&_0x3dc2ff['isRemoved']));const _0x31895d=new Map(_0x338eaa['model'][_0x192773]['deletions']['markers']),_0x1376d2=new Set(_0xc3ec3f['keys']());for(const _0x46af51 of _0x31895d['keys']())_0x1376d2['delete'](_0x46af51);this['_markSuggestions'](_0x588f94,_0x1376d2),this['_fixObsoleteTags'](_0x588f94),_0x588f94=this['_removeMissingPairs'](_0x588f94),_0x588f94=this['_markMismatchedRemovedTags'](_0x588f94),_0x588f94=this['_removeUnsupportedChanges'](_0x588f94);const {root:_0x5d9183,changes:_0x4c0446}=this['_makeModelFromTape'](_0x588f94,_0x51a84d,_0x192773);_0x10d315['model'][_0x192773]=_0x5d9183;const _0x5cd5d3=_0x56d456['get'](_0x192773);if(_0x5cd5d3){const _0x440af1=_0x51a84d['get'](_0x5cd5d3['userId']),_0x412fbf=new r({'author':_0x440af1,'type':_0x5cd5d3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x192773});_0x4c0446['unshift'](_0x412fbf),_0x10d315['attributes'][_0x192773]['revisionHistoryAttachChange']=_0x412fbf['id'];}_0x10d315['changes']=_0x10d315['changes']['concat'](_0x4c0446);}return _0x10d315;}['_markMarkers'](_0x21a68e,_0x21e163){for(let _0x14ac01=0x0;_0x14ac01<_0x21a68e['length'];_0x14ac01++)for(const [_0xd1b452,_0x1465d]of _0x21e163)!_0x1465d['isCollapsed']&&_0x1465d['start']['isEqual'](_0x21a68e[_0x14ac01]['previousPosition'])&&_0x21a68e[_0x14ac01]['markersStart']['push'](_0xd1b452),_0x1465d['end']['isEqual'](_0x21a68e[_0x14ac01]['nextPosition'])&&_0x21a68e[_0x14ac01]['markersEnd']['push'](_0xd1b452);}['_joinTapes'](_0x15d476,_0xf4c055){let _0x207ac4=[],_0x25223c=0x0,_0x1a8dad=0x0;for(;_0x25223c<_0x15d476['length']||_0x1a8dad<_0xf4c055['length'];){const _0x461cfd=_0x15d476[_0x25223c]||{},_0x40607c=_0xf4c055[_0x1a8dad]||{};if(_0x461cfd['id']==_0x40607c['id'])_0x25223c++,_0x1a8dad++,_0x207ac4['push'](_0x461cfd);else{if(_0x40607c['isRemoved']&&_0x461cfd['isAdded']){const {commonTape:_0x754b5f,iEnd:_0x962a2,jEnd:_0x3e706b}=this['_threeWayMerge'](_0x15d476,_0x25223c,_0xf4c055,_0x1a8dad);_0x207ac4=_0x207ac4['concat'](_0x754b5f),_0x25223c=_0x962a2,_0x1a8dad=_0x3e706b;}else _0x40607c['isRemoved']?(_0x1a8dad++,_0x207ac4['push'](_0x40607c)):(_0x25223c++,_0x207ac4['push'](_0x461cfd));}}return _0x207ac4;}['_markSuggestions'](_0x39596b,_0x51f537){const _0x2d021e=[];for(let _0x31db33=0x0;_0x31db33<_0x39596b['length'];_0x31db33++){for(let _0x420f88=0x0;_0x420f88<_0x39596b[_0x31db33]['markersStart']['length'];_0x420f88++){const _0x503457=_0x39596b[_0x31db33]['markersStart'][_0x420f88];if(!_0x51f537['has'](_0x503457))continue;const {group:_0x147881,type:_0x19e2c2,authorId:_0xaeec04}=_0x34c03e(_0x503457);'revision-suggestion'!=_0x147881||'insertion'!=_0x19e2c2&&'deletion'!=_0x19e2c2||(_0x2d021e['unshift']({'type':_0x19e2c2,'name':_0x503457,'userId':_0xaeec04}),_0x39596b[_0x31db33]['markersStart']['splice'](_0x420f88,0x1),_0x420f88--);}_0x3aca69(_0x39596b[_0x31db33]);for(let _0x4b4c9f=0x0;_0x4b4c9f<_0x39596b[_0x31db33]['markersEnd']['length'];_0x4b4c9f++){const _0x5de77b=_0x39596b[_0x31db33]['markersEnd'][_0x4b4c9f];if(!_0x51f537['has'](_0x5de77b))continue;const {group:_0x32671a,type:_0x2d8288}=_0x34c03e(_0x5de77b);if('revision-suggestion'!=_0x32671a||'insertion'!=_0x2d8288&&'deletion'!=_0x2d8288)continue;_0x39596b[_0x31db33]['markersEnd']['splice'](_0x4b4c9f,0x1),_0x4b4c9f--;const _0x3f5f9c=_0x2d021e['findIndex'](_0xf73efb=>_0xf73efb['name']==_0x5de77b);_0x3f5f9c>-0x1&&_0x2d021e['splice'](_0x3f5f9c,0x1);}}function _0x34c03e(_0x1791e){const _0x1f568f=_0x1791e['split'](':');return{'group':_0x1f568f[0x0],'type':_0x1f568f[0x1],'subType':_0x1f568f['length']>=0x5?_0x1f568f[0x2]:null,'id':_0x1f568f['length']<0x5?_0x1f568f[0x2]:_0x1f568f[0x3],'authorId':_0x1f568f['length']<0x5?_0x1f568f[0x3]:_0x1f568f[0x4],'markerCount':0x6==_0x1f568f['length']?_0x1f568f[0x5]:null};}function _0x3aca69(_0x1dbbd5){for(let _0x3d5ab6=0x0;_0x3d5ab6<_0x2d021e['length'];_0x3d5ab6++){if(_0x1dbbd5['isAdded']&&'insertion'==_0x2d021e[_0x3d5ab6]['type']&&_0x1dbbd5['isAdded']['userId']==_0x2d021e[_0x3d5ab6]['userId'])return _0x1dbbd5['isAddSuggestion']=_0x2d021e[_0x3d5ab6],void delete _0x1dbbd5['isAdded'];if(!_0x1dbbd5['isAdded']&&!_0x1dbbd5['isRemoved']&&'deletion'==_0x2d021e[_0x3d5ab6]['type'])return void(_0x1dbbd5['isRemoveSuggestion']=_0x2d021e[_0x3d5ab6]);}}}['_setDistance'](_0x3ed273,_0x2dae45){let _0x3ef6b6=0x0,_0x47077d=!0x1;const _0x222fa2=new Map();for(const _0x4c09a1 of _0x3ed273)_0x4c09a1[_0x2dae45]?_0x47077d&&(_0x3ef6b6++,_0x47077d=!0x1):(_0x3ef6b6++,_0x47077d=!0x0),_0x222fa2['set'](_0x4c09a1['id'],_0x3ef6b6);for(let _0x566348=0x0;_0x566348<_0x3ed273['length'];_0x566348++){if('isRemoved'==_0x2dae45&&_0x3ed273[_0x566348]['isAdded']||'isAdded'==_0x2dae45&&_0x3ed273[_0x566348]['isRemoved'])continue;if('text'==_0x3ed273[_0x566348]['type']){_0x3ed273[_0x566348]['distance']=0x0;continue;}const _0x5b80e1=_0x222fa2['get'](_0x3ed273[_0x566348]['pairId']),_0x10e90d=_0x222fa2['get'](_0x3ed273[_0x566348]['id']);_0x3ed273[_0x566348]['distance']=_0x5b80e1-_0x10e90d;}}['_getRevisionsRange'](_0x19291b,_0x41b1f4,_0x119b05=!0x1){const _0x4aebd6=[];let _0x3dbbbe=this['repository']['getIndex'](_0x19291b),_0x1c0aae=this['repository']['getIndex'](_0x41b1f4);for(-0x1==_0x1c0aae&&(_0x1c0aae=this['repository']['_revisions']['length'],_0x119b05=!0x1);_0x3dbbbe<_0x1c0aae;)_0x4aebd6['push'](this['repository']['getRevision'](_0x3dbbbe)),_0x3dbbbe++;return _0x119b05&&_0x4aebd6['push'](this['repository']['getRevision'](_0x3dbbbe)),_0x4aebd6;}['_threeWayMerge'](_0xd89ffc,_0x1f49da,_0x5fbe7,_0x20115a){const _0x64f16b=this['editor']['model']['schema'];let _0x5264ba=_0x1f49da;for(;_0xd89ffc[_0x5264ba]&&_0xd89ffc[_0x5264ba]['isAdded'];)_0x5264ba++;let _0x2e1b6f=_0x20115a;for(;_0x5fbe7[_0x2e1b6f]&&_0x5fbe7[_0x2e1b6f]['isRemoved'];)_0x2e1b6f++;_0x28edc4(_0xd89ffc,_0x1f49da,_0x5264ba),_0x28edc4(_0x5fbe7,_0x20115a,_0x2e1b6f);const _0x2cb900=_0x5fbe7['slice'](_0x20115a,_0x2e1b6f)['concat'](_0xd89ffc['slice'](_0x1f49da,_0x5264ba));return _0x2cb900['sort']((_0x2f57ac,_0x53a6df)=>_0x2f57ac['side']!=_0x53a6df['side']?_0x2f57ac['side']-_0x53a6df['side']:_0x2f57ac['level']!=_0x53a6df['level']?_0x2f57ac['level']-_0x53a6df['level']:_0x2f57ac['distance']!=_0x53a6df['distance']?_0x53a6df['distance']-_0x2f57ac['distance']:!!_0x2f57ac['isAdded']!=!!_0x53a6df['isAdded']?-0x1==_0x2f57ac['side']||0x0==_0x2f57ac['side']?_0x2f57ac['isAdded']?-0x1:0x1:_0x2f57ac['isAdded']?0x1:-0x1:_0x2f57ac['index']-_0x53a6df['index']),{'commonTape':_0x2cb900,'iEnd':_0x5264ba,'jEnd':_0x2e1b6f};function _0x28edc4(_0x1699a4,_0x12f9f8,_0x389aa0){let _0x231fc8=-0x1,_0x2631f6=Number['POSITIVE_INFINITY'],_0x5425cc=!0x0;for(let _0x59ade6=_0x12f9f8;_0x59ade6<_0x389aa0;_0x59ade6++)if(_0x64f16b['isInline'](_0x1699a4[_0x59ade6]['item'])||(_0x5425cc=!0x1),_0x1699a4[_0x59ade6]['item']['startIndex']<_0x12f9f8&&(_0x231fc8=_0x59ade6),_0x1699a4[_0x59ade6]['item']['endIndex']>=_0x389aa0){_0x2631f6=_0x59ade6;break;}_0x5425cc&&(_0x231fc8=_0x389aa0-0x1);for(let _0x44810b=_0x12f9f8;_0x44810b<_0x389aa0;_0x44810b++)_0x1699a4[_0x44810b]['side']=_0x44810b<=_0x231fc8?-0x1:_0x44810b<_0x2631f6?0x0:0x1,_0x1699a4[_0x44810b]['index']=_0x44810b;let _0x5bec65=0x0;for(let _0x444cb0=_0x12f9f8;_0x444cb0<=_0x231fc8;_0x444cb0++)0x0==_0x1699a4[_0x444cb0]['distance']?_0x1699a4[_0x444cb0]['level']=_0x5bec65:(_0x5bec65++,_0x1699a4[_0x444cb0]['level']=_0x5bec65,_0x5bec65++);for(let _0x1cf430=_0x12f9f8;_0x1cf430<_0x389aa0;_0x1cf430++)0x0==_0x1699a4[_0x1cf430]['side']&&(_0x1699a4[_0x1cf430]['level']=_0x5bec65);_0x5bec65=0x0;for(let _0xccceac=_0x389aa0-0x1;_0xccceac>=_0x2631f6;_0xccceac--)0x0==_0x1699a4[_0xccceac]['distance']?_0x1699a4[_0xccceac]['level']=_0x5bec65:(_0x5bec65--,_0x1699a4[_0xccceac]['level']=_0x5bec65,_0x5bec65--);}}['_fixObsoleteTags'](_0x46a10a){const _0x4a373c=new Map(),_0x11a760=this['editor']['model']['schema'];for(let _0x28581f=0x1;_0x28581f<_0x46a10a['length'];_0x28581f++){let _0x4648a4,_0x5c88d4,_0x58ab44;const _0x5529d6=_0x46a10a[_0x28581f],_0x1568f2=_0x46a10a[_0x28581f-0x1];if('text'==_0x5529d6['type'])continue;if(_0x5529d6['type']!=_0x1568f2['type'])continue;if(!_0x11a760['isBlock'](_0x1568f2['item'])||_0x11a760['isLimit'](_0x1568f2['item']))continue;if(!_0x11a760['isBlock'](_0x5529d6['item'])||_0x11a760['isLimit'](_0x5529d6['item']))continue;if((_0x46a10a[_0x28581f]['isAdded']||_0x46a10a[_0x28581f]['isAddSuggestion'])&&_0x46a10a[_0x28581f-0x1]['isRemoved'])_0x4648a4=_0x46a10a[_0x28581f],_0x5c88d4=_0x46a10a[_0x28581f-0x1],_0x58ab44=_0x28581f-0x1;else{if(!_0x46a10a[_0x28581f]['isRemoved']||!_0x46a10a[_0x28581f-0x1]['isAdded']&&!_0x46a10a[_0x28581f-0x1]['isAddSuggestion'])continue;_0x4648a4=_0x46a10a[_0x28581f-0x1],_0x5c88d4=_0x46a10a[_0x28581f],_0x58ab44=_0x28581f;}const _0x2af812=_0x4648a4['level']==_0x5c88d4['level'],_0x47632d=Math['abs'](_0x4648a4['level'])<Math['abs'](_0x5c88d4['level'])&&0x0==_0x5c88d4['distance'];(_0x2af812||_0x47632d)&&(_0x4a373c['set'](_0x5c88d4['id'],_0x4648a4['id']),_0x46a10a['splice'](_0x58ab44,0x1),_0x28581f--,_0x4648a4['isAdded']=!0x1);}for(let _0x189ace=0x0;_0x189ace<_0x46a10a['length'];_0x189ace++)_0x4a373c['has'](_0x46a10a[_0x189ace]['pairId'])&&(_0x46a10a[_0x189ace]['pairId']=_0x4a373c['get'](_0x46a10a[_0x189ace]['pairId']));}['_removeMissingPairs'](_0x4d9a35){const _0x54f410=new Set(_0x4d9a35['map'](_0x47bb3c=>_0x47bb3c['id']));for(let _0x205b4c=0x0;_0x205b4c<_0x4d9a35['length'];_0x205b4c++)_0x54f410['has'](_0x4d9a35[_0x205b4c]['pairId'])||0x0==_0x4d9a35[_0x205b4c]['distance']||(_0x4d9a35[_0x205b4c]['isIncorrect']=!0x0);return _0x4d9a35['filter'](_0x9685a5=>!_0x9685a5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2fd155){const _0x3c14da=new Set();for(let _0x12cd09=0x0;_0x12cd09<_0x2fd155['length'];_0x12cd09++){if(_0x3c14da['has'](_0x2fd155[_0x12cd09]['id'])&&_0x2fd155[_0x12cd09]['isRemoved']&&(_0x2fd155[_0x12cd09]['isIncorrect']=!0x0),_0x2fd155[_0x12cd09]['isIncorrect'])continue;if(0x0==_0x2fd155[_0x12cd09]['distance'])continue;if('elementStart'!=_0x2fd155[_0x12cd09]['type'])continue;if(null==_0x2fd155[_0x12cd09]['pairId'])continue;let _0x1a8b8d=_0x12cd09+0x1,_0x460af6=0x0;for(;_0x2fd155[_0x1a8b8d]['id']!=_0x2fd155[_0x12cd09]['pairId'];)'elementStart'==_0x2fd155[_0x1a8b8d]['type']?_0x460af6++:'elementEnd'==_0x2fd155[_0x1a8b8d]['type']&&_0x460af6--,_0x1a8b8d++;if(0x0!=_0x460af6){if(_0x2fd155[_0x12cd09]['isRemoved'])_0x2fd155[_0x12cd09]['isIncorrect']=!0x0;else{for(;_0x1a8b8d!=_0x12cd09;)_0x2fd155[_0x1a8b8d]['isRemoved']&&0x0!=_0x2fd155[_0x1a8b8d]['distance']&&(_0x2fd155[_0x1a8b8d]['isIncorrect']=!0x0,_0x3c14da['add'](_0x2fd155[_0x1a8b8d]['pairId'])),_0x1a8b8d--;}}}return _0x2fd155['filter'](_0x115e43=>!_0x115e43['isIncorrect']);}['_removeUnsupportedChanges'](_0x423c64){const _0x23163b=this['editor']['model']['schema'];for(let _0x5d0c6d=0x0;_0x5d0c6d<_0x423c64['length'];_0x5d0c6d++){if(!(_0x423c64[_0x5d0c6d]['isAdded']||_0x423c64[_0x5d0c6d]['isAddSuggestion']||_0x423c64[_0x5d0c6d]['isRemoved']||_0x423c64[_0x5d0c6d]['isRemoveSuggestion']))continue;if(0x0==_0x423c64[_0x5d0c6d]['distance'])continue;const _0x1d0e0f=_0x423c64[_0x5d0c6d]['item'];_0x23163b['isBlock'](_0x1d0e0f)||_0x23163b['isLimit'](_0x1d0e0f)||(_0x423c64[_0x5d0c6d]['isAdded']&&delete _0x423c64[_0x5d0c6d]['isAdded'],_0x423c64[_0x5d0c6d]['isAddSuggestion']&&delete _0x423c64[_0x5d0c6d]['isAddSuggestion'],_0x423c64[_0x5d0c6d]['isRemoveSuggestion']&&delete _0x423c64[_0x5d0c6d]['isRemoveSuggestion'],_0x423c64[_0x5d0c6d]['isRemoved']&&(_0x423c64[_0x5d0c6d]['isIncorrect']=!0x0));}return _0x423c64['filter'](_0x452551=>!_0x452551['isIncorrect']);}['_makeModelFromTape'](_0x44e342,_0x458348,_0x252502){const _0x18bacc=new gt(),_0x26c545=[],_0x3d27ff=new Map(),_0x8c34a6=this['editor']['model'],_0x472a3d=_0x8c34a6['schema'],_0x429f33=[_0x18bacc],_0x1b9806={},_0x5e944e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5a7811=null;const _0x3eb72e=[0x0];for(let _0x8601ae=0x0;_0x8601ae<_0x44e342['length'];_0x8601ae++)if('elementStart'===_0x44e342[_0x8601ae]['type']){_0x44e342[_0x8601ae]['previousPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e);const _0x2c331b=new ut(_0x44e342[_0x8601ae]['item']['name'],_0x44e342[_0x8601ae]['item']['getAttributes']());_0x429f33[0x0]['_appendChild'](_0x2c331b),_0x3eb72e['push'](0x0),_0x429f33['unshift'](_0x2c331b),_0x44e342[_0x8601ae]['nextPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e);}else'elementEnd'===_0x44e342[_0x8601ae]['type']?(_0x429f33['shift'](),_0x44e342[_0x8601ae]['previousPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e),_0x3eb72e['pop'](),_0x3eb72e[_0x3eb72e['length']-0x1]++,_0x44e342[_0x8601ae]['nextPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e)):(_0x44e342[_0x8601ae]['previousPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e),_0x5a7811?_0x5a7811['_data']+=_0x44e342[_0x8601ae]['item']['data']:_0x5a7811=new mt(_0x44e342[_0x8601ae]['item']['data'],_0x44e342[_0x8601ae]['item']['getAttributes']()),_0x44e342[_0x8601ae+0x1]&&'text'===_0x44e342[_0x8601ae+0x1]['type']&&_0x12f373(_0x5a7811,_0x44e342[_0x8601ae+0x1]['item'])||(_0x429f33[0x0]['_appendChild'](_0x5a7811),_0x5a7811=null),_0x3eb72e[_0x3eb72e['length']-0x1]+=_0x44e342[_0x8601ae]['item']['offsetSize'],_0x44e342[_0x8601ae]['nextPosition']=_0x8c34a6['createPositionFromPath'](_0x18bacc,_0x3eb72e));for(let _0x1789e2=0x0;_0x1789e2<_0x44e342['length'];_0x1789e2++){const _0x1e0135=_0x44e342[_0x1789e2]['previousPosition'],_0x44606f=_0x44e342[_0x1789e2]['nextPosition'];for(const _0xa64c1 of _0x44e342[_0x1789e2]['markersStart'])_0x3d27ff['set'](_0xa64c1,{'start':_0x1e0135,'end':null});_0xca6a35('isRemoveSuggestion',_0x1789e2,_0x1e0135,_0x44606f),_0xca6a35('isAddSuggestion',_0x1789e2,_0x1e0135,_0x44606f),_0xca6a35('isRemoved',_0x1789e2,_0x1e0135,_0x44606f),_0xca6a35('isAdded',_0x1789e2,_0x1e0135,_0x44606f);for(const _0x101c2e of _0x44e342[_0x1789e2]['markersEnd']){const _0x4c13a1=_0x3d27ff['get'](_0x101c2e);_0x4c13a1?_0x4c13a1['end']=_0x44606f:_0x3d27ff['set'](_0x101c2e,{'start':_0x44606f,'end':_0x44606f});}}for(const [_0x5cf697,_0x4e01cd]of _0x3d27ff){const _0x87034d=this['editor']['model']['createRange'](_0x4e01cd['start'],_0x4e01cd['end']);_0x18bacc['markers']['set'](_0x5cf697,_0x87034d);}return _0x26c545['sort']((_0x1cefba,_0x173179)=>{const _0x443f3b=_0x18bacc['markers']['get']('revision:'+_0x1cefba['id']),_0x1b9cf9=_0x18bacc['markers']['get']('revision:'+_0x173179['id']);return _0x443f3b['start']['isBefore'](_0x1b9cf9['start'])?-0x1:_0x443f3b['start']['isAfter'](_0x1b9cf9['start'])?0x1:_0x443f3b['end']['isBefore'](_0x1b9cf9['end'])?-0x1:_0x443f3b['end']['isAfter'](_0x1b9cf9['end'])?0x1:'add'===_0x1cefba['type']?-0x1:0x1;}),{'root':_0x18bacc,'changes':_0x26c545};function _0xca6a35(_0x48d443,_0xc0a11e,_0x477018,_0x4b4d53){const _0x543509=!!_0x44e342[_0xc0a11e][_0x48d443],_0x2c16c9=_0x543509?_0x44e342[_0xc0a11e][_0x48d443]['userId']:null,_0x15d155=_0xc0a11e===_0x44e342['length']-0x1,_0x443418=_0x5e944e[_0x48d443][0x0],_0x36c0d3=_0x472a3d['isObject'](_0x44e342[_0xc0a11e]['item']);!_0x1b9806[_0x48d443]&&_0x543509?_0x1b9806[_0x48d443]={'start':_0x477018,'tapeItem':_0x44e342[_0xc0a11e],'userId':_0x2c16c9,'type':_0x48d443}:_0x1b9806[_0x48d443]&&!_0x543509?(_0x1b9806[_0x48d443]['end']=_0x477018,_0x5cfe82(_0x1b9806[_0x48d443]),_0x1b9806[_0x48d443]=null):_0x1b9806[_0x48d443]&&_0x543509&&_0x1b9806[_0x48d443]['userId']!==_0x2c16c9&&(_0x1b9806[_0x48d443]['end']=_0x477018,_0x443418&&_0x443418['userId']===_0x1b9806[_0x48d443]['userId']||_0x5cfe82(_0x1b9806[_0x48d443]),_0x1b9806[_0x48d443]={'start':_0x477018,'tapeItem':_0x44e342[_0xc0a11e],'userId':_0x2c16c9,'type':_0x48d443}),_0x1b9806[_0x48d443]&&_0x36c0d3&&('elementStart'!==_0x44e342[_0xc0a11e]['type']||_0x443418&&_0x443418['userId']===_0x2c16c9||_0x5e944e[_0x48d443]['unshift']({'userId':_0x2c16c9,'object':_0x44e342[_0xc0a11e]['item'],'change':_0x1b9806[_0x48d443]}),'elementEnd'===_0x44e342[_0xc0a11e]['type']&&_0x443418&&_0x443418['object']===_0x44e342[_0xc0a11e]['item']&&(_0x5e944e[_0x48d443]['shift'](),_0x1b9806[_0x48d443]=_0x443418['change'])),_0x1b9806[_0x48d443]&&_0x15d155&&(_0x1b9806[_0x48d443]['end']=_0x4b4d53,_0x5cfe82(_0x1b9806[_0x48d443]),_0x1b9806[_0x48d443]=null);}function _0x5cfe82({start:_0xe8a212,end:_0x405409,tapeItem:_0x48ebcf,userId:_0x1da5a7,type:_0x5c00eb}){const _0x45522f=_0x48ebcf['item'],_0x239ac0=_0x8c34a6['schema']['isBlock'](_0x45522f)&&!_0x8c34a6['schema']['isLimit'](_0x45522f),_0x5488b2=_0xe8a212['nodeAfter']==_0x405409['parent']&&_0x405409['isAtStart'];if(_0x239ac0&&_0x5488b2)return;const _0x34d4d0=_0x8c34a6['createRange'](_0xe8a212,_0x405409),_0xefafb6=_0x458348['get'](_0x1da5a7),_0x2175e2=new r({'author':_0xefafb6,'type':'isAdded'==_0x5c00eb||'isAddSuggestion'==_0x5c00eb?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5c00eb||'isRemoveSuggestion'==_0x5c00eb},'createdAt':new Date(),'rootName':_0x252502});_0x26c545['push'](_0x2175e2),_0x18bacc['markers']['set']('revision:'+_0x2175e2['id'],_0x34d4d0);}function _0x12f373(_0x485638,_0x43afa0){const _0x262117=_0x485638['getAttributes'](),_0x1b67c8=_0x43afa0['getAttributes']();for(const _0x2b5fd5 of _0x262117){if(_0x2b5fd5[0x1]!==_0x43afa0['getAttribute'](_0x2b5fd5[0x0]))return!0x1;_0x1b67c8['next']();}return _0x1b67c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4a14ba=>{const _0x42d58e=_0x4a14ba['markerName']['split'](':')[0x1],_0x548932=this['_getChangeFromId'](_0x42d58e);if(!_0x548932)return null;const _0x57696a='add'==_0x548932['type']?'insertion':'deletion',_0xa4010=['ck-suggestion-marker','ck-suggestion-marker-'+_0x57696a];return _0x548932['data']['isSuggestion']&&_0xa4010['push']('ck-suggestion-marker-'+_0x57696a+'-new'),this['activeChange']==_0x548932&&_0xa4010['push']('ck-suggestion-marker--active'),{'classes':_0xa4010,'attributes':{'data-change-id':_0x42d58e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x18cdf8=>{_0x18cdf8['on']('element:pre',(_0x5b3140,_0x5708de,_0x768b92)=>{const _0x5823f9=_0x5708de['viewItem']['getChild'](0x0);if(!_0x5823f9||!_0x5823f9['is']('element','code'))return;if(!_0x768b92['consumable']['consume'](_0x5823f9,{'attributes':['vid_start','vid_end']}))return;const _0x31eb24=_0x5708de['modelRange']['start']['nodeAfter'];_0x768b92['writer']['setAttribute']('vid_start',_0x5823f9['getAttribute']('vid_start'),_0x31eb24),_0x768b92['writer']['setAttribute']('vid_end',_0x5823f9['getAttribute']('vid_end'),_0x31eb24);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1efe56=>{_0x1efe56['on']('element',(_0x8a1f7,_0x1314c8,_0x400fab)=>{if(!_0x400fab['consumable']['consume'](_0x1314c8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1314c8['modelRange']['isCollapsed'])return;const _0xd14092=_0x1314c8['modelRange']['start']['nodeAfter'];_0xd14092['hasAttribute']('vid_start')||_0xd14092['hasAttribute']('vid')||(_0x400fab['writer']['setAttribute']('vid_start',_0x1314c8['viewItem']['getAttribute']('vid_start'),_0xd14092),_0x400fab['writer']['setAttribute']('vid_end',_0x1314c8['viewItem']['getAttribute']('vid_end'),_0xd14092));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1713f6=>_0x1713f6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x514ab1,[,_0x1551a1])=>{['vid_start','vid_end','vid']['includes'](_0x1551a1)&&(_0x514ab1['return']=!0x0,_0x514ab1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29d841=>{_0x29d841['on']('attribute:vid',(_0x14a5d9,_0x3ba653,_0x12ecc9)=>{if('\x20'!=_0x3ba653['item']['data']||_0x3ba653['item']['parent']['maxOffset']>0x1)return;if(!_0x12ecc9['consumable']['consume'](_0x3ba653['item'],_0x14a5d9['name']))return;const _0x38fb5b=_0x12ecc9['writer'],_0x526812=_0x12ecc9['mapper']['toViewRange'](_0x3ba653['range']);_0x38fb5b['wrap'](_0x526812,_0x38fb5b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3206d1){const _0x51584c=_0x3206d1['plugins']['get']('RevisionViewer');return(_0x3ad487,_0x57ef0e,_0x5e5ce5)=>{const _0x4bf33c=_0x57ef0e['markerName']['split'](':')[0x1],_0x231d64=_0x51584c['_getChangeFromId'](_0x4bf33c);if(!_0x231d64)return null;const _0x1a2d97='add'==_0x231d64['type']?'split':'merge';if(!_0x5e5ce5['consumable']['test'](_0x57ef0e['markerRange'],_0x3ad487['name']))return;const _0x1b48cc=_0x57ef0e['markerRange']['getWalker'](),_0x213ea6=_0x57ef0e['markerRange']['start'],_0x5c89a1=_0x3206d1['model']['schema'];let _0x3102dd=null,_0x21540d=null,_0x57a686=!0x1,_0x5c9dd9=!0x1;for(const _0x4410e2 of _0x1b48cc){const _0x17127f=_0x4410e2['item'];_0x57a686=_0x57a686||_0x5c89a1['isContent'](_0x17127f);const _0x51e570=_0x5e5ce5['mapper']['toViewElement'](_0x17127f);if(_0x51e570&&_0x51e570['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4410e2['type']&&(_0x5c89a1['isBlock'](_0x17127f)&&!_0x5c89a1['isLimit'](_0x17127f)&&(_0x17127f['nextSibling']||_0x213ea6['isAtEnd']?_0x3102dd&&_0x3102dd['parent']==_0x17127f||(_0x3102dd=_0x17127f,_0x146369(_0x4410e2['previousPosition']),_0x5c9dd9=!0x0):_0x21540d=_0x21540d||_0x4410e2['previousPosition']));}function _0x146369(_0x581c1a){const _0x3e1116=_0x5e5ce5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a2d97}),_0x2ea787=_0x5e5ce5['mapper']['toViewPosition'](_0x581c1a);_0x231d64['data']['isSuggestion']&&_0x5e5ce5['writer']['addClass']('ck-suggestion-marker-'+_0x1a2d97+'-new',_0x3e1116),_0x51584c['activeChange']==_0x231d64&&_0x5e5ce5['writer']['addClass']('ck-suggestion-marker--active',_0x3e1116),_0x5e5ce5['writer']['insert'](_0x2ea787,_0x3e1116),_0x5e5ce5['mapper']['bindElementToMarker'](_0x3e1116,_0x57ef0e['markerName']);}_0x57a686||_0x5c9dd9||!_0x21540d||_0x146369(_0x21540d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb8443f,_0x1a592b,_0x5c5671)=>{const _0x4756ef=_0x5c5671['mapper']['markerNameToElements'](_0x1a592b['markerName']);if(_0x4756ef){for(const _0x481310 of _0x4756ef)(_0x481310['hasClass']('ck-suggestion-marker-split')||_0x481310['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c5671['mapper']['unbindElementFromMarkerName'](_0x481310,_0x1a592b['markerName']),_0x5c5671['writer']['remove'](_0x481310));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2ef639,_0x2388f7,_0x144f82)=>{const _0x39ba9c=_0x2388f7['markerName']['split'](':')[0x1],_0x6c54de=this['_getChangeFromId'](_0x39ba9c);if(!_0x6c54de)return null;const _0x20729f='add'==_0x6c54de['type']?'split':'merge';if(_0x144f82['consumable']['test'](_0x2388f7['markerRange'],_0x2ef639['name']))for(const _0x4a6806 of _0x2388f7['markerRange']['getItems']()){if(!_0x4a6806['is']('element','softBreak'))continue;const _0x2ce503=_0x144f82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20729f}),_0x843a62=_0x144f82['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4a6806));_0x6c54de['data']['isSuggestion']&&_0x144f82['writer']['addClass']('ck-suggestion-marker-'+_0x20729f+'-new',_0x2ce503),this['activeChange']==_0x6c54de&&_0x144f82['writer']['addClass']('ck-suggestion-marker--active',_0x2ce503),_0x144f82['writer']['insert'](_0x843a62,_0x2ce503),_0x144f82['mapper']['bindElementToMarker'](_0x2ce503,_0x2388f7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1fa8b8=>{for(const _0x21ae18 of this['editor']['model']['document']['getRootNames']()){const _0xdc7d56=this['editor']['model']['document']['getRoot'](_0x21ae18),_0x14f392=this['editor']['editing']['view']['document']['getRoot'](_0x21ae18);if(_0x14f392){const _0x2b61a2=_0xdc7d56['getAttribute']('revisionHistoryAttachChange');if(_0x1fa8b8['removeAttribute']('data-change-id',_0x14f392),_0x1fa8b8['removeClass']('ck-revision-history-root-add',_0x14f392),_0x1fa8b8['removeClass']('ck-revision-history-root-remove',_0x14f392),_0x1fa8b8['removeClass']('ck-revision-history-root--active',_0x14f392),_0x2b61a2){const _0x5deff2=this['_getChangeFromId'](_0x2b61a2);if(!_0x5deff2)return null;_0x1fa8b8['setAttribute']('data-change-id',_0x2b61a2,_0x14f392),_0x1fa8b8['addClass']('ck-revision-history-root-'+_0x5deff2['type'],_0x14f392),this['activeChange']==_0x5deff2&&_0x1fa8b8['addClass']('ck-revision-history-root--active',_0x14f392);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4e834b=>'revision-comment:'+_0x4e834b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2719f9=>'revision-suggestion:'+_0x2719f9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5b157d=>({'name':'suggestion:'+_0x5b157d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15bfb9=>{const _0xdf4ea=_0x15bfb9['markerName']['split'](':')[0x1];return'insertion'!=_0xdf4ea&&'deletion'!=_0xdf4ea?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xdf4ea]};}}),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',(_0x27384a,_0x333212,_0x42d727)=>{const _0x1e39bd=_0x42d727['mapper']['markerNameToElements'](_0x333212['markerName']);if(_0x1e39bd){for(const _0x3bdfb3 of _0x1e39bd)_0x3bdfb3['is']('uiElement')&&(_0x42d727['mapper']['unbindElementFromMarkerName'](_0x3bdfb3,_0x333212['markerName']),_0x42d727['writer']['remove'](_0x3bdfb3));}},{'priority':'high'});}['_getChangeFromId'](_0x2350f4){return this['_changeIdToChange']['get'](_0x2350f4);}['_getViewForChange'](_0x3fa08f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3fa08f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2c6379,_0x42c458,_0xc77ce1,_0x44b67d)=>{_0x44b67d&&this['_balloon']['remove'](_0x44b67d),_0xc77ce1&&(this['_balloon']['add']({'view':_0xc77ce1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c30f9=this['editor']['editing'],_0x38cfff=this['_getChangeFromId'](_0xc77ce1['changeId']);let _0x987736;if(_0x38cfff['data']['isOnRoot']){const _0x1fb553=_0x2c30f9['view']['getDomRoot'](_0x38cfff['rootName']);_0x987736=Array['from'](_0x1fb553['getClientRects']());}else{const _0x9528f6=this['editor']['model']['markers']['get']('revision:'+_0xc77ce1['changeId']);_0x987736=Array['from'](_0x2c30f9['mapper']['markerNameToElements'](_0x9528f6['name']))['map'](_0x145cc7=>_0x2c30f9['view']['domConverter']['mapViewToDom'](_0x145cc7))['map'](_0x17d4e9=>Array['from'](_0x17d4e9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x987736[0x0];return _0x987736['find'](_0x342e7a=>_0x342e7a['top']-0x3<=this['_activeViewTarget']['y']&&_0x342e7a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x342e7a['left']-0x3<=this['_activeViewTarget']['x']&&_0x342e7a['right']+0x3>=this['_activeViewTarget']['x'])||_0x987736[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x218798,_0x53f916,_0x39f794,_0x404774)=>{this['activeView']=_0x39f794?this['_getViewForChange'](_0x39f794):null,this['editor']['model']['change'](()=>{const _0x53ffbf=this['editor']['editing'];_0x404774&&(_0x404774['data']['isOnRoot']?_0x53ffbf['view']['change'](_0x15e474=>{_0x15e474['removeClass']('ck-revision-history-root--active',_0x53ffbf['view']['document']['getRoot'](_0x404774['rootName']));}):_0x53ffbf['reconvertMarker']('revision:'+_0x404774['id'])),_0x39f794&&(_0x39f794['data']['isOnRoot']?_0x53ffbf['view']['change'](_0x18a6e1=>{_0x18a6e1['addClass']('ck-revision-history-root--active',_0x53ffbf['view']['document']['getRoot'](_0x39f794['rootName']));}):_0x53ffbf['reconvertMarker']('revision:'+_0x39f794['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x21f020,_0x4bc796)=>{if(this['activeChange'])return;const _0x18c6ca=this['_findChangeIdFromDomTarget'](_0x4bc796['target']),_0x5ec684=this['_changeIdToChange']['get'](_0x18c6ca);_0x5ec684?(this['_activeViewTarget']={'x':_0x4bc796['domEvent']['x'],'y':_0x4bc796['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5ec684)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3a37d1,_0x3187a8)=>{const _0x20eb99=this['_findChangeIdFromDomTarget'](_0x3187a8['target']),_0x108b7d=this['_changeIdToChange']['get'](_0x20eb99);_0x108b7d?(this['_activeViewTarget']={'x':_0x3187a8['domEvent']['x'],'y':_0x3187a8['domEvent']['y']},_0x108b7d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x108b7d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2ce0d0){do{const _0x29fd3=_0x2ce0d0['getAttribute']('data-change-id');if(_0x29fd3)return _0x29fd3;_0x2ce0d0=_0x2ce0d0['parent'];}while(_0x2ce0d0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xff15c2=>{for(const _0x36ad0f of this['editor']['model']['markers'])_0xff15c2['removeMarker'](_0x36ad0f);});}}function X(_0x46d0ea,_0x1a63c5){return(_0x501f09,_0x2357c4,_0x62b6b0)=>{if(!_0x62b6b0['consumable']['test'](_0x2357c4['markerRange'],_0x501f09['name']))return;const _0x210112=_0x2357c4['markerRange']['getWalker'](),_0x9811a3=_0x2357c4['markerRange']['start'],_0x30b811=_0x46d0ea['model']['schema'];let _0x37649b=null,_0x13f6a4=null,_0x36d617=!0x1,_0x13d283=!0x1;for(const _0x5dcd37 of _0x210112){const _0x402686=_0x5dcd37['item'];_0x36d617=_0x36d617||_0x30b811['isContent'](_0x402686);const _0x1cdbd5=_0x62b6b0['mapper']['toViewElement'](_0x402686);if(_0x1cdbd5&&_0x1cdbd5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dcd37['type']&&(_0x30b811['isBlock'](_0x402686)&&!_0x30b811['isLimit'](_0x402686)&&(_0x402686['nextSibling']||_0x9811a3['isAtEnd']?_0x37649b&&_0x37649b['parent']==_0x402686||(_0x37649b=_0x402686,_0x470ed7(_0x5dcd37['previousPosition']),_0x13d283=!0x0):_0x13f6a4=_0x13f6a4||_0x5dcd37['previousPosition']));}function _0x470ed7(_0x5d7038){const _0x512617=_0x62b6b0['mapper']['toViewPosition'](_0x5d7038),_0x207e71=_0x62b6b0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a63c5});_0x62b6b0['writer']['insert'](_0x512617,_0x207e71),_0x62b6b0['mapper']['bindElementToMarker'](_0x207e71,_0x2357c4['markerName']);}_0x36d617||_0x13d283||!_0x13f6a4||_0x470ed7(_0x13f6a4);};}class wt extends _0x5df545{constructor(_0x437d2c){super(_0x437d2c);const _0x218ff2=_0x437d2c['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x218ff2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x218ff2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4583b3=this['editor'],_0x2fab06=_0x4583b3['plugins']['get'](m),_0x1cf3f6=_0x2fab06['isReady']?_0x2fab06['diff']['newRevisionId']:null;_0x4583b3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1cf3f6);}['refresh'](){const {isReady:_0x46051c,isEnabled:_0x68a2da,repository:_0x5bcb8f,diff:_0x5088a3}=this['editor']['plugins']['get'](m),_0x233c95=_0x5088a3&&_0x5bcb8f['getLaterVisibleRevision'](_0x5088a3['newRevisionId']);this['isEnabled']=_0x46051c&&_0x68a2da&&Boolean(_0x233c95);}}class pt extends _0x5df545{['_step'];constructor(_0x384a6d,{direction:_0x211677}){super(_0x384a6d);const _0x2d39f6=_0x384a6d['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x211677?0x1:-0x1,this['listenTo'](_0x2d39f6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d39f6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d39f6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x53211e=this['editor'],_0x473364=_0x53211e['plugins']['get'](m),{isNavigationMode:_0x268b83,currentChangeNumber:_0x14d458}=_0x473364;let _0x8cb546;if(_0x473364['activeChange']=_0x268b83?_0x473364['diff']['changes']['get'](_0x14d458+this['_step']):_0x473364['diff']['changes']['first'],_0x473364['activeChange']['data']['isOnRoot'])_0x8cb546=_0x53211e['editing']['view']['getDomRoot'](_0x473364['activeChange']['rootName']);else{const _0x5929b0=_0x53211e['model']['markers']['get']('revision:'+_0x473364['activeChange']['id']);_0x8cb546=_0x24de38(_0x53211e['editing'],_0x5929b0);}_0x47aff1({'target':_0x8cb546,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x577fdf,currentChangeNumber:_0x1bb10c,numberOfChanges:_0xbd89a4,isReady:_0x1f7cde,isEnabled:_0x4ce4f3}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4ce4f3&&_0x1f7cde&&_0xbd89a4)&&(!_0x577fdf||(0x1===this['_step']?_0x1bb10c<_0xbd89a4-0x1:_0x1bb10c>0x0));}}class _i extends _0x1a952d{constructor(_0x5ddb19){super(_0x5ddb19);const _0x5e49d1=this['bindTemplate'],_0x3e8d42=new _0x1b8fcb(_0x5ddb19),_0x14575f=new _0x1b8fcb(_0x5ddb19);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',(_0x4e098e,_0x4b5955)=>_0x4e098e&&_0x4b5955>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3502d1,_0x2b1e2d,_0xfd87a8,_0x1283ce)=>{if(!_0x3502d1)return g(_0x5ddb19,'Loading...');if(!_0xfd87a8)return g(_0x5ddb19,'No\x20changes');const _0x5e32aa=g(_0x5ddb19,'NUMBER_OF_CHANGES',_0xfd87a8);return _0x1283ce?g(_0x5ddb19,'X_OF_Y_CHANGES',[_0x2b1e2d+0x1,_0xfd87a8]):_0x5e32aa;}),_0x3e8d42['set']({'label':g(_0x5ddb19,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x43cc35}),_0x14575f['set']({'label':g(_0x5ddb19,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1589e8}),_0x3e8d42['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x14575f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3e8d42['on']('execute',()=>this['fire']('execute','backward')),_0x14575f['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',_0x5e49d1['if']('_isStatusLabelVisible','ck-hidden',_0x29741b=>!_0x29741b)]},'children':[{'text':_0x5e49d1['to']('isNavigationMode',_0x30ae39=>_0x30ae39?g(_0x5ddb19,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x5ddb19,'Total')+':\x20')}]},{'text':_0x5e49d1['to']('_statusText')}]},new _0x5582a4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3e8d42,_0x14575f]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x46f453{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x591399=this['editor']['editing']['view'];_0x591399['change'](_0x32bcf9=>{for(const _0x505b34 of _0x591399['document']['roots'])_0x32bcf9['addClass'](ce,_0x505b34);});}['hide'](){const _0x5b8173=this['editor']['editing']['view'];_0x5b8173['change'](_0x2fd52f=>{for(const _0x1bcde1 of _0x5b8173['document']['roots'])_0x2fd52f['removeClass'](ce,_0x1bcde1);});}}class R extends _0x46f453{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x92dda3=this['editor'],_0xeccbe4=_0x92dda3['plugins']['get'](m),_0x399de8=_0x92dda3['plugins']['get'](le);_0x92dda3['ui']['componentFactory']['add']('exitToEditing',_0x5586ca=>{const _0x5344b7=new _0x1b8fcb(_0x5586ca);return _0x5344b7['set']({'label':g(_0x5586ca,'Back\x20to\x20editing'),'icon':_0x35b496,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5344b7,'execute',()=>{_0x92dda3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5344b7;}),_0x92dda3['ui']['componentFactory']['add']('restoreRevision',_0x3045c1=>{const _0x130060=new _0x1b8fcb(_0x3045c1);return _0x130060['set']({'label':g(_0x3045c1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x130060['bind']('isEnabled')['to'](_0x92dda3['commands']['get']('restoreRevision')),this['listenTo'](_0x130060,'execute',()=>_0x92dda3['execute']('restoreRevision')),_0x130060;}),_0x92dda3['ui']['componentFactory']['add']('changesNavigation',_0x299e6a=>{const _0x19e58d=new _i(_0x299e6a),_0x5641a9=_0x92dda3['commands']['get']('showPreviousChange'),_0x3f50a4=_0x92dda3['commands']['get']('showNextChange');return _0x19e58d['bind']('isBackwardNavigationEnabled')['to'](_0x5641a9,'isEnabled'),_0x19e58d['bind']('isForwardNavigationEnabled')['to'](_0x3f50a4,'isEnabled'),_0x19e58d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xeccbe4),this['listenTo'](_0x19e58d,'execute',(_0xf8ccfd,_0x3225b3)=>{_0x92dda3['execute']('forward'===_0x3225b3?'showNextChange':'showPreviousChange');}),_0x19e58d;}),_0x399de8['show'](),_0xeccbe4['on']('change:isReady',(_0x30b7de,_0x1aafd4,_0x1642f1)=>{_0x1642f1?_0x399de8['hide']():_0x399de8['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x50575d,_0xec1593){super(_0x50575d,_0xec1593);const _0x46a81d=this['bindTemplate'];this['set']({'label':g(_0x50575d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x50575d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x46a81d['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 _0x50096f=this['fieldView']['element'];this['_tooltipString']=_0x50096f['scrollWidth']>_0x50096f['clientWidth']&&_0x50096f['value']||'';}}class oi extends _0x1a952d{constructor(_0x298c40,_0xb5586e,_0x3cdfb9){super(_0x298c40);const _0x41adac=new _0x5530bb();_0x41adac['set']({'content':_0x5e6cf6,'viewBox':'0\x200\x2011\x2010'});const _0x1abba5=['ck','ck-revision-history-sidebar__revision-author'];_0x3cdfb9&&_0x1abba5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x324302=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x298c40,_0x3cdfb9?'Revision\x20creator':'Revision\x20author')},'children':[_0x41adac,_0xb5586e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1abba5},'children':_0x324302});}}function ni(_0x273014,_0x45b014){const _0x291a78=_0x273014['bindTemplate'],_0x2077b2=_0x273014['locale'],_0x98e8a4=_0x206e66(_0x2077b2);_0x98e8a4['panelPosition']='sw';const _0xc32c94=function(_0x210a88,_0x30f992){const _0x44d90b=function(_0x48b1ab,_0x8a0915){const _0x5a8a4e=_0x48b1ab['locale'],_0x31e1ac={'Compare\x20against\x20selected':g(_0x5a8a4e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5a8a4e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5a8a4e,'Restore\x20this\x20revision')};return _0x8a0915['map'](_0x5f38a0=>{const _0x5eba41=_0x31e1ac[_0x5f38a0['name']];return _0x5eba41&&_0x5eba41!==_0x5f38a0['name']&&(_0x5f38a0['name']=_0x5eba41),_0x5f38a0;});}(_0x210a88,_0x30f992),_0x369754=new _0xd190b7();for(const _0x40e55a of _0x44d90b){const _0x3b10ef={'type':'button','model':new to({'label':_0x40e55a['name'],'class':_0x40e55a['class'],'withText':!0x0,'role':'menuitem','_action':_0x40e55a['action']})};_0x3b10ef['model']['bind']('isEnabled')['to'](_0x210a88,'isActionsDropdownOpen',_0x3dea9c=>'function'!=typeof _0x40e55a['isEnabled']||(!_0x3dea9c||_0x40e55a['isEnabled'](_0x210a88))),_0x369754['add'](_0x3b10ef);}return _0x369754;}(_0x273014,_0x45b014);return _0x273014['bind']('isActionsDropdownOpen')['to'](_0x98e8a4,'isOpen'),_0x98e8a4['buttonView']['set']({'label':g(_0x2077b2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xfb727e}),_0x98e8a4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x291a78['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x291a78['to'](_0x460019=>_0x460019['stopPropagation']())}}),_0x98e8a4['on']('execute',_0x20eb48=>{_0x273014['isReady']&&'function'==typeof _0x20eb48['source']['_action']&&_0x20eb48['source']['_action'](_0x273014);}),_0x4d0c03(_0x98e8a4,_0xc32c94,{'role':'menu'}),_0x98e8a4['listenTo'](_0x273014,'change:isActionsDropdownOpen',(_0x58a990,_0x3f2362,_0x12b062)=>{if(_0x12b062)for(const _0x4872ac of _0x98e8a4['listView']['items']){const _0x565f48=_0x4872ac['children']['first'],_0x389fd8=_0x45b014['find'](_0x5033f4=>_0x5033f4['action']===_0x565f48['_action'])['isVisible'];_0x4872ac['isVisible']=void 0x0===_0x389fd8||_0x389fd8(_0x273014);}}),_0x98e8a4;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x54d24b(_0x1a952d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3e22b4,_0x35f0cc,_0x16d8ce,_0x3be357){super(_0x3e22b4);const _0x5734be=this['bindTemplate'],_0x27da5d=function(_0xe79449,_0x4eadf1){const _0x257505=Array['from'](_0x4eadf1['authors'])['filter'](_0x2e82c4=>_0x2e82c4!=_0x4eadf1['creator']);return _0x4eadf1['creator']&&_0x257505['unshift'](_0x4eadf1['creator']),_0x257505['map'](_0x31f716=>new oi(_0xe79449,_0x31f716,_0x31f716==_0x4eadf1['creator']));}(_0x3e22b4,_0x35f0cc);this['id']=_0x35f0cc['id'],this['_revision']=_0x35f0cc,this['_requireRevisionName']=_0x3be357,this['bind']('name','createdAt')['to'](_0x35f0cc),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x294413=>{return _0x57d72c=_0x3e22b4['uiLanguage'],(_0x5c152a=_0x294413)['toLocaleDateString'](_0x57d72c,{'month':'long','day':'numeric'})+',\x20'+_0x5c152a['toLocaleTimeString'](_0x57d72c,{'hour':'numeric','minute':'numeric'});var _0x57d72c,_0x5c152a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x3e22b4,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x248f8e=>_0x248f8e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x51702a,_0x3f0e15)=>_0x51702a&&_0x3f0e15),this['revisionActionsView']=_0x16d8ce&&_0x16d8ce['length']?ni(this,_0x16d8ce):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5734be['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5734be['if']('isEnabled','ck-disabled',_0x25e46a=>!_0x25e46a),_0x5734be['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5734be['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5734be['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':_0x5734be['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':_0x27da5d}]},this['revisionActionsView']],'on':{'click':_0x5734be['to'](_0xd7a271=>{_0xd7a271['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x27de21=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x27de21,'change',()=>{this['_requireRevisionName']&&!_0x27de21['value']||this['fire']('setName',{'id':this['id'],'name':_0x27de21['value']}),_0x27de21['value']||(_0x27de21['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(_0x56f03d,_0x138387){const _0x5c2f3f=_0xe0da72['fromJSDate'](_0x56f03d)['setLocale'](_0x138387),_0x26d81a=_0xe0da72['local'](),_0x5dcae0=_0x26d81a['minus']({'days':0x1})['startOf']('day');let _0x3b47a0,_0x24bb80;return _0x5c2f3f['hasSame'](_0x26d81a,'day')?(_0x3b47a0=_0x5c2f3f['startOf']('day')['toJSDate'](),_0x24bb80=_0x5c2f3f['toRelativeCalendar']()):_0x5c2f3f['hasSame'](_0x5dcae0,'day')?(_0x3b47a0=_0x5dcae0['toJSDate'](),_0x24bb80=_0x5c2f3f['toRelativeCalendar']()):_0x5c2f3f['hasSame'](_0x26d81a,'week')?(_0x3b47a0=_0x5c2f3f['startOf']('week')['toJSDate'](),_0x24bb80=_0x5c2f3f['weekdayLong']||''):_0x5c2f3f['hasSame'](_0x26d81a,'year')?(_0x3b47a0=_0x5c2f3f['startOf']('month')['toJSDate'](),_0x24bb80=_0x5c2f3f['monthLong']||''):(_0x3b47a0=_0x5c2f3f['startOf']('year')['toJSDate'](),_0x24bb80=String(_0x5c2f3f['year'])),{'startDate':_0x3b47a0,'localizedPeriodName':_0x24bb80};}class mi extends _0x1a952d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d1eec,_0x1dea3f,_0x2ddd32,_0x36e6a3){super(_0x2d1eec);const _0x5dd5f1=vi(_0x1dea3f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1dea3f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2ddd32,this['_requireRevisionName']=_0x36e6a3,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':_0x5dd5f1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3634e8){const _0x38904d=new ai(this['locale'],_0x3634e8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x38904d);}['removeRevision'](_0x514626){const _0x4b04b5=this['revisionViews']['find'](_0x10e2c4=>_0x10e2c4['id']===_0x514626['id']);this['revisionViews']['remove'](_0x4b04b5);}}class as extends _0x1a952d{constructor(_0x2c933e){super(_0x2c933e);const _0x5690e7=new _0x5530bb();_0x5690e7['content']=_0x4cdf1c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5690e7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x2c933e,'Revision\x20history')]}]});}}class di extends _0x1a952d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5d9868,_0x21a9c8,_0x33a71c,_0x14a3cb){super(_0x5d9868);const _0x8a0622=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x21a9c8,this['_revisionActions']=_0x33a71c,this['_requireRevisionName']=_0x14a3cb,this['on']('select',(_0x26c912,_0x394317)=>{this['fire']('revisionSelected',_0x394317);}),this['on']('setName',(_0x53c0be,_0x300fe6)=>{this['fire']('revisionSetName',_0x300fe6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5d9868),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x8a0622['if']('isEnabled','ck-disabled',_0x1ebd35=>!_0x1ebd35)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4032b2 of this['_revisions'])this['_addRevision'](_0x4032b2);this['_revisions']['on']('add',(_0x10b754,_0x5df39f)=>{this['_addRevision'](_0x5df39f);}),this['_revisions']['on']('remove',(_0xfb809d,_0xe22ab7)=>{this['_removeRevision'](_0xe22ab7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x414d27=>_0x414d27['revisionViews']['map'](_0x2f6eac=>_0x2f6eac))['flat']();}['selectRevision'](_0x233d9c){for(const _0x4cfa50 of this['revisionViews'])_0x233d9c&&_0x233d9c['id']===_0x4cfa50['id']?_0x4cfa50['select']():_0x4cfa50['deselect']();}['highlightRevisions'](_0x4dfcc9){for(const _0x3928d7 of this['revisionViews'])_0x4dfcc9['some'](({id:_0x57bfac})=>_0x57bfac===_0x3928d7['id'])?_0x3928d7['highlight']():_0x3928d7['unhighlight']();}['_addRevision'](_0x1108fb){const _0x25bd10=vi(_0x1108fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x20b2e4=this['timePeriodViews']['get'](0x0);_0x20b2e4&&_0x20b2e4['startDate']['getTime']()===_0x25bd10['getTime']()||(_0x20b2e4=new mi(this['locale'],_0x25bd10,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x20b2e4)),_0x20b2e4['addRevision'](_0x1108fb);}['_removeRevision'](_0x42d263){const _0x131618=vi(_0x42d263['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x131618)['removeRevision'](_0x42d263);}['_getTimePeriodViewByStartDate'](_0x4b3d07){return this['timePeriodViews']['find'](_0x24c85c=>_0x24c85c['startDate']['getTime']()===_0x4b3d07['getTime']());}}class d extends _0x46f453{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5f288e,uid as _0x46e088,Collection as _0x57f501,logWarning as _0x5a021b,FocusTracker as _0x5abe77,KeystrokeHandler as _0x3454e8,scrollViewportToShowTarget as _0x992975,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x42c7fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5a4053,set as _0x18e45f,unset as _0x5569ba,isEqual as _0x27710b}from'es-toolkit/compat';import{Plugin as _0x3561a9,PendingActions as _0x18c9a5,Command as _0xf18edc,ElementApiMixin as _0x54e498,Editor as _0x3de20e}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x52250a,getMarkerDomElement as _0x281c81,ConfirmMixin as ti,sanitizeEditorConfig as _0x5ce59e}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0xf611b4,ViewAttributeElement as _0x1649f7,ViewEmptyElement as _0x452815,ViewRawElement as _0x4a5f60,ViewUIElement as _0x1319de,ViewDocumentFragment as _0x1a87c7,ViewText as _0xdc1125,ViewElement as _0x503839,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 _0x21a65d,IconChevronUp as _0xf0e319,IconChevronDown as _0x2e72f4,IconUndo as _0x5c1885,IconUser as _0x3a717f,IconThreeVerticalDots as _0x4bb82e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x28d0a9,submitHandler as _0x4f10a2,LabeledFieldView as _0x403710,createLabeledInputText as _0x2a4301,createDropdown as _0x44640e,ListView as _0x31e5fe,ListItemView as _0x4b93ac,ButtonView as te,MenuBarMenuView as _0x4f4aa3,MenuBarMenuListView as _0x132898,MenuBarMenuListItemView as _0x84a53c,MenuBarMenuListItemButtonView as _0x3ea15b,ContextualBalloon as _0x572f52,ToolbarSeparatorView as _0x162f18,IconView as _0x1b24f4,addListToDropdown as _0x488c53,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 _0x3f6823}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x5f288e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x41ca87){super(),this['id']=_0x41ca87['id']||_0x46e088(),this['creator']=_0x41ca87['creator']||null,this['authors']=_0x41ca87['authors']||[],this['diffData']=_0x41ca87['diffData']||null,this['toVersion']=_0x41ca87['toVersion']||0x0,this['fromVersion']=_0x41ca87['fromVersion']||0x0,this['set']('name',_0x41ca87['name']||''),this['set']('createdAt',_0x41ca87['createdAt']||new Date()),this['set']('attributes',_0x41ca87['attributes']||{});}['setName'](_0x2001b0){this['_update']({'name':_0x2001b0});}['setAttribute'](_0x3e8359,_0x87f706){const _0x383761=_0x5a4053(this['attributes']);_0x18e45f(_0x383761,_0x3e8359,_0x87f706),this['_update']({'attributes':_0x383761});}['removeAttribute'](_0x31afc5){const _0x357cc0=_0x5a4053(this['attributes']);_0x5569ba(_0x357cc0,_0x31afc5),this['_update']({'attributes':_0x357cc0});}['_update'](_0x58aed2,_0x3d1f38=!0x1){let _0x53bc4d=!0x1;const _0x59c400={'id':this['id']},_0x1435c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x224574 of _0x1435c8){const _0x39c594=_0x58aed2[_0x224574];void 0x0!==_0x39c594&&_0x39c594!==this[_0x224574]&&(this[_0x224574]=_0x39c594,_0x59c400[_0x224574]=_0x39c594,_0x53bc4d=!0x0);}_0x53bc4d&&(_0x59c400['authors']&&(_0x59c400['authorsIds']=_0x59c400['authors']['map'](_0x1d343f=>_0x1d343f['id']),delete _0x59c400['authors']),this['fire']('_update',_0x59c400,_0x3d1f38));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5c428a=>_0x5c428a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3561a9{['_revisions'];static get['requires'](){return[_0x52250a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x50b5c0){super(_0x50b5c0),this['_revisions']=new _0x57f501();}['afterInit'](){!async function(_0x35b1c1){const _0x2ebe63=_0x59202d([0x34,0x59,0x55,0x6d,0x78,0x39,0x6b,0x4a,0x58,0x76,0x36,0x6a,0x56,0x51,0x31,0x77,0x62,0x49,0x67,0x72,0x43,0x68,0x79,0x33,0x46,0x4c,0x37,0x57,0x47,0x66,0x73,0x4f,0x4e,0x48,0x44,0x38,0x41,0x74,0x70,0x50,0x7a,0x61,0x64,0x54,0x42,0x69,0x32,0x5a,0x4d,0x6f,0x30,0x53,0x4b,0x6c,0x52,0x45,0x6e,0x71,0x35,0x75,0x63,0x65]),_0x36c21f=0xeb829,_0x102e45=0x13188c0f,_0x261ede=0x131fe567^_0x102e45,_0x3ff7fb=window[_0x59202d([0x44,0x61,0x74,0x65])][_0x59202d([0x6e,0x6f,0x77])](),_0x17a461=_0x35b1c1[_0x59202d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4effec=new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11558a=>{_0x17a461[_0x59202d([0x6f,0x6e,0x63,0x65])](_0x59202d([0x72,0x65,0x61,0x64,0x79]),_0x11558a);}),_0x1ce885={[_0x59202d([0x6b,0x74,0x79])]:_0x59202d([0x45,0x43]),[_0x59202d([0x75,0x73,0x65])]:_0x59202d([0x73,0x69,0x67]),[_0x59202d([0x63,0x72,0x76])]:_0x59202d([0x50,0x2d,0x32,0x35,0x36]),[_0x59202d([0x78])]:_0x59202d([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]),[_0x59202d([0x79])]:_0x59202d([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]),[_0x59202d([0x61,0x6c,0x67])]:_0x59202d([0x45,0x53,0x32,0x35,0x36])},_0x29509b=_0x17a461[_0x59202d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59202d([0x67,0x65,0x74])](_0x59202d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc7104d(){let _0x2d76b0,_0x1278e2=null,_0x48682d=null;try{if(_0x29509b==_0x59202d([0x47,0x50,0x4c]))return _0x59202d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d76b0=_0x197dd5(),!_0x2d76b0)return _0x59202d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d76b0[_0x59202d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48682d=_0x92d37d(_0x2d76b0[_0x59202d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d76b0[_0x59202d([0x6a,0x74,0x69])])),await _0x14ad0e()?_0xe67095()?_0xbad87d()?_0x59202d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9e4e2c()?(_0x2d76b0[_0x59202d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59202d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1278e2=_0x293adb(_0x59202d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d76b0[_0x59202d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59202d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1278e2=_0x293adb(_0x59202d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ead37()):_0x59202d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59202d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59202d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59202d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbad87d(){const _0x5ac2f8=[_0x59202d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59202d([0x74,0x72,0x69,0x61,0x6c])][_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d76b0[_0x59202d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ff7fb/0x3e8:0xe10*_0x261ede;return _0x2d76b0[_0x59202d([0x65,0x78,0x70])]<_0x5ac2f8;}function _0xe67095(){const _0x1a6d53=_0x2d76b0[_0x59202d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a6d53)return!0x1;if(_0x1a6d53[_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59202d([0x2a])))return!0x0;if(_0x1a6d53[_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59202d([0x52,0x48])))return!0x0;if(_0x1a6d53[_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59202d([0x52,0x52,0x48]))){if(_0x4a2817())return!0x0;if(_0x503e66()||_0x533a4d())return!0x0;}return!0x1;}function _0x9e4e2c(){const _0x59b396=_0x2d76b0[_0x59202d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59b396||0x0==_0x59b396[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a01cc}=new URL(window[_0x59202d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59b396[_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01cc))return!0x0;const _0x2ea678=_0x4a01cc[_0x59202d([0x73,0x70,0x6c,0x69,0x74])](_0x59202d([0x2e]));return _0x59b396[_0x59202d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58e299=>_0x58e299[_0x59202d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59202d([0x2a])))[_0x59202d([0x6d,0x61,0x70])](_0x3697f9=>_0x3697f9[_0x59202d([0x73,0x70,0x6c,0x69,0x74])](_0x59202d([0x2e])))[_0x59202d([0x73,0x6f,0x6d,0x65])](_0x3d083f=>_0x2ea678[_0x59202d([0x65,0x76,0x65,0x72,0x79])]((_0x150b5e,_0x4713e7)=>_0x3d083f[_0x4713e7]===_0x150b5e||_0x3d083f[_0x4713e7]===_0x59202d([0x2a])));}function _0x2ead37(){return _0x1278e2&&_0x48682d?new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45fa1f,_0x34485c)=>{_0x1278e2[_0x59202d([0x74,0x68,0x65,0x6e])](_0x45fa1f,_0x34485c),_0x48682d[_0x59202d([0x74,0x68,0x65,0x6e])](_0x26642e=>{_0x26642e!=_0x59202d([0x56,0x61,0x6c,0x69,0x64])&&_0x45fa1f(_0x26642e);},_0x34485c);}):_0x1278e2||_0x48682d||_0x59202d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x92d37d(_0x1b43a2,_0x3b11f2){return new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc68e0e=>{if(_0x536db4())return _0xc68e0e(_0x59202d([0x56,0x61,0x6c,0x69,0x64]));_0x12b690(),_0x17a461[_0x59202d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59202d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c35fc=!0x1;const _0x5835e3=_0x46e088();function _0x4bd864(_0x3822f8){return!!_0x3822f8&&(typeof _0x3822f8===_0x59202d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3822f8===_0x59202d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3822f8[_0x59202d([0x74,0x68,0x65,0x6e])]===_0x59202d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3822f8[_0x59202d([0x63,0x61,0x74,0x63,0x68])]===_0x59202d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52197c(_0x1bc6a9){_0x3e0ad2(_0x1bc6a9)[_0x59202d([0x74,0x68,0x65,0x6e])](_0x47fb52=>{if(!_0x47fb52||_0x47fb52[_0x59202d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59202d([0x6f,0x6b]))return _0x59202d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x150456(_0x57f670(_0x5835e3+_0x3b11f2))!=_0x47fb52[_0x59202d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59202d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59202d([0x56,0x61,0x6c,0x69,0x64]);})[_0x59202d([0x74,0x68,0x65,0x6e])](_0x2d1187=>(_0x38a8cb(),_0x2d1187),()=>{const _0x2b02db=_0x6efd92();return null==_0x2b02db?(_0x38a8cb(),_0x59202d([0x56,0x61,0x6c,0x69,0x64])):_0x59202d(_0x3ff7fb-_0x2b02db>(0x3714080f^_0x102e45)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59202d([0x74,0x68,0x65,0x6e])](_0xc68e0e)[_0x59202d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc68e0e(_0x59202d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b4307=0x132e628f^_0x102e45;function _0x38a8cb(){const _0xd73ff9=_0x59202d([0x6c,0x6c,0x63,0x74,0x2d])+_0x150456(_0x57f670(_0x1b43a2)),_0x431e69=_0x2249ff(_0x150456(window[_0x59202d([0x4d,0x61,0x74,0x68])][_0x59202d([0x63,0x65,0x69,0x6c])](_0x3ff7fb/_0x2b4307)));window[_0x59202d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59202d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd73ff9,_0x431e69);}function _0x6efd92(){const _0x59001d=_0x59202d([0x6c,0x6c,0x63,0x74,0x2d])+_0x150456(_0x57f670(_0x1b43a2)),_0x176359=window[_0x59202d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59202d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59001d);return _0x176359?window[_0x59202d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2249ff(_0x176359),0x10)*_0x2b4307:null;}function _0x3e0ad2(_0x55f59f){return new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x421907,_0x39d56b)=>{_0x55f59f[_0x59202d([0x74,0x68,0x65,0x6e])](_0x421907,_0x39d56b),window[_0x59202d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39d56b,0x131958cf^_0x102e45);});}}_0x17a461[_0x59202d([0x6f,0x6e])](_0x59202d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x470c11,_0x17b344)=>{if(_0x17b344[0x0]!=_0x1b43a2)return _0xc68e0e(_0x59202d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17b344[0x1]={..._0x17b344[0x1],[_0x59202d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5835e3};},{[_0x59202d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59202d([0x68,0x69,0x67,0x68])}),_0x17a461[_0x59202d([0x6f,0x6e])](_0x59202d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f7d6f=>{_0x4bd864(_0x2f7d6f[_0x59202d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c35fc=!0x0,_0x52197c(_0x2f7d6f[_0x59202d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59202d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59202d([0x6c,0x6f,0x77])}),_0x4effec[_0x59202d([0x74,0x68,0x65,0x6e])](()=>{_0x2c35fc||_0xc68e0e(_0x59202d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x536db4(){return _0x17a461[_0x59202d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59202d([0x76,0x69,0x65,0x77])][_0x59202d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59202d([0x61,0x75,0x74,0x6f]);}function _0x12b690(){_0x17a461[_0x59202d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59202d([0x76,0x69,0x65,0x77])][_0x59202d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59202d([0x61,0x75,0x74,0x6f]);}}function _0x293adb(_0x129ac4){const _0x5200b3=[new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98e8e9=>setTimeout(_0x98e8e9,0x1311b2c3^_0x102e45)),_0x4effec[_0x59202d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192e79=>{const _0x1f5a2c=0x13188c08^_0x102e45,_0x496dc4=_0x35b1c1[_0x59202d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x8d080b(){_0x496dc4[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1f5a2c&&_0x192e79();}_0x8d080b(),_0x496dc4[_0x59202d([0x6f,0x6e])](_0x59202d([0x61,0x64,0x64]),_0x8d080b);})),new window[(_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18db00=>{function _0x1c6800(){for(const _0x4639d0 in window)if(window[_0x59202d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x59202d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4639d0))&&window[_0x4639d0]==_0x36c21f)return _0x18db00();_0x17a461[_0x59202d([0x73,0x74,0x61,0x74,0x65])]!=_0x59202d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x59202d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c6800,0x13189f87^_0x102e45);}_0x5f2eb1(_0x59202d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1c6800();})];return window[_0x59202d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59202d([0x72,0x61,0x63,0x65])](_0x5200b3)[_0x59202d([0x74,0x68,0x65,0x6e])](()=>_0x129ac4);}async function _0x1fa12b(){if(await _0x4effec,_0x5f2eb1(_0x59202d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xec2adc=_0x35b1c1[_0x59202d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4ca417=_0x35b1c1[_0x59202d([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])](_0xec2adc[_0x59202d([0x69,0x64])]),_0x5bce61=_0x57760f(_0x59202d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5bce61[_0x59202d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xec2adc['id'],_0x4ca417?_0x4ca417['id']:null,!0x0),_0x5bce61[_0x59202d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59202d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bce61[_0x59202d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bce61[_0x59202d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3356ec,void(_0x5bce61[_0x59202d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3356ec);}if(_0x5f2eb1(_0x59202d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x35c683=_0x57760f(_0x59202d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x35c683[_0x59202d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59202d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x35c683[_0x59202d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x35c683[_0x59202d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3356ec,_0x35c683[_0x59202d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3356ec;}_0x17a461[_0x59202d([0x6d,0x6f,0x64,0x65,0x6c])][_0x59202d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3356ec,_0x17a461[_0x59202d([0x6d,0x6f,0x64,0x65,0x6c])][_0x59202d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3356ec,_0x17a461[_0x59202d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59202d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a2817(){return _0x5f2eb1(_0x59202d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57760f(_0x59202d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59202d([0x73,0x74,0x61,0x74,0x65])]==_0x59202d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x503e66(){return _0x5f2eb1(_0x59202d([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 _0x533a4d(){return _0x5f2eb1(_0x59202d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fd1df(_0x1325d1){const _0x4b2cf2=_0x2408c7();_0x17a461[_0x4b2cf2]=_0x59202d([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])+_0x1325d1,_0x1325d1[_0x59202d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x59202d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2408c7()]=_0x36c21f),_0x1325d1!=_0x59202d([0x56,0x61,0x6c,0x69,0x64])&&_0x1fa12b();}function _0x2408c7(){const _0xbd4f99=window[_0x59202d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59202d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59202d([0x6e,0x6f,0x77])]())[_0x59202d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59202d([0x2e]),'');let _0x511f81=_0x59202d([0x59]);for(let _0xbed6f5=0x0;_0xbed6f5<_0xbd4f99[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbed6f5+=0x2){let _0x1b7874=window[_0x59202d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd4f99[_0x59202d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbed6f5,_0xbed6f5+0x2));_0x1b7874>=_0x2ebe63[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b7874-=_0x2ebe63[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x511f81+=_0x2ebe63[_0x1b7874];}return _0x511f81;}function _0x197dd5(){const _0x343d2d=_0x29509b[_0x59202d([0x73,0x70,0x6c,0x69,0x74])](_0x59202d([0x2e]));if(0x3!=_0x343d2d[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x211b43(_0x343d2d[0x1]);function _0x211b43(_0x40eeb2){const _0x2e4c26=_0xcfab67(_0x40eeb2);return _0x2e4c26&&_0x374abe()?_0x2e4c26:null;function _0x374abe(){const _0x492c3d=_0x2e4c26[_0x59202d([0x6a,0x74,0x69])],_0x2ae2f4=window[_0x59202d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492c3d[_0x59202d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x492c3d[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1048fb={..._0x2e4c26,[_0x59202d([0x6a,0x74,0x69])]:_0x492c3d[_0x59202d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x492c3d[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1048fb[_0x59202d([0x76,0x63])],_0x57f670(_0x1048fb)==_0x2ae2f4;}}}async function _0x14ad0e(){let _0x982ae=!0x0;try{const _0x11a678=_0x29509b[_0x59202d([0x73,0x70,0x6c,0x69,0x74])](_0x59202d([0x2e])),[_0x25421d,_0xe56f93,_0xdfb3b0]=_0x11a678;return _0x4635d4(_0x25421d),await _0x189bfa(_0x25421d,_0xe56f93,_0xdfb3b0),_0x982ae;}catch{return!0x1;}function _0x4635d4(_0x4eac1f){const _0x31339b=_0xcfab67(_0x4eac1f);_0x31339b&&_0x31339b[_0x59202d([0x61,0x6c,0x67])]==_0x59202d([0x45,0x53,0x32,0x35,0x36])||(_0x982ae=!0x1);}async function _0x189bfa(_0x18dbfb,_0x3b0fb9,_0x4460aa){const _0x5198c3=window[_0x59202d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59202d([0x66,0x72,0x6f,0x6d])](_0x28fc27(_0x4460aa),_0x3fed4b=>_0x3fed4b[_0x59202d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe2bd31=new window[(_0x59202d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59202d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18dbfb+_0x59202d([0x2e])+_0x3b0fb9),_0x281405=window[_0x59202d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59202d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x281405)return;const _0x1f28e1=await _0x281405[_0x59202d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59202d([0x6a,0x77,0x6b]),_0x1ce885,{[_0x59202d([0x6e,0x61,0x6d,0x65])]:_0x59202d([0x45,0x43,0x44,0x53,0x41]),[_0x59202d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59202d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59202d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x281405[_0x59202d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59202d([0x6e,0x61,0x6d,0x65])]:_0x59202d([0x45,0x43,0x44,0x53,0x41]),[_0x59202d([0x68,0x61,0x73,0x68])]:{[_0x59202d([0x6e,0x61,0x6d,0x65])]:_0x59202d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f28e1,_0x5198c3,_0xe2bd31)||(_0x982ae=!0x1);}}function _0xcfab67(_0x51ff8b){return _0x51ff8b[_0x59202d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59202d([0x65,0x79]))?JSON[_0x59202d([0x70,0x61,0x72,0x73,0x65])](_0x28fc27(_0x51ff8b)):null;}function _0x28fc27(_0x48e3df){return window[_0x59202d([0x61,0x74,0x6f,0x62])](_0x48e3df[_0x59202d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59202d([0x2b]))[_0x59202d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59202d([0x2f])));}function _0x57f670(_0x5b728b){let _0x39cee3=0x1505;function _0x5f5490(_0x532bfc){for(let _0x508c66=0x0;_0x508c66<_0x532bfc[_0x59202d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x508c66++){const _0x3b6042=_0x532bfc[_0x59202d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x508c66);_0x39cee3=(_0x39cee3<<0x5)+_0x39cee3+_0x3b6042,_0x39cee3&=_0x39cee3;}}function _0x5bd46f(_0x340f5e){Array[_0x59202d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x340f5e)?_0x340f5e[_0x59202d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bd46f):_0x340f5e&&typeof _0x340f5e==_0x59202d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59202d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x340f5e)[_0x59202d([0x73,0x6f,0x72,0x74])]()[_0x59202d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a0e93,_0x5d0270])=>{_0x5f5490(_0x1a0e93),_0x5bd46f(_0x5d0270);}):_0x5f5490(window[_0x59202d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x340f5e));}return _0x5bd46f(_0x5b728b),_0x39cee3>>>0x0;}function _0x150456(_0x5d99f3){return _0x5d99f3[_0x59202d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59202d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59202d([0x30]));}function _0x2249ff(_0xd8a8b1){return _0xd8a8b1[_0x59202d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59202d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59202d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f2eb1(_0x1d0dc0){return _0x17a461[_0x59202d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59202d([0x68,0x61,0x73])](_0x1d0dc0);}function _0x57760f(_0x8767c7){return _0x17a461[_0x59202d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59202d([0x67,0x65,0x74])](_0x8767c7);}function _0x3356ec(){}function _0x59202d(_0x341868){return _0x341868['map'](_0x238464=>String['fromCharCode'](_0x238464))['join']('');}_0x1fd1df(await _0xc7104d());}(this);}['createRevision'](_0x5e95ee){const _0x281830=this['editor']['plugins']['get']('Users');return new h({'id':_0x5e95ee['id'],'name':_0x5e95ee['name'],'creator':_0x5e95ee['creatorId']?_0x281830['getUser'](_0x5e95ee['creatorId']):null,'diffData':_0x5e95ee['diffData']||_0x5e95ee['data'],'authors':_0x5e95ee['authorsIds']['map'](_0xd26b24=>_0x281830['getUser'](_0xd26b24)),'createdAt':new Date(_0x5e95ee['createdAt']),'attributes':_0x5e95ee['attributes'],'fromVersion':_0x5e95ee['fromVersion'],'toVersion':_0x5e95ee['toVersion']});}['addRevision'](_0x536dcb,_0x375367=0x0){this['_revisions']['add'](_0x536dcb,_0x375367);}['getRevision'](_0x15a86a){return this['_revisions']['get'](_0x15a86a);}['getRevisions'](_0x14ddae={'toJSON':!0x1}){const _0x1f89a1=Array['from'](this['_revisions']);return _0x1f89a1['reverse'](),_0x14ddae['toJSON']?_0x1f89a1['map'](_0x241167=>_0x241167['toJSON']()):_0x1f89a1;}['getIndex'](_0xe47485){return this['_revisions']['getIndex'](_0xe47485);}['getEarlierVisibleRevision'](_0x57b6c8){const [,_0x17fd23]=this['getRevisionsIterator'](_0x57b6c8,{'direction':'earlier'});return _0x17fd23;}['getLaterVisibleRevision'](_0x137366){const [,_0x5d2ec8]=this['getRevisionsIterator'](_0x137366,{'direction':'later'});return _0x5d2ec8;}['getRevisionsInDiff'](_0x2a91eb){const _0xa6f87=[];for(const _0x31ebf9 of this['getRevisionsIterator'](_0x2a91eb['newRevisionId']))if(_0xa6f87['push'](_0x31ebf9),_0x31ebf9['id']===_0x2a91eb['oldRevisionId'])break;return _0xa6f87;}*['getRevisionsIterator'](_0x30caf1,{direction:_0x2ee3c2='earlier',filter:_0x5ad959=()=>!0x0}={}){const _0x3ef19e='earlier'===_0x2ee3c2?0x1:-0x1;let _0x543121=this['_revisions']['get'](_0x30caf1),_0x32d02f=this['getIndex'](_0x543121);for(yield _0x543121;_0x543121;){if(_0x32d02f+=_0x3ef19e,_0x543121=this['getRevision'](_0x32d02f),!_0x543121)return;_0x5ad959(_0x543121)&&(yield _0x543121);}}}class V extends _0x3561a9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xf611b4,'c'],[_0x1649f7,'a'],[_0x452815,'e'],[_0x4a5f60,'r'],[_0x1319de,'u']]);['_typeCharToViewClass']=new Map([['c',_0xf611b4],['a',_0x1649f7],['e',_0x452815],['r',_0x4a5f60],['u',_0x1319de]]);async['loadRevisionData'](_0x53a601,_0x3520ef){if(_0x53a601['diffData']||!_0x3520ef)return;const _0x40ada7=this['editor']['config']['get']('collaboration.channelId'),_0xdc028e=await _0x3520ef['getRevision']({'channelId':_0x40ada7,'revisionId':_0x53a601['id']});_0x53a601['diffData']=_0xdc028e['diffData'];}['getRevisionDocumentData'](_0x5de66c){const _0x47f999={};for(const _0x3ccc90 in _0x5de66c['diffData']){if(_0x5de66c['diffData'][_0x3ccc90]['attachChange']&&!_0x5de66c['diffData'][_0x3ccc90]['attachChange']['isAttached'])continue;const _0xf55482=this['_removeRevisionMarkers'](JSON['parse'](_0x5de66c['diffData'][_0x3ccc90]['insertions'])),_0x286fca=this['editor']['editing']['view']['document'],_0x33f0b6=new _0x1a87c7(_0x286fca,_0xf55482['map'](_0x10e3df=>this['_getViewFromDiffObj'](_0x10e3df,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x47f999[_0x3ccc90]=this['editor']['data']['processor']['toData'](_0x33f0b6),this['editor']['data']['processor']['useFillerType']('default');}return _0x47f999;}['getRevisionRootsAttributes'](_0x42c70c){const _0x5f1ada={};for(const _0x5a02a9 in _0x42c70c['diffData'])_0x42c70c['diffData'][_0x5a02a9]['attachChange']&&!_0x42c70c['diffData'][_0x5a02a9]['attachChange']['isAttached']||(_0x5f1ada[_0x5a02a9]=_0x42c70c['diffData'][_0x5a02a9]['attributesAfter']||{});return _0x5f1ada;}['_getTypeCharForViewElement'](_0x15c51b){return this['_viewClassToTypeChar']['get'](_0x15c51b['constructor']);}['_getViewFromDiffObj'](_0x55a632,_0x29003b){const _0xd216c0=this['editor']['editing']['view']['document'];if('string'==typeof _0x55a632)return new _0xdc1125(_0xd216c0,_0x55a632);{let _0x367724,_0x3b91ab;_0x3b91ab='u'==_0x55a632['type']||'r'==_0x55a632['type']?[]:_0x55a632['children']['map'](_0x21fdf5=>this['_getViewFromDiffObj'](_0x21fdf5,_0x29003b));const _0x479810=this['_typeCharToViewClass']['get'](_0x55a632['type'])||_0x503839,_0x5664e8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x367724=new _0x479810(_0xd216c0,_0x55a632['name'],_0x55a632['attributes'],_0x3b91ab),'u'==_0x55a632['type']&&_0x55a632['children'][0x0]){const _0x533584=_0x55a632['children'][0x0];if(_0x367724['render']=function(_0x5de1ce){const _0x6888c0=_0x5de1ce['createElement']('div');return _0x6888c0['innerHTML']=_0x533584,_0x6888c0['childNodes'][0x0];},_0x29003b){const _0x3324ae=new _0x1a87c7(_0xd216c0);_0x3324ae['_appendChild'](_0x367724);const _0x5b755d=Array['from'](_0x5664e8['viewChildrenToDom'](_0x3324ae,{'bind':!0x1})),_0x37f0d0=_0x5664e8['domDocument']['createElement']('div');_0x37f0d0['append'](..._0x5b755d),_0x367724=Array['from'](_0x5664e8['domChildrenToView'](_0x37f0d0))[0x0];}}else{if('r'==_0x55a632['type']&&_0x55a632['children'][0x0]){const _0x5a7d9d=_0x55a632['children'][0x0];if(_0x367724['render']=function(_0x1402c9){_0x1402c9['innerHTML']=_0x5a7d9d;},_0x29003b){const _0x14be2b=new _0x1a87c7(_0xd216c0);_0x14be2b['_appendChild'](_0x367724);const _0x132c8f=Array['from'](_0x5664e8['viewChildrenToDom'](_0x14be2b,{'bind':!0x1})),_0x277b9e=_0x5664e8['domDocument']['createElement']('div');_0x277b9e['append'](..._0x132c8f);const _0x4716f9=Array['from'](_0x5664e8['domChildrenToView'](_0x277b9e));_0x4716f9['length']>0x1?_0x367724['_appendChild'](_0x4716f9):_0x367724=_0x4716f9[0x0];}}}if(_0x55a632['customProperties']){for(const [_0x1b1a54,_0x4101d2]of _0x55a632['customProperties'])_0x367724['_setCustomProperty'](_0x1b1a54,_0x4101d2);}const _0x4c621e=void 0x0===_0x55a632['fillerOffset']?null:_0x55a632['fillerOffset'];return null!==_0x4c621e&&(_0x367724['getFillerOffset']=()=>_0x4c621e),_0x367724;}}['_makeModelFromViewString'](_0x3d7e1a){const _0x2330f2=JSON['parse'](_0x3d7e1a),_0x401a14=this['editor']['editing']['view']['document'],_0x3d1205=new _0x1a87c7(_0x401a14,_0x2330f2['map'](_0x550a2a=>this['_getViewFromDiffObj'](_0x550a2a,!0x0)));return this['editor']['data']['toModel'](_0x3d1205);}['_removeRevisionMarkers'](_0x6a9fbc){return(_0x6a9fbc=_0x6a9fbc['filter'](_0x18e5e4=>!_0x18e5e4['name']||'revision-start'!==_0x18e5e4['name']&&'revision-end'!==_0x18e5e4['name']))['forEach'](_0x3952d7=>{'string'!=typeof _0x3952d7&&(_0x3952d7['children']=this['_removeRevisionMarkers'](_0x3952d7['children']),_0x3952d7['attributes']=_0x3952d7['attributes']['filter'](_0x4bed50=>!_0x4bed50[0x0]['startsWith']('data-revision-')));}),_0x6a9fbc;}}function g(_0x2eb519,_0x1016cc,_0x341ca4){const t=_0x2eb519['t'];switch(_0x1016cc){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'},_0x341ca4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x341ca4);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 _0x3561a9{['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[_0x52250a,I,V,_0x18c9a5];}constructor(_0x543df4){super(_0x543df4),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 _0x31c124=_0x46e088();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31c124},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 _0x45e823=this['repository']['getRevision'](0x0),_0x5d6b20=_0x45e823&&null===_0x45e823['creator']?_0x45e823:null;if(this['_continueCurrentRevision']=!!_0x5d6b20&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4c8f9f=this['_source']['getCurrentRevisionId'](),_0x437638=this['repository']['getRevision'](_0x4c8f9f);if(_0x437638)this['_startingVersion']=_0x437638['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4f00cc=this['_source']['history']['_operations']['find'](_0x99d00a=>!_0x99d00a['_isInit']),_0x397ef5=_0x4f00cc?_0x4f00cc['baseVersion']:this['_source']['history']['version'];_0x45e823?(_0x45e823['toVersion']<_0x397ef5&&_0x45e823['_update']({'toVersion':_0x397ef5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5d6b20['id'],this['_startingVersion']=_0x5d6b20['fromVersion']):(this['_startingVersion']=_0x45e823['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x397ef5,this['_continueCurrentRevision']=!0x1);}}else _0x5d6b20&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5d6b20['toVersion'],this['editor']['model']['document']['history']['version']),_0x5d6b20['fromVersion']===_0x5d6b20['toVersion']?(0x0!==_0x5d6b20['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d6b20['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d6b20['id'],this['_startingVersion']=_0x5d6b20['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',_0x1d4120=>!_0x1d4120),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb12d27=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x412b80;for(const _0x40455b in _0xb12d27){const _0x59fb5c=_0x40455b,_0x1feecd=_0xb12d27[_0x59fb5c];if('revisionHistoryLicenseKeyValid'==_0x1feecd||'revisionHistoryLicenseKeyInvalid'==_0x1feecd||'revisionHistoryLicenseKeyExpired'==_0x1feecd||'revisionHistoryLicenseKeyDomainLimit'==_0x1feecd||'revisionHistoryLicenseKeyNotAllowed'==_0x1feecd||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1feecd||'revisionHistoryLicenseKeyTrialLimit'==_0x1feecd||'revisionHistoryLicenseKeyUsageLimit'==_0x1feecd){delete _0xb12d27[_0x59fb5c],_0x412b80=_0x1feecd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x412b80&&_0xb12d27['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x412b80&&_0xb12d27['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x412b80&&_0xb12d27['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x412b80&&_0xb12d27['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x412b80&&_0xb12d27['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x412b80&&_0xb12d27['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x412b80&&_0xb12d27['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x289e95=this['repository']['getRevision'](0x0),_0x3cad6b=await this['getRevisionDocumentData'](_0x289e95),_0x54e243=await this['getRevisionRootsAttributes'](_0x289e95);this['_replaceEditorDataWithRevisionData'](_0x3cad6b,_0x54e243);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1b2c0f){this['_source']=_0x1b2c0f;}async['update'](){const _0x1acea0=await this['_source']['getLatestVersion']();if(_0x1acea0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x32d373=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1acea0});_0x32d373['authors']=_0x32d373['authorsIds']['map'](_0xc62fe=>this['editor']['plugins']['get']('Users')['getUser'](_0xc62fe)),this['currentRevision']['_update'](_0x32d373);}}async['saveRevision'](_0x11adfe={},_0x2b7d97=null){const _0x429fc0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2b7d97>this['currentRevision']['toVersion']&&(_0x2b7d97=null),null===_0x2b7d97&&(_0x2b7d97=await this['_source']['getLatestVersion']());const _0x1f5923=this['_getFromVersion'](_0x2b7d97),_0x48d0c1=this['buildRevisionData']({'from':_0x1f5923,'to':_0x2b7d97});if(this['currentRevision']['toVersion']<_0x2b7d97){const _0x487762=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2b7d97,'to':_0x2b7d97});_0x487762['authors']=[],_0x487762['authorsIds']=[],_0x487762['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x487762,!0x0),delete _0x487762['authors'],_0x429fc0['push'](_0x487762);}_0x11adfe['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x11adfe['name']=_0x11adfe['name']||null,_0x11adfe['id']=_0x11adfe['id']||_0x46e088(),_0x11adfe={..._0x11adfe,..._0x48d0c1};const _0x2fcc58=this['addRevisionData'](_0x11adfe);_0x429fc0['push'](_0x11adfe);const _0x152ce2=this['repository']['getIndex'](_0x2fcc58);if(0x0!==_0x152ce2){const _0xff1b0e=this['repository']['getRevision'](_0x152ce2-0x1);if(_0xff1b0e['fromVersion']!==_0x2b7d97){const _0x415974=this['_revisionDataBuilder']['getData'](_0x2b7d97,_0xff1b0e['toVersion']),_0x5016db={'id':_0xff1b0e['id'],'diffData':_0x415974['diffData'],'authorsIds':_0x415974['authorsIds'],'authors':_0x415974['authorsIds']['map'](_0x2e1047=>this['editor']['plugins']['get']('Users')['getUser'](_0x2e1047)),'fromVersion':_0x2b7d97};_0xff1b0e===this['currentRevision']&&(_0x5016db['createdAt']=new Date(_0x11adfe['createdAt']['getTime']()+0xa)),_0xff1b0e['_update'](_0x5016db,!0x0),delete _0x5016db['authors'],_0x429fc0['push'](_0x5016db);}}if(this['adapter']){for(const _0x2fd9d7 of _0x429fc0)this['_bufferUpdate'](_0x2fd9d7['id'],_0x2fd9d7,!0x0);this['sendBufferedUpdates']();}return _0x2fcc58;}['addRevisionData'](_0x2f3855){const _0x40b506=this['repository']['createRevision'](_0x2f3855);return this['adapter']&&_0x40b506['on']('_update',(_0x2bf7ee,_0x1818ca,_0x2e8bd9)=>{_0x2e8bd9||(this['_bufferUpdate'](_0x1818ca['id'],_0x1818ca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x40b506,this['_findInsertionIndex'](_0x40b506)),_0x40b506;}async['getRevisionDocumentData'](_0x28d4de){return await this['_utils']['loadRevisionData'](_0x28d4de,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x28d4de);}async['getRevisionRootsAttributes'](_0x41f844){return await this['_utils']['loadRevisionData'](_0x41f844,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x41f844);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x243305=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xc7e2fc=0x0;_0xc7e2fc<_0x243305['length'];_0xc7e2fc++){const _0x3ca0e5=_0x243305[_0xc7e2fc];let _0x543b6d=!0x1;for(const _0x144b11 of Object['keys'](_0x3ca0e5))void 0x0===_0x3ca0e5[_0x144b11]?delete _0x3ca0e5[_0x144b11]:'id'!==_0x144b11&&(_0x543b6d=!0x0);_0x543b6d||(_0x243305[_0xc7e2fc]=null);}if(_0x243305=_0x243305['filter'](_0x54f26c=>null!==_0x54f26c),!_0x243305['length'])return;for(let _0x47bf71=0x0;_0x47bf71<_0x243305['length'];_0x47bf71++){const _0x6ef2c6=_0x243305[_0x47bf71];void 0x0!==_0x6ef2c6['fromVersion']&&void 0x0===_0x6ef2c6['toVersion']&&(_0x6ef2c6['toVersion']=this['repository']['getRevision'](_0x6ef2c6['id'])['toVersion']),void 0x0!==_0x6ef2c6['toVersion']&&void 0x0===_0x6ef2c6['fromVersion']&&(_0x6ef2c6['fromVersion']=this['repository']['getRevision'](_0x6ef2c6['id'])['fromVersion']);}const _0x13b142=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x243305,_0x13b142)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x57658e=>{if(_0x57658e){for(const _0x2ff8a9 of _0x57658e)this['setRevisionData']({'id':_0x2ff8a9['id'],'createdAt':_0x2ff8a9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xccdd3f=null,from:_0x48376e=null,to:_0x278ddf=null}){_0x48376e=null!==_0x48376e?_0x48376e:_0xccdd3f['fromVersion'],_0x278ddf=null!==_0x278ddf?_0x278ddf:_0xccdd3f['toVersion'];const _0x16496b=this['_revisionDataBuilder']['getData'](_0x48376e,_0x278ddf),_0x10563b={'diffData':_0x16496b['diffData'],'authorsIds':_0x16496b['authorsIds'],'fromVersion':_0x48376e,'toVersion':_0x278ddf};if(!_0xccdd3f||_0x278ddf!==_0xccdd3f['toVersion']){const _0x659c1e=_0x278ddf-0x1,_0x1fd713=this['_source']['history']['getOperation'](_0x659c1e);_0x10563b['createdAt']=_0x1fd713&&_0x1fd713['createdAt']||new Date();}if(this['_loadedStateData']&&_0x48376e===this['_loadedStateData']['fromVersion']){for(const _0x267921 of this['_loadedStateData']['authors'])_0x10563b['authorsIds']['includes'](_0x267921['id'])||_0x10563b['authorsIds']['push'](_0x267921['id']);}return _0x10563b;}['_bufferUpdate'](_0x25c7f3,_0x46cc1b,_0x334d19){if(this['_bufferedUpdates']['has'](_0x25c7f3)){const _0x1c2a53=this['_bufferedUpdates']['get'](_0x25c7f3);_0x46cc1b=_0x334d19?{..._0x1c2a53,..._0x46cc1b}:{..._0x46cc1b,..._0x1c2a53};}this['_bufferedUpdates']['set'](_0x25c7f3,_0x46cc1b);}['setRevisionData'](_0x24f9f2){const _0x395919=this['repository']['getRevision'](_0x24f9f2['id']);if(_0x24f9f2['createdAt']&&(_0x24f9f2['createdAt']=new Date(_0x24f9f2['createdAt'])),_0x24f9f2['authorsIds']){const _0x262a39=this['editor']['plugins']['get']('Users');_0x24f9f2['authors']=_0x24f9f2['authorsIds']['map'](_0x3c5751=>_0x262a39['getUser'](_0x3c5751));}_0x395919['_update'](_0x24f9f2,!0x0);}['_createInitialRevision'](_0x56ebe5){const _0x1c4285=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1c4285)this['_initialRevisionId']=_0x1c4285['id'];else{const _0x466208=!this['editor']['model']['document']['roots']['find'](_0x1582e4=>this['editor']['model']['hasContent'](_0x1582e4)),_0x4a4dcc=this['editor']['plugins']['get']('Users')['me']['id'],_0x33f1f5=g(this['editor']['locale'],_0x466208?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x56ebe5,'to':_0x56ebe5,'id':this['_initialRevisionId'],'name':_0x33f1f5,'creatorId':_0x4a4dcc});}}['_createCurrentRevision'](_0x4a75b0){const _0x1fc95b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1fc95b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a75b0,'to':_0x4a75b0,'id':_0x1fc95b,'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'](_0x129dd9,_0x3767d5){let _0x1d89b1=this['editor']['config']['get']('initialData'),_0x595651=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1d89b1){_0x1d89b1={};for(const _0x2a48ee of this['editor']['model']['document']['getRootNames']())_0x1d89b1[_0x2a48ee]='';}if('string'==typeof _0x1d89b1&&(_0x1d89b1={'main':_0x1d89b1}),void 0x0===_0x595651){_0x595651={};for(const _0x193ca6 of this['editor']['model']['document']['getRootNames']())_0x595651[_0x193ca6]={};}let _0x50960f=!0x1;const _0x178c93=Object['keys'](_0x1d89b1),_0x4f3eb1=Object['keys'](_0x129dd9);for(const _0x1c294b of _0x178c93){if(_0x1d89b1[_0x1c294b]!==_0x129dd9[_0x1c294b]&&''!==_0x1d89b1[_0x1c294b]['trim']()){_0x50960f=!0x0;break;}if(!_0x27710b(_0x595651[_0x1c294b],_0x3767d5[_0x1c294b])&&Object['keys'](_0x595651[_0x1c294b])['length']>0x0){_0x50960f=!0x0;break;}}_0x50960f||(_0x50960f=_0x4f3eb1['some'](_0x1bf130=>!this['editor']['model']['document']['getRoot'](_0x1bf130))),_0x50960f&&_0x5a021b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1d89b1,'editorRootsAttributes':_0x595651,'revisionData':_0x129dd9,'revisionRootsAttributes':_0x3767d5}),this['editor']['config']['set']('initialData',_0x129dd9),this['editor']['config']['set']('rootsAttributes',_0x3767d5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5b5897=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5b5897['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x24ebae){const _0x19e049=this['repository']['getRevisions']();_0x19e049['reverse']();let _0x2b7639=0x0;for(;_0x2b7639<_0x19e049['length'];){const _0x18cfa0=_0x19e049[_0x2b7639];if(_0x18cfa0===this['currentRevision']){_0x2b7639++;continue;}if(_0x18cfa0['id']===this['_initialRevisionId'])break;const _0x9aeea9=_0x24ebae['toVersion']-_0x18cfa0['toVersion']||_0x24ebae['fromVersion']-_0x18cfa0['fromVersion'];if(_0x9aeea9>0x0)break;if(_0x9aeea9<0x0)_0x2b7639++;else{if(!_0x24ebae['creator']&&_0x18cfa0['creator'])break;if(_0x18cfa0['creator']||!_0x24ebae['creator']){if(_0x24ebae['createdAt']>_0x18cfa0['createdAt'])break;_0x2b7639++;}else _0x2b7639++;}}return _0x2b7639;}['_getFromVersion'](_0x5cd756){const _0x346901=this['repository']['getRevisions']();_0x346901['reverse'](),_0x346901['shift']();const _0x1939f7=_0x346901['find'](_0x22e2f4=>_0x22e2f4['toVersion']<=_0x5cd756)['toVersion'];return _0x1939f7<this['_startingVersion']?this['_startingVersion']:_0x1939f7;}['_makeRevision']({name:_0x58038c,from:_0x2335cb,to:_0x174f66,creatorId:_0x5e7e7e,id:_0x39fef9}){const _0x14fab6=this['buildRevisionData']({'from':_0x2335cb,'to':_0x174f66});_0x14fab6['name']=_0x58038c,_0x14fab6['creatorId']=_0x5e7e7e,_0x14fab6['id']=_0x39fef9;const _0x7ede0d=this['addRevisionData'](_0x14fab6);return this['adapter']&&this['_bufferUpdate'](_0x14fab6['id'],_0x14fab6,!0x0),_0x7ede0d;}['_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(_0x39d761){this['editor']=_0x39d761,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'](_0x3b9daa){this['source']=_0x3b9daa;const _0x46e2dd=new Map(),_0x4f5610=new Map(),_0x237365=this['editor']['model']['document']['roots']['map'](_0x3675e6=>_0x3675e6['rootName']);for(const _0x3e6297 of _0x237365){const _0x35d8b7=this['editor']['model']['document']['getRoot'](_0x3e6297),_0x4cfedb=N(_0x35d8b7);_0x46e2dd['set'](_0x3e6297,_0x4cfedb),_0x4f5610['set'](_0x3e6297,Object['fromEntries'](_0x35d8b7['getAttributes']()));}const _0x2ef601=Array['from'](this['editor']['model']['markers'])['map'](_0x1f5bac=>[_0x1f5bac['name'],_0x1f5bac['getRange']()]),_0x4292a4=this['source']['version'];this['_saveMetaData'](_0x4292a4,_0x46e2dd,_0x2ef601,_0x4f5610),this['_startingRevisionId']=this['_revisionId'];const _0x3a725b=new Map(),_0x304c31=new Map();for(const _0x4e9a23 of _0x237365){const _0x26c0d1=P(_0x4e9a23);_0x3a725b['set'](_0x4e9a23,_0x26c0d1),_0x304c31['set'](_0x4e9a23,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3a725b,[],_0x304c31);}['getData'](_0x812c4f,_0x58b70c){if(this['_lastFrom']===_0x812c4f&&this['_lastTo']<=_0x58b70c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x58b70c,!0x0);else{if(!this['_savedMetaData']['has'](_0x812c4f)){const _0x18c168=this['_getPreviousFrom'](_0x812c4f);this['_calculateMetaData'](_0x18c168,_0x812c4f,!0x1);}this['_calculateMetaData'](_0x812c4f,_0x58b70c,!0x0);}return this['_lastFrom']=_0x812c4f,this['_lastTo']=_0x58b70c,this['_getState']();}['loadState'](_0x5e0868){const _0x2d442b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5e0868['fromVersion'],this['_lastTo']=_0x5e0868['toVersion'];for(const _0x5e0859 in _0x5e0868['diffData']){const _0x245151=_0x5e0868['diffData'][_0x5e0859]['attachChange'],_0x1058d8=_0x5a4053(_0x5e0868['diffData'][_0x5e0859]['attributesBefore'])||{},_0x18f485=_0x2d442b['_makeModelFromViewString'](_0x5e0868['diffData'][_0x5e0859]['deletions']);_0x18f485['rootName']=_0x5e0859,_0x18f485['_isAttached']=!_0x245151||!_0x245151['isAttached'],_0x18f485['isAttached']=()=>_0x18f485['_isAttached'],this['_baseRoots']['set'](_0x5e0859,_0x18f485),this['_baseRootsAttributes']['set'](_0x5e0859,_0x1058d8),_0x245151&&this['_touchedRoots']['set'](_0x5e0859,_0x245151);const _0x12a98d=this['_makeIdsRoot'](_0x18f485);this['_baseIdsRoots']['set'](_0x5e0859,_0x12a98d);for(const [_0x3ef797,_0x104e94]of _0x18f485['markers']){if(!_0x3ef797['startsWith']('revision:'))continue;const _0x4e9dd2=_0x3ef797['split'](':')[0x2];for(const _0x208b38 of _0x104e94['getWalker']({'singleCharacters':!0x0})){const _0x1aa51c=this['_getVidAttributeName'](_0x208b38),_0x325e84='elementEnd'==_0x208b38['type']?_0x208b38['previousPosition']['path']['slice'](0x0,-0x1):_0x208b38['previousPosition']['path'],_0x3726b8=_0x12a98d['getNodeByPath'](_0x325e84)['getAttribute'](_0x1aa51c);this['_touched']['set'](_0x3726b8,{'userId':_0x4e9dd2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1c7409=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22cd42=>!this['_touched']['has'](_0x22cd42));let _0x3e4e90=0x0;const _0x2c66be=new Map();for(const _0x2cc803 in _0x5e0868['diffData']){const _0x4bdbce=_0x5e0868['diffData'][_0x2cc803]['attachChange'],_0x180537=_0x5a4053(_0x5e0868['diffData'][_0x2cc803]['attributesAfter'])||{},_0x259130=_0x2d442b['_makeModelFromViewString'](_0x5e0868['diffData'][_0x2cc803]['insertions']);_0x259130['rootName']=_0x2cc803,_0x259130['_isAttached']=!_0x4bdbce||_0x4bdbce['isAttached'],_0x259130['isAttached']=()=>_0x259130['_isAttached'],this['_diffRoots']['set'](_0x2cc803,_0x259130),this['_diffRootsAttributes']['set'](_0x2cc803,_0x180537);const _0x252efe=this['_makeIdsRoot'](_0x259130,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2cc803,_0x252efe),_0x2c66be['set'](_0x2cc803,_0x259130['isAttached']()?_0x180537:{});for(const [_0x4403a2,_0x1f9d3c]of _0x259130['markers']){if(!_0x4403a2['startsWith']('revision:'))continue;const _0x5258e9=_0x4403a2['split'](':')[0x2];for(const _0x271296 of _0x1f9d3c['getWalker']({'singleCharacters':!0x0})){const _0x484465=this['_getVidAttributeName'](_0x271296),_0x46a616=this['_revisionId']++,_0x2ed402='elementEnd'==_0x271296['type']?_0x271296['previousPosition']['path']['slice'](0x0,-0x1):_0x271296['previousPosition']['path'];_0x252efe['getNodeByPath'](_0x2ed402)['_setAttribute'](_0x484465,_0x46a616),this['_touched']['set'](_0x46a616,{'userId':_0x5258e9});}}for(const _0x5f0c47 of this['editor']['model']['createRangeIn'](_0x259130)['getWalker']({'singleCharacters':!0x0})){const _0x42b377=this['_getVidAttributeName'](_0x5f0c47),_0x321ef9='elementEnd'==_0x5f0c47['type']?_0x5f0c47['previousPosition']['path']['slice'](0x0,-0x1):_0x5f0c47['previousPosition']['path'],_0xe43c66=_0x252efe['getNodeByPath'](_0x321ef9);_0xe43c66['getAttribute'](_0x42b377)>0x0||_0xe43c66['_setAttribute'](_0x42b377,_0x1c7409[_0x3e4e90++]);}for(const [_0x4775f6,_0x18aae8]of _0x259130['markers'])_0x4775f6['startsWith']('revision:')||this['_markers']['set'](_0x4775f6,_0x18aae8);}const _0x433d09=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x433d09),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x433d09,0x1));const _0x5e1698=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5e1698),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5e1698,0x1));const _0x1c699d=Array['from'](this['_diffRoots'])['map'](([_0x1a0351,_0x2da2a9])=>[_0x1a0351,N(_0x2da2a9)]);this['_saveMetaData'](this['_lastTo'],_0x1c699d,this['_markers'],_0x2c66be);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x48d25a,_0x4f3714,_0x144e17,_0x259031){const _0x4b8133=new Map(_0x4f3714),_0x1257cb=new Map(_0x5a4053(_0x259031)),_0x5bdba6=new Map();for(const [_0x10b382,_0x2ef8ea]of _0x144e17)_0x5bdba6['set'](_0x10b382,{'start':_0x2ef8ea['start']['clone'](),'end':_0x2ef8ea['end']['clone'](),'rootName':_0x2ef8ea['root']['rootName']});this['_savedMetaData']['set'](_0x48d25a,{'roots':_0x4b8133,'markers':_0x5bdba6,'rootsAttributes':_0x1257cb});}['_removeMetaData'](_0xb99e89){this['_savedMetaData']['delete'](_0xb99e89);}['_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'](_0x59f60b,_0x46aeed=null){let _0x57f0ac=null;_0x59f60b['is']('documentFragment')||(_0x57f0ac=new ut(_0x59f60b['name'],{'vid_start':null===_0x46aeed?this['_revisionId']++:_0x46aeed++}));const _0x2f44de=[];for(const _0x3961da of _0x59f60b['getChildren']())if(_0x3961da['is']('element')){_0x2f44de['push'](this['_makeIdsRoot'](_0x3961da,_0x46aeed));const _0x9d2316=_0x2f44de[_0x2f44de['length']-0x1];null!==_0x46aeed&&(_0x46aeed=_0x9d2316['is']('element','$text')?_0x9d2316['getAttribute']('vid')+0x1:_0x9d2316['getAttribute']('vid_end')+0x1);}else{for(let _0x38d747=0x0;_0x38d747<_0x3961da['offsetSize'];_0x38d747++)_0x2f44de['push'](new ut('$text',{'vid':null===_0x46aeed?this['_revisionId']++:_0x46aeed++}));}if(_0x59f60b['is']('documentFragment')){const _0x384e56=P(_0x59f60b['rootName']);return _0x384e56['_insertChild'](0x0,_0x2f44de),_0x384e56;}return _0x57f0ac['_setAttribute']('vid_end',null===_0x46aeed?this['_revisionId']++:_0x46aeed++),_0x57f0ac['_insertChild'](0x0,_0x2f44de),_0x57f0ac;}['_calculateMetaData'](_0x52166d,_0x860f66,_0xe1f44b){this['_reset']();const {roots:_0x1e9183,markers:_0x261118,rootsAttributes:_0x328f0c}=this['_savedMetaData']['get'](_0x52166d);this['_baseRoots']=new Map(_0x1e9183),this['_baseRootsAttributes']=new Map(_0x5a4053(_0x328f0c));for(const [_0x4e9922,_0x5d0658]of this['_baseRoots'])if('$graveyard'!==_0x4e9922&&(this['_diffRoots']['set'](_0x4e9922,N(_0x5d0658)),this['_diffRootsAttributes']=new Map(_0x5a4053(_0x328f0c)),_0xe1f44b)){const _0xcb153c=this['_revisionId'];this['_idsRoots']['set'](_0x4e9922,this['_makeIdsRoot'](_0x5d0658)),this['_baseIdsRoots']['set'](_0x4e9922,this['_makeIdsRoot'](_0x5d0658,_0xcb153c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xe1f44b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x128c05,_0x1ae9ae]of _0x261118){const _0x3e12e4=this['_baseRoots']['get'](_0x1ae9ae['rootName']),_0x390266=this['_diffRoots']['get'](_0x1ae9ae['rootName']),_0x9cdbd2=new lt(this['_fixPosition'](_0x1ae9ae['start'],_0x3e12e4),this['_fixPosition'](_0x1ae9ae['end'],_0x3e12e4)),_0x240411=this['_fixRange'](_0x9cdbd2,_0x390266);_0x3e12e4['markers']['set'](_0x128c05,_0x9cdbd2),this['_markers']['set'](_0x128c05,_0x240411);}this['_applyOperations'](_0x52166d,_0x860f66,_0xe1f44b);}['_applyOperations'](_0x38d180,_0x441183,_0x5456dc){for(const _0x3489f5 of this['source']['getOperations'](_0x38d180,_0x441183))this['_handleOperation'](_0x3489f5,_0x5456dc);for(const _0x46dfed of this['_diffRoots']['values']())_0x46dfed['markers']['clear']();for(const [_0x4ccc2f,_0x7d188a]of this['_markers']){this['_diffRoots']['get'](_0x7d188a['root']['rootName'])['markers']['set'](_0x4ccc2f,_0x7d188a['clone']());}const _0xf6fc4c=new Map(),_0x3b7976=new Map();for(const [_0x5aeb98,_0x1b5732]of this['_diffRoots'])_0xf6fc4c['set'](_0x5aeb98,N(_0x1b5732)),_0x3b7976['set'](_0x5aeb98,this['_diffRootsAttributes']['get'](_0x5aeb98));this['_saveMetaData'](_0x441183,_0xf6fc4c,this['_markers'],_0x3b7976);}['_getPreviousFrom'](_0x4b6c47){const _0x297374=Array['from'](this['_savedMetaData']['keys']());_0x297374['sort']((_0x5c7374,_0x13fa08)=>_0x5c7374-_0x13fa08),_0x297374['reverse']();for(const _0x52b32d of _0x297374)if(_0x52b32d<_0x4b6c47)return _0x52b32d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x77049e,_0x4f59bb){const _0x2473d9=Array['from'](_0x4f59bb['markers'])['map'](([_0x239f38,_0xb934b])=>[_0x239f38,this['_fixRange'](_0xb934b,_0x77049e)]);_0x77049e['markers']=new Map(_0x2473d9);}['_transformMarkers'](_0x274bf2){for(const _0x266afb of this['_markers']['values']()){const _0x3d3409=_0x266afb['getTransformedByOperation'](_0x274bf2),_0x50b1ed=lt['_createFromRanges'](_0x3d3409);_0x266afb['start']=_0x50b1ed['start'],_0x266afb['end']=_0x50b1ed['end'];}}['_handleOperation'](_0x23bc64,_0x3d6243){if('addRoot'!=_0x23bc64['type']&&'detachRoot'!=_0x23bc64['type']){if('insert'==_0x23bc64['type']){const _0xd1507c=_0x23bc64['position']['root']['rootName'];this['_diffRoots']['has'](_0xd1507c)||(this['_diffRoots']['set'](_0xd1507c,P(_0xd1507c,!0x0)),this['_diffRootsAttributes']['set'](_0xd1507c,{}),_0x3d6243&&this['_idsRoots']['set'](_0xd1507c,P(_0xd1507c,!0x0)));}else{if('addRootAttribute'==_0x23bc64['type']||'removeRootAttribute'==_0x23bc64['type']||'changeRootAttribute'==_0x23bc64['type'])return void this['_handleRootAttributeOperation'](_0x23bc64);'marker'==_0x23bc64['type']&&this['_handleMarkerOperation'](_0x23bc64);}if('marker'!==_0x23bc64['type']){const _0x587303=this['_cloneOperation'](_0x23bc64,this['_diffRoots']);_0x587303['_execute'](),this['_transformMarkers'](_0x587303);}if(_0x3d6243)switch(_0x23bc64['type']){case'insert':this['_handleInsertOperation'](_0x23bc64);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x23bc64);break;case'merge':this['_handleMergeOperation'](_0x23bc64);break;case'split':this['_handleSplitOperation'](_0x23bc64);}}else this['_handleRootOperation'](_0x23bc64,_0x3d6243);}['_cloneOperation'](_0x3d50d8,_0x1aaa64){const _0x50bef3=_0x3d50d8['clone']();return _0x50bef3['_authorId']=_0x3d50d8['_authorId'],this['_fixOperation'](_0x50bef3,_0x1aaa64),_0x50bef3;}['_getBaseVids'](_0x2f53fd){return _0x2f53fd['map'](_0x886c3d=>{const _0xd9fce7=this['_getVidAttributeName'](_0x886c3d);return Number(_0x886c3d['item']['getAttribute'](_0xd9fce7));});}['_generateTape'](_0xc5e409,_0x4f2374){if(_0xc5e409['is']('element','$text'))_0x4f2374['push']({'item':_0xc5e409,'type':'text'});else{_0xc5e409['is']('element')&&_0x4f2374['push']({'item':_0xc5e409,'type':'elementStart'});for(const _0x5d1b55 of _0xc5e409['getChildren']())this['_generateTape'](_0x5d1b55,_0x4f2374);_0xc5e409['is']('element')&&_0x4f2374['push']({'item':_0xc5e409,'type':'elementEnd'});}return _0x4f2374;}['_getState'](){const _0x31ddbc=new Map(this['_touched']),_0x23cf0e=new Map(_0x31ddbc),_0x226fb8=new Map(),_0x4096a6={'insertions':{},'deletions':{}},_0x57c551={'insertions':{},'deletions':{}},_0x27d8d6=new Map(),_0x4f0f0e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4f0f0e['delete']('$graveyard');for(const _0x14ec7d of _0x4f0f0e){const _0x8f95e0=this['_diffRoots']['get'](_0x14ec7d)||P(_0x14ec7d,!0x1),_0x1df58e=this['_baseRoots']['get'](_0x14ec7d)||P(_0x14ec7d,!0x1);_0x8f95e0['isAttached']()||_0x1df58e['isAttached']()?(_0x4096a6['insertions'][_0x14ec7d]=N(_0x8f95e0),_0x4096a6['deletions'][_0x14ec7d]=N(_0x1df58e),this['_copyMarkers'](_0x4096a6['deletions'][_0x14ec7d],_0x1df58e),this['_copyMarkers'](_0x4096a6['insertions'][_0x14ec7d],_0x8f95e0),_0x57c551['insertions'][_0x14ec7d]=this['_generateTape'](this['_idsRoots']['get'](_0x14ec7d),[]),_0x57c551['deletions'][_0x14ec7d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x14ec7d)||P(_0x14ec7d,!0x1),[])):_0x4f0f0e['delete'](_0x14ec7d);}for(const _0x595c85 of _0x4f0f0e){const _0x15c5fa=_0x57c551['insertions'][_0x595c85];for(const _0x3d11da of _0x15c5fa){const _0x503ed6=this['_getVidAttributeName'](_0x3d11da),_0x36843c=_0x3d11da['item']['getAttribute'](_0x503ed6);_0x23cf0e['delete'](_0x36843c),_0x36843c>=this['_startingRevisionId']&&_0x226fb8['set'](_0x36843c,_0x31ddbc['get'](_0x36843c));}}for(const _0x114e82 of _0x4f0f0e){const _0x1a6260=_0x57c551['insertions'][_0x114e82],_0xcceb73=this['_getBaseVids'](_0x57c551['deletions'][_0x114e82]);let _0xe5122=0x0;for(const _0x160dec of _0x1a6260){const _0x4323a5=this['_getVidAttributeName'](_0x160dec),_0x11aa41=_0x160dec['item']['getAttribute'](_0x4323a5);if(!_0x226fb8['has'](_0x11aa41)&&!_0x27d8d6['has'](_0x11aa41)){if(_0x23cf0e['has'](_0x11aa41))_0xe5122++;else{if(_0x11aa41!=_0xcceb73[_0xe5122]){const _0x5ad1ec=_0x31ddbc['get'](_0x11aa41)||_0x31ddbc['get'](_0xcceb73[_0xe5122]);for(;_0x11aa41!=_0xcceb73[_0xe5122];)_0x23cf0e['has'](_0xcceb73[_0xe5122])||(_0x27d8d6['set'](_0xcceb73[_0xe5122],_0x5ad1ec),_0x31ddbc['set'](_0xcceb73[_0xe5122],_0x5ad1ec)),_0xe5122++;}_0xe5122++;}}}}for(const _0x39dc86 of _0x4f0f0e){const _0x50412c=_0x57c551['insertions'][_0x39dc86];for(const _0x5d3713 of _0x50412c){const _0x549c63=this['_getVidAttributeName'](_0x5d3713),_0xa63ad=_0x5d3713['item']['getAttribute'](_0x549c63);if(_0x27d8d6['has'](_0xa63ad)){const _0x389061=_0x27d8d6['get'](_0xa63ad);_0x23cf0e['has'](_0xa63ad)||_0x23cf0e['set'](_0xa63ad,{..._0x389061}),_0x226fb8['set'](_0xa63ad,{..._0x389061});}}}for(const _0x4d4b8a of _0x23cf0e['keys']())_0x4d4b8a>=this['_startingRevisionId']&&_0x23cf0e['delete'](_0x4d4b8a);const _0x5e7511=new Map();for(const _0x20f8f9 of _0x4f0f0e){let _0x5e0bd1=_0x57c551['insertions'][_0x20f8f9];for(const _0x157808 of _0x5e0bd1)if(_0x157808['item']['is']('element','tableCell')){const _0x1651be=this['_getVidAttributeName'](_0x157808),_0x3d092f=_0x157808['item']['getAttribute'](_0x1651be);if(_0x226fb8['has'](_0x3d092f)){const _0x2b93c6=_0x157808['item']['parent']['parent']['getAttribute']('vid_start'),_0x32e77e=_0x5e7511['get'](_0x2b93c6)||new Set();_0x32e77e['add'](_0x226fb8['get'](_0x3d092f)['userId']),_0x5e7511['set'](_0x2b93c6,_0x32e77e);}}_0x5e0bd1=_0x57c551['deletions'][_0x20f8f9];for(const _0x581877 of _0x5e0bd1)if(_0x581877['item']['is']('element','tableCell')){const _0x54f27d=this['_getVidAttributeName'](_0x581877),_0x4bc61e=_0x581877['item']['getAttribute'](_0x54f27d);if(_0x23cf0e['has'](_0x4bc61e)){const _0x2da20a=_0x581877['item']['parent']['parent']['getAttribute']('vid_start'),_0x7d936c=_0x5e7511['get'](_0x2da20a)||new Set();_0x7d936c['add'](_0x23cf0e['get'](_0x4bc61e)['userId']),_0x5e7511['set'](_0x2da20a,_0x7d936c);}}for(const _0x216223 of _0x5e7511['keys']())(_0x226fb8['has'](_0x216223)||_0x23cf0e['has'](_0x216223))&&_0x5e7511['delete'](_0x216223);}for(const _0x4d75ea of _0x4f0f0e){const _0x127f17=_0x57c551['insertions'][_0x4d75ea];let _0x20630e=null,_0x3bde1f=null;for(const _0x3194a7 of _0x127f17){const _0x4e8f46=this['_getVidAttributeName'](_0x3194a7),_0x5db8fa=_0x3194a7['item']['getAttribute'](_0x4e8f46),_0x43264f=_0x5e7511['get'](_0x5db8fa);_0x43264f&&'elementStart'==_0x3194a7['type']&&(_0x20630e=Array['from'](_0x43264f)[0x0],_0x3bde1f=_0x3194a7['item']['getAttribute']('vid_end')),_0x20630e&&(_0x23cf0e['set'](_0x5db8fa,{'userId':_0x20630e}),_0x226fb8['set'](_0x5db8fa,{'userId':_0x20630e})),_0x5db8fa==_0x3bde1f&&(_0x20630e=null,_0x3bde1f=null);}}const _0x499dee={},_0x4cf6f4=new Set();for(const _0x59090e of _0x4f0f0e){const _0x3f63d6=_0x4096a6['deletions'][_0x59090e],_0x1d3091=_0x4096a6['insertions'][_0x59090e];for(const {userId:_0x33ffab}of this['_touchedMarkers']['values']())null!==_0x33ffab&&_0x4cf6f4['add'](_0x33ffab);for(const {userId:_0x3e8b74}of this['_touchedRoots']['values']())null!==_0x3e8b74&&_0x4cf6f4['add'](_0x3e8b74);this['_markChanges'](_0x1d3091,_0x57c551['insertions'][_0x59090e],_0x226fb8,'insertion',_0x4cf6f4),this['_markChanges'](_0x3f63d6,_0x57c551['deletions'][_0x59090e],_0x23cf0e,'deletion',_0x4cf6f4),_0x499dee[_0x59090e]={'insertions':this['_prepareViewToSave'](_0x1d3091),'deletions':this['_prepareViewToSave'](_0x3f63d6),'attachChange':this['_touchedRoots']['get'](_0x59090e)||null,'attributesBefore':_0x5a4053(this['_baseRootsAttributes']['get'](_0x59090e))||{},'attributesAfter':_0x5a4053(this['_diffRootsAttributes']['get'](_0x59090e))};}return{'diffData':_0x499dee,'authorsIds':Array['from'](_0x4cf6f4)};}['_processRootBeforeSave'](_0x542853){for(const [,_0x1af736]of _0x542853['markers']){const _0x4567dc=_0x1af736['start']['getAncestors']()['filter'](_0x24b244=>'tableCell'==_0x24b244['name']);for(const _0x505c69 of _0x4567dc)0x1==_0x505c69['childCount']&&_0x505c69['getChild'](0x0)['is']('element','paragraph')&&_0x505c69['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1b41e3){this['_processRootBeforeSave'](_0x1b41e3);const _0x1da44c=this['editor']['data']['toView'](_0x1b41e3,{}),_0x2c4d6a=Array['from'](_0x1da44c['getChildren']())['map'](_0x1331a5=>this['_getViewJson'](_0x1331a5));return JSON['stringify'](_0x2c4d6a);}['_getViewJson'](_0x2438ec){if(_0x2438ec['is']('$text'))return _0x2438ec['data'];{const _0x53dd63=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5610bf=_0x2438ec,_0x46cb64=this['editor']['data']['htmlProcessor']['domConverter'],_0x19be81={'type':_0x53dd63['_getTypeCharForViewElement'](_0x5610bf),'name':_0x5610bf['name'],'attributes':Array['from'](_0x5610bf['getAttributes']()),'children':Array['from'](_0x5610bf['getChildren']())['map'](_0x58dbfd=>this['_getViewJson'](_0x58dbfd))};if(_0x2438ec['is']('uiElement')&&'$comment'!=_0x2438ec['name']){const _0x402d7a=_0x2438ec['render'](_0x46cb64['domDocument'],_0x46cb64);_0x19be81['children']['push'](_0x402d7a['outerHTML']);}else{if(_0x2438ec['is']('rawElement')){const _0x187b29=_0x46cb64['domDocument']['createElement'](_0x5610bf['name']);_0x2438ec['render'](_0x187b29,_0x46cb64),_0x19be81['children']['push'](_0x187b29['innerHTML']);}}const _0x2930be=Array['from'](_0x5610bf['getCustomProperties']());_0x2930be['length']>0x0&&(_0x19be81['customProperties']=_0x2930be);const _0x5f3b1e=_0x5610bf['getFillerOffset']();return null!==_0x5f3b1e&&(_0x19be81['fillerOffset']=_0x5f3b1e),_0x19be81;}}['_markChanges'](_0x465ba4,_0x3e016a,_0x10bce4,_0x497e6d,_0x359847){let _0x57cc66=null,_0x50f1e9=null,_0x3b8753=0x0;const _0x4f0897=this['editor']['model'];for(let _0x2f75fb=0x0;_0x2f75fb<_0x3e016a['length'];_0x2f75fb++){const _0x13146d=this['_getVidAttributeName'](_0x3e016a[_0x2f75fb]),_0x5ddc70=_0x3e016a[_0x2f75fb]['item']['getAttribute'](_0x13146d),_0x36f559=_0x10bce4['get'](_0x5ddc70),_0x5270e9=_0x2f75fb==_0x3e016a['length']-0x1;(!_0x57cc66&&_0x36f559&&(_0x57cc66=_0x36f559,_0x50f1e9=_0x3e016a[_0x2f75fb]),_0x57cc66&&(!_0x36f559||_0x36f559['userId']!=_0x57cc66['userId']))&&(_0x3fef25(_0x36f559,F(_0x50f1e9,_0x465ba4,_0x4f0897),F(_0x3e016a[_0x2f75fb],_0x465ba4,_0x4f0897)),_0x57cc66=_0x36f559||null,_0x50f1e9=_0x36f559?_0x3e016a[_0x2f75fb]:null),_0x57cc66&&_0x5270e9&&_0x3fef25(_0x36f559,F(_0x50f1e9,_0x465ba4,_0x4f0897),B(_0x3e016a[_0x2f75fb],_0x465ba4,_0x4f0897));}function _0x3fef25(_0x367694,_0x228f9f,_0x5a9e7c){const _0x4ce60c=_0x57cc66['userId'],_0x7fe62d='revision:'+_0x497e6d+':'+_0x4ce60c+':'+_0x3b8753++,_0x558f4b=_0x4f0897['createRange'](_0x228f9f,_0x5a9e7c);_0x465ba4['markers']['set'](_0x7fe62d,_0x558f4b),null!==_0x4ce60c&&_0x359847['add'](_0x4ce60c);}}['_getVidAttributeName'](_0x3bef40){switch(_0x3bef40['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x17c799,_0x41e1a0){_0x17c799['baseVersion']=null;for(const _0x258050 in _0x17c799){const _0x25f5d8=_0x17c799[_0x258050];if(_0x25f5d8 instanceof ft){const _0x21a26e=_0x41e1a0['get'](_0x25f5d8['root']['rootName']);_0x17c799[_0x258050]=this['_fixPosition'](_0x25f5d8,_0x21a26e);}if(_0x25f5d8 instanceof lt){const _0x4a990d=_0x41e1a0['get'](_0x25f5d8['root']['rootName']);_0x17c799[_0x258050]=this['_fixRange'](_0x25f5d8,_0x4a990d);}'root'===_0x258050&&(_0x17c799['root']=_0x41e1a0['get'](_0x17c799['root']['rootName']));}}['_fixRange'](_0x3d41bf,_0x50c083){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d41bf['start'],_0x50c083),this['_fixPosition'](_0x3d41bf['end'],_0x50c083));}['_fixPosition'](_0x80a4dd,_0x1a3631){return this['editor']['model']['createPositionFromPath'](_0x1a3631,_0x80a4dd['path'],_0x80a4dd['stickiness']);}['_handleInsertOperation'](_0x182f51){const _0x2ce0d5=this['_idsRoots']['get'](_0x182f51['position']['root']['rootName']),_0x2ab359=this['_fixPosition'](_0x182f51['position'],_0x2ce0d5),_0x35fe33=null===_0x182f51['_authorId']?null:_0x182f51['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d266c=_0x2ab359['parent'],_0x3559d3=this['_revisionId'],_0x37ae43=[];for(const _0x290585 of _0x182f51['nodes'])if(_0x290585['is']('element'))_0x37ae43['push'](this['_makeIdsRoot'](_0x290585));else{for(let _0x2665a8=0x0;_0x2665a8<_0x290585['offsetSize'];_0x2665a8++)_0x37ae43['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xb0b101=this['_revisionId'];for(let _0x14bb7f=_0x3559d3;_0x14bb7f<_0xb0b101;_0x14bb7f++)this['_touched']['set'](_0x14bb7f,{'userId':_0x35fe33});_0x1d266c['_insertChild'](_0x2ab359['offset'],_0x37ae43);}['_handleMoveOperation'](_0x26c6cb){(_0x26c6cb=this['_cloneOperation'](_0x26c6cb,this['_idsRoots']))['_execute']();const _0x4c0c89=null===_0x26c6cb['_authorId']?null:_0x26c6cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x205f61=_0x26c6cb['getMovedRangeStart'](),_0x1c5238=_0x205f61['parent'],_0x273d3c=_0x205f61['offset'];!function _0x4d976e(_0x11047a,_0x43fca9,_0x2794b7,_0x1ef7ec){for(let _0x48cd85=_0x2794b7;_0x48cd85<_0x1ef7ec;_0x48cd85++){const _0x103dcf=_0x43fca9['getChild'](_0x48cd85);_0x103dcf['is']('element','$text')?_0x11047a['set'](_0x103dcf['getAttribute']('vid'),{'userId':_0x4c0c89}):(_0x11047a['set'](_0x103dcf['getAttribute']('vid_start'),{'userId':_0x4c0c89}),_0x4d976e(_0x11047a,_0x103dcf,0x0,_0x103dcf['childCount']),_0x11047a['set'](_0x103dcf['getAttribute']('vid_end'),{'userId':_0x4c0c89}));}}(this['_touched'],_0x1c5238,_0x273d3c,_0x273d3c+_0x26c6cb['howMany']);}['_handleMergeOperation'](_0x112e9d){const _0x14de44=null===(_0x112e9d=this['_cloneOperation'](_0x112e9d,this['_idsRoots']))['_authorId']?null:_0x112e9d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18712d=_0x112e9d['targetPosition']['parent'],_0x5bdc0b=_0x112e9d['sourcePosition']['parent'],_0x1436b5=_0x18712d['getAttribute']('vid_end'),_0x101bc1=_0x5bdc0b['getAttribute']('vid_start');_0x18712d['_setAttribute']('vid_end',_0x5bdc0b['getAttribute']('vid_end')),_0x5bdc0b['_setAttribute']('vid_end',_0x1436b5),this['_touched']['set'](_0x101bc1,{'userId':_0x14de44}),this['_touched']['set'](_0x1436b5,{'userId':_0x14de44}),_0x112e9d['_execute']();}['_handleSplitOperation'](_0x47c22d){const _0x140e6d=null===(_0x47c22d=this['_cloneOperation'](_0x47c22d,this['_idsRoots']))['_authorId']?null:_0x47c22d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11e999=_0x47c22d['graveyardPosition'],_0x5c1857=_0x47c22d['splitPosition']['parent'];_0x47c22d['_execute']();const _0x340cd0=_0x5c1857['getAttribute']('vid_end'),_0x5f07d0=_0x47c22d['insertionPosition']['nodeAfter'];if(_0x11e999){const _0x28ba6f=_0x5f07d0['getAttribute']('vid_end'),_0x46e559=_0x5c1857['getAttribute']('vid_end');_0x5c1857['_setAttribute']('vid_end',_0x28ba6f),_0x5f07d0['_setAttribute']('vid_end',_0x46e559),this['_touched']['set'](_0x5c1857['getAttribute']('vid_end'),{'userId':_0x140e6d}),this['_touched']['set'](_0x5f07d0['getAttribute']('vid_start'),{'userId':_0x140e6d});}else{const _0x49f059=this['_revisionId']++,_0x1aa5ea=this['_revisionId']++;_0x5c1857['_setAttribute']('vid_end',_0x49f059),_0x5f07d0['_setAttribute']('vid_start',_0x1aa5ea),_0x5f07d0['_setAttribute']('vid_end',_0x340cd0),this['_touched']['set'](_0x49f059,{'userId':_0x140e6d}),this['_touched']['set'](_0x1aa5ea,{'userId':_0x140e6d});}}['_handleMarkerOperation'](_0x5cf72c){if(!_0x5cf72c['affectsData'])return;const _0x5c007c=(_0x5cf72c=this['_cloneOperation'](_0x5cf72c,this['_diffRoots']))['oldRange']?_0x5cf72c['oldRange']['root']:null,_0x3fcdf6=_0x5cf72c['newRange']?_0x5cf72c['newRange']['root']:null;_0x5c007c&&this['_markers']['delete'](_0x5cf72c['name']),_0x3fcdf6&&this['_markers']['set'](_0x5cf72c['name'],_0x5cf72c['newRange']['clone']());const _0x2ce4cb=null===_0x5cf72c['_authorId']?null:_0x5cf72c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fd8d9=_0x5cf72c['name'];if(!this['_touchedMarkers']['has'](_0x3fd8d9))return void this['_touchedMarkers']['set'](_0x3fd8d9,{'range':_0x5cf72c['oldRange'],'userId':_0x2ce4cb});const _0x30ecf7=this['_touchedMarkers']['get'](_0x3fd8d9),_0xa7cc8b=_0x30ecf7['range'],_0x2e831a=_0x5cf72c['newRange'];null==_0xa7cc8b&&null==_0x2e831a||_0xa7cc8b&&_0x2e831a&&_0xa7cc8b['isEqual'](_0x2e831a)?this['_touchedMarkers']['delete'](_0x5cf72c['name']):_0x30ecf7['userId']=_0x2ce4cb;}['_handleRootOperation'](_0x2d4c32,_0x4f9fd3){this['_diffRoots']['has'](_0x2d4c32['rootName'])?this['_diffRoots']['get'](_0x2d4c32['rootName'])['_isAttached']=_0x2d4c32['isAdd']:(this['_diffRoots']['set'](_0x2d4c32['rootName'],P(_0x2d4c32['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d4c32['rootName'],{}),_0x4f9fd3&&this['_idsRoots']['set'](_0x2d4c32['rootName'],P(_0x2d4c32['rootName'],!0x0)));const _0x4b8aa6=null===_0x2d4c32['_authorId']?null:_0x2d4c32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19e6f3=this['_touchedRoots']['get'](_0x2d4c32['rootName']);_0x19e6f3&&_0x19e6f3['userId']===_0x4b8aa6?this['_touchedRoots']['delete'](_0x2d4c32['rootName']):this['_touchedRoots']['set'](_0x2d4c32['rootName'],{'userId':_0x4b8aa6,'isAttached':_0x2d4c32['isAdd']});}['_handleRootAttributeOperation'](_0x79e103){const _0x48dfa9=this['_diffRootsAttributes']['get'](_0x79e103['root']['rootName']);null===_0x79e103['newValue']?delete _0x48dfa9[_0x79e103['key']]:_0x48dfa9[_0x79e103['key']]=_0x79e103['newValue'];}}function N(_0x581149){const _0x64460f=P(_0x581149['rootName'],_0x581149['isAttached']());for(const _0x55fc23 of _0x581149['getChildren']()){const _0x29edd7=_0x55fc23['_clone'](!0x0);_0x64460f['_appendChild'](_0x29edd7);}return _0x64460f;}function P(_0x75b6f5,_0x39c807=!0x0){const _0x5943d4=new vt();return _0x5943d4['rootName']=_0x75b6f5,_0x5943d4['_isAttached']=_0x39c807,_0x5943d4['isAttached']=()=>_0x5943d4['_isAttached'],_0x5943d4;}function F(_0x4606c4,_0x550468,_0x2a2a2d){const _0x1515b5='elementEnd'==_0x4606c4['type']?_0x2a2a2d['createPositionAt'](_0x4606c4['item'],'end'):_0x2a2a2d['createPositionBefore'](_0x4606c4['item']);return _0x2a2a2d['createPositionFromPath'](_0x550468,_0x1515b5['path'],_0x1515b5['stickiness']);}function B(_0x1570a8,_0x33b03f,_0x425a2b){const _0x5018ce='elementStart'==_0x1570a8['type']?_0x425a2b['createPositionAt'](_0x1570a8['item'],0x0):_0x425a2b['createPositionAfter'](_0x1570a8['item']);return _0x425a2b['createPositionFromPath'](_0x33b03f,_0x5018ce['path'],_0x5018ce['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x430bc8,_0x3059b9){super(_0x430bc8),this['focusTracker']=new _0x5abe77(),this['keystrokes']=new _0x3454e8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3059b9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x28d0a9(this);}['render'](){super['render'](),_0x4f10a2({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5eb0b7=_0x3bb652=>_0x3bb652['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5eb0b7),this['keystrokes']['set']('arrowleft',_0x5eb0b7),this['keystrokes']['set']('arrowup',_0x5eb0b7),this['keystrokes']['set']('arrowdown',_0x5eb0b7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x455e76){this['revisionNameInputView']['fieldView']['element']['value']=_0x455e76['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12ea9c){const _0xc12745=new _0x403710(this['locale'],_0x2a4301),_0x3c8753=_0xc12745['fieldView'];_0x3c8753['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x21f9d3=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12ea9c&&(_0x21f9d3+='\x20('+g(this['locale'],'optional')+')'),(_0xc12745['label']=_0x21f9d3,_0x3c8753['on']('input',()=>{this['revisionNameInputValue']=_0x3c8753['element']['value']['trim']();}),_0xc12745);}}class f extends _0x3561a9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x255551=this['editor'],_0x36283e=_0x255551['plugins']['get']('RevisionTracker');_0x255551['ui']['componentFactory']['add']('revisionHistory',_0x54970e=>{const _0x5eed2a=_0x44640e(_0x54970e),_0x524ba1=_0x5eed2a['panelView']['children'],_0x40631d=new _0x31e5fe(_0x54970e),_0x67b116=new _0x4b93ac(_0x54970e),_0x268a4d=new te(_0x54970e),_0x1c59c5=new _0x4b93ac(_0x54970e),_0x11927a=new te(_0x54970e);return _0x5eed2a['bind']('isEnabled')['to'](_0x36283e,'isReady',_0x36283e,'isEnabled',_0x255551,'isReadOnly',(_0x4644e1,_0x3fe792,_0x71adea)=>_0x4644e1&&_0x3fe792&&!_0x71adea),_0x5eed2a['buttonView']['set']({'icon':_0x21a65d,'label':g(_0x54970e,'Revision\x20history'),'tooltip':!0x0}),_0x268a4d['set']({'label':g(_0x54970e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x268a4d['bind']('isEnabled')['to'](_0x36283e,'isReady',_0x36283e,'isEnabled',_0x255551,'isReadOnly',(_0x5bab35,_0x197504,_0x3f6c90)=>_0x5bab35&&_0x197504&&!_0x3f6c90),_0x268a4d['on']('execute',()=>this['_showDialog']()),_0x11927a['set']({'label':g(_0x54970e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x11927a['bind']('isEnabled')['to'](_0x36283e,'isReady',_0x255551,'isReadOnly',(_0x1acfe1,_0x549ac8)=>_0x1acfe1&&!_0x549ac8),_0x11927a['on']('execute',()=>{_0x255551['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5eed2a['isOpen']=!0x1,_0x255551['editing']['view']['focus']();}),_0x67b116['children']['add'](_0x268a4d),_0x1c59c5['children']['add'](_0x11927a),_0x40631d['role']='menu',_0x40631d['items']['addMany']([_0x67b116,_0x1c59c5]),_0x524ba1['add'](_0x40631d),_0x5eed2a;}),_0x255551['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x26d07f=this['editor'],_0x201172=_0x26d07f['locale'],_0x304dc6=new _0x4f4aa3(_0x201172),_0x57b61b=new _0x132898(_0x201172);_0x304dc6['buttonView']['set']({'icon':_0x21a65d,'label':g(_0x201172,'Revision\x20history')});const _0x31d73d=new _0x84a53c(_0x201172,_0x304dc6),_0x41ec5f=new _0x3ea15b(_0x201172);_0x41ec5f['set']({'label':g(_0x201172,'Save\x20current\x20revision')}),_0x41ec5f['delegate']('execute')['to'](_0x304dc6),_0x41ec5f['on']('execute',()=>{this['_showDialog']();}),_0x31d73d['children']['add'](_0x41ec5f),_0x57b61b['items']['add'](_0x31d73d);const _0x513d1a=new _0x84a53c(_0x201172,_0x304dc6),_0x223227=new _0x3ea15b(_0x201172);return _0x223227['set']({'label':g(_0x201172,'Open\x20revision\x20history')}),_0x223227['delegate']('execute')['to'](_0x304dc6),_0x223227['on']('execute',()=>{_0x26d07f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x513d1a['children']['add'](_0x223227),_0x57b61b['items']['add'](_0x513d1a),_0x304dc6['panelView']['children']['add'](_0x57b61b),_0x304dc6;}['_showDialog'](){const _0x575222=this['editor'],_0x33d8a5=_0x575222['locale'],_0x18ffde=_0x575222['plugins']['get']('Dialog'),_0x11ad81=_0x575222['plugins']['get']('RevisionTracker');function _0x5ca8bd(_0x8d41ce){_0x575222['config']['get']('revisionHistory.requireRevisionName')&&''===_0x8d41ce['revisionName']?_0x8d41ce['revisionNameInputView']['errorText']=g(_0x33d8a5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x575222['plugins']['get'](u)['saveRevision']({'name':_0x8d41ce['revisionName']}),_0x18ffde['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5ca8bd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x18ffde['show']({'id':'revisionSave','title':g(_0x33d8a5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x575222['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x18ffde['hide']()},{'label':g(_0x575222['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x668471){_0x668471['bind']('isEnabled')['to'](_0x11ad81,'isReady',_0x11ad81,'isEnabled',_0x575222,'isReadOnly',(_0x65bc3,_0x9bc59a,_0x27c5a8)=>_0x65bc3&&_0x9bc59a&&!_0x27c5a8);},'onExecute':()=>_0x5ca8bd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x235fa3=this['editor'],_0x453ddb=_0x235fa3['locale'];this['_saveRevisionFormView']=new hs(_0x453ddb,_0x235fa3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x3eff20,_0x3145f3){super(_0x3eff20),this['_model']=_0x3145f3,this['changeId']=_0x3145f3['id'];const _0xdcee4f=this['bindTemplate'],_0x3ccc6c=g(_0x3eff20,_0x3145f3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3145f3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3145f3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xdcee4f['to']('type',_0x443c31=>'ck-revision-change__'+_0x443c31)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ccc6c}]},{'text':'\x20'+_0x3145f3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5f288e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x283d0e){super(),this['id']=_0x283d0e['id']||_0x46e088(),this['author']=_0x283d0e['author'],this['type']=_0x283d0e['type'],this['data']=_0x283d0e['data']||{},this['rootName']=_0x283d0e['rootName'],this['set']('createdAt',_0x283d0e['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(_0x40b6c2,_0x5952d6){this['newRevisionId']=_0x40b6c2,this['oldRevisionId']=_0x5952d6,this['changes']=new _0x57f501();}['_setChanges'](_0x4f4f10){for(const _0x264156 of _0x4f4f10)this['changes']['add'](_0x264156);}}class m extends _0x3561a9{['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[_0x52250a,_0x572f52,I,V];}constructor(_0x27dbfd){super(_0x27dbfd),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',(_0x4af3d5,_0x119617,_0x24a910)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2d1bfa=>{for(const _0x26d165 of this['editor']['editing']['view']['document']['roots'])_0x24a910?_0x2d1bfa['removeClass']('ck-editor__editable__overlay',_0x26d165):_0x2d1bfa['addClass']('ck-editor__editable__overlay',_0x26d165);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1e8c28=>null!==_0x1e8c28),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x12e109,_0x5443a7,_0xe3f411)=>_0x12e109&&_0xe3f411?_0x5443a7['changes']['getIndex'](_0xe3f411):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x317e55,_0x77610e)=>_0x317e55?_0x77610e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x572f52);}['init'](){const _0x52fc82=this['editor'],_0x5a6bc0=new wt(_0x52fc82,{'direction':'backward'}),_0x54cf62=new wt(_0x52fc82,{'direction':'forward'});(_0x52fc82['commands']['add']('showPreviousChange',_0x5a6bc0),_0x52fc82['commands']['add']('showNextChange',_0x54cf62),_0x52fc82['commands']['add']('restoreRevision',new mt(_0x52fc82)),this['on']('change:numberOfChanges',()=>{_0x5a6bc0['refresh'](),_0x54cf62['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x52fc82['enableReadOnlyMode']('revision-viewer'),_0x52fc82['plugins']['has']('WidgetToolbarRepository'))&&_0x52fc82['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x419fb6){return await this['_utils']['loadRevisionData'](_0x419fb6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x419fb6);}async['getRevisionRootsAttributes'](_0x464abc){return await this['_utils']['loadRevisionData'](_0x464abc,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x464abc);}async['compare'](_0xb861f4,_0x4c758e,_0x37cac5=!0x1){if(!this['isEnabled'])return;const _0x3496a5=this['diff'],_0x970ac4=this['repository'],_0x95653b='string'==typeof _0xb861f4?_0x970ac4['getRevision'](_0xb861f4):_0xb861f4,_0x5002c3='string'==typeof _0x4c758e?_0x970ac4['getRevision'](_0x4c758e):_0x4c758e,_0x294477=_0x95653b['id'],_0x34e039=_0x5002c3?_0x5002c3['id']:null;if(!_0x37cac5&&this['diff']&&this['diff']['newRevisionId']===_0x294477&&this['diff']['oldRevisionId']===_0x34e039)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x294477,_0x34e039);const _0x494b24=this['_getRevisionsRange'](_0x95653b,_0x5002c3,!0x0)['map'](_0x2f2d84=>this['_utils']['loadRevisionData'](_0x2f2d84,this['adapter']));return _0x494b24['push'](new Promise(_0x48f643=>{setTimeout(_0x48f643,0x14);})),Promise['all'](_0x494b24)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3fc0c0=this['_getDiff'](_0x294477,_0x34e039);for(const _0x46254a of _0x3fc0c0['changes'])this['_changeIdToChange']['set'](_0x46254a['id'],_0x46254a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4a21a2=>{for(const _0x227fd0 of this['editor']['model']['document']['getRootNames']())_0x4a21a2['detachRoot'](_0x227fd0);for(const _0x6c7fe1 of Object['keys'](_0x3fc0c0['model'])){const _0x43790a=_0x4a21a2['addRoot'](_0x6c7fe1);for(const _0x3acd16 of Object['keys'](_0x3fc0c0['attributes'][_0x6c7fe1]))_0x4a21a2['setAttribute'](_0x3acd16,_0x3fc0c0['attributes'][_0x6c7fe1][_0x3acd16],_0x43790a);_0x4a21a2['insert'](_0x3fc0c0['model'][_0x6c7fe1],_0x43790a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3fc0c0['changes'])),this['isReady']=!0x0;})['catch'](_0x3b5511=>{console['error'](_0x3b5511),this['_cleanUp'](),_0x3496a5&&(this['diff']=_0x3496a5),this['isReady']=!0x0;});}['addRevisionData'](_0xe26623,_0xa9d77c){const _0x245371=this['repository']['createRevision'](_0xe26623);return _0x245371['on']('_update',(_0x3d5e30,_0x2c0545,_0x2004a2)=>_0xa9d77c(_0x2c0545,_0x2004a2,_0x245371)),this['repository']['addRevision'](_0x245371),_0x245371;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3edc6b=>{for(const _0x46c090 of this['editor']['model']['document']['getRootNames']())_0x3edc6b['detachRoot'](_0x46c090);});}['_sortAndFilterDiffChanges'](_0x4ea0fd){const _0x53b01f=[],_0x121d23=new Map();for(const _0x5bf086 of this['editor']['model']['document']['getRootNames']()){const _0x34b17f=this['editor']['editing']['view']['getDomRoot'](_0x5bf086);if(!_0x34b17f)continue;const _0xa43e54=_0x34b17f['getClientRects']()['item'](0x0);_0xa43e54&&(_0x53b01f['push'](_0x5bf086),_0x121d23['set'](_0x5bf086,_0xa43e54));}return _0x53b01f['sort']((_0x55d056,_0x38c282)=>{const _0x180e67=_0x121d23['get'](_0x55d056),_0x5baf8f=_0x121d23['get'](_0x38c282);return _0x180e67['y']-_0x5baf8f['y']||_0x180e67['x']-_0x5baf8f['x'];}),(_0x4ea0fd=_0x4ea0fd['filter'](_0x2e0599=>_0x53b01f['includes'](_0x2e0599['rootName'])))['sort']((_0x4b325c,_0x5a3c7e)=>_0x53b01f['indexOf'](_0x4b325c['rootName'])-_0x53b01f['indexOf'](_0x5a3c7e['rootName'])),_0x4ea0fd;}['_makeTape'](_0x16a48a){const _0x407ed9=Array['from'](_0x16a48a['markers'])['filter'](([_0x756184,_0xf0f1cc])=>_0x756184['startsWith']('revision:')&&!_0xf0f1cc['isCollapsed']),_0x5ce543=Array['from'](this['editor']['model']['createRangeIn'](_0x16a48a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x407ed9['length'])for(const _0x292d7f of _0x5ce543){const [_0x24debb,_0x56835b]=_0x407ed9[0x0],[,_0x3c5908,_0x32a479]=_0x24debb['split'](':');if(_0x56835b['end']['isEqual'](_0x292d7f['nextPosition'])&&_0x407ed9['shift'](),(_0x292d7f['previousPosition']['isEqual'](_0x56835b['start'])||_0x292d7f['previousPosition']['isAfter'](_0x56835b['start']))&&('insertion'==_0x3c5908?_0x292d7f['isAdded']={'userId':_0x32a479}:'deletion'==_0x3c5908&&(_0x292d7f['isRemoved']={'userId':_0x32a479})),0x0==_0x407ed9['length'])break;}return _0x5ce543;}['_refreshStartEndIndex'](_0x51082f){const _0x5db837=new Map();for(let _0xa09c23=0x0;_0xa09c23<_0x51082f['length'];_0xa09c23++)'text'===_0x51082f[_0xa09c23]['type']?(_0x51082f[_0xa09c23]['item']['startIndex']=_0xa09c23,_0x51082f[_0xa09c23]['item']['endIndex']=_0xa09c23):('elementStart'===_0x51082f[_0xa09c23]['type']?_0x51082f[_0xa09c23]['item']['startIndex']=_0xa09c23:'elementEnd'===_0x51082f[_0xa09c23]['type']&&(_0x51082f[_0xa09c23]['item']['endIndex']=_0xa09c23),_0x5db837['set'](_0x51082f[_0xa09c23]['id'],_0xa09c23));for(const _0x4de0e9 of _0x5db837['values']())'elementStart'===_0x51082f[_0x4de0e9]['type']?_0x51082f[_0x4de0e9]['item']['endIndex']=_0x5db837['get'](_0x51082f[_0x4de0e9]['pairId']):'elementEnd'===_0x51082f[_0x4de0e9]['type']&&(_0x51082f[_0x4de0e9]['item']['startIndex']=_0x5db837['get'](_0x51082f[_0x4de0e9]['pairId']));}['_processTape'](_0x16227c){for(let _0x46badd=0x0;_0x46badd<_0x16227c['length'];_0x46badd++){if('elementStart'===_0x16227c[_0x46badd]['type'])_0x16227c[_0x46badd]['item']['startIndex']=_0x46badd;else{if('elementEnd'===_0x16227c[_0x46badd]['type']){_0x16227c[_0x46badd]['item']['endIndex']=_0x46badd;const _0x39a2bd=_0x16227c[_0x46badd]['item']['startIndex'];_0x16227c[_0x39a2bd]['pairId']=_0x16227c[_0x46badd]['id'],_0x16227c[_0x46badd]['pairId']=_0x16227c[_0x39a2bd]['id'];}else _0x16227c[_0x46badd]['item']['startIndex']=_0x46badd,_0x16227c[_0x46badd]['item']['endIndex']=_0x46badd,_0x16227c[_0x46badd]['pairId']=null;}_0x16227c[_0x46badd]['markersStart']||(_0x16227c[_0x46badd]['markersStart']=[],_0x16227c[_0x46badd]['markersEnd']=[]);}}['_markInsertions'](_0x171d86,_0x34a803){const _0x239aeb=_0x171d86['filter'](_0x46a0b0=>!_0x46a0b0['isAdded']);for(let _0x1aeb4b=0x0;_0x1aeb4b<_0x34a803['length'];_0x1aeb4b++)_0x34a803[_0x1aeb4b]['isAdded']&&(_0x239aeb[_0x1aeb4b]['isAdded']=_0x34a803[_0x1aeb4b]['isAdded']);}['_getDiff'](_0x342f64,_0x4230eb=null){const _0x48387d=this['repository']['getRevision'](_0x342f64),_0x59d457=_0x4230eb?this['repository']['getRevision'](_0x4230eb):null,_0xff1b69=this['_getRevisionsRange'](_0x48387d,_0x59d457),_0x597e54=_0xff1b69[_0xff1b69['length']-0x1],_0x550d97=new Map(),_0x166062={'model':{},'attributes':{},'changes':[]},_0x5c3446=new Set(),_0xb43354=new Map();for(let _0x4df009=_0xff1b69['length']-0x1;_0x4df009>=0x0;_0x4df009--){const _0x23435=_0xff1b69[_0x4df009];for(const _0x36a728 of Object['keys'](_0x23435['diffData']))if(_0x23435['diffData'][_0x36a728]['attachChange']){const _0x5440a9=_0x23435['diffData'][_0x36a728]['attachChange'];_0x5440a9['isAttached']?(_0x5c3446['add'](_0x36a728),_0xb43354['has'](_0x36a728)&&_0xb43354['get'](_0x36a728)['userId']==_0x5440a9['userId']?_0xb43354['delete'](_0x36a728):_0xb43354['set'](_0x36a728,_0x5440a9)):_0xb43354['has'](_0x36a728)?(_0x5c3446['delete'](_0x36a728),_0xb43354['delete'](_0x36a728)):(_0x5c3446['add'](_0x36a728),_0xb43354['set'](_0x36a728,_0x5440a9));}else _0x5c3446['add'](_0x36a728);}for(const _0x195281 of _0x5c3446){const _0x4abfeb=_0xb43354['has'](_0x195281)&&!_0xb43354['get'](_0x195281)['isAttached'];let _0x154f35=_0x4abfeb?_0xff1b69['length']-0x1:0x0;const _0x43b7d5=_0x4abfeb?-0x1:0x1;for(;_0xff1b69[_0x154f35];){const _0x760b6=_0xff1b69[_0x154f35];if(_0x760b6['diffData'][_0x195281]){const _0x2ec2a1=_0x4abfeb?_0x760b6['diffData'][_0x195281]['attributesBefore']:_0x760b6['diffData'][_0x195281]['attributesAfter'];_0x166062['attributes'][_0x195281]=_0x2ec2a1?_0x5a4053(_0x2ec2a1):{};break;}_0x154f35+=_0x43b7d5;}}for(const _0x22d21c of _0xff1b69){_0x22d21c['model']={};for(const _0x50687e of _0x22d21c['authors'])_0x550d97['set'](_0x50687e['id'],_0x50687e);for(const _0x5b4d30 of _0x5c3446){const _0x276732=_0x22d21c['diffData'][_0x5b4d30]?_0x22d21c['diffData'][_0x5b4d30]['insertions']:'[]',_0x507d4c=_0x22d21c['diffData'][_0x5b4d30]?_0x22d21c['diffData'][_0x5b4d30]['deletions']:'[]';_0x22d21c['model'][_0x5b4d30]={'insertions':this['_utils']['_makeModelFromViewString'](_0x276732),'deletions':this['_utils']['_makeModelFromViewString'](_0x507d4c)};}}for(const _0x412790 of _0x5c3446){let _0x2cc87c=null,_0x3b9bc3=0x0;const _0x2dc43e=new Map(Array['from'](_0x48387d['model'][_0x412790]['insertions']['markers'])['filter'](([_0x14e971])=>!_0x14e971['startsWith']('revision:')));let _0x5996aa=0x0;for(const _0x3e5a27 of _0xff1b69){const _0x362df8=this['_makeTape'](_0x3e5a27['model'][_0x412790]['insertions']);_0x3e5a27==_0x48387d?(_0x2cc87c=_0x362df8,_0x3b9bc3=_0x2cc87c['length'],_0x2cc87c['forEach'](_0x306727=>{_0x306727['id']=_0x5996aa++;}),this['_processTape'](_0x2cc87c)):this['_markInsertions'](_0x2cc87c,_0x362df8);const _0xb94a79=_0x2cc87c['filter'](_0x1935fd=>!_0x1935fd['isAdded'])['map'](_0x2f586f=>_0x2f586f['id']);let _0x450df7=0x0;const _0x5cba01=this['_makeTape'](_0x3e5a27['model'][_0x412790]['deletions']);_0x5cba01['forEach'](_0xcaf766=>{_0xcaf766['isRemoved']?_0xcaf766['id']=_0x3b9bc3++:_0xcaf766['id']=_0xb94a79[_0x450df7++];}),this['_processTape'](_0x5cba01),this['_setDistance'](_0x2cc87c,'isAdded'),this['_setDistance'](_0x5cba01,'isRemoved'),_0x3e5a27==_0x48387d&&this['_markMarkers'](_0x2cc87c,_0x2dc43e),_0x2cc87c=this['_joinTapes'](_0x2cc87c,_0x5cba01),this['_refreshStartEndIndex'](_0x2cc87c),this['_setDistance'](_0x2cc87c,'isRemoved');}_0x2cc87c=_0x2cc87c['filter'](_0x4b35dd=>!(_0x4b35dd['isAdded']&&_0x4b35dd['isRemoved']));const _0x780cdc=new Map(_0x597e54['model'][_0x412790]['deletions']['markers']),_0xd37a76=new Set(_0x2dc43e['keys']());for(const _0x3a1770 of _0x780cdc['keys']())_0xd37a76['delete'](_0x3a1770);this['_markSuggestions'](_0x2cc87c,_0xd37a76),this['_fixObsoleteTags'](_0x2cc87c),_0x2cc87c=this['_removeMissingPairs'](_0x2cc87c),_0x2cc87c=this['_markMismatchedRemovedTags'](_0x2cc87c),_0x2cc87c=this['_removeUnsupportedChanges'](_0x2cc87c);const {root:_0x1630c2,changes:_0x500b67}=this['_makeModelFromTape'](_0x2cc87c,_0x550d97,_0x412790);_0x166062['model'][_0x412790]=_0x1630c2;const _0x1304fe=_0xb43354['get'](_0x412790);if(_0x1304fe){const _0x4565d9=_0x550d97['get'](_0x1304fe['userId']),_0xb32910=new r({'author':_0x4565d9,'type':_0x1304fe['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x412790});_0x500b67['unshift'](_0xb32910),_0x166062['attributes'][_0x412790]['revisionHistoryAttachChange']=_0xb32910['id'];}_0x166062['changes']=_0x166062['changes']['concat'](_0x500b67);}return _0x166062;}['_markMarkers'](_0x33f1b7,_0x3e15f0){for(let _0x551b6f=0x0;_0x551b6f<_0x33f1b7['length'];_0x551b6f++)for(const [_0x18bb11,_0xcbfa01]of _0x3e15f0)!_0xcbfa01['isCollapsed']&&_0xcbfa01['start']['isEqual'](_0x33f1b7[_0x551b6f]['previousPosition'])&&_0x33f1b7[_0x551b6f]['markersStart']['push'](_0x18bb11),_0xcbfa01['end']['isEqual'](_0x33f1b7[_0x551b6f]['nextPosition'])&&_0x33f1b7[_0x551b6f]['markersEnd']['push'](_0x18bb11);}['_joinTapes'](_0x485de4,_0x4ce40a){let _0x1c9820=[],_0x527898=0x0,_0x4b90c8=0x0;for(;_0x527898<_0x485de4['length']||_0x4b90c8<_0x4ce40a['length'];){const _0x201445=_0x485de4[_0x527898]||{},_0x5708e7=_0x4ce40a[_0x4b90c8]||{};if(_0x201445['id']==_0x5708e7['id'])_0x527898++,_0x4b90c8++,_0x1c9820['push'](_0x201445);else{if(_0x5708e7['isRemoved']&&_0x201445['isAdded']){const {commonTape:_0x2e70bd,iEnd:_0x5dddff,jEnd:_0x2ec751}=this['_threeWayMerge'](_0x485de4,_0x527898,_0x4ce40a,_0x4b90c8);_0x1c9820=_0x1c9820['concat'](_0x2e70bd),_0x527898=_0x5dddff,_0x4b90c8=_0x2ec751;}else _0x5708e7['isRemoved']?(_0x4b90c8++,_0x1c9820['push'](_0x5708e7)):(_0x527898++,_0x1c9820['push'](_0x201445));}}return _0x1c9820;}['_markSuggestions'](_0x552b06,_0x245d07){const _0x144d47=[];for(let _0x5054a3=0x0;_0x5054a3<_0x552b06['length'];_0x5054a3++){for(let _0x53cdae=0x0;_0x53cdae<_0x552b06[_0x5054a3]['markersStart']['length'];_0x53cdae++){const _0x43fc31=_0x552b06[_0x5054a3]['markersStart'][_0x53cdae];if(!_0x245d07['has'](_0x43fc31))continue;const {group:_0x392c27,type:_0x2dc0aa,authorId:_0x35192e}=_0x4ab123(_0x43fc31);'revision-suggestion'!=_0x392c27||'insertion'!=_0x2dc0aa&&'deletion'!=_0x2dc0aa||(_0x144d47['unshift']({'type':_0x2dc0aa,'name':_0x43fc31,'userId':_0x35192e}),_0x552b06[_0x5054a3]['markersStart']['splice'](_0x53cdae,0x1),_0x53cdae--);}_0x365c80(_0x552b06[_0x5054a3]);for(let _0x5f2182=0x0;_0x5f2182<_0x552b06[_0x5054a3]['markersEnd']['length'];_0x5f2182++){const _0x4ba977=_0x552b06[_0x5054a3]['markersEnd'][_0x5f2182];if(!_0x245d07['has'](_0x4ba977))continue;const {group:_0x2a011c,type:_0x222e3c}=_0x4ab123(_0x4ba977);if('revision-suggestion'!=_0x2a011c||'insertion'!=_0x222e3c&&'deletion'!=_0x222e3c)continue;_0x552b06[_0x5054a3]['markersEnd']['splice'](_0x5f2182,0x1),_0x5f2182--;const _0x566e95=_0x144d47['findIndex'](_0x5ec67f=>_0x5ec67f['name']==_0x4ba977);_0x566e95>-0x1&&_0x144d47['splice'](_0x566e95,0x1);}}function _0x4ab123(_0x2e895a){const _0xe05698=_0x2e895a['split'](':');return{'group':_0xe05698[0x0],'type':_0xe05698[0x1],'subType':_0xe05698['length']>=0x5?_0xe05698[0x2]:null,'id':_0xe05698['length']<0x5?_0xe05698[0x2]:_0xe05698[0x3],'authorId':_0xe05698['length']<0x5?_0xe05698[0x3]:_0xe05698[0x4],'markerCount':0x6==_0xe05698['length']?_0xe05698[0x5]:null};}function _0x365c80(_0x19f3e4){for(let _0x4dcd61=0x0;_0x4dcd61<_0x144d47['length'];_0x4dcd61++){if(_0x19f3e4['isAdded']&&'insertion'==_0x144d47[_0x4dcd61]['type']&&_0x19f3e4['isAdded']['userId']==_0x144d47[_0x4dcd61]['userId'])return _0x19f3e4['isAddSuggestion']=_0x144d47[_0x4dcd61],void delete _0x19f3e4['isAdded'];if(!_0x19f3e4['isAdded']&&!_0x19f3e4['isRemoved']&&'deletion'==_0x144d47[_0x4dcd61]['type'])return void(_0x19f3e4['isRemoveSuggestion']=_0x144d47[_0x4dcd61]);}}}['_setDistance'](_0x31ce3f,_0x8ed509){let _0x5b07f4=0x0,_0x58e987=!0x1;const _0x3cb0e3=new Map();for(const _0x11d1a9 of _0x31ce3f)_0x11d1a9[_0x8ed509]?_0x58e987&&(_0x5b07f4++,_0x58e987=!0x1):(_0x5b07f4++,_0x58e987=!0x0),_0x3cb0e3['set'](_0x11d1a9['id'],_0x5b07f4);for(let _0x353e4b=0x0;_0x353e4b<_0x31ce3f['length'];_0x353e4b++){if('isRemoved'==_0x8ed509&&_0x31ce3f[_0x353e4b]['isAdded']||'isAdded'==_0x8ed509&&_0x31ce3f[_0x353e4b]['isRemoved'])continue;if('text'==_0x31ce3f[_0x353e4b]['type']){_0x31ce3f[_0x353e4b]['distance']=0x0;continue;}const _0x3ad140=_0x3cb0e3['get'](_0x31ce3f[_0x353e4b]['pairId']),_0x58cf24=_0x3cb0e3['get'](_0x31ce3f[_0x353e4b]['id']);_0x31ce3f[_0x353e4b]['distance']=_0x3ad140-_0x58cf24;}}['_getRevisionsRange'](_0x4187d1,_0x434578,_0x53a569=!0x1){const _0x1a907c=[];let _0x31537b=this['repository']['getIndex'](_0x4187d1),_0x1431c3=this['repository']['getIndex'](_0x434578);for(-0x1==_0x1431c3&&(_0x1431c3=this['repository']['_revisions']['length'],_0x53a569=!0x1);_0x31537b<_0x1431c3;)_0x1a907c['push'](this['repository']['getRevision'](_0x31537b)),_0x31537b++;return _0x53a569&&_0x1a907c['push'](this['repository']['getRevision'](_0x31537b)),_0x1a907c;}['_threeWayMerge'](_0x692339,_0x508e32,_0x4220cc,_0x38aef5){const _0x14454e=this['editor']['model']['schema'];let _0x2145e1=_0x508e32;for(;_0x692339[_0x2145e1]&&_0x692339[_0x2145e1]['isAdded'];)_0x2145e1++;let _0x1cda58=_0x38aef5;for(;_0x4220cc[_0x1cda58]&&_0x4220cc[_0x1cda58]['isRemoved'];)_0x1cda58++;_0xbee888(_0x692339,_0x508e32,_0x2145e1),_0xbee888(_0x4220cc,_0x38aef5,_0x1cda58);const _0x5a9c2e=_0x4220cc['slice'](_0x38aef5,_0x1cda58)['concat'](_0x692339['slice'](_0x508e32,_0x2145e1));return _0x5a9c2e['sort']((_0x37e833,_0x5e5b17)=>_0x37e833['side']!=_0x5e5b17['side']?_0x37e833['side']-_0x5e5b17['side']:_0x37e833['level']!=_0x5e5b17['level']?_0x37e833['level']-_0x5e5b17['level']:_0x37e833['distance']!=_0x5e5b17['distance']?_0x5e5b17['distance']-_0x37e833['distance']:!!_0x37e833['isAdded']!=!!_0x5e5b17['isAdded']?-0x1==_0x37e833['side']||0x0==_0x37e833['side']?_0x37e833['isAdded']?-0x1:0x1:_0x37e833['isAdded']?0x1:-0x1:_0x37e833['index']-_0x5e5b17['index']),{'commonTape':_0x5a9c2e,'iEnd':_0x2145e1,'jEnd':_0x1cda58};function _0xbee888(_0x476e20,_0x39d190,_0x3c5b75){let _0xc48845=-0x1,_0x1467cd=Number['POSITIVE_INFINITY'],_0x4afbc7=!0x0;for(let _0x19e0e8=_0x39d190;_0x19e0e8<_0x3c5b75;_0x19e0e8++)if(_0x14454e['isInline'](_0x476e20[_0x19e0e8]['item'])||(_0x4afbc7=!0x1),_0x476e20[_0x19e0e8]['item']['startIndex']<_0x39d190&&(_0xc48845=_0x19e0e8),_0x476e20[_0x19e0e8]['item']['endIndex']>=_0x3c5b75){_0x1467cd=_0x19e0e8;break;}_0x4afbc7&&(_0xc48845=_0x3c5b75-0x1);for(let _0x35fb9a=_0x39d190;_0x35fb9a<_0x3c5b75;_0x35fb9a++)_0x476e20[_0x35fb9a]['side']=_0x35fb9a<=_0xc48845?-0x1:_0x35fb9a<_0x1467cd?0x0:0x1,_0x476e20[_0x35fb9a]['index']=_0x35fb9a;let _0x124f1e=0x0;for(let _0x5b93bf=_0x39d190;_0x5b93bf<=_0xc48845;_0x5b93bf++)0x0==_0x476e20[_0x5b93bf]['distance']?_0x476e20[_0x5b93bf]['level']=_0x124f1e:(_0x124f1e++,_0x476e20[_0x5b93bf]['level']=_0x124f1e,_0x124f1e++);for(let _0x35a209=_0x39d190;_0x35a209<_0x3c5b75;_0x35a209++)0x0==_0x476e20[_0x35a209]['side']&&(_0x476e20[_0x35a209]['level']=_0x124f1e);_0x124f1e=0x0;for(let _0x35db6b=_0x3c5b75-0x1;_0x35db6b>=_0x1467cd;_0x35db6b--)0x0==_0x476e20[_0x35db6b]['distance']?_0x476e20[_0x35db6b]['level']=_0x124f1e:(_0x124f1e--,_0x476e20[_0x35db6b]['level']=_0x124f1e,_0x124f1e--);}}['_fixObsoleteTags'](_0x4727e8){const _0x45bb7d=new Map(),_0x471a4b=this['editor']['model']['schema'];for(let _0x3503eb=0x1;_0x3503eb<_0x4727e8['length'];_0x3503eb++){let _0x3b5214,_0x20049f,_0x5f8507;const _0x1b7198=_0x4727e8[_0x3503eb],_0x252bd3=_0x4727e8[_0x3503eb-0x1];if('text'==_0x1b7198['type'])continue;if(_0x1b7198['type']!=_0x252bd3['type'])continue;if(!_0x471a4b['isBlock'](_0x252bd3['item'])||_0x471a4b['isLimit'](_0x252bd3['item']))continue;if(!_0x471a4b['isBlock'](_0x1b7198['item'])||_0x471a4b['isLimit'](_0x1b7198['item']))continue;if((_0x4727e8[_0x3503eb]['isAdded']||_0x4727e8[_0x3503eb]['isAddSuggestion'])&&_0x4727e8[_0x3503eb-0x1]['isRemoved'])_0x3b5214=_0x4727e8[_0x3503eb],_0x20049f=_0x4727e8[_0x3503eb-0x1],_0x5f8507=_0x3503eb-0x1;else{if(!_0x4727e8[_0x3503eb]['isRemoved']||!_0x4727e8[_0x3503eb-0x1]['isAdded']&&!_0x4727e8[_0x3503eb-0x1]['isAddSuggestion'])continue;_0x3b5214=_0x4727e8[_0x3503eb-0x1],_0x20049f=_0x4727e8[_0x3503eb],_0x5f8507=_0x3503eb;}const _0x304dd8=_0x3b5214['level']==_0x20049f['level'],_0x29ca92=Math['abs'](_0x3b5214['level'])<Math['abs'](_0x20049f['level'])&&0x0==_0x20049f['distance'];(_0x304dd8||_0x29ca92)&&(_0x45bb7d['set'](_0x20049f['id'],_0x3b5214['id']),_0x4727e8['splice'](_0x5f8507,0x1),_0x3503eb--,_0x3b5214['isAdded']=!0x1);}for(let _0x3a72c6=0x0;_0x3a72c6<_0x4727e8['length'];_0x3a72c6++)_0x45bb7d['has'](_0x4727e8[_0x3a72c6]['pairId'])&&(_0x4727e8[_0x3a72c6]['pairId']=_0x45bb7d['get'](_0x4727e8[_0x3a72c6]['pairId']));}['_removeMissingPairs'](_0x49368c){const _0x365cb9=new Set(_0x49368c['map'](_0x28dc8a=>_0x28dc8a['id']));for(let _0x3c85b6=0x0;_0x3c85b6<_0x49368c['length'];_0x3c85b6++)_0x365cb9['has'](_0x49368c[_0x3c85b6]['pairId'])||0x0==_0x49368c[_0x3c85b6]['distance']||(_0x49368c[_0x3c85b6]['isIncorrect']=!0x0);return _0x49368c['filter'](_0x52628f=>!_0x52628f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4c5285){const _0x5ed71f=new Set();for(let _0x56a14d=0x0;_0x56a14d<_0x4c5285['length'];_0x56a14d++){if(_0x5ed71f['has'](_0x4c5285[_0x56a14d]['id'])&&_0x4c5285[_0x56a14d]['isRemoved']&&(_0x4c5285[_0x56a14d]['isIncorrect']=!0x0),_0x4c5285[_0x56a14d]['isIncorrect'])continue;if(0x0==_0x4c5285[_0x56a14d]['distance'])continue;if('elementStart'!=_0x4c5285[_0x56a14d]['type'])continue;if(null==_0x4c5285[_0x56a14d]['pairId'])continue;let _0x1c1b86=_0x56a14d+0x1,_0x3a7fe4=0x0;for(;_0x4c5285[_0x1c1b86]['id']!=_0x4c5285[_0x56a14d]['pairId'];)'elementStart'==_0x4c5285[_0x1c1b86]['type']?_0x3a7fe4++:'elementEnd'==_0x4c5285[_0x1c1b86]['type']&&_0x3a7fe4--,_0x1c1b86++;if(0x0!=_0x3a7fe4){if(_0x4c5285[_0x56a14d]['isRemoved'])_0x4c5285[_0x56a14d]['isIncorrect']=!0x0;else{for(;_0x1c1b86!=_0x56a14d;)_0x4c5285[_0x1c1b86]['isRemoved']&&0x0!=_0x4c5285[_0x1c1b86]['distance']&&(_0x4c5285[_0x1c1b86]['isIncorrect']=!0x0,_0x5ed71f['add'](_0x4c5285[_0x1c1b86]['pairId'])),_0x1c1b86--;}}}return _0x4c5285['filter'](_0x18c1d9=>!_0x18c1d9['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d1d6f){const _0x3b53a6=this['editor']['model']['schema'];for(let _0x3b9ba9=0x0;_0x3b9ba9<_0x2d1d6f['length'];_0x3b9ba9++){if(!(_0x2d1d6f[_0x3b9ba9]['isAdded']||_0x2d1d6f[_0x3b9ba9]['isAddSuggestion']||_0x2d1d6f[_0x3b9ba9]['isRemoved']||_0x2d1d6f[_0x3b9ba9]['isRemoveSuggestion']))continue;if(0x0==_0x2d1d6f[_0x3b9ba9]['distance'])continue;const _0x4a2cfd=_0x2d1d6f[_0x3b9ba9]['item'];_0x3b53a6['isBlock'](_0x4a2cfd)||_0x3b53a6['isLimit'](_0x4a2cfd)||(_0x2d1d6f[_0x3b9ba9]['isAdded']&&delete _0x2d1d6f[_0x3b9ba9]['isAdded'],_0x2d1d6f[_0x3b9ba9]['isAddSuggestion']&&delete _0x2d1d6f[_0x3b9ba9]['isAddSuggestion'],_0x2d1d6f[_0x3b9ba9]['isRemoveSuggestion']&&delete _0x2d1d6f[_0x3b9ba9]['isRemoveSuggestion'],_0x2d1d6f[_0x3b9ba9]['isRemoved']&&(_0x2d1d6f[_0x3b9ba9]['isIncorrect']=!0x0));}return _0x2d1d6f['filter'](_0x13bb93=>!_0x13bb93['isIncorrect']);}['_makeModelFromTape'](_0x37a39c,_0x1d37fa,_0x320c62){const _0x220ab0=new vt(),_0x4df72b=[],_0x32d1ba=new Map(),_0x558d38=this['editor']['model'],_0x4fecef=_0x558d38['schema'],_0x5c066b=[_0x220ab0],_0x1a53ad={},_0x1d9327={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x445006=null;const _0x2a99d7=[0x0];for(let _0x2766e2=0x0;_0x2766e2<_0x37a39c['length'];_0x2766e2++)if('elementStart'===_0x37a39c[_0x2766e2]['type']){_0x37a39c[_0x2766e2]['previousPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7);const _0x67d43f=new ut(_0x37a39c[_0x2766e2]['item']['name'],_0x37a39c[_0x2766e2]['item']['getAttributes']());_0x5c066b[0x0]['_appendChild'](_0x67d43f),_0x2a99d7['push'](0x0),_0x5c066b['unshift'](_0x67d43f),_0x37a39c[_0x2766e2]['nextPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7);}else'elementEnd'===_0x37a39c[_0x2766e2]['type']?(_0x5c066b['shift'](),_0x37a39c[_0x2766e2]['previousPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7),_0x2a99d7['pop'](),_0x2a99d7[_0x2a99d7['length']-0x1]++,_0x37a39c[_0x2766e2]['nextPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7)):(_0x37a39c[_0x2766e2]['previousPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7),_0x445006?_0x445006['_data']+=_0x37a39c[_0x2766e2]['item']['data']:_0x445006=new gt(_0x37a39c[_0x2766e2]['item']['data'],_0x37a39c[_0x2766e2]['item']['getAttributes']()),_0x37a39c[_0x2766e2+0x1]&&'text'===_0x37a39c[_0x2766e2+0x1]['type']&&_0x4b4e48(_0x445006,_0x37a39c[_0x2766e2+0x1]['item'])||(_0x5c066b[0x0]['_appendChild'](_0x445006),_0x445006=null),_0x2a99d7[_0x2a99d7['length']-0x1]+=_0x37a39c[_0x2766e2]['item']['offsetSize'],_0x37a39c[_0x2766e2]['nextPosition']=_0x558d38['createPositionFromPath'](_0x220ab0,_0x2a99d7));for(let _0x32beac=0x0;_0x32beac<_0x37a39c['length'];_0x32beac++){const _0xb1e165=_0x37a39c[_0x32beac]['previousPosition'],_0x1076e8=_0x37a39c[_0x32beac]['nextPosition'];for(const _0x429a7c of _0x37a39c[_0x32beac]['markersStart'])_0x32d1ba['set'](_0x429a7c,{'start':_0xb1e165,'end':null});_0x53ad0d('isRemoveSuggestion',_0x32beac,_0xb1e165,_0x1076e8),_0x53ad0d('isAddSuggestion',_0x32beac,_0xb1e165,_0x1076e8),_0x53ad0d('isRemoved',_0x32beac,_0xb1e165,_0x1076e8),_0x53ad0d('isAdded',_0x32beac,_0xb1e165,_0x1076e8);for(const _0xad8e44 of _0x37a39c[_0x32beac]['markersEnd']){const _0x28b357=_0x32d1ba['get'](_0xad8e44);_0x28b357?_0x28b357['end']=_0x1076e8:_0x32d1ba['set'](_0xad8e44,{'start':_0x1076e8,'end':_0x1076e8});}}for(const [_0x2f14af,_0x6f51c8]of _0x32d1ba){const _0x147ffc=this['editor']['model']['createRange'](_0x6f51c8['start'],_0x6f51c8['end']);_0x220ab0['markers']['set'](_0x2f14af,_0x147ffc);}return _0x4df72b['sort']((_0xcb5527,_0x199456)=>{const _0x37a278=_0x220ab0['markers']['get']('revision:'+_0xcb5527['id']),_0xa6ecd7=_0x220ab0['markers']['get']('revision:'+_0x199456['id']);return _0x37a278['start']['isBefore'](_0xa6ecd7['start'])?-0x1:_0x37a278['start']['isAfter'](_0xa6ecd7['start'])?0x1:_0x37a278['end']['isBefore'](_0xa6ecd7['end'])?-0x1:_0x37a278['end']['isAfter'](_0xa6ecd7['end'])?0x1:'add'===_0xcb5527['type']?-0x1:0x1;}),{'root':_0x220ab0,'changes':_0x4df72b};function _0x53ad0d(_0x23d63f,_0x4ae5b1,_0x5e4265,_0x21eb8f){const _0x3eeda7=!!_0x37a39c[_0x4ae5b1][_0x23d63f],_0x5579a0=_0x3eeda7?_0x37a39c[_0x4ae5b1][_0x23d63f]['userId']:null,_0x3d69f2=_0x4ae5b1===_0x37a39c['length']-0x1,_0x1b751a=_0x1d9327[_0x23d63f][0x0],_0x5b3f6f=_0x4fecef['isObject'](_0x37a39c[_0x4ae5b1]['item']);!_0x1a53ad[_0x23d63f]&&_0x3eeda7?_0x1a53ad[_0x23d63f]={'start':_0x5e4265,'tapeItem':_0x37a39c[_0x4ae5b1],'userId':_0x5579a0,'type':_0x23d63f}:_0x1a53ad[_0x23d63f]&&!_0x3eeda7?(_0x1a53ad[_0x23d63f]['end']=_0x5e4265,_0xd18ed5(_0x1a53ad[_0x23d63f]),_0x1a53ad[_0x23d63f]=null):_0x1a53ad[_0x23d63f]&&_0x3eeda7&&_0x1a53ad[_0x23d63f]['userId']!==_0x5579a0&&(_0x1a53ad[_0x23d63f]['end']=_0x5e4265,_0x1b751a&&_0x1b751a['userId']===_0x1a53ad[_0x23d63f]['userId']||_0xd18ed5(_0x1a53ad[_0x23d63f]),_0x1a53ad[_0x23d63f]={'start':_0x5e4265,'tapeItem':_0x37a39c[_0x4ae5b1],'userId':_0x5579a0,'type':_0x23d63f}),_0x1a53ad[_0x23d63f]&&_0x5b3f6f&&('elementStart'!==_0x37a39c[_0x4ae5b1]['type']||_0x1b751a&&_0x1b751a['userId']===_0x5579a0||_0x1d9327[_0x23d63f]['unshift']({'userId':_0x5579a0,'object':_0x37a39c[_0x4ae5b1]['item'],'change':_0x1a53ad[_0x23d63f]}),'elementEnd'===_0x37a39c[_0x4ae5b1]['type']&&_0x1b751a&&_0x1b751a['object']===_0x37a39c[_0x4ae5b1]['item']&&(_0x1d9327[_0x23d63f]['shift'](),_0x1a53ad[_0x23d63f]=_0x1b751a['change'])),_0x1a53ad[_0x23d63f]&&_0x3d69f2&&(_0x1a53ad[_0x23d63f]['end']=_0x21eb8f,_0xd18ed5(_0x1a53ad[_0x23d63f]),_0x1a53ad[_0x23d63f]=null);}function _0xd18ed5({start:_0xd545ad,end:_0x5213d3,tapeItem:_0x1c81b5,userId:_0x4dd24e,type:_0x214523}){const _0x36ccff=_0x1c81b5['item'],_0xf52b21=_0x558d38['schema']['isBlock'](_0x36ccff)&&!_0x558d38['schema']['isLimit'](_0x36ccff),_0x2414db=_0xd545ad['nodeAfter']==_0x5213d3['parent']&&_0x5213d3['isAtStart'];if(_0xf52b21&&_0x2414db)return;const _0x39a49f=_0x558d38['createRange'](_0xd545ad,_0x5213d3),_0x5577ae=_0x1d37fa['get'](_0x4dd24e),_0x499144=new r({'author':_0x5577ae,'type':'isAdded'==_0x214523||'isAddSuggestion'==_0x214523?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x214523||'isRemoveSuggestion'==_0x214523},'createdAt':new Date(),'rootName':_0x320c62});_0x4df72b['push'](_0x499144),_0x220ab0['markers']['set']('revision:'+_0x499144['id'],_0x39a49f);}function _0x4b4e48(_0x531713,_0x18314b){const _0xe36609=_0x531713['getAttributes'](),_0x5db421=_0x18314b['getAttributes']();for(const _0x213960 of _0xe36609){if(_0x213960[0x1]!==_0x18314b['getAttribute'](_0x213960[0x0]))return!0x1;_0x5db421['next']();}return _0x5db421['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x77093e=>{const _0x43fd27=_0x77093e['markerName']['split'](':')[0x1],_0x5a3d29=this['_getChangeFromId'](_0x43fd27);if(!_0x5a3d29)return null;const _0x5a1a9e='add'==_0x5a3d29['type']?'insertion':'deletion',_0x4f64bd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5a1a9e];return _0x5a3d29['data']['isSuggestion']&&_0x4f64bd['push']('ck-suggestion-marker-'+_0x5a1a9e+'-new'),this['activeChange']==_0x5a3d29&&_0x4f64bd['push']('ck-suggestion-marker--active'),{'classes':_0x4f64bd,'attributes':{'data-change-id':_0x43fd27}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3db821=>{_0x3db821['on']('element:pre',(_0x2e7f57,_0xb39831,_0xb0b3dd)=>{const _0x347311=_0xb39831['viewItem']['getChild'](0x0);if(!_0x347311||!_0x347311['is']('element','code'))return;if(!_0xb0b3dd['consumable']['consume'](_0x347311,{'attributes':['vid_start','vid_end']}))return;const _0x4cef93=_0xb39831['modelRange']['start']['nodeAfter'];_0xb0b3dd['writer']['setAttribute']('vid_start',_0x347311['getAttribute']('vid_start'),_0x4cef93),_0xb0b3dd['writer']['setAttribute']('vid_end',_0x347311['getAttribute']('vid_end'),_0x4cef93);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x432e3b=>{_0x432e3b['on']('element',(_0x1fc000,_0x13783b,_0x50433f)=>{if(!_0x50433f['consumable']['consume'](_0x13783b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x13783b['modelRange']['isCollapsed'])return;const _0x6c806e=_0x13783b['modelRange']['start']['nodeAfter'];_0x6c806e['hasAttribute']('vid_start')||_0x6c806e['hasAttribute']('vid')||(_0x50433f['writer']['setAttribute']('vid_start',_0x13783b['viewItem']['getAttribute']('vid_start'),_0x6c806e),_0x50433f['writer']['setAttribute']('vid_end',_0x13783b['viewItem']['getAttribute']('vid_end'),_0x6c806e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x47da6d=>_0x47da6d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1b8dc6,[,_0x18a699])=>{['vid_start','vid_end','vid']['includes'](_0x18a699)&&(_0x1b8dc6['return']=!0x0,_0x1b8dc6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x576819=>{_0x576819['on']('attribute:vid',(_0x24569f,_0x3db69d,_0xb3ba1d)=>{if('\x20'!=_0x3db69d['item']['data']||_0x3db69d['item']['parent']['maxOffset']>0x1)return;if(!_0xb3ba1d['consumable']['consume'](_0x3db69d['item'],_0x24569f['name']))return;const _0x5c7a84=_0xb3ba1d['writer'],_0x59a1c1=_0xb3ba1d['mapper']['toViewRange'](_0x3db69d['range']);_0x5c7a84['wrap'](_0x59a1c1,_0x5c7a84['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2f11d5){const _0x357606=_0x2f11d5['plugins']['get']('RevisionViewer');return(_0x5701bf,_0x279d1b,_0x2a32b3)=>{const _0x492b10=_0x279d1b['markerName']['split'](':')[0x1],_0x5094e9=_0x357606['_getChangeFromId'](_0x492b10);if(!_0x5094e9)return null;const _0x46afc9='add'==_0x5094e9['type']?'split':'merge';if(!_0x2a32b3['consumable']['test'](_0x279d1b['markerRange'],_0x5701bf['name']))return;const _0x19038a=_0x279d1b['markerRange']['getWalker'](),_0x54e7e8=_0x279d1b['markerRange']['start'],_0x2f4edf=_0x2f11d5['model']['schema'];let _0x17952e=null,_0x58217a=null,_0x536d5b=!0x1,_0x13b674=!0x1;for(const _0x412f5c of _0x19038a){const _0x5a70e7=_0x412f5c['item'];_0x536d5b=_0x536d5b||_0x2f4edf['isContent'](_0x5a70e7);const _0x38d4ce=_0x2a32b3['mapper']['toViewElement'](_0x5a70e7);if(_0x38d4ce&&_0x38d4ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x412f5c['type']&&(_0x2f4edf['isBlock'](_0x5a70e7)&&!_0x2f4edf['isLimit'](_0x5a70e7)&&(_0x5a70e7['nextSibling']||_0x54e7e8['isAtEnd']?_0x17952e&&_0x17952e['parent']==_0x5a70e7||(_0x17952e=_0x5a70e7,_0x55a184(_0x412f5c['previousPosition']),_0x13b674=!0x0):_0x58217a=_0x58217a||_0x412f5c['previousPosition']));}function _0x55a184(_0x84921){const _0x17cdbf=_0x2a32b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46afc9}),_0x5d878e=_0x2a32b3['mapper']['toViewPosition'](_0x84921);_0x5094e9['data']['isSuggestion']&&_0x2a32b3['writer']['addClass']('ck-suggestion-marker-'+_0x46afc9+'-new',_0x17cdbf),_0x357606['activeChange']==_0x5094e9&&_0x2a32b3['writer']['addClass']('ck-suggestion-marker--active',_0x17cdbf),_0x2a32b3['writer']['insert'](_0x5d878e,_0x17cdbf),_0x2a32b3['mapper']['bindElementToMarker'](_0x17cdbf,_0x279d1b['markerName']);}_0x536d5b||_0x13b674||!_0x58217a||_0x55a184(_0x58217a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x17258c,_0x2a98a2,_0x5e61ef)=>{const _0x17898b=_0x5e61ef['mapper']['markerNameToElements'](_0x2a98a2['markerName']);if(_0x17898b){for(const _0x461124 of _0x17898b)(_0x461124['hasClass']('ck-suggestion-marker-split')||_0x461124['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e61ef['mapper']['unbindElementFromMarkerName'](_0x461124,_0x2a98a2['markerName']),_0x5e61ef['writer']['remove'](_0x461124));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x46462e,_0x3d20a1,_0x201ef4)=>{const _0x41f858=_0x3d20a1['markerName']['split'](':')[0x1],_0x1e7c65=this['_getChangeFromId'](_0x41f858);if(!_0x1e7c65)return null;const _0x14cf4f='add'==_0x1e7c65['type']?'split':'merge';if(_0x201ef4['consumable']['test'](_0x3d20a1['markerRange'],_0x46462e['name']))for(const _0x4feb17 of _0x3d20a1['markerRange']['getItems']()){if(!_0x4feb17['is']('element','softBreak'))continue;const _0x66fd3=_0x201ef4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14cf4f}),_0x284594=_0x201ef4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4feb17));_0x1e7c65['data']['isSuggestion']&&_0x201ef4['writer']['addClass']('ck-suggestion-marker-'+_0x14cf4f+'-new',_0x66fd3),this['activeChange']==_0x1e7c65&&_0x201ef4['writer']['addClass']('ck-suggestion-marker--active',_0x66fd3),_0x201ef4['writer']['insert'](_0x284594,_0x66fd3),_0x201ef4['mapper']['bindElementToMarker'](_0x66fd3,_0x3d20a1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2534bd=>{for(const _0x36814b of this['editor']['model']['document']['getRootNames']()){const _0x12652b=this['editor']['model']['document']['getRoot'](_0x36814b),_0x44ad20=this['editor']['editing']['view']['document']['getRoot'](_0x36814b);if(_0x44ad20){const _0x1d9703=_0x12652b['getAttribute']('revisionHistoryAttachChange');if(_0x2534bd['removeAttribute']('data-change-id',_0x44ad20),_0x2534bd['removeClass']('ck-revision-history-root-add',_0x44ad20),_0x2534bd['removeClass']('ck-revision-history-root-remove',_0x44ad20),_0x2534bd['removeClass']('ck-revision-history-root--active',_0x44ad20),_0x1d9703){const _0x48ef30=this['_getChangeFromId'](_0x1d9703);if(!_0x48ef30)return null;_0x2534bd['setAttribute']('data-change-id',_0x1d9703,_0x44ad20),_0x2534bd['addClass']('ck-revision-history-root-'+_0x48ef30['type'],_0x44ad20),this['activeChange']==_0x48ef30&&_0x2534bd['addClass']('ck-revision-history-root--active',_0x44ad20);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x204228=>'revision-comment:'+_0x204228,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b95be=>'revision-suggestion:'+_0x3b95be,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x192dfc=>({'name':'suggestion:'+_0x192dfc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5743da=>{const _0x295a57=_0x5743da['markerName']['split'](':')[0x1];return'insertion'!=_0x295a57&&'deletion'!=_0x295a57?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x295a57]};}}),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',(_0x41ce99,_0x25223c,_0xb22819)=>{const _0x591872=_0xb22819['mapper']['markerNameToElements'](_0x25223c['markerName']);if(_0x591872){for(const _0x582280 of _0x591872)_0x582280['is']('uiElement')&&(_0xb22819['mapper']['unbindElementFromMarkerName'](_0x582280,_0x25223c['markerName']),_0xb22819['writer']['remove'](_0x582280));}},{'priority':'high'});}['_getChangeFromId'](_0x365105){return this['_changeIdToChange']['get'](_0x365105);}['_getViewForChange'](_0x999089){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x999089),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1dae7b,_0x28fc7d,_0x1fcdae,_0x37d773)=>{_0x37d773&&this['_balloon']['remove'](_0x37d773),_0x1fcdae&&(this['_balloon']['add']({'view':_0x1fcdae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x15b596=this['editor']['editing'],_0x543cab=this['_getChangeFromId'](_0x1fcdae['changeId']);let _0x1dc99a;if(_0x543cab['data']['isOnRoot']){const _0x349e64=_0x15b596['view']['getDomRoot'](_0x543cab['rootName']);_0x1dc99a=Array['from'](_0x349e64['getClientRects']());}else{const _0x335ac8=this['editor']['model']['markers']['get']('revision:'+_0x1fcdae['changeId']);_0x1dc99a=Array['from'](_0x15b596['mapper']['markerNameToElements'](_0x335ac8['name']))['map'](_0x50f2a8=>_0x15b596['view']['domConverter']['mapViewToDom'](_0x50f2a8))['map'](_0x4b10bb=>Array['from'](_0x4b10bb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dc99a[0x0];return _0x1dc99a['find'](_0x444e9e=>_0x444e9e['top']-0x3<=this['_activeViewTarget']['y']&&_0x444e9e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x444e9e['left']-0x3<=this['_activeViewTarget']['x']&&_0x444e9e['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dc99a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4de782,_0x3d22ac,_0x103ced,_0x16ef7f)=>{this['activeView']=_0x103ced?this['_getViewForChange'](_0x103ced):null,this['editor']['model']['change'](()=>{const _0x4bb97e=this['editor']['editing'];_0x16ef7f&&(_0x16ef7f['data']['isOnRoot']?_0x4bb97e['view']['change'](_0x10d1cb=>{_0x10d1cb['removeClass']('ck-revision-history-root--active',_0x4bb97e['view']['document']['getRoot'](_0x16ef7f['rootName']));}):_0x4bb97e['reconvertMarker']('revision:'+_0x16ef7f['id'])),_0x103ced&&(_0x103ced['data']['isOnRoot']?_0x4bb97e['view']['change'](_0x3e5958=>{_0x3e5958['addClass']('ck-revision-history-root--active',_0x4bb97e['view']['document']['getRoot'](_0x103ced['rootName']));}):_0x4bb97e['reconvertMarker']('revision:'+_0x103ced['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2a43af,_0x321d2e)=>{if(this['activeChange'])return;const _0x5aba80=this['_findChangeIdFromDomTarget'](_0x321d2e['target']),_0x2ddc77=this['_changeIdToChange']['get'](_0x5aba80);_0x2ddc77?(this['_activeViewTarget']={'x':_0x321d2e['domEvent']['x'],'y':_0x321d2e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2ddc77)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5bf2fb,_0x4af4c1)=>{const _0x74b3a8=this['_findChangeIdFromDomTarget'](_0x4af4c1['target']),_0x48d773=this['_changeIdToChange']['get'](_0x74b3a8);_0x48d773?(this['_activeViewTarget']={'x':_0x4af4c1['domEvent']['x'],'y':_0x4af4c1['domEvent']['y']},_0x48d773===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x48d773):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x50943e){do{const _0x26b1a3=_0x50943e['getAttribute']('data-change-id');if(_0x26b1a3)return _0x26b1a3;_0x50943e=_0x50943e['parent'];}while(_0x50943e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x33d1cb=>{for(const _0x2328d4 of this['editor']['model']['markers'])_0x33d1cb['removeMarker'](_0x2328d4);});}}function X(_0x1cd6a5,_0x5c2dc8){return(_0x4728ef,_0x2cf185,_0x392909)=>{if(!_0x392909['consumable']['test'](_0x2cf185['markerRange'],_0x4728ef['name']))return;const _0x4b9743=_0x2cf185['markerRange']['getWalker'](),_0x2ee2a9=_0x2cf185['markerRange']['start'],_0x395b89=_0x1cd6a5['model']['schema'];let _0x3f4a6d=null,_0x1e0fd4=null,_0x4c5bec=!0x1,_0x301c49=!0x1;for(const _0x564b04 of _0x4b9743){const _0x1d1287=_0x564b04['item'];_0x4c5bec=_0x4c5bec||_0x395b89['isContent'](_0x1d1287);const _0x450d0a=_0x392909['mapper']['toViewElement'](_0x1d1287);if(_0x450d0a&&_0x450d0a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x564b04['type']&&(_0x395b89['isBlock'](_0x1d1287)&&!_0x395b89['isLimit'](_0x1d1287)&&(_0x1d1287['nextSibling']||_0x2ee2a9['isAtEnd']?_0x3f4a6d&&_0x3f4a6d['parent']==_0x1d1287||(_0x3f4a6d=_0x1d1287,_0x56a00f(_0x564b04['previousPosition']),_0x301c49=!0x0):_0x1e0fd4=_0x1e0fd4||_0x564b04['previousPosition']));}function _0x56a00f(_0xb2c5ca){const _0x39d98e=_0x392909['mapper']['toViewPosition'](_0xb2c5ca),_0xb61dff=_0x392909['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5c2dc8});_0x392909['writer']['insert'](_0x39d98e,_0xb61dff),_0x392909['mapper']['bindElementToMarker'](_0xb61dff,_0x2cf185['markerName']);}_0x4c5bec||_0x301c49||!_0x1e0fd4||_0x56a00f(_0x1e0fd4);};}class mt extends _0xf18edc{constructor(_0x203b91){super(_0x203b91);const _0x5bff95=_0x203b91['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5bff95,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bff95,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x463115=this['editor'],_0x1d7007=_0x463115['plugins']['get'](m),_0x389db9=_0x1d7007['isReady']?_0x1d7007['diff']['newRevisionId']:null;_0x463115['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x389db9);}['refresh'](){const {isReady:_0x628b39,isEnabled:_0x592d4f,repository:_0x1ed597,diff:_0x5bc387}=this['editor']['plugins']['get'](m),_0x4b1186=_0x5bc387&&_0x1ed597['getLaterVisibleRevision'](_0x5bc387['newRevisionId']);this['isEnabled']=_0x628b39&&_0x592d4f&&Boolean(_0x4b1186);}}class wt extends _0xf18edc{['_step'];constructor(_0xa257e3,{direction:_0x3f8c43}){super(_0xa257e3);const _0x39a336=_0xa257e3['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3f8c43?0x1:-0x1,this['listenTo'](_0x39a336,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39a336,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x39a336,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3ece51=this['editor'],_0x10ae52=_0x3ece51['plugins']['get'](m),{isNavigationMode:_0x5a9f6d,currentChangeNumber:_0x34feff}=_0x10ae52;let _0x3eb7ca;if(_0x10ae52['activeChange']=_0x5a9f6d?_0x10ae52['diff']['changes']['get'](_0x34feff+this['_step']):_0x10ae52['diff']['changes']['first'],_0x10ae52['activeChange']['data']['isOnRoot'])_0x3eb7ca=_0x3ece51['editing']['view']['getDomRoot'](_0x10ae52['activeChange']['rootName']);else{const _0x527b65=_0x3ece51['model']['markers']['get']('revision:'+_0x10ae52['activeChange']['id']);_0x3eb7ca=_0x281c81(_0x3ece51['editing'],_0x527b65);}_0x992975({'target':_0x3eb7ca,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2a01ff,currentChangeNumber:_0x478a3e,numberOfChanges:_0x273213,isReady:_0x35c872,isEnabled:_0x4669c3}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4669c3&&_0x35c872&&_0x273213)&&(!_0x2a01ff||(0x1===this['_step']?_0x478a3e<_0x273213-0x1:_0x478a3e>0x0));}}class _i extends ts{constructor(_0x2b30b2){super(_0x2b30b2);const _0x2792db=this['bindTemplate'],_0x430e4f=new te(_0x2b30b2),_0x38b9dd=new te(_0x2b30b2);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',(_0x18dc70,_0x3c5eed)=>_0x18dc70&&_0x3c5eed>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3d29cf,_0x3cff67,_0x15ae8a,_0x329d45)=>{if(!_0x3d29cf)return g(_0x2b30b2,'Loading...');if(!_0x15ae8a)return g(_0x2b30b2,'No\x20changes');const _0x2949fb=g(_0x2b30b2,'NUMBER_OF_CHANGES',_0x15ae8a);return _0x329d45?g(_0x2b30b2,'X_OF_Y_CHANGES',[_0x3cff67+0x1,_0x15ae8a]):_0x2949fb;}),_0x430e4f['set']({'label':g(_0x2b30b2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xf0e319}),_0x38b9dd['set']({'label':g(_0x2b30b2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2e72f4}),_0x430e4f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x38b9dd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x430e4f['on']('execute',()=>this['fire']('execute','backward')),_0x38b9dd['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',_0x2792db['if']('_isStatusLabelVisible','ck-hidden',_0x36e903=>!_0x36e903)]},'children':[{'text':_0x2792db['to']('isNavigationMode',_0x27a16d=>_0x27a16d?g(_0x2b30b2,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2b30b2,'Total')+':\x20')}]},{'text':_0x2792db['to']('_statusText')}]},new _0x162f18(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x430e4f,_0x38b9dd]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x3561a9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2151a4=this['editor']['editing']['view'];_0x2151a4['change'](_0x5adbdc=>{for(const _0x447c02 of _0x2151a4['document']['roots'])_0x5adbdc['addClass'](le,_0x447c02);});}['hide'](){const _0x4a3c12=this['editor']['editing']['view'];_0x4a3c12['change'](_0x47b664=>{for(const _0x156fc9 of _0x4a3c12['document']['roots'])_0x47b664['removeClass'](le,_0x156fc9);});}}class R extends _0x3561a9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x9500db=this['editor'],_0x12a542=_0x9500db['plugins']['get'](m),_0x23015b=_0x9500db['plugins']['get'](ge);_0x9500db['ui']['componentFactory']['add']('exitToEditing',_0x10cd2b=>{const _0x20e317=new te(_0x10cd2b);return _0x20e317['set']({'label':g(_0x10cd2b,'Back\x20to\x20editing'),'icon':_0x5c1885,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x20e317,'execute',()=>{_0x9500db['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x20e317;}),_0x9500db['ui']['componentFactory']['add']('restoreRevision',_0x380f9d=>{const _0x4b1f4a=new te(_0x380f9d);return _0x4b1f4a['set']({'label':g(_0x380f9d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4b1f4a['bind']('isEnabled')['to'](_0x9500db['commands']['get']('restoreRevision')),this['listenTo'](_0x4b1f4a,'execute',()=>_0x9500db['execute']('restoreRevision')),_0x4b1f4a;}),_0x9500db['ui']['componentFactory']['add']('changesNavigation',_0x5813b5=>{const _0x1ff21c=new _i(_0x5813b5),_0x49777b=_0x9500db['commands']['get']('showPreviousChange'),_0x1606e5=_0x9500db['commands']['get']('showNextChange');return _0x1ff21c['bind']('isBackwardNavigationEnabled')['to'](_0x49777b,'isEnabled'),_0x1ff21c['bind']('isForwardNavigationEnabled')['to'](_0x1606e5,'isEnabled'),_0x1ff21c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12a542),this['listenTo'](_0x1ff21c,'execute',(_0x10f0c3,_0x5d3259)=>{_0x9500db['execute']('forward'===_0x5d3259?'showNextChange':'showPreviousChange');}),_0x1ff21c;}),_0x23015b['show'](),_0x12a542['on']('change:isReady',(_0x3dcace,_0x9d3147,_0x38ba23)=>{_0x38ba23?_0x23015b['hide']():_0x23015b['show']();});}}class at extends _0x403710{['_resizeObserver']=null;constructor(_0x223a52,_0x5a03a9){super(_0x223a52,_0x5a03a9);const _0x5306ff=this['bindTemplate'];this['set']({'label':g(_0x223a52,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x223a52,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5306ff['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 _0x1817c6=this['fieldView']['element'];this['_tooltipString']=_0x1817c6['scrollWidth']>_0x1817c6['clientWidth']&&_0x1817c6['value']||'';}}class si extends ts{constructor(_0x4f6d65,_0x4c2015,_0xd8f3db){super(_0x4f6d65);const _0x57741d=new _0x1b24f4();_0x57741d['set']({'content':_0x3a717f,'viewBox':'0\x200\x2011\x2010'});const _0x52e961=['ck','ck-revision-history-sidebar__revision-author'];_0xd8f3db&&_0x52e961['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf9e6b5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4f6d65,_0xd8f3db?'Revision\x20creator':'Revision\x20author')},'children':[_0x57741d,_0x4c2015['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x52e961},'children':_0xf9e6b5});}}function oi(_0x445d27,_0x16e7a5){const _0x457a0c=_0x445d27['bindTemplate'],_0x45853e=_0x445d27['locale'],_0x4802a8=_0x44640e(_0x45853e);_0x4802a8['panelPosition']='sw';const _0x222bb5=function(_0x4a9fff,_0x6fd39b){const _0x50c491=function(_0x5b10bb,_0x33a588){const _0xa1eb1c=_0x5b10bb['locale'],_0x1ad565={'Compare\x20against\x20selected':g(_0xa1eb1c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xa1eb1c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xa1eb1c,'Restore\x20this\x20revision')};return _0x33a588['map'](_0x5cfecb=>{const _0x563b7c=_0x1ad565[_0x5cfecb['name']];return _0x563b7c&&_0x563b7c!==_0x5cfecb['name']&&(_0x5cfecb['name']=_0x563b7c),_0x5cfecb;});}(_0x4a9fff,_0x6fd39b),_0x14a515=new _0x57f501();for(const _0x2b7406 of _0x50c491){const _0x1fde4={'type':'button','model':new to({'label':_0x2b7406['name'],'class':_0x2b7406['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b7406['action']})};_0x1fde4['model']['bind']('isEnabled')['to'](_0x4a9fff,'isActionsDropdownOpen',_0x2ef034=>'function'!=typeof _0x2b7406['isEnabled']||(!_0x2ef034||_0x2b7406['isEnabled'](_0x4a9fff))),_0x14a515['add'](_0x1fde4);}return _0x14a515;}(_0x445d27,_0x16e7a5);return _0x445d27['bind']('isActionsDropdownOpen')['to'](_0x4802a8,'isOpen'),_0x4802a8['buttonView']['set']({'label':g(_0x45853e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4bb82e}),_0x4802a8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x457a0c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x457a0c['to'](_0x307d17=>_0x307d17['stopPropagation']())}}),_0x4802a8['on']('execute',_0x520d36=>{_0x445d27['isReady']&&'function'==typeof _0x520d36['source']['_action']&&_0x520d36['source']['_action'](_0x445d27);}),_0x488c53(_0x4802a8,_0x222bb5,{'role':'menu'}),_0x4802a8['listenTo'](_0x445d27,'change:isActionsDropdownOpen',(_0x82a7a8,_0x37e8db,_0x1fd817)=>{if(_0x1fd817)for(const _0xf6712f of _0x4802a8['listView']['items']){const _0x529fb5=_0xf6712f['children']['first'],_0x236c11=_0x16e7a5['find'](_0x4f3d29=>_0x4f3d29['action']===_0x529fb5['_action'])['isVisible'];_0xf6712f['isVisible']=void 0x0===_0x236c11||_0x236c11(_0x445d27);}}),_0x4802a8;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4fcfe2,_0x48f59d,_0x295f12,_0x28a96f){super(_0x4fcfe2);const _0x26c7e0=this['bindTemplate'],_0x59a315=function(_0x2af762,_0x463b7f){const _0x4f14c9=Array['from'](_0x463b7f['authors'])['filter'](_0x1a6957=>_0x1a6957!=_0x463b7f['creator']);return _0x463b7f['creator']&&_0x4f14c9['unshift'](_0x463b7f['creator']),_0x4f14c9['map'](_0x24eb96=>new si(_0x2af762,_0x24eb96,_0x24eb96==_0x463b7f['creator']));}(_0x4fcfe2,_0x48f59d);this['id']=_0x48f59d['id'],this['_revision']=_0x48f59d,this['_requireRevisionName']=_0x28a96f,this['bind']('name','createdAt')['to'](_0x48f59d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x433750=>{return _0x115077=_0x4fcfe2['uiLanguage'],(_0x46ece3=_0x433750)['toLocaleDateString'](_0x115077,{'month':'long','day':'numeric'})+',\x20'+_0x46ece3['toLocaleTimeString'](_0x115077,{'hour':'numeric','minute':'numeric'});var _0x115077,_0x46ece3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x4fcfe2,_0x2a4301),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5c89e3=>_0x5c89e3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x6ab8e5,_0x197ef2)=>_0x6ab8e5&&_0x197ef2),this['revisionActionsView']=_0x295f12&&_0x295f12['length']?oi(this,_0x295f12):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x26c7e0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x26c7e0['if']('isEnabled','ck-disabled',_0x2ca4a9=>!_0x2ca4a9),_0x26c7e0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x26c7e0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x26c7e0['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':_0x26c7e0['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':_0x59a315}]},this['revisionActionsView']],'on':{'click':_0x26c7e0['to'](_0x51e4e4=>{_0x51e4e4['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5543ed=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5543ed,'change',()=>{this['_requireRevisionName']&&!_0x5543ed['value']||this['fire']('setName',{'id':this['id'],'name':_0x5543ed['value']}),_0x5543ed['value']||(_0x5543ed['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(_0x5463a9,_0x1bb3ae){const _0x3acece=_0x3f6823['fromJSDate'](_0x5463a9)['setLocale'](_0x1bb3ae),_0x23fbfc=_0x3f6823['local'](),_0x129ec4=_0x23fbfc['minus']({'days':0x1})['startOf']('day');let _0x54959d,_0x40d011;return _0x3acece['hasSame'](_0x23fbfc,'day')?(_0x54959d=_0x3acece['startOf']('day')['toJSDate'](),_0x40d011=_0x3acece['toRelativeCalendar']()):_0x3acece['hasSame'](_0x129ec4,'day')?(_0x54959d=_0x129ec4['toJSDate'](),_0x40d011=_0x3acece['toRelativeCalendar']()):_0x3acece['hasSame'](_0x23fbfc,'week')?(_0x54959d=_0x3acece['startOf']('week')['toJSDate'](),_0x40d011=_0x3acece['weekdayLong']||''):_0x3acece['hasSame'](_0x23fbfc,'year')?(_0x54959d=_0x3acece['startOf']('month')['toJSDate'](),_0x40d011=_0x3acece['monthLong']||''):(_0x54959d=_0x3acece['startOf']('year')['toJSDate'](),_0x40d011=String(_0x3acece['year'])),{'startDate':_0x54959d,'localizedPeriodName':_0x40d011};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33bb4c,_0x1a0950,_0x11234a,_0x4f1964){super(_0x33bb4c);const _0x2833a6=ai(_0x1a0950,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a0950,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x11234a,this['_requireRevisionName']=_0x4f1964,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':_0x2833a6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x57da99){const _0x25dbc2=new hi(this['locale'],_0x57da99,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x25dbc2);}['removeRevision'](_0x21e6e0){const _0x3de098=this['revisionViews']['find'](_0x325700=>_0x325700['id']===_0x21e6e0['id']);this['revisionViews']['remove'](_0x3de098);}}class as extends ts{constructor(_0x3010ca){super(_0x3010ca);const _0x54815b=new _0x1b24f4();_0x54815b['content']=_0x21a65d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x54815b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3010ca,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x52e2dd,_0x34e2df,_0x54faf2,_0x7bcf8a){super(_0x52e2dd);const _0x5bdad0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x34e2df,this['_revisionActions']=_0x54faf2,this['_requireRevisionName']=_0x7bcf8a,this['on']('select',(_0x1df8cf,_0x5c3660)=>{this['fire']('revisionSelected',_0x5c3660);}),this['on']('setName',(_0x59a292,_0xc76023)=>{this['fire']('revisionSetName',_0xc76023);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x52e2dd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5bdad0['if']('isEnabled','ck-disabled',_0x4a151b=>!_0x4a151b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5550e2 of this['_revisions'])this['_addRevision'](_0x5550e2);this['_revisions']['on']('add',(_0x44f413,_0x570793)=>{this['_addRevision'](_0x570793);}),this['_revisions']['on']('remove',(_0x4ecac2,_0x1418e0)=>{this['_removeRevision'](_0x1418e0);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x58c49f=>_0x58c49f['revisionViews']['map'](_0x4b17bd=>_0x4b17bd))['flat']();}['selectRevision'](_0x1b6f5e){for(const _0x442d25 of this['revisionViews'])_0x1b6f5e&&_0x1b6f5e['id']===_0x442d25['id']?_0x442d25['select']():_0x442d25['deselect']();}['highlightRevisions'](_0x497c8d){for(const _0x5b9861 of this['revisionViews'])_0x497c8d['some'](({id:_0x31e13b})=>_0x31e13b===_0x5b9861['id'])?_0x5b9861['highlight']():_0x5b9861['unhighlight']();}['_addRevision'](_0x1a1374){const _0x49d162=ai(_0x1a1374['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3b3a29=this['timePeriodViews']['get'](0x0);_0x3b3a29&&_0x3b3a29['startDate']['getTime']()===_0x49d162['getTime']()||(_0x3b3a29=new di(this['locale'],_0x49d162,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3b3a29)),_0x3b3a29['addRevision'](_0x1a1374);}['_removeRevision'](_0x15a665){const _0x126f44=ai(_0x15a665['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x126f44)['removeRevision'](_0x15a665);}['_getTimePeriodViewByStartDate'](_0x4b660d){return this['timePeriodViews']['find'](_0x1b0dca=>_0x1b0dca['startDate']['getTime']()===_0x4b660d['getTime']());}}class d extends _0x3561a9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1fa184){super(_0x1fa184),this['_revisionViewer']=_0x1fa184['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x49e1b1=this['_revisionsRepository']['_revisions'],_0xddf369=this['_createRevisionActions'](),_0x5aad05=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x49e1b1,_0xddf369,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',(_0x2a22c8,_0x35ed73)=>{_0x35ed73['revisionViews']['on']('add',(_0x4ca203,_0x28ae0b)=>{_0x28ae0b['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)),_0x5aad05['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x40a4bd=this['_revisionsRepository']['getRevision'](0x0);if(_0x40a4bd){const _0xb919f6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40a4bd['id']);this['_revisionViewer']['compare'](_0x40a4bd,_0xb919f6);}}['_handleRevisionSelected'](_0x5df5b3,_0x1897d8){const _0x326c7f=this['_revisionsRepository']['getRevision'](_0x1897d8['id']),_0x36a017=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x326c7f['id']);this['_revisionViewer']['compare'](_0x326c7f,_0x36a017);}['_handleRevisionSetName'](_0x3cbbb0,_0x261bfa){this['_revisionsRepository']['getRevision'](_0x261bfa['id'])['setName'](_0x261bfa['name']);}['_handleDiffChange'](_0x5b1a74,_0x572f8e,_0x4530ef){const _0x5bf772=this['_revisionsRepository']['getRevisionsInDiff'](_0x4530ef);_0x5bf772['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5bf772),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5bf772[0x0]));}['_createRevisionActions'](){const _0x2507c9=this['editor'],_0xf063cc=d['availableRevisionActions'],_0x4d70f3=_0x2507c9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x4d70f3['length'])return _0x4d70f3['map'](_0x5183ce=>{const _0x1af365='string'==typeof _0x5183ce?Object['assign']({},_0xf063cc[_0x5183ce]):_0x5183ce;return _0x1af365['action']=_0x1af365['action']['bind'](this,_0x2507c9),_0x1af365['isVisible']&&(_0x1af365['isVisible']=_0x1af365['isVisible']['bind'](this,_0x2507c9)),_0x1af365;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x158100},_0x3e4e87)=>{const _0x334e11=_0x158100['get'](m),_0x34ceb1=_0x334e11['repository'];let _0x2780aa=_0x334e11['diff']['newRevisionId'],_0x2c9d37=_0x3e4e87['id'];_0x34ceb1['getIndex'](_0x2780aa)>_0x34ceb1['getIndex'](_0x2c9d37)&&([_0x2780aa,_0x2c9d37]=[_0x2c9d37,_0x2780aa]),_0x334e11['compare'](_0x2780aa,_0x2c9d37);},'isVisible':({plugins:_0x558551},_0x3af4df)=>{const _0x1f14d9=_0x558551['get'](m);return!(_0x1f14d9['repository']['getRevisionsInDiff'](_0x1f14d9['diff'])['length']>0x2)&&!_0x3af4df['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4ad02f,{id:_0x4ff320})=>{_0x4ad02f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4ff320);},'isVisible':({plugins:_0x49273d},_0x7ecbde)=>!!_0x49273d['get'](m)['repository']['getLaterVisibleRevision'](_0x7ecbde['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1ba754},{id:_0x54e87d,revisionNameView:_0x4f065f})=>{const _0x1a0ccb=_0x1ba754['get'](m),_0x138e57=_0x1a0ccb['repository']['getEarlierVisibleRevision'](_0x54e87d);_0x1a0ccb['compare'](_0x54e87d,_0x138e57),_0x4f065f['focus'](),_0x4f065f['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4f9c15,_0x5d3cd5){super(_0x4f9c15),this['_view']=_0x5d3cd5,this['_toolbarConfig']=et(_0x4f9c15['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xf5178b){const _0x19ae84=this['editor'],_0x129bdf=this['view'],_0x23839c=_0x19ae84['editing']['view'],_0x10952d=_0x129bdf['editable'],_0x339312=_0x23839c['document']['getRoot']();_0x10952d['name']=_0x339312['rootName'],_0x129bdf['render']();const _0x1f8862=_0x10952d['element'];this['setEditableElement'](_0x10952d['name'],_0x1f8862),_0x129bdf['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x23839c['attachDomRoot'](_0x1f8862),this['_elementReplacer']['replace'](_0xf5178b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x37c0ba=this['view'],_0x41d3eb=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x41d3eb['detachDomRoot'](_0x37c0ba['editable']['name']),_0x37c0ba['destroy']();}['_initToolbar'](){const _0x114c20=this['view'];_0x114c20['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x114c20['stickyPanel']['limiterElement']=_0x114c20['element'],_0x114c20['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3dcb2a})=>_0x3dcb2a),_0x114c20['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x114c20['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3c9558,_0x86d386,_0x49a842={}){super(_0x3c9558),this['stickyPanel']=new ht(_0x3c9558),this['toolbar']=new dt(_0x3c9558,{'shouldGroupWhenFull':_0x49a842['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3c9558,_0x86d386);}['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
- _0x4f1a22(_0x221c46){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4ce76f,_0x30221f){super(_0x30221f),this['sourceElement']=_0x4ce76f,this['model']['document']['createRoot']();const _0x2253fb=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2253fb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x34cda8,_0x54c247){const _0x2e7ce9=new this(_0x34cda8,_0x54c247);return await _0x2e7ce9['initPlugins'](),await _0x2e7ce9['ui']['init'](_0x34cda8),await _0x2e7ce9['data']['init'](_0x2e7ce9['config']['get']('initialData')||''),_0x2e7ce9['fire']('ready'),_0x2e7ce9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x46f453{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eef13){function _0x93541c(_0x34aad3){return _0x34aad3['map'](_0x4443be=>String['fromCharCode'](_0x4443be))['join']('');}super(_0x4eef13),this['result']='end',_0x4eef13[_0x93541c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x93541c([0x76,0x69,0x65,0x77])][_0x93541c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x93541c([0x61,0x75,0x74,0x6f]),_0x4eef13[_0x93541c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x93541c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x93541c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x93541c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x93541c([0x6f,0x6b])});}}class k extends _0x46f453{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4beb61){if(super(_0x4beb61),!this['editor']['config']['get']('revisionHistory'))throw new _0x5d8d22('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1559f0=>this['_showRevisionViewer']({..._0x1559f0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x12c269=>this['_closeRevisionViewer'](_0x12c269)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x45ccdc=>this['_restoreRevision'](_0x45ccdc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e3fc0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e3fc0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xd3cbc2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xd3cbc2);}['getRevision'](_0x4ea81c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ea81c);}['getRevisions'](_0x4c1f46){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c1f46||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x129232=this['editor'],_0x4b4b5a=_0x14e190(_0x129232,p),_0x3eb1c2=_0x129232['plugins']['get']('RevisionTracker'),_0x441ac5=_0x129232['plugins']['get']('Users')['users'];return _0x4b4b5a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4b4b5a['lazyRoots'],(_0x4b4b5a['plugins']['push'](yt,m,R,class extends _0x46f453{static get['requires'](){return[m,'Users'];}['init'](){const _0x34f842=this['editor']['plugins']['get']('Users');for(const _0x306752 of _0x441ac5)_0x306752['isAnonymous']||_0x34f842['getUser'](_0x306752['id'])||_0x34f842['addUser'](_0x306752);const _0x2424d2=_0x3eb1c2['repository']['getRevisions']();let _0x414b3c=null;const _0x3611e3=this['editor']['plugins']['get']('RevisionViewer');_0x3611e3['adapter']=_0x3eb1c2['adapter'],_0x3611e3['bind']('isEnabled')['to'](_0x3eb1c2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x129232,'isReadOnly',_0xca000b=>!_0xca000b);for(const _0x2a150f of _0x2424d2){const _0x3dd8d9=null===_0x2a150f['creator'];if(_0x3dd8d9&&_0x2a150f['toVersion']===_0x2a150f['fromVersion'])continue;const _0x1e7ea6=_0x2a150f['toJSON']();_0x3611e3['addRevisionData'](_0x1e7ea6,(_0x35be7b,_0x2bdd60,_0x53323b)=>{if(_0x3dd8d9){if(_0x414b3c)_0x414b3c['_update'](_0x35be7b,_0x2bdd60);else{if(!_0x2bdd60){const _0x440ad8=_0x53323b['toJSON']();_0x440ad8['id']=_0x40eb95(),_0x3eb1c2['saveRevision'](_0x440ad8,_0x53323b['toVersion'])['then'](_0xa7b045=>{_0x414b3c=_0xa7b045;});}}}else _0x2a150f['_update'](_0x35be7b,_0x2bdd60);});}}},d),_0x4b4b5a);}['_enhanceShowRevisionViewerCallback'](){const _0xe12c3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4e9738=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2861e3=this['editor']['plugins']['get']('Autosave');await _0x2861e3['save']();}else await _0x4e9738['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3d0c55=this['editor']['plugins']['get']('Dialog');_0x3d0c55['isOpen']&&_0x3d0c55['hide']();}const _0x46612a=this['_getRevisionViewerEditorConfig']();return _0xe12c3(_0x46612a)['then'](_0x274245=>{return(this['_viewerEditor']=_0x274245,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'),_0x274245);})['catch'](_0x4f997a=>(console['error'](_0x4f997a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3c947c=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'](),_0x3c947c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x170f4f=this['editor']['plugins']['get']('Annotations');_0x170f4f['refreshVisibility'](),_0x170f4f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5472f8){const _0x55b368=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2f53f9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5df3c3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5df3c3,_0x5472f8)['then'](_0x2f30d2=>(_0x2f53f9['style']['display']='block',_0x55b368['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f30d2));}['_closeRevisionViewer'](_0x52f26b){const _0xa1f0e7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xa1f0e7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x52f26b['destroy']();}async['_restoreRevision'](_0x1f5795){const _0x403d23=this['editor'],_0x26884e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x19f56a=_0x403d23['plugins']['get']('RevisionTracker'),_0x43ee59=_0x403d23['plugins']['get']('RevisionHistoryUtils'),_0x512743=_0x26884e['repository']['getRevision'](_0x1f5795);let _0x347783,_0x781e77,_0x410d95;try{await _0x43ee59['loadRevisionData'](_0x512743,this['adapter']),_0x347783=_0x43ee59['getRevisionDocumentData'](_0x512743),_0x781e77=_0x43ee59['getRevisionRootsAttributes'](_0x512743);}catch(_0x10cc28){return void console['error'](_0x10cc28);}_0x403d23['model']['change'](_0x237722=>{for(const _0x2e47c4 of Array['from'](_0x403d23['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x237722['removeMarker'](_0x2e47c4);}),_0x26884e['isReady']=!0x1,_0x403d23['model']['enqueueChange'](_0x39b7cb=>{_0x39b7cb['setSelection'](null),_0x39b7cb['removeSelectionAttribute'](_0x403d23['model']['document']['selection']['getAttributeKeys']());const _0x186895=Object['keys'](_0x347783);for(const _0x195950 of _0x403d23['model']['document']['roots'])'$graveyard'!=_0x195950['rootName']&&_0x195950['isAttached']()&&!_0x186895['includes'](_0x195950['rootName'])&&_0x39b7cb['detachRoot'](_0x195950);for(const _0x4a2dfc of _0x186895){let _0xf7cc5a=_0x403d23['model']['document']['getRoot'](_0x4a2dfc);_0xf7cc5a&&_0xf7cc5a['isAttached']()||(_0xf7cc5a=_0x39b7cb['addRoot'](_0x4a2dfc));const _0x589393=_0x781e77[_0x4a2dfc],_0x372823=Object['keys'](_0x589393),_0x551c75=_0x347783[_0x4a2dfc];for(const _0x537d85 of _0xf7cc5a['getAttributeKeys']())_0x372823['includes'](_0x537d85)||_0x39b7cb['removeAttribute'](_0x537d85,_0xf7cc5a);for(const _0x17d3e3 of _0x372823)_0x39b7cb['setAttribute'](_0x17d3e3,_0x781e77[_0x4a2dfc][_0x17d3e3],_0xf7cc5a);_0x39b7cb['remove'](_0x39b7cb['createRangeIn'](_0xf7cc5a)),_0x39b7cb['insert'](_0x403d23['data']['parse'](_0x551c75,_0xf7cc5a),_0xf7cc5a,0x0);}});const _0x1c278b=g(_0x403d23['locale'],'Restored');if(_0x512743['name'])_0x410d95=-0x1==_0x512743['name']['indexOf'](_0x1c278b)?_0x1c278b+':\x20'+_0x512743['name']:_0x512743['name'];else _0x410d95=_0x1c278b+':\x20'+(_0x512743['createdAt']['toLocaleDateString'](_0x403d23['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x512743['createdAt']['toLocaleTimeString'](_0x403d23['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x19f56a['saveRevision']({'name':_0x410d95}),_0x26884e['isReady']=!0x0,_0x403d23['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x332c7){super(_0x332c7),this['_revisionViewer']=_0x332c7['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4326e8=this['_revisionsRepository']['_revisions'],_0x371b2c=this['_createRevisionActions'](),_0x515bff=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4326e8,_0x371b2c,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',(_0x27f874,_0x550868)=>{_0x550868['revisionViews']['on']('add',(_0x4274bd,_0x4e6fa3)=>{_0x4e6fa3['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)),_0x515bff['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x145c0a=this['_revisionsRepository']['getRevision'](0x0);if(_0x145c0a){const _0x17fae6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x145c0a['id']);this['_revisionViewer']['compare'](_0x145c0a,_0x17fae6);}}['_handleRevisionSelected'](_0x52226d,_0x5b9597){const _0x5e5c2a=this['_revisionsRepository']['getRevision'](_0x5b9597['id']),_0x1082f3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5e5c2a['id']);this['_revisionViewer']['compare'](_0x5e5c2a,_0x1082f3);}['_handleRevisionSetName'](_0x4d6f2e,_0x47b863){this['_revisionsRepository']['getRevision'](_0x47b863['id'])['setName'](_0x47b863['name']);}['_handleDiffChange'](_0x32bf80,_0x674fba,_0x285909){const _0x4551a0=this['_revisionsRepository']['getRevisionsInDiff'](_0x285909);_0x4551a0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4551a0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4551a0[0x0]));}['_createRevisionActions'](){const _0x3cbcba=this['editor'],_0x425a28=d['availableRevisionActions'],_0x584ff7=_0x3cbcba['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x584ff7['length'])return _0x584ff7['map'](_0x2fdd6c=>{const _0x556a83='string'==typeof _0x2fdd6c?Object['assign']({},_0x425a28[_0x2fdd6c]):_0x2fdd6c;return _0x556a83['action']=_0x556a83['action']['bind'](this,_0x3cbcba),_0x556a83['isVisible']&&(_0x556a83['isVisible']=_0x556a83['isVisible']['bind'](this,_0x3cbcba)),_0x556a83;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x109697},_0x60728e)=>{const _0x6932e9=_0x109697['get'](m),_0x230051=_0x6932e9['repository'];let _0x1644d5=_0x6932e9['diff']['newRevisionId'],_0x6163e8=_0x60728e['id'];_0x230051['getIndex'](_0x1644d5)>_0x230051['getIndex'](_0x6163e8)&&([_0x1644d5,_0x6163e8]=[_0x6163e8,_0x1644d5]),_0x6932e9['compare'](_0x1644d5,_0x6163e8);},'isVisible':({plugins:_0x31d8ba},_0x2a4749)=>{const _0x36341b=_0x31d8ba['get'](m);return!(_0x36341b['repository']['getRevisionsInDiff'](_0x36341b['diff'])['length']>0x2)&&!_0x2a4749['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x67301b,{id:_0x507167})=>{_0x67301b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x507167);},'isVisible':({plugins:_0x1ba0a5},_0x94a8cb)=>!!_0x1ba0a5['get'](m)['repository']['getLaterVisibleRevision'](_0x94a8cb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c864f},{id:_0x46e617,revisionNameView:_0x47d690})=>{const _0x3380a2=_0x5c864f['get'](m),_0x55484f=_0x3380a2['repository']['getEarlierVisibleRevision'](_0x46e617);_0x3380a2['compare'](_0x46e617,_0x55484f),_0x47d690['focus'](),_0x47d690['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x35773b,_0x2949fd){super(_0x35773b),this['_view']=_0x2949fd,this['_toolbarConfig']=et(_0x35773b['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x315072){const _0x2e300e=this['editor'],_0xc41a07=this['view'],_0x115d67=_0x2e300e['editing']['view'],_0x2baa5c=_0xc41a07['editable'],_0x1e7d65=_0x115d67['document']['getRoot']();_0x2baa5c['name']=_0x1e7d65['rootName'],_0xc41a07['render']();const _0x43ee08=_0x2baa5c['element'];this['setEditableElement'](_0x2baa5c['name'],_0x43ee08),_0xc41a07['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x115d67['attachDomRoot'](_0x43ee08),this['_elementReplacer']['replace'](_0x315072,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5927ae=this['view'],_0xebac91=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xebac91['detachDomRoot'](_0x5927ae['editable']['name']),_0x5927ae['destroy']();}['_initToolbar'](){const _0x5ab86e=this['view'];_0x5ab86e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5ab86e['stickyPanel']['limiterElement']=_0x5ab86e['element'],_0x5ab86e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1d214b})=>_0x1d214b),_0x5ab86e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5ab86e['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x513601,_0x192569,_0x31d608={}){super(_0x513601),this['stickyPanel']=new ht(_0x513601),this['toolbar']=new dt(_0x513601,{'shouldGroupWhenFull':_0x31d608['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x513601,_0x192569);}['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
+ _0x54e498(_0x3de20e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x31115b,_0x306df9){super(_0x306df9),this['sourceElement']=_0x31115b,this['model']['document']['createRoot']();const _0x3ba89d=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3ba89d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x553fe9,_0x575f13){const _0x4ed758=new this(_0x553fe9,_0x575f13);return await _0x4ed758['initPlugins'](),await _0x4ed758['ui']['init'](_0x553fe9),await _0x4ed758['data']['init'](_0x4ed758['config']['get']('initialData')||''),_0x4ed758['fire']('ready'),_0x4ed758;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x3561a9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53754e){function _0x35a736(_0xf17e70){return _0xf17e70['map'](_0x121a4d=>String['fromCharCode'](_0x121a4d))['join']('');}super(_0x53754e),this['result']='end',_0x53754e[_0x35a736([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35a736([0x76,0x69,0x65,0x77])][_0x35a736([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35a736([0x61,0x75,0x74,0x6f]),_0x53754e[_0x35a736([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x35a736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35a736([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x35a736([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x35a736([0x6f,0x6b])});}}class k extends _0x3561a9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x38f98a){if(super(_0x38f98a),!this['editor']['config']['get']('revisionHistory'))throw new _0x42c7fc('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14cda2=>this['_showRevisionViewer']({..._0x14cda2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x53a3d7=>this['_closeRevisionViewer'](_0x53a3d7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x20820d=>this['_restoreRevision'](_0x20820d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39d8e0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39d8e0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x547e68){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x547e68);}['getRevision'](_0x3e6b80){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3e6b80);}['getRevisions'](_0x281276){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x281276||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xba7c84=this['editor'],_0x664159=_0x5ce59e(_0xba7c84,p),_0x2c5227=_0xba7c84['plugins']['get']('RevisionTracker'),_0x227df5=_0xba7c84['plugins']['get']('Users')['users'];return _0x664159['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x664159['lazyRoots'],(_0x664159['plugins']['push'](_t,m,R,class extends _0x3561a9{static get['requires'](){return[m,'Users'];}['init'](){const _0x3cff69=this['editor']['plugins']['get']('Users');for(const _0x51c7e4 of _0x227df5)_0x51c7e4['isAnonymous']||_0x3cff69['getUser'](_0x51c7e4['id'])||_0x3cff69['addUser'](_0x51c7e4);const _0x38db1a=_0x2c5227['repository']['getRevisions']();let _0x32f681=null;const _0x57ec3e=this['editor']['plugins']['get']('RevisionViewer');_0x57ec3e['adapter']=_0x2c5227['adapter'],_0x57ec3e['bind']('isEnabled')['to'](_0x2c5227),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xba7c84,'isReadOnly',_0xae4655=>!_0xae4655);for(const _0x2295eb of _0x38db1a){const _0x354656=null===_0x2295eb['creator'];if(_0x354656&&_0x2295eb['toVersion']===_0x2295eb['fromVersion'])continue;const _0xe4b7d7=_0x2295eb['toJSON']();_0x57ec3e['addRevisionData'](_0xe4b7d7,(_0x5664d5,_0x331e07,_0x49eb94)=>{if(_0x354656){if(_0x32f681)_0x32f681['_update'](_0x5664d5,_0x331e07);else{if(!_0x331e07){const _0x1bef14=_0x49eb94['toJSON']();_0x1bef14['id']=_0x46e088(),_0x2c5227['saveRevision'](_0x1bef14,_0x49eb94['toVersion'])['then'](_0x19673c=>{_0x32f681=_0x19673c;});}}}else _0x2295eb['_update'](_0x5664d5,_0x331e07);});}}},d),_0x664159);}['_enhanceShowRevisionViewerCallback'](){const _0x58d234=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2bba4e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x21ad46=this['editor']['plugins']['get']('Autosave');await _0x21ad46['save']();}else await _0x2bba4e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x51a61f=this['editor']['plugins']['get']('Dialog');_0x51a61f['isOpen']&&_0x51a61f['hide']();}const _0x31a6ce=this['_getRevisionViewerEditorConfig']();return _0x58d234(_0x31a6ce)['then'](_0x1ac421=>{return(this['_viewerEditor']=_0x1ac421,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'),_0x1ac421);})['catch'](_0x1224d3=>(console['error'](_0x1224d3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3a4c9e=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'](),_0x3a4c9e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1d72de=this['editor']['plugins']['get']('Annotations');_0x1d72de['refreshVisibility'](),_0x1d72de['refreshPositioning']();}})));}['_showRevisionViewer'](_0xccc010){const _0x16a204=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d5e0a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x154135=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x154135,_0xccc010)['then'](_0x45ef13=>(_0x4d5e0a['style']['display']='block',_0x16a204['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x45ef13));}['_closeRevisionViewer'](_0x7219d2){const _0x35f08f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x35f08f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x7219d2['destroy']();}async['_restoreRevision'](_0x266dde){const _0x91e34e=this['editor'],_0x255354=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x327946=_0x91e34e['plugins']['get']('RevisionTracker'),_0xe5bc77=_0x91e34e['plugins']['get']('RevisionHistoryUtils'),_0xcedab3=_0x255354['repository']['getRevision'](_0x266dde);let _0x520542,_0x88bc04,_0x5ad3f2;try{await _0xe5bc77['loadRevisionData'](_0xcedab3,this['adapter']),_0x520542=_0xe5bc77['getRevisionDocumentData'](_0xcedab3),_0x88bc04=_0xe5bc77['getRevisionRootsAttributes'](_0xcedab3);}catch(_0x5d537b){return void console['error'](_0x5d537b);}_0x91e34e['model']['change'](_0xc88971=>{for(const _0x5c73b4 of Array['from'](_0x91e34e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xc88971['removeMarker'](_0x5c73b4);}),_0x255354['isReady']=!0x1,_0x91e34e['model']['enqueueChange'](_0x24517f=>{_0x24517f['setSelection'](null),_0x24517f['removeSelectionAttribute'](_0x91e34e['model']['document']['selection']['getAttributeKeys']());const _0x5a5905=Object['keys'](_0x520542);for(const _0xd9795f of _0x91e34e['model']['document']['roots'])'$graveyard'!=_0xd9795f['rootName']&&_0xd9795f['isAttached']()&&!_0x5a5905['includes'](_0xd9795f['rootName'])&&_0x24517f['detachRoot'](_0xd9795f);for(const _0x2b9e09 of _0x5a5905){let _0x5c30df=_0x91e34e['model']['document']['getRoot'](_0x2b9e09);_0x5c30df&&_0x5c30df['isAttached']()||(_0x5c30df=_0x24517f['addRoot'](_0x2b9e09));const _0x4e460e=_0x88bc04[_0x2b9e09],_0x303bf8=Object['keys'](_0x4e460e),_0x241c99=_0x520542[_0x2b9e09];for(const _0x5c4247 of _0x5c30df['getAttributeKeys']())_0x303bf8['includes'](_0x5c4247)||_0x24517f['removeAttribute'](_0x5c4247,_0x5c30df);for(const _0x1bb546 of _0x303bf8)_0x24517f['setAttribute'](_0x1bb546,_0x88bc04[_0x2b9e09][_0x1bb546],_0x5c30df);_0x24517f['remove'](_0x24517f['createRangeIn'](_0x5c30df)),_0x24517f['insert'](_0x91e34e['data']['parse'](_0x241c99,_0x5c30df),_0x5c30df,0x0);}});const _0x1741a2=g(_0x91e34e['locale'],'Restored');if(_0xcedab3['name'])_0x5ad3f2=-0x1==_0xcedab3['name']['indexOf'](_0x1741a2)?_0x1741a2+':\x20'+_0xcedab3['name']:_0xcedab3['name'];else _0x5ad3f2=_0x1741a2+':\x20'+(_0xcedab3['createdAt']['toLocaleDateString'](_0x91e34e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xcedab3['createdAt']['toLocaleTimeString'](_0x91e34e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x327946['saveRevision']({'name':_0x5ad3f2}),_0x255354['isReady']=!0x0,_0x91e34e['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};