@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250426.0 → 0.0.0-nightly-20250428.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 _0x3787d,uid as _0x2c0587,Collection as _0x18d259,logWarning as _0x5ca299,FocusTracker as _0x2898dd,KeystrokeHandler as _0x1a390b,scrollViewportToShowTarget as _0x39a608,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x55c2a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x45cab9,set as _0x5e9a30,unset as _0x383a2e,isEqual as _0x46a018}from'es-toolkit/compat';import{Plugin as _0x59ac4e,PendingActions as _0x3240a8,Command as _0x594d33,ElementApiMixin as _0x138b7b,Editor as _0x1fc663}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x513552,getMarkerDomElement as _0x504600,ConfirmMixin as ti,sanitizeEditorConfig as _0x389b08}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x20313f,ViewAttributeElement as _0xe57921,ViewEmptyElement as _0x3b3679,ViewRawElement as _0x15e205,ViewUIElement as _0x20a68e,ViewDocumentFragment as _0x584496,ViewText as _0x235ebc,ViewElement as _0x1f7f8f,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 _0x3a8444,IconChevronUp as _0x23ce80,IconChevronDown as _0x15754f,IconUndo as _0x314236,IconUser as _0xb2492c,IconThreeVerticalDots as _0x4cc44b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xced402,submitHandler as _0x1ba247,LabeledFieldView as _0x38e6de,createLabeledInputText as _0x1e4d55,createDropdown as _0xd7ef31,ListView as _0x2f2fec,ListItemView as _0x1dbec9,ButtonView as te,MenuBarMenuView as _0x1fa441,MenuBarMenuListView as _0x68c44a,MenuBarMenuListItemView as _0x3faf0a,MenuBarMenuListItemButtonView as _0x29944e,ContextualBalloon as _0x2ba9a1,ToolbarSeparatorView as _0x3d06e5,IconView as _0x266c4f,addListToDropdown as _0x3d1927,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 _0x27ef4e}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x3787d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e20bf){super(),this['id']=_0x2e20bf['id']||_0x2c0587(),this['creator']=_0x2e20bf['creator']||null,this['authors']=_0x2e20bf['authors']||[],this['diffData']=_0x2e20bf['diffData']||null,this['toVersion']=_0x2e20bf['toVersion']||0x0,this['fromVersion']=_0x2e20bf['fromVersion']||0x0,this['set']('name',_0x2e20bf['name']||''),this['set']('createdAt',_0x2e20bf['createdAt']||new Date()),this['set']('attributes',_0x2e20bf['attributes']||{});}['setName'](_0x2ec64d){this['_update']({'name':_0x2ec64d});}['setAttribute'](_0x3ac0f0,_0x190a3c){const _0x29d941=_0x45cab9(this['attributes']);_0x5e9a30(_0x29d941,_0x3ac0f0,_0x190a3c),this['_update']({'attributes':_0x29d941});}['removeAttribute'](_0x2f81b2){const _0x5845f6=_0x45cab9(this['attributes']);_0x383a2e(_0x5845f6,_0x2f81b2),this['_update']({'attributes':_0x5845f6});}['_update'](_0x57dcbe,_0x37325b=!0x1){let _0x294aba=!0x1;const _0x521d4e={'id':this['id']},_0x3fa6dc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x46acd3 of _0x3fa6dc){const _0x54a2a2=_0x57dcbe[_0x46acd3];void 0x0!==_0x54a2a2&&_0x54a2a2!==this[_0x46acd3]&&(this[_0x46acd3]=_0x54a2a2,_0x521d4e[_0x46acd3]=_0x54a2a2,_0x294aba=!0x0);}_0x294aba&&(_0x521d4e['authors']&&(_0x521d4e['authorsIds']=_0x521d4e['authors']['map'](_0x5c8080=>_0x5c8080['id']),delete _0x521d4e['authors']),this['fire']('_update',_0x521d4e,_0x37325b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x42fe38=>_0x42fe38['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x59ac4e{['_revisions'];static get['requires'](){return[_0x513552];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x63e003){super(_0x63e003),this['_revisions']=new _0x18d259();}['afterInit'](){!async function(_0x11daed){const _0x14bfe9=_0x5a40c3([0x74,0x30,0x68,0x32,0x6b,0x46,0x56,0x43,0x35,0x63,0x67,0x47,0x65,0x36,0x57,0x75,0x6f,0x66,0x72,0x77,0x4a,0x38,0x61,0x6c,0x52,0x6a,0x73,0x45,0x51,0x39,0x53,0x34,0x59,0x4b,0x78,0x49,0x71,0x70,0x58,0x55,0x4d,0x4c,0x44,0x7a,0x50,0x62,0x6e,0x4f,0x31,0x76,0x48,0x79,0x69,0x42,0x64,0x54,0x4e,0x37,0x41,0x6d,0x33,0x5a]),_0x1a6d14=0xeb829,_0x700eb0=0x2e26ea4c,_0x4c6473=0x2e218c6c^_0x700eb0,_0x4eeb3a=window[_0x5a40c3([0x44,0x61,0x74,0x65])][_0x5a40c3([0x6e,0x6f,0x77])](),_0x1d4318=_0x11daed[_0x5a40c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e41cf=new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c3ed=>{_0x1d4318[_0x5a40c3([0x6f,0x6e,0x63,0x65])](_0x5a40c3([0x72,0x65,0x61,0x64,0x79]),_0x44c3ed);}),_0x525834={[_0x5a40c3([0x6b,0x74,0x79])]:_0x5a40c3([0x45,0x43]),[_0x5a40c3([0x75,0x73,0x65])]:_0x5a40c3([0x73,0x69,0x67]),[_0x5a40c3([0x63,0x72,0x76])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36]),[_0x5a40c3([0x78])]:_0x5a40c3([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]),[_0x5a40c3([0x79])]:_0x5a40c3([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]),[_0x5a40c3([0x61,0x6c,0x67])]:_0x5a40c3([0x45,0x53,0x32,0x35,0x36])},_0x48d95b=_0x1d4318[_0x5a40c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a40c3([0x67,0x65,0x74])](_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2ebb(){let _0x4e5bef,_0x4377e1=null,_0x4c9f2b=null;try{if(_0x48d95b==_0x5a40c3([0x47,0x50,0x4c]))return _0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e5bef=_0x3af019(),!_0x4e5bef)return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9f2b=_0x26cbcf(_0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e5bef[_0x5a40c3([0x6a,0x74,0x69])])),await _0x295017()?_0x5ce939()?_0x571fca()?_0x5a40c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6a38()?(_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28f844()):_0x5a40c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x23ba50){return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x571fca(){const _0x46428c=[_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])][_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eeb3a/0x3e8:0xe10*_0x4c6473;return _0x4e5bef[_0x5a40c3([0x65,0x78,0x70])]<_0x46428c;}function _0x5ce939(){const _0x3ec8ce=_0x4e5bef[_0x5a40c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ec8ce)return!0x1;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x48])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x52,0x48]))){if(_0x21f432())return!0x0;if(_0x2dc49e()||_0x9b6099())return!0x0;}return!0x1;}function _0x1c6a38(){const _0x453b40=_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453b40||0x0==_0x453b40[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca2f6}=new URL(window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x453b40[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca2f6))return!0x0;const _0x1e5be4=_0x3ca2f6[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));return _0x453b40[_0x5a40c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c0546=>_0x1c0546[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))[_0x5a40c3([0x6d,0x61,0x70])](_0x41180c=>_0x41180c[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])))[_0x5a40c3([0x73,0x6f,0x6d,0x65])](_0x49390e=>_0x1e5be4[_0x5a40c3([0x65,0x76,0x65,0x72,0x79])]((_0x5bf6b2,_0x4266c6)=>_0x49390e[_0x4266c6]===_0x5bf6b2||_0x49390e[_0x4266c6]===_0x5a40c3([0x2a])));}function _0x28f844(){return _0x4377e1&&_0x4c9f2b?new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x480506,_0x28b1f9)=>{_0x4377e1[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x480506,_0x28b1f9),_0x4c9f2b[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x2e76c6=>{_0x2e76c6!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x480506(_0x2e76c6);},_0x28b1f9);}):_0x4377e1||_0x4c9f2b||_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26cbcf(_0x6a3639,_0x169251){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51ff2f=>{if(_0x54d9e3())return _0x51ff2f(_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]));_0x37b530(),_0x1d4318[_0x5a40c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x472f09=!0x1;const _0x16b946=_0x2c0587();function _0x59caf0(_0x4ab85c){return!!_0x4ab85c&&(typeof _0x4ab85c===_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ab85c===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ab85c[_0x5a40c3([0x74,0x68,0x65,0x6e])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ab85c[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9a15(_0x30d40b){_0x114209(_0x30d40b)[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x1efdc3=>{if(!_0x1efdc3||_0x1efdc3[_0x5a40c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a40c3([0x6f,0x6b]))return _0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1813f1(_0x25d60e(_0x16b946+_0x169251))!=_0x1efdc3[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x339576=>(_0x5908d7(),_0x339576),()=>{const _0x195ec1=_0x271c34();return null==_0x195ec1?(_0x5908d7(),_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])):_0x5a40c3(_0x4eeb3a-_0x195ec1>(0xa2a6e4c^_0x700eb0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x51ff2f)[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7e45ad=0x2e1004cc^_0x700eb0;function _0x5908d7(){const _0x2c63cd=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x36ee26=_0x69073a(_0x1813f1(window[_0x5a40c3([0x4d,0x61,0x74,0x68])][_0x5a40c3([0x63,0x65,0x69,0x6c])](_0x4eeb3a/_0x7e45ad)));window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c63cd,_0x36ee26);}function _0x271c34(){const _0x3484c1=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x56f10a=window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3484c1);return _0x56f10a?window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69073a(_0x56f10a),0x10)*_0x7e45ad:null;}function _0x114209(_0x57cc37){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32d812,_0x14ed14)=>{_0x57cc37[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x32d812,_0x14ed14),window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14ed14,0x2e273e8c^_0x700eb0);});}}_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ea48e,_0x2db054)=>{if(_0x2db054[0x0]!=_0x6a3639)return _0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2db054[0x1]={..._0x2db054[0x1],[_0x5a40c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16b946};},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x68,0x69,0x67,0x68])}),_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2717ac=>{_0x59caf0(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x472f09=!0x0,_0x3c9a15(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x6c,0x6f,0x77])}),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>{_0x472f09||_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54d9e3(){return _0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a40c3([0x61,0x75,0x74,0x6f]);}function _0x37b530(){_0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a40c3([0x61,0x75,0x74,0x6f]);}}function _0xaab836(_0x32ae63){const _0x3cde21=[new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59aae8=>setTimeout(_0x59aae8,0x2e2fd480^_0x700eb0)),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b32ac=>{const _0x2d925e=0x2e26ea4b^_0x700eb0,_0x53c04c=_0x11daed[_0x5a40c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34a2f9(){_0x53c04c[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d925e&&_0x3b32ac();}_0x34a2f9(),_0x53c04c[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x61,0x64,0x64]),_0x34a2f9);})),new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d693=>{function _0x5dccef(){for(const _0x8509dc in window)if(window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8509dc))&&window[_0x8509dc]==_0x1a6d14)return _0x26d693();_0x1d4318[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]!=_0x5a40c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dccef,0x2e26f9c4^_0x700eb0);}_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dccef();})];return window[_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a40c3([0x72,0x61,0x63,0x65])](_0x3cde21)[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>_0x32ae63);}async function _0x5e2ec8(){if(await _0x3e41cf,_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1d7739=_0x11daed[_0x5a40c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x37577f=_0x11daed[_0x5a40c3([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])](_0x1d7739[_0x5a40c3([0x69,0x64])]),_0x348fb8=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d7739['id'],_0x37577f?_0x37577f['id']:null,!0x0),_0x348fb8[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x348fb8[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a0127,void(_0x348fb8[_0x5a40c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a0127);}if(_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28ef4a=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28ef4a[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28ef4a[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28ef4a[_0x5a40c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a0127,_0x28ef4a[_0x5a40c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a0127;}_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f432(){return _0x2d9d89(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x468fa5(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]==_0x5a40c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2dc49e(){return _0x2d9d89(_0x5a40c3([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 _0x9b6099(){return _0x2d9d89(_0x5a40c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb14(_0x48068e){const _0xfa5f73=_0xf6259c();_0x1d4318[_0xfa5f73]=_0x5a40c3([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])+_0x48068e,_0x48068e[_0x5a40c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf6259c()]=_0x1a6d14),_0x48068e!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x5e2ec8();}function _0xf6259c(){const _0x1ee750=window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a40c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a40c3([0x6e,0x6f,0x77])]())[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a40c3([0x2e]),'');let _0x30aed2=_0x5a40c3([0x74]);for(let _0x16c495=0x0;_0x16c495<_0x1ee750[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16c495+=0x2){let _0x213397=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee750[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16c495,_0x16c495+0x2));_0x213397>=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x213397-=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30aed2+=_0x14bfe9[_0x213397];}return _0x30aed2;}function _0x3af019(){const _0x35f02e=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));if(0x3!=_0x35f02e[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30d4c1(_0x35f02e[0x1]);function _0x30d4c1(_0x21b36e){const _0x13f3a4=_0x56bc21(_0x21b36e);return _0x13f3a4&&_0x3e55d3()?_0x13f3a4:null;function _0x3e55d3(){const _0x277710=_0x13f3a4[_0x5a40c3([0x6a,0x74,0x69])],_0xfe2487=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44aafe={..._0x13f3a4,[_0x5a40c3([0x6a,0x74,0x69])]:_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44aafe[_0x5a40c3([0x76,0x63])],_0x25d60e(_0x44aafe)==_0xfe2487;}}}async function _0x295017(){let _0x73670f=!0x0;try{const _0xd0d0c2=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])),[_0x478bef,_0x4ccb1f,_0x61f1e0]=_0xd0d0c2;return _0x208a95(_0x478bef),await _0x38a7a3(_0x478bef,_0x4ccb1f,_0x61f1e0),_0x73670f;}catch(_0x2f1f0d){return!0x1;}function _0x208a95(_0x52a09f){const _0x1d52de=_0x56bc21(_0x52a09f);_0x1d52de&&_0x1d52de[_0x5a40c3([0x61,0x6c,0x67])]==_0x5a40c3([0x45,0x53,0x32,0x35,0x36])||(_0x73670f=!0x1);}async function _0x38a7a3(_0x2066b4,_0x42424a,_0x27921a){const _0x6b59dc=window[_0x5a40c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a40c3([0x66,0x72,0x6f,0x6d])](_0x2f27c7(_0x27921a),_0x9710b=>_0x9710b[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ef8fc=new window[(_0x5a40c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a40c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2066b4+_0x5a40c3([0x2e])+_0x42424a),_0x5e401a=window[_0x5a40c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a40c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e401a)return;const _0x23e4a7=await _0x5e401a[_0x5a40c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a40c3([0x6a,0x77,0x6b]),_0x525834,{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e401a[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x68,0x61,0x73,0x68])]:{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23e4a7,_0x6b59dc,_0x4ef8fc)||(_0x73670f=!0x1);}}function _0x56bc21(_0x416d8f){return _0x416d8f[_0x5a40c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x65,0x79]))?JSON[_0x5a40c3([0x70,0x61,0x72,0x73,0x65])](_0x2f27c7(_0x416d8f)):null;}function _0x2f27c7(_0x8141f0){return window[_0x5a40c3([0x61,0x74,0x6f,0x62])](_0x8141f0[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a40c3([0x2b]))[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a40c3([0x2f])));}function _0x25d60e(_0x5e0332){let _0x164a8e=0x1505;function _0x1c5b6d(_0x180068){for(let _0x42a599=0x0;_0x42a599<_0x180068[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a599++){const _0x15de4a=_0x180068[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a599);_0x164a8e=(_0x164a8e<<0x5)+_0x164a8e+_0x15de4a,_0x164a8e&=_0x164a8e;}}function _0x12070d(_0x483e60){Array[_0x5a40c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x483e60)?_0x483e60[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12070d):_0x483e60&&typeof _0x483e60==_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a40c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x483e60)[_0x5a40c3([0x73,0x6f,0x72,0x74])]()[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6ad913,_0x3883e0])=>{_0x1c5b6d(_0x6ad913),_0x12070d(_0x3883e0);}):_0x1c5b6d(window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x483e60));}return _0x12070d(_0x5e0332),_0x164a8e>>>0x0;}function _0x1813f1(_0x4e18e7){return _0x4e18e7[_0x5a40c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a40c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a40c3([0x30]));}function _0x69073a(_0x4fcbe9){return _0x4fcbe9[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a40c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a40c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d9d89(_0x3d90e7){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x68,0x61,0x73])](_0x3d90e7);}function _0x468fa5(_0x3f9991){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x67,0x65,0x74])](_0x3f9991);}function _0x5a0127(){}function _0x5a40c3(_0x1a1089){return _0x1a1089['map'](_0x88e028=>String['fromCharCode'](_0x88e028))['join']('');}_0x53eb14(await _0x1c2ebb());}(this);}['createRevision'](_0x1a94b3){const _0x196bf3=this['editor']['plugins']['get']('Users');return new h({'id':_0x1a94b3['id'],'name':_0x1a94b3['name'],'creator':_0x1a94b3['creatorId']?_0x196bf3['getUser'](_0x1a94b3['creatorId']):null,'diffData':_0x1a94b3['diffData']||_0x1a94b3['data'],'authors':_0x1a94b3['authorsIds']['map'](_0x109830=>_0x196bf3['getUser'](_0x109830)),'createdAt':new Date(_0x1a94b3['createdAt']),'attributes':_0x1a94b3['attributes'],'fromVersion':_0x1a94b3['fromVersion'],'toVersion':_0x1a94b3['toVersion']});}['addRevision'](_0x4adcab,_0x2de802=0x0){this['_revisions']['add'](_0x4adcab,_0x2de802);}['getRevision'](_0x44cbbd){return this['_revisions']['get'](_0x44cbbd);}['getRevisions'](_0x3fb0f7={'toJSON':!0x1}){const _0x2a1bb6=Array['from'](this['_revisions']);return _0x2a1bb6['reverse'](),_0x3fb0f7['toJSON']?_0x2a1bb6['map'](_0x448f2b=>_0x448f2b['toJSON']()):_0x2a1bb6;}['getIndex'](_0x328509){return this['_revisions']['getIndex'](_0x328509);}['getEarlierVisibleRevision'](_0xfe1e89){const [,_0xead765]=this['getRevisionsIterator'](_0xfe1e89,{'direction':'earlier'});return _0xead765;}['getLaterVisibleRevision'](_0x4fc04a){const [,_0x12b270]=this['getRevisionsIterator'](_0x4fc04a,{'direction':'later'});return _0x12b270;}['getRevisionsInDiff'](_0x19ae5a){const _0x37a4f3=[];for(const _0x467227 of this['getRevisionsIterator'](_0x19ae5a['newRevisionId']))if(_0x37a4f3['push'](_0x467227),_0x467227['id']===_0x19ae5a['oldRevisionId'])break;return _0x37a4f3;}*['getRevisionsIterator'](_0x3c0bb7,{direction:_0x4c4626='earlier',filter:_0xfad7b8=()=>!0x0}={}){const _0x9ddf62='earlier'===_0x4c4626?0x1:-0x1;let _0x50cc6b=this['_revisions']['get'](_0x3c0bb7),_0x370a02=this['getIndex'](_0x50cc6b);for(yield _0x50cc6b;_0x50cc6b;){if(_0x370a02+=_0x9ddf62,_0x50cc6b=this['getRevision'](_0x370a02),!_0x50cc6b)return;_0xfad7b8(_0x50cc6b)&&(yield _0x50cc6b);}}}class V extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x20313f,'c'],[_0xe57921,'a'],[_0x3b3679,'e'],[_0x15e205,'r'],[_0x20a68e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x20313f],['a',_0xe57921],['e',_0x3b3679],['r',_0x15e205],['u',_0x20a68e]]);async['loadRevisionData'](_0x3afcf1,_0x285c0f){if(_0x3afcf1['diffData']||!_0x285c0f)return;const _0x15733a=this['editor']['config']['get']('collaboration.channelId'),_0x345a06=await _0x285c0f['getRevision']({'channelId':_0x15733a,'revisionId':_0x3afcf1['id']});_0x3afcf1['diffData']=_0x345a06['diffData'];}['getRevisionDocumentData'](_0x33396d){const _0x1c8e85={};for(const _0x1d438d in _0x33396d['diffData']){if(_0x33396d['diffData'][_0x1d438d]['attachChange']&&!_0x33396d['diffData'][_0x1d438d]['attachChange']['isAttached'])continue;const _0x36c1f8=this['_removeRevisionMarkers'](JSON['parse'](_0x33396d['diffData'][_0x1d438d]['insertions'])),_0x567f5c=this['editor']['editing']['view']['document'],_0x16e9f3=new _0x584496(_0x567f5c,_0x36c1f8['map'](_0x5df24c=>this['_getViewFromDiffObj'](_0x5df24c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c8e85[_0x1d438d]=this['editor']['data']['processor']['toData'](_0x16e9f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c8e85;}['getRevisionRootsAttributes'](_0x5bb236){const _0x179ac0={};for(const _0xc0ba90 in _0x5bb236['diffData'])_0x5bb236['diffData'][_0xc0ba90]['attachChange']&&!_0x5bb236['diffData'][_0xc0ba90]['attachChange']['isAttached']||(_0x179ac0[_0xc0ba90]=_0x5bb236['diffData'][_0xc0ba90]['attributesAfter']||{});return _0x179ac0;}['_getTypeCharForViewElement'](_0x166eca){return this['_viewClassToTypeChar']['get'](_0x166eca['constructor']);}['_getViewFromDiffObj'](_0x27632c,_0x2f357c){const _0x32d500=this['editor']['editing']['view']['document'];if('string'==typeof _0x27632c)return new _0x235ebc(_0x32d500,_0x27632c);{let _0x54aead,_0x134d57;_0x134d57='u'==_0x27632c['type']||'r'==_0x27632c['type']?[]:_0x27632c['children']['map'](_0x512af5=>this['_getViewFromDiffObj'](_0x512af5,_0x2f357c));const _0x14dde2=this['_typeCharToViewClass']['get'](_0x27632c['type'])||_0x1f7f8f,_0x5b47bc=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54aead=new _0x14dde2(_0x32d500,_0x27632c['name'],_0x27632c['attributes'],_0x134d57),'u'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x21fc75=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2934da){const _0x340990=_0x2934da['createElement']('div');return _0x340990['innerHTML']=_0x21fc75,_0x340990['childNodes'][0x0];},_0x2f357c){const _0x3482a5=new _0x584496(_0x32d500);_0x3482a5['_appendChild'](_0x54aead);const _0x213bff=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x3482a5,{'bind':!0x1})),_0x31dc33=_0x5b47bc['domDocument']['createElement']('div');_0x31dc33['append'](..._0x213bff),_0x54aead=Array['from'](_0x5b47bc['domChildrenToView'](_0x31dc33))[0x0];}}else{if('r'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x59b820=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2c9a45){_0x2c9a45['innerHTML']=_0x59b820;},_0x2f357c){const _0x4ac849=new _0x584496(_0x32d500);_0x4ac849['_appendChild'](_0x54aead);const _0x191528=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x4ac849,{'bind':!0x1})),_0x581703=_0x5b47bc['domDocument']['createElement']('div');_0x581703['append'](..._0x191528);const _0x24aae8=Array['from'](_0x5b47bc['domChildrenToView'](_0x581703));_0x24aae8['length']>0x1?_0x54aead['_appendChild'](_0x24aae8):_0x54aead=_0x24aae8[0x0];}}}if(_0x27632c['customProperties']){for(const [_0x163701,_0x47e9b8]of _0x27632c['customProperties'])_0x54aead['_setCustomProperty'](_0x163701,_0x47e9b8);}const _0x734685=void 0x0===_0x27632c['fillerOffset']?null:_0x27632c['fillerOffset'];return null!==_0x734685&&(_0x54aead['getFillerOffset']=()=>_0x734685),_0x54aead;}}['_makeModelFromViewString'](_0x74c509){const _0x1a9d7=JSON['parse'](_0x74c509),_0x5bc4c8=this['editor']['editing']['view']['document'],_0x2236c8=new _0x584496(_0x5bc4c8,_0x1a9d7['map'](_0x21552a=>this['_getViewFromDiffObj'](_0x21552a,!0x0)));return this['editor']['data']['toModel'](_0x2236c8);}['_removeRevisionMarkers'](_0x567062){return(_0x567062=_0x567062['filter'](_0x2ec9bc=>!_0x2ec9bc['name']||'revision-start'!==_0x2ec9bc['name']&&'revision-end'!==_0x2ec9bc['name']))['forEach'](_0x66a240=>{'string'!=typeof _0x66a240&&(_0x66a240['children']=this['_removeRevisionMarkers'](_0x66a240['children']),_0x66a240['attributes']=_0x66a240['attributes']['filter'](_0x301160=>!_0x301160[0x0]['startsWith']('data-revision-')));}),_0x567062;}}function g(_0x3f0c36,_0x1e6fab,_0x3453a3){const t=_0x3f0c36['t'];switch(_0x1e6fab){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'},_0x3453a3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3453a3);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 _0x59ac4e{['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[_0x513552,I,V,_0x3240a8];}constructor(_0x528518){super(_0x528518),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 _0x3dbb66=_0x2c0587();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3dbb66},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 _0x4caa73=this['repository']['getRevision'](0x0),_0x25ed72=_0x4caa73&&null===_0x4caa73['creator']?_0x4caa73:null;if(this['_continueCurrentRevision']=!!_0x25ed72&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13eb51=this['_source']['getCurrentRevisionId'](),_0x230714=this['repository']['getRevision'](_0x13eb51);if(_0x230714)this['_startingVersion']=_0x230714['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e349e=this['_source']['history']['_operations']['find'](_0x3ba265=>!_0x3ba265['_isInit']),_0x22ec54=_0x5e349e?_0x5e349e['baseVersion']:this['_source']['history']['version'];_0x4caa73?(_0x4caa73['toVersion']<_0x22ec54&&_0x4caa73['_update']({'toVersion':_0x22ec54}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['fromVersion']):(this['_startingVersion']=_0x4caa73['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x22ec54,this['_continueCurrentRevision']=!0x1);}}else _0x25ed72&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x25ed72['toVersion'],this['editor']['model']['document']['history']['version']),_0x25ed72['fromVersion']===_0x25ed72['toVersion']?(0x0!==_0x25ed72['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['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',_0x44ff7e=>!_0x44ff7e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a79c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30a2d7;for(const _0x207e5c in _0x3a79c4){const _0x439b05=_0x207e5c,_0x4af774=_0x3a79c4[_0x439b05];if('revisionHistoryLicenseKeyValid'==_0x4af774||'revisionHistoryLicenseKeyInvalid'==_0x4af774||'revisionHistoryLicenseKeyExpired'==_0x4af774||'revisionHistoryLicenseKeyDomainLimit'==_0x4af774||'revisionHistoryLicenseKeyNotAllowed'==_0x4af774||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4af774||'revisionHistoryLicenseKeyTrialLimit'==_0x4af774||'revisionHistoryLicenseKeyUsageLimit'==_0x4af774){delete _0x3a79c4[_0x439b05],_0x30a2d7=_0x4af774,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x888584=this['repository']['getRevision'](0x0),_0x992051=await this['getRevisionDocumentData'](_0x888584),_0x2cd712=await this['getRevisionRootsAttributes'](_0x888584);this['_replaceEditorDataWithRevisionData'](_0x992051,_0x2cd712);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x19ee13){this['_source']=_0x19ee13;}async['update'](){const _0xe2ab86=await this['_source']['getLatestVersion']();if(_0xe2ab86>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1bb04b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xe2ab86});_0x1bb04b['authors']=_0x1bb04b['authorsIds']['map'](_0x31aef3=>this['editor']['plugins']['get']('Users')['getUser'](_0x31aef3)),this['currentRevision']['_update'](_0x1bb04b);}}async['saveRevision'](_0xcf2494={},_0x341fd8=null){const _0x1e015e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x341fd8>this['currentRevision']['toVersion']&&(_0x341fd8=null),null===_0x341fd8&&(_0x341fd8=await this['_source']['getLatestVersion']());const _0x5bc1ea=this['_getFromVersion'](_0x341fd8),_0x4bc7af=this['buildRevisionData']({'from':_0x5bc1ea,'to':_0x341fd8});if(this['currentRevision']['toVersion']<_0x341fd8){const _0x34cd6e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x341fd8,'to':_0x341fd8});_0x34cd6e['authors']=[],_0x34cd6e['authorsIds']=[],_0x34cd6e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x34cd6e,!0x0),delete _0x34cd6e['authors'],_0x1e015e['push'](_0x34cd6e);}_0xcf2494['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf2494['name']=_0xcf2494['name']||null,_0xcf2494['id']=_0xcf2494['id']||_0x2c0587(),_0xcf2494={..._0xcf2494,..._0x4bc7af};const _0x26294d=this['addRevisionData'](_0xcf2494);_0x1e015e['push'](_0xcf2494);const _0x14cb40=this['repository']['getIndex'](_0x26294d);if(0x0!==_0x14cb40){const _0x93391f=this['repository']['getRevision'](_0x14cb40-0x1);if(_0x93391f['fromVersion']!==_0x341fd8){const _0x33ca03=this['_revisionDataBuilder']['getData'](_0x341fd8,_0x93391f['toVersion']),_0x1dcd4a={'id':_0x93391f['id'],'diffData':_0x33ca03['diffData'],'authorsIds':_0x33ca03['authorsIds'],'authors':_0x33ca03['authorsIds']['map'](_0x3aebd4=>this['editor']['plugins']['get']('Users')['getUser'](_0x3aebd4)),'fromVersion':_0x341fd8};_0x93391f===this['currentRevision']&&(_0x1dcd4a['createdAt']=new Date(_0xcf2494['createdAt']['getTime']()+0xa)),_0x93391f['_update'](_0x1dcd4a,!0x0),delete _0x1dcd4a['authors'],_0x1e015e['push'](_0x1dcd4a);}}if(this['adapter']){for(const _0x2083ad of _0x1e015e)this['_bufferUpdate'](_0x2083ad['id'],_0x2083ad,!0x0);this['sendBufferedUpdates']();}return _0x26294d;}['addRevisionData'](_0x3a8bfc){const _0x1b873b=this['repository']['createRevision'](_0x3a8bfc);return this['adapter']&&_0x1b873b['on']('_update',(_0x28a176,_0x57d513,_0x3c00de)=>{_0x3c00de||(this['_bufferUpdate'](_0x57d513['id'],_0x57d513,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b873b,this['_findInsertionIndex'](_0x1b873b)),_0x1b873b;}async['getRevisionDocumentData'](_0x468326){return await this['_utils']['loadRevisionData'](_0x468326,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x468326);}async['getRevisionRootsAttributes'](_0x390e07){return await this['_utils']['loadRevisionData'](_0x390e07,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x390e07);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e0319=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3b336b=0x0;_0x3b336b<_0x5e0319['length'];_0x3b336b++){const _0x3b1305=_0x5e0319[_0x3b336b];let _0x5caac6=!0x1;for(const _0x266b0c of Object['keys'](_0x3b1305))void 0x0===_0x3b1305[_0x266b0c]?delete _0x3b1305[_0x266b0c]:'id'!==_0x266b0c&&(_0x5caac6=!0x0);_0x5caac6||(_0x5e0319[_0x3b336b]=null);}if(_0x5e0319=_0x5e0319['filter'](_0x365558=>null!==_0x365558),!_0x5e0319['length'])return;for(let _0x3758e7=0x0;_0x3758e7<_0x5e0319['length'];_0x3758e7++){const _0x31279f=_0x5e0319[_0x3758e7];void 0x0!==_0x31279f['fromVersion']&&void 0x0===_0x31279f['toVersion']&&(_0x31279f['toVersion']=this['repository']['getRevision'](_0x31279f['id'])['toVersion']),void 0x0!==_0x31279f['toVersion']&&void 0x0===_0x31279f['fromVersion']&&(_0x31279f['fromVersion']=this['repository']['getRevision'](_0x31279f['id'])['fromVersion']);}const _0x24e392=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e0319,_0x24e392)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x29291d=>{if(_0x29291d){for(const _0x71aae7 of _0x29291d)this['setRevisionData']({'id':_0x71aae7['id'],'createdAt':_0x71aae7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x32d1cc=null,from:_0x5b1549=null,to:_0x5b82c8=null}){_0x5b1549=null!==_0x5b1549?_0x5b1549:_0x32d1cc['fromVersion'],_0x5b82c8=null!==_0x5b82c8?_0x5b82c8:_0x32d1cc['toVersion'];const _0x165381=this['_revisionDataBuilder']['getData'](_0x5b1549,_0x5b82c8),_0x512f26={'diffData':_0x165381['diffData'],'authorsIds':_0x165381['authorsIds'],'fromVersion':_0x5b1549,'toVersion':_0x5b82c8};if(!_0x32d1cc||_0x5b82c8!==_0x32d1cc['toVersion']){const _0x5a2ec1=_0x5b82c8-0x1,_0x287a1f=this['_source']['history']['getOperation'](_0x5a2ec1);_0x512f26['createdAt']=_0x287a1f&&_0x287a1f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b1549===this['_loadedStateData']['fromVersion']){for(const _0x59d9bb of this['_loadedStateData']['authors'])_0x512f26['authorsIds']['includes'](_0x59d9bb['id'])||_0x512f26['authorsIds']['push'](_0x59d9bb['id']);}return _0x512f26;}['_bufferUpdate'](_0x5c6458,_0x155072,_0x558ffd){if(this['_bufferedUpdates']['has'](_0x5c6458)){const _0x16937a=this['_bufferedUpdates']['get'](_0x5c6458);_0x155072=_0x558ffd?{..._0x16937a,..._0x155072}:{..._0x155072,..._0x16937a};}this['_bufferedUpdates']['set'](_0x5c6458,_0x155072);}['setRevisionData'](_0x2b3c44){const _0x3088fa=this['repository']['getRevision'](_0x2b3c44['id']);if(_0x2b3c44['createdAt']&&(_0x2b3c44['createdAt']=new Date(_0x2b3c44['createdAt'])),_0x2b3c44['authorsIds']){const _0x39e1a8=this['editor']['plugins']['get']('Users');_0x2b3c44['authors']=_0x2b3c44['authorsIds']['map'](_0x146272=>_0x39e1a8['getUser'](_0x146272));}_0x3088fa['_update'](_0x2b3c44,!0x0);}['_createInitialRevision'](_0x2aa14d){const _0x34d43e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34d43e)this['_initialRevisionId']=_0x34d43e['id'];else{const _0x468ad5=!this['editor']['model']['document']['roots']['find'](_0x3383d2=>this['editor']['model']['hasContent'](_0x3383d2)),_0x3ac77b=this['editor']['plugins']['get']('Users')['me']['id'],_0xc9a397=g(this['editor']['locale'],_0x468ad5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2aa14d,'to':_0x2aa14d,'id':this['_initialRevisionId'],'name':_0xc9a397,'creatorId':_0x3ac77b});}}['_createCurrentRevision'](_0x27bd85){const _0x3c3b11=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3c3b11),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27bd85,'to':_0x27bd85,'id':_0x3c3b11,'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'](_0x4c3936,_0xc014fc){let _0x47aed3=this['editor']['config']['get']('initialData'),_0x2dbcb3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x47aed3){_0x47aed3={};for(const _0xa3eff0 of this['editor']['model']['document']['getRootNames']())_0x47aed3[_0xa3eff0]='';}if('string'==typeof _0x47aed3&&(_0x47aed3={'main':_0x47aed3}),void 0x0===_0x2dbcb3){_0x2dbcb3={};for(const _0x137f25 of this['editor']['model']['document']['getRootNames']())_0x2dbcb3[_0x137f25]={};}let _0x30acac=!0x1;const _0x165fb9=Object['keys'](_0x47aed3),_0x3becf4=Object['keys'](_0x4c3936);for(const _0x5d4e4f of _0x165fb9){if(_0x47aed3[_0x5d4e4f]!==_0x4c3936[_0x5d4e4f]&&''!==_0x47aed3[_0x5d4e4f]['trim']()){_0x30acac=!0x0;break;}if(!_0x46a018(_0x2dbcb3[_0x5d4e4f],_0xc014fc[_0x5d4e4f])&&Object['keys'](_0x2dbcb3[_0x5d4e4f])['length']>0x0){_0x30acac=!0x0;break;}}_0x30acac||(_0x30acac=_0x3becf4['some'](_0x221a78=>!this['editor']['model']['document']['getRoot'](_0x221a78))),_0x30acac&&_0x5ca299('editor-initial-data-replaced-with-revision-data',{'editorData':_0x47aed3,'editorRootsAttributes':_0x2dbcb3,'revisionData':_0x4c3936,'revisionRootsAttributes':_0xc014fc}),this['editor']['config']['set']('initialData',_0x4c3936),this['editor']['config']['set']('rootsAttributes',_0xc014fc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52d68f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52d68f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x33757b){const _0x4ae474=this['repository']['getRevisions']();_0x4ae474['reverse']();let _0x8ed484=0x0;for(;_0x8ed484<_0x4ae474['length'];){const _0x51a7d6=_0x4ae474[_0x8ed484];if(_0x51a7d6===this['currentRevision']){_0x8ed484++;continue;}if(_0x51a7d6['id']===this['_initialRevisionId'])break;const _0x15d869=_0x33757b['toVersion']-_0x51a7d6['toVersion']||_0x33757b['fromVersion']-_0x51a7d6['fromVersion'];if(_0x15d869>0x0)break;if(_0x15d869<0x0)_0x8ed484++;else{if(!_0x33757b['creator']&&_0x51a7d6['creator'])break;if(_0x51a7d6['creator']||!_0x33757b['creator']){if(_0x33757b['createdAt']>_0x51a7d6['createdAt'])break;_0x8ed484++;}else _0x8ed484++;}}return _0x8ed484;}['_getFromVersion'](_0x5eed79){const _0x1c9c00=this['repository']['getRevisions']();_0x1c9c00['reverse'](),_0x1c9c00['shift']();const _0x11f357=_0x1c9c00['find'](_0x1f6a40=>_0x1f6a40['toVersion']<=_0x5eed79)['toVersion'];return _0x11f357<this['_startingVersion']?this['_startingVersion']:_0x11f357;}['_makeRevision']({name:_0x57fae3,from:_0x2b119f,to:_0x46c17d,creatorId:_0x2b5f78,id:_0x55907a}){const _0x384b02=this['buildRevisionData']({'from':_0x2b119f,'to':_0x46c17d});_0x384b02['name']=_0x57fae3,_0x384b02['creatorId']=_0x2b5f78,_0x384b02['id']=_0x55907a;const _0x399436=this['addRevisionData'](_0x384b02);return this['adapter']&&this['_bufferUpdate'](_0x384b02['id'],_0x384b02,!0x0),_0x399436;}['_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(_0x1b30f9){this['editor']=_0x1b30f9,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'](_0xe77128){this['source']=_0xe77128;const _0x2363bb=new Map(),_0x4dfe7d=new Map(),_0x25dad7=this['editor']['model']['document']['roots']['map'](_0x5339fd=>_0x5339fd['rootName']);for(const _0x1760f7 of _0x25dad7){const _0x33e367=this['editor']['model']['document']['getRoot'](_0x1760f7),_0x5537a1=N(_0x33e367);_0x2363bb['set'](_0x1760f7,_0x5537a1),_0x4dfe7d['set'](_0x1760f7,Object['fromEntries'](_0x33e367['getAttributes']()));}const _0x821fcf=Array['from'](this['editor']['model']['markers'])['map'](_0x28f579=>[_0x28f579['name'],_0x28f579['getRange']()]),_0x1d6098=this['source']['version'];this['_saveMetaData'](_0x1d6098,_0x2363bb,_0x821fcf,_0x4dfe7d),this['_startingRevisionId']=this['_revisionId'];const _0x9e858=new Map(),_0x12d231=new Map();for(const _0x56b0a0 of _0x25dad7){const _0x1ec94c=P(_0x56b0a0);_0x9e858['set'](_0x56b0a0,_0x1ec94c),_0x12d231['set'](_0x56b0a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9e858,[],_0x12d231);}['getData'](_0x2c9be1,_0x5b0048){if(this['_lastFrom']===_0x2c9be1&&this['_lastTo']<=_0x5b0048)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5b0048,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c9be1)){const _0x243905=this['_getPreviousFrom'](_0x2c9be1);this['_calculateMetaData'](_0x243905,_0x2c9be1,!0x1);}this['_calculateMetaData'](_0x2c9be1,_0x5b0048,!0x0);}return this['_lastFrom']=_0x2c9be1,this['_lastTo']=_0x5b0048,this['_getState']();}['loadState'](_0x4645c5){const _0x228b31=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4645c5['fromVersion'],this['_lastTo']=_0x4645c5['toVersion'];for(const _0x329dd8 in _0x4645c5['diffData']){const _0x467762=_0x4645c5['diffData'][_0x329dd8]['attachChange'],_0x9fd8ff=_0x45cab9(_0x4645c5['diffData'][_0x329dd8]['attributesBefore'])||{},_0x3c7a9f=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x329dd8]['deletions']);_0x3c7a9f['rootName']=_0x329dd8,_0x3c7a9f['_isAttached']=!_0x467762||!_0x467762['isAttached'],_0x3c7a9f['isAttached']=()=>_0x3c7a9f['_isAttached'],this['_baseRoots']['set'](_0x329dd8,_0x3c7a9f),this['_baseRootsAttributes']['set'](_0x329dd8,_0x9fd8ff),_0x467762&&this['_touchedRoots']['set'](_0x329dd8,_0x467762);const _0x553802=this['_makeIdsRoot'](_0x3c7a9f);this['_baseIdsRoots']['set'](_0x329dd8,_0x553802);for(const [_0x405362,_0x3b0a16]of _0x3c7a9f['markers']){if(!_0x405362['startsWith']('revision:'))continue;const _0x356a1e=_0x405362['split'](':')[0x2];for(const _0x38edb7 of _0x3b0a16['getWalker']({'singleCharacters':!0x0})){const _0x15caf5=this['_getVidAttributeName'](_0x38edb7),_0x89e58e='elementEnd'==_0x38edb7['type']?_0x38edb7['previousPosition']['path']['slice'](0x0,-0x1):_0x38edb7['previousPosition']['path'],_0x3978c9=_0x553802['getNodeByPath'](_0x89e58e)['getAttribute'](_0x15caf5);this['_touched']['set'](_0x3978c9,{'userId':_0x356a1e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x555975=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x478ac1=>!this['_touched']['has'](_0x478ac1));let _0x42fba4=0x0;const _0x5ace5e=new Map();for(const _0x1b09d2 in _0x4645c5['diffData']){const _0x31ec18=_0x4645c5['diffData'][_0x1b09d2]['attachChange'],_0x5eeb09=_0x45cab9(_0x4645c5['diffData'][_0x1b09d2]['attributesAfter'])||{},_0x5b45ca=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x1b09d2]['insertions']);_0x5b45ca['rootName']=_0x1b09d2,_0x5b45ca['_isAttached']=!_0x31ec18||_0x31ec18['isAttached'],_0x5b45ca['isAttached']=()=>_0x5b45ca['_isAttached'],this['_diffRoots']['set'](_0x1b09d2,_0x5b45ca),this['_diffRootsAttributes']['set'](_0x1b09d2,_0x5eeb09);const _0x258bde=this['_makeIdsRoot'](_0x5b45ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1b09d2,_0x258bde),_0x5ace5e['set'](_0x1b09d2,_0x5b45ca['isAttached']()?_0x5eeb09:{});for(const [_0x42e46d,_0x5f43a0]of _0x5b45ca['markers']){if(!_0x42e46d['startsWith']('revision:'))continue;const _0x4a2a6a=_0x42e46d['split'](':')[0x2];for(const _0x38339d of _0x5f43a0['getWalker']({'singleCharacters':!0x0})){const _0x59c164=this['_getVidAttributeName'](_0x38339d),_0x41af58=this['_revisionId']++,_0x46797c='elementEnd'==_0x38339d['type']?_0x38339d['previousPosition']['path']['slice'](0x0,-0x1):_0x38339d['previousPosition']['path'];_0x258bde['getNodeByPath'](_0x46797c)['_setAttribute'](_0x59c164,_0x41af58),this['_touched']['set'](_0x41af58,{'userId':_0x4a2a6a});}}for(const _0x72db19 of this['editor']['model']['createRangeIn'](_0x5b45ca)['getWalker']({'singleCharacters':!0x0})){const _0x139b05=this['_getVidAttributeName'](_0x72db19),_0x3f8d3d='elementEnd'==_0x72db19['type']?_0x72db19['previousPosition']['path']['slice'](0x0,-0x1):_0x72db19['previousPosition']['path'],_0x31001d=_0x258bde['getNodeByPath'](_0x3f8d3d);_0x31001d['getAttribute'](_0x139b05)>0x0||_0x31001d['_setAttribute'](_0x139b05,_0x555975[_0x42fba4++]);}for(const [_0x3765d4,_0x27d431]of _0x5b45ca['markers'])_0x3765d4['startsWith']('revision:')||this['_markers']['set'](_0x3765d4,_0x27d431);}const _0xddf969=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xddf969),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xddf969,0x1));const _0x41fda2=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41fda2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41fda2,0x1));const _0x27c4a0=Array['from'](this['_diffRoots'])['map'](([_0x194c5e,_0xa432ca])=>[_0x194c5e,N(_0xa432ca)]);this['_saveMetaData'](this['_lastTo'],_0x27c4a0,this['_markers'],_0x5ace5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2e25f4,_0x365c19,_0x3e55f0,_0x3b4797){const _0x102825=new Map(_0x365c19),_0x118bb8=new Map(_0x45cab9(_0x3b4797)),_0x3ada49=new Map();for(const [_0x186be1,_0x1f23ac]of _0x3e55f0)_0x3ada49['set'](_0x186be1,{'start':_0x1f23ac['start']['clone'](),'end':_0x1f23ac['end']['clone'](),'rootName':_0x1f23ac['root']['rootName']});this['_savedMetaData']['set'](_0x2e25f4,{'roots':_0x102825,'markers':_0x3ada49,'rootsAttributes':_0x118bb8});}['_removeMetaData'](_0x4714de){this['_savedMetaData']['delete'](_0x4714de);}['_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'](_0x53939b,_0x142d65=null){let _0x54ec1c=null;_0x53939b['is']('documentFragment')||(_0x54ec1c=new ut(_0x53939b['name'],{'vid_start':null===_0x142d65?this['_revisionId']++:_0x142d65++}));const _0x38d342=[];for(const _0x88cea9 of _0x53939b['getChildren']())if(_0x88cea9['is']('element')){_0x38d342['push'](this['_makeIdsRoot'](_0x88cea9,_0x142d65));const _0x4c3342=_0x38d342[_0x38d342['length']-0x1];null!==_0x142d65&&(_0x142d65=_0x4c3342['is']('element','$text')?_0x4c3342['getAttribute']('vid')+0x1:_0x4c3342['getAttribute']('vid_end')+0x1);}else{for(let _0x34b5cf=0x0;_0x34b5cf<_0x88cea9['offsetSize'];_0x34b5cf++)_0x38d342['push'](new ut('$text',{'vid':null===_0x142d65?this['_revisionId']++:_0x142d65++}));}if(_0x53939b['is']('documentFragment')){const _0x24745c=P(_0x53939b['rootName']);return _0x24745c['_insertChild'](0x0,_0x38d342),_0x24745c;}return _0x54ec1c['_setAttribute']('vid_end',null===_0x142d65?this['_revisionId']++:_0x142d65++),_0x54ec1c['_insertChild'](0x0,_0x38d342),_0x54ec1c;}['_calculateMetaData'](_0x11a4f7,_0x1203aa,_0x3291ca){this['_reset']();const {roots:_0x429508,markers:_0x18e5af,rootsAttributes:_0xe951d9}=this['_savedMetaData']['get'](_0x11a4f7);this['_baseRoots']=new Map(_0x429508),this['_baseRootsAttributes']=new Map(_0x45cab9(_0xe951d9));for(const [_0x54b019,_0x51a179]of this['_baseRoots'])if('$graveyard'!==_0x54b019&&(this['_diffRoots']['set'](_0x54b019,N(_0x51a179)),this['_diffRootsAttributes']=new Map(_0x45cab9(_0xe951d9)),_0x3291ca)){const _0x5951d5=this['_revisionId'];this['_idsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179)),this['_baseIdsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179,_0x5951d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3291ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1661e6,_0x330e49]of _0x18e5af){const _0x3feca6=this['_baseRoots']['get'](_0x330e49['rootName']),_0x408463=this['_diffRoots']['get'](_0x330e49['rootName']),_0x2eeaf6=new lt(this['_fixPosition'](_0x330e49['start'],_0x3feca6),this['_fixPosition'](_0x330e49['end'],_0x3feca6)),_0x1f2688=this['_fixRange'](_0x2eeaf6,_0x408463);_0x3feca6['markers']['set'](_0x1661e6,_0x2eeaf6),this['_markers']['set'](_0x1661e6,_0x1f2688);}this['_applyOperations'](_0x11a4f7,_0x1203aa,_0x3291ca);}['_applyOperations'](_0x9bbaa9,_0x31c411,_0x469575){for(const _0x894978 of this['source']['getOperations'](_0x9bbaa9,_0x31c411))this['_handleOperation'](_0x894978,_0x469575);for(const _0x54fb92 of this['_diffRoots']['values']())_0x54fb92['markers']['clear']();for(const [_0x248dd2,_0x5062bf]of this['_markers']){this['_diffRoots']['get'](_0x5062bf['root']['rootName'])['markers']['set'](_0x248dd2,_0x5062bf['clone']());}const _0x14b382=new Map(),_0x31bc81=new Map();for(const [_0x599828,_0x1bcd63]of this['_diffRoots'])_0x14b382['set'](_0x599828,N(_0x1bcd63)),_0x31bc81['set'](_0x599828,this['_diffRootsAttributes']['get'](_0x599828));this['_saveMetaData'](_0x31c411,_0x14b382,this['_markers'],_0x31bc81);}['_getPreviousFrom'](_0x35714d){const _0x25b69c=Array['from'](this['_savedMetaData']['keys']());_0x25b69c['sort']((_0x253c05,_0x3440ea)=>_0x253c05-_0x3440ea),_0x25b69c['reverse']();for(const _0x5261c3 of _0x25b69c)if(_0x5261c3<_0x35714d)return _0x5261c3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c9544,_0x1e8e79){const _0x507a7c=Array['from'](_0x1e8e79['markers'])['map'](([_0x412fe8,_0x838bea])=>[_0x412fe8,this['_fixRange'](_0x838bea,_0x1c9544)]);_0x1c9544['markers']=new Map(_0x507a7c);}['_transformMarkers'](_0x385971){for(const _0x38c5aa of this['_markers']['values']()){const _0x1137b6=_0x38c5aa['getTransformedByOperation'](_0x385971),_0x142c45=lt['_createFromRanges'](_0x1137b6);_0x38c5aa['start']=_0x142c45['start'],_0x38c5aa['end']=_0x142c45['end'];}}['_handleOperation'](_0x987433,_0x330554){if('addRoot'!=_0x987433['type']&&'detachRoot'!=_0x987433['type']){if('insert'==_0x987433['type']){const _0x5cbb57=_0x987433['position']['root']['rootName'];this['_diffRoots']['has'](_0x5cbb57)||(this['_diffRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)),this['_diffRootsAttributes']['set'](_0x5cbb57,{}),_0x330554&&this['_idsRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)));}else{if('addRootAttribute'==_0x987433['type']||'removeRootAttribute'==_0x987433['type']||'changeRootAttribute'==_0x987433['type'])return void this['_handleRootAttributeOperation'](_0x987433);'marker'==_0x987433['type']&&this['_handleMarkerOperation'](_0x987433);}if('marker'!==_0x987433['type']){const _0x2d20f7=this['_cloneOperation'](_0x987433,this['_diffRoots']);_0x2d20f7['_execute'](),this['_transformMarkers'](_0x2d20f7);}if(_0x330554)switch(_0x987433['type']){case'insert':this['_handleInsertOperation'](_0x987433);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x987433);break;case'merge':this['_handleMergeOperation'](_0x987433);break;case'split':this['_handleSplitOperation'](_0x987433);}}else this['_handleRootOperation'](_0x987433,_0x330554);}['_cloneOperation'](_0x3d27c3,_0x2c192d){const _0x3987bd=_0x3d27c3['clone']();return _0x3987bd['_authorId']=_0x3d27c3['_authorId'],this['_fixOperation'](_0x3987bd,_0x2c192d),_0x3987bd;}['_getBaseVids'](_0x50fd04){return _0x50fd04['map'](_0x2c7650=>{const _0x4568e9=this['_getVidAttributeName'](_0x2c7650);return Number(_0x2c7650['item']['getAttribute'](_0x4568e9));});}['_generateTape'](_0x5473d2,_0x41ff0e){if(_0x5473d2['is']('element','$text'))_0x41ff0e['push']({'item':_0x5473d2,'type':'text'});else{_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementStart'});for(const _0x4307fa of _0x5473d2['getChildren']())this['_generateTape'](_0x4307fa,_0x41ff0e);_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementEnd'});}return _0x41ff0e;}['_getState'](){const _0xefd5b4=new Map(this['_touched']),_0x437f15=new Map(_0xefd5b4),_0x35b72e=new Map(),_0x3c55ff={'insertions':{},'deletions':{}},_0x200a4d={'insertions':{},'deletions':{}},_0x5ce56d=new Map(),_0x35c2b8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x35c2b8['delete']('$graveyard');for(const _0x55dedd of _0x35c2b8){const _0x47b86d=this['_diffRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),_0x1d812b=this['_baseRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1);_0x47b86d['isAttached']()||_0x1d812b['isAttached']()?(_0x3c55ff['insertions'][_0x55dedd]=N(_0x47b86d),_0x3c55ff['deletions'][_0x55dedd]=N(_0x1d812b),this['_copyMarkers'](_0x3c55ff['deletions'][_0x55dedd],_0x1d812b),this['_copyMarkers'](_0x3c55ff['insertions'][_0x55dedd],_0x47b86d),_0x200a4d['insertions'][_0x55dedd]=this['_generateTape'](this['_idsRoots']['get'](_0x55dedd),[]),_0x200a4d['deletions'][_0x55dedd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),[])):_0x35c2b8['delete'](_0x55dedd);}for(const _0x3e2aba of _0x35c2b8){const _0xb00a9f=_0x200a4d['insertions'][_0x3e2aba];for(const _0x24d567 of _0xb00a9f){const _0x121bd1=this['_getVidAttributeName'](_0x24d567),_0x5f0566=_0x24d567['item']['getAttribute'](_0x121bd1);_0x437f15['delete'](_0x5f0566),_0x5f0566>=this['_startingRevisionId']&&_0x35b72e['set'](_0x5f0566,_0xefd5b4['get'](_0x5f0566));}}for(const _0x463263 of _0x35c2b8){const _0x35c88b=_0x200a4d['insertions'][_0x463263],_0x3e2a4c=this['_getBaseVids'](_0x200a4d['deletions'][_0x463263]);let _0x22172a=0x0;for(const _0x145c3e of _0x35c88b){const _0x4c721d=this['_getVidAttributeName'](_0x145c3e),_0x42a1aa=_0x145c3e['item']['getAttribute'](_0x4c721d);if(!_0x35b72e['has'](_0x42a1aa)&&!_0x5ce56d['has'](_0x42a1aa)){if(_0x437f15['has'](_0x42a1aa))_0x22172a++;else{if(_0x42a1aa!=_0x3e2a4c[_0x22172a]){const _0x4a066a=_0xefd5b4['get'](_0x42a1aa)||_0xefd5b4['get'](_0x3e2a4c[_0x22172a]);for(;_0x42a1aa!=_0x3e2a4c[_0x22172a];)_0x437f15['has'](_0x3e2a4c[_0x22172a])||(_0x5ce56d['set'](_0x3e2a4c[_0x22172a],_0x4a066a),_0xefd5b4['set'](_0x3e2a4c[_0x22172a],_0x4a066a)),_0x22172a++;}_0x22172a++;}}}}for(const _0x3067e6 of _0x35c2b8){const _0x4f251e=_0x200a4d['insertions'][_0x3067e6];for(const _0x440a3a of _0x4f251e){const _0x34a7a6=this['_getVidAttributeName'](_0x440a3a),_0x36c808=_0x440a3a['item']['getAttribute'](_0x34a7a6);if(_0x5ce56d['has'](_0x36c808)){const _0x357411=_0x5ce56d['get'](_0x36c808);_0x437f15['has'](_0x36c808)||_0x437f15['set'](_0x36c808,{..._0x357411}),_0x35b72e['set'](_0x36c808,{..._0x357411});}}}for(const _0x1ce2ad of _0x437f15['keys']())_0x1ce2ad>=this['_startingRevisionId']&&_0x437f15['delete'](_0x1ce2ad);const _0x3025a3=new Map();for(const _0x3ba5fe of _0x35c2b8){let _0x4c899f=_0x200a4d['insertions'][_0x3ba5fe];for(const _0x51906a of _0x4c899f)if(_0x51906a['item']['is']('element','tableCell')){const _0x4eae34=this['_getVidAttributeName'](_0x51906a),_0x25cbdc=_0x51906a['item']['getAttribute'](_0x4eae34);if(_0x35b72e['has'](_0x25cbdc)){const _0x16a016=_0x51906a['item']['parent']['parent']['getAttribute']('vid_start'),_0x40731e=_0x3025a3['get'](_0x16a016)||new Set();_0x40731e['add'](_0x35b72e['get'](_0x25cbdc)['userId']),_0x3025a3['set'](_0x16a016,_0x40731e);}}_0x4c899f=_0x200a4d['deletions'][_0x3ba5fe];for(const _0x30d316 of _0x4c899f)if(_0x30d316['item']['is']('element','tableCell')){const _0x2f5c1c=this['_getVidAttributeName'](_0x30d316),_0x11a2fa=_0x30d316['item']['getAttribute'](_0x2f5c1c);if(_0x437f15['has'](_0x11a2fa)){const _0x3cfbac=_0x30d316['item']['parent']['parent']['getAttribute']('vid_start'),_0x22f080=_0x3025a3['get'](_0x3cfbac)||new Set();_0x22f080['add'](_0x437f15['get'](_0x11a2fa)['userId']),_0x3025a3['set'](_0x3cfbac,_0x22f080);}}for(const _0x40a5bb of _0x3025a3['keys']())(_0x35b72e['has'](_0x40a5bb)||_0x437f15['has'](_0x40a5bb))&&_0x3025a3['delete'](_0x40a5bb);}for(const _0x2eb208 of _0x35c2b8){const _0x2d39b1=_0x200a4d['insertions'][_0x2eb208];let _0x5c4d5e=null,_0x35b2a5=null;for(const _0x28168f of _0x2d39b1){const _0x28558a=this['_getVidAttributeName'](_0x28168f),_0xe45a83=_0x28168f['item']['getAttribute'](_0x28558a),_0x4786c8=_0x3025a3['get'](_0xe45a83);_0x4786c8&&'elementStart'==_0x28168f['type']&&(_0x5c4d5e=Array['from'](_0x4786c8)[0x0],_0x35b2a5=_0x28168f['item']['getAttribute']('vid_end')),_0x5c4d5e&&(_0x437f15['set'](_0xe45a83,{'userId':_0x5c4d5e}),_0x35b72e['set'](_0xe45a83,{'userId':_0x5c4d5e})),_0xe45a83==_0x35b2a5&&(_0x5c4d5e=null,_0x35b2a5=null);}}const _0x63f8d9={},_0x49814f=new Set();for(const _0x443a1a of _0x35c2b8){const _0x176340=_0x3c55ff['deletions'][_0x443a1a],_0x1803d6=_0x3c55ff['insertions'][_0x443a1a];for(const {userId:_0x2573bb}of this['_touchedMarkers']['values']())null!==_0x2573bb&&_0x49814f['add'](_0x2573bb);for(const {userId:_0x1a563b}of this['_touchedRoots']['values']())null!==_0x1a563b&&_0x49814f['add'](_0x1a563b);this['_markChanges'](_0x1803d6,_0x200a4d['insertions'][_0x443a1a],_0x35b72e,'insertion',_0x49814f),this['_markChanges'](_0x176340,_0x200a4d['deletions'][_0x443a1a],_0x437f15,'deletion',_0x49814f),_0x63f8d9[_0x443a1a]={'insertions':this['_prepareViewToSave'](_0x1803d6),'deletions':this['_prepareViewToSave'](_0x176340),'attachChange':this['_touchedRoots']['get'](_0x443a1a)||null,'attributesBefore':_0x45cab9(this['_baseRootsAttributes']['get'](_0x443a1a))||{},'attributesAfter':_0x45cab9(this['_diffRootsAttributes']['get'](_0x443a1a))};}return{'diffData':_0x63f8d9,'authorsIds':Array['from'](_0x49814f)};}['_processRootBeforeSave'](_0x388dec){for(const [,_0x5ae3b9]of _0x388dec['markers']){const _0x455ad3=_0x5ae3b9['start']['getAncestors']()['filter'](_0x12c0d9=>'tableCell'==_0x12c0d9['name']);for(const _0xf1e135 of _0x455ad3)0x1==_0xf1e135['childCount']&&_0xf1e135['getChild'](0x0)['is']('element','paragraph')&&_0xf1e135['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3fbd4f){this['_processRootBeforeSave'](_0x3fbd4f);const _0x50d88e=this['editor']['data']['toView'](_0x3fbd4f,{}),_0x5208af=Array['from'](_0x50d88e['getChildren']())['map'](_0xb961b9=>this['_getViewJson'](_0xb961b9));return JSON['stringify'](_0x5208af);}['_getViewJson'](_0x353347){if(_0x353347['is']('$text'))return _0x353347['data'];{const _0x5b7e10=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x75f584=_0x353347,_0x310874=this['editor']['data']['htmlProcessor']['domConverter'],_0x49c26d={'type':_0x5b7e10['_getTypeCharForViewElement'](_0x75f584),'name':_0x75f584['name'],'attributes':Array['from'](_0x75f584['getAttributes']()),'children':Array['from'](_0x75f584['getChildren']())['map'](_0x2c095e=>this['_getViewJson'](_0x2c095e))};if(_0x353347['is']('uiElement')&&'$comment'!=_0x353347['name']){const _0x30115c=_0x353347['render'](_0x310874['domDocument'],_0x310874);_0x49c26d['children']['push'](_0x30115c['outerHTML']);}else{if(_0x353347['is']('rawElement')){const _0x50b0c2=_0x310874['domDocument']['createElement'](_0x75f584['name']);_0x353347['render'](_0x50b0c2,_0x310874),_0x49c26d['children']['push'](_0x50b0c2['innerHTML']);}}const _0x4bb5de=Array['from'](_0x75f584['getCustomProperties']());_0x4bb5de['length']>0x0&&(_0x49c26d['customProperties']=_0x4bb5de);const _0x44feaa=_0x75f584['getFillerOffset']();return null!==_0x44feaa&&(_0x49c26d['fillerOffset']=_0x44feaa),_0x49c26d;}}['_markChanges'](_0x1e5b25,_0xb4593c,_0x20e2d1,_0x27c315,_0x393e38){let _0x513e86=null,_0x5b2eae=null,_0x4f4d56=0x0;const _0x2173da=this['editor']['model'];for(let _0x1ff358=0x0;_0x1ff358<_0xb4593c['length'];_0x1ff358++){const _0x7528=this['_getVidAttributeName'](_0xb4593c[_0x1ff358]),_0x3dd906=_0xb4593c[_0x1ff358]['item']['getAttribute'](_0x7528),_0x103376=_0x20e2d1['get'](_0x3dd906),_0x41f096=_0x1ff358==_0xb4593c['length']-0x1;(!_0x513e86&&_0x103376&&(_0x513e86=_0x103376,_0x5b2eae=_0xb4593c[_0x1ff358]),_0x513e86&&(!_0x103376||_0x103376['userId']!=_0x513e86['userId']))&&(_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),F(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da)),_0x513e86=_0x103376||null,_0x5b2eae=_0x103376?_0xb4593c[_0x1ff358]:null),_0x513e86&&_0x41f096&&_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),B(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da));}function _0x15958f(_0x2972af,_0x1f6612,_0x31ea30){const _0x52f276=_0x513e86['userId'],_0x491fce='revision:'+_0x27c315+':'+_0x52f276+':'+_0x4f4d56++,_0x13c055=_0x2173da['createRange'](_0x1f6612,_0x31ea30);_0x1e5b25['markers']['set'](_0x491fce,_0x13c055),null!==_0x52f276&&_0x393e38['add'](_0x52f276);}}['_getVidAttributeName'](_0x591afc){switch(_0x591afc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f8cdd,_0x465334){_0x2f8cdd['baseVersion']=null;for(const _0x2cdc98 in _0x2f8cdd){const _0x4c78ab=_0x2f8cdd[_0x2cdc98];if(_0x4c78ab instanceof ft){const _0x1c50e7=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixPosition'](_0x4c78ab,_0x1c50e7);}if(_0x4c78ab instanceof lt){const _0x149a02=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixRange'](_0x4c78ab,_0x149a02);}'root'===_0x2cdc98&&(_0x2f8cdd['root']=_0x465334['get'](_0x2f8cdd['root']['rootName']));}}['_fixRange'](_0x4afc2d,_0x148aa7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4afc2d['start'],_0x148aa7),this['_fixPosition'](_0x4afc2d['end'],_0x148aa7));}['_fixPosition'](_0xc80125,_0x3be1d7){return this['editor']['model']['createPositionFromPath'](_0x3be1d7,_0xc80125['path'],_0xc80125['stickiness']);}['_handleInsertOperation'](_0x2c26fc){const _0x323537=this['_idsRoots']['get'](_0x2c26fc['position']['root']['rootName']),_0x3e9b56=this['_fixPosition'](_0x2c26fc['position'],_0x323537),_0x5349f1=null===_0x2c26fc['_authorId']?null:_0x2c26fc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f401e=_0x3e9b56['parent'],_0x2076b9=this['_revisionId'],_0x510198=[];for(const _0x198e32 of _0x2c26fc['nodes'])if(_0x198e32['is']('element'))_0x510198['push'](this['_makeIdsRoot'](_0x198e32));else{for(let _0x4ee9c7=0x0;_0x4ee9c7<_0x198e32['offsetSize'];_0x4ee9c7++)_0x510198['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1f3920=this['_revisionId'];for(let _0x4012eb=_0x2076b9;_0x4012eb<_0x1f3920;_0x4012eb++)this['_touched']['set'](_0x4012eb,{'userId':_0x5349f1});_0x3f401e['_insertChild'](_0x3e9b56['offset'],_0x510198);}['_handleMoveOperation'](_0x4b6e53){(_0x4b6e53=this['_cloneOperation'](_0x4b6e53,this['_idsRoots']))['_execute']();const _0x3fb4e7=null===_0x4b6e53['_authorId']?null:_0x4b6e53['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e695e=_0x4b6e53['getMovedRangeStart'](),_0x644fa4=_0x5e695e['parent'],_0x463451=_0x5e695e['offset'];!function _0x305460(_0xe6ce37,_0x5dc1be,_0x4c022a,_0x4e09e7){for(let _0x3887ee=_0x4c022a;_0x3887ee<_0x4e09e7;_0x3887ee++){const _0x5d501b=_0x5dc1be['getChild'](_0x3887ee);_0x5d501b['is']('element','$text')?_0xe6ce37['set'](_0x5d501b['getAttribute']('vid'),{'userId':_0x3fb4e7}):(_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_start'),{'userId':_0x3fb4e7}),_0x305460(_0xe6ce37,_0x5d501b,0x0,_0x5d501b['childCount']),_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_end'),{'userId':_0x3fb4e7}));}}(this['_touched'],_0x644fa4,_0x463451,_0x463451+_0x4b6e53['howMany']);}['_handleMergeOperation'](_0x1da3cb){const _0xa837c4=null===(_0x1da3cb=this['_cloneOperation'](_0x1da3cb,this['_idsRoots']))['_authorId']?null:_0x1da3cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f91e8=_0x1da3cb['targetPosition']['parent'],_0x5417fa=_0x1da3cb['sourcePosition']['parent'],_0x4f0a14=_0x2f91e8['getAttribute']('vid_end'),_0x3916ef=_0x5417fa['getAttribute']('vid_start');_0x2f91e8['_setAttribute']('vid_end',_0x5417fa['getAttribute']('vid_end')),_0x5417fa['_setAttribute']('vid_end',_0x4f0a14),this['_touched']['set'](_0x3916ef,{'userId':_0xa837c4}),this['_touched']['set'](_0x4f0a14,{'userId':_0xa837c4}),_0x1da3cb['_execute']();}['_handleSplitOperation'](_0x345e41){const _0x3a3b7d=null===(_0x345e41=this['_cloneOperation'](_0x345e41,this['_idsRoots']))['_authorId']?null:_0x345e41['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f182b=_0x345e41['graveyardPosition'],_0x587baf=_0x345e41['splitPosition']['parent'];_0x345e41['_execute']();const _0x53fd0d=_0x587baf['getAttribute']('vid_end'),_0x1ee012=_0x345e41['insertionPosition']['nodeAfter'];if(_0x3f182b){const _0x1d7d64=_0x1ee012['getAttribute']('vid_end'),_0x455db5=_0x587baf['getAttribute']('vid_end');_0x587baf['_setAttribute']('vid_end',_0x1d7d64),_0x1ee012['_setAttribute']('vid_end',_0x455db5),this['_touched']['set'](_0x587baf['getAttribute']('vid_end'),{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1ee012['getAttribute']('vid_start'),{'userId':_0x3a3b7d});}else{const _0x185e54=this['_revisionId']++,_0x1681db=this['_revisionId']++;_0x587baf['_setAttribute']('vid_end',_0x185e54),_0x1ee012['_setAttribute']('vid_start',_0x1681db),_0x1ee012['_setAttribute']('vid_end',_0x53fd0d),this['_touched']['set'](_0x185e54,{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1681db,{'userId':_0x3a3b7d});}}['_handleMarkerOperation'](_0x4fbeef){if(!_0x4fbeef['affectsData'])return;const _0xf71383=(_0x4fbeef=this['_cloneOperation'](_0x4fbeef,this['_diffRoots']))['oldRange']?_0x4fbeef['oldRange']['root']:null,_0x13f23d=_0x4fbeef['newRange']?_0x4fbeef['newRange']['root']:null;_0xf71383&&this['_markers']['delete'](_0x4fbeef['name']),_0x13f23d&&this['_markers']['set'](_0x4fbeef['name'],_0x4fbeef['newRange']['clone']());const _0x4b5967=null===_0x4fbeef['_authorId']?null:_0x4fbeef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251f84=_0x4fbeef['name'];if(!this['_touchedMarkers']['has'](_0x251f84))return void this['_touchedMarkers']['set'](_0x251f84,{'range':_0x4fbeef['oldRange'],'userId':_0x4b5967});const _0x1f2e6f=this['_touchedMarkers']['get'](_0x251f84),_0x60a79b=_0x1f2e6f['range'],_0x5e5a6e=_0x4fbeef['newRange'];null==_0x60a79b&&null==_0x5e5a6e||_0x60a79b&&_0x5e5a6e&&_0x60a79b['isEqual'](_0x5e5a6e)?this['_touchedMarkers']['delete'](_0x4fbeef['name']):_0x1f2e6f['userId']=_0x4b5967;}['_handleRootOperation'](_0x3e73ae,_0x5ba692){this['_diffRoots']['has'](_0x3e73ae['rootName'])?this['_diffRoots']['get'](_0x3e73ae['rootName'])['_isAttached']=_0x3e73ae['isAdd']:(this['_diffRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e73ae['rootName'],{}),_0x5ba692&&this['_idsRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)));const _0x25a623=null===_0x3e73ae['_authorId']?null:_0x3e73ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c4d6=this['_touchedRoots']['get'](_0x3e73ae['rootName']);_0x51c4d6&&_0x51c4d6['userId']===_0x25a623?this['_touchedRoots']['delete'](_0x3e73ae['rootName']):this['_touchedRoots']['set'](_0x3e73ae['rootName'],{'userId':_0x25a623,'isAttached':_0x3e73ae['isAdd']});}['_handleRootAttributeOperation'](_0x42be74){const _0x3f0af5=this['_diffRootsAttributes']['get'](_0x42be74['root']['rootName']);null===_0x42be74['newValue']?delete _0x3f0af5[_0x42be74['key']]:_0x3f0af5[_0x42be74['key']]=_0x42be74['newValue'];}}function N(_0x3279dc){const _0x26bdd1=P(_0x3279dc['rootName'],_0x3279dc['isAttached']());for(const _0x37351d of _0x3279dc['getChildren']()){const _0x23c8d5=_0x37351d['_clone'](!0x0);_0x26bdd1['_appendChild'](_0x23c8d5);}return _0x26bdd1;}function P(_0x389ee5,_0x58a39c=!0x0){const _0x5dacb4=new vt();return _0x5dacb4['rootName']=_0x389ee5,_0x5dacb4['_isAttached']=_0x58a39c,_0x5dacb4['isAttached']=()=>_0x5dacb4['_isAttached'],_0x5dacb4;}function F(_0x2ac31a,_0x10d38f,_0x463501){const _0x1fd60d='elementEnd'==_0x2ac31a['type']?_0x463501['createPositionAt'](_0x2ac31a['item'],'end'):_0x463501['createPositionBefore'](_0x2ac31a['item']);return _0x463501['createPositionFromPath'](_0x10d38f,_0x1fd60d['path'],_0x1fd60d['stickiness']);}function B(_0x5913da,_0x269de1,_0x5965eb){const _0x191a47='elementStart'==_0x5913da['type']?_0x5965eb['createPositionAt'](_0x5913da['item'],0x0):_0x5965eb['createPositionAfter'](_0x5913da['item']);return _0x5965eb['createPositionFromPath'](_0x269de1,_0x191a47['path'],_0x191a47['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4ca083,_0x144bb3){super(_0x4ca083),this['focusTracker']=new _0x2898dd(),this['keystrokes']=new _0x1a390b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x144bb3),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xced402(this);}['render'](){super['render'](),_0x1ba247({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x69d86c=_0x356065=>_0x356065['stopPropagation']();this['keystrokes']['set']('arrowright',_0x69d86c),this['keystrokes']['set']('arrowleft',_0x69d86c),this['keystrokes']['set']('arrowup',_0x69d86c),this['keystrokes']['set']('arrowdown',_0x69d86c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x29bc60){this['revisionNameInputView']['fieldView']['element']['value']=_0x29bc60['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4bff32){const _0x1511aa=new _0x38e6de(this['locale'],_0x1e4d55),_0x57e6d9=_0x1511aa['fieldView'];_0x57e6d9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x40bdff=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4bff32&&(_0x40bdff+='\x20('+g(this['locale'],'optional')+')'),(_0x1511aa['label']=_0x40bdff,_0x57e6d9['on']('input',()=>{this['revisionNameInputValue']=_0x57e6d9['element']['value']['trim']();}),_0x1511aa);}}class f extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x161949=this['editor'],_0x3a557a=_0x161949['plugins']['get']('RevisionTracker');_0x161949['ui']['componentFactory']['add']('revisionHistory',_0x5930ca=>{const _0xceef17=_0xd7ef31(_0x5930ca),_0x412910=_0xceef17['panelView']['children'],_0x2f8284=new _0x2f2fec(_0x5930ca),_0xf273b8=new _0x1dbec9(_0x5930ca),_0x117bcd=new te(_0x5930ca),_0xc1626d=new _0x1dbec9(_0x5930ca),_0x4a809d=new te(_0x5930ca);return _0xceef17['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x574f1b,_0x3f58dd,_0x4a7d94)=>_0x574f1b&&_0x3f58dd&&!_0x4a7d94),_0xceef17['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x5930ca,'Revision\x20history'),'tooltip':!0x0}),_0x117bcd['set']({'label':g(_0x5930ca,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x117bcd['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x4b13e1,_0x10d9e7,_0x4a0504)=>_0x4b13e1&&_0x10d9e7&&!_0x4a0504),_0x117bcd['on']('execute',()=>this['_showDialog']()),_0x4a809d['set']({'label':g(_0x5930ca,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4a809d['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x161949,'isReadOnly',(_0x180425,_0x1cf654)=>_0x180425&&!_0x1cf654),_0x4a809d['on']('execute',()=>{_0x161949['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xceef17['isOpen']=!0x1,_0x161949['editing']['view']['focus']();}),_0xf273b8['children']['add'](_0x117bcd),_0xc1626d['children']['add'](_0x4a809d),_0x2f8284['role']='menu',_0x2f8284['items']['addMany']([_0xf273b8,_0xc1626d]),_0x412910['add'](_0x2f8284),_0xceef17;}),_0x161949['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17cbec=this['editor'],_0x292ace=_0x17cbec['locale'],_0x2ae5e2=new _0x1fa441(_0x292ace),_0x22dd12=new _0x68c44a(_0x292ace);_0x2ae5e2['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x292ace,'Revision\x20history')});const _0x191c8c=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x27f2f4=new _0x29944e(_0x292ace);_0x27f2f4['set']({'label':g(_0x292ace,'Save\x20current\x20revision')}),_0x27f2f4['delegate']('execute')['to'](_0x2ae5e2),_0x27f2f4['on']('execute',()=>{this['_showDialog']();}),_0x191c8c['children']['add'](_0x27f2f4),_0x22dd12['items']['add'](_0x191c8c);const _0x275298=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x2dee25=new _0x29944e(_0x292ace);return _0x2dee25['set']({'label':g(_0x292ace,'Open\x20revision\x20history')}),_0x2dee25['delegate']('execute')['to'](_0x2ae5e2),_0x2dee25['on']('execute',()=>{_0x17cbec['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x275298['children']['add'](_0x2dee25),_0x22dd12['items']['add'](_0x275298),_0x2ae5e2['panelView']['children']['add'](_0x22dd12),_0x2ae5e2;}['_showDialog'](){const _0x1fc20d=this['editor'],_0x2236ee=_0x1fc20d['locale'],_0x59fecf=_0x1fc20d['plugins']['get']('Dialog'),_0x3be7e7=_0x1fc20d['plugins']['get']('RevisionTracker');function _0x310ab1(_0x15fc64){_0x1fc20d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x15fc64['revisionName']?_0x15fc64['revisionNameInputView']['errorText']=g(_0x2236ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1fc20d['plugins']['get'](u)['saveRevision']({'name':_0x15fc64['revisionName']}),_0x59fecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x310ab1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x59fecf['show']({'id':'revisionSave','title':g(_0x2236ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1fc20d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x59fecf['hide']()},{'label':g(_0x1fc20d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x54ed12){_0x54ed12['bind']('isEnabled')['to'](_0x3be7e7,'isReady',_0x3be7e7,'isEnabled',_0x1fc20d,'isReadOnly',(_0x3cd240,_0x3a1ea9,_0x1e66e6)=>_0x3cd240&&_0x3a1ea9&&!_0x1e66e6);},'onExecute':()=>_0x310ab1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3d43ed=this['editor'],_0x417f32=_0x3d43ed['locale'];this['_saveRevisionFormView']=new hs(_0x417f32,_0x3d43ed['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x31c1a6,_0x387ceb){super(_0x31c1a6),this['_model']=_0x387ceb,this['changeId']=_0x387ceb['id'];const _0x56dea0=this['bindTemplate'],_0x18ac18=g(_0x31c1a6,_0x387ceb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x387ceb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x387ceb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x56dea0['to']('type',_0x4c9775=>'ck-revision-change__'+_0x4c9775)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x18ac18}]},{'text':'\x20'+_0x387ceb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x3787d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a630d){super(),this['id']=_0x1a630d['id']||_0x2c0587(),this['author']=_0x1a630d['author'],this['type']=_0x1a630d['type'],this['data']=_0x1a630d['data']||{},this['rootName']=_0x1a630d['rootName'],this['set']('createdAt',_0x1a630d['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(_0x2a724d,_0x3eb8d9){this['newRevisionId']=_0x2a724d,this['oldRevisionId']=_0x3eb8d9,this['changes']=new _0x18d259();}['_setChanges'](_0xcf5f89){for(const _0x5604c7 of _0xcf5f89)this['changes']['add'](_0x5604c7);}}class m extends _0x59ac4e{['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[_0x513552,_0x2ba9a1,I,V];}constructor(_0x5b6533){super(_0x5b6533),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',(_0x4713e6,_0x3162eb,_0x14244e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x189a4d=>{for(const _0x1e14f6 of this['editor']['editing']['view']['document']['roots'])_0x14244e?_0x189a4d['removeClass']('ck-editor__editable__overlay',_0x1e14f6):_0x189a4d['addClass']('ck-editor__editable__overlay',_0x1e14f6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32725c=>null!==_0x32725c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b0adf,_0x5b1662,_0x564afc)=>_0x4b0adf&&_0x564afc?_0x5b1662['changes']['getIndex'](_0x564afc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52f3d9,_0xd9f308)=>_0x52f3d9?_0xd9f308['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2ba9a1);}['init'](){const _0x12beff=this['editor'],_0x2ca145=new wt(_0x12beff,{'direction':'backward'}),_0x587db2=new wt(_0x12beff,{'direction':'forward'});(_0x12beff['commands']['add']('showPreviousChange',_0x2ca145),_0x12beff['commands']['add']('showNextChange',_0x587db2),_0x12beff['commands']['add']('restoreRevision',new mt(_0x12beff)),this['on']('change:numberOfChanges',()=>{_0x2ca145['refresh'](),_0x587db2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12beff['enableReadOnlyMode']('revision-viewer'),_0x12beff['plugins']['has']('WidgetToolbarRepository'))&&_0x12beff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x220a8a){return await this['_utils']['loadRevisionData'](_0x220a8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x220a8a);}async['getRevisionRootsAttributes'](_0x59802f){return await this['_utils']['loadRevisionData'](_0x59802f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x59802f);}async['compare'](_0x493212,_0x45c8a3,_0x28092f=!0x1){if(!this['isEnabled'])return;const _0x51b583=this['diff'],_0x24e91c=this['repository'],_0x315f1c='string'==typeof _0x493212?_0x24e91c['getRevision'](_0x493212):_0x493212,_0x5d3874='string'==typeof _0x45c8a3?_0x24e91c['getRevision'](_0x45c8a3):_0x45c8a3,_0x127120=_0x315f1c['id'],_0x10cfce=_0x5d3874?_0x5d3874['id']:null;if(!_0x28092f&&this['diff']&&this['diff']['newRevisionId']===_0x127120&&this['diff']['oldRevisionId']===_0x10cfce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x127120,_0x10cfce);const _0x423930=this['_getRevisionsRange'](_0x315f1c,_0x5d3874,!0x0)['map'](_0x51122d=>this['_utils']['loadRevisionData'](_0x51122d,this['adapter']));return _0x423930['push'](new Promise(_0x1ac9e3=>{setTimeout(_0x1ac9e3,0x14);})),Promise['all'](_0x423930)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52a8a0=this['_getDiff'](_0x127120,_0x10cfce);for(const _0x4114ed of _0x52a8a0['changes'])this['_changeIdToChange']['set'](_0x4114ed['id'],_0x4114ed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x419331=>{for(const _0x1856d3 of this['editor']['model']['document']['getRootNames']())_0x419331['detachRoot'](_0x1856d3);for(const _0xfce87f of Object['keys'](_0x52a8a0['model'])){const _0x57b832=_0x419331['addRoot'](_0xfce87f);for(const _0x2b540c of Object['keys'](_0x52a8a0['attributes'][_0xfce87f]))_0x419331['setAttribute'](_0x2b540c,_0x52a8a0['attributes'][_0xfce87f][_0x2b540c],_0x57b832);_0x419331['insert'](_0x52a8a0['model'][_0xfce87f],_0x57b832,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52a8a0['changes'])),this['isReady']=!0x0;})['catch'](_0xb222f7=>{console['error'](_0xb222f7),this['_cleanUp'](),_0x51b583&&(this['diff']=_0x51b583),this['isReady']=!0x0;});}['addRevisionData'](_0x12c929,_0x3ffb30){const _0x322b89=this['repository']['createRevision'](_0x12c929);return _0x322b89['on']('_update',(_0x18c5fa,_0x30bd1f,_0x10105a)=>_0x3ffb30(_0x30bd1f,_0x10105a,_0x322b89)),this['repository']['addRevision'](_0x322b89),_0x322b89;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x133db5=>{for(const _0x26f821 of this['editor']['model']['document']['getRootNames']())_0x133db5['detachRoot'](_0x26f821);});}['_sortAndFilterDiffChanges'](_0x5ec4ea){const _0x3941b6=[],_0x249d07=new Map();for(const _0x5f1206 of this['editor']['model']['document']['getRootNames']()){const _0x1eb5d3=this['editor']['editing']['view']['getDomRoot'](_0x5f1206);if(!_0x1eb5d3)continue;const _0x2f04d1=_0x1eb5d3['getClientRects']()['item'](0x0);_0x2f04d1&&(_0x3941b6['push'](_0x5f1206),_0x249d07['set'](_0x5f1206,_0x2f04d1));}return _0x3941b6['sort']((_0x18b3be,_0x3ca8b0)=>{const _0x58bc9d=_0x249d07['get'](_0x18b3be),_0x5d59db=_0x249d07['get'](_0x3ca8b0);return _0x58bc9d['y']-_0x5d59db['y']||_0x58bc9d['x']-_0x5d59db['x'];}),(_0x5ec4ea=_0x5ec4ea['filter'](_0xf8bf6c=>_0x3941b6['includes'](_0xf8bf6c['rootName'])))['sort']((_0x529e63,_0x1b0544)=>_0x3941b6['indexOf'](_0x529e63['rootName'])-_0x3941b6['indexOf'](_0x1b0544['rootName'])),_0x5ec4ea;}['_makeTape'](_0x3d63c7){const _0x763dc=Array['from'](_0x3d63c7['markers'])['filter'](([_0x243edf,_0x30c924])=>_0x243edf['startsWith']('revision:')&&!_0x30c924['isCollapsed']),_0x25ec2e=Array['from'](this['editor']['model']['createRangeIn'](_0x3d63c7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x763dc['length'])for(const _0x4aa1f3 of _0x25ec2e){const [_0x411538,_0x524cbf]=_0x763dc[0x0],[,_0x5d930d,_0x4fa833]=_0x411538['split'](':');if(_0x524cbf['end']['isEqual'](_0x4aa1f3['nextPosition'])&&_0x763dc['shift'](),(_0x4aa1f3['previousPosition']['isEqual'](_0x524cbf['start'])||_0x4aa1f3['previousPosition']['isAfter'](_0x524cbf['start']))&&('insertion'==_0x5d930d?_0x4aa1f3['isAdded']={'userId':_0x4fa833}:'deletion'==_0x5d930d&&(_0x4aa1f3['isRemoved']={'userId':_0x4fa833})),0x0==_0x763dc['length'])break;}return _0x25ec2e;}['_refreshStartEndIndex'](_0x37f7c9){const _0x21eacd=new Map();for(let _0x296ae3=0x0;_0x296ae3<_0x37f7c9['length'];_0x296ae3++)'text'===_0x37f7c9[_0x296ae3]['type']?(_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3,_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3):('elementStart'===_0x37f7c9[_0x296ae3]['type']?_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3:'elementEnd'===_0x37f7c9[_0x296ae3]['type']&&(_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3),_0x21eacd['set'](_0x37f7c9[_0x296ae3]['id'],_0x296ae3));for(const _0x3248af of _0x21eacd['values']())'elementStart'===_0x37f7c9[_0x3248af]['type']?_0x37f7c9[_0x3248af]['item']['endIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']):'elementEnd'===_0x37f7c9[_0x3248af]['type']&&(_0x37f7c9[_0x3248af]['item']['startIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']));}['_processTape'](_0x4ed8ee){for(let _0x1fdc5b=0x0;_0x1fdc5b<_0x4ed8ee['length'];_0x1fdc5b++){if('elementStart'===_0x4ed8ee[_0x1fdc5b]['type'])_0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b;else{if('elementEnd'===_0x4ed8ee[_0x1fdc5b]['type']){_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b;const _0x217f08=_0x4ed8ee[_0x1fdc5b]['item']['startIndex'];_0x4ed8ee[_0x217f08]['pairId']=_0x4ed8ee[_0x1fdc5b]['id'],_0x4ed8ee[_0x1fdc5b]['pairId']=_0x4ed8ee[_0x217f08]['id'];}else _0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['pairId']=null;}_0x4ed8ee[_0x1fdc5b]['markersStart']||(_0x4ed8ee[_0x1fdc5b]['markersStart']=[],_0x4ed8ee[_0x1fdc5b]['markersEnd']=[]);}}['_markInsertions'](_0x1f7dd7,_0x3ded83){const _0x3a63d8=_0x1f7dd7['filter'](_0x3ab30c=>!_0x3ab30c['isAdded']);for(let _0x19e30e=0x0;_0x19e30e<_0x3ded83['length'];_0x19e30e++)_0x3ded83[_0x19e30e]['isAdded']&&(_0x3a63d8[_0x19e30e]['isAdded']=_0x3ded83[_0x19e30e]['isAdded']);}['_getDiff'](_0x360258,_0x15c1ab=null){const _0x689506=this['repository']['getRevision'](_0x360258),_0x551c42=_0x15c1ab?this['repository']['getRevision'](_0x15c1ab):null,_0x54beef=this['_getRevisionsRange'](_0x689506,_0x551c42),_0x471d0a=_0x54beef[_0x54beef['length']-0x1],_0x208bce=new Map(),_0x1ee1c7={'model':{},'attributes':{},'changes':[]},_0x25fb49=new Set(),_0x14c082=new Map();for(let _0x253cb7=_0x54beef['length']-0x1;_0x253cb7>=0x0;_0x253cb7--){const _0x3f8f3f=_0x54beef[_0x253cb7];for(const _0x482087 of Object['keys'](_0x3f8f3f['diffData']))if(_0x3f8f3f['diffData'][_0x482087]['attachChange']){const _0x2bba93=_0x3f8f3f['diffData'][_0x482087]['attachChange'];_0x2bba93['isAttached']?(_0x25fb49['add'](_0x482087),_0x14c082['has'](_0x482087)&&_0x14c082['get'](_0x482087)['userId']==_0x2bba93['userId']?_0x14c082['delete'](_0x482087):_0x14c082['set'](_0x482087,_0x2bba93)):_0x14c082['has'](_0x482087)?(_0x25fb49['delete'](_0x482087),_0x14c082['delete'](_0x482087)):(_0x25fb49['add'](_0x482087),_0x14c082['set'](_0x482087,_0x2bba93));}else _0x25fb49['add'](_0x482087);}for(const _0x57525b of _0x25fb49){const _0x48d302=_0x14c082['has'](_0x57525b)&&!_0x14c082['get'](_0x57525b)['isAttached'];let _0x23d7e2=_0x48d302?_0x54beef['length']-0x1:0x0;const _0x54c725=_0x48d302?-0x1:0x1;for(;_0x54beef[_0x23d7e2];){const _0x4990f1=_0x54beef[_0x23d7e2];if(_0x4990f1['diffData'][_0x57525b]){const _0x517bb3=_0x48d302?_0x4990f1['diffData'][_0x57525b]['attributesBefore']:_0x4990f1['diffData'][_0x57525b]['attributesAfter'];_0x1ee1c7['attributes'][_0x57525b]=_0x517bb3?_0x45cab9(_0x517bb3):{};break;}_0x23d7e2+=_0x54c725;}}for(const _0x42cd83 of _0x54beef){_0x42cd83['model']={};for(const _0xfe99a9 of _0x42cd83['authors'])_0x208bce['set'](_0xfe99a9['id'],_0xfe99a9);for(const _0x152b5f of _0x25fb49){const _0x258c24=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['insertions']:'[]',_0x1443af=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['deletions']:'[]';_0x42cd83['model'][_0x152b5f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x258c24),'deletions':this['_utils']['_makeModelFromViewString'](_0x1443af)};}}for(const _0xadc881 of _0x25fb49){let _0x55414b=null,_0x341d1f=0x0;const _0x4d992a=new Map(Array['from'](_0x689506['model'][_0xadc881]['insertions']['markers'])['filter'](([_0x5f2540])=>!_0x5f2540['startsWith']('revision:')));let _0x1a3e0f=0x0;for(const _0x4330c5 of _0x54beef){const _0x1986b0=this['_makeTape'](_0x4330c5['model'][_0xadc881]['insertions']);_0x4330c5==_0x689506?(_0x55414b=_0x1986b0,_0x341d1f=_0x55414b['length'],_0x55414b['forEach'](_0x53679c=>{_0x53679c['id']=_0x1a3e0f++;}),this['_processTape'](_0x55414b)):this['_markInsertions'](_0x55414b,_0x1986b0);const _0x5e3a6a=_0x55414b['filter'](_0x213c25=>!_0x213c25['isAdded'])['map'](_0x33bd8e=>_0x33bd8e['id']);let _0x4ffeb4=0x0;const _0xa5d63b=this['_makeTape'](_0x4330c5['model'][_0xadc881]['deletions']);_0xa5d63b['forEach'](_0x5316d0=>{_0x5316d0['isRemoved']?_0x5316d0['id']=_0x341d1f++:_0x5316d0['id']=_0x5e3a6a[_0x4ffeb4++];}),this['_processTape'](_0xa5d63b),this['_setDistance'](_0x55414b,'isAdded'),this['_setDistance'](_0xa5d63b,'isRemoved'),_0x4330c5==_0x689506&&this['_markMarkers'](_0x55414b,_0x4d992a),_0x55414b=this['_joinTapes'](_0x55414b,_0xa5d63b),this['_refreshStartEndIndex'](_0x55414b),this['_setDistance'](_0x55414b,'isRemoved');}_0x55414b=_0x55414b['filter'](_0x49227a=>!(_0x49227a['isAdded']&&_0x49227a['isRemoved']));const _0x1897ec=new Map(_0x471d0a['model'][_0xadc881]['deletions']['markers']),_0x3cef64=new Set(_0x4d992a['keys']());for(const _0x37d321 of _0x1897ec['keys']())_0x3cef64['delete'](_0x37d321);this['_markSuggestions'](_0x55414b,_0x3cef64),this['_fixObsoleteTags'](_0x55414b),_0x55414b=this['_removeMissingPairs'](_0x55414b),_0x55414b=this['_markMismatchedRemovedTags'](_0x55414b),_0x55414b=this['_removeUnsupportedChanges'](_0x55414b);const {root:_0x5d0797,changes:_0x2e6de3}=this['_makeModelFromTape'](_0x55414b,_0x208bce,_0xadc881);_0x1ee1c7['model'][_0xadc881]=_0x5d0797;const _0x4aac27=_0x14c082['get'](_0xadc881);if(_0x4aac27){const _0x2c12b5=_0x208bce['get'](_0x4aac27['userId']),_0x5825d1=new r({'author':_0x2c12b5,'type':_0x4aac27['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xadc881});_0x2e6de3['unshift'](_0x5825d1),_0x1ee1c7['attributes'][_0xadc881]['revisionHistoryAttachChange']=_0x5825d1['id'];}_0x1ee1c7['changes']=_0x1ee1c7['changes']['concat'](_0x2e6de3);}return _0x1ee1c7;}['_markMarkers'](_0x3d2021,_0x108293){for(let _0xfa29=0x0;_0xfa29<_0x3d2021['length'];_0xfa29++)for(const [_0x17e767,_0x383f35]of _0x108293)!_0x383f35['isCollapsed']&&_0x383f35['start']['isEqual'](_0x3d2021[_0xfa29]['previousPosition'])&&_0x3d2021[_0xfa29]['markersStart']['push'](_0x17e767),_0x383f35['end']['isEqual'](_0x3d2021[_0xfa29]['nextPosition'])&&_0x3d2021[_0xfa29]['markersEnd']['push'](_0x17e767);}['_joinTapes'](_0x4636d2,_0x2845f6){let _0x5f1af5=[],_0x2d843f=0x0,_0x24e446=0x0;for(;_0x2d843f<_0x4636d2['length']||_0x24e446<_0x2845f6['length'];){const _0x1c4273=_0x4636d2[_0x2d843f]||{},_0x1285d2=_0x2845f6[_0x24e446]||{};if(_0x1c4273['id']==_0x1285d2['id'])_0x2d843f++,_0x24e446++,_0x5f1af5['push'](_0x1c4273);else{if(_0x1285d2['isRemoved']&&_0x1c4273['isAdded']){const {commonTape:_0x3f7a1a,iEnd:_0xa81141,jEnd:_0x2e1ab0}=this['_threeWayMerge'](_0x4636d2,_0x2d843f,_0x2845f6,_0x24e446);_0x5f1af5=_0x5f1af5['concat'](_0x3f7a1a),_0x2d843f=_0xa81141,_0x24e446=_0x2e1ab0;}else _0x1285d2['isRemoved']?(_0x24e446++,_0x5f1af5['push'](_0x1285d2)):(_0x2d843f++,_0x5f1af5['push'](_0x1c4273));}}return _0x5f1af5;}['_markSuggestions'](_0x24cf1d,_0x2aedfb){const _0x59e68c=[];for(let _0x5c658e=0x0;_0x5c658e<_0x24cf1d['length'];_0x5c658e++){for(let _0x52bc7e=0x0;_0x52bc7e<_0x24cf1d[_0x5c658e]['markersStart']['length'];_0x52bc7e++){const _0x1fd5fd=_0x24cf1d[_0x5c658e]['markersStart'][_0x52bc7e];if(!_0x2aedfb['has'](_0x1fd5fd))continue;const {group:_0x3e6f48,type:_0x549a5d,authorId:_0x3753f7}=_0x5dd60a(_0x1fd5fd);'revision-suggestion'!=_0x3e6f48||'insertion'!=_0x549a5d&&'deletion'!=_0x549a5d||(_0x59e68c['unshift']({'type':_0x549a5d,'name':_0x1fd5fd,'userId':_0x3753f7}),_0x24cf1d[_0x5c658e]['markersStart']['splice'](_0x52bc7e,0x1),_0x52bc7e--);}_0x9704c8(_0x24cf1d[_0x5c658e]);for(let _0x5d5e2c=0x0;_0x5d5e2c<_0x24cf1d[_0x5c658e]['markersEnd']['length'];_0x5d5e2c++){const _0x6a2c9=_0x24cf1d[_0x5c658e]['markersEnd'][_0x5d5e2c];if(!_0x2aedfb['has'](_0x6a2c9))continue;const {group:_0x50d6a1,type:_0x394bdc}=_0x5dd60a(_0x6a2c9);if('revision-suggestion'!=_0x50d6a1||'insertion'!=_0x394bdc&&'deletion'!=_0x394bdc)continue;_0x24cf1d[_0x5c658e]['markersEnd']['splice'](_0x5d5e2c,0x1),_0x5d5e2c--;const _0x23bcb1=_0x59e68c['findIndex'](_0x43fb8a=>_0x43fb8a['name']==_0x6a2c9);_0x23bcb1>-0x1&&_0x59e68c['splice'](_0x23bcb1,0x1);}}function _0x5dd60a(_0x1c8c4b){const _0x178282=_0x1c8c4b['split'](':');return{'group':_0x178282[0x0],'type':_0x178282[0x1],'subType':_0x178282['length']>=0x5?_0x178282[0x2]:null,'id':_0x178282['length']<0x5?_0x178282[0x2]:_0x178282[0x3],'authorId':_0x178282['length']<0x5?_0x178282[0x3]:_0x178282[0x4],'markerCount':0x6==_0x178282['length']?_0x178282[0x5]:null};}function _0x9704c8(_0x57d90b){for(let _0x323e92=0x0;_0x323e92<_0x59e68c['length'];_0x323e92++){if(_0x57d90b['isAdded']&&'insertion'==_0x59e68c[_0x323e92]['type'])return _0x57d90b['isAddSuggestion']=_0x59e68c[_0x323e92],void delete _0x57d90b['isAdded'];if(!_0x57d90b['isAdded']&&!_0x57d90b['isRemoved']&&'deletion'==_0x59e68c[_0x323e92]['type'])return void(_0x57d90b['isRemoveSuggestion']=_0x59e68c[_0x323e92]);}}}['_setDistance'](_0xe78b47,_0x26d243){let _0x260da6=0x0,_0x42e5b2=!0x1;const _0x153b6f=new Map();for(const _0x35d787 of _0xe78b47)_0x35d787[_0x26d243]?_0x42e5b2&&(_0x260da6++,_0x42e5b2=!0x1):(_0x260da6++,_0x42e5b2=!0x0),_0x153b6f['set'](_0x35d787['id'],_0x260da6);for(let _0x7944f9=0x0;_0x7944f9<_0xe78b47['length'];_0x7944f9++){if('isRemoved'==_0x26d243&&_0xe78b47[_0x7944f9]['isAdded']||'isAdded'==_0x26d243&&_0xe78b47[_0x7944f9]['isRemoved'])continue;if('text'==_0xe78b47[_0x7944f9]['type']){_0xe78b47[_0x7944f9]['distance']=0x0;continue;}const _0x3a06ee=_0x153b6f['get'](_0xe78b47[_0x7944f9]['pairId']),_0x5b557e=_0x153b6f['get'](_0xe78b47[_0x7944f9]['id']);_0xe78b47[_0x7944f9]['distance']=_0x3a06ee-_0x5b557e;}}['_getRevisionsRange'](_0x29fc40,_0x233569,_0x56f603=!0x1){const _0x9c85e4=[];let _0x3fcfdc=this['repository']['getIndex'](_0x29fc40),_0x9317ca=this['repository']['getIndex'](_0x233569);for(-0x1==_0x9317ca&&(_0x9317ca=this['repository']['_revisions']['length'],_0x56f603=!0x1);_0x3fcfdc<_0x9317ca;)_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x3fcfdc++;return _0x56f603&&_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x9c85e4;}['_threeWayMerge'](_0x1da89a,_0x24674a,_0x2bb646,_0x12afe1){const _0xe8ab2a=this['editor']['model']['schema'];let _0x293221=_0x24674a;for(;_0x1da89a[_0x293221]&&_0x1da89a[_0x293221]['isAdded'];)_0x293221++;let _0x113385=_0x12afe1;for(;_0x2bb646[_0x113385]&&_0x2bb646[_0x113385]['isRemoved'];)_0x113385++;_0x10c668(_0x1da89a,_0x24674a,_0x293221),_0x10c668(_0x2bb646,_0x12afe1,_0x113385);const _0xeec470=_0x2bb646['slice'](_0x12afe1,_0x113385)['concat'](_0x1da89a['slice'](_0x24674a,_0x293221));return _0xeec470['sort']((_0x1241fd,_0x5ce799)=>_0x1241fd['side']!=_0x5ce799['side']?_0x1241fd['side']-_0x5ce799['side']:_0x1241fd['level']!=_0x5ce799['level']?_0x1241fd['level']-_0x5ce799['level']:_0x1241fd['distance']!=_0x5ce799['distance']?_0x5ce799['distance']-_0x1241fd['distance']:!!_0x1241fd['isAdded']!=!!_0x5ce799['isAdded']?-0x1==_0x1241fd['side']||0x0==_0x1241fd['side']?_0x1241fd['isAdded']?-0x1:0x1:_0x1241fd['isAdded']?0x1:-0x1:_0x1241fd['index']-_0x5ce799['index']),{'commonTape':_0xeec470,'iEnd':_0x293221,'jEnd':_0x113385};function _0x10c668(_0x105ef7,_0x270b7b,_0x285c9e){let _0x421527=-0x1,_0x1c21e6=Number['POSITIVE_INFINITY'],_0x2b67c8=!0x0;for(let _0x3b018d=_0x270b7b;_0x3b018d<_0x285c9e;_0x3b018d++)if(_0xe8ab2a['isInline'](_0x105ef7[_0x3b018d]['item'])||(_0x2b67c8=!0x1),_0x105ef7[_0x3b018d]['item']['startIndex']<_0x270b7b&&(_0x421527=_0x3b018d),_0x105ef7[_0x3b018d]['item']['endIndex']>=_0x285c9e){_0x1c21e6=_0x3b018d;break;}_0x2b67c8&&(_0x421527=_0x285c9e-0x1);for(let _0xd25b56=_0x270b7b;_0xd25b56<_0x285c9e;_0xd25b56++)_0x105ef7[_0xd25b56]['side']=_0xd25b56<=_0x421527?-0x1:_0xd25b56<_0x1c21e6?0x0:0x1,_0x105ef7[_0xd25b56]['index']=_0xd25b56;let _0x194adf=0x0;for(let _0x53ef7d=_0x270b7b;_0x53ef7d<=_0x421527;_0x53ef7d++)0x0==_0x105ef7[_0x53ef7d]['distance']?_0x105ef7[_0x53ef7d]['level']=_0x194adf:(_0x194adf++,_0x105ef7[_0x53ef7d]['level']=_0x194adf,_0x194adf++);for(let _0x1c1cb6=_0x270b7b;_0x1c1cb6<_0x285c9e;_0x1c1cb6++)0x0==_0x105ef7[_0x1c1cb6]['side']&&(_0x105ef7[_0x1c1cb6]['level']=_0x194adf);_0x194adf=0x0;for(let _0x4e0318=_0x285c9e-0x1;_0x4e0318>=_0x1c21e6;_0x4e0318--)0x0==_0x105ef7[_0x4e0318]['distance']?_0x105ef7[_0x4e0318]['level']=_0x194adf:(_0x194adf--,_0x105ef7[_0x4e0318]['level']=_0x194adf,_0x194adf--);}}['_fixObsoleteTags'](_0x357422){const _0x3d0562=new Map(),_0x3bb24b=this['editor']['model']['schema'];for(let _0x287174=0x1;_0x287174<_0x357422['length'];_0x287174++){let _0xa0cd44,_0x152e69,_0x8bba15;const _0x5f0a45=_0x357422[_0x287174],_0x804c18=_0x357422[_0x287174-0x1];if('text'==_0x5f0a45['type'])continue;if(_0x5f0a45['type']!=_0x804c18['type'])continue;if(!_0x3bb24b['isBlock'](_0x804c18['item'])||_0x3bb24b['isLimit'](_0x804c18['item']))continue;if(!_0x3bb24b['isBlock'](_0x5f0a45['item'])||_0x3bb24b['isLimit'](_0x5f0a45['item']))continue;if((_0x357422[_0x287174]['isAdded']||_0x357422[_0x287174]['isAddSuggestion'])&&_0x357422[_0x287174-0x1]['isRemoved'])_0xa0cd44=_0x357422[_0x287174],_0x152e69=_0x357422[_0x287174-0x1],_0x8bba15=_0x287174-0x1;else{if(!_0x357422[_0x287174]['isRemoved']||!_0x357422[_0x287174-0x1]['isAdded']&&!_0x357422[_0x287174-0x1]['isAddSuggestion'])continue;_0xa0cd44=_0x357422[_0x287174-0x1],_0x152e69=_0x357422[_0x287174],_0x8bba15=_0x287174;}const _0x255202=_0xa0cd44['level']==_0x152e69['level'],_0x35c8b9=Math['abs'](_0xa0cd44['level'])<Math['abs'](_0x152e69['level'])&&0x0==_0x152e69['distance'];(_0x255202||_0x35c8b9)&&(_0x3d0562['set'](_0x152e69['id'],_0xa0cd44['id']),_0x357422['splice'](_0x8bba15,0x1),_0x287174--,_0xa0cd44['isAdded']=!0x1);}for(let _0x8ba8bb=0x0;_0x8ba8bb<_0x357422['length'];_0x8ba8bb++)_0x3d0562['has'](_0x357422[_0x8ba8bb]['pairId'])&&(_0x357422[_0x8ba8bb]['pairId']=_0x3d0562['get'](_0x357422[_0x8ba8bb]['pairId']));}['_removeMissingPairs'](_0xa5df4d){const _0x596112=new Set(_0xa5df4d['map'](_0x1b3f5a=>_0x1b3f5a['id']));for(let _0x473e04=0x0;_0x473e04<_0xa5df4d['length'];_0x473e04++)_0x596112['has'](_0xa5df4d[_0x473e04]['pairId'])||0x0==_0xa5df4d[_0x473e04]['distance']||(_0xa5df4d[_0x473e04]['isIncorrect']=!0x0);return _0xa5df4d['filter'](_0x53bd39=>!_0x53bd39['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35722f){const _0x3018c8=new Set();for(let _0x1b5540=0x0;_0x1b5540<_0x35722f['length'];_0x1b5540++){if(_0x3018c8['has'](_0x35722f[_0x1b5540]['id'])&&_0x35722f[_0x1b5540]['isRemoved']&&(_0x35722f[_0x1b5540]['isIncorrect']=!0x0),_0x35722f[_0x1b5540]['isIncorrect'])continue;if(0x0==_0x35722f[_0x1b5540]['distance'])continue;if('elementStart'!=_0x35722f[_0x1b5540]['type'])continue;if(null==_0x35722f[_0x1b5540]['pairId'])continue;let _0x58d91d=_0x1b5540+0x1,_0x22bbc4=0x0;for(;_0x35722f[_0x58d91d]['id']!=_0x35722f[_0x1b5540]['pairId'];)'elementStart'==_0x35722f[_0x58d91d]['type']?_0x22bbc4++:'elementEnd'==_0x35722f[_0x58d91d]['type']&&_0x22bbc4--,_0x58d91d++;if(0x0!=_0x22bbc4){if(_0x35722f[_0x1b5540]['isRemoved'])_0x35722f[_0x1b5540]['isIncorrect']=!0x0;else{for(;_0x58d91d!=_0x1b5540;)_0x35722f[_0x58d91d]['isRemoved']&&0x0!=_0x35722f[_0x58d91d]['distance']&&(_0x35722f[_0x58d91d]['isIncorrect']=!0x0,_0x3018c8['add'](_0x35722f[_0x58d91d]['pairId'])),_0x58d91d--;}}}return _0x35722f['filter'](_0x58dc82=>!_0x58dc82['isIncorrect']);}['_removeUnsupportedChanges'](_0x15039e){const _0x313f5c=this['editor']['model']['schema'];for(let _0x30483b=0x0;_0x30483b<_0x15039e['length'];_0x30483b++){if(!(_0x15039e[_0x30483b]['isAdded']||_0x15039e[_0x30483b]['isAddSuggestion']||_0x15039e[_0x30483b]['isRemoved']||_0x15039e[_0x30483b]['isRemoveSuggestion']))continue;if(0x0==_0x15039e[_0x30483b]['distance'])continue;const _0x3407fa=_0x15039e[_0x30483b]['item'];_0x313f5c['isBlock'](_0x3407fa)||_0x313f5c['isLimit'](_0x3407fa)||(_0x15039e[_0x30483b]['isAdded']&&delete _0x15039e[_0x30483b]['isAdded'],_0x15039e[_0x30483b]['isAddSuggestion']&&delete _0x15039e[_0x30483b]['isAddSuggestion'],_0x15039e[_0x30483b]['isRemoveSuggestion']&&delete _0x15039e[_0x30483b]['isRemoveSuggestion'],_0x15039e[_0x30483b]['isRemoved']&&(_0x15039e[_0x30483b]['isIncorrect']=!0x0));}return _0x15039e['filter'](_0x1b1265=>!_0x1b1265['isIncorrect']);}['_makeModelFromTape'](_0x9233a1,_0x3552bc,_0x4274a8){const _0x39fe64=new vt(),_0x5cceb2=[],_0x3bb58f=new Map(),_0x520313=this['editor']['model'],_0x9ba92a=_0x520313['schema'],_0x53c76e=[_0x39fe64],_0x3509d0={},_0x2d916d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x31776d=null;const _0x191f8b=[0x0];for(let _0x1847ab=0x0;_0x1847ab<_0x9233a1['length'];_0x1847ab++)if('elementStart'===_0x9233a1[_0x1847ab]['type']){_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);const _0x2ecd42=new ut(_0x9233a1[_0x1847ab]['item']['name'],_0x9233a1[_0x1847ab]['item']['getAttributes']());_0x53c76e[0x0]['_appendChild'](_0x2ecd42),_0x191f8b['push'](0x0),_0x53c76e['unshift'](_0x2ecd42),_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);}else'elementEnd'===_0x9233a1[_0x1847ab]['type']?(_0x53c76e['shift'](),_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x191f8b['pop'](),_0x191f8b[_0x191f8b['length']-0x1]++,_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b)):(_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x31776d?_0x31776d['_data']+=_0x9233a1[_0x1847ab]['item']['data']:_0x31776d=new gt(_0x9233a1[_0x1847ab]['item']['data'],_0x9233a1[_0x1847ab]['item']['getAttributes']()),_0x9233a1[_0x1847ab+0x1]&&'text'===_0x9233a1[_0x1847ab+0x1]['type']&&_0x46003d(_0x31776d,_0x9233a1[_0x1847ab+0x1]['item'])||(_0x53c76e[0x0]['_appendChild'](_0x31776d),_0x31776d=null),_0x191f8b[_0x191f8b['length']-0x1]+=_0x9233a1[_0x1847ab]['item']['offsetSize'],_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b));for(let _0x2f1d47=0x0;_0x2f1d47<_0x9233a1['length'];_0x2f1d47++){const _0x444112=_0x9233a1[_0x2f1d47]['previousPosition'],_0x5c1410=_0x9233a1[_0x2f1d47]['nextPosition'];for(const _0x1274cd of _0x9233a1[_0x2f1d47]['markersStart'])_0x3bb58f['set'](_0x1274cd,{'start':_0x444112,'end':null});_0x184a1f('isRemoveSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAddSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isRemoved',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAdded',_0x2f1d47,_0x444112,_0x5c1410);for(const _0x4e4b15 of _0x9233a1[_0x2f1d47]['markersEnd']){const _0x1fbf4d=_0x3bb58f['get'](_0x4e4b15);_0x1fbf4d?_0x1fbf4d['end']=_0x5c1410:_0x3bb58f['set'](_0x4e4b15,{'start':_0x5c1410,'end':_0x5c1410});}}for(const [_0x3614d9,_0x4200b4]of _0x3bb58f){const _0x19cfc4=this['editor']['model']['createRange'](_0x4200b4['start'],_0x4200b4['end']);_0x39fe64['markers']['set'](_0x3614d9,_0x19cfc4);}return _0x5cceb2['sort']((_0x4fc53,_0x1edc13)=>{const _0x8ad6ba=_0x39fe64['markers']['get']('revision:'+_0x4fc53['id']),_0x49409e=_0x39fe64['markers']['get']('revision:'+_0x1edc13['id']);return _0x8ad6ba['start']['isBefore'](_0x49409e['start'])?-0x1:_0x8ad6ba['start']['isAfter'](_0x49409e['start'])?0x1:_0x8ad6ba['end']['isBefore'](_0x49409e['end'])?-0x1:_0x8ad6ba['end']['isAfter'](_0x49409e['end'])?0x1:'add'===_0x4fc53['type']?-0x1:0x1;}),{'root':_0x39fe64,'changes':_0x5cceb2};function _0x184a1f(_0x77e3c,_0xb9f4aa,_0x4bfee2,_0x2ec67b){const _0x576a0=!!_0x9233a1[_0xb9f4aa][_0x77e3c],_0x19fe9b=_0x576a0?_0x9233a1[_0xb9f4aa][_0x77e3c]['userId']:null,_0x435ba7=_0xb9f4aa===_0x9233a1['length']-0x1,_0x3fc798=_0x2d916d[_0x77e3c][0x0],_0x467b89=_0x9ba92a['isObject'](_0x9233a1[_0xb9f4aa]['item']);!_0x3509d0[_0x77e3c]&&_0x576a0?_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}:_0x3509d0[_0x77e3c]&&!_0x576a0?(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null):_0x3509d0[_0x77e3c]&&_0x576a0&&_0x3509d0[_0x77e3c]['userId']!==_0x19fe9b&&(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x3fc798&&_0x3fc798['userId']===_0x3509d0[_0x77e3c]['userId']||_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}),_0x3509d0[_0x77e3c]&&_0x467b89&&('elementStart'!==_0x9233a1[_0xb9f4aa]['type']||_0x3fc798&&_0x3fc798['userId']===_0x19fe9b||_0x2d916d[_0x77e3c]['unshift']({'userId':_0x19fe9b,'object':_0x9233a1[_0xb9f4aa]['item'],'change':_0x3509d0[_0x77e3c]}),'elementEnd'===_0x9233a1[_0xb9f4aa]['type']&&_0x3fc798&&_0x3fc798['object']===_0x9233a1[_0xb9f4aa]['item']&&(_0x2d916d[_0x77e3c]['shift'](),_0x3509d0[_0x77e3c]=_0x3fc798['change'])),_0x3509d0[_0x77e3c]&&_0x435ba7&&(_0x3509d0[_0x77e3c]['end']=_0x2ec67b,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null);}function _0x4c4d08({start:_0x299305,end:_0x5f04f2,tapeItem:_0x309ec1,userId:_0x5afaae,type:_0x5ee6d5}){const _0x4644b2=_0x309ec1['item'],_0x234558=_0x520313['schema']['isBlock'](_0x4644b2)&&!_0x520313['schema']['isLimit'](_0x4644b2),_0x9589d9=_0x299305['nodeAfter']==_0x5f04f2['parent']&&_0x5f04f2['isAtStart'];if(_0x234558&&_0x9589d9)return;const _0x3ab5db=_0x520313['createRange'](_0x299305,_0x5f04f2),_0x3a207e=_0x3552bc['get'](_0x5afaae),_0xe2c4fc=new r({'author':_0x3a207e,'type':'isAdded'==_0x5ee6d5||'isAddSuggestion'==_0x5ee6d5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ee6d5||'isRemoveSuggestion'==_0x5ee6d5},'createdAt':new Date(),'rootName':_0x4274a8});_0x5cceb2['push'](_0xe2c4fc),_0x39fe64['markers']['set']('revision:'+_0xe2c4fc['id'],_0x3ab5db);}function _0x46003d(_0xb2008d,_0x2e1d97){const _0x35b169=_0xb2008d['getAttributes'](),_0x41d38c=_0x2e1d97['getAttributes']();for(const _0x3c920a of _0x35b169){if(_0x3c920a[0x1]!==_0x2e1d97['getAttribute'](_0x3c920a[0x0]))return!0x1;_0x41d38c['next']();}return _0x41d38c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3857fa=>{const _0x8a18a=_0x3857fa['markerName']['split'](':')[0x1],_0x406ac1=this['_getChangeFromId'](_0x8a18a);if(!_0x406ac1)return null;const _0x59f1c2='add'==_0x406ac1['type']?'insertion':'deletion',_0x4d7f09=['ck-suggestion-marker','ck-suggestion-marker-'+_0x59f1c2];return _0x406ac1['data']['isSuggestion']&&_0x4d7f09['push']('ck-suggestion-marker-'+_0x59f1c2+'-new'),this['activeChange']==_0x406ac1&&_0x4d7f09['push']('ck-suggestion-marker--active'),{'classes':_0x4d7f09,'attributes':{'data-change-id':_0x8a18a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x309733=>{_0x309733['on']('element:pre',(_0x42e95c,_0x36f3c1,_0x287f3e)=>{const _0x1574a6=_0x36f3c1['viewItem']['getChild'](0x0);if(!_0x1574a6||!_0x1574a6['is']('element','code'))return;if(!_0x287f3e['consumable']['consume'](_0x1574a6,{'attributes':['vid_start','vid_end']}))return;const _0x59fcc8=_0x36f3c1['modelRange']['start']['nodeAfter'];_0x287f3e['writer']['setAttribute']('vid_start',_0x1574a6['getAttribute']('vid_start'),_0x59fcc8),_0x287f3e['writer']['setAttribute']('vid_end',_0x1574a6['getAttribute']('vid_end'),_0x59fcc8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3148d9=>{_0x3148d9['on']('element',(_0x3fc268,_0x270342,_0x2a120c)=>{if(!_0x2a120c['consumable']['consume'](_0x270342['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x270342['modelRange']['isCollapsed'])return;const _0x44270f=_0x270342['modelRange']['start']['nodeAfter'];_0x44270f['hasAttribute']('vid_start')||_0x44270f['hasAttribute']('vid')||(_0x2a120c['writer']['setAttribute']('vid_start',_0x270342['viewItem']['getAttribute']('vid_start'),_0x44270f),_0x2a120c['writer']['setAttribute']('vid_end',_0x270342['viewItem']['getAttribute']('vid_end'),_0x44270f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x47485a=>_0x47485a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe0a140,[,_0x26e91d])=>{['vid_start','vid_end','vid']['includes'](_0x26e91d)&&(_0xe0a140['return']=!0x0,_0xe0a140['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x40fc41=>{_0x40fc41['on']('attribute:vid',(_0x453013,_0x196fd0,_0x9009a3)=>{if('\x20'!=_0x196fd0['item']['data']||_0x196fd0['item']['parent']['maxOffset']>0x1)return;if(!_0x9009a3['consumable']['consume'](_0x196fd0['item'],_0x453013['name']))return;const _0x1cdc38=_0x9009a3['writer'],_0x410986=_0x9009a3['mapper']['toViewRange'](_0x196fd0['range']);_0x1cdc38['wrap'](_0x410986,_0x1cdc38['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a0413){const _0x10b3c6=_0x1a0413['plugins']['get']('RevisionViewer');return(_0x40d708,_0x5249db,_0x5300fc)=>{const _0x119f0c=_0x5249db['markerName']['split'](':')[0x1],_0x4a88a0=_0x10b3c6['_getChangeFromId'](_0x119f0c);if(!_0x4a88a0)return null;const _0x45b0d2='add'==_0x4a88a0['type']?'split':'merge';if(!_0x5300fc['consumable']['test'](_0x5249db['markerRange'],_0x40d708['name']))return;const _0xc52478=_0x5249db['markerRange']['getWalker'](),_0xcc7fca=_0x5249db['markerRange']['start'],_0x2b2d65=_0x1a0413['model']['schema'];let _0x717947=null,_0xff2172=null,_0xb55069=!0x1,_0x36983c=!0x1;for(const _0x16f5bd of _0xc52478){const _0x1481f3=_0x16f5bd['item'];_0xb55069=_0xb55069||_0x2b2d65['isContent'](_0x1481f3);const _0x26292a=_0x5300fc['mapper']['toViewElement'](_0x1481f3);if(_0x26292a&&_0x26292a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16f5bd['type']&&(_0x2b2d65['isBlock'](_0x1481f3)&&!_0x2b2d65['isLimit'](_0x1481f3)&&(_0x1481f3['nextSibling']||_0xcc7fca['isAtEnd']?_0x717947&&_0x717947['parent']==_0x1481f3||(_0x717947=_0x1481f3,_0x437585(_0x16f5bd['previousPosition']),_0x36983c=!0x0):_0xff2172=_0xff2172||_0x16f5bd['previousPosition']));}function _0x437585(_0x2e1c2d){const _0x3e8428=_0x5300fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45b0d2}),_0x3845b7=_0x5300fc['mapper']['toViewPosition'](_0x2e1c2d);_0x4a88a0['data']['isSuggestion']&&_0x5300fc['writer']['addClass']('ck-suggestion-marker-'+_0x45b0d2+'-new',_0x3e8428),_0x10b3c6['activeChange']==_0x4a88a0&&_0x5300fc['writer']['addClass']('ck-suggestion-marker--active',_0x3e8428),_0x5300fc['writer']['insert'](_0x3845b7,_0x3e8428),_0x5300fc['mapper']['bindElementToMarker'](_0x3e8428,_0x5249db['markerName']);}_0xb55069||_0x36983c||!_0xff2172||_0x437585(_0xff2172);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19f967,_0x2b5ecf,_0x1190f5)=>{const _0x591715=_0x1190f5['mapper']['markerNameToElements'](_0x2b5ecf['markerName']);if(_0x591715){for(const _0x25f961 of _0x591715)(_0x25f961['hasClass']('ck-suggestion-marker-split')||_0x25f961['hasClass']('ck-suggestion-marker-merge'))&&(_0x1190f5['mapper']['unbindElementFromMarkerName'](_0x25f961,_0x2b5ecf['markerName']),_0x1190f5['writer']['remove'](_0x25f961));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f9268,_0x29cca5,_0x5a981b)=>{const _0x2f2d30=_0x29cca5['markerName']['split'](':')[0x1],_0x4c75d1=this['_getChangeFromId'](_0x2f2d30);if(!_0x4c75d1)return null;const _0x534d87='add'==_0x4c75d1['type']?'split':'merge';if(_0x5a981b['consumable']['test'](_0x29cca5['markerRange'],_0x4f9268['name']))for(const _0x48189b of _0x29cca5['markerRange']['getItems']()){if(!_0x48189b['is']('element','softBreak'))continue;const _0x5be92a=_0x5a981b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x534d87}),_0x46ebfd=_0x5a981b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x48189b));_0x4c75d1['data']['isSuggestion']&&_0x5a981b['writer']['addClass']('ck-suggestion-marker-'+_0x534d87+'-new',_0x5be92a),this['activeChange']==_0x4c75d1&&_0x5a981b['writer']['addClass']('ck-suggestion-marker--active',_0x5be92a),_0x5a981b['writer']['insert'](_0x46ebfd,_0x5be92a),_0x5a981b['mapper']['bindElementToMarker'](_0x5be92a,_0x29cca5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x190eca=>{for(const _0x340cbd of this['editor']['model']['document']['getRootNames']()){const _0x52eb06=this['editor']['model']['document']['getRoot'](_0x340cbd),_0x2442b8=this['editor']['editing']['view']['document']['getRoot'](_0x340cbd);if(_0x2442b8){const _0x7c9dc3=_0x52eb06['getAttribute']('revisionHistoryAttachChange');if(_0x190eca['removeAttribute']('data-change-id',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-add',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-remove',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root--active',_0x2442b8),_0x7c9dc3){const _0x505607=this['_getChangeFromId'](_0x7c9dc3);if(!_0x505607)return null;_0x190eca['setAttribute']('data-change-id',_0x7c9dc3,_0x2442b8),_0x190eca['addClass']('ck-revision-history-root-'+_0x505607['type'],_0x2442b8),this['activeChange']==_0x505607&&_0x190eca['addClass']('ck-revision-history-root--active',_0x2442b8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x484511=>'revision-comment:'+_0x484511,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2b69ed=>'revision-suggestion:'+_0x2b69ed,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1da415=>({'name':'suggestion:'+_0x1da415,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11b90d=>{const _0xcc870b=_0x11b90d['markerName']['split'](':')[0x1];return'insertion'!=_0xcc870b&&'deletion'!=_0xcc870b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcc870b]};}}),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',(_0x8f8971,_0x569444,_0x174f2)=>{const _0x271136=_0x174f2['mapper']['markerNameToElements'](_0x569444['markerName']);if(_0x271136){for(const _0x10733b of _0x271136)_0x10733b['is']('uiElement')&&(_0x174f2['mapper']['unbindElementFromMarkerName'](_0x10733b,_0x569444['markerName']),_0x174f2['writer']['remove'](_0x10733b));}},{'priority':'high'});}['_getChangeFromId'](_0x5275e8){return this['_changeIdToChange']['get'](_0x5275e8);}['_getViewForChange'](_0x11ba44){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x11ba44),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e43d8,_0x51d446,_0x14deac,_0x21d1e9)=>{_0x21d1e9&&this['_balloon']['remove'](_0x21d1e9),_0x14deac&&(this['_balloon']['add']({'view':_0x14deac,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4e02e0=this['editor']['editing'],_0x5655cb=this['_getChangeFromId'](_0x14deac['changeId']);let _0x1dd5c6;if(_0x5655cb['data']['isOnRoot']){const _0xabf462=_0x4e02e0['view']['getDomRoot'](_0x5655cb['rootName']);_0x1dd5c6=Array['from'](_0xabf462['getClientRects']());}else{const _0x50b541=this['editor']['model']['markers']['get']('revision:'+_0x14deac['changeId']);_0x1dd5c6=Array['from'](_0x4e02e0['mapper']['markerNameToElements'](_0x50b541['name']))['map'](_0x2965d1=>_0x4e02e0['view']['domConverter']['mapViewToDom'](_0x2965d1))['map'](_0x3632c7=>Array['from'](_0x3632c7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dd5c6[0x0];return _0x1dd5c6['find'](_0x196d2c=>_0x196d2c['top']-0x3<=this['_activeViewTarget']['y']&&_0x196d2c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x196d2c['left']-0x3<=this['_activeViewTarget']['x']&&_0x196d2c['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dd5c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3ea215,_0x56a9ae,_0x9a22b3,_0x276e7a)=>{this['activeView']=_0x9a22b3?this['_getViewForChange'](_0x9a22b3):null,this['editor']['model']['change'](()=>{const _0x5da82e=this['editor']['editing'];_0x276e7a&&(_0x276e7a['data']['isOnRoot']?_0x5da82e['view']['change'](_0x2f184a=>{_0x2f184a['removeClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x276e7a['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x276e7a['id'])),_0x9a22b3&&(_0x9a22b3['data']['isOnRoot']?_0x5da82e['view']['change'](_0x4998b0=>{_0x4998b0['addClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x9a22b3['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x9a22b3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38b90f,_0x5798dd)=>{if(this['activeChange'])return;const _0x431df6=this['_findChangeIdFromDomTarget'](_0x5798dd['target']),_0xe44faa=this['_changeIdToChange']['get'](_0x431df6);_0xe44faa?(this['_activeViewTarget']={'x':_0x5798dd['domEvent']['x'],'y':_0x5798dd['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe44faa)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c195e,_0x17fa9c)=>{const _0x45e858=this['_findChangeIdFromDomTarget'](_0x17fa9c['target']),_0x33772b=this['_changeIdToChange']['get'](_0x45e858);_0x33772b?(this['_activeViewTarget']={'x':_0x17fa9c['domEvent']['x'],'y':_0x17fa9c['domEvent']['y']},_0x33772b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x33772b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c607d){do{const _0x4312da=_0x4c607d['getAttribute']('data-change-id');if(_0x4312da)return _0x4312da;_0x4c607d=_0x4c607d['parent'];}while(_0x4c607d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1572a8=>{for(const _0x4ed9c3 of this['editor']['model']['markers'])_0x1572a8['removeMarker'](_0x4ed9c3);});}}function X(_0x31a37e,_0x2b0c29){return(_0x394f08,_0x210121,_0x34cb9a)=>{if(!_0x34cb9a['consumable']['test'](_0x210121['markerRange'],_0x394f08['name']))return;const _0x29808f=_0x210121['markerRange']['getWalker'](),_0x47d7cb=_0x210121['markerRange']['start'],_0x2d20be=_0x31a37e['model']['schema'];let _0x1bfac4=null,_0x52e580=null,_0xb348ec=!0x1,_0xe49420=!0x1;for(const _0x3c7fa2 of _0x29808f){const _0x5a10cd=_0x3c7fa2['item'];_0xb348ec=_0xb348ec||_0x2d20be['isContent'](_0x5a10cd);const _0x3f22e6=_0x34cb9a['mapper']['toViewElement'](_0x5a10cd);if(_0x3f22e6&&_0x3f22e6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c7fa2['type']&&(_0x2d20be['isBlock'](_0x5a10cd)&&!_0x2d20be['isLimit'](_0x5a10cd)&&(_0x5a10cd['nextSibling']||_0x47d7cb['isAtEnd']?_0x1bfac4&&_0x1bfac4['parent']==_0x5a10cd||(_0x1bfac4=_0x5a10cd,_0x3b04a2(_0x3c7fa2['previousPosition']),_0xe49420=!0x0):_0x52e580=_0x52e580||_0x3c7fa2['previousPosition']));}function _0x3b04a2(_0x26f2a7){const _0x3fdd5c=_0x34cb9a['mapper']['toViewPosition'](_0x26f2a7),_0x3dc52f=_0x34cb9a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b0c29});_0x34cb9a['writer']['insert'](_0x3fdd5c,_0x3dc52f),_0x34cb9a['mapper']['bindElementToMarker'](_0x3dc52f,_0x210121['markerName']);}_0xb348ec||_0xe49420||!_0x52e580||_0x3b04a2(_0x52e580);};}class mt extends _0x594d33{constructor(_0x4b722f){super(_0x4b722f);const _0x4d241c=_0x4b722f['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4d241c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d241c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x55e39e=this['editor'],_0x46039a=_0x55e39e['plugins']['get'](m),_0x17a69f=_0x46039a['isReady']?_0x46039a['diff']['newRevisionId']:null;_0x55e39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17a69f);}['refresh'](){const {isReady:_0x4b0614,isEnabled:_0x2771c0,repository:_0x3b7a8c,diff:_0x1ce1aa}=this['editor']['plugins']['get'](m),_0x507636=_0x1ce1aa&&_0x3b7a8c['getLaterVisibleRevision'](_0x1ce1aa['newRevisionId']);this['isEnabled']=_0x4b0614&&_0x2771c0&&Boolean(_0x507636);}}class wt extends _0x594d33{['_step'];constructor(_0x1fbba4,{direction:_0x182a6c}){super(_0x1fbba4);const _0x2271d9=_0x1fbba4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x182a6c?0x1:-0x1,this['listenTo'](_0x2271d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e5614=this['editor'],_0x402185=_0x4e5614['plugins']['get'](m),{isNavigationMode:_0x1f6f6e,currentChangeNumber:_0x4ef815}=_0x402185;let _0x8818ec;if(_0x402185['activeChange']=_0x1f6f6e?_0x402185['diff']['changes']['get'](_0x4ef815+this['_step']):_0x402185['diff']['changes']['first'],_0x402185['activeChange']['data']['isOnRoot'])_0x8818ec=_0x4e5614['editing']['view']['getDomRoot'](_0x402185['activeChange']['rootName']);else{const _0xdc5cc5=_0x4e5614['model']['markers']['get']('revision:'+_0x402185['activeChange']['id']);_0x8818ec=_0x504600(_0x4e5614['editing'],_0xdc5cc5);}_0x39a608({'target':_0x8818ec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3581db,currentChangeNumber:_0x395de2,numberOfChanges:_0xe69d13,isReady:_0x956f78,isEnabled:_0x2cf4da}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2cf4da&&_0x956f78&&_0xe69d13)&&(!_0x3581db||(0x1===this['_step']?_0x395de2<_0xe69d13-0x1:_0x395de2>0x0));}}class _i extends ts{constructor(_0x18281d){super(_0x18281d);const _0x3534f3=this['bindTemplate'],_0x566f6d=new te(_0x18281d),_0x137578=new te(_0x18281d);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',(_0xcfb687,_0x129e53)=>_0xcfb687&&_0x129e53>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35acc4,_0x20569b,_0x2c1b76,_0x5dc15f)=>{if(!_0x35acc4)return g(_0x18281d,'Loading...');if(!_0x2c1b76)return g(_0x18281d,'No\x20changes');const _0x19b4d5=g(_0x18281d,'NUMBER_OF_CHANGES',_0x2c1b76);return _0x5dc15f?g(_0x18281d,'X_OF_Y_CHANGES',[_0x20569b+0x1,_0x2c1b76]):_0x19b4d5;}),_0x566f6d['set']({'label':g(_0x18281d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x23ce80}),_0x137578['set']({'label':g(_0x18281d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x15754f}),_0x566f6d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x137578['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x566f6d['on']('execute',()=>this['fire']('execute','backward')),_0x137578['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',_0x3534f3['if']('_isStatusLabelVisible','ck-hidden',_0x4b4676=>!_0x4b4676)]},'children':[{'text':_0x3534f3['to']('isNavigationMode',_0x449042=>_0x449042?g(_0x18281d,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x18281d,'Total')+':\x20')}]},{'text':_0x3534f3['to']('_statusText')}]},new _0x3d06e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x566f6d,_0x137578]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x252983=this['editor']['editing']['view'];_0x252983['change'](_0xee90d1=>{for(const _0x20272a of _0x252983['document']['roots'])_0xee90d1['addClass'](le,_0x20272a);});}['hide'](){const _0x597db3=this['editor']['editing']['view'];_0x597db3['change'](_0x482b2c=>{for(const _0x52e6e4 of _0x597db3['document']['roots'])_0x482b2c['removeClass'](le,_0x52e6e4);});}}class R extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2f442a=this['editor'],_0x510bf6=_0x2f442a['plugins']['get'](m),_0x13ab57=_0x2f442a['plugins']['get'](ge);_0x2f442a['ui']['componentFactory']['add']('exitToEditing',_0x12acd1=>{const _0x240134=new te(_0x12acd1);return _0x240134['set']({'label':g(_0x12acd1,'Back\x20to\x20editing'),'icon':_0x314236,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x240134,'execute',()=>{_0x2f442a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x240134;}),_0x2f442a['ui']['componentFactory']['add']('restoreRevision',_0x4476ce=>{const _0x42c8eb=new te(_0x4476ce);return _0x42c8eb['set']({'label':g(_0x4476ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42c8eb['bind']('isEnabled')['to'](_0x2f442a['commands']['get']('restoreRevision')),this['listenTo'](_0x42c8eb,'execute',()=>_0x2f442a['execute']('restoreRevision')),_0x42c8eb;}),_0x2f442a['ui']['componentFactory']['add']('changesNavigation',_0x9b9c70=>{const _0x1a0e8b=new _i(_0x9b9c70),_0x287f36=_0x2f442a['commands']['get']('showPreviousChange'),_0x4a5ac5=_0x2f442a['commands']['get']('showNextChange');return _0x1a0e8b['bind']('isBackwardNavigationEnabled')['to'](_0x287f36,'isEnabled'),_0x1a0e8b['bind']('isForwardNavigationEnabled')['to'](_0x4a5ac5,'isEnabled'),_0x1a0e8b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x510bf6),this['listenTo'](_0x1a0e8b,'execute',(_0x29f267,_0x21f463)=>{_0x2f442a['execute']('forward'===_0x21f463?'showNextChange':'showPreviousChange');}),_0x1a0e8b;}),_0x13ab57['show'](),_0x510bf6['on']('change:isReady',(_0x55443b,_0x2c436f,_0x33e162)=>{_0x33e162?_0x13ab57['hide']():_0x13ab57['show']();});}}class at extends _0x38e6de{['_resizeObserver']=null;constructor(_0x20d92e,_0xd510db){super(_0x20d92e,_0xd510db);const _0x2f7a73=this['bindTemplate'];this['set']({'label':g(_0x20d92e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x20d92e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2f7a73['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 _0x4ac899=this['fieldView']['element'];this['_tooltipString']=_0x4ac899['scrollWidth']>_0x4ac899['clientWidth']&&_0x4ac899['value']||'';}}class si extends ts{constructor(_0x25cac6,_0x352094,_0x54828d){super(_0x25cac6);const _0x4af8b0=new _0x266c4f();_0x4af8b0['set']({'content':_0xb2492c,'viewBox':'0\x200\x2011\x2010'});const _0x2f80fc=['ck','ck-revision-history-sidebar__revision-author'];_0x54828d&&_0x2f80fc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x29a8ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x25cac6,_0x54828d?'Revision\x20creator':'Revision\x20author')},'children':[_0x4af8b0,_0x352094['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2f80fc},'children':_0x29a8ab});}}function oi(_0x2f1169,_0x20f165){const _0x681f91=_0x2f1169['bindTemplate'],_0x100a59=_0x2f1169['locale'],_0x57164a=_0xd7ef31(_0x100a59);_0x57164a['panelPosition']='sw';const _0x2292f0=function(_0x20543b,_0x584ad4){const _0x48c7e8=function(_0x41f5f4,_0x324db1){const _0xa835f9=_0x41f5f4['locale'],_0xff457b={'Compare\x20against\x20selected':g(_0xa835f9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xa835f9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xa835f9,'Restore\x20this\x20revision')};return _0x324db1['map'](_0x4c1068=>{const _0xca596=_0xff457b[_0x4c1068['name']];return _0xca596&&_0xca596!==_0x4c1068['name']&&(_0x4c1068['name']=_0xca596),_0x4c1068;});}(_0x20543b,_0x584ad4),_0x4faf07=new _0x18d259();for(const _0x34a15e of _0x48c7e8){const _0x309964={'type':'button','model':new to({'label':_0x34a15e['name'],'class':_0x34a15e['class'],'withText':!0x0,'role':'menuitem','_action':_0x34a15e['action']})};_0x309964['model']['bind']('isEnabled')['to'](_0x20543b,'isActionsDropdownOpen',_0x240aca=>'function'!=typeof _0x34a15e['isEnabled']||(!_0x240aca||_0x34a15e['isEnabled'](_0x20543b))),_0x4faf07['add'](_0x309964);}return _0x4faf07;}(_0x2f1169,_0x20f165);return _0x2f1169['bind']('isActionsDropdownOpen')['to'](_0x57164a,'isOpen'),_0x57164a['buttonView']['set']({'label':g(_0x100a59,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4cc44b}),_0x57164a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x681f91['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x681f91['to'](_0x5fbe8f=>_0x5fbe8f['stopPropagation']())}}),_0x57164a['on']('execute',_0x3c78d7=>{_0x2f1169['isReady']&&'function'==typeof _0x3c78d7['source']['_action']&&_0x3c78d7['source']['_action'](_0x2f1169);}),_0x3d1927(_0x57164a,_0x2292f0,{'role':'menu'}),_0x57164a['listenTo'](_0x2f1169,'change:isActionsDropdownOpen',(_0x302d32,_0xc663bc,_0x38151b)=>{if(_0x38151b)for(const _0x542a8e of _0x57164a['listView']['items']){const _0x190c5c=_0x542a8e['children']['first'],_0x57ca4f=_0x20f165['find'](_0x4c5380=>_0x4c5380['action']===_0x190c5c['_action'])['isVisible'];_0x542a8e['isVisible']=void 0x0===_0x57ca4f||_0x57ca4f(_0x2f1169);}}),_0x57164a;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x30cbeb,_0x4c19a0,_0x4c4551,_0x3c975f){super(_0x30cbeb);const _0x5db06c=this['bindTemplate'],_0x14cbec=function(_0x54b19d,_0x4dde78){const _0x354443=Array['from'](_0x4dde78['authors'])['filter'](_0x177b85=>_0x177b85!=_0x4dde78['creator']);return _0x4dde78['creator']&&_0x354443['unshift'](_0x4dde78['creator']),_0x354443['map'](_0xae025d=>new si(_0x54b19d,_0xae025d,_0xae025d==_0x4dde78['creator']));}(_0x30cbeb,_0x4c19a0);this['id']=_0x4c19a0['id'],this['_revision']=_0x4c19a0,this['_requireRevisionName']=_0x3c975f,this['bind']('name','createdAt')['to'](_0x4c19a0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x42f116=>{return _0x201ae2=_0x30cbeb['uiLanguage'],(_0x1a75c8=_0x42f116)['toLocaleDateString'](_0x201ae2,{'month':'long','day':'numeric'})+',\x20'+_0x1a75c8['toLocaleTimeString'](_0x201ae2,{'hour':'numeric','minute':'numeric'});var _0x201ae2,_0x1a75c8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x30cbeb,_0x1e4d55),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xb7e92b=>_0xb7e92b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x563c43,_0x50071f)=>_0x563c43&&_0x50071f),this['revisionActionsView']=_0x4c4551&&_0x4c4551['length']?oi(this,_0x4c4551):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5db06c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5db06c['if']('isEnabled','ck-disabled',_0x1f857f=>!_0x1f857f),_0x5db06c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5db06c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5db06c['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':_0x5db06c['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':_0x14cbec}]},this['revisionActionsView']],'on':{'click':_0x5db06c['to'](_0x263d87=>{_0x263d87['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x399f72=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x399f72,'change',()=>{this['_requireRevisionName']&&!_0x399f72['value']||this['fire']('setName',{'id':this['id'],'name':_0x399f72['value']}),_0x399f72['value']||(_0x399f72['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(_0xcfa58d,_0x915a4f){const _0x262766=_0x27ef4e['fromJSDate'](_0xcfa58d)['setLocale'](_0x915a4f),_0x23d7c7=_0x27ef4e['local'](),_0xf2f148=_0x23d7c7['minus']({'days':0x1})['startOf']('day');let _0xf3f27,_0x527425;return _0x262766['hasSame'](_0x23d7c7,'day')?(_0xf3f27=_0x262766['startOf']('day')['toJSDate'](),_0x527425=_0x262766['toRelativeCalendar']()):_0x262766['hasSame'](_0xf2f148,'day')?(_0xf3f27=_0xf2f148['toJSDate'](),_0x527425=_0x262766['toRelativeCalendar']()):_0x262766['hasSame'](_0x23d7c7,'week')?(_0xf3f27=_0x262766['startOf']('week')['toJSDate'](),_0x527425=_0x262766['weekdayLong']||''):_0x262766['hasSame'](_0x23d7c7,'year')?(_0xf3f27=_0x262766['startOf']('month')['toJSDate'](),_0x527425=_0x262766['monthLong']||''):(_0xf3f27=_0x262766['startOf']('year')['toJSDate'](),_0x527425=String(_0x262766['year'])),{'startDate':_0xf3f27,'localizedPeriodName':_0x527425};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3b1467,_0x3abe31,_0x113f87,_0x10cc27){super(_0x3b1467);const _0x4c3169=ai(_0x3abe31,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3abe31,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x113f87,this['_requireRevisionName']=_0x10cc27,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':_0x4c3169}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54f64a){const _0x51d954=new hi(this['locale'],_0x54f64a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x51d954);}['removeRevision'](_0x21fb01){const _0x150d23=this['revisionViews']['find'](_0x33926b=>_0x33926b['id']===_0x21fb01['id']);this['revisionViews']['remove'](_0x150d23);}}class as extends ts{constructor(_0x59d544){super(_0x59d544);const _0x2ba111=new _0x266c4f();_0x2ba111['content']=_0x3a8444,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2ba111,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x59d544,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4195e9,_0x2c0d69,_0x650eb,_0x3465ec){super(_0x4195e9);const _0x228295=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2c0d69,this['_revisionActions']=_0x650eb,this['_requireRevisionName']=_0x3465ec,this['on']('select',(_0x59d771,_0x50cf26)=>{this['fire']('revisionSelected',_0x50cf26);}),this['on']('setName',(_0x3b2bd6,_0x68dd50)=>{this['fire']('revisionSetName',_0x68dd50);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4195e9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x228295['if']('isEnabled','ck-disabled',_0x5d4a3a=>!_0x5d4a3a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x401dbb of this['_revisions'])this['_addRevision'](_0x401dbb);this['_revisions']['on']('add',(_0x2c4304,_0x2a8d21)=>{this['_addRevision'](_0x2a8d21);}),this['_revisions']['on']('remove',(_0x1de470,_0x22151f)=>{this['_removeRevision'](_0x22151f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1599d5=>_0x1599d5['revisionViews']['map'](_0x1cd352=>_0x1cd352))['flat']();}['selectRevision'](_0x140fd0){for(const _0x46777c of this['revisionViews'])_0x140fd0&&_0x140fd0['id']===_0x46777c['id']?_0x46777c['select']():_0x46777c['deselect']();}['highlightRevisions'](_0x4c3e67){for(const _0x2acd3e of this['revisionViews'])_0x4c3e67['some'](({id:_0x5236e7})=>_0x5236e7===_0x2acd3e['id'])?_0x2acd3e['highlight']():_0x2acd3e['unhighlight']();}['_addRevision'](_0x588957){const _0x415c80=ai(_0x588957['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36939d=this['timePeriodViews']['get'](0x0);_0x36939d&&_0x36939d['startDate']['getTime']()===_0x415c80['getTime']()||(_0x36939d=new di(this['locale'],_0x415c80,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36939d)),_0x36939d['addRevision'](_0x588957);}['_removeRevision'](_0x2ee8c1){const _0x271d9a=ai(_0x2ee8c1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x271d9a)['removeRevision'](_0x2ee8c1);}['_getTimePeriodViewByStartDate'](_0x44e9d7){return this['timePeriodViews']['find'](_0x1e0c3a=>_0x1e0c3a['startDate']['getTime']()===_0x44e9d7['getTime']());}}class d extends _0x59ac4e{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xaad3d0,uid as _0x5ca89b,Collection as _0x90db85,logWarning as _0x4704bb,FocusTracker as _0x4ecfb8,KeystrokeHandler as _0x52968a,scrollViewportToShowTarget as _0x47d889,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x388298}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3a2169,set as _0x1c9e7c,unset as _0x22d5ae,isEqual as _0x4d45c0}from'es-toolkit/compat';import{Plugin as _0x2a63bd,PendingActions as _0x57bfdc,Command as _0x59b140,ElementApiMixin as _0x5786a9,Editor as _0x27b4aa}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x25042d,getMarkerDomElement as _0x4163f9,ConfirmMixin as ti,sanitizeEditorConfig as _0x535da6}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3fadd9,ViewAttributeElement as _0x79f717,ViewEmptyElement as _0x16009b,ViewRawElement as _0x42d3b3,ViewUIElement as _0x28aad4,ViewDocumentFragment as _0x4023e0,ViewText as _0x21bfaf,ViewElement as _0x234af1,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 _0x3e3e17,IconChevronUp as _0x572eae,IconChevronDown as _0x27e49a,IconUndo as _0x10e1d9,IconUser as _0x431fd6,IconThreeVerticalDots as _0x22193b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xdfa429,submitHandler as _0xb211c2,LabeledFieldView as _0x370644,createLabeledInputText as _0x342059,createDropdown as _0x146e16,ListView as _0x176c2f,ListItemView as _0x12bd81,ButtonView as te,MenuBarMenuView as _0x2204e8,MenuBarMenuListView as _0x203e50,MenuBarMenuListItemView as _0x588799,MenuBarMenuListItemButtonView as _0x59fdc2,ContextualBalloon as _0x810963,ToolbarSeparatorView as _0x2a7398,IconView as _0x5b36d2,addListToDropdown as _0x2b4910,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 _0x55426a}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0xaad3d0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1be082){super(),this['id']=_0x1be082['id']||_0x5ca89b(),this['creator']=_0x1be082['creator']||null,this['authors']=_0x1be082['authors']||[],this['diffData']=_0x1be082['diffData']||null,this['toVersion']=_0x1be082['toVersion']||0x0,this['fromVersion']=_0x1be082['fromVersion']||0x0,this['set']('name',_0x1be082['name']||''),this['set']('createdAt',_0x1be082['createdAt']||new Date()),this['set']('attributes',_0x1be082['attributes']||{});}['setName'](_0x5e7854){this['_update']({'name':_0x5e7854});}['setAttribute'](_0x45335f,_0x3cda25){const _0x5dc7c7=_0x3a2169(this['attributes']);_0x1c9e7c(_0x5dc7c7,_0x45335f,_0x3cda25),this['_update']({'attributes':_0x5dc7c7});}['removeAttribute'](_0x367f9f){const _0x4fae6b=_0x3a2169(this['attributes']);_0x22d5ae(_0x4fae6b,_0x367f9f),this['_update']({'attributes':_0x4fae6b});}['_update'](_0x2aae56,_0x4ddc08=!0x1){let _0x535ee6=!0x1;const _0x3232eb={'id':this['id']},_0x555070=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x550044 of _0x555070){const _0x5857d4=_0x2aae56[_0x550044];void 0x0!==_0x5857d4&&_0x5857d4!==this[_0x550044]&&(this[_0x550044]=_0x5857d4,_0x3232eb[_0x550044]=_0x5857d4,_0x535ee6=!0x0);}_0x535ee6&&(_0x3232eb['authors']&&(_0x3232eb['authorsIds']=_0x3232eb['authors']['map'](_0x59ef37=>_0x59ef37['id']),delete _0x3232eb['authors']),this['fire']('_update',_0x3232eb,_0x4ddc08));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc75708=>_0xc75708['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x2a63bd{['_revisions'];static get['requires'](){return[_0x25042d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x533993){super(_0x533993),this['_revisions']=new _0x90db85();}['afterInit'](){!async function(_0x1dc611){const _0x43b31c=_0x436867([0x75,0x31,0x70,0x30,0x59,0x38,0x51,0x6c,0x35,0x46,0x39,0x54,0x57,0x76,0x42,0x64,0x48,0x6e,0x34,0x50,0x72,0x6f,0x69,0x62,0x4f,0x6b,0x56,0x79,0x61,0x41,0x4a,0x6a,0x58,0x55,0x74,0x53,0x66,0x43,0x6d,0x32,0x67,0x77,0x37,0x71,0x78,0x4d,0x73,0x47,0x33,0x52,0x65,0x44,0x4b,0x7a,0x5a,0x36,0x4c,0x4e,0x68,0x49,0x45,0x63]),_0x65fd48=0xeb829,_0x7666ab=0x4734dc8c,_0x500dba=0x4733badc^_0x7666ab,_0x2fa1f7=window[_0x436867([0x44,0x61,0x74,0x65])][_0x436867([0x6e,0x6f,0x77])](),_0x2c925d=_0x1dc611[_0x436867([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x63b93=new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c76e=>{_0x2c925d[_0x436867([0x6f,0x6e,0x63,0x65])](_0x436867([0x72,0x65,0x61,0x64,0x79]),_0x22c76e);}),_0x2361d8={[_0x436867([0x6b,0x74,0x79])]:_0x436867([0x45,0x43]),[_0x436867([0x75,0x73,0x65])]:_0x436867([0x73,0x69,0x67]),[_0x436867([0x63,0x72,0x76])]:_0x436867([0x50,0x2d,0x32,0x35,0x36]),[_0x436867([0x78])]:_0x436867([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]),[_0x436867([0x79])]:_0x436867([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]),[_0x436867([0x61,0x6c,0x67])]:_0x436867([0x45,0x53,0x32,0x35,0x36])},_0x21d959=_0x2c925d[_0x436867([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x436867([0x67,0x65,0x74])](_0x436867([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x546d68(){let _0x14de31,_0x59bb86=null,_0x2414f8=null;try{if(_0x21d959==_0x436867([0x47,0x50,0x4c]))return _0x436867([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14de31=_0x51bfae(),!_0x14de31)return _0x436867([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14de31[_0x436867([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2414f8=_0x445f5e(_0x14de31[_0x436867([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14de31[_0x436867([0x6a,0x74,0x69])])),await _0x480a32()?_0x44fac5()?_0x145f48()?_0x436867([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6c7aa5()?(_0x14de31[_0x436867([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x436867([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59bb86=_0x5ec1ba(_0x436867([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14de31[_0x436867([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x436867([0x74,0x72,0x69,0x61,0x6c])&&(_0x59bb86=_0x5ec1ba(_0x436867([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x265969()):_0x436867([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x436867([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x436867([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x13d3f0){return _0x436867([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x145f48(){const _0x4e3cb8=[_0x436867([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x436867([0x74,0x72,0x69,0x61,0x6c])][_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de31[_0x436867([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fa1f7/0x3e8:0xe10*_0x500dba;return _0x14de31[_0x436867([0x65,0x78,0x70])]<_0x4e3cb8;}function _0x44fac5(){const _0x4e6ab2=_0x14de31[_0x436867([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e6ab2)return!0x1;if(_0x4e6ab2[_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x436867([0x2a])))return!0x0;if(_0x4e6ab2[_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x436867([0x52,0x48])))return!0x0;if(_0x4e6ab2[_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x436867([0x52,0x52,0x48]))){if(_0x2acbcd())return!0x0;if(_0x2bafb6()||_0x5f0dee())return!0x0;}return!0x1;}function _0x6c7aa5(){const _0x18020e=_0x14de31[_0x436867([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18020e||0x0==_0x18020e[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc6b51}=new URL(window[_0x436867([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18020e[_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6b51))return!0x0;const _0x53770d=_0xc6b51[_0x436867([0x73,0x70,0x6c,0x69,0x74])](_0x436867([0x2e]));return _0x18020e[_0x436867([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f7408=>_0x1f7408[_0x436867([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x436867([0x2a])))[_0x436867([0x6d,0x61,0x70])](_0x230f58=>_0x230f58[_0x436867([0x73,0x70,0x6c,0x69,0x74])](_0x436867([0x2e])))[_0x436867([0x73,0x6f,0x6d,0x65])](_0x29a853=>_0x53770d[_0x436867([0x65,0x76,0x65,0x72,0x79])]((_0x38acb4,_0x128394)=>_0x29a853[_0x128394]===_0x38acb4||_0x29a853[_0x128394]===_0x436867([0x2a])));}function _0x265969(){return _0x59bb86&&_0x2414f8?new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39bcf7,_0x32ddc6)=>{_0x59bb86[_0x436867([0x74,0x68,0x65,0x6e])](_0x39bcf7,_0x32ddc6),_0x2414f8[_0x436867([0x74,0x68,0x65,0x6e])](_0x39039f=>{_0x39039f!=_0x436867([0x56,0x61,0x6c,0x69,0x64])&&_0x39bcf7(_0x39039f);},_0x32ddc6);}):_0x59bb86||_0x2414f8||_0x436867([0x56,0x61,0x6c,0x69,0x64]);}}function _0x445f5e(_0x4ca99b,_0x5c276a){return new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cb21e=>{if(_0x3ea6df())return _0x5cb21e(_0x436867([0x56,0x61,0x6c,0x69,0x64]));_0x4cd4b8(),_0x2c925d[_0x436867([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x436867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13b4bc=!0x1;const _0x2d39d9=_0x5ca89b();function _0x3d4512(_0x2234dc){return!!_0x2234dc&&(typeof _0x2234dc===_0x436867([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2234dc===_0x436867([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2234dc[_0x436867([0x74,0x68,0x65,0x6e])]===_0x436867([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2234dc[_0x436867([0x63,0x61,0x74,0x63,0x68])]===_0x436867([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38dc6b(_0x4da6a7){_0x50cb57(_0x4da6a7)[_0x436867([0x74,0x68,0x65,0x6e])](_0x19611a=>{if(!_0x19611a||_0x19611a[_0x436867([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x436867([0x6f,0x6b]))return _0x436867([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5bfac7(_0x5c500e(_0x2d39d9+_0x5c276a))!=_0x19611a[_0x436867([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x436867([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x436867([0x56,0x61,0x6c,0x69,0x64]);})[_0x436867([0x74,0x68,0x65,0x6e])](_0x222afc=>(_0x29c65c(),_0x222afc),()=>{const _0x207b60=_0x352bc8();return null==_0x207b60?(_0x29c65c(),_0x436867([0x56,0x61,0x6c,0x69,0x64])):_0x436867(_0x2fa1f7-_0x207b60>(0x6338588c^_0x7666ab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x436867([0x74,0x68,0x65,0x6e])](_0x5cb21e)[_0x436867([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cb21e(_0x436867([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6c6ddf=0x4702320c^_0x7666ab;function _0x29c65c(){const _0x33cea2=_0x436867([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bfac7(_0x5c500e(_0x4ca99b)),_0x21311e=_0x1b3938(_0x5bfac7(window[_0x436867([0x4d,0x61,0x74,0x68])][_0x436867([0x63,0x65,0x69,0x6c])](_0x2fa1f7/_0x6c6ddf)));window[_0x436867([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x436867([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33cea2,_0x21311e);}function _0x352bc8(){const _0x4f8991=_0x436867([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bfac7(_0x5c500e(_0x4ca99b)),_0x3259f9=window[_0x436867([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x436867([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f8991);return _0x3259f9?window[_0x436867([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b3938(_0x3259f9),0x10)*_0x6c6ddf:null;}function _0x50cb57(_0x5bc5b2){return new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc05d9,_0x345810)=>{_0x5bc5b2[_0x436867([0x74,0x68,0x65,0x6e])](_0xc05d9,_0x345810),window[_0x436867([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x345810,0x4735084c^_0x7666ab);});}}_0x2c925d[_0x436867([0x6f,0x6e])](_0x436867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x366661,_0x13e837)=>{if(_0x13e837[0x0]!=_0x4ca99b)return _0x5cb21e(_0x436867([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13e837[0x1]={..._0x13e837[0x1],[_0x436867([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d39d9};},{[_0x436867([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x436867([0x68,0x69,0x67,0x68])}),_0x2c925d[_0x436867([0x6f,0x6e])](_0x436867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49a4c1=>{_0x3d4512(_0x49a4c1[_0x436867([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13b4bc=!0x0,_0x38dc6b(_0x49a4c1[_0x436867([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x436867([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x436867([0x6c,0x6f,0x77])}),_0x63b93[_0x436867([0x74,0x68,0x65,0x6e])](()=>{_0x13b4bc||_0x5cb21e(_0x436867([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ea6df(){return _0x2c925d[_0x436867([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x436867([0x76,0x69,0x65,0x77])][_0x436867([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x436867([0x61,0x75,0x74,0x6f]);}function _0x4cd4b8(){_0x2c925d[_0x436867([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x436867([0x76,0x69,0x65,0x77])][_0x436867([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x436867([0x61,0x75,0x74,0x6f]);}}function _0x5ec1ba(_0x362f3b){const _0x3790a5=[new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20209b=>setTimeout(_0x20209b,0x473de240^_0x7666ab)),_0x63b93[_0x436867([0x74,0x68,0x65,0x6e])](()=>new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x118d0a=>{const _0xaa462f=0x4734dc8b^_0x7666ab,_0x34c795=_0x1dc611[_0x436867([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x446380(){_0x34c795[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xaa462f&&_0x118d0a();}_0x446380(),_0x34c795[_0x436867([0x6f,0x6e])](_0x436867([0x61,0x64,0x64]),_0x446380);})),new window[(_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101adb=>{function _0x16ad99(){for(const _0x1b31ad in window)if(window[_0x436867([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x436867([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1b31ad))&&window[_0x1b31ad]==_0x65fd48)return _0x101adb();_0x2c925d[_0x436867([0x73,0x74,0x61,0x74,0x65])]!=_0x436867([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x436867([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16ad99,0x4734cf04^_0x7666ab);}_0x3f2976(_0x436867([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x16ad99();})];return window[_0x436867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x436867([0x72,0x61,0x63,0x65])](_0x3790a5)[_0x436867([0x74,0x68,0x65,0x6e])](()=>_0x362f3b);}async function _0x231b4a(){if(await _0x63b93,_0x3f2976(_0x436867([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x46d8fc=_0x1dc611[_0x436867([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x54ce66=_0x1dc611[_0x436867([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])](_0x46d8fc[_0x436867([0x69,0x64])]),_0x347968=_0xef3fb4(_0x436867([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x347968[_0x436867([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x46d8fc['id'],_0x54ce66?_0x54ce66['id']:null,!0x0),_0x347968[_0x436867([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x436867([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x347968[_0x436867([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x347968[_0x436867([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x285359,void(_0x347968[_0x436867([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x285359);}if(_0x3f2976(_0x436867([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f9fca=_0xef3fb4(_0x436867([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f9fca[_0x436867([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x436867([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f9fca[_0x436867([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f9fca[_0x436867([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x285359,_0x1f9fca[_0x436867([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x285359;}_0x2c925d[_0x436867([0x6d,0x6f,0x64,0x65,0x6c])][_0x436867([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x285359,_0x2c925d[_0x436867([0x6d,0x6f,0x64,0x65,0x6c])][_0x436867([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x285359,_0x2c925d[_0x436867([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x436867([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2acbcd(){return _0x3f2976(_0x436867([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xef3fb4(_0x436867([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x436867([0x73,0x74,0x61,0x74,0x65])]==_0x436867([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2bafb6(){return _0x3f2976(_0x436867([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 _0x5f0dee(){return _0x3f2976(_0x436867([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x360fb9(_0x51ce9b){const _0x35821c=_0x326076();_0x2c925d[_0x35821c]=_0x436867([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])+_0x51ce9b,_0x51ce9b[_0x436867([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x436867([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x326076()]=_0x65fd48),_0x51ce9b!=_0x436867([0x56,0x61,0x6c,0x69,0x64])&&_0x231b4a();}function _0x326076(){const _0x29e080=window[_0x436867([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x436867([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x436867([0x6e,0x6f,0x77])]())[_0x436867([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x436867([0x2e]),'');let _0x2e9bc9=_0x436867([0x75]);for(let _0x173499=0x0;_0x173499<_0x29e080[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x173499+=0x2){let _0x20e148=window[_0x436867([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29e080[_0x436867([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173499,_0x173499+0x2));_0x20e148>=_0x43b31c[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20e148-=_0x43b31c[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e9bc9+=_0x43b31c[_0x20e148];}return _0x2e9bc9;}function _0x51bfae(){const _0x3eeb2c=_0x21d959[_0x436867([0x73,0x70,0x6c,0x69,0x74])](_0x436867([0x2e]));if(0x3!=_0x3eeb2c[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x571e9a(_0x3eeb2c[0x1]);function _0x571e9a(_0x137a6a){const _0x31cab2=_0x51bf0b(_0x137a6a);return _0x31cab2&&_0x122e94()?_0x31cab2:null;function _0x122e94(){const _0x375444=_0x31cab2[_0x436867([0x6a,0x74,0x69])],_0x3bc3d3=window[_0x436867([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x375444[_0x436867([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375444[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a3cf4={..._0x31cab2,[_0x436867([0x6a,0x74,0x69])]:_0x375444[_0x436867([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x375444[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a3cf4[_0x436867([0x76,0x63])],_0x5c500e(_0x5a3cf4)==_0x3bc3d3;}}}async function _0x480a32(){let _0x5118ef=!0x0;try{const _0xb31316=_0x21d959[_0x436867([0x73,0x70,0x6c,0x69,0x74])](_0x436867([0x2e])),[_0x90671d,_0x328abf,_0x2ab8cc]=_0xb31316;return _0x1845a6(_0x90671d),await _0x39a3c7(_0x90671d,_0x328abf,_0x2ab8cc),_0x5118ef;}catch(_0x285eda){return!0x1;}function _0x1845a6(_0x76db64){const _0x349cb4=_0x51bf0b(_0x76db64);_0x349cb4&&_0x349cb4[_0x436867([0x61,0x6c,0x67])]==_0x436867([0x45,0x53,0x32,0x35,0x36])||(_0x5118ef=!0x1);}async function _0x39a3c7(_0x52b10e,_0x263bbc,_0x158cc5){const _0x5d9722=window[_0x436867([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x436867([0x66,0x72,0x6f,0x6d])](_0x100791(_0x158cc5),_0x144501=>_0x144501[_0x436867([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c0fe2=new window[(_0x436867([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x436867([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52b10e+_0x436867([0x2e])+_0x263bbc),_0x242135=window[_0x436867([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x436867([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x242135)return;const _0x49fb34=await _0x242135[_0x436867([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x436867([0x6a,0x77,0x6b]),_0x2361d8,{[_0x436867([0x6e,0x61,0x6d,0x65])]:_0x436867([0x45,0x43,0x44,0x53,0x41]),[_0x436867([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x436867([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x436867([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x242135[_0x436867([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x436867([0x6e,0x61,0x6d,0x65])]:_0x436867([0x45,0x43,0x44,0x53,0x41]),[_0x436867([0x68,0x61,0x73,0x68])]:{[_0x436867([0x6e,0x61,0x6d,0x65])]:_0x436867([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49fb34,_0x5d9722,_0x5c0fe2)||(_0x5118ef=!0x1);}}function _0x51bf0b(_0x5013bd){return _0x5013bd[_0x436867([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x436867([0x65,0x79]))?JSON[_0x436867([0x70,0x61,0x72,0x73,0x65])](_0x100791(_0x5013bd)):null;}function _0x100791(_0x484dc1){return window[_0x436867([0x61,0x74,0x6f,0x62])](_0x484dc1[_0x436867([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x436867([0x2b]))[_0x436867([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x436867([0x2f])));}function _0x5c500e(_0x57d73c){let _0xca66c9=0x1505;function _0x568638(_0x4810e5){for(let _0x1ffbf5=0x0;_0x1ffbf5<_0x4810e5[_0x436867([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ffbf5++){const _0x1d9756=_0x4810e5[_0x436867([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ffbf5);_0xca66c9=(_0xca66c9<<0x5)+_0xca66c9+_0x1d9756,_0xca66c9&=_0xca66c9;}}function _0x202262(_0x386e91){Array[_0x436867([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x386e91)?_0x386e91[_0x436867([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x202262):_0x386e91&&typeof _0x386e91==_0x436867([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x436867([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x386e91)[_0x436867([0x73,0x6f,0x72,0x74])]()[_0x436867([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d7ebd,_0x46b635])=>{_0x568638(_0x1d7ebd),_0x202262(_0x46b635);}):_0x568638(window[_0x436867([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x386e91));}return _0x202262(_0x57d73c),_0xca66c9>>>0x0;}function _0x5bfac7(_0x1e2c14){return _0x1e2c14[_0x436867([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x436867([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x436867([0x30]));}function _0x1b3938(_0x4e9dd7){return _0x4e9dd7[_0x436867([0x73,0x70,0x6c,0x69,0x74])]('')[_0x436867([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x436867([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f2976(_0x24be03){return _0x2c925d[_0x436867([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x436867([0x68,0x61,0x73])](_0x24be03);}function _0xef3fb4(_0x5aedf1){return _0x2c925d[_0x436867([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x436867([0x67,0x65,0x74])](_0x5aedf1);}function _0x285359(){}function _0x436867(_0xee447c){return _0xee447c['map'](_0x219dcf=>String['fromCharCode'](_0x219dcf))['join']('');}_0x360fb9(await _0x546d68());}(this);}['createRevision'](_0x50513f){const _0x3f5a56=this['editor']['plugins']['get']('Users');return new h({'id':_0x50513f['id'],'name':_0x50513f['name'],'creator':_0x50513f['creatorId']?_0x3f5a56['getUser'](_0x50513f['creatorId']):null,'diffData':_0x50513f['diffData']||_0x50513f['data'],'authors':_0x50513f['authorsIds']['map'](_0x327108=>_0x3f5a56['getUser'](_0x327108)),'createdAt':new Date(_0x50513f['createdAt']),'attributes':_0x50513f['attributes'],'fromVersion':_0x50513f['fromVersion'],'toVersion':_0x50513f['toVersion']});}['addRevision'](_0x3cfbbb,_0x58bbc9=0x0){this['_revisions']['add'](_0x3cfbbb,_0x58bbc9);}['getRevision'](_0x21c667){return this['_revisions']['get'](_0x21c667);}['getRevisions'](_0x1b8c3b={'toJSON':!0x1}){const _0x471e9c=Array['from'](this['_revisions']);return _0x471e9c['reverse'](),_0x1b8c3b['toJSON']?_0x471e9c['map'](_0x5a6db2=>_0x5a6db2['toJSON']()):_0x471e9c;}['getIndex'](_0x199117){return this['_revisions']['getIndex'](_0x199117);}['getEarlierVisibleRevision'](_0x3f9d9e){const [,_0x2e6920]=this['getRevisionsIterator'](_0x3f9d9e,{'direction':'earlier'});return _0x2e6920;}['getLaterVisibleRevision'](_0x988088){const [,_0x159cfe]=this['getRevisionsIterator'](_0x988088,{'direction':'later'});return _0x159cfe;}['getRevisionsInDiff'](_0x3e8007){const _0x3029c4=[];for(const _0x4ef882 of this['getRevisionsIterator'](_0x3e8007['newRevisionId']))if(_0x3029c4['push'](_0x4ef882),_0x4ef882['id']===_0x3e8007['oldRevisionId'])break;return _0x3029c4;}*['getRevisionsIterator'](_0x314b4b,{direction:_0x30d54c='earlier',filter:_0x2ad67d=()=>!0x0}={}){const _0xf16fd2='earlier'===_0x30d54c?0x1:-0x1;let _0x5b2220=this['_revisions']['get'](_0x314b4b),_0x1b0b6d=this['getIndex'](_0x5b2220);for(yield _0x5b2220;_0x5b2220;){if(_0x1b0b6d+=_0xf16fd2,_0x5b2220=this['getRevision'](_0x1b0b6d),!_0x5b2220)return;_0x2ad67d(_0x5b2220)&&(yield _0x5b2220);}}}class V extends _0x2a63bd{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3fadd9,'c'],[_0x79f717,'a'],[_0x16009b,'e'],[_0x42d3b3,'r'],[_0x28aad4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3fadd9],['a',_0x79f717],['e',_0x16009b],['r',_0x42d3b3],['u',_0x28aad4]]);async['loadRevisionData'](_0x446a1f,_0x2bd580){if(_0x446a1f['diffData']||!_0x2bd580)return;const _0x55177a=this['editor']['config']['get']('collaboration.channelId'),_0x349024=await _0x2bd580['getRevision']({'channelId':_0x55177a,'revisionId':_0x446a1f['id']});_0x446a1f['diffData']=_0x349024['diffData'];}['getRevisionDocumentData'](_0x5d731c){const _0xe5ff59={};for(const _0x2612a6 in _0x5d731c['diffData']){if(_0x5d731c['diffData'][_0x2612a6]['attachChange']&&!_0x5d731c['diffData'][_0x2612a6]['attachChange']['isAttached'])continue;const _0x13a18a=this['_removeRevisionMarkers'](JSON['parse'](_0x5d731c['diffData'][_0x2612a6]['insertions'])),_0x1a3e00=this['editor']['editing']['view']['document'],_0x44cebc=new _0x4023e0(_0x1a3e00,_0x13a18a['map'](_0x264bb9=>this['_getViewFromDiffObj'](_0x264bb9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe5ff59[_0x2612a6]=this['editor']['data']['processor']['toData'](_0x44cebc),this['editor']['data']['processor']['useFillerType']('default');}return _0xe5ff59;}['getRevisionRootsAttributes'](_0x2afc2d){const _0x368dda={};for(const _0x59a7c5 in _0x2afc2d['diffData'])_0x2afc2d['diffData'][_0x59a7c5]['attachChange']&&!_0x2afc2d['diffData'][_0x59a7c5]['attachChange']['isAttached']||(_0x368dda[_0x59a7c5]=_0x2afc2d['diffData'][_0x59a7c5]['attributesAfter']||{});return _0x368dda;}['_getTypeCharForViewElement'](_0xc40a0e){return this['_viewClassToTypeChar']['get'](_0xc40a0e['constructor']);}['_getViewFromDiffObj'](_0x1c19cb,_0x2ada7e){const _0x392c23=this['editor']['editing']['view']['document'];if('string'==typeof _0x1c19cb)return new _0x21bfaf(_0x392c23,_0x1c19cb);{let _0xd96a05,_0x2e936c;_0x2e936c='u'==_0x1c19cb['type']||'r'==_0x1c19cb['type']?[]:_0x1c19cb['children']['map'](_0x363c05=>this['_getViewFromDiffObj'](_0x363c05,_0x2ada7e));const _0x466202=this['_typeCharToViewClass']['get'](_0x1c19cb['type'])||_0x234af1,_0x59adfe=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xd96a05=new _0x466202(_0x392c23,_0x1c19cb['name'],_0x1c19cb['attributes'],_0x2e936c),'u'==_0x1c19cb['type']&&_0x1c19cb['children'][0x0]){const _0x1c98cf=_0x1c19cb['children'][0x0];if(_0xd96a05['render']=function(_0x1a9fb7){const _0x240028=_0x1a9fb7['createElement']('div');return _0x240028['innerHTML']=_0x1c98cf,_0x240028['childNodes'][0x0];},_0x2ada7e){const _0x4448fe=new _0x4023e0(_0x392c23);_0x4448fe['_appendChild'](_0xd96a05);const _0x25cf32=Array['from'](_0x59adfe['viewChildrenToDom'](_0x4448fe,{'bind':!0x1})),_0x4a4d57=_0x59adfe['domDocument']['createElement']('div');_0x4a4d57['append'](..._0x25cf32),_0xd96a05=Array['from'](_0x59adfe['domChildrenToView'](_0x4a4d57))[0x0];}}else{if('r'==_0x1c19cb['type']&&_0x1c19cb['children'][0x0]){const _0x5ae741=_0x1c19cb['children'][0x0];if(_0xd96a05['render']=function(_0x52a7c6){_0x52a7c6['innerHTML']=_0x5ae741;},_0x2ada7e){const _0x5b24c6=new _0x4023e0(_0x392c23);_0x5b24c6['_appendChild'](_0xd96a05);const _0x17ba82=Array['from'](_0x59adfe['viewChildrenToDom'](_0x5b24c6,{'bind':!0x1})),_0x80b197=_0x59adfe['domDocument']['createElement']('div');_0x80b197['append'](..._0x17ba82);const _0x3876cd=Array['from'](_0x59adfe['domChildrenToView'](_0x80b197));_0x3876cd['length']>0x1?_0xd96a05['_appendChild'](_0x3876cd):_0xd96a05=_0x3876cd[0x0];}}}if(_0x1c19cb['customProperties']){for(const [_0x1cf98f,_0xcb7b6a]of _0x1c19cb['customProperties'])_0xd96a05['_setCustomProperty'](_0x1cf98f,_0xcb7b6a);}const _0x291571=void 0x0===_0x1c19cb['fillerOffset']?null:_0x1c19cb['fillerOffset'];return null!==_0x291571&&(_0xd96a05['getFillerOffset']=()=>_0x291571),_0xd96a05;}}['_makeModelFromViewString'](_0x3eb4c4){const _0x4d73b1=JSON['parse'](_0x3eb4c4),_0xdf287a=this['editor']['editing']['view']['document'],_0x3b15d0=new _0x4023e0(_0xdf287a,_0x4d73b1['map'](_0xe2392c=>this['_getViewFromDiffObj'](_0xe2392c,!0x0)));return this['editor']['data']['toModel'](_0x3b15d0);}['_removeRevisionMarkers'](_0x13958c){return(_0x13958c=_0x13958c['filter'](_0x2fc6f=>!_0x2fc6f['name']||'revision-start'!==_0x2fc6f['name']&&'revision-end'!==_0x2fc6f['name']))['forEach'](_0x462cf3=>{'string'!=typeof _0x462cf3&&(_0x462cf3['children']=this['_removeRevisionMarkers'](_0x462cf3['children']),_0x462cf3['attributes']=_0x462cf3['attributes']['filter'](_0x1322d2=>!_0x1322d2[0x0]['startsWith']('data-revision-')));}),_0x13958c;}}function g(_0x208ee2,_0xaa4377,_0x19bdb0){const t=_0x208ee2['t'];switch(_0xaa4377){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'},_0x19bdb0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19bdb0);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 _0x2a63bd{['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[_0x25042d,I,V,_0x57bfdc];}constructor(_0x311639){super(_0x311639),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 _0x7c9d25=_0x5ca89b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7c9d25},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 _0x58a7bc=this['repository']['getRevision'](0x0),_0x336d66=_0x58a7bc&&null===_0x58a7bc['creator']?_0x58a7bc:null;if(this['_continueCurrentRevision']=!!_0x336d66&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x118409=this['_source']['getCurrentRevisionId'](),_0x45a15a=this['repository']['getRevision'](_0x118409);if(_0x45a15a)this['_startingVersion']=_0x45a15a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x275aa3=this['_source']['history']['_operations']['find'](_0x3a50f4=>!_0x3a50f4['_isInit']),_0x19b6e1=_0x275aa3?_0x275aa3['baseVersion']:this['_source']['history']['version'];_0x58a7bc?(_0x58a7bc['toVersion']<_0x19b6e1&&_0x58a7bc['_update']({'toVersion':_0x19b6e1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x336d66['id'],this['_startingVersion']=_0x336d66['fromVersion']):(this['_startingVersion']=_0x58a7bc['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x19b6e1,this['_continueCurrentRevision']=!0x1);}}else _0x336d66&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x336d66['toVersion'],this['editor']['model']['document']['history']['version']),_0x336d66['fromVersion']===_0x336d66['toVersion']?(0x0!==_0x336d66['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x336d66['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x336d66['id'],this['_startingVersion']=_0x336d66['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',_0x132a65=>!_0x132a65),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40bc48=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b8f4d;for(const _0x4f23a8 in _0x40bc48){const _0x1a48d9=_0x4f23a8,_0x56a29b=_0x40bc48[_0x1a48d9];if('revisionHistoryLicenseKeyValid'==_0x56a29b||'revisionHistoryLicenseKeyInvalid'==_0x56a29b||'revisionHistoryLicenseKeyExpired'==_0x56a29b||'revisionHistoryLicenseKeyDomainLimit'==_0x56a29b||'revisionHistoryLicenseKeyNotAllowed'==_0x56a29b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x56a29b||'revisionHistoryLicenseKeyTrialLimit'==_0x56a29b||'revisionHistoryLicenseKeyUsageLimit'==_0x56a29b){delete _0x40bc48[_0x1a48d9],_0x5b8f4d=_0x56a29b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5b8f4d&&_0x40bc48['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x572b85=this['repository']['getRevision'](0x0),_0x45a4da=await this['getRevisionDocumentData'](_0x572b85),_0x4bf960=await this['getRevisionRootsAttributes'](_0x572b85);this['_replaceEditorDataWithRevisionData'](_0x45a4da,_0x4bf960);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x12c83a){this['_source']=_0x12c83a;}async['update'](){const _0x22b84b=await this['_source']['getLatestVersion']();if(_0x22b84b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2cd4b0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x22b84b});_0x2cd4b0['authors']=_0x2cd4b0['authorsIds']['map'](_0x3716a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x3716a0)),this['currentRevision']['_update'](_0x2cd4b0);}}async['saveRevision'](_0x914bfd={},_0x5748ec=null){const _0x1461b1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5748ec>this['currentRevision']['toVersion']&&(_0x5748ec=null),null===_0x5748ec&&(_0x5748ec=await this['_source']['getLatestVersion']());const _0x4be225=this['_getFromVersion'](_0x5748ec),_0x27c3c9=this['buildRevisionData']({'from':_0x4be225,'to':_0x5748ec});if(this['currentRevision']['toVersion']<_0x5748ec){const _0x9ad30d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5748ec,'to':_0x5748ec});_0x9ad30d['authors']=[],_0x9ad30d['authorsIds']=[],_0x9ad30d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x9ad30d,!0x0),delete _0x9ad30d['authors'],_0x1461b1['push'](_0x9ad30d);}_0x914bfd['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x914bfd['name']=_0x914bfd['name']||null,_0x914bfd['id']=_0x914bfd['id']||_0x5ca89b(),_0x914bfd={..._0x914bfd,..._0x27c3c9};const _0xe8818d=this['addRevisionData'](_0x914bfd);_0x1461b1['push'](_0x914bfd);const _0x587230=this['repository']['getIndex'](_0xe8818d);if(0x0!==_0x587230){const _0xee0e6b=this['repository']['getRevision'](_0x587230-0x1);if(_0xee0e6b['fromVersion']!==_0x5748ec){const _0x260cde=this['_revisionDataBuilder']['getData'](_0x5748ec,_0xee0e6b['toVersion']),_0x1854ad={'id':_0xee0e6b['id'],'diffData':_0x260cde['diffData'],'authorsIds':_0x260cde['authorsIds'],'authors':_0x260cde['authorsIds']['map'](_0x11ebcd=>this['editor']['plugins']['get']('Users')['getUser'](_0x11ebcd)),'fromVersion':_0x5748ec};_0xee0e6b===this['currentRevision']&&(_0x1854ad['createdAt']=new Date(_0x914bfd['createdAt']['getTime']()+0xa)),_0xee0e6b['_update'](_0x1854ad,!0x0),delete _0x1854ad['authors'],_0x1461b1['push'](_0x1854ad);}}if(this['adapter']){for(const _0x290395 of _0x1461b1)this['_bufferUpdate'](_0x290395['id'],_0x290395,!0x0);this['sendBufferedUpdates']();}return _0xe8818d;}['addRevisionData'](_0xd39483){const _0x332f5f=this['repository']['createRevision'](_0xd39483);return this['adapter']&&_0x332f5f['on']('_update',(_0x2022b9,_0x4d94a5,_0x5a50d0)=>{_0x5a50d0||(this['_bufferUpdate'](_0x4d94a5['id'],_0x4d94a5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x332f5f,this['_findInsertionIndex'](_0x332f5f)),_0x332f5f;}async['getRevisionDocumentData'](_0x35c9bf){return await this['_utils']['loadRevisionData'](_0x35c9bf,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x35c9bf);}async['getRevisionRootsAttributes'](_0x216799){return await this['_utils']['loadRevisionData'](_0x216799,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x216799);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x216109=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x295768=0x0;_0x295768<_0x216109['length'];_0x295768++){const _0x1eebc0=_0x216109[_0x295768];let _0x588602=!0x1;for(const _0x8ea9ef of Object['keys'](_0x1eebc0))void 0x0===_0x1eebc0[_0x8ea9ef]?delete _0x1eebc0[_0x8ea9ef]:'id'!==_0x8ea9ef&&(_0x588602=!0x0);_0x588602||(_0x216109[_0x295768]=null);}if(_0x216109=_0x216109['filter'](_0x4a40bb=>null!==_0x4a40bb),!_0x216109['length'])return;for(let _0x3d92a0=0x0;_0x3d92a0<_0x216109['length'];_0x3d92a0++){const _0x6218b0=_0x216109[_0x3d92a0];void 0x0!==_0x6218b0['fromVersion']&&void 0x0===_0x6218b0['toVersion']&&(_0x6218b0['toVersion']=this['repository']['getRevision'](_0x6218b0['id'])['toVersion']),void 0x0!==_0x6218b0['toVersion']&&void 0x0===_0x6218b0['fromVersion']&&(_0x6218b0['fromVersion']=this['repository']['getRevision'](_0x6218b0['id'])['fromVersion']);}const _0xf3e8f9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x216109,_0xf3e8f9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xe847e=>{if(_0xe847e){for(const _0x15c8f of _0xe847e)this['setRevisionData']({'id':_0x15c8f['id'],'createdAt':_0x15c8f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5e32f0=null,from:_0xcf1ac=null,to:_0x2e30e4=null}){_0xcf1ac=null!==_0xcf1ac?_0xcf1ac:_0x5e32f0['fromVersion'],_0x2e30e4=null!==_0x2e30e4?_0x2e30e4:_0x5e32f0['toVersion'];const _0x55bfb0=this['_revisionDataBuilder']['getData'](_0xcf1ac,_0x2e30e4),_0x4e2f88={'diffData':_0x55bfb0['diffData'],'authorsIds':_0x55bfb0['authorsIds'],'fromVersion':_0xcf1ac,'toVersion':_0x2e30e4};if(!_0x5e32f0||_0x2e30e4!==_0x5e32f0['toVersion']){const _0x4c634e=_0x2e30e4-0x1,_0x25e5c5=this['_source']['history']['getOperation'](_0x4c634e);_0x4e2f88['createdAt']=_0x25e5c5&&_0x25e5c5['createdAt']||new Date();}if(this['_loadedStateData']&&_0xcf1ac===this['_loadedStateData']['fromVersion']){for(const _0x139399 of this['_loadedStateData']['authors'])_0x4e2f88['authorsIds']['includes'](_0x139399['id'])||_0x4e2f88['authorsIds']['push'](_0x139399['id']);}return _0x4e2f88;}['_bufferUpdate'](_0x5177d0,_0x5c567a,_0x3c46e9){if(this['_bufferedUpdates']['has'](_0x5177d0)){const _0x101d03=this['_bufferedUpdates']['get'](_0x5177d0);_0x5c567a=_0x3c46e9?{..._0x101d03,..._0x5c567a}:{..._0x5c567a,..._0x101d03};}this['_bufferedUpdates']['set'](_0x5177d0,_0x5c567a);}['setRevisionData'](_0x478f8f){const _0x8b1b89=this['repository']['getRevision'](_0x478f8f['id']);if(_0x478f8f['createdAt']&&(_0x478f8f['createdAt']=new Date(_0x478f8f['createdAt'])),_0x478f8f['authorsIds']){const _0x54b94c=this['editor']['plugins']['get']('Users');_0x478f8f['authors']=_0x478f8f['authorsIds']['map'](_0x304d3e=>_0x54b94c['getUser'](_0x304d3e));}_0x8b1b89['_update'](_0x478f8f,!0x0);}['_createInitialRevision'](_0x411501){const _0x380be8=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x380be8)this['_initialRevisionId']=_0x380be8['id'];else{const _0x2dd3c9=!this['editor']['model']['document']['roots']['find'](_0x237bea=>this['editor']['model']['hasContent'](_0x237bea)),_0x38ae74=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f2a3e=g(this['editor']['locale'],_0x2dd3c9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x411501,'to':_0x411501,'id':this['_initialRevisionId'],'name':_0x1f2a3e,'creatorId':_0x38ae74});}}['_createCurrentRevision'](_0xa2362d){const _0xcd7f25=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xcd7f25),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xa2362d,'to':_0xa2362d,'id':_0xcd7f25,'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'](_0x47987b,_0x4de4f3){let _0x2fee1a=this['editor']['config']['get']('initialData'),_0x2be446=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2fee1a){_0x2fee1a={};for(const _0x1a3c59 of this['editor']['model']['document']['getRootNames']())_0x2fee1a[_0x1a3c59]='';}if('string'==typeof _0x2fee1a&&(_0x2fee1a={'main':_0x2fee1a}),void 0x0===_0x2be446){_0x2be446={};for(const _0x173c46 of this['editor']['model']['document']['getRootNames']())_0x2be446[_0x173c46]={};}let _0x4371b7=!0x1;const _0x11df20=Object['keys'](_0x2fee1a),_0x3d1e84=Object['keys'](_0x47987b);for(const _0x423673 of _0x11df20){if(_0x2fee1a[_0x423673]!==_0x47987b[_0x423673]&&''!==_0x2fee1a[_0x423673]['trim']()){_0x4371b7=!0x0;break;}if(!_0x4d45c0(_0x2be446[_0x423673],_0x4de4f3[_0x423673])&&Object['keys'](_0x2be446[_0x423673])['length']>0x0){_0x4371b7=!0x0;break;}}_0x4371b7||(_0x4371b7=_0x3d1e84['some'](_0x1da055=>!this['editor']['model']['document']['getRoot'](_0x1da055))),_0x4371b7&&_0x4704bb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2fee1a,'editorRootsAttributes':_0x2be446,'revisionData':_0x47987b,'revisionRootsAttributes':_0x4de4f3}),this['editor']['config']['set']('initialData',_0x47987b),this['editor']['config']['set']('rootsAttributes',_0x4de4f3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5f4570=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5f4570['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5838fc){const _0x2006ad=this['repository']['getRevisions']();_0x2006ad['reverse']();let _0x4225db=0x0;for(;_0x4225db<_0x2006ad['length'];){const _0x51fce0=_0x2006ad[_0x4225db];if(_0x51fce0===this['currentRevision']){_0x4225db++;continue;}if(_0x51fce0['id']===this['_initialRevisionId'])break;const _0x4284c6=_0x5838fc['toVersion']-_0x51fce0['toVersion']||_0x5838fc['fromVersion']-_0x51fce0['fromVersion'];if(_0x4284c6>0x0)break;if(_0x4284c6<0x0)_0x4225db++;else{if(!_0x5838fc['creator']&&_0x51fce0['creator'])break;if(_0x51fce0['creator']||!_0x5838fc['creator']){if(_0x5838fc['createdAt']>_0x51fce0['createdAt'])break;_0x4225db++;}else _0x4225db++;}}return _0x4225db;}['_getFromVersion'](_0x141638){const _0x3d1b53=this['repository']['getRevisions']();_0x3d1b53['reverse'](),_0x3d1b53['shift']();const _0x45d79c=_0x3d1b53['find'](_0x15e6ba=>_0x15e6ba['toVersion']<=_0x141638)['toVersion'];return _0x45d79c<this['_startingVersion']?this['_startingVersion']:_0x45d79c;}['_makeRevision']({name:_0x4959ad,from:_0x74a5c7,to:_0x6f730e,creatorId:_0x8adbab,id:_0x1a489e}){const _0x3b0ea5=this['buildRevisionData']({'from':_0x74a5c7,'to':_0x6f730e});_0x3b0ea5['name']=_0x4959ad,_0x3b0ea5['creatorId']=_0x8adbab,_0x3b0ea5['id']=_0x1a489e;const _0x5bb4a5=this['addRevisionData'](_0x3b0ea5);return this['adapter']&&this['_bufferUpdate'](_0x3b0ea5['id'],_0x3b0ea5,!0x0),_0x5bb4a5;}['_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(_0x6cad2b){this['editor']=_0x6cad2b,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'](_0x317322){this['source']=_0x317322;const _0x1f276b=new Map(),_0x42f4ee=new Map(),_0x3405a2=this['editor']['model']['document']['roots']['map'](_0x5db422=>_0x5db422['rootName']);for(const _0x5ded20 of _0x3405a2){const _0x2bffd2=this['editor']['model']['document']['getRoot'](_0x5ded20),_0x4bfca1=N(_0x2bffd2);_0x1f276b['set'](_0x5ded20,_0x4bfca1),_0x42f4ee['set'](_0x5ded20,Object['fromEntries'](_0x2bffd2['getAttributes']()));}const _0x3a3a80=Array['from'](this['editor']['model']['markers'])['map'](_0x1786b6=>[_0x1786b6['name'],_0x1786b6['getRange']()]),_0x1635d0=this['source']['version'];this['_saveMetaData'](_0x1635d0,_0x1f276b,_0x3a3a80,_0x42f4ee),this['_startingRevisionId']=this['_revisionId'];const _0x25bdac=new Map(),_0x1d1298=new Map();for(const _0x1749a3 of _0x3405a2){const _0x243ea8=P(_0x1749a3);_0x25bdac['set'](_0x1749a3,_0x243ea8),_0x1d1298['set'](_0x1749a3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x25bdac,[],_0x1d1298);}['getData'](_0x33f18d,_0x8867ab){if(this['_lastFrom']===_0x33f18d&&this['_lastTo']<=_0x8867ab)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8867ab,!0x0);else{if(!this['_savedMetaData']['has'](_0x33f18d)){const _0x2abdb1=this['_getPreviousFrom'](_0x33f18d);this['_calculateMetaData'](_0x2abdb1,_0x33f18d,!0x1);}this['_calculateMetaData'](_0x33f18d,_0x8867ab,!0x0);}return this['_lastFrom']=_0x33f18d,this['_lastTo']=_0x8867ab,this['_getState']();}['loadState'](_0x2b164e){const _0x319306=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2b164e['fromVersion'],this['_lastTo']=_0x2b164e['toVersion'];for(const _0x536802 in _0x2b164e['diffData']){const _0x52a575=_0x2b164e['diffData'][_0x536802]['attachChange'],_0x34bde5=_0x3a2169(_0x2b164e['diffData'][_0x536802]['attributesBefore'])||{},_0x46b18b=_0x319306['_makeModelFromViewString'](_0x2b164e['diffData'][_0x536802]['deletions']);_0x46b18b['rootName']=_0x536802,_0x46b18b['_isAttached']=!_0x52a575||!_0x52a575['isAttached'],_0x46b18b['isAttached']=()=>_0x46b18b['_isAttached'],this['_baseRoots']['set'](_0x536802,_0x46b18b),this['_baseRootsAttributes']['set'](_0x536802,_0x34bde5),_0x52a575&&this['_touchedRoots']['set'](_0x536802,_0x52a575);const _0x2f3b11=this['_makeIdsRoot'](_0x46b18b);this['_baseIdsRoots']['set'](_0x536802,_0x2f3b11);for(const [_0x371e77,_0x189649]of _0x46b18b['markers']){if(!_0x371e77['startsWith']('revision:'))continue;const _0x3025f3=_0x371e77['split'](':')[0x2];for(const _0x5aeeb0 of _0x189649['getWalker']({'singleCharacters':!0x0})){const _0x4e7677=this['_getVidAttributeName'](_0x5aeeb0),_0x4b0530='elementEnd'==_0x5aeeb0['type']?_0x5aeeb0['previousPosition']['path']['slice'](0x0,-0x1):_0x5aeeb0['previousPosition']['path'],_0x47891e=_0x2f3b11['getNodeByPath'](_0x4b0530)['getAttribute'](_0x4e7677);this['_touched']['set'](_0x47891e,{'userId':_0x3025f3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1c5b11=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x550209=>!this['_touched']['has'](_0x550209));let _0x4caaa0=0x0;const _0xe32d8c=new Map();for(const _0x31b42f in _0x2b164e['diffData']){const _0x2acf6a=_0x2b164e['diffData'][_0x31b42f]['attachChange'],_0x377500=_0x3a2169(_0x2b164e['diffData'][_0x31b42f]['attributesAfter'])||{},_0x38e107=_0x319306['_makeModelFromViewString'](_0x2b164e['diffData'][_0x31b42f]['insertions']);_0x38e107['rootName']=_0x31b42f,_0x38e107['_isAttached']=!_0x2acf6a||_0x2acf6a['isAttached'],_0x38e107['isAttached']=()=>_0x38e107['_isAttached'],this['_diffRoots']['set'](_0x31b42f,_0x38e107),this['_diffRootsAttributes']['set'](_0x31b42f,_0x377500);const _0x34a40e=this['_makeIdsRoot'](_0x38e107,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x31b42f,_0x34a40e),_0xe32d8c['set'](_0x31b42f,_0x38e107['isAttached']()?_0x377500:{});for(const [_0x579ea7,_0x23829e]of _0x38e107['markers']){if(!_0x579ea7['startsWith']('revision:'))continue;const _0x544189=_0x579ea7['split'](':')[0x2];for(const _0x475b13 of _0x23829e['getWalker']({'singleCharacters':!0x0})){const _0x2e6056=this['_getVidAttributeName'](_0x475b13),_0x3b6afe=this['_revisionId']++,_0x18c4c3='elementEnd'==_0x475b13['type']?_0x475b13['previousPosition']['path']['slice'](0x0,-0x1):_0x475b13['previousPosition']['path'];_0x34a40e['getNodeByPath'](_0x18c4c3)['_setAttribute'](_0x2e6056,_0x3b6afe),this['_touched']['set'](_0x3b6afe,{'userId':_0x544189});}}for(const _0x503a8b of this['editor']['model']['createRangeIn'](_0x38e107)['getWalker']({'singleCharacters':!0x0})){const _0x1fd300=this['_getVidAttributeName'](_0x503a8b),_0x4b3132='elementEnd'==_0x503a8b['type']?_0x503a8b['previousPosition']['path']['slice'](0x0,-0x1):_0x503a8b['previousPosition']['path'],_0x4fd2e8=_0x34a40e['getNodeByPath'](_0x4b3132);_0x4fd2e8['getAttribute'](_0x1fd300)>0x0||_0x4fd2e8['_setAttribute'](_0x1fd300,_0x1c5b11[_0x4caaa0++]);}for(const [_0x265d5b,_0x247a53]of _0x38e107['markers'])_0x265d5b['startsWith']('revision:')||this['_markers']['set'](_0x265d5b,_0x247a53);}const _0x2406d6=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2406d6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2406d6,0x1));const _0x444fed=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x444fed),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x444fed,0x1));const _0x2b0147=Array['from'](this['_diffRoots'])['map'](([_0x226e01,_0x54f886])=>[_0x226e01,N(_0x54f886)]);this['_saveMetaData'](this['_lastTo'],_0x2b0147,this['_markers'],_0xe32d8c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3686d0,_0x4697a5,_0x539d70,_0x4f183d){const _0x39cd55=new Map(_0x4697a5),_0x56e07e=new Map(_0x3a2169(_0x4f183d)),_0x43dbb6=new Map();for(const [_0x2d7cef,_0x3e1b10]of _0x539d70)_0x43dbb6['set'](_0x2d7cef,{'start':_0x3e1b10['start']['clone'](),'end':_0x3e1b10['end']['clone'](),'rootName':_0x3e1b10['root']['rootName']});this['_savedMetaData']['set'](_0x3686d0,{'roots':_0x39cd55,'markers':_0x43dbb6,'rootsAttributes':_0x56e07e});}['_removeMetaData'](_0x2a5d24){this['_savedMetaData']['delete'](_0x2a5d24);}['_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'](_0x49e2db,_0x2b6a5b=null){let _0x407c42=null;_0x49e2db['is']('documentFragment')||(_0x407c42=new ut(_0x49e2db['name'],{'vid_start':null===_0x2b6a5b?this['_revisionId']++:_0x2b6a5b++}));const _0x230f33=[];for(const _0x5b9592 of _0x49e2db['getChildren']())if(_0x5b9592['is']('element')){_0x230f33['push'](this['_makeIdsRoot'](_0x5b9592,_0x2b6a5b));const _0x175a1c=_0x230f33[_0x230f33['length']-0x1];null!==_0x2b6a5b&&(_0x2b6a5b=_0x175a1c['is']('element','$text')?_0x175a1c['getAttribute']('vid')+0x1:_0x175a1c['getAttribute']('vid_end')+0x1);}else{for(let _0x55f5d4=0x0;_0x55f5d4<_0x5b9592['offsetSize'];_0x55f5d4++)_0x230f33['push'](new ut('$text',{'vid':null===_0x2b6a5b?this['_revisionId']++:_0x2b6a5b++}));}if(_0x49e2db['is']('documentFragment')){const _0x50e285=P(_0x49e2db['rootName']);return _0x50e285['_insertChild'](0x0,_0x230f33),_0x50e285;}return _0x407c42['_setAttribute']('vid_end',null===_0x2b6a5b?this['_revisionId']++:_0x2b6a5b++),_0x407c42['_insertChild'](0x0,_0x230f33),_0x407c42;}['_calculateMetaData'](_0x457cdf,_0x111453,_0x210917){this['_reset']();const {roots:_0x118998,markers:_0x8a41bd,rootsAttributes:_0x4e2de3}=this['_savedMetaData']['get'](_0x457cdf);this['_baseRoots']=new Map(_0x118998),this['_baseRootsAttributes']=new Map(_0x3a2169(_0x4e2de3));for(const [_0x346cde,_0x506b32]of this['_baseRoots'])if('$graveyard'!==_0x346cde&&(this['_diffRoots']['set'](_0x346cde,N(_0x506b32)),this['_diffRootsAttributes']=new Map(_0x3a2169(_0x4e2de3)),_0x210917)){const _0x2b81c9=this['_revisionId'];this['_idsRoots']['set'](_0x346cde,this['_makeIdsRoot'](_0x506b32)),this['_baseIdsRoots']['set'](_0x346cde,this['_makeIdsRoot'](_0x506b32,_0x2b81c9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x210917&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fdb17,_0x4de31b]of _0x8a41bd){const _0x22fb3a=this['_baseRoots']['get'](_0x4de31b['rootName']),_0x3327c1=this['_diffRoots']['get'](_0x4de31b['rootName']),_0x46fac4=new lt(this['_fixPosition'](_0x4de31b['start'],_0x22fb3a),this['_fixPosition'](_0x4de31b['end'],_0x22fb3a)),_0x51d222=this['_fixRange'](_0x46fac4,_0x3327c1);_0x22fb3a['markers']['set'](_0x4fdb17,_0x46fac4),this['_markers']['set'](_0x4fdb17,_0x51d222);}this['_applyOperations'](_0x457cdf,_0x111453,_0x210917);}['_applyOperations'](_0x21c7df,_0x26bf8a,_0x4b9a5f){for(const _0x1059d8 of this['source']['getOperations'](_0x21c7df,_0x26bf8a))this['_handleOperation'](_0x1059d8,_0x4b9a5f);for(const _0x182e61 of this['_diffRoots']['values']())_0x182e61['markers']['clear']();for(const [_0x25d37a,_0x1f389e]of this['_markers']){this['_diffRoots']['get'](_0x1f389e['root']['rootName'])['markers']['set'](_0x25d37a,_0x1f389e['clone']());}const _0x311b42=new Map(),_0x565731=new Map();for(const [_0x41650b,_0x1a0f65]of this['_diffRoots'])_0x311b42['set'](_0x41650b,N(_0x1a0f65)),_0x565731['set'](_0x41650b,this['_diffRootsAttributes']['get'](_0x41650b));this['_saveMetaData'](_0x26bf8a,_0x311b42,this['_markers'],_0x565731);}['_getPreviousFrom'](_0x1c7c70){const _0x466669=Array['from'](this['_savedMetaData']['keys']());_0x466669['sort']((_0x4ed0f1,_0x8676f9)=>_0x4ed0f1-_0x8676f9),_0x466669['reverse']();for(const _0x3bc995 of _0x466669)if(_0x3bc995<_0x1c7c70)return _0x3bc995;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4ac190,_0x241d67){const _0x5a2d86=Array['from'](_0x241d67['markers'])['map'](([_0x58deef,_0x320c0a])=>[_0x58deef,this['_fixRange'](_0x320c0a,_0x4ac190)]);_0x4ac190['markers']=new Map(_0x5a2d86);}['_transformMarkers'](_0x491666){for(const _0x1e7fdd of this['_markers']['values']()){const _0x1852fe=_0x1e7fdd['getTransformedByOperation'](_0x491666),_0x3007bb=lt['_createFromRanges'](_0x1852fe);_0x1e7fdd['start']=_0x3007bb['start'],_0x1e7fdd['end']=_0x3007bb['end'];}}['_handleOperation'](_0x183426,_0x4898e1){if('addRoot'!=_0x183426['type']&&'detachRoot'!=_0x183426['type']){if('insert'==_0x183426['type']){const _0x5f0ef5=_0x183426['position']['root']['rootName'];this['_diffRoots']['has'](_0x5f0ef5)||(this['_diffRoots']['set'](_0x5f0ef5,P(_0x5f0ef5,!0x0)),this['_diffRootsAttributes']['set'](_0x5f0ef5,{}),_0x4898e1&&this['_idsRoots']['set'](_0x5f0ef5,P(_0x5f0ef5,!0x0)));}else{if('addRootAttribute'==_0x183426['type']||'removeRootAttribute'==_0x183426['type']||'changeRootAttribute'==_0x183426['type'])return void this['_handleRootAttributeOperation'](_0x183426);'marker'==_0x183426['type']&&this['_handleMarkerOperation'](_0x183426);}if('marker'!==_0x183426['type']){const _0x3a4cc6=this['_cloneOperation'](_0x183426,this['_diffRoots']);_0x3a4cc6['_execute'](),this['_transformMarkers'](_0x3a4cc6);}if(_0x4898e1)switch(_0x183426['type']){case'insert':this['_handleInsertOperation'](_0x183426);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x183426);break;case'merge':this['_handleMergeOperation'](_0x183426);break;case'split':this['_handleSplitOperation'](_0x183426);}}else this['_handleRootOperation'](_0x183426,_0x4898e1);}['_cloneOperation'](_0xa1e0f3,_0x14e46b){const _0x41c8b4=_0xa1e0f3['clone']();return _0x41c8b4['_authorId']=_0xa1e0f3['_authorId'],this['_fixOperation'](_0x41c8b4,_0x14e46b),_0x41c8b4;}['_getBaseVids'](_0x251a11){return _0x251a11['map'](_0x58b302=>{const _0x275afa=this['_getVidAttributeName'](_0x58b302);return Number(_0x58b302['item']['getAttribute'](_0x275afa));});}['_generateTape'](_0x29a52e,_0x477a27){if(_0x29a52e['is']('element','$text'))_0x477a27['push']({'item':_0x29a52e,'type':'text'});else{_0x29a52e['is']('element')&&_0x477a27['push']({'item':_0x29a52e,'type':'elementStart'});for(const _0x162811 of _0x29a52e['getChildren']())this['_generateTape'](_0x162811,_0x477a27);_0x29a52e['is']('element')&&_0x477a27['push']({'item':_0x29a52e,'type':'elementEnd'});}return _0x477a27;}['_getState'](){const _0x18379f=new Map(this['_touched']),_0x2317c1=new Map(_0x18379f),_0x19f272=new Map(),_0x52058c={'insertions':{},'deletions':{}},_0x7cf3f1={'insertions':{},'deletions':{}},_0x4ca1be=new Map(),_0x55b14c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x55b14c['delete']('$graveyard');for(const _0x3a7661 of _0x55b14c){const _0xd41588=this['_diffRoots']['get'](_0x3a7661)||P(_0x3a7661,!0x1),_0x16b6ef=this['_baseRoots']['get'](_0x3a7661)||P(_0x3a7661,!0x1);_0xd41588['isAttached']()||_0x16b6ef['isAttached']()?(_0x52058c['insertions'][_0x3a7661]=N(_0xd41588),_0x52058c['deletions'][_0x3a7661]=N(_0x16b6ef),this['_copyMarkers'](_0x52058c['deletions'][_0x3a7661],_0x16b6ef),this['_copyMarkers'](_0x52058c['insertions'][_0x3a7661],_0xd41588),_0x7cf3f1['insertions'][_0x3a7661]=this['_generateTape'](this['_idsRoots']['get'](_0x3a7661),[]),_0x7cf3f1['deletions'][_0x3a7661]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3a7661)||P(_0x3a7661,!0x1),[])):_0x55b14c['delete'](_0x3a7661);}for(const _0x4e3a65 of _0x55b14c){const _0x142738=_0x7cf3f1['insertions'][_0x4e3a65];for(const _0x54bece of _0x142738){const _0x42caa2=this['_getVidAttributeName'](_0x54bece),_0x382023=_0x54bece['item']['getAttribute'](_0x42caa2);_0x2317c1['delete'](_0x382023),_0x382023>=this['_startingRevisionId']&&_0x19f272['set'](_0x382023,_0x18379f['get'](_0x382023));}}for(const _0x47195f of _0x55b14c){const _0x1fff3f=_0x7cf3f1['insertions'][_0x47195f],_0x3408fb=this['_getBaseVids'](_0x7cf3f1['deletions'][_0x47195f]);let _0x2512af=0x0;for(const _0x11c836 of _0x1fff3f){const _0x5a8421=this['_getVidAttributeName'](_0x11c836),_0x4ba4c2=_0x11c836['item']['getAttribute'](_0x5a8421);if(!_0x19f272['has'](_0x4ba4c2)&&!_0x4ca1be['has'](_0x4ba4c2)){if(_0x2317c1['has'](_0x4ba4c2))_0x2512af++;else{if(_0x4ba4c2!=_0x3408fb[_0x2512af]){const _0x1c3228=_0x18379f['get'](_0x4ba4c2)||_0x18379f['get'](_0x3408fb[_0x2512af]);for(;_0x4ba4c2!=_0x3408fb[_0x2512af];)_0x2317c1['has'](_0x3408fb[_0x2512af])||(_0x4ca1be['set'](_0x3408fb[_0x2512af],_0x1c3228),_0x18379f['set'](_0x3408fb[_0x2512af],_0x1c3228)),_0x2512af++;}_0x2512af++;}}}}for(const _0x5b4ce2 of _0x55b14c){const _0xfa4451=_0x7cf3f1['insertions'][_0x5b4ce2];for(const _0x5422d6 of _0xfa4451){const _0x205479=this['_getVidAttributeName'](_0x5422d6),_0x4b82da=_0x5422d6['item']['getAttribute'](_0x205479);if(_0x4ca1be['has'](_0x4b82da)){const _0x211941=_0x4ca1be['get'](_0x4b82da);_0x2317c1['has'](_0x4b82da)||_0x2317c1['set'](_0x4b82da,{..._0x211941}),_0x19f272['set'](_0x4b82da,{..._0x211941});}}}for(const _0x38432c of _0x2317c1['keys']())_0x38432c>=this['_startingRevisionId']&&_0x2317c1['delete'](_0x38432c);const _0x3fafc5=new Map();for(const _0x558579 of _0x55b14c){let _0x67b65e=_0x7cf3f1['insertions'][_0x558579];for(const _0x3acb37 of _0x67b65e)if(_0x3acb37['item']['is']('element','tableCell')){const _0xecaee7=this['_getVidAttributeName'](_0x3acb37),_0x4789ec=_0x3acb37['item']['getAttribute'](_0xecaee7);if(_0x19f272['has'](_0x4789ec)){const _0x5d1724=_0x3acb37['item']['parent']['parent']['getAttribute']('vid_start'),_0x14f504=_0x3fafc5['get'](_0x5d1724)||new Set();_0x14f504['add'](_0x19f272['get'](_0x4789ec)['userId']),_0x3fafc5['set'](_0x5d1724,_0x14f504);}}_0x67b65e=_0x7cf3f1['deletions'][_0x558579];for(const _0x480fee of _0x67b65e)if(_0x480fee['item']['is']('element','tableCell')){const _0x3413f1=this['_getVidAttributeName'](_0x480fee),_0x535127=_0x480fee['item']['getAttribute'](_0x3413f1);if(_0x2317c1['has'](_0x535127)){const _0x275f81=_0x480fee['item']['parent']['parent']['getAttribute']('vid_start'),_0x1fdf54=_0x3fafc5['get'](_0x275f81)||new Set();_0x1fdf54['add'](_0x2317c1['get'](_0x535127)['userId']),_0x3fafc5['set'](_0x275f81,_0x1fdf54);}}for(const _0x225748 of _0x3fafc5['keys']())(_0x19f272['has'](_0x225748)||_0x2317c1['has'](_0x225748))&&_0x3fafc5['delete'](_0x225748);}for(const _0x41e32e of _0x55b14c){const _0x14045f=_0x7cf3f1['insertions'][_0x41e32e];let _0x5e58e4=null,_0x260402=null;for(const _0x12dae7 of _0x14045f){const _0x586fcd=this['_getVidAttributeName'](_0x12dae7),_0x377728=_0x12dae7['item']['getAttribute'](_0x586fcd),_0x590016=_0x3fafc5['get'](_0x377728);_0x590016&&'elementStart'==_0x12dae7['type']&&(_0x5e58e4=Array['from'](_0x590016)[0x0],_0x260402=_0x12dae7['item']['getAttribute']('vid_end')),_0x5e58e4&&(_0x2317c1['set'](_0x377728,{'userId':_0x5e58e4}),_0x19f272['set'](_0x377728,{'userId':_0x5e58e4})),_0x377728==_0x260402&&(_0x5e58e4=null,_0x260402=null);}}const _0x56a5eb={},_0x44aa4a=new Set();for(const _0x182262 of _0x55b14c){const _0xfca9eb=_0x52058c['deletions'][_0x182262],_0x22f56a=_0x52058c['insertions'][_0x182262];for(const {userId:_0x343790}of this['_touchedMarkers']['values']())null!==_0x343790&&_0x44aa4a['add'](_0x343790);for(const {userId:_0x16c5f0}of this['_touchedRoots']['values']())null!==_0x16c5f0&&_0x44aa4a['add'](_0x16c5f0);this['_markChanges'](_0x22f56a,_0x7cf3f1['insertions'][_0x182262],_0x19f272,'insertion',_0x44aa4a),this['_markChanges'](_0xfca9eb,_0x7cf3f1['deletions'][_0x182262],_0x2317c1,'deletion',_0x44aa4a),_0x56a5eb[_0x182262]={'insertions':this['_prepareViewToSave'](_0x22f56a),'deletions':this['_prepareViewToSave'](_0xfca9eb),'attachChange':this['_touchedRoots']['get'](_0x182262)||null,'attributesBefore':_0x3a2169(this['_baseRootsAttributes']['get'](_0x182262))||{},'attributesAfter':_0x3a2169(this['_diffRootsAttributes']['get'](_0x182262))};}return{'diffData':_0x56a5eb,'authorsIds':Array['from'](_0x44aa4a)};}['_processRootBeforeSave'](_0x2fa8f1){for(const [,_0x128144]of _0x2fa8f1['markers']){const _0x1c8080=_0x128144['start']['getAncestors']()['filter'](_0x16f0a2=>'tableCell'==_0x16f0a2['name']);for(const _0x5a1bee of _0x1c8080)0x1==_0x5a1bee['childCount']&&_0x5a1bee['getChild'](0x0)['is']('element','paragraph')&&_0x5a1bee['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4f7935){this['_processRootBeforeSave'](_0x4f7935);const _0x43ebfc=this['editor']['data']['toView'](_0x4f7935,{}),_0x4a9283=Array['from'](_0x43ebfc['getChildren']())['map'](_0x39f85f=>this['_getViewJson'](_0x39f85f));return JSON['stringify'](_0x4a9283);}['_getViewJson'](_0x3f6968){if(_0x3f6968['is']('$text'))return _0x3f6968['data'];{const _0x3e2439=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2b12dd=_0x3f6968,_0x2de653=this['editor']['data']['htmlProcessor']['domConverter'],_0x262dbf={'type':_0x3e2439['_getTypeCharForViewElement'](_0x2b12dd),'name':_0x2b12dd['name'],'attributes':Array['from'](_0x2b12dd['getAttributes']()),'children':Array['from'](_0x2b12dd['getChildren']())['map'](_0x59ee86=>this['_getViewJson'](_0x59ee86))};if(_0x3f6968['is']('uiElement')&&'$comment'!=_0x3f6968['name']){const _0x30869c=_0x3f6968['render'](_0x2de653['domDocument'],_0x2de653);_0x262dbf['children']['push'](_0x30869c['outerHTML']);}else{if(_0x3f6968['is']('rawElement')){const _0x5105d1=_0x2de653['domDocument']['createElement'](_0x2b12dd['name']);_0x3f6968['render'](_0x5105d1,_0x2de653),_0x262dbf['children']['push'](_0x5105d1['innerHTML']);}}const _0x2c1f26=Array['from'](_0x2b12dd['getCustomProperties']());_0x2c1f26['length']>0x0&&(_0x262dbf['customProperties']=_0x2c1f26);const _0x3b7a78=_0x2b12dd['getFillerOffset']();return null!==_0x3b7a78&&(_0x262dbf['fillerOffset']=_0x3b7a78),_0x262dbf;}}['_markChanges'](_0x3e97b7,_0x56981c,_0x4a6ef3,_0x9057cb,_0x34fdf4){let _0x2a5748=null,_0xb30c8c=null,_0x4b7cf7=0x0;const _0x37065d=this['editor']['model'];for(let _0x49dfa1=0x0;_0x49dfa1<_0x56981c['length'];_0x49dfa1++){const _0x1c4d45=this['_getVidAttributeName'](_0x56981c[_0x49dfa1]),_0x2c28d0=_0x56981c[_0x49dfa1]['item']['getAttribute'](_0x1c4d45),_0x20c904=_0x4a6ef3['get'](_0x2c28d0),_0x24c505=_0x49dfa1==_0x56981c['length']-0x1;(!_0x2a5748&&_0x20c904&&(_0x2a5748=_0x20c904,_0xb30c8c=_0x56981c[_0x49dfa1]),_0x2a5748&&(!_0x20c904||_0x20c904['userId']!=_0x2a5748['userId']))&&(_0x280862(_0x20c904,F(_0xb30c8c,_0x3e97b7,_0x37065d),F(_0x56981c[_0x49dfa1],_0x3e97b7,_0x37065d)),_0x2a5748=_0x20c904||null,_0xb30c8c=_0x20c904?_0x56981c[_0x49dfa1]:null),_0x2a5748&&_0x24c505&&_0x280862(_0x20c904,F(_0xb30c8c,_0x3e97b7,_0x37065d),B(_0x56981c[_0x49dfa1],_0x3e97b7,_0x37065d));}function _0x280862(_0x47c93a,_0x38f900,_0x178edc){const _0x5c3743=_0x2a5748['userId'],_0x2b99bc='revision:'+_0x9057cb+':'+_0x5c3743+':'+_0x4b7cf7++,_0xa99a35=_0x37065d['createRange'](_0x38f900,_0x178edc);_0x3e97b7['markers']['set'](_0x2b99bc,_0xa99a35),null!==_0x5c3743&&_0x34fdf4['add'](_0x5c3743);}}['_getVidAttributeName'](_0x29a7c3){switch(_0x29a7c3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x21e69b,_0x572543){_0x21e69b['baseVersion']=null;for(const _0x194e41 in _0x21e69b){const _0x258a11=_0x21e69b[_0x194e41];if(_0x258a11 instanceof ft){const _0xebf113=_0x572543['get'](_0x258a11['root']['rootName']);_0x21e69b[_0x194e41]=this['_fixPosition'](_0x258a11,_0xebf113);}if(_0x258a11 instanceof lt){const _0x39f939=_0x572543['get'](_0x258a11['root']['rootName']);_0x21e69b[_0x194e41]=this['_fixRange'](_0x258a11,_0x39f939);}'root'===_0x194e41&&(_0x21e69b['root']=_0x572543['get'](_0x21e69b['root']['rootName']));}}['_fixRange'](_0x5a7d02,_0xa7721c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5a7d02['start'],_0xa7721c),this['_fixPosition'](_0x5a7d02['end'],_0xa7721c));}['_fixPosition'](_0x1e2351,_0x5eb2a8){return this['editor']['model']['createPositionFromPath'](_0x5eb2a8,_0x1e2351['path'],_0x1e2351['stickiness']);}['_handleInsertOperation'](_0x1765ca){const _0x43aa0a=this['_idsRoots']['get'](_0x1765ca['position']['root']['rootName']),_0x389fc5=this['_fixPosition'](_0x1765ca['position'],_0x43aa0a),_0x19b710=null===_0x1765ca['_authorId']?null:_0x1765ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x334498=_0x389fc5['parent'],_0x4f7cca=this['_revisionId'],_0x3bd1c0=[];for(const _0x5bea77 of _0x1765ca['nodes'])if(_0x5bea77['is']('element'))_0x3bd1c0['push'](this['_makeIdsRoot'](_0x5bea77));else{for(let _0x4db5dc=0x0;_0x4db5dc<_0x5bea77['offsetSize'];_0x4db5dc++)_0x3bd1c0['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x134d37=this['_revisionId'];for(let _0x1880b0=_0x4f7cca;_0x1880b0<_0x134d37;_0x1880b0++)this['_touched']['set'](_0x1880b0,{'userId':_0x19b710});_0x334498['_insertChild'](_0x389fc5['offset'],_0x3bd1c0);}['_handleMoveOperation'](_0x1e2b8c){(_0x1e2b8c=this['_cloneOperation'](_0x1e2b8c,this['_idsRoots']))['_execute']();const _0x1ae87a=null===_0x1e2b8c['_authorId']?null:_0x1e2b8c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36f67d=_0x1e2b8c['getMovedRangeStart'](),_0x2bb33f=_0x36f67d['parent'],_0x9e8b56=_0x36f67d['offset'];!function _0x49ff94(_0x440590,_0x44617b,_0x243c47,_0x1676f7){for(let _0xd19598=_0x243c47;_0xd19598<_0x1676f7;_0xd19598++){const _0x15f0fa=_0x44617b['getChild'](_0xd19598);_0x15f0fa['is']('element','$text')?_0x440590['set'](_0x15f0fa['getAttribute']('vid'),{'userId':_0x1ae87a}):(_0x440590['set'](_0x15f0fa['getAttribute']('vid_start'),{'userId':_0x1ae87a}),_0x49ff94(_0x440590,_0x15f0fa,0x0,_0x15f0fa['childCount']),_0x440590['set'](_0x15f0fa['getAttribute']('vid_end'),{'userId':_0x1ae87a}));}}(this['_touched'],_0x2bb33f,_0x9e8b56,_0x9e8b56+_0x1e2b8c['howMany']);}['_handleMergeOperation'](_0xf57cb7){const _0x4c90ce=null===(_0xf57cb7=this['_cloneOperation'](_0xf57cb7,this['_idsRoots']))['_authorId']?null:_0xf57cb7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45f18c=_0xf57cb7['targetPosition']['parent'],_0x159676=_0xf57cb7['sourcePosition']['parent'],_0x3c2f68=_0x45f18c['getAttribute']('vid_end'),_0x1745c0=_0x159676['getAttribute']('vid_start');_0x45f18c['_setAttribute']('vid_end',_0x159676['getAttribute']('vid_end')),_0x159676['_setAttribute']('vid_end',_0x3c2f68),this['_touched']['set'](_0x1745c0,{'userId':_0x4c90ce}),this['_touched']['set'](_0x3c2f68,{'userId':_0x4c90ce}),_0xf57cb7['_execute']();}['_handleSplitOperation'](_0x2ae6aa){const _0x2553a1=null===(_0x2ae6aa=this['_cloneOperation'](_0x2ae6aa,this['_idsRoots']))['_authorId']?null:_0x2ae6aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f9166=_0x2ae6aa['graveyardPosition'],_0x1b315d=_0x2ae6aa['splitPosition']['parent'];_0x2ae6aa['_execute']();const _0xa4c09b=_0x1b315d['getAttribute']('vid_end'),_0xc587df=_0x2ae6aa['insertionPosition']['nodeAfter'];if(_0x3f9166){const _0x2030b0=_0xc587df['getAttribute']('vid_end'),_0x54d97b=_0x1b315d['getAttribute']('vid_end');_0x1b315d['_setAttribute']('vid_end',_0x2030b0),_0xc587df['_setAttribute']('vid_end',_0x54d97b),this['_touched']['set'](_0x1b315d['getAttribute']('vid_end'),{'userId':_0x2553a1}),this['_touched']['set'](_0xc587df['getAttribute']('vid_start'),{'userId':_0x2553a1});}else{const _0x1f051a=this['_revisionId']++,_0x3df4aa=this['_revisionId']++;_0x1b315d['_setAttribute']('vid_end',_0x1f051a),_0xc587df['_setAttribute']('vid_start',_0x3df4aa),_0xc587df['_setAttribute']('vid_end',_0xa4c09b),this['_touched']['set'](_0x1f051a,{'userId':_0x2553a1}),this['_touched']['set'](_0x3df4aa,{'userId':_0x2553a1});}}['_handleMarkerOperation'](_0x2ca51c){if(!_0x2ca51c['affectsData'])return;const _0x1907f7=(_0x2ca51c=this['_cloneOperation'](_0x2ca51c,this['_diffRoots']))['oldRange']?_0x2ca51c['oldRange']['root']:null,_0x2de1e0=_0x2ca51c['newRange']?_0x2ca51c['newRange']['root']:null;_0x1907f7&&this['_markers']['delete'](_0x2ca51c['name']),_0x2de1e0&&this['_markers']['set'](_0x2ca51c['name'],_0x2ca51c['newRange']['clone']());const _0x47e724=null===_0x2ca51c['_authorId']?null:_0x2ca51c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26f9d2=_0x2ca51c['name'];if(!this['_touchedMarkers']['has'](_0x26f9d2))return void this['_touchedMarkers']['set'](_0x26f9d2,{'range':_0x2ca51c['oldRange'],'userId':_0x47e724});const _0x23ad3e=this['_touchedMarkers']['get'](_0x26f9d2),_0x3c0a58=_0x23ad3e['range'],_0x439360=_0x2ca51c['newRange'];null==_0x3c0a58&&null==_0x439360||_0x3c0a58&&_0x439360&&_0x3c0a58['isEqual'](_0x439360)?this['_touchedMarkers']['delete'](_0x2ca51c['name']):_0x23ad3e['userId']=_0x47e724;}['_handleRootOperation'](_0x39d36c,_0x45112e){this['_diffRoots']['has'](_0x39d36c['rootName'])?this['_diffRoots']['get'](_0x39d36c['rootName'])['_isAttached']=_0x39d36c['isAdd']:(this['_diffRoots']['set'](_0x39d36c['rootName'],P(_0x39d36c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39d36c['rootName'],{}),_0x45112e&&this['_idsRoots']['set'](_0x39d36c['rootName'],P(_0x39d36c['rootName'],!0x0)));const _0x506a10=null===_0x39d36c['_authorId']?null:_0x39d36c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x145d8b=this['_touchedRoots']['get'](_0x39d36c['rootName']);_0x145d8b&&_0x145d8b['userId']===_0x506a10?this['_touchedRoots']['delete'](_0x39d36c['rootName']):this['_touchedRoots']['set'](_0x39d36c['rootName'],{'userId':_0x506a10,'isAttached':_0x39d36c['isAdd']});}['_handleRootAttributeOperation'](_0x1f1084){const _0x10cef3=this['_diffRootsAttributes']['get'](_0x1f1084['root']['rootName']);null===_0x1f1084['newValue']?delete _0x10cef3[_0x1f1084['key']]:_0x10cef3[_0x1f1084['key']]=_0x1f1084['newValue'];}}function N(_0x35f662){const _0x1abcce=P(_0x35f662['rootName'],_0x35f662['isAttached']());for(const _0x2b2f3d of _0x35f662['getChildren']()){const _0x48ddcc=_0x2b2f3d['_clone'](!0x0);_0x1abcce['_appendChild'](_0x48ddcc);}return _0x1abcce;}function P(_0x65c46e,_0x1056bf=!0x0){const _0x5801db=new vt();return _0x5801db['rootName']=_0x65c46e,_0x5801db['_isAttached']=_0x1056bf,_0x5801db['isAttached']=()=>_0x5801db['_isAttached'],_0x5801db;}function F(_0x598ea2,_0x34f147,_0xd38c4b){const _0xa55e27='elementEnd'==_0x598ea2['type']?_0xd38c4b['createPositionAt'](_0x598ea2['item'],'end'):_0xd38c4b['createPositionBefore'](_0x598ea2['item']);return _0xd38c4b['createPositionFromPath'](_0x34f147,_0xa55e27['path'],_0xa55e27['stickiness']);}function B(_0x181d6b,_0x24f84,_0x2fbdb4){const _0x1c215f='elementStart'==_0x181d6b['type']?_0x2fbdb4['createPositionAt'](_0x181d6b['item'],0x0):_0x2fbdb4['createPositionAfter'](_0x181d6b['item']);return _0x2fbdb4['createPositionFromPath'](_0x24f84,_0x1c215f['path'],_0x1c215f['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xe2f767,_0x319ab9){super(_0xe2f767),this['focusTracker']=new _0x4ecfb8(),this['keystrokes']=new _0x52968a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x319ab9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xdfa429(this);}['render'](){super['render'](),_0xb211c2({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3acd8d=_0x5b58f1=>_0x5b58f1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3acd8d),this['keystrokes']['set']('arrowleft',_0x3acd8d),this['keystrokes']['set']('arrowup',_0x3acd8d),this['keystrokes']['set']('arrowdown',_0x3acd8d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1f1532){this['revisionNameInputView']['fieldView']['element']['value']=_0x1f1532['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5695c6){const _0x3afdc2=new _0x370644(this['locale'],_0x342059),_0x1fdec7=_0x3afdc2['fieldView'];_0x1fdec7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35425b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5695c6&&(_0x35425b+='\x20('+g(this['locale'],'optional')+')'),(_0x3afdc2['label']=_0x35425b,_0x1fdec7['on']('input',()=>{this['revisionNameInputValue']=_0x1fdec7['element']['value']['trim']();}),_0x3afdc2);}}class f extends _0x2a63bd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4969ea=this['editor'],_0x586a39=_0x4969ea['plugins']['get']('RevisionTracker');_0x4969ea['ui']['componentFactory']['add']('revisionHistory',_0x53fee5=>{const _0x1dae0c=_0x146e16(_0x53fee5),_0x4f9584=_0x1dae0c['panelView']['children'],_0x94fc59=new _0x176c2f(_0x53fee5),_0x409661=new _0x12bd81(_0x53fee5),_0x3d96c8=new te(_0x53fee5),_0x16983b=new _0x12bd81(_0x53fee5),_0x3d2edd=new te(_0x53fee5);return _0x1dae0c['bind']('isEnabled')['to'](_0x586a39,'isReady',_0x586a39,'isEnabled',_0x4969ea,'isReadOnly',(_0x428949,_0x2929c4,_0x2c1fd2)=>_0x428949&&_0x2929c4&&!_0x2c1fd2),_0x1dae0c['buttonView']['set']({'icon':_0x3e3e17,'label':g(_0x53fee5,'Revision\x20history'),'tooltip':!0x0}),_0x3d96c8['set']({'label':g(_0x53fee5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3d96c8['bind']('isEnabled')['to'](_0x586a39,'isReady',_0x586a39,'isEnabled',_0x4969ea,'isReadOnly',(_0x51eb6f,_0x44411b,_0xa4f85e)=>_0x51eb6f&&_0x44411b&&!_0xa4f85e),_0x3d96c8['on']('execute',()=>this['_showDialog']()),_0x3d2edd['set']({'label':g(_0x53fee5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3d2edd['bind']('isEnabled')['to'](_0x586a39,'isReady',_0x4969ea,'isReadOnly',(_0x47e106,_0x55d0a0)=>_0x47e106&&!_0x55d0a0),_0x3d2edd['on']('execute',()=>{_0x4969ea['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1dae0c['isOpen']=!0x1,_0x4969ea['editing']['view']['focus']();}),_0x409661['children']['add'](_0x3d96c8),_0x16983b['children']['add'](_0x3d2edd),_0x94fc59['role']='menu',_0x94fc59['items']['addMany']([_0x409661,_0x16983b]),_0x4f9584['add'](_0x94fc59),_0x1dae0c;}),_0x4969ea['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xd41a02=this['editor'],_0x34dd36=_0xd41a02['locale'],_0x23d4a2=new _0x2204e8(_0x34dd36),_0x34d231=new _0x203e50(_0x34dd36);_0x23d4a2['buttonView']['set']({'icon':_0x3e3e17,'label':g(_0x34dd36,'Revision\x20history')});const _0x44d102=new _0x588799(_0x34dd36,_0x23d4a2),_0x47fc8e=new _0x59fdc2(_0x34dd36);_0x47fc8e['set']({'label':g(_0x34dd36,'Save\x20current\x20revision')}),_0x47fc8e['delegate']('execute')['to'](_0x23d4a2),_0x47fc8e['on']('execute',()=>{this['_showDialog']();}),_0x44d102['children']['add'](_0x47fc8e),_0x34d231['items']['add'](_0x44d102);const _0x39bbb1=new _0x588799(_0x34dd36,_0x23d4a2),_0x2ef9bc=new _0x59fdc2(_0x34dd36);return _0x2ef9bc['set']({'label':g(_0x34dd36,'Open\x20revision\x20history')}),_0x2ef9bc['delegate']('execute')['to'](_0x23d4a2),_0x2ef9bc['on']('execute',()=>{_0xd41a02['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x39bbb1['children']['add'](_0x2ef9bc),_0x34d231['items']['add'](_0x39bbb1),_0x23d4a2['panelView']['children']['add'](_0x34d231),_0x23d4a2;}['_showDialog'](){const _0x5d95d6=this['editor'],_0x1e6fb2=_0x5d95d6['locale'],_0x222b6b=_0x5d95d6['plugins']['get']('Dialog'),_0x43149c=_0x5d95d6['plugins']['get']('RevisionTracker');function _0x4f7bcf(_0x3d04ab){_0x5d95d6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3d04ab['revisionName']?_0x3d04ab['revisionNameInputView']['errorText']=g(_0x1e6fb2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5d95d6['plugins']['get'](u)['saveRevision']({'name':_0x3d04ab['revisionName']}),_0x222b6b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4f7bcf(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x222b6b['show']({'id':'revisionSave','title':g(_0x1e6fb2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5d95d6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x222b6b['hide']()},{'label':g(_0x5d95d6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x26bc2f){_0x26bc2f['bind']('isEnabled')['to'](_0x43149c,'isReady',_0x43149c,'isEnabled',_0x5d95d6,'isReadOnly',(_0x4465b3,_0x401ba9,_0x5ef50d)=>_0x4465b3&&_0x401ba9&&!_0x5ef50d);},'onExecute':()=>_0x4f7bcf(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x122fc2=this['editor'],_0x15e1a6=_0x122fc2['locale'];this['_saveRevisionFormView']=new hs(_0x15e1a6,_0x122fc2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1aa482,_0xa3ed1f){super(_0x1aa482),this['_model']=_0xa3ed1f,this['changeId']=_0xa3ed1f['id'];const _0x5dac60=this['bindTemplate'],_0x13f1a0=g(_0x1aa482,_0xa3ed1f['data']['isSuggestion']?'Suggested\x20by':'add'==_0xa3ed1f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xa3ed1f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5dac60['to']('type',_0x228a5c=>'ck-revision-change__'+_0x228a5c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x13f1a0}]},{'text':'\x20'+_0xa3ed1f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xaad3d0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x39df36){super(),this['id']=_0x39df36['id']||_0x5ca89b(),this['author']=_0x39df36['author'],this['type']=_0x39df36['type'],this['data']=_0x39df36['data']||{},this['rootName']=_0x39df36['rootName'],this['set']('createdAt',_0x39df36['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(_0x3c1c49,_0x52ec0d){this['newRevisionId']=_0x3c1c49,this['oldRevisionId']=_0x52ec0d,this['changes']=new _0x90db85();}['_setChanges'](_0x478165){for(const _0x151955 of _0x478165)this['changes']['add'](_0x151955);}}class m extends _0x2a63bd{['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[_0x25042d,_0x810963,I,V];}constructor(_0x1f2549){super(_0x1f2549),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',(_0x1b3ad5,_0x1b2550,_0x52737a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x38c66d=>{for(const _0x4b3691 of this['editor']['editing']['view']['document']['roots'])_0x52737a?_0x38c66d['removeClass']('ck-editor__editable__overlay',_0x4b3691):_0x38c66d['addClass']('ck-editor__editable__overlay',_0x4b3691);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4fb846=>null!==_0x4fb846),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x36aa31,_0x319b61,_0x465b3f)=>_0x36aa31&&_0x465b3f?_0x319b61['changes']['getIndex'](_0x465b3f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5ae20f,_0x5149da)=>_0x5ae20f?_0x5149da['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x810963);}['init'](){const _0x9ae0d2=this['editor'],_0x227d1f=new wt(_0x9ae0d2,{'direction':'backward'}),_0x4c8685=new wt(_0x9ae0d2,{'direction':'forward'});(_0x9ae0d2['commands']['add']('showPreviousChange',_0x227d1f),_0x9ae0d2['commands']['add']('showNextChange',_0x4c8685),_0x9ae0d2['commands']['add']('restoreRevision',new mt(_0x9ae0d2)),this['on']('change:numberOfChanges',()=>{_0x227d1f['refresh'](),_0x4c8685['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x9ae0d2['enableReadOnlyMode']('revision-viewer'),_0x9ae0d2['plugins']['has']('WidgetToolbarRepository'))&&_0x9ae0d2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x22894e){return await this['_utils']['loadRevisionData'](_0x22894e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x22894e);}async['getRevisionRootsAttributes'](_0x594719){return await this['_utils']['loadRevisionData'](_0x594719,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x594719);}async['compare'](_0xc7b2ad,_0x48cb08,_0x273cbd=!0x1){if(!this['isEnabled'])return;const _0x339482=this['diff'],_0x1bb1e7=this['repository'],_0x188d95='string'==typeof _0xc7b2ad?_0x1bb1e7['getRevision'](_0xc7b2ad):_0xc7b2ad,_0x4dfa28='string'==typeof _0x48cb08?_0x1bb1e7['getRevision'](_0x48cb08):_0x48cb08,_0x17f5bc=_0x188d95['id'],_0x5216ac=_0x4dfa28?_0x4dfa28['id']:null;if(!_0x273cbd&&this['diff']&&this['diff']['newRevisionId']===_0x17f5bc&&this['diff']['oldRevisionId']===_0x5216ac)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x17f5bc,_0x5216ac);const _0x2e2901=this['_getRevisionsRange'](_0x188d95,_0x4dfa28,!0x0)['map'](_0x5841f7=>this['_utils']['loadRevisionData'](_0x5841f7,this['adapter']));return _0x2e2901['push'](new Promise(_0x4ad914=>{setTimeout(_0x4ad914,0x14);})),Promise['all'](_0x2e2901)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x577371=this['_getDiff'](_0x17f5bc,_0x5216ac);for(const _0x2effd3 of _0x577371['changes'])this['_changeIdToChange']['set'](_0x2effd3['id'],_0x2effd3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x589a1c=>{for(const _0x3a409f of this['editor']['model']['document']['getRootNames']())_0x589a1c['detachRoot'](_0x3a409f);for(const _0x534f5f of Object['keys'](_0x577371['model'])){const _0x41e537=_0x589a1c['addRoot'](_0x534f5f);for(const _0x5ed506 of Object['keys'](_0x577371['attributes'][_0x534f5f]))_0x589a1c['setAttribute'](_0x5ed506,_0x577371['attributes'][_0x534f5f][_0x5ed506],_0x41e537);_0x589a1c['insert'](_0x577371['model'][_0x534f5f],_0x41e537,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x577371['changes'])),this['isReady']=!0x0;})['catch'](_0x5347a1=>{console['error'](_0x5347a1),this['_cleanUp'](),_0x339482&&(this['diff']=_0x339482),this['isReady']=!0x0;});}['addRevisionData'](_0x22a1ef,_0x46537f){const _0x2d4578=this['repository']['createRevision'](_0x22a1ef);return _0x2d4578['on']('_update',(_0x6a3c9,_0x1b86df,_0x1399c8)=>_0x46537f(_0x1b86df,_0x1399c8,_0x2d4578)),this['repository']['addRevision'](_0x2d4578),_0x2d4578;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x42b418=>{for(const _0x286685 of this['editor']['model']['document']['getRootNames']())_0x42b418['detachRoot'](_0x286685);});}['_sortAndFilterDiffChanges'](_0x17ef3b){const _0x4b465b=[],_0x505020=new Map();for(const _0x6164f1 of this['editor']['model']['document']['getRootNames']()){const _0x401fc8=this['editor']['editing']['view']['getDomRoot'](_0x6164f1);if(!_0x401fc8)continue;const _0x413b72=_0x401fc8['getClientRects']()['item'](0x0);_0x413b72&&(_0x4b465b['push'](_0x6164f1),_0x505020['set'](_0x6164f1,_0x413b72));}return _0x4b465b['sort']((_0x2d95da,_0x1711fd)=>{const _0x18e43f=_0x505020['get'](_0x2d95da),_0x351ae7=_0x505020['get'](_0x1711fd);return _0x18e43f['y']-_0x351ae7['y']||_0x18e43f['x']-_0x351ae7['x'];}),(_0x17ef3b=_0x17ef3b['filter'](_0x56d3ae=>_0x4b465b['includes'](_0x56d3ae['rootName'])))['sort']((_0x435507,_0xdab53a)=>_0x4b465b['indexOf'](_0x435507['rootName'])-_0x4b465b['indexOf'](_0xdab53a['rootName'])),_0x17ef3b;}['_makeTape'](_0xdc7fc9){const _0x268d2c=Array['from'](_0xdc7fc9['markers'])['filter'](([_0x1c3042,_0x10beaa])=>_0x1c3042['startsWith']('revision:')&&!_0x10beaa['isCollapsed']),_0x5520c8=Array['from'](this['editor']['model']['createRangeIn'](_0xdc7fc9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x268d2c['length'])for(const _0x5a2ea2 of _0x5520c8){const [_0x5a08ef,_0x1f0702]=_0x268d2c[0x0],[,_0x316b2a,_0x1b21f8]=_0x5a08ef['split'](':');if(_0x1f0702['end']['isEqual'](_0x5a2ea2['nextPosition'])&&_0x268d2c['shift'](),(_0x5a2ea2['previousPosition']['isEqual'](_0x1f0702['start'])||_0x5a2ea2['previousPosition']['isAfter'](_0x1f0702['start']))&&('insertion'==_0x316b2a?_0x5a2ea2['isAdded']={'userId':_0x1b21f8}:'deletion'==_0x316b2a&&(_0x5a2ea2['isRemoved']={'userId':_0x1b21f8})),0x0==_0x268d2c['length'])break;}return _0x5520c8;}['_refreshStartEndIndex'](_0x440bf2){const _0x335b93=new Map();for(let _0x7973e8=0x0;_0x7973e8<_0x440bf2['length'];_0x7973e8++)'text'===_0x440bf2[_0x7973e8]['type']?(_0x440bf2[_0x7973e8]['item']['startIndex']=_0x7973e8,_0x440bf2[_0x7973e8]['item']['endIndex']=_0x7973e8):('elementStart'===_0x440bf2[_0x7973e8]['type']?_0x440bf2[_0x7973e8]['item']['startIndex']=_0x7973e8:'elementEnd'===_0x440bf2[_0x7973e8]['type']&&(_0x440bf2[_0x7973e8]['item']['endIndex']=_0x7973e8),_0x335b93['set'](_0x440bf2[_0x7973e8]['id'],_0x7973e8));for(const _0x19c8af of _0x335b93['values']())'elementStart'===_0x440bf2[_0x19c8af]['type']?_0x440bf2[_0x19c8af]['item']['endIndex']=_0x335b93['get'](_0x440bf2[_0x19c8af]['pairId']):'elementEnd'===_0x440bf2[_0x19c8af]['type']&&(_0x440bf2[_0x19c8af]['item']['startIndex']=_0x335b93['get'](_0x440bf2[_0x19c8af]['pairId']));}['_processTape'](_0x804dc){for(let _0x373c10=0x0;_0x373c10<_0x804dc['length'];_0x373c10++){if('elementStart'===_0x804dc[_0x373c10]['type'])_0x804dc[_0x373c10]['item']['startIndex']=_0x373c10;else{if('elementEnd'===_0x804dc[_0x373c10]['type']){_0x804dc[_0x373c10]['item']['endIndex']=_0x373c10;const _0x52e685=_0x804dc[_0x373c10]['item']['startIndex'];_0x804dc[_0x52e685]['pairId']=_0x804dc[_0x373c10]['id'],_0x804dc[_0x373c10]['pairId']=_0x804dc[_0x52e685]['id'];}else _0x804dc[_0x373c10]['item']['startIndex']=_0x373c10,_0x804dc[_0x373c10]['item']['endIndex']=_0x373c10,_0x804dc[_0x373c10]['pairId']=null;}_0x804dc[_0x373c10]['markersStart']||(_0x804dc[_0x373c10]['markersStart']=[],_0x804dc[_0x373c10]['markersEnd']=[]);}}['_markInsertions'](_0x2723ba,_0x29e1de){const _0x3416d2=_0x2723ba['filter'](_0x509273=>!_0x509273['isAdded']);for(let _0x49330d=0x0;_0x49330d<_0x29e1de['length'];_0x49330d++)_0x29e1de[_0x49330d]['isAdded']&&(_0x3416d2[_0x49330d]['isAdded']=_0x29e1de[_0x49330d]['isAdded']);}['_getDiff'](_0x197954,_0x1e8c81=null){const _0x405923=this['repository']['getRevision'](_0x197954),_0x5780bc=_0x1e8c81?this['repository']['getRevision'](_0x1e8c81):null,_0x124787=this['_getRevisionsRange'](_0x405923,_0x5780bc),_0xc88fb3=_0x124787[_0x124787['length']-0x1],_0x2be45d=new Map(),_0x2a45be={'model':{},'attributes':{},'changes':[]},_0xd81f0b=new Set(),_0x17e982=new Map();for(let _0x57ba94=_0x124787['length']-0x1;_0x57ba94>=0x0;_0x57ba94--){const _0x287978=_0x124787[_0x57ba94];for(const _0x405198 of Object['keys'](_0x287978['diffData']))if(_0x287978['diffData'][_0x405198]['attachChange']){const _0x21b1af=_0x287978['diffData'][_0x405198]['attachChange'];_0x21b1af['isAttached']?(_0xd81f0b['add'](_0x405198),_0x17e982['has'](_0x405198)&&_0x17e982['get'](_0x405198)['userId']==_0x21b1af['userId']?_0x17e982['delete'](_0x405198):_0x17e982['set'](_0x405198,_0x21b1af)):_0x17e982['has'](_0x405198)?(_0xd81f0b['delete'](_0x405198),_0x17e982['delete'](_0x405198)):(_0xd81f0b['add'](_0x405198),_0x17e982['set'](_0x405198,_0x21b1af));}else _0xd81f0b['add'](_0x405198);}for(const _0x2293be of _0xd81f0b){const _0x16b43f=_0x17e982['has'](_0x2293be)&&!_0x17e982['get'](_0x2293be)['isAttached'];let _0x2b3b8b=_0x16b43f?_0x124787['length']-0x1:0x0;const _0x4be916=_0x16b43f?-0x1:0x1;for(;_0x124787[_0x2b3b8b];){const _0x241da6=_0x124787[_0x2b3b8b];if(_0x241da6['diffData'][_0x2293be]){const _0x340b3b=_0x16b43f?_0x241da6['diffData'][_0x2293be]['attributesBefore']:_0x241da6['diffData'][_0x2293be]['attributesAfter'];_0x2a45be['attributes'][_0x2293be]=_0x340b3b?_0x3a2169(_0x340b3b):{};break;}_0x2b3b8b+=_0x4be916;}}for(const _0x3521b9 of _0x124787){_0x3521b9['model']={};for(const _0x2254ba of _0x3521b9['authors'])_0x2be45d['set'](_0x2254ba['id'],_0x2254ba);for(const _0x4c9831 of _0xd81f0b){const _0x374fe1=_0x3521b9['diffData'][_0x4c9831]?_0x3521b9['diffData'][_0x4c9831]['insertions']:'[]',_0x113f83=_0x3521b9['diffData'][_0x4c9831]?_0x3521b9['diffData'][_0x4c9831]['deletions']:'[]';_0x3521b9['model'][_0x4c9831]={'insertions':this['_utils']['_makeModelFromViewString'](_0x374fe1),'deletions':this['_utils']['_makeModelFromViewString'](_0x113f83)};}}for(const _0x28a685 of _0xd81f0b){let _0x48ac04=null,_0x2f979e=0x0;const _0x14a913=new Map(Array['from'](_0x405923['model'][_0x28a685]['insertions']['markers'])['filter'](([_0x2a101b])=>!_0x2a101b['startsWith']('revision:')));let _0x25ae26=0x0;for(const _0x165823 of _0x124787){const _0x14f35a=this['_makeTape'](_0x165823['model'][_0x28a685]['insertions']);_0x165823==_0x405923?(_0x48ac04=_0x14f35a,_0x2f979e=_0x48ac04['length'],_0x48ac04['forEach'](_0x33501b=>{_0x33501b['id']=_0x25ae26++;}),this['_processTape'](_0x48ac04)):this['_markInsertions'](_0x48ac04,_0x14f35a);const _0x5e7282=_0x48ac04['filter'](_0x5dab15=>!_0x5dab15['isAdded'])['map'](_0x22fd46=>_0x22fd46['id']);let _0x33eeb9=0x0;const _0x5d39f8=this['_makeTape'](_0x165823['model'][_0x28a685]['deletions']);_0x5d39f8['forEach'](_0x2588eb=>{_0x2588eb['isRemoved']?_0x2588eb['id']=_0x2f979e++:_0x2588eb['id']=_0x5e7282[_0x33eeb9++];}),this['_processTape'](_0x5d39f8),this['_setDistance'](_0x48ac04,'isAdded'),this['_setDistance'](_0x5d39f8,'isRemoved'),_0x165823==_0x405923&&this['_markMarkers'](_0x48ac04,_0x14a913),_0x48ac04=this['_joinTapes'](_0x48ac04,_0x5d39f8),this['_refreshStartEndIndex'](_0x48ac04),this['_setDistance'](_0x48ac04,'isRemoved');}_0x48ac04=_0x48ac04['filter'](_0x4554cc=>!(_0x4554cc['isAdded']&&_0x4554cc['isRemoved']));const _0x20f732=new Map(_0xc88fb3['model'][_0x28a685]['deletions']['markers']),_0x13c700=new Set(_0x14a913['keys']());for(const _0x8bf92e of _0x20f732['keys']())_0x13c700['delete'](_0x8bf92e);this['_markSuggestions'](_0x48ac04,_0x13c700),this['_fixObsoleteTags'](_0x48ac04),_0x48ac04=this['_removeMissingPairs'](_0x48ac04),_0x48ac04=this['_markMismatchedRemovedTags'](_0x48ac04),_0x48ac04=this['_removeUnsupportedChanges'](_0x48ac04);const {root:_0xf679c9,changes:_0x1fcc74}=this['_makeModelFromTape'](_0x48ac04,_0x2be45d,_0x28a685);_0x2a45be['model'][_0x28a685]=_0xf679c9;const _0x542042=_0x17e982['get'](_0x28a685);if(_0x542042){const _0x4b547a=_0x2be45d['get'](_0x542042['userId']),_0xf522e9=new r({'author':_0x4b547a,'type':_0x542042['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x28a685});_0x1fcc74['unshift'](_0xf522e9),_0x2a45be['attributes'][_0x28a685]['revisionHistoryAttachChange']=_0xf522e9['id'];}_0x2a45be['changes']=_0x2a45be['changes']['concat'](_0x1fcc74);}return _0x2a45be;}['_markMarkers'](_0x23ab39,_0x5988be){for(let _0x4ccda9=0x0;_0x4ccda9<_0x23ab39['length'];_0x4ccda9++)for(const [_0x47da5f,_0x236891]of _0x5988be)!_0x236891['isCollapsed']&&_0x236891['start']['isEqual'](_0x23ab39[_0x4ccda9]['previousPosition'])&&_0x23ab39[_0x4ccda9]['markersStart']['push'](_0x47da5f),_0x236891['end']['isEqual'](_0x23ab39[_0x4ccda9]['nextPosition'])&&_0x23ab39[_0x4ccda9]['markersEnd']['push'](_0x47da5f);}['_joinTapes'](_0x2e3191,_0x4fa8a6){let _0x381991=[],_0x23e257=0x0,_0x19a631=0x0;for(;_0x23e257<_0x2e3191['length']||_0x19a631<_0x4fa8a6['length'];){const _0xcce79d=_0x2e3191[_0x23e257]||{},_0x4f75ce=_0x4fa8a6[_0x19a631]||{};if(_0xcce79d['id']==_0x4f75ce['id'])_0x23e257++,_0x19a631++,_0x381991['push'](_0xcce79d);else{if(_0x4f75ce['isRemoved']&&_0xcce79d['isAdded']){const {commonTape:_0x2d8c67,iEnd:_0x20bbfb,jEnd:_0x1b6adf}=this['_threeWayMerge'](_0x2e3191,_0x23e257,_0x4fa8a6,_0x19a631);_0x381991=_0x381991['concat'](_0x2d8c67),_0x23e257=_0x20bbfb,_0x19a631=_0x1b6adf;}else _0x4f75ce['isRemoved']?(_0x19a631++,_0x381991['push'](_0x4f75ce)):(_0x23e257++,_0x381991['push'](_0xcce79d));}}return _0x381991;}['_markSuggestions'](_0x33c475,_0x1c69c1){const _0x5a04ea=[];for(let _0x2d45ca=0x0;_0x2d45ca<_0x33c475['length'];_0x2d45ca++){for(let _0xe3cbc1=0x0;_0xe3cbc1<_0x33c475[_0x2d45ca]['markersStart']['length'];_0xe3cbc1++){const _0x2f7526=_0x33c475[_0x2d45ca]['markersStart'][_0xe3cbc1];if(!_0x1c69c1['has'](_0x2f7526))continue;const {group:_0xe70000,type:_0x3563d6,authorId:_0x3d6900}=_0x4261a2(_0x2f7526);'revision-suggestion'!=_0xe70000||'insertion'!=_0x3563d6&&'deletion'!=_0x3563d6||(_0x5a04ea['unshift']({'type':_0x3563d6,'name':_0x2f7526,'userId':_0x3d6900}),_0x33c475[_0x2d45ca]['markersStart']['splice'](_0xe3cbc1,0x1),_0xe3cbc1--);}_0x391641(_0x33c475[_0x2d45ca]);for(let _0x4d9ee5=0x0;_0x4d9ee5<_0x33c475[_0x2d45ca]['markersEnd']['length'];_0x4d9ee5++){const _0x156f9d=_0x33c475[_0x2d45ca]['markersEnd'][_0x4d9ee5];if(!_0x1c69c1['has'](_0x156f9d))continue;const {group:_0x567251,type:_0x56bf18}=_0x4261a2(_0x156f9d);if('revision-suggestion'!=_0x567251||'insertion'!=_0x56bf18&&'deletion'!=_0x56bf18)continue;_0x33c475[_0x2d45ca]['markersEnd']['splice'](_0x4d9ee5,0x1),_0x4d9ee5--;const _0x2854b7=_0x5a04ea['findIndex'](_0x1a28ee=>_0x1a28ee['name']==_0x156f9d);_0x2854b7>-0x1&&_0x5a04ea['splice'](_0x2854b7,0x1);}}function _0x4261a2(_0x82d045){const _0x4a03da=_0x82d045['split'](':');return{'group':_0x4a03da[0x0],'type':_0x4a03da[0x1],'subType':_0x4a03da['length']>=0x5?_0x4a03da[0x2]:null,'id':_0x4a03da['length']<0x5?_0x4a03da[0x2]:_0x4a03da[0x3],'authorId':_0x4a03da['length']<0x5?_0x4a03da[0x3]:_0x4a03da[0x4],'markerCount':0x6==_0x4a03da['length']?_0x4a03da[0x5]:null};}function _0x391641(_0x794267){for(let _0x47edd8=0x0;_0x47edd8<_0x5a04ea['length'];_0x47edd8++){if(_0x794267['isAdded']&&'insertion'==_0x5a04ea[_0x47edd8]['type'])return _0x794267['isAddSuggestion']=_0x5a04ea[_0x47edd8],void delete _0x794267['isAdded'];if(!_0x794267['isAdded']&&!_0x794267['isRemoved']&&'deletion'==_0x5a04ea[_0x47edd8]['type'])return void(_0x794267['isRemoveSuggestion']=_0x5a04ea[_0x47edd8]);}}}['_setDistance'](_0x280abd,_0x1940e9){let _0x1b5c85=0x0,_0x231953=!0x1;const _0x3d6ffb=new Map();for(const _0x4fa28d of _0x280abd)_0x4fa28d[_0x1940e9]?_0x231953&&(_0x1b5c85++,_0x231953=!0x1):(_0x1b5c85++,_0x231953=!0x0),_0x3d6ffb['set'](_0x4fa28d['id'],_0x1b5c85);for(let _0x48ee38=0x0;_0x48ee38<_0x280abd['length'];_0x48ee38++){if('isRemoved'==_0x1940e9&&_0x280abd[_0x48ee38]['isAdded']||'isAdded'==_0x1940e9&&_0x280abd[_0x48ee38]['isRemoved'])continue;if('text'==_0x280abd[_0x48ee38]['type']){_0x280abd[_0x48ee38]['distance']=0x0;continue;}const _0x24b09c=_0x3d6ffb['get'](_0x280abd[_0x48ee38]['pairId']),_0xb685ff=_0x3d6ffb['get'](_0x280abd[_0x48ee38]['id']);_0x280abd[_0x48ee38]['distance']=_0x24b09c-_0xb685ff;}}['_getRevisionsRange'](_0x5eedc5,_0x5e7501,_0x3cdd1d=!0x1){const _0x267a0a=[];let _0x4f4f62=this['repository']['getIndex'](_0x5eedc5),_0x5709cf=this['repository']['getIndex'](_0x5e7501);for(-0x1==_0x5709cf&&(_0x5709cf=this['repository']['_revisions']['length'],_0x3cdd1d=!0x1);_0x4f4f62<_0x5709cf;)_0x267a0a['push'](this['repository']['getRevision'](_0x4f4f62)),_0x4f4f62++;return _0x3cdd1d&&_0x267a0a['push'](this['repository']['getRevision'](_0x4f4f62)),_0x267a0a;}['_threeWayMerge'](_0x43c989,_0x2f5469,_0x34fe2f,_0x5db6c3){const _0x3e6f8d=this['editor']['model']['schema'];let _0x4a9950=_0x2f5469;for(;_0x43c989[_0x4a9950]&&_0x43c989[_0x4a9950]['isAdded'];)_0x4a9950++;let _0x3e205e=_0x5db6c3;for(;_0x34fe2f[_0x3e205e]&&_0x34fe2f[_0x3e205e]['isRemoved'];)_0x3e205e++;_0x3c932d(_0x43c989,_0x2f5469,_0x4a9950),_0x3c932d(_0x34fe2f,_0x5db6c3,_0x3e205e);const _0x1c96db=_0x34fe2f['slice'](_0x5db6c3,_0x3e205e)['concat'](_0x43c989['slice'](_0x2f5469,_0x4a9950));return _0x1c96db['sort']((_0x1091a6,_0x40d4bd)=>_0x1091a6['side']!=_0x40d4bd['side']?_0x1091a6['side']-_0x40d4bd['side']:_0x1091a6['level']!=_0x40d4bd['level']?_0x1091a6['level']-_0x40d4bd['level']:_0x1091a6['distance']!=_0x40d4bd['distance']?_0x40d4bd['distance']-_0x1091a6['distance']:!!_0x1091a6['isAdded']!=!!_0x40d4bd['isAdded']?-0x1==_0x1091a6['side']||0x0==_0x1091a6['side']?_0x1091a6['isAdded']?-0x1:0x1:_0x1091a6['isAdded']?0x1:-0x1:_0x1091a6['index']-_0x40d4bd['index']),{'commonTape':_0x1c96db,'iEnd':_0x4a9950,'jEnd':_0x3e205e};function _0x3c932d(_0x3fa17a,_0x37fb2f,_0x4a75c9){let _0x3ceeff=-0x1,_0x4e9436=Number['POSITIVE_INFINITY'],_0xe99eae=!0x0;for(let _0x38240c=_0x37fb2f;_0x38240c<_0x4a75c9;_0x38240c++)if(_0x3e6f8d['isInline'](_0x3fa17a[_0x38240c]['item'])||(_0xe99eae=!0x1),_0x3fa17a[_0x38240c]['item']['startIndex']<_0x37fb2f&&(_0x3ceeff=_0x38240c),_0x3fa17a[_0x38240c]['item']['endIndex']>=_0x4a75c9){_0x4e9436=_0x38240c;break;}_0xe99eae&&(_0x3ceeff=_0x4a75c9-0x1);for(let _0x3de4c1=_0x37fb2f;_0x3de4c1<_0x4a75c9;_0x3de4c1++)_0x3fa17a[_0x3de4c1]['side']=_0x3de4c1<=_0x3ceeff?-0x1:_0x3de4c1<_0x4e9436?0x0:0x1,_0x3fa17a[_0x3de4c1]['index']=_0x3de4c1;let _0x22b464=0x0;for(let _0x5f80fc=_0x37fb2f;_0x5f80fc<=_0x3ceeff;_0x5f80fc++)0x0==_0x3fa17a[_0x5f80fc]['distance']?_0x3fa17a[_0x5f80fc]['level']=_0x22b464:(_0x22b464++,_0x3fa17a[_0x5f80fc]['level']=_0x22b464,_0x22b464++);for(let _0x4bddf1=_0x37fb2f;_0x4bddf1<_0x4a75c9;_0x4bddf1++)0x0==_0x3fa17a[_0x4bddf1]['side']&&(_0x3fa17a[_0x4bddf1]['level']=_0x22b464);_0x22b464=0x0;for(let _0x3e19b5=_0x4a75c9-0x1;_0x3e19b5>=_0x4e9436;_0x3e19b5--)0x0==_0x3fa17a[_0x3e19b5]['distance']?_0x3fa17a[_0x3e19b5]['level']=_0x22b464:(_0x22b464--,_0x3fa17a[_0x3e19b5]['level']=_0x22b464,_0x22b464--);}}['_fixObsoleteTags'](_0xb6b813){const _0xa21336=new Map(),_0x2931fc=this['editor']['model']['schema'];for(let _0x5828b4=0x1;_0x5828b4<_0xb6b813['length'];_0x5828b4++){let _0x5cee27,_0x406184,_0x248bd8;const _0x445368=_0xb6b813[_0x5828b4],_0x51af08=_0xb6b813[_0x5828b4-0x1];if('text'==_0x445368['type'])continue;if(_0x445368['type']!=_0x51af08['type'])continue;if(!_0x2931fc['isBlock'](_0x51af08['item'])||_0x2931fc['isLimit'](_0x51af08['item']))continue;if(!_0x2931fc['isBlock'](_0x445368['item'])||_0x2931fc['isLimit'](_0x445368['item']))continue;if((_0xb6b813[_0x5828b4]['isAdded']||_0xb6b813[_0x5828b4]['isAddSuggestion'])&&_0xb6b813[_0x5828b4-0x1]['isRemoved'])_0x5cee27=_0xb6b813[_0x5828b4],_0x406184=_0xb6b813[_0x5828b4-0x1],_0x248bd8=_0x5828b4-0x1;else{if(!_0xb6b813[_0x5828b4]['isRemoved']||!_0xb6b813[_0x5828b4-0x1]['isAdded']&&!_0xb6b813[_0x5828b4-0x1]['isAddSuggestion'])continue;_0x5cee27=_0xb6b813[_0x5828b4-0x1],_0x406184=_0xb6b813[_0x5828b4],_0x248bd8=_0x5828b4;}const _0x50b7a0=_0x5cee27['level']==_0x406184['level'],_0x141efb=Math['abs'](_0x5cee27['level'])<Math['abs'](_0x406184['level'])&&0x0==_0x406184['distance'];(_0x50b7a0||_0x141efb)&&(_0xa21336['set'](_0x406184['id'],_0x5cee27['id']),_0xb6b813['splice'](_0x248bd8,0x1),_0x5828b4--,_0x5cee27['isAdded']=!0x1);}for(let _0x88a74f=0x0;_0x88a74f<_0xb6b813['length'];_0x88a74f++)_0xa21336['has'](_0xb6b813[_0x88a74f]['pairId'])&&(_0xb6b813[_0x88a74f]['pairId']=_0xa21336['get'](_0xb6b813[_0x88a74f]['pairId']));}['_removeMissingPairs'](_0x16438e){const _0x21a5b2=new Set(_0x16438e['map'](_0x44cac1=>_0x44cac1['id']));for(let _0x750b73=0x0;_0x750b73<_0x16438e['length'];_0x750b73++)_0x21a5b2['has'](_0x16438e[_0x750b73]['pairId'])||0x0==_0x16438e[_0x750b73]['distance']||(_0x16438e[_0x750b73]['isIncorrect']=!0x0);return _0x16438e['filter'](_0x1af7d0=>!_0x1af7d0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4c185d){const _0x35efec=new Set();for(let _0x4a46a8=0x0;_0x4a46a8<_0x4c185d['length'];_0x4a46a8++){if(_0x35efec['has'](_0x4c185d[_0x4a46a8]['id'])&&_0x4c185d[_0x4a46a8]['isRemoved']&&(_0x4c185d[_0x4a46a8]['isIncorrect']=!0x0),_0x4c185d[_0x4a46a8]['isIncorrect'])continue;if(0x0==_0x4c185d[_0x4a46a8]['distance'])continue;if('elementStart'!=_0x4c185d[_0x4a46a8]['type'])continue;if(null==_0x4c185d[_0x4a46a8]['pairId'])continue;let _0x203362=_0x4a46a8+0x1,_0x253163=0x0;for(;_0x4c185d[_0x203362]['id']!=_0x4c185d[_0x4a46a8]['pairId'];)'elementStart'==_0x4c185d[_0x203362]['type']?_0x253163++:'elementEnd'==_0x4c185d[_0x203362]['type']&&_0x253163--,_0x203362++;if(0x0!=_0x253163){if(_0x4c185d[_0x4a46a8]['isRemoved'])_0x4c185d[_0x4a46a8]['isIncorrect']=!0x0;else{for(;_0x203362!=_0x4a46a8;)_0x4c185d[_0x203362]['isRemoved']&&0x0!=_0x4c185d[_0x203362]['distance']&&(_0x4c185d[_0x203362]['isIncorrect']=!0x0,_0x35efec['add'](_0x4c185d[_0x203362]['pairId'])),_0x203362--;}}}return _0x4c185d['filter'](_0x5689b2=>!_0x5689b2['isIncorrect']);}['_removeUnsupportedChanges'](_0x271924){const _0x89bca=this['editor']['model']['schema'];for(let _0x5963f3=0x0;_0x5963f3<_0x271924['length'];_0x5963f3++){if(!(_0x271924[_0x5963f3]['isAdded']||_0x271924[_0x5963f3]['isAddSuggestion']||_0x271924[_0x5963f3]['isRemoved']||_0x271924[_0x5963f3]['isRemoveSuggestion']))continue;if(0x0==_0x271924[_0x5963f3]['distance'])continue;const _0xc3a62b=_0x271924[_0x5963f3]['item'];_0x89bca['isBlock'](_0xc3a62b)||_0x89bca['isLimit'](_0xc3a62b)||(_0x271924[_0x5963f3]['isAdded']&&delete _0x271924[_0x5963f3]['isAdded'],_0x271924[_0x5963f3]['isAddSuggestion']&&delete _0x271924[_0x5963f3]['isAddSuggestion'],_0x271924[_0x5963f3]['isRemoveSuggestion']&&delete _0x271924[_0x5963f3]['isRemoveSuggestion'],_0x271924[_0x5963f3]['isRemoved']&&(_0x271924[_0x5963f3]['isIncorrect']=!0x0));}return _0x271924['filter'](_0x471964=>!_0x471964['isIncorrect']);}['_makeModelFromTape'](_0x28679a,_0x52d7c8,_0x4f9410){const _0x59a163=new vt(),_0x478a6e=[],_0x46e881=new Map(),_0x330299=this['editor']['model'],_0x299456=_0x330299['schema'],_0x50cae1=[_0x59a163],_0x269d1c={},_0x3ca894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa6d5ca=null;const _0x2d40e2=[0x0];for(let _0xb425b3=0x0;_0xb425b3<_0x28679a['length'];_0xb425b3++)if('elementStart'===_0x28679a[_0xb425b3]['type']){_0x28679a[_0xb425b3]['previousPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2);const _0x5b2984=new ut(_0x28679a[_0xb425b3]['item']['name'],_0x28679a[_0xb425b3]['item']['getAttributes']());_0x50cae1[0x0]['_appendChild'](_0x5b2984),_0x2d40e2['push'](0x0),_0x50cae1['unshift'](_0x5b2984),_0x28679a[_0xb425b3]['nextPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2);}else'elementEnd'===_0x28679a[_0xb425b3]['type']?(_0x50cae1['shift'](),_0x28679a[_0xb425b3]['previousPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2),_0x2d40e2['pop'](),_0x2d40e2[_0x2d40e2['length']-0x1]++,_0x28679a[_0xb425b3]['nextPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2)):(_0x28679a[_0xb425b3]['previousPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2),_0xa6d5ca?_0xa6d5ca['_data']+=_0x28679a[_0xb425b3]['item']['data']:_0xa6d5ca=new gt(_0x28679a[_0xb425b3]['item']['data'],_0x28679a[_0xb425b3]['item']['getAttributes']()),_0x28679a[_0xb425b3+0x1]&&'text'===_0x28679a[_0xb425b3+0x1]['type']&&_0x187e69(_0xa6d5ca,_0x28679a[_0xb425b3+0x1]['item'])||(_0x50cae1[0x0]['_appendChild'](_0xa6d5ca),_0xa6d5ca=null),_0x2d40e2[_0x2d40e2['length']-0x1]+=_0x28679a[_0xb425b3]['item']['offsetSize'],_0x28679a[_0xb425b3]['nextPosition']=_0x330299['createPositionFromPath'](_0x59a163,_0x2d40e2));for(let _0x544fbf=0x0;_0x544fbf<_0x28679a['length'];_0x544fbf++){const _0x4bff48=_0x28679a[_0x544fbf]['previousPosition'],_0x4bf70d=_0x28679a[_0x544fbf]['nextPosition'];for(const _0x34a0bd of _0x28679a[_0x544fbf]['markersStart'])_0x46e881['set'](_0x34a0bd,{'start':_0x4bff48,'end':null});_0x5321cf('isRemoveSuggestion',_0x544fbf,_0x4bff48,_0x4bf70d),_0x5321cf('isAddSuggestion',_0x544fbf,_0x4bff48,_0x4bf70d),_0x5321cf('isRemoved',_0x544fbf,_0x4bff48,_0x4bf70d),_0x5321cf('isAdded',_0x544fbf,_0x4bff48,_0x4bf70d);for(const _0x34de90 of _0x28679a[_0x544fbf]['markersEnd']){const _0x1fe3c9=_0x46e881['get'](_0x34de90);_0x1fe3c9?_0x1fe3c9['end']=_0x4bf70d:_0x46e881['set'](_0x34de90,{'start':_0x4bf70d,'end':_0x4bf70d});}}for(const [_0x1a010a,_0x372418]of _0x46e881){const _0x1ef6c6=this['editor']['model']['createRange'](_0x372418['start'],_0x372418['end']);_0x59a163['markers']['set'](_0x1a010a,_0x1ef6c6);}return _0x478a6e['sort']((_0x4687c7,_0x30597d)=>{const _0x13440b=_0x59a163['markers']['get']('revision:'+_0x4687c7['id']),_0x417277=_0x59a163['markers']['get']('revision:'+_0x30597d['id']);return _0x13440b['start']['isBefore'](_0x417277['start'])?-0x1:_0x13440b['start']['isAfter'](_0x417277['start'])?0x1:_0x13440b['end']['isBefore'](_0x417277['end'])?-0x1:_0x13440b['end']['isAfter'](_0x417277['end'])?0x1:'add'===_0x4687c7['type']?-0x1:0x1;}),{'root':_0x59a163,'changes':_0x478a6e};function _0x5321cf(_0x4e974d,_0x4099a4,_0x478057,_0x245956){const _0x7d6494=!!_0x28679a[_0x4099a4][_0x4e974d],_0x3228a4=_0x7d6494?_0x28679a[_0x4099a4][_0x4e974d]['userId']:null,_0x3c2b1a=_0x4099a4===_0x28679a['length']-0x1,_0x16f29d=_0x3ca894[_0x4e974d][0x0],_0x16af49=_0x299456['isObject'](_0x28679a[_0x4099a4]['item']);!_0x269d1c[_0x4e974d]&&_0x7d6494?_0x269d1c[_0x4e974d]={'start':_0x478057,'tapeItem':_0x28679a[_0x4099a4],'userId':_0x3228a4,'type':_0x4e974d}:_0x269d1c[_0x4e974d]&&!_0x7d6494?(_0x269d1c[_0x4e974d]['end']=_0x478057,_0x1658f2(_0x269d1c[_0x4e974d]),_0x269d1c[_0x4e974d]=null):_0x269d1c[_0x4e974d]&&_0x7d6494&&_0x269d1c[_0x4e974d]['userId']!==_0x3228a4&&(_0x269d1c[_0x4e974d]['end']=_0x478057,_0x16f29d&&_0x16f29d['userId']===_0x269d1c[_0x4e974d]['userId']||_0x1658f2(_0x269d1c[_0x4e974d]),_0x269d1c[_0x4e974d]={'start':_0x478057,'tapeItem':_0x28679a[_0x4099a4],'userId':_0x3228a4,'type':_0x4e974d}),_0x269d1c[_0x4e974d]&&_0x16af49&&('elementStart'!==_0x28679a[_0x4099a4]['type']||_0x16f29d&&_0x16f29d['userId']===_0x3228a4||_0x3ca894[_0x4e974d]['unshift']({'userId':_0x3228a4,'object':_0x28679a[_0x4099a4]['item'],'change':_0x269d1c[_0x4e974d]}),'elementEnd'===_0x28679a[_0x4099a4]['type']&&_0x16f29d&&_0x16f29d['object']===_0x28679a[_0x4099a4]['item']&&(_0x3ca894[_0x4e974d]['shift'](),_0x269d1c[_0x4e974d]=_0x16f29d['change'])),_0x269d1c[_0x4e974d]&&_0x3c2b1a&&(_0x269d1c[_0x4e974d]['end']=_0x245956,_0x1658f2(_0x269d1c[_0x4e974d]),_0x269d1c[_0x4e974d]=null);}function _0x1658f2({start:_0x583aa3,end:_0x59f54a,tapeItem:_0x56aed4,userId:_0x3f42e2,type:_0x24ad0e}){const _0x4ccb81=_0x56aed4['item'],_0x1780f0=_0x330299['schema']['isBlock'](_0x4ccb81)&&!_0x330299['schema']['isLimit'](_0x4ccb81),_0x3cdaba=_0x583aa3['nodeAfter']==_0x59f54a['parent']&&_0x59f54a['isAtStart'];if(_0x1780f0&&_0x3cdaba)return;const _0x32a063=_0x330299['createRange'](_0x583aa3,_0x59f54a),_0x51c126=_0x52d7c8['get'](_0x3f42e2),_0x36c763=new r({'author':_0x51c126,'type':'isAdded'==_0x24ad0e||'isAddSuggestion'==_0x24ad0e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x24ad0e||'isRemoveSuggestion'==_0x24ad0e},'createdAt':new Date(),'rootName':_0x4f9410});_0x478a6e['push'](_0x36c763),_0x59a163['markers']['set']('revision:'+_0x36c763['id'],_0x32a063);}function _0x187e69(_0x324bf0,_0xa69e71){const _0x33358b=_0x324bf0['getAttributes'](),_0x3295ef=_0xa69e71['getAttributes']();for(const _0xc8bd68 of _0x33358b){if(_0xc8bd68[0x1]!==_0xa69e71['getAttribute'](_0xc8bd68[0x0]))return!0x1;_0x3295ef['next']();}return _0x3295ef['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x27c804=>{const _0x118dba=_0x27c804['markerName']['split'](':')[0x1],_0x5e3f94=this['_getChangeFromId'](_0x118dba);if(!_0x5e3f94)return null;const _0xcbb041='add'==_0x5e3f94['type']?'insertion':'deletion',_0x45ee23=['ck-suggestion-marker','ck-suggestion-marker-'+_0xcbb041];return _0x5e3f94['data']['isSuggestion']&&_0x45ee23['push']('ck-suggestion-marker-'+_0xcbb041+'-new'),this['activeChange']==_0x5e3f94&&_0x45ee23['push']('ck-suggestion-marker--active'),{'classes':_0x45ee23,'attributes':{'data-change-id':_0x118dba}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3a1425=>{_0x3a1425['on']('element:pre',(_0x310860,_0x7b0d77,_0x56d39a)=>{const _0x38fc0b=_0x7b0d77['viewItem']['getChild'](0x0);if(!_0x38fc0b||!_0x38fc0b['is']('element','code'))return;if(!_0x56d39a['consumable']['consume'](_0x38fc0b,{'attributes':['vid_start','vid_end']}))return;const _0x48acd6=_0x7b0d77['modelRange']['start']['nodeAfter'];_0x56d39a['writer']['setAttribute']('vid_start',_0x38fc0b['getAttribute']('vid_start'),_0x48acd6),_0x56d39a['writer']['setAttribute']('vid_end',_0x38fc0b['getAttribute']('vid_end'),_0x48acd6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1e1e1c=>{_0x1e1e1c['on']('element',(_0x196a6e,_0x54f202,_0x7d446e)=>{if(!_0x7d446e['consumable']['consume'](_0x54f202['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x54f202['modelRange']['isCollapsed'])return;const _0x4e27b4=_0x54f202['modelRange']['start']['nodeAfter'];_0x4e27b4['hasAttribute']('vid_start')||_0x4e27b4['hasAttribute']('vid')||(_0x7d446e['writer']['setAttribute']('vid_start',_0x54f202['viewItem']['getAttribute']('vid_start'),_0x4e27b4),_0x7d446e['writer']['setAttribute']('vid_end',_0x54f202['viewItem']['getAttribute']('vid_end'),_0x4e27b4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x508f14=>_0x508f14['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5a993b,[,_0x37317d])=>{['vid_start','vid_end','vid']['includes'](_0x37317d)&&(_0x5a993b['return']=!0x0,_0x5a993b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x13fcf9=>{_0x13fcf9['on']('attribute:vid',(_0x2fe1f2,_0x499b60,_0x223e8e)=>{if('\x20'!=_0x499b60['item']['data']||_0x499b60['item']['parent']['maxOffset']>0x1)return;if(!_0x223e8e['consumable']['consume'](_0x499b60['item'],_0x2fe1f2['name']))return;const _0x191d95=_0x223e8e['writer'],_0x292b04=_0x223e8e['mapper']['toViewRange'](_0x499b60['range']);_0x191d95['wrap'](_0x292b04,_0x191d95['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x7b710d){const _0x2a373e=_0x7b710d['plugins']['get']('RevisionViewer');return(_0x31f449,_0xd1935a,_0x1e843f)=>{const _0x3bb161=_0xd1935a['markerName']['split'](':')[0x1],_0x2155eb=_0x2a373e['_getChangeFromId'](_0x3bb161);if(!_0x2155eb)return null;const _0x5b577e='add'==_0x2155eb['type']?'split':'merge';if(!_0x1e843f['consumable']['test'](_0xd1935a['markerRange'],_0x31f449['name']))return;const _0x110d43=_0xd1935a['markerRange']['getWalker'](),_0x256daf=_0xd1935a['markerRange']['start'],_0x33d9bd=_0x7b710d['model']['schema'];let _0x5a53df=null,_0x47a5d5=null,_0x44dd88=!0x1,_0x30a9a0=!0x1;for(const _0x59e69b of _0x110d43){const _0x3ad103=_0x59e69b['item'];_0x44dd88=_0x44dd88||_0x33d9bd['isContent'](_0x3ad103);const _0x5f09af=_0x1e843f['mapper']['toViewElement'](_0x3ad103);if(_0x5f09af&&_0x5f09af['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x59e69b['type']&&(_0x33d9bd['isBlock'](_0x3ad103)&&!_0x33d9bd['isLimit'](_0x3ad103)&&(_0x3ad103['nextSibling']||_0x256daf['isAtEnd']?_0x5a53df&&_0x5a53df['parent']==_0x3ad103||(_0x5a53df=_0x3ad103,_0x258231(_0x59e69b['previousPosition']),_0x30a9a0=!0x0):_0x47a5d5=_0x47a5d5||_0x59e69b['previousPosition']));}function _0x258231(_0x238088){const _0x205d3d=_0x1e843f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b577e}),_0x181e59=_0x1e843f['mapper']['toViewPosition'](_0x238088);_0x2155eb['data']['isSuggestion']&&_0x1e843f['writer']['addClass']('ck-suggestion-marker-'+_0x5b577e+'-new',_0x205d3d),_0x2a373e['activeChange']==_0x2155eb&&_0x1e843f['writer']['addClass']('ck-suggestion-marker--active',_0x205d3d),_0x1e843f['writer']['insert'](_0x181e59,_0x205d3d),_0x1e843f['mapper']['bindElementToMarker'](_0x205d3d,_0xd1935a['markerName']);}_0x44dd88||_0x30a9a0||!_0x47a5d5||_0x258231(_0x47a5d5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x203566,_0x1dbc48,_0x36a638)=>{const _0x2faaf8=_0x36a638['mapper']['markerNameToElements'](_0x1dbc48['markerName']);if(_0x2faaf8){for(const _0x3aa40c of _0x2faaf8)(_0x3aa40c['hasClass']('ck-suggestion-marker-split')||_0x3aa40c['hasClass']('ck-suggestion-marker-merge'))&&(_0x36a638['mapper']['unbindElementFromMarkerName'](_0x3aa40c,_0x1dbc48['markerName']),_0x36a638['writer']['remove'](_0x3aa40c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x83ff51,_0x553b04,_0x12a3af)=>{const _0x3f3994=_0x553b04['markerName']['split'](':')[0x1],_0x48d242=this['_getChangeFromId'](_0x3f3994);if(!_0x48d242)return null;const _0x5b5b3a='add'==_0x48d242['type']?'split':'merge';if(_0x12a3af['consumable']['test'](_0x553b04['markerRange'],_0x83ff51['name']))for(const _0x5add88 of _0x553b04['markerRange']['getItems']()){if(!_0x5add88['is']('element','softBreak'))continue;const _0x5953dc=_0x12a3af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b5b3a}),_0x2c9fe4=_0x12a3af['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5add88));_0x48d242['data']['isSuggestion']&&_0x12a3af['writer']['addClass']('ck-suggestion-marker-'+_0x5b5b3a+'-new',_0x5953dc),this['activeChange']==_0x48d242&&_0x12a3af['writer']['addClass']('ck-suggestion-marker--active',_0x5953dc),_0x12a3af['writer']['insert'](_0x2c9fe4,_0x5953dc),_0x12a3af['mapper']['bindElementToMarker'](_0x5953dc,_0x553b04['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x51bfb6=>{for(const _0x5ba4e5 of this['editor']['model']['document']['getRootNames']()){const _0xbbf501=this['editor']['model']['document']['getRoot'](_0x5ba4e5),_0x27e5dd=this['editor']['editing']['view']['document']['getRoot'](_0x5ba4e5);if(_0x27e5dd){const _0x1ea0ce=_0xbbf501['getAttribute']('revisionHistoryAttachChange');if(_0x51bfb6['removeAttribute']('data-change-id',_0x27e5dd),_0x51bfb6['removeClass']('ck-revision-history-root-add',_0x27e5dd),_0x51bfb6['removeClass']('ck-revision-history-root-remove',_0x27e5dd),_0x51bfb6['removeClass']('ck-revision-history-root--active',_0x27e5dd),_0x1ea0ce){const _0x59d2d6=this['_getChangeFromId'](_0x1ea0ce);if(!_0x59d2d6)return null;_0x51bfb6['setAttribute']('data-change-id',_0x1ea0ce,_0x27e5dd),_0x51bfb6['addClass']('ck-revision-history-root-'+_0x59d2d6['type'],_0x27e5dd),this['activeChange']==_0x59d2d6&&_0x51bfb6['addClass']('ck-revision-history-root--active',_0x27e5dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3223a4=>'revision-comment:'+_0x3223a4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x50dd27=>'revision-suggestion:'+_0x50dd27,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f169a=>({'name':'suggestion:'+_0x2f169a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x183a89=>{const _0x4a9dc6=_0x183a89['markerName']['split'](':')[0x1];return'insertion'!=_0x4a9dc6&&'deletion'!=_0x4a9dc6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4a9dc6]};}}),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',(_0x311a93,_0x422257,_0x17868a)=>{const _0xe54013=_0x17868a['mapper']['markerNameToElements'](_0x422257['markerName']);if(_0xe54013){for(const _0x15464a of _0xe54013)_0x15464a['is']('uiElement')&&(_0x17868a['mapper']['unbindElementFromMarkerName'](_0x15464a,_0x422257['markerName']),_0x17868a['writer']['remove'](_0x15464a));}},{'priority':'high'});}['_getChangeFromId'](_0x3b1849){return this['_changeIdToChange']['get'](_0x3b1849);}['_getViewForChange'](_0x2fdd91){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2fdd91),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x37bc03,_0x3dbf9e,_0x16537b,_0x32184e)=>{_0x32184e&&this['_balloon']['remove'](_0x32184e),_0x16537b&&(this['_balloon']['add']({'view':_0x16537b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2adf88=this['editor']['editing'],_0x333662=this['_getChangeFromId'](_0x16537b['changeId']);let _0x13b497;if(_0x333662['data']['isOnRoot']){const _0x4fcb7f=_0x2adf88['view']['getDomRoot'](_0x333662['rootName']);_0x13b497=Array['from'](_0x4fcb7f['getClientRects']());}else{const _0x30f481=this['editor']['model']['markers']['get']('revision:'+_0x16537b['changeId']);_0x13b497=Array['from'](_0x2adf88['mapper']['markerNameToElements'](_0x30f481['name']))['map'](_0x4541ac=>_0x2adf88['view']['domConverter']['mapViewToDom'](_0x4541ac))['map'](_0x125fe5=>Array['from'](_0x125fe5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x13b497[0x0];return _0x13b497['find'](_0x7b992c=>_0x7b992c['top']-0x3<=this['_activeViewTarget']['y']&&_0x7b992c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x7b992c['left']-0x3<=this['_activeViewTarget']['x']&&_0x7b992c['right']+0x3>=this['_activeViewTarget']['x'])||_0x13b497[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x11c0d4,_0x33654b,_0x54f383,_0x46e173)=>{this['activeView']=_0x54f383?this['_getViewForChange'](_0x54f383):null,this['editor']['model']['change'](()=>{const _0x4a58ac=this['editor']['editing'];_0x46e173&&(_0x46e173['data']['isOnRoot']?_0x4a58ac['view']['change'](_0x305dea=>{_0x305dea['removeClass']('ck-revision-history-root--active',_0x4a58ac['view']['document']['getRoot'](_0x46e173['rootName']));}):_0x4a58ac['reconvertMarker']('revision:'+_0x46e173['id'])),_0x54f383&&(_0x54f383['data']['isOnRoot']?_0x4a58ac['view']['change'](_0x4fef8c=>{_0x4fef8c['addClass']('ck-revision-history-root--active',_0x4a58ac['view']['document']['getRoot'](_0x54f383['rootName']));}):_0x4a58ac['reconvertMarker']('revision:'+_0x54f383['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x393d26,_0x5d7fb8)=>{if(this['activeChange'])return;const _0x16f810=this['_findChangeIdFromDomTarget'](_0x5d7fb8['target']),_0x50495e=this['_changeIdToChange']['get'](_0x16f810);_0x50495e?(this['_activeViewTarget']={'x':_0x5d7fb8['domEvent']['x'],'y':_0x5d7fb8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x50495e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ac039,_0x558d39)=>{const _0x23c41b=this['_findChangeIdFromDomTarget'](_0x558d39['target']),_0x31e392=this['_changeIdToChange']['get'](_0x23c41b);_0x31e392?(this['_activeViewTarget']={'x':_0x558d39['domEvent']['x'],'y':_0x558d39['domEvent']['y']},_0x31e392===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x31e392):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x266770){do{const _0x40bcef=_0x266770['getAttribute']('data-change-id');if(_0x40bcef)return _0x40bcef;_0x266770=_0x266770['parent'];}while(_0x266770);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xffb09=>{for(const _0x47b0db of this['editor']['model']['markers'])_0xffb09['removeMarker'](_0x47b0db);});}}function X(_0x1e1e06,_0x5ac01b){return(_0xd93700,_0x4ce257,_0x232026)=>{if(!_0x232026['consumable']['test'](_0x4ce257['markerRange'],_0xd93700['name']))return;const _0x376b83=_0x4ce257['markerRange']['getWalker'](),_0xbe8eed=_0x4ce257['markerRange']['start'],_0xf74dbb=_0x1e1e06['model']['schema'];let _0x251e5e=null,_0x2d2aec=null,_0x5f1a5b=!0x1,_0x3d70cd=!0x1;for(const _0xf0640a of _0x376b83){const _0x542f0c=_0xf0640a['item'];_0x5f1a5b=_0x5f1a5b||_0xf74dbb['isContent'](_0x542f0c);const _0x1b202a=_0x232026['mapper']['toViewElement'](_0x542f0c);if(_0x1b202a&&_0x1b202a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf0640a['type']&&(_0xf74dbb['isBlock'](_0x542f0c)&&!_0xf74dbb['isLimit'](_0x542f0c)&&(_0x542f0c['nextSibling']||_0xbe8eed['isAtEnd']?_0x251e5e&&_0x251e5e['parent']==_0x542f0c||(_0x251e5e=_0x542f0c,_0x5df1cf(_0xf0640a['previousPosition']),_0x3d70cd=!0x0):_0x2d2aec=_0x2d2aec||_0xf0640a['previousPosition']));}function _0x5df1cf(_0x1e66d5){const _0x145696=_0x232026['mapper']['toViewPosition'](_0x1e66d5),_0x3e8866=_0x232026['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5ac01b});_0x232026['writer']['insert'](_0x145696,_0x3e8866),_0x232026['mapper']['bindElementToMarker'](_0x3e8866,_0x4ce257['markerName']);}_0x5f1a5b||_0x3d70cd||!_0x2d2aec||_0x5df1cf(_0x2d2aec);};}class mt extends _0x59b140{constructor(_0x43ad56){super(_0x43ad56);const _0x2168dd=_0x43ad56['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2168dd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2168dd,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4b9f1a=this['editor'],_0x155916=_0x4b9f1a['plugins']['get'](m),_0x1f2d85=_0x155916['isReady']?_0x155916['diff']['newRevisionId']:null;_0x4b9f1a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f2d85);}['refresh'](){const {isReady:_0x57b1f2,isEnabled:_0x383a8e,repository:_0x3db07b,diff:_0x4f75c0}=this['editor']['plugins']['get'](m),_0x2472b7=_0x4f75c0&&_0x3db07b['getLaterVisibleRevision'](_0x4f75c0['newRevisionId']);this['isEnabled']=_0x57b1f2&&_0x383a8e&&Boolean(_0x2472b7);}}class wt extends _0x59b140{['_step'];constructor(_0xd15682,{direction:_0x139087}){super(_0xd15682);const _0x16ceb0=_0xd15682['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x139087?0x1:-0x1,this['listenTo'](_0x16ceb0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x16ceb0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x16ceb0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x127d7a=this['editor'],_0x4b4b59=_0x127d7a['plugins']['get'](m),{isNavigationMode:_0x2d3f36,currentChangeNumber:_0x3fda7a}=_0x4b4b59;let _0x24d8eb;if(_0x4b4b59['activeChange']=_0x2d3f36?_0x4b4b59['diff']['changes']['get'](_0x3fda7a+this['_step']):_0x4b4b59['diff']['changes']['first'],_0x4b4b59['activeChange']['data']['isOnRoot'])_0x24d8eb=_0x127d7a['editing']['view']['getDomRoot'](_0x4b4b59['activeChange']['rootName']);else{const _0x3beae5=_0x127d7a['model']['markers']['get']('revision:'+_0x4b4b59['activeChange']['id']);_0x24d8eb=_0x4163f9(_0x127d7a['editing'],_0x3beae5);}_0x47d889({'target':_0x24d8eb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3afa61,currentChangeNumber:_0x35ff9b,numberOfChanges:_0x29d50f,isReady:_0x2ef8cf,isEnabled:_0x366b34}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x366b34&&_0x2ef8cf&&_0x29d50f)&&(!_0x3afa61||(0x1===this['_step']?_0x35ff9b<_0x29d50f-0x1:_0x35ff9b>0x0));}}class _i extends ts{constructor(_0x4c6392){super(_0x4c6392);const _0x36b418=this['bindTemplate'],_0x556be1=new te(_0x4c6392),_0x158657=new te(_0x4c6392);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',(_0x6ec2f9,_0x564759)=>_0x6ec2f9&&_0x564759>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1d4596,_0x252bd9,_0x5588cc,_0x5151b3)=>{if(!_0x1d4596)return g(_0x4c6392,'Loading...');if(!_0x5588cc)return g(_0x4c6392,'No\x20changes');const _0x486373=g(_0x4c6392,'NUMBER_OF_CHANGES',_0x5588cc);return _0x5151b3?g(_0x4c6392,'X_OF_Y_CHANGES',[_0x252bd9+0x1,_0x5588cc]):_0x486373;}),_0x556be1['set']({'label':g(_0x4c6392,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x572eae}),_0x158657['set']({'label':g(_0x4c6392,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x27e49a}),_0x556be1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x158657['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x556be1['on']('execute',()=>this['fire']('execute','backward')),_0x158657['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',_0x36b418['if']('_isStatusLabelVisible','ck-hidden',_0x5c2a3f=>!_0x5c2a3f)]},'children':[{'text':_0x36b418['to']('isNavigationMode',_0x127424=>_0x127424?g(_0x4c6392,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4c6392,'Total')+':\x20')}]},{'text':_0x36b418['to']('_statusText')}]},new _0x2a7398(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x556be1,_0x158657]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x2a63bd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2eca66=this['editor']['editing']['view'];_0x2eca66['change'](_0x253bc6=>{for(const _0x19c3a3 of _0x2eca66['document']['roots'])_0x253bc6['addClass'](le,_0x19c3a3);});}['hide'](){const _0x49adf1=this['editor']['editing']['view'];_0x49adf1['change'](_0x23d29e=>{for(const _0x22dfc6 of _0x49adf1['document']['roots'])_0x23d29e['removeClass'](le,_0x22dfc6);});}}class R extends _0x2a63bd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x3b9ce2=this['editor'],_0x4c4dd9=_0x3b9ce2['plugins']['get'](m),_0x59bb71=_0x3b9ce2['plugins']['get'](ge);_0x3b9ce2['ui']['componentFactory']['add']('exitToEditing',_0x40f0d3=>{const _0x54c739=new te(_0x40f0d3);return _0x54c739['set']({'label':g(_0x40f0d3,'Back\x20to\x20editing'),'icon':_0x10e1d9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x54c739,'execute',()=>{_0x3b9ce2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x54c739;}),_0x3b9ce2['ui']['componentFactory']['add']('restoreRevision',_0x2b70ca=>{const _0x50bd82=new te(_0x2b70ca);return _0x50bd82['set']({'label':g(_0x2b70ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50bd82['bind']('isEnabled')['to'](_0x3b9ce2['commands']['get']('restoreRevision')),this['listenTo'](_0x50bd82,'execute',()=>_0x3b9ce2['execute']('restoreRevision')),_0x50bd82;}),_0x3b9ce2['ui']['componentFactory']['add']('changesNavigation',_0x1d734f=>{const _0x1c67af=new _i(_0x1d734f),_0x391133=_0x3b9ce2['commands']['get']('showPreviousChange'),_0xe32da3=_0x3b9ce2['commands']['get']('showNextChange');return _0x1c67af['bind']('isBackwardNavigationEnabled')['to'](_0x391133,'isEnabled'),_0x1c67af['bind']('isForwardNavigationEnabled')['to'](_0xe32da3,'isEnabled'),_0x1c67af['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4c4dd9),this['listenTo'](_0x1c67af,'execute',(_0x4c9ac4,_0x3aef84)=>{_0x3b9ce2['execute']('forward'===_0x3aef84?'showNextChange':'showPreviousChange');}),_0x1c67af;}),_0x59bb71['show'](),_0x4c4dd9['on']('change:isReady',(_0x417831,_0x290ad5,_0x18f042)=>{_0x18f042?_0x59bb71['hide']():_0x59bb71['show']();});}}class at extends _0x370644{['_resizeObserver']=null;constructor(_0x2bf779,_0x6227a8){super(_0x2bf779,_0x6227a8);const _0x5c8f6f=this['bindTemplate'];this['set']({'label':g(_0x2bf779,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2bf779,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5c8f6f['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 _0x267059=this['fieldView']['element'];this['_tooltipString']=_0x267059['scrollWidth']>_0x267059['clientWidth']&&_0x267059['value']||'';}}class si extends ts{constructor(_0x31ef3f,_0x396f97,_0x9d42b7){super(_0x31ef3f);const _0x203add=new _0x5b36d2();_0x203add['set']({'content':_0x431fd6,'viewBox':'0\x200\x2011\x2010'});const _0x5ee178=['ck','ck-revision-history-sidebar__revision-author'];_0x9d42b7&&_0x5ee178['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf430b8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x31ef3f,_0x9d42b7?'Revision\x20creator':'Revision\x20author')},'children':[_0x203add,_0x396f97['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5ee178},'children':_0xf430b8});}}function oi(_0x1db76c,_0x12c107){const _0x52e033=_0x1db76c['bindTemplate'],_0xa20df7=_0x1db76c['locale'],_0x3f5143=_0x146e16(_0xa20df7);_0x3f5143['panelPosition']='sw';const _0x118331=function(_0x4dede3,_0x1bc164){const _0x24bc08=function(_0x3afd63,_0x443709){const _0x279d78=_0x3afd63['locale'],_0x5d0f44={'Compare\x20against\x20selected':g(_0x279d78,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x279d78,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x279d78,'Restore\x20this\x20revision')};return _0x443709['map'](_0x4ab76d=>{const _0x5dfaa2=_0x5d0f44[_0x4ab76d['name']];return _0x5dfaa2&&_0x5dfaa2!==_0x4ab76d['name']&&(_0x4ab76d['name']=_0x5dfaa2),_0x4ab76d;});}(_0x4dede3,_0x1bc164),_0x8dd6ed=new _0x90db85();for(const _0x168502 of _0x24bc08){const _0x380d83={'type':'button','model':new to({'label':_0x168502['name'],'class':_0x168502['class'],'withText':!0x0,'role':'menuitem','_action':_0x168502['action']})};_0x380d83['model']['bind']('isEnabled')['to'](_0x4dede3,'isActionsDropdownOpen',_0x48e67c=>'function'!=typeof _0x168502['isEnabled']||(!_0x48e67c||_0x168502['isEnabled'](_0x4dede3))),_0x8dd6ed['add'](_0x380d83);}return _0x8dd6ed;}(_0x1db76c,_0x12c107);return _0x1db76c['bind']('isActionsDropdownOpen')['to'](_0x3f5143,'isOpen'),_0x3f5143['buttonView']['set']({'label':g(_0xa20df7,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x22193b}),_0x3f5143['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x52e033['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x52e033['to'](_0x3bdde7=>_0x3bdde7['stopPropagation']())}}),_0x3f5143['on']('execute',_0x336d50=>{_0x1db76c['isReady']&&'function'==typeof _0x336d50['source']['_action']&&_0x336d50['source']['_action'](_0x1db76c);}),_0x2b4910(_0x3f5143,_0x118331,{'role':'menu'}),_0x3f5143['listenTo'](_0x1db76c,'change:isActionsDropdownOpen',(_0x4b9bbe,_0xe9322a,_0x371791)=>{if(_0x371791)for(const _0x2c9bac of _0x3f5143['listView']['items']){const _0x5b88e1=_0x2c9bac['children']['first'],_0xfe5a52=_0x12c107['find'](_0x48ac7b=>_0x48ac7b['action']===_0x5b88e1['_action'])['isVisible'];_0x2c9bac['isVisible']=void 0x0===_0xfe5a52||_0xfe5a52(_0x1db76c);}}),_0x3f5143;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x117ec8,_0x230a2b,_0x3c8cde,_0x5a88be){super(_0x117ec8);const _0x55ffd9=this['bindTemplate'],_0x31d539=function(_0x41331f,_0x4735c1){const _0x4cf1a2=Array['from'](_0x4735c1['authors'])['filter'](_0x40d397=>_0x40d397!=_0x4735c1['creator']);return _0x4735c1['creator']&&_0x4cf1a2['unshift'](_0x4735c1['creator']),_0x4cf1a2['map'](_0x1ea3be=>new si(_0x41331f,_0x1ea3be,_0x1ea3be==_0x4735c1['creator']));}(_0x117ec8,_0x230a2b);this['id']=_0x230a2b['id'],this['_revision']=_0x230a2b,this['_requireRevisionName']=_0x5a88be,this['bind']('name','createdAt')['to'](_0x230a2b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xaa416e=>{return _0x946be=_0x117ec8['uiLanguage'],(_0x4a5af0=_0xaa416e)['toLocaleDateString'](_0x946be,{'month':'long','day':'numeric'})+',\x20'+_0x4a5af0['toLocaleTimeString'](_0x946be,{'hour':'numeric','minute':'numeric'});var _0x946be,_0x4a5af0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x117ec8,_0x342059),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x10013b=>_0x10013b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x24c8cb,_0x1c951f)=>_0x24c8cb&&_0x1c951f),this['revisionActionsView']=_0x3c8cde&&_0x3c8cde['length']?oi(this,_0x3c8cde):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x55ffd9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x55ffd9['if']('isEnabled','ck-disabled',_0x188bc1=>!_0x188bc1),_0x55ffd9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x55ffd9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x55ffd9['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':_0x55ffd9['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':_0x31d539}]},this['revisionActionsView']],'on':{'click':_0x55ffd9['to'](_0x44425b=>{_0x44425b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xa8cc17=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xa8cc17,'change',()=>{this['_requireRevisionName']&&!_0xa8cc17['value']||this['fire']('setName',{'id':this['id'],'name':_0xa8cc17['value']}),_0xa8cc17['value']||(_0xa8cc17['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(_0x45d36c,_0x5ee36f){const _0xf81fc3=_0x55426a['fromJSDate'](_0x45d36c)['setLocale'](_0x5ee36f),_0x3c8130=_0x55426a['local'](),_0x4e2542=_0x3c8130['minus']({'days':0x1})['startOf']('day');let _0x394196,_0x523131;return _0xf81fc3['hasSame'](_0x3c8130,'day')?(_0x394196=_0xf81fc3['startOf']('day')['toJSDate'](),_0x523131=_0xf81fc3['toRelativeCalendar']()):_0xf81fc3['hasSame'](_0x4e2542,'day')?(_0x394196=_0x4e2542['toJSDate'](),_0x523131=_0xf81fc3['toRelativeCalendar']()):_0xf81fc3['hasSame'](_0x3c8130,'week')?(_0x394196=_0xf81fc3['startOf']('week')['toJSDate'](),_0x523131=_0xf81fc3['weekdayLong']||''):_0xf81fc3['hasSame'](_0x3c8130,'year')?(_0x394196=_0xf81fc3['startOf']('month')['toJSDate'](),_0x523131=_0xf81fc3['monthLong']||''):(_0x394196=_0xf81fc3['startOf']('year')['toJSDate'](),_0x523131=String(_0xf81fc3['year'])),{'startDate':_0x394196,'localizedPeriodName':_0x523131};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1aa45f,_0x3f03c0,_0x49092a,_0xc846bb){super(_0x1aa45f);const _0x31c43c=ai(_0x3f03c0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3f03c0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x49092a,this['_requireRevisionName']=_0xc846bb,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':_0x31c43c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x24473a){const _0x37f989=new hi(this['locale'],_0x24473a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x37f989);}['removeRevision'](_0x22eea0){const _0x588c7a=this['revisionViews']['find'](_0x1c23cb=>_0x1c23cb['id']===_0x22eea0['id']);this['revisionViews']['remove'](_0x588c7a);}}class as extends ts{constructor(_0x4d7a78){super(_0x4d7a78);const _0x5e9962=new _0x5b36d2();_0x5e9962['content']=_0x3e3e17,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e9962,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4d7a78,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x596e9a,_0x51885f,_0x5f0ddb,_0x437fce){super(_0x596e9a);const _0x582bad=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x51885f,this['_revisionActions']=_0x5f0ddb,this['_requireRevisionName']=_0x437fce,this['on']('select',(_0x32cfdf,_0x453f74)=>{this['fire']('revisionSelected',_0x453f74);}),this['on']('setName',(_0x50d10f,_0x5b05fc)=>{this['fire']('revisionSetName',_0x5b05fc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x596e9a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x582bad['if']('isEnabled','ck-disabled',_0x41b693=>!_0x41b693)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x410ff9 of this['_revisions'])this['_addRevision'](_0x410ff9);this['_revisions']['on']('add',(_0x597e7b,_0x4a115b)=>{this['_addRevision'](_0x4a115b);}),this['_revisions']['on']('remove',(_0x1d3566,_0x4b9ea9)=>{this['_removeRevision'](_0x4b9ea9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3b40f9=>_0x3b40f9['revisionViews']['map'](_0x59d635=>_0x59d635))['flat']();}['selectRevision'](_0xde8fea){for(const _0x47cea8 of this['revisionViews'])_0xde8fea&&_0xde8fea['id']===_0x47cea8['id']?_0x47cea8['select']():_0x47cea8['deselect']();}['highlightRevisions'](_0x192093){for(const _0x4751ef of this['revisionViews'])_0x192093['some'](({id:_0x49109b})=>_0x49109b===_0x4751ef['id'])?_0x4751ef['highlight']():_0x4751ef['unhighlight']();}['_addRevision'](_0x5ee396){const _0x3f0dad=ai(_0x5ee396['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2c9482=this['timePeriodViews']['get'](0x0);_0x2c9482&&_0x2c9482['startDate']['getTime']()===_0x3f0dad['getTime']()||(_0x2c9482=new di(this['locale'],_0x3f0dad,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2c9482)),_0x2c9482['addRevision'](_0x5ee396);}['_removeRevision'](_0x5871fa){const _0x37a468=ai(_0x5871fa['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x37a468)['removeRevision'](_0x5871fa);}['_getTimePeriodViewByStartDate'](_0x5dadef){return this['timePeriodViews']['find'](_0x38a7de=>_0x38a7de['startDate']['getTime']()===_0x5dadef['getTime']());}}class d extends _0x2a63bd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x479736){super(_0x479736),this['_revisionViewer']=_0x479736['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1b54d9=this['_revisionsRepository']['_revisions'],_0x3836f3=this['_createRevisionActions'](),_0x15b26b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1b54d9,_0x3836f3,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',(_0x42dca6,_0x1d7f71)=>{_0x1d7f71['revisionViews']['on']('add',(_0x2a9dae,_0x3cfeca)=>{_0x3cfeca['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)),_0x15b26b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x515757=this['_revisionsRepository']['getRevision'](0x0);if(_0x515757){const _0x580abc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x515757['id']);this['_revisionViewer']['compare'](_0x515757,_0x580abc);}}['_handleRevisionSelected'](_0x4ac0d4,_0x3ec9d4){const _0x40512e=this['_revisionsRepository']['getRevision'](_0x3ec9d4['id']),_0x3352e9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40512e['id']);this['_revisionViewer']['compare'](_0x40512e,_0x3352e9);}['_handleRevisionSetName'](_0xb1d7e,_0x37c72a){this['_revisionsRepository']['getRevision'](_0x37c72a['id'])['setName'](_0x37c72a['name']);}['_handleDiffChange'](_0x2ae325,_0x5836df,_0x105470){const _0x4beeb2=this['_revisionsRepository']['getRevisionsInDiff'](_0x105470);_0x4beeb2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4beeb2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4beeb2[0x0]));}['_createRevisionActions'](){const _0x201e46=this['editor'],_0xdacb0a=d['availableRevisionActions'],_0x7489f=_0x201e46['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x7489f['length'])return _0x7489f['map'](_0x3ae67b=>{const _0x4ee2d9='string'==typeof _0x3ae67b?Object['assign']({},_0xdacb0a[_0x3ae67b]):_0x3ae67b;return _0x4ee2d9['action']=_0x4ee2d9['action']['bind'](this,_0x201e46),_0x4ee2d9['isVisible']&&(_0x4ee2d9['isVisible']=_0x4ee2d9['isVisible']['bind'](this,_0x201e46)),_0x4ee2d9;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x493484},_0x377133)=>{const _0x4e69c4=_0x493484['get'](m),_0xb43efc=_0x4e69c4['repository'];let _0x4e8287=_0x4e69c4['diff']['newRevisionId'],_0x391b00=_0x377133['id'];_0xb43efc['getIndex'](_0x4e8287)>_0xb43efc['getIndex'](_0x391b00)&&([_0x4e8287,_0x391b00]=[_0x391b00,_0x4e8287]),_0x4e69c4['compare'](_0x4e8287,_0x391b00);},'isVisible':({plugins:_0x2f3f90},_0x24a388)=>{const _0x5256cb=_0x2f3f90['get'](m);return!(_0x5256cb['repository']['getRevisionsInDiff'](_0x5256cb['diff'])['length']>0x2)&&!_0x24a388['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x505c2f,{id:_0x18438f})=>{_0x505c2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18438f);},'isVisible':({plugins:_0x42f615},_0x5dd528)=>!!_0x42f615['get'](m)['repository']['getLaterVisibleRevision'](_0x5dd528['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1764e4},{id:_0x10fd3b,revisionNameView:_0x4c45ed})=>{const _0x544e4c=_0x1764e4['get'](m),_0x42e62a=_0x544e4c['repository']['getEarlierVisibleRevision'](_0x10fd3b);_0x544e4c['compare'](_0x10fd3b,_0x42e62a),_0x4c45ed['focus'](),_0x4c45ed['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4bb0fe,_0x1b2085){super(_0x4bb0fe),this['_view']=_0x1b2085,this['_toolbarConfig']=et(_0x4bb0fe['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2f99b3){const _0x3b2064=this['editor'],_0xf2f137=this['view'],_0x299517=_0x3b2064['editing']['view'],_0x5e88f4=_0xf2f137['editable'],_0x3039fc=_0x299517['document']['getRoot']();_0x5e88f4['name']=_0x3039fc['rootName'],_0xf2f137['render']();const _0x3b8d12=_0x5e88f4['element'];this['setEditableElement'](_0x5e88f4['name'],_0x3b8d12),_0xf2f137['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x299517['attachDomRoot'](_0x3b8d12),this['_elementReplacer']['replace'](_0x2f99b3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xb97f=this['view'],_0x1170cc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1170cc['detachDomRoot'](_0xb97f['editable']['name']),_0xb97f['destroy']();}['_initToolbar'](){const _0x5aaa82=this['view'];_0x5aaa82['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5aaa82['stickyPanel']['limiterElement']=_0x5aaa82['element'],_0x5aaa82['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xd6cdfe})=>_0xd6cdfe),_0x5aaa82['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5aaa82['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x19f8ee,_0x4150c7,_0x1dcb2e={}){super(_0x19f8ee),this['stickyPanel']=new ht(_0x19f8ee),this['toolbar']=new dt(_0x19f8ee,{'shouldGroupWhenFull':_0x1dcb2e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x19f8ee,_0x4150c7);}['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
- _0x138b7b(_0x1fc663){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3f3aed,_0xcb2bef){super(_0xcb2bef),this['sourceElement']=_0x3f3aed,this['model']['document']['createRoot']();const _0x5e0b11=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5e0b11);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x534df3,_0x29118f){const _0x362c93=new this(_0x534df3,_0x29118f);return await _0x362c93['initPlugins'](),await _0x362c93['ui']['init'](_0x534df3),await _0x362c93['data']['init'](_0x362c93['config']['get']('initialData')||''),_0x362c93['fire']('ready'),_0x362c93;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x59ac4e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30a01d){function _0x1d0165(_0x5d64a6){return _0x5d64a6['map'](_0x5da41c=>String['fromCharCode'](_0x5da41c))['join']('');}super(_0x30a01d),this['result']='end',_0x30a01d[_0x1d0165([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d0165([0x76,0x69,0x65,0x77])][_0x1d0165([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d0165([0x61,0x75,0x74,0x6f]),_0x30a01d[_0x1d0165([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1d0165([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d0165([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1d0165([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1d0165([0x6f,0x6b])});}}class k extends _0x59ac4e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x43404d){if(super(_0x43404d),!this['editor']['config']['get']('revisionHistory'))throw new _0x55c2a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bbc92=>this['_showRevisionViewer']({..._0x1bbc92,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2e4455=>this['_closeRevisionViewer'](_0x2e4455)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2519cc=>this['_restoreRevision'](_0x2519cc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41690d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41690d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4e2fb9){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4e2fb9);}['getRevision'](_0x18da4f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x18da4f);}['getRevisions'](_0x39e993){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x39e993||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x534dc8=this['editor'],_0x4ff1bb=_0x389b08(_0x534dc8,p),_0x52abd0=_0x534dc8['plugins']['get']('RevisionTracker'),_0x567c1d=_0x534dc8['plugins']['get']('Users')['users'];return _0x4ff1bb['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ff1bb['lazyRoots'],(_0x4ff1bb['plugins']['push'](_t,m,R,class extends _0x59ac4e{static get['requires'](){return[m,'Users'];}['init'](){const _0x3a44e3=this['editor']['plugins']['get']('Users');for(const _0x2f4e6a of _0x567c1d)_0x2f4e6a['isAnonymous']||_0x3a44e3['getUser'](_0x2f4e6a['id'])||_0x3a44e3['addUser'](_0x2f4e6a);const _0x280f82=_0x52abd0['repository']['getRevisions']();let _0x219f14=null;const _0x2d5c94=this['editor']['plugins']['get']('RevisionViewer');_0x2d5c94['adapter']=_0x52abd0['adapter'],_0x2d5c94['bind']('isEnabled')['to'](_0x52abd0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x534dc8,'isReadOnly',_0x2a0aa5=>!_0x2a0aa5);for(const _0x73d652 of _0x280f82){const _0x29cc67=null===_0x73d652['creator'];if(_0x29cc67&&_0x73d652['toVersion']===_0x73d652['fromVersion'])continue;const _0x8ef2a8=_0x73d652['toJSON']();_0x2d5c94['addRevisionData'](_0x8ef2a8,(_0x4ec2ff,_0x4bed94,_0x4686a1)=>{if(_0x29cc67){if(_0x219f14)_0x219f14['_update'](_0x4ec2ff,_0x4bed94);else{if(!_0x4bed94){const _0x30c42c=_0x4686a1['toJSON']();_0x30c42c['id']=_0x2c0587(),_0x52abd0['saveRevision'](_0x30c42c,_0x4686a1['toVersion'])['then'](_0x41c9fb=>{_0x219f14=_0x41c9fb;});}}}else _0x73d652['_update'](_0x4ec2ff,_0x4bed94);});}}},d),_0x4ff1bb);}['_enhanceShowRevisionViewerCallback'](){const _0xe867f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xabbd70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d1fa1=this['editor']['plugins']['get']('Autosave');await _0x4d1fa1['save']();}else await _0xabbd70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x59dc8f=this['editor']['plugins']['get']('Dialog');_0x59dc8f['isOpen']&&_0x59dc8f['hide']();}const _0xa2d22b=this['_getRevisionViewerEditorConfig']();return _0xe867f(_0xa2d22b)['then'](_0x259f14=>{return(this['_viewerEditor']=_0x259f14,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'),_0x259f14);})['catch'](_0x3b55c9=>(console['error'](_0x3b55c9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4b37f4=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'](),_0x4b37f4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ab1e3=this['editor']['plugins']['get']('Annotations');_0x1ab1e3['refreshVisibility'](),_0x1ab1e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x276926){const _0x3419b1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x333475=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2205bd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2205bd,_0x276926)['then'](_0x5cee6d=>(_0x333475['style']['display']='block',_0x3419b1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5cee6d));}['_closeRevisionViewer'](_0x128ea6){const _0x349ae9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x349ae9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x128ea6['destroy']();}async['_restoreRevision'](_0x449d69){const _0x1af4fa=this['editor'],_0xf13895=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x122b20=_0x1af4fa['plugins']['get']('RevisionTracker'),_0x34f9a3=_0x1af4fa['plugins']['get']('RevisionHistoryUtils'),_0x700a60=_0xf13895['repository']['getRevision'](_0x449d69);let _0x5970a2,_0x1513fd,_0x16fba0;try{await _0x34f9a3['loadRevisionData'](_0x700a60,this['adapter']),_0x5970a2=_0x34f9a3['getRevisionDocumentData'](_0x700a60),_0x1513fd=_0x34f9a3['getRevisionRootsAttributes'](_0x700a60);}catch(_0x1b19d2){return void console['error'](_0x1b19d2);}_0x1af4fa['model']['change'](_0x39810f=>{for(const _0x5f4213 of Array['from'](_0x1af4fa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x39810f['removeMarker'](_0x5f4213);}),_0xf13895['isReady']=!0x1,_0x1af4fa['model']['enqueueChange'](_0x43dcc3=>{_0x43dcc3['setSelection'](null),_0x43dcc3['removeSelectionAttribute'](_0x1af4fa['model']['document']['selection']['getAttributeKeys']());const _0x232daa=Object['keys'](_0x5970a2);for(const _0x998cc6 of _0x1af4fa['model']['document']['roots'])'$graveyard'!=_0x998cc6['rootName']&&_0x998cc6['isAttached']()&&!_0x232daa['includes'](_0x998cc6['rootName'])&&_0x43dcc3['detachRoot'](_0x998cc6);for(const _0x1c8be7 of _0x232daa){let _0x53e459=_0x1af4fa['model']['document']['getRoot'](_0x1c8be7);_0x53e459&&_0x53e459['isAttached']()||(_0x53e459=_0x43dcc3['addRoot'](_0x1c8be7));const _0x28e56c=_0x1513fd[_0x1c8be7],_0x41ea47=Object['keys'](_0x28e56c),_0x4acb3a=_0x5970a2[_0x1c8be7];for(const _0x330617 of _0x53e459['getAttributeKeys']())_0x41ea47['includes'](_0x330617)||_0x43dcc3['removeAttribute'](_0x330617,_0x53e459);for(const _0x508097 of _0x41ea47)_0x43dcc3['setAttribute'](_0x508097,_0x1513fd[_0x1c8be7][_0x508097],_0x53e459);_0x43dcc3['remove'](_0x43dcc3['createRangeIn'](_0x53e459)),_0x43dcc3['insert'](_0x1af4fa['data']['parse'](_0x4acb3a,_0x53e459),_0x53e459,0x0);}});const _0x1e47df=g(_0x1af4fa['locale'],'Restored');if(_0x700a60['name'])_0x16fba0=-0x1==_0x700a60['name']['indexOf'](_0x1e47df)?_0x1e47df+':\x20'+_0x700a60['name']:_0x700a60['name'];else _0x16fba0=_0x1e47df+':\x20'+(_0x700a60['createdAt']['toLocaleDateString'](_0x1af4fa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x700a60['createdAt']['toLocaleTimeString'](_0x1af4fa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x122b20['saveRevision']({'name':_0x16fba0}),_0xf13895['isReady']=!0x0,_0x1af4fa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x5997e6){super(_0x5997e6),this['_revisionViewer']=_0x5997e6['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4cb4b4=this['_revisionsRepository']['_revisions'],_0x14766d=this['_createRevisionActions'](),_0x4e5b0c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4cb4b4,_0x14766d,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',(_0x56266c,_0x3c5e8f)=>{_0x3c5e8f['revisionViews']['on']('add',(_0x5ebfdf,_0x4ef007)=>{_0x4ef007['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)),_0x4e5b0c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1fbfe3=this['_revisionsRepository']['getRevision'](0x0);if(_0x1fbfe3){const _0x4f1e74=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1fbfe3['id']);this['_revisionViewer']['compare'](_0x1fbfe3,_0x4f1e74);}}['_handleRevisionSelected'](_0x524a11,_0x5e2462){const _0x2ea8d2=this['_revisionsRepository']['getRevision'](_0x5e2462['id']),_0x21a980=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2ea8d2['id']);this['_revisionViewer']['compare'](_0x2ea8d2,_0x21a980);}['_handleRevisionSetName'](_0x1ddf2e,_0x51e409){this['_revisionsRepository']['getRevision'](_0x51e409['id'])['setName'](_0x51e409['name']);}['_handleDiffChange'](_0xea11ff,_0x167f14,_0xb30ebc){const _0x369637=this['_revisionsRepository']['getRevisionsInDiff'](_0xb30ebc);_0x369637['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x369637),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x369637[0x0]));}['_createRevisionActions'](){const _0x26d894=this['editor'],_0x4b2581=d['availableRevisionActions'],_0x502fa1=_0x26d894['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x502fa1['length'])return _0x502fa1['map'](_0x69ff2c=>{const _0x1870bb='string'==typeof _0x69ff2c?Object['assign']({},_0x4b2581[_0x69ff2c]):_0x69ff2c;return _0x1870bb['action']=_0x1870bb['action']['bind'](this,_0x26d894),_0x1870bb['isVisible']&&(_0x1870bb['isVisible']=_0x1870bb['isVisible']['bind'](this,_0x26d894)),_0x1870bb;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x30d40e},_0x58e702)=>{const _0x368eda=_0x30d40e['get'](m),_0x3f079f=_0x368eda['repository'];let _0x5ea206=_0x368eda['diff']['newRevisionId'],_0x2b25b7=_0x58e702['id'];_0x3f079f['getIndex'](_0x5ea206)>_0x3f079f['getIndex'](_0x2b25b7)&&([_0x5ea206,_0x2b25b7]=[_0x2b25b7,_0x5ea206]),_0x368eda['compare'](_0x5ea206,_0x2b25b7);},'isVisible':({plugins:_0x3b990c},_0x544151)=>{const _0x526a6a=_0x3b990c['get'](m);return!(_0x526a6a['repository']['getRevisionsInDiff'](_0x526a6a['diff'])['length']>0x2)&&!_0x544151['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e8c50,{id:_0x1b225e})=>{_0x1e8c50['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b225e);},'isVisible':({plugins:_0x4363b7},_0x57a5da)=>!!_0x4363b7['get'](m)['repository']['getLaterVisibleRevision'](_0x57a5da['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e1893},{id:_0x145d3c,revisionNameView:_0x50fb7d})=>{const _0x41eb02=_0x1e1893['get'](m),_0x2c89de=_0x41eb02['repository']['getEarlierVisibleRevision'](_0x145d3c);_0x41eb02['compare'](_0x145d3c,_0x2c89de),_0x50fb7d['focus'](),_0x50fb7d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x36f386,_0x21917a){super(_0x36f386),this['_view']=_0x21917a,this['_toolbarConfig']=et(_0x36f386['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1ff221){const _0x897231=this['editor'],_0x1869cb=this['view'],_0x586d47=_0x897231['editing']['view'],_0x21df8d=_0x1869cb['editable'],_0x55b1d2=_0x586d47['document']['getRoot']();_0x21df8d['name']=_0x55b1d2['rootName'],_0x1869cb['render']();const _0x54deb0=_0x21df8d['element'];this['setEditableElement'](_0x21df8d['name'],_0x54deb0),_0x1869cb['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x586d47['attachDomRoot'](_0x54deb0),this['_elementReplacer']['replace'](_0x1ff221,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x55648e=this['view'],_0x5d8281=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5d8281['detachDomRoot'](_0x55648e['editable']['name']),_0x55648e['destroy']();}['_initToolbar'](){const _0x5cae3b=this['view'];_0x5cae3b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5cae3b['stickyPanel']['limiterElement']=_0x5cae3b['element'],_0x5cae3b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5b0658})=>_0x5b0658),_0x5cae3b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5cae3b['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x48964b,_0x533ce3,_0x34877a={}){super(_0x48964b),this['stickyPanel']=new ht(_0x48964b),this['toolbar']=new dt(_0x48964b,{'shouldGroupWhenFull':_0x34877a['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x48964b,_0x533ce3);}['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
+ _0x5786a9(_0x27b4aa){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x12f1e7,_0x541526){super(_0x541526),this['sourceElement']=_0x12f1e7,this['model']['document']['createRoot']();const _0x55b9d7=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x55b9d7);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x35fde0,_0xdab364){const _0x2941ae=new this(_0x35fde0,_0xdab364);return await _0x2941ae['initPlugins'](),await _0x2941ae['ui']['init'](_0x35fde0),await _0x2941ae['data']['init'](_0x2941ae['config']['get']('initialData')||''),_0x2941ae['fire']('ready'),_0x2941ae;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x2a63bd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1dba42){function _0x3d6921(_0x8d91d9){return _0x8d91d9['map'](_0x4a8161=>String['fromCharCode'](_0x4a8161))['join']('');}super(_0x1dba42),this['result']='end',_0x1dba42[_0x3d6921([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d6921([0x76,0x69,0x65,0x77])][_0x3d6921([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d6921([0x61,0x75,0x74,0x6f]),_0x1dba42[_0x3d6921([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d6921([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d6921([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d6921([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d6921([0x6f,0x6b])});}}class k extends _0x2a63bd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x282f99){if(super(_0x282f99),!this['editor']['config']['get']('revisionHistory'))throw new _0x388298('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1e9ff6=>this['_showRevisionViewer']({..._0x1e9ff6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3c1d66=>this['_closeRevisionViewer'](_0x3c1d66)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5f4164=>this['_restoreRevision'](_0x5f4164)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49030f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49030f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1937c6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1937c6);}['getRevision'](_0x453edd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x453edd);}['getRevisions'](_0x5086cc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5086cc||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x466841=this['editor'],_0x59c4f7=_0x535da6(_0x466841,p),_0x6abd15=_0x466841['plugins']['get']('RevisionTracker'),_0x53f6bf=_0x466841['plugins']['get']('Users')['users'];return _0x59c4f7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x59c4f7['lazyRoots'],(_0x59c4f7['plugins']['push'](_t,m,R,class extends _0x2a63bd{static get['requires'](){return[m,'Users'];}['init'](){const _0xe4dac1=this['editor']['plugins']['get']('Users');for(const _0x5bd403 of _0x53f6bf)_0x5bd403['isAnonymous']||_0xe4dac1['getUser'](_0x5bd403['id'])||_0xe4dac1['addUser'](_0x5bd403);const _0x5bb846=_0x6abd15['repository']['getRevisions']();let _0x1313c8=null;const _0x4a3415=this['editor']['plugins']['get']('RevisionViewer');_0x4a3415['adapter']=_0x6abd15['adapter'],_0x4a3415['bind']('isEnabled')['to'](_0x6abd15),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x466841,'isReadOnly',_0x47a950=>!_0x47a950);for(const _0x32fb75 of _0x5bb846){const _0x411cbc=null===_0x32fb75['creator'];if(_0x411cbc&&_0x32fb75['toVersion']===_0x32fb75['fromVersion'])continue;const _0x514753=_0x32fb75['toJSON']();_0x4a3415['addRevisionData'](_0x514753,(_0x2c0986,_0x3065ea,_0x56db00)=>{if(_0x411cbc){if(_0x1313c8)_0x1313c8['_update'](_0x2c0986,_0x3065ea);else{if(!_0x3065ea){const _0x54747e=_0x56db00['toJSON']();_0x54747e['id']=_0x5ca89b(),_0x6abd15['saveRevision'](_0x54747e,_0x56db00['toVersion'])['then'](_0x29685e=>{_0x1313c8=_0x29685e;});}}}else _0x32fb75['_update'](_0x2c0986,_0x3065ea);});}}},d),_0x59c4f7);}['_enhanceShowRevisionViewerCallback'](){const _0x1a0ddb=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x51a4ee=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x591271=this['editor']['plugins']['get']('Autosave');await _0x591271['save']();}else await _0x51a4ee['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x40753e=this['editor']['plugins']['get']('Dialog');_0x40753e['isOpen']&&_0x40753e['hide']();}const _0x318e8b=this['_getRevisionViewerEditorConfig']();return _0x1a0ddb(_0x318e8b)['then'](_0x1616c6=>{return(this['_viewerEditor']=_0x1616c6,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'),_0x1616c6);})['catch'](_0x4ecbec=>(console['error'](_0x4ecbec),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1a4094=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'](),_0x1a4094(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x17a323=this['editor']['plugins']['get']('Annotations');_0x17a323['refreshVisibility'](),_0x17a323['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5bd938){const _0x2844b7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b3bb7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x521cee=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x521cee,_0x5bd938)['then'](_0x35ab25=>(_0x4b3bb7['style']['display']='block',_0x2844b7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x35ab25));}['_closeRevisionViewer'](_0x228b8f){const _0x53e796=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53e796['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x228b8f['destroy']();}async['_restoreRevision'](_0x1d3ecb){const _0x1e0c2=this['editor'],_0x187611=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2af643=_0x1e0c2['plugins']['get']('RevisionTracker'),_0xa77a27=_0x1e0c2['plugins']['get']('RevisionHistoryUtils'),_0x191d2d=_0x187611['repository']['getRevision'](_0x1d3ecb);let _0x55e1b8,_0x363b48,_0x54be80;try{await _0xa77a27['loadRevisionData'](_0x191d2d,this['adapter']),_0x55e1b8=_0xa77a27['getRevisionDocumentData'](_0x191d2d),_0x363b48=_0xa77a27['getRevisionRootsAttributes'](_0x191d2d);}catch(_0x185c3d){return void console['error'](_0x185c3d);}_0x1e0c2['model']['change'](_0x1dce09=>{for(const _0x188f00 of Array['from'](_0x1e0c2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1dce09['removeMarker'](_0x188f00);}),_0x187611['isReady']=!0x1,_0x1e0c2['model']['enqueueChange'](_0x569d1e=>{_0x569d1e['setSelection'](null),_0x569d1e['removeSelectionAttribute'](_0x1e0c2['model']['document']['selection']['getAttributeKeys']());const _0x348de3=Object['keys'](_0x55e1b8);for(const _0x13a51a of _0x1e0c2['model']['document']['roots'])'$graveyard'!=_0x13a51a['rootName']&&_0x13a51a['isAttached']()&&!_0x348de3['includes'](_0x13a51a['rootName'])&&_0x569d1e['detachRoot'](_0x13a51a);for(const _0x4e4ee2 of _0x348de3){let _0x2c50db=_0x1e0c2['model']['document']['getRoot'](_0x4e4ee2);_0x2c50db&&_0x2c50db['isAttached']()||(_0x2c50db=_0x569d1e['addRoot'](_0x4e4ee2));const _0x144a44=_0x363b48[_0x4e4ee2],_0x23ce5c=Object['keys'](_0x144a44),_0x3f19a2=_0x55e1b8[_0x4e4ee2];for(const _0x598a53 of _0x2c50db['getAttributeKeys']())_0x23ce5c['includes'](_0x598a53)||_0x569d1e['removeAttribute'](_0x598a53,_0x2c50db);for(const _0x3ba2f3 of _0x23ce5c)_0x569d1e['setAttribute'](_0x3ba2f3,_0x363b48[_0x4e4ee2][_0x3ba2f3],_0x2c50db);_0x569d1e['remove'](_0x569d1e['createRangeIn'](_0x2c50db)),_0x569d1e['insert'](_0x1e0c2['data']['parse'](_0x3f19a2,_0x2c50db),_0x2c50db,0x0);}});const _0x5d741c=g(_0x1e0c2['locale'],'Restored');if(_0x191d2d['name'])_0x54be80=-0x1==_0x191d2d['name']['indexOf'](_0x5d741c)?_0x5d741c+':\x20'+_0x191d2d['name']:_0x191d2d['name'];else _0x54be80=_0x5d741c+':\x20'+(_0x191d2d['createdAt']['toLocaleDateString'](_0x1e0c2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x191d2d['createdAt']['toLocaleTimeString'](_0x1e0c2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2af643['saveRevision']({'name':_0x54be80}),_0x187611['isReady']=!0x0,_0x1e0c2['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};