@ckeditor/ckeditor5-revision-history 44.3.0-alpha.3 → 44.3.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 _0x217fff,uid as _0x5d66aa,Collection as _0xcf6e93,logWarning as _0x3cc76b,FocusTracker as _0x2cdc04,KeystrokeHandler as _0x430444,scrollViewportToShowTarget as _0x170d53,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x5ea7ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x77b43c,set as _0x532155,unset as _0xf42061,isEqual as _0x466067}from'lodash-es';import{Plugin as _0x1420a4,PendingActions as _0x59b98d,icons as _0x247700,Command as _0x1d782e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4f378f,getMarkerDomElement as _0x40ad99,ConfirmMixin as ti,sanitizeEditorConfig as _0xbfc40b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x57bee1,Element as ft,Range as vt,ViewUIElement as _0x28e93a,ViewRawElement as _0x1e3674,ViewEmptyElement as _0x1ac8e8,ViewAttributeElement as _0x4e3bae,ViewContainerElement as _0x32a864,Position as gt,ViewText as _0xe73c6d,ViewElement as _0x5e2f0f,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x338fd2,submitHandler as _0x53558e,LabeledFieldView as _0xe538c1,createLabeledInputText as _0x368611,createDropdown as _0x1e0a60,ListView as _0x4646f5,ListItemView as _0x503a4e,ButtonView as te,MenuBarMenuView as _0x827bd6,MenuBarMenuListView as _0x170de9,MenuBarMenuListItemView as _0x4b4311,MenuBarMenuListItemButtonView as _0x2b7259,ContextualBalloon as _0x1e2672,ToolbarSeparatorView as _0x4101c0,IconView as _0x151b45,addListToDropdown as to,ViewModel as _0x58fc48,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd4c326}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x217fff(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x279f9a){super(),this['id']=_0x279f9a['id']||_0x5d66aa(),this['creator']=_0x279f9a['creator']||null,this['authors']=_0x279f9a['authors']||[],this['diffData']=_0x279f9a['diffData']||null,this['toVersion']=_0x279f9a['toVersion']||0x0,this['fromVersion']=_0x279f9a['fromVersion']||0x0,this['set']('name',_0x279f9a['name']||''),this['set']('createdAt',_0x279f9a['createdAt']||new Date()),this['set']('attributes',_0x279f9a['attributes']||{});}['setName'](_0x59dd10){this['_update']({'name':_0x59dd10});}['setAttribute'](_0x44fb92,_0x3a07fa){const _0x5cadbc=_0x77b43c(this['attributes']);_0x532155(_0x5cadbc,_0x44fb92,_0x3a07fa),this['_update']({'attributes':_0x5cadbc});}['removeAttribute'](_0x75fa07){const _0x149c26=_0x77b43c(this['attributes']);_0xf42061(_0x149c26,_0x75fa07),this['_update']({'attributes':_0x149c26});}['_update'](_0x251944,_0x42a129=!0x1){let _0x24562d=!0x1;const _0xb5f985={'id':this['id']},_0x5d1648=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe876ad of _0x5d1648){const _0x56cdb4=_0x251944[_0xe876ad];void 0x0!==_0x56cdb4&&_0x56cdb4!==this[_0xe876ad]&&(this[_0xe876ad]=_0x56cdb4,_0xb5f985[_0xe876ad]=_0x56cdb4,_0x24562d=!0x0);}_0x24562d&&(_0xb5f985['authors']&&(_0xb5f985['authorsIds']=_0xb5f985['authors']['map'](_0x331f5e=>_0x331f5e['id']),delete _0xb5f985['authors']),this['fire']('_update',_0xb5f985,_0x42a129));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3e57ac=>_0x3e57ac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1420a4{['_revisions'];static get['requires'](){return[_0x4f378f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d1414){super(_0x4d1414),this['_revisions']=new _0xcf6e93();}['afterInit'](){!async function(_0x4dd962){const _0x4a3e05=_0x183b43([0x57,0x43,0x47,0x32,0x79,0x34,0x4e,0x72,0x49,0x61,0x31,0x6f,0x66,0x62,0x77,0x56,0x36,0x74,0x37,0x39,0x6e,0x4c,0x4f,0x33,0x38,0x67,0x6c,0x50,0x30,0x44,0x73,0x4a,0x69,0x59,0x76,0x5a,0x52,0x42,0x78,0x75,0x51,0x41,0x53,0x71,0x55,0x6d,0x70,0x46,0x6b,0x68,0x35,0x58,0x4b,0x7a,0x4d,0x48,0x45,0x64,0x54,0x65,0x6a,0x63]),_0x1d3969=0xeb829,_0x2a051e=0x23bf4070,_0x2b2b3a=0x23b82090^_0x2a051e,_0x2c0a5d=window[_0x183b43([0x44,0x61,0x74,0x65])][_0x183b43([0x6e,0x6f,0x77])](),_0x214631=_0x4dd962[_0x183b43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520299=new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac214=>{_0x214631[_0x183b43([0x6f,0x6e,0x63,0x65])](_0x183b43([0x72,0x65,0x61,0x64,0x79]),_0x3ac214);}),_0x2d4663={[_0x183b43([0x6b,0x74,0x79])]:_0x183b43([0x45,0x43]),[_0x183b43([0x75,0x73,0x65])]:_0x183b43([0x73,0x69,0x67]),[_0x183b43([0x63,0x72,0x76])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36]),[_0x183b43([0x78])]:_0x183b43([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]),[_0x183b43([0x79])]:_0x183b43([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]),[_0x183b43([0x61,0x6c,0x67])]:_0x183b43([0x45,0x53,0x32,0x35,0x36])},_0x2f40dd=_0x214631[_0x183b43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183b43([0x67,0x65,0x74])](_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2c94(){let _0x375cb2,_0x4eab7e=null,_0x5c1953=null;try{if(_0x2f40dd==_0x183b43([0x47,0x50,0x4c]))return _0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375cb2=_0x47f9fe(),!_0x375cb2)return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c1953=_0x950af8(_0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375cb2[_0x183b43([0x6a,0x74,0x69])])),await _0x47ba7d()?_0x555a86()?_0x3e9760()?_0x183b43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x235fa1()?(_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4270d6()):_0x183b43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34a87e){return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e9760(){const _0x334f3f=[_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183b43([0x74,0x72,0x69,0x61,0x6c])][_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c0a5d/0x3e8:0xe10*_0x2b2b3a;return _0x375cb2[_0x183b43([0x65,0x78,0x70])]<_0x334f3f;}function _0x555a86(){const _0x5aa3a4=_0x375cb2[_0x183b43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aa3a4)return!0x1;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x48])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x52,0x48]))){if(_0x4d0bdd())return!0x0;if(_0x4d9606()||_0x667b67())return!0x0;}return!0x1;}function _0x235fa1(){const _0x322e92=_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x322e92||0x0==_0x322e92[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14a8b3}=new URL(window[_0x183b43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x322e92[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a8b3))return!0x0;const _0x1fceab=_0x14a8b3[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));return _0x322e92[_0x183b43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5d37=>_0x1b5d37[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))[_0x183b43([0x6d,0x61,0x70])](_0x491e6a=>_0x491e6a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])))[_0x183b43([0x73,0x6f,0x6d,0x65])](_0x33c6cb=>_0x1fceab[_0x183b43([0x65,0x76,0x65,0x72,0x79])]((_0x386900,_0x48b710)=>_0x33c6cb[_0x48b710]===_0x386900||_0x33c6cb[_0x48b710]===_0x183b43([0x2a])));}function _0x4270d6(){return _0x4eab7e&&_0x5c1953?new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40da9e,_0xa7ea43)=>{_0x4eab7e[_0x183b43([0x74,0x68,0x65,0x6e])](_0x40da9e,_0xa7ea43),_0x5c1953[_0x183b43([0x74,0x68,0x65,0x6e])](_0x9c0b5=>{_0x9c0b5!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x40da9e(_0x9c0b5);},_0xa7ea43);}):_0x4eab7e||_0x5c1953||_0x183b43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x950af8(_0x3e0ed7,_0x5b9cab){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfd4d=>{if(_0x3c5145())return _0x2bfd4d(_0x183b43([0x56,0x61,0x6c,0x69,0x64]));_0x121e18(),_0x214631[_0x183b43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11d527=!0x1;const _0x3fa7ac=_0x5d66aa();function _0x5f28fd(_0x23ea99){return!!_0x23ea99&&(typeof _0x23ea99===_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23ea99===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23ea99[_0x183b43([0x74,0x68,0x65,0x6e])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23ea99[_0x183b43([0x63,0x61,0x74,0x63,0x68])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59372e(_0x2603ae){_0xfd6f2e(_0x2603ae)[_0x183b43([0x74,0x68,0x65,0x6e])](_0x62728c=>{if(!_0x62728c||_0x62728c[_0x183b43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183b43([0x6f,0x6b]))return _0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb34bb0(_0x580d5e(_0x3fa7ac+_0x5b9cab))!=_0x62728c[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x44237b=>(_0x4e4419(),_0x44237b),()=>{const _0x23f357=_0x1d14d7();return null==_0x23f357?(_0x4e4419(),_0x183b43([0x56,0x61,0x6c,0x69,0x64])):_0x183b43(_0x2c0a5d-_0x23f357>(0x7b3c470^_0x2a051e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x2bfd4d)[_0x183b43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf5a3da=0x2389aef0^_0x2a051e;function _0x4e4419(){const _0x2e5143=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x581d51=_0x1d6793(_0xb34bb0(window[_0x183b43([0x4d,0x61,0x74,0x68])][_0x183b43([0x63,0x65,0x69,0x6c])](_0x2c0a5d/_0xf5a3da)));window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e5143,_0x581d51);}function _0x1d14d7(){const _0x318907=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x556dbc=window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x318907);return _0x556dbc?window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6793(_0x556dbc),0x10)*_0xf5a3da:null;}function _0xfd6f2e(_0x22f3ca){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x484598,_0x8c5ca7)=>{_0x22f3ca[_0x183b43([0x74,0x68,0x65,0x6e])](_0x484598,_0x8c5ca7),window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8c5ca7,0x23be94b0^_0x2a051e);});}}_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1370d3,_0x3460ee)=>{if(_0x3460ee[0x0]!=_0x3e0ed7)return _0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3460ee[0x1]={..._0x3460ee[0x1],[_0x183b43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa7ac};},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x68,0x69,0x67,0x68])}),_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x295dc6=>{_0x5f28fd(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11d527=!0x0,_0x59372e(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x6c,0x6f,0x77])}),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>{_0x11d527||_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c5145(){return _0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183b43([0x61,0x75,0x74,0x6f]);}function _0x121e18(){_0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183b43([0x61,0x75,0x74,0x6f]);}}function _0x1c89b7(_0x16f011){const _0x249993=[new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6f03=>setTimeout(_0x4e6f03,0x23b67ebc^_0x2a051e)),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189242=>{const _0x35c99c=0x23bf4077^_0x2a051e,_0x45c2e1=_0x4dd962[_0x183b43([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cbd41(){_0x45c2e1[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35c99c&&_0x189242();}_0x3cbd41(),_0x45c2e1[_0x183b43([0x6f,0x6e])](_0x183b43([0x61,0x64,0x64]),_0x3cbd41);})),new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4140e9=>{function _0x206e86(){for(const _0x57c4ae in window)if(window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x57c4ae))&&window[_0x57c4ae]==_0x1d3969)return _0x4140e9();_0x214631[_0x183b43([0x73,0x74,0x61,0x74,0x65])]!=_0x183b43([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x206e86,0x23bf53f8^_0x2a051e);}_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x206e86();})];return window[_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183b43([0x72,0x61,0x63,0x65])](_0x249993)[_0x183b43([0x74,0x68,0x65,0x6e])](()=>_0x16f011);}async function _0x132f62(){if(await _0x520299,_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57277b=_0x4dd962[_0x183b43([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3f51eb=_0x4dd962[_0x183b43([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])](_0x57277b[_0x183b43([0x69,0x64])]),_0x457e88=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57277b['id'],_0x3f51eb?_0x3f51eb['id']:null,!0x0),_0x457e88[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x457e88[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x232662,void(_0x457e88[_0x183b43([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x232662);}if(_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5230e7=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5230e7[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5230e7[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5230e7[_0x183b43([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x232662,_0x5230e7[_0x183b43([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x232662;}_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183b43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d0bdd(){return _0x439c06(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4baec3(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x183b43([0x73,0x74,0x61,0x74,0x65])]==_0x183b43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d9606(){return _0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x667b67(){return _0x439c06(_0x183b43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e8c09(_0x424f69){const _0x3016ca=_0xe1f1b4();_0x214631[_0x3016ca]=_0x183b43([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])+_0x424f69,_0x424f69[_0x183b43([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xe1f1b4()]=_0x1d3969),_0x424f69!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x132f62();}function _0xe1f1b4(){const _0x1296bd=window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183b43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183b43([0x6e,0x6f,0x77])]())[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183b43([0x2e]),'');let _0x1d7d69=_0x183b43([0x57]);for(let _0x309b1e=0x0;_0x309b1e<_0x1296bd[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309b1e+=0x2){let _0x395912=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1296bd[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309b1e,_0x309b1e+0x2));_0x395912>=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x395912-=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d7d69+=_0x4a3e05[_0x395912];}return _0x1d7d69;}function _0x47f9fe(){const _0x5bec8d=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));if(0x3!=_0x5bec8d[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7bb2b(_0x5bec8d[0x1]);function _0x7bb2b(_0x565276){const _0xff69b7=_0x2163cb(_0x565276);return _0xff69b7&&_0x2b7324()?_0xff69b7:null;function _0x2b7324(){const _0x34dbd7=_0xff69b7[_0x183b43([0x6a,0x74,0x69])],_0x590af7=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x589f2d={..._0xff69b7,[_0x183b43([0x6a,0x74,0x69])]:_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x589f2d[_0x183b43([0x76,0x63])],_0x580d5e(_0x589f2d)==_0x590af7;}}}async function _0x47ba7d(){let _0x56304f=!0x0;try{const _0x1cca61=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])),[_0x122a9f,_0x47d55d,_0x1569d2]=_0x1cca61;return _0x5901cf(_0x122a9f),await _0x3a5c8a(_0x122a9f,_0x47d55d,_0x1569d2),_0x56304f;}catch(_0x2ed658){return!0x1;}function _0x5901cf(_0x51529e){const _0x4f5ead=_0x2163cb(_0x51529e);_0x4f5ead&&_0x4f5ead[_0x183b43([0x61,0x6c,0x67])]==_0x183b43([0x45,0x53,0x32,0x35,0x36])||(_0x56304f=!0x1);}async function _0x3a5c8a(_0xc4efe3,_0x6995d7,_0x1e71a7){const _0x1ababb=window[_0x183b43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183b43([0x66,0x72,0x6f,0x6d])](_0x5dd555(_0x1e71a7),_0x2f9b70=>_0x2f9b70[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25aab1=new window[(_0x183b43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183b43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc4efe3+_0x183b43([0x2e])+_0x6995d7),_0x2ce462=window[_0x183b43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183b43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ce462)return;const _0x4d83e5=await _0x2ce462[_0x183b43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183b43([0x6a,0x77,0x6b]),_0x2d4663,{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ce462[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x68,0x61,0x73,0x68])]:{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d83e5,_0x1ababb,_0x25aab1)||(_0x56304f=!0x1);}}function _0x2163cb(_0x1d8faa){return _0x1d8faa[_0x183b43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x65,0x79]))?JSON[_0x183b43([0x70,0x61,0x72,0x73,0x65])](_0x5dd555(_0x1d8faa)):null;}function _0x5dd555(_0x1bd55a){return window[_0x183b43([0x61,0x74,0x6f,0x62])](_0x1bd55a[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183b43([0x2b]))[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183b43([0x2f])));}function _0x580d5e(_0x35e37a){let _0x14781c=0x1505;function _0x59f42d(_0x5702a2){for(let _0x58ac19=0x0;_0x58ac19<_0x5702a2[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58ac19++){const _0x187695=_0x5702a2[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58ac19);_0x14781c=(_0x14781c<<0x5)+_0x14781c+_0x187695,_0x14781c&=_0x14781c;}}function _0x14e871(_0x435da2){Array[_0x183b43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x435da2)?_0x435da2[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e871):_0x435da2&&typeof _0x435da2==_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183b43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x435da2)[_0x183b43([0x73,0x6f,0x72,0x74])]()[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34ec92,_0x2c2b6b])=>{_0x59f42d(_0x34ec92),_0x14e871(_0x2c2b6b);}):_0x59f42d(window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x435da2));}return _0x14e871(_0x35e37a),_0x14781c>>>0x0;}function _0xb34bb0(_0x54a529){return _0x54a529[_0x183b43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183b43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183b43([0x30]));}function _0x1d6793(_0x4e3a8a){return _0x4e3a8a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183b43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183b43([0x6a,0x6f,0x69,0x6e])]('');}function _0x439c06(_0x2a1bc6){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x68,0x61,0x73])](_0x2a1bc6);}function _0x4baec3(_0x3ff686){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x67,0x65,0x74])](_0x3ff686);}function _0x232662(){}function _0x183b43(_0x3e66eb){return _0x3e66eb['map'](_0x27721a=>String['fromCharCode'](_0x27721a))['join']('');}_0x3e8c09(await _0x1c2c94());}(this);}['createRevision'](_0x58f58f){const _0x1ba703=this['editor']['plugins']['get']('Users');return new a({'id':_0x58f58f['id'],'name':_0x58f58f['name'],'creator':_0x58f58f['creatorId']?_0x1ba703['getUser'](_0x58f58f['creatorId']):null,'diffData':_0x58f58f['diffData']||_0x58f58f['data'],'authors':_0x58f58f['authorsIds']['map'](_0x20cf79=>_0x1ba703['getUser'](_0x20cf79)),'createdAt':new Date(_0x58f58f['createdAt']),'attributes':_0x58f58f['attributes'],'fromVersion':_0x58f58f['fromVersion'],'toVersion':_0x58f58f['toVersion']});}['addRevision'](_0x17a8da,_0x5a0dbd=0x0){this['_revisions']['add'](_0x17a8da,_0x5a0dbd);}['getRevision'](_0x4a24b7){return this['_revisions']['get'](_0x4a24b7);}['getRevisions'](_0x590bae={'toJSON':!0x1}){const _0x418fe4=Array['from'](this['_revisions']);return _0x418fe4['reverse'](),_0x590bae['toJSON']?_0x418fe4['map'](_0x290da9=>_0x290da9['toJSON']()):_0x418fe4;}['getIndex'](_0x35c687){return this['_revisions']['getIndex'](_0x35c687);}['getEarlierVisibleRevision'](_0x24bb32){const [,_0x16afda]=this['getRevisionsIterator'](_0x24bb32,{'direction':'earlier'});return _0x16afda;}['getLaterVisibleRevision'](_0x4a9757){const [,_0x595af4]=this['getRevisionsIterator'](_0x4a9757,{'direction':'later'});return _0x595af4;}['getRevisionsInDiff'](_0x3e362a){const _0x576b72=[];for(const _0x16c0fa of this['getRevisionsIterator'](_0x3e362a['newRevisionId']))if(_0x576b72['push'](_0x16c0fa),_0x16c0fa['id']===_0x3e362a['oldRevisionId'])break;return _0x576b72;}*['getRevisionsIterator'](_0x1014a8,{direction:_0x53dd6d='earlier',filter:_0x2cc585=()=>!0x0}={}){const _0x23e5fd='earlier'===_0x53dd6d?0x1:-0x1;let _0x237266=this['_revisions']['get'](_0x1014a8),_0x31e67a=this['getIndex'](_0x237266);for(yield _0x237266;_0x237266;){if(_0x31e67a+=_0x23e5fd,_0x237266=this['getRevision'](_0x31e67a),!_0x237266)return;_0x2cc585(_0x237266)&&(yield _0x237266);}}}function m(_0x34f1ff,_0x2190d6,_0x109833){const t=_0x34f1ff['t'];switch(_0x2190d6){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'},_0x109833);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x109833);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class l extends _0x1420a4{['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[_0x4f378f,j,_0x59b98d];}constructor(_0x2fc1b3){super(_0x2fc1b3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5633c5=_0x5d66aa();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5633c5},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 _0x54597e=this['repository']['getRevision'](0x0),_0x28075c=_0x54597e&&null===_0x54597e['creator']?_0x54597e:null;if(this['_continueCurrentRevision']=!!_0x28075c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x383bb1=this['_source']['getCurrentRevisionId'](),_0x598736=this['repository']['getRevision'](_0x383bb1);if(_0x598736)this['_startingVersion']=_0x598736['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xd2a274=this['_source']['history']['_operations']['find'](_0x3e03b0=>!_0x3e03b0['_isInit']),_0x23c03a=_0xd2a274?_0xd2a274['baseVersion']:this['_source']['history']['version'];_0x54597e?(_0x54597e['toVersion']<_0x23c03a&&_0x54597e['_update']({'toVersion':_0x23c03a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['fromVersion']):(this['_startingVersion']=_0x54597e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23c03a,this['_continueCurrentRevision']=!0x1);}}else _0x28075c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x28075c['toVersion'],this['editor']['model']['document']['history']['version']),_0x28075c['fromVersion']===_0x28075c['toVersion']?(0x0!==_0x28075c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['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',_0x45581e=>!_0x45581e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29c658=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x279542;for(const _0x812ad8 in _0x29c658){const _0x50185d=_0x812ad8,_0x15e33a=_0x29c658[_0x50185d];if('revisionHistoryLicenseKeyValid'==_0x15e33a||'revisionHistoryLicenseKeyInvalid'==_0x15e33a||'revisionHistoryLicenseKeyExpired'==_0x15e33a||'revisionHistoryLicenseKeyDomainLimit'==_0x15e33a||'revisionHistoryLicenseKeyNotAllowed'==_0x15e33a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x15e33a||'revisionHistoryLicenseKeyTrialLimit'==_0x15e33a||'revisionHistoryLicenseKeyUsageLimit'==_0x15e33a){delete _0x29c658[_0x50185d],_0x279542=_0x15e33a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x279542&&_0x29c658['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x279542&&_0x29c658['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x279542&&_0x29c658['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x279542&&_0x29c658['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x279542&&_0x29c658['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x279542&&_0x29c658['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x279542&&_0x29c658['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2af2aa=this['repository']['getRevision'](0x0),_0x338a2f=await this['getRevisionDocumentData'](_0x2af2aa),_0x27268e=await this['getRevisionRootsAttributes'](_0x2af2aa);this['_replaceEditorDataWithRevisionData'](_0x338a2f,_0x27268e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x259d8f){this['_source']=_0x259d8f;}async['update'](){const _0x124563=await this['_source']['getLatestVersion']();if(_0x124563>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2060f3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x124563});_0x2060f3['authors']=_0x2060f3['authorsIds']['map'](_0x37d773=>this['editor']['plugins']['get']('Users')['getUser'](_0x37d773)),this['currentRevision']['_update'](_0x2060f3);}}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'](_0x3b41e9={},_0x3012e9=null){const _0x406221=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3012e9>this['currentRevision']['toVersion']&&(_0x3012e9=null),null===_0x3012e9&&(_0x3012e9=await this['_source']['getLatestVersion']());const _0x3453fd=this['_getFromVersion'](_0x3012e9),_0x3a185e=this['buildRevisionData']({'from':_0x3453fd,'to':_0x3012e9});if(this['currentRevision']['toVersion']<_0x3012e9){const _0x4c4b34=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3012e9,'to':_0x3012e9});_0x4c4b34['authors']=[],_0x4c4b34['authorsIds']=[],_0x4c4b34['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4c4b34,!0x0),delete _0x4c4b34['authors'],_0x406221['push'](_0x4c4b34);}_0x3b41e9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b41e9['name']=_0x3b41e9['name']||null,_0x3b41e9['id']=_0x3b41e9['id']||_0x5d66aa(),_0x3b41e9={..._0x3b41e9,..._0x3a185e};const _0x506d0b=this['addRevisionData'](_0x3b41e9);_0x406221['push'](_0x3b41e9);const _0x2648f3=this['repository']['getIndex'](_0x506d0b);if(0x0!==_0x2648f3){const _0x7d97ba=this['repository']['getRevision'](_0x2648f3-0x1);if(_0x7d97ba['fromVersion']!==_0x3012e9){const _0x21465b=this['_revisionDataBuilder']['getData'](_0x3012e9,_0x7d97ba['toVersion']),_0x5db9b3={'id':_0x7d97ba['id'],'diffData':_0x21465b['diffData'],'authorsIds':_0x21465b['authorsIds'],'authors':_0x21465b['authorsIds']['map'](_0x4cbb1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cbb1d)),'fromVersion':_0x3012e9};_0x7d97ba===this['currentRevision']&&(_0x5db9b3['createdAt']=new Date(_0x3b41e9['createdAt']['getTime']()+0xa)),_0x7d97ba['_update'](_0x5db9b3,!0x0),delete _0x5db9b3['authors'],_0x406221['push'](_0x5db9b3);}}if(this['adapter']){for(const _0x54a987 of _0x406221)this['_bufferUpdate'](_0x54a987['id'],_0x54a987,!0x0);this['sendBufferedUpdates']();}return _0x506d0b;}['addRevisionData'](_0x518661){const _0x888eb8=this['repository']['createRevision'](_0x518661);return this['adapter']&&_0x888eb8['on']('_update',(_0x50859b,_0x2e7a07,_0x229c6e)=>{_0x229c6e||(this['_bufferUpdate'](_0x2e7a07['id'],_0x2e7a07,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x888eb8,this['_findInsertionIndex'](_0x888eb8)),_0x888eb8;}async['getRevisionDocumentData'](_0x33b024){await this['_loadRevisionData'](_0x33b024);const _0x17f0c9={};for(const _0xe1652e in _0x33b024['diffData']){if(_0x33b024['diffData'][_0xe1652e]['attachChange']&&!_0x33b024['diffData'][_0xe1652e]['attachChange']['isAttached'])continue;const _0x582f1f=this['_removeRevisionMarkers'](JSON['parse'](_0x33b024['diffData'][_0xe1652e]['insertions'])),_0x2786df=this['editor']['editing']['view']['document'],_0x5be6fb=new _0x57bee1(_0x2786df,_0x582f1f['map'](_0x36ae3e=>C(_0x36ae3e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x17f0c9[_0xe1652e]=this['editor']['data']['processor']['toData'](_0x5be6fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x17f0c9;}async['getRevisionRootsAttributes'](_0x34acc7){await this['_loadRevisionData'](_0x34acc7);const _0x42a34b={};for(const _0x230024 in _0x34acc7['diffData'])_0x34acc7['diffData'][_0x230024]['attachChange']&&!_0x34acc7['diffData'][_0x230024]['attachChange']['isAttached']||(_0x42a34b[_0x230024]=_0x34acc7['diffData'][_0x230024]['attributesAfter']||{});return _0x42a34b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb5e886=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f55c7=0x0;_0x4f55c7<_0xb5e886['length'];_0x4f55c7++){const _0x126e6d=_0xb5e886[_0x4f55c7];let _0x3a6c6a=!0x1;for(const _0x16bb4f of Object['keys'](_0x126e6d))void 0x0===_0x126e6d[_0x16bb4f]?delete _0x126e6d[_0x16bb4f]:'id'!==_0x16bb4f&&(_0x3a6c6a=!0x0);_0x3a6c6a||(_0xb5e886[_0x4f55c7]=null);}if(_0xb5e886=_0xb5e886['filter'](_0x52cdf6=>null!==_0x52cdf6),!_0xb5e886['length'])return;for(let _0x3fa82a=0x0;_0x3fa82a<_0xb5e886['length'];_0x3fa82a++){const _0x596d05=_0xb5e886[_0x3fa82a];void 0x0!==_0x596d05['fromVersion']&&void 0x0===_0x596d05['toVersion']&&(_0x596d05['toVersion']=this['repository']['getRevision'](_0x596d05['id'])['toVersion']),void 0x0!==_0x596d05['toVersion']&&void 0x0===_0x596d05['fromVersion']&&(_0x596d05['fromVersion']=this['repository']['getRevision'](_0x596d05['id'])['fromVersion']);}const _0x257af4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb5e886,_0x257af4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34970d=>{if(_0x34970d){for(const _0x38d6ad of _0x34970d)this['setRevisionData']({'id':_0x38d6ad['id'],'createdAt':_0x38d6ad['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x9b79ba,_0x26f1b5){let _0xdfbfd4=this['editor']['config']['get']('initialData'),_0x2a1072=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xdfbfd4){_0xdfbfd4={};for(const _0xfffd4a of this['editor']['model']['document']['getRootNames']())_0xdfbfd4[_0xfffd4a]='';}if('string'==typeof _0xdfbfd4&&(_0xdfbfd4={'main':_0xdfbfd4}),void 0x0===_0x2a1072){_0x2a1072={};for(const _0x2a2b29 of this['editor']['model']['document']['getRootNames']())_0x2a1072[_0x2a2b29]={};}let _0x4bbe91=!0x1;const _0x396ab4=Object['keys'](_0xdfbfd4),_0x466d91=Object['keys'](_0x9b79ba);for(const _0x5f34de of _0x396ab4){if(_0xdfbfd4[_0x5f34de]!==_0x9b79ba[_0x5f34de]&&''!==_0xdfbfd4[_0x5f34de]['trim']()){_0x4bbe91=!0x0;break;}if(!_0x466067(_0x2a1072[_0x5f34de],_0x26f1b5[_0x5f34de])&&Object['keys'](_0x2a1072[_0x5f34de])['length']>0x0){_0x4bbe91=!0x0;break;}}_0x4bbe91||(_0x4bbe91=_0x466d91['some'](_0x115c54=>!this['editor']['model']['document']['getRoot'](_0x115c54))),_0x4bbe91&&_0x3cc76b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xdfbfd4,'editorRootsAttributes':_0x2a1072,'revisionData':_0x9b79ba,'revisionRootsAttributes':_0x26f1b5}),this['editor']['config']['set']('initialData',_0x9b79ba),this['editor']['config']['set']('rootsAttributes',_0x26f1b5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b3276=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b3276['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x14166c){const _0x1d16a1=this['repository']['getRevisions']();_0x1d16a1['reverse']();let _0x2b5019=0x0;for(;_0x2b5019<_0x1d16a1['length'];){const _0x3350d8=_0x1d16a1[_0x2b5019];if(_0x3350d8===this['currentRevision']){_0x2b5019++;continue;}if(_0x3350d8['id']===this['_initialRevisionId'])break;const _0x492d87=_0x14166c['toVersion']-_0x3350d8['toVersion']||_0x14166c['fromVersion']-_0x3350d8['fromVersion'];if(_0x492d87>0x0)break;if(_0x492d87<0x0)_0x2b5019++;else{if(!_0x14166c['creator']&&_0x3350d8['creator'])break;if(_0x3350d8['creator']||!_0x14166c['creator']){if(_0x14166c['createdAt']>_0x3350d8['createdAt'])break;_0x2b5019++;}else _0x2b5019++;}}return _0x2b5019;}['setRevisionData'](_0x2c0881){const _0xcf0dcd=this['repository']['getRevision'](_0x2c0881['id']);if(_0x2c0881['createdAt']&&(_0x2c0881['createdAt']=new Date(_0x2c0881['createdAt'])),_0x2c0881['authorsIds']){const _0x9d3afd=this['editor']['plugins']['get']('Users');_0x2c0881['authors']=_0x2c0881['authorsIds']['map'](_0x575688=>_0x9d3afd['getUser'](_0x575688));}_0xcf0dcd['_update'](_0x2c0881,!0x0);}['buildRevisionData']({revision:_0x4a02b6=null,from:_0x5f524b=null,to:_0x1c17d4=null}){_0x5f524b=null!==_0x5f524b?_0x5f524b:_0x4a02b6['fromVersion'],_0x1c17d4=null!==_0x1c17d4?_0x1c17d4:_0x4a02b6['toVersion'];const _0xc1ea7c=this['_revisionDataBuilder']['getData'](_0x5f524b,_0x1c17d4),_0x1a17e7={'diffData':_0xc1ea7c['diffData'],'authorsIds':_0xc1ea7c['authorsIds'],'fromVersion':_0x5f524b,'toVersion':_0x1c17d4};if(!_0x4a02b6||_0x1c17d4!==_0x4a02b6['toVersion']){const _0x233e09=_0x1c17d4-0x1,_0xed5063=this['_source']['history']['getOperation'](_0x233e09);_0x1a17e7['createdAt']=_0xed5063&&_0xed5063['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f524b===this['_loadedStateData']['fromVersion']){for(const _0x136d67 of this['_loadedStateData']['authors'])_0x1a17e7['authorsIds']['includes'](_0x136d67['id'])||_0x1a17e7['authorsIds']['push'](_0x136d67['id']);}return _0x1a17e7;}['_loadRevisionData'](_0x28117d){if(!_0x28117d||_0x28117d['diffData'])return Promise['resolve']();{const _0x3f81ca=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3f81ca,'revisionId':_0x28117d['id']})['then'](_0x3652cf=>{_0x28117d['diffData']=_0x3652cf['diffData'];});}}['_bufferUpdate'](_0x1a67a9,_0x2997e2,_0x31d9dc){if(this['_bufferedUpdates']['has'](_0x1a67a9)){const _0x5e880e=this['_bufferedUpdates']['get'](_0x1a67a9);_0x2997e2=_0x31d9dc?{..._0x5e880e,..._0x2997e2}:{..._0x2997e2,..._0x5e880e};}this['_bufferedUpdates']['set'](_0x1a67a9,_0x2997e2);}['_getFromVersion'](_0x2620b1){const _0x5c7cd2=this['repository']['getRevisions']();_0x5c7cd2['reverse'](),_0x5c7cd2['shift']();const _0x1cdcfd=_0x5c7cd2['find'](_0x1946d6=>_0x1946d6['toVersion']<=_0x2620b1)['toVersion'];return _0x1cdcfd<this['_startingVersion']?this['_startingVersion']:_0x1cdcfd;}['_createInitialRevision'](_0x4b7bdb){const _0x104c4e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x104c4e)this['_initialRevisionId']=_0x104c4e['id'];else{const _0xd3b2d2=!this['editor']['model']['document']['roots']['find'](_0x17040c=>this['editor']['model']['hasContent'](_0x17040c)),_0x1c173f=this['editor']['plugins']['get']('Users')['me']['id'],_0x32e4d0=m(this['editor']['locale'],_0xd3b2d2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4b7bdb,'to':_0x4b7bdb,'id':this['_initialRevisionId'],'name':_0x32e4d0,'creatorId':_0x1c173f});}}['_createCurrentRevision'](_0x2ea7e7){const _0x18ee9d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x18ee9d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2ea7e7,'to':_0x2ea7e7,'id':_0x18ee9d,'name':'','creatorId':null}));}['_makeRevision']({name:_0x15237f,from:_0x524ad9,to:_0x41e244,creatorId:_0x5e57ea,id:_0x112c1d}){const _0x132bb2=this['buildRevisionData']({'from':_0x524ad9,'to':_0x41e244});_0x132bb2['name']=_0x15237f,_0x132bb2['creatorId']=_0x5e57ea,_0x132bb2['id']=_0x112c1d;const _0x65b68d=this['addRevisionData'](_0x132bb2);return this['adapter']&&this['_bufferUpdate'](_0x132bb2['id'],_0x132bb2,!0x0),_0x65b68d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x8c4225){return(_0x8c4225=_0x8c4225['filter'](_0x1b9bd8=>!_0x1b9bd8['name']||'revision-start'!==_0x1b9bd8['name']&&'revision-end'!==_0x1b9bd8['name']))['forEach'](_0x52d4c0=>{'string'!=typeof _0x52d4c0&&(_0x52d4c0['children']=this['_removeRevisionMarkers'](_0x52d4c0['children']),_0x52d4c0['attributes']=_0x52d4c0['attributes']['filter'](_0x5689b8=>!_0x5689b8[0x0]['startsWith']('data-revision-')));}),_0x8c4225;}}function C(_0x1f63ee,_0x381171){const _0x2f9e41=_0x381171['editing']['view']['document'];if('string'==typeof _0x1f63ee)return new _0xe73c6d(_0x2f9e41,_0x1f63ee);{const _0x563c0d=_0x1f63ee['children']['map'](_0x571c4a=>C(_0x571c4a,_0x381171));return new(P[_0x1f63ee['type']]||_0x5e2f0f)(_0x2f9e41,_0x1f63ee['name'],_0x1f63ee['attributes'],_0x563c0d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5cbde8){this['editor']=_0x5cbde8,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'](_0x4af9d8){this['source']=_0x4af9d8;const _0x3f4525=new Map(),_0x1326f2=new Map(),_0x172ffc=this['editor']['model']['document']['roots']['map'](_0x5780fb=>_0x5780fb['rootName']);for(const _0xc66324 of _0x172ffc){const _0x1651cb=this['editor']['model']['document']['getRoot'](_0xc66324),_0x3c91b2=T(_0x1651cb);_0x3f4525['set'](_0xc66324,_0x3c91b2),_0x1326f2['set'](_0xc66324,Object['fromEntries'](_0x1651cb['getAttributes']()));}const _0x19b593=Array['from'](this['editor']['model']['markers'])['map'](_0x5c254f=>[_0x5c254f['name'],_0x5c254f['getRange']()]),_0x16a8d7=this['source']['version'];this['_saveMetaData'](_0x16a8d7,_0x3f4525,_0x19b593,_0x1326f2),this['_startingRevisionId']=this['_revisionId'];const _0x6746fa=new Map(),_0x35b76f=new Map();for(const _0x373f12 of _0x172ffc){const _0x52d562=F(_0x373f12);_0x6746fa['set'](_0x373f12,_0x52d562),_0x35b76f['set'](_0x373f12,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6746fa,[],_0x35b76f);}['getData'](_0x52880b,_0xe40fad){if(this['_lastFrom']===_0x52880b&&this['_lastTo']<=_0xe40fad)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe40fad,!0x0);else{if(!this['_savedMetaData']['has'](_0x52880b)){const _0x437a9e=this['_getPreviousFrom'](_0x52880b);this['_calculateMetaData'](_0x437a9e,_0x52880b,!0x1);}this['_calculateMetaData'](_0x52880b,_0xe40fad,!0x0);}return this['_lastFrom']=_0x52880b,this['_lastTo']=_0xe40fad,this['_getState']();}['loadState'](_0x2dd282){this['_reset'](),this['_lastFrom']=_0x2dd282['fromVersion'],this['_lastTo']=_0x2dd282['toVersion'];for(const _0x512629 in _0x2dd282['diffData']){const _0x2fe203=_0x2dd282['diffData'][_0x512629]['attachChange'],_0x312685=_0x77b43c(_0x2dd282['diffData'][_0x512629]['attributesBefore'])||{},_0x38035f=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x512629]['deletions']);_0x38035f['rootName']=_0x512629,_0x38035f['_isAttached']=!_0x2fe203||!_0x2fe203['isAttached'],_0x38035f['isAttached']=()=>_0x38035f['_isAttached'],this['_baseRoots']['set'](_0x512629,_0x38035f),this['_baseRootsAttributes']['set'](_0x512629,_0x312685),_0x2fe203&&this['_touchedRoots']['set'](_0x512629,_0x2fe203);const _0x29df55=this['_makeIdsRoot'](_0x38035f);this['_baseIdsRoots']['set'](_0x512629,_0x29df55);for(const [_0x35fa87,_0x35e8ac]of _0x38035f['markers']){if(!_0x35fa87['startsWith']('revision:'))continue;const _0x29cc52=_0x35fa87['split'](':')[0x2];for(const _0xe4cc1e of _0x35e8ac['getWalker']({'singleCharacters':!0x0})){const _0x5939bf=this['_getVidAttributeName'](_0xe4cc1e),_0x4a5ec8='elementEnd'==_0xe4cc1e['type']?_0xe4cc1e['previousPosition']['path']['slice'](0x0,-0x1):_0xe4cc1e['previousPosition']['path'],_0x1b0b4e=_0x29df55['getNodeByPath'](_0x4a5ec8)['getAttribute'](_0x5939bf);this['_touched']['set'](_0x1b0b4e,{'userId':_0x29cc52});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3e7159=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x254447=>!this['_touched']['has'](_0x254447));let _0x34ea3e=0x0;const _0x5142ab=new Map();for(const _0x4e95e9 in _0x2dd282['diffData']){const _0x2f52ad=_0x2dd282['diffData'][_0x4e95e9]['attachChange'],_0x2dafa7=_0x77b43c(_0x2dd282['diffData'][_0x4e95e9]['attributesAfter'])||{},_0x4f7eee=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x4e95e9]['insertions']);_0x4f7eee['rootName']=_0x4e95e9,_0x4f7eee['_isAttached']=!_0x2f52ad||_0x2f52ad['isAttached'],_0x4f7eee['isAttached']=()=>_0x4f7eee['_isAttached'],this['_diffRoots']['set'](_0x4e95e9,_0x4f7eee),this['_diffRootsAttributes']['set'](_0x4e95e9,_0x2dafa7);const _0x6aa54a=this['_makeIdsRoot'](_0x4f7eee,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e95e9,_0x6aa54a),_0x5142ab['set'](_0x4e95e9,_0x4f7eee['isAttached']()?_0x2dafa7:{});for(const [_0x20da15,_0x5f2478]of _0x4f7eee['markers']){if(!_0x20da15['startsWith']('revision:'))continue;const _0x3c62b1=_0x20da15['split'](':')[0x2];for(const _0x114644 of _0x5f2478['getWalker']({'singleCharacters':!0x0})){const _0x51edd1=this['_getVidAttributeName'](_0x114644),_0x277b40=this['_revisionId']++,_0x1712d9='elementEnd'==_0x114644['type']?_0x114644['previousPosition']['path']['slice'](0x0,-0x1):_0x114644['previousPosition']['path'];_0x6aa54a['getNodeByPath'](_0x1712d9)['_setAttribute'](_0x51edd1,_0x277b40),this['_touched']['set'](_0x277b40,{'userId':_0x3c62b1});}}for(const _0x37cb0b of this['editor']['model']['createRangeIn'](_0x4f7eee)['getWalker']({'singleCharacters':!0x0})){const _0x42e098=this['_getVidAttributeName'](_0x37cb0b),_0x278400='elementEnd'==_0x37cb0b['type']?_0x37cb0b['previousPosition']['path']['slice'](0x0,-0x1):_0x37cb0b['previousPosition']['path'],_0x1d548c=_0x6aa54a['getNodeByPath'](_0x278400);_0x1d548c['getAttribute'](_0x42e098)>0x0||_0x1d548c['_setAttribute'](_0x42e098,_0x3e7159[_0x34ea3e++]);}for(const [_0x280885,_0x26c43d]of _0x4f7eee['markers'])_0x280885['startsWith']('revision:')||this['_markers']['set'](_0x280885,_0x26c43d);}const _0x53d3fc=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x53d3fc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53d3fc,0x1));const _0x4440f6=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4440f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4440f6,0x1));const _0x17bbb3=Array['from'](this['_diffRoots'])['map'](([_0x30657c,_0x496090])=>[_0x30657c,T(_0x496090)]);this['_saveMetaData'](this['_lastTo'],_0x17bbb3,this['_markers'],_0x5142ab);}['_makeModelFromViewString'](_0x26bdd4){const _0x3b6ecf=JSON['parse'](_0x26bdd4),_0x5ecc3a=this['editor']['editing']['view']['document'],_0x3315a4=new _0x57bee1(_0x5ecc3a,_0x3b6ecf['map'](_0x46ab3f=>C(_0x46ab3f,this['editor'])));return this['editor']['data']['toModel'](_0x3315a4);}['_saveMetaData'](_0x4bfa9f,_0x5250ef,_0x4b5ed1,_0x32799e){const _0x3da13e=new Map(_0x5250ef),_0x18ea41=new Map(_0x77b43c(_0x32799e)),_0x1e2f90=new Map();for(const [_0x202d0d,_0x390b35]of _0x4b5ed1)_0x1e2f90['set'](_0x202d0d,{'start':_0x390b35['start']['clone'](),'end':_0x390b35['end']['clone'](),'rootName':_0x390b35['root']['rootName']});this['_savedMetaData']['set'](_0x4bfa9f,{'roots':_0x3da13e,'markers':_0x1e2f90,'rootsAttributes':_0x18ea41});}['_removeMetaData'](_0x500c3d){this['_savedMetaData']['delete'](_0x500c3d);}['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'](_0x59afc6,_0x40d8dd=null){let _0x4d0943=null;_0x59afc6['is']('documentFragment')||(_0x4d0943=new ft(_0x59afc6['name'],{'vid_start':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));const _0x5ea99b=[];for(const _0x5c256b of _0x59afc6['getChildren']())if(_0x5c256b['is']('element')){_0x5ea99b['push'](this['_makeIdsRoot'](_0x5c256b,_0x40d8dd));const _0x238442=_0x5ea99b[_0x5ea99b['length']-0x1];null!==_0x40d8dd&&(_0x40d8dd=_0x238442['is']('element','$text')?_0x238442['getAttribute']('vid')+0x1:_0x238442['getAttribute']('vid_end')+0x1);}else{for(let _0xb27571=0x0;_0xb27571<_0x5c256b['offsetSize'];_0xb27571++)_0x5ea99b['push'](new ft('$text',{'vid':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));}if(_0x59afc6['is']('documentFragment')){const _0x53de5f=F(_0x59afc6['rootName']);return _0x53de5f['_insertChild'](0x0,_0x5ea99b),_0x53de5f;}return _0x4d0943['_setAttribute']('vid_end',null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++),_0x4d0943['_insertChild'](0x0,_0x5ea99b),_0x4d0943;}['_calculateMetaData'](_0x3d158a,_0xc127e2,_0x1e3fda){this['_reset']();const {roots:_0x471431,markers:_0x373107,rootsAttributes:_0x19760f}=this['_savedMetaData']['get'](_0x3d158a);this['_baseRoots']=new Map(_0x471431),this['_baseRootsAttributes']=new Map(_0x77b43c(_0x19760f));for(const [_0x4c6e15,_0x137a5c]of this['_baseRoots'])if('$graveyard'!==_0x4c6e15&&(this['_diffRoots']['set'](_0x4c6e15,T(_0x137a5c)),this['_diffRootsAttributes']=new Map(_0x77b43c(_0x19760f)),_0x1e3fda)){const _0xabccfb=this['_revisionId'];this['_idsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c)),this['_baseIdsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c,_0xabccfb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1e3fda&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3239c9,_0x58ab95]of _0x373107){const _0xd3e165=this['_baseRoots']['get'](_0x58ab95['rootName']),_0x10a4f6=this['_diffRoots']['get'](_0x58ab95['rootName']),_0x4fccfe=new vt(this['_fixPosition'](_0x58ab95['start'],_0xd3e165),this['_fixPosition'](_0x58ab95['end'],_0xd3e165)),_0x3955a1=this['_fixRange'](_0x4fccfe,_0x10a4f6);_0xd3e165['markers']['set'](_0x3239c9,_0x4fccfe),this['_markers']['set'](_0x3239c9,_0x3955a1);}this['_applyOperations'](_0x3d158a,_0xc127e2,_0x1e3fda);}['_applyOperations'](_0x810af5,_0x152d44,_0x27a1db){for(const _0xf47008 of this['source']['getOperations'](_0x810af5,_0x152d44))this['_handleOperation'](_0xf47008,_0x27a1db);for(const _0x42b9f2 of this['_diffRoots']['values']())_0x42b9f2['markers']['clear']();for(const [_0x57a757,_0x4063d3]of this['_markers']){this['_diffRoots']['get'](_0x4063d3['root']['rootName'])['markers']['set'](_0x57a757,_0x4063d3['clone']());}const _0x17afa9=new Map(),_0x23d5dd=new Map();for(const [_0x2a1db0,_0x3c5439]of this['_diffRoots'])_0x17afa9['set'](_0x2a1db0,T(_0x3c5439)),_0x23d5dd['set'](_0x2a1db0,this['_diffRootsAttributes']['get'](_0x2a1db0));this['_saveMetaData'](_0x152d44,_0x17afa9,this['_markers'],_0x23d5dd);}['_getPreviousFrom'](_0x3f460f){const _0x13a685=Array['from'](this['_savedMetaData']['keys']());_0x13a685['sort']((_0x57cbd9,_0x2354f0)=>_0x57cbd9-_0x2354f0),_0x13a685['reverse']();for(const _0x4952dc of _0x13a685)if(_0x4952dc<_0x3f460f)return _0x4952dc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x34ba88,_0xe468a5){const _0x318d11=Array['from'](_0xe468a5['markers'])['map'](([_0x30fd03,_0x2915e4])=>[_0x30fd03,this['_fixRange'](_0x2915e4,_0x34ba88)]);_0x34ba88['markers']=new Map(_0x318d11);}['_transformMarkers'](_0x2664c8){for(const _0x39c900 of this['_markers']['values']()){const _0x5d2c31=_0x39c900['getTransformedByOperation'](_0x2664c8),_0x39f995=vt['_createFromRanges'](_0x5d2c31);_0x39c900['start']=_0x39f995['start'],_0x39c900['end']=_0x39f995['end'];}}['_handleOperation'](_0x51228c,_0x22aa19){if('addRoot'!=_0x51228c['type']&&'detachRoot'!=_0x51228c['type']){if('insert'==_0x51228c['type']){const _0x42413e=_0x51228c['position']['root']['rootName'];this['_diffRoots']['has'](_0x42413e)||(this['_diffRoots']['set'](_0x42413e,F(_0x42413e,!0x0)),this['_diffRootsAttributes']['set'](_0x42413e,{}),_0x22aa19&&this['_idsRoots']['set'](_0x42413e,F(_0x42413e,!0x0)));}else{if('addRootAttribute'==_0x51228c['type']||'removeRootAttribute'==_0x51228c['type']||'changeRootAttribute'==_0x51228c['type'])return void this['_handleRootAttributeOperation'](_0x51228c);'marker'==_0x51228c['type']&&this['_handleMarkerOperation'](_0x51228c);}if('marker'!==_0x51228c['type']){const _0x41a14f=this['_cloneOperation'](_0x51228c,this['_diffRoots']);_0x41a14f['_execute'](),this['_transformMarkers'](_0x41a14f);}if(_0x22aa19)switch(_0x51228c['type']){case'insert':this['_handleInsertOperation'](_0x51228c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x51228c);break;case'merge':this['_handleMergeOperation'](_0x51228c);break;case'split':this['_handleSplitOperation'](_0x51228c);}}else this['_handleRootOperation'](_0x51228c,_0x22aa19);}['_cloneOperation'](_0x4b6dad,_0xb50f17){const _0x376d8e=_0x4b6dad['clone']();return _0x376d8e['_authorId']=_0x4b6dad['_authorId'],this['_fixOperation'](_0x376d8e,_0xb50f17),_0x376d8e;}['_getBaseVids'](_0x178b1c){return _0x178b1c['map'](_0x99a7fb=>{const _0x36bfa5=this['_getVidAttributeName'](_0x99a7fb);return Number(_0x99a7fb['item']['getAttribute'](_0x36bfa5));});}['_generateTape'](_0x5118ef,_0x4a836c){if(_0x5118ef['is']('element','$text'))_0x4a836c['push']({'item':_0x5118ef,'type':'text'});else{_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementStart'});for(const _0x1e7b0a of _0x5118ef['getChildren']())this['_generateTape'](_0x1e7b0a,_0x4a836c);_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementEnd'});}return _0x4a836c;}['_getState'](){const _0x1e78b2=new Map(this['_touched']),_0x33027e=new Map(_0x1e78b2),_0x38859a=new Map(),_0x5cf274={'insertions':{},'deletions':{}},_0xfeec5a={'insertions':{},'deletions':{}},_0x29ed50=new Map(),_0x4cc3c7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4cc3c7['delete']('$graveyard');for(const _0x299499 of _0x4cc3c7){const _0x5529e4=this['_diffRoots']['get'](_0x299499)||F(_0x299499,!0x1),_0x3dd95a=this['_baseRoots']['get'](_0x299499)||F(_0x299499,!0x1);_0x5529e4['isAttached']()||_0x3dd95a['isAttached']()?(_0x5cf274['insertions'][_0x299499]=T(_0x5529e4),_0x5cf274['deletions'][_0x299499]=T(_0x3dd95a),this['_copyMarkers'](_0x5cf274['deletions'][_0x299499],_0x3dd95a),this['_copyMarkers'](_0x5cf274['insertions'][_0x299499],_0x5529e4),_0xfeec5a['insertions'][_0x299499]=this['_generateTape'](this['_idsRoots']['get'](_0x299499),[]),_0xfeec5a['deletions'][_0x299499]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x299499)||F(_0x299499,!0x1),[])):_0x4cc3c7['delete'](_0x299499);}for(const _0x194c3e of _0x4cc3c7){const _0x2c41f2=_0xfeec5a['insertions'][_0x194c3e];for(const _0x200cb1 of _0x2c41f2){const _0x3f77ee=this['_getVidAttributeName'](_0x200cb1),_0x2c8f48=_0x200cb1['item']['getAttribute'](_0x3f77ee);_0x33027e['delete'](_0x2c8f48),_0x2c8f48>=this['_startingRevisionId']&&_0x38859a['set'](_0x2c8f48,_0x1e78b2['get'](_0x2c8f48));}}for(const _0x948e35 of _0x4cc3c7){const _0x5edf6f=_0xfeec5a['insertions'][_0x948e35],_0x452085=this['_getBaseVids'](_0xfeec5a['deletions'][_0x948e35]);let _0x10d66d=0x0;for(const _0x1052b8 of _0x5edf6f){const _0x27824c=this['_getVidAttributeName'](_0x1052b8),_0x1b7ba3=_0x1052b8['item']['getAttribute'](_0x27824c);if(!_0x38859a['has'](_0x1b7ba3)&&!_0x29ed50['has'](_0x1b7ba3)){if(_0x33027e['has'](_0x1b7ba3))_0x10d66d++;else{if(_0x1b7ba3!=_0x452085[_0x10d66d]){const _0x516a2e=_0x1e78b2['get'](_0x1b7ba3)||_0x1e78b2['get'](_0x452085[_0x10d66d]);for(;_0x1b7ba3!=_0x452085[_0x10d66d];)_0x33027e['has'](_0x452085[_0x10d66d])||(_0x29ed50['set'](_0x452085[_0x10d66d],_0x516a2e),_0x1e78b2['set'](_0x452085[_0x10d66d],_0x516a2e)),_0x10d66d++;}_0x10d66d++;}}}}for(const _0x2a2545 of _0x4cc3c7){const _0x3d61c7=_0xfeec5a['insertions'][_0x2a2545];for(const _0x54aa57 of _0x3d61c7){const _0x1e7833=this['_getVidAttributeName'](_0x54aa57),_0x43c235=_0x54aa57['item']['getAttribute'](_0x1e7833);if(_0x29ed50['has'](_0x43c235)){const _0x9aa867=_0x29ed50['get'](_0x43c235);_0x33027e['has'](_0x43c235)||_0x33027e['set'](_0x43c235,{..._0x9aa867}),_0x38859a['set'](_0x43c235,{..._0x9aa867});}}}for(const _0x36c85a of _0x33027e['keys']())_0x36c85a>=this['_startingRevisionId']&&_0x33027e['delete'](_0x36c85a);const _0xaf599f=new Map();for(const _0x2a92ff of _0x4cc3c7){let _0x1aa4ce=_0xfeec5a['insertions'][_0x2a92ff];for(const _0xe621e0 of _0x1aa4ce)if(_0xe621e0['item']['is']('element','tableCell')){const _0x3628d9=this['_getVidAttributeName'](_0xe621e0),_0x52f691=_0xe621e0['item']['getAttribute'](_0x3628d9);if(_0x38859a['has'](_0x52f691)){const _0x2ad0cb=_0xe621e0['item']['parent']['parent']['getAttribute']('vid_start'),_0x4982c4=_0xaf599f['get'](_0x2ad0cb)||new Set();_0x4982c4['add'](_0x38859a['get'](_0x52f691)['userId']),_0xaf599f['set'](_0x2ad0cb,_0x4982c4);}}_0x1aa4ce=_0xfeec5a['deletions'][_0x2a92ff];for(const _0x4fd7a3 of _0x1aa4ce)if(_0x4fd7a3['item']['is']('element','tableCell')){const _0x2e3de4=this['_getVidAttributeName'](_0x4fd7a3),_0xfbc29b=_0x4fd7a3['item']['getAttribute'](_0x2e3de4);if(_0x33027e['has'](_0xfbc29b)){const _0x38a1c4=_0x4fd7a3['item']['parent']['parent']['getAttribute']('vid_start'),_0x24afcb=_0xaf599f['get'](_0x38a1c4)||new Set();_0x24afcb['add'](_0x33027e['get'](_0xfbc29b)['userId']),_0xaf599f['set'](_0x38a1c4,_0x24afcb);}}for(const _0x364359 of _0xaf599f['keys']())(_0x38859a['has'](_0x364359)||_0x33027e['has'](_0x364359))&&_0xaf599f['delete'](_0x364359);}for(const _0x538e2a of _0x4cc3c7){const _0x155197=_0xfeec5a['insertions'][_0x538e2a];let _0x5a7bb9=null,_0x2c5604=null;for(const _0x193df3 of _0x155197){const _0x47dbc3=this['_getVidAttributeName'](_0x193df3),_0x36dc05=_0x193df3['item']['getAttribute'](_0x47dbc3),_0x7ad6f1=_0xaf599f['get'](_0x36dc05);_0x7ad6f1&&'elementStart'==_0x193df3['type']&&(_0x5a7bb9=Array['from'](_0x7ad6f1)[0x0],_0x2c5604=_0x193df3['item']['getAttribute']('vid_end')),_0x5a7bb9&&(_0x33027e['set'](_0x36dc05,{'userId':_0x5a7bb9}),_0x38859a['set'](_0x36dc05,{'userId':_0x5a7bb9})),_0x36dc05==_0x2c5604&&(_0x5a7bb9=null,_0x2c5604=null);}}const _0x3746f={},_0x4baf55=new Set();for(const _0xa858cb of _0x4cc3c7){const _0x130631=_0x5cf274['deletions'][_0xa858cb],_0x2ffbbf=_0x5cf274['insertions'][_0xa858cb];for(const {userId:_0x11ec8e}of this['_touchedMarkers']['values']())null!==_0x11ec8e&&_0x4baf55['add'](_0x11ec8e);for(const {userId:_0x1776e4}of this['_touchedRoots']['values']())null!==_0x1776e4&&_0x4baf55['add'](_0x1776e4);this['_markChanges'](_0x2ffbbf,_0xfeec5a['insertions'][_0xa858cb],_0x38859a,'insertion',_0x4baf55),this['_markChanges'](_0x130631,_0xfeec5a['deletions'][_0xa858cb],_0x33027e,'deletion',_0x4baf55),_0x3746f[_0xa858cb]={'insertions':this['_prepareViewToSave'](_0x2ffbbf),'deletions':this['_prepareViewToSave'](_0x130631),'attachChange':this['_touchedRoots']['get'](_0xa858cb)||null,'attributesBefore':_0x77b43c(this['_baseRootsAttributes']['get'](_0xa858cb))||{},'attributesAfter':_0x77b43c(this['_diffRootsAttributes']['get'](_0xa858cb))};}return{'diffData':_0x3746f,'authorsIds':Array['from'](_0x4baf55)};}['_processRootBeforeSave'](_0x40f18b){for(const [,_0x174a1e]of _0x40f18b['markers']){const _0x3fcd15=_0x174a1e['start']['getAncestors']()['filter'](_0x1535dd=>'tableCell'==_0x1535dd['name']);for(const _0x1cf220 of _0x3fcd15)0x1==_0x1cf220['childCount']&&_0x1cf220['getChild'](0x0)['is']('element','paragraph')&&_0x1cf220['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x59f6a1){this['_processRootBeforeSave'](_0x59f6a1);const _0x509f59=this['editor']['data']['toView'](_0x59f6a1,{}),_0x9bcfdb=Array['from'](_0x509f59['getChildren']())['map'](_0x384c7e=>this['_getViewJson'](_0x384c7e));return JSON['stringify'](_0x9bcfdb);}['_getViewJson'](_0x3bcbf5){if(_0x3bcbf5['is']('$text'))return _0x3bcbf5['data'];{const _0x58df57=_0x3bcbf5;return{'type':Object['keys'](P)['find'](_0x167350=>_0x3bcbf5 instanceof P[_0x167350]),'name':_0x58df57['name'],'attributes':Array['from'](_0x58df57['getAttributes']()),'children':Array['from'](_0x58df57['getChildren']())['map'](_0x22f734=>this['_getViewJson'](_0x22f734))};}}['_markChanges'](_0x4dda38,_0xe1489e,_0x1b4f4a,_0x185ace,_0xe0eba4){let _0x1f7de7=null,_0x4348c6=null,_0x4540a4=0x0;const _0x5307cd=this['editor']['model'];for(let _0x142a80=0x0;_0x142a80<_0xe1489e['length'];_0x142a80++){const _0x37de12=this['_getVidAttributeName'](_0xe1489e[_0x142a80]),_0x268817=_0xe1489e[_0x142a80]['item']['getAttribute'](_0x37de12),_0x3a88b6=_0x1b4f4a['get'](_0x268817),_0x396769=_0x142a80==_0xe1489e['length']-0x1;(!_0x1f7de7&&_0x3a88b6&&(_0x1f7de7=_0x3a88b6,_0x4348c6=_0xe1489e[_0x142a80]),_0x1f7de7&&(!_0x3a88b6||_0x3a88b6['userId']!=_0x1f7de7['userId']))&&(_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),B(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd)),_0x1f7de7=_0x3a88b6||null,_0x4348c6=_0x3a88b6?_0xe1489e[_0x142a80]:null),_0x1f7de7&&_0x396769&&_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),J(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd));}function _0x25b618(_0x2a039f,_0x214fb3,_0x37648a){const _0x326158=_0x1f7de7['userId'],_0x371d34='revision:'+_0x185ace+':'+_0x326158+':'+_0x4540a4++,_0x11e68e=_0x5307cd['createRange'](_0x214fb3,_0x37648a);_0x4dda38['markers']['set'](_0x371d34,_0x11e68e),null!==_0x326158&&_0xe0eba4['add'](_0x326158);}}['_getVidAttributeName'](_0x2495c8){switch(_0x2495c8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x43874f,_0x3012f5){_0x43874f['baseVersion']=null;for(const _0x308e47 in _0x43874f){const _0x275a7f=_0x43874f[_0x308e47];if(_0x275a7f instanceof gt){const _0x29a04f=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixPosition'](_0x275a7f,_0x29a04f);}if(_0x275a7f instanceof vt){const _0x415feb=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixRange'](_0x275a7f,_0x415feb);}'root'===_0x308e47&&(_0x43874f['root']=_0x3012f5['get'](_0x43874f['root']['rootName']));}}['_fixRange'](_0x4946e8,_0x498619){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4946e8['start'],_0x498619),this['_fixPosition'](_0x4946e8['end'],_0x498619));}['_fixPosition'](_0x26ca51,_0xa5b6ec){return this['editor']['model']['createPositionFromPath'](_0xa5b6ec,_0x26ca51['path'],_0x26ca51['stickiness']);}['_handleInsertOperation'](_0x4abab9){const _0x14b066=this['_idsRoots']['get'](_0x4abab9['position']['root']['rootName']),_0x4bfec2=this['_fixPosition'](_0x4abab9['position'],_0x14b066),_0x9c6af2=null===_0x4abab9['_authorId']?null:_0x4abab9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b11dc=_0x4bfec2['parent'],_0x46f23c=this['_revisionId'],_0x205f3a=[];for(const _0xec8cb3 of _0x4abab9['nodes'])if(_0xec8cb3['is']('element'))_0x205f3a['push'](this['_makeIdsRoot'](_0xec8cb3));else{for(let _0x55cb33=0x0;_0x55cb33<_0xec8cb3['offsetSize'];_0x55cb33++)_0x205f3a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1e027e=this['_revisionId'];for(let _0x38912e=_0x46f23c;_0x38912e<_0x1e027e;_0x38912e++)this['_touched']['set'](_0x38912e,{'userId':_0x9c6af2});_0x1b11dc['_insertChild'](_0x4bfec2['offset'],_0x205f3a);}['_handleMoveOperation'](_0x14fbce){(_0x14fbce=this['_cloneOperation'](_0x14fbce,this['_idsRoots']))['_execute']();const _0x986bbc=null===_0x14fbce['_authorId']?null:_0x14fbce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x191216=_0x14fbce['getMovedRangeStart'](),_0x2bcfc1=_0x191216['parent'],_0x276043=_0x191216['offset'];!function _0x45a16a(_0x2854b1,_0x26413b,_0x18d6df,_0x578afd){for(let _0x337384=_0x18d6df;_0x337384<_0x578afd;_0x337384++){const _0x192e19=_0x26413b['getChild'](_0x337384);_0x192e19['is']('element','$text')?_0x2854b1['set'](_0x192e19['getAttribute']('vid'),{'userId':_0x986bbc}):(_0x2854b1['set'](_0x192e19['getAttribute']('vid_start'),{'userId':_0x986bbc}),_0x45a16a(_0x2854b1,_0x192e19,0x0,_0x192e19['childCount']),_0x2854b1['set'](_0x192e19['getAttribute']('vid_end'),{'userId':_0x986bbc}));}}(this['_touched'],_0x2bcfc1,_0x276043,_0x276043+_0x14fbce['howMany']);}['_handleMergeOperation'](_0x59fe33){const _0x4ead31=null===(_0x59fe33=this['_cloneOperation'](_0x59fe33,this['_idsRoots']))['_authorId']?null:_0x59fe33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c76f1=_0x59fe33['targetPosition']['parent'],_0xc2ac05=_0x59fe33['sourcePosition']['parent'],_0x4235b8=_0x3c76f1['getAttribute']('vid_end'),_0x12fe8b=_0xc2ac05['getAttribute']('vid_start');_0x3c76f1['_setAttribute']('vid_end',_0xc2ac05['getAttribute']('vid_end')),_0xc2ac05['_setAttribute']('vid_end',_0x4235b8),this['_touched']['set'](_0x12fe8b,{'userId':_0x4ead31}),this['_touched']['set'](_0x4235b8,{'userId':_0x4ead31}),_0x59fe33['_execute']();}['_handleSplitOperation'](_0x49ad5f){const _0x117916=null===(_0x49ad5f=this['_cloneOperation'](_0x49ad5f,this['_idsRoots']))['_authorId']?null:_0x49ad5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eadc2=_0x49ad5f['graveyardPosition'],_0x52ae04=_0x49ad5f['splitPosition']['parent'];_0x49ad5f['_execute']();const _0x19e3a4=_0x52ae04['getAttribute']('vid_end'),_0xabf750=_0x49ad5f['insertionPosition']['nodeAfter'];if(_0x1eadc2){const _0x2c392d=_0xabf750['getAttribute']('vid_end'),_0xe737bc=_0x52ae04['getAttribute']('vid_end');_0x52ae04['_setAttribute']('vid_end',_0x2c392d),_0xabf750['_setAttribute']('vid_end',_0xe737bc),this['_touched']['set'](_0x52ae04['getAttribute']('vid_end'),{'userId':_0x117916}),this['_touched']['set'](_0xabf750['getAttribute']('vid_start'),{'userId':_0x117916});}else{const _0x2fe9e5=this['_revisionId']++,_0x3eb5b8=this['_revisionId']++;_0x52ae04['_setAttribute']('vid_end',_0x2fe9e5),_0xabf750['_setAttribute']('vid_start',_0x3eb5b8),_0xabf750['_setAttribute']('vid_end',_0x19e3a4),this['_touched']['set'](_0x2fe9e5,{'userId':_0x117916}),this['_touched']['set'](_0x3eb5b8,{'userId':_0x117916});}}['_handleMarkerOperation'](_0x507253){if(!_0x507253['affectsData'])return;const _0x3bb3e0=(_0x507253=this['_cloneOperation'](_0x507253,this['_diffRoots']))['oldRange']?_0x507253['oldRange']['root']:null,_0xe094bc=_0x507253['newRange']?_0x507253['newRange']['root']:null;_0x3bb3e0&&this['_markers']['delete'](_0x507253['name']),_0xe094bc&&this['_markers']['set'](_0x507253['name'],_0x507253['newRange']['clone']());const _0x31a8b6=null===_0x507253['_authorId']?null:_0x507253['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x189af3=_0x507253['name'];if(!this['_touchedMarkers']['has'](_0x189af3))return void this['_touchedMarkers']['set'](_0x189af3,{'range':_0x507253['oldRange'],'userId':_0x31a8b6});const _0x250e70=this['_touchedMarkers']['get'](_0x189af3),_0x4d835f=_0x250e70['range'],_0x18006c=_0x507253['newRange'];null==_0x4d835f&&null==_0x18006c||_0x4d835f&&_0x18006c&&_0x4d835f['isEqual'](_0x18006c)?this['_touchedMarkers']['delete'](_0x507253['name']):_0x250e70['userId']=_0x31a8b6;}['_handleRootOperation'](_0x1bc513,_0x4d7af2){this['_diffRoots']['has'](_0x1bc513['rootName'])?this['_diffRoots']['get'](_0x1bc513['rootName'])['_isAttached']=_0x1bc513['isAdd']:(this['_diffRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1bc513['rootName'],{}),_0x4d7af2&&this['_idsRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)));const _0x5539a8=null===_0x1bc513['_authorId']?null:_0x1bc513['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54e5a2=this['_touchedRoots']['get'](_0x1bc513['rootName']);_0x54e5a2&&_0x54e5a2['userId']===_0x5539a8?this['_touchedRoots']['delete'](_0x1bc513['rootName']):this['_touchedRoots']['set'](_0x1bc513['rootName'],{'userId':_0x5539a8,'isAttached':_0x1bc513['isAdd']});}['_handleRootAttributeOperation'](_0x3e6a15){const _0x187d07=this['_diffRootsAttributes']['get'](_0x3e6a15['root']['rootName']);null===_0x3e6a15['newValue']?delete _0x187d07[_0x3e6a15['key']]:_0x187d07[_0x3e6a15['key']]=_0x3e6a15['newValue'];}}function T(_0x1ae50e){const _0x673dae=F(_0x1ae50e['rootName'],_0x1ae50e['isAttached']());for(const _0x20860b of _0x1ae50e['getChildren']()){const _0x3daad4=_0x20860b['_clone'](!0x0);_0x673dae['_appendChild'](_0x3daad4);}return _0x673dae;}function F(_0x28619d,_0x74df6a=!0x0){const _0x93e1b1=new mt();return _0x93e1b1['rootName']=_0x28619d,_0x93e1b1['_isAttached']=_0x74df6a,_0x93e1b1['isAttached']=()=>_0x93e1b1['_isAttached'],_0x93e1b1;}function B(_0x13d13f,_0xc8e738,_0x275517){const _0x545b7d='elementEnd'==_0x13d13f['type']?_0x275517['createPositionAt'](_0x13d13f['item'],'end'):_0x275517['createPositionBefore'](_0x13d13f['item']);return _0x275517['createPositionFromPath'](_0xc8e738,_0x545b7d['path'],_0x545b7d['stickiness']);}function J(_0x37c1b0,_0x5c57a4,_0xb66ab3){const _0x38a856='elementStart'==_0x37c1b0['type']?_0xb66ab3['createPositionAt'](_0x37c1b0['item'],0x0):_0xb66ab3['createPositionAfter'](_0x37c1b0['item']);return _0xb66ab3['createPositionFromPath'](_0x5c57a4,_0x38a856['path'],_0x38a856['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x25f995,_0x49423c){super(_0x25f995),this['focusTracker']=new _0x2cdc04(),this['keystrokes']=new _0x430444(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x49423c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x338fd2(this);}['render'](){super['render'](),_0x53558e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x511943=_0x31485d=>_0x31485d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x511943),this['keystrokes']['set']('arrowleft',_0x511943),this['keystrokes']['set']('arrowup',_0x511943),this['keystrokes']['set']('arrowdown',_0x511943);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c5cc9){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c5cc9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x56f378){const _0x13dfec=new _0xe538c1(this['locale'],_0x368611),_0x50b88b=_0x13dfec['fieldView'];_0x50b88b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1f408c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x56f378&&(_0x1f408c+='\x20('+m(this['locale'],'optional')+')'),(_0x13dfec['label']=_0x1f408c,_0x50b88b['on']('input',()=>{this['revisionNameInputValue']=_0x50b88b['element']['value']['trim']();}),_0x13dfec);}}class u extends _0x1420a4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x20443d=this['editor'],_0x229214=_0x20443d['plugins']['get']('RevisionTracker');_0x20443d['ui']['componentFactory']['add']('revisionHistory',_0x127d5d=>{const _0x1eb6a4=_0x1e0a60(_0x127d5d),_0x1c9f5b=_0x1eb6a4['panelView']['children'],_0x1e9e70=new _0x4646f5(_0x127d5d),_0x2dc59e=new _0x503a4e(_0x127d5d),_0x55318b=new te(_0x127d5d),_0xe9c586=new _0x503a4e(_0x127d5d),_0xd39516=new te(_0x127d5d);return _0x1eb6a4['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x4dfc90,_0x4347b8,_0xa64501)=>_0x4dfc90&&_0x4347b8&&!_0xa64501),_0x1eb6a4['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x127d5d,'Revision\x20history'),'tooltip':!0x0}),_0x55318b['set']({'label':m(_0x127d5d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x55318b['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x464390,_0x44041c,_0x260a35)=>_0x464390&&_0x44041c&&!_0x260a35),_0x55318b['on']('execute',()=>this['_showDialog']()),_0xd39516['set']({'label':m(_0x127d5d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xd39516['bind']('isEnabled')['to'](_0x229214,'isReady',_0x20443d,'isReadOnly',(_0x2dd954,_0x584ed1)=>_0x2dd954&&!_0x584ed1),_0xd39516['on']('execute',()=>{_0x20443d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1eb6a4['isOpen']=!0x1,_0x20443d['editing']['view']['focus']();}),_0x2dc59e['children']['add'](_0x55318b),_0xe9c586['children']['add'](_0xd39516),_0x1e9e70['role']='menu',_0x1e9e70['items']['addMany']([_0x2dc59e,_0xe9c586]),_0x1c9f5b['add'](_0x1e9e70),_0x1eb6a4;}),_0x20443d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x41aa49=this['editor'],_0x5a67aa=_0x41aa49['locale'],_0x5a619f=new _0x827bd6(_0x5a67aa),_0x49cf56=new _0x170de9(_0x5a67aa);_0x5a619f['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x5a67aa,'Revision\x20history')});const _0xfa7961=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x27aa4d=new _0x2b7259(_0x5a67aa);_0x27aa4d['set']({'label':m(_0x5a67aa,'Save\x20current\x20revision')}),_0x27aa4d['delegate']('execute')['to'](_0x5a619f),_0x27aa4d['on']('execute',()=>{this['_showDialog']();}),_0xfa7961['children']['add'](_0x27aa4d),_0x49cf56['items']['add'](_0xfa7961);const _0x454874=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x568a7a=new _0x2b7259(_0x5a67aa);return _0x568a7a['set']({'label':m(_0x5a67aa,'Open\x20revision\x20history')}),_0x568a7a['delegate']('execute')['to'](_0x5a619f),_0x568a7a['on']('execute',()=>{_0x41aa49['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x454874['children']['add'](_0x568a7a),_0x49cf56['items']['add'](_0x454874),_0x5a619f['panelView']['children']['add'](_0x49cf56),_0x5a619f;}['_showDialog'](){const _0x58d500=this['editor'],_0x365ba3=_0x58d500['locale'],_0x4e1cd5=_0x58d500['plugins']['get']('Dialog'),_0x293ba0=_0x58d500['plugins']['get']('RevisionTracker');function _0x3dfb9e(_0x1a6158){_0x58d500['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a6158['revisionName']?_0x1a6158['revisionNameInputView']['errorText']=m(_0x365ba3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x58d500['plugins']['get'](l)['saveRevision']({'name':_0x1a6158['revisionName']}),_0x4e1cd5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3dfb9e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e1cd5['show']({'id':'revisionSave','title':m(_0x365ba3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x58d500['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e1cd5['hide']()},{'label':m(_0x58d500['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d6df0){_0x1d6df0['bind']('isEnabled')['to'](_0x293ba0,'isReady',_0x293ba0,'isEnabled',_0x58d500,'isReadOnly',(_0x57ff1a,_0x45bc04,_0x1e81b3)=>_0x57ff1a&&_0x45bc04&&!_0x1e81b3);},'onExecute':()=>_0x3dfb9e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1dd8c4=this['editor'],_0x532904=_0x1dd8c4['locale'];this['_saveRevisionFormView']=new hs(_0x532904,_0x1dd8c4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x59071d,_0x1cda80){super(_0x59071d),this['_model']=_0x1cda80,this['changeId']=_0x1cda80['id'];const _0x401279=this['bindTemplate'],_0x12afac=m(_0x59071d,_0x1cda80['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1cda80['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1cda80['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x401279['to']('type',_0x1fa879=>'ck-revision-change__'+_0x1fa879)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x12afac}]},{'text':'\x20'+_0x1cda80['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x217fff(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e6f84){super(),this['id']=_0x3e6f84['id']||_0x5d66aa(),this['author']=_0x3e6f84['author'],this['type']=_0x3e6f84['type'],this['data']=_0x3e6f84['data']||{},this['rootName']=_0x3e6f84['rootName'],this['set']('createdAt',_0x3e6f84['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(_0x308a92,_0x34c1e9){this['newRevisionId']=_0x308a92,this['oldRevisionId']=_0x34c1e9,this['changes']=new _0xcf6e93();}['_setChanges'](_0x3aca52){for(const _0x1d6db8 of _0x3aca52)this['changes']['add'](_0x1d6db8);}}const Y={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class d extends _0x1420a4{['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[_0x4f378f,_0x1e2672,j];}constructor(_0x21adb8){super(_0x21adb8),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',(_0xfc6e13,_0x1ecb7f,_0x1c14a7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x102040=>{for(const _0x4cd044 of this['editor']['editing']['view']['document']['roots'])_0x1c14a7?_0x102040['removeClass']('ck-editor__editable__overlay',_0x4cd044):_0x102040['addClass']('ck-editor__editable__overlay',_0x4cd044);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1ea5d8=>null!==_0x1ea5d8),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4f7510,_0x454908,_0x2ebd0a)=>_0x4f7510&&_0x2ebd0a?_0x454908['changes']['getIndex'](_0x2ebd0a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e5a06,_0x322dda)=>_0x5e5a06?_0x322dda['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1e2672);}['init'](){const _0x5ff3eb=this['editor'],_0x25e3ca=new _t(_0x5ff3eb,{'direction':'backward'}),_0x1e6fca=new _t(_0x5ff3eb,{'direction':'forward'});(_0x5ff3eb['commands']['add']('showPreviousChange',_0x25e3ca),_0x5ff3eb['commands']['add']('showNextChange',_0x1e6fca),_0x5ff3eb['commands']['add']('restoreRevision',new pt(_0x5ff3eb)),this['on']('change:numberOfChanges',()=>{_0x25e3ca['refresh'](),_0x1e6fca['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5ff3eb['enableReadOnlyMode']('revision-viewer'),_0x5ff3eb['plugins']['has']('WidgetToolbarRepository'))&&_0x5ff3eb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x9e0492){await this['loadRevisionData'](_0x9e0492);const _0x3069c4={};for(const _0x299faf in _0x9e0492['diffData']){if(_0x9e0492['diffData'][_0x299faf]['attachChange']&&!_0x9e0492['diffData'][_0x299faf]['attachChange']['isAttached'])continue;const _0x15497f=this['_removeRevisionMarkers'](JSON['parse'](_0x9e0492['diffData'][_0x299faf]['insertions'])),_0x1436f1=this['editor']['editing']['view']['document'],_0x449ebe=new _0x57bee1(_0x1436f1,_0x15497f['map'](_0x562dab=>this['_getViewObj'](_0x562dab)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3069c4[_0x299faf]=this['editor']['data']['processor']['toData'](_0x449ebe),this['editor']['data']['processor']['useFillerType']('default');}return _0x3069c4;}async['getRevisionRootsAttributes'](_0x27c2c1){await this['loadRevisionData'](_0x27c2c1);const _0x349ec0={};for(const _0x54e2f0 in _0x27c2c1['diffData'])_0x27c2c1['diffData'][_0x54e2f0]['attachChange']&&!_0x27c2c1['diffData'][_0x54e2f0]['attachChange']['isAttached']||(_0x349ec0[_0x54e2f0]=_0x27c2c1['diffData'][_0x54e2f0]['attributesAfter']||{});return _0x349ec0;}['_removeRevisionMarkers'](_0x42115a){return(_0x42115a=_0x42115a['filter'](_0x3734e7=>!_0x3734e7['name']||'revision-start'!==_0x3734e7['name']&&'revision-end'!==_0x3734e7['name']))['forEach'](_0x9af19a=>{'string'!=typeof _0x9af19a&&(_0x9af19a['children']=this['_removeRevisionMarkers'](_0x9af19a['children']),_0x9af19a['attributes']=_0x9af19a['attributes']['filter'](_0x266a15=>!_0x266a15[0x0]['startsWith']('data-revision-')));}),_0x42115a;}async['compare'](_0xe7b205,_0xf03f08,_0x3f10f5=!0x1){if(!this['isEnabled'])return;const _0xc69680=this['diff'],_0x173106=this['repository'],_0x3f9cd5='string'==typeof _0xe7b205?_0x173106['getRevision'](_0xe7b205):_0xe7b205,_0x3e31f2='string'==typeof _0xf03f08?_0x173106['getRevision'](_0xf03f08):_0xf03f08,_0x49198c=_0x3f9cd5['id'],_0x10170f=_0x3e31f2?_0x3e31f2['id']:null;if(!_0x3f10f5&&this['diff']&&this['diff']['newRevisionId']===_0x49198c&&this['diff']['oldRevisionId']===_0x10170f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x49198c,_0x10170f);const _0x325e0e=this['_getRevisionsRange'](_0x3f9cd5,_0x3e31f2,!0x0)['map'](_0x2b20c8=>this['loadRevisionData'](_0x2b20c8));return _0x325e0e['push'](new Promise(_0x2258bd=>{setTimeout(_0x2258bd,0x14);})),Promise['all'](_0x325e0e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30096a=this['_getDiff'](_0x49198c,_0x10170f);for(const _0x5c01b5 of _0x30096a['changes'])this['_changeIdToChange']['set'](_0x5c01b5['id'],_0x5c01b5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc5a026=>{for(const _0x4dd314 of this['editor']['model']['document']['getRootNames']())_0xc5a026['detachRoot'](_0x4dd314);for(const _0xfffadf of Object['keys'](_0x30096a['model'])){const _0x2f17fd=_0xc5a026['addRoot'](_0xfffadf);for(const _0x1a50e7 of Object['keys'](_0x30096a['attributes'][_0xfffadf]))_0xc5a026['setAttribute'](_0x1a50e7,_0x30096a['attributes'][_0xfffadf][_0x1a50e7],_0x2f17fd);_0xc5a026['insert'](_0x30096a['model'][_0xfffadf],_0x2f17fd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30096a['changes'])),this['isReady']=!0x0;})['catch'](_0x34ca99=>{console['error'](_0x34ca99),this['_cleanUp'](),_0xc69680&&(this['diff']=_0xc69680),this['isReady']=!0x0;});}['addRevisionData'](_0x34db75,_0x4948b9){const _0x5b6288=this['repository']['createRevision'](_0x34db75);return _0x5b6288['on']('_update',(_0x1b4200,_0x2401cc,_0x3d300f)=>_0x4948b9(_0x2401cc,_0x3d300f,_0x5b6288)),this['repository']['addRevision'](_0x5b6288),_0x5b6288;}['loadRevisionData'](_0x489a33){if(!_0x489a33||_0x489a33['diffData'])return Promise['resolve']();{const _0x354487=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x354487,'revisionId':_0x489a33['id']})['then'](_0x8f2136=>{_0x489a33['_update']({'diffData':_0x8f2136['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},_0x1650a5=>{for(const _0x5d4666 of this['editor']['model']['document']['getRootNames']())_0x1650a5['detachRoot'](_0x5d4666);});}['_sortAndFilterDiffChanges'](_0x416b2c){const _0x398f87=[],_0x56d6d4=new Map();for(const _0x46cd16 of this['editor']['model']['document']['getRootNames']()){const _0x487403=this['editor']['editing']['view']['getDomRoot'](_0x46cd16);if(!_0x487403)continue;const _0x565aeb=_0x487403['getClientRects']()['item'](0x0);_0x565aeb&&(_0x398f87['push'](_0x46cd16),_0x56d6d4['set'](_0x46cd16,_0x565aeb));}return _0x398f87['sort']((_0x460ee3,_0x956682)=>{const _0x4f94c3=_0x56d6d4['get'](_0x460ee3),_0x4a2765=_0x56d6d4['get'](_0x956682);return _0x4f94c3['y']-_0x4a2765['y']||_0x4f94c3['x']-_0x4a2765['x'];}),(_0x416b2c=_0x416b2c['filter'](_0x432479=>_0x398f87['includes'](_0x432479['rootName'])))['sort']((_0x22546b,_0x4f5b19)=>_0x398f87['indexOf'](_0x22546b['rootName'])-_0x398f87['indexOf'](_0x4f5b19['rootName'])),_0x416b2c;}['_makeTape'](_0x3d0ac7){const _0x5efa76=Array['from'](_0x3d0ac7['markers'])['filter'](([_0x95878,_0x1c3b9d])=>_0x95878['startsWith']('revision:')&&!_0x1c3b9d['isCollapsed']),_0x13e22b=Array['from'](this['editor']['model']['createRangeIn'](_0x3d0ac7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5efa76['length'])for(const _0x248c47 of _0x13e22b){const [_0x439ad5,_0xa07233]=_0x5efa76[0x0],[,_0x911314,_0x3c36ec]=_0x439ad5['split'](':');if(_0xa07233['end']['isEqual'](_0x248c47['nextPosition'])&&_0x5efa76['shift'](),(_0x248c47['previousPosition']['isEqual'](_0xa07233['start'])||_0x248c47['previousPosition']['isAfter'](_0xa07233['start']))&&('insertion'==_0x911314?_0x248c47['isAdded']={'userId':_0x3c36ec}:'deletion'==_0x911314&&(_0x248c47['isRemoved']={'userId':_0x3c36ec})),0x0==_0x5efa76['length'])break;}return _0x13e22b;}['_refreshStartEndIndex'](_0x572ae9){const _0x31661c=new Map();for(let _0x2a9308=0x0;_0x2a9308<_0x572ae9['length'];_0x2a9308++)'text'===_0x572ae9[_0x2a9308]['type']?(_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308,_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308):('elementStart'===_0x572ae9[_0x2a9308]['type']?_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308:'elementEnd'===_0x572ae9[_0x2a9308]['type']&&(_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308),_0x31661c['set'](_0x572ae9[_0x2a9308]['id'],_0x2a9308));for(const _0x2ffc68 of _0x31661c['values']())'elementStart'===_0x572ae9[_0x2ffc68]['type']?_0x572ae9[_0x2ffc68]['item']['endIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']):'elementEnd'===_0x572ae9[_0x2ffc68]['type']&&(_0x572ae9[_0x2ffc68]['item']['startIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']));}['_processTape'](_0xdf3323){for(let _0x358406=0x0;_0x358406<_0xdf3323['length'];_0x358406++){if('elementStart'===_0xdf3323[_0x358406]['type'])_0xdf3323[_0x358406]['item']['startIndex']=_0x358406;else{if('elementEnd'===_0xdf3323[_0x358406]['type']){_0xdf3323[_0x358406]['item']['endIndex']=_0x358406;const _0x25adb0=_0xdf3323[_0x358406]['item']['startIndex'];_0xdf3323[_0x25adb0]['pairId']=_0xdf3323[_0x358406]['id'],_0xdf3323[_0x358406]['pairId']=_0xdf3323[_0x25adb0]['id'];}else _0xdf3323[_0x358406]['item']['startIndex']=_0x358406,_0xdf3323[_0x358406]['item']['endIndex']=_0x358406,_0xdf3323[_0x358406]['pairId']=null;}_0xdf3323[_0x358406]['markersStart']||(_0xdf3323[_0x358406]['markersStart']=[],_0xdf3323[_0x358406]['markersEnd']=[]);}}['_markInsertions'](_0x4f7fed,_0x47be4c){const _0x319e6d=_0x4f7fed['filter'](_0x2e2a72=>!_0x2e2a72['isAdded']);for(let _0x537395=0x0;_0x537395<_0x47be4c['length'];_0x537395++)_0x47be4c[_0x537395]['isAdded']&&(_0x319e6d[_0x537395]['isAdded']=_0x47be4c[_0x537395]['isAdded']);}['_makeModelFromViewString'](_0x35d0ab){const _0x29dcb5=JSON['parse'](_0x35d0ab),_0x25265e=this['editor']['editing']['view']['document'],_0x38ca25=new _0x57bee1(_0x25265e,_0x29dcb5['map'](_0x1cc680=>this['_getViewObj'](_0x1cc680)));return this['editor']['data']['toModel'](_0x38ca25);}['_getViewObj'](_0x30659a){const _0x642aac=this['editor']['editing']['view']['document'];if('string'==typeof _0x30659a)return new _0xe73c6d(_0x642aac,_0x30659a);{const _0x338cba=_0x30659a['children']['map'](_0x47cf31=>this['_getViewObj'](_0x47cf31));return new(Y[_0x30659a['type']]||_0x5e2f0f)(_0x642aac,_0x30659a['name'],_0x30659a['attributes'],_0x338cba);}}['_getDiff'](_0x3d1e90,_0x255f23=null){const _0x44b714=this['repository']['getRevision'](_0x3d1e90),_0x4c5a38=_0x255f23?this['repository']['getRevision'](_0x255f23):null,_0x155924=this['_getRevisionsRange'](_0x44b714,_0x4c5a38),_0x478d81=_0x155924[_0x155924['length']-0x1],_0x17d0a0=new Map(),_0x666382={'model':{},'attributes':{},'changes':[]},_0x3e8c40=new Set(),_0xd3bb19=new Map();for(let _0x44d855=_0x155924['length']-0x1;_0x44d855>=0x0;_0x44d855--){const _0x3909ae=_0x155924[_0x44d855];for(const _0x50aff9 of Object['keys'](_0x3909ae['diffData']))if(_0x3909ae['diffData'][_0x50aff9]['attachChange']){const _0x469ce9=_0x3909ae['diffData'][_0x50aff9]['attachChange'];_0x469ce9['isAttached']?(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['has'](_0x50aff9)&&_0xd3bb19['get'](_0x50aff9)['userId']==_0x469ce9['userId']?_0xd3bb19['delete'](_0x50aff9):_0xd3bb19['set'](_0x50aff9,_0x469ce9)):_0xd3bb19['has'](_0x50aff9)?(_0x3e8c40['delete'](_0x50aff9),_0xd3bb19['delete'](_0x50aff9)):(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['set'](_0x50aff9,_0x469ce9));}else _0x3e8c40['add'](_0x50aff9);}for(const _0x4a751b of _0x3e8c40){const _0x4fd243=_0xd3bb19['has'](_0x4a751b)&&!_0xd3bb19['get'](_0x4a751b)['isAttached'];let _0x36f777=_0x4fd243?_0x155924['length']-0x1:0x0;const _0x26b66c=_0x4fd243?-0x1:0x1;for(;_0x155924[_0x36f777];){const _0x2188f2=_0x155924[_0x36f777];if(_0x2188f2['diffData'][_0x4a751b]){const _0x345967=_0x4fd243?_0x2188f2['diffData'][_0x4a751b]['attributesBefore']:_0x2188f2['diffData'][_0x4a751b]['attributesAfter'];_0x666382['attributes'][_0x4a751b]=_0x345967?_0x77b43c(_0x345967):{};break;}_0x36f777+=_0x26b66c;}}for(const _0x452f2f of _0x155924){_0x452f2f['model']={};for(const _0x3ae91f of _0x452f2f['authors'])_0x17d0a0['set'](_0x3ae91f['id'],_0x3ae91f);for(const _0x21f020 of _0x3e8c40){const _0x18cca1=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['insertions']:'[]',_0x1f4c74=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['deletions']:'[]';_0x452f2f['model'][_0x21f020]={'insertions':this['_makeModelFromViewString'](_0x18cca1),'deletions':this['_makeModelFromViewString'](_0x1f4c74)};}}for(const _0x82accc of _0x3e8c40){let _0x2e40ce=null,_0x56fb37=0x0;const _0x43780d=new Map(Array['from'](_0x44b714['model'][_0x82accc]['insertions']['markers'])['filter'](([_0x1bd17f])=>!_0x1bd17f['startsWith']('revision:')));let _0x1531c2=0x0;for(const _0x1858f0 of _0x155924){const _0x53e116=this['_makeTape'](_0x1858f0['model'][_0x82accc]['insertions']);_0x1858f0==_0x44b714?(_0x2e40ce=_0x53e116,_0x56fb37=_0x2e40ce['length'],_0x2e40ce['forEach'](_0x18bece=>{_0x18bece['id']=_0x1531c2++;}),this['_processTape'](_0x2e40ce)):this['_markInsertions'](_0x2e40ce,_0x53e116);const _0x3ee358=_0x2e40ce['filter'](_0x546252=>!_0x546252['isAdded'])['map'](_0x3aab3d=>_0x3aab3d['id']);let _0x340917=0x0;const _0x113f0a=this['_makeTape'](_0x1858f0['model'][_0x82accc]['deletions']);_0x113f0a['forEach'](_0x57d7ae=>{_0x57d7ae['isRemoved']?_0x57d7ae['id']=_0x56fb37++:_0x57d7ae['id']=_0x3ee358[_0x340917++];}),this['_processTape'](_0x113f0a),this['_setDistance'](_0x2e40ce,'isAdded'),this['_setDistance'](_0x113f0a,'isRemoved'),_0x1858f0==_0x44b714&&this['_markMarkers'](_0x2e40ce,_0x43780d),_0x2e40ce=this['_joinTapes'](_0x2e40ce,_0x113f0a),this['_refreshStartEndIndex'](_0x2e40ce),this['_setDistance'](_0x2e40ce,'isRemoved');}_0x2e40ce=_0x2e40ce['filter'](_0x21ffef=>!(_0x21ffef['isAdded']&&_0x21ffef['isRemoved']));const _0xb9c6e7=new Map(_0x478d81['model'][_0x82accc]['deletions']['markers']),_0x5ebf6a=new Set(_0x43780d['keys']());for(const _0x2a1c6c of _0xb9c6e7['keys']())_0x5ebf6a['delete'](_0x2a1c6c);this['_markSuggestions'](_0x2e40ce,_0x5ebf6a),this['_fixObsoleteTags'](_0x2e40ce),_0x2e40ce=this['_removeMissingPairs'](_0x2e40ce),_0x2e40ce=this['_markMismatchedRemovedTags'](_0x2e40ce),_0x2e40ce=this['_removeUnsupportedChanges'](_0x2e40ce);const {root:_0x521579,changes:_0x1e1622}=this['_makeModelFromTape'](_0x2e40ce,_0x17d0a0,_0x82accc);_0x666382['model'][_0x82accc]=_0x521579;const _0x11a877=_0xd3bb19['get'](_0x82accc);if(_0x11a877){const _0x5be509=_0x17d0a0['get'](_0x11a877['userId']),_0x1c67a9=new r({'author':_0x5be509,'type':_0x11a877['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x82accc});_0x1e1622['unshift'](_0x1c67a9),_0x666382['attributes'][_0x82accc]['revisionHistoryAttachChange']=_0x1c67a9['id'];}_0x666382['changes']=_0x666382['changes']['concat'](_0x1e1622);}return _0x666382;}['_markMarkers'](_0x61a971,_0x4c93b4){for(let _0xaa1b42=0x0;_0xaa1b42<_0x61a971['length'];_0xaa1b42++)for(const [_0x20eba4,_0x3c3af5]of _0x4c93b4)_0x3c3af5['start']['isEqual'](_0x61a971[_0xaa1b42]['previousPosition'])&&_0x61a971[_0xaa1b42]['markersStart']['push'](_0x20eba4),_0x3c3af5['end']['isEqual'](_0x61a971[_0xaa1b42]['nextPosition'])&&_0x61a971[_0xaa1b42]['markersEnd']['push'](_0x20eba4);}['_joinTapes'](_0x4f92e5,_0x39ce36){let _0x29c550=[],_0x5ebff4=0x0,_0x1a56b2=0x0;for(;_0x5ebff4<_0x4f92e5['length']||_0x1a56b2<_0x39ce36['length'];){const _0x2b6ff5=_0x4f92e5[_0x5ebff4]||{},_0x31c622=_0x39ce36[_0x1a56b2]||{};if(_0x2b6ff5['id']==_0x31c622['id'])_0x5ebff4++,_0x1a56b2++,_0x29c550['push'](_0x2b6ff5);else{if(_0x31c622['isRemoved']&&_0x2b6ff5['isAdded']){const {commonTape:_0x4d2d96,iEnd:_0x2b9d8f,jEnd:_0x20bf94}=this['_threeWayMerge'](_0x4f92e5,_0x5ebff4,_0x39ce36,_0x1a56b2);_0x29c550=_0x29c550['concat'](_0x4d2d96),_0x5ebff4=_0x2b9d8f,_0x1a56b2=_0x20bf94;}else _0x31c622['isRemoved']?(_0x1a56b2++,_0x29c550['push'](_0x31c622)):(_0x5ebff4++,_0x29c550['push'](_0x2b6ff5));}}return _0x29c550;}['_markSuggestions'](_0x2d06d4,_0x28ca36){const _0x1cb48e=[];for(let _0x555e1f=0x0;_0x555e1f<_0x2d06d4['length'];_0x555e1f++){for(let _0xdff107=0x0;_0xdff107<_0x2d06d4[_0x555e1f]['markersStart']['length'];_0xdff107++){const _0x4f10c4=_0x2d06d4[_0x555e1f]['markersStart'][_0xdff107];if(!_0x28ca36['has'](_0x4f10c4))continue;const {group:_0x47f239,type:_0x44239d,authorId:_0x1c0fd9}=_0x418e6c(_0x4f10c4);'revision-suggestion'!=_0x47f239||'insertion'!=_0x44239d&&'deletion'!=_0x44239d||(_0x1cb48e['unshift']({'type':_0x44239d,'name':_0x4f10c4,'userId':_0x1c0fd9}),_0x2d06d4[_0x555e1f]['markersStart']['splice'](_0xdff107,0x1),_0xdff107--);}_0x5058d1(_0x2d06d4[_0x555e1f]);for(let _0x65ff9a=0x0;_0x65ff9a<_0x2d06d4[_0x555e1f]['markersEnd']['length'];_0x65ff9a++){const _0x2457b0=_0x2d06d4[_0x555e1f]['markersEnd'][_0x65ff9a];if(!_0x28ca36['has'](_0x2457b0))continue;const {group:_0x560c1c,type:_0x3d81b7}=_0x418e6c(_0x2457b0);if('revision-suggestion'!=_0x560c1c||'insertion'!=_0x3d81b7&&'deletion'!=_0x3d81b7)continue;_0x2d06d4[_0x555e1f]['markersEnd']['splice'](_0x65ff9a,0x1),_0x65ff9a--;const _0x9fadee=_0x1cb48e['findIndex'](_0x101613=>_0x101613['name']==_0x2457b0);_0x9fadee>-0x1&&_0x1cb48e['splice'](_0x9fadee,0x1);}}function _0x418e6c(_0xac3111){const _0x20ac6a=_0xac3111['split'](':');return{'group':_0x20ac6a[0x0],'type':_0x20ac6a[0x1],'subType':_0x20ac6a['length']>=0x5?_0x20ac6a[0x2]:null,'id':_0x20ac6a['length']<0x5?_0x20ac6a[0x2]:_0x20ac6a[0x3],'authorId':_0x20ac6a['length']<0x5?_0x20ac6a[0x3]:_0x20ac6a[0x4],'markerCount':0x6==_0x20ac6a['length']?_0x20ac6a[0x5]:null};}function _0x5058d1(_0x2194b8){for(let _0x521df5=0x0;_0x521df5<_0x1cb48e['length'];_0x521df5++){if(_0x2194b8['isAdded']&&'insertion'==_0x1cb48e[_0x521df5]['type'])return _0x2194b8['isAddSuggestion']=_0x1cb48e[_0x521df5],void delete _0x2194b8['isAdded'];if(!_0x2194b8['isAdded']&&!_0x2194b8['isRemoved']&&'deletion'==_0x1cb48e[_0x521df5]['type'])return void(_0x2194b8['isRemoveSuggestion']=_0x1cb48e[_0x521df5]);}}}['_setDistance'](_0x416d86,_0x16261b){let _0x552664=0x0,_0x45d1ce=!0x1;const _0x46da5d=new Map();for(const _0x323596 of _0x416d86)_0x323596[_0x16261b]?_0x45d1ce&&(_0x552664++,_0x45d1ce=!0x1):(_0x552664++,_0x45d1ce=!0x0),_0x46da5d['set'](_0x323596['id'],_0x552664);for(let _0x397e0f=0x0;_0x397e0f<_0x416d86['length'];_0x397e0f++){if('isRemoved'==_0x16261b&&_0x416d86[_0x397e0f]['isAdded']||'isAdded'==_0x16261b&&_0x416d86[_0x397e0f]['isRemoved'])continue;if('text'==_0x416d86[_0x397e0f]['type']){_0x416d86[_0x397e0f]['distance']=0x0;continue;}const _0x503967=_0x46da5d['get'](_0x416d86[_0x397e0f]['pairId']),_0xd12b75=_0x46da5d['get'](_0x416d86[_0x397e0f]['id']);_0x416d86[_0x397e0f]['distance']=_0x503967-_0xd12b75;}}['_getRevisionsRange'](_0x42793e,_0x52b263,_0x5ea001=!0x1){const _0xd043d9=[];let _0x73ee47=this['repository']['getIndex'](_0x42793e),_0x4e3e0e=this['repository']['getIndex'](_0x52b263);for(-0x1==_0x4e3e0e&&(_0x4e3e0e=this['repository']['_revisions']['length'],_0x5ea001=!0x1);_0x73ee47<_0x4e3e0e;)_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0x73ee47++;return _0x5ea001&&_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0xd043d9;}['_threeWayMerge'](_0x68e67b,_0x380b38,_0x5b0314,_0x5ab4eb){const _0x1acf6b=this['editor']['model']['schema'];let _0xaf597d=_0x380b38;for(;_0x68e67b[_0xaf597d]&&_0x68e67b[_0xaf597d]['isAdded'];)_0xaf597d++;let _0x3996d7=_0x5ab4eb;for(;_0x5b0314[_0x3996d7]&&_0x5b0314[_0x3996d7]['isRemoved'];)_0x3996d7++;_0x3e0739(_0x68e67b,_0x380b38,_0xaf597d),_0x3e0739(_0x5b0314,_0x5ab4eb,_0x3996d7);const _0x45e3eb=_0x5b0314['slice'](_0x5ab4eb,_0x3996d7)['concat'](_0x68e67b['slice'](_0x380b38,_0xaf597d));return _0x45e3eb['sort']((_0x1d56fd,_0x222c0b)=>_0x1d56fd['side']!=_0x222c0b['side']?_0x1d56fd['side']-_0x222c0b['side']:_0x1d56fd['level']!=_0x222c0b['level']?_0x1d56fd['level']-_0x222c0b['level']:_0x1d56fd['distance']!=_0x222c0b['distance']?_0x222c0b['distance']-_0x1d56fd['distance']:!!_0x1d56fd['isAdded']!=!!_0x222c0b['isAdded']?-0x1==_0x1d56fd['side']||0x0==_0x1d56fd['side']?_0x1d56fd['isAdded']?-0x1:0x1:_0x1d56fd['isAdded']?0x1:-0x1:_0x1d56fd['index']-_0x222c0b['index']),{'commonTape':_0x45e3eb,'iEnd':_0xaf597d,'jEnd':_0x3996d7};function _0x3e0739(_0x5cbea0,_0x5f5d0a,_0x492af6){let _0x316f06=-0x1,_0x3dd429=Number['POSITIVE_INFINITY'],_0x55179a=!0x0;for(let _0x40db4f=_0x5f5d0a;_0x40db4f<_0x492af6;_0x40db4f++)if(_0x1acf6b['isInline'](_0x5cbea0[_0x40db4f]['item'])||(_0x55179a=!0x1),_0x5cbea0[_0x40db4f]['item']['startIndex']<_0x5f5d0a&&(_0x316f06=_0x40db4f),_0x5cbea0[_0x40db4f]['item']['endIndex']>=_0x492af6){_0x3dd429=_0x40db4f;break;}_0x55179a&&(_0x316f06=_0x492af6-0x1);for(let _0x19e3d9=_0x5f5d0a;_0x19e3d9<_0x492af6;_0x19e3d9++)_0x5cbea0[_0x19e3d9]['side']=_0x19e3d9<=_0x316f06?-0x1:_0x19e3d9<_0x3dd429?0x0:0x1,_0x5cbea0[_0x19e3d9]['index']=_0x19e3d9;let _0x11e064=0x0;for(let _0x4a7c51=_0x5f5d0a;_0x4a7c51<=_0x316f06;_0x4a7c51++)0x0==_0x5cbea0[_0x4a7c51]['distance']?_0x5cbea0[_0x4a7c51]['level']=_0x11e064:(_0x11e064++,_0x5cbea0[_0x4a7c51]['level']=_0x11e064,_0x11e064++);for(let _0x1e2aaa=_0x5f5d0a;_0x1e2aaa<_0x492af6;_0x1e2aaa++)0x0==_0x5cbea0[_0x1e2aaa]['side']&&(_0x5cbea0[_0x1e2aaa]['level']=_0x11e064);_0x11e064=0x0;for(let _0x4135a1=_0x492af6-0x1;_0x4135a1>=_0x3dd429;_0x4135a1--)0x0==_0x5cbea0[_0x4135a1]['distance']?_0x5cbea0[_0x4135a1]['level']=_0x11e064:(_0x11e064--,_0x5cbea0[_0x4135a1]['level']=_0x11e064,_0x11e064--);}}['_fixObsoleteTags'](_0x482175){const _0x3f4958=new Map(),_0x24a8ec=this['editor']['model']['schema'];for(let _0x3d2d62=0x1;_0x3d2d62<_0x482175['length'];_0x3d2d62++){let _0x297170,_0x112d73,_0xb2a217;const _0x427e8d=_0x482175[_0x3d2d62],_0x2f12e5=_0x482175[_0x3d2d62-0x1];if('text'==_0x427e8d['type'])continue;if(_0x427e8d['type']!=_0x2f12e5['type'])continue;if(!_0x24a8ec['isBlock'](_0x2f12e5['item'])||_0x24a8ec['isLimit'](_0x2f12e5['item']))continue;if(!_0x24a8ec['isBlock'](_0x427e8d['item'])||_0x24a8ec['isLimit'](_0x427e8d['item']))continue;if((_0x482175[_0x3d2d62]['isAdded']||_0x482175[_0x3d2d62]['isAddSuggestion'])&&_0x482175[_0x3d2d62-0x1]['isRemoved'])_0x297170=_0x482175[_0x3d2d62],_0x112d73=_0x482175[_0x3d2d62-0x1],_0xb2a217=_0x3d2d62-0x1;else{if(!_0x482175[_0x3d2d62]['isRemoved']||!_0x482175[_0x3d2d62-0x1]['isAdded']&&!_0x482175[_0x3d2d62-0x1]['isAddSuggestion'])continue;_0x297170=_0x482175[_0x3d2d62-0x1],_0x112d73=_0x482175[_0x3d2d62],_0xb2a217=_0x3d2d62;}const _0x3640d3=_0x297170['level']==_0x112d73['level'],_0x5f17de=Math['abs'](_0x297170['level'])<Math['abs'](_0x112d73['level'])&&0x0==_0x112d73['distance'];(_0x3640d3||_0x5f17de)&&(_0x3f4958['set'](_0x112d73['id'],_0x297170['id']),_0x482175['splice'](_0xb2a217,0x1),_0x3d2d62--,_0x297170['isAdded']=!0x1);}for(let _0x44da32=0x0;_0x44da32<_0x482175['length'];_0x44da32++)_0x3f4958['has'](_0x482175[_0x44da32]['pairId'])&&(_0x482175[_0x44da32]['pairId']=_0x3f4958['get'](_0x482175[_0x44da32]['pairId']));}['_removeMissingPairs'](_0x259891){const _0x5f260a=new Set(_0x259891['map'](_0x5c60b4=>_0x5c60b4['id']));for(let _0x49d92e=0x0;_0x49d92e<_0x259891['length'];_0x49d92e++)_0x5f260a['has'](_0x259891[_0x49d92e]['pairId'])||0x0==_0x259891[_0x49d92e]['distance']||(_0x259891[_0x49d92e]['isIncorrect']=!0x0);return _0x259891['filter'](_0x50e555=>!_0x50e555['isIncorrect']);}['_markMismatchedRemovedTags'](_0x127b52){const _0xa5fc78=new Set();for(let _0x511fcf=0x0;_0x511fcf<_0x127b52['length'];_0x511fcf++){if(_0xa5fc78['has'](_0x127b52[_0x511fcf]['id'])&&_0x127b52[_0x511fcf]['isRemoved']&&(_0x127b52[_0x511fcf]['isIncorrect']=!0x0),_0x127b52[_0x511fcf]['isIncorrect'])continue;if(0x0==_0x127b52[_0x511fcf]['distance'])continue;if('elementStart'!=_0x127b52[_0x511fcf]['type'])continue;if(null==_0x127b52[_0x511fcf]['pairId'])continue;let _0x3ebcc2=_0x511fcf+0x1,_0x4ec936=0x0;for(;_0x127b52[_0x3ebcc2]['id']!=_0x127b52[_0x511fcf]['pairId'];)'elementStart'==_0x127b52[_0x3ebcc2]['type']?_0x4ec936++:'elementEnd'==_0x127b52[_0x3ebcc2]['type']&&_0x4ec936--,_0x3ebcc2++;if(0x0!=_0x4ec936){if(_0x127b52[_0x511fcf]['isRemoved'])_0x127b52[_0x511fcf]['isIncorrect']=!0x0;else{for(;_0x3ebcc2!=_0x511fcf;)_0x127b52[_0x3ebcc2]['isRemoved']&&0x0!=_0x127b52[_0x3ebcc2]['distance']&&(_0x127b52[_0x3ebcc2]['isIncorrect']=!0x0,_0xa5fc78['add'](_0x127b52[_0x3ebcc2]['pairId'])),_0x3ebcc2--;}}}return _0x127b52['filter'](_0x57b902=>!_0x57b902['isIncorrect']);}['_removeUnsupportedChanges'](_0x41cd9f){const _0x3dd921=this['editor']['model']['schema'];for(let _0x49ec61=0x0;_0x49ec61<_0x41cd9f['length'];_0x49ec61++){if(!(_0x41cd9f[_0x49ec61]['isAdded']||_0x41cd9f[_0x49ec61]['isAddSuggestion']||_0x41cd9f[_0x49ec61]['isRemoved']||_0x41cd9f[_0x49ec61]['isRemoveSuggestion']))continue;if(0x0==_0x41cd9f[_0x49ec61]['distance'])continue;const _0x2380f3=_0x41cd9f[_0x49ec61]['item'];_0x3dd921['isBlock'](_0x2380f3)||_0x3dd921['isLimit'](_0x2380f3)||(_0x41cd9f[_0x49ec61]['isAdded']&&delete _0x41cd9f[_0x49ec61]['isAdded'],_0x41cd9f[_0x49ec61]['isAddSuggestion']&&delete _0x41cd9f[_0x49ec61]['isAddSuggestion'],_0x41cd9f[_0x49ec61]['isRemoveSuggestion']&&delete _0x41cd9f[_0x49ec61]['isRemoveSuggestion'],_0x41cd9f[_0x49ec61]['isRemoved']&&(_0x41cd9f[_0x49ec61]['isIncorrect']=!0x0));}return _0x41cd9f['filter'](_0x4f3370=>!_0x4f3370['isIncorrect']);}['_makeModelFromTape'](_0x4a76d3,_0x4812ce,_0x42bdb6){const _0x402507=new mt(),_0x1871d3=[],_0x188f7b=new Map(),_0x56afb3=this['editor']['model'],_0x463ab2=_0x56afb3['schema'],_0x4c2644=[_0x402507],_0x307cd1={},_0x3ef066={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xdaf75=null;const _0x41afad=[0x0];for(let _0x52f542=0x0;_0x52f542<_0x4a76d3['length'];_0x52f542++)if('elementStart'===_0x4a76d3[_0x52f542]['type']){_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);const _0x197021=new ft(_0x4a76d3[_0x52f542]['item']['name'],_0x4a76d3[_0x52f542]['item']['getAttributes']());_0x4c2644[0x0]['_appendChild'](_0x197021),_0x41afad['push'](0x0),_0x4c2644['unshift'](_0x197021),_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);}else'elementEnd'===_0x4a76d3[_0x52f542]['type']?(_0x4c2644['shift'](),_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0x41afad['pop'](),_0x41afad[_0x41afad['length']-0x1]++,_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad)):(_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0xdaf75?_0xdaf75['_data']+=_0x4a76d3[_0x52f542]['item']['data']:_0xdaf75=new wt(_0x4a76d3[_0x52f542]['item']['data'],_0x4a76d3[_0x52f542]['item']['getAttributes']()),_0x4a76d3[_0x52f542+0x1]&&'text'===_0x4a76d3[_0x52f542+0x1]['type']&&_0x47bc24(_0xdaf75,_0x4a76d3[_0x52f542+0x1]['item'])||(_0x4c2644[0x0]['_appendChild'](_0xdaf75),_0xdaf75=null),_0x41afad[_0x41afad['length']-0x1]+=_0x4a76d3[_0x52f542]['item']['offsetSize'],_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad));for(let _0x3fd02b=0x0;_0x3fd02b<_0x4a76d3['length'];_0x3fd02b++){const _0x3cde4e=_0x4a76d3[_0x3fd02b]['previousPosition'],_0x2d0c92=_0x4a76d3[_0x3fd02b]['nextPosition'];for(const _0x17c234 of _0x4a76d3[_0x3fd02b]['markersStart'])_0x188f7b['set'](_0x17c234,{'start':_0x3cde4e,'end':null});_0xa53845('isRemoveSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAddSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isRemoved',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAdded',_0x3fd02b,_0x3cde4e,_0x2d0c92);for(const _0x4743d2 of _0x4a76d3[_0x3fd02b]['markersEnd']){_0x188f7b['get'](_0x4743d2)['end']=_0x2d0c92;}}for(const [_0x4e800e,_0x4c8bea]of _0x188f7b){const _0x4cb81a=this['editor']['model']['createRange'](_0x4c8bea['start'],_0x4c8bea['end']);_0x402507['markers']['set'](_0x4e800e,_0x4cb81a);}return _0x1871d3['sort']((_0x13c876,_0x5ee4ce)=>{const _0x4ac0fb=_0x402507['markers']['get']('revision:'+_0x13c876['id']),_0x1a7b4b=_0x402507['markers']['get']('revision:'+_0x5ee4ce['id']);return _0x4ac0fb['start']['isBefore'](_0x1a7b4b['start'])?-0x1:_0x4ac0fb['start']['isAfter'](_0x1a7b4b['start'])?0x1:_0x4ac0fb['end']['isBefore'](_0x1a7b4b['end'])?-0x1:_0x4ac0fb['end']['isAfter'](_0x1a7b4b['end'])?0x1:'add'===_0x13c876['type']?-0x1:0x1;}),{'root':_0x402507,'changes':_0x1871d3};function _0xa53845(_0x901214,_0x35b3eb,_0x30898c,_0x308072){const _0x248be3=!!_0x4a76d3[_0x35b3eb][_0x901214],_0xe29d1e=_0x248be3?_0x4a76d3[_0x35b3eb][_0x901214]['userId']:null,_0x3a5769=_0x35b3eb===_0x4a76d3['length']-0x1,_0x26fa3a=_0x3ef066[_0x901214][0x0],_0x543171=_0x463ab2['isObject'](_0x4a76d3[_0x35b3eb]['item']);!_0x307cd1[_0x901214]&&_0x248be3?_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}:_0x307cd1[_0x901214]&&!_0x248be3?(_0x307cd1[_0x901214]['end']=_0x30898c,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null):_0x307cd1[_0x901214]&&_0x248be3&&_0x307cd1[_0x901214]['userId']!==_0xe29d1e&&(_0x307cd1[_0x901214]['end']=_0x30898c,_0x26fa3a&&_0x26fa3a['userId']===_0x307cd1[_0x901214]['userId']||_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}),_0x307cd1[_0x901214]&&_0x543171&&('elementStart'!==_0x4a76d3[_0x35b3eb]['type']||_0x26fa3a&&_0x26fa3a['userId']===_0xe29d1e||_0x3ef066[_0x901214]['unshift']({'userId':_0xe29d1e,'object':_0x4a76d3[_0x35b3eb]['item'],'change':_0x307cd1[_0x901214]}),'elementEnd'===_0x4a76d3[_0x35b3eb]['type']&&_0x26fa3a&&_0x26fa3a['object']===_0x4a76d3[_0x35b3eb]['item']&&(_0x3ef066[_0x901214]['shift'](),_0x307cd1[_0x901214]=_0x26fa3a['change'])),_0x307cd1[_0x901214]&&_0x3a5769&&(_0x307cd1[_0x901214]['end']=_0x308072,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null);}function _0x2c0392({start:_0x526ad1,end:_0x27fcb9,tapeItem:_0x5254b9,userId:_0x2d5fae,type:_0xb7dde4}){const _0x293622=_0x5254b9['item'],_0x29a622=_0x56afb3['schema']['isBlock'](_0x293622)&&!_0x56afb3['schema']['isLimit'](_0x293622),_0x441e25=_0x526ad1['nodeAfter']==_0x27fcb9['parent']&&_0x27fcb9['isAtStart'];if(_0x29a622&&_0x441e25)return;const _0x2052e1=_0x56afb3['createRange'](_0x526ad1,_0x27fcb9),_0x2ba0ca=_0x4812ce['get'](_0x2d5fae),_0x32c47a=new r({'author':_0x2ba0ca,'type':'isAdded'==_0xb7dde4||'isAddSuggestion'==_0xb7dde4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb7dde4||'isRemoveSuggestion'==_0xb7dde4},'createdAt':new Date(),'rootName':_0x42bdb6});_0x1871d3['push'](_0x32c47a),_0x402507['markers']['set']('revision:'+_0x32c47a['id'],_0x2052e1);}function _0x47bc24(_0x23373b,_0x234019){const _0xbe187c=_0x23373b['getAttributes'](),_0x2eb3b4=_0x234019['getAttributes']();for(const _0xa2cfda of _0xbe187c){if(_0xa2cfda[0x1]!==_0x234019['getAttribute'](_0xa2cfda[0x0]))return!0x1;_0x2eb3b4['next']();}return _0x2eb3b4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x57370c=>{const _0x2b0ddc=_0x57370c['markerName']['split'](':')[0x1],_0x16c7de=this['_getChangeFromId'](_0x2b0ddc);if(!_0x16c7de)return null;const _0x3c7622='add'==_0x16c7de['type']?'insertion':'deletion',_0x39d5e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c7622];return _0x16c7de['data']['isSuggestion']&&_0x39d5e7['push']('ck-suggestion-marker-'+_0x3c7622+'-new'),this['activeChange']==_0x16c7de&&_0x39d5e7['push']('ck-suggestion-marker--active'),{'classes':_0x39d5e7,'attributes':{'data-change-id':_0x2b0ddc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x534b5f=>{_0x534b5f['on']('element:pre',(_0x221f0f,_0x1a480a,_0x107fe6)=>{const _0xe2353f=_0x1a480a['viewItem']['getChild'](0x0);if(!_0xe2353f||!_0xe2353f['is']('element','code'))return;if(!_0x107fe6['consumable']['consume'](_0xe2353f,{'attributes':['vid_start','vid_end']}))return;const _0x2e792b=_0x1a480a['modelRange']['start']['nodeAfter'];_0x107fe6['writer']['setAttribute']('vid_start',_0xe2353f['getAttribute']('vid_start'),_0x2e792b),_0x107fe6['writer']['setAttribute']('vid_end',_0xe2353f['getAttribute']('vid_end'),_0x2e792b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x229bf9=>{_0x229bf9['on']('element',(_0x547f3f,_0x46009c,_0x4fca2d)=>{if(!_0x4fca2d['consumable']['consume'](_0x46009c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x46009c['modelRange']['isCollapsed'])return;const _0x5d60f5=_0x46009c['modelRange']['start']['nodeAfter'];_0x5d60f5['hasAttribute']('vid_start')||_0x5d60f5['hasAttribute']('vid')||(_0x4fca2d['writer']['setAttribute']('vid_start',_0x46009c['viewItem']['getAttribute']('vid_start'),_0x5d60f5),_0x4fca2d['writer']['setAttribute']('vid_end',_0x46009c['viewItem']['getAttribute']('vid_end'),_0x5d60f5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x143db0=>_0x143db0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b3410,[,_0x456863])=>{['vid_start','vid_end','vid']['includes'](_0x456863)&&(_0x3b3410['return']=!0x0,_0x3b3410['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x407600=>{_0x407600['on']('attribute:vid',(_0x5b52fe,_0x90c0a8,_0xc6435)=>{if('\x20'!=_0x90c0a8['item']['data']||_0x90c0a8['item']['parent']['maxOffset']>0x1)return;if(!_0xc6435['consumable']['consume'](_0x90c0a8['item'],_0x5b52fe['name']))return;const _0x1950d6=_0xc6435['writer'],_0x1d5181=_0xc6435['mapper']['toViewRange'](_0x90c0a8['range']);_0x1950d6['wrap'](_0x1d5181,_0x1950d6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x394b16){const _0xbb1949=_0x394b16['plugins']['get']('RevisionViewer');return(_0x5bb37e,_0x1e301b,_0x2704a6)=>{const _0x1dacd2=_0x1e301b['markerName']['split'](':')[0x1],_0x11fe52=_0xbb1949['_getChangeFromId'](_0x1dacd2);if(!_0x11fe52)return null;const _0x1f7982='add'==_0x11fe52['type']?'split':'merge';if(!_0x2704a6['consumable']['test'](_0x1e301b['markerRange'],_0x5bb37e['name']))return;const _0x97ed77=_0x1e301b['markerRange']['getWalker'](),_0x41ce85=_0x1e301b['markerRange']['start'],_0x5cd118=_0x394b16['model']['schema'];let _0x413925=null,_0x916c8e=null,_0x2ac79c=!0x1,_0x5cfea7=!0x1;for(const _0x1dd5e1 of _0x97ed77){const _0x199756=_0x1dd5e1['item'];_0x2ac79c=_0x2ac79c||_0x5cd118['isContent'](_0x199756);const _0x5a6928=_0x2704a6['mapper']['toViewElement'](_0x199756);if(_0x5a6928&&_0x5a6928['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1dd5e1['type']&&(_0x5cd118['isBlock'](_0x199756)&&!_0x5cd118['isLimit'](_0x199756)&&(_0x199756['nextSibling']||_0x41ce85['isAtEnd']?_0x413925&&_0x413925['parent']==_0x199756||(_0x413925=_0x199756,_0x248415(_0x1dd5e1['previousPosition']),_0x5cfea7=!0x0):_0x916c8e=_0x916c8e||_0x1dd5e1['previousPosition']));}function _0x248415(_0x461c17){const _0x2a5e9e=_0x2704a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f7982}),_0x30494d=_0x2704a6['mapper']['toViewPosition'](_0x461c17);_0x11fe52['data']['isSuggestion']&&_0x2704a6['writer']['addClass']('ck-suggestion-marker-'+_0x1f7982+'-new',_0x2a5e9e),_0xbb1949['activeChange']==_0x11fe52&&_0x2704a6['writer']['addClass']('ck-suggestion-marker--active',_0x2a5e9e),_0x2704a6['writer']['insert'](_0x30494d,_0x2a5e9e),_0x2704a6['mapper']['bindElementToMarker'](_0x2a5e9e,_0x1e301b['markerName']);}_0x2ac79c||_0x5cfea7||!_0x916c8e||_0x248415(_0x916c8e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x41eaa4,_0x3e6945,_0x534976)=>{const _0x268634=_0x534976['mapper']['markerNameToElements'](_0x3e6945['markerName']);if(_0x268634){for(const _0x172435 of _0x268634)(_0x172435['hasClass']('ck-suggestion-marker-split')||_0x172435['hasClass']('ck-suggestion-marker-merge'))&&(_0x534976['mapper']['unbindElementFromMarkerName'](_0x172435,_0x3e6945['markerName']),_0x534976['writer']['remove'](_0x172435));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x137a9e,_0x52b955,_0x422a30)=>{const _0x2997d2=_0x52b955['markerName']['split'](':')[0x1],_0x1999f8=this['_getChangeFromId'](_0x2997d2);if(!_0x1999f8)return null;const _0x6f4801='add'==_0x1999f8['type']?'split':'merge';if(_0x422a30['consumable']['test'](_0x52b955['markerRange'],_0x137a9e['name']))for(const _0x31f1bd of _0x52b955['markerRange']['getItems']()){if(!_0x31f1bd['is']('element','softBreak'))continue;const _0xc067ac=_0x422a30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6f4801}),_0x1ad713=_0x422a30['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x31f1bd));_0x1999f8['data']['isSuggestion']&&_0x422a30['writer']['addClass']('ck-suggestion-marker-'+_0x6f4801+'-new',_0xc067ac),this['activeChange']==_0x1999f8&&_0x422a30['writer']['addClass']('ck-suggestion-marker--active',_0xc067ac),_0x422a30['writer']['insert'](_0x1ad713,_0xc067ac),_0x422a30['mapper']['bindElementToMarker'](_0xc067ac,_0x52b955['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x17187d=>{for(const _0x2aea47 of this['editor']['model']['document']['getRootNames']()){const _0x50cc26=this['editor']['model']['document']['getRoot'](_0x2aea47),_0x214c44=this['editor']['editing']['view']['document']['getRoot'](_0x2aea47);if(_0x214c44){const _0x36aabc=_0x50cc26['getAttribute']('revisionHistoryAttachChange');if(_0x17187d['removeAttribute']('data-change-id',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-add',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-remove',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root--active',_0x214c44),_0x36aabc){const _0x16b0e6=this['_getChangeFromId'](_0x36aabc);if(!_0x16b0e6)return null;_0x17187d['setAttribute']('data-change-id',_0x36aabc,_0x214c44),_0x17187d['addClass']('ck-revision-history-root-'+_0x16b0e6['type'],_0x214c44),this['activeChange']==_0x16b0e6&&_0x17187d['addClass']('ck-revision-history-root--active',_0x214c44);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x207523=>'revision-comment:'+_0x207523,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x49d307=>'revision-suggestion:'+_0x49d307,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3b8e30=>({'name':'suggestion:'+_0x3b8e30,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x341c71=>{const _0x33d46e=_0x341c71['markerName']['split'](':')[0x1];return'insertion'!=_0x33d46e&&'deletion'!=_0x33d46e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x33d46e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54244c,_0x2a5a65,_0x1d413d)=>{const _0x20715a=_0x1d413d['mapper']['markerNameToElements'](_0x2a5a65['markerName']);if(_0x20715a){for(const _0x403735 of _0x20715a)_0x403735['is']('uiElement')&&(_0x1d413d['mapper']['unbindElementFromMarkerName'](_0x403735,_0x2a5a65['markerName']),_0x1d413d['writer']['remove'](_0x403735));}},{'priority':'high'});}['_getChangeFromId'](_0x381035){return this['_changeIdToChange']['get'](_0x381035);}['_getViewForChange'](_0x589ebb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x589ebb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x320b3b,_0x322c2d,_0x21637f,_0x51e74a)=>{_0x51e74a&&this['_balloon']['remove'](_0x51e74a),_0x21637f&&(this['_balloon']['add']({'view':_0x21637f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c1595=this['editor']['editing'],_0x2ca1e2=this['_getChangeFromId'](_0x21637f['changeId']);let _0x271c2f;if(_0x2ca1e2['data']['isOnRoot']){const _0x202961=_0x2c1595['view']['getDomRoot'](_0x2ca1e2['rootName']);_0x271c2f=Array['from'](_0x202961['getClientRects']());}else{const _0x3371d1=this['editor']['model']['markers']['get']('revision:'+_0x21637f['changeId']);_0x271c2f=Array['from'](_0x2c1595['mapper']['markerNameToElements'](_0x3371d1['name']))['map'](_0xdbeb2d=>_0x2c1595['view']['domConverter']['mapViewToDom'](_0xdbeb2d))['map'](_0xf2333d=>Array['from'](_0xf2333d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x271c2f[0x0];return _0x271c2f['find'](_0xeea292=>_0xeea292['top']-0x3<=this['_activeViewTarget']['y']&&_0xeea292['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeea292['left']-0x3<=this['_activeViewTarget']['x']&&_0xeea292['right']+0x3>=this['_activeViewTarget']['x'])||_0x271c2f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xa659aa,_0x5e7b06,_0x1bc497,_0x29b467)=>{this['activeView']=_0x1bc497?this['_getViewForChange'](_0x1bc497):null,this['editor']['model']['change'](()=>{const _0x36bf6f=this['editor']['editing'];_0x29b467&&(_0x29b467['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x4d8d2d=>{_0x4d8d2d['removeClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x29b467['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x29b467['id'])),_0x1bc497&&(_0x1bc497['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x3c7910=>{_0x3c7910['addClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x1bc497['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x1bc497['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x23f074,_0x567bf0)=>{if(this['activeChange'])return;const _0x563303=this['_findChangeIdFromDomTarget'](_0x567bf0['target']),_0x52e247=this['_changeIdToChange']['get'](_0x563303);_0x52e247?(this['_activeViewTarget']={'x':_0x567bf0['domEvent']['x'],'y':_0x567bf0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x52e247)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x43619e,_0x2b2476)=>{const _0x4227e5=this['_findChangeIdFromDomTarget'](_0x2b2476['target']),_0x2c8462=this['_changeIdToChange']['get'](_0x4227e5);_0x2c8462?(this['_activeViewTarget']={'x':_0x2b2476['domEvent']['x'],'y':_0x2b2476['domEvent']['y']},_0x2c8462===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c8462):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52b8ec){do{const _0x129e80=_0x52b8ec['getAttribute']('data-change-id');if(_0x129e80)return _0x129e80;_0x52b8ec=_0x52b8ec['parent'];}while(_0x52b8ec);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x20cdd4=>{for(const _0x559b4c of this['editor']['model']['markers'])_0x20cdd4['removeMarker'](_0x559b4c);});}}function Z(_0x2ac33b,_0x518be2){return(_0x59c9ff,_0x35211d,_0x25652a)=>{if(!_0x25652a['consumable']['test'](_0x35211d['markerRange'],_0x59c9ff['name']))return;const _0x4a7e6d=_0x35211d['markerRange']['getWalker'](),_0x3f0e5f=_0x35211d['markerRange']['start'],_0x58e7bb=_0x2ac33b['model']['schema'];let _0x434593=null,_0x575d00=null,_0xd4bfc8=!0x1,_0x28ce9d=!0x1;for(const _0x4ba0cd of _0x4a7e6d){const _0xa76e87=_0x4ba0cd['item'];_0xd4bfc8=_0xd4bfc8||_0x58e7bb['isContent'](_0xa76e87);const _0x35a513=_0x25652a['mapper']['toViewElement'](_0xa76e87);if(_0x35a513&&_0x35a513['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ba0cd['type']&&(_0x58e7bb['isBlock'](_0xa76e87)&&!_0x58e7bb['isLimit'](_0xa76e87)&&(_0xa76e87['nextSibling']||_0x3f0e5f['isAtEnd']?_0x434593&&_0x434593['parent']==_0xa76e87||(_0x434593=_0xa76e87,_0x4652b9(_0x4ba0cd['previousPosition']),_0x28ce9d=!0x0):_0x575d00=_0x575d00||_0x4ba0cd['previousPosition']));}function _0x4652b9(_0x1345d7){const _0x1db31a=_0x25652a['mapper']['toViewPosition'](_0x1345d7),_0x2f28ca=_0x25652a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x518be2});_0x25652a['writer']['insert'](_0x1db31a,_0x2f28ca),_0x25652a['mapper']['bindElementToMarker'](_0x2f28ca,_0x35211d['markerName']);}_0xd4bfc8||_0x28ce9d||!_0x575d00||_0x4652b9(_0x575d00);};}class pt extends _0x1d782e{constructor(_0xd3d341){super(_0xd3d341);const _0x4d8545=_0xd3d341['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4d8545,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d8545,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x352074=this['editor'],_0x2f20b9=_0x352074['plugins']['get'](d),_0xca07d8=_0x2f20b9['isReady']?_0x2f20b9['diff']['newRevisionId']:null;_0x352074['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xca07d8);}['refresh'](){const {isReady:_0x5c612b,isEnabled:_0x4e8870,repository:_0x5c35f7,diff:_0x26be50}=this['editor']['plugins']['get'](d),_0x347a9b=_0x26be50&&_0x5c35f7['getLaterVisibleRevision'](_0x26be50['newRevisionId']);this['isEnabled']=_0x5c612b&&_0x4e8870&&Boolean(_0x347a9b);}}class _t extends _0x1d782e{['_step'];constructor(_0x376db5,{direction:_0x1aafb3}){super(_0x376db5);const _0x427924=_0x376db5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1aafb3?0x1:-0x1,this['listenTo'](_0x427924,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x427924,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x427924,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x382d9d=this['editor'],_0x23cf60=_0x382d9d['plugins']['get'](d),{isNavigationMode:_0x599db7,currentChangeNumber:_0x1b4f47}=_0x23cf60;let _0x2319bc;if(_0x23cf60['activeChange']=_0x599db7?_0x23cf60['diff']['changes']['get'](_0x1b4f47+this['_step']):_0x23cf60['diff']['changes']['first'],_0x23cf60['activeChange']['data']['isOnRoot'])_0x2319bc=_0x382d9d['editing']['view']['getDomRoot'](_0x23cf60['activeChange']['rootName']);else{const _0x3e6fc6=_0x382d9d['model']['markers']['get']('revision:'+_0x23cf60['activeChange']['id']);_0x2319bc=_0x40ad99(_0x382d9d['editing'],_0x3e6fc6);}_0x170d53({'target':_0x2319bc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1e1839,currentChangeNumber:_0x25a4f1,numberOfChanges:_0x4c3fd6,isReady:_0x3992ac,isEnabled:_0x1a3f9c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a3f9c&&_0x3992ac&&_0x4c3fd6)&&(!_0x1e1839||(0x1===this['_step']?_0x25a4f1<_0x4c3fd6-0x1:_0x25a4f1>0x0));}}class li extends ts{constructor(_0x10d957){super(_0x10d957);const _0x25118c=this['bindTemplate'],_0x4e45bf=new te(_0x10d957),_0x39e6fd=new te(_0x10d957);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',(_0x477902,_0x312e00)=>_0x477902&&_0x312e00>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x332bb3,_0x401d5e,_0x44dba7,_0x1c6004)=>{if(!_0x332bb3)return m(_0x10d957,'Loading...');if(!_0x44dba7)return m(_0x10d957,'No\x20changes');const _0x56671a=m(_0x10d957,'NUMBER_OF_CHANGES',_0x44dba7);return _0x1c6004?m(_0x10d957,'X_OF_Y_CHANGES',[_0x401d5e+0x1,_0x44dba7]):_0x56671a;}),_0x4e45bf['set']({'label':m(_0x10d957,'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'}),_0x39e6fd['set']({'label':m(_0x10d957,'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'}),_0x4e45bf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x39e6fd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e45bf['on']('execute',()=>this['fire']('execute','backward')),_0x39e6fd['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',_0x25118c['if']('_isStatusLabelVisible','ck-hidden',_0x59dd6d=>!_0x59dd6d)]},'children':[{'text':_0x25118c['to']('isNavigationMode',_0x54d895=>_0x54d895?m(_0x10d957,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x10d957,'Total')+':\x20')}]},{'text':_0x25118c['to']('_statusText')}]},new _0x4101c0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e45bf,_0x39e6fd]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1420a4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3714c7=this['editor']['editing']['view'];_0x3714c7['change'](_0x964742=>{for(const _0xe05202 of _0x3714c7['document']['roots'])_0x964742['addClass'](le,_0xe05202);});}['hide'](){const _0x2d360c=this['editor']['editing']['view'];_0x2d360c['change'](_0x53f9ea=>{for(const _0x52569d of _0x2d360c['document']['roots'])_0x53f9ea['removeClass'](le,_0x52569d);});}}class g extends _0x1420a4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x56b112=this['editor'],_0x39f179=_0x56b112['plugins']['get'](d),_0x25d734=_0x56b112['plugins']['get'](ge);_0x56b112['ui']['componentFactory']['add']('exitToEditing',_0x538dd1=>{const _0x39be8f=new te(_0x538dd1);return _0x39be8f['set']({'label':m(_0x538dd1,'Back\x20to\x20editing'),'icon':_0x247700['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39be8f,'execute',()=>{_0x56b112['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39be8f;}),_0x56b112['ui']['componentFactory']['add']('restoreRevision',_0x2618bb=>{const _0x1612d4=new te(_0x2618bb);return _0x1612d4['set']({'label':m(_0x2618bb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1612d4['bind']('isEnabled')['to'](_0x56b112['commands']['get']('restoreRevision')),this['listenTo'](_0x1612d4,'execute',()=>_0x56b112['execute']('restoreRevision')),_0x1612d4;}),_0x56b112['ui']['componentFactory']['add']('changesNavigation',_0x201032=>{const _0x29709b=new li(_0x201032),_0x4a0c5a=_0x56b112['commands']['get']('showPreviousChange'),_0x5777d8=_0x56b112['commands']['get']('showNextChange');return _0x29709b['bind']('isBackwardNavigationEnabled')['to'](_0x4a0c5a,'isEnabled'),_0x29709b['bind']('isForwardNavigationEnabled')['to'](_0x5777d8,'isEnabled'),_0x29709b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39f179),this['listenTo'](_0x29709b,'execute',(_0x1667ad,_0x5dabb8)=>{_0x56b112['execute']('forward'===_0x5dabb8?'showNextChange':'showPreviousChange');}),_0x29709b;}),_0x25d734['show'](),_0x39f179['on']('change:isReady',(_0x45b833,_0x2c424c,_0x566408)=>{_0x566408?_0x25d734['hide']():_0x25d734['show']();});}}class at extends _0xe538c1{['_resizeObserver']=null;constructor(_0x4b9198,_0x3662db){super(_0x4b9198,_0x3662db);const _0x23147c=this['bindTemplate'];this['set']({'label':m(_0x4b9198,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4b9198,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x23147c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5e25ca=this['fieldView']['element'];this['_tooltipString']=_0x5e25ca['scrollWidth']>_0x5e25ca['clientWidth']&&_0x5e25ca['value']||'';}}class ri extends ts{constructor(_0x482a4e,_0x521360,_0x67e42a){super(_0x482a4e);const _0x27e2df=new _0x151b45();_0x27e2df['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 _0x1a131f=['ck','ck-revision-history-sidebar__revision-author'];_0x67e42a&&_0x1a131f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2419ee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x482a4e,_0x67e42a?'Revision\x20creator':'Revision\x20author')},'children':[_0x27e2df,_0x521360['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1a131f},'children':_0x2419ee});}}function oi(_0x58a4f0,_0x1f81b4){const _0xc8a8ee=_0x58a4f0['bindTemplate'],_0x1a22e0=_0x58a4f0['locale'],_0x626e70=_0x1e0a60(_0x1a22e0);_0x626e70['panelPosition']='sw';const _0x1a9d37=function(_0x3cc103,_0x4884de){const _0x596780=function(_0x26d074,_0x283996){const _0x12e8b1=_0x26d074['locale'],_0x219ca1={'Compare\x20against\x20selected':m(_0x12e8b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12e8b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12e8b1,'Restore\x20this\x20revision')};return _0x283996['map'](_0x3a629e=>{const _0x24ac03=_0x219ca1[_0x3a629e['name']];return _0x24ac03&&_0x24ac03!==_0x3a629e['name']&&(_0x3a629e['name']=_0x24ac03),_0x3a629e;});}(_0x3cc103,_0x4884de),_0x9adb05=new _0xcf6e93();for(const _0x3f69a1 of _0x596780){const _0x1ccbbb={'type':'button','model':new _0x58fc48({'label':_0x3f69a1['name'],'class':_0x3f69a1['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f69a1['action']})};_0x1ccbbb['model']['bind']('isEnabled')['to'](_0x3cc103,'isActionsDropdownOpen',_0x271e33=>'function'!=typeof _0x3f69a1['isEnabled']||(!_0x271e33||_0x3f69a1['isEnabled'](_0x3cc103))),_0x9adb05['add'](_0x1ccbbb);}return _0x9adb05;}(_0x58a4f0,_0x1f81b4);return _0x58a4f0['bind']('isActionsDropdownOpen')['to'](_0x626e70,'isOpen'),_0x626e70['buttonView']['set']({'label':m(_0x1a22e0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x247700['threeVerticalDots']}),_0x626e70['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xc8a8ee['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xc8a8ee['to'](_0x40523e=>_0x40523e['stopPropagation']())}}),_0x626e70['on']('execute',_0x218b5c=>{_0x58a4f0['isReady']&&'function'==typeof _0x218b5c['source']['_action']&&_0x218b5c['source']['_action'](_0x58a4f0);}),to(_0x626e70,_0x1a9d37,{'role':'menu'}),_0x626e70['listenTo'](_0x58a4f0,'change:isActionsDropdownOpen',(_0x2b09aa,_0x3fb6c3,_0x14f488)=>{if(_0x14f488)for(const _0x20f60c of _0x626e70['listView']['items']){const _0x22bc47=_0x20f60c['children']['first'],_0xc7d649=_0x1f81b4['find'](_0x13f3f6=>_0x13f3f6['action']===_0x22bc47['_action'])['isVisible'];_0x20f60c['isVisible']=void 0x0===_0xc7d649||_0xc7d649(_0x58a4f0);}}),_0x626e70;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c1d09,_0x1b1187,_0xc7ea7f,_0x3f4c47){super(_0x2c1d09);const _0x1b3578=this['bindTemplate'],_0x2c9766=function(_0x1e4440,_0x38bd8f){const _0x404880=Array['from'](_0x38bd8f['authors'])['filter'](_0x5665b2=>_0x5665b2!=_0x38bd8f['creator']);return _0x38bd8f['creator']&&_0x404880['unshift'](_0x38bd8f['creator']),_0x404880['map'](_0x2b247f=>new ri(_0x1e4440,_0x2b247f,_0x2b247f==_0x38bd8f['creator']));}(_0x2c1d09,_0x1b1187);this['id']=_0x1b1187['id'],this['_revision']=_0x1b1187,this['_requireRevisionName']=_0x3f4c47,this['bind']('name','createdAt')['to'](_0x1b1187),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x22a0cb=>{return _0x48566e=_0x2c1d09['uiLanguage'],(_0xa5db0a=_0x22a0cb)['toLocaleDateString'](_0x48566e,{'month':'long','day':'numeric'})+',\x20'+_0xa5db0a['toLocaleTimeString'](_0x48566e,{'hour':'numeric','minute':'numeric'});var _0x48566e,_0xa5db0a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2c1d09,_0x368611),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x362f54=>_0x362f54||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3efb5f,_0x5459f5)=>_0x3efb5f&&_0x5459f5),this['revisionActionsView']=_0xc7ea7f&&_0xc7ea7f['length']?oi(this,_0xc7ea7f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b3578['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b3578['if']('isEnabled','ck-disabled',_0xf16000=>!_0xf16000),_0x1b3578['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b3578['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b3578['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':_0x1b3578['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':_0x2c9766}]},this['revisionActionsView']],'on':{'click':_0x1b3578['to'](_0x5e90e9=>{_0x5e90e9['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x429017=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x429017,'change',()=>{this['_requireRevisionName']&&!_0x429017['value']||this['fire']('setName',{'id':this['id'],'name':_0x429017['value']}),_0x429017['value']||(_0x429017['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x16e4bc,_0x1fe900){const _0x136312=_0xd4c326['fromJSDate'](_0x16e4bc)['setLocale'](_0x1fe900),_0x48f46f=_0xd4c326['local'](),_0x4ca31c=_0x48f46f['minus']({'days':0x1})['startOf']('day');let _0x5bc7de,_0x5331e6;return _0x136312['hasSame'](_0x48f46f,'day')?(_0x5bc7de=_0x136312['startOf']('day')['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x4ca31c,'day')?(_0x5bc7de=_0x4ca31c['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x48f46f,'week')?(_0x5bc7de=_0x136312['startOf']('week')['toJSDate'](),_0x5331e6=_0x136312['weekdayLong']||''):_0x136312['hasSame'](_0x48f46f,'year')?(_0x5bc7de=_0x136312['startOf']('month')['toJSDate'](),_0x5331e6=_0x136312['monthLong']||''):(_0x5bc7de=_0x136312['startOf']('year')['toJSDate'](),_0x5331e6=String(_0x136312['year'])),{'startDate':_0x5bc7de,'localizedPeriodName':_0x5331e6};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b6810,_0x1a3257,_0x56e0a6,_0x35f40b){super(_0x4b6810);const _0x4f0123=ci(_0x1a3257,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a3257,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56e0a6,this['_requireRevisionName']=_0x35f40b,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':_0x4f0123}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56d7d2){const _0x4c60e7=new hi(this['locale'],_0x56d7d2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4c60e7);}['removeRevision'](_0x69c5e8){const _0xe16800=this['revisionViews']['find'](_0x198fca=>_0x198fca['id']===_0x69c5e8['id']);this['revisionViews']['remove'](_0xe16800);}}class as extends ts{constructor(_0x40b8f7){super(_0x40b8f7);const _0x360ec6=new _0x151b45();_0x360ec6['content']=_0x247700['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x360ec6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x40b8f7,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x511122,_0x2212b8,_0x3c99b4,_0x3b0e46){super(_0x511122);const _0x571a53=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2212b8,this['_revisionActions']=_0x3c99b4,this['_requireRevisionName']=_0x3b0e46,this['on']('select',(_0x59d5c3,_0x22b63d)=>{this['fire']('revisionSelected',_0x22b63d);}),this['on']('setName',(_0x3fdf7c,_0x3c4222)=>{this['fire']('revisionSetName',_0x3c4222);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x511122),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x571a53['if']('isEnabled','ck-disabled',_0x57e0ed=>!_0x57e0ed)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2866cf of this['_revisions'])this['_addRevision'](_0x2866cf);this['_revisions']['on']('add',(_0x4cd7ff,_0x1acbf0)=>{this['_addRevision'](_0x1acbf0);}),this['_revisions']['on']('remove',(_0x18f72b,_0x253928)=>{this['_removeRevision'](_0x253928);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1857d1=>_0x1857d1['revisionViews']['map'](_0x1b6da3=>_0x1b6da3))['flat']();}['selectRevision'](_0x562b0a){for(const _0xb90707 of this['revisionViews'])_0x562b0a&&_0x562b0a['id']===_0xb90707['id']?_0xb90707['select']():_0xb90707['deselect']();}['highlightRevisions'](_0x27f4f3){for(const _0x2cb8b4 of this['revisionViews'])_0x27f4f3['some'](({id:_0x4c2998})=>_0x4c2998===_0x2cb8b4['id'])?_0x2cb8b4['highlight']():_0x2cb8b4['unhighlight']();}['_addRevision'](_0x53d901){const _0x449c68=ci(_0x53d901['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xa9319a=this['timePeriodViews']['get'](0x0);_0xa9319a&&_0xa9319a['startDate']['getTime']()===_0x449c68['getTime']()||(_0xa9319a=new ai(this['locale'],_0x449c68,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xa9319a)),_0xa9319a['addRevision'](_0x53d901);}['_removeRevision'](_0x33ca8f){const _0x3f48be=ci(_0x33ca8f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3f48be)['removeRevision'](_0x33ca8f);}['_getTimePeriodViewByStartDate'](_0x4d3ac1){return this['timePeriodViews']['find'](_0x5835e0=>_0x5835e0['startDate']['getTime']()===_0x4d3ac1['getTime']());}}class w extends _0x1420a4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5ebb27,uid as _0x1b3a3e,Collection as _0x5f5425,logWarning as _0x5bb00a,FocusTracker as _0x57f538,KeystrokeHandler as _0x504d02,scrollViewportToShowTarget as _0x147afe,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x139db2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x499bbe,set as _0x46e019,unset as _0x10e4c5,isEqual as _0x529be5}from'lodash-es';import{Plugin as _0x6bed98,PendingActions as _0x525a0f,icons as _0x126d4c,Command as _0x55dd17,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x352545,getMarkerDomElement as _0x124362,ConfirmMixin as _0x3e72a3,sanitizeEditorConfig as _0x40e01e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a0796,Element as ft,Range as vt,ViewUIElement as _0x53704a,ViewRawElement as _0x51bf7b,ViewEmptyElement as _0x30291d,ViewAttributeElement as _0x10825d,ViewContainerElement as _0x2b4d2b,Position as gt,ViewText as _0x4e03fb,ViewElement as _0x590a2d,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5a1faf,injectCssTransitionDisabler as ts,submitHandler as _0x474fb9,LabeledFieldView as nt,createLabeledInputText as _0x55e9d8,createDropdown as _0x486d6d,ListView as te,ListItemView as _0x2b8e31,ButtonView as _0x121871,MenuBarMenuView as _0x54193d,MenuBarMenuListView as _0x2645eb,MenuBarMenuListItemView as _0x1f2b0c,MenuBarMenuListItemButtonView as _0x4b8edf,ContextualBalloon as _0x39c52d,ToolbarSeparatorView as _0x826a80,IconView as _0x4e9552,addListToDropdown as _0x4243bd,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x207f94}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5ebb27(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5128fb){super(),this['id']=_0x5128fb['id']||_0x1b3a3e(),this['creator']=_0x5128fb['creator']||null,this['authors']=_0x5128fb['authors']||[],this['diffData']=_0x5128fb['diffData']||null,this['toVersion']=_0x5128fb['toVersion']||0x0,this['fromVersion']=_0x5128fb['fromVersion']||0x0,this['set']('name',_0x5128fb['name']||''),this['set']('createdAt',_0x5128fb['createdAt']||new Date()),this['set']('attributes',_0x5128fb['attributes']||{});}['setName'](_0x4e0973){this['_update']({'name':_0x4e0973});}['setAttribute'](_0x3ce829,_0x208026){const _0x19a17f=_0x499bbe(this['attributes']);_0x46e019(_0x19a17f,_0x3ce829,_0x208026),this['_update']({'attributes':_0x19a17f});}['removeAttribute'](_0x10c282){const _0x43de13=_0x499bbe(this['attributes']);_0x10e4c5(_0x43de13,_0x10c282),this['_update']({'attributes':_0x43de13});}['_update'](_0x48a6c5,_0x30f42b=!0x1){let _0x17b599=!0x1;const _0x90e893={'id':this['id']},_0x70dcfc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x22e2f1 of _0x70dcfc){const _0x421dfc=_0x48a6c5[_0x22e2f1];void 0x0!==_0x421dfc&&_0x421dfc!==this[_0x22e2f1]&&(this[_0x22e2f1]=_0x421dfc,_0x90e893[_0x22e2f1]=_0x421dfc,_0x17b599=!0x0);}_0x17b599&&(_0x90e893['authors']&&(_0x90e893['authorsIds']=_0x90e893['authors']['map'](_0x1ede3a=>_0x1ede3a['id']),delete _0x90e893['authors']),this['fire']('_update',_0x90e893,_0x30f42b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x560f8b=>_0x560f8b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x6bed98{['_revisions'];static get['requires'](){return[_0x352545];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x57e77f){super(_0x57e77f),this['_revisions']=new _0x5f5425();}['afterInit'](){!async function(_0x400dc9){const _0x1fa05b=_0x1175ca([0x6b,0x41,0x34,0x51,0x67,0x62,0x72,0x4a,0x31,0x30,0x52,0x32,0x79,0x70,0x55,0x57,0x4b,0x44,0x74,0x77,0x46,0x61,0x43,0x37,0x73,0x5a,0x68,0x6d,0x56,0x4c,0x47,0x63,0x4f,0x42,0x76,0x49,0x33,0x38,0x50,0x6a,0x69,0x75,0x45,0x6e,0x71,0x78,0x4d,0x66,0x7a,0x54,0x65,0x39,0x59,0x64,0x6f,0x35,0x4e,0x58,0x6c,0x53,0x48,0x36]),_0x33e633=0xeb829,_0x52d726=0xa743fcd,_0x1879e4=0xa735f35^_0x52d726,_0x2b349e=window[_0x1175ca([0x44,0x61,0x74,0x65])][_0x1175ca([0x6e,0x6f,0x77])](),_0x12d0e0=_0x400dc9[_0x1175ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16df46=new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d800a=>{_0x12d0e0[_0x1175ca([0x6f,0x6e,0x63,0x65])](_0x1175ca([0x72,0x65,0x61,0x64,0x79]),_0x4d800a);}),_0x5b1839={[_0x1175ca([0x6b,0x74,0x79])]:_0x1175ca([0x45,0x43]),[_0x1175ca([0x75,0x73,0x65])]:_0x1175ca([0x73,0x69,0x67]),[_0x1175ca([0x63,0x72,0x76])]:_0x1175ca([0x50,0x2d,0x32,0x35,0x36]),[_0x1175ca([0x78])]:_0x1175ca([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]),[_0x1175ca([0x79])]:_0x1175ca([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]),[_0x1175ca([0x61,0x6c,0x67])]:_0x1175ca([0x45,0x53,0x32,0x35,0x36])},_0x834b1=_0x12d0e0[_0x1175ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1175ca([0x67,0x65,0x74])](_0x1175ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ab53b(){let _0x3ae00f,_0x4d5759=null,_0x17294e=null;try{if(_0x834b1==_0x1175ca([0x47,0x50,0x4c]))return _0x1175ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ae00f=_0x4fb7ac(),!_0x3ae00f)return _0x1175ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ae00f[_0x1175ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17294e=_0x109aa3(_0x3ae00f[_0x1175ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ae00f[_0x1175ca([0x6a,0x74,0x69])])),await _0x25b42c()?_0x1ac48a()?_0x55ff64()?_0x1175ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d3cbf()?(_0x3ae00f[_0x1175ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1175ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5759=_0x3a0b6d(_0x1175ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ae00f[_0x1175ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1175ca([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5759=_0x3a0b6d(_0x1175ca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26f3b8()):_0x1175ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1175ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1175ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x494376){return _0x1175ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55ff64(){const _0xbfba8b=[_0x1175ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1175ca([0x74,0x72,0x69,0x61,0x6c])][_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae00f[_0x1175ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b349e/0x3e8:0xe10*_0x1879e4;return _0x3ae00f[_0x1175ca([0x65,0x78,0x70])]<_0xbfba8b;}function _0x1ac48a(){const _0x496de5=_0x3ae00f[_0x1175ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x496de5)return!0x1;if(_0x496de5[_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1175ca([0x2a])))return!0x0;if(_0x496de5[_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1175ca([0x52,0x48])))return!0x0;if(_0x496de5[_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1175ca([0x52,0x52,0x48]))){if(_0x2913a5())return!0x0;if(_0x42c871()||_0x559b7d())return!0x0;}return!0x1;}function _0x5d3cbf(){const _0x1fd8d3=_0x3ae00f[_0x1175ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd8d3||0x0==_0x1fd8d3[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a66ca}=new URL(window[_0x1175ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd8d3[_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a66ca))return!0x0;const _0x4581d2=_0x4a66ca[_0x1175ca([0x73,0x70,0x6c,0x69,0x74])](_0x1175ca([0x2e]));return _0x1fd8d3[_0x1175ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9888=>_0x2c9888[_0x1175ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1175ca([0x2a])))[_0x1175ca([0x6d,0x61,0x70])](_0x2bd963=>_0x2bd963[_0x1175ca([0x73,0x70,0x6c,0x69,0x74])](_0x1175ca([0x2e])))[_0x1175ca([0x73,0x6f,0x6d,0x65])](_0x3b37e7=>_0x4581d2[_0x1175ca([0x65,0x76,0x65,0x72,0x79])]((_0x3fdf5c,_0x5c2299)=>_0x3b37e7[_0x5c2299]===_0x3fdf5c||_0x3b37e7[_0x5c2299]===_0x1175ca([0x2a])));}function _0x26f3b8(){return _0x4d5759&&_0x17294e?new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14b5db,_0x38e4e3)=>{_0x4d5759[_0x1175ca([0x74,0x68,0x65,0x6e])](_0x14b5db,_0x38e4e3),_0x17294e[_0x1175ca([0x74,0x68,0x65,0x6e])](_0x22163d=>{_0x22163d!=_0x1175ca([0x56,0x61,0x6c,0x69,0x64])&&_0x14b5db(_0x22163d);},_0x38e4e3);}):_0x4d5759||_0x17294e||_0x1175ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x109aa3(_0x3f127c,_0x579722){return new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c942f=>{if(_0x1b63d9())return _0x3c942f(_0x1175ca([0x56,0x61,0x6c,0x69,0x64]));_0x2cbeaf(),_0x12d0e0[_0x1175ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1175ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39e5a7=!0x1;const _0x586cb0=_0x1b3a3e();function _0x5b7d1a(_0x251aca){return!!_0x251aca&&(typeof _0x251aca===_0x1175ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x251aca===_0x1175ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x251aca[_0x1175ca([0x74,0x68,0x65,0x6e])]===_0x1175ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x251aca[_0x1175ca([0x63,0x61,0x74,0x63,0x68])]===_0x1175ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x217313(_0x46e287){_0x3b1a2b(_0x46e287)[_0x1175ca([0x74,0x68,0x65,0x6e])](_0x2c2025=>{if(!_0x2c2025||_0x2c2025[_0x1175ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1175ca([0x6f,0x6b]))return _0x1175ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a8ec3(_0x1d0e56(_0x586cb0+_0x579722))!=_0x2c2025[_0x1175ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1175ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1175ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x1175ca([0x74,0x68,0x65,0x6e])](_0x423f73=>(_0x55b803(),_0x423f73),()=>{const _0x388600=_0x398538();return null==_0x388600?(_0x55b803(),_0x1175ca([0x56,0x61,0x6c,0x69,0x64])):_0x1175ca(_0x2b349e-_0x388600>(0x2e78bbcd^_0x52d726)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1175ca([0x74,0x68,0x65,0x6e])](_0x3c942f)[_0x1175ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c942f(_0x1175ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34ebf4=0xa42d14d^_0x52d726;function _0x55b803(){const _0x593ccd=_0x1175ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8ec3(_0x1d0e56(_0x3f127c)),_0x2d0490=_0x49a4b3(_0x5a8ec3(window[_0x1175ca([0x4d,0x61,0x74,0x68])][_0x1175ca([0x63,0x65,0x69,0x6c])](_0x2b349e/_0x34ebf4)));window[_0x1175ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1175ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x593ccd,_0x2d0490);}function _0x398538(){const _0x3aab8e=_0x1175ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8ec3(_0x1d0e56(_0x3f127c)),_0x4a175d=window[_0x1175ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1175ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3aab8e);return _0x4a175d?window[_0x1175ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49a4b3(_0x4a175d),0x10)*_0x34ebf4:null;}function _0x3b1a2b(_0x2f26bb){return new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf89c2e,_0xf17c45)=>{_0x2f26bb[_0x1175ca([0x74,0x68,0x65,0x6e])](_0xf89c2e,_0xf17c45),window[_0x1175ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf17c45,0xa75eb0d^_0x52d726);});}}_0x12d0e0[_0x1175ca([0x6f,0x6e])](_0x1175ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43a4c3,_0x565c1b)=>{if(_0x565c1b[0x0]!=_0x3f127c)return _0x3c942f(_0x1175ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x565c1b[0x1]={..._0x565c1b[0x1],[_0x1175ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586cb0};},{[_0x1175ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1175ca([0x68,0x69,0x67,0x68])}),_0x12d0e0[_0x1175ca([0x6f,0x6e])](_0x1175ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x257023=>{_0x5b7d1a(_0x257023[_0x1175ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39e5a7=!0x0,_0x217313(_0x257023[_0x1175ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1175ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1175ca([0x6c,0x6f,0x77])}),_0x16df46[_0x1175ca([0x74,0x68,0x65,0x6e])](()=>{_0x39e5a7||_0x3c942f(_0x1175ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b63d9(){return _0x12d0e0[_0x1175ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1175ca([0x76,0x69,0x65,0x77])][_0x1175ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1175ca([0x61,0x75,0x74,0x6f]);}function _0x2cbeaf(){_0x12d0e0[_0x1175ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1175ca([0x76,0x69,0x65,0x77])][_0x1175ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1175ca([0x61,0x75,0x74,0x6f]);}}function _0x3a0b6d(_0xbad295){const _0x1fe205=[new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd7064d=>setTimeout(_0xd7064d,0xa7d0101^_0x52d726)),_0x16df46[_0x1175ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0e16=>{const _0x2aabde=0xa743fca^_0x52d726,_0x264cc6=_0x400dc9[_0x1175ca([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3ec3b8(){_0x264cc6[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2aabde&&_0x1b0e16();}_0x3ec3b8(),_0x264cc6[_0x1175ca([0x6f,0x6e])](_0x1175ca([0x61,0x64,0x64]),_0x3ec3b8);})),new window[(_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee893=>{function _0x2544dd(){for(const _0x1ae361 in window)if(window[_0x1175ca([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1175ca([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1ae361))&&window[_0x1ae361]==_0x33e633)return _0x1ee893();_0x12d0e0[_0x1175ca([0x73,0x74,0x61,0x74,0x65])]!=_0x1175ca([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1175ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2544dd,0xa742c45^_0x52d726);}_0x252809(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2544dd();})];return window[_0x1175ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1175ca([0x72,0x61,0x63,0x65])](_0x1fe205)[_0x1175ca([0x74,0x68,0x65,0x6e])](()=>_0xbad295);}async function _0x4fd8fc(){if(await _0x16df46,_0x252809(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2abee8=_0x400dc9[_0x1175ca([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xe4771=_0x400dc9[_0x1175ca([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])](_0x2abee8[_0x1175ca([0x69,0x64])]),_0x241ed3=_0x1a655f(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x241ed3[_0x1175ca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2abee8['id'],_0xe4771?_0xe4771['id']:null,!0x0),_0x241ed3[_0x1175ca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1175ca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x241ed3[_0x1175ca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x241ed3[_0x1175ca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4410a9,void(_0x241ed3[_0x1175ca([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4410a9);}if(_0x252809(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x50a5e1=_0x1a655f(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x50a5e1[_0x1175ca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1175ca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50a5e1[_0x1175ca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50a5e1[_0x1175ca([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4410a9,_0x50a5e1[_0x1175ca([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4410a9;}_0x12d0e0[_0x1175ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1175ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4410a9,_0x12d0e0[_0x1175ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1175ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4410a9,_0x12d0e0[_0x1175ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1175ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2913a5(){return _0x252809(_0x1175ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a655f(_0x1175ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1175ca([0x73,0x74,0x61,0x74,0x65])]==_0x1175ca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42c871(){return _0x252809(_0x1175ca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x559b7d(){return _0x252809(_0x1175ca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1445e4(_0x4a508b){const _0x263cf0=_0x4b5ce9();_0x12d0e0[_0x263cf0]=_0x1175ca([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])+_0x4a508b,_0x4a508b[_0x1175ca([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1175ca([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b5ce9()]=_0x33e633),_0x4a508b!=_0x1175ca([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd8fc();}function _0x4b5ce9(){const _0x13c6e9=window[_0x1175ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1175ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1175ca([0x6e,0x6f,0x77])]())[_0x1175ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1175ca([0x2e]),'');let _0x58b9a4=_0x1175ca([0x6b]);for(let _0x3a172e=0x0;_0x3a172e<_0x13c6e9[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a172e+=0x2){let _0x3064c9=window[_0x1175ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13c6e9[_0x1175ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a172e,_0x3a172e+0x2));_0x3064c9>=_0x1fa05b[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3064c9-=_0x1fa05b[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58b9a4+=_0x1fa05b[_0x3064c9];}return _0x58b9a4;}function _0x4fb7ac(){const _0x3ee1a2=_0x834b1[_0x1175ca([0x73,0x70,0x6c,0x69,0x74])](_0x1175ca([0x2e]));if(0x3!=_0x3ee1a2[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5efb0c(_0x3ee1a2[0x1]);function _0x5efb0c(_0x280744){const _0x2b28a0=_0x7bd5df(_0x280744);return _0x2b28a0&&_0x3f9154()?_0x2b28a0:null;function _0x3f9154(){const _0x3f451a=_0x2b28a0[_0x1175ca([0x6a,0x74,0x69])],_0x143737=window[_0x1175ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f451a[_0x1175ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f451a[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x992a4b={..._0x2b28a0,[_0x1175ca([0x6a,0x74,0x69])]:_0x3f451a[_0x1175ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f451a[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x992a4b[_0x1175ca([0x76,0x63])],_0x1d0e56(_0x992a4b)==_0x143737;}}}async function _0x25b42c(){let _0xd80447=!0x0;try{const _0x3a5b0a=_0x834b1[_0x1175ca([0x73,0x70,0x6c,0x69,0x74])](_0x1175ca([0x2e])),[_0x4da67c,_0x3182fd,_0xed5629]=_0x3a5b0a;return _0x45b232(_0x4da67c),await _0x272a18(_0x4da67c,_0x3182fd,_0xed5629),_0xd80447;}catch(_0x177838){return!0x1;}function _0x45b232(_0x9d394d){const _0x1fab9a=_0x7bd5df(_0x9d394d);_0x1fab9a&&_0x1fab9a[_0x1175ca([0x61,0x6c,0x67])]==_0x1175ca([0x45,0x53,0x32,0x35,0x36])||(_0xd80447=!0x1);}async function _0x272a18(_0x41041d,_0x3732dd,_0x258bf4){const _0x280271=window[_0x1175ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1175ca([0x66,0x72,0x6f,0x6d])](_0x4a5572(_0x258bf4),_0x474324=>_0x474324[_0x1175ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dc34b=new window[(_0x1175ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1175ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41041d+_0x1175ca([0x2e])+_0x3732dd),_0x58f71b=window[_0x1175ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1175ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58f71b)return;const _0x136324=await _0x58f71b[_0x1175ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1175ca([0x6a,0x77,0x6b]),_0x5b1839,{[_0x1175ca([0x6e,0x61,0x6d,0x65])]:_0x1175ca([0x45,0x43,0x44,0x53,0x41]),[_0x1175ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1175ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1175ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58f71b[_0x1175ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1175ca([0x6e,0x61,0x6d,0x65])]:_0x1175ca([0x45,0x43,0x44,0x53,0x41]),[_0x1175ca([0x68,0x61,0x73,0x68])]:{[_0x1175ca([0x6e,0x61,0x6d,0x65])]:_0x1175ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x136324,_0x280271,_0x3dc34b)||(_0xd80447=!0x1);}}function _0x7bd5df(_0x532fbb){return _0x532fbb[_0x1175ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1175ca([0x65,0x79]))?JSON[_0x1175ca([0x70,0x61,0x72,0x73,0x65])](_0x4a5572(_0x532fbb)):null;}function _0x4a5572(_0x348c6c){return window[_0x1175ca([0x61,0x74,0x6f,0x62])](_0x348c6c[_0x1175ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1175ca([0x2b]))[_0x1175ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1175ca([0x2f])));}function _0x1d0e56(_0x2dcc88){let _0x57cf65=0x1505;function _0x43ea9f(_0x2d2da1){for(let _0x133279=0x0;_0x133279<_0x2d2da1[_0x1175ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x133279++){const _0x117f1c=_0x2d2da1[_0x1175ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x133279);_0x57cf65=(_0x57cf65<<0x5)+_0x57cf65+_0x117f1c,_0x57cf65&=_0x57cf65;}}function _0x20227a(_0x3b78d6){Array[_0x1175ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b78d6)?_0x3b78d6[_0x1175ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20227a):_0x3b78d6&&typeof _0x3b78d6==_0x1175ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1175ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b78d6)[_0x1175ca([0x73,0x6f,0x72,0x74])]()[_0x1175ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39f048,_0x10cb09])=>{_0x43ea9f(_0x39f048),_0x20227a(_0x10cb09);}):_0x43ea9f(window[_0x1175ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b78d6));}return _0x20227a(_0x2dcc88),_0x57cf65>>>0x0;}function _0x5a8ec3(_0x4e3a91){return _0x4e3a91[_0x1175ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1175ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1175ca([0x30]));}function _0x49a4b3(_0x1535c8){return _0x1535c8[_0x1175ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1175ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1175ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x252809(_0x215dea){return _0x12d0e0[_0x1175ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1175ca([0x68,0x61,0x73])](_0x215dea);}function _0x1a655f(_0x536f9b){return _0x12d0e0[_0x1175ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1175ca([0x67,0x65,0x74])](_0x536f9b);}function _0x4410a9(){}function _0x1175ca(_0x32076e){return _0x32076e['map'](_0x307a6a=>String['fromCharCode'](_0x307a6a))['join']('');}_0x1445e4(await _0x1ab53b());}(this);}['createRevision'](_0xe4cd90){const _0x484a16=this['editor']['plugins']['get']('Users');return new a({'id':_0xe4cd90['id'],'name':_0xe4cd90['name'],'creator':_0xe4cd90['creatorId']?_0x484a16['getUser'](_0xe4cd90['creatorId']):null,'diffData':_0xe4cd90['diffData']||_0xe4cd90['data'],'authors':_0xe4cd90['authorsIds']['map'](_0x37e417=>_0x484a16['getUser'](_0x37e417)),'createdAt':new Date(_0xe4cd90['createdAt']),'attributes':_0xe4cd90['attributes'],'fromVersion':_0xe4cd90['fromVersion'],'toVersion':_0xe4cd90['toVersion']});}['addRevision'](_0x447926,_0x21e362=0x0){this['_revisions']['add'](_0x447926,_0x21e362);}['getRevision'](_0x37c6c0){return this['_revisions']['get'](_0x37c6c0);}['getRevisions'](_0x2ec327={'toJSON':!0x1}){const _0x2bbc9e=Array['from'](this['_revisions']);return _0x2bbc9e['reverse'](),_0x2ec327['toJSON']?_0x2bbc9e['map'](_0x279a91=>_0x279a91['toJSON']()):_0x2bbc9e;}['getIndex'](_0x23e1e4){return this['_revisions']['getIndex'](_0x23e1e4);}['getEarlierVisibleRevision'](_0x1f2750){const [,_0x1eaf04]=this['getRevisionsIterator'](_0x1f2750,{'direction':'earlier'});return _0x1eaf04;}['getLaterVisibleRevision'](_0x15dce0){const [,_0x20caee]=this['getRevisionsIterator'](_0x15dce0,{'direction':'later'});return _0x20caee;}['getRevisionsInDiff'](_0x519bb3){const _0x142809=[];for(const _0x5266ed of this['getRevisionsIterator'](_0x519bb3['newRevisionId']))if(_0x142809['push'](_0x5266ed),_0x5266ed['id']===_0x519bb3['oldRevisionId'])break;return _0x142809;}*['getRevisionsIterator'](_0x465476,{direction:_0x4b8ca1='earlier',filter:_0x1052c0=()=>!0x0}={}){const _0x1ad283='earlier'===_0x4b8ca1?0x1:-0x1;let _0x18994d=this['_revisions']['get'](_0x465476),_0x6ae140=this['getIndex'](_0x18994d);for(yield _0x18994d;_0x18994d;){if(_0x6ae140+=_0x1ad283,_0x18994d=this['getRevision'](_0x6ae140),!_0x18994d)return;_0x1052c0(_0x18994d)&&(yield _0x18994d);}}}function m(_0x3729f3,_0x3699b2,_0xd54289){const t=_0x3729f3['t'];switch(_0x3699b2){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'},_0xd54289);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xd54289);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2b4d2b,'a':_0x10825d,'e':_0x30291d,'r':_0x51bf7b,'u':_0x53704a};class l extends _0x6bed98{['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[_0x352545,j,_0x525a0f];}constructor(_0x596387){super(_0x596387),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xc05a9b=_0x1b3a3e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xc05a9b},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 _0x2e77c8=this['repository']['getRevision'](0x0),_0x4fee20=_0x2e77c8&&null===_0x2e77c8['creator']?_0x2e77c8:null;if(this['_continueCurrentRevision']=!!_0x4fee20&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x474dfa=this['_source']['getCurrentRevisionId'](),_0x21db84=this['repository']['getRevision'](_0x474dfa);if(_0x21db84)this['_startingVersion']=_0x21db84['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x258d80=this['_source']['history']['_operations']['find'](_0x28e57f=>!_0x28e57f['_isInit']),_0x4301bc=_0x258d80?_0x258d80['baseVersion']:this['_source']['history']['version'];_0x2e77c8?(_0x2e77c8['toVersion']<_0x4301bc&&_0x2e77c8['_update']({'toVersion':_0x4301bc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4fee20['id'],this['_startingVersion']=_0x4fee20['fromVersion']):(this['_startingVersion']=_0x2e77c8['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4301bc,this['_continueCurrentRevision']=!0x1);}}else _0x4fee20&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4fee20['toVersion'],this['editor']['model']['document']['history']['version']),_0x4fee20['fromVersion']===_0x4fee20['toVersion']?(0x0!==_0x4fee20['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fee20['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fee20['id'],this['_startingVersion']=_0x4fee20['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',_0x4315bf=>!_0x4315bf),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5485dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21ef51;for(const _0x37e65f in _0x5485dc){const _0x1673de=_0x37e65f,_0x473466=_0x5485dc[_0x1673de];if('revisionHistoryLicenseKeyValid'==_0x473466||'revisionHistoryLicenseKeyInvalid'==_0x473466||'revisionHistoryLicenseKeyExpired'==_0x473466||'revisionHistoryLicenseKeyDomainLimit'==_0x473466||'revisionHistoryLicenseKeyNotAllowed'==_0x473466||'revisionHistoryLicenseKeyEvaluationLimit'==_0x473466||'revisionHistoryLicenseKeyTrialLimit'==_0x473466||'revisionHistoryLicenseKeyUsageLimit'==_0x473466){delete _0x5485dc[_0x1673de],_0x21ef51=_0x473466,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x21ef51&&_0x5485dc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x21ef51&&_0x5485dc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x21ef51&&_0x5485dc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x21ef51&&_0x5485dc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x21ef51&&_0x5485dc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x21ef51&&_0x5485dc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x21ef51&&_0x5485dc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x7930de=this['repository']['getRevision'](0x0),_0x3b6cdf=await this['getRevisionDocumentData'](_0x7930de),_0x43980a=await this['getRevisionRootsAttributes'](_0x7930de);this['_replaceEditorDataWithRevisionData'](_0x3b6cdf,_0x43980a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x487ba0){this['_source']=_0x487ba0;}async['update'](){const _0x2b5d79=await this['_source']['getLatestVersion']();if(_0x2b5d79>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4de6df=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2b5d79});_0x4de6df['authors']=_0x4de6df['authorsIds']['map'](_0x4eef79=>this['editor']['plugins']['get']('Users')['getUser'](_0x4eef79)),this['currentRevision']['_update'](_0x4de6df);}}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'](_0x393831={},_0x5d7af7=null){const _0x535947=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5d7af7>this['currentRevision']['toVersion']&&(_0x5d7af7=null),null===_0x5d7af7&&(_0x5d7af7=await this['_source']['getLatestVersion']());const _0x3d972f=this['_getFromVersion'](_0x5d7af7),_0x3a277d=this['buildRevisionData']({'from':_0x3d972f,'to':_0x5d7af7});if(this['currentRevision']['toVersion']<_0x5d7af7){const _0x30ef86=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5d7af7,'to':_0x5d7af7});_0x30ef86['authors']=[],_0x30ef86['authorsIds']=[],_0x30ef86['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x30ef86,!0x0),delete _0x30ef86['authors'],_0x535947['push'](_0x30ef86);}_0x393831['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x393831['name']=_0x393831['name']||null,_0x393831['id']=_0x393831['id']||_0x1b3a3e(),_0x393831={..._0x393831,..._0x3a277d};const _0x3e5636=this['addRevisionData'](_0x393831);_0x535947['push'](_0x393831);const _0x82d99a=this['repository']['getIndex'](_0x3e5636);if(0x0!==_0x82d99a){const _0x502680=this['repository']['getRevision'](_0x82d99a-0x1);if(_0x502680['fromVersion']!==_0x5d7af7){const _0x1e5054=this['_revisionDataBuilder']['getData'](_0x5d7af7,_0x502680['toVersion']),_0x42173c={'id':_0x502680['id'],'diffData':_0x1e5054['diffData'],'authorsIds':_0x1e5054['authorsIds'],'authors':_0x1e5054['authorsIds']['map'](_0x14d354=>this['editor']['plugins']['get']('Users')['getUser'](_0x14d354)),'fromVersion':_0x5d7af7};_0x502680===this['currentRevision']&&(_0x42173c['createdAt']=new Date(_0x393831['createdAt']['getTime']()+0xa)),_0x502680['_update'](_0x42173c,!0x0),delete _0x42173c['authors'],_0x535947['push'](_0x42173c);}}if(this['adapter']){for(const _0x50472e of _0x535947)this['_bufferUpdate'](_0x50472e['id'],_0x50472e,!0x0);this['sendBufferedUpdates']();}return _0x3e5636;}['addRevisionData'](_0x454db6){const _0x5dd98d=this['repository']['createRevision'](_0x454db6);return this['adapter']&&_0x5dd98d['on']('_update',(_0x24bed7,_0x308fb1,_0x4d4e47)=>{_0x4d4e47||(this['_bufferUpdate'](_0x308fb1['id'],_0x308fb1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5dd98d,this['_findInsertionIndex'](_0x5dd98d)),_0x5dd98d;}async['getRevisionDocumentData'](_0x4d1b2b){await this['_loadRevisionData'](_0x4d1b2b);const _0x3cd6cb={};for(const _0x3870da in _0x4d1b2b['diffData']){if(_0x4d1b2b['diffData'][_0x3870da]['attachChange']&&!_0x4d1b2b['diffData'][_0x3870da]['attachChange']['isAttached'])continue;const _0x3c593d=this['_removeRevisionMarkers'](JSON['parse'](_0x4d1b2b['diffData'][_0x3870da]['insertions'])),_0x31804d=this['editor']['editing']['view']['document'],_0x5b6903=new _0x4a0796(_0x31804d,_0x3c593d['map'](_0xd84f95=>C(_0xd84f95,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3cd6cb[_0x3870da]=this['editor']['data']['processor']['toData'](_0x5b6903),this['editor']['data']['processor']['useFillerType']('default');}return _0x3cd6cb;}async['getRevisionRootsAttributes'](_0x10a19a){await this['_loadRevisionData'](_0x10a19a);const _0x2a7309={};for(const _0xe16704 in _0x10a19a['diffData'])_0x10a19a['diffData'][_0xe16704]['attachChange']&&!_0x10a19a['diffData'][_0xe16704]['attachChange']['isAttached']||(_0x2a7309[_0xe16704]=_0x10a19a['diffData'][_0xe16704]['attributesAfter']||{});return _0x2a7309;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4c32ad=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1d71f0=0x0;_0x1d71f0<_0x4c32ad['length'];_0x1d71f0++){const _0x1f7e13=_0x4c32ad[_0x1d71f0];let _0x212049=!0x1;for(const _0x577934 of Object['keys'](_0x1f7e13))void 0x0===_0x1f7e13[_0x577934]?delete _0x1f7e13[_0x577934]:'id'!==_0x577934&&(_0x212049=!0x0);_0x212049||(_0x4c32ad[_0x1d71f0]=null);}if(_0x4c32ad=_0x4c32ad['filter'](_0x5cd1d2=>null!==_0x5cd1d2),!_0x4c32ad['length'])return;for(let _0x57ba76=0x0;_0x57ba76<_0x4c32ad['length'];_0x57ba76++){const _0x24f19f=_0x4c32ad[_0x57ba76];void 0x0!==_0x24f19f['fromVersion']&&void 0x0===_0x24f19f['toVersion']&&(_0x24f19f['toVersion']=this['repository']['getRevision'](_0x24f19f['id'])['toVersion']),void 0x0!==_0x24f19f['toVersion']&&void 0x0===_0x24f19f['fromVersion']&&(_0x24f19f['fromVersion']=this['repository']['getRevision'](_0x24f19f['id'])['fromVersion']);}const _0x523bef=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4c32ad,_0x523bef)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x447aa1=>{if(_0x447aa1){for(const _0x5e0b6c of _0x447aa1)this['setRevisionData']({'id':_0x5e0b6c['id'],'createdAt':_0x5e0b6c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x171956,_0x2483a5){let _0x251966=this['editor']['config']['get']('initialData'),_0x3b7f9a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x251966){_0x251966={};for(const _0x3b85e7 of this['editor']['model']['document']['getRootNames']())_0x251966[_0x3b85e7]='';}if('string'==typeof _0x251966&&(_0x251966={'main':_0x251966}),void 0x0===_0x3b7f9a){_0x3b7f9a={};for(const _0x2d32b2 of this['editor']['model']['document']['getRootNames']())_0x3b7f9a[_0x2d32b2]={};}let _0x18058e=!0x1;const _0x12699b=Object['keys'](_0x251966),_0x26a9d8=Object['keys'](_0x171956);for(const _0x97fead of _0x12699b){if(_0x251966[_0x97fead]!==_0x171956[_0x97fead]&&''!==_0x251966[_0x97fead]['trim']()){_0x18058e=!0x0;break;}if(!_0x529be5(_0x3b7f9a[_0x97fead],_0x2483a5[_0x97fead])&&Object['keys'](_0x3b7f9a[_0x97fead])['length']>0x0){_0x18058e=!0x0;break;}}_0x18058e||(_0x18058e=_0x26a9d8['some'](_0x10bc91=>!this['editor']['model']['document']['getRoot'](_0x10bc91))),_0x18058e&&_0x5bb00a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x251966,'editorRootsAttributes':_0x3b7f9a,'revisionData':_0x171956,'revisionRootsAttributes':_0x2483a5}),this['editor']['config']['set']('initialData',_0x171956),this['editor']['config']['set']('rootsAttributes',_0x2483a5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x569304=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x569304['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5322b5){const _0x56d89c=this['repository']['getRevisions']();_0x56d89c['reverse']();let _0x35b466=0x0;for(;_0x35b466<_0x56d89c['length'];){const _0x3d0625=_0x56d89c[_0x35b466];if(_0x3d0625===this['currentRevision']){_0x35b466++;continue;}if(_0x3d0625['id']===this['_initialRevisionId'])break;const _0xbd36f7=_0x5322b5['toVersion']-_0x3d0625['toVersion']||_0x5322b5['fromVersion']-_0x3d0625['fromVersion'];if(_0xbd36f7>0x0)break;if(_0xbd36f7<0x0)_0x35b466++;else{if(!_0x5322b5['creator']&&_0x3d0625['creator'])break;if(_0x3d0625['creator']||!_0x5322b5['creator']){if(_0x5322b5['createdAt']>_0x3d0625['createdAt'])break;_0x35b466++;}else _0x35b466++;}}return _0x35b466;}['setRevisionData'](_0x328f1c){const _0xd2f78d=this['repository']['getRevision'](_0x328f1c['id']);if(_0x328f1c['createdAt']&&(_0x328f1c['createdAt']=new Date(_0x328f1c['createdAt'])),_0x328f1c['authorsIds']){const _0x127eea=this['editor']['plugins']['get']('Users');_0x328f1c['authors']=_0x328f1c['authorsIds']['map'](_0x73224a=>_0x127eea['getUser'](_0x73224a));}_0xd2f78d['_update'](_0x328f1c,!0x0);}['buildRevisionData']({revision:_0x5450a3=null,from:_0x22720a=null,to:_0x4bfe7a=null}){_0x22720a=null!==_0x22720a?_0x22720a:_0x5450a3['fromVersion'],_0x4bfe7a=null!==_0x4bfe7a?_0x4bfe7a:_0x5450a3['toVersion'];const _0x2dcc47=this['_revisionDataBuilder']['getData'](_0x22720a,_0x4bfe7a),_0x2088e4={'diffData':_0x2dcc47['diffData'],'authorsIds':_0x2dcc47['authorsIds'],'fromVersion':_0x22720a,'toVersion':_0x4bfe7a};if(!_0x5450a3||_0x4bfe7a!==_0x5450a3['toVersion']){const _0x18d9d0=_0x4bfe7a-0x1,_0x30a5c9=this['_source']['history']['getOperation'](_0x18d9d0);_0x2088e4['createdAt']=_0x30a5c9&&_0x30a5c9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x22720a===this['_loadedStateData']['fromVersion']){for(const _0x313b57 of this['_loadedStateData']['authors'])_0x2088e4['authorsIds']['includes'](_0x313b57['id'])||_0x2088e4['authorsIds']['push'](_0x313b57['id']);}return _0x2088e4;}['_loadRevisionData'](_0x1ed300){if(!_0x1ed300||_0x1ed300['diffData'])return Promise['resolve']();{const _0x56eb9a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x56eb9a,'revisionId':_0x1ed300['id']})['then'](_0x30e204=>{_0x1ed300['diffData']=_0x30e204['diffData'];});}}['_bufferUpdate'](_0x906e4b,_0x498e0f,_0xd13024){if(this['_bufferedUpdates']['has'](_0x906e4b)){const _0x255231=this['_bufferedUpdates']['get'](_0x906e4b);_0x498e0f=_0xd13024?{..._0x255231,..._0x498e0f}:{..._0x498e0f,..._0x255231};}this['_bufferedUpdates']['set'](_0x906e4b,_0x498e0f);}['_getFromVersion'](_0x54c970){const _0x592e6a=this['repository']['getRevisions']();_0x592e6a['reverse'](),_0x592e6a['shift']();const _0x1cfc85=_0x592e6a['find'](_0x2a272d=>_0x2a272d['toVersion']<=_0x54c970)['toVersion'];return _0x1cfc85<this['_startingVersion']?this['_startingVersion']:_0x1cfc85;}['_createInitialRevision'](_0x4ced00){const _0x180e14=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x180e14)this['_initialRevisionId']=_0x180e14['id'];else{const _0x452b89=!this['editor']['model']['document']['roots']['find'](_0x3abd43=>this['editor']['model']['hasContent'](_0x3abd43)),_0x1642cd=this['editor']['plugins']['get']('Users')['me']['id'],_0x3df9e6=m(this['editor']['locale'],_0x452b89?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4ced00,'to':_0x4ced00,'id':this['_initialRevisionId'],'name':_0x3df9e6,'creatorId':_0x1642cd});}}['_createCurrentRevision'](_0xc16eb8){const _0x4fe9b9=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4fe9b9),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xc16eb8,'to':_0xc16eb8,'id':_0x4fe9b9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x146715,from:_0x4815cd,to:_0x527d93,creatorId:_0x469639,id:_0x39a9c8}){const _0x110d6b=this['buildRevisionData']({'from':_0x4815cd,'to':_0x527d93});_0x110d6b['name']=_0x146715,_0x110d6b['creatorId']=_0x469639,_0x110d6b['id']=_0x39a9c8;const _0x16cd53=this['addRevisionData'](_0x110d6b);return this['adapter']&&this['_bufferUpdate'](_0x110d6b['id'],_0x110d6b,!0x0),_0x16cd53;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x265c68){return(_0x265c68=_0x265c68['filter'](_0x53201a=>!_0x53201a['name']||'revision-start'!==_0x53201a['name']&&'revision-end'!==_0x53201a['name']))['forEach'](_0x2869af=>{'string'!=typeof _0x2869af&&(_0x2869af['children']=this['_removeRevisionMarkers'](_0x2869af['children']),_0x2869af['attributes']=_0x2869af['attributes']['filter'](_0x39575a=>!_0x39575a[0x0]['startsWith']('data-revision-')));}),_0x265c68;}}function C(_0x4a122a,_0x18f3d0){const _0xa540b6=_0x18f3d0['editing']['view']['document'];if('string'==typeof _0x4a122a)return new _0x4e03fb(_0xa540b6,_0x4a122a);{const _0x52a6db=_0x4a122a['children']['map'](_0x5d1d8c=>C(_0x5d1d8c,_0x18f3d0));return new(P[_0x4a122a['type']]||_0x590a2d)(_0xa540b6,_0x4a122a['name'],_0x4a122a['attributes'],_0x52a6db);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x39cdaf){this['editor']=_0x39cdaf,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'](_0x29fccc){this['source']=_0x29fccc;const _0x3d2f44=new Map(),_0x4c58c2=new Map(),_0x159185=this['editor']['model']['document']['roots']['map'](_0x186ce8=>_0x186ce8['rootName']);for(const _0x8aeaba of _0x159185){const _0x174d84=this['editor']['model']['document']['getRoot'](_0x8aeaba),_0x2da3e2=T(_0x174d84);_0x3d2f44['set'](_0x8aeaba,_0x2da3e2),_0x4c58c2['set'](_0x8aeaba,Object['fromEntries'](_0x174d84['getAttributes']()));}const _0x1143db=Array['from'](this['editor']['model']['markers'])['map'](_0x327fa5=>[_0x327fa5['name'],_0x327fa5['getRange']()]),_0x58b059=this['source']['version'];this['_saveMetaData'](_0x58b059,_0x3d2f44,_0x1143db,_0x4c58c2),this['_startingRevisionId']=this['_revisionId'];const _0xa57152=new Map(),_0x301772=new Map();for(const _0x329847 of _0x159185){const _0x2bcd6e=F(_0x329847);_0xa57152['set'](_0x329847,_0x2bcd6e),_0x301772['set'](_0x329847,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa57152,[],_0x301772);}['getData'](_0x2fdb26,_0x1bac1a){if(this['_lastFrom']===_0x2fdb26&&this['_lastTo']<=_0x1bac1a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1bac1a,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fdb26)){const _0x3575a4=this['_getPreviousFrom'](_0x2fdb26);this['_calculateMetaData'](_0x3575a4,_0x2fdb26,!0x1);}this['_calculateMetaData'](_0x2fdb26,_0x1bac1a,!0x0);}return this['_lastFrom']=_0x2fdb26,this['_lastTo']=_0x1bac1a,this['_getState']();}['loadState'](_0x423df2){this['_reset'](),this['_lastFrom']=_0x423df2['fromVersion'],this['_lastTo']=_0x423df2['toVersion'];for(const _0x1198bb in _0x423df2['diffData']){const _0x2c897b=_0x423df2['diffData'][_0x1198bb]['attachChange'],_0x5d3d69=_0x499bbe(_0x423df2['diffData'][_0x1198bb]['attributesBefore'])||{},_0x8c361a=this['_makeModelFromViewString'](_0x423df2['diffData'][_0x1198bb]['deletions']);_0x8c361a['rootName']=_0x1198bb,_0x8c361a['_isAttached']=!_0x2c897b||!_0x2c897b['isAttached'],_0x8c361a['isAttached']=()=>_0x8c361a['_isAttached'],this['_baseRoots']['set'](_0x1198bb,_0x8c361a),this['_baseRootsAttributes']['set'](_0x1198bb,_0x5d3d69),_0x2c897b&&this['_touchedRoots']['set'](_0x1198bb,_0x2c897b);const _0x242952=this['_makeIdsRoot'](_0x8c361a);this['_baseIdsRoots']['set'](_0x1198bb,_0x242952);for(const [_0x230c0d,_0x3472e2]of _0x8c361a['markers']){if(!_0x230c0d['startsWith']('revision:'))continue;const _0xcee234=_0x230c0d['split'](':')[0x2];for(const _0xbf3168 of _0x3472e2['getWalker']({'singleCharacters':!0x0})){const _0x313713=this['_getVidAttributeName'](_0xbf3168),_0x1f334c='elementEnd'==_0xbf3168['type']?_0xbf3168['previousPosition']['path']['slice'](0x0,-0x1):_0xbf3168['previousPosition']['path'],_0x120ae2=_0x242952['getNodeByPath'](_0x1f334c)['getAttribute'](_0x313713);this['_touched']['set'](_0x120ae2,{'userId':_0xcee234});}}}this['_startingRevisionId']=this['_revisionId'];const _0xefa71d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22a0fd=>!this['_touched']['has'](_0x22a0fd));let _0xb68f65=0x0;const _0x56c0d8=new Map();for(const _0x303f35 in _0x423df2['diffData']){const _0x94b23=_0x423df2['diffData'][_0x303f35]['attachChange'],_0x176caf=_0x499bbe(_0x423df2['diffData'][_0x303f35]['attributesAfter'])||{},_0x1f1225=this['_makeModelFromViewString'](_0x423df2['diffData'][_0x303f35]['insertions']);_0x1f1225['rootName']=_0x303f35,_0x1f1225['_isAttached']=!_0x94b23||_0x94b23['isAttached'],_0x1f1225['isAttached']=()=>_0x1f1225['_isAttached'],this['_diffRoots']['set'](_0x303f35,_0x1f1225),this['_diffRootsAttributes']['set'](_0x303f35,_0x176caf);const _0x5dc783=this['_makeIdsRoot'](_0x1f1225,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x303f35,_0x5dc783),_0x56c0d8['set'](_0x303f35,_0x1f1225['isAttached']()?_0x176caf:{});for(const [_0x5040bf,_0x3ec3cd]of _0x1f1225['markers']){if(!_0x5040bf['startsWith']('revision:'))continue;const _0x58d788=_0x5040bf['split'](':')[0x2];for(const _0x1a41a5 of _0x3ec3cd['getWalker']({'singleCharacters':!0x0})){const _0x4a87f4=this['_getVidAttributeName'](_0x1a41a5),_0x5dff20=this['_revisionId']++,_0x2f15bf='elementEnd'==_0x1a41a5['type']?_0x1a41a5['previousPosition']['path']['slice'](0x0,-0x1):_0x1a41a5['previousPosition']['path'];_0x5dc783['getNodeByPath'](_0x2f15bf)['_setAttribute'](_0x4a87f4,_0x5dff20),this['_touched']['set'](_0x5dff20,{'userId':_0x58d788});}}for(const _0x2ab0d8 of this['editor']['model']['createRangeIn'](_0x1f1225)['getWalker']({'singleCharacters':!0x0})){const _0x300dd1=this['_getVidAttributeName'](_0x2ab0d8),_0x742e1f='elementEnd'==_0x2ab0d8['type']?_0x2ab0d8['previousPosition']['path']['slice'](0x0,-0x1):_0x2ab0d8['previousPosition']['path'],_0x3ddbad=_0x5dc783['getNodeByPath'](_0x742e1f);_0x3ddbad['getAttribute'](_0x300dd1)>0x0||_0x3ddbad['_setAttribute'](_0x300dd1,_0xefa71d[_0xb68f65++]);}for(const [_0x52ab69,_0x5a0c5f]of _0x1f1225['markers'])_0x52ab69['startsWith']('revision:')||this['_markers']['set'](_0x52ab69,_0x5a0c5f);}const _0xcb0fa7=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xcb0fa7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xcb0fa7,0x1));const _0x13d72f=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x13d72f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13d72f,0x1));const _0x28a203=Array['from'](this['_diffRoots'])['map'](([_0x51a389,_0x8feaf3])=>[_0x51a389,T(_0x8feaf3)]);this['_saveMetaData'](this['_lastTo'],_0x28a203,this['_markers'],_0x56c0d8);}['_makeModelFromViewString'](_0xb3baeb){const _0x15af79=JSON['parse'](_0xb3baeb),_0x321689=this['editor']['editing']['view']['document'],_0x8d0eec=new _0x4a0796(_0x321689,_0x15af79['map'](_0x5f17ac=>C(_0x5f17ac,this['editor'])));return this['editor']['data']['toModel'](_0x8d0eec);}['_saveMetaData'](_0x2fd73f,_0x449386,_0x2844dd,_0x3eec0d){const _0x576675=new Map(_0x449386),_0x2a2d8e=new Map(_0x499bbe(_0x3eec0d)),_0x3ceb5e=new Map();for(const [_0x4bea9b,_0x436787]of _0x2844dd)_0x3ceb5e['set'](_0x4bea9b,{'start':_0x436787['start']['clone'](),'end':_0x436787['end']['clone'](),'rootName':_0x436787['root']['rootName']});this['_savedMetaData']['set'](_0x2fd73f,{'roots':_0x576675,'markers':_0x3ceb5e,'rootsAttributes':_0x2a2d8e});}['_removeMetaData'](_0x3d2645){this['_savedMetaData']['delete'](_0x3d2645);}['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'](_0x4e1c5e,_0x247641=null){let _0x816ea6=null;_0x4e1c5e['is']('documentFragment')||(_0x816ea6=new ft(_0x4e1c5e['name'],{'vid_start':null===_0x247641?this['_revisionId']++:_0x247641++}));const _0x5f2100=[];for(const _0x5bddef of _0x4e1c5e['getChildren']())if(_0x5bddef['is']('element')){_0x5f2100['push'](this['_makeIdsRoot'](_0x5bddef,_0x247641));const _0x5227fb=_0x5f2100[_0x5f2100['length']-0x1];null!==_0x247641&&(_0x247641=_0x5227fb['is']('element','$text')?_0x5227fb['getAttribute']('vid')+0x1:_0x5227fb['getAttribute']('vid_end')+0x1);}else{for(let _0x30c468=0x0;_0x30c468<_0x5bddef['offsetSize'];_0x30c468++)_0x5f2100['push'](new ft('$text',{'vid':null===_0x247641?this['_revisionId']++:_0x247641++}));}if(_0x4e1c5e['is']('documentFragment')){const _0x576983=F(_0x4e1c5e['rootName']);return _0x576983['_insertChild'](0x0,_0x5f2100),_0x576983;}return _0x816ea6['_setAttribute']('vid_end',null===_0x247641?this['_revisionId']++:_0x247641++),_0x816ea6['_insertChild'](0x0,_0x5f2100),_0x816ea6;}['_calculateMetaData'](_0x292fcb,_0x18a160,_0x27f8c9){this['_reset']();const {roots:_0x255b39,markers:_0x1bdbff,rootsAttributes:_0x22ab10}=this['_savedMetaData']['get'](_0x292fcb);this['_baseRoots']=new Map(_0x255b39),this['_baseRootsAttributes']=new Map(_0x499bbe(_0x22ab10));for(const [_0x148758,_0xe8d83]of this['_baseRoots'])if('$graveyard'!==_0x148758&&(this['_diffRoots']['set'](_0x148758,T(_0xe8d83)),this['_diffRootsAttributes']=new Map(_0x499bbe(_0x22ab10)),_0x27f8c9)){const _0x6a00e4=this['_revisionId'];this['_idsRoots']['set'](_0x148758,this['_makeIdsRoot'](_0xe8d83)),this['_baseIdsRoots']['set'](_0x148758,this['_makeIdsRoot'](_0xe8d83,_0x6a00e4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x27f8c9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c4cf6,_0x265454]of _0x1bdbff){const _0x3d28c8=this['_baseRoots']['get'](_0x265454['rootName']),_0x418bdf=this['_diffRoots']['get'](_0x265454['rootName']),_0x5d68a1=new vt(this['_fixPosition'](_0x265454['start'],_0x3d28c8),this['_fixPosition'](_0x265454['end'],_0x3d28c8)),_0x123fb2=this['_fixRange'](_0x5d68a1,_0x418bdf);_0x3d28c8['markers']['set'](_0x4c4cf6,_0x5d68a1),this['_markers']['set'](_0x4c4cf6,_0x123fb2);}this['_applyOperations'](_0x292fcb,_0x18a160,_0x27f8c9);}['_applyOperations'](_0x1ee1e2,_0x1dfc4d,_0x12d202){for(const _0x3c191d of this['source']['getOperations'](_0x1ee1e2,_0x1dfc4d))this['_handleOperation'](_0x3c191d,_0x12d202);for(const _0x129996 of this['_diffRoots']['values']())_0x129996['markers']['clear']();for(const [_0x4f60c8,_0x2f615c]of this['_markers']){this['_diffRoots']['get'](_0x2f615c['root']['rootName'])['markers']['set'](_0x4f60c8,_0x2f615c['clone']());}const _0x1f9e32=new Map(),_0x44a58f=new Map();for(const [_0x26ef10,_0x177461]of this['_diffRoots'])_0x1f9e32['set'](_0x26ef10,T(_0x177461)),_0x44a58f['set'](_0x26ef10,this['_diffRootsAttributes']['get'](_0x26ef10));this['_saveMetaData'](_0x1dfc4d,_0x1f9e32,this['_markers'],_0x44a58f);}['_getPreviousFrom'](_0x4c8daa){const _0x1ae436=Array['from'](this['_savedMetaData']['keys']());_0x1ae436['sort']((_0x13d082,_0x50ce28)=>_0x13d082-_0x50ce28),_0x1ae436['reverse']();for(const _0x1cb9fa of _0x1ae436)if(_0x1cb9fa<_0x4c8daa)return _0x1cb9fa;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x37b2fb,_0x27573b){const _0x23fc63=Array['from'](_0x27573b['markers'])['map'](([_0x4f6c00,_0x22ff4f])=>[_0x4f6c00,this['_fixRange'](_0x22ff4f,_0x37b2fb)]);_0x37b2fb['markers']=new Map(_0x23fc63);}['_transformMarkers'](_0x2c8a20){for(const _0x1a899a of this['_markers']['values']()){const _0x1902b3=_0x1a899a['getTransformedByOperation'](_0x2c8a20),_0x58299c=vt['_createFromRanges'](_0x1902b3);_0x1a899a['start']=_0x58299c['start'],_0x1a899a['end']=_0x58299c['end'];}}['_handleOperation'](_0x45dab7,_0x43ce06){if('addRoot'!=_0x45dab7['type']&&'detachRoot'!=_0x45dab7['type']){if('insert'==_0x45dab7['type']){const _0x39551b=_0x45dab7['position']['root']['rootName'];this['_diffRoots']['has'](_0x39551b)||(this['_diffRoots']['set'](_0x39551b,F(_0x39551b,!0x0)),this['_diffRootsAttributes']['set'](_0x39551b,{}),_0x43ce06&&this['_idsRoots']['set'](_0x39551b,F(_0x39551b,!0x0)));}else{if('addRootAttribute'==_0x45dab7['type']||'removeRootAttribute'==_0x45dab7['type']||'changeRootAttribute'==_0x45dab7['type'])return void this['_handleRootAttributeOperation'](_0x45dab7);'marker'==_0x45dab7['type']&&this['_handleMarkerOperation'](_0x45dab7);}if('marker'!==_0x45dab7['type']){const _0x136be1=this['_cloneOperation'](_0x45dab7,this['_diffRoots']);_0x136be1['_execute'](),this['_transformMarkers'](_0x136be1);}if(_0x43ce06)switch(_0x45dab7['type']){case'insert':this['_handleInsertOperation'](_0x45dab7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45dab7);break;case'merge':this['_handleMergeOperation'](_0x45dab7);break;case'split':this['_handleSplitOperation'](_0x45dab7);}}else this['_handleRootOperation'](_0x45dab7,_0x43ce06);}['_cloneOperation'](_0xaf308a,_0x244ded){const _0x3d1e80=_0xaf308a['clone']();return _0x3d1e80['_authorId']=_0xaf308a['_authorId'],this['_fixOperation'](_0x3d1e80,_0x244ded),_0x3d1e80;}['_getBaseVids'](_0x5e4d9a){return _0x5e4d9a['map'](_0x20f676=>{const _0x49350b=this['_getVidAttributeName'](_0x20f676);return Number(_0x20f676['item']['getAttribute'](_0x49350b));});}['_generateTape'](_0xfaa0b9,_0x1212af){if(_0xfaa0b9['is']('element','$text'))_0x1212af['push']({'item':_0xfaa0b9,'type':'text'});else{_0xfaa0b9['is']('element')&&_0x1212af['push']({'item':_0xfaa0b9,'type':'elementStart'});for(const _0x2ee67a of _0xfaa0b9['getChildren']())this['_generateTape'](_0x2ee67a,_0x1212af);_0xfaa0b9['is']('element')&&_0x1212af['push']({'item':_0xfaa0b9,'type':'elementEnd'});}return _0x1212af;}['_getState'](){const _0x16bfbf=new Map(this['_touched']),_0x7cf27a=new Map(_0x16bfbf),_0x525f56=new Map(),_0x16c689={'insertions':{},'deletions':{}},_0x45f839={'insertions':{},'deletions':{}},_0x27c8f2=new Map(),_0x2d1601=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2d1601['delete']('$graveyard');for(const _0x296d55 of _0x2d1601){const _0x16c6c5=this['_diffRoots']['get'](_0x296d55)||F(_0x296d55,!0x1),_0x2f5ce8=this['_baseRoots']['get'](_0x296d55)||F(_0x296d55,!0x1);_0x16c6c5['isAttached']()||_0x2f5ce8['isAttached']()?(_0x16c689['insertions'][_0x296d55]=T(_0x16c6c5),_0x16c689['deletions'][_0x296d55]=T(_0x2f5ce8),this['_copyMarkers'](_0x16c689['deletions'][_0x296d55],_0x2f5ce8),this['_copyMarkers'](_0x16c689['insertions'][_0x296d55],_0x16c6c5),_0x45f839['insertions'][_0x296d55]=this['_generateTape'](this['_idsRoots']['get'](_0x296d55),[]),_0x45f839['deletions'][_0x296d55]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x296d55)||F(_0x296d55,!0x1),[])):_0x2d1601['delete'](_0x296d55);}for(const _0x341dad of _0x2d1601){const _0x2fcbba=_0x45f839['insertions'][_0x341dad];for(const _0x21b43c of _0x2fcbba){const _0x57376e=this['_getVidAttributeName'](_0x21b43c),_0x586eaa=_0x21b43c['item']['getAttribute'](_0x57376e);_0x7cf27a['delete'](_0x586eaa),_0x586eaa>=this['_startingRevisionId']&&_0x525f56['set'](_0x586eaa,_0x16bfbf['get'](_0x586eaa));}}for(const _0x229de2 of _0x2d1601){const _0x5b11b0=_0x45f839['insertions'][_0x229de2],_0x52cc2c=this['_getBaseVids'](_0x45f839['deletions'][_0x229de2]);let _0x4d34d2=0x0;for(const _0x3776b8 of _0x5b11b0){const _0x21a77f=this['_getVidAttributeName'](_0x3776b8),_0x42ce6e=_0x3776b8['item']['getAttribute'](_0x21a77f);if(!_0x525f56['has'](_0x42ce6e)&&!_0x27c8f2['has'](_0x42ce6e)){if(_0x7cf27a['has'](_0x42ce6e))_0x4d34d2++;else{if(_0x42ce6e!=_0x52cc2c[_0x4d34d2]){const _0x38f4f0=_0x16bfbf['get'](_0x42ce6e)||_0x16bfbf['get'](_0x52cc2c[_0x4d34d2]);for(;_0x42ce6e!=_0x52cc2c[_0x4d34d2];)_0x7cf27a['has'](_0x52cc2c[_0x4d34d2])||(_0x27c8f2['set'](_0x52cc2c[_0x4d34d2],_0x38f4f0),_0x16bfbf['set'](_0x52cc2c[_0x4d34d2],_0x38f4f0)),_0x4d34d2++;}_0x4d34d2++;}}}}for(const _0x2c0afb of _0x2d1601){const _0x126fa1=_0x45f839['insertions'][_0x2c0afb];for(const _0x48eb5f of _0x126fa1){const _0x1cbcc6=this['_getVidAttributeName'](_0x48eb5f),_0x49e8fd=_0x48eb5f['item']['getAttribute'](_0x1cbcc6);if(_0x27c8f2['has'](_0x49e8fd)){const _0x2f93c5=_0x27c8f2['get'](_0x49e8fd);_0x7cf27a['has'](_0x49e8fd)||_0x7cf27a['set'](_0x49e8fd,{..._0x2f93c5}),_0x525f56['set'](_0x49e8fd,{..._0x2f93c5});}}}for(const _0x571e1d of _0x7cf27a['keys']())_0x571e1d>=this['_startingRevisionId']&&_0x7cf27a['delete'](_0x571e1d);const _0x137ef4=new Map();for(const _0x4a0f82 of _0x2d1601){let _0x175813=_0x45f839['insertions'][_0x4a0f82];for(const _0x4c1b7b of _0x175813)if(_0x4c1b7b['item']['is']('element','tableCell')){const _0x4c52ac=this['_getVidAttributeName'](_0x4c1b7b),_0x1511ba=_0x4c1b7b['item']['getAttribute'](_0x4c52ac);if(_0x525f56['has'](_0x1511ba)){const _0x4f7580=_0x4c1b7b['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ce1bb=_0x137ef4['get'](_0x4f7580)||new Set();_0x2ce1bb['add'](_0x525f56['get'](_0x1511ba)['userId']),_0x137ef4['set'](_0x4f7580,_0x2ce1bb);}}_0x175813=_0x45f839['deletions'][_0x4a0f82];for(const _0x86998b of _0x175813)if(_0x86998b['item']['is']('element','tableCell')){const _0x2a2167=this['_getVidAttributeName'](_0x86998b),_0x6bf9bf=_0x86998b['item']['getAttribute'](_0x2a2167);if(_0x7cf27a['has'](_0x6bf9bf)){const _0x32d560=_0x86998b['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f3119=_0x137ef4['get'](_0x32d560)||new Set();_0x4f3119['add'](_0x7cf27a['get'](_0x6bf9bf)['userId']),_0x137ef4['set'](_0x32d560,_0x4f3119);}}for(const _0x1d3616 of _0x137ef4['keys']())(_0x525f56['has'](_0x1d3616)||_0x7cf27a['has'](_0x1d3616))&&_0x137ef4['delete'](_0x1d3616);}for(const _0x3d0485 of _0x2d1601){const _0x337593=_0x45f839['insertions'][_0x3d0485];let _0x5e6a24=null,_0x17dd53=null;for(const _0x13a940 of _0x337593){const _0x4417e6=this['_getVidAttributeName'](_0x13a940),_0x4695ac=_0x13a940['item']['getAttribute'](_0x4417e6),_0x445c7d=_0x137ef4['get'](_0x4695ac);_0x445c7d&&'elementStart'==_0x13a940['type']&&(_0x5e6a24=Array['from'](_0x445c7d)[0x0],_0x17dd53=_0x13a940['item']['getAttribute']('vid_end')),_0x5e6a24&&(_0x7cf27a['set'](_0x4695ac,{'userId':_0x5e6a24}),_0x525f56['set'](_0x4695ac,{'userId':_0x5e6a24})),_0x4695ac==_0x17dd53&&(_0x5e6a24=null,_0x17dd53=null);}}const _0x765534={},_0x5b2937=new Set();for(const _0x73715a of _0x2d1601){const _0x3767af=_0x16c689['deletions'][_0x73715a],_0x11c51c=_0x16c689['insertions'][_0x73715a];for(const {userId:_0x16ac56}of this['_touchedMarkers']['values']())null!==_0x16ac56&&_0x5b2937['add'](_0x16ac56);for(const {userId:_0x37cdb3}of this['_touchedRoots']['values']())null!==_0x37cdb3&&_0x5b2937['add'](_0x37cdb3);this['_markChanges'](_0x11c51c,_0x45f839['insertions'][_0x73715a],_0x525f56,'insertion',_0x5b2937),this['_markChanges'](_0x3767af,_0x45f839['deletions'][_0x73715a],_0x7cf27a,'deletion',_0x5b2937),_0x765534[_0x73715a]={'insertions':this['_prepareViewToSave'](_0x11c51c),'deletions':this['_prepareViewToSave'](_0x3767af),'attachChange':this['_touchedRoots']['get'](_0x73715a)||null,'attributesBefore':_0x499bbe(this['_baseRootsAttributes']['get'](_0x73715a))||{},'attributesAfter':_0x499bbe(this['_diffRootsAttributes']['get'](_0x73715a))};}return{'diffData':_0x765534,'authorsIds':Array['from'](_0x5b2937)};}['_processRootBeforeSave'](_0xd1479e){for(const [,_0x4faaad]of _0xd1479e['markers']){const _0x831d3d=_0x4faaad['start']['getAncestors']()['filter'](_0x1406f3=>'tableCell'==_0x1406f3['name']);for(const _0x250544 of _0x831d3d)0x1==_0x250544['childCount']&&_0x250544['getChild'](0x0)['is']('element','paragraph')&&_0x250544['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xfb85c5){this['_processRootBeforeSave'](_0xfb85c5);const _0x4984d7=this['editor']['data']['toView'](_0xfb85c5,{}),_0xecaf5e=Array['from'](_0x4984d7['getChildren']())['map'](_0x123f41=>this['_getViewJson'](_0x123f41));return JSON['stringify'](_0xecaf5e);}['_getViewJson'](_0x35c502){if(_0x35c502['is']('$text'))return _0x35c502['data'];{const _0x17a9c6=_0x35c502;return{'type':Object['keys'](P)['find'](_0x297c5b=>_0x35c502 instanceof P[_0x297c5b]),'name':_0x17a9c6['name'],'attributes':Array['from'](_0x17a9c6['getAttributes']()),'children':Array['from'](_0x17a9c6['getChildren']())['map'](_0x5427dc=>this['_getViewJson'](_0x5427dc))};}}['_markChanges'](_0x1c8727,_0x56d31a,_0x494d9f,_0x1683f4,_0x175554){let _0x2d746d=null,_0x24327f=null,_0x5996a2=0x0;const _0x48dc82=this['editor']['model'];for(let _0x35be2d=0x0;_0x35be2d<_0x56d31a['length'];_0x35be2d++){const _0x31c47f=this['_getVidAttributeName'](_0x56d31a[_0x35be2d]),_0x2cdfa5=_0x56d31a[_0x35be2d]['item']['getAttribute'](_0x31c47f),_0x3cabf4=_0x494d9f['get'](_0x2cdfa5),_0x8107c2=_0x35be2d==_0x56d31a['length']-0x1;(!_0x2d746d&&_0x3cabf4&&(_0x2d746d=_0x3cabf4,_0x24327f=_0x56d31a[_0x35be2d]),_0x2d746d&&(!_0x3cabf4||_0x3cabf4['userId']!=_0x2d746d['userId']))&&(_0x43168b(_0x3cabf4,B(_0x24327f,_0x1c8727,_0x48dc82),B(_0x56d31a[_0x35be2d],_0x1c8727,_0x48dc82)),_0x2d746d=_0x3cabf4||null,_0x24327f=_0x3cabf4?_0x56d31a[_0x35be2d]:null),_0x2d746d&&_0x8107c2&&_0x43168b(_0x3cabf4,B(_0x24327f,_0x1c8727,_0x48dc82),J(_0x56d31a[_0x35be2d],_0x1c8727,_0x48dc82));}function _0x43168b(_0x5dcf0e,_0x50bda8,_0x625352){const _0xfa0351=_0x2d746d['userId'],_0x1ac6a1='revision:'+_0x1683f4+':'+_0xfa0351+':'+_0x5996a2++,_0x4d5180=_0x48dc82['createRange'](_0x50bda8,_0x625352);_0x1c8727['markers']['set'](_0x1ac6a1,_0x4d5180),null!==_0xfa0351&&_0x175554['add'](_0xfa0351);}}['_getVidAttributeName'](_0x3197ae){switch(_0x3197ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xde27cc,_0x4e51f3){_0xde27cc['baseVersion']=null;for(const _0x39852d in _0xde27cc){const _0x1eb419=_0xde27cc[_0x39852d];if(_0x1eb419 instanceof gt){const _0x523319=_0x4e51f3['get'](_0x1eb419['root']['rootName']);_0xde27cc[_0x39852d]=this['_fixPosition'](_0x1eb419,_0x523319);}if(_0x1eb419 instanceof vt){const _0x5e0cbc=_0x4e51f3['get'](_0x1eb419['root']['rootName']);_0xde27cc[_0x39852d]=this['_fixRange'](_0x1eb419,_0x5e0cbc);}'root'===_0x39852d&&(_0xde27cc['root']=_0x4e51f3['get'](_0xde27cc['root']['rootName']));}}['_fixRange'](_0x27e3bf,_0x530b84){return this['editor']['model']['createRange'](this['_fixPosition'](_0x27e3bf['start'],_0x530b84),this['_fixPosition'](_0x27e3bf['end'],_0x530b84));}['_fixPosition'](_0x3dd68d,_0x218994){return this['editor']['model']['createPositionFromPath'](_0x218994,_0x3dd68d['path'],_0x3dd68d['stickiness']);}['_handleInsertOperation'](_0x47fa09){const _0x5bba44=this['_idsRoots']['get'](_0x47fa09['position']['root']['rootName']),_0x438854=this['_fixPosition'](_0x47fa09['position'],_0x5bba44),_0x4a25ba=null===_0x47fa09['_authorId']?null:_0x47fa09['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14ef84=_0x438854['parent'],_0x287f8d=this['_revisionId'],_0x2adfad=[];for(const _0x2aee1a of _0x47fa09['nodes'])if(_0x2aee1a['is']('element'))_0x2adfad['push'](this['_makeIdsRoot'](_0x2aee1a));else{for(let _0x4363b2=0x0;_0x4363b2<_0x2aee1a['offsetSize'];_0x4363b2++)_0x2adfad['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x125902=this['_revisionId'];for(let _0x589e7e=_0x287f8d;_0x589e7e<_0x125902;_0x589e7e++)this['_touched']['set'](_0x589e7e,{'userId':_0x4a25ba});_0x14ef84['_insertChild'](_0x438854['offset'],_0x2adfad);}['_handleMoveOperation'](_0x31815e){(_0x31815e=this['_cloneOperation'](_0x31815e,this['_idsRoots']))['_execute']();const _0x1809e4=null===_0x31815e['_authorId']?null:_0x31815e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf37eab=_0x31815e['getMovedRangeStart'](),_0x7456b1=_0xf37eab['parent'],_0x4d316d=_0xf37eab['offset'];!function _0x1766fb(_0x81e038,_0x1aceb1,_0x1fc7e1,_0x12d8cf){for(let _0x423c13=_0x1fc7e1;_0x423c13<_0x12d8cf;_0x423c13++){const _0x5032b1=_0x1aceb1['getChild'](_0x423c13);_0x5032b1['is']('element','$text')?_0x81e038['set'](_0x5032b1['getAttribute']('vid'),{'userId':_0x1809e4}):(_0x81e038['set'](_0x5032b1['getAttribute']('vid_start'),{'userId':_0x1809e4}),_0x1766fb(_0x81e038,_0x5032b1,0x0,_0x5032b1['childCount']),_0x81e038['set'](_0x5032b1['getAttribute']('vid_end'),{'userId':_0x1809e4}));}}(this['_touched'],_0x7456b1,_0x4d316d,_0x4d316d+_0x31815e['howMany']);}['_handleMergeOperation'](_0x47d4d5){const _0x1abbf8=null===(_0x47d4d5=this['_cloneOperation'](_0x47d4d5,this['_idsRoots']))['_authorId']?null:_0x47d4d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36a996=_0x47d4d5['targetPosition']['parent'],_0x528014=_0x47d4d5['sourcePosition']['parent'],_0x4c462b=_0x36a996['getAttribute']('vid_end'),_0x221a8f=_0x528014['getAttribute']('vid_start');_0x36a996['_setAttribute']('vid_end',_0x528014['getAttribute']('vid_end')),_0x528014['_setAttribute']('vid_end',_0x4c462b),this['_touched']['set'](_0x221a8f,{'userId':_0x1abbf8}),this['_touched']['set'](_0x4c462b,{'userId':_0x1abbf8}),_0x47d4d5['_execute']();}['_handleSplitOperation'](_0x49d8fb){const _0x432a70=null===(_0x49d8fb=this['_cloneOperation'](_0x49d8fb,this['_idsRoots']))['_authorId']?null:_0x49d8fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcb489a=_0x49d8fb['graveyardPosition'],_0x4f8bcb=_0x49d8fb['splitPosition']['parent'];_0x49d8fb['_execute']();const _0x342d7a=_0x4f8bcb['getAttribute']('vid_end'),_0x2d50ee=_0x49d8fb['insertionPosition']['nodeAfter'];if(_0xcb489a){const _0x2b20ef=_0x2d50ee['getAttribute']('vid_end'),_0x59a446=_0x4f8bcb['getAttribute']('vid_end');_0x4f8bcb['_setAttribute']('vid_end',_0x2b20ef),_0x2d50ee['_setAttribute']('vid_end',_0x59a446),this['_touched']['set'](_0x4f8bcb['getAttribute']('vid_end'),{'userId':_0x432a70}),this['_touched']['set'](_0x2d50ee['getAttribute']('vid_start'),{'userId':_0x432a70});}else{const _0x2aa57b=this['_revisionId']++,_0x145c0a=this['_revisionId']++;_0x4f8bcb['_setAttribute']('vid_end',_0x2aa57b),_0x2d50ee['_setAttribute']('vid_start',_0x145c0a),_0x2d50ee['_setAttribute']('vid_end',_0x342d7a),this['_touched']['set'](_0x2aa57b,{'userId':_0x432a70}),this['_touched']['set'](_0x145c0a,{'userId':_0x432a70});}}['_handleMarkerOperation'](_0x970f8){if(!_0x970f8['affectsData'])return;const _0x4bca9f=(_0x970f8=this['_cloneOperation'](_0x970f8,this['_diffRoots']))['oldRange']?_0x970f8['oldRange']['root']:null,_0x4a205f=_0x970f8['newRange']?_0x970f8['newRange']['root']:null;_0x4bca9f&&this['_markers']['delete'](_0x970f8['name']),_0x4a205f&&this['_markers']['set'](_0x970f8['name'],_0x970f8['newRange']['clone']());const _0x3ea128=null===_0x970f8['_authorId']?null:_0x970f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1aec65=_0x970f8['name'];if(!this['_touchedMarkers']['has'](_0x1aec65))return void this['_touchedMarkers']['set'](_0x1aec65,{'range':_0x970f8['oldRange'],'userId':_0x3ea128});const _0x2a5437=this['_touchedMarkers']['get'](_0x1aec65),_0x241fef=_0x2a5437['range'],_0x3efcbd=_0x970f8['newRange'];null==_0x241fef&&null==_0x3efcbd||_0x241fef&&_0x3efcbd&&_0x241fef['isEqual'](_0x3efcbd)?this['_touchedMarkers']['delete'](_0x970f8['name']):_0x2a5437['userId']=_0x3ea128;}['_handleRootOperation'](_0x3639c6,_0x16ab36){this['_diffRoots']['has'](_0x3639c6['rootName'])?this['_diffRoots']['get'](_0x3639c6['rootName'])['_isAttached']=_0x3639c6['isAdd']:(this['_diffRoots']['set'](_0x3639c6['rootName'],F(_0x3639c6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3639c6['rootName'],{}),_0x16ab36&&this['_idsRoots']['set'](_0x3639c6['rootName'],F(_0x3639c6['rootName'],!0x0)));const _0x398c80=null===_0x3639c6['_authorId']?null:_0x3639c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ef24a=this['_touchedRoots']['get'](_0x3639c6['rootName']);_0x3ef24a&&_0x3ef24a['userId']===_0x398c80?this['_touchedRoots']['delete'](_0x3639c6['rootName']):this['_touchedRoots']['set'](_0x3639c6['rootName'],{'userId':_0x398c80,'isAttached':_0x3639c6['isAdd']});}['_handleRootAttributeOperation'](_0x1f4532){const _0x51fbf4=this['_diffRootsAttributes']['get'](_0x1f4532['root']['rootName']);null===_0x1f4532['newValue']?delete _0x51fbf4[_0x1f4532['key']]:_0x51fbf4[_0x1f4532['key']]=_0x1f4532['newValue'];}}function T(_0x185c3c){const _0x137ec2=F(_0x185c3c['rootName'],_0x185c3c['isAttached']());for(const _0x208b99 of _0x185c3c['getChildren']()){const _0x9c34a1=_0x208b99['_clone'](!0x0);_0x137ec2['_appendChild'](_0x9c34a1);}return _0x137ec2;}function F(_0xa00aeb,_0x33a8b3=!0x0){const _0x411a2c=new mt();return _0x411a2c['rootName']=_0xa00aeb,_0x411a2c['_isAttached']=_0x33a8b3,_0x411a2c['isAttached']=()=>_0x411a2c['_isAttached'],_0x411a2c;}function B(_0x63099d,_0x5831fc,_0x25e603){const _0x2bf896='elementEnd'==_0x63099d['type']?_0x25e603['createPositionAt'](_0x63099d['item'],'end'):_0x25e603['createPositionBefore'](_0x63099d['item']);return _0x25e603['createPositionFromPath'](_0x5831fc,_0x2bf896['path'],_0x2bf896['stickiness']);}function J(_0x8a082b,_0x49f1f3,_0x5c3d7b){const _0x456898='elementStart'==_0x8a082b['type']?_0x5c3d7b['createPositionAt'](_0x8a082b['item'],0x0):_0x5c3d7b['createPositionAfter'](_0x8a082b['item']);return _0x5c3d7b['createPositionFromPath'](_0x49f1f3,_0x456898['path'],_0x456898['stickiness']);}class ns extends _0x5a1faf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x15f562,_0x297487){super(_0x15f562),this['focusTracker']=new _0x57f538(),this['keystrokes']=new _0x504d02(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x297487),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'](),_0x474fb9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1c5f1f=_0x33091d=>_0x33091d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c5f1f),this['keystrokes']['set']('arrowleft',_0x1c5f1f),this['keystrokes']['set']('arrowup',_0x1c5f1f),this['keystrokes']['set']('arrowdown',_0x1c5f1f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x52d94b){this['revisionNameInputView']['fieldView']['element']['value']=_0x52d94b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x515c87){const _0xaaba02=new nt(this['locale'],_0x55e9d8),_0xef19f1=_0xaaba02['fieldView'];_0xef19f1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5abd5b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x515c87&&(_0x5abd5b+='\x20('+m(this['locale'],'optional')+')'),(_0xaaba02['label']=_0x5abd5b,_0xef19f1['on']('input',()=>{this['revisionNameInputValue']=_0xef19f1['element']['value']['trim']();}),_0xaaba02);}}class u extends _0x6bed98{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5beaf5=this['editor'],_0x5e2bd4=_0x5beaf5['plugins']['get']('RevisionTracker');_0x5beaf5['ui']['componentFactory']['add']('revisionHistory',_0x4b3d01=>{const _0x48cbc5=_0x486d6d(_0x4b3d01),_0x558748=_0x48cbc5['panelView']['children'],_0x1c3597=new te(_0x4b3d01),_0x1c5834=new _0x2b8e31(_0x4b3d01),_0x48df17=new _0x121871(_0x4b3d01),_0x23e250=new _0x2b8e31(_0x4b3d01),_0xe1e00d=new _0x121871(_0x4b3d01);return _0x48cbc5['bind']('isEnabled')['to'](_0x5e2bd4,'isReady',_0x5e2bd4,'isEnabled',_0x5beaf5,'isReadOnly',(_0x24a821,_0x353246,_0x4e923c)=>_0x24a821&&_0x353246&&!_0x4e923c),_0x48cbc5['buttonView']['set']({'icon':_0x126d4c['history'],'label':m(_0x4b3d01,'Revision\x20history'),'tooltip':!0x0}),_0x48df17['set']({'label':m(_0x4b3d01,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48df17['bind']('isEnabled')['to'](_0x5e2bd4,'isReady',_0x5e2bd4,'isEnabled',_0x5beaf5,'isReadOnly',(_0x18ef16,_0x393373,_0x45ace4)=>_0x18ef16&&_0x393373&&!_0x45ace4),_0x48df17['on']('execute',()=>this['_showDialog']()),_0xe1e00d['set']({'label':m(_0x4b3d01,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xe1e00d['bind']('isEnabled')['to'](_0x5e2bd4,'isReady',_0x5beaf5,'isReadOnly',(_0x3d5cbd,_0x1356e8)=>_0x3d5cbd&&!_0x1356e8),_0xe1e00d['on']('execute',()=>{_0x5beaf5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x48cbc5['isOpen']=!0x1,_0x5beaf5['editing']['view']['focus']();}),_0x1c5834['children']['add'](_0x48df17),_0x23e250['children']['add'](_0xe1e00d),_0x1c3597['role']='menu',_0x1c3597['items']['addMany']([_0x1c5834,_0x23e250]),_0x558748['add'](_0x1c3597),_0x48cbc5;}),_0x5beaf5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x254bfb=this['editor'],_0x550ce1=_0x254bfb['locale'],_0x2b0122=new _0x54193d(_0x550ce1),_0xcc4406=new _0x2645eb(_0x550ce1);_0x2b0122['buttonView']['set']({'icon':_0x126d4c['history'],'label':m(_0x550ce1,'Revision\x20history')});const _0x354943=new _0x1f2b0c(_0x550ce1,_0x2b0122),_0x4fb1ed=new _0x4b8edf(_0x550ce1);_0x4fb1ed['set']({'label':m(_0x550ce1,'Save\x20current\x20revision')}),_0x4fb1ed['delegate']('execute')['to'](_0x2b0122),_0x4fb1ed['on']('execute',()=>{this['_showDialog']();}),_0x354943['children']['add'](_0x4fb1ed),_0xcc4406['items']['add'](_0x354943);const _0xa9c008=new _0x1f2b0c(_0x550ce1,_0x2b0122),_0x171af7=new _0x4b8edf(_0x550ce1);return _0x171af7['set']({'label':m(_0x550ce1,'Open\x20revision\x20history')}),_0x171af7['delegate']('execute')['to'](_0x2b0122),_0x171af7['on']('execute',()=>{_0x254bfb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xa9c008['children']['add'](_0x171af7),_0xcc4406['items']['add'](_0xa9c008),_0x2b0122['panelView']['children']['add'](_0xcc4406),_0x2b0122;}['_showDialog'](){const _0x35156e=this['editor'],_0x5aa15e=_0x35156e['locale'],_0xff33c5=_0x35156e['plugins']['get']('Dialog'),_0x1827fe=_0x35156e['plugins']['get']('RevisionTracker');function _0xce1fbe(_0x5e5294){_0x35156e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5e5294['revisionName']?_0x5e5294['revisionNameInputView']['errorText']=m(_0x5aa15e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x35156e['plugins']['get'](l)['saveRevision']({'name':_0x5e5294['revisionName']}),_0xff33c5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xce1fbe(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xff33c5['show']({'id':'revisionSave','title':m(_0x5aa15e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x35156e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xff33c5['hide']()},{'label':m(_0x35156e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1cf295){_0x1cf295['bind']('isEnabled')['to'](_0x1827fe,'isReady',_0x1827fe,'isEnabled',_0x35156e,'isReadOnly',(_0x25303f,_0x45526d,_0x3c3919)=>_0x25303f&&_0x45526d&&!_0x3c3919);},'onExecute':()=>_0xce1fbe(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x51b33f=this['editor'],_0x28e308=_0x51b33f['locale'];this['_saveRevisionFormView']=new ns(_0x28e308,_0x51b33f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5a1faf{['changeId'];['_model'];constructor(_0x16e2c3,_0x44a089){super(_0x16e2c3),this['_model']=_0x44a089,this['changeId']=_0x44a089['id'];const _0x427068=this['bindTemplate'],_0x2f143a=m(_0x16e2c3,_0x44a089['data']['isSuggestion']?'Suggested\x20by':'add'==_0x44a089['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x44a089['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x427068['to']('type',_0x18d846=>'ck-revision-change__'+_0x18d846)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2f143a}]},{'text':'\x20'+_0x44a089['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5ebb27(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x371546){super(),this['id']=_0x371546['id']||_0x1b3a3e(),this['author']=_0x371546['author'],this['type']=_0x371546['type'],this['data']=_0x371546['data']||{},this['rootName']=_0x371546['rootName'],this['set']('createdAt',_0x371546['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(_0x1a8e83,_0x47ca40){this['newRevisionId']=_0x1a8e83,this['oldRevisionId']=_0x47ca40,this['changes']=new _0x5f5425();}['_setChanges'](_0x11560c){for(const _0x34a4f2 of _0x11560c)this['changes']['add'](_0x34a4f2);}}const Y={'c':_0x2b4d2b,'a':_0x10825d,'e':_0x30291d,'r':_0x51bf7b,'u':_0x53704a};class d extends _0x6bed98{['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[_0x352545,_0x39c52d,j];}constructor(_0x5c27ea){super(_0x5c27ea),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',(_0x5838f2,_0x50a8ad,_0x907ba0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2eb9d2=>{for(const _0x147955 of this['editor']['editing']['view']['document']['roots'])_0x907ba0?_0x2eb9d2['removeClass']('ck-editor__editable__overlay',_0x147955):_0x2eb9d2['addClass']('ck-editor__editable__overlay',_0x147955);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x523765=>null!==_0x523765),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a86a5,_0x5e3849,_0x17df47)=>_0x1a86a5&&_0x17df47?_0x5e3849['changes']['getIndex'](_0x17df47):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x53bbfd,_0x4c3c0a)=>_0x53bbfd?_0x4c3c0a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x39c52d);}['init'](){const _0x1de203=this['editor'],_0xc60489=new yt(_0x1de203,{'direction':'backward'}),_0x53d846=new yt(_0x1de203,{'direction':'forward'});(_0x1de203['commands']['add']('showPreviousChange',_0xc60489),_0x1de203['commands']['add']('showNextChange',_0x53d846),_0x1de203['commands']['add']('restoreRevision',new _t(_0x1de203)),this['on']('change:numberOfChanges',()=>{_0xc60489['refresh'](),_0x53d846['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1de203['enableReadOnlyMode']('revision-viewer'),_0x1de203['plugins']['has']('WidgetToolbarRepository'))&&_0x1de203['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1458e2){await this['loadRevisionData'](_0x1458e2);const _0x11c67f={};for(const _0x304592 in _0x1458e2['diffData']){if(_0x1458e2['diffData'][_0x304592]['attachChange']&&!_0x1458e2['diffData'][_0x304592]['attachChange']['isAttached'])continue;const _0x2a1862=this['_removeRevisionMarkers'](JSON['parse'](_0x1458e2['diffData'][_0x304592]['insertions'])),_0x300eef=this['editor']['editing']['view']['document'],_0x12d783=new _0x4a0796(_0x300eef,_0x2a1862['map'](_0x5bb2cc=>this['_getViewObj'](_0x5bb2cc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x11c67f[_0x304592]=this['editor']['data']['processor']['toData'](_0x12d783),this['editor']['data']['processor']['useFillerType']('default');}return _0x11c67f;}async['getRevisionRootsAttributes'](_0x55f6a5){await this['loadRevisionData'](_0x55f6a5);const _0x4e1ed1={};for(const _0x3672ae in _0x55f6a5['diffData'])_0x55f6a5['diffData'][_0x3672ae]['attachChange']&&!_0x55f6a5['diffData'][_0x3672ae]['attachChange']['isAttached']||(_0x4e1ed1[_0x3672ae]=_0x55f6a5['diffData'][_0x3672ae]['attributesAfter']||{});return _0x4e1ed1;}['_removeRevisionMarkers'](_0x1d30d6){return(_0x1d30d6=_0x1d30d6['filter'](_0x54271d=>!_0x54271d['name']||'revision-start'!==_0x54271d['name']&&'revision-end'!==_0x54271d['name']))['forEach'](_0x31b6b3=>{'string'!=typeof _0x31b6b3&&(_0x31b6b3['children']=this['_removeRevisionMarkers'](_0x31b6b3['children']),_0x31b6b3['attributes']=_0x31b6b3['attributes']['filter'](_0x4c664c=>!_0x4c664c[0x0]['startsWith']('data-revision-')));}),_0x1d30d6;}async['compare'](_0x155eb8,_0x9141fc,_0x4deaad=!0x1){if(!this['isEnabled'])return;const _0x4b85ba=this['diff'],_0x5bd9d7=this['repository'],_0x12b3f1='string'==typeof _0x155eb8?_0x5bd9d7['getRevision'](_0x155eb8):_0x155eb8,_0x2a555c='string'==typeof _0x9141fc?_0x5bd9d7['getRevision'](_0x9141fc):_0x9141fc,_0x19c6fd=_0x12b3f1['id'],_0x1e4b92=_0x2a555c?_0x2a555c['id']:null;if(!_0x4deaad&&this['diff']&&this['diff']['newRevisionId']===_0x19c6fd&&this['diff']['oldRevisionId']===_0x1e4b92)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x19c6fd,_0x1e4b92);const _0x54272e=this['_getRevisionsRange'](_0x12b3f1,_0x2a555c,!0x0)['map'](_0xfd7981=>this['loadRevisionData'](_0xfd7981));return _0x54272e['push'](new Promise(_0x235ee4=>{setTimeout(_0x235ee4,0x14);})),Promise['all'](_0x54272e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xcbb97a=this['_getDiff'](_0x19c6fd,_0x1e4b92);for(const _0x38ab0b of _0xcbb97a['changes'])this['_changeIdToChange']['set'](_0x38ab0b['id'],_0x38ab0b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54a25f=>{for(const _0x525570 of this['editor']['model']['document']['getRootNames']())_0x54a25f['detachRoot'](_0x525570);for(const _0x2440be of Object['keys'](_0xcbb97a['model'])){const _0x58cbdc=_0x54a25f['addRoot'](_0x2440be);for(const _0x2e3599 of Object['keys'](_0xcbb97a['attributes'][_0x2440be]))_0x54a25f['setAttribute'](_0x2e3599,_0xcbb97a['attributes'][_0x2440be][_0x2e3599],_0x58cbdc);_0x54a25f['insert'](_0xcbb97a['model'][_0x2440be],_0x58cbdc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xcbb97a['changes'])),this['isReady']=!0x0;})['catch'](_0x191ae6=>{console['error'](_0x191ae6),this['_cleanUp'](),_0x4b85ba&&(this['diff']=_0x4b85ba),this['isReady']=!0x0;});}['addRevisionData'](_0x383821,_0x1ae396){const _0x1a690b=this['repository']['createRevision'](_0x383821);return _0x1a690b['on']('_update',(_0x32de82,_0x2b113d,_0x48830d)=>_0x1ae396(_0x2b113d,_0x48830d,_0x1a690b)),this['repository']['addRevision'](_0x1a690b),_0x1a690b;}['loadRevisionData'](_0x6cfc85){if(!_0x6cfc85||_0x6cfc85['diffData'])return Promise['resolve']();{const _0x484c3b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x484c3b,'revisionId':_0x6cfc85['id']})['then'](_0x3f0d64=>{_0x6cfc85['_update']({'diffData':_0x3f0d64['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},_0x570b62=>{for(const _0x1a317c of this['editor']['model']['document']['getRootNames']())_0x570b62['detachRoot'](_0x1a317c);});}['_sortAndFilterDiffChanges'](_0xf509f3){const _0x490e10=[],_0x38a431=new Map();for(const _0x2dfd1c of this['editor']['model']['document']['getRootNames']()){const _0x328e4f=this['editor']['editing']['view']['getDomRoot'](_0x2dfd1c);if(!_0x328e4f)continue;const _0x4998a7=_0x328e4f['getClientRects']()['item'](0x0);_0x4998a7&&(_0x490e10['push'](_0x2dfd1c),_0x38a431['set'](_0x2dfd1c,_0x4998a7));}return _0x490e10['sort']((_0x2082ac,_0x2f369c)=>{const _0x4b6be2=_0x38a431['get'](_0x2082ac),_0x1bb80d=_0x38a431['get'](_0x2f369c);return _0x4b6be2['y']-_0x1bb80d['y']||_0x4b6be2['x']-_0x1bb80d['x'];}),(_0xf509f3=_0xf509f3['filter'](_0x8d9d6a=>_0x490e10['includes'](_0x8d9d6a['rootName'])))['sort']((_0x1cf1ad,_0x58a540)=>_0x490e10['indexOf'](_0x1cf1ad['rootName'])-_0x490e10['indexOf'](_0x58a540['rootName'])),_0xf509f3;}['_makeTape'](_0x2703c3){const _0x28d54d=Array['from'](_0x2703c3['markers'])['filter'](([_0x109fe1,_0x47195f])=>_0x109fe1['startsWith']('revision:')&&!_0x47195f['isCollapsed']),_0x37f00a=Array['from'](this['editor']['model']['createRangeIn'](_0x2703c3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x28d54d['length'])for(const _0x116a1e of _0x37f00a){const [_0x5bddde,_0x5144ff]=_0x28d54d[0x0],[,_0x555860,_0x52477e]=_0x5bddde['split'](':');if(_0x5144ff['end']['isEqual'](_0x116a1e['nextPosition'])&&_0x28d54d['shift'](),(_0x116a1e['previousPosition']['isEqual'](_0x5144ff['start'])||_0x116a1e['previousPosition']['isAfter'](_0x5144ff['start']))&&('insertion'==_0x555860?_0x116a1e['isAdded']={'userId':_0x52477e}:'deletion'==_0x555860&&(_0x116a1e['isRemoved']={'userId':_0x52477e})),0x0==_0x28d54d['length'])break;}return _0x37f00a;}['_refreshStartEndIndex'](_0x10a53e){const _0x580232=new Map();for(let _0x2ec235=0x0;_0x2ec235<_0x10a53e['length'];_0x2ec235++)'text'===_0x10a53e[_0x2ec235]['type']?(_0x10a53e[_0x2ec235]['item']['startIndex']=_0x2ec235,_0x10a53e[_0x2ec235]['item']['endIndex']=_0x2ec235):('elementStart'===_0x10a53e[_0x2ec235]['type']?_0x10a53e[_0x2ec235]['item']['startIndex']=_0x2ec235:'elementEnd'===_0x10a53e[_0x2ec235]['type']&&(_0x10a53e[_0x2ec235]['item']['endIndex']=_0x2ec235),_0x580232['set'](_0x10a53e[_0x2ec235]['id'],_0x2ec235));for(const _0x4d0bc1 of _0x580232['values']())'elementStart'===_0x10a53e[_0x4d0bc1]['type']?_0x10a53e[_0x4d0bc1]['item']['endIndex']=_0x580232['get'](_0x10a53e[_0x4d0bc1]['pairId']):'elementEnd'===_0x10a53e[_0x4d0bc1]['type']&&(_0x10a53e[_0x4d0bc1]['item']['startIndex']=_0x580232['get'](_0x10a53e[_0x4d0bc1]['pairId']));}['_processTape'](_0x9aecd1){for(let _0x1e99d2=0x0;_0x1e99d2<_0x9aecd1['length'];_0x1e99d2++){if('elementStart'===_0x9aecd1[_0x1e99d2]['type'])_0x9aecd1[_0x1e99d2]['item']['startIndex']=_0x1e99d2;else{if('elementEnd'===_0x9aecd1[_0x1e99d2]['type']){_0x9aecd1[_0x1e99d2]['item']['endIndex']=_0x1e99d2;const _0x2c3f40=_0x9aecd1[_0x1e99d2]['item']['startIndex'];_0x9aecd1[_0x2c3f40]['pairId']=_0x9aecd1[_0x1e99d2]['id'],_0x9aecd1[_0x1e99d2]['pairId']=_0x9aecd1[_0x2c3f40]['id'];}else _0x9aecd1[_0x1e99d2]['item']['startIndex']=_0x1e99d2,_0x9aecd1[_0x1e99d2]['item']['endIndex']=_0x1e99d2,_0x9aecd1[_0x1e99d2]['pairId']=null;}_0x9aecd1[_0x1e99d2]['markersStart']||(_0x9aecd1[_0x1e99d2]['markersStart']=[],_0x9aecd1[_0x1e99d2]['markersEnd']=[]);}}['_markInsertions'](_0x5b847f,_0x570504){const _0xc9dfba=_0x5b847f['filter'](_0x3968a6=>!_0x3968a6['isAdded']);for(let _0xc1fcb4=0x0;_0xc1fcb4<_0x570504['length'];_0xc1fcb4++)_0x570504[_0xc1fcb4]['isAdded']&&(_0xc9dfba[_0xc1fcb4]['isAdded']=_0x570504[_0xc1fcb4]['isAdded']);}['_makeModelFromViewString'](_0x4d748b){const _0x38766d=JSON['parse'](_0x4d748b),_0x479e06=this['editor']['editing']['view']['document'],_0x5bf386=new _0x4a0796(_0x479e06,_0x38766d['map'](_0x4c7001=>this['_getViewObj'](_0x4c7001)));return this['editor']['data']['toModel'](_0x5bf386);}['_getViewObj'](_0x3d35cd){const _0xb3293e=this['editor']['editing']['view']['document'];if('string'==typeof _0x3d35cd)return new _0x4e03fb(_0xb3293e,_0x3d35cd);{const _0x132ad4=_0x3d35cd['children']['map'](_0x2e3687=>this['_getViewObj'](_0x2e3687));return new(Y[_0x3d35cd['type']]||_0x590a2d)(_0xb3293e,_0x3d35cd['name'],_0x3d35cd['attributes'],_0x132ad4);}}['_getDiff'](_0x30a7d5,_0x1cf304=null){const _0x3ec402=this['repository']['getRevision'](_0x30a7d5),_0x4fed7b=_0x1cf304?this['repository']['getRevision'](_0x1cf304):null,_0x5de1f6=this['_getRevisionsRange'](_0x3ec402,_0x4fed7b),_0x3f1418=_0x5de1f6[_0x5de1f6['length']-0x1],_0x25c918=new Map(),_0x583214={'model':{},'attributes':{},'changes':[]},_0x13e9a7=new Set(),_0x292895=new Map();for(let _0x511b1c=_0x5de1f6['length']-0x1;_0x511b1c>=0x0;_0x511b1c--){const _0x55e12b=_0x5de1f6[_0x511b1c];for(const _0x44e108 of Object['keys'](_0x55e12b['diffData']))if(_0x55e12b['diffData'][_0x44e108]['attachChange']){const _0x52b8fd=_0x55e12b['diffData'][_0x44e108]['attachChange'];_0x52b8fd['isAttached']?(_0x13e9a7['add'](_0x44e108),_0x292895['has'](_0x44e108)&&_0x292895['get'](_0x44e108)['userId']==_0x52b8fd['userId']?_0x292895['delete'](_0x44e108):_0x292895['set'](_0x44e108,_0x52b8fd)):_0x292895['has'](_0x44e108)?(_0x13e9a7['delete'](_0x44e108),_0x292895['delete'](_0x44e108)):(_0x13e9a7['add'](_0x44e108),_0x292895['set'](_0x44e108,_0x52b8fd));}else _0x13e9a7['add'](_0x44e108);}for(const _0x1ff14b of _0x13e9a7){const _0x4b3f99=_0x292895['has'](_0x1ff14b)&&!_0x292895['get'](_0x1ff14b)['isAttached'];let _0x1b8c28=_0x4b3f99?_0x5de1f6['length']-0x1:0x0;const _0x3b21f6=_0x4b3f99?-0x1:0x1;for(;_0x5de1f6[_0x1b8c28];){const _0x5b83d0=_0x5de1f6[_0x1b8c28];if(_0x5b83d0['diffData'][_0x1ff14b]){const _0x435997=_0x4b3f99?_0x5b83d0['diffData'][_0x1ff14b]['attributesBefore']:_0x5b83d0['diffData'][_0x1ff14b]['attributesAfter'];_0x583214['attributes'][_0x1ff14b]=_0x435997?_0x499bbe(_0x435997):{};break;}_0x1b8c28+=_0x3b21f6;}}for(const _0x5897c8 of _0x5de1f6){_0x5897c8['model']={};for(const _0x26d488 of _0x5897c8['authors'])_0x25c918['set'](_0x26d488['id'],_0x26d488);for(const _0x3b5032 of _0x13e9a7){const _0x1d29ea=_0x5897c8['diffData'][_0x3b5032]?_0x5897c8['diffData'][_0x3b5032]['insertions']:'[]',_0x96d3e1=_0x5897c8['diffData'][_0x3b5032]?_0x5897c8['diffData'][_0x3b5032]['deletions']:'[]';_0x5897c8['model'][_0x3b5032]={'insertions':this['_makeModelFromViewString'](_0x1d29ea),'deletions':this['_makeModelFromViewString'](_0x96d3e1)};}}for(const _0x5f5aea of _0x13e9a7){let _0x27be38=null,_0x564d7e=0x0;const _0x29bf91=new Map(Array['from'](_0x3ec402['model'][_0x5f5aea]['insertions']['markers'])['filter'](([_0x14688b])=>!_0x14688b['startsWith']('revision:')));let _0x40b82b=0x0;for(const _0x49947d of _0x5de1f6){const _0x43e917=this['_makeTape'](_0x49947d['model'][_0x5f5aea]['insertions']);_0x49947d==_0x3ec402?(_0x27be38=_0x43e917,_0x564d7e=_0x27be38['length'],_0x27be38['forEach'](_0x9d242e=>{_0x9d242e['id']=_0x40b82b++;}),this['_processTape'](_0x27be38)):this['_markInsertions'](_0x27be38,_0x43e917);const _0x5d01ec=_0x27be38['filter'](_0x2a9d6c=>!_0x2a9d6c['isAdded'])['map'](_0x54d74e=>_0x54d74e['id']);let _0x4cf49c=0x0;const _0xbcbb24=this['_makeTape'](_0x49947d['model'][_0x5f5aea]['deletions']);_0xbcbb24['forEach'](_0x3f9417=>{_0x3f9417['isRemoved']?_0x3f9417['id']=_0x564d7e++:_0x3f9417['id']=_0x5d01ec[_0x4cf49c++];}),this['_processTape'](_0xbcbb24),this['_setDistance'](_0x27be38,'isAdded'),this['_setDistance'](_0xbcbb24,'isRemoved'),_0x49947d==_0x3ec402&&this['_markMarkers'](_0x27be38,_0x29bf91),_0x27be38=this['_joinTapes'](_0x27be38,_0xbcbb24),this['_refreshStartEndIndex'](_0x27be38),this['_setDistance'](_0x27be38,'isRemoved');}_0x27be38=_0x27be38['filter'](_0x303f15=>!(_0x303f15['isAdded']&&_0x303f15['isRemoved']));const _0x19d83d=new Map(_0x3f1418['model'][_0x5f5aea]['deletions']['markers']),_0x3a89b7=new Set(_0x29bf91['keys']());for(const _0x3da012 of _0x19d83d['keys']())_0x3a89b7['delete'](_0x3da012);this['_markSuggestions'](_0x27be38,_0x3a89b7),this['_fixObsoleteTags'](_0x27be38),_0x27be38=this['_removeMissingPairs'](_0x27be38),_0x27be38=this['_markMismatchedRemovedTags'](_0x27be38),_0x27be38=this['_removeUnsupportedChanges'](_0x27be38);const {root:_0x4fd246,changes:_0x304404}=this['_makeModelFromTape'](_0x27be38,_0x25c918,_0x5f5aea);_0x583214['model'][_0x5f5aea]=_0x4fd246;const _0x1d471f=_0x292895['get'](_0x5f5aea);if(_0x1d471f){const _0x3f8228=_0x25c918['get'](_0x1d471f['userId']),_0x543f49=new r({'author':_0x3f8228,'type':_0x1d471f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5f5aea});_0x304404['unshift'](_0x543f49),_0x583214['attributes'][_0x5f5aea]['revisionHistoryAttachChange']=_0x543f49['id'];}_0x583214['changes']=_0x583214['changes']['concat'](_0x304404);}return _0x583214;}['_markMarkers'](_0x3cd808,_0x3c4844){for(let _0x8db794=0x0;_0x8db794<_0x3cd808['length'];_0x8db794++)for(const [_0x1025ea,_0x43e6c9]of _0x3c4844)_0x43e6c9['start']['isEqual'](_0x3cd808[_0x8db794]['previousPosition'])&&_0x3cd808[_0x8db794]['markersStart']['push'](_0x1025ea),_0x43e6c9['end']['isEqual'](_0x3cd808[_0x8db794]['nextPosition'])&&_0x3cd808[_0x8db794]['markersEnd']['push'](_0x1025ea);}['_joinTapes'](_0x1be3e5,_0x1beb28){let _0xeb6a00=[],_0x33eea8=0x0,_0xd464f2=0x0;for(;_0x33eea8<_0x1be3e5['length']||_0xd464f2<_0x1beb28['length'];){const _0x10d3cb=_0x1be3e5[_0x33eea8]||{},_0x41b3ca=_0x1beb28[_0xd464f2]||{};if(_0x10d3cb['id']==_0x41b3ca['id'])_0x33eea8++,_0xd464f2++,_0xeb6a00['push'](_0x10d3cb);else{if(_0x41b3ca['isRemoved']&&_0x10d3cb['isAdded']){const {commonTape:_0x513d08,iEnd:_0x2385d1,jEnd:_0x47765a}=this['_threeWayMerge'](_0x1be3e5,_0x33eea8,_0x1beb28,_0xd464f2);_0xeb6a00=_0xeb6a00['concat'](_0x513d08),_0x33eea8=_0x2385d1,_0xd464f2=_0x47765a;}else _0x41b3ca['isRemoved']?(_0xd464f2++,_0xeb6a00['push'](_0x41b3ca)):(_0x33eea8++,_0xeb6a00['push'](_0x10d3cb));}}return _0xeb6a00;}['_markSuggestions'](_0x68a8b4,_0x1fbad6){const _0x18126f=[];for(let _0x15ad1c=0x0;_0x15ad1c<_0x68a8b4['length'];_0x15ad1c++){for(let _0x5b090a=0x0;_0x5b090a<_0x68a8b4[_0x15ad1c]['markersStart']['length'];_0x5b090a++){const _0x156aee=_0x68a8b4[_0x15ad1c]['markersStart'][_0x5b090a];if(!_0x1fbad6['has'](_0x156aee))continue;const {group:_0x57854c,type:_0x173289,authorId:_0xd6c0d8}=_0x532c3d(_0x156aee);'revision-suggestion'!=_0x57854c||'insertion'!=_0x173289&&'deletion'!=_0x173289||(_0x18126f['unshift']({'type':_0x173289,'name':_0x156aee,'userId':_0xd6c0d8}),_0x68a8b4[_0x15ad1c]['markersStart']['splice'](_0x5b090a,0x1),_0x5b090a--);}_0x25dabe(_0x68a8b4[_0x15ad1c]);for(let _0x338337=0x0;_0x338337<_0x68a8b4[_0x15ad1c]['markersEnd']['length'];_0x338337++){const _0x4d7ee1=_0x68a8b4[_0x15ad1c]['markersEnd'][_0x338337];if(!_0x1fbad6['has'](_0x4d7ee1))continue;const {group:_0x1738e6,type:_0x5e349f}=_0x532c3d(_0x4d7ee1);if('revision-suggestion'!=_0x1738e6||'insertion'!=_0x5e349f&&'deletion'!=_0x5e349f)continue;_0x68a8b4[_0x15ad1c]['markersEnd']['splice'](_0x338337,0x1),_0x338337--;const _0xfe1169=_0x18126f['findIndex'](_0x554099=>_0x554099['name']==_0x4d7ee1);_0xfe1169>-0x1&&_0x18126f['splice'](_0xfe1169,0x1);}}function _0x532c3d(_0x2846e8){const _0x2e4735=_0x2846e8['split'](':');return{'group':_0x2e4735[0x0],'type':_0x2e4735[0x1],'subType':_0x2e4735['length']>=0x5?_0x2e4735[0x2]:null,'id':_0x2e4735['length']<0x5?_0x2e4735[0x2]:_0x2e4735[0x3],'authorId':_0x2e4735['length']<0x5?_0x2e4735[0x3]:_0x2e4735[0x4],'markerCount':0x6==_0x2e4735['length']?_0x2e4735[0x5]:null};}function _0x25dabe(_0x2b0c7a){for(let _0x3f923f=0x0;_0x3f923f<_0x18126f['length'];_0x3f923f++){if(_0x2b0c7a['isAdded']&&'insertion'==_0x18126f[_0x3f923f]['type'])return _0x2b0c7a['isAddSuggestion']=_0x18126f[_0x3f923f],void delete _0x2b0c7a['isAdded'];if(!_0x2b0c7a['isAdded']&&!_0x2b0c7a['isRemoved']&&'deletion'==_0x18126f[_0x3f923f]['type'])return void(_0x2b0c7a['isRemoveSuggestion']=_0x18126f[_0x3f923f]);}}}['_setDistance'](_0x9f5fb5,_0x1cf9f0){let _0x38975a=0x0,_0x1cf65d=!0x1;const _0x3dc1f3=new Map();for(const _0x47689a of _0x9f5fb5)_0x47689a[_0x1cf9f0]?_0x1cf65d&&(_0x38975a++,_0x1cf65d=!0x1):(_0x38975a++,_0x1cf65d=!0x0),_0x3dc1f3['set'](_0x47689a['id'],_0x38975a);for(let _0x274fb0=0x0;_0x274fb0<_0x9f5fb5['length'];_0x274fb0++){if('isRemoved'==_0x1cf9f0&&_0x9f5fb5[_0x274fb0]['isAdded']||'isAdded'==_0x1cf9f0&&_0x9f5fb5[_0x274fb0]['isRemoved'])continue;if('text'==_0x9f5fb5[_0x274fb0]['type']){_0x9f5fb5[_0x274fb0]['distance']=0x0;continue;}const _0x253278=_0x3dc1f3['get'](_0x9f5fb5[_0x274fb0]['pairId']),_0xd8e231=_0x3dc1f3['get'](_0x9f5fb5[_0x274fb0]['id']);_0x9f5fb5[_0x274fb0]['distance']=_0x253278-_0xd8e231;}}['_getRevisionsRange'](_0x284166,_0x21bd25,_0x4d814a=!0x1){const _0x2a7133=[];let _0x3396a6=this['repository']['getIndex'](_0x284166),_0x175bc1=this['repository']['getIndex'](_0x21bd25);for(-0x1==_0x175bc1&&(_0x175bc1=this['repository']['_revisions']['length'],_0x4d814a=!0x1);_0x3396a6<_0x175bc1;)_0x2a7133['push'](this['repository']['getRevision'](_0x3396a6)),_0x3396a6++;return _0x4d814a&&_0x2a7133['push'](this['repository']['getRevision'](_0x3396a6)),_0x2a7133;}['_threeWayMerge'](_0x9367d3,_0x3e3916,_0x5f52c9,_0x9f42b4){const _0x36c592=this['editor']['model']['schema'];let _0x13e199=_0x3e3916;for(;_0x9367d3[_0x13e199]&&_0x9367d3[_0x13e199]['isAdded'];)_0x13e199++;let _0x45ff54=_0x9f42b4;for(;_0x5f52c9[_0x45ff54]&&_0x5f52c9[_0x45ff54]['isRemoved'];)_0x45ff54++;_0x2ec5b9(_0x9367d3,_0x3e3916,_0x13e199),_0x2ec5b9(_0x5f52c9,_0x9f42b4,_0x45ff54);const _0x525d95=_0x5f52c9['slice'](_0x9f42b4,_0x45ff54)['concat'](_0x9367d3['slice'](_0x3e3916,_0x13e199));return _0x525d95['sort']((_0x3fc5de,_0x4f0913)=>_0x3fc5de['side']!=_0x4f0913['side']?_0x3fc5de['side']-_0x4f0913['side']:_0x3fc5de['level']!=_0x4f0913['level']?_0x3fc5de['level']-_0x4f0913['level']:_0x3fc5de['distance']!=_0x4f0913['distance']?_0x4f0913['distance']-_0x3fc5de['distance']:!!_0x3fc5de['isAdded']!=!!_0x4f0913['isAdded']?-0x1==_0x3fc5de['side']||0x0==_0x3fc5de['side']?_0x3fc5de['isAdded']?-0x1:0x1:_0x3fc5de['isAdded']?0x1:-0x1:_0x3fc5de['index']-_0x4f0913['index']),{'commonTape':_0x525d95,'iEnd':_0x13e199,'jEnd':_0x45ff54};function _0x2ec5b9(_0xf5fc4,_0x4c2388,_0x3d71cb){let _0x23c713=-0x1,_0x5cc057=Number['POSITIVE_INFINITY'],_0x2510bd=!0x0;for(let _0x36e0f9=_0x4c2388;_0x36e0f9<_0x3d71cb;_0x36e0f9++)if(_0x36c592['isInline'](_0xf5fc4[_0x36e0f9]['item'])||(_0x2510bd=!0x1),_0xf5fc4[_0x36e0f9]['item']['startIndex']<_0x4c2388&&(_0x23c713=_0x36e0f9),_0xf5fc4[_0x36e0f9]['item']['endIndex']>=_0x3d71cb){_0x5cc057=_0x36e0f9;break;}_0x2510bd&&(_0x23c713=_0x3d71cb-0x1);for(let _0x4eb4e8=_0x4c2388;_0x4eb4e8<_0x3d71cb;_0x4eb4e8++)_0xf5fc4[_0x4eb4e8]['side']=_0x4eb4e8<=_0x23c713?-0x1:_0x4eb4e8<_0x5cc057?0x0:0x1,_0xf5fc4[_0x4eb4e8]['index']=_0x4eb4e8;let _0x4c990c=0x0;for(let _0x5a3678=_0x4c2388;_0x5a3678<=_0x23c713;_0x5a3678++)0x0==_0xf5fc4[_0x5a3678]['distance']?_0xf5fc4[_0x5a3678]['level']=_0x4c990c:(_0x4c990c++,_0xf5fc4[_0x5a3678]['level']=_0x4c990c,_0x4c990c++);for(let _0x19e2e7=_0x4c2388;_0x19e2e7<_0x3d71cb;_0x19e2e7++)0x0==_0xf5fc4[_0x19e2e7]['side']&&(_0xf5fc4[_0x19e2e7]['level']=_0x4c990c);_0x4c990c=0x0;for(let _0x2301d0=_0x3d71cb-0x1;_0x2301d0>=_0x5cc057;_0x2301d0--)0x0==_0xf5fc4[_0x2301d0]['distance']?_0xf5fc4[_0x2301d0]['level']=_0x4c990c:(_0x4c990c--,_0xf5fc4[_0x2301d0]['level']=_0x4c990c,_0x4c990c--);}}['_fixObsoleteTags'](_0x41f511){const _0x50a7aa=new Map(),_0x26f3fd=this['editor']['model']['schema'];for(let _0x1f3d7a=0x1;_0x1f3d7a<_0x41f511['length'];_0x1f3d7a++){let _0x57ba4e,_0x58a9bf,_0xd1e9cf;const _0x4c92eb=_0x41f511[_0x1f3d7a],_0x1508af=_0x41f511[_0x1f3d7a-0x1];if('text'==_0x4c92eb['type'])continue;if(_0x4c92eb['type']!=_0x1508af['type'])continue;if(!_0x26f3fd['isBlock'](_0x1508af['item'])||_0x26f3fd['isLimit'](_0x1508af['item']))continue;if(!_0x26f3fd['isBlock'](_0x4c92eb['item'])||_0x26f3fd['isLimit'](_0x4c92eb['item']))continue;if((_0x41f511[_0x1f3d7a]['isAdded']||_0x41f511[_0x1f3d7a]['isAddSuggestion'])&&_0x41f511[_0x1f3d7a-0x1]['isRemoved'])_0x57ba4e=_0x41f511[_0x1f3d7a],_0x58a9bf=_0x41f511[_0x1f3d7a-0x1],_0xd1e9cf=_0x1f3d7a-0x1;else{if(!_0x41f511[_0x1f3d7a]['isRemoved']||!_0x41f511[_0x1f3d7a-0x1]['isAdded']&&!_0x41f511[_0x1f3d7a-0x1]['isAddSuggestion'])continue;_0x57ba4e=_0x41f511[_0x1f3d7a-0x1],_0x58a9bf=_0x41f511[_0x1f3d7a],_0xd1e9cf=_0x1f3d7a;}const _0x1b4482=_0x57ba4e['level']==_0x58a9bf['level'],_0x15c604=Math['abs'](_0x57ba4e['level'])<Math['abs'](_0x58a9bf['level'])&&0x0==_0x58a9bf['distance'];(_0x1b4482||_0x15c604)&&(_0x50a7aa['set'](_0x58a9bf['id'],_0x57ba4e['id']),_0x41f511['splice'](_0xd1e9cf,0x1),_0x1f3d7a--,_0x57ba4e['isAdded']=!0x1);}for(let _0x56b6f1=0x0;_0x56b6f1<_0x41f511['length'];_0x56b6f1++)_0x50a7aa['has'](_0x41f511[_0x56b6f1]['pairId'])&&(_0x41f511[_0x56b6f1]['pairId']=_0x50a7aa['get'](_0x41f511[_0x56b6f1]['pairId']));}['_removeMissingPairs'](_0x503332){const _0x25cf35=new Set(_0x503332['map'](_0x5626cc=>_0x5626cc['id']));for(let _0x3beb68=0x0;_0x3beb68<_0x503332['length'];_0x3beb68++)_0x25cf35['has'](_0x503332[_0x3beb68]['pairId'])||0x0==_0x503332[_0x3beb68]['distance']||(_0x503332[_0x3beb68]['isIncorrect']=!0x0);return _0x503332['filter'](_0xd015e=>!_0xd015e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x9926e3){const _0x59bcb4=new Set();for(let _0x5d5aae=0x0;_0x5d5aae<_0x9926e3['length'];_0x5d5aae++){if(_0x59bcb4['has'](_0x9926e3[_0x5d5aae]['id'])&&_0x9926e3[_0x5d5aae]['isRemoved']&&(_0x9926e3[_0x5d5aae]['isIncorrect']=!0x0),_0x9926e3[_0x5d5aae]['isIncorrect'])continue;if(0x0==_0x9926e3[_0x5d5aae]['distance'])continue;if('elementStart'!=_0x9926e3[_0x5d5aae]['type'])continue;if(null==_0x9926e3[_0x5d5aae]['pairId'])continue;let _0xbc40e7=_0x5d5aae+0x1,_0x66706a=0x0;for(;_0x9926e3[_0xbc40e7]['id']!=_0x9926e3[_0x5d5aae]['pairId'];)'elementStart'==_0x9926e3[_0xbc40e7]['type']?_0x66706a++:'elementEnd'==_0x9926e3[_0xbc40e7]['type']&&_0x66706a--,_0xbc40e7++;if(0x0!=_0x66706a){if(_0x9926e3[_0x5d5aae]['isRemoved'])_0x9926e3[_0x5d5aae]['isIncorrect']=!0x0;else{for(;_0xbc40e7!=_0x5d5aae;)_0x9926e3[_0xbc40e7]['isRemoved']&&0x0!=_0x9926e3[_0xbc40e7]['distance']&&(_0x9926e3[_0xbc40e7]['isIncorrect']=!0x0,_0x59bcb4['add'](_0x9926e3[_0xbc40e7]['pairId'])),_0xbc40e7--;}}}return _0x9926e3['filter'](_0x80e072=>!_0x80e072['isIncorrect']);}['_removeUnsupportedChanges'](_0x795d54){const _0x3a264c=this['editor']['model']['schema'];for(let _0x85a9b3=0x0;_0x85a9b3<_0x795d54['length'];_0x85a9b3++){if(!(_0x795d54[_0x85a9b3]['isAdded']||_0x795d54[_0x85a9b3]['isAddSuggestion']||_0x795d54[_0x85a9b3]['isRemoved']||_0x795d54[_0x85a9b3]['isRemoveSuggestion']))continue;if(0x0==_0x795d54[_0x85a9b3]['distance'])continue;const _0x54da5d=_0x795d54[_0x85a9b3]['item'];_0x3a264c['isBlock'](_0x54da5d)||_0x3a264c['isLimit'](_0x54da5d)||(_0x795d54[_0x85a9b3]['isAdded']&&delete _0x795d54[_0x85a9b3]['isAdded'],_0x795d54[_0x85a9b3]['isAddSuggestion']&&delete _0x795d54[_0x85a9b3]['isAddSuggestion'],_0x795d54[_0x85a9b3]['isRemoveSuggestion']&&delete _0x795d54[_0x85a9b3]['isRemoveSuggestion'],_0x795d54[_0x85a9b3]['isRemoved']&&(_0x795d54[_0x85a9b3]['isIncorrect']=!0x0));}return _0x795d54['filter'](_0x36cc2d=>!_0x36cc2d['isIncorrect']);}['_makeModelFromTape'](_0x36eb86,_0x2c4833,_0x4f8d17){const _0x4aa818=new mt(),_0x2db57c=[],_0x2fbc57=new Map(),_0x44a8c5=this['editor']['model'],_0x33fe6b=_0x44a8c5['schema'],_0xba1147=[_0x4aa818],_0x5e0301={},_0x168b0e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a6874=null;const _0x52a27f=[0x0];for(let _0x2b4fe5=0x0;_0x2b4fe5<_0x36eb86['length'];_0x2b4fe5++)if('elementStart'===_0x36eb86[_0x2b4fe5]['type']){_0x36eb86[_0x2b4fe5]['previousPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f);const _0x2d6b5e=new ft(_0x36eb86[_0x2b4fe5]['item']['name'],_0x36eb86[_0x2b4fe5]['item']['getAttributes']());_0xba1147[0x0]['_appendChild'](_0x2d6b5e),_0x52a27f['push'](0x0),_0xba1147['unshift'](_0x2d6b5e),_0x36eb86[_0x2b4fe5]['nextPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f);}else'elementEnd'===_0x36eb86[_0x2b4fe5]['type']?(_0xba1147['shift'](),_0x36eb86[_0x2b4fe5]['previousPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f),_0x52a27f['pop'](),_0x52a27f[_0x52a27f['length']-0x1]++,_0x36eb86[_0x2b4fe5]['nextPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f)):(_0x36eb86[_0x2b4fe5]['previousPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f),_0x1a6874?_0x1a6874['_data']+=_0x36eb86[_0x2b4fe5]['item']['data']:_0x1a6874=new wt(_0x36eb86[_0x2b4fe5]['item']['data'],_0x36eb86[_0x2b4fe5]['item']['getAttributes']()),_0x36eb86[_0x2b4fe5+0x1]&&'text'===_0x36eb86[_0x2b4fe5+0x1]['type']&&_0x2166be(_0x1a6874,_0x36eb86[_0x2b4fe5+0x1]['item'])||(_0xba1147[0x0]['_appendChild'](_0x1a6874),_0x1a6874=null),_0x52a27f[_0x52a27f['length']-0x1]+=_0x36eb86[_0x2b4fe5]['item']['offsetSize'],_0x36eb86[_0x2b4fe5]['nextPosition']=_0x44a8c5['createPositionFromPath'](_0x4aa818,_0x52a27f));for(let _0x3fdeef=0x0;_0x3fdeef<_0x36eb86['length'];_0x3fdeef++){const _0x2d5df5=_0x36eb86[_0x3fdeef]['previousPosition'],_0x1e3291=_0x36eb86[_0x3fdeef]['nextPosition'];for(const _0x5ca7fb of _0x36eb86[_0x3fdeef]['markersStart'])_0x2fbc57['set'](_0x5ca7fb,{'start':_0x2d5df5,'end':null});_0x3e50e4('isRemoveSuggestion',_0x3fdeef,_0x2d5df5,_0x1e3291),_0x3e50e4('isAddSuggestion',_0x3fdeef,_0x2d5df5,_0x1e3291),_0x3e50e4('isRemoved',_0x3fdeef,_0x2d5df5,_0x1e3291),_0x3e50e4('isAdded',_0x3fdeef,_0x2d5df5,_0x1e3291);for(const _0x464f38 of _0x36eb86[_0x3fdeef]['markersEnd']){_0x2fbc57['get'](_0x464f38)['end']=_0x1e3291;}}for(const [_0x5c0d97,_0x5ec8b3]of _0x2fbc57){const _0x52d6e5=this['editor']['model']['createRange'](_0x5ec8b3['start'],_0x5ec8b3['end']);_0x4aa818['markers']['set'](_0x5c0d97,_0x52d6e5);}return _0x2db57c['sort']((_0x5ecc58,_0x4e708a)=>{const _0x6a9b32=_0x4aa818['markers']['get']('revision:'+_0x5ecc58['id']),_0x422339=_0x4aa818['markers']['get']('revision:'+_0x4e708a['id']);return _0x6a9b32['start']['isBefore'](_0x422339['start'])?-0x1:_0x6a9b32['start']['isAfter'](_0x422339['start'])?0x1:_0x6a9b32['end']['isBefore'](_0x422339['end'])?-0x1:_0x6a9b32['end']['isAfter'](_0x422339['end'])?0x1:'add'===_0x5ecc58['type']?-0x1:0x1;}),{'root':_0x4aa818,'changes':_0x2db57c};function _0x3e50e4(_0x538660,_0x414881,_0x514eb7,_0x158442){const _0x33a52f=!!_0x36eb86[_0x414881][_0x538660],_0x2b6930=_0x33a52f?_0x36eb86[_0x414881][_0x538660]['userId']:null,_0x3a4525=_0x414881===_0x36eb86['length']-0x1,_0x15f143=_0x168b0e[_0x538660][0x0],_0x584c24=_0x33fe6b['isObject'](_0x36eb86[_0x414881]['item']);!_0x5e0301[_0x538660]&&_0x33a52f?_0x5e0301[_0x538660]={'start':_0x514eb7,'tapeItem':_0x36eb86[_0x414881],'userId':_0x2b6930,'type':_0x538660}:_0x5e0301[_0x538660]&&!_0x33a52f?(_0x5e0301[_0x538660]['end']=_0x514eb7,_0x360845(_0x5e0301[_0x538660]),_0x5e0301[_0x538660]=null):_0x5e0301[_0x538660]&&_0x33a52f&&_0x5e0301[_0x538660]['userId']!==_0x2b6930&&(_0x5e0301[_0x538660]['end']=_0x514eb7,_0x15f143&&_0x15f143['userId']===_0x5e0301[_0x538660]['userId']||_0x360845(_0x5e0301[_0x538660]),_0x5e0301[_0x538660]={'start':_0x514eb7,'tapeItem':_0x36eb86[_0x414881],'userId':_0x2b6930,'type':_0x538660}),_0x5e0301[_0x538660]&&_0x584c24&&('elementStart'!==_0x36eb86[_0x414881]['type']||_0x15f143&&_0x15f143['userId']===_0x2b6930||_0x168b0e[_0x538660]['unshift']({'userId':_0x2b6930,'object':_0x36eb86[_0x414881]['item'],'change':_0x5e0301[_0x538660]}),'elementEnd'===_0x36eb86[_0x414881]['type']&&_0x15f143&&_0x15f143['object']===_0x36eb86[_0x414881]['item']&&(_0x168b0e[_0x538660]['shift'](),_0x5e0301[_0x538660]=_0x15f143['change'])),_0x5e0301[_0x538660]&&_0x3a4525&&(_0x5e0301[_0x538660]['end']=_0x158442,_0x360845(_0x5e0301[_0x538660]),_0x5e0301[_0x538660]=null);}function _0x360845({start:_0x286c1f,end:_0x2438d3,tapeItem:_0x530b47,userId:_0x4cd64d,type:_0x515cc1}){const _0x565528=_0x530b47['item'],_0x19d4c4=_0x44a8c5['schema']['isBlock'](_0x565528)&&!_0x44a8c5['schema']['isLimit'](_0x565528),_0x4cc10d=_0x286c1f['nodeAfter']==_0x2438d3['parent']&&_0x2438d3['isAtStart'];if(_0x19d4c4&&_0x4cc10d)return;const _0x3a8386=_0x44a8c5['createRange'](_0x286c1f,_0x2438d3),_0x1a03c7=_0x2c4833['get'](_0x4cd64d),_0x1c4e22=new r({'author':_0x1a03c7,'type':'isAdded'==_0x515cc1||'isAddSuggestion'==_0x515cc1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x515cc1||'isRemoveSuggestion'==_0x515cc1},'createdAt':new Date(),'rootName':_0x4f8d17});_0x2db57c['push'](_0x1c4e22),_0x4aa818['markers']['set']('revision:'+_0x1c4e22['id'],_0x3a8386);}function _0x2166be(_0x4873cd,_0x249da6){const _0x4743f5=_0x4873cd['getAttributes'](),_0x4fb3fa=_0x249da6['getAttributes']();for(const _0x4caa7c of _0x4743f5){if(_0x4caa7c[0x1]!==_0x249da6['getAttribute'](_0x4caa7c[0x0]))return!0x1;_0x4fb3fa['next']();}return _0x4fb3fa['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x8a1fab=>{const _0x4ee3cd=_0x8a1fab['markerName']['split'](':')[0x1],_0x91c5b0=this['_getChangeFromId'](_0x4ee3cd);if(!_0x91c5b0)return null;const _0x248120='add'==_0x91c5b0['type']?'insertion':'deletion',_0x2ec549=['ck-suggestion-marker','ck-suggestion-marker-'+_0x248120];return _0x91c5b0['data']['isSuggestion']&&_0x2ec549['push']('ck-suggestion-marker-'+_0x248120+'-new'),this['activeChange']==_0x91c5b0&&_0x2ec549['push']('ck-suggestion-marker--active'),{'classes':_0x2ec549,'attributes':{'data-change-id':_0x4ee3cd}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2a951c=>{_0x2a951c['on']('element:pre',(_0x27ed00,_0x5ac26a,_0x22cb28)=>{const _0x4b98be=_0x5ac26a['viewItem']['getChild'](0x0);if(!_0x4b98be||!_0x4b98be['is']('element','code'))return;if(!_0x22cb28['consumable']['consume'](_0x4b98be,{'attributes':['vid_start','vid_end']}))return;const _0x33f100=_0x5ac26a['modelRange']['start']['nodeAfter'];_0x22cb28['writer']['setAttribute']('vid_start',_0x4b98be['getAttribute']('vid_start'),_0x33f100),_0x22cb28['writer']['setAttribute']('vid_end',_0x4b98be['getAttribute']('vid_end'),_0x33f100);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2dedd1=>{_0x2dedd1['on']('element',(_0x226159,_0x1c778e,_0x3df37b)=>{if(!_0x3df37b['consumable']['consume'](_0x1c778e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1c778e['modelRange']['isCollapsed'])return;const _0x1a0012=_0x1c778e['modelRange']['start']['nodeAfter'];_0x1a0012['hasAttribute']('vid_start')||_0x1a0012['hasAttribute']('vid')||(_0x3df37b['writer']['setAttribute']('vid_start',_0x1c778e['viewItem']['getAttribute']('vid_start'),_0x1a0012),_0x3df37b['writer']['setAttribute']('vid_end',_0x1c778e['viewItem']['getAttribute']('vid_end'),_0x1a0012));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5b63a9=>_0x5b63a9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5e2e31,[,_0x4c12b2])=>{['vid_start','vid_end','vid']['includes'](_0x4c12b2)&&(_0x5e2e31['return']=!0x0,_0x5e2e31['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x52481d=>{_0x52481d['on']('attribute:vid',(_0x1d0a02,_0x341b92,_0x3ccb9a)=>{if('\x20'!=_0x341b92['item']['data']||_0x341b92['item']['parent']['maxOffset']>0x1)return;if(!_0x3ccb9a['consumable']['consume'](_0x341b92['item'],_0x1d0a02['name']))return;const _0x20de8e=_0x3ccb9a['writer'],_0x4c4f8e=_0x3ccb9a['mapper']['toViewRange'](_0x341b92['range']);_0x20de8e['wrap'](_0x4c4f8e,_0x20de8e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ff722){const _0x4790f4=_0x2ff722['plugins']['get']('RevisionViewer');return(_0x3f9f34,_0x28a8b4,_0x1c7abc)=>{const _0x1aa164=_0x28a8b4['markerName']['split'](':')[0x1],_0x3046fd=_0x4790f4['_getChangeFromId'](_0x1aa164);if(!_0x3046fd)return null;const _0x440d19='add'==_0x3046fd['type']?'split':'merge';if(!_0x1c7abc['consumable']['test'](_0x28a8b4['markerRange'],_0x3f9f34['name']))return;const _0x4a1d5a=_0x28a8b4['markerRange']['getWalker'](),_0x23d7a7=_0x28a8b4['markerRange']['start'],_0x3a7ce7=_0x2ff722['model']['schema'];let _0x29108d=null,_0x5e9996=null,_0x1feb24=!0x1,_0x1558cf=!0x1;for(const _0x1229b0 of _0x4a1d5a){const _0x775008=_0x1229b0['item'];_0x1feb24=_0x1feb24||_0x3a7ce7['isContent'](_0x775008);const _0x12aea7=_0x1c7abc['mapper']['toViewElement'](_0x775008);if(_0x12aea7&&_0x12aea7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1229b0['type']&&(_0x3a7ce7['isBlock'](_0x775008)&&!_0x3a7ce7['isLimit'](_0x775008)&&(_0x775008['nextSibling']||_0x23d7a7['isAtEnd']?_0x29108d&&_0x29108d['parent']==_0x775008||(_0x29108d=_0x775008,_0x52200f(_0x1229b0['previousPosition']),_0x1558cf=!0x0):_0x5e9996=_0x5e9996||_0x1229b0['previousPosition']));}function _0x52200f(_0x4504ba){const _0x1aaf85=_0x1c7abc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x440d19}),_0x57fb8d=_0x1c7abc['mapper']['toViewPosition'](_0x4504ba);_0x3046fd['data']['isSuggestion']&&_0x1c7abc['writer']['addClass']('ck-suggestion-marker-'+_0x440d19+'-new',_0x1aaf85),_0x4790f4['activeChange']==_0x3046fd&&_0x1c7abc['writer']['addClass']('ck-suggestion-marker--active',_0x1aaf85),_0x1c7abc['writer']['insert'](_0x57fb8d,_0x1aaf85),_0x1c7abc['mapper']['bindElementToMarker'](_0x1aaf85,_0x28a8b4['markerName']);}_0x1feb24||_0x1558cf||!_0x5e9996||_0x52200f(_0x5e9996);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x270ac2,_0x32916d,_0x4a5a91)=>{const _0x1742a2=_0x4a5a91['mapper']['markerNameToElements'](_0x32916d['markerName']);if(_0x1742a2){for(const _0x40f6ea of _0x1742a2)(_0x40f6ea['hasClass']('ck-suggestion-marker-split')||_0x40f6ea['hasClass']('ck-suggestion-marker-merge'))&&(_0x4a5a91['mapper']['unbindElementFromMarkerName'](_0x40f6ea,_0x32916d['markerName']),_0x4a5a91['writer']['remove'](_0x40f6ea));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x286a89,_0x2c71c4,_0x37e5c5)=>{const _0x3291f1=_0x2c71c4['markerName']['split'](':')[0x1],_0x2825a9=this['_getChangeFromId'](_0x3291f1);if(!_0x2825a9)return null;const _0x22cee1='add'==_0x2825a9['type']?'split':'merge';if(_0x37e5c5['consumable']['test'](_0x2c71c4['markerRange'],_0x286a89['name']))for(const _0x17c3a8 of _0x2c71c4['markerRange']['getItems']()){if(!_0x17c3a8['is']('element','softBreak'))continue;const _0x2c6aed=_0x37e5c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22cee1}),_0x1a7ec9=_0x37e5c5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x17c3a8));_0x2825a9['data']['isSuggestion']&&_0x37e5c5['writer']['addClass']('ck-suggestion-marker-'+_0x22cee1+'-new',_0x2c6aed),this['activeChange']==_0x2825a9&&_0x37e5c5['writer']['addClass']('ck-suggestion-marker--active',_0x2c6aed),_0x37e5c5['writer']['insert'](_0x1a7ec9,_0x2c6aed),_0x37e5c5['mapper']['bindElementToMarker'](_0x2c6aed,_0x2c71c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4e71ec=>{for(const _0x3163a8 of this['editor']['model']['document']['getRootNames']()){const _0x4dc336=this['editor']['model']['document']['getRoot'](_0x3163a8),_0x344d99=this['editor']['editing']['view']['document']['getRoot'](_0x3163a8);if(_0x344d99){const _0x5f211c=_0x4dc336['getAttribute']('revisionHistoryAttachChange');if(_0x4e71ec['removeAttribute']('data-change-id',_0x344d99),_0x4e71ec['removeClass']('ck-revision-history-root-add',_0x344d99),_0x4e71ec['removeClass']('ck-revision-history-root-remove',_0x344d99),_0x4e71ec['removeClass']('ck-revision-history-root--active',_0x344d99),_0x5f211c){const _0x1bda19=this['_getChangeFromId'](_0x5f211c);if(!_0x1bda19)return null;_0x4e71ec['setAttribute']('data-change-id',_0x5f211c,_0x344d99),_0x4e71ec['addClass']('ck-revision-history-root-'+_0x1bda19['type'],_0x344d99),this['activeChange']==_0x1bda19&&_0x4e71ec['addClass']('ck-revision-history-root--active',_0x344d99);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x21ffb1=>'revision-comment:'+_0x21ffb1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x533af8=>'revision-suggestion:'+_0x533af8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2389ad=>({'name':'suggestion:'+_0x2389ad,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5337d8=>{const _0x316372=_0x5337d8['markerName']['split'](':')[0x1];return'insertion'!=_0x316372&&'deletion'!=_0x316372?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x316372]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x315c3e,_0x29eead,_0xdaef7a)=>{const _0xca83f8=_0xdaef7a['mapper']['markerNameToElements'](_0x29eead['markerName']);if(_0xca83f8){for(const _0xfc8290 of _0xca83f8)_0xfc8290['is']('uiElement')&&(_0xdaef7a['mapper']['unbindElementFromMarkerName'](_0xfc8290,_0x29eead['markerName']),_0xdaef7a['writer']['remove'](_0xfc8290));}},{'priority':'high'});}['_getChangeFromId'](_0x399897){return this['_changeIdToChange']['get'](_0x399897);}['_getViewForChange'](_0x3bbe45){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3bbe45),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x180213,_0x5eec29,_0x113b39,_0x553134)=>{_0x553134&&this['_balloon']['remove'](_0x553134),_0x113b39&&(this['_balloon']['add']({'view':_0x113b39,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x544388=this['editor']['editing'],_0x361293=this['_getChangeFromId'](_0x113b39['changeId']);let _0x47ae68;if(_0x361293['data']['isOnRoot']){const _0x102e9c=_0x544388['view']['getDomRoot'](_0x361293['rootName']);_0x47ae68=Array['from'](_0x102e9c['getClientRects']());}else{const _0x4e65a0=this['editor']['model']['markers']['get']('revision:'+_0x113b39['changeId']);_0x47ae68=Array['from'](_0x544388['mapper']['markerNameToElements'](_0x4e65a0['name']))['map'](_0x321f40=>_0x544388['view']['domConverter']['mapViewToDom'](_0x321f40))['map'](_0x5e01e8=>Array['from'](_0x5e01e8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x47ae68[0x0];return _0x47ae68['find'](_0x542af7=>_0x542af7['top']-0x3<=this['_activeViewTarget']['y']&&_0x542af7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x542af7['left']-0x3<=this['_activeViewTarget']['x']&&_0x542af7['right']+0x3>=this['_activeViewTarget']['x'])||_0x47ae68[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x88d7a3,_0x22efe4,_0x4fde44,_0x2bfe53)=>{this['activeView']=_0x4fde44?this['_getViewForChange'](_0x4fde44):null,this['editor']['model']['change'](()=>{const _0x4cbbcc=this['editor']['editing'];_0x2bfe53&&(_0x2bfe53['data']['isOnRoot']?_0x4cbbcc['view']['change'](_0x1548eb=>{_0x1548eb['removeClass']('ck-revision-history-root--active',_0x4cbbcc['view']['document']['getRoot'](_0x2bfe53['rootName']));}):_0x4cbbcc['reconvertMarker']('revision:'+_0x2bfe53['id'])),_0x4fde44&&(_0x4fde44['data']['isOnRoot']?_0x4cbbcc['view']['change'](_0x1cc649=>{_0x1cc649['addClass']('ck-revision-history-root--active',_0x4cbbcc['view']['document']['getRoot'](_0x4fde44['rootName']));}):_0x4cbbcc['reconvertMarker']('revision:'+_0x4fde44['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5344a4,_0x2c1009)=>{if(this['activeChange'])return;const _0x575b10=this['_findChangeIdFromDomTarget'](_0x2c1009['target']),_0x3dcc1a=this['_changeIdToChange']['get'](_0x575b10);_0x3dcc1a?(this['_activeViewTarget']={'x':_0x2c1009['domEvent']['x'],'y':_0x2c1009['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3dcc1a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x273720,_0x266ff9)=>{const _0x1dc4f0=this['_findChangeIdFromDomTarget'](_0x266ff9['target']),_0x18008d=this['_changeIdToChange']['get'](_0x1dc4f0);_0x18008d?(this['_activeViewTarget']={'x':_0x266ff9['domEvent']['x'],'y':_0x266ff9['domEvent']['y']},_0x18008d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18008d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x553cce){do{const _0x566bab=_0x553cce['getAttribute']('data-change-id');if(_0x566bab)return _0x566bab;_0x553cce=_0x553cce['parent'];}while(_0x553cce);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ff0b9=>{for(const _0x1f7ec5 of this['editor']['model']['markers'])_0x3ff0b9['removeMarker'](_0x1f7ec5);});}}function Z(_0x33ecc0,_0x5b69e0){return(_0x2908ba,_0x3e505c,_0x273a79)=>{if(!_0x273a79['consumable']['test'](_0x3e505c['markerRange'],_0x2908ba['name']))return;const _0x1c390b=_0x3e505c['markerRange']['getWalker'](),_0x15b7ab=_0x3e505c['markerRange']['start'],_0x2489b4=_0x33ecc0['model']['schema'];let _0x46960c=null,_0x4fe4af=null,_0x52bf8b=!0x1,_0x5de412=!0x1;for(const _0x129712 of _0x1c390b){const _0x27200b=_0x129712['item'];_0x52bf8b=_0x52bf8b||_0x2489b4['isContent'](_0x27200b);const _0xb86e43=_0x273a79['mapper']['toViewElement'](_0x27200b);if(_0xb86e43&&_0xb86e43['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x129712['type']&&(_0x2489b4['isBlock'](_0x27200b)&&!_0x2489b4['isLimit'](_0x27200b)&&(_0x27200b['nextSibling']||_0x15b7ab['isAtEnd']?_0x46960c&&_0x46960c['parent']==_0x27200b||(_0x46960c=_0x27200b,_0x571f14(_0x129712['previousPosition']),_0x5de412=!0x0):_0x4fe4af=_0x4fe4af||_0x129712['previousPosition']));}function _0x571f14(_0x4de4f1){const _0x5be3c9=_0x273a79['mapper']['toViewPosition'](_0x4de4f1),_0x25581a=_0x273a79['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5b69e0});_0x273a79['writer']['insert'](_0x5be3c9,_0x25581a),_0x273a79['mapper']['bindElementToMarker'](_0x25581a,_0x3e505c['markerName']);}_0x52bf8b||_0x5de412||!_0x4fe4af||_0x571f14(_0x4fe4af);};}class _t extends _0x55dd17{constructor(_0x222506){super(_0x222506);const _0x29bd7a=_0x222506['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x29bd7a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x29bd7a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x362357=this['editor'],_0x4974bc=_0x362357['plugins']['get'](d),_0x581802=_0x4974bc['isReady']?_0x4974bc['diff']['newRevisionId']:null;_0x362357['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x581802);}['refresh'](){const {isReady:_0x317fe3,isEnabled:_0x58dbe7,repository:_0x5aa162,diff:_0x5e5fa0}=this['editor']['plugins']['get'](d),_0x18dbc9=_0x5e5fa0&&_0x5aa162['getLaterVisibleRevision'](_0x5e5fa0['newRevisionId']);this['isEnabled']=_0x317fe3&&_0x58dbe7&&Boolean(_0x18dbc9);}}class yt extends _0x55dd17{['_step'];constructor(_0x2bf24f,{direction:_0x3619b8}){super(_0x2bf24f);const _0x84a04a=_0x2bf24f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3619b8?0x1:-0x1,this['listenTo'](_0x84a04a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x84a04a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x84a04a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x187e9f=this['editor'],_0x4011a7=_0x187e9f['plugins']['get'](d),{isNavigationMode:_0x3e0be1,currentChangeNumber:_0x1bd879}=_0x4011a7;let _0x1fdd1d;if(_0x4011a7['activeChange']=_0x3e0be1?_0x4011a7['diff']['changes']['get'](_0x1bd879+this['_step']):_0x4011a7['diff']['changes']['first'],_0x4011a7['activeChange']['data']['isOnRoot'])_0x1fdd1d=_0x187e9f['editing']['view']['getDomRoot'](_0x4011a7['activeChange']['rootName']);else{const _0x4ac6d0=_0x187e9f['model']['markers']['get']('revision:'+_0x4011a7['activeChange']['id']);_0x1fdd1d=_0x124362(_0x187e9f['editing'],_0x4ac6d0);}_0x147afe({'target':_0x1fdd1d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b61d6,currentChangeNumber:_0x110195,numberOfChanges:_0x2b91d1,isReady:_0x464e49,isEnabled:_0x99b4a4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x99b4a4&&_0x464e49&&_0x2b91d1)&&(!_0x5b61d6||(0x1===this['_step']?_0x110195<_0x2b91d1-0x1:_0x110195>0x0));}}class _i extends _0x5a1faf{constructor(_0x40b67d){super(_0x40b67d);const _0x29b931=this['bindTemplate'],_0x478142=new _0x121871(_0x40b67d),_0x3a0631=new _0x121871(_0x40b67d);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',(_0x282bbb,_0xc6b743)=>_0x282bbb&&_0xc6b743>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x26f6c8,_0x4375dc,_0x52e7f1,_0x14bc87)=>{if(!_0x26f6c8)return m(_0x40b67d,'Loading...');if(!_0x52e7f1)return m(_0x40b67d,'No\x20changes');const _0x18f0d0=m(_0x40b67d,'NUMBER_OF_CHANGES',_0x52e7f1);return _0x14bc87?m(_0x40b67d,'X_OF_Y_CHANGES',[_0x4375dc+0x1,_0x52e7f1]):_0x18f0d0;}),_0x478142['set']({'label':m(_0x40b67d,'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'}),_0x3a0631['set']({'label':m(_0x40b67d,'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'}),_0x478142['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3a0631['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x478142['on']('execute',()=>this['fire']('execute','backward')),_0x3a0631['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',_0x29b931['if']('_isStatusLabelVisible','ck-hidden',_0x367be7=>!_0x367be7)]},'children':[{'text':_0x29b931['to']('isNavigationMode',_0x5f2a7d=>_0x5f2a7d?m(_0x40b67d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x40b67d,'Total')+':\x20')}]},{'text':_0x29b931['to']('_statusText')}]},new _0x826a80(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x478142,_0x3a0631]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x6bed98{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3016a5=this['editor']['editing']['view'];_0x3016a5['change'](_0x380d29=>{for(const _0x424ed8 of _0x3016a5['document']['roots'])_0x380d29['addClass'](ce,_0x424ed8);});}['hide'](){const _0x1433fc=this['editor']['editing']['view'];_0x1433fc['change'](_0x47f6e5=>{for(const _0x4e3f15 of _0x1433fc['document']['roots'])_0x47f6e5['removeClass'](ce,_0x4e3f15);});}}class g extends _0x6bed98{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x53ea74=this['editor'],_0x191969=_0x53ea74['plugins']['get'](d),_0x275a32=_0x53ea74['plugins']['get'](le);_0x53ea74['ui']['componentFactory']['add']('exitToEditing',_0x41a0db=>{const _0x447c4b=new _0x121871(_0x41a0db);return _0x447c4b['set']({'label':m(_0x41a0db,'Back\x20to\x20editing'),'icon':_0x126d4c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x447c4b,'execute',()=>{_0x53ea74['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x447c4b;}),_0x53ea74['ui']['componentFactory']['add']('restoreRevision',_0x3b9096=>{const _0x826525=new _0x121871(_0x3b9096);return _0x826525['set']({'label':m(_0x3b9096,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x826525['bind']('isEnabled')['to'](_0x53ea74['commands']['get']('restoreRevision')),this['listenTo'](_0x826525,'execute',()=>_0x53ea74['execute']('restoreRevision')),_0x826525;}),_0x53ea74['ui']['componentFactory']['add']('changesNavigation',_0x4b3f18=>{const _0x46df7a=new _i(_0x4b3f18),_0x2c695d=_0x53ea74['commands']['get']('showPreviousChange'),_0x3b9830=_0x53ea74['commands']['get']('showNextChange');return _0x46df7a['bind']('isBackwardNavigationEnabled')['to'](_0x2c695d,'isEnabled'),_0x46df7a['bind']('isForwardNavigationEnabled')['to'](_0x3b9830,'isEnabled'),_0x46df7a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x191969),this['listenTo'](_0x46df7a,'execute',(_0x34ec03,_0x491d43)=>{_0x53ea74['execute']('forward'===_0x491d43?'showNextChange':'showPreviousChange');}),_0x46df7a;}),_0x275a32['show'](),_0x191969['on']('change:isReady',(_0xbf3b7,_0x4754ff,_0x5b627f)=>{_0x5b627f?_0x275a32['hide']():_0x275a32['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x194590,_0x15c5c3){super(_0x194590,_0x15c5c3);const _0x291172=this['bindTemplate'];this['set']({'label':m(_0x194590,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x194590,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x291172['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 _0x604918=this['fieldView']['element'];this['_tooltipString']=_0x604918['scrollWidth']>_0x604918['clientWidth']&&_0x604918['value']||'';}}class ti extends _0x5a1faf{constructor(_0x5821b0,_0x59de5e,_0x19f51a){super(_0x5821b0);const _0xcc50ac=new _0x4e9552();_0xcc50ac['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 _0x1fc9c5=['ck','ck-revision-history-sidebar__revision-author'];_0x19f51a&&_0x1fc9c5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2a6132=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5821b0,_0x19f51a?'Revision\x20creator':'Revision\x20author')},'children':[_0xcc50ac,_0x59de5e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1fc9c5},'children':_0x2a6132});}}function ni(_0x255286,_0x2949b4){const _0x2ea15a=_0x255286['bindTemplate'],_0x18d900=_0x255286['locale'],_0x4321ab=_0x486d6d(_0x18d900);_0x4321ab['panelPosition']='sw';const _0x153715=function(_0x55b2e5,_0x221c70){const _0x1c5092=function(_0x31cd9b,_0x266778){const _0x2f494a=_0x31cd9b['locale'],_0x42d59c={'Compare\x20against\x20selected':m(_0x2f494a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2f494a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2f494a,'Restore\x20this\x20revision')};return _0x266778['map'](_0x3a5ba1=>{const _0x6ddd2=_0x42d59c[_0x3a5ba1['name']];return _0x6ddd2&&_0x6ddd2!==_0x3a5ba1['name']&&(_0x3a5ba1['name']=_0x6ddd2),_0x3a5ba1;});}(_0x55b2e5,_0x221c70),_0x11f7e0=new _0x5f5425();for(const _0x20c56d of _0x1c5092){const _0x56b36a={'type':'button','model':new to({'label':_0x20c56d['name'],'class':_0x20c56d['class'],'withText':!0x0,'role':'menuitem','_action':_0x20c56d['action']})};_0x56b36a['model']['bind']('isEnabled')['to'](_0x55b2e5,'isActionsDropdownOpen',_0x5aaa00=>'function'!=typeof _0x20c56d['isEnabled']||(!_0x5aaa00||_0x20c56d['isEnabled'](_0x55b2e5))),_0x11f7e0['add'](_0x56b36a);}return _0x11f7e0;}(_0x255286,_0x2949b4);return _0x255286['bind']('isActionsDropdownOpen')['to'](_0x4321ab,'isOpen'),_0x4321ab['buttonView']['set']({'label':m(_0x18d900,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x126d4c['threeVerticalDots']}),_0x4321ab['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2ea15a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2ea15a['to'](_0x393e2a=>_0x393e2a['stopPropagation']())}}),_0x4321ab['on']('execute',_0x4a61e2=>{_0x255286['isReady']&&'function'==typeof _0x4a61e2['source']['_action']&&_0x4a61e2['source']['_action'](_0x255286);}),_0x4243bd(_0x4321ab,_0x153715,{'role':'menu'}),_0x4321ab['listenTo'](_0x255286,'change:isActionsDropdownOpen',(_0xe01ac3,_0x34eba6,_0x2d3daa)=>{if(_0x2d3daa)for(const _0x2dc226 of _0x4321ab['listView']['items']){const _0xf3436=_0x2dc226['children']['first'],_0x5b5387=_0x2949b4['find'](_0x42f4aa=>_0x42f4aa['action']===_0xf3436['_action'])['isVisible'];_0x2dc226['isVisible']=void 0x0===_0x5b5387||_0x5b5387(_0x255286);}}),_0x4321ab;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x3e72a3(_0x5a1faf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3552ab,_0x727cff,_0x106d4b,_0x23443e){super(_0x3552ab);const _0x1fb964=this['bindTemplate'],_0x562c7d=function(_0x25467b,_0x2bb4ab){const _0x3320c6=Array['from'](_0x2bb4ab['authors'])['filter'](_0x4ad98e=>_0x4ad98e!=_0x2bb4ab['creator']);return _0x2bb4ab['creator']&&_0x3320c6['unshift'](_0x2bb4ab['creator']),_0x3320c6['map'](_0x476cdd=>new ti(_0x25467b,_0x476cdd,_0x476cdd==_0x2bb4ab['creator']));}(_0x3552ab,_0x727cff);this['id']=_0x727cff['id'],this['_revision']=_0x727cff,this['_requireRevisionName']=_0x23443e,this['bind']('name','createdAt')['to'](_0x727cff),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x32a11e=>{return _0x2028ae=_0x3552ab['uiLanguage'],(_0x329eb8=_0x32a11e)['toLocaleDateString'](_0x2028ae,{'month':'long','day':'numeric'})+',\x20'+_0x329eb8['toLocaleTimeString'](_0x2028ae,{'hour':'numeric','minute':'numeric'});var _0x2028ae,_0x329eb8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3552ab,_0x55e9d8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x81cb33=>_0x81cb33||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x133e91,_0x175cb9)=>_0x133e91&&_0x175cb9),this['revisionActionsView']=_0x106d4b&&_0x106d4b['length']?ni(this,_0x106d4b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1fb964['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1fb964['if']('isEnabled','ck-disabled',_0x393d79=>!_0x393d79),_0x1fb964['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1fb964['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1fb964['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':_0x1fb964['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':_0x562c7d}]},this['revisionActionsView']],'on':{'click':_0x1fb964['to'](_0x3f5e50=>{_0x3f5e50['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3d56a2=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3d56a2,'change',()=>{this['_requireRevisionName']&&!_0x3d56a2['value']||this['fire']('setName',{'id':this['id'],'name':_0x3d56a2['value']}),_0x3d56a2['value']||(_0x3d56a2['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(_0x39860b,_0x5729f2){const _0x1e5221=_0x207f94['fromJSDate'](_0x39860b)['setLocale'](_0x5729f2),_0x42cef6=_0x207f94['local'](),_0x3cc3b0=_0x42cef6['minus']({'days':0x1})['startOf']('day');let _0x247b83,_0x3275e0;return _0x1e5221['hasSame'](_0x42cef6,'day')?(_0x247b83=_0x1e5221['startOf']('day')['toJSDate'](),_0x3275e0=_0x1e5221['toRelativeCalendar']()):_0x1e5221['hasSame'](_0x3cc3b0,'day')?(_0x247b83=_0x3cc3b0['toJSDate'](),_0x3275e0=_0x1e5221['toRelativeCalendar']()):_0x1e5221['hasSame'](_0x42cef6,'week')?(_0x247b83=_0x1e5221['startOf']('week')['toJSDate'](),_0x3275e0=_0x1e5221['weekdayLong']||''):_0x1e5221['hasSame'](_0x42cef6,'year')?(_0x247b83=_0x1e5221['startOf']('month')['toJSDate'](),_0x3275e0=_0x1e5221['monthLong']||''):(_0x247b83=_0x1e5221['startOf']('year')['toJSDate'](),_0x3275e0=String(_0x1e5221['year'])),{'startDate':_0x247b83,'localizedPeriodName':_0x3275e0};}class mi extends _0x5a1faf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x23432c,_0x44486f,_0x3d7d55,_0x5aa15d){super(_0x23432c);const _0x22a12e=di(_0x44486f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x44486f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3d7d55,this['_requireRevisionName']=_0x5aa15d,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':_0x22a12e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x34c792){const _0x148b7a=new ai(this['locale'],_0x34c792,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x148b7a);}['removeRevision'](_0x4ffcbe){const _0x789c26=this['revisionViews']['find'](_0x43f462=>_0x43f462['id']===_0x4ffcbe['id']);this['revisionViews']['remove'](_0x789c26);}}class as extends _0x5a1faf{constructor(_0x37e7e7){super(_0x37e7e7);const _0x3f61c4=new _0x4e9552();_0x3f61c4['content']=_0x126d4c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3f61c4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x37e7e7,'Revision\x20history')]}]});}}class ci extends _0x5a1faf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d9b73,_0x5c1b4d,_0x587775,_0x4ecd7f){super(_0x3d9b73);const _0x5ee93d=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5c1b4d,this['_revisionActions']=_0x587775,this['_requireRevisionName']=_0x4ecd7f,this['on']('select',(_0x11de6a,_0x347f6a)=>{this['fire']('revisionSelected',_0x347f6a);}),this['on']('setName',(_0x5f32e4,_0x2c987a)=>{this['fire']('revisionSetName',_0x2c987a);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d9b73),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5ee93d['if']('isEnabled','ck-disabled',_0xe9e931=>!_0xe9e931)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x13b4b2 of this['_revisions'])this['_addRevision'](_0x13b4b2);this['_revisions']['on']('add',(_0x6499db,_0x218ae5)=>{this['_addRevision'](_0x218ae5);}),this['_revisions']['on']('remove',(_0x2e6820,_0x3cb497)=>{this['_removeRevision'](_0x3cb497);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3639da=>_0x3639da['revisionViews']['map'](_0x3d28d6=>_0x3d28d6))['flat']();}['selectRevision'](_0x56b202){for(const _0x3a9a61 of this['revisionViews'])_0x56b202&&_0x56b202['id']===_0x3a9a61['id']?_0x3a9a61['select']():_0x3a9a61['deselect']();}['highlightRevisions'](_0x9d7079){for(const _0x2915d7 of this['revisionViews'])_0x9d7079['some'](({id:_0x36e1ff})=>_0x36e1ff===_0x2915d7['id'])?_0x2915d7['highlight']():_0x2915d7['unhighlight']();}['_addRevision'](_0x10ccc8){const _0x1723c3=di(_0x10ccc8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2ffc25=this['timePeriodViews']['get'](0x0);_0x2ffc25&&_0x2ffc25['startDate']['getTime']()===_0x1723c3['getTime']()||(_0x2ffc25=new mi(this['locale'],_0x1723c3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2ffc25)),_0x2ffc25['addRevision'](_0x10ccc8);}['_removeRevision'](_0x20f3ac){const _0xa27af0=di(_0x20f3ac['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xa27af0)['removeRevision'](_0x20f3ac);}['_getTimePeriodViewByStartDate'](_0x5f14dc){return this['timePeriodViews']['find'](_0x362875=>_0x362875['startDate']['getTime']()===_0x5f14dc['getTime']());}}class w extends _0x6bed98{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1cb16c){super(_0x1cb16c),this['_revisionViewer']=_0x1cb16c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x66cc60=this['_revisionsRepository']['_revisions'],_0xdbf100=this['_createRevisionActions'](),_0x5783a0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x66cc60,_0xdbf100,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',(_0xbf0c4b,_0x731eb1)=>{_0x731eb1['revisionViews']['on']('add',(_0x55fdb1,_0x13366b)=>{_0x13366b['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)),_0x5783a0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2723ef=this['_revisionsRepository']['getRevision'](0x0);if(_0x2723ef){const _0x65bfa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2723ef['id']);this['_revisionViewer']['compare'](_0x2723ef,_0x65bfa);}}['_handleRevisionSelected'](_0x1df0bf,_0x30c73e){const _0x2f2c83=this['_revisionsRepository']['getRevision'](_0x30c73e['id']),_0x527199=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2f2c83['id']);this['_revisionViewer']['compare'](_0x2f2c83,_0x527199);}['_handleRevisionSetName'](_0x2e17d4,_0x198d37){this['_revisionsRepository']['getRevision'](_0x198d37['id'])['setName'](_0x198d37['name']);}['_handleDiffChange'](_0x87e677,_0x3f1d28,_0x195e44){const _0x9d51a9=this['_revisionsRepository']['getRevisionsInDiff'](_0x195e44);_0x9d51a9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x9d51a9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x9d51a9[0x0]));}['_createRevisionActions'](){const _0x27783d=this['editor'],_0x1207af=w['availableRevisionActions'],_0x3fe426=_0x27783d['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3fe426['length'])return _0x3fe426['map'](_0x4a068d=>{const _0x297909='string'==typeof _0x4a068d?Object['assign']({},_0x1207af[_0x4a068d]):_0x4a068d;return _0x297909['action']=_0x297909['action']['bind'](this,_0x27783d),_0x297909['isVisible']&&(_0x297909['isVisible']=_0x297909['isVisible']['bind'](this,_0x27783d)),_0x297909;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x124343},_0x2f5351)=>{const _0x3b4f5e=_0x124343['get'](d),_0x32c70b=_0x3b4f5e['repository'];let _0x20d8aa=_0x3b4f5e['diff']['newRevisionId'],_0x5d7539=_0x2f5351['id'];_0x32c70b['getIndex'](_0x20d8aa)>_0x32c70b['getIndex'](_0x5d7539)&&([_0x20d8aa,_0x5d7539]=[_0x5d7539,_0x20d8aa]),_0x3b4f5e['compare'](_0x20d8aa,_0x5d7539);},'isVisible':({plugins:_0x5a3942},_0x516fdb)=>{const _0x247e0c=_0x5a3942['get'](d);return!(_0x247e0c['repository']['getRevisionsInDiff'](_0x247e0c['diff'])['length']>0x2)&&!_0x516fdb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b4dc2,{id:_0x40effd})=>{_0x3b4dc2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40effd);},'isVisible':({plugins:_0x57c3d5},_0x57c8bc)=>!!_0x57c3d5['get'](d)['repository']['getLaterVisibleRevision'](_0x57c8bc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b48a2},{id:_0x3bd6d2,revisionNameView:_0x4bf00a})=>{const _0xc2dcfe=_0x2b48a2['get'](d),_0x25071a=_0xc2dcfe['repository']['getEarlierVisibleRevision'](_0x3bd6d2);_0xc2dcfe['compare'](_0x3bd6d2,_0x25071a),_0x4bf00a['focus'](),_0x4bf00a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x12f4ba,_0x161766){super(_0x12f4ba),this['_view']=_0x161766,this['_toolbarConfig']=ot(_0x12f4ba['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3c585c){const _0x23ca2b=this['editor'],_0x199c7d=this['view'],_0x1ef987=_0x23ca2b['editing']['view'],_0x3adf1b=_0x199c7d['editable'],_0x2709f5=_0x1ef987['document']['getRoot']();_0x3adf1b['name']=_0x2709f5['rootName'],_0x199c7d['render']();const _0x1494f9=_0x3adf1b['element'];this['setEditableElement'](_0x3adf1b['name'],_0x1494f9),_0x199c7d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ef987['attachDomRoot'](_0x1494f9),this['_elementReplacer']['replace'](_0x3c585c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x18b8bf=this['view'],_0x94a072=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x94a072['detachDomRoot'](_0x18b8bf['editable']['name']),_0x18b8bf['destroy']();}['_initToolbar'](){const _0xfca0f3=this['view'];_0xfca0f3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfca0f3['stickyPanel']['limiterElement']=_0xfca0f3['element'],_0xfca0f3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x95ea2})=>_0x95ea2),_0xfca0f3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfca0f3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x34dd17,_0x105a74,_0x47efd6={}){super(_0x34dd17),this['stickyPanel']=new ut(_0x34dd17),this['toolbar']=new lt(_0x34dd17,{'shouldGroupWhenFull':_0x47efd6['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x34dd17,_0x105a74);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x21e1ad,_0xc6e691){super(_0xc6e691),this['sourceElement']=_0x21e1ad,this['model']['document']['createRoot']();const _0x17bc22=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17bc22);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32f147,_0x3413d0){const _0x5783f1=new this(_0x32f147,_0x3413d0);return await _0x5783f1['initPlugins'](),await _0x5783f1['ui']['init'](_0x32f147),await _0x5783f1['data']['init'](_0x5783f1['config']['get']('initialData')||''),_0x5783f1['fire']('ready'),_0x5783f1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1420a4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b2f20){function _0x1782cb(_0x58a055){return _0x58a055['map'](_0xce4d16=>String['fromCharCode'](_0xce4d16))['join']('');}super(_0x1b2f20),this['result']='end',_0x1b2f20[_0x1782cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1782cb([0x76,0x69,0x65,0x77])][_0x1782cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1782cb([0x61,0x75,0x74,0x6f]),_0x1b2f20[_0x1782cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1782cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1782cb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1782cb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1782cb([0x6f,0x6b])});}}class k extends _0x1420a4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xaf1526){if(super(_0xaf1526),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea7ff('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x48ecd7=>this['_showRevisionViewer']({..._0x48ecd7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xef42a5=>this['_closeRevisionViewer'](_0xef42a5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44ecb=>this['_restoreRevision'](_0x44ecb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1239d0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1239d0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bef05){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bef05);}['getRevision'](_0x4d0315){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d0315);}['getRevisions'](_0x686e17){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x686e17||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x59ef11=this['editor'],_0x7a5ab0=_0xbfc40b(_0x59ef11,p),_0x5150e2=_0x59ef11['plugins']['get']('RevisionTracker'),_0x1567e8=_0x59ef11['plugins']['get']('Users')['users'];return _0x7a5ab0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x7a5ab0['lazyRoots'],(_0x7a5ab0['plugins']['push'](bt,d,g,class extends _0x1420a4{static get['requires'](){return[d,'Users'];}['init'](){const _0x56822e=this['editor']['plugins']['get']('Users');for(const _0xfe313e of _0x1567e8)_0xfe313e['isAnonymous']||_0x56822e['getUser'](_0xfe313e['id'])||_0x56822e['addUser'](_0xfe313e);const _0x5cb0ec=_0x5150e2['repository']['getRevisions']();let _0x274f58=null;const _0x518e87=this['editor']['plugins']['get']('RevisionViewer');_0x518e87['adapter']=_0x5150e2['adapter'],_0x518e87['bind']('isEnabled')['to'](_0x5150e2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x59ef11,'isReadOnly',_0x2754f5=>!_0x2754f5);for(const _0x5f2e29 of _0x5cb0ec){const _0x352055=null===_0x5f2e29['creator'];if(_0x352055&&_0x5f2e29['toVersion']===_0x5f2e29['fromVersion'])continue;const _0x2217eb=_0x5f2e29['toJSON']();_0x518e87['addRevisionData'](_0x2217eb,(_0x280939,_0xa3b555,_0x180b89)=>{if(_0x352055){if(_0x274f58)_0x274f58['_update'](_0x280939,_0xa3b555);else{if(!_0xa3b555){const _0x258460=_0x180b89['toJSON']();_0x258460['id']=_0x5d66aa(),_0x5150e2['saveRevision'](_0x258460,_0x180b89['toVersion'])['then'](_0x46854a=>{_0x274f58=_0x46854a;});}}}else _0x5f2e29['_update'](_0x280939,_0xa3b555);});}}},w),_0x7a5ab0);}['_enhanceShowRevisionViewerCallback'](){const _0xce541c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x59e97f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4f2da0=this['editor']['plugins']['get']('Autosave');await _0x4f2da0['save']();}else await _0x59e97f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x203dec=this['editor']['plugins']['get']('Dialog');_0x203dec['isOpen']&&_0x203dec['hide']();}const _0x5a8984=this['_getRevisionViewerEditorConfig']();return _0xce541c(_0x5a8984)['then'](_0x15cc0c=>{return(this['_viewerEditor']=_0x15cc0c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x15cc0c;})['catch'](_0x704e40=>(console['error'](_0x704e40),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x35cc34=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'](),_0x35cc34(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x587ccc=this['editor']['plugins']['get']('Annotations');_0x587ccc['refreshVisibility'](),_0x587ccc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d912b){const _0x1a075a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x296988=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1af494=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1af494,_0x4d912b)['then'](_0x1aa783=>(_0x296988['style']['display']='block',_0x1a075a['style']['display']='none',_0x1aa783));}['_closeRevisionViewer'](_0x35bbc5){const _0x4c394a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c394a['style']['display']='',_0x35bbc5['destroy']();}async['_restoreRevision'](_0x2f72ac){const _0x4c5d4f=this['editor'],_0x3f381e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x432f4e=_0x4c5d4f['plugins']['get']('RevisionTracker'),_0x55c149=_0x3f381e['repository']['getRevision'](_0x2f72ac);let _0x123f66,_0x1c2659,_0x5c7290;try{_0x123f66=await _0x3f381e['getRevisionData'](_0x55c149),_0x1c2659=await _0x3f381e['getRevisionRootsAttributes'](_0x55c149);}catch(_0xe2989e){return void console['error'](_0xe2989e);}_0x4c5d4f['model']['change'](_0x3ab56a=>{for(const _0x31d132 of Array['from'](_0x4c5d4f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ab56a['removeMarker'](_0x31d132);}),_0x3f381e['isReady']=!0x1,_0x4c5d4f['model']['enqueueChange'](_0x5d4018=>{_0x5d4018['setSelection'](null),_0x5d4018['removeSelectionAttribute'](_0x4c5d4f['model']['document']['selection']['getAttributeKeys']());const _0x1bb9f3=Object['keys'](_0x123f66);for(const _0x4da2c0 of _0x4c5d4f['model']['document']['roots'])'$graveyard'!=_0x4da2c0['rootName']&&_0x4da2c0['isAttached']()&&!_0x1bb9f3['includes'](_0x4da2c0['rootName'])&&_0x5d4018['detachRoot'](_0x4da2c0);for(const _0x6109c1 of _0x1bb9f3){let _0x55998e=_0x4c5d4f['model']['document']['getRoot'](_0x6109c1);_0x55998e&&_0x55998e['isAttached']()||(_0x55998e=_0x5d4018['addRoot'](_0x6109c1));const _0x47e3e2=_0x1c2659[_0x6109c1],_0xe71936=Object['keys'](_0x47e3e2),_0x5b9dd1=_0x123f66[_0x6109c1];for(const _0xcb8a40 of _0x55998e['getAttributeKeys']())_0xe71936['includes'](_0xcb8a40)||_0x5d4018['removeAttribute'](_0xcb8a40,_0x55998e);for(const _0x20f45d of _0xe71936)_0x5d4018['setAttribute'](_0x20f45d,_0x1c2659[_0x6109c1][_0x20f45d],_0x55998e);_0x5d4018['remove'](_0x5d4018['createRangeIn'](_0x55998e)),_0x5d4018['insert'](_0x4c5d4f['data']['parse'](_0x5b9dd1,_0x55998e),_0x55998e,0x0);}});const _0x1ec31c=m(_0x4c5d4f['locale'],'Restored');if(_0x55c149['name'])_0x5c7290=-0x1==_0x55c149['name']['indexOf'](_0x1ec31c)?_0x1ec31c+':\x20'+_0x55c149['name']:_0x55c149['name'];else _0x5c7290=_0x1ec31c+':\x20'+(_0x55c149['createdAt']['toLocaleDateString'](_0x4c5d4f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x55c149['createdAt']['toLocaleTimeString'](_0x4c5d4f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x432f4e['saveRevision']({'name':_0x5c7290}),_0x3f381e['isReady']=!0x0,_0x4c5d4f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x583690){super(_0x583690),this['_revisionViewer']=_0x583690['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1cfe89=this['_revisionsRepository']['_revisions'],_0x561246=this['_createRevisionActions'](),_0x34f96c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1cfe89,_0x561246,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',(_0x76c387,_0x42b214)=>{_0x42b214['revisionViews']['on']('add',(_0x56c947,_0xee9742)=>{_0xee9742['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)),_0x34f96c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x46e911=this['_revisionsRepository']['getRevision'](0x0);if(_0x46e911){const _0xd3ce9d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x46e911['id']);this['_revisionViewer']['compare'](_0x46e911,_0xd3ce9d);}}['_handleRevisionSelected'](_0x1d2789,_0x30b934){const _0x2a17e9=this['_revisionsRepository']['getRevision'](_0x30b934['id']),_0x39c4c0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2a17e9['id']);this['_revisionViewer']['compare'](_0x2a17e9,_0x39c4c0);}['_handleRevisionSetName'](_0x448c0f,_0x143cc3){this['_revisionsRepository']['getRevision'](_0x143cc3['id'])['setName'](_0x143cc3['name']);}['_handleDiffChange'](_0x4f7c9d,_0x35dfda,_0x588e02){const _0x39407f=this['_revisionsRepository']['getRevisionsInDiff'](_0x588e02);_0x39407f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x39407f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x39407f[0x0]));}['_createRevisionActions'](){const _0x5e0e78=this['editor'],_0x171241=w['availableRevisionActions'],_0x222cd4=_0x5e0e78['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x222cd4['length'])return _0x222cd4['map'](_0x2ab1b7=>{const _0x151a8b='string'==typeof _0x2ab1b7?Object['assign']({},_0x171241[_0x2ab1b7]):_0x2ab1b7;return _0x151a8b['action']=_0x151a8b['action']['bind'](this,_0x5e0e78),_0x151a8b['isVisible']&&(_0x151a8b['isVisible']=_0x151a8b['isVisible']['bind'](this,_0x5e0e78)),_0x151a8b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1e5fe3},_0x55fb4c)=>{const _0x274075=_0x1e5fe3['get'](d),_0x25a94c=_0x274075['repository'];let _0x38ea95=_0x274075['diff']['newRevisionId'],_0x182af5=_0x55fb4c['id'];_0x25a94c['getIndex'](_0x38ea95)>_0x25a94c['getIndex'](_0x182af5)&&([_0x38ea95,_0x182af5]=[_0x182af5,_0x38ea95]),_0x274075['compare'](_0x38ea95,_0x182af5);},'isVisible':({plugins:_0x485a94},_0x4f0bc5)=>{const _0x446a60=_0x485a94['get'](d);return!(_0x446a60['repository']['getRevisionsInDiff'](_0x446a60['diff'])['length']>0x2)&&!_0x4f0bc5['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xd75d0a,{id:_0x3d8d17})=>{_0xd75d0a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d8d17);},'isVisible':({plugins:_0x3e3794},_0x51e5d9)=>!!_0x3e3794['get'](d)['repository']['getLaterVisibleRevision'](_0x51e5d9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4f8a31},{id:_0x2f6ca1,revisionNameView:_0x25a969})=>{const _0x54a288=_0x4f8a31['get'](d),_0x1ae582=_0x54a288['repository']['getEarlierVisibleRevision'](_0x2f6ca1);_0x54a288['compare'](_0x2f6ca1,_0x1ae582),_0x25a969['focus'](),_0x25a969['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x54b6a3,_0x10e685){super(_0x54b6a3),this['_view']=_0x10e685,this['_toolbarConfig']=ot(_0x54b6a3['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3e18f5){const _0x4243d1=this['editor'],_0x21cf43=this['view'],_0x5020ed=_0x4243d1['editing']['view'],_0x12e1a7=_0x21cf43['editable'],_0x151288=_0x5020ed['document']['getRoot']();_0x12e1a7['name']=_0x151288['rootName'],_0x21cf43['render']();const _0x3b2871=_0x12e1a7['element'];this['setEditableElement'](_0x12e1a7['name'],_0x3b2871),_0x21cf43['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5020ed['attachDomRoot'](_0x3b2871),this['_elementReplacer']['replace'](_0x3e18f5,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2dac91=this['view'],_0x14456e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x14456e['detachDomRoot'](_0x2dac91['editable']['name']),_0x2dac91['destroy']();}['_initToolbar'](){const _0x2d54df=this['view'];_0x2d54df['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2d54df['stickyPanel']['limiterElement']=_0x2d54df['element'],_0x2d54df['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d6379})=>_0x4d6379),_0x2d54df['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2d54df['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x32bcb8,_0x58c476,_0xfe4741={}){super(_0x32bcb8),this['stickyPanel']=new ut(_0x32bcb8),this['toolbar']=new lt(_0x32bcb8,{'shouldGroupWhenFull':_0xfe4741['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x32bcb8,_0x58c476);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x351f33,_0x55366e){super(_0x55366e),this['sourceElement']=_0x351f33,this['model']['document']['createRoot']();const _0xf0fc00=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xf0fc00);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x446b9c,_0x976e14){const _0x511a81=new this(_0x446b9c,_0x976e14);return await _0x511a81['initPlugins'](),await _0x511a81['ui']['init'](_0x446b9c),await _0x511a81['data']['init'](_0x511a81['config']['get']('initialData')||''),_0x511a81['fire']('ready'),_0x511a81;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x6bed98{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5edcbb){function _0x2a68ba(_0x37e0cf){return _0x37e0cf['map'](_0x5bf498=>String['fromCharCode'](_0x5bf498))['join']('');}super(_0x5edcbb),this['result']='end',_0x5edcbb[_0x2a68ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a68ba([0x76,0x69,0x65,0x77])][_0x2a68ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a68ba([0x61,0x75,0x74,0x6f]),_0x5edcbb[_0x2a68ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a68ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a68ba([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a68ba([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a68ba([0x6f,0x6b])});}}class k extends _0x6bed98{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2d9b1f){if(super(_0x2d9b1f),!this['editor']['config']['get']('revisionHistory'))throw new _0x139db2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4a0686=>this['_showRevisionViewer']({..._0x4a0686,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xd8e4b6=>this['_closeRevisionViewer'](_0xd8e4b6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1facca=>this['_restoreRevision'](_0x1facca)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4b4c36){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4b4c36;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x30b863){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x30b863);}['getRevision'](_0x34a7ee){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x34a7ee);}['getRevisions'](_0x153ad8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x153ad8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x120d2d=this['editor'],_0xe9911e=_0x40e01e(_0x120d2d,p),_0x695264=_0x120d2d['plugins']['get']('RevisionTracker'),_0x4620eb=_0x120d2d['plugins']['get']('Users')['users'];return _0xe9911e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xe9911e['lazyRoots'],(_0xe9911e['plugins']['push'](Rt,d,g,class extends _0x6bed98{static get['requires'](){return[d,'Users'];}['init'](){const _0x43c55f=this['editor']['plugins']['get']('Users');for(const _0x742cac of _0x4620eb)_0x742cac['isAnonymous']||_0x43c55f['getUser'](_0x742cac['id'])||_0x43c55f['addUser'](_0x742cac);const _0x7dc845=_0x695264['repository']['getRevisions']();let _0x34f249=null;const _0x38fa65=this['editor']['plugins']['get']('RevisionViewer');_0x38fa65['adapter']=_0x695264['adapter'],_0x38fa65['bind']('isEnabled')['to'](_0x695264),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x120d2d,'isReadOnly',_0x2d2bf5=>!_0x2d2bf5);for(const _0x1a5dcb of _0x7dc845){const _0x1940f6=null===_0x1a5dcb['creator'];if(_0x1940f6&&_0x1a5dcb['toVersion']===_0x1a5dcb['fromVersion'])continue;const _0x466cd2=_0x1a5dcb['toJSON']();_0x38fa65['addRevisionData'](_0x466cd2,(_0x4bc946,_0x5a248f,_0x549f21)=>{if(_0x1940f6){if(_0x34f249)_0x34f249['_update'](_0x4bc946,_0x5a248f);else{if(!_0x5a248f){const _0x903f53=_0x549f21['toJSON']();_0x903f53['id']=_0x1b3a3e(),_0x695264['saveRevision'](_0x903f53,_0x549f21['toVersion'])['then'](_0x24f992=>{_0x34f249=_0x24f992;});}}}else _0x1a5dcb['_update'](_0x4bc946,_0x5a248f);});}}},w),_0xe9911e);}['_enhanceShowRevisionViewerCallback'](){const _0x492e46=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4aa0b9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1ea24a=this['editor']['plugins']['get']('Autosave');await _0x1ea24a['save']();}else await _0x4aa0b9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x11ceda=this['editor']['plugins']['get']('Dialog');_0x11ceda['isOpen']&&_0x11ceda['hide']();}const _0x5ca5e0=this['_getRevisionViewerEditorConfig']();return _0x492e46(_0x5ca5e0)['then'](_0xe30036=>{return(this['_viewerEditor']=_0xe30036,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xe30036;})['catch'](_0x4acce2=>(console['error'](_0x4acce2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x17db6e=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'](),_0x17db6e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x29f063=this['editor']['plugins']['get']('Annotations');_0x29f063['refreshVisibility'](),_0x29f063['refreshPositioning']();}})));}['_showRevisionViewer'](_0x9ee9ce){const _0x4212f9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xbad041=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x221858=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x221858,_0x9ee9ce)['then'](_0x3ddc45=>(_0xbad041['style']['display']='block',_0x4212f9['style']['display']='none',_0x3ddc45));}['_closeRevisionViewer'](_0x29fece){const _0x2c4206=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2c4206['style']['display']='',_0x29fece['destroy']();}async['_restoreRevision'](_0x3d2652){const _0x23595e=this['editor'],_0x250e89=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x21fc23=_0x23595e['plugins']['get']('RevisionTracker'),_0xfa69a=_0x250e89['repository']['getRevision'](_0x3d2652);let _0x851c52,_0x3b9489,_0x5f141d;try{_0x851c52=await _0x250e89['getRevisionData'](_0xfa69a),_0x3b9489=await _0x250e89['getRevisionRootsAttributes'](_0xfa69a);}catch(_0x2a57a2){return void console['error'](_0x2a57a2);}_0x23595e['model']['change'](_0x2516b1=>{for(const _0xd9fc1b of Array['from'](_0x23595e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2516b1['removeMarker'](_0xd9fc1b);}),_0x250e89['isReady']=!0x1,_0x23595e['model']['enqueueChange'](_0x43f5f1=>{_0x43f5f1['setSelection'](null),_0x43f5f1['removeSelectionAttribute'](_0x23595e['model']['document']['selection']['getAttributeKeys']());const _0x48b8a8=Object['keys'](_0x851c52);for(const _0x2c27cf of _0x23595e['model']['document']['roots'])'$graveyard'!=_0x2c27cf['rootName']&&_0x2c27cf['isAttached']()&&!_0x48b8a8['includes'](_0x2c27cf['rootName'])&&_0x43f5f1['detachRoot'](_0x2c27cf);for(const _0x7aa343 of _0x48b8a8){let _0x2bff3d=_0x23595e['model']['document']['getRoot'](_0x7aa343);_0x2bff3d&&_0x2bff3d['isAttached']()||(_0x2bff3d=_0x43f5f1['addRoot'](_0x7aa343));const _0x299b8e=_0x3b9489[_0x7aa343],_0x1e5a50=Object['keys'](_0x299b8e),_0x128791=_0x851c52[_0x7aa343];for(const _0x385cf0 of _0x2bff3d['getAttributeKeys']())_0x1e5a50['includes'](_0x385cf0)||_0x43f5f1['removeAttribute'](_0x385cf0,_0x2bff3d);for(const _0xea3170 of _0x1e5a50)_0x43f5f1['setAttribute'](_0xea3170,_0x3b9489[_0x7aa343][_0xea3170],_0x2bff3d);_0x43f5f1['remove'](_0x43f5f1['createRangeIn'](_0x2bff3d)),_0x43f5f1['insert'](_0x23595e['data']['parse'](_0x128791,_0x2bff3d),_0x2bff3d,0x0);}});const _0x2caf50=m(_0x23595e['locale'],'Restored');if(_0xfa69a['name'])_0x5f141d=-0x1==_0xfa69a['name']['indexOf'](_0x2caf50)?_0x2caf50+':\x20'+_0xfa69a['name']:_0xfa69a['name'];else _0x5f141d=_0x2caf50+':\x20'+(_0xfa69a['createdAt']['toLocaleDateString'](_0x23595e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xfa69a['createdAt']['toLocaleTimeString'](_0x23595e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x21fc23['saveRevision']({'name':_0x5f141d}),_0x250e89['isReady']=!0x0,_0x23595e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};