@ckeditor/ckeditor5-revision-history 44.2.0-alpha.4 → 44.2.0-alpha.6

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 _0x148fd3,uid as _0x47d60e,Collection as _0x5ce501,logWarning as _0x1c5116,FocusTracker as _0x3aabf5,KeystrokeHandler as _0x1fa605,scrollViewportToShowTarget as _0x33e663,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x26b2e5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x859668,set as _0x376a0f,unset as _0x16207e,isEqual as _0x4d6fd7}from'lodash-es';import{Plugin as _0x3a930c,PendingActions as _0x17542e,icons as _0x3d598a,Command as _0x61e888,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x110fe7,getMarkerDomElement as _0x5f1a64,ConfirmMixin as _0x2c4e88,sanitizeEditorConfig as _0x25947f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2f1ec0,ViewText as _0x143292,ViewElement as _0x4f6869,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x3bd9fb,ViewAttributeElement as _0x214754,ViewEmptyElement as _0x28f78a,ViewRawElement as _0x41ef08,ViewUIElement as _0x56c447,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3e13f8,injectCssTransitionDisabler as ts,submitHandler as _0x279f40,LabeledFieldView as nt,createLabeledInputText as _0x5deecd,createDropdown as _0xe7d5ec,ListView as te,ListItemView as _0x1675e6,ButtonView as _0x205196,MenuBarMenuView as _0x1d015f,MenuBarMenuListView as _0x5a7866,MenuBarMenuListItemView as _0x56ee5b,MenuBarMenuListItemButtonView as _0x2f9589,ContextualBalloon as _0x5d0955,ToolbarSeparatorView as _0x1e2317,IconView as _0x3bf64e,addListToDropdown as _0x22b221,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x9eff8c}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x148fd3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4c6dcf){super(),this['id']=_0x4c6dcf['id']||_0x47d60e(),this['creator']=_0x4c6dcf['creator']||null,this['authors']=_0x4c6dcf['authors']||[],this['diffData']=_0x4c6dcf['diffData']||null,this['toVersion']=_0x4c6dcf['toVersion']||0x0,this['fromVersion']=_0x4c6dcf['fromVersion']||0x0,this['set']('name',_0x4c6dcf['name']||''),this['set']('createdAt',_0x4c6dcf['createdAt']||new Date()),this['set']('attributes',_0x4c6dcf['attributes']||{});}['setName'](_0x1cb757){this['_update']({'name':_0x1cb757});}['setAttribute'](_0x902007,_0x2a4e86){const _0x524c17=_0x859668(this['attributes']);_0x376a0f(_0x524c17,_0x902007,_0x2a4e86),this['_update']({'attributes':_0x524c17});}['removeAttribute'](_0xcc5f5){const _0x33aad6=_0x859668(this['attributes']);_0x16207e(_0x33aad6,_0xcc5f5),this['_update']({'attributes':_0x33aad6});}['_update'](_0x371c10,_0x37b326=!0x1){let _0x2fc1bc=!0x1;const _0x4e44ed={'id':this['id']},_0x3afd9b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x17750b of _0x3afd9b){const _0x4894b1=_0x371c10[_0x17750b];void 0x0!==_0x4894b1&&_0x4894b1!==this[_0x17750b]&&(this[_0x17750b]=_0x4894b1,_0x4e44ed[_0x17750b]=_0x4894b1,_0x2fc1bc=!0x0);}_0x2fc1bc&&(_0x4e44ed['authors']&&(_0x4e44ed['authorsIds']=_0x4e44ed['authors']['map'](_0x39d58d=>_0x39d58d['id']),delete _0x4e44ed['authors']),this['fire']('_update',_0x4e44ed,_0x37b326));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x19fe73=>_0x19fe73['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3a930c{['_revisions'];static get['requires'](){return[_0x110fe7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3ace78){super(_0x3ace78),this['_revisions']=new _0x5ce501();}['afterInit'](){!async function(_0x54a07b){const _0x343f43=_0x8afc3d([0x38,0x47,0x64,0x48,0x75,0x70,0x30,0x50,0x53,0x66,0x68,0x49,0x7a,0x33,0x5a,0x37,0x65,0x39,0x62,0x44,0x63,0x6b,0x4b,0x36,0x74,0x52,0x4f,0x57,0x78,0x72,0x55,0x77,0x42,0x34,0x79,0x6c,0x58,0x54,0x4e,0x32,0x46,0x4a,0x51,0x43,0x4c,0x4d,0x67,0x6a,0x6d,0x6f,0x73,0x76,0x31,0x71,0x61,0x41,0x59,0x56,0x6e,0x69,0x45,0x35]),_0x21eed5=0xeb829,_0x3e0c32=0x5172952d,_0x1e7f40=0x5175cb6d^_0x3e0c32,_0x10b7f7=window[_0x8afc3d([0x44,0x61,0x74,0x65])][_0x8afc3d([0x6e,0x6f,0x77])](),_0x46fa0c=_0x54a07b[_0x8afc3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa828bb=new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ed37b=>{_0x46fa0c[_0x8afc3d([0x6f,0x6e,0x63,0x65])](_0x8afc3d([0x72,0x65,0x61,0x64,0x79]),_0x5ed37b);}),_0x5b685c={[_0x8afc3d([0x6b,0x74,0x79])]:_0x8afc3d([0x45,0x43]),[_0x8afc3d([0x75,0x73,0x65])]:_0x8afc3d([0x73,0x69,0x67]),[_0x8afc3d([0x63,0x72,0x76])]:_0x8afc3d([0x50,0x2d,0x32,0x35,0x36]),[_0x8afc3d([0x78])]:_0x8afc3d([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]),[_0x8afc3d([0x79])]:_0x8afc3d([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]),[_0x8afc3d([0x61,0x6c,0x67])]:_0x8afc3d([0x45,0x53,0x32,0x35,0x36])},_0x16e701=_0x46fa0c[_0x8afc3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8afc3d([0x67,0x65,0x74])](_0x8afc3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d19d5(){let _0x57a971,_0x59a23e=null,_0x2e26bf=null;try{if(_0x16e701==_0x8afc3d([0x47,0x50,0x4c]))return _0x8afc3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57a971=_0x1cdd73(),!_0x57a971)return _0x8afc3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57a971[_0x8afc3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e26bf=_0x3157ae(_0x57a971[_0x8afc3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57a971[_0x8afc3d([0x6a,0x74,0x69])])),await _0x22cdfa()?_0x4b25e8()?_0x1c973a()?_0x8afc3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23e8b9()?(_0x57a971[_0x8afc3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8afc3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59a23e=_0x10f243(_0x8afc3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57a971[_0x8afc3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8afc3d([0x74,0x72,0x69,0x61,0x6c])&&(_0x59a23e=_0x10f243(_0x8afc3d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e2fda()):_0x8afc3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8afc3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8afc3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ea3e5){return _0x8afc3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c973a(){const _0x33effb=[_0x8afc3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8afc3d([0x74,0x72,0x69,0x61,0x6c])][_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57a971[_0x8afc3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10b7f7/0x3e8:0xe10*_0x1e7f40;return _0x57a971[_0x8afc3d([0x65,0x78,0x70])]<_0x33effb;}function _0x4b25e8(){const _0x47e314=_0x57a971[_0x8afc3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47e314)return!0x1;if(_0x47e314[_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8afc3d([0x2a])))return!0x0;if(_0x47e314[_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8afc3d([0x52,0x48])))return!0x0;if(_0x47e314[_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8afc3d([0x52,0x52,0x48]))){if(_0x5666e6())return!0x0;if(_0x57d069()||_0x5b6cc6())return!0x0;}return!0x1;}function _0x23e8b9(){const _0x38e1d5=_0x57a971[_0x8afc3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38e1d5||0x0==_0x38e1d5[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf23d19}=new URL(window[_0x8afc3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38e1d5[_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf23d19))return!0x0;const _0x3eafd4=_0xf23d19[_0x8afc3d([0x73,0x70,0x6c,0x69,0x74])](_0x8afc3d([0x2e]));return _0x38e1d5[_0x8afc3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35a827=>_0x35a827[_0x8afc3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8afc3d([0x2a])))[_0x8afc3d([0x6d,0x61,0x70])](_0x55db74=>_0x55db74[_0x8afc3d([0x73,0x70,0x6c,0x69,0x74])](_0x8afc3d([0x2e])))[_0x8afc3d([0x73,0x6f,0x6d,0x65])](_0x247588=>_0x3eafd4[_0x8afc3d([0x65,0x76,0x65,0x72,0x79])]((_0x276d2e,_0x3182d1)=>_0x247588[_0x3182d1]===_0x276d2e||_0x247588[_0x3182d1]===_0x8afc3d([0x2a])));}function _0x2e2fda(){return _0x59a23e&&_0x2e26bf?new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5de23a,_0x593563)=>{_0x59a23e[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x5de23a,_0x593563),_0x2e26bf[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x128624=>{_0x128624!=_0x8afc3d([0x56,0x61,0x6c,0x69,0x64])&&_0x5de23a(_0x128624);},_0x593563);}):_0x59a23e||_0x2e26bf||_0x8afc3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3157ae(_0x1a798c,_0x121339){return new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1bdc=>{if(_0x4c2636())return _0x2d1bdc(_0x8afc3d([0x56,0x61,0x6c,0x69,0x64]));_0x585864(),_0x46fa0c[_0x8afc3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8afc3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cbc26=!0x1;const _0x4e1320=_0x47d60e();function _0x232cf1(_0x2adc07){return!!_0x2adc07&&(typeof _0x2adc07===_0x8afc3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2adc07===_0x8afc3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2adc07[_0x8afc3d([0x74,0x68,0x65,0x6e])]===_0x8afc3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2adc07[_0x8afc3d([0x63,0x61,0x74,0x63,0x68])]===_0x8afc3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a881d(_0x5bde7b){_0x2d8d58(_0x5bde7b)[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x67a5a3=>{if(!_0x67a5a3||_0x67a5a3[_0x8afc3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8afc3d([0x6f,0x6b]))return _0x8afc3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55339a(_0x37d637(_0x4e1320+_0x121339))!=_0x67a5a3[_0x8afc3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8afc3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8afc3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x643b95=>(_0x127291(),_0x643b95),()=>{const _0x5f1647=_0x18e22e();return null==_0x5f1647?(_0x127291(),_0x8afc3d([0x56,0x61,0x6c,0x69,0x64])):_0x8afc3d(_0x10b7f7-_0x5f1647>(0x757e112d^_0x3e0c32)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x2d1bdc)[_0x8afc3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d1bdc(_0x8afc3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e1f43=0x51447bad^_0x3e0c32;function _0x127291(){const _0x4f07ad=_0x8afc3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x55339a(_0x37d637(_0x1a798c)),_0x2db816=_0x427062(_0x55339a(window[_0x8afc3d([0x4d,0x61,0x74,0x68])][_0x8afc3d([0x63,0x65,0x69,0x6c])](_0x10b7f7/_0x1e1f43)));window[_0x8afc3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8afc3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f07ad,_0x2db816);}function _0x18e22e(){const _0x1f43b9=_0x8afc3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x55339a(_0x37d637(_0x1a798c)),_0x1ca761=window[_0x8afc3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8afc3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f43b9);return _0x1ca761?window[_0x8afc3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x427062(_0x1ca761),0x10)*_0x1e1f43:null;}function _0x2d8d58(_0x4354ff){return new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2926c9,_0x43801e)=>{_0x4354ff[_0x8afc3d([0x74,0x68,0x65,0x6e])](_0x2926c9,_0x43801e),window[_0x8afc3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43801e,0x517341ed^_0x3e0c32);});}}_0x46fa0c[_0x8afc3d([0x6f,0x6e])](_0x8afc3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x318972,_0xba17cb)=>{if(_0xba17cb[0x0]!=_0x1a798c)return _0x2d1bdc(_0x8afc3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba17cb[0x1]={..._0xba17cb[0x1],[_0x8afc3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e1320};},{[_0x8afc3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8afc3d([0x68,0x69,0x67,0x68])}),_0x46fa0c[_0x8afc3d([0x6f,0x6e])](_0x8afc3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ec380=>{_0x232cf1(_0x3ec380[_0x8afc3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cbc26=!0x0,_0x1a881d(_0x3ec380[_0x8afc3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8afc3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8afc3d([0x6c,0x6f,0x77])}),_0xa828bb[_0x8afc3d([0x74,0x68,0x65,0x6e])](()=>{_0x2cbc26||_0x2d1bdc(_0x8afc3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c2636(){return _0x46fa0c[_0x8afc3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8afc3d([0x76,0x69,0x65,0x77])][_0x8afc3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8afc3d([0x61,0x75,0x74,0x6f]);}function _0x585864(){_0x46fa0c[_0x8afc3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8afc3d([0x76,0x69,0x65,0x77])][_0x8afc3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8afc3d([0x61,0x75,0x74,0x6f]);}}function _0x10f243(_0x47a407){const _0x3711e4=[new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53654c=>setTimeout(_0x53654c,0x517babe1^_0x3e0c32)),_0xa828bb[_0x8afc3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485161=>{const _0x391edc=0x5172952a^_0x3e0c32,_0x482249=_0x54a07b[_0x8afc3d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x11915b(){_0x482249[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x391edc&&_0x485161();}_0x11915b(),_0x482249[_0x8afc3d([0x6f,0x6e])](_0x8afc3d([0x61,0x64,0x64]),_0x11915b);})),new window[(_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12bfa1=>{function _0x29f03e(){for(const _0x8067ca in window)if(window[_0x8afc3d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x8afc3d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8067ca))&&window[_0x8067ca]==_0x21eed5)return _0x12bfa1();_0x46fa0c[_0x8afc3d([0x73,0x74,0x61,0x74,0x65])]!=_0x8afc3d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x8afc3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29f03e,0x517286a5^_0x3e0c32);}_0x5e29ad(_0x8afc3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x29f03e();})];return window[_0x8afc3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8afc3d([0x72,0x61,0x63,0x65])](_0x3711e4)[_0x8afc3d([0x74,0x68,0x65,0x6e])](()=>_0x47a407);}async function _0x8ce5cb(){if(await _0xa828bb,_0x5e29ad(_0x8afc3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x426530=_0x54a07b[_0x8afc3d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x122606=_0x54a07b[_0x8afc3d([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])](_0x426530[_0x8afc3d([0x69,0x64])]),_0x3a2565=_0x22a81e(_0x8afc3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a2565[_0x8afc3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x426530['id'],_0x122606?_0x122606['id']:null,!0x0),_0x3a2565[_0x8afc3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8afc3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a2565[_0x8afc3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a2565[_0x8afc3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2e495d,void(_0x3a2565[_0x8afc3d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2e495d);}if(_0x5e29ad(_0x8afc3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ccf2b=_0x22a81e(_0x8afc3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ccf2b[_0x8afc3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8afc3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ccf2b[_0x8afc3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ccf2b[_0x8afc3d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2e495d,_0x5ccf2b[_0x8afc3d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2e495d;}_0x46fa0c[_0x8afc3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x8afc3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e495d,_0x46fa0c[_0x8afc3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x8afc3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e495d,_0x46fa0c[_0x8afc3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8afc3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5666e6(){return _0x5e29ad(_0x8afc3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x22a81e(_0x8afc3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x8afc3d([0x73,0x74,0x61,0x74,0x65])]==_0x8afc3d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57d069(){return _0x5e29ad(_0x8afc3d([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 _0x5b6cc6(){return _0x5e29ad(_0x8afc3d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b6e83(_0xbea6a7){const _0x570262=_0x2c8fa2();_0x46fa0c[_0x570262]=_0x8afc3d([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])+_0xbea6a7,_0xbea6a7[_0x8afc3d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x8afc3d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2c8fa2()]=_0x21eed5),_0xbea6a7!=_0x8afc3d([0x56,0x61,0x6c,0x69,0x64])&&_0x8ce5cb();}function _0x2c8fa2(){const _0x109780=window[_0x8afc3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8afc3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8afc3d([0x6e,0x6f,0x77])]())[_0x8afc3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8afc3d([0x2e]),'');let _0x1a8a72=_0x8afc3d([0x47]);for(let _0x3aaeb8=0x0;_0x3aaeb8<_0x109780[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3aaeb8+=0x2){let _0x4f8893=window[_0x8afc3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x109780[_0x8afc3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aaeb8,_0x3aaeb8+0x2));_0x4f8893>=_0x343f43[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f8893-=_0x343f43[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a8a72+=_0x343f43[_0x4f8893];}return _0x1a8a72;}function _0x1cdd73(){const _0x3634a7=_0x16e701[_0x8afc3d([0x73,0x70,0x6c,0x69,0x74])](_0x8afc3d([0x2e]));if(0x3!=_0x3634a7[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33fc96(_0x3634a7[0x1]);function _0x33fc96(_0x57d005){const _0x378e84=_0x431bcb(_0x57d005);return _0x378e84&&_0x1772f2()?_0x378e84:null;function _0x1772f2(){const _0x39d727=_0x378e84[_0x8afc3d([0x6a,0x74,0x69])],_0x9c1809=window[_0x8afc3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39d727[_0x8afc3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39d727[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x173a14={..._0x378e84,[_0x8afc3d([0x6a,0x74,0x69])]:_0x39d727[_0x8afc3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39d727[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x173a14[_0x8afc3d([0x76,0x63])],_0x37d637(_0x173a14)==_0x9c1809;}}}async function _0x22cdfa(){let _0x3dd2cd=!0x0;try{const _0x3247a0=_0x16e701[_0x8afc3d([0x73,0x70,0x6c,0x69,0x74])](_0x8afc3d([0x2e])),[_0x1097ad,_0x231896,_0x1e4b67]=_0x3247a0;return _0x499f12(_0x1097ad),await _0x561b25(_0x1097ad,_0x231896,_0x1e4b67),_0x3dd2cd;}catch(_0x1ae71e){return!0x1;}function _0x499f12(_0x5b9576){const _0x2ca72b=_0x431bcb(_0x5b9576);_0x2ca72b&&_0x2ca72b[_0x8afc3d([0x61,0x6c,0x67])]==_0x8afc3d([0x45,0x53,0x32,0x35,0x36])||(_0x3dd2cd=!0x1);}async function _0x561b25(_0x49c03d,_0x5a0280,_0x5a41e5){const _0x583d4a=window[_0x8afc3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8afc3d([0x66,0x72,0x6f,0x6d])](_0x5c65ec(_0x5a41e5),_0x15351c=>_0x15351c[_0x8afc3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a6965=new window[(_0x8afc3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8afc3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49c03d+_0x8afc3d([0x2e])+_0x5a0280),_0x39b6b6=window[_0x8afc3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8afc3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39b6b6)return;const _0x1454ff=await _0x39b6b6[_0x8afc3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8afc3d([0x6a,0x77,0x6b]),_0x5b685c,{[_0x8afc3d([0x6e,0x61,0x6d,0x65])]:_0x8afc3d([0x45,0x43,0x44,0x53,0x41]),[_0x8afc3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8afc3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8afc3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39b6b6[_0x8afc3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8afc3d([0x6e,0x61,0x6d,0x65])]:_0x8afc3d([0x45,0x43,0x44,0x53,0x41]),[_0x8afc3d([0x68,0x61,0x73,0x68])]:{[_0x8afc3d([0x6e,0x61,0x6d,0x65])]:_0x8afc3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1454ff,_0x583d4a,_0x3a6965)||(_0x3dd2cd=!0x1);}}function _0x431bcb(_0x2444bb){return _0x2444bb[_0x8afc3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8afc3d([0x65,0x79]))?JSON[_0x8afc3d([0x70,0x61,0x72,0x73,0x65])](_0x5c65ec(_0x2444bb)):null;}function _0x5c65ec(_0x3ba2a6){return window[_0x8afc3d([0x61,0x74,0x6f,0x62])](_0x3ba2a6[_0x8afc3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8afc3d([0x2b]))[_0x8afc3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8afc3d([0x2f])));}function _0x37d637(_0x4f6c00){let _0x1f43c1=0x1505;function _0x201a16(_0x16a26b){for(let _0x59e277=0x0;_0x59e277<_0x16a26b[_0x8afc3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59e277++){const _0x25026e=_0x16a26b[_0x8afc3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59e277);_0x1f43c1=(_0x1f43c1<<0x5)+_0x1f43c1+_0x25026e,_0x1f43c1&=_0x1f43c1;}}function _0x19104b(_0x16a907){Array[_0x8afc3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16a907)?_0x16a907[_0x8afc3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19104b):_0x16a907&&typeof _0x16a907==_0x8afc3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8afc3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16a907)[_0x8afc3d([0x73,0x6f,0x72,0x74])]()[_0x8afc3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d4fe0,_0x5361be])=>{_0x201a16(_0x2d4fe0),_0x19104b(_0x5361be);}):_0x201a16(window[_0x8afc3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16a907));}return _0x19104b(_0x4f6c00),_0x1f43c1>>>0x0;}function _0x55339a(_0x978a05){return _0x978a05[_0x8afc3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8afc3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8afc3d([0x30]));}function _0x427062(_0xb322bd){return _0xb322bd[_0x8afc3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8afc3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8afc3d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e29ad(_0x45a9d6){return _0x46fa0c[_0x8afc3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8afc3d([0x68,0x61,0x73])](_0x45a9d6);}function _0x22a81e(_0x13cf72){return _0x46fa0c[_0x8afc3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8afc3d([0x67,0x65,0x74])](_0x13cf72);}function _0x2e495d(){}function _0x8afc3d(_0x455363){return _0x455363['map'](_0x5c5f82=>String['fromCharCode'](_0x5c5f82))['join']('');}_0x3b6e83(await _0x1d19d5());}(this);}['createRevision'](_0x4d20d4){const _0x4d7dd1=this['editor']['plugins']['get']('Users');return new a({'id':_0x4d20d4['id'],'name':_0x4d20d4['name'],'creator':_0x4d20d4['creatorId']?_0x4d7dd1['getUser'](_0x4d20d4['creatorId']):null,'diffData':_0x4d20d4['diffData']||_0x4d20d4['data'],'authors':_0x4d20d4['authorsIds']['map'](_0x12cf13=>_0x4d7dd1['getUser'](_0x12cf13)),'createdAt':new Date(_0x4d20d4['createdAt']),'attributes':_0x4d20d4['attributes'],'fromVersion':_0x4d20d4['fromVersion'],'toVersion':_0x4d20d4['toVersion']});}['addRevision'](_0xb128c,_0x42152a=0x0){this['_revisions']['add'](_0xb128c,_0x42152a);}['getRevision'](_0x279fdf){return this['_revisions']['get'](_0x279fdf);}['getRevisions'](_0x3a8ec0={'toJSON':!0x1}){const _0x1b2c52=Array['from'](this['_revisions']);return _0x1b2c52['reverse'](),_0x3a8ec0['toJSON']?_0x1b2c52['map'](_0x22a1ae=>_0x22a1ae['toJSON']()):_0x1b2c52;}['getIndex'](_0xa11aa0){return this['_revisions']['getIndex'](_0xa11aa0);}['getEarlierVisibleRevision'](_0x1eb863){const [,_0x32279f]=this['getRevisionsIterator'](_0x1eb863,{'direction':'earlier'});return _0x32279f;}['getLaterVisibleRevision'](_0x466fef){const [,_0x1226db]=this['getRevisionsIterator'](_0x466fef,{'direction':'later'});return _0x1226db;}['getRevisionsInDiff'](_0x3274ab){const _0x5b71d0=[];for(const _0x14b7d3 of this['getRevisionsIterator'](_0x3274ab['newRevisionId']))if(_0x5b71d0['push'](_0x14b7d3),_0x14b7d3['id']===_0x3274ab['oldRevisionId'])break;return _0x5b71d0;}*['getRevisionsIterator'](_0x42dd90,{direction:_0x1afa14='earlier',filter:_0x4adb77=()=>!0x0}={}){const _0x326e2d='earlier'===_0x1afa14?0x1:-0x1;let _0x1a2ead=this['_revisions']['get'](_0x42dd90),_0x10db73=this['getIndex'](_0x1a2ead);for(yield _0x1a2ead;_0x1a2ead;){if(_0x10db73+=_0x326e2d,_0x1a2ead=this['getRevision'](_0x10db73),!_0x1a2ead)return;_0x4adb77(_0x1a2ead)&&(yield _0x1a2ead);}}}function m(_0x4af134,_0x25a234,_0x253252){const t=_0x4af134['t'];switch(_0x25a234){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'},_0x253252);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x253252);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x3bd9fb,'a':_0x214754,'e':_0x28f78a,'r':_0x41ef08,'u':_0x56c447};class l extends _0x3a930c{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x110fe7,j,_0x17542e];}constructor(_0x27172a){super(_0x27172a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x419913=_0x47d60e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x419913},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x12b64e=this['repository']['getRevision'](0x0),_0x14cd58=_0x12b64e&&null===_0x12b64e['creator']?_0x12b64e:null;if(this['_continueCurrentRevision']=!!_0x14cd58&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3d31c3=this['_source']['getCurrentRevisionId'](),_0x573838=this['repository']['getRevision'](_0x3d31c3);if(_0x573838)this['_startingVersion']=_0x573838['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2a18b1=this['_source']['history']['_operations']['find'](_0x1e4556=>!_0x1e4556['_isInit']),_0x365b87=_0x2a18b1?_0x2a18b1['baseVersion']:this['_source']['history']['version'];_0x12b64e?(_0x12b64e['toVersion']<_0x365b87&&_0x12b64e['_update']({'toVersion':_0x365b87}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x14cd58['id'],this['_startingVersion']=_0x14cd58['fromVersion']):(this['_startingVersion']=_0x12b64e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x365b87,this['_continueCurrentRevision']=!0x1);}}else _0x14cd58&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x14cd58['toVersion'],this['editor']['model']['document']['history']['version']),_0x14cd58['fromVersion']===_0x14cd58['toVersion']?(0x0!==_0x14cd58['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x14cd58['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x14cd58['id'],this['_startingVersion']=_0x14cd58['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',_0x1060e6=>!_0x1060e6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11ae97=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f199d;for(const _0x259d69 in _0x11ae97){const _0x2eb1e3=_0x259d69,_0x4e5c70=_0x11ae97[_0x2eb1e3];if('revisionHistoryLicenseKeyValid'==_0x4e5c70||'revisionHistoryLicenseKeyInvalid'==_0x4e5c70||'revisionHistoryLicenseKeyExpired'==_0x4e5c70||'revisionHistoryLicenseKeyDomainLimit'==_0x4e5c70||'revisionHistoryLicenseKeyNotAllowed'==_0x4e5c70||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e5c70||'revisionHistoryLicenseKeyTrialLimit'==_0x4e5c70||'revisionHistoryLicenseKeyUsageLimit'==_0x4e5c70){delete _0x11ae97[_0x2eb1e3],_0x5f199d=_0x4e5c70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5f199d&&_0x11ae97['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5f199d&&_0x11ae97['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5f199d&&_0x11ae97['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5f199d&&_0x11ae97['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5f199d&&_0x11ae97['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5f199d&&_0x11ae97['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5f199d&&_0x11ae97['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3eb901=this['repository']['getRevision'](0x0),_0x1a7057=await this['getRevisionDocumentData'](_0x3eb901),_0x2f5739=await this['getRevisionRootsAttributes'](_0x3eb901);this['_replaceEditorDataWithRevisionData'](_0x1a7057,_0x2f5739);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1b211a){this['_source']=_0x1b211a;}async['update'](){const _0x503e48=await this['_source']['getLatestVersion']();if(_0x503e48>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3c9d17=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x503e48});_0x3c9d17['authors']=_0x3c9d17['authorsIds']['map'](_0x2695d1=>this['editor']['plugins']['get']('Users')['getUser'](_0x2695d1)),this['currentRevision']['_update'](_0x3c9d17);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x229d2f={},_0x1146ac=null){const _0x3df0de=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1146ac>this['currentRevision']['toVersion']&&(_0x1146ac=null),null===_0x1146ac&&(_0x1146ac=await this['_source']['getLatestVersion']());const _0x4710f3=this['_getFromVersion'](_0x1146ac),_0x2f0811=this['buildRevisionData']({'from':_0x4710f3,'to':_0x1146ac});if(this['currentRevision']['toVersion']<_0x1146ac){const _0x3cc55e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1146ac,'to':_0x1146ac});_0x3cc55e['authors']=[],_0x3cc55e['authorsIds']=[],_0x3cc55e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3cc55e,!0x0),delete _0x3cc55e['authors'],_0x3df0de['push'](_0x3cc55e);}_0x229d2f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x229d2f['name']=_0x229d2f['name']||null,_0x229d2f['id']=_0x229d2f['id']||_0x47d60e(),_0x229d2f={..._0x229d2f,..._0x2f0811};const _0x27d411=this['addRevisionData'](_0x229d2f);_0x3df0de['push'](_0x229d2f);const _0x5d9e13=this['repository']['getIndex'](_0x27d411);if(0x0!==_0x5d9e13){const _0x3ed492=this['repository']['getRevision'](_0x5d9e13-0x1);if(_0x3ed492['fromVersion']!==_0x1146ac){const _0x582018=this['_revisionDataBuilder']['getData'](_0x1146ac,_0x3ed492['toVersion']),_0xe23021={'id':_0x3ed492['id'],'diffData':_0x582018['diffData'],'authorsIds':_0x582018['authorsIds'],'authors':_0x582018['authorsIds']['map'](_0x538d7a=>this['editor']['plugins']['get']('Users')['getUser'](_0x538d7a)),'fromVersion':_0x1146ac};_0x3ed492===this['currentRevision']&&(_0xe23021['createdAt']=new Date(_0x229d2f['createdAt']['getTime']()+0xa)),_0x3ed492['_update'](_0xe23021,!0x0),delete _0xe23021['authors'],_0x3df0de['push'](_0xe23021);}}if(this['adapter']){for(const _0x15e6c2 of _0x3df0de)this['_bufferUpdate'](_0x15e6c2['id'],_0x15e6c2,!0x0);this['sendBufferedUpdates']();}return _0x27d411;}['addRevisionData'](_0x22db66){const _0x4f9b52=this['repository']['createRevision'](_0x22db66);return this['adapter']&&_0x4f9b52['on']('_update',(_0x1dd7e4,_0xc25c42,_0x4717c6)=>{_0x4717c6||(this['_bufferUpdate'](_0xc25c42['id'],_0xc25c42,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f9b52,this['_findInsertionIndex'](_0x4f9b52)),_0x4f9b52;}async['getRevisionDocumentData'](_0x48afbb){await this['_loadRevisionData'](_0x48afbb);const _0x5ca8e8={};for(const _0x4770fc in _0x48afbb['diffData']){if(_0x48afbb['diffData'][_0x4770fc]['attachChange']&&!_0x48afbb['diffData'][_0x4770fc]['attachChange']['isAttached'])continue;const _0x4ace90=this['_removeRevisionMarkers'](JSON['parse'](_0x48afbb['diffData'][_0x4770fc]['insertions'])),_0x14633d=this['editor']['editing']['view']['document'],_0x120d51=new _0x2f1ec0(_0x14633d,_0x4ace90['map'](_0x1c4779=>C(_0x1c4779,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ca8e8[_0x4770fc]=this['editor']['data']['processor']['toData'](_0x120d51),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ca8e8;}async['getRevisionRootsAttributes'](_0x4d2862){await this['_loadRevisionData'](_0x4d2862);const _0x40d2d1={};for(const _0x5a17c6 in _0x4d2862['diffData'])_0x4d2862['diffData'][_0x5a17c6]['attachChange']&&!_0x4d2862['diffData'][_0x5a17c6]['attachChange']['isAttached']||(_0x40d2d1[_0x5a17c6]=_0x4d2862['diffData'][_0x5a17c6]['attributesAfter']||{});return _0x40d2d1;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3fd5f9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8176e3=0x0;_0x8176e3<_0x3fd5f9['length'];_0x8176e3++){const _0x3897a4=_0x3fd5f9[_0x8176e3];let _0xc352e8=!0x1;for(const _0x53ebf3 of Object['keys'](_0x3897a4))void 0x0===_0x3897a4[_0x53ebf3]?delete _0x3897a4[_0x53ebf3]:'id'!==_0x53ebf3&&(_0xc352e8=!0x0);_0xc352e8||(_0x3fd5f9[_0x8176e3]=null);}if(_0x3fd5f9=_0x3fd5f9['filter'](_0x42d485=>null!==_0x42d485),!_0x3fd5f9['length'])return;for(let _0x31575d=0x0;_0x31575d<_0x3fd5f9['length'];_0x31575d++){const _0x2c2a27=_0x3fd5f9[_0x31575d];void 0x0!==_0x2c2a27['fromVersion']&&void 0x0===_0x2c2a27['toVersion']&&(_0x2c2a27['toVersion']=this['repository']['getRevision'](_0x2c2a27['id'])['toVersion']),void 0x0!==_0x2c2a27['toVersion']&&void 0x0===_0x2c2a27['fromVersion']&&(_0x2c2a27['fromVersion']=this['repository']['getRevision'](_0x2c2a27['id'])['fromVersion']);}const _0x4d1cc4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3fd5f9,_0x4d1cc4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x502641=>{if(_0x502641){for(const _0x41ab8a of _0x502641)this['setRevisionData']({'id':_0x41ab8a['id'],'createdAt':_0x41ab8a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4d925e,_0x4241e7){let _0x4a5b8b=this['editor']['config']['get']('initialData'),_0x5b86ac=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4a5b8b){_0x4a5b8b={};for(const _0x12bf7a of this['editor']['model']['document']['getRootNames']())_0x4a5b8b[_0x12bf7a]='';}if('string'==typeof _0x4a5b8b&&(_0x4a5b8b={'main':_0x4a5b8b}),void 0x0===_0x5b86ac){_0x5b86ac={};for(const _0x2495a9 of this['editor']['model']['document']['getRootNames']())_0x5b86ac[_0x2495a9]={};}let _0x7de9d=!0x1;const _0x5cdcbc=Object['keys'](_0x4a5b8b),_0x3a6ccc=Object['keys'](_0x4d925e);for(const _0xa8a020 of _0x5cdcbc){if(_0x4a5b8b[_0xa8a020]!==_0x4d925e[_0xa8a020]&&''!==_0x4a5b8b[_0xa8a020]['trim']()){_0x7de9d=!0x0;break;}if(!_0x4d6fd7(_0x5b86ac[_0xa8a020],_0x4241e7[_0xa8a020])&&Object['keys'](_0x5b86ac[_0xa8a020])['length']>0x0){_0x7de9d=!0x0;break;}}_0x7de9d||(_0x7de9d=_0x3a6ccc['some'](_0x1dfd9a=>!this['editor']['model']['document']['getRoot'](_0x1dfd9a))),_0x7de9d&&_0x1c5116('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4a5b8b,'editorRootsAttributes':_0x5b86ac,'revisionData':_0x4d925e,'revisionRootsAttributes':_0x4241e7}),this['editor']['config']['set']('initialData',_0x4d925e),this['editor']['config']['set']('rootsAttributes',_0x4241e7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5b5d4f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5b5d4f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xf5db9e){const _0x4026cf=this['repository']['getRevisions']();_0x4026cf['reverse']();let _0xbd9e8c=0x0;for(;_0xbd9e8c<_0x4026cf['length'];){const _0x3cb05e=_0x4026cf[_0xbd9e8c];if(_0x3cb05e===this['currentRevision']){_0xbd9e8c++;continue;}if(_0x3cb05e['id']===this['_initialRevisionId'])break;const _0x55d35a=_0xf5db9e['toVersion']-_0x3cb05e['toVersion']||_0xf5db9e['fromVersion']-_0x3cb05e['fromVersion'];if(_0x55d35a>0x0)break;if(_0x55d35a<0x0)_0xbd9e8c++;else{if(!_0xf5db9e['creator']&&_0x3cb05e['creator'])break;if(_0x3cb05e['creator']||!_0xf5db9e['creator']){if(_0xf5db9e['createdAt']>_0x3cb05e['createdAt'])break;_0xbd9e8c++;}else _0xbd9e8c++;}}return _0xbd9e8c;}['setRevisionData'](_0x21e3c9){const _0x34da0a=this['repository']['getRevision'](_0x21e3c9['id']);if(_0x21e3c9['createdAt']&&(_0x21e3c9['createdAt']=new Date(_0x21e3c9['createdAt'])),_0x21e3c9['authorsIds']){const _0x17aee4=this['editor']['plugins']['get']('Users');_0x21e3c9['authors']=_0x21e3c9['authorsIds']['map'](_0xab394e=>_0x17aee4['getUser'](_0xab394e));}_0x34da0a['_update'](_0x21e3c9,!0x0);}['buildRevisionData']({revision:_0x411d62=null,from:_0x19b7a5=null,to:_0x42b8a3=null}){_0x19b7a5=null!==_0x19b7a5?_0x19b7a5:_0x411d62['fromVersion'],_0x42b8a3=null!==_0x42b8a3?_0x42b8a3:_0x411d62['toVersion'];const _0x2009af=this['_revisionDataBuilder']['getData'](_0x19b7a5,_0x42b8a3),_0x4a6141={'diffData':_0x2009af['diffData'],'authorsIds':_0x2009af['authorsIds'],'fromVersion':_0x19b7a5,'toVersion':_0x42b8a3};if(!_0x411d62||_0x42b8a3!==_0x411d62['toVersion']){const _0x58bfa9=_0x42b8a3-0x1,_0x4411ed=this['_source']['history']['getOperation'](_0x58bfa9);_0x4a6141['createdAt']=_0x4411ed&&_0x4411ed['createdAt']||new Date();}if(this['_loadedStateData']&&_0x19b7a5===this['_loadedStateData']['fromVersion']){for(const _0x4116ae of this['_loadedStateData']['authors'])_0x4a6141['authorsIds']['includes'](_0x4116ae['id'])||_0x4a6141['authorsIds']['push'](_0x4116ae['id']);}return _0x4a6141;}['_loadRevisionData'](_0x511eb8){if(!_0x511eb8||_0x511eb8['diffData'])return Promise['resolve']();{const _0x8e3a91=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x8e3a91,'revisionId':_0x511eb8['id']})['then'](_0x2d99e6=>{_0x511eb8['diffData']=_0x2d99e6['diffData'];});}}['_bufferUpdate'](_0x2a2f03,_0x51aa24,_0x268a0f){if(this['_bufferedUpdates']['has'](_0x2a2f03)){const _0x5e484d=this['_bufferedUpdates']['get'](_0x2a2f03);_0x51aa24=_0x268a0f?{..._0x5e484d,..._0x51aa24}:{..._0x51aa24,..._0x5e484d};}this['_bufferedUpdates']['set'](_0x2a2f03,_0x51aa24);}['_getFromVersion'](_0x59197c){const _0x2efbf0=this['repository']['getRevisions']();_0x2efbf0['reverse'](),_0x2efbf0['shift']();const _0x526df2=_0x2efbf0['find'](_0x3e0d1e=>_0x3e0d1e['toVersion']<=_0x59197c)['toVersion'];return _0x526df2<this['_startingVersion']?this['_startingVersion']:_0x526df2;}['_createInitialRevision'](_0x24ae45){const _0x1880bc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1880bc)this['_initialRevisionId']=_0x1880bc['id'];else{const _0x3c9b92=!this['editor']['model']['document']['roots']['find'](_0x3e193e=>this['editor']['model']['hasContent'](_0x3e193e)),_0x4771b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x216550=m(this['editor']['locale'],_0x3c9b92?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x24ae45,'to':_0x24ae45,'id':this['_initialRevisionId'],'name':_0x216550,'creatorId':_0x4771b5});}}['_createCurrentRevision'](_0x5b338e){const _0x5a3fbf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5a3fbf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b338e,'to':_0x5b338e,'id':_0x5a3fbf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5c96d5,from:_0x3a174c,to:_0x5473d8,creatorId:_0x3f7348,id:_0x32c067}){const _0x399de3=this['buildRevisionData']({'from':_0x3a174c,'to':_0x5473d8});_0x399de3['name']=_0x5c96d5,_0x399de3['creatorId']=_0x3f7348,_0x399de3['id']=_0x32c067;const _0x305308=this['addRevisionData'](_0x399de3);return this['adapter']&&this['_bufferUpdate'](_0x399de3['id'],_0x399de3,!0x0),_0x305308;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3b71c9){return(_0x3b71c9=_0x3b71c9['filter'](_0x85c4e2=>!_0x85c4e2['name']||'revision-start'!==_0x85c4e2['name']&&'revision-end'!==_0x85c4e2['name']))['forEach'](_0x1904bb=>{'string'!=typeof _0x1904bb&&(_0x1904bb['children']=this['_removeRevisionMarkers'](_0x1904bb['children']),_0x1904bb['attributes']=_0x1904bb['attributes']['filter'](_0x4e21e8=>!_0x4e21e8[0x0]['startsWith']('data-revision-')));}),_0x3b71c9;}}function C(_0x3d7f43,_0x23dd11){const _0xfadb98=_0x23dd11['editing']['view']['document'];if('string'==typeof _0x3d7f43)return new _0x143292(_0xfadb98,_0x3d7f43);{const _0x16fead=_0x3d7f43['children']['map'](_0x442e17=>C(_0x442e17,_0x23dd11));return new(P[_0x3d7f43['type']]||_0x4f6869)(_0xfadb98,_0x3d7f43['name'],_0x3d7f43['attributes'],_0x16fead);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7ec9af){this['editor']=_0x7ec9af,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'](_0x4d6187){this['source']=_0x4d6187;const _0x279984=new Map(),_0x2883de=new Map(),_0x11c43a=this['editor']['model']['document']['roots']['map'](_0x49ec75=>_0x49ec75['rootName']);for(const _0x22f575 of _0x11c43a){const _0x45d775=this['editor']['model']['document']['getRoot'](_0x22f575),_0x53b633=T(_0x45d775);_0x279984['set'](_0x22f575,_0x53b633),_0x2883de['set'](_0x22f575,Object['fromEntries'](_0x45d775['getAttributes']()));}const _0x1be9d4=Array['from'](this['editor']['model']['markers'])['map'](_0x4bbf45=>[_0x4bbf45['name'],_0x4bbf45['getRange']()]),_0xb387b6=this['source']['version'];this['_saveMetaData'](_0xb387b6,_0x279984,_0x1be9d4,_0x2883de),this['_startingRevisionId']=this['_revisionId'];const _0x185182=new Map(),_0x88d4aa=new Map();for(const _0x2649fc of _0x11c43a){const _0x3be189=F(_0x2649fc);_0x185182['set'](_0x2649fc,_0x3be189),_0x88d4aa['set'](_0x2649fc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x185182,[],_0x88d4aa);}['getData'](_0x407150,_0x5ac1b5){if(this['_lastFrom']===_0x407150&&this['_lastTo']<=_0x5ac1b5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5ac1b5,!0x0);else{if(!this['_savedMetaData']['has'](_0x407150)){const _0x2fae90=this['_getPreviousFrom'](_0x407150);this['_calculateMetaData'](_0x2fae90,_0x407150,!0x1);}this['_calculateMetaData'](_0x407150,_0x5ac1b5,!0x0);}return this['_lastFrom']=_0x407150,this['_lastTo']=_0x5ac1b5,this['_getState']();}['loadState'](_0x523b23){this['_reset'](),this['_lastFrom']=_0x523b23['fromVersion'],this['_lastTo']=_0x523b23['toVersion'];for(const _0x17d163 in _0x523b23['diffData']){const _0x224c2=_0x523b23['diffData'][_0x17d163]['attachChange'],_0x11a88d=_0x859668(_0x523b23['diffData'][_0x17d163]['attributesBefore'])||{},_0x4f9d74=this['_makeModelFromViewString'](_0x523b23['diffData'][_0x17d163]['deletions']);_0x4f9d74['rootName']=_0x17d163,_0x4f9d74['_isAttached']=!_0x224c2||!_0x224c2['isAttached'],_0x4f9d74['isAttached']=()=>_0x4f9d74['_isAttached'],this['_baseRoots']['set'](_0x17d163,_0x4f9d74),this['_baseRootsAttributes']['set'](_0x17d163,_0x11a88d),_0x224c2&&this['_touchedRoots']['set'](_0x17d163,_0x224c2);const _0x1d95a7=this['_makeIdsRoot'](_0x4f9d74);this['_baseIdsRoots']['set'](_0x17d163,_0x1d95a7);for(const [_0x30d414,_0x2b2617]of _0x4f9d74['markers']){if(!_0x30d414['startsWith']('revision:'))continue;const _0x5b0aed=_0x30d414['split'](':')[0x2];for(const _0x5a49ea of _0x2b2617['getWalker']({'singleCharacters':!0x0})){const _0x4a7b74=this['_getVidAttributeName'](_0x5a49ea),_0x2e22fb='elementEnd'==_0x5a49ea['type']?_0x5a49ea['previousPosition']['path']['slice'](0x0,-0x1):_0x5a49ea['previousPosition']['path'],_0x568191=_0x1d95a7['getNodeByPath'](_0x2e22fb)['getAttribute'](_0x4a7b74);this['_touched']['set'](_0x568191,{'userId':_0x5b0aed});}}}this['_startingRevisionId']=this['_revisionId'];const _0x36fa98=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x318ba7=>!this['_touched']['has'](_0x318ba7));let _0x11aae5=0x0;const _0x2b0795=new Map();for(const _0x476fa2 in _0x523b23['diffData']){const _0x5c244b=_0x523b23['diffData'][_0x476fa2]['attachChange'],_0x4fe492=_0x859668(_0x523b23['diffData'][_0x476fa2]['attributesAfter'])||{},_0x51cafc=this['_makeModelFromViewString'](_0x523b23['diffData'][_0x476fa2]['insertions']);_0x51cafc['rootName']=_0x476fa2,_0x51cafc['_isAttached']=!_0x5c244b||_0x5c244b['isAttached'],_0x51cafc['isAttached']=()=>_0x51cafc['_isAttached'],this['_diffRoots']['set'](_0x476fa2,_0x51cafc),this['_diffRootsAttributes']['set'](_0x476fa2,_0x4fe492);const _0x2a412c=this['_makeIdsRoot'](_0x51cafc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x476fa2,_0x2a412c),_0x2b0795['set'](_0x476fa2,_0x51cafc['isAttached']()?_0x4fe492:{});for(const [_0xd52c96,_0x13c878]of _0x51cafc['markers']){if(!_0xd52c96['startsWith']('revision:'))continue;const _0x1dd1ef=_0xd52c96['split'](':')[0x2];for(const _0x1299d7 of _0x13c878['getWalker']({'singleCharacters':!0x0})){const _0xb8f519=this['_getVidAttributeName'](_0x1299d7),_0x5800bb=this['_revisionId']++,_0xd3e72a='elementEnd'==_0x1299d7['type']?_0x1299d7['previousPosition']['path']['slice'](0x0,-0x1):_0x1299d7['previousPosition']['path'];_0x2a412c['getNodeByPath'](_0xd3e72a)['_setAttribute'](_0xb8f519,_0x5800bb),this['_touched']['set'](_0x5800bb,{'userId':_0x1dd1ef});}}for(const _0xd6d076 of this['editor']['model']['createRangeIn'](_0x51cafc)['getWalker']({'singleCharacters':!0x0})){const _0x5245d0=this['_getVidAttributeName'](_0xd6d076),_0x5652bb='elementEnd'==_0xd6d076['type']?_0xd6d076['previousPosition']['path']['slice'](0x0,-0x1):_0xd6d076['previousPosition']['path'],_0x285e58=_0x2a412c['getNodeByPath'](_0x5652bb);_0x285e58['getAttribute'](_0x5245d0)>0x0||_0x285e58['_setAttribute'](_0x5245d0,_0x36fa98[_0x11aae5++]);}for(const [_0x2f8dc2,_0xdd7e4d]of _0x51cafc['markers'])_0x2f8dc2['startsWith']('revision:')||this['_markers']['set'](_0x2f8dc2,_0xdd7e4d);}const _0x35dc31=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x35dc31),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35dc31,0x1));const _0x4e9d97=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e9d97),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e9d97,0x1));const _0x4536e3=Array['from'](this['_diffRoots'])['map'](([_0x3f8c93,_0x1e212f])=>[_0x3f8c93,T(_0x1e212f)]);this['_saveMetaData'](this['_lastTo'],_0x4536e3,this['_markers'],_0x2b0795);}['_makeModelFromViewString'](_0x14a09e){const _0x150c78=JSON['parse'](_0x14a09e),_0x3fba85=this['editor']['editing']['view']['document'],_0x1e2624=new _0x2f1ec0(_0x3fba85,_0x150c78['map'](_0x169570=>C(_0x169570,this['editor'])));return this['editor']['data']['toModel'](_0x1e2624);}['_saveMetaData'](_0x11f679,_0x24a271,_0x1a07f4,_0x1d4c36){const _0x5b3ff5=new Map(_0x24a271),_0x5471e8=new Map(_0x859668(_0x1d4c36)),_0x29d029=new Map();for(const [_0x5851f5,_0x55e955]of _0x1a07f4)_0x29d029['set'](_0x5851f5,{'start':_0x55e955['start']['clone'](),'end':_0x55e955['end']['clone'](),'rootName':_0x55e955['root']['rootName']});this['_savedMetaData']['set'](_0x11f679,{'roots':_0x5b3ff5,'markers':_0x29d029,'rootsAttributes':_0x5471e8});}['_removeMetaData'](_0x45ee5b){this['_savedMetaData']['delete'](_0x45ee5b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2f7f8c,_0x355ac8=null){let _0x4cb549=null;_0x2f7f8c['is']('documentFragment')||(_0x4cb549=new ft(_0x2f7f8c['name'],{'vid_start':null===_0x355ac8?this['_revisionId']++:_0x355ac8++}));const _0x3736c5=[];for(const _0x17d5e4 of _0x2f7f8c['getChildren']())if(_0x17d5e4['is']('element')){_0x3736c5['push'](this['_makeIdsRoot'](_0x17d5e4,_0x355ac8));const _0x2ee42e=_0x3736c5[_0x3736c5['length']-0x1];null!==_0x355ac8&&(_0x355ac8=_0x2ee42e['is']('element','$text')?_0x2ee42e['getAttribute']('vid')+0x1:_0x2ee42e['getAttribute']('vid_end')+0x1);}else{for(let _0x1aa304=0x0;_0x1aa304<_0x17d5e4['offsetSize'];_0x1aa304++)_0x3736c5['push'](new ft('$text',{'vid':null===_0x355ac8?this['_revisionId']++:_0x355ac8++}));}if(_0x2f7f8c['is']('documentFragment')){const _0x251af4=F(_0x2f7f8c['rootName']);return _0x251af4['_insertChild'](0x0,_0x3736c5),_0x251af4;}return _0x4cb549['_setAttribute']('vid_end',null===_0x355ac8?this['_revisionId']++:_0x355ac8++),_0x4cb549['_insertChild'](0x0,_0x3736c5),_0x4cb549;}['_calculateMetaData'](_0x133df3,_0x5d7349,_0x198be8){this['_reset']();const {roots:_0x2442f0,markers:_0x304f67,rootsAttributes:_0x49a545}=this['_savedMetaData']['get'](_0x133df3);this['_baseRoots']=new Map(_0x2442f0),this['_baseRootsAttributes']=new Map(_0x859668(_0x49a545));for(const [_0x5a3433,_0x486d96]of this['_baseRoots'])if('$graveyard'!==_0x5a3433&&(this['_diffRoots']['set'](_0x5a3433,T(_0x486d96)),this['_diffRootsAttributes']=new Map(_0x859668(_0x49a545)),_0x198be8)){const _0xed3654=this['_revisionId'];this['_idsRoots']['set'](_0x5a3433,this['_makeIdsRoot'](_0x486d96)),this['_baseIdsRoots']['set'](_0x5a3433,this['_makeIdsRoot'](_0x486d96,_0xed3654));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x198be8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x22dfe7,_0x31eb68]of _0x304f67){const _0x3d2e56=this['_baseRoots']['get'](_0x31eb68['rootName']),_0x398804=this['_diffRoots']['get'](_0x31eb68['rootName']),_0xfa73e1=new vt(this['_fixPosition'](_0x31eb68['start'],_0x3d2e56),this['_fixPosition'](_0x31eb68['end'],_0x3d2e56)),_0x107c70=this['_fixRange'](_0xfa73e1,_0x398804);_0x3d2e56['markers']['set'](_0x22dfe7,_0xfa73e1),this['_markers']['set'](_0x22dfe7,_0x107c70);}this['_applyOperations'](_0x133df3,_0x5d7349,_0x198be8);}['_applyOperations'](_0x1da94a,_0x5b7076,_0x5243af){for(const _0x5e978d of this['source']['getOperations'](_0x1da94a,_0x5b7076))this['_handleOperation'](_0x5e978d,_0x5243af);for(const _0x5a720c of this['_diffRoots']['values']())_0x5a720c['markers']['clear']();for(const [_0x4941ad,_0x12e54c]of this['_markers']){this['_diffRoots']['get'](_0x12e54c['root']['rootName'])['markers']['set'](_0x4941ad,_0x12e54c['clone']());}const _0xe49051=new Map(),_0x2dc6f9=new Map();for(const [_0x33f669,_0x5466ef]of this['_diffRoots'])_0xe49051['set'](_0x33f669,T(_0x5466ef)),_0x2dc6f9['set'](_0x33f669,this['_diffRootsAttributes']['get'](_0x33f669));this['_saveMetaData'](_0x5b7076,_0xe49051,this['_markers'],_0x2dc6f9);}['_getPreviousFrom'](_0x3cd46e){const _0x2cd739=Array['from'](this['_savedMetaData']['keys']());_0x2cd739['sort']((_0x7809d3,_0x144669)=>_0x7809d3-_0x144669),_0x2cd739['reverse']();for(const _0x179a8e of _0x2cd739)if(_0x179a8e<_0x3cd46e)return _0x179a8e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b4c6e,_0x11aa50){const _0x4bf055=Array['from'](_0x11aa50['markers'])['map'](([_0x3d6538,_0x560a74])=>[_0x3d6538,this['_fixRange'](_0x560a74,_0x5b4c6e)]);_0x5b4c6e['markers']=new Map(_0x4bf055);}['_transformMarkers'](_0x535001){for(const _0x4208c6 of this['_markers']['values']()){const _0x5d9a29=_0x4208c6['getTransformedByOperation'](_0x535001),_0x4859e7=vt['_createFromRanges'](_0x5d9a29);_0x4208c6['start']=_0x4859e7['start'],_0x4208c6['end']=_0x4859e7['end'];}}['_handleOperation'](_0x298698,_0x169745){if('addRoot'!=_0x298698['type']&&'detachRoot'!=_0x298698['type']){if('insert'==_0x298698['type']){const _0x5c6a04=_0x298698['position']['root']['rootName'];this['_diffRoots']['has'](_0x5c6a04)||(this['_diffRoots']['set'](_0x5c6a04,F(_0x5c6a04,!0x0)),this['_diffRootsAttributes']['set'](_0x5c6a04,{}),_0x169745&&this['_idsRoots']['set'](_0x5c6a04,F(_0x5c6a04,!0x0)));}else{if('addRootAttribute'==_0x298698['type']||'removeRootAttribute'==_0x298698['type']||'changeRootAttribute'==_0x298698['type'])return void this['_handleRootAttributeOperation'](_0x298698);'marker'==_0x298698['type']&&this['_handleMarkerOperation'](_0x298698);}if('marker'!==_0x298698['type']){const _0x391095=this['_cloneOperation'](_0x298698,this['_diffRoots']);_0x391095['_execute'](),this['_transformMarkers'](_0x391095);}if(_0x169745)switch(_0x298698['type']){case'insert':this['_handleInsertOperation'](_0x298698);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x298698);break;case'merge':this['_handleMergeOperation'](_0x298698);break;case'split':this['_handleSplitOperation'](_0x298698);}}else this['_handleRootOperation'](_0x298698,_0x169745);}['_cloneOperation'](_0x560c81,_0x1f37d5){const _0x4b0cb5=_0x560c81['clone']();return _0x4b0cb5['_authorId']=_0x560c81['_authorId'],this['_fixOperation'](_0x4b0cb5,_0x1f37d5),_0x4b0cb5;}['_getBaseVids'](_0x5428b3){return _0x5428b3['map'](_0x593972=>{const _0x51bc48=this['_getVidAttributeName'](_0x593972);return Number(_0x593972['item']['getAttribute'](_0x51bc48));});}['_generateTape'](_0x2f2077,_0x7c4a22){if(_0x2f2077['is']('element','$text'))_0x7c4a22['push']({'item':_0x2f2077,'type':'text'});else{_0x2f2077['is']('element')&&_0x7c4a22['push']({'item':_0x2f2077,'type':'elementStart'});for(const _0x10024a of _0x2f2077['getChildren']())this['_generateTape'](_0x10024a,_0x7c4a22);_0x2f2077['is']('element')&&_0x7c4a22['push']({'item':_0x2f2077,'type':'elementEnd'});}return _0x7c4a22;}['_getState'](){const _0x5f570a=new Map(this['_touched']),_0x4939c2=new Map(_0x5f570a),_0x5b7a27=new Map(),_0x4d9fb4={'insertions':{},'deletions':{}},_0x17aa83={'insertions':{},'deletions':{}},_0xa138d4=new Map(),_0x1d4351=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1d4351['delete']('$graveyard');for(const _0x559c62 of _0x1d4351){const _0x2adf33=this['_diffRoots']['get'](_0x559c62)||F(_0x559c62,!0x1),_0xea3c5f=this['_baseRoots']['get'](_0x559c62)||F(_0x559c62,!0x1);_0x2adf33['isAttached']()||_0xea3c5f['isAttached']()?(_0x4d9fb4['insertions'][_0x559c62]=T(_0x2adf33),_0x4d9fb4['deletions'][_0x559c62]=T(_0xea3c5f),this['_copyMarkers'](_0x4d9fb4['deletions'][_0x559c62],_0xea3c5f),this['_copyMarkers'](_0x4d9fb4['insertions'][_0x559c62],_0x2adf33),_0x17aa83['insertions'][_0x559c62]=this['_generateTape'](this['_idsRoots']['get'](_0x559c62),[]),_0x17aa83['deletions'][_0x559c62]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x559c62)||F(_0x559c62,!0x1),[])):_0x1d4351['delete'](_0x559c62);}for(const _0x29092f of _0x1d4351){const _0x26e0d8=_0x17aa83['insertions'][_0x29092f];for(const _0x220f88 of _0x26e0d8){const _0x1173a5=this['_getVidAttributeName'](_0x220f88),_0x3ebdd4=_0x220f88['item']['getAttribute'](_0x1173a5);_0x4939c2['delete'](_0x3ebdd4),_0x3ebdd4>=this['_startingRevisionId']&&_0x5b7a27['set'](_0x3ebdd4,_0x5f570a['get'](_0x3ebdd4));}}for(const _0x44b07f of _0x1d4351){const _0x1210a7=_0x17aa83['insertions'][_0x44b07f],_0x4b646f=this['_getBaseVids'](_0x17aa83['deletions'][_0x44b07f]);let _0x17e567=0x0;for(const _0x380e6c of _0x1210a7){const _0x4fad41=this['_getVidAttributeName'](_0x380e6c),_0x5e6af4=_0x380e6c['item']['getAttribute'](_0x4fad41);if(!_0x5b7a27['has'](_0x5e6af4)&&!_0xa138d4['has'](_0x5e6af4)){if(_0x4939c2['has'](_0x5e6af4))_0x17e567++;else{if(_0x5e6af4!=_0x4b646f[_0x17e567]){const _0x2cdb51=_0x5f570a['get'](_0x5e6af4)||_0x5f570a['get'](_0x4b646f[_0x17e567]);for(;_0x5e6af4!=_0x4b646f[_0x17e567];)_0x4939c2['has'](_0x4b646f[_0x17e567])||(_0xa138d4['set'](_0x4b646f[_0x17e567],_0x2cdb51),_0x5f570a['set'](_0x4b646f[_0x17e567],_0x2cdb51)),_0x17e567++;}_0x17e567++;}}}}for(const _0x30d1ee of _0x1d4351){const _0x4dc323=_0x17aa83['insertions'][_0x30d1ee];for(const _0x1f4ad8 of _0x4dc323){const _0x42a8bc=this['_getVidAttributeName'](_0x1f4ad8),_0xe73882=_0x1f4ad8['item']['getAttribute'](_0x42a8bc);if(_0xa138d4['has'](_0xe73882)){const _0x36e3cc=_0xa138d4['get'](_0xe73882);_0x4939c2['has'](_0xe73882)||_0x4939c2['set'](_0xe73882,{..._0x36e3cc}),_0x5b7a27['set'](_0xe73882,{..._0x36e3cc});}}}for(const _0x59f66f of _0x4939c2['keys']())_0x59f66f>=this['_startingRevisionId']&&_0x4939c2['delete'](_0x59f66f);const _0x23cc64=new Map();for(const _0x5e2b52 of _0x1d4351){let _0x129377=_0x17aa83['insertions'][_0x5e2b52];for(const _0x77ccef of _0x129377)if(_0x77ccef['item']['is']('element','tableCell')){const _0x5ab088=this['_getVidAttributeName'](_0x77ccef),_0x3cd544=_0x77ccef['item']['getAttribute'](_0x5ab088);if(_0x5b7a27['has'](_0x3cd544)){const _0x10707e=_0x77ccef['item']['parent']['parent']['getAttribute']('vid_start'),_0x554349=_0x23cc64['get'](_0x10707e)||new Set();_0x554349['add'](_0x5b7a27['get'](_0x3cd544)['userId']),_0x23cc64['set'](_0x10707e,_0x554349);}}_0x129377=_0x17aa83['deletions'][_0x5e2b52];for(const _0xbd7481 of _0x129377)if(_0xbd7481['item']['is']('element','tableCell')){const _0x50d4d2=this['_getVidAttributeName'](_0xbd7481),_0x120723=_0xbd7481['item']['getAttribute'](_0x50d4d2);if(_0x4939c2['has'](_0x120723)){const _0x494153=_0xbd7481['item']['parent']['parent']['getAttribute']('vid_start'),_0x44e903=_0x23cc64['get'](_0x494153)||new Set();_0x44e903['add'](_0x4939c2['get'](_0x120723)['userId']),_0x23cc64['set'](_0x494153,_0x44e903);}}for(const _0x24ec0a of _0x23cc64['keys']())(_0x5b7a27['has'](_0x24ec0a)||_0x4939c2['has'](_0x24ec0a))&&_0x23cc64['delete'](_0x24ec0a);}for(const _0x1485d0 of _0x1d4351){const _0x438e6c=_0x17aa83['insertions'][_0x1485d0];let _0x26c208=null,_0x2d2867=null;for(const _0xa69a26 of _0x438e6c){const _0x5db7e7=this['_getVidAttributeName'](_0xa69a26),_0x1f26ae=_0xa69a26['item']['getAttribute'](_0x5db7e7),_0x3f557d=_0x23cc64['get'](_0x1f26ae);_0x3f557d&&'elementStart'==_0xa69a26['type']&&(_0x26c208=Array['from'](_0x3f557d)[0x0],_0x2d2867=_0xa69a26['item']['getAttribute']('vid_end')),_0x26c208&&(_0x4939c2['set'](_0x1f26ae,{'userId':_0x26c208}),_0x5b7a27['set'](_0x1f26ae,{'userId':_0x26c208})),_0x1f26ae==_0x2d2867&&(_0x26c208=null,_0x2d2867=null);}}const _0x286105={},_0x3b3430=new Set();for(const _0x583460 of _0x1d4351){const _0x597575=_0x4d9fb4['deletions'][_0x583460],_0x4a8d47=_0x4d9fb4['insertions'][_0x583460];for(const {userId:_0x8d0059}of this['_touchedMarkers']['values']())null!==_0x8d0059&&_0x3b3430['add'](_0x8d0059);for(const {userId:_0x1b0f02}of this['_touchedRoots']['values']())null!==_0x1b0f02&&_0x3b3430['add'](_0x1b0f02);this['_markChanges'](_0x4a8d47,_0x17aa83['insertions'][_0x583460],_0x5b7a27,'insertion',_0x3b3430),this['_markChanges'](_0x597575,_0x17aa83['deletions'][_0x583460],_0x4939c2,'deletion',_0x3b3430),_0x286105[_0x583460]={'insertions':this['_prepareViewToSave'](_0x4a8d47),'deletions':this['_prepareViewToSave'](_0x597575),'attachChange':this['_touchedRoots']['get'](_0x583460)||null,'attributesBefore':_0x859668(this['_baseRootsAttributes']['get'](_0x583460))||{},'attributesAfter':_0x859668(this['_diffRootsAttributes']['get'](_0x583460))};}return{'diffData':_0x286105,'authorsIds':Array['from'](_0x3b3430)};}['_processRootBeforeSave'](_0x1e5059){for(const [,_0x48353e]of _0x1e5059['markers']){const _0x44c94f=_0x48353e['start']['getAncestors']()['filter'](_0x1685ea=>'tableCell'==_0x1685ea['name']);for(const _0x10b3c2 of _0x44c94f)0x1==_0x10b3c2['childCount']&&_0x10b3c2['getChild'](0x0)['is']('element','paragraph')&&_0x10b3c2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x28fb6f){this['_processRootBeforeSave'](_0x28fb6f);const _0x5d64e4=this['editor']['data']['toView'](_0x28fb6f,{}),_0xa9a9c9=Array['from'](_0x5d64e4['getChildren']())['map'](_0xb91840=>this['_getViewJson'](_0xb91840));return JSON['stringify'](_0xa9a9c9);}['_getViewJson'](_0x2675e8){if(_0x2675e8['is']('$text'))return _0x2675e8['data'];{const _0x3fc18f=_0x2675e8;return{'type':Object['keys'](P)['find'](_0x54c146=>_0x2675e8 instanceof P[_0x54c146]),'name':_0x3fc18f['name'],'attributes':Array['from'](_0x3fc18f['getAttributes']()),'children':Array['from'](_0x3fc18f['getChildren']())['map'](_0xabdb1b=>this['_getViewJson'](_0xabdb1b))};}}['_markChanges'](_0x990ae,_0x54de29,_0xb89008,_0x57716d,_0x3caaa9){let _0x24c69e=null,_0x3f7144=null,_0x27c523=0x0;const _0x8195d=this['editor']['model'];for(let _0x5ae725=0x0;_0x5ae725<_0x54de29['length'];_0x5ae725++){const _0x5e00aa=this['_getVidAttributeName'](_0x54de29[_0x5ae725]),_0x4a8f21=_0x54de29[_0x5ae725]['item']['getAttribute'](_0x5e00aa),_0x1dde14=_0xb89008['get'](_0x4a8f21),_0x4f61be=_0x5ae725==_0x54de29['length']-0x1;(!_0x24c69e&&_0x1dde14&&(_0x24c69e=_0x1dde14,_0x3f7144=_0x54de29[_0x5ae725]),_0x24c69e&&(!_0x1dde14||_0x1dde14['userId']!=_0x24c69e['userId']))&&(_0x38e5cb(_0x1dde14,B(_0x3f7144,_0x990ae,_0x8195d),B(_0x54de29[_0x5ae725],_0x990ae,_0x8195d)),_0x24c69e=_0x1dde14||null,_0x3f7144=_0x1dde14?_0x54de29[_0x5ae725]:null),_0x24c69e&&_0x4f61be&&_0x38e5cb(_0x1dde14,B(_0x3f7144,_0x990ae,_0x8195d),J(_0x54de29[_0x5ae725],_0x990ae,_0x8195d));}function _0x38e5cb(_0x4ee4f4,_0x53a378,_0x3b9854){const _0x43a457=_0x24c69e['userId'],_0x5abf14='revision:'+_0x57716d+':'+_0x43a457+':'+_0x27c523++,_0x1d2ac9=_0x8195d['createRange'](_0x53a378,_0x3b9854);_0x990ae['markers']['set'](_0x5abf14,_0x1d2ac9),null!==_0x43a457&&_0x3caaa9['add'](_0x43a457);}}['_getVidAttributeName'](_0x3f887e){switch(_0x3f887e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e4052,_0x19dbff){_0x5e4052['baseVersion']=null;for(const _0x5c649d in _0x5e4052){const _0x130c9f=_0x5e4052[_0x5c649d];if(_0x130c9f instanceof gt){const _0x5501e9=_0x19dbff['get'](_0x130c9f['root']['rootName']);_0x5e4052[_0x5c649d]=this['_fixPosition'](_0x130c9f,_0x5501e9);}if(_0x130c9f instanceof vt){const _0x51dab9=_0x19dbff['get'](_0x130c9f['root']['rootName']);_0x5e4052[_0x5c649d]=this['_fixRange'](_0x130c9f,_0x51dab9);}'root'===_0x5c649d&&(_0x5e4052['root']=_0x19dbff['get'](_0x5e4052['root']['rootName']));}}['_fixRange'](_0x1ab6a0,_0xea0697){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1ab6a0['start'],_0xea0697),this['_fixPosition'](_0x1ab6a0['end'],_0xea0697));}['_fixPosition'](_0x35b58b,_0x2fe24e){return this['editor']['model']['createPositionFromPath'](_0x2fe24e,_0x35b58b['path'],_0x35b58b['stickiness']);}['_handleInsertOperation'](_0x2370ce){const _0x15be7b=this['_idsRoots']['get'](_0x2370ce['position']['root']['rootName']),_0x52b62e=this['_fixPosition'](_0x2370ce['position'],_0x15be7b),_0x1b1ac0=null===_0x2370ce['_authorId']?null:_0x2370ce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8483d7=_0x52b62e['parent'],_0x31e25b=this['_revisionId'],_0x96f65=[];for(const _0x465bb8 of _0x2370ce['nodes'])if(_0x465bb8['is']('element'))_0x96f65['push'](this['_makeIdsRoot'](_0x465bb8));else{for(let _0xc9b595=0x0;_0xc9b595<_0x465bb8['offsetSize'];_0xc9b595++)_0x96f65['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5ecaab=this['_revisionId'];for(let _0x3c02b7=_0x31e25b;_0x3c02b7<_0x5ecaab;_0x3c02b7++)this['_touched']['set'](_0x3c02b7,{'userId':_0x1b1ac0});_0x8483d7['_insertChild'](_0x52b62e['offset'],_0x96f65);}['_handleMoveOperation'](_0x2dfec8){(_0x2dfec8=this['_cloneOperation'](_0x2dfec8,this['_idsRoots']))['_execute']();const _0x2e4abb=null===_0x2dfec8['_authorId']?null:_0x2dfec8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e3f45=_0x2dfec8['getMovedRangeStart'](),_0x4e622a=_0x2e3f45['parent'],_0x5421b4=_0x2e3f45['offset'];!function _0x3d9952(_0x911968,_0x1ebf52,_0x303d1b,_0x28cec1){for(let _0x106ca6=_0x303d1b;_0x106ca6<_0x28cec1;_0x106ca6++){const _0x30ea40=_0x1ebf52['getChild'](_0x106ca6);_0x30ea40['is']('element','$text')?_0x911968['set'](_0x30ea40['getAttribute']('vid'),{'userId':_0x2e4abb}):(_0x911968['set'](_0x30ea40['getAttribute']('vid_start'),{'userId':_0x2e4abb}),_0x3d9952(_0x911968,_0x30ea40,0x0,_0x30ea40['childCount']),_0x911968['set'](_0x30ea40['getAttribute']('vid_end'),{'userId':_0x2e4abb}));}}(this['_touched'],_0x4e622a,_0x5421b4,_0x5421b4+_0x2dfec8['howMany']);}['_handleMergeOperation'](_0x659487){const _0x531a70=null===(_0x659487=this['_cloneOperation'](_0x659487,this['_idsRoots']))['_authorId']?null:_0x659487['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30c237=_0x659487['targetPosition']['parent'],_0x1ffb95=_0x659487['sourcePosition']['parent'],_0x272726=_0x30c237['getAttribute']('vid_end'),_0x182e2c=_0x1ffb95['getAttribute']('vid_start');_0x30c237['_setAttribute']('vid_end',_0x1ffb95['getAttribute']('vid_end')),_0x1ffb95['_setAttribute']('vid_end',_0x272726),this['_touched']['set'](_0x182e2c,{'userId':_0x531a70}),this['_touched']['set'](_0x272726,{'userId':_0x531a70}),_0x659487['_execute']();}['_handleSplitOperation'](_0x51467b){const _0x12a396=null===(_0x51467b=this['_cloneOperation'](_0x51467b,this['_idsRoots']))['_authorId']?null:_0x51467b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bfb57=_0x51467b['graveyardPosition'],_0x30620f=_0x51467b['splitPosition']['parent'];_0x51467b['_execute']();const _0x1e8470=_0x30620f['getAttribute']('vid_end'),_0x4f0da0=_0x51467b['insertionPosition']['nodeAfter'];if(_0x2bfb57){const _0x16df3a=_0x4f0da0['getAttribute']('vid_end'),_0x54eedd=_0x30620f['getAttribute']('vid_end');_0x30620f['_setAttribute']('vid_end',_0x16df3a),_0x4f0da0['_setAttribute']('vid_end',_0x54eedd),this['_touched']['set'](_0x30620f['getAttribute']('vid_end'),{'userId':_0x12a396}),this['_touched']['set'](_0x4f0da0['getAttribute']('vid_start'),{'userId':_0x12a396});}else{const _0x5b2658=this['_revisionId']++,_0x28423f=this['_revisionId']++;_0x30620f['_setAttribute']('vid_end',_0x5b2658),_0x4f0da0['_setAttribute']('vid_start',_0x28423f),_0x4f0da0['_setAttribute']('vid_end',_0x1e8470),this['_touched']['set'](_0x5b2658,{'userId':_0x12a396}),this['_touched']['set'](_0x28423f,{'userId':_0x12a396});}}['_handleMarkerOperation'](_0x487c40){if(!_0x487c40['affectsData'])return;const _0x11b9ba=(_0x487c40=this['_cloneOperation'](_0x487c40,this['_diffRoots']))['oldRange']?_0x487c40['oldRange']['root']:null,_0x806ac2=_0x487c40['newRange']?_0x487c40['newRange']['root']:null;_0x11b9ba&&this['_markers']['delete'](_0x487c40['name']),_0x806ac2&&this['_markers']['set'](_0x487c40['name'],_0x487c40['newRange']['clone']());const _0x64e646=null===_0x487c40['_authorId']?null:_0x487c40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7ac252=_0x487c40['name'];if(!this['_touchedMarkers']['has'](_0x7ac252))return void this['_touchedMarkers']['set'](_0x7ac252,{'range':_0x487c40['oldRange'],'userId':_0x64e646});const _0x425f40=this['_touchedMarkers']['get'](_0x7ac252),_0x30b43e=_0x425f40['range'],_0x5a0ea3=_0x487c40['newRange'];null==_0x30b43e&&null==_0x5a0ea3||_0x30b43e&&_0x5a0ea3&&_0x30b43e['isEqual'](_0x5a0ea3)?this['_touchedMarkers']['delete'](_0x487c40['name']):_0x425f40['userId']=_0x64e646;}['_handleRootOperation'](_0x5e378d,_0x10f445){this['_diffRoots']['has'](_0x5e378d['rootName'])?this['_diffRoots']['get'](_0x5e378d['rootName'])['_isAttached']=_0x5e378d['isAdd']:(this['_diffRoots']['set'](_0x5e378d['rootName'],F(_0x5e378d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5e378d['rootName'],{}),_0x10f445&&this['_idsRoots']['set'](_0x5e378d['rootName'],F(_0x5e378d['rootName'],!0x0)));const _0x2bcc7c=null===_0x5e378d['_authorId']?null:_0x5e378d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f55fb=this['_touchedRoots']['get'](_0x5e378d['rootName']);_0x3f55fb&&_0x3f55fb['userId']===_0x2bcc7c?this['_touchedRoots']['delete'](_0x5e378d['rootName']):this['_touchedRoots']['set'](_0x5e378d['rootName'],{'userId':_0x2bcc7c,'isAttached':_0x5e378d['isAdd']});}['_handleRootAttributeOperation'](_0x1ecb85){const _0x295787=this['_diffRootsAttributes']['get'](_0x1ecb85['root']['rootName']);null===_0x1ecb85['newValue']?delete _0x295787[_0x1ecb85['key']]:_0x295787[_0x1ecb85['key']]=_0x1ecb85['newValue'];}}function T(_0x4dc8a3){const _0x21d751=F(_0x4dc8a3['rootName'],_0x4dc8a3['isAttached']());for(const _0xbd467a of _0x4dc8a3['getChildren']()){const _0x358d99=_0xbd467a['_clone'](!0x0);_0x21d751['_appendChild'](_0x358d99);}return _0x21d751;}function F(_0x13f897,_0x37f287=!0x0){const _0x26fc53=new mt();return _0x26fc53['rootName']=_0x13f897,_0x26fc53['_isAttached']=_0x37f287,_0x26fc53['isAttached']=()=>_0x26fc53['_isAttached'],_0x26fc53;}function B(_0x49ce63,_0x221079,_0x1a38a5){const _0x4607f8='elementEnd'==_0x49ce63['type']?_0x1a38a5['createPositionAt'](_0x49ce63['item'],'end'):_0x1a38a5['createPositionBefore'](_0x49ce63['item']);return _0x1a38a5['createPositionFromPath'](_0x221079,_0x4607f8['path'],_0x4607f8['stickiness']);}function J(_0x525cda,_0x1197ea,_0x354851){const _0x52bf4a='elementStart'==_0x525cda['type']?_0x354851['createPositionAt'](_0x525cda['item'],0x0):_0x354851['createPositionAfter'](_0x525cda['item']);return _0x354851['createPositionFromPath'](_0x1197ea,_0x52bf4a['path'],_0x52bf4a['stickiness']);}class ns extends _0x3e13f8{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1f94ab,_0x286a9e){super(_0x1f94ab),this['focusTracker']=new _0x3aabf5(),this['keystrokes']=new _0x1fa605(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x286a9e),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'](),_0x279f40({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e3f93=_0x2af455=>_0x2af455['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e3f93),this['keystrokes']['set']('arrowleft',_0x3e3f93),this['keystrokes']['set']('arrowup',_0x3e3f93),this['keystrokes']['set']('arrowdown',_0x3e3f93);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x425127){this['revisionNameInputView']['fieldView']['element']['value']=_0x425127['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1b275e){const _0x216037=new nt(this['locale'],_0x5deecd),_0x4bacfc=_0x216037['fieldView'];_0x4bacfc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x20d022=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1b275e&&(_0x20d022+='\x20('+m(this['locale'],'optional')+')'),(_0x216037['label']=_0x20d022,_0x4bacfc['on']('input',()=>{this['revisionNameInputValue']=_0x4bacfc['element']['value']['trim']();}),_0x216037);}}class u extends _0x3a930c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x369343=this['editor'],_0x3e269a=_0x369343['plugins']['get']('RevisionTracker');_0x369343['ui']['componentFactory']['add']('revisionHistory',_0xe71510=>{const _0x40e3d8=_0xe7d5ec(_0xe71510),_0x41dd06=_0x40e3d8['panelView']['children'],_0xd9ea7f=new te(_0xe71510),_0x400a57=new _0x1675e6(_0xe71510),_0x161070=new _0x205196(_0xe71510),_0x277273=new _0x1675e6(_0xe71510),_0x50d56b=new _0x205196(_0xe71510);return _0x40e3d8['bind']('isEnabled')['to'](_0x3e269a,'isReady',_0x3e269a,'isEnabled',_0x369343,'isReadOnly',(_0x1010bb,_0x357bd7,_0x5e1c41)=>_0x1010bb&&_0x357bd7&&!_0x5e1c41),_0x40e3d8['buttonView']['set']({'icon':_0x3d598a['history'],'label':m(_0xe71510,'Revision\x20history'),'tooltip':!0x0}),_0x161070['set']({'label':m(_0xe71510,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x161070['bind']('isEnabled')['to'](_0x3e269a,'isReady',_0x3e269a,'isEnabled',_0x369343,'isReadOnly',(_0x24ade5,_0x5c25ef,_0x41bb87)=>_0x24ade5&&_0x5c25ef&&!_0x41bb87),_0x161070['on']('execute',()=>this['_showDialog']()),_0x50d56b['set']({'label':m(_0xe71510,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x50d56b['bind']('isEnabled')['to'](_0x3e269a,'isReady',_0x369343,'isReadOnly',(_0x297656,_0x6c68e4)=>_0x297656&&!_0x6c68e4),_0x50d56b['on']('execute',()=>{_0x369343['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x40e3d8['isOpen']=!0x1,_0x369343['editing']['view']['focus']();}),_0x400a57['children']['add'](_0x161070),_0x277273['children']['add'](_0x50d56b),_0xd9ea7f['role']='menu',_0xd9ea7f['items']['addMany']([_0x400a57,_0x277273]),_0x41dd06['add'](_0xd9ea7f),_0x40e3d8;}),_0x369343['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4c9eed=this['editor'],_0x25bb13=_0x4c9eed['locale'],_0x119563=new _0x1d015f(_0x25bb13),_0x4ba226=new _0x5a7866(_0x25bb13);_0x119563['buttonView']['set']({'icon':_0x3d598a['history'],'label':m(_0x25bb13,'Revision\x20history')});const _0x29c2d4=new _0x56ee5b(_0x25bb13,_0x119563),_0xf741e1=new _0x2f9589(_0x25bb13);_0xf741e1['set']({'label':m(_0x25bb13,'Save\x20current\x20revision')}),_0xf741e1['delegate']('execute')['to'](_0x119563),_0xf741e1['on']('execute',()=>{this['_showDialog']();}),_0x29c2d4['children']['add'](_0xf741e1),_0x4ba226['items']['add'](_0x29c2d4);const _0x38ffce=new _0x56ee5b(_0x25bb13,_0x119563),_0x32855d=new _0x2f9589(_0x25bb13);return _0x32855d['set']({'label':m(_0x25bb13,'Open\x20revision\x20history')}),_0x32855d['delegate']('execute')['to'](_0x119563),_0x32855d['on']('execute',()=>{_0x4c9eed['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x38ffce['children']['add'](_0x32855d),_0x4ba226['items']['add'](_0x38ffce),_0x119563['panelView']['children']['add'](_0x4ba226),_0x119563;}['_showDialog'](){const _0x339b73=this['editor'],_0x1dbedf=_0x339b73['locale'],_0x17a7c0=_0x339b73['plugins']['get']('Dialog'),_0x1a7d0b=_0x339b73['plugins']['get']('RevisionTracker');function _0x57b97c(_0x112aee){_0x339b73['config']['get']('revisionHistory.requireRevisionName')&&''===_0x112aee['revisionName']?_0x112aee['revisionNameInputView']['errorText']=m(_0x1dbedf,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x339b73['plugins']['get'](l)['saveRevision']({'name':_0x112aee['revisionName']}),_0x17a7c0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x57b97c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x17a7c0['show']({'id':'revisionSave','title':m(_0x1dbedf,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x339b73['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x17a7c0['hide']()},{'label':m(_0x339b73['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x34994b){_0x34994b['bind']('isEnabled')['to'](_0x1a7d0b,'isReady',_0x1a7d0b,'isEnabled',_0x339b73,'isReadOnly',(_0x48c086,_0x3a3d87,_0x382e87)=>_0x48c086&&_0x3a3d87&&!_0x382e87);},'onExecute':()=>_0x57b97c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x684bcd=this['editor'],_0x36421d=_0x684bcd['locale'];this['_saveRevisionFormView']=new ns(_0x36421d,_0x684bcd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3e13f8{['changeId'];['_model'];constructor(_0x237057,_0x56648e){super(_0x237057),this['_model']=_0x56648e,this['changeId']=_0x56648e['id'];const _0x41fd93=this['bindTemplate'],_0x5c90b9=m(_0x237057,_0x56648e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x56648e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x56648e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x41fd93['to']('type',_0x174aef=>'ck-revision-change__'+_0x174aef)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5c90b9}]},{'text':'\x20'+_0x56648e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x148fd3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3cc8e6){super(),this['id']=_0x3cc8e6['id']||_0x47d60e(),this['author']=_0x3cc8e6['author'],this['type']=_0x3cc8e6['type'],this['data']=_0x3cc8e6['data']||{},this['rootName']=_0x3cc8e6['rootName'],this['set']('createdAt',_0x3cc8e6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x250d93,_0x4b4a45){this['newRevisionId']=_0x250d93,this['oldRevisionId']=_0x4b4a45,this['changes']=new _0x5ce501();}['_setChanges'](_0x53c9c9){for(const _0x296dc1 of _0x53c9c9)this['changes']['add'](_0x296dc1);}}const Y={'c':_0x3bd9fb,'a':_0x214754,'e':_0x28f78a,'r':_0x41ef08,'u':_0x56c447};class d extends _0x3a930c{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x110fe7,_0x5d0955,j];}constructor(_0x11a078){super(_0x11a078),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x21f1ec,_0x1974f5,_0x189021)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xc4ab65=>{for(const _0x228f4f of this['editor']['editing']['view']['document']['roots'])_0x189021?_0xc4ab65['removeClass']('ck-editor__editable__overlay',_0x228f4f):_0xc4ab65['addClass']('ck-editor__editable__overlay',_0x228f4f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xadf62a=>null!==_0xadf62a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5095e1,_0xe130cb,_0x1861a0)=>_0x5095e1&&_0x1861a0?_0xe130cb['changes']['getIndex'](_0x1861a0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x33701b,_0x316540)=>_0x33701b?_0x316540['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5d0955);}['init'](){const _0x3ae068=this['editor'],_0x21b464=new yt(_0x3ae068,{'direction':'backward'}),_0xe4d219=new yt(_0x3ae068,{'direction':'forward'});(_0x3ae068['commands']['add']('showPreviousChange',_0x21b464),_0x3ae068['commands']['add']('showNextChange',_0xe4d219),_0x3ae068['commands']['add']('restoreRevision',new _t(_0x3ae068)),this['on']('change:numberOfChanges',()=>{_0x21b464['refresh'](),_0xe4d219['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3ae068['enableReadOnlyMode']('revision-viewer'),_0x3ae068['plugins']['has']('WidgetToolbarRepository'))&&_0x3ae068['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x201e7b){await this['loadRevisionData'](_0x201e7b);const _0xaa5db={};for(const _0x575f18 in _0x201e7b['diffData']){if(_0x201e7b['diffData'][_0x575f18]['attachChange']&&!_0x201e7b['diffData'][_0x575f18]['attachChange']['isAttached'])continue;const _0x4e2889=this['_removeRevisionMarkers'](JSON['parse'](_0x201e7b['diffData'][_0x575f18]['insertions'])),_0x37e6bf=this['editor']['editing']['view']['document'],_0x4ffb28=new _0x2f1ec0(_0x37e6bf,_0x4e2889['map'](_0x162e67=>this['_getViewObj'](_0x162e67)));this['editor']['data']['processor']['useFillerType']('marked'),_0xaa5db[_0x575f18]=this['editor']['data']['processor']['toData'](_0x4ffb28),this['editor']['data']['processor']['useFillerType']('default');}return _0xaa5db;}async['getRevisionRootsAttributes'](_0x5f5d61){await this['loadRevisionData'](_0x5f5d61);const _0x384ac1={};for(const _0x2cbe6d in _0x5f5d61['diffData'])_0x5f5d61['diffData'][_0x2cbe6d]['attachChange']&&!_0x5f5d61['diffData'][_0x2cbe6d]['attachChange']['isAttached']||(_0x384ac1[_0x2cbe6d]=_0x5f5d61['diffData'][_0x2cbe6d]['attributesAfter']||{});return _0x384ac1;}['_removeRevisionMarkers'](_0x3037a2){return(_0x3037a2=_0x3037a2['filter'](_0x17d970=>!_0x17d970['name']||'revision-start'!==_0x17d970['name']&&'revision-end'!==_0x17d970['name']))['forEach'](_0x3260c2=>{'string'!=typeof _0x3260c2&&(_0x3260c2['children']=this['_removeRevisionMarkers'](_0x3260c2['children']),_0x3260c2['attributes']=_0x3260c2['attributes']['filter'](_0x445364=>!_0x445364[0x0]['startsWith']('data-revision-')));}),_0x3037a2;}async['compare'](_0x570a6d,_0x1bf78d,_0x3794d2=!0x1){if(!this['isEnabled'])return;const _0x7de842=this['diff'],_0xacb02f=this['repository'],_0x5440a9='string'==typeof _0x570a6d?_0xacb02f['getRevision'](_0x570a6d):_0x570a6d,_0x4e9f0e='string'==typeof _0x1bf78d?_0xacb02f['getRevision'](_0x1bf78d):_0x1bf78d,_0x1d521d=_0x5440a9['id'],_0xfd2da7=_0x4e9f0e?_0x4e9f0e['id']:null;if(!_0x3794d2&&this['diff']&&this['diff']['newRevisionId']===_0x1d521d&&this['diff']['oldRevisionId']===_0xfd2da7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1d521d,_0xfd2da7);const _0x576b89=this['_getRevisionsRange'](_0x5440a9,_0x4e9f0e,!0x0)['map'](_0x5d1355=>this['loadRevisionData'](_0x5d1355));return _0x576b89['push'](new Promise(_0x145f30=>{setTimeout(_0x145f30,0x14);})),Promise['all'](_0x576b89)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f1924=this['_getDiff'](_0x1d521d,_0xfd2da7);for(const _0x5894e7 of _0x2f1924['changes'])this['_changeIdToChange']['set'](_0x5894e7['id'],_0x5894e7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4a00cd=>{for(const _0x34e813 of this['editor']['model']['document']['getRootNames']())_0x4a00cd['detachRoot'](_0x34e813);for(const _0x3c9788 of Object['keys'](_0x2f1924['model'])){const _0xb1a707=_0x4a00cd['addRoot'](_0x3c9788);for(const _0x33eee4 of Object['keys'](_0x2f1924['attributes'][_0x3c9788]))_0x4a00cd['setAttribute'](_0x33eee4,_0x2f1924['attributes'][_0x3c9788][_0x33eee4],_0xb1a707);_0x4a00cd['insert'](_0x2f1924['model'][_0x3c9788],_0xb1a707,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f1924['changes'])),this['isReady']=!0x0;})['catch'](_0x27c2d3=>{console['error'](_0x27c2d3),this['_cleanUp'](),_0x7de842&&(this['diff']=_0x7de842),this['isReady']=!0x0;});}['addRevisionData'](_0x2e02bb,_0x313cb9){const _0x3498db=this['repository']['createRevision'](_0x2e02bb);return _0x3498db['on']('_update',(_0x455da0,_0x2b9180,_0x409562)=>_0x313cb9(_0x2b9180,_0x409562,_0x3498db)),this['repository']['addRevision'](_0x3498db),_0x3498db;}['loadRevisionData'](_0x315067){if(!_0x315067||_0x315067['diffData'])return Promise['resolve']();{const _0x4db3f5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4db3f5,'revisionId':_0x315067['id']})['then'](_0x4a4c74=>{_0x315067['_update']({'diffData':_0x4a4c74['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3cd6d2=>{for(const _0x5e4dc0 of this['editor']['model']['document']['getRootNames']())_0x3cd6d2['detachRoot'](_0x5e4dc0);});}['_sortAndFilterDiffChanges'](_0x5f1ab2){const _0xabcf2f=[],_0x473da8=new Map();for(const _0x5f4dfd of this['editor']['model']['document']['getRootNames']()){const _0x10720b=this['editor']['editing']['view']['getDomRoot'](_0x5f4dfd);if(!_0x10720b)continue;const _0x240210=_0x10720b['getClientRects']()['item'](0x0);_0x240210&&(_0xabcf2f['push'](_0x5f4dfd),_0x473da8['set'](_0x5f4dfd,_0x240210));}return _0xabcf2f['sort']((_0x14ef6c,_0x27fdec)=>{const _0x5b0ee6=_0x473da8['get'](_0x14ef6c),_0x523b60=_0x473da8['get'](_0x27fdec);return _0x5b0ee6['y']-_0x523b60['y']||_0x5b0ee6['x']-_0x523b60['x'];}),(_0x5f1ab2=_0x5f1ab2['filter'](_0x2eeab7=>_0xabcf2f['includes'](_0x2eeab7['rootName'])))['sort']((_0x26ee0f,_0xc3e19b)=>_0xabcf2f['indexOf'](_0x26ee0f['rootName'])-_0xabcf2f['indexOf'](_0xc3e19b['rootName'])),_0x5f1ab2;}['_makeTape'](_0x43c3d0){const _0x2b8657=Array['from'](_0x43c3d0['markers'])['filter'](([_0x1462c4,_0x1b6082])=>_0x1462c4['startsWith']('revision:')&&!_0x1b6082['isCollapsed']),_0x3ace23=Array['from'](this['editor']['model']['createRangeIn'](_0x43c3d0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2b8657['length'])for(const _0x33f2b7 of _0x3ace23){const [_0x5105b6,_0x3dea23]=_0x2b8657[0x0],[,_0x108f9a,_0x11be27]=_0x5105b6['split'](':');if(_0x3dea23['end']['isEqual'](_0x33f2b7['nextPosition'])&&_0x2b8657['shift'](),(_0x33f2b7['previousPosition']['isEqual'](_0x3dea23['start'])||_0x33f2b7['previousPosition']['isAfter'](_0x3dea23['start']))&&('insertion'==_0x108f9a?_0x33f2b7['isAdded']={'userId':_0x11be27}:'deletion'==_0x108f9a&&(_0x33f2b7['isRemoved']={'userId':_0x11be27})),0x0==_0x2b8657['length'])break;}return _0x3ace23;}['_refreshStartEndIndex'](_0x59ec39){const _0x21ff63=new Map();for(let _0x830079=0x0;_0x830079<_0x59ec39['length'];_0x830079++)'text'===_0x59ec39[_0x830079]['type']?(_0x59ec39[_0x830079]['item']['startIndex']=_0x830079,_0x59ec39[_0x830079]['item']['endIndex']=_0x830079):('elementStart'===_0x59ec39[_0x830079]['type']?_0x59ec39[_0x830079]['item']['startIndex']=_0x830079:'elementEnd'===_0x59ec39[_0x830079]['type']&&(_0x59ec39[_0x830079]['item']['endIndex']=_0x830079),_0x21ff63['set'](_0x59ec39[_0x830079]['id'],_0x830079));for(const _0x1b1001 of _0x21ff63['values']())'elementStart'===_0x59ec39[_0x1b1001]['type']?_0x59ec39[_0x1b1001]['item']['endIndex']=_0x21ff63['get'](_0x59ec39[_0x1b1001]['pairId']):'elementEnd'===_0x59ec39[_0x1b1001]['type']&&(_0x59ec39[_0x1b1001]['item']['startIndex']=_0x21ff63['get'](_0x59ec39[_0x1b1001]['pairId']));}['_processTape'](_0x42f12f){for(let _0x3547c2=0x0;_0x3547c2<_0x42f12f['length'];_0x3547c2++){if('elementStart'===_0x42f12f[_0x3547c2]['type'])_0x42f12f[_0x3547c2]['item']['startIndex']=_0x3547c2;else{if('elementEnd'===_0x42f12f[_0x3547c2]['type']){_0x42f12f[_0x3547c2]['item']['endIndex']=_0x3547c2;const _0x3d21a8=_0x42f12f[_0x3547c2]['item']['startIndex'];_0x42f12f[_0x3d21a8]['pairId']=_0x42f12f[_0x3547c2]['id'],_0x42f12f[_0x3547c2]['pairId']=_0x42f12f[_0x3d21a8]['id'];}else _0x42f12f[_0x3547c2]['item']['startIndex']=_0x3547c2,_0x42f12f[_0x3547c2]['item']['endIndex']=_0x3547c2,_0x42f12f[_0x3547c2]['pairId']=null;}_0x42f12f[_0x3547c2]['markersStart']||(_0x42f12f[_0x3547c2]['markersStart']=[],_0x42f12f[_0x3547c2]['markersEnd']=[]);}}['_markInsertions'](_0x271af5,_0x3a74eb){const _0x45e010=_0x271af5['filter'](_0x249235=>!_0x249235['isAdded']);for(let _0x156c54=0x0;_0x156c54<_0x3a74eb['length'];_0x156c54++)_0x3a74eb[_0x156c54]['isAdded']&&(_0x45e010[_0x156c54]['isAdded']=_0x3a74eb[_0x156c54]['isAdded']);}['_makeModelFromViewString'](_0x1118f4){const _0x2f740b=JSON['parse'](_0x1118f4),_0x1bf64d=this['editor']['editing']['view']['document'],_0x13a19b=new _0x2f1ec0(_0x1bf64d,_0x2f740b['map'](_0x1f7023=>this['_getViewObj'](_0x1f7023)));return this['editor']['data']['toModel'](_0x13a19b);}['_getViewObj'](_0x3b0eae){const _0x11656b=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b0eae)return new _0x143292(_0x11656b,_0x3b0eae);{const _0x8e3811=_0x3b0eae['children']['map'](_0xd3283a=>this['_getViewObj'](_0xd3283a));return new(Y[_0x3b0eae['type']]||_0x4f6869)(_0x11656b,_0x3b0eae['name'],_0x3b0eae['attributes'],_0x8e3811);}}['_getDiff'](_0x3d13fe,_0x427101=null){const _0x5a20cf=this['repository']['getRevision'](_0x3d13fe),_0x3210d7=_0x427101?this['repository']['getRevision'](_0x427101):null,_0x18feaf=this['_getRevisionsRange'](_0x5a20cf,_0x3210d7),_0x38cbe9=_0x18feaf[_0x18feaf['length']-0x1],_0x522978=new Map(),_0x577215={'model':{},'attributes':{},'changes':[]},_0x39a604=new Set(),_0x287819=new Map();for(let _0x52b840=_0x18feaf['length']-0x1;_0x52b840>=0x0;_0x52b840--){const _0xfbe01d=_0x18feaf[_0x52b840];for(const _0xd89235 of Object['keys'](_0xfbe01d['diffData']))if(_0xfbe01d['diffData'][_0xd89235]['attachChange']){const _0xe9cc18=_0xfbe01d['diffData'][_0xd89235]['attachChange'];_0xe9cc18['isAttached']?(_0x39a604['add'](_0xd89235),_0x287819['has'](_0xd89235)&&_0x287819['get'](_0xd89235)['userId']==_0xe9cc18['userId']?_0x287819['delete'](_0xd89235):_0x287819['set'](_0xd89235,_0xe9cc18)):_0x287819['has'](_0xd89235)?(_0x39a604['delete'](_0xd89235),_0x287819['delete'](_0xd89235)):(_0x39a604['add'](_0xd89235),_0x287819['set'](_0xd89235,_0xe9cc18));}else _0x39a604['add'](_0xd89235);}for(const _0x537946 of _0x39a604){const _0x1cb8d0=_0x287819['has'](_0x537946)&&!_0x287819['get'](_0x537946)['isAttached'];let _0x364fc9=_0x1cb8d0?_0x18feaf['length']-0x1:0x0;const _0x1196ef=_0x1cb8d0?-0x1:0x1;for(;_0x18feaf[_0x364fc9];){const _0x224fe=_0x18feaf[_0x364fc9];if(_0x224fe['diffData'][_0x537946]){const _0x27c90d=_0x1cb8d0?_0x224fe['diffData'][_0x537946]['attributesBefore']:_0x224fe['diffData'][_0x537946]['attributesAfter'];_0x577215['attributes'][_0x537946]=_0x27c90d?_0x859668(_0x27c90d):{};break;}_0x364fc9+=_0x1196ef;}}for(const _0x3fbbce of _0x18feaf){_0x3fbbce['model']={};for(const _0x5b4ed6 of _0x3fbbce['authors'])_0x522978['set'](_0x5b4ed6['id'],_0x5b4ed6);for(const _0x5caf9c of _0x39a604){const _0x22acea=_0x3fbbce['diffData'][_0x5caf9c]?_0x3fbbce['diffData'][_0x5caf9c]['insertions']:'[]',_0x29df8e=_0x3fbbce['diffData'][_0x5caf9c]?_0x3fbbce['diffData'][_0x5caf9c]['deletions']:'[]';_0x3fbbce['model'][_0x5caf9c]={'insertions':this['_makeModelFromViewString'](_0x22acea),'deletions':this['_makeModelFromViewString'](_0x29df8e)};}}for(const _0x426104 of _0x39a604){let _0x2cad67=null,_0x54bee6=0x0;const _0xdd186d=new Map(Array['from'](_0x5a20cf['model'][_0x426104]['insertions']['markers'])['filter'](([_0x1acf3a])=>!_0x1acf3a['startsWith']('revision:')));let _0x2700f9=0x0;for(const _0x27f7b6 of _0x18feaf){const _0x434db7=this['_makeTape'](_0x27f7b6['model'][_0x426104]['insertions']);_0x27f7b6==_0x5a20cf?(_0x2cad67=_0x434db7,_0x54bee6=_0x2cad67['length'],_0x2cad67['forEach'](_0x65ee7=>{_0x65ee7['id']=_0x2700f9++;}),this['_processTape'](_0x2cad67)):this['_markInsertions'](_0x2cad67,_0x434db7);const _0xd68ba3=_0x2cad67['filter'](_0x448664=>!_0x448664['isAdded'])['map'](_0xcb781a=>_0xcb781a['id']);let _0xdd2d8b=0x0;const _0x58f743=this['_makeTape'](_0x27f7b6['model'][_0x426104]['deletions']);_0x58f743['forEach'](_0x25126d=>{_0x25126d['isRemoved']?_0x25126d['id']=_0x54bee6++:_0x25126d['id']=_0xd68ba3[_0xdd2d8b++];}),this['_processTape'](_0x58f743),this['_setDistance'](_0x2cad67,'isAdded'),this['_setDistance'](_0x58f743,'isRemoved'),_0x27f7b6==_0x5a20cf&&this['_markMarkers'](_0x2cad67,_0xdd186d),_0x2cad67=this['_joinTapes'](_0x2cad67,_0x58f743),this['_refreshStartEndIndex'](_0x2cad67),this['_setDistance'](_0x2cad67,'isRemoved');}_0x2cad67=_0x2cad67['filter'](_0x44f306=>!(_0x44f306['isAdded']&&_0x44f306['isRemoved']));const _0x659313=new Map(_0x38cbe9['model'][_0x426104]['deletions']['markers']),_0x4dc2d0=new Set(_0xdd186d['keys']());for(const _0x5c36d1 of _0x659313['keys']())_0x4dc2d0['delete'](_0x5c36d1);this['_markSuggestions'](_0x2cad67,_0x4dc2d0),this['_fixObsoleteTags'](_0x2cad67),_0x2cad67=this['_removeMissingPairs'](_0x2cad67),_0x2cad67=this['_markMismatchedRemovedTags'](_0x2cad67),_0x2cad67=this['_removeUnsupportedChanges'](_0x2cad67);const {root:_0x32204c,changes:_0x13410e}=this['_makeModelFromTape'](_0x2cad67,_0x522978,_0x426104);_0x577215['model'][_0x426104]=_0x32204c;const _0x5a168b=_0x287819['get'](_0x426104);if(_0x5a168b){const _0x533f90=_0x522978['get'](_0x5a168b['userId']),_0x25e6be=new r({'author':_0x533f90,'type':_0x5a168b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x426104});_0x13410e['unshift'](_0x25e6be),_0x577215['attributes'][_0x426104]['revisionHistoryAttachChange']=_0x25e6be['id'];}_0x577215['changes']=_0x577215['changes']['concat'](_0x13410e);}return _0x577215;}['_markMarkers'](_0x306292,_0x163d2a){for(let _0x456f96=0x0;_0x456f96<_0x306292['length'];_0x456f96++)for(const [_0x5842b1,_0x26c223]of _0x163d2a)_0x26c223['start']['isEqual'](_0x306292[_0x456f96]['previousPosition'])&&_0x306292[_0x456f96]['markersStart']['push'](_0x5842b1),_0x26c223['end']['isEqual'](_0x306292[_0x456f96]['nextPosition'])&&_0x306292[_0x456f96]['markersEnd']['push'](_0x5842b1);}['_joinTapes'](_0x39f226,_0x2dcc04){let _0xc43142=[],_0x33c2a0=0x0,_0x1fea77=0x0;for(;_0x33c2a0<_0x39f226['length']||_0x1fea77<_0x2dcc04['length'];){const _0x313db5=_0x39f226[_0x33c2a0]||{},_0x5a8700=_0x2dcc04[_0x1fea77]||{};if(_0x313db5['id']==_0x5a8700['id'])_0x33c2a0++,_0x1fea77++,_0xc43142['push'](_0x313db5);else{if(_0x5a8700['isRemoved']&&_0x313db5['isAdded']){const {commonTape:_0x1cfe61,iEnd:_0x32605d,jEnd:_0x10ac47}=this['_threeWayMerge'](_0x39f226,_0x33c2a0,_0x2dcc04,_0x1fea77);_0xc43142=_0xc43142['concat'](_0x1cfe61),_0x33c2a0=_0x32605d,_0x1fea77=_0x10ac47;}else _0x5a8700['isRemoved']?(_0x1fea77++,_0xc43142['push'](_0x5a8700)):(_0x33c2a0++,_0xc43142['push'](_0x313db5));}}return _0xc43142;}['_markSuggestions'](_0x23ca92,_0x5d287e){const _0x538102=[];for(let _0x2033f9=0x0;_0x2033f9<_0x23ca92['length'];_0x2033f9++){for(let _0x43f414=0x0;_0x43f414<_0x23ca92[_0x2033f9]['markersStart']['length'];_0x43f414++){const _0x56a855=_0x23ca92[_0x2033f9]['markersStart'][_0x43f414];if(!_0x5d287e['has'](_0x56a855))continue;const {group:_0x2bdbb6,type:_0x191de6,authorId:_0x15d490}=_0x49f774(_0x56a855);'revision-suggestion'!=_0x2bdbb6||'insertion'!=_0x191de6&&'deletion'!=_0x191de6||(_0x538102['unshift']({'type':_0x191de6,'name':_0x56a855,'userId':_0x15d490}),_0x23ca92[_0x2033f9]['markersStart']['splice'](_0x43f414,0x1),_0x43f414--);}_0x125f8f(_0x23ca92[_0x2033f9]);for(let _0x352c26=0x0;_0x352c26<_0x23ca92[_0x2033f9]['markersEnd']['length'];_0x352c26++){const _0x33f64a=_0x23ca92[_0x2033f9]['markersEnd'][_0x352c26];if(!_0x5d287e['has'](_0x33f64a))continue;const {group:_0x43b508,type:_0x51f68b}=_0x49f774(_0x33f64a);if('revision-suggestion'!=_0x43b508||'insertion'!=_0x51f68b&&'deletion'!=_0x51f68b)continue;_0x23ca92[_0x2033f9]['markersEnd']['splice'](_0x352c26,0x1),_0x352c26--;const _0x1736ab=_0x538102['findIndex'](_0x4f2df0=>_0x4f2df0['name']==_0x33f64a);_0x1736ab>-0x1&&_0x538102['splice'](_0x1736ab,0x1);}}function _0x49f774(_0x6d766){const _0x975112=_0x6d766['split'](':');return{'group':_0x975112[0x0],'type':_0x975112[0x1],'subType':_0x975112['length']>=0x5?_0x975112[0x2]:null,'id':_0x975112['length']<0x5?_0x975112[0x2]:_0x975112[0x3],'authorId':_0x975112['length']<0x5?_0x975112[0x3]:_0x975112[0x4],'markerCount':0x6==_0x975112['length']?_0x975112[0x5]:null};}function _0x125f8f(_0x43e19c){for(let _0x2d80fe=0x0;_0x2d80fe<_0x538102['length'];_0x2d80fe++){if(_0x43e19c['isAdded']&&'insertion'==_0x538102[_0x2d80fe]['type'])return _0x43e19c['isAddSuggestion']=_0x538102[_0x2d80fe],void delete _0x43e19c['isAdded'];if(!_0x43e19c['isAdded']&&!_0x43e19c['isRemoved']&&'deletion'==_0x538102[_0x2d80fe]['type'])return void(_0x43e19c['isRemoveSuggestion']=_0x538102[_0x2d80fe]);}}}['_setDistance'](_0x563140,_0x27a7ee){let _0x2f8030=0x0,_0x27b381=!0x1;const _0x3830c5=new Map();for(const _0x5e89d5 of _0x563140)_0x5e89d5[_0x27a7ee]?_0x27b381&&(_0x2f8030++,_0x27b381=!0x1):(_0x2f8030++,_0x27b381=!0x0),_0x3830c5['set'](_0x5e89d5['id'],_0x2f8030);for(let _0x4c32ab=0x0;_0x4c32ab<_0x563140['length'];_0x4c32ab++){if('isRemoved'==_0x27a7ee&&_0x563140[_0x4c32ab]['isAdded']||'isAdded'==_0x27a7ee&&_0x563140[_0x4c32ab]['isRemoved'])continue;if('text'==_0x563140[_0x4c32ab]['type']){_0x563140[_0x4c32ab]['distance']=0x0;continue;}const _0x27fc4c=_0x3830c5['get'](_0x563140[_0x4c32ab]['pairId']),_0x4e8bb6=_0x3830c5['get'](_0x563140[_0x4c32ab]['id']);_0x563140[_0x4c32ab]['distance']=_0x27fc4c-_0x4e8bb6;}}['_getRevisionsRange'](_0x418552,_0x1eba26,_0xffe438=!0x1){const _0x280eaa=[];let _0x58b679=this['repository']['getIndex'](_0x418552),_0x48f600=this['repository']['getIndex'](_0x1eba26);for(-0x1==_0x48f600&&(_0x48f600=this['repository']['_revisions']['length'],_0xffe438=!0x1);_0x58b679<_0x48f600;)_0x280eaa['push'](this['repository']['getRevision'](_0x58b679)),_0x58b679++;return _0xffe438&&_0x280eaa['push'](this['repository']['getRevision'](_0x58b679)),_0x280eaa;}['_threeWayMerge'](_0x2a4a2e,_0x4de1b4,_0x3debf2,_0x5b67b7){const _0x3ccd41=this['editor']['model']['schema'];let _0x5d9e64=_0x4de1b4;for(;_0x2a4a2e[_0x5d9e64]&&_0x2a4a2e[_0x5d9e64]['isAdded'];)_0x5d9e64++;let _0x310529=_0x5b67b7;for(;_0x3debf2[_0x310529]&&_0x3debf2[_0x310529]['isRemoved'];)_0x310529++;_0x163f16(_0x2a4a2e,_0x4de1b4,_0x5d9e64),_0x163f16(_0x3debf2,_0x5b67b7,_0x310529);const _0x3b1e1d=_0x3debf2['slice'](_0x5b67b7,_0x310529)['concat'](_0x2a4a2e['slice'](_0x4de1b4,_0x5d9e64));return _0x3b1e1d['sort']((_0x5d7608,_0x11b0f4)=>_0x5d7608['side']!=_0x11b0f4['side']?_0x5d7608['side']-_0x11b0f4['side']:_0x5d7608['level']!=_0x11b0f4['level']?_0x5d7608['level']-_0x11b0f4['level']:_0x5d7608['distance']!=_0x11b0f4['distance']?_0x11b0f4['distance']-_0x5d7608['distance']:!!_0x5d7608['isAdded']!=!!_0x11b0f4['isAdded']?-0x1==_0x5d7608['side']||0x0==_0x5d7608['side']?_0x5d7608['isAdded']?-0x1:0x1:_0x5d7608['isAdded']?0x1:-0x1:_0x5d7608['index']-_0x11b0f4['index']),{'commonTape':_0x3b1e1d,'iEnd':_0x5d9e64,'jEnd':_0x310529};function _0x163f16(_0x52ff1d,_0x290eb9,_0x5a142e){let _0x2d1e91=-0x1,_0x4d4119=Number['POSITIVE_INFINITY'],_0x1eead4=!0x0;for(let _0x4c5574=_0x290eb9;_0x4c5574<_0x5a142e;_0x4c5574++)if(_0x3ccd41['isInline'](_0x52ff1d[_0x4c5574]['item'])||(_0x1eead4=!0x1),_0x52ff1d[_0x4c5574]['item']['startIndex']<_0x290eb9&&(_0x2d1e91=_0x4c5574),_0x52ff1d[_0x4c5574]['item']['endIndex']>=_0x5a142e){_0x4d4119=_0x4c5574;break;}_0x1eead4&&(_0x2d1e91=_0x5a142e-0x1);for(let _0x38066e=_0x290eb9;_0x38066e<_0x5a142e;_0x38066e++)_0x52ff1d[_0x38066e]['side']=_0x38066e<=_0x2d1e91?-0x1:_0x38066e<_0x4d4119?0x0:0x1,_0x52ff1d[_0x38066e]['index']=_0x38066e;let _0x139c97=0x0;for(let _0x5f15dc=_0x290eb9;_0x5f15dc<=_0x2d1e91;_0x5f15dc++)0x0==_0x52ff1d[_0x5f15dc]['distance']?_0x52ff1d[_0x5f15dc]['level']=_0x139c97:(_0x139c97++,_0x52ff1d[_0x5f15dc]['level']=_0x139c97,_0x139c97++);for(let _0x1fa2be=_0x290eb9;_0x1fa2be<_0x5a142e;_0x1fa2be++)0x0==_0x52ff1d[_0x1fa2be]['side']&&(_0x52ff1d[_0x1fa2be]['level']=_0x139c97);_0x139c97=0x0;for(let _0xcf9321=_0x5a142e-0x1;_0xcf9321>=_0x4d4119;_0xcf9321--)0x0==_0x52ff1d[_0xcf9321]['distance']?_0x52ff1d[_0xcf9321]['level']=_0x139c97:(_0x139c97--,_0x52ff1d[_0xcf9321]['level']=_0x139c97,_0x139c97--);}}['_fixObsoleteTags'](_0x4bdba2){const _0x54730e=new Map(),_0x42205f=this['editor']['model']['schema'];for(let _0x1993d6=0x1;_0x1993d6<_0x4bdba2['length'];_0x1993d6++){let _0xc974cd,_0x369b7b,_0x448f06;const _0xd3eafe=_0x4bdba2[_0x1993d6],_0x2e7696=_0x4bdba2[_0x1993d6-0x1];if('text'==_0xd3eafe['type'])continue;if(_0xd3eafe['type']!=_0x2e7696['type'])continue;if(!_0x42205f['isBlock'](_0x2e7696['item'])||_0x42205f['isLimit'](_0x2e7696['item']))continue;if(!_0x42205f['isBlock'](_0xd3eafe['item'])||_0x42205f['isLimit'](_0xd3eafe['item']))continue;if((_0x4bdba2[_0x1993d6]['isAdded']||_0x4bdba2[_0x1993d6]['isAddSuggestion'])&&_0x4bdba2[_0x1993d6-0x1]['isRemoved'])_0xc974cd=_0x4bdba2[_0x1993d6],_0x369b7b=_0x4bdba2[_0x1993d6-0x1],_0x448f06=_0x1993d6-0x1;else{if(!_0x4bdba2[_0x1993d6]['isRemoved']||!_0x4bdba2[_0x1993d6-0x1]['isAdded']&&!_0x4bdba2[_0x1993d6-0x1]['isAddSuggestion'])continue;_0xc974cd=_0x4bdba2[_0x1993d6-0x1],_0x369b7b=_0x4bdba2[_0x1993d6],_0x448f06=_0x1993d6;}const _0x50bee8=_0xc974cd['level']==_0x369b7b['level'],_0x5bf669=Math['abs'](_0xc974cd['level'])<Math['abs'](_0x369b7b['level'])&&0x0==_0x369b7b['distance'];(_0x50bee8||_0x5bf669)&&(_0x54730e['set'](_0x369b7b['id'],_0xc974cd['id']),_0x4bdba2['splice'](_0x448f06,0x1),_0x1993d6--,_0xc974cd['isAdded']=!0x1);}for(let _0x2a21ac=0x0;_0x2a21ac<_0x4bdba2['length'];_0x2a21ac++)_0x54730e['has'](_0x4bdba2[_0x2a21ac]['pairId'])&&(_0x4bdba2[_0x2a21ac]['pairId']=_0x54730e['get'](_0x4bdba2[_0x2a21ac]['pairId']));}['_removeMissingPairs'](_0x5cfce7){const _0x3b55bf=new Set(_0x5cfce7['map'](_0x448e3c=>_0x448e3c['id']));for(let _0x2cd632=0x0;_0x2cd632<_0x5cfce7['length'];_0x2cd632++)_0x3b55bf['has'](_0x5cfce7[_0x2cd632]['pairId'])||0x0==_0x5cfce7[_0x2cd632]['distance']||(_0x5cfce7[_0x2cd632]['isIncorrect']=!0x0);return _0x5cfce7['filter'](_0x3e74ae=>!_0x3e74ae['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3a11c8){const _0x2d2de5=new Set();for(let _0x29d9fd=0x0;_0x29d9fd<_0x3a11c8['length'];_0x29d9fd++){if(_0x2d2de5['has'](_0x3a11c8[_0x29d9fd]['id'])&&_0x3a11c8[_0x29d9fd]['isRemoved']&&(_0x3a11c8[_0x29d9fd]['isIncorrect']=!0x0),_0x3a11c8[_0x29d9fd]['isIncorrect'])continue;if(0x0==_0x3a11c8[_0x29d9fd]['distance'])continue;if('elementStart'!=_0x3a11c8[_0x29d9fd]['type'])continue;if(null==_0x3a11c8[_0x29d9fd]['pairId'])continue;let _0x16b76f=_0x29d9fd+0x1,_0x527de8=0x0;for(;_0x3a11c8[_0x16b76f]['id']!=_0x3a11c8[_0x29d9fd]['pairId'];)'elementStart'==_0x3a11c8[_0x16b76f]['type']?_0x527de8++:'elementEnd'==_0x3a11c8[_0x16b76f]['type']&&_0x527de8--,_0x16b76f++;if(0x0!=_0x527de8){if(_0x3a11c8[_0x29d9fd]['isRemoved'])_0x3a11c8[_0x29d9fd]['isIncorrect']=!0x0;else{for(;_0x16b76f!=_0x29d9fd;)_0x3a11c8[_0x16b76f]['isRemoved']&&0x0!=_0x3a11c8[_0x16b76f]['distance']&&(_0x3a11c8[_0x16b76f]['isIncorrect']=!0x0,_0x2d2de5['add'](_0x3a11c8[_0x16b76f]['pairId'])),_0x16b76f--;}}}return _0x3a11c8['filter'](_0x40751c=>!_0x40751c['isIncorrect']);}['_removeUnsupportedChanges'](_0x1aca11){const _0x15fc28=this['editor']['model']['schema'];for(let _0x35f1c2=0x0;_0x35f1c2<_0x1aca11['length'];_0x35f1c2++){if(!(_0x1aca11[_0x35f1c2]['isAdded']||_0x1aca11[_0x35f1c2]['isAddSuggestion']||_0x1aca11[_0x35f1c2]['isRemoved']||_0x1aca11[_0x35f1c2]['isRemoveSuggestion']))continue;if(0x0==_0x1aca11[_0x35f1c2]['distance'])continue;const _0x348632=_0x1aca11[_0x35f1c2]['item'];_0x15fc28['isBlock'](_0x348632)||_0x15fc28['isLimit'](_0x348632)||(_0x1aca11[_0x35f1c2]['isAdded']&&delete _0x1aca11[_0x35f1c2]['isAdded'],_0x1aca11[_0x35f1c2]['isAddSuggestion']&&delete _0x1aca11[_0x35f1c2]['isAddSuggestion'],_0x1aca11[_0x35f1c2]['isRemoveSuggestion']&&delete _0x1aca11[_0x35f1c2]['isRemoveSuggestion'],_0x1aca11[_0x35f1c2]['isRemoved']&&(_0x1aca11[_0x35f1c2]['isIncorrect']=!0x0));}return _0x1aca11['filter'](_0x33eba1=>!_0x33eba1['isIncorrect']);}['_makeModelFromTape'](_0xcd10c3,_0x37e922,_0x399739){const _0x21f19d=new mt(),_0x23400c=[],_0x33d3e3=new Map(),_0x3587bc=this['editor']['model'],_0x4567e6=_0x3587bc['schema'],_0x90369c=[_0x21f19d],_0x7e959f={},_0x35cd5a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x27b2d7=null;const _0x5e72e9=[0x0];for(let _0x5b5860=0x0;_0x5b5860<_0xcd10c3['length'];_0x5b5860++)if('elementStart'===_0xcd10c3[_0x5b5860]['type']){_0xcd10c3[_0x5b5860]['previousPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9);const _0xab54fd=new ft(_0xcd10c3[_0x5b5860]['item']['name'],_0xcd10c3[_0x5b5860]['item']['getAttributes']());_0x90369c[0x0]['_appendChild'](_0xab54fd),_0x5e72e9['push'](0x0),_0x90369c['unshift'](_0xab54fd),_0xcd10c3[_0x5b5860]['nextPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9);}else'elementEnd'===_0xcd10c3[_0x5b5860]['type']?(_0x90369c['shift'](),_0xcd10c3[_0x5b5860]['previousPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9),_0x5e72e9['pop'](),_0x5e72e9[_0x5e72e9['length']-0x1]++,_0xcd10c3[_0x5b5860]['nextPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9)):(_0xcd10c3[_0x5b5860]['previousPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9),_0x27b2d7?_0x27b2d7['_data']+=_0xcd10c3[_0x5b5860]['item']['data']:_0x27b2d7=new wt(_0xcd10c3[_0x5b5860]['item']['data'],_0xcd10c3[_0x5b5860]['item']['getAttributes']()),_0xcd10c3[_0x5b5860+0x1]&&'text'===_0xcd10c3[_0x5b5860+0x1]['type']&&_0x5ab6f2(_0x27b2d7,_0xcd10c3[_0x5b5860+0x1]['item'])||(_0x90369c[0x0]['_appendChild'](_0x27b2d7),_0x27b2d7=null),_0x5e72e9[_0x5e72e9['length']-0x1]+=_0xcd10c3[_0x5b5860]['item']['offsetSize'],_0xcd10c3[_0x5b5860]['nextPosition']=_0x3587bc['createPositionFromPath'](_0x21f19d,_0x5e72e9));for(let _0xd9323a=0x0;_0xd9323a<_0xcd10c3['length'];_0xd9323a++){const _0x117d2d=_0xcd10c3[_0xd9323a]['previousPosition'],_0x90b2cb=_0xcd10c3[_0xd9323a]['nextPosition'];for(const _0x133d90 of _0xcd10c3[_0xd9323a]['markersStart'])_0x33d3e3['set'](_0x133d90,{'start':_0x117d2d,'end':null});_0x59fcf9('isRemoveSuggestion',_0xd9323a,_0x117d2d,_0x90b2cb),_0x59fcf9('isAddSuggestion',_0xd9323a,_0x117d2d,_0x90b2cb),_0x59fcf9('isRemoved',_0xd9323a,_0x117d2d,_0x90b2cb),_0x59fcf9('isAdded',_0xd9323a,_0x117d2d,_0x90b2cb);for(const _0x5d1e53 of _0xcd10c3[_0xd9323a]['markersEnd']){_0x33d3e3['get'](_0x5d1e53)['end']=_0x90b2cb;}}for(const [_0x1ccc37,_0x4fb78a]of _0x33d3e3){const _0x88b19c=this['editor']['model']['createRange'](_0x4fb78a['start'],_0x4fb78a['end']);_0x21f19d['markers']['set'](_0x1ccc37,_0x88b19c);}return _0x23400c['sort']((_0x4bd1fd,_0xa7668e)=>{const _0x3eba4b=_0x21f19d['markers']['get']('revision:'+_0x4bd1fd['id']),_0x142989=_0x21f19d['markers']['get']('revision:'+_0xa7668e['id']);return _0x3eba4b['start']['isBefore'](_0x142989['start'])?-0x1:_0x3eba4b['start']['isAfter'](_0x142989['start'])?0x1:_0x3eba4b['end']['isBefore'](_0x142989['end'])?-0x1:_0x3eba4b['end']['isAfter'](_0x142989['end'])?0x1:'add'===_0x4bd1fd['type']?-0x1:0x1;}),{'root':_0x21f19d,'changes':_0x23400c};function _0x59fcf9(_0x3c06dc,_0xe77bb1,_0xb65e05,_0x272dce){const _0x1c8ca4=!!_0xcd10c3[_0xe77bb1][_0x3c06dc],_0x311a08=_0x1c8ca4?_0xcd10c3[_0xe77bb1][_0x3c06dc]['userId']:null,_0x1e6289=_0xe77bb1===_0xcd10c3['length']-0x1,_0x3dd8f3=_0x35cd5a[_0x3c06dc][0x0],_0x4455d7=_0x4567e6['isObject'](_0xcd10c3[_0xe77bb1]['item']);!_0x7e959f[_0x3c06dc]&&_0x1c8ca4?_0x7e959f[_0x3c06dc]={'start':_0xb65e05,'tapeItem':_0xcd10c3[_0xe77bb1],'userId':_0x311a08,'type':_0x3c06dc}:_0x7e959f[_0x3c06dc]&&!_0x1c8ca4?(_0x7e959f[_0x3c06dc]['end']=_0xb65e05,_0x29d8d4(_0x7e959f[_0x3c06dc]),_0x7e959f[_0x3c06dc]=null):_0x7e959f[_0x3c06dc]&&_0x1c8ca4&&_0x7e959f[_0x3c06dc]['userId']!==_0x311a08&&(_0x7e959f[_0x3c06dc]['end']=_0xb65e05,_0x3dd8f3&&_0x3dd8f3['userId']===_0x7e959f[_0x3c06dc]['userId']||_0x29d8d4(_0x7e959f[_0x3c06dc]),_0x7e959f[_0x3c06dc]={'start':_0xb65e05,'tapeItem':_0xcd10c3[_0xe77bb1],'userId':_0x311a08,'type':_0x3c06dc}),_0x7e959f[_0x3c06dc]&&_0x4455d7&&('elementStart'!==_0xcd10c3[_0xe77bb1]['type']||_0x3dd8f3&&_0x3dd8f3['userId']===_0x311a08||_0x35cd5a[_0x3c06dc]['unshift']({'userId':_0x311a08,'object':_0xcd10c3[_0xe77bb1]['item'],'change':_0x7e959f[_0x3c06dc]}),'elementEnd'===_0xcd10c3[_0xe77bb1]['type']&&_0x3dd8f3&&_0x3dd8f3['object']===_0xcd10c3[_0xe77bb1]['item']&&(_0x35cd5a[_0x3c06dc]['shift'](),_0x7e959f[_0x3c06dc]=_0x3dd8f3['change'])),_0x7e959f[_0x3c06dc]&&_0x1e6289&&(_0x7e959f[_0x3c06dc]['end']=_0x272dce,_0x29d8d4(_0x7e959f[_0x3c06dc]),_0x7e959f[_0x3c06dc]=null);}function _0x29d8d4({start:_0x13637f,end:_0x547c1a,tapeItem:_0x2054e5,userId:_0x53db55,type:_0x934c8a}){const _0xe10871=_0x2054e5['item'],_0x1380d5=_0x3587bc['schema']['isBlock'](_0xe10871)&&!_0x3587bc['schema']['isLimit'](_0xe10871),_0x468193=_0x13637f['nodeAfter']==_0x547c1a['parent']&&_0x547c1a['isAtStart'];if(_0x1380d5&&_0x468193)return;const _0x3abd73=_0x3587bc['createRange'](_0x13637f,_0x547c1a),_0x1f1ee5=_0x37e922['get'](_0x53db55),_0x1df5c5=new r({'author':_0x1f1ee5,'type':'isAdded'==_0x934c8a||'isAddSuggestion'==_0x934c8a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x934c8a||'isRemoveSuggestion'==_0x934c8a},'createdAt':new Date(),'rootName':_0x399739});_0x23400c['push'](_0x1df5c5),_0x21f19d['markers']['set']('revision:'+_0x1df5c5['id'],_0x3abd73);}function _0x5ab6f2(_0x3acb3d,_0x6c3407){const _0x59190f=_0x3acb3d['getAttributes'](),_0x324826=_0x6c3407['getAttributes']();for(const _0x9464d of _0x59190f){if(_0x9464d[0x1]!==_0x6c3407['getAttribute'](_0x9464d[0x0]))return!0x1;_0x324826['next']();}return _0x324826['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x11e15c=>{const _0x553cef=_0x11e15c['markerName']['split'](':')[0x1],_0x2a173b=this['_getChangeFromId'](_0x553cef);if(!_0x2a173b)return null;const _0x4119e7='add'==_0x2a173b['type']?'insertion':'deletion',_0x1e85f4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4119e7];return _0x2a173b['data']['isSuggestion']&&_0x1e85f4['push']('ck-suggestion-marker-'+_0x4119e7+'-new'),this['activeChange']==_0x2a173b&&_0x1e85f4['push']('ck-suggestion-marker--active'),{'classes':_0x1e85f4,'attributes':{'data-change-id':_0x553cef}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4d843b=>{_0x4d843b['on']('element:pre',(_0x88c77,_0x44af40,_0x11fd07)=>{const _0x4294bd=_0x44af40['viewItem']['getChild'](0x0);if(!_0x4294bd||!_0x4294bd['is']('element','code'))return;if(!_0x11fd07['consumable']['consume'](_0x4294bd,{'attributes':['vid_start','vid_end']}))return;const _0x1c72b6=_0x44af40['modelRange']['start']['nodeAfter'];_0x11fd07['writer']['setAttribute']('vid_start',_0x4294bd['getAttribute']('vid_start'),_0x1c72b6),_0x11fd07['writer']['setAttribute']('vid_end',_0x4294bd['getAttribute']('vid_end'),_0x1c72b6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7da2de=>{_0x7da2de['on']('element',(_0x160e61,_0xf03da1,_0x186651)=>{if(!_0x186651['consumable']['consume'](_0xf03da1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xf03da1['modelRange']['isCollapsed'])return;const _0xecccb6=_0xf03da1['modelRange']['start']['nodeAfter'];_0xecccb6['hasAttribute']('vid_start')||_0xecccb6['hasAttribute']('vid')||(_0x186651['writer']['setAttribute']('vid_start',_0xf03da1['viewItem']['getAttribute']('vid_start'),_0xecccb6),_0x186651['writer']['setAttribute']('vid_end',_0xf03da1['viewItem']['getAttribute']('vid_end'),_0xecccb6));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x146a67=>_0x146a67['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xdc9e4a,[,_0x1df993])=>{['vid_start','vid_end','vid']['includes'](_0x1df993)&&(_0xdc9e4a['return']=!0x0,_0xdc9e4a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x30edfe=>{_0x30edfe['on']('attribute:vid',(_0x5b305d,_0x272525,_0x346110)=>{if('\x20'!=_0x272525['item']['data']||_0x272525['item']['parent']['maxOffset']>0x1)return;if(!_0x346110['consumable']['consume'](_0x272525['item'],_0x5b305d['name']))return;const _0x5c1a76=_0x346110['writer'],_0x2cb44a=_0x346110['mapper']['toViewRange'](_0x272525['range']);_0x5c1a76['wrap'](_0x2cb44a,_0x5c1a76['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2753c2){const _0x38980c=_0x2753c2['plugins']['get']('RevisionViewer');return(_0x2aa222,_0x48a2a2,_0x1f1586)=>{const _0x39df94=_0x48a2a2['markerName']['split'](':')[0x1],_0x207203=_0x38980c['_getChangeFromId'](_0x39df94);if(!_0x207203)return null;const _0x576ad4='add'==_0x207203['type']?'split':'merge';if(!_0x1f1586['consumable']['test'](_0x48a2a2['markerRange'],_0x2aa222['name']))return;const _0x15af59=_0x48a2a2['markerRange']['getWalker'](),_0x61819d=_0x48a2a2['markerRange']['start'],_0x42d4f5=_0x2753c2['model']['schema'];let _0x1e4b2b=null,_0x1302e8=null,_0x3d4939=!0x1,_0x1ea058=!0x1;for(const _0x47ebdd of _0x15af59){const _0x5b4bb4=_0x47ebdd['item'];_0x3d4939=_0x3d4939||_0x42d4f5['isContent'](_0x5b4bb4);const _0x912311=_0x1f1586['mapper']['toViewElement'](_0x5b4bb4);if(_0x912311&&_0x912311['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47ebdd['type']&&(_0x42d4f5['isBlock'](_0x5b4bb4)&&!_0x42d4f5['isLimit'](_0x5b4bb4)&&(_0x5b4bb4['nextSibling']||_0x61819d['isAtEnd']?_0x1e4b2b&&_0x1e4b2b['parent']==_0x5b4bb4||(_0x1e4b2b=_0x5b4bb4,_0x46cd3c(_0x47ebdd['previousPosition']),_0x1ea058=!0x0):_0x1302e8=_0x1302e8||_0x47ebdd['previousPosition']));}function _0x46cd3c(_0x16c45c){const _0x907ce=_0x1f1586['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x576ad4}),_0x3a9e9a=_0x1f1586['mapper']['toViewPosition'](_0x16c45c);_0x207203['data']['isSuggestion']&&_0x1f1586['writer']['addClass']('ck-suggestion-marker-'+_0x576ad4+'-new',_0x907ce),_0x38980c['activeChange']==_0x207203&&_0x1f1586['writer']['addClass']('ck-suggestion-marker--active',_0x907ce),_0x1f1586['writer']['insert'](_0x3a9e9a,_0x907ce),_0x1f1586['mapper']['bindElementToMarker'](_0x907ce,_0x48a2a2['markerName']);}_0x3d4939||_0x1ea058||!_0x1302e8||_0x46cd3c(_0x1302e8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x11faaa,_0xcab30a,_0x26dafa)=>{const _0x1cc1de=_0x26dafa['mapper']['markerNameToElements'](_0xcab30a['markerName']);if(_0x1cc1de){for(const _0x43c053 of _0x1cc1de)(_0x43c053['hasClass']('ck-suggestion-marker-split')||_0x43c053['hasClass']('ck-suggestion-marker-merge'))&&(_0x26dafa['mapper']['unbindElementFromMarkerName'](_0x43c053,_0xcab30a['markerName']),_0x26dafa['writer']['remove'](_0x43c053));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3592b9,_0x2628c1,_0x557df5)=>{const _0xd53584=_0x2628c1['markerName']['split'](':')[0x1],_0x8118a8=this['_getChangeFromId'](_0xd53584);if(!_0x8118a8)return null;const _0x4fa425='add'==_0x8118a8['type']?'split':'merge';if(_0x557df5['consumable']['test'](_0x2628c1['markerRange'],_0x3592b9['name']))for(const _0x4fce95 of _0x2628c1['markerRange']['getItems']()){if(!_0x4fce95['is']('element','softBreak'))continue;const _0x4b19e4=_0x557df5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fa425}),_0x391ea7=_0x557df5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4fce95));_0x8118a8['data']['isSuggestion']&&_0x557df5['writer']['addClass']('ck-suggestion-marker-'+_0x4fa425+'-new',_0x4b19e4),this['activeChange']==_0x8118a8&&_0x557df5['writer']['addClass']('ck-suggestion-marker--active',_0x4b19e4),_0x557df5['writer']['insert'](_0x391ea7,_0x4b19e4),_0x557df5['mapper']['bindElementToMarker'](_0x4b19e4,_0x2628c1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3701c9=>{for(const _0x2217bd of this['editor']['model']['document']['getRootNames']()){const _0x23dfeb=this['editor']['model']['document']['getRoot'](_0x2217bd),_0x274781=this['editor']['editing']['view']['document']['getRoot'](_0x2217bd);if(_0x274781){const _0x593d26=_0x23dfeb['getAttribute']('revisionHistoryAttachChange');if(_0x3701c9['removeAttribute']('data-change-id',_0x274781),_0x3701c9['removeClass']('ck-revision-history-root-add',_0x274781),_0x3701c9['removeClass']('ck-revision-history-root-remove',_0x274781),_0x3701c9['removeClass']('ck-revision-history-root--active',_0x274781),_0x593d26){const _0x389cbd=this['_getChangeFromId'](_0x593d26);if(!_0x389cbd)return null;_0x3701c9['setAttribute']('data-change-id',_0x593d26,_0x274781),_0x3701c9['addClass']('ck-revision-history-root-'+_0x389cbd['type'],_0x274781),this['activeChange']==_0x389cbd&&_0x3701c9['addClass']('ck-revision-history-root--active',_0x274781);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3073c0=>'revision-comment:'+_0x3073c0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5832a0=>'revision-suggestion:'+_0x5832a0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2c4fed=>({'name':'suggestion:'+_0x2c4fed,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x23eff0=>{const _0x204791=_0x23eff0['markerName']['split'](':')[0x1];return'insertion'!=_0x204791&&'deletion'!=_0x204791?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x204791]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x377d80,_0x5b6750,_0x572756)=>{const _0x5d2277=_0x572756['mapper']['markerNameToElements'](_0x5b6750['markerName']);if(_0x5d2277){for(const _0x5ec204 of _0x5d2277)_0x5ec204['is']('uiElement')&&(_0x572756['mapper']['unbindElementFromMarkerName'](_0x5ec204,_0x5b6750['markerName']),_0x572756['writer']['remove'](_0x5ec204));}},{'priority':'high'});}['_getChangeFromId'](_0x52431a){return this['_changeIdToChange']['get'](_0x52431a);}['_getViewForChange'](_0x8c319f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x8c319f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb06c2a,_0xb81f91,_0x24068f,_0x51ebb3)=>{_0x51ebb3&&this['_balloon']['remove'](_0x51ebb3),_0x24068f&&(this['_balloon']['add']({'view':_0x24068f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x579e4a=this['editor']['editing'],_0x23e1d4=this['_getChangeFromId'](_0x24068f['changeId']);let _0x3fbe42;if(_0x23e1d4['data']['isOnRoot']){const _0x48cec6=_0x579e4a['view']['getDomRoot'](_0x23e1d4['rootName']);_0x3fbe42=Array['from'](_0x48cec6['getClientRects']());}else{const _0x5c9aa8=this['editor']['model']['markers']['get']('revision:'+_0x24068f['changeId']);_0x3fbe42=Array['from'](_0x579e4a['mapper']['markerNameToElements'](_0x5c9aa8['name']))['map'](_0x31c9fd=>_0x579e4a['view']['domConverter']['mapViewToDom'](_0x31c9fd))['map'](_0x963c8f=>Array['from'](_0x963c8f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3fbe42[0x0];return _0x3fbe42['find'](_0x42e26e=>_0x42e26e['top']-0x3<=this['_activeViewTarget']['y']&&_0x42e26e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x42e26e['left']-0x3<=this['_activeViewTarget']['x']&&_0x42e26e['right']+0x3>=this['_activeViewTarget']['x'])||_0x3fbe42[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x542782,_0x2126b4,_0x7fc5f5,_0x6d6589)=>{this['activeView']=_0x7fc5f5?this['_getViewForChange'](_0x7fc5f5):null,this['editor']['model']['change'](()=>{const _0x3c6e2b=this['editor']['editing'];_0x6d6589&&(_0x6d6589['data']['isOnRoot']?_0x3c6e2b['view']['change'](_0xcc37f7=>{_0xcc37f7['removeClass']('ck-revision-history-root--active',_0x3c6e2b['view']['document']['getRoot'](_0x6d6589['rootName']));}):_0x3c6e2b['reconvertMarker']('revision:'+_0x6d6589['id'])),_0x7fc5f5&&(_0x7fc5f5['data']['isOnRoot']?_0x3c6e2b['view']['change'](_0x1f6460=>{_0x1f6460['addClass']('ck-revision-history-root--active',_0x3c6e2b['view']['document']['getRoot'](_0x7fc5f5['rootName']));}):_0x3c6e2b['reconvertMarker']('revision:'+_0x7fc5f5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xbcf33,_0x1fa6cd)=>{if(this['activeChange'])return;const _0x19607b=this['_findChangeIdFromDomTarget'](_0x1fa6cd['target']),_0x3b9d1d=this['_changeIdToChange']['get'](_0x19607b);_0x3b9d1d?(this['_activeViewTarget']={'x':_0x1fa6cd['domEvent']['x'],'y':_0x1fa6cd['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3b9d1d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ea583,_0x51e3aa)=>{const _0x3359f0=this['_findChangeIdFromDomTarget'](_0x51e3aa['target']),_0xfaf79=this['_changeIdToChange']['get'](_0x3359f0);_0xfaf79?(this['_activeViewTarget']={'x':_0x51e3aa['domEvent']['x'],'y':_0x51e3aa['domEvent']['y']},_0xfaf79===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xfaf79):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x147a4f){do{const _0x26e6df=_0x147a4f['getAttribute']('data-change-id');if(_0x26e6df)return _0x26e6df;_0x147a4f=_0x147a4f['parent'];}while(_0x147a4f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5626bc=>{for(const _0x5c8a28 of this['editor']['model']['markers'])_0x5626bc['removeMarker'](_0x5c8a28);});}}function Z(_0x3eee2e,_0x30b934){return(_0x40dc5b,_0x2c3d2d,_0x53797c)=>{if(!_0x53797c['consumable']['test'](_0x2c3d2d['markerRange'],_0x40dc5b['name']))return;const _0x557023=_0x2c3d2d['markerRange']['getWalker'](),_0x15339a=_0x2c3d2d['markerRange']['start'],_0xeea869=_0x3eee2e['model']['schema'];let _0x7e450c=null,_0x45c50f=null,_0x34afc6=!0x1,_0x342d68=!0x1;for(const _0x34e52c of _0x557023){const _0xf4ad38=_0x34e52c['item'];_0x34afc6=_0x34afc6||_0xeea869['isContent'](_0xf4ad38);const _0x2ca7c2=_0x53797c['mapper']['toViewElement'](_0xf4ad38);if(_0x2ca7c2&&_0x2ca7c2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x34e52c['type']&&(_0xeea869['isBlock'](_0xf4ad38)&&!_0xeea869['isLimit'](_0xf4ad38)&&(_0xf4ad38['nextSibling']||_0x15339a['isAtEnd']?_0x7e450c&&_0x7e450c['parent']==_0xf4ad38||(_0x7e450c=_0xf4ad38,_0x214f45(_0x34e52c['previousPosition']),_0x342d68=!0x0):_0x45c50f=_0x45c50f||_0x34e52c['previousPosition']));}function _0x214f45(_0x12bc35){const _0x1894d2=_0x53797c['mapper']['toViewPosition'](_0x12bc35),_0x8d1cb1=_0x53797c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30b934});_0x53797c['writer']['insert'](_0x1894d2,_0x8d1cb1),_0x53797c['mapper']['bindElementToMarker'](_0x8d1cb1,_0x2c3d2d['markerName']);}_0x34afc6||_0x342d68||!_0x45c50f||_0x214f45(_0x45c50f);};}class _t extends _0x61e888{constructor(_0x965553){super(_0x965553);const _0x531598=_0x965553['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x531598,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x531598,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x387e9b=this['editor'],_0x47fdcb=_0x387e9b['plugins']['get'](d),_0x7ee5e5=_0x47fdcb['isReady']?_0x47fdcb['diff']['newRevisionId']:null;_0x387e9b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7ee5e5);}['refresh'](){const {isReady:_0x1fd766,isEnabled:_0x4893f2,repository:_0x2bd35a,diff:_0x437985}=this['editor']['plugins']['get'](d),_0x5e3758=_0x437985&&_0x2bd35a['getLaterVisibleRevision'](_0x437985['newRevisionId']);this['isEnabled']=_0x1fd766&&_0x4893f2&&Boolean(_0x5e3758);}}class yt extends _0x61e888{['_step'];constructor(_0x394fba,{direction:_0x6da1f8}){super(_0x394fba);const _0x4675cd=_0x394fba['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x6da1f8?0x1:-0x1,this['listenTo'](_0x4675cd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4675cd,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4675cd,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3e0ce8=this['editor'],_0x2f492a=_0x3e0ce8['plugins']['get'](d),{isNavigationMode:_0x546d73,currentChangeNumber:_0x2ecbf3}=_0x2f492a;let _0x30bdd3;if(_0x2f492a['activeChange']=_0x546d73?_0x2f492a['diff']['changes']['get'](_0x2ecbf3+this['_step']):_0x2f492a['diff']['changes']['first'],_0x2f492a['activeChange']['data']['isOnRoot'])_0x30bdd3=_0x3e0ce8['editing']['view']['getDomRoot'](_0x2f492a['activeChange']['rootName']);else{const _0x2f5060=_0x3e0ce8['model']['markers']['get']('revision:'+_0x2f492a['activeChange']['id']);_0x30bdd3=_0x5f1a64(_0x3e0ce8['editing'],_0x2f5060);}_0x33e663({'target':_0x30bdd3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x51e38e,currentChangeNumber:_0xcd048d,numberOfChanges:_0x2d752c,isReady:_0x5c3fb8,isEnabled:_0x198f4c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x198f4c&&_0x5c3fb8&&_0x2d752c)&&(!_0x51e38e||(0x1===this['_step']?_0xcd048d<_0x2d752c-0x1:_0xcd048d>0x0));}}class di extends _0x3e13f8{constructor(_0x1304de){super(_0x1304de);const _0x5452bb=this['bindTemplate'],_0x5aa96b=new _0x205196(_0x1304de),_0x46f44c=new _0x205196(_0x1304de);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',(_0x448fde,_0x428e0f)=>_0x448fde&&_0x428e0f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1f812b,_0x148b7a,_0x1722c3,_0x58297f)=>{if(!_0x1f812b)return m(_0x1304de,'Loading...');if(!_0x1722c3)return m(_0x1304de,'No\x20changes');const _0x4f4782=m(_0x1304de,'NUMBER_OF_CHANGES',_0x1722c3);return _0x58297f?m(_0x1304de,'X_OF_Y_CHANGES',[_0x148b7a+0x1,_0x1722c3]):_0x4f4782;}),_0x5aa96b['set']({'label':m(_0x1304de,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x46f44c['set']({'label':m(_0x1304de,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5aa96b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x46f44c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5aa96b['on']('execute',()=>this['fire']('execute','backward')),_0x46f44c['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',_0x5452bb['if']('_isStatusLabelVisible','ck-hidden',_0xd79d78=>!_0xd79d78)]},'children':[{'text':_0x5452bb['to']('isNavigationMode',_0x5b267=>_0x5b267?m(_0x1304de,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1304de,'Total')+':\x20')}]},{'text':_0x5452bb['to']('_statusText')}]},new _0x1e2317(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5aa96b,_0x46f44c]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x3a930c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x12fc90=this['editor']['editing']['view'];_0x12fc90['change'](_0x4958d0=>{for(const _0x118989 of _0x12fc90['document']['roots'])_0x4958d0['addClass'](ce,_0x118989);});}['hide'](){const _0x1f4870=this['editor']['editing']['view'];_0x1f4870['change'](_0x3d5646=>{for(const _0x408849 of _0x1f4870['document']['roots'])_0x3d5646['removeClass'](ce,_0x408849);});}}class g extends _0x3a930c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x5a1b33=this['editor'],_0x536a79=_0x5a1b33['plugins']['get'](d),_0x18b31c=_0x5a1b33['plugins']['get'](ae);_0x5a1b33['ui']['componentFactory']['add']('exitToEditing',_0x200e37=>{const _0x327442=new _0x205196(_0x200e37);return _0x327442['set']({'label':m(_0x200e37,'Back\x20to\x20editing'),'icon':_0x3d598a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x327442,'execute',()=>{_0x5a1b33['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x327442;}),_0x5a1b33['ui']['componentFactory']['add']('restoreRevision',_0x4ebebf=>{const _0x52c197=new _0x205196(_0x4ebebf);return _0x52c197['set']({'label':m(_0x4ebebf,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x52c197['bind']('isEnabled')['to'](_0x5a1b33['commands']['get']('restoreRevision')),this['listenTo'](_0x52c197,'execute',()=>_0x5a1b33['execute']('restoreRevision')),_0x52c197;}),_0x5a1b33['ui']['componentFactory']['add']('changesNavigation',_0x5dc0ad=>{const _0x4d3d22=new di(_0x5dc0ad),_0x21aba8=_0x5a1b33['commands']['get']('showPreviousChange'),_0x5b0a3a=_0x5a1b33['commands']['get']('showNextChange');return _0x4d3d22['bind']('isBackwardNavigationEnabled')['to'](_0x21aba8,'isEnabled'),_0x4d3d22['bind']('isForwardNavigationEnabled')['to'](_0x5b0a3a,'isEnabled'),_0x4d3d22['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x536a79),this['listenTo'](_0x4d3d22,'execute',(_0x11e24e,_0x4b87a2)=>{_0x5a1b33['execute']('forward'===_0x4b87a2?'showNextChange':'showPreviousChange');}),_0x4d3d22;}),_0x18b31c['show'](),_0x536a79['on']('change:isReady',(_0x4444b9,_0x2e33cb,_0x22cfc6)=>{_0x22cfc6?_0x18b31c['hide']():_0x18b31c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x7d1615,_0x2d95e3){super(_0x7d1615,_0x2d95e3);const _0x5bb192=this['bindTemplate'];this['set']({'label':m(_0x7d1615,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x7d1615,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5bb192['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 _0x7b38a3=this['fieldView']['element'];this['_tooltipString']=_0x7b38a3['scrollWidth']>_0x7b38a3['clientWidth']&&_0x7b38a3['value']||'';}}class ti extends _0x3e13f8{constructor(_0x4a8c9f,_0x1ffbdf,_0x51c668){super(_0x4a8c9f);const _0x1e68e4=new _0x3bf64e();_0x1e68e4['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3a51c0=['ck','ck-revision-history-sidebar__revision-author'];_0x51c668&&_0x3a51c0['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1745f2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4a8c9f,_0x51c668?'Revision\x20creator':'Revision\x20author')},'children':[_0x1e68e4,_0x1ffbdf['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3a51c0},'children':_0x1745f2});}}function ni(_0x22b57a,_0x33ad74){const _0xe55d50=_0x22b57a['bindTemplate'],_0x515a17=_0x22b57a['locale'],_0x38d640=_0xe7d5ec(_0x515a17);_0x38d640['panelPosition']='sw';const _0x5e0b99=function(_0x5ad983,_0x3a8dd1){const _0x370509=function(_0x22258f,_0x1978bd){const _0xaa00d5=_0x22258f['locale'],_0x1c68fe={'Compare\x20against\x20selected':m(_0xaa00d5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xaa00d5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xaa00d5,'Restore\x20this\x20revision')};return _0x1978bd['map'](_0x247a4d=>{const _0x528e45=_0x1c68fe[_0x247a4d['name']];return _0x528e45&&_0x528e45!==_0x247a4d['name']&&(_0x247a4d['name']=_0x528e45),_0x247a4d;});}(_0x5ad983,_0x3a8dd1),_0x311b16=new _0x5ce501();for(const _0x279a18 of _0x370509){const _0x3d4664={'type':'button','model':new to({'label':_0x279a18['name'],'class':_0x279a18['class'],'withText':!0x0,'role':'menuitem','_action':_0x279a18['action']})};_0x3d4664['model']['bind']('isEnabled')['to'](_0x5ad983,'isActionsDropdownOpen',_0xf63571=>'function'!=typeof _0x279a18['isEnabled']||(!_0xf63571||_0x279a18['isEnabled'](_0x5ad983))),_0x311b16['add'](_0x3d4664);}return _0x311b16;}(_0x22b57a,_0x33ad74);return _0x22b57a['bind']('isActionsDropdownOpen')['to'](_0x38d640,'isOpen'),_0x38d640['buttonView']['set']({'label':m(_0x515a17,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d598a['threeVerticalDots']}),_0x38d640['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xe55d50['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xe55d50['to'](_0x4b9485=>_0x4b9485['stopPropagation']())}}),_0x38d640['on']('execute',_0x422b0f=>{_0x22b57a['isReady']&&'function'==typeof _0x422b0f['source']['_action']&&_0x422b0f['source']['_action'](_0x22b57a);}),_0x22b221(_0x38d640,_0x5e0b99,{'role':'menu'}),_0x38d640['listenTo'](_0x22b57a,'change:isActionsDropdownOpen',(_0x2746b9,_0x30d451,_0x1c10c8)=>{if(_0x1c10c8)for(const _0x4bf49e of _0x38d640['listView']['items']){const _0x3e96a3=_0x4bf49e['children']['first'],_0x30f5c4=_0x33ad74['find'](_0x4db445=>_0x4db445['action']===_0x3e96a3['_action'])['isVisible'];_0x4bf49e['isVisible']=void 0x0===_0x30f5c4||_0x30f5c4(_0x22b57a);}}),_0x38d640;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x2c4e88(_0x3e13f8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3637cd,_0x35f433,_0x425445,_0x3a724c){super(_0x3637cd);const _0x4d6233=this['bindTemplate'],_0x141916=function(_0x99dbc9,_0x16debd){const _0x1909e9=Array['from'](_0x16debd['authors'])['filter'](_0x1d6076=>_0x1d6076!=_0x16debd['creator']);return _0x16debd['creator']&&_0x1909e9['unshift'](_0x16debd['creator']),_0x1909e9['map'](_0x55b66c=>new ti(_0x99dbc9,_0x55b66c,_0x55b66c==_0x16debd['creator']));}(_0x3637cd,_0x35f433);this['id']=_0x35f433['id'],this['_revision']=_0x35f433,this['_requireRevisionName']=_0x3a724c,this['bind']('name','createdAt')['to'](_0x35f433),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x19b4cd=>{return _0x2918af=_0x3637cd['uiLanguage'],(_0x43034b=_0x19b4cd)['toLocaleDateString'](_0x2918af,{'month':'long','day':'numeric'})+',\x20'+_0x43034b['toLocaleTimeString'](_0x2918af,{'hour':'numeric','minute':'numeric'});var _0x2918af,_0x43034b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3637cd,_0x5deecd),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x93d5ff=>_0x93d5ff||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1706f3,_0x2e27e9)=>_0x1706f3&&_0x2e27e9),this['revisionActionsView']=_0x425445&&_0x425445['length']?ni(this,_0x425445):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4d6233['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4d6233['if']('isEnabled','ck-disabled',_0x5d8b55=>!_0x5d8b55),_0x4d6233['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4d6233['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4d6233['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':_0x4d6233['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':_0x141916}]},this['revisionActionsView']],'on':{'click':_0x4d6233['to'](_0x3f257a=>{_0x3f257a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2faaed=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2faaed,'change',()=>{this['_requireRevisionName']&&!_0x2faaed['value']||this['fire']('setName',{'id':this['id'],'name':_0x2faaed['value']}),_0x2faaed['value']||(_0x2faaed['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x415065,_0x5f4c1f){const _0x81cec0=_0x9eff8c['fromJSDate'](_0x415065)['setLocale'](_0x5f4c1f),_0x2df618=_0x9eff8c['local'](),_0x3909ff=_0x2df618['minus']({'days':0x1})['startOf']('day');let _0x12391b,_0x591271;return _0x81cec0['hasSame'](_0x2df618,'day')?(_0x12391b=_0x81cec0['startOf']('day')['toJSDate'](),_0x591271=_0x81cec0['toRelativeCalendar']()):_0x81cec0['hasSame'](_0x3909ff,'day')?(_0x12391b=_0x3909ff['toJSDate'](),_0x591271=_0x81cec0['toRelativeCalendar']()):_0x81cec0['hasSame'](_0x2df618,'week')?(_0x12391b=_0x81cec0['startOf']('week')['toJSDate'](),_0x591271=_0x81cec0['weekdayLong']||''):_0x81cec0['hasSame'](_0x2df618,'year')?(_0x12391b=_0x81cec0['startOf']('month')['toJSDate'](),_0x591271=_0x81cec0['monthLong']||''):(_0x12391b=_0x81cec0['startOf']('year')['toJSDate'](),_0x591271=String(_0x81cec0['year'])),{'startDate':_0x12391b,'localizedPeriodName':_0x591271};}class vi extends _0x3e13f8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x256d8f,_0x20f662,_0x1f3b3a,_0x1366e2){super(_0x256d8f);const _0x19efde=mi(_0x20f662,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x20f662,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1f3b3a,this['_requireRevisionName']=_0x1366e2,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':_0x19efde}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x19cdf7){const _0x23b6b9=new ai(this['locale'],_0x19cdf7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x23b6b9);}['removeRevision'](_0x1ce500){const _0x20a060=this['revisionViews']['find'](_0x27e149=>_0x27e149['id']===_0x1ce500['id']);this['revisionViews']['remove'](_0x20a060);}}class as extends _0x3e13f8{constructor(_0x5946bf){super(_0x5946bf);const _0x34c2b2=new _0x3bf64e();_0x34c2b2['content']=_0x3d598a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x34c2b2,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5946bf,'Revision\x20history')]}]});}}class li extends _0x3e13f8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x146471,_0x196ba1,_0x26c47b,_0x5a7e59){super(_0x146471);const _0x3743ae=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x196ba1,this['_revisionActions']=_0x26c47b,this['_requireRevisionName']=_0x5a7e59,this['on']('select',(_0x356138,_0x598f2b)=>{this['fire']('revisionSelected',_0x598f2b);}),this['on']('setName',(_0x21d0d3,_0x2f3fb3)=>{this['fire']('revisionSetName',_0x2f3fb3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x146471),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3743ae['if']('isEnabled','ck-disabled',_0x22395b=>!_0x22395b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x174332 of this['_revisions'])this['_addRevision'](_0x174332);this['_revisions']['on']('add',(_0x49485b,_0x21f640)=>{this['_addRevision'](_0x21f640);}),this['_revisions']['on']('remove',(_0x44f644,_0x52cdbd)=>{this['_removeRevision'](_0x52cdbd);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x595010=>_0x595010['revisionViews']['map'](_0x59a9d4=>_0x59a9d4))['flat']();}['selectRevision'](_0xc7ed75){for(const _0x216145 of this['revisionViews'])_0xc7ed75&&_0xc7ed75['id']===_0x216145['id']?_0x216145['select']():_0x216145['deselect']();}['highlightRevisions'](_0x58d0bb){for(const _0x3542fb of this['revisionViews'])_0x58d0bb['some'](({id:_0x4552f9})=>_0x4552f9===_0x3542fb['id'])?_0x3542fb['highlight']():_0x3542fb['unhighlight']();}['_addRevision'](_0x408fc9){const _0x55af43=mi(_0x408fc9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x59aba2=this['timePeriodViews']['get'](0x0);_0x59aba2&&_0x59aba2['startDate']['getTime']()===_0x55af43['getTime']()||(_0x59aba2=new vi(this['locale'],_0x55af43,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x59aba2)),_0x59aba2['addRevision'](_0x408fc9);}['_removeRevision'](_0x2fe883){const _0x1822ab=mi(_0x2fe883['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1822ab)['removeRevision'](_0x2fe883);}['_getTimePeriodViewByStartDate'](_0x3a26ff){return this['timePeriodViews']['find'](_0x3b0188=>_0x3b0188['startDate']['getTime']()===_0x3a26ff['getTime']());}}class w extends _0x3a930c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x12fb33,uid as _0x32a6fe,Collection as _0x23661b,logWarning as _0xb42a9f,FocusTracker as _0xb27f23,KeystrokeHandler as _0x2f98cd,scrollViewportToShowTarget as _0x57074d,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0xfe2b9b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x59c379,set as _0x5effb9,unset as _0x431dd3,isEqual as _0x1119c9}from'lodash-es';import{Plugin as _0x2fef22,PendingActions as _0x2daa9f,icons as _0x34d699,Command as _0x39d2fd,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x358dd5,getMarkerDomElement as _0x27c2fd,ConfirmMixin as _0x243359,sanitizeEditorConfig as _0x1d0f8a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x6101a3,Element as ft,Range as vt,ViewUIElement as _0x113697,ViewRawElement as _0x534049,ViewEmptyElement as _0x25f8d8,ViewAttributeElement as _0x2f3d25,ViewContainerElement as _0x49693b,Position as gt,ViewText as _0x4c4e57,ViewElement as _0x293663,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x528dcf,injectCssTransitionDisabler as ts,submitHandler as _0x4fb8d0,LabeledFieldView as nt,createLabeledInputText as _0x554978,createDropdown as _0x3dbdae,ListView as te,ListItemView as _0x1901fe,ButtonView as _0x4fe6e,MenuBarMenuView as _0x3d86ff,MenuBarMenuListView as _0x13c692,MenuBarMenuListItemView as _0x2afb6c,MenuBarMenuListItemButtonView as _0x537475,ContextualBalloon as _0x63332b,ToolbarSeparatorView as _0x5e3793,IconView as _0x267780,addListToDropdown as _0x37c010,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5d7766}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x12fb33(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1ba51e){super(),this['id']=_0x1ba51e['id']||_0x32a6fe(),this['creator']=_0x1ba51e['creator']||null,this['authors']=_0x1ba51e['authors']||[],this['diffData']=_0x1ba51e['diffData']||null,this['toVersion']=_0x1ba51e['toVersion']||0x0,this['fromVersion']=_0x1ba51e['fromVersion']||0x0,this['set']('name',_0x1ba51e['name']||''),this['set']('createdAt',_0x1ba51e['createdAt']||new Date()),this['set']('attributes',_0x1ba51e['attributes']||{});}['setName'](_0x3d84bc){this['_update']({'name':_0x3d84bc});}['setAttribute'](_0xcd3d5e,_0x3f84f4){const _0x15dc1e=_0x59c379(this['attributes']);_0x5effb9(_0x15dc1e,_0xcd3d5e,_0x3f84f4),this['_update']({'attributes':_0x15dc1e});}['removeAttribute'](_0x19f082){const _0x34ac14=_0x59c379(this['attributes']);_0x431dd3(_0x34ac14,_0x19f082),this['_update']({'attributes':_0x34ac14});}['_update'](_0x247343,_0x217f38=!0x1){let _0x5af3fa=!0x1;const _0x2d070b={'id':this['id']},_0x104edc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1f9f33 of _0x104edc){const _0x54f16e=_0x247343[_0x1f9f33];void 0x0!==_0x54f16e&&_0x54f16e!==this[_0x1f9f33]&&(this[_0x1f9f33]=_0x54f16e,_0x2d070b[_0x1f9f33]=_0x54f16e,_0x5af3fa=!0x0);}_0x5af3fa&&(_0x2d070b['authors']&&(_0x2d070b['authorsIds']=_0x2d070b['authors']['map'](_0x258128=>_0x258128['id']),delete _0x2d070b['authors']),this['fire']('_update',_0x2d070b,_0x217f38));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x302748=>_0x302748['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2fef22{['_revisions'];static get['requires'](){return[_0x358dd5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ba2c4){super(_0x4ba2c4),this['_revisions']=new _0x23661b();}['afterInit'](){!async function(_0x5b6c8b){const _0x3c3118=_0x12d6d3([0x34,0x78,0x6a,0x53,0x5a,0x4f,0x41,0x6d,0x42,0x54,0x39,0x57,0x72,0x36,0x33,0x79,0x6c,0x61,0x67,0x4d,0x68,0x70,0x44,0x51,0x75,0x45,0x31,0x66,0x56,0x52,0x69,0x50,0x6b,0x6f,0x35,0x59,0x32,0x58,0x64,0x74,0x6e,0x63,0x49,0x76,0x73,0x48,0x4a,0x4b,0x43,0x71,0x4c,0x7a,0x47,0x62,0x65,0x4e,0x37,0x77,0x38,0x55,0x46,0x30]),_0x2991c3=0xeb829,_0x1daeab=0x3fb9c3e1,_0x296066=0x3fbe9d91^_0x1daeab,_0x9ad83e=window[_0x12d6d3([0x44,0x61,0x74,0x65])][_0x12d6d3([0x6e,0x6f,0x77])](),_0x3b6636=_0x5b6c8b[_0x12d6d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48d72e=new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aedbd=>{_0x3b6636[_0x12d6d3([0x6f,0x6e,0x63,0x65])](_0x12d6d3([0x72,0x65,0x61,0x64,0x79]),_0x1aedbd);}),_0x2804ee={[_0x12d6d3([0x6b,0x74,0x79])]:_0x12d6d3([0x45,0x43]),[_0x12d6d3([0x75,0x73,0x65])]:_0x12d6d3([0x73,0x69,0x67]),[_0x12d6d3([0x63,0x72,0x76])]:_0x12d6d3([0x50,0x2d,0x32,0x35,0x36]),[_0x12d6d3([0x78])]:_0x12d6d3([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]),[_0x12d6d3([0x79])]:_0x12d6d3([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]),[_0x12d6d3([0x61,0x6c,0x67])]:_0x12d6d3([0x45,0x53,0x32,0x35,0x36])},_0x159805=_0x3b6636[_0x12d6d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12d6d3([0x67,0x65,0x74])](_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5461fb(){let _0x5f4a4a,_0x241b78=null,_0x4842c5=null;try{if(_0x159805==_0x12d6d3([0x47,0x50,0x4c]))return _0x12d6d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f4a4a=_0x854cc(),!_0x5f4a4a)return _0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f4a4a[_0x12d6d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4842c5=_0x39a065(_0x5f4a4a[_0x12d6d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f4a4a[_0x12d6d3([0x6a,0x74,0x69])])),await _0x161f66()?_0x5bb26e()?_0x2720e8()?_0x12d6d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f1b67()?(_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d6d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x241b78=_0x66edd5(_0x12d6d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d6d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x241b78=_0x66edd5(_0x12d6d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x464711()):_0x12d6d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12d6d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b69dd){return _0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2720e8(){const _0x15bc51=[_0x12d6d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12d6d3([0x74,0x72,0x69,0x61,0x6c])][_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9ad83e/0x3e8:0xe10*_0x296066;return _0x5f4a4a[_0x12d6d3([0x65,0x78,0x70])]<_0x15bc51;}function _0x5bb26e(){const _0x4ce1d2=_0x5f4a4a[_0x12d6d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ce1d2)return!0x1;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x2a])))return!0x0;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x52,0x48])))return!0x0;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x52,0x52,0x48]))){if(_0x22dbe6())return!0x0;if(_0x4262c5()||_0x26a930())return!0x0;}return!0x1;}function _0x1f1b67(){const _0x10a4f2=_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10a4f2||0x0==_0x10a4f2[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x355127}=new URL(window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10a4f2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355127))return!0x0;const _0x4613e0=_0x355127[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e]));return _0x10a4f2[_0x12d6d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7d0f=>_0x1e7d0f[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x2a])))[_0x12d6d3([0x6d,0x61,0x70])](_0x53a979=>_0x53a979[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e])))[_0x12d6d3([0x73,0x6f,0x6d,0x65])](_0x39f6d1=>_0x4613e0[_0x12d6d3([0x65,0x76,0x65,0x72,0x79])]((_0x1ce088,_0x2cf9cb)=>_0x39f6d1[_0x2cf9cb]===_0x1ce088||_0x39f6d1[_0x2cf9cb]===_0x12d6d3([0x2a])));}function _0x464711(){return _0x241b78&&_0x4842c5?new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32e71c,_0x1148b3)=>{_0x241b78[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x32e71c,_0x1148b3),_0x4842c5[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2b3de4=>{_0x2b3de4!=_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])&&_0x32e71c(_0x2b3de4);},_0x1148b3);}):_0x241b78||_0x4842c5||_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39a065(_0x374705,_0x328cd3){return new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af0e5=>{if(_0x3557ef())return _0x2af0e5(_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]));_0x3a3d63(),_0x3b6636[_0x12d6d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37f359=!0x1;const _0x340749=_0x32a6fe();function _0x1a612a(_0x4ece04){return!!_0x4ece04&&(typeof _0x4ece04===_0x12d6d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ece04===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ece04[_0x12d6d3([0x74,0x68,0x65,0x6e])]===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ece04[_0x12d6d3([0x63,0x61,0x74,0x63,0x68])]===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bebd2(_0x2474e1){_0x8adbf(_0x2474e1)[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x1e24bb=>{if(!_0x1e24bb||_0x1e24bb[_0x12d6d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12d6d3([0x6f,0x6b]))return _0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c681f(_0xbf2e57(_0x340749+_0x328cd3))!=_0x1e24bb[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2e7693=>(_0x78520c(),_0x2e7693),()=>{const _0x1a12dc=_0x202d1e();return null==_0x1a12dc?(_0x78520c(),_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])):_0x12d6d3(_0x9ad83e-_0x1a12dc>(0x1bb547e1^_0x1daeab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2af0e5)[_0x12d6d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c12c=0x3f8f2d61^_0x1daeab;function _0x78520c(){const _0x12645d=_0x12d6d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c681f(_0xbf2e57(_0x374705)),_0x3a2b47=_0x42aafd(_0x1c681f(window[_0x12d6d3([0x4d,0x61,0x74,0x68])][_0x12d6d3([0x63,0x65,0x69,0x6c])](_0x9ad83e/_0x35c12c)));window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d6d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12645d,_0x3a2b47);}function _0x202d1e(){const _0x2fe033=_0x12d6d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c681f(_0xbf2e57(_0x374705)),_0x351d1b=window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d6d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe033);return _0x351d1b?window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42aafd(_0x351d1b),0x10)*_0x35c12c:null;}function _0x8adbf(_0x3ed231){return new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16c73d,_0x13a6ef)=>{_0x3ed231[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x16c73d,_0x13a6ef),window[_0x12d6d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13a6ef,0x3fb81721^_0x1daeab);});}}_0x3b6636[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bba7b,_0x4b98f7)=>{if(_0x4b98f7[0x0]!=_0x374705)return _0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b98f7[0x1]={..._0x4b98f7[0x1],[_0x12d6d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x340749};},{[_0x12d6d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d6d3([0x68,0x69,0x67,0x68])}),_0x3b6636[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b5ab6=>{_0x1a612a(_0x5b5ab6[_0x12d6d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37f359=!0x0,_0x2bebd2(_0x5b5ab6[_0x12d6d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12d6d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d6d3([0x6c,0x6f,0x77])}),_0x48d72e[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>{_0x37f359||_0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3557ef(){return _0x3b6636[_0x12d6d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d6d3([0x76,0x69,0x65,0x77])][_0x12d6d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12d6d3([0x61,0x75,0x74,0x6f]);}function _0x3a3d63(){_0x3b6636[_0x12d6d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d6d3([0x76,0x69,0x65,0x77])][_0x12d6d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12d6d3([0x61,0x75,0x74,0x6f]);}}function _0x66edd5(_0x5df49a){const _0x46f215=[new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23f17b=>setTimeout(_0x23f17b,0x3fb0fd2d^_0x1daeab)),_0x48d72e[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x360637=>{const _0x5e7a03=0x3fb9c3e6^_0x1daeab,_0xed5fa0=_0x5b6c8b[_0x12d6d3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x9a351c(){_0xed5fa0[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e7a03&&_0x360637();}_0x9a351c(),_0xed5fa0[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x61,0x64,0x64]),_0x9a351c);})),new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69e493=>{function _0x36938e(){for(const _0x15c90f in window)if(window[_0x12d6d3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x12d6d3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x15c90f))&&window[_0x15c90f]==_0x2991c3)return _0x69e493();_0x3b6636[_0x12d6d3([0x73,0x74,0x61,0x74,0x65])]!=_0x12d6d3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x12d6d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36938e,0x3fb9d069^_0x1daeab);}_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x36938e();})];return window[_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12d6d3([0x72,0x61,0x63,0x65])](_0x46f215)[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>_0x5df49a);}async function _0x3e6e6b(){if(await _0x48d72e,_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4f399a=_0x5b6c8b[_0x12d6d3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x28f60a=_0x5b6c8b[_0x12d6d3([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])](_0x4f399a[_0x12d6d3([0x69,0x64])]),_0x1c9415=_0x5af682(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c9415[_0x12d6d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4f399a['id'],_0x28f60a?_0x28f60a['id']:null,!0x0),_0x1c9415[_0x12d6d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c9415[_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c9415[_0x12d6d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x149012,void(_0x1c9415[_0x12d6d3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x149012);}if(_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2793bb=_0x5af682(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2793bb[_0x12d6d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2793bb[_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2793bb[_0x12d6d3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x149012,_0x2793bb[_0x12d6d3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x149012;}_0x3b6636[_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d6d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x149012,_0x3b6636[_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d6d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x149012,_0x3b6636[_0x12d6d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22dbe6(){return _0x553c67(_0x12d6d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5af682(_0x12d6d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x12d6d3([0x73,0x74,0x61,0x74,0x65])]==_0x12d6d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4262c5(){return _0x553c67(_0x12d6d3([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 _0x26a930(){return _0x553c67(_0x12d6d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x546049(_0x19fdce){const _0x358b81=_0x494f72();_0x3b6636[_0x358b81]=_0x12d6d3([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])+_0x19fdce,_0x19fdce[_0x12d6d3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x12d6d3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x494f72()]=_0x2991c3),_0x19fdce!=_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])&&_0x3e6e6b();}function _0x494f72(){const _0x14cbe3=window[_0x12d6d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12d6d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12d6d3([0x6e,0x6f,0x77])]())[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12d6d3([0x2e]),'');let _0x1a6bb8=_0x12d6d3([0x78]);for(let _0x57b154=0x0;_0x57b154<_0x14cbe3[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57b154+=0x2){let _0x41143b=window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14cbe3[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57b154,_0x57b154+0x2));_0x41143b>=_0x3c3118[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41143b-=_0x3c3118[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a6bb8+=_0x3c3118[_0x41143b];}return _0x1a6bb8;}function _0x854cc(){const _0x2ee959=_0x159805[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e]));if(0x3!=_0x2ee959[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x476e6f(_0x2ee959[0x1]);function _0x476e6f(_0x2d0e5d){const _0x130191=_0x3c9238(_0x2d0e5d);return _0x130191&&_0x177431()?_0x130191:null;function _0x177431(){const _0x58dd9c=_0x130191[_0x12d6d3([0x6a,0x74,0x69])],_0x109207=window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58dd9c[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58dd9c[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b629d={..._0x130191,[_0x12d6d3([0x6a,0x74,0x69])]:_0x58dd9c[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58dd9c[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b629d[_0x12d6d3([0x76,0x63])],_0xbf2e57(_0x3b629d)==_0x109207;}}}async function _0x161f66(){let _0x27c4e2=!0x0;try{const _0xf6027=_0x159805[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e])),[_0x21de74,_0x4b3ddd,_0x472e8b]=_0xf6027;return _0x584e9b(_0x21de74),await _0x1646dd(_0x21de74,_0x4b3ddd,_0x472e8b),_0x27c4e2;}catch(_0x4acb5a){return!0x1;}function _0x584e9b(_0x207f12){const _0x5ca855=_0x3c9238(_0x207f12);_0x5ca855&&_0x5ca855[_0x12d6d3([0x61,0x6c,0x67])]==_0x12d6d3([0x45,0x53,0x32,0x35,0x36])||(_0x27c4e2=!0x1);}async function _0x1646dd(_0x58c9a3,_0x43d9e0,_0x40215d){const _0x2bcccc=window[_0x12d6d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12d6d3([0x66,0x72,0x6f,0x6d])](_0x16b7d5(_0x40215d),_0x284686=>_0x284686[_0x12d6d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27cd72=new window[(_0x12d6d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12d6d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58c9a3+_0x12d6d3([0x2e])+_0x43d9e0),_0x22a33b=window[_0x12d6d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12d6d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22a33b)return;const _0x1578d5=await _0x22a33b[_0x12d6d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12d6d3([0x6a,0x77,0x6b]),_0x2804ee,{[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x45,0x43,0x44,0x53,0x41]),[_0x12d6d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12d6d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22a33b[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x45,0x43,0x44,0x53,0x41]),[_0x12d6d3([0x68,0x61,0x73,0x68])]:{[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1578d5,_0x2bcccc,_0x27cd72)||(_0x27c4e2=!0x1);}}function _0x3c9238(_0x43869b){return _0x43869b[_0x12d6d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12d6d3([0x65,0x79]))?JSON[_0x12d6d3([0x70,0x61,0x72,0x73,0x65])](_0x16b7d5(_0x43869b)):null;}function _0x16b7d5(_0x20fd57){return window[_0x12d6d3([0x61,0x74,0x6f,0x62])](_0x20fd57[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12d6d3([0x2b]))[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12d6d3([0x2f])));}function _0xbf2e57(_0x376154){let _0x91e890=0x1505;function _0x1a9fc9(_0xe4e0a0){for(let _0x466dcd=0x0;_0x466dcd<_0xe4e0a0[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x466dcd++){const _0x467da7=_0xe4e0a0[_0x12d6d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x466dcd);_0x91e890=(_0x91e890<<0x5)+_0x91e890+_0x467da7,_0x91e890&=_0x91e890;}}function _0x4cd404(_0x2bfacd){Array[_0x12d6d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfacd)?_0x2bfacd[_0x12d6d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd404):_0x2bfacd&&typeof _0x2bfacd==_0x12d6d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12d6d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfacd)[_0x12d6d3([0x73,0x6f,0x72,0x74])]()[_0x12d6d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55be1c,_0x35043a])=>{_0x1a9fc9(_0x55be1c),_0x4cd404(_0x35043a);}):_0x1a9fc9(window[_0x12d6d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfacd));}return _0x4cd404(_0x376154),_0x91e890>>>0x0;}function _0x1c681f(_0xec2051){return _0xec2051[_0x12d6d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12d6d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12d6d3([0x30]));}function _0x42aafd(_0x4e135d){return _0x4e135d[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12d6d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12d6d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x553c67(_0x5dba4e){return _0x3b6636[_0x12d6d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12d6d3([0x68,0x61,0x73])](_0x5dba4e);}function _0x5af682(_0x1cea10){return _0x3b6636[_0x12d6d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12d6d3([0x67,0x65,0x74])](_0x1cea10);}function _0x149012(){}function _0x12d6d3(_0x381828){return _0x381828['map'](_0x8d1bbd=>String['fromCharCode'](_0x8d1bbd))['join']('');}_0x546049(await _0x5461fb());}(this);}['createRevision'](_0xc2fb6c){const _0x33977e=this['editor']['plugins']['get']('Users');return new a({'id':_0xc2fb6c['id'],'name':_0xc2fb6c['name'],'creator':_0xc2fb6c['creatorId']?_0x33977e['getUser'](_0xc2fb6c['creatorId']):null,'diffData':_0xc2fb6c['diffData']||_0xc2fb6c['data'],'authors':_0xc2fb6c['authorsIds']['map'](_0x2056c0=>_0x33977e['getUser'](_0x2056c0)),'createdAt':new Date(_0xc2fb6c['createdAt']),'attributes':_0xc2fb6c['attributes'],'fromVersion':_0xc2fb6c['fromVersion'],'toVersion':_0xc2fb6c['toVersion']});}['addRevision'](_0x5cf817,_0x5db764=0x0){this['_revisions']['add'](_0x5cf817,_0x5db764);}['getRevision'](_0x4a255d){return this['_revisions']['get'](_0x4a255d);}['getRevisions'](_0xc5f56c={'toJSON':!0x1}){const _0x4f75f1=Array['from'](this['_revisions']);return _0x4f75f1['reverse'](),_0xc5f56c['toJSON']?_0x4f75f1['map'](_0x4bd260=>_0x4bd260['toJSON']()):_0x4f75f1;}['getIndex'](_0x5f0d16){return this['_revisions']['getIndex'](_0x5f0d16);}['getEarlierVisibleRevision'](_0x2e7faa){const [,_0x4dab63]=this['getRevisionsIterator'](_0x2e7faa,{'direction':'earlier'});return _0x4dab63;}['getLaterVisibleRevision'](_0x3cc80e){const [,_0x498216]=this['getRevisionsIterator'](_0x3cc80e,{'direction':'later'});return _0x498216;}['getRevisionsInDiff'](_0x33d1f1){const _0x526885=[];for(const _0x8f895 of this['getRevisionsIterator'](_0x33d1f1['newRevisionId']))if(_0x526885['push'](_0x8f895),_0x8f895['id']===_0x33d1f1['oldRevisionId'])break;return _0x526885;}*['getRevisionsIterator'](_0x577b2,{direction:_0x332993='earlier',filter:_0x2d51be=()=>!0x0}={}){const _0x175468='earlier'===_0x332993?0x1:-0x1;let _0x16c8b9=this['_revisions']['get'](_0x577b2),_0x253167=this['getIndex'](_0x16c8b9);for(yield _0x16c8b9;_0x16c8b9;){if(_0x253167+=_0x175468,_0x16c8b9=this['getRevision'](_0x253167),!_0x16c8b9)return;_0x2d51be(_0x16c8b9)&&(yield _0x16c8b9);}}}function m(_0x4e5cc8,_0x1d362c,_0x53caad){const t=_0x4e5cc8['t'];switch(_0x1d362c){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'},_0x53caad);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x53caad);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x49693b,'a':_0x2f3d25,'e':_0x25f8d8,'r':_0x534049,'u':_0x113697};class l extends _0x2fef22{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x358dd5,j,_0x2daa9f];}constructor(_0x3016d2){super(_0x3016d2),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3bd435=_0x32a6fe();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3bd435},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x30c0be=this['repository']['getRevision'](0x0),_0x5eae0c=_0x30c0be&&null===_0x30c0be['creator']?_0x30c0be:null;if(this['_continueCurrentRevision']=!!_0x5eae0c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x9fc06c=this['_source']['getCurrentRevisionId'](),_0x1c3af7=this['repository']['getRevision'](_0x9fc06c);if(_0x1c3af7)this['_startingVersion']=_0x1c3af7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x85182a=this['_source']['history']['_operations']['find'](_0x5596b7=>!_0x5596b7['_isInit']),_0x5c408f=_0x85182a?_0x85182a['baseVersion']:this['_source']['history']['version'];_0x30c0be?(_0x30c0be['toVersion']<_0x5c408f&&_0x30c0be['_update']({'toVersion':_0x5c408f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id'],this['_startingVersion']=_0x5eae0c['fromVersion']):(this['_startingVersion']=_0x30c0be['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5c408f,this['_continueCurrentRevision']=!0x1);}}else _0x5eae0c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5eae0c['toVersion'],this['editor']['model']['document']['history']['version']),_0x5eae0c['fromVersion']===_0x5eae0c['toVersion']?(0x0!==_0x5eae0c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id'],this['_startingVersion']=_0x5eae0c['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',_0x53e69e=>!_0x53e69e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf45348=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215d3d;for(const _0x5592d0 in _0xf45348){const _0x484185=_0x5592d0,_0x35bab7=_0xf45348[_0x484185];if('revisionHistoryLicenseKeyValid'==_0x35bab7||'revisionHistoryLicenseKeyInvalid'==_0x35bab7||'revisionHistoryLicenseKeyExpired'==_0x35bab7||'revisionHistoryLicenseKeyDomainLimit'==_0x35bab7||'revisionHistoryLicenseKeyNotAllowed'==_0x35bab7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x35bab7||'revisionHistoryLicenseKeyTrialLimit'==_0x35bab7||'revisionHistoryLicenseKeyUsageLimit'==_0x35bab7){delete _0xf45348[_0x484185],_0x215d3d=_0x35bab7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x215d3d&&_0xf45348['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x215d3d&&_0xf45348['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x215d3d&&_0xf45348['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x409b9f=this['repository']['getRevision'](0x0),_0x4ad74d=await this['getRevisionDocumentData'](_0x409b9f),_0x198f60=await this['getRevisionRootsAttributes'](_0x409b9f);this['_replaceEditorDataWithRevisionData'](_0x4ad74d,_0x198f60);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a712f){this['_source']=_0x5a712f;}async['update'](){const _0x22ef82=await this['_source']['getLatestVersion']();if(_0x22ef82>this['currentRevision']['toVersion']){await this['_loadState']();const _0x155a0d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x22ef82});_0x155a0d['authors']=_0x155a0d['authorsIds']['map'](_0x1c4a35=>this['editor']['plugins']['get']('Users')['getUser'](_0x1c4a35)),this['currentRevision']['_update'](_0x155a0d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x294f68={},_0x18ac1e=null){const _0x4ffcfc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18ac1e>this['currentRevision']['toVersion']&&(_0x18ac1e=null),null===_0x18ac1e&&(_0x18ac1e=await this['_source']['getLatestVersion']());const _0x136634=this['_getFromVersion'](_0x18ac1e),_0x192ce4=this['buildRevisionData']({'from':_0x136634,'to':_0x18ac1e});if(this['currentRevision']['toVersion']<_0x18ac1e){const _0x43517a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x18ac1e,'to':_0x18ac1e});_0x43517a['authors']=[],_0x43517a['authorsIds']=[],_0x43517a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43517a,!0x0),delete _0x43517a['authors'],_0x4ffcfc['push'](_0x43517a);}_0x294f68['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x294f68['name']=_0x294f68['name']||null,_0x294f68['id']=_0x294f68['id']||_0x32a6fe(),_0x294f68={..._0x294f68,..._0x192ce4};const _0x6bde44=this['addRevisionData'](_0x294f68);_0x4ffcfc['push'](_0x294f68);const _0x5d0246=this['repository']['getIndex'](_0x6bde44);if(0x0!==_0x5d0246){const _0x15a64f=this['repository']['getRevision'](_0x5d0246-0x1);if(_0x15a64f['fromVersion']!==_0x18ac1e){const _0xdd067b=this['_revisionDataBuilder']['getData'](_0x18ac1e,_0x15a64f['toVersion']),_0x10afe0={'id':_0x15a64f['id'],'diffData':_0xdd067b['diffData'],'authorsIds':_0xdd067b['authorsIds'],'authors':_0xdd067b['authorsIds']['map'](_0x600d5c=>this['editor']['plugins']['get']('Users')['getUser'](_0x600d5c)),'fromVersion':_0x18ac1e};_0x15a64f===this['currentRevision']&&(_0x10afe0['createdAt']=new Date(_0x294f68['createdAt']['getTime']()+0xa)),_0x15a64f['_update'](_0x10afe0,!0x0),delete _0x10afe0['authors'],_0x4ffcfc['push'](_0x10afe0);}}if(this['adapter']){for(const _0x2209d1 of _0x4ffcfc)this['_bufferUpdate'](_0x2209d1['id'],_0x2209d1,!0x0);this['sendBufferedUpdates']();}return _0x6bde44;}['addRevisionData'](_0x4d6baa){const _0xe11029=this['repository']['createRevision'](_0x4d6baa);return this['adapter']&&_0xe11029['on']('_update',(_0x45c4e9,_0x309983,_0x156bf7)=>{_0x156bf7||(this['_bufferUpdate'](_0x309983['id'],_0x309983,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe11029,this['_findInsertionIndex'](_0xe11029)),_0xe11029;}async['getRevisionDocumentData'](_0x10e90c){await this['_loadRevisionData'](_0x10e90c);const _0x2dac4f={};for(const _0xe75fe in _0x10e90c['diffData']){if(_0x10e90c['diffData'][_0xe75fe]['attachChange']&&!_0x10e90c['diffData'][_0xe75fe]['attachChange']['isAttached'])continue;const _0x5a14cf=this['_removeRevisionMarkers'](JSON['parse'](_0x10e90c['diffData'][_0xe75fe]['insertions'])),_0x1c9100=this['editor']['editing']['view']['document'],_0x67aea0=new _0x6101a3(_0x1c9100,_0x5a14cf['map'](_0x5868f6=>C(_0x5868f6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2dac4f[_0xe75fe]=this['editor']['data']['processor']['toData'](_0x67aea0),this['editor']['data']['processor']['useFillerType']('default');}return _0x2dac4f;}async['getRevisionRootsAttributes'](_0x2720d7){await this['_loadRevisionData'](_0x2720d7);const _0x3e4064={};for(const _0x1c5ab7 in _0x2720d7['diffData'])_0x2720d7['diffData'][_0x1c5ab7]['attachChange']&&!_0x2720d7['diffData'][_0x1c5ab7]['attachChange']['isAttached']||(_0x3e4064[_0x1c5ab7]=_0x2720d7['diffData'][_0x1c5ab7]['attributesAfter']||{});return _0x3e4064;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3e7344=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5ae785=0x0;_0x5ae785<_0x3e7344['length'];_0x5ae785++){const _0x2c1305=_0x3e7344[_0x5ae785];let _0x3ff41d=!0x1;for(const _0x550bfd of Object['keys'](_0x2c1305))void 0x0===_0x2c1305[_0x550bfd]?delete _0x2c1305[_0x550bfd]:'id'!==_0x550bfd&&(_0x3ff41d=!0x0);_0x3ff41d||(_0x3e7344[_0x5ae785]=null);}if(_0x3e7344=_0x3e7344['filter'](_0x56e724=>null!==_0x56e724),!_0x3e7344['length'])return;for(let _0x346f47=0x0;_0x346f47<_0x3e7344['length'];_0x346f47++){const _0x1f2423=_0x3e7344[_0x346f47];void 0x0!==_0x1f2423['fromVersion']&&void 0x0===_0x1f2423['toVersion']&&(_0x1f2423['toVersion']=this['repository']['getRevision'](_0x1f2423['id'])['toVersion']),void 0x0!==_0x1f2423['toVersion']&&void 0x0===_0x1f2423['fromVersion']&&(_0x1f2423['fromVersion']=this['repository']['getRevision'](_0x1f2423['id'])['fromVersion']);}const _0x6c1bcb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3e7344,_0x6c1bcb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4c25f5=>{if(_0x4c25f5){for(const _0x5a7773 of _0x4c25f5)this['setRevisionData']({'id':_0x5a7773['id'],'createdAt':_0x5a7773['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x29cc7d,_0x32a005){let _0x48e46e=this['editor']['config']['get']('initialData'),_0x376b1e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48e46e){_0x48e46e={};for(const _0x315fd9 of this['editor']['model']['document']['getRootNames']())_0x48e46e[_0x315fd9]='';}if('string'==typeof _0x48e46e&&(_0x48e46e={'main':_0x48e46e}),void 0x0===_0x376b1e){_0x376b1e={};for(const _0x146eef of this['editor']['model']['document']['getRootNames']())_0x376b1e[_0x146eef]={};}let _0x89ee06=!0x1;const _0x1fe659=Object['keys'](_0x48e46e),_0x28a7e2=Object['keys'](_0x29cc7d);for(const _0x43a85d of _0x1fe659){if(_0x48e46e[_0x43a85d]!==_0x29cc7d[_0x43a85d]&&''!==_0x48e46e[_0x43a85d]['trim']()){_0x89ee06=!0x0;break;}if(!_0x1119c9(_0x376b1e[_0x43a85d],_0x32a005[_0x43a85d])&&Object['keys'](_0x376b1e[_0x43a85d])['length']>0x0){_0x89ee06=!0x0;break;}}_0x89ee06||(_0x89ee06=_0x28a7e2['some'](_0x2c403c=>!this['editor']['model']['document']['getRoot'](_0x2c403c))),_0x89ee06&&_0xb42a9f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48e46e,'editorRootsAttributes':_0x376b1e,'revisionData':_0x29cc7d,'revisionRootsAttributes':_0x32a005}),this['editor']['config']['set']('initialData',_0x29cc7d),this['editor']['config']['set']('rootsAttributes',_0x32a005);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b5256=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b5256['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x525db2){const _0x12e6d3=this['repository']['getRevisions']();_0x12e6d3['reverse']();let _0x2cc1f9=0x0;for(;_0x2cc1f9<_0x12e6d3['length'];){const _0x2441e8=_0x12e6d3[_0x2cc1f9];if(_0x2441e8===this['currentRevision']){_0x2cc1f9++;continue;}if(_0x2441e8['id']===this['_initialRevisionId'])break;const _0x4cb24d=_0x525db2['toVersion']-_0x2441e8['toVersion']||_0x525db2['fromVersion']-_0x2441e8['fromVersion'];if(_0x4cb24d>0x0)break;if(_0x4cb24d<0x0)_0x2cc1f9++;else{if(!_0x525db2['creator']&&_0x2441e8['creator'])break;if(_0x2441e8['creator']||!_0x525db2['creator']){if(_0x525db2['createdAt']>_0x2441e8['createdAt'])break;_0x2cc1f9++;}else _0x2cc1f9++;}}return _0x2cc1f9;}['setRevisionData'](_0x13c311){const _0x30aa22=this['repository']['getRevision'](_0x13c311['id']);if(_0x13c311['createdAt']&&(_0x13c311['createdAt']=new Date(_0x13c311['createdAt'])),_0x13c311['authorsIds']){const _0x933978=this['editor']['plugins']['get']('Users');_0x13c311['authors']=_0x13c311['authorsIds']['map'](_0xf8a710=>_0x933978['getUser'](_0xf8a710));}_0x30aa22['_update'](_0x13c311,!0x0);}['buildRevisionData']({revision:_0x2404e=null,from:_0x7c6582=null,to:_0x387af6=null}){_0x7c6582=null!==_0x7c6582?_0x7c6582:_0x2404e['fromVersion'],_0x387af6=null!==_0x387af6?_0x387af6:_0x2404e['toVersion'];const _0x2886a5=this['_revisionDataBuilder']['getData'](_0x7c6582,_0x387af6),_0x1ac4ca={'diffData':_0x2886a5['diffData'],'authorsIds':_0x2886a5['authorsIds'],'fromVersion':_0x7c6582,'toVersion':_0x387af6};if(!_0x2404e||_0x387af6!==_0x2404e['toVersion']){const _0x351cd1=_0x387af6-0x1,_0x59bed3=this['_source']['history']['getOperation'](_0x351cd1);_0x1ac4ca['createdAt']=_0x59bed3&&_0x59bed3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x7c6582===this['_loadedStateData']['fromVersion']){for(const _0x1a6d7f of this['_loadedStateData']['authors'])_0x1ac4ca['authorsIds']['includes'](_0x1a6d7f['id'])||_0x1ac4ca['authorsIds']['push'](_0x1a6d7f['id']);}return _0x1ac4ca;}['_loadRevisionData'](_0x1d9fdc){if(!_0x1d9fdc||_0x1d9fdc['diffData'])return Promise['resolve']();{const _0x374df7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x374df7,'revisionId':_0x1d9fdc['id']})['then'](_0x2f2df5=>{_0x1d9fdc['diffData']=_0x2f2df5['diffData'];});}}['_bufferUpdate'](_0x26ba06,_0x4fa279,_0x40b247){if(this['_bufferedUpdates']['has'](_0x26ba06)){const _0x45031c=this['_bufferedUpdates']['get'](_0x26ba06);_0x4fa279=_0x40b247?{..._0x45031c,..._0x4fa279}:{..._0x4fa279,..._0x45031c};}this['_bufferedUpdates']['set'](_0x26ba06,_0x4fa279);}['_getFromVersion'](_0x20105e){const _0x330c83=this['repository']['getRevisions']();_0x330c83['reverse'](),_0x330c83['shift']();const _0x3b8416=_0x330c83['find'](_0x3fa834=>_0x3fa834['toVersion']<=_0x20105e)['toVersion'];return _0x3b8416<this['_startingVersion']?this['_startingVersion']:_0x3b8416;}['_createInitialRevision'](_0x402384){const _0x109e19=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x109e19)this['_initialRevisionId']=_0x109e19['id'];else{const _0x1992c0=!this['editor']['model']['document']['roots']['find'](_0x1aeaf6=>this['editor']['model']['hasContent'](_0x1aeaf6)),_0x20c114=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fcb51=m(this['editor']['locale'],_0x1992c0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x402384,'to':_0x402384,'id':this['_initialRevisionId'],'name':_0x1fcb51,'creatorId':_0x20c114});}}['_createCurrentRevision'](_0xfc5a1d){const _0x398ea1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x398ea1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xfc5a1d,'to':_0xfc5a1d,'id':_0x398ea1,'name':'','creatorId':null}));}['_makeRevision']({name:_0x46ec1b,from:_0x34cb9a,to:_0x566592,creatorId:_0x1812bd,id:_0x1707e6}){const _0x50b027=this['buildRevisionData']({'from':_0x34cb9a,'to':_0x566592});_0x50b027['name']=_0x46ec1b,_0x50b027['creatorId']=_0x1812bd,_0x50b027['id']=_0x1707e6;const _0x1d9b08=this['addRevisionData'](_0x50b027);return this['adapter']&&this['_bufferUpdate'](_0x50b027['id'],_0x50b027,!0x0),_0x1d9b08;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x460bda){return(_0x460bda=_0x460bda['filter'](_0x9dd4b3=>!_0x9dd4b3['name']||'revision-start'!==_0x9dd4b3['name']&&'revision-end'!==_0x9dd4b3['name']))['forEach'](_0x658b25=>{'string'!=typeof _0x658b25&&(_0x658b25['children']=this['_removeRevisionMarkers'](_0x658b25['children']),_0x658b25['attributes']=_0x658b25['attributes']['filter'](_0x1c7ce6=>!_0x1c7ce6[0x0]['startsWith']('data-revision-')));}),_0x460bda;}}function C(_0x19807e,_0x4ed699){const _0x218904=_0x4ed699['editing']['view']['document'];if('string'==typeof _0x19807e)return new _0x4c4e57(_0x218904,_0x19807e);{const _0x5a6843=_0x19807e['children']['map'](_0x32ed99=>C(_0x32ed99,_0x4ed699));return new(P[_0x19807e['type']]||_0x293663)(_0x218904,_0x19807e['name'],_0x19807e['attributes'],_0x5a6843);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4fa645){this['editor']=_0x4fa645,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'](_0x33f19c){this['source']=_0x33f19c;const _0x262afc=new Map(),_0x3d9097=new Map(),_0x573e8e=this['editor']['model']['document']['roots']['map'](_0xb3ec5e=>_0xb3ec5e['rootName']);for(const _0x3f10f0 of _0x573e8e){const _0x135f44=this['editor']['model']['document']['getRoot'](_0x3f10f0),_0x5a576c=T(_0x135f44);_0x262afc['set'](_0x3f10f0,_0x5a576c),_0x3d9097['set'](_0x3f10f0,Object['fromEntries'](_0x135f44['getAttributes']()));}const _0x1c9e9d=Array['from'](this['editor']['model']['markers'])['map'](_0x48d4ca=>[_0x48d4ca['name'],_0x48d4ca['getRange']()]),_0x19c94a=this['source']['version'];this['_saveMetaData'](_0x19c94a,_0x262afc,_0x1c9e9d,_0x3d9097),this['_startingRevisionId']=this['_revisionId'];const _0x2f49d5=new Map(),_0x25809a=new Map();for(const _0x29a895 of _0x573e8e){const _0x4cd833=F(_0x29a895);_0x2f49d5['set'](_0x29a895,_0x4cd833),_0x25809a['set'](_0x29a895,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f49d5,[],_0x25809a);}['getData'](_0x5aa56d,_0x362530){if(this['_lastFrom']===_0x5aa56d&&this['_lastTo']<=_0x362530)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x362530,!0x0);else{if(!this['_savedMetaData']['has'](_0x5aa56d)){const _0x9623c0=this['_getPreviousFrom'](_0x5aa56d);this['_calculateMetaData'](_0x9623c0,_0x5aa56d,!0x1);}this['_calculateMetaData'](_0x5aa56d,_0x362530,!0x0);}return this['_lastFrom']=_0x5aa56d,this['_lastTo']=_0x362530,this['_getState']();}['loadState'](_0x3fab72){this['_reset'](),this['_lastFrom']=_0x3fab72['fromVersion'],this['_lastTo']=_0x3fab72['toVersion'];for(const _0x4cf734 in _0x3fab72['diffData']){const _0x3c0692=_0x3fab72['diffData'][_0x4cf734]['attachChange'],_0x1c104d=_0x59c379(_0x3fab72['diffData'][_0x4cf734]['attributesBefore'])||{},_0x244518=this['_makeModelFromViewString'](_0x3fab72['diffData'][_0x4cf734]['deletions']);_0x244518['rootName']=_0x4cf734,_0x244518['_isAttached']=!_0x3c0692||!_0x3c0692['isAttached'],_0x244518['isAttached']=()=>_0x244518['_isAttached'],this['_baseRoots']['set'](_0x4cf734,_0x244518),this['_baseRootsAttributes']['set'](_0x4cf734,_0x1c104d),_0x3c0692&&this['_touchedRoots']['set'](_0x4cf734,_0x3c0692);const _0x4f996f=this['_makeIdsRoot'](_0x244518);this['_baseIdsRoots']['set'](_0x4cf734,_0x4f996f);for(const [_0x24561f,_0x3f6940]of _0x244518['markers']){if(!_0x24561f['startsWith']('revision:'))continue;const _0x323df1=_0x24561f['split'](':')[0x2];for(const _0x2a8fb0 of _0x3f6940['getWalker']({'singleCharacters':!0x0})){const _0x50efef=this['_getVidAttributeName'](_0x2a8fb0),_0x130381='elementEnd'==_0x2a8fb0['type']?_0x2a8fb0['previousPosition']['path']['slice'](0x0,-0x1):_0x2a8fb0['previousPosition']['path'],_0x3d088e=_0x4f996f['getNodeByPath'](_0x130381)['getAttribute'](_0x50efef);this['_touched']['set'](_0x3d088e,{'userId':_0x323df1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x588450=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2804dd=>!this['_touched']['has'](_0x2804dd));let _0x4e8bd3=0x0;const _0x115056=new Map();for(const _0x5840ca in _0x3fab72['diffData']){const _0x21812a=_0x3fab72['diffData'][_0x5840ca]['attachChange'],_0x31a382=_0x59c379(_0x3fab72['diffData'][_0x5840ca]['attributesAfter'])||{},_0x1c21d0=this['_makeModelFromViewString'](_0x3fab72['diffData'][_0x5840ca]['insertions']);_0x1c21d0['rootName']=_0x5840ca,_0x1c21d0['_isAttached']=!_0x21812a||_0x21812a['isAttached'],_0x1c21d0['isAttached']=()=>_0x1c21d0['_isAttached'],this['_diffRoots']['set'](_0x5840ca,_0x1c21d0),this['_diffRootsAttributes']['set'](_0x5840ca,_0x31a382);const _0x72a126=this['_makeIdsRoot'](_0x1c21d0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5840ca,_0x72a126),_0x115056['set'](_0x5840ca,_0x1c21d0['isAttached']()?_0x31a382:{});for(const [_0x2925ba,_0x5895b1]of _0x1c21d0['markers']){if(!_0x2925ba['startsWith']('revision:'))continue;const _0x2f0ad7=_0x2925ba['split'](':')[0x2];for(const _0x2c6c4f of _0x5895b1['getWalker']({'singleCharacters':!0x0})){const _0x1d0e04=this['_getVidAttributeName'](_0x2c6c4f),_0x34e43c=this['_revisionId']++,_0x371cde='elementEnd'==_0x2c6c4f['type']?_0x2c6c4f['previousPosition']['path']['slice'](0x0,-0x1):_0x2c6c4f['previousPosition']['path'];_0x72a126['getNodeByPath'](_0x371cde)['_setAttribute'](_0x1d0e04,_0x34e43c),this['_touched']['set'](_0x34e43c,{'userId':_0x2f0ad7});}}for(const _0x3ec8d9 of this['editor']['model']['createRangeIn'](_0x1c21d0)['getWalker']({'singleCharacters':!0x0})){const _0x56f070=this['_getVidAttributeName'](_0x3ec8d9),_0x46944e='elementEnd'==_0x3ec8d9['type']?_0x3ec8d9['previousPosition']['path']['slice'](0x0,-0x1):_0x3ec8d9['previousPosition']['path'],_0x117379=_0x72a126['getNodeByPath'](_0x46944e);_0x117379['getAttribute'](_0x56f070)>0x0||_0x117379['_setAttribute'](_0x56f070,_0x588450[_0x4e8bd3++]);}for(const [_0x460b2b,_0x24a2e7]of _0x1c21d0['markers'])_0x460b2b['startsWith']('revision:')||this['_markers']['set'](_0x460b2b,_0x24a2e7);}const _0x184abc=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x184abc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x184abc,0x1));const _0x3a5b7e=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3a5b7e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a5b7e,0x1));const _0x530f39=Array['from'](this['_diffRoots'])['map'](([_0x55ad41,_0x53ea9f])=>[_0x55ad41,T(_0x53ea9f)]);this['_saveMetaData'](this['_lastTo'],_0x530f39,this['_markers'],_0x115056);}['_makeModelFromViewString'](_0x571bea){const _0x594c67=JSON['parse'](_0x571bea),_0x285414=this['editor']['editing']['view']['document'],_0x24a6db=new _0x6101a3(_0x285414,_0x594c67['map'](_0x6ca511=>C(_0x6ca511,this['editor'])));return this['editor']['data']['toModel'](_0x24a6db);}['_saveMetaData'](_0x309194,_0x2a1000,_0xab6652,_0x2d83ab){const _0x5acb21=new Map(_0x2a1000),_0x2cafde=new Map(_0x59c379(_0x2d83ab)),_0x13bcb6=new Map();for(const [_0x552ff7,_0x330ca0]of _0xab6652)_0x13bcb6['set'](_0x552ff7,{'start':_0x330ca0['start']['clone'](),'end':_0x330ca0['end']['clone'](),'rootName':_0x330ca0['root']['rootName']});this['_savedMetaData']['set'](_0x309194,{'roots':_0x5acb21,'markers':_0x13bcb6,'rootsAttributes':_0x2cafde});}['_removeMetaData'](_0x320d66){this['_savedMetaData']['delete'](_0x320d66);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4242b3,_0x54ca72=null){let _0x52d74c=null;_0x4242b3['is']('documentFragment')||(_0x52d74c=new ft(_0x4242b3['name'],{'vid_start':null===_0x54ca72?this['_revisionId']++:_0x54ca72++}));const _0x4c9835=[];for(const _0x4171c0 of _0x4242b3['getChildren']())if(_0x4171c0['is']('element')){_0x4c9835['push'](this['_makeIdsRoot'](_0x4171c0,_0x54ca72));const _0x5340b8=_0x4c9835[_0x4c9835['length']-0x1];null!==_0x54ca72&&(_0x54ca72=_0x5340b8['is']('element','$text')?_0x5340b8['getAttribute']('vid')+0x1:_0x5340b8['getAttribute']('vid_end')+0x1);}else{for(let _0x1c5ac4=0x0;_0x1c5ac4<_0x4171c0['offsetSize'];_0x1c5ac4++)_0x4c9835['push'](new ft('$text',{'vid':null===_0x54ca72?this['_revisionId']++:_0x54ca72++}));}if(_0x4242b3['is']('documentFragment')){const _0x52bda1=F(_0x4242b3['rootName']);return _0x52bda1['_insertChild'](0x0,_0x4c9835),_0x52bda1;}return _0x52d74c['_setAttribute']('vid_end',null===_0x54ca72?this['_revisionId']++:_0x54ca72++),_0x52d74c['_insertChild'](0x0,_0x4c9835),_0x52d74c;}['_calculateMetaData'](_0x4809be,_0x128cf2,_0x29d6a4){this['_reset']();const {roots:_0x16d4c9,markers:_0x308277,rootsAttributes:_0x584a58}=this['_savedMetaData']['get'](_0x4809be);this['_baseRoots']=new Map(_0x16d4c9),this['_baseRootsAttributes']=new Map(_0x59c379(_0x584a58));for(const [_0x510297,_0xc0333a]of this['_baseRoots'])if('$graveyard'!==_0x510297&&(this['_diffRoots']['set'](_0x510297,T(_0xc0333a)),this['_diffRootsAttributes']=new Map(_0x59c379(_0x584a58)),_0x29d6a4)){const _0x61d726=this['_revisionId'];this['_idsRoots']['set'](_0x510297,this['_makeIdsRoot'](_0xc0333a)),this['_baseIdsRoots']['set'](_0x510297,this['_makeIdsRoot'](_0xc0333a,_0x61d726));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x29d6a4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x194a0f,_0x2e0b29]of _0x308277){const _0x9375af=this['_baseRoots']['get'](_0x2e0b29['rootName']),_0xfd4e67=this['_diffRoots']['get'](_0x2e0b29['rootName']),_0x2b5182=new vt(this['_fixPosition'](_0x2e0b29['start'],_0x9375af),this['_fixPosition'](_0x2e0b29['end'],_0x9375af)),_0x2b903d=this['_fixRange'](_0x2b5182,_0xfd4e67);_0x9375af['markers']['set'](_0x194a0f,_0x2b5182),this['_markers']['set'](_0x194a0f,_0x2b903d);}this['_applyOperations'](_0x4809be,_0x128cf2,_0x29d6a4);}['_applyOperations'](_0x1ff04c,_0x2d003c,_0x15fe00){for(const _0x193b34 of this['source']['getOperations'](_0x1ff04c,_0x2d003c))this['_handleOperation'](_0x193b34,_0x15fe00);for(const _0x3c039c of this['_diffRoots']['values']())_0x3c039c['markers']['clear']();for(const [_0x5be86b,_0x2df787]of this['_markers']){this['_diffRoots']['get'](_0x2df787['root']['rootName'])['markers']['set'](_0x5be86b,_0x2df787['clone']());}const _0x145f18=new Map(),_0x259f28=new Map();for(const [_0x5f227a,_0x59e89a]of this['_diffRoots'])_0x145f18['set'](_0x5f227a,T(_0x59e89a)),_0x259f28['set'](_0x5f227a,this['_diffRootsAttributes']['get'](_0x5f227a));this['_saveMetaData'](_0x2d003c,_0x145f18,this['_markers'],_0x259f28);}['_getPreviousFrom'](_0x5ad655){const _0x2cae19=Array['from'](this['_savedMetaData']['keys']());_0x2cae19['sort']((_0x4282c7,_0x5547ae)=>_0x4282c7-_0x5547ae),_0x2cae19['reverse']();for(const _0x15b600 of _0x2cae19)if(_0x15b600<_0x5ad655)return _0x15b600;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xde60bf,_0x597cf2){const _0x70c025=Array['from'](_0x597cf2['markers'])['map'](([_0xd0d4e8,_0xf8a494])=>[_0xd0d4e8,this['_fixRange'](_0xf8a494,_0xde60bf)]);_0xde60bf['markers']=new Map(_0x70c025);}['_transformMarkers'](_0x340f04){for(const _0x4b3cd8 of this['_markers']['values']()){const _0x2ef40b=_0x4b3cd8['getTransformedByOperation'](_0x340f04),_0x1b14ad=vt['_createFromRanges'](_0x2ef40b);_0x4b3cd8['start']=_0x1b14ad['start'],_0x4b3cd8['end']=_0x1b14ad['end'];}}['_handleOperation'](_0x5e9a0a,_0x4a3793){if('addRoot'!=_0x5e9a0a['type']&&'detachRoot'!=_0x5e9a0a['type']){if('insert'==_0x5e9a0a['type']){const _0x386f2d=_0x5e9a0a['position']['root']['rootName'];this['_diffRoots']['has'](_0x386f2d)||(this['_diffRoots']['set'](_0x386f2d,F(_0x386f2d,!0x0)),this['_diffRootsAttributes']['set'](_0x386f2d,{}),_0x4a3793&&this['_idsRoots']['set'](_0x386f2d,F(_0x386f2d,!0x0)));}else{if('addRootAttribute'==_0x5e9a0a['type']||'removeRootAttribute'==_0x5e9a0a['type']||'changeRootAttribute'==_0x5e9a0a['type'])return void this['_handleRootAttributeOperation'](_0x5e9a0a);'marker'==_0x5e9a0a['type']&&this['_handleMarkerOperation'](_0x5e9a0a);}if('marker'!==_0x5e9a0a['type']){const _0x27b4fd=this['_cloneOperation'](_0x5e9a0a,this['_diffRoots']);_0x27b4fd['_execute'](),this['_transformMarkers'](_0x27b4fd);}if(_0x4a3793)switch(_0x5e9a0a['type']){case'insert':this['_handleInsertOperation'](_0x5e9a0a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5e9a0a);break;case'merge':this['_handleMergeOperation'](_0x5e9a0a);break;case'split':this['_handleSplitOperation'](_0x5e9a0a);}}else this['_handleRootOperation'](_0x5e9a0a,_0x4a3793);}['_cloneOperation'](_0xbf6266,_0x5b548e){const _0x59462e=_0xbf6266['clone']();return _0x59462e['_authorId']=_0xbf6266['_authorId'],this['_fixOperation'](_0x59462e,_0x5b548e),_0x59462e;}['_getBaseVids'](_0x51d019){return _0x51d019['map'](_0x303ba6=>{const _0x4b298b=this['_getVidAttributeName'](_0x303ba6);return Number(_0x303ba6['item']['getAttribute'](_0x4b298b));});}['_generateTape'](_0x390faa,_0x13376d){if(_0x390faa['is']('element','$text'))_0x13376d['push']({'item':_0x390faa,'type':'text'});else{_0x390faa['is']('element')&&_0x13376d['push']({'item':_0x390faa,'type':'elementStart'});for(const _0x6f6274 of _0x390faa['getChildren']())this['_generateTape'](_0x6f6274,_0x13376d);_0x390faa['is']('element')&&_0x13376d['push']({'item':_0x390faa,'type':'elementEnd'});}return _0x13376d;}['_getState'](){const _0xe3b1ee=new Map(this['_touched']),_0x3d0161=new Map(_0xe3b1ee),_0x698a12=new Map(),_0x2d0183={'insertions':{},'deletions':{}},_0xb68ce4={'insertions':{},'deletions':{}},_0x3ee962=new Map(),_0x16690a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x16690a['delete']('$graveyard');for(const _0x76f09b of _0x16690a){const _0x2b966c=this['_diffRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1),_0x3da6de=this['_baseRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1);_0x2b966c['isAttached']()||_0x3da6de['isAttached']()?(_0x2d0183['insertions'][_0x76f09b]=T(_0x2b966c),_0x2d0183['deletions'][_0x76f09b]=T(_0x3da6de),this['_copyMarkers'](_0x2d0183['deletions'][_0x76f09b],_0x3da6de),this['_copyMarkers'](_0x2d0183['insertions'][_0x76f09b],_0x2b966c),_0xb68ce4['insertions'][_0x76f09b]=this['_generateTape'](this['_idsRoots']['get'](_0x76f09b),[]),_0xb68ce4['deletions'][_0x76f09b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1),[])):_0x16690a['delete'](_0x76f09b);}for(const _0x159822 of _0x16690a){const _0xd38e07=_0xb68ce4['insertions'][_0x159822];for(const _0x3100df of _0xd38e07){const _0x2c7d2e=this['_getVidAttributeName'](_0x3100df),_0x3575e4=_0x3100df['item']['getAttribute'](_0x2c7d2e);_0x3d0161['delete'](_0x3575e4),_0x3575e4>=this['_startingRevisionId']&&_0x698a12['set'](_0x3575e4,_0xe3b1ee['get'](_0x3575e4));}}for(const _0x223bf6 of _0x16690a){const _0x51bd86=_0xb68ce4['insertions'][_0x223bf6],_0x38d09c=this['_getBaseVids'](_0xb68ce4['deletions'][_0x223bf6]);let _0x115395=0x0;for(const _0x50f5a5 of _0x51bd86){const _0x1d1ae6=this['_getVidAttributeName'](_0x50f5a5),_0x3b2787=_0x50f5a5['item']['getAttribute'](_0x1d1ae6);if(!_0x698a12['has'](_0x3b2787)&&!_0x3ee962['has'](_0x3b2787)){if(_0x3d0161['has'](_0x3b2787))_0x115395++;else{if(_0x3b2787!=_0x38d09c[_0x115395]){const _0x5f442b=_0xe3b1ee['get'](_0x3b2787)||_0xe3b1ee['get'](_0x38d09c[_0x115395]);for(;_0x3b2787!=_0x38d09c[_0x115395];)_0x3d0161['has'](_0x38d09c[_0x115395])||(_0x3ee962['set'](_0x38d09c[_0x115395],_0x5f442b),_0xe3b1ee['set'](_0x38d09c[_0x115395],_0x5f442b)),_0x115395++;}_0x115395++;}}}}for(const _0x58429d of _0x16690a){const _0x23f501=_0xb68ce4['insertions'][_0x58429d];for(const _0x3e2776 of _0x23f501){const _0x285793=this['_getVidAttributeName'](_0x3e2776),_0x5f0449=_0x3e2776['item']['getAttribute'](_0x285793);if(_0x3ee962['has'](_0x5f0449)){const _0x2c44ce=_0x3ee962['get'](_0x5f0449);_0x3d0161['has'](_0x5f0449)||_0x3d0161['set'](_0x5f0449,{..._0x2c44ce}),_0x698a12['set'](_0x5f0449,{..._0x2c44ce});}}}for(const _0x2b5c35 of _0x3d0161['keys']())_0x2b5c35>=this['_startingRevisionId']&&_0x3d0161['delete'](_0x2b5c35);const _0x29751d=new Map();for(const _0x155846 of _0x16690a){let _0x4f431d=_0xb68ce4['insertions'][_0x155846];for(const _0x36837b of _0x4f431d)if(_0x36837b['item']['is']('element','tableCell')){const _0x174b73=this['_getVidAttributeName'](_0x36837b),_0x553187=_0x36837b['item']['getAttribute'](_0x174b73);if(_0x698a12['has'](_0x553187)){const _0x36329b=_0x36837b['item']['parent']['parent']['getAttribute']('vid_start'),_0x96e8e0=_0x29751d['get'](_0x36329b)||new Set();_0x96e8e0['add'](_0x698a12['get'](_0x553187)['userId']),_0x29751d['set'](_0x36329b,_0x96e8e0);}}_0x4f431d=_0xb68ce4['deletions'][_0x155846];for(const _0x376ba8 of _0x4f431d)if(_0x376ba8['item']['is']('element','tableCell')){const _0x54a692=this['_getVidAttributeName'](_0x376ba8),_0x59a83c=_0x376ba8['item']['getAttribute'](_0x54a692);if(_0x3d0161['has'](_0x59a83c)){const _0x231e34=_0x376ba8['item']['parent']['parent']['getAttribute']('vid_start'),_0x1f0258=_0x29751d['get'](_0x231e34)||new Set();_0x1f0258['add'](_0x3d0161['get'](_0x59a83c)['userId']),_0x29751d['set'](_0x231e34,_0x1f0258);}}for(const _0x3d4021 of _0x29751d['keys']())(_0x698a12['has'](_0x3d4021)||_0x3d0161['has'](_0x3d4021))&&_0x29751d['delete'](_0x3d4021);}for(const _0x3977ed of _0x16690a){const _0x310e42=_0xb68ce4['insertions'][_0x3977ed];let _0x460065=null,_0x1036eb=null;for(const _0x36148f of _0x310e42){const _0x16f28f=this['_getVidAttributeName'](_0x36148f),_0x2537e1=_0x36148f['item']['getAttribute'](_0x16f28f),_0x1fcc6a=_0x29751d['get'](_0x2537e1);_0x1fcc6a&&'elementStart'==_0x36148f['type']&&(_0x460065=Array['from'](_0x1fcc6a)[0x0],_0x1036eb=_0x36148f['item']['getAttribute']('vid_end')),_0x460065&&(_0x3d0161['set'](_0x2537e1,{'userId':_0x460065}),_0x698a12['set'](_0x2537e1,{'userId':_0x460065})),_0x2537e1==_0x1036eb&&(_0x460065=null,_0x1036eb=null);}}const _0x472444={},_0x19748c=new Set();for(const _0x3f3d93 of _0x16690a){const _0x4ccb12=_0x2d0183['deletions'][_0x3f3d93],_0x579e48=_0x2d0183['insertions'][_0x3f3d93];for(const {userId:_0x4c9483}of this['_touchedMarkers']['values']())null!==_0x4c9483&&_0x19748c['add'](_0x4c9483);for(const {userId:_0x2f78e3}of this['_touchedRoots']['values']())null!==_0x2f78e3&&_0x19748c['add'](_0x2f78e3);this['_markChanges'](_0x579e48,_0xb68ce4['insertions'][_0x3f3d93],_0x698a12,'insertion',_0x19748c),this['_markChanges'](_0x4ccb12,_0xb68ce4['deletions'][_0x3f3d93],_0x3d0161,'deletion',_0x19748c),_0x472444[_0x3f3d93]={'insertions':this['_prepareViewToSave'](_0x579e48),'deletions':this['_prepareViewToSave'](_0x4ccb12),'attachChange':this['_touchedRoots']['get'](_0x3f3d93)||null,'attributesBefore':_0x59c379(this['_baseRootsAttributes']['get'](_0x3f3d93))||{},'attributesAfter':_0x59c379(this['_diffRootsAttributes']['get'](_0x3f3d93))};}return{'diffData':_0x472444,'authorsIds':Array['from'](_0x19748c)};}['_processRootBeforeSave'](_0x28b051){for(const [,_0x36b629]of _0x28b051['markers']){const _0x2e44d7=_0x36b629['start']['getAncestors']()['filter'](_0x251496=>'tableCell'==_0x251496['name']);for(const _0x5aa0ce of _0x2e44d7)0x1==_0x5aa0ce['childCount']&&_0x5aa0ce['getChild'](0x0)['is']('element','paragraph')&&_0x5aa0ce['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c2ffe){this['_processRootBeforeSave'](_0x4c2ffe);const _0xe451cf=this['editor']['data']['toView'](_0x4c2ffe,{}),_0x1f6deb=Array['from'](_0xe451cf['getChildren']())['map'](_0x36844b=>this['_getViewJson'](_0x36844b));return JSON['stringify'](_0x1f6deb);}['_getViewJson'](_0x1b6439){if(_0x1b6439['is']('$text'))return _0x1b6439['data'];{const _0x3f9f96=_0x1b6439;return{'type':Object['keys'](P)['find'](_0x45359f=>_0x1b6439 instanceof P[_0x45359f]),'name':_0x3f9f96['name'],'attributes':Array['from'](_0x3f9f96['getAttributes']()),'children':Array['from'](_0x3f9f96['getChildren']())['map'](_0x574a48=>this['_getViewJson'](_0x574a48))};}}['_markChanges'](_0x64d034,_0x36e0cd,_0x522712,_0x494cf6,_0x3ce0b2){let _0x2ce10c=null,_0x57fbfa=null,_0x27e7fa=0x0;const _0x201fef=this['editor']['model'];for(let _0x4ea10e=0x0;_0x4ea10e<_0x36e0cd['length'];_0x4ea10e++){const _0x3c11cf=this['_getVidAttributeName'](_0x36e0cd[_0x4ea10e]),_0x19a8d2=_0x36e0cd[_0x4ea10e]['item']['getAttribute'](_0x3c11cf),_0x1ed6a=_0x522712['get'](_0x19a8d2),_0x9117ac=_0x4ea10e==_0x36e0cd['length']-0x1;(!_0x2ce10c&&_0x1ed6a&&(_0x2ce10c=_0x1ed6a,_0x57fbfa=_0x36e0cd[_0x4ea10e]),_0x2ce10c&&(!_0x1ed6a||_0x1ed6a['userId']!=_0x2ce10c['userId']))&&(_0x1b3813(_0x1ed6a,B(_0x57fbfa,_0x64d034,_0x201fef),B(_0x36e0cd[_0x4ea10e],_0x64d034,_0x201fef)),_0x2ce10c=_0x1ed6a||null,_0x57fbfa=_0x1ed6a?_0x36e0cd[_0x4ea10e]:null),_0x2ce10c&&_0x9117ac&&_0x1b3813(_0x1ed6a,B(_0x57fbfa,_0x64d034,_0x201fef),J(_0x36e0cd[_0x4ea10e],_0x64d034,_0x201fef));}function _0x1b3813(_0x1e4245,_0x4c033d,_0x3646df){const _0x1c3777=_0x2ce10c['userId'],_0x3fce18='revision:'+_0x494cf6+':'+_0x1c3777+':'+_0x27e7fa++,_0x357dab=_0x201fef['createRange'](_0x4c033d,_0x3646df);_0x64d034['markers']['set'](_0x3fce18,_0x357dab),null!==_0x1c3777&&_0x3ce0b2['add'](_0x1c3777);}}['_getVidAttributeName'](_0x1df6e3){switch(_0x1df6e3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1137c3,_0x45d239){_0x1137c3['baseVersion']=null;for(const _0x33c52d in _0x1137c3){const _0x12fdf7=_0x1137c3[_0x33c52d];if(_0x12fdf7 instanceof gt){const _0x3035e3=_0x45d239['get'](_0x12fdf7['root']['rootName']);_0x1137c3[_0x33c52d]=this['_fixPosition'](_0x12fdf7,_0x3035e3);}if(_0x12fdf7 instanceof vt){const _0x3587f4=_0x45d239['get'](_0x12fdf7['root']['rootName']);_0x1137c3[_0x33c52d]=this['_fixRange'](_0x12fdf7,_0x3587f4);}'root'===_0x33c52d&&(_0x1137c3['root']=_0x45d239['get'](_0x1137c3['root']['rootName']));}}['_fixRange'](_0x145e1a,_0x296df7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x145e1a['start'],_0x296df7),this['_fixPosition'](_0x145e1a['end'],_0x296df7));}['_fixPosition'](_0x1817a7,_0x16006c){return this['editor']['model']['createPositionFromPath'](_0x16006c,_0x1817a7['path'],_0x1817a7['stickiness']);}['_handleInsertOperation'](_0x3ef307){const _0x27880d=this['_idsRoots']['get'](_0x3ef307['position']['root']['rootName']),_0x37aa94=this['_fixPosition'](_0x3ef307['position'],_0x27880d),_0xe85de=null===_0x3ef307['_authorId']?null:_0x3ef307['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42a56c=_0x37aa94['parent'],_0xb60b0b=this['_revisionId'],_0x3f7bd0=[];for(const _0x238acb of _0x3ef307['nodes'])if(_0x238acb['is']('element'))_0x3f7bd0['push'](this['_makeIdsRoot'](_0x238acb));else{for(let _0xb9c613=0x0;_0xb9c613<_0x238acb['offsetSize'];_0xb9c613++)_0x3f7bd0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e37f9=this['_revisionId'];for(let _0x55f388=_0xb60b0b;_0x55f388<_0x2e37f9;_0x55f388++)this['_touched']['set'](_0x55f388,{'userId':_0xe85de});_0x42a56c['_insertChild'](_0x37aa94['offset'],_0x3f7bd0);}['_handleMoveOperation'](_0xfa6be1){(_0xfa6be1=this['_cloneOperation'](_0xfa6be1,this['_idsRoots']))['_execute']();const _0x343251=null===_0xfa6be1['_authorId']?null:_0xfa6be1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58b679=_0xfa6be1['getMovedRangeStart'](),_0x22fe9b=_0x58b679['parent'],_0x2672a1=_0x58b679['offset'];!function _0x58a5b0(_0x561eef,_0x1b00ce,_0x43516,_0x517fcc){for(let _0x3861e7=_0x43516;_0x3861e7<_0x517fcc;_0x3861e7++){const _0x552f0b=_0x1b00ce['getChild'](_0x3861e7);_0x552f0b['is']('element','$text')?_0x561eef['set'](_0x552f0b['getAttribute']('vid'),{'userId':_0x343251}):(_0x561eef['set'](_0x552f0b['getAttribute']('vid_start'),{'userId':_0x343251}),_0x58a5b0(_0x561eef,_0x552f0b,0x0,_0x552f0b['childCount']),_0x561eef['set'](_0x552f0b['getAttribute']('vid_end'),{'userId':_0x343251}));}}(this['_touched'],_0x22fe9b,_0x2672a1,_0x2672a1+_0xfa6be1['howMany']);}['_handleMergeOperation'](_0x464139){const _0x1f38d7=null===(_0x464139=this['_cloneOperation'](_0x464139,this['_idsRoots']))['_authorId']?null:_0x464139['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23a54c=_0x464139['targetPosition']['parent'],_0x2a1ae3=_0x464139['sourcePosition']['parent'],_0x470fd9=_0x23a54c['getAttribute']('vid_end'),_0x228033=_0x2a1ae3['getAttribute']('vid_start');_0x23a54c['_setAttribute']('vid_end',_0x2a1ae3['getAttribute']('vid_end')),_0x2a1ae3['_setAttribute']('vid_end',_0x470fd9),this['_touched']['set'](_0x228033,{'userId':_0x1f38d7}),this['_touched']['set'](_0x470fd9,{'userId':_0x1f38d7}),_0x464139['_execute']();}['_handleSplitOperation'](_0xf8442a){const _0x13aa47=null===(_0xf8442a=this['_cloneOperation'](_0xf8442a,this['_idsRoots']))['_authorId']?null:_0xf8442a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f55d9=_0xf8442a['graveyardPosition'],_0x30048f=_0xf8442a['splitPosition']['parent'];_0xf8442a['_execute']();const _0x1017ac=_0x30048f['getAttribute']('vid_end'),_0xd972c7=_0xf8442a['insertionPosition']['nodeAfter'];if(_0x1f55d9){const _0x29e3fd=_0xd972c7['getAttribute']('vid_end'),_0x3325b9=_0x30048f['getAttribute']('vid_end');_0x30048f['_setAttribute']('vid_end',_0x29e3fd),_0xd972c7['_setAttribute']('vid_end',_0x3325b9),this['_touched']['set'](_0x30048f['getAttribute']('vid_end'),{'userId':_0x13aa47}),this['_touched']['set'](_0xd972c7['getAttribute']('vid_start'),{'userId':_0x13aa47});}else{const _0x144022=this['_revisionId']++,_0x29a670=this['_revisionId']++;_0x30048f['_setAttribute']('vid_end',_0x144022),_0xd972c7['_setAttribute']('vid_start',_0x29a670),_0xd972c7['_setAttribute']('vid_end',_0x1017ac),this['_touched']['set'](_0x144022,{'userId':_0x13aa47}),this['_touched']['set'](_0x29a670,{'userId':_0x13aa47});}}['_handleMarkerOperation'](_0x14f200){if(!_0x14f200['affectsData'])return;const _0x6123a9=(_0x14f200=this['_cloneOperation'](_0x14f200,this['_diffRoots']))['oldRange']?_0x14f200['oldRange']['root']:null,_0x116ae8=_0x14f200['newRange']?_0x14f200['newRange']['root']:null;_0x6123a9&&this['_markers']['delete'](_0x14f200['name']),_0x116ae8&&this['_markers']['set'](_0x14f200['name'],_0x14f200['newRange']['clone']());const _0x4127ab=null===_0x14f200['_authorId']?null:_0x14f200['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x412671=_0x14f200['name'];if(!this['_touchedMarkers']['has'](_0x412671))return void this['_touchedMarkers']['set'](_0x412671,{'range':_0x14f200['oldRange'],'userId':_0x4127ab});const _0x316759=this['_touchedMarkers']['get'](_0x412671),_0x3d0107=_0x316759['range'],_0x1d7f8c=_0x14f200['newRange'];null==_0x3d0107&&null==_0x1d7f8c||_0x3d0107&&_0x1d7f8c&&_0x3d0107['isEqual'](_0x1d7f8c)?this['_touchedMarkers']['delete'](_0x14f200['name']):_0x316759['userId']=_0x4127ab;}['_handleRootOperation'](_0x135c0c,_0x5dc68e){this['_diffRoots']['has'](_0x135c0c['rootName'])?this['_diffRoots']['get'](_0x135c0c['rootName'])['_isAttached']=_0x135c0c['isAdd']:(this['_diffRoots']['set'](_0x135c0c['rootName'],F(_0x135c0c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x135c0c['rootName'],{}),_0x5dc68e&&this['_idsRoots']['set'](_0x135c0c['rootName'],F(_0x135c0c['rootName'],!0x0)));const _0x147279=null===_0x135c0c['_authorId']?null:_0x135c0c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58bc8d=this['_touchedRoots']['get'](_0x135c0c['rootName']);_0x58bc8d&&_0x58bc8d['userId']===_0x147279?this['_touchedRoots']['delete'](_0x135c0c['rootName']):this['_touchedRoots']['set'](_0x135c0c['rootName'],{'userId':_0x147279,'isAttached':_0x135c0c['isAdd']});}['_handleRootAttributeOperation'](_0xbf57cd){const _0x3fcbad=this['_diffRootsAttributes']['get'](_0xbf57cd['root']['rootName']);null===_0xbf57cd['newValue']?delete _0x3fcbad[_0xbf57cd['key']]:_0x3fcbad[_0xbf57cd['key']]=_0xbf57cd['newValue'];}}function T(_0x4d5012){const _0x59337f=F(_0x4d5012['rootName'],_0x4d5012['isAttached']());for(const _0x33f4a9 of _0x4d5012['getChildren']()){const _0x2b9e1b=_0x33f4a9['_clone'](!0x0);_0x59337f['_appendChild'](_0x2b9e1b);}return _0x59337f;}function F(_0x1e1bfc,_0x751b8b=!0x0){const _0x572b3a=new mt();return _0x572b3a['rootName']=_0x1e1bfc,_0x572b3a['_isAttached']=_0x751b8b,_0x572b3a['isAttached']=()=>_0x572b3a['_isAttached'],_0x572b3a;}function B(_0x5b24f6,_0x38d1fb,_0x309dac){const _0x13e7c6='elementEnd'==_0x5b24f6['type']?_0x309dac['createPositionAt'](_0x5b24f6['item'],'end'):_0x309dac['createPositionBefore'](_0x5b24f6['item']);return _0x309dac['createPositionFromPath'](_0x38d1fb,_0x13e7c6['path'],_0x13e7c6['stickiness']);}function J(_0x2643ac,_0x4db6ca,_0x4a8e50){const _0x52dfbb='elementStart'==_0x2643ac['type']?_0x4a8e50['createPositionAt'](_0x2643ac['item'],0x0):_0x4a8e50['createPositionAfter'](_0x2643ac['item']);return _0x4a8e50['createPositionFromPath'](_0x4db6ca,_0x52dfbb['path'],_0x52dfbb['stickiness']);}class ns extends _0x528dcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31ef8c,_0x56b5aa){super(_0x31ef8c),this['focusTracker']=new _0xb27f23(),this['keystrokes']=new _0x2f98cd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x56b5aa),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'](),_0x4fb8d0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x467afb=_0x10e4d5=>_0x10e4d5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x467afb),this['keystrokes']['set']('arrowleft',_0x467afb),this['keystrokes']['set']('arrowup',_0x467afb),this['keystrokes']['set']('arrowdown',_0x467afb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x16b312){this['revisionNameInputView']['fieldView']['element']['value']=_0x16b312['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4accaa){const _0x488db0=new nt(this['locale'],_0x554978),_0x3d3771=_0x488db0['fieldView'];_0x3d3771['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2feb44=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4accaa&&(_0x2feb44+='\x20('+m(this['locale'],'optional')+')'),(_0x488db0['label']=_0x2feb44,_0x3d3771['on']('input',()=>{this['revisionNameInputValue']=_0x3d3771['element']['value']['trim']();}),_0x488db0);}}class u extends _0x2fef22{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x397ad1=this['editor'],_0x3b46c7=_0x397ad1['plugins']['get']('RevisionTracker');_0x397ad1['ui']['componentFactory']['add']('revisionHistory',_0x5852e6=>{const _0x451d7b=_0x3dbdae(_0x5852e6),_0xe5678d=_0x451d7b['panelView']['children'],_0x45c9e8=new te(_0x5852e6),_0x4c3d0f=new _0x1901fe(_0x5852e6),_0x301b29=new _0x4fe6e(_0x5852e6),_0x15b4d4=new _0x1901fe(_0x5852e6),_0x4c5d5f=new _0x4fe6e(_0x5852e6);return _0x451d7b['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x3b46c7,'isEnabled',_0x397ad1,'isReadOnly',(_0x2722ca,_0x3f2ffa,_0x29e546)=>_0x2722ca&&_0x3f2ffa&&!_0x29e546),_0x451d7b['buttonView']['set']({'icon':_0x34d699['history'],'label':m(_0x5852e6,'Revision\x20history'),'tooltip':!0x0}),_0x301b29['set']({'label':m(_0x5852e6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x301b29['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x3b46c7,'isEnabled',_0x397ad1,'isReadOnly',(_0xf8d9e4,_0x47c56b,_0x365053)=>_0xf8d9e4&&_0x47c56b&&!_0x365053),_0x301b29['on']('execute',()=>this['_showDialog']()),_0x4c5d5f['set']({'label':m(_0x5852e6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4c5d5f['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x397ad1,'isReadOnly',(_0xf7b827,_0x3cd54b)=>_0xf7b827&&!_0x3cd54b),_0x4c5d5f['on']('execute',()=>{_0x397ad1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x451d7b['isOpen']=!0x1,_0x397ad1['editing']['view']['focus']();}),_0x4c3d0f['children']['add'](_0x301b29),_0x15b4d4['children']['add'](_0x4c5d5f),_0x45c9e8['role']='menu',_0x45c9e8['items']['addMany']([_0x4c3d0f,_0x15b4d4]),_0xe5678d['add'](_0x45c9e8),_0x451d7b;}),_0x397ad1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2cb96b=this['editor'],_0x435488=_0x2cb96b['locale'],_0x317a8d=new _0x3d86ff(_0x435488),_0x4929e5=new _0x13c692(_0x435488);_0x317a8d['buttonView']['set']({'icon':_0x34d699['history'],'label':m(_0x435488,'Revision\x20history')});const _0x4b11af=new _0x2afb6c(_0x435488,_0x317a8d),_0x5c51ed=new _0x537475(_0x435488);_0x5c51ed['set']({'label':m(_0x435488,'Save\x20current\x20revision')}),_0x5c51ed['delegate']('execute')['to'](_0x317a8d),_0x5c51ed['on']('execute',()=>{this['_showDialog']();}),_0x4b11af['children']['add'](_0x5c51ed),_0x4929e5['items']['add'](_0x4b11af);const _0x1194ad=new _0x2afb6c(_0x435488,_0x317a8d),_0x25e108=new _0x537475(_0x435488);return _0x25e108['set']({'label':m(_0x435488,'Open\x20revision\x20history')}),_0x25e108['delegate']('execute')['to'](_0x317a8d),_0x25e108['on']('execute',()=>{_0x2cb96b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1194ad['children']['add'](_0x25e108),_0x4929e5['items']['add'](_0x1194ad),_0x317a8d['panelView']['children']['add'](_0x4929e5),_0x317a8d;}['_showDialog'](){const _0x5de9be=this['editor'],_0x2e2a2e=_0x5de9be['locale'],_0x43a2d2=_0x5de9be['plugins']['get']('Dialog'),_0x5f27d4=_0x5de9be['plugins']['get']('RevisionTracker');function _0x5045e7(_0x48432c){_0x5de9be['config']['get']('revisionHistory.requireRevisionName')&&''===_0x48432c['revisionName']?_0x48432c['revisionNameInputView']['errorText']=m(_0x2e2a2e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5de9be['plugins']['get'](l)['saveRevision']({'name':_0x48432c['revisionName']}),_0x43a2d2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5045e7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x43a2d2['show']({'id':'revisionSave','title':m(_0x2e2a2e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5de9be['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x43a2d2['hide']()},{'label':m(_0x5de9be['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x57d916){_0x57d916['bind']('isEnabled')['to'](_0x5f27d4,'isReady',_0x5f27d4,'isEnabled',_0x5de9be,'isReadOnly',(_0x5925d8,_0xa6e0a1,_0x984873)=>_0x5925d8&&_0xa6e0a1&&!_0x984873);},'onExecute':()=>_0x5045e7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1a0c02=this['editor'],_0x4d9160=_0x1a0c02['locale'];this['_saveRevisionFormView']=new ns(_0x4d9160,_0x1a0c02['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x528dcf{['changeId'];['_model'];constructor(_0x4a1085,_0x3c920c){super(_0x4a1085),this['_model']=_0x3c920c,this['changeId']=_0x3c920c['id'];const _0x52d318=this['bindTemplate'],_0x5d472e=m(_0x4a1085,_0x3c920c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3c920c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3c920c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52d318['to']('type',_0x3bcd11=>'ck-revision-change__'+_0x3bcd11)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5d472e}]},{'text':'\x20'+_0x3c920c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x12fb33(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x565808){super(),this['id']=_0x565808['id']||_0x32a6fe(),this['author']=_0x565808['author'],this['type']=_0x565808['type'],this['data']=_0x565808['data']||{},this['rootName']=_0x565808['rootName'],this['set']('createdAt',_0x565808['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2f2aac,_0x74f5f2){this['newRevisionId']=_0x2f2aac,this['oldRevisionId']=_0x74f5f2,this['changes']=new _0x23661b();}['_setChanges'](_0x4bd5dc){for(const _0x994878 of _0x4bd5dc)this['changes']['add'](_0x994878);}}const Y={'c':_0x49693b,'a':_0x2f3d25,'e':_0x25f8d8,'r':_0x534049,'u':_0x113697};class d extends _0x2fef22{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x358dd5,_0x63332b,j];}constructor(_0x34e44d){super(_0x34e44d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x163478,_0x2f5220,_0x304cd5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3d3c2c=>{for(const _0x33a945 of this['editor']['editing']['view']['document']['roots'])_0x304cd5?_0x3d3c2c['removeClass']('ck-editor__editable__overlay',_0x33a945):_0x3d3c2c['addClass']('ck-editor__editable__overlay',_0x33a945);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2a0f25=>null!==_0x2a0f25),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3ce9d8,_0x115b91,_0x164583)=>_0x3ce9d8&&_0x164583?_0x115b91['changes']['getIndex'](_0x164583):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x23c38e,_0x4a01b6)=>_0x23c38e?_0x4a01b6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x63332b);}['init'](){const _0x4e666d=this['editor'],_0xb35628=new yt(_0x4e666d,{'direction':'backward'}),_0x9528d6=new yt(_0x4e666d,{'direction':'forward'});(_0x4e666d['commands']['add']('showPreviousChange',_0xb35628),_0x4e666d['commands']['add']('showNextChange',_0x9528d6),_0x4e666d['commands']['add']('restoreRevision',new _t(_0x4e666d)),this['on']('change:numberOfChanges',()=>{_0xb35628['refresh'](),_0x9528d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4e666d['enableReadOnlyMode']('revision-viewer'),_0x4e666d['plugins']['has']('WidgetToolbarRepository'))&&_0x4e666d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x58dace){await this['loadRevisionData'](_0x58dace);const _0x337ac7={};for(const _0x53a24e in _0x58dace['diffData']){if(_0x58dace['diffData'][_0x53a24e]['attachChange']&&!_0x58dace['diffData'][_0x53a24e]['attachChange']['isAttached'])continue;const _0x4f02bb=this['_removeRevisionMarkers'](JSON['parse'](_0x58dace['diffData'][_0x53a24e]['insertions'])),_0x3afe41=this['editor']['editing']['view']['document'],_0x145e81=new _0x6101a3(_0x3afe41,_0x4f02bb['map'](_0x57635c=>this['_getViewObj'](_0x57635c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x337ac7[_0x53a24e]=this['editor']['data']['processor']['toData'](_0x145e81),this['editor']['data']['processor']['useFillerType']('default');}return _0x337ac7;}async['getRevisionRootsAttributes'](_0x216f19){await this['loadRevisionData'](_0x216f19);const _0x41da84={};for(const _0x530679 in _0x216f19['diffData'])_0x216f19['diffData'][_0x530679]['attachChange']&&!_0x216f19['diffData'][_0x530679]['attachChange']['isAttached']||(_0x41da84[_0x530679]=_0x216f19['diffData'][_0x530679]['attributesAfter']||{});return _0x41da84;}['_removeRevisionMarkers'](_0x46538f){return(_0x46538f=_0x46538f['filter'](_0x4a2144=>!_0x4a2144['name']||'revision-start'!==_0x4a2144['name']&&'revision-end'!==_0x4a2144['name']))['forEach'](_0x121dbd=>{'string'!=typeof _0x121dbd&&(_0x121dbd['children']=this['_removeRevisionMarkers'](_0x121dbd['children']),_0x121dbd['attributes']=_0x121dbd['attributes']['filter'](_0xc41118=>!_0xc41118[0x0]['startsWith']('data-revision-')));}),_0x46538f;}async['compare'](_0x1d416f,_0x5f3561,_0x58bbff=!0x1){if(!this['isEnabled'])return;const _0x425685=this['diff'],_0x1e76e1=this['repository'],_0x95293f='string'==typeof _0x1d416f?_0x1e76e1['getRevision'](_0x1d416f):_0x1d416f,_0x55f6c1='string'==typeof _0x5f3561?_0x1e76e1['getRevision'](_0x5f3561):_0x5f3561,_0x6ae1a4=_0x95293f['id'],_0x336943=_0x55f6c1?_0x55f6c1['id']:null;if(!_0x58bbff&&this['diff']&&this['diff']['newRevisionId']===_0x6ae1a4&&this['diff']['oldRevisionId']===_0x336943)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x6ae1a4,_0x336943);const _0x2e8a40=this['_getRevisionsRange'](_0x95293f,_0x55f6c1,!0x0)['map'](_0x5b4f4c=>this['loadRevisionData'](_0x5b4f4c));return _0x2e8a40['push'](new Promise(_0x1dcca8=>{setTimeout(_0x1dcca8,0x14);})),Promise['all'](_0x2e8a40)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xdd865b=this['_getDiff'](_0x6ae1a4,_0x336943);for(const _0x10cd2e of _0xdd865b['changes'])this['_changeIdToChange']['set'](_0x10cd2e['id'],_0x10cd2e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x395a19=>{for(const _0x7f3cd5 of this['editor']['model']['document']['getRootNames']())_0x395a19['detachRoot'](_0x7f3cd5);for(const _0x377d4b of Object['keys'](_0xdd865b['model'])){const _0x64d489=_0x395a19['addRoot'](_0x377d4b);for(const _0x1118da of Object['keys'](_0xdd865b['attributes'][_0x377d4b]))_0x395a19['setAttribute'](_0x1118da,_0xdd865b['attributes'][_0x377d4b][_0x1118da],_0x64d489);_0x395a19['insert'](_0xdd865b['model'][_0x377d4b],_0x64d489,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xdd865b['changes'])),this['isReady']=!0x0;})['catch'](_0x4ccaef=>{console['error'](_0x4ccaef),this['_cleanUp'](),_0x425685&&(this['diff']=_0x425685),this['isReady']=!0x0;});}['addRevisionData'](_0x397f82,_0x334a54){const _0x686e10=this['repository']['createRevision'](_0x397f82);return _0x686e10['on']('_update',(_0x235e4c,_0xf85c86,_0x349f3f)=>_0x334a54(_0xf85c86,_0x349f3f,_0x686e10)),this['repository']['addRevision'](_0x686e10),_0x686e10;}['loadRevisionData'](_0x2ec58d){if(!_0x2ec58d||_0x2ec58d['diffData'])return Promise['resolve']();{const _0x39aa29=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x39aa29,'revisionId':_0x2ec58d['id']})['then'](_0x5a42dc=>{_0x2ec58d['_update']({'diffData':_0x5a42dc['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x209207=>{for(const _0x419507 of this['editor']['model']['document']['getRootNames']())_0x209207['detachRoot'](_0x419507);});}['_sortAndFilterDiffChanges'](_0x54cf5a){const _0x46e1fb=[],_0x23b005=new Map();for(const _0x11c59f of this['editor']['model']['document']['getRootNames']()){const _0x2bc8df=this['editor']['editing']['view']['getDomRoot'](_0x11c59f);if(!_0x2bc8df)continue;const _0x3aefd4=_0x2bc8df['getClientRects']()['item'](0x0);_0x3aefd4&&(_0x46e1fb['push'](_0x11c59f),_0x23b005['set'](_0x11c59f,_0x3aefd4));}return _0x46e1fb['sort']((_0x234871,_0x203d3b)=>{const _0x53b6fa=_0x23b005['get'](_0x234871),_0x1880fe=_0x23b005['get'](_0x203d3b);return _0x53b6fa['y']-_0x1880fe['y']||_0x53b6fa['x']-_0x1880fe['x'];}),(_0x54cf5a=_0x54cf5a['filter'](_0x51f47f=>_0x46e1fb['includes'](_0x51f47f['rootName'])))['sort']((_0x44c63c,_0x5befd6)=>_0x46e1fb['indexOf'](_0x44c63c['rootName'])-_0x46e1fb['indexOf'](_0x5befd6['rootName'])),_0x54cf5a;}['_makeTape'](_0x58debc){const _0x2861e1=Array['from'](_0x58debc['markers'])['filter'](([_0xdef413,_0x585130])=>_0xdef413['startsWith']('revision:')&&!_0x585130['isCollapsed']),_0x20c12b=Array['from'](this['editor']['model']['createRangeIn'](_0x58debc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2861e1['length'])for(const _0x1fcc7a of _0x20c12b){const [_0x5d9641,_0x177129]=_0x2861e1[0x0],[,_0x42808f,_0x21e298]=_0x5d9641['split'](':');if(_0x177129['end']['isEqual'](_0x1fcc7a['nextPosition'])&&_0x2861e1['shift'](),(_0x1fcc7a['previousPosition']['isEqual'](_0x177129['start'])||_0x1fcc7a['previousPosition']['isAfter'](_0x177129['start']))&&('insertion'==_0x42808f?_0x1fcc7a['isAdded']={'userId':_0x21e298}:'deletion'==_0x42808f&&(_0x1fcc7a['isRemoved']={'userId':_0x21e298})),0x0==_0x2861e1['length'])break;}return _0x20c12b;}['_refreshStartEndIndex'](_0x2c3043){const _0x55bc6f=new Map();for(let _0x502916=0x0;_0x502916<_0x2c3043['length'];_0x502916++)'text'===_0x2c3043[_0x502916]['type']?(_0x2c3043[_0x502916]['item']['startIndex']=_0x502916,_0x2c3043[_0x502916]['item']['endIndex']=_0x502916):('elementStart'===_0x2c3043[_0x502916]['type']?_0x2c3043[_0x502916]['item']['startIndex']=_0x502916:'elementEnd'===_0x2c3043[_0x502916]['type']&&(_0x2c3043[_0x502916]['item']['endIndex']=_0x502916),_0x55bc6f['set'](_0x2c3043[_0x502916]['id'],_0x502916));for(const _0x2037b8 of _0x55bc6f['values']())'elementStart'===_0x2c3043[_0x2037b8]['type']?_0x2c3043[_0x2037b8]['item']['endIndex']=_0x55bc6f['get'](_0x2c3043[_0x2037b8]['pairId']):'elementEnd'===_0x2c3043[_0x2037b8]['type']&&(_0x2c3043[_0x2037b8]['item']['startIndex']=_0x55bc6f['get'](_0x2c3043[_0x2037b8]['pairId']));}['_processTape'](_0x2ee9bb){for(let _0x4eed7e=0x0;_0x4eed7e<_0x2ee9bb['length'];_0x4eed7e++){if('elementStart'===_0x2ee9bb[_0x4eed7e]['type'])_0x2ee9bb[_0x4eed7e]['item']['startIndex']=_0x4eed7e;else{if('elementEnd'===_0x2ee9bb[_0x4eed7e]['type']){_0x2ee9bb[_0x4eed7e]['item']['endIndex']=_0x4eed7e;const _0x17f42a=_0x2ee9bb[_0x4eed7e]['item']['startIndex'];_0x2ee9bb[_0x17f42a]['pairId']=_0x2ee9bb[_0x4eed7e]['id'],_0x2ee9bb[_0x4eed7e]['pairId']=_0x2ee9bb[_0x17f42a]['id'];}else _0x2ee9bb[_0x4eed7e]['item']['startIndex']=_0x4eed7e,_0x2ee9bb[_0x4eed7e]['item']['endIndex']=_0x4eed7e,_0x2ee9bb[_0x4eed7e]['pairId']=null;}_0x2ee9bb[_0x4eed7e]['markersStart']||(_0x2ee9bb[_0x4eed7e]['markersStart']=[],_0x2ee9bb[_0x4eed7e]['markersEnd']=[]);}}['_markInsertions'](_0x265deb,_0x325f0f){const _0x4e5215=_0x265deb['filter'](_0x36b13d=>!_0x36b13d['isAdded']);for(let _0x4740c8=0x0;_0x4740c8<_0x325f0f['length'];_0x4740c8++)_0x325f0f[_0x4740c8]['isAdded']&&(_0x4e5215[_0x4740c8]['isAdded']=_0x325f0f[_0x4740c8]['isAdded']);}['_makeModelFromViewString'](_0x1c612f){const _0x44eb71=JSON['parse'](_0x1c612f),_0x4b09a7=this['editor']['editing']['view']['document'],_0x11e0f5=new _0x6101a3(_0x4b09a7,_0x44eb71['map'](_0x6bb1f0=>this['_getViewObj'](_0x6bb1f0)));return this['editor']['data']['toModel'](_0x11e0f5);}['_getViewObj'](_0x109fda){const _0x312d18=this['editor']['editing']['view']['document'];if('string'==typeof _0x109fda)return new _0x4c4e57(_0x312d18,_0x109fda);{const _0x56123f=_0x109fda['children']['map'](_0x46344e=>this['_getViewObj'](_0x46344e));return new(Y[_0x109fda['type']]||_0x293663)(_0x312d18,_0x109fda['name'],_0x109fda['attributes'],_0x56123f);}}['_getDiff'](_0x4958d2,_0xa42dd1=null){const _0x9d1417=this['repository']['getRevision'](_0x4958d2),_0x1156c3=_0xa42dd1?this['repository']['getRevision'](_0xa42dd1):null,_0xcd389=this['_getRevisionsRange'](_0x9d1417,_0x1156c3),_0x1e0957=_0xcd389[_0xcd389['length']-0x1],_0xa2be27=new Map(),_0x4c6680={'model':{},'attributes':{},'changes':[]},_0x314f35=new Set(),_0x197d28=new Map();for(let _0x46e555=_0xcd389['length']-0x1;_0x46e555>=0x0;_0x46e555--){const _0x2dcc9b=_0xcd389[_0x46e555];for(const _0x28aa40 of Object['keys'](_0x2dcc9b['diffData']))if(_0x2dcc9b['diffData'][_0x28aa40]['attachChange']){const _0x405f1a=_0x2dcc9b['diffData'][_0x28aa40]['attachChange'];_0x405f1a['isAttached']?(_0x314f35['add'](_0x28aa40),_0x197d28['has'](_0x28aa40)&&_0x197d28['get'](_0x28aa40)['userId']==_0x405f1a['userId']?_0x197d28['delete'](_0x28aa40):_0x197d28['set'](_0x28aa40,_0x405f1a)):_0x197d28['has'](_0x28aa40)?(_0x314f35['delete'](_0x28aa40),_0x197d28['delete'](_0x28aa40)):(_0x314f35['add'](_0x28aa40),_0x197d28['set'](_0x28aa40,_0x405f1a));}else _0x314f35['add'](_0x28aa40);}for(const _0x159bfb of _0x314f35){const _0x1247e0=_0x197d28['has'](_0x159bfb)&&!_0x197d28['get'](_0x159bfb)['isAttached'];let _0x235e04=_0x1247e0?_0xcd389['length']-0x1:0x0;const _0x39350c=_0x1247e0?-0x1:0x1;for(;_0xcd389[_0x235e04];){const _0x431283=_0xcd389[_0x235e04];if(_0x431283['diffData'][_0x159bfb]){const _0xb8f4d8=_0x1247e0?_0x431283['diffData'][_0x159bfb]['attributesBefore']:_0x431283['diffData'][_0x159bfb]['attributesAfter'];_0x4c6680['attributes'][_0x159bfb]=_0xb8f4d8?_0x59c379(_0xb8f4d8):{};break;}_0x235e04+=_0x39350c;}}for(const _0x597585 of _0xcd389){_0x597585['model']={};for(const _0x11d21a of _0x597585['authors'])_0xa2be27['set'](_0x11d21a['id'],_0x11d21a);for(const _0x35402d of _0x314f35){const _0x58364a=_0x597585['diffData'][_0x35402d]?_0x597585['diffData'][_0x35402d]['insertions']:'[]',_0x895787=_0x597585['diffData'][_0x35402d]?_0x597585['diffData'][_0x35402d]['deletions']:'[]';_0x597585['model'][_0x35402d]={'insertions':this['_makeModelFromViewString'](_0x58364a),'deletions':this['_makeModelFromViewString'](_0x895787)};}}for(const _0x4626a6 of _0x314f35){let _0x7777fa=null,_0x5474fc=0x0;const _0x223c5b=new Map(Array['from'](_0x9d1417['model'][_0x4626a6]['insertions']['markers'])['filter'](([_0x590101])=>!_0x590101['startsWith']('revision:')));let _0x40b7be=0x0;for(const _0x1ac827 of _0xcd389){const _0x35de3a=this['_makeTape'](_0x1ac827['model'][_0x4626a6]['insertions']);_0x1ac827==_0x9d1417?(_0x7777fa=_0x35de3a,_0x5474fc=_0x7777fa['length'],_0x7777fa['forEach'](_0x2d97bd=>{_0x2d97bd['id']=_0x40b7be++;}),this['_processTape'](_0x7777fa)):this['_markInsertions'](_0x7777fa,_0x35de3a);const _0x18ec24=_0x7777fa['filter'](_0x3c3472=>!_0x3c3472['isAdded'])['map'](_0x4691b8=>_0x4691b8['id']);let _0xdacb7=0x0;const _0x5db8af=this['_makeTape'](_0x1ac827['model'][_0x4626a6]['deletions']);_0x5db8af['forEach'](_0x5c7d2d=>{_0x5c7d2d['isRemoved']?_0x5c7d2d['id']=_0x5474fc++:_0x5c7d2d['id']=_0x18ec24[_0xdacb7++];}),this['_processTape'](_0x5db8af),this['_setDistance'](_0x7777fa,'isAdded'),this['_setDistance'](_0x5db8af,'isRemoved'),_0x1ac827==_0x9d1417&&this['_markMarkers'](_0x7777fa,_0x223c5b),_0x7777fa=this['_joinTapes'](_0x7777fa,_0x5db8af),this['_refreshStartEndIndex'](_0x7777fa),this['_setDistance'](_0x7777fa,'isRemoved');}_0x7777fa=_0x7777fa['filter'](_0x436a97=>!(_0x436a97['isAdded']&&_0x436a97['isRemoved']));const _0x4f3b0d=new Map(_0x1e0957['model'][_0x4626a6]['deletions']['markers']),_0x4e5d3f=new Set(_0x223c5b['keys']());for(const _0x1e6d8c of _0x4f3b0d['keys']())_0x4e5d3f['delete'](_0x1e6d8c);this['_markSuggestions'](_0x7777fa,_0x4e5d3f),this['_fixObsoleteTags'](_0x7777fa),_0x7777fa=this['_removeMissingPairs'](_0x7777fa),_0x7777fa=this['_markMismatchedRemovedTags'](_0x7777fa),_0x7777fa=this['_removeUnsupportedChanges'](_0x7777fa);const {root:_0x3636ae,changes:_0x29aecb}=this['_makeModelFromTape'](_0x7777fa,_0xa2be27,_0x4626a6);_0x4c6680['model'][_0x4626a6]=_0x3636ae;const _0x37a463=_0x197d28['get'](_0x4626a6);if(_0x37a463){const _0xfdaea5=_0xa2be27['get'](_0x37a463['userId']),_0x4b2c9f=new r({'author':_0xfdaea5,'type':_0x37a463['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4626a6});_0x29aecb['unshift'](_0x4b2c9f),_0x4c6680['attributes'][_0x4626a6]['revisionHistoryAttachChange']=_0x4b2c9f['id'];}_0x4c6680['changes']=_0x4c6680['changes']['concat'](_0x29aecb);}return _0x4c6680;}['_markMarkers'](_0x30f8bb,_0x220175){for(let _0x3e35c1=0x0;_0x3e35c1<_0x30f8bb['length'];_0x3e35c1++)for(const [_0x281c9e,_0x552905]of _0x220175)_0x552905['start']['isEqual'](_0x30f8bb[_0x3e35c1]['previousPosition'])&&_0x30f8bb[_0x3e35c1]['markersStart']['push'](_0x281c9e),_0x552905['end']['isEqual'](_0x30f8bb[_0x3e35c1]['nextPosition'])&&_0x30f8bb[_0x3e35c1]['markersEnd']['push'](_0x281c9e);}['_joinTapes'](_0x18a48c,_0xf9530c){let _0x45c6fd=[],_0x344531=0x0,_0x15046c=0x0;for(;_0x344531<_0x18a48c['length']||_0x15046c<_0xf9530c['length'];){const _0x44c629=_0x18a48c[_0x344531]||{},_0x5130d0=_0xf9530c[_0x15046c]||{};if(_0x44c629['id']==_0x5130d0['id'])_0x344531++,_0x15046c++,_0x45c6fd['push'](_0x44c629);else{if(_0x5130d0['isRemoved']&&_0x44c629['isAdded']){const {commonTape:_0x24677a,iEnd:_0x280327,jEnd:_0x27bf3c}=this['_threeWayMerge'](_0x18a48c,_0x344531,_0xf9530c,_0x15046c);_0x45c6fd=_0x45c6fd['concat'](_0x24677a),_0x344531=_0x280327,_0x15046c=_0x27bf3c;}else _0x5130d0['isRemoved']?(_0x15046c++,_0x45c6fd['push'](_0x5130d0)):(_0x344531++,_0x45c6fd['push'](_0x44c629));}}return _0x45c6fd;}['_markSuggestions'](_0x15fcb2,_0x5da078){const _0x4d3a78=[];for(let _0x55c58a=0x0;_0x55c58a<_0x15fcb2['length'];_0x55c58a++){for(let _0x7d6a31=0x0;_0x7d6a31<_0x15fcb2[_0x55c58a]['markersStart']['length'];_0x7d6a31++){const _0x44697e=_0x15fcb2[_0x55c58a]['markersStart'][_0x7d6a31];if(!_0x5da078['has'](_0x44697e))continue;const {group:_0x5542a7,type:_0x46be09,authorId:_0x42a32b}=_0x13a77c(_0x44697e);'revision-suggestion'!=_0x5542a7||'insertion'!=_0x46be09&&'deletion'!=_0x46be09||(_0x4d3a78['unshift']({'type':_0x46be09,'name':_0x44697e,'userId':_0x42a32b}),_0x15fcb2[_0x55c58a]['markersStart']['splice'](_0x7d6a31,0x1),_0x7d6a31--);}_0x4ffc38(_0x15fcb2[_0x55c58a]);for(let _0x4d2a4e=0x0;_0x4d2a4e<_0x15fcb2[_0x55c58a]['markersEnd']['length'];_0x4d2a4e++){const _0x2cd81d=_0x15fcb2[_0x55c58a]['markersEnd'][_0x4d2a4e];if(!_0x5da078['has'](_0x2cd81d))continue;const {group:_0xafb5e4,type:_0x6fb968}=_0x13a77c(_0x2cd81d);if('revision-suggestion'!=_0xafb5e4||'insertion'!=_0x6fb968&&'deletion'!=_0x6fb968)continue;_0x15fcb2[_0x55c58a]['markersEnd']['splice'](_0x4d2a4e,0x1),_0x4d2a4e--;const _0x324a30=_0x4d3a78['findIndex'](_0x315f64=>_0x315f64['name']==_0x2cd81d);_0x324a30>-0x1&&_0x4d3a78['splice'](_0x324a30,0x1);}}function _0x13a77c(_0x34e93b){const _0x1045bc=_0x34e93b['split'](':');return{'group':_0x1045bc[0x0],'type':_0x1045bc[0x1],'subType':_0x1045bc['length']>=0x5?_0x1045bc[0x2]:null,'id':_0x1045bc['length']<0x5?_0x1045bc[0x2]:_0x1045bc[0x3],'authorId':_0x1045bc['length']<0x5?_0x1045bc[0x3]:_0x1045bc[0x4],'markerCount':0x6==_0x1045bc['length']?_0x1045bc[0x5]:null};}function _0x4ffc38(_0x2688eb){for(let _0x519554=0x0;_0x519554<_0x4d3a78['length'];_0x519554++){if(_0x2688eb['isAdded']&&'insertion'==_0x4d3a78[_0x519554]['type'])return _0x2688eb['isAddSuggestion']=_0x4d3a78[_0x519554],void delete _0x2688eb['isAdded'];if(!_0x2688eb['isAdded']&&!_0x2688eb['isRemoved']&&'deletion'==_0x4d3a78[_0x519554]['type'])return void(_0x2688eb['isRemoveSuggestion']=_0x4d3a78[_0x519554]);}}}['_setDistance'](_0x4402a0,_0x551bc9){let _0x1840af=0x0,_0x4c37dc=!0x1;const _0x5bb6fa=new Map();for(const _0x306eb8 of _0x4402a0)_0x306eb8[_0x551bc9]?_0x4c37dc&&(_0x1840af++,_0x4c37dc=!0x1):(_0x1840af++,_0x4c37dc=!0x0),_0x5bb6fa['set'](_0x306eb8['id'],_0x1840af);for(let _0x56ca72=0x0;_0x56ca72<_0x4402a0['length'];_0x56ca72++){if('isRemoved'==_0x551bc9&&_0x4402a0[_0x56ca72]['isAdded']||'isAdded'==_0x551bc9&&_0x4402a0[_0x56ca72]['isRemoved'])continue;if('text'==_0x4402a0[_0x56ca72]['type']){_0x4402a0[_0x56ca72]['distance']=0x0;continue;}const _0xc2d667=_0x5bb6fa['get'](_0x4402a0[_0x56ca72]['pairId']),_0x14f93a=_0x5bb6fa['get'](_0x4402a0[_0x56ca72]['id']);_0x4402a0[_0x56ca72]['distance']=_0xc2d667-_0x14f93a;}}['_getRevisionsRange'](_0x285a24,_0x12bff4,_0x4b7c50=!0x1){const _0x2616a9=[];let _0x3c986d=this['repository']['getIndex'](_0x285a24),_0xeb408c=this['repository']['getIndex'](_0x12bff4);for(-0x1==_0xeb408c&&(_0xeb408c=this['repository']['_revisions']['length'],_0x4b7c50=!0x1);_0x3c986d<_0xeb408c;)_0x2616a9['push'](this['repository']['getRevision'](_0x3c986d)),_0x3c986d++;return _0x4b7c50&&_0x2616a9['push'](this['repository']['getRevision'](_0x3c986d)),_0x2616a9;}['_threeWayMerge'](_0x58b54e,_0xcda3e2,_0x1d5bbc,_0x266353){const _0x7e9e20=this['editor']['model']['schema'];let _0x230e8e=_0xcda3e2;for(;_0x58b54e[_0x230e8e]&&_0x58b54e[_0x230e8e]['isAdded'];)_0x230e8e++;let _0x2cd7e0=_0x266353;for(;_0x1d5bbc[_0x2cd7e0]&&_0x1d5bbc[_0x2cd7e0]['isRemoved'];)_0x2cd7e0++;_0xb8d056(_0x58b54e,_0xcda3e2,_0x230e8e),_0xb8d056(_0x1d5bbc,_0x266353,_0x2cd7e0);const _0x7691ff=_0x1d5bbc['slice'](_0x266353,_0x2cd7e0)['concat'](_0x58b54e['slice'](_0xcda3e2,_0x230e8e));return _0x7691ff['sort']((_0x572c27,_0x43cead)=>_0x572c27['side']!=_0x43cead['side']?_0x572c27['side']-_0x43cead['side']:_0x572c27['level']!=_0x43cead['level']?_0x572c27['level']-_0x43cead['level']:_0x572c27['distance']!=_0x43cead['distance']?_0x43cead['distance']-_0x572c27['distance']:!!_0x572c27['isAdded']!=!!_0x43cead['isAdded']?-0x1==_0x572c27['side']||0x0==_0x572c27['side']?_0x572c27['isAdded']?-0x1:0x1:_0x572c27['isAdded']?0x1:-0x1:_0x572c27['index']-_0x43cead['index']),{'commonTape':_0x7691ff,'iEnd':_0x230e8e,'jEnd':_0x2cd7e0};function _0xb8d056(_0x38a9c8,_0x229bf6,_0x1ce475){let _0x4c463e=-0x1,_0x575da6=Number['POSITIVE_INFINITY'],_0x3ce0e8=!0x0;for(let _0x1ea3b9=_0x229bf6;_0x1ea3b9<_0x1ce475;_0x1ea3b9++)if(_0x7e9e20['isInline'](_0x38a9c8[_0x1ea3b9]['item'])||(_0x3ce0e8=!0x1),_0x38a9c8[_0x1ea3b9]['item']['startIndex']<_0x229bf6&&(_0x4c463e=_0x1ea3b9),_0x38a9c8[_0x1ea3b9]['item']['endIndex']>=_0x1ce475){_0x575da6=_0x1ea3b9;break;}_0x3ce0e8&&(_0x4c463e=_0x1ce475-0x1);for(let _0x15fe43=_0x229bf6;_0x15fe43<_0x1ce475;_0x15fe43++)_0x38a9c8[_0x15fe43]['side']=_0x15fe43<=_0x4c463e?-0x1:_0x15fe43<_0x575da6?0x0:0x1,_0x38a9c8[_0x15fe43]['index']=_0x15fe43;let _0x3feddf=0x0;for(let _0x3d1e4d=_0x229bf6;_0x3d1e4d<=_0x4c463e;_0x3d1e4d++)0x0==_0x38a9c8[_0x3d1e4d]['distance']?_0x38a9c8[_0x3d1e4d]['level']=_0x3feddf:(_0x3feddf++,_0x38a9c8[_0x3d1e4d]['level']=_0x3feddf,_0x3feddf++);for(let _0x14de90=_0x229bf6;_0x14de90<_0x1ce475;_0x14de90++)0x0==_0x38a9c8[_0x14de90]['side']&&(_0x38a9c8[_0x14de90]['level']=_0x3feddf);_0x3feddf=0x0;for(let _0x1055ce=_0x1ce475-0x1;_0x1055ce>=_0x575da6;_0x1055ce--)0x0==_0x38a9c8[_0x1055ce]['distance']?_0x38a9c8[_0x1055ce]['level']=_0x3feddf:(_0x3feddf--,_0x38a9c8[_0x1055ce]['level']=_0x3feddf,_0x3feddf--);}}['_fixObsoleteTags'](_0x554905){const _0x3ca903=new Map(),_0x26266c=this['editor']['model']['schema'];for(let _0x546546=0x1;_0x546546<_0x554905['length'];_0x546546++){let _0x783b3d,_0x1b975b,_0x24f0d2;const _0x54b43c=_0x554905[_0x546546],_0x1c9d04=_0x554905[_0x546546-0x1];if('text'==_0x54b43c['type'])continue;if(_0x54b43c['type']!=_0x1c9d04['type'])continue;if(!_0x26266c['isBlock'](_0x1c9d04['item'])||_0x26266c['isLimit'](_0x1c9d04['item']))continue;if(!_0x26266c['isBlock'](_0x54b43c['item'])||_0x26266c['isLimit'](_0x54b43c['item']))continue;if((_0x554905[_0x546546]['isAdded']||_0x554905[_0x546546]['isAddSuggestion'])&&_0x554905[_0x546546-0x1]['isRemoved'])_0x783b3d=_0x554905[_0x546546],_0x1b975b=_0x554905[_0x546546-0x1],_0x24f0d2=_0x546546-0x1;else{if(!_0x554905[_0x546546]['isRemoved']||!_0x554905[_0x546546-0x1]['isAdded']&&!_0x554905[_0x546546-0x1]['isAddSuggestion'])continue;_0x783b3d=_0x554905[_0x546546-0x1],_0x1b975b=_0x554905[_0x546546],_0x24f0d2=_0x546546;}const _0x4f7db3=_0x783b3d['level']==_0x1b975b['level'],_0x3a5bdd=Math['abs'](_0x783b3d['level'])<Math['abs'](_0x1b975b['level'])&&0x0==_0x1b975b['distance'];(_0x4f7db3||_0x3a5bdd)&&(_0x3ca903['set'](_0x1b975b['id'],_0x783b3d['id']),_0x554905['splice'](_0x24f0d2,0x1),_0x546546--,_0x783b3d['isAdded']=!0x1);}for(let _0x38aa75=0x0;_0x38aa75<_0x554905['length'];_0x38aa75++)_0x3ca903['has'](_0x554905[_0x38aa75]['pairId'])&&(_0x554905[_0x38aa75]['pairId']=_0x3ca903['get'](_0x554905[_0x38aa75]['pairId']));}['_removeMissingPairs'](_0x50a59a){const _0x29d800=new Set(_0x50a59a['map'](_0x44bbc4=>_0x44bbc4['id']));for(let _0xb489a6=0x0;_0xb489a6<_0x50a59a['length'];_0xb489a6++)_0x29d800['has'](_0x50a59a[_0xb489a6]['pairId'])||0x0==_0x50a59a[_0xb489a6]['distance']||(_0x50a59a[_0xb489a6]['isIncorrect']=!0x0);return _0x50a59a['filter'](_0x45f0d9=>!_0x45f0d9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x30bc1b){const _0x1878cc=new Set();for(let _0x100e31=0x0;_0x100e31<_0x30bc1b['length'];_0x100e31++){if(_0x1878cc['has'](_0x30bc1b[_0x100e31]['id'])&&_0x30bc1b[_0x100e31]['isRemoved']&&(_0x30bc1b[_0x100e31]['isIncorrect']=!0x0),_0x30bc1b[_0x100e31]['isIncorrect'])continue;if(0x0==_0x30bc1b[_0x100e31]['distance'])continue;if('elementStart'!=_0x30bc1b[_0x100e31]['type'])continue;if(null==_0x30bc1b[_0x100e31]['pairId'])continue;let _0x2e1d41=_0x100e31+0x1,_0x577fe5=0x0;for(;_0x30bc1b[_0x2e1d41]['id']!=_0x30bc1b[_0x100e31]['pairId'];)'elementStart'==_0x30bc1b[_0x2e1d41]['type']?_0x577fe5++:'elementEnd'==_0x30bc1b[_0x2e1d41]['type']&&_0x577fe5--,_0x2e1d41++;if(0x0!=_0x577fe5){if(_0x30bc1b[_0x100e31]['isRemoved'])_0x30bc1b[_0x100e31]['isIncorrect']=!0x0;else{for(;_0x2e1d41!=_0x100e31;)_0x30bc1b[_0x2e1d41]['isRemoved']&&0x0!=_0x30bc1b[_0x2e1d41]['distance']&&(_0x30bc1b[_0x2e1d41]['isIncorrect']=!0x0,_0x1878cc['add'](_0x30bc1b[_0x2e1d41]['pairId'])),_0x2e1d41--;}}}return _0x30bc1b['filter'](_0x54249b=>!_0x54249b['isIncorrect']);}['_removeUnsupportedChanges'](_0x48a0fd){const _0x49a630=this['editor']['model']['schema'];for(let _0x3f33ff=0x0;_0x3f33ff<_0x48a0fd['length'];_0x3f33ff++){if(!(_0x48a0fd[_0x3f33ff]['isAdded']||_0x48a0fd[_0x3f33ff]['isAddSuggestion']||_0x48a0fd[_0x3f33ff]['isRemoved']||_0x48a0fd[_0x3f33ff]['isRemoveSuggestion']))continue;if(0x0==_0x48a0fd[_0x3f33ff]['distance'])continue;const _0xa25197=_0x48a0fd[_0x3f33ff]['item'];_0x49a630['isBlock'](_0xa25197)||_0x49a630['isLimit'](_0xa25197)||(_0x48a0fd[_0x3f33ff]['isAdded']&&delete _0x48a0fd[_0x3f33ff]['isAdded'],_0x48a0fd[_0x3f33ff]['isAddSuggestion']&&delete _0x48a0fd[_0x3f33ff]['isAddSuggestion'],_0x48a0fd[_0x3f33ff]['isRemoveSuggestion']&&delete _0x48a0fd[_0x3f33ff]['isRemoveSuggestion'],_0x48a0fd[_0x3f33ff]['isRemoved']&&(_0x48a0fd[_0x3f33ff]['isIncorrect']=!0x0));}return _0x48a0fd['filter'](_0x9b9eba=>!_0x9b9eba['isIncorrect']);}['_makeModelFromTape'](_0x39f41e,_0x434db2,_0x48c866){const _0x59c869=new mt(),_0x372503=[],_0x49cbde=new Map(),_0x2c6835=this['editor']['model'],_0x57ed89=_0x2c6835['schema'],_0x52f19a=[_0x59c869],_0x3c52d5={},_0x2c0cf2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b1f26=null;const _0x36c8aa=[0x0];for(let _0x544ce8=0x0;_0x544ce8<_0x39f41e['length'];_0x544ce8++)if('elementStart'===_0x39f41e[_0x544ce8]['type']){_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa);const _0x380727=new ft(_0x39f41e[_0x544ce8]['item']['name'],_0x39f41e[_0x544ce8]['item']['getAttributes']());_0x52f19a[0x0]['_appendChild'](_0x380727),_0x36c8aa['push'](0x0),_0x52f19a['unshift'](_0x380727),_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa);}else'elementEnd'===_0x39f41e[_0x544ce8]['type']?(_0x52f19a['shift'](),_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa),_0x36c8aa['pop'](),_0x36c8aa[_0x36c8aa['length']-0x1]++,_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa)):(_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa),_0x5b1f26?_0x5b1f26['_data']+=_0x39f41e[_0x544ce8]['item']['data']:_0x5b1f26=new wt(_0x39f41e[_0x544ce8]['item']['data'],_0x39f41e[_0x544ce8]['item']['getAttributes']()),_0x39f41e[_0x544ce8+0x1]&&'text'===_0x39f41e[_0x544ce8+0x1]['type']&&_0x2ba697(_0x5b1f26,_0x39f41e[_0x544ce8+0x1]['item'])||(_0x52f19a[0x0]['_appendChild'](_0x5b1f26),_0x5b1f26=null),_0x36c8aa[_0x36c8aa['length']-0x1]+=_0x39f41e[_0x544ce8]['item']['offsetSize'],_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa));for(let _0x3832fa=0x0;_0x3832fa<_0x39f41e['length'];_0x3832fa++){const _0x29495f=_0x39f41e[_0x3832fa]['previousPosition'],_0x4dfda1=_0x39f41e[_0x3832fa]['nextPosition'];for(const _0x125e83 of _0x39f41e[_0x3832fa]['markersStart'])_0x49cbde['set'](_0x125e83,{'start':_0x29495f,'end':null});_0x173b12('isRemoveSuggestion',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isAddSuggestion',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isRemoved',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isAdded',_0x3832fa,_0x29495f,_0x4dfda1);for(const _0x4d4d36 of _0x39f41e[_0x3832fa]['markersEnd']){_0x49cbde['get'](_0x4d4d36)['end']=_0x4dfda1;}}for(const [_0x10930f,_0x2028c8]of _0x49cbde){const _0x37f057=this['editor']['model']['createRange'](_0x2028c8['start'],_0x2028c8['end']);_0x59c869['markers']['set'](_0x10930f,_0x37f057);}return _0x372503['sort']((_0x23027c,_0x3a0e0c)=>{const _0x3ec32c=_0x59c869['markers']['get']('revision:'+_0x23027c['id']),_0x25ca5f=_0x59c869['markers']['get']('revision:'+_0x3a0e0c['id']);return _0x3ec32c['start']['isBefore'](_0x25ca5f['start'])?-0x1:_0x3ec32c['start']['isAfter'](_0x25ca5f['start'])?0x1:_0x3ec32c['end']['isBefore'](_0x25ca5f['end'])?-0x1:_0x3ec32c['end']['isAfter'](_0x25ca5f['end'])?0x1:'add'===_0x23027c['type']?-0x1:0x1;}),{'root':_0x59c869,'changes':_0x372503};function _0x173b12(_0x1b2e42,_0x6a3306,_0xf8e1c7,_0x45d3e3){const _0xe079bf=!!_0x39f41e[_0x6a3306][_0x1b2e42],_0x15212f=_0xe079bf?_0x39f41e[_0x6a3306][_0x1b2e42]['userId']:null,_0x1e41da=_0x6a3306===_0x39f41e['length']-0x1,_0xf34f58=_0x2c0cf2[_0x1b2e42][0x0],_0x52945e=_0x57ed89['isObject'](_0x39f41e[_0x6a3306]['item']);!_0x3c52d5[_0x1b2e42]&&_0xe079bf?_0x3c52d5[_0x1b2e42]={'start':_0xf8e1c7,'tapeItem':_0x39f41e[_0x6a3306],'userId':_0x15212f,'type':_0x1b2e42}:_0x3c52d5[_0x1b2e42]&&!_0xe079bf?(_0x3c52d5[_0x1b2e42]['end']=_0xf8e1c7,_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]=null):_0x3c52d5[_0x1b2e42]&&_0xe079bf&&_0x3c52d5[_0x1b2e42]['userId']!==_0x15212f&&(_0x3c52d5[_0x1b2e42]['end']=_0xf8e1c7,_0xf34f58&&_0xf34f58['userId']===_0x3c52d5[_0x1b2e42]['userId']||_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]={'start':_0xf8e1c7,'tapeItem':_0x39f41e[_0x6a3306],'userId':_0x15212f,'type':_0x1b2e42}),_0x3c52d5[_0x1b2e42]&&_0x52945e&&('elementStart'!==_0x39f41e[_0x6a3306]['type']||_0xf34f58&&_0xf34f58['userId']===_0x15212f||_0x2c0cf2[_0x1b2e42]['unshift']({'userId':_0x15212f,'object':_0x39f41e[_0x6a3306]['item'],'change':_0x3c52d5[_0x1b2e42]}),'elementEnd'===_0x39f41e[_0x6a3306]['type']&&_0xf34f58&&_0xf34f58['object']===_0x39f41e[_0x6a3306]['item']&&(_0x2c0cf2[_0x1b2e42]['shift'](),_0x3c52d5[_0x1b2e42]=_0xf34f58['change'])),_0x3c52d5[_0x1b2e42]&&_0x1e41da&&(_0x3c52d5[_0x1b2e42]['end']=_0x45d3e3,_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]=null);}function _0x2dba11({start:_0x445620,end:_0x354b5b,tapeItem:_0x38238c,userId:_0x44acec,type:_0xce0c8e}){const _0x5afab0=_0x38238c['item'],_0x381160=_0x2c6835['schema']['isBlock'](_0x5afab0)&&!_0x2c6835['schema']['isLimit'](_0x5afab0),_0x1edee2=_0x445620['nodeAfter']==_0x354b5b['parent']&&_0x354b5b['isAtStart'];if(_0x381160&&_0x1edee2)return;const _0x473a6c=_0x2c6835['createRange'](_0x445620,_0x354b5b),_0x2c12a6=_0x434db2['get'](_0x44acec),_0x5ef1d7=new r({'author':_0x2c12a6,'type':'isAdded'==_0xce0c8e||'isAddSuggestion'==_0xce0c8e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xce0c8e||'isRemoveSuggestion'==_0xce0c8e},'createdAt':new Date(),'rootName':_0x48c866});_0x372503['push'](_0x5ef1d7),_0x59c869['markers']['set']('revision:'+_0x5ef1d7['id'],_0x473a6c);}function _0x2ba697(_0x19c84a,_0x2a1b5b){const _0x35732f=_0x19c84a['getAttributes'](),_0x42ae57=_0x2a1b5b['getAttributes']();for(const _0x51539c of _0x35732f){if(_0x51539c[0x1]!==_0x2a1b5b['getAttribute'](_0x51539c[0x0]))return!0x1;_0x42ae57['next']();}return _0x42ae57['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf827e2=>{const _0x2af1f9=_0xf827e2['markerName']['split'](':')[0x1],_0x1913e3=this['_getChangeFromId'](_0x2af1f9);if(!_0x1913e3)return null;const _0x121d84='add'==_0x1913e3['type']?'insertion':'deletion',_0x13db88=['ck-suggestion-marker','ck-suggestion-marker-'+_0x121d84];return _0x1913e3['data']['isSuggestion']&&_0x13db88['push']('ck-suggestion-marker-'+_0x121d84+'-new'),this['activeChange']==_0x1913e3&&_0x13db88['push']('ck-suggestion-marker--active'),{'classes':_0x13db88,'attributes':{'data-change-id':_0x2af1f9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1c3301=>{_0x1c3301['on']('element:pre',(_0x2c7803,_0x3c4d98,_0x3e3ac1)=>{const _0x21043f=_0x3c4d98['viewItem']['getChild'](0x0);if(!_0x21043f||!_0x21043f['is']('element','code'))return;if(!_0x3e3ac1['consumable']['consume'](_0x21043f,{'attributes':['vid_start','vid_end']}))return;const _0x17f6e1=_0x3c4d98['modelRange']['start']['nodeAfter'];_0x3e3ac1['writer']['setAttribute']('vid_start',_0x21043f['getAttribute']('vid_start'),_0x17f6e1),_0x3e3ac1['writer']['setAttribute']('vid_end',_0x21043f['getAttribute']('vid_end'),_0x17f6e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x34b4ea=>{_0x34b4ea['on']('element',(_0x2430c2,_0x149728,_0xb14838)=>{if(!_0xb14838['consumable']['consume'](_0x149728['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x149728['modelRange']['isCollapsed'])return;const _0x19179b=_0x149728['modelRange']['start']['nodeAfter'];_0x19179b['hasAttribute']('vid_start')||_0x19179b['hasAttribute']('vid')||(_0xb14838['writer']['setAttribute']('vid_start',_0x149728['viewItem']['getAttribute']('vid_start'),_0x19179b),_0xb14838['writer']['setAttribute']('vid_end',_0x149728['viewItem']['getAttribute']('vid_end'),_0x19179b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x483b8b=>_0x483b8b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e6490,[,_0x201f93])=>{['vid_start','vid_end','vid']['includes'](_0x201f93)&&(_0x1e6490['return']=!0x0,_0x1e6490['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ec096=>{_0x2ec096['on']('attribute:vid',(_0x11a824,_0x2f71f0,_0x1b0f06)=>{if('\x20'!=_0x2f71f0['item']['data']||_0x2f71f0['item']['parent']['maxOffset']>0x1)return;if(!_0x1b0f06['consumable']['consume'](_0x2f71f0['item'],_0x11a824['name']))return;const _0xd68407=_0x1b0f06['writer'],_0x4d28a8=_0x1b0f06['mapper']['toViewRange'](_0x2f71f0['range']);_0xd68407['wrap'](_0x4d28a8,_0xd68407['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2c860a){const _0x542ff2=_0x2c860a['plugins']['get']('RevisionViewer');return(_0x22977c,_0x36b319,_0x251da8)=>{const _0x33c00f=_0x36b319['markerName']['split'](':')[0x1],_0x26a36d=_0x542ff2['_getChangeFromId'](_0x33c00f);if(!_0x26a36d)return null;const _0x50dada='add'==_0x26a36d['type']?'split':'merge';if(!_0x251da8['consumable']['test'](_0x36b319['markerRange'],_0x22977c['name']))return;const _0x95f1eb=_0x36b319['markerRange']['getWalker'](),_0x9c0347=_0x36b319['markerRange']['start'],_0x1ad9e4=_0x2c860a['model']['schema'];let _0x4fbb8b=null,_0x366c91=null,_0x56f025=!0x1,_0x472c3a=!0x1;for(const _0x4d1a94 of _0x95f1eb){const _0x3cde0c=_0x4d1a94['item'];_0x56f025=_0x56f025||_0x1ad9e4['isContent'](_0x3cde0c);const _0x274592=_0x251da8['mapper']['toViewElement'](_0x3cde0c);if(_0x274592&&_0x274592['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d1a94['type']&&(_0x1ad9e4['isBlock'](_0x3cde0c)&&!_0x1ad9e4['isLimit'](_0x3cde0c)&&(_0x3cde0c['nextSibling']||_0x9c0347['isAtEnd']?_0x4fbb8b&&_0x4fbb8b['parent']==_0x3cde0c||(_0x4fbb8b=_0x3cde0c,_0x5402f4(_0x4d1a94['previousPosition']),_0x472c3a=!0x0):_0x366c91=_0x366c91||_0x4d1a94['previousPosition']));}function _0x5402f4(_0x529680){const _0xcbfa7=_0x251da8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50dada}),_0x2de14b=_0x251da8['mapper']['toViewPosition'](_0x529680);_0x26a36d['data']['isSuggestion']&&_0x251da8['writer']['addClass']('ck-suggestion-marker-'+_0x50dada+'-new',_0xcbfa7),_0x542ff2['activeChange']==_0x26a36d&&_0x251da8['writer']['addClass']('ck-suggestion-marker--active',_0xcbfa7),_0x251da8['writer']['insert'](_0x2de14b,_0xcbfa7),_0x251da8['mapper']['bindElementToMarker'](_0xcbfa7,_0x36b319['markerName']);}_0x56f025||_0x472c3a||!_0x366c91||_0x5402f4(_0x366c91);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2fecca,_0x4c4327,_0x3b34d7)=>{const _0x3d12eb=_0x3b34d7['mapper']['markerNameToElements'](_0x4c4327['markerName']);if(_0x3d12eb){for(const _0x27dc17 of _0x3d12eb)(_0x27dc17['hasClass']('ck-suggestion-marker-split')||_0x27dc17['hasClass']('ck-suggestion-marker-merge'))&&(_0x3b34d7['mapper']['unbindElementFromMarkerName'](_0x27dc17,_0x4c4327['markerName']),_0x3b34d7['writer']['remove'](_0x27dc17));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xfee2db,_0x4eba55,_0x354539)=>{const _0x5b0855=_0x4eba55['markerName']['split'](':')[0x1],_0x2fd6ce=this['_getChangeFromId'](_0x5b0855);if(!_0x2fd6ce)return null;const _0x461452='add'==_0x2fd6ce['type']?'split':'merge';if(_0x354539['consumable']['test'](_0x4eba55['markerRange'],_0xfee2db['name']))for(const _0x19405b of _0x4eba55['markerRange']['getItems']()){if(!_0x19405b['is']('element','softBreak'))continue;const _0x1f63b4=_0x354539['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x461452}),_0x18892d=_0x354539['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19405b));_0x2fd6ce['data']['isSuggestion']&&_0x354539['writer']['addClass']('ck-suggestion-marker-'+_0x461452+'-new',_0x1f63b4),this['activeChange']==_0x2fd6ce&&_0x354539['writer']['addClass']('ck-suggestion-marker--active',_0x1f63b4),_0x354539['writer']['insert'](_0x18892d,_0x1f63b4),_0x354539['mapper']['bindElementToMarker'](_0x1f63b4,_0x4eba55['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x49ee6d=>{for(const _0x49c7b5 of this['editor']['model']['document']['getRootNames']()){const _0x2c4324=this['editor']['model']['document']['getRoot'](_0x49c7b5),_0x48c9c9=this['editor']['editing']['view']['document']['getRoot'](_0x49c7b5);if(_0x48c9c9){const _0x147fa1=_0x2c4324['getAttribute']('revisionHistoryAttachChange');if(_0x49ee6d['removeAttribute']('data-change-id',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root-add',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root-remove',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root--active',_0x48c9c9),_0x147fa1){const _0x190228=this['_getChangeFromId'](_0x147fa1);if(!_0x190228)return null;_0x49ee6d['setAttribute']('data-change-id',_0x147fa1,_0x48c9c9),_0x49ee6d['addClass']('ck-revision-history-root-'+_0x190228['type'],_0x48c9c9),this['activeChange']==_0x190228&&_0x49ee6d['addClass']('ck-revision-history-root--active',_0x48c9c9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x7fe74e=>'revision-comment:'+_0x7fe74e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34c221=>'revision-suggestion:'+_0x34c221,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x233cc5=>({'name':'suggestion:'+_0x233cc5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x258e85=>{const _0x5a9fd1=_0x258e85['markerName']['split'](':')[0x1];return'insertion'!=_0x5a9fd1&&'deletion'!=_0x5a9fd1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a9fd1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4f9940,_0x243916,_0x4228c2)=>{const _0xaeb12f=_0x4228c2['mapper']['markerNameToElements'](_0x243916['markerName']);if(_0xaeb12f){for(const _0x595ff5 of _0xaeb12f)_0x595ff5['is']('uiElement')&&(_0x4228c2['mapper']['unbindElementFromMarkerName'](_0x595ff5,_0x243916['markerName']),_0x4228c2['writer']['remove'](_0x595ff5));}},{'priority':'high'});}['_getChangeFromId'](_0x576d3f){return this['_changeIdToChange']['get'](_0x576d3f);}['_getViewForChange'](_0x411730){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x411730),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x7880cb,_0xe28e2,_0xe003ae,_0x345529)=>{_0x345529&&this['_balloon']['remove'](_0x345529),_0xe003ae&&(this['_balloon']['add']({'view':_0xe003ae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x321a81=this['editor']['editing'],_0x535092=this['_getChangeFromId'](_0xe003ae['changeId']);let _0x34bf17;if(_0x535092['data']['isOnRoot']){const _0x48cfa9=_0x321a81['view']['getDomRoot'](_0x535092['rootName']);_0x34bf17=Array['from'](_0x48cfa9['getClientRects']());}else{const _0x1332ee=this['editor']['model']['markers']['get']('revision:'+_0xe003ae['changeId']);_0x34bf17=Array['from'](_0x321a81['mapper']['markerNameToElements'](_0x1332ee['name']))['map'](_0x63db47=>_0x321a81['view']['domConverter']['mapViewToDom'](_0x63db47))['map'](_0x1fbb94=>Array['from'](_0x1fbb94['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x34bf17[0x0];return _0x34bf17['find'](_0x3f25de=>_0x3f25de['top']-0x3<=this['_activeViewTarget']['y']&&_0x3f25de['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3f25de['left']-0x3<=this['_activeViewTarget']['x']&&_0x3f25de['right']+0x3>=this['_activeViewTarget']['x'])||_0x34bf17[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f1710,_0x5b33c8,_0xc0ab21,_0x32cdb9)=>{this['activeView']=_0xc0ab21?this['_getViewForChange'](_0xc0ab21):null,this['editor']['model']['change'](()=>{const _0x4b62e9=this['editor']['editing'];_0x32cdb9&&(_0x32cdb9['data']['isOnRoot']?_0x4b62e9['view']['change'](_0x42dc11=>{_0x42dc11['removeClass']('ck-revision-history-root--active',_0x4b62e9['view']['document']['getRoot'](_0x32cdb9['rootName']));}):_0x4b62e9['reconvertMarker']('revision:'+_0x32cdb9['id'])),_0xc0ab21&&(_0xc0ab21['data']['isOnRoot']?_0x4b62e9['view']['change'](_0xfb7f13=>{_0xfb7f13['addClass']('ck-revision-history-root--active',_0x4b62e9['view']['document']['getRoot'](_0xc0ab21['rootName']));}):_0x4b62e9['reconvertMarker']('revision:'+_0xc0ab21['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x442e9a,_0x4e15ce)=>{if(this['activeChange'])return;const _0xb7e660=this['_findChangeIdFromDomTarget'](_0x4e15ce['target']),_0x3225f9=this['_changeIdToChange']['get'](_0xb7e660);_0x3225f9?(this['_activeViewTarget']={'x':_0x4e15ce['domEvent']['x'],'y':_0x4e15ce['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3225f9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2ec9a6,_0x8afac1)=>{const _0x1ef5e0=this['_findChangeIdFromDomTarget'](_0x8afac1['target']),_0x380502=this['_changeIdToChange']['get'](_0x1ef5e0);_0x380502?(this['_activeViewTarget']={'x':_0x8afac1['domEvent']['x'],'y':_0x8afac1['domEvent']['y']},_0x380502===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x380502):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x35eb55){do{const _0x33ea82=_0x35eb55['getAttribute']('data-change-id');if(_0x33ea82)return _0x33ea82;_0x35eb55=_0x35eb55['parent'];}while(_0x35eb55);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x211c2b=>{for(const _0x2cbc05 of this['editor']['model']['markers'])_0x211c2b['removeMarker'](_0x2cbc05);});}}function Z(_0x52710f,_0x439218){return(_0x34a468,_0x41e489,_0xa29487)=>{if(!_0xa29487['consumable']['test'](_0x41e489['markerRange'],_0x34a468['name']))return;const _0x25789b=_0x41e489['markerRange']['getWalker'](),_0x3f2a0a=_0x41e489['markerRange']['start'],_0x1d0379=_0x52710f['model']['schema'];let _0x798648=null,_0x2738bc=null,_0x493960=!0x1,_0x522f8c=!0x1;for(const _0x3e83a4 of _0x25789b){const _0xb9c21e=_0x3e83a4['item'];_0x493960=_0x493960||_0x1d0379['isContent'](_0xb9c21e);const _0x4d4503=_0xa29487['mapper']['toViewElement'](_0xb9c21e);if(_0x4d4503&&_0x4d4503['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e83a4['type']&&(_0x1d0379['isBlock'](_0xb9c21e)&&!_0x1d0379['isLimit'](_0xb9c21e)&&(_0xb9c21e['nextSibling']||_0x3f2a0a['isAtEnd']?_0x798648&&_0x798648['parent']==_0xb9c21e||(_0x798648=_0xb9c21e,_0x5600f5(_0x3e83a4['previousPosition']),_0x522f8c=!0x0):_0x2738bc=_0x2738bc||_0x3e83a4['previousPosition']));}function _0x5600f5(_0x4334d2){const _0x41ebf3=_0xa29487['mapper']['toViewPosition'](_0x4334d2),_0x2145d4=_0xa29487['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x439218});_0xa29487['writer']['insert'](_0x41ebf3,_0x2145d4),_0xa29487['mapper']['bindElementToMarker'](_0x2145d4,_0x41e489['markerName']);}_0x493960||_0x522f8c||!_0x2738bc||_0x5600f5(_0x2738bc);};}class _t extends _0x39d2fd{constructor(_0x1b8678){super(_0x1b8678);const _0x276a13=_0x1b8678['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x276a13,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276a13,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x42dbea=this['editor'],_0x4ead64=_0x42dbea['plugins']['get'](d),_0x2d7cbe=_0x4ead64['isReady']?_0x4ead64['diff']['newRevisionId']:null;_0x42dbea['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d7cbe);}['refresh'](){const {isReady:_0x465d08,isEnabled:_0x301d19,repository:_0x2fe6c7,diff:_0xf4da90}=this['editor']['plugins']['get'](d),_0x260899=_0xf4da90&&_0x2fe6c7['getLaterVisibleRevision'](_0xf4da90['newRevisionId']);this['isEnabled']=_0x465d08&&_0x301d19&&Boolean(_0x260899);}}class yt extends _0x39d2fd{['_step'];constructor(_0x5da875,{direction:_0x2c56c5}){super(_0x5da875);const _0x414455=_0x5da875['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2c56c5?0x1:-0x1,this['listenTo'](_0x414455,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x414455,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x414455,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4acc92=this['editor'],_0x42d39d=_0x4acc92['plugins']['get'](d),{isNavigationMode:_0x766d02,currentChangeNumber:_0x954ccc}=_0x42d39d;let _0x53aec1;if(_0x42d39d['activeChange']=_0x766d02?_0x42d39d['diff']['changes']['get'](_0x954ccc+this['_step']):_0x42d39d['diff']['changes']['first'],_0x42d39d['activeChange']['data']['isOnRoot'])_0x53aec1=_0x4acc92['editing']['view']['getDomRoot'](_0x42d39d['activeChange']['rootName']);else{const _0xb40ed0=_0x4acc92['model']['markers']['get']('revision:'+_0x42d39d['activeChange']['id']);_0x53aec1=_0x27c2fd(_0x4acc92['editing'],_0xb40ed0);}_0x57074d({'target':_0x53aec1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x542ea1,currentChangeNumber:_0x3aa9db,numberOfChanges:_0x5a511b,isReady:_0x3a4b20,isEnabled:_0x568c46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x568c46&&_0x3a4b20&&_0x5a511b)&&(!_0x542ea1||(0x1===this['_step']?_0x3aa9db<_0x5a511b-0x1:_0x3aa9db>0x0));}}class di extends _0x528dcf{constructor(_0x58b631){super(_0x58b631);const _0x4d82b9=this['bindTemplate'],_0x199c8f=new _0x4fe6e(_0x58b631),_0x5cb16d=new _0x4fe6e(_0x58b631);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',(_0x15a927,_0xd4d47b)=>_0x15a927&&_0xd4d47b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x464e00,_0x213a27,_0x193b45,_0xa33169)=>{if(!_0x464e00)return m(_0x58b631,'Loading...');if(!_0x193b45)return m(_0x58b631,'No\x20changes');const _0x56e9eb=m(_0x58b631,'NUMBER_OF_CHANGES',_0x193b45);return _0xa33169?m(_0x58b631,'X_OF_Y_CHANGES',[_0x213a27+0x1,_0x193b45]):_0x56e9eb;}),_0x199c8f['set']({'label':m(_0x58b631,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5cb16d['set']({'label':m(_0x58b631,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x199c8f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5cb16d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x199c8f['on']('execute',()=>this['fire']('execute','backward')),_0x5cb16d['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',_0x4d82b9['if']('_isStatusLabelVisible','ck-hidden',_0x4da62a=>!_0x4da62a)]},'children':[{'text':_0x4d82b9['to']('isNavigationMode',_0x1cffa1=>_0x1cffa1?m(_0x58b631,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x58b631,'Total')+':\x20')}]},{'text':_0x4d82b9['to']('_statusText')}]},new _0x5e3793(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x199c8f,_0x5cb16d]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x2fef22{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x49b60b=this['editor']['editing']['view'];_0x49b60b['change'](_0x176e0c=>{for(const _0x558971 of _0x49b60b['document']['roots'])_0x176e0c['addClass'](ce,_0x558971);});}['hide'](){const _0x151216=this['editor']['editing']['view'];_0x151216['change'](_0x1539f7=>{for(const _0x536ddc of _0x151216['document']['roots'])_0x1539f7['removeClass'](ce,_0x536ddc);});}}class g extends _0x2fef22{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x424527=this['editor'],_0x151dfa=_0x424527['plugins']['get'](d),_0x1cf465=_0x424527['plugins']['get'](ae);_0x424527['ui']['componentFactory']['add']('exitToEditing',_0x4a6646=>{const _0x48f1ae=new _0x4fe6e(_0x4a6646);return _0x48f1ae['set']({'label':m(_0x4a6646,'Back\x20to\x20editing'),'icon':_0x34d699['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x48f1ae,'execute',()=>{_0x424527['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x48f1ae;}),_0x424527['ui']['componentFactory']['add']('restoreRevision',_0x3cb70c=>{const _0x4e812e=new _0x4fe6e(_0x3cb70c);return _0x4e812e['set']({'label':m(_0x3cb70c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e812e['bind']('isEnabled')['to'](_0x424527['commands']['get']('restoreRevision')),this['listenTo'](_0x4e812e,'execute',()=>_0x424527['execute']('restoreRevision')),_0x4e812e;}),_0x424527['ui']['componentFactory']['add']('changesNavigation',_0x38bf6a=>{const _0xa7c461=new di(_0x38bf6a),_0x56e2bd=_0x424527['commands']['get']('showPreviousChange'),_0x3673f3=_0x424527['commands']['get']('showNextChange');return _0xa7c461['bind']('isBackwardNavigationEnabled')['to'](_0x56e2bd,'isEnabled'),_0xa7c461['bind']('isForwardNavigationEnabled')['to'](_0x3673f3,'isEnabled'),_0xa7c461['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x151dfa),this['listenTo'](_0xa7c461,'execute',(_0x49d903,_0x38520c)=>{_0x424527['execute']('forward'===_0x38520c?'showNextChange':'showPreviousChange');}),_0xa7c461;}),_0x1cf465['show'](),_0x151dfa['on']('change:isReady',(_0x4c4ae1,_0x586102,_0x5aab0c)=>{_0x5aab0c?_0x1cf465['hide']():_0x1cf465['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x286200,_0x135e76){super(_0x286200,_0x135e76);const _0x55a5d3=this['bindTemplate'];this['set']({'label':m(_0x286200,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x286200,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55a5d3['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 _0x1140dd=this['fieldView']['element'];this['_tooltipString']=_0x1140dd['scrollWidth']>_0x1140dd['clientWidth']&&_0x1140dd['value']||'';}}class ti extends _0x528dcf{constructor(_0x158d94,_0x8d2024,_0x4afe4d){super(_0x158d94);const _0x3678f4=new _0x267780();_0x3678f4['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x41a551=['ck','ck-revision-history-sidebar__revision-author'];_0x4afe4d&&_0x41a551['push']('ck-revision-history-sidebar__revision-author_creator');const _0x672bee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x158d94,_0x4afe4d?'Revision\x20creator':'Revision\x20author')},'children':[_0x3678f4,_0x8d2024['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41a551},'children':_0x672bee});}}function ni(_0x2fee14,_0x3f7f45){const _0x49800c=_0x2fee14['bindTemplate'],_0x3aa37c=_0x2fee14['locale'],_0x422bc9=_0x3dbdae(_0x3aa37c);_0x422bc9['panelPosition']='sw';const _0x4d898b=function(_0x4d6ccf,_0x3c3e59){const _0x470143=function(_0x2f7cfe,_0x4022bb){const _0x5df616=_0x2f7cfe['locale'],_0x4b311b={'Compare\x20against\x20selected':m(_0x5df616,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5df616,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5df616,'Restore\x20this\x20revision')};return _0x4022bb['map'](_0x1fa549=>{const _0x1e31c8=_0x4b311b[_0x1fa549['name']];return _0x1e31c8&&_0x1e31c8!==_0x1fa549['name']&&(_0x1fa549['name']=_0x1e31c8),_0x1fa549;});}(_0x4d6ccf,_0x3c3e59),_0x51492f=new _0x23661b();for(const _0x402324 of _0x470143){const _0x20311b={'type':'button','model':new to({'label':_0x402324['name'],'class':_0x402324['class'],'withText':!0x0,'role':'menuitem','_action':_0x402324['action']})};_0x20311b['model']['bind']('isEnabled')['to'](_0x4d6ccf,'isActionsDropdownOpen',_0x25cb55=>'function'!=typeof _0x402324['isEnabled']||(!_0x25cb55||_0x402324['isEnabled'](_0x4d6ccf))),_0x51492f['add'](_0x20311b);}return _0x51492f;}(_0x2fee14,_0x3f7f45);return _0x2fee14['bind']('isActionsDropdownOpen')['to'](_0x422bc9,'isOpen'),_0x422bc9['buttonView']['set']({'label':m(_0x3aa37c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x34d699['threeVerticalDots']}),_0x422bc9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49800c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49800c['to'](_0x5ef102=>_0x5ef102['stopPropagation']())}}),_0x422bc9['on']('execute',_0x189749=>{_0x2fee14['isReady']&&'function'==typeof _0x189749['source']['_action']&&_0x189749['source']['_action'](_0x2fee14);}),_0x37c010(_0x422bc9,_0x4d898b,{'role':'menu'}),_0x422bc9['listenTo'](_0x2fee14,'change:isActionsDropdownOpen',(_0x166f05,_0x456ae4,_0x1d52b3)=>{if(_0x1d52b3)for(const _0x2b1707 of _0x422bc9['listView']['items']){const _0x5ed166=_0x2b1707['children']['first'],_0x57e6fd=_0x3f7f45['find'](_0x13d1d6=>_0x13d1d6['action']===_0x5ed166['_action'])['isVisible'];_0x2b1707['isVisible']=void 0x0===_0x57e6fd||_0x57e6fd(_0x2fee14);}}),_0x422bc9;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x243359(_0x528dcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x29b004,_0x4c86d7,_0x409a0d,_0x4fa1cd){super(_0x29b004);const _0x389906=this['bindTemplate'],_0x3faaa6=function(_0x9b5af8,_0x4de048){const _0x428dc1=Array['from'](_0x4de048['authors'])['filter'](_0x17741b=>_0x17741b!=_0x4de048['creator']);return _0x4de048['creator']&&_0x428dc1['unshift'](_0x4de048['creator']),_0x428dc1['map'](_0x1fb1ec=>new ti(_0x9b5af8,_0x1fb1ec,_0x1fb1ec==_0x4de048['creator']));}(_0x29b004,_0x4c86d7);this['id']=_0x4c86d7['id'],this['_revision']=_0x4c86d7,this['_requireRevisionName']=_0x4fa1cd,this['bind']('name','createdAt')['to'](_0x4c86d7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3370e3=>{return _0x12f83f=_0x29b004['uiLanguage'],(_0x1c3f74=_0x3370e3)['toLocaleDateString'](_0x12f83f,{'month':'long','day':'numeric'})+',\x20'+_0x1c3f74['toLocaleTimeString'](_0x12f83f,{'hour':'numeric','minute':'numeric'});var _0x12f83f,_0x1c3f74;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x29b004,_0x554978),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x38bbec=>_0x38bbec||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x46ba7d,_0x4fae79)=>_0x46ba7d&&_0x4fae79),this['revisionActionsView']=_0x409a0d&&_0x409a0d['length']?ni(this,_0x409a0d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x389906['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x389906['if']('isEnabled','ck-disabled',_0x491eb7=>!_0x491eb7),_0x389906['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x389906['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x389906['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':_0x389906['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':_0x3faaa6}]},this['revisionActionsView']],'on':{'click':_0x389906['to'](_0x877c5c=>{_0x877c5c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x509d7b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x509d7b,'change',()=>{this['_requireRevisionName']&&!_0x509d7b['value']||this['fire']('setName',{'id':this['id'],'name':_0x509d7b['value']}),_0x509d7b['value']||(_0x509d7b['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1306b1,_0x3a0a47){const _0x56f939=_0x5d7766['fromJSDate'](_0x1306b1)['setLocale'](_0x3a0a47),_0x2647a1=_0x5d7766['local'](),_0x59bd45=_0x2647a1['minus']({'days':0x1})['startOf']('day');let _0x4375a7,_0x568a9d;return _0x56f939['hasSame'](_0x2647a1,'day')?(_0x4375a7=_0x56f939['startOf']('day')['toJSDate'](),_0x568a9d=_0x56f939['toRelativeCalendar']()):_0x56f939['hasSame'](_0x59bd45,'day')?(_0x4375a7=_0x59bd45['toJSDate'](),_0x568a9d=_0x56f939['toRelativeCalendar']()):_0x56f939['hasSame'](_0x2647a1,'week')?(_0x4375a7=_0x56f939['startOf']('week')['toJSDate'](),_0x568a9d=_0x56f939['weekdayLong']||''):_0x56f939['hasSame'](_0x2647a1,'year')?(_0x4375a7=_0x56f939['startOf']('month')['toJSDate'](),_0x568a9d=_0x56f939['monthLong']||''):(_0x4375a7=_0x56f939['startOf']('year')['toJSDate'](),_0x568a9d=String(_0x56f939['year'])),{'startDate':_0x4375a7,'localizedPeriodName':_0x568a9d};}class vi extends _0x528dcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f8d35,_0x59fb54,_0x43c77e,_0x59782){super(_0x4f8d35);const _0x2445d0=mi(_0x59fb54,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x59fb54,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x43c77e,this['_requireRevisionName']=_0x59782,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':_0x2445d0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2da7b8){const _0x4e0f72=new ai(this['locale'],_0x2da7b8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e0f72);}['removeRevision'](_0x5c0ac1){const _0x6f7609=this['revisionViews']['find'](_0x53b32f=>_0x53b32f['id']===_0x5c0ac1['id']);this['revisionViews']['remove'](_0x6f7609);}}class as extends _0x528dcf{constructor(_0x40f942){super(_0x40f942);const _0x5f2204=new _0x267780();_0x5f2204['content']=_0x34d699['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5f2204,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x40f942,'Revision\x20history')]}]});}}class li extends _0x528dcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45901a,_0x1fd1ee,_0x1b90b8,_0x4190c4){super(_0x45901a);const _0x32c413=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1fd1ee,this['_revisionActions']=_0x1b90b8,this['_requireRevisionName']=_0x4190c4,this['on']('select',(_0x1d1b8e,_0x1bef40)=>{this['fire']('revisionSelected',_0x1bef40);}),this['on']('setName',(_0x96718b,_0x3ada4e)=>{this['fire']('revisionSetName',_0x3ada4e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x45901a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x32c413['if']('isEnabled','ck-disabled',_0xb85c2c=>!_0xb85c2c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x48ae79 of this['_revisions'])this['_addRevision'](_0x48ae79);this['_revisions']['on']('add',(_0x126d0a,_0x5e50ec)=>{this['_addRevision'](_0x5e50ec);}),this['_revisions']['on']('remove',(_0x4f945c,_0x866a4)=>{this['_removeRevision'](_0x866a4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x351d82=>_0x351d82['revisionViews']['map'](_0x4a044b=>_0x4a044b))['flat']();}['selectRevision'](_0x19e2c0){for(const _0xbcf3a9 of this['revisionViews'])_0x19e2c0&&_0x19e2c0['id']===_0xbcf3a9['id']?_0xbcf3a9['select']():_0xbcf3a9['deselect']();}['highlightRevisions'](_0x53175f){for(const _0x409fe2 of this['revisionViews'])_0x53175f['some'](({id:_0x347e09})=>_0x347e09===_0x409fe2['id'])?_0x409fe2['highlight']():_0x409fe2['unhighlight']();}['_addRevision'](_0x13bfd7){const _0x1cab2e=mi(_0x13bfd7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5001aa=this['timePeriodViews']['get'](0x0);_0x5001aa&&_0x5001aa['startDate']['getTime']()===_0x1cab2e['getTime']()||(_0x5001aa=new vi(this['locale'],_0x1cab2e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5001aa)),_0x5001aa['addRevision'](_0x13bfd7);}['_removeRevision'](_0x5d965c){const _0x3962b8=mi(_0x5d965c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3962b8)['removeRevision'](_0x5d965c);}['_getTimePeriodViewByStartDate'](_0x107929){return this['timePeriodViews']['find'](_0xc531b=>_0xc531b['startDate']['getTime']()===_0x107929['getTime']());}}class w extends _0x2fef22{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x31b1e9){super(_0x31b1e9),this['_revisionViewer']=_0x31b1e9['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5bfd1f=this['_revisionsRepository']['_revisions'],_0x15c16b=this['_createRevisionActions'](),_0x4f298f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5bfd1f,_0x15c16b,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',(_0x11b57a,_0x556b26)=>{_0x556b26['revisionViews']['on']('add',(_0x4e96c2,_0x4d5b2d)=>{_0x4d5b2d['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)),_0x4f298f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x20ab0f=this['_revisionsRepository']['getRevision'](0x0);if(_0x20ab0f){const _0x2b7678=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x20ab0f['id']);this['_revisionViewer']['compare'](_0x20ab0f,_0x2b7678);}}['_handleRevisionSelected'](_0x2fb428,_0x435bca){const _0x5c4c73=this['_revisionsRepository']['getRevision'](_0x435bca['id']),_0x3c3f32=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5c4c73['id']);this['_revisionViewer']['compare'](_0x5c4c73,_0x3c3f32);}['_handleRevisionSetName'](_0x1700ce,_0x41815b){this['_revisionsRepository']['getRevision'](_0x41815b['id'])['setName'](_0x41815b['name']);}['_handleDiffChange'](_0x2b5d7d,_0x1abf61,_0x30103c){const _0x48cfd8=this['_revisionsRepository']['getRevisionsInDiff'](_0x30103c);_0x48cfd8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x48cfd8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x48cfd8[0x0]));}['_createRevisionActions'](){const _0x5679f0=this['editor'],_0x18dde2=w['availableRevisionActions'],_0x5580b3=_0x5679f0['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5580b3['length'])return _0x5580b3['map'](_0x5fab92=>{const _0x4b824b='string'==typeof _0x5fab92?Object['assign']({},_0x18dde2[_0x5fab92]):_0x5fab92;return _0x4b824b['action']=_0x4b824b['action']['bind'](this,_0x5679f0),_0x4b824b['isVisible']&&(_0x4b824b['isVisible']=_0x4b824b['isVisible']['bind'](this,_0x5679f0)),_0x4b824b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x37883a},_0x4e1144)=>{const _0x317700=_0x37883a['get'](d),_0xc34206=_0x317700['repository'];let _0x495443=_0x317700['diff']['newRevisionId'],_0x6fc8ae=_0x4e1144['id'];_0xc34206['getIndex'](_0x495443)>_0xc34206['getIndex'](_0x6fc8ae)&&([_0x495443,_0x6fc8ae]=[_0x6fc8ae,_0x495443]),_0x317700['compare'](_0x495443,_0x6fc8ae);},'isVisible':({plugins:_0x3ed493},_0x1b3068)=>{const _0x152cd0=_0x3ed493['get'](d);return!(_0x152cd0['repository']['getRevisionsInDiff'](_0x152cd0['diff'])['length']>0x2)&&!_0x1b3068['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4dce1a,{id:_0x3737d1})=>{_0x4dce1a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3737d1);},'isVisible':({plugins:_0x47a53f},_0x556f73)=>!!_0x47a53f['get'](d)['repository']['getLaterVisibleRevision'](_0x556f73['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa40d1c},{id:_0x255ea0,revisionNameView:_0x889f05})=>{const _0x4892cc=_0xa40d1c['get'](d),_0x4dff4c=_0x4892cc['repository']['getEarlierVisibleRevision'](_0x255ea0);_0x4892cc['compare'](_0x255ea0,_0x4dff4c),_0x889f05['focus'](),_0x889f05['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x21516c,_0x4bbfea){super(_0x21516c),this['_view']=_0x4bbfea,this['_toolbarConfig']=ot(_0x21516c['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1198ef){const _0x404b18=this['editor'],_0x5e874e=this['view'],_0x2faa5c=_0x404b18['editing']['view'],_0x13c361=_0x5e874e['editable'],_0x4205bc=_0x2faa5c['document']['getRoot']();_0x13c361['name']=_0x4205bc['rootName'],_0x5e874e['render']();const _0x2c67fb=_0x13c361['element'];this['setEditableElement'](_0x13c361['name'],_0x2c67fb),_0x5e874e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2faa5c['attachDomRoot'](_0x2c67fb),this['_elementReplacer']['replace'](_0x1198ef,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x55461c=this['view'],_0x59bab8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x59bab8['detachDomRoot'](_0x55461c['editable']['name']),_0x55461c['destroy']();}['_initToolbar'](){const _0x1dac2c=this['view'];_0x1dac2c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1dac2c['stickyPanel']['limiterElement']=_0x1dac2c['element'],_0x1dac2c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xd29b2})=>_0xd29b2),_0x1dac2c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1dac2c['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2bf6a0,_0x464e8b,_0x14ff71={}){super(_0x2bf6a0),this['stickyPanel']=new ut(_0x2bf6a0),this['toolbar']=new lt(_0x2bf6a0,{'shouldGroupWhenFull':_0x14ff71['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2bf6a0,_0x464e8b);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a206f,_0x5541f7){super(_0x5541f7),this['sourceElement']=_0x3a206f,this['model']['document']['createRoot']();const _0x5050b9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5050b9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x48c6ca,_0x5ac099){const _0x364add=new this(_0x48c6ca,_0x5ac099);return await _0x364add['initPlugins'](),await _0x364add['ui']['init'](_0x48c6ca),await _0x364add['data']['init'](_0x364add['config']['get']('initialData')||''),_0x364add['fire']('ready'),_0x364add;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3a930c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x782ba){function _0x7f8cbc(_0x3db420){return _0x3db420['map'](_0x176a43=>String['fromCharCode'](_0x176a43))['join']('');}super(_0x782ba),this['result']='end',_0x782ba[_0x7f8cbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7f8cbc([0x76,0x69,0x65,0x77])][_0x7f8cbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7f8cbc([0x61,0x75,0x74,0x6f]),_0x782ba[_0x7f8cbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7f8cbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7f8cbc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7f8cbc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7f8cbc([0x6f,0x6b])});}}class k extends _0x3a930c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5c7195){if(super(_0x5c7195),!this['editor']['config']['get']('revisionHistory'))throw new _0x26b2e5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x44178e=>this['_showRevisionViewer']({..._0x44178e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x14b390=>this['_closeRevisionViewer'](_0x14b390)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4808ea=>this['_restoreRevision'](_0x4808ea)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x142b14){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x142b14;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2c4667){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2c4667);}['getRevision'](_0x17f169){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x17f169);}['getRevisions'](_0x108353){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x108353||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xea70a6=this['editor'],_0x29ed72=_0x25947f(_0xea70a6,p),_0x3f986b=_0xea70a6['plugins']['get']('RevisionTracker'),_0x534ae9=_0xea70a6['plugins']['get']('Users')['users'];return _0x29ed72['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x29ed72['lazyRoots'],(_0x29ed72['plugins']['push'](Rt,d,g,class extends _0x3a930c{static get['requires'](){return[d,'Users'];}['init'](){const _0x2f8ae7=this['editor']['plugins']['get']('Users');for(const _0xed9fc0 of _0x534ae9)_0xed9fc0['isAnonymous']||_0x2f8ae7['getUser'](_0xed9fc0['id'])||_0x2f8ae7['addUser'](_0xed9fc0);const _0x127ac9=_0x3f986b['repository']['getRevisions']();let _0x90b34f=null;const _0x59a7e7=this['editor']['plugins']['get']('RevisionViewer');_0x59a7e7['adapter']=_0x3f986b['adapter'],_0x59a7e7['bind']('isEnabled')['to'](_0x3f986b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xea70a6,'isReadOnly',_0x379e93=>!_0x379e93);for(const _0x4df68e of _0x127ac9){const _0x42087a=null===_0x4df68e['creator'];if(_0x42087a&&_0x4df68e['toVersion']===_0x4df68e['fromVersion'])continue;const _0x5a7d87=_0x4df68e['toJSON']();_0x59a7e7['addRevisionData'](_0x5a7d87,(_0x379eab,_0x2f40e7,_0x10d114)=>{if(_0x42087a){if(_0x90b34f)_0x90b34f['_update'](_0x379eab,_0x2f40e7);else{if(!_0x2f40e7){const _0x20a364=_0x10d114['toJSON']();_0x20a364['id']=_0x47d60e(),_0x3f986b['saveRevision'](_0x20a364,_0x10d114['toVersion'])['then'](_0x50607c=>{_0x90b34f=_0x50607c;});}}}else _0x4df68e['_update'](_0x379eab,_0x2f40e7);});}}},w),_0x29ed72);}['_enhanceShowRevisionViewerCallback'](){const _0x486b4f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x287ad7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2f0cf4=this['editor']['plugins']['get']('Autosave');await _0x2f0cf4['save']();}else await _0x287ad7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5221a2=this['editor']['plugins']['get']('Dialog');_0x5221a2['isOpen']&&_0x5221a2['hide']();}const _0x189a50=this['_getRevisionViewerEditorConfig']();return _0x486b4f(_0x189a50)['then'](_0x1587c2=>{return(this['_viewerEditor']=_0x1587c2,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1587c2;})['catch'](_0x5cd9eb=>(console['error'](_0x5cd9eb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x10c747=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x10c747(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3ef62c=this['editor']['plugins']['get']('Annotations');_0x3ef62c['refreshVisibility'](),_0x3ef62c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x25d120){const _0x1f7ef3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202192=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1be7b8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1be7b8,_0x25d120)['then'](_0x3f07a3=>(_0x202192['style']['display']='block',_0x1f7ef3['style']['display']='none',_0x3f07a3));}['_closeRevisionViewer'](_0x1ab418){const _0xab42e2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xab42e2['style']['display']='',_0x1ab418['destroy']();}async['_restoreRevision'](_0x4fe33b){const _0x8a803a=this['editor'],_0x4630a2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xeab779=_0x8a803a['plugins']['get']('RevisionTracker'),_0x2317df=_0x4630a2['repository']['getRevision'](_0x4fe33b);let _0x44df1d,_0x29046d,_0x164bef;try{_0x44df1d=await _0x4630a2['getRevisionData'](_0x2317df),_0x29046d=await _0x4630a2['getRevisionRootsAttributes'](_0x2317df);}catch(_0x18a9c2){return void console['error'](_0x18a9c2);}_0x8a803a['model']['change'](_0x306c7c=>{for(const _0x5c41ed of Array['from'](_0x8a803a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x306c7c['removeMarker'](_0x5c41ed);}),_0x4630a2['isReady']=!0x1,_0x8a803a['model']['enqueueChange'](_0x18c3bd=>{_0x18c3bd['setSelection'](null),_0x18c3bd['removeSelectionAttribute'](_0x8a803a['model']['document']['selection']['getAttributeKeys']());const _0xde3e90=Object['keys'](_0x44df1d);for(const _0x2dcdfb of _0x8a803a['model']['document']['roots'])'$graveyard'!=_0x2dcdfb['rootName']&&_0x2dcdfb['isAttached']()&&!_0xde3e90['includes'](_0x2dcdfb['rootName'])&&_0x18c3bd['detachRoot'](_0x2dcdfb);for(const _0x3928fd of _0xde3e90){let _0x4a0f41=_0x8a803a['model']['document']['getRoot'](_0x3928fd);_0x4a0f41&&_0x4a0f41['isAttached']()||(_0x4a0f41=_0x18c3bd['addRoot'](_0x3928fd));const _0x434a08=_0x29046d[_0x3928fd],_0x128798=Object['keys'](_0x434a08),_0x2cf80f=_0x44df1d[_0x3928fd];for(const _0x54930e of _0x4a0f41['getAttributeKeys']())_0x128798['includes'](_0x54930e)||_0x18c3bd['removeAttribute'](_0x54930e,_0x4a0f41);for(const _0x1dab0f of _0x128798)_0x18c3bd['setAttribute'](_0x1dab0f,_0x29046d[_0x3928fd][_0x1dab0f],_0x4a0f41);_0x18c3bd['remove'](_0x18c3bd['createRangeIn'](_0x4a0f41)),_0x18c3bd['insert'](_0x8a803a['data']['parse'](_0x2cf80f,_0x4a0f41),_0x4a0f41,0x0);}});const _0x5a5a4e=m(_0x8a803a['locale'],'Restored');if(_0x2317df['name'])_0x164bef=-0x1==_0x2317df['name']['indexOf'](_0x5a5a4e)?_0x5a5a4e+':\x20'+_0x2317df['name']:_0x2317df['name'];else _0x164bef=_0x5a5a4e+':\x20'+(_0x2317df['createdAt']['toLocaleDateString'](_0x8a803a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2317df['createdAt']['toLocaleTimeString'](_0x8a803a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xeab779['saveRevision']({'name':_0x164bef}),_0x4630a2['isReady']=!0x0,_0x8a803a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5edfe4){super(_0x5edfe4),this['_revisionViewer']=_0x5edfe4['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2afad4=this['_revisionsRepository']['_revisions'],_0x18e2b4=this['_createRevisionActions'](),_0x460907=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x2afad4,_0x18e2b4,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',(_0x1e26b,_0xebd192)=>{_0xebd192['revisionViews']['on']('add',(_0x3012a3,_0x957727)=>{_0x957727['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)),_0x460907['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1ee0da=this['_revisionsRepository']['getRevision'](0x0);if(_0x1ee0da){const _0x2d0570=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ee0da['id']);this['_revisionViewer']['compare'](_0x1ee0da,_0x2d0570);}}['_handleRevisionSelected'](_0x160511,_0xa6b137){const _0x387d81=this['_revisionsRepository']['getRevision'](_0xa6b137['id']),_0x4a9b6c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x387d81['id']);this['_revisionViewer']['compare'](_0x387d81,_0x4a9b6c);}['_handleRevisionSetName'](_0x1eb030,_0x3b3768){this['_revisionsRepository']['getRevision'](_0x3b3768['id'])['setName'](_0x3b3768['name']);}['_handleDiffChange'](_0x384d07,_0x1aa79a,_0x123c53){const _0x443d59=this['_revisionsRepository']['getRevisionsInDiff'](_0x123c53);_0x443d59['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x443d59),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x443d59[0x0]));}['_createRevisionActions'](){const _0x2ad255=this['editor'],_0x4c1029=w['availableRevisionActions'],_0x27c063=_0x2ad255['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x27c063['length'])return _0x27c063['map'](_0x54bbbc=>{const _0x25ea0c='string'==typeof _0x54bbbc?Object['assign']({},_0x4c1029[_0x54bbbc]):_0x54bbbc;return _0x25ea0c['action']=_0x25ea0c['action']['bind'](this,_0x2ad255),_0x25ea0c['isVisible']&&(_0x25ea0c['isVisible']=_0x25ea0c['isVisible']['bind'](this,_0x2ad255)),_0x25ea0c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x508d4c},_0x56272c)=>{const _0x426402=_0x508d4c['get'](d),_0x280b90=_0x426402['repository'];let _0x16235a=_0x426402['diff']['newRevisionId'],_0x4fb071=_0x56272c['id'];_0x280b90['getIndex'](_0x16235a)>_0x280b90['getIndex'](_0x4fb071)&&([_0x16235a,_0x4fb071]=[_0x4fb071,_0x16235a]),_0x426402['compare'](_0x16235a,_0x4fb071);},'isVisible':({plugins:_0x3aa623},_0x298495)=>{const _0x422449=_0x3aa623['get'](d);return!(_0x422449['repository']['getRevisionsInDiff'](_0x422449['diff'])['length']>0x2)&&!_0x298495['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x40505a,{id:_0x1bfedb})=>{_0x40505a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1bfedb);},'isVisible':({plugins:_0x105c5a},_0x35e5da)=>!!_0x105c5a['get'](d)['repository']['getLaterVisibleRevision'](_0x35e5da['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x598cef},{id:_0xd4bbd,revisionNameView:_0x1df0a1})=>{const _0x3cd19a=_0x598cef['get'](d),_0xba2786=_0x3cd19a['repository']['getEarlierVisibleRevision'](_0xd4bbd);_0x3cd19a['compare'](_0xd4bbd,_0xba2786),_0x1df0a1['focus'](),_0x1df0a1['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x32ee65,_0x37f207){super(_0x32ee65),this['_view']=_0x37f207,this['_toolbarConfig']=ot(_0x32ee65['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2531da){const _0x57d90a=this['editor'],_0xb01e30=this['view'],_0x578580=_0x57d90a['editing']['view'],_0x33ebec=_0xb01e30['editable'],_0x3f3d75=_0x578580['document']['getRoot']();_0x33ebec['name']=_0x3f3d75['rootName'],_0xb01e30['render']();const _0x9649b0=_0x33ebec['element'];this['setEditableElement'](_0x33ebec['name'],_0x9649b0),_0xb01e30['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x578580['attachDomRoot'](_0x9649b0),this['_elementReplacer']['replace'](_0x2531da,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xedd734=this['view'],_0x2b5a5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2b5a5['detachDomRoot'](_0xedd734['editable']['name']),_0xedd734['destroy']();}['_initToolbar'](){const _0x44b8d0=this['view'];_0x44b8d0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x44b8d0['stickyPanel']['limiterElement']=_0x44b8d0['element'],_0x44b8d0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xb31db8})=>_0xb31db8),_0x44b8d0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x44b8d0['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x13954a,_0x161a1c,_0x49cfe4={}){super(_0x13954a),this['stickyPanel']=new ut(_0x13954a),this['toolbar']=new lt(_0x13954a,{'shouldGroupWhenFull':_0x49cfe4['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x13954a,_0x161a1c);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xa7d56c,_0x477ef2){super(_0x477ef2),this['sourceElement']=_0xa7d56c,this['model']['document']['createRoot']();const _0x542ee9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x542ee9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x26ee62,_0x261377){const _0x4042c8=new this(_0x26ee62,_0x261377);return await _0x4042c8['initPlugins'](),await _0x4042c8['ui']['init'](_0x26ee62),await _0x4042c8['data']['init'](_0x4042c8['config']['get']('initialData')||''),_0x4042c8['fire']('ready'),_0x4042c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x2fef22{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7babaa){function _0xc85fff(_0x42d815){return _0x42d815['map'](_0x165fdb=>String['fromCharCode'](_0x165fdb))['join']('');}super(_0x7babaa),this['result']='end',_0x7babaa[_0xc85fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc85fff([0x76,0x69,0x65,0x77])][_0xc85fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc85fff([0x61,0x75,0x74,0x6f]),_0x7babaa[_0xc85fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc85fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc85fff([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc85fff([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc85fff([0x6f,0x6b])});}}class k extends _0x2fef22{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3aea2a){if(super(_0x3aea2a),!this['editor']['config']['get']('revisionHistory'))throw new _0xfe2b9b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5af4da=>this['_showRevisionViewer']({..._0x5af4da,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x7490bf=>this['_closeRevisionViewer'](_0x7490bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x513303=>this['_restoreRevision'](_0x513303)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xaa2ee0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xaa2ee0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x163a3b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x163a3b);}['getRevision'](_0x4f9011){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4f9011);}['getRevisions'](_0x11b500){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x11b500||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4549f4=this['editor'],_0x4a454d=_0x1d0f8a(_0x4549f4,p),_0x208e15=_0x4549f4['plugins']['get']('RevisionTracker'),_0x564b47=_0x4549f4['plugins']['get']('Users')['users'];return _0x4a454d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a454d['lazyRoots'],(_0x4a454d['plugins']['push'](Rt,d,g,class extends _0x2fef22{static get['requires'](){return[d,'Users'];}['init'](){const _0x7cf77d=this['editor']['plugins']['get']('Users');for(const _0x149b96 of _0x564b47)_0x149b96['isAnonymous']||_0x7cf77d['getUser'](_0x149b96['id'])||_0x7cf77d['addUser'](_0x149b96);const _0x527c15=_0x208e15['repository']['getRevisions']();let _0x261f03=null;const _0x54f417=this['editor']['plugins']['get']('RevisionViewer');_0x54f417['adapter']=_0x208e15['adapter'],_0x54f417['bind']('isEnabled')['to'](_0x208e15),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4549f4,'isReadOnly',_0x2a7f44=>!_0x2a7f44);for(const _0x332995 of _0x527c15){const _0x112891=null===_0x332995['creator'];if(_0x112891&&_0x332995['toVersion']===_0x332995['fromVersion'])continue;const _0x1e941f=_0x332995['toJSON']();_0x54f417['addRevisionData'](_0x1e941f,(_0x41cdc3,_0x1ba30e,_0x3a8f84)=>{if(_0x112891){if(_0x261f03)_0x261f03['_update'](_0x41cdc3,_0x1ba30e);else{if(!_0x1ba30e){const _0x533bd1=_0x3a8f84['toJSON']();_0x533bd1['id']=_0x32a6fe(),_0x208e15['saveRevision'](_0x533bd1,_0x3a8f84['toVersion'])['then'](_0x504d2a=>{_0x261f03=_0x504d2a;});}}}else _0x332995['_update'](_0x41cdc3,_0x1ba30e);});}}},w),_0x4a454d);}['_enhanceShowRevisionViewerCallback'](){const _0x16897a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c393d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2edaae=this['editor']['plugins']['get']('Autosave');await _0x2edaae['save']();}else await _0x3c393d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2908b7=this['editor']['plugins']['get']('Dialog');_0x2908b7['isOpen']&&_0x2908b7['hide']();}const _0x23f983=this['_getRevisionViewerEditorConfig']();return _0x16897a(_0x23f983)['then'](_0x888c77=>{return(this['_viewerEditor']=_0x888c77,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x888c77;})['catch'](_0x5267dc=>(console['error'](_0x5267dc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x44487d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x44487d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x478118=this['editor']['plugins']['get']('Annotations');_0x478118['refreshVisibility'](),_0x478118['refreshPositioning']();}})));}['_showRevisionViewer'](_0x199dc4){const _0x211dda=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x248392=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8a0707=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x8a0707,_0x199dc4)['then'](_0x332e48=>(_0x248392['style']['display']='block',_0x211dda['style']['display']='none',_0x332e48));}['_closeRevisionViewer'](_0x1db955){const _0x259550=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x259550['style']['display']='',_0x1db955['destroy']();}async['_restoreRevision'](_0x2d2240){const _0x5279ac=this['editor'],_0x41e006=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5849d4=_0x5279ac['plugins']['get']('RevisionTracker'),_0xd538c5=_0x41e006['repository']['getRevision'](_0x2d2240);let _0x92a888,_0xa3633,_0x192e63;try{_0x92a888=await _0x41e006['getRevisionData'](_0xd538c5),_0xa3633=await _0x41e006['getRevisionRootsAttributes'](_0xd538c5);}catch(_0x4aea5b){return void console['error'](_0x4aea5b);}_0x5279ac['model']['change'](_0x33bf23=>{for(const _0x559a2f of Array['from'](_0x5279ac['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33bf23['removeMarker'](_0x559a2f);}),_0x41e006['isReady']=!0x1,_0x5279ac['model']['enqueueChange'](_0x4e1bc0=>{_0x4e1bc0['setSelection'](null),_0x4e1bc0['removeSelectionAttribute'](_0x5279ac['model']['document']['selection']['getAttributeKeys']());const _0x5a950f=Object['keys'](_0x92a888);for(const _0x27a80c of _0x5279ac['model']['document']['roots'])'$graveyard'!=_0x27a80c['rootName']&&_0x27a80c['isAttached']()&&!_0x5a950f['includes'](_0x27a80c['rootName'])&&_0x4e1bc0['detachRoot'](_0x27a80c);for(const _0xf0a644 of _0x5a950f){let _0x264e2d=_0x5279ac['model']['document']['getRoot'](_0xf0a644);_0x264e2d&&_0x264e2d['isAttached']()||(_0x264e2d=_0x4e1bc0['addRoot'](_0xf0a644));const _0xf152e3=_0xa3633[_0xf0a644],_0x43a560=Object['keys'](_0xf152e3),_0x16be95=_0x92a888[_0xf0a644];for(const _0x48949c of _0x264e2d['getAttributeKeys']())_0x43a560['includes'](_0x48949c)||_0x4e1bc0['removeAttribute'](_0x48949c,_0x264e2d);for(const _0x495c92 of _0x43a560)_0x4e1bc0['setAttribute'](_0x495c92,_0xa3633[_0xf0a644][_0x495c92],_0x264e2d);_0x4e1bc0['remove'](_0x4e1bc0['createRangeIn'](_0x264e2d)),_0x4e1bc0['insert'](_0x5279ac['data']['parse'](_0x16be95,_0x264e2d),_0x264e2d,0x0);}});const _0x595523=m(_0x5279ac['locale'],'Restored');if(_0xd538c5['name'])_0x192e63=-0x1==_0xd538c5['name']['indexOf'](_0x595523)?_0x595523+':\x20'+_0xd538c5['name']:_0xd538c5['name'];else _0x192e63=_0x595523+':\x20'+(_0xd538c5['createdAt']['toLocaleDateString'](_0x5279ac['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd538c5['createdAt']['toLocaleTimeString'](_0x5279ac['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5849d4['saveRevision']({'name':_0x192e63}),_0x41e006['isReady']=!0x0,_0x5279ac['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};