@ckeditor/ckeditor5-revision-history 44.0.0-alpha.6 → 44.0.0-alpha.7

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 _0x35ab5a,uid as _0x164885,Collection as _0x22f9c7,logWarning as _0x452764,FocusTracker as _0x222fa5,KeystrokeHandler as _0x1bd166,scrollViewportToShowTarget as _0x49616c,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x93f9cb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3a4227,set as _0x3e1bc8,unset as _0x35c309,isEqual as _0x42c3bd}from'lodash-es';import{Plugin as _0x52ad62,PendingActions as _0x271c6a,icons as _0x598ba3,Command as _0x5c5c03,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3253b4,getMarkerDomElement as _0x556edb,ConfirmMixin as _0x23c90d,sanitizeEditorConfig as _0x3f13e4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2e98fa,ViewText as _0x40d627,ViewElement as _0x6f249f,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x268df4,ViewAttributeElement as _0x3d4e27,ViewEmptyElement as _0x4b27ee,ViewRawElement as _0x29b634,ViewUIElement as _0x24fb36,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x229008,injectCssTransitionDisabler as ts,submitHandler as _0x8bdb45,LabeledFieldView as at,createLabeledInputText as _0x204f0c,createDropdown as _0xc86235,ListView as te,ListItemView as _0x389bc6,ButtonView as _0x51179d,MenuBarMenuView as _0x673cc,MenuBarMenuListView as _0xea0e98,MenuBarMenuListItemView as _0x50d7c3,MenuBarMenuListItemButtonView as _0x3abf6d,ContextualBalloon as _0x5a3b48,ToolbarSeparatorView as _0x86f0e9,IconView as _0x3df9f2,addListToDropdown as _0xcaaeaa,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x16e050}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x35ab5a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x221ed8){super(),this['id']=_0x221ed8['id']||_0x164885(),this['creator']=_0x221ed8['creator']||null,this['authors']=_0x221ed8['authors']||[],this['diffData']=_0x221ed8['diffData']||null,this['toVersion']=_0x221ed8['toVersion']||0x0,this['fromVersion']=_0x221ed8['fromVersion']||0x0,this['set']('name',_0x221ed8['name']||''),this['set']('createdAt',_0x221ed8['createdAt']||new Date()),this['set']('attributes',_0x221ed8['attributes']||{});}['setName'](_0x343eba){this['_update']({'name':_0x343eba});}['setAttribute'](_0x1c6792,_0x39a3ed){const _0x44178a=_0x3a4227(this['attributes']);_0x3e1bc8(_0x44178a,_0x1c6792,_0x39a3ed),this['_update']({'attributes':_0x44178a});}['removeAttribute'](_0x2ef6a3){const _0x22cfad=_0x3a4227(this['attributes']);_0x35c309(_0x22cfad,_0x2ef6a3),this['_update']({'attributes':_0x22cfad});}['_update'](_0x1c4b05,_0x476a48=!0x1){let _0x1a47b7=!0x1;const _0xdbcfb6={'id':this['id']},_0x34275e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4fbe42 of _0x34275e){const _0xe3b468=_0x1c4b05[_0x4fbe42];void 0x0!==_0xe3b468&&_0xe3b468!==this[_0x4fbe42]&&(this[_0x4fbe42]=_0xe3b468,_0xdbcfb6[_0x4fbe42]=_0xe3b468,_0x1a47b7=!0x0);}_0x1a47b7&&(_0xdbcfb6['authors']&&(_0xdbcfb6['authorsIds']=_0xdbcfb6['authors']['map'](_0x312ad0=>_0x312ad0['id']),delete _0xdbcfb6['authors']),this['fire']('_update',_0xdbcfb6,_0x476a48));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4403f1=>_0x4403f1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x52ad62{['_revisions'];static get['requires'](){return[_0x3253b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4a98d7){super(_0x4a98d7),this['_revisions']=new _0x22f9c7();}['afterInit'](){!async function(_0x5746f8){const _0x163807=_0x3d535d([0x51,0x66,0x74,0x4d,0x68,0x6f,0x31,0x6a,0x41,0x59,0x69,0x4b,0x4c,0x43,0x35,0x58,0x30,0x55,0x6e,0x71,0x44,0x39,0x50,0x57,0x79,0x36,0x42,0x77,0x65,0x4f,0x4a,0x52,0x49,0x63,0x6d,0x37,0x53,0x48,0x38,0x56,0x45,0x32,0x5a,0x54,0x6b,0x7a,0x46,0x4e,0x6c,0x61,0x75,0x70,0x73,0x78,0x67,0x33,0x62,0x72,0x34,0x47,0x76,0x64]),_0x211b53=0xeb829,_0x20841b=0x64bb75e2,_0x256cc4=0x64bc221a^_0x20841b,_0x148410=window[_0x3d535d([0x44,0x61,0x74,0x65])][_0x3d535d([0x6e,0x6f,0x77])](),_0xebfcdc=_0x5746f8[_0x3d535d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c8a40=new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x415267=>{_0xebfcdc[_0x3d535d([0x6f,0x6e,0x63,0x65])](_0x3d535d([0x72,0x65,0x61,0x64,0x79]),_0x415267);}),_0x5b6b56={[_0x3d535d([0x6b,0x74,0x79])]:_0x3d535d([0x45,0x43]),[_0x3d535d([0x75,0x73,0x65])]:_0x3d535d([0x73,0x69,0x67]),[_0x3d535d([0x63,0x72,0x76])]:_0x3d535d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d535d([0x78])]:_0x3d535d([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]),[_0x3d535d([0x79])]:_0x3d535d([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]),[_0x3d535d([0x61,0x6c,0x67])]:_0x3d535d([0x45,0x53,0x32,0x35,0x36])},_0x10d31e=_0xebfcdc[_0x3d535d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d535d([0x67,0x65,0x74])](_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x367047(){let _0x80e889,_0x223a12=null,_0x4720cc=null;try{if(_0x10d31e==_0x3d535d([0x47,0x50,0x4c]))return _0x3d535d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x80e889=_0x5650d5(),!_0x80e889)return _0x3d535d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x80e889[_0x3d535d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4720cc=_0x274d29(_0x80e889[_0x3d535d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x80e889[_0x3d535d([0x6a,0x74,0x69])])),await _0x1d8e78()?_0x2d3004()?_0x5a85a2()?_0x3d535d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x703b74()?(_0x80e889[_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d535d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x223a12=_0x99e7a8(_0x3d535d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x80e889[_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d535d([0x74,0x72,0x69,0x61,0x6c])&&(_0x223a12=_0x99e7a8(_0x3d535d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x80e889[_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d535d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x223a12=_0x99e7a8(_0x3d535d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25c574()):_0x3d535d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d535d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d535d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x200b80){return _0x3d535d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a85a2(){const _0x413164=[_0x3d535d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d535d([0x74,0x72,0x69,0x61,0x6c])][_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80e889[_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x148410/0x3e8:0xe10*_0x256cc4;return _0x80e889[_0x3d535d([0x65,0x78,0x70])]<_0x413164;}function _0x2d3004(){const _0x355c07=_0x80e889[_0x3d535d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x355c07&&(!!_0x355c07[_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d535d([0x2a]))||(!!_0x355c07[_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d535d([0x52,0x48]))||!(!_0x355c07[_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d535d([0x52,0x52,0x48]))||!_0x4e47a9())));}function _0x703b74(){const _0x1be94a=_0x80e889[_0x3d535d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1be94a||0x0==_0x1be94a[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11cff9}=new URL(window[_0x3d535d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1be94a[_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11cff9))return!0x0;const _0x415385=_0x11cff9[_0x3d535d([0x73,0x70,0x6c,0x69,0x74])](_0x3d535d([0x2e]));return _0x1be94a[_0x3d535d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e6714=>_0x1e6714[_0x3d535d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d535d([0x2a])))[_0x3d535d([0x6d,0x61,0x70])](_0x2860c0=>_0x2860c0[_0x3d535d([0x73,0x70,0x6c,0x69,0x74])](_0x3d535d([0x2e])))[_0x3d535d([0x73,0x6f,0x6d,0x65])](_0x210bbf=>_0x415385[_0x3d535d([0x65,0x76,0x65,0x72,0x79])]((_0x29bfcc,_0x3b8739)=>_0x210bbf[_0x3b8739]===_0x29bfcc||_0x210bbf[_0x3b8739]===_0x3d535d([0x2a])));}function _0x25c574(){return _0x223a12&&_0x4720cc?new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x257eb2,_0x2c9b49)=>{_0x223a12[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x257eb2,_0x2c9b49),_0x4720cc[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x23172f=>{_0x23172f!=_0x3d535d([0x56,0x61,0x6c,0x69,0x64])&&_0x257eb2(_0x23172f);},_0x2c9b49);}):_0x223a12||_0x4720cc||_0x3d535d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x274d29(_0x40a197,_0x349732){return new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x588706=>{if(_0x47adf6())return _0x588706(_0x3d535d([0x56,0x61,0x6c,0x69,0x64]));_0x2e9cb1(),_0xebfcdc[_0x3d535d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d535d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6d727d=!0x1;const _0xa09c50=_0x164885();function _0x5e2024(_0x4491c0){return!!_0x4491c0&&(typeof _0x4491c0===_0x3d535d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4491c0===_0x3d535d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4491c0[_0x3d535d([0x74,0x68,0x65,0x6e])]===_0x3d535d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4491c0[_0x3d535d([0x63,0x61,0x74,0x63,0x68])]===_0x3d535d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2490e2(_0x4c5475){_0x2495a1(_0x4c5475)[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x3461bc=>{if(!_0x3461bc||_0x3461bc[_0x3d535d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d535d([0x6f,0x6b]))return _0x3d535d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x481673(_0x10e3b8(_0xa09c50+_0x349732))!=_0x3461bc[_0x3d535d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d535d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d535d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x5abb47=>(_0x909da9(),_0x5abb47),()=>{const _0x4488c6=_0x9d604d();return null==_0x4488c6?(_0x909da9(),_0x3d535d([0x56,0x61,0x6c,0x69,0x64])):_0x3d535d(_0x148410-_0x4488c6>(0x40b7f1e2^_0x20841b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x588706)[_0x3d535d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x588706(_0x3d535d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21b5e5=0x648d9b62^_0x20841b;function _0x909da9(){const _0x117e99=_0x3d535d([0x6c,0x6c,0x63,0x74,0x2d])+_0x481673(_0x10e3b8(_0x40a197)),_0x5d360d=_0x45f8c9(_0x481673(window[_0x3d535d([0x4d,0x61,0x74,0x68])][_0x3d535d([0x63,0x65,0x69,0x6c])](_0x148410/_0x21b5e5)));window[_0x3d535d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d535d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x117e99,_0x5d360d);}function _0x9d604d(){const _0x3f65b9=_0x3d535d([0x6c,0x6c,0x63,0x74,0x2d])+_0x481673(_0x10e3b8(_0x40a197)),_0x309c26=window[_0x3d535d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d535d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f65b9);return _0x309c26?window[_0x3d535d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45f8c9(_0x309c26),0x10)*_0x21b5e5:null;}function _0x2495a1(_0x20edfd){return new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5698a1,_0x1072c0)=>{_0x20edfd[_0x3d535d([0x74,0x68,0x65,0x6e])](_0x5698a1,_0x1072c0),window[_0x3d535d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1072c0,0x64baa122^_0x20841b);});}}_0xebfcdc[_0x3d535d([0x6f,0x6e])](_0x3d535d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x519e36,_0x5182c8)=>{if(_0x5182c8[0x0]!=_0x40a197)return _0x588706(_0x3d535d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5182c8[0x1]={..._0x5182c8[0x1],[_0x3d535d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa09c50};},{[_0x3d535d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d535d([0x68,0x69,0x67,0x68])}),_0xebfcdc[_0x3d535d([0x6f,0x6e])](_0x3d535d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53f27a=>{_0x5e2024(_0x53f27a[_0x3d535d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6d727d=!0x0,_0x2490e2(_0x53f27a[_0x3d535d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d535d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d535d([0x6c,0x6f,0x77])}),_0x1c8a40[_0x3d535d([0x74,0x68,0x65,0x6e])](()=>{_0x6d727d||_0x588706(_0x3d535d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47adf6(){return _0xebfcdc[_0x3d535d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d535d([0x76,0x69,0x65,0x77])][_0x3d535d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d535d([0x61,0x75,0x74,0x6f]);}function _0x2e9cb1(){_0xebfcdc[_0x3d535d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d535d([0x76,0x69,0x65,0x77])][_0x3d535d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d535d([0x61,0x75,0x74,0x6f]);}}function _0x99e7a8(_0x4290e9){const _0x400b64=[new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52654e=>setTimeout(_0x52654e,0x64b24b2e^_0x20841b)),_0x1c8a40[_0x3d535d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34adc2=>{const _0x377eae=0x64bb75e5^_0x20841b,_0x2bc6f9=_0x5746f8[_0x3d535d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x42fdfc(){_0x2bc6f9[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x377eae&&_0x34adc2();}_0x42fdfc(),_0x2bc6f9[_0x3d535d([0x6f,0x6e])](_0x3d535d([0x61,0x64,0x64]),_0x42fdfc);})),new window[(_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50408d=>{function _0x3bd164(){for(const _0x46fd33 in window)if(window[_0x3d535d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3d535d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x46fd33))&&window[_0x46fd33]==_0x211b53)return _0x50408d();_0xebfcdc[_0x3d535d([0x73,0x74,0x61,0x74,0x65])]!=_0x3d535d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3d535d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3bd164,0x64bb666a^_0x20841b);}_0x285e26(_0x3d535d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3bd164();})];return window[_0x3d535d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d535d([0x72,0x61,0x63,0x65])](_0x400b64)[_0x3d535d([0x74,0x68,0x65,0x6e])](()=>_0x4290e9);}async function _0x126251(){if(await _0x1c8a40,_0x285e26(_0x3d535d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5aeb2a=_0x5746f8[_0x3d535d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4118d5=_0x5746f8[_0x3d535d([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])](_0x5aeb2a[_0x3d535d([0x69,0x64])]),_0x3beff4=_0x378e5c(_0x3d535d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3beff4[_0x3d535d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5aeb2a['id'],_0x4118d5?_0x4118d5['id']:null,!0x0),_0x3beff4[_0x3d535d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d535d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3beff4[_0x3d535d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3beff4[_0x3d535d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x424c1b,void(_0x3beff4[_0x3d535d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x424c1b);}if(_0x285e26(_0x3d535d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3d8061=_0x378e5c(_0x3d535d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3d8061[_0x3d535d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d535d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3d8061[_0x3d535d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3d8061[_0x3d535d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x424c1b,_0x3d8061[_0x3d535d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x424c1b;}_0xebfcdc[_0x3d535d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d535d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x424c1b,_0xebfcdc[_0x3d535d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d535d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x424c1b,_0xebfcdc[_0x3d535d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d535d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e47a9(){return _0x285e26(_0x3d535d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x378e5c(_0x3d535d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d535d([0x73,0x74,0x61,0x74,0x65])]==_0x3d535d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21fad5(_0x5a4c10){const _0x3962ce=_0x4a9107();_0xebfcdc[_0x3962ce]=_0x3d535d([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])+_0x5a4c10,_0x5a4c10[_0x3d535d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3d535d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a9107()]=_0x211b53),_0x5a4c10!=_0x3d535d([0x56,0x61,0x6c,0x69,0x64])&&_0x126251();}function _0x4a9107(){const _0x2eca40=window[_0x3d535d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d535d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d535d([0x6e,0x6f,0x77])]())[_0x3d535d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d535d([0x2e]),'');let _0x1afda8=_0x3d535d([0x51]);for(let _0x17f2dd=0x0;_0x17f2dd<_0x2eca40[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17f2dd+=0x2){let _0x10eb0a=window[_0x3d535d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eca40[_0x3d535d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17f2dd,_0x17f2dd+0x2));_0x10eb0a>=_0x163807[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10eb0a-=_0x163807[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1afda8+=_0x163807[_0x10eb0a];}return _0x1afda8;}function _0x5650d5(){const _0x5ccdfe=_0x10d31e[_0x3d535d([0x73,0x70,0x6c,0x69,0x74])](_0x3d535d([0x2e]));if(0x3!=_0x5ccdfe[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d9f8e(_0x5ccdfe[0x1]);function _0x4d9f8e(_0x21f293){const _0x2d4b24=_0x506c82(_0x21f293);return _0x2d4b24&&_0x1d1354()?_0x2d4b24:null;function _0x1d1354(){const _0x2aa2f5=_0x2d4b24[_0x3d535d([0x6a,0x74,0x69])],_0xc40d81=window[_0x3d535d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa2f5[_0x3d535d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aa2f5[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51ab4e={..._0x2d4b24,[_0x3d535d([0x6a,0x74,0x69])]:_0x2aa2f5[_0x3d535d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2aa2f5[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51ab4e[_0x3d535d([0x76,0x63])],_0x10e3b8(_0x51ab4e)==_0xc40d81;}}}async function _0x1d8e78(){let _0x508c82=!0x0;try{const _0x4039ee=_0x10d31e[_0x3d535d([0x73,0x70,0x6c,0x69,0x74])](_0x3d535d([0x2e])),[_0x4e7cbd,_0x4656c0,_0x2a3146]=_0x4039ee;return _0x4e3e42(_0x4e7cbd),await _0x1fb416(_0x4e7cbd,_0x4656c0,_0x2a3146),_0x508c82;}catch(_0xb3f817){return!0x1;}function _0x4e3e42(_0x480a9e){const _0x2c84f4=_0x506c82(_0x480a9e);_0x2c84f4&&_0x2c84f4[_0x3d535d([0x61,0x6c,0x67])]==_0x3d535d([0x45,0x53,0x32,0x35,0x36])||(_0x508c82=!0x1);}async function _0x1fb416(_0x5bebd8,_0x3f78ca,_0x787d56){const _0xd26822=window[_0x3d535d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d535d([0x66,0x72,0x6f,0x6d])](_0x12ee20(_0x787d56),_0x3ef5e3=>_0x3ef5e3[_0x3d535d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28b4ca=new window[(_0x3d535d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d535d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5bebd8+_0x3d535d([0x2e])+_0x3f78ca),_0x5cb2d4=window[_0x3d535d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d535d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cb2d4)return;const _0x2db41b=await _0x5cb2d4[_0x3d535d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d535d([0x6a,0x77,0x6b]),_0x5b6b56,{[_0x3d535d([0x6e,0x61,0x6d,0x65])]:_0x3d535d([0x45,0x43,0x44,0x53,0x41]),[_0x3d535d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d535d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d535d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cb2d4[_0x3d535d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d535d([0x6e,0x61,0x6d,0x65])]:_0x3d535d([0x45,0x43,0x44,0x53,0x41]),[_0x3d535d([0x68,0x61,0x73,0x68])]:{[_0x3d535d([0x6e,0x61,0x6d,0x65])]:_0x3d535d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db41b,_0xd26822,_0x28b4ca)||(_0x508c82=!0x1);}}function _0x506c82(_0x32bbec){return _0x32bbec[_0x3d535d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d535d([0x65,0x79]))?JSON[_0x3d535d([0x70,0x61,0x72,0x73,0x65])](_0x12ee20(_0x32bbec)):null;}function _0x12ee20(_0xa2d62c){return window[_0x3d535d([0x61,0x74,0x6f,0x62])](_0xa2d62c[_0x3d535d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d535d([0x2b]))[_0x3d535d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d535d([0x2f])));}function _0x10e3b8(_0xaf2ccd){let _0x462bae=0x1505;function _0x270322(_0x49070f){for(let _0x4ad347=0x0;_0x4ad347<_0x49070f[_0x3d535d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ad347++){const _0x45849e=_0x49070f[_0x3d535d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ad347);_0x462bae=(_0x462bae<<0x5)+_0x462bae+_0x45849e,_0x462bae&=_0x462bae;}}function _0x290b04(_0x2af1f3){Array[_0x3d535d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2af1f3)?_0x2af1f3[_0x3d535d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x290b04):_0x2af1f3&&typeof _0x2af1f3==_0x3d535d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d535d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2af1f3)[_0x3d535d([0x73,0x6f,0x72,0x74])]()[_0x3d535d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fd332,_0x146814])=>{_0x270322(_0x2fd332),_0x290b04(_0x146814);}):_0x270322(window[_0x3d535d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2af1f3));}return _0x290b04(_0xaf2ccd),_0x462bae>>>0x0;}function _0x481673(_0x16cbe3){return _0x16cbe3[_0x3d535d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d535d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d535d([0x30]));}function _0x45f8c9(_0x1423cf){return _0x1423cf[_0x3d535d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d535d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d535d([0x6a,0x6f,0x69,0x6e])]('');}function _0x285e26(_0x4039ed){return _0xebfcdc[_0x3d535d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d535d([0x68,0x61,0x73])](_0x4039ed);}function _0x378e5c(_0x14d59a){return _0xebfcdc[_0x3d535d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d535d([0x67,0x65,0x74])](_0x14d59a);}function _0x424c1b(){}function _0x3d535d(_0x5996a4){return _0x5996a4['map'](_0x2e80c9=>String['fromCharCode'](_0x2e80c9))['join']('');}_0x21fad5(await _0x367047());}(this);}['createRevision'](_0x19a2dc){const _0x428ed6=this['editor']['plugins']['get']('Users');return new a({'id':_0x19a2dc['id'],'name':_0x19a2dc['name'],'creator':_0x19a2dc['creatorId']?_0x428ed6['getUser'](_0x19a2dc['creatorId']):null,'diffData':_0x19a2dc['diffData']||_0x19a2dc['data'],'authors':_0x19a2dc['authorsIds']['map'](_0x1d14b6=>_0x428ed6['getUser'](_0x1d14b6)),'createdAt':new Date(_0x19a2dc['createdAt']),'attributes':_0x19a2dc['attributes'],'fromVersion':_0x19a2dc['fromVersion'],'toVersion':_0x19a2dc['toVersion']});}['addRevision'](_0x3a9ce6,_0x525c39=0x0){this['_revisions']['add'](_0x3a9ce6,_0x525c39);}['getRevision'](_0x5aa365){return this['_revisions']['get'](_0x5aa365);}['getRevisions'](_0x5db403={'toJSON':!0x1}){const _0x2e9a38=Array['from'](this['_revisions']);return _0x2e9a38['reverse'](),_0x5db403['toJSON']?_0x2e9a38['map'](_0x5b8074=>_0x5b8074['toJSON']()):_0x2e9a38;}['getIndex'](_0x18203a){return this['_revisions']['getIndex'](_0x18203a);}['getEarlierVisibleRevision'](_0x1c5235){const [,_0x523b27]=this['getRevisionsIterator'](_0x1c5235,{'direction':'earlier'});return _0x523b27;}['getLaterVisibleRevision'](_0xc4307e){const [,_0x5437a2]=this['getRevisionsIterator'](_0xc4307e,{'direction':'later'});return _0x5437a2;}['getRevisionsInDiff'](_0x24caad){const _0xdaecd9=[];for(const _0x5c4cc8 of this['getRevisionsIterator'](_0x24caad['newRevisionId']))if(_0xdaecd9['push'](_0x5c4cc8),_0x5c4cc8['id']===_0x24caad['oldRevisionId'])break;return _0xdaecd9;}*['getRevisionsIterator'](_0x590bb0,{direction:_0x549d0f='earlier',filter:_0x3eb650=()=>!0x0}={}){const _0x3100ca='earlier'===_0x549d0f?0x1:-0x1;let _0x33b15c=this['_revisions']['get'](_0x590bb0),_0x56e9bf=this['getIndex'](_0x33b15c);for(yield _0x33b15c;_0x33b15c;){if(_0x56e9bf+=_0x3100ca,_0x33b15c=this['getRevision'](_0x56e9bf),!_0x33b15c)return;_0x3eb650(_0x33b15c)&&(yield _0x33b15c);}}}function R(_0x4a8059,_0x10610a,_0x506837){const t=_0x4a8059['t'];switch(_0x10610a){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'},_0x506837);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x506837);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x268df4,'a':_0x3d4e27,'e':_0x4b27ee,'r':_0x29b634,'u':_0x24fb36};class l extends _0x52ad62{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3253b4,j,_0x271c6a];}constructor(_0x5516aa){super(_0x5516aa),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5124b9=_0x164885();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5124b9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x21c058=this['repository']['getRevision'](0x0),_0x543b57=_0x21c058&&null===_0x21c058['creator']?_0x21c058:null;if(this['_continueCurrentRevision']=!!_0x543b57&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ebe85=this['_source']['getCurrentRevisionId'](),_0x3732f1=this['repository']['getRevision'](_0x5ebe85);if(_0x3732f1)this['_startingVersion']=_0x3732f1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1dea60=this['_source']['history']['_operations']['find'](_0xa9905a=>!_0xa9905a['_isInit']),_0x9d712a=_0x1dea60?_0x1dea60['baseVersion']:this['_source']['history']['version'];_0x21c058?(_0x21c058['toVersion']<_0x9d712a&&_0x21c058['_update']({'toVersion':_0x9d712a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x543b57['id'],this['_startingVersion']=_0x543b57['fromVersion']):(this['_startingVersion']=_0x21c058['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x9d712a,this['_continueCurrentRevision']=!0x1);}}else _0x543b57&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x543b57['toVersion'],this['editor']['model']['document']['history']['version']),_0x543b57['fromVersion']===_0x543b57['toVersion']?(0x0!==_0x543b57['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x543b57['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x543b57['id'],this['_startingVersion']=_0x543b57['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',_0x4c78f2=>!_0x4c78f2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28ed72=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x571925;for(const _0x15f199 in _0x28ed72){const _0x1f9c12=_0x15f199,_0x555f0d=_0x28ed72[_0x1f9c12];if('revisionHistoryLicenseKeyValid'==_0x555f0d||'revisionHistoryLicenseKeyInvalid'==_0x555f0d||'revisionHistoryLicenseKeyExpired'==_0x555f0d||'revisionHistoryLicenseKeyDomainLimit'==_0x555f0d||'revisionHistoryLicenseKeyNotAllowed'==_0x555f0d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x555f0d||'revisionHistoryLicenseKeyTrialLimit'==_0x555f0d||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x555f0d||'revisionHistoryLicenseKeyUsageLimit'==_0x555f0d){delete _0x28ed72[_0x1f9c12],_0x571925=_0x555f0d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x571925&&_0x28ed72['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x571925&&_0x28ed72['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x571925&&_0x28ed72['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x571925&&_0x28ed72['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x571925&&_0x28ed72['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x571925&&_0x28ed72['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x571925&&_0x28ed72['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x571925&&_0x28ed72['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3f55bd=this['repository']['getRevision'](0x0),_0x306d84=await this['getRevisionDocumentData'](_0x3f55bd),_0x55ca55=await this['getRevisionRootsAttributes'](_0x3f55bd);this['_replaceEditorDataWithRevisionData'](_0x306d84,_0x55ca55);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x19c4c3){this['_source']=_0x19c4c3;}async['update'](){const _0x34cd87=await this['_source']['getLatestVersion']();if(_0x34cd87>this['currentRevision']['toVersion']){await this['_loadState']();const _0x37d668=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x34cd87});_0x37d668['authors']=_0x37d668['authorsIds']['map'](_0xb13f07=>this['editor']['plugins']['get']('Users')['getUser'](_0xb13f07)),this['currentRevision']['_update'](_0x37d668);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x53da2f={},_0x23587c=null){const _0x33d668=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23587c>this['currentRevision']['toVersion']&&(_0x23587c=null),null===_0x23587c&&(_0x23587c=await this['_source']['getLatestVersion']());const _0x2acb3c=this['_getFromVersion'](_0x23587c),_0x140df3=this['buildRevisionData']({'from':_0x2acb3c,'to':_0x23587c});if(this['currentRevision']['toVersion']<_0x23587c){const _0x7fe2b8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23587c,'to':_0x23587c});_0x7fe2b8['authors']=[],_0x7fe2b8['authorsIds']=[],_0x7fe2b8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x7fe2b8,!0x0),delete _0x7fe2b8['authors'],_0x33d668['push'](_0x7fe2b8);}_0x53da2f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x53da2f['name']=_0x53da2f['name']||null,_0x53da2f['id']=_0x53da2f['id']||_0x164885(),_0x53da2f={..._0x53da2f,..._0x140df3};const _0x556bda=this['addRevisionData'](_0x53da2f);_0x33d668['push'](_0x53da2f);const _0x9f4069=this['repository']['getIndex'](_0x556bda);if(0x0!==_0x9f4069){const _0x1abbe5=this['repository']['getRevision'](_0x9f4069-0x1);if(_0x1abbe5['fromVersion']!==_0x23587c){const _0xe8a2be=this['_revisionDataBuilder']['getData'](_0x23587c,_0x1abbe5['toVersion']),_0x3630e4={'id':_0x1abbe5['id'],'diffData':_0xe8a2be['diffData'],'authorsIds':_0xe8a2be['authorsIds'],'authors':_0xe8a2be['authorsIds']['map'](_0x1d5e67=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d5e67)),'fromVersion':_0x23587c};_0x1abbe5===this['currentRevision']&&(_0x3630e4['createdAt']=new Date(_0x53da2f['createdAt']['getTime']()+0xa)),_0x1abbe5['_update'](_0x3630e4,!0x0),delete _0x3630e4['authors'],_0x33d668['push'](_0x3630e4);}}if(this['adapter']){for(const _0x339585 of _0x33d668)this['_bufferUpdate'](_0x339585['id'],_0x339585,!0x0);this['sendBufferedUpdates']();}return _0x556bda;}['addRevisionData'](_0x128987){const _0x4e12be=this['repository']['createRevision'](_0x128987);return this['adapter']&&_0x4e12be['on']('_update',(_0x5e7543,_0x350223,_0x334b52)=>{_0x334b52||(this['_bufferUpdate'](_0x350223['id'],_0x350223,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e12be,this['_findInsertionIndex'](_0x4e12be)),_0x4e12be;}async['getRevisionDocumentData'](_0x19bf6e){await this['_loadRevisionData'](_0x19bf6e);const _0x47db08={};for(const _0x3680ad in _0x19bf6e['diffData']){if(_0x19bf6e['diffData'][_0x3680ad]['attachChange']&&!_0x19bf6e['diffData'][_0x3680ad]['attachChange']['isAttached'])continue;const _0x5285ca=this['_removeRevisionMarkers'](JSON['parse'](_0x19bf6e['diffData'][_0x3680ad]['insertions'])),_0x2ece30=this['editor']['editing']['view']['document'],_0x15696d=new _0x2e98fa(_0x2ece30,_0x5285ca['map'](_0xf9cf0=>V(_0xf9cf0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x47db08[_0x3680ad]=this['editor']['data']['processor']['toData'](_0x15696d),this['editor']['data']['processor']['useFillerType']('default');}return _0x47db08;}async['getRevisionRootsAttributes'](_0x4fadbd){await this['_loadRevisionData'](_0x4fadbd);const _0x5260e9={};for(const _0x3c5fec in _0x4fadbd['diffData'])_0x4fadbd['diffData'][_0x3c5fec]['attachChange']&&!_0x4fadbd['diffData'][_0x3c5fec]['attachChange']['isAttached']||(_0x5260e9[_0x3c5fec]=_0x4fadbd['diffData'][_0x3c5fec]['attributesAfter']||{});return _0x5260e9;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1c0537=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3208a0=0x0;_0x3208a0<_0x1c0537['length'];_0x3208a0++){const _0x1cb070=_0x1c0537[_0x3208a0];let _0x546efd=!0x1;for(const _0x3e0f89 of Object['keys'](_0x1cb070))void 0x0===_0x1cb070[_0x3e0f89]?delete _0x1cb070[_0x3e0f89]:'id'!==_0x3e0f89&&(_0x546efd=!0x0);_0x546efd||(_0x1c0537[_0x3208a0]=null);}if(_0x1c0537=_0x1c0537['filter'](_0x59bd62=>null!==_0x59bd62),!_0x1c0537['length'])return;for(let _0x5bd3d2=0x0;_0x5bd3d2<_0x1c0537['length'];_0x5bd3d2++){const _0x3f2661=_0x1c0537[_0x5bd3d2];void 0x0!==_0x3f2661['fromVersion']&&void 0x0===_0x3f2661['toVersion']&&(_0x3f2661['toVersion']=this['repository']['getRevision'](_0x3f2661['id'])['toVersion']),void 0x0!==_0x3f2661['toVersion']&&void 0x0===_0x3f2661['fromVersion']&&(_0x3f2661['fromVersion']=this['repository']['getRevision'](_0x3f2661['id'])['fromVersion']);}const _0x3eb02a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1c0537,_0x3eb02a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x537640=>{if(_0x537640){for(const _0x3ec2c7 of _0x537640)this['setRevisionData']({'id':_0x3ec2c7['id'],'createdAt':_0x3ec2c7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4c69e7,_0x423df7){let _0x568135=this['editor']['config']['get']('initialData'),_0x3c12d2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x568135){_0x568135={};for(const _0x16e7e8 of this['editor']['model']['document']['getRootNames']())_0x568135[_0x16e7e8]='';}if('string'==typeof _0x568135&&(_0x568135={'main':_0x568135}),void 0x0===_0x3c12d2){_0x3c12d2={};for(const _0x5aca81 of this['editor']['model']['document']['getRootNames']())_0x3c12d2[_0x5aca81]={};}let _0x3c7ffc=!0x1;const _0x4aabc2=Object['keys'](_0x568135),_0x48a954=Object['keys'](_0x4c69e7);for(const _0x423d75 of _0x4aabc2){if(_0x568135[_0x423d75]!==_0x4c69e7[_0x423d75]&&''!==_0x568135[_0x423d75]['trim']()){_0x3c7ffc=!0x0;break;}if(!_0x42c3bd(_0x3c12d2[_0x423d75],_0x423df7[_0x423d75])&&Object['keys'](_0x3c12d2[_0x423d75])['length']>0x0){_0x3c7ffc=!0x0;break;}}_0x3c7ffc||(_0x3c7ffc=_0x48a954['some'](_0x583da5=>!this['editor']['model']['document']['getRoot'](_0x583da5))),_0x3c7ffc&&_0x452764('editor-initial-data-replaced-with-revision-data',{'editorData':_0x568135,'editorRootsAttributes':_0x3c12d2,'revisionData':_0x4c69e7,'revisionRootsAttributes':_0x423df7}),this['editor']['config']['set']('initialData',_0x4c69e7),this['editor']['config']['set']('rootsAttributes',_0x423df7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5bca89=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5bca89['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xd1728){const _0x57ca4c=this['repository']['getRevisions']();_0x57ca4c['reverse']();let _0x2bae50=0x0;for(;_0x2bae50<_0x57ca4c['length'];){const _0x4ffcc4=_0x57ca4c[_0x2bae50];if(_0x4ffcc4===this['currentRevision']){_0x2bae50++;continue;}if(_0x4ffcc4['id']===this['_initialRevisionId'])break;const _0x57dfb9=_0xd1728['toVersion']-_0x4ffcc4['toVersion']||_0xd1728['fromVersion']-_0x4ffcc4['fromVersion'];if(_0x57dfb9>0x0)break;if(_0x57dfb9<0x0)_0x2bae50++;else{if(!_0xd1728['creator']&&_0x4ffcc4['creator'])break;if(_0x4ffcc4['creator']||!_0xd1728['creator']){if(_0xd1728['createdAt']>_0x4ffcc4['createdAt'])break;_0x2bae50++;}else _0x2bae50++;}}return _0x2bae50;}['setRevisionData'](_0x86da9e){const _0xce4240=this['repository']['getRevision'](_0x86da9e['id']);if(_0x86da9e['createdAt']&&(_0x86da9e['createdAt']=new Date(_0x86da9e['createdAt'])),_0x86da9e['authorsIds']){const _0x10c657=this['editor']['plugins']['get']('Users');_0x86da9e['authors']=_0x86da9e['authorsIds']['map'](_0x1e98b7=>_0x10c657['getUser'](_0x1e98b7));}_0xce4240['_update'](_0x86da9e,!0x0);}['buildRevisionData']({revision:_0x3f4d4c=null,from:_0x24a7d6=null,to:_0x3c5dc8=null}){_0x24a7d6=null!==_0x24a7d6?_0x24a7d6:_0x3f4d4c['fromVersion'],_0x3c5dc8=null!==_0x3c5dc8?_0x3c5dc8:_0x3f4d4c['toVersion'];const _0x2ea713=this['_revisionDataBuilder']['getData'](_0x24a7d6,_0x3c5dc8),_0x3ccf53={'diffData':_0x2ea713['diffData'],'authorsIds':_0x2ea713['authorsIds'],'fromVersion':_0x24a7d6,'toVersion':_0x3c5dc8};if(!_0x3f4d4c||_0x3c5dc8!==_0x3f4d4c['toVersion']){const _0x198e48=_0x3c5dc8-0x1,_0x84485c=this['_source']['history']['getOperation'](_0x198e48);_0x3ccf53['createdAt']=_0x84485c&&_0x84485c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x24a7d6===this['_loadedStateData']['fromVersion']){for(const _0x3e64fb of this['_loadedStateData']['authors'])_0x3ccf53['authorsIds']['includes'](_0x3e64fb['id'])||_0x3ccf53['authorsIds']['push'](_0x3e64fb['id']);}return _0x3ccf53;}['_loadRevisionData'](_0x34b8eb){if(!_0x34b8eb||_0x34b8eb['diffData'])return Promise['resolve']();{const _0x3fed22=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3fed22,'revisionId':_0x34b8eb['id']})['then'](_0x32ac16=>{_0x34b8eb['diffData']=_0x32ac16['diffData'];});}}['_bufferUpdate'](_0x34822b,_0x18ba35,_0x2c44d9){if(this['_bufferedUpdates']['has'](_0x34822b)){const _0x476dc1=this['_bufferedUpdates']['get'](_0x34822b);_0x18ba35=_0x2c44d9?{..._0x476dc1,..._0x18ba35}:{..._0x18ba35,..._0x476dc1};}this['_bufferedUpdates']['set'](_0x34822b,_0x18ba35);}['_getFromVersion'](_0x3a1b95){const _0x2a8ff5=this['repository']['getRevisions']();_0x2a8ff5['reverse'](),_0x2a8ff5['shift']();const _0xb5f081=_0x2a8ff5['find'](_0x10b1a2=>_0x10b1a2['toVersion']<=_0x3a1b95)['toVersion'];return _0xb5f081<this['_startingVersion']?this['_startingVersion']:_0xb5f081;}['_createInitialRevision'](_0x29b267){const _0x5ee2ce=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5ee2ce)this['_initialRevisionId']=_0x5ee2ce['id'];else{const _0x35fbcd=!this['editor']['model']['document']['roots']['find'](_0x250c49=>this['editor']['model']['hasContent'](_0x250c49)),_0x18255=this['editor']['plugins']['get']('Users')['me']['id'],_0x4491a4=R(this['editor']['locale'],_0x35fbcd?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x29b267,'to':_0x29b267,'id':this['_initialRevisionId'],'name':_0x4491a4,'creatorId':_0x18255});}}['_createCurrentRevision'](_0x51e70f){const _0x33a4b3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x33a4b3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x51e70f,'to':_0x51e70f,'id':_0x33a4b3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x485d43,from:_0x29a530,to:_0x1e4270,creatorId:_0x5b8601,id:_0x2e4023}){const _0x4967c9=this['buildRevisionData']({'from':_0x29a530,'to':_0x1e4270});_0x4967c9['name']=_0x485d43,_0x4967c9['creatorId']=_0x5b8601,_0x4967c9['id']=_0x2e4023;const _0xbd2b81=this['addRevisionData'](_0x4967c9);return this['adapter']&&this['_bufferUpdate'](_0x4967c9['id'],_0x4967c9,!0x0),_0xbd2b81;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x457988){return(_0x457988=_0x457988['filter'](_0x8ab7e4=>!_0x8ab7e4['name']||'revision-start'!==_0x8ab7e4['name']&&'revision-end'!==_0x8ab7e4['name']))['forEach'](_0xf58340=>{'string'!=typeof _0xf58340&&(_0xf58340['children']=this['_removeRevisionMarkers'](_0xf58340['children']),_0xf58340['attributes']=_0xf58340['attributes']['filter'](_0x573ff5=>!_0x573ff5[0x0]['startsWith']('data-revision-')));}),_0x457988;}}function V(_0x39be84,_0x3fbcfb){const _0x4ed323=_0x3fbcfb['editing']['view']['document'];if('string'==typeof _0x39be84)return new _0x40d627(_0x4ed323,_0x39be84);{const _0x18f158=_0x39be84['children']['map'](_0x17bfc4=>V(_0x17bfc4,_0x3fbcfb));return new(C[_0x39be84['type']]||_0x6f249f)(_0x4ed323,_0x39be84['name'],_0x39be84['attributes'],_0x18f158);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x506517){this['editor']=_0x506517,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'](_0x87a555){this['source']=_0x87a555;const _0x3ebdaa=new Map(),_0x562207=new Map(),_0x5db719=this['editor']['model']['document']['roots']['map'](_0x34f805=>_0x34f805['rootName']);for(const _0x585cbd of _0x5db719){const _0x18a4ba=this['editor']['model']['document']['getRoot'](_0x585cbd),_0x317a65=F(_0x18a4ba);_0x3ebdaa['set'](_0x585cbd,_0x317a65),_0x562207['set'](_0x585cbd,Object['fromEntries'](_0x18a4ba['getAttributes']()));}const _0x5d88bb=Array['from'](this['editor']['model']['markers'])['map'](_0x32f67a=>[_0x32f67a['name'],_0x32f67a['getRange']()]),_0x93aa35=this['source']['version'];this['_saveMetaData'](_0x93aa35,_0x3ebdaa,_0x5d88bb,_0x562207),this['_startingRevisionId']=this['_revisionId'];const _0x4b8539=new Map(),_0x507d67=new Map();for(const _0x40baa0 of _0x5db719){const _0x1c7e9e=B(_0x40baa0);_0x4b8539['set'](_0x40baa0,_0x1c7e9e),_0x507d67['set'](_0x40baa0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b8539,[],_0x507d67);}['getData'](_0x4eb678,_0x1eef10){if(this['_lastFrom']===_0x4eb678&&this['_lastTo']<=_0x1eef10)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1eef10,!0x0);else{if(!this['_savedMetaData']['has'](_0x4eb678)){const _0x37f523=this['_getPreviousFrom'](_0x4eb678);this['_calculateMetaData'](_0x37f523,_0x4eb678,!0x1);}this['_calculateMetaData'](_0x4eb678,_0x1eef10,!0x0);}return this['_lastFrom']=_0x4eb678,this['_lastTo']=_0x1eef10,this['_getState']();}['loadState'](_0x3d54cc){this['_reset'](),this['_lastFrom']=_0x3d54cc['fromVersion'],this['_lastTo']=_0x3d54cc['toVersion'];for(const _0x44f9b6 in _0x3d54cc['diffData']){const _0x2ee79b=_0x3d54cc['diffData'][_0x44f9b6]['attachChange'],_0x2023e1=_0x3a4227(_0x3d54cc['diffData'][_0x44f9b6]['attributesBefore'])||{},_0xbf9cff=this['_makeModelFromViewString'](_0x3d54cc['diffData'][_0x44f9b6]['deletions']);_0xbf9cff['rootName']=_0x44f9b6,_0xbf9cff['_isAttached']=!_0x2ee79b||!_0x2ee79b['isAttached'],_0xbf9cff['isAttached']=()=>_0xbf9cff['_isAttached'],this['_baseRoots']['set'](_0x44f9b6,_0xbf9cff),this['_baseRootsAttributes']['set'](_0x44f9b6,_0x2023e1),_0x2ee79b&&this['_touchedRoots']['set'](_0x44f9b6,_0x2ee79b);const _0x4ce99a=this['_makeIdsRoot'](_0xbf9cff);this['_baseIdsRoots']['set'](_0x44f9b6,_0x4ce99a);for(const [_0x564e33,_0x414ce8]of _0xbf9cff['markers']){if(!_0x564e33['startsWith']('revision:'))continue;const _0x1e8d36=_0x564e33['split'](':')[0x2];for(const _0x46ecc4 of _0x414ce8['getWalker']({'singleCharacters':!0x0})){const _0x4fbdaa=this['_getVidAttributeName'](_0x46ecc4),_0x733ba0='elementEnd'==_0x46ecc4['type']?_0x46ecc4['previousPosition']['path']['slice'](0x0,-0x1):_0x46ecc4['previousPosition']['path'],_0x4a6b61=_0x4ce99a['getNodeByPath'](_0x733ba0)['getAttribute'](_0x4fbdaa);this['_touched']['set'](_0x4a6b61,{'userId':_0x1e8d36});}}}this['_startingRevisionId']=this['_revisionId'];const _0x52c47c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1a2cbc=>!this['_touched']['has'](_0x1a2cbc));let _0x362052=0x0;const _0x3a0731=new Map();for(const _0x4a23ea in _0x3d54cc['diffData']){const _0x2daf80=_0x3d54cc['diffData'][_0x4a23ea]['attachChange'],_0xc3d160=_0x3a4227(_0x3d54cc['diffData'][_0x4a23ea]['attributesAfter'])||{},_0x5d73e2=this['_makeModelFromViewString'](_0x3d54cc['diffData'][_0x4a23ea]['insertions']);_0x5d73e2['rootName']=_0x4a23ea,_0x5d73e2['_isAttached']=!_0x2daf80||_0x2daf80['isAttached'],_0x5d73e2['isAttached']=()=>_0x5d73e2['_isAttached'],this['_diffRoots']['set'](_0x4a23ea,_0x5d73e2),this['_diffRootsAttributes']['set'](_0x4a23ea,_0xc3d160);const _0x313127=this['_makeIdsRoot'](_0x5d73e2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a23ea,_0x313127),_0x3a0731['set'](_0x4a23ea,_0x5d73e2['isAttached']()?_0xc3d160:{});for(const [_0xaa9c8a,_0x3d182d]of _0x5d73e2['markers']){if(!_0xaa9c8a['startsWith']('revision:'))continue;const _0x4419bb=_0xaa9c8a['split'](':')[0x2];for(const _0x27f158 of _0x3d182d['getWalker']({'singleCharacters':!0x0})){const _0x1554cc=this['_getVidAttributeName'](_0x27f158),_0x494504=this['_revisionId']++,_0x249a8b='elementEnd'==_0x27f158['type']?_0x27f158['previousPosition']['path']['slice'](0x0,-0x1):_0x27f158['previousPosition']['path'];_0x313127['getNodeByPath'](_0x249a8b)['_setAttribute'](_0x1554cc,_0x494504),this['_touched']['set'](_0x494504,{'userId':_0x4419bb});}}for(const _0x39197e of this['editor']['model']['createRangeIn'](_0x5d73e2)['getWalker']({'singleCharacters':!0x0})){const _0x4a71fc=this['_getVidAttributeName'](_0x39197e),_0x20a499='elementEnd'==_0x39197e['type']?_0x39197e['previousPosition']['path']['slice'](0x0,-0x1):_0x39197e['previousPosition']['path'],_0x4cb3c3=_0x313127['getNodeByPath'](_0x20a499);_0x4cb3c3['getAttribute'](_0x4a71fc)>0x0||_0x4cb3c3['_setAttribute'](_0x4a71fc,_0x52c47c[_0x362052++]);}for(const [_0x5f403f,_0xd6ff59]of _0x5d73e2['markers'])_0x5f403f['startsWith']('revision:')||this['_markers']['set'](_0x5f403f,_0xd6ff59);}const _0x3eebaa=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3eebaa),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3eebaa,0x1));const _0x1593e8=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1593e8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1593e8,0x1));const _0xb82853=Array['from'](this['_diffRoots'])['map'](([_0x508c70,_0x1626f1])=>[_0x508c70,F(_0x1626f1)]);this['_saveMetaData'](this['_lastTo'],_0xb82853,this['_markers'],_0x3a0731);}['_makeModelFromViewString'](_0x4af316){const _0x495bf7=JSON['parse'](_0x4af316),_0x3d006a=this['editor']['editing']['view']['document'],_0x11b607=new _0x2e98fa(_0x3d006a,_0x495bf7['map'](_0x20b908=>V(_0x20b908,this['editor'])));return this['editor']['data']['toModel'](_0x11b607);}['_saveMetaData'](_0x2d036b,_0x204760,_0x2d15f6,_0x224aa8){const _0x5b3c5d=new Map(_0x204760),_0x5a1c4d=new Map(_0x3a4227(_0x224aa8)),_0xdb8c24=new Map();for(const [_0x5153ff,_0x1c8bc6]of _0x2d15f6)_0xdb8c24['set'](_0x5153ff,{'start':_0x1c8bc6['start']['clone'](),'end':_0x1c8bc6['end']['clone'](),'rootName':_0x1c8bc6['root']['rootName']});this['_savedMetaData']['set'](_0x2d036b,{'roots':_0x5b3c5d,'markers':_0xdb8c24,'rootsAttributes':_0x5a1c4d});}['_removeMetaData'](_0x293970){this['_savedMetaData']['delete'](_0x293970);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1af015,_0x57d8af=null){let _0x28f76b=null;_0x1af015['is']('documentFragment')||(_0x28f76b=new ft(_0x1af015['name'],{'vid_start':null===_0x57d8af?this['_revisionId']++:_0x57d8af++}));const _0x4294ce=[];for(const _0x2af168 of _0x1af015['getChildren']())if(_0x2af168['is']('element')){_0x4294ce['push'](this['_makeIdsRoot'](_0x2af168,_0x57d8af));const _0xaf11e4=_0x4294ce[_0x4294ce['length']-0x1];null!==_0x57d8af&&(_0x57d8af=_0xaf11e4['is']('element','$text')?_0xaf11e4['getAttribute']('vid')+0x1:_0xaf11e4['getAttribute']('vid_end')+0x1);}else{for(let _0x42774d=0x0;_0x42774d<_0x2af168['offsetSize'];_0x42774d++)_0x4294ce['push'](new ft('$text',{'vid':null===_0x57d8af?this['_revisionId']++:_0x57d8af++}));}if(_0x1af015['is']('documentFragment')){const _0x247a42=B(_0x1af015['rootName']);return _0x247a42['_insertChild'](0x0,_0x4294ce),_0x247a42;}return _0x28f76b['_setAttribute']('vid_end',null===_0x57d8af?this['_revisionId']++:_0x57d8af++),_0x28f76b['_insertChild'](0x0,_0x4294ce),_0x28f76b;}['_calculateMetaData'](_0x31665a,_0x498587,_0x1b3063){this['_reset']();const {roots:_0x1f6c4f,markers:_0x277986,rootsAttributes:_0x242788}=this['_savedMetaData']['get'](_0x31665a);this['_baseRoots']=new Map(_0x1f6c4f),this['_baseRootsAttributes']=new Map(_0x3a4227(_0x242788));for(const [_0x29f158,_0x5422cc]of this['_baseRoots'])if('$graveyard'!==_0x29f158&&(this['_diffRoots']['set'](_0x29f158,F(_0x5422cc)),this['_diffRootsAttributes']=new Map(_0x3a4227(_0x242788)),_0x1b3063)){const _0x2c10fa=this['_revisionId'];this['_idsRoots']['set'](_0x29f158,this['_makeIdsRoot'](_0x5422cc)),this['_baseIdsRoots']['set'](_0x29f158,this['_makeIdsRoot'](_0x5422cc,_0x2c10fa));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1b3063&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5d3727,_0x43ee59]of _0x277986){const _0x5c96a7=this['_baseRoots']['get'](_0x43ee59['rootName']),_0x38401e=this['_diffRoots']['get'](_0x43ee59['rootName']),_0x4e6faa=new vt(this['_fixPosition'](_0x43ee59['start'],_0x5c96a7),this['_fixPosition'](_0x43ee59['end'],_0x5c96a7)),_0x648011=this['_fixRange'](_0x4e6faa,_0x38401e);_0x5c96a7['markers']['set'](_0x5d3727,_0x4e6faa),this['_markers']['set'](_0x5d3727,_0x648011);}this['_applyOperations'](_0x31665a,_0x498587,_0x1b3063);}['_applyOperations'](_0xa77fbe,_0x3d3d99,_0x4655d9){for(const _0x497e44 of this['source']['getOperations'](_0xa77fbe,_0x3d3d99))this['_handleOperation'](_0x497e44,_0x4655d9);for(const _0x2b46c3 of this['_diffRoots']['values']())_0x2b46c3['markers']['clear']();for(const [_0x2dd736,_0x4788e1]of this['_markers']){this['_diffRoots']['get'](_0x4788e1['root']['rootName'])['markers']['set'](_0x2dd736,_0x4788e1['clone']());}const _0x446486=new Map(),_0x36c0a6=new Map();for(const [_0x162d7d,_0x142c06]of this['_diffRoots'])_0x446486['set'](_0x162d7d,F(_0x142c06)),_0x36c0a6['set'](_0x162d7d,this['_diffRootsAttributes']['get'](_0x162d7d));this['_saveMetaData'](_0x3d3d99,_0x446486,this['_markers'],_0x36c0a6);}['_getPreviousFrom'](_0x31a238){const _0x363bab=Array['from'](this['_savedMetaData']['keys']());_0x363bab['sort']((_0x1757a6,_0x26b4c7)=>_0x1757a6-_0x26b4c7),_0x363bab['reverse']();for(const _0x2c3654 of _0x363bab)if(_0x2c3654<_0x31a238)return _0x2c3654;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x426412,_0x2f0f8d){const _0x37b646=Array['from'](_0x2f0f8d['markers'])['map'](([_0x39d03b,_0x3d8440])=>[_0x39d03b,this['_fixRange'](_0x3d8440,_0x426412)]);_0x426412['markers']=new Map(_0x37b646);}['_transformMarkers'](_0x5410ec){for(const _0x374ac9 of this['_markers']['values']()){const _0x21fa2c=_0x374ac9['getTransformedByOperation'](_0x5410ec),_0x401466=vt['_createFromRanges'](_0x21fa2c);_0x374ac9['start']=_0x401466['start'],_0x374ac9['end']=_0x401466['end'];}}['_handleOperation'](_0x4c87b5,_0x597c90){if('addRoot'!=_0x4c87b5['type']&&'detachRoot'!=_0x4c87b5['type']){if('insert'==_0x4c87b5['type']){const _0x1e032a=_0x4c87b5['position']['root']['rootName'];this['_diffRoots']['has'](_0x1e032a)||(this['_diffRoots']['set'](_0x1e032a,B(_0x1e032a,!0x0)),this['_diffRootsAttributes']['set'](_0x1e032a,{}),_0x597c90&&this['_idsRoots']['set'](_0x1e032a,B(_0x1e032a,!0x0)));}else{if('addRootAttribute'==_0x4c87b5['type']||'removeRootAttribute'==_0x4c87b5['type']||'changeRootAttribute'==_0x4c87b5['type'])return void this['_handleRootAttributeOperation'](_0x4c87b5);'marker'==_0x4c87b5['type']&&this['_handleMarkerOperation'](_0x4c87b5);}if('marker'!==_0x4c87b5['type']){const _0x270b14=this['_cloneOperation'](_0x4c87b5,this['_diffRoots']);_0x270b14['_execute'](),this['_transformMarkers'](_0x270b14);}if(_0x597c90)switch(_0x4c87b5['type']){case'insert':this['_handleInsertOperation'](_0x4c87b5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c87b5);break;case'merge':this['_handleMergeOperation'](_0x4c87b5);break;case'split':this['_handleSplitOperation'](_0x4c87b5);}}else this['_handleRootOperation'](_0x4c87b5,_0x597c90);}['_cloneOperation'](_0x4d9255,_0x4ed8bf){const _0x2c2329=_0x4d9255['clone']();return _0x2c2329['_authorId']=_0x4d9255['_authorId'],this['_fixOperation'](_0x2c2329,_0x4ed8bf),_0x2c2329;}['_getBaseVids'](_0xd3d793){return _0xd3d793['map'](_0x2f5693=>{const _0x38d86d=this['_getVidAttributeName'](_0x2f5693);return Number(_0x2f5693['item']['getAttribute'](_0x38d86d));});}['_generateTape'](_0x277062,_0x7dfb93){if(_0x277062['is']('element','$text'))_0x7dfb93['push']({'item':_0x277062,'type':'text'});else{_0x277062['is']('element')&&_0x7dfb93['push']({'item':_0x277062,'type':'elementStart'});for(const _0x326980 of _0x277062['getChildren']())this['_generateTape'](_0x326980,_0x7dfb93);_0x277062['is']('element')&&_0x7dfb93['push']({'item':_0x277062,'type':'elementEnd'});}return _0x7dfb93;}['_getState'](){const _0x4c7240=new Map(this['_touched']),_0x42a63d=new Map(_0x4c7240),_0x3eff71=new Map(),_0x40c87e={'insertions':{},'deletions':{}},_0x15d939={'insertions':{},'deletions':{}},_0x22d1d1=new Map(),_0x19035f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x19035f['delete']('$graveyard');for(const _0x1e2ad3 of _0x19035f){const _0x1bcfee=this['_diffRoots']['get'](_0x1e2ad3)||B(_0x1e2ad3,!0x1),_0xbbe5e2=this['_baseRoots']['get'](_0x1e2ad3)||B(_0x1e2ad3,!0x1);_0x1bcfee['isAttached']()||_0xbbe5e2['isAttached']()?(_0x40c87e['insertions'][_0x1e2ad3]=F(_0x1bcfee),_0x40c87e['deletions'][_0x1e2ad3]=F(_0xbbe5e2),this['_copyMarkers'](_0x40c87e['deletions'][_0x1e2ad3],_0xbbe5e2),this['_copyMarkers'](_0x40c87e['insertions'][_0x1e2ad3],_0x1bcfee),_0x15d939['insertions'][_0x1e2ad3]=this['_generateTape'](this['_idsRoots']['get'](_0x1e2ad3),[]),_0x15d939['deletions'][_0x1e2ad3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1e2ad3)||B(_0x1e2ad3,!0x1),[])):_0x19035f['delete'](_0x1e2ad3);}for(const _0x1e8f12 of _0x19035f){const _0x126466=_0x15d939['insertions'][_0x1e8f12];for(const _0x2a24d8 of _0x126466){const _0x39a739=this['_getVidAttributeName'](_0x2a24d8),_0x4fcf9c=_0x2a24d8['item']['getAttribute'](_0x39a739);_0x42a63d['delete'](_0x4fcf9c),_0x4fcf9c>=this['_startingRevisionId']&&_0x3eff71['set'](_0x4fcf9c,_0x4c7240['get'](_0x4fcf9c));}}for(const _0x126007 of _0x19035f){const _0x5e5241=_0x15d939['insertions'][_0x126007],_0x533296=this['_getBaseVids'](_0x15d939['deletions'][_0x126007]);let _0x59b3bf=0x0;for(const _0x3f3752 of _0x5e5241){const _0x28bfc4=this['_getVidAttributeName'](_0x3f3752),_0x32812c=_0x3f3752['item']['getAttribute'](_0x28bfc4);if(!_0x3eff71['has'](_0x32812c)&&!_0x22d1d1['has'](_0x32812c)){if(_0x42a63d['has'](_0x32812c))_0x59b3bf++;else{if(_0x32812c!=_0x533296[_0x59b3bf]){const _0x37a95a=_0x4c7240['get'](_0x32812c)||_0x4c7240['get'](_0x533296[_0x59b3bf]);for(;_0x32812c!=_0x533296[_0x59b3bf];)_0x42a63d['has'](_0x533296[_0x59b3bf])||(_0x22d1d1['set'](_0x533296[_0x59b3bf],_0x37a95a),_0x4c7240['set'](_0x533296[_0x59b3bf],_0x37a95a)),_0x59b3bf++;}_0x59b3bf++;}}}}for(const _0x514a83 of _0x19035f){const _0x104f74=_0x15d939['insertions'][_0x514a83];for(const _0x379b57 of _0x104f74){const _0x205bda=this['_getVidAttributeName'](_0x379b57),_0x425f4a=_0x379b57['item']['getAttribute'](_0x205bda);if(_0x22d1d1['has'](_0x425f4a)){const _0xca62e6=_0x22d1d1['get'](_0x425f4a);_0x42a63d['has'](_0x425f4a)||_0x42a63d['set'](_0x425f4a,{..._0xca62e6}),_0x3eff71['set'](_0x425f4a,{..._0xca62e6});}}}for(const _0x25d110 of _0x42a63d['keys']())_0x25d110>=this['_startingRevisionId']&&_0x42a63d['delete'](_0x25d110);const _0x1a2a2b=new Map();for(const _0x540b10 of _0x19035f){let _0x5f0233=_0x15d939['insertions'][_0x540b10];for(const _0x2fa21e of _0x5f0233)if(_0x2fa21e['item']['is']('element','tableCell')){const _0x2e619f=this['_getVidAttributeName'](_0x2fa21e),_0x587fd5=_0x2fa21e['item']['getAttribute'](_0x2e619f);if(_0x3eff71['has'](_0x587fd5)){const _0x30b7a5=_0x2fa21e['item']['parent']['parent']['getAttribute']('vid_start'),_0x13f7c8=_0x1a2a2b['get'](_0x30b7a5)||new Set();_0x13f7c8['add'](_0x3eff71['get'](_0x587fd5)['userId']),_0x1a2a2b['set'](_0x30b7a5,_0x13f7c8);}}_0x5f0233=_0x15d939['deletions'][_0x540b10];for(const _0x5756e7 of _0x5f0233)if(_0x5756e7['item']['is']('element','tableCell')){const _0x75a770=this['_getVidAttributeName'](_0x5756e7),_0x10806b=_0x5756e7['item']['getAttribute'](_0x75a770);if(_0x42a63d['has'](_0x10806b)){const _0x2b1421=_0x5756e7['item']['parent']['parent']['getAttribute']('vid_start'),_0x1b9257=_0x1a2a2b['get'](_0x2b1421)||new Set();_0x1b9257['add'](_0x42a63d['get'](_0x10806b)['userId']),_0x1a2a2b['set'](_0x2b1421,_0x1b9257);}}for(const _0xbadb30 of _0x1a2a2b['keys']())(_0x3eff71['has'](_0xbadb30)||_0x42a63d['has'](_0xbadb30))&&_0x1a2a2b['delete'](_0xbadb30);}for(const _0x457ef7 of _0x19035f){const _0x35d385=_0x15d939['insertions'][_0x457ef7];let _0x13b85e=null,_0x4f3c07=null;for(const _0x979835 of _0x35d385){const _0x1eea0b=this['_getVidAttributeName'](_0x979835),_0x5e6bee=_0x979835['item']['getAttribute'](_0x1eea0b),_0x408efd=_0x1a2a2b['get'](_0x5e6bee);_0x408efd&&'elementStart'==_0x979835['type']&&(_0x13b85e=Array['from'](_0x408efd)[0x0],_0x4f3c07=_0x979835['item']['getAttribute']('vid_end')),_0x13b85e&&(_0x42a63d['set'](_0x5e6bee,{'userId':_0x13b85e}),_0x3eff71['set'](_0x5e6bee,{'userId':_0x13b85e})),_0x5e6bee==_0x4f3c07&&(_0x13b85e=null,_0x4f3c07=null);}}const _0x4f1525={},_0x54e22d=new Set();for(const _0x58537b of _0x19035f){const _0x279faf=_0x40c87e['deletions'][_0x58537b],_0x42c706=_0x40c87e['insertions'][_0x58537b];for(const {userId:_0xddfe6e}of this['_touchedMarkers']['values']())null!==_0xddfe6e&&_0x54e22d['add'](_0xddfe6e);for(const {userId:_0x5472cf}of this['_touchedRoots']['values']())null!==_0x5472cf&&_0x54e22d['add'](_0x5472cf);this['_markChanges'](_0x42c706,_0x15d939['insertions'][_0x58537b],_0x3eff71,'insertion',_0x54e22d),this['_markChanges'](_0x279faf,_0x15d939['deletions'][_0x58537b],_0x42a63d,'deletion',_0x54e22d),_0x4f1525[_0x58537b]={'insertions':this['_prepareViewToSave'](_0x42c706),'deletions':this['_prepareViewToSave'](_0x279faf),'attachChange':this['_touchedRoots']['get'](_0x58537b)||null,'attributesBefore':_0x3a4227(this['_baseRootsAttributes']['get'](_0x58537b))||{},'attributesAfter':_0x3a4227(this['_diffRootsAttributes']['get'](_0x58537b))};}return{'diffData':_0x4f1525,'authorsIds':Array['from'](_0x54e22d)};}['_processRootBeforeSave'](_0x1be46b){for(const [,_0x1e2034]of _0x1be46b['markers']){const _0x691379=_0x1e2034['start']['getAncestors']()['filter'](_0x3f69e3=>'tableCell'==_0x3f69e3['name']);for(const _0x1f4f74 of _0x691379)0x1==_0x1f4f74['childCount']&&_0x1f4f74['getChild'](0x0)['is']('element','paragraph')&&_0x1f4f74['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2a2621){this['_processRootBeforeSave'](_0x2a2621);const _0x2c79a9=this['editor']['data']['toView'](_0x2a2621,{}),_0x81d1f3=Array['from'](_0x2c79a9['getChildren']())['map'](_0x913e33=>this['_getViewJson'](_0x913e33));return JSON['stringify'](_0x81d1f3);}['_getViewJson'](_0x5d5c35){if(_0x5d5c35['is']('$text'))return _0x5d5c35['data'];{const _0x45aa17=_0x5d5c35;return{'type':Object['keys'](C)['find'](_0x4a347b=>_0x5d5c35 instanceof C[_0x4a347b]),'name':_0x45aa17['name'],'attributes':Array['from'](_0x45aa17['getAttributes']()),'children':Array['from'](_0x45aa17['getChildren']())['map'](_0xfce3f1=>this['_getViewJson'](_0xfce3f1))};}}['_markChanges'](_0x38a60f,_0x45c121,_0x114e9f,_0x4a72cf,_0x5105e3){let _0x5d1907=null,_0x263911=null,_0x11109f=0x0;const _0x444ab8=this['editor']['model'];for(let _0x8c396f=0x0;_0x8c396f<_0x45c121['length'];_0x8c396f++){const _0x858a26=this['_getVidAttributeName'](_0x45c121[_0x8c396f]),_0x396a8e=_0x45c121[_0x8c396f]['item']['getAttribute'](_0x858a26),_0x33b500=_0x114e9f['get'](_0x396a8e),_0xcebf35=_0x8c396f==_0x45c121['length']-0x1;(!_0x5d1907&&_0x33b500&&(_0x5d1907=_0x33b500,_0x263911=_0x45c121[_0x8c396f]),_0x5d1907&&(!_0x33b500||_0x33b500['userId']!=_0x5d1907['userId']))&&(_0x41ac7d(_0x33b500,J(_0x263911,_0x38a60f,_0x444ab8),J(_0x45c121[_0x8c396f],_0x38a60f,_0x444ab8)),_0x5d1907=_0x33b500||null,_0x263911=_0x33b500?_0x45c121[_0x8c396f]:null),_0x5d1907&&_0xcebf35&&_0x41ac7d(_0x33b500,J(_0x263911,_0x38a60f,_0x444ab8),q(_0x45c121[_0x8c396f],_0x38a60f,_0x444ab8));}function _0x41ac7d(_0x417bab,_0x185ad2,_0xb69158){const _0x55a592=_0x5d1907['userId'],_0x83eabb='revision:'+_0x4a72cf+':'+_0x55a592+':'+_0x11109f++,_0x3dde0e=_0x444ab8['createRange'](_0x185ad2,_0xb69158);_0x38a60f['markers']['set'](_0x83eabb,_0x3dde0e),null!==_0x55a592&&_0x5105e3['add'](_0x55a592);}}['_getVidAttributeName'](_0x1b7352){switch(_0x1b7352['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x592162,_0x37acbc){_0x592162['baseVersion']=null;for(const _0x22b13f in _0x592162){const _0x26997e=_0x592162[_0x22b13f];if(_0x26997e instanceof gt){const _0x16a3ed=_0x37acbc['get'](_0x26997e['root']['rootName']);_0x592162[_0x22b13f]=this['_fixPosition'](_0x26997e,_0x16a3ed);}if(_0x26997e instanceof vt){const _0x2d0323=_0x37acbc['get'](_0x26997e['root']['rootName']);_0x592162[_0x22b13f]=this['_fixRange'](_0x26997e,_0x2d0323);}'root'===_0x22b13f&&(_0x592162['root']=_0x37acbc['get'](_0x592162['root']['rootName']));}}['_fixRange'](_0x2477f9,_0x148999){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2477f9['start'],_0x148999),this['_fixPosition'](_0x2477f9['end'],_0x148999));}['_fixPosition'](_0x13169c,_0x395428){return this['editor']['model']['createPositionFromPath'](_0x395428,_0x13169c['path'],_0x13169c['stickiness']);}['_handleInsertOperation'](_0x27f180){const _0x4bacf5=this['_idsRoots']['get'](_0x27f180['position']['root']['rootName']),_0x192a76=this['_fixPosition'](_0x27f180['position'],_0x4bacf5),_0x48c4a4=null===_0x27f180['_authorId']?null:_0x27f180['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d7ece=_0x192a76['parent'],_0xae346=this['_revisionId'],_0x507fed=[];for(const _0x5d779a of _0x27f180['nodes'])if(_0x5d779a['is']('element'))_0x507fed['push'](this['_makeIdsRoot'](_0x5d779a));else{for(let _0x5414a7=0x0;_0x5414a7<_0x5d779a['offsetSize'];_0x5414a7++)_0x507fed['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x167d3d=this['_revisionId'];for(let _0x5c9756=_0xae346;_0x5c9756<_0x167d3d;_0x5c9756++)this['_touched']['set'](_0x5c9756,{'userId':_0x48c4a4});_0x3d7ece['_insertChild'](_0x192a76['offset'],_0x507fed);}['_handleMoveOperation'](_0x99a748){(_0x99a748=this['_cloneOperation'](_0x99a748,this['_idsRoots']))['_execute']();const _0x223f0b=null===_0x99a748['_authorId']?null:_0x99a748['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a8ea0=_0x99a748['getMovedRangeStart'](),_0x1b6612=_0x1a8ea0['parent'],_0x7b95b6=_0x1a8ea0['offset'];!function _0x424328(_0x33baf9,_0x14f637,_0x303641,_0x3fdc9c){for(let _0x497328=_0x303641;_0x497328<_0x3fdc9c;_0x497328++){const _0x53f12f=_0x14f637['getChild'](_0x497328);_0x53f12f['is']('element','$text')?_0x33baf9['set'](_0x53f12f['getAttribute']('vid'),{'userId':_0x223f0b}):(_0x33baf9['set'](_0x53f12f['getAttribute']('vid_start'),{'userId':_0x223f0b}),_0x424328(_0x33baf9,_0x53f12f,0x0,_0x53f12f['childCount']),_0x33baf9['set'](_0x53f12f['getAttribute']('vid_end'),{'userId':_0x223f0b}));}}(this['_touched'],_0x1b6612,_0x7b95b6,_0x7b95b6+_0x99a748['howMany']);}['_handleMergeOperation'](_0x3c901c){const _0x38235a=null===(_0x3c901c=this['_cloneOperation'](_0x3c901c,this['_idsRoots']))['_authorId']?null:_0x3c901c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52a683=_0x3c901c['targetPosition']['parent'],_0x2db74b=_0x3c901c['sourcePosition']['parent'],_0x34a507=_0x52a683['getAttribute']('vid_end'),_0x4587ba=_0x2db74b['getAttribute']('vid_start');_0x52a683['_setAttribute']('vid_end',_0x2db74b['getAttribute']('vid_end')),_0x2db74b['_setAttribute']('vid_end',_0x34a507),this['_touched']['set'](_0x4587ba,{'userId':_0x38235a}),this['_touched']['set'](_0x34a507,{'userId':_0x38235a}),_0x3c901c['_execute']();}['_handleSplitOperation'](_0x568717){const _0x30f492=null===(_0x568717=this['_cloneOperation'](_0x568717,this['_idsRoots']))['_authorId']?null:_0x568717['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28307a=_0x568717['graveyardPosition'],_0x2e4e59=_0x568717['splitPosition']['parent'];_0x568717['_execute']();const _0x22d233=_0x2e4e59['getAttribute']('vid_end'),_0x47865a=_0x568717['insertionPosition']['nodeAfter'];if(_0x28307a){const _0x2ae0e5=_0x47865a['getAttribute']('vid_end'),_0x1a403d=_0x2e4e59['getAttribute']('vid_end');_0x2e4e59['_setAttribute']('vid_end',_0x2ae0e5),_0x47865a['_setAttribute']('vid_end',_0x1a403d),this['_touched']['set'](_0x2e4e59['getAttribute']('vid_end'),{'userId':_0x30f492}),this['_touched']['set'](_0x47865a['getAttribute']('vid_start'),{'userId':_0x30f492});}else{const _0x543914=this['_revisionId']++,_0x2ca295=this['_revisionId']++;_0x2e4e59['_setAttribute']('vid_end',_0x543914),_0x47865a['_setAttribute']('vid_start',_0x2ca295),_0x47865a['_setAttribute']('vid_end',_0x22d233),this['_touched']['set'](_0x543914,{'userId':_0x30f492}),this['_touched']['set'](_0x2ca295,{'userId':_0x30f492});}}['_handleMarkerOperation'](_0x578598){if(!_0x578598['affectsData'])return;const _0x66c57d=(_0x578598=this['_cloneOperation'](_0x578598,this['_diffRoots']))['oldRange']?_0x578598['oldRange']['root']:null,_0x385e77=_0x578598['newRange']?_0x578598['newRange']['root']:null;_0x66c57d&&this['_markers']['delete'](_0x578598['name']),_0x385e77&&this['_markers']['set'](_0x578598['name'],_0x578598['newRange']['clone']());const _0x331172=null===_0x578598['_authorId']?null:_0x578598['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf04736=_0x578598['name'];if(!this['_touchedMarkers']['has'](_0xf04736))return void this['_touchedMarkers']['set'](_0xf04736,{'range':_0x578598['oldRange'],'userId':_0x331172});const _0x1b234f=this['_touchedMarkers']['get'](_0xf04736),_0x1aa4b1=_0x1b234f['range'],_0x3ca423=_0x578598['newRange'];null==_0x1aa4b1&&null==_0x3ca423||_0x1aa4b1&&_0x3ca423&&_0x1aa4b1['isEqual'](_0x3ca423)?this['_touchedMarkers']['delete'](_0x578598['name']):_0x1b234f['userId']=_0x331172;}['_handleRootOperation'](_0x71343d,_0x4560b8){this['_diffRoots']['has'](_0x71343d['rootName'])?this['_diffRoots']['get'](_0x71343d['rootName'])['_isAttached']=_0x71343d['isAdd']:(this['_diffRoots']['set'](_0x71343d['rootName'],B(_0x71343d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x71343d['rootName'],{}),_0x4560b8&&this['_idsRoots']['set'](_0x71343d['rootName'],B(_0x71343d['rootName'],!0x0)));const _0x144b21=null===_0x71343d['_authorId']?null:_0x71343d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39b07a=this['_touchedRoots']['get'](_0x71343d['rootName']);_0x39b07a&&_0x39b07a['userId']===_0x144b21?this['_touchedRoots']['delete'](_0x71343d['rootName']):this['_touchedRoots']['set'](_0x71343d['rootName'],{'userId':_0x144b21,'isAttached':_0x71343d['isAdd']});}['_handleRootAttributeOperation'](_0x24b039){const _0x5542a9=this['_diffRootsAttributes']['get'](_0x24b039['root']['rootName']);null===_0x24b039['newValue']?delete _0x5542a9[_0x24b039['key']]:_0x5542a9[_0x24b039['key']]=_0x24b039['newValue'];}}function F(_0x4254c3){const _0x65babe=B(_0x4254c3['rootName'],_0x4254c3['isAttached']());for(const _0x10bead of _0x4254c3['getChildren']()){const _0x3afca2=_0x10bead['_clone'](!0x0);_0x65babe['_appendChild'](_0x3afca2);}return _0x65babe;}function B(_0x514389,_0x42e14b=!0x0){const _0x55aa41=new wt();return _0x55aa41['rootName']=_0x514389,_0x55aa41['_isAttached']=_0x42e14b,_0x55aa41['isAttached']=()=>_0x55aa41['_isAttached'],_0x55aa41;}function J(_0x2486e7,_0x153fbc,_0x564884){const _0x42653e='elementEnd'==_0x2486e7['type']?_0x564884['createPositionAt'](_0x2486e7['item'],'end'):_0x564884['createPositionBefore'](_0x2486e7['item']);return _0x564884['createPositionFromPath'](_0x153fbc,_0x42653e['path'],_0x42653e['stickiness']);}function q(_0x45e7a3,_0xf066b5,_0x58c7d7){const _0x55ec1f='elementStart'==_0x45e7a3['type']?_0x58c7d7['createPositionAt'](_0x45e7a3['item'],0x0):_0x58c7d7['createPositionAfter'](_0x45e7a3['item']);return _0x58c7d7['createPositionFromPath'](_0xf066b5,_0x55ec1f['path'],_0x55ec1f['stickiness']);}class ns extends _0x229008{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x447d7f,_0x559eb8){super(_0x447d7f),this['focusTracker']=new _0x222fa5(),this['keystrokes']=new _0x1bd166(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x559eb8),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x8bdb45({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x92e8ae=_0x2b205c=>_0x2b205c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x92e8ae),this['keystrokes']['set']('arrowleft',_0x92e8ae),this['keystrokes']['set']('arrowup',_0x92e8ae),this['keystrokes']['set']('arrowdown',_0x92e8ae);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3f5c5f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3f5c5f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x8eeb50){const _0xfea381=new at(this['locale'],_0x204f0c),_0x1f126c=_0xfea381['fieldView'];_0x1f126c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1bcce1=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x8eeb50&&(_0x1bcce1+='\x20('+R(this['locale'],'optional')+')'),(_0xfea381['label']=_0x1bcce1,_0x1f126c['on']('input',()=>{this['revisionNameInputValue']=_0x1f126c['element']['value']['trim']();}),_0xfea381);}}class u extends _0x52ad62{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3e8886=this['editor'],_0x3e14ef=_0x3e8886['plugins']['get']('RevisionTracker');_0x3e8886['ui']['componentFactory']['add']('revisionHistory',_0x5b270f=>{const _0x18f247=_0xc86235(_0x5b270f),_0x4aec5e=_0x18f247['panelView']['children'],_0x49d938=new te(_0x5b270f),_0x16c643=new _0x389bc6(_0x5b270f),_0x2be8f3=new _0x51179d(_0x5b270f),_0x273a09=new _0x389bc6(_0x5b270f),_0x101204=new _0x51179d(_0x5b270f);return _0x18f247['bind']('isEnabled')['to'](_0x3e14ef,'isReady',_0x3e14ef,'isEnabled',_0x3e8886,'isReadOnly',(_0x454923,_0x458265,_0x3e1c7b)=>_0x454923&&_0x458265&&!_0x3e1c7b),_0x18f247['buttonView']['set']({'icon':_0x598ba3['history'],'label':R(_0x5b270f,'Revision\x20history'),'tooltip':!0x0}),_0x2be8f3['set']({'label':R(_0x5b270f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2be8f3['bind']('isEnabled')['to'](_0x3e14ef,'isReady',_0x3e14ef,'isEnabled',_0x3e8886,'isReadOnly',(_0x16d8fb,_0xd0a1e5,_0x1c8131)=>_0x16d8fb&&_0xd0a1e5&&!_0x1c8131),_0x2be8f3['on']('execute',()=>this['_showDialog']()),_0x101204['set']({'label':R(_0x5b270f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x101204['bind']('isEnabled')['to'](_0x3e14ef,'isReady',_0x3e8886,'isReadOnly',(_0x20f5fb,_0x4e1099)=>_0x20f5fb&&!_0x4e1099),_0x101204['on']('execute',()=>{_0x3e8886['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x18f247['isOpen']=!0x1,_0x3e8886['editing']['view']['focus']();}),_0x16c643['children']['add'](_0x2be8f3),_0x273a09['children']['add'](_0x101204),_0x49d938['role']='menu',_0x49d938['items']['addMany']([_0x16c643,_0x273a09]),_0x4aec5e['add'](_0x49d938),_0x18f247;}),_0x3e8886['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x54d80e=this['editor'],_0x51262e=_0x54d80e['locale'],_0x321a64=new _0x673cc(_0x51262e),_0x1a6c8b=new _0xea0e98(_0x51262e);_0x321a64['buttonView']['set']({'icon':_0x598ba3['history'],'label':R(_0x51262e,'Revision\x20history')});const _0x1885b1=new _0x50d7c3(_0x51262e,_0x321a64),_0x2b8709=new _0x3abf6d(_0x51262e);_0x2b8709['set']({'label':R(_0x51262e,'Save\x20current\x20revision')}),_0x2b8709['delegate']('execute')['to'](_0x321a64),_0x2b8709['on']('execute',()=>{this['_showDialog']();}),_0x1885b1['children']['add'](_0x2b8709),_0x1a6c8b['items']['add'](_0x1885b1);const _0x551693=new _0x50d7c3(_0x51262e,_0x321a64),_0x2fefe2=new _0x3abf6d(_0x51262e);return _0x2fefe2['set']({'label':R(_0x51262e,'Open\x20revision\x20history')}),_0x2fefe2['delegate']('execute')['to'](_0x321a64),_0x2fefe2['on']('execute',()=>{_0x54d80e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x551693['children']['add'](_0x2fefe2),_0x1a6c8b['items']['add'](_0x551693),_0x321a64['panelView']['children']['add'](_0x1a6c8b),_0x321a64;}['_showDialog'](){const _0x7a8305=this['editor'],_0x5e28e6=_0x7a8305['locale'],_0xace6b1=_0x7a8305['plugins']['get']('Dialog'),_0x64c74c=_0x7a8305['plugins']['get']('RevisionTracker');function _0xb2adcb(_0x1717d5){_0x7a8305['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1717d5['revisionName']?_0x1717d5['revisionNameInputView']['errorText']=R(_0x5e28e6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x7a8305['plugins']['get'](l)['saveRevision']({'name':_0x1717d5['revisionName']}),_0xace6b1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xb2adcb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xace6b1['show']({'id':'revisionSave','title':R(_0x5e28e6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x7a8305['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xace6b1['hide']()},{'label':R(_0x7a8305['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x57a075){_0x57a075['bind']('isEnabled')['to'](_0x64c74c,'isReady',_0x64c74c,'isEnabled',_0x7a8305,'isReadOnly',(_0x3a4a8d,_0x517d6f,_0x289fd1)=>_0x3a4a8d&&_0x517d6f&&!_0x289fd1);},'onExecute':()=>_0xb2adcb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5982e1=this['editor'],_0x2c2fab=_0x5982e1['locale'];this['_saveRevisionFormView']=new ns(_0x2c2fab,_0x5982e1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x229008{['changeId'];['_model'];constructor(_0x27a942,_0x50a507){super(_0x27a942),this['_model']=_0x50a507,this['changeId']=_0x50a507['id'];const _0x102bd1=this['bindTemplate'],_0x3838c0=R(_0x27a942,_0x50a507['data']['isSuggestion']?'Suggested\x20by':'add'==_0x50a507['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x50a507['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x102bd1['to']('type',_0xfdde46=>'ck-revision-change__'+_0xfdde46)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3838c0}]},{'text':'\x20'+_0x50a507['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x35ab5a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4d77c9){super(),this['id']=_0x4d77c9['id']||_0x164885(),this['author']=_0x4d77c9['author'],this['type']=_0x4d77c9['type'],this['data']=_0x4d77c9['data']||{},this['rootName']=_0x4d77c9['rootName'],this['set']('createdAt',_0x4d77c9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xc7d9e0,_0x3f8d0d){this['newRevisionId']=_0xc7d9e0,this['oldRevisionId']=_0x3f8d0d,this['changes']=new _0x22f9c7();}['_setChanges'](_0x4fe247){for(const _0x4f4ee3 of _0x4fe247)this['changes']['add'](_0x4f4ee3);}}const Z={'c':_0x268df4,'a':_0x3d4e27,'e':_0x4b27ee,'r':_0x29b634,'u':_0x24fb36};class d extends _0x52ad62{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3253b4,_0x5a3b48,j];}constructor(_0x127cf8){super(_0x127cf8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3ccd78,_0x5a2f76,_0x536abf)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x406297=>{for(const _0xd89717 of this['editor']['editing']['view']['document']['roots'])_0x536abf?_0x406297['removeClass']('ck-editor__editable__overlay',_0xd89717):_0x406297['addClass']('ck-editor__editable__overlay',_0xd89717);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a64ac=>null!==_0x3a64ac),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x404e5d,_0x3c6165,_0x2a2349)=>_0x404e5d&&_0x2a2349?_0x3c6165['changes']['getIndex'](_0x2a2349):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4b074c,_0x511c79)=>_0x4b074c?_0x511c79['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5a3b48);}['init'](){const _0x3ddc26=this['editor'],_0xf3ffb3=new bt(_0x3ddc26,{'direction':'backward'}),_0x2f3e4a=new bt(_0x3ddc26,{'direction':'forward'});(_0x3ddc26['commands']['add']('showPreviousChange',_0xf3ffb3),_0x3ddc26['commands']['add']('showNextChange',_0x2f3e4a),_0x3ddc26['commands']['add']('restoreRevision',new yt(_0x3ddc26)),this['on']('change:numberOfChanges',()=>{_0xf3ffb3['refresh'](),_0x2f3e4a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3ddc26['enableReadOnlyMode']('revision-viewer'),_0x3ddc26['plugins']['has']('WidgetToolbarRepository'))&&_0x3ddc26['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2d5f2f){await this['loadRevisionData'](_0x2d5f2f);const _0x33b72e={};for(const _0x5bc3ce in _0x2d5f2f['diffData']){if(_0x2d5f2f['diffData'][_0x5bc3ce]['attachChange']&&!_0x2d5f2f['diffData'][_0x5bc3ce]['attachChange']['isAttached'])continue;const _0x182425=this['_removeRevisionMarkers'](JSON['parse'](_0x2d5f2f['diffData'][_0x5bc3ce]['insertions'])),_0x5ec68a=this['editor']['editing']['view']['document'],_0x1da982=new _0x2e98fa(_0x5ec68a,_0x182425['map'](_0x2cc215=>this['_getViewObj'](_0x2cc215)));this['editor']['data']['processor']['useFillerType']('marked'),_0x33b72e[_0x5bc3ce]=this['editor']['data']['processor']['toData'](_0x1da982),this['editor']['data']['processor']['useFillerType']('default');}return _0x33b72e;}async['getRevisionRootsAttributes'](_0x486108){await this['loadRevisionData'](_0x486108);const _0x43641f={};for(const _0x3c1506 in _0x486108['diffData'])_0x486108['diffData'][_0x3c1506]['attachChange']&&!_0x486108['diffData'][_0x3c1506]['attachChange']['isAttached']||(_0x43641f[_0x3c1506]=_0x486108['diffData'][_0x3c1506]['attributesAfter']||{});return _0x43641f;}['_removeRevisionMarkers'](_0x1212c7){return(_0x1212c7=_0x1212c7['filter'](_0x567bf3=>!_0x567bf3['name']||'revision-start'!==_0x567bf3['name']&&'revision-end'!==_0x567bf3['name']))['forEach'](_0x30f2e9=>{'string'!=typeof _0x30f2e9&&(_0x30f2e9['children']=this['_removeRevisionMarkers'](_0x30f2e9['children']),_0x30f2e9['attributes']=_0x30f2e9['attributes']['filter'](_0x16f770=>!_0x16f770[0x0]['startsWith']('data-revision-')));}),_0x1212c7;}async['compare'](_0x54e24c,_0x5cbf7e,_0x44c3b7=!0x1){if(!this['isEnabled'])return;const _0x1bc183=this['diff'],_0x59a28b=this['repository'],_0x150f1e='string'==typeof _0x54e24c?_0x59a28b['getRevision'](_0x54e24c):_0x54e24c,_0x4f646d='string'==typeof _0x5cbf7e?_0x59a28b['getRevision'](_0x5cbf7e):_0x5cbf7e,_0x56e7f9=_0x150f1e['id'],_0x3ecd65=_0x4f646d?_0x4f646d['id']:null;if(!_0x44c3b7&&this['diff']&&this['diff']['newRevisionId']===_0x56e7f9&&this['diff']['oldRevisionId']===_0x3ecd65)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x56e7f9,_0x3ecd65);const _0x7f793b=this['_getRevisionsRange'](_0x150f1e,_0x4f646d,!0x0)['map'](_0x50cc97=>this['loadRevisionData'](_0x50cc97));return _0x7f793b['push'](new Promise(_0x5b204d=>{setTimeout(_0x5b204d,0x14);})),Promise['all'](_0x7f793b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x387f8b=this['_getDiff'](_0x56e7f9,_0x3ecd65);for(const _0x39e9b8 of _0x387f8b['changes'])this['_changeIdToChange']['set'](_0x39e9b8['id'],_0x39e9b8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x31b692=>{for(const _0x54c20a of this['editor']['model']['document']['getRootNames']())_0x31b692['detachRoot'](_0x54c20a);for(const _0x42cab3 of Object['keys'](_0x387f8b['model'])){const _0x92c818=_0x31b692['addRoot'](_0x42cab3);for(const _0x2368a7 of Object['keys'](_0x387f8b['attributes'][_0x42cab3]))_0x31b692['setAttribute'](_0x2368a7,_0x387f8b['attributes'][_0x42cab3][_0x2368a7],_0x92c818);_0x31b692['insert'](_0x387f8b['model'][_0x42cab3],_0x92c818,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x387f8b['changes'])),this['isReady']=!0x0;})['catch'](_0x154fb4=>{console['error'](_0x154fb4),this['_cleanUp'](),_0x1bc183&&(this['diff']=_0x1bc183),this['isReady']=!0x0;});}['addRevisionData'](_0x50b00e,_0x150929){const _0x31742f=this['repository']['createRevision'](_0x50b00e);return _0x31742f['on']('_update',(_0x3fc620,_0xcb02cd,_0x56f38e)=>_0x150929(_0xcb02cd,_0x56f38e,_0x31742f)),this['repository']['addRevision'](_0x31742f),_0x31742f;}['loadRevisionData'](_0xb78310){if(!_0xb78310||_0xb78310['diffData'])return Promise['resolve']();{const _0x34e9bc=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x34e9bc,'revisionId':_0xb78310['id']})['then'](_0x44baee=>{_0xb78310['_update']({'diffData':_0x44baee['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc98d36=>{for(const _0x1fae2a of this['editor']['model']['document']['getRootNames']())_0xc98d36['detachRoot'](_0x1fae2a);});}['_sortAndFilterDiffChanges'](_0x2d956c){const _0x2a188a=[],_0xda41d9=new Map();for(const _0x592c1f of this['editor']['model']['document']['getRootNames']()){const _0x29a0d9=this['editor']['editing']['view']['getDomRoot'](_0x592c1f);if(!_0x29a0d9)continue;const _0x31fcc9=_0x29a0d9['getClientRects']()['item'](0x0);_0x31fcc9&&(_0x2a188a['push'](_0x592c1f),_0xda41d9['set'](_0x592c1f,_0x31fcc9));}return _0x2a188a['sort']((_0x4fc9a2,_0x36afb4)=>{const _0x4733fc=_0xda41d9['get'](_0x4fc9a2),_0x4a9405=_0xda41d9['get'](_0x36afb4);return _0x4733fc['y']-_0x4a9405['y']||_0x4733fc['x']-_0x4a9405['x'];}),(_0x2d956c=_0x2d956c['filter'](_0x47dcee=>_0x2a188a['includes'](_0x47dcee['rootName'])))['sort']((_0x361a51,_0x1a29ba)=>_0x2a188a['indexOf'](_0x361a51['rootName'])-_0x2a188a['indexOf'](_0x1a29ba['rootName'])),_0x2d956c;}['_makeTape'](_0x2a0bcd){const _0x42cedf=Array['from'](_0x2a0bcd['markers'])['filter'](([_0x5efbcd,_0xc5d2db])=>_0x5efbcd['startsWith']('revision:')&&!_0xc5d2db['isCollapsed']),_0x27e014=Array['from'](this['editor']['model']['createRangeIn'](_0x2a0bcd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42cedf['length'])for(const _0x3b1078 of _0x27e014){const [_0x5a708b,_0x184772]=_0x42cedf[0x0],[,_0x18ff7c,_0x3dd504]=_0x5a708b['split'](':');if(_0x184772['end']['isEqual'](_0x3b1078['nextPosition'])&&_0x42cedf['shift'](),(_0x3b1078['previousPosition']['isEqual'](_0x184772['start'])||_0x3b1078['previousPosition']['isAfter'](_0x184772['start']))&&('insertion'==_0x18ff7c?_0x3b1078['isAdded']={'userId':_0x3dd504}:'deletion'==_0x18ff7c&&(_0x3b1078['isRemoved']={'userId':_0x3dd504})),0x0==_0x42cedf['length'])break;}return _0x27e014;}['_refreshStartEndIndex'](_0x178447){const _0xf2a180=new Map();for(let _0x38604f=0x0;_0x38604f<_0x178447['length'];_0x38604f++)'text'===_0x178447[_0x38604f]['type']?(_0x178447[_0x38604f]['item']['startIndex']=_0x38604f,_0x178447[_0x38604f]['item']['endIndex']=_0x38604f):('elementStart'===_0x178447[_0x38604f]['type']?_0x178447[_0x38604f]['item']['startIndex']=_0x38604f:'elementEnd'===_0x178447[_0x38604f]['type']&&(_0x178447[_0x38604f]['item']['endIndex']=_0x38604f),_0xf2a180['set'](_0x178447[_0x38604f]['id'],_0x38604f));for(const _0x55c0d9 of _0xf2a180['values']())'elementStart'===_0x178447[_0x55c0d9]['type']?_0x178447[_0x55c0d9]['item']['endIndex']=_0xf2a180['get'](_0x178447[_0x55c0d9]['pairId']):'elementEnd'===_0x178447[_0x55c0d9]['type']&&(_0x178447[_0x55c0d9]['item']['startIndex']=_0xf2a180['get'](_0x178447[_0x55c0d9]['pairId']));}['_processTape'](_0x1c8d53){for(let _0x264835=0x0;_0x264835<_0x1c8d53['length'];_0x264835++){if('elementStart'===_0x1c8d53[_0x264835]['type'])_0x1c8d53[_0x264835]['item']['startIndex']=_0x264835;else{if('elementEnd'===_0x1c8d53[_0x264835]['type']){_0x1c8d53[_0x264835]['item']['endIndex']=_0x264835;const _0x525c9a=_0x1c8d53[_0x264835]['item']['startIndex'];_0x1c8d53[_0x525c9a]['pairId']=_0x1c8d53[_0x264835]['id'],_0x1c8d53[_0x264835]['pairId']=_0x1c8d53[_0x525c9a]['id'];}else _0x1c8d53[_0x264835]['item']['startIndex']=_0x264835,_0x1c8d53[_0x264835]['item']['endIndex']=_0x264835,_0x1c8d53[_0x264835]['pairId']=null;}_0x1c8d53[_0x264835]['markersStart']||(_0x1c8d53[_0x264835]['markersStart']=[],_0x1c8d53[_0x264835]['markersEnd']=[]);}}['_markInsertions'](_0x266e06,_0x19b4f0){const _0x2b9eb8=_0x266e06['filter'](_0x3f6e92=>!_0x3f6e92['isAdded']);for(let _0x4aa20d=0x0;_0x4aa20d<_0x19b4f0['length'];_0x4aa20d++)_0x19b4f0[_0x4aa20d]['isAdded']&&(_0x2b9eb8[_0x4aa20d]['isAdded']=_0x19b4f0[_0x4aa20d]['isAdded']);}['_makeModelFromViewString'](_0x1f7d36){const _0x2c662c=JSON['parse'](_0x1f7d36),_0x3abcf6=this['editor']['editing']['view']['document'],_0x6fd841=new _0x2e98fa(_0x3abcf6,_0x2c662c['map'](_0x10d3a2=>this['_getViewObj'](_0x10d3a2)));return this['editor']['data']['toModel'](_0x6fd841);}['_getViewObj'](_0x1dcfb9){const _0x873391=this['editor']['editing']['view']['document'];if('string'==typeof _0x1dcfb9)return new _0x40d627(_0x873391,_0x1dcfb9);{const _0x4e473d=_0x1dcfb9['children']['map'](_0x5aed3c=>this['_getViewObj'](_0x5aed3c));return new(Z[_0x1dcfb9['type']]||_0x6f249f)(_0x873391,_0x1dcfb9['name'],_0x1dcfb9['attributes'],_0x4e473d);}}['_getDiff'](_0x4d7147,_0x545013=null){const _0x2f874c=this['repository']['getRevision'](_0x4d7147),_0x455040=_0x545013?this['repository']['getRevision'](_0x545013):null,_0x26a67d=this['_getRevisionsRange'](_0x2f874c,_0x455040),_0x257bed=_0x26a67d[_0x26a67d['length']-0x1],_0x2ec312=new Map(),_0x2c3244={'model':{},'attributes':{},'changes':[]},_0x497a1a=new Set(),_0x2d408f=new Map();for(let _0x2fc518=_0x26a67d['length']-0x1;_0x2fc518>=0x0;_0x2fc518--){const _0x3ecc88=_0x26a67d[_0x2fc518];for(const _0x2fd8c7 of Object['keys'](_0x3ecc88['diffData']))if(_0x3ecc88['diffData'][_0x2fd8c7]['attachChange']){const _0xae9c97=_0x3ecc88['diffData'][_0x2fd8c7]['attachChange'];_0xae9c97['isAttached']?(_0x497a1a['add'](_0x2fd8c7),_0x2d408f['has'](_0x2fd8c7)&&_0x2d408f['get'](_0x2fd8c7)['userId']==_0xae9c97['userId']?_0x2d408f['delete'](_0x2fd8c7):_0x2d408f['set'](_0x2fd8c7,_0xae9c97)):_0x2d408f['has'](_0x2fd8c7)?(_0x497a1a['delete'](_0x2fd8c7),_0x2d408f['delete'](_0x2fd8c7)):(_0x497a1a['add'](_0x2fd8c7),_0x2d408f['set'](_0x2fd8c7,_0xae9c97));}else _0x497a1a['add'](_0x2fd8c7);}for(const _0x39bdca of _0x497a1a){const _0x57c7c8=_0x2d408f['has'](_0x39bdca)&&!_0x2d408f['get'](_0x39bdca)['isAttached'];let _0x2c4692=_0x57c7c8?_0x26a67d['length']-0x1:0x0;const _0x3dd56b=_0x57c7c8?-0x1:0x1;for(;_0x26a67d[_0x2c4692];){const _0x4bcf35=_0x26a67d[_0x2c4692];if(_0x4bcf35['diffData'][_0x39bdca]){const _0x3c72b1=_0x57c7c8?_0x4bcf35['diffData'][_0x39bdca]['attributesBefore']:_0x4bcf35['diffData'][_0x39bdca]['attributesAfter'];_0x2c3244['attributes'][_0x39bdca]=_0x3c72b1?_0x3a4227(_0x3c72b1):{};break;}_0x2c4692+=_0x3dd56b;}}for(const _0x1cbfea of _0x26a67d){_0x1cbfea['model']={};for(const _0x5b66c7 of _0x1cbfea['authors'])_0x2ec312['set'](_0x5b66c7['id'],_0x5b66c7);for(const _0x19f0b6 of _0x497a1a){const _0x24718f=_0x1cbfea['diffData'][_0x19f0b6]?_0x1cbfea['diffData'][_0x19f0b6]['insertions']:'[]',_0x17a875=_0x1cbfea['diffData'][_0x19f0b6]?_0x1cbfea['diffData'][_0x19f0b6]['deletions']:'[]';_0x1cbfea['model'][_0x19f0b6]={'insertions':this['_makeModelFromViewString'](_0x24718f),'deletions':this['_makeModelFromViewString'](_0x17a875)};}}for(const _0x354a0a of _0x497a1a){let _0x374897=null,_0x4d96a9=0x0;const _0x370d1f=new Map(Array['from'](_0x2f874c['model'][_0x354a0a]['insertions']['markers'])['filter'](([_0xf21265])=>!_0xf21265['startsWith']('revision:')));let _0x116339=0x0;for(const _0x4b9142 of _0x26a67d){const _0x1febbf=this['_makeTape'](_0x4b9142['model'][_0x354a0a]['insertions']);_0x4b9142==_0x2f874c?(_0x374897=_0x1febbf,_0x4d96a9=_0x374897['length'],_0x374897['forEach'](_0x47ed1b=>{_0x47ed1b['id']=_0x116339++;}),this['_processTape'](_0x374897)):this['_markInsertions'](_0x374897,_0x1febbf);const _0x3505c2=_0x374897['filter'](_0x4fed64=>!_0x4fed64['isAdded'])['map'](_0x47a163=>_0x47a163['id']);let _0x410cfc=0x0;const _0x368f7f=this['_makeTape'](_0x4b9142['model'][_0x354a0a]['deletions']);_0x368f7f['forEach'](_0x2f9cc1=>{_0x2f9cc1['isRemoved']?_0x2f9cc1['id']=_0x4d96a9++:_0x2f9cc1['id']=_0x3505c2[_0x410cfc++];}),this['_processTape'](_0x368f7f),this['_setDistance'](_0x374897,'isAdded'),this['_setDistance'](_0x368f7f,'isRemoved'),_0x4b9142==_0x2f874c&&this['_markMarkers'](_0x374897,_0x370d1f),_0x374897=this['_joinTapes'](_0x374897,_0x368f7f),this['_refreshStartEndIndex'](_0x374897),this['_setDistance'](_0x374897,'isRemoved');}_0x374897=_0x374897['filter'](_0x545475=>!(_0x545475['isAdded']&&_0x545475['isRemoved']));const _0x5eb6c4=new Map(_0x257bed['model'][_0x354a0a]['deletions']['markers']),_0x36346b=new Set(_0x370d1f['keys']());for(const _0x1a91b7 of _0x5eb6c4['keys']())_0x36346b['delete'](_0x1a91b7);this['_markSuggestions'](_0x374897,_0x36346b),this['_fixObsoleteTags'](_0x374897),_0x374897=this['_removeMissingPairs'](_0x374897),_0x374897=this['_markMismatchedRemovedTags'](_0x374897),_0x374897=this['_removeUnsupportedChanges'](_0x374897);const {root:_0x503d71,changes:_0x26c8e4}=this['_makeModelFromTape'](_0x374897,_0x2ec312,_0x354a0a);_0x2c3244['model'][_0x354a0a]=_0x503d71;const _0x2a8063=_0x2d408f['get'](_0x354a0a);if(_0x2a8063){const _0x7f1eed=_0x2ec312['get'](_0x2a8063['userId']),_0x2e3da2=new r({'author':_0x7f1eed,'type':_0x2a8063['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x354a0a});_0x26c8e4['unshift'](_0x2e3da2),_0x2c3244['attributes'][_0x354a0a]['revisionHistoryAttachChange']=_0x2e3da2['id'];}_0x2c3244['changes']=_0x2c3244['changes']['concat'](_0x26c8e4);}return _0x2c3244;}['_markMarkers'](_0x2db18c,_0x36e165){for(let _0x12a8b3=0x0;_0x12a8b3<_0x2db18c['length'];_0x12a8b3++)for(const [_0x1be767,_0x5e4e6c]of _0x36e165)_0x5e4e6c['start']['isEqual'](_0x2db18c[_0x12a8b3]['previousPosition'])&&_0x2db18c[_0x12a8b3]['markersStart']['push'](_0x1be767),_0x5e4e6c['end']['isEqual'](_0x2db18c[_0x12a8b3]['nextPosition'])&&_0x2db18c[_0x12a8b3]['markersEnd']['push'](_0x1be767);}['_joinTapes'](_0x53230f,_0x9079a){let _0x18bb0c=[],_0x303f77=0x0,_0x5d72de=0x0;for(;_0x303f77<_0x53230f['length']||_0x5d72de<_0x9079a['length'];){const _0x5cf298=_0x53230f[_0x303f77]||{},_0x3937f1=_0x9079a[_0x5d72de]||{};if(_0x5cf298['id']==_0x3937f1['id'])_0x303f77++,_0x5d72de++,_0x18bb0c['push'](_0x5cf298);else{if(_0x3937f1['isRemoved']&&_0x5cf298['isAdded']){const {commonTape:_0x5e38fa,iEnd:_0x46db7d,jEnd:_0x34fe83}=this['_threeWayMerge'](_0x53230f,_0x303f77,_0x9079a,_0x5d72de);_0x18bb0c=_0x18bb0c['concat'](_0x5e38fa),_0x303f77=_0x46db7d,_0x5d72de=_0x34fe83;}else _0x3937f1['isRemoved']?(_0x5d72de++,_0x18bb0c['push'](_0x3937f1)):(_0x303f77++,_0x18bb0c['push'](_0x5cf298));}}return _0x18bb0c;}['_markSuggestions'](_0x5250f9,_0xefc817){const _0x521b5e=[];for(let _0x536642=0x0;_0x536642<_0x5250f9['length'];_0x536642++){for(let _0x17bb32=0x0;_0x17bb32<_0x5250f9[_0x536642]['markersStart']['length'];_0x17bb32++){const _0xb0ded2=_0x5250f9[_0x536642]['markersStart'][_0x17bb32];if(!_0xefc817['has'](_0xb0ded2))continue;const {group:_0xcd62e1,type:_0x595af4,authorId:_0xed3077}=_0x5106ea(_0xb0ded2);'revision-suggestion'!=_0xcd62e1||'insertion'!=_0x595af4&&'deletion'!=_0x595af4||(_0x521b5e['unshift']({'type':_0x595af4,'name':_0xb0ded2,'userId':_0xed3077}),_0x5250f9[_0x536642]['markersStart']['splice'](_0x17bb32,0x1),_0x17bb32--);}_0x3ff427(_0x5250f9[_0x536642]);for(let _0x50db6e=0x0;_0x50db6e<_0x5250f9[_0x536642]['markersEnd']['length'];_0x50db6e++){const _0x390dfe=_0x5250f9[_0x536642]['markersEnd'][_0x50db6e];if(!_0xefc817['has'](_0x390dfe))continue;const {group:_0x48408c,type:_0x44d313}=_0x5106ea(_0x390dfe);if('revision-suggestion'!=_0x48408c||'insertion'!=_0x44d313&&'deletion'!=_0x44d313)continue;_0x5250f9[_0x536642]['markersEnd']['splice'](_0x50db6e,0x1),_0x50db6e--;const _0xa71649=_0x521b5e['findIndex'](_0x220b53=>_0x220b53['name']==_0x390dfe);_0xa71649>-0x1&&_0x521b5e['splice'](_0xa71649,0x1);}}function _0x5106ea(_0x1de9c4){const _0x1b82f1=_0x1de9c4['split'](':');return{'group':_0x1b82f1[0x0],'type':_0x1b82f1[0x1],'subType':_0x1b82f1['length']>=0x5?_0x1b82f1[0x2]:null,'id':_0x1b82f1['length']<0x5?_0x1b82f1[0x2]:_0x1b82f1[0x3],'authorId':_0x1b82f1['length']<0x5?_0x1b82f1[0x3]:_0x1b82f1[0x4],'markerCount':0x6==_0x1b82f1['length']?_0x1b82f1[0x5]:null};}function _0x3ff427(_0x2aae67){for(let _0x36d055=0x0;_0x36d055<_0x521b5e['length'];_0x36d055++){if(_0x2aae67['isAdded']&&'insertion'==_0x521b5e[_0x36d055]['type'])return _0x2aae67['isAddSuggestion']=_0x521b5e[_0x36d055],void delete _0x2aae67['isAdded'];if(!_0x2aae67['isAdded']&&!_0x2aae67['isRemoved']&&'deletion'==_0x521b5e[_0x36d055]['type'])return void(_0x2aae67['isRemoveSuggestion']=_0x521b5e[_0x36d055]);}}}['_setDistance'](_0x4046c7,_0x452375){let _0x44514b=0x0,_0x348536=!0x1;const _0xa6dcae=new Map();for(const _0xfc4321 of _0x4046c7)_0xfc4321[_0x452375]?_0x348536&&(_0x44514b++,_0x348536=!0x1):(_0x44514b++,_0x348536=!0x0),_0xa6dcae['set'](_0xfc4321['id'],_0x44514b);for(let _0x217055=0x0;_0x217055<_0x4046c7['length'];_0x217055++){if('isRemoved'==_0x452375&&_0x4046c7[_0x217055]['isAdded']||'isAdded'==_0x452375&&_0x4046c7[_0x217055]['isRemoved'])continue;if('text'==_0x4046c7[_0x217055]['type']){_0x4046c7[_0x217055]['distance']=0x0;continue;}const _0x4bc6b2=_0xa6dcae['get'](_0x4046c7[_0x217055]['pairId']),_0x2147fd=_0xa6dcae['get'](_0x4046c7[_0x217055]['id']);_0x4046c7[_0x217055]['distance']=_0x4bc6b2-_0x2147fd;}}['_getRevisionsRange'](_0x3ec4e0,_0x56aa22,_0x21d734=!0x1){const _0xe380c5=[];let _0x2e3074=this['repository']['getIndex'](_0x3ec4e0),_0xb59aa3=this['repository']['getIndex'](_0x56aa22);for(-0x1==_0xb59aa3&&(_0xb59aa3=this['repository']['_revisions']['length'],_0x21d734=!0x1);_0x2e3074<_0xb59aa3;)_0xe380c5['push'](this['repository']['getRevision'](_0x2e3074)),_0x2e3074++;return _0x21d734&&_0xe380c5['push'](this['repository']['getRevision'](_0x2e3074)),_0xe380c5;}['_threeWayMerge'](_0x156bca,_0x50e3d7,_0x300a9a,_0x5a45db){const _0x91e44d=this['editor']['model']['schema'];let _0x168d20=_0x50e3d7;for(;_0x156bca[_0x168d20]&&_0x156bca[_0x168d20]['isAdded'];)_0x168d20++;let _0x55f86c=_0x5a45db;for(;_0x300a9a[_0x55f86c]&&_0x300a9a[_0x55f86c]['isRemoved'];)_0x55f86c++;_0x2b8441(_0x156bca,_0x50e3d7,_0x168d20),_0x2b8441(_0x300a9a,_0x5a45db,_0x55f86c);const _0x21c95f=_0x300a9a['slice'](_0x5a45db,_0x55f86c)['concat'](_0x156bca['slice'](_0x50e3d7,_0x168d20));return _0x21c95f['sort']((_0x5745cd,_0x21f3b7)=>_0x5745cd['side']!=_0x21f3b7['side']?_0x5745cd['side']-_0x21f3b7['side']:_0x5745cd['level']!=_0x21f3b7['level']?_0x5745cd['level']-_0x21f3b7['level']:_0x5745cd['distance']!=_0x21f3b7['distance']?_0x21f3b7['distance']-_0x5745cd['distance']:!!_0x5745cd['isAdded']!=!!_0x21f3b7['isAdded']?-0x1==_0x5745cd['side']||0x0==_0x5745cd['side']?_0x5745cd['isAdded']?-0x1:0x1:_0x5745cd['isAdded']?0x1:-0x1:_0x5745cd['index']-_0x21f3b7['index']),{'commonTape':_0x21c95f,'iEnd':_0x168d20,'jEnd':_0x55f86c};function _0x2b8441(_0x418dbd,_0x55eb40,_0x3eec28){let _0x102e6b=-0x1,_0x20521e=Number['POSITIVE_INFINITY'],_0x3dfc0a=!0x0;for(let _0x10cb7c=_0x55eb40;_0x10cb7c<_0x3eec28;_0x10cb7c++)if(_0x91e44d['isInline'](_0x418dbd[_0x10cb7c]['item'])||(_0x3dfc0a=!0x1),_0x418dbd[_0x10cb7c]['item']['startIndex']<_0x55eb40&&(_0x102e6b=_0x10cb7c),_0x418dbd[_0x10cb7c]['item']['endIndex']>=_0x3eec28){_0x20521e=_0x10cb7c;break;}_0x3dfc0a&&(_0x102e6b=_0x3eec28-0x1);for(let _0x22339d=_0x55eb40;_0x22339d<_0x3eec28;_0x22339d++)_0x418dbd[_0x22339d]['side']=_0x22339d<=_0x102e6b?-0x1:_0x22339d<_0x20521e?0x0:0x1,_0x418dbd[_0x22339d]['index']=_0x22339d;let _0x2d5b0e=0x0;for(let _0x3528e6=_0x55eb40;_0x3528e6<=_0x102e6b;_0x3528e6++)0x0==_0x418dbd[_0x3528e6]['distance']?_0x418dbd[_0x3528e6]['level']=_0x2d5b0e:(_0x2d5b0e++,_0x418dbd[_0x3528e6]['level']=_0x2d5b0e,_0x2d5b0e++);for(let _0x495af2=_0x55eb40;_0x495af2<_0x3eec28;_0x495af2++)0x0==_0x418dbd[_0x495af2]['side']&&(_0x418dbd[_0x495af2]['level']=_0x2d5b0e);_0x2d5b0e=0x0;for(let _0x4c9584=_0x3eec28-0x1;_0x4c9584>=_0x20521e;_0x4c9584--)0x0==_0x418dbd[_0x4c9584]['distance']?_0x418dbd[_0x4c9584]['level']=_0x2d5b0e:(_0x2d5b0e--,_0x418dbd[_0x4c9584]['level']=_0x2d5b0e,_0x2d5b0e--);}}['_fixObsoleteTags'](_0x47045a){const _0x2e9a4d=new Map(),_0xb0a391=this['editor']['model']['schema'];for(let _0x1ec2bd=0x1;_0x1ec2bd<_0x47045a['length'];_0x1ec2bd++){let _0x297873,_0x287632,_0x46f1bb;const _0x3b6349=_0x47045a[_0x1ec2bd],_0x4685d2=_0x47045a[_0x1ec2bd-0x1];if('text'==_0x3b6349['type'])continue;if(_0x3b6349['type']!=_0x4685d2['type'])continue;if(!_0xb0a391['isBlock'](_0x4685d2['item'])||_0xb0a391['isLimit'](_0x4685d2['item']))continue;if(!_0xb0a391['isBlock'](_0x3b6349['item'])||_0xb0a391['isLimit'](_0x3b6349['item']))continue;if((_0x47045a[_0x1ec2bd]['isAdded']||_0x47045a[_0x1ec2bd]['isAddSuggestion'])&&_0x47045a[_0x1ec2bd-0x1]['isRemoved'])_0x297873=_0x47045a[_0x1ec2bd],_0x287632=_0x47045a[_0x1ec2bd-0x1],_0x46f1bb=_0x1ec2bd-0x1;else{if(!_0x47045a[_0x1ec2bd]['isRemoved']||!_0x47045a[_0x1ec2bd-0x1]['isAdded']&&!_0x47045a[_0x1ec2bd-0x1]['isAddSuggestion'])continue;_0x297873=_0x47045a[_0x1ec2bd-0x1],_0x287632=_0x47045a[_0x1ec2bd],_0x46f1bb=_0x1ec2bd;}const _0x1f59cb=_0x297873['level']==_0x287632['level'],_0x4ed6e4=Math['abs'](_0x297873['level'])<Math['abs'](_0x287632['level'])&&0x0==_0x287632['distance'];(_0x1f59cb||_0x4ed6e4)&&(_0x2e9a4d['set'](_0x287632['id'],_0x297873['id']),_0x47045a['splice'](_0x46f1bb,0x1),_0x1ec2bd--,_0x297873['isAdded']=!0x1);}for(let _0x230cdd=0x0;_0x230cdd<_0x47045a['length'];_0x230cdd++)_0x2e9a4d['has'](_0x47045a[_0x230cdd]['pairId'])&&(_0x47045a[_0x230cdd]['pairId']=_0x2e9a4d['get'](_0x47045a[_0x230cdd]['pairId']));}['_removeMissingPairs'](_0x4d870c){const _0x26896e=new Set(_0x4d870c['map'](_0x401865=>_0x401865['id']));for(let _0x514966=0x0;_0x514966<_0x4d870c['length'];_0x514966++)_0x26896e['has'](_0x4d870c[_0x514966]['pairId'])||0x0==_0x4d870c[_0x514966]['distance']||(_0x4d870c[_0x514966]['isIncorrect']=!0x0);return _0x4d870c['filter'](_0x463f7b=>!_0x463f7b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35fd0d){const _0x2fde3a=new Set();for(let _0x44ce88=0x0;_0x44ce88<_0x35fd0d['length'];_0x44ce88++){if(_0x2fde3a['has'](_0x35fd0d[_0x44ce88]['id'])&&_0x35fd0d[_0x44ce88]['isRemoved']&&(_0x35fd0d[_0x44ce88]['isIncorrect']=!0x0),_0x35fd0d[_0x44ce88]['isIncorrect'])continue;if(0x0==_0x35fd0d[_0x44ce88]['distance'])continue;if('elementStart'!=_0x35fd0d[_0x44ce88]['type'])continue;if(null==_0x35fd0d[_0x44ce88]['pairId'])continue;let _0x5c1c57=_0x44ce88+0x1,_0x115607=0x0;for(;_0x35fd0d[_0x5c1c57]['id']!=_0x35fd0d[_0x44ce88]['pairId'];)'elementStart'==_0x35fd0d[_0x5c1c57]['type']?_0x115607++:'elementEnd'==_0x35fd0d[_0x5c1c57]['type']&&_0x115607--,_0x5c1c57++;if(0x0!=_0x115607){if(_0x35fd0d[_0x44ce88]['isRemoved'])_0x35fd0d[_0x44ce88]['isIncorrect']=!0x0;else{for(;_0x5c1c57!=_0x44ce88;)_0x35fd0d[_0x5c1c57]['isRemoved']&&0x0!=_0x35fd0d[_0x5c1c57]['distance']&&(_0x35fd0d[_0x5c1c57]['isIncorrect']=!0x0,_0x2fde3a['add'](_0x35fd0d[_0x5c1c57]['pairId'])),_0x5c1c57--;}}}return _0x35fd0d['filter'](_0x16a7be=>!_0x16a7be['isIncorrect']);}['_removeUnsupportedChanges'](_0x4f077e){const _0x3613dd=this['editor']['model']['schema'];for(let _0x456da7=0x0;_0x456da7<_0x4f077e['length'];_0x456da7++){if(!(_0x4f077e[_0x456da7]['isAdded']||_0x4f077e[_0x456da7]['isAddSuggestion']||_0x4f077e[_0x456da7]['isRemoved']||_0x4f077e[_0x456da7]['isRemoveSuggestion']))continue;if(0x0==_0x4f077e[_0x456da7]['distance'])continue;const _0x4a7841=_0x4f077e[_0x456da7]['item'];_0x3613dd['isBlock'](_0x4a7841)||_0x3613dd['isLimit'](_0x4a7841)||(_0x4f077e[_0x456da7]['isAdded']&&delete _0x4f077e[_0x456da7]['isAdded'],_0x4f077e[_0x456da7]['isAddSuggestion']&&delete _0x4f077e[_0x456da7]['isAddSuggestion'],_0x4f077e[_0x456da7]['isRemoveSuggestion']&&delete _0x4f077e[_0x456da7]['isRemoveSuggestion'],_0x4f077e[_0x456da7]['isRemoved']&&(_0x4f077e[_0x456da7]['isIncorrect']=!0x0));}return _0x4f077e['filter'](_0x521b24=>!_0x521b24['isIncorrect']);}['_makeModelFromTape'](_0x41f66b,_0x633e6c,_0x107a0e){const _0x32fbca=new wt(),_0x54d10e=[],_0x145ebc=new Map(),_0x725121=this['editor']['model'],_0x5a4a83=_0x725121['schema'],_0x271188=[_0x32fbca],_0x2fd940={},_0xc9db77={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5cd6a0=null;const _0x15f723=[0x0];for(let _0x407f9e=0x0;_0x407f9e<_0x41f66b['length'];_0x407f9e++)if('elementStart'===_0x41f66b[_0x407f9e]['type']){_0x41f66b[_0x407f9e]['previousPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723);const _0x4e891c=new ft(_0x41f66b[_0x407f9e]['item']['name'],_0x41f66b[_0x407f9e]['item']['getAttributes']());_0x271188[0x0]['_appendChild'](_0x4e891c),_0x15f723['push'](0x0),_0x271188['unshift'](_0x4e891c),_0x41f66b[_0x407f9e]['nextPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723);}else'elementEnd'===_0x41f66b[_0x407f9e]['type']?(_0x271188['shift'](),_0x41f66b[_0x407f9e]['previousPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723),_0x15f723['pop'](),_0x15f723[_0x15f723['length']-0x1]++,_0x41f66b[_0x407f9e]['nextPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723)):(_0x41f66b[_0x407f9e]['previousPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723),_0x5cd6a0?_0x5cd6a0['_data']+=_0x41f66b[_0x407f9e]['item']['data']:_0x5cd6a0=new _t(_0x41f66b[_0x407f9e]['item']['data'],_0x41f66b[_0x407f9e]['item']['getAttributes']()),_0x41f66b[_0x407f9e+0x1]&&'text'===_0x41f66b[_0x407f9e+0x1]['type']&&_0x168ace(_0x5cd6a0,_0x41f66b[_0x407f9e+0x1]['item'])||(_0x271188[0x0]['_appendChild'](_0x5cd6a0),_0x5cd6a0=null),_0x15f723[_0x15f723['length']-0x1]+=_0x41f66b[_0x407f9e]['item']['offsetSize'],_0x41f66b[_0x407f9e]['nextPosition']=_0x725121['createPositionFromPath'](_0x32fbca,_0x15f723));for(let _0x162f0b=0x0;_0x162f0b<_0x41f66b['length'];_0x162f0b++){const _0x3540a9=_0x41f66b[_0x162f0b]['previousPosition'],_0x1c1e7e=_0x41f66b[_0x162f0b]['nextPosition'];for(const _0x442c39 of _0x41f66b[_0x162f0b]['markersStart'])_0x145ebc['set'](_0x442c39,{'start':_0x3540a9,'end':null});_0x538789('isRemoveSuggestion',_0x162f0b,_0x3540a9,_0x1c1e7e),_0x538789('isAddSuggestion',_0x162f0b,_0x3540a9,_0x1c1e7e),_0x538789('isRemoved',_0x162f0b,_0x3540a9,_0x1c1e7e),_0x538789('isAdded',_0x162f0b,_0x3540a9,_0x1c1e7e);for(const _0x2e9c17 of _0x41f66b[_0x162f0b]['markersEnd']){_0x145ebc['get'](_0x2e9c17)['end']=_0x1c1e7e;}}for(const [_0xf77e12,_0x43a10e]of _0x145ebc){const _0x4eab1a=this['editor']['model']['createRange'](_0x43a10e['start'],_0x43a10e['end']);_0x32fbca['markers']['set'](_0xf77e12,_0x4eab1a);}return _0x54d10e['sort']((_0x2c6faf,_0x483cf1)=>{const _0x5eb749=_0x32fbca['markers']['get']('revision:'+_0x2c6faf['id']),_0x265dfd=_0x32fbca['markers']['get']('revision:'+_0x483cf1['id']);return _0x5eb749['start']['isBefore'](_0x265dfd['start'])?-0x1:_0x5eb749['start']['isAfter'](_0x265dfd['start'])?0x1:_0x5eb749['end']['isBefore'](_0x265dfd['end'])?-0x1:_0x5eb749['end']['isAfter'](_0x265dfd['end'])?0x1:'add'===_0x2c6faf['type']?-0x1:0x1;}),{'root':_0x32fbca,'changes':_0x54d10e};function _0x538789(_0x5004b7,_0x4f911c,_0x3d10a2,_0x257553){const _0x9e4d8c=!!_0x41f66b[_0x4f911c][_0x5004b7],_0x5f481c=_0x9e4d8c?_0x41f66b[_0x4f911c][_0x5004b7]['userId']:null,_0x5ed344=_0x4f911c===_0x41f66b['length']-0x1,_0x35662c=_0xc9db77[_0x5004b7][0x0],_0x12548a=_0x5a4a83['isObject'](_0x41f66b[_0x4f911c]['item']);!_0x2fd940[_0x5004b7]&&_0x9e4d8c?_0x2fd940[_0x5004b7]={'start':_0x3d10a2,'tapeItem':_0x41f66b[_0x4f911c],'userId':_0x5f481c,'type':_0x5004b7}:_0x2fd940[_0x5004b7]&&!_0x9e4d8c?(_0x2fd940[_0x5004b7]['end']=_0x3d10a2,_0x3ee062(_0x2fd940[_0x5004b7]),_0x2fd940[_0x5004b7]=null):_0x2fd940[_0x5004b7]&&_0x9e4d8c&&_0x2fd940[_0x5004b7]['userId']!==_0x5f481c&&(_0x2fd940[_0x5004b7]['end']=_0x3d10a2,_0x35662c&&_0x35662c['userId']===_0x2fd940[_0x5004b7]['userId']||_0x3ee062(_0x2fd940[_0x5004b7]),_0x2fd940[_0x5004b7]={'start':_0x3d10a2,'tapeItem':_0x41f66b[_0x4f911c],'userId':_0x5f481c,'type':_0x5004b7}),_0x2fd940[_0x5004b7]&&_0x12548a&&('elementStart'!==_0x41f66b[_0x4f911c]['type']||_0x35662c&&_0x35662c['userId']===_0x5f481c||_0xc9db77[_0x5004b7]['unshift']({'userId':_0x5f481c,'object':_0x41f66b[_0x4f911c]['item'],'change':_0x2fd940[_0x5004b7]}),'elementEnd'===_0x41f66b[_0x4f911c]['type']&&_0x35662c&&_0x35662c['object']===_0x41f66b[_0x4f911c]['item']&&(_0xc9db77[_0x5004b7]['shift'](),_0x2fd940[_0x5004b7]=_0x35662c['change'])),_0x2fd940[_0x5004b7]&&_0x5ed344&&(_0x2fd940[_0x5004b7]['end']=_0x257553,_0x3ee062(_0x2fd940[_0x5004b7]),_0x2fd940[_0x5004b7]=null);}function _0x3ee062({start:_0x598b4f,end:_0x5f22d5,tapeItem:_0x282cd2,userId:_0x35248a,type:_0x41b1ca}){const _0x5b7d55=_0x282cd2['item'],_0x413f7b=_0x725121['schema']['isBlock'](_0x5b7d55)&&!_0x725121['schema']['isLimit'](_0x5b7d55),_0x215aa6=_0x598b4f['nodeAfter']==_0x5f22d5['parent']&&_0x5f22d5['isAtStart'];if(_0x413f7b&&_0x215aa6)return;const _0x426608=_0x725121['createRange'](_0x598b4f,_0x5f22d5),_0xe0c98a=_0x633e6c['get'](_0x35248a),_0x2b1159=new r({'author':_0xe0c98a,'type':'isAdded'==_0x41b1ca||'isAddSuggestion'==_0x41b1ca?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x41b1ca||'isRemoveSuggestion'==_0x41b1ca},'createdAt':new Date(),'rootName':_0x107a0e});_0x54d10e['push'](_0x2b1159),_0x32fbca['markers']['set']('revision:'+_0x2b1159['id'],_0x426608);}function _0x168ace(_0x742086,_0x88a9e1){const _0x57f005=_0x742086['getAttributes'](),_0x58e624=_0x88a9e1['getAttributes']();for(const _0x2ff9dd of _0x57f005){if(_0x2ff9dd[0x1]!==_0x88a9e1['getAttribute'](_0x2ff9dd[0x0]))return!0x1;_0x58e624['next']();}return _0x58e624['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1f890c=>{const _0x5f54ba=_0x1f890c['markerName']['split'](':')[0x1],_0xf30852=this['_getChangeFromId'](_0x5f54ba);if(!_0xf30852)return null;const _0x422900='add'==_0xf30852['type']?'insertion':'deletion',_0x211b3b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x422900];return _0xf30852['data']['isSuggestion']&&_0x211b3b['push']('ck-suggestion-marker-'+_0x422900+'-new'),this['activeChange']==_0xf30852&&_0x211b3b['push']('ck-suggestion-marker--active'),{'classes':_0x211b3b,'attributes':{'data-change-id':_0x5f54ba}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x9a3fbd=>{_0x9a3fbd['on']('element:pre',(_0x389fc1,_0xb9a0d5,_0x48de55)=>{const _0x34b4fa=_0xb9a0d5['viewItem']['getChild'](0x0);if(!_0x34b4fa||!_0x34b4fa['is']('element','code'))return;if(!_0x48de55['consumable']['consume'](_0x34b4fa,{'attributes':['vid_start','vid_end']}))return;const _0x26ad79=_0xb9a0d5['modelRange']['start']['nodeAfter'];_0x48de55['writer']['setAttribute']('vid_start',_0x34b4fa['getAttribute']('vid_start'),_0x26ad79),_0x48de55['writer']['setAttribute']('vid_end',_0x34b4fa['getAttribute']('vid_end'),_0x26ad79);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x49eeb8=>{_0x49eeb8['on']('element',(_0x1c560d,_0x5947f4,_0x1b1b99)=>{if(!_0x1b1b99['consumable']['consume'](_0x5947f4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5947f4['modelRange']['isCollapsed'])return;const _0x2b9281=_0x5947f4['modelRange']['start']['nodeAfter'];_0x2b9281['hasAttribute']('vid_start')||_0x2b9281['hasAttribute']('vid')||(_0x1b1b99['writer']['setAttribute']('vid_start',_0x5947f4['viewItem']['getAttribute']('vid_start'),_0x2b9281),_0x1b1b99['writer']['setAttribute']('vid_end',_0x5947f4['viewItem']['getAttribute']('vid_end'),_0x2b9281));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x57a0b9=>_0x57a0b9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x24511b,[,_0x459b30])=>{['vid_start','vid_end','vid']['includes'](_0x459b30)&&(_0x24511b['return']=!0x0,_0x24511b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b3b15=>{_0x2b3b15['on']('attribute:vid',(_0x43d2e5,_0xa59f92,_0x457299)=>{if('\x20'!=_0xa59f92['item']['data']||_0xa59f92['item']['parent']['maxOffset']>0x1)return;if(!_0x457299['consumable']['consume'](_0xa59f92['item'],_0x43d2e5['name']))return;const _0x33a147=_0x457299['writer'],_0x579eff=_0x457299['mapper']['toViewRange'](_0xa59f92['range']);_0x33a147['wrap'](_0x579eff,_0x33a147['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4618a0){const _0x3b9358=_0x4618a0['plugins']['get']('RevisionViewer');return(_0x5c1a86,_0x58a403,_0x1f8c08)=>{const _0x2c92b8=_0x58a403['markerName']['split'](':')[0x1],_0x2385ca=_0x3b9358['_getChangeFromId'](_0x2c92b8);if(!_0x2385ca)return null;const _0x591618='add'==_0x2385ca['type']?'split':'merge';if(!_0x1f8c08['consumable']['test'](_0x58a403['markerRange'],_0x5c1a86['name']))return;const _0x1ba67c=_0x58a403['markerRange']['getWalker'](),_0x3d1254=_0x58a403['markerRange']['start'],_0x1a0d3e=_0x4618a0['model']['schema'];let _0x3ab36a=null,_0x235832=null,_0xffc7d3=!0x1,_0x9ef38f=!0x1;for(const _0x4285f6 of _0x1ba67c){const _0x400945=_0x4285f6['item'];_0xffc7d3=_0xffc7d3||_0x1a0d3e['isContent'](_0x400945);const _0x3bbf35=_0x1f8c08['mapper']['toViewElement'](_0x400945);if(_0x3bbf35&&_0x3bbf35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4285f6['type']&&(_0x1a0d3e['isBlock'](_0x400945)&&!_0x1a0d3e['isLimit'](_0x400945)&&(_0x400945['nextSibling']||_0x3d1254['isAtEnd']?_0x3ab36a&&_0x3ab36a['parent']==_0x400945||(_0x3ab36a=_0x400945,_0x4363b2(_0x4285f6['previousPosition']),_0x9ef38f=!0x0):_0x235832=_0x235832||_0x4285f6['previousPosition']));}function _0x4363b2(_0x508d93){const _0x497e18=_0x1f8c08['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x591618}),_0x2c5683=_0x1f8c08['mapper']['toViewPosition'](_0x508d93);_0x2385ca['data']['isSuggestion']&&_0x1f8c08['writer']['addClass']('ck-suggestion-marker-'+_0x591618+'-new',_0x497e18),_0x3b9358['activeChange']==_0x2385ca&&_0x1f8c08['writer']['addClass']('ck-suggestion-marker--active',_0x497e18),_0x1f8c08['writer']['insert'](_0x2c5683,_0x497e18),_0x1f8c08['mapper']['bindElementToMarker'](_0x497e18,_0x58a403['markerName']);}_0xffc7d3||_0x9ef38f||!_0x235832||_0x4363b2(_0x235832);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3fe67b,_0xe45e95,_0xa517c2)=>{const _0x4e5d65=_0xa517c2['mapper']['markerNameToElements'](_0xe45e95['markerName']);if(_0x4e5d65){for(const _0x4ff4f8 of _0x4e5d65)(_0x4ff4f8['hasClass']('ck-suggestion-marker-split')||_0x4ff4f8['hasClass']('ck-suggestion-marker-merge'))&&(_0xa517c2['mapper']['unbindElementFromMarkerName'](_0x4ff4f8,_0xe45e95['markerName']),_0xa517c2['writer']['remove'](_0x4ff4f8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x23f1a9,_0x1d5bf9,_0x3f04b9)=>{const _0x5b720a=_0x1d5bf9['markerName']['split'](':')[0x1],_0x1eb5c4=this['_getChangeFromId'](_0x5b720a);if(!_0x1eb5c4)return null;const _0x5e143e='add'==_0x1eb5c4['type']?'split':'merge';if(_0x3f04b9['consumable']['test'](_0x1d5bf9['markerRange'],_0x23f1a9['name']))for(const _0x1e1a57 of _0x1d5bf9['markerRange']['getItems']()){if(!_0x1e1a57['is']('element','softBreak'))continue;const _0x39ca57=_0x3f04b9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e143e}),_0x1e3cbc=_0x3f04b9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1e1a57));_0x1eb5c4['data']['isSuggestion']&&_0x3f04b9['writer']['addClass']('ck-suggestion-marker-'+_0x5e143e+'-new',_0x39ca57),this['activeChange']==_0x1eb5c4&&_0x3f04b9['writer']['addClass']('ck-suggestion-marker--active',_0x39ca57),_0x3f04b9['writer']['insert'](_0x1e3cbc,_0x39ca57),_0x3f04b9['mapper']['bindElementToMarker'](_0x39ca57,_0x1d5bf9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3127ff=>{for(const _0x330f5d of this['editor']['model']['document']['getRootNames']()){const _0x4b1279=this['editor']['model']['document']['getRoot'](_0x330f5d),_0x95a32=this['editor']['editing']['view']['document']['getRoot'](_0x330f5d);if(_0x95a32){const _0x4ada09=_0x4b1279['getAttribute']('revisionHistoryAttachChange');if(_0x3127ff['removeAttribute']('data-change-id',_0x95a32),_0x3127ff['removeClass']('ck-revision-history-root-add',_0x95a32),_0x3127ff['removeClass']('ck-revision-history-root-remove',_0x95a32),_0x3127ff['removeClass']('ck-revision-history-root--active',_0x95a32),_0x4ada09){const _0x5aaa4d=this['_getChangeFromId'](_0x4ada09);if(!_0x5aaa4d)return null;_0x3127ff['setAttribute']('data-change-id',_0x4ada09,_0x95a32),_0x3127ff['addClass']('ck-revision-history-root-'+_0x5aaa4d['type'],_0x95a32),this['activeChange']==_0x5aaa4d&&_0x3127ff['addClass']('ck-revision-history-root--active',_0x95a32);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x297d70=>'revision-comment:'+_0x297d70,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3750b7=>'revision-suggestion:'+_0x3750b7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34a643=>({'name':'suggestion:'+_0x34a643,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x548a6b=>{const _0x125882=_0x548a6b['markerName']['split'](':')[0x1];return'insertion'!=_0x125882&&'deletion'!=_0x125882?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x125882]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2990b4,_0x38233a,_0xa562ba)=>{const _0x2a8e7b=_0xa562ba['mapper']['markerNameToElements'](_0x38233a['markerName']);if(_0x2a8e7b){for(const _0x1d01d5 of _0x2a8e7b)_0x1d01d5['is']('uiElement')&&(_0xa562ba['mapper']['unbindElementFromMarkerName'](_0x1d01d5,_0x38233a['markerName']),_0xa562ba['writer']['remove'](_0x1d01d5));}},{'priority':'high'});}['_getChangeFromId'](_0x39590c){return this['_changeIdToChange']['get'](_0x39590c);}['_getViewForChange'](_0x566b16){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x566b16),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x50693e,_0x449eec,_0x205a5f,_0x29169c)=>{_0x29169c&&this['_balloon']['remove'](_0x29169c),_0x205a5f&&(this['_balloon']['add']({'view':_0x205a5f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4439e7=this['editor']['editing'],_0x3c2c44=this['_getChangeFromId'](_0x205a5f['changeId']);let _0x50eba3;if(_0x3c2c44['data']['isOnRoot']){const _0x1c6da9=_0x4439e7['view']['getDomRoot'](_0x3c2c44['rootName']);_0x50eba3=Array['from'](_0x1c6da9['getClientRects']());}else{const _0x1191c0=this['editor']['model']['markers']['get']('revision:'+_0x205a5f['changeId']);_0x50eba3=Array['from'](_0x4439e7['mapper']['markerNameToElements'](_0x1191c0['name']))['map'](_0x4b31f3=>_0x4439e7['view']['domConverter']['mapViewToDom'](_0x4b31f3))['map'](_0x1a3aa0=>Array['from'](_0x1a3aa0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x50eba3[0x0];return _0x50eba3['find'](_0x16c16c=>_0x16c16c['top']-0x3<=this['_activeViewTarget']['y']&&_0x16c16c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x16c16c['left']-0x3<=this['_activeViewTarget']['x']&&_0x16c16c['right']+0x3>=this['_activeViewTarget']['x'])||_0x50eba3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2ed4b1,_0x20a46c,_0x10384d,_0x54493d)=>{this['activeView']=_0x10384d?this['_getViewForChange'](_0x10384d):null,this['editor']['model']['change'](()=>{const _0x595128=this['editor']['editing'];_0x54493d&&(_0x54493d['data']['isOnRoot']?_0x595128['view']['change'](_0x40dcd0=>{_0x40dcd0['removeClass']('ck-revision-history-root--active',_0x595128['view']['document']['getRoot'](_0x54493d['rootName']));}):_0x595128['reconvertMarker']('revision:'+_0x54493d['id'])),_0x10384d&&(_0x10384d['data']['isOnRoot']?_0x595128['view']['change'](_0x4dba08=>{_0x4dba08['addClass']('ck-revision-history-root--active',_0x595128['view']['document']['getRoot'](_0x10384d['rootName']));}):_0x595128['reconvertMarker']('revision:'+_0x10384d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1ac97d,_0x308aa6)=>{if(this['activeChange'])return;const _0x55957a=this['_findChangeIdFromDomTarget'](_0x308aa6['target']),_0x27b2f5=this['_changeIdToChange']['get'](_0x55957a);_0x27b2f5?(this['_activeViewTarget']={'x':_0x308aa6['domEvent']['x'],'y':_0x308aa6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27b2f5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4a4728,_0x5d7883)=>{const _0x3da5b9=this['_findChangeIdFromDomTarget'](_0x5d7883['target']),_0x1b66e5=this['_changeIdToChange']['get'](_0x3da5b9);_0x1b66e5?(this['_activeViewTarget']={'x':_0x5d7883['domEvent']['x'],'y':_0x5d7883['domEvent']['y']},_0x1b66e5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1b66e5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x107a10){do{const _0x54a3bc=_0x107a10['getAttribute']('data-change-id');if(_0x54a3bc)return _0x54a3bc;_0x107a10=_0x107a10['parent'];}while(_0x107a10);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3e4dd6=>{for(const _0x5d41d6 of this['editor']['model']['markers'])_0x3e4dd6['removeMarker'](_0x5d41d6);});}}function tt(_0x549df3,_0x14128c){return(_0x4b8514,_0x438a4a,_0x7200ad)=>{if(!_0x7200ad['consumable']['test'](_0x438a4a['markerRange'],_0x4b8514['name']))return;const _0x102066=_0x438a4a['markerRange']['getWalker'](),_0x1a34f4=_0x438a4a['markerRange']['start'],_0x1d2b6a=_0x549df3['model']['schema'];let _0x113f1f=null,_0x1c0f8b=null,_0x603e89=!0x1,_0x56dc9b=!0x1;for(const _0x25fdda of _0x102066){const _0x12b428=_0x25fdda['item'];_0x603e89=_0x603e89||_0x1d2b6a['isContent'](_0x12b428);const _0x5c06e0=_0x7200ad['mapper']['toViewElement'](_0x12b428);if(_0x5c06e0&&_0x5c06e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25fdda['type']&&(_0x1d2b6a['isBlock'](_0x12b428)&&!_0x1d2b6a['isLimit'](_0x12b428)&&(_0x12b428['nextSibling']||_0x1a34f4['isAtEnd']?_0x113f1f&&_0x113f1f['parent']==_0x12b428||(_0x113f1f=_0x12b428,_0x50f298(_0x25fdda['previousPosition']),_0x56dc9b=!0x0):_0x1c0f8b=_0x1c0f8b||_0x25fdda['previousPosition']));}function _0x50f298(_0x550dd4){const _0x119cf7=_0x7200ad['mapper']['toViewPosition'](_0x550dd4),_0x4887b1=_0x7200ad['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14128c});_0x7200ad['writer']['insert'](_0x119cf7,_0x4887b1),_0x7200ad['mapper']['bindElementToMarker'](_0x4887b1,_0x438a4a['markerName']);}_0x603e89||_0x56dc9b||!_0x1c0f8b||_0x50f298(_0x1c0f8b);};}class yt extends _0x5c5c03{constructor(_0x115f1d){super(_0x115f1d);const _0x45fef1=_0x115f1d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x45fef1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x45fef1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x58d9f2=this['editor'],_0x557bf4=_0x58d9f2['plugins']['get'](d),_0x56980b=_0x557bf4['isReady']?_0x557bf4['diff']['newRevisionId']:null;_0x58d9f2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x56980b);}['refresh'](){const {isReady:_0x28783b,isEnabled:_0x1f2b82}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x28783b&&_0x1f2b82;}}class bt extends _0x5c5c03{['_step'];constructor(_0x495f18,{direction:_0x4e476b}){super(_0x495f18);const _0x45ddaa=_0x495f18['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4e476b?0x1:-0x1,this['listenTo'](_0x45ddaa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x45ddaa,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x45ddaa,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5018b5=this['editor'],_0x15c33c=_0x5018b5['plugins']['get'](d),{isNavigationMode:_0x336a60,currentChangeNumber:_0xb1cb3a}=_0x15c33c;let _0x5424d0;if(_0x15c33c['activeChange']=_0x336a60?_0x15c33c['diff']['changes']['get'](_0xb1cb3a+this['_step']):_0x15c33c['diff']['changes']['first'],_0x15c33c['activeChange']['data']['isOnRoot'])_0x5424d0=_0x5018b5['editing']['view']['getDomRoot'](_0x15c33c['activeChange']['rootName']);else{const _0x1b57aa=_0x5018b5['model']['markers']['get']('revision:'+_0x15c33c['activeChange']['id']);_0x5424d0=_0x556edb(_0x5018b5['editing'],_0x1b57aa);}_0x49616c({'target':_0x5424d0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x13fee1,currentChangeNumber:_0x260e58,numberOfChanges:_0x28bb70,isReady:_0x419a22,isEnabled:_0x193804}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x193804&&_0x419a22&&_0x28bb70)&&(!_0x13fee1||(0x1===this['_step']?_0x260e58<_0x28bb70-0x1:_0x260e58>0x0));}}class _i extends _0x229008{constructor(_0x3877e3){super(_0x3877e3);const _0x2593aa=this['bindTemplate'],_0x394116=new _0x51179d(_0x3877e3),_0x488e3b=new _0x51179d(_0x3877e3);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',(_0x102330,_0x11b114)=>_0x102330&&_0x11b114>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x14e6cc,_0x3801a3,_0x388c33,_0x1af6d6)=>{if(!_0x14e6cc)return R(_0x3877e3,'Loading...');if(!_0x388c33)return R(_0x3877e3,'No\x20changes');const _0x57a354=R(_0x3877e3,'NUMBER_OF_CHANGES',_0x388c33);return _0x1af6d6?R(_0x3877e3,'X_OF_Y_CHANGES',[_0x3801a3+0x1,_0x388c33]):_0x57a354;}),_0x394116['set']({'label':R(_0x3877e3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x488e3b['set']({'label':R(_0x3877e3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x394116['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x488e3b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x394116['on']('execute',()=>this['fire']('execute','backward')),_0x488e3b['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',_0x2593aa['if']('_isStatusLabelVisible','ck-hidden',_0x5b7f50=>!_0x5b7f50)]},'children':[{'text':_0x2593aa['to']('isNavigationMode',_0x5225e3=>_0x5225e3?R(_0x3877e3,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3877e3,'Total')+':\x20')}]},{'text':_0x2593aa['to']('_statusText')}]},new _0x86f0e9(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x394116,_0x488e3b]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x52ad62{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x42e618=this['editor']['editing']['view'];_0x42e618['change'](_0x5dd7e3=>{for(const _0x10c86f of _0x42e618['document']['roots'])_0x5dd7e3['addClass'](ce,_0x10c86f);});}['hide'](){const _0x3de9a4=this['editor']['editing']['view'];_0x3de9a4['change'](_0x8515d7=>{for(const _0x249a7a of _0x3de9a4['document']['roots'])_0x8515d7['removeClass'](ce,_0x249a7a);});}}class m extends _0x52ad62{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x193d2b=this['editor'],_0x13b618=_0x193d2b['plugins']['get'](d),_0x37abad=_0x193d2b['plugins']['get'](le);_0x193d2b['ui']['componentFactory']['add']('exitToEditing',_0x54ba9e=>{const _0x51510b=new _0x51179d(_0x54ba9e);return _0x51510b['set']({'label':R(_0x54ba9e,'Back\x20to\x20editing'),'icon':_0x598ba3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x51510b,'execute',()=>{_0x193d2b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x51510b;}),_0x193d2b['ui']['componentFactory']['add']('restoreRevision',_0x4642f3=>{const _0x11d976=new _0x51179d(_0x4642f3);return _0x11d976['set']({'label':R(_0x4642f3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x11d976['bind']('isEnabled')['to'](_0x193d2b['commands']['get']('restoreRevision')),this['listenTo'](_0x11d976,'execute',()=>_0x193d2b['execute']('restoreRevision')),_0x11d976;}),_0x193d2b['ui']['componentFactory']['add']('changesNavigation',_0x135cdf=>{const _0xe14129=new _i(_0x135cdf),_0x288993=_0x193d2b['commands']['get']('showPreviousChange'),_0x25f6e8=_0x193d2b['commands']['get']('showNextChange');return _0xe14129['bind']('isBackwardNavigationEnabled')['to'](_0x288993,'isEnabled'),_0xe14129['bind']('isForwardNavigationEnabled')['to'](_0x25f6e8,'isEnabled'),_0xe14129['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x13b618),this['listenTo'](_0xe14129,'execute',(_0x56ad7b,_0x38d6b0)=>{_0x193d2b['execute']('forward'===_0x38d6b0?'showNextChange':'showPreviousChange');}),_0xe14129;}),_0x37abad['show'](),_0x13b618['on']('change:isReady',(_0x382bf3,_0x168254,_0x37a5b1)=>{_0x37a5b1?_0x37abad['hide']():_0x37abad['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3c3093,_0x318e05){super(_0x3c3093,_0x318e05);const _0xfcb62b=this['bindTemplate'];this['set']({'label':R(_0x3c3093,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3c3093,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xfcb62b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b2258=this['fieldView']['element'];this['_tooltipString']=_0x4b2258['scrollWidth']>_0x4b2258['clientWidth']&&_0x4b2258['value']||'';}}class ti extends _0x229008{constructor(_0x5b4606,_0x150dda,_0x8d7163){super(_0x5b4606);const _0x2d86fd=new _0x3df9f2();_0x2d86fd['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1ef04f=['ck','ck-revision-history-sidebar__revision-author'];_0x8d7163&&_0x1ef04f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x565e70=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5b4606,_0x8d7163?'Revision\x20creator':'Revision\x20author')},'children':[_0x2d86fd,_0x150dda['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ef04f},'children':_0x565e70});}}function ni(_0x1cf8bf,_0x46814a){const _0x303d4f=_0x1cf8bf['bindTemplate'],_0x38cbf2=_0x1cf8bf['locale'],_0x1d1d1c=_0xc86235(_0x38cbf2);_0x1d1d1c['panelPosition']='sw';const _0x36bbda=function(_0x1bff5f,_0x1d548c){const _0x445273=function(_0xb93af8,_0x48950a){const _0x8628dc=_0xb93af8['locale'],_0x816c40={'Compare\x20against\x20selected':R(_0x8628dc,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x8628dc,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x8628dc,'Restore\x20this\x20revision')};return _0x48950a['map'](_0x2a0dff=>{const _0x35d61a=_0x816c40[_0x2a0dff['name']];return _0x35d61a&&_0x35d61a!==_0x2a0dff['name']&&(_0x2a0dff['name']=_0x35d61a),_0x2a0dff;});}(_0x1bff5f,_0x1d548c),_0x131f41=new _0x22f9c7();for(const _0x634184 of _0x445273){const _0x5bb18d={'type':'button','model':new to({'label':_0x634184['name'],'class':_0x634184['class'],'withText':!0x0,'role':'menuitem','_action':_0x634184['action']})};_0x5bb18d['model']['bind']('isEnabled')['to'](_0x1bff5f,'isActionsDropdownOpen',_0x35a350=>'function'!=typeof _0x634184['isEnabled']||(!_0x35a350||_0x634184['isEnabled'](_0x1bff5f))),_0x131f41['add'](_0x5bb18d);}return _0x131f41;}(_0x1cf8bf,_0x46814a);return _0x1cf8bf['bind']('isActionsDropdownOpen')['to'](_0x1d1d1c,'isOpen'),_0x1d1d1c['buttonView']['set']({'label':R(_0x38cbf2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x598ba3['threeVerticalDots']}),_0x1d1d1c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x303d4f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x303d4f['to'](_0x2f72c5=>_0x2f72c5['stopPropagation']())}}),_0x1d1d1c['on']('execute',_0x39d24f=>{_0x1cf8bf['isReady']&&'function'==typeof _0x39d24f['source']['_action']&&_0x39d24f['source']['_action'](_0x1cf8bf);}),_0xcaaeaa(_0x1d1d1c,_0x36bbda,{'role':'menu'}),_0x1d1d1c['listenTo'](_0x1cf8bf,'change:isActionsDropdownOpen',(_0x22ebb4,_0x2bd915,_0x5c475a)=>{if(_0x5c475a)for(const _0x10a0d6 of _0x1d1d1c['listView']['items']){const _0x34907c=_0x10a0d6['children']['first'],_0xa8663d=_0x46814a['find'](_0x26349d=>_0x26349d['action']===_0x34907c['_action'])['isVisible'];_0x10a0d6['isVisible']=void 0x0===_0xa8663d||_0xa8663d(_0x1cf8bf);}}),_0x1d1d1c;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x23c90d(_0x229008){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xa6ca58,_0x2d1813,_0x32ffdd,_0x1d6d0a){super(_0xa6ca58);const _0x49b06e=this['bindTemplate'],_0x447cee=function(_0x4fb068,_0x28eba9){const _0x19c5b5=Array['from'](_0x28eba9['authors'])['filter'](_0x3e21d1=>_0x3e21d1!=_0x28eba9['creator']);return _0x28eba9['creator']&&_0x19c5b5['unshift'](_0x28eba9['creator']),_0x19c5b5['map'](_0x7a2c2b=>new ti(_0x4fb068,_0x7a2c2b,_0x7a2c2b==_0x28eba9['creator']));}(_0xa6ca58,_0x2d1813);this['id']=_0x2d1813['id'],this['_revision']=_0x2d1813,this['_requireRevisionName']=_0x1d6d0a,this['bind']('name','createdAt')['to'](_0x2d1813),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x113352=>{return _0x2d56ad=_0xa6ca58['uiLanguage'],(_0x4e6545=_0x113352)['toLocaleDateString'](_0x2d56ad,{'month':'long','day':'numeric'})+',\x20'+_0x4e6545['toLocaleTimeString'](_0x2d56ad,{'hour':'numeric','minute':'numeric'});var _0x2d56ad,_0x4e6545;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0xa6ca58,_0x204f0c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x38bfce=>_0x38bfce||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x425974,_0x5de3ae)=>_0x425974&&_0x5de3ae),this['revisionActionsView']=_0x32ffdd&&_0x32ffdd['length']?ni(this,_0x32ffdd):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x49b06e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x49b06e['if']('isEnabled','ck-disabled',_0x506ba7=>!_0x506ba7),_0x49b06e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x49b06e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x49b06e['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':_0x49b06e['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':_0x447cee}]},this['revisionActionsView']],'on':{'click':_0x49b06e['to'](_0x58d53a=>{_0x58d53a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4aad07=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4aad07,'change',()=>{this['_requireRevisionName']&&!_0x4aad07['value']||this['fire']('setName',{'id':this['id'],'name':_0x4aad07['value']}),_0x4aad07['value']||(_0x4aad07['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x20ec15,_0x49b2ad){const _0x13ace8=_0x16e050['fromJSDate'](_0x20ec15)['setLocale'](_0x49b2ad),_0x47910f=_0x16e050['local'](),_0xb2c41=_0x47910f['minus']({'days':0x1})['startOf']('day');let _0x143346,_0x4b2adf;return _0x13ace8['hasSame'](_0x47910f,'day')?(_0x143346=_0x13ace8['startOf']('day')['toJSDate'](),_0x4b2adf=_0x13ace8['toRelativeCalendar']()):_0x13ace8['hasSame'](_0xb2c41,'day')?(_0x143346=_0xb2c41['toJSDate'](),_0x4b2adf=_0x13ace8['toRelativeCalendar']()):_0x13ace8['hasSame'](_0x47910f,'week')?(_0x143346=_0x13ace8['startOf']('week')['toJSDate'](),_0x4b2adf=_0x13ace8['weekdayLong']||''):_0x13ace8['hasSame'](_0x47910f,'year')?(_0x143346=_0x13ace8['startOf']('month')['toJSDate'](),_0x4b2adf=_0x13ace8['monthLong']||''):(_0x143346=_0x13ace8['startOf']('year')['toJSDate'](),_0x4b2adf=String(_0x13ace8['year'])),{'startDate':_0x143346,'localizedPeriodName':_0x4b2adf};}class mi extends _0x229008{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f8820,_0x21a54e,_0xb5fe80,_0x10d9aa){super(_0x3f8820);const _0x1c3233=di(_0x21a54e,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21a54e,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xb5fe80,this['_requireRevisionName']=_0x10d9aa,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':_0x1c3233}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x8bf7d2){const _0x1fb5bc=new ai(this['locale'],_0x8bf7d2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1fb5bc);}['removeRevision'](_0x5ef506){const _0x64c02=this['revisionViews']['find'](_0x83ba54=>_0x83ba54['id']===_0x5ef506['id']);this['revisionViews']['remove'](_0x64c02);}}class as extends _0x229008{constructor(_0x100156){super(_0x100156);const _0x59b1fe=new _0x3df9f2();_0x59b1fe['content']=_0x598ba3['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59b1fe,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x100156,'Revision\x20history')]}]});}}class ci extends _0x229008{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x53a221,_0x203715,_0x1623ee,_0x393223){super(_0x53a221);const _0x38537e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x203715,this['_revisionActions']=_0x1623ee,this['_requireRevisionName']=_0x393223,this['on']('select',(_0x34e9b0,_0x2ee5b0)=>{this['fire']('revisionSelected',_0x2ee5b0);}),this['on']('setName',(_0x2b30ba,_0x54b5f3)=>{this['fire']('revisionSetName',_0x54b5f3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x53a221),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x38537e['if']('isEnabled','ck-disabled',_0xcde07e=>!_0xcde07e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x391c5c of this['_revisions'])this['_addRevision'](_0x391c5c);this['_revisions']['on']('add',(_0x5c3729,_0x3d9894)=>{this['_addRevision'](_0x3d9894);}),this['_revisions']['on']('remove',(_0x61e159,_0x51ffb6)=>{this['_removeRevision'](_0x51ffb6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x27f02e=>_0x27f02e['revisionViews']['map'](_0x55d466=>_0x55d466))['flat']();}['selectRevision'](_0x358eb4){for(const _0x2eccef of this['revisionViews'])_0x358eb4&&_0x358eb4['id']===_0x2eccef['id']?_0x2eccef['select']():_0x2eccef['deselect']();}['highlightRevisions'](_0x77ead6){for(const _0x226de1 of this['revisionViews'])_0x77ead6['some'](({id:_0x125825})=>_0x125825===_0x226de1['id'])?_0x226de1['highlight']():_0x226de1['unhighlight']();}['_addRevision'](_0x3eb1d5){const _0x4a6e1e=di(_0x3eb1d5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x24e00d=this['timePeriodViews']['get'](0x0);_0x24e00d&&_0x24e00d['startDate']['getTime']()===_0x4a6e1e['getTime']()||(_0x24e00d=new mi(this['locale'],_0x4a6e1e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x24e00d)),_0x24e00d['addRevision'](_0x3eb1d5);}['_removeRevision'](_0x53b12b){const _0x87a475=di(_0x53b12b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x87a475)['removeRevision'](_0x53b12b);}['_getTimePeriodViewByStartDate'](_0x445063){return this['timePeriodViews']['find'](_0x168917=>_0x168917['startDate']['getTime']()===_0x445063['getTime']());}}class g extends _0x52ad62{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5c7d88,uid as _0x4dce4d,Collection as _0x2ad968,logWarning as _0x482cd7,FocusTracker as _0x5cf0e0,KeystrokeHandler as _0x3a2814,scrollViewportToShowTarget as _0x277b74,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2c83c4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x295472,set as _0x8cbf8d,unset as _0x222f53,isEqual as _0x23c23a}from'lodash-es';import{Plugin as _0x24aabd,PendingActions as _0x23b549,icons as _0x888a61,Command as _0xf66950,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4943c5,getMarkerDomElement as _0x218286,ConfirmMixin as _0x33105c,sanitizeEditorConfig as _0x3f5003}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4833c1,ViewText as _0xd57083,ViewElement as _0x2c4196,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x23c6b9,ViewAttributeElement as _0x3e4e99,ViewEmptyElement as _0x46de0e,ViewRawElement as _0xcf47a2,ViewUIElement as _0x131e84,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2c43c9,injectCssTransitionDisabler as ts,submitHandler as _0x5b1924,LabeledFieldView as at,createLabeledInputText as _0x4fabfa,createDropdown as _0x20789c,ListView as te,ListItemView as _0x4e494e,ButtonView as _0x15a92a,MenuBarMenuView as _0x5320cf,MenuBarMenuListView as _0xae8b9,MenuBarMenuListItemView as _0x414113,MenuBarMenuListItemButtonView as _0x1ea6c3,ContextualBalloon as _0x276f8f,ToolbarSeparatorView as _0x372320,IconView as _0x544954,addListToDropdown as _0x3d32c0,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x283079}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5c7d88(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x419778){super(),this['id']=_0x419778['id']||_0x4dce4d(),this['creator']=_0x419778['creator']||null,this['authors']=_0x419778['authors']||[],this['diffData']=_0x419778['diffData']||null,this['toVersion']=_0x419778['toVersion']||0x0,this['fromVersion']=_0x419778['fromVersion']||0x0,this['set']('name',_0x419778['name']||''),this['set']('createdAt',_0x419778['createdAt']||new Date()),this['set']('attributes',_0x419778['attributes']||{});}['setName'](_0x1e9d96){this['_update']({'name':_0x1e9d96});}['setAttribute'](_0x4c8012,_0x144a76){const _0x33fd19=_0x295472(this['attributes']);_0x8cbf8d(_0x33fd19,_0x4c8012,_0x144a76),this['_update']({'attributes':_0x33fd19});}['removeAttribute'](_0x524985){const _0x373fb5=_0x295472(this['attributes']);_0x222f53(_0x373fb5,_0x524985),this['_update']({'attributes':_0x373fb5});}['_update'](_0x50adb9,_0x4a7be8=!0x1){let _0x54e226=!0x1;const _0x40973c={'id':this['id']},_0x4f02ce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xc9892f of _0x4f02ce){const _0x38850b=_0x50adb9[_0xc9892f];void 0x0!==_0x38850b&&_0x38850b!==this[_0xc9892f]&&(this[_0xc9892f]=_0x38850b,_0x40973c[_0xc9892f]=_0x38850b,_0x54e226=!0x0);}_0x54e226&&(_0x40973c['authors']&&(_0x40973c['authorsIds']=_0x40973c['authors']['map'](_0x1ea1a2=>_0x1ea1a2['id']),delete _0x40973c['authors']),this['fire']('_update',_0x40973c,_0x4a7be8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x19791a=>_0x19791a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x24aabd{['_revisions'];static get['requires'](){return[_0x4943c5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xa1d20c){super(_0xa1d20c),this['_revisions']=new _0x2ad968();}['afterInit'](){!async function(_0x5340a2){const _0x464530=_0x3ad719([0x36,0x69,0x38,0x32,0x59,0x67,0x51,0x41,0x47,0x31,0x70,0x6a,0x35,0x48,0x6d,0x37,0x57,0x7a,0x50,0x76,0x44,0x5a,0x63,0x45,0x6b,0x79,0x73,0x33,0x4e,0x72,0x46,0x64,0x55,0x39,0x6f,0x77,0x30,0x62,0x34,0x61,0x4d,0x4b,0x6c,0x56,0x58,0x4f,0x4c,0x49,0x65,0x68,0x75,0x43,0x53,0x6e,0x66,0x71,0x4a,0x52,0x78,0x74,0x54,0x42]),_0x3bb680=0xeb829,_0x2e7537=0x7d72a7d8,_0x7c16ea=0x7d75ffc8^_0x2e7537,_0x53780f=window[_0x3ad719([0x44,0x61,0x74,0x65])][_0x3ad719([0x6e,0x6f,0x77])](),_0x9e3d64=_0x5340a2[_0x3ad719([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a878b=new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546cc6=>{_0x9e3d64[_0x3ad719([0x6f,0x6e,0x63,0x65])](_0x3ad719([0x72,0x65,0x61,0x64,0x79]),_0x546cc6);}),_0x1c9644={[_0x3ad719([0x6b,0x74,0x79])]:_0x3ad719([0x45,0x43]),[_0x3ad719([0x75,0x73,0x65])]:_0x3ad719([0x73,0x69,0x67]),[_0x3ad719([0x63,0x72,0x76])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36]),[_0x3ad719([0x78])]:_0x3ad719([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]),[_0x3ad719([0x79])]:_0x3ad719([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]),[_0x3ad719([0x61,0x6c,0x67])]:_0x3ad719([0x45,0x53,0x32,0x35,0x36])},_0x3c14c5=_0x9e3d64[_0x3ad719([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ad719([0x67,0x65,0x74])](_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cfcf4(){let _0x45d878,_0x4850af=null,_0x23882f=null;try{if(_0x3c14c5==_0x3ad719([0x47,0x50,0x4c]))return _0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45d878=_0x36fe8e(),!_0x45d878)return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23882f=_0x914192(_0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45d878[_0x3ad719([0x6a,0x74,0x69])])),await _0x3e43f8()?_0x194bb2()?_0x124c20()?_0x3ad719([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113eae()?(_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x74,0x72,0x69,0x61,0x6c])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x64c4a8()):_0x3ad719([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x27fe0e){return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x124c20(){const _0x333b1a=[_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ad719([0x74,0x72,0x69,0x61,0x6c])][_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53780f/0x3e8:0xe10*_0x7c16ea;return _0x45d878[_0x3ad719([0x65,0x78,0x70])]<_0x333b1a;}function _0x194bb2(){const _0x5943e8=_0x45d878[_0x3ad719([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5943e8&&(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a]))||(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x48]))||!(!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x52,0x48]))||!_0x90a7f3())));}function _0x113eae(){const _0x495904=_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x495904||0x0==_0x495904[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ae30a}=new URL(window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x495904[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae30a))return!0x0;const _0x247f55=_0x3ae30a[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));return _0x495904[_0x3ad719([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d884e=>_0x5d884e[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a])))[_0x3ad719([0x6d,0x61,0x70])](_0x271f71=>_0x271f71[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])))[_0x3ad719([0x73,0x6f,0x6d,0x65])](_0x36fa03=>_0x247f55[_0x3ad719([0x65,0x76,0x65,0x72,0x79])]((_0x1957cb,_0x1ffe7f)=>_0x36fa03[_0x1ffe7f]===_0x1957cb||_0x36fa03[_0x1ffe7f]===_0x3ad719([0x2a])));}function _0x64c4a8(){return _0x4850af&&_0x23882f?new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf31d60,_0x2f3b48)=>{_0x4850af[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xf31d60,_0x2f3b48),_0x23882f[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xa9e8e7=>{_0xa9e8e7!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0xf31d60(_0xa9e8e7);},_0x2f3b48);}):_0x4850af||_0x23882f||_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);}}function _0x914192(_0x28296f,_0x171217){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b17a=>{if(_0x82c58f())return _0x46b17a(_0x3ad719([0x56,0x61,0x6c,0x69,0x64]));_0x3c0545(),_0x9e3d64[_0x3ad719([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bb41=!0x1;const _0x4ea5ca=_0x4dce4d();function _0x54eeaf(_0xde3533){return!!_0xde3533&&(typeof _0xde3533===_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde3533===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde3533[_0x3ad719([0x74,0x68,0x65,0x6e])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde3533[_0x3ad719([0x63,0x61,0x74,0x63,0x68])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c9605(_0x3ff4b8){_0x2c73fa(_0x3ff4b8)[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x1dae87=>{if(!_0x1dae87||_0x1dae87[_0x3ad719([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ad719([0x6f,0x6b]))return _0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3173fe(_0xc42e86(_0x4ea5ca+_0x171217))!=_0x1dae87[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x44c666=>(_0x3b0c74(),_0x44c666),()=>{const _0x4d334b=_0x5e1f60();return null==_0x4d334b?(_0x3b0c74(),_0x3ad719([0x56,0x61,0x6c,0x69,0x64])):_0x3ad719(_0x53780f-_0x4d334b>(0x597e23d8^_0x2e7537)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x46b17a)[_0x3ad719([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47a8e0=0x7d444958^_0x2e7537;function _0x3b0c74(){const _0x4ad696=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x29b374=_0x343095(_0x3173fe(window[_0x3ad719([0x4d,0x61,0x74,0x68])][_0x3ad719([0x63,0x65,0x69,0x6c])](_0x53780f/_0x47a8e0)));window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad696,_0x29b374);}function _0x5e1f60(){const _0x461d7e=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x59d759=window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461d7e);return _0x59d759?window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x343095(_0x59d759),0x10)*_0x47a8e0:null;}function _0x2c73fa(_0x310102){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50619e,_0x263214)=>{_0x310102[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x50619e,_0x263214),window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263214,0x7d737318^_0x2e7537);});}}_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x467090,_0xd0ec25)=>{if(_0xd0ec25[0x0]!=_0x28296f)return _0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd0ec25[0x1]={..._0xd0ec25[0x1],[_0x3ad719([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ea5ca};},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x68,0x69,0x67,0x68])}),_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19e3b7=>{_0x54eeaf(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bb41=!0x0,_0x4c9605(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x6c,0x6f,0x77])}),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>{_0x27bb41||_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x82c58f(){return _0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ad719([0x61,0x75,0x74,0x6f]);}function _0x3c0545(){_0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ad719([0x61,0x75,0x74,0x6f]);}}function _0x3b4a67(_0x26b156){const _0x4fa974=[new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513be9=>setTimeout(_0x513be9,0x7d7b9914^_0x2e7537)),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55141b=>{const _0xfb3db7=0x7d72a7df^_0x2e7537,_0x160a88=_0x5340a2[_0x3ad719([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1597c2(){_0x160a88[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xfb3db7&&_0x55141b();}_0x1597c2(),_0x160a88[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x61,0x64,0x64]),_0x1597c2);})),new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c705=>{function _0x271cd5(){for(const _0x103f6e in window)if(window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x103f6e))&&window[_0x103f6e]==_0x3bb680)return _0x26c705();_0x9e3d64[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]!=_0x3ad719([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271cd5,0x7d72b450^_0x2e7537);}_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x271cd5();})];return window[_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ad719([0x72,0x61,0x63,0x65])](_0x4fa974)[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>_0x26b156);}async function _0x3c9295(){if(await _0x3a878b,_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33f97f=_0x5340a2[_0x3ad719([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3b7aea=_0x5340a2[_0x3ad719([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])](_0x33f97f[_0x3ad719([0x69,0x64])]),_0x538961=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33f97f['id'],_0x3b7aea?_0x3b7aea['id']:null,!0x0),_0x538961[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x538961[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5858e7,void(_0x538961[_0x3ad719([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5858e7);}if(_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5314ba=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5314ba[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5314ba[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5314ba[_0x3ad719([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5858e7,_0x5314ba[_0x3ad719([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5858e7;}_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x90a7f3(){return _0x57b27f(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x55d28e(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]==_0x3ad719([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ab29c(_0x7f47a){const _0x6b9d8d=_0x1ecb84();_0x9e3d64[_0x6b9d8d]=_0x3ad719([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])+_0x7f47a,_0x7f47a[_0x3ad719([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1ecb84()]=_0x3bb680),_0x7f47a!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0x3c9295();}function _0x1ecb84(){const _0x324195=window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ad719([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ad719([0x6e,0x6f,0x77])]())[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ad719([0x2e]),'');let _0x366eb3=_0x3ad719([0x69]);for(let _0x3a6e50=0x0;_0x3a6e50<_0x324195[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6e50+=0x2){let _0x5bfec0=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x324195[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6e50,_0x3a6e50+0x2));_0x5bfec0>=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bfec0-=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x366eb3+=_0x464530[_0x5bfec0];}return _0x366eb3;}function _0x36fe8e(){const _0x41017e=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));if(0x3!=_0x41017e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x489464(_0x41017e[0x1]);function _0x489464(_0x436751){const _0x2450c7=_0x355f1f(_0x436751);return _0x2450c7&&_0x4bd888()?_0x2450c7:null;function _0x4bd888(){const _0x49bb6c=_0x2450c7[_0x3ad719([0x6a,0x74,0x69])],_0x2a1123=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7d3a={..._0x2450c7,[_0x3ad719([0x6a,0x74,0x69])]:_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7d3a[_0x3ad719([0x76,0x63])],_0xc42e86(_0x3b7d3a)==_0x2a1123;}}}async function _0x3e43f8(){let _0x4a5957=!0x0;try{const _0x50a9d7=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])),[_0x3235c7,_0x91a284,_0x5b6fa8]=_0x50a9d7;return _0x41b661(_0x3235c7),await _0x126fae(_0x3235c7,_0x91a284,_0x5b6fa8),_0x4a5957;}catch(_0x15a9f7){return!0x1;}function _0x41b661(_0xcdd0e5){const _0x5dadb4=_0x355f1f(_0xcdd0e5);_0x5dadb4&&_0x5dadb4[_0x3ad719([0x61,0x6c,0x67])]==_0x3ad719([0x45,0x53,0x32,0x35,0x36])||(_0x4a5957=!0x1);}async function _0x126fae(_0x34e43e,_0x5cec72,_0x2e0af0){const _0x54203e=window[_0x3ad719([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ad719([0x66,0x72,0x6f,0x6d])](_0x38a00d(_0x2e0af0),_0x34559e=>_0x34559e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x98e63a=new window[(_0x3ad719([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ad719([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34e43e+_0x3ad719([0x2e])+_0x5cec72),_0x4f12b8=window[_0x3ad719([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ad719([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f12b8)return;const _0x4f57aa=await _0x4f12b8[_0x3ad719([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ad719([0x6a,0x77,0x6b]),_0x1c9644,{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f12b8[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x68,0x61,0x73,0x68])]:{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f57aa,_0x54203e,_0x98e63a)||(_0x4a5957=!0x1);}}function _0x355f1f(_0x3842c4){return _0x3842c4[_0x3ad719([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x65,0x79]))?JSON[_0x3ad719([0x70,0x61,0x72,0x73,0x65])](_0x38a00d(_0x3842c4)):null;}function _0x38a00d(_0x57205a){return window[_0x3ad719([0x61,0x74,0x6f,0x62])](_0x57205a[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ad719([0x2b]))[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ad719([0x2f])));}function _0xc42e86(_0xe12558){let _0x1f90a6=0x1505;function _0x185fd4(_0x4c4d6e){for(let _0x34aeca=0x0;_0x34aeca<_0x4c4d6e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34aeca++){const _0x48680c=_0x4c4d6e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34aeca);_0x1f90a6=(_0x1f90a6<<0x5)+_0x1f90a6+_0x48680c,_0x1f90a6&=_0x1f90a6;}}function _0x5e3522(_0x2519c0){Array[_0x3ad719([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2519c0)?_0x2519c0[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e3522):_0x2519c0&&typeof _0x2519c0==_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ad719([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2519c0)[_0x3ad719([0x73,0x6f,0x72,0x74])]()[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c34e9,_0x7aa52f])=>{_0x185fd4(_0x2c34e9),_0x5e3522(_0x7aa52f);}):_0x185fd4(window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2519c0));}return _0x5e3522(_0xe12558),_0x1f90a6>>>0x0;}function _0x3173fe(_0x45437b){return _0x45437b[_0x3ad719([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ad719([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ad719([0x30]));}function _0x343095(_0x480e14){return _0x480e14[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ad719([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ad719([0x6a,0x6f,0x69,0x6e])]('');}function _0x57b27f(_0x3b9ba4){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x68,0x61,0x73])](_0x3b9ba4);}function _0x55d28e(_0x597b9c){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x67,0x65,0x74])](_0x597b9c);}function _0x5858e7(){}function _0x3ad719(_0x12aca5){return _0x12aca5['map'](_0x11ab20=>String['fromCharCode'](_0x11ab20))['join']('');}_0x1ab29c(await _0x4cfcf4());}(this);}['createRevision'](_0x16f426){const _0x42bfdf=this['editor']['plugins']['get']('Users');return new a({'id':_0x16f426['id'],'name':_0x16f426['name'],'creator':_0x16f426['creatorId']?_0x42bfdf['getUser'](_0x16f426['creatorId']):null,'diffData':_0x16f426['diffData']||_0x16f426['data'],'authors':_0x16f426['authorsIds']['map'](_0x5139d5=>_0x42bfdf['getUser'](_0x5139d5)),'createdAt':new Date(_0x16f426['createdAt']),'attributes':_0x16f426['attributes'],'fromVersion':_0x16f426['fromVersion'],'toVersion':_0x16f426['toVersion']});}['addRevision'](_0x1a7bf7,_0x26d4ba=0x0){this['_revisions']['add'](_0x1a7bf7,_0x26d4ba);}['getRevision'](_0x354f2d){return this['_revisions']['get'](_0x354f2d);}['getRevisions'](_0x20ef89={'toJSON':!0x1}){const _0x5e235d=Array['from'](this['_revisions']);return _0x5e235d['reverse'](),_0x20ef89['toJSON']?_0x5e235d['map'](_0x2f753d=>_0x2f753d['toJSON']()):_0x5e235d;}['getIndex'](_0x25ed66){return this['_revisions']['getIndex'](_0x25ed66);}['getEarlierVisibleRevision'](_0xc891e4){const [,_0x32af89]=this['getRevisionsIterator'](_0xc891e4,{'direction':'earlier'});return _0x32af89;}['getLaterVisibleRevision'](_0x4b87e8){const [,_0x2244ed]=this['getRevisionsIterator'](_0x4b87e8,{'direction':'later'});return _0x2244ed;}['getRevisionsInDiff'](_0x215673){const _0x309e8d=[];for(const _0x252723 of this['getRevisionsIterator'](_0x215673['newRevisionId']))if(_0x309e8d['push'](_0x252723),_0x252723['id']===_0x215673['oldRevisionId'])break;return _0x309e8d;}*['getRevisionsIterator'](_0x18d91e,{direction:_0x55fe8b='earlier',filter:_0xced462=()=>!0x0}={}){const _0x46e6f4='earlier'===_0x55fe8b?0x1:-0x1;let _0x3e7cd8=this['_revisions']['get'](_0x18d91e),_0x5d2645=this['getIndex'](_0x3e7cd8);for(yield _0x3e7cd8;_0x3e7cd8;){if(_0x5d2645+=_0x46e6f4,_0x3e7cd8=this['getRevision'](_0x5d2645),!_0x3e7cd8)return;_0xced462(_0x3e7cd8)&&(yield _0x3e7cd8);}}}function R(_0xa9f3c2,_0x2a22b2,_0x2c03ec){const t=_0xa9f3c2['t'];switch(_0x2a22b2){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'},_0x2c03ec);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c03ec);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class l extends _0x24aabd{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4943c5,j,_0x23b549];}constructor(_0x8f3592){super(_0x8f3592),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18a83f=_0x4dce4d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18a83f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x448b50=this['repository']['getRevision'](0x0),_0x5f3425=_0x448b50&&null===_0x448b50['creator']?_0x448b50:null;if(this['_continueCurrentRevision']=!!_0x5f3425&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5eb682=this['_source']['getCurrentRevisionId'](),_0x5aeb13=this['repository']['getRevision'](_0x5eb682);if(_0x5aeb13)this['_startingVersion']=_0x5aeb13['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e90be=this['_source']['history']['_operations']['find'](_0x5a09b3=>!_0x5a09b3['_isInit']),_0x2cd52e=_0x5e90be?_0x5e90be['baseVersion']:this['_source']['history']['version'];_0x448b50?(_0x448b50['toVersion']<_0x2cd52e&&_0x448b50['_update']({'toVersion':_0x2cd52e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['fromVersion']):(this['_startingVersion']=_0x448b50['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2cd52e,this['_continueCurrentRevision']=!0x1);}}else _0x5f3425&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5f3425['toVersion'],this['editor']['model']['document']['history']['version']),_0x5f3425['fromVersion']===_0x5f3425['toVersion']?(0x0!==_0x5f3425['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['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',_0x59d97e=>!_0x59d97e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ffbe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2767e0;for(const _0x3c4f0f in _0x3ffbe){const _0x22386c=_0x3c4f0f,_0x2ca479=_0x3ffbe[_0x22386c];if('revisionHistoryLicenseKeyValid'==_0x2ca479||'revisionHistoryLicenseKeyInvalid'==_0x2ca479||'revisionHistoryLicenseKeyExpired'==_0x2ca479||'revisionHistoryLicenseKeyDomainLimit'==_0x2ca479||'revisionHistoryLicenseKeyNotAllowed'==_0x2ca479||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ca479||'revisionHistoryLicenseKeyTrialLimit'==_0x2ca479||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ca479||'revisionHistoryLicenseKeyUsageLimit'==_0x2ca479){delete _0x3ffbe[_0x22386c],_0x2767e0=_0x2ca479,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2767e0&&_0x3ffbe['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2767e0&&_0x3ffbe['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2767e0&&_0x3ffbe['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x168faa=this['repository']['getRevision'](0x0),_0xa2f83=await this['getRevisionDocumentData'](_0x168faa),_0x2afe14=await this['getRevisionRootsAttributes'](_0x168faa);this['_replaceEditorDataWithRevisionData'](_0xa2f83,_0x2afe14);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a6034){this['_source']=_0x5a6034;}async['update'](){const _0x13ebaf=await this['_source']['getLatestVersion']();if(_0x13ebaf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e6d83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13ebaf});_0x4e6d83['authors']=_0x4e6d83['authorsIds']['map'](_0x4ec68f=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ec68f)),this['currentRevision']['_update'](_0x4e6d83);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3a952c={},_0x2b599b=null){const _0xfe899=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2b599b>this['currentRevision']['toVersion']&&(_0x2b599b=null),null===_0x2b599b&&(_0x2b599b=await this['_source']['getLatestVersion']());const _0x599efa=this['_getFromVersion'](_0x2b599b),_0x4c46e9=this['buildRevisionData']({'from':_0x599efa,'to':_0x2b599b});if(this['currentRevision']['toVersion']<_0x2b599b){const _0x14548d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2b599b,'to':_0x2b599b});_0x14548d['authors']=[],_0x14548d['authorsIds']=[],_0x14548d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x14548d,!0x0),delete _0x14548d['authors'],_0xfe899['push'](_0x14548d);}_0x3a952c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a952c['name']=_0x3a952c['name']||null,_0x3a952c['id']=_0x3a952c['id']||_0x4dce4d(),_0x3a952c={..._0x3a952c,..._0x4c46e9};const _0x504914=this['addRevisionData'](_0x3a952c);_0xfe899['push'](_0x3a952c);const _0x3e29da=this['repository']['getIndex'](_0x504914);if(0x0!==_0x3e29da){const _0x49a848=this['repository']['getRevision'](_0x3e29da-0x1);if(_0x49a848['fromVersion']!==_0x2b599b){const _0x43f4aa=this['_revisionDataBuilder']['getData'](_0x2b599b,_0x49a848['toVersion']),_0x6bfc2f={'id':_0x49a848['id'],'diffData':_0x43f4aa['diffData'],'authorsIds':_0x43f4aa['authorsIds'],'authors':_0x43f4aa['authorsIds']['map'](_0x3e51aa=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e51aa)),'fromVersion':_0x2b599b};_0x49a848===this['currentRevision']&&(_0x6bfc2f['createdAt']=new Date(_0x3a952c['createdAt']['getTime']()+0xa)),_0x49a848['_update'](_0x6bfc2f,!0x0),delete _0x6bfc2f['authors'],_0xfe899['push'](_0x6bfc2f);}}if(this['adapter']){for(const _0x4f8e91 of _0xfe899)this['_bufferUpdate'](_0x4f8e91['id'],_0x4f8e91,!0x0);this['sendBufferedUpdates']();}return _0x504914;}['addRevisionData'](_0x1def92){const _0x1cc712=this['repository']['createRevision'](_0x1def92);return this['adapter']&&_0x1cc712['on']('_update',(_0x24d07c,_0x493151,_0x524323)=>{_0x524323||(this['_bufferUpdate'](_0x493151['id'],_0x493151,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1cc712,this['_findInsertionIndex'](_0x1cc712)),_0x1cc712;}async['getRevisionDocumentData'](_0x4866ad){await this['_loadRevisionData'](_0x4866ad);const _0x44729b={};for(const _0x4cf61d in _0x4866ad['diffData']){if(_0x4866ad['diffData'][_0x4cf61d]['attachChange']&&!_0x4866ad['diffData'][_0x4cf61d]['attachChange']['isAttached'])continue;const _0x1b1d9f=this['_removeRevisionMarkers'](JSON['parse'](_0x4866ad['diffData'][_0x4cf61d]['insertions'])),_0xb39278=this['editor']['editing']['view']['document'],_0x5b9a43=new _0x4833c1(_0xb39278,_0x1b1d9f['map'](_0x2d6a11=>V(_0x2d6a11,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x44729b[_0x4cf61d]=this['editor']['data']['processor']['toData'](_0x5b9a43),this['editor']['data']['processor']['useFillerType']('default');}return _0x44729b;}async['getRevisionRootsAttributes'](_0x11e137){await this['_loadRevisionData'](_0x11e137);const _0x50cad7={};for(const _0x15961a in _0x11e137['diffData'])_0x11e137['diffData'][_0x15961a]['attachChange']&&!_0x11e137['diffData'][_0x15961a]['attachChange']['isAttached']||(_0x50cad7[_0x15961a]=_0x11e137['diffData'][_0x15961a]['attributesAfter']||{});return _0x50cad7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x504d98=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1f686f=0x0;_0x1f686f<_0x504d98['length'];_0x1f686f++){const _0x5d9cef=_0x504d98[_0x1f686f];let _0x29261f=!0x1;for(const _0x19bc96 of Object['keys'](_0x5d9cef))void 0x0===_0x5d9cef[_0x19bc96]?delete _0x5d9cef[_0x19bc96]:'id'!==_0x19bc96&&(_0x29261f=!0x0);_0x29261f||(_0x504d98[_0x1f686f]=null);}if(_0x504d98=_0x504d98['filter'](_0x55aada=>null!==_0x55aada),!_0x504d98['length'])return;for(let _0x20f2af=0x0;_0x20f2af<_0x504d98['length'];_0x20f2af++){const _0x519030=_0x504d98[_0x20f2af];void 0x0!==_0x519030['fromVersion']&&void 0x0===_0x519030['toVersion']&&(_0x519030['toVersion']=this['repository']['getRevision'](_0x519030['id'])['toVersion']),void 0x0!==_0x519030['toVersion']&&void 0x0===_0x519030['fromVersion']&&(_0x519030['fromVersion']=this['repository']['getRevision'](_0x519030['id'])['fromVersion']);}const _0x7e91de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x504d98,_0x7e91de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1621c5=>{if(_0x1621c5){for(const _0x31f75a of _0x1621c5)this['setRevisionData']({'id':_0x31f75a['id'],'createdAt':_0x31f75a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3a3076,_0xcc1fe2){let _0x46c766=this['editor']['config']['get']('initialData'),_0x4acca2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46c766){_0x46c766={};for(const _0x5b667d of this['editor']['model']['document']['getRootNames']())_0x46c766[_0x5b667d]='';}if('string'==typeof _0x46c766&&(_0x46c766={'main':_0x46c766}),void 0x0===_0x4acca2){_0x4acca2={};for(const _0x66ac65 of this['editor']['model']['document']['getRootNames']())_0x4acca2[_0x66ac65]={};}let _0x5e6a44=!0x1;const _0x3e77c3=Object['keys'](_0x46c766),_0xd4831=Object['keys'](_0x3a3076);for(const _0x21ca3e of _0x3e77c3){if(_0x46c766[_0x21ca3e]!==_0x3a3076[_0x21ca3e]&&''!==_0x46c766[_0x21ca3e]['trim']()){_0x5e6a44=!0x0;break;}if(!_0x23c23a(_0x4acca2[_0x21ca3e],_0xcc1fe2[_0x21ca3e])&&Object['keys'](_0x4acca2[_0x21ca3e])['length']>0x0){_0x5e6a44=!0x0;break;}}_0x5e6a44||(_0x5e6a44=_0xd4831['some'](_0x22193d=>!this['editor']['model']['document']['getRoot'](_0x22193d))),_0x5e6a44&&_0x482cd7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46c766,'editorRootsAttributes':_0x4acca2,'revisionData':_0x3a3076,'revisionRootsAttributes':_0xcc1fe2}),this['editor']['config']['set']('initialData',_0x3a3076),this['editor']['config']['set']('rootsAttributes',_0xcc1fe2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4f3ec5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4f3ec5['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x102773){const _0x5bd694=this['repository']['getRevisions']();_0x5bd694['reverse']();let _0x29bf75=0x0;for(;_0x29bf75<_0x5bd694['length'];){const _0x432dcb=_0x5bd694[_0x29bf75];if(_0x432dcb===this['currentRevision']){_0x29bf75++;continue;}if(_0x432dcb['id']===this['_initialRevisionId'])break;const _0x4a43fc=_0x102773['toVersion']-_0x432dcb['toVersion']||_0x102773['fromVersion']-_0x432dcb['fromVersion'];if(_0x4a43fc>0x0)break;if(_0x4a43fc<0x0)_0x29bf75++;else{if(!_0x102773['creator']&&_0x432dcb['creator'])break;if(_0x432dcb['creator']||!_0x102773['creator']){if(_0x102773['createdAt']>_0x432dcb['createdAt'])break;_0x29bf75++;}else _0x29bf75++;}}return _0x29bf75;}['setRevisionData'](_0x47b951){const _0x36f34a=this['repository']['getRevision'](_0x47b951['id']);if(_0x47b951['createdAt']&&(_0x47b951['createdAt']=new Date(_0x47b951['createdAt'])),_0x47b951['authorsIds']){const _0x312c8f=this['editor']['plugins']['get']('Users');_0x47b951['authors']=_0x47b951['authorsIds']['map'](_0x2e00d0=>_0x312c8f['getUser'](_0x2e00d0));}_0x36f34a['_update'](_0x47b951,!0x0);}['buildRevisionData']({revision:_0x4842c8=null,from:_0x4f7818=null,to:_0x30b6d1=null}){_0x4f7818=null!==_0x4f7818?_0x4f7818:_0x4842c8['fromVersion'],_0x30b6d1=null!==_0x30b6d1?_0x30b6d1:_0x4842c8['toVersion'];const _0x2e8ef4=this['_revisionDataBuilder']['getData'](_0x4f7818,_0x30b6d1),_0xd79ed4={'diffData':_0x2e8ef4['diffData'],'authorsIds':_0x2e8ef4['authorsIds'],'fromVersion':_0x4f7818,'toVersion':_0x30b6d1};if(!_0x4842c8||_0x30b6d1!==_0x4842c8['toVersion']){const _0xcbf99c=_0x30b6d1-0x1,_0x41b4ca=this['_source']['history']['getOperation'](_0xcbf99c);_0xd79ed4['createdAt']=_0x41b4ca&&_0x41b4ca['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f7818===this['_loadedStateData']['fromVersion']){for(const _0x111ac8 of this['_loadedStateData']['authors'])_0xd79ed4['authorsIds']['includes'](_0x111ac8['id'])||_0xd79ed4['authorsIds']['push'](_0x111ac8['id']);}return _0xd79ed4;}['_loadRevisionData'](_0x165b8b){if(!_0x165b8b||_0x165b8b['diffData'])return Promise['resolve']();{const _0x364aed=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x364aed,'revisionId':_0x165b8b['id']})['then'](_0x2e5e60=>{_0x165b8b['diffData']=_0x2e5e60['diffData'];});}}['_bufferUpdate'](_0x39bfb8,_0x24f75b,_0xb9e1a2){if(this['_bufferedUpdates']['has'](_0x39bfb8)){const _0x3bdbc8=this['_bufferedUpdates']['get'](_0x39bfb8);_0x24f75b=_0xb9e1a2?{..._0x3bdbc8,..._0x24f75b}:{..._0x24f75b,..._0x3bdbc8};}this['_bufferedUpdates']['set'](_0x39bfb8,_0x24f75b);}['_getFromVersion'](_0x33b2f0){const _0x3be4a6=this['repository']['getRevisions']();_0x3be4a6['reverse'](),_0x3be4a6['shift']();const _0x1947ba=_0x3be4a6['find'](_0x5ee92b=>_0x5ee92b['toVersion']<=_0x33b2f0)['toVersion'];return _0x1947ba<this['_startingVersion']?this['_startingVersion']:_0x1947ba;}['_createInitialRevision'](_0x2077ad){const _0x7268b1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x7268b1)this['_initialRevisionId']=_0x7268b1['id'];else{const _0x1fff2a=!this['editor']['model']['document']['roots']['find'](_0x338930=>this['editor']['model']['hasContent'](_0x338930)),_0xa52812=this['editor']['plugins']['get']('Users')['me']['id'],_0x239c44=R(this['editor']['locale'],_0x1fff2a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2077ad,'to':_0x2077ad,'id':this['_initialRevisionId'],'name':_0x239c44,'creatorId':_0xa52812});}}['_createCurrentRevision'](_0x1e6ce2){const _0x3e31c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e31c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e6ce2,'to':_0x1e6ce2,'id':_0x3e31c2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x42b386,from:_0x2a1c15,to:_0x50a8e4,creatorId:_0x858237,id:_0x41c25c}){const _0x1d5e83=this['buildRevisionData']({'from':_0x2a1c15,'to':_0x50a8e4});_0x1d5e83['name']=_0x42b386,_0x1d5e83['creatorId']=_0x858237,_0x1d5e83['id']=_0x41c25c;const _0x27fc23=this['addRevisionData'](_0x1d5e83);return this['adapter']&&this['_bufferUpdate'](_0x1d5e83['id'],_0x1d5e83,!0x0),_0x27fc23;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x58bf7e){return(_0x58bf7e=_0x58bf7e['filter'](_0x241d9c=>!_0x241d9c['name']||'revision-start'!==_0x241d9c['name']&&'revision-end'!==_0x241d9c['name']))['forEach'](_0x1006f0=>{'string'!=typeof _0x1006f0&&(_0x1006f0['children']=this['_removeRevisionMarkers'](_0x1006f0['children']),_0x1006f0['attributes']=_0x1006f0['attributes']['filter'](_0x1cdc68=>!_0x1cdc68[0x0]['startsWith']('data-revision-')));}),_0x58bf7e;}}function V(_0xa0927e,_0x599793){const _0x5c606e=_0x599793['editing']['view']['document'];if('string'==typeof _0xa0927e)return new _0xd57083(_0x5c606e,_0xa0927e);{const _0xe687a5=_0xa0927e['children']['map'](_0x46296c=>V(_0x46296c,_0x599793));return new(C[_0xa0927e['type']]||_0x2c4196)(_0x5c606e,_0xa0927e['name'],_0xa0927e['attributes'],_0xe687a5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7176c4){this['editor']=_0x7176c4,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'](_0x2dd5df){this['source']=_0x2dd5df;const _0x38c5cc=new Map(),_0x50144d=new Map(),_0x27b84b=this['editor']['model']['document']['roots']['map'](_0x176634=>_0x176634['rootName']);for(const _0x4bee9e of _0x27b84b){const _0x15680e=this['editor']['model']['document']['getRoot'](_0x4bee9e),_0x1bcd76=F(_0x15680e);_0x38c5cc['set'](_0x4bee9e,_0x1bcd76),_0x50144d['set'](_0x4bee9e,Object['fromEntries'](_0x15680e['getAttributes']()));}const _0x601a8e=Array['from'](this['editor']['model']['markers'])['map'](_0x5e7e91=>[_0x5e7e91['name'],_0x5e7e91['getRange']()]),_0x4e6098=this['source']['version'];this['_saveMetaData'](_0x4e6098,_0x38c5cc,_0x601a8e,_0x50144d),this['_startingRevisionId']=this['_revisionId'];const _0x2967c2=new Map(),_0x992431=new Map();for(const _0x38fecc of _0x27b84b){const _0x52be48=B(_0x38fecc);_0x2967c2['set'](_0x38fecc,_0x52be48),_0x992431['set'](_0x38fecc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2967c2,[],_0x992431);}['getData'](_0x56a22a,_0x46df74){if(this['_lastFrom']===_0x56a22a&&this['_lastTo']<=_0x46df74)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x46df74,!0x0);else{if(!this['_savedMetaData']['has'](_0x56a22a)){const _0x37c1cb=this['_getPreviousFrom'](_0x56a22a);this['_calculateMetaData'](_0x37c1cb,_0x56a22a,!0x1);}this['_calculateMetaData'](_0x56a22a,_0x46df74,!0x0);}return this['_lastFrom']=_0x56a22a,this['_lastTo']=_0x46df74,this['_getState']();}['loadState'](_0xf75fcc){this['_reset'](),this['_lastFrom']=_0xf75fcc['fromVersion'],this['_lastTo']=_0xf75fcc['toVersion'];for(const _0x4acb8e in _0xf75fcc['diffData']){const _0x19aec5=_0xf75fcc['diffData'][_0x4acb8e]['attachChange'],_0x3c300a=_0x295472(_0xf75fcc['diffData'][_0x4acb8e]['attributesBefore'])||{},_0x1b5c64=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x4acb8e]['deletions']);_0x1b5c64['rootName']=_0x4acb8e,_0x1b5c64['_isAttached']=!_0x19aec5||!_0x19aec5['isAttached'],_0x1b5c64['isAttached']=()=>_0x1b5c64['_isAttached'],this['_baseRoots']['set'](_0x4acb8e,_0x1b5c64),this['_baseRootsAttributes']['set'](_0x4acb8e,_0x3c300a),_0x19aec5&&this['_touchedRoots']['set'](_0x4acb8e,_0x19aec5);const _0x581fa7=this['_makeIdsRoot'](_0x1b5c64);this['_baseIdsRoots']['set'](_0x4acb8e,_0x581fa7);for(const [_0x2a86ae,_0x2b0e68]of _0x1b5c64['markers']){if(!_0x2a86ae['startsWith']('revision:'))continue;const _0x3e958e=_0x2a86ae['split'](':')[0x2];for(const _0x38b83e of _0x2b0e68['getWalker']({'singleCharacters':!0x0})){const _0x21a904=this['_getVidAttributeName'](_0x38b83e),_0x3cf5f4='elementEnd'==_0x38b83e['type']?_0x38b83e['previousPosition']['path']['slice'](0x0,-0x1):_0x38b83e['previousPosition']['path'],_0x3e3b5a=_0x581fa7['getNodeByPath'](_0x3cf5f4)['getAttribute'](_0x21a904);this['_touched']['set'](_0x3e3b5a,{'userId':_0x3e958e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5aefdf=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x40fb45=>!this['_touched']['has'](_0x40fb45));let _0x6b50a7=0x0;const _0x94b8cb=new Map();for(const _0x482faf in _0xf75fcc['diffData']){const _0x4dfd9f=_0xf75fcc['diffData'][_0x482faf]['attachChange'],_0x46d6e1=_0x295472(_0xf75fcc['diffData'][_0x482faf]['attributesAfter'])||{},_0x317cac=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x482faf]['insertions']);_0x317cac['rootName']=_0x482faf,_0x317cac['_isAttached']=!_0x4dfd9f||_0x4dfd9f['isAttached'],_0x317cac['isAttached']=()=>_0x317cac['_isAttached'],this['_diffRoots']['set'](_0x482faf,_0x317cac),this['_diffRootsAttributes']['set'](_0x482faf,_0x46d6e1);const _0x377408=this['_makeIdsRoot'](_0x317cac,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x482faf,_0x377408),_0x94b8cb['set'](_0x482faf,_0x317cac['isAttached']()?_0x46d6e1:{});for(const [_0x15d77b,_0x5d51a0]of _0x317cac['markers']){if(!_0x15d77b['startsWith']('revision:'))continue;const _0x217ca3=_0x15d77b['split'](':')[0x2];for(const _0x14c650 of _0x5d51a0['getWalker']({'singleCharacters':!0x0})){const _0x3363d4=this['_getVidAttributeName'](_0x14c650),_0x1d7d11=this['_revisionId']++,_0x5d4fab='elementEnd'==_0x14c650['type']?_0x14c650['previousPosition']['path']['slice'](0x0,-0x1):_0x14c650['previousPosition']['path'];_0x377408['getNodeByPath'](_0x5d4fab)['_setAttribute'](_0x3363d4,_0x1d7d11),this['_touched']['set'](_0x1d7d11,{'userId':_0x217ca3});}}for(const _0x46ba32 of this['editor']['model']['createRangeIn'](_0x317cac)['getWalker']({'singleCharacters':!0x0})){const _0x576e85=this['_getVidAttributeName'](_0x46ba32),_0x1aee12='elementEnd'==_0x46ba32['type']?_0x46ba32['previousPosition']['path']['slice'](0x0,-0x1):_0x46ba32['previousPosition']['path'],_0x18c9cb=_0x377408['getNodeByPath'](_0x1aee12);_0x18c9cb['getAttribute'](_0x576e85)>0x0||_0x18c9cb['_setAttribute'](_0x576e85,_0x5aefdf[_0x6b50a7++]);}for(const [_0x5e6276,_0x56b5bb]of _0x317cac['markers'])_0x5e6276['startsWith']('revision:')||this['_markers']['set'](_0x5e6276,_0x56b5bb);}const _0x29a107=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29a107),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a107,0x1));const _0x1e691b=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1e691b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e691b,0x1));const _0x4e68e7=Array['from'](this['_diffRoots'])['map'](([_0x4aac75,_0xddb746])=>[_0x4aac75,F(_0xddb746)]);this['_saveMetaData'](this['_lastTo'],_0x4e68e7,this['_markers'],_0x94b8cb);}['_makeModelFromViewString'](_0x8cc927){const _0x504161=JSON['parse'](_0x8cc927),_0x2de130=this['editor']['editing']['view']['document'],_0x3cd7b4=new _0x4833c1(_0x2de130,_0x504161['map'](_0x345261=>V(_0x345261,this['editor'])));return this['editor']['data']['toModel'](_0x3cd7b4);}['_saveMetaData'](_0x2d6865,_0x51d6c7,_0x4fcf06,_0x5bca5c){const _0x585d86=new Map(_0x51d6c7),_0x2c7919=new Map(_0x295472(_0x5bca5c)),_0x3a82c2=new Map();for(const [_0x2a774d,_0x11b64e]of _0x4fcf06)_0x3a82c2['set'](_0x2a774d,{'start':_0x11b64e['start']['clone'](),'end':_0x11b64e['end']['clone'](),'rootName':_0x11b64e['root']['rootName']});this['_savedMetaData']['set'](_0x2d6865,{'roots':_0x585d86,'markers':_0x3a82c2,'rootsAttributes':_0x2c7919});}['_removeMetaData'](_0x2fa536){this['_savedMetaData']['delete'](_0x2fa536);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x130843,_0x322b7d=null){let _0x234976=null;_0x130843['is']('documentFragment')||(_0x234976=new ft(_0x130843['name'],{'vid_start':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));const _0x4cd76d=[];for(const _0x2886af of _0x130843['getChildren']())if(_0x2886af['is']('element')){_0x4cd76d['push'](this['_makeIdsRoot'](_0x2886af,_0x322b7d));const _0x57de46=_0x4cd76d[_0x4cd76d['length']-0x1];null!==_0x322b7d&&(_0x322b7d=_0x57de46['is']('element','$text')?_0x57de46['getAttribute']('vid')+0x1:_0x57de46['getAttribute']('vid_end')+0x1);}else{for(let _0x32d205=0x0;_0x32d205<_0x2886af['offsetSize'];_0x32d205++)_0x4cd76d['push'](new ft('$text',{'vid':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));}if(_0x130843['is']('documentFragment')){const _0x2b5907=B(_0x130843['rootName']);return _0x2b5907['_insertChild'](0x0,_0x4cd76d),_0x2b5907;}return _0x234976['_setAttribute']('vid_end',null===_0x322b7d?this['_revisionId']++:_0x322b7d++),_0x234976['_insertChild'](0x0,_0x4cd76d),_0x234976;}['_calculateMetaData'](_0x2a3da3,_0x5ee7f0,_0x2e0edb){this['_reset']();const {roots:_0x35c342,markers:_0x3c04ab,rootsAttributes:_0x41a080}=this['_savedMetaData']['get'](_0x2a3da3);this['_baseRoots']=new Map(_0x35c342),this['_baseRootsAttributes']=new Map(_0x295472(_0x41a080));for(const [_0xe6d4e1,_0x354587]of this['_baseRoots'])if('$graveyard'!==_0xe6d4e1&&(this['_diffRoots']['set'](_0xe6d4e1,F(_0x354587)),this['_diffRootsAttributes']=new Map(_0x295472(_0x41a080)),_0x2e0edb)){const _0x1f0fe5=this['_revisionId'];this['_idsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587)),this['_baseIdsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587,_0x1f0fe5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2e0edb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3446e4,_0x3430f9]of _0x3c04ab){const _0x105724=this['_baseRoots']['get'](_0x3430f9['rootName']),_0x3610c9=this['_diffRoots']['get'](_0x3430f9['rootName']),_0x3d5e23=new vt(this['_fixPosition'](_0x3430f9['start'],_0x105724),this['_fixPosition'](_0x3430f9['end'],_0x105724)),_0x486db8=this['_fixRange'](_0x3d5e23,_0x3610c9);_0x105724['markers']['set'](_0x3446e4,_0x3d5e23),this['_markers']['set'](_0x3446e4,_0x486db8);}this['_applyOperations'](_0x2a3da3,_0x5ee7f0,_0x2e0edb);}['_applyOperations'](_0x21f882,_0x28d697,_0x2e3c47){for(const _0x49ebad of this['source']['getOperations'](_0x21f882,_0x28d697))this['_handleOperation'](_0x49ebad,_0x2e3c47);for(const _0x54fbce of this['_diffRoots']['values']())_0x54fbce['markers']['clear']();for(const [_0x4f08e2,_0x38bde5]of this['_markers']){this['_diffRoots']['get'](_0x38bde5['root']['rootName'])['markers']['set'](_0x4f08e2,_0x38bde5['clone']());}const _0x3b7a39=new Map(),_0x261118=new Map();for(const [_0x19644a,_0xef3e2a]of this['_diffRoots'])_0x3b7a39['set'](_0x19644a,F(_0xef3e2a)),_0x261118['set'](_0x19644a,this['_diffRootsAttributes']['get'](_0x19644a));this['_saveMetaData'](_0x28d697,_0x3b7a39,this['_markers'],_0x261118);}['_getPreviousFrom'](_0x109d04){const _0x4e52a7=Array['from'](this['_savedMetaData']['keys']());_0x4e52a7['sort']((_0x138aa2,_0xcfcac3)=>_0x138aa2-_0xcfcac3),_0x4e52a7['reverse']();for(const _0x56f07b of _0x4e52a7)if(_0x56f07b<_0x109d04)return _0x56f07b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x45c659,_0x1d9185){const _0xd6603d=Array['from'](_0x1d9185['markers'])['map'](([_0x26b0d6,_0xd7f4f9])=>[_0x26b0d6,this['_fixRange'](_0xd7f4f9,_0x45c659)]);_0x45c659['markers']=new Map(_0xd6603d);}['_transformMarkers'](_0x1aac4e){for(const _0x25e8e5 of this['_markers']['values']()){const _0x256a47=_0x25e8e5['getTransformedByOperation'](_0x1aac4e),_0x33333e=vt['_createFromRanges'](_0x256a47);_0x25e8e5['start']=_0x33333e['start'],_0x25e8e5['end']=_0x33333e['end'];}}['_handleOperation'](_0x37db7d,_0x49c079){if('addRoot'!=_0x37db7d['type']&&'detachRoot'!=_0x37db7d['type']){if('insert'==_0x37db7d['type']){const _0x241511=_0x37db7d['position']['root']['rootName'];this['_diffRoots']['has'](_0x241511)||(this['_diffRoots']['set'](_0x241511,B(_0x241511,!0x0)),this['_diffRootsAttributes']['set'](_0x241511,{}),_0x49c079&&this['_idsRoots']['set'](_0x241511,B(_0x241511,!0x0)));}else{if('addRootAttribute'==_0x37db7d['type']||'removeRootAttribute'==_0x37db7d['type']||'changeRootAttribute'==_0x37db7d['type'])return void this['_handleRootAttributeOperation'](_0x37db7d);'marker'==_0x37db7d['type']&&this['_handleMarkerOperation'](_0x37db7d);}if('marker'!==_0x37db7d['type']){const _0x58c1bf=this['_cloneOperation'](_0x37db7d,this['_diffRoots']);_0x58c1bf['_execute'](),this['_transformMarkers'](_0x58c1bf);}if(_0x49c079)switch(_0x37db7d['type']){case'insert':this['_handleInsertOperation'](_0x37db7d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37db7d);break;case'merge':this['_handleMergeOperation'](_0x37db7d);break;case'split':this['_handleSplitOperation'](_0x37db7d);}}else this['_handleRootOperation'](_0x37db7d,_0x49c079);}['_cloneOperation'](_0x5ebee1,_0x461f07){const _0x545928=_0x5ebee1['clone']();return _0x545928['_authorId']=_0x5ebee1['_authorId'],this['_fixOperation'](_0x545928,_0x461f07),_0x545928;}['_getBaseVids'](_0x19e478){return _0x19e478['map'](_0x144e5c=>{const _0x506b38=this['_getVidAttributeName'](_0x144e5c);return Number(_0x144e5c['item']['getAttribute'](_0x506b38));});}['_generateTape'](_0x3dbe3a,_0x5ccc90){if(_0x3dbe3a['is']('element','$text'))_0x5ccc90['push']({'item':_0x3dbe3a,'type':'text'});else{_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementStart'});for(const _0x2e2687 of _0x3dbe3a['getChildren']())this['_generateTape'](_0x2e2687,_0x5ccc90);_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementEnd'});}return _0x5ccc90;}['_getState'](){const _0x24e574=new Map(this['_touched']),_0x46670f=new Map(_0x24e574),_0x3798b4=new Map(),_0x12ac6f={'insertions':{},'deletions':{}},_0x143e89={'insertions':{},'deletions':{}},_0x128694=new Map(),_0x2f2993=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2f2993['delete']('$graveyard');for(const _0x3bbb7d of _0x2f2993){const _0x51c9b4=this['_diffRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),_0x19c1cc=this['_baseRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1);_0x51c9b4['isAttached']()||_0x19c1cc['isAttached']()?(_0x12ac6f['insertions'][_0x3bbb7d]=F(_0x51c9b4),_0x12ac6f['deletions'][_0x3bbb7d]=F(_0x19c1cc),this['_copyMarkers'](_0x12ac6f['deletions'][_0x3bbb7d],_0x19c1cc),this['_copyMarkers'](_0x12ac6f['insertions'][_0x3bbb7d],_0x51c9b4),_0x143e89['insertions'][_0x3bbb7d]=this['_generateTape'](this['_idsRoots']['get'](_0x3bbb7d),[]),_0x143e89['deletions'][_0x3bbb7d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),[])):_0x2f2993['delete'](_0x3bbb7d);}for(const _0x55eb81 of _0x2f2993){const _0x131c25=_0x143e89['insertions'][_0x55eb81];for(const _0x10aaad of _0x131c25){const _0x19ce73=this['_getVidAttributeName'](_0x10aaad),_0x842c4d=_0x10aaad['item']['getAttribute'](_0x19ce73);_0x46670f['delete'](_0x842c4d),_0x842c4d>=this['_startingRevisionId']&&_0x3798b4['set'](_0x842c4d,_0x24e574['get'](_0x842c4d));}}for(const _0x5201ab of _0x2f2993){const _0xe18253=_0x143e89['insertions'][_0x5201ab],_0x8bd45b=this['_getBaseVids'](_0x143e89['deletions'][_0x5201ab]);let _0x54fb92=0x0;for(const _0x12b5ac of _0xe18253){const _0xa82039=this['_getVidAttributeName'](_0x12b5ac),_0x2727c1=_0x12b5ac['item']['getAttribute'](_0xa82039);if(!_0x3798b4['has'](_0x2727c1)&&!_0x128694['has'](_0x2727c1)){if(_0x46670f['has'](_0x2727c1))_0x54fb92++;else{if(_0x2727c1!=_0x8bd45b[_0x54fb92]){const _0x551d2f=_0x24e574['get'](_0x2727c1)||_0x24e574['get'](_0x8bd45b[_0x54fb92]);for(;_0x2727c1!=_0x8bd45b[_0x54fb92];)_0x46670f['has'](_0x8bd45b[_0x54fb92])||(_0x128694['set'](_0x8bd45b[_0x54fb92],_0x551d2f),_0x24e574['set'](_0x8bd45b[_0x54fb92],_0x551d2f)),_0x54fb92++;}_0x54fb92++;}}}}for(const _0x433476 of _0x2f2993){const _0x51bfec=_0x143e89['insertions'][_0x433476];for(const _0x15b8d6 of _0x51bfec){const _0x19b115=this['_getVidAttributeName'](_0x15b8d6),_0x24feb5=_0x15b8d6['item']['getAttribute'](_0x19b115);if(_0x128694['has'](_0x24feb5)){const _0x421661=_0x128694['get'](_0x24feb5);_0x46670f['has'](_0x24feb5)||_0x46670f['set'](_0x24feb5,{..._0x421661}),_0x3798b4['set'](_0x24feb5,{..._0x421661});}}}for(const _0x31d48e of _0x46670f['keys']())_0x31d48e>=this['_startingRevisionId']&&_0x46670f['delete'](_0x31d48e);const _0x5d6a29=new Map();for(const _0x5562c4 of _0x2f2993){let _0x378b5d=_0x143e89['insertions'][_0x5562c4];for(const _0x294540 of _0x378b5d)if(_0x294540['item']['is']('element','tableCell')){const _0x49d477=this['_getVidAttributeName'](_0x294540),_0x1d5a37=_0x294540['item']['getAttribute'](_0x49d477);if(_0x3798b4['has'](_0x1d5a37)){const _0x2200f3=_0x294540['item']['parent']['parent']['getAttribute']('vid_start'),_0x40d1b8=_0x5d6a29['get'](_0x2200f3)||new Set();_0x40d1b8['add'](_0x3798b4['get'](_0x1d5a37)['userId']),_0x5d6a29['set'](_0x2200f3,_0x40d1b8);}}_0x378b5d=_0x143e89['deletions'][_0x5562c4];for(const _0x20fca5 of _0x378b5d)if(_0x20fca5['item']['is']('element','tableCell')){const _0x5ded06=this['_getVidAttributeName'](_0x20fca5),_0x1842ea=_0x20fca5['item']['getAttribute'](_0x5ded06);if(_0x46670f['has'](_0x1842ea)){const _0x34e1ad=_0x20fca5['item']['parent']['parent']['getAttribute']('vid_start'),_0x5de7ab=_0x5d6a29['get'](_0x34e1ad)||new Set();_0x5de7ab['add'](_0x46670f['get'](_0x1842ea)['userId']),_0x5d6a29['set'](_0x34e1ad,_0x5de7ab);}}for(const _0x28a1ef of _0x5d6a29['keys']())(_0x3798b4['has'](_0x28a1ef)||_0x46670f['has'](_0x28a1ef))&&_0x5d6a29['delete'](_0x28a1ef);}for(const _0x50cea2 of _0x2f2993){const _0x396edc=_0x143e89['insertions'][_0x50cea2];let _0x5c3628=null,_0x1aff6f=null;for(const _0x119f96 of _0x396edc){const _0x4c6349=this['_getVidAttributeName'](_0x119f96),_0x2ce2d7=_0x119f96['item']['getAttribute'](_0x4c6349),_0x5bc010=_0x5d6a29['get'](_0x2ce2d7);_0x5bc010&&'elementStart'==_0x119f96['type']&&(_0x5c3628=Array['from'](_0x5bc010)[0x0],_0x1aff6f=_0x119f96['item']['getAttribute']('vid_end')),_0x5c3628&&(_0x46670f['set'](_0x2ce2d7,{'userId':_0x5c3628}),_0x3798b4['set'](_0x2ce2d7,{'userId':_0x5c3628})),_0x2ce2d7==_0x1aff6f&&(_0x5c3628=null,_0x1aff6f=null);}}const _0x5ca6ce={},_0x79e4e4=new Set();for(const _0x265ff5 of _0x2f2993){const _0x4e83f2=_0x12ac6f['deletions'][_0x265ff5],_0x2ee800=_0x12ac6f['insertions'][_0x265ff5];for(const {userId:_0x22c1b1}of this['_touchedMarkers']['values']())null!==_0x22c1b1&&_0x79e4e4['add'](_0x22c1b1);for(const {userId:_0x3ea17a}of this['_touchedRoots']['values']())null!==_0x3ea17a&&_0x79e4e4['add'](_0x3ea17a);this['_markChanges'](_0x2ee800,_0x143e89['insertions'][_0x265ff5],_0x3798b4,'insertion',_0x79e4e4),this['_markChanges'](_0x4e83f2,_0x143e89['deletions'][_0x265ff5],_0x46670f,'deletion',_0x79e4e4),_0x5ca6ce[_0x265ff5]={'insertions':this['_prepareViewToSave'](_0x2ee800),'deletions':this['_prepareViewToSave'](_0x4e83f2),'attachChange':this['_touchedRoots']['get'](_0x265ff5)||null,'attributesBefore':_0x295472(this['_baseRootsAttributes']['get'](_0x265ff5))||{},'attributesAfter':_0x295472(this['_diffRootsAttributes']['get'](_0x265ff5))};}return{'diffData':_0x5ca6ce,'authorsIds':Array['from'](_0x79e4e4)};}['_processRootBeforeSave'](_0x19f406){for(const [,_0x5f1473]of _0x19f406['markers']){const _0x47ff96=_0x5f1473['start']['getAncestors']()['filter'](_0x49bb5d=>'tableCell'==_0x49bb5d['name']);for(const _0x291458 of _0x47ff96)0x1==_0x291458['childCount']&&_0x291458['getChild'](0x0)['is']('element','paragraph')&&_0x291458['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2add00){this['_processRootBeforeSave'](_0x2add00);const _0x299e8f=this['editor']['data']['toView'](_0x2add00,{}),_0x29eada=Array['from'](_0x299e8f['getChildren']())['map'](_0x2dc3ad=>this['_getViewJson'](_0x2dc3ad));return JSON['stringify'](_0x29eada);}['_getViewJson'](_0x14899e){if(_0x14899e['is']('$text'))return _0x14899e['data'];{const _0x421e12=_0x14899e;return{'type':Object['keys'](C)['find'](_0x2512f5=>_0x14899e instanceof C[_0x2512f5]),'name':_0x421e12['name'],'attributes':Array['from'](_0x421e12['getAttributes']()),'children':Array['from'](_0x421e12['getChildren']())['map'](_0x73a231=>this['_getViewJson'](_0x73a231))};}}['_markChanges'](_0x3990d6,_0x58b58a,_0xbb3167,_0x5df67f,_0x224bbe){let _0x406aa4=null,_0xe685d4=null,_0x3be966=0x0;const _0x18592c=this['editor']['model'];for(let _0x5d7a97=0x0;_0x5d7a97<_0x58b58a['length'];_0x5d7a97++){const _0x405fec=this['_getVidAttributeName'](_0x58b58a[_0x5d7a97]),_0x2cc560=_0x58b58a[_0x5d7a97]['item']['getAttribute'](_0x405fec),_0x5c010d=_0xbb3167['get'](_0x2cc560),_0x4bf5d7=_0x5d7a97==_0x58b58a['length']-0x1;(!_0x406aa4&&_0x5c010d&&(_0x406aa4=_0x5c010d,_0xe685d4=_0x58b58a[_0x5d7a97]),_0x406aa4&&(!_0x5c010d||_0x5c010d['userId']!=_0x406aa4['userId']))&&(_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),J(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c)),_0x406aa4=_0x5c010d||null,_0xe685d4=_0x5c010d?_0x58b58a[_0x5d7a97]:null),_0x406aa4&&_0x4bf5d7&&_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),q(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c));}function _0x1eb6ba(_0x10d366,_0x1dcf7f,_0x5778d5){const _0x9e9607=_0x406aa4['userId'],_0x12301c='revision:'+_0x5df67f+':'+_0x9e9607+':'+_0x3be966++,_0x370d83=_0x18592c['createRange'](_0x1dcf7f,_0x5778d5);_0x3990d6['markers']['set'](_0x12301c,_0x370d83),null!==_0x9e9607&&_0x224bbe['add'](_0x9e9607);}}['_getVidAttributeName'](_0x2624d5){switch(_0x2624d5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1c31dd,_0x55ae2d){_0x1c31dd['baseVersion']=null;for(const _0x2650a0 in _0x1c31dd){const _0xfe793c=_0x1c31dd[_0x2650a0];if(_0xfe793c instanceof gt){const _0x1038d7=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixPosition'](_0xfe793c,_0x1038d7);}if(_0xfe793c instanceof vt){const _0x2b143b=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixRange'](_0xfe793c,_0x2b143b);}'root'===_0x2650a0&&(_0x1c31dd['root']=_0x55ae2d['get'](_0x1c31dd['root']['rootName']));}}['_fixRange'](_0x1394e4,_0x317ff7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1394e4['start'],_0x317ff7),this['_fixPosition'](_0x1394e4['end'],_0x317ff7));}['_fixPosition'](_0x3d2c5b,_0x1d43b0){return this['editor']['model']['createPositionFromPath'](_0x1d43b0,_0x3d2c5b['path'],_0x3d2c5b['stickiness']);}['_handleInsertOperation'](_0x59256a){const _0x37dd52=this['_idsRoots']['get'](_0x59256a['position']['root']['rootName']),_0x18aa61=this['_fixPosition'](_0x59256a['position'],_0x37dd52),_0x59ea7d=null===_0x59256a['_authorId']?null:_0x59256a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d06bf=_0x18aa61['parent'],_0xd207b6=this['_revisionId'],_0x5ac66c=[];for(const _0x287382 of _0x59256a['nodes'])if(_0x287382['is']('element'))_0x5ac66c['push'](this['_makeIdsRoot'](_0x287382));else{for(let _0x35968f=0x0;_0x35968f<_0x287382['offsetSize'];_0x35968f++)_0x5ac66c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x382b39=this['_revisionId'];for(let _0x45d6c5=_0xd207b6;_0x45d6c5<_0x382b39;_0x45d6c5++)this['_touched']['set'](_0x45d6c5,{'userId':_0x59ea7d});_0x3d06bf['_insertChild'](_0x18aa61['offset'],_0x5ac66c);}['_handleMoveOperation'](_0x192e87){(_0x192e87=this['_cloneOperation'](_0x192e87,this['_idsRoots']))['_execute']();const _0x409134=null===_0x192e87['_authorId']?null:_0x192e87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1754ce=_0x192e87['getMovedRangeStart'](),_0xdc582c=_0x1754ce['parent'],_0x51212e=_0x1754ce['offset'];!function _0x1e3518(_0x255c5c,_0x467b8c,_0x498460,_0x50a4dd){for(let _0x12a31d=_0x498460;_0x12a31d<_0x50a4dd;_0x12a31d++){const _0x100e4b=_0x467b8c['getChild'](_0x12a31d);_0x100e4b['is']('element','$text')?_0x255c5c['set'](_0x100e4b['getAttribute']('vid'),{'userId':_0x409134}):(_0x255c5c['set'](_0x100e4b['getAttribute']('vid_start'),{'userId':_0x409134}),_0x1e3518(_0x255c5c,_0x100e4b,0x0,_0x100e4b['childCount']),_0x255c5c['set'](_0x100e4b['getAttribute']('vid_end'),{'userId':_0x409134}));}}(this['_touched'],_0xdc582c,_0x51212e,_0x51212e+_0x192e87['howMany']);}['_handleMergeOperation'](_0x2c441e){const _0x31380c=null===(_0x2c441e=this['_cloneOperation'](_0x2c441e,this['_idsRoots']))['_authorId']?null:_0x2c441e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251d38=_0x2c441e['targetPosition']['parent'],_0x3510d0=_0x2c441e['sourcePosition']['parent'],_0xe0a236=_0x251d38['getAttribute']('vid_end'),_0x249217=_0x3510d0['getAttribute']('vid_start');_0x251d38['_setAttribute']('vid_end',_0x3510d0['getAttribute']('vid_end')),_0x3510d0['_setAttribute']('vid_end',_0xe0a236),this['_touched']['set'](_0x249217,{'userId':_0x31380c}),this['_touched']['set'](_0xe0a236,{'userId':_0x31380c}),_0x2c441e['_execute']();}['_handleSplitOperation'](_0x1b0239){const _0x27d995=null===(_0x1b0239=this['_cloneOperation'](_0x1b0239,this['_idsRoots']))['_authorId']?null:_0x1b0239['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28caa6=_0x1b0239['graveyardPosition'],_0x39f2e3=_0x1b0239['splitPosition']['parent'];_0x1b0239['_execute']();const _0x44e156=_0x39f2e3['getAttribute']('vid_end'),_0x3ffe2c=_0x1b0239['insertionPosition']['nodeAfter'];if(_0x28caa6){const _0x435ac6=_0x3ffe2c['getAttribute']('vid_end'),_0x3cfebe=_0x39f2e3['getAttribute']('vid_end');_0x39f2e3['_setAttribute']('vid_end',_0x435ac6),_0x3ffe2c['_setAttribute']('vid_end',_0x3cfebe),this['_touched']['set'](_0x39f2e3['getAttribute']('vid_end'),{'userId':_0x27d995}),this['_touched']['set'](_0x3ffe2c['getAttribute']('vid_start'),{'userId':_0x27d995});}else{const _0x29dab3=this['_revisionId']++,_0x4b89ce=this['_revisionId']++;_0x39f2e3['_setAttribute']('vid_end',_0x29dab3),_0x3ffe2c['_setAttribute']('vid_start',_0x4b89ce),_0x3ffe2c['_setAttribute']('vid_end',_0x44e156),this['_touched']['set'](_0x29dab3,{'userId':_0x27d995}),this['_touched']['set'](_0x4b89ce,{'userId':_0x27d995});}}['_handleMarkerOperation'](_0x2a2564){if(!_0x2a2564['affectsData'])return;const _0x3998da=(_0x2a2564=this['_cloneOperation'](_0x2a2564,this['_diffRoots']))['oldRange']?_0x2a2564['oldRange']['root']:null,_0x3b1bf4=_0x2a2564['newRange']?_0x2a2564['newRange']['root']:null;_0x3998da&&this['_markers']['delete'](_0x2a2564['name']),_0x3b1bf4&&this['_markers']['set'](_0x2a2564['name'],_0x2a2564['newRange']['clone']());const _0x19ee5d=null===_0x2a2564['_authorId']?null:_0x2a2564['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575309=_0x2a2564['name'];if(!this['_touchedMarkers']['has'](_0x575309))return void this['_touchedMarkers']['set'](_0x575309,{'range':_0x2a2564['oldRange'],'userId':_0x19ee5d});const _0x3ef388=this['_touchedMarkers']['get'](_0x575309),_0x587342=_0x3ef388['range'],_0xc390fa=_0x2a2564['newRange'];null==_0x587342&&null==_0xc390fa||_0x587342&&_0xc390fa&&_0x587342['isEqual'](_0xc390fa)?this['_touchedMarkers']['delete'](_0x2a2564['name']):_0x3ef388['userId']=_0x19ee5d;}['_handleRootOperation'](_0x408399,_0x43ec6c){this['_diffRoots']['has'](_0x408399['rootName'])?this['_diffRoots']['get'](_0x408399['rootName'])['_isAttached']=_0x408399['isAdd']:(this['_diffRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x408399['rootName'],{}),_0x43ec6c&&this['_idsRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)));const _0x17c5d9=null===_0x408399['_authorId']?null:_0x408399['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x762f70=this['_touchedRoots']['get'](_0x408399['rootName']);_0x762f70&&_0x762f70['userId']===_0x17c5d9?this['_touchedRoots']['delete'](_0x408399['rootName']):this['_touchedRoots']['set'](_0x408399['rootName'],{'userId':_0x17c5d9,'isAttached':_0x408399['isAdd']});}['_handleRootAttributeOperation'](_0x847968){const _0x162c93=this['_diffRootsAttributes']['get'](_0x847968['root']['rootName']);null===_0x847968['newValue']?delete _0x162c93[_0x847968['key']]:_0x162c93[_0x847968['key']]=_0x847968['newValue'];}}function F(_0x51e79c){const _0x3081c5=B(_0x51e79c['rootName'],_0x51e79c['isAttached']());for(const _0x587a1b of _0x51e79c['getChildren']()){const _0x3e10aa=_0x587a1b['_clone'](!0x0);_0x3081c5['_appendChild'](_0x3e10aa);}return _0x3081c5;}function B(_0x1290c2,_0x6e1acf=!0x0){const _0x19edfd=new wt();return _0x19edfd['rootName']=_0x1290c2,_0x19edfd['_isAttached']=_0x6e1acf,_0x19edfd['isAttached']=()=>_0x19edfd['_isAttached'],_0x19edfd;}function J(_0xa7ba6,_0x5ceb4e,_0x186ed5){const _0x2ac71a='elementEnd'==_0xa7ba6['type']?_0x186ed5['createPositionAt'](_0xa7ba6['item'],'end'):_0x186ed5['createPositionBefore'](_0xa7ba6['item']);return _0x186ed5['createPositionFromPath'](_0x5ceb4e,_0x2ac71a['path'],_0x2ac71a['stickiness']);}function q(_0x4b4325,_0x16126c,_0x29308d){const _0x2338ac='elementStart'==_0x4b4325['type']?_0x29308d['createPositionAt'](_0x4b4325['item'],0x0):_0x29308d['createPositionAfter'](_0x4b4325['item']);return _0x29308d['createPositionFromPath'](_0x16126c,_0x2338ac['path'],_0x2338ac['stickiness']);}class ns extends _0x2c43c9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x509ee3,_0x48cbbe){super(_0x509ee3),this['focusTracker']=new _0x5cf0e0(),this['keystrokes']=new _0x3a2814(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x48cbbe),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x5b1924({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xdd905d=_0x118df9=>_0x118df9['stopPropagation']();this['keystrokes']['set']('arrowright',_0xdd905d),this['keystrokes']['set']('arrowleft',_0xdd905d),this['keystrokes']['set']('arrowup',_0xdd905d),this['keystrokes']['set']('arrowdown',_0xdd905d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x36a197){this['revisionNameInputView']['fieldView']['element']['value']=_0x36a197['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4cc47d){const _0x4bb1dc=new at(this['locale'],_0x4fabfa),_0x196073=_0x4bb1dc['fieldView'];_0x196073['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x20564a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4cc47d&&(_0x20564a+='\x20('+R(this['locale'],'optional')+')'),(_0x4bb1dc['label']=_0x20564a,_0x196073['on']('input',()=>{this['revisionNameInputValue']=_0x196073['element']['value']['trim']();}),_0x4bb1dc);}}class u extends _0x24aabd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2b95b0=this['editor'],_0xbc630c=_0x2b95b0['plugins']['get']('RevisionTracker');_0x2b95b0['ui']['componentFactory']['add']('revisionHistory',_0x534a0a=>{const _0x212096=_0x20789c(_0x534a0a),_0xf81698=_0x212096['panelView']['children'],_0x41302d=new te(_0x534a0a),_0x4694db=new _0x4e494e(_0x534a0a),_0x20f1e6=new _0x15a92a(_0x534a0a),_0x3d873b=new _0x4e494e(_0x534a0a),_0x1fd945=new _0x15a92a(_0x534a0a);return _0x212096['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x37081a,_0x9d7e75,_0x5e67b0)=>_0x37081a&&_0x9d7e75&&!_0x5e67b0),_0x212096['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x534a0a,'Revision\x20history'),'tooltip':!0x0}),_0x20f1e6['set']({'label':R(_0x534a0a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20f1e6['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x4fbefa,_0x1bedeb,_0x1100f8)=>_0x4fbefa&&_0x1bedeb&&!_0x1100f8),_0x20f1e6['on']('execute',()=>this['_showDialog']()),_0x1fd945['set']({'label':R(_0x534a0a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1fd945['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0x2b95b0,'isReadOnly',(_0x5a6635,_0x41be6c)=>_0x5a6635&&!_0x41be6c),_0x1fd945['on']('execute',()=>{_0x2b95b0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x212096['isOpen']=!0x1,_0x2b95b0['editing']['view']['focus']();}),_0x4694db['children']['add'](_0x20f1e6),_0x3d873b['children']['add'](_0x1fd945),_0x41302d['role']='menu',_0x41302d['items']['addMany']([_0x4694db,_0x3d873b]),_0xf81698['add'](_0x41302d),_0x212096;}),_0x2b95b0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32c57f=this['editor'],_0x5ce71d=_0x32c57f['locale'],_0x446330=new _0x5320cf(_0x5ce71d),_0x48597e=new _0xae8b9(_0x5ce71d);_0x446330['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x5ce71d,'Revision\x20history')});const _0x32273a=new _0x414113(_0x5ce71d,_0x446330),_0x50b1a6=new _0x1ea6c3(_0x5ce71d);_0x50b1a6['set']({'label':R(_0x5ce71d,'Save\x20current\x20revision')}),_0x50b1a6['delegate']('execute')['to'](_0x446330),_0x50b1a6['on']('execute',()=>{this['_showDialog']();}),_0x32273a['children']['add'](_0x50b1a6),_0x48597e['items']['add'](_0x32273a);const _0x1f2674=new _0x414113(_0x5ce71d,_0x446330),_0x166ed1=new _0x1ea6c3(_0x5ce71d);return _0x166ed1['set']({'label':R(_0x5ce71d,'Open\x20revision\x20history')}),_0x166ed1['delegate']('execute')['to'](_0x446330),_0x166ed1['on']('execute',()=>{_0x32c57f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1f2674['children']['add'](_0x166ed1),_0x48597e['items']['add'](_0x1f2674),_0x446330['panelView']['children']['add'](_0x48597e),_0x446330;}['_showDialog'](){const _0x25e441=this['editor'],_0x5014bb=_0x25e441['locale'],_0x239a38=_0x25e441['plugins']['get']('Dialog'),_0x45d2f8=_0x25e441['plugins']['get']('RevisionTracker');function _0x4c32af(_0x41dbfc){_0x25e441['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41dbfc['revisionName']?_0x41dbfc['revisionNameInputView']['errorText']=R(_0x5014bb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x25e441['plugins']['get'](l)['saveRevision']({'name':_0x41dbfc['revisionName']}),_0x239a38['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c32af(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x239a38['show']({'id':'revisionSave','title':R(_0x5014bb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x25e441['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x239a38['hide']()},{'label':R(_0x25e441['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xcc2988){_0xcc2988['bind']('isEnabled')['to'](_0x45d2f8,'isReady',_0x45d2f8,'isEnabled',_0x25e441,'isReadOnly',(_0x1be6e2,_0x9320dd,_0x2a09ff)=>_0x1be6e2&&_0x9320dd&&!_0x2a09ff);},'onExecute':()=>_0x4c32af(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e050e=this['editor'],_0x422836=_0x2e050e['locale'];this['_saveRevisionFormView']=new ns(_0x422836,_0x2e050e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2c43c9{['changeId'];['_model'];constructor(_0x5cbbeb,_0x5ef592){super(_0x5cbbeb),this['_model']=_0x5ef592,this['changeId']=_0x5ef592['id'];const _0x5d40d0=this['bindTemplate'],_0x355751=R(_0x5cbbeb,_0x5ef592['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ef592['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ef592['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5d40d0['to']('type',_0x517949=>'ck-revision-change__'+_0x517949)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x355751}]},{'text':'\x20'+_0x5ef592['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5c7d88(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x292ad7){super(),this['id']=_0x292ad7['id']||_0x4dce4d(),this['author']=_0x292ad7['author'],this['type']=_0x292ad7['type'],this['data']=_0x292ad7['data']||{},this['rootName']=_0x292ad7['rootName'],this['set']('createdAt',_0x292ad7['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2afd34,_0x1590ae){this['newRevisionId']=_0x2afd34,this['oldRevisionId']=_0x1590ae,this['changes']=new _0x2ad968();}['_setChanges'](_0x56a35c){for(const _0xcae32c of _0x56a35c)this['changes']['add'](_0xcae32c);}}const Z={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class d extends _0x24aabd{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4943c5,_0x276f8f,j];}constructor(_0x3e28e3){super(_0x3e28e3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x234696,_0x927a59,_0x4ccb61)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xa2dbe0=>{for(const _0x36b414 of this['editor']['editing']['view']['document']['roots'])_0x4ccb61?_0xa2dbe0['removeClass']('ck-editor__editable__overlay',_0x36b414):_0xa2dbe0['addClass']('ck-editor__editable__overlay',_0x36b414);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x51ee7a=>null!==_0x51ee7a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x16ef7f,_0x3b8007,_0x331292)=>_0x16ef7f&&_0x331292?_0x3b8007['changes']['getIndex'](_0x331292):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4fd678,_0x574be7)=>_0x4fd678?_0x574be7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x276f8f);}['init'](){const _0x277f92=this['editor'],_0x4e5aee=new bt(_0x277f92,{'direction':'backward'}),_0xb84a9a=new bt(_0x277f92,{'direction':'forward'});(_0x277f92['commands']['add']('showPreviousChange',_0x4e5aee),_0x277f92['commands']['add']('showNextChange',_0xb84a9a),_0x277f92['commands']['add']('restoreRevision',new yt(_0x277f92)),this['on']('change:numberOfChanges',()=>{_0x4e5aee['refresh'](),_0xb84a9a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x277f92['enableReadOnlyMode']('revision-viewer'),_0x277f92['plugins']['has']('WidgetToolbarRepository'))&&_0x277f92['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3019e2){await this['loadRevisionData'](_0x3019e2);const _0x49eeb3={};for(const _0x42f227 in _0x3019e2['diffData']){if(_0x3019e2['diffData'][_0x42f227]['attachChange']&&!_0x3019e2['diffData'][_0x42f227]['attachChange']['isAttached'])continue;const _0x54bc17=this['_removeRevisionMarkers'](JSON['parse'](_0x3019e2['diffData'][_0x42f227]['insertions'])),_0x489995=this['editor']['editing']['view']['document'],_0x204556=new _0x4833c1(_0x489995,_0x54bc17['map'](_0x1aaa78=>this['_getViewObj'](_0x1aaa78)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49eeb3[_0x42f227]=this['editor']['data']['processor']['toData'](_0x204556),this['editor']['data']['processor']['useFillerType']('default');}return _0x49eeb3;}async['getRevisionRootsAttributes'](_0x28776f){await this['loadRevisionData'](_0x28776f);const _0x427492={};for(const _0x43174d in _0x28776f['diffData'])_0x28776f['diffData'][_0x43174d]['attachChange']&&!_0x28776f['diffData'][_0x43174d]['attachChange']['isAttached']||(_0x427492[_0x43174d]=_0x28776f['diffData'][_0x43174d]['attributesAfter']||{});return _0x427492;}['_removeRevisionMarkers'](_0x1738cd){return(_0x1738cd=_0x1738cd['filter'](_0x3bd105=>!_0x3bd105['name']||'revision-start'!==_0x3bd105['name']&&'revision-end'!==_0x3bd105['name']))['forEach'](_0x26b757=>{'string'!=typeof _0x26b757&&(_0x26b757['children']=this['_removeRevisionMarkers'](_0x26b757['children']),_0x26b757['attributes']=_0x26b757['attributes']['filter'](_0x41dcc4=>!_0x41dcc4[0x0]['startsWith']('data-revision-')));}),_0x1738cd;}async['compare'](_0x1bf94e,_0xd3e591,_0x4329c8=!0x1){if(!this['isEnabled'])return;const _0x481aa7=this['diff'],_0x2be1f0=this['repository'],_0x576362='string'==typeof _0x1bf94e?_0x2be1f0['getRevision'](_0x1bf94e):_0x1bf94e,_0x2cb11a='string'==typeof _0xd3e591?_0x2be1f0['getRevision'](_0xd3e591):_0xd3e591,_0x5d6e1c=_0x576362['id'],_0x5a0be9=_0x2cb11a?_0x2cb11a['id']:null;if(!_0x4329c8&&this['diff']&&this['diff']['newRevisionId']===_0x5d6e1c&&this['diff']['oldRevisionId']===_0x5a0be9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5d6e1c,_0x5a0be9);const _0x264e5f=this['_getRevisionsRange'](_0x576362,_0x2cb11a,!0x0)['map'](_0x431fe0=>this['loadRevisionData'](_0x431fe0));return _0x264e5f['push'](new Promise(_0x4eea36=>{setTimeout(_0x4eea36,0x14);})),Promise['all'](_0x264e5f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7be1c9=this['_getDiff'](_0x5d6e1c,_0x5a0be9);for(const _0x54b90a of _0x7be1c9['changes'])this['_changeIdToChange']['set'](_0x54b90a['id'],_0x54b90a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x198a9d=>{for(const _0xcabfb of this['editor']['model']['document']['getRootNames']())_0x198a9d['detachRoot'](_0xcabfb);for(const _0xa434f0 of Object['keys'](_0x7be1c9['model'])){const _0x44faee=_0x198a9d['addRoot'](_0xa434f0);for(const _0x57475d of Object['keys'](_0x7be1c9['attributes'][_0xa434f0]))_0x198a9d['setAttribute'](_0x57475d,_0x7be1c9['attributes'][_0xa434f0][_0x57475d],_0x44faee);_0x198a9d['insert'](_0x7be1c9['model'][_0xa434f0],_0x44faee,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7be1c9['changes'])),this['isReady']=!0x0;})['catch'](_0x498f6a=>{console['error'](_0x498f6a),this['_cleanUp'](),_0x481aa7&&(this['diff']=_0x481aa7),this['isReady']=!0x0;});}['addRevisionData'](_0x9aa945,_0x20abdb){const _0x382283=this['repository']['createRevision'](_0x9aa945);return _0x382283['on']('_update',(_0x56c4eb,_0x96a66b,_0x3d693c)=>_0x20abdb(_0x96a66b,_0x3d693c,_0x382283)),this['repository']['addRevision'](_0x382283),_0x382283;}['loadRevisionData'](_0x42947b){if(!_0x42947b||_0x42947b['diffData'])return Promise['resolve']();{const _0x28b187=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28b187,'revisionId':_0x42947b['id']})['then'](_0x301714=>{_0x42947b['_update']({'diffData':_0x301714['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2bbe6d=>{for(const _0x37800d of this['editor']['model']['document']['getRootNames']())_0x2bbe6d['detachRoot'](_0x37800d);});}['_sortAndFilterDiffChanges'](_0x297f2){const _0x10125c=[],_0x3915d6=new Map();for(const _0x55c1a2 of this['editor']['model']['document']['getRootNames']()){const _0x5bcf50=this['editor']['editing']['view']['getDomRoot'](_0x55c1a2);if(!_0x5bcf50)continue;const _0x3be814=_0x5bcf50['getClientRects']()['item'](0x0);_0x3be814&&(_0x10125c['push'](_0x55c1a2),_0x3915d6['set'](_0x55c1a2,_0x3be814));}return _0x10125c['sort']((_0x3f811a,_0x3a5c11)=>{const _0x242912=_0x3915d6['get'](_0x3f811a),_0x5b7361=_0x3915d6['get'](_0x3a5c11);return _0x242912['y']-_0x5b7361['y']||_0x242912['x']-_0x5b7361['x'];}),(_0x297f2=_0x297f2['filter'](_0x187d0a=>_0x10125c['includes'](_0x187d0a['rootName'])))['sort']((_0x3d2702,_0x3d5aad)=>_0x10125c['indexOf'](_0x3d2702['rootName'])-_0x10125c['indexOf'](_0x3d5aad['rootName'])),_0x297f2;}['_makeTape'](_0xfcda5){const _0x333295=Array['from'](_0xfcda5['markers'])['filter'](([_0x185ba5,_0x46036c])=>_0x185ba5['startsWith']('revision:')&&!_0x46036c['isCollapsed']),_0x474f31=Array['from'](this['editor']['model']['createRangeIn'](_0xfcda5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x333295['length'])for(const _0x1d3b4b of _0x474f31){const [_0x47232e,_0x40a640]=_0x333295[0x0],[,_0x4d6ffa,_0x2bc427]=_0x47232e['split'](':');if(_0x40a640['end']['isEqual'](_0x1d3b4b['nextPosition'])&&_0x333295['shift'](),(_0x1d3b4b['previousPosition']['isEqual'](_0x40a640['start'])||_0x1d3b4b['previousPosition']['isAfter'](_0x40a640['start']))&&('insertion'==_0x4d6ffa?_0x1d3b4b['isAdded']={'userId':_0x2bc427}:'deletion'==_0x4d6ffa&&(_0x1d3b4b['isRemoved']={'userId':_0x2bc427})),0x0==_0x333295['length'])break;}return _0x474f31;}['_refreshStartEndIndex'](_0x2ff1d0){const _0xa5cb1=new Map();for(let _0x126803=0x0;_0x126803<_0x2ff1d0['length'];_0x126803++)'text'===_0x2ff1d0[_0x126803]['type']?(_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803,_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803):('elementStart'===_0x2ff1d0[_0x126803]['type']?_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803:'elementEnd'===_0x2ff1d0[_0x126803]['type']&&(_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803),_0xa5cb1['set'](_0x2ff1d0[_0x126803]['id'],_0x126803));for(const _0x3fd35a of _0xa5cb1['values']())'elementStart'===_0x2ff1d0[_0x3fd35a]['type']?_0x2ff1d0[_0x3fd35a]['item']['endIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']):'elementEnd'===_0x2ff1d0[_0x3fd35a]['type']&&(_0x2ff1d0[_0x3fd35a]['item']['startIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']));}['_processTape'](_0x354f61){for(let _0x261b6a=0x0;_0x261b6a<_0x354f61['length'];_0x261b6a++){if('elementStart'===_0x354f61[_0x261b6a]['type'])_0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a;else{if('elementEnd'===_0x354f61[_0x261b6a]['type']){_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a;const _0x28b58b=_0x354f61[_0x261b6a]['item']['startIndex'];_0x354f61[_0x28b58b]['pairId']=_0x354f61[_0x261b6a]['id'],_0x354f61[_0x261b6a]['pairId']=_0x354f61[_0x28b58b]['id'];}else _0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a,_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a,_0x354f61[_0x261b6a]['pairId']=null;}_0x354f61[_0x261b6a]['markersStart']||(_0x354f61[_0x261b6a]['markersStart']=[],_0x354f61[_0x261b6a]['markersEnd']=[]);}}['_markInsertions'](_0x598f08,_0x43e6c5){const _0x296cab=_0x598f08['filter'](_0x1fccb3=>!_0x1fccb3['isAdded']);for(let _0x5e87c7=0x0;_0x5e87c7<_0x43e6c5['length'];_0x5e87c7++)_0x43e6c5[_0x5e87c7]['isAdded']&&(_0x296cab[_0x5e87c7]['isAdded']=_0x43e6c5[_0x5e87c7]['isAdded']);}['_makeModelFromViewString'](_0x7e8d2e){const _0x283a5f=JSON['parse'](_0x7e8d2e),_0xf75380=this['editor']['editing']['view']['document'],_0x42811a=new _0x4833c1(_0xf75380,_0x283a5f['map'](_0x427313=>this['_getViewObj'](_0x427313)));return this['editor']['data']['toModel'](_0x42811a);}['_getViewObj'](_0x4cc5a5){const _0x3b2f53=this['editor']['editing']['view']['document'];if('string'==typeof _0x4cc5a5)return new _0xd57083(_0x3b2f53,_0x4cc5a5);{const _0x5d64a6=_0x4cc5a5['children']['map'](_0x1bbedf=>this['_getViewObj'](_0x1bbedf));return new(Z[_0x4cc5a5['type']]||_0x2c4196)(_0x3b2f53,_0x4cc5a5['name'],_0x4cc5a5['attributes'],_0x5d64a6);}}['_getDiff'](_0x18c7dc,_0x439e9b=null){const _0x1beb89=this['repository']['getRevision'](_0x18c7dc),_0x27872b=_0x439e9b?this['repository']['getRevision'](_0x439e9b):null,_0x3dbdd2=this['_getRevisionsRange'](_0x1beb89,_0x27872b),_0x499c2b=_0x3dbdd2[_0x3dbdd2['length']-0x1],_0x3ad2c6=new Map(),_0x16af63={'model':{},'attributes':{},'changes':[]},_0x578150=new Set(),_0x2387b8=new Map();for(let _0x28b50a=_0x3dbdd2['length']-0x1;_0x28b50a>=0x0;_0x28b50a--){const _0x19b842=_0x3dbdd2[_0x28b50a];for(const _0x579c8c of Object['keys'](_0x19b842['diffData']))if(_0x19b842['diffData'][_0x579c8c]['attachChange']){const _0x24bf2e=_0x19b842['diffData'][_0x579c8c]['attachChange'];_0x24bf2e['isAttached']?(_0x578150['add'](_0x579c8c),_0x2387b8['has'](_0x579c8c)&&_0x2387b8['get'](_0x579c8c)['userId']==_0x24bf2e['userId']?_0x2387b8['delete'](_0x579c8c):_0x2387b8['set'](_0x579c8c,_0x24bf2e)):_0x2387b8['has'](_0x579c8c)?(_0x578150['delete'](_0x579c8c),_0x2387b8['delete'](_0x579c8c)):(_0x578150['add'](_0x579c8c),_0x2387b8['set'](_0x579c8c,_0x24bf2e));}else _0x578150['add'](_0x579c8c);}for(const _0x17f8b2 of _0x578150){const _0x3956d0=_0x2387b8['has'](_0x17f8b2)&&!_0x2387b8['get'](_0x17f8b2)['isAttached'];let _0x1ebb8d=_0x3956d0?_0x3dbdd2['length']-0x1:0x0;const _0x467f8c=_0x3956d0?-0x1:0x1;for(;_0x3dbdd2[_0x1ebb8d];){const _0x2a917f=_0x3dbdd2[_0x1ebb8d];if(_0x2a917f['diffData'][_0x17f8b2]){const _0x3e87a9=_0x3956d0?_0x2a917f['diffData'][_0x17f8b2]['attributesBefore']:_0x2a917f['diffData'][_0x17f8b2]['attributesAfter'];_0x16af63['attributes'][_0x17f8b2]=_0x3e87a9?_0x295472(_0x3e87a9):{};break;}_0x1ebb8d+=_0x467f8c;}}for(const _0x3bdb87 of _0x3dbdd2){_0x3bdb87['model']={};for(const _0x4bd6c2 of _0x3bdb87['authors'])_0x3ad2c6['set'](_0x4bd6c2['id'],_0x4bd6c2);for(const _0x544f46 of _0x578150){const _0x2c7004=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['insertions']:'[]',_0x483aac=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['deletions']:'[]';_0x3bdb87['model'][_0x544f46]={'insertions':this['_makeModelFromViewString'](_0x2c7004),'deletions':this['_makeModelFromViewString'](_0x483aac)};}}for(const _0x5d1d87 of _0x578150){let _0x427d9b=null,_0x74499a=0x0;const _0x4202f5=new Map(Array['from'](_0x1beb89['model'][_0x5d1d87]['insertions']['markers'])['filter'](([_0x328df5])=>!_0x328df5['startsWith']('revision:')));let _0x50b348=0x0;for(const _0x259823 of _0x3dbdd2){const _0x198d6f=this['_makeTape'](_0x259823['model'][_0x5d1d87]['insertions']);_0x259823==_0x1beb89?(_0x427d9b=_0x198d6f,_0x74499a=_0x427d9b['length'],_0x427d9b['forEach'](_0x508e01=>{_0x508e01['id']=_0x50b348++;}),this['_processTape'](_0x427d9b)):this['_markInsertions'](_0x427d9b,_0x198d6f);const _0x3ef541=_0x427d9b['filter'](_0x3d4985=>!_0x3d4985['isAdded'])['map'](_0x5030f9=>_0x5030f9['id']);let _0x589642=0x0;const _0x58790c=this['_makeTape'](_0x259823['model'][_0x5d1d87]['deletions']);_0x58790c['forEach'](_0x41d4cb=>{_0x41d4cb['isRemoved']?_0x41d4cb['id']=_0x74499a++:_0x41d4cb['id']=_0x3ef541[_0x589642++];}),this['_processTape'](_0x58790c),this['_setDistance'](_0x427d9b,'isAdded'),this['_setDistance'](_0x58790c,'isRemoved'),_0x259823==_0x1beb89&&this['_markMarkers'](_0x427d9b,_0x4202f5),_0x427d9b=this['_joinTapes'](_0x427d9b,_0x58790c),this['_refreshStartEndIndex'](_0x427d9b),this['_setDistance'](_0x427d9b,'isRemoved');}_0x427d9b=_0x427d9b['filter'](_0xce7c44=>!(_0xce7c44['isAdded']&&_0xce7c44['isRemoved']));const _0x19949b=new Map(_0x499c2b['model'][_0x5d1d87]['deletions']['markers']),_0x19dd8e=new Set(_0x4202f5['keys']());for(const _0x459230 of _0x19949b['keys']())_0x19dd8e['delete'](_0x459230);this['_markSuggestions'](_0x427d9b,_0x19dd8e),this['_fixObsoleteTags'](_0x427d9b),_0x427d9b=this['_removeMissingPairs'](_0x427d9b),_0x427d9b=this['_markMismatchedRemovedTags'](_0x427d9b),_0x427d9b=this['_removeUnsupportedChanges'](_0x427d9b);const {root:_0x212927,changes:_0x3a78aa}=this['_makeModelFromTape'](_0x427d9b,_0x3ad2c6,_0x5d1d87);_0x16af63['model'][_0x5d1d87]=_0x212927;const _0x3540e6=_0x2387b8['get'](_0x5d1d87);if(_0x3540e6){const _0x2b978a=_0x3ad2c6['get'](_0x3540e6['userId']),_0x1bc2bc=new r({'author':_0x2b978a,'type':_0x3540e6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d1d87});_0x3a78aa['unshift'](_0x1bc2bc),_0x16af63['attributes'][_0x5d1d87]['revisionHistoryAttachChange']=_0x1bc2bc['id'];}_0x16af63['changes']=_0x16af63['changes']['concat'](_0x3a78aa);}return _0x16af63;}['_markMarkers'](_0x257b62,_0x2b768f){for(let _0x1d4892=0x0;_0x1d4892<_0x257b62['length'];_0x1d4892++)for(const [_0x50712c,_0x3b5094]of _0x2b768f)_0x3b5094['start']['isEqual'](_0x257b62[_0x1d4892]['previousPosition'])&&_0x257b62[_0x1d4892]['markersStart']['push'](_0x50712c),_0x3b5094['end']['isEqual'](_0x257b62[_0x1d4892]['nextPosition'])&&_0x257b62[_0x1d4892]['markersEnd']['push'](_0x50712c);}['_joinTapes'](_0x4d828d,_0x263598){let _0x564555=[],_0x32ca2e=0x0,_0x545e2a=0x0;for(;_0x32ca2e<_0x4d828d['length']||_0x545e2a<_0x263598['length'];){const _0x4011d4=_0x4d828d[_0x32ca2e]||{},_0x55d00e=_0x263598[_0x545e2a]||{};if(_0x4011d4['id']==_0x55d00e['id'])_0x32ca2e++,_0x545e2a++,_0x564555['push'](_0x4011d4);else{if(_0x55d00e['isRemoved']&&_0x4011d4['isAdded']){const {commonTape:_0x1fea78,iEnd:_0x2b3555,jEnd:_0x35795c}=this['_threeWayMerge'](_0x4d828d,_0x32ca2e,_0x263598,_0x545e2a);_0x564555=_0x564555['concat'](_0x1fea78),_0x32ca2e=_0x2b3555,_0x545e2a=_0x35795c;}else _0x55d00e['isRemoved']?(_0x545e2a++,_0x564555['push'](_0x55d00e)):(_0x32ca2e++,_0x564555['push'](_0x4011d4));}}return _0x564555;}['_markSuggestions'](_0x57bcaf,_0x4bd173){const _0x32cf2b=[];for(let _0x460be3=0x0;_0x460be3<_0x57bcaf['length'];_0x460be3++){for(let _0x3d4fa7=0x0;_0x3d4fa7<_0x57bcaf[_0x460be3]['markersStart']['length'];_0x3d4fa7++){const _0x563ec4=_0x57bcaf[_0x460be3]['markersStart'][_0x3d4fa7];if(!_0x4bd173['has'](_0x563ec4))continue;const {group:_0x5226b5,type:_0x53cb37,authorId:_0x2dd7c2}=_0x1d71f0(_0x563ec4);'revision-suggestion'!=_0x5226b5||'insertion'!=_0x53cb37&&'deletion'!=_0x53cb37||(_0x32cf2b['unshift']({'type':_0x53cb37,'name':_0x563ec4,'userId':_0x2dd7c2}),_0x57bcaf[_0x460be3]['markersStart']['splice'](_0x3d4fa7,0x1),_0x3d4fa7--);}_0x45504b(_0x57bcaf[_0x460be3]);for(let _0x18f018=0x0;_0x18f018<_0x57bcaf[_0x460be3]['markersEnd']['length'];_0x18f018++){const _0x526bdd=_0x57bcaf[_0x460be3]['markersEnd'][_0x18f018];if(!_0x4bd173['has'](_0x526bdd))continue;const {group:_0x5d4593,type:_0x144d85}=_0x1d71f0(_0x526bdd);if('revision-suggestion'!=_0x5d4593||'insertion'!=_0x144d85&&'deletion'!=_0x144d85)continue;_0x57bcaf[_0x460be3]['markersEnd']['splice'](_0x18f018,0x1),_0x18f018--;const _0x32fc79=_0x32cf2b['findIndex'](_0x562bb8=>_0x562bb8['name']==_0x526bdd);_0x32fc79>-0x1&&_0x32cf2b['splice'](_0x32fc79,0x1);}}function _0x1d71f0(_0x164c57){const _0x571db3=_0x164c57['split'](':');return{'group':_0x571db3[0x0],'type':_0x571db3[0x1],'subType':_0x571db3['length']>=0x5?_0x571db3[0x2]:null,'id':_0x571db3['length']<0x5?_0x571db3[0x2]:_0x571db3[0x3],'authorId':_0x571db3['length']<0x5?_0x571db3[0x3]:_0x571db3[0x4],'markerCount':0x6==_0x571db3['length']?_0x571db3[0x5]:null};}function _0x45504b(_0x2a3afb){for(let _0xbdb32e=0x0;_0xbdb32e<_0x32cf2b['length'];_0xbdb32e++){if(_0x2a3afb['isAdded']&&'insertion'==_0x32cf2b[_0xbdb32e]['type'])return _0x2a3afb['isAddSuggestion']=_0x32cf2b[_0xbdb32e],void delete _0x2a3afb['isAdded'];if(!_0x2a3afb['isAdded']&&!_0x2a3afb['isRemoved']&&'deletion'==_0x32cf2b[_0xbdb32e]['type'])return void(_0x2a3afb['isRemoveSuggestion']=_0x32cf2b[_0xbdb32e]);}}}['_setDistance'](_0x451955,_0x2bdbb7){let _0x1a066f=0x0,_0x52bcd2=!0x1;const _0x49ee95=new Map();for(const _0x4fe36a of _0x451955)_0x4fe36a[_0x2bdbb7]?_0x52bcd2&&(_0x1a066f++,_0x52bcd2=!0x1):(_0x1a066f++,_0x52bcd2=!0x0),_0x49ee95['set'](_0x4fe36a['id'],_0x1a066f);for(let _0x5b6132=0x0;_0x5b6132<_0x451955['length'];_0x5b6132++){if('isRemoved'==_0x2bdbb7&&_0x451955[_0x5b6132]['isAdded']||'isAdded'==_0x2bdbb7&&_0x451955[_0x5b6132]['isRemoved'])continue;if('text'==_0x451955[_0x5b6132]['type']){_0x451955[_0x5b6132]['distance']=0x0;continue;}const _0x547043=_0x49ee95['get'](_0x451955[_0x5b6132]['pairId']),_0x1fbfe6=_0x49ee95['get'](_0x451955[_0x5b6132]['id']);_0x451955[_0x5b6132]['distance']=_0x547043-_0x1fbfe6;}}['_getRevisionsRange'](_0x5e62bd,_0x1d9637,_0x480789=!0x1){const _0x5b0ff8=[];let _0x5c21ea=this['repository']['getIndex'](_0x5e62bd),_0x4427d8=this['repository']['getIndex'](_0x1d9637);for(-0x1==_0x4427d8&&(_0x4427d8=this['repository']['_revisions']['length'],_0x480789=!0x1);_0x5c21ea<_0x4427d8;)_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5c21ea++;return _0x480789&&_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5b0ff8;}['_threeWayMerge'](_0x5976c4,_0x2fe1ec,_0x475c73,_0x3cf5c8){const _0x32e60e=this['editor']['model']['schema'];let _0x58643c=_0x2fe1ec;for(;_0x5976c4[_0x58643c]&&_0x5976c4[_0x58643c]['isAdded'];)_0x58643c++;let _0x462413=_0x3cf5c8;for(;_0x475c73[_0x462413]&&_0x475c73[_0x462413]['isRemoved'];)_0x462413++;_0x43bca3(_0x5976c4,_0x2fe1ec,_0x58643c),_0x43bca3(_0x475c73,_0x3cf5c8,_0x462413);const _0xd7db85=_0x475c73['slice'](_0x3cf5c8,_0x462413)['concat'](_0x5976c4['slice'](_0x2fe1ec,_0x58643c));return _0xd7db85['sort']((_0x52bd34,_0x41d8d3)=>_0x52bd34['side']!=_0x41d8d3['side']?_0x52bd34['side']-_0x41d8d3['side']:_0x52bd34['level']!=_0x41d8d3['level']?_0x52bd34['level']-_0x41d8d3['level']:_0x52bd34['distance']!=_0x41d8d3['distance']?_0x41d8d3['distance']-_0x52bd34['distance']:!!_0x52bd34['isAdded']!=!!_0x41d8d3['isAdded']?-0x1==_0x52bd34['side']||0x0==_0x52bd34['side']?_0x52bd34['isAdded']?-0x1:0x1:_0x52bd34['isAdded']?0x1:-0x1:_0x52bd34['index']-_0x41d8d3['index']),{'commonTape':_0xd7db85,'iEnd':_0x58643c,'jEnd':_0x462413};function _0x43bca3(_0x18ca20,_0x222bd1,_0x22c3b9){let _0x4e6231=-0x1,_0x53cafa=Number['POSITIVE_INFINITY'],_0xf1a558=!0x0;for(let _0x55c1f4=_0x222bd1;_0x55c1f4<_0x22c3b9;_0x55c1f4++)if(_0x32e60e['isInline'](_0x18ca20[_0x55c1f4]['item'])||(_0xf1a558=!0x1),_0x18ca20[_0x55c1f4]['item']['startIndex']<_0x222bd1&&(_0x4e6231=_0x55c1f4),_0x18ca20[_0x55c1f4]['item']['endIndex']>=_0x22c3b9){_0x53cafa=_0x55c1f4;break;}_0xf1a558&&(_0x4e6231=_0x22c3b9-0x1);for(let _0x3ea76d=_0x222bd1;_0x3ea76d<_0x22c3b9;_0x3ea76d++)_0x18ca20[_0x3ea76d]['side']=_0x3ea76d<=_0x4e6231?-0x1:_0x3ea76d<_0x53cafa?0x0:0x1,_0x18ca20[_0x3ea76d]['index']=_0x3ea76d;let _0x4a5a12=0x0;for(let _0x549d25=_0x222bd1;_0x549d25<=_0x4e6231;_0x549d25++)0x0==_0x18ca20[_0x549d25]['distance']?_0x18ca20[_0x549d25]['level']=_0x4a5a12:(_0x4a5a12++,_0x18ca20[_0x549d25]['level']=_0x4a5a12,_0x4a5a12++);for(let _0x1f0f0e=_0x222bd1;_0x1f0f0e<_0x22c3b9;_0x1f0f0e++)0x0==_0x18ca20[_0x1f0f0e]['side']&&(_0x18ca20[_0x1f0f0e]['level']=_0x4a5a12);_0x4a5a12=0x0;for(let _0x17824b=_0x22c3b9-0x1;_0x17824b>=_0x53cafa;_0x17824b--)0x0==_0x18ca20[_0x17824b]['distance']?_0x18ca20[_0x17824b]['level']=_0x4a5a12:(_0x4a5a12--,_0x18ca20[_0x17824b]['level']=_0x4a5a12,_0x4a5a12--);}}['_fixObsoleteTags'](_0x4a3208){const _0x181a91=new Map(),_0x44e74d=this['editor']['model']['schema'];for(let _0x205369=0x1;_0x205369<_0x4a3208['length'];_0x205369++){let _0x32c756,_0x552ba3,_0x4dea1d;const _0x118765=_0x4a3208[_0x205369],_0x253c04=_0x4a3208[_0x205369-0x1];if('text'==_0x118765['type'])continue;if(_0x118765['type']!=_0x253c04['type'])continue;if(!_0x44e74d['isBlock'](_0x253c04['item'])||_0x44e74d['isLimit'](_0x253c04['item']))continue;if(!_0x44e74d['isBlock'](_0x118765['item'])||_0x44e74d['isLimit'](_0x118765['item']))continue;if((_0x4a3208[_0x205369]['isAdded']||_0x4a3208[_0x205369]['isAddSuggestion'])&&_0x4a3208[_0x205369-0x1]['isRemoved'])_0x32c756=_0x4a3208[_0x205369],_0x552ba3=_0x4a3208[_0x205369-0x1],_0x4dea1d=_0x205369-0x1;else{if(!_0x4a3208[_0x205369]['isRemoved']||!_0x4a3208[_0x205369-0x1]['isAdded']&&!_0x4a3208[_0x205369-0x1]['isAddSuggestion'])continue;_0x32c756=_0x4a3208[_0x205369-0x1],_0x552ba3=_0x4a3208[_0x205369],_0x4dea1d=_0x205369;}const _0x224d41=_0x32c756['level']==_0x552ba3['level'],_0x1a7f7e=Math['abs'](_0x32c756['level'])<Math['abs'](_0x552ba3['level'])&&0x0==_0x552ba3['distance'];(_0x224d41||_0x1a7f7e)&&(_0x181a91['set'](_0x552ba3['id'],_0x32c756['id']),_0x4a3208['splice'](_0x4dea1d,0x1),_0x205369--,_0x32c756['isAdded']=!0x1);}for(let _0xab0966=0x0;_0xab0966<_0x4a3208['length'];_0xab0966++)_0x181a91['has'](_0x4a3208[_0xab0966]['pairId'])&&(_0x4a3208[_0xab0966]['pairId']=_0x181a91['get'](_0x4a3208[_0xab0966]['pairId']));}['_removeMissingPairs'](_0x4e2ddc){const _0x517902=new Set(_0x4e2ddc['map'](_0xc0b0a7=>_0xc0b0a7['id']));for(let _0x51a75e=0x0;_0x51a75e<_0x4e2ddc['length'];_0x51a75e++)_0x517902['has'](_0x4e2ddc[_0x51a75e]['pairId'])||0x0==_0x4e2ddc[_0x51a75e]['distance']||(_0x4e2ddc[_0x51a75e]['isIncorrect']=!0x0);return _0x4e2ddc['filter'](_0x10a331=>!_0x10a331['isIncorrect']);}['_markMismatchedRemovedTags'](_0x137910){const _0x3cb612=new Set();for(let _0x3916ed=0x0;_0x3916ed<_0x137910['length'];_0x3916ed++){if(_0x3cb612['has'](_0x137910[_0x3916ed]['id'])&&_0x137910[_0x3916ed]['isRemoved']&&(_0x137910[_0x3916ed]['isIncorrect']=!0x0),_0x137910[_0x3916ed]['isIncorrect'])continue;if(0x0==_0x137910[_0x3916ed]['distance'])continue;if('elementStart'!=_0x137910[_0x3916ed]['type'])continue;if(null==_0x137910[_0x3916ed]['pairId'])continue;let _0x4faded=_0x3916ed+0x1,_0x3ca314=0x0;for(;_0x137910[_0x4faded]['id']!=_0x137910[_0x3916ed]['pairId'];)'elementStart'==_0x137910[_0x4faded]['type']?_0x3ca314++:'elementEnd'==_0x137910[_0x4faded]['type']&&_0x3ca314--,_0x4faded++;if(0x0!=_0x3ca314){if(_0x137910[_0x3916ed]['isRemoved'])_0x137910[_0x3916ed]['isIncorrect']=!0x0;else{for(;_0x4faded!=_0x3916ed;)_0x137910[_0x4faded]['isRemoved']&&0x0!=_0x137910[_0x4faded]['distance']&&(_0x137910[_0x4faded]['isIncorrect']=!0x0,_0x3cb612['add'](_0x137910[_0x4faded]['pairId'])),_0x4faded--;}}}return _0x137910['filter'](_0x4b9710=>!_0x4b9710['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d2e39){const _0x4fed9c=this['editor']['model']['schema'];for(let _0xede69e=0x0;_0xede69e<_0x2d2e39['length'];_0xede69e++){if(!(_0x2d2e39[_0xede69e]['isAdded']||_0x2d2e39[_0xede69e]['isAddSuggestion']||_0x2d2e39[_0xede69e]['isRemoved']||_0x2d2e39[_0xede69e]['isRemoveSuggestion']))continue;if(0x0==_0x2d2e39[_0xede69e]['distance'])continue;const _0x493aeb=_0x2d2e39[_0xede69e]['item'];_0x4fed9c['isBlock'](_0x493aeb)||_0x4fed9c['isLimit'](_0x493aeb)||(_0x2d2e39[_0xede69e]['isAdded']&&delete _0x2d2e39[_0xede69e]['isAdded'],_0x2d2e39[_0xede69e]['isAddSuggestion']&&delete _0x2d2e39[_0xede69e]['isAddSuggestion'],_0x2d2e39[_0xede69e]['isRemoveSuggestion']&&delete _0x2d2e39[_0xede69e]['isRemoveSuggestion'],_0x2d2e39[_0xede69e]['isRemoved']&&(_0x2d2e39[_0xede69e]['isIncorrect']=!0x0));}return _0x2d2e39['filter'](_0x196297=>!_0x196297['isIncorrect']);}['_makeModelFromTape'](_0x3aaf89,_0x2630d9,_0x475fb6){const _0xdb00a4=new wt(),_0x3b3af9=[],_0x2a1b51=new Map(),_0x1c9470=this['editor']['model'],_0x372309=_0x1c9470['schema'],_0x274d50=[_0xdb00a4],_0x114564={},_0x491bd7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3808d4=null;const _0x34af5f=[0x0];for(let _0x2f1d0b=0x0;_0x2f1d0b<_0x3aaf89['length'];_0x2f1d0b++)if('elementStart'===_0x3aaf89[_0x2f1d0b]['type']){_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);const _0x129676=new ft(_0x3aaf89[_0x2f1d0b]['item']['name'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']());_0x274d50[0x0]['_appendChild'](_0x129676),_0x34af5f['push'](0x0),_0x274d50['unshift'](_0x129676),_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);}else'elementEnd'===_0x3aaf89[_0x2f1d0b]['type']?(_0x274d50['shift'](),_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x34af5f['pop'](),_0x34af5f[_0x34af5f['length']-0x1]++,_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f)):(_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x3808d4?_0x3808d4['_data']+=_0x3aaf89[_0x2f1d0b]['item']['data']:_0x3808d4=new _t(_0x3aaf89[_0x2f1d0b]['item']['data'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']()),_0x3aaf89[_0x2f1d0b+0x1]&&'text'===_0x3aaf89[_0x2f1d0b+0x1]['type']&&_0x1082d1(_0x3808d4,_0x3aaf89[_0x2f1d0b+0x1]['item'])||(_0x274d50[0x0]['_appendChild'](_0x3808d4),_0x3808d4=null),_0x34af5f[_0x34af5f['length']-0x1]+=_0x3aaf89[_0x2f1d0b]['item']['offsetSize'],_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f));for(let _0x2f07ee=0x0;_0x2f07ee<_0x3aaf89['length'];_0x2f07ee++){const _0x499324=_0x3aaf89[_0x2f07ee]['previousPosition'],_0x135cc9=_0x3aaf89[_0x2f07ee]['nextPosition'];for(const _0x13f00a of _0x3aaf89[_0x2f07ee]['markersStart'])_0x2a1b51['set'](_0x13f00a,{'start':_0x499324,'end':null});_0x4bc19d('isRemoveSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAddSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isRemoved',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAdded',_0x2f07ee,_0x499324,_0x135cc9);for(const _0x128f8e of _0x3aaf89[_0x2f07ee]['markersEnd']){_0x2a1b51['get'](_0x128f8e)['end']=_0x135cc9;}}for(const [_0x55b556,_0x2c481c]of _0x2a1b51){const _0x483481=this['editor']['model']['createRange'](_0x2c481c['start'],_0x2c481c['end']);_0xdb00a4['markers']['set'](_0x55b556,_0x483481);}return _0x3b3af9['sort']((_0x48ea01,_0x2b7795)=>{const _0x3cac0e=_0xdb00a4['markers']['get']('revision:'+_0x48ea01['id']),_0x773f7=_0xdb00a4['markers']['get']('revision:'+_0x2b7795['id']);return _0x3cac0e['start']['isBefore'](_0x773f7['start'])?-0x1:_0x3cac0e['start']['isAfter'](_0x773f7['start'])?0x1:_0x3cac0e['end']['isBefore'](_0x773f7['end'])?-0x1:_0x3cac0e['end']['isAfter'](_0x773f7['end'])?0x1:'add'===_0x48ea01['type']?-0x1:0x1;}),{'root':_0xdb00a4,'changes':_0x3b3af9};function _0x4bc19d(_0x255722,_0x343552,_0x509cfd,_0x5e2c57){const _0x44de08=!!_0x3aaf89[_0x343552][_0x255722],_0x4b3dd1=_0x44de08?_0x3aaf89[_0x343552][_0x255722]['userId']:null,_0x4f3e11=_0x343552===_0x3aaf89['length']-0x1,_0x35a031=_0x491bd7[_0x255722][0x0],_0x553602=_0x372309['isObject'](_0x3aaf89[_0x343552]['item']);!_0x114564[_0x255722]&&_0x44de08?_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}:_0x114564[_0x255722]&&!_0x44de08?(_0x114564[_0x255722]['end']=_0x509cfd,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null):_0x114564[_0x255722]&&_0x44de08&&_0x114564[_0x255722]['userId']!==_0x4b3dd1&&(_0x114564[_0x255722]['end']=_0x509cfd,_0x35a031&&_0x35a031['userId']===_0x114564[_0x255722]['userId']||_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}),_0x114564[_0x255722]&&_0x553602&&('elementStart'!==_0x3aaf89[_0x343552]['type']||_0x35a031&&_0x35a031['userId']===_0x4b3dd1||_0x491bd7[_0x255722]['unshift']({'userId':_0x4b3dd1,'object':_0x3aaf89[_0x343552]['item'],'change':_0x114564[_0x255722]}),'elementEnd'===_0x3aaf89[_0x343552]['type']&&_0x35a031&&_0x35a031['object']===_0x3aaf89[_0x343552]['item']&&(_0x491bd7[_0x255722]['shift'](),_0x114564[_0x255722]=_0x35a031['change'])),_0x114564[_0x255722]&&_0x4f3e11&&(_0x114564[_0x255722]['end']=_0x5e2c57,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null);}function _0x2c50ce({start:_0x1e6024,end:_0x23d7ef,tapeItem:_0x5f5417,userId:_0x23837e,type:_0x5bed2d}){const _0x2b6bba=_0x5f5417['item'],_0xa5ff27=_0x1c9470['schema']['isBlock'](_0x2b6bba)&&!_0x1c9470['schema']['isLimit'](_0x2b6bba),_0x4a5556=_0x1e6024['nodeAfter']==_0x23d7ef['parent']&&_0x23d7ef['isAtStart'];if(_0xa5ff27&&_0x4a5556)return;const _0x57d3f7=_0x1c9470['createRange'](_0x1e6024,_0x23d7ef),_0x185204=_0x2630d9['get'](_0x23837e),_0x150e21=new r({'author':_0x185204,'type':'isAdded'==_0x5bed2d||'isAddSuggestion'==_0x5bed2d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5bed2d||'isRemoveSuggestion'==_0x5bed2d},'createdAt':new Date(),'rootName':_0x475fb6});_0x3b3af9['push'](_0x150e21),_0xdb00a4['markers']['set']('revision:'+_0x150e21['id'],_0x57d3f7);}function _0x1082d1(_0x15b065,_0x4b98c5){const _0x245d9f=_0x15b065['getAttributes'](),_0x304056=_0x4b98c5['getAttributes']();for(const _0x49bdb6 of _0x245d9f){if(_0x49bdb6[0x1]!==_0x4b98c5['getAttribute'](_0x49bdb6[0x0]))return!0x1;_0x304056['next']();}return _0x304056['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f34e1=>{const _0x5e0c66=_0x3f34e1['markerName']['split'](':')[0x1],_0x565b66=this['_getChangeFromId'](_0x5e0c66);if(!_0x565b66)return null;const _0x3ece90='add'==_0x565b66['type']?'insertion':'deletion',_0x2cd11a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3ece90];return _0x565b66['data']['isSuggestion']&&_0x2cd11a['push']('ck-suggestion-marker-'+_0x3ece90+'-new'),this['activeChange']==_0x565b66&&_0x2cd11a['push']('ck-suggestion-marker--active'),{'classes':_0x2cd11a,'attributes':{'data-change-id':_0x5e0c66}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3abe2e=>{_0x3abe2e['on']('element:pre',(_0x468efd,_0x14a68f,_0x3112b8)=>{const _0x3279da=_0x14a68f['viewItem']['getChild'](0x0);if(!_0x3279da||!_0x3279da['is']('element','code'))return;if(!_0x3112b8['consumable']['consume'](_0x3279da,{'attributes':['vid_start','vid_end']}))return;const _0x5aaf4b=_0x14a68f['modelRange']['start']['nodeAfter'];_0x3112b8['writer']['setAttribute']('vid_start',_0x3279da['getAttribute']('vid_start'),_0x5aaf4b),_0x3112b8['writer']['setAttribute']('vid_end',_0x3279da['getAttribute']('vid_end'),_0x5aaf4b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x193fd7=>{_0x193fd7['on']('element',(_0x22d3d6,_0x397cec,_0x74f73d)=>{if(!_0x74f73d['consumable']['consume'](_0x397cec['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x397cec['modelRange']['isCollapsed'])return;const _0x1dc4cb=_0x397cec['modelRange']['start']['nodeAfter'];_0x1dc4cb['hasAttribute']('vid_start')||_0x1dc4cb['hasAttribute']('vid')||(_0x74f73d['writer']['setAttribute']('vid_start',_0x397cec['viewItem']['getAttribute']('vid_start'),_0x1dc4cb),_0x74f73d['writer']['setAttribute']('vid_end',_0x397cec['viewItem']['getAttribute']('vid_end'),_0x1dc4cb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x40d1a8=>_0x40d1a8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x368526,[,_0x2f0691])=>{['vid_start','vid_end','vid']['includes'](_0x2f0691)&&(_0x368526['return']=!0x0,_0x368526['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x13e606=>{_0x13e606['on']('attribute:vid',(_0x68016c,_0x10ff5e,_0x22bce0)=>{if('\x20'!=_0x10ff5e['item']['data']||_0x10ff5e['item']['parent']['maxOffset']>0x1)return;if(!_0x22bce0['consumable']['consume'](_0x10ff5e['item'],_0x68016c['name']))return;const _0x5b43dd=_0x22bce0['writer'],_0x37672e=_0x22bce0['mapper']['toViewRange'](_0x10ff5e['range']);_0x5b43dd['wrap'](_0x37672e,_0x5b43dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x9c69a4){const _0x1dcde9=_0x9c69a4['plugins']['get']('RevisionViewer');return(_0x321421,_0x73afe2,_0x533549)=>{const _0x2ccabf=_0x73afe2['markerName']['split'](':')[0x1],_0x36bbfa=_0x1dcde9['_getChangeFromId'](_0x2ccabf);if(!_0x36bbfa)return null;const _0x4f48c7='add'==_0x36bbfa['type']?'split':'merge';if(!_0x533549['consumable']['test'](_0x73afe2['markerRange'],_0x321421['name']))return;const _0x2fc0b8=_0x73afe2['markerRange']['getWalker'](),_0x1ef924=_0x73afe2['markerRange']['start'],_0x5eea7b=_0x9c69a4['model']['schema'];let _0x27345c=null,_0x96f11f=null,_0x12f46e=!0x1,_0x54be47=!0x1;for(const _0x5b547a of _0x2fc0b8){const _0x5f26a2=_0x5b547a['item'];_0x12f46e=_0x12f46e||_0x5eea7b['isContent'](_0x5f26a2);const _0x3606eb=_0x533549['mapper']['toViewElement'](_0x5f26a2);if(_0x3606eb&&_0x3606eb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b547a['type']&&(_0x5eea7b['isBlock'](_0x5f26a2)&&!_0x5eea7b['isLimit'](_0x5f26a2)&&(_0x5f26a2['nextSibling']||_0x1ef924['isAtEnd']?_0x27345c&&_0x27345c['parent']==_0x5f26a2||(_0x27345c=_0x5f26a2,_0x229a75(_0x5b547a['previousPosition']),_0x54be47=!0x0):_0x96f11f=_0x96f11f||_0x5b547a['previousPosition']));}function _0x229a75(_0x12b5d7){const _0x34387f=_0x533549['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f48c7}),_0x41ce10=_0x533549['mapper']['toViewPosition'](_0x12b5d7);_0x36bbfa['data']['isSuggestion']&&_0x533549['writer']['addClass']('ck-suggestion-marker-'+_0x4f48c7+'-new',_0x34387f),_0x1dcde9['activeChange']==_0x36bbfa&&_0x533549['writer']['addClass']('ck-suggestion-marker--active',_0x34387f),_0x533549['writer']['insert'](_0x41ce10,_0x34387f),_0x533549['mapper']['bindElementToMarker'](_0x34387f,_0x73afe2['markerName']);}_0x12f46e||_0x54be47||!_0x96f11f||_0x229a75(_0x96f11f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4128f0,_0x22bc93,_0x403402)=>{const _0x1de816=_0x403402['mapper']['markerNameToElements'](_0x22bc93['markerName']);if(_0x1de816){for(const _0x2d4921 of _0x1de816)(_0x2d4921['hasClass']('ck-suggestion-marker-split')||_0x2d4921['hasClass']('ck-suggestion-marker-merge'))&&(_0x403402['mapper']['unbindElementFromMarkerName'](_0x2d4921,_0x22bc93['markerName']),_0x403402['writer']['remove'](_0x2d4921));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e5661,_0x138d70,_0x209b09)=>{const _0x4f9f9c=_0x138d70['markerName']['split'](':')[0x1],_0x175451=this['_getChangeFromId'](_0x4f9f9c);if(!_0x175451)return null;const _0x6a61ee='add'==_0x175451['type']?'split':'merge';if(_0x209b09['consumable']['test'](_0x138d70['markerRange'],_0x3e5661['name']))for(const _0x468ae3 of _0x138d70['markerRange']['getItems']()){if(!_0x468ae3['is']('element','softBreak'))continue;const _0x2344bd=_0x209b09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6a61ee}),_0x69b92e=_0x209b09['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x468ae3));_0x175451['data']['isSuggestion']&&_0x209b09['writer']['addClass']('ck-suggestion-marker-'+_0x6a61ee+'-new',_0x2344bd),this['activeChange']==_0x175451&&_0x209b09['writer']['addClass']('ck-suggestion-marker--active',_0x2344bd),_0x209b09['writer']['insert'](_0x69b92e,_0x2344bd),_0x209b09['mapper']['bindElementToMarker'](_0x2344bd,_0x138d70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x20d1ed=>{for(const _0x314768 of this['editor']['model']['document']['getRootNames']()){const _0x42097c=this['editor']['model']['document']['getRoot'](_0x314768),_0xc51b24=this['editor']['editing']['view']['document']['getRoot'](_0x314768);if(_0xc51b24){const _0x1583d6=_0x42097c['getAttribute']('revisionHistoryAttachChange');if(_0x20d1ed['removeAttribute']('data-change-id',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-add',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-remove',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root--active',_0xc51b24),_0x1583d6){const _0x2db85a=this['_getChangeFromId'](_0x1583d6);if(!_0x2db85a)return null;_0x20d1ed['setAttribute']('data-change-id',_0x1583d6,_0xc51b24),_0x20d1ed['addClass']('ck-revision-history-root-'+_0x2db85a['type'],_0xc51b24),this['activeChange']==_0x2db85a&&_0x20d1ed['addClass']('ck-revision-history-root--active',_0xc51b24);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x22583e=>'revision-comment:'+_0x22583e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5ba6d8=>'revision-suggestion:'+_0x5ba6d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15d4bf=>({'name':'suggestion:'+_0x15d4bf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fe35b=>{const _0x525ee6=_0x2fe35b['markerName']['split'](':')[0x1];return'insertion'!=_0x525ee6&&'deletion'!=_0x525ee6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x525ee6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x31a284,_0x578ccf,_0x5d85cc)=>{const _0x3980b7=_0x5d85cc['mapper']['markerNameToElements'](_0x578ccf['markerName']);if(_0x3980b7){for(const _0x5c88fc of _0x3980b7)_0x5c88fc['is']('uiElement')&&(_0x5d85cc['mapper']['unbindElementFromMarkerName'](_0x5c88fc,_0x578ccf['markerName']),_0x5d85cc['writer']['remove'](_0x5c88fc));}},{'priority':'high'});}['_getChangeFromId'](_0x1b01cb){return this['_changeIdToChange']['get'](_0x1b01cb);}['_getViewForChange'](_0x439308){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x439308),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e4c9e,_0x535177,_0x474b19,_0x3ef1ed)=>{_0x3ef1ed&&this['_balloon']['remove'](_0x3ef1ed),_0x474b19&&(this['_balloon']['add']({'view':_0x474b19,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xe10cb0=this['editor']['editing'],_0x2ab02d=this['_getChangeFromId'](_0x474b19['changeId']);let _0x3cd958;if(_0x2ab02d['data']['isOnRoot']){const _0x55d641=_0xe10cb0['view']['getDomRoot'](_0x2ab02d['rootName']);_0x3cd958=Array['from'](_0x55d641['getClientRects']());}else{const _0x5dfe50=this['editor']['model']['markers']['get']('revision:'+_0x474b19['changeId']);_0x3cd958=Array['from'](_0xe10cb0['mapper']['markerNameToElements'](_0x5dfe50['name']))['map'](_0x256d3c=>_0xe10cb0['view']['domConverter']['mapViewToDom'](_0x256d3c))['map'](_0x2e1cb3=>Array['from'](_0x2e1cb3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3cd958[0x0];return _0x3cd958['find'](_0x59021b=>_0x59021b['top']-0x3<=this['_activeViewTarget']['y']&&_0x59021b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x59021b['left']-0x3<=this['_activeViewTarget']['x']&&_0x59021b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3cd958[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bb7bf,_0x107390,_0x446a6b,_0x3b9759)=>{this['activeView']=_0x446a6b?this['_getViewForChange'](_0x446a6b):null,this['editor']['model']['change'](()=>{const _0x4cb634=this['editor']['editing'];_0x3b9759&&(_0x3b9759['data']['isOnRoot']?_0x4cb634['view']['change'](_0x226984=>{_0x226984['removeClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x3b9759['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x3b9759['id'])),_0x446a6b&&(_0x446a6b['data']['isOnRoot']?_0x4cb634['view']['change'](_0x4e1381=>{_0x4e1381['addClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x446a6b['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x446a6b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3bae6c,_0x11c7bc)=>{if(this['activeChange'])return;const _0x34b2f9=this['_findChangeIdFromDomTarget'](_0x11c7bc['target']),_0x31ba0f=this['_changeIdToChange']['get'](_0x34b2f9);_0x31ba0f?(this['_activeViewTarget']={'x':_0x11c7bc['domEvent']['x'],'y':_0x11c7bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x31ba0f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xa18566,_0x4bdd74)=>{const _0x928a11=this['_findChangeIdFromDomTarget'](_0x4bdd74['target']),_0x373308=this['_changeIdToChange']['get'](_0x928a11);_0x373308?(this['_activeViewTarget']={'x':_0x4bdd74['domEvent']['x'],'y':_0x4bdd74['domEvent']['y']},_0x373308===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x373308):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x291ebb){do{const _0x1352c7=_0x291ebb['getAttribute']('data-change-id');if(_0x1352c7)return _0x1352c7;_0x291ebb=_0x291ebb['parent'];}while(_0x291ebb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x43b56d=>{for(const _0x4f22f8 of this['editor']['model']['markers'])_0x43b56d['removeMarker'](_0x4f22f8);});}}function tt(_0x403237,_0x2b380f){return(_0x157b12,_0x160c7a,_0x3011ca)=>{if(!_0x3011ca['consumable']['test'](_0x160c7a['markerRange'],_0x157b12['name']))return;const _0x4c93d4=_0x160c7a['markerRange']['getWalker'](),_0x1f50e3=_0x160c7a['markerRange']['start'],_0x2a78cb=_0x403237['model']['schema'];let _0x4e4ecf=null,_0x35267c=null,_0x1d6c2c=!0x1,_0x52e107=!0x1;for(const _0x2e6428 of _0x4c93d4){const _0x2e0528=_0x2e6428['item'];_0x1d6c2c=_0x1d6c2c||_0x2a78cb['isContent'](_0x2e0528);const _0x44a668=_0x3011ca['mapper']['toViewElement'](_0x2e0528);if(_0x44a668&&_0x44a668['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e6428['type']&&(_0x2a78cb['isBlock'](_0x2e0528)&&!_0x2a78cb['isLimit'](_0x2e0528)&&(_0x2e0528['nextSibling']||_0x1f50e3['isAtEnd']?_0x4e4ecf&&_0x4e4ecf['parent']==_0x2e0528||(_0x4e4ecf=_0x2e0528,_0x105347(_0x2e6428['previousPosition']),_0x52e107=!0x0):_0x35267c=_0x35267c||_0x2e6428['previousPosition']));}function _0x105347(_0x23eae6){const _0x2bdbdc=_0x3011ca['mapper']['toViewPosition'](_0x23eae6),_0x2a5fb1=_0x3011ca['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b380f});_0x3011ca['writer']['insert'](_0x2bdbdc,_0x2a5fb1),_0x3011ca['mapper']['bindElementToMarker'](_0x2a5fb1,_0x160c7a['markerName']);}_0x1d6c2c||_0x52e107||!_0x35267c||_0x105347(_0x35267c);};}class yt extends _0xf66950{constructor(_0x215e7b){super(_0x215e7b);const _0x105b5e=_0x215e7b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x105b5e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x105b5e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x206b48=this['editor'],_0x28818c=_0x206b48['plugins']['get'](d),_0x5b466b=_0x28818c['isReady']?_0x28818c['diff']['newRevisionId']:null;_0x206b48['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b466b);}['refresh'](){const {isReady:_0x515b45,isEnabled:_0x105197}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x515b45&&_0x105197;}}class bt extends _0xf66950{['_step'];constructor(_0x19f96c,{direction:_0x5d2bfb}){super(_0x19f96c);const _0x208407=_0x19f96c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d2bfb?0x1:-0x1,this['listenTo'](_0x208407,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x208407,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x208407,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2585a5=this['editor'],_0x4893b5=_0x2585a5['plugins']['get'](d),{isNavigationMode:_0x4c4bfc,currentChangeNumber:_0x4a397f}=_0x4893b5;let _0x44a8ac;if(_0x4893b5['activeChange']=_0x4c4bfc?_0x4893b5['diff']['changes']['get'](_0x4a397f+this['_step']):_0x4893b5['diff']['changes']['first'],_0x4893b5['activeChange']['data']['isOnRoot'])_0x44a8ac=_0x2585a5['editing']['view']['getDomRoot'](_0x4893b5['activeChange']['rootName']);else{const _0x442c28=_0x2585a5['model']['markers']['get']('revision:'+_0x4893b5['activeChange']['id']);_0x44a8ac=_0x218286(_0x2585a5['editing'],_0x442c28);}_0x277b74({'target':_0x44a8ac,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa2c776,currentChangeNumber:_0x422560,numberOfChanges:_0x4bbf44,isReady:_0x4af0be,isEnabled:_0x3301d0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3301d0&&_0x4af0be&&_0x4bbf44)&&(!_0xa2c776||(0x1===this['_step']?_0x422560<_0x4bbf44-0x1:_0x422560>0x0));}}class _i extends _0x2c43c9{constructor(_0x316ee7){super(_0x316ee7);const _0x2da79c=this['bindTemplate'],_0x124bfa=new _0x15a92a(_0x316ee7),_0x506ccb=new _0x15a92a(_0x316ee7);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',(_0x5c29bb,_0x3a7ce0)=>_0x5c29bb&&_0x3a7ce0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4783e8,_0x4fe40b,_0x26b87c,_0x1afc4f)=>{if(!_0x4783e8)return R(_0x316ee7,'Loading...');if(!_0x26b87c)return R(_0x316ee7,'No\x20changes');const _0x5b71f4=R(_0x316ee7,'NUMBER_OF_CHANGES',_0x26b87c);return _0x1afc4f?R(_0x316ee7,'X_OF_Y_CHANGES',[_0x4fe40b+0x1,_0x26b87c]):_0x5b71f4;}),_0x124bfa['set']({'label':R(_0x316ee7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x506ccb['set']({'label':R(_0x316ee7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x124bfa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x506ccb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x124bfa['on']('execute',()=>this['fire']('execute','backward')),_0x506ccb['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',_0x2da79c['if']('_isStatusLabelVisible','ck-hidden',_0x5715b1=>!_0x5715b1)]},'children':[{'text':_0x2da79c['to']('isNavigationMode',_0x541b6e=>_0x541b6e?R(_0x316ee7,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x316ee7,'Total')+':\x20')}]},{'text':_0x2da79c['to']('_statusText')}]},new _0x372320(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x124bfa,_0x506ccb]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x24aabd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3dbd4c=this['editor']['editing']['view'];_0x3dbd4c['change'](_0x8f5126=>{for(const _0x2f6d48 of _0x3dbd4c['document']['roots'])_0x8f5126['addClass'](ce,_0x2f6d48);});}['hide'](){const _0x1ab7e7=this['editor']['editing']['view'];_0x1ab7e7['change'](_0x4122b0=>{for(const _0x132a12 of _0x1ab7e7['document']['roots'])_0x4122b0['removeClass'](ce,_0x132a12);});}}class m extends _0x24aabd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x14cee4=this['editor'],_0x474734=_0x14cee4['plugins']['get'](d),_0x32a771=_0x14cee4['plugins']['get'](le);_0x14cee4['ui']['componentFactory']['add']('exitToEditing',_0x2a65f7=>{const _0x2447c6=new _0x15a92a(_0x2a65f7);return _0x2447c6['set']({'label':R(_0x2a65f7,'Back\x20to\x20editing'),'icon':_0x888a61['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2447c6,'execute',()=>{_0x14cee4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2447c6;}),_0x14cee4['ui']['componentFactory']['add']('restoreRevision',_0x53c57e=>{const _0x5cb4b2=new _0x15a92a(_0x53c57e);return _0x5cb4b2['set']({'label':R(_0x53c57e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5cb4b2['bind']('isEnabled')['to'](_0x14cee4['commands']['get']('restoreRevision')),this['listenTo'](_0x5cb4b2,'execute',()=>_0x14cee4['execute']('restoreRevision')),_0x5cb4b2;}),_0x14cee4['ui']['componentFactory']['add']('changesNavigation',_0x398727=>{const _0x90d155=new _i(_0x398727),_0x4f7525=_0x14cee4['commands']['get']('showPreviousChange'),_0x14da1c=_0x14cee4['commands']['get']('showNextChange');return _0x90d155['bind']('isBackwardNavigationEnabled')['to'](_0x4f7525,'isEnabled'),_0x90d155['bind']('isForwardNavigationEnabled')['to'](_0x14da1c,'isEnabled'),_0x90d155['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x474734),this['listenTo'](_0x90d155,'execute',(_0x4150fb,_0xaa58b)=>{_0x14cee4['execute']('forward'===_0xaa58b?'showNextChange':'showPreviousChange');}),_0x90d155;}),_0x32a771['show'](),_0x474734['on']('change:isReady',(_0x2abb09,_0x45974a,_0x393bf4)=>{_0x393bf4?_0x32a771['hide']():_0x32a771['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x19513d,_0x45f2e4){super(_0x19513d,_0x45f2e4);const _0x60952c=this['bindTemplate'];this['set']({'label':R(_0x19513d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x19513d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x60952c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x38ffce=this['fieldView']['element'];this['_tooltipString']=_0x38ffce['scrollWidth']>_0x38ffce['clientWidth']&&_0x38ffce['value']||'';}}class ti extends _0x2c43c9{constructor(_0x478222,_0x4347f3,_0x4a2034){super(_0x478222);const _0x323a21=new _0x544954();_0x323a21['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x261530=['ck','ck-revision-history-sidebar__revision-author'];_0x4a2034&&_0x261530['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57b687=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x478222,_0x4a2034?'Revision\x20creator':'Revision\x20author')},'children':[_0x323a21,_0x4347f3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x261530},'children':_0x57b687});}}function ni(_0x2a9079,_0x2d2159){const _0x4fbdeb=_0x2a9079['bindTemplate'],_0x3e248b=_0x2a9079['locale'],_0x5660ec=_0x20789c(_0x3e248b);_0x5660ec['panelPosition']='sw';const _0x3ab3ea=function(_0x537b8b,_0x546701){const _0x16da37=function(_0x1cf03a,_0x3c3303){const _0x117e11=_0x1cf03a['locale'],_0xcd3b1b={'Compare\x20against\x20selected':R(_0x117e11,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x117e11,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x117e11,'Restore\x20this\x20revision')};return _0x3c3303['map'](_0x271354=>{const _0x5e6cf8=_0xcd3b1b[_0x271354['name']];return _0x5e6cf8&&_0x5e6cf8!==_0x271354['name']&&(_0x271354['name']=_0x5e6cf8),_0x271354;});}(_0x537b8b,_0x546701),_0x22424c=new _0x2ad968();for(const _0x33c59e of _0x16da37){const _0xbf0e06={'type':'button','model':new to({'label':_0x33c59e['name'],'class':_0x33c59e['class'],'withText':!0x0,'role':'menuitem','_action':_0x33c59e['action']})};_0xbf0e06['model']['bind']('isEnabled')['to'](_0x537b8b,'isActionsDropdownOpen',_0x5973f3=>'function'!=typeof _0x33c59e['isEnabled']||(!_0x5973f3||_0x33c59e['isEnabled'](_0x537b8b))),_0x22424c['add'](_0xbf0e06);}return _0x22424c;}(_0x2a9079,_0x2d2159);return _0x2a9079['bind']('isActionsDropdownOpen')['to'](_0x5660ec,'isOpen'),_0x5660ec['buttonView']['set']({'label':R(_0x3e248b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x888a61['threeVerticalDots']}),_0x5660ec['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4fbdeb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4fbdeb['to'](_0x4fad9f=>_0x4fad9f['stopPropagation']())}}),_0x5660ec['on']('execute',_0xcacd75=>{_0x2a9079['isReady']&&'function'==typeof _0xcacd75['source']['_action']&&_0xcacd75['source']['_action'](_0x2a9079);}),_0x3d32c0(_0x5660ec,_0x3ab3ea,{'role':'menu'}),_0x5660ec['listenTo'](_0x2a9079,'change:isActionsDropdownOpen',(_0x1080aa,_0x6ffbf0,_0x2965eb)=>{if(_0x2965eb)for(const _0x4cec23 of _0x5660ec['listView']['items']){const _0x5b8c30=_0x4cec23['children']['first'],_0x233bc5=_0x2d2159['find'](_0x3b46af=>_0x3b46af['action']===_0x5b8c30['_action'])['isVisible'];_0x4cec23['isVisible']=void 0x0===_0x233bc5||_0x233bc5(_0x2a9079);}}),_0x5660ec;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x33105c(_0x2c43c9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x277f19,_0x878266,_0xbfbaa,_0x227e2a){super(_0x277f19);const _0x131a7b=this['bindTemplate'],_0x40d7b6=function(_0x390b19,_0x3139db){const _0x59d2e8=Array['from'](_0x3139db['authors'])['filter'](_0x2ddb0b=>_0x2ddb0b!=_0x3139db['creator']);return _0x3139db['creator']&&_0x59d2e8['unshift'](_0x3139db['creator']),_0x59d2e8['map'](_0x54ca7a=>new ti(_0x390b19,_0x54ca7a,_0x54ca7a==_0x3139db['creator']));}(_0x277f19,_0x878266);this['id']=_0x878266['id'],this['_revision']=_0x878266,this['_requireRevisionName']=_0x227e2a,this['bind']('name','createdAt')['to'](_0x878266),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40a6f4=>{return _0x204042=_0x277f19['uiLanguage'],(_0x54bf08=_0x40a6f4)['toLocaleDateString'](_0x204042,{'month':'long','day':'numeric'})+',\x20'+_0x54bf08['toLocaleTimeString'](_0x204042,{'hour':'numeric','minute':'numeric'});var _0x204042,_0x54bf08;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x277f19,_0x4fabfa),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x135ea7=>_0x135ea7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1cac97,_0x3ddfbd)=>_0x1cac97&&_0x3ddfbd),this['revisionActionsView']=_0xbfbaa&&_0xbfbaa['length']?ni(this,_0xbfbaa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x131a7b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x131a7b['if']('isEnabled','ck-disabled',_0x38262f=>!_0x38262f),_0x131a7b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x131a7b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x131a7b['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':_0x131a7b['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':_0x40d7b6}]},this['revisionActionsView']],'on':{'click':_0x131a7b['to'](_0x448d64=>{_0x448d64['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2ca3b8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2ca3b8,'change',()=>{this['_requireRevisionName']&&!_0x2ca3b8['value']||this['fire']('setName',{'id':this['id'],'name':_0x2ca3b8['value']}),_0x2ca3b8['value']||(_0x2ca3b8['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x52a232,_0x3ecc1b){const _0x33f11b=_0x283079['fromJSDate'](_0x52a232)['setLocale'](_0x3ecc1b),_0x419b8a=_0x283079['local'](),_0xddfcb8=_0x419b8a['minus']({'days':0x1})['startOf']('day');let _0xdecbb5,_0x2d7a96;return _0x33f11b['hasSame'](_0x419b8a,'day')?(_0xdecbb5=_0x33f11b['startOf']('day')['toJSDate'](),_0x2d7a96=_0x33f11b['toRelativeCalendar']()):_0x33f11b['hasSame'](_0xddfcb8,'day')?(_0xdecbb5=_0xddfcb8['toJSDate'](),_0x2d7a96=_0x33f11b['toRelativeCalendar']()):_0x33f11b['hasSame'](_0x419b8a,'week')?(_0xdecbb5=_0x33f11b['startOf']('week')['toJSDate'](),_0x2d7a96=_0x33f11b['weekdayLong']||''):_0x33f11b['hasSame'](_0x419b8a,'year')?(_0xdecbb5=_0x33f11b['startOf']('month')['toJSDate'](),_0x2d7a96=_0x33f11b['monthLong']||''):(_0xdecbb5=_0x33f11b['startOf']('year')['toJSDate'](),_0x2d7a96=String(_0x33f11b['year'])),{'startDate':_0xdecbb5,'localizedPeriodName':_0x2d7a96};}class mi extends _0x2c43c9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x34d782,_0x4341ff,_0x42bdc2,_0x11d983){super(_0x34d782);const _0x109877=di(_0x4341ff,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4341ff,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x42bdc2,this['_requireRevisionName']=_0x11d983,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':_0x109877}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4ccaf3){const _0x3d30ed=new ai(this['locale'],_0x4ccaf3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3d30ed);}['removeRevision'](_0x4d4261){const _0xf31c4c=this['revisionViews']['find'](_0x22e299=>_0x22e299['id']===_0x4d4261['id']);this['revisionViews']['remove'](_0xf31c4c);}}class as extends _0x2c43c9{constructor(_0x5e47ec){super(_0x5e47ec);const _0x2d9a9f=new _0x544954();_0x2d9a9f['content']=_0x888a61['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2d9a9f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5e47ec,'Revision\x20history')]}]});}}class ci extends _0x2c43c9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xf73ee9,_0x4dbff5,_0x4e7077,_0x593d4e){super(_0xf73ee9);const _0x59442b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4dbff5,this['_revisionActions']=_0x4e7077,this['_requireRevisionName']=_0x593d4e,this['on']('select',(_0x2b8669,_0x3ab664)=>{this['fire']('revisionSelected',_0x3ab664);}),this['on']('setName',(_0x3087f7,_0x5648b9)=>{this['fire']('revisionSetName',_0x5648b9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xf73ee9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x59442b['if']('isEnabled','ck-disabled',_0x5f02d2=>!_0x5f02d2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2dc929 of this['_revisions'])this['_addRevision'](_0x2dc929);this['_revisions']['on']('add',(_0x1a269b,_0x2e8de3)=>{this['_addRevision'](_0x2e8de3);}),this['_revisions']['on']('remove',(_0x96f07d,_0x2e4979)=>{this['_removeRevision'](_0x2e4979);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2e98a8=>_0x2e98a8['revisionViews']['map'](_0x494419=>_0x494419))['flat']();}['selectRevision'](_0x1ca27c){for(const _0x492714 of this['revisionViews'])_0x1ca27c&&_0x1ca27c['id']===_0x492714['id']?_0x492714['select']():_0x492714['deselect']();}['highlightRevisions'](_0x4f6b91){for(const _0x4c1bd3 of this['revisionViews'])_0x4f6b91['some'](({id:_0x5eaa02})=>_0x5eaa02===_0x4c1bd3['id'])?_0x4c1bd3['highlight']():_0x4c1bd3['unhighlight']();}['_addRevision'](_0x5cc6cb){const _0x295da7=di(_0x5cc6cb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x23e232=this['timePeriodViews']['get'](0x0);_0x23e232&&_0x23e232['startDate']['getTime']()===_0x295da7['getTime']()||(_0x23e232=new mi(this['locale'],_0x295da7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x23e232)),_0x23e232['addRevision'](_0x5cc6cb);}['_removeRevision'](_0x3318f0){const _0x40e459=di(_0x3318f0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x40e459)['removeRevision'](_0x3318f0);}['_getTimePeriodViewByStartDate'](_0x311728){return this['timePeriodViews']['find'](_0x3a056d=>_0x3a056d['startDate']['getTime']()===_0x311728['getTime']());}}class g extends _0x24aabd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x49d0cf){super(_0x49d0cf),this['_revisionViewer']=_0x49d0cf['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x434904=this['_revisionsRepository']['_revisions'],_0x128e57=this['_createRevisionActions'](),_0x54ccd1=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x434904,_0x128e57,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',(_0x56b8b2,_0x1fe467)=>{_0x1fe467['revisionViews']['on']('add',(_0x1bbe88,_0x532a6c)=>{_0x532a6c['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)),_0x54ccd1['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f2ace=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f2ace){const _0x789bfd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f2ace['id']);this['_revisionViewer']['compare'](_0x1f2ace,_0x789bfd);}}['_handleRevisionSelected'](_0x5c2c32,_0x412c64){const _0x42289a=this['_revisionsRepository']['getRevision'](_0x412c64['id']),_0x2c0163=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42289a['id']);this['_revisionViewer']['compare'](_0x42289a,_0x2c0163);}['_handleRevisionSetName'](_0x50f9db,_0x214012){this['_revisionsRepository']['getRevision'](_0x214012['id'])['setName'](_0x214012['name']);}['_handleDiffChange'](_0x2a32a1,_0x262459,_0x52e806){const _0x751b91=this['_revisionsRepository']['getRevisionsInDiff'](_0x52e806);_0x751b91['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x751b91),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x751b91[0x0]));}['_createRevisionActions'](){const _0x2042c4=this['editor'],_0x216382=g['availableRevisionActions'],_0x3d594b=_0x2042c4['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x3d594b['length'])return _0x3d594b['map'](_0x54ea85=>{const _0x4ce663='string'==typeof _0x54ea85?Object['assign']({},_0x216382[_0x54ea85]):_0x54ea85;return _0x4ce663['action']=_0x4ce663['action']['bind'](this,_0x2042c4),_0x4ce663['isVisible']&&(_0x4ce663['isVisible']=_0x4ce663['isVisible']['bind'](this,_0x2042c4)),_0x4ce663;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd3fa59},_0xd06ec5)=>{const _0x255284=_0xd3fa59['get'](d),_0x24e9ea=_0x255284['repository'];let _0x1ff466=_0x255284['diff']['newRevisionId'],_0x400868=_0xd06ec5['id'];_0x24e9ea['getIndex'](_0x1ff466)>_0x24e9ea['getIndex'](_0x400868)&&([_0x1ff466,_0x400868]=[_0x400868,_0x1ff466]),_0x255284['compare'](_0x1ff466,_0x400868);},'isVisible':({plugins:_0x32c488},_0x465b36)=>{const _0x1e1bf4=_0x32c488['get'](d);return!(_0x1e1bf4['repository']['getRevisionsInDiff'](_0x1e1bf4['diff'])['length']>0x2)&&!_0x465b36['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4d3499,{id:_0xbdf087})=>{_0x4d3499['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xbdf087);},'isVisible':({plugins:_0x42ee46},_0x2c3a45)=>!!_0x42ee46['get'](d)['repository']['getLaterVisibleRevision'](_0x2c3a45['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x144732},{id:_0x50bd70,revisionNameView:_0x1b3976})=>{const _0x1f65b9=_0x144732['get'](d),_0x4552b2=_0x1f65b9['repository']['getEarlierVisibleRevision'](_0x50bd70);_0x1f65b9['compare'](_0x50bd70,_0x4552b2),_0x1b3976['focus'](),_0x1b3976['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x436fbe,_0x490f5c){super(_0x436fbe),this['_view']=_0x490f5c,this['_toolbarConfig']=ht(_0x436fbe['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x326ae3){const _0x4dc53e=this['editor'],_0x4c7da4=this['view'],_0x4d31e0=_0x4dc53e['editing']['view'],_0x43dc1c=_0x4c7da4['editable'],_0x2a3c5b=_0x4d31e0['document']['getRoot']();_0x43dc1c['name']=_0x2a3c5b['rootName'],_0x4c7da4['render']();const _0x1217ca=_0x43dc1c['element'];this['setEditableElement'](_0x43dc1c['name'],_0x1217ca),_0x4c7da4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4d31e0['attachDomRoot'](_0x1217ca),this['_elementReplacer']['replace'](_0x326ae3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5246e7=this['view'],_0x5901b9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5901b9['detachDomRoot'](_0x5246e7['editable']['name']),_0x5246e7['destroy']();}['_initToolbar'](){const _0xb04a7d=this['view'];_0xb04a7d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xb04a7d['stickyPanel']['limiterElement']=_0xb04a7d['element'],_0xb04a7d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xf29023})=>_0xf29023),_0xb04a7d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xb04a7d['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3dbf9e,_0x368028,_0x1fa9c2={}){super(_0x3dbf9e),this['stickyPanel']=new lt(_0x3dbf9e),this['toolbar']=new nt(_0x3dbf9e,{'shouldGroupWhenFull':_0x1fa9c2['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3dbf9e,_0x368028);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4f7b08,_0x42bd31){super(_0x42bd31),this['sourceElement']=_0x4f7b08,this['model']['document']['createRoot']();const _0x4752ed=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x4752ed);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x547d60,_0x15ac25){const _0x1b340f=new this(_0x547d60,_0x15ac25);return await _0x1b340f['initPlugins'](),await _0x1b340f['ui']['init'](_0x547d60),await _0x1b340f['data']['init'](_0x1b340f['config']['get']('initialData')||''),_0x1b340f['fire']('ready'),_0x1b340f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x52ad62{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b6d85){function _0x37fa9f(_0x31c1aa){return _0x31c1aa['map'](_0x13d974=>String['fromCharCode'](_0x13d974))['join']('');}super(_0x2b6d85),this['result']='end',_0x2b6d85[_0x37fa9f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37fa9f([0x76,0x69,0x65,0x77])][_0x37fa9f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37fa9f([0x61,0x75,0x74,0x6f]),_0x2b6d85[_0x37fa9f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x37fa9f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37fa9f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x37fa9f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x37fa9f([0x6f,0x6b])});}}class H extends _0x52ad62{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3d9c7a){if(super(_0x3d9c7a),!this['editor']['config']['get']('revisionHistory'))throw new _0x93f9cb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x41fd7d=>this['_showRevisionViewer']({..._0x41fd7d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x591265=>this['_closeRevisionViewer'](_0x591265)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x335cec=>this['_restoreRevision'](_0x335cec)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40d536){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40d536;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x33d266){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x33d266);}['getRevision'](_0x56675e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x56675e);}['getRevisions'](_0x221daf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x221daf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4fece4=this['editor'],_0x589a2d=_0x3f13e4(_0x4fece4,p),_0x20563c=_0x4fece4['plugins']['get']('RevisionTracker'),_0x1b6e80=_0x4fece4['plugins']['get']('Users')['users'];return _0x589a2d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x589a2d['lazyRoots'],(_0x589a2d['plugins']['push'](k,d,m,class extends _0x52ad62{static get['requires'](){return[d,'Users'];}['init'](){const _0x4f79ef=this['editor']['plugins']['get']('Users');for(const _0x38a79a of _0x1b6e80)_0x38a79a['isAnonymous']||_0x4f79ef['getUser'](_0x38a79a['id'])||_0x4f79ef['addUser'](_0x38a79a);const _0x2ca9e8=_0x20563c['repository']['getRevisions']();let _0x421ddd=null;const _0x66102d=this['editor']['plugins']['get']('RevisionViewer');_0x66102d['adapter']=_0x20563c['adapter'],_0x66102d['bind']('isEnabled')['to'](_0x20563c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4fece4,'isReadOnly',_0x3cba4d=>!_0x3cba4d);for(const _0xf1ca7c of _0x2ca9e8){const _0x355ff6=null===_0xf1ca7c['creator'];if(_0x355ff6&&_0xf1ca7c['toVersion']===_0xf1ca7c['fromVersion'])continue;const _0x409384=_0xf1ca7c['toJSON']();_0x66102d['addRevisionData'](_0x409384,(_0x1012c4,_0x25df00,_0xa2f1ab)=>{if(_0x355ff6){if(_0x421ddd)_0x421ddd['_update'](_0x1012c4,_0x25df00);else{if(!_0x25df00){const _0x1ff2ee=_0xa2f1ab['toJSON']();_0x1ff2ee['id']=_0x164885(),_0x20563c['saveRevision'](_0x1ff2ee,_0xa2f1ab['toVersion'])['then'](_0x404052=>{_0x421ddd=_0x404052;});}}}else _0xf1ca7c['_update'](_0x1012c4,_0x25df00);});}}},g),_0x589a2d);}['_enhanceShowRevisionViewerCallback'](){const _0xb6a06d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d3e7f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x857b47=this['editor']['plugins']['get']('Autosave');await _0x857b47['save']();}else await _0x5d3e7f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30609d=this['editor']['plugins']['get']('Dialog');_0x30609d['isOpen']&&_0x30609d['hide']();}const _0x3137aa=this['_getRevisionViewerEditorConfig']();return _0xb6a06d(_0x3137aa)['then'](_0x4bc47f=>{return(this['_viewerEditor']=_0x4bc47f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4bc47f;})['catch'](_0x770a73=>(console['error'](_0x770a73),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2fa777=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2fa777(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x353c29=this['editor']['plugins']['get']('Annotations');_0x353c29['refreshVisibility'](),_0x353c29['refreshPositioning']();}})));}['_showRevisionViewer'](_0x11ecb6){const _0x24f2b8=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x37d6bd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4abf3f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4abf3f,_0x11ecb6)['then'](_0x3f58f3=>(_0x37d6bd['style']['display']='block',_0x24f2b8['style']['display']='none',_0x3f58f3));}['_closeRevisionViewer'](_0x496d78){const _0x524240=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x524240['style']['display']='',_0x496d78['destroy']();}async['_restoreRevision'](_0x1cf7df){const _0x4c3a22=this['editor'],_0x497c45=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x109bd8=_0x4c3a22['plugins']['get']('RevisionTracker'),_0x1de4c9=_0x497c45['repository']['getRevision'](_0x1cf7df);let _0x249675,_0x654fbc,_0x3b1372;try{_0x249675=await _0x497c45['getRevisionData'](_0x1de4c9),_0x654fbc=await _0x497c45['getRevisionRootsAttributes'](_0x1de4c9);}catch(_0x13668e){return void console['error'](_0x13668e);}_0x4c3a22['model']['change'](_0x5549d0=>{for(const _0x100ca6 of Array['from'](_0x4c3a22['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5549d0['removeMarker'](_0x100ca6);}),_0x497c45['isReady']=!0x1,_0x4c3a22['model']['enqueueChange'](_0x3f218c=>{_0x3f218c['setSelection'](null),_0x3f218c['removeSelectionAttribute'](_0x4c3a22['model']['document']['selection']['getAttributeKeys']());const _0x11e699=Object['keys'](_0x249675);for(const _0x300419 of _0x4c3a22['model']['document']['roots'])'$graveyard'!=_0x300419['rootName']&&_0x300419['isAttached']()&&!_0x11e699['includes'](_0x300419['rootName'])&&_0x3f218c['detachRoot'](_0x300419);for(const _0x56dd72 of _0x11e699){let _0x13af40=_0x4c3a22['model']['document']['getRoot'](_0x56dd72);_0x13af40&&_0x13af40['isAttached']()||(_0x13af40=_0x3f218c['addRoot'](_0x56dd72));const _0x59d580=_0x654fbc[_0x56dd72],_0x188cee=Object['keys'](_0x59d580),_0x21e4d2=_0x249675[_0x56dd72];for(const _0x32714c of _0x13af40['getAttributeKeys']())_0x188cee['includes'](_0x32714c)||_0x3f218c['removeAttribute'](_0x32714c,_0x13af40);for(const _0x5272fa of _0x188cee)_0x3f218c['setAttribute'](_0x5272fa,_0x654fbc[_0x56dd72][_0x5272fa],_0x13af40);_0x3f218c['remove'](_0x3f218c['createRangeIn'](_0x13af40)),_0x3f218c['insert'](_0x4c3a22['data']['parse'](_0x21e4d2,_0x13af40),_0x13af40,0x0);}});const _0x19b8c1=R(_0x4c3a22['locale'],'Restored');if(_0x1de4c9['name'])_0x3b1372=-0x1==_0x1de4c9['name']['indexOf'](_0x19b8c1)?_0x19b8c1+':\x20'+_0x1de4c9['name']:_0x1de4c9['name'];else _0x3b1372=_0x19b8c1+':\x20'+(_0x1de4c9['createdAt']['toLocaleDateString'](_0x4c3a22['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1de4c9['createdAt']['toLocaleTimeString'](_0x4c3a22['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x109bd8['saveRevision']({'name':_0x3b1372}),_0x497c45['isReady']=!0x0,_0x4c3a22['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x46242a){super(_0x46242a),this['_revisionViewer']=_0x46242a['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x429c8f=this['_revisionsRepository']['_revisions'],_0xd1e78d=this['_createRevisionActions'](),_0x57cd5e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x429c8f,_0xd1e78d,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',(_0x15d719,_0x65fa1d)=>{_0x65fa1d['revisionViews']['on']('add',(_0x2635db,_0x195c0d)=>{_0x195c0d['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)),_0x57cd5e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2b3871=this['_revisionsRepository']['getRevision'](0x0);if(_0x2b3871){const _0x414da7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2b3871['id']);this['_revisionViewer']['compare'](_0x2b3871,_0x414da7);}}['_handleRevisionSelected'](_0xb51152,_0x4a3064){const _0x3f9682=this['_revisionsRepository']['getRevision'](_0x4a3064['id']),_0x372837=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3f9682['id']);this['_revisionViewer']['compare'](_0x3f9682,_0x372837);}['_handleRevisionSetName'](_0x316fdd,_0x56f107){this['_revisionsRepository']['getRevision'](_0x56f107['id'])['setName'](_0x56f107['name']);}['_handleDiffChange'](_0x593a2e,_0x46384b,_0x55458b){const _0x3aa2d1=this['_revisionsRepository']['getRevisionsInDiff'](_0x55458b);_0x3aa2d1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3aa2d1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3aa2d1[0x0]));}['_createRevisionActions'](){const _0x22f6dd=this['editor'],_0x48675f=g['availableRevisionActions'],_0x2710ad=_0x22f6dd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2710ad['length'])return _0x2710ad['map'](_0x4b2988=>{const _0xd6e9db='string'==typeof _0x4b2988?Object['assign']({},_0x48675f[_0x4b2988]):_0x4b2988;return _0xd6e9db['action']=_0xd6e9db['action']['bind'](this,_0x22f6dd),_0xd6e9db['isVisible']&&(_0xd6e9db['isVisible']=_0xd6e9db['isVisible']['bind'](this,_0x22f6dd)),_0xd6e9db;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x32a6df},_0x1a622e)=>{const _0x26fd3e=_0x32a6df['get'](d),_0x501052=_0x26fd3e['repository'];let _0x2cfc70=_0x26fd3e['diff']['newRevisionId'],_0x2e442c=_0x1a622e['id'];_0x501052['getIndex'](_0x2cfc70)>_0x501052['getIndex'](_0x2e442c)&&([_0x2cfc70,_0x2e442c]=[_0x2e442c,_0x2cfc70]),_0x26fd3e['compare'](_0x2cfc70,_0x2e442c);},'isVisible':({plugins:_0x291be0},_0x511098)=>{const _0x34bf43=_0x291be0['get'](d);return!(_0x34bf43['repository']['getRevisionsInDiff'](_0x34bf43['diff'])['length']>0x2)&&!_0x511098['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x559025,{id:_0x2d8881})=>{_0x559025['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d8881);},'isVisible':({plugins:_0x2c232c},_0xa86de2)=>!!_0x2c232c['get'](d)['repository']['getLaterVisibleRevision'](_0xa86de2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc04e9},{id:_0x116e2c,revisionNameView:_0x1b8077})=>{const _0x16c52a=_0xc04e9['get'](d),_0x2a4607=_0x16c52a['repository']['getEarlierVisibleRevision'](_0x116e2c);_0x16c52a['compare'](_0x116e2c,_0x2a4607),_0x1b8077['focus'](),_0x1b8077['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3e3946,_0x20e38f){super(_0x3e3946),this['_view']=_0x20e38f,this['_toolbarConfig']=ht(_0x3e3946['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x59ea9d){const _0x1eb05d=this['editor'],_0x5c4ed4=this['view'],_0x424fe4=_0x1eb05d['editing']['view'],_0x250a3f=_0x5c4ed4['editable'],_0x43a5f5=_0x424fe4['document']['getRoot']();_0x250a3f['name']=_0x43a5f5['rootName'],_0x5c4ed4['render']();const _0x518a63=_0x250a3f['element'];this['setEditableElement'](_0x250a3f['name'],_0x518a63),_0x5c4ed4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x424fe4['attachDomRoot'](_0x518a63),this['_elementReplacer']['replace'](_0x59ea9d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c662b=this['view'],_0x524dc1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x524dc1['detachDomRoot'](_0x1c662b['editable']['name']),_0x1c662b['destroy']();}['_initToolbar'](){const _0x1bf03e=this['view'];_0x1bf03e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1bf03e['stickyPanel']['limiterElement']=_0x1bf03e['element'],_0x1bf03e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x890d08})=>_0x890d08),_0x1bf03e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1bf03e['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1241a9,_0x4660f1,_0x12a88f={}){super(_0x1241a9),this['stickyPanel']=new lt(_0x1241a9),this['toolbar']=new nt(_0x1241a9,{'shouldGroupWhenFull':_0x12a88f['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x1241a9,_0x4660f1);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4e6451,_0x207961){super(_0x207961),this['sourceElement']=_0x4e6451,this['model']['document']['createRoot']();const _0x3e7d71=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3e7d71);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2c64eb,_0xd816b0){const _0x3a1126=new this(_0x2c64eb,_0xd816b0);return await _0x3a1126['initPlugins'](),await _0x3a1126['ui']['init'](_0x2c64eb),await _0x3a1126['data']['init'](_0x3a1126['config']['get']('initialData')||''),_0x3a1126['fire']('ready'),_0x3a1126;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x24aabd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x202c14){function _0x624173(_0xc03c99){return _0xc03c99['map'](_0x4d03b9=>String['fromCharCode'](_0x4d03b9))['join']('');}super(_0x202c14),this['result']='end',_0x202c14[_0x624173([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x624173([0x76,0x69,0x65,0x77])][_0x624173([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x624173([0x61,0x75,0x74,0x6f]),_0x202c14[_0x624173([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x624173([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x624173([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x624173([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x624173([0x6f,0x6b])});}}class H extends _0x24aabd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1dfd5a){if(super(_0x1dfd5a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2c83c4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1216e0=>this['_showRevisionViewer']({..._0x1216e0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6efeaa=>this['_closeRevisionViewer'](_0x6efeaa)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb5d5d8=>this['_restoreRevision'](_0xb5d5d8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc5b1a4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc5b1a4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f7658){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f7658);}['getRevision'](_0x4ae114){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ae114);}['getRevisions'](_0x4705cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4705cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xbc5759=this['editor'],_0x1fdf79=_0x3f5003(_0xbc5759,p),_0x940aad=_0xbc5759['plugins']['get']('RevisionTracker'),_0x3e2218=_0xbc5759['plugins']['get']('Users')['users'];return _0x1fdf79['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1fdf79['lazyRoots'],(_0x1fdf79['plugins']['push'](k,d,m,class extends _0x24aabd{static get['requires'](){return[d,'Users'];}['init'](){const _0x123115=this['editor']['plugins']['get']('Users');for(const _0x19854 of _0x3e2218)_0x19854['isAnonymous']||_0x123115['getUser'](_0x19854['id'])||_0x123115['addUser'](_0x19854);const _0x267ceb=_0x940aad['repository']['getRevisions']();let _0xb13620=null;const _0x487488=this['editor']['plugins']['get']('RevisionViewer');_0x487488['adapter']=_0x940aad['adapter'],_0x487488['bind']('isEnabled')['to'](_0x940aad),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xbc5759,'isReadOnly',_0x48c847=>!_0x48c847);for(const _0x1fb415 of _0x267ceb){const _0x383b33=null===_0x1fb415['creator'];if(_0x383b33&&_0x1fb415['toVersion']===_0x1fb415['fromVersion'])continue;const _0x37fc85=_0x1fb415['toJSON']();_0x487488['addRevisionData'](_0x37fc85,(_0x53cc82,_0xa2d568,_0x3a5440)=>{if(_0x383b33){if(_0xb13620)_0xb13620['_update'](_0x53cc82,_0xa2d568);else{if(!_0xa2d568){const _0x4e9e4a=_0x3a5440['toJSON']();_0x4e9e4a['id']=_0x4dce4d(),_0x940aad['saveRevision'](_0x4e9e4a,_0x3a5440['toVersion'])['then'](_0x295998=>{_0xb13620=_0x295998;});}}}else _0x1fb415['_update'](_0x53cc82,_0xa2d568);});}}},g),_0x1fdf79);}['_enhanceShowRevisionViewerCallback'](){const _0x3cf8d4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4aca0f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd67fa3=this['editor']['plugins']['get']('Autosave');await _0xd67fa3['save']();}else await _0x4aca0f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x131d81=this['editor']['plugins']['get']('Dialog');_0x131d81['isOpen']&&_0x131d81['hide']();}const _0x3e0d66=this['_getRevisionViewerEditorConfig']();return _0x3cf8d4(_0x3e0d66)['then'](_0x1ef73c=>{return(this['_viewerEditor']=_0x1ef73c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1ef73c;})['catch'](_0x16e2ee=>(console['error'](_0x16e2ee),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x379bdb=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x379bdb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x18c973=this['editor']['plugins']['get']('Annotations');_0x18c973['refreshVisibility'](),_0x18c973['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3e7318){const _0x3ff5db=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4ce097=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55675a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x55675a,_0x3e7318)['then'](_0x3797e2=>(_0x4ce097['style']['display']='block',_0x3ff5db['style']['display']='none',_0x3797e2));}['_closeRevisionViewer'](_0xa5822b){const _0x53de07=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53de07['style']['display']='',_0xa5822b['destroy']();}async['_restoreRevision'](_0x127aeb){const _0x4e113b=this['editor'],_0x35eba0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x232de0=_0x4e113b['plugins']['get']('RevisionTracker'),_0xc6cc98=_0x35eba0['repository']['getRevision'](_0x127aeb);let _0x5633e6,_0x157a61,_0x50aa91;try{_0x5633e6=await _0x35eba0['getRevisionData'](_0xc6cc98),_0x157a61=await _0x35eba0['getRevisionRootsAttributes'](_0xc6cc98);}catch(_0xdebb31){return void console['error'](_0xdebb31);}_0x4e113b['model']['change'](_0x463336=>{for(const _0x14d38e of Array['from'](_0x4e113b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x463336['removeMarker'](_0x14d38e);}),_0x35eba0['isReady']=!0x1,_0x4e113b['model']['enqueueChange'](_0x23b062=>{_0x23b062['setSelection'](null),_0x23b062['removeSelectionAttribute'](_0x4e113b['model']['document']['selection']['getAttributeKeys']());const _0x1ae232=Object['keys'](_0x5633e6);for(const _0x1604a2 of _0x4e113b['model']['document']['roots'])'$graveyard'!=_0x1604a2['rootName']&&_0x1604a2['isAttached']()&&!_0x1ae232['includes'](_0x1604a2['rootName'])&&_0x23b062['detachRoot'](_0x1604a2);for(const _0x13a001 of _0x1ae232){let _0x56ca54=_0x4e113b['model']['document']['getRoot'](_0x13a001);_0x56ca54&&_0x56ca54['isAttached']()||(_0x56ca54=_0x23b062['addRoot'](_0x13a001));const _0x3b905a=_0x157a61[_0x13a001],_0x16d16e=Object['keys'](_0x3b905a),_0x148f41=_0x5633e6[_0x13a001];for(const _0x8b8e0a of _0x56ca54['getAttributeKeys']())_0x16d16e['includes'](_0x8b8e0a)||_0x23b062['removeAttribute'](_0x8b8e0a,_0x56ca54);for(const _0x584244 of _0x16d16e)_0x23b062['setAttribute'](_0x584244,_0x157a61[_0x13a001][_0x584244],_0x56ca54);_0x23b062['remove'](_0x23b062['createRangeIn'](_0x56ca54)),_0x23b062['insert'](_0x4e113b['data']['parse'](_0x148f41,_0x56ca54),_0x56ca54,0x0);}});const _0x41a15b=R(_0x4e113b['locale'],'Restored');if(_0xc6cc98['name'])_0x50aa91=-0x1==_0xc6cc98['name']['indexOf'](_0x41a15b)?_0x41a15b+':\x20'+_0xc6cc98['name']:_0xc6cc98['name'];else _0x50aa91=_0x41a15b+':\x20'+(_0xc6cc98['createdAt']['toLocaleDateString'](_0x4e113b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc6cc98['createdAt']['toLocaleTimeString'](_0x4e113b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x232de0['saveRevision']({'name':_0x50aa91}),_0x35eba0['isReady']=!0x0,_0x4e113b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};