@ckeditor/ckeditor5-revision-history 45.2.0-alpha.6 → 45.2.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 _0x527396,uid as _0x23ef34,Collection as _0x8e09a8,logWarning as _0x3a7a75,FocusTracker as _0x3291ac,KeystrokeHandler as _0x464bc5,scrollViewportToShowTarget as _0x402df6,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3a3a89}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4f42bf,set as _0x31112,unset as _0x3cccff,isEqual as _0xc0ac2a}from'es-toolkit/compat';import{Plugin as _0x1c4af5,PendingActions as _0x1829e5,Command as _0x23a987,ElementApiMixin as _0x1734c3,Editor as _0x4bfe92}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2d92c6,getMarkerDomElement as _0xa5efd9,ConfirmMixin as _0xeb6f8,sanitizeEditorConfig as _0x2aa71f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x407874,ViewAttributeElement as _0x13047c,ViewEmptyElement as _0xbb0bf6,ViewRawElement as _0x1c09cd,ViewUIElement as _0x3fde33,ViewDocumentFragment as _0x42654c,ViewText as _0x33dbee,ViewElement as _0x4d5a82,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3732f9,IconChevronUp as _0x7be787,IconChevronDown as _0x4fb9d0,IconUndo as _0x3c535e,IconUser as _0x4dc289,IconThreeVerticalDots as _0x28d656}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4739c1,injectCssTransitionDisabler as ts,submitHandler as _0x336625,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x331ab6,ListView as _0x265565,ListItemView as te,ButtonView as _0x389c57,MenuBarMenuView as _0x3ea6c1,MenuBarMenuListView as _0x3187ae,MenuBarMenuListItemView as _0x446412,MenuBarMenuListItemButtonView as _0xb4e151,ContextualBalloon as _0x287c7,ToolbarSeparatorView as _0x54c3f0,IconView as _0x1a4ccc,addListToDropdown as _0x1593df,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x509d90}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x527396(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4b5a42){super(),this['id']=_0x4b5a42['id']||_0x23ef34(),this['creator']=_0x4b5a42['creator']||null,this['authors']=_0x4b5a42['authors']||[],this['diffData']=_0x4b5a42['diffData']||null,this['toVersion']=_0x4b5a42['toVersion']||0x0,this['fromVersion']=_0x4b5a42['fromVersion']||0x0,this['set']('name',_0x4b5a42['name']||''),this['set']('createdAt',_0x4b5a42['createdAt']||new Date()),this['set']('attributes',_0x4b5a42['attributes']||{});}['setName'](_0x3f78c3){this['_update']({'name':_0x3f78c3});}['setAttribute'](_0x4aa337,_0x560218){const _0x409b9c=_0x4f42bf(this['attributes']);_0x31112(_0x409b9c,_0x4aa337,_0x560218),this['_update']({'attributes':_0x409b9c});}['removeAttribute'](_0x108787){const _0x4ee998=_0x4f42bf(this['attributes']);_0x3cccff(_0x4ee998,_0x108787),this['_update']({'attributes':_0x4ee998});}['_update'](_0x5594ee,_0x428b2d=!0x1){let _0x3295c4=!0x1;const _0xe6a0a7={'id':this['id']},_0x459f2a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4a7f36 of _0x459f2a){const _0x5eb5d8=_0x5594ee[_0x4a7f36];void 0x0!==_0x5eb5d8&&_0x5eb5d8!==this[_0x4a7f36]&&(this[_0x4a7f36]=_0x5eb5d8,_0xe6a0a7[_0x4a7f36]=_0x5eb5d8,_0x3295c4=!0x0);}_0x3295c4&&(_0xe6a0a7['authors']&&(_0xe6a0a7['authorsIds']=_0xe6a0a7['authors']['map'](_0x5cb07f=>_0x5cb07f['id']),delete _0xe6a0a7['authors']),this['fire']('_update',_0xe6a0a7,_0x428b2d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a0668=>_0x5a0668['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x1c4af5{['_revisions'];static get['requires'](){return[_0x2d92c6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x12c929){super(_0x12c929),this['_revisions']=new _0x8e09a8();}['afterInit'](){!async function(_0x4333d4){const _0x4bb28d=_0x19c5ad([0x4e,0x4b,0x57,0x53,0x6a,0x4a,0x67,0x71,0x6e,0x66,0x61,0x32,0x6b,0x54,0x78,0x58,0x45,0x76,0x79,0x56,0x73,0x69,0x4d,0x75,0x4c,0x59,0x34,0x44,0x30,0x39,0x33,0x37,0x51,0x62,0x55,0x38,0x6d,0x5a,0x68,0x77,0x31,0x74,0x36,0x42,0x48,0x35,0x49,0x6c,0x63,0x70,0x72,0x52,0x64,0x41,0x47,0x4f,0x65,0x46,0x43,0x50,0x7a,0x6f]),_0x54987b=0xeb829,_0x2a7864=0x32bcbc07,_0x49bfe2=0x32bbd5b7^_0x2a7864,_0x45cf8a=window[_0x19c5ad([0x44,0x61,0x74,0x65])][_0x19c5ad([0x6e,0x6f,0x77])](),_0xa1b9cd=_0x4333d4[_0x19c5ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a42a5=new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a3948=>{_0xa1b9cd[_0x19c5ad([0x6f,0x6e,0x63,0x65])](_0x19c5ad([0x72,0x65,0x61,0x64,0x79]),_0x1a3948);}),_0x560545={[_0x19c5ad([0x6b,0x74,0x79])]:_0x19c5ad([0x45,0x43]),[_0x19c5ad([0x75,0x73,0x65])]:_0x19c5ad([0x73,0x69,0x67]),[_0x19c5ad([0x63,0x72,0x76])]:_0x19c5ad([0x50,0x2d,0x32,0x35,0x36]),[_0x19c5ad([0x78])]:_0x19c5ad([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]),[_0x19c5ad([0x79])]:_0x19c5ad([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]),[_0x19c5ad([0x61,0x6c,0x67])]:_0x19c5ad([0x45,0x53,0x32,0x35,0x36])},_0x3a46c6=_0xa1b9cd[_0x19c5ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19c5ad([0x67,0x65,0x74])](_0x19c5ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ac171(){let _0x4939cf,_0x5a4700=null,_0x5d0235=null;try{if(_0x3a46c6==_0x19c5ad([0x47,0x50,0x4c]))return _0x19c5ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4939cf=_0x27bf3d(),!_0x4939cf)return _0x19c5ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4939cf[_0x19c5ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d0235=_0x187553(_0x4939cf[_0x19c5ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4939cf[_0x19c5ad([0x6a,0x74,0x69])])),await _0x3631c4()?_0x3c7a8a()?_0x3f164d()?_0x19c5ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x356dfc()?(_0x4939cf[_0x19c5ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19c5ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a4700=_0xd5dd0f(_0x19c5ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4939cf[_0x19c5ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19c5ad([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a4700=_0xd5dd0f(_0x19c5ad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21e28b()):_0x19c5ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19c5ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19c5ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x19c5ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f164d(){const _0x2401c7=[_0x19c5ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19c5ad([0x74,0x72,0x69,0x61,0x6c])][_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4939cf[_0x19c5ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45cf8a/0x3e8:0xe10*_0x49bfe2;return _0x4939cf[_0x19c5ad([0x65,0x78,0x70])]<_0x2401c7;}function _0x3c7a8a(){const _0x2c2084=_0x4939cf[_0x19c5ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c2084)return!0x1;if(_0x2c2084[_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c5ad([0x2a])))return!0x0;if(_0x2c2084[_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c5ad([0x52,0x48])))return!0x0;if(_0x2c2084[_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c5ad([0x52,0x52,0x48]))){if(_0xa880b5())return!0x0;if(_0x4578de()||_0x1391a3())return!0x0;}return!0x1;}function _0x356dfc(){const _0x52c3de=_0x4939cf[_0x19c5ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52c3de||0x0==_0x52c3de[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ef48f}=new URL(window[_0x19c5ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x52c3de[_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef48f))return!0x0;const _0x1aa19e=_0x4ef48f[_0x19c5ad([0x73,0x70,0x6c,0x69,0x74])](_0x19c5ad([0x2e]));return _0x52c3de[_0x19c5ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x543e02=>_0x543e02[_0x19c5ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c5ad([0x2a])))[_0x19c5ad([0x6d,0x61,0x70])](_0x58bcc9=>_0x58bcc9[_0x19c5ad([0x73,0x70,0x6c,0x69,0x74])](_0x19c5ad([0x2e])))[_0x19c5ad([0x73,0x6f,0x6d,0x65])](_0x53a6d1=>_0x1aa19e[_0x19c5ad([0x65,0x76,0x65,0x72,0x79])]((_0x1071cf,_0x49a1dc)=>_0x53a6d1[_0x49a1dc]===_0x1071cf||_0x53a6d1[_0x49a1dc]===_0x19c5ad([0x2a])));}function _0x21e28b(){return _0x5a4700&&_0x5d0235?new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b2fda,_0x3fb104)=>{_0x5a4700[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x5b2fda,_0x3fb104),_0x5d0235[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x4bbd7f=>{_0x4bbd7f!=_0x19c5ad([0x56,0x61,0x6c,0x69,0x64])&&_0x5b2fda(_0x4bbd7f);},_0x3fb104);}):_0x5a4700||_0x5d0235||_0x19c5ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x187553(_0x2fca3a,_0x2109f9){return new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1478d0=>{if(_0x1c7c30())return _0x1478d0(_0x19c5ad([0x56,0x61,0x6c,0x69,0x64]));_0x1fd6ea(),_0xa1b9cd[_0x19c5ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19c5ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a9fcb=!0x1;const _0x229e2a=_0x23ef34();function _0x17d568(_0x5c5d6c){return!!_0x5c5d6c&&(typeof _0x5c5d6c===_0x19c5ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c5d6c===_0x19c5ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c5d6c[_0x19c5ad([0x74,0x68,0x65,0x6e])]===_0x19c5ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c5d6c[_0x19c5ad([0x63,0x61,0x74,0x63,0x68])]===_0x19c5ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1813bd(_0x2736de){_0x992370(_0x2736de)[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x3b4375=>{if(!_0x3b4375||_0x3b4375[_0x19c5ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19c5ad([0x6f,0x6b]))return _0x19c5ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32dec4(_0x227943(_0x229e2a+_0x2109f9))!=_0x3b4375[_0x19c5ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19c5ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19c5ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x2883aa=>(_0x163eec(),_0x2883aa),()=>{const _0x43088d=_0x1b2e1e();return null==_0x43088d?(_0x163eec(),_0x19c5ad([0x56,0x61,0x6c,0x69,0x64])):_0x19c5ad(_0x45cf8a-_0x43088d>(0x16b03807^_0x2a7864)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x1478d0)[_0x19c5ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1478d0(_0x19c5ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e6f8f=0x328a5287^_0x2a7864;function _0x163eec(){const _0x2b420a=_0x19c5ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x32dec4(_0x227943(_0x2fca3a)),_0x225fd6=_0x217f2f(_0x32dec4(window[_0x19c5ad([0x4d,0x61,0x74,0x68])][_0x19c5ad([0x63,0x65,0x69,0x6c])](_0x45cf8a/_0x1e6f8f)));window[_0x19c5ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19c5ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b420a,_0x225fd6);}function _0x1b2e1e(){const _0x2b025a=_0x19c5ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x32dec4(_0x227943(_0x2fca3a)),_0x3bf52f=window[_0x19c5ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19c5ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b025a);return _0x3bf52f?window[_0x19c5ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x217f2f(_0x3bf52f),0x10)*_0x1e6f8f:null;}function _0x992370(_0x3c415e){return new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42078e,_0x32597e)=>{_0x3c415e[_0x19c5ad([0x74,0x68,0x65,0x6e])](_0x42078e,_0x32597e),window[_0x19c5ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32597e,0x32bd68c7^_0x2a7864);});}}_0xa1b9cd[_0x19c5ad([0x6f,0x6e])](_0x19c5ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x356037,_0xd5f339)=>{if(_0xd5f339[0x0]!=_0x2fca3a)return _0x1478d0(_0x19c5ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd5f339[0x1]={..._0xd5f339[0x1],[_0x19c5ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x229e2a};},{[_0x19c5ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19c5ad([0x68,0x69,0x67,0x68])}),_0xa1b9cd[_0x19c5ad([0x6f,0x6e])](_0x19c5ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x320ed0=>{_0x17d568(_0x320ed0[_0x19c5ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a9fcb=!0x0,_0x1813bd(_0x320ed0[_0x19c5ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19c5ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19c5ad([0x6c,0x6f,0x77])}),_0x5a42a5[_0x19c5ad([0x74,0x68,0x65,0x6e])](()=>{_0x3a9fcb||_0x1478d0(_0x19c5ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c7c30(){return _0xa1b9cd[_0x19c5ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19c5ad([0x76,0x69,0x65,0x77])][_0x19c5ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19c5ad([0x61,0x75,0x74,0x6f]);}function _0x1fd6ea(){_0xa1b9cd[_0x19c5ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19c5ad([0x76,0x69,0x65,0x77])][_0x19c5ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19c5ad([0x61,0x75,0x74,0x6f]);}}function _0xd5dd0f(_0x1d2c01){const _0x54e41c=[new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f58a9=>setTimeout(_0x4f58a9,0x32b582cb^_0x2a7864)),_0x5a42a5[_0x19c5ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x531bd9=>{const _0x5dfa4b=0x32bcbc00^_0x2a7864,_0x15bff9=_0x4333d4[_0x19c5ad([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x466ae7(){_0x15bff9[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5dfa4b&&_0x531bd9();}_0x466ae7(),_0x15bff9[_0x19c5ad([0x6f,0x6e])](_0x19c5ad([0x61,0x64,0x64]),_0x466ae7);})),new window[(_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec335=>{function _0x4a0f76(){for(const _0xa8de94 in window)if(window[_0x19c5ad([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x19c5ad([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xa8de94))&&window[_0xa8de94]==_0x54987b)return _0x2ec335();_0xa1b9cd[_0x19c5ad([0x73,0x74,0x61,0x74,0x65])]!=_0x19c5ad([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x19c5ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a0f76,0x32bcaf8f^_0x2a7864);}_0x173301(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4a0f76();})];return window[_0x19c5ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19c5ad([0x72,0x61,0x63,0x65])](_0x54e41c)[_0x19c5ad([0x74,0x68,0x65,0x6e])](()=>_0x1d2c01);}async function _0x28f7f(){if(await _0x5a42a5,_0x173301(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4d57b4=_0x4333d4[_0x19c5ad([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3f300a=_0x4333d4[_0x19c5ad([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])](_0x4d57b4[_0x19c5ad([0x69,0x64])]),_0xfa6c68=_0x3e013c(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xfa6c68[_0x19c5ad([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4d57b4['id'],_0x3f300a?_0x3f300a['id']:null,!0x0),_0xfa6c68[_0x19c5ad([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x19c5ad([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfa6c68[_0x19c5ad([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfa6c68[_0x19c5ad([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4231fb,void(_0xfa6c68[_0x19c5ad([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4231fb);}if(_0x173301(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xa83301=_0x3e013c(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xa83301[_0x19c5ad([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x19c5ad([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa83301[_0x19c5ad([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa83301[_0x19c5ad([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4231fb,_0xa83301[_0x19c5ad([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4231fb;}_0xa1b9cd[_0x19c5ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x19c5ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4231fb,_0xa1b9cd[_0x19c5ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x19c5ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4231fb,_0xa1b9cd[_0x19c5ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19c5ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa880b5(){return _0x173301(_0x19c5ad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e013c(_0x19c5ad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x19c5ad([0x73,0x74,0x61,0x74,0x65])]==_0x19c5ad([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4578de(){return _0x173301(_0x19c5ad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1391a3(){return _0x173301(_0x19c5ad([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c502f(_0x35730b){const _0xb424ff=_0x3a8bde();_0xa1b9cd[_0xb424ff]=_0x19c5ad([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])+_0x35730b,_0x35730b[_0x19c5ad([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x19c5ad([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3a8bde()]=_0x54987b),_0x35730b!=_0x19c5ad([0x56,0x61,0x6c,0x69,0x64])&&_0x28f7f();}function _0x3a8bde(){const _0xf87c77=window[_0x19c5ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19c5ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19c5ad([0x6e,0x6f,0x77])]())[_0x19c5ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19c5ad([0x2e]),'');let _0x4cd74d=_0x19c5ad([0x4e]);for(let _0x29afaa=0x0;_0x29afaa<_0xf87c77[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29afaa+=0x2){let _0x4375b9=window[_0x19c5ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf87c77[_0x19c5ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29afaa,_0x29afaa+0x2));_0x4375b9>=_0x4bb28d[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4375b9-=_0x4bb28d[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cd74d+=_0x4bb28d[_0x4375b9];}return _0x4cd74d;}function _0x27bf3d(){const _0x40dccb=_0x3a46c6[_0x19c5ad([0x73,0x70,0x6c,0x69,0x74])](_0x19c5ad([0x2e]));if(0x3!=_0x40dccb[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x351fe5(_0x40dccb[0x1]);function _0x351fe5(_0x1ddfa2){const _0x4d221e=_0x2f844a(_0x1ddfa2);return _0x4d221e&&_0x1033dc()?_0x4d221e:null;function _0x1033dc(){const _0x214e3f=_0x4d221e[_0x19c5ad([0x6a,0x74,0x69])],_0x3894ea=window[_0x19c5ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x214e3f[_0x19c5ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x214e3f[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x240d6f={..._0x4d221e,[_0x19c5ad([0x6a,0x74,0x69])]:_0x214e3f[_0x19c5ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x214e3f[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x240d6f[_0x19c5ad([0x76,0x63])],_0x227943(_0x240d6f)==_0x3894ea;}}}async function _0x3631c4(){let _0x95d35b=!0x0;try{const _0x5111b2=_0x3a46c6[_0x19c5ad([0x73,0x70,0x6c,0x69,0x74])](_0x19c5ad([0x2e])),[_0x5b07be,_0x4c84c7,_0x2aaa79]=_0x5111b2;return _0x55d999(_0x5b07be),await _0x5a8333(_0x5b07be,_0x4c84c7,_0x2aaa79),_0x95d35b;}catch{return!0x1;}function _0x55d999(_0x509bf9){const _0x527c1d=_0x2f844a(_0x509bf9);_0x527c1d&&_0x527c1d[_0x19c5ad([0x61,0x6c,0x67])]==_0x19c5ad([0x45,0x53,0x32,0x35,0x36])||(_0x95d35b=!0x1);}async function _0x5a8333(_0x3cf6ab,_0x2c0d3c,_0x3251f2){const _0x38a5f9=window[_0x19c5ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19c5ad([0x66,0x72,0x6f,0x6d])](_0x6e14c6(_0x3251f2),_0x35745c=>_0x35745c[_0x19c5ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21da93=new window[(_0x19c5ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19c5ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cf6ab+_0x19c5ad([0x2e])+_0x2c0d3c),_0x5e7641=window[_0x19c5ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19c5ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e7641)return;const _0x278c5f=await _0x5e7641[_0x19c5ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19c5ad([0x6a,0x77,0x6b]),_0x560545,{[_0x19c5ad([0x6e,0x61,0x6d,0x65])]:_0x19c5ad([0x45,0x43,0x44,0x53,0x41]),[_0x19c5ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19c5ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19c5ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e7641[_0x19c5ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19c5ad([0x6e,0x61,0x6d,0x65])]:_0x19c5ad([0x45,0x43,0x44,0x53,0x41]),[_0x19c5ad([0x68,0x61,0x73,0x68])]:{[_0x19c5ad([0x6e,0x61,0x6d,0x65])]:_0x19c5ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x278c5f,_0x38a5f9,_0x21da93)||(_0x95d35b=!0x1);}}function _0x2f844a(_0x13284f){return _0x13284f[_0x19c5ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19c5ad([0x65,0x79]))?JSON[_0x19c5ad([0x70,0x61,0x72,0x73,0x65])](_0x6e14c6(_0x13284f)):null;}function _0x6e14c6(_0x126a57){return window[_0x19c5ad([0x61,0x74,0x6f,0x62])](_0x126a57[_0x19c5ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19c5ad([0x2b]))[_0x19c5ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19c5ad([0x2f])));}function _0x227943(_0x817daa){let _0x1448de=0x1505;function _0x18d98a(_0x92da9){for(let _0x5461bc=0x0;_0x5461bc<_0x92da9[_0x19c5ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5461bc++){const _0x4fdba2=_0x92da9[_0x19c5ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5461bc);_0x1448de=(_0x1448de<<0x5)+_0x1448de+_0x4fdba2,_0x1448de&=_0x1448de;}}function _0xea68e8(_0x43a620){Array[_0x19c5ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43a620)?_0x43a620[_0x19c5ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xea68e8):_0x43a620&&typeof _0x43a620==_0x19c5ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19c5ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43a620)[_0x19c5ad([0x73,0x6f,0x72,0x74])]()[_0x19c5ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27755d,_0x16d488])=>{_0x18d98a(_0x27755d),_0xea68e8(_0x16d488);}):_0x18d98a(window[_0x19c5ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43a620));}return _0xea68e8(_0x817daa),_0x1448de>>>0x0;}function _0x32dec4(_0x2b0186){return _0x2b0186[_0x19c5ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19c5ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19c5ad([0x30]));}function _0x217f2f(_0x3a193b){return _0x3a193b[_0x19c5ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19c5ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19c5ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x173301(_0x453f1d){return _0xa1b9cd[_0x19c5ad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19c5ad([0x68,0x61,0x73])](_0x453f1d);}function _0x3e013c(_0x545971){return _0xa1b9cd[_0x19c5ad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19c5ad([0x67,0x65,0x74])](_0x545971);}function _0x4231fb(){}function _0x19c5ad(_0x1d75bf){return _0x1d75bf['map'](_0x1d8e3e=>String['fromCharCode'](_0x1d8e3e))['join']('');}_0x3c502f(await _0x4ac171());}(this);}['createRevision'](_0x5bf677){const _0x7bc77e=this['editor']['plugins']['get']('Users');return new h({'id':_0x5bf677['id'],'name':_0x5bf677['name'],'creator':_0x5bf677['creatorId']?_0x7bc77e['getUser'](_0x5bf677['creatorId']):null,'diffData':_0x5bf677['diffData']||_0x5bf677['data'],'authors':_0x5bf677['authorsIds']['map'](_0x5c4104=>_0x7bc77e['getUser'](_0x5c4104)),'createdAt':new Date(_0x5bf677['createdAt']),'attributes':_0x5bf677['attributes'],'fromVersion':_0x5bf677['fromVersion'],'toVersion':_0x5bf677['toVersion']});}['addRevision'](_0x2b6c9c,_0x2585f9=0x0){this['_revisions']['add'](_0x2b6c9c,_0x2585f9);}['getRevision'](_0x55db95){return this['_revisions']['get'](_0x55db95);}['getRevisions'](_0x27fe5b={'toJSON':!0x1}){const _0xf92d68=Array['from'](this['_revisions']);return _0xf92d68['reverse'](),_0x27fe5b['toJSON']?_0xf92d68['map'](_0x39e986=>_0x39e986['toJSON']()):_0xf92d68;}['getIndex'](_0x52ba93){return this['_revisions']['getIndex'](_0x52ba93);}['getEarlierVisibleRevision'](_0x595374){const [,_0x18818b]=this['getRevisionsIterator'](_0x595374,{'direction':'earlier'});return _0x18818b;}['getLaterVisibleRevision'](_0x2216cb){const [,_0x9f187]=this['getRevisionsIterator'](_0x2216cb,{'direction':'later'});return _0x9f187;}['getRevisionsInDiff'](_0x3b95f3){const _0x464b59=[];for(const _0x25d9ef of this['getRevisionsIterator'](_0x3b95f3['newRevisionId']))if(_0x464b59['push'](_0x25d9ef),_0x25d9ef['id']===_0x3b95f3['oldRevisionId'])break;return _0x464b59;}*['getRevisionsIterator'](_0xa556f6,{direction:_0x6a7ece='earlier',filter:_0x5ef667=()=>!0x0}={}){const _0x1f80da='earlier'===_0x6a7ece?0x1:-0x1;let _0x2a2c66=this['_revisions']['get'](_0xa556f6),_0x44ea73=this['getIndex'](_0x2a2c66);for(yield _0x2a2c66;_0x2a2c66;){if(_0x44ea73+=_0x1f80da,_0x2a2c66=this['getRevision'](_0x44ea73),!_0x2a2c66)return;_0x5ef667(_0x2a2c66)&&(yield _0x2a2c66);}}}class V extends _0x1c4af5{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x407874,'c'],[_0x13047c,'a'],[_0xbb0bf6,'e'],[_0x1c09cd,'r'],[_0x3fde33,'u']]);['_typeCharToViewClass']=new Map([['c',_0x407874],['a',_0x13047c],['e',_0xbb0bf6],['r',_0x1c09cd],['u',_0x3fde33]]);async['loadRevisionData'](_0xff905f,_0x4c81db){if(_0xff905f['diffData']||!_0x4c81db)return;const _0x54a007=this['editor']['config']['get']('collaboration.channelId'),_0xc50263=await _0x4c81db['getRevision']({'channelId':_0x54a007,'revisionId':_0xff905f['id']});_0xff905f['diffData']=_0xc50263['diffData'];}['getRevisionDocumentData'](_0xa9c608){const _0x58bc09={};for(const _0x16d30d in _0xa9c608['diffData']){if(_0xa9c608['diffData'][_0x16d30d]['attachChange']&&!_0xa9c608['diffData'][_0x16d30d]['attachChange']['isAttached'])continue;const _0x47565d=this['_removeRevisionMarkers'](JSON['parse'](_0xa9c608['diffData'][_0x16d30d]['insertions'])),_0x4dcf23=this['editor']['editing']['view']['document'],_0x5a9bd1=new _0x42654c(_0x4dcf23,_0x47565d['map'](_0x3b1224=>this['_getViewFromDiffObj'](_0x3b1224,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x58bc09[_0x16d30d]=this['editor']['data']['processor']['toData'](_0x5a9bd1),this['editor']['data']['processor']['useFillerType']('default');}return _0x58bc09;}['getRevisionRootsAttributes'](_0x22443c){const _0x13e546={};for(const _0x571350 in _0x22443c['diffData'])_0x22443c['diffData'][_0x571350]['attachChange']&&!_0x22443c['diffData'][_0x571350]['attachChange']['isAttached']||(_0x13e546[_0x571350]=_0x22443c['diffData'][_0x571350]['attributesAfter']||{});return _0x13e546;}['_getTypeCharForViewElement'](_0x34e59f){return this['_viewClassToTypeChar']['get'](_0x34e59f['constructor']);}['_getViewFromDiffObj'](_0x169d35,_0x1e9fe1){const _0x245528=this['editor']['editing']['view']['document'];if('string'==typeof _0x169d35)return new _0x33dbee(_0x245528,_0x169d35);{let _0x2a3d3d,_0x940e83;_0x940e83='u'==_0x169d35['type']||'r'==_0x169d35['type']?[]:_0x169d35['children']['map'](_0x5e2356=>this['_getViewFromDiffObj'](_0x5e2356,_0x1e9fe1));const _0xbd98ae=this['_typeCharToViewClass']['get'](_0x169d35['type'])||_0x4d5a82,_0xc2fdc=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2a3d3d=new _0xbd98ae(_0x245528,_0x169d35['name'],_0x169d35['attributes'],_0x940e83),'u'==_0x169d35['type']&&_0x169d35['children'][0x0]){const _0x226dab=_0x169d35['children'][0x0];if(_0x2a3d3d['render']=function(_0x584099){const _0xe425ec=_0x584099['createElement']('div');return _0xe425ec['innerHTML']=_0x226dab,_0xe425ec['childNodes'][0x0];},_0x1e9fe1){const _0x5db222=new _0x42654c(_0x245528);_0x5db222['_appendChild'](_0x2a3d3d);const _0x5b0c40=Array['from'](_0xc2fdc['viewChildrenToDom'](_0x5db222,{'bind':!0x1})),_0x5d33c0=_0xc2fdc['domDocument']['createElement']('div');_0x5d33c0['append'](..._0x5b0c40),_0x2a3d3d=Array['from'](_0xc2fdc['domChildrenToView'](_0x5d33c0))[0x0];}}else{if('r'==_0x169d35['type']&&_0x169d35['children'][0x0]){const _0x553a5a=_0x169d35['children'][0x0];if(_0x2a3d3d['render']=function(_0x2e2d46){_0x2e2d46['innerHTML']=_0x553a5a;},_0x1e9fe1){const _0x358225=new _0x42654c(_0x245528);_0x358225['_appendChild'](_0x2a3d3d);const _0x28e2df=Array['from'](_0xc2fdc['viewChildrenToDom'](_0x358225,{'bind':!0x1})),_0x478d2f=_0xc2fdc['domDocument']['createElement']('div');_0x478d2f['append'](..._0x28e2df);const _0x12dd0f=Array['from'](_0xc2fdc['domChildrenToView'](_0x478d2f));_0x12dd0f['length']>0x1?_0x2a3d3d['_appendChild'](_0x12dd0f):_0x2a3d3d=_0x12dd0f[0x0];}}}if(_0x169d35['customProperties']){for(const [_0x2c50df,_0x1bda9e]of _0x169d35['customProperties'])_0x2a3d3d['_setCustomProperty'](_0x2c50df,_0x1bda9e);}const _0xb5afab=void 0x0===_0x169d35['fillerOffset']?null:_0x169d35['fillerOffset'];return null!==_0xb5afab&&(_0x2a3d3d['getFillerOffset']=()=>_0xb5afab),_0x2a3d3d;}}['_makeModelFromViewString'](_0x44f504){const _0x502173=JSON['parse'](_0x44f504),_0x33a701=this['editor']['editing']['view']['document'],_0x29d2b6=new _0x42654c(_0x33a701,_0x502173['map'](_0x1d42eb=>this['_getViewFromDiffObj'](_0x1d42eb,!0x0)));return this['editor']['data']['toModel'](_0x29d2b6);}['_removeRevisionMarkers'](_0x107e1d){return(_0x107e1d=_0x107e1d['filter'](_0x2a08f5=>!_0x2a08f5['name']||'revision-start'!==_0x2a08f5['name']&&'revision-end'!==_0x2a08f5['name']))['forEach'](_0x2e59ba=>{'string'!=typeof _0x2e59ba&&(_0x2e59ba['children']=this['_removeRevisionMarkers'](_0x2e59ba['children']),_0x2e59ba['attributes']=_0x2e59ba['attributes']['filter'](_0x1a7e81=>!_0x1a7e81[0x0]['startsWith']('data-revision-')));}),_0x107e1d;}}function g(_0x1549ba,_0x13c25c,_0x3b6491){const t=_0x1549ba['t'];switch(_0x13c25c){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'},_0x3b6491);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b6491);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x1c4af5{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d92c6,I,V,_0x1829e5];}constructor(_0x3b2bcc){super(_0x3b2bcc),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x28e9ab=_0x23ef34();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x28e9ab},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x41bb23=this['repository']['getRevision'](0x0),_0x2f486c=_0x41bb23&&null===_0x41bb23['creator']?_0x41bb23:null;if(this['_continueCurrentRevision']=!!_0x2f486c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x257abd=this['_source']['getCurrentRevisionId'](),_0x524567=this['repository']['getRevision'](_0x257abd);if(_0x524567)this['_startingVersion']=_0x524567['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x24023c=this['_source']['history']['_operations']['find'](_0x571ecc=>!_0x571ecc['_isInit']),_0x3faa33=_0x24023c?_0x24023c['baseVersion']:this['_source']['history']['version'];_0x41bb23?(_0x41bb23['toVersion']<_0x3faa33&&_0x41bb23['_update']({'toVersion':_0x3faa33}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2f486c['id'],this['_startingVersion']=_0x2f486c['fromVersion']):(this['_startingVersion']=_0x41bb23['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3faa33,this['_continueCurrentRevision']=!0x1);}}else _0x2f486c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2f486c['toVersion'],this['editor']['model']['document']['history']['version']),_0x2f486c['fromVersion']===_0x2f486c['toVersion']?(0x0!==_0x2f486c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f486c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f486c['id'],this['_startingVersion']=_0x2f486c['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',_0x122113=>!_0x122113),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e1804=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xdf8ec4;for(const _0x432123 in _0x2e1804){const _0x36b5ec=_0x432123,_0xc4c330=_0x2e1804[_0x36b5ec];if('revisionHistoryLicenseKeyValid'==_0xc4c330||'revisionHistoryLicenseKeyInvalid'==_0xc4c330||'revisionHistoryLicenseKeyExpired'==_0xc4c330||'revisionHistoryLicenseKeyDomainLimit'==_0xc4c330||'revisionHistoryLicenseKeyNotAllowed'==_0xc4c330||'revisionHistoryLicenseKeyEvaluationLimit'==_0xc4c330||'revisionHistoryLicenseKeyTrialLimit'==_0xc4c330||'revisionHistoryLicenseKeyUsageLimit'==_0xc4c330){delete _0x2e1804[_0x36b5ec],_0xdf8ec4=_0xc4c330,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xdf8ec4&&_0x2e1804['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1343c4=this['repository']['getRevision'](0x0),_0x5763aa=await this['getRevisionDocumentData'](_0x1343c4),_0x349ff2=await this['getRevisionRootsAttributes'](_0x1343c4);this['_replaceEditorDataWithRevisionData'](_0x5763aa,_0x349ff2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1122dc){this['_source']=_0x1122dc;}async['update'](){const _0x4e2402=await this['_source']['getLatestVersion']();if(_0x4e2402>this['currentRevision']['toVersion']){await this['_loadState']();const _0x228197=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4e2402});_0x228197['authors']=_0x228197['authorsIds']['map'](_0x2ba358=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ba358)),this['currentRevision']['_update'](_0x228197);}}async['saveRevision'](_0x103654={},_0x3c8e79=null){const _0x159e5e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c8e79>this['currentRevision']['toVersion']&&(_0x3c8e79=null),null===_0x3c8e79&&(_0x3c8e79=await this['_source']['getLatestVersion']());const _0x5176d4=this['_getFromVersion'](_0x3c8e79),_0xf79683=this['buildRevisionData']({'from':_0x5176d4,'to':_0x3c8e79});if(this['currentRevision']['toVersion']<_0x3c8e79){const _0x338b40=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c8e79,'to':_0x3c8e79});_0x338b40['authors']=[],_0x338b40['authorsIds']=[],_0x338b40['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x338b40,!0x0),delete _0x338b40['authors'],_0x159e5e['push'](_0x338b40);}_0x103654['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x103654['name']=_0x103654['name']||null,_0x103654['id']=_0x103654['id']||_0x23ef34(),_0x103654={..._0x103654,..._0xf79683};const _0x328e8f=this['addRevisionData'](_0x103654);_0x159e5e['push'](_0x103654);const _0x1f90ae=this['repository']['getIndex'](_0x328e8f);if(0x0!==_0x1f90ae){const _0x26defa=this['repository']['getRevision'](_0x1f90ae-0x1);if(_0x26defa['fromVersion']!==_0x3c8e79){const _0x1cf19b=this['_revisionDataBuilder']['getData'](_0x3c8e79,_0x26defa['toVersion']),_0x27bf6b={'id':_0x26defa['id'],'diffData':_0x1cf19b['diffData'],'authorsIds':_0x1cf19b['authorsIds'],'authors':_0x1cf19b['authorsIds']['map'](_0x164e90=>this['editor']['plugins']['get']('Users')['getUser'](_0x164e90)),'fromVersion':_0x3c8e79};_0x26defa===this['currentRevision']&&(_0x27bf6b['createdAt']=new Date(_0x103654['createdAt']['getTime']()+0xa)),_0x26defa['_update'](_0x27bf6b,!0x0),delete _0x27bf6b['authors'],_0x159e5e['push'](_0x27bf6b);}}if(this['adapter']){for(const _0x5c2754 of _0x159e5e)this['_bufferUpdate'](_0x5c2754['id'],_0x5c2754,!0x0);this['sendBufferedUpdates']();}return _0x328e8f;}['addRevisionData'](_0x15455a){const _0x8abe01=this['repository']['createRevision'](_0x15455a);return this['adapter']&&_0x8abe01['on']('_update',(_0x318b6b,_0xbae67f,_0x3fbc1e)=>{_0x3fbc1e||(this['_bufferUpdate'](_0xbae67f['id'],_0xbae67f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x8abe01,this['_findInsertionIndex'](_0x8abe01)),_0x8abe01;}async['getRevisionDocumentData'](_0x459387){return await this['_utils']['loadRevisionData'](_0x459387,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x459387);}async['getRevisionRootsAttributes'](_0x24cdc1){return await this['_utils']['loadRevisionData'](_0x24cdc1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x24cdc1);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7ea36b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f4026=0x0;_0x4f4026<_0x7ea36b['length'];_0x4f4026++){const _0x5aac57=_0x7ea36b[_0x4f4026];let _0x6a5ff8=!0x1;for(const _0x8aa720 of Object['keys'](_0x5aac57))void 0x0===_0x5aac57[_0x8aa720]?delete _0x5aac57[_0x8aa720]:'id'!==_0x8aa720&&(_0x6a5ff8=!0x0);_0x6a5ff8||(_0x7ea36b[_0x4f4026]=null);}if(_0x7ea36b=_0x7ea36b['filter'](_0xa91788=>null!==_0xa91788),!_0x7ea36b['length'])return;for(let _0x13df4e=0x0;_0x13df4e<_0x7ea36b['length'];_0x13df4e++){const _0x1f5669=_0x7ea36b[_0x13df4e];void 0x0!==_0x1f5669['fromVersion']&&void 0x0===_0x1f5669['toVersion']&&(_0x1f5669['toVersion']=this['repository']['getRevision'](_0x1f5669['id'])['toVersion']),void 0x0!==_0x1f5669['toVersion']&&void 0x0===_0x1f5669['fromVersion']&&(_0x1f5669['fromVersion']=this['repository']['getRevision'](_0x1f5669['id'])['fromVersion']);}const _0x1b9eab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7ea36b,_0x1b9eab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x756232=>{if(_0x756232){for(const _0x127bfd of _0x756232)this['setRevisionData']({'id':_0x127bfd['id'],'createdAt':_0x127bfd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2a460d=null,from:_0x5db815=null,to:_0x12ad40=null}){_0x5db815=null!==_0x5db815?_0x5db815:_0x2a460d['fromVersion'],_0x12ad40=null!==_0x12ad40?_0x12ad40:_0x2a460d['toVersion'];const _0xbe161=this['_revisionDataBuilder']['getData'](_0x5db815,_0x12ad40),_0x20867e={'diffData':_0xbe161['diffData'],'authorsIds':_0xbe161['authorsIds'],'fromVersion':_0x5db815,'toVersion':_0x12ad40};if(!_0x2a460d||_0x12ad40!==_0x2a460d['toVersion']){const _0x240194=_0x12ad40-0x1,_0x3beae7=this['_source']['history']['getOperation'](_0x240194);_0x20867e['createdAt']=_0x3beae7&&_0x3beae7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5db815===this['_loadedStateData']['fromVersion']){for(const _0xddd3bc of this['_loadedStateData']['authors'])_0x20867e['authorsIds']['includes'](_0xddd3bc['id'])||_0x20867e['authorsIds']['push'](_0xddd3bc['id']);}return _0x20867e;}['_bufferUpdate'](_0x48f23e,_0x382538,_0x33abe6){if(this['_bufferedUpdates']['has'](_0x48f23e)){const _0x5ead42=this['_bufferedUpdates']['get'](_0x48f23e);_0x382538=_0x33abe6?{..._0x5ead42,..._0x382538}:{..._0x382538,..._0x5ead42};}this['_bufferedUpdates']['set'](_0x48f23e,_0x382538);}['setRevisionData'](_0x2047e4){const _0x497c55=this['repository']['getRevision'](_0x2047e4['id']);if(_0x2047e4['createdAt']&&(_0x2047e4['createdAt']=new Date(_0x2047e4['createdAt'])),_0x2047e4['authorsIds']){const _0x7797b7=this['editor']['plugins']['get']('Users');_0x2047e4['authors']=_0x2047e4['authorsIds']['map'](_0x597131=>_0x7797b7['getUser'](_0x597131));}_0x497c55['_update'](_0x2047e4,!0x0);}['_createInitialRevision'](_0x5c50e1){const _0x22bdfb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22bdfb)this['_initialRevisionId']=_0x22bdfb['id'];else{const _0x501fbe=!this['editor']['model']['document']['roots']['find'](_0x387067=>this['editor']['model']['hasContent'](_0x387067)),_0x4a3bed=this['editor']['plugins']['get']('Users')['me']['id'],_0x264b21=g(this['editor']['locale'],_0x501fbe?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c50e1,'to':_0x5c50e1,'id':this['_initialRevisionId'],'name':_0x264b21,'creatorId':_0x4a3bed});}}['_createCurrentRevision'](_0xd05c11){const _0x2cb597=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2cb597),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd05c11,'to':_0xd05c11,'id':_0x2cb597,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3ce2c7,_0x5be57f){let _0x354c53=this['editor']['config']['get']('initialData'),_0x39ae29=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x354c53){_0x354c53={};for(const _0x5f0d23 of this['editor']['model']['document']['getRootNames']())_0x354c53[_0x5f0d23]='';}if('string'==typeof _0x354c53&&(_0x354c53={'main':_0x354c53}),void 0x0===_0x39ae29){_0x39ae29={};for(const _0x38780f of this['editor']['model']['document']['getRootNames']())_0x39ae29[_0x38780f]={};}let _0x56a932=!0x1;const _0x590fda=Object['keys'](_0x354c53),_0x13fa0b=Object['keys'](_0x3ce2c7);for(const _0x119dca of _0x590fda){if(_0x354c53[_0x119dca]!==_0x3ce2c7[_0x119dca]&&''!==_0x354c53[_0x119dca]['trim']()){_0x56a932=!0x0;break;}if(!_0xc0ac2a(_0x39ae29[_0x119dca],_0x5be57f[_0x119dca])&&Object['keys'](_0x39ae29[_0x119dca])['length']>0x0){_0x56a932=!0x0;break;}}_0x56a932||(_0x56a932=_0x13fa0b['some'](_0x2746d2=>!this['editor']['model']['document']['getRoot'](_0x2746d2))),_0x56a932&&_0x3a7a75('editor-initial-data-replaced-with-revision-data',{'editorData':_0x354c53,'editorRootsAttributes':_0x39ae29,'revisionData':_0x3ce2c7,'revisionRootsAttributes':_0x5be57f}),this['editor']['config']['set']('initialData',_0x3ce2c7),this['editor']['config']['set']('rootsAttributes',_0x5be57f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x41dfd7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x41dfd7['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28b161){const _0x893f63=this['repository']['getRevisions']();_0x893f63['reverse']();let _0x308f15=0x0;for(;_0x308f15<_0x893f63['length'];){const _0x4122ed=_0x893f63[_0x308f15];if(_0x4122ed===this['currentRevision']){_0x308f15++;continue;}if(_0x4122ed['id']===this['_initialRevisionId'])break;const _0x202e48=_0x28b161['toVersion']-_0x4122ed['toVersion']||_0x28b161['fromVersion']-_0x4122ed['fromVersion'];if(_0x202e48>0x0)break;if(_0x202e48<0x0)_0x308f15++;else{if(!_0x28b161['creator']&&_0x4122ed['creator'])break;if(_0x4122ed['creator']||!_0x28b161['creator']){if(_0x28b161['createdAt']>_0x4122ed['createdAt'])break;_0x308f15++;}else _0x308f15++;}}return _0x308f15;}['_getFromVersion'](_0x4694ef){const _0x23b086=this['repository']['getRevisions']();_0x23b086['reverse'](),_0x23b086['shift']();const _0x4d47f6=_0x23b086['find'](_0x446511=>_0x446511['toVersion']<=_0x4694ef)['toVersion'];return _0x4d47f6<this['_startingVersion']?this['_startingVersion']:_0x4d47f6;}['_makeRevision']({name:_0x5c1e07,from:_0x3e696a,to:_0x81de20,creatorId:_0x482607,id:_0x38ae3f}){const _0x3b40f7=this['buildRevisionData']({'from':_0x3e696a,'to':_0x81de20});_0x3b40f7['name']=_0x5c1e07,_0x3b40f7['creatorId']=_0x482607,_0x3b40f7['id']=_0x38ae3f;const _0x421e1f=this['addRevisionData'](_0x3b40f7);return this['adapter']&&this['_bufferUpdate'](_0x3b40f7['id'],_0x3b40f7,!0x0),_0x421e1f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x14b927){this['editor']=_0x14b927,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'](_0x298bff){this['source']=_0x298bff;const _0x3f4ddd=new Map(),_0x331112=new Map(),_0x393fb8=this['editor']['model']['document']['roots']['map'](_0x28e019=>_0x28e019['rootName']);for(const _0x1059e1 of _0x393fb8){const _0x5415f8=this['editor']['model']['document']['getRoot'](_0x1059e1),_0x52269f=N(_0x5415f8);_0x3f4ddd['set'](_0x1059e1,_0x52269f),_0x331112['set'](_0x1059e1,Object['fromEntries'](_0x5415f8['getAttributes']()));}const _0x4c3881=Array['from'](this['editor']['model']['markers'])['map'](_0x1b6416=>[_0x1b6416['name'],_0x1b6416['getRange']()]),_0x414d12=this['source']['version'];this['_saveMetaData'](_0x414d12,_0x3f4ddd,_0x4c3881,_0x331112),this['_startingRevisionId']=this['_revisionId'];const _0x11b650=new Map(),_0x1587bd=new Map();for(const _0x4e1ea0 of _0x393fb8){const _0x18e2ba=P(_0x4e1ea0);_0x11b650['set'](_0x4e1ea0,_0x18e2ba),_0x1587bd['set'](_0x4e1ea0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x11b650,[],_0x1587bd);}['getData'](_0xd2cdb9,_0xe296fa){if(this['_lastFrom']===_0xd2cdb9&&this['_lastTo']<=_0xe296fa)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe296fa,!0x0);else{if(!this['_savedMetaData']['has'](_0xd2cdb9)){const _0x3a4a50=this['_getPreviousFrom'](_0xd2cdb9);this['_calculateMetaData'](_0x3a4a50,_0xd2cdb9,!0x1);}this['_calculateMetaData'](_0xd2cdb9,_0xe296fa,!0x0);}return this['_lastFrom']=_0xd2cdb9,this['_lastTo']=_0xe296fa,this['_getState']();}['loadState'](_0x3d4c35){const _0x1e7fa0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3d4c35['fromVersion'],this['_lastTo']=_0x3d4c35['toVersion'];for(const _0x10cb2a in _0x3d4c35['diffData']){const _0x50832c=_0x3d4c35['diffData'][_0x10cb2a]['attachChange'],_0x2c62d7=_0x4f42bf(_0x3d4c35['diffData'][_0x10cb2a]['attributesBefore'])||{},_0x525e04=_0x1e7fa0['_makeModelFromViewString'](_0x3d4c35['diffData'][_0x10cb2a]['deletions']);_0x525e04['rootName']=_0x10cb2a,_0x525e04['_isAttached']=!_0x50832c||!_0x50832c['isAttached'],_0x525e04['isAttached']=()=>_0x525e04['_isAttached'],this['_baseRoots']['set'](_0x10cb2a,_0x525e04),this['_baseRootsAttributes']['set'](_0x10cb2a,_0x2c62d7),_0x50832c&&this['_touchedRoots']['set'](_0x10cb2a,_0x50832c);const _0x57788e=this['_makeIdsRoot'](_0x525e04);this['_baseIdsRoots']['set'](_0x10cb2a,_0x57788e);for(const [_0x5b51fa,_0x52e5c1]of _0x525e04['markers']){if(!_0x5b51fa['startsWith']('revision:'))continue;const _0xc1251b=_0x5b51fa['split'](':')[0x2];for(const _0x188443 of _0x52e5c1['getWalker']({'singleCharacters':!0x0})){const _0x1d79b6=this['_getVidAttributeName'](_0x188443),_0x20cf39='elementEnd'==_0x188443['type']?_0x188443['previousPosition']['path']['slice'](0x0,-0x1):_0x188443['previousPosition']['path'],_0x3fe404=_0x57788e['getNodeByPath'](_0x20cf39)['getAttribute'](_0x1d79b6);this['_touched']['set'](_0x3fe404,{'userId':_0xc1251b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4e022a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x29b60c=>!this['_touched']['has'](_0x29b60c));let _0x3dbedc=0x0;const _0xaf47d2=new Map();for(const _0x29a9f8 in _0x3d4c35['diffData']){const _0x4f21a3=_0x3d4c35['diffData'][_0x29a9f8]['attachChange'],_0xea2c1d=_0x4f42bf(_0x3d4c35['diffData'][_0x29a9f8]['attributesAfter'])||{},_0x36563e=_0x1e7fa0['_makeModelFromViewString'](_0x3d4c35['diffData'][_0x29a9f8]['insertions']);_0x36563e['rootName']=_0x29a9f8,_0x36563e['_isAttached']=!_0x4f21a3||_0x4f21a3['isAttached'],_0x36563e['isAttached']=()=>_0x36563e['_isAttached'],this['_diffRoots']['set'](_0x29a9f8,_0x36563e),this['_diffRootsAttributes']['set'](_0x29a9f8,_0xea2c1d);const _0x42eaea=this['_makeIdsRoot'](_0x36563e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x29a9f8,_0x42eaea),_0xaf47d2['set'](_0x29a9f8,_0x36563e['isAttached']()?_0xea2c1d:{});for(const [_0x1fc12a,_0x2eb642]of _0x36563e['markers']){if(!_0x1fc12a['startsWith']('revision:'))continue;const _0x5f3a00=_0x1fc12a['split'](':')[0x2];for(const _0x4739a5 of _0x2eb642['getWalker']({'singleCharacters':!0x0})){const _0x4b7989=this['_getVidAttributeName'](_0x4739a5),_0x46ca4b=this['_revisionId']++,_0x552cba='elementEnd'==_0x4739a5['type']?_0x4739a5['previousPosition']['path']['slice'](0x0,-0x1):_0x4739a5['previousPosition']['path'];_0x42eaea['getNodeByPath'](_0x552cba)['_setAttribute'](_0x4b7989,_0x46ca4b),this['_touched']['set'](_0x46ca4b,{'userId':_0x5f3a00});}}for(const _0x14b1d1 of this['editor']['model']['createRangeIn'](_0x36563e)['getWalker']({'singleCharacters':!0x0})){const _0x1f32f0=this['_getVidAttributeName'](_0x14b1d1),_0x9012c8='elementEnd'==_0x14b1d1['type']?_0x14b1d1['previousPosition']['path']['slice'](0x0,-0x1):_0x14b1d1['previousPosition']['path'],_0x48ef8b=_0x42eaea['getNodeByPath'](_0x9012c8);_0x48ef8b['getAttribute'](_0x1f32f0)>0x0||_0x48ef8b['_setAttribute'](_0x1f32f0,_0x4e022a[_0x3dbedc++]);}for(const [_0x5ef1c3,_0xdf069f]of _0x36563e['markers'])_0x5ef1c3['startsWith']('revision:')||this['_markers']['set'](_0x5ef1c3,_0xdf069f);}const _0x3f9397=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f9397),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f9397,0x1));const _0x41786c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41786c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41786c,0x1));const _0x251683=Array['from'](this['_diffRoots'])['map'](([_0x2ef51c,_0x13dbe3])=>[_0x2ef51c,N(_0x13dbe3)]);this['_saveMetaData'](this['_lastTo'],_0x251683,this['_markers'],_0xaf47d2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4e066a,_0x1d596a,_0x4e118f,_0x4f37e4){const _0x5d512c=new Map(_0x1d596a),_0x6e555a=new Map(_0x4f42bf(_0x4f37e4)),_0x5308f5=new Map();for(const [_0x4746fa,_0x566f50]of _0x4e118f)_0x5308f5['set'](_0x4746fa,{'start':_0x566f50['start']['clone'](),'end':_0x566f50['end']['clone'](),'rootName':_0x566f50['root']['rootName']});this['_savedMetaData']['set'](_0x4e066a,{'roots':_0x5d512c,'markers':_0x5308f5,'rootsAttributes':_0x6e555a});}['_removeMetaData'](_0x576cdb){this['_savedMetaData']['delete'](_0x576cdb);}['_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'](_0x13502c,_0x58e7d4=null){let _0x487696=null;_0x13502c['is']('documentFragment')||(_0x487696=new ut(_0x13502c['name'],{'vid_start':null===_0x58e7d4?this['_revisionId']++:_0x58e7d4++}));const _0x51d1d5=[];for(const _0x357875 of _0x13502c['getChildren']())if(_0x357875['is']('element')){_0x51d1d5['push'](this['_makeIdsRoot'](_0x357875,_0x58e7d4));const _0x81e305=_0x51d1d5[_0x51d1d5['length']-0x1];null!==_0x58e7d4&&(_0x58e7d4=_0x81e305['is']('element','$text')?_0x81e305['getAttribute']('vid')+0x1:_0x81e305['getAttribute']('vid_end')+0x1);}else{for(let _0x24a6de=0x0;_0x24a6de<_0x357875['offsetSize'];_0x24a6de++)_0x51d1d5['push'](new ut('$text',{'vid':null===_0x58e7d4?this['_revisionId']++:_0x58e7d4++}));}if(_0x13502c['is']('documentFragment')){const _0x42cfeb=P(_0x13502c['rootName']);return _0x42cfeb['_insertChild'](0x0,_0x51d1d5),_0x42cfeb;}return _0x487696['_setAttribute']('vid_end',null===_0x58e7d4?this['_revisionId']++:_0x58e7d4++),_0x487696['_insertChild'](0x0,_0x51d1d5),_0x487696;}['_calculateMetaData'](_0x139f40,_0x42f5a7,_0x5db576){this['_reset']();const {roots:_0x10850b,markers:_0x408637,rootsAttributes:_0x3da76e}=this['_savedMetaData']['get'](_0x139f40);this['_baseRoots']=new Map(_0x10850b),this['_baseRootsAttributes']=new Map(_0x4f42bf(_0x3da76e));for(const [_0x5c331a,_0x136faf]of this['_baseRoots'])if('$graveyard'!==_0x5c331a&&(this['_diffRoots']['set'](_0x5c331a,N(_0x136faf)),this['_diffRootsAttributes']=new Map(_0x4f42bf(_0x3da76e)),_0x5db576)){const _0x2b6e38=this['_revisionId'];this['_idsRoots']['set'](_0x5c331a,this['_makeIdsRoot'](_0x136faf)),this['_baseIdsRoots']['set'](_0x5c331a,this['_makeIdsRoot'](_0x136faf,_0x2b6e38));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5db576&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3a5cfc,_0x1169fe]of _0x408637){const _0x54d94c=this['_baseRoots']['get'](_0x1169fe['rootName']),_0x13864c=this['_diffRoots']['get'](_0x1169fe['rootName']),_0x2019a7=new ft(this['_fixPosition'](_0x1169fe['start'],_0x54d94c),this['_fixPosition'](_0x1169fe['end'],_0x54d94c)),_0x4cd807=this['_fixRange'](_0x2019a7,_0x13864c);_0x54d94c['markers']['set'](_0x3a5cfc,_0x2019a7),this['_markers']['set'](_0x3a5cfc,_0x4cd807);}this['_applyOperations'](_0x139f40,_0x42f5a7,_0x5db576);}['_applyOperations'](_0x500e45,_0x152bae,_0xe4882b){for(const _0x71dd20 of this['source']['getOperations'](_0x500e45,_0x152bae))this['_handleOperation'](_0x71dd20,_0xe4882b);for(const _0x5cf0f6 of this['_diffRoots']['values']())_0x5cf0f6['markers']['clear']();for(const [_0x4c0d98,_0x522b20]of this['_markers']){this['_diffRoots']['get'](_0x522b20['root']['rootName'])['markers']['set'](_0x4c0d98,_0x522b20['clone']());}const _0x29c62a=new Map(),_0x4ffa2b=new Map();for(const [_0x2bff77,_0x25a5ec]of this['_diffRoots'])_0x29c62a['set'](_0x2bff77,N(_0x25a5ec)),_0x4ffa2b['set'](_0x2bff77,this['_diffRootsAttributes']['get'](_0x2bff77));this['_saveMetaData'](_0x152bae,_0x29c62a,this['_markers'],_0x4ffa2b);}['_getPreviousFrom'](_0x4b7928){const _0x4ca2c2=Array['from'](this['_savedMetaData']['keys']());_0x4ca2c2['sort']((_0x2df337,_0x2116f3)=>_0x2df337-_0x2116f3),_0x4ca2c2['reverse']();for(const _0x357473 of _0x4ca2c2)if(_0x357473<_0x4b7928)return _0x357473;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3e6f8a,_0x48d4e5){const _0x57e944=Array['from'](_0x48d4e5['markers'])['map'](([_0x53f4bf,_0x477445])=>[_0x53f4bf,this['_fixRange'](_0x477445,_0x3e6f8a)]);_0x3e6f8a['markers']=new Map(_0x57e944);}['_transformMarkers'](_0x3d519a){for(const _0x420e80 of this['_markers']['values']()){const _0x4eabb=_0x420e80['getTransformedByOperation'](_0x3d519a),_0x1021c7=ft['_createFromRanges'](_0x4eabb);_0x420e80['start']=_0x1021c7['start'],_0x420e80['end']=_0x1021c7['end'];}}['_handleOperation'](_0x52197d,_0x4d63e8){if('addRoot'!=_0x52197d['type']&&'detachRoot'!=_0x52197d['type']){if('insert'==_0x52197d['type']){const _0x440d97=_0x52197d['position']['root']['rootName'];this['_diffRoots']['has'](_0x440d97)||(this['_diffRoots']['set'](_0x440d97,P(_0x440d97,!0x0)),this['_diffRootsAttributes']['set'](_0x440d97,{}),_0x4d63e8&&this['_idsRoots']['set'](_0x440d97,P(_0x440d97,!0x0)));}else{if('addRootAttribute'==_0x52197d['type']||'removeRootAttribute'==_0x52197d['type']||'changeRootAttribute'==_0x52197d['type'])return void this['_handleRootAttributeOperation'](_0x52197d);'marker'==_0x52197d['type']&&this['_handleMarkerOperation'](_0x52197d);}if('marker'!==_0x52197d['type']){const _0x3b8b23=this['_cloneOperation'](_0x52197d,this['_diffRoots']);_0x3b8b23['_execute'](),this['_transformMarkers'](_0x3b8b23);}if(_0x4d63e8)switch(_0x52197d['type']){case'insert':this['_handleInsertOperation'](_0x52197d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x52197d);break;case'merge':this['_handleMergeOperation'](_0x52197d);break;case'split':this['_handleSplitOperation'](_0x52197d);}}else this['_handleRootOperation'](_0x52197d,_0x4d63e8);}['_cloneOperation'](_0x5d4fca,_0x4aff27){const _0x1004d8=_0x5d4fca['clone']();return _0x1004d8['_authorId']=_0x5d4fca['_authorId'],this['_fixOperation'](_0x1004d8,_0x4aff27),_0x1004d8;}['_getBaseVids'](_0x34680c){return _0x34680c['map'](_0x4e1a8f=>{const _0x2e57aa=this['_getVidAttributeName'](_0x4e1a8f);return Number(_0x4e1a8f['item']['getAttribute'](_0x2e57aa));});}['_generateTape'](_0x2a5652,_0x360358){if(_0x2a5652['is']('element','$text'))_0x360358['push']({'item':_0x2a5652,'type':'text'});else{_0x2a5652['is']('element')&&_0x360358['push']({'item':_0x2a5652,'type':'elementStart'});for(const _0x1814b3 of _0x2a5652['getChildren']())this['_generateTape'](_0x1814b3,_0x360358);_0x2a5652['is']('element')&&_0x360358['push']({'item':_0x2a5652,'type':'elementEnd'});}return _0x360358;}['_getState'](){const _0x4f9d3e=new Map(this['_touched']),_0x5055fd=new Map(_0x4f9d3e),_0x2dfad5=new Map(),_0x13066f={'insertions':{},'deletions':{}},_0x533c16={'insertions':{},'deletions':{}},_0x51aced=new Map(),_0x123ee8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x123ee8['delete']('$graveyard');for(const _0xa11fa0 of _0x123ee8){const _0x2186e9=this['_diffRoots']['get'](_0xa11fa0)||P(_0xa11fa0,!0x1),_0x2c7181=this['_baseRoots']['get'](_0xa11fa0)||P(_0xa11fa0,!0x1);_0x2186e9['isAttached']()||_0x2c7181['isAttached']()?(_0x13066f['insertions'][_0xa11fa0]=N(_0x2186e9),_0x13066f['deletions'][_0xa11fa0]=N(_0x2c7181),this['_copyMarkers'](_0x13066f['deletions'][_0xa11fa0],_0x2c7181),this['_copyMarkers'](_0x13066f['insertions'][_0xa11fa0],_0x2186e9),_0x533c16['insertions'][_0xa11fa0]=this['_generateTape'](this['_idsRoots']['get'](_0xa11fa0),[]),_0x533c16['deletions'][_0xa11fa0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xa11fa0)||P(_0xa11fa0,!0x1),[])):_0x123ee8['delete'](_0xa11fa0);}for(const _0x120496 of _0x123ee8){const _0x1783f2=_0x533c16['insertions'][_0x120496];for(const _0x275197 of _0x1783f2){const _0x2fe1d8=this['_getVidAttributeName'](_0x275197),_0xca56d2=_0x275197['item']['getAttribute'](_0x2fe1d8);_0x5055fd['delete'](_0xca56d2),_0xca56d2>=this['_startingRevisionId']&&_0x2dfad5['set'](_0xca56d2,_0x4f9d3e['get'](_0xca56d2));}}for(const _0x3e0b75 of _0x123ee8){const _0x21ea8c=_0x533c16['insertions'][_0x3e0b75],_0x28452f=this['_getBaseVids'](_0x533c16['deletions'][_0x3e0b75]);let _0x1b7717=0x0;for(const _0x52e0e7 of _0x21ea8c){const _0x4ca7bd=this['_getVidAttributeName'](_0x52e0e7),_0x3e3d07=_0x52e0e7['item']['getAttribute'](_0x4ca7bd);if(!_0x2dfad5['has'](_0x3e3d07)&&!_0x51aced['has'](_0x3e3d07)){if(_0x5055fd['has'](_0x3e3d07))_0x1b7717++;else{if(_0x3e3d07!=_0x28452f[_0x1b7717]){const _0x2bb904=_0x4f9d3e['get'](_0x3e3d07)||_0x4f9d3e['get'](_0x28452f[_0x1b7717]);for(;_0x3e3d07!=_0x28452f[_0x1b7717];)_0x5055fd['has'](_0x28452f[_0x1b7717])||(_0x51aced['set'](_0x28452f[_0x1b7717],_0x2bb904),_0x4f9d3e['set'](_0x28452f[_0x1b7717],_0x2bb904)),_0x1b7717++;}_0x1b7717++;}}}}for(const _0x8f3b6d of _0x123ee8){const _0xdc4dc4=_0x533c16['insertions'][_0x8f3b6d];for(const _0x3d58ed of _0xdc4dc4){const _0x549f68=this['_getVidAttributeName'](_0x3d58ed),_0x4206f8=_0x3d58ed['item']['getAttribute'](_0x549f68);if(_0x51aced['has'](_0x4206f8)){const _0x494699=_0x51aced['get'](_0x4206f8);_0x5055fd['has'](_0x4206f8)||_0x5055fd['set'](_0x4206f8,{..._0x494699}),_0x2dfad5['set'](_0x4206f8,{..._0x494699});}}}for(const _0x33bda7 of _0x5055fd['keys']())_0x33bda7>=this['_startingRevisionId']&&_0x5055fd['delete'](_0x33bda7);const _0x2bfe92=new Map();for(const _0x3336f7 of _0x123ee8){let _0x2373be=_0x533c16['insertions'][_0x3336f7];for(const _0x572da5 of _0x2373be)if(_0x572da5['item']['is']('element','tableCell')){const _0x3e2636=this['_getVidAttributeName'](_0x572da5),_0x11ced7=_0x572da5['item']['getAttribute'](_0x3e2636);if(_0x2dfad5['has'](_0x11ced7)){const _0xcd5bdf=_0x572da5['item']['parent']['parent']['getAttribute']('vid_start'),_0x313164=_0x2bfe92['get'](_0xcd5bdf)||new Set();_0x313164['add'](_0x2dfad5['get'](_0x11ced7)['userId']),_0x2bfe92['set'](_0xcd5bdf,_0x313164);}}_0x2373be=_0x533c16['deletions'][_0x3336f7];for(const _0x5b856c of _0x2373be)if(_0x5b856c['item']['is']('element','tableCell')){const _0x5187c5=this['_getVidAttributeName'](_0x5b856c),_0x40143c=_0x5b856c['item']['getAttribute'](_0x5187c5);if(_0x5055fd['has'](_0x40143c)){const _0x2168fc=_0x5b856c['item']['parent']['parent']['getAttribute']('vid_start'),_0x3893a3=_0x2bfe92['get'](_0x2168fc)||new Set();_0x3893a3['add'](_0x5055fd['get'](_0x40143c)['userId']),_0x2bfe92['set'](_0x2168fc,_0x3893a3);}}for(const _0x483ba4 of _0x2bfe92['keys']())(_0x2dfad5['has'](_0x483ba4)||_0x5055fd['has'](_0x483ba4))&&_0x2bfe92['delete'](_0x483ba4);}for(const _0x431b8d of _0x123ee8){const _0x26c12c=_0x533c16['insertions'][_0x431b8d];let _0x446873=null,_0x3b3f14=null;for(const _0x3abbaa of _0x26c12c){const _0x57a108=this['_getVidAttributeName'](_0x3abbaa),_0x31698f=_0x3abbaa['item']['getAttribute'](_0x57a108),_0x274d31=_0x2bfe92['get'](_0x31698f);_0x274d31&&'elementStart'==_0x3abbaa['type']&&(_0x446873=Array['from'](_0x274d31)[0x0],_0x3b3f14=_0x3abbaa['item']['getAttribute']('vid_end')),_0x446873&&(_0x5055fd['set'](_0x31698f,{'userId':_0x446873}),_0x2dfad5['set'](_0x31698f,{'userId':_0x446873})),_0x31698f==_0x3b3f14&&(_0x446873=null,_0x3b3f14=null);}}const _0x3eec4d={},_0x55b945=new Set();for(const _0x4e666a of _0x123ee8){const _0x5261c4=_0x13066f['deletions'][_0x4e666a],_0x311595=_0x13066f['insertions'][_0x4e666a];for(const {userId:_0x548fff}of this['_touchedMarkers']['values']())null!==_0x548fff&&_0x55b945['add'](_0x548fff);for(const {userId:_0x3fdc97}of this['_touchedRoots']['values']())null!==_0x3fdc97&&_0x55b945['add'](_0x3fdc97);this['_markChanges'](_0x311595,_0x533c16['insertions'][_0x4e666a],_0x2dfad5,'insertion',_0x55b945),this['_markChanges'](_0x5261c4,_0x533c16['deletions'][_0x4e666a],_0x5055fd,'deletion',_0x55b945),_0x3eec4d[_0x4e666a]={'insertions':this['_prepareViewToSave'](_0x311595),'deletions':this['_prepareViewToSave'](_0x5261c4),'attachChange':this['_touchedRoots']['get'](_0x4e666a)||null,'attributesBefore':_0x4f42bf(this['_baseRootsAttributes']['get'](_0x4e666a))||{},'attributesAfter':_0x4f42bf(this['_diffRootsAttributes']['get'](_0x4e666a))};}return{'diffData':_0x3eec4d,'authorsIds':Array['from'](_0x55b945)};}['_processRootBeforeSave'](_0x229ef7){for(const [,_0x5b0080]of _0x229ef7['markers']){const _0x26c309=_0x5b0080['start']['getAncestors']()['filter'](_0x32fa7f=>'tableCell'==_0x32fa7f['name']);for(const _0x5ad588 of _0x26c309)0x1==_0x5ad588['childCount']&&_0x5ad588['getChild'](0x0)['is']('element','paragraph')&&_0x5ad588['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1dadb8){this['_processRootBeforeSave'](_0x1dadb8);const _0x5e0067=this['editor']['data']['toView'](_0x1dadb8,{}),_0x382094=Array['from'](_0x5e0067['getChildren']())['map'](_0x5e2007=>this['_getViewJson'](_0x5e2007));return JSON['stringify'](_0x382094);}['_getViewJson'](_0x33f0ea){if(_0x33f0ea['is']('$text'))return _0x33f0ea['data'];{const _0x9a82fd=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x609b32=_0x33f0ea,_0x3bd291=this['editor']['data']['htmlProcessor']['domConverter'],_0x38cc53={'type':_0x9a82fd['_getTypeCharForViewElement'](_0x609b32),'name':_0x609b32['name'],'attributes':Array['from'](_0x609b32['getAttributes']()),'children':Array['from'](_0x609b32['getChildren']())['map'](_0x171508=>this['_getViewJson'](_0x171508))};if(_0x33f0ea['is']('uiElement')&&'$comment'!=_0x33f0ea['name']){const _0x38d97f=_0x33f0ea['render'](_0x3bd291['domDocument'],_0x3bd291);_0x38cc53['children']['push'](_0x38d97f['outerHTML']);}else{if(_0x33f0ea['is']('rawElement')){const _0xfa14d0=_0x3bd291['domDocument']['createElement'](_0x609b32['name']);_0x33f0ea['render'](_0xfa14d0,_0x3bd291),_0x38cc53['children']['push'](_0xfa14d0['innerHTML']);}}const _0x383e0e=Array['from'](_0x609b32['getCustomProperties']());_0x383e0e['length']>0x0&&(_0x38cc53['customProperties']=_0x383e0e);const _0x1e6035=_0x609b32['getFillerOffset']();return null!==_0x1e6035&&(_0x38cc53['fillerOffset']=_0x1e6035),_0x38cc53;}}['_markChanges'](_0x1764aa,_0x891117,_0x423ddf,_0x390650,_0x5ec033){let _0x545989=null,_0x9fc9f5=null,_0x5172fe=0x0;const _0x34bf94=this['editor']['model'];for(let _0x4b9080=0x0;_0x4b9080<_0x891117['length'];_0x4b9080++){const _0x401b78=this['_getVidAttributeName'](_0x891117[_0x4b9080]),_0x1179d0=_0x891117[_0x4b9080]['item']['getAttribute'](_0x401b78),_0x5d1ac9=_0x423ddf['get'](_0x1179d0),_0x14ff45=_0x4b9080==_0x891117['length']-0x1;(!_0x545989&&_0x5d1ac9&&(_0x545989=_0x5d1ac9,_0x9fc9f5=_0x891117[_0x4b9080]),_0x545989&&(!_0x5d1ac9||_0x5d1ac9['userId']!=_0x545989['userId']))&&(_0x397df8(_0x5d1ac9,F(_0x9fc9f5,_0x1764aa,_0x34bf94),F(_0x891117[_0x4b9080],_0x1764aa,_0x34bf94)),_0x545989=_0x5d1ac9||null,_0x9fc9f5=_0x5d1ac9?_0x891117[_0x4b9080]:null),_0x545989&&_0x14ff45&&_0x397df8(_0x5d1ac9,F(_0x9fc9f5,_0x1764aa,_0x34bf94),B(_0x891117[_0x4b9080],_0x1764aa,_0x34bf94));}function _0x397df8(_0xcbce69,_0x460b4f,_0x172e81){const _0x3cbf00=_0x545989['userId'],_0x64a0ca='revision:'+_0x390650+':'+_0x3cbf00+':'+_0x5172fe++,_0x3cbb7e=_0x34bf94['createRange'](_0x460b4f,_0x172e81);_0x1764aa['markers']['set'](_0x64a0ca,_0x3cbb7e),null!==_0x3cbf00&&_0x5ec033['add'](_0x3cbf00);}}['_getVidAttributeName'](_0x4180f9){switch(_0x4180f9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x564a4c,_0x1bcf82){_0x564a4c['baseVersion']=null;for(const _0x5a79a2 in _0x564a4c){const _0x3c0a6b=_0x564a4c[_0x5a79a2];if(_0x3c0a6b instanceof vt){const _0x514146=_0x1bcf82['get'](_0x3c0a6b['root']['rootName']);_0x564a4c[_0x5a79a2]=this['_fixPosition'](_0x3c0a6b,_0x514146);}if(_0x3c0a6b instanceof ft){const _0xc13b60=_0x1bcf82['get'](_0x3c0a6b['root']['rootName']);_0x564a4c[_0x5a79a2]=this['_fixRange'](_0x3c0a6b,_0xc13b60);}'root'===_0x5a79a2&&(_0x564a4c['root']=_0x1bcf82['get'](_0x564a4c['root']['rootName']));}}['_fixRange'](_0x9840aa,_0xb885b3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9840aa['start'],_0xb885b3),this['_fixPosition'](_0x9840aa['end'],_0xb885b3));}['_fixPosition'](_0x420f04,_0x15a00c){return this['editor']['model']['createPositionFromPath'](_0x15a00c,_0x420f04['path'],_0x420f04['stickiness']);}['_handleInsertOperation'](_0x240339){const _0x244a34=this['_idsRoots']['get'](_0x240339['position']['root']['rootName']),_0x439dd7=this['_fixPosition'](_0x240339['position'],_0x244a34),_0x4c1269=null===_0x240339['_authorId']?null:_0x240339['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b1375=_0x439dd7['parent'],_0x5dc605=this['_revisionId'],_0x196f97=[];for(const _0x396dd9 of _0x240339['nodes'])if(_0x396dd9['is']('element'))_0x196f97['push'](this['_makeIdsRoot'](_0x396dd9));else{for(let _0xcad210=0x0;_0xcad210<_0x396dd9['offsetSize'];_0xcad210++)_0x196f97['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xc8de8f=this['_revisionId'];for(let _0x14ba23=_0x5dc605;_0x14ba23<_0xc8de8f;_0x14ba23++)this['_touched']['set'](_0x14ba23,{'userId':_0x4c1269});_0x2b1375['_insertChild'](_0x439dd7['offset'],_0x196f97);}['_handleMoveOperation'](_0xbf5b55){(_0xbf5b55=this['_cloneOperation'](_0xbf5b55,this['_idsRoots']))['_execute']();const _0x4a0bde=null===_0xbf5b55['_authorId']?null:_0xbf5b55['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5158a1=_0xbf5b55['getMovedRangeStart'](),_0xc54b1b=_0x5158a1['parent'],_0xa680e5=_0x5158a1['offset'];!function _0x20b931(_0x5342ff,_0xb65ea9,_0x3e7b89,_0x1827ef){for(let _0x30232c=_0x3e7b89;_0x30232c<_0x1827ef;_0x30232c++){const _0x222648=_0xb65ea9['getChild'](_0x30232c);_0x222648['is']('element','$text')?_0x5342ff['set'](_0x222648['getAttribute']('vid'),{'userId':_0x4a0bde}):(_0x5342ff['set'](_0x222648['getAttribute']('vid_start'),{'userId':_0x4a0bde}),_0x20b931(_0x5342ff,_0x222648,0x0,_0x222648['childCount']),_0x5342ff['set'](_0x222648['getAttribute']('vid_end'),{'userId':_0x4a0bde}));}}(this['_touched'],_0xc54b1b,_0xa680e5,_0xa680e5+_0xbf5b55['howMany']);}['_handleMergeOperation'](_0x352d97){const _0x3be647=null===(_0x352d97=this['_cloneOperation'](_0x352d97,this['_idsRoots']))['_authorId']?null:_0x352d97['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x359f05=_0x352d97['targetPosition']['parent'],_0x223bac=_0x352d97['sourcePosition']['parent'],_0x39c829=_0x359f05['getAttribute']('vid_end'),_0x478e59=_0x223bac['getAttribute']('vid_start');_0x359f05['_setAttribute']('vid_end',_0x223bac['getAttribute']('vid_end')),_0x223bac['_setAttribute']('vid_end',_0x39c829),this['_touched']['set'](_0x478e59,{'userId':_0x3be647}),this['_touched']['set'](_0x39c829,{'userId':_0x3be647}),_0x352d97['_execute']();}['_handleSplitOperation'](_0x23f652){const _0x439d32=null===(_0x23f652=this['_cloneOperation'](_0x23f652,this['_idsRoots']))['_authorId']?null:_0x23f652['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2237c3=_0x23f652['graveyardPosition'],_0x3305a3=_0x23f652['splitPosition']['parent'];_0x23f652['_execute']();const _0x424dda=_0x3305a3['getAttribute']('vid_end'),_0x5ef97b=_0x23f652['insertionPosition']['nodeAfter'];if(_0x2237c3){const _0x619564=_0x5ef97b['getAttribute']('vid_end'),_0x4ac641=_0x3305a3['getAttribute']('vid_end');_0x3305a3['_setAttribute']('vid_end',_0x619564),_0x5ef97b['_setAttribute']('vid_end',_0x4ac641),this['_touched']['set'](_0x3305a3['getAttribute']('vid_end'),{'userId':_0x439d32}),this['_touched']['set'](_0x5ef97b['getAttribute']('vid_start'),{'userId':_0x439d32});}else{const _0x5a2fcf=this['_revisionId']++,_0xfaddbc=this['_revisionId']++;_0x3305a3['_setAttribute']('vid_end',_0x5a2fcf),_0x5ef97b['_setAttribute']('vid_start',_0xfaddbc),_0x5ef97b['_setAttribute']('vid_end',_0x424dda),this['_touched']['set'](_0x5a2fcf,{'userId':_0x439d32}),this['_touched']['set'](_0xfaddbc,{'userId':_0x439d32});}}['_handleMarkerOperation'](_0x135285){if(!_0x135285['affectsData'])return;const _0xaaefb2=(_0x135285=this['_cloneOperation'](_0x135285,this['_diffRoots']))['oldRange']?_0x135285['oldRange']['root']:null,_0x5085f0=_0x135285['newRange']?_0x135285['newRange']['root']:null;_0xaaefb2&&this['_markers']['delete'](_0x135285['name']),_0x5085f0&&this['_markers']['set'](_0x135285['name'],_0x135285['newRange']['clone']());const _0x179218=null===_0x135285['_authorId']?null:_0x135285['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e73d3=_0x135285['name'];if(!this['_touchedMarkers']['has'](_0x3e73d3))return void this['_touchedMarkers']['set'](_0x3e73d3,{'range':_0x135285['oldRange'],'userId':_0x179218});const _0x977712=this['_touchedMarkers']['get'](_0x3e73d3),_0x132ce1=_0x977712['range'],_0x309ed7=_0x135285['newRange'];null==_0x132ce1&&null==_0x309ed7||_0x132ce1&&_0x309ed7&&_0x132ce1['isEqual'](_0x309ed7)?this['_touchedMarkers']['delete'](_0x135285['name']):_0x977712['userId']=_0x179218;}['_handleRootOperation'](_0x272ccd,_0x325e3b){this['_diffRoots']['has'](_0x272ccd['rootName'])?this['_diffRoots']['get'](_0x272ccd['rootName'])['_isAttached']=_0x272ccd['isAdd']:(this['_diffRoots']['set'](_0x272ccd['rootName'],P(_0x272ccd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x272ccd['rootName'],{}),_0x325e3b&&this['_idsRoots']['set'](_0x272ccd['rootName'],P(_0x272ccd['rootName'],!0x0)));const _0x5f2420=null===_0x272ccd['_authorId']?null:_0x272ccd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11bfc4=this['_touchedRoots']['get'](_0x272ccd['rootName']);_0x11bfc4&&_0x11bfc4['userId']===_0x5f2420?this['_touchedRoots']['delete'](_0x272ccd['rootName']):this['_touchedRoots']['set'](_0x272ccd['rootName'],{'userId':_0x5f2420,'isAttached':_0x272ccd['isAdd']});}['_handleRootAttributeOperation'](_0x4e2a13){const _0x357467=this['_diffRootsAttributes']['get'](_0x4e2a13['root']['rootName']);null===_0x4e2a13['newValue']?delete _0x357467[_0x4e2a13['key']]:_0x357467[_0x4e2a13['key']]=_0x4e2a13['newValue'];}}function N(_0x263c77){const _0x3c857c=P(_0x263c77['rootName'],_0x263c77['isAttached']());for(const _0x13b0b7 of _0x263c77['getChildren']()){const _0x36dc23=_0x13b0b7['_clone'](!0x0);_0x3c857c['_appendChild'](_0x36dc23);}return _0x3c857c;}function P(_0x596ec2,_0x18ceb9=!0x0){const _0x134ee8=new gt();return _0x134ee8['rootName']=_0x596ec2,_0x134ee8['_isAttached']=_0x18ceb9,_0x134ee8['isAttached']=()=>_0x134ee8['_isAttached'],_0x134ee8;}function F(_0xbc088f,_0x2e97de,_0x3ca1b5){const _0x1f915d='elementEnd'==_0xbc088f['type']?_0x3ca1b5['createPositionAt'](_0xbc088f['item'],'end'):_0x3ca1b5['createPositionBefore'](_0xbc088f['item']);return _0x3ca1b5['createPositionFromPath'](_0x2e97de,_0x1f915d['path'],_0x1f915d['stickiness']);}function B(_0x4f131a,_0x5e0bcc,_0x3bbcbd){const _0x10302e='elementStart'==_0x4f131a['type']?_0x3bbcbd['createPositionAt'](_0x4f131a['item'],0x0):_0x3bbcbd['createPositionAfter'](_0x4f131a['item']);return _0x3bbcbd['createPositionFromPath'](_0x5e0bcc,_0x10302e['path'],_0x10302e['stickiness']);}class os extends _0x4739c1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x438433,_0x34d743){super(_0x438433),this['focusTracker']=new _0x3291ac(),this['keystrokes']=new _0x464bc5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x34d743),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'](),_0x336625({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xcabe4d=_0x3c939f=>_0x3c939f['stopPropagation']();this['keystrokes']['set']('arrowright',_0xcabe4d),this['keystrokes']['set']('arrowleft',_0xcabe4d),this['keystrokes']['set']('arrowup',_0xcabe4d),this['keystrokes']['set']('arrowdown',_0xcabe4d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x28d25a){this['revisionNameInputView']['fieldView']['element']['value']=_0x28d25a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x8b170e){const _0x747b57=new nt(this['locale'],ti),_0x50cec6=_0x747b57['fieldView'];_0x50cec6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ff3eb=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x8b170e&&(_0x4ff3eb+='\x20('+g(this['locale'],'optional')+')'),(_0x747b57['label']=_0x4ff3eb,_0x50cec6['on']('input',()=>{this['revisionNameInputValue']=_0x50cec6['element']['value']['trim']();}),_0x747b57);}}class f extends _0x1c4af5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2cd9e0=this['editor'],_0x5b8713=_0x2cd9e0['plugins']['get']('RevisionTracker');_0x2cd9e0['ui']['componentFactory']['add']('revisionHistory',_0x4094d2=>{const _0x4e2685=_0x331ab6(_0x4094d2),_0x2c84fe=_0x4e2685['panelView']['children'],_0x5b1ac7=new _0x265565(_0x4094d2),_0x2fdc62=new te(_0x4094d2),_0x175fac=new _0x389c57(_0x4094d2),_0x4b7ff7=new te(_0x4094d2),_0x394b60=new _0x389c57(_0x4094d2);return _0x4e2685['bind']('isEnabled')['to'](_0x5b8713,'isReady',_0x5b8713,'isEnabled',_0x2cd9e0,'isReadOnly',(_0xf03c61,_0x1d7dae,_0x160b40)=>_0xf03c61&&_0x1d7dae&&!_0x160b40),_0x4e2685['buttonView']['set']({'icon':_0x3732f9,'label':g(_0x4094d2,'Revision\x20history'),'tooltip':!0x0}),_0x175fac['set']({'label':g(_0x4094d2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x175fac['bind']('isEnabled')['to'](_0x5b8713,'isReady',_0x5b8713,'isEnabled',_0x2cd9e0,'isReadOnly',(_0xd74468,_0x556ee9,_0xc41270)=>_0xd74468&&_0x556ee9&&!_0xc41270),_0x175fac['on']('execute',()=>this['_showDialog']()),_0x394b60['set']({'label':g(_0x4094d2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x394b60['bind']('isEnabled')['to'](_0x5b8713,'isReady',_0x2cd9e0,'isReadOnly',(_0x55863f,_0x20baac)=>_0x55863f&&!_0x20baac),_0x394b60['on']('execute',()=>{_0x2cd9e0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4e2685['isOpen']=!0x1,_0x2cd9e0['editing']['view']['focus']();}),_0x2fdc62['children']['add'](_0x175fac),_0x4b7ff7['children']['add'](_0x394b60),_0x5b1ac7['role']='menu',_0x5b1ac7['items']['addMany']([_0x2fdc62,_0x4b7ff7]),_0x2c84fe['add'](_0x5b1ac7),_0x4e2685;}),_0x2cd9e0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1c0d0e=this['editor'],_0x199a47=_0x1c0d0e['locale'],_0x263f34=new _0x3ea6c1(_0x199a47),_0x408ba7=new _0x3187ae(_0x199a47);_0x263f34['buttonView']['set']({'icon':_0x3732f9,'label':g(_0x199a47,'Revision\x20history')});const _0x5c624f=new _0x446412(_0x199a47,_0x263f34),_0x33a7f8=new _0xb4e151(_0x199a47);_0x33a7f8['set']({'label':g(_0x199a47,'Save\x20current\x20revision')}),_0x33a7f8['delegate']('execute')['to'](_0x263f34),_0x33a7f8['on']('execute',()=>{this['_showDialog']();}),_0x5c624f['children']['add'](_0x33a7f8),_0x408ba7['items']['add'](_0x5c624f);const _0xa06740=new _0x446412(_0x199a47,_0x263f34),_0x5b0eb4=new _0xb4e151(_0x199a47);return _0x5b0eb4['set']({'label':g(_0x199a47,'Open\x20revision\x20history')}),_0x5b0eb4['delegate']('execute')['to'](_0x263f34),_0x5b0eb4['on']('execute',()=>{_0x1c0d0e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xa06740['children']['add'](_0x5b0eb4),_0x408ba7['items']['add'](_0xa06740),_0x263f34['panelView']['children']['add'](_0x408ba7),_0x263f34;}['_showDialog'](){const _0x1ab908=this['editor'],_0x161c30=_0x1ab908['locale'],_0x5f068d=_0x1ab908['plugins']['get']('Dialog'),_0x386b56=_0x1ab908['plugins']['get']('RevisionTracker');function _0x4c4da0(_0x419dc8){_0x1ab908['config']['get']('revisionHistory.requireRevisionName')&&''===_0x419dc8['revisionName']?_0x419dc8['revisionNameInputView']['errorText']=g(_0x161c30,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1ab908['plugins']['get'](u)['saveRevision']({'name':_0x419dc8['revisionName']}),_0x5f068d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c4da0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5f068d['show']({'id':'revisionSave','title':g(_0x161c30,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1ab908['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5f068d['hide']()},{'label':g(_0x1ab908['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3d56c5){_0x3d56c5['bind']('isEnabled')['to'](_0x386b56,'isReady',_0x386b56,'isEnabled',_0x1ab908,'isReadOnly',(_0x5c707c,_0xe50759,_0x36c3da)=>_0x5c707c&&_0xe50759&&!_0x36c3da);},'onExecute':()=>_0x4c4da0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a1009=this['editor'],_0x861935=_0x2a1009['locale'];this['_saveRevisionFormView']=new os(_0x861935,_0x2a1009['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4739c1{['changeId'];['_model'];constructor(_0xb551b8,_0x91eb77){super(_0xb551b8),this['_model']=_0x91eb77,this['changeId']=_0x91eb77['id'];const _0x219013=this['bindTemplate'],_0x4b8756=g(_0xb551b8,_0x91eb77['data']['isSuggestion']?'Suggested\x20by':'add'==_0x91eb77['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x91eb77['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x219013['to']('type',_0x4920f9=>'ck-revision-change__'+_0x4920f9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4b8756}]},{'text':'\x20'+_0x91eb77['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x527396(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x58b44a){super(),this['id']=_0x58b44a['id']||_0x23ef34(),this['author']=_0x58b44a['author'],this['type']=_0x58b44a['type'],this['data']=_0x58b44a['data']||{},this['rootName']=_0x58b44a['rootName'],this['set']('createdAt',_0x58b44a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5170a1,_0x193f5c){this['newRevisionId']=_0x5170a1,this['oldRevisionId']=_0x193f5c,this['changes']=new _0x8e09a8();}['_setChanges'](_0x4c1287){for(const _0x3c7e98 of _0x4c1287)this['changes']['add'](_0x3c7e98);}}class m extends _0x1c4af5{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d92c6,_0x287c7,I,V];}constructor(_0x23ffb0){super(_0x23ffb0),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x34fa7c,_0x53f2fc,_0x1bc465)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5dc5a8=>{for(const _0x3d35e7 of this['editor']['editing']['view']['document']['roots'])_0x1bc465?_0x5dc5a8['removeClass']('ck-editor__editable__overlay',_0x3d35e7):_0x5dc5a8['addClass']('ck-editor__editable__overlay',_0x3d35e7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5c58ee=>null!==_0x5c58ee),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5f2aa3,_0x1b46b1,_0x163b54)=>_0x5f2aa3&&_0x163b54?_0x1b46b1['changes']['getIndex'](_0x163b54):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5995b6,_0x7cf183)=>_0x5995b6?_0x7cf183['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x287c7);}['init'](){const _0x303e33=this['editor'],_0x4ac7df=new pt(_0x303e33,{'direction':'backward'}),_0x504af8=new pt(_0x303e33,{'direction':'forward'});(_0x303e33['commands']['add']('showPreviousChange',_0x4ac7df),_0x303e33['commands']['add']('showNextChange',_0x504af8),_0x303e33['commands']['add']('restoreRevision',new wt(_0x303e33)),this['on']('change:numberOfChanges',()=>{_0x4ac7df['refresh'](),_0x504af8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x303e33['enableReadOnlyMode']('revision-viewer'),_0x303e33['plugins']['has']('WidgetToolbarRepository'))&&_0x303e33['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4f0907){return await this['_utils']['loadRevisionData'](_0x4f0907,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4f0907);}async['getRevisionRootsAttributes'](_0x8d2d27){return await this['_utils']['loadRevisionData'](_0x8d2d27,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x8d2d27);}async['compare'](_0x585083,_0x5ab78d,_0x387b2d=!0x1){if(!this['isEnabled'])return;const _0x18b08c=this['diff'],_0x371a0d=this['repository'],_0x1a1ade='string'==typeof _0x585083?_0x371a0d['getRevision'](_0x585083):_0x585083,_0x3b87c9='string'==typeof _0x5ab78d?_0x371a0d['getRevision'](_0x5ab78d):_0x5ab78d,_0x3e8458=_0x1a1ade['id'],_0x58b476=_0x3b87c9?_0x3b87c9['id']:null;if(!_0x387b2d&&this['diff']&&this['diff']['newRevisionId']===_0x3e8458&&this['diff']['oldRevisionId']===_0x58b476)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3e8458,_0x58b476);const _0x2994a4=this['_getRevisionsRange'](_0x1a1ade,_0x3b87c9,!0x0)['map'](_0x14339b=>this['_utils']['loadRevisionData'](_0x14339b,this['adapter']));return _0x2994a4['push'](new Promise(_0x133722=>{setTimeout(_0x133722,0x14);})),Promise['all'](_0x2994a4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x34121d=this['_getDiff'](_0x3e8458,_0x58b476);for(const _0x5f353f of _0x34121d['changes'])this['_changeIdToChange']['set'](_0x5f353f['id'],_0x5f353f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x740aac=>{for(const _0x1cf1a3 of this['editor']['model']['document']['getRootNames']())_0x740aac['detachRoot'](_0x1cf1a3);for(const _0x21ba37 of Object['keys'](_0x34121d['model'])){const _0x44adb3=_0x740aac['addRoot'](_0x21ba37);for(const _0xd7e27b of Object['keys'](_0x34121d['attributes'][_0x21ba37]))_0x740aac['setAttribute'](_0xd7e27b,_0x34121d['attributes'][_0x21ba37][_0xd7e27b],_0x44adb3);_0x740aac['insert'](_0x34121d['model'][_0x21ba37],_0x44adb3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x34121d['changes'])),this['isReady']=!0x0;})['catch'](_0x2468a1=>{console['error'](_0x2468a1),this['_cleanUp'](),_0x18b08c&&(this['diff']=_0x18b08c),this['isReady']=!0x0;});}['addRevisionData'](_0x5c9bd0,_0x228456){const _0x28a2b6=this['repository']['createRevision'](_0x5c9bd0);return _0x28a2b6['on']('_update',(_0x12cc41,_0x21059b,_0x4dda30)=>_0x228456(_0x21059b,_0x4dda30,_0x28a2b6)),this['repository']['addRevision'](_0x28a2b6),_0x28a2b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9ba7f4=>{for(const _0x2132aa of this['editor']['model']['document']['getRootNames']())_0x9ba7f4['detachRoot'](_0x2132aa);});}['_sortAndFilterDiffChanges'](_0xe171f4){const _0x2b5966=[],_0x643f44=new Map();for(const _0x5f3a1c of this['editor']['model']['document']['getRootNames']()){const _0x48f2ef=this['editor']['editing']['view']['getDomRoot'](_0x5f3a1c);if(!_0x48f2ef)continue;const _0x866823=_0x48f2ef['getClientRects']()['item'](0x0);_0x866823&&(_0x2b5966['push'](_0x5f3a1c),_0x643f44['set'](_0x5f3a1c,_0x866823));}return _0x2b5966['sort']((_0x66dfdf,_0x1576dd)=>{const _0x68f026=_0x643f44['get'](_0x66dfdf),_0xbd3153=_0x643f44['get'](_0x1576dd);return _0x68f026['y']-_0xbd3153['y']||_0x68f026['x']-_0xbd3153['x'];}),(_0xe171f4=_0xe171f4['filter'](_0x4cdb5a=>_0x2b5966['includes'](_0x4cdb5a['rootName'])))['sort']((_0x1129e1,_0x4ac728)=>_0x2b5966['indexOf'](_0x1129e1['rootName'])-_0x2b5966['indexOf'](_0x4ac728['rootName'])),_0xe171f4;}['_makeTape'](_0x21fd53){const _0x5de294=Array['from'](_0x21fd53['markers'])['filter'](([_0x3e2010,_0x2f47d3])=>_0x3e2010['startsWith']('revision:')&&!_0x2f47d3['isCollapsed']),_0x5c67e3=Array['from'](this['editor']['model']['createRangeIn'](_0x21fd53)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5de294['length'])for(const _0x2fcd1b of _0x5c67e3){const [_0x5c2761,_0x126c04]=_0x5de294[0x0],[,_0x240705,_0x3736a6]=_0x5c2761['split'](':');if(_0x126c04['end']['isEqual'](_0x2fcd1b['nextPosition'])&&_0x5de294['shift'](),(_0x2fcd1b['previousPosition']['isEqual'](_0x126c04['start'])||_0x2fcd1b['previousPosition']['isAfter'](_0x126c04['start']))&&('insertion'==_0x240705?_0x2fcd1b['isAdded']={'userId':_0x3736a6}:'deletion'==_0x240705&&(_0x2fcd1b['isRemoved']={'userId':_0x3736a6})),0x0==_0x5de294['length'])break;}return _0x5c67e3;}['_refreshStartEndIndex'](_0x44aebd){const _0x578e7e=new Map();for(let _0x521660=0x0;_0x521660<_0x44aebd['length'];_0x521660++)'text'===_0x44aebd[_0x521660]['type']?(_0x44aebd[_0x521660]['item']['startIndex']=_0x521660,_0x44aebd[_0x521660]['item']['endIndex']=_0x521660):('elementStart'===_0x44aebd[_0x521660]['type']?_0x44aebd[_0x521660]['item']['startIndex']=_0x521660:'elementEnd'===_0x44aebd[_0x521660]['type']&&(_0x44aebd[_0x521660]['item']['endIndex']=_0x521660),_0x578e7e['set'](_0x44aebd[_0x521660]['id'],_0x521660));for(const _0x4a278b of _0x578e7e['values']())'elementStart'===_0x44aebd[_0x4a278b]['type']?_0x44aebd[_0x4a278b]['item']['endIndex']=_0x578e7e['get'](_0x44aebd[_0x4a278b]['pairId']):'elementEnd'===_0x44aebd[_0x4a278b]['type']&&(_0x44aebd[_0x4a278b]['item']['startIndex']=_0x578e7e['get'](_0x44aebd[_0x4a278b]['pairId']));}['_processTape'](_0x3ad4d4){for(let _0x1c1d38=0x0;_0x1c1d38<_0x3ad4d4['length'];_0x1c1d38++){if('elementStart'===_0x3ad4d4[_0x1c1d38]['type'])_0x3ad4d4[_0x1c1d38]['item']['startIndex']=_0x1c1d38;else{if('elementEnd'===_0x3ad4d4[_0x1c1d38]['type']){_0x3ad4d4[_0x1c1d38]['item']['endIndex']=_0x1c1d38;const _0xb687d0=_0x3ad4d4[_0x1c1d38]['item']['startIndex'];_0x3ad4d4[_0xb687d0]['pairId']=_0x3ad4d4[_0x1c1d38]['id'],_0x3ad4d4[_0x1c1d38]['pairId']=_0x3ad4d4[_0xb687d0]['id'];}else _0x3ad4d4[_0x1c1d38]['item']['startIndex']=_0x1c1d38,_0x3ad4d4[_0x1c1d38]['item']['endIndex']=_0x1c1d38,_0x3ad4d4[_0x1c1d38]['pairId']=null;}_0x3ad4d4[_0x1c1d38]['markersStart']||(_0x3ad4d4[_0x1c1d38]['markersStart']=[],_0x3ad4d4[_0x1c1d38]['markersEnd']=[]);}}['_markInsertions'](_0x4e454e,_0x42ae83){const _0x2b2bf=_0x4e454e['filter'](_0x3505cc=>!_0x3505cc['isAdded']);for(let _0x34a3da=0x0;_0x34a3da<_0x42ae83['length'];_0x34a3da++)_0x42ae83[_0x34a3da]['isAdded']&&(_0x2b2bf[_0x34a3da]['isAdded']=_0x42ae83[_0x34a3da]['isAdded']);}['_getDiff'](_0x349d28,_0x7fa67d=null){const _0x5a5392=this['repository']['getRevision'](_0x349d28),_0x1b64d3=_0x7fa67d?this['repository']['getRevision'](_0x7fa67d):null,_0xf81079=this['_getRevisionsRange'](_0x5a5392,_0x1b64d3),_0x8f3efd=_0xf81079[_0xf81079['length']-0x1],_0x2d07dd=new Map(),_0x223c04={'model':{},'attributes':{},'changes':[]},_0x5cd499=new Set(),_0x3f7ca4=new Map();for(let _0x453fb7=_0xf81079['length']-0x1;_0x453fb7>=0x0;_0x453fb7--){const _0x377bf6=_0xf81079[_0x453fb7];for(const _0x1c11f1 of Object['keys'](_0x377bf6['diffData']))if(_0x377bf6['diffData'][_0x1c11f1]['attachChange']){const _0x23a0c8=_0x377bf6['diffData'][_0x1c11f1]['attachChange'];_0x23a0c8['isAttached']?(_0x5cd499['add'](_0x1c11f1),_0x3f7ca4['has'](_0x1c11f1)&&_0x3f7ca4['get'](_0x1c11f1)['userId']==_0x23a0c8['userId']?_0x3f7ca4['delete'](_0x1c11f1):_0x3f7ca4['set'](_0x1c11f1,_0x23a0c8)):_0x3f7ca4['has'](_0x1c11f1)?(_0x5cd499['delete'](_0x1c11f1),_0x3f7ca4['delete'](_0x1c11f1)):(_0x5cd499['add'](_0x1c11f1),_0x3f7ca4['set'](_0x1c11f1,_0x23a0c8));}else _0x5cd499['add'](_0x1c11f1);}for(const _0x229e18 of _0x5cd499){const _0x124825=_0x3f7ca4['has'](_0x229e18)&&!_0x3f7ca4['get'](_0x229e18)['isAttached'];let _0xb5d422=_0x124825?_0xf81079['length']-0x1:0x0;const _0x3d6274=_0x124825?-0x1:0x1;for(;_0xf81079[_0xb5d422];){const _0x1fc0e6=_0xf81079[_0xb5d422];if(_0x1fc0e6['diffData'][_0x229e18]){const _0x5f2a7c=_0x124825?_0x1fc0e6['diffData'][_0x229e18]['attributesBefore']:_0x1fc0e6['diffData'][_0x229e18]['attributesAfter'];_0x223c04['attributes'][_0x229e18]=_0x5f2a7c?_0x4f42bf(_0x5f2a7c):{};break;}_0xb5d422+=_0x3d6274;}}for(const _0x53d9da of _0xf81079){_0x53d9da['model']={};for(const _0xec9fbf of _0x53d9da['authors'])_0x2d07dd['set'](_0xec9fbf['id'],_0xec9fbf);for(const _0x3288d9 of _0x5cd499){const _0x8ee725=_0x53d9da['diffData'][_0x3288d9]?_0x53d9da['diffData'][_0x3288d9]['insertions']:'[]',_0x205c83=_0x53d9da['diffData'][_0x3288d9]?_0x53d9da['diffData'][_0x3288d9]['deletions']:'[]';_0x53d9da['model'][_0x3288d9]={'insertions':this['_utils']['_makeModelFromViewString'](_0x8ee725),'deletions':this['_utils']['_makeModelFromViewString'](_0x205c83)};}}for(const _0x29041e of _0x5cd499){let _0x4b3869=null,_0x56a15e=0x0;const _0x558717=new Map(Array['from'](_0x5a5392['model'][_0x29041e]['insertions']['markers'])['filter'](([_0x2e6fef])=>!_0x2e6fef['startsWith']('revision:')));let _0x1790bc=0x0;for(const _0x9b6bd9 of _0xf81079){const _0x405000=this['_makeTape'](_0x9b6bd9['model'][_0x29041e]['insertions']);_0x9b6bd9==_0x5a5392?(_0x4b3869=_0x405000,_0x56a15e=_0x4b3869['length'],_0x4b3869['forEach'](_0x40189e=>{_0x40189e['id']=_0x1790bc++;}),this['_processTape'](_0x4b3869)):this['_markInsertions'](_0x4b3869,_0x405000);const _0x3e8af5=_0x4b3869['filter'](_0x28d07f=>!_0x28d07f['isAdded'])['map'](_0xc8583a=>_0xc8583a['id']);let _0x4597bc=0x0;const _0x5d074f=this['_makeTape'](_0x9b6bd9['model'][_0x29041e]['deletions']);_0x5d074f['forEach'](_0x1df539=>{_0x1df539['isRemoved']?_0x1df539['id']=_0x56a15e++:_0x1df539['id']=_0x3e8af5[_0x4597bc++];}),this['_processTape'](_0x5d074f),this['_setDistance'](_0x4b3869,'isAdded'),this['_setDistance'](_0x5d074f,'isRemoved'),_0x9b6bd9==_0x5a5392&&this['_markMarkers'](_0x4b3869,_0x558717),_0x4b3869=this['_joinTapes'](_0x4b3869,_0x5d074f),this['_refreshStartEndIndex'](_0x4b3869),this['_setDistance'](_0x4b3869,'isRemoved');}_0x4b3869=_0x4b3869['filter'](_0xde349f=>!(_0xde349f['isAdded']&&_0xde349f['isRemoved']));const _0x7be2f3=new Map(_0x8f3efd['model'][_0x29041e]['deletions']['markers']),_0x532ef3=new Set(_0x558717['keys']());for(const _0x20f600 of _0x7be2f3['keys']())_0x532ef3['delete'](_0x20f600);this['_markSuggestions'](_0x4b3869,_0x532ef3),this['_fixObsoleteTags'](_0x4b3869),_0x4b3869=this['_removeMissingPairs'](_0x4b3869),_0x4b3869=this['_markMismatchedRemovedTags'](_0x4b3869),_0x4b3869=this['_removeUnsupportedChanges'](_0x4b3869);const {root:_0x1f7ad6,changes:_0x4bfa6a}=this['_makeModelFromTape'](_0x4b3869,_0x2d07dd,_0x29041e);_0x223c04['model'][_0x29041e]=_0x1f7ad6;const _0x57acdb=_0x3f7ca4['get'](_0x29041e);if(_0x57acdb){const _0x15abd9=_0x2d07dd['get'](_0x57acdb['userId']),_0x43b51f=new r({'author':_0x15abd9,'type':_0x57acdb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x29041e});_0x4bfa6a['unshift'](_0x43b51f),_0x223c04['attributes'][_0x29041e]['revisionHistoryAttachChange']=_0x43b51f['id'];}_0x223c04['changes']=_0x223c04['changes']['concat'](_0x4bfa6a);}return _0x223c04;}['_markMarkers'](_0x5ed7f4,_0x214904){for(let _0x4bca38=0x0;_0x4bca38<_0x5ed7f4['length'];_0x4bca38++)for(const [_0x2f7110,_0x38b3ca]of _0x214904)!_0x38b3ca['isCollapsed']&&_0x38b3ca['start']['isEqual'](_0x5ed7f4[_0x4bca38]['previousPosition'])&&_0x5ed7f4[_0x4bca38]['markersStart']['push'](_0x2f7110),_0x38b3ca['end']['isEqual'](_0x5ed7f4[_0x4bca38]['nextPosition'])&&_0x5ed7f4[_0x4bca38]['markersEnd']['push'](_0x2f7110);}['_joinTapes'](_0x1f16f6,_0x48f012){let _0x1319f3=[],_0x1f8a6f=0x0,_0x242608=0x0;for(;_0x1f8a6f<_0x1f16f6['length']||_0x242608<_0x48f012['length'];){const _0x17c5c1=_0x1f16f6[_0x1f8a6f]||{},_0x54e521=_0x48f012[_0x242608]||{};if(_0x17c5c1['id']==_0x54e521['id'])_0x1f8a6f++,_0x242608++,_0x1319f3['push'](_0x17c5c1);else{if(_0x54e521['isRemoved']&&_0x17c5c1['isAdded']){const {commonTape:_0x2cc4dc,iEnd:_0x204c65,jEnd:_0x34bad2}=this['_threeWayMerge'](_0x1f16f6,_0x1f8a6f,_0x48f012,_0x242608);_0x1319f3=_0x1319f3['concat'](_0x2cc4dc),_0x1f8a6f=_0x204c65,_0x242608=_0x34bad2;}else _0x54e521['isRemoved']?(_0x242608++,_0x1319f3['push'](_0x54e521)):(_0x1f8a6f++,_0x1319f3['push'](_0x17c5c1));}}return _0x1319f3;}['_markSuggestions'](_0xaffe3,_0x243968){const _0x3f45f9=[];for(let _0x300b99=0x0;_0x300b99<_0xaffe3['length'];_0x300b99++){for(let _0x4f1bbe=0x0;_0x4f1bbe<_0xaffe3[_0x300b99]['markersStart']['length'];_0x4f1bbe++){const _0x4e4f76=_0xaffe3[_0x300b99]['markersStart'][_0x4f1bbe];if(!_0x243968['has'](_0x4e4f76))continue;const {group:_0x30890a,type:_0x427d83,authorId:_0x4ff5e4}=_0x1af72c(_0x4e4f76);'revision-suggestion'!=_0x30890a||'insertion'!=_0x427d83&&'deletion'!=_0x427d83||(_0x3f45f9['unshift']({'type':_0x427d83,'name':_0x4e4f76,'userId':_0x4ff5e4}),_0xaffe3[_0x300b99]['markersStart']['splice'](_0x4f1bbe,0x1),_0x4f1bbe--);}_0x1209c2(_0xaffe3[_0x300b99]);for(let _0x200361=0x0;_0x200361<_0xaffe3[_0x300b99]['markersEnd']['length'];_0x200361++){const _0x50dd7c=_0xaffe3[_0x300b99]['markersEnd'][_0x200361];if(!_0x243968['has'](_0x50dd7c))continue;const {group:_0x573899,type:_0x1d4266}=_0x1af72c(_0x50dd7c);if('revision-suggestion'!=_0x573899||'insertion'!=_0x1d4266&&'deletion'!=_0x1d4266)continue;_0xaffe3[_0x300b99]['markersEnd']['splice'](_0x200361,0x1),_0x200361--;const _0x534c38=_0x3f45f9['findIndex'](_0x38d066=>_0x38d066['name']==_0x50dd7c);_0x534c38>-0x1&&_0x3f45f9['splice'](_0x534c38,0x1);}}function _0x1af72c(_0x24898e){const _0x2366ea=_0x24898e['split'](':');return{'group':_0x2366ea[0x0],'type':_0x2366ea[0x1],'subType':_0x2366ea['length']>=0x5?_0x2366ea[0x2]:null,'id':_0x2366ea['length']<0x5?_0x2366ea[0x2]:_0x2366ea[0x3],'authorId':_0x2366ea['length']<0x5?_0x2366ea[0x3]:_0x2366ea[0x4],'markerCount':0x6==_0x2366ea['length']?_0x2366ea[0x5]:null};}function _0x1209c2(_0x4cad9c){for(let _0x325b12=0x0;_0x325b12<_0x3f45f9['length'];_0x325b12++){if(_0x4cad9c['isAdded']&&'insertion'==_0x3f45f9[_0x325b12]['type']&&_0x4cad9c['isAdded']['userId']==_0x3f45f9[_0x325b12]['userId'])return _0x4cad9c['isAddSuggestion']=_0x3f45f9[_0x325b12],void delete _0x4cad9c['isAdded'];if(!_0x4cad9c['isAdded']&&!_0x4cad9c['isRemoved']&&'deletion'==_0x3f45f9[_0x325b12]['type'])return void(_0x4cad9c['isRemoveSuggestion']=_0x3f45f9[_0x325b12]);}}}['_setDistance'](_0x5df19f,_0x59b5be){let _0x2e8add=0x0,_0x49337a=!0x1;const _0x575d89=new Map();for(const _0x457f22 of _0x5df19f)_0x457f22[_0x59b5be]?_0x49337a&&(_0x2e8add++,_0x49337a=!0x1):(_0x2e8add++,_0x49337a=!0x0),_0x575d89['set'](_0x457f22['id'],_0x2e8add);for(let _0x2b1c56=0x0;_0x2b1c56<_0x5df19f['length'];_0x2b1c56++){if('isRemoved'==_0x59b5be&&_0x5df19f[_0x2b1c56]['isAdded']||'isAdded'==_0x59b5be&&_0x5df19f[_0x2b1c56]['isRemoved'])continue;if('text'==_0x5df19f[_0x2b1c56]['type']){_0x5df19f[_0x2b1c56]['distance']=0x0;continue;}const _0x4d2a6d=_0x575d89['get'](_0x5df19f[_0x2b1c56]['pairId']),_0x259ce8=_0x575d89['get'](_0x5df19f[_0x2b1c56]['id']);_0x5df19f[_0x2b1c56]['distance']=_0x4d2a6d-_0x259ce8;}}['_getRevisionsRange'](_0x589247,_0x3d1af7,_0x1b76ec=!0x1){const _0x38aa87=[];let _0x2abf95=this['repository']['getIndex'](_0x589247),_0x12fc0a=this['repository']['getIndex'](_0x3d1af7);for(-0x1==_0x12fc0a&&(_0x12fc0a=this['repository']['_revisions']['length'],_0x1b76ec=!0x1);_0x2abf95<_0x12fc0a;)_0x38aa87['push'](this['repository']['getRevision'](_0x2abf95)),_0x2abf95++;return _0x1b76ec&&_0x38aa87['push'](this['repository']['getRevision'](_0x2abf95)),_0x38aa87;}['_threeWayMerge'](_0x140807,_0x384052,_0x35e0a,_0x4cb8c5){const _0x3e6581=this['editor']['model']['schema'];let _0x12bff8=_0x384052;for(;_0x140807[_0x12bff8]&&_0x140807[_0x12bff8]['isAdded'];)_0x12bff8++;let _0x5290d0=_0x4cb8c5;for(;_0x35e0a[_0x5290d0]&&_0x35e0a[_0x5290d0]['isRemoved'];)_0x5290d0++;_0x5c475b(_0x140807,_0x384052,_0x12bff8),_0x5c475b(_0x35e0a,_0x4cb8c5,_0x5290d0);const _0x29af04=_0x35e0a['slice'](_0x4cb8c5,_0x5290d0)['concat'](_0x140807['slice'](_0x384052,_0x12bff8));return _0x29af04['sort']((_0x3f6fb4,_0x33b4ed)=>_0x3f6fb4['side']!=_0x33b4ed['side']?_0x3f6fb4['side']-_0x33b4ed['side']:_0x3f6fb4['level']!=_0x33b4ed['level']?_0x3f6fb4['level']-_0x33b4ed['level']:_0x3f6fb4['distance']!=_0x33b4ed['distance']?_0x33b4ed['distance']-_0x3f6fb4['distance']:!!_0x3f6fb4['isAdded']!=!!_0x33b4ed['isAdded']?-0x1==_0x3f6fb4['side']||0x0==_0x3f6fb4['side']?_0x3f6fb4['isAdded']?-0x1:0x1:_0x3f6fb4['isAdded']?0x1:-0x1:_0x3f6fb4['index']-_0x33b4ed['index']),{'commonTape':_0x29af04,'iEnd':_0x12bff8,'jEnd':_0x5290d0};function _0x5c475b(_0x462013,_0x5e2bb1,_0x1c6714){let _0x39105e=-0x1,_0x559b76=Number['POSITIVE_INFINITY'],_0x3ef80f=!0x0;for(let _0x44741d=_0x5e2bb1;_0x44741d<_0x1c6714;_0x44741d++)if(_0x3e6581['isInline'](_0x462013[_0x44741d]['item'])||(_0x3ef80f=!0x1),_0x462013[_0x44741d]['item']['startIndex']<_0x5e2bb1&&(_0x39105e=_0x44741d),_0x462013[_0x44741d]['item']['endIndex']>=_0x1c6714){_0x559b76=_0x44741d;break;}_0x3ef80f&&(_0x39105e=_0x1c6714-0x1);for(let _0x5c01ad=_0x5e2bb1;_0x5c01ad<_0x1c6714;_0x5c01ad++)_0x462013[_0x5c01ad]['side']=_0x5c01ad<=_0x39105e?-0x1:_0x5c01ad<_0x559b76?0x0:0x1,_0x462013[_0x5c01ad]['index']=_0x5c01ad;let _0x13703a=0x0;for(let _0x5ea3a0=_0x5e2bb1;_0x5ea3a0<=_0x39105e;_0x5ea3a0++)0x0==_0x462013[_0x5ea3a0]['distance']?_0x462013[_0x5ea3a0]['level']=_0x13703a:(_0x13703a++,_0x462013[_0x5ea3a0]['level']=_0x13703a,_0x13703a++);for(let _0x2d13af=_0x5e2bb1;_0x2d13af<_0x1c6714;_0x2d13af++)0x0==_0x462013[_0x2d13af]['side']&&(_0x462013[_0x2d13af]['level']=_0x13703a);_0x13703a=0x0;for(let _0x375a4c=_0x1c6714-0x1;_0x375a4c>=_0x559b76;_0x375a4c--)0x0==_0x462013[_0x375a4c]['distance']?_0x462013[_0x375a4c]['level']=_0x13703a:(_0x13703a--,_0x462013[_0x375a4c]['level']=_0x13703a,_0x13703a--);}}['_fixObsoleteTags'](_0x53b18a){const _0x474e7b=new Map(),_0x134d6d=this['editor']['model']['schema'];for(let _0x1815ac=0x1;_0x1815ac<_0x53b18a['length'];_0x1815ac++){let _0x5ef201,_0x41349b,_0x3b480e;const _0x21d830=_0x53b18a[_0x1815ac],_0x3dbf87=_0x53b18a[_0x1815ac-0x1];if('text'==_0x21d830['type'])continue;if(_0x21d830['type']!=_0x3dbf87['type'])continue;if(!_0x134d6d['isBlock'](_0x3dbf87['item'])||_0x134d6d['isLimit'](_0x3dbf87['item']))continue;if(!_0x134d6d['isBlock'](_0x21d830['item'])||_0x134d6d['isLimit'](_0x21d830['item']))continue;if((_0x53b18a[_0x1815ac]['isAdded']||_0x53b18a[_0x1815ac]['isAddSuggestion'])&&_0x53b18a[_0x1815ac-0x1]['isRemoved'])_0x5ef201=_0x53b18a[_0x1815ac],_0x41349b=_0x53b18a[_0x1815ac-0x1],_0x3b480e=_0x1815ac-0x1;else{if(!_0x53b18a[_0x1815ac]['isRemoved']||!_0x53b18a[_0x1815ac-0x1]['isAdded']&&!_0x53b18a[_0x1815ac-0x1]['isAddSuggestion'])continue;_0x5ef201=_0x53b18a[_0x1815ac-0x1],_0x41349b=_0x53b18a[_0x1815ac],_0x3b480e=_0x1815ac;}const _0x4b2231=_0x5ef201['level']==_0x41349b['level'],_0x23d3c5=Math['abs'](_0x5ef201['level'])<Math['abs'](_0x41349b['level'])&&0x0==_0x41349b['distance'];(_0x4b2231||_0x23d3c5)&&(_0x474e7b['set'](_0x41349b['id'],_0x5ef201['id']),_0x53b18a['splice'](_0x3b480e,0x1),_0x1815ac--,_0x5ef201['isAdded']=!0x1);}for(let _0x4b1310=0x0;_0x4b1310<_0x53b18a['length'];_0x4b1310++)_0x474e7b['has'](_0x53b18a[_0x4b1310]['pairId'])&&(_0x53b18a[_0x4b1310]['pairId']=_0x474e7b['get'](_0x53b18a[_0x4b1310]['pairId']));}['_removeMissingPairs'](_0x4238d5){const _0x439bb4=new Set(_0x4238d5['map'](_0x98eb46=>_0x98eb46['id']));for(let _0x40b89c=0x0;_0x40b89c<_0x4238d5['length'];_0x40b89c++)_0x439bb4['has'](_0x4238d5[_0x40b89c]['pairId'])||0x0==_0x4238d5[_0x40b89c]['distance']||(_0x4238d5[_0x40b89c]['isIncorrect']=!0x0);return _0x4238d5['filter'](_0x2fadeb=>!_0x2fadeb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5109fc){const _0x4b6ef4=new Set();for(let _0x23aa04=0x0;_0x23aa04<_0x5109fc['length'];_0x23aa04++){if(_0x4b6ef4['has'](_0x5109fc[_0x23aa04]['id'])&&_0x5109fc[_0x23aa04]['isRemoved']&&(_0x5109fc[_0x23aa04]['isIncorrect']=!0x0),_0x5109fc[_0x23aa04]['isIncorrect'])continue;if(0x0==_0x5109fc[_0x23aa04]['distance'])continue;if('elementStart'!=_0x5109fc[_0x23aa04]['type'])continue;if(null==_0x5109fc[_0x23aa04]['pairId'])continue;let _0x3ebf54=_0x23aa04+0x1,_0x2c5bb9=0x0;for(;_0x5109fc[_0x3ebf54]['id']!=_0x5109fc[_0x23aa04]['pairId'];)'elementStart'==_0x5109fc[_0x3ebf54]['type']?_0x2c5bb9++:'elementEnd'==_0x5109fc[_0x3ebf54]['type']&&_0x2c5bb9--,_0x3ebf54++;if(0x0!=_0x2c5bb9){if(_0x5109fc[_0x23aa04]['isRemoved'])_0x5109fc[_0x23aa04]['isIncorrect']=!0x0;else{for(;_0x3ebf54!=_0x23aa04;)_0x5109fc[_0x3ebf54]['isRemoved']&&0x0!=_0x5109fc[_0x3ebf54]['distance']&&(_0x5109fc[_0x3ebf54]['isIncorrect']=!0x0,_0x4b6ef4['add'](_0x5109fc[_0x3ebf54]['pairId'])),_0x3ebf54--;}}}return _0x5109fc['filter'](_0x5eb980=>!_0x5eb980['isIncorrect']);}['_removeUnsupportedChanges'](_0x2c6b63){const _0x110a7d=this['editor']['model']['schema'];for(let _0x40ad9c=0x0;_0x40ad9c<_0x2c6b63['length'];_0x40ad9c++){if(!(_0x2c6b63[_0x40ad9c]['isAdded']||_0x2c6b63[_0x40ad9c]['isAddSuggestion']||_0x2c6b63[_0x40ad9c]['isRemoved']||_0x2c6b63[_0x40ad9c]['isRemoveSuggestion']))continue;if(0x0==_0x2c6b63[_0x40ad9c]['distance'])continue;const _0x5bbe6c=_0x2c6b63[_0x40ad9c]['item'];_0x110a7d['isBlock'](_0x5bbe6c)||_0x110a7d['isLimit'](_0x5bbe6c)||(_0x2c6b63[_0x40ad9c]['isAdded']&&delete _0x2c6b63[_0x40ad9c]['isAdded'],_0x2c6b63[_0x40ad9c]['isAddSuggestion']&&delete _0x2c6b63[_0x40ad9c]['isAddSuggestion'],_0x2c6b63[_0x40ad9c]['isRemoveSuggestion']&&delete _0x2c6b63[_0x40ad9c]['isRemoveSuggestion'],_0x2c6b63[_0x40ad9c]['isRemoved']&&(_0x2c6b63[_0x40ad9c]['isIncorrect']=!0x0));}return _0x2c6b63['filter'](_0x1049f5=>!_0x1049f5['isIncorrect']);}['_makeModelFromTape'](_0x1ed744,_0x1ff123,_0x109323){const _0x382534=new gt(),_0x35b5da=[],_0x20d368=new Map(),_0x3b99fe=this['editor']['model'],_0x138a8f=_0x3b99fe['schema'],_0x62d472=[_0x382534],_0x333773={},_0x2a0766={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2e2e27=null;const _0x11f14f=[0x0];for(let _0x1ab9c4=0x0;_0x1ab9c4<_0x1ed744['length'];_0x1ab9c4++)if('elementStart'===_0x1ed744[_0x1ab9c4]['type']){_0x1ed744[_0x1ab9c4]['previousPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f);const _0x24fca5=new ut(_0x1ed744[_0x1ab9c4]['item']['name'],_0x1ed744[_0x1ab9c4]['item']['getAttributes']());_0x62d472[0x0]['_appendChild'](_0x24fca5),_0x11f14f['push'](0x0),_0x62d472['unshift'](_0x24fca5),_0x1ed744[_0x1ab9c4]['nextPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f);}else'elementEnd'===_0x1ed744[_0x1ab9c4]['type']?(_0x62d472['shift'](),_0x1ed744[_0x1ab9c4]['previousPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f),_0x11f14f['pop'](),_0x11f14f[_0x11f14f['length']-0x1]++,_0x1ed744[_0x1ab9c4]['nextPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f)):(_0x1ed744[_0x1ab9c4]['previousPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f),_0x2e2e27?_0x2e2e27['_data']+=_0x1ed744[_0x1ab9c4]['item']['data']:_0x2e2e27=new mt(_0x1ed744[_0x1ab9c4]['item']['data'],_0x1ed744[_0x1ab9c4]['item']['getAttributes']()),_0x1ed744[_0x1ab9c4+0x1]&&'text'===_0x1ed744[_0x1ab9c4+0x1]['type']&&_0x12a876(_0x2e2e27,_0x1ed744[_0x1ab9c4+0x1]['item'])||(_0x62d472[0x0]['_appendChild'](_0x2e2e27),_0x2e2e27=null),_0x11f14f[_0x11f14f['length']-0x1]+=_0x1ed744[_0x1ab9c4]['item']['offsetSize'],_0x1ed744[_0x1ab9c4]['nextPosition']=_0x3b99fe['createPositionFromPath'](_0x382534,_0x11f14f));for(let _0x368f96=0x0;_0x368f96<_0x1ed744['length'];_0x368f96++){const _0x2521b5=_0x1ed744[_0x368f96]['previousPosition'],_0x4288ee=_0x1ed744[_0x368f96]['nextPosition'];for(const _0x70816a of _0x1ed744[_0x368f96]['markersStart'])_0x20d368['set'](_0x70816a,{'start':_0x2521b5,'end':null});_0x30ff8d('isRemoveSuggestion',_0x368f96,_0x2521b5,_0x4288ee),_0x30ff8d('isAddSuggestion',_0x368f96,_0x2521b5,_0x4288ee),_0x30ff8d('isRemoved',_0x368f96,_0x2521b5,_0x4288ee),_0x30ff8d('isAdded',_0x368f96,_0x2521b5,_0x4288ee);for(const _0x1b94aa of _0x1ed744[_0x368f96]['markersEnd']){const _0x304362=_0x20d368['get'](_0x1b94aa);_0x304362?_0x304362['end']=_0x4288ee:_0x20d368['set'](_0x1b94aa,{'start':_0x4288ee,'end':_0x4288ee});}}for(const [_0x91e465,_0x4b3bc1]of _0x20d368){const _0x39414f=this['editor']['model']['createRange'](_0x4b3bc1['start'],_0x4b3bc1['end']);_0x382534['markers']['set'](_0x91e465,_0x39414f);}return _0x35b5da['sort']((_0x44286d,_0x225aec)=>{const _0x429c2e=_0x382534['markers']['get']('revision:'+_0x44286d['id']),_0x15542f=_0x382534['markers']['get']('revision:'+_0x225aec['id']);return _0x429c2e['start']['isBefore'](_0x15542f['start'])?-0x1:_0x429c2e['start']['isAfter'](_0x15542f['start'])?0x1:_0x429c2e['end']['isBefore'](_0x15542f['end'])?-0x1:_0x429c2e['end']['isAfter'](_0x15542f['end'])?0x1:'add'===_0x44286d['type']?-0x1:0x1;}),{'root':_0x382534,'changes':_0x35b5da};function _0x30ff8d(_0x4a4a7f,_0x21e696,_0x44fa53,_0x326284){const _0x532ea1=!!_0x1ed744[_0x21e696][_0x4a4a7f],_0xe394a1=_0x532ea1?_0x1ed744[_0x21e696][_0x4a4a7f]['userId']:null,_0x1c063c=_0x21e696===_0x1ed744['length']-0x1,_0x1f5a96=_0x2a0766[_0x4a4a7f][0x0],_0x330b4e=_0x138a8f['isObject'](_0x1ed744[_0x21e696]['item']);!_0x333773[_0x4a4a7f]&&_0x532ea1?_0x333773[_0x4a4a7f]={'start':_0x44fa53,'tapeItem':_0x1ed744[_0x21e696],'userId':_0xe394a1,'type':_0x4a4a7f}:_0x333773[_0x4a4a7f]&&!_0x532ea1?(_0x333773[_0x4a4a7f]['end']=_0x44fa53,_0x291614(_0x333773[_0x4a4a7f]),_0x333773[_0x4a4a7f]=null):_0x333773[_0x4a4a7f]&&_0x532ea1&&_0x333773[_0x4a4a7f]['userId']!==_0xe394a1&&(_0x333773[_0x4a4a7f]['end']=_0x44fa53,_0x1f5a96&&_0x1f5a96['userId']===_0x333773[_0x4a4a7f]['userId']||_0x291614(_0x333773[_0x4a4a7f]),_0x333773[_0x4a4a7f]={'start':_0x44fa53,'tapeItem':_0x1ed744[_0x21e696],'userId':_0xe394a1,'type':_0x4a4a7f}),_0x333773[_0x4a4a7f]&&_0x330b4e&&('elementStart'!==_0x1ed744[_0x21e696]['type']||_0x1f5a96&&_0x1f5a96['userId']===_0xe394a1||_0x2a0766[_0x4a4a7f]['unshift']({'userId':_0xe394a1,'object':_0x1ed744[_0x21e696]['item'],'change':_0x333773[_0x4a4a7f]}),'elementEnd'===_0x1ed744[_0x21e696]['type']&&_0x1f5a96&&_0x1f5a96['object']===_0x1ed744[_0x21e696]['item']&&(_0x2a0766[_0x4a4a7f]['shift'](),_0x333773[_0x4a4a7f]=_0x1f5a96['change'])),_0x333773[_0x4a4a7f]&&_0x1c063c&&(_0x333773[_0x4a4a7f]['end']=_0x326284,_0x291614(_0x333773[_0x4a4a7f]),_0x333773[_0x4a4a7f]=null);}function _0x291614({start:_0x2912f0,end:_0x407946,tapeItem:_0x3032a6,userId:_0xf51fe1,type:_0x3be6dc}){const _0x2c0068=_0x3032a6['item'],_0x35c566=_0x3b99fe['schema']['isBlock'](_0x2c0068)&&!_0x3b99fe['schema']['isLimit'](_0x2c0068),_0xec3bdf=_0x2912f0['nodeAfter']==_0x407946['parent']&&_0x407946['isAtStart'];if(_0x35c566&&_0xec3bdf)return;const _0x42c6b6=_0x3b99fe['createRange'](_0x2912f0,_0x407946),_0xd91b33=_0x1ff123['get'](_0xf51fe1),_0x598e4d=new r({'author':_0xd91b33,'type':'isAdded'==_0x3be6dc||'isAddSuggestion'==_0x3be6dc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3be6dc||'isRemoveSuggestion'==_0x3be6dc},'createdAt':new Date(),'rootName':_0x109323});_0x35b5da['push'](_0x598e4d),_0x382534['markers']['set']('revision:'+_0x598e4d['id'],_0x42c6b6);}function _0x12a876(_0x5ab63c,_0x238ff8){const _0x1e22e4=_0x5ab63c['getAttributes'](),_0x2c41a9=_0x238ff8['getAttributes']();for(const _0x41b19c of _0x1e22e4){if(_0x41b19c[0x1]!==_0x238ff8['getAttribute'](_0x41b19c[0x0]))return!0x1;_0x2c41a9['next']();}return _0x2c41a9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x41695f=>{const _0x27bee4=_0x41695f['markerName']['split'](':')[0x1],_0x1e0af6=this['_getChangeFromId'](_0x27bee4);if(!_0x1e0af6)return null;const _0x181a56='add'==_0x1e0af6['type']?'insertion':'deletion',_0x384ee0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x181a56];return _0x1e0af6['data']['isSuggestion']&&_0x384ee0['push']('ck-suggestion-marker-'+_0x181a56+'-new'),this['activeChange']==_0x1e0af6&&_0x384ee0['push']('ck-suggestion-marker--active'),{'classes':_0x384ee0,'attributes':{'data-change-id':_0x27bee4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2021b4=>{_0x2021b4['on']('element:pre',(_0x48a902,_0x29aabb,_0x497273)=>{const _0xcd8a99=_0x29aabb['viewItem']['getChild'](0x0);if(!_0xcd8a99||!_0xcd8a99['is']('element','code'))return;if(!_0x497273['consumable']['consume'](_0xcd8a99,{'attributes':['vid_start','vid_end']}))return;const _0x11fbc9=_0x29aabb['modelRange']['start']['nodeAfter'];_0x497273['writer']['setAttribute']('vid_start',_0xcd8a99['getAttribute']('vid_start'),_0x11fbc9),_0x497273['writer']['setAttribute']('vid_end',_0xcd8a99['getAttribute']('vid_end'),_0x11fbc9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58dd24=>{_0x58dd24['on']('element',(_0x49d6cc,_0x151103,_0x4f67cb)=>{if(!_0x4f67cb['consumable']['consume'](_0x151103['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x151103['modelRange']['isCollapsed'])return;const _0x3df021=_0x151103['modelRange']['start']['nodeAfter'];_0x3df021['hasAttribute']('vid_start')||_0x3df021['hasAttribute']('vid')||(_0x4f67cb['writer']['setAttribute']('vid_start',_0x151103['viewItem']['getAttribute']('vid_start'),_0x3df021),_0x4f67cb['writer']['setAttribute']('vid_end',_0x151103['viewItem']['getAttribute']('vid_end'),_0x3df021));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x438b00=>_0x438b00['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x348440,[,_0xe00a18])=>{['vid_start','vid_end','vid']['includes'](_0xe00a18)&&(_0x348440['return']=!0x0,_0x348440['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b2732=>{_0x5b2732['on']('attribute:vid',(_0x586349,_0x365183,_0x48c267)=>{if('\x20'!=_0x365183['item']['data']||_0x365183['item']['parent']['maxOffset']>0x1)return;if(!_0x48c267['consumable']['consume'](_0x365183['item'],_0x586349['name']))return;const _0x147314=_0x48c267['writer'],_0x489614=_0x48c267['mapper']['toViewRange'](_0x365183['range']);_0x147314['wrap'](_0x489614,_0x147314['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x424205){const _0x5deecf=_0x424205['plugins']['get']('RevisionViewer');return(_0x5a3cd5,_0x4a67f4,_0xe7b63d)=>{const _0x56cb9f=_0x4a67f4['markerName']['split'](':')[0x1],_0xe542c5=_0x5deecf['_getChangeFromId'](_0x56cb9f);if(!_0xe542c5)return null;const _0x4c7c0b='add'==_0xe542c5['type']?'split':'merge';if(!_0xe7b63d['consumable']['test'](_0x4a67f4['markerRange'],_0x5a3cd5['name']))return;const _0x588378=_0x4a67f4['markerRange']['getWalker'](),_0x485d52=_0x4a67f4['markerRange']['start'],_0x4d121e=_0x424205['model']['schema'];let _0x5c86d9=null,_0x5539ef=null,_0x17200a=!0x1,_0x3c5b2b=!0x1;for(const _0xb57b66 of _0x588378){const _0x4a11c2=_0xb57b66['item'];_0x17200a=_0x17200a||_0x4d121e['isContent'](_0x4a11c2);const _0x5128fb=_0xe7b63d['mapper']['toViewElement'](_0x4a11c2);if(_0x5128fb&&_0x5128fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb57b66['type']&&(_0x4d121e['isBlock'](_0x4a11c2)&&!_0x4d121e['isLimit'](_0x4a11c2)&&(_0x4a11c2['nextSibling']||_0x485d52['isAtEnd']?_0x5c86d9&&_0x5c86d9['parent']==_0x4a11c2||(_0x5c86d9=_0x4a11c2,_0x3d990f(_0xb57b66['previousPosition']),_0x3c5b2b=!0x0):_0x5539ef=_0x5539ef||_0xb57b66['previousPosition']));}function _0x3d990f(_0x1c0898){const _0x49c3bf=_0xe7b63d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c7c0b}),_0x20562e=_0xe7b63d['mapper']['toViewPosition'](_0x1c0898);_0xe542c5['data']['isSuggestion']&&_0xe7b63d['writer']['addClass']('ck-suggestion-marker-'+_0x4c7c0b+'-new',_0x49c3bf),_0x5deecf['activeChange']==_0xe542c5&&_0xe7b63d['writer']['addClass']('ck-suggestion-marker--active',_0x49c3bf),_0xe7b63d['writer']['insert'](_0x20562e,_0x49c3bf),_0xe7b63d['mapper']['bindElementToMarker'](_0x49c3bf,_0x4a67f4['markerName']);}_0x17200a||_0x3c5b2b||!_0x5539ef||_0x3d990f(_0x5539ef);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x275d90,_0x140517,_0x4f5c90)=>{const _0x3948df=_0x4f5c90['mapper']['markerNameToElements'](_0x140517['markerName']);if(_0x3948df){for(const _0x4b30ca of _0x3948df)(_0x4b30ca['hasClass']('ck-suggestion-marker-split')||_0x4b30ca['hasClass']('ck-suggestion-marker-merge'))&&(_0x4f5c90['mapper']['unbindElementFromMarkerName'](_0x4b30ca,_0x140517['markerName']),_0x4f5c90['writer']['remove'](_0x4b30ca));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2b6582,_0x4740af,_0x591cd9)=>{const _0x174141=_0x4740af['markerName']['split'](':')[0x1],_0x163c48=this['_getChangeFromId'](_0x174141);if(!_0x163c48)return null;const _0x5b05ab='add'==_0x163c48['type']?'split':'merge';if(_0x591cd9['consumable']['test'](_0x4740af['markerRange'],_0x2b6582['name']))for(const _0x17f6a4 of _0x4740af['markerRange']['getItems']()){if(!_0x17f6a4['is']('element','softBreak'))continue;const _0x6f9cde=_0x591cd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b05ab}),_0x3532c6=_0x591cd9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x17f6a4));_0x163c48['data']['isSuggestion']&&_0x591cd9['writer']['addClass']('ck-suggestion-marker-'+_0x5b05ab+'-new',_0x6f9cde),this['activeChange']==_0x163c48&&_0x591cd9['writer']['addClass']('ck-suggestion-marker--active',_0x6f9cde),_0x591cd9['writer']['insert'](_0x3532c6,_0x6f9cde),_0x591cd9['mapper']['bindElementToMarker'](_0x6f9cde,_0x4740af['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2544c8=>{for(const _0x52221a of this['editor']['model']['document']['getRootNames']()){const _0x327d77=this['editor']['model']['document']['getRoot'](_0x52221a),_0x46de73=this['editor']['editing']['view']['document']['getRoot'](_0x52221a);if(_0x46de73){const _0x5b8431=_0x327d77['getAttribute']('revisionHistoryAttachChange');if(_0x2544c8['removeAttribute']('data-change-id',_0x46de73),_0x2544c8['removeClass']('ck-revision-history-root-add',_0x46de73),_0x2544c8['removeClass']('ck-revision-history-root-remove',_0x46de73),_0x2544c8['removeClass']('ck-revision-history-root--active',_0x46de73),_0x5b8431){const _0x546c84=this['_getChangeFromId'](_0x5b8431);if(!_0x546c84)return null;_0x2544c8['setAttribute']('data-change-id',_0x5b8431,_0x46de73),_0x2544c8['addClass']('ck-revision-history-root-'+_0x546c84['type'],_0x46de73),this['activeChange']==_0x546c84&&_0x2544c8['addClass']('ck-revision-history-root--active',_0x46de73);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x536dd9=>'revision-comment:'+_0x536dd9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4dd68d=>'revision-suggestion:'+_0x4dd68d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x39b305=>({'name':'suggestion:'+_0x39b305,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xa705cd=>{const _0x54db1f=_0xa705cd['markerName']['split'](':')[0x1];return'insertion'!=_0x54db1f&&'deletion'!=_0x54db1f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x54db1f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x201320,_0x4dc574,_0x2cc88f)=>{const _0x4c1e08=_0x2cc88f['mapper']['markerNameToElements'](_0x4dc574['markerName']);if(_0x4c1e08){for(const _0x2c0b48 of _0x4c1e08)_0x2c0b48['is']('uiElement')&&(_0x2cc88f['mapper']['unbindElementFromMarkerName'](_0x2c0b48,_0x4dc574['markerName']),_0x2cc88f['writer']['remove'](_0x2c0b48));}},{'priority':'high'});}['_getChangeFromId'](_0x586523){return this['_changeIdToChange']['get'](_0x586523);}['_getViewForChange'](_0x16b754){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x16b754),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x269051,_0x2667bf,_0x567252,_0xaa17b5)=>{_0xaa17b5&&this['_balloon']['remove'](_0xaa17b5),_0x567252&&(this['_balloon']['add']({'view':_0x567252,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2eb6cd=this['editor']['editing'],_0x3e8729=this['_getChangeFromId'](_0x567252['changeId']);let _0x2b80bb;if(_0x3e8729['data']['isOnRoot']){const _0x3cb2d3=_0x2eb6cd['view']['getDomRoot'](_0x3e8729['rootName']);_0x2b80bb=Array['from'](_0x3cb2d3['getClientRects']());}else{const _0x14415d=this['editor']['model']['markers']['get']('revision:'+_0x567252['changeId']);_0x2b80bb=Array['from'](_0x2eb6cd['mapper']['markerNameToElements'](_0x14415d['name']))['map'](_0x1ba402=>_0x2eb6cd['view']['domConverter']['mapViewToDom'](_0x1ba402))['map'](_0x3c906d=>Array['from'](_0x3c906d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b80bb[0x0];return _0x2b80bb['find'](_0x3359eb=>_0x3359eb['top']-0x3<=this['_activeViewTarget']['y']&&_0x3359eb['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3359eb['left']-0x3<=this['_activeViewTarget']['x']&&_0x3359eb['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b80bb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xad360c,_0x21c40d,_0xe0f81d,_0x31ca65)=>{this['activeView']=_0xe0f81d?this['_getViewForChange'](_0xe0f81d):null,this['editor']['model']['change'](()=>{const _0x57431b=this['editor']['editing'];_0x31ca65&&(_0x31ca65['data']['isOnRoot']?_0x57431b['view']['change'](_0x16ca60=>{_0x16ca60['removeClass']('ck-revision-history-root--active',_0x57431b['view']['document']['getRoot'](_0x31ca65['rootName']));}):_0x57431b['reconvertMarker']('revision:'+_0x31ca65['id'])),_0xe0f81d&&(_0xe0f81d['data']['isOnRoot']?_0x57431b['view']['change'](_0x1c402f=>{_0x1c402f['addClass']('ck-revision-history-root--active',_0x57431b['view']['document']['getRoot'](_0xe0f81d['rootName']));}):_0x57431b['reconvertMarker']('revision:'+_0xe0f81d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xe024c3,_0x79bd19)=>{if(this['activeChange'])return;const _0x1bdd48=this['_findChangeIdFromDomTarget'](_0x79bd19['target']),_0x6f075f=this['_changeIdToChange']['get'](_0x1bdd48);_0x6f075f?(this['_activeViewTarget']={'x':_0x79bd19['domEvent']['x'],'y':_0x79bd19['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6f075f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xb6fa55,_0x445585)=>{const _0x4fecf1=this['_findChangeIdFromDomTarget'](_0x445585['target']),_0x2cc48b=this['_changeIdToChange']['get'](_0x4fecf1);_0x2cc48b?(this['_activeViewTarget']={'x':_0x445585['domEvent']['x'],'y':_0x445585['domEvent']['y']},_0x2cc48b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2cc48b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4f923d){do{const _0x4bfe36=_0x4f923d['getAttribute']('data-change-id');if(_0x4bfe36)return _0x4bfe36;_0x4f923d=_0x4f923d['parent'];}while(_0x4f923d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1dc773=>{for(const _0x4b08e3 of this['editor']['model']['markers'])_0x1dc773['removeMarker'](_0x4b08e3);});}}function X(_0x29fb31,_0xc511c1){return(_0x4717f8,_0x373412,_0x365e17)=>{if(!_0x365e17['consumable']['test'](_0x373412['markerRange'],_0x4717f8['name']))return;const _0x254745=_0x373412['markerRange']['getWalker'](),_0x46c705=_0x373412['markerRange']['start'],_0x431999=_0x29fb31['model']['schema'];let _0x299c67=null,_0x439d50=null,_0x18f53c=!0x1,_0x36ca1f=!0x1;for(const _0x3a0b1c of _0x254745){const _0x1299eb=_0x3a0b1c['item'];_0x18f53c=_0x18f53c||_0x431999['isContent'](_0x1299eb);const _0xad817f=_0x365e17['mapper']['toViewElement'](_0x1299eb);if(_0xad817f&&_0xad817f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a0b1c['type']&&(_0x431999['isBlock'](_0x1299eb)&&!_0x431999['isLimit'](_0x1299eb)&&(_0x1299eb['nextSibling']||_0x46c705['isAtEnd']?_0x299c67&&_0x299c67['parent']==_0x1299eb||(_0x299c67=_0x1299eb,_0x2c139b(_0x3a0b1c['previousPosition']),_0x36ca1f=!0x0):_0x439d50=_0x439d50||_0x3a0b1c['previousPosition']));}function _0x2c139b(_0x5c0b09){const _0x49a736=_0x365e17['mapper']['toViewPosition'](_0x5c0b09),_0x2cb84d=_0x365e17['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xc511c1});_0x365e17['writer']['insert'](_0x49a736,_0x2cb84d),_0x365e17['mapper']['bindElementToMarker'](_0x2cb84d,_0x373412['markerName']);}_0x18f53c||_0x36ca1f||!_0x439d50||_0x2c139b(_0x439d50);};}class wt extends _0x23a987{constructor(_0x18d10e){super(_0x18d10e);const _0x54087d=_0x18d10e['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x54087d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x54087d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc6b303=this['editor'],_0x3cc0d1=_0xc6b303['plugins']['get'](m),_0x197ccd=_0x3cc0d1['isReady']?_0x3cc0d1['diff']['newRevisionId']:null;_0xc6b303['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x197ccd);}['refresh'](){const {isReady:_0x4a7457,isEnabled:_0x97658f,repository:_0x3f5dbc,diff:_0x1e30c2}=this['editor']['plugins']['get'](m),_0xf1a8a3=_0x1e30c2&&_0x3f5dbc['getLaterVisibleRevision'](_0x1e30c2['newRevisionId']);this['isEnabled']=_0x4a7457&&_0x97658f&&Boolean(_0xf1a8a3);}}class pt extends _0x23a987{['_step'];constructor(_0x1f22c3,{direction:_0x1e111a}){super(_0x1f22c3);const _0x1490b3=_0x1f22c3['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1e111a?0x1:-0x1,this['listenTo'](_0x1490b3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1490b3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1490b3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x138964=this['editor'],_0x498369=_0x138964['plugins']['get'](m),{isNavigationMode:_0x3446e7,currentChangeNumber:_0x37cc77}=_0x498369;let _0x49c996;if(_0x498369['activeChange']=_0x3446e7?_0x498369['diff']['changes']['get'](_0x37cc77+this['_step']):_0x498369['diff']['changes']['first'],_0x498369['activeChange']['data']['isOnRoot'])_0x49c996=_0x138964['editing']['view']['getDomRoot'](_0x498369['activeChange']['rootName']);else{const _0x4888fb=_0x138964['model']['markers']['get']('revision:'+_0x498369['activeChange']['id']);_0x49c996=_0xa5efd9(_0x138964['editing'],_0x4888fb);}_0x402df6({'target':_0x49c996,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3882d6,currentChangeNumber:_0x2b678f,numberOfChanges:_0x5cc643,isReady:_0x571b92,isEnabled:_0x3c4d2b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x3c4d2b&&_0x571b92&&_0x5cc643)&&(!_0x3882d6||(0x1===this['_step']?_0x2b678f<_0x5cc643-0x1:_0x2b678f>0x0));}}class _i extends _0x4739c1{constructor(_0x341e54){super(_0x341e54);const _0x2112e9=this['bindTemplate'],_0x3c6a24=new _0x389c57(_0x341e54),_0xc725f5=new _0x389c57(_0x341e54);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',(_0x4b47cb,_0x5511c4)=>_0x4b47cb&&_0x5511c4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3f6fc8,_0x4f7cd3,_0x23d381,_0x471144)=>{if(!_0x3f6fc8)return g(_0x341e54,'Loading...');if(!_0x23d381)return g(_0x341e54,'No\x20changes');const _0x41ae1c=g(_0x341e54,'NUMBER_OF_CHANGES',_0x23d381);return _0x471144?g(_0x341e54,'X_OF_Y_CHANGES',[_0x4f7cd3+0x1,_0x23d381]):_0x41ae1c;}),_0x3c6a24['set']({'label':g(_0x341e54,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x7be787}),_0xc725f5['set']({'label':g(_0x341e54,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4fb9d0}),_0x3c6a24['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xc725f5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3c6a24['on']('execute',()=>this['fire']('execute','backward')),_0xc725f5['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',_0x2112e9['if']('_isStatusLabelVisible','ck-hidden',_0x346749=>!_0x346749)]},'children':[{'text':_0x2112e9['to']('isNavigationMode',_0x5c8716=>_0x5c8716?g(_0x341e54,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x341e54,'Total')+':\x20')}]},{'text':_0x2112e9['to']('_statusText')}]},new _0x54c3f0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3c6a24,_0xc725f5]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x1c4af5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x32efc2=this['editor']['editing']['view'];_0x32efc2['change'](_0x39e8d6=>{for(const _0x89c059 of _0x32efc2['document']['roots'])_0x39e8d6['addClass'](ce,_0x89c059);});}['hide'](){const _0x5544be=this['editor']['editing']['view'];_0x5544be['change'](_0x506d0b=>{for(const _0x5ccb5d of _0x5544be['document']['roots'])_0x506d0b['removeClass'](ce,_0x5ccb5d);});}}class R extends _0x1c4af5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x219804=this['editor'],_0xffd475=_0x219804['plugins']['get'](m),_0x4ce0f8=_0x219804['plugins']['get'](le);_0x219804['ui']['componentFactory']['add']('exitToEditing',_0x287d52=>{const _0x39906e=new _0x389c57(_0x287d52);return _0x39906e['set']({'label':g(_0x287d52,'Back\x20to\x20editing'),'icon':_0x3c535e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39906e,'execute',()=>{_0x219804['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39906e;}),_0x219804['ui']['componentFactory']['add']('restoreRevision',_0x18a867=>{const _0xaa85ce=new _0x389c57(_0x18a867);return _0xaa85ce['set']({'label':g(_0x18a867,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xaa85ce['bind']('isEnabled')['to'](_0x219804['commands']['get']('restoreRevision')),this['listenTo'](_0xaa85ce,'execute',()=>_0x219804['execute']('restoreRevision')),_0xaa85ce;}),_0x219804['ui']['componentFactory']['add']('changesNavigation',_0x3a348f=>{const _0xe1c7f7=new _i(_0x3a348f),_0x22aee3=_0x219804['commands']['get']('showPreviousChange'),_0x141dd2=_0x219804['commands']['get']('showNextChange');return _0xe1c7f7['bind']('isBackwardNavigationEnabled')['to'](_0x22aee3,'isEnabled'),_0xe1c7f7['bind']('isForwardNavigationEnabled')['to'](_0x141dd2,'isEnabled'),_0xe1c7f7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xffd475),this['listenTo'](_0xe1c7f7,'execute',(_0x1f4594,_0x345cc3)=>{_0x219804['execute']('forward'===_0x345cc3?'showNextChange':'showPreviousChange');}),_0xe1c7f7;}),_0x4ce0f8['show'](),_0xffd475['on']('change:isReady',(_0x3d02a0,_0x47eb97,_0xb5eded)=>{_0xb5eded?_0x4ce0f8['hide']():_0x4ce0f8['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x3aab8a,_0xa6633f){super(_0x3aab8a,_0xa6633f);const _0x5513df=this['bindTemplate'];this['set']({'label':g(_0x3aab8a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3aab8a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5513df['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x47ede2=this['fieldView']['element'];this['_tooltipString']=_0x47ede2['scrollWidth']>_0x47ede2['clientWidth']&&_0x47ede2['value']||'';}}class oi extends _0x4739c1{constructor(_0x19f2ba,_0x206b90,_0x2a503a){super(_0x19f2ba);const _0xce7139=new _0x1a4ccc();_0xce7139['set']({'content':_0x4dc289,'viewBox':'0\x200\x2011\x2010'});const _0x1b3bfb=['ck','ck-revision-history-sidebar__revision-author'];_0x2a503a&&_0x1b3bfb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x31ac75=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x19f2ba,_0x2a503a?'Revision\x20creator':'Revision\x20author')},'children':[_0xce7139,_0x206b90['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1b3bfb},'children':_0x31ac75});}}function ni(_0x427da9,_0x36aa50){const _0x593633=_0x427da9['bindTemplate'],_0x15aa3c=_0x427da9['locale'],_0x397d7c=_0x331ab6(_0x15aa3c);_0x397d7c['panelPosition']='sw';const _0x481466=function(_0x561786,_0x1d889e){const _0x1deee5=function(_0x9d3dba,_0xaf749c){const _0x15f911=_0x9d3dba['locale'],_0x5df295={'Compare\x20against\x20selected':g(_0x15f911,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x15f911,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x15f911,'Restore\x20this\x20revision')};return _0xaf749c['map'](_0x141bbe=>{const _0x5a8904=_0x5df295[_0x141bbe['name']];return _0x5a8904&&_0x5a8904!==_0x141bbe['name']&&(_0x141bbe['name']=_0x5a8904),_0x141bbe;});}(_0x561786,_0x1d889e),_0x3a96d7=new _0x8e09a8();for(const _0x474a22 of _0x1deee5){const _0x10accb={'type':'button','model':new to({'label':_0x474a22['name'],'class':_0x474a22['class'],'withText':!0x0,'role':'menuitem','_action':_0x474a22['action']})};_0x10accb['model']['bind']('isEnabled')['to'](_0x561786,'isActionsDropdownOpen',_0x468c50=>'function'!=typeof _0x474a22['isEnabled']||(!_0x468c50||_0x474a22['isEnabled'](_0x561786))),_0x3a96d7['add'](_0x10accb);}return _0x3a96d7;}(_0x427da9,_0x36aa50);return _0x427da9['bind']('isActionsDropdownOpen')['to'](_0x397d7c,'isOpen'),_0x397d7c['buttonView']['set']({'label':g(_0x15aa3c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28d656}),_0x397d7c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x593633['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x593633['to'](_0x4dc421=>_0x4dc421['stopPropagation']())}}),_0x397d7c['on']('execute',_0x20ddaf=>{_0x427da9['isReady']&&'function'==typeof _0x20ddaf['source']['_action']&&_0x20ddaf['source']['_action'](_0x427da9);}),_0x1593df(_0x397d7c,_0x481466,{'role':'menu'}),_0x397d7c['listenTo'](_0x427da9,'change:isActionsDropdownOpen',(_0x41b8e9,_0xa09753,_0x514ac4)=>{if(_0x514ac4)for(const _0x589b80 of _0x397d7c['listView']['items']){const _0x50f043=_0x589b80['children']['first'],_0x2f8e82=_0x36aa50['find'](_0x576384=>_0x576384['action']===_0x50f043['_action'])['isVisible'];_0x589b80['isVisible']=void 0x0===_0x2f8e82||_0x2f8e82(_0x427da9);}}),_0x397d7c;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xeb6f8(_0x4739c1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x547f76,_0x1dd4c0,_0x3628c8,_0x9c85e2){super(_0x547f76);const _0x537541=this['bindTemplate'],_0x14c0f5=function(_0x51c945,_0x61e7e1){const _0x2a8ce9=Array['from'](_0x61e7e1['authors'])['filter'](_0x1e7b56=>_0x1e7b56!=_0x61e7e1['creator']);return _0x61e7e1['creator']&&_0x2a8ce9['unshift'](_0x61e7e1['creator']),_0x2a8ce9['map'](_0x460f0e=>new oi(_0x51c945,_0x460f0e,_0x460f0e==_0x61e7e1['creator']));}(_0x547f76,_0x1dd4c0);this['id']=_0x1dd4c0['id'],this['_revision']=_0x1dd4c0,this['_requireRevisionName']=_0x9c85e2,this['bind']('name','createdAt')['to'](_0x1dd4c0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xb16d45=>{return _0x39147e=_0x547f76['uiLanguage'],(_0x12a1ec=_0xb16d45)['toLocaleDateString'](_0x39147e,{'month':'long','day':'numeric'})+',\x20'+_0x12a1ec['toLocaleTimeString'](_0x39147e,{'hour':'numeric','minute':'numeric'});var _0x39147e,_0x12a1ec;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x547f76,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x48179b=>_0x48179b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xb6c680,_0x4e7111)=>_0xb6c680&&_0x4e7111),this['revisionActionsView']=_0x3628c8&&_0x3628c8['length']?ni(this,_0x3628c8):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x537541['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x537541['if']('isEnabled','ck-disabled',_0x44b269=>!_0x44b269),_0x537541['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x537541['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x537541['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':_0x537541['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':_0x14c0f5}]},this['revisionActionsView']],'on':{'click':_0x537541['to'](_0x401ea0=>{_0x401ea0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3f7306=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3f7306,'change',()=>{this['_requireRevisionName']&&!_0x3f7306['value']||this['fire']('setName',{'id':this['id'],'name':_0x3f7306['value']}),_0x3f7306['value']||(_0x3f7306['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x10af38,_0xa098fa){const _0x3ac31d=_0x509d90['fromJSDate'](_0x10af38)['setLocale'](_0xa098fa),_0x55fe83=_0x509d90['local'](),_0x30cbcf=_0x55fe83['minus']({'days':0x1})['startOf']('day');let _0x272844,_0x33dc43;return _0x3ac31d['hasSame'](_0x55fe83,'day')?(_0x272844=_0x3ac31d['startOf']('day')['toJSDate'](),_0x33dc43=_0x3ac31d['toRelativeCalendar']()):_0x3ac31d['hasSame'](_0x30cbcf,'day')?(_0x272844=_0x30cbcf['toJSDate'](),_0x33dc43=_0x3ac31d['toRelativeCalendar']()):_0x3ac31d['hasSame'](_0x55fe83,'week')?(_0x272844=_0x3ac31d['startOf']('week')['toJSDate'](),_0x33dc43=_0x3ac31d['weekdayLong']||''):_0x3ac31d['hasSame'](_0x55fe83,'year')?(_0x272844=_0x3ac31d['startOf']('month')['toJSDate'](),_0x33dc43=_0x3ac31d['monthLong']||''):(_0x272844=_0x3ac31d['startOf']('year')['toJSDate'](),_0x33dc43=String(_0x3ac31d['year'])),{'startDate':_0x272844,'localizedPeriodName':_0x33dc43};}class mi extends _0x4739c1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x53a743,_0x36ace1,_0x3b44f3,_0x3a6b4c){super(_0x53a743);const _0x2e3b65=vi(_0x36ace1,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x36ace1,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3b44f3,this['_requireRevisionName']=_0x3a6b4c,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':_0x2e3b65}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2d1eec){const _0x1bf48d=new ai(this['locale'],_0x2d1eec,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1bf48d);}['removeRevision'](_0x320a91){const _0x5a959c=this['revisionViews']['find'](_0x2fd60b=>_0x2fd60b['id']===_0x320a91['id']);this['revisionViews']['remove'](_0x5a959c);}}class as extends _0x4739c1{constructor(_0x388859){super(_0x388859);const _0x5039bb=new _0x1a4ccc();_0x5039bb['content']=_0x3732f9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5039bb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x388859,'Revision\x20history')]}]});}}class di extends _0x4739c1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59fe0f,_0x39576c,_0x2ea50f,_0x2fe5bf){super(_0x59fe0f);const _0x1da20e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x39576c,this['_revisionActions']=_0x2ea50f,this['_requireRevisionName']=_0x2fe5bf,this['on']('select',(_0xafc0f6,_0x31d92a)=>{this['fire']('revisionSelected',_0x31d92a);}),this['on']('setName',(_0x54ecad,_0x4abbce)=>{this['fire']('revisionSetName',_0x4abbce);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x59fe0f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1da20e['if']('isEnabled','ck-disabled',_0x5a9aaf=>!_0x5a9aaf)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1d5e0e of this['_revisions'])this['_addRevision'](_0x1d5e0e);this['_revisions']['on']('add',(_0x2e932b,_0xb2e524)=>{this['_addRevision'](_0xb2e524);}),this['_revisions']['on']('remove',(_0x3d6e6d,_0x31bb6b)=>{this['_removeRevision'](_0x31bb6b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3925b4=>_0x3925b4['revisionViews']['map'](_0x3948b3=>_0x3948b3))['flat']();}['selectRevision'](_0x187cc4){for(const _0x504298 of this['revisionViews'])_0x187cc4&&_0x187cc4['id']===_0x504298['id']?_0x504298['select']():_0x504298['deselect']();}['highlightRevisions'](_0x5e8185){for(const _0x3a9a1c of this['revisionViews'])_0x5e8185['some'](({id:_0x4ff154})=>_0x4ff154===_0x3a9a1c['id'])?_0x3a9a1c['highlight']():_0x3a9a1c['unhighlight']();}['_addRevision'](_0x174a2c){const _0x258ac6=vi(_0x174a2c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x209ace=this['timePeriodViews']['get'](0x0);_0x209ace&&_0x209ace['startDate']['getTime']()===_0x258ac6['getTime']()||(_0x209ace=new mi(this['locale'],_0x258ac6,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x209ace)),_0x209ace['addRevision'](_0x174a2c);}['_removeRevision'](_0x30a447){const _0x1aa7f3=vi(_0x30a447['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1aa7f3)['removeRevision'](_0x30a447);}['_getTimePeriodViewByStartDate'](_0x19033f){return this['timePeriodViews']['find'](_0x58ca42=>_0x58ca42['startDate']['getTime']()===_0x19033f['getTime']());}}class d extends _0x1c4af5{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2d8a7a,uid as _0x239983,Collection as _0x502d00,logWarning as _0x3a6697,FocusTracker as _0x55366b,KeystrokeHandler as _0x1a417e,scrollViewportToShowTarget as _0x213878,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x5450f3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f7c55,set as _0x477423,unset as _0xf16d48,isEqual as _0x452c48}from'es-toolkit/compat';import{Plugin as _0x41ef01,PendingActions as _0x24089,Command as _0x2957ed,ElementApiMixin as _0x2da239,Editor as _0x79ef38}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x15b4ca,getMarkerDomElement as _0x36fc93,ConfirmMixin as _0x171702,sanitizeEditorConfig as _0x499279}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2664e4,ViewAttributeElement as _0x26460e,ViewEmptyElement as _0x198a7f,ViewRawElement as _0x220adb,ViewUIElement as _0x25091d,ViewDocumentFragment as _0x4d6f59,ViewText as _0x1570c2,ViewElement as _0x3452e0,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3b4640,IconChevronUp as _0x4bd1aa,IconChevronDown as _0x92c67f,IconUndo as _0x3e5e78,IconUser as _0x44882e,IconThreeVerticalDots as _0x5ea6f1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xae5262,injectCssTransitionDisabler as ts,submitHandler as _0x30574,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3117cd,ListView as _0xf01633,ListItemView as te,ButtonView as _0x40acca,MenuBarMenuView as _0x12d9b6,MenuBarMenuListView as _0x2a3ad0,MenuBarMenuListItemView as _0x230c75,MenuBarMenuListItemButtonView as _0x4ca8e4,ContextualBalloon as _0x17a3bd,ToolbarSeparatorView as _0x50c1d1,IconView as _0x573ee6,addListToDropdown as _0x151e5a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43e165}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x2d8a7a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xd6839f){super(),this['id']=_0xd6839f['id']||_0x239983(),this['creator']=_0xd6839f['creator']||null,this['authors']=_0xd6839f['authors']||[],this['diffData']=_0xd6839f['diffData']||null,this['toVersion']=_0xd6839f['toVersion']||0x0,this['fromVersion']=_0xd6839f['fromVersion']||0x0,this['set']('name',_0xd6839f['name']||''),this['set']('createdAt',_0xd6839f['createdAt']||new Date()),this['set']('attributes',_0xd6839f['attributes']||{});}['setName'](_0x5e6788){this['_update']({'name':_0x5e6788});}['setAttribute'](_0x18fd84,_0x55eb55){const _0xd51100=_0x3f7c55(this['attributes']);_0x477423(_0xd51100,_0x18fd84,_0x55eb55),this['_update']({'attributes':_0xd51100});}['removeAttribute'](_0x5dadac){const _0xa9d34b=_0x3f7c55(this['attributes']);_0xf16d48(_0xa9d34b,_0x5dadac),this['_update']({'attributes':_0xa9d34b});}['_update'](_0x313bb3,_0x5a99d0=!0x1){let _0x1b3b25=!0x1;const _0x3eb1b9={'id':this['id']},_0xc1cda2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3bed58 of _0xc1cda2){const _0x3ca17e=_0x313bb3[_0x3bed58];void 0x0!==_0x3ca17e&&_0x3ca17e!==this[_0x3bed58]&&(this[_0x3bed58]=_0x3ca17e,_0x3eb1b9[_0x3bed58]=_0x3ca17e,_0x1b3b25=!0x0);}_0x1b3b25&&(_0x3eb1b9['authors']&&(_0x3eb1b9['authorsIds']=_0x3eb1b9['authors']['map'](_0x285787=>_0x285787['id']),delete _0x3eb1b9['authors']),this['fire']('_update',_0x3eb1b9,_0x5a99d0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xb7263d=>_0xb7263d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x41ef01{['_revisions'];static get['requires'](){return[_0x15b4ca];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1f0f9c){super(_0x1f0f9c),this['_revisions']=new _0x502d00();}['afterInit'](){!async function(_0x406afe){const _0x24567e=_0x8d620c([0x30,0x46,0x4e,0x54,0x6a,0x45,0x7a,0x66,0x4c,0x37,0x79,0x68,0x6e,0x6c,0x64,0x4d,0x77,0x63,0x55,0x36,0x50,0x49,0x51,0x34,0x4b,0x4a,0x31,0x70,0x53,0x32,0x73,0x6d,0x56,0x67,0x52,0x57,0x78,0x71,0x75,0x5a,0x59,0x62,0x38,0x39,0x6b,0x65,0x76,0x43,0x44,0x61,0x6f,0x42,0x41,0x4f,0x47,0x48,0x35,0x72,0x74,0x58,0x69,0x33]),_0x203f9a=0xeb829,_0x177391=0x2f3ad040,_0x3942b2=0x2f3db988^_0x177391,_0x5d8c82=window[_0x8d620c([0x44,0x61,0x74,0x65])][_0x8d620c([0x6e,0x6f,0x77])](),_0x54ab39=_0x406afe[_0x8d620c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a5a46=new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48372d=>{_0x54ab39[_0x8d620c([0x6f,0x6e,0x63,0x65])](_0x8d620c([0x72,0x65,0x61,0x64,0x79]),_0x48372d);}),_0x1c7d1a={[_0x8d620c([0x6b,0x74,0x79])]:_0x8d620c([0x45,0x43]),[_0x8d620c([0x75,0x73,0x65])]:_0x8d620c([0x73,0x69,0x67]),[_0x8d620c([0x63,0x72,0x76])]:_0x8d620c([0x50,0x2d,0x32,0x35,0x36]),[_0x8d620c([0x78])]:_0x8d620c([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]),[_0x8d620c([0x79])]:_0x8d620c([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]),[_0x8d620c([0x61,0x6c,0x67])]:_0x8d620c([0x45,0x53,0x32,0x35,0x36])},_0x2b94d8=_0x54ab39[_0x8d620c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8d620c([0x67,0x65,0x74])](_0x8d620c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cdcae(){let _0x4f2e1a,_0xed9dd4=null,_0x4dfb69=null;try{if(_0x2b94d8==_0x8d620c([0x47,0x50,0x4c]))return _0x8d620c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f2e1a=_0x2e4fd4(),!_0x4f2e1a)return _0x8d620c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f2e1a[_0x8d620c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dfb69=_0x592f7a(_0x4f2e1a[_0x8d620c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f2e1a[_0x8d620c([0x6a,0x74,0x69])])),await _0x265b3b()?_0x146d04()?_0x30c53f()?_0x8d620c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b682d()?(_0x4f2e1a[_0x8d620c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8d620c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xed9dd4=_0x5de03a(_0x8d620c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f2e1a[_0x8d620c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8d620c([0x74,0x72,0x69,0x61,0x6c])&&(_0xed9dd4=_0x5de03a(_0x8d620c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c4985()):_0x8d620c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8d620c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8d620c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8d620c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30c53f(){const _0x1688cb=[_0x8d620c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8d620c([0x74,0x72,0x69,0x61,0x6c])][_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2e1a[_0x8d620c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d8c82/0x3e8:0xe10*_0x3942b2;return _0x4f2e1a[_0x8d620c([0x65,0x78,0x70])]<_0x1688cb;}function _0x146d04(){const _0x44f750=_0x4f2e1a[_0x8d620c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x44f750)return!0x1;if(_0x44f750[_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d620c([0x2a])))return!0x0;if(_0x44f750[_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d620c([0x52,0x48])))return!0x0;if(_0x44f750[_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d620c([0x52,0x52,0x48]))){if(_0x3b3d5b())return!0x0;if(_0x2b37c9()||_0x4e7d45())return!0x0;}return!0x1;}function _0x5b682d(){const _0x403d78=_0x4f2e1a[_0x8d620c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x403d78||0x0==_0x403d78[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47c9cd}=new URL(window[_0x8d620c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x403d78[_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47c9cd))return!0x0;const _0x5613d1=_0x47c9cd[_0x8d620c([0x73,0x70,0x6c,0x69,0x74])](_0x8d620c([0x2e]));return _0x403d78[_0x8d620c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425d4f=>_0x425d4f[_0x8d620c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d620c([0x2a])))[_0x8d620c([0x6d,0x61,0x70])](_0x5224c6=>_0x5224c6[_0x8d620c([0x73,0x70,0x6c,0x69,0x74])](_0x8d620c([0x2e])))[_0x8d620c([0x73,0x6f,0x6d,0x65])](_0xe9047c=>_0x5613d1[_0x8d620c([0x65,0x76,0x65,0x72,0x79])]((_0x389af0,_0x12aa2c)=>_0xe9047c[_0x12aa2c]===_0x389af0||_0xe9047c[_0x12aa2c]===_0x8d620c([0x2a])));}function _0x5c4985(){return _0xed9dd4&&_0x4dfb69?new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56d395,_0x50ab8e)=>{_0xed9dd4[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x56d395,_0x50ab8e),_0x4dfb69[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x26354e=>{_0x26354e!=_0x8d620c([0x56,0x61,0x6c,0x69,0x64])&&_0x56d395(_0x26354e);},_0x50ab8e);}):_0xed9dd4||_0x4dfb69||_0x8d620c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x592f7a(_0x258c5a,_0x2974bb){return new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82b33=>{if(_0x36071e())return _0x82b33(_0x8d620c([0x56,0x61,0x6c,0x69,0x64]));_0x24b4ef(),_0x54ab39[_0x8d620c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8d620c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18afd5=!0x1;const _0x580514=_0x239983();function _0x504ba6(_0x1d7359){return!!_0x1d7359&&(typeof _0x1d7359===_0x8d620c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d7359===_0x8d620c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d7359[_0x8d620c([0x74,0x68,0x65,0x6e])]===_0x8d620c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d7359[_0x8d620c([0x63,0x61,0x74,0x63,0x68])]===_0x8d620c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27fc48(_0x1fc1c5){_0x22b319(_0x1fc1c5)[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x16e6a1=>{if(!_0x16e6a1||_0x16e6a1[_0x8d620c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8d620c([0x6f,0x6b]))return _0x8d620c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf5b8cb(_0x313da7(_0x580514+_0x2974bb))!=_0x16e6a1[_0x8d620c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8d620c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8d620c([0x56,0x61,0x6c,0x69,0x64]);})[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x2dccbc=>(_0x17c619(),_0x2dccbc),()=>{const _0x130f90=_0x8c0d8a();return null==_0x130f90?(_0x17c619(),_0x8d620c([0x56,0x61,0x6c,0x69,0x64])):_0x8d620c(_0x5d8c82-_0x130f90>(0xb365440^_0x177391)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x82b33)[_0x8d620c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x82b33(_0x8d620c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x460f95=0x2f0c3ec0^_0x177391;function _0x17c619(){const _0x4cbbf6=_0x8d620c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf5b8cb(_0x313da7(_0x258c5a)),_0x17e277=_0x194b1d(_0xf5b8cb(window[_0x8d620c([0x4d,0x61,0x74,0x68])][_0x8d620c([0x63,0x65,0x69,0x6c])](_0x5d8c82/_0x460f95)));window[_0x8d620c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8d620c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cbbf6,_0x17e277);}function _0x8c0d8a(){const _0x54d62a=_0x8d620c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf5b8cb(_0x313da7(_0x258c5a)),_0x5670bc=window[_0x8d620c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8d620c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d62a);return _0x5670bc?window[_0x8d620c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194b1d(_0x5670bc),0x10)*_0x460f95:null;}function _0x22b319(_0x3b81c1){return new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e11cd,_0x13271f)=>{_0x3b81c1[_0x8d620c([0x74,0x68,0x65,0x6e])](_0x1e11cd,_0x13271f),window[_0x8d620c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13271f,0x2f3b0480^_0x177391);});}}_0x54ab39[_0x8d620c([0x6f,0x6e])](_0x8d620c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27f9cd,_0x47ac5d)=>{if(_0x47ac5d[0x0]!=_0x258c5a)return _0x82b33(_0x8d620c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47ac5d[0x1]={..._0x47ac5d[0x1],[_0x8d620c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x580514};},{[_0x8d620c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8d620c([0x68,0x69,0x67,0x68])}),_0x54ab39[_0x8d620c([0x6f,0x6e])](_0x8d620c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e6da4=>{_0x504ba6(_0x5e6da4[_0x8d620c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18afd5=!0x0,_0x27fc48(_0x5e6da4[_0x8d620c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8d620c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8d620c([0x6c,0x6f,0x77])}),_0x2a5a46[_0x8d620c([0x74,0x68,0x65,0x6e])](()=>{_0x18afd5||_0x82b33(_0x8d620c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36071e(){return _0x54ab39[_0x8d620c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8d620c([0x76,0x69,0x65,0x77])][_0x8d620c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8d620c([0x61,0x75,0x74,0x6f]);}function _0x24b4ef(){_0x54ab39[_0x8d620c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8d620c([0x76,0x69,0x65,0x77])][_0x8d620c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8d620c([0x61,0x75,0x74,0x6f]);}}function _0x5de03a(_0x1fcae6){const _0x10a576=[new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5265ec=>setTimeout(_0x5265ec,0x2f33ee8c^_0x177391)),_0x2a5a46[_0x8d620c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c252=>{const _0x52127b=0x2f3ad047^_0x177391,_0x21ad93=_0x406afe[_0x8d620c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34ead5(){_0x21ad93[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x52127b&&_0x22c252();}_0x34ead5(),_0x21ad93[_0x8d620c([0x6f,0x6e])](_0x8d620c([0x61,0x64,0x64]),_0x34ead5);})),new window[(_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38fce4=>{function _0x72f74(){for(const _0x4ff8d6 in window)if(window[_0x8d620c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x8d620c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4ff8d6))&&window[_0x4ff8d6]==_0x203f9a)return _0x38fce4();_0x54ab39[_0x8d620c([0x73,0x74,0x61,0x74,0x65])]!=_0x8d620c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x8d620c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x72f74,0x2f3ac3c8^_0x177391);}_0x7ffadc(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x72f74();})];return window[_0x8d620c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8d620c([0x72,0x61,0x63,0x65])](_0x10a576)[_0x8d620c([0x74,0x68,0x65,0x6e])](()=>_0x1fcae6);}async function _0x275205(){if(await _0x2a5a46,_0x7ffadc(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x268ba2=_0x406afe[_0x8d620c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4b4214=_0x406afe[_0x8d620c([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])](_0x268ba2[_0x8d620c([0x69,0x64])]),_0x15e3e7=_0x3bd686(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x15e3e7[_0x8d620c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x268ba2['id'],_0x4b4214?_0x4b4214['id']:null,!0x0),_0x15e3e7[_0x8d620c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8d620c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15e3e7[_0x8d620c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15e3e7[_0x8d620c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x581744,void(_0x15e3e7[_0x8d620c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x581744);}if(_0x7ffadc(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f290c=_0x3bd686(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f290c[_0x8d620c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8d620c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f290c[_0x8d620c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f290c[_0x8d620c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x581744,_0x1f290c[_0x8d620c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x581744;}_0x54ab39[_0x8d620c([0x6d,0x6f,0x64,0x65,0x6c])][_0x8d620c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x581744,_0x54ab39[_0x8d620c([0x6d,0x6f,0x64,0x65,0x6c])][_0x8d620c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x581744,_0x54ab39[_0x8d620c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8d620c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b3d5b(){return _0x7ffadc(_0x8d620c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3bd686(_0x8d620c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x8d620c([0x73,0x74,0x61,0x74,0x65])]==_0x8d620c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b37c9(){return _0x7ffadc(_0x8d620c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4e7d45(){return _0x7ffadc(_0x8d620c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14565f(_0x3223bf){const _0x53c79f=_0x3927b4();_0x54ab39[_0x53c79f]=_0x8d620c([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])+_0x3223bf,_0x3223bf[_0x8d620c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x8d620c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3927b4()]=_0x203f9a),_0x3223bf!=_0x8d620c([0x56,0x61,0x6c,0x69,0x64])&&_0x275205();}function _0x3927b4(){const _0x40dea6=window[_0x8d620c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8d620c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8d620c([0x6e,0x6f,0x77])]())[_0x8d620c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8d620c([0x2e]),'');let _0x1a42d3=_0x8d620c([0x46]);for(let _0xeb7b43=0x0;_0xeb7b43<_0x40dea6[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb7b43+=0x2){let _0x4f0fdc=window[_0x8d620c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40dea6[_0x8d620c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb7b43,_0xeb7b43+0x2));_0x4f0fdc>=_0x24567e[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f0fdc-=_0x24567e[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a42d3+=_0x24567e[_0x4f0fdc];}return _0x1a42d3;}function _0x2e4fd4(){const _0x310138=_0x2b94d8[_0x8d620c([0x73,0x70,0x6c,0x69,0x74])](_0x8d620c([0x2e]));if(0x3!=_0x310138[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bde01(_0x310138[0x1]);function _0x4bde01(_0x465795){const _0x3bc335=_0x183565(_0x465795);return _0x3bc335&&_0xbf962b()?_0x3bc335:null;function _0xbf962b(){const _0x4ee0df=_0x3bc335[_0x8d620c([0x6a,0x74,0x69])],_0x29e84e=window[_0x8d620c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ee0df[_0x8d620c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ee0df[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbe4291={..._0x3bc335,[_0x8d620c([0x6a,0x74,0x69])]:_0x4ee0df[_0x8d620c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ee0df[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbe4291[_0x8d620c([0x76,0x63])],_0x313da7(_0xbe4291)==_0x29e84e;}}}async function _0x265b3b(){let _0x177c89=!0x0;try{const _0x593b68=_0x2b94d8[_0x8d620c([0x73,0x70,0x6c,0x69,0x74])](_0x8d620c([0x2e])),[_0x5e772b,_0x1c3841,_0x3a0123]=_0x593b68;return _0x19c72d(_0x5e772b),await _0x3e22be(_0x5e772b,_0x1c3841,_0x3a0123),_0x177c89;}catch{return!0x1;}function _0x19c72d(_0x26650a){const _0x20320a=_0x183565(_0x26650a);_0x20320a&&_0x20320a[_0x8d620c([0x61,0x6c,0x67])]==_0x8d620c([0x45,0x53,0x32,0x35,0x36])||(_0x177c89=!0x1);}async function _0x3e22be(_0x517411,_0x23fc5e,_0x3b070f){const _0x103c5e=window[_0x8d620c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8d620c([0x66,0x72,0x6f,0x6d])](_0x20e4fb(_0x3b070f),_0x2ba024=>_0x2ba024[_0x8d620c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3339e3=new window[(_0x8d620c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8d620c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x517411+_0x8d620c([0x2e])+_0x23fc5e),_0x2a2b59=window[_0x8d620c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8d620c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a2b59)return;const _0x224462=await _0x2a2b59[_0x8d620c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8d620c([0x6a,0x77,0x6b]),_0x1c7d1a,{[_0x8d620c([0x6e,0x61,0x6d,0x65])]:_0x8d620c([0x45,0x43,0x44,0x53,0x41]),[_0x8d620c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8d620c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8d620c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a2b59[_0x8d620c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8d620c([0x6e,0x61,0x6d,0x65])]:_0x8d620c([0x45,0x43,0x44,0x53,0x41]),[_0x8d620c([0x68,0x61,0x73,0x68])]:{[_0x8d620c([0x6e,0x61,0x6d,0x65])]:_0x8d620c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x224462,_0x103c5e,_0x3339e3)||(_0x177c89=!0x1);}}function _0x183565(_0x5093ee){return _0x5093ee[_0x8d620c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8d620c([0x65,0x79]))?JSON[_0x8d620c([0x70,0x61,0x72,0x73,0x65])](_0x20e4fb(_0x5093ee)):null;}function _0x20e4fb(_0x422768){return window[_0x8d620c([0x61,0x74,0x6f,0x62])](_0x422768[_0x8d620c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8d620c([0x2b]))[_0x8d620c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8d620c([0x2f])));}function _0x313da7(_0x2c0762){let _0x13742d=0x1505;function _0x369c25(_0x2c2161){for(let _0x276f3c=0x0;_0x276f3c<_0x2c2161[_0x8d620c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x276f3c++){const _0x252461=_0x2c2161[_0x8d620c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x276f3c);_0x13742d=(_0x13742d<<0x5)+_0x13742d+_0x252461,_0x13742d&=_0x13742d;}}function _0x479c7c(_0x556073){Array[_0x8d620c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556073)?_0x556073[_0x8d620c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x479c7c):_0x556073&&typeof _0x556073==_0x8d620c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8d620c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556073)[_0x8d620c([0x73,0x6f,0x72,0x74])]()[_0x8d620c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e77dc,_0x4ae71b])=>{_0x369c25(_0x3e77dc),_0x479c7c(_0x4ae71b);}):_0x369c25(window[_0x8d620c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556073));}return _0x479c7c(_0x2c0762),_0x13742d>>>0x0;}function _0xf5b8cb(_0x208cab){return _0x208cab[_0x8d620c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8d620c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8d620c([0x30]));}function _0x194b1d(_0x4b3056){return _0x4b3056[_0x8d620c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8d620c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8d620c([0x6a,0x6f,0x69,0x6e])]('');}function _0x7ffadc(_0x562cde){return _0x54ab39[_0x8d620c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8d620c([0x68,0x61,0x73])](_0x562cde);}function _0x3bd686(_0xc8afa4){return _0x54ab39[_0x8d620c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8d620c([0x67,0x65,0x74])](_0xc8afa4);}function _0x581744(){}function _0x8d620c(_0xfc85a){return _0xfc85a['map'](_0x36dd03=>String['fromCharCode'](_0x36dd03))['join']('');}_0x14565f(await _0x4cdcae());}(this);}['createRevision'](_0x27f37c){const _0x3a9d28=this['editor']['plugins']['get']('Users');return new h({'id':_0x27f37c['id'],'name':_0x27f37c['name'],'creator':_0x27f37c['creatorId']?_0x3a9d28['getUser'](_0x27f37c['creatorId']):null,'diffData':_0x27f37c['diffData']||_0x27f37c['data'],'authors':_0x27f37c['authorsIds']['map'](_0x367df0=>_0x3a9d28['getUser'](_0x367df0)),'createdAt':new Date(_0x27f37c['createdAt']),'attributes':_0x27f37c['attributes'],'fromVersion':_0x27f37c['fromVersion'],'toVersion':_0x27f37c['toVersion']});}['addRevision'](_0x599dd4,_0x37d7a5=0x0){this['_revisions']['add'](_0x599dd4,_0x37d7a5);}['getRevision'](_0x34b03e){return this['_revisions']['get'](_0x34b03e);}['getRevisions'](_0x3569fd={'toJSON':!0x1}){const _0x35b1de=Array['from'](this['_revisions']);return _0x35b1de['reverse'](),_0x3569fd['toJSON']?_0x35b1de['map'](_0x46ebb6=>_0x46ebb6['toJSON']()):_0x35b1de;}['getIndex'](_0x3a987a){return this['_revisions']['getIndex'](_0x3a987a);}['getEarlierVisibleRevision'](_0x23eec4){const [,_0x53bf63]=this['getRevisionsIterator'](_0x23eec4,{'direction':'earlier'});return _0x53bf63;}['getLaterVisibleRevision'](_0x2a664e){const [,_0x58f7fb]=this['getRevisionsIterator'](_0x2a664e,{'direction':'later'});return _0x58f7fb;}['getRevisionsInDiff'](_0x3fafc4){const _0x19e8b9=[];for(const _0x28f42b of this['getRevisionsIterator'](_0x3fafc4['newRevisionId']))if(_0x19e8b9['push'](_0x28f42b),_0x28f42b['id']===_0x3fafc4['oldRevisionId'])break;return _0x19e8b9;}*['getRevisionsIterator'](_0x51c890,{direction:_0x513e75='earlier',filter:_0x115ef6=()=>!0x0}={}){const _0x1380e4='earlier'===_0x513e75?0x1:-0x1;let _0xeecc2a=this['_revisions']['get'](_0x51c890),_0x1a47de=this['getIndex'](_0xeecc2a);for(yield _0xeecc2a;_0xeecc2a;){if(_0x1a47de+=_0x1380e4,_0xeecc2a=this['getRevision'](_0x1a47de),!_0xeecc2a)return;_0x115ef6(_0xeecc2a)&&(yield _0xeecc2a);}}}class V extends _0x41ef01{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2664e4,'c'],[_0x26460e,'a'],[_0x198a7f,'e'],[_0x220adb,'r'],[_0x25091d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2664e4],['a',_0x26460e],['e',_0x198a7f],['r',_0x220adb],['u',_0x25091d]]);async['loadRevisionData'](_0x56575e,_0xb925b2){if(_0x56575e['diffData']||!_0xb925b2)return;const _0x39b014=this['editor']['config']['get']('collaboration.channelId'),_0x13a661=await _0xb925b2['getRevision']({'channelId':_0x39b014,'revisionId':_0x56575e['id']});_0x56575e['diffData']=_0x13a661['diffData'];}['getRevisionDocumentData'](_0x5a101d){const _0x19d411={};for(const _0x42ad79 in _0x5a101d['diffData']){if(_0x5a101d['diffData'][_0x42ad79]['attachChange']&&!_0x5a101d['diffData'][_0x42ad79]['attachChange']['isAttached'])continue;const _0x4db689=this['_removeRevisionMarkers'](JSON['parse'](_0x5a101d['diffData'][_0x42ad79]['insertions'])),_0x581928=this['editor']['editing']['view']['document'],_0x2fd94e=new _0x4d6f59(_0x581928,_0x4db689['map'](_0x519043=>this['_getViewFromDiffObj'](_0x519043,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x19d411[_0x42ad79]=this['editor']['data']['processor']['toData'](_0x2fd94e),this['editor']['data']['processor']['useFillerType']('default');}return _0x19d411;}['getRevisionRootsAttributes'](_0x4385da){const _0x170b15={};for(const _0x11346c in _0x4385da['diffData'])_0x4385da['diffData'][_0x11346c]['attachChange']&&!_0x4385da['diffData'][_0x11346c]['attachChange']['isAttached']||(_0x170b15[_0x11346c]=_0x4385da['diffData'][_0x11346c]['attributesAfter']||{});return _0x170b15;}['_getTypeCharForViewElement'](_0x511210){return this['_viewClassToTypeChar']['get'](_0x511210['constructor']);}['_getViewFromDiffObj'](_0x44887c,_0x3e9278){const _0x2826f8=this['editor']['editing']['view']['document'];if('string'==typeof _0x44887c)return new _0x1570c2(_0x2826f8,_0x44887c);{let _0x308f19,_0x16229b;_0x16229b='u'==_0x44887c['type']||'r'==_0x44887c['type']?[]:_0x44887c['children']['map'](_0xa35a74=>this['_getViewFromDiffObj'](_0xa35a74,_0x3e9278));const _0x29353d=this['_typeCharToViewClass']['get'](_0x44887c['type'])||_0x3452e0,_0x154862=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x308f19=new _0x29353d(_0x2826f8,_0x44887c['name'],_0x44887c['attributes'],_0x16229b),'u'==_0x44887c['type']&&_0x44887c['children'][0x0]){const _0x1b4c4f=_0x44887c['children'][0x0];if(_0x308f19['render']=function(_0x1a8af3){const _0x788445=_0x1a8af3['createElement']('div');return _0x788445['innerHTML']=_0x1b4c4f,_0x788445['childNodes'][0x0];},_0x3e9278){const _0x5c639e=new _0x4d6f59(_0x2826f8);_0x5c639e['_appendChild'](_0x308f19);const _0x25f2e5=Array['from'](_0x154862['viewChildrenToDom'](_0x5c639e,{'bind':!0x1})),_0x2ae67b=_0x154862['domDocument']['createElement']('div');_0x2ae67b['append'](..._0x25f2e5),_0x308f19=Array['from'](_0x154862['domChildrenToView'](_0x2ae67b))[0x0];}}else{if('r'==_0x44887c['type']&&_0x44887c['children'][0x0]){const _0x4e32b0=_0x44887c['children'][0x0];if(_0x308f19['render']=function(_0x2d34c0){_0x2d34c0['innerHTML']=_0x4e32b0;},_0x3e9278){const _0x3d6bf7=new _0x4d6f59(_0x2826f8);_0x3d6bf7['_appendChild'](_0x308f19);const _0x330fcf=Array['from'](_0x154862['viewChildrenToDom'](_0x3d6bf7,{'bind':!0x1})),_0x494db1=_0x154862['domDocument']['createElement']('div');_0x494db1['append'](..._0x330fcf);const _0x469084=Array['from'](_0x154862['domChildrenToView'](_0x494db1));_0x469084['length']>0x1?_0x308f19['_appendChild'](_0x469084):_0x308f19=_0x469084[0x0];}}}if(_0x44887c['customProperties']){for(const [_0x3d1cfd,_0x5e1ac3]of _0x44887c['customProperties'])_0x308f19['_setCustomProperty'](_0x3d1cfd,_0x5e1ac3);}const _0x3422fc=void 0x0===_0x44887c['fillerOffset']?null:_0x44887c['fillerOffset'];return null!==_0x3422fc&&(_0x308f19['getFillerOffset']=()=>_0x3422fc),_0x308f19;}}['_makeModelFromViewString'](_0x161254){const _0x27c75a=JSON['parse'](_0x161254),_0x177dd8=this['editor']['editing']['view']['document'],_0x4d396c=new _0x4d6f59(_0x177dd8,_0x27c75a['map'](_0x3d6a7b=>this['_getViewFromDiffObj'](_0x3d6a7b,!0x0)));return this['editor']['data']['toModel'](_0x4d396c);}['_removeRevisionMarkers'](_0x2c7011){return(_0x2c7011=_0x2c7011['filter'](_0x1432f1=>!_0x1432f1['name']||'revision-start'!==_0x1432f1['name']&&'revision-end'!==_0x1432f1['name']))['forEach'](_0x5efb08=>{'string'!=typeof _0x5efb08&&(_0x5efb08['children']=this['_removeRevisionMarkers'](_0x5efb08['children']),_0x5efb08['attributes']=_0x5efb08['attributes']['filter'](_0x4aaec5=>!_0x4aaec5[0x0]['startsWith']('data-revision-')));}),_0x2c7011;}}function g(_0x596391,_0x6ec81d,_0x2898eb){const t=_0x596391['t'];switch(_0x6ec81d){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'},_0x2898eb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2898eb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x41ef01{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x15b4ca,I,V,_0x24089];}constructor(_0x368b44){super(_0x368b44),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x17a0af=_0x239983();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x17a0af},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x53fe6e=this['repository']['getRevision'](0x0),_0x5568f1=_0x53fe6e&&null===_0x53fe6e['creator']?_0x53fe6e:null;if(this['_continueCurrentRevision']=!!_0x5568f1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x19878e=this['_source']['getCurrentRevisionId'](),_0x27203c=this['repository']['getRevision'](_0x19878e);if(_0x27203c)this['_startingVersion']=_0x27203c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x724f5c=this['_source']['history']['_operations']['find'](_0x3e0f7b=>!_0x3e0f7b['_isInit']),_0x255832=_0x724f5c?_0x724f5c['baseVersion']:this['_source']['history']['version'];_0x53fe6e?(_0x53fe6e['toVersion']<_0x255832&&_0x53fe6e['_update']({'toVersion':_0x255832}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5568f1['id'],this['_startingVersion']=_0x5568f1['fromVersion']):(this['_startingVersion']=_0x53fe6e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x255832,this['_continueCurrentRevision']=!0x1);}}else _0x5568f1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5568f1['toVersion'],this['editor']['model']['document']['history']['version']),_0x5568f1['fromVersion']===_0x5568f1['toVersion']?(0x0!==_0x5568f1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5568f1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5568f1['id'],this['_startingVersion']=_0x5568f1['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',_0x4415d4=>!_0x4415d4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e9625=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24c464;for(const _0x312769 in _0x5e9625){const _0x390cad=_0x312769,_0x51c587=_0x5e9625[_0x390cad];if('revisionHistoryLicenseKeyValid'==_0x51c587||'revisionHistoryLicenseKeyInvalid'==_0x51c587||'revisionHistoryLicenseKeyExpired'==_0x51c587||'revisionHistoryLicenseKeyDomainLimit'==_0x51c587||'revisionHistoryLicenseKeyNotAllowed'==_0x51c587||'revisionHistoryLicenseKeyEvaluationLimit'==_0x51c587||'revisionHistoryLicenseKeyTrialLimit'==_0x51c587||'revisionHistoryLicenseKeyUsageLimit'==_0x51c587){delete _0x5e9625[_0x390cad],_0x24c464=_0x51c587,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x24c464&&_0x5e9625['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x24c464&&_0x5e9625['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x24c464&&_0x5e9625['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x24c464&&_0x5e9625['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x24c464&&_0x5e9625['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x24c464&&_0x5e9625['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x24c464&&_0x5e9625['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5e4a0f=this['repository']['getRevision'](0x0),_0x557be6=await this['getRevisionDocumentData'](_0x5e4a0f),_0x3439f9=await this['getRevisionRootsAttributes'](_0x5e4a0f);this['_replaceEditorDataWithRevisionData'](_0x557be6,_0x3439f9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xa3de69){this['_source']=_0xa3de69;}async['update'](){const _0x2633ae=await this['_source']['getLatestVersion']();if(_0x2633ae>this['currentRevision']['toVersion']){await this['_loadState']();const _0x27c320=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2633ae});_0x27c320['authors']=_0x27c320['authorsIds']['map'](_0x154f2b=>this['editor']['plugins']['get']('Users')['getUser'](_0x154f2b)),this['currentRevision']['_update'](_0x27c320);}}async['saveRevision'](_0x594e13={},_0x4f6392=null){const _0x3b93b0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4f6392>this['currentRevision']['toVersion']&&(_0x4f6392=null),null===_0x4f6392&&(_0x4f6392=await this['_source']['getLatestVersion']());const _0x100d3d=this['_getFromVersion'](_0x4f6392),_0x37804b=this['buildRevisionData']({'from':_0x100d3d,'to':_0x4f6392});if(this['currentRevision']['toVersion']<_0x4f6392){const _0x1bebb8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4f6392,'to':_0x4f6392});_0x1bebb8['authors']=[],_0x1bebb8['authorsIds']=[],_0x1bebb8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1bebb8,!0x0),delete _0x1bebb8['authors'],_0x3b93b0['push'](_0x1bebb8);}_0x594e13['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x594e13['name']=_0x594e13['name']||null,_0x594e13['id']=_0x594e13['id']||_0x239983(),_0x594e13={..._0x594e13,..._0x37804b};const _0x1fd6e0=this['addRevisionData'](_0x594e13);_0x3b93b0['push'](_0x594e13);const _0x3ed69e=this['repository']['getIndex'](_0x1fd6e0);if(0x0!==_0x3ed69e){const _0x35cee2=this['repository']['getRevision'](_0x3ed69e-0x1);if(_0x35cee2['fromVersion']!==_0x4f6392){const _0xf450ae=this['_revisionDataBuilder']['getData'](_0x4f6392,_0x35cee2['toVersion']),_0x13bcd1={'id':_0x35cee2['id'],'diffData':_0xf450ae['diffData'],'authorsIds':_0xf450ae['authorsIds'],'authors':_0xf450ae['authorsIds']['map'](_0x32483f=>this['editor']['plugins']['get']('Users')['getUser'](_0x32483f)),'fromVersion':_0x4f6392};_0x35cee2===this['currentRevision']&&(_0x13bcd1['createdAt']=new Date(_0x594e13['createdAt']['getTime']()+0xa)),_0x35cee2['_update'](_0x13bcd1,!0x0),delete _0x13bcd1['authors'],_0x3b93b0['push'](_0x13bcd1);}}if(this['adapter']){for(const _0x221902 of _0x3b93b0)this['_bufferUpdate'](_0x221902['id'],_0x221902,!0x0);this['sendBufferedUpdates']();}return _0x1fd6e0;}['addRevisionData'](_0x3a897e){const _0x28671d=this['repository']['createRevision'](_0x3a897e);return this['adapter']&&_0x28671d['on']('_update',(_0x1c656b,_0x5bbf6b,_0x5372a2)=>{_0x5372a2||(this['_bufferUpdate'](_0x5bbf6b['id'],_0x5bbf6b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x28671d,this['_findInsertionIndex'](_0x28671d)),_0x28671d;}async['getRevisionDocumentData'](_0x3a2e3f){return await this['_utils']['loadRevisionData'](_0x3a2e3f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3a2e3f);}async['getRevisionRootsAttributes'](_0x2c4115){return await this['_utils']['loadRevisionData'](_0x2c4115,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c4115);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb38134=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5d0ebb=0x0;_0x5d0ebb<_0xb38134['length'];_0x5d0ebb++){const _0x2c7f99=_0xb38134[_0x5d0ebb];let _0x1ed300=!0x1;for(const _0x6b0969 of Object['keys'](_0x2c7f99))void 0x0===_0x2c7f99[_0x6b0969]?delete _0x2c7f99[_0x6b0969]:'id'!==_0x6b0969&&(_0x1ed300=!0x0);_0x1ed300||(_0xb38134[_0x5d0ebb]=null);}if(_0xb38134=_0xb38134['filter'](_0x11bb15=>null!==_0x11bb15),!_0xb38134['length'])return;for(let _0x154214=0x0;_0x154214<_0xb38134['length'];_0x154214++){const _0x117a8a=_0xb38134[_0x154214];void 0x0!==_0x117a8a['fromVersion']&&void 0x0===_0x117a8a['toVersion']&&(_0x117a8a['toVersion']=this['repository']['getRevision'](_0x117a8a['id'])['toVersion']),void 0x0!==_0x117a8a['toVersion']&&void 0x0===_0x117a8a['fromVersion']&&(_0x117a8a['fromVersion']=this['repository']['getRevision'](_0x117a8a['id'])['fromVersion']);}const _0x5f1ab4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb38134,_0x5f1ab4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x539540=>{if(_0x539540){for(const _0x4e087c of _0x539540)this['setRevisionData']({'id':_0x4e087c['id'],'createdAt':_0x4e087c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5cff11=null,from:_0x3089c1=null,to:_0x1ef34c=null}){_0x3089c1=null!==_0x3089c1?_0x3089c1:_0x5cff11['fromVersion'],_0x1ef34c=null!==_0x1ef34c?_0x1ef34c:_0x5cff11['toVersion'];const _0x2cff8f=this['_revisionDataBuilder']['getData'](_0x3089c1,_0x1ef34c),_0xb4ba51={'diffData':_0x2cff8f['diffData'],'authorsIds':_0x2cff8f['authorsIds'],'fromVersion':_0x3089c1,'toVersion':_0x1ef34c};if(!_0x5cff11||_0x1ef34c!==_0x5cff11['toVersion']){const _0x450e3a=_0x1ef34c-0x1,_0x242e92=this['_source']['history']['getOperation'](_0x450e3a);_0xb4ba51['createdAt']=_0x242e92&&_0x242e92['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3089c1===this['_loadedStateData']['fromVersion']){for(const _0x269a9a of this['_loadedStateData']['authors'])_0xb4ba51['authorsIds']['includes'](_0x269a9a['id'])||_0xb4ba51['authorsIds']['push'](_0x269a9a['id']);}return _0xb4ba51;}['_bufferUpdate'](_0x29d30c,_0x184d78,_0x272e7f){if(this['_bufferedUpdates']['has'](_0x29d30c)){const _0x34996a=this['_bufferedUpdates']['get'](_0x29d30c);_0x184d78=_0x272e7f?{..._0x34996a,..._0x184d78}:{..._0x184d78,..._0x34996a};}this['_bufferedUpdates']['set'](_0x29d30c,_0x184d78);}['setRevisionData'](_0x197cd5){const _0x820823=this['repository']['getRevision'](_0x197cd5['id']);if(_0x197cd5['createdAt']&&(_0x197cd5['createdAt']=new Date(_0x197cd5['createdAt'])),_0x197cd5['authorsIds']){const _0xc858ee=this['editor']['plugins']['get']('Users');_0x197cd5['authors']=_0x197cd5['authorsIds']['map'](_0x423eca=>_0xc858ee['getUser'](_0x423eca));}_0x820823['_update'](_0x197cd5,!0x0);}['_createInitialRevision'](_0x1940d2){const _0xaad425=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xaad425)this['_initialRevisionId']=_0xaad425['id'];else{const _0xa981e2=!this['editor']['model']['document']['roots']['find'](_0x289224=>this['editor']['model']['hasContent'](_0x289224)),_0x452657=this['editor']['plugins']['get']('Users')['me']['id'],_0xf6572e=g(this['editor']['locale'],_0xa981e2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1940d2,'to':_0x1940d2,'id':this['_initialRevisionId'],'name':_0xf6572e,'creatorId':_0x452657});}}['_createCurrentRevision'](_0x41949f){const _0x4f9953=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4f9953),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x41949f,'to':_0x41949f,'id':_0x4f9953,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x31ad44,_0x43eb46){let _0x51276b=this['editor']['config']['get']('initialData'),_0x51bcf3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51276b){_0x51276b={};for(const _0xd0f35 of this['editor']['model']['document']['getRootNames']())_0x51276b[_0xd0f35]='';}if('string'==typeof _0x51276b&&(_0x51276b={'main':_0x51276b}),void 0x0===_0x51bcf3){_0x51bcf3={};for(const _0x13a560 of this['editor']['model']['document']['getRootNames']())_0x51bcf3[_0x13a560]={};}let _0x2c2ff1=!0x1;const _0x5e4bfc=Object['keys'](_0x51276b),_0x3ca9c2=Object['keys'](_0x31ad44);for(const _0x17dfeb of _0x5e4bfc){if(_0x51276b[_0x17dfeb]!==_0x31ad44[_0x17dfeb]&&''!==_0x51276b[_0x17dfeb]['trim']()){_0x2c2ff1=!0x0;break;}if(!_0x452c48(_0x51bcf3[_0x17dfeb],_0x43eb46[_0x17dfeb])&&Object['keys'](_0x51bcf3[_0x17dfeb])['length']>0x0){_0x2c2ff1=!0x0;break;}}_0x2c2ff1||(_0x2c2ff1=_0x3ca9c2['some'](_0x5bec75=>!this['editor']['model']['document']['getRoot'](_0x5bec75))),_0x2c2ff1&&_0x3a6697('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51276b,'editorRootsAttributes':_0x51bcf3,'revisionData':_0x31ad44,'revisionRootsAttributes':_0x43eb46}),this['editor']['config']['set']('initialData',_0x31ad44),this['editor']['config']['set']('rootsAttributes',_0x43eb46);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5bed98=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5bed98['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5747af){const _0x167ed2=this['repository']['getRevisions']();_0x167ed2['reverse']();let _0x1e3aab=0x0;for(;_0x1e3aab<_0x167ed2['length'];){const _0x2c3dd6=_0x167ed2[_0x1e3aab];if(_0x2c3dd6===this['currentRevision']){_0x1e3aab++;continue;}if(_0x2c3dd6['id']===this['_initialRevisionId'])break;const _0x2999f2=_0x5747af['toVersion']-_0x2c3dd6['toVersion']||_0x5747af['fromVersion']-_0x2c3dd6['fromVersion'];if(_0x2999f2>0x0)break;if(_0x2999f2<0x0)_0x1e3aab++;else{if(!_0x5747af['creator']&&_0x2c3dd6['creator'])break;if(_0x2c3dd6['creator']||!_0x5747af['creator']){if(_0x5747af['createdAt']>_0x2c3dd6['createdAt'])break;_0x1e3aab++;}else _0x1e3aab++;}}return _0x1e3aab;}['_getFromVersion'](_0x4649c6){const _0x4ad60d=this['repository']['getRevisions']();_0x4ad60d['reverse'](),_0x4ad60d['shift']();const _0x450cae=_0x4ad60d['find'](_0x1749f0=>_0x1749f0['toVersion']<=_0x4649c6)['toVersion'];return _0x450cae<this['_startingVersion']?this['_startingVersion']:_0x450cae;}['_makeRevision']({name:_0x49cffe,from:_0x3d3207,to:_0x519d1f,creatorId:_0x28a65a,id:_0x3c9be8}){const _0x196dad=this['buildRevisionData']({'from':_0x3d3207,'to':_0x519d1f});_0x196dad['name']=_0x49cffe,_0x196dad['creatorId']=_0x28a65a,_0x196dad['id']=_0x3c9be8;const _0x39a9ec=this['addRevisionData'](_0x196dad);return this['adapter']&&this['_bufferUpdate'](_0x196dad['id'],_0x196dad,!0x0),_0x39a9ec;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x13d121){this['editor']=_0x13d121,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'](_0x1f119c){this['source']=_0x1f119c;const _0x4030b5=new Map(),_0x4d17c8=new Map(),_0x25ca2=this['editor']['model']['document']['roots']['map'](_0x2724e9=>_0x2724e9['rootName']);for(const _0x535d32 of _0x25ca2){const _0x256caf=this['editor']['model']['document']['getRoot'](_0x535d32),_0x363d59=N(_0x256caf);_0x4030b5['set'](_0x535d32,_0x363d59),_0x4d17c8['set'](_0x535d32,Object['fromEntries'](_0x256caf['getAttributes']()));}const _0x30f387=Array['from'](this['editor']['model']['markers'])['map'](_0xc11e36=>[_0xc11e36['name'],_0xc11e36['getRange']()]),_0x1d239c=this['source']['version'];this['_saveMetaData'](_0x1d239c,_0x4030b5,_0x30f387,_0x4d17c8),this['_startingRevisionId']=this['_revisionId'];const _0x2e4ace=new Map(),_0x23685f=new Map();for(const _0x20e9e9 of _0x25ca2){const _0x1a44c7=P(_0x20e9e9);_0x2e4ace['set'](_0x20e9e9,_0x1a44c7),_0x23685f['set'](_0x20e9e9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2e4ace,[],_0x23685f);}['getData'](_0x3ae3cc,_0x2d178b){if(this['_lastFrom']===_0x3ae3cc&&this['_lastTo']<=_0x2d178b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2d178b,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ae3cc)){const _0x50b0fa=this['_getPreviousFrom'](_0x3ae3cc);this['_calculateMetaData'](_0x50b0fa,_0x3ae3cc,!0x1);}this['_calculateMetaData'](_0x3ae3cc,_0x2d178b,!0x0);}return this['_lastFrom']=_0x3ae3cc,this['_lastTo']=_0x2d178b,this['_getState']();}['loadState'](_0xf7a8f1){const _0x63b52f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xf7a8f1['fromVersion'],this['_lastTo']=_0xf7a8f1['toVersion'];for(const _0x425fdb in _0xf7a8f1['diffData']){const _0xefb9ea=_0xf7a8f1['diffData'][_0x425fdb]['attachChange'],_0x11a7e7=_0x3f7c55(_0xf7a8f1['diffData'][_0x425fdb]['attributesBefore'])||{},_0x2e471c=_0x63b52f['_makeModelFromViewString'](_0xf7a8f1['diffData'][_0x425fdb]['deletions']);_0x2e471c['rootName']=_0x425fdb,_0x2e471c['_isAttached']=!_0xefb9ea||!_0xefb9ea['isAttached'],_0x2e471c['isAttached']=()=>_0x2e471c['_isAttached'],this['_baseRoots']['set'](_0x425fdb,_0x2e471c),this['_baseRootsAttributes']['set'](_0x425fdb,_0x11a7e7),_0xefb9ea&&this['_touchedRoots']['set'](_0x425fdb,_0xefb9ea);const _0x324cb7=this['_makeIdsRoot'](_0x2e471c);this['_baseIdsRoots']['set'](_0x425fdb,_0x324cb7);for(const [_0x2597d4,_0x68164c]of _0x2e471c['markers']){if(!_0x2597d4['startsWith']('revision:'))continue;const _0x250bdb=_0x2597d4['split'](':')[0x2];for(const _0x4815b3 of _0x68164c['getWalker']({'singleCharacters':!0x0})){const _0x3de6a7=this['_getVidAttributeName'](_0x4815b3),_0x417493='elementEnd'==_0x4815b3['type']?_0x4815b3['previousPosition']['path']['slice'](0x0,-0x1):_0x4815b3['previousPosition']['path'],_0x93744e=_0x324cb7['getNodeByPath'](_0x417493)['getAttribute'](_0x3de6a7);this['_touched']['set'](_0x93744e,{'userId':_0x250bdb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x29e7b5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x330873=>!this['_touched']['has'](_0x330873));let _0x23d94c=0x0;const _0xbdd1dc=new Map();for(const _0x3a404a in _0xf7a8f1['diffData']){const _0x2e9048=_0xf7a8f1['diffData'][_0x3a404a]['attachChange'],_0x5061ee=_0x3f7c55(_0xf7a8f1['diffData'][_0x3a404a]['attributesAfter'])||{},_0x31199c=_0x63b52f['_makeModelFromViewString'](_0xf7a8f1['diffData'][_0x3a404a]['insertions']);_0x31199c['rootName']=_0x3a404a,_0x31199c['_isAttached']=!_0x2e9048||_0x2e9048['isAttached'],_0x31199c['isAttached']=()=>_0x31199c['_isAttached'],this['_diffRoots']['set'](_0x3a404a,_0x31199c),this['_diffRootsAttributes']['set'](_0x3a404a,_0x5061ee);const _0x59ccde=this['_makeIdsRoot'](_0x31199c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3a404a,_0x59ccde),_0xbdd1dc['set'](_0x3a404a,_0x31199c['isAttached']()?_0x5061ee:{});for(const [_0x5c6fc7,_0x220fb8]of _0x31199c['markers']){if(!_0x5c6fc7['startsWith']('revision:'))continue;const _0x54d56e=_0x5c6fc7['split'](':')[0x2];for(const _0x18c2bd of _0x220fb8['getWalker']({'singleCharacters':!0x0})){const _0x4a92d4=this['_getVidAttributeName'](_0x18c2bd),_0x527cc5=this['_revisionId']++,_0x13eef0='elementEnd'==_0x18c2bd['type']?_0x18c2bd['previousPosition']['path']['slice'](0x0,-0x1):_0x18c2bd['previousPosition']['path'];_0x59ccde['getNodeByPath'](_0x13eef0)['_setAttribute'](_0x4a92d4,_0x527cc5),this['_touched']['set'](_0x527cc5,{'userId':_0x54d56e});}}for(const _0x3cc232 of this['editor']['model']['createRangeIn'](_0x31199c)['getWalker']({'singleCharacters':!0x0})){const _0x26dfe4=this['_getVidAttributeName'](_0x3cc232),_0x221723='elementEnd'==_0x3cc232['type']?_0x3cc232['previousPosition']['path']['slice'](0x0,-0x1):_0x3cc232['previousPosition']['path'],_0x54763a=_0x59ccde['getNodeByPath'](_0x221723);_0x54763a['getAttribute'](_0x26dfe4)>0x0||_0x54763a['_setAttribute'](_0x26dfe4,_0x29e7b5[_0x23d94c++]);}for(const [_0x111bf2,_0x19e00e]of _0x31199c['markers'])_0x111bf2['startsWith']('revision:')||this['_markers']['set'](_0x111bf2,_0x19e00e);}const _0x2a3e22=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2a3e22),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2a3e22,0x1));const _0x40d5d7=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40d5d7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40d5d7,0x1));const _0x348cf0=Array['from'](this['_diffRoots'])['map'](([_0x27c2ef,_0x3affd8])=>[_0x27c2ef,N(_0x3affd8)]);this['_saveMetaData'](this['_lastTo'],_0x348cf0,this['_markers'],_0xbdd1dc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1f9aa6,_0x369e9b,_0x223043,_0x4f9804){const _0x37ab9f=new Map(_0x369e9b),_0x5cbf14=new Map(_0x3f7c55(_0x4f9804)),_0x42fc4a=new Map();for(const [_0x159bed,_0x13c9c3]of _0x223043)_0x42fc4a['set'](_0x159bed,{'start':_0x13c9c3['start']['clone'](),'end':_0x13c9c3['end']['clone'](),'rootName':_0x13c9c3['root']['rootName']});this['_savedMetaData']['set'](_0x1f9aa6,{'roots':_0x37ab9f,'markers':_0x42fc4a,'rootsAttributes':_0x5cbf14});}['_removeMetaData'](_0x11d525){this['_savedMetaData']['delete'](_0x11d525);}['_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'](_0x2c39fa,_0x1099a8=null){let _0x3f1456=null;_0x2c39fa['is']('documentFragment')||(_0x3f1456=new ut(_0x2c39fa['name'],{'vid_start':null===_0x1099a8?this['_revisionId']++:_0x1099a8++}));const _0x3a9507=[];for(const _0x1d2373 of _0x2c39fa['getChildren']())if(_0x1d2373['is']('element')){_0x3a9507['push'](this['_makeIdsRoot'](_0x1d2373,_0x1099a8));const _0xa22195=_0x3a9507[_0x3a9507['length']-0x1];null!==_0x1099a8&&(_0x1099a8=_0xa22195['is']('element','$text')?_0xa22195['getAttribute']('vid')+0x1:_0xa22195['getAttribute']('vid_end')+0x1);}else{for(let _0x2c424e=0x0;_0x2c424e<_0x1d2373['offsetSize'];_0x2c424e++)_0x3a9507['push'](new ut('$text',{'vid':null===_0x1099a8?this['_revisionId']++:_0x1099a8++}));}if(_0x2c39fa['is']('documentFragment')){const _0x233afe=P(_0x2c39fa['rootName']);return _0x233afe['_insertChild'](0x0,_0x3a9507),_0x233afe;}return _0x3f1456['_setAttribute']('vid_end',null===_0x1099a8?this['_revisionId']++:_0x1099a8++),_0x3f1456['_insertChild'](0x0,_0x3a9507),_0x3f1456;}['_calculateMetaData'](_0x5e8f1e,_0x5929de,_0x206bd4){this['_reset']();const {roots:_0x1b6552,markers:_0x4eddac,rootsAttributes:_0x501a59}=this['_savedMetaData']['get'](_0x5e8f1e);this['_baseRoots']=new Map(_0x1b6552),this['_baseRootsAttributes']=new Map(_0x3f7c55(_0x501a59));for(const [_0x29d743,_0x3106f5]of this['_baseRoots'])if('$graveyard'!==_0x29d743&&(this['_diffRoots']['set'](_0x29d743,N(_0x3106f5)),this['_diffRootsAttributes']=new Map(_0x3f7c55(_0x501a59)),_0x206bd4)){const _0x2a9ee3=this['_revisionId'];this['_idsRoots']['set'](_0x29d743,this['_makeIdsRoot'](_0x3106f5)),this['_baseIdsRoots']['set'](_0x29d743,this['_makeIdsRoot'](_0x3106f5,_0x2a9ee3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x206bd4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2f9fb7,_0x495473]of _0x4eddac){const _0x3373a6=this['_baseRoots']['get'](_0x495473['rootName']),_0x5a7769=this['_diffRoots']['get'](_0x495473['rootName']),_0x1ad24e=new ft(this['_fixPosition'](_0x495473['start'],_0x3373a6),this['_fixPosition'](_0x495473['end'],_0x3373a6)),_0x28c6e2=this['_fixRange'](_0x1ad24e,_0x5a7769);_0x3373a6['markers']['set'](_0x2f9fb7,_0x1ad24e),this['_markers']['set'](_0x2f9fb7,_0x28c6e2);}this['_applyOperations'](_0x5e8f1e,_0x5929de,_0x206bd4);}['_applyOperations'](_0x470970,_0x4b3f67,_0x1e831b){for(const _0x50a298 of this['source']['getOperations'](_0x470970,_0x4b3f67))this['_handleOperation'](_0x50a298,_0x1e831b);for(const _0x500348 of this['_diffRoots']['values']())_0x500348['markers']['clear']();for(const [_0x255306,_0x136579]of this['_markers']){this['_diffRoots']['get'](_0x136579['root']['rootName'])['markers']['set'](_0x255306,_0x136579['clone']());}const _0x19f902=new Map(),_0x519970=new Map();for(const [_0x26cda3,_0x30cdfb]of this['_diffRoots'])_0x19f902['set'](_0x26cda3,N(_0x30cdfb)),_0x519970['set'](_0x26cda3,this['_diffRootsAttributes']['get'](_0x26cda3));this['_saveMetaData'](_0x4b3f67,_0x19f902,this['_markers'],_0x519970);}['_getPreviousFrom'](_0x30f98c){const _0x11c4c7=Array['from'](this['_savedMetaData']['keys']());_0x11c4c7['sort']((_0x310f0f,_0x288ca3)=>_0x310f0f-_0x288ca3),_0x11c4c7['reverse']();for(const _0x760c6d of _0x11c4c7)if(_0x760c6d<_0x30f98c)return _0x760c6d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x462a94,_0x309c1c){const _0x14a5ef=Array['from'](_0x309c1c['markers'])['map'](([_0x51a830,_0x3ecf8c])=>[_0x51a830,this['_fixRange'](_0x3ecf8c,_0x462a94)]);_0x462a94['markers']=new Map(_0x14a5ef);}['_transformMarkers'](_0x58c573){for(const _0x412526 of this['_markers']['values']()){const _0x4a1407=_0x412526['getTransformedByOperation'](_0x58c573),_0x3eee0c=ft['_createFromRanges'](_0x4a1407);_0x412526['start']=_0x3eee0c['start'],_0x412526['end']=_0x3eee0c['end'];}}['_handleOperation'](_0x181ed7,_0x1537de){if('addRoot'!=_0x181ed7['type']&&'detachRoot'!=_0x181ed7['type']){if('insert'==_0x181ed7['type']){const _0x457400=_0x181ed7['position']['root']['rootName'];this['_diffRoots']['has'](_0x457400)||(this['_diffRoots']['set'](_0x457400,P(_0x457400,!0x0)),this['_diffRootsAttributes']['set'](_0x457400,{}),_0x1537de&&this['_idsRoots']['set'](_0x457400,P(_0x457400,!0x0)));}else{if('addRootAttribute'==_0x181ed7['type']||'removeRootAttribute'==_0x181ed7['type']||'changeRootAttribute'==_0x181ed7['type'])return void this['_handleRootAttributeOperation'](_0x181ed7);'marker'==_0x181ed7['type']&&this['_handleMarkerOperation'](_0x181ed7);}if('marker'!==_0x181ed7['type']){const _0x11d480=this['_cloneOperation'](_0x181ed7,this['_diffRoots']);_0x11d480['_execute'](),this['_transformMarkers'](_0x11d480);}if(_0x1537de)switch(_0x181ed7['type']){case'insert':this['_handleInsertOperation'](_0x181ed7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x181ed7);break;case'merge':this['_handleMergeOperation'](_0x181ed7);break;case'split':this['_handleSplitOperation'](_0x181ed7);}}else this['_handleRootOperation'](_0x181ed7,_0x1537de);}['_cloneOperation'](_0xc82c0f,_0x95dc8f){const _0x494036=_0xc82c0f['clone']();return _0x494036['_authorId']=_0xc82c0f['_authorId'],this['_fixOperation'](_0x494036,_0x95dc8f),_0x494036;}['_getBaseVids'](_0x3ad28c){return _0x3ad28c['map'](_0x9e971f=>{const _0x4eec29=this['_getVidAttributeName'](_0x9e971f);return Number(_0x9e971f['item']['getAttribute'](_0x4eec29));});}['_generateTape'](_0x2306bc,_0x5292da){if(_0x2306bc['is']('element','$text'))_0x5292da['push']({'item':_0x2306bc,'type':'text'});else{_0x2306bc['is']('element')&&_0x5292da['push']({'item':_0x2306bc,'type':'elementStart'});for(const _0x3f727d of _0x2306bc['getChildren']())this['_generateTape'](_0x3f727d,_0x5292da);_0x2306bc['is']('element')&&_0x5292da['push']({'item':_0x2306bc,'type':'elementEnd'});}return _0x5292da;}['_getState'](){const _0x46fba6=new Map(this['_touched']),_0x265c9a=new Map(_0x46fba6),_0x43acc1=new Map(),_0x508284={'insertions':{},'deletions':{}},_0x3b1d96={'insertions':{},'deletions':{}},_0x41107d=new Map(),_0x2ea944=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2ea944['delete']('$graveyard');for(const _0x84e807 of _0x2ea944){const _0x227105=this['_diffRoots']['get'](_0x84e807)||P(_0x84e807,!0x1),_0x541d54=this['_baseRoots']['get'](_0x84e807)||P(_0x84e807,!0x1);_0x227105['isAttached']()||_0x541d54['isAttached']()?(_0x508284['insertions'][_0x84e807]=N(_0x227105),_0x508284['deletions'][_0x84e807]=N(_0x541d54),this['_copyMarkers'](_0x508284['deletions'][_0x84e807],_0x541d54),this['_copyMarkers'](_0x508284['insertions'][_0x84e807],_0x227105),_0x3b1d96['insertions'][_0x84e807]=this['_generateTape'](this['_idsRoots']['get'](_0x84e807),[]),_0x3b1d96['deletions'][_0x84e807]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x84e807)||P(_0x84e807,!0x1),[])):_0x2ea944['delete'](_0x84e807);}for(const _0x30c507 of _0x2ea944){const _0x2571ba=_0x3b1d96['insertions'][_0x30c507];for(const _0x118968 of _0x2571ba){const _0x352d96=this['_getVidAttributeName'](_0x118968),_0x280c52=_0x118968['item']['getAttribute'](_0x352d96);_0x265c9a['delete'](_0x280c52),_0x280c52>=this['_startingRevisionId']&&_0x43acc1['set'](_0x280c52,_0x46fba6['get'](_0x280c52));}}for(const _0x5c6ac0 of _0x2ea944){const _0x4d2c9d=_0x3b1d96['insertions'][_0x5c6ac0],_0x2234d7=this['_getBaseVids'](_0x3b1d96['deletions'][_0x5c6ac0]);let _0x5d6330=0x0;for(const _0x1db9c0 of _0x4d2c9d){const _0x3dfa9e=this['_getVidAttributeName'](_0x1db9c0),_0x11eeaa=_0x1db9c0['item']['getAttribute'](_0x3dfa9e);if(!_0x43acc1['has'](_0x11eeaa)&&!_0x41107d['has'](_0x11eeaa)){if(_0x265c9a['has'](_0x11eeaa))_0x5d6330++;else{if(_0x11eeaa!=_0x2234d7[_0x5d6330]){const _0xde9b0=_0x46fba6['get'](_0x11eeaa)||_0x46fba6['get'](_0x2234d7[_0x5d6330]);for(;_0x11eeaa!=_0x2234d7[_0x5d6330];)_0x265c9a['has'](_0x2234d7[_0x5d6330])||(_0x41107d['set'](_0x2234d7[_0x5d6330],_0xde9b0),_0x46fba6['set'](_0x2234d7[_0x5d6330],_0xde9b0)),_0x5d6330++;}_0x5d6330++;}}}}for(const _0x35afbc of _0x2ea944){const _0x53b5d4=_0x3b1d96['insertions'][_0x35afbc];for(const _0x487428 of _0x53b5d4){const _0x45b61a=this['_getVidAttributeName'](_0x487428),_0x4c6a1b=_0x487428['item']['getAttribute'](_0x45b61a);if(_0x41107d['has'](_0x4c6a1b)){const _0x59c40c=_0x41107d['get'](_0x4c6a1b);_0x265c9a['has'](_0x4c6a1b)||_0x265c9a['set'](_0x4c6a1b,{..._0x59c40c}),_0x43acc1['set'](_0x4c6a1b,{..._0x59c40c});}}}for(const _0x24950f of _0x265c9a['keys']())_0x24950f>=this['_startingRevisionId']&&_0x265c9a['delete'](_0x24950f);const _0x301a4d=new Map();for(const _0x1ea77 of _0x2ea944){let _0x56dd90=_0x3b1d96['insertions'][_0x1ea77];for(const _0x2e10fe of _0x56dd90)if(_0x2e10fe['item']['is']('element','tableCell')){const _0x2e4cbf=this['_getVidAttributeName'](_0x2e10fe),_0x51b1da=_0x2e10fe['item']['getAttribute'](_0x2e4cbf);if(_0x43acc1['has'](_0x51b1da)){const _0xe64ed7=_0x2e10fe['item']['parent']['parent']['getAttribute']('vid_start'),_0x113b14=_0x301a4d['get'](_0xe64ed7)||new Set();_0x113b14['add'](_0x43acc1['get'](_0x51b1da)['userId']),_0x301a4d['set'](_0xe64ed7,_0x113b14);}}_0x56dd90=_0x3b1d96['deletions'][_0x1ea77];for(const _0xa3a5b5 of _0x56dd90)if(_0xa3a5b5['item']['is']('element','tableCell')){const _0x5b729e=this['_getVidAttributeName'](_0xa3a5b5),_0xf8191=_0xa3a5b5['item']['getAttribute'](_0x5b729e);if(_0x265c9a['has'](_0xf8191)){const _0x3c632f=_0xa3a5b5['item']['parent']['parent']['getAttribute']('vid_start'),_0x519b0d=_0x301a4d['get'](_0x3c632f)||new Set();_0x519b0d['add'](_0x265c9a['get'](_0xf8191)['userId']),_0x301a4d['set'](_0x3c632f,_0x519b0d);}}for(const _0x47c5ac of _0x301a4d['keys']())(_0x43acc1['has'](_0x47c5ac)||_0x265c9a['has'](_0x47c5ac))&&_0x301a4d['delete'](_0x47c5ac);}for(const _0x145bba of _0x2ea944){const _0x18a07c=_0x3b1d96['insertions'][_0x145bba];let _0x557187=null,_0x25a04f=null;for(const _0x4e6d0c of _0x18a07c){const _0x248be1=this['_getVidAttributeName'](_0x4e6d0c),_0x443983=_0x4e6d0c['item']['getAttribute'](_0x248be1),_0x12cdcd=_0x301a4d['get'](_0x443983);_0x12cdcd&&'elementStart'==_0x4e6d0c['type']&&(_0x557187=Array['from'](_0x12cdcd)[0x0],_0x25a04f=_0x4e6d0c['item']['getAttribute']('vid_end')),_0x557187&&(_0x265c9a['set'](_0x443983,{'userId':_0x557187}),_0x43acc1['set'](_0x443983,{'userId':_0x557187})),_0x443983==_0x25a04f&&(_0x557187=null,_0x25a04f=null);}}const _0x3b86ef={},_0x997576=new Set();for(const _0x70010f of _0x2ea944){const _0x56f7a0=_0x508284['deletions'][_0x70010f],_0x55dbe9=_0x508284['insertions'][_0x70010f];for(const {userId:_0x270cf9}of this['_touchedMarkers']['values']())null!==_0x270cf9&&_0x997576['add'](_0x270cf9);for(const {userId:_0x3fcb09}of this['_touchedRoots']['values']())null!==_0x3fcb09&&_0x997576['add'](_0x3fcb09);this['_markChanges'](_0x55dbe9,_0x3b1d96['insertions'][_0x70010f],_0x43acc1,'insertion',_0x997576),this['_markChanges'](_0x56f7a0,_0x3b1d96['deletions'][_0x70010f],_0x265c9a,'deletion',_0x997576),_0x3b86ef[_0x70010f]={'insertions':this['_prepareViewToSave'](_0x55dbe9),'deletions':this['_prepareViewToSave'](_0x56f7a0),'attachChange':this['_touchedRoots']['get'](_0x70010f)||null,'attributesBefore':_0x3f7c55(this['_baseRootsAttributes']['get'](_0x70010f))||{},'attributesAfter':_0x3f7c55(this['_diffRootsAttributes']['get'](_0x70010f))};}return{'diffData':_0x3b86ef,'authorsIds':Array['from'](_0x997576)};}['_processRootBeforeSave'](_0x2938ed){for(const [,_0x1e3e6b]of _0x2938ed['markers']){const _0x105dfd=_0x1e3e6b['start']['getAncestors']()['filter'](_0x59f4e9=>'tableCell'==_0x59f4e9['name']);for(const _0xbf52c0 of _0x105dfd)0x1==_0xbf52c0['childCount']&&_0xbf52c0['getChild'](0x0)['is']('element','paragraph')&&_0xbf52c0['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4af973){this['_processRootBeforeSave'](_0x4af973);const _0x33bc95=this['editor']['data']['toView'](_0x4af973,{}),_0x1dad9c=Array['from'](_0x33bc95['getChildren']())['map'](_0x1efe1d=>this['_getViewJson'](_0x1efe1d));return JSON['stringify'](_0x1dad9c);}['_getViewJson'](_0x4ae0b6){if(_0x4ae0b6['is']('$text'))return _0x4ae0b6['data'];{const _0x14b572=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x257be8=_0x4ae0b6,_0x10c192=this['editor']['data']['htmlProcessor']['domConverter'],_0x275dd0={'type':_0x14b572['_getTypeCharForViewElement'](_0x257be8),'name':_0x257be8['name'],'attributes':Array['from'](_0x257be8['getAttributes']()),'children':Array['from'](_0x257be8['getChildren']())['map'](_0x5474c4=>this['_getViewJson'](_0x5474c4))};if(_0x4ae0b6['is']('uiElement')&&'$comment'!=_0x4ae0b6['name']){const _0x36891d=_0x4ae0b6['render'](_0x10c192['domDocument'],_0x10c192);_0x275dd0['children']['push'](_0x36891d['outerHTML']);}else{if(_0x4ae0b6['is']('rawElement')){const _0x35221c=_0x10c192['domDocument']['createElement'](_0x257be8['name']);_0x4ae0b6['render'](_0x35221c,_0x10c192),_0x275dd0['children']['push'](_0x35221c['innerHTML']);}}const _0x21dd42=Array['from'](_0x257be8['getCustomProperties']());_0x21dd42['length']>0x0&&(_0x275dd0['customProperties']=_0x21dd42);const _0x2a3beb=_0x257be8['getFillerOffset']();return null!==_0x2a3beb&&(_0x275dd0['fillerOffset']=_0x2a3beb),_0x275dd0;}}['_markChanges'](_0x53698f,_0x12f9bd,_0x4ebe55,_0x52de0a,_0x59307e){let _0x3098c5=null,_0x50dacc=null,_0x130906=0x0;const _0x5c1343=this['editor']['model'];for(let _0x266ae9=0x0;_0x266ae9<_0x12f9bd['length'];_0x266ae9++){const _0x1ffe05=this['_getVidAttributeName'](_0x12f9bd[_0x266ae9]),_0x340c5b=_0x12f9bd[_0x266ae9]['item']['getAttribute'](_0x1ffe05),_0x21b61e=_0x4ebe55['get'](_0x340c5b),_0x5278c7=_0x266ae9==_0x12f9bd['length']-0x1;(!_0x3098c5&&_0x21b61e&&(_0x3098c5=_0x21b61e,_0x50dacc=_0x12f9bd[_0x266ae9]),_0x3098c5&&(!_0x21b61e||_0x21b61e['userId']!=_0x3098c5['userId']))&&(_0x1df877(_0x21b61e,F(_0x50dacc,_0x53698f,_0x5c1343),F(_0x12f9bd[_0x266ae9],_0x53698f,_0x5c1343)),_0x3098c5=_0x21b61e||null,_0x50dacc=_0x21b61e?_0x12f9bd[_0x266ae9]:null),_0x3098c5&&_0x5278c7&&_0x1df877(_0x21b61e,F(_0x50dacc,_0x53698f,_0x5c1343),B(_0x12f9bd[_0x266ae9],_0x53698f,_0x5c1343));}function _0x1df877(_0x59a948,_0x176188,_0x38e21c){const _0x927b90=_0x3098c5['userId'],_0x29eff2='revision:'+_0x52de0a+':'+_0x927b90+':'+_0x130906++,_0x5d9d72=_0x5c1343['createRange'](_0x176188,_0x38e21c);_0x53698f['markers']['set'](_0x29eff2,_0x5d9d72),null!==_0x927b90&&_0x59307e['add'](_0x927b90);}}['_getVidAttributeName'](_0x300140){switch(_0x300140['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x37c4b0,_0x26a7fe){_0x37c4b0['baseVersion']=null;for(const _0x420b08 in _0x37c4b0){const _0x1ca2a0=_0x37c4b0[_0x420b08];if(_0x1ca2a0 instanceof vt){const _0x128d1c=_0x26a7fe['get'](_0x1ca2a0['root']['rootName']);_0x37c4b0[_0x420b08]=this['_fixPosition'](_0x1ca2a0,_0x128d1c);}if(_0x1ca2a0 instanceof ft){const _0x4a353b=_0x26a7fe['get'](_0x1ca2a0['root']['rootName']);_0x37c4b0[_0x420b08]=this['_fixRange'](_0x1ca2a0,_0x4a353b);}'root'===_0x420b08&&(_0x37c4b0['root']=_0x26a7fe['get'](_0x37c4b0['root']['rootName']));}}['_fixRange'](_0x23abd1,_0xd97d68){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23abd1['start'],_0xd97d68),this['_fixPosition'](_0x23abd1['end'],_0xd97d68));}['_fixPosition'](_0x5707a6,_0x15afe1){return this['editor']['model']['createPositionFromPath'](_0x15afe1,_0x5707a6['path'],_0x5707a6['stickiness']);}['_handleInsertOperation'](_0x37478a){const _0x5e1336=this['_idsRoots']['get'](_0x37478a['position']['root']['rootName']),_0x328602=this['_fixPosition'](_0x37478a['position'],_0x5e1336),_0x4e0b28=null===_0x37478a['_authorId']?null:_0x37478a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4414ec=_0x328602['parent'],_0x2f9490=this['_revisionId'],_0x3ed2ab=[];for(const _0x28c2df of _0x37478a['nodes'])if(_0x28c2df['is']('element'))_0x3ed2ab['push'](this['_makeIdsRoot'](_0x28c2df));else{for(let _0x4ea2b9=0x0;_0x4ea2b9<_0x28c2df['offsetSize'];_0x4ea2b9++)_0x3ed2ab['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3163fb=this['_revisionId'];for(let _0x4f9f4e=_0x2f9490;_0x4f9f4e<_0x3163fb;_0x4f9f4e++)this['_touched']['set'](_0x4f9f4e,{'userId':_0x4e0b28});_0x4414ec['_insertChild'](_0x328602['offset'],_0x3ed2ab);}['_handleMoveOperation'](_0x3f9a8d){(_0x3f9a8d=this['_cloneOperation'](_0x3f9a8d,this['_idsRoots']))['_execute']();const _0x420be6=null===_0x3f9a8d['_authorId']?null:_0x3f9a8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57c293=_0x3f9a8d['getMovedRangeStart'](),_0x50a0c7=_0x57c293['parent'],_0x542b0a=_0x57c293['offset'];!function _0x21a9b4(_0x2b0ae5,_0x5b5a49,_0x13c80f,_0x26f522){for(let _0x2c14ce=_0x13c80f;_0x2c14ce<_0x26f522;_0x2c14ce++){const _0x39a99b=_0x5b5a49['getChild'](_0x2c14ce);_0x39a99b['is']('element','$text')?_0x2b0ae5['set'](_0x39a99b['getAttribute']('vid'),{'userId':_0x420be6}):(_0x2b0ae5['set'](_0x39a99b['getAttribute']('vid_start'),{'userId':_0x420be6}),_0x21a9b4(_0x2b0ae5,_0x39a99b,0x0,_0x39a99b['childCount']),_0x2b0ae5['set'](_0x39a99b['getAttribute']('vid_end'),{'userId':_0x420be6}));}}(this['_touched'],_0x50a0c7,_0x542b0a,_0x542b0a+_0x3f9a8d['howMany']);}['_handleMergeOperation'](_0x43ac88){const _0x54d51f=null===(_0x43ac88=this['_cloneOperation'](_0x43ac88,this['_idsRoots']))['_authorId']?null:_0x43ac88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58fce6=_0x43ac88['targetPosition']['parent'],_0x247483=_0x43ac88['sourcePosition']['parent'],_0x484a8b=_0x58fce6['getAttribute']('vid_end'),_0x396986=_0x247483['getAttribute']('vid_start');_0x58fce6['_setAttribute']('vid_end',_0x247483['getAttribute']('vid_end')),_0x247483['_setAttribute']('vid_end',_0x484a8b),this['_touched']['set'](_0x396986,{'userId':_0x54d51f}),this['_touched']['set'](_0x484a8b,{'userId':_0x54d51f}),_0x43ac88['_execute']();}['_handleSplitOperation'](_0x175681){const _0x46e08f=null===(_0x175681=this['_cloneOperation'](_0x175681,this['_idsRoots']))['_authorId']?null:_0x175681['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14f053=_0x175681['graveyardPosition'],_0x24155d=_0x175681['splitPosition']['parent'];_0x175681['_execute']();const _0x3e796b=_0x24155d['getAttribute']('vid_end'),_0x1cc049=_0x175681['insertionPosition']['nodeAfter'];if(_0x14f053){const _0x49c65d=_0x1cc049['getAttribute']('vid_end'),_0x5ab7d1=_0x24155d['getAttribute']('vid_end');_0x24155d['_setAttribute']('vid_end',_0x49c65d),_0x1cc049['_setAttribute']('vid_end',_0x5ab7d1),this['_touched']['set'](_0x24155d['getAttribute']('vid_end'),{'userId':_0x46e08f}),this['_touched']['set'](_0x1cc049['getAttribute']('vid_start'),{'userId':_0x46e08f});}else{const _0x1c7593=this['_revisionId']++,_0x3e6490=this['_revisionId']++;_0x24155d['_setAttribute']('vid_end',_0x1c7593),_0x1cc049['_setAttribute']('vid_start',_0x3e6490),_0x1cc049['_setAttribute']('vid_end',_0x3e796b),this['_touched']['set'](_0x1c7593,{'userId':_0x46e08f}),this['_touched']['set'](_0x3e6490,{'userId':_0x46e08f});}}['_handleMarkerOperation'](_0x4b6238){if(!_0x4b6238['affectsData'])return;const _0x5433a9=(_0x4b6238=this['_cloneOperation'](_0x4b6238,this['_diffRoots']))['oldRange']?_0x4b6238['oldRange']['root']:null,_0x4b8973=_0x4b6238['newRange']?_0x4b6238['newRange']['root']:null;_0x5433a9&&this['_markers']['delete'](_0x4b6238['name']),_0x4b8973&&this['_markers']['set'](_0x4b6238['name'],_0x4b6238['newRange']['clone']());const _0x2e2990=null===_0x4b6238['_authorId']?null:_0x4b6238['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33e619=_0x4b6238['name'];if(!this['_touchedMarkers']['has'](_0x33e619))return void this['_touchedMarkers']['set'](_0x33e619,{'range':_0x4b6238['oldRange'],'userId':_0x2e2990});const _0xdf889d=this['_touchedMarkers']['get'](_0x33e619),_0x4c7374=_0xdf889d['range'],_0x249abe=_0x4b6238['newRange'];null==_0x4c7374&&null==_0x249abe||_0x4c7374&&_0x249abe&&_0x4c7374['isEqual'](_0x249abe)?this['_touchedMarkers']['delete'](_0x4b6238['name']):_0xdf889d['userId']=_0x2e2990;}['_handleRootOperation'](_0xae62f9,_0x356d55){this['_diffRoots']['has'](_0xae62f9['rootName'])?this['_diffRoots']['get'](_0xae62f9['rootName'])['_isAttached']=_0xae62f9['isAdd']:(this['_diffRoots']['set'](_0xae62f9['rootName'],P(_0xae62f9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xae62f9['rootName'],{}),_0x356d55&&this['_idsRoots']['set'](_0xae62f9['rootName'],P(_0xae62f9['rootName'],!0x0)));const _0x1272b8=null===_0xae62f9['_authorId']?null:_0xae62f9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1965bc=this['_touchedRoots']['get'](_0xae62f9['rootName']);_0x1965bc&&_0x1965bc['userId']===_0x1272b8?this['_touchedRoots']['delete'](_0xae62f9['rootName']):this['_touchedRoots']['set'](_0xae62f9['rootName'],{'userId':_0x1272b8,'isAttached':_0xae62f9['isAdd']});}['_handleRootAttributeOperation'](_0x1484cb){const _0x5c45c0=this['_diffRootsAttributes']['get'](_0x1484cb['root']['rootName']);null===_0x1484cb['newValue']?delete _0x5c45c0[_0x1484cb['key']]:_0x5c45c0[_0x1484cb['key']]=_0x1484cb['newValue'];}}function N(_0x4e9f4d){const _0x133c90=P(_0x4e9f4d['rootName'],_0x4e9f4d['isAttached']());for(const _0x299d45 of _0x4e9f4d['getChildren']()){const _0x3b958d=_0x299d45['_clone'](!0x0);_0x133c90['_appendChild'](_0x3b958d);}return _0x133c90;}function P(_0x572399,_0x5df30d=!0x0){const _0x312aff=new gt();return _0x312aff['rootName']=_0x572399,_0x312aff['_isAttached']=_0x5df30d,_0x312aff['isAttached']=()=>_0x312aff['_isAttached'],_0x312aff;}function F(_0x4dcb70,_0x2ceda0,_0x30d33e){const _0x2db671='elementEnd'==_0x4dcb70['type']?_0x30d33e['createPositionAt'](_0x4dcb70['item'],'end'):_0x30d33e['createPositionBefore'](_0x4dcb70['item']);return _0x30d33e['createPositionFromPath'](_0x2ceda0,_0x2db671['path'],_0x2db671['stickiness']);}function B(_0x63ddb9,_0x2095c0,_0x176d4b){const _0x2483f9='elementStart'==_0x63ddb9['type']?_0x176d4b['createPositionAt'](_0x63ddb9['item'],0x0):_0x176d4b['createPositionAfter'](_0x63ddb9['item']);return _0x176d4b['createPositionFromPath'](_0x2095c0,_0x2483f9['path'],_0x2483f9['stickiness']);}class os extends _0xae5262{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x574820,_0xac4c38){super(_0x574820),this['focusTracker']=new _0x55366b(),this['keystrokes']=new _0x1a417e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xac4c38),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'](),_0x30574({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x138ad8=_0x2063d8=>_0x2063d8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x138ad8),this['keystrokes']['set']('arrowleft',_0x138ad8),this['keystrokes']['set']('arrowup',_0x138ad8),this['keystrokes']['set']('arrowdown',_0x138ad8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x36feae){this['revisionNameInputView']['fieldView']['element']['value']=_0x36feae['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2a635b){const _0x34e851=new nt(this['locale'],ti),_0x8a0504=_0x34e851['fieldView'];_0x8a0504['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x283f77=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2a635b&&(_0x283f77+='\x20('+g(this['locale'],'optional')+')'),(_0x34e851['label']=_0x283f77,_0x8a0504['on']('input',()=>{this['revisionNameInputValue']=_0x8a0504['element']['value']['trim']();}),_0x34e851);}}class f extends _0x41ef01{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4d1b11=this['editor'],_0x10a1cf=_0x4d1b11['plugins']['get']('RevisionTracker');_0x4d1b11['ui']['componentFactory']['add']('revisionHistory',_0x2aab06=>{const _0x4a5f29=_0x3117cd(_0x2aab06),_0xbc4f8=_0x4a5f29['panelView']['children'],_0x1f310c=new _0xf01633(_0x2aab06),_0x528ed0=new te(_0x2aab06),_0x15fafd=new _0x40acca(_0x2aab06),_0x427108=new te(_0x2aab06),_0x3c92bc=new _0x40acca(_0x2aab06);return _0x4a5f29['bind']('isEnabled')['to'](_0x10a1cf,'isReady',_0x10a1cf,'isEnabled',_0x4d1b11,'isReadOnly',(_0x1225de,_0x3fb598,_0x5de1c9)=>_0x1225de&&_0x3fb598&&!_0x5de1c9),_0x4a5f29['buttonView']['set']({'icon':_0x3b4640,'label':g(_0x2aab06,'Revision\x20history'),'tooltip':!0x0}),_0x15fafd['set']({'label':g(_0x2aab06,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x15fafd['bind']('isEnabled')['to'](_0x10a1cf,'isReady',_0x10a1cf,'isEnabled',_0x4d1b11,'isReadOnly',(_0x3ee511,_0x1ac696,_0x490902)=>_0x3ee511&&_0x1ac696&&!_0x490902),_0x15fafd['on']('execute',()=>this['_showDialog']()),_0x3c92bc['set']({'label':g(_0x2aab06,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3c92bc['bind']('isEnabled')['to'](_0x10a1cf,'isReady',_0x4d1b11,'isReadOnly',(_0x32a44d,_0x2c62cd)=>_0x32a44d&&!_0x2c62cd),_0x3c92bc['on']('execute',()=>{_0x4d1b11['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4a5f29['isOpen']=!0x1,_0x4d1b11['editing']['view']['focus']();}),_0x528ed0['children']['add'](_0x15fafd),_0x427108['children']['add'](_0x3c92bc),_0x1f310c['role']='menu',_0x1f310c['items']['addMany']([_0x528ed0,_0x427108]),_0xbc4f8['add'](_0x1f310c),_0x4a5f29;}),_0x4d1b11['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x283c0b=this['editor'],_0x51926a=_0x283c0b['locale'],_0x1bbf08=new _0x12d9b6(_0x51926a),_0x5b98e2=new _0x2a3ad0(_0x51926a);_0x1bbf08['buttonView']['set']({'icon':_0x3b4640,'label':g(_0x51926a,'Revision\x20history')});const _0x17cb03=new _0x230c75(_0x51926a,_0x1bbf08),_0x5e54b8=new _0x4ca8e4(_0x51926a);_0x5e54b8['set']({'label':g(_0x51926a,'Save\x20current\x20revision')}),_0x5e54b8['delegate']('execute')['to'](_0x1bbf08),_0x5e54b8['on']('execute',()=>{this['_showDialog']();}),_0x17cb03['children']['add'](_0x5e54b8),_0x5b98e2['items']['add'](_0x17cb03);const _0x292431=new _0x230c75(_0x51926a,_0x1bbf08),_0x104c6d=new _0x4ca8e4(_0x51926a);return _0x104c6d['set']({'label':g(_0x51926a,'Open\x20revision\x20history')}),_0x104c6d['delegate']('execute')['to'](_0x1bbf08),_0x104c6d['on']('execute',()=>{_0x283c0b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x292431['children']['add'](_0x104c6d),_0x5b98e2['items']['add'](_0x292431),_0x1bbf08['panelView']['children']['add'](_0x5b98e2),_0x1bbf08;}['_showDialog'](){const _0x3a2472=this['editor'],_0x4b5a96=_0x3a2472['locale'],_0x3269f7=_0x3a2472['plugins']['get']('Dialog'),_0x31651a=_0x3a2472['plugins']['get']('RevisionTracker');function _0x4a2f26(_0x10c7fb){_0x3a2472['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10c7fb['revisionName']?_0x10c7fb['revisionNameInputView']['errorText']=g(_0x4b5a96,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3a2472['plugins']['get'](u)['saveRevision']({'name':_0x10c7fb['revisionName']}),_0x3269f7['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4a2f26(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3269f7['show']({'id':'revisionSave','title':g(_0x4b5a96,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3a2472['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3269f7['hide']()},{'label':g(_0x3a2472['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4288b5){_0x4288b5['bind']('isEnabled')['to'](_0x31651a,'isReady',_0x31651a,'isEnabled',_0x3a2472,'isReadOnly',(_0x150c5c,_0xd70ad6,_0x97b5f2)=>_0x150c5c&&_0xd70ad6&&!_0x97b5f2);},'onExecute':()=>_0x4a2f26(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x225ad3=this['editor'],_0x4db1c4=_0x225ad3['locale'];this['_saveRevisionFormView']=new os(_0x4db1c4,_0x225ad3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0xae5262{['changeId'];['_model'];constructor(_0x517c14,_0x2b5bd1){super(_0x517c14),this['_model']=_0x2b5bd1,this['changeId']=_0x2b5bd1['id'];const _0x174fe0=this['bindTemplate'],_0x34fdef=g(_0x517c14,_0x2b5bd1['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2b5bd1['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2b5bd1['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x174fe0['to']('type',_0x51d016=>'ck-revision-change__'+_0x51d016)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x34fdef}]},{'text':'\x20'+_0x2b5bd1['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2d8a7a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4647f2){super(),this['id']=_0x4647f2['id']||_0x239983(),this['author']=_0x4647f2['author'],this['type']=_0x4647f2['type'],this['data']=_0x4647f2['data']||{},this['rootName']=_0x4647f2['rootName'],this['set']('createdAt',_0x4647f2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5a34be,_0x3e88b5){this['newRevisionId']=_0x5a34be,this['oldRevisionId']=_0x3e88b5,this['changes']=new _0x502d00();}['_setChanges'](_0x183391){for(const _0x5e01fb of _0x183391)this['changes']['add'](_0x5e01fb);}}class m extends _0x41ef01{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x15b4ca,_0x17a3bd,I,V];}constructor(_0x31c410){super(_0x31c410),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x593072,_0x2e4472,_0x32ded5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x439515=>{for(const _0x418f5a of this['editor']['editing']['view']['document']['roots'])_0x32ded5?_0x439515['removeClass']('ck-editor__editable__overlay',_0x418f5a):_0x439515['addClass']('ck-editor__editable__overlay',_0x418f5a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x51fc1c=>null!==_0x51fc1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2dd7c7,_0x4b387c,_0x4a6601)=>_0x2dd7c7&&_0x4a6601?_0x4b387c['changes']['getIndex'](_0x4a6601):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x108596,_0x18bbb0)=>_0x108596?_0x18bbb0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x17a3bd);}['init'](){const _0x53728a=this['editor'],_0x128005=new pt(_0x53728a,{'direction':'backward'}),_0xc32aec=new pt(_0x53728a,{'direction':'forward'});(_0x53728a['commands']['add']('showPreviousChange',_0x128005),_0x53728a['commands']['add']('showNextChange',_0xc32aec),_0x53728a['commands']['add']('restoreRevision',new wt(_0x53728a)),this['on']('change:numberOfChanges',()=>{_0x128005['refresh'](),_0xc32aec['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x53728a['enableReadOnlyMode']('revision-viewer'),_0x53728a['plugins']['has']('WidgetToolbarRepository'))&&_0x53728a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x41fddf){return await this['_utils']['loadRevisionData'](_0x41fddf,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x41fddf);}async['getRevisionRootsAttributes'](_0xdb26a7){return await this['_utils']['loadRevisionData'](_0xdb26a7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xdb26a7);}async['compare'](_0x2e8646,_0x1f3b35,_0x19d0dd=!0x1){if(!this['isEnabled'])return;const _0x37668e=this['diff'],_0xa3aade=this['repository'],_0x1667c9='string'==typeof _0x2e8646?_0xa3aade['getRevision'](_0x2e8646):_0x2e8646,_0x74974d='string'==typeof _0x1f3b35?_0xa3aade['getRevision'](_0x1f3b35):_0x1f3b35,_0x11bc69=_0x1667c9['id'],_0x4fe5b7=_0x74974d?_0x74974d['id']:null;if(!_0x19d0dd&&this['diff']&&this['diff']['newRevisionId']===_0x11bc69&&this['diff']['oldRevisionId']===_0x4fe5b7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x11bc69,_0x4fe5b7);const _0x4f0ba2=this['_getRevisionsRange'](_0x1667c9,_0x74974d,!0x0)['map'](_0x32daca=>this['_utils']['loadRevisionData'](_0x32daca,this['adapter']));return _0x4f0ba2['push'](new Promise(_0x3cc45b=>{setTimeout(_0x3cc45b,0x14);})),Promise['all'](_0x4f0ba2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31aa06=this['_getDiff'](_0x11bc69,_0x4fe5b7);for(const _0x3e1e6f of _0x31aa06['changes'])this['_changeIdToChange']['set'](_0x3e1e6f['id'],_0x3e1e6f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x35f77c=>{for(const _0x343ce3 of this['editor']['model']['document']['getRootNames']())_0x35f77c['detachRoot'](_0x343ce3);for(const _0x166753 of Object['keys'](_0x31aa06['model'])){const _0x55a6cc=_0x35f77c['addRoot'](_0x166753);for(const _0x3ff2ba of Object['keys'](_0x31aa06['attributes'][_0x166753]))_0x35f77c['setAttribute'](_0x3ff2ba,_0x31aa06['attributes'][_0x166753][_0x3ff2ba],_0x55a6cc);_0x35f77c['insert'](_0x31aa06['model'][_0x166753],_0x55a6cc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31aa06['changes'])),this['isReady']=!0x0;})['catch'](_0x3900f0=>{console['error'](_0x3900f0),this['_cleanUp'](),_0x37668e&&(this['diff']=_0x37668e),this['isReady']=!0x0;});}['addRevisionData'](_0xb698f0,_0x3aec84){const _0x592b64=this['repository']['createRevision'](_0xb698f0);return _0x592b64['on']('_update',(_0x2722de,_0x1dd1a6,_0x451b5f)=>_0x3aec84(_0x1dd1a6,_0x451b5f,_0x592b64)),this['repository']['addRevision'](_0x592b64),_0x592b64;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x311cea=>{for(const _0x9cec4c of this['editor']['model']['document']['getRootNames']())_0x311cea['detachRoot'](_0x9cec4c);});}['_sortAndFilterDiffChanges'](_0x262314){const _0x23f0d1=[],_0x444d67=new Map();for(const _0x27ae9a of this['editor']['model']['document']['getRootNames']()){const _0x3594a3=this['editor']['editing']['view']['getDomRoot'](_0x27ae9a);if(!_0x3594a3)continue;const _0x516a16=_0x3594a3['getClientRects']()['item'](0x0);_0x516a16&&(_0x23f0d1['push'](_0x27ae9a),_0x444d67['set'](_0x27ae9a,_0x516a16));}return _0x23f0d1['sort']((_0x21f29b,_0x3189c2)=>{const _0x4e30f3=_0x444d67['get'](_0x21f29b),_0x434d27=_0x444d67['get'](_0x3189c2);return _0x4e30f3['y']-_0x434d27['y']||_0x4e30f3['x']-_0x434d27['x'];}),(_0x262314=_0x262314['filter'](_0x489dcd=>_0x23f0d1['includes'](_0x489dcd['rootName'])))['sort']((_0xc50ffa,_0x4ed309)=>_0x23f0d1['indexOf'](_0xc50ffa['rootName'])-_0x23f0d1['indexOf'](_0x4ed309['rootName'])),_0x262314;}['_makeTape'](_0x452f8e){const _0x59fbd3=Array['from'](_0x452f8e['markers'])['filter'](([_0x56c905,_0x3d4383])=>_0x56c905['startsWith']('revision:')&&!_0x3d4383['isCollapsed']),_0x15d17a=Array['from'](this['editor']['model']['createRangeIn'](_0x452f8e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x59fbd3['length'])for(const _0xb51a76 of _0x15d17a){const [_0x281335,_0x27ee55]=_0x59fbd3[0x0],[,_0x45d68f,_0x6d17dd]=_0x281335['split'](':');if(_0x27ee55['end']['isEqual'](_0xb51a76['nextPosition'])&&_0x59fbd3['shift'](),(_0xb51a76['previousPosition']['isEqual'](_0x27ee55['start'])||_0xb51a76['previousPosition']['isAfter'](_0x27ee55['start']))&&('insertion'==_0x45d68f?_0xb51a76['isAdded']={'userId':_0x6d17dd}:'deletion'==_0x45d68f&&(_0xb51a76['isRemoved']={'userId':_0x6d17dd})),0x0==_0x59fbd3['length'])break;}return _0x15d17a;}['_refreshStartEndIndex'](_0x314b1f){const _0x1fbe0e=new Map();for(let _0x559cda=0x0;_0x559cda<_0x314b1f['length'];_0x559cda++)'text'===_0x314b1f[_0x559cda]['type']?(_0x314b1f[_0x559cda]['item']['startIndex']=_0x559cda,_0x314b1f[_0x559cda]['item']['endIndex']=_0x559cda):('elementStart'===_0x314b1f[_0x559cda]['type']?_0x314b1f[_0x559cda]['item']['startIndex']=_0x559cda:'elementEnd'===_0x314b1f[_0x559cda]['type']&&(_0x314b1f[_0x559cda]['item']['endIndex']=_0x559cda),_0x1fbe0e['set'](_0x314b1f[_0x559cda]['id'],_0x559cda));for(const _0x1e9ada of _0x1fbe0e['values']())'elementStart'===_0x314b1f[_0x1e9ada]['type']?_0x314b1f[_0x1e9ada]['item']['endIndex']=_0x1fbe0e['get'](_0x314b1f[_0x1e9ada]['pairId']):'elementEnd'===_0x314b1f[_0x1e9ada]['type']&&(_0x314b1f[_0x1e9ada]['item']['startIndex']=_0x1fbe0e['get'](_0x314b1f[_0x1e9ada]['pairId']));}['_processTape'](_0xdafccf){for(let _0x176f48=0x0;_0x176f48<_0xdafccf['length'];_0x176f48++){if('elementStart'===_0xdafccf[_0x176f48]['type'])_0xdafccf[_0x176f48]['item']['startIndex']=_0x176f48;else{if('elementEnd'===_0xdafccf[_0x176f48]['type']){_0xdafccf[_0x176f48]['item']['endIndex']=_0x176f48;const _0xd833a4=_0xdafccf[_0x176f48]['item']['startIndex'];_0xdafccf[_0xd833a4]['pairId']=_0xdafccf[_0x176f48]['id'],_0xdafccf[_0x176f48]['pairId']=_0xdafccf[_0xd833a4]['id'];}else _0xdafccf[_0x176f48]['item']['startIndex']=_0x176f48,_0xdafccf[_0x176f48]['item']['endIndex']=_0x176f48,_0xdafccf[_0x176f48]['pairId']=null;}_0xdafccf[_0x176f48]['markersStart']||(_0xdafccf[_0x176f48]['markersStart']=[],_0xdafccf[_0x176f48]['markersEnd']=[]);}}['_markInsertions'](_0x134034,_0x330ff3){const _0xd7f45c=_0x134034['filter'](_0x32ef5f=>!_0x32ef5f['isAdded']);for(let _0x456050=0x0;_0x456050<_0x330ff3['length'];_0x456050++)_0x330ff3[_0x456050]['isAdded']&&(_0xd7f45c[_0x456050]['isAdded']=_0x330ff3[_0x456050]['isAdded']);}['_getDiff'](_0x444d60,_0x3a05fb=null){const _0x238633=this['repository']['getRevision'](_0x444d60),_0x504444=_0x3a05fb?this['repository']['getRevision'](_0x3a05fb):null,_0x4d218b=this['_getRevisionsRange'](_0x238633,_0x504444),_0x1a9b86=_0x4d218b[_0x4d218b['length']-0x1],_0x8ad678=new Map(),_0x4b387b={'model':{},'attributes':{},'changes':[]},_0x345f96=new Set(),_0x9862ed=new Map();for(let _0x584ba0=_0x4d218b['length']-0x1;_0x584ba0>=0x0;_0x584ba0--){const _0x482fc6=_0x4d218b[_0x584ba0];for(const _0x9ea0ba of Object['keys'](_0x482fc6['diffData']))if(_0x482fc6['diffData'][_0x9ea0ba]['attachChange']){const _0x5958f0=_0x482fc6['diffData'][_0x9ea0ba]['attachChange'];_0x5958f0['isAttached']?(_0x345f96['add'](_0x9ea0ba),_0x9862ed['has'](_0x9ea0ba)&&_0x9862ed['get'](_0x9ea0ba)['userId']==_0x5958f0['userId']?_0x9862ed['delete'](_0x9ea0ba):_0x9862ed['set'](_0x9ea0ba,_0x5958f0)):_0x9862ed['has'](_0x9ea0ba)?(_0x345f96['delete'](_0x9ea0ba),_0x9862ed['delete'](_0x9ea0ba)):(_0x345f96['add'](_0x9ea0ba),_0x9862ed['set'](_0x9ea0ba,_0x5958f0));}else _0x345f96['add'](_0x9ea0ba);}for(const _0x2a41f0 of _0x345f96){const _0x4e5620=_0x9862ed['has'](_0x2a41f0)&&!_0x9862ed['get'](_0x2a41f0)['isAttached'];let _0x2b200c=_0x4e5620?_0x4d218b['length']-0x1:0x0;const _0x261ee5=_0x4e5620?-0x1:0x1;for(;_0x4d218b[_0x2b200c];){const _0x2c1bc4=_0x4d218b[_0x2b200c];if(_0x2c1bc4['diffData'][_0x2a41f0]){const _0x47b175=_0x4e5620?_0x2c1bc4['diffData'][_0x2a41f0]['attributesBefore']:_0x2c1bc4['diffData'][_0x2a41f0]['attributesAfter'];_0x4b387b['attributes'][_0x2a41f0]=_0x47b175?_0x3f7c55(_0x47b175):{};break;}_0x2b200c+=_0x261ee5;}}for(const _0x40b732 of _0x4d218b){_0x40b732['model']={};for(const _0x2fbc96 of _0x40b732['authors'])_0x8ad678['set'](_0x2fbc96['id'],_0x2fbc96);for(const _0x2fdeff of _0x345f96){const _0x5a0ab6=_0x40b732['diffData'][_0x2fdeff]?_0x40b732['diffData'][_0x2fdeff]['insertions']:'[]',_0x262de3=_0x40b732['diffData'][_0x2fdeff]?_0x40b732['diffData'][_0x2fdeff]['deletions']:'[]';_0x40b732['model'][_0x2fdeff]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a0ab6),'deletions':this['_utils']['_makeModelFromViewString'](_0x262de3)};}}for(const _0x45daa7 of _0x345f96){let _0x4437ea=null,_0x5173f1=0x0;const _0x1424a7=new Map(Array['from'](_0x238633['model'][_0x45daa7]['insertions']['markers'])['filter'](([_0x38a289])=>!_0x38a289['startsWith']('revision:')));let _0x58aebd=0x0;for(const _0x27ebea of _0x4d218b){const _0x291698=this['_makeTape'](_0x27ebea['model'][_0x45daa7]['insertions']);_0x27ebea==_0x238633?(_0x4437ea=_0x291698,_0x5173f1=_0x4437ea['length'],_0x4437ea['forEach'](_0x312f87=>{_0x312f87['id']=_0x58aebd++;}),this['_processTape'](_0x4437ea)):this['_markInsertions'](_0x4437ea,_0x291698);const _0x4e9eeb=_0x4437ea['filter'](_0x5cb6be=>!_0x5cb6be['isAdded'])['map'](_0x6df2a7=>_0x6df2a7['id']);let _0x2b9d53=0x0;const _0x40f401=this['_makeTape'](_0x27ebea['model'][_0x45daa7]['deletions']);_0x40f401['forEach'](_0xfd766f=>{_0xfd766f['isRemoved']?_0xfd766f['id']=_0x5173f1++:_0xfd766f['id']=_0x4e9eeb[_0x2b9d53++];}),this['_processTape'](_0x40f401),this['_setDistance'](_0x4437ea,'isAdded'),this['_setDistance'](_0x40f401,'isRemoved'),_0x27ebea==_0x238633&&this['_markMarkers'](_0x4437ea,_0x1424a7),_0x4437ea=this['_joinTapes'](_0x4437ea,_0x40f401),this['_refreshStartEndIndex'](_0x4437ea),this['_setDistance'](_0x4437ea,'isRemoved');}_0x4437ea=_0x4437ea['filter'](_0x3ee425=>!(_0x3ee425['isAdded']&&_0x3ee425['isRemoved']));const _0x433f91=new Map(_0x1a9b86['model'][_0x45daa7]['deletions']['markers']),_0x62b8ae=new Set(_0x1424a7['keys']());for(const _0x325d4f of _0x433f91['keys']())_0x62b8ae['delete'](_0x325d4f);this['_markSuggestions'](_0x4437ea,_0x62b8ae),this['_fixObsoleteTags'](_0x4437ea),_0x4437ea=this['_removeMissingPairs'](_0x4437ea),_0x4437ea=this['_markMismatchedRemovedTags'](_0x4437ea),_0x4437ea=this['_removeUnsupportedChanges'](_0x4437ea);const {root:_0x45f1a1,changes:_0x3462fa}=this['_makeModelFromTape'](_0x4437ea,_0x8ad678,_0x45daa7);_0x4b387b['model'][_0x45daa7]=_0x45f1a1;const _0x4ddc46=_0x9862ed['get'](_0x45daa7);if(_0x4ddc46){const _0x453a09=_0x8ad678['get'](_0x4ddc46['userId']),_0x1635de=new r({'author':_0x453a09,'type':_0x4ddc46['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x45daa7});_0x3462fa['unshift'](_0x1635de),_0x4b387b['attributes'][_0x45daa7]['revisionHistoryAttachChange']=_0x1635de['id'];}_0x4b387b['changes']=_0x4b387b['changes']['concat'](_0x3462fa);}return _0x4b387b;}['_markMarkers'](_0x443179,_0x49d79d){for(let _0x13141f=0x0;_0x13141f<_0x443179['length'];_0x13141f++)for(const [_0x31a912,_0x21f4df]of _0x49d79d)!_0x21f4df['isCollapsed']&&_0x21f4df['start']['isEqual'](_0x443179[_0x13141f]['previousPosition'])&&_0x443179[_0x13141f]['markersStart']['push'](_0x31a912),_0x21f4df['end']['isEqual'](_0x443179[_0x13141f]['nextPosition'])&&_0x443179[_0x13141f]['markersEnd']['push'](_0x31a912);}['_joinTapes'](_0x2f6581,_0xbf9d7b){let _0x50878a=[],_0x265c64=0x0,_0x333774=0x0;for(;_0x265c64<_0x2f6581['length']||_0x333774<_0xbf9d7b['length'];){const _0x2fa44d=_0x2f6581[_0x265c64]||{},_0x13669d=_0xbf9d7b[_0x333774]||{};if(_0x2fa44d['id']==_0x13669d['id'])_0x265c64++,_0x333774++,_0x50878a['push'](_0x2fa44d);else{if(_0x13669d['isRemoved']&&_0x2fa44d['isAdded']){const {commonTape:_0x5eca05,iEnd:_0x30a3cd,jEnd:_0x24a79b}=this['_threeWayMerge'](_0x2f6581,_0x265c64,_0xbf9d7b,_0x333774);_0x50878a=_0x50878a['concat'](_0x5eca05),_0x265c64=_0x30a3cd,_0x333774=_0x24a79b;}else _0x13669d['isRemoved']?(_0x333774++,_0x50878a['push'](_0x13669d)):(_0x265c64++,_0x50878a['push'](_0x2fa44d));}}return _0x50878a;}['_markSuggestions'](_0x21898a,_0x4df090){const _0x1456c6=[];for(let _0x49744f=0x0;_0x49744f<_0x21898a['length'];_0x49744f++){for(let _0x163735=0x0;_0x163735<_0x21898a[_0x49744f]['markersStart']['length'];_0x163735++){const _0x34d67f=_0x21898a[_0x49744f]['markersStart'][_0x163735];if(!_0x4df090['has'](_0x34d67f))continue;const {group:_0x41f31f,type:_0x2d2392,authorId:_0x4c4241}=_0x11aa36(_0x34d67f);'revision-suggestion'!=_0x41f31f||'insertion'!=_0x2d2392&&'deletion'!=_0x2d2392||(_0x1456c6['unshift']({'type':_0x2d2392,'name':_0x34d67f,'userId':_0x4c4241}),_0x21898a[_0x49744f]['markersStart']['splice'](_0x163735,0x1),_0x163735--);}_0x321bcd(_0x21898a[_0x49744f]);for(let _0xbec5fd=0x0;_0xbec5fd<_0x21898a[_0x49744f]['markersEnd']['length'];_0xbec5fd++){const _0x4ed188=_0x21898a[_0x49744f]['markersEnd'][_0xbec5fd];if(!_0x4df090['has'](_0x4ed188))continue;const {group:_0x5f1b30,type:_0x188073}=_0x11aa36(_0x4ed188);if('revision-suggestion'!=_0x5f1b30||'insertion'!=_0x188073&&'deletion'!=_0x188073)continue;_0x21898a[_0x49744f]['markersEnd']['splice'](_0xbec5fd,0x1),_0xbec5fd--;const _0x10a75b=_0x1456c6['findIndex'](_0x35877d=>_0x35877d['name']==_0x4ed188);_0x10a75b>-0x1&&_0x1456c6['splice'](_0x10a75b,0x1);}}function _0x11aa36(_0x2ac487){const _0x272d78=_0x2ac487['split'](':');return{'group':_0x272d78[0x0],'type':_0x272d78[0x1],'subType':_0x272d78['length']>=0x5?_0x272d78[0x2]:null,'id':_0x272d78['length']<0x5?_0x272d78[0x2]:_0x272d78[0x3],'authorId':_0x272d78['length']<0x5?_0x272d78[0x3]:_0x272d78[0x4],'markerCount':0x6==_0x272d78['length']?_0x272d78[0x5]:null};}function _0x321bcd(_0x2b9548){for(let _0x56d4a3=0x0;_0x56d4a3<_0x1456c6['length'];_0x56d4a3++){if(_0x2b9548['isAdded']&&'insertion'==_0x1456c6[_0x56d4a3]['type']&&_0x2b9548['isAdded']['userId']==_0x1456c6[_0x56d4a3]['userId'])return _0x2b9548['isAddSuggestion']=_0x1456c6[_0x56d4a3],void delete _0x2b9548['isAdded'];if(!_0x2b9548['isAdded']&&!_0x2b9548['isRemoved']&&'deletion'==_0x1456c6[_0x56d4a3]['type'])return void(_0x2b9548['isRemoveSuggestion']=_0x1456c6[_0x56d4a3]);}}}['_setDistance'](_0x48ce34,_0xef0fbd){let _0x6779c6=0x0,_0x198df5=!0x1;const _0x19edba=new Map();for(const _0xd692b4 of _0x48ce34)_0xd692b4[_0xef0fbd]?_0x198df5&&(_0x6779c6++,_0x198df5=!0x1):(_0x6779c6++,_0x198df5=!0x0),_0x19edba['set'](_0xd692b4['id'],_0x6779c6);for(let _0x273dda=0x0;_0x273dda<_0x48ce34['length'];_0x273dda++){if('isRemoved'==_0xef0fbd&&_0x48ce34[_0x273dda]['isAdded']||'isAdded'==_0xef0fbd&&_0x48ce34[_0x273dda]['isRemoved'])continue;if('text'==_0x48ce34[_0x273dda]['type']){_0x48ce34[_0x273dda]['distance']=0x0;continue;}const _0x47f05a=_0x19edba['get'](_0x48ce34[_0x273dda]['pairId']),_0x5e26a8=_0x19edba['get'](_0x48ce34[_0x273dda]['id']);_0x48ce34[_0x273dda]['distance']=_0x47f05a-_0x5e26a8;}}['_getRevisionsRange'](_0x571163,_0x1c5eee,_0x451107=!0x1){const _0x3fd722=[];let _0x351ac0=this['repository']['getIndex'](_0x571163),_0x1cc346=this['repository']['getIndex'](_0x1c5eee);for(-0x1==_0x1cc346&&(_0x1cc346=this['repository']['_revisions']['length'],_0x451107=!0x1);_0x351ac0<_0x1cc346;)_0x3fd722['push'](this['repository']['getRevision'](_0x351ac0)),_0x351ac0++;return _0x451107&&_0x3fd722['push'](this['repository']['getRevision'](_0x351ac0)),_0x3fd722;}['_threeWayMerge'](_0x344754,_0x5a2ba3,_0xf0a777,_0x5415af){const _0x35403a=this['editor']['model']['schema'];let _0x545aad=_0x5a2ba3;for(;_0x344754[_0x545aad]&&_0x344754[_0x545aad]['isAdded'];)_0x545aad++;let _0xd54ea0=_0x5415af;for(;_0xf0a777[_0xd54ea0]&&_0xf0a777[_0xd54ea0]['isRemoved'];)_0xd54ea0++;_0x2d046c(_0x344754,_0x5a2ba3,_0x545aad),_0x2d046c(_0xf0a777,_0x5415af,_0xd54ea0);const _0x58ce61=_0xf0a777['slice'](_0x5415af,_0xd54ea0)['concat'](_0x344754['slice'](_0x5a2ba3,_0x545aad));return _0x58ce61['sort']((_0x1e2bfb,_0x110a2a)=>_0x1e2bfb['side']!=_0x110a2a['side']?_0x1e2bfb['side']-_0x110a2a['side']:_0x1e2bfb['level']!=_0x110a2a['level']?_0x1e2bfb['level']-_0x110a2a['level']:_0x1e2bfb['distance']!=_0x110a2a['distance']?_0x110a2a['distance']-_0x1e2bfb['distance']:!!_0x1e2bfb['isAdded']!=!!_0x110a2a['isAdded']?-0x1==_0x1e2bfb['side']||0x0==_0x1e2bfb['side']?_0x1e2bfb['isAdded']?-0x1:0x1:_0x1e2bfb['isAdded']?0x1:-0x1:_0x1e2bfb['index']-_0x110a2a['index']),{'commonTape':_0x58ce61,'iEnd':_0x545aad,'jEnd':_0xd54ea0};function _0x2d046c(_0xccc089,_0x17320d,_0x3ffe0e){let _0x435274=-0x1,_0x2016b8=Number['POSITIVE_INFINITY'],_0xed3e98=!0x0;for(let _0x3f8f35=_0x17320d;_0x3f8f35<_0x3ffe0e;_0x3f8f35++)if(_0x35403a['isInline'](_0xccc089[_0x3f8f35]['item'])||(_0xed3e98=!0x1),_0xccc089[_0x3f8f35]['item']['startIndex']<_0x17320d&&(_0x435274=_0x3f8f35),_0xccc089[_0x3f8f35]['item']['endIndex']>=_0x3ffe0e){_0x2016b8=_0x3f8f35;break;}_0xed3e98&&(_0x435274=_0x3ffe0e-0x1);for(let _0x2969f4=_0x17320d;_0x2969f4<_0x3ffe0e;_0x2969f4++)_0xccc089[_0x2969f4]['side']=_0x2969f4<=_0x435274?-0x1:_0x2969f4<_0x2016b8?0x0:0x1,_0xccc089[_0x2969f4]['index']=_0x2969f4;let _0x29c8b6=0x0;for(let _0xea2a67=_0x17320d;_0xea2a67<=_0x435274;_0xea2a67++)0x0==_0xccc089[_0xea2a67]['distance']?_0xccc089[_0xea2a67]['level']=_0x29c8b6:(_0x29c8b6++,_0xccc089[_0xea2a67]['level']=_0x29c8b6,_0x29c8b6++);for(let _0x47820a=_0x17320d;_0x47820a<_0x3ffe0e;_0x47820a++)0x0==_0xccc089[_0x47820a]['side']&&(_0xccc089[_0x47820a]['level']=_0x29c8b6);_0x29c8b6=0x0;for(let _0xa55dea=_0x3ffe0e-0x1;_0xa55dea>=_0x2016b8;_0xa55dea--)0x0==_0xccc089[_0xa55dea]['distance']?_0xccc089[_0xa55dea]['level']=_0x29c8b6:(_0x29c8b6--,_0xccc089[_0xa55dea]['level']=_0x29c8b6,_0x29c8b6--);}}['_fixObsoleteTags'](_0x44b3e9){const _0x804d8b=new Map(),_0x58ceb5=this['editor']['model']['schema'];for(let _0x577b73=0x1;_0x577b73<_0x44b3e9['length'];_0x577b73++){let _0x21041a,_0x4fb5eb,_0x34e393;const _0x25f603=_0x44b3e9[_0x577b73],_0x489658=_0x44b3e9[_0x577b73-0x1];if('text'==_0x25f603['type'])continue;if(_0x25f603['type']!=_0x489658['type'])continue;if(!_0x58ceb5['isBlock'](_0x489658['item'])||_0x58ceb5['isLimit'](_0x489658['item']))continue;if(!_0x58ceb5['isBlock'](_0x25f603['item'])||_0x58ceb5['isLimit'](_0x25f603['item']))continue;if((_0x44b3e9[_0x577b73]['isAdded']||_0x44b3e9[_0x577b73]['isAddSuggestion'])&&_0x44b3e9[_0x577b73-0x1]['isRemoved'])_0x21041a=_0x44b3e9[_0x577b73],_0x4fb5eb=_0x44b3e9[_0x577b73-0x1],_0x34e393=_0x577b73-0x1;else{if(!_0x44b3e9[_0x577b73]['isRemoved']||!_0x44b3e9[_0x577b73-0x1]['isAdded']&&!_0x44b3e9[_0x577b73-0x1]['isAddSuggestion'])continue;_0x21041a=_0x44b3e9[_0x577b73-0x1],_0x4fb5eb=_0x44b3e9[_0x577b73],_0x34e393=_0x577b73;}const _0x3be181=_0x21041a['level']==_0x4fb5eb['level'],_0x5e3ccb=Math['abs'](_0x21041a['level'])<Math['abs'](_0x4fb5eb['level'])&&0x0==_0x4fb5eb['distance'];(_0x3be181||_0x5e3ccb)&&(_0x804d8b['set'](_0x4fb5eb['id'],_0x21041a['id']),_0x44b3e9['splice'](_0x34e393,0x1),_0x577b73--,_0x21041a['isAdded']=!0x1);}for(let _0x99da5f=0x0;_0x99da5f<_0x44b3e9['length'];_0x99da5f++)_0x804d8b['has'](_0x44b3e9[_0x99da5f]['pairId'])&&(_0x44b3e9[_0x99da5f]['pairId']=_0x804d8b['get'](_0x44b3e9[_0x99da5f]['pairId']));}['_removeMissingPairs'](_0x4448ab){const _0x3544ed=new Set(_0x4448ab['map'](_0x12fe6a=>_0x12fe6a['id']));for(let _0x36b03b=0x0;_0x36b03b<_0x4448ab['length'];_0x36b03b++)_0x3544ed['has'](_0x4448ab[_0x36b03b]['pairId'])||0x0==_0x4448ab[_0x36b03b]['distance']||(_0x4448ab[_0x36b03b]['isIncorrect']=!0x0);return _0x4448ab['filter'](_0x31015c=>!_0x31015c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x485f7e){const _0x1c07b4=new Set();for(let _0x445c71=0x0;_0x445c71<_0x485f7e['length'];_0x445c71++){if(_0x1c07b4['has'](_0x485f7e[_0x445c71]['id'])&&_0x485f7e[_0x445c71]['isRemoved']&&(_0x485f7e[_0x445c71]['isIncorrect']=!0x0),_0x485f7e[_0x445c71]['isIncorrect'])continue;if(0x0==_0x485f7e[_0x445c71]['distance'])continue;if('elementStart'!=_0x485f7e[_0x445c71]['type'])continue;if(null==_0x485f7e[_0x445c71]['pairId'])continue;let _0x514925=_0x445c71+0x1,_0x5f109e=0x0;for(;_0x485f7e[_0x514925]['id']!=_0x485f7e[_0x445c71]['pairId'];)'elementStart'==_0x485f7e[_0x514925]['type']?_0x5f109e++:'elementEnd'==_0x485f7e[_0x514925]['type']&&_0x5f109e--,_0x514925++;if(0x0!=_0x5f109e){if(_0x485f7e[_0x445c71]['isRemoved'])_0x485f7e[_0x445c71]['isIncorrect']=!0x0;else{for(;_0x514925!=_0x445c71;)_0x485f7e[_0x514925]['isRemoved']&&0x0!=_0x485f7e[_0x514925]['distance']&&(_0x485f7e[_0x514925]['isIncorrect']=!0x0,_0x1c07b4['add'](_0x485f7e[_0x514925]['pairId'])),_0x514925--;}}}return _0x485f7e['filter'](_0x17ab91=>!_0x17ab91['isIncorrect']);}['_removeUnsupportedChanges'](_0x336c09){const _0x4ce2d0=this['editor']['model']['schema'];for(let _0x2f4aa9=0x0;_0x2f4aa9<_0x336c09['length'];_0x2f4aa9++){if(!(_0x336c09[_0x2f4aa9]['isAdded']||_0x336c09[_0x2f4aa9]['isAddSuggestion']||_0x336c09[_0x2f4aa9]['isRemoved']||_0x336c09[_0x2f4aa9]['isRemoveSuggestion']))continue;if(0x0==_0x336c09[_0x2f4aa9]['distance'])continue;const _0x19a5ab=_0x336c09[_0x2f4aa9]['item'];_0x4ce2d0['isBlock'](_0x19a5ab)||_0x4ce2d0['isLimit'](_0x19a5ab)||(_0x336c09[_0x2f4aa9]['isAdded']&&delete _0x336c09[_0x2f4aa9]['isAdded'],_0x336c09[_0x2f4aa9]['isAddSuggestion']&&delete _0x336c09[_0x2f4aa9]['isAddSuggestion'],_0x336c09[_0x2f4aa9]['isRemoveSuggestion']&&delete _0x336c09[_0x2f4aa9]['isRemoveSuggestion'],_0x336c09[_0x2f4aa9]['isRemoved']&&(_0x336c09[_0x2f4aa9]['isIncorrect']=!0x0));}return _0x336c09['filter'](_0x5df728=>!_0x5df728['isIncorrect']);}['_makeModelFromTape'](_0x20e3e1,_0x5be2b9,_0x3b3a01){const _0x4669fe=new gt(),_0x3ecaa0=[],_0x4cc47a=new Map(),_0x33573f=this['editor']['model'],_0x71e919=_0x33573f['schema'],_0xb04bdf=[_0x4669fe],_0x3adced={},_0xd912e5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x105d60=null;const _0xc1ed59=[0x0];for(let _0x34264b=0x0;_0x34264b<_0x20e3e1['length'];_0x34264b++)if('elementStart'===_0x20e3e1[_0x34264b]['type']){_0x20e3e1[_0x34264b]['previousPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59);const _0x327603=new ut(_0x20e3e1[_0x34264b]['item']['name'],_0x20e3e1[_0x34264b]['item']['getAttributes']());_0xb04bdf[0x0]['_appendChild'](_0x327603),_0xc1ed59['push'](0x0),_0xb04bdf['unshift'](_0x327603),_0x20e3e1[_0x34264b]['nextPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59);}else'elementEnd'===_0x20e3e1[_0x34264b]['type']?(_0xb04bdf['shift'](),_0x20e3e1[_0x34264b]['previousPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59),_0xc1ed59['pop'](),_0xc1ed59[_0xc1ed59['length']-0x1]++,_0x20e3e1[_0x34264b]['nextPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59)):(_0x20e3e1[_0x34264b]['previousPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59),_0x105d60?_0x105d60['_data']+=_0x20e3e1[_0x34264b]['item']['data']:_0x105d60=new mt(_0x20e3e1[_0x34264b]['item']['data'],_0x20e3e1[_0x34264b]['item']['getAttributes']()),_0x20e3e1[_0x34264b+0x1]&&'text'===_0x20e3e1[_0x34264b+0x1]['type']&&_0x5c3379(_0x105d60,_0x20e3e1[_0x34264b+0x1]['item'])||(_0xb04bdf[0x0]['_appendChild'](_0x105d60),_0x105d60=null),_0xc1ed59[_0xc1ed59['length']-0x1]+=_0x20e3e1[_0x34264b]['item']['offsetSize'],_0x20e3e1[_0x34264b]['nextPosition']=_0x33573f['createPositionFromPath'](_0x4669fe,_0xc1ed59));for(let _0x2a1d8b=0x0;_0x2a1d8b<_0x20e3e1['length'];_0x2a1d8b++){const _0x5e23a9=_0x20e3e1[_0x2a1d8b]['previousPosition'],_0x9cd271=_0x20e3e1[_0x2a1d8b]['nextPosition'];for(const _0x12e190 of _0x20e3e1[_0x2a1d8b]['markersStart'])_0x4cc47a['set'](_0x12e190,{'start':_0x5e23a9,'end':null});_0x27cc68('isRemoveSuggestion',_0x2a1d8b,_0x5e23a9,_0x9cd271),_0x27cc68('isAddSuggestion',_0x2a1d8b,_0x5e23a9,_0x9cd271),_0x27cc68('isRemoved',_0x2a1d8b,_0x5e23a9,_0x9cd271),_0x27cc68('isAdded',_0x2a1d8b,_0x5e23a9,_0x9cd271);for(const _0x5b12dd of _0x20e3e1[_0x2a1d8b]['markersEnd']){const _0x7b54d6=_0x4cc47a['get'](_0x5b12dd);_0x7b54d6?_0x7b54d6['end']=_0x9cd271:_0x4cc47a['set'](_0x5b12dd,{'start':_0x9cd271,'end':_0x9cd271});}}for(const [_0x220142,_0x195d62]of _0x4cc47a){const _0x4daf1a=this['editor']['model']['createRange'](_0x195d62['start'],_0x195d62['end']);_0x4669fe['markers']['set'](_0x220142,_0x4daf1a);}return _0x3ecaa0['sort']((_0x226078,_0x370b29)=>{const _0x19163f=_0x4669fe['markers']['get']('revision:'+_0x226078['id']),_0x224a91=_0x4669fe['markers']['get']('revision:'+_0x370b29['id']);return _0x19163f['start']['isBefore'](_0x224a91['start'])?-0x1:_0x19163f['start']['isAfter'](_0x224a91['start'])?0x1:_0x19163f['end']['isBefore'](_0x224a91['end'])?-0x1:_0x19163f['end']['isAfter'](_0x224a91['end'])?0x1:'add'===_0x226078['type']?-0x1:0x1;}),{'root':_0x4669fe,'changes':_0x3ecaa0};function _0x27cc68(_0xfc5319,_0x26f1a0,_0x2f6e7a,_0x40edad){const _0x3222ca=!!_0x20e3e1[_0x26f1a0][_0xfc5319],_0x36a8ba=_0x3222ca?_0x20e3e1[_0x26f1a0][_0xfc5319]['userId']:null,_0x2524a2=_0x26f1a0===_0x20e3e1['length']-0x1,_0x357964=_0xd912e5[_0xfc5319][0x0],_0x28e55=_0x71e919['isObject'](_0x20e3e1[_0x26f1a0]['item']);!_0x3adced[_0xfc5319]&&_0x3222ca?_0x3adced[_0xfc5319]={'start':_0x2f6e7a,'tapeItem':_0x20e3e1[_0x26f1a0],'userId':_0x36a8ba,'type':_0xfc5319}:_0x3adced[_0xfc5319]&&!_0x3222ca?(_0x3adced[_0xfc5319]['end']=_0x2f6e7a,_0x5d025d(_0x3adced[_0xfc5319]),_0x3adced[_0xfc5319]=null):_0x3adced[_0xfc5319]&&_0x3222ca&&_0x3adced[_0xfc5319]['userId']!==_0x36a8ba&&(_0x3adced[_0xfc5319]['end']=_0x2f6e7a,_0x357964&&_0x357964['userId']===_0x3adced[_0xfc5319]['userId']||_0x5d025d(_0x3adced[_0xfc5319]),_0x3adced[_0xfc5319]={'start':_0x2f6e7a,'tapeItem':_0x20e3e1[_0x26f1a0],'userId':_0x36a8ba,'type':_0xfc5319}),_0x3adced[_0xfc5319]&&_0x28e55&&('elementStart'!==_0x20e3e1[_0x26f1a0]['type']||_0x357964&&_0x357964['userId']===_0x36a8ba||_0xd912e5[_0xfc5319]['unshift']({'userId':_0x36a8ba,'object':_0x20e3e1[_0x26f1a0]['item'],'change':_0x3adced[_0xfc5319]}),'elementEnd'===_0x20e3e1[_0x26f1a0]['type']&&_0x357964&&_0x357964['object']===_0x20e3e1[_0x26f1a0]['item']&&(_0xd912e5[_0xfc5319]['shift'](),_0x3adced[_0xfc5319]=_0x357964['change'])),_0x3adced[_0xfc5319]&&_0x2524a2&&(_0x3adced[_0xfc5319]['end']=_0x40edad,_0x5d025d(_0x3adced[_0xfc5319]),_0x3adced[_0xfc5319]=null);}function _0x5d025d({start:_0x36649b,end:_0x3fa05b,tapeItem:_0x20123e,userId:_0x15fde9,type:_0x4b95dc}){const _0x15a211=_0x20123e['item'],_0x46d36c=_0x33573f['schema']['isBlock'](_0x15a211)&&!_0x33573f['schema']['isLimit'](_0x15a211),_0x4e9fa5=_0x36649b['nodeAfter']==_0x3fa05b['parent']&&_0x3fa05b['isAtStart'];if(_0x46d36c&&_0x4e9fa5)return;const _0x196131=_0x33573f['createRange'](_0x36649b,_0x3fa05b),_0x4682b8=_0x5be2b9['get'](_0x15fde9),_0x21f784=new r({'author':_0x4682b8,'type':'isAdded'==_0x4b95dc||'isAddSuggestion'==_0x4b95dc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4b95dc||'isRemoveSuggestion'==_0x4b95dc},'createdAt':new Date(),'rootName':_0x3b3a01});_0x3ecaa0['push'](_0x21f784),_0x4669fe['markers']['set']('revision:'+_0x21f784['id'],_0x196131);}function _0x5c3379(_0x5a9604,_0x75fd22){const _0x3149d2=_0x5a9604['getAttributes'](),_0x66e5e1=_0x75fd22['getAttributes']();for(const _0x4b7eb8 of _0x3149d2){if(_0x4b7eb8[0x1]!==_0x75fd22['getAttribute'](_0x4b7eb8[0x0]))return!0x1;_0x66e5e1['next']();}return _0x66e5e1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x15b59a=>{const _0x2d7db3=_0x15b59a['markerName']['split'](':')[0x1],_0x34b8ba=this['_getChangeFromId'](_0x2d7db3);if(!_0x34b8ba)return null;const _0x3b1937='add'==_0x34b8ba['type']?'insertion':'deletion',_0x5e69d2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b1937];return _0x34b8ba['data']['isSuggestion']&&_0x5e69d2['push']('ck-suggestion-marker-'+_0x3b1937+'-new'),this['activeChange']==_0x34b8ba&&_0x5e69d2['push']('ck-suggestion-marker--active'),{'classes':_0x5e69d2,'attributes':{'data-change-id':_0x2d7db3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1f6383=>{_0x1f6383['on']('element:pre',(_0x24f4ba,_0x37454f,_0x4a94bb)=>{const _0x4b24fe=_0x37454f['viewItem']['getChild'](0x0);if(!_0x4b24fe||!_0x4b24fe['is']('element','code'))return;if(!_0x4a94bb['consumable']['consume'](_0x4b24fe,{'attributes':['vid_start','vid_end']}))return;const _0x1dfcdc=_0x37454f['modelRange']['start']['nodeAfter'];_0x4a94bb['writer']['setAttribute']('vid_start',_0x4b24fe['getAttribute']('vid_start'),_0x1dfcdc),_0x4a94bb['writer']['setAttribute']('vid_end',_0x4b24fe['getAttribute']('vid_end'),_0x1dfcdc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x30b4b7=>{_0x30b4b7['on']('element',(_0x572ecc,_0x7b4945,_0x100794)=>{if(!_0x100794['consumable']['consume'](_0x7b4945['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x7b4945['modelRange']['isCollapsed'])return;const _0x547784=_0x7b4945['modelRange']['start']['nodeAfter'];_0x547784['hasAttribute']('vid_start')||_0x547784['hasAttribute']('vid')||(_0x100794['writer']['setAttribute']('vid_start',_0x7b4945['viewItem']['getAttribute']('vid_start'),_0x547784),_0x100794['writer']['setAttribute']('vid_end',_0x7b4945['viewItem']['getAttribute']('vid_end'),_0x547784));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x33dbac=>_0x33dbac['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3bfbd1,[,_0x363e31])=>{['vid_start','vid_end','vid']['includes'](_0x363e31)&&(_0x3bfbd1['return']=!0x0,_0x3bfbd1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x168236=>{_0x168236['on']('attribute:vid',(_0x3e3340,_0x573bbf,_0x1dc2e5)=>{if('\x20'!=_0x573bbf['item']['data']||_0x573bbf['item']['parent']['maxOffset']>0x1)return;if(!_0x1dc2e5['consumable']['consume'](_0x573bbf['item'],_0x3e3340['name']))return;const _0x4b1755=_0x1dc2e5['writer'],_0x2c4de2=_0x1dc2e5['mapper']['toViewRange'](_0x573bbf['range']);_0x4b1755['wrap'](_0x2c4de2,_0x4b1755['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x93da7d){const _0xda9933=_0x93da7d['plugins']['get']('RevisionViewer');return(_0x30f08c,_0x441685,_0x2c1898)=>{const _0x1df298=_0x441685['markerName']['split'](':')[0x1],_0x31e87e=_0xda9933['_getChangeFromId'](_0x1df298);if(!_0x31e87e)return null;const _0x3ec89b='add'==_0x31e87e['type']?'split':'merge';if(!_0x2c1898['consumable']['test'](_0x441685['markerRange'],_0x30f08c['name']))return;const _0x421955=_0x441685['markerRange']['getWalker'](),_0x5476c7=_0x441685['markerRange']['start'],_0x4416b8=_0x93da7d['model']['schema'];let _0x449eac=null,_0x32f4a0=null,_0x4196bd=!0x1,_0x1b82bf=!0x1;for(const _0x3d5309 of _0x421955){const _0x14f260=_0x3d5309['item'];_0x4196bd=_0x4196bd||_0x4416b8['isContent'](_0x14f260);const _0x136b1d=_0x2c1898['mapper']['toViewElement'](_0x14f260);if(_0x136b1d&&_0x136b1d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d5309['type']&&(_0x4416b8['isBlock'](_0x14f260)&&!_0x4416b8['isLimit'](_0x14f260)&&(_0x14f260['nextSibling']||_0x5476c7['isAtEnd']?_0x449eac&&_0x449eac['parent']==_0x14f260||(_0x449eac=_0x14f260,_0x2d881f(_0x3d5309['previousPosition']),_0x1b82bf=!0x0):_0x32f4a0=_0x32f4a0||_0x3d5309['previousPosition']));}function _0x2d881f(_0x115489){const _0xe835c7=_0x2c1898['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ec89b}),_0x2ef3c7=_0x2c1898['mapper']['toViewPosition'](_0x115489);_0x31e87e['data']['isSuggestion']&&_0x2c1898['writer']['addClass']('ck-suggestion-marker-'+_0x3ec89b+'-new',_0xe835c7),_0xda9933['activeChange']==_0x31e87e&&_0x2c1898['writer']['addClass']('ck-suggestion-marker--active',_0xe835c7),_0x2c1898['writer']['insert'](_0x2ef3c7,_0xe835c7),_0x2c1898['mapper']['bindElementToMarker'](_0xe835c7,_0x441685['markerName']);}_0x4196bd||_0x1b82bf||!_0x32f4a0||_0x2d881f(_0x32f4a0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5128c8,_0x328ca2,_0x1849e3)=>{const _0x5cd7b3=_0x1849e3['mapper']['markerNameToElements'](_0x328ca2['markerName']);if(_0x5cd7b3){for(const _0x221003 of _0x5cd7b3)(_0x221003['hasClass']('ck-suggestion-marker-split')||_0x221003['hasClass']('ck-suggestion-marker-merge'))&&(_0x1849e3['mapper']['unbindElementFromMarkerName'](_0x221003,_0x328ca2['markerName']),_0x1849e3['writer']['remove'](_0x221003));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ccde9,_0x10d42f,_0x4d8917)=>{const _0x50e962=_0x10d42f['markerName']['split'](':')[0x1],_0x488c50=this['_getChangeFromId'](_0x50e962);if(!_0x488c50)return null;const _0x22bae0='add'==_0x488c50['type']?'split':'merge';if(_0x4d8917['consumable']['test'](_0x10d42f['markerRange'],_0x3ccde9['name']))for(const _0x313dd3 of _0x10d42f['markerRange']['getItems']()){if(!_0x313dd3['is']('element','softBreak'))continue;const _0x4cd931=_0x4d8917['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22bae0}),_0x2267a9=_0x4d8917['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x313dd3));_0x488c50['data']['isSuggestion']&&_0x4d8917['writer']['addClass']('ck-suggestion-marker-'+_0x22bae0+'-new',_0x4cd931),this['activeChange']==_0x488c50&&_0x4d8917['writer']['addClass']('ck-suggestion-marker--active',_0x4cd931),_0x4d8917['writer']['insert'](_0x2267a9,_0x4cd931),_0x4d8917['mapper']['bindElementToMarker'](_0x4cd931,_0x10d42f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x305563=>{for(const _0x3788ed of this['editor']['model']['document']['getRootNames']()){const _0x17e75e=this['editor']['model']['document']['getRoot'](_0x3788ed),_0x1d7c37=this['editor']['editing']['view']['document']['getRoot'](_0x3788ed);if(_0x1d7c37){const _0x258c60=_0x17e75e['getAttribute']('revisionHistoryAttachChange');if(_0x305563['removeAttribute']('data-change-id',_0x1d7c37),_0x305563['removeClass']('ck-revision-history-root-add',_0x1d7c37),_0x305563['removeClass']('ck-revision-history-root-remove',_0x1d7c37),_0x305563['removeClass']('ck-revision-history-root--active',_0x1d7c37),_0x258c60){const _0x4f8468=this['_getChangeFromId'](_0x258c60);if(!_0x4f8468)return null;_0x305563['setAttribute']('data-change-id',_0x258c60,_0x1d7c37),_0x305563['addClass']('ck-revision-history-root-'+_0x4f8468['type'],_0x1d7c37),this['activeChange']==_0x4f8468&&_0x305563['addClass']('ck-revision-history-root--active',_0x1d7c37);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x40590c=>'revision-comment:'+_0x40590c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5dc11b=>'revision-suggestion:'+_0x5dc11b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x6cecc4=>({'name':'suggestion:'+_0x6cecc4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x16e8ba=>{const _0x19b8ec=_0x16e8ba['markerName']['split'](':')[0x1];return'insertion'!=_0x19b8ec&&'deletion'!=_0x19b8ec?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x19b8ec]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x374b1f,_0x5a03cc,_0x2c134f)=>{const _0x125e95=_0x2c134f['mapper']['markerNameToElements'](_0x5a03cc['markerName']);if(_0x125e95){for(const _0x56e0ac of _0x125e95)_0x56e0ac['is']('uiElement')&&(_0x2c134f['mapper']['unbindElementFromMarkerName'](_0x56e0ac,_0x5a03cc['markerName']),_0x2c134f['writer']['remove'](_0x56e0ac));}},{'priority':'high'});}['_getChangeFromId'](_0x3dd18c){return this['_changeIdToChange']['get'](_0x3dd18c);}['_getViewForChange'](_0x2154fb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2154fb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x40d16f,_0x4d2bc0,_0x414f31,_0x477e27)=>{_0x477e27&&this['_balloon']['remove'](_0x477e27),_0x414f31&&(this['_balloon']['add']({'view':_0x414f31,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3b4dc3=this['editor']['editing'],_0x39f38f=this['_getChangeFromId'](_0x414f31['changeId']);let _0x4e7534;if(_0x39f38f['data']['isOnRoot']){const _0x23f5d3=_0x3b4dc3['view']['getDomRoot'](_0x39f38f['rootName']);_0x4e7534=Array['from'](_0x23f5d3['getClientRects']());}else{const _0x4413d2=this['editor']['model']['markers']['get']('revision:'+_0x414f31['changeId']);_0x4e7534=Array['from'](_0x3b4dc3['mapper']['markerNameToElements'](_0x4413d2['name']))['map'](_0xb0997c=>_0x3b4dc3['view']['domConverter']['mapViewToDom'](_0xb0997c))['map'](_0x2ef64a=>Array['from'](_0x2ef64a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4e7534[0x0];return _0x4e7534['find'](_0x29cbc5=>_0x29cbc5['top']-0x3<=this['_activeViewTarget']['y']&&_0x29cbc5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x29cbc5['left']-0x3<=this['_activeViewTarget']['x']&&_0x29cbc5['right']+0x3>=this['_activeViewTarget']['x'])||_0x4e7534[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4ee922,_0xda5dae,_0x1ba192,_0x35f874)=>{this['activeView']=_0x1ba192?this['_getViewForChange'](_0x1ba192):null,this['editor']['model']['change'](()=>{const _0x4bcf9a=this['editor']['editing'];_0x35f874&&(_0x35f874['data']['isOnRoot']?_0x4bcf9a['view']['change'](_0x5e99c2=>{_0x5e99c2['removeClass']('ck-revision-history-root--active',_0x4bcf9a['view']['document']['getRoot'](_0x35f874['rootName']));}):_0x4bcf9a['reconvertMarker']('revision:'+_0x35f874['id'])),_0x1ba192&&(_0x1ba192['data']['isOnRoot']?_0x4bcf9a['view']['change'](_0xbedd69=>{_0xbedd69['addClass']('ck-revision-history-root--active',_0x4bcf9a['view']['document']['getRoot'](_0x1ba192['rootName']));}):_0x4bcf9a['reconvertMarker']('revision:'+_0x1ba192['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5b65de,_0x499ee5)=>{if(this['activeChange'])return;const _0x2d7b5a=this['_findChangeIdFromDomTarget'](_0x499ee5['target']),_0x190079=this['_changeIdToChange']['get'](_0x2d7b5a);_0x190079?(this['_activeViewTarget']={'x':_0x499ee5['domEvent']['x'],'y':_0x499ee5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x190079)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c88ae,_0xf01527)=>{const _0x543984=this['_findChangeIdFromDomTarget'](_0xf01527['target']),_0x5ab02f=this['_changeIdToChange']['get'](_0x543984);_0x5ab02f?(this['_activeViewTarget']={'x':_0xf01527['domEvent']['x'],'y':_0xf01527['domEvent']['y']},_0x5ab02f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ab02f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xc24bfb){do{const _0x501f1b=_0xc24bfb['getAttribute']('data-change-id');if(_0x501f1b)return _0x501f1b;_0xc24bfb=_0xc24bfb['parent'];}while(_0xc24bfb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1606ae=>{for(const _0x50ae08 of this['editor']['model']['markers'])_0x1606ae['removeMarker'](_0x50ae08);});}}function X(_0x1307d7,_0x44787d){return(_0x3b7ba9,_0x1d850c,_0x4d3611)=>{if(!_0x4d3611['consumable']['test'](_0x1d850c['markerRange'],_0x3b7ba9['name']))return;const _0x20a16a=_0x1d850c['markerRange']['getWalker'](),_0x2d4eaf=_0x1d850c['markerRange']['start'],_0x640719=_0x1307d7['model']['schema'];let _0x304a34=null,_0x5ee653=null,_0x152a03=!0x1,_0x4e97c9=!0x1;for(const _0x4ac489 of _0x20a16a){const _0x3efd9a=_0x4ac489['item'];_0x152a03=_0x152a03||_0x640719['isContent'](_0x3efd9a);const _0x4c89e4=_0x4d3611['mapper']['toViewElement'](_0x3efd9a);if(_0x4c89e4&&_0x4c89e4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ac489['type']&&(_0x640719['isBlock'](_0x3efd9a)&&!_0x640719['isLimit'](_0x3efd9a)&&(_0x3efd9a['nextSibling']||_0x2d4eaf['isAtEnd']?_0x304a34&&_0x304a34['parent']==_0x3efd9a||(_0x304a34=_0x3efd9a,_0x140a0c(_0x4ac489['previousPosition']),_0x4e97c9=!0x0):_0x5ee653=_0x5ee653||_0x4ac489['previousPosition']));}function _0x140a0c(_0x100630){const _0x310e60=_0x4d3611['mapper']['toViewPosition'](_0x100630),_0x1e5683=_0x4d3611['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x44787d});_0x4d3611['writer']['insert'](_0x310e60,_0x1e5683),_0x4d3611['mapper']['bindElementToMarker'](_0x1e5683,_0x1d850c['markerName']);}_0x152a03||_0x4e97c9||!_0x5ee653||_0x140a0c(_0x5ee653);};}class wt extends _0x2957ed{constructor(_0x3b0ea1){super(_0x3b0ea1);const _0xcaf06d=_0x3b0ea1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0xcaf06d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xcaf06d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x422fff=this['editor'],_0x2a882e=_0x422fff['plugins']['get'](m),_0x4999ac=_0x2a882e['isReady']?_0x2a882e['diff']['newRevisionId']:null;_0x422fff['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4999ac);}['refresh'](){const {isReady:_0x3a862b,isEnabled:_0x5f4078,repository:_0x4613be,diff:_0x29a257}=this['editor']['plugins']['get'](m),_0x1e4502=_0x29a257&&_0x4613be['getLaterVisibleRevision'](_0x29a257['newRevisionId']);this['isEnabled']=_0x3a862b&&_0x5f4078&&Boolean(_0x1e4502);}}class pt extends _0x2957ed{['_step'];constructor(_0x198f51,{direction:_0x2b7a79}){super(_0x198f51);const _0x212eed=_0x198f51['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2b7a79?0x1:-0x1,this['listenTo'](_0x212eed,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x212eed,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x212eed,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x257f24=this['editor'],_0x410ea0=_0x257f24['plugins']['get'](m),{isNavigationMode:_0x876f15,currentChangeNumber:_0x21320f}=_0x410ea0;let _0x1166d1;if(_0x410ea0['activeChange']=_0x876f15?_0x410ea0['diff']['changes']['get'](_0x21320f+this['_step']):_0x410ea0['diff']['changes']['first'],_0x410ea0['activeChange']['data']['isOnRoot'])_0x1166d1=_0x257f24['editing']['view']['getDomRoot'](_0x410ea0['activeChange']['rootName']);else{const _0x4e945e=_0x257f24['model']['markers']['get']('revision:'+_0x410ea0['activeChange']['id']);_0x1166d1=_0x36fc93(_0x257f24['editing'],_0x4e945e);}_0x213878({'target':_0x1166d1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x21813a,currentChangeNumber:_0x21b677,numberOfChanges:_0x5d8db5,isReady:_0x507970,isEnabled:_0x25595f}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x25595f&&_0x507970&&_0x5d8db5)&&(!_0x21813a||(0x1===this['_step']?_0x21b677<_0x5d8db5-0x1:_0x21b677>0x0));}}class _i extends _0xae5262{constructor(_0x227a87){super(_0x227a87);const _0x3305ce=this['bindTemplate'],_0xd6374f=new _0x40acca(_0x227a87),_0x998f54=new _0x40acca(_0x227a87);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',(_0x3e968f,_0x3ce56c)=>_0x3e968f&&_0x3ce56c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48db81,_0x3a37d9,_0x276a0e,_0x44f84f)=>{if(!_0x48db81)return g(_0x227a87,'Loading...');if(!_0x276a0e)return g(_0x227a87,'No\x20changes');const _0x395bc2=g(_0x227a87,'NUMBER_OF_CHANGES',_0x276a0e);return _0x44f84f?g(_0x227a87,'X_OF_Y_CHANGES',[_0x3a37d9+0x1,_0x276a0e]):_0x395bc2;}),_0xd6374f['set']({'label':g(_0x227a87,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4bd1aa}),_0x998f54['set']({'label':g(_0x227a87,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x92c67f}),_0xd6374f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x998f54['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xd6374f['on']('execute',()=>this['fire']('execute','backward')),_0x998f54['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',_0x3305ce['if']('_isStatusLabelVisible','ck-hidden',_0x4dd976=>!_0x4dd976)]},'children':[{'text':_0x3305ce['to']('isNavigationMode',_0x363c0d=>_0x363c0d?g(_0x227a87,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x227a87,'Total')+':\x20')}]},{'text':_0x3305ce['to']('_statusText')}]},new _0x50c1d1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xd6374f,_0x998f54]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x41ef01{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x23cd8d=this['editor']['editing']['view'];_0x23cd8d['change'](_0x13dc21=>{for(const _0x3822a6 of _0x23cd8d['document']['roots'])_0x13dc21['addClass'](ce,_0x3822a6);});}['hide'](){const _0x4c3c91=this['editor']['editing']['view'];_0x4c3c91['change'](_0xac07f6=>{for(const _0x5a0636 of _0x4c3c91['document']['roots'])_0xac07f6['removeClass'](ce,_0x5a0636);});}}class R extends _0x41ef01{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x51779b=this['editor'],_0x164ea3=_0x51779b['plugins']['get'](m),_0x58c365=_0x51779b['plugins']['get'](le);_0x51779b['ui']['componentFactory']['add']('exitToEditing',_0x230397=>{const _0x3fddc2=new _0x40acca(_0x230397);return _0x3fddc2['set']({'label':g(_0x230397,'Back\x20to\x20editing'),'icon':_0x3e5e78,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3fddc2,'execute',()=>{_0x51779b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3fddc2;}),_0x51779b['ui']['componentFactory']['add']('restoreRevision',_0x2adda4=>{const _0xa32d5f=new _0x40acca(_0x2adda4);return _0xa32d5f['set']({'label':g(_0x2adda4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xa32d5f['bind']('isEnabled')['to'](_0x51779b['commands']['get']('restoreRevision')),this['listenTo'](_0xa32d5f,'execute',()=>_0x51779b['execute']('restoreRevision')),_0xa32d5f;}),_0x51779b['ui']['componentFactory']['add']('changesNavigation',_0x1ae146=>{const _0x43de48=new _i(_0x1ae146),_0x4900fa=_0x51779b['commands']['get']('showPreviousChange'),_0x55a486=_0x51779b['commands']['get']('showNextChange');return _0x43de48['bind']('isBackwardNavigationEnabled')['to'](_0x4900fa,'isEnabled'),_0x43de48['bind']('isForwardNavigationEnabled')['to'](_0x55a486,'isEnabled'),_0x43de48['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x164ea3),this['listenTo'](_0x43de48,'execute',(_0x35d736,_0x165f2d)=>{_0x51779b['execute']('forward'===_0x165f2d?'showNextChange':'showPreviousChange');}),_0x43de48;}),_0x58c365['show'](),_0x164ea3['on']('change:isReady',(_0xf4a504,_0xf44346,_0x4000eb)=>{_0x4000eb?_0x58c365['hide']():_0x58c365['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x4a76bb,_0x2b3a68){super(_0x4a76bb,_0x2b3a68);const _0x5a2bd7=this['bindTemplate'];this['set']({'label':g(_0x4a76bb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x4a76bb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5a2bd7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1a9b9f=this['fieldView']['element'];this['_tooltipString']=_0x1a9b9f['scrollWidth']>_0x1a9b9f['clientWidth']&&_0x1a9b9f['value']||'';}}class oi extends _0xae5262{constructor(_0x4d23bb,_0x4e4969,_0x2e059a){super(_0x4d23bb);const _0x59df79=new _0x573ee6();_0x59df79['set']({'content':_0x44882e,'viewBox':'0\x200\x2011\x2010'});const _0x1a647a=['ck','ck-revision-history-sidebar__revision-author'];_0x2e059a&&_0x1a647a['push']('ck-revision-history-sidebar__revision-author_creator');const _0xb4fee1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4d23bb,_0x2e059a?'Revision\x20creator':'Revision\x20author')},'children':[_0x59df79,_0x4e4969['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1a647a},'children':_0xb4fee1});}}function ni(_0x5674ad,_0x18d739){const _0x3df40f=_0x5674ad['bindTemplate'],_0x33501c=_0x5674ad['locale'],_0xf97b59=_0x3117cd(_0x33501c);_0xf97b59['panelPosition']='sw';const _0x5770c7=function(_0x7d38b7,_0xa8d5f8){const _0x1608d5=function(_0x3c2122,_0x376992){const _0x2dc925=_0x3c2122['locale'],_0x2816a9={'Compare\x20against\x20selected':g(_0x2dc925,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2dc925,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2dc925,'Restore\x20this\x20revision')};return _0x376992['map'](_0x251926=>{const _0x218e58=_0x2816a9[_0x251926['name']];return _0x218e58&&_0x218e58!==_0x251926['name']&&(_0x251926['name']=_0x218e58),_0x251926;});}(_0x7d38b7,_0xa8d5f8),_0xf2e81b=new _0x502d00();for(const _0x19d4fc of _0x1608d5){const _0x234851={'type':'button','model':new to({'label':_0x19d4fc['name'],'class':_0x19d4fc['class'],'withText':!0x0,'role':'menuitem','_action':_0x19d4fc['action']})};_0x234851['model']['bind']('isEnabled')['to'](_0x7d38b7,'isActionsDropdownOpen',_0x66b719=>'function'!=typeof _0x19d4fc['isEnabled']||(!_0x66b719||_0x19d4fc['isEnabled'](_0x7d38b7))),_0xf2e81b['add'](_0x234851);}return _0xf2e81b;}(_0x5674ad,_0x18d739);return _0x5674ad['bind']('isActionsDropdownOpen')['to'](_0xf97b59,'isOpen'),_0xf97b59['buttonView']['set']({'label':g(_0x33501c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5ea6f1}),_0xf97b59['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3df40f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3df40f['to'](_0x577de8=>_0x577de8['stopPropagation']())}}),_0xf97b59['on']('execute',_0x1acaf0=>{_0x5674ad['isReady']&&'function'==typeof _0x1acaf0['source']['_action']&&_0x1acaf0['source']['_action'](_0x5674ad);}),_0x151e5a(_0xf97b59,_0x5770c7,{'role':'menu'}),_0xf97b59['listenTo'](_0x5674ad,'change:isActionsDropdownOpen',(_0x2003fb,_0x132b2b,_0x22cdae)=>{if(_0x22cdae)for(const _0x243847 of _0xf97b59['listView']['items']){const _0x491d26=_0x243847['children']['first'],_0x5a4d2a=_0x18d739['find'](_0x5c82d5=>_0x5c82d5['action']===_0x491d26['_action'])['isVisible'];_0x243847['isVisible']=void 0x0===_0x5a4d2a||_0x5a4d2a(_0x5674ad);}}),_0xf97b59;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x171702(_0xae5262){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4f54b8,_0x4f210c,_0x5e689e,_0x23ec62){super(_0x4f54b8);const _0x483d08=this['bindTemplate'],_0x1b6800=function(_0x262737,_0x5dac81){const _0x315aa8=Array['from'](_0x5dac81['authors'])['filter'](_0x149aa4=>_0x149aa4!=_0x5dac81['creator']);return _0x5dac81['creator']&&_0x315aa8['unshift'](_0x5dac81['creator']),_0x315aa8['map'](_0x13678a=>new oi(_0x262737,_0x13678a,_0x13678a==_0x5dac81['creator']));}(_0x4f54b8,_0x4f210c);this['id']=_0x4f210c['id'],this['_revision']=_0x4f210c,this['_requireRevisionName']=_0x23ec62,this['bind']('name','createdAt')['to'](_0x4f210c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1e3d26=>{return _0x39d509=_0x4f54b8['uiLanguage'],(_0x1e8b93=_0x1e3d26)['toLocaleDateString'](_0x39d509,{'month':'long','day':'numeric'})+',\x20'+_0x1e8b93['toLocaleTimeString'](_0x39d509,{'hour':'numeric','minute':'numeric'});var _0x39d509,_0x1e8b93;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x4f54b8,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33dc7e=>_0x33dc7e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2a8f67,_0x320793)=>_0x2a8f67&&_0x320793),this['revisionActionsView']=_0x5e689e&&_0x5e689e['length']?ni(this,_0x5e689e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x483d08['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x483d08['if']('isEnabled','ck-disabled',_0x5a3218=>!_0x5a3218),_0x483d08['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x483d08['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x483d08['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':_0x483d08['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':_0x1b6800}]},this['revisionActionsView']],'on':{'click':_0x483d08['to'](_0x23d72f=>{_0x23d72f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x8915a1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x8915a1,'change',()=>{this['_requireRevisionName']&&!_0x8915a1['value']||this['fire']('setName',{'id':this['id'],'name':_0x8915a1['value']}),_0x8915a1['value']||(_0x8915a1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x4e12cf,_0x54d949){const _0x4009f8=_0x43e165['fromJSDate'](_0x4e12cf)['setLocale'](_0x54d949),_0x410015=_0x43e165['local'](),_0x2af8d4=_0x410015['minus']({'days':0x1})['startOf']('day');let _0x79a2ea,_0x4732ea;return _0x4009f8['hasSame'](_0x410015,'day')?(_0x79a2ea=_0x4009f8['startOf']('day')['toJSDate'](),_0x4732ea=_0x4009f8['toRelativeCalendar']()):_0x4009f8['hasSame'](_0x2af8d4,'day')?(_0x79a2ea=_0x2af8d4['toJSDate'](),_0x4732ea=_0x4009f8['toRelativeCalendar']()):_0x4009f8['hasSame'](_0x410015,'week')?(_0x79a2ea=_0x4009f8['startOf']('week')['toJSDate'](),_0x4732ea=_0x4009f8['weekdayLong']||''):_0x4009f8['hasSame'](_0x410015,'year')?(_0x79a2ea=_0x4009f8['startOf']('month')['toJSDate'](),_0x4732ea=_0x4009f8['monthLong']||''):(_0x79a2ea=_0x4009f8['startOf']('year')['toJSDate'](),_0x4732ea=String(_0x4009f8['year'])),{'startDate':_0x79a2ea,'localizedPeriodName':_0x4732ea};}class mi extends _0xae5262{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x54f78b,_0x29a09f,_0x56f144,_0x5ad16b){super(_0x54f78b);const _0x3f9048=vi(_0x29a09f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x29a09f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56f144,this['_requireRevisionName']=_0x5ad16b,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':_0x3f9048}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2ed803){const _0x28728f=new ai(this['locale'],_0x2ed803,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x28728f);}['removeRevision'](_0x39293e){const _0x5d1a3e=this['revisionViews']['find'](_0x596b7d=>_0x596b7d['id']===_0x39293e['id']);this['revisionViews']['remove'](_0x5d1a3e);}}class as extends _0xae5262{constructor(_0x215e43){super(_0x215e43);const _0x1c14b8=new _0x573ee6();_0x1c14b8['content']=_0x3b4640,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1c14b8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x215e43,'Revision\x20history')]}]});}}class di extends _0xae5262{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1e3c2a,_0x542938,_0x4a1650,_0x125952){super(_0x1e3c2a);const _0xde6dac=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x542938,this['_revisionActions']=_0x4a1650,this['_requireRevisionName']=_0x125952,this['on']('select',(_0x22df69,_0x1e6575)=>{this['fire']('revisionSelected',_0x1e6575);}),this['on']('setName',(_0x260a38,_0x419ff8)=>{this['fire']('revisionSetName',_0x419ff8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1e3c2a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xde6dac['if']('isEnabled','ck-disabled',_0x12cb7c=>!_0x12cb7c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x395c98 of this['_revisions'])this['_addRevision'](_0x395c98);this['_revisions']['on']('add',(_0x3be5ed,_0x326584)=>{this['_addRevision'](_0x326584);}),this['_revisions']['on']('remove',(_0x20e43f,_0x305f27)=>{this['_removeRevision'](_0x305f27);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3d5482=>_0x3d5482['revisionViews']['map'](_0x22465c=>_0x22465c))['flat']();}['selectRevision'](_0x29ba4b){for(const _0x21b8c6 of this['revisionViews'])_0x29ba4b&&_0x29ba4b['id']===_0x21b8c6['id']?_0x21b8c6['select']():_0x21b8c6['deselect']();}['highlightRevisions'](_0x3d49c4){for(const _0x1a9463 of this['revisionViews'])_0x3d49c4['some'](({id:_0x1218fa})=>_0x1218fa===_0x1a9463['id'])?_0x1a9463['highlight']():_0x1a9463['unhighlight']();}['_addRevision'](_0x5aaaec){const _0x3abf03=vi(_0x5aaaec['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x397089=this['timePeriodViews']['get'](0x0);_0x397089&&_0x397089['startDate']['getTime']()===_0x3abf03['getTime']()||(_0x397089=new mi(this['locale'],_0x3abf03,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x397089)),_0x397089['addRevision'](_0x5aaaec);}['_removeRevision'](_0x50204c){const _0x429e06=vi(_0x50204c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x429e06)['removeRevision'](_0x50204c);}['_getTimePeriodViewByStartDate'](_0x516721){return this['timePeriodViews']['find'](_0x27459e=>_0x27459e['startDate']['getTime']()===_0x516721['getTime']());}}class d extends _0x41ef01{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x5216bc){super(_0x5216bc),this['_revisionViewer']=_0x5216bc['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x24aea2=this['_revisionsRepository']['_revisions'],_0x4d98dd=this['_createRevisionActions'](),_0x4d62ca=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x24aea2,_0x4d98dd,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',(_0x4edb57,_0x4c18f1)=>{_0x4c18f1['revisionViews']['on']('add',(_0x58a1d1,_0x1fc6b1)=>{_0x1fc6b1['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)),_0x4d62ca['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x30dfad=this['_revisionsRepository']['getRevision'](0x0);if(_0x30dfad){const _0x5e3e5c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x30dfad['id']);this['_revisionViewer']['compare'](_0x30dfad,_0x5e3e5c);}}['_handleRevisionSelected'](_0x329764,_0x2062b4){const _0x260d87=this['_revisionsRepository']['getRevision'](_0x2062b4['id']),_0x20d8fc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x260d87['id']);this['_revisionViewer']['compare'](_0x260d87,_0x20d8fc);}['_handleRevisionSetName'](_0xec6c4e,_0x453c79){this['_revisionsRepository']['getRevision'](_0x453c79['id'])['setName'](_0x453c79['name']);}['_handleDiffChange'](_0x33da67,_0xe8fb26,_0x526c45){const _0x5bbd90=this['_revisionsRepository']['getRevisionsInDiff'](_0x526c45);_0x5bbd90['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5bbd90),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5bbd90[0x0]));}['_createRevisionActions'](){const _0x4603e0=this['editor'],_0xc7422e=d['availableRevisionActions'],_0x4a5327=_0x4603e0['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x4a5327['length'])return _0x4a5327['map'](_0x1b49a7=>{const _0x27f207='string'==typeof _0x1b49a7?Object['assign']({},_0xc7422e[_0x1b49a7]):_0x1b49a7;return _0x27f207['action']=_0x27f207['action']['bind'](this,_0x4603e0),_0x27f207['isVisible']&&(_0x27f207['isVisible']=_0x27f207['isVisible']['bind'](this,_0x4603e0)),_0x27f207;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x23eec9},_0x295f99)=>{const _0x5c61a8=_0x23eec9['get'](m),_0x151c06=_0x5c61a8['repository'];let _0x4633aa=_0x5c61a8['diff']['newRevisionId'],_0x5e5a9e=_0x295f99['id'];_0x151c06['getIndex'](_0x4633aa)>_0x151c06['getIndex'](_0x5e5a9e)&&([_0x4633aa,_0x5e5a9e]=[_0x5e5a9e,_0x4633aa]),_0x5c61a8['compare'](_0x4633aa,_0x5e5a9e);},'isVisible':({plugins:_0x2a67fb},_0xa3af35)=>{const _0x2a0cfe=_0x2a67fb['get'](m);return!(_0x2a0cfe['repository']['getRevisionsInDiff'](_0x2a0cfe['diff'])['length']>0x2)&&!_0xa3af35['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x28d389,{id:_0x3aa296})=>{_0x28d389['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3aa296);},'isVisible':({plugins:_0x46a224},_0x4da74b)=>!!_0x46a224['get'](m)['repository']['getLaterVisibleRevision'](_0x4da74b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1c4623},{id:_0x232267,revisionNameView:_0x1a855d})=>{const _0x470667=_0x1c4623['get'](m),_0x3d425e=_0x470667['repository']['getEarlierVisibleRevision'](_0x232267);_0x470667['compare'](_0x232267,_0x3d425e),_0x1a855d['focus'](),_0x1a855d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x52352e,_0xff392a){super(_0x52352e),this['_view']=_0xff392a,this['_toolbarConfig']=et(_0x52352e['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4bdfc5){const _0x185519=this['editor'],_0x5b9634=this['view'],_0x15716b=_0x185519['editing']['view'],_0x27925f=_0x5b9634['editable'],_0x51beea=_0x15716b['document']['getRoot']();_0x27925f['name']=_0x51beea['rootName'],_0x5b9634['render']();const _0x38436f=_0x27925f['element'];this['setEditableElement'](_0x27925f['name'],_0x38436f),_0x5b9634['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x15716b['attachDomRoot'](_0x38436f),this['_elementReplacer']['replace'](_0x4bdfc5,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x214afa=this['view'],_0x4af084=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4af084['detachDomRoot'](_0x214afa['editable']['name']),_0x214afa['destroy']();}['_initToolbar'](){const _0x5106e5=this['view'];_0x5106e5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5106e5['stickyPanel']['limiterElement']=_0x5106e5['element'],_0x5106e5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x58f77f})=>_0x58f77f),_0x5106e5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5106e5['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5960ff,_0x321671,_0x276e33={}){super(_0x5960ff),this['stickyPanel']=new ht(_0x5960ff),this['toolbar']=new dt(_0x5960ff,{'shouldGroupWhenFull':_0x276e33['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x5960ff,_0x321671);}['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
- _0x1734c3(_0x4bfe92){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5ebef9,_0x52ace4){super(_0x52ace4),this['sourceElement']=_0x5ebef9,this['model']['document']['createRoot']();const _0x4f1da4=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4f1da4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x86de49,_0xd3d975){const _0x482a14=new this(_0x86de49,_0xd3d975);return await _0x482a14['initPlugins'](),await _0x482a14['ui']['init'](_0x86de49),await _0x482a14['data']['init'](_0x482a14['config']['get']('initialData')||''),_0x482a14['fire']('ready'),_0x482a14;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x1c4af5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b2c0f){function _0x19bbf4(_0x8ab2aa){return _0x8ab2aa['map'](_0x3edaca=>String['fromCharCode'](_0x3edaca))['join']('');}super(_0x2b2c0f),this['result']='end',_0x2b2c0f[_0x19bbf4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19bbf4([0x76,0x69,0x65,0x77])][_0x19bbf4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19bbf4([0x61,0x75,0x74,0x6f]),_0x2b2c0f[_0x19bbf4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x19bbf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19bbf4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x19bbf4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x19bbf4([0x6f,0x6b])});}}class k extends _0x1c4af5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1f139c){if(super(_0x1f139c),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a3a89('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4adf25=>this['_showRevisionViewer']({..._0x4adf25,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1ead51=>this['_closeRevisionViewer'](_0x1ead51)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1e08a4=>this['_restoreRevision'](_0x1e08a4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5cd3a7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5cd3a7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x13ede4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x13ede4);}['getRevision'](_0x1186ae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1186ae);}['getRevisions'](_0x44fc52){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x44fc52||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3bcd1a=this['editor'],_0x207669=_0x2aa71f(_0x3bcd1a,p),_0x38092e=_0x3bcd1a['plugins']['get']('RevisionTracker'),_0x3b738c=_0x3bcd1a['plugins']['get']('Users')['users'];return _0x207669['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x207669['lazyRoots'],(_0x207669['plugins']['push'](yt,m,R,class extends _0x1c4af5{static get['requires'](){return[m,'Users'];}['init'](){const _0x3c87e6=this['editor']['plugins']['get']('Users');for(const _0x39691b of _0x3b738c)_0x39691b['isAnonymous']||_0x3c87e6['getUser'](_0x39691b['id'])||_0x3c87e6['addUser'](_0x39691b);const _0x2a9d67=_0x38092e['repository']['getRevisions']();let _0x53345b=null;const _0xb979e4=this['editor']['plugins']['get']('RevisionViewer');_0xb979e4['adapter']=_0x38092e['adapter'],_0xb979e4['bind']('isEnabled')['to'](_0x38092e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3bcd1a,'isReadOnly',_0x4b1932=>!_0x4b1932);for(const _0x42258d of _0x2a9d67){const _0x3cdc3c=null===_0x42258d['creator'];if(_0x3cdc3c&&_0x42258d['toVersion']===_0x42258d['fromVersion'])continue;const _0x1b052e=_0x42258d['toJSON']();_0xb979e4['addRevisionData'](_0x1b052e,(_0x183928,_0x167f15,_0x11298f)=>{if(_0x3cdc3c){if(_0x53345b)_0x53345b['_update'](_0x183928,_0x167f15);else{if(!_0x167f15){const _0x41b507=_0x11298f['toJSON']();_0x41b507['id']=_0x23ef34(),_0x38092e['saveRevision'](_0x41b507,_0x11298f['toVersion'])['then'](_0x46745e=>{_0x53345b=_0x46745e;});}}}else _0x42258d['_update'](_0x183928,_0x167f15);});}}},d),_0x207669);}['_enhanceShowRevisionViewerCallback'](){const _0x21ab7c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1cbabb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2b103d=this['editor']['plugins']['get']('Autosave');await _0x2b103d['save']();}else await _0x1cbabb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3ccbb2=this['editor']['plugins']['get']('Dialog');_0x3ccbb2['isOpen']&&_0x3ccbb2['hide']();}const _0x50a4d6=this['_getRevisionViewerEditorConfig']();return _0x21ab7c(_0x50a4d6)['then'](_0x208c18=>{return(this['_viewerEditor']=_0x208c18,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x208c18);})['catch'](_0x49e2ca=>(console['error'](_0x49e2ca),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2762f8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2762f8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x461927=this['editor']['plugins']['get']('Annotations');_0x461927['refreshVisibility'](),_0x461927['refreshPositioning']();}})));}['_showRevisionViewer'](_0x348b2e){const _0x2200e2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4e76c0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x43b1ea=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x43b1ea,_0x348b2e)['then'](_0x5f1c39=>(_0x4e76c0['style']['display']='block',_0x2200e2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5f1c39));}['_closeRevisionViewer'](_0x343470){const _0x5d77fe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5d77fe['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x343470['destroy']();}async['_restoreRevision'](_0x2025b3){const _0x53a948=this['editor'],_0x3e9c52=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4c3215=_0x53a948['plugins']['get']('RevisionTracker'),_0x1caa65=_0x53a948['plugins']['get']('RevisionHistoryUtils'),_0x3ba7c7=_0x3e9c52['repository']['getRevision'](_0x2025b3);let _0x43a47e,_0xd942aa,_0x4c6f99;try{await _0x1caa65['loadRevisionData'](_0x3ba7c7,this['adapter']),_0x43a47e=_0x1caa65['getRevisionDocumentData'](_0x3ba7c7),_0xd942aa=_0x1caa65['getRevisionRootsAttributes'](_0x3ba7c7);}catch(_0x3002e9){return void console['error'](_0x3002e9);}_0x53a948['model']['change'](_0x3ef6f0=>{for(const _0x5bc52f of Array['from'](_0x53a948['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ef6f0['removeMarker'](_0x5bc52f);}),_0x3e9c52['isReady']=!0x1,_0x53a948['model']['enqueueChange'](_0x319ac7=>{_0x319ac7['setSelection'](null),_0x319ac7['removeSelectionAttribute'](_0x53a948['model']['document']['selection']['getAttributeKeys']());const _0x438d06=Object['keys'](_0x43a47e);for(const _0x3d2862 of _0x53a948['model']['document']['roots'])'$graveyard'!=_0x3d2862['rootName']&&_0x3d2862['isAttached']()&&!_0x438d06['includes'](_0x3d2862['rootName'])&&_0x319ac7['detachRoot'](_0x3d2862);for(const _0x5a9ad5 of _0x438d06){let _0xe1954e=_0x53a948['model']['document']['getRoot'](_0x5a9ad5);_0xe1954e&&_0xe1954e['isAttached']()||(_0xe1954e=_0x319ac7['addRoot'](_0x5a9ad5));const _0x145289=_0xd942aa[_0x5a9ad5],_0x18ea68=Object['keys'](_0x145289),_0x3a90d2=_0x43a47e[_0x5a9ad5];for(const _0x1b3db5 of _0xe1954e['getAttributeKeys']())_0x18ea68['includes'](_0x1b3db5)||_0x319ac7['removeAttribute'](_0x1b3db5,_0xe1954e);for(const _0x18d7e8 of _0x18ea68)_0x319ac7['setAttribute'](_0x18d7e8,_0xd942aa[_0x5a9ad5][_0x18d7e8],_0xe1954e);_0x319ac7['remove'](_0x319ac7['createRangeIn'](_0xe1954e)),_0x319ac7['insert'](_0x53a948['data']['parse'](_0x3a90d2,_0xe1954e),_0xe1954e,0x0);}});const _0x31ea7b=g(_0x53a948['locale'],'Restored');if(_0x3ba7c7['name'])_0x4c6f99=-0x1==_0x3ba7c7['name']['indexOf'](_0x31ea7b)?_0x31ea7b+':\x20'+_0x3ba7c7['name']:_0x3ba7c7['name'];else _0x4c6f99=_0x31ea7b+':\x20'+(_0x3ba7c7['createdAt']['toLocaleDateString'](_0x53a948['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ba7c7['createdAt']['toLocaleTimeString'](_0x53a948['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4c3215['saveRevision']({'name':_0x4c6f99}),_0x3e9c52['isReady']=!0x0,_0x53a948['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4d8b8d){super(_0x4d8b8d),this['_revisionViewer']=_0x4d8b8d['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x485ab1=this['_revisionsRepository']['_revisions'],_0x47ae4d=this['_createRevisionActions'](),_0x46378c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x485ab1,_0x47ae4d,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',(_0x56f688,_0x2face2)=>{_0x2face2['revisionViews']['on']('add',(_0x13c585,_0x1e6637)=>{_0x1e6637['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)),_0x46378c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3fb2ee=this['_revisionsRepository']['getRevision'](0x0);if(_0x3fb2ee){const _0x3bf91c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3fb2ee['id']);this['_revisionViewer']['compare'](_0x3fb2ee,_0x3bf91c);}}['_handleRevisionSelected'](_0x5ec552,_0x3618bb){const _0x1a6286=this['_revisionsRepository']['getRevision'](_0x3618bb['id']),_0x56294a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1a6286['id']);this['_revisionViewer']['compare'](_0x1a6286,_0x56294a);}['_handleRevisionSetName'](_0x158641,_0x4e42e1){this['_revisionsRepository']['getRevision'](_0x4e42e1['id'])['setName'](_0x4e42e1['name']);}['_handleDiffChange'](_0x25cb5d,_0x164fdd,_0x3b9e56){const _0x3f5d9c=this['_revisionsRepository']['getRevisionsInDiff'](_0x3b9e56);_0x3f5d9c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f5d9c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f5d9c[0x0]));}['_createRevisionActions'](){const _0x2bc816=this['editor'],_0x33810f=d['availableRevisionActions'],_0x3f934c=_0x2bc816['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3f934c['length'])return _0x3f934c['map'](_0x558bfd=>{const _0x4291b7='string'==typeof _0x558bfd?Object['assign']({},_0x33810f[_0x558bfd]):_0x558bfd;return _0x4291b7['action']=_0x4291b7['action']['bind'](this,_0x2bc816),_0x4291b7['isVisible']&&(_0x4291b7['isVisible']=_0x4291b7['isVisible']['bind'](this,_0x2bc816)),_0x4291b7;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x52377f},_0x14d428)=>{const _0x1507d0=_0x52377f['get'](m),_0x4f6957=_0x1507d0['repository'];let _0x4004c8=_0x1507d0['diff']['newRevisionId'],_0x571b5f=_0x14d428['id'];_0x4f6957['getIndex'](_0x4004c8)>_0x4f6957['getIndex'](_0x571b5f)&&([_0x4004c8,_0x571b5f]=[_0x571b5f,_0x4004c8]),_0x1507d0['compare'](_0x4004c8,_0x571b5f);},'isVisible':({plugins:_0x2c99d1},_0x1af68a)=>{const _0x44cecf=_0x2c99d1['get'](m);return!(_0x44cecf['repository']['getRevisionsInDiff'](_0x44cecf['diff'])['length']>0x2)&&!_0x1af68a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23580e,{id:_0x5c64cb})=>{_0x23580e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c64cb);},'isVisible':({plugins:_0x42bf9b},_0x30d184)=>!!_0x42bf9b['get'](m)['repository']['getLaterVisibleRevision'](_0x30d184['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x44419c},{id:_0x413d18,revisionNameView:_0x5b35e9})=>{const _0x208676=_0x44419c['get'](m),_0x128262=_0x208676['repository']['getEarlierVisibleRevision'](_0x413d18);_0x208676['compare'](_0x413d18,_0x128262),_0x5b35e9['focus'](),_0x5b35e9['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5a0d60,_0x2e8f63){super(_0x5a0d60),this['_view']=_0x2e8f63,this['_toolbarConfig']=et(_0x5a0d60['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xa4c5c1){const _0x4b9dff=this['editor'],_0xd121fc=this['view'],_0x45db17=_0x4b9dff['editing']['view'],_0x17c18f=_0xd121fc['editable'],_0x1cf949=_0x45db17['document']['getRoot']();_0x17c18f['name']=_0x1cf949['rootName'],_0xd121fc['render']();const _0x32682d=_0x17c18f['element'];this['setEditableElement'](_0x17c18f['name'],_0x32682d),_0xd121fc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x45db17['attachDomRoot'](_0x32682d),this['_elementReplacer']['replace'](_0xa4c5c1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x155c6a=this['view'],_0x998540=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x998540['detachDomRoot'](_0x155c6a['editable']['name']),_0x155c6a['destroy']();}['_initToolbar'](){const _0xa1675a=this['view'];_0xa1675a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xa1675a['stickyPanel']['limiterElement']=_0xa1675a['element'],_0xa1675a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x14dff8})=>_0x14dff8),_0xa1675a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xa1675a['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1127e4,_0x2db285,_0x218306={}){super(_0x1127e4),this['stickyPanel']=new ht(_0x1127e4),this['toolbar']=new dt(_0x1127e4,{'shouldGroupWhenFull':_0x218306['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1127e4,_0x2db285);}['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
+ _0x2da239(_0x79ef38){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4890f2,_0x2560d8){super(_0x2560d8),this['sourceElement']=_0x4890f2,this['model']['document']['createRoot']();const _0x5a729a=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5a729a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3f9d58,_0x2e9afb){const _0x3ecbc4=new this(_0x3f9d58,_0x2e9afb);return await _0x3ecbc4['initPlugins'](),await _0x3ecbc4['ui']['init'](_0x3f9d58),await _0x3ecbc4['data']['init'](_0x3ecbc4['config']['get']('initialData')||''),_0x3ecbc4['fire']('ready'),_0x3ecbc4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x41ef01{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a3c19){function _0x854503(_0x5cf2a7){return _0x5cf2a7['map'](_0x565b01=>String['fromCharCode'](_0x565b01))['join']('');}super(_0x4a3c19),this['result']='end',_0x4a3c19[_0x854503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x854503([0x76,0x69,0x65,0x77])][_0x854503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x854503([0x61,0x75,0x74,0x6f]),_0x4a3c19[_0x854503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x854503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x854503([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x854503([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x854503([0x6f,0x6b])});}}class k extends _0x41ef01{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x28f6ab){if(super(_0x28f6ab),!this['editor']['config']['get']('revisionHistory'))throw new _0x5450f3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x43cacf=>this['_showRevisionViewer']({..._0x43cacf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x276ec1=>this['_closeRevisionViewer'](_0x276ec1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x12c476=>this['_restoreRevision'](_0x12c476)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3ba73f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3ba73f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x21dd61){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x21dd61);}['getRevision'](_0x48da06){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x48da06);}['getRevisions'](_0x21d8fd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x21d8fd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x131bf1=this['editor'],_0x1ee036=_0x499279(_0x131bf1,p),_0x5b003b=_0x131bf1['plugins']['get']('RevisionTracker'),_0xc1097=_0x131bf1['plugins']['get']('Users')['users'];return _0x1ee036['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1ee036['lazyRoots'],(_0x1ee036['plugins']['push'](yt,m,R,class extends _0x41ef01{static get['requires'](){return[m,'Users'];}['init'](){const _0xabf587=this['editor']['plugins']['get']('Users');for(const _0x51532a of _0xc1097)_0x51532a['isAnonymous']||_0xabf587['getUser'](_0x51532a['id'])||_0xabf587['addUser'](_0x51532a);const _0x2b4e59=_0x5b003b['repository']['getRevisions']();let _0xa15746=null;const _0x432c15=this['editor']['plugins']['get']('RevisionViewer');_0x432c15['adapter']=_0x5b003b['adapter'],_0x432c15['bind']('isEnabled')['to'](_0x5b003b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x131bf1,'isReadOnly',_0x4e4373=>!_0x4e4373);for(const _0x30bd4d of _0x2b4e59){const _0x978537=null===_0x30bd4d['creator'];if(_0x978537&&_0x30bd4d['toVersion']===_0x30bd4d['fromVersion'])continue;const _0x44d4cf=_0x30bd4d['toJSON']();_0x432c15['addRevisionData'](_0x44d4cf,(_0x213dc5,_0x33a154,_0x36ba15)=>{if(_0x978537){if(_0xa15746)_0xa15746['_update'](_0x213dc5,_0x33a154);else{if(!_0x33a154){const _0x5fe989=_0x36ba15['toJSON']();_0x5fe989['id']=_0x239983(),_0x5b003b['saveRevision'](_0x5fe989,_0x36ba15['toVersion'])['then'](_0xa01789=>{_0xa15746=_0xa01789;});}}}else _0x30bd4d['_update'](_0x213dc5,_0x33a154);});}}},d),_0x1ee036);}['_enhanceShowRevisionViewerCallback'](){const _0x444def=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x44d3c2=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x286b55=this['editor']['plugins']['get']('Autosave');await _0x286b55['save']();}else await _0x44d3c2['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2b2c61=this['editor']['plugins']['get']('Dialog');_0x2b2c61['isOpen']&&_0x2b2c61['hide']();}const _0x125bf5=this['_getRevisionViewerEditorConfig']();return _0x444def(_0x125bf5)['then'](_0x3646c0=>{return(this['_viewerEditor']=_0x3646c0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3646c0);})['catch'](_0x5f0c95=>(console['error'](_0x5f0c95),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4c3a0e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4c3a0e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d6735=this['editor']['plugins']['get']('Annotations');_0x5d6735['refreshVisibility'](),_0x5d6735['refreshPositioning']();}})));}['_showRevisionViewer'](_0x457432){const _0x4d12fb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5a62a4=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4c4a16=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4c4a16,_0x457432)['then'](_0x521273=>(_0x5a62a4['style']['display']='block',_0x4d12fb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x521273));}['_closeRevisionViewer'](_0x558972){const _0x566a1f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x566a1f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x558972['destroy']();}async['_restoreRevision'](_0x3793e9){const _0x49bcf9=this['editor'],_0x5aaa0f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3e68f5=_0x49bcf9['plugins']['get']('RevisionTracker'),_0x11b610=_0x49bcf9['plugins']['get']('RevisionHistoryUtils'),_0x9d3db2=_0x5aaa0f['repository']['getRevision'](_0x3793e9);let _0x3df911,_0x3822bd,_0x1561ee;try{await _0x11b610['loadRevisionData'](_0x9d3db2,this['adapter']),_0x3df911=_0x11b610['getRevisionDocumentData'](_0x9d3db2),_0x3822bd=_0x11b610['getRevisionRootsAttributes'](_0x9d3db2);}catch(_0x3c07b5){return void console['error'](_0x3c07b5);}_0x49bcf9['model']['change'](_0xa3df1c=>{for(const _0x8fe2d4 of Array['from'](_0x49bcf9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xa3df1c['removeMarker'](_0x8fe2d4);}),_0x5aaa0f['isReady']=!0x1,_0x49bcf9['model']['enqueueChange'](_0x446907=>{_0x446907['setSelection'](null),_0x446907['removeSelectionAttribute'](_0x49bcf9['model']['document']['selection']['getAttributeKeys']());const _0x57a35d=Object['keys'](_0x3df911);for(const _0x1f7768 of _0x49bcf9['model']['document']['roots'])'$graveyard'!=_0x1f7768['rootName']&&_0x1f7768['isAttached']()&&!_0x57a35d['includes'](_0x1f7768['rootName'])&&_0x446907['detachRoot'](_0x1f7768);for(const _0x3e9d77 of _0x57a35d){let _0xf10f27=_0x49bcf9['model']['document']['getRoot'](_0x3e9d77);_0xf10f27&&_0xf10f27['isAttached']()||(_0xf10f27=_0x446907['addRoot'](_0x3e9d77));const _0x3b7267=_0x3822bd[_0x3e9d77],_0x2bae35=Object['keys'](_0x3b7267),_0x53ec07=_0x3df911[_0x3e9d77];for(const _0x5ad292 of _0xf10f27['getAttributeKeys']())_0x2bae35['includes'](_0x5ad292)||_0x446907['removeAttribute'](_0x5ad292,_0xf10f27);for(const _0x5b3975 of _0x2bae35)_0x446907['setAttribute'](_0x5b3975,_0x3822bd[_0x3e9d77][_0x5b3975],_0xf10f27);_0x446907['remove'](_0x446907['createRangeIn'](_0xf10f27)),_0x446907['insert'](_0x49bcf9['data']['parse'](_0x53ec07,_0xf10f27),_0xf10f27,0x0);}});const _0x35b258=g(_0x49bcf9['locale'],'Restored');if(_0x9d3db2['name'])_0x1561ee=-0x1==_0x9d3db2['name']['indexOf'](_0x35b258)?_0x35b258+':\x20'+_0x9d3db2['name']:_0x9d3db2['name'];else _0x1561ee=_0x35b258+':\x20'+(_0x9d3db2['createdAt']['toLocaleDateString'](_0x49bcf9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x9d3db2['createdAt']['toLocaleTimeString'](_0x49bcf9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3e68f5['saveRevision']({'name':_0x1561ee}),_0x5aaa0f['isReady']=!0x0,_0x49bcf9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};