@ckeditor/ckeditor5-revision-history 44.0.0-alpha.3 → 44.0.0-alpha.4

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 _0x585a54,uid as _0x39e673,Collection as _0xe94121,logWarning as _0x38e91a,FocusTracker as _0x14bb7d,KeystrokeHandler as _0x111389,scrollViewportToShowTarget as _0x596890,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4264c4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4c4f16,set as _0xee9c7,unset as _0x54bfea,isEqual as _0x3cdcfc}from'lodash-es';import{Plugin as _0x749fac,PendingActions as _0x3ed924,icons as _0x363a49,Command as _0x4504ec,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x262ae6,getMarkerDomElement as _0x31c5eb,ConfirmMixin as _0x5ad316,sanitizeEditorConfig as _0x35e906}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x51b7f4,ViewText as _0x56c270,ViewElement as _0x34cc4b,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x173824,ViewAttributeElement as _0xf7b691,ViewEmptyElement as _0x20d1bc,ViewRawElement as _0x121912,ViewUIElement as _0x4cde5d,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2ff6e1,injectCssTransitionDisabler as ts,submitHandler as _0x53b023,LabeledFieldView as at,createLabeledInputText as _0x3ca5a4,createDropdown as _0x5c649b,ListView as te,ListItemView as _0x4bd843,ButtonView as _0x8c1ed8,MenuBarMenuView as _0x3c3b2d,MenuBarMenuListView as _0x6aef71,MenuBarMenuListItemView as _0xc81641,MenuBarMenuListItemButtonView as _0x1f9553,ContextualBalloon as _0x31879f,ToolbarSeparatorView as _0x453ecf,IconView as _0x5a27dd,addListToDropdown as _0x35ca2e,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1222bf}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x585a54(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1f71ed){super(),this['id']=_0x1f71ed['id']||_0x39e673(),this['creator']=_0x1f71ed['creator']||null,this['authors']=_0x1f71ed['authors']||[],this['diffData']=_0x1f71ed['diffData']||null,this['toVersion']=_0x1f71ed['toVersion']||0x0,this['fromVersion']=_0x1f71ed['fromVersion']||0x0,this['set']('name',_0x1f71ed['name']||''),this['set']('createdAt',_0x1f71ed['createdAt']||new Date()),this['set']('attributes',_0x1f71ed['attributes']||{});}['setName'](_0x35a9c2){this['_update']({'name':_0x35a9c2});}['setAttribute'](_0x220eb2,_0x29a529){const _0x3e6d0e=_0x4c4f16(this['attributes']);_0xee9c7(_0x3e6d0e,_0x220eb2,_0x29a529),this['_update']({'attributes':_0x3e6d0e});}['removeAttribute'](_0x261fc6){const _0x8ec7b0=_0x4c4f16(this['attributes']);_0x54bfea(_0x8ec7b0,_0x261fc6),this['_update']({'attributes':_0x8ec7b0});}['_update'](_0x3416c4,_0x88b32=!0x1){let _0x368136=!0x1;const _0x3ee6a1={'id':this['id']},_0x1a7104=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x450199 of _0x1a7104){const _0x37651e=_0x3416c4[_0x450199];void 0x0!==_0x37651e&&_0x37651e!==this[_0x450199]&&(this[_0x450199]=_0x37651e,_0x3ee6a1[_0x450199]=_0x37651e,_0x368136=!0x0);}_0x368136&&(_0x3ee6a1['authors']&&(_0x3ee6a1['authorsIds']=_0x3ee6a1['authors']['map'](_0x1e7a43=>_0x1e7a43['id']),delete _0x3ee6a1['authors']),this['fire']('_update',_0x3ee6a1,_0x88b32));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x25eea0=>_0x25eea0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x749fac{['_revisions'];static get['requires'](){return[_0x262ae6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x446181){super(_0x446181),this['_revisions']=new _0xe94121();}['afterInit'](){!async function(_0x2450d4){const _0x259ae0=_0x73a868([0x4c,0x72,0x6d,0x6b,0x5a,0x71,0x70,0x78,0x69,0x6e,0x41,0x51,0x4e,0x47,0x76,0x42,0x64,0x74,0x66,0x77,0x79,0x32,0x58,0x7a,0x36,0x44,0x59,0x67,0x52,0x53,0x46,0x6f,0x62,0x45,0x6c,0x48,0x61,0x55,0x73,0x33,0x31,0x56,0x4a,0x68,0x65,0x4b,0x30,0x6a,0x34,0x4d,0x39,0x75,0x54,0x50,0x38,0x57,0x4f,0x37,0x43,0x35,0x63,0x49]),_0x4540e6=0xeb829,_0x49ae50=0x383fb105,_0x70a852=0x3838e6b5^_0x49ae50,_0x1992b6=window[_0x73a868([0x44,0x61,0x74,0x65])][_0x73a868([0x6e,0x6f,0x77])](),_0x5e31f2=_0x2450d4[_0x73a868([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x117325=new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x225516=>{_0x5e31f2[_0x73a868([0x6f,0x6e,0x63,0x65])](_0x73a868([0x72,0x65,0x61,0x64,0x79]),_0x225516);}),_0xeacedd={[_0x73a868([0x6b,0x74,0x79])]:_0x73a868([0x45,0x43]),[_0x73a868([0x75,0x73,0x65])]:_0x73a868([0x73,0x69,0x67]),[_0x73a868([0x63,0x72,0x76])]:_0x73a868([0x50,0x2d,0x32,0x35,0x36]),[_0x73a868([0x78])]:_0x73a868([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]),[_0x73a868([0x79])]:_0x73a868([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]),[_0x73a868([0x61,0x6c,0x67])]:_0x73a868([0x45,0x53,0x32,0x35,0x36])},_0x34868c=_0x5e31f2[_0x73a868([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x73a868([0x67,0x65,0x74])](_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x345632(){let _0x578277,_0x11b580=null,_0x292fde=null;try{if(_0x34868c==_0x73a868([0x47,0x50,0x4c]))return _0x73a868([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x578277=_0x57e80d(),!_0x578277)return _0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x578277[_0x73a868([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292fde=_0x4629ae(_0x578277[_0x73a868([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x578277[_0x73a868([0x6a,0x74,0x69])])),await _0x4411e8()?_0xb17ea6()?_0x3a13e2()?_0x73a868([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1785ce()?(_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x74,0x72,0x69,0x61,0x6c])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25aa32()):_0x73a868([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x73a868([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ea79a){return _0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a13e2(){const _0x278e62=[_0x73a868([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x73a868([0x74,0x72,0x69,0x61,0x6c])][_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1992b6/0x3e8:0xe10*_0x70a852;return _0x578277[_0x73a868([0x65,0x78,0x70])]<_0x278e62;}function _0xb17ea6(){const _0x1b8f01=_0x578277[_0x73a868([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b8f01&&(!!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x2a]))||(!!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x52,0x48]))||!(!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x52,0x52,0x48]))||!_0x5f4b9e())));}function _0x1785ce(){const _0x1b4d1b=_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b4d1b||0x0==_0x1b4d1b[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29682a}=new URL(window[_0x73a868([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b4d1b[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29682a))return!0x0;const _0x2b18b0=_0x29682a[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e]));return _0x1b4d1b[_0x73a868([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465449=>_0x465449[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x2a])))[_0x73a868([0x6d,0x61,0x70])](_0x2f759d=>_0x2f759d[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e])))[_0x73a868([0x73,0x6f,0x6d,0x65])](_0x548204=>_0x2b18b0[_0x73a868([0x65,0x76,0x65,0x72,0x79])]((_0x1a7a15,_0x4e113f)=>_0x548204[_0x4e113f]===_0x1a7a15||_0x548204[_0x4e113f]===_0x73a868([0x2a])));}function _0x25aa32(){return _0x11b580&&_0x292fde?new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x489fd6,_0xbf40fb)=>{_0x11b580[_0x73a868([0x74,0x68,0x65,0x6e])](_0x489fd6,_0xbf40fb),_0x292fde[_0x73a868([0x74,0x68,0x65,0x6e])](_0x560bfc=>{_0x560bfc!=_0x73a868([0x56,0x61,0x6c,0x69,0x64])&&_0x489fd6(_0x560bfc);},_0xbf40fb);}):_0x11b580||_0x292fde||_0x73a868([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4629ae(_0xd2a5a3,_0x1dd3bf){return new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3657c1=>{if(_0x226f57())return _0x3657c1(_0x73a868([0x56,0x61,0x6c,0x69,0x64]));_0x168cc7(),_0x5e31f2[_0x73a868([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2370eb=!0x1;const _0x303713=_0x39e673();function _0x56a14a(_0x4e6bf6){return!!_0x4e6bf6&&(typeof _0x4e6bf6===_0x73a868([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e6bf6===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e6bf6[_0x73a868([0x74,0x68,0x65,0x6e])]===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e6bf6[_0x73a868([0x63,0x61,0x74,0x63,0x68])]===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b406a(_0x4823ec){_0x402dbc(_0x4823ec)[_0x73a868([0x74,0x68,0x65,0x6e])](_0x2f0357=>{if(!_0x2f0357||_0x2f0357[_0x73a868([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x73a868([0x6f,0x6b]))return _0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1996(_0x2e869d(_0x303713+_0x1dd3bf))!=_0x2f0357[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x73a868([0x56,0x61,0x6c,0x69,0x64]);})[_0x73a868([0x74,0x68,0x65,0x6e])](_0x5a5552=>(_0x4c2c14(),_0x5a5552),()=>{const _0x44c926=_0x4213a1();return null==_0x44c926?(_0x4c2c14(),_0x73a868([0x56,0x61,0x6c,0x69,0x64])):_0x73a868(_0x1992b6-_0x44c926>(0x1c333505^_0x49ae50)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x73a868([0x74,0x68,0x65,0x6e])](_0x3657c1)[_0x73a868([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x207b88=0x38095f85^_0x49ae50;function _0x4c2c14(){const _0x547a41=_0x73a868([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1996(_0x2e869d(_0xd2a5a3)),_0x268d2d=_0x105385(_0x3d1996(window[_0x73a868([0x4d,0x61,0x74,0x68])][_0x73a868([0x63,0x65,0x69,0x6c])](_0x1992b6/_0x207b88)));window[_0x73a868([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73a868([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x547a41,_0x268d2d);}function _0x4213a1(){const _0x3e0d5f=_0x73a868([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1996(_0x2e869d(_0xd2a5a3)),_0x24161c=window[_0x73a868([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73a868([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e0d5f);return _0x24161c?window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105385(_0x24161c),0x10)*_0x207b88:null;}function _0x402dbc(_0x544cf0){return new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x279a6d,_0x5a44ee)=>{_0x544cf0[_0x73a868([0x74,0x68,0x65,0x6e])](_0x279a6d,_0x5a44ee),window[_0x73a868([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a44ee,0x383e65c5^_0x49ae50);});}}_0x5e31f2[_0x73a868([0x6f,0x6e])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x557e9b,_0x1d8592)=>{if(_0x1d8592[0x0]!=_0xd2a5a3)return _0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8592[0x1]={..._0x1d8592[0x1],[_0x73a868([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x303713};},{[_0x73a868([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73a868([0x68,0x69,0x67,0x68])}),_0x5e31f2[_0x73a868([0x6f,0x6e])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b2e16=>{_0x56a14a(_0x1b2e16[_0x73a868([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2370eb=!0x0,_0x1b406a(_0x1b2e16[_0x73a868([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x73a868([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73a868([0x6c,0x6f,0x77])}),_0x117325[_0x73a868([0x74,0x68,0x65,0x6e])](()=>{_0x2370eb||_0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x226f57(){return _0x5e31f2[_0x73a868([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73a868([0x76,0x69,0x65,0x77])][_0x73a868([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x73a868([0x61,0x75,0x74,0x6f]);}function _0x168cc7(){_0x5e31f2[_0x73a868([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73a868([0x76,0x69,0x65,0x77])][_0x73a868([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x73a868([0x61,0x75,0x74,0x6f]);}}function _0x8f7cd0(_0x36dda5){const _0x4c1cbf=[new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b4a1=>setTimeout(_0x12b4a1,0x38368fc9^_0x49ae50)),_0x117325[_0x73a868([0x74,0x68,0x65,0x6e])](()=>new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499b34=>{const _0xb80327=0x383fb102^_0x49ae50,_0x26516c=_0x2450d4[_0x73a868([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x35eefc(){_0x26516c[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xb80327&&_0x499b34();}_0x35eefc(),_0x26516c[_0x73a868([0x6f,0x6e])](_0x73a868([0x61,0x64,0x64]),_0x35eefc);})),new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13e2d3=>{function _0x2dde75(){for(const _0x51770f in window)if(window[_0x73a868([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x73a868([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x51770f))&&window[_0x51770f]==_0x4540e6)return _0x13e2d3();_0x5e31f2[_0x73a868([0x73,0x74,0x61,0x74,0x65])]!=_0x73a868([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x73a868([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dde75,0x383fa28d^_0x49ae50);}_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2dde75();})];return window[_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x73a868([0x72,0x61,0x63,0x65])](_0x4c1cbf)[_0x73a868([0x74,0x68,0x65,0x6e])](()=>_0x36dda5);}async function _0x1a48e0(){if(await _0x117325,_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x334cb3=_0x2450d4[_0x73a868([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x127f4d=_0x2450d4[_0x73a868([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])](_0x334cb3[_0x73a868([0x69,0x64])]),_0x223395=_0x2b1cbb(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x223395[_0x73a868([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x334cb3['id'],_0x127f4d?_0x127f4d['id']:null,!0x0),_0x223395[_0x73a868([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x223395[_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x223395[_0x73a868([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x59b193,void(_0x223395[_0x73a868([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x59b193);}if(_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x150856=_0x2b1cbb(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x150856[_0x73a868([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x150856[_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x150856[_0x73a868([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x59b193,_0x150856[_0x73a868([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x59b193;}_0x5e31f2[_0x73a868([0x6d,0x6f,0x64,0x65,0x6c])][_0x73a868([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59b193,_0x5e31f2[_0x73a868([0x6d,0x6f,0x64,0x65,0x6c])][_0x73a868([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59b193,_0x5e31f2[_0x73a868([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x73a868([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4b9e(){return _0x17bc93(_0x73a868([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b1cbb(_0x73a868([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x73a868([0x73,0x74,0x61,0x74,0x65])]==_0x73a868([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42340d(_0x42e9c0){const _0x4d7f18=_0x3e4b3d();_0x5e31f2[_0x4d7f18]=_0x73a868([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])+_0x42e9c0,_0x42e9c0[_0x73a868([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x73a868([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3e4b3d()]=_0x4540e6),_0x42e9c0!=_0x73a868([0x56,0x61,0x6c,0x69,0x64])&&_0x1a48e0();}function _0x3e4b3d(){const _0x437dd4=window[_0x73a868([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x73a868([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x73a868([0x6e,0x6f,0x77])]())[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x73a868([0x2e]),'');let _0x2db33a=_0x73a868([0x4c]);for(let _0x3fbdba=0x0;_0x3fbdba<_0x437dd4[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fbdba+=0x2){let _0x19ad1d=window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437dd4[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fbdba,_0x3fbdba+0x2));_0x19ad1d>=_0x259ae0[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19ad1d-=_0x259ae0[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2db33a+=_0x259ae0[_0x19ad1d];}return _0x2db33a;}function _0x57e80d(){const _0x39e46d=_0x34868c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e]));if(0x3!=_0x39e46d[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17e9bc(_0x39e46d[0x1]);function _0x17e9bc(_0x48ce5c){const _0x1e0c65=_0x22faff(_0x48ce5c);return _0x1e0c65&&_0x396261()?_0x1e0c65:null;function _0x396261(){const _0x206d55=_0x1e0c65[_0x73a868([0x6a,0x74,0x69])],_0xea460=window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x206d55[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x206d55[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c18ea={..._0x1e0c65,[_0x73a868([0x6a,0x74,0x69])]:_0x206d55[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x206d55[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c18ea[_0x73a868([0x76,0x63])],_0x2e869d(_0x4c18ea)==_0xea460;}}}async function _0x4411e8(){let _0x5b934c=!0x0;try{const _0x29370b=_0x34868c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e])),[_0x222143,_0x30f667,_0x570b89]=_0x29370b;return _0x2d99dc(_0x222143),await _0x5a4110(_0x222143,_0x30f667,_0x570b89),_0x5b934c;}catch(_0x14fd26){return!0x1;}function _0x2d99dc(_0x41268b){const _0x22a9cf=_0x22faff(_0x41268b);_0x22a9cf&&_0x22a9cf[_0x73a868([0x61,0x6c,0x67])]==_0x73a868([0x45,0x53,0x32,0x35,0x36])||(_0x5b934c=!0x1);}async function _0x5a4110(_0x188d94,_0x3f827c,_0x404d81){const _0x654df5=window[_0x73a868([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x73a868([0x66,0x72,0x6f,0x6d])](_0xdcbc93(_0x404d81),_0x5d72db=>_0x5d72db[_0x73a868([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c6711=new window[(_0x73a868([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x73a868([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188d94+_0x73a868([0x2e])+_0x3f827c),_0x305ee6=window[_0x73a868([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x73a868([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x305ee6)return;const _0x366168=await _0x305ee6[_0x73a868([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x73a868([0x6a,0x77,0x6b]),_0xeacedd,{[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x45,0x43,0x44,0x53,0x41]),[_0x73a868([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x73a868([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x305ee6[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x45,0x43,0x44,0x53,0x41]),[_0x73a868([0x68,0x61,0x73,0x68])]:{[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x366168,_0x654df5,_0x1c6711)||(_0x5b934c=!0x1);}}function _0x22faff(_0x14a576){return _0x14a576[_0x73a868([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x73a868([0x65,0x79]))?JSON[_0x73a868([0x70,0x61,0x72,0x73,0x65])](_0xdcbc93(_0x14a576)):null;}function _0xdcbc93(_0x30ff70){return window[_0x73a868([0x61,0x74,0x6f,0x62])](_0x30ff70[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x73a868([0x2b]))[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x73a868([0x2f])));}function _0x2e869d(_0x56c427){let _0x10eaf3=0x1505;function _0x386c04(_0x867b4){for(let _0x4677be=0x0;_0x4677be<_0x867b4[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4677be++){const _0x5a0106=_0x867b4[_0x73a868([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4677be);_0x10eaf3=(_0x10eaf3<<0x5)+_0x10eaf3+_0x5a0106,_0x10eaf3&=_0x10eaf3;}}function _0x2ae523(_0x58c45d){Array[_0x73a868([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58c45d)?_0x58c45d[_0x73a868([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ae523):_0x58c45d&&typeof _0x58c45d==_0x73a868([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x73a868([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58c45d)[_0x73a868([0x73,0x6f,0x72,0x74])]()[_0x73a868([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45a0f5,_0x5026e0])=>{_0x386c04(_0x45a0f5),_0x2ae523(_0x5026e0);}):_0x386c04(window[_0x73a868([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58c45d));}return _0x2ae523(_0x56c427),_0x10eaf3>>>0x0;}function _0x3d1996(_0x8101ae){return _0x8101ae[_0x73a868([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x73a868([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x73a868([0x30]));}function _0x105385(_0x1d144c){return _0x1d144c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])]('')[_0x73a868([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x73a868([0x6a,0x6f,0x69,0x6e])]('');}function _0x17bc93(_0x4a0a30){return _0x5e31f2[_0x73a868([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x73a868([0x68,0x61,0x73])](_0x4a0a30);}function _0x2b1cbb(_0x5d9cab){return _0x5e31f2[_0x73a868([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x73a868([0x67,0x65,0x74])](_0x5d9cab);}function _0x59b193(){}function _0x73a868(_0x1c4bbe){return _0x1c4bbe['map'](_0x276c7b=>String['fromCharCode'](_0x276c7b))['join']('');}_0x42340d(await _0x345632());}(this);}['createRevision'](_0x1f24a6){const _0x5c3640=this['editor']['plugins']['get']('Users');return new a({'id':_0x1f24a6['id'],'name':_0x1f24a6['name'],'creator':_0x1f24a6['creatorId']?_0x5c3640['getUser'](_0x1f24a6['creatorId']):null,'diffData':_0x1f24a6['diffData']||_0x1f24a6['data'],'authors':_0x1f24a6['authorsIds']['map'](_0x39f923=>_0x5c3640['getUser'](_0x39f923)),'createdAt':new Date(_0x1f24a6['createdAt']),'attributes':_0x1f24a6['attributes'],'fromVersion':_0x1f24a6['fromVersion'],'toVersion':_0x1f24a6['toVersion']});}['addRevision'](_0x185752,_0x26f32e=0x0){this['_revisions']['add'](_0x185752,_0x26f32e);}['getRevision'](_0x1e9f93){return this['_revisions']['get'](_0x1e9f93);}['getRevisions'](_0x8dd8d7={'toJSON':!0x1}){const _0x474f9a=Array['from'](this['_revisions']);return _0x474f9a['reverse'](),_0x8dd8d7['toJSON']?_0x474f9a['map'](_0x1cf35a=>_0x1cf35a['toJSON']()):_0x474f9a;}['getIndex'](_0x461143){return this['_revisions']['getIndex'](_0x461143);}['getEarlierVisibleRevision'](_0x142c2b){const [,_0x164f43]=this['getRevisionsIterator'](_0x142c2b,{'direction':'earlier'});return _0x164f43;}['getLaterVisibleRevision'](_0x395e16){const [,_0x3c2a6d]=this['getRevisionsIterator'](_0x395e16,{'direction':'later'});return _0x3c2a6d;}['getRevisionsInDiff'](_0x21698d){const _0x47c0cd=[];for(const _0x48a026 of this['getRevisionsIterator'](_0x21698d['newRevisionId']))if(_0x47c0cd['push'](_0x48a026),_0x48a026['id']===_0x21698d['oldRevisionId'])break;return _0x47c0cd;}*['getRevisionsIterator'](_0x365c96,{direction:_0x2276f5='earlier',filter:_0x579c19=()=>!0x0}={}){const _0x32f208='earlier'===_0x2276f5?0x1:-0x1;let _0x3c13ea=this['_revisions']['get'](_0x365c96),_0x19eb0d=this['getIndex'](_0x3c13ea);for(yield _0x3c13ea;_0x3c13ea;){if(_0x19eb0d+=_0x32f208,_0x3c13ea=this['getRevision'](_0x19eb0d),!_0x3c13ea)return;_0x579c19(_0x3c13ea)&&(yield _0x3c13ea);}}}function R(_0x42e732,_0x6c6135,_0x56fbe5){const t=_0x42e732['t'];switch(_0x6c6135){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'},_0x56fbe5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56fbe5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x173824,'a':_0xf7b691,'e':_0x20d1bc,'r':_0x121912,'u':_0x4cde5d};class l extends _0x749fac{['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[_0x262ae6,j,_0x3ed924];}constructor(_0x9fe56f){super(_0x9fe56f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x99fa74=_0x39e673();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x99fa74},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 _0x10f677=this['repository']['getRevision'](0x0),_0x46f1c9=_0x10f677&&null===_0x10f677['creator']?_0x10f677:null;if(this['_continueCurrentRevision']=!!_0x46f1c9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1964e0=this['_source']['getCurrentRevisionId'](),_0xf97bd0=this['repository']['getRevision'](_0x1964e0);if(_0xf97bd0)this['_startingVersion']=_0xf97bd0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4ce3be=this['_source']['history']['_operations']['find'](_0x4e889e=>!_0x4e889e['_isInit']),_0x596653=_0x4ce3be?_0x4ce3be['baseVersion']:this['_source']['history']['version'];_0x10f677?(_0x10f677['toVersion']<_0x596653&&_0x10f677['_update']({'toVersion':_0x596653}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id'],this['_startingVersion']=_0x46f1c9['fromVersion']):(this['_startingVersion']=_0x10f677['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x596653,this['_continueCurrentRevision']=!0x1);}}else _0x46f1c9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46f1c9['toVersion'],this['editor']['model']['document']['history']['version']),_0x46f1c9['fromVersion']===_0x46f1c9['toVersion']?(0x0!==_0x46f1c9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id'],this['_startingVersion']=_0x46f1c9['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',_0x1d5a44=>!_0x1d5a44),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x498876=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52854a;for(const _0x4a7fa0 in _0x498876){const _0x16c61e=_0x4a7fa0,_0x5119ea=_0x498876[_0x16c61e];if('revisionHistoryLicenseKeyValid'==_0x5119ea||'revisionHistoryLicenseKeyInvalid'==_0x5119ea||'revisionHistoryLicenseKeyExpired'==_0x5119ea||'revisionHistoryLicenseKeyDomainLimit'==_0x5119ea||'revisionHistoryLicenseKeyNotAllowed'==_0x5119ea||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5119ea||'revisionHistoryLicenseKeyTrialLimit'==_0x5119ea||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5119ea||'revisionHistoryLicenseKeyUsageLimit'==_0x5119ea){delete _0x498876[_0x16c61e],_0x52854a=_0x5119ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x52854a&&_0x498876['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x52854a&&_0x498876['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x52854a&&_0x498876['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x52854a&&_0x498876['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x52854a&&_0x498876['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x52854a&&_0x498876['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x52854a&&_0x498876['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x52854a&&_0x498876['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2cb741=this['repository']['getRevision'](0x0),_0x3523f2=await this['getRevisionDocumentData'](_0x2cb741),_0x13a010=await this['getRevisionRootsAttributes'](_0x2cb741);this['_replaceEditorDataWithRevisionData'](_0x3523f2,_0x13a010);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xc6fb69){this['_source']=_0xc6fb69;}async['update'](){const _0x2055f7=await this['_source']['getLatestVersion']();if(_0x2055f7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x231f20=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2055f7});_0x231f20['authors']=_0x231f20['authorsIds']['map'](_0x43d2cf=>this['editor']['plugins']['get']('Users')['getUser'](_0x43d2cf)),this['currentRevision']['_update'](_0x231f20);}}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'](_0x28a975={},_0x9fc488=null){const _0xda5c5e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x9fc488>this['currentRevision']['toVersion']&&(_0x9fc488=null),null===_0x9fc488&&(_0x9fc488=await this['_source']['getLatestVersion']());const _0x1003d6=this['_getFromVersion'](_0x9fc488),_0x2b29c5=this['buildRevisionData']({'from':_0x1003d6,'to':_0x9fc488});if(this['currentRevision']['toVersion']<_0x9fc488){const _0x3aa554=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x9fc488,'to':_0x9fc488});_0x3aa554['authors']=[],_0x3aa554['authorsIds']=[],_0x3aa554['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3aa554,!0x0),delete _0x3aa554['authors'],_0xda5c5e['push'](_0x3aa554);}_0x28a975['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28a975['name']=_0x28a975['name']||null,_0x28a975['id']=_0x28a975['id']||_0x39e673(),_0x28a975={..._0x28a975,..._0x2b29c5};const _0x53b2ff=this['addRevisionData'](_0x28a975);_0xda5c5e['push'](_0x28a975);const _0x1d38fb=this['repository']['getIndex'](_0x53b2ff);if(0x0!==_0x1d38fb){const _0x43fcc0=this['repository']['getRevision'](_0x1d38fb-0x1);if(_0x43fcc0['fromVersion']!==_0x9fc488){const _0x340a43=this['_revisionDataBuilder']['getData'](_0x9fc488,_0x43fcc0['toVersion']),_0x488ef1={'id':_0x43fcc0['id'],'diffData':_0x340a43['diffData'],'authorsIds':_0x340a43['authorsIds'],'authors':_0x340a43['authorsIds']['map'](_0x5ece4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x5ece4c)),'fromVersion':_0x9fc488};_0x43fcc0===this['currentRevision']&&(_0x488ef1['createdAt']=new Date(_0x28a975['createdAt']['getTime']()+0xa)),_0x43fcc0['_update'](_0x488ef1,!0x0),delete _0x488ef1['authors'],_0xda5c5e['push'](_0x488ef1);}}if(this['adapter']){for(const _0x14f132 of _0xda5c5e)this['_bufferUpdate'](_0x14f132['id'],_0x14f132,!0x0);this['sendBufferedUpdates']();}return _0x53b2ff;}['addRevisionData'](_0x5dfa8d){const _0x3ab3ee=this['repository']['createRevision'](_0x5dfa8d);return this['adapter']&&_0x3ab3ee['on']('_update',(_0xa3d909,_0x51b7c0,_0x4f7cc6)=>{_0x4f7cc6||(this['_bufferUpdate'](_0x51b7c0['id'],_0x51b7c0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3ab3ee,this['_findInsertionIndex'](_0x3ab3ee)),_0x3ab3ee;}async['getRevisionDocumentData'](_0x4e72af){await this['_loadRevisionData'](_0x4e72af);const _0x23ee3f={};for(const _0x5ba6ea in _0x4e72af['diffData']){if(_0x4e72af['diffData'][_0x5ba6ea]['attachChange']&&!_0x4e72af['diffData'][_0x5ba6ea]['attachChange']['isAttached'])continue;const _0x263b1d=this['_removeRevisionMarkers'](JSON['parse'](_0x4e72af['diffData'][_0x5ba6ea]['insertions'])),_0x16448b=this['editor']['editing']['view']['document'],_0x5395c0=new _0x51b7f4(_0x16448b,_0x263b1d['map'](_0x2449bb=>V(_0x2449bb,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x23ee3f[_0x5ba6ea]=this['editor']['data']['processor']['toData'](_0x5395c0),this['editor']['data']['processor']['useFillerType']('default');}return _0x23ee3f;}async['getRevisionRootsAttributes'](_0x4595c1){await this['_loadRevisionData'](_0x4595c1);const _0x2a6ac7={};for(const _0x35030d in _0x4595c1['diffData'])_0x4595c1['diffData'][_0x35030d]['attachChange']&&!_0x4595c1['diffData'][_0x35030d]['attachChange']['isAttached']||(_0x2a6ac7[_0x35030d]=_0x4595c1['diffData'][_0x35030d]['attributesAfter']||{});return _0x2a6ac7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x41bcff=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x58326f=0x0;_0x58326f<_0x41bcff['length'];_0x58326f++){const _0x162a3d=_0x41bcff[_0x58326f];let _0x56efeb=!0x1;for(const _0x2f2b56 of Object['keys'](_0x162a3d))void 0x0===_0x162a3d[_0x2f2b56]?delete _0x162a3d[_0x2f2b56]:'id'!==_0x2f2b56&&(_0x56efeb=!0x0);_0x56efeb||(_0x41bcff[_0x58326f]=null);}if(_0x41bcff=_0x41bcff['filter'](_0x18d1dc=>null!==_0x18d1dc),!_0x41bcff['length'])return;for(let _0x1c6471=0x0;_0x1c6471<_0x41bcff['length'];_0x1c6471++){const _0x2ce380=_0x41bcff[_0x1c6471];void 0x0!==_0x2ce380['fromVersion']&&void 0x0===_0x2ce380['toVersion']&&(_0x2ce380['toVersion']=this['repository']['getRevision'](_0x2ce380['id'])['toVersion']),void 0x0!==_0x2ce380['toVersion']&&void 0x0===_0x2ce380['fromVersion']&&(_0x2ce380['fromVersion']=this['repository']['getRevision'](_0x2ce380['id'])['fromVersion']);}const _0x5e8ebd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x41bcff,_0x5e8ebd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x37028a=>{if(_0x37028a){for(const _0x135adb of _0x37028a)this['setRevisionData']({'id':_0x135adb['id'],'createdAt':_0x135adb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4ac886,_0x31739e){let _0x61bbe1=this['editor']['config']['get']('initialData'),_0x5721af=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x61bbe1){_0x61bbe1={};for(const _0x40a0d0 of this['editor']['model']['document']['getRootNames']())_0x61bbe1[_0x40a0d0]='';}if('string'==typeof _0x61bbe1&&(_0x61bbe1={'main':_0x61bbe1}),void 0x0===_0x5721af){_0x5721af={};for(const _0x407934 of this['editor']['model']['document']['getRootNames']())_0x5721af[_0x407934]={};}let _0x2492aa=!0x1;const _0x235419=Object['keys'](_0x61bbe1),_0x4c44c5=Object['keys'](_0x4ac886);for(const _0x5c1fb2 of _0x235419){if(_0x61bbe1[_0x5c1fb2]!==_0x4ac886[_0x5c1fb2]&&''!==_0x61bbe1[_0x5c1fb2]['trim']()){_0x2492aa=!0x0;break;}if(!_0x3cdcfc(_0x5721af[_0x5c1fb2],_0x31739e[_0x5c1fb2])&&Object['keys'](_0x5721af[_0x5c1fb2])['length']>0x0){_0x2492aa=!0x0;break;}}_0x2492aa||(_0x2492aa=_0x4c44c5['some'](_0x4a49b0=>!this['editor']['model']['document']['getRoot'](_0x4a49b0))),_0x2492aa&&_0x38e91a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x61bbe1,'editorRootsAttributes':_0x5721af,'revisionData':_0x4ac886,'revisionRootsAttributes':_0x31739e}),this['editor']['config']['set']('initialData',_0x4ac886),this['editor']['config']['set']('rootsAttributes',_0x31739e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5d65c1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5d65c1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cf51f){const _0x472fb4=this['repository']['getRevisions']();_0x472fb4['reverse']();let _0x2e59b0=0x0;for(;_0x2e59b0<_0x472fb4['length'];){const _0x5ce091=_0x472fb4[_0x2e59b0];if(_0x5ce091===this['currentRevision']){_0x2e59b0++;continue;}if(_0x5ce091['id']===this['_initialRevisionId'])break;const _0x354c9d=_0x5cf51f['toVersion']-_0x5ce091['toVersion']||_0x5cf51f['fromVersion']-_0x5ce091['fromVersion'];if(_0x354c9d>0x0)break;if(_0x354c9d<0x0)_0x2e59b0++;else{if(!_0x5cf51f['creator']&&_0x5ce091['creator'])break;if(_0x5ce091['creator']||!_0x5cf51f['creator']){if(_0x5cf51f['createdAt']>_0x5ce091['createdAt'])break;_0x2e59b0++;}else _0x2e59b0++;}}return _0x2e59b0;}['setRevisionData'](_0x252909){const _0x328286=this['repository']['getRevision'](_0x252909['id']);if(_0x252909['createdAt']&&(_0x252909['createdAt']=new Date(_0x252909['createdAt'])),_0x252909['authorsIds']){const _0x46303a=this['editor']['plugins']['get']('Users');_0x252909['authors']=_0x252909['authorsIds']['map'](_0x4298a7=>_0x46303a['getUser'](_0x4298a7));}_0x328286['_update'](_0x252909,!0x0);}['buildRevisionData']({revision:_0xbe1be7=null,from:_0x479307=null,to:_0x57d178=null}){_0x479307=null!==_0x479307?_0x479307:_0xbe1be7['fromVersion'],_0x57d178=null!==_0x57d178?_0x57d178:_0xbe1be7['toVersion'];const _0x2370b6=this['_revisionDataBuilder']['getData'](_0x479307,_0x57d178),_0xbaacf0={'diffData':_0x2370b6['diffData'],'authorsIds':_0x2370b6['authorsIds'],'fromVersion':_0x479307,'toVersion':_0x57d178};if(!_0xbe1be7||_0x57d178!==_0xbe1be7['toVersion']){const _0x1f7ccd=_0x57d178-0x1,_0x422eaf=this['_source']['history']['getOperation'](_0x1f7ccd);_0xbaacf0['createdAt']=_0x422eaf&&_0x422eaf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x479307===this['_loadedStateData']['fromVersion']){for(const _0x4d94b7 of this['_loadedStateData']['authors'])_0xbaacf0['authorsIds']['includes'](_0x4d94b7['id'])||_0xbaacf0['authorsIds']['push'](_0x4d94b7['id']);}return _0xbaacf0;}['_loadRevisionData'](_0x47cc15){if(!_0x47cc15||_0x47cc15['diffData'])return Promise['resolve']();{const _0x3e4ebb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3e4ebb,'revisionId':_0x47cc15['id']})['then'](_0x5b54cf=>{_0x47cc15['diffData']=_0x5b54cf['diffData'];});}}['_bufferUpdate'](_0x5f4120,_0x3b9318,_0x564028){if(this['_bufferedUpdates']['has'](_0x5f4120)){const _0x18baa8=this['_bufferedUpdates']['get'](_0x5f4120);_0x3b9318=_0x564028?{..._0x18baa8,..._0x3b9318}:{..._0x3b9318,..._0x18baa8};}this['_bufferedUpdates']['set'](_0x5f4120,_0x3b9318);}['_getFromVersion'](_0x254d13){const _0x4ce68a=this['repository']['getRevisions']();_0x4ce68a['reverse'](),_0x4ce68a['shift']();const _0x2123b1=_0x4ce68a['find'](_0x4c29bd=>_0x4c29bd['toVersion']<=_0x254d13)['toVersion'];return _0x2123b1<this['_startingVersion']?this['_startingVersion']:_0x2123b1;}['_createInitialRevision'](_0x390ae0){const _0x260722=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x260722)this['_initialRevisionId']=_0x260722['id'];else{const _0x3336e6=!this['editor']['model']['document']['roots']['find'](_0x1707c6=>this['editor']['model']['hasContent'](_0x1707c6)),_0x5b3953=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f304a=R(this['editor']['locale'],_0x3336e6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x390ae0,'to':_0x390ae0,'id':this['_initialRevisionId'],'name':_0x2f304a,'creatorId':_0x5b3953});}}['_createCurrentRevision'](_0xc21472){const _0x1bd049=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1bd049),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xc21472,'to':_0xc21472,'id':_0x1bd049,'name':'','creatorId':null}));}['_makeRevision']({name:_0x180a31,from:_0x29cfca,to:_0x428f04,creatorId:_0x3294b4,id:_0x5004e4}){const _0x4a5e8a=this['buildRevisionData']({'from':_0x29cfca,'to':_0x428f04});_0x4a5e8a['name']=_0x180a31,_0x4a5e8a['creatorId']=_0x3294b4,_0x4a5e8a['id']=_0x5004e4;const _0x2e41b4=this['addRevisionData'](_0x4a5e8a);return this['adapter']&&this['_bufferUpdate'](_0x4a5e8a['id'],_0x4a5e8a,!0x0),_0x2e41b4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3d07c2){return(_0x3d07c2=_0x3d07c2['filter'](_0x476604=>!_0x476604['name']||'revision-start'!==_0x476604['name']&&'revision-end'!==_0x476604['name']))['forEach'](_0x2d13ee=>{'string'!=typeof _0x2d13ee&&(_0x2d13ee['children']=this['_removeRevisionMarkers'](_0x2d13ee['children']),_0x2d13ee['attributes']=_0x2d13ee['attributes']['filter'](_0x5dbbd0=>!_0x5dbbd0[0x0]['startsWith']('data-revision-')));}),_0x3d07c2;}}function V(_0x596675,_0x5ae85f){const _0x15a07c=_0x5ae85f['editing']['view']['document'];if('string'==typeof _0x596675)return new _0x56c270(_0x15a07c,_0x596675);{const _0x3aa18b=_0x596675['children']['map'](_0x35ea6f=>V(_0x35ea6f,_0x5ae85f));return new(C[_0x596675['type']]||_0x34cc4b)(_0x15a07c,_0x596675['name'],_0x596675['attributes'],_0x3aa18b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x54531e){this['editor']=_0x54531e,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'](_0x1c9103){this['source']=_0x1c9103;const _0x3886e5=new Map(),_0x4180b5=new Map(),_0x4b1fa9=this['editor']['model']['document']['roots']['map'](_0x374e3f=>_0x374e3f['rootName']);for(const _0x35394e of _0x4b1fa9){const _0x21ca5f=this['editor']['model']['document']['getRoot'](_0x35394e),_0x424915=F(_0x21ca5f);_0x3886e5['set'](_0x35394e,_0x424915),_0x4180b5['set'](_0x35394e,Object['fromEntries'](_0x21ca5f['getAttributes']()));}const _0x14ea39=Array['from'](this['editor']['model']['markers'])['map'](_0x15b4aa=>[_0x15b4aa['name'],_0x15b4aa['getRange']()]),_0x4ed575=this['source']['version'];this['_saveMetaData'](_0x4ed575,_0x3886e5,_0x14ea39,_0x4180b5),this['_startingRevisionId']=this['_revisionId'];const _0x30aee3=new Map(),_0x1b370d=new Map();for(const _0x59db8e of _0x4b1fa9){const _0x40167d=B(_0x59db8e);_0x30aee3['set'](_0x59db8e,_0x40167d),_0x1b370d['set'](_0x59db8e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x30aee3,[],_0x1b370d);}['getData'](_0x39bc69,_0x5e4cc9){if(this['_lastFrom']===_0x39bc69&&this['_lastTo']<=_0x5e4cc9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5e4cc9,!0x0);else{if(!this['_savedMetaData']['has'](_0x39bc69)){const _0x4498e4=this['_getPreviousFrom'](_0x39bc69);this['_calculateMetaData'](_0x4498e4,_0x39bc69,!0x1);}this['_calculateMetaData'](_0x39bc69,_0x5e4cc9,!0x0);}return this['_lastFrom']=_0x39bc69,this['_lastTo']=_0x5e4cc9,this['_getState']();}['loadState'](_0x31251b){this['_reset'](),this['_lastFrom']=_0x31251b['fromVersion'],this['_lastTo']=_0x31251b['toVersion'];for(const _0x4320be in _0x31251b['diffData']){const _0x55935c=_0x31251b['diffData'][_0x4320be]['attachChange'],_0x59ba0d=_0x4c4f16(_0x31251b['diffData'][_0x4320be]['attributesBefore'])||{},_0x56e3d3=this['_makeModelFromViewString'](_0x31251b['diffData'][_0x4320be]['deletions']);_0x56e3d3['rootName']=_0x4320be,_0x56e3d3['_isAttached']=!_0x55935c||!_0x55935c['isAttached'],_0x56e3d3['isAttached']=()=>_0x56e3d3['_isAttached'],this['_baseRoots']['set'](_0x4320be,_0x56e3d3),this['_baseRootsAttributes']['set'](_0x4320be,_0x59ba0d),_0x55935c&&this['_touchedRoots']['set'](_0x4320be,_0x55935c);const _0x5e2e7d=this['_makeIdsRoot'](_0x56e3d3);this['_baseIdsRoots']['set'](_0x4320be,_0x5e2e7d);for(const [_0x5cacfe,_0x1f8ce3]of _0x56e3d3['markers']){if(!_0x5cacfe['startsWith']('revision:'))continue;const _0xaab21a=_0x5cacfe['split'](':')[0x2];for(const _0x2b6e6b of _0x1f8ce3['getWalker']({'singleCharacters':!0x0})){const _0x292459=this['_getVidAttributeName'](_0x2b6e6b),_0x484192='elementEnd'==_0x2b6e6b['type']?_0x2b6e6b['previousPosition']['path']['slice'](0x0,-0x1):_0x2b6e6b['previousPosition']['path'],_0x234cf2=_0x5e2e7d['getNodeByPath'](_0x484192)['getAttribute'](_0x292459);this['_touched']['set'](_0x234cf2,{'userId':_0xaab21a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x51da24=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4c2a41=>!this['_touched']['has'](_0x4c2a41));let _0x413983=0x0;const _0x4f02b2=new Map();for(const _0x1dbcb7 in _0x31251b['diffData']){const _0x52308d=_0x31251b['diffData'][_0x1dbcb7]['attachChange'],_0x3e6ddc=_0x4c4f16(_0x31251b['diffData'][_0x1dbcb7]['attributesAfter'])||{},_0x316a11=this['_makeModelFromViewString'](_0x31251b['diffData'][_0x1dbcb7]['insertions']);_0x316a11['rootName']=_0x1dbcb7,_0x316a11['_isAttached']=!_0x52308d||_0x52308d['isAttached'],_0x316a11['isAttached']=()=>_0x316a11['_isAttached'],this['_diffRoots']['set'](_0x1dbcb7,_0x316a11),this['_diffRootsAttributes']['set'](_0x1dbcb7,_0x3e6ddc);const _0x1a4f90=this['_makeIdsRoot'](_0x316a11,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1dbcb7,_0x1a4f90),_0x4f02b2['set'](_0x1dbcb7,_0x316a11['isAttached']()?_0x3e6ddc:{});for(const [_0x253f00,_0xcf99bc]of _0x316a11['markers']){if(!_0x253f00['startsWith']('revision:'))continue;const _0x358fe5=_0x253f00['split'](':')[0x2];for(const _0x2b283f of _0xcf99bc['getWalker']({'singleCharacters':!0x0})){const _0x5c1e66=this['_getVidAttributeName'](_0x2b283f),_0x2754d8=this['_revisionId']++,_0x4f312f='elementEnd'==_0x2b283f['type']?_0x2b283f['previousPosition']['path']['slice'](0x0,-0x1):_0x2b283f['previousPosition']['path'];_0x1a4f90['getNodeByPath'](_0x4f312f)['_setAttribute'](_0x5c1e66,_0x2754d8),this['_touched']['set'](_0x2754d8,{'userId':_0x358fe5});}}for(const _0x4cd91a of this['editor']['model']['createRangeIn'](_0x316a11)['getWalker']({'singleCharacters':!0x0})){const _0xfa5efe=this['_getVidAttributeName'](_0x4cd91a),_0x28d88d='elementEnd'==_0x4cd91a['type']?_0x4cd91a['previousPosition']['path']['slice'](0x0,-0x1):_0x4cd91a['previousPosition']['path'],_0x559d31=_0x1a4f90['getNodeByPath'](_0x28d88d);_0x559d31['getAttribute'](_0xfa5efe)>0x0||_0x559d31['_setAttribute'](_0xfa5efe,_0x51da24[_0x413983++]);}for(const [_0x10d1ca,_0x23692b]of _0x316a11['markers'])_0x10d1ca['startsWith']('revision:')||this['_markers']['set'](_0x10d1ca,_0x23692b);}const _0x4c7608=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4c7608),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c7608,0x1));const _0x5df958=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5df958),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5df958,0x1));const _0x308496=Array['from'](this['_diffRoots'])['map'](([_0x12afbd,_0x1d2c8e])=>[_0x12afbd,F(_0x1d2c8e)]);this['_saveMetaData'](this['_lastTo'],_0x308496,this['_markers'],_0x4f02b2);}['_makeModelFromViewString'](_0x45c2d0){const _0x39107e=JSON['parse'](_0x45c2d0),_0x1a7a63=this['editor']['editing']['view']['document'],_0x52afa5=new _0x51b7f4(_0x1a7a63,_0x39107e['map'](_0xde7292=>V(_0xde7292,this['editor'])));return this['editor']['data']['toModel'](_0x52afa5);}['_saveMetaData'](_0x31bc43,_0x5bd1a3,_0x10f5d1,_0x364fb5){const _0x2b5c42=new Map(_0x5bd1a3),_0x767506=new Map(_0x4c4f16(_0x364fb5)),_0xbde4dc=new Map();for(const [_0x3b77f0,_0x2a3a4f]of _0x10f5d1)_0xbde4dc['set'](_0x3b77f0,{'start':_0x2a3a4f['start']['clone'](),'end':_0x2a3a4f['end']['clone'](),'rootName':_0x2a3a4f['root']['rootName']});this['_savedMetaData']['set'](_0x31bc43,{'roots':_0x2b5c42,'markers':_0xbde4dc,'rootsAttributes':_0x767506});}['_removeMetaData'](_0x459bb1){this['_savedMetaData']['delete'](_0x459bb1);}['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'](_0x40503f,_0x3a5e7f=null){let _0x59e9d4=null;_0x40503f['is']('documentFragment')||(_0x59e9d4=new ft(_0x40503f['name'],{'vid_start':null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++}));const _0x54089f=[];for(const _0x47cb6c of _0x40503f['getChildren']())if(_0x47cb6c['is']('element')){_0x54089f['push'](this['_makeIdsRoot'](_0x47cb6c,_0x3a5e7f));const _0x5141ba=_0x54089f[_0x54089f['length']-0x1];null!==_0x3a5e7f&&(_0x3a5e7f=_0x5141ba['is']('element','$text')?_0x5141ba['getAttribute']('vid')+0x1:_0x5141ba['getAttribute']('vid_end')+0x1);}else{for(let _0x10f329=0x0;_0x10f329<_0x47cb6c['offsetSize'];_0x10f329++)_0x54089f['push'](new ft('$text',{'vid':null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++}));}if(_0x40503f['is']('documentFragment')){const _0x3e6e6d=B(_0x40503f['rootName']);return _0x3e6e6d['_insertChild'](0x0,_0x54089f),_0x3e6e6d;}return _0x59e9d4['_setAttribute']('vid_end',null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++),_0x59e9d4['_insertChild'](0x0,_0x54089f),_0x59e9d4;}['_calculateMetaData'](_0x449ee7,_0x1006ef,_0xe9642c){this['_reset']();const {roots:_0x214daa,markers:_0x3dccfe,rootsAttributes:_0xbd865b}=this['_savedMetaData']['get'](_0x449ee7);this['_baseRoots']=new Map(_0x214daa),this['_baseRootsAttributes']=new Map(_0x4c4f16(_0xbd865b));for(const [_0xde0294,_0x5261be]of this['_baseRoots'])if('$graveyard'!==_0xde0294&&(this['_diffRoots']['set'](_0xde0294,F(_0x5261be)),this['_diffRootsAttributes']=new Map(_0x4c4f16(_0xbd865b)),_0xe9642c)){const _0x11bc87=this['_revisionId'];this['_idsRoots']['set'](_0xde0294,this['_makeIdsRoot'](_0x5261be)),this['_baseIdsRoots']['set'](_0xde0294,this['_makeIdsRoot'](_0x5261be,_0x11bc87));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0xe9642c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2bc7a5,_0x199eba]of _0x3dccfe){const _0x2c394b=this['_baseRoots']['get'](_0x199eba['rootName']),_0x3c44dd=this['_diffRoots']['get'](_0x199eba['rootName']),_0x1386d7=new vt(this['_fixPosition'](_0x199eba['start'],_0x2c394b),this['_fixPosition'](_0x199eba['end'],_0x2c394b)),_0x550221=this['_fixRange'](_0x1386d7,_0x3c44dd);_0x2c394b['markers']['set'](_0x2bc7a5,_0x1386d7),this['_markers']['set'](_0x2bc7a5,_0x550221);}this['_applyOperations'](_0x449ee7,_0x1006ef,_0xe9642c);}['_applyOperations'](_0x3285aa,_0x848d1f,_0x31f802){for(const _0x4b559a of this['source']['getOperations'](_0x3285aa,_0x848d1f))this['_handleOperation'](_0x4b559a,_0x31f802);for(const _0xca2b44 of this['_diffRoots']['values']())_0xca2b44['markers']['clear']();for(const [_0xa4c7e8,_0x125a74]of this['_markers']){this['_diffRoots']['get'](_0x125a74['root']['rootName'])['markers']['set'](_0xa4c7e8,_0x125a74['clone']());}const _0x54777e=new Map(),_0x21afcc=new Map();for(const [_0x270988,_0x3a273a]of this['_diffRoots'])_0x54777e['set'](_0x270988,F(_0x3a273a)),_0x21afcc['set'](_0x270988,this['_diffRootsAttributes']['get'](_0x270988));this['_saveMetaData'](_0x848d1f,_0x54777e,this['_markers'],_0x21afcc);}['_getPreviousFrom'](_0x51be90){const _0x516123=Array['from'](this['_savedMetaData']['keys']());_0x516123['sort']((_0xc9601d,_0x12bc0b)=>_0xc9601d-_0x12bc0b),_0x516123['reverse']();for(const _0x2c9bb4 of _0x516123)if(_0x2c9bb4<_0x51be90)return _0x2c9bb4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xa4ef29,_0x277e17){const _0x313559=Array['from'](_0x277e17['markers'])['map'](([_0x3cc2c7,_0x3fd5a4])=>[_0x3cc2c7,this['_fixRange'](_0x3fd5a4,_0xa4ef29)]);_0xa4ef29['markers']=new Map(_0x313559);}['_transformMarkers'](_0x288fdf){for(const _0x4ff375 of this['_markers']['values']()){const _0xd23495=_0x4ff375['getTransformedByOperation'](_0x288fdf),_0x4a52c7=vt['_createFromRanges'](_0xd23495);_0x4ff375['start']=_0x4a52c7['start'],_0x4ff375['end']=_0x4a52c7['end'];}}['_handleOperation'](_0x32c6e0,_0x530104){if('addRoot'!=_0x32c6e0['type']&&'detachRoot'!=_0x32c6e0['type']){if('insert'==_0x32c6e0['type']){const _0x203d4f=_0x32c6e0['position']['root']['rootName'];this['_diffRoots']['has'](_0x203d4f)||(this['_diffRoots']['set'](_0x203d4f,B(_0x203d4f,!0x0)),this['_diffRootsAttributes']['set'](_0x203d4f,{}),_0x530104&&this['_idsRoots']['set'](_0x203d4f,B(_0x203d4f,!0x0)));}else{if('addRootAttribute'==_0x32c6e0['type']||'removeRootAttribute'==_0x32c6e0['type']||'changeRootAttribute'==_0x32c6e0['type'])return void this['_handleRootAttributeOperation'](_0x32c6e0);'marker'==_0x32c6e0['type']&&this['_handleMarkerOperation'](_0x32c6e0);}if('marker'!==_0x32c6e0['type']){const _0x4e4edb=this['_cloneOperation'](_0x32c6e0,this['_diffRoots']);_0x4e4edb['_execute'](),this['_transformMarkers'](_0x4e4edb);}if(_0x530104)switch(_0x32c6e0['type']){case'insert':this['_handleInsertOperation'](_0x32c6e0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x32c6e0);break;case'merge':this['_handleMergeOperation'](_0x32c6e0);break;case'split':this['_handleSplitOperation'](_0x32c6e0);}}else this['_handleRootOperation'](_0x32c6e0,_0x530104);}['_cloneOperation'](_0x5a7f65,_0x521de9){const _0x216166=_0x5a7f65['clone']();return _0x216166['_authorId']=_0x5a7f65['_authorId'],this['_fixOperation'](_0x216166,_0x521de9),_0x216166;}['_getBaseVids'](_0x15d416){return _0x15d416['map'](_0x216bb7=>{const _0x385d2d=this['_getVidAttributeName'](_0x216bb7);return Number(_0x216bb7['item']['getAttribute'](_0x385d2d));});}['_generateTape'](_0x3f53bc,_0x225c22){if(_0x3f53bc['is']('element','$text'))_0x225c22['push']({'item':_0x3f53bc,'type':'text'});else{_0x3f53bc['is']('element')&&_0x225c22['push']({'item':_0x3f53bc,'type':'elementStart'});for(const _0x211687 of _0x3f53bc['getChildren']())this['_generateTape'](_0x211687,_0x225c22);_0x3f53bc['is']('element')&&_0x225c22['push']({'item':_0x3f53bc,'type':'elementEnd'});}return _0x225c22;}['_getState'](){const _0x3fdb01=new Map(this['_touched']),_0x4c88af=new Map(_0x3fdb01),_0x2521f9=new Map(),_0x304048={'insertions':{},'deletions':{}},_0x348737={'insertions':{},'deletions':{}},_0x2a52b9=new Map(),_0x4c9f94=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c9f94['delete']('$graveyard');for(const _0x8aac75 of _0x4c9f94){const _0x2e8c2b=this['_diffRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1),_0x5be969=this['_baseRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1);_0x2e8c2b['isAttached']()||_0x5be969['isAttached']()?(_0x304048['insertions'][_0x8aac75]=F(_0x2e8c2b),_0x304048['deletions'][_0x8aac75]=F(_0x5be969),this['_copyMarkers'](_0x304048['deletions'][_0x8aac75],_0x5be969),this['_copyMarkers'](_0x304048['insertions'][_0x8aac75],_0x2e8c2b),_0x348737['insertions'][_0x8aac75]=this['_generateTape'](this['_idsRoots']['get'](_0x8aac75),[]),_0x348737['deletions'][_0x8aac75]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1),[])):_0x4c9f94['delete'](_0x8aac75);}for(const _0x26d32d of _0x4c9f94){const _0x59ace1=_0x348737['insertions'][_0x26d32d];for(const _0x1196cc of _0x59ace1){const _0x3cb3cc=this['_getVidAttributeName'](_0x1196cc),_0x451d12=_0x1196cc['item']['getAttribute'](_0x3cb3cc);_0x4c88af['delete'](_0x451d12),_0x451d12>=this['_startingRevisionId']&&_0x2521f9['set'](_0x451d12,_0x3fdb01['get'](_0x451d12));}}for(const _0x42d4a0 of _0x4c9f94){const _0x54452e=_0x348737['insertions'][_0x42d4a0],_0x2c0bff=this['_getBaseVids'](_0x348737['deletions'][_0x42d4a0]);let _0xa352a9=0x0;for(const _0x1c4c17 of _0x54452e){const _0x55de4a=this['_getVidAttributeName'](_0x1c4c17),_0x2f3795=_0x1c4c17['item']['getAttribute'](_0x55de4a);if(!_0x2521f9['has'](_0x2f3795)&&!_0x2a52b9['has'](_0x2f3795)){if(_0x4c88af['has'](_0x2f3795))_0xa352a9++;else{if(_0x2f3795!=_0x2c0bff[_0xa352a9]){const _0x450b33=_0x3fdb01['get'](_0x2f3795)||_0x3fdb01['get'](_0x2c0bff[_0xa352a9]);for(;_0x2f3795!=_0x2c0bff[_0xa352a9];)_0x4c88af['has'](_0x2c0bff[_0xa352a9])||(_0x2a52b9['set'](_0x2c0bff[_0xa352a9],_0x450b33),_0x3fdb01['set'](_0x2c0bff[_0xa352a9],_0x450b33)),_0xa352a9++;}_0xa352a9++;}}}}for(const _0x39c8d8 of _0x4c9f94){const _0xb2a78=_0x348737['insertions'][_0x39c8d8];for(const _0x145b1b of _0xb2a78){const _0x4bc6dd=this['_getVidAttributeName'](_0x145b1b),_0x1c45aa=_0x145b1b['item']['getAttribute'](_0x4bc6dd);if(_0x2a52b9['has'](_0x1c45aa)){const _0x519cb4=_0x2a52b9['get'](_0x1c45aa);_0x4c88af['has'](_0x1c45aa)||_0x4c88af['set'](_0x1c45aa,{..._0x519cb4}),_0x2521f9['set'](_0x1c45aa,{..._0x519cb4});}}}for(const _0xed79ef of _0x4c88af['keys']())_0xed79ef>=this['_startingRevisionId']&&_0x4c88af['delete'](_0xed79ef);const _0x3a5995=new Map();for(const _0x5724e1 of _0x4c9f94){let _0x132b95=_0x348737['insertions'][_0x5724e1];for(const _0x37008a of _0x132b95)if(_0x37008a['item']['is']('element','tableCell')){const _0x21e259=this['_getVidAttributeName'](_0x37008a),_0x16e92a=_0x37008a['item']['getAttribute'](_0x21e259);if(_0x2521f9['has'](_0x16e92a)){const _0x2edef4=_0x37008a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4d88d4=_0x3a5995['get'](_0x2edef4)||new Set();_0x4d88d4['add'](_0x2521f9['get'](_0x16e92a)['userId']),_0x3a5995['set'](_0x2edef4,_0x4d88d4);}}_0x132b95=_0x348737['deletions'][_0x5724e1];for(const _0x35f29f of _0x132b95)if(_0x35f29f['item']['is']('element','tableCell')){const _0x29e17a=this['_getVidAttributeName'](_0x35f29f),_0x3f21a6=_0x35f29f['item']['getAttribute'](_0x29e17a);if(_0x4c88af['has'](_0x3f21a6)){const _0x418391=_0x35f29f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fda67=_0x3a5995['get'](_0x418391)||new Set();_0x3fda67['add'](_0x4c88af['get'](_0x3f21a6)['userId']),_0x3a5995['set'](_0x418391,_0x3fda67);}}for(const _0x1e2457 of _0x3a5995['keys']())(_0x2521f9['has'](_0x1e2457)||_0x4c88af['has'](_0x1e2457))&&_0x3a5995['delete'](_0x1e2457);}for(const _0x43d79e of _0x4c9f94){const _0x3c813b=_0x348737['insertions'][_0x43d79e];let _0x51b73f=null,_0x5a61a1=null;for(const _0x3437c5 of _0x3c813b){const _0x1ae480=this['_getVidAttributeName'](_0x3437c5),_0x12e439=_0x3437c5['item']['getAttribute'](_0x1ae480),_0x5a175e=_0x3a5995['get'](_0x12e439);_0x5a175e&&'elementStart'==_0x3437c5['type']&&(_0x51b73f=Array['from'](_0x5a175e)[0x0],_0x5a61a1=_0x3437c5['item']['getAttribute']('vid_end')),_0x51b73f&&(_0x4c88af['set'](_0x12e439,{'userId':_0x51b73f}),_0x2521f9['set'](_0x12e439,{'userId':_0x51b73f})),_0x12e439==_0x5a61a1&&(_0x51b73f=null,_0x5a61a1=null);}}const _0x1deebe={},_0x360e04=new Set();for(const _0x8ee1f8 of _0x4c9f94){const _0x536c43=_0x304048['deletions'][_0x8ee1f8],_0x46f5e7=_0x304048['insertions'][_0x8ee1f8];for(const {userId:_0x5eaf29}of this['_touchedMarkers']['values']())null!==_0x5eaf29&&_0x360e04['add'](_0x5eaf29);for(const {userId:_0x93d309}of this['_touchedRoots']['values']())null!==_0x93d309&&_0x360e04['add'](_0x93d309);this['_markChanges'](_0x46f5e7,_0x348737['insertions'][_0x8ee1f8],_0x2521f9,'insertion',_0x360e04),this['_markChanges'](_0x536c43,_0x348737['deletions'][_0x8ee1f8],_0x4c88af,'deletion',_0x360e04),_0x1deebe[_0x8ee1f8]={'insertions':this['_prepareViewToSave'](_0x46f5e7),'deletions':this['_prepareViewToSave'](_0x536c43),'attachChange':this['_touchedRoots']['get'](_0x8ee1f8)||null,'attributesBefore':_0x4c4f16(this['_baseRootsAttributes']['get'](_0x8ee1f8))||{},'attributesAfter':_0x4c4f16(this['_diffRootsAttributes']['get'](_0x8ee1f8))};}return{'diffData':_0x1deebe,'authorsIds':Array['from'](_0x360e04)};}['_processRootBeforeSave'](_0x1c7d00){for(const [,_0x4c59ab]of _0x1c7d00['markers']){const _0x1f16e5=_0x4c59ab['start']['getAncestors']()['filter'](_0x3b1601=>'tableCell'==_0x3b1601['name']);for(const _0x38c986 of _0x1f16e5)0x1==_0x38c986['childCount']&&_0x38c986['getChild'](0x0)['is']('element','paragraph')&&_0x38c986['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xb06c93){this['_processRootBeforeSave'](_0xb06c93);const _0x2dd604=this['editor']['data']['toView'](_0xb06c93,{}),_0xb0af86=Array['from'](_0x2dd604['getChildren']())['map'](_0x4cd588=>this['_getViewJson'](_0x4cd588));return JSON['stringify'](_0xb0af86);}['_getViewJson'](_0x1465a3){if(_0x1465a3['is']('$text'))return _0x1465a3['data'];{const _0x26f403=_0x1465a3;return{'type':Object['keys'](C)['find'](_0x4d0a66=>_0x1465a3 instanceof C[_0x4d0a66]),'name':_0x26f403['name'],'attributes':Array['from'](_0x26f403['getAttributes']()),'children':Array['from'](_0x26f403['getChildren']())['map'](_0x1a0a4f=>this['_getViewJson'](_0x1a0a4f))};}}['_markChanges'](_0x3fd9eb,_0xb48d02,_0x3962fd,_0x101010,_0x299eea){let _0x2f1402=null,_0x1b8841=null,_0x32acae=0x0;const _0x2f0ace=this['editor']['model'];for(let _0x285d88=0x0;_0x285d88<_0xb48d02['length'];_0x285d88++){const _0x484730=this['_getVidAttributeName'](_0xb48d02[_0x285d88]),_0x4dc14c=_0xb48d02[_0x285d88]['item']['getAttribute'](_0x484730),_0x12d0cb=_0x3962fd['get'](_0x4dc14c),_0x511e8a=_0x285d88==_0xb48d02['length']-0x1;(!_0x2f1402&&_0x12d0cb&&(_0x2f1402=_0x12d0cb,_0x1b8841=_0xb48d02[_0x285d88]),_0x2f1402&&(!_0x12d0cb||_0x12d0cb['userId']!=_0x2f1402['userId']))&&(_0x408bcf(_0x12d0cb,J(_0x1b8841,_0x3fd9eb,_0x2f0ace),J(_0xb48d02[_0x285d88],_0x3fd9eb,_0x2f0ace)),_0x2f1402=_0x12d0cb||null,_0x1b8841=_0x12d0cb?_0xb48d02[_0x285d88]:null),_0x2f1402&&_0x511e8a&&_0x408bcf(_0x12d0cb,J(_0x1b8841,_0x3fd9eb,_0x2f0ace),q(_0xb48d02[_0x285d88],_0x3fd9eb,_0x2f0ace));}function _0x408bcf(_0x17efb3,_0x5da0a3,_0x1f8c13){const _0x5dc6c2=_0x2f1402['userId'],_0x5141c7='revision:'+_0x101010+':'+_0x5dc6c2+':'+_0x32acae++,_0x3a33e5=_0x2f0ace['createRange'](_0x5da0a3,_0x1f8c13);_0x3fd9eb['markers']['set'](_0x5141c7,_0x3a33e5),null!==_0x5dc6c2&&_0x299eea['add'](_0x5dc6c2);}}['_getVidAttributeName'](_0x35cefc){switch(_0x35cefc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4ef2aa,_0x2adac4){_0x4ef2aa['baseVersion']=null;for(const _0x31c1b0 in _0x4ef2aa){const _0x47a73e=_0x4ef2aa[_0x31c1b0];if(_0x47a73e instanceof gt){const _0x42944c=_0x2adac4['get'](_0x47a73e['root']['rootName']);_0x4ef2aa[_0x31c1b0]=this['_fixPosition'](_0x47a73e,_0x42944c);}if(_0x47a73e instanceof vt){const _0x36934f=_0x2adac4['get'](_0x47a73e['root']['rootName']);_0x4ef2aa[_0x31c1b0]=this['_fixRange'](_0x47a73e,_0x36934f);}'root'===_0x31c1b0&&(_0x4ef2aa['root']=_0x2adac4['get'](_0x4ef2aa['root']['rootName']));}}['_fixRange'](_0x29cd01,_0x42d791){return this['editor']['model']['createRange'](this['_fixPosition'](_0x29cd01['start'],_0x42d791),this['_fixPosition'](_0x29cd01['end'],_0x42d791));}['_fixPosition'](_0x6ebe05,_0xa473ba){return this['editor']['model']['createPositionFromPath'](_0xa473ba,_0x6ebe05['path'],_0x6ebe05['stickiness']);}['_handleInsertOperation'](_0x282d8d){const _0x5bf559=this['_idsRoots']['get'](_0x282d8d['position']['root']['rootName']),_0x524d8a=this['_fixPosition'](_0x282d8d['position'],_0x5bf559),_0x3e7874=null===_0x282d8d['_authorId']?null:_0x282d8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4680fc=_0x524d8a['parent'],_0x252a9e=this['_revisionId'],_0x13d37c=[];for(const _0x1c96a4 of _0x282d8d['nodes'])if(_0x1c96a4['is']('element'))_0x13d37c['push'](this['_makeIdsRoot'](_0x1c96a4));else{for(let _0xd7593d=0x0;_0xd7593d<_0x1c96a4['offsetSize'];_0xd7593d++)_0x13d37c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x59145b=this['_revisionId'];for(let _0x4b134c=_0x252a9e;_0x4b134c<_0x59145b;_0x4b134c++)this['_touched']['set'](_0x4b134c,{'userId':_0x3e7874});_0x4680fc['_insertChild'](_0x524d8a['offset'],_0x13d37c);}['_handleMoveOperation'](_0x1dfa4c){(_0x1dfa4c=this['_cloneOperation'](_0x1dfa4c,this['_idsRoots']))['_execute']();const _0x33803e=null===_0x1dfa4c['_authorId']?null:_0x1dfa4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2565b9=_0x1dfa4c['getMovedRangeStart'](),_0x548b13=_0x2565b9['parent'],_0x3dd8f3=_0x2565b9['offset'];!function _0x27fb37(_0x6f0688,_0x3d6466,_0x10cd57,_0x40e9ba){for(let _0x34d8eb=_0x10cd57;_0x34d8eb<_0x40e9ba;_0x34d8eb++){const _0x11eb83=_0x3d6466['getChild'](_0x34d8eb);_0x11eb83['is']('element','$text')?_0x6f0688['set'](_0x11eb83['getAttribute']('vid'),{'userId':_0x33803e}):(_0x6f0688['set'](_0x11eb83['getAttribute']('vid_start'),{'userId':_0x33803e}),_0x27fb37(_0x6f0688,_0x11eb83,0x0,_0x11eb83['childCount']),_0x6f0688['set'](_0x11eb83['getAttribute']('vid_end'),{'userId':_0x33803e}));}}(this['_touched'],_0x548b13,_0x3dd8f3,_0x3dd8f3+_0x1dfa4c['howMany']);}['_handleMergeOperation'](_0x206b28){const _0x392471=null===(_0x206b28=this['_cloneOperation'](_0x206b28,this['_idsRoots']))['_authorId']?null:_0x206b28['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x546191=_0x206b28['targetPosition']['parent'],_0x4e6f44=_0x206b28['sourcePosition']['parent'],_0x3e3724=_0x546191['getAttribute']('vid_end'),_0x39c8cf=_0x4e6f44['getAttribute']('vid_start');_0x546191['_setAttribute']('vid_end',_0x4e6f44['getAttribute']('vid_end')),_0x4e6f44['_setAttribute']('vid_end',_0x3e3724),this['_touched']['set'](_0x39c8cf,{'userId':_0x392471}),this['_touched']['set'](_0x3e3724,{'userId':_0x392471}),_0x206b28['_execute']();}['_handleSplitOperation'](_0x555def){const _0xb83bf7=null===(_0x555def=this['_cloneOperation'](_0x555def,this['_idsRoots']))['_authorId']?null:_0x555def['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b1e8b=_0x555def['graveyardPosition'],_0x5163cb=_0x555def['splitPosition']['parent'];_0x555def['_execute']();const _0x2da9ea=_0x5163cb['getAttribute']('vid_end'),_0x55c0e0=_0x555def['insertionPosition']['nodeAfter'];if(_0x5b1e8b){const _0x47f80b=_0x55c0e0['getAttribute']('vid_end'),_0x52dec1=_0x5163cb['getAttribute']('vid_end');_0x5163cb['_setAttribute']('vid_end',_0x47f80b),_0x55c0e0['_setAttribute']('vid_end',_0x52dec1),this['_touched']['set'](_0x5163cb['getAttribute']('vid_end'),{'userId':_0xb83bf7}),this['_touched']['set'](_0x55c0e0['getAttribute']('vid_start'),{'userId':_0xb83bf7});}else{const _0x23fc81=this['_revisionId']++,_0x3f4727=this['_revisionId']++;_0x5163cb['_setAttribute']('vid_end',_0x23fc81),_0x55c0e0['_setAttribute']('vid_start',_0x3f4727),_0x55c0e0['_setAttribute']('vid_end',_0x2da9ea),this['_touched']['set'](_0x23fc81,{'userId':_0xb83bf7}),this['_touched']['set'](_0x3f4727,{'userId':_0xb83bf7});}}['_handleMarkerOperation'](_0x5eef6f){if(!_0x5eef6f['affectsData'])return;const _0x2c15e2=(_0x5eef6f=this['_cloneOperation'](_0x5eef6f,this['_diffRoots']))['oldRange']?_0x5eef6f['oldRange']['root']:null,_0x40c1c8=_0x5eef6f['newRange']?_0x5eef6f['newRange']['root']:null;_0x2c15e2&&this['_markers']['delete'](_0x5eef6f['name']),_0x40c1c8&&this['_markers']['set'](_0x5eef6f['name'],_0x5eef6f['newRange']['clone']());const _0x5697ff=null===_0x5eef6f['_authorId']?null:_0x5eef6f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x513fba=_0x5eef6f['name'];if(!this['_touchedMarkers']['has'](_0x513fba))return void this['_touchedMarkers']['set'](_0x513fba,{'range':_0x5eef6f['oldRange'],'userId':_0x5697ff});const _0x47724f=this['_touchedMarkers']['get'](_0x513fba),_0x4f6a46=_0x47724f['range'],_0x11361d=_0x5eef6f['newRange'];null==_0x4f6a46&&null==_0x11361d||_0x4f6a46&&_0x11361d&&_0x4f6a46['isEqual'](_0x11361d)?this['_touchedMarkers']['delete'](_0x5eef6f['name']):_0x47724f['userId']=_0x5697ff;}['_handleRootOperation'](_0x1e38ca,_0x1dde22){this['_diffRoots']['has'](_0x1e38ca['rootName'])?this['_diffRoots']['get'](_0x1e38ca['rootName'])['_isAttached']=_0x1e38ca['isAdd']:(this['_diffRoots']['set'](_0x1e38ca['rootName'],B(_0x1e38ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e38ca['rootName'],{}),_0x1dde22&&this['_idsRoots']['set'](_0x1e38ca['rootName'],B(_0x1e38ca['rootName'],!0x0)));const _0x578016=null===_0x1e38ca['_authorId']?null:_0x1e38ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x477115=this['_touchedRoots']['get'](_0x1e38ca['rootName']);_0x477115&&_0x477115['userId']===_0x578016?this['_touchedRoots']['delete'](_0x1e38ca['rootName']):this['_touchedRoots']['set'](_0x1e38ca['rootName'],{'userId':_0x578016,'isAttached':_0x1e38ca['isAdd']});}['_handleRootAttributeOperation'](_0x5e5ffb){const _0x5eedae=this['_diffRootsAttributes']['get'](_0x5e5ffb['root']['rootName']);null===_0x5e5ffb['newValue']?delete _0x5eedae[_0x5e5ffb['key']]:_0x5eedae[_0x5e5ffb['key']]=_0x5e5ffb['newValue'];}}function F(_0x438e29){const _0x53552a=B(_0x438e29['rootName'],_0x438e29['isAttached']());for(const _0x2c14eb of _0x438e29['getChildren']()){const _0x5d4e29=_0x2c14eb['_clone'](!0x0);_0x53552a['_appendChild'](_0x5d4e29);}return _0x53552a;}function B(_0x1b655d,_0x76524f=!0x0){const _0x24d6c0=new wt();return _0x24d6c0['rootName']=_0x1b655d,_0x24d6c0['_isAttached']=_0x76524f,_0x24d6c0['isAttached']=()=>_0x24d6c0['_isAttached'],_0x24d6c0;}function J(_0x595f24,_0x34f3c6,_0x4451e3){const _0x4a93d8='elementEnd'==_0x595f24['type']?_0x4451e3['createPositionAt'](_0x595f24['item'],'end'):_0x4451e3['createPositionBefore'](_0x595f24['item']);return _0x4451e3['createPositionFromPath'](_0x34f3c6,_0x4a93d8['path'],_0x4a93d8['stickiness']);}function q(_0x5ef0,_0x38206e,_0x5198ac){const _0x12cbf0='elementStart'==_0x5ef0['type']?_0x5198ac['createPositionAt'](_0x5ef0['item'],0x0):_0x5198ac['createPositionAfter'](_0x5ef0['item']);return _0x5198ac['createPositionFromPath'](_0x38206e,_0x12cbf0['path'],_0x12cbf0['stickiness']);}class ns extends _0x2ff6e1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xcf70e2,_0x302b4e){super(_0xcf70e2),this['focusTracker']=new _0x14bb7d(),this['keystrokes']=new _0x111389(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x302b4e),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'](),_0x53b023({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3abcd4=_0x13aa72=>_0x13aa72['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3abcd4),this['keystrokes']['set']('arrowleft',_0x3abcd4),this['keystrokes']['set']('arrowup',_0x3abcd4),this['keystrokes']['set']('arrowdown',_0x3abcd4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1c6353){this['revisionNameInputView']['fieldView']['element']['value']=_0x1c6353['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51a52c){const _0x366d0b=new at(this['locale'],_0x3ca5a4),_0x11fdb6=_0x366d0b['fieldView'];_0x11fdb6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x18c658=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51a52c&&(_0x18c658+='\x20('+R(this['locale'],'optional')+')'),(_0x366d0b['label']=_0x18c658,_0x11fdb6['on']('input',()=>{this['revisionNameInputValue']=_0x11fdb6['element']['value']['trim']();}),_0x366d0b);}}class u extends _0x749fac{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x191495=this['editor'],_0x1671fd=_0x191495['plugins']['get']('RevisionTracker');_0x191495['ui']['componentFactory']['add']('revisionHistory',_0x576e23=>{const _0x5db119=_0x5c649b(_0x576e23),_0x40e78e=_0x5db119['panelView']['children'],_0x2d14cf=new te(_0x576e23),_0x595825=new _0x4bd843(_0x576e23),_0x1653aa=new _0x8c1ed8(_0x576e23),_0x5b5ca6=new _0x4bd843(_0x576e23),_0x55c341=new _0x8c1ed8(_0x576e23);return _0x5db119['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x1671fd,'isEnabled',_0x191495,'isReadOnly',(_0x235c63,_0xb10778,_0x557db0)=>_0x235c63&&_0xb10778&&!_0x557db0),_0x5db119['buttonView']['set']({'icon':_0x363a49['history'],'label':R(_0x576e23,'Revision\x20history'),'tooltip':!0x0}),_0x1653aa['set']({'label':R(_0x576e23,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1653aa['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x1671fd,'isEnabled',_0x191495,'isReadOnly',(_0x4efc92,_0x347a59,_0x4a55a2)=>_0x4efc92&&_0x347a59&&!_0x4a55a2),_0x1653aa['on']('execute',()=>this['_showDialog']()),_0x55c341['set']({'label':R(_0x576e23,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x55c341['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x191495,'isReadOnly',(_0x1254d7,_0x57f347)=>_0x1254d7&&!_0x57f347),_0x55c341['on']('execute',()=>{_0x191495['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5db119['isOpen']=!0x1,_0x191495['editing']['view']['focus']();}),_0x595825['children']['add'](_0x1653aa),_0x5b5ca6['children']['add'](_0x55c341),_0x2d14cf['role']='menu',_0x2d14cf['items']['addMany']([_0x595825,_0x5b5ca6]),_0x40e78e['add'](_0x2d14cf),_0x5db119;}),_0x191495['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x259abe=this['editor'],_0x340a5f=_0x259abe['locale'],_0x2b9db0=new _0x3c3b2d(_0x340a5f),_0x274d03=new _0x6aef71(_0x340a5f);_0x2b9db0['buttonView']['set']({'icon':_0x363a49['history'],'label':R(_0x340a5f,'Revision\x20history')});const _0x58fcbf=new _0xc81641(_0x340a5f,_0x2b9db0),_0x5bf638=new _0x1f9553(_0x340a5f);_0x5bf638['set']({'label':R(_0x340a5f,'Save\x20current\x20revision')}),_0x5bf638['delegate']('execute')['to'](_0x2b9db0),_0x5bf638['on']('execute',()=>{this['_showDialog']();}),_0x58fcbf['children']['add'](_0x5bf638),_0x274d03['items']['add'](_0x58fcbf);const _0x2088d8=new _0xc81641(_0x340a5f,_0x2b9db0),_0x449507=new _0x1f9553(_0x340a5f);return _0x449507['set']({'label':R(_0x340a5f,'Open\x20revision\x20history')}),_0x449507['delegate']('execute')['to'](_0x2b9db0),_0x449507['on']('execute',()=>{_0x259abe['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2088d8['children']['add'](_0x449507),_0x274d03['items']['add'](_0x2088d8),_0x2b9db0['panelView']['children']['add'](_0x274d03),_0x2b9db0;}['_showDialog'](){const _0x28991f=this['editor'],_0x1a3228=_0x28991f['locale'],_0x1ea3a4=_0x28991f['plugins']['get']('Dialog'),_0x20441a=_0x28991f['plugins']['get']('RevisionTracker');function _0x1dd731(_0x33d055){_0x28991f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x33d055['revisionName']?_0x33d055['revisionNameInputView']['errorText']=R(_0x1a3228,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x28991f['plugins']['get'](l)['saveRevision']({'name':_0x33d055['revisionName']}),_0x1ea3a4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1dd731(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ea3a4['show']({'id':'revisionSave','title':R(_0x1a3228,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x28991f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ea3a4['hide']()},{'label':R(_0x28991f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c9487){_0x5c9487['bind']('isEnabled')['to'](_0x20441a,'isReady',_0x20441a,'isEnabled',_0x28991f,'isReadOnly',(_0x13782d,_0x51d628,_0xd9e06e)=>_0x13782d&&_0x51d628&&!_0xd9e06e);},'onExecute':()=>_0x1dd731(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1547dd=this['editor'],_0x337be9=_0x1547dd['locale'];this['_saveRevisionFormView']=new ns(_0x337be9,_0x1547dd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2ff6e1{['changeId'];['_model'];constructor(_0x4b50f1,_0x50f794){super(_0x4b50f1),this['_model']=_0x50f794,this['changeId']=_0x50f794['id'];const _0x50c66e=this['bindTemplate'],_0x3bd286=R(_0x4b50f1,_0x50f794['data']['isSuggestion']?'Suggested\x20by':'add'==_0x50f794['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x50f794['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x50c66e['to']('type',_0x4a3dc4=>'ck-revision-change__'+_0x4a3dc4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3bd286}]},{'text':'\x20'+_0x50f794['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x585a54(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x81a6fa){super(),this['id']=_0x81a6fa['id']||_0x39e673(),this['author']=_0x81a6fa['author'],this['type']=_0x81a6fa['type'],this['data']=_0x81a6fa['data']||{},this['rootName']=_0x81a6fa['rootName'],this['set']('createdAt',_0x81a6fa['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(_0x160d17,_0x5d6d1e){this['newRevisionId']=_0x160d17,this['oldRevisionId']=_0x5d6d1e,this['changes']=new _0xe94121();}['_setChanges'](_0x3f9cc4){for(const _0x1aeb04 of _0x3f9cc4)this['changes']['add'](_0x1aeb04);}}const Z={'c':_0x173824,'a':_0xf7b691,'e':_0x20d1bc,'r':_0x121912,'u':_0x4cde5d};class d extends _0x749fac{['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[_0x262ae6,_0x31879f,j];}constructor(_0x539f1d){super(_0x539f1d),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',(_0x59bc62,_0x239a3a,_0x28fe9b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x45dffc=>{for(const _0x4b0179 of this['editor']['editing']['view']['document']['roots'])_0x28fe9b?_0x45dffc['removeClass']('ck-editor__editable__overlay',_0x4b0179):_0x45dffc['addClass']('ck-editor__editable__overlay',_0x4b0179);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x39926b=>null!==_0x39926b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x255407,_0x6ae8ba,_0x5b87af)=>_0x255407&&_0x5b87af?_0x6ae8ba['changes']['getIndex'](_0x5b87af):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xd1fed0,_0x4c4d8f)=>_0xd1fed0?_0x4c4d8f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x31879f);}['init'](){const _0x276413=this['editor'],_0x3565ea=new bt(_0x276413,{'direction':'backward'}),_0x3a89a9=new bt(_0x276413,{'direction':'forward'});(_0x276413['commands']['add']('showPreviousChange',_0x3565ea),_0x276413['commands']['add']('showNextChange',_0x3a89a9),_0x276413['commands']['add']('restoreRevision',new yt(_0x276413)),this['on']('change:numberOfChanges',()=>{_0x3565ea['refresh'](),_0x3a89a9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x276413['enableReadOnlyMode']('revision-viewer'),_0x276413['plugins']['has']('WidgetToolbarRepository'))&&_0x276413['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x47826a){await this['loadRevisionData'](_0x47826a);const _0x1f4f5e={};for(const _0x15a229 in _0x47826a['diffData']){if(_0x47826a['diffData'][_0x15a229]['attachChange']&&!_0x47826a['diffData'][_0x15a229]['attachChange']['isAttached'])continue;const _0x330a08=this['_removeRevisionMarkers'](JSON['parse'](_0x47826a['diffData'][_0x15a229]['insertions'])),_0x5829e7=this['editor']['editing']['view']['document'],_0x426379=new _0x51b7f4(_0x5829e7,_0x330a08['map'](_0x347446=>this['_getViewObj'](_0x347446)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1f4f5e[_0x15a229]=this['editor']['data']['processor']['toData'](_0x426379),this['editor']['data']['processor']['useFillerType']('default');}return _0x1f4f5e;}async['getRevisionRootsAttributes'](_0xbdbb75){await this['loadRevisionData'](_0xbdbb75);const _0x2fa45b={};for(const _0x20f27c in _0xbdbb75['diffData'])_0xbdbb75['diffData'][_0x20f27c]['attachChange']&&!_0xbdbb75['diffData'][_0x20f27c]['attachChange']['isAttached']||(_0x2fa45b[_0x20f27c]=_0xbdbb75['diffData'][_0x20f27c]['attributesAfter']||{});return _0x2fa45b;}['_removeRevisionMarkers'](_0x246c09){return(_0x246c09=_0x246c09['filter'](_0xa2e8e2=>!_0xa2e8e2['name']||'revision-start'!==_0xa2e8e2['name']&&'revision-end'!==_0xa2e8e2['name']))['forEach'](_0x257ad5=>{'string'!=typeof _0x257ad5&&(_0x257ad5['children']=this['_removeRevisionMarkers'](_0x257ad5['children']),_0x257ad5['attributes']=_0x257ad5['attributes']['filter'](_0x187d86=>!_0x187d86[0x0]['startsWith']('data-revision-')));}),_0x246c09;}async['compare'](_0x3aade6,_0x47c808,_0x5eebdf=!0x1){if(!this['isEnabled'])return;const _0x565825=this['diff'],_0x282494=this['repository'],_0x264fcc='string'==typeof _0x3aade6?_0x282494['getRevision'](_0x3aade6):_0x3aade6,_0xb9a588='string'==typeof _0x47c808?_0x282494['getRevision'](_0x47c808):_0x47c808,_0xab155a=_0x264fcc['id'],_0x58cfde=_0xb9a588?_0xb9a588['id']:null;if(!_0x5eebdf&&this['diff']&&this['diff']['newRevisionId']===_0xab155a&&this['diff']['oldRevisionId']===_0x58cfde)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xab155a,_0x58cfde);const _0x483e7e=this['_getRevisionsRange'](_0x264fcc,_0xb9a588,!0x0)['map'](_0x382121=>this['loadRevisionData'](_0x382121));return _0x483e7e['push'](new Promise(_0x588bae=>{setTimeout(_0x588bae,0x14);})),Promise['all'](_0x483e7e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5a4733=this['_getDiff'](_0xab155a,_0x58cfde);for(const _0x4ece3c of _0x5a4733['changes'])this['_changeIdToChange']['set'](_0x4ece3c['id'],_0x4ece3c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x53c752=>{for(const _0x274506 of this['editor']['model']['document']['getRootNames']())_0x53c752['detachRoot'](_0x274506);for(const _0xefad59 of Object['keys'](_0x5a4733['model'])){const _0x11893e=_0x53c752['addRoot'](_0xefad59);for(const _0x27d8bc of Object['keys'](_0x5a4733['attributes'][_0xefad59]))_0x53c752['setAttribute'](_0x27d8bc,_0x5a4733['attributes'][_0xefad59][_0x27d8bc],_0x11893e);_0x53c752['insert'](_0x5a4733['model'][_0xefad59],_0x11893e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5a4733['changes'])),this['isReady']=!0x0;})['catch'](_0x12dade=>{console['error'](_0x12dade),this['_cleanUp'](),_0x565825&&(this['diff']=_0x565825),this['isReady']=!0x0;});}['addRevisionData'](_0x6492ae,_0x55f9fb){const _0x117048=this['repository']['createRevision'](_0x6492ae);return _0x117048['on']('_update',(_0x3bb5cb,_0xd67b4d,_0x5ea21e)=>_0x55f9fb(_0xd67b4d,_0x5ea21e,_0x117048)),this['repository']['addRevision'](_0x117048),_0x117048;}['loadRevisionData'](_0x2b4c26){if(!_0x2b4c26||_0x2b4c26['diffData'])return Promise['resolve']();{const _0xe7ebaa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xe7ebaa,'revisionId':_0x2b4c26['id']})['then'](_0x1b7c26=>{_0x2b4c26['_update']({'diffData':_0x1b7c26['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},_0x14d518=>{for(const _0x5e2b4d of this['editor']['model']['document']['getRootNames']())_0x14d518['detachRoot'](_0x5e2b4d);});}['_sortAndFilterDiffChanges'](_0x1f1cee){const _0x54f87a=[],_0x30e4f3=new Map();for(const _0x5c3195 of this['editor']['model']['document']['getRootNames']()){const _0x40bae3=this['editor']['editing']['view']['getDomRoot'](_0x5c3195);if(!_0x40bae3)continue;const _0x94c332=_0x40bae3['getClientRects']()['item'](0x0);_0x94c332&&(_0x54f87a['push'](_0x5c3195),_0x30e4f3['set'](_0x5c3195,_0x94c332));}return _0x54f87a['sort']((_0x1af389,_0x24a636)=>{const _0x4f5166=_0x30e4f3['get'](_0x1af389),_0x56a468=_0x30e4f3['get'](_0x24a636);return _0x4f5166['y']-_0x56a468['y']||_0x4f5166['x']-_0x56a468['x'];}),(_0x1f1cee=_0x1f1cee['filter'](_0x28ff10=>_0x54f87a['includes'](_0x28ff10['rootName'])))['sort']((_0x1ec8af,_0x5d7615)=>_0x54f87a['indexOf'](_0x1ec8af['rootName'])-_0x54f87a['indexOf'](_0x5d7615['rootName'])),_0x1f1cee;}['_makeTape'](_0x18d585){const _0x139e45=Array['from'](_0x18d585['markers'])['filter'](([_0x4fc78e,_0x55886b])=>_0x4fc78e['startsWith']('revision:')&&!_0x55886b['isCollapsed']),_0xc142de=Array['from'](this['editor']['model']['createRangeIn'](_0x18d585)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x139e45['length'])for(const _0x18fe47 of _0xc142de){const [_0x2673b4,_0x4aae48]=_0x139e45[0x0],[,_0x15aeba,_0x3a87ec]=_0x2673b4['split'](':');if(_0x4aae48['end']['isEqual'](_0x18fe47['nextPosition'])&&_0x139e45['shift'](),(_0x18fe47['previousPosition']['isEqual'](_0x4aae48['start'])||_0x18fe47['previousPosition']['isAfter'](_0x4aae48['start']))&&('insertion'==_0x15aeba?_0x18fe47['isAdded']={'userId':_0x3a87ec}:'deletion'==_0x15aeba&&(_0x18fe47['isRemoved']={'userId':_0x3a87ec})),0x0==_0x139e45['length'])break;}return _0xc142de;}['_refreshStartEndIndex'](_0x47e81d){const _0x385582=new Map();for(let _0x65c767=0x0;_0x65c767<_0x47e81d['length'];_0x65c767++)'text'===_0x47e81d[_0x65c767]['type']?(_0x47e81d[_0x65c767]['item']['startIndex']=_0x65c767,_0x47e81d[_0x65c767]['item']['endIndex']=_0x65c767):('elementStart'===_0x47e81d[_0x65c767]['type']?_0x47e81d[_0x65c767]['item']['startIndex']=_0x65c767:'elementEnd'===_0x47e81d[_0x65c767]['type']&&(_0x47e81d[_0x65c767]['item']['endIndex']=_0x65c767),_0x385582['set'](_0x47e81d[_0x65c767]['id'],_0x65c767));for(const _0x388d3c of _0x385582['values']())'elementStart'===_0x47e81d[_0x388d3c]['type']?_0x47e81d[_0x388d3c]['item']['endIndex']=_0x385582['get'](_0x47e81d[_0x388d3c]['pairId']):'elementEnd'===_0x47e81d[_0x388d3c]['type']&&(_0x47e81d[_0x388d3c]['item']['startIndex']=_0x385582['get'](_0x47e81d[_0x388d3c]['pairId']));}['_processTape'](_0x56cb63){for(let _0xaeb506=0x0;_0xaeb506<_0x56cb63['length'];_0xaeb506++){if('elementStart'===_0x56cb63[_0xaeb506]['type'])_0x56cb63[_0xaeb506]['item']['startIndex']=_0xaeb506;else{if('elementEnd'===_0x56cb63[_0xaeb506]['type']){_0x56cb63[_0xaeb506]['item']['endIndex']=_0xaeb506;const _0x43d7fc=_0x56cb63[_0xaeb506]['item']['startIndex'];_0x56cb63[_0x43d7fc]['pairId']=_0x56cb63[_0xaeb506]['id'],_0x56cb63[_0xaeb506]['pairId']=_0x56cb63[_0x43d7fc]['id'];}else _0x56cb63[_0xaeb506]['item']['startIndex']=_0xaeb506,_0x56cb63[_0xaeb506]['item']['endIndex']=_0xaeb506,_0x56cb63[_0xaeb506]['pairId']=null;}_0x56cb63[_0xaeb506]['markersStart']||(_0x56cb63[_0xaeb506]['markersStart']=[],_0x56cb63[_0xaeb506]['markersEnd']=[]);}}['_markInsertions'](_0x595475,_0x55491d){const _0x5b6eef=_0x595475['filter'](_0x1e8973=>!_0x1e8973['isAdded']);for(let _0x5de668=0x0;_0x5de668<_0x55491d['length'];_0x5de668++)_0x55491d[_0x5de668]['isAdded']&&(_0x5b6eef[_0x5de668]['isAdded']=_0x55491d[_0x5de668]['isAdded']);}['_makeModelFromViewString'](_0x47d12b){const _0x17e36a=JSON['parse'](_0x47d12b),_0x25c551=this['editor']['editing']['view']['document'],_0x23da6f=new _0x51b7f4(_0x25c551,_0x17e36a['map'](_0x379023=>this['_getViewObj'](_0x379023)));return this['editor']['data']['toModel'](_0x23da6f);}['_getViewObj'](_0x58945e){const _0x20f726=this['editor']['editing']['view']['document'];if('string'==typeof _0x58945e)return new _0x56c270(_0x20f726,_0x58945e);{const _0x2360bc=_0x58945e['children']['map'](_0x4500ed=>this['_getViewObj'](_0x4500ed));return new(Z[_0x58945e['type']]||_0x34cc4b)(_0x20f726,_0x58945e['name'],_0x58945e['attributes'],_0x2360bc);}}['_getDiff'](_0x455582,_0xadbb5c=null){const _0x358ad8=this['repository']['getRevision'](_0x455582),_0x3711a1=_0xadbb5c?this['repository']['getRevision'](_0xadbb5c):null,_0x77040a=this['_getRevisionsRange'](_0x358ad8,_0x3711a1),_0x5d7496=_0x77040a[_0x77040a['length']-0x1],_0x4cbc8f=new Map(),_0x4a9f43={'model':{},'attributes':{},'changes':[]},_0x4e74e5=new Set(),_0x39f7c2=new Map();for(let _0x3bbc42=_0x77040a['length']-0x1;_0x3bbc42>=0x0;_0x3bbc42--){const _0x38443b=_0x77040a[_0x3bbc42];for(const _0x177973 of Object['keys'](_0x38443b['diffData']))if(_0x38443b['diffData'][_0x177973]['attachChange']){const _0x161692=_0x38443b['diffData'][_0x177973]['attachChange'];_0x161692['isAttached']?(_0x4e74e5['add'](_0x177973),_0x39f7c2['has'](_0x177973)&&_0x39f7c2['get'](_0x177973)['userId']==_0x161692['userId']?_0x39f7c2['delete'](_0x177973):_0x39f7c2['set'](_0x177973,_0x161692)):_0x39f7c2['has'](_0x177973)?(_0x4e74e5['delete'](_0x177973),_0x39f7c2['delete'](_0x177973)):(_0x4e74e5['add'](_0x177973),_0x39f7c2['set'](_0x177973,_0x161692));}else _0x4e74e5['add'](_0x177973);}for(const _0x3347ac of _0x4e74e5){const _0x3533c4=_0x39f7c2['has'](_0x3347ac)&&!_0x39f7c2['get'](_0x3347ac)['isAttached'];let _0x2ccb72=_0x3533c4?_0x77040a['length']-0x1:0x0;const _0x587e04=_0x3533c4?-0x1:0x1;for(;_0x77040a[_0x2ccb72];){const _0x1fc92b=_0x77040a[_0x2ccb72];if(_0x1fc92b['diffData'][_0x3347ac]){const _0x520609=_0x3533c4?_0x1fc92b['diffData'][_0x3347ac]['attributesBefore']:_0x1fc92b['diffData'][_0x3347ac]['attributesAfter'];_0x4a9f43['attributes'][_0x3347ac]=_0x520609?_0x4c4f16(_0x520609):{};break;}_0x2ccb72+=_0x587e04;}}for(const _0x26f805 of _0x77040a){_0x26f805['model']={};for(const _0x450c09 of _0x26f805['authors'])_0x4cbc8f['set'](_0x450c09['id'],_0x450c09);for(const _0x335902 of _0x4e74e5){const _0x32a40f=_0x26f805['diffData'][_0x335902]?_0x26f805['diffData'][_0x335902]['insertions']:'[]',_0x50c30d=_0x26f805['diffData'][_0x335902]?_0x26f805['diffData'][_0x335902]['deletions']:'[]';_0x26f805['model'][_0x335902]={'insertions':this['_makeModelFromViewString'](_0x32a40f),'deletions':this['_makeModelFromViewString'](_0x50c30d)};}}for(const _0x40556e of _0x4e74e5){let _0xb8dc4d=null,_0x592a3a=0x0;const _0x13df92=new Map(Array['from'](_0x358ad8['model'][_0x40556e]['insertions']['markers'])['filter'](([_0x1cc2df])=>!_0x1cc2df['startsWith']('revision:')));let _0x20f2e6=0x0;for(const _0x13c1cf of _0x77040a){const _0x4d396e=this['_makeTape'](_0x13c1cf['model'][_0x40556e]['insertions']);_0x13c1cf==_0x358ad8?(_0xb8dc4d=_0x4d396e,_0x592a3a=_0xb8dc4d['length'],_0xb8dc4d['forEach'](_0x1c7a88=>{_0x1c7a88['id']=_0x20f2e6++;}),this['_processTape'](_0xb8dc4d)):this['_markInsertions'](_0xb8dc4d,_0x4d396e);const _0x117575=_0xb8dc4d['filter'](_0x297d4d=>!_0x297d4d['isAdded'])['map'](_0x33e2c0=>_0x33e2c0['id']);let _0x1c591c=0x0;const _0x420c4f=this['_makeTape'](_0x13c1cf['model'][_0x40556e]['deletions']);_0x420c4f['forEach'](_0x5dd186=>{_0x5dd186['isRemoved']?_0x5dd186['id']=_0x592a3a++:_0x5dd186['id']=_0x117575[_0x1c591c++];}),this['_processTape'](_0x420c4f),this['_setDistance'](_0xb8dc4d,'isAdded'),this['_setDistance'](_0x420c4f,'isRemoved'),_0x13c1cf==_0x358ad8&&this['_markMarkers'](_0xb8dc4d,_0x13df92),_0xb8dc4d=this['_joinTapes'](_0xb8dc4d,_0x420c4f),this['_refreshStartEndIndex'](_0xb8dc4d),this['_setDistance'](_0xb8dc4d,'isRemoved');}_0xb8dc4d=_0xb8dc4d['filter'](_0xb9e419=>!(_0xb9e419['isAdded']&&_0xb9e419['isRemoved']));const _0xbd312e=new Map(_0x5d7496['model'][_0x40556e]['deletions']['markers']),_0x769e2d=new Set(_0x13df92['keys']());for(const _0x3a3f54 of _0xbd312e['keys']())_0x769e2d['delete'](_0x3a3f54);this['_markSuggestions'](_0xb8dc4d,_0x769e2d),this['_fixObsoleteTags'](_0xb8dc4d),_0xb8dc4d=this['_removeMissingPairs'](_0xb8dc4d),_0xb8dc4d=this['_markMismatchedRemovedTags'](_0xb8dc4d),_0xb8dc4d=this['_removeUnsupportedChanges'](_0xb8dc4d);const {root:_0x2d6f01,changes:_0x180e9d}=this['_makeModelFromTape'](_0xb8dc4d,_0x4cbc8f,_0x40556e);_0x4a9f43['model'][_0x40556e]=_0x2d6f01;const _0x53afbb=_0x39f7c2['get'](_0x40556e);if(_0x53afbb){const _0x4d3042=_0x4cbc8f['get'](_0x53afbb['userId']),_0x4ab3c6=new r({'author':_0x4d3042,'type':_0x53afbb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x40556e});_0x180e9d['unshift'](_0x4ab3c6),_0x4a9f43['attributes'][_0x40556e]['revisionHistoryAttachChange']=_0x4ab3c6['id'];}_0x4a9f43['changes']=_0x4a9f43['changes']['concat'](_0x180e9d);}return _0x4a9f43;}['_markMarkers'](_0x354585,_0x425651){for(let _0x32c00b=0x0;_0x32c00b<_0x354585['length'];_0x32c00b++)for(const [_0x4b47a0,_0x351eb9]of _0x425651)_0x351eb9['start']['isEqual'](_0x354585[_0x32c00b]['previousPosition'])&&_0x354585[_0x32c00b]['markersStart']['push'](_0x4b47a0),_0x351eb9['end']['isEqual'](_0x354585[_0x32c00b]['nextPosition'])&&_0x354585[_0x32c00b]['markersEnd']['push'](_0x4b47a0);}['_joinTapes'](_0x17576e,_0x1db8b4){let _0x5793cc=[],_0x4a80fc=0x0,_0x228115=0x0;for(;_0x4a80fc<_0x17576e['length']||_0x228115<_0x1db8b4['length'];){const _0x5e74e8=_0x17576e[_0x4a80fc]||{},_0x1c683a=_0x1db8b4[_0x228115]||{};if(_0x5e74e8['id']==_0x1c683a['id'])_0x4a80fc++,_0x228115++,_0x5793cc['push'](_0x5e74e8);else{if(_0x1c683a['isRemoved']&&_0x5e74e8['isAdded']){const {commonTape:_0xdc599b,iEnd:_0x4580a5,jEnd:_0x196610}=this['_threeWayMerge'](_0x17576e,_0x4a80fc,_0x1db8b4,_0x228115);_0x5793cc=_0x5793cc['concat'](_0xdc599b),_0x4a80fc=_0x4580a5,_0x228115=_0x196610;}else _0x1c683a['isRemoved']?(_0x228115++,_0x5793cc['push'](_0x1c683a)):(_0x4a80fc++,_0x5793cc['push'](_0x5e74e8));}}return _0x5793cc;}['_markSuggestions'](_0x43ed5c,_0x39eef5){const _0x412f5e=[];for(let _0x199443=0x0;_0x199443<_0x43ed5c['length'];_0x199443++){for(let _0xe11a4e=0x0;_0xe11a4e<_0x43ed5c[_0x199443]['markersStart']['length'];_0xe11a4e++){const _0x51d1bc=_0x43ed5c[_0x199443]['markersStart'][_0xe11a4e];if(!_0x39eef5['has'](_0x51d1bc))continue;const {group:_0x158924,type:_0x22325f,authorId:_0x1ad749}=_0x1f8d1d(_0x51d1bc);'revision-suggestion'!=_0x158924||'insertion'!=_0x22325f&&'deletion'!=_0x22325f||(_0x412f5e['unshift']({'type':_0x22325f,'name':_0x51d1bc,'userId':_0x1ad749}),_0x43ed5c[_0x199443]['markersStart']['splice'](_0xe11a4e,0x1),_0xe11a4e--);}_0x42b7ef(_0x43ed5c[_0x199443]);for(let _0x356baf=0x0;_0x356baf<_0x43ed5c[_0x199443]['markersEnd']['length'];_0x356baf++){const _0x5a0fbb=_0x43ed5c[_0x199443]['markersEnd'][_0x356baf];if(!_0x39eef5['has'](_0x5a0fbb))continue;const {group:_0x2b8112,type:_0x4250a0}=_0x1f8d1d(_0x5a0fbb);if('revision-suggestion'!=_0x2b8112||'insertion'!=_0x4250a0&&'deletion'!=_0x4250a0)continue;_0x43ed5c[_0x199443]['markersEnd']['splice'](_0x356baf,0x1),_0x356baf--;const _0x372d30=_0x412f5e['findIndex'](_0x2b2132=>_0x2b2132['name']==_0x5a0fbb);_0x372d30>-0x1&&_0x412f5e['splice'](_0x372d30,0x1);}}function _0x1f8d1d(_0x3d53bf){const _0x3232b5=_0x3d53bf['split'](':');return{'group':_0x3232b5[0x0],'type':_0x3232b5[0x1],'subType':_0x3232b5['length']>=0x5?_0x3232b5[0x2]:null,'id':_0x3232b5['length']<0x5?_0x3232b5[0x2]:_0x3232b5[0x3],'authorId':_0x3232b5['length']<0x5?_0x3232b5[0x3]:_0x3232b5[0x4],'markerCount':0x6==_0x3232b5['length']?_0x3232b5[0x5]:null};}function _0x42b7ef(_0x47c537){for(let _0x191662=0x0;_0x191662<_0x412f5e['length'];_0x191662++){if(_0x47c537['isAdded']&&'insertion'==_0x412f5e[_0x191662]['type'])return _0x47c537['isAddSuggestion']=_0x412f5e[_0x191662],void delete _0x47c537['isAdded'];if(!_0x47c537['isAdded']&&!_0x47c537['isRemoved']&&'deletion'==_0x412f5e[_0x191662]['type'])return void(_0x47c537['isRemoveSuggestion']=_0x412f5e[_0x191662]);}}}['_setDistance'](_0x492c95,_0x2c68b4){let _0x1f65b5=0x0,_0x38c331=!0x1;const _0x5a8f2b=new Map();for(const _0x4d6c3d of _0x492c95)_0x4d6c3d[_0x2c68b4]?_0x38c331&&(_0x1f65b5++,_0x38c331=!0x1):(_0x1f65b5++,_0x38c331=!0x0),_0x5a8f2b['set'](_0x4d6c3d['id'],_0x1f65b5);for(let _0x3c4a49=0x0;_0x3c4a49<_0x492c95['length'];_0x3c4a49++){if('isRemoved'==_0x2c68b4&&_0x492c95[_0x3c4a49]['isAdded']||'isAdded'==_0x2c68b4&&_0x492c95[_0x3c4a49]['isRemoved'])continue;if('text'==_0x492c95[_0x3c4a49]['type']){_0x492c95[_0x3c4a49]['distance']=0x0;continue;}const _0x2645ba=_0x5a8f2b['get'](_0x492c95[_0x3c4a49]['pairId']),_0x10012b=_0x5a8f2b['get'](_0x492c95[_0x3c4a49]['id']);_0x492c95[_0x3c4a49]['distance']=_0x2645ba-_0x10012b;}}['_getRevisionsRange'](_0x446fae,_0x55f315,_0x3f7883=!0x1){const _0x416f78=[];let _0x312169=this['repository']['getIndex'](_0x446fae),_0x3e2049=this['repository']['getIndex'](_0x55f315);for(-0x1==_0x3e2049&&(_0x3e2049=this['repository']['_revisions']['length'],_0x3f7883=!0x1);_0x312169<_0x3e2049;)_0x416f78['push'](this['repository']['getRevision'](_0x312169)),_0x312169++;return _0x3f7883&&_0x416f78['push'](this['repository']['getRevision'](_0x312169)),_0x416f78;}['_threeWayMerge'](_0x49ca6d,_0x214553,_0x25f552,_0x28e208){const _0x5726f6=this['editor']['model']['schema'];let _0x372d99=_0x214553;for(;_0x49ca6d[_0x372d99]&&_0x49ca6d[_0x372d99]['isAdded'];)_0x372d99++;let _0x485d30=_0x28e208;for(;_0x25f552[_0x485d30]&&_0x25f552[_0x485d30]['isRemoved'];)_0x485d30++;_0x30823c(_0x49ca6d,_0x214553,_0x372d99),_0x30823c(_0x25f552,_0x28e208,_0x485d30);const _0x4b299c=_0x25f552['slice'](_0x28e208,_0x485d30)['concat'](_0x49ca6d['slice'](_0x214553,_0x372d99));return _0x4b299c['sort']((_0x506be4,_0x42a279)=>_0x506be4['side']!=_0x42a279['side']?_0x506be4['side']-_0x42a279['side']:_0x506be4['level']!=_0x42a279['level']?_0x506be4['level']-_0x42a279['level']:_0x506be4['distance']!=_0x42a279['distance']?_0x42a279['distance']-_0x506be4['distance']:!!_0x506be4['isAdded']!=!!_0x42a279['isAdded']?-0x1==_0x506be4['side']||0x0==_0x506be4['side']?_0x506be4['isAdded']?-0x1:0x1:_0x506be4['isAdded']?0x1:-0x1:_0x506be4['index']-_0x42a279['index']),{'commonTape':_0x4b299c,'iEnd':_0x372d99,'jEnd':_0x485d30};function _0x30823c(_0xf2c2f3,_0x4cdfb3,_0x398dd5){let _0x5f02c3=-0x1,_0x237fce=Number['POSITIVE_INFINITY'],_0x43eff9=!0x0;for(let _0x28fe3a=_0x4cdfb3;_0x28fe3a<_0x398dd5;_0x28fe3a++)if(_0x5726f6['isInline'](_0xf2c2f3[_0x28fe3a]['item'])||(_0x43eff9=!0x1),_0xf2c2f3[_0x28fe3a]['item']['startIndex']<_0x4cdfb3&&(_0x5f02c3=_0x28fe3a),_0xf2c2f3[_0x28fe3a]['item']['endIndex']>=_0x398dd5){_0x237fce=_0x28fe3a;break;}_0x43eff9&&(_0x5f02c3=_0x398dd5-0x1);for(let _0x40aace=_0x4cdfb3;_0x40aace<_0x398dd5;_0x40aace++)_0xf2c2f3[_0x40aace]['side']=_0x40aace<=_0x5f02c3?-0x1:_0x40aace<_0x237fce?0x0:0x1,_0xf2c2f3[_0x40aace]['index']=_0x40aace;let _0x3afc16=0x0;for(let _0x7fa80a=_0x4cdfb3;_0x7fa80a<=_0x5f02c3;_0x7fa80a++)0x0==_0xf2c2f3[_0x7fa80a]['distance']?_0xf2c2f3[_0x7fa80a]['level']=_0x3afc16:(_0x3afc16++,_0xf2c2f3[_0x7fa80a]['level']=_0x3afc16,_0x3afc16++);for(let _0x6d6667=_0x4cdfb3;_0x6d6667<_0x398dd5;_0x6d6667++)0x0==_0xf2c2f3[_0x6d6667]['side']&&(_0xf2c2f3[_0x6d6667]['level']=_0x3afc16);_0x3afc16=0x0;for(let _0x562ad4=_0x398dd5-0x1;_0x562ad4>=_0x237fce;_0x562ad4--)0x0==_0xf2c2f3[_0x562ad4]['distance']?_0xf2c2f3[_0x562ad4]['level']=_0x3afc16:(_0x3afc16--,_0xf2c2f3[_0x562ad4]['level']=_0x3afc16,_0x3afc16--);}}['_fixObsoleteTags'](_0x152e28){const _0x27bd84=new Map(),_0x252211=this['editor']['model']['schema'];for(let _0x241c09=0x1;_0x241c09<_0x152e28['length'];_0x241c09++){let _0x53377e,_0x2b3182,_0x5df50;const _0x5bb684=_0x152e28[_0x241c09],_0x389b93=_0x152e28[_0x241c09-0x1];if('text'==_0x5bb684['type'])continue;if(_0x5bb684['type']!=_0x389b93['type'])continue;if(!_0x252211['isBlock'](_0x389b93['item'])||_0x252211['isLimit'](_0x389b93['item']))continue;if(!_0x252211['isBlock'](_0x5bb684['item'])||_0x252211['isLimit'](_0x5bb684['item']))continue;if((_0x152e28[_0x241c09]['isAdded']||_0x152e28[_0x241c09]['isAddSuggestion'])&&_0x152e28[_0x241c09-0x1]['isRemoved'])_0x53377e=_0x152e28[_0x241c09],_0x2b3182=_0x152e28[_0x241c09-0x1],_0x5df50=_0x241c09-0x1;else{if(!_0x152e28[_0x241c09]['isRemoved']||!_0x152e28[_0x241c09-0x1]['isAdded']&&!_0x152e28[_0x241c09-0x1]['isAddSuggestion'])continue;_0x53377e=_0x152e28[_0x241c09-0x1],_0x2b3182=_0x152e28[_0x241c09],_0x5df50=_0x241c09;}const _0x351f7c=_0x53377e['level']==_0x2b3182['level'],_0x47e945=Math['abs'](_0x53377e['level'])<Math['abs'](_0x2b3182['level'])&&0x0==_0x2b3182['distance'];(_0x351f7c||_0x47e945)&&(_0x27bd84['set'](_0x2b3182['id'],_0x53377e['id']),_0x152e28['splice'](_0x5df50,0x1),_0x241c09--,_0x53377e['isAdded']=!0x1);}for(let _0x133f7b=0x0;_0x133f7b<_0x152e28['length'];_0x133f7b++)_0x27bd84['has'](_0x152e28[_0x133f7b]['pairId'])&&(_0x152e28[_0x133f7b]['pairId']=_0x27bd84['get'](_0x152e28[_0x133f7b]['pairId']));}['_removeMissingPairs'](_0x1d329f){const _0x39c48a=new Set(_0x1d329f['map'](_0xe15adc=>_0xe15adc['id']));for(let _0x580d7a=0x0;_0x580d7a<_0x1d329f['length'];_0x580d7a++)_0x39c48a['has'](_0x1d329f[_0x580d7a]['pairId'])||0x0==_0x1d329f[_0x580d7a]['distance']||(_0x1d329f[_0x580d7a]['isIncorrect']=!0x0);return _0x1d329f['filter'](_0x1a17ad=>!_0x1a17ad['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41efff){const _0x257dc2=new Set();for(let _0x28fcb2=0x0;_0x28fcb2<_0x41efff['length'];_0x28fcb2++){if(_0x257dc2['has'](_0x41efff[_0x28fcb2]['id'])&&_0x41efff[_0x28fcb2]['isRemoved']&&(_0x41efff[_0x28fcb2]['isIncorrect']=!0x0),_0x41efff[_0x28fcb2]['isIncorrect'])continue;if(0x0==_0x41efff[_0x28fcb2]['distance'])continue;if('elementStart'!=_0x41efff[_0x28fcb2]['type'])continue;if(null==_0x41efff[_0x28fcb2]['pairId'])continue;let _0xbb93c6=_0x28fcb2+0x1,_0x20a743=0x0;for(;_0x41efff[_0xbb93c6]['id']!=_0x41efff[_0x28fcb2]['pairId'];)'elementStart'==_0x41efff[_0xbb93c6]['type']?_0x20a743++:'elementEnd'==_0x41efff[_0xbb93c6]['type']&&_0x20a743--,_0xbb93c6++;if(0x0!=_0x20a743){if(_0x41efff[_0x28fcb2]['isRemoved'])_0x41efff[_0x28fcb2]['isIncorrect']=!0x0;else{for(;_0xbb93c6!=_0x28fcb2;)_0x41efff[_0xbb93c6]['isRemoved']&&0x0!=_0x41efff[_0xbb93c6]['distance']&&(_0x41efff[_0xbb93c6]['isIncorrect']=!0x0,_0x257dc2['add'](_0x41efff[_0xbb93c6]['pairId'])),_0xbb93c6--;}}}return _0x41efff['filter'](_0x386f23=>!_0x386f23['isIncorrect']);}['_removeUnsupportedChanges'](_0x46d61a){const _0x34e9a3=this['editor']['model']['schema'];for(let _0x16ece8=0x0;_0x16ece8<_0x46d61a['length'];_0x16ece8++){if(!(_0x46d61a[_0x16ece8]['isAdded']||_0x46d61a[_0x16ece8]['isAddSuggestion']||_0x46d61a[_0x16ece8]['isRemoved']||_0x46d61a[_0x16ece8]['isRemoveSuggestion']))continue;if(0x0==_0x46d61a[_0x16ece8]['distance'])continue;const _0x1e3132=_0x46d61a[_0x16ece8]['item'];_0x34e9a3['isBlock'](_0x1e3132)||_0x34e9a3['isLimit'](_0x1e3132)||(_0x46d61a[_0x16ece8]['isAdded']&&delete _0x46d61a[_0x16ece8]['isAdded'],_0x46d61a[_0x16ece8]['isAddSuggestion']&&delete _0x46d61a[_0x16ece8]['isAddSuggestion'],_0x46d61a[_0x16ece8]['isRemoveSuggestion']&&delete _0x46d61a[_0x16ece8]['isRemoveSuggestion'],_0x46d61a[_0x16ece8]['isRemoved']&&(_0x46d61a[_0x16ece8]['isIncorrect']=!0x0));}return _0x46d61a['filter'](_0x47f1b8=>!_0x47f1b8['isIncorrect']);}['_makeModelFromTape'](_0x374b90,_0x32cf63,_0x2a0713){const _0x3ade6a=new wt(),_0x1129f9=[],_0x107301=new Map(),_0x586767=this['editor']['model'],_0x4461bf=_0x586767['schema'],_0x5ca4fd=[_0x3ade6a],_0x964d5e={},_0x27b647={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a5d80=null;const _0x278175=[0x0];for(let _0x186917=0x0;_0x186917<_0x374b90['length'];_0x186917++)if('elementStart'===_0x374b90[_0x186917]['type']){_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175);const _0x5e9b44=new ft(_0x374b90[_0x186917]['item']['name'],_0x374b90[_0x186917]['item']['getAttributes']());_0x5ca4fd[0x0]['_appendChild'](_0x5e9b44),_0x278175['push'](0x0),_0x5ca4fd['unshift'](_0x5e9b44),_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175);}else'elementEnd'===_0x374b90[_0x186917]['type']?(_0x5ca4fd['shift'](),_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175),_0x278175['pop'](),_0x278175[_0x278175['length']-0x1]++,_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175)):(_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175),_0x1a5d80?_0x1a5d80['_data']+=_0x374b90[_0x186917]['item']['data']:_0x1a5d80=new _t(_0x374b90[_0x186917]['item']['data'],_0x374b90[_0x186917]['item']['getAttributes']()),_0x374b90[_0x186917+0x1]&&'text'===_0x374b90[_0x186917+0x1]['type']&&_0x4b1541(_0x1a5d80,_0x374b90[_0x186917+0x1]['item'])||(_0x5ca4fd[0x0]['_appendChild'](_0x1a5d80),_0x1a5d80=null),_0x278175[_0x278175['length']-0x1]+=_0x374b90[_0x186917]['item']['offsetSize'],_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175));for(let _0x54b4f=0x0;_0x54b4f<_0x374b90['length'];_0x54b4f++){const _0x5a06cb=_0x374b90[_0x54b4f]['previousPosition'],_0x5e94b7=_0x374b90[_0x54b4f]['nextPosition'];for(const _0x551360 of _0x374b90[_0x54b4f]['markersStart'])_0x107301['set'](_0x551360,{'start':_0x5a06cb,'end':null});_0x4be77d('isRemoveSuggestion',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isAddSuggestion',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isRemoved',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isAdded',_0x54b4f,_0x5a06cb,_0x5e94b7);for(const _0x43f903 of _0x374b90[_0x54b4f]['markersEnd']){_0x107301['get'](_0x43f903)['end']=_0x5e94b7;}}for(const [_0x220f43,_0x412965]of _0x107301){const _0x399f30=this['editor']['model']['createRange'](_0x412965['start'],_0x412965['end']);_0x3ade6a['markers']['set'](_0x220f43,_0x399f30);}return _0x1129f9['sort']((_0x4c2a75,_0xdc5900)=>{const _0x25b2c1=_0x3ade6a['markers']['get']('revision:'+_0x4c2a75['id']),_0x3a2d79=_0x3ade6a['markers']['get']('revision:'+_0xdc5900['id']);return _0x25b2c1['start']['isBefore'](_0x3a2d79['start'])?-0x1:_0x25b2c1['start']['isAfter'](_0x3a2d79['start'])?0x1:_0x25b2c1['end']['isBefore'](_0x3a2d79['end'])?-0x1:_0x25b2c1['end']['isAfter'](_0x3a2d79['end'])?0x1:'add'===_0x4c2a75['type']?-0x1:0x1;}),{'root':_0x3ade6a,'changes':_0x1129f9};function _0x4be77d(_0x2a9e3b,_0x4d63b9,_0x19e5b7,_0x47d3ac){const _0x237da4=!!_0x374b90[_0x4d63b9][_0x2a9e3b],_0x2bbf40=_0x237da4?_0x374b90[_0x4d63b9][_0x2a9e3b]['userId']:null,_0x3e1257=_0x4d63b9===_0x374b90['length']-0x1,_0x688f2e=_0x27b647[_0x2a9e3b][0x0],_0x1165cb=_0x4461bf['isObject'](_0x374b90[_0x4d63b9]['item']);!_0x964d5e[_0x2a9e3b]&&_0x237da4?_0x964d5e[_0x2a9e3b]={'start':_0x19e5b7,'tapeItem':_0x374b90[_0x4d63b9],'userId':_0x2bbf40,'type':_0x2a9e3b}:_0x964d5e[_0x2a9e3b]&&!_0x237da4?(_0x964d5e[_0x2a9e3b]['end']=_0x19e5b7,_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]=null):_0x964d5e[_0x2a9e3b]&&_0x237da4&&_0x964d5e[_0x2a9e3b]['userId']!==_0x2bbf40&&(_0x964d5e[_0x2a9e3b]['end']=_0x19e5b7,_0x688f2e&&_0x688f2e['userId']===_0x964d5e[_0x2a9e3b]['userId']||_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]={'start':_0x19e5b7,'tapeItem':_0x374b90[_0x4d63b9],'userId':_0x2bbf40,'type':_0x2a9e3b}),_0x964d5e[_0x2a9e3b]&&_0x1165cb&&('elementStart'!==_0x374b90[_0x4d63b9]['type']||_0x688f2e&&_0x688f2e['userId']===_0x2bbf40||_0x27b647[_0x2a9e3b]['unshift']({'userId':_0x2bbf40,'object':_0x374b90[_0x4d63b9]['item'],'change':_0x964d5e[_0x2a9e3b]}),'elementEnd'===_0x374b90[_0x4d63b9]['type']&&_0x688f2e&&_0x688f2e['object']===_0x374b90[_0x4d63b9]['item']&&(_0x27b647[_0x2a9e3b]['shift'](),_0x964d5e[_0x2a9e3b]=_0x688f2e['change'])),_0x964d5e[_0x2a9e3b]&&_0x3e1257&&(_0x964d5e[_0x2a9e3b]['end']=_0x47d3ac,_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]=null);}function _0x56ba93({start:_0x1deed7,end:_0x3a9cbf,tapeItem:_0x28f66a,userId:_0x39f8f8,type:_0x30e012}){const _0x140522=_0x28f66a['item'],_0x153000=_0x586767['schema']['isBlock'](_0x140522)&&!_0x586767['schema']['isLimit'](_0x140522),_0x4220d4=_0x1deed7['nodeAfter']==_0x3a9cbf['parent']&&_0x3a9cbf['isAtStart'];if(_0x153000&&_0x4220d4)return;const _0x362fab=_0x586767['createRange'](_0x1deed7,_0x3a9cbf),_0x4e2582=_0x32cf63['get'](_0x39f8f8),_0x12cf31=new r({'author':_0x4e2582,'type':'isAdded'==_0x30e012||'isAddSuggestion'==_0x30e012?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x30e012||'isRemoveSuggestion'==_0x30e012},'createdAt':new Date(),'rootName':_0x2a0713});_0x1129f9['push'](_0x12cf31),_0x3ade6a['markers']['set']('revision:'+_0x12cf31['id'],_0x362fab);}function _0x4b1541(_0x524023,_0x27b14f){const _0x2c01a6=_0x524023['getAttributes'](),_0xc1a6c9=_0x27b14f['getAttributes']();for(const _0x2f5ad4 of _0x2c01a6){if(_0x2f5ad4[0x1]!==_0x27b14f['getAttribute'](_0x2f5ad4[0x0]))return!0x1;_0xc1a6c9['next']();}return _0xc1a6c9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4953be=>{const _0x1b4633=_0x4953be['markerName']['split'](':')[0x1],_0x1dabef=this['_getChangeFromId'](_0x1b4633);if(!_0x1dabef)return null;const _0x49074b='add'==_0x1dabef['type']?'insertion':'deletion',_0x106b6b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x49074b];return _0x1dabef['data']['isSuggestion']&&_0x106b6b['push']('ck-suggestion-marker-'+_0x49074b+'-new'),this['activeChange']==_0x1dabef&&_0x106b6b['push']('ck-suggestion-marker--active'),{'classes':_0x106b6b,'attributes':{'data-change-id':_0x1b4633}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x511373=>{_0x511373['on']('element:pre',(_0x5620a2,_0x4e4567,_0x2db512)=>{const _0x45a999=_0x4e4567['viewItem']['getChild'](0x0);if(!_0x45a999||!_0x45a999['is']('element','code'))return;if(!_0x2db512['consumable']['consume'](_0x45a999,{'attributes':['vid_start','vid_end']}))return;const _0x21566e=_0x4e4567['modelRange']['start']['nodeAfter'];_0x2db512['writer']['setAttribute']('vid_start',_0x45a999['getAttribute']('vid_start'),_0x21566e),_0x2db512['writer']['setAttribute']('vid_end',_0x45a999['getAttribute']('vid_end'),_0x21566e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xcfb7bd=>{_0xcfb7bd['on']('element',(_0x2378af,_0x302c78,_0x1225cd)=>{if(!_0x1225cd['consumable']['consume'](_0x302c78['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x302c78['modelRange']['isCollapsed'])return;const _0x3ea005=_0x302c78['modelRange']['start']['nodeAfter'];_0x3ea005['hasAttribute']('vid_start')||_0x3ea005['hasAttribute']('vid')||(_0x1225cd['writer']['setAttribute']('vid_start',_0x302c78['viewItem']['getAttribute']('vid_start'),_0x3ea005),_0x1225cd['writer']['setAttribute']('vid_end',_0x302c78['viewItem']['getAttribute']('vid_end'),_0x3ea005));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb92a63=>_0xb92a63['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x133f33,[,_0x535e66])=>{['vid_start','vid_end','vid']['includes'](_0x535e66)&&(_0x133f33['return']=!0x0,_0x133f33['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x243404=>{_0x243404['on']('attribute:vid',(_0x3305b1,_0x3875af,_0x1c03fa)=>{if('\x20'!=_0x3875af['item']['data']||_0x3875af['item']['parent']['maxOffset']>0x1)return;if(!_0x1c03fa['consumable']['consume'](_0x3875af['item'],_0x3305b1['name']))return;const _0x1e9a3a=_0x1c03fa['writer'],_0x14e3e2=_0x1c03fa['mapper']['toViewRange'](_0x3875af['range']);_0x1e9a3a['wrap'](_0x14e3e2,_0x1e9a3a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x588540){const _0x2bcebc=_0x588540['plugins']['get']('RevisionViewer');return(_0x469750,_0x50733a,_0x3aa8f9)=>{const _0x2e4aa2=_0x50733a['markerName']['split'](':')[0x1],_0x2c6e0f=_0x2bcebc['_getChangeFromId'](_0x2e4aa2);if(!_0x2c6e0f)return null;const _0x27c414='add'==_0x2c6e0f['type']?'split':'merge';if(!_0x3aa8f9['consumable']['test'](_0x50733a['markerRange'],_0x469750['name']))return;const _0x31c994=_0x50733a['markerRange']['getWalker'](),_0x31c137=_0x50733a['markerRange']['start'],_0x95ca6d=_0x588540['model']['schema'];let _0x5d72c3=null,_0x3ea423=null,_0x3e8fe1=!0x1,_0xb9a81d=!0x1;for(const _0x430aa4 of _0x31c994){const _0x57de8d=_0x430aa4['item'];_0x3e8fe1=_0x3e8fe1||_0x95ca6d['isContent'](_0x57de8d);const _0x132bca=_0x3aa8f9['mapper']['toViewElement'](_0x57de8d);if(_0x132bca&&_0x132bca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x430aa4['type']&&(_0x95ca6d['isBlock'](_0x57de8d)&&!_0x95ca6d['isLimit'](_0x57de8d)&&(_0x57de8d['nextSibling']||_0x31c137['isAtEnd']?_0x5d72c3&&_0x5d72c3['parent']==_0x57de8d||(_0x5d72c3=_0x57de8d,_0xfef3aa(_0x430aa4['previousPosition']),_0xb9a81d=!0x0):_0x3ea423=_0x3ea423||_0x430aa4['previousPosition']));}function _0xfef3aa(_0x2ea0dc){const _0x2c06ff=_0x3aa8f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27c414}),_0x3ecd57=_0x3aa8f9['mapper']['toViewPosition'](_0x2ea0dc);_0x2c6e0f['data']['isSuggestion']&&_0x3aa8f9['writer']['addClass']('ck-suggestion-marker-'+_0x27c414+'-new',_0x2c06ff),_0x2bcebc['activeChange']==_0x2c6e0f&&_0x3aa8f9['writer']['addClass']('ck-suggestion-marker--active',_0x2c06ff),_0x3aa8f9['writer']['insert'](_0x3ecd57,_0x2c06ff),_0x3aa8f9['mapper']['bindElementToMarker'](_0x2c06ff,_0x50733a['markerName']);}_0x3e8fe1||_0xb9a81d||!_0x3ea423||_0xfef3aa(_0x3ea423);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3f5d27,_0x379cda,_0x58d52c)=>{const _0x4475da=_0x58d52c['mapper']['markerNameToElements'](_0x379cda['markerName']);if(_0x4475da){for(const _0x218a86 of _0x4475da)(_0x218a86['hasClass']('ck-suggestion-marker-split')||_0x218a86['hasClass']('ck-suggestion-marker-merge'))&&(_0x58d52c['mapper']['unbindElementFromMarkerName'](_0x218a86,_0x379cda['markerName']),_0x58d52c['writer']['remove'](_0x218a86));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x18b99f,_0x191007,_0x1efc71)=>{const _0xfd4aaf=_0x191007['markerName']['split'](':')[0x1],_0x3f411d=this['_getChangeFromId'](_0xfd4aaf);if(!_0x3f411d)return null;const _0x2012a1='add'==_0x3f411d['type']?'split':'merge';if(_0x1efc71['consumable']['test'](_0x191007['markerRange'],_0x18b99f['name']))for(const _0x4904ba of _0x191007['markerRange']['getItems']()){if(!_0x4904ba['is']('element','softBreak'))continue;const _0x5a2101=_0x1efc71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2012a1}),_0x39c81a=_0x1efc71['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4904ba));_0x3f411d['data']['isSuggestion']&&_0x1efc71['writer']['addClass']('ck-suggestion-marker-'+_0x2012a1+'-new',_0x5a2101),this['activeChange']==_0x3f411d&&_0x1efc71['writer']['addClass']('ck-suggestion-marker--active',_0x5a2101),_0x1efc71['writer']['insert'](_0x39c81a,_0x5a2101),_0x1efc71['mapper']['bindElementToMarker'](_0x5a2101,_0x191007['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52d2bc=>{for(const _0x56bcdc of this['editor']['model']['document']['getRootNames']()){const _0xc1c8c8=this['editor']['model']['document']['getRoot'](_0x56bcdc),_0x4c4bee=this['editor']['editing']['view']['document']['getRoot'](_0x56bcdc);if(_0x4c4bee){const _0xfcaf53=_0xc1c8c8['getAttribute']('revisionHistoryAttachChange');if(_0x52d2bc['removeAttribute']('data-change-id',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root-add',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root-remove',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root--active',_0x4c4bee),_0xfcaf53){const _0x1ca059=this['_getChangeFromId'](_0xfcaf53);if(!_0x1ca059)return null;_0x52d2bc['setAttribute']('data-change-id',_0xfcaf53,_0x4c4bee),_0x52d2bc['addClass']('ck-revision-history-root-'+_0x1ca059['type'],_0x4c4bee),this['activeChange']==_0x1ca059&&_0x52d2bc['addClass']('ck-revision-history-root--active',_0x4c4bee);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x388295=>'revision-comment:'+_0x388295,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3eb036=>'revision-suggestion:'+_0x3eb036,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x18ea8e=>({'name':'suggestion:'+_0x18ea8e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1bc73d=>{const _0x58219c=_0x1bc73d['markerName']['split'](':')[0x1];return'insertion'!=_0x58219c&&'deletion'!=_0x58219c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x58219c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2472f3,_0x34e221,_0x58b597)=>{const _0x17c3a7=_0x58b597['mapper']['markerNameToElements'](_0x34e221['markerName']);if(_0x17c3a7){for(const _0x29ec8f of _0x17c3a7)_0x29ec8f['is']('uiElement')&&(_0x58b597['mapper']['unbindElementFromMarkerName'](_0x29ec8f,_0x34e221['markerName']),_0x58b597['writer']['remove'](_0x29ec8f));}},{'priority':'high'});}['_getChangeFromId'](_0x2c5bab){return this['_changeIdToChange']['get'](_0x2c5bab);}['_getViewForChange'](_0xc13821){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xc13821),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x34faa8,_0xf155c9,_0x3c612f,_0x5a15b6)=>{_0x5a15b6&&this['_balloon']['remove'](_0x5a15b6),_0x3c612f&&(this['_balloon']['add']({'view':_0x3c612f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2bb688=this['editor']['editing'],_0x1b7758=this['_getChangeFromId'](_0x3c612f['changeId']);let _0x5b05a0;if(_0x1b7758['data']['isOnRoot']){const _0x6bdfa0=_0x2bb688['view']['getDomRoot'](_0x1b7758['rootName']);_0x5b05a0=Array['from'](_0x6bdfa0['getClientRects']());}else{const _0x6381e9=this['editor']['model']['markers']['get']('revision:'+_0x3c612f['changeId']);_0x5b05a0=Array['from'](_0x2bb688['mapper']['markerNameToElements'](_0x6381e9['name']))['map'](_0x46b387=>_0x2bb688['view']['domConverter']['mapViewToDom'](_0x46b387))['map'](_0x213975=>Array['from'](_0x213975['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b05a0[0x0];return _0x5b05a0['find'](_0x2f0c57=>_0x2f0c57['top']-0x3<=this['_activeViewTarget']['y']&&_0x2f0c57['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2f0c57['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f0c57['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b05a0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x177e25,_0x34eea1,_0x4acc72,_0x580e78)=>{this['activeView']=_0x4acc72?this['_getViewForChange'](_0x4acc72):null,this['editor']['model']['change'](()=>{const _0x4fbf41=this['editor']['editing'];_0x580e78&&(_0x580e78['data']['isOnRoot']?_0x4fbf41['view']['change'](_0xa4be64=>{_0xa4be64['removeClass']('ck-revision-history-root--active',_0x4fbf41['view']['document']['getRoot'](_0x580e78['rootName']));}):_0x4fbf41['reconvertMarker']('revision:'+_0x580e78['id'])),_0x4acc72&&(_0x4acc72['data']['isOnRoot']?_0x4fbf41['view']['change'](_0x381c6b=>{_0x381c6b['addClass']('ck-revision-history-root--active',_0x4fbf41['view']['document']['getRoot'](_0x4acc72['rootName']));}):_0x4fbf41['reconvertMarker']('revision:'+_0x4acc72['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3c69f0,_0x1df77d)=>{if(this['activeChange'])return;const _0x18e683=this['_findChangeIdFromDomTarget'](_0x1df77d['target']),_0x44a930=this['_changeIdToChange']['get'](_0x18e683);_0x44a930?(this['_activeViewTarget']={'x':_0x1df77d['domEvent']['x'],'y':_0x1df77d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x44a930)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2bf569,_0x174142)=>{const _0x21c056=this['_findChangeIdFromDomTarget'](_0x174142['target']),_0x5823f4=this['_changeIdToChange']['get'](_0x21c056);_0x5823f4?(this['_activeViewTarget']={'x':_0x174142['domEvent']['x'],'y':_0x174142['domEvent']['y']},_0x5823f4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5823f4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x25feb0){do{const _0x4608d8=_0x25feb0['getAttribute']('data-change-id');if(_0x4608d8)return _0x4608d8;_0x25feb0=_0x25feb0['parent'];}while(_0x25feb0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x445a33=>{for(const _0x2a76cf of this['editor']['model']['markers'])_0x445a33['removeMarker'](_0x2a76cf);});}}function tt(_0x508449,_0x122cb8){return(_0x11d7ed,_0x1fa832,_0x185651)=>{if(!_0x185651['consumable']['test'](_0x1fa832['markerRange'],_0x11d7ed['name']))return;const _0x3a35ef=_0x1fa832['markerRange']['getWalker'](),_0x1d8148=_0x1fa832['markerRange']['start'],_0x5444d2=_0x508449['model']['schema'];let _0x212a42=null,_0x45be05=null,_0x34589f=!0x1,_0x4d7ea5=!0x1;for(const _0x2963cd of _0x3a35ef){const _0x1167f8=_0x2963cd['item'];_0x34589f=_0x34589f||_0x5444d2['isContent'](_0x1167f8);const _0x529e89=_0x185651['mapper']['toViewElement'](_0x1167f8);if(_0x529e89&&_0x529e89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2963cd['type']&&(_0x5444d2['isBlock'](_0x1167f8)&&!_0x5444d2['isLimit'](_0x1167f8)&&(_0x1167f8['nextSibling']||_0x1d8148['isAtEnd']?_0x212a42&&_0x212a42['parent']==_0x1167f8||(_0x212a42=_0x1167f8,_0x48455e(_0x2963cd['previousPosition']),_0x4d7ea5=!0x0):_0x45be05=_0x45be05||_0x2963cd['previousPosition']));}function _0x48455e(_0x293e56){const _0x46fe89=_0x185651['mapper']['toViewPosition'](_0x293e56),_0x5aaa36=_0x185651['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x122cb8});_0x185651['writer']['insert'](_0x46fe89,_0x5aaa36),_0x185651['mapper']['bindElementToMarker'](_0x5aaa36,_0x1fa832['markerName']);}_0x34589f||_0x4d7ea5||!_0x45be05||_0x48455e(_0x45be05);};}class yt extends _0x4504ec{constructor(_0x4e5ed4){super(_0x4e5ed4);const _0x1e0b09=_0x4e5ed4['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1e0b09,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e0b09,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x43c3e9=this['editor'],_0x2c9039=_0x43c3e9['plugins']['get'](d),_0x22740c=_0x2c9039['isReady']?_0x2c9039['diff']['newRevisionId']:null;_0x43c3e9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x22740c);}['refresh'](){const {isReady:_0x522d63,isEnabled:_0xf6cefd}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x522d63&&_0xf6cefd;}}class bt extends _0x4504ec{['_step'];constructor(_0x4a1dd6,{direction:_0x20ce19}){super(_0x4a1dd6);const _0x59bc6e=_0x4a1dd6['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x20ce19?0x1:-0x1,this['listenTo'](_0x59bc6e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x59bc6e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x59bc6e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x131419=this['editor'],_0x37e16c=_0x131419['plugins']['get'](d),{isNavigationMode:_0x23f08b,currentChangeNumber:_0x21bc1b}=_0x37e16c;let _0x257b89;if(_0x37e16c['activeChange']=_0x23f08b?_0x37e16c['diff']['changes']['get'](_0x21bc1b+this['_step']):_0x37e16c['diff']['changes']['first'],_0x37e16c['activeChange']['data']['isOnRoot'])_0x257b89=_0x131419['editing']['view']['getDomRoot'](_0x37e16c['activeChange']['rootName']);else{const _0x267737=_0x131419['model']['markers']['get']('revision:'+_0x37e16c['activeChange']['id']);_0x257b89=_0x31c5eb(_0x131419['editing'],_0x267737);}_0x596890({'target':_0x257b89,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2c3798,currentChangeNumber:_0x1bada6,numberOfChanges:_0x31f286,isReady:_0x5ca53f,isEnabled:_0x50ed37}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x50ed37&&_0x5ca53f&&_0x31f286)&&(!_0x2c3798||(0x1===this['_step']?_0x1bada6<_0x31f286-0x1:_0x1bada6>0x0));}}class _i extends _0x2ff6e1{constructor(_0x178f9d){super(_0x178f9d);const _0x1af2f8=this['bindTemplate'],_0x138f97=new _0x8c1ed8(_0x178f9d),_0x2cb124=new _0x8c1ed8(_0x178f9d);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',(_0x8b1386,_0x1e9ddc)=>_0x8b1386&&_0x1e9ddc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x40ed95,_0x3d620b,_0x2b8d33,_0x393214)=>{if(!_0x40ed95)return R(_0x178f9d,'Loading...');if(!_0x2b8d33)return R(_0x178f9d,'No\x20changes');const _0x326df3=R(_0x178f9d,'NUMBER_OF_CHANGES',_0x2b8d33);return _0x393214?R(_0x178f9d,'X_OF_Y_CHANGES',[_0x3d620b+0x1,_0x2b8d33]):_0x326df3;}),_0x138f97['set']({'label':R(_0x178f9d,'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'}),_0x2cb124['set']({'label':R(_0x178f9d,'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'}),_0x138f97['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2cb124['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x138f97['on']('execute',()=>this['fire']('execute','backward')),_0x2cb124['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',_0x1af2f8['if']('_isStatusLabelVisible','ck-hidden',_0x167054=>!_0x167054)]},'children':[{'text':_0x1af2f8['to']('isNavigationMode',_0x48ac45=>_0x48ac45?R(_0x178f9d,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x178f9d,'Total')+':\x20')}]},{'text':_0x1af2f8['to']('_statusText')}]},new _0x453ecf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x138f97,_0x2cb124]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x749fac{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x392878=this['editor']['editing']['view'];_0x392878['change'](_0x467612=>{for(const _0x3a8c8b of _0x392878['document']['roots'])_0x467612['addClass'](ce,_0x3a8c8b);});}['hide'](){const _0x484c8c=this['editor']['editing']['view'];_0x484c8c['change'](_0x47618a=>{for(const _0x4c624d of _0x484c8c['document']['roots'])_0x47618a['removeClass'](ce,_0x4c624d);});}}class m extends _0x749fac{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x39244f=this['editor'],_0x54b930=_0x39244f['plugins']['get'](d),_0x3348a9=_0x39244f['plugins']['get'](le);_0x39244f['ui']['componentFactory']['add']('exitToEditing',_0x376d61=>{const _0x561a4e=new _0x8c1ed8(_0x376d61);return _0x561a4e['set']({'label':R(_0x376d61,'Back\x20to\x20editing'),'icon':_0x363a49['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x561a4e,'execute',()=>{_0x39244f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x561a4e;}),_0x39244f['ui']['componentFactory']['add']('restoreRevision',_0x239369=>{const _0x5ee49e=new _0x8c1ed8(_0x239369);return _0x5ee49e['set']({'label':R(_0x239369,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ee49e['bind']('isEnabled')['to'](_0x39244f['commands']['get']('restoreRevision')),this['listenTo'](_0x5ee49e,'execute',()=>_0x39244f['execute']('restoreRevision')),_0x5ee49e;}),_0x39244f['ui']['componentFactory']['add']('changesNavigation',_0x31b0fa=>{const _0x4ec7ee=new _i(_0x31b0fa),_0x320122=_0x39244f['commands']['get']('showPreviousChange'),_0x402dd1=_0x39244f['commands']['get']('showNextChange');return _0x4ec7ee['bind']('isBackwardNavigationEnabled')['to'](_0x320122,'isEnabled'),_0x4ec7ee['bind']('isForwardNavigationEnabled')['to'](_0x402dd1,'isEnabled'),_0x4ec7ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x54b930),this['listenTo'](_0x4ec7ee,'execute',(_0x1f426c,_0x4b2e6e)=>{_0x39244f['execute']('forward'===_0x4b2e6e?'showNextChange':'showPreviousChange');}),_0x4ec7ee;}),_0x3348a9['show'](),_0x54b930['on']('change:isReady',(_0x8f4315,_0x16f7da,_0x189e3a)=>{_0x189e3a?_0x3348a9['hide']():_0x3348a9['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2ee259,_0x21e749){super(_0x2ee259,_0x21e749);const _0x513f63=this['bindTemplate'];this['set']({'label':R(_0x2ee259,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2ee259,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x513f63['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x55c5f6=this['fieldView']['element'];this['_tooltipString']=_0x55c5f6['scrollWidth']>_0x55c5f6['clientWidth']&&_0x55c5f6['value']||'';}}class ti extends _0x2ff6e1{constructor(_0x35003c,_0x4a9600,_0x336955){super(_0x35003c);const _0x4813fc=new _0x5a27dd();_0x4813fc['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 _0x133e55=['ck','ck-revision-history-sidebar__revision-author'];_0x336955&&_0x133e55['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1116a3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x35003c,_0x336955?'Revision\x20creator':'Revision\x20author')},'children':[_0x4813fc,_0x4a9600['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x133e55},'children':_0x1116a3});}}function ni(_0xdcff43,_0x2c6244){const _0x4ec69e=_0xdcff43['bindTemplate'],_0x32948c=_0xdcff43['locale'],_0x120c20=_0x5c649b(_0x32948c);_0x120c20['panelPosition']='sw';const _0x1482e8=function(_0x40fb49,_0x143c40){const _0x4a7dc2=function(_0x37e306,_0x31406f){const _0x388f66=_0x37e306['locale'],_0x154b6e={'Compare\x20against\x20selected':R(_0x388f66,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x388f66,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x388f66,'Restore\x20this\x20revision')};return _0x31406f['map'](_0xa9b567=>{const _0x4b2995=_0x154b6e[_0xa9b567['name']];return _0x4b2995&&_0x4b2995!==_0xa9b567['name']&&(_0xa9b567['name']=_0x4b2995),_0xa9b567;});}(_0x40fb49,_0x143c40),_0x43fc88=new _0xe94121();for(const _0x4142e7 of _0x4a7dc2){const _0x5d079d={'type':'button','model':new to({'label':_0x4142e7['name'],'class':_0x4142e7['class'],'withText':!0x0,'role':'menuitem','_action':_0x4142e7['action']})};_0x5d079d['model']['bind']('isEnabled')['to'](_0x40fb49,'isActionsDropdownOpen',_0x439f04=>'function'!=typeof _0x4142e7['isEnabled']||(!_0x439f04||_0x4142e7['isEnabled'](_0x40fb49))),_0x43fc88['add'](_0x5d079d);}return _0x43fc88;}(_0xdcff43,_0x2c6244);return _0xdcff43['bind']('isActionsDropdownOpen')['to'](_0x120c20,'isOpen'),_0x120c20['buttonView']['set']({'label':R(_0x32948c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x363a49['threeVerticalDots']}),_0x120c20['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ec69e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ec69e['to'](_0x3f9b5e=>_0x3f9b5e['stopPropagation']())}}),_0x120c20['on']('execute',_0x2c6e78=>{_0xdcff43['isReady']&&'function'==typeof _0x2c6e78['source']['_action']&&_0x2c6e78['source']['_action'](_0xdcff43);}),_0x35ca2e(_0x120c20,_0x1482e8,{'role':'menu'}),_0x120c20['listenTo'](_0xdcff43,'change:isActionsDropdownOpen',(_0x3d5e66,_0x4cb01f,_0x4e3757)=>{if(_0x4e3757)for(const _0x3b2565 of _0x120c20['listView']['items']){const _0x1decb1=_0x3b2565['children']['first'],_0x50c597=_0x2c6244['find'](_0x52c4eb=>_0x52c4eb['action']===_0x1decb1['_action'])['isVisible'];_0x3b2565['isVisible']=void 0x0===_0x50c597||_0x50c597(_0xdcff43);}}),_0x120c20;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x5ad316(_0x2ff6e1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3835a2,_0x1a1fb1,_0x11d2c3,_0x2ca44c){super(_0x3835a2);const _0x1b86ee=this['bindTemplate'],_0x2508c3=function(_0x1887f2,_0x1511fd){const _0x467d5c=Array['from'](_0x1511fd['authors'])['filter'](_0x37493b=>_0x37493b!=_0x1511fd['creator']);return _0x1511fd['creator']&&_0x467d5c['unshift'](_0x1511fd['creator']),_0x467d5c['map'](_0x4aeceb=>new ti(_0x1887f2,_0x4aeceb,_0x4aeceb==_0x1511fd['creator']));}(_0x3835a2,_0x1a1fb1);this['id']=_0x1a1fb1['id'],this['_revision']=_0x1a1fb1,this['_requireRevisionName']=_0x2ca44c,this['bind']('name','createdAt')['to'](_0x1a1fb1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x515963=>{return _0x46bd31=_0x3835a2['uiLanguage'],(_0x476ff0=_0x515963)['toLocaleDateString'](_0x46bd31,{'month':'long','day':'numeric'})+',\x20'+_0x476ff0['toLocaleTimeString'](_0x46bd31,{'hour':'numeric','minute':'numeric'});var _0x46bd31,_0x476ff0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3835a2,_0x3ca5a4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x9590ba=>_0x9590ba||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x219641,_0x2b906f)=>_0x219641&&_0x2b906f),this['revisionActionsView']=_0x11d2c3&&_0x11d2c3['length']?ni(this,_0x11d2c3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b86ee['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b86ee['if']('isEnabled','ck-disabled',_0x2c939e=>!_0x2c939e),_0x1b86ee['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b86ee['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b86ee['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':_0x1b86ee['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':_0x2508c3}]},this['revisionActionsView']],'on':{'click':_0x1b86ee['to'](_0x519ac0=>{_0x519ac0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x525202=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x525202,'change',()=>{this['_requireRevisionName']&&!_0x525202['value']||this['fire']('setName',{'id':this['id'],'name':_0x525202['value']}),_0x525202['value']||(_0x525202['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x45374d,_0x1fab07){const _0x353fbc=_0x1222bf['fromJSDate'](_0x45374d)['setLocale'](_0x1fab07),_0x77ad67=_0x1222bf['local'](),_0x18cc53=_0x77ad67['minus']({'days':0x1})['startOf']('day');let _0x396e43,_0x624980;return _0x353fbc['hasSame'](_0x77ad67,'day')?(_0x396e43=_0x353fbc['startOf']('day')['toJSDate'](),_0x624980=_0x353fbc['toRelativeCalendar']()):_0x353fbc['hasSame'](_0x18cc53,'day')?(_0x396e43=_0x18cc53['toJSDate'](),_0x624980=_0x353fbc['toRelativeCalendar']()):_0x353fbc['hasSame'](_0x77ad67,'week')?(_0x396e43=_0x353fbc['startOf']('week')['toJSDate'](),_0x624980=_0x353fbc['weekdayLong']||''):_0x353fbc['hasSame'](_0x77ad67,'year')?(_0x396e43=_0x353fbc['startOf']('month')['toJSDate'](),_0x624980=_0x353fbc['monthLong']||''):(_0x396e43=_0x353fbc['startOf']('year')['toJSDate'](),_0x624980=String(_0x353fbc['year'])),{'startDate':_0x396e43,'localizedPeriodName':_0x624980};}class mi extends _0x2ff6e1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x326208,_0x36541b,_0x41bceb,_0x436123){super(_0x326208);const _0x49f84f=di(_0x36541b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x36541b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x41bceb,this['_requireRevisionName']=_0x436123,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':_0x49f84f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2a3e82){const _0x862836=new ai(this['locale'],_0x2a3e82,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x862836);}['removeRevision'](_0x5054c2){const _0x3e4674=this['revisionViews']['find'](_0x3b341d=>_0x3b341d['id']===_0x5054c2['id']);this['revisionViews']['remove'](_0x3e4674);}}class as extends _0x2ff6e1{constructor(_0xf2c670){super(_0xf2c670);const _0xcc8c11=new _0x5a27dd();_0xcc8c11['content']=_0x363a49['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xcc8c11,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xf2c670,'Revision\x20history')]}]});}}class ci extends _0x2ff6e1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3c1005,_0x238a11,_0x1b3be1,_0x22afe8){super(_0x3c1005);const _0x31a253=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x238a11,this['_revisionActions']=_0x1b3be1,this['_requireRevisionName']=_0x22afe8,this['on']('select',(_0x3f01ce,_0x4c084b)=>{this['fire']('revisionSelected',_0x4c084b);}),this['on']('setName',(_0x70c1ed,_0x4e584f)=>{this['fire']('revisionSetName',_0x4e584f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3c1005),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x31a253['if']('isEnabled','ck-disabled',_0x44d162=>!_0x44d162)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x225b7a of this['_revisions'])this['_addRevision'](_0x225b7a);this['_revisions']['on']('add',(_0x1f5ff1,_0xc57111)=>{this['_addRevision'](_0xc57111);}),this['_revisions']['on']('remove',(_0x47abab,_0x1eaff9)=>{this['_removeRevision'](_0x1eaff9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2c73ac=>_0x2c73ac['revisionViews']['map'](_0x495e17=>_0x495e17))['flat']();}['selectRevision'](_0x31f333){for(const _0x546caf of this['revisionViews'])_0x31f333&&_0x31f333['id']===_0x546caf['id']?_0x546caf['select']():_0x546caf['deselect']();}['highlightRevisions'](_0x5a8135){for(const _0x54abc7 of this['revisionViews'])_0x5a8135['some'](({id:_0x42ae43})=>_0x42ae43===_0x54abc7['id'])?_0x54abc7['highlight']():_0x54abc7['unhighlight']();}['_addRevision'](_0x2a9404){const _0xe06efd=di(_0x2a9404['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xdf61c0=this['timePeriodViews']['get'](0x0);_0xdf61c0&&_0xdf61c0['startDate']['getTime']()===_0xe06efd['getTime']()||(_0xdf61c0=new mi(this['locale'],_0xe06efd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xdf61c0)),_0xdf61c0['addRevision'](_0x2a9404);}['_removeRevision'](_0x344d05){const _0x382e32=di(_0x344d05['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x382e32)['removeRevision'](_0x344d05);}['_getTimePeriodViewByStartDate'](_0xd21286){return this['timePeriodViews']['find'](_0x265dfa=>_0x265dfa['startDate']['getTime']()===_0xd21286['getTime']());}}class g extends _0x749fac{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x354be7,uid as _0x20d582,Collection as _0x5b23d0,logWarning as _0xa4cba7,FocusTracker as _0x1d3bd3,KeystrokeHandler as _0x5bd07a,scrollViewportToShowTarget as _0x29a9ec,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x2b8e95}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1046c5,set as _0x12df9f,unset as _0x42c3b9,isEqual as _0x106b29}from'lodash-es';import{Plugin as _0x49113c,PendingActions as _0x25f2bd,icons as _0x54bba4,Command as _0x491dde,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x580655,getMarkerDomElement as _0x35a040,ConfirmMixin as ti,sanitizeEditorConfig as _0x596c40}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1b99e2,ViewText as _0x10d8cb,ViewElement as _0x3b4ce6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x25a049,ViewAttributeElement as _0x597a04,ViewEmptyElement as _0x55fbd8,ViewRawElement as _0x10d393,ViewUIElement as _0x5c14f2,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x221a1e,submitHandler as _0x6fdeae,LabeledFieldView as _0x4e4e87,createLabeledInputText as _0x10f75e,createDropdown as _0xf41fd9,ListView as _0x5cb7ac,ListItemView as _0x543a5b,ButtonView as te,MenuBarMenuView as _0xe02d1b,MenuBarMenuListView as _0x449759,MenuBarMenuListItemView as _0xf67f,MenuBarMenuListItemButtonView as _0xb420ba,ContextualBalloon as _0x7472c6,ToolbarSeparatorView as _0x1a2c61,IconView as _0x515d3f,addListToDropdown as to,ViewModel as _0x5b5906,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2bca96}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x354be7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3dcec4){super(),this['id']=_0x3dcec4['id']||_0x20d582(),this['creator']=_0x3dcec4['creator']||null,this['authors']=_0x3dcec4['authors']||[],this['diffData']=_0x3dcec4['diffData']||null,this['toVersion']=_0x3dcec4['toVersion']||0x0,this['fromVersion']=_0x3dcec4['fromVersion']||0x0,this['set']('name',_0x3dcec4['name']||''),this['set']('createdAt',_0x3dcec4['createdAt']||new Date()),this['set']('attributes',_0x3dcec4['attributes']||{});}['setName'](_0x3be90d){this['_update']({'name':_0x3be90d});}['setAttribute'](_0x32e157,_0x539db7){const _0x3100b1=_0x1046c5(this['attributes']);_0x12df9f(_0x3100b1,_0x32e157,_0x539db7),this['_update']({'attributes':_0x3100b1});}['removeAttribute'](_0x5c76a2){const _0x3f0fc7=_0x1046c5(this['attributes']);_0x42c3b9(_0x3f0fc7,_0x5c76a2),this['_update']({'attributes':_0x3f0fc7});}['_update'](_0x35f71f,_0x318f79=!0x1){let _0x1e73c9=!0x1;const _0x4232c3={'id':this['id']},_0x4aac8f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b7a30 of _0x4aac8f){const _0x418840=_0x35f71f[_0x1b7a30];void 0x0!==_0x418840&&_0x418840!==this[_0x1b7a30]&&(this[_0x1b7a30]=_0x418840,_0x4232c3[_0x1b7a30]=_0x418840,_0x1e73c9=!0x0);}_0x1e73c9&&(_0x4232c3['authors']&&(_0x4232c3['authorsIds']=_0x4232c3['authors']['map'](_0x5c0cb0=>_0x5c0cb0['id']),delete _0x4232c3['authors']),this['fire']('_update',_0x4232c3,_0x318f79));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2b12b5=>_0x2b12b5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x49113c{['_revisions'];static get['requires'](){return[_0x580655];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xbd2cbd){super(_0xbd2cbd),this['_revisions']=new _0x5b23d0();}['afterInit'](){!async function(_0x50ddb5){const _0x58c5d6=_0x20994f([0x62,0x77,0x39,0x43,0x67,0x68,0x44,0x74,0x36,0x52,0x6c,0x6b,0x54,0x76,0x63,0x49,0x38,0x53,0x41,0x37,0x65,0x50,0x73,0x6f,0x56,0x58,0x4c,0x55,0x69,0x59,0x72,0x57,0x33,0x71,0x51,0x48,0x6d,0x5a,0x61,0x42,0x31,0x46,0x75,0x4b,0x4f,0x34,0x4a,0x70,0x7a,0x45,0x32,0x30,0x64,0x4d,0x6e,0x4e,0x66,0x78,0x47,0x6a,0x79,0x35]),_0x2e89bb=0xeb829,_0x154b11=0x3aaa257f,_0x2c063c=0x3aad72b7^_0x154b11,_0x4144d6=window[_0x20994f([0x44,0x61,0x74,0x65])][_0x20994f([0x6e,0x6f,0x77])](),_0x23d37c=_0x50ddb5[_0x20994f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56a46a=new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36392d=>{_0x23d37c[_0x20994f([0x6f,0x6e,0x63,0x65])](_0x20994f([0x72,0x65,0x61,0x64,0x79]),_0x36392d);}),_0x46d573={[_0x20994f([0x6b,0x74,0x79])]:_0x20994f([0x45,0x43]),[_0x20994f([0x75,0x73,0x65])]:_0x20994f([0x73,0x69,0x67]),[_0x20994f([0x63,0x72,0x76])]:_0x20994f([0x50,0x2d,0x32,0x35,0x36]),[_0x20994f([0x78])]:_0x20994f([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]),[_0x20994f([0x79])]:_0x20994f([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]),[_0x20994f([0x61,0x6c,0x67])]:_0x20994f([0x45,0x53,0x32,0x35,0x36])},_0x37c5ba=_0x23d37c[_0x20994f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20994f([0x67,0x65,0x74])](_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x259cdf(){let _0x5cbb2a,_0x34d5bd=null,_0xf5c7bd=null;try{if(_0x37c5ba==_0x20994f([0x47,0x50,0x4c]))return _0x20994f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5cbb2a=_0x7b9664(),!_0x5cbb2a)return _0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5cbb2a[_0x20994f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf5c7bd=_0x2cde04(_0x5cbb2a[_0x20994f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5cbb2a[_0x20994f([0x6a,0x74,0x69])])),await _0x463a6c()?_0x4e0888()?_0x15573e()?_0x20994f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d9472()?(_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x74,0x72,0x69,0x61,0x6c])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e3711()):_0x20994f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20994f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x577136){return _0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15573e(){const _0xc11a4f=[_0x20994f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20994f([0x74,0x72,0x69,0x61,0x6c])][_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4144d6/0x3e8:0xe10*_0x2c063c;return _0x5cbb2a[_0x20994f([0x65,0x78,0x70])]<_0xc11a4f;}function _0x4e0888(){const _0xc94e7b=_0x5cbb2a[_0x20994f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc94e7b&&(!!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x2a]))||(!!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x52,0x48]))||!(!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x52,0x52,0x48]))||!_0x4d06fe())));}function _0x5d9472(){const _0x59c05e=_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59c05e||0x0==_0x59c05e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2015cd}=new URL(window[_0x20994f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59c05e[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2015cd))return!0x0;const _0x12df3f=_0x2015cd[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e]));return _0x59c05e[_0x20994f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a91a1=>_0x4a91a1[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x2a])))[_0x20994f([0x6d,0x61,0x70])](_0x5c2e80=>_0x5c2e80[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e])))[_0x20994f([0x73,0x6f,0x6d,0x65])](_0x4c4bdd=>_0x12df3f[_0x20994f([0x65,0x76,0x65,0x72,0x79])]((_0x3db08b,_0x2ff7ca)=>_0x4c4bdd[_0x2ff7ca]===_0x3db08b||_0x4c4bdd[_0x2ff7ca]===_0x20994f([0x2a])));}function _0x4e3711(){return _0x34d5bd&&_0xf5c7bd?new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50789e,_0x102ee9)=>{_0x34d5bd[_0x20994f([0x74,0x68,0x65,0x6e])](_0x50789e,_0x102ee9),_0xf5c7bd[_0x20994f([0x74,0x68,0x65,0x6e])](_0x2e374d=>{_0x2e374d!=_0x20994f([0x56,0x61,0x6c,0x69,0x64])&&_0x50789e(_0x2e374d);},_0x102ee9);}):_0x34d5bd||_0xf5c7bd||_0x20994f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cde04(_0x6f5ff,_0x13849a){return new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27176d=>{if(_0xba8722())return _0x27176d(_0x20994f([0x56,0x61,0x6c,0x69,0x64]));_0x290225(),_0x23d37c[_0x20994f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b5a91=!0x1;const _0x3f0cd4=_0x20d582();function _0x167103(_0x3a66c2){return!!_0x3a66c2&&(typeof _0x3a66c2===_0x20994f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a66c2===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a66c2[_0x20994f([0x74,0x68,0x65,0x6e])]===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a66c2[_0x20994f([0x63,0x61,0x74,0x63,0x68])]===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x785e05(_0x1e1f9f){_0xc37286(_0x1e1f9f)[_0x20994f([0x74,0x68,0x65,0x6e])](_0x5094c4=>{if(!_0x5094c4||_0x5094c4[_0x20994f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20994f([0x6f,0x6b]))return _0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x583013(_0xe2f8b0(_0x3f0cd4+_0x13849a))!=_0x5094c4[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20994f([0x56,0x61,0x6c,0x69,0x64]);})[_0x20994f([0x74,0x68,0x65,0x6e])](_0x5d790a=>(_0xba8346(),_0x5d790a),()=>{const _0x52a1fe=_0x24290e();return null==_0x52a1fe?(_0xba8346(),_0x20994f([0x56,0x61,0x6c,0x69,0x64])):_0x20994f(_0x4144d6-_0x52a1fe>(0x1ea6a17f^_0x154b11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20994f([0x74,0x68,0x65,0x6e])](_0x27176d)[_0x20994f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d5b8e=0x3a9ccbff^_0x154b11;function _0xba8346(){const _0x5037b7=_0x20994f([0x6c,0x6c,0x63,0x74,0x2d])+_0x583013(_0xe2f8b0(_0x6f5ff)),_0x150fdb=_0x4b6ea4(_0x583013(window[_0x20994f([0x4d,0x61,0x74,0x68])][_0x20994f([0x63,0x65,0x69,0x6c])](_0x4144d6/_0x2d5b8e)));window[_0x20994f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20994f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5037b7,_0x150fdb);}function _0x24290e(){const _0x36b070=_0x20994f([0x6c,0x6c,0x63,0x74,0x2d])+_0x583013(_0xe2f8b0(_0x6f5ff)),_0x4ab12f=window[_0x20994f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20994f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b070);return _0x4ab12f?window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b6ea4(_0x4ab12f),0x10)*_0x2d5b8e:null;}function _0xc37286(_0x4729a6){return new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x462700,_0xfa817d)=>{_0x4729a6[_0x20994f([0x74,0x68,0x65,0x6e])](_0x462700,_0xfa817d),window[_0x20994f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfa817d,0x3aabf1bf^_0x154b11);});}}_0x23d37c[_0x20994f([0x6f,0x6e])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ab38,_0x3e559e)=>{if(_0x3e559e[0x0]!=_0x6f5ff)return _0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e559e[0x1]={..._0x3e559e[0x1],[_0x20994f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f0cd4};},{[_0x20994f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20994f([0x68,0x69,0x67,0x68])}),_0x23d37c[_0x20994f([0x6f,0x6e])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfed50c=>{_0x167103(_0xfed50c[_0x20994f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b5a91=!0x0,_0x785e05(_0xfed50c[_0x20994f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20994f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20994f([0x6c,0x6f,0x77])}),_0x56a46a[_0x20994f([0x74,0x68,0x65,0x6e])](()=>{_0x4b5a91||_0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xba8722(){return _0x23d37c[_0x20994f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20994f([0x76,0x69,0x65,0x77])][_0x20994f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20994f([0x61,0x75,0x74,0x6f]);}function _0x290225(){_0x23d37c[_0x20994f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20994f([0x76,0x69,0x65,0x77])][_0x20994f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20994f([0x61,0x75,0x74,0x6f]);}}function _0x2bc980(_0x4ae4f4){const _0x1bcebd=[new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ef2a=>setTimeout(_0x47ef2a,0x3aa31bb3^_0x154b11)),_0x56a46a[_0x20994f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9185=>{const _0x30362b=0x3aaa2578^_0x154b11,_0x390793=_0x50ddb5[_0x20994f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4904de(){_0x390793[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x30362b&&_0x4b9185();}_0x4904de(),_0x390793[_0x20994f([0x6f,0x6e])](_0x20994f([0x61,0x64,0x64]),_0x4904de);})),new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x779180=>{function _0x9c8966(){for(const _0x4ddeb4 in window)if(window[_0x20994f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x20994f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4ddeb4))&&window[_0x4ddeb4]==_0x2e89bb)return _0x779180();_0x23d37c[_0x20994f([0x73,0x74,0x61,0x74,0x65])]!=_0x20994f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x20994f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9c8966,0x3aaa36f7^_0x154b11);}_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x9c8966();})];return window[_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20994f([0x72,0x61,0x63,0x65])](_0x1bcebd)[_0x20994f([0x74,0x68,0x65,0x6e])](()=>_0x4ae4f4);}async function _0x5b9d6a(){if(await _0x56a46a,_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3c7e3f=_0x50ddb5[_0x20994f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4a9053=_0x50ddb5[_0x20994f([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])](_0x3c7e3f[_0x20994f([0x69,0x64])]),_0xddcaf7=_0x26f8d0(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xddcaf7[_0x20994f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3c7e3f['id'],_0x4a9053?_0x4a9053['id']:null,!0x0),_0xddcaf7[_0x20994f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xddcaf7[_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xddcaf7[_0x20994f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x39c513,void(_0xddcaf7[_0x20994f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x39c513);}if(_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4e69d2=_0x26f8d0(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4e69d2[_0x20994f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e69d2[_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e69d2[_0x20994f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x39c513,_0x4e69d2[_0x20994f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x39c513;}_0x23d37c[_0x20994f([0x6d,0x6f,0x64,0x65,0x6c])][_0x20994f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c513,_0x23d37c[_0x20994f([0x6d,0x6f,0x64,0x65,0x6c])][_0x20994f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c513,_0x23d37c[_0x20994f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20994f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d06fe(){return _0x116d6f(_0x20994f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26f8d0(_0x20994f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20994f([0x73,0x74,0x61,0x74,0x65])]==_0x20994f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x9c9e86(_0x44367c){const _0xbaf47e=_0x3ad605();_0x23d37c[_0xbaf47e]=_0x20994f([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])+_0x44367c,_0x44367c[_0x20994f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x20994f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3ad605()]=_0x2e89bb),_0x44367c!=_0x20994f([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9d6a();}function _0x3ad605(){const _0x3a261c=window[_0x20994f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20994f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20994f([0x6e,0x6f,0x77])]())[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20994f([0x2e]),'');let _0x494228=_0x20994f([0x62]);for(let _0x437504=0x0;_0x437504<_0x3a261c[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437504+=0x2){let _0x16440c=window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a261c[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437504,_0x437504+0x2));_0x16440c>=_0x58c5d6[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16440c-=_0x58c5d6[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x494228+=_0x58c5d6[_0x16440c];}return _0x494228;}function _0x7b9664(){const _0x16de83=_0x37c5ba[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e]));if(0x3!=_0x16de83[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11633c(_0x16de83[0x1]);function _0x11633c(_0x32c428){const _0x2ae028=_0x52576f(_0x32c428);return _0x2ae028&&_0x2cee69()?_0x2ae028:null;function _0x2cee69(){const _0x1f4b3e=_0x2ae028[_0x20994f([0x6a,0x74,0x69])],_0x1114ce=window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f4b3e[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f4b3e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fd8e1={..._0x2ae028,[_0x20994f([0x6a,0x74,0x69])]:_0x1f4b3e[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f4b3e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fd8e1[_0x20994f([0x76,0x63])],_0xe2f8b0(_0x3fd8e1)==_0x1114ce;}}}async function _0x463a6c(){let _0x160022=!0x0;try{const _0x51f699=_0x37c5ba[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e])),[_0x33d9b2,_0x1e076a,_0x41eed5]=_0x51f699;return _0x178c21(_0x33d9b2),await _0x47b39e(_0x33d9b2,_0x1e076a,_0x41eed5),_0x160022;}catch(_0x38f7c8){return!0x1;}function _0x178c21(_0x5b6ef5){const _0x122723=_0x52576f(_0x5b6ef5);_0x122723&&_0x122723[_0x20994f([0x61,0x6c,0x67])]==_0x20994f([0x45,0x53,0x32,0x35,0x36])||(_0x160022=!0x1);}async function _0x47b39e(_0x7f7e07,_0x495714,_0x3bda47){const _0x2378db=window[_0x20994f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20994f([0x66,0x72,0x6f,0x6d])](_0x3255ee(_0x3bda47),_0x7180f7=>_0x7180f7[_0x20994f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf030c9=new window[(_0x20994f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20994f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7f7e07+_0x20994f([0x2e])+_0x495714),_0xdd124=window[_0x20994f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20994f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd124)return;const _0x18d9e0=await _0xdd124[_0x20994f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20994f([0x6a,0x77,0x6b]),_0x46d573,{[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x45,0x43,0x44,0x53,0x41]),[_0x20994f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20994f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd124[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x45,0x43,0x44,0x53,0x41]),[_0x20994f([0x68,0x61,0x73,0x68])]:{[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18d9e0,_0x2378db,_0xf030c9)||(_0x160022=!0x1);}}function _0x52576f(_0x24ca42){return _0x24ca42[_0x20994f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20994f([0x65,0x79]))?JSON[_0x20994f([0x70,0x61,0x72,0x73,0x65])](_0x3255ee(_0x24ca42)):null;}function _0x3255ee(_0x31ea3f){return window[_0x20994f([0x61,0x74,0x6f,0x62])](_0x31ea3f[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20994f([0x2b]))[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20994f([0x2f])));}function _0xe2f8b0(_0x15c8f5){let _0xe0df03=0x1505;function _0x5722bc(_0x223d88){for(let _0x126920=0x0;_0x126920<_0x223d88[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x126920++){const _0x375879=_0x223d88[_0x20994f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x126920);_0xe0df03=(_0xe0df03<<0x5)+_0xe0df03+_0x375879,_0xe0df03&=_0xe0df03;}}function _0x2f7df6(_0x43abbc){Array[_0x20994f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43abbc)?_0x43abbc[_0x20994f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f7df6):_0x43abbc&&typeof _0x43abbc==_0x20994f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20994f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43abbc)[_0x20994f([0x73,0x6f,0x72,0x74])]()[_0x20994f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44b145,_0x50dc7d])=>{_0x5722bc(_0x44b145),_0x2f7df6(_0x50dc7d);}):_0x5722bc(window[_0x20994f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43abbc));}return _0x2f7df6(_0x15c8f5),_0xe0df03>>>0x0;}function _0x583013(_0x599af5){return _0x599af5[_0x20994f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20994f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20994f([0x30]));}function _0x4b6ea4(_0x4043b7){return _0x4043b7[_0x20994f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20994f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20994f([0x6a,0x6f,0x69,0x6e])]('');}function _0x116d6f(_0x2e601a){return _0x23d37c[_0x20994f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20994f([0x68,0x61,0x73])](_0x2e601a);}function _0x26f8d0(_0x48c0ac){return _0x23d37c[_0x20994f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20994f([0x67,0x65,0x74])](_0x48c0ac);}function _0x39c513(){}function _0x20994f(_0x23cbda){return _0x23cbda['map'](_0x4490a9=>String['fromCharCode'](_0x4490a9))['join']('');}_0x9c9e86(await _0x259cdf());}(this);}['createRevision'](_0x49bff6){const _0x3426a4=this['editor']['plugins']['get']('Users');return new a({'id':_0x49bff6['id'],'name':_0x49bff6['name'],'creator':_0x49bff6['creatorId']?_0x3426a4['getUser'](_0x49bff6['creatorId']):null,'diffData':_0x49bff6['diffData']||_0x49bff6['data'],'authors':_0x49bff6['authorsIds']['map'](_0x5e126c=>_0x3426a4['getUser'](_0x5e126c)),'createdAt':new Date(_0x49bff6['createdAt']),'attributes':_0x49bff6['attributes'],'fromVersion':_0x49bff6['fromVersion'],'toVersion':_0x49bff6['toVersion']});}['addRevision'](_0x2c8e5,_0xc7128a=0x0){this['_revisions']['add'](_0x2c8e5,_0xc7128a);}['getRevision'](_0xa633ea){return this['_revisions']['get'](_0xa633ea);}['getRevisions'](_0x44ecde={'toJSON':!0x1}){const _0x32ac24=Array['from'](this['_revisions']);return _0x32ac24['reverse'](),_0x44ecde['toJSON']?_0x32ac24['map'](_0x1e0a77=>_0x1e0a77['toJSON']()):_0x32ac24;}['getIndex'](_0x34e5c6){return this['_revisions']['getIndex'](_0x34e5c6);}['getEarlierVisibleRevision'](_0x20982a){const [,_0x436790]=this['getRevisionsIterator'](_0x20982a,{'direction':'earlier'});return _0x436790;}['getLaterVisibleRevision'](_0x3e7ede){const [,_0x28f805]=this['getRevisionsIterator'](_0x3e7ede,{'direction':'later'});return _0x28f805;}['getRevisionsInDiff'](_0x1fb8bc){const _0x5a5bab=[];for(const _0x16648c of this['getRevisionsIterator'](_0x1fb8bc['newRevisionId']))if(_0x5a5bab['push'](_0x16648c),_0x16648c['id']===_0x1fb8bc['oldRevisionId'])break;return _0x5a5bab;}*['getRevisionsIterator'](_0x10227b,{direction:_0x37893b='earlier',filter:_0x5eaeb2=()=>!0x0}={}){const _0x3d0124='earlier'===_0x37893b?0x1:-0x1;let _0x199980=this['_revisions']['get'](_0x10227b),_0x357976=this['getIndex'](_0x199980);for(yield _0x199980;_0x199980;){if(_0x357976+=_0x3d0124,_0x199980=this['getRevision'](_0x357976),!_0x199980)return;_0x5eaeb2(_0x199980)&&(yield _0x199980);}}}function R(_0x1de825,_0x1c8bf7,_0x5f4c47){const t=_0x1de825['t'];switch(_0x1c8bf7){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'},_0x5f4c47);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5f4c47);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x25a049,'a':_0x597a04,'e':_0x55fbd8,'r':_0x10d393,'u':_0x5c14f2};class l extends _0x49113c{['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[_0x580655,j,_0x25f2bd];}constructor(_0xa305ab){super(_0xa305ab),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x101bff=_0x20d582();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x101bff},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 _0x2e1531=this['repository']['getRevision'](0x0),_0x233f2d=_0x2e1531&&null===_0x2e1531['creator']?_0x2e1531:null;if(this['_continueCurrentRevision']=!!_0x233f2d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x279ca2=this['_source']['getCurrentRevisionId'](),_0x49c486=this['repository']['getRevision'](_0x279ca2);if(_0x49c486)this['_startingVersion']=_0x49c486['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c3a1c=this['_source']['history']['_operations']['find'](_0x14f57c=>!_0x14f57c['_isInit']),_0xb75385=_0x1c3a1c?_0x1c3a1c['baseVersion']:this['_source']['history']['version'];_0x2e1531?(_0x2e1531['toVersion']<_0xb75385&&_0x2e1531['_update']({'toVersion':_0xb75385}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id'],this['_startingVersion']=_0x233f2d['fromVersion']):(this['_startingVersion']=_0x2e1531['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb75385,this['_continueCurrentRevision']=!0x1);}}else _0x233f2d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x233f2d['toVersion'],this['editor']['model']['document']['history']['version']),_0x233f2d['fromVersion']===_0x233f2d['toVersion']?(0x0!==_0x233f2d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id'],this['_startingVersion']=_0x233f2d['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',_0x4e4b7a=>!_0x4e4b7a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c0339=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x87249f;for(const _0x397005 in _0x1c0339){const _0x2850fb=_0x397005,_0x1624aa=_0x1c0339[_0x2850fb];if('revisionHistoryLicenseKeyValid'==_0x1624aa||'revisionHistoryLicenseKeyInvalid'==_0x1624aa||'revisionHistoryLicenseKeyExpired'==_0x1624aa||'revisionHistoryLicenseKeyDomainLimit'==_0x1624aa||'revisionHistoryLicenseKeyNotAllowed'==_0x1624aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1624aa||'revisionHistoryLicenseKeyTrialLimit'==_0x1624aa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1624aa||'revisionHistoryLicenseKeyUsageLimit'==_0x1624aa){delete _0x1c0339[_0x2850fb],_0x87249f=_0x1624aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x87249f&&_0x1c0339['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x87249f&&_0x1c0339['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x87249f&&_0x1c0339['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xb91d73=this['repository']['getRevision'](0x0),_0x58de11=await this['getRevisionDocumentData'](_0xb91d73),_0x746845=await this['getRevisionRootsAttributes'](_0xb91d73);this['_replaceEditorDataWithRevisionData'](_0x58de11,_0x746845);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b9a8f){this['_source']=_0x2b9a8f;}async['update'](){const _0x1d488c=await this['_source']['getLatestVersion']();if(_0x1d488c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x245410=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1d488c});_0x245410['authors']=_0x245410['authorsIds']['map'](_0x182299=>this['editor']['plugins']['get']('Users')['getUser'](_0x182299)),this['currentRevision']['_update'](_0x245410);}}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'](_0x4b78a4={},_0x744c87=null){const _0x5f0641=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x744c87>this['currentRevision']['toVersion']&&(_0x744c87=null),null===_0x744c87&&(_0x744c87=await this['_source']['getLatestVersion']());const _0x135c1d=this['_getFromVersion'](_0x744c87),_0x2b45cf=this['buildRevisionData']({'from':_0x135c1d,'to':_0x744c87});if(this['currentRevision']['toVersion']<_0x744c87){const _0x3a5f26=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x744c87,'to':_0x744c87});_0x3a5f26['authors']=[],_0x3a5f26['authorsIds']=[],_0x3a5f26['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3a5f26,!0x0),delete _0x3a5f26['authors'],_0x5f0641['push'](_0x3a5f26);}_0x4b78a4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b78a4['name']=_0x4b78a4['name']||null,_0x4b78a4['id']=_0x4b78a4['id']||_0x20d582(),_0x4b78a4={..._0x4b78a4,..._0x2b45cf};const _0x1b3128=this['addRevisionData'](_0x4b78a4);_0x5f0641['push'](_0x4b78a4);const _0x1860e1=this['repository']['getIndex'](_0x1b3128);if(0x0!==_0x1860e1){const _0x1d6178=this['repository']['getRevision'](_0x1860e1-0x1);if(_0x1d6178['fromVersion']!==_0x744c87){const _0x36bf2d=this['_revisionDataBuilder']['getData'](_0x744c87,_0x1d6178['toVersion']),_0x593d90={'id':_0x1d6178['id'],'diffData':_0x36bf2d['diffData'],'authorsIds':_0x36bf2d['authorsIds'],'authors':_0x36bf2d['authorsIds']['map'](_0x4f8ea3=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f8ea3)),'fromVersion':_0x744c87};_0x1d6178===this['currentRevision']&&(_0x593d90['createdAt']=new Date(_0x4b78a4['createdAt']['getTime']()+0xa)),_0x1d6178['_update'](_0x593d90,!0x0),delete _0x593d90['authors'],_0x5f0641['push'](_0x593d90);}}if(this['adapter']){for(const _0x1e8795 of _0x5f0641)this['_bufferUpdate'](_0x1e8795['id'],_0x1e8795,!0x0);this['sendBufferedUpdates']();}return _0x1b3128;}['addRevisionData'](_0x15914e){const _0x2e85f2=this['repository']['createRevision'](_0x15914e);return this['adapter']&&_0x2e85f2['on']('_update',(_0x5601a2,_0x3a5479,_0x1624a9)=>{_0x1624a9||(this['_bufferUpdate'](_0x3a5479['id'],_0x3a5479,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2e85f2,this['_findInsertionIndex'](_0x2e85f2)),_0x2e85f2;}async['getRevisionDocumentData'](_0x21db7f){await this['_loadRevisionData'](_0x21db7f);const _0x1ca7ce={};for(const _0x1d74f3 in _0x21db7f['diffData']){if(_0x21db7f['diffData'][_0x1d74f3]['attachChange']&&!_0x21db7f['diffData'][_0x1d74f3]['attachChange']['isAttached'])continue;const _0x57eea2=this['_removeRevisionMarkers'](JSON['parse'](_0x21db7f['diffData'][_0x1d74f3]['insertions'])),_0x1667bc=this['editor']['editing']['view']['document'],_0x2638ef=new _0x1b99e2(_0x1667bc,_0x57eea2['map'](_0x2b1295=>V(_0x2b1295,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ca7ce[_0x1d74f3]=this['editor']['data']['processor']['toData'](_0x2638ef),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ca7ce;}async['getRevisionRootsAttributes'](_0x46144b){await this['_loadRevisionData'](_0x46144b);const _0x186615={};for(const _0x54b53a in _0x46144b['diffData'])_0x46144b['diffData'][_0x54b53a]['attachChange']&&!_0x46144b['diffData'][_0x54b53a]['attachChange']['isAttached']||(_0x186615[_0x54b53a]=_0x46144b['diffData'][_0x54b53a]['attributesAfter']||{});return _0x186615;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xc3b801=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54804e=0x0;_0x54804e<_0xc3b801['length'];_0x54804e++){const _0x1aa930=_0xc3b801[_0x54804e];let _0x5c2491=!0x1;for(const _0x5a4f5a of Object['keys'](_0x1aa930))void 0x0===_0x1aa930[_0x5a4f5a]?delete _0x1aa930[_0x5a4f5a]:'id'!==_0x5a4f5a&&(_0x5c2491=!0x0);_0x5c2491||(_0xc3b801[_0x54804e]=null);}if(_0xc3b801=_0xc3b801['filter'](_0x4fce5c=>null!==_0x4fce5c),!_0xc3b801['length'])return;for(let _0x194dd6=0x0;_0x194dd6<_0xc3b801['length'];_0x194dd6++){const _0x5bb960=_0xc3b801[_0x194dd6];void 0x0!==_0x5bb960['fromVersion']&&void 0x0===_0x5bb960['toVersion']&&(_0x5bb960['toVersion']=this['repository']['getRevision'](_0x5bb960['id'])['toVersion']),void 0x0!==_0x5bb960['toVersion']&&void 0x0===_0x5bb960['fromVersion']&&(_0x5bb960['fromVersion']=this['repository']['getRevision'](_0x5bb960['id'])['fromVersion']);}const _0x1dfecf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xc3b801,_0x1dfecf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3efcef=>{if(_0x3efcef){for(const _0x5b4d7f of _0x3efcef)this['setRevisionData']({'id':_0x5b4d7f['id'],'createdAt':_0x5b4d7f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x113b7e,_0x552a3e){let _0x394a3a=this['editor']['config']['get']('initialData'),_0x6f19ab=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x394a3a){_0x394a3a={};for(const _0x18976a of this['editor']['model']['document']['getRootNames']())_0x394a3a[_0x18976a]='';}if('string'==typeof _0x394a3a&&(_0x394a3a={'main':_0x394a3a}),void 0x0===_0x6f19ab){_0x6f19ab={};for(const _0x5cbbbb of this['editor']['model']['document']['getRootNames']())_0x6f19ab[_0x5cbbbb]={};}let _0x163eaf=!0x1;const _0x959f4f=Object['keys'](_0x394a3a),_0x830b57=Object['keys'](_0x113b7e);for(const _0x5cd3f1 of _0x959f4f){if(_0x394a3a[_0x5cd3f1]!==_0x113b7e[_0x5cd3f1]&&''!==_0x394a3a[_0x5cd3f1]['trim']()){_0x163eaf=!0x0;break;}if(!_0x106b29(_0x6f19ab[_0x5cd3f1],_0x552a3e[_0x5cd3f1])&&Object['keys'](_0x6f19ab[_0x5cd3f1])['length']>0x0){_0x163eaf=!0x0;break;}}_0x163eaf||(_0x163eaf=_0x830b57['some'](_0x25bf86=>!this['editor']['model']['document']['getRoot'](_0x25bf86))),_0x163eaf&&_0xa4cba7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x394a3a,'editorRootsAttributes':_0x6f19ab,'revisionData':_0x113b7e,'revisionRootsAttributes':_0x552a3e}),this['editor']['config']['set']('initialData',_0x113b7e),this['editor']['config']['set']('rootsAttributes',_0x552a3e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e27eb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e27eb['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x31cc72){const _0x546fdf=this['repository']['getRevisions']();_0x546fdf['reverse']();let _0xd4d607=0x0;for(;_0xd4d607<_0x546fdf['length'];){const _0x5e0b7e=_0x546fdf[_0xd4d607];if(_0x5e0b7e===this['currentRevision']){_0xd4d607++;continue;}if(_0x5e0b7e['id']===this['_initialRevisionId'])break;const _0x3a1c46=_0x31cc72['toVersion']-_0x5e0b7e['toVersion']||_0x31cc72['fromVersion']-_0x5e0b7e['fromVersion'];if(_0x3a1c46>0x0)break;if(_0x3a1c46<0x0)_0xd4d607++;else{if(!_0x31cc72['creator']&&_0x5e0b7e['creator'])break;if(_0x5e0b7e['creator']||!_0x31cc72['creator']){if(_0x31cc72['createdAt']>_0x5e0b7e['createdAt'])break;_0xd4d607++;}else _0xd4d607++;}}return _0xd4d607;}['setRevisionData'](_0x57e235){const _0x223954=this['repository']['getRevision'](_0x57e235['id']);if(_0x57e235['createdAt']&&(_0x57e235['createdAt']=new Date(_0x57e235['createdAt'])),_0x57e235['authorsIds']){const _0x1defce=this['editor']['plugins']['get']('Users');_0x57e235['authors']=_0x57e235['authorsIds']['map'](_0x5ae903=>_0x1defce['getUser'](_0x5ae903));}_0x223954['_update'](_0x57e235,!0x0);}['buildRevisionData']({revision:_0x5e37f3=null,from:_0x134cc7=null,to:_0x190cfc=null}){_0x134cc7=null!==_0x134cc7?_0x134cc7:_0x5e37f3['fromVersion'],_0x190cfc=null!==_0x190cfc?_0x190cfc:_0x5e37f3['toVersion'];const _0x5a6a97=this['_revisionDataBuilder']['getData'](_0x134cc7,_0x190cfc),_0x4483c4={'diffData':_0x5a6a97['diffData'],'authorsIds':_0x5a6a97['authorsIds'],'fromVersion':_0x134cc7,'toVersion':_0x190cfc};if(!_0x5e37f3||_0x190cfc!==_0x5e37f3['toVersion']){const _0x48e415=_0x190cfc-0x1,_0x29f369=this['_source']['history']['getOperation'](_0x48e415);_0x4483c4['createdAt']=_0x29f369&&_0x29f369['createdAt']||new Date();}if(this['_loadedStateData']&&_0x134cc7===this['_loadedStateData']['fromVersion']){for(const _0x54cd06 of this['_loadedStateData']['authors'])_0x4483c4['authorsIds']['includes'](_0x54cd06['id'])||_0x4483c4['authorsIds']['push'](_0x54cd06['id']);}return _0x4483c4;}['_loadRevisionData'](_0x2407a3){if(!_0x2407a3||_0x2407a3['diffData'])return Promise['resolve']();{const _0x4feac9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4feac9,'revisionId':_0x2407a3['id']})['then'](_0x95525c=>{_0x2407a3['diffData']=_0x95525c['diffData'];});}}['_bufferUpdate'](_0x571ce9,_0x3ef59a,_0x1f55e7){if(this['_bufferedUpdates']['has'](_0x571ce9)){const _0x1c49ac=this['_bufferedUpdates']['get'](_0x571ce9);_0x3ef59a=_0x1f55e7?{..._0x1c49ac,..._0x3ef59a}:{..._0x3ef59a,..._0x1c49ac};}this['_bufferedUpdates']['set'](_0x571ce9,_0x3ef59a);}['_getFromVersion'](_0x5b528e){const _0x447abf=this['repository']['getRevisions']();_0x447abf['reverse'](),_0x447abf['shift']();const _0x1f043e=_0x447abf['find'](_0x320032=>_0x320032['toVersion']<=_0x5b528e)['toVersion'];return _0x1f043e<this['_startingVersion']?this['_startingVersion']:_0x1f043e;}['_createInitialRevision'](_0x5d8359){const _0xe055e0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xe055e0)this['_initialRevisionId']=_0xe055e0['id'];else{const _0x22e918=!this['editor']['model']['document']['roots']['find'](_0x58f6a5=>this['editor']['model']['hasContent'](_0x58f6a5)),_0x38dd3d=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eed93=R(this['editor']['locale'],_0x22e918?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d8359,'to':_0x5d8359,'id':this['_initialRevisionId'],'name':_0x5eed93,'creatorId':_0x38dd3d});}}['_createCurrentRevision'](_0x5b86c5){const _0x2fa8c8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2fa8c8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b86c5,'to':_0x5b86c5,'id':_0x2fa8c8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24cd1f,from:_0xaec831,to:_0x15666b,creatorId:_0x2de062,id:_0x42aeda}){const _0x22c6d7=this['buildRevisionData']({'from':_0xaec831,'to':_0x15666b});_0x22c6d7['name']=_0x24cd1f,_0x22c6d7['creatorId']=_0x2de062,_0x22c6d7['id']=_0x42aeda;const _0xb2910b=this['addRevisionData'](_0x22c6d7);return this['adapter']&&this['_bufferUpdate'](_0x22c6d7['id'],_0x22c6d7,!0x0),_0xb2910b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x54ad97){return(_0x54ad97=_0x54ad97['filter'](_0x3db28a=>!_0x3db28a['name']||'revision-start'!==_0x3db28a['name']&&'revision-end'!==_0x3db28a['name']))['forEach'](_0x38c652=>{'string'!=typeof _0x38c652&&(_0x38c652['children']=this['_removeRevisionMarkers'](_0x38c652['children']),_0x38c652['attributes']=_0x38c652['attributes']['filter'](_0x115937=>!_0x115937[0x0]['startsWith']('data-revision-')));}),_0x54ad97;}}function V(_0x24d7e1,_0x260abb){const _0x3ba2be=_0x260abb['editing']['view']['document'];if('string'==typeof _0x24d7e1)return new _0x10d8cb(_0x3ba2be,_0x24d7e1);{const _0x499836=_0x24d7e1['children']['map'](_0x46d77d=>V(_0x46d77d,_0x260abb));return new(C[_0x24d7e1['type']]||_0x3b4ce6)(_0x3ba2be,_0x24d7e1['name'],_0x24d7e1['attributes'],_0x499836);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x42e71e){this['editor']=_0x42e71e,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'](_0x298120){this['source']=_0x298120;const _0x37e967=new Map(),_0x329278=new Map(),_0x1afa3a=this['editor']['model']['document']['roots']['map'](_0x99ccde=>_0x99ccde['rootName']);for(const _0x4d8841 of _0x1afa3a){const _0x3500fd=this['editor']['model']['document']['getRoot'](_0x4d8841),_0x565de3=F(_0x3500fd);_0x37e967['set'](_0x4d8841,_0x565de3),_0x329278['set'](_0x4d8841,Object['fromEntries'](_0x3500fd['getAttributes']()));}const _0x163523=Array['from'](this['editor']['model']['markers'])['map'](_0x4e62cd=>[_0x4e62cd['name'],_0x4e62cd['getRange']()]),_0xaf2709=this['source']['version'];this['_saveMetaData'](_0xaf2709,_0x37e967,_0x163523,_0x329278),this['_startingRevisionId']=this['_revisionId'];const _0x382042=new Map(),_0xef08=new Map();for(const _0x1508ef of _0x1afa3a){const _0x25e0e9=B(_0x1508ef);_0x382042['set'](_0x1508ef,_0x25e0e9),_0xef08['set'](_0x1508ef,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x382042,[],_0xef08);}['getData'](_0x35cee2,_0x3abf84){if(this['_lastFrom']===_0x35cee2&&this['_lastTo']<=_0x3abf84)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3abf84,!0x0);else{if(!this['_savedMetaData']['has'](_0x35cee2)){const _0xda6a1a=this['_getPreviousFrom'](_0x35cee2);this['_calculateMetaData'](_0xda6a1a,_0x35cee2,!0x1);}this['_calculateMetaData'](_0x35cee2,_0x3abf84,!0x0);}return this['_lastFrom']=_0x35cee2,this['_lastTo']=_0x3abf84,this['_getState']();}['loadState'](_0x2128a1){this['_reset'](),this['_lastFrom']=_0x2128a1['fromVersion'],this['_lastTo']=_0x2128a1['toVersion'];for(const _0x272b6e in _0x2128a1['diffData']){const _0x528116=_0x2128a1['diffData'][_0x272b6e]['attachChange'],_0x3a0830=_0x1046c5(_0x2128a1['diffData'][_0x272b6e]['attributesBefore'])||{},_0x264357=this['_makeModelFromViewString'](_0x2128a1['diffData'][_0x272b6e]['deletions']);_0x264357['rootName']=_0x272b6e,_0x264357['_isAttached']=!_0x528116||!_0x528116['isAttached'],_0x264357['isAttached']=()=>_0x264357['_isAttached'],this['_baseRoots']['set'](_0x272b6e,_0x264357),this['_baseRootsAttributes']['set'](_0x272b6e,_0x3a0830),_0x528116&&this['_touchedRoots']['set'](_0x272b6e,_0x528116);const _0x24c7bd=this['_makeIdsRoot'](_0x264357);this['_baseIdsRoots']['set'](_0x272b6e,_0x24c7bd);for(const [_0x351f4b,_0x2a4a3b]of _0x264357['markers']){if(!_0x351f4b['startsWith']('revision:'))continue;const _0x1c5dc0=_0x351f4b['split'](':')[0x2];for(const _0x3fc67a of _0x2a4a3b['getWalker']({'singleCharacters':!0x0})){const _0x409fc4=this['_getVidAttributeName'](_0x3fc67a),_0x19dd77='elementEnd'==_0x3fc67a['type']?_0x3fc67a['previousPosition']['path']['slice'](0x0,-0x1):_0x3fc67a['previousPosition']['path'],_0x1d977e=_0x24c7bd['getNodeByPath'](_0x19dd77)['getAttribute'](_0x409fc4);this['_touched']['set'](_0x1d977e,{'userId':_0x1c5dc0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2a5946=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x136b66=>!this['_touched']['has'](_0x136b66));let _0x16079c=0x0;const _0x4f5190=new Map();for(const _0x363465 in _0x2128a1['diffData']){const _0x29cbcd=_0x2128a1['diffData'][_0x363465]['attachChange'],_0x2276e3=_0x1046c5(_0x2128a1['diffData'][_0x363465]['attributesAfter'])||{},_0x22a844=this['_makeModelFromViewString'](_0x2128a1['diffData'][_0x363465]['insertions']);_0x22a844['rootName']=_0x363465,_0x22a844['_isAttached']=!_0x29cbcd||_0x29cbcd['isAttached'],_0x22a844['isAttached']=()=>_0x22a844['_isAttached'],this['_diffRoots']['set'](_0x363465,_0x22a844),this['_diffRootsAttributes']['set'](_0x363465,_0x2276e3);const _0x2fe146=this['_makeIdsRoot'](_0x22a844,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x363465,_0x2fe146),_0x4f5190['set'](_0x363465,_0x22a844['isAttached']()?_0x2276e3:{});for(const [_0x58c409,_0x5d8a83]of _0x22a844['markers']){if(!_0x58c409['startsWith']('revision:'))continue;const _0x5318bc=_0x58c409['split'](':')[0x2];for(const _0x265cbe of _0x5d8a83['getWalker']({'singleCharacters':!0x0})){const _0x531c95=this['_getVidAttributeName'](_0x265cbe),_0x33ba68=this['_revisionId']++,_0x16aca1='elementEnd'==_0x265cbe['type']?_0x265cbe['previousPosition']['path']['slice'](0x0,-0x1):_0x265cbe['previousPosition']['path'];_0x2fe146['getNodeByPath'](_0x16aca1)['_setAttribute'](_0x531c95,_0x33ba68),this['_touched']['set'](_0x33ba68,{'userId':_0x5318bc});}}for(const _0x56b4b4 of this['editor']['model']['createRangeIn'](_0x22a844)['getWalker']({'singleCharacters':!0x0})){const _0x4b0257=this['_getVidAttributeName'](_0x56b4b4),_0x59b935='elementEnd'==_0x56b4b4['type']?_0x56b4b4['previousPosition']['path']['slice'](0x0,-0x1):_0x56b4b4['previousPosition']['path'],_0xb7c06=_0x2fe146['getNodeByPath'](_0x59b935);_0xb7c06['getAttribute'](_0x4b0257)>0x0||_0xb7c06['_setAttribute'](_0x4b0257,_0x2a5946[_0x16079c++]);}for(const [_0x189386,_0x375bbd]of _0x22a844['markers'])_0x189386['startsWith']('revision:')||this['_markers']['set'](_0x189386,_0x375bbd);}const _0x488210=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x488210),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x488210,0x1));const _0x52941e=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x52941e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x52941e,0x1));const _0x8ed05=Array['from'](this['_diffRoots'])['map'](([_0x389a15,_0x5d2079])=>[_0x389a15,F(_0x5d2079)]);this['_saveMetaData'](this['_lastTo'],_0x8ed05,this['_markers'],_0x4f5190);}['_makeModelFromViewString'](_0x2b8413){const _0x311e13=JSON['parse'](_0x2b8413),_0x4e6aaa=this['editor']['editing']['view']['document'],_0x4c4b1b=new _0x1b99e2(_0x4e6aaa,_0x311e13['map'](_0x121c72=>V(_0x121c72,this['editor'])));return this['editor']['data']['toModel'](_0x4c4b1b);}['_saveMetaData'](_0x39acd1,_0x4f0f52,_0x3430b8,_0x22578b){const _0xe09c4a=new Map(_0x4f0f52),_0xa89573=new Map(_0x1046c5(_0x22578b)),_0x554ef9=new Map();for(const [_0x35d611,_0x3113e1]of _0x3430b8)_0x554ef9['set'](_0x35d611,{'start':_0x3113e1['start']['clone'](),'end':_0x3113e1['end']['clone'](),'rootName':_0x3113e1['root']['rootName']});this['_savedMetaData']['set'](_0x39acd1,{'roots':_0xe09c4a,'markers':_0x554ef9,'rootsAttributes':_0xa89573});}['_removeMetaData'](_0xa5c4c3){this['_savedMetaData']['delete'](_0xa5c4c3);}['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'](_0x545726,_0x325335=null){let _0x5af956=null;_0x545726['is']('documentFragment')||(_0x5af956=new ft(_0x545726['name'],{'vid_start':null===_0x325335?this['_revisionId']++:_0x325335++}));const _0x3db151=[];for(const _0x439966 of _0x545726['getChildren']())if(_0x439966['is']('element')){_0x3db151['push'](this['_makeIdsRoot'](_0x439966,_0x325335));const _0x2a137a=_0x3db151[_0x3db151['length']-0x1];null!==_0x325335&&(_0x325335=_0x2a137a['is']('element','$text')?_0x2a137a['getAttribute']('vid')+0x1:_0x2a137a['getAttribute']('vid_end')+0x1);}else{for(let _0x104da8=0x0;_0x104da8<_0x439966['offsetSize'];_0x104da8++)_0x3db151['push'](new ft('$text',{'vid':null===_0x325335?this['_revisionId']++:_0x325335++}));}if(_0x545726['is']('documentFragment')){const _0x1f01f1=B(_0x545726['rootName']);return _0x1f01f1['_insertChild'](0x0,_0x3db151),_0x1f01f1;}return _0x5af956['_setAttribute']('vid_end',null===_0x325335?this['_revisionId']++:_0x325335++),_0x5af956['_insertChild'](0x0,_0x3db151),_0x5af956;}['_calculateMetaData'](_0x1ef1f0,_0x3c7273,_0x5a27cf){this['_reset']();const {roots:_0x338f6b,markers:_0x2de35c,rootsAttributes:_0x269db1}=this['_savedMetaData']['get'](_0x1ef1f0);this['_baseRoots']=new Map(_0x338f6b),this['_baseRootsAttributes']=new Map(_0x1046c5(_0x269db1));for(const [_0x3929dd,_0xfc5631]of this['_baseRoots'])if('$graveyard'!==_0x3929dd&&(this['_diffRoots']['set'](_0x3929dd,F(_0xfc5631)),this['_diffRootsAttributes']=new Map(_0x1046c5(_0x269db1)),_0x5a27cf)){const _0x4f4da8=this['_revisionId'];this['_idsRoots']['set'](_0x3929dd,this['_makeIdsRoot'](_0xfc5631)),this['_baseIdsRoots']['set'](_0x3929dd,this['_makeIdsRoot'](_0xfc5631,_0x4f4da8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5a27cf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35b3cb,_0x4d9ea8]of _0x2de35c){const _0x323719=this['_baseRoots']['get'](_0x4d9ea8['rootName']),_0x246421=this['_diffRoots']['get'](_0x4d9ea8['rootName']),_0xbe7539=new vt(this['_fixPosition'](_0x4d9ea8['start'],_0x323719),this['_fixPosition'](_0x4d9ea8['end'],_0x323719)),_0x4c8afd=this['_fixRange'](_0xbe7539,_0x246421);_0x323719['markers']['set'](_0x35b3cb,_0xbe7539),this['_markers']['set'](_0x35b3cb,_0x4c8afd);}this['_applyOperations'](_0x1ef1f0,_0x3c7273,_0x5a27cf);}['_applyOperations'](_0x4b0352,_0x136568,_0x1d5c82){for(const _0x1511d2 of this['source']['getOperations'](_0x4b0352,_0x136568))this['_handleOperation'](_0x1511d2,_0x1d5c82);for(const _0x4dad26 of this['_diffRoots']['values']())_0x4dad26['markers']['clear']();for(const [_0x219705,_0x59cd3a]of this['_markers']){this['_diffRoots']['get'](_0x59cd3a['root']['rootName'])['markers']['set'](_0x219705,_0x59cd3a['clone']());}const _0x396218=new Map(),_0x61f9c6=new Map();for(const [_0x4d2269,_0x61d012]of this['_diffRoots'])_0x396218['set'](_0x4d2269,F(_0x61d012)),_0x61f9c6['set'](_0x4d2269,this['_diffRootsAttributes']['get'](_0x4d2269));this['_saveMetaData'](_0x136568,_0x396218,this['_markers'],_0x61f9c6);}['_getPreviousFrom'](_0x4b8651){const _0x1d0f80=Array['from'](this['_savedMetaData']['keys']());_0x1d0f80['sort']((_0x56cec3,_0x4c54cf)=>_0x56cec3-_0x4c54cf),_0x1d0f80['reverse']();for(const _0x25144b of _0x1d0f80)if(_0x25144b<_0x4b8651)return _0x25144b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x791814,_0x1390e5){const _0x3e724d=Array['from'](_0x1390e5['markers'])['map'](([_0x583fdb,_0x1b695a])=>[_0x583fdb,this['_fixRange'](_0x1b695a,_0x791814)]);_0x791814['markers']=new Map(_0x3e724d);}['_transformMarkers'](_0x32518f){for(const _0x496028 of this['_markers']['values']()){const _0x3d7450=_0x496028['getTransformedByOperation'](_0x32518f),_0x59806c=vt['_createFromRanges'](_0x3d7450);_0x496028['start']=_0x59806c['start'],_0x496028['end']=_0x59806c['end'];}}['_handleOperation'](_0x18a796,_0x478b59){if('addRoot'!=_0x18a796['type']&&'detachRoot'!=_0x18a796['type']){if('insert'==_0x18a796['type']){const _0xb51874=_0x18a796['position']['root']['rootName'];this['_diffRoots']['has'](_0xb51874)||(this['_diffRoots']['set'](_0xb51874,B(_0xb51874,!0x0)),this['_diffRootsAttributes']['set'](_0xb51874,{}),_0x478b59&&this['_idsRoots']['set'](_0xb51874,B(_0xb51874,!0x0)));}else{if('addRootAttribute'==_0x18a796['type']||'removeRootAttribute'==_0x18a796['type']||'changeRootAttribute'==_0x18a796['type'])return void this['_handleRootAttributeOperation'](_0x18a796);'marker'==_0x18a796['type']&&this['_handleMarkerOperation'](_0x18a796);}if('marker'!==_0x18a796['type']){const _0x1442d3=this['_cloneOperation'](_0x18a796,this['_diffRoots']);_0x1442d3['_execute'](),this['_transformMarkers'](_0x1442d3);}if(_0x478b59)switch(_0x18a796['type']){case'insert':this['_handleInsertOperation'](_0x18a796);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x18a796);break;case'merge':this['_handleMergeOperation'](_0x18a796);break;case'split':this['_handleSplitOperation'](_0x18a796);}}else this['_handleRootOperation'](_0x18a796,_0x478b59);}['_cloneOperation'](_0x205afa,_0x15cf94){const _0x29e056=_0x205afa['clone']();return _0x29e056['_authorId']=_0x205afa['_authorId'],this['_fixOperation'](_0x29e056,_0x15cf94),_0x29e056;}['_getBaseVids'](_0x10f98c){return _0x10f98c['map'](_0x66a0c9=>{const _0x3d1a01=this['_getVidAttributeName'](_0x66a0c9);return Number(_0x66a0c9['item']['getAttribute'](_0x3d1a01));});}['_generateTape'](_0xf0b52e,_0x5a1dae){if(_0xf0b52e['is']('element','$text'))_0x5a1dae['push']({'item':_0xf0b52e,'type':'text'});else{_0xf0b52e['is']('element')&&_0x5a1dae['push']({'item':_0xf0b52e,'type':'elementStart'});for(const _0x4f1f74 of _0xf0b52e['getChildren']())this['_generateTape'](_0x4f1f74,_0x5a1dae);_0xf0b52e['is']('element')&&_0x5a1dae['push']({'item':_0xf0b52e,'type':'elementEnd'});}return _0x5a1dae;}['_getState'](){const _0x3cc399=new Map(this['_touched']),_0x43932c=new Map(_0x3cc399),_0x476e58=new Map(),_0x298f02={'insertions':{},'deletions':{}},_0x4d325e={'insertions':{},'deletions':{}},_0x1dcaba=new Map(),_0x171988=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x171988['delete']('$graveyard');for(const _0x317e45 of _0x171988){const _0x488c45=this['_diffRoots']['get'](_0x317e45)||B(_0x317e45,!0x1),_0x231d00=this['_baseRoots']['get'](_0x317e45)||B(_0x317e45,!0x1);_0x488c45['isAttached']()||_0x231d00['isAttached']()?(_0x298f02['insertions'][_0x317e45]=F(_0x488c45),_0x298f02['deletions'][_0x317e45]=F(_0x231d00),this['_copyMarkers'](_0x298f02['deletions'][_0x317e45],_0x231d00),this['_copyMarkers'](_0x298f02['insertions'][_0x317e45],_0x488c45),_0x4d325e['insertions'][_0x317e45]=this['_generateTape'](this['_idsRoots']['get'](_0x317e45),[]),_0x4d325e['deletions'][_0x317e45]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x317e45)||B(_0x317e45,!0x1),[])):_0x171988['delete'](_0x317e45);}for(const _0x1a2ac4 of _0x171988){const _0x9532ac=_0x4d325e['insertions'][_0x1a2ac4];for(const _0x384894 of _0x9532ac){const _0x29d160=this['_getVidAttributeName'](_0x384894),_0x1b7786=_0x384894['item']['getAttribute'](_0x29d160);_0x43932c['delete'](_0x1b7786),_0x1b7786>=this['_startingRevisionId']&&_0x476e58['set'](_0x1b7786,_0x3cc399['get'](_0x1b7786));}}for(const _0x151474 of _0x171988){const _0x1dd2e5=_0x4d325e['insertions'][_0x151474],_0x42c799=this['_getBaseVids'](_0x4d325e['deletions'][_0x151474]);let _0x2a4476=0x0;for(const _0x293c8c of _0x1dd2e5){const _0x502883=this['_getVidAttributeName'](_0x293c8c),_0x2e3b8b=_0x293c8c['item']['getAttribute'](_0x502883);if(!_0x476e58['has'](_0x2e3b8b)&&!_0x1dcaba['has'](_0x2e3b8b)){if(_0x43932c['has'](_0x2e3b8b))_0x2a4476++;else{if(_0x2e3b8b!=_0x42c799[_0x2a4476]){const _0x58a4eb=_0x3cc399['get'](_0x2e3b8b)||_0x3cc399['get'](_0x42c799[_0x2a4476]);for(;_0x2e3b8b!=_0x42c799[_0x2a4476];)_0x43932c['has'](_0x42c799[_0x2a4476])||(_0x1dcaba['set'](_0x42c799[_0x2a4476],_0x58a4eb),_0x3cc399['set'](_0x42c799[_0x2a4476],_0x58a4eb)),_0x2a4476++;}_0x2a4476++;}}}}for(const _0x589a74 of _0x171988){const _0x14bbfa=_0x4d325e['insertions'][_0x589a74];for(const _0x124aae of _0x14bbfa){const _0x41a5e5=this['_getVidAttributeName'](_0x124aae),_0x38a93e=_0x124aae['item']['getAttribute'](_0x41a5e5);if(_0x1dcaba['has'](_0x38a93e)){const _0x203979=_0x1dcaba['get'](_0x38a93e);_0x43932c['has'](_0x38a93e)||_0x43932c['set'](_0x38a93e,{..._0x203979}),_0x476e58['set'](_0x38a93e,{..._0x203979});}}}for(const _0x347c67 of _0x43932c['keys']())_0x347c67>=this['_startingRevisionId']&&_0x43932c['delete'](_0x347c67);const _0x38e6e9=new Map();for(const _0xf293db of _0x171988){let _0x3b0dcf=_0x4d325e['insertions'][_0xf293db];for(const _0x675937 of _0x3b0dcf)if(_0x675937['item']['is']('element','tableCell')){const _0x1d00c7=this['_getVidAttributeName'](_0x675937),_0x721a4f=_0x675937['item']['getAttribute'](_0x1d00c7);if(_0x476e58['has'](_0x721a4f)){const _0x42aaf8=_0x675937['item']['parent']['parent']['getAttribute']('vid_start'),_0x4b6f16=_0x38e6e9['get'](_0x42aaf8)||new Set();_0x4b6f16['add'](_0x476e58['get'](_0x721a4f)['userId']),_0x38e6e9['set'](_0x42aaf8,_0x4b6f16);}}_0x3b0dcf=_0x4d325e['deletions'][_0xf293db];for(const _0x1021ff of _0x3b0dcf)if(_0x1021ff['item']['is']('element','tableCell')){const _0x20bdb2=this['_getVidAttributeName'](_0x1021ff),_0x5032c1=_0x1021ff['item']['getAttribute'](_0x20bdb2);if(_0x43932c['has'](_0x5032c1)){const _0x4e3ef8=_0x1021ff['item']['parent']['parent']['getAttribute']('vid_start'),_0x208e99=_0x38e6e9['get'](_0x4e3ef8)||new Set();_0x208e99['add'](_0x43932c['get'](_0x5032c1)['userId']),_0x38e6e9['set'](_0x4e3ef8,_0x208e99);}}for(const _0x27f19f of _0x38e6e9['keys']())(_0x476e58['has'](_0x27f19f)||_0x43932c['has'](_0x27f19f))&&_0x38e6e9['delete'](_0x27f19f);}for(const _0x27dfa2 of _0x171988){const _0x4ef808=_0x4d325e['insertions'][_0x27dfa2];let _0x3233be=null,_0x17a3a3=null;for(const _0x30f444 of _0x4ef808){const _0x106e0d=this['_getVidAttributeName'](_0x30f444),_0x45246c=_0x30f444['item']['getAttribute'](_0x106e0d),_0x143245=_0x38e6e9['get'](_0x45246c);_0x143245&&'elementStart'==_0x30f444['type']&&(_0x3233be=Array['from'](_0x143245)[0x0],_0x17a3a3=_0x30f444['item']['getAttribute']('vid_end')),_0x3233be&&(_0x43932c['set'](_0x45246c,{'userId':_0x3233be}),_0x476e58['set'](_0x45246c,{'userId':_0x3233be})),_0x45246c==_0x17a3a3&&(_0x3233be=null,_0x17a3a3=null);}}const _0x317b35={},_0x1a0da7=new Set();for(const _0x11eb7d of _0x171988){const _0x4a5d45=_0x298f02['deletions'][_0x11eb7d],_0x54129b=_0x298f02['insertions'][_0x11eb7d];for(const {userId:_0x317507}of this['_touchedMarkers']['values']())null!==_0x317507&&_0x1a0da7['add'](_0x317507);for(const {userId:_0xe74b5a}of this['_touchedRoots']['values']())null!==_0xe74b5a&&_0x1a0da7['add'](_0xe74b5a);this['_markChanges'](_0x54129b,_0x4d325e['insertions'][_0x11eb7d],_0x476e58,'insertion',_0x1a0da7),this['_markChanges'](_0x4a5d45,_0x4d325e['deletions'][_0x11eb7d],_0x43932c,'deletion',_0x1a0da7),_0x317b35[_0x11eb7d]={'insertions':this['_prepareViewToSave'](_0x54129b),'deletions':this['_prepareViewToSave'](_0x4a5d45),'attachChange':this['_touchedRoots']['get'](_0x11eb7d)||null,'attributesBefore':_0x1046c5(this['_baseRootsAttributes']['get'](_0x11eb7d))||{},'attributesAfter':_0x1046c5(this['_diffRootsAttributes']['get'](_0x11eb7d))};}return{'diffData':_0x317b35,'authorsIds':Array['from'](_0x1a0da7)};}['_processRootBeforeSave'](_0x487e02){for(const [,_0x5a3349]of _0x487e02['markers']){const _0x5a0d78=_0x5a3349['start']['getAncestors']()['filter'](_0xfa5786=>'tableCell'==_0xfa5786['name']);for(const _0x364d98 of _0x5a0d78)0x1==_0x364d98['childCount']&&_0x364d98['getChild'](0x0)['is']('element','paragraph')&&_0x364d98['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x190782){this['_processRootBeforeSave'](_0x190782);const _0xeaee00=this['editor']['data']['toView'](_0x190782,{}),_0x558aef=Array['from'](_0xeaee00['getChildren']())['map'](_0x12a6ed=>this['_getViewJson'](_0x12a6ed));return JSON['stringify'](_0x558aef);}['_getViewJson'](_0x44813c){if(_0x44813c['is']('$text'))return _0x44813c['data'];{const _0x48dd76=_0x44813c;return{'type':Object['keys'](C)['find'](_0x5ad0c8=>_0x44813c instanceof C[_0x5ad0c8]),'name':_0x48dd76['name'],'attributes':Array['from'](_0x48dd76['getAttributes']()),'children':Array['from'](_0x48dd76['getChildren']())['map'](_0x4ec2d5=>this['_getViewJson'](_0x4ec2d5))};}}['_markChanges'](_0x487b66,_0x2c8cac,_0x45283a,_0x7f9d6f,_0x2df5ef){let _0x27548f=null,_0x1f2a0c=null,_0x5c6165=0x0;const _0x1efbcf=this['editor']['model'];for(let _0x41f32c=0x0;_0x41f32c<_0x2c8cac['length'];_0x41f32c++){const _0x1e76e4=this['_getVidAttributeName'](_0x2c8cac[_0x41f32c]),_0x4778d7=_0x2c8cac[_0x41f32c]['item']['getAttribute'](_0x1e76e4),_0x145303=_0x45283a['get'](_0x4778d7),_0x5c506e=_0x41f32c==_0x2c8cac['length']-0x1;(!_0x27548f&&_0x145303&&(_0x27548f=_0x145303,_0x1f2a0c=_0x2c8cac[_0x41f32c]),_0x27548f&&(!_0x145303||_0x145303['userId']!=_0x27548f['userId']))&&(_0x4e5ff7(_0x145303,J(_0x1f2a0c,_0x487b66,_0x1efbcf),J(_0x2c8cac[_0x41f32c],_0x487b66,_0x1efbcf)),_0x27548f=_0x145303||null,_0x1f2a0c=_0x145303?_0x2c8cac[_0x41f32c]:null),_0x27548f&&_0x5c506e&&_0x4e5ff7(_0x145303,J(_0x1f2a0c,_0x487b66,_0x1efbcf),q(_0x2c8cac[_0x41f32c],_0x487b66,_0x1efbcf));}function _0x4e5ff7(_0x2d77ff,_0x57aedf,_0x4594e1){const _0x28ec87=_0x27548f['userId'],_0xc91995='revision:'+_0x7f9d6f+':'+_0x28ec87+':'+_0x5c6165++,_0x516920=_0x1efbcf['createRange'](_0x57aedf,_0x4594e1);_0x487b66['markers']['set'](_0xc91995,_0x516920),null!==_0x28ec87&&_0x2df5ef['add'](_0x28ec87);}}['_getVidAttributeName'](_0x53eba4){switch(_0x53eba4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28e688,_0x3eda15){_0x28e688['baseVersion']=null;for(const _0x581646 in _0x28e688){const _0x53acd8=_0x28e688[_0x581646];if(_0x53acd8 instanceof gt){const _0x28e92a=_0x3eda15['get'](_0x53acd8['root']['rootName']);_0x28e688[_0x581646]=this['_fixPosition'](_0x53acd8,_0x28e92a);}if(_0x53acd8 instanceof vt){const _0x28b89e=_0x3eda15['get'](_0x53acd8['root']['rootName']);_0x28e688[_0x581646]=this['_fixRange'](_0x53acd8,_0x28b89e);}'root'===_0x581646&&(_0x28e688['root']=_0x3eda15['get'](_0x28e688['root']['rootName']));}}['_fixRange'](_0x4b3425,_0x705a3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b3425['start'],_0x705a3),this['_fixPosition'](_0x4b3425['end'],_0x705a3));}['_fixPosition'](_0x1cf4b8,_0x213ac1){return this['editor']['model']['createPositionFromPath'](_0x213ac1,_0x1cf4b8['path'],_0x1cf4b8['stickiness']);}['_handleInsertOperation'](_0x13764e){const _0x4d0824=this['_idsRoots']['get'](_0x13764e['position']['root']['rootName']),_0x3ea75b=this['_fixPosition'](_0x13764e['position'],_0x4d0824),_0x38f6d1=null===_0x13764e['_authorId']?null:_0x13764e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47e00e=_0x3ea75b['parent'],_0x34e73b=this['_revisionId'],_0x31b313=[];for(const _0x2a1e5e of _0x13764e['nodes'])if(_0x2a1e5e['is']('element'))_0x31b313['push'](this['_makeIdsRoot'](_0x2a1e5e));else{for(let _0x41531d=0x0;_0x41531d<_0x2a1e5e['offsetSize'];_0x41531d++)_0x31b313['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x96b88e=this['_revisionId'];for(let _0x379b11=_0x34e73b;_0x379b11<_0x96b88e;_0x379b11++)this['_touched']['set'](_0x379b11,{'userId':_0x38f6d1});_0x47e00e['_insertChild'](_0x3ea75b['offset'],_0x31b313);}['_handleMoveOperation'](_0x415d7a){(_0x415d7a=this['_cloneOperation'](_0x415d7a,this['_idsRoots']))['_execute']();const _0x5853cb=null===_0x415d7a['_authorId']?null:_0x415d7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e24fc=_0x415d7a['getMovedRangeStart'](),_0x3428bf=_0x4e24fc['parent'],_0x3d0c4f=_0x4e24fc['offset'];!function _0x5d1cf5(_0x3d420f,_0xaa57ab,_0x563d0e,_0x1eed61){for(let _0x59dd98=_0x563d0e;_0x59dd98<_0x1eed61;_0x59dd98++){const _0x206196=_0xaa57ab['getChild'](_0x59dd98);_0x206196['is']('element','$text')?_0x3d420f['set'](_0x206196['getAttribute']('vid'),{'userId':_0x5853cb}):(_0x3d420f['set'](_0x206196['getAttribute']('vid_start'),{'userId':_0x5853cb}),_0x5d1cf5(_0x3d420f,_0x206196,0x0,_0x206196['childCount']),_0x3d420f['set'](_0x206196['getAttribute']('vid_end'),{'userId':_0x5853cb}));}}(this['_touched'],_0x3428bf,_0x3d0c4f,_0x3d0c4f+_0x415d7a['howMany']);}['_handleMergeOperation'](_0x77313f){const _0x33c444=null===(_0x77313f=this['_cloneOperation'](_0x77313f,this['_idsRoots']))['_authorId']?null:_0x77313f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4541de=_0x77313f['targetPosition']['parent'],_0x51f3ba=_0x77313f['sourcePosition']['parent'],_0x182bc7=_0x4541de['getAttribute']('vid_end'),_0x473076=_0x51f3ba['getAttribute']('vid_start');_0x4541de['_setAttribute']('vid_end',_0x51f3ba['getAttribute']('vid_end')),_0x51f3ba['_setAttribute']('vid_end',_0x182bc7),this['_touched']['set'](_0x473076,{'userId':_0x33c444}),this['_touched']['set'](_0x182bc7,{'userId':_0x33c444}),_0x77313f['_execute']();}['_handleSplitOperation'](_0xf28d90){const _0x2adec8=null===(_0xf28d90=this['_cloneOperation'](_0xf28d90,this['_idsRoots']))['_authorId']?null:_0xf28d90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1151bf=_0xf28d90['graveyardPosition'],_0xe73164=_0xf28d90['splitPosition']['parent'];_0xf28d90['_execute']();const _0x2740b9=_0xe73164['getAttribute']('vid_end'),_0x3a8f88=_0xf28d90['insertionPosition']['nodeAfter'];if(_0x1151bf){const _0x5f0a2e=_0x3a8f88['getAttribute']('vid_end'),_0x1151da=_0xe73164['getAttribute']('vid_end');_0xe73164['_setAttribute']('vid_end',_0x5f0a2e),_0x3a8f88['_setAttribute']('vid_end',_0x1151da),this['_touched']['set'](_0xe73164['getAttribute']('vid_end'),{'userId':_0x2adec8}),this['_touched']['set'](_0x3a8f88['getAttribute']('vid_start'),{'userId':_0x2adec8});}else{const _0x55a1a8=this['_revisionId']++,_0x58b231=this['_revisionId']++;_0xe73164['_setAttribute']('vid_end',_0x55a1a8),_0x3a8f88['_setAttribute']('vid_start',_0x58b231),_0x3a8f88['_setAttribute']('vid_end',_0x2740b9),this['_touched']['set'](_0x55a1a8,{'userId':_0x2adec8}),this['_touched']['set'](_0x58b231,{'userId':_0x2adec8});}}['_handleMarkerOperation'](_0x3fbbe0){if(!_0x3fbbe0['affectsData'])return;const _0x4e8d70=(_0x3fbbe0=this['_cloneOperation'](_0x3fbbe0,this['_diffRoots']))['oldRange']?_0x3fbbe0['oldRange']['root']:null,_0x183eff=_0x3fbbe0['newRange']?_0x3fbbe0['newRange']['root']:null;_0x4e8d70&&this['_markers']['delete'](_0x3fbbe0['name']),_0x183eff&&this['_markers']['set'](_0x3fbbe0['name'],_0x3fbbe0['newRange']['clone']());const _0xc675=null===_0x3fbbe0['_authorId']?null:_0x3fbbe0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x439a0c=_0x3fbbe0['name'];if(!this['_touchedMarkers']['has'](_0x439a0c))return void this['_touchedMarkers']['set'](_0x439a0c,{'range':_0x3fbbe0['oldRange'],'userId':_0xc675});const _0x3dca0e=this['_touchedMarkers']['get'](_0x439a0c),_0x4f500b=_0x3dca0e['range'],_0x58ffef=_0x3fbbe0['newRange'];null==_0x4f500b&&null==_0x58ffef||_0x4f500b&&_0x58ffef&&_0x4f500b['isEqual'](_0x58ffef)?this['_touchedMarkers']['delete'](_0x3fbbe0['name']):_0x3dca0e['userId']=_0xc675;}['_handleRootOperation'](_0x39491a,_0x27f4de){this['_diffRoots']['has'](_0x39491a['rootName'])?this['_diffRoots']['get'](_0x39491a['rootName'])['_isAttached']=_0x39491a['isAdd']:(this['_diffRoots']['set'](_0x39491a['rootName'],B(_0x39491a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39491a['rootName'],{}),_0x27f4de&&this['_idsRoots']['set'](_0x39491a['rootName'],B(_0x39491a['rootName'],!0x0)));const _0x335401=null===_0x39491a['_authorId']?null:_0x39491a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c49cb=this['_touchedRoots']['get'](_0x39491a['rootName']);_0x5c49cb&&_0x5c49cb['userId']===_0x335401?this['_touchedRoots']['delete'](_0x39491a['rootName']):this['_touchedRoots']['set'](_0x39491a['rootName'],{'userId':_0x335401,'isAttached':_0x39491a['isAdd']});}['_handleRootAttributeOperation'](_0x1274a0){const _0x1a0aa0=this['_diffRootsAttributes']['get'](_0x1274a0['root']['rootName']);null===_0x1274a0['newValue']?delete _0x1a0aa0[_0x1274a0['key']]:_0x1a0aa0[_0x1274a0['key']]=_0x1274a0['newValue'];}}function F(_0x47dba2){const _0x4c1611=B(_0x47dba2['rootName'],_0x47dba2['isAttached']());for(const _0x578b3e of _0x47dba2['getChildren']()){const _0xf9a804=_0x578b3e['_clone'](!0x0);_0x4c1611['_appendChild'](_0xf9a804);}return _0x4c1611;}function B(_0x40bb49,_0x103cd0=!0x0){const _0xe4a221=new mt();return _0xe4a221['rootName']=_0x40bb49,_0xe4a221['_isAttached']=_0x103cd0,_0xe4a221['isAttached']=()=>_0xe4a221['_isAttached'],_0xe4a221;}function J(_0xe9cba4,_0x596fff,_0x17f1cb){const _0x2b6264='elementEnd'==_0xe9cba4['type']?_0x17f1cb['createPositionAt'](_0xe9cba4['item'],'end'):_0x17f1cb['createPositionBefore'](_0xe9cba4['item']);return _0x17f1cb['createPositionFromPath'](_0x596fff,_0x2b6264['path'],_0x2b6264['stickiness']);}function q(_0x2bf36f,_0x296af7,_0x56ee10){const _0x25ab16='elementStart'==_0x2bf36f['type']?_0x56ee10['createPositionAt'](_0x2bf36f['item'],0x0):_0x56ee10['createPositionAfter'](_0x2bf36f['item']);return _0x56ee10['createPositionFromPath'](_0x296af7,_0x25ab16['path'],_0x25ab16['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5f468e,_0x3046ab){super(_0x5f468e),this['focusTracker']=new _0x1d3bd3(),this['keystrokes']=new _0x5bd07a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3046ab),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x221a1e(this);}['render'](){super['render'](),_0x6fdeae({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xc44fad=_0x74a19d=>_0x74a19d['stopPropagation']();this['keystrokes']['set']('arrowright',_0xc44fad),this['keystrokes']['set']('arrowleft',_0xc44fad),this['keystrokes']['set']('arrowup',_0xc44fad),this['keystrokes']['set']('arrowdown',_0xc44fad);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x451bb2){this['revisionNameInputView']['fieldView']['element']['value']=_0x451bb2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x40b5b5){const _0xd0c101=new _0x4e4e87(this['locale'],_0x10f75e),_0x3a9a18=_0xd0c101['fieldView'];_0x3a9a18['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x47c0c7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x40b5b5&&(_0x47c0c7+='\x20('+R(this['locale'],'optional')+')'),(_0xd0c101['label']=_0x47c0c7,_0x3a9a18['on']('input',()=>{this['revisionNameInputValue']=_0x3a9a18['element']['value']['trim']();}),_0xd0c101);}}class u extends _0x49113c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4896e5=this['editor'],_0x129091=_0x4896e5['plugins']['get']('RevisionTracker');_0x4896e5['ui']['componentFactory']['add']('revisionHistory',_0x5c59ed=>{const _0x307415=_0xf41fd9(_0x5c59ed),_0x33cc18=_0x307415['panelView']['children'],_0x1d60cb=new _0x5cb7ac(_0x5c59ed),_0x236d88=new _0x543a5b(_0x5c59ed),_0x26ca7e=new te(_0x5c59ed),_0x1dbf93=new _0x543a5b(_0x5c59ed),_0x218271=new te(_0x5c59ed);return _0x307415['bind']('isEnabled')['to'](_0x129091,'isReady',_0x129091,'isEnabled',_0x4896e5,'isReadOnly',(_0x4895e1,_0x4fec04,_0x525b09)=>_0x4895e1&&_0x4fec04&&!_0x525b09),_0x307415['buttonView']['set']({'icon':_0x54bba4['history'],'label':R(_0x5c59ed,'Revision\x20history'),'tooltip':!0x0}),_0x26ca7e['set']({'label':R(_0x5c59ed,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26ca7e['bind']('isEnabled')['to'](_0x129091,'isReady',_0x129091,'isEnabled',_0x4896e5,'isReadOnly',(_0x5a2762,_0x16aa1b,_0x2ea57d)=>_0x5a2762&&_0x16aa1b&&!_0x2ea57d),_0x26ca7e['on']('execute',()=>this['_showDialog']()),_0x218271['set']({'label':R(_0x5c59ed,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x218271['bind']('isEnabled')['to'](_0x129091,'isReady',_0x4896e5,'isReadOnly',(_0xcf5236,_0x2ce57d)=>_0xcf5236&&!_0x2ce57d),_0x218271['on']('execute',()=>{_0x4896e5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x307415['isOpen']=!0x1,_0x4896e5['editing']['view']['focus']();}),_0x236d88['children']['add'](_0x26ca7e),_0x1dbf93['children']['add'](_0x218271),_0x1d60cb['role']='menu',_0x1d60cb['items']['addMany']([_0x236d88,_0x1dbf93]),_0x33cc18['add'](_0x1d60cb),_0x307415;}),_0x4896e5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4dbaa2=this['editor'],_0x543a4e=_0x4dbaa2['locale'],_0x53ffd7=new _0xe02d1b(_0x543a4e),_0x19cb21=new _0x449759(_0x543a4e);_0x53ffd7['buttonView']['set']({'icon':_0x54bba4['history'],'label':R(_0x543a4e,'Revision\x20history')});const _0x47e3f7=new _0xf67f(_0x543a4e,_0x53ffd7),_0x6961f7=new _0xb420ba(_0x543a4e);_0x6961f7['set']({'label':R(_0x543a4e,'Save\x20current\x20revision')}),_0x6961f7['delegate']('execute')['to'](_0x53ffd7),_0x6961f7['on']('execute',()=>{this['_showDialog']();}),_0x47e3f7['children']['add'](_0x6961f7),_0x19cb21['items']['add'](_0x47e3f7);const _0x16ee71=new _0xf67f(_0x543a4e,_0x53ffd7),_0x48de29=new _0xb420ba(_0x543a4e);return _0x48de29['set']({'label':R(_0x543a4e,'Open\x20revision\x20history')}),_0x48de29['delegate']('execute')['to'](_0x53ffd7),_0x48de29['on']('execute',()=>{_0x4dbaa2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16ee71['children']['add'](_0x48de29),_0x19cb21['items']['add'](_0x16ee71),_0x53ffd7['panelView']['children']['add'](_0x19cb21),_0x53ffd7;}['_showDialog'](){const _0x2c3d48=this['editor'],_0x4d5fea=_0x2c3d48['locale'],_0x3162ad=_0x2c3d48['plugins']['get']('Dialog'),_0x2e00ba=_0x2c3d48['plugins']['get']('RevisionTracker');function _0x3bfa89(_0x445b32){_0x2c3d48['config']['get']('revisionHistory.requireRevisionName')&&''===_0x445b32['revisionName']?_0x445b32['revisionNameInputView']['errorText']=R(_0x4d5fea,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2c3d48['plugins']['get'](l)['saveRevision']({'name':_0x445b32['revisionName']}),_0x3162ad['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3bfa89(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3162ad['show']({'id':'revisionSave','title':R(_0x4d5fea,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2c3d48['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3162ad['hide']()},{'label':R(_0x2c3d48['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51a3fe){_0x51a3fe['bind']('isEnabled')['to'](_0x2e00ba,'isReady',_0x2e00ba,'isEnabled',_0x2c3d48,'isReadOnly',(_0x286986,_0x14c124,_0x2a997f)=>_0x286986&&_0x14c124&&!_0x2a997f);},'onExecute':()=>_0x3bfa89(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xd3ac91=this['editor'],_0x11d3e1=_0xd3ac91['locale'];this['_saveRevisionFormView']=new hs(_0x11d3e1,_0xd3ac91['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0xe5910e,_0x3d13f6){super(_0xe5910e),this['_model']=_0x3d13f6,this['changeId']=_0x3d13f6['id'];const _0x251cb6=this['bindTemplate'],_0xd0f235=R(_0xe5910e,_0x3d13f6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3d13f6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3d13f6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x251cb6['to']('type',_0x457518=>'ck-revision-change__'+_0x457518)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xd0f235}]},{'text':'\x20'+_0x3d13f6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x354be7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5e59ef){super(),this['id']=_0x5e59ef['id']||_0x20d582(),this['author']=_0x5e59ef['author'],this['type']=_0x5e59ef['type'],this['data']=_0x5e59ef['data']||{},this['rootName']=_0x5e59ef['rootName'],this['set']('createdAt',_0x5e59ef['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(_0x4cc28e,_0x1f02b3){this['newRevisionId']=_0x4cc28e,this['oldRevisionId']=_0x1f02b3,this['changes']=new _0x5b23d0();}['_setChanges'](_0x314d96){for(const _0x30ac66 of _0x314d96)this['changes']['add'](_0x30ac66);}}const Z={'c':_0x25a049,'a':_0x597a04,'e':_0x55fbd8,'r':_0x10d393,'u':_0x5c14f2};class d extends _0x49113c{['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[_0x580655,_0x7472c6,j];}constructor(_0x203347){super(_0x203347),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',(_0x421837,_0x3ee938,_0x40f1f7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x13d54c=>{for(const _0x54b53d of this['editor']['editing']['view']['document']['roots'])_0x40f1f7?_0x13d54c['removeClass']('ck-editor__editable__overlay',_0x54b53d):_0x13d54c['addClass']('ck-editor__editable__overlay',_0x54b53d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b1b0d=>null!==_0x5b1b0d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4d5127,_0x3d487b,_0x4a1b2f)=>_0x4d5127&&_0x4a1b2f?_0x3d487b['changes']['getIndex'](_0x4a1b2f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x8a3d76,_0x4c74f3)=>_0x8a3d76?_0x4c74f3['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x7472c6);}['init'](){const _0xcdf3cd=this['editor'],_0x8ec71b=new yt(_0xcdf3cd,{'direction':'backward'}),_0x5d5d32=new yt(_0xcdf3cd,{'direction':'forward'});(_0xcdf3cd['commands']['add']('showPreviousChange',_0x8ec71b),_0xcdf3cd['commands']['add']('showNextChange',_0x5d5d32),_0xcdf3cd['commands']['add']('restoreRevision',new _t(_0xcdf3cd)),this['on']('change:numberOfChanges',()=>{_0x8ec71b['refresh'](),_0x5d5d32['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xcdf3cd['enableReadOnlyMode']('revision-viewer'),_0xcdf3cd['plugins']['has']('WidgetToolbarRepository'))&&_0xcdf3cd['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x403ed4){await this['loadRevisionData'](_0x403ed4);const _0x271c34={};for(const _0x4eae82 in _0x403ed4['diffData']){if(_0x403ed4['diffData'][_0x4eae82]['attachChange']&&!_0x403ed4['diffData'][_0x4eae82]['attachChange']['isAttached'])continue;const _0x2bf7c9=this['_removeRevisionMarkers'](JSON['parse'](_0x403ed4['diffData'][_0x4eae82]['insertions'])),_0x2e9b07=this['editor']['editing']['view']['document'],_0x17bb20=new _0x1b99e2(_0x2e9b07,_0x2bf7c9['map'](_0x94cdb6=>this['_getViewObj'](_0x94cdb6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x271c34[_0x4eae82]=this['editor']['data']['processor']['toData'](_0x17bb20),this['editor']['data']['processor']['useFillerType']('default');}return _0x271c34;}async['getRevisionRootsAttributes'](_0x5a4112){await this['loadRevisionData'](_0x5a4112);const _0x29cd5b={};for(const _0x220156 in _0x5a4112['diffData'])_0x5a4112['diffData'][_0x220156]['attachChange']&&!_0x5a4112['diffData'][_0x220156]['attachChange']['isAttached']||(_0x29cd5b[_0x220156]=_0x5a4112['diffData'][_0x220156]['attributesAfter']||{});return _0x29cd5b;}['_removeRevisionMarkers'](_0x49950e){return(_0x49950e=_0x49950e['filter'](_0x5a4aba=>!_0x5a4aba['name']||'revision-start'!==_0x5a4aba['name']&&'revision-end'!==_0x5a4aba['name']))['forEach'](_0x53bfbd=>{'string'!=typeof _0x53bfbd&&(_0x53bfbd['children']=this['_removeRevisionMarkers'](_0x53bfbd['children']),_0x53bfbd['attributes']=_0x53bfbd['attributes']['filter'](_0x2d84e9=>!_0x2d84e9[0x0]['startsWith']('data-revision-')));}),_0x49950e;}async['compare'](_0x11c6d1,_0x41e431,_0x121118=!0x1){if(!this['isEnabled'])return;const _0xa8df18=this['diff'],_0x1a6506=this['repository'],_0x5c51f0='string'==typeof _0x11c6d1?_0x1a6506['getRevision'](_0x11c6d1):_0x11c6d1,_0x11d40c='string'==typeof _0x41e431?_0x1a6506['getRevision'](_0x41e431):_0x41e431,_0x416fbe=_0x5c51f0['id'],_0x2a557e=_0x11d40c?_0x11d40c['id']:null;if(!_0x121118&&this['diff']&&this['diff']['newRevisionId']===_0x416fbe&&this['diff']['oldRevisionId']===_0x2a557e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x416fbe,_0x2a557e);const _0x5050fe=this['_getRevisionsRange'](_0x5c51f0,_0x11d40c,!0x0)['map'](_0x5c044e=>this['loadRevisionData'](_0x5c044e));return _0x5050fe['push'](new Promise(_0x366a52=>{setTimeout(_0x366a52,0x14);})),Promise['all'](_0x5050fe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5c9f50=this['_getDiff'](_0x416fbe,_0x2a557e);for(const _0x108f01 of _0x5c9f50['changes'])this['_changeIdToChange']['set'](_0x108f01['id'],_0x108f01);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3aac51=>{for(const _0x505388 of this['editor']['model']['document']['getRootNames']())_0x3aac51['detachRoot'](_0x505388);for(const _0x27f94e of Object['keys'](_0x5c9f50['model'])){const _0x10a292=_0x3aac51['addRoot'](_0x27f94e);for(const _0x4b9672 of Object['keys'](_0x5c9f50['attributes'][_0x27f94e]))_0x3aac51['setAttribute'](_0x4b9672,_0x5c9f50['attributes'][_0x27f94e][_0x4b9672],_0x10a292);_0x3aac51['insert'](_0x5c9f50['model'][_0x27f94e],_0x10a292,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5c9f50['changes'])),this['isReady']=!0x0;})['catch'](_0x9e4a38=>{console['error'](_0x9e4a38),this['_cleanUp'](),_0xa8df18&&(this['diff']=_0xa8df18),this['isReady']=!0x0;});}['addRevisionData'](_0x51d8fe,_0x168d9d){const _0x5b4709=this['repository']['createRevision'](_0x51d8fe);return _0x5b4709['on']('_update',(_0x5b3342,_0x5bd618,_0x18212a)=>_0x168d9d(_0x5bd618,_0x18212a,_0x5b4709)),this['repository']['addRevision'](_0x5b4709),_0x5b4709;}['loadRevisionData'](_0x45fb98){if(!_0x45fb98||_0x45fb98['diffData'])return Promise['resolve']();{const _0x2c6d44=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c6d44,'revisionId':_0x45fb98['id']})['then'](_0x79275c=>{_0x45fb98['_update']({'diffData':_0x79275c['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},_0x2c9bb1=>{for(const _0x143c29 of this['editor']['model']['document']['getRootNames']())_0x2c9bb1['detachRoot'](_0x143c29);});}['_sortAndFilterDiffChanges'](_0x4250d){const _0x459192=[],_0x2464e2=new Map();for(const _0x2a271b of this['editor']['model']['document']['getRootNames']()){const _0x3d882b=this['editor']['editing']['view']['getDomRoot'](_0x2a271b);if(!_0x3d882b)continue;const _0x3f9a87=_0x3d882b['getClientRects']()['item'](0x0);_0x3f9a87&&(_0x459192['push'](_0x2a271b),_0x2464e2['set'](_0x2a271b,_0x3f9a87));}return _0x459192['sort']((_0x3b0572,_0x2c7a7e)=>{const _0x42cec1=_0x2464e2['get'](_0x3b0572),_0x258514=_0x2464e2['get'](_0x2c7a7e);return _0x42cec1['y']-_0x258514['y']||_0x42cec1['x']-_0x258514['x'];}),(_0x4250d=_0x4250d['filter'](_0x26118d=>_0x459192['includes'](_0x26118d['rootName'])))['sort']((_0x5ce84a,_0x19bde6)=>_0x459192['indexOf'](_0x5ce84a['rootName'])-_0x459192['indexOf'](_0x19bde6['rootName'])),_0x4250d;}['_makeTape'](_0x2084f3){const _0x2b5a2b=Array['from'](_0x2084f3['markers'])['filter'](([_0xa73b24,_0x18a918])=>_0xa73b24['startsWith']('revision:')&&!_0x18a918['isCollapsed']),_0x1c9683=Array['from'](this['editor']['model']['createRangeIn'](_0x2084f3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2b5a2b['length'])for(const _0x34ea1e of _0x1c9683){const [_0x5c42c8,_0x193ead]=_0x2b5a2b[0x0],[,_0x92af28,_0xbb9d02]=_0x5c42c8['split'](':');if(_0x193ead['end']['isEqual'](_0x34ea1e['nextPosition'])&&_0x2b5a2b['shift'](),(_0x34ea1e['previousPosition']['isEqual'](_0x193ead['start'])||_0x34ea1e['previousPosition']['isAfter'](_0x193ead['start']))&&('insertion'==_0x92af28?_0x34ea1e['isAdded']={'userId':_0xbb9d02}:'deletion'==_0x92af28&&(_0x34ea1e['isRemoved']={'userId':_0xbb9d02})),0x0==_0x2b5a2b['length'])break;}return _0x1c9683;}['_refreshStartEndIndex'](_0x1693b6){const _0x58f153=new Map();for(let _0x1cd340=0x0;_0x1cd340<_0x1693b6['length'];_0x1cd340++)'text'===_0x1693b6[_0x1cd340]['type']?(_0x1693b6[_0x1cd340]['item']['startIndex']=_0x1cd340,_0x1693b6[_0x1cd340]['item']['endIndex']=_0x1cd340):('elementStart'===_0x1693b6[_0x1cd340]['type']?_0x1693b6[_0x1cd340]['item']['startIndex']=_0x1cd340:'elementEnd'===_0x1693b6[_0x1cd340]['type']&&(_0x1693b6[_0x1cd340]['item']['endIndex']=_0x1cd340),_0x58f153['set'](_0x1693b6[_0x1cd340]['id'],_0x1cd340));for(const _0x488165 of _0x58f153['values']())'elementStart'===_0x1693b6[_0x488165]['type']?_0x1693b6[_0x488165]['item']['endIndex']=_0x58f153['get'](_0x1693b6[_0x488165]['pairId']):'elementEnd'===_0x1693b6[_0x488165]['type']&&(_0x1693b6[_0x488165]['item']['startIndex']=_0x58f153['get'](_0x1693b6[_0x488165]['pairId']));}['_processTape'](_0x119578){for(let _0x28d42a=0x0;_0x28d42a<_0x119578['length'];_0x28d42a++){if('elementStart'===_0x119578[_0x28d42a]['type'])_0x119578[_0x28d42a]['item']['startIndex']=_0x28d42a;else{if('elementEnd'===_0x119578[_0x28d42a]['type']){_0x119578[_0x28d42a]['item']['endIndex']=_0x28d42a;const _0x7cef45=_0x119578[_0x28d42a]['item']['startIndex'];_0x119578[_0x7cef45]['pairId']=_0x119578[_0x28d42a]['id'],_0x119578[_0x28d42a]['pairId']=_0x119578[_0x7cef45]['id'];}else _0x119578[_0x28d42a]['item']['startIndex']=_0x28d42a,_0x119578[_0x28d42a]['item']['endIndex']=_0x28d42a,_0x119578[_0x28d42a]['pairId']=null;}_0x119578[_0x28d42a]['markersStart']||(_0x119578[_0x28d42a]['markersStart']=[],_0x119578[_0x28d42a]['markersEnd']=[]);}}['_markInsertions'](_0x2673fb,_0x554e02){const _0x21cd46=_0x2673fb['filter'](_0x1ecd05=>!_0x1ecd05['isAdded']);for(let _0x2201bc=0x0;_0x2201bc<_0x554e02['length'];_0x2201bc++)_0x554e02[_0x2201bc]['isAdded']&&(_0x21cd46[_0x2201bc]['isAdded']=_0x554e02[_0x2201bc]['isAdded']);}['_makeModelFromViewString'](_0x47f748){const _0x343d6e=JSON['parse'](_0x47f748),_0x3f38a4=this['editor']['editing']['view']['document'],_0x549e39=new _0x1b99e2(_0x3f38a4,_0x343d6e['map'](_0x3d054d=>this['_getViewObj'](_0x3d054d)));return this['editor']['data']['toModel'](_0x549e39);}['_getViewObj'](_0x41fbfe){const _0xc40b05=this['editor']['editing']['view']['document'];if('string'==typeof _0x41fbfe)return new _0x10d8cb(_0xc40b05,_0x41fbfe);{const _0x482b64=_0x41fbfe['children']['map'](_0x36d309=>this['_getViewObj'](_0x36d309));return new(Z[_0x41fbfe['type']]||_0x3b4ce6)(_0xc40b05,_0x41fbfe['name'],_0x41fbfe['attributes'],_0x482b64);}}['_getDiff'](_0x5ce44a,_0x5116c6=null){const _0x4e0a3f=this['repository']['getRevision'](_0x5ce44a),_0x2a9cc2=_0x5116c6?this['repository']['getRevision'](_0x5116c6):null,_0x58d27c=this['_getRevisionsRange'](_0x4e0a3f,_0x2a9cc2),_0x46af1e=_0x58d27c[_0x58d27c['length']-0x1],_0x22427a=new Map(),_0x30898f={'model':{},'attributes':{},'changes':[]},_0x58e61a=new Set(),_0x202321=new Map();for(let _0x1169aa=_0x58d27c['length']-0x1;_0x1169aa>=0x0;_0x1169aa--){const _0x3c345e=_0x58d27c[_0x1169aa];for(const _0x258491 of Object['keys'](_0x3c345e['diffData']))if(_0x3c345e['diffData'][_0x258491]['attachChange']){const _0x1a6f0b=_0x3c345e['diffData'][_0x258491]['attachChange'];_0x1a6f0b['isAttached']?(_0x58e61a['add'](_0x258491),_0x202321['has'](_0x258491)&&_0x202321['get'](_0x258491)['userId']==_0x1a6f0b['userId']?_0x202321['delete'](_0x258491):_0x202321['set'](_0x258491,_0x1a6f0b)):_0x202321['has'](_0x258491)?(_0x58e61a['delete'](_0x258491),_0x202321['delete'](_0x258491)):(_0x58e61a['add'](_0x258491),_0x202321['set'](_0x258491,_0x1a6f0b));}else _0x58e61a['add'](_0x258491);}for(const _0x25b9fb of _0x58e61a){const _0xd9abb4=_0x202321['has'](_0x25b9fb)&&!_0x202321['get'](_0x25b9fb)['isAttached'];let _0x9f4be3=_0xd9abb4?_0x58d27c['length']-0x1:0x0;const _0x5aeeba=_0xd9abb4?-0x1:0x1;for(;_0x58d27c[_0x9f4be3];){const _0x5b4994=_0x58d27c[_0x9f4be3];if(_0x5b4994['diffData'][_0x25b9fb]){const _0x3af2ba=_0xd9abb4?_0x5b4994['diffData'][_0x25b9fb]['attributesBefore']:_0x5b4994['diffData'][_0x25b9fb]['attributesAfter'];_0x30898f['attributes'][_0x25b9fb]=_0x3af2ba?_0x1046c5(_0x3af2ba):{};break;}_0x9f4be3+=_0x5aeeba;}}for(const _0x57978a of _0x58d27c){_0x57978a['model']={};for(const _0x25230e of _0x57978a['authors'])_0x22427a['set'](_0x25230e['id'],_0x25230e);for(const _0x5bd138 of _0x58e61a){const _0x44d583=_0x57978a['diffData'][_0x5bd138]?_0x57978a['diffData'][_0x5bd138]['insertions']:'[]',_0x3da779=_0x57978a['diffData'][_0x5bd138]?_0x57978a['diffData'][_0x5bd138]['deletions']:'[]';_0x57978a['model'][_0x5bd138]={'insertions':this['_makeModelFromViewString'](_0x44d583),'deletions':this['_makeModelFromViewString'](_0x3da779)};}}for(const _0x22549c of _0x58e61a){let _0x34618a=null,_0x137400=0x0;const _0x3bf819=new Map(Array['from'](_0x4e0a3f['model'][_0x22549c]['insertions']['markers'])['filter'](([_0x363a02])=>!_0x363a02['startsWith']('revision:')));let _0x3bf04e=0x0;for(const _0x568745 of _0x58d27c){const _0x3098e7=this['_makeTape'](_0x568745['model'][_0x22549c]['insertions']);_0x568745==_0x4e0a3f?(_0x34618a=_0x3098e7,_0x137400=_0x34618a['length'],_0x34618a['forEach'](_0x21da39=>{_0x21da39['id']=_0x3bf04e++;}),this['_processTape'](_0x34618a)):this['_markInsertions'](_0x34618a,_0x3098e7);const _0x41adfe=_0x34618a['filter'](_0x3bf17e=>!_0x3bf17e['isAdded'])['map'](_0x40a071=>_0x40a071['id']);let _0x3fcf39=0x0;const _0x484650=this['_makeTape'](_0x568745['model'][_0x22549c]['deletions']);_0x484650['forEach'](_0x37a8d5=>{_0x37a8d5['isRemoved']?_0x37a8d5['id']=_0x137400++:_0x37a8d5['id']=_0x41adfe[_0x3fcf39++];}),this['_processTape'](_0x484650),this['_setDistance'](_0x34618a,'isAdded'),this['_setDistance'](_0x484650,'isRemoved'),_0x568745==_0x4e0a3f&&this['_markMarkers'](_0x34618a,_0x3bf819),_0x34618a=this['_joinTapes'](_0x34618a,_0x484650),this['_refreshStartEndIndex'](_0x34618a),this['_setDistance'](_0x34618a,'isRemoved');}_0x34618a=_0x34618a['filter'](_0x90e863=>!(_0x90e863['isAdded']&&_0x90e863['isRemoved']));const _0x3bcbba=new Map(_0x46af1e['model'][_0x22549c]['deletions']['markers']),_0x549f22=new Set(_0x3bf819['keys']());for(const _0x52a085 of _0x3bcbba['keys']())_0x549f22['delete'](_0x52a085);this['_markSuggestions'](_0x34618a,_0x549f22),this['_fixObsoleteTags'](_0x34618a),_0x34618a=this['_removeMissingPairs'](_0x34618a),_0x34618a=this['_markMismatchedRemovedTags'](_0x34618a),_0x34618a=this['_removeUnsupportedChanges'](_0x34618a);const {root:_0x5f281d,changes:_0x3eed8f}=this['_makeModelFromTape'](_0x34618a,_0x22427a,_0x22549c);_0x30898f['model'][_0x22549c]=_0x5f281d;const _0x2522ed=_0x202321['get'](_0x22549c);if(_0x2522ed){const _0x230d05=_0x22427a['get'](_0x2522ed['userId']),_0xaa2769=new r({'author':_0x230d05,'type':_0x2522ed['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x22549c});_0x3eed8f['unshift'](_0xaa2769),_0x30898f['attributes'][_0x22549c]['revisionHistoryAttachChange']=_0xaa2769['id'];}_0x30898f['changes']=_0x30898f['changes']['concat'](_0x3eed8f);}return _0x30898f;}['_markMarkers'](_0x258f51,_0x17ffa8){for(let _0x4cf904=0x0;_0x4cf904<_0x258f51['length'];_0x4cf904++)for(const [_0x204243,_0x493a0e]of _0x17ffa8)_0x493a0e['start']['isEqual'](_0x258f51[_0x4cf904]['previousPosition'])&&_0x258f51[_0x4cf904]['markersStart']['push'](_0x204243),_0x493a0e['end']['isEqual'](_0x258f51[_0x4cf904]['nextPosition'])&&_0x258f51[_0x4cf904]['markersEnd']['push'](_0x204243);}['_joinTapes'](_0x38efb1,_0x323876){let _0x221440=[],_0x88fbbe=0x0,_0x14bbae=0x0;for(;_0x88fbbe<_0x38efb1['length']||_0x14bbae<_0x323876['length'];){const _0x3a708d=_0x38efb1[_0x88fbbe]||{},_0x4d73d8=_0x323876[_0x14bbae]||{};if(_0x3a708d['id']==_0x4d73d8['id'])_0x88fbbe++,_0x14bbae++,_0x221440['push'](_0x3a708d);else{if(_0x4d73d8['isRemoved']&&_0x3a708d['isAdded']){const {commonTape:_0x1bbd2d,iEnd:_0x3f6be3,jEnd:_0x3c2350}=this['_threeWayMerge'](_0x38efb1,_0x88fbbe,_0x323876,_0x14bbae);_0x221440=_0x221440['concat'](_0x1bbd2d),_0x88fbbe=_0x3f6be3,_0x14bbae=_0x3c2350;}else _0x4d73d8['isRemoved']?(_0x14bbae++,_0x221440['push'](_0x4d73d8)):(_0x88fbbe++,_0x221440['push'](_0x3a708d));}}return _0x221440;}['_markSuggestions'](_0x4ad78c,_0x5688ab){const _0xee306d=[];for(let _0x508542=0x0;_0x508542<_0x4ad78c['length'];_0x508542++){for(let _0x3e9469=0x0;_0x3e9469<_0x4ad78c[_0x508542]['markersStart']['length'];_0x3e9469++){const _0xe66de9=_0x4ad78c[_0x508542]['markersStart'][_0x3e9469];if(!_0x5688ab['has'](_0xe66de9))continue;const {group:_0x2492e4,type:_0x5e9a42,authorId:_0x1c728f}=_0x1fe150(_0xe66de9);'revision-suggestion'!=_0x2492e4||'insertion'!=_0x5e9a42&&'deletion'!=_0x5e9a42||(_0xee306d['unshift']({'type':_0x5e9a42,'name':_0xe66de9,'userId':_0x1c728f}),_0x4ad78c[_0x508542]['markersStart']['splice'](_0x3e9469,0x1),_0x3e9469--);}_0x3f0326(_0x4ad78c[_0x508542]);for(let _0x2be061=0x0;_0x2be061<_0x4ad78c[_0x508542]['markersEnd']['length'];_0x2be061++){const _0x2c0deb=_0x4ad78c[_0x508542]['markersEnd'][_0x2be061];if(!_0x5688ab['has'](_0x2c0deb))continue;const {group:_0x4d582f,type:_0x255530}=_0x1fe150(_0x2c0deb);if('revision-suggestion'!=_0x4d582f||'insertion'!=_0x255530&&'deletion'!=_0x255530)continue;_0x4ad78c[_0x508542]['markersEnd']['splice'](_0x2be061,0x1),_0x2be061--;const _0x27a7a9=_0xee306d['findIndex'](_0x545c97=>_0x545c97['name']==_0x2c0deb);_0x27a7a9>-0x1&&_0xee306d['splice'](_0x27a7a9,0x1);}}function _0x1fe150(_0x3fe635){const _0x1b7fc8=_0x3fe635['split'](':');return{'group':_0x1b7fc8[0x0],'type':_0x1b7fc8[0x1],'subType':_0x1b7fc8['length']>=0x5?_0x1b7fc8[0x2]:null,'id':_0x1b7fc8['length']<0x5?_0x1b7fc8[0x2]:_0x1b7fc8[0x3],'authorId':_0x1b7fc8['length']<0x5?_0x1b7fc8[0x3]:_0x1b7fc8[0x4],'markerCount':0x6==_0x1b7fc8['length']?_0x1b7fc8[0x5]:null};}function _0x3f0326(_0x2d1017){for(let _0x126c02=0x0;_0x126c02<_0xee306d['length'];_0x126c02++){if(_0x2d1017['isAdded']&&'insertion'==_0xee306d[_0x126c02]['type'])return _0x2d1017['isAddSuggestion']=_0xee306d[_0x126c02],void delete _0x2d1017['isAdded'];if(!_0x2d1017['isAdded']&&!_0x2d1017['isRemoved']&&'deletion'==_0xee306d[_0x126c02]['type'])return void(_0x2d1017['isRemoveSuggestion']=_0xee306d[_0x126c02]);}}}['_setDistance'](_0x54f036,_0x2fbd27){let _0x5e2fb9=0x0,_0x584e8d=!0x1;const _0x4d6f0b=new Map();for(const _0x39f2df of _0x54f036)_0x39f2df[_0x2fbd27]?_0x584e8d&&(_0x5e2fb9++,_0x584e8d=!0x1):(_0x5e2fb9++,_0x584e8d=!0x0),_0x4d6f0b['set'](_0x39f2df['id'],_0x5e2fb9);for(let _0x5b010e=0x0;_0x5b010e<_0x54f036['length'];_0x5b010e++){if('isRemoved'==_0x2fbd27&&_0x54f036[_0x5b010e]['isAdded']||'isAdded'==_0x2fbd27&&_0x54f036[_0x5b010e]['isRemoved'])continue;if('text'==_0x54f036[_0x5b010e]['type']){_0x54f036[_0x5b010e]['distance']=0x0;continue;}const _0x1b98b4=_0x4d6f0b['get'](_0x54f036[_0x5b010e]['pairId']),_0x5784c1=_0x4d6f0b['get'](_0x54f036[_0x5b010e]['id']);_0x54f036[_0x5b010e]['distance']=_0x1b98b4-_0x5784c1;}}['_getRevisionsRange'](_0x94decb,_0x429d95,_0x191ed2=!0x1){const _0x3b5e5f=[];let _0x34a901=this['repository']['getIndex'](_0x94decb),_0x2c9efe=this['repository']['getIndex'](_0x429d95);for(-0x1==_0x2c9efe&&(_0x2c9efe=this['repository']['_revisions']['length'],_0x191ed2=!0x1);_0x34a901<_0x2c9efe;)_0x3b5e5f['push'](this['repository']['getRevision'](_0x34a901)),_0x34a901++;return _0x191ed2&&_0x3b5e5f['push'](this['repository']['getRevision'](_0x34a901)),_0x3b5e5f;}['_threeWayMerge'](_0x50f098,_0x3b16ba,_0xb1ffd0,_0x4000b8){const _0x36b367=this['editor']['model']['schema'];let _0x114aff=_0x3b16ba;for(;_0x50f098[_0x114aff]&&_0x50f098[_0x114aff]['isAdded'];)_0x114aff++;let _0x245790=_0x4000b8;for(;_0xb1ffd0[_0x245790]&&_0xb1ffd0[_0x245790]['isRemoved'];)_0x245790++;_0x2f3989(_0x50f098,_0x3b16ba,_0x114aff),_0x2f3989(_0xb1ffd0,_0x4000b8,_0x245790);const _0x1fa0a8=_0xb1ffd0['slice'](_0x4000b8,_0x245790)['concat'](_0x50f098['slice'](_0x3b16ba,_0x114aff));return _0x1fa0a8['sort']((_0x1f5a2e,_0xafc7b8)=>_0x1f5a2e['side']!=_0xafc7b8['side']?_0x1f5a2e['side']-_0xafc7b8['side']:_0x1f5a2e['level']!=_0xafc7b8['level']?_0x1f5a2e['level']-_0xafc7b8['level']:_0x1f5a2e['distance']!=_0xafc7b8['distance']?_0xafc7b8['distance']-_0x1f5a2e['distance']:!!_0x1f5a2e['isAdded']!=!!_0xafc7b8['isAdded']?-0x1==_0x1f5a2e['side']||0x0==_0x1f5a2e['side']?_0x1f5a2e['isAdded']?-0x1:0x1:_0x1f5a2e['isAdded']?0x1:-0x1:_0x1f5a2e['index']-_0xafc7b8['index']),{'commonTape':_0x1fa0a8,'iEnd':_0x114aff,'jEnd':_0x245790};function _0x2f3989(_0x135a0a,_0x39f3e0,_0x58eed0){let _0x4c74c6=-0x1,_0x1244e3=Number['POSITIVE_INFINITY'],_0x2fc993=!0x0;for(let _0x3ad78f=_0x39f3e0;_0x3ad78f<_0x58eed0;_0x3ad78f++)if(_0x36b367['isInline'](_0x135a0a[_0x3ad78f]['item'])||(_0x2fc993=!0x1),_0x135a0a[_0x3ad78f]['item']['startIndex']<_0x39f3e0&&(_0x4c74c6=_0x3ad78f),_0x135a0a[_0x3ad78f]['item']['endIndex']>=_0x58eed0){_0x1244e3=_0x3ad78f;break;}_0x2fc993&&(_0x4c74c6=_0x58eed0-0x1);for(let _0x3186de=_0x39f3e0;_0x3186de<_0x58eed0;_0x3186de++)_0x135a0a[_0x3186de]['side']=_0x3186de<=_0x4c74c6?-0x1:_0x3186de<_0x1244e3?0x0:0x1,_0x135a0a[_0x3186de]['index']=_0x3186de;let _0x1b9a64=0x0;for(let _0x57f71f=_0x39f3e0;_0x57f71f<=_0x4c74c6;_0x57f71f++)0x0==_0x135a0a[_0x57f71f]['distance']?_0x135a0a[_0x57f71f]['level']=_0x1b9a64:(_0x1b9a64++,_0x135a0a[_0x57f71f]['level']=_0x1b9a64,_0x1b9a64++);for(let _0x30fef1=_0x39f3e0;_0x30fef1<_0x58eed0;_0x30fef1++)0x0==_0x135a0a[_0x30fef1]['side']&&(_0x135a0a[_0x30fef1]['level']=_0x1b9a64);_0x1b9a64=0x0;for(let _0x3dfe6e=_0x58eed0-0x1;_0x3dfe6e>=_0x1244e3;_0x3dfe6e--)0x0==_0x135a0a[_0x3dfe6e]['distance']?_0x135a0a[_0x3dfe6e]['level']=_0x1b9a64:(_0x1b9a64--,_0x135a0a[_0x3dfe6e]['level']=_0x1b9a64,_0x1b9a64--);}}['_fixObsoleteTags'](_0x4193a6){const _0x25aa10=new Map(),_0x141504=this['editor']['model']['schema'];for(let _0xd1c2b=0x1;_0xd1c2b<_0x4193a6['length'];_0xd1c2b++){let _0x16e0e0,_0x16fcfe,_0x1e07c8;const _0x13c94c=_0x4193a6[_0xd1c2b],_0x174e43=_0x4193a6[_0xd1c2b-0x1];if('text'==_0x13c94c['type'])continue;if(_0x13c94c['type']!=_0x174e43['type'])continue;if(!_0x141504['isBlock'](_0x174e43['item'])||_0x141504['isLimit'](_0x174e43['item']))continue;if(!_0x141504['isBlock'](_0x13c94c['item'])||_0x141504['isLimit'](_0x13c94c['item']))continue;if((_0x4193a6[_0xd1c2b]['isAdded']||_0x4193a6[_0xd1c2b]['isAddSuggestion'])&&_0x4193a6[_0xd1c2b-0x1]['isRemoved'])_0x16e0e0=_0x4193a6[_0xd1c2b],_0x16fcfe=_0x4193a6[_0xd1c2b-0x1],_0x1e07c8=_0xd1c2b-0x1;else{if(!_0x4193a6[_0xd1c2b]['isRemoved']||!_0x4193a6[_0xd1c2b-0x1]['isAdded']&&!_0x4193a6[_0xd1c2b-0x1]['isAddSuggestion'])continue;_0x16e0e0=_0x4193a6[_0xd1c2b-0x1],_0x16fcfe=_0x4193a6[_0xd1c2b],_0x1e07c8=_0xd1c2b;}const _0x264e03=_0x16e0e0['level']==_0x16fcfe['level'],_0x5805e7=Math['abs'](_0x16e0e0['level'])<Math['abs'](_0x16fcfe['level'])&&0x0==_0x16fcfe['distance'];(_0x264e03||_0x5805e7)&&(_0x25aa10['set'](_0x16fcfe['id'],_0x16e0e0['id']),_0x4193a6['splice'](_0x1e07c8,0x1),_0xd1c2b--,_0x16e0e0['isAdded']=!0x1);}for(let _0x1c7306=0x0;_0x1c7306<_0x4193a6['length'];_0x1c7306++)_0x25aa10['has'](_0x4193a6[_0x1c7306]['pairId'])&&(_0x4193a6[_0x1c7306]['pairId']=_0x25aa10['get'](_0x4193a6[_0x1c7306]['pairId']));}['_removeMissingPairs'](_0xd3f694){const _0x301bb5=new Set(_0xd3f694['map'](_0x3a517e=>_0x3a517e['id']));for(let _0x2f41ed=0x0;_0x2f41ed<_0xd3f694['length'];_0x2f41ed++)_0x301bb5['has'](_0xd3f694[_0x2f41ed]['pairId'])||0x0==_0xd3f694[_0x2f41ed]['distance']||(_0xd3f694[_0x2f41ed]['isIncorrect']=!0x0);return _0xd3f694['filter'](_0x1451fc=>!_0x1451fc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2f2e84){const _0x49eba5=new Set();for(let _0x587e6f=0x0;_0x587e6f<_0x2f2e84['length'];_0x587e6f++){if(_0x49eba5['has'](_0x2f2e84[_0x587e6f]['id'])&&_0x2f2e84[_0x587e6f]['isRemoved']&&(_0x2f2e84[_0x587e6f]['isIncorrect']=!0x0),_0x2f2e84[_0x587e6f]['isIncorrect'])continue;if(0x0==_0x2f2e84[_0x587e6f]['distance'])continue;if('elementStart'!=_0x2f2e84[_0x587e6f]['type'])continue;if(null==_0x2f2e84[_0x587e6f]['pairId'])continue;let _0x44fd72=_0x587e6f+0x1,_0x430539=0x0;for(;_0x2f2e84[_0x44fd72]['id']!=_0x2f2e84[_0x587e6f]['pairId'];)'elementStart'==_0x2f2e84[_0x44fd72]['type']?_0x430539++:'elementEnd'==_0x2f2e84[_0x44fd72]['type']&&_0x430539--,_0x44fd72++;if(0x0!=_0x430539){if(_0x2f2e84[_0x587e6f]['isRemoved'])_0x2f2e84[_0x587e6f]['isIncorrect']=!0x0;else{for(;_0x44fd72!=_0x587e6f;)_0x2f2e84[_0x44fd72]['isRemoved']&&0x0!=_0x2f2e84[_0x44fd72]['distance']&&(_0x2f2e84[_0x44fd72]['isIncorrect']=!0x0,_0x49eba5['add'](_0x2f2e84[_0x44fd72]['pairId'])),_0x44fd72--;}}}return _0x2f2e84['filter'](_0xb2b9b7=>!_0xb2b9b7['isIncorrect']);}['_removeUnsupportedChanges'](_0x53a3c8){const _0x47c896=this['editor']['model']['schema'];for(let _0x369620=0x0;_0x369620<_0x53a3c8['length'];_0x369620++){if(!(_0x53a3c8[_0x369620]['isAdded']||_0x53a3c8[_0x369620]['isAddSuggestion']||_0x53a3c8[_0x369620]['isRemoved']||_0x53a3c8[_0x369620]['isRemoveSuggestion']))continue;if(0x0==_0x53a3c8[_0x369620]['distance'])continue;const _0x1e6dce=_0x53a3c8[_0x369620]['item'];_0x47c896['isBlock'](_0x1e6dce)||_0x47c896['isLimit'](_0x1e6dce)||(_0x53a3c8[_0x369620]['isAdded']&&delete _0x53a3c8[_0x369620]['isAdded'],_0x53a3c8[_0x369620]['isAddSuggestion']&&delete _0x53a3c8[_0x369620]['isAddSuggestion'],_0x53a3c8[_0x369620]['isRemoveSuggestion']&&delete _0x53a3c8[_0x369620]['isRemoveSuggestion'],_0x53a3c8[_0x369620]['isRemoved']&&(_0x53a3c8[_0x369620]['isIncorrect']=!0x0));}return _0x53a3c8['filter'](_0x297cd6=>!_0x297cd6['isIncorrect']);}['_makeModelFromTape'](_0x49d279,_0x5cb612,_0x4e27c0){const _0x39f122=new mt(),_0x2a6aa6=[],_0x3da254=new Map(),_0x5bb4a0=this['editor']['model'],_0x3dd49a=_0x5bb4a0['schema'],_0x26350c=[_0x39f122],_0x7467fb={},_0x950988={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x435f7f=null;const _0xc68a8e=[0x0];for(let _0x4f1644=0x0;_0x4f1644<_0x49d279['length'];_0x4f1644++)if('elementStart'===_0x49d279[_0x4f1644]['type']){_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e);const _0x4d1b54=new ft(_0x49d279[_0x4f1644]['item']['name'],_0x49d279[_0x4f1644]['item']['getAttributes']());_0x26350c[0x0]['_appendChild'](_0x4d1b54),_0xc68a8e['push'](0x0),_0x26350c['unshift'](_0x4d1b54),_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e);}else'elementEnd'===_0x49d279[_0x4f1644]['type']?(_0x26350c['shift'](),_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e),_0xc68a8e['pop'](),_0xc68a8e[_0xc68a8e['length']-0x1]++,_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e)):(_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e),_0x435f7f?_0x435f7f['_data']+=_0x49d279[_0x4f1644]['item']['data']:_0x435f7f=new wt(_0x49d279[_0x4f1644]['item']['data'],_0x49d279[_0x4f1644]['item']['getAttributes']()),_0x49d279[_0x4f1644+0x1]&&'text'===_0x49d279[_0x4f1644+0x1]['type']&&_0x5b3905(_0x435f7f,_0x49d279[_0x4f1644+0x1]['item'])||(_0x26350c[0x0]['_appendChild'](_0x435f7f),_0x435f7f=null),_0xc68a8e[_0xc68a8e['length']-0x1]+=_0x49d279[_0x4f1644]['item']['offsetSize'],_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e));for(let _0x102cf0=0x0;_0x102cf0<_0x49d279['length'];_0x102cf0++){const _0x36a48b=_0x49d279[_0x102cf0]['previousPosition'],_0x47c996=_0x49d279[_0x102cf0]['nextPosition'];for(const _0x4ddc30 of _0x49d279[_0x102cf0]['markersStart'])_0x3da254['set'](_0x4ddc30,{'start':_0x36a48b,'end':null});_0xc5db98('isRemoveSuggestion',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isAddSuggestion',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isRemoved',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isAdded',_0x102cf0,_0x36a48b,_0x47c996);for(const _0xe6e030 of _0x49d279[_0x102cf0]['markersEnd']){_0x3da254['get'](_0xe6e030)['end']=_0x47c996;}}for(const [_0x5d52cf,_0xd1c449]of _0x3da254){const _0x56303e=this['editor']['model']['createRange'](_0xd1c449['start'],_0xd1c449['end']);_0x39f122['markers']['set'](_0x5d52cf,_0x56303e);}return _0x2a6aa6['sort']((_0x2353fe,_0x27498b)=>{const _0x2889bc=_0x39f122['markers']['get']('revision:'+_0x2353fe['id']),_0x1a6b8c=_0x39f122['markers']['get']('revision:'+_0x27498b['id']);return _0x2889bc['start']['isBefore'](_0x1a6b8c['start'])?-0x1:_0x2889bc['start']['isAfter'](_0x1a6b8c['start'])?0x1:_0x2889bc['end']['isBefore'](_0x1a6b8c['end'])?-0x1:_0x2889bc['end']['isAfter'](_0x1a6b8c['end'])?0x1:'add'===_0x2353fe['type']?-0x1:0x1;}),{'root':_0x39f122,'changes':_0x2a6aa6};function _0xc5db98(_0x32899f,_0x52ca8b,_0x1ab76a,_0x52508e){const _0x47167c=!!_0x49d279[_0x52ca8b][_0x32899f],_0x2f84d3=_0x47167c?_0x49d279[_0x52ca8b][_0x32899f]['userId']:null,_0x2a16c2=_0x52ca8b===_0x49d279['length']-0x1,_0x426c36=_0x950988[_0x32899f][0x0],_0x5caa98=_0x3dd49a['isObject'](_0x49d279[_0x52ca8b]['item']);!_0x7467fb[_0x32899f]&&_0x47167c?_0x7467fb[_0x32899f]={'start':_0x1ab76a,'tapeItem':_0x49d279[_0x52ca8b],'userId':_0x2f84d3,'type':_0x32899f}:_0x7467fb[_0x32899f]&&!_0x47167c?(_0x7467fb[_0x32899f]['end']=_0x1ab76a,_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]=null):_0x7467fb[_0x32899f]&&_0x47167c&&_0x7467fb[_0x32899f]['userId']!==_0x2f84d3&&(_0x7467fb[_0x32899f]['end']=_0x1ab76a,_0x426c36&&_0x426c36['userId']===_0x7467fb[_0x32899f]['userId']||_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]={'start':_0x1ab76a,'tapeItem':_0x49d279[_0x52ca8b],'userId':_0x2f84d3,'type':_0x32899f}),_0x7467fb[_0x32899f]&&_0x5caa98&&('elementStart'!==_0x49d279[_0x52ca8b]['type']||_0x426c36&&_0x426c36['userId']===_0x2f84d3||_0x950988[_0x32899f]['unshift']({'userId':_0x2f84d3,'object':_0x49d279[_0x52ca8b]['item'],'change':_0x7467fb[_0x32899f]}),'elementEnd'===_0x49d279[_0x52ca8b]['type']&&_0x426c36&&_0x426c36['object']===_0x49d279[_0x52ca8b]['item']&&(_0x950988[_0x32899f]['shift'](),_0x7467fb[_0x32899f]=_0x426c36['change'])),_0x7467fb[_0x32899f]&&_0x2a16c2&&(_0x7467fb[_0x32899f]['end']=_0x52508e,_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]=null);}function _0x1f64dd({start:_0x3e8205,end:_0x172250,tapeItem:_0xb94d9e,userId:_0x1cea10,type:_0x41ed0e}){const _0x581c6c=_0xb94d9e['item'],_0xe51b68=_0x5bb4a0['schema']['isBlock'](_0x581c6c)&&!_0x5bb4a0['schema']['isLimit'](_0x581c6c),_0x3ef035=_0x3e8205['nodeAfter']==_0x172250['parent']&&_0x172250['isAtStart'];if(_0xe51b68&&_0x3ef035)return;const _0x74afef=_0x5bb4a0['createRange'](_0x3e8205,_0x172250),_0x3b9294=_0x5cb612['get'](_0x1cea10),_0x57b97d=new r({'author':_0x3b9294,'type':'isAdded'==_0x41ed0e||'isAddSuggestion'==_0x41ed0e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x41ed0e||'isRemoveSuggestion'==_0x41ed0e},'createdAt':new Date(),'rootName':_0x4e27c0});_0x2a6aa6['push'](_0x57b97d),_0x39f122['markers']['set']('revision:'+_0x57b97d['id'],_0x74afef);}function _0x5b3905(_0x92fd3a,_0x385287){const _0x36bdc6=_0x92fd3a['getAttributes'](),_0x5efc9d=_0x385287['getAttributes']();for(const _0x2f3e84 of _0x36bdc6){if(_0x2f3e84[0x1]!==_0x385287['getAttribute'](_0x2f3e84[0x0]))return!0x1;_0x5efc9d['next']();}return _0x5efc9d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bd5d7=>{const _0x5c231d=_0x5bd5d7['markerName']['split'](':')[0x1],_0x4e57a0=this['_getChangeFromId'](_0x5c231d);if(!_0x4e57a0)return null;const _0x1f7220='add'==_0x4e57a0['type']?'insertion':'deletion',_0x582277=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f7220];return _0x4e57a0['data']['isSuggestion']&&_0x582277['push']('ck-suggestion-marker-'+_0x1f7220+'-new'),this['activeChange']==_0x4e57a0&&_0x582277['push']('ck-suggestion-marker--active'),{'classes':_0x582277,'attributes':{'data-change-id':_0x5c231d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x243d93=>{_0x243d93['on']('element:pre',(_0x2b4694,_0xbd1be3,_0x4036e8)=>{const _0x5c6051=_0xbd1be3['viewItem']['getChild'](0x0);if(!_0x5c6051||!_0x5c6051['is']('element','code'))return;if(!_0x4036e8['consumable']['consume'](_0x5c6051,{'attributes':['vid_start','vid_end']}))return;const _0x280531=_0xbd1be3['modelRange']['start']['nodeAfter'];_0x4036e8['writer']['setAttribute']('vid_start',_0x5c6051['getAttribute']('vid_start'),_0x280531),_0x4036e8['writer']['setAttribute']('vid_end',_0x5c6051['getAttribute']('vid_end'),_0x280531);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2de0f2=>{_0x2de0f2['on']('element',(_0x3e5e56,_0x27525e,_0x13bfcb)=>{if(!_0x13bfcb['consumable']['consume'](_0x27525e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x27525e['modelRange']['isCollapsed'])return;const _0x107c61=_0x27525e['modelRange']['start']['nodeAfter'];_0x107c61['hasAttribute']('vid_start')||_0x107c61['hasAttribute']('vid')||(_0x13bfcb['writer']['setAttribute']('vid_start',_0x27525e['viewItem']['getAttribute']('vid_start'),_0x107c61),_0x13bfcb['writer']['setAttribute']('vid_end',_0x27525e['viewItem']['getAttribute']('vid_end'),_0x107c61));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x9b02f7=>_0x9b02f7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x52df3c,[,_0x1ca685])=>{['vid_start','vid_end','vid']['includes'](_0x1ca685)&&(_0x52df3c['return']=!0x0,_0x52df3c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5eea43=>{_0x5eea43['on']('attribute:vid',(_0x233d37,_0x5830af,_0x48a221)=>{if('\x20'!=_0x5830af['item']['data']||_0x5830af['item']['parent']['maxOffset']>0x1)return;if(!_0x48a221['consumable']['consume'](_0x5830af['item'],_0x233d37['name']))return;const _0x5c18d7=_0x48a221['writer'],_0xbbc3e2=_0x48a221['mapper']['toViewRange'](_0x5830af['range']);_0x5c18d7['wrap'](_0xbbc3e2,_0x5c18d7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x395b38){const _0x484f32=_0x395b38['plugins']['get']('RevisionViewer');return(_0x1c4b53,_0x3b6bf1,_0x499470)=>{const _0x581c34=_0x3b6bf1['markerName']['split'](':')[0x1],_0x366410=_0x484f32['_getChangeFromId'](_0x581c34);if(!_0x366410)return null;const _0xeb503f='add'==_0x366410['type']?'split':'merge';if(!_0x499470['consumable']['test'](_0x3b6bf1['markerRange'],_0x1c4b53['name']))return;const _0x10d0d4=_0x3b6bf1['markerRange']['getWalker'](),_0xaaaf6d=_0x3b6bf1['markerRange']['start'],_0x1da3c6=_0x395b38['model']['schema'];let _0x4b1a02=null,_0x4c11f6=null,_0x771141=!0x1,_0x24d7cd=!0x1;for(const _0x2fc14e of _0x10d0d4){const _0x23916b=_0x2fc14e['item'];_0x771141=_0x771141||_0x1da3c6['isContent'](_0x23916b);const _0xaeaa0b=_0x499470['mapper']['toViewElement'](_0x23916b);if(_0xaeaa0b&&_0xaeaa0b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fc14e['type']&&(_0x1da3c6['isBlock'](_0x23916b)&&!_0x1da3c6['isLimit'](_0x23916b)&&(_0x23916b['nextSibling']||_0xaaaf6d['isAtEnd']?_0x4b1a02&&_0x4b1a02['parent']==_0x23916b||(_0x4b1a02=_0x23916b,_0x374b5d(_0x2fc14e['previousPosition']),_0x24d7cd=!0x0):_0x4c11f6=_0x4c11f6||_0x2fc14e['previousPosition']));}function _0x374b5d(_0x171e6e){const _0x35b5be=_0x499470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xeb503f}),_0x28d9d1=_0x499470['mapper']['toViewPosition'](_0x171e6e);_0x366410['data']['isSuggestion']&&_0x499470['writer']['addClass']('ck-suggestion-marker-'+_0xeb503f+'-new',_0x35b5be),_0x484f32['activeChange']==_0x366410&&_0x499470['writer']['addClass']('ck-suggestion-marker--active',_0x35b5be),_0x499470['writer']['insert'](_0x28d9d1,_0x35b5be),_0x499470['mapper']['bindElementToMarker'](_0x35b5be,_0x3b6bf1['markerName']);}_0x771141||_0x24d7cd||!_0x4c11f6||_0x374b5d(_0x4c11f6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3bd74e,_0x8fe32f,_0x1eca03)=>{const _0x3bbe1b=_0x1eca03['mapper']['markerNameToElements'](_0x8fe32f['markerName']);if(_0x3bbe1b){for(const _0x247cd0 of _0x3bbe1b)(_0x247cd0['hasClass']('ck-suggestion-marker-split')||_0x247cd0['hasClass']('ck-suggestion-marker-merge'))&&(_0x1eca03['mapper']['unbindElementFromMarkerName'](_0x247cd0,_0x8fe32f['markerName']),_0x1eca03['writer']['remove'](_0x247cd0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f3658,_0x4dac7c,_0x3deb9b)=>{const _0x430c15=_0x4dac7c['markerName']['split'](':')[0x1],_0x5d0a02=this['_getChangeFromId'](_0x430c15);if(!_0x5d0a02)return null;const _0x469b12='add'==_0x5d0a02['type']?'split':'merge';if(_0x3deb9b['consumable']['test'](_0x4dac7c['markerRange'],_0x3f3658['name']))for(const _0x32fc5d of _0x4dac7c['markerRange']['getItems']()){if(!_0x32fc5d['is']('element','softBreak'))continue;const _0x184228=_0x3deb9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x469b12}),_0x3e31af=_0x3deb9b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x32fc5d));_0x5d0a02['data']['isSuggestion']&&_0x3deb9b['writer']['addClass']('ck-suggestion-marker-'+_0x469b12+'-new',_0x184228),this['activeChange']==_0x5d0a02&&_0x3deb9b['writer']['addClass']('ck-suggestion-marker--active',_0x184228),_0x3deb9b['writer']['insert'](_0x3e31af,_0x184228),_0x3deb9b['mapper']['bindElementToMarker'](_0x184228,_0x4dac7c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x13c23d=>{for(const _0x3ebaae of this['editor']['model']['document']['getRootNames']()){const _0x2a0232=this['editor']['model']['document']['getRoot'](_0x3ebaae),_0x1796c4=this['editor']['editing']['view']['document']['getRoot'](_0x3ebaae);if(_0x1796c4){const _0x76ac00=_0x2a0232['getAttribute']('revisionHistoryAttachChange');if(_0x13c23d['removeAttribute']('data-change-id',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root-add',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root-remove',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root--active',_0x1796c4),_0x76ac00){const _0x69b349=this['_getChangeFromId'](_0x76ac00);if(!_0x69b349)return null;_0x13c23d['setAttribute']('data-change-id',_0x76ac00,_0x1796c4),_0x13c23d['addClass']('ck-revision-history-root-'+_0x69b349['type'],_0x1796c4),this['activeChange']==_0x69b349&&_0x13c23d['addClass']('ck-revision-history-root--active',_0x1796c4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4e8f19=>'revision-comment:'+_0x4e8f19,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x41037f=>'revision-suggestion:'+_0x41037f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1a34db=>({'name':'suggestion:'+_0x1a34db,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2413b1=>{const _0x5a37db=_0x2413b1['markerName']['split'](':')[0x1];return'insertion'!=_0x5a37db&&'deletion'!=_0x5a37db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a37db]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x227b9c,_0x318642,_0x52740f)=>{const _0x474b0c=_0x52740f['mapper']['markerNameToElements'](_0x318642['markerName']);if(_0x474b0c){for(const _0x4f822d of _0x474b0c)_0x4f822d['is']('uiElement')&&(_0x52740f['mapper']['unbindElementFromMarkerName'](_0x4f822d,_0x318642['markerName']),_0x52740f['writer']['remove'](_0x4f822d));}},{'priority':'high'});}['_getChangeFromId'](_0x36cd82){return this['_changeIdToChange']['get'](_0x36cd82);}['_getViewForChange'](_0x14a11f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x14a11f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x557c2a,_0x5ddf8e,_0x5753b5,_0x396e2f)=>{_0x396e2f&&this['_balloon']['remove'](_0x396e2f),_0x5753b5&&(this['_balloon']['add']({'view':_0x5753b5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x331ef2=this['editor']['editing'],_0x563964=this['_getChangeFromId'](_0x5753b5['changeId']);let _0x4ed483;if(_0x563964['data']['isOnRoot']){const _0x18af40=_0x331ef2['view']['getDomRoot'](_0x563964['rootName']);_0x4ed483=Array['from'](_0x18af40['getClientRects']());}else{const _0x300598=this['editor']['model']['markers']['get']('revision:'+_0x5753b5['changeId']);_0x4ed483=Array['from'](_0x331ef2['mapper']['markerNameToElements'](_0x300598['name']))['map'](_0x5219f2=>_0x331ef2['view']['domConverter']['mapViewToDom'](_0x5219f2))['map'](_0x17ebf9=>Array['from'](_0x17ebf9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ed483[0x0];return _0x4ed483['find'](_0x3b632e=>_0x3b632e['top']-0x3<=this['_activeViewTarget']['y']&&_0x3b632e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3b632e['left']-0x3<=this['_activeViewTarget']['x']&&_0x3b632e['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ed483[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x46d743,_0x53f19b,_0x490635,_0x255d03)=>{this['activeView']=_0x490635?this['_getViewForChange'](_0x490635):null,this['editor']['model']['change'](()=>{const _0x376167=this['editor']['editing'];_0x255d03&&(_0x255d03['data']['isOnRoot']?_0x376167['view']['change'](_0x1f4b00=>{_0x1f4b00['removeClass']('ck-revision-history-root--active',_0x376167['view']['document']['getRoot'](_0x255d03['rootName']));}):_0x376167['reconvertMarker']('revision:'+_0x255d03['id'])),_0x490635&&(_0x490635['data']['isOnRoot']?_0x376167['view']['change'](_0x498570=>{_0x498570['addClass']('ck-revision-history-root--active',_0x376167['view']['document']['getRoot'](_0x490635['rootName']));}):_0x376167['reconvertMarker']('revision:'+_0x490635['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10f046,_0x583d86)=>{if(this['activeChange'])return;const _0x220358=this['_findChangeIdFromDomTarget'](_0x583d86['target']),_0xaa82bc=this['_changeIdToChange']['get'](_0x220358);_0xaa82bc?(this['_activeViewTarget']={'x':_0x583d86['domEvent']['x'],'y':_0x583d86['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xaa82bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x9845ae,_0x6b2226)=>{const _0x421c5b=this['_findChangeIdFromDomTarget'](_0x6b2226['target']),_0x274233=this['_changeIdToChange']['get'](_0x421c5b);_0x274233?(this['_activeViewTarget']={'x':_0x6b2226['domEvent']['x'],'y':_0x6b2226['domEvent']['y']},_0x274233===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x274233):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x235b63){do{const _0xb0865c=_0x235b63['getAttribute']('data-change-id');if(_0xb0865c)return _0xb0865c;_0x235b63=_0x235b63['parent'];}while(_0x235b63);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4fd551=>{for(const _0x535f12 of this['editor']['model']['markers'])_0x4fd551['removeMarker'](_0x535f12);});}}function tt(_0x5071cb,_0x10668f){return(_0xb1b3e5,_0x2d2b2a,_0x6ed6fa)=>{if(!_0x6ed6fa['consumable']['test'](_0x2d2b2a['markerRange'],_0xb1b3e5['name']))return;const _0xb4c957=_0x2d2b2a['markerRange']['getWalker'](),_0x319571=_0x2d2b2a['markerRange']['start'],_0x18956b=_0x5071cb['model']['schema'];let _0x517202=null,_0x4961e9=null,_0xcedb05=!0x1,_0x405888=!0x1;for(const _0x4b725e of _0xb4c957){const _0x218292=_0x4b725e['item'];_0xcedb05=_0xcedb05||_0x18956b['isContent'](_0x218292);const _0x1d70e8=_0x6ed6fa['mapper']['toViewElement'](_0x218292);if(_0x1d70e8&&_0x1d70e8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b725e['type']&&(_0x18956b['isBlock'](_0x218292)&&!_0x18956b['isLimit'](_0x218292)&&(_0x218292['nextSibling']||_0x319571['isAtEnd']?_0x517202&&_0x517202['parent']==_0x218292||(_0x517202=_0x218292,_0x2c307f(_0x4b725e['previousPosition']),_0x405888=!0x0):_0x4961e9=_0x4961e9||_0x4b725e['previousPosition']));}function _0x2c307f(_0x3c6640){const _0x51dc0c=_0x6ed6fa['mapper']['toViewPosition'](_0x3c6640),_0x51968a=_0x6ed6fa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x10668f});_0x6ed6fa['writer']['insert'](_0x51dc0c,_0x51968a),_0x6ed6fa['mapper']['bindElementToMarker'](_0x51968a,_0x2d2b2a['markerName']);}_0xcedb05||_0x405888||!_0x4961e9||_0x2c307f(_0x4961e9);};}class _t extends _0x491dde{constructor(_0x587792){super(_0x587792);const _0x4ec093=_0x587792['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4ec093,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ec093,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3086b9=this['editor'],_0x42589f=_0x3086b9['plugins']['get'](d),_0x78de87=_0x42589f['isReady']?_0x42589f['diff']['newRevisionId']:null;_0x3086b9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x78de87);}['refresh'](){const {isReady:_0xf37a15,isEnabled:_0x4e6752}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xf37a15&&_0x4e6752;}}class yt extends _0x491dde{['_step'];constructor(_0x265bda,{direction:_0x4fe56f}){super(_0x265bda);const _0x4ab402=_0x265bda['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4fe56f?0x1:-0x1,this['listenTo'](_0x4ab402,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ab402,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4ab402,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x471f60=this['editor'],_0x738cc4=_0x471f60['plugins']['get'](d),{isNavigationMode:_0x59841d,currentChangeNumber:_0x5a2bfd}=_0x738cc4;let _0x4cf302;if(_0x738cc4['activeChange']=_0x59841d?_0x738cc4['diff']['changes']['get'](_0x5a2bfd+this['_step']):_0x738cc4['diff']['changes']['first'],_0x738cc4['activeChange']['data']['isOnRoot'])_0x4cf302=_0x471f60['editing']['view']['getDomRoot'](_0x738cc4['activeChange']['rootName']);else{const _0x17d99c=_0x471f60['model']['markers']['get']('revision:'+_0x738cc4['activeChange']['id']);_0x4cf302=_0x35a040(_0x471f60['editing'],_0x17d99c);}_0x29a9ec({'target':_0x4cf302,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x136ed8,currentChangeNumber:_0x34ba45,numberOfChanges:_0x29ce1b,isReady:_0x2036f8,isEnabled:_0x3a36d1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3a36d1&&_0x2036f8&&_0x29ce1b)&&(!_0x136ed8||(0x1===this['_step']?_0x34ba45<_0x29ce1b-0x1:_0x34ba45>0x0));}}class ui extends ts{constructor(_0x5756cb){super(_0x5756cb);const _0x2326b1=this['bindTemplate'],_0x3b6aa1=new te(_0x5756cb),_0x29941a=new te(_0x5756cb);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',(_0x2080d3,_0x27c047)=>_0x2080d3&&_0x27c047>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2a59a1,_0xfb5805,_0x210710,_0x5993e5)=>{if(!_0x2a59a1)return R(_0x5756cb,'Loading...');if(!_0x210710)return R(_0x5756cb,'No\x20changes');const _0x1be5a1=R(_0x5756cb,'NUMBER_OF_CHANGES',_0x210710);return _0x5993e5?R(_0x5756cb,'X_OF_Y_CHANGES',[_0xfb5805+0x1,_0x210710]):_0x1be5a1;}),_0x3b6aa1['set']({'label':R(_0x5756cb,'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'}),_0x29941a['set']({'label':R(_0x5756cb,'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'}),_0x3b6aa1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x29941a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b6aa1['on']('execute',()=>this['fire']('execute','backward')),_0x29941a['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',_0x2326b1['if']('_isStatusLabelVisible','ck-hidden',_0x3ffdaa=>!_0x3ffdaa)]},'children':[{'text':_0x2326b1['to']('isNavigationMode',_0x2e61a1=>_0x2e61a1?R(_0x5756cb,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5756cb,'Total')+':\x20')}]},{'text':_0x2326b1['to']('_statusText')}]},new _0x1a2c61(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b6aa1,_0x29941a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x49113c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x100818=this['editor']['editing']['view'];_0x100818['change'](_0x5959ab=>{for(const _0x1f73bb of _0x100818['document']['roots'])_0x5959ab['addClass'](le,_0x1f73bb);});}['hide'](){const _0x18643b=this['editor']['editing']['view'];_0x18643b['change'](_0xb59c=>{for(const _0x49f8e1 of _0x18643b['document']['roots'])_0xb59c['removeClass'](le,_0x49f8e1);});}}class m extends _0x49113c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x41a687=this['editor'],_0x1b536b=_0x41a687['plugins']['get'](d),_0x2995d7=_0x41a687['plugins']['get'](de);_0x41a687['ui']['componentFactory']['add']('exitToEditing',_0x248bb5=>{const _0x28e79c=new te(_0x248bb5);return _0x28e79c['set']({'label':R(_0x248bb5,'Back\x20to\x20editing'),'icon':_0x54bba4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x28e79c,'execute',()=>{_0x41a687['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x28e79c;}),_0x41a687['ui']['componentFactory']['add']('restoreRevision',_0x4a0c96=>{const _0x7a9db5=new te(_0x4a0c96);return _0x7a9db5['set']({'label':R(_0x4a0c96,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x7a9db5['bind']('isEnabled')['to'](_0x41a687['commands']['get']('restoreRevision')),this['listenTo'](_0x7a9db5,'execute',()=>_0x41a687['execute']('restoreRevision')),_0x7a9db5;}),_0x41a687['ui']['componentFactory']['add']('changesNavigation',_0x4a648d=>{const _0x4f00e7=new ui(_0x4a648d),_0x33bae1=_0x41a687['commands']['get']('showPreviousChange'),_0x44d83a=_0x41a687['commands']['get']('showNextChange');return _0x4f00e7['bind']('isBackwardNavigationEnabled')['to'](_0x33bae1,'isEnabled'),_0x4f00e7['bind']('isForwardNavigationEnabled')['to'](_0x44d83a,'isEnabled'),_0x4f00e7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1b536b),this['listenTo'](_0x4f00e7,'execute',(_0x26a7d7,_0x5b3263)=>{_0x41a687['execute']('forward'===_0x5b3263?'showNextChange':'showPreviousChange');}),_0x4f00e7;}),_0x2995d7['show'](),_0x1b536b['on']('change:isReady',(_0x393d4d,_0x5b76f5,_0x3cfede)=>{_0x3cfede?_0x2995d7['hide']():_0x2995d7['show']();});}}class pt extends _0x4e4e87{['_resizeObserver']=null;constructor(_0x3fedb3,_0x2f9332){super(_0x3fedb3,_0x2f9332);const _0x4c80b1=this['bindTemplate'];this['set']({'label':R(_0x3fedb3,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3fedb3,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4c80b1['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 _0x5d5c8c=this['fieldView']['element'];this['_tooltipString']=_0x5d5c8c['scrollWidth']>_0x5d5c8c['clientWidth']&&_0x5d5c8c['value']||'';}}class ri extends ts{constructor(_0x54d769,_0x3ab0b7,_0x541473){super(_0x54d769);const _0x2aea2d=new _0x515d3f();_0x2aea2d['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 _0x357568=['ck','ck-revision-history-sidebar__revision-author'];_0x541473&&_0x357568['push']('ck-revision-history-sidebar__revision-author_creator');const _0xbbf630=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x54d769,_0x541473?'Revision\x20creator':'Revision\x20author')},'children':[_0x2aea2d,_0x3ab0b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x357568},'children':_0xbbf630});}}function oi(_0xf7540a,_0xcdc812){const _0x576b04=_0xf7540a['bindTemplate'],_0x3fe261=_0xf7540a['locale'],_0x393108=_0xf41fd9(_0x3fe261);_0x393108['panelPosition']='sw';const _0x526c03=function(_0x5a6931,_0x4f6523){const _0x39bdd7=function(_0x275f16,_0xfe4a27){const _0x57b760=_0x275f16['locale'],_0x37073d={'Compare\x20against\x20selected':R(_0x57b760,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x57b760,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x57b760,'Restore\x20this\x20revision')};return _0xfe4a27['map'](_0x4a9c86=>{const _0x50b237=_0x37073d[_0x4a9c86['name']];return _0x50b237&&_0x50b237!==_0x4a9c86['name']&&(_0x4a9c86['name']=_0x50b237),_0x4a9c86;});}(_0x5a6931,_0x4f6523),_0x336aa2=new _0x5b23d0();for(const _0x42e9f1 of _0x39bdd7){const _0x265b5b={'type':'button','model':new _0x5b5906({'label':_0x42e9f1['name'],'class':_0x42e9f1['class'],'withText':!0x0,'role':'menuitem','_action':_0x42e9f1['action']})};_0x265b5b['model']['bind']('isEnabled')['to'](_0x5a6931,'isActionsDropdownOpen',_0x30e3bb=>'function'!=typeof _0x42e9f1['isEnabled']||(!_0x30e3bb||_0x42e9f1['isEnabled'](_0x5a6931))),_0x336aa2['add'](_0x265b5b);}return _0x336aa2;}(_0xf7540a,_0xcdc812);return _0xf7540a['bind']('isActionsDropdownOpen')['to'](_0x393108,'isOpen'),_0x393108['buttonView']['set']({'label':R(_0x3fe261,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x54bba4['threeVerticalDots']}),_0x393108['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x576b04['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x576b04['to'](_0x3b185a=>_0x3b185a['stopPropagation']())}}),_0x393108['on']('execute',_0x1eb473=>{_0xf7540a['isReady']&&'function'==typeof _0x1eb473['source']['_action']&&_0x1eb473['source']['_action'](_0xf7540a);}),to(_0x393108,_0x526c03,{'role':'menu'}),_0x393108['listenTo'](_0xf7540a,'change:isActionsDropdownOpen',(_0x33b467,_0x40134a,_0x56f9c5)=>{if(_0x56f9c5)for(const _0x31f0e4 of _0x393108['listView']['items']){const _0xd14b50=_0x31f0e4['children']['first'],_0x5ac9b3=_0xcdc812['find'](_0x49bf73=>_0x49bf73['action']===_0xd14b50['_action'])['isVisible'];_0x31f0e4['isVisible']=void 0x0===_0x5ac9b3||_0x5ac9b3(_0xf7540a);}}),_0x393108;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x56a79e,_0x492bb1,_0x411df3,_0x373a8f){super(_0x56a79e);const _0x55cd80=this['bindTemplate'],_0x2fbc6f=function(_0x4903e0,_0x1c34c0){const _0x1f27a2=Array['from'](_0x1c34c0['authors'])['filter'](_0x105f77=>_0x105f77!=_0x1c34c0['creator']);return _0x1c34c0['creator']&&_0x1f27a2['unshift'](_0x1c34c0['creator']),_0x1f27a2['map'](_0x21de1b=>new ri(_0x4903e0,_0x21de1b,_0x21de1b==_0x1c34c0['creator']));}(_0x56a79e,_0x492bb1);this['id']=_0x492bb1['id'],this['_revision']=_0x492bb1,this['_requireRevisionName']=_0x373a8f,this['bind']('name','createdAt')['to'](_0x492bb1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x197421=>{return _0x54c34c=_0x56a79e['uiLanguage'],(_0x13e5e0=_0x197421)['toLocaleDateString'](_0x54c34c,{'month':'long','day':'numeric'})+',\x20'+_0x13e5e0['toLocaleTimeString'](_0x54c34c,{'hour':'numeric','minute':'numeric'});var _0x54c34c,_0x13e5e0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x56a79e,_0x10f75e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x46831d=>_0x46831d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5952bf,_0x5a014c)=>_0x5952bf&&_0x5a014c),this['revisionActionsView']=_0x411df3&&_0x411df3['length']?oi(this,_0x411df3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x55cd80['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x55cd80['if']('isEnabled','ck-disabled',_0x4ecc6f=>!_0x4ecc6f),_0x55cd80['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x55cd80['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x55cd80['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':_0x55cd80['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':_0x2fbc6f}]},this['revisionActionsView']],'on':{'click':_0x55cd80['to'](_0x305290=>{_0x305290['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x10bbf1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x10bbf1,'change',()=>{this['_requireRevisionName']&&!_0x10bbf1['value']||this['fire']('setName',{'id':this['id'],'name':_0x10bbf1['value']}),_0x10bbf1['value']||(_0x10bbf1['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(_0x2c52f7,_0x188d30){const _0x233413=_0x2bca96['fromJSDate'](_0x2c52f7)['setLocale'](_0x188d30),_0x560c2c=_0x2bca96['local'](),_0x572920=_0x560c2c['minus']({'days':0x1})['startOf']('day');let _0x718f82,_0x3b03cc;return _0x233413['hasSame'](_0x560c2c,'day')?(_0x718f82=_0x233413['startOf']('day')['toJSDate'](),_0x3b03cc=_0x233413['toRelativeCalendar']()):_0x233413['hasSame'](_0x572920,'day')?(_0x718f82=_0x572920['toJSDate'](),_0x3b03cc=_0x233413['toRelativeCalendar']()):_0x233413['hasSame'](_0x560c2c,'week')?(_0x718f82=_0x233413['startOf']('week')['toJSDate'](),_0x3b03cc=_0x233413['weekdayLong']||''):_0x233413['hasSame'](_0x560c2c,'year')?(_0x718f82=_0x233413['startOf']('month')['toJSDate'](),_0x3b03cc=_0x233413['monthLong']||''):(_0x718f82=_0x233413['startOf']('year')['toJSDate'](),_0x3b03cc=String(_0x233413['year'])),{'startDate':_0x718f82,'localizedPeriodName':_0x3b03cc};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x22964b,_0xd1d49b,_0x59c956,_0x261f1f){super(_0x22964b);const _0x3c7d9f=mi(_0xd1d49b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xd1d49b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x59c956,this['_requireRevisionName']=_0x261f1f,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':_0x3c7d9f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2adc91){const _0x35ebe0=new hi(this['locale'],_0x2adc91,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x35ebe0);}['removeRevision'](_0x3b47a3){const _0xde77ed=this['revisionViews']['find'](_0x22651f=>_0x22651f['id']===_0x3b47a3['id']);this['revisionViews']['remove'](_0xde77ed);}}class as extends ts{constructor(_0x59ebb6){super(_0x59ebb6);const _0x505469=new _0x515d3f();_0x505469['content']=_0x54bba4['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x505469,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x59ebb6,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x43d6e0,_0x252e71,_0x22c558,_0x43f31b){super(_0x43d6e0);const _0x4ce734=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x252e71,this['_revisionActions']=_0x22c558,this['_requireRevisionName']=_0x43f31b,this['on']('select',(_0xac4b66,_0x1d17cf)=>{this['fire']('revisionSelected',_0x1d17cf);}),this['on']('setName',(_0x4aea4f,_0x106b9e)=>{this['fire']('revisionSetName',_0x106b9e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x43d6e0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4ce734['if']('isEnabled','ck-disabled',_0x4ebc36=>!_0x4ebc36)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x438d7f of this['_revisions'])this['_addRevision'](_0x438d7f);this['_revisions']['on']('add',(_0x5ebc34,_0x3a3d9e)=>{this['_addRevision'](_0x3a3d9e);}),this['_revisions']['on']('remove',(_0x2bbee2,_0x228df6)=>{this['_removeRevision'](_0x228df6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1d7571=>_0x1d7571['revisionViews']['map'](_0x25d5c4=>_0x25d5c4))['flat']();}['selectRevision'](_0x25ec17){for(const _0x425089 of this['revisionViews'])_0x25ec17&&_0x25ec17['id']===_0x425089['id']?_0x425089['select']():_0x425089['deselect']();}['highlightRevisions'](_0x170e21){for(const _0x29531a of this['revisionViews'])_0x170e21['some'](({id:_0x35c811})=>_0x35c811===_0x29531a['id'])?_0x29531a['highlight']():_0x29531a['unhighlight']();}['_addRevision'](_0x334ec6){const _0x3d92f8=mi(_0x334ec6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x962f77=this['timePeriodViews']['get'](0x0);_0x962f77&&_0x962f77['startDate']['getTime']()===_0x3d92f8['getTime']()||(_0x962f77=new vi(this['locale'],_0x3d92f8,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x962f77)),_0x962f77['addRevision'](_0x334ec6);}['_removeRevision'](_0x11d492){const _0x4da404=mi(_0x11d492['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4da404)['removeRevision'](_0x11d492);}['_getTimePeriodViewByStartDate'](_0x68f1da){return this['timePeriodViews']['find'](_0x2475b3=>_0x2475b3['startDate']['getTime']()===_0x68f1da['getTime']());}}class g extends _0x49113c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x933897){super(_0x933897),this['_revisionViewer']=_0x933897['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2e8464=this['_revisionsRepository']['_revisions'],_0x450def=this['_createRevisionActions'](),_0x3b6eed=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x2e8464,_0x450def,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',(_0x5dcb61,_0x18a602)=>{_0x18a602['revisionViews']['on']('add',(_0x136a54,_0x53a1e7)=>{_0x53a1e7['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)),_0x3b6eed['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x251275=this['_revisionsRepository']['getRevision'](0x0);if(_0x251275){const _0x3deedd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x251275['id']);this['_revisionViewer']['compare'](_0x251275,_0x3deedd);}}['_handleRevisionSelected'](_0x54158f,_0x5a2bf2){const _0x42a87b=this['_revisionsRepository']['getRevision'](_0x5a2bf2['id']),_0x5e4106=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42a87b['id']);this['_revisionViewer']['compare'](_0x42a87b,_0x5e4106);}['_handleRevisionSetName'](_0x447710,_0x57639c){this['_revisionsRepository']['getRevision'](_0x57639c['id'])['setName'](_0x57639c['name']);}['_handleDiffChange'](_0x5430cb,_0x436598,_0xdf0103){const _0xd0c1c5=this['_revisionsRepository']['getRevisionsInDiff'](_0xdf0103);_0xd0c1c5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xd0c1c5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xd0c1c5[0x0]));}['_createRevisionActions'](){const _0x107178=this['editor'],_0x853a35=g['availableRevisionActions'],_0x562bd9=_0x107178['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x562bd9['length'])return _0x562bd9['map'](_0x65388f=>{const _0x57e30f='string'==typeof _0x65388f?Object['assign']({},_0x853a35[_0x65388f]):_0x65388f;return _0x57e30f['action']=_0x57e30f['action']['bind'](this,_0x107178),_0x57e30f['isVisible']&&(_0x57e30f['isVisible']=_0x57e30f['isVisible']['bind'](this,_0x107178)),_0x57e30f;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xb962b4},_0x18edad)=>{const _0x15ff4e=_0xb962b4['get'](d),_0x549505=_0x15ff4e['repository'];let _0x26d5b0=_0x15ff4e['diff']['newRevisionId'],_0x29ca3e=_0x18edad['id'];_0x549505['getIndex'](_0x26d5b0)>_0x549505['getIndex'](_0x29ca3e)&&([_0x26d5b0,_0x29ca3e]=[_0x29ca3e,_0x26d5b0]),_0x15ff4e['compare'](_0x26d5b0,_0x29ca3e);},'isVisible':({plugins:_0x22c882},_0x46c511)=>{const _0x46734c=_0x22c882['get'](d);return!(_0x46734c['repository']['getRevisionsInDiff'](_0x46734c['diff'])['length']>0x2)&&!_0x46c511['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xbe144a,{id:_0x2e50c1})=>{_0xbe144a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e50c1);},'isVisible':({plugins:_0x4a4b25},_0x56b55a)=>!!_0x4a4b25['get'](d)['repository']['getLaterVisibleRevision'](_0x56b55a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5d9fe3},{id:_0x4d597c,revisionNameView:_0x444a1b})=>{const _0xf2ce7c=_0x5d9fe3['get'](d),_0x4a267d=_0xf2ce7c['repository']['getEarlierVisibleRevision'](_0x4d597c);_0xf2ce7c['compare'](_0x4d597c,_0x4a267d),_0x444a1b['focus'](),_0x444a1b['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x16afee,_0x48011b){super(_0x16afee),this['_view']=_0x48011b,this['_toolbarConfig']=ht(_0x16afee['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3eddbf){const _0x38c649=this['editor'],_0x14b142=this['view'],_0x252839=_0x38c649['editing']['view'],_0x3cf112=_0x14b142['editable'],_0x35e700=_0x252839['document']['getRoot']();_0x3cf112['name']=_0x35e700['rootName'],_0x14b142['render']();const _0x233f9a=_0x3cf112['element'];this['setEditableElement'](_0x3cf112['name'],_0x233f9a),_0x14b142['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x252839['attachDomRoot'](_0x233f9a),this['_elementReplacer']['replace'](_0x3eddbf,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x27ce67=this['view'],_0x454cbf=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x454cbf['detachDomRoot'](_0x27ce67['editable']['name']),_0x27ce67['destroy']();}['_initToolbar'](){const _0x2e9880=this['view'];_0x2e9880['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2e9880['stickyPanel']['limiterElement']=_0x2e9880['element'],_0x2e9880['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d1416})=>_0x2d1416),_0x2e9880['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2e9880['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x34ecb3,_0x3d9306,_0x57b6aa={}){super(_0x34ecb3),this['stickyPanel']=new lt(_0x34ecb3),this['toolbar']=new nt(_0x34ecb3,{'shouldGroupWhenFull':_0x57b6aa['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x34ecb3,_0x3d9306);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49b494,_0x28c4c0){super(_0x28c4c0),this['sourceElement']=_0x49b494,this['model']['document']['createRoot']();const _0x204495=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x204495);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3f9c73,_0x220b70){const _0x49cade=new this(_0x3f9c73,_0x220b70);return await _0x49cade['initPlugins'](),await _0x49cade['ui']['init'](_0x3f9c73),await _0x49cade['data']['init'](_0x49cade['config']['get']('initialData')||''),_0x49cade['fire']('ready'),_0x49cade;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x749fac{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x214ed7){function _0x346bce(_0x229c4b){return _0x229c4b['map'](_0x4080a9=>String['fromCharCode'](_0x4080a9))['join']('');}super(_0x214ed7),this['result']='end',_0x214ed7[_0x346bce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x346bce([0x76,0x69,0x65,0x77])][_0x346bce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x346bce([0x61,0x75,0x74,0x6f]),_0x214ed7[_0x346bce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x346bce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x346bce([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x346bce([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x346bce([0x6f,0x6b])});}}class H extends _0x749fac{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xc3a87b){if(super(_0xc3a87b),!this['editor']['config']['get']('revisionHistory'))throw new _0x4264c4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa48792=>this['_showRevisionViewer']({..._0xa48792,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5610e0=>this['_closeRevisionViewer'](_0x5610e0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e3de4=>this['_restoreRevision'](_0x5e3de4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x761eb0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x761eb0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4fff72){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4fff72);}['getRevision'](_0x56d286){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x56d286);}['getRevisions'](_0x210482){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x210482||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x23d98b=this['editor'],_0x255893=_0x35e906(_0x23d98b,p),_0x405c96=_0x23d98b['plugins']['get']('RevisionTracker'),_0x38d567=_0x23d98b['plugins']['get']('Users')['users'];return _0x255893['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x255893['lazyRoots'],(_0x255893['plugins']['push'](k,d,m,class extends _0x749fac{static get['requires'](){return[d,'Users'];}['init'](){const _0x198e14=this['editor']['plugins']['get']('Users');for(const _0x252c7b of _0x38d567)_0x252c7b['isAnonymous']||_0x198e14['getUser'](_0x252c7b['id'])||_0x198e14['addUser'](_0x252c7b);const _0x469d8f=_0x405c96['repository']['getRevisions']();let _0x9911ba=null;const _0xbea846=this['editor']['plugins']['get']('RevisionViewer');_0xbea846['adapter']=_0x405c96['adapter'],_0xbea846['bind']('isEnabled')['to'](_0x405c96),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x23d98b,'isReadOnly',_0x416eca=>!_0x416eca);for(const _0x3ac6b9 of _0x469d8f){const _0x5db010=null===_0x3ac6b9['creator'];if(_0x5db010&&_0x3ac6b9['toVersion']===_0x3ac6b9['fromVersion'])continue;const _0x1c706b=_0x3ac6b9['toJSON']();_0xbea846['addRevisionData'](_0x1c706b,(_0x55d617,_0x1d63be,_0x2a9e5d)=>{if(_0x5db010){if(_0x9911ba)_0x9911ba['_update'](_0x55d617,_0x1d63be);else{if(!_0x1d63be){const _0x1ea40b=_0x2a9e5d['toJSON']();_0x1ea40b['id']=_0x39e673(),_0x405c96['saveRevision'](_0x1ea40b,_0x2a9e5d['toVersion'])['then'](_0x21b985=>{_0x9911ba=_0x21b985;});}}}else _0x3ac6b9['_update'](_0x55d617,_0x1d63be);});}}},g),_0x255893);}['_enhanceShowRevisionViewerCallback'](){const _0x13eaf5=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1edf82=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a8fea=this['editor']['plugins']['get']('Autosave');await _0x4a8fea['save']();}else await _0x1edf82['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6f2672=this['editor']['plugins']['get']('Dialog');_0x6f2672['isOpen']&&_0x6f2672['hide']();}const _0x1fbd25=this['_getRevisionViewerEditorConfig']();return _0x13eaf5(_0x1fbd25)['then'](_0x515074=>{return(this['_viewerEditor']=_0x515074,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x515074;})['catch'](_0x44b3fc=>(console['error'](_0x44b3fc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x77a9dc=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'](),_0x77a9dc(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x421d59=this['editor']['plugins']['get']('Annotations');_0x421d59['refreshVisibility'](),_0x421d59['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dd712){const _0x369619=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b1e22=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x30cb58=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x30cb58,_0x5dd712)['then'](_0x1ce6a5=>(_0x4b1e22['style']['display']='block',_0x369619['style']['display']='none',_0x1ce6a5));}['_closeRevisionViewer'](_0x467aea){const _0x7ce189=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x7ce189['style']['display']='',_0x467aea['destroy']();}async['_restoreRevision'](_0x4c5211){const _0x8e8f43=this['editor'],_0x21bbc9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x390d68=_0x8e8f43['plugins']['get']('RevisionTracker'),_0x22fee9=_0x21bbc9['repository']['getRevision'](_0x4c5211);let _0x164b6a,_0x135c49,_0x50ecde;try{_0x164b6a=await _0x21bbc9['getRevisionData'](_0x22fee9),_0x135c49=await _0x21bbc9['getRevisionRootsAttributes'](_0x22fee9);}catch(_0x59dc9d){return void console['error'](_0x59dc9d);}_0x8e8f43['model']['change'](_0x3c6374=>{for(const _0x2b84db of Array['from'](_0x8e8f43['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c6374['removeMarker'](_0x2b84db);}),_0x21bbc9['isReady']=!0x1,_0x8e8f43['model']['enqueueChange'](_0x2d5ff6=>{_0x2d5ff6['setSelection'](null),_0x2d5ff6['removeSelectionAttribute'](_0x8e8f43['model']['document']['selection']['getAttributeKeys']());const _0x4ab9da=Object['keys'](_0x164b6a);for(const _0x4d3d3c of _0x8e8f43['model']['document']['roots'])'$graveyard'!=_0x4d3d3c['rootName']&&_0x4d3d3c['isAttached']()&&!_0x4ab9da['includes'](_0x4d3d3c['rootName'])&&_0x2d5ff6['detachRoot'](_0x4d3d3c);for(const _0x41a5ea of _0x4ab9da){let _0x3d3bf9=_0x8e8f43['model']['document']['getRoot'](_0x41a5ea);_0x3d3bf9&&_0x3d3bf9['isAttached']()||(_0x3d3bf9=_0x2d5ff6['addRoot'](_0x41a5ea));const _0x294788=_0x135c49[_0x41a5ea],_0x4ea06a=Object['keys'](_0x294788),_0x41d5e9=_0x164b6a[_0x41a5ea];for(const _0x583bc6 of _0x3d3bf9['getAttributeKeys']())_0x4ea06a['includes'](_0x583bc6)||_0x2d5ff6['removeAttribute'](_0x583bc6,_0x3d3bf9);for(const _0x378b08 of _0x4ea06a)_0x2d5ff6['setAttribute'](_0x378b08,_0x135c49[_0x41a5ea][_0x378b08],_0x3d3bf9);_0x2d5ff6['remove'](_0x2d5ff6['createRangeIn'](_0x3d3bf9)),_0x2d5ff6['insert'](_0x8e8f43['data']['parse'](_0x41d5e9,_0x3d3bf9),_0x3d3bf9,0x0);}});const _0x590a5a=R(_0x8e8f43['locale'],'Restored');if(_0x22fee9['name'])_0x50ecde=-0x1==_0x22fee9['name']['indexOf'](_0x590a5a)?_0x590a5a+':\x20'+_0x22fee9['name']:_0x22fee9['name'];else _0x50ecde=_0x590a5a+':\x20'+(_0x22fee9['createdAt']['toLocaleDateString'](_0x8e8f43['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22fee9['createdAt']['toLocaleTimeString'](_0x8e8f43['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x390d68['saveRevision']({'name':_0x50ecde}),_0x21bbc9['isReady']=!0x0,_0x8e8f43['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1985ef){super(_0x1985ef),this['_revisionViewer']=_0x1985ef['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x402549=this['_revisionsRepository']['_revisions'],_0x465f20=this['_createRevisionActions'](),_0x53cdfd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x402549,_0x465f20,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',(_0x346d95,_0x33477f)=>{_0x33477f['revisionViews']['on']('add',(_0x4d9b39,_0x115ea2)=>{_0x115ea2['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)),_0x53cdfd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x46ea81=this['_revisionsRepository']['getRevision'](0x0);if(_0x46ea81){const _0xd0cba=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x46ea81['id']);this['_revisionViewer']['compare'](_0x46ea81,_0xd0cba);}}['_handleRevisionSelected'](_0x1b2abc,_0x48e54e){const _0x275f0b=this['_revisionsRepository']['getRevision'](_0x48e54e['id']),_0x58ec8d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x275f0b['id']);this['_revisionViewer']['compare'](_0x275f0b,_0x58ec8d);}['_handleRevisionSetName'](_0x3d2fba,_0x4f220b){this['_revisionsRepository']['getRevision'](_0x4f220b['id'])['setName'](_0x4f220b['name']);}['_handleDiffChange'](_0x25a2a7,_0x58eec5,_0x25671d){const _0x3b03a6=this['_revisionsRepository']['getRevisionsInDiff'](_0x25671d);_0x3b03a6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3b03a6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3b03a6[0x0]));}['_createRevisionActions'](){const _0x1bb041=this['editor'],_0x272266=g['availableRevisionActions'],_0x355841=_0x1bb041['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x355841['length'])return _0x355841['map'](_0x74522a=>{const _0x3166a8='string'==typeof _0x74522a?Object['assign']({},_0x272266[_0x74522a]):_0x74522a;return _0x3166a8['action']=_0x3166a8['action']['bind'](this,_0x1bb041),_0x3166a8['isVisible']&&(_0x3166a8['isVisible']=_0x3166a8['isVisible']['bind'](this,_0x1bb041)),_0x3166a8;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1481f7},_0xc4efa0)=>{const _0x334280=_0x1481f7['get'](d),_0x29ba2f=_0x334280['repository'];let _0x15a3f1=_0x334280['diff']['newRevisionId'],_0x439f91=_0xc4efa0['id'];_0x29ba2f['getIndex'](_0x15a3f1)>_0x29ba2f['getIndex'](_0x439f91)&&([_0x15a3f1,_0x439f91]=[_0x439f91,_0x15a3f1]),_0x334280['compare'](_0x15a3f1,_0x439f91);},'isVisible':({plugins:_0x5d7b2c},_0x1509ee)=>{const _0x5b034c=_0x5d7b2c['get'](d);return!(_0x5b034c['repository']['getRevisionsInDiff'](_0x5b034c['diff'])['length']>0x2)&&!_0x1509ee['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3be35f,{id:_0x8278b3})=>{_0x3be35f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8278b3);},'isVisible':({plugins:_0x3b436d},_0x20937a)=>!!_0x3b436d['get'](d)['repository']['getLaterVisibleRevision'](_0x20937a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x408c80},{id:_0x53991f,revisionNameView:_0x74aa00})=>{const _0x13699b=_0x408c80['get'](d),_0x40c96a=_0x13699b['repository']['getEarlierVisibleRevision'](_0x53991f);_0x13699b['compare'](_0x53991f,_0x40c96a),_0x74aa00['focus'](),_0x74aa00['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x346f7d,_0x59e676){super(_0x346f7d),this['_view']=_0x59e676,this['_toolbarConfig']=ht(_0x346f7d['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x571f52){const _0x10c988=this['editor'],_0x49cce8=this['view'],_0x16f2d7=_0x10c988['editing']['view'],_0x59f86f=_0x49cce8['editable'],_0xd5bf5f=_0x16f2d7['document']['getRoot']();_0x59f86f['name']=_0xd5bf5f['rootName'],_0x49cce8['render']();const _0x53abc4=_0x59f86f['element'];this['setEditableElement'](_0x59f86f['name'],_0x53abc4),_0x49cce8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x16f2d7['attachDomRoot'](_0x53abc4),this['_elementReplacer']['replace'](_0x571f52,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2960ee=this['view'],_0x4eacc7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4eacc7['detachDomRoot'](_0x2960ee['editable']['name']),_0x2960ee['destroy']();}['_initToolbar'](){const _0x4c860f=this['view'];_0x4c860f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4c860f['stickyPanel']['limiterElement']=_0x4c860f['element'],_0x4c860f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1474d4})=>_0x1474d4),_0x4c860f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4c860f['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5e9a20,_0x161ddf,_0x4831d5={}){super(_0x5e9a20),this['stickyPanel']=new lt(_0x5e9a20),this['toolbar']=new nt(_0x5e9a20,{'shouldGroupWhenFull':_0x4831d5['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x5e9a20,_0x161ddf);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1dc2fe,_0x4c8e53){super(_0x4c8e53),this['sourceElement']=_0x1dc2fe,this['model']['document']['createRoot']();const _0x36299c=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x36299c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3f863b,_0x20c068){const _0x2684f7=new this(_0x3f863b,_0x20c068);return await _0x2684f7['initPlugins'](),await _0x2684f7['ui']['init'](_0x3f863b),await _0x2684f7['data']['init'](_0x2684f7['config']['get']('initialData')||''),_0x2684f7['fire']('ready'),_0x2684f7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x49113c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c712){function _0x239e32(_0x23a0b0){return _0x23a0b0['map'](_0x317681=>String['fromCharCode'](_0x317681))['join']('');}super(_0x25c712),this['result']='end',_0x25c712[_0x239e32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x239e32([0x76,0x69,0x65,0x77])][_0x239e32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x239e32([0x61,0x75,0x74,0x6f]),_0x25c712[_0x239e32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x239e32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x239e32([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x239e32([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x239e32([0x6f,0x6b])});}}class H extends _0x49113c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x10ee9b){if(super(_0x10ee9b),!this['editor']['config']['get']('revisionHistory'))throw new _0x2b8e95('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1d7910=>this['_showRevisionViewer']({..._0x1d7910,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4a4865=>this['_closeRevisionViewer'](_0x4a4865)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5c2b0a=>this['_restoreRevision'](_0x5c2b0a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x208ecf){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x208ecf;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x17490b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x17490b);}['getRevision'](_0x59d820){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x59d820);}['getRevisions'](_0x3fe463){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3fe463||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2150c5=this['editor'],_0x123df7=_0x596c40(_0x2150c5,p),_0x33d331=_0x2150c5['plugins']['get']('RevisionTracker'),_0x22864e=_0x2150c5['plugins']['get']('Users')['users'];return _0x123df7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x123df7['lazyRoots'],(_0x123df7['plugins']['push'](k,d,m,class extends _0x49113c{static get['requires'](){return[d,'Users'];}['init'](){const _0xdddc0d=this['editor']['plugins']['get']('Users');for(const _0x4a65c3 of _0x22864e)_0x4a65c3['isAnonymous']||_0xdddc0d['getUser'](_0x4a65c3['id'])||_0xdddc0d['addUser'](_0x4a65c3);const _0x5ee51e=_0x33d331['repository']['getRevisions']();let _0x116707=null;const _0x42e13e=this['editor']['plugins']['get']('RevisionViewer');_0x42e13e['adapter']=_0x33d331['adapter'],_0x42e13e['bind']('isEnabled')['to'](_0x33d331),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2150c5,'isReadOnly',_0x46a4ac=>!_0x46a4ac);for(const _0x30e64f of _0x5ee51e){const _0x34bd6f=null===_0x30e64f['creator'];if(_0x34bd6f&&_0x30e64f['toVersion']===_0x30e64f['fromVersion'])continue;const _0x126684=_0x30e64f['toJSON']();_0x42e13e['addRevisionData'](_0x126684,(_0x47afea,_0x446cea,_0x2d78d9)=>{if(_0x34bd6f){if(_0x116707)_0x116707['_update'](_0x47afea,_0x446cea);else{if(!_0x446cea){const _0x1dfddd=_0x2d78d9['toJSON']();_0x1dfddd['id']=_0x20d582(),_0x33d331['saveRevision'](_0x1dfddd,_0x2d78d9['toVersion'])['then'](_0x362b08=>{_0x116707=_0x362b08;});}}}else _0x30e64f['_update'](_0x47afea,_0x446cea);});}}},g),_0x123df7);}['_enhanceShowRevisionViewerCallback'](){const _0x26dad6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x220728=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x135a26=this['editor']['plugins']['get']('Autosave');await _0x135a26['save']();}else await _0x220728['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5760d6=this['editor']['plugins']['get']('Dialog');_0x5760d6['isOpen']&&_0x5760d6['hide']();}const _0x4acd11=this['_getRevisionViewerEditorConfig']();return _0x26dad6(_0x4acd11)['then'](_0x3c8d09=>{return(this['_viewerEditor']=_0x3c8d09,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c8d09;})['catch'](_0x3b9cb3=>(console['error'](_0x3b9cb3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3fab45=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'](),_0x3fab45(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2368f9=this['editor']['plugins']['get']('Annotations');_0x2368f9['refreshVisibility'](),_0x2368f9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5e55ce){const _0x485408=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3304e9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3f8056=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3f8056,_0x5e55ce)['then'](_0x3d6b8f=>(_0x3304e9['style']['display']='block',_0x485408['style']['display']='none',_0x3d6b8f));}['_closeRevisionViewer'](_0x42faa8){const _0x401b91=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401b91['style']['display']='',_0x42faa8['destroy']();}async['_restoreRevision'](_0xd37200){const _0x379497=this['editor'],_0x13c704=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30e3ae=_0x379497['plugins']['get']('RevisionTracker'),_0x2deca1=_0x13c704['repository']['getRevision'](_0xd37200);let _0x1a35cc,_0x21817d,_0x2987cd;try{_0x1a35cc=await _0x13c704['getRevisionData'](_0x2deca1),_0x21817d=await _0x13c704['getRevisionRootsAttributes'](_0x2deca1);}catch(_0x1b81bc){return void console['error'](_0x1b81bc);}_0x379497['model']['change'](_0x162d82=>{for(const _0x2cb929 of Array['from'](_0x379497['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x162d82['removeMarker'](_0x2cb929);}),_0x13c704['isReady']=!0x1,_0x379497['model']['enqueueChange'](_0x230636=>{_0x230636['setSelection'](null),_0x230636['removeSelectionAttribute'](_0x379497['model']['document']['selection']['getAttributeKeys']());const _0x493cbb=Object['keys'](_0x1a35cc);for(const _0x3805b8 of _0x379497['model']['document']['roots'])'$graveyard'!=_0x3805b8['rootName']&&_0x3805b8['isAttached']()&&!_0x493cbb['includes'](_0x3805b8['rootName'])&&_0x230636['detachRoot'](_0x3805b8);for(const _0x6c4e62 of _0x493cbb){let _0x19add5=_0x379497['model']['document']['getRoot'](_0x6c4e62);_0x19add5&&_0x19add5['isAttached']()||(_0x19add5=_0x230636['addRoot'](_0x6c4e62));const _0x5aa298=_0x21817d[_0x6c4e62],_0x2393f2=Object['keys'](_0x5aa298),_0x246ba3=_0x1a35cc[_0x6c4e62];for(const _0x257c60 of _0x19add5['getAttributeKeys']())_0x2393f2['includes'](_0x257c60)||_0x230636['removeAttribute'](_0x257c60,_0x19add5);for(const _0x326fab of _0x2393f2)_0x230636['setAttribute'](_0x326fab,_0x21817d[_0x6c4e62][_0x326fab],_0x19add5);_0x230636['remove'](_0x230636['createRangeIn'](_0x19add5)),_0x230636['insert'](_0x379497['data']['parse'](_0x246ba3,_0x19add5),_0x19add5,0x0);}});const _0x513d6e=R(_0x379497['locale'],'Restored');if(_0x2deca1['name'])_0x2987cd=-0x1==_0x2deca1['name']['indexOf'](_0x513d6e)?_0x513d6e+':\x20'+_0x2deca1['name']:_0x2deca1['name'];else _0x2987cd=_0x513d6e+':\x20'+(_0x2deca1['createdAt']['toLocaleDateString'](_0x379497['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2deca1['createdAt']['toLocaleTimeString'](_0x379497['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30e3ae['saveRevision']({'name':_0x2987cd}),_0x13c704['isReady']=!0x0,_0x379497['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};