@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250303.0 → 0.0.0-nightly-next-20250304.0

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 _0x60908,uid as _0x57caab,Collection as _0x58935e,logWarning as _0x3f61ea,FocusTracker as _0x47d5d4,KeystrokeHandler as _0xe91580,scrollViewportToShowTarget as _0x3f9ecc,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x18e6a6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3390ee,set as _0x3d36ab,unset as _0x842117,isEqual as _0x4fb800}from'es-toolkit/compat';import{Plugin as _0x593b73,PendingActions as _0x50329a,Command as _0x817d7b,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x43ff84,getMarkerDomElement as _0x3a6583,ConfirmMixin as ti,sanitizeEditorConfig as _0x448f62}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x315509,Element as ut,Range as ft,ViewUIElement as _0x26d2eb,ViewRawElement as _0x537e4a,ViewEmptyElement as _0x3a3849,ViewAttributeElement as _0x3e3aeb,ViewContainerElement as _0xf127a5,Position as vt,ViewText as _0x19bc4e,ViewElement as _0x27da50,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x45f1b2,IconChevronUp as _0xc02e0b,IconChevronDown as _0x7fa6de,IconUndo as _0x499628,IconUser as _0x22e382,IconThreeVerticalDots as _0x1df601}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x560ed4,submitHandler as _0x54cb86,LabeledFieldView as _0x2f3f89,createLabeledInputText as _0xdef740,createDropdown as _0x23f68e,ListView as _0x2c5e24,ListItemView as _0x5c16cf,ButtonView as te,MenuBarMenuView as _0x186b5b,MenuBarMenuListView as _0x54d50a,MenuBarMenuListItemView as _0x3e356b,MenuBarMenuListItemButtonView as _0x361679,ContextualBalloon as _0x14242,ToolbarSeparatorView as _0xace4b1,IconView as _0x34b5bd,addListToDropdown as _0x399fd2,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x26a4b2}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x60908(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f3f75){super(),this['id']=_0x3f3f75['id']||_0x57caab(),this['creator']=_0x3f3f75['creator']||null,this['authors']=_0x3f3f75['authors']||[],this['diffData']=_0x3f3f75['diffData']||null,this['toVersion']=_0x3f3f75['toVersion']||0x0,this['fromVersion']=_0x3f3f75['fromVersion']||0x0,this['set']('name',_0x3f3f75['name']||''),this['set']('createdAt',_0x3f3f75['createdAt']||new Date()),this['set']('attributes',_0x3f3f75['attributes']||{});}['setName'](_0x535524){this['_update']({'name':_0x535524});}['setAttribute'](_0x455c29,_0xd50226){const _0x462533=_0x3390ee(this['attributes']);_0x3d36ab(_0x462533,_0x455c29,_0xd50226),this['_update']({'attributes':_0x462533});}['removeAttribute'](_0x4fba84){const _0x58b66f=_0x3390ee(this['attributes']);_0x842117(_0x58b66f,_0x4fba84),this['_update']({'attributes':_0x58b66f});}['_update'](_0x207635,_0x3b08e3=!0x1){let _0x1c7659=!0x1;const _0xbd122d={'id':this['id']},_0x2732b9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x9ee86c of _0x2732b9){const _0x279ef9=_0x207635[_0x9ee86c];void 0x0!==_0x279ef9&&_0x279ef9!==this[_0x9ee86c]&&(this[_0x9ee86c]=_0x279ef9,_0xbd122d[_0x9ee86c]=_0x279ef9,_0x1c7659=!0x0);}_0x1c7659&&(_0xbd122d['authors']&&(_0xbd122d['authorsIds']=_0xbd122d['authors']['map'](_0xbbda3d=>_0xbbda3d['id']),delete _0xbd122d['authors']),this['fire']('_update',_0xbd122d,_0x3b08e3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55670e=>_0x55670e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x593b73{['_revisions'];static get['requires'](){return[_0x43ff84];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5be9ca){super(_0x5be9ca),this['_revisions']=new _0x58935e();}['afterInit'](){!async function(_0x3f5154){const _0x58b4f0=_0x5b56ea([0x74,0x35,0x71,0x50,0x39,0x37,0x45,0x70,0x43,0x63,0x6c,0x78,0x77,0x4b,0x73,0x33,0x46,0x48,0x4f,0x30,0x44,0x41,0x42,0x56,0x62,0x69,0x7a,0x6b,0x58,0x54,0x67,0x6d,0x4e,0x34,0x64,0x36,0x32,0x49,0x38,0x4d,0x5a,0x79,0x51,0x65,0x53,0x59,0x76,0x6a,0x57,0x52,0x6f,0x61,0x72,0x47,0x68,0x4c,0x31,0x75,0x55,0x66,0x6e,0x4a]),_0x34815c=0xeb829,_0x12ef75=0x401fa740,_0x3a07ac=0x4018c650^_0x12ef75,_0x5acbe7=window[_0x5b56ea([0x44,0x61,0x74,0x65])][_0x5b56ea([0x6e,0x6f,0x77])](),_0x3f778e=_0x3f5154[_0x5b56ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39fd95=new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cc770=>{_0x3f778e[_0x5b56ea([0x6f,0x6e,0x63,0x65])](_0x5b56ea([0x72,0x65,0x61,0x64,0x79]),_0x2cc770);}),_0x5bec6e={[_0x5b56ea([0x6b,0x74,0x79])]:_0x5b56ea([0x45,0x43]),[_0x5b56ea([0x75,0x73,0x65])]:_0x5b56ea([0x73,0x69,0x67]),[_0x5b56ea([0x63,0x72,0x76])]:_0x5b56ea([0x50,0x2d,0x32,0x35,0x36]),[_0x5b56ea([0x78])]:_0x5b56ea([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]),[_0x5b56ea([0x79])]:_0x5b56ea([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]),[_0x5b56ea([0x61,0x6c,0x67])]:_0x5b56ea([0x45,0x53,0x32,0x35,0x36])},_0x3903a7=_0x3f778e[_0x5b56ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b56ea([0x67,0x65,0x74])](_0x5b56ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32ec79(){let _0x35f7e2,_0x31c2c6=null,_0x5093d5=null;try{if(_0x3903a7==_0x5b56ea([0x47,0x50,0x4c]))return _0x5b56ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35f7e2=_0x4d35e8(),!_0x35f7e2)return _0x5b56ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35f7e2[_0x5b56ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5093d5=_0xff353a(_0x35f7e2[_0x5b56ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35f7e2[_0x5b56ea([0x6a,0x74,0x69])])),await _0x5a33d4()?_0xdbe427()?_0xe2fa39()?_0x5b56ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33f28e()?(_0x35f7e2[_0x5b56ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b56ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31c2c6=_0x214b20(_0x5b56ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35f7e2[_0x5b56ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b56ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x31c2c6=_0x214b20(_0x5b56ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc30edf()):_0x5b56ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b56ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b56ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b3d3d){return _0x5b56ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe2fa39(){const _0x470366=[_0x5b56ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b56ea([0x74,0x72,0x69,0x61,0x6c])][_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35f7e2[_0x5b56ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5acbe7/0x3e8:0xe10*_0x3a07ac;return _0x35f7e2[_0x5b56ea([0x65,0x78,0x70])]<_0x470366;}function _0xdbe427(){const _0x454ece=_0x35f7e2[_0x5b56ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x454ece)return!0x1;if(_0x454ece[_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b56ea([0x2a])))return!0x0;if(_0x454ece[_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b56ea([0x52,0x48])))return!0x0;if(_0x454ece[_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b56ea([0x52,0x52,0x48]))){if(_0x57a496())return!0x0;if(_0x165032()||_0x4606e6())return!0x0;}return!0x1;}function _0x33f28e(){const _0x1a33ee=_0x35f7e2[_0x5b56ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a33ee||0x0==_0x1a33ee[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a8e39}=new URL(window[_0x5b56ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a33ee[_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8e39))return!0x0;const _0x5e2b37=_0x3a8e39[_0x5b56ea([0x73,0x70,0x6c,0x69,0x74])](_0x5b56ea([0x2e]));return _0x1a33ee[_0x5b56ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x271fc7=>_0x271fc7[_0x5b56ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b56ea([0x2a])))[_0x5b56ea([0x6d,0x61,0x70])](_0x7d82b9=>_0x7d82b9[_0x5b56ea([0x73,0x70,0x6c,0x69,0x74])](_0x5b56ea([0x2e])))[_0x5b56ea([0x73,0x6f,0x6d,0x65])](_0x1f95f3=>_0x5e2b37[_0x5b56ea([0x65,0x76,0x65,0x72,0x79])]((_0x4b8092,_0xa95202)=>_0x1f95f3[_0xa95202]===_0x4b8092||_0x1f95f3[_0xa95202]===_0x5b56ea([0x2a])));}function _0xc30edf(){return _0x31c2c6&&_0x5093d5?new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a28cd,_0x3bd595)=>{_0x31c2c6[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x2a28cd,_0x3bd595),_0x5093d5[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x27fd4a=>{_0x27fd4a!=_0x5b56ea([0x56,0x61,0x6c,0x69,0x64])&&_0x2a28cd(_0x27fd4a);},_0x3bd595);}):_0x31c2c6||_0x5093d5||_0x5b56ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0xff353a(_0x3d874b,_0x37a25f){return new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fb3e=>{if(_0x59d756())return _0x11fb3e(_0x5b56ea([0x56,0x61,0x6c,0x69,0x64]));_0x27531f(),_0x3f778e[_0x5b56ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b56ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x401e48=!0x1;const _0x1d8f63=_0x57caab();function _0x3bd350(_0x3ed492){return!!_0x3ed492&&(typeof _0x3ed492===_0x5b56ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ed492===_0x5b56ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ed492[_0x5b56ea([0x74,0x68,0x65,0x6e])]===_0x5b56ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ed492[_0x5b56ea([0x63,0x61,0x74,0x63,0x68])]===_0x5b56ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dc596(_0x16d6c6){_0x1d2ccf(_0x16d6c6)[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x24cf0c=>{if(!_0x24cf0c||_0x24cf0c[_0x5b56ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b56ea([0x6f,0x6b]))return _0x5b56ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x82b21(_0x16bee2(_0x1d8f63+_0x37a25f))!=_0x24cf0c[_0x5b56ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b56ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b56ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x3703eb=>(_0x3cba37(),_0x3703eb),()=>{const _0x455df2=_0x19fbb5();return null==_0x455df2?(_0x3cba37(),_0x5b56ea([0x56,0x61,0x6c,0x69,0x64])):_0x5b56ea(_0x5acbe7-_0x455df2>(0x64132340^_0x12ef75)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x11fb3e)[_0x5b56ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11fb3e(_0x5b56ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42592c=0x402949c0^_0x12ef75;function _0x3cba37(){const _0x5cb926=_0x5b56ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x82b21(_0x16bee2(_0x3d874b)),_0x1bb8ff=_0x4ad7f5(_0x82b21(window[_0x5b56ea([0x4d,0x61,0x74,0x68])][_0x5b56ea([0x63,0x65,0x69,0x6c])](_0x5acbe7/_0x42592c)));window[_0x5b56ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b56ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cb926,_0x1bb8ff);}function _0x19fbb5(){const _0x430f3d=_0x5b56ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x82b21(_0x16bee2(_0x3d874b)),_0x2a9435=window[_0x5b56ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b56ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x430f3d);return _0x2a9435?window[_0x5b56ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad7f5(_0x2a9435),0x10)*_0x42592c:null;}function _0x1d2ccf(_0x410d7c){return new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41c4ad,_0x1c5b58)=>{_0x410d7c[_0x5b56ea([0x74,0x68,0x65,0x6e])](_0x41c4ad,_0x1c5b58),window[_0x5b56ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c5b58,0x401e7380^_0x12ef75);});}}_0x3f778e[_0x5b56ea([0x6f,0x6e])](_0x5b56ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e3179,_0x20bbff)=>{if(_0x20bbff[0x0]!=_0x3d874b)return _0x11fb3e(_0x5b56ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20bbff[0x1]={..._0x20bbff[0x1],[_0x5b56ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d8f63};},{[_0x5b56ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b56ea([0x68,0x69,0x67,0x68])}),_0x3f778e[_0x5b56ea([0x6f,0x6e])](_0x5b56ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf33275=>{_0x3bd350(_0xf33275[_0x5b56ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x401e48=!0x0,_0x5dc596(_0xf33275[_0x5b56ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b56ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b56ea([0x6c,0x6f,0x77])}),_0x39fd95[_0x5b56ea([0x74,0x68,0x65,0x6e])](()=>{_0x401e48||_0x11fb3e(_0x5b56ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59d756(){return _0x3f778e[_0x5b56ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b56ea([0x76,0x69,0x65,0x77])][_0x5b56ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b56ea([0x61,0x75,0x74,0x6f]);}function _0x27531f(){_0x3f778e[_0x5b56ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b56ea([0x76,0x69,0x65,0x77])][_0x5b56ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b56ea([0x61,0x75,0x74,0x6f]);}}function _0x214b20(_0x4fe06e){const _0x398eae=[new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29dd6c=>setTimeout(_0x29dd6c,0x4016998c^_0x12ef75)),_0x39fd95[_0x5b56ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a9d2=>{const _0x2ed366=0x401fa747^_0x12ef75,_0x5646ce=_0x3f5154[_0x5b56ea([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4dca02(){_0x5646ce[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2ed366&&_0x53a9d2();}_0x4dca02(),_0x5646ce[_0x5b56ea([0x6f,0x6e])](_0x5b56ea([0x61,0x64,0x64]),_0x4dca02);})),new window[(_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d270=>{function _0x27f3ca(){for(const _0x12fd9a in window)if(window[_0x5b56ea([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b56ea([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x12fd9a))&&window[_0x12fd9a]==_0x34815c)return _0x36d270();_0x3f778e[_0x5b56ea([0x73,0x74,0x61,0x74,0x65])]!=_0x5b56ea([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b56ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x27f3ca,0x401fb4c8^_0x12ef75);}_0x59a08b(_0x5b56ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x27f3ca();})];return window[_0x5b56ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b56ea([0x72,0x61,0x63,0x65])](_0x398eae)[_0x5b56ea([0x74,0x68,0x65,0x6e])](()=>_0x4fe06e);}async function _0x31b023(){if(await _0x39fd95,_0x59a08b(_0x5b56ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2ca8ce=_0x3f5154[_0x5b56ea([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xd6fa97=_0x3f5154[_0x5b56ea([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])](_0x2ca8ce[_0x5b56ea([0x69,0x64])]),_0x2bf19c=_0xb2e2df(_0x5b56ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2bf19c[_0x5b56ea([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2ca8ce['id'],_0xd6fa97?_0xd6fa97['id']:null,!0x0),_0x2bf19c[_0x5b56ea([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b56ea([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2bf19c[_0x5b56ea([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2bf19c[_0x5b56ea([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x33ae8e,void(_0x2bf19c[_0x5b56ea([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x33ae8e);}if(_0x59a08b(_0x5b56ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x10c1dc=_0xb2e2df(_0x5b56ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x10c1dc[_0x5b56ea([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b56ea([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10c1dc[_0x5b56ea([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10c1dc[_0x5b56ea([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x33ae8e,_0x10c1dc[_0x5b56ea([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x33ae8e;}_0x3f778e[_0x5b56ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b56ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33ae8e,_0x3f778e[_0x5b56ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b56ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33ae8e,_0x3f778e[_0x5b56ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b56ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57a496(){return _0x59a08b(_0x5b56ea([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb2e2df(_0x5b56ea([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b56ea([0x73,0x74,0x61,0x74,0x65])]==_0x5b56ea([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x165032(){return _0x59a08b(_0x5b56ea([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 _0x4606e6(){return _0x59a08b(_0x5b56ea([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x888f81(_0xad2a6c){const _0x15f2f2=_0x326fe3();_0x3f778e[_0x15f2f2]=_0x5b56ea([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])+_0xad2a6c,_0xad2a6c[_0x5b56ea([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b56ea([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x326fe3()]=_0x34815c),_0xad2a6c!=_0x5b56ea([0x56,0x61,0x6c,0x69,0x64])&&_0x31b023();}function _0x326fe3(){const _0x547425=window[_0x5b56ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b56ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b56ea([0x6e,0x6f,0x77])]())[_0x5b56ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b56ea([0x2e]),'');let _0x296d4e=_0x5b56ea([0x74]);for(let _0x19037d=0x0;_0x19037d<_0x547425[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19037d+=0x2){let _0xb057e7=window[_0x5b56ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547425[_0x5b56ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19037d,_0x19037d+0x2));_0xb057e7>=_0x58b4f0[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb057e7-=_0x58b4f0[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x296d4e+=_0x58b4f0[_0xb057e7];}return _0x296d4e;}function _0x4d35e8(){const _0x42c686=_0x3903a7[_0x5b56ea([0x73,0x70,0x6c,0x69,0x74])](_0x5b56ea([0x2e]));if(0x3!=_0x42c686[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x116ba8(_0x42c686[0x1]);function _0x116ba8(_0x46ac69){const _0x27a99f=_0x4b91b3(_0x46ac69);return _0x27a99f&&_0x5047ef()?_0x27a99f:null;function _0x5047ef(){const _0x4250ab=_0x27a99f[_0x5b56ea([0x6a,0x74,0x69])],_0x3c4d0c=window[_0x5b56ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4250ab[_0x5b56ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4250ab[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3352f4={..._0x27a99f,[_0x5b56ea([0x6a,0x74,0x69])]:_0x4250ab[_0x5b56ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4250ab[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3352f4[_0x5b56ea([0x76,0x63])],_0x16bee2(_0x3352f4)==_0x3c4d0c;}}}async function _0x5a33d4(){let _0x154bf3=!0x0;try{const _0x4ecef1=_0x3903a7[_0x5b56ea([0x73,0x70,0x6c,0x69,0x74])](_0x5b56ea([0x2e])),[_0x146243,_0x349ddc,_0xb87469]=_0x4ecef1;return _0x22b090(_0x146243),await _0x57eb2b(_0x146243,_0x349ddc,_0xb87469),_0x154bf3;}catch(_0xb4785a){return!0x1;}function _0x22b090(_0xb42c74){const _0x4b7f86=_0x4b91b3(_0xb42c74);_0x4b7f86&&_0x4b7f86[_0x5b56ea([0x61,0x6c,0x67])]==_0x5b56ea([0x45,0x53,0x32,0x35,0x36])||(_0x154bf3=!0x1);}async function _0x57eb2b(_0x14e96d,_0x455668,_0x8f1302){const _0x26ff91=window[_0x5b56ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b56ea([0x66,0x72,0x6f,0x6d])](_0x11d28e(_0x8f1302),_0x1f9a49=>_0x1f9a49[_0x5b56ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32270d=new window[(_0x5b56ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b56ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14e96d+_0x5b56ea([0x2e])+_0x455668),_0x27b1f8=window[_0x5b56ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b56ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27b1f8)return;const _0x19a9dd=await _0x27b1f8[_0x5b56ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b56ea([0x6a,0x77,0x6b]),_0x5bec6e,{[_0x5b56ea([0x6e,0x61,0x6d,0x65])]:_0x5b56ea([0x45,0x43,0x44,0x53,0x41]),[_0x5b56ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b56ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b56ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27b1f8[_0x5b56ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b56ea([0x6e,0x61,0x6d,0x65])]:_0x5b56ea([0x45,0x43,0x44,0x53,0x41]),[_0x5b56ea([0x68,0x61,0x73,0x68])]:{[_0x5b56ea([0x6e,0x61,0x6d,0x65])]:_0x5b56ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19a9dd,_0x26ff91,_0x32270d)||(_0x154bf3=!0x1);}}function _0x4b91b3(_0x386bd8){return _0x386bd8[_0x5b56ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b56ea([0x65,0x79]))?JSON[_0x5b56ea([0x70,0x61,0x72,0x73,0x65])](_0x11d28e(_0x386bd8)):null;}function _0x11d28e(_0x3560f7){return window[_0x5b56ea([0x61,0x74,0x6f,0x62])](_0x3560f7[_0x5b56ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b56ea([0x2b]))[_0x5b56ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b56ea([0x2f])));}function _0x16bee2(_0x52583a){let _0x2e47e7=0x1505;function _0x5c02a1(_0x177414){for(let _0x101d96=0x0;_0x101d96<_0x177414[_0x5b56ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x101d96++){const _0x518551=_0x177414[_0x5b56ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x101d96);_0x2e47e7=(_0x2e47e7<<0x5)+_0x2e47e7+_0x518551,_0x2e47e7&=_0x2e47e7;}}function _0x34ec3f(_0x58590a){Array[_0x5b56ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58590a)?_0x58590a[_0x5b56ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34ec3f):_0x58590a&&typeof _0x58590a==_0x5b56ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b56ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58590a)[_0x5b56ea([0x73,0x6f,0x72,0x74])]()[_0x5b56ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bff58,_0x383e48])=>{_0x5c02a1(_0x5bff58),_0x34ec3f(_0x383e48);}):_0x5c02a1(window[_0x5b56ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58590a));}return _0x34ec3f(_0x52583a),_0x2e47e7>>>0x0;}function _0x82b21(_0x30f4d1){return _0x30f4d1[_0x5b56ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b56ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b56ea([0x30]));}function _0x4ad7f5(_0x2f5b52){return _0x2f5b52[_0x5b56ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b56ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b56ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x59a08b(_0x511d3a){return _0x3f778e[_0x5b56ea([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b56ea([0x68,0x61,0x73])](_0x511d3a);}function _0xb2e2df(_0x45649c){return _0x3f778e[_0x5b56ea([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b56ea([0x67,0x65,0x74])](_0x45649c);}function _0x33ae8e(){}function _0x5b56ea(_0x371d88){return _0x371d88['map'](_0x3b62f=>String['fromCharCode'](_0x3b62f))['join']('');}_0x888f81(await _0x32ec79());}(this);}['createRevision'](_0x369092){const _0x63eb2f=this['editor']['plugins']['get']('Users');return new h({'id':_0x369092['id'],'name':_0x369092['name'],'creator':_0x369092['creatorId']?_0x63eb2f['getUser'](_0x369092['creatorId']):null,'diffData':_0x369092['diffData']||_0x369092['data'],'authors':_0x369092['authorsIds']['map'](_0x28dae7=>_0x63eb2f['getUser'](_0x28dae7)),'createdAt':new Date(_0x369092['createdAt']),'attributes':_0x369092['attributes'],'fromVersion':_0x369092['fromVersion'],'toVersion':_0x369092['toVersion']});}['addRevision'](_0x455100,_0x28f701=0x0){this['_revisions']['add'](_0x455100,_0x28f701);}['getRevision'](_0x328550){return this['_revisions']['get'](_0x328550);}['getRevisions'](_0x58ac51={'toJSON':!0x1}){const _0x5bec76=Array['from'](this['_revisions']);return _0x5bec76['reverse'](),_0x58ac51['toJSON']?_0x5bec76['map'](_0x772f44=>_0x772f44['toJSON']()):_0x5bec76;}['getIndex'](_0x40271d){return this['_revisions']['getIndex'](_0x40271d);}['getEarlierVisibleRevision'](_0x4deec1){const [,_0x1df1ff]=this['getRevisionsIterator'](_0x4deec1,{'direction':'earlier'});return _0x1df1ff;}['getLaterVisibleRevision'](_0x49061d){const [,_0x48b217]=this['getRevisionsIterator'](_0x49061d,{'direction':'later'});return _0x48b217;}['getRevisionsInDiff'](_0x3a6def){const _0x6e31d0=[];for(const _0x5cc52e of this['getRevisionsIterator'](_0x3a6def['newRevisionId']))if(_0x6e31d0['push'](_0x5cc52e),_0x5cc52e['id']===_0x3a6def['oldRevisionId'])break;return _0x6e31d0;}*['getRevisionsIterator'](_0x46395e,{direction:_0x2f7492='earlier',filter:_0x198b12=()=>!0x0}={}){const _0x4989b0='earlier'===_0x2f7492?0x1:-0x1;let _0x38be75=this['_revisions']['get'](_0x46395e),_0x126532=this['getIndex'](_0x38be75);for(yield _0x38be75;_0x38be75;){if(_0x126532+=_0x4989b0,_0x38be75=this['getRevision'](_0x126532),!_0x38be75)return;_0x198b12(_0x38be75)&&(yield _0x38be75);}}}function m(_0x20aa7f,_0x73f92,_0x2e74be){const t=_0x20aa7f['t'];switch(_0x73f92){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'},_0x2e74be);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2e74be);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 E={'c':_0xf127a5,'a':_0x3e3aeb,'e':_0x3a3849,'r':_0x537e4a,'u':_0x26d2eb};class u extends _0x593b73{['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[_0x43ff84,j,_0x50329a];}constructor(_0x391951){super(_0x391951),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 _0x5de131=_0x57caab();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5de131},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 _0x40c0f6=this['repository']['getRevision'](0x0),_0x30ab67=_0x40c0f6&&null===_0x40c0f6['creator']?_0x40c0f6:null;if(this['_continueCurrentRevision']=!!_0x30ab67&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2759e4=this['_source']['getCurrentRevisionId'](),_0x45668d=this['repository']['getRevision'](_0x2759e4);if(_0x45668d)this['_startingVersion']=_0x45668d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5787c5=this['_source']['history']['_operations']['find'](_0x23dab6=>!_0x23dab6['_isInit']),_0x2e0020=_0x5787c5?_0x5787c5['baseVersion']:this['_source']['history']['version'];_0x40c0f6?(_0x40c0f6['toVersion']<_0x2e0020&&_0x40c0f6['_update']({'toVersion':_0x2e0020}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x30ab67['id'],this['_startingVersion']=_0x30ab67['fromVersion']):(this['_startingVersion']=_0x40c0f6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e0020,this['_continueCurrentRevision']=!0x1);}}else _0x30ab67&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x30ab67['toVersion'],this['editor']['model']['document']['history']['version']),_0x30ab67['fromVersion']===_0x30ab67['toVersion']?(0x0!==_0x30ab67['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ab67['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ab67['id'],this['_startingVersion']=_0x30ab67['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',_0x2d4a17=>!_0x2d4a17),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3fc012=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x184178;for(const _0x4eca79 in _0x3fc012){const _0x45b137=_0x4eca79,_0x1fd93b=_0x3fc012[_0x45b137];if('revisionHistoryLicenseKeyValid'==_0x1fd93b||'revisionHistoryLicenseKeyInvalid'==_0x1fd93b||'revisionHistoryLicenseKeyExpired'==_0x1fd93b||'revisionHistoryLicenseKeyDomainLimit'==_0x1fd93b||'revisionHistoryLicenseKeyNotAllowed'==_0x1fd93b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fd93b||'revisionHistoryLicenseKeyTrialLimit'==_0x1fd93b||'revisionHistoryLicenseKeyUsageLimit'==_0x1fd93b){delete _0x3fc012[_0x45b137],_0x184178=_0x1fd93b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x184178&&_0x3fc012['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x184178&&_0x3fc012['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x184178&&_0x3fc012['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x184178&&_0x3fc012['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x184178&&_0x3fc012['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x184178&&_0x3fc012['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x184178&&_0x3fc012['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x53c93e=this['repository']['getRevision'](0x0),_0x3b7e45=await this['getRevisionDocumentData'](_0x53c93e),_0x1a7573=await this['getRevisionRootsAttributes'](_0x53c93e);this['_replaceEditorDataWithRevisionData'](_0x3b7e45,_0x1a7573);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4c9691){this['_source']=_0x4c9691;}async['update'](){const _0x27dcfc=await this['_source']['getLatestVersion']();if(_0x27dcfc>this['currentRevision']['toVersion']){await this['_loadState']();const _0x50d11b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x27dcfc});_0x50d11b['authors']=_0x50d11b['authorsIds']['map'](_0x58cfbc=>this['editor']['plugins']['get']('Users')['getUser'](_0x58cfbc)),this['currentRevision']['_update'](_0x50d11b);}}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'](_0x1f51a6={},_0x305697=null){const _0x5ff694=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x305697>this['currentRevision']['toVersion']&&(_0x305697=null),null===_0x305697&&(_0x305697=await this['_source']['getLatestVersion']());const _0x21ddd2=this['_getFromVersion'](_0x305697),_0x560c83=this['buildRevisionData']({'from':_0x21ddd2,'to':_0x305697});if(this['currentRevision']['toVersion']<_0x305697){const _0x1aef62=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x305697,'to':_0x305697});_0x1aef62['authors']=[],_0x1aef62['authorsIds']=[],_0x1aef62['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1aef62,!0x0),delete _0x1aef62['authors'],_0x5ff694['push'](_0x1aef62);}_0x1f51a6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f51a6['name']=_0x1f51a6['name']||null,_0x1f51a6['id']=_0x1f51a6['id']||_0x57caab(),_0x1f51a6={..._0x1f51a6,..._0x560c83};const _0x32f5d5=this['addRevisionData'](_0x1f51a6);_0x5ff694['push'](_0x1f51a6);const _0x5040ae=this['repository']['getIndex'](_0x32f5d5);if(0x0!==_0x5040ae){const _0x225df2=this['repository']['getRevision'](_0x5040ae-0x1);if(_0x225df2['fromVersion']!==_0x305697){const _0x15d477=this['_revisionDataBuilder']['getData'](_0x305697,_0x225df2['toVersion']),_0x100721={'id':_0x225df2['id'],'diffData':_0x15d477['diffData'],'authorsIds':_0x15d477['authorsIds'],'authors':_0x15d477['authorsIds']['map'](_0x1224ff=>this['editor']['plugins']['get']('Users')['getUser'](_0x1224ff)),'fromVersion':_0x305697};_0x225df2===this['currentRevision']&&(_0x100721['createdAt']=new Date(_0x1f51a6['createdAt']['getTime']()+0xa)),_0x225df2['_update'](_0x100721,!0x0),delete _0x100721['authors'],_0x5ff694['push'](_0x100721);}}if(this['adapter']){for(const _0x4418d2 of _0x5ff694)this['_bufferUpdate'](_0x4418d2['id'],_0x4418d2,!0x0);this['sendBufferedUpdates']();}return _0x32f5d5;}['addRevisionData'](_0x3def9b){const _0x46a1db=this['repository']['createRevision'](_0x3def9b);return this['adapter']&&_0x46a1db['on']('_update',(_0x55d7ae,_0x576282,_0x4b3af6)=>{_0x4b3af6||(this['_bufferUpdate'](_0x576282['id'],_0x576282,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x46a1db,this['_findInsertionIndex'](_0x46a1db)),_0x46a1db;}async['getRevisionDocumentData'](_0x5478c2){await this['_loadRevisionData'](_0x5478c2);const _0x3ebb5e={};for(const _0x42134e in _0x5478c2['diffData']){if(_0x5478c2['diffData'][_0x42134e]['attachChange']&&!_0x5478c2['diffData'][_0x42134e]['attachChange']['isAttached'])continue;const _0x2ffbbc=this['_removeRevisionMarkers'](JSON['parse'](_0x5478c2['diffData'][_0x42134e]['insertions'])),_0x131de6=this['editor']['editing']['view']['document'],_0x48b3b3=new _0x315509(_0x131de6,_0x2ffbbc['map'](_0x2cb5a7=>P(_0x2cb5a7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ebb5e[_0x42134e]=this['editor']['data']['processor']['toData'](_0x48b3b3),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ebb5e;}async['getRevisionRootsAttributes'](_0x2ce2c7){await this['_loadRevisionData'](_0x2ce2c7);const _0x4135f4={};for(const _0x3e811e in _0x2ce2c7['diffData'])_0x2ce2c7['diffData'][_0x3e811e]['attachChange']&&!_0x2ce2c7['diffData'][_0x3e811e]['attachChange']['isAttached']||(_0x4135f4[_0x3e811e]=_0x2ce2c7['diffData'][_0x3e811e]['attributesAfter']||{});return _0x4135f4;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1a12a8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x387900=0x0;_0x387900<_0x1a12a8['length'];_0x387900++){const _0x392bec=_0x1a12a8[_0x387900];let _0x17ed83=!0x1;for(const _0x5ec68e of Object['keys'](_0x392bec))void 0x0===_0x392bec[_0x5ec68e]?delete _0x392bec[_0x5ec68e]:'id'!==_0x5ec68e&&(_0x17ed83=!0x0);_0x17ed83||(_0x1a12a8[_0x387900]=null);}if(_0x1a12a8=_0x1a12a8['filter'](_0x4556f4=>null!==_0x4556f4),!_0x1a12a8['length'])return;for(let _0x1d9416=0x0;_0x1d9416<_0x1a12a8['length'];_0x1d9416++){const _0x1764cc=_0x1a12a8[_0x1d9416];void 0x0!==_0x1764cc['fromVersion']&&void 0x0===_0x1764cc['toVersion']&&(_0x1764cc['toVersion']=this['repository']['getRevision'](_0x1764cc['id'])['toVersion']),void 0x0!==_0x1764cc['toVersion']&&void 0x0===_0x1764cc['fromVersion']&&(_0x1764cc['fromVersion']=this['repository']['getRevision'](_0x1764cc['id'])['fromVersion']);}const _0x1d5bec=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1a12a8,_0x1d5bec)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d95f3=>{if(_0x3d95f3){for(const _0x257ea0 of _0x3d95f3)this['setRevisionData']({'id':_0x257ea0['id'],'createdAt':_0x257ea0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1afb2d,_0x4fdaf2){let _0x537d7f=this['editor']['config']['get']('initialData'),_0x5c2620=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x537d7f){_0x537d7f={};for(const _0x1b1a73 of this['editor']['model']['document']['getRootNames']())_0x537d7f[_0x1b1a73]='';}if('string'==typeof _0x537d7f&&(_0x537d7f={'main':_0x537d7f}),void 0x0===_0x5c2620){_0x5c2620={};for(const _0x369d9e of this['editor']['model']['document']['getRootNames']())_0x5c2620[_0x369d9e]={};}let _0x546af1=!0x1;const _0x4e78f3=Object['keys'](_0x537d7f),_0x3b09c0=Object['keys'](_0x1afb2d);for(const _0x42a20b of _0x4e78f3){if(_0x537d7f[_0x42a20b]!==_0x1afb2d[_0x42a20b]&&''!==_0x537d7f[_0x42a20b]['trim']()){_0x546af1=!0x0;break;}if(!_0x4fb800(_0x5c2620[_0x42a20b],_0x4fdaf2[_0x42a20b])&&Object['keys'](_0x5c2620[_0x42a20b])['length']>0x0){_0x546af1=!0x0;break;}}_0x546af1||(_0x546af1=_0x3b09c0['some'](_0x23fcb7=>!this['editor']['model']['document']['getRoot'](_0x23fcb7))),_0x546af1&&_0x3f61ea('editor-initial-data-replaced-with-revision-data',{'editorData':_0x537d7f,'editorRootsAttributes':_0x5c2620,'revisionData':_0x1afb2d,'revisionRootsAttributes':_0x4fdaf2}),this['editor']['config']['set']('initialData',_0x1afb2d),this['editor']['config']['set']('rootsAttributes',_0x4fdaf2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1ff7f2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1ff7f2['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x272eed){const _0x3fc007=this['repository']['getRevisions']();_0x3fc007['reverse']();let _0x310a1c=0x0;for(;_0x310a1c<_0x3fc007['length'];){const _0x114f98=_0x3fc007[_0x310a1c];if(_0x114f98===this['currentRevision']){_0x310a1c++;continue;}if(_0x114f98['id']===this['_initialRevisionId'])break;const _0x29347f=_0x272eed['toVersion']-_0x114f98['toVersion']||_0x272eed['fromVersion']-_0x114f98['fromVersion'];if(_0x29347f>0x0)break;if(_0x29347f<0x0)_0x310a1c++;else{if(!_0x272eed['creator']&&_0x114f98['creator'])break;if(_0x114f98['creator']||!_0x272eed['creator']){if(_0x272eed['createdAt']>_0x114f98['createdAt'])break;_0x310a1c++;}else _0x310a1c++;}}return _0x310a1c;}['setRevisionData'](_0x55d8f8){const _0x2aa32c=this['repository']['getRevision'](_0x55d8f8['id']);if(_0x55d8f8['createdAt']&&(_0x55d8f8['createdAt']=new Date(_0x55d8f8['createdAt'])),_0x55d8f8['authorsIds']){const _0x3e0c79=this['editor']['plugins']['get']('Users');_0x55d8f8['authors']=_0x55d8f8['authorsIds']['map'](_0x3f10e4=>_0x3e0c79['getUser'](_0x3f10e4));}_0x2aa32c['_update'](_0x55d8f8,!0x0);}['buildRevisionData']({revision:_0x4c06c0=null,from:_0x31a496=null,to:_0x35f311=null}){_0x31a496=null!==_0x31a496?_0x31a496:_0x4c06c0['fromVersion'],_0x35f311=null!==_0x35f311?_0x35f311:_0x4c06c0['toVersion'];const _0x2be944=this['_revisionDataBuilder']['getData'](_0x31a496,_0x35f311),_0x79d278={'diffData':_0x2be944['diffData'],'authorsIds':_0x2be944['authorsIds'],'fromVersion':_0x31a496,'toVersion':_0x35f311};if(!_0x4c06c0||_0x35f311!==_0x4c06c0['toVersion']){const _0x5adaba=_0x35f311-0x1,_0x2aec94=this['_source']['history']['getOperation'](_0x5adaba);_0x79d278['createdAt']=_0x2aec94&&_0x2aec94['createdAt']||new Date();}if(this['_loadedStateData']&&_0x31a496===this['_loadedStateData']['fromVersion']){for(const _0x280b42 of this['_loadedStateData']['authors'])_0x79d278['authorsIds']['includes'](_0x280b42['id'])||_0x79d278['authorsIds']['push'](_0x280b42['id']);}return _0x79d278;}['_loadRevisionData'](_0x8e84b){if(!_0x8e84b||_0x8e84b['diffData'])return Promise['resolve']();{const _0x435aab=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x435aab,'revisionId':_0x8e84b['id']})['then'](_0x5532da=>{_0x8e84b['diffData']=_0x5532da['diffData'];});}}['_bufferUpdate'](_0x4e610,_0x300aae,_0x1b0f92){if(this['_bufferedUpdates']['has'](_0x4e610)){const _0x7912d8=this['_bufferedUpdates']['get'](_0x4e610);_0x300aae=_0x1b0f92?{..._0x7912d8,..._0x300aae}:{..._0x300aae,..._0x7912d8};}this['_bufferedUpdates']['set'](_0x4e610,_0x300aae);}['_getFromVersion'](_0x562f6d){const _0x58cd80=this['repository']['getRevisions']();_0x58cd80['reverse'](),_0x58cd80['shift']();const _0x4a916d=_0x58cd80['find'](_0x22b770=>_0x22b770['toVersion']<=_0x562f6d)['toVersion'];return _0x4a916d<this['_startingVersion']?this['_startingVersion']:_0x4a916d;}['_createInitialRevision'](_0x2b007c){const _0x2e6925=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2e6925)this['_initialRevisionId']=_0x2e6925['id'];else{const _0x2c9b20=!this['editor']['model']['document']['roots']['find'](_0x5e8741=>this['editor']['model']['hasContent'](_0x5e8741)),_0xc27454=this['editor']['plugins']['get']('Users')['me']['id'],_0x358f05=m(this['editor']['locale'],_0x2c9b20?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2b007c,'to':_0x2b007c,'id':this['_initialRevisionId'],'name':_0x358f05,'creatorId':_0xc27454});}}['_createCurrentRevision'](_0x350a00){const _0x53b143=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x53b143),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x350a00,'to':_0x350a00,'id':_0x53b143,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4cf9fa,from:_0x2f1897,to:_0x16809c,creatorId:_0x46c69a,id:_0x127adf}){const _0x587aff=this['buildRevisionData']({'from':_0x2f1897,'to':_0x16809c});_0x587aff['name']=_0x4cf9fa,_0x587aff['creatorId']=_0x46c69a,_0x587aff['id']=_0x127adf;const _0x1cff03=this['addRevisionData'](_0x587aff);return this['adapter']&&this['_bufferUpdate'](_0x587aff['id'],_0x587aff,!0x0),_0x1cff03;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x12c3e3){return(_0x12c3e3=_0x12c3e3['filter'](_0x38d1fa=>!_0x38d1fa['name']||'revision-start'!==_0x38d1fa['name']&&'revision-end'!==_0x38d1fa['name']))['forEach'](_0x145819=>{'string'!=typeof _0x145819&&(_0x145819['children']=this['_removeRevisionMarkers'](_0x145819['children']),_0x145819['attributes']=_0x145819['attributes']['filter'](_0x547aec=>!_0x547aec[0x0]['startsWith']('data-revision-')));}),_0x12c3e3;}}function P(_0x62da7b,_0x478d1b){const _0x3e72f5=_0x478d1b['editing']['view']['document'];if('string'==typeof _0x62da7b)return new _0x19bc4e(_0x3e72f5,_0x62da7b);{const _0x3ec60c=_0x62da7b['children']['map'](_0x51dc56=>P(_0x51dc56,_0x478d1b));return new(E[_0x62da7b['type']]||_0x27da50)(_0x3e72f5,_0x62da7b['name'],_0x62da7b['attributes'],_0x3ec60c);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x16ae91){this['editor']=_0x16ae91,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'](_0x3c6afd){this['source']=_0x3c6afd;const _0x1ad08b=new Map(),_0x5d8170=new Map(),_0xbc5a7d=this['editor']['model']['document']['roots']['map'](_0x358d2f=>_0x358d2f['rootName']);for(const _0x16047c of _0xbc5a7d){const _0xc13ebd=this['editor']['model']['document']['getRoot'](_0x16047c),_0x3ee9a9=T(_0xc13ebd);_0x1ad08b['set'](_0x16047c,_0x3ee9a9),_0x5d8170['set'](_0x16047c,Object['fromEntries'](_0xc13ebd['getAttributes']()));}const _0x373476=Array['from'](this['editor']['model']['markers'])['map'](_0xb8b11e=>[_0xb8b11e['name'],_0xb8b11e['getRange']()]),_0x562a4c=this['source']['version'];this['_saveMetaData'](_0x562a4c,_0x1ad08b,_0x373476,_0x5d8170),this['_startingRevisionId']=this['_revisionId'];const _0x412659=new Map(),_0x14dafb=new Map();for(const _0x109909 of _0xbc5a7d){const _0x4c067b=F(_0x109909);_0x412659['set'](_0x109909,_0x4c067b),_0x14dafb['set'](_0x109909,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x412659,[],_0x14dafb);}['getData'](_0xb09f31,_0x3390eb){if(this['_lastFrom']===_0xb09f31&&this['_lastTo']<=_0x3390eb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3390eb,!0x0);else{if(!this['_savedMetaData']['has'](_0xb09f31)){const _0x45ab8d=this['_getPreviousFrom'](_0xb09f31);this['_calculateMetaData'](_0x45ab8d,_0xb09f31,!0x1);}this['_calculateMetaData'](_0xb09f31,_0x3390eb,!0x0);}return this['_lastFrom']=_0xb09f31,this['_lastTo']=_0x3390eb,this['_getState']();}['loadState'](_0x513e76){this['_reset'](),this['_lastFrom']=_0x513e76['fromVersion'],this['_lastTo']=_0x513e76['toVersion'];for(const _0x2f6906 in _0x513e76['diffData']){const _0x17dc34=_0x513e76['diffData'][_0x2f6906]['attachChange'],_0x4db863=_0x3390ee(_0x513e76['diffData'][_0x2f6906]['attributesBefore'])||{},_0x526e4d=this['_makeModelFromViewString'](_0x513e76['diffData'][_0x2f6906]['deletions']);_0x526e4d['rootName']=_0x2f6906,_0x526e4d['_isAttached']=!_0x17dc34||!_0x17dc34['isAttached'],_0x526e4d['isAttached']=()=>_0x526e4d['_isAttached'],this['_baseRoots']['set'](_0x2f6906,_0x526e4d),this['_baseRootsAttributes']['set'](_0x2f6906,_0x4db863),_0x17dc34&&this['_touchedRoots']['set'](_0x2f6906,_0x17dc34);const _0x3452e8=this['_makeIdsRoot'](_0x526e4d);this['_baseIdsRoots']['set'](_0x2f6906,_0x3452e8);for(const [_0x1281a2,_0x3fda00]of _0x526e4d['markers']){if(!_0x1281a2['startsWith']('revision:'))continue;const _0x486c79=_0x1281a2['split'](':')[0x2];for(const _0x3abcd5 of _0x3fda00['getWalker']({'singleCharacters':!0x0})){const _0x344899=this['_getVidAttributeName'](_0x3abcd5),_0xc678bd='elementEnd'==_0x3abcd5['type']?_0x3abcd5['previousPosition']['path']['slice'](0x0,-0x1):_0x3abcd5['previousPosition']['path'],_0x5ee0d8=_0x3452e8['getNodeByPath'](_0xc678bd)['getAttribute'](_0x344899);this['_touched']['set'](_0x5ee0d8,{'userId':_0x486c79});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19186d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32fc78=>!this['_touched']['has'](_0x32fc78));let _0x5839a5=0x0;const _0x599843=new Map();for(const _0xd02a95 in _0x513e76['diffData']){const _0x4f5c53=_0x513e76['diffData'][_0xd02a95]['attachChange'],_0x2cb11c=_0x3390ee(_0x513e76['diffData'][_0xd02a95]['attributesAfter'])||{},_0x2e03f1=this['_makeModelFromViewString'](_0x513e76['diffData'][_0xd02a95]['insertions']);_0x2e03f1['rootName']=_0xd02a95,_0x2e03f1['_isAttached']=!_0x4f5c53||_0x4f5c53['isAttached'],_0x2e03f1['isAttached']=()=>_0x2e03f1['_isAttached'],this['_diffRoots']['set'](_0xd02a95,_0x2e03f1),this['_diffRootsAttributes']['set'](_0xd02a95,_0x2cb11c);const _0x291d5e=this['_makeIdsRoot'](_0x2e03f1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xd02a95,_0x291d5e),_0x599843['set'](_0xd02a95,_0x2e03f1['isAttached']()?_0x2cb11c:{});for(const [_0x1d1793,_0x48e728]of _0x2e03f1['markers']){if(!_0x1d1793['startsWith']('revision:'))continue;const _0x272b2b=_0x1d1793['split'](':')[0x2];for(const _0x24e1cd of _0x48e728['getWalker']({'singleCharacters':!0x0})){const _0x18e905=this['_getVidAttributeName'](_0x24e1cd),_0x5e8747=this['_revisionId']++,_0x108b13='elementEnd'==_0x24e1cd['type']?_0x24e1cd['previousPosition']['path']['slice'](0x0,-0x1):_0x24e1cd['previousPosition']['path'];_0x291d5e['getNodeByPath'](_0x108b13)['_setAttribute'](_0x18e905,_0x5e8747),this['_touched']['set'](_0x5e8747,{'userId':_0x272b2b});}}for(const _0x340dbe of this['editor']['model']['createRangeIn'](_0x2e03f1)['getWalker']({'singleCharacters':!0x0})){const _0x285ef8=this['_getVidAttributeName'](_0x340dbe),_0x578cc7='elementEnd'==_0x340dbe['type']?_0x340dbe['previousPosition']['path']['slice'](0x0,-0x1):_0x340dbe['previousPosition']['path'],_0x25806a=_0x291d5e['getNodeByPath'](_0x578cc7);_0x25806a['getAttribute'](_0x285ef8)>0x0||_0x25806a['_setAttribute'](_0x285ef8,_0x19186d[_0x5839a5++]);}for(const [_0x171017,_0x240b21]of _0x2e03f1['markers'])_0x171017['startsWith']('revision:')||this['_markers']['set'](_0x171017,_0x240b21);}const _0x5232c9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5232c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5232c9,0x1));const _0x860bd9=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x860bd9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x860bd9,0x1));const _0x5e9014=Array['from'](this['_diffRoots'])['map'](([_0x171dfd,_0x4b1f09])=>[_0x171dfd,T(_0x4b1f09)]);this['_saveMetaData'](this['_lastTo'],_0x5e9014,this['_markers'],_0x599843);}['_makeModelFromViewString'](_0x17d2ab){const _0x589cd1=JSON['parse'](_0x17d2ab),_0x4e8dc9=this['editor']['editing']['view']['document'],_0x48cb3d=new _0x315509(_0x4e8dc9,_0x589cd1['map'](_0x5e1269=>P(_0x5e1269,this['editor'])));return this['editor']['data']['toModel'](_0x48cb3d);}['_saveMetaData'](_0xe2bdb,_0x5bf3e9,_0xe72098,_0x150b27){const _0xdb5e5a=new Map(_0x5bf3e9),_0x169371=new Map(_0x3390ee(_0x150b27)),_0x3adb78=new Map();for(const [_0x1c9d2,_0x22aa14]of _0xe72098)_0x3adb78['set'](_0x1c9d2,{'start':_0x22aa14['start']['clone'](),'end':_0x22aa14['end']['clone'](),'rootName':_0x22aa14['root']['rootName']});this['_savedMetaData']['set'](_0xe2bdb,{'roots':_0xdb5e5a,'markers':_0x3adb78,'rootsAttributes':_0x169371});}['_removeMetaData'](_0x4d26b7){this['_savedMetaData']['delete'](_0x4d26b7);}['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'](_0x42d5cd,_0x3e6580=null){let _0x170138=null;_0x42d5cd['is']('documentFragment')||(_0x170138=new ut(_0x42d5cd['name'],{'vid_start':null===_0x3e6580?this['_revisionId']++:_0x3e6580++}));const _0x23dd40=[];for(const _0x844a37 of _0x42d5cd['getChildren']())if(_0x844a37['is']('element')){_0x23dd40['push'](this['_makeIdsRoot'](_0x844a37,_0x3e6580));const _0x5aa56c=_0x23dd40[_0x23dd40['length']-0x1];null!==_0x3e6580&&(_0x3e6580=_0x5aa56c['is']('element','$text')?_0x5aa56c['getAttribute']('vid')+0x1:_0x5aa56c['getAttribute']('vid_end')+0x1);}else{for(let _0x38334f=0x0;_0x38334f<_0x844a37['offsetSize'];_0x38334f++)_0x23dd40['push'](new ut('$text',{'vid':null===_0x3e6580?this['_revisionId']++:_0x3e6580++}));}if(_0x42d5cd['is']('documentFragment')){const _0x4a652c=F(_0x42d5cd['rootName']);return _0x4a652c['_insertChild'](0x0,_0x23dd40),_0x4a652c;}return _0x170138['_setAttribute']('vid_end',null===_0x3e6580?this['_revisionId']++:_0x3e6580++),_0x170138['_insertChild'](0x0,_0x23dd40),_0x170138;}['_calculateMetaData'](_0x44a547,_0x1f0842,_0x18c1b1){this['_reset']();const {roots:_0x222545,markers:_0x4409ba,rootsAttributes:_0x22968b}=this['_savedMetaData']['get'](_0x44a547);this['_baseRoots']=new Map(_0x222545),this['_baseRootsAttributes']=new Map(_0x3390ee(_0x22968b));for(const [_0xd2892b,_0x236230]of this['_baseRoots'])if('$graveyard'!==_0xd2892b&&(this['_diffRoots']['set'](_0xd2892b,T(_0x236230)),this['_diffRootsAttributes']=new Map(_0x3390ee(_0x22968b)),_0x18c1b1)){const _0x1a3a14=this['_revisionId'];this['_idsRoots']['set'](_0xd2892b,this['_makeIdsRoot'](_0x236230)),this['_baseIdsRoots']['set'](_0xd2892b,this['_makeIdsRoot'](_0x236230,_0x1a3a14));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x18c1b1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x9a16da,_0x16c6af]of _0x4409ba){const _0x2e3b25=this['_baseRoots']['get'](_0x16c6af['rootName']),_0x35bf43=this['_diffRoots']['get'](_0x16c6af['rootName']),_0x21c869=new ft(this['_fixPosition'](_0x16c6af['start'],_0x2e3b25),this['_fixPosition'](_0x16c6af['end'],_0x2e3b25)),_0x475727=this['_fixRange'](_0x21c869,_0x35bf43);_0x2e3b25['markers']['set'](_0x9a16da,_0x21c869),this['_markers']['set'](_0x9a16da,_0x475727);}this['_applyOperations'](_0x44a547,_0x1f0842,_0x18c1b1);}['_applyOperations'](_0x29df23,_0x345a07,_0x1cfc10){for(const _0x4ef451 of this['source']['getOperations'](_0x29df23,_0x345a07))this['_handleOperation'](_0x4ef451,_0x1cfc10);for(const _0xa24c1d of this['_diffRoots']['values']())_0xa24c1d['markers']['clear']();for(const [_0x3c881b,_0x442702]of this['_markers']){this['_diffRoots']['get'](_0x442702['root']['rootName'])['markers']['set'](_0x3c881b,_0x442702['clone']());}const _0x353a88=new Map(),_0xcd327d=new Map();for(const [_0x586557,_0x12e947]of this['_diffRoots'])_0x353a88['set'](_0x586557,T(_0x12e947)),_0xcd327d['set'](_0x586557,this['_diffRootsAttributes']['get'](_0x586557));this['_saveMetaData'](_0x345a07,_0x353a88,this['_markers'],_0xcd327d);}['_getPreviousFrom'](_0x5e10aa){const _0x25200f=Array['from'](this['_savedMetaData']['keys']());_0x25200f['sort']((_0x49596c,_0x4a10f1)=>_0x49596c-_0x4a10f1),_0x25200f['reverse']();for(const _0x17ea5a of _0x25200f)if(_0x17ea5a<_0x5e10aa)return _0x17ea5a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3ba52b,_0x607f44){const _0x1a8f0e=Array['from'](_0x607f44['markers'])['map'](([_0x4c9c84,_0x488ca1])=>[_0x4c9c84,this['_fixRange'](_0x488ca1,_0x3ba52b)]);_0x3ba52b['markers']=new Map(_0x1a8f0e);}['_transformMarkers'](_0x217a29){for(const _0x50e2b7 of this['_markers']['values']()){const _0x1835c8=_0x50e2b7['getTransformedByOperation'](_0x217a29),_0x35f070=ft['_createFromRanges'](_0x1835c8);_0x50e2b7['start']=_0x35f070['start'],_0x50e2b7['end']=_0x35f070['end'];}}['_handleOperation'](_0x1e643b,_0x2cd52f){if('addRoot'!=_0x1e643b['type']&&'detachRoot'!=_0x1e643b['type']){if('insert'==_0x1e643b['type']){const _0x461920=_0x1e643b['position']['root']['rootName'];this['_diffRoots']['has'](_0x461920)||(this['_diffRoots']['set'](_0x461920,F(_0x461920,!0x0)),this['_diffRootsAttributes']['set'](_0x461920,{}),_0x2cd52f&&this['_idsRoots']['set'](_0x461920,F(_0x461920,!0x0)));}else{if('addRootAttribute'==_0x1e643b['type']||'removeRootAttribute'==_0x1e643b['type']||'changeRootAttribute'==_0x1e643b['type'])return void this['_handleRootAttributeOperation'](_0x1e643b);'marker'==_0x1e643b['type']&&this['_handleMarkerOperation'](_0x1e643b);}if('marker'!==_0x1e643b['type']){const _0x4d250b=this['_cloneOperation'](_0x1e643b,this['_diffRoots']);_0x4d250b['_execute'](),this['_transformMarkers'](_0x4d250b);}if(_0x2cd52f)switch(_0x1e643b['type']){case'insert':this['_handleInsertOperation'](_0x1e643b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1e643b);break;case'merge':this['_handleMergeOperation'](_0x1e643b);break;case'split':this['_handleSplitOperation'](_0x1e643b);}}else this['_handleRootOperation'](_0x1e643b,_0x2cd52f);}['_cloneOperation'](_0x3ef4e3,_0x2cda12){const _0x558459=_0x3ef4e3['clone']();return _0x558459['_authorId']=_0x3ef4e3['_authorId'],this['_fixOperation'](_0x558459,_0x2cda12),_0x558459;}['_getBaseVids'](_0x56cd1c){return _0x56cd1c['map'](_0x495b7a=>{const _0x424127=this['_getVidAttributeName'](_0x495b7a);return Number(_0x495b7a['item']['getAttribute'](_0x424127));});}['_generateTape'](_0xb48a26,_0x1096f8){if(_0xb48a26['is']('element','$text'))_0x1096f8['push']({'item':_0xb48a26,'type':'text'});else{_0xb48a26['is']('element')&&_0x1096f8['push']({'item':_0xb48a26,'type':'elementStart'});for(const _0x575799 of _0xb48a26['getChildren']())this['_generateTape'](_0x575799,_0x1096f8);_0xb48a26['is']('element')&&_0x1096f8['push']({'item':_0xb48a26,'type':'elementEnd'});}return _0x1096f8;}['_getState'](){const _0x32f5ff=new Map(this['_touched']),_0x525659=new Map(_0x32f5ff),_0x59cc4c=new Map(),_0x2691e6={'insertions':{},'deletions':{}},_0x4fd225={'insertions':{},'deletions':{}},_0xfa1985=new Map(),_0x131ed0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x131ed0['delete']('$graveyard');for(const _0x31082b of _0x131ed0){const _0x31185e=this['_diffRoots']['get'](_0x31082b)||F(_0x31082b,!0x1),_0x30d04=this['_baseRoots']['get'](_0x31082b)||F(_0x31082b,!0x1);_0x31185e['isAttached']()||_0x30d04['isAttached']()?(_0x2691e6['insertions'][_0x31082b]=T(_0x31185e),_0x2691e6['deletions'][_0x31082b]=T(_0x30d04),this['_copyMarkers'](_0x2691e6['deletions'][_0x31082b],_0x30d04),this['_copyMarkers'](_0x2691e6['insertions'][_0x31082b],_0x31185e),_0x4fd225['insertions'][_0x31082b]=this['_generateTape'](this['_idsRoots']['get'](_0x31082b),[]),_0x4fd225['deletions'][_0x31082b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x31082b)||F(_0x31082b,!0x1),[])):_0x131ed0['delete'](_0x31082b);}for(const _0x2752b4 of _0x131ed0){const _0x403806=_0x4fd225['insertions'][_0x2752b4];for(const _0x1a1960 of _0x403806){const _0x4b1b85=this['_getVidAttributeName'](_0x1a1960),_0x502bef=_0x1a1960['item']['getAttribute'](_0x4b1b85);_0x525659['delete'](_0x502bef),_0x502bef>=this['_startingRevisionId']&&_0x59cc4c['set'](_0x502bef,_0x32f5ff['get'](_0x502bef));}}for(const _0x1466cd of _0x131ed0){const _0x296cd0=_0x4fd225['insertions'][_0x1466cd],_0x44f068=this['_getBaseVids'](_0x4fd225['deletions'][_0x1466cd]);let _0x2fe484=0x0;for(const _0x81089d of _0x296cd0){const _0x5f0f99=this['_getVidAttributeName'](_0x81089d),_0x513968=_0x81089d['item']['getAttribute'](_0x5f0f99);if(!_0x59cc4c['has'](_0x513968)&&!_0xfa1985['has'](_0x513968)){if(_0x525659['has'](_0x513968))_0x2fe484++;else{if(_0x513968!=_0x44f068[_0x2fe484]){const _0x300a68=_0x32f5ff['get'](_0x513968)||_0x32f5ff['get'](_0x44f068[_0x2fe484]);for(;_0x513968!=_0x44f068[_0x2fe484];)_0x525659['has'](_0x44f068[_0x2fe484])||(_0xfa1985['set'](_0x44f068[_0x2fe484],_0x300a68),_0x32f5ff['set'](_0x44f068[_0x2fe484],_0x300a68)),_0x2fe484++;}_0x2fe484++;}}}}for(const _0x1f01cc of _0x131ed0){const _0x55d282=_0x4fd225['insertions'][_0x1f01cc];for(const _0x357fb2 of _0x55d282){const _0x506cf8=this['_getVidAttributeName'](_0x357fb2),_0x2d5611=_0x357fb2['item']['getAttribute'](_0x506cf8);if(_0xfa1985['has'](_0x2d5611)){const _0x2d5479=_0xfa1985['get'](_0x2d5611);_0x525659['has'](_0x2d5611)||_0x525659['set'](_0x2d5611,{..._0x2d5479}),_0x59cc4c['set'](_0x2d5611,{..._0x2d5479});}}}for(const _0x15c56f of _0x525659['keys']())_0x15c56f>=this['_startingRevisionId']&&_0x525659['delete'](_0x15c56f);const _0x18884b=new Map();for(const _0x2067cd of _0x131ed0){let _0x4035b2=_0x4fd225['insertions'][_0x2067cd];for(const _0x40e9d6 of _0x4035b2)if(_0x40e9d6['item']['is']('element','tableCell')){const _0x368b73=this['_getVidAttributeName'](_0x40e9d6),_0x4363f7=_0x40e9d6['item']['getAttribute'](_0x368b73);if(_0x59cc4c['has'](_0x4363f7)){const _0x1587b2=_0x40e9d6['item']['parent']['parent']['getAttribute']('vid_start'),_0x2cca1e=_0x18884b['get'](_0x1587b2)||new Set();_0x2cca1e['add'](_0x59cc4c['get'](_0x4363f7)['userId']),_0x18884b['set'](_0x1587b2,_0x2cca1e);}}_0x4035b2=_0x4fd225['deletions'][_0x2067cd];for(const _0x3f4254 of _0x4035b2)if(_0x3f4254['item']['is']('element','tableCell')){const _0x1d74b9=this['_getVidAttributeName'](_0x3f4254),_0x420189=_0x3f4254['item']['getAttribute'](_0x1d74b9);if(_0x525659['has'](_0x420189)){const _0x18b51e=_0x3f4254['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cfaea=_0x18884b['get'](_0x18b51e)||new Set();_0x1cfaea['add'](_0x525659['get'](_0x420189)['userId']),_0x18884b['set'](_0x18b51e,_0x1cfaea);}}for(const _0x3b5f85 of _0x18884b['keys']())(_0x59cc4c['has'](_0x3b5f85)||_0x525659['has'](_0x3b5f85))&&_0x18884b['delete'](_0x3b5f85);}for(const _0x934a5c of _0x131ed0){const _0x2ef964=_0x4fd225['insertions'][_0x934a5c];let _0x381096=null,_0x4d1fdf=null;for(const _0x458585 of _0x2ef964){const _0x1345fd=this['_getVidAttributeName'](_0x458585),_0x430634=_0x458585['item']['getAttribute'](_0x1345fd),_0xc86699=_0x18884b['get'](_0x430634);_0xc86699&&'elementStart'==_0x458585['type']&&(_0x381096=Array['from'](_0xc86699)[0x0],_0x4d1fdf=_0x458585['item']['getAttribute']('vid_end')),_0x381096&&(_0x525659['set'](_0x430634,{'userId':_0x381096}),_0x59cc4c['set'](_0x430634,{'userId':_0x381096})),_0x430634==_0x4d1fdf&&(_0x381096=null,_0x4d1fdf=null);}}const _0x48f131={},_0x181258=new Set();for(const _0x5cdece of _0x131ed0){const _0x2c79b3=_0x2691e6['deletions'][_0x5cdece],_0x219172=_0x2691e6['insertions'][_0x5cdece];for(const {userId:_0x3f7dbf}of this['_touchedMarkers']['values']())null!==_0x3f7dbf&&_0x181258['add'](_0x3f7dbf);for(const {userId:_0x323426}of this['_touchedRoots']['values']())null!==_0x323426&&_0x181258['add'](_0x323426);this['_markChanges'](_0x219172,_0x4fd225['insertions'][_0x5cdece],_0x59cc4c,'insertion',_0x181258),this['_markChanges'](_0x2c79b3,_0x4fd225['deletions'][_0x5cdece],_0x525659,'deletion',_0x181258),_0x48f131[_0x5cdece]={'insertions':this['_prepareViewToSave'](_0x219172),'deletions':this['_prepareViewToSave'](_0x2c79b3),'attachChange':this['_touchedRoots']['get'](_0x5cdece)||null,'attributesBefore':_0x3390ee(this['_baseRootsAttributes']['get'](_0x5cdece))||{},'attributesAfter':_0x3390ee(this['_diffRootsAttributes']['get'](_0x5cdece))};}return{'diffData':_0x48f131,'authorsIds':Array['from'](_0x181258)};}['_processRootBeforeSave'](_0x3b3eb9){for(const [,_0x4b546e]of _0x3b3eb9['markers']){const _0x7391f3=_0x4b546e['start']['getAncestors']()['filter'](_0x38dc3c=>'tableCell'==_0x38dc3c['name']);for(const _0x4d141e of _0x7391f3)0x1==_0x4d141e['childCount']&&_0x4d141e['getChild'](0x0)['is']('element','paragraph')&&_0x4d141e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4e7229){this['_processRootBeforeSave'](_0x4e7229);const _0x1519b9=this['editor']['data']['toView'](_0x4e7229,{}),_0x1cfe4b=Array['from'](_0x1519b9['getChildren']())['map'](_0x3aa70a=>this['_getViewJson'](_0x3aa70a));return JSON['stringify'](_0x1cfe4b);}['_getViewJson'](_0xc57b23){if(_0xc57b23['is']('$text'))return _0xc57b23['data'];{const _0x1580a7=_0xc57b23;return{'type':Object['keys'](E)['find'](_0x2adb6d=>_0xc57b23 instanceof E[_0x2adb6d]),'name':_0x1580a7['name'],'attributes':Array['from'](_0x1580a7['getAttributes']()),'children':Array['from'](_0x1580a7['getChildren']())['map'](_0xd50f83=>this['_getViewJson'](_0xd50f83))};}}['_markChanges'](_0x49ef7f,_0x1840bd,_0x5c7c8d,_0x5b772c,_0x3c74c6){let _0x5d2931=null,_0x158432=null,_0x26d76d=0x0;const _0x1b3814=this['editor']['model'];for(let _0x277d09=0x0;_0x277d09<_0x1840bd['length'];_0x277d09++){const _0x1d8da1=this['_getVidAttributeName'](_0x1840bd[_0x277d09]),_0x52c6a7=_0x1840bd[_0x277d09]['item']['getAttribute'](_0x1d8da1),_0x1e7ef0=_0x5c7c8d['get'](_0x52c6a7),_0x11418a=_0x277d09==_0x1840bd['length']-0x1;(!_0x5d2931&&_0x1e7ef0&&(_0x5d2931=_0x1e7ef0,_0x158432=_0x1840bd[_0x277d09]),_0x5d2931&&(!_0x1e7ef0||_0x1e7ef0['userId']!=_0x5d2931['userId']))&&(_0x548c24(_0x1e7ef0,B(_0x158432,_0x49ef7f,_0x1b3814),B(_0x1840bd[_0x277d09],_0x49ef7f,_0x1b3814)),_0x5d2931=_0x1e7ef0||null,_0x158432=_0x1e7ef0?_0x1840bd[_0x277d09]:null),_0x5d2931&&_0x11418a&&_0x548c24(_0x1e7ef0,B(_0x158432,_0x49ef7f,_0x1b3814),J(_0x1840bd[_0x277d09],_0x49ef7f,_0x1b3814));}function _0x548c24(_0x3bd16b,_0x4e6ed4,_0x4c1836){const _0xbf4354=_0x5d2931['userId'],_0x30e850='revision:'+_0x5b772c+':'+_0xbf4354+':'+_0x26d76d++,_0x2724db=_0x1b3814['createRange'](_0x4e6ed4,_0x4c1836);_0x49ef7f['markers']['set'](_0x30e850,_0x2724db),null!==_0xbf4354&&_0x3c74c6['add'](_0xbf4354);}}['_getVidAttributeName'](_0xb0bbc1){switch(_0xb0bbc1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4de4c0,_0x2da282){_0x4de4c0['baseVersion']=null;for(const _0x2574be in _0x4de4c0){const _0x588f6d=_0x4de4c0[_0x2574be];if(_0x588f6d instanceof vt){const _0x127058=_0x2da282['get'](_0x588f6d['root']['rootName']);_0x4de4c0[_0x2574be]=this['_fixPosition'](_0x588f6d,_0x127058);}if(_0x588f6d instanceof ft){const _0x399261=_0x2da282['get'](_0x588f6d['root']['rootName']);_0x4de4c0[_0x2574be]=this['_fixRange'](_0x588f6d,_0x399261);}'root'===_0x2574be&&(_0x4de4c0['root']=_0x2da282['get'](_0x4de4c0['root']['rootName']));}}['_fixRange'](_0x1c9c92,_0x337e8d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1c9c92['start'],_0x337e8d),this['_fixPosition'](_0x1c9c92['end'],_0x337e8d));}['_fixPosition'](_0x425fa1,_0x1677a3){return this['editor']['model']['createPositionFromPath'](_0x1677a3,_0x425fa1['path'],_0x425fa1['stickiness']);}['_handleInsertOperation'](_0x5852b6){const _0x5188b5=this['_idsRoots']['get'](_0x5852b6['position']['root']['rootName']),_0xcd9162=this['_fixPosition'](_0x5852b6['position'],_0x5188b5),_0x49295f=null===_0x5852b6['_authorId']?null:_0x5852b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x123b39=_0xcd9162['parent'],_0x423e66=this['_revisionId'],_0x5d70bf=[];for(const _0x45aadb of _0x5852b6['nodes'])if(_0x45aadb['is']('element'))_0x5d70bf['push'](this['_makeIdsRoot'](_0x45aadb));else{for(let _0x232bec=0x0;_0x232bec<_0x45aadb['offsetSize'];_0x232bec++)_0x5d70bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x545234=this['_revisionId'];for(let _0x58a513=_0x423e66;_0x58a513<_0x545234;_0x58a513++)this['_touched']['set'](_0x58a513,{'userId':_0x49295f});_0x123b39['_insertChild'](_0xcd9162['offset'],_0x5d70bf);}['_handleMoveOperation'](_0x43d121){(_0x43d121=this['_cloneOperation'](_0x43d121,this['_idsRoots']))['_execute']();const _0x20c67b=null===_0x43d121['_authorId']?null:_0x43d121['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ec2a7=_0x43d121['getMovedRangeStart'](),_0x164645=_0x1ec2a7['parent'],_0x41c4f5=_0x1ec2a7['offset'];!function _0x4bdaba(_0x1dd944,_0x12a49c,_0x1bb5cb,_0xafa68b){for(let _0x76251=_0x1bb5cb;_0x76251<_0xafa68b;_0x76251++){const _0x176009=_0x12a49c['getChild'](_0x76251);_0x176009['is']('element','$text')?_0x1dd944['set'](_0x176009['getAttribute']('vid'),{'userId':_0x20c67b}):(_0x1dd944['set'](_0x176009['getAttribute']('vid_start'),{'userId':_0x20c67b}),_0x4bdaba(_0x1dd944,_0x176009,0x0,_0x176009['childCount']),_0x1dd944['set'](_0x176009['getAttribute']('vid_end'),{'userId':_0x20c67b}));}}(this['_touched'],_0x164645,_0x41c4f5,_0x41c4f5+_0x43d121['howMany']);}['_handleMergeOperation'](_0x335abe){const _0x565f97=null===(_0x335abe=this['_cloneOperation'](_0x335abe,this['_idsRoots']))['_authorId']?null:_0x335abe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a7467=_0x335abe['targetPosition']['parent'],_0x6c8783=_0x335abe['sourcePosition']['parent'],_0x133e62=_0x1a7467['getAttribute']('vid_end'),_0x56b302=_0x6c8783['getAttribute']('vid_start');_0x1a7467['_setAttribute']('vid_end',_0x6c8783['getAttribute']('vid_end')),_0x6c8783['_setAttribute']('vid_end',_0x133e62),this['_touched']['set'](_0x56b302,{'userId':_0x565f97}),this['_touched']['set'](_0x133e62,{'userId':_0x565f97}),_0x335abe['_execute']();}['_handleSplitOperation'](_0x2c08ee){const _0x2f2187=null===(_0x2c08ee=this['_cloneOperation'](_0x2c08ee,this['_idsRoots']))['_authorId']?null:_0x2c08ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e20e6=_0x2c08ee['graveyardPosition'],_0x1a266f=_0x2c08ee['splitPosition']['parent'];_0x2c08ee['_execute']();const _0x4c4eb4=_0x1a266f['getAttribute']('vid_end'),_0x4ad39c=_0x2c08ee['insertionPosition']['nodeAfter'];if(_0x3e20e6){const _0x12f9ae=_0x4ad39c['getAttribute']('vid_end'),_0x3f8b4c=_0x1a266f['getAttribute']('vid_end');_0x1a266f['_setAttribute']('vid_end',_0x12f9ae),_0x4ad39c['_setAttribute']('vid_end',_0x3f8b4c),this['_touched']['set'](_0x1a266f['getAttribute']('vid_end'),{'userId':_0x2f2187}),this['_touched']['set'](_0x4ad39c['getAttribute']('vid_start'),{'userId':_0x2f2187});}else{const _0x1b5279=this['_revisionId']++,_0x5c2ae4=this['_revisionId']++;_0x1a266f['_setAttribute']('vid_end',_0x1b5279),_0x4ad39c['_setAttribute']('vid_start',_0x5c2ae4),_0x4ad39c['_setAttribute']('vid_end',_0x4c4eb4),this['_touched']['set'](_0x1b5279,{'userId':_0x2f2187}),this['_touched']['set'](_0x5c2ae4,{'userId':_0x2f2187});}}['_handleMarkerOperation'](_0x55330d){if(!_0x55330d['affectsData'])return;const _0x2fc2ff=(_0x55330d=this['_cloneOperation'](_0x55330d,this['_diffRoots']))['oldRange']?_0x55330d['oldRange']['root']:null,_0x441bc0=_0x55330d['newRange']?_0x55330d['newRange']['root']:null;_0x2fc2ff&&this['_markers']['delete'](_0x55330d['name']),_0x441bc0&&this['_markers']['set'](_0x55330d['name'],_0x55330d['newRange']['clone']());const _0x2e2c7e=null===_0x55330d['_authorId']?null:_0x55330d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x306591=_0x55330d['name'];if(!this['_touchedMarkers']['has'](_0x306591))return void this['_touchedMarkers']['set'](_0x306591,{'range':_0x55330d['oldRange'],'userId':_0x2e2c7e});const _0x6b9a2c=this['_touchedMarkers']['get'](_0x306591),_0xaed77b=_0x6b9a2c['range'],_0xf02eb1=_0x55330d['newRange'];null==_0xaed77b&&null==_0xf02eb1||_0xaed77b&&_0xf02eb1&&_0xaed77b['isEqual'](_0xf02eb1)?this['_touchedMarkers']['delete'](_0x55330d['name']):_0x6b9a2c['userId']=_0x2e2c7e;}['_handleRootOperation'](_0xa49d81,_0x1151d5){this['_diffRoots']['has'](_0xa49d81['rootName'])?this['_diffRoots']['get'](_0xa49d81['rootName'])['_isAttached']=_0xa49d81['isAdd']:(this['_diffRoots']['set'](_0xa49d81['rootName'],F(_0xa49d81['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xa49d81['rootName'],{}),_0x1151d5&&this['_idsRoots']['set'](_0xa49d81['rootName'],F(_0xa49d81['rootName'],!0x0)));const _0x19ba6d=null===_0xa49d81['_authorId']?null:_0xa49d81['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd3e082=this['_touchedRoots']['get'](_0xa49d81['rootName']);_0xd3e082&&_0xd3e082['userId']===_0x19ba6d?this['_touchedRoots']['delete'](_0xa49d81['rootName']):this['_touchedRoots']['set'](_0xa49d81['rootName'],{'userId':_0x19ba6d,'isAttached':_0xa49d81['isAdd']});}['_handleRootAttributeOperation'](_0x407dd0){const _0x5670b7=this['_diffRootsAttributes']['get'](_0x407dd0['root']['rootName']);null===_0x407dd0['newValue']?delete _0x5670b7[_0x407dd0['key']]:_0x5670b7[_0x407dd0['key']]=_0x407dd0['newValue'];}}function T(_0x118d17){const _0x4231d1=F(_0x118d17['rootName'],_0x118d17['isAttached']());for(const _0x2cd911 of _0x118d17['getChildren']()){const _0x44889c=_0x2cd911['_clone'](!0x0);_0x4231d1['_appendChild'](_0x44889c);}return _0x4231d1;}function F(_0x276638,_0x1d1d98=!0x0){const _0x1f4077=new gt();return _0x1f4077['rootName']=_0x276638,_0x1f4077['_isAttached']=_0x1d1d98,_0x1f4077['isAttached']=()=>_0x1f4077['_isAttached'],_0x1f4077;}function B(_0x4d0fcd,_0x51a908,_0x55ae4a){const _0x376648='elementEnd'==_0x4d0fcd['type']?_0x55ae4a['createPositionAt'](_0x4d0fcd['item'],'end'):_0x55ae4a['createPositionBefore'](_0x4d0fcd['item']);return _0x55ae4a['createPositionFromPath'](_0x51a908,_0x376648['path'],_0x376648['stickiness']);}function J(_0x5ccd57,_0x52a7bd,_0x4c66f7){const _0x307d4a='elementStart'==_0x5ccd57['type']?_0x4c66f7['createPositionAt'](_0x5ccd57['item'],0x0):_0x4c66f7['createPositionAfter'](_0x5ccd57['item']);return _0x4c66f7['createPositionFromPath'](_0x52a7bd,_0x307d4a['path'],_0x307d4a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x53502c,_0x152aa2){super(_0x53502c),this['focusTracker']=new _0x47d5d4(),this['keystrokes']=new _0xe91580(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x152aa2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x560ed4(this);}['render'](){super['render'](),_0x54cb86({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x49833e=_0x529669=>_0x529669['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49833e),this['keystrokes']['set']('arrowleft',_0x49833e),this['keystrokes']['set']('arrowup',_0x49833e),this['keystrokes']['set']('arrowdown',_0x49833e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3f5075){this['revisionNameInputView']['fieldView']['element']['value']=_0x3f5075['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3e9b7e){const _0x540115=new _0x2f3f89(this['locale'],_0xdef740),_0x23c242=_0x540115['fieldView'];_0x23c242['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x59c37a=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3e9b7e&&(_0x59c37a+='\x20('+m(this['locale'],'optional')+')'),(_0x540115['label']=_0x59c37a,_0x23c242['on']('input',()=>{this['revisionNameInputValue']=_0x23c242['element']['value']['trim']();}),_0x540115);}}class f extends _0x593b73{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e1d8c=this['editor'],_0x467834=_0x3e1d8c['plugins']['get']('RevisionTracker');_0x3e1d8c['ui']['componentFactory']['add']('revisionHistory',_0x28b996=>{const _0x12e43c=_0x23f68e(_0x28b996),_0x1359bd=_0x12e43c['panelView']['children'],_0x5ddee8=new _0x2c5e24(_0x28b996),_0xcfed9c=new _0x5c16cf(_0x28b996),_0x1199e9=new te(_0x28b996),_0x217f90=new _0x5c16cf(_0x28b996),_0xdb1de8=new te(_0x28b996);return _0x12e43c['bind']('isEnabled')['to'](_0x467834,'isReady',_0x467834,'isEnabled',_0x3e1d8c,'isReadOnly',(_0xba935c,_0x415dee,_0x2e5722)=>_0xba935c&&_0x415dee&&!_0x2e5722),_0x12e43c['buttonView']['set']({'icon':_0x45f1b2,'label':m(_0x28b996,'Revision\x20history'),'tooltip':!0x0}),_0x1199e9['set']({'label':m(_0x28b996,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1199e9['bind']('isEnabled')['to'](_0x467834,'isReady',_0x467834,'isEnabled',_0x3e1d8c,'isReadOnly',(_0x189d79,_0x21c1ff,_0x223d7a)=>_0x189d79&&_0x21c1ff&&!_0x223d7a),_0x1199e9['on']('execute',()=>this['_showDialog']()),_0xdb1de8['set']({'label':m(_0x28b996,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xdb1de8['bind']('isEnabled')['to'](_0x467834,'isReady',_0x3e1d8c,'isReadOnly',(_0x5f40db,_0x52d021)=>_0x5f40db&&!_0x52d021),_0xdb1de8['on']('execute',()=>{_0x3e1d8c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x12e43c['isOpen']=!0x1,_0x3e1d8c['editing']['view']['focus']();}),_0xcfed9c['children']['add'](_0x1199e9),_0x217f90['children']['add'](_0xdb1de8),_0x5ddee8['role']='menu',_0x5ddee8['items']['addMany']([_0xcfed9c,_0x217f90]),_0x1359bd['add'](_0x5ddee8),_0x12e43c;}),_0x3e1d8c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x544f78=this['editor'],_0x258cd9=_0x544f78['locale'],_0x3f42eb=new _0x186b5b(_0x258cd9),_0x1a1dce=new _0x54d50a(_0x258cd9);_0x3f42eb['buttonView']['set']({'icon':_0x45f1b2,'label':m(_0x258cd9,'Revision\x20history')});const _0x1faa7a=new _0x3e356b(_0x258cd9,_0x3f42eb),_0x5bd547=new _0x361679(_0x258cd9);_0x5bd547['set']({'label':m(_0x258cd9,'Save\x20current\x20revision')}),_0x5bd547['delegate']('execute')['to'](_0x3f42eb),_0x5bd547['on']('execute',()=>{this['_showDialog']();}),_0x1faa7a['children']['add'](_0x5bd547),_0x1a1dce['items']['add'](_0x1faa7a);const _0x19d3f1=new _0x3e356b(_0x258cd9,_0x3f42eb),_0x3066bf=new _0x361679(_0x258cd9);return _0x3066bf['set']({'label':m(_0x258cd9,'Open\x20revision\x20history')}),_0x3066bf['delegate']('execute')['to'](_0x3f42eb),_0x3066bf['on']('execute',()=>{_0x544f78['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x19d3f1['children']['add'](_0x3066bf),_0x1a1dce['items']['add'](_0x19d3f1),_0x3f42eb['panelView']['children']['add'](_0x1a1dce),_0x3f42eb;}['_showDialog'](){const _0x1949c6=this['editor'],_0x448e5a=_0x1949c6['locale'],_0xc14dd3=_0x1949c6['plugins']['get']('Dialog'),_0x58e90b=_0x1949c6['plugins']['get']('RevisionTracker');function _0x13f884(_0x150b6b){_0x1949c6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x150b6b['revisionName']?_0x150b6b['revisionNameInputView']['errorText']=m(_0x448e5a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1949c6['plugins']['get'](u)['saveRevision']({'name':_0x150b6b['revisionName']}),_0xc14dd3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x13f884(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc14dd3['show']({'id':'revisionSave','title':m(_0x448e5a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1949c6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc14dd3['hide']()},{'label':m(_0x1949c6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5e7ebc){_0x5e7ebc['bind']('isEnabled')['to'](_0x58e90b,'isReady',_0x58e90b,'isEnabled',_0x1949c6,'isReadOnly',(_0x54b78b,_0x2ee47a,_0x5c4664)=>_0x54b78b&&_0x2ee47a&&!_0x5c4664);},'onExecute':()=>_0x13f884(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1f9ed7=this['editor'],_0x16ce5b=_0x1f9ed7['locale'];this['_saveRevisionFormView']=new hs(_0x16ce5b,_0x1f9ed7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x43b9f1,_0x5989be){super(_0x43b9f1),this['_model']=_0x5989be,this['changeId']=_0x5989be['id'];const _0x575af0=this['bindTemplate'],_0x5abedb=m(_0x43b9f1,_0x5989be['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5989be['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5989be['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x575af0['to']('type',_0x3267e0=>'ck-revision-change__'+_0x3267e0)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5abedb}]},{'text':'\x20'+_0x5989be['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x60908(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x482259){super(),this['id']=_0x482259['id']||_0x57caab(),this['author']=_0x482259['author'],this['type']=_0x482259['type'],this['data']=_0x482259['data']||{},this['rootName']=_0x482259['rootName'],this['set']('createdAt',_0x482259['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5b65e3,_0x3d2c1f){this['newRevisionId']=_0x5b65e3,this['oldRevisionId']=_0x3d2c1f,this['changes']=new _0x58935e();}['_setChanges'](_0x5b8c5d){for(const _0x30651f of _0x5b8c5d)this['changes']['add'](_0x30651f);}}const Y={'c':_0xf127a5,'a':_0x3e3aeb,'e':_0x3a3849,'r':_0x537e4a,'u':_0x26d2eb};class d extends _0x593b73{['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[_0x43ff84,_0x14242,j];}constructor(_0x430e42){super(_0x430e42),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',(_0x2c992e,_0x245865,_0x49944b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x430dd6=>{for(const _0x69f742 of this['editor']['editing']['view']['document']['roots'])_0x49944b?_0x430dd6['removeClass']('ck-editor__editable__overlay',_0x69f742):_0x430dd6['addClass']('ck-editor__editable__overlay',_0x69f742);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x36ba10=>null!==_0x36ba10),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2e7ede,_0x10aa26,_0x296ca7)=>_0x2e7ede&&_0x296ca7?_0x10aa26['changes']['getIndex'](_0x296ca7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xfba17f,_0x5561b9)=>_0xfba17f?_0x5561b9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x14242);}['init'](){const _0x2767ed=this['editor'],_0x2b717f=new _t(_0x2767ed,{'direction':'backward'}),_0x44a230=new _t(_0x2767ed,{'direction':'forward'});(_0x2767ed['commands']['add']('showPreviousChange',_0x2b717f),_0x2767ed['commands']['add']('showNextChange',_0x44a230),_0x2767ed['commands']['add']('restoreRevision',new wt(_0x2767ed)),this['on']('change:numberOfChanges',()=>{_0x2b717f['refresh'](),_0x44a230['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2767ed['enableReadOnlyMode']('revision-viewer'),_0x2767ed['plugins']['has']('WidgetToolbarRepository'))&&_0x2767ed['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x164181){await this['loadRevisionData'](_0x164181);const _0x3080bb={};for(const _0x1f3d0b in _0x164181['diffData']){if(_0x164181['diffData'][_0x1f3d0b]['attachChange']&&!_0x164181['diffData'][_0x1f3d0b]['attachChange']['isAttached'])continue;const _0x198b30=this['_removeRevisionMarkers'](JSON['parse'](_0x164181['diffData'][_0x1f3d0b]['insertions'])),_0x24a51a=this['editor']['editing']['view']['document'],_0x50007f=new _0x315509(_0x24a51a,_0x198b30['map'](_0x40fbbd=>this['_getViewObj'](_0x40fbbd)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3080bb[_0x1f3d0b]=this['editor']['data']['processor']['toData'](_0x50007f),this['editor']['data']['processor']['useFillerType']('default');}return _0x3080bb;}async['getRevisionRootsAttributes'](_0x3c5f2d){await this['loadRevisionData'](_0x3c5f2d);const _0x59676a={};for(const _0x445d27 in _0x3c5f2d['diffData'])_0x3c5f2d['diffData'][_0x445d27]['attachChange']&&!_0x3c5f2d['diffData'][_0x445d27]['attachChange']['isAttached']||(_0x59676a[_0x445d27]=_0x3c5f2d['diffData'][_0x445d27]['attributesAfter']||{});return _0x59676a;}['_removeRevisionMarkers'](_0x4dd154){return(_0x4dd154=_0x4dd154['filter'](_0x1a5e9c=>!_0x1a5e9c['name']||'revision-start'!==_0x1a5e9c['name']&&'revision-end'!==_0x1a5e9c['name']))['forEach'](_0x184eed=>{'string'!=typeof _0x184eed&&(_0x184eed['children']=this['_removeRevisionMarkers'](_0x184eed['children']),_0x184eed['attributes']=_0x184eed['attributes']['filter'](_0x4ca5b4=>!_0x4ca5b4[0x0]['startsWith']('data-revision-')));}),_0x4dd154;}async['compare'](_0xcf301e,_0xa3f7af,_0x26f0f4=!0x1){if(!this['isEnabled'])return;const _0x5d2950=this['diff'],_0x42ddf2=this['repository'],_0x2dd5b1='string'==typeof _0xcf301e?_0x42ddf2['getRevision'](_0xcf301e):_0xcf301e,_0x44bf33='string'==typeof _0xa3f7af?_0x42ddf2['getRevision'](_0xa3f7af):_0xa3f7af,_0x5ea696=_0x2dd5b1['id'],_0x4a3e17=_0x44bf33?_0x44bf33['id']:null;if(!_0x26f0f4&&this['diff']&&this['diff']['newRevisionId']===_0x5ea696&&this['diff']['oldRevisionId']===_0x4a3e17)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5ea696,_0x4a3e17);const _0x554726=this['_getRevisionsRange'](_0x2dd5b1,_0x44bf33,!0x0)['map'](_0x27c4ef=>this['loadRevisionData'](_0x27c4ef));return _0x554726['push'](new Promise(_0x2cb4e2=>{setTimeout(_0x2cb4e2,0x14);})),Promise['all'](_0x554726)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x349ddd=this['_getDiff'](_0x5ea696,_0x4a3e17);for(const _0x1dbff1 of _0x349ddd['changes'])this['_changeIdToChange']['set'](_0x1dbff1['id'],_0x1dbff1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x367469=>{for(const _0x44e18c of this['editor']['model']['document']['getRootNames']())_0x367469['detachRoot'](_0x44e18c);for(const _0x1e2e25 of Object['keys'](_0x349ddd['model'])){const _0x374f0a=_0x367469['addRoot'](_0x1e2e25);for(const _0x520e82 of Object['keys'](_0x349ddd['attributes'][_0x1e2e25]))_0x367469['setAttribute'](_0x520e82,_0x349ddd['attributes'][_0x1e2e25][_0x520e82],_0x374f0a);_0x367469['insert'](_0x349ddd['model'][_0x1e2e25],_0x374f0a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x349ddd['changes'])),this['isReady']=!0x0;})['catch'](_0xc39e1b=>{console['error'](_0xc39e1b),this['_cleanUp'](),_0x5d2950&&(this['diff']=_0x5d2950),this['isReady']=!0x0;});}['addRevisionData'](_0x47203b,_0x42190d){const _0x1c53c8=this['repository']['createRevision'](_0x47203b);return _0x1c53c8['on']('_update',(_0x43b713,_0x72347b,_0x1161a6)=>_0x42190d(_0x72347b,_0x1161a6,_0x1c53c8)),this['repository']['addRevision'](_0x1c53c8),_0x1c53c8;}['loadRevisionData'](_0x4094da){if(!_0x4094da||_0x4094da['diffData'])return Promise['resolve']();{const _0x540cab=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x540cab,'revisionId':_0x4094da['id']})['then'](_0x45444e=>{_0x4094da['_update']({'diffData':_0x45444e['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},_0x73e7ad=>{for(const _0x15b5e3 of this['editor']['model']['document']['getRootNames']())_0x73e7ad['detachRoot'](_0x15b5e3);});}['_sortAndFilterDiffChanges'](_0x3fc447){const _0x15f2fc=[],_0x387f6f=new Map();for(const _0x533009 of this['editor']['model']['document']['getRootNames']()){const _0x13659a=this['editor']['editing']['view']['getDomRoot'](_0x533009);if(!_0x13659a)continue;const _0x2e5374=_0x13659a['getClientRects']()['item'](0x0);_0x2e5374&&(_0x15f2fc['push'](_0x533009),_0x387f6f['set'](_0x533009,_0x2e5374));}return _0x15f2fc['sort']((_0x1c479d,_0x492137)=>{const _0x32063b=_0x387f6f['get'](_0x1c479d),_0x4360a2=_0x387f6f['get'](_0x492137);return _0x32063b['y']-_0x4360a2['y']||_0x32063b['x']-_0x4360a2['x'];}),(_0x3fc447=_0x3fc447['filter'](_0x498880=>_0x15f2fc['includes'](_0x498880['rootName'])))['sort']((_0x18e074,_0x5d427c)=>_0x15f2fc['indexOf'](_0x18e074['rootName'])-_0x15f2fc['indexOf'](_0x5d427c['rootName'])),_0x3fc447;}['_makeTape'](_0x48b416){const _0x1aded8=Array['from'](_0x48b416['markers'])['filter'](([_0x2bac08,_0x2a5ed5])=>_0x2bac08['startsWith']('revision:')&&!_0x2a5ed5['isCollapsed']),_0x3df6cd=Array['from'](this['editor']['model']['createRangeIn'](_0x48b416)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1aded8['length'])for(const _0xac437e of _0x3df6cd){const [_0x13c17f,_0x3b232d]=_0x1aded8[0x0],[,_0x2a3219,_0x45e8cd]=_0x13c17f['split'](':');if(_0x3b232d['end']['isEqual'](_0xac437e['nextPosition'])&&_0x1aded8['shift'](),(_0xac437e['previousPosition']['isEqual'](_0x3b232d['start'])||_0xac437e['previousPosition']['isAfter'](_0x3b232d['start']))&&('insertion'==_0x2a3219?_0xac437e['isAdded']={'userId':_0x45e8cd}:'deletion'==_0x2a3219&&(_0xac437e['isRemoved']={'userId':_0x45e8cd})),0x0==_0x1aded8['length'])break;}return _0x3df6cd;}['_refreshStartEndIndex'](_0x24d2b6){const _0x942999=new Map();for(let _0x33687c=0x0;_0x33687c<_0x24d2b6['length'];_0x33687c++)'text'===_0x24d2b6[_0x33687c]['type']?(_0x24d2b6[_0x33687c]['item']['startIndex']=_0x33687c,_0x24d2b6[_0x33687c]['item']['endIndex']=_0x33687c):('elementStart'===_0x24d2b6[_0x33687c]['type']?_0x24d2b6[_0x33687c]['item']['startIndex']=_0x33687c:'elementEnd'===_0x24d2b6[_0x33687c]['type']&&(_0x24d2b6[_0x33687c]['item']['endIndex']=_0x33687c),_0x942999['set'](_0x24d2b6[_0x33687c]['id'],_0x33687c));for(const _0x315afa of _0x942999['values']())'elementStart'===_0x24d2b6[_0x315afa]['type']?_0x24d2b6[_0x315afa]['item']['endIndex']=_0x942999['get'](_0x24d2b6[_0x315afa]['pairId']):'elementEnd'===_0x24d2b6[_0x315afa]['type']&&(_0x24d2b6[_0x315afa]['item']['startIndex']=_0x942999['get'](_0x24d2b6[_0x315afa]['pairId']));}['_processTape'](_0x1dc056){for(let _0x328481=0x0;_0x328481<_0x1dc056['length'];_0x328481++){if('elementStart'===_0x1dc056[_0x328481]['type'])_0x1dc056[_0x328481]['item']['startIndex']=_0x328481;else{if('elementEnd'===_0x1dc056[_0x328481]['type']){_0x1dc056[_0x328481]['item']['endIndex']=_0x328481;const _0x3a2d5e=_0x1dc056[_0x328481]['item']['startIndex'];_0x1dc056[_0x3a2d5e]['pairId']=_0x1dc056[_0x328481]['id'],_0x1dc056[_0x328481]['pairId']=_0x1dc056[_0x3a2d5e]['id'];}else _0x1dc056[_0x328481]['item']['startIndex']=_0x328481,_0x1dc056[_0x328481]['item']['endIndex']=_0x328481,_0x1dc056[_0x328481]['pairId']=null;}_0x1dc056[_0x328481]['markersStart']||(_0x1dc056[_0x328481]['markersStart']=[],_0x1dc056[_0x328481]['markersEnd']=[]);}}['_markInsertions'](_0x802fdf,_0x3f9b30){const _0x5161aa=_0x802fdf['filter'](_0x5dee47=>!_0x5dee47['isAdded']);for(let _0x48332a=0x0;_0x48332a<_0x3f9b30['length'];_0x48332a++)_0x3f9b30[_0x48332a]['isAdded']&&(_0x5161aa[_0x48332a]['isAdded']=_0x3f9b30[_0x48332a]['isAdded']);}['_makeModelFromViewString'](_0x4e616e){const _0x476380=JSON['parse'](_0x4e616e),_0x5eb411=this['editor']['editing']['view']['document'],_0x10d996=new _0x315509(_0x5eb411,_0x476380['map'](_0x24320c=>this['_getViewObj'](_0x24320c)));return this['editor']['data']['toModel'](_0x10d996);}['_getViewObj'](_0x21a7c){const _0x5a2117=this['editor']['editing']['view']['document'];if('string'==typeof _0x21a7c)return new _0x19bc4e(_0x5a2117,_0x21a7c);{const _0x50188f=_0x21a7c['children']['map'](_0x13b8fc=>this['_getViewObj'](_0x13b8fc));return new(Y[_0x21a7c['type']]||_0x27da50)(_0x5a2117,_0x21a7c['name'],_0x21a7c['attributes'],_0x50188f);}}['_getDiff'](_0x141b56,_0x4168f2=null){const _0x188024=this['repository']['getRevision'](_0x141b56),_0x962bcc=_0x4168f2?this['repository']['getRevision'](_0x4168f2):null,_0x2219b8=this['_getRevisionsRange'](_0x188024,_0x962bcc),_0x2a1052=_0x2219b8[_0x2219b8['length']-0x1],_0x4de507=new Map(),_0x3920d4={'model':{},'attributes':{},'changes':[]},_0xeb364=new Set(),_0x126060=new Map();for(let _0x46e57c=_0x2219b8['length']-0x1;_0x46e57c>=0x0;_0x46e57c--){const _0x4dd6bc=_0x2219b8[_0x46e57c];for(const _0x22e924 of Object['keys'](_0x4dd6bc['diffData']))if(_0x4dd6bc['diffData'][_0x22e924]['attachChange']){const _0x3aa887=_0x4dd6bc['diffData'][_0x22e924]['attachChange'];_0x3aa887['isAttached']?(_0xeb364['add'](_0x22e924),_0x126060['has'](_0x22e924)&&_0x126060['get'](_0x22e924)['userId']==_0x3aa887['userId']?_0x126060['delete'](_0x22e924):_0x126060['set'](_0x22e924,_0x3aa887)):_0x126060['has'](_0x22e924)?(_0xeb364['delete'](_0x22e924),_0x126060['delete'](_0x22e924)):(_0xeb364['add'](_0x22e924),_0x126060['set'](_0x22e924,_0x3aa887));}else _0xeb364['add'](_0x22e924);}for(const _0x1fa54e of _0xeb364){const _0x51a0fe=_0x126060['has'](_0x1fa54e)&&!_0x126060['get'](_0x1fa54e)['isAttached'];let _0x5f54af=_0x51a0fe?_0x2219b8['length']-0x1:0x0;const _0x10710=_0x51a0fe?-0x1:0x1;for(;_0x2219b8[_0x5f54af];){const _0x257cf1=_0x2219b8[_0x5f54af];if(_0x257cf1['diffData'][_0x1fa54e]){const _0x2ab7ad=_0x51a0fe?_0x257cf1['diffData'][_0x1fa54e]['attributesBefore']:_0x257cf1['diffData'][_0x1fa54e]['attributesAfter'];_0x3920d4['attributes'][_0x1fa54e]=_0x2ab7ad?_0x3390ee(_0x2ab7ad):{};break;}_0x5f54af+=_0x10710;}}for(const _0x5db09d of _0x2219b8){_0x5db09d['model']={};for(const _0x948c3b of _0x5db09d['authors'])_0x4de507['set'](_0x948c3b['id'],_0x948c3b);for(const _0x21d1dd of _0xeb364){const _0x1d43a8=_0x5db09d['diffData'][_0x21d1dd]?_0x5db09d['diffData'][_0x21d1dd]['insertions']:'[]',_0x42e55e=_0x5db09d['diffData'][_0x21d1dd]?_0x5db09d['diffData'][_0x21d1dd]['deletions']:'[]';_0x5db09d['model'][_0x21d1dd]={'insertions':this['_makeModelFromViewString'](_0x1d43a8),'deletions':this['_makeModelFromViewString'](_0x42e55e)};}}for(const _0x5252fe of _0xeb364){let _0x20c695=null,_0x2bff81=0x0;const _0x40c27e=new Map(Array['from'](_0x188024['model'][_0x5252fe]['insertions']['markers'])['filter'](([_0x12e7c0])=>!_0x12e7c0['startsWith']('revision:')));let _0x19ba39=0x0;for(const _0x2c6576 of _0x2219b8){const _0x323cdd=this['_makeTape'](_0x2c6576['model'][_0x5252fe]['insertions']);_0x2c6576==_0x188024?(_0x20c695=_0x323cdd,_0x2bff81=_0x20c695['length'],_0x20c695['forEach'](_0x3d19ab=>{_0x3d19ab['id']=_0x19ba39++;}),this['_processTape'](_0x20c695)):this['_markInsertions'](_0x20c695,_0x323cdd);const _0x2554f6=_0x20c695['filter'](_0xe077d4=>!_0xe077d4['isAdded'])['map'](_0x5e95ca=>_0x5e95ca['id']);let _0x401566=0x0;const _0x3c6389=this['_makeTape'](_0x2c6576['model'][_0x5252fe]['deletions']);_0x3c6389['forEach'](_0x1e2af7=>{_0x1e2af7['isRemoved']?_0x1e2af7['id']=_0x2bff81++:_0x1e2af7['id']=_0x2554f6[_0x401566++];}),this['_processTape'](_0x3c6389),this['_setDistance'](_0x20c695,'isAdded'),this['_setDistance'](_0x3c6389,'isRemoved'),_0x2c6576==_0x188024&&this['_markMarkers'](_0x20c695,_0x40c27e),_0x20c695=this['_joinTapes'](_0x20c695,_0x3c6389),this['_refreshStartEndIndex'](_0x20c695),this['_setDistance'](_0x20c695,'isRemoved');}_0x20c695=_0x20c695['filter'](_0x3fcfb0=>!(_0x3fcfb0['isAdded']&&_0x3fcfb0['isRemoved']));const _0x57b862=new Map(_0x2a1052['model'][_0x5252fe]['deletions']['markers']),_0x1653b9=new Set(_0x40c27e['keys']());for(const _0x273bdf of _0x57b862['keys']())_0x1653b9['delete'](_0x273bdf);this['_markSuggestions'](_0x20c695,_0x1653b9),this['_fixObsoleteTags'](_0x20c695),_0x20c695=this['_removeMissingPairs'](_0x20c695),_0x20c695=this['_markMismatchedRemovedTags'](_0x20c695),_0x20c695=this['_removeUnsupportedChanges'](_0x20c695);const {root:_0x390c1a,changes:_0x389465}=this['_makeModelFromTape'](_0x20c695,_0x4de507,_0x5252fe);_0x3920d4['model'][_0x5252fe]=_0x390c1a;const _0x5ea562=_0x126060['get'](_0x5252fe);if(_0x5ea562){const _0x287ed0=_0x4de507['get'](_0x5ea562['userId']),_0x11cca4=new r({'author':_0x287ed0,'type':_0x5ea562['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5252fe});_0x389465['unshift'](_0x11cca4),_0x3920d4['attributes'][_0x5252fe]['revisionHistoryAttachChange']=_0x11cca4['id'];}_0x3920d4['changes']=_0x3920d4['changes']['concat'](_0x389465);}return _0x3920d4;}['_markMarkers'](_0x490925,_0x3b81cc){for(let _0x186400=0x0;_0x186400<_0x490925['length'];_0x186400++)for(const [_0x339be0,_0xfa30c6]of _0x3b81cc)_0xfa30c6['start']['isEqual'](_0x490925[_0x186400]['previousPosition'])&&_0x490925[_0x186400]['markersStart']['push'](_0x339be0),_0xfa30c6['end']['isEqual'](_0x490925[_0x186400]['nextPosition'])&&_0x490925[_0x186400]['markersEnd']['push'](_0x339be0);}['_joinTapes'](_0x506f50,_0x4a7227){let _0x2aebf7=[],_0x2f7150=0x0,_0x240f52=0x0;for(;_0x2f7150<_0x506f50['length']||_0x240f52<_0x4a7227['length'];){const _0x5bd238=_0x506f50[_0x2f7150]||{},_0x41b24d=_0x4a7227[_0x240f52]||{};if(_0x5bd238['id']==_0x41b24d['id'])_0x2f7150++,_0x240f52++,_0x2aebf7['push'](_0x5bd238);else{if(_0x41b24d['isRemoved']&&_0x5bd238['isAdded']){const {commonTape:_0xe9995c,iEnd:_0xab8cc,jEnd:_0x537180}=this['_threeWayMerge'](_0x506f50,_0x2f7150,_0x4a7227,_0x240f52);_0x2aebf7=_0x2aebf7['concat'](_0xe9995c),_0x2f7150=_0xab8cc,_0x240f52=_0x537180;}else _0x41b24d['isRemoved']?(_0x240f52++,_0x2aebf7['push'](_0x41b24d)):(_0x2f7150++,_0x2aebf7['push'](_0x5bd238));}}return _0x2aebf7;}['_markSuggestions'](_0x279ebd,_0x4dc0ea){const _0x568ddf=[];for(let _0x553f7f=0x0;_0x553f7f<_0x279ebd['length'];_0x553f7f++){for(let _0x111bfc=0x0;_0x111bfc<_0x279ebd[_0x553f7f]['markersStart']['length'];_0x111bfc++){const _0x1ffcba=_0x279ebd[_0x553f7f]['markersStart'][_0x111bfc];if(!_0x4dc0ea['has'](_0x1ffcba))continue;const {group:_0x50635a,type:_0xb48a16,authorId:_0x47f373}=_0x37c8a4(_0x1ffcba);'revision-suggestion'!=_0x50635a||'insertion'!=_0xb48a16&&'deletion'!=_0xb48a16||(_0x568ddf['unshift']({'type':_0xb48a16,'name':_0x1ffcba,'userId':_0x47f373}),_0x279ebd[_0x553f7f]['markersStart']['splice'](_0x111bfc,0x1),_0x111bfc--);}_0x2c54a4(_0x279ebd[_0x553f7f]);for(let _0x3198e6=0x0;_0x3198e6<_0x279ebd[_0x553f7f]['markersEnd']['length'];_0x3198e6++){const _0x1612bc=_0x279ebd[_0x553f7f]['markersEnd'][_0x3198e6];if(!_0x4dc0ea['has'](_0x1612bc))continue;const {group:_0x57baad,type:_0xc980b3}=_0x37c8a4(_0x1612bc);if('revision-suggestion'!=_0x57baad||'insertion'!=_0xc980b3&&'deletion'!=_0xc980b3)continue;_0x279ebd[_0x553f7f]['markersEnd']['splice'](_0x3198e6,0x1),_0x3198e6--;const _0x3b3e0a=_0x568ddf['findIndex'](_0x58bb2a=>_0x58bb2a['name']==_0x1612bc);_0x3b3e0a>-0x1&&_0x568ddf['splice'](_0x3b3e0a,0x1);}}function _0x37c8a4(_0x58405b){const _0x2e433b=_0x58405b['split'](':');return{'group':_0x2e433b[0x0],'type':_0x2e433b[0x1],'subType':_0x2e433b['length']>=0x5?_0x2e433b[0x2]:null,'id':_0x2e433b['length']<0x5?_0x2e433b[0x2]:_0x2e433b[0x3],'authorId':_0x2e433b['length']<0x5?_0x2e433b[0x3]:_0x2e433b[0x4],'markerCount':0x6==_0x2e433b['length']?_0x2e433b[0x5]:null};}function _0x2c54a4(_0x5878f8){for(let _0x811363=0x0;_0x811363<_0x568ddf['length'];_0x811363++){if(_0x5878f8['isAdded']&&'insertion'==_0x568ddf[_0x811363]['type'])return _0x5878f8['isAddSuggestion']=_0x568ddf[_0x811363],void delete _0x5878f8['isAdded'];if(!_0x5878f8['isAdded']&&!_0x5878f8['isRemoved']&&'deletion'==_0x568ddf[_0x811363]['type'])return void(_0x5878f8['isRemoveSuggestion']=_0x568ddf[_0x811363]);}}}['_setDistance'](_0x13fe76,_0x38f1d0){let _0x5db5c6=0x0,_0x4cffbf=!0x1;const _0x32fc0b=new Map();for(const _0x40802b of _0x13fe76)_0x40802b[_0x38f1d0]?_0x4cffbf&&(_0x5db5c6++,_0x4cffbf=!0x1):(_0x5db5c6++,_0x4cffbf=!0x0),_0x32fc0b['set'](_0x40802b['id'],_0x5db5c6);for(let _0x5254af=0x0;_0x5254af<_0x13fe76['length'];_0x5254af++){if('isRemoved'==_0x38f1d0&&_0x13fe76[_0x5254af]['isAdded']||'isAdded'==_0x38f1d0&&_0x13fe76[_0x5254af]['isRemoved'])continue;if('text'==_0x13fe76[_0x5254af]['type']){_0x13fe76[_0x5254af]['distance']=0x0;continue;}const _0x8dd236=_0x32fc0b['get'](_0x13fe76[_0x5254af]['pairId']),_0x3595e3=_0x32fc0b['get'](_0x13fe76[_0x5254af]['id']);_0x13fe76[_0x5254af]['distance']=_0x8dd236-_0x3595e3;}}['_getRevisionsRange'](_0x40c176,_0x2d8451,_0x5d85d6=!0x1){const _0x2d2fce=[];let _0x41b218=this['repository']['getIndex'](_0x40c176),_0x4214f0=this['repository']['getIndex'](_0x2d8451);for(-0x1==_0x4214f0&&(_0x4214f0=this['repository']['_revisions']['length'],_0x5d85d6=!0x1);_0x41b218<_0x4214f0;)_0x2d2fce['push'](this['repository']['getRevision'](_0x41b218)),_0x41b218++;return _0x5d85d6&&_0x2d2fce['push'](this['repository']['getRevision'](_0x41b218)),_0x2d2fce;}['_threeWayMerge'](_0xc4dbdb,_0x163e62,_0x47932a,_0x356ce6){const _0xa9c0a4=this['editor']['model']['schema'];let _0x1277e1=_0x163e62;for(;_0xc4dbdb[_0x1277e1]&&_0xc4dbdb[_0x1277e1]['isAdded'];)_0x1277e1++;let _0x32e2dc=_0x356ce6;for(;_0x47932a[_0x32e2dc]&&_0x47932a[_0x32e2dc]['isRemoved'];)_0x32e2dc++;_0x27a7eb(_0xc4dbdb,_0x163e62,_0x1277e1),_0x27a7eb(_0x47932a,_0x356ce6,_0x32e2dc);const _0x468f44=_0x47932a['slice'](_0x356ce6,_0x32e2dc)['concat'](_0xc4dbdb['slice'](_0x163e62,_0x1277e1));return _0x468f44['sort']((_0x2ea2ab,_0x38886e)=>_0x2ea2ab['side']!=_0x38886e['side']?_0x2ea2ab['side']-_0x38886e['side']:_0x2ea2ab['level']!=_0x38886e['level']?_0x2ea2ab['level']-_0x38886e['level']:_0x2ea2ab['distance']!=_0x38886e['distance']?_0x38886e['distance']-_0x2ea2ab['distance']:!!_0x2ea2ab['isAdded']!=!!_0x38886e['isAdded']?-0x1==_0x2ea2ab['side']||0x0==_0x2ea2ab['side']?_0x2ea2ab['isAdded']?-0x1:0x1:_0x2ea2ab['isAdded']?0x1:-0x1:_0x2ea2ab['index']-_0x38886e['index']),{'commonTape':_0x468f44,'iEnd':_0x1277e1,'jEnd':_0x32e2dc};function _0x27a7eb(_0x1a860a,_0x7aeab,_0x38b802){let _0x50d3c1=-0x1,_0x3c0f57=Number['POSITIVE_INFINITY'],_0x52807c=!0x0;for(let _0x42902c=_0x7aeab;_0x42902c<_0x38b802;_0x42902c++)if(_0xa9c0a4['isInline'](_0x1a860a[_0x42902c]['item'])||(_0x52807c=!0x1),_0x1a860a[_0x42902c]['item']['startIndex']<_0x7aeab&&(_0x50d3c1=_0x42902c),_0x1a860a[_0x42902c]['item']['endIndex']>=_0x38b802){_0x3c0f57=_0x42902c;break;}_0x52807c&&(_0x50d3c1=_0x38b802-0x1);for(let _0x3fb86e=_0x7aeab;_0x3fb86e<_0x38b802;_0x3fb86e++)_0x1a860a[_0x3fb86e]['side']=_0x3fb86e<=_0x50d3c1?-0x1:_0x3fb86e<_0x3c0f57?0x0:0x1,_0x1a860a[_0x3fb86e]['index']=_0x3fb86e;let _0x585299=0x0;for(let _0x45139e=_0x7aeab;_0x45139e<=_0x50d3c1;_0x45139e++)0x0==_0x1a860a[_0x45139e]['distance']?_0x1a860a[_0x45139e]['level']=_0x585299:(_0x585299++,_0x1a860a[_0x45139e]['level']=_0x585299,_0x585299++);for(let _0x459acb=_0x7aeab;_0x459acb<_0x38b802;_0x459acb++)0x0==_0x1a860a[_0x459acb]['side']&&(_0x1a860a[_0x459acb]['level']=_0x585299);_0x585299=0x0;for(let _0x2cf3db=_0x38b802-0x1;_0x2cf3db>=_0x3c0f57;_0x2cf3db--)0x0==_0x1a860a[_0x2cf3db]['distance']?_0x1a860a[_0x2cf3db]['level']=_0x585299:(_0x585299--,_0x1a860a[_0x2cf3db]['level']=_0x585299,_0x585299--);}}['_fixObsoleteTags'](_0x2774b6){const _0x5e5077=new Map(),_0x2ccdee=this['editor']['model']['schema'];for(let _0x5ad27d=0x1;_0x5ad27d<_0x2774b6['length'];_0x5ad27d++){let _0xdb2481,_0x3546f5,_0x8bf697;const _0x2183bf=_0x2774b6[_0x5ad27d],_0xad1097=_0x2774b6[_0x5ad27d-0x1];if('text'==_0x2183bf['type'])continue;if(_0x2183bf['type']!=_0xad1097['type'])continue;if(!_0x2ccdee['isBlock'](_0xad1097['item'])||_0x2ccdee['isLimit'](_0xad1097['item']))continue;if(!_0x2ccdee['isBlock'](_0x2183bf['item'])||_0x2ccdee['isLimit'](_0x2183bf['item']))continue;if((_0x2774b6[_0x5ad27d]['isAdded']||_0x2774b6[_0x5ad27d]['isAddSuggestion'])&&_0x2774b6[_0x5ad27d-0x1]['isRemoved'])_0xdb2481=_0x2774b6[_0x5ad27d],_0x3546f5=_0x2774b6[_0x5ad27d-0x1],_0x8bf697=_0x5ad27d-0x1;else{if(!_0x2774b6[_0x5ad27d]['isRemoved']||!_0x2774b6[_0x5ad27d-0x1]['isAdded']&&!_0x2774b6[_0x5ad27d-0x1]['isAddSuggestion'])continue;_0xdb2481=_0x2774b6[_0x5ad27d-0x1],_0x3546f5=_0x2774b6[_0x5ad27d],_0x8bf697=_0x5ad27d;}const _0x3ba40a=_0xdb2481['level']==_0x3546f5['level'],_0x4eebf2=Math['abs'](_0xdb2481['level'])<Math['abs'](_0x3546f5['level'])&&0x0==_0x3546f5['distance'];(_0x3ba40a||_0x4eebf2)&&(_0x5e5077['set'](_0x3546f5['id'],_0xdb2481['id']),_0x2774b6['splice'](_0x8bf697,0x1),_0x5ad27d--,_0xdb2481['isAdded']=!0x1);}for(let _0x11d63d=0x0;_0x11d63d<_0x2774b6['length'];_0x11d63d++)_0x5e5077['has'](_0x2774b6[_0x11d63d]['pairId'])&&(_0x2774b6[_0x11d63d]['pairId']=_0x5e5077['get'](_0x2774b6[_0x11d63d]['pairId']));}['_removeMissingPairs'](_0x317297){const _0x4a7b9b=new Set(_0x317297['map'](_0xcd6801=>_0xcd6801['id']));for(let _0x4f704a=0x0;_0x4f704a<_0x317297['length'];_0x4f704a++)_0x4a7b9b['has'](_0x317297[_0x4f704a]['pairId'])||0x0==_0x317297[_0x4f704a]['distance']||(_0x317297[_0x4f704a]['isIncorrect']=!0x0);return _0x317297['filter'](_0x22e149=>!_0x22e149['isIncorrect']);}['_markMismatchedRemovedTags'](_0x141627){const _0x53d087=new Set();for(let _0x175761=0x0;_0x175761<_0x141627['length'];_0x175761++){if(_0x53d087['has'](_0x141627[_0x175761]['id'])&&_0x141627[_0x175761]['isRemoved']&&(_0x141627[_0x175761]['isIncorrect']=!0x0),_0x141627[_0x175761]['isIncorrect'])continue;if(0x0==_0x141627[_0x175761]['distance'])continue;if('elementStart'!=_0x141627[_0x175761]['type'])continue;if(null==_0x141627[_0x175761]['pairId'])continue;let _0x287eeb=_0x175761+0x1,_0x7e57a1=0x0;for(;_0x141627[_0x287eeb]['id']!=_0x141627[_0x175761]['pairId'];)'elementStart'==_0x141627[_0x287eeb]['type']?_0x7e57a1++:'elementEnd'==_0x141627[_0x287eeb]['type']&&_0x7e57a1--,_0x287eeb++;if(0x0!=_0x7e57a1){if(_0x141627[_0x175761]['isRemoved'])_0x141627[_0x175761]['isIncorrect']=!0x0;else{for(;_0x287eeb!=_0x175761;)_0x141627[_0x287eeb]['isRemoved']&&0x0!=_0x141627[_0x287eeb]['distance']&&(_0x141627[_0x287eeb]['isIncorrect']=!0x0,_0x53d087['add'](_0x141627[_0x287eeb]['pairId'])),_0x287eeb--;}}}return _0x141627['filter'](_0x2b600a=>!_0x2b600a['isIncorrect']);}['_removeUnsupportedChanges'](_0x53cf69){const _0x1f0ae1=this['editor']['model']['schema'];for(let _0x284b03=0x0;_0x284b03<_0x53cf69['length'];_0x284b03++){if(!(_0x53cf69[_0x284b03]['isAdded']||_0x53cf69[_0x284b03]['isAddSuggestion']||_0x53cf69[_0x284b03]['isRemoved']||_0x53cf69[_0x284b03]['isRemoveSuggestion']))continue;if(0x0==_0x53cf69[_0x284b03]['distance'])continue;const _0x356d1a=_0x53cf69[_0x284b03]['item'];_0x1f0ae1['isBlock'](_0x356d1a)||_0x1f0ae1['isLimit'](_0x356d1a)||(_0x53cf69[_0x284b03]['isAdded']&&delete _0x53cf69[_0x284b03]['isAdded'],_0x53cf69[_0x284b03]['isAddSuggestion']&&delete _0x53cf69[_0x284b03]['isAddSuggestion'],_0x53cf69[_0x284b03]['isRemoveSuggestion']&&delete _0x53cf69[_0x284b03]['isRemoveSuggestion'],_0x53cf69[_0x284b03]['isRemoved']&&(_0x53cf69[_0x284b03]['isIncorrect']=!0x0));}return _0x53cf69['filter'](_0x4d0031=>!_0x4d0031['isIncorrect']);}['_makeModelFromTape'](_0x2ee108,_0x4de274,_0x216a26){const _0x1802af=new gt(),_0x137230=[],_0x42a9ad=new Map(),_0x2fdaa9=this['editor']['model'],_0x509092=_0x2fdaa9['schema'],_0xd35e86=[_0x1802af],_0x4b23f7={},_0x21b835={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fe994=null;const _0x216c8c=[0x0];for(let _0x10b7b8=0x0;_0x10b7b8<_0x2ee108['length'];_0x10b7b8++)if('elementStart'===_0x2ee108[_0x10b7b8]['type']){_0x2ee108[_0x10b7b8]['previousPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c);const _0x42f384=new ut(_0x2ee108[_0x10b7b8]['item']['name'],_0x2ee108[_0x10b7b8]['item']['getAttributes']());_0xd35e86[0x0]['_appendChild'](_0x42f384),_0x216c8c['push'](0x0),_0xd35e86['unshift'](_0x42f384),_0x2ee108[_0x10b7b8]['nextPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c);}else'elementEnd'===_0x2ee108[_0x10b7b8]['type']?(_0xd35e86['shift'](),_0x2ee108[_0x10b7b8]['previousPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c),_0x216c8c['pop'](),_0x216c8c[_0x216c8c['length']-0x1]++,_0x2ee108[_0x10b7b8]['nextPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c)):(_0x2ee108[_0x10b7b8]['previousPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c),_0x4fe994?_0x4fe994['_data']+=_0x2ee108[_0x10b7b8]['item']['data']:_0x4fe994=new mt(_0x2ee108[_0x10b7b8]['item']['data'],_0x2ee108[_0x10b7b8]['item']['getAttributes']()),_0x2ee108[_0x10b7b8+0x1]&&'text'===_0x2ee108[_0x10b7b8+0x1]['type']&&_0x1744b1(_0x4fe994,_0x2ee108[_0x10b7b8+0x1]['item'])||(_0xd35e86[0x0]['_appendChild'](_0x4fe994),_0x4fe994=null),_0x216c8c[_0x216c8c['length']-0x1]+=_0x2ee108[_0x10b7b8]['item']['offsetSize'],_0x2ee108[_0x10b7b8]['nextPosition']=_0x2fdaa9['createPositionFromPath'](_0x1802af,_0x216c8c));for(let _0x35d7db=0x0;_0x35d7db<_0x2ee108['length'];_0x35d7db++){const _0x1a18b4=_0x2ee108[_0x35d7db]['previousPosition'],_0x5d5c1f=_0x2ee108[_0x35d7db]['nextPosition'];for(const _0x3a9ced of _0x2ee108[_0x35d7db]['markersStart'])_0x42a9ad['set'](_0x3a9ced,{'start':_0x1a18b4,'end':null});_0x39de30('isRemoveSuggestion',_0x35d7db,_0x1a18b4,_0x5d5c1f),_0x39de30('isAddSuggestion',_0x35d7db,_0x1a18b4,_0x5d5c1f),_0x39de30('isRemoved',_0x35d7db,_0x1a18b4,_0x5d5c1f),_0x39de30('isAdded',_0x35d7db,_0x1a18b4,_0x5d5c1f);for(const _0x42a7bb of _0x2ee108[_0x35d7db]['markersEnd']){_0x42a9ad['get'](_0x42a7bb)['end']=_0x5d5c1f;}}for(const [_0x38a55d,_0x414a1c]of _0x42a9ad){const _0x1b0341=this['editor']['model']['createRange'](_0x414a1c['start'],_0x414a1c['end']);_0x1802af['markers']['set'](_0x38a55d,_0x1b0341);}return _0x137230['sort']((_0x2a4bcd,_0x324110)=>{const _0x26a9e2=_0x1802af['markers']['get']('revision:'+_0x2a4bcd['id']),_0x25b493=_0x1802af['markers']['get']('revision:'+_0x324110['id']);return _0x26a9e2['start']['isBefore'](_0x25b493['start'])?-0x1:_0x26a9e2['start']['isAfter'](_0x25b493['start'])?0x1:_0x26a9e2['end']['isBefore'](_0x25b493['end'])?-0x1:_0x26a9e2['end']['isAfter'](_0x25b493['end'])?0x1:'add'===_0x2a4bcd['type']?-0x1:0x1;}),{'root':_0x1802af,'changes':_0x137230};function _0x39de30(_0x3aaf3a,_0x5d298b,_0x2f34c0,_0x49df97){const _0x496db3=!!_0x2ee108[_0x5d298b][_0x3aaf3a],_0xe15f82=_0x496db3?_0x2ee108[_0x5d298b][_0x3aaf3a]['userId']:null,_0x30c93a=_0x5d298b===_0x2ee108['length']-0x1,_0x4c2da1=_0x21b835[_0x3aaf3a][0x0],_0x1b2ae3=_0x509092['isObject'](_0x2ee108[_0x5d298b]['item']);!_0x4b23f7[_0x3aaf3a]&&_0x496db3?_0x4b23f7[_0x3aaf3a]={'start':_0x2f34c0,'tapeItem':_0x2ee108[_0x5d298b],'userId':_0xe15f82,'type':_0x3aaf3a}:_0x4b23f7[_0x3aaf3a]&&!_0x496db3?(_0x4b23f7[_0x3aaf3a]['end']=_0x2f34c0,_0x1c0067(_0x4b23f7[_0x3aaf3a]),_0x4b23f7[_0x3aaf3a]=null):_0x4b23f7[_0x3aaf3a]&&_0x496db3&&_0x4b23f7[_0x3aaf3a]['userId']!==_0xe15f82&&(_0x4b23f7[_0x3aaf3a]['end']=_0x2f34c0,_0x4c2da1&&_0x4c2da1['userId']===_0x4b23f7[_0x3aaf3a]['userId']||_0x1c0067(_0x4b23f7[_0x3aaf3a]),_0x4b23f7[_0x3aaf3a]={'start':_0x2f34c0,'tapeItem':_0x2ee108[_0x5d298b],'userId':_0xe15f82,'type':_0x3aaf3a}),_0x4b23f7[_0x3aaf3a]&&_0x1b2ae3&&('elementStart'!==_0x2ee108[_0x5d298b]['type']||_0x4c2da1&&_0x4c2da1['userId']===_0xe15f82||_0x21b835[_0x3aaf3a]['unshift']({'userId':_0xe15f82,'object':_0x2ee108[_0x5d298b]['item'],'change':_0x4b23f7[_0x3aaf3a]}),'elementEnd'===_0x2ee108[_0x5d298b]['type']&&_0x4c2da1&&_0x4c2da1['object']===_0x2ee108[_0x5d298b]['item']&&(_0x21b835[_0x3aaf3a]['shift'](),_0x4b23f7[_0x3aaf3a]=_0x4c2da1['change'])),_0x4b23f7[_0x3aaf3a]&&_0x30c93a&&(_0x4b23f7[_0x3aaf3a]['end']=_0x49df97,_0x1c0067(_0x4b23f7[_0x3aaf3a]),_0x4b23f7[_0x3aaf3a]=null);}function _0x1c0067({start:_0x3c8256,end:_0x209e8d,tapeItem:_0x33ca0a,userId:_0x226801,type:_0x856204}){const _0xa05497=_0x33ca0a['item'],_0x2d054e=_0x2fdaa9['schema']['isBlock'](_0xa05497)&&!_0x2fdaa9['schema']['isLimit'](_0xa05497),_0x4c4a1e=_0x3c8256['nodeAfter']==_0x209e8d['parent']&&_0x209e8d['isAtStart'];if(_0x2d054e&&_0x4c4a1e)return;const _0x5d6c2=_0x2fdaa9['createRange'](_0x3c8256,_0x209e8d),_0x1ca5e0=_0x4de274['get'](_0x226801),_0x247b37=new r({'author':_0x1ca5e0,'type':'isAdded'==_0x856204||'isAddSuggestion'==_0x856204?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x856204||'isRemoveSuggestion'==_0x856204},'createdAt':new Date(),'rootName':_0x216a26});_0x137230['push'](_0x247b37),_0x1802af['markers']['set']('revision:'+_0x247b37['id'],_0x5d6c2);}function _0x1744b1(_0x308e99,_0x1d464b){const _0x113b20=_0x308e99['getAttributes'](),_0x4d0fc4=_0x1d464b['getAttributes']();for(const _0x381367 of _0x113b20){if(_0x381367[0x1]!==_0x1d464b['getAttribute'](_0x381367[0x0]))return!0x1;_0x4d0fc4['next']();}return _0x4d0fc4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x222c34=>{const _0x19f3a0=_0x222c34['markerName']['split'](':')[0x1],_0x126c74=this['_getChangeFromId'](_0x19f3a0);if(!_0x126c74)return null;const _0x4d65a5='add'==_0x126c74['type']?'insertion':'deletion',_0x49f74f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4d65a5];return _0x126c74['data']['isSuggestion']&&_0x49f74f['push']('ck-suggestion-marker-'+_0x4d65a5+'-new'),this['activeChange']==_0x126c74&&_0x49f74f['push']('ck-suggestion-marker--active'),{'classes':_0x49f74f,'attributes':{'data-change-id':_0x19f3a0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5cd27a=>{_0x5cd27a['on']('element:pre',(_0x3abc34,_0x3a9140,_0x220880)=>{const _0x2bfce0=_0x3a9140['viewItem']['getChild'](0x0);if(!_0x2bfce0||!_0x2bfce0['is']('element','code'))return;if(!_0x220880['consumable']['consume'](_0x2bfce0,{'attributes':['vid_start','vid_end']}))return;const _0x45b322=_0x3a9140['modelRange']['start']['nodeAfter'];_0x220880['writer']['setAttribute']('vid_start',_0x2bfce0['getAttribute']('vid_start'),_0x45b322),_0x220880['writer']['setAttribute']('vid_end',_0x2bfce0['getAttribute']('vid_end'),_0x45b322);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x281714=>{_0x281714['on']('element',(_0x15d568,_0x36507a,_0xb9195c)=>{if(!_0xb9195c['consumable']['consume'](_0x36507a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x36507a['modelRange']['isCollapsed'])return;const _0x1aff76=_0x36507a['modelRange']['start']['nodeAfter'];_0x1aff76['hasAttribute']('vid_start')||_0x1aff76['hasAttribute']('vid')||(_0xb9195c['writer']['setAttribute']('vid_start',_0x36507a['viewItem']['getAttribute']('vid_start'),_0x1aff76),_0xb9195c['writer']['setAttribute']('vid_end',_0x36507a['viewItem']['getAttribute']('vid_end'),_0x1aff76));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4fd875=>_0x4fd875['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3ec38b,[,_0x1c10ae])=>{['vid_start','vid_end','vid']['includes'](_0x1c10ae)&&(_0x3ec38b['return']=!0x0,_0x3ec38b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b82ba=>{_0x5b82ba['on']('attribute:vid',(_0xcde0e9,_0x3b2fb4,_0x5636e3)=>{if('\x20'!=_0x3b2fb4['item']['data']||_0x3b2fb4['item']['parent']['maxOffset']>0x1)return;if(!_0x5636e3['consumable']['consume'](_0x3b2fb4['item'],_0xcde0e9['name']))return;const _0x32c825=_0x5636e3['writer'],_0x5d13fd=_0x5636e3['mapper']['toViewRange'](_0x3b2fb4['range']);_0x32c825['wrap'](_0x5d13fd,_0x32c825['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2d73f0){const _0x5f1bde=_0x2d73f0['plugins']['get']('RevisionViewer');return(_0x3f9803,_0x32f704,_0x21cb2f)=>{const _0x2e2058=_0x32f704['markerName']['split'](':')[0x1],_0x47ba9e=_0x5f1bde['_getChangeFromId'](_0x2e2058);if(!_0x47ba9e)return null;const _0x5b30fb='add'==_0x47ba9e['type']?'split':'merge';if(!_0x21cb2f['consumable']['test'](_0x32f704['markerRange'],_0x3f9803['name']))return;const _0x21b938=_0x32f704['markerRange']['getWalker'](),_0x23950c=_0x32f704['markerRange']['start'],_0x4f5bab=_0x2d73f0['model']['schema'];let _0x2647ce=null,_0x1a9a72=null,_0x357107=!0x1,_0x553f93=!0x1;for(const _0xffea12 of _0x21b938){const _0x1790bd=_0xffea12['item'];_0x357107=_0x357107||_0x4f5bab['isContent'](_0x1790bd);const _0x4411c9=_0x21cb2f['mapper']['toViewElement'](_0x1790bd);if(_0x4411c9&&_0x4411c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xffea12['type']&&(_0x4f5bab['isBlock'](_0x1790bd)&&!_0x4f5bab['isLimit'](_0x1790bd)&&(_0x1790bd['nextSibling']||_0x23950c['isAtEnd']?_0x2647ce&&_0x2647ce['parent']==_0x1790bd||(_0x2647ce=_0x1790bd,_0x14cee1(_0xffea12['previousPosition']),_0x553f93=!0x0):_0x1a9a72=_0x1a9a72||_0xffea12['previousPosition']));}function _0x14cee1(_0x380729){const _0x36c522=_0x21cb2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b30fb}),_0xa363d7=_0x21cb2f['mapper']['toViewPosition'](_0x380729);_0x47ba9e['data']['isSuggestion']&&_0x21cb2f['writer']['addClass']('ck-suggestion-marker-'+_0x5b30fb+'-new',_0x36c522),_0x5f1bde['activeChange']==_0x47ba9e&&_0x21cb2f['writer']['addClass']('ck-suggestion-marker--active',_0x36c522),_0x21cb2f['writer']['insert'](_0xa363d7,_0x36c522),_0x21cb2f['mapper']['bindElementToMarker'](_0x36c522,_0x32f704['markerName']);}_0x357107||_0x553f93||!_0x1a9a72||_0x14cee1(_0x1a9a72);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x479026,_0x272e2a,_0x2e758b)=>{const _0x679b90=_0x2e758b['mapper']['markerNameToElements'](_0x272e2a['markerName']);if(_0x679b90){for(const _0xe2a106 of _0x679b90)(_0xe2a106['hasClass']('ck-suggestion-marker-split')||_0xe2a106['hasClass']('ck-suggestion-marker-merge'))&&(_0x2e758b['mapper']['unbindElementFromMarkerName'](_0xe2a106,_0x272e2a['markerName']),_0x2e758b['writer']['remove'](_0xe2a106));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f8f37,_0x9043ee,_0x139ff7)=>{const _0x4745cc=_0x9043ee['markerName']['split'](':')[0x1],_0x5a33e5=this['_getChangeFromId'](_0x4745cc);if(!_0x5a33e5)return null;const _0xbb7b04='add'==_0x5a33e5['type']?'split':'merge';if(_0x139ff7['consumable']['test'](_0x9043ee['markerRange'],_0x4f8f37['name']))for(const _0x1f1e41 of _0x9043ee['markerRange']['getItems']()){if(!_0x1f1e41['is']('element','softBreak'))continue;const _0x4ac379=_0x139ff7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbb7b04}),_0x5319f2=_0x139ff7['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1f1e41));_0x5a33e5['data']['isSuggestion']&&_0x139ff7['writer']['addClass']('ck-suggestion-marker-'+_0xbb7b04+'-new',_0x4ac379),this['activeChange']==_0x5a33e5&&_0x139ff7['writer']['addClass']('ck-suggestion-marker--active',_0x4ac379),_0x139ff7['writer']['insert'](_0x5319f2,_0x4ac379),_0x139ff7['mapper']['bindElementToMarker'](_0x4ac379,_0x9043ee['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1fcbc2=>{for(const _0x30b904 of this['editor']['model']['document']['getRootNames']()){const _0x2d5f7e=this['editor']['model']['document']['getRoot'](_0x30b904),_0x1a5ae4=this['editor']['editing']['view']['document']['getRoot'](_0x30b904);if(_0x1a5ae4){const _0xb003d9=_0x2d5f7e['getAttribute']('revisionHistoryAttachChange');if(_0x1fcbc2['removeAttribute']('data-change-id',_0x1a5ae4),_0x1fcbc2['removeClass']('ck-revision-history-root-add',_0x1a5ae4),_0x1fcbc2['removeClass']('ck-revision-history-root-remove',_0x1a5ae4),_0x1fcbc2['removeClass']('ck-revision-history-root--active',_0x1a5ae4),_0xb003d9){const _0x4ebfa1=this['_getChangeFromId'](_0xb003d9);if(!_0x4ebfa1)return null;_0x1fcbc2['setAttribute']('data-change-id',_0xb003d9,_0x1a5ae4),_0x1fcbc2['addClass']('ck-revision-history-root-'+_0x4ebfa1['type'],_0x1a5ae4),this['activeChange']==_0x4ebfa1&&_0x1fcbc2['addClass']('ck-revision-history-root--active',_0x1a5ae4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3472fe=>'revision-comment:'+_0x3472fe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x16ee86=>'revision-suggestion:'+_0x16ee86,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2c72f1=>({'name':'suggestion:'+_0x2c72f1,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x140f6b=>{const _0x505499=_0x140f6b['markerName']['split'](':')[0x1];return'insertion'!=_0x505499&&'deletion'!=_0x505499?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x505499]};}}),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',(_0x41d373,_0xeb0363,_0x22e8e5)=>{const _0xa3c13e=_0x22e8e5['mapper']['markerNameToElements'](_0xeb0363['markerName']);if(_0xa3c13e){for(const _0x51c84b of _0xa3c13e)_0x51c84b['is']('uiElement')&&(_0x22e8e5['mapper']['unbindElementFromMarkerName'](_0x51c84b,_0xeb0363['markerName']),_0x22e8e5['writer']['remove'](_0x51c84b));}},{'priority':'high'});}['_getChangeFromId'](_0x4d2de2){return this['_changeIdToChange']['get'](_0x4d2de2);}['_getViewForChange'](_0x47696e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x47696e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2ef88c,_0x8e7726,_0x4e7666,_0x410442)=>{_0x410442&&this['_balloon']['remove'](_0x410442),_0x4e7666&&(this['_balloon']['add']({'view':_0x4e7666,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c46f3=this['editor']['editing'],_0x19310f=this['_getChangeFromId'](_0x4e7666['changeId']);let _0xc5758b;if(_0x19310f['data']['isOnRoot']){const _0x37317a=_0x3c46f3['view']['getDomRoot'](_0x19310f['rootName']);_0xc5758b=Array['from'](_0x37317a['getClientRects']());}else{const _0x3c4f48=this['editor']['model']['markers']['get']('revision:'+_0x4e7666['changeId']);_0xc5758b=Array['from'](_0x3c46f3['mapper']['markerNameToElements'](_0x3c4f48['name']))['map'](_0x5b9985=>_0x3c46f3['view']['domConverter']['mapViewToDom'](_0x5b9985))['map'](_0x5ebda6=>Array['from'](_0x5ebda6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc5758b[0x0];return _0xc5758b['find'](_0x39900d=>_0x39900d['top']-0x3<=this['_activeViewTarget']['y']&&_0x39900d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x39900d['left']-0x3<=this['_activeViewTarget']['x']&&_0x39900d['right']+0x3>=this['_activeViewTarget']['x'])||_0xc5758b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4e6487,_0x1708bf,_0x3229b8,_0x213997)=>{this['activeView']=_0x3229b8?this['_getViewForChange'](_0x3229b8):null,this['editor']['model']['change'](()=>{const _0x23476c=this['editor']['editing'];_0x213997&&(_0x213997['data']['isOnRoot']?_0x23476c['view']['change'](_0x33b767=>{_0x33b767['removeClass']('ck-revision-history-root--active',_0x23476c['view']['document']['getRoot'](_0x213997['rootName']));}):_0x23476c['reconvertMarker']('revision:'+_0x213997['id'])),_0x3229b8&&(_0x3229b8['data']['isOnRoot']?_0x23476c['view']['change'](_0x55fffb=>{_0x55fffb['addClass']('ck-revision-history-root--active',_0x23476c['view']['document']['getRoot'](_0x3229b8['rootName']));}):_0x23476c['reconvertMarker']('revision:'+_0x3229b8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1fad9c,_0x45a2f2)=>{if(this['activeChange'])return;const _0x351d4a=this['_findChangeIdFromDomTarget'](_0x45a2f2['target']),_0x3201de=this['_changeIdToChange']['get'](_0x351d4a);_0x3201de?(this['_activeViewTarget']={'x':_0x45a2f2['domEvent']['x'],'y':_0x45a2f2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3201de)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b9e05,_0x4a1ba4)=>{const _0x4d9247=this['_findChangeIdFromDomTarget'](_0x4a1ba4['target']),_0x4034dc=this['_changeIdToChange']['get'](_0x4d9247);_0x4034dc?(this['_activeViewTarget']={'x':_0x4a1ba4['domEvent']['x'],'y':_0x4a1ba4['domEvent']['y']},_0x4034dc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4034dc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4cebd9){do{const _0xf98b1a=_0x4cebd9['getAttribute']('data-change-id');if(_0xf98b1a)return _0xf98b1a;_0x4cebd9=_0x4cebd9['parent'];}while(_0x4cebd9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2f0194=>{for(const _0x21b486 of this['editor']['model']['markers'])_0x2f0194['removeMarker'](_0x21b486);});}}function Z(_0x1e6687,_0x28c29e){return(_0x3e9488,_0x348a47,_0x10b668)=>{if(!_0x10b668['consumable']['test'](_0x348a47['markerRange'],_0x3e9488['name']))return;const _0x49e4bb=_0x348a47['markerRange']['getWalker'](),_0x238749=_0x348a47['markerRange']['start'],_0x21fc3d=_0x1e6687['model']['schema'];let _0x12123a=null,_0x35ad97=null,_0x11ddd9=!0x1,_0x529d09=!0x1;for(const _0x12da83 of _0x49e4bb){const _0x4ee007=_0x12da83['item'];_0x11ddd9=_0x11ddd9||_0x21fc3d['isContent'](_0x4ee007);const _0x26fdfb=_0x10b668['mapper']['toViewElement'](_0x4ee007);if(_0x26fdfb&&_0x26fdfb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12da83['type']&&(_0x21fc3d['isBlock'](_0x4ee007)&&!_0x21fc3d['isLimit'](_0x4ee007)&&(_0x4ee007['nextSibling']||_0x238749['isAtEnd']?_0x12123a&&_0x12123a['parent']==_0x4ee007||(_0x12123a=_0x4ee007,_0x30b8b7(_0x12da83['previousPosition']),_0x529d09=!0x0):_0x35ad97=_0x35ad97||_0x12da83['previousPosition']));}function _0x30b8b7(_0x3a6f4a){const _0x4e0108=_0x10b668['mapper']['toViewPosition'](_0x3a6f4a),_0x5215d9=_0x10b668['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x28c29e});_0x10b668['writer']['insert'](_0x4e0108,_0x5215d9),_0x10b668['mapper']['bindElementToMarker'](_0x5215d9,_0x348a47['markerName']);}_0x11ddd9||_0x529d09||!_0x35ad97||_0x30b8b7(_0x35ad97);};}class wt extends _0x817d7b{constructor(_0x510240){super(_0x510240);const _0x1516b1=_0x510240['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1516b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1516b1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5498ff=this['editor'],_0x41bdc5=_0x5498ff['plugins']['get'](d),_0x4ddd04=_0x41bdc5['isReady']?_0x41bdc5['diff']['newRevisionId']:null;_0x5498ff['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4ddd04);}['refresh'](){const {isReady:_0x5696c4,isEnabled:_0x47f987,repository:_0x275519,diff:_0x35eb6c}=this['editor']['plugins']['get'](d),_0x191d47=_0x35eb6c&&_0x275519['getLaterVisibleRevision'](_0x35eb6c['newRevisionId']);this['isEnabled']=_0x5696c4&&_0x47f987&&Boolean(_0x191d47);}}class _t extends _0x817d7b{['_step'];constructor(_0x44b6b7,{direction:_0x1b56e7}){super(_0x44b6b7);const _0x4404fa=_0x44b6b7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1b56e7?0x1:-0x1,this['listenTo'](_0x4404fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4404fa,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4404fa,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d305b=this['editor'],_0x197759=_0x4d305b['plugins']['get'](d),{isNavigationMode:_0xa491de,currentChangeNumber:_0x5c55bd}=_0x197759;let _0x2d725c;if(_0x197759['activeChange']=_0xa491de?_0x197759['diff']['changes']['get'](_0x5c55bd+this['_step']):_0x197759['diff']['changes']['first'],_0x197759['activeChange']['data']['isOnRoot'])_0x2d725c=_0x4d305b['editing']['view']['getDomRoot'](_0x197759['activeChange']['rootName']);else{const _0x55f148=_0x4d305b['model']['markers']['get']('revision:'+_0x197759['activeChange']['id']);_0x2d725c=_0x3a6583(_0x4d305b['editing'],_0x55f148);}_0x3f9ecc({'target':_0x2d725c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xcc6137,currentChangeNumber:_0x330451,numberOfChanges:_0x3ebb58,isReady:_0x530839,isEnabled:_0x2db314}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2db314&&_0x530839&&_0x3ebb58)&&(!_0xcc6137||(0x1===this['_step']?_0x330451<_0x3ebb58-0x1:_0x330451>0x0));}}class _i extends ts{constructor(_0x505111){super(_0x505111);const _0x4faa1e=this['bindTemplate'],_0x9f13de=new te(_0x505111),_0x55927e=new te(_0x505111);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',(_0xa22075,_0x2b4ec0)=>_0xa22075&&_0x2b4ec0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x56a929,_0x4e1050,_0x4477dd,_0x1c49b3)=>{if(!_0x56a929)return m(_0x505111,'Loading...');if(!_0x4477dd)return m(_0x505111,'No\x20changes');const _0x4b16cb=m(_0x505111,'NUMBER_OF_CHANGES',_0x4477dd);return _0x1c49b3?m(_0x505111,'X_OF_Y_CHANGES',[_0x4e1050+0x1,_0x4477dd]):_0x4b16cb;}),_0x9f13de['set']({'label':m(_0x505111,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xc02e0b}),_0x55927e['set']({'label':m(_0x505111,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x7fa6de}),_0x9f13de['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x55927e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x9f13de['on']('execute',()=>this['fire']('execute','backward')),_0x55927e['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',_0x4faa1e['if']('_isStatusLabelVisible','ck-hidden',_0x1a4953=>!_0x1a4953)]},'children':[{'text':_0x4faa1e['to']('isNavigationMode',_0x66d4d8=>_0x66d4d8?m(_0x505111,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x505111,'Total')+':\x20')}]},{'text':_0x4faa1e['to']('_statusText')}]},new _0xace4b1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x9f13de,_0x55927e]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x593b73{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f38be=this['editor']['editing']['view'];_0x4f38be['change'](_0x4d7ade=>{for(const _0x2304cf of _0x4f38be['document']['roots'])_0x4d7ade['addClass'](le,_0x2304cf);});}['hide'](){const _0x1ff8bd=this['editor']['editing']['view'];_0x1ff8bd['change'](_0x2588f7=>{for(const _0x6d38a6 of _0x1ff8bd['document']['roots'])_0x2588f7['removeClass'](le,_0x6d38a6);});}}class w extends _0x593b73{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x2e4efe=this['editor'],_0x776170=_0x2e4efe['plugins']['get'](d),_0x31edd5=_0x2e4efe['plugins']['get'](ge);_0x2e4efe['ui']['componentFactory']['add']('exitToEditing',_0x2b0872=>{const _0x12b16c=new te(_0x2b0872);return _0x12b16c['set']({'label':m(_0x2b0872,'Back\x20to\x20editing'),'icon':_0x499628,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x12b16c,'execute',()=>{_0x2e4efe['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x12b16c;}),_0x2e4efe['ui']['componentFactory']['add']('restoreRevision',_0xbeeb56=>{const _0x5a5c73=new te(_0xbeeb56);return _0x5a5c73['set']({'label':m(_0xbeeb56,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5a5c73['bind']('isEnabled')['to'](_0x2e4efe['commands']['get']('restoreRevision')),this['listenTo'](_0x5a5c73,'execute',()=>_0x2e4efe['execute']('restoreRevision')),_0x5a5c73;}),_0x2e4efe['ui']['componentFactory']['add']('changesNavigation',_0x3d0760=>{const _0x17b539=new _i(_0x3d0760),_0x1a604d=_0x2e4efe['commands']['get']('showPreviousChange'),_0x3b7158=_0x2e4efe['commands']['get']('showNextChange');return _0x17b539['bind']('isBackwardNavigationEnabled')['to'](_0x1a604d,'isEnabled'),_0x17b539['bind']('isForwardNavigationEnabled')['to'](_0x3b7158,'isEnabled'),_0x17b539['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x776170),this['listenTo'](_0x17b539,'execute',(_0x26ed00,_0x5c223d)=>{_0x2e4efe['execute']('forward'===_0x5c223d?'showNextChange':'showPreviousChange');}),_0x17b539;}),_0x31edd5['show'](),_0x776170['on']('change:isReady',(_0x2f56ce,_0x15f5d1,_0x124e41)=>{_0x124e41?_0x31edd5['hide']():_0x31edd5['show']();});}}class pt extends _0x2f3f89{['_resizeObserver']=null;constructor(_0x4feacd,_0x2b9be0){super(_0x4feacd,_0x2b9be0);const _0x19e9da=this['bindTemplate'];this['set']({'label':m(_0x4feacd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4feacd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x19e9da['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 _0x155e0f=this['fieldView']['element'];this['_tooltipString']=_0x155e0f['scrollWidth']>_0x155e0f['clientWidth']&&_0x155e0f['value']||'';}}class si extends ts{constructor(_0x517159,_0x52ec84,_0x52fedd){super(_0x517159);const _0x414631=new _0x34b5bd();_0x414631['set']({'content':_0x22e382,'viewBox':'0\x200\x2011\x2010'});const _0x2d8e00=['ck','ck-revision-history-sidebar__revision-author'];_0x52fedd&&_0x2d8e00['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50c921=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x517159,_0x52fedd?'Revision\x20creator':'Revision\x20author')},'children':[_0x414631,_0x52ec84['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2d8e00},'children':_0x50c921});}}function oi(_0x291f91,_0x9ce5c3){const _0x2701c8=_0x291f91['bindTemplate'],_0x4e6292=_0x291f91['locale'],_0x6cc733=_0x23f68e(_0x4e6292);_0x6cc733['panelPosition']='sw';const _0x37bc2e=function(_0x21f1ae,_0x3f10ac){const _0x5c1727=function(_0x40232b,_0x3a91f0){const _0x115316=_0x40232b['locale'],_0x571dda={'Compare\x20against\x20selected':m(_0x115316,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x115316,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x115316,'Restore\x20this\x20revision')};return _0x3a91f0['map'](_0x37b38c=>{const _0x671358=_0x571dda[_0x37b38c['name']];return _0x671358&&_0x671358!==_0x37b38c['name']&&(_0x37b38c['name']=_0x671358),_0x37b38c;});}(_0x21f1ae,_0x3f10ac),_0xa98d99=new _0x58935e();for(const _0x3362d8 of _0x5c1727){const _0x420833={'type':'button','model':new to({'label':_0x3362d8['name'],'class':_0x3362d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x3362d8['action']})};_0x420833['model']['bind']('isEnabled')['to'](_0x21f1ae,'isActionsDropdownOpen',_0x1d762c=>'function'!=typeof _0x3362d8['isEnabled']||(!_0x1d762c||_0x3362d8['isEnabled'](_0x21f1ae))),_0xa98d99['add'](_0x420833);}return _0xa98d99;}(_0x291f91,_0x9ce5c3);return _0x291f91['bind']('isActionsDropdownOpen')['to'](_0x6cc733,'isOpen'),_0x6cc733['buttonView']['set']({'label':m(_0x4e6292,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1df601}),_0x6cc733['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2701c8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2701c8['to'](_0x2c5e87=>_0x2c5e87['stopPropagation']())}}),_0x6cc733['on']('execute',_0x353e1a=>{_0x291f91['isReady']&&'function'==typeof _0x353e1a['source']['_action']&&_0x353e1a['source']['_action'](_0x291f91);}),_0x399fd2(_0x6cc733,_0x37bc2e,{'role':'menu'}),_0x6cc733['listenTo'](_0x291f91,'change:isActionsDropdownOpen',(_0xf907a3,_0x372c81,_0x49099a)=>{if(_0x49099a)for(const _0x5c0b9a of _0x6cc733['listView']['items']){const _0x5681cd=_0x5c0b9a['children']['first'],_0x3faa07=_0x9ce5c3['find'](_0x2e9f0e=>_0x2e9f0e['action']===_0x5681cd['_action'])['isVisible'];_0x5c0b9a['isVisible']=void 0x0===_0x3faa07||_0x3faa07(_0x291f91);}}),_0x6cc733;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2fec88,_0x4c41bb,_0x1e6d0b,_0x581302){super(_0x2fec88);const _0x55b914=this['bindTemplate'],_0x196987=function(_0x1bee55,_0x2ea817){const _0x3d12bf=Array['from'](_0x2ea817['authors'])['filter'](_0x4998e9=>_0x4998e9!=_0x2ea817['creator']);return _0x2ea817['creator']&&_0x3d12bf['unshift'](_0x2ea817['creator']),_0x3d12bf['map'](_0x34d151=>new si(_0x1bee55,_0x34d151,_0x34d151==_0x2ea817['creator']));}(_0x2fec88,_0x4c41bb);this['id']=_0x4c41bb['id'],this['_revision']=_0x4c41bb,this['_requireRevisionName']=_0x581302,this['bind']('name','createdAt')['to'](_0x4c41bb),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x469687=>{return _0x1f8eac=_0x2fec88['uiLanguage'],(_0x4c9c4f=_0x469687)['toLocaleDateString'](_0x1f8eac,{'month':'long','day':'numeric'})+',\x20'+_0x4c9c4f['toLocaleTimeString'](_0x1f8eac,{'hour':'numeric','minute':'numeric'});var _0x1f8eac,_0x4c9c4f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2fec88,_0xdef740),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a352b=>_0x1a352b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x51345c,_0x4c9766)=>_0x51345c&&_0x4c9766),this['revisionActionsView']=_0x1e6d0b&&_0x1e6d0b['length']?oi(this,_0x1e6d0b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x55b914['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x55b914['if']('isEnabled','ck-disabled',_0xfe115f=>!_0xfe115f),_0x55b914['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x55b914['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x55b914['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':_0x55b914['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':_0x196987}]},this['revisionActionsView']],'on':{'click':_0x55b914['to'](_0x3e9ef6=>{_0x3e9ef6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4d84d0=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4d84d0,'change',()=>{this['_requireRevisionName']&&!_0x4d84d0['value']||this['fire']('setName',{'id':this['id'],'name':_0x4d84d0['value']}),_0x4d84d0['value']||(_0x4d84d0['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x15dc42,_0x13eed7){const _0x3b5f4e=_0x26a4b2['fromJSDate'](_0x15dc42)['setLocale'](_0x13eed7),_0x18ae53=_0x26a4b2['local'](),_0x1329d2=_0x18ae53['minus']({'days':0x1})['startOf']('day');let _0xba79dd,_0x172188;return _0x3b5f4e['hasSame'](_0x18ae53,'day')?(_0xba79dd=_0x3b5f4e['startOf']('day')['toJSDate'](),_0x172188=_0x3b5f4e['toRelativeCalendar']()):_0x3b5f4e['hasSame'](_0x1329d2,'day')?(_0xba79dd=_0x1329d2['toJSDate'](),_0x172188=_0x3b5f4e['toRelativeCalendar']()):_0x3b5f4e['hasSame'](_0x18ae53,'week')?(_0xba79dd=_0x3b5f4e['startOf']('week')['toJSDate'](),_0x172188=_0x3b5f4e['weekdayLong']||''):_0x3b5f4e['hasSame'](_0x18ae53,'year')?(_0xba79dd=_0x3b5f4e['startOf']('month')['toJSDate'](),_0x172188=_0x3b5f4e['monthLong']||''):(_0xba79dd=_0x3b5f4e['startOf']('year')['toJSDate'](),_0x172188=String(_0x3b5f4e['year'])),{'startDate':_0xba79dd,'localizedPeriodName':_0x172188};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1857e9,_0x5cdd97,_0x898742,_0x4fe3c0){super(_0x1857e9);const _0x8670fa=ai(_0x5cdd97,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5cdd97,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x898742,this['_requireRevisionName']=_0x4fe3c0,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':_0x8670fa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54f661){const _0x1c2cd3=new hi(this['locale'],_0x54f661,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1c2cd3);}['removeRevision'](_0x4c4b0a){const _0x1b2620=this['revisionViews']['find'](_0x23d975=>_0x23d975['id']===_0x4c4b0a['id']);this['revisionViews']['remove'](_0x1b2620);}}class as extends ts{constructor(_0x32e1dc){super(_0x32e1dc);const _0x1fc4c5=new _0x34b5bd();_0x1fc4c5['content']=_0x45f1b2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1fc4c5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x32e1dc,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3220a7,_0x3890d6,_0x577d93,_0x18855a){super(_0x3220a7);const _0x4d67d4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3890d6,this['_revisionActions']=_0x577d93,this['_requireRevisionName']=_0x18855a,this['on']('select',(_0xc8842b,_0x5c06fc)=>{this['fire']('revisionSelected',_0x5c06fc);}),this['on']('setName',(_0x435dd8,_0xec0d65)=>{this['fire']('revisionSetName',_0xec0d65);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3220a7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4d67d4['if']('isEnabled','ck-disabled',_0x40ef5a=>!_0x40ef5a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5a1344 of this['_revisions'])this['_addRevision'](_0x5a1344);this['_revisions']['on']('add',(_0x13eacb,_0x288558)=>{this['_addRevision'](_0x288558);}),this['_revisions']['on']('remove',(_0x4f4c63,_0x17e160)=>{this['_removeRevision'](_0x17e160);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4f8921=>_0x4f8921['revisionViews']['map'](_0x78d084=>_0x78d084))['flat']();}['selectRevision'](_0x47f919){for(const _0x543e2c of this['revisionViews'])_0x47f919&&_0x47f919['id']===_0x543e2c['id']?_0x543e2c['select']():_0x543e2c['deselect']();}['highlightRevisions'](_0x399986){for(const _0x208eca of this['revisionViews'])_0x399986['some'](({id:_0x29f2c5})=>_0x29f2c5===_0x208eca['id'])?_0x208eca['highlight']():_0x208eca['unhighlight']();}['_addRevision'](_0x31f588){const _0x3de3f7=ai(_0x31f588['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4501fe=this['timePeriodViews']['get'](0x0);_0x4501fe&&_0x4501fe['startDate']['getTime']()===_0x3de3f7['getTime']()||(_0x4501fe=new di(this['locale'],_0x3de3f7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4501fe)),_0x4501fe['addRevision'](_0x31f588);}['_removeRevision'](_0x2c925b){const _0xb2e209=ai(_0x2c925b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb2e209)['removeRevision'](_0x2c925b);}['_getTimePeriodViewByStartDate'](_0x3032d6){return this['timePeriodViews']['find'](_0x4a3ba7=>_0x4a3ba7['startDate']['getTime']()===_0x3032d6['getTime']());}}class g extends _0x593b73{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x3d781,uid as _0x4e207b,Collection as _0x8dad72,logWarning as _0x2d052d,FocusTracker as _0x539dec,KeystrokeHandler as _0x573fdc,scrollViewportToShowTarget as _0x9531a1,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x194013}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x22418a,set as _0x30405c,unset as _0x414922,isEqual as _0x2a48d6}from'es-toolkit/compat';import{Plugin as _0x26fb00,PendingActions as _0x5c7714,Command as _0x233339,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x134057,getMarkerDomElement as _0x12c61c,ConfirmMixin as _0x1f12de,sanitizeEditorConfig as _0x4802af}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x56f6be,Element as ut,Range as ft,ViewUIElement as _0x22652a,ViewRawElement as _0x2cbc43,ViewEmptyElement as _0x48a8b3,ViewAttributeElement as _0x30fb6c,ViewContainerElement as _0xbee4c,Position as vt,ViewText as _0xc3b70e,ViewElement as _0x42d694,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5d107e,IconChevronUp as _0x1e91b5,IconChevronDown as _0x263d4b,IconUndo as _0x4f97fe,IconUser as _0x409b87,IconThreeVerticalDots as _0x3b73b4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x5c59b1,injectCssTransitionDisabler as ts,submitHandler as _0x414a21,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x43bd05,ListView as _0x11f175,ListItemView as te,ButtonView as _0x1514b3,MenuBarMenuView as _0x37c1b7,MenuBarMenuListView as _0x4572c7,MenuBarMenuListItemView as _0x2e24f1,MenuBarMenuListItemButtonView as _0x1fe456,ContextualBalloon as _0x788d43,ToolbarSeparatorView as _0x33a9ee,IconView as _0x35e69b,addListToDropdown as _0x177c45,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x30cf25}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x3d781(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2b8026){super(),this['id']=_0x2b8026['id']||_0x4e207b(),this['creator']=_0x2b8026['creator']||null,this['authors']=_0x2b8026['authors']||[],this['diffData']=_0x2b8026['diffData']||null,this['toVersion']=_0x2b8026['toVersion']||0x0,this['fromVersion']=_0x2b8026['fromVersion']||0x0,this['set']('name',_0x2b8026['name']||''),this['set']('createdAt',_0x2b8026['createdAt']||new Date()),this['set']('attributes',_0x2b8026['attributes']||{});}['setName'](_0x2edc0c){this['_update']({'name':_0x2edc0c});}['setAttribute'](_0x1ca59d,_0x379dd0){const _0x23f5f9=_0x22418a(this['attributes']);_0x30405c(_0x23f5f9,_0x1ca59d,_0x379dd0),this['_update']({'attributes':_0x23f5f9});}['removeAttribute'](_0x121eff){const _0x3e67b6=_0x22418a(this['attributes']);_0x414922(_0x3e67b6,_0x121eff),this['_update']({'attributes':_0x3e67b6});}['_update'](_0x311603,_0x42cee3=!0x1){let _0x3f3e4c=!0x1;const _0x246e4f={'id':this['id']},_0xadb3c6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x375760 of _0xadb3c6){const _0x5ea682=_0x311603[_0x375760];void 0x0!==_0x5ea682&&_0x5ea682!==this[_0x375760]&&(this[_0x375760]=_0x5ea682,_0x246e4f[_0x375760]=_0x5ea682,_0x3f3e4c=!0x0);}_0x3f3e4c&&(_0x246e4f['authors']&&(_0x246e4f['authorsIds']=_0x246e4f['authors']['map'](_0x4d12bd=>_0x4d12bd['id']),delete _0x246e4f['authors']),this['fire']('_update',_0x246e4f,_0x42cee3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x578f62=>_0x578f62['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x26fb00{['_revisions'];static get['requires'](){return[_0x134057];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5899b9){super(_0x5899b9),this['_revisions']=new _0x8dad72();}['afterInit'](){!async function(_0x50ac7e){const _0x53c624=_0x589049([0x72,0x79,0x58,0x6c,0x4d,0x52,0x57,0x45,0x73,0x31,0x33,0x30,0x56,0x4a,0x41,0x59,0x65,0x78,0x50,0x75,0x39,0x37,0x43,0x49,0x4b,0x77,0x4e,0x47,0x51,0x74,0x34,0x68,0x55,0x76,0x46,0x6e,0x6b,0x38,0x66,0x61,0x53,0x6f,0x36,0x64,0x44,0x70,0x6a,0x67,0x35,0x42,0x6d,0x4f,0x54,0x69,0x63,0x32,0x5a,0x48,0x7a,0x71,0x62,0x4c]),_0x2c1ce1=0xeb829,_0x3e6aae=0x5607b186,_0x5b4900=0x5600d0ae^_0x3e6aae,_0x170ba0=window[_0x589049([0x44,0x61,0x74,0x65])][_0x589049([0x6e,0x6f,0x77])](),_0x129b28=_0x50ac7e[_0x589049([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e0ef3=new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cff3=>{_0x129b28[_0x589049([0x6f,0x6e,0x63,0x65])](_0x589049([0x72,0x65,0x61,0x64,0x79]),_0x55cff3);}),_0x8efefc={[_0x589049([0x6b,0x74,0x79])]:_0x589049([0x45,0x43]),[_0x589049([0x75,0x73,0x65])]:_0x589049([0x73,0x69,0x67]),[_0x589049([0x63,0x72,0x76])]:_0x589049([0x50,0x2d,0x32,0x35,0x36]),[_0x589049([0x78])]:_0x589049([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]),[_0x589049([0x79])]:_0x589049([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]),[_0x589049([0x61,0x6c,0x67])]:_0x589049([0x45,0x53,0x32,0x35,0x36])},_0x54a847=_0x129b28[_0x589049([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x589049([0x67,0x65,0x74])](_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x370610(){let _0x2aef5f,_0x491e90=null,_0x41e2b1=null;try{if(_0x54a847==_0x589049([0x47,0x50,0x4c]))return _0x589049([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2aef5f=_0x14a655(),!_0x2aef5f)return _0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2aef5f[_0x589049([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41e2b1=_0x1ed265(_0x2aef5f[_0x589049([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2aef5f[_0x589049([0x6a,0x74,0x69])])),await _0x36bf9a()?_0x24cd4()?_0xb0d720()?_0x589049([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aa332()?(_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x589049([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x491e90=_0x3c1e26(_0x589049([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x589049([0x74,0x72,0x69,0x61,0x6c])&&(_0x491e90=_0x3c1e26(_0x589049([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33af58()):_0x589049([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x589049([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x22871d){return _0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb0d720(){const _0x369a64=[_0x589049([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x589049([0x74,0x72,0x69,0x61,0x6c])][_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x170ba0/0x3e8:0xe10*_0x5b4900;return _0x2aef5f[_0x589049([0x65,0x78,0x70])]<_0x369a64;}function _0x24cd4(){const _0x275240=_0x2aef5f[_0x589049([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x275240)return!0x1;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x2a])))return!0x0;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x52,0x48])))return!0x0;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x52,0x52,0x48]))){if(_0x5f220c())return!0x0;if(_0xd1450a()||_0x15d029())return!0x0;}return!0x1;}function _0x1aa332(){const _0x3158c5=_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3158c5||0x0==_0x3158c5[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5692b1}=new URL(window[_0x589049([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3158c5[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5692b1))return!0x0;const _0x3e2759=_0x5692b1[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e]));return _0x3158c5[_0x589049([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x244e62=>_0x244e62[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x2a])))[_0x589049([0x6d,0x61,0x70])](_0x558c3d=>_0x558c3d[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e])))[_0x589049([0x73,0x6f,0x6d,0x65])](_0x4e0901=>_0x3e2759[_0x589049([0x65,0x76,0x65,0x72,0x79])]((_0x46fe01,_0xd2c1d)=>_0x4e0901[_0xd2c1d]===_0x46fe01||_0x4e0901[_0xd2c1d]===_0x589049([0x2a])));}function _0x33af58(){return _0x491e90&&_0x41e2b1?new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a9ad,_0x4b9106)=>{_0x491e90[_0x589049([0x74,0x68,0x65,0x6e])](_0x37a9ad,_0x4b9106),_0x41e2b1[_0x589049([0x74,0x68,0x65,0x6e])](_0x3065bb=>{_0x3065bb!=_0x589049([0x56,0x61,0x6c,0x69,0x64])&&_0x37a9ad(_0x3065bb);},_0x4b9106);}):_0x491e90||_0x41e2b1||_0x589049([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ed265(_0x3a0270,_0x194ddf){return new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe34aba=>{if(_0x45c1f1())return _0xe34aba(_0x589049([0x56,0x61,0x6c,0x69,0x64]));_0x58e8c7(),_0x129b28[_0x589049([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b0f78=!0x1;const _0x2e04bb=_0x4e207b();function _0x54654b(_0x273a14){return!!_0x273a14&&(typeof _0x273a14===_0x589049([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a14===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a14[_0x589049([0x74,0x68,0x65,0x6e])]===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a14[_0x589049([0x63,0x61,0x74,0x63,0x68])]===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f21b6(_0x164c87){_0x22a962(_0x164c87)[_0x589049([0x74,0x68,0x65,0x6e])](_0x4f9d69=>{if(!_0x4f9d69||_0x4f9d69[_0x589049([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x589049([0x6f,0x6b]))return _0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1f75(_0x243475(_0x2e04bb+_0x194ddf))!=_0x4f9d69[_0x589049([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x589049([0x56,0x61,0x6c,0x69,0x64]);})[_0x589049([0x74,0x68,0x65,0x6e])](_0x127ba4=>(_0x1f5835(),_0x127ba4),()=>{const _0x561047=_0x264dcc();return null==_0x561047?(_0x1f5835(),_0x589049([0x56,0x61,0x6c,0x69,0x64])):_0x589049(_0x170ba0-_0x561047>(0x720b3586^_0x3e6aae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x589049([0x74,0x68,0x65,0x6e])](_0xe34aba)[_0x589049([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53a760=0x56315f06^_0x3e6aae;function _0x1f5835(){const _0x46ec33=_0x589049([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1f75(_0x243475(_0x3a0270)),_0x2f65d7=_0xec5883(_0x3d1f75(window[_0x589049([0x4d,0x61,0x74,0x68])][_0x589049([0x63,0x65,0x69,0x6c])](_0x170ba0/_0x53a760)));window[_0x589049([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x589049([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ec33,_0x2f65d7);}function _0x264dcc(){const _0x1d1450=_0x589049([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1f75(_0x243475(_0x3a0270)),_0x2fec16=window[_0x589049([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x589049([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1450);return _0x2fec16?window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xec5883(_0x2fec16),0x10)*_0x53a760:null;}function _0x22a962(_0x7c3d11){return new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27f2bf,_0x1ca353)=>{_0x7c3d11[_0x589049([0x74,0x68,0x65,0x6e])](_0x27f2bf,_0x1ca353),window[_0x589049([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ca353,0x56066546^_0x3e6aae);});}}_0x129b28[_0x589049([0x6f,0x6e])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3edbcc,_0x3064c7)=>{if(_0x3064c7[0x0]!=_0x3a0270)return _0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3064c7[0x1]={..._0x3064c7[0x1],[_0x589049([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e04bb};},{[_0x589049([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x589049([0x68,0x69,0x67,0x68])}),_0x129b28[_0x589049([0x6f,0x6e])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x304818=>{_0x54654b(_0x304818[_0x589049([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b0f78=!0x0,_0x3f21b6(_0x304818[_0x589049([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x589049([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x589049([0x6c,0x6f,0x77])}),_0x5e0ef3[_0x589049([0x74,0x68,0x65,0x6e])](()=>{_0x2b0f78||_0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45c1f1(){return _0x129b28[_0x589049([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x589049([0x76,0x69,0x65,0x77])][_0x589049([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x589049([0x61,0x75,0x74,0x6f]);}function _0x58e8c7(){_0x129b28[_0x589049([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x589049([0x76,0x69,0x65,0x77])][_0x589049([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x589049([0x61,0x75,0x74,0x6f]);}}function _0x3c1e26(_0x12c55b){const _0x94759=[new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d580d=>setTimeout(_0x3d580d,0x560e8f4a^_0x3e6aae)),_0x5e0ef3[_0x589049([0x74,0x68,0x65,0x6e])](()=>new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa8be73=>{const _0x4fa60c=0x5607b181^_0x3e6aae,_0x4c58e1=_0x50ac7e[_0x589049([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cf605(){_0x4c58e1[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4fa60c&&_0xa8be73();}_0x3cf605(),_0x4c58e1[_0x589049([0x6f,0x6e])](_0x589049([0x61,0x64,0x64]),_0x3cf605);})),new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c83f=>{function _0xc6dafa(){for(const _0x59409c in window)if(window[_0x589049([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x589049([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59409c))&&window[_0x59409c]==_0x2c1ce1)return _0x35c83f();_0x129b28[_0x589049([0x73,0x74,0x61,0x74,0x65])]!=_0x589049([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x589049([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc6dafa,0x5607a20e^_0x3e6aae);}_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xc6dafa();})];return window[_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x589049([0x72,0x61,0x63,0x65])](_0x94759)[_0x589049([0x74,0x68,0x65,0x6e])](()=>_0x12c55b);}async function _0x728bd7(){if(await _0x5e0ef3,_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2d0a61=_0x50ac7e[_0x589049([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x173c72=_0x50ac7e[_0x589049([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])](_0x2d0a61[_0x589049([0x69,0x64])]),_0x22326e=_0x3339e8(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x22326e[_0x589049([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2d0a61['id'],_0x173c72?_0x173c72['id']:null,!0x0),_0x22326e[_0x589049([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x22326e[_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x22326e[_0x589049([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x390d1e,void(_0x22326e[_0x589049([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x390d1e);}if(_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1bdfd3=_0x3339e8(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1bdfd3[_0x589049([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bdfd3[_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bdfd3[_0x589049([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x390d1e,_0x1bdfd3[_0x589049([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x390d1e;}_0x129b28[_0x589049([0x6d,0x6f,0x64,0x65,0x6c])][_0x589049([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x390d1e,_0x129b28[_0x589049([0x6d,0x6f,0x64,0x65,0x6c])][_0x589049([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x390d1e,_0x129b28[_0x589049([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x589049([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f220c(){return _0x431f56(_0x589049([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3339e8(_0x589049([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x589049([0x73,0x74,0x61,0x74,0x65])]==_0x589049([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd1450a(){return _0x431f56(_0x589049([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 _0x15d029(){return _0x431f56(_0x589049([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a759e(_0x4ee59d){const _0x2baeb6=_0xd8f7c7();_0x129b28[_0x2baeb6]=_0x589049([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])+_0x4ee59d,_0x4ee59d[_0x589049([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x589049([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd8f7c7()]=_0x2c1ce1),_0x4ee59d!=_0x589049([0x56,0x61,0x6c,0x69,0x64])&&_0x728bd7();}function _0xd8f7c7(){const _0x3a5bf0=window[_0x589049([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x589049([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x589049([0x6e,0x6f,0x77])]())[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x589049([0x2e]),'');let _0x19308c=_0x589049([0x72]);for(let _0x33f349=0x0;_0x33f349<_0x3a5bf0[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f349+=0x2){let _0x42d124=window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a5bf0[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f349,_0x33f349+0x2));_0x42d124>=_0x53c624[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42d124-=_0x53c624[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19308c+=_0x53c624[_0x42d124];}return _0x19308c;}function _0x14a655(){const _0x15ccf4=_0x54a847[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e]));if(0x3!=_0x15ccf4[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31b9e0(_0x15ccf4[0x1]);function _0x31b9e0(_0x4fafa6){const _0x5e8691=_0x582236(_0x4fafa6);return _0x5e8691&&_0x23a0f1()?_0x5e8691:null;function _0x23a0f1(){const _0x2b6afd=_0x5e8691[_0x589049([0x6a,0x74,0x69])],_0x4fafae=window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6afd[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6afd[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x200a77={..._0x5e8691,[_0x589049([0x6a,0x74,0x69])]:_0x2b6afd[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6afd[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x200a77[_0x589049([0x76,0x63])],_0x243475(_0x200a77)==_0x4fafae;}}}async function _0x36bf9a(){let _0x192239=!0x0;try{const _0xca2b98=_0x54a847[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e])),[_0x5b55c0,_0x3c3d88,_0x3bb672]=_0xca2b98;return _0x4b23f6(_0x5b55c0),await _0x2912a6(_0x5b55c0,_0x3c3d88,_0x3bb672),_0x192239;}catch(_0x25b893){return!0x1;}function _0x4b23f6(_0xafc0dc){const _0xe0a168=_0x582236(_0xafc0dc);_0xe0a168&&_0xe0a168[_0x589049([0x61,0x6c,0x67])]==_0x589049([0x45,0x53,0x32,0x35,0x36])||(_0x192239=!0x1);}async function _0x2912a6(_0x372530,_0x1b476a,_0x518c1c){const _0x3d3d83=window[_0x589049([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x589049([0x66,0x72,0x6f,0x6d])](_0x235788(_0x518c1c),_0x1c3882=>_0x1c3882[_0x589049([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x380feb=new window[(_0x589049([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x589049([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x372530+_0x589049([0x2e])+_0x1b476a),_0x55b219=window[_0x589049([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x589049([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55b219)return;const _0x4fc25d=await _0x55b219[_0x589049([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x589049([0x6a,0x77,0x6b]),_0x8efefc,{[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x45,0x43,0x44,0x53,0x41]),[_0x589049([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x589049([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x589049([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55b219[_0x589049([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x45,0x43,0x44,0x53,0x41]),[_0x589049([0x68,0x61,0x73,0x68])]:{[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fc25d,_0x3d3d83,_0x380feb)||(_0x192239=!0x1);}}function _0x582236(_0x2da4d8){return _0x2da4d8[_0x589049([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x589049([0x65,0x79]))?JSON[_0x589049([0x70,0x61,0x72,0x73,0x65])](_0x235788(_0x2da4d8)):null;}function _0x235788(_0x4f3701){return window[_0x589049([0x61,0x74,0x6f,0x62])](_0x4f3701[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x589049([0x2b]))[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x589049([0x2f])));}function _0x243475(_0x385bb1){let _0x3518dc=0x1505;function _0x5744a8(_0x7cc53d){for(let _0x23d7fc=0x0;_0x23d7fc<_0x7cc53d[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23d7fc++){const _0x5efaef=_0x7cc53d[_0x589049([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23d7fc);_0x3518dc=(_0x3518dc<<0x5)+_0x3518dc+_0x5efaef,_0x3518dc&=_0x3518dc;}}function _0x57333e(_0x58a3c0){Array[_0x589049([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58a3c0)?_0x58a3c0[_0x589049([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57333e):_0x58a3c0&&typeof _0x58a3c0==_0x589049([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x589049([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58a3c0)[_0x589049([0x73,0x6f,0x72,0x74])]()[_0x589049([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25bb70,_0x344397])=>{_0x5744a8(_0x25bb70),_0x57333e(_0x344397);}):_0x5744a8(window[_0x589049([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58a3c0));}return _0x57333e(_0x385bb1),_0x3518dc>>>0x0;}function _0x3d1f75(_0x2f2a93){return _0x2f2a93[_0x589049([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x589049([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x589049([0x30]));}function _0xec5883(_0x3c7ded){return _0x3c7ded[_0x589049([0x73,0x70,0x6c,0x69,0x74])]('')[_0x589049([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x589049([0x6a,0x6f,0x69,0x6e])]('');}function _0x431f56(_0x48a11a){return _0x129b28[_0x589049([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x589049([0x68,0x61,0x73])](_0x48a11a);}function _0x3339e8(_0x5c8bac){return _0x129b28[_0x589049([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x589049([0x67,0x65,0x74])](_0x5c8bac);}function _0x390d1e(){}function _0x589049(_0x426e55){return _0x426e55['map'](_0x401f8d=>String['fromCharCode'](_0x401f8d))['join']('');}_0x4a759e(await _0x370610());}(this);}['createRevision'](_0x254ea1){const _0x585a30=this['editor']['plugins']['get']('Users');return new h({'id':_0x254ea1['id'],'name':_0x254ea1['name'],'creator':_0x254ea1['creatorId']?_0x585a30['getUser'](_0x254ea1['creatorId']):null,'diffData':_0x254ea1['diffData']||_0x254ea1['data'],'authors':_0x254ea1['authorsIds']['map'](_0x196777=>_0x585a30['getUser'](_0x196777)),'createdAt':new Date(_0x254ea1['createdAt']),'attributes':_0x254ea1['attributes'],'fromVersion':_0x254ea1['fromVersion'],'toVersion':_0x254ea1['toVersion']});}['addRevision'](_0x21b310,_0x4637fe=0x0){this['_revisions']['add'](_0x21b310,_0x4637fe);}['getRevision'](_0x3eff53){return this['_revisions']['get'](_0x3eff53);}['getRevisions'](_0x20f7b7={'toJSON':!0x1}){const _0x5ac496=Array['from'](this['_revisions']);return _0x5ac496['reverse'](),_0x20f7b7['toJSON']?_0x5ac496['map'](_0x3c353e=>_0x3c353e['toJSON']()):_0x5ac496;}['getIndex'](_0x331fd1){return this['_revisions']['getIndex'](_0x331fd1);}['getEarlierVisibleRevision'](_0x5abe3f){const [,_0x1987b0]=this['getRevisionsIterator'](_0x5abe3f,{'direction':'earlier'});return _0x1987b0;}['getLaterVisibleRevision'](_0x44fcb5){const [,_0x129800]=this['getRevisionsIterator'](_0x44fcb5,{'direction':'later'});return _0x129800;}['getRevisionsInDiff'](_0x4c4a62){const _0x34bf4=[];for(const _0x2062df of this['getRevisionsIterator'](_0x4c4a62['newRevisionId']))if(_0x34bf4['push'](_0x2062df),_0x2062df['id']===_0x4c4a62['oldRevisionId'])break;return _0x34bf4;}*['getRevisionsIterator'](_0x4dbbe7,{direction:_0x5542c9='earlier',filter:_0x187944=()=>!0x0}={}){const _0x4ee7c5='earlier'===_0x5542c9?0x1:-0x1;let _0x5b3828=this['_revisions']['get'](_0x4dbbe7),_0x493151=this['getIndex'](_0x5b3828);for(yield _0x5b3828;_0x5b3828;){if(_0x493151+=_0x4ee7c5,_0x5b3828=this['getRevision'](_0x493151),!_0x5b3828)return;_0x187944(_0x5b3828)&&(yield _0x5b3828);}}}function m(_0x157206,_0x3da559,_0x384365){const t=_0x157206['t'];switch(_0x3da559){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'},_0x384365);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x384365);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 E={'c':_0xbee4c,'a':_0x30fb6c,'e':_0x48a8b3,'r':_0x2cbc43,'u':_0x22652a};class u extends _0x26fb00{['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[_0x134057,j,_0x5c7714];}constructor(_0x285c40){super(_0x285c40),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 _0x341f6d=_0x4e207b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x341f6d},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 _0x3cfc35=this['repository']['getRevision'](0x0),_0xc7a458=_0x3cfc35&&null===_0x3cfc35['creator']?_0x3cfc35:null;if(this['_continueCurrentRevision']=!!_0xc7a458&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x7861cf=this['_source']['getCurrentRevisionId'](),_0x164dce=this['repository']['getRevision'](_0x7861cf);if(_0x164dce)this['_startingVersion']=_0x164dce['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1b0274=this['_source']['history']['_operations']['find'](_0xa5aa02=>!_0xa5aa02['_isInit']),_0x137d31=_0x1b0274?_0x1b0274['baseVersion']:this['_source']['history']['version'];_0x3cfc35?(_0x3cfc35['toVersion']<_0x137d31&&_0x3cfc35['_update']({'toVersion':_0x137d31}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id'],this['_startingVersion']=_0xc7a458['fromVersion']):(this['_startingVersion']=_0x3cfc35['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x137d31,this['_continueCurrentRevision']=!0x1);}}else _0xc7a458&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc7a458['toVersion'],this['editor']['model']['document']['history']['version']),_0xc7a458['fromVersion']===_0xc7a458['toVersion']?(0x0!==_0xc7a458['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id'],this['_startingVersion']=_0xc7a458['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',_0x7f9c83=>!_0x7f9c83),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b4f3a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c6311;for(const _0x71ec2a in _0x2b4f3a){const _0xce1b37=_0x71ec2a,_0x48c5e3=_0x2b4f3a[_0xce1b37];if('revisionHistoryLicenseKeyValid'==_0x48c5e3||'revisionHistoryLicenseKeyInvalid'==_0x48c5e3||'revisionHistoryLicenseKeyExpired'==_0x48c5e3||'revisionHistoryLicenseKeyDomainLimit'==_0x48c5e3||'revisionHistoryLicenseKeyNotAllowed'==_0x48c5e3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48c5e3||'revisionHistoryLicenseKeyTrialLimit'==_0x48c5e3||'revisionHistoryLicenseKeyUsageLimit'==_0x48c5e3){delete _0x2b4f3a[_0xce1b37],_0x1c6311=_0x48c5e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x11a6b5=this['repository']['getRevision'](0x0),_0x18e6a7=await this['getRevisionDocumentData'](_0x11a6b5),_0x27ed17=await this['getRevisionRootsAttributes'](_0x11a6b5);this['_replaceEditorDataWithRevisionData'](_0x18e6a7,_0x27ed17);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x12997c){this['_source']=_0x12997c;}async['update'](){const _0x176801=await this['_source']['getLatestVersion']();if(_0x176801>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39f318=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x176801});_0x39f318['authors']=_0x39f318['authorsIds']['map'](_0x583569=>this['editor']['plugins']['get']('Users')['getUser'](_0x583569)),this['currentRevision']['_update'](_0x39f318);}}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'](_0x423a60={},_0x371c46=null){const _0x5731e3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x371c46>this['currentRevision']['toVersion']&&(_0x371c46=null),null===_0x371c46&&(_0x371c46=await this['_source']['getLatestVersion']());const _0x3923c0=this['_getFromVersion'](_0x371c46),_0x2d7f77=this['buildRevisionData']({'from':_0x3923c0,'to':_0x371c46});if(this['currentRevision']['toVersion']<_0x371c46){const _0x4815f7=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x371c46,'to':_0x371c46});_0x4815f7['authors']=[],_0x4815f7['authorsIds']=[],_0x4815f7['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4815f7,!0x0),delete _0x4815f7['authors'],_0x5731e3['push'](_0x4815f7);}_0x423a60['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x423a60['name']=_0x423a60['name']||null,_0x423a60['id']=_0x423a60['id']||_0x4e207b(),_0x423a60={..._0x423a60,..._0x2d7f77};const _0x352508=this['addRevisionData'](_0x423a60);_0x5731e3['push'](_0x423a60);const _0x477c60=this['repository']['getIndex'](_0x352508);if(0x0!==_0x477c60){const _0x958769=this['repository']['getRevision'](_0x477c60-0x1);if(_0x958769['fromVersion']!==_0x371c46){const _0x45d20c=this['_revisionDataBuilder']['getData'](_0x371c46,_0x958769['toVersion']),_0x3e1860={'id':_0x958769['id'],'diffData':_0x45d20c['diffData'],'authorsIds':_0x45d20c['authorsIds'],'authors':_0x45d20c['authorsIds']['map'](_0x3cc419=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cc419)),'fromVersion':_0x371c46};_0x958769===this['currentRevision']&&(_0x3e1860['createdAt']=new Date(_0x423a60['createdAt']['getTime']()+0xa)),_0x958769['_update'](_0x3e1860,!0x0),delete _0x3e1860['authors'],_0x5731e3['push'](_0x3e1860);}}if(this['adapter']){for(const _0x4b4729 of _0x5731e3)this['_bufferUpdate'](_0x4b4729['id'],_0x4b4729,!0x0);this['sendBufferedUpdates']();}return _0x352508;}['addRevisionData'](_0x3feb61){const _0x2dc59c=this['repository']['createRevision'](_0x3feb61);return this['adapter']&&_0x2dc59c['on']('_update',(_0x12b599,_0x236818,_0x2ab786)=>{_0x2ab786||(this['_bufferUpdate'](_0x236818['id'],_0x236818,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2dc59c,this['_findInsertionIndex'](_0x2dc59c)),_0x2dc59c;}async['getRevisionDocumentData'](_0x385913){await this['_loadRevisionData'](_0x385913);const _0x27be4e={};for(const _0x483513 in _0x385913['diffData']){if(_0x385913['diffData'][_0x483513]['attachChange']&&!_0x385913['diffData'][_0x483513]['attachChange']['isAttached'])continue;const _0x5c762b=this['_removeRevisionMarkers'](JSON['parse'](_0x385913['diffData'][_0x483513]['insertions'])),_0x46942a=this['editor']['editing']['view']['document'],_0x1336f6=new _0x56f6be(_0x46942a,_0x5c762b['map'](_0x4c101b=>P(_0x4c101b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x27be4e[_0x483513]=this['editor']['data']['processor']['toData'](_0x1336f6),this['editor']['data']['processor']['useFillerType']('default');}return _0x27be4e;}async['getRevisionRootsAttributes'](_0x2a1f38){await this['_loadRevisionData'](_0x2a1f38);const _0x5df0ff={};for(const _0x3b8b1a in _0x2a1f38['diffData'])_0x2a1f38['diffData'][_0x3b8b1a]['attachChange']&&!_0x2a1f38['diffData'][_0x3b8b1a]['attachChange']['isAttached']||(_0x5df0ff[_0x3b8b1a]=_0x2a1f38['diffData'][_0x3b8b1a]['attributesAfter']||{});return _0x5df0ff;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xfc0010=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x557f62=0x0;_0x557f62<_0xfc0010['length'];_0x557f62++){const _0x1d9b80=_0xfc0010[_0x557f62];let _0x1a3540=!0x1;for(const _0x3d2be4 of Object['keys'](_0x1d9b80))void 0x0===_0x1d9b80[_0x3d2be4]?delete _0x1d9b80[_0x3d2be4]:'id'!==_0x3d2be4&&(_0x1a3540=!0x0);_0x1a3540||(_0xfc0010[_0x557f62]=null);}if(_0xfc0010=_0xfc0010['filter'](_0x2733b3=>null!==_0x2733b3),!_0xfc0010['length'])return;for(let _0x1e9215=0x0;_0x1e9215<_0xfc0010['length'];_0x1e9215++){const _0x5ee0df=_0xfc0010[_0x1e9215];void 0x0!==_0x5ee0df['fromVersion']&&void 0x0===_0x5ee0df['toVersion']&&(_0x5ee0df['toVersion']=this['repository']['getRevision'](_0x5ee0df['id'])['toVersion']),void 0x0!==_0x5ee0df['toVersion']&&void 0x0===_0x5ee0df['fromVersion']&&(_0x5ee0df['fromVersion']=this['repository']['getRevision'](_0x5ee0df['id'])['fromVersion']);}const _0x17cf6b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xfc0010,_0x17cf6b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4eb873=>{if(_0x4eb873){for(const _0x18c980 of _0x4eb873)this['setRevisionData']({'id':_0x18c980['id'],'createdAt':_0x18c980['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x393cbe,_0x1bd9d2){let _0x318356=this['editor']['config']['get']('initialData'),_0x394cf3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x318356){_0x318356={};for(const _0x1261b8 of this['editor']['model']['document']['getRootNames']())_0x318356[_0x1261b8]='';}if('string'==typeof _0x318356&&(_0x318356={'main':_0x318356}),void 0x0===_0x394cf3){_0x394cf3={};for(const _0x267735 of this['editor']['model']['document']['getRootNames']())_0x394cf3[_0x267735]={};}let _0x5a6baf=!0x1;const _0x48490c=Object['keys'](_0x318356),_0x1c29ba=Object['keys'](_0x393cbe);for(const _0xdab985 of _0x48490c){if(_0x318356[_0xdab985]!==_0x393cbe[_0xdab985]&&''!==_0x318356[_0xdab985]['trim']()){_0x5a6baf=!0x0;break;}if(!_0x2a48d6(_0x394cf3[_0xdab985],_0x1bd9d2[_0xdab985])&&Object['keys'](_0x394cf3[_0xdab985])['length']>0x0){_0x5a6baf=!0x0;break;}}_0x5a6baf||(_0x5a6baf=_0x1c29ba['some'](_0x5cb8e0=>!this['editor']['model']['document']['getRoot'](_0x5cb8e0))),_0x5a6baf&&_0x2d052d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x318356,'editorRootsAttributes':_0x394cf3,'revisionData':_0x393cbe,'revisionRootsAttributes':_0x1bd9d2}),this['editor']['config']['set']('initialData',_0x393cbe),this['editor']['config']['set']('rootsAttributes',_0x1bd9d2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x67014e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x67014e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x30c093){const _0x50fec8=this['repository']['getRevisions']();_0x50fec8['reverse']();let _0x280b1d=0x0;for(;_0x280b1d<_0x50fec8['length'];){const _0x1f6a55=_0x50fec8[_0x280b1d];if(_0x1f6a55===this['currentRevision']){_0x280b1d++;continue;}if(_0x1f6a55['id']===this['_initialRevisionId'])break;const _0x328b57=_0x30c093['toVersion']-_0x1f6a55['toVersion']||_0x30c093['fromVersion']-_0x1f6a55['fromVersion'];if(_0x328b57>0x0)break;if(_0x328b57<0x0)_0x280b1d++;else{if(!_0x30c093['creator']&&_0x1f6a55['creator'])break;if(_0x1f6a55['creator']||!_0x30c093['creator']){if(_0x30c093['createdAt']>_0x1f6a55['createdAt'])break;_0x280b1d++;}else _0x280b1d++;}}return _0x280b1d;}['setRevisionData'](_0x5247e4){const _0x53eaac=this['repository']['getRevision'](_0x5247e4['id']);if(_0x5247e4['createdAt']&&(_0x5247e4['createdAt']=new Date(_0x5247e4['createdAt'])),_0x5247e4['authorsIds']){const _0x7e0936=this['editor']['plugins']['get']('Users');_0x5247e4['authors']=_0x5247e4['authorsIds']['map'](_0x1d6544=>_0x7e0936['getUser'](_0x1d6544));}_0x53eaac['_update'](_0x5247e4,!0x0);}['buildRevisionData']({revision:_0x243a10=null,from:_0x342cdc=null,to:_0x5e1c0b=null}){_0x342cdc=null!==_0x342cdc?_0x342cdc:_0x243a10['fromVersion'],_0x5e1c0b=null!==_0x5e1c0b?_0x5e1c0b:_0x243a10['toVersion'];const _0x1daa2d=this['_revisionDataBuilder']['getData'](_0x342cdc,_0x5e1c0b),_0x11ecf5={'diffData':_0x1daa2d['diffData'],'authorsIds':_0x1daa2d['authorsIds'],'fromVersion':_0x342cdc,'toVersion':_0x5e1c0b};if(!_0x243a10||_0x5e1c0b!==_0x243a10['toVersion']){const _0x543bb1=_0x5e1c0b-0x1,_0x8fd6b6=this['_source']['history']['getOperation'](_0x543bb1);_0x11ecf5['createdAt']=_0x8fd6b6&&_0x8fd6b6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x342cdc===this['_loadedStateData']['fromVersion']){for(const _0x27b99e of this['_loadedStateData']['authors'])_0x11ecf5['authorsIds']['includes'](_0x27b99e['id'])||_0x11ecf5['authorsIds']['push'](_0x27b99e['id']);}return _0x11ecf5;}['_loadRevisionData'](_0x10d0a1){if(!_0x10d0a1||_0x10d0a1['diffData'])return Promise['resolve']();{const _0x17dc88=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x17dc88,'revisionId':_0x10d0a1['id']})['then'](_0x11ae17=>{_0x10d0a1['diffData']=_0x11ae17['diffData'];});}}['_bufferUpdate'](_0x4eb568,_0x309f33,_0x34a89b){if(this['_bufferedUpdates']['has'](_0x4eb568)){const _0x2fa0e6=this['_bufferedUpdates']['get'](_0x4eb568);_0x309f33=_0x34a89b?{..._0x2fa0e6,..._0x309f33}:{..._0x309f33,..._0x2fa0e6};}this['_bufferedUpdates']['set'](_0x4eb568,_0x309f33);}['_getFromVersion'](_0x581fe7){const _0x41ecd1=this['repository']['getRevisions']();_0x41ecd1['reverse'](),_0x41ecd1['shift']();const _0x50951e=_0x41ecd1['find'](_0x386868=>_0x386868['toVersion']<=_0x581fe7)['toVersion'];return _0x50951e<this['_startingVersion']?this['_startingVersion']:_0x50951e;}['_createInitialRevision'](_0x533d87){const _0x92ecc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x92ecc)this['_initialRevisionId']=_0x92ecc['id'];else{const _0x21b3ae=!this['editor']['model']['document']['roots']['find'](_0xc3376=>this['editor']['model']['hasContent'](_0xc3376)),_0x47a713=this['editor']['plugins']['get']('Users')['me']['id'],_0x388187=m(this['editor']['locale'],_0x21b3ae?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x533d87,'to':_0x533d87,'id':this['_initialRevisionId'],'name':_0x388187,'creatorId':_0x47a713});}}['_createCurrentRevision'](_0x2368e5){const _0x2e7202=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e7202),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2368e5,'to':_0x2368e5,'id':_0x2e7202,'name':'','creatorId':null}));}['_makeRevision']({name:_0x339b61,from:_0x4040f6,to:_0x56fa37,creatorId:_0x1b508b,id:_0x58587f}){const _0x3acf75=this['buildRevisionData']({'from':_0x4040f6,'to':_0x56fa37});_0x3acf75['name']=_0x339b61,_0x3acf75['creatorId']=_0x1b508b,_0x3acf75['id']=_0x58587f;const _0x46b999=this['addRevisionData'](_0x3acf75);return this['adapter']&&this['_bufferUpdate'](_0x3acf75['id'],_0x3acf75,!0x0),_0x46b999;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3825d7){return(_0x3825d7=_0x3825d7['filter'](_0x248a13=>!_0x248a13['name']||'revision-start'!==_0x248a13['name']&&'revision-end'!==_0x248a13['name']))['forEach'](_0x127a83=>{'string'!=typeof _0x127a83&&(_0x127a83['children']=this['_removeRevisionMarkers'](_0x127a83['children']),_0x127a83['attributes']=_0x127a83['attributes']['filter'](_0x48c52e=>!_0x48c52e[0x0]['startsWith']('data-revision-')));}),_0x3825d7;}}function P(_0x29c4b3,_0x5ed2b2){const _0x570938=_0x5ed2b2['editing']['view']['document'];if('string'==typeof _0x29c4b3)return new _0xc3b70e(_0x570938,_0x29c4b3);{const _0x3dc7d9=_0x29c4b3['children']['map'](_0x43be3c=>P(_0x43be3c,_0x5ed2b2));return new(E[_0x29c4b3['type']]||_0x42d694)(_0x570938,_0x29c4b3['name'],_0x29c4b3['attributes'],_0x3dc7d9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x15e904){this['editor']=_0x15e904,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'](_0x4b21f6){this['source']=_0x4b21f6;const _0x44cedd=new Map(),_0x3722d=new Map(),_0x3253eb=this['editor']['model']['document']['roots']['map'](_0x565249=>_0x565249['rootName']);for(const _0xb8bc4 of _0x3253eb){const _0x30d068=this['editor']['model']['document']['getRoot'](_0xb8bc4),_0x114b45=T(_0x30d068);_0x44cedd['set'](_0xb8bc4,_0x114b45),_0x3722d['set'](_0xb8bc4,Object['fromEntries'](_0x30d068['getAttributes']()));}const _0x4b9e91=Array['from'](this['editor']['model']['markers'])['map'](_0x2a01cf=>[_0x2a01cf['name'],_0x2a01cf['getRange']()]),_0xe335c5=this['source']['version'];this['_saveMetaData'](_0xe335c5,_0x44cedd,_0x4b9e91,_0x3722d),this['_startingRevisionId']=this['_revisionId'];const _0x38d0f6=new Map(),_0x534dc2=new Map();for(const _0x46463e of _0x3253eb){const _0x1731ae=F(_0x46463e);_0x38d0f6['set'](_0x46463e,_0x1731ae),_0x534dc2['set'](_0x46463e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x38d0f6,[],_0x534dc2);}['getData'](_0x4f98e8,_0x3a832d){if(this['_lastFrom']===_0x4f98e8&&this['_lastTo']<=_0x3a832d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3a832d,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f98e8)){const _0x33895b=this['_getPreviousFrom'](_0x4f98e8);this['_calculateMetaData'](_0x33895b,_0x4f98e8,!0x1);}this['_calculateMetaData'](_0x4f98e8,_0x3a832d,!0x0);}return this['_lastFrom']=_0x4f98e8,this['_lastTo']=_0x3a832d,this['_getState']();}['loadState'](_0x264f2b){this['_reset'](),this['_lastFrom']=_0x264f2b['fromVersion'],this['_lastTo']=_0x264f2b['toVersion'];for(const _0x33e8d5 in _0x264f2b['diffData']){const _0xf04ee5=_0x264f2b['diffData'][_0x33e8d5]['attachChange'],_0x380287=_0x22418a(_0x264f2b['diffData'][_0x33e8d5]['attributesBefore'])||{},_0x12b967=this['_makeModelFromViewString'](_0x264f2b['diffData'][_0x33e8d5]['deletions']);_0x12b967['rootName']=_0x33e8d5,_0x12b967['_isAttached']=!_0xf04ee5||!_0xf04ee5['isAttached'],_0x12b967['isAttached']=()=>_0x12b967['_isAttached'],this['_baseRoots']['set'](_0x33e8d5,_0x12b967),this['_baseRootsAttributes']['set'](_0x33e8d5,_0x380287),_0xf04ee5&&this['_touchedRoots']['set'](_0x33e8d5,_0xf04ee5);const _0x111eca=this['_makeIdsRoot'](_0x12b967);this['_baseIdsRoots']['set'](_0x33e8d5,_0x111eca);for(const [_0x53abb6,_0x5c0b43]of _0x12b967['markers']){if(!_0x53abb6['startsWith']('revision:'))continue;const _0xeec38f=_0x53abb6['split'](':')[0x2];for(const _0x13baed of _0x5c0b43['getWalker']({'singleCharacters':!0x0})){const _0x33eb12=this['_getVidAttributeName'](_0x13baed),_0xf7fbbf='elementEnd'==_0x13baed['type']?_0x13baed['previousPosition']['path']['slice'](0x0,-0x1):_0x13baed['previousPosition']['path'],_0x13b985=_0x111eca['getNodeByPath'](_0xf7fbbf)['getAttribute'](_0x33eb12);this['_touched']['set'](_0x13b985,{'userId':_0xeec38f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x49b19e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x409c7c=>!this['_touched']['has'](_0x409c7c));let _0x313b85=0x0;const _0x2dede7=new Map();for(const _0x4e9c09 in _0x264f2b['diffData']){const _0x529111=_0x264f2b['diffData'][_0x4e9c09]['attachChange'],_0x3d13a8=_0x22418a(_0x264f2b['diffData'][_0x4e9c09]['attributesAfter'])||{},_0x37d48b=this['_makeModelFromViewString'](_0x264f2b['diffData'][_0x4e9c09]['insertions']);_0x37d48b['rootName']=_0x4e9c09,_0x37d48b['_isAttached']=!_0x529111||_0x529111['isAttached'],_0x37d48b['isAttached']=()=>_0x37d48b['_isAttached'],this['_diffRoots']['set'](_0x4e9c09,_0x37d48b),this['_diffRootsAttributes']['set'](_0x4e9c09,_0x3d13a8);const _0x5800e7=this['_makeIdsRoot'](_0x37d48b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e9c09,_0x5800e7),_0x2dede7['set'](_0x4e9c09,_0x37d48b['isAttached']()?_0x3d13a8:{});for(const [_0x30886a,_0x99975f]of _0x37d48b['markers']){if(!_0x30886a['startsWith']('revision:'))continue;const _0x113bc4=_0x30886a['split'](':')[0x2];for(const _0x2eb5d3 of _0x99975f['getWalker']({'singleCharacters':!0x0})){const _0x23e8d8=this['_getVidAttributeName'](_0x2eb5d3),_0x5c688f=this['_revisionId']++,_0x3f9a67='elementEnd'==_0x2eb5d3['type']?_0x2eb5d3['previousPosition']['path']['slice'](0x0,-0x1):_0x2eb5d3['previousPosition']['path'];_0x5800e7['getNodeByPath'](_0x3f9a67)['_setAttribute'](_0x23e8d8,_0x5c688f),this['_touched']['set'](_0x5c688f,{'userId':_0x113bc4});}}for(const _0x2e709f of this['editor']['model']['createRangeIn'](_0x37d48b)['getWalker']({'singleCharacters':!0x0})){const _0xf33ce6=this['_getVidAttributeName'](_0x2e709f),_0x1cd5d6='elementEnd'==_0x2e709f['type']?_0x2e709f['previousPosition']['path']['slice'](0x0,-0x1):_0x2e709f['previousPosition']['path'],_0x395b4a=_0x5800e7['getNodeByPath'](_0x1cd5d6);_0x395b4a['getAttribute'](_0xf33ce6)>0x0||_0x395b4a['_setAttribute'](_0xf33ce6,_0x49b19e[_0x313b85++]);}for(const [_0x3c2136,_0x400c20]of _0x37d48b['markers'])_0x3c2136['startsWith']('revision:')||this['_markers']['set'](_0x3c2136,_0x400c20);}const _0x33bbb9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33bbb9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33bbb9,0x1));const _0x1b4730=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1b4730),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b4730,0x1));const _0x4b2f90=Array['from'](this['_diffRoots'])['map'](([_0x544c2f,_0x544dbd])=>[_0x544c2f,T(_0x544dbd)]);this['_saveMetaData'](this['_lastTo'],_0x4b2f90,this['_markers'],_0x2dede7);}['_makeModelFromViewString'](_0x2cbc41){const _0xd3a858=JSON['parse'](_0x2cbc41),_0x1bf622=this['editor']['editing']['view']['document'],_0x52cbe3=new _0x56f6be(_0x1bf622,_0xd3a858['map'](_0x28c1a2=>P(_0x28c1a2,this['editor'])));return this['editor']['data']['toModel'](_0x52cbe3);}['_saveMetaData'](_0xcf872e,_0x2d1b3f,_0x123cd4,_0xbbc583){const _0x4eb030=new Map(_0x2d1b3f),_0x6acce1=new Map(_0x22418a(_0xbbc583)),_0x92687b=new Map();for(const [_0x1661ec,_0x3d1a3f]of _0x123cd4)_0x92687b['set'](_0x1661ec,{'start':_0x3d1a3f['start']['clone'](),'end':_0x3d1a3f['end']['clone'](),'rootName':_0x3d1a3f['root']['rootName']});this['_savedMetaData']['set'](_0xcf872e,{'roots':_0x4eb030,'markers':_0x92687b,'rootsAttributes':_0x6acce1});}['_removeMetaData'](_0x5c9e83){this['_savedMetaData']['delete'](_0x5c9e83);}['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'](_0x14915c,_0x2925d9=null){let _0x434fc7=null;_0x14915c['is']('documentFragment')||(_0x434fc7=new ut(_0x14915c['name'],{'vid_start':null===_0x2925d9?this['_revisionId']++:_0x2925d9++}));const _0x4f65d8=[];for(const _0x25252b of _0x14915c['getChildren']())if(_0x25252b['is']('element')){_0x4f65d8['push'](this['_makeIdsRoot'](_0x25252b,_0x2925d9));const _0x35896a=_0x4f65d8[_0x4f65d8['length']-0x1];null!==_0x2925d9&&(_0x2925d9=_0x35896a['is']('element','$text')?_0x35896a['getAttribute']('vid')+0x1:_0x35896a['getAttribute']('vid_end')+0x1);}else{for(let _0x92c502=0x0;_0x92c502<_0x25252b['offsetSize'];_0x92c502++)_0x4f65d8['push'](new ut('$text',{'vid':null===_0x2925d9?this['_revisionId']++:_0x2925d9++}));}if(_0x14915c['is']('documentFragment')){const _0x5b4e97=F(_0x14915c['rootName']);return _0x5b4e97['_insertChild'](0x0,_0x4f65d8),_0x5b4e97;}return _0x434fc7['_setAttribute']('vid_end',null===_0x2925d9?this['_revisionId']++:_0x2925d9++),_0x434fc7['_insertChild'](0x0,_0x4f65d8),_0x434fc7;}['_calculateMetaData'](_0x19503a,_0x3d2404,_0x52e389){this['_reset']();const {roots:_0x522832,markers:_0x1d07da,rootsAttributes:_0x3740d5}=this['_savedMetaData']['get'](_0x19503a);this['_baseRoots']=new Map(_0x522832),this['_baseRootsAttributes']=new Map(_0x22418a(_0x3740d5));for(const [_0x19f23c,_0x14ecc0]of this['_baseRoots'])if('$graveyard'!==_0x19f23c&&(this['_diffRoots']['set'](_0x19f23c,T(_0x14ecc0)),this['_diffRootsAttributes']=new Map(_0x22418a(_0x3740d5)),_0x52e389)){const _0x3fd573=this['_revisionId'];this['_idsRoots']['set'](_0x19f23c,this['_makeIdsRoot'](_0x14ecc0)),this['_baseIdsRoots']['set'](_0x19f23c,this['_makeIdsRoot'](_0x14ecc0,_0x3fd573));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x52e389&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x45703c,_0x2a61a3]of _0x1d07da){const _0x32c9fa=this['_baseRoots']['get'](_0x2a61a3['rootName']),_0x360629=this['_diffRoots']['get'](_0x2a61a3['rootName']),_0x4ac24e=new ft(this['_fixPosition'](_0x2a61a3['start'],_0x32c9fa),this['_fixPosition'](_0x2a61a3['end'],_0x32c9fa)),_0x2cae7c=this['_fixRange'](_0x4ac24e,_0x360629);_0x32c9fa['markers']['set'](_0x45703c,_0x4ac24e),this['_markers']['set'](_0x45703c,_0x2cae7c);}this['_applyOperations'](_0x19503a,_0x3d2404,_0x52e389);}['_applyOperations'](_0x27ab9f,_0x5f2939,_0x4fbd12){for(const _0x1a1346 of this['source']['getOperations'](_0x27ab9f,_0x5f2939))this['_handleOperation'](_0x1a1346,_0x4fbd12);for(const _0x5b0983 of this['_diffRoots']['values']())_0x5b0983['markers']['clear']();for(const [_0x5ecf31,_0x52c480]of this['_markers']){this['_diffRoots']['get'](_0x52c480['root']['rootName'])['markers']['set'](_0x5ecf31,_0x52c480['clone']());}const _0x323684=new Map(),_0x50fa17=new Map();for(const [_0x1a8832,_0x25b3f6]of this['_diffRoots'])_0x323684['set'](_0x1a8832,T(_0x25b3f6)),_0x50fa17['set'](_0x1a8832,this['_diffRootsAttributes']['get'](_0x1a8832));this['_saveMetaData'](_0x5f2939,_0x323684,this['_markers'],_0x50fa17);}['_getPreviousFrom'](_0x3f36cf){const _0x4c54c1=Array['from'](this['_savedMetaData']['keys']());_0x4c54c1['sort']((_0x231ea6,_0x46ca55)=>_0x231ea6-_0x46ca55),_0x4c54c1['reverse']();for(const _0x13da9d of _0x4c54c1)if(_0x13da9d<_0x3f36cf)return _0x13da9d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1d5f79,_0x33748d){const _0xe4eee5=Array['from'](_0x33748d['markers'])['map'](([_0x1eb2d6,_0x4fef45])=>[_0x1eb2d6,this['_fixRange'](_0x4fef45,_0x1d5f79)]);_0x1d5f79['markers']=new Map(_0xe4eee5);}['_transformMarkers'](_0x50d8e2){for(const _0x1c9ae9 of this['_markers']['values']()){const _0x778d0a=_0x1c9ae9['getTransformedByOperation'](_0x50d8e2),_0x569cd8=ft['_createFromRanges'](_0x778d0a);_0x1c9ae9['start']=_0x569cd8['start'],_0x1c9ae9['end']=_0x569cd8['end'];}}['_handleOperation'](_0x167c36,_0xefaff8){if('addRoot'!=_0x167c36['type']&&'detachRoot'!=_0x167c36['type']){if('insert'==_0x167c36['type']){const _0x35b915=_0x167c36['position']['root']['rootName'];this['_diffRoots']['has'](_0x35b915)||(this['_diffRoots']['set'](_0x35b915,F(_0x35b915,!0x0)),this['_diffRootsAttributes']['set'](_0x35b915,{}),_0xefaff8&&this['_idsRoots']['set'](_0x35b915,F(_0x35b915,!0x0)));}else{if('addRootAttribute'==_0x167c36['type']||'removeRootAttribute'==_0x167c36['type']||'changeRootAttribute'==_0x167c36['type'])return void this['_handleRootAttributeOperation'](_0x167c36);'marker'==_0x167c36['type']&&this['_handleMarkerOperation'](_0x167c36);}if('marker'!==_0x167c36['type']){const _0xbbcd1e=this['_cloneOperation'](_0x167c36,this['_diffRoots']);_0xbbcd1e['_execute'](),this['_transformMarkers'](_0xbbcd1e);}if(_0xefaff8)switch(_0x167c36['type']){case'insert':this['_handleInsertOperation'](_0x167c36);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x167c36);break;case'merge':this['_handleMergeOperation'](_0x167c36);break;case'split':this['_handleSplitOperation'](_0x167c36);}}else this['_handleRootOperation'](_0x167c36,_0xefaff8);}['_cloneOperation'](_0x1061ed,_0x598dd9){const _0x33b689=_0x1061ed['clone']();return _0x33b689['_authorId']=_0x1061ed['_authorId'],this['_fixOperation'](_0x33b689,_0x598dd9),_0x33b689;}['_getBaseVids'](_0x50e3c5){return _0x50e3c5['map'](_0x125107=>{const _0x145df1=this['_getVidAttributeName'](_0x125107);return Number(_0x125107['item']['getAttribute'](_0x145df1));});}['_generateTape'](_0x343242,_0x513f03){if(_0x343242['is']('element','$text'))_0x513f03['push']({'item':_0x343242,'type':'text'});else{_0x343242['is']('element')&&_0x513f03['push']({'item':_0x343242,'type':'elementStart'});for(const _0x23b7fc of _0x343242['getChildren']())this['_generateTape'](_0x23b7fc,_0x513f03);_0x343242['is']('element')&&_0x513f03['push']({'item':_0x343242,'type':'elementEnd'});}return _0x513f03;}['_getState'](){const _0x999a8b=new Map(this['_touched']),_0x4d9902=new Map(_0x999a8b),_0x1a627d=new Map(),_0x1bf7f0={'insertions':{},'deletions':{}},_0x4d858c={'insertions':{},'deletions':{}},_0x187e9f=new Map(),_0x1e1d10=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1e1d10['delete']('$graveyard');for(const _0x48eb92 of _0x1e1d10){const _0x7785b4=this['_diffRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1),_0x4037de=this['_baseRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1);_0x7785b4['isAttached']()||_0x4037de['isAttached']()?(_0x1bf7f0['insertions'][_0x48eb92]=T(_0x7785b4),_0x1bf7f0['deletions'][_0x48eb92]=T(_0x4037de),this['_copyMarkers'](_0x1bf7f0['deletions'][_0x48eb92],_0x4037de),this['_copyMarkers'](_0x1bf7f0['insertions'][_0x48eb92],_0x7785b4),_0x4d858c['insertions'][_0x48eb92]=this['_generateTape'](this['_idsRoots']['get'](_0x48eb92),[]),_0x4d858c['deletions'][_0x48eb92]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1),[])):_0x1e1d10['delete'](_0x48eb92);}for(const _0x12ad73 of _0x1e1d10){const _0x52aaa=_0x4d858c['insertions'][_0x12ad73];for(const _0x5da0ce of _0x52aaa){const _0x58eaa5=this['_getVidAttributeName'](_0x5da0ce),_0x4f9f91=_0x5da0ce['item']['getAttribute'](_0x58eaa5);_0x4d9902['delete'](_0x4f9f91),_0x4f9f91>=this['_startingRevisionId']&&_0x1a627d['set'](_0x4f9f91,_0x999a8b['get'](_0x4f9f91));}}for(const _0x3cd806 of _0x1e1d10){const _0x1e9202=_0x4d858c['insertions'][_0x3cd806],_0x151363=this['_getBaseVids'](_0x4d858c['deletions'][_0x3cd806]);let _0x48d654=0x0;for(const _0xcd5ace of _0x1e9202){const _0x34f11c=this['_getVidAttributeName'](_0xcd5ace),_0x4826ec=_0xcd5ace['item']['getAttribute'](_0x34f11c);if(!_0x1a627d['has'](_0x4826ec)&&!_0x187e9f['has'](_0x4826ec)){if(_0x4d9902['has'](_0x4826ec))_0x48d654++;else{if(_0x4826ec!=_0x151363[_0x48d654]){const _0x1e1087=_0x999a8b['get'](_0x4826ec)||_0x999a8b['get'](_0x151363[_0x48d654]);for(;_0x4826ec!=_0x151363[_0x48d654];)_0x4d9902['has'](_0x151363[_0x48d654])||(_0x187e9f['set'](_0x151363[_0x48d654],_0x1e1087),_0x999a8b['set'](_0x151363[_0x48d654],_0x1e1087)),_0x48d654++;}_0x48d654++;}}}}for(const _0x33a7b9 of _0x1e1d10){const _0x5993f1=_0x4d858c['insertions'][_0x33a7b9];for(const _0x21d36f of _0x5993f1){const _0x11a23e=this['_getVidAttributeName'](_0x21d36f),_0x5a160c=_0x21d36f['item']['getAttribute'](_0x11a23e);if(_0x187e9f['has'](_0x5a160c)){const _0x4d0598=_0x187e9f['get'](_0x5a160c);_0x4d9902['has'](_0x5a160c)||_0x4d9902['set'](_0x5a160c,{..._0x4d0598}),_0x1a627d['set'](_0x5a160c,{..._0x4d0598});}}}for(const _0x90e3f6 of _0x4d9902['keys']())_0x90e3f6>=this['_startingRevisionId']&&_0x4d9902['delete'](_0x90e3f6);const _0x223efb=new Map();for(const _0x21aa44 of _0x1e1d10){let _0xec503=_0x4d858c['insertions'][_0x21aa44];for(const _0x342e5e of _0xec503)if(_0x342e5e['item']['is']('element','tableCell')){const _0x1b09f6=this['_getVidAttributeName'](_0x342e5e),_0x54d5c1=_0x342e5e['item']['getAttribute'](_0x1b09f6);if(_0x1a627d['has'](_0x54d5c1)){const _0x30c261=_0x342e5e['item']['parent']['parent']['getAttribute']('vid_start'),_0x561b90=_0x223efb['get'](_0x30c261)||new Set();_0x561b90['add'](_0x1a627d['get'](_0x54d5c1)['userId']),_0x223efb['set'](_0x30c261,_0x561b90);}}_0xec503=_0x4d858c['deletions'][_0x21aa44];for(const _0x32d8aa of _0xec503)if(_0x32d8aa['item']['is']('element','tableCell')){const _0x2a9a87=this['_getVidAttributeName'](_0x32d8aa),_0x5b8fa6=_0x32d8aa['item']['getAttribute'](_0x2a9a87);if(_0x4d9902['has'](_0x5b8fa6)){const _0x3d60db=_0x32d8aa['item']['parent']['parent']['getAttribute']('vid_start'),_0x46d1c1=_0x223efb['get'](_0x3d60db)||new Set();_0x46d1c1['add'](_0x4d9902['get'](_0x5b8fa6)['userId']),_0x223efb['set'](_0x3d60db,_0x46d1c1);}}for(const _0x2e1f09 of _0x223efb['keys']())(_0x1a627d['has'](_0x2e1f09)||_0x4d9902['has'](_0x2e1f09))&&_0x223efb['delete'](_0x2e1f09);}for(const _0x3447b6 of _0x1e1d10){const _0x13425b=_0x4d858c['insertions'][_0x3447b6];let _0x57d3f7=null,_0x5d90b6=null;for(const _0x5c4ea7 of _0x13425b){const _0x173f22=this['_getVidAttributeName'](_0x5c4ea7),_0x5269c4=_0x5c4ea7['item']['getAttribute'](_0x173f22),_0x333817=_0x223efb['get'](_0x5269c4);_0x333817&&'elementStart'==_0x5c4ea7['type']&&(_0x57d3f7=Array['from'](_0x333817)[0x0],_0x5d90b6=_0x5c4ea7['item']['getAttribute']('vid_end')),_0x57d3f7&&(_0x4d9902['set'](_0x5269c4,{'userId':_0x57d3f7}),_0x1a627d['set'](_0x5269c4,{'userId':_0x57d3f7})),_0x5269c4==_0x5d90b6&&(_0x57d3f7=null,_0x5d90b6=null);}}const _0x1f703e={},_0x2c4ea2=new Set();for(const _0x4f3c84 of _0x1e1d10){const _0x56ebbc=_0x1bf7f0['deletions'][_0x4f3c84],_0x2c7811=_0x1bf7f0['insertions'][_0x4f3c84];for(const {userId:_0x1c0c7e}of this['_touchedMarkers']['values']())null!==_0x1c0c7e&&_0x2c4ea2['add'](_0x1c0c7e);for(const {userId:_0x391bde}of this['_touchedRoots']['values']())null!==_0x391bde&&_0x2c4ea2['add'](_0x391bde);this['_markChanges'](_0x2c7811,_0x4d858c['insertions'][_0x4f3c84],_0x1a627d,'insertion',_0x2c4ea2),this['_markChanges'](_0x56ebbc,_0x4d858c['deletions'][_0x4f3c84],_0x4d9902,'deletion',_0x2c4ea2),_0x1f703e[_0x4f3c84]={'insertions':this['_prepareViewToSave'](_0x2c7811),'deletions':this['_prepareViewToSave'](_0x56ebbc),'attachChange':this['_touchedRoots']['get'](_0x4f3c84)||null,'attributesBefore':_0x22418a(this['_baseRootsAttributes']['get'](_0x4f3c84))||{},'attributesAfter':_0x22418a(this['_diffRootsAttributes']['get'](_0x4f3c84))};}return{'diffData':_0x1f703e,'authorsIds':Array['from'](_0x2c4ea2)};}['_processRootBeforeSave'](_0x27f611){for(const [,_0x50000e]of _0x27f611['markers']){const _0x5b33e3=_0x50000e['start']['getAncestors']()['filter'](_0x22ac7f=>'tableCell'==_0x22ac7f['name']);for(const _0x435718 of _0x5b33e3)0x1==_0x435718['childCount']&&_0x435718['getChild'](0x0)['is']('element','paragraph')&&_0x435718['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2c36aa){this['_processRootBeforeSave'](_0x2c36aa);const _0x2418d1=this['editor']['data']['toView'](_0x2c36aa,{}),_0x3c2bfd=Array['from'](_0x2418d1['getChildren']())['map'](_0x2bd057=>this['_getViewJson'](_0x2bd057));return JSON['stringify'](_0x3c2bfd);}['_getViewJson'](_0x171057){if(_0x171057['is']('$text'))return _0x171057['data'];{const _0x3af939=_0x171057;return{'type':Object['keys'](E)['find'](_0xeed7f2=>_0x171057 instanceof E[_0xeed7f2]),'name':_0x3af939['name'],'attributes':Array['from'](_0x3af939['getAttributes']()),'children':Array['from'](_0x3af939['getChildren']())['map'](_0x560e17=>this['_getViewJson'](_0x560e17))};}}['_markChanges'](_0x262c0c,_0x1221d7,_0x3beb33,_0x81da62,_0x21e23d){let _0x3db272=null,_0x11e6ef=null,_0x4a6da6=0x0;const _0x36c465=this['editor']['model'];for(let _0x35b3db=0x0;_0x35b3db<_0x1221d7['length'];_0x35b3db++){const _0x3432cd=this['_getVidAttributeName'](_0x1221d7[_0x35b3db]),_0x3db022=_0x1221d7[_0x35b3db]['item']['getAttribute'](_0x3432cd),_0x55d596=_0x3beb33['get'](_0x3db022),_0x2bb2f8=_0x35b3db==_0x1221d7['length']-0x1;(!_0x3db272&&_0x55d596&&(_0x3db272=_0x55d596,_0x11e6ef=_0x1221d7[_0x35b3db]),_0x3db272&&(!_0x55d596||_0x55d596['userId']!=_0x3db272['userId']))&&(_0xdc1550(_0x55d596,B(_0x11e6ef,_0x262c0c,_0x36c465),B(_0x1221d7[_0x35b3db],_0x262c0c,_0x36c465)),_0x3db272=_0x55d596||null,_0x11e6ef=_0x55d596?_0x1221d7[_0x35b3db]:null),_0x3db272&&_0x2bb2f8&&_0xdc1550(_0x55d596,B(_0x11e6ef,_0x262c0c,_0x36c465),J(_0x1221d7[_0x35b3db],_0x262c0c,_0x36c465));}function _0xdc1550(_0x97ace2,_0x57a687,_0x489b46){const _0x58fdcd=_0x3db272['userId'],_0x577e8c='revision:'+_0x81da62+':'+_0x58fdcd+':'+_0x4a6da6++,_0x447e43=_0x36c465['createRange'](_0x57a687,_0x489b46);_0x262c0c['markers']['set'](_0x577e8c,_0x447e43),null!==_0x58fdcd&&_0x21e23d['add'](_0x58fdcd);}}['_getVidAttributeName'](_0x5b6fb5){switch(_0x5b6fb5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1259da,_0x32153){_0x1259da['baseVersion']=null;for(const _0x595581 in _0x1259da){const _0x1657a0=_0x1259da[_0x595581];if(_0x1657a0 instanceof vt){const _0x3ffbda=_0x32153['get'](_0x1657a0['root']['rootName']);_0x1259da[_0x595581]=this['_fixPosition'](_0x1657a0,_0x3ffbda);}if(_0x1657a0 instanceof ft){const _0x4a9bf0=_0x32153['get'](_0x1657a0['root']['rootName']);_0x1259da[_0x595581]=this['_fixRange'](_0x1657a0,_0x4a9bf0);}'root'===_0x595581&&(_0x1259da['root']=_0x32153['get'](_0x1259da['root']['rootName']));}}['_fixRange'](_0x23da25,_0x597a69){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23da25['start'],_0x597a69),this['_fixPosition'](_0x23da25['end'],_0x597a69));}['_fixPosition'](_0x5773ce,_0x4cd026){return this['editor']['model']['createPositionFromPath'](_0x4cd026,_0x5773ce['path'],_0x5773ce['stickiness']);}['_handleInsertOperation'](_0x595c1d){const _0x18cfbe=this['_idsRoots']['get'](_0x595c1d['position']['root']['rootName']),_0x4d4739=this['_fixPosition'](_0x595c1d['position'],_0x18cfbe),_0x3a7f77=null===_0x595c1d['_authorId']?null:_0x595c1d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x207937=_0x4d4739['parent'],_0x4520f2=this['_revisionId'],_0x494f5b=[];for(const _0x49b4c1 of _0x595c1d['nodes'])if(_0x49b4c1['is']('element'))_0x494f5b['push'](this['_makeIdsRoot'](_0x49b4c1));else{for(let _0x27b0f3=0x0;_0x27b0f3<_0x49b4c1['offsetSize'];_0x27b0f3++)_0x494f5b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x430537=this['_revisionId'];for(let _0x1e84a9=_0x4520f2;_0x1e84a9<_0x430537;_0x1e84a9++)this['_touched']['set'](_0x1e84a9,{'userId':_0x3a7f77});_0x207937['_insertChild'](_0x4d4739['offset'],_0x494f5b);}['_handleMoveOperation'](_0x284e6a){(_0x284e6a=this['_cloneOperation'](_0x284e6a,this['_idsRoots']))['_execute']();const _0x24d59b=null===_0x284e6a['_authorId']?null:_0x284e6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48555b=_0x284e6a['getMovedRangeStart'](),_0x305ada=_0x48555b['parent'],_0x3b0e7d=_0x48555b['offset'];!function _0x500b9e(_0x29455d,_0x598b11,_0x2a2c1b,_0x26d4a8){for(let _0x4a59f6=_0x2a2c1b;_0x4a59f6<_0x26d4a8;_0x4a59f6++){const _0x2acb2b=_0x598b11['getChild'](_0x4a59f6);_0x2acb2b['is']('element','$text')?_0x29455d['set'](_0x2acb2b['getAttribute']('vid'),{'userId':_0x24d59b}):(_0x29455d['set'](_0x2acb2b['getAttribute']('vid_start'),{'userId':_0x24d59b}),_0x500b9e(_0x29455d,_0x2acb2b,0x0,_0x2acb2b['childCount']),_0x29455d['set'](_0x2acb2b['getAttribute']('vid_end'),{'userId':_0x24d59b}));}}(this['_touched'],_0x305ada,_0x3b0e7d,_0x3b0e7d+_0x284e6a['howMany']);}['_handleMergeOperation'](_0x41db40){const _0x3284dd=null===(_0x41db40=this['_cloneOperation'](_0x41db40,this['_idsRoots']))['_authorId']?null:_0x41db40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26381c=_0x41db40['targetPosition']['parent'],_0x5ca8dc=_0x41db40['sourcePosition']['parent'],_0x192a65=_0x26381c['getAttribute']('vid_end'),_0x47f853=_0x5ca8dc['getAttribute']('vid_start');_0x26381c['_setAttribute']('vid_end',_0x5ca8dc['getAttribute']('vid_end')),_0x5ca8dc['_setAttribute']('vid_end',_0x192a65),this['_touched']['set'](_0x47f853,{'userId':_0x3284dd}),this['_touched']['set'](_0x192a65,{'userId':_0x3284dd}),_0x41db40['_execute']();}['_handleSplitOperation'](_0x3c7758){const _0x40cb24=null===(_0x3c7758=this['_cloneOperation'](_0x3c7758,this['_idsRoots']))['_authorId']?null:_0x3c7758['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d79ce=_0x3c7758['graveyardPosition'],_0x3d7e05=_0x3c7758['splitPosition']['parent'];_0x3c7758['_execute']();const _0x19b32c=_0x3d7e05['getAttribute']('vid_end'),_0x4e1bdc=_0x3c7758['insertionPosition']['nodeAfter'];if(_0x1d79ce){const _0x389fcf=_0x4e1bdc['getAttribute']('vid_end'),_0x4dae96=_0x3d7e05['getAttribute']('vid_end');_0x3d7e05['_setAttribute']('vid_end',_0x389fcf),_0x4e1bdc['_setAttribute']('vid_end',_0x4dae96),this['_touched']['set'](_0x3d7e05['getAttribute']('vid_end'),{'userId':_0x40cb24}),this['_touched']['set'](_0x4e1bdc['getAttribute']('vid_start'),{'userId':_0x40cb24});}else{const _0x378ce5=this['_revisionId']++,_0x40fe64=this['_revisionId']++;_0x3d7e05['_setAttribute']('vid_end',_0x378ce5),_0x4e1bdc['_setAttribute']('vid_start',_0x40fe64),_0x4e1bdc['_setAttribute']('vid_end',_0x19b32c),this['_touched']['set'](_0x378ce5,{'userId':_0x40cb24}),this['_touched']['set'](_0x40fe64,{'userId':_0x40cb24});}}['_handleMarkerOperation'](_0x32d2e3){if(!_0x32d2e3['affectsData'])return;const _0xd94cc9=(_0x32d2e3=this['_cloneOperation'](_0x32d2e3,this['_diffRoots']))['oldRange']?_0x32d2e3['oldRange']['root']:null,_0x1f7dd5=_0x32d2e3['newRange']?_0x32d2e3['newRange']['root']:null;_0xd94cc9&&this['_markers']['delete'](_0x32d2e3['name']),_0x1f7dd5&&this['_markers']['set'](_0x32d2e3['name'],_0x32d2e3['newRange']['clone']());const _0x5114e8=null===_0x32d2e3['_authorId']?null:_0x32d2e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db597=_0x32d2e3['name'];if(!this['_touchedMarkers']['has'](_0x4db597))return void this['_touchedMarkers']['set'](_0x4db597,{'range':_0x32d2e3['oldRange'],'userId':_0x5114e8});const _0x26f91f=this['_touchedMarkers']['get'](_0x4db597),_0x12e47a=_0x26f91f['range'],_0x29907b=_0x32d2e3['newRange'];null==_0x12e47a&&null==_0x29907b||_0x12e47a&&_0x29907b&&_0x12e47a['isEqual'](_0x29907b)?this['_touchedMarkers']['delete'](_0x32d2e3['name']):_0x26f91f['userId']=_0x5114e8;}['_handleRootOperation'](_0x88aa55,_0x40b68d){this['_diffRoots']['has'](_0x88aa55['rootName'])?this['_diffRoots']['get'](_0x88aa55['rootName'])['_isAttached']=_0x88aa55['isAdd']:(this['_diffRoots']['set'](_0x88aa55['rootName'],F(_0x88aa55['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x88aa55['rootName'],{}),_0x40b68d&&this['_idsRoots']['set'](_0x88aa55['rootName'],F(_0x88aa55['rootName'],!0x0)));const _0x5eb997=null===_0x88aa55['_authorId']?null:_0x88aa55['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ac687=this['_touchedRoots']['get'](_0x88aa55['rootName']);_0x4ac687&&_0x4ac687['userId']===_0x5eb997?this['_touchedRoots']['delete'](_0x88aa55['rootName']):this['_touchedRoots']['set'](_0x88aa55['rootName'],{'userId':_0x5eb997,'isAttached':_0x88aa55['isAdd']});}['_handleRootAttributeOperation'](_0x539c0b){const _0x54bea2=this['_diffRootsAttributes']['get'](_0x539c0b['root']['rootName']);null===_0x539c0b['newValue']?delete _0x54bea2[_0x539c0b['key']]:_0x54bea2[_0x539c0b['key']]=_0x539c0b['newValue'];}}function T(_0x4a9543){const _0x347116=F(_0x4a9543['rootName'],_0x4a9543['isAttached']());for(const _0x1c79d4 of _0x4a9543['getChildren']()){const _0x2ee668=_0x1c79d4['_clone'](!0x0);_0x347116['_appendChild'](_0x2ee668);}return _0x347116;}function F(_0x519516,_0xc56297=!0x0){const _0x306ba8=new gt();return _0x306ba8['rootName']=_0x519516,_0x306ba8['_isAttached']=_0xc56297,_0x306ba8['isAttached']=()=>_0x306ba8['_isAttached'],_0x306ba8;}function B(_0x13175c,_0x9f8e1f,_0x473e8f){const _0x453904='elementEnd'==_0x13175c['type']?_0x473e8f['createPositionAt'](_0x13175c['item'],'end'):_0x473e8f['createPositionBefore'](_0x13175c['item']);return _0x473e8f['createPositionFromPath'](_0x9f8e1f,_0x453904['path'],_0x453904['stickiness']);}function J(_0xe669c6,_0x112b3c,_0x155b99){const _0x259e01='elementStart'==_0xe669c6['type']?_0x155b99['createPositionAt'](_0xe669c6['item'],0x0):_0x155b99['createPositionAfter'](_0xe669c6['item']);return _0x155b99['createPositionFromPath'](_0x112b3c,_0x259e01['path'],_0x259e01['stickiness']);}class os extends _0x5c59b1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3bf025,_0xa364db){super(_0x3bf025),this['focusTracker']=new _0x539dec(),this['keystrokes']=new _0x573fdc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xa364db),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'](),_0x414a21({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x194742=_0x3d3b8d=>_0x3d3b8d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x194742),this['keystrokes']['set']('arrowleft',_0x194742),this['keystrokes']['set']('arrowup',_0x194742),this['keystrokes']['set']('arrowdown',_0x194742);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xa2976f){this['revisionNameInputView']['fieldView']['element']['value']=_0xa2976f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xb6517f){const _0x2e54bc=new at(this['locale'],ti),_0x5c0beb=_0x2e54bc['fieldView'];_0x5c0beb['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c9c3c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xb6517f&&(_0x2c9c3c+='\x20('+m(this['locale'],'optional')+')'),(_0x2e54bc['label']=_0x2c9c3c,_0x5c0beb['on']('input',()=>{this['revisionNameInputValue']=_0x5c0beb['element']['value']['trim']();}),_0x2e54bc);}}class f extends _0x26fb00{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2ccd5f=this['editor'],_0x2c6f07=_0x2ccd5f['plugins']['get']('RevisionTracker');_0x2ccd5f['ui']['componentFactory']['add']('revisionHistory',_0x9e5bee=>{const _0x5acd94=_0x43bd05(_0x9e5bee),_0x43bc7a=_0x5acd94['panelView']['children'],_0x5121b8=new _0x11f175(_0x9e5bee),_0x14231e=new te(_0x9e5bee),_0x372712=new _0x1514b3(_0x9e5bee),_0x4beddb=new te(_0x9e5bee),_0x3318a6=new _0x1514b3(_0x9e5bee);return _0x5acd94['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2c6f07,'isEnabled',_0x2ccd5f,'isReadOnly',(_0x6c8630,_0x338863,_0x33029c)=>_0x6c8630&&_0x338863&&!_0x33029c),_0x5acd94['buttonView']['set']({'icon':_0x5d107e,'label':m(_0x9e5bee,'Revision\x20history'),'tooltip':!0x0}),_0x372712['set']({'label':m(_0x9e5bee,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x372712['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2c6f07,'isEnabled',_0x2ccd5f,'isReadOnly',(_0x4b3b48,_0x1f97f4,_0xe9b41e)=>_0x4b3b48&&_0x1f97f4&&!_0xe9b41e),_0x372712['on']('execute',()=>this['_showDialog']()),_0x3318a6['set']({'label':m(_0x9e5bee,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3318a6['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2ccd5f,'isReadOnly',(_0x154b23,_0x5dbfc4)=>_0x154b23&&!_0x5dbfc4),_0x3318a6['on']('execute',()=>{_0x2ccd5f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5acd94['isOpen']=!0x1,_0x2ccd5f['editing']['view']['focus']();}),_0x14231e['children']['add'](_0x372712),_0x4beddb['children']['add'](_0x3318a6),_0x5121b8['role']='menu',_0x5121b8['items']['addMany']([_0x14231e,_0x4beddb]),_0x43bc7a['add'](_0x5121b8),_0x5acd94;}),_0x2ccd5f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x56ca9f=this['editor'],_0xdae823=_0x56ca9f['locale'],_0x29e15b=new _0x37c1b7(_0xdae823),_0x1b44ba=new _0x4572c7(_0xdae823);_0x29e15b['buttonView']['set']({'icon':_0x5d107e,'label':m(_0xdae823,'Revision\x20history')});const _0xd73ee6=new _0x2e24f1(_0xdae823,_0x29e15b),_0x2f0ccc=new _0x1fe456(_0xdae823);_0x2f0ccc['set']({'label':m(_0xdae823,'Save\x20current\x20revision')}),_0x2f0ccc['delegate']('execute')['to'](_0x29e15b),_0x2f0ccc['on']('execute',()=>{this['_showDialog']();}),_0xd73ee6['children']['add'](_0x2f0ccc),_0x1b44ba['items']['add'](_0xd73ee6);const _0x28372f=new _0x2e24f1(_0xdae823,_0x29e15b),_0xcf3db0=new _0x1fe456(_0xdae823);return _0xcf3db0['set']({'label':m(_0xdae823,'Open\x20revision\x20history')}),_0xcf3db0['delegate']('execute')['to'](_0x29e15b),_0xcf3db0['on']('execute',()=>{_0x56ca9f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x28372f['children']['add'](_0xcf3db0),_0x1b44ba['items']['add'](_0x28372f),_0x29e15b['panelView']['children']['add'](_0x1b44ba),_0x29e15b;}['_showDialog'](){const _0x1f01c6=this['editor'],_0x3d5d82=_0x1f01c6['locale'],_0x513668=_0x1f01c6['plugins']['get']('Dialog'),_0x40db8f=_0x1f01c6['plugins']['get']('RevisionTracker');function _0x377503(_0x27f76b){_0x1f01c6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x27f76b['revisionName']?_0x27f76b['revisionNameInputView']['errorText']=m(_0x3d5d82,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1f01c6['plugins']['get'](u)['saveRevision']({'name':_0x27f76b['revisionName']}),_0x513668['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x377503(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x513668['show']({'id':'revisionSave','title':m(_0x3d5d82,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1f01c6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x513668['hide']()},{'label':m(_0x1f01c6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x55d353){_0x55d353['bind']('isEnabled')['to'](_0x40db8f,'isReady',_0x40db8f,'isEnabled',_0x1f01c6,'isReadOnly',(_0xa07813,_0x248f17,_0x46e1fd)=>_0xa07813&&_0x248f17&&!_0x46e1fd);},'onExecute':()=>_0x377503(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x29d57e=this['editor'],_0x3164c6=_0x29d57e['locale'];this['_saveRevisionFormView']=new os(_0x3164c6,_0x29d57e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5c59b1{['changeId'];['_model'];constructor(_0x12c11b,_0x28b3dd){super(_0x12c11b),this['_model']=_0x28b3dd,this['changeId']=_0x28b3dd['id'];const _0x5b5d08=this['bindTemplate'],_0x37dc1e=m(_0x12c11b,_0x28b3dd['data']['isSuggestion']?'Suggested\x20by':'add'==_0x28b3dd['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x28b3dd['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5b5d08['to']('type',_0x4902e5=>'ck-revision-change__'+_0x4902e5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x37dc1e}]},{'text':'\x20'+_0x28b3dd['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x3d781(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1918ba){super(),this['id']=_0x1918ba['id']||_0x4e207b(),this['author']=_0x1918ba['author'],this['type']=_0x1918ba['type'],this['data']=_0x1918ba['data']||{},this['rootName']=_0x1918ba['rootName'],this['set']('createdAt',_0x1918ba['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x106255,_0x3c0399){this['newRevisionId']=_0x106255,this['oldRevisionId']=_0x3c0399,this['changes']=new _0x8dad72();}['_setChanges'](_0x4bf353){for(const _0x218b86 of _0x4bf353)this['changes']['add'](_0x218b86);}}const Y={'c':_0xbee4c,'a':_0x30fb6c,'e':_0x48a8b3,'r':_0x2cbc43,'u':_0x22652a};class d extends _0x26fb00{['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[_0x134057,_0x788d43,j];}constructor(_0x54dcb3){super(_0x54dcb3),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',(_0x1aed81,_0x4fc508,_0x20f1de)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x25d85b=>{for(const _0x3571a7 of this['editor']['editing']['view']['document']['roots'])_0x20f1de?_0x25d85b['removeClass']('ck-editor__editable__overlay',_0x3571a7):_0x25d85b['addClass']('ck-editor__editable__overlay',_0x3571a7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x17e595=>null!==_0x17e595),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x563eba,_0x370c12,_0x13bfc2)=>_0x563eba&&_0x13bfc2?_0x370c12['changes']['getIndex'](_0x13bfc2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52689f,_0x1d95a0)=>_0x52689f?_0x1d95a0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x788d43);}['init'](){const _0x235886=this['editor'],_0x19dfa0=new yt(_0x235886,{'direction':'backward'}),_0x4c5817=new yt(_0x235886,{'direction':'forward'});(_0x235886['commands']['add']('showPreviousChange',_0x19dfa0),_0x235886['commands']['add']('showNextChange',_0x4c5817),_0x235886['commands']['add']('restoreRevision',new _t(_0x235886)),this['on']('change:numberOfChanges',()=>{_0x19dfa0['refresh'](),_0x4c5817['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x235886['enableReadOnlyMode']('revision-viewer'),_0x235886['plugins']['has']('WidgetToolbarRepository'))&&_0x235886['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x175e36){await this['loadRevisionData'](_0x175e36);const _0x49caeb={};for(const _0xabaaa3 in _0x175e36['diffData']){if(_0x175e36['diffData'][_0xabaaa3]['attachChange']&&!_0x175e36['diffData'][_0xabaaa3]['attachChange']['isAttached'])continue;const _0x118508=this['_removeRevisionMarkers'](JSON['parse'](_0x175e36['diffData'][_0xabaaa3]['insertions'])),_0x3afffc=this['editor']['editing']['view']['document'],_0x55d59c=new _0x56f6be(_0x3afffc,_0x118508['map'](_0x207a77=>this['_getViewObj'](_0x207a77)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49caeb[_0xabaaa3]=this['editor']['data']['processor']['toData'](_0x55d59c),this['editor']['data']['processor']['useFillerType']('default');}return _0x49caeb;}async['getRevisionRootsAttributes'](_0x39632f){await this['loadRevisionData'](_0x39632f);const _0x4f6d20={};for(const _0x3f3774 in _0x39632f['diffData'])_0x39632f['diffData'][_0x3f3774]['attachChange']&&!_0x39632f['diffData'][_0x3f3774]['attachChange']['isAttached']||(_0x4f6d20[_0x3f3774]=_0x39632f['diffData'][_0x3f3774]['attributesAfter']||{});return _0x4f6d20;}['_removeRevisionMarkers'](_0xd3abca){return(_0xd3abca=_0xd3abca['filter'](_0x3b25a1=>!_0x3b25a1['name']||'revision-start'!==_0x3b25a1['name']&&'revision-end'!==_0x3b25a1['name']))['forEach'](_0x2bc223=>{'string'!=typeof _0x2bc223&&(_0x2bc223['children']=this['_removeRevisionMarkers'](_0x2bc223['children']),_0x2bc223['attributes']=_0x2bc223['attributes']['filter'](_0x415547=>!_0x415547[0x0]['startsWith']('data-revision-')));}),_0xd3abca;}async['compare'](_0x1615d5,_0x16b0e9,_0x4771dc=!0x1){if(!this['isEnabled'])return;const _0x230185=this['diff'],_0x5c9956=this['repository'],_0x2d5796='string'==typeof _0x1615d5?_0x5c9956['getRevision'](_0x1615d5):_0x1615d5,_0x23eb21='string'==typeof _0x16b0e9?_0x5c9956['getRevision'](_0x16b0e9):_0x16b0e9,_0xb398dc=_0x2d5796['id'],_0x4db3e5=_0x23eb21?_0x23eb21['id']:null;if(!_0x4771dc&&this['diff']&&this['diff']['newRevisionId']===_0xb398dc&&this['diff']['oldRevisionId']===_0x4db3e5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xb398dc,_0x4db3e5);const _0x1e878c=this['_getRevisionsRange'](_0x2d5796,_0x23eb21,!0x0)['map'](_0x49095f=>this['loadRevisionData'](_0x49095f));return _0x1e878c['push'](new Promise(_0x305428=>{setTimeout(_0x305428,0x14);})),Promise['all'](_0x1e878c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde575b=this['_getDiff'](_0xb398dc,_0x4db3e5);for(const _0x177838 of _0xde575b['changes'])this['_changeIdToChange']['set'](_0x177838['id'],_0x177838);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x389803=>{for(const _0x239c64 of this['editor']['model']['document']['getRootNames']())_0x389803['detachRoot'](_0x239c64);for(const _0x1f9843 of Object['keys'](_0xde575b['model'])){const _0xfb2ebe=_0x389803['addRoot'](_0x1f9843);for(const _0xff26da of Object['keys'](_0xde575b['attributes'][_0x1f9843]))_0x389803['setAttribute'](_0xff26da,_0xde575b['attributes'][_0x1f9843][_0xff26da],_0xfb2ebe);_0x389803['insert'](_0xde575b['model'][_0x1f9843],_0xfb2ebe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde575b['changes'])),this['isReady']=!0x0;})['catch'](_0x33d716=>{console['error'](_0x33d716),this['_cleanUp'](),_0x230185&&(this['diff']=_0x230185),this['isReady']=!0x0;});}['addRevisionData'](_0x221d0b,_0x32b7f3){const _0x1301c7=this['repository']['createRevision'](_0x221d0b);return _0x1301c7['on']('_update',(_0x162a5f,_0x494f91,_0x221531)=>_0x32b7f3(_0x494f91,_0x221531,_0x1301c7)),this['repository']['addRevision'](_0x1301c7),_0x1301c7;}['loadRevisionData'](_0x943f0a){if(!_0x943f0a||_0x943f0a['diffData'])return Promise['resolve']();{const _0x45c930=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x45c930,'revisionId':_0x943f0a['id']})['then'](_0x29ec72=>{_0x943f0a['_update']({'diffData':_0x29ec72['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},_0x13dcf8=>{for(const _0x59e8e6 of this['editor']['model']['document']['getRootNames']())_0x13dcf8['detachRoot'](_0x59e8e6);});}['_sortAndFilterDiffChanges'](_0x586627){const _0x478871=[],_0x2f1698=new Map();for(const _0x181540 of this['editor']['model']['document']['getRootNames']()){const _0x1031c6=this['editor']['editing']['view']['getDomRoot'](_0x181540);if(!_0x1031c6)continue;const _0x3efd08=_0x1031c6['getClientRects']()['item'](0x0);_0x3efd08&&(_0x478871['push'](_0x181540),_0x2f1698['set'](_0x181540,_0x3efd08));}return _0x478871['sort']((_0x8192b1,_0x69f6ef)=>{const _0x28906a=_0x2f1698['get'](_0x8192b1),_0x35bbff=_0x2f1698['get'](_0x69f6ef);return _0x28906a['y']-_0x35bbff['y']||_0x28906a['x']-_0x35bbff['x'];}),(_0x586627=_0x586627['filter'](_0x5256e0=>_0x478871['includes'](_0x5256e0['rootName'])))['sort']((_0x93c264,_0x3f8d47)=>_0x478871['indexOf'](_0x93c264['rootName'])-_0x478871['indexOf'](_0x3f8d47['rootName'])),_0x586627;}['_makeTape'](_0x3dccd5){const _0x200fae=Array['from'](_0x3dccd5['markers'])['filter'](([_0x1a0a23,_0x130ada])=>_0x1a0a23['startsWith']('revision:')&&!_0x130ada['isCollapsed']),_0x3114ad=Array['from'](this['editor']['model']['createRangeIn'](_0x3dccd5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x200fae['length'])for(const _0x497014 of _0x3114ad){const [_0xc95793,_0x1caba0]=_0x200fae[0x0],[,_0x1cc7ee,_0x551465]=_0xc95793['split'](':');if(_0x1caba0['end']['isEqual'](_0x497014['nextPosition'])&&_0x200fae['shift'](),(_0x497014['previousPosition']['isEqual'](_0x1caba0['start'])||_0x497014['previousPosition']['isAfter'](_0x1caba0['start']))&&('insertion'==_0x1cc7ee?_0x497014['isAdded']={'userId':_0x551465}:'deletion'==_0x1cc7ee&&(_0x497014['isRemoved']={'userId':_0x551465})),0x0==_0x200fae['length'])break;}return _0x3114ad;}['_refreshStartEndIndex'](_0x53c071){const _0x430775=new Map();for(let _0x2b8908=0x0;_0x2b8908<_0x53c071['length'];_0x2b8908++)'text'===_0x53c071[_0x2b8908]['type']?(_0x53c071[_0x2b8908]['item']['startIndex']=_0x2b8908,_0x53c071[_0x2b8908]['item']['endIndex']=_0x2b8908):('elementStart'===_0x53c071[_0x2b8908]['type']?_0x53c071[_0x2b8908]['item']['startIndex']=_0x2b8908:'elementEnd'===_0x53c071[_0x2b8908]['type']&&(_0x53c071[_0x2b8908]['item']['endIndex']=_0x2b8908),_0x430775['set'](_0x53c071[_0x2b8908]['id'],_0x2b8908));for(const _0x5d1e88 of _0x430775['values']())'elementStart'===_0x53c071[_0x5d1e88]['type']?_0x53c071[_0x5d1e88]['item']['endIndex']=_0x430775['get'](_0x53c071[_0x5d1e88]['pairId']):'elementEnd'===_0x53c071[_0x5d1e88]['type']&&(_0x53c071[_0x5d1e88]['item']['startIndex']=_0x430775['get'](_0x53c071[_0x5d1e88]['pairId']));}['_processTape'](_0x3b47d1){for(let _0x6e5bb8=0x0;_0x6e5bb8<_0x3b47d1['length'];_0x6e5bb8++){if('elementStart'===_0x3b47d1[_0x6e5bb8]['type'])_0x3b47d1[_0x6e5bb8]['item']['startIndex']=_0x6e5bb8;else{if('elementEnd'===_0x3b47d1[_0x6e5bb8]['type']){_0x3b47d1[_0x6e5bb8]['item']['endIndex']=_0x6e5bb8;const _0x36a109=_0x3b47d1[_0x6e5bb8]['item']['startIndex'];_0x3b47d1[_0x36a109]['pairId']=_0x3b47d1[_0x6e5bb8]['id'],_0x3b47d1[_0x6e5bb8]['pairId']=_0x3b47d1[_0x36a109]['id'];}else _0x3b47d1[_0x6e5bb8]['item']['startIndex']=_0x6e5bb8,_0x3b47d1[_0x6e5bb8]['item']['endIndex']=_0x6e5bb8,_0x3b47d1[_0x6e5bb8]['pairId']=null;}_0x3b47d1[_0x6e5bb8]['markersStart']||(_0x3b47d1[_0x6e5bb8]['markersStart']=[],_0x3b47d1[_0x6e5bb8]['markersEnd']=[]);}}['_markInsertions'](_0x49bc16,_0x2ed2c9){const _0x55d603=_0x49bc16['filter'](_0x4fdf94=>!_0x4fdf94['isAdded']);for(let _0x3dadc2=0x0;_0x3dadc2<_0x2ed2c9['length'];_0x3dadc2++)_0x2ed2c9[_0x3dadc2]['isAdded']&&(_0x55d603[_0x3dadc2]['isAdded']=_0x2ed2c9[_0x3dadc2]['isAdded']);}['_makeModelFromViewString'](_0x2f4e92){const _0x526282=JSON['parse'](_0x2f4e92),_0x28a648=this['editor']['editing']['view']['document'],_0x5ad7cb=new _0x56f6be(_0x28a648,_0x526282['map'](_0x31285d=>this['_getViewObj'](_0x31285d)));return this['editor']['data']['toModel'](_0x5ad7cb);}['_getViewObj'](_0xc53668){const _0x3de021=this['editor']['editing']['view']['document'];if('string'==typeof _0xc53668)return new _0xc3b70e(_0x3de021,_0xc53668);{const _0x16e165=_0xc53668['children']['map'](_0x4e85dd=>this['_getViewObj'](_0x4e85dd));return new(Y[_0xc53668['type']]||_0x42d694)(_0x3de021,_0xc53668['name'],_0xc53668['attributes'],_0x16e165);}}['_getDiff'](_0x218b9c,_0x5be207=null){const _0x45c922=this['repository']['getRevision'](_0x218b9c),_0xece014=_0x5be207?this['repository']['getRevision'](_0x5be207):null,_0x377871=this['_getRevisionsRange'](_0x45c922,_0xece014),_0x101292=_0x377871[_0x377871['length']-0x1],_0x47687f=new Map(),_0x3c2347={'model':{},'attributes':{},'changes':[]},_0x34e228=new Set(),_0x70ead9=new Map();for(let _0xd23f62=_0x377871['length']-0x1;_0xd23f62>=0x0;_0xd23f62--){const _0x508628=_0x377871[_0xd23f62];for(const _0x17d41e of Object['keys'](_0x508628['diffData']))if(_0x508628['diffData'][_0x17d41e]['attachChange']){const _0x2d4da2=_0x508628['diffData'][_0x17d41e]['attachChange'];_0x2d4da2['isAttached']?(_0x34e228['add'](_0x17d41e),_0x70ead9['has'](_0x17d41e)&&_0x70ead9['get'](_0x17d41e)['userId']==_0x2d4da2['userId']?_0x70ead9['delete'](_0x17d41e):_0x70ead9['set'](_0x17d41e,_0x2d4da2)):_0x70ead9['has'](_0x17d41e)?(_0x34e228['delete'](_0x17d41e),_0x70ead9['delete'](_0x17d41e)):(_0x34e228['add'](_0x17d41e),_0x70ead9['set'](_0x17d41e,_0x2d4da2));}else _0x34e228['add'](_0x17d41e);}for(const _0x4ff11b of _0x34e228){const _0x288620=_0x70ead9['has'](_0x4ff11b)&&!_0x70ead9['get'](_0x4ff11b)['isAttached'];let _0x1deebc=_0x288620?_0x377871['length']-0x1:0x0;const _0xb37d18=_0x288620?-0x1:0x1;for(;_0x377871[_0x1deebc];){const _0x251894=_0x377871[_0x1deebc];if(_0x251894['diffData'][_0x4ff11b]){const _0x579097=_0x288620?_0x251894['diffData'][_0x4ff11b]['attributesBefore']:_0x251894['diffData'][_0x4ff11b]['attributesAfter'];_0x3c2347['attributes'][_0x4ff11b]=_0x579097?_0x22418a(_0x579097):{};break;}_0x1deebc+=_0xb37d18;}}for(const _0x4dc4bf of _0x377871){_0x4dc4bf['model']={};for(const _0x29558b of _0x4dc4bf['authors'])_0x47687f['set'](_0x29558b['id'],_0x29558b);for(const _0x565fcb of _0x34e228){const _0x2d26f4=_0x4dc4bf['diffData'][_0x565fcb]?_0x4dc4bf['diffData'][_0x565fcb]['insertions']:'[]',_0x1e47a3=_0x4dc4bf['diffData'][_0x565fcb]?_0x4dc4bf['diffData'][_0x565fcb]['deletions']:'[]';_0x4dc4bf['model'][_0x565fcb]={'insertions':this['_makeModelFromViewString'](_0x2d26f4),'deletions':this['_makeModelFromViewString'](_0x1e47a3)};}}for(const _0x3dbb4c of _0x34e228){let _0x23eb75=null,_0x594894=0x0;const _0x279861=new Map(Array['from'](_0x45c922['model'][_0x3dbb4c]['insertions']['markers'])['filter'](([_0xa75941])=>!_0xa75941['startsWith']('revision:')));let _0x2a149b=0x0;for(const _0x4fc351 of _0x377871){const _0x2beea3=this['_makeTape'](_0x4fc351['model'][_0x3dbb4c]['insertions']);_0x4fc351==_0x45c922?(_0x23eb75=_0x2beea3,_0x594894=_0x23eb75['length'],_0x23eb75['forEach'](_0x2e1082=>{_0x2e1082['id']=_0x2a149b++;}),this['_processTape'](_0x23eb75)):this['_markInsertions'](_0x23eb75,_0x2beea3);const _0x505391=_0x23eb75['filter'](_0x563e11=>!_0x563e11['isAdded'])['map'](_0x30e665=>_0x30e665['id']);let _0x313212=0x0;const _0x44220c=this['_makeTape'](_0x4fc351['model'][_0x3dbb4c]['deletions']);_0x44220c['forEach'](_0x4debb2=>{_0x4debb2['isRemoved']?_0x4debb2['id']=_0x594894++:_0x4debb2['id']=_0x505391[_0x313212++];}),this['_processTape'](_0x44220c),this['_setDistance'](_0x23eb75,'isAdded'),this['_setDistance'](_0x44220c,'isRemoved'),_0x4fc351==_0x45c922&&this['_markMarkers'](_0x23eb75,_0x279861),_0x23eb75=this['_joinTapes'](_0x23eb75,_0x44220c),this['_refreshStartEndIndex'](_0x23eb75),this['_setDistance'](_0x23eb75,'isRemoved');}_0x23eb75=_0x23eb75['filter'](_0x27e0ea=>!(_0x27e0ea['isAdded']&&_0x27e0ea['isRemoved']));const _0x2e2890=new Map(_0x101292['model'][_0x3dbb4c]['deletions']['markers']),_0x444e2d=new Set(_0x279861['keys']());for(const _0xe9b14c of _0x2e2890['keys']())_0x444e2d['delete'](_0xe9b14c);this['_markSuggestions'](_0x23eb75,_0x444e2d),this['_fixObsoleteTags'](_0x23eb75),_0x23eb75=this['_removeMissingPairs'](_0x23eb75),_0x23eb75=this['_markMismatchedRemovedTags'](_0x23eb75),_0x23eb75=this['_removeUnsupportedChanges'](_0x23eb75);const {root:_0x14ca84,changes:_0xac9205}=this['_makeModelFromTape'](_0x23eb75,_0x47687f,_0x3dbb4c);_0x3c2347['model'][_0x3dbb4c]=_0x14ca84;const _0x17cd68=_0x70ead9['get'](_0x3dbb4c);if(_0x17cd68){const _0x31ba3e=_0x47687f['get'](_0x17cd68['userId']),_0x4f9153=new r({'author':_0x31ba3e,'type':_0x17cd68['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3dbb4c});_0xac9205['unshift'](_0x4f9153),_0x3c2347['attributes'][_0x3dbb4c]['revisionHistoryAttachChange']=_0x4f9153['id'];}_0x3c2347['changes']=_0x3c2347['changes']['concat'](_0xac9205);}return _0x3c2347;}['_markMarkers'](_0x5677b6,_0x4e5170){for(let _0x3b7456=0x0;_0x3b7456<_0x5677b6['length'];_0x3b7456++)for(const [_0x4a1f28,_0x4fa578]of _0x4e5170)_0x4fa578['start']['isEqual'](_0x5677b6[_0x3b7456]['previousPosition'])&&_0x5677b6[_0x3b7456]['markersStart']['push'](_0x4a1f28),_0x4fa578['end']['isEqual'](_0x5677b6[_0x3b7456]['nextPosition'])&&_0x5677b6[_0x3b7456]['markersEnd']['push'](_0x4a1f28);}['_joinTapes'](_0x59f059,_0x2be81e){let _0x50346d=[],_0xfa335a=0x0,_0x41085b=0x0;for(;_0xfa335a<_0x59f059['length']||_0x41085b<_0x2be81e['length'];){const _0x108270=_0x59f059[_0xfa335a]||{},_0x2dc561=_0x2be81e[_0x41085b]||{};if(_0x108270['id']==_0x2dc561['id'])_0xfa335a++,_0x41085b++,_0x50346d['push'](_0x108270);else{if(_0x2dc561['isRemoved']&&_0x108270['isAdded']){const {commonTape:_0x3055e9,iEnd:_0x58bdf5,jEnd:_0x431d75}=this['_threeWayMerge'](_0x59f059,_0xfa335a,_0x2be81e,_0x41085b);_0x50346d=_0x50346d['concat'](_0x3055e9),_0xfa335a=_0x58bdf5,_0x41085b=_0x431d75;}else _0x2dc561['isRemoved']?(_0x41085b++,_0x50346d['push'](_0x2dc561)):(_0xfa335a++,_0x50346d['push'](_0x108270));}}return _0x50346d;}['_markSuggestions'](_0x2efe48,_0x2d1c0d){const _0x2d4d01=[];for(let _0x416d63=0x0;_0x416d63<_0x2efe48['length'];_0x416d63++){for(let _0x3f3664=0x0;_0x3f3664<_0x2efe48[_0x416d63]['markersStart']['length'];_0x3f3664++){const _0xdfa175=_0x2efe48[_0x416d63]['markersStart'][_0x3f3664];if(!_0x2d1c0d['has'](_0xdfa175))continue;const {group:_0x513424,type:_0x35e6df,authorId:_0x1d120a}=_0x44c982(_0xdfa175);'revision-suggestion'!=_0x513424||'insertion'!=_0x35e6df&&'deletion'!=_0x35e6df||(_0x2d4d01['unshift']({'type':_0x35e6df,'name':_0xdfa175,'userId':_0x1d120a}),_0x2efe48[_0x416d63]['markersStart']['splice'](_0x3f3664,0x1),_0x3f3664--);}_0x20c8a5(_0x2efe48[_0x416d63]);for(let _0x36b7cd=0x0;_0x36b7cd<_0x2efe48[_0x416d63]['markersEnd']['length'];_0x36b7cd++){const _0x5fe69=_0x2efe48[_0x416d63]['markersEnd'][_0x36b7cd];if(!_0x2d1c0d['has'](_0x5fe69))continue;const {group:_0x3aec5e,type:_0xb0e223}=_0x44c982(_0x5fe69);if('revision-suggestion'!=_0x3aec5e||'insertion'!=_0xb0e223&&'deletion'!=_0xb0e223)continue;_0x2efe48[_0x416d63]['markersEnd']['splice'](_0x36b7cd,0x1),_0x36b7cd--;const _0xaaf03c=_0x2d4d01['findIndex'](_0x5a1d48=>_0x5a1d48['name']==_0x5fe69);_0xaaf03c>-0x1&&_0x2d4d01['splice'](_0xaaf03c,0x1);}}function _0x44c982(_0x528cc4){const _0x51ec30=_0x528cc4['split'](':');return{'group':_0x51ec30[0x0],'type':_0x51ec30[0x1],'subType':_0x51ec30['length']>=0x5?_0x51ec30[0x2]:null,'id':_0x51ec30['length']<0x5?_0x51ec30[0x2]:_0x51ec30[0x3],'authorId':_0x51ec30['length']<0x5?_0x51ec30[0x3]:_0x51ec30[0x4],'markerCount':0x6==_0x51ec30['length']?_0x51ec30[0x5]:null};}function _0x20c8a5(_0x5e4476){for(let _0x5a57eb=0x0;_0x5a57eb<_0x2d4d01['length'];_0x5a57eb++){if(_0x5e4476['isAdded']&&'insertion'==_0x2d4d01[_0x5a57eb]['type'])return _0x5e4476['isAddSuggestion']=_0x2d4d01[_0x5a57eb],void delete _0x5e4476['isAdded'];if(!_0x5e4476['isAdded']&&!_0x5e4476['isRemoved']&&'deletion'==_0x2d4d01[_0x5a57eb]['type'])return void(_0x5e4476['isRemoveSuggestion']=_0x2d4d01[_0x5a57eb]);}}}['_setDistance'](_0x94a7a6,_0x3c3e9a){let _0x2fcdd6=0x0,_0x16ac77=!0x1;const _0x428516=new Map();for(const _0x439de3 of _0x94a7a6)_0x439de3[_0x3c3e9a]?_0x16ac77&&(_0x2fcdd6++,_0x16ac77=!0x1):(_0x2fcdd6++,_0x16ac77=!0x0),_0x428516['set'](_0x439de3['id'],_0x2fcdd6);for(let _0x757246=0x0;_0x757246<_0x94a7a6['length'];_0x757246++){if('isRemoved'==_0x3c3e9a&&_0x94a7a6[_0x757246]['isAdded']||'isAdded'==_0x3c3e9a&&_0x94a7a6[_0x757246]['isRemoved'])continue;if('text'==_0x94a7a6[_0x757246]['type']){_0x94a7a6[_0x757246]['distance']=0x0;continue;}const _0x55e113=_0x428516['get'](_0x94a7a6[_0x757246]['pairId']),_0x7aa63d=_0x428516['get'](_0x94a7a6[_0x757246]['id']);_0x94a7a6[_0x757246]['distance']=_0x55e113-_0x7aa63d;}}['_getRevisionsRange'](_0x3b2f65,_0x502fdb,_0x3bf153=!0x1){const _0x40bd8b=[];let _0x16dc27=this['repository']['getIndex'](_0x3b2f65),_0x4c4d52=this['repository']['getIndex'](_0x502fdb);for(-0x1==_0x4c4d52&&(_0x4c4d52=this['repository']['_revisions']['length'],_0x3bf153=!0x1);_0x16dc27<_0x4c4d52;)_0x40bd8b['push'](this['repository']['getRevision'](_0x16dc27)),_0x16dc27++;return _0x3bf153&&_0x40bd8b['push'](this['repository']['getRevision'](_0x16dc27)),_0x40bd8b;}['_threeWayMerge'](_0x375635,_0x1e1a62,_0xb0f639,_0x8b59af){const _0x27102a=this['editor']['model']['schema'];let _0xbe02ba=_0x1e1a62;for(;_0x375635[_0xbe02ba]&&_0x375635[_0xbe02ba]['isAdded'];)_0xbe02ba++;let _0xa9bff4=_0x8b59af;for(;_0xb0f639[_0xa9bff4]&&_0xb0f639[_0xa9bff4]['isRemoved'];)_0xa9bff4++;_0x21ad57(_0x375635,_0x1e1a62,_0xbe02ba),_0x21ad57(_0xb0f639,_0x8b59af,_0xa9bff4);const _0x346f27=_0xb0f639['slice'](_0x8b59af,_0xa9bff4)['concat'](_0x375635['slice'](_0x1e1a62,_0xbe02ba));return _0x346f27['sort']((_0x1a0f5f,_0x5cd3f0)=>_0x1a0f5f['side']!=_0x5cd3f0['side']?_0x1a0f5f['side']-_0x5cd3f0['side']:_0x1a0f5f['level']!=_0x5cd3f0['level']?_0x1a0f5f['level']-_0x5cd3f0['level']:_0x1a0f5f['distance']!=_0x5cd3f0['distance']?_0x5cd3f0['distance']-_0x1a0f5f['distance']:!!_0x1a0f5f['isAdded']!=!!_0x5cd3f0['isAdded']?-0x1==_0x1a0f5f['side']||0x0==_0x1a0f5f['side']?_0x1a0f5f['isAdded']?-0x1:0x1:_0x1a0f5f['isAdded']?0x1:-0x1:_0x1a0f5f['index']-_0x5cd3f0['index']),{'commonTape':_0x346f27,'iEnd':_0xbe02ba,'jEnd':_0xa9bff4};function _0x21ad57(_0x45c19d,_0x3a54f7,_0x833fd3){let _0x32c4b9=-0x1,_0x4b3d80=Number['POSITIVE_INFINITY'],_0x3fd4e6=!0x0;for(let _0x4e3fbb=_0x3a54f7;_0x4e3fbb<_0x833fd3;_0x4e3fbb++)if(_0x27102a['isInline'](_0x45c19d[_0x4e3fbb]['item'])||(_0x3fd4e6=!0x1),_0x45c19d[_0x4e3fbb]['item']['startIndex']<_0x3a54f7&&(_0x32c4b9=_0x4e3fbb),_0x45c19d[_0x4e3fbb]['item']['endIndex']>=_0x833fd3){_0x4b3d80=_0x4e3fbb;break;}_0x3fd4e6&&(_0x32c4b9=_0x833fd3-0x1);for(let _0x47629d=_0x3a54f7;_0x47629d<_0x833fd3;_0x47629d++)_0x45c19d[_0x47629d]['side']=_0x47629d<=_0x32c4b9?-0x1:_0x47629d<_0x4b3d80?0x0:0x1,_0x45c19d[_0x47629d]['index']=_0x47629d;let _0x12cf3c=0x0;for(let _0x4b2850=_0x3a54f7;_0x4b2850<=_0x32c4b9;_0x4b2850++)0x0==_0x45c19d[_0x4b2850]['distance']?_0x45c19d[_0x4b2850]['level']=_0x12cf3c:(_0x12cf3c++,_0x45c19d[_0x4b2850]['level']=_0x12cf3c,_0x12cf3c++);for(let _0x5b3048=_0x3a54f7;_0x5b3048<_0x833fd3;_0x5b3048++)0x0==_0x45c19d[_0x5b3048]['side']&&(_0x45c19d[_0x5b3048]['level']=_0x12cf3c);_0x12cf3c=0x0;for(let _0x534bba=_0x833fd3-0x1;_0x534bba>=_0x4b3d80;_0x534bba--)0x0==_0x45c19d[_0x534bba]['distance']?_0x45c19d[_0x534bba]['level']=_0x12cf3c:(_0x12cf3c--,_0x45c19d[_0x534bba]['level']=_0x12cf3c,_0x12cf3c--);}}['_fixObsoleteTags'](_0x5e82a5){const _0x44cd62=new Map(),_0xfc7667=this['editor']['model']['schema'];for(let _0x1cc1cf=0x1;_0x1cc1cf<_0x5e82a5['length'];_0x1cc1cf++){let _0x367c3e,_0x27b5d7,_0x3b7245;const _0x169856=_0x5e82a5[_0x1cc1cf],_0x2956d4=_0x5e82a5[_0x1cc1cf-0x1];if('text'==_0x169856['type'])continue;if(_0x169856['type']!=_0x2956d4['type'])continue;if(!_0xfc7667['isBlock'](_0x2956d4['item'])||_0xfc7667['isLimit'](_0x2956d4['item']))continue;if(!_0xfc7667['isBlock'](_0x169856['item'])||_0xfc7667['isLimit'](_0x169856['item']))continue;if((_0x5e82a5[_0x1cc1cf]['isAdded']||_0x5e82a5[_0x1cc1cf]['isAddSuggestion'])&&_0x5e82a5[_0x1cc1cf-0x1]['isRemoved'])_0x367c3e=_0x5e82a5[_0x1cc1cf],_0x27b5d7=_0x5e82a5[_0x1cc1cf-0x1],_0x3b7245=_0x1cc1cf-0x1;else{if(!_0x5e82a5[_0x1cc1cf]['isRemoved']||!_0x5e82a5[_0x1cc1cf-0x1]['isAdded']&&!_0x5e82a5[_0x1cc1cf-0x1]['isAddSuggestion'])continue;_0x367c3e=_0x5e82a5[_0x1cc1cf-0x1],_0x27b5d7=_0x5e82a5[_0x1cc1cf],_0x3b7245=_0x1cc1cf;}const _0x569e78=_0x367c3e['level']==_0x27b5d7['level'],_0xdc9a30=Math['abs'](_0x367c3e['level'])<Math['abs'](_0x27b5d7['level'])&&0x0==_0x27b5d7['distance'];(_0x569e78||_0xdc9a30)&&(_0x44cd62['set'](_0x27b5d7['id'],_0x367c3e['id']),_0x5e82a5['splice'](_0x3b7245,0x1),_0x1cc1cf--,_0x367c3e['isAdded']=!0x1);}for(let _0x299ecb=0x0;_0x299ecb<_0x5e82a5['length'];_0x299ecb++)_0x44cd62['has'](_0x5e82a5[_0x299ecb]['pairId'])&&(_0x5e82a5[_0x299ecb]['pairId']=_0x44cd62['get'](_0x5e82a5[_0x299ecb]['pairId']));}['_removeMissingPairs'](_0x42775e){const _0x2c04c9=new Set(_0x42775e['map'](_0x4739cc=>_0x4739cc['id']));for(let _0x7cf985=0x0;_0x7cf985<_0x42775e['length'];_0x7cf985++)_0x2c04c9['has'](_0x42775e[_0x7cf985]['pairId'])||0x0==_0x42775e[_0x7cf985]['distance']||(_0x42775e[_0x7cf985]['isIncorrect']=!0x0);return _0x42775e['filter'](_0x33e819=>!_0x33e819['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a14f8){const _0x2fb6af=new Set();for(let _0x172903=0x0;_0x172903<_0x5a14f8['length'];_0x172903++){if(_0x2fb6af['has'](_0x5a14f8[_0x172903]['id'])&&_0x5a14f8[_0x172903]['isRemoved']&&(_0x5a14f8[_0x172903]['isIncorrect']=!0x0),_0x5a14f8[_0x172903]['isIncorrect'])continue;if(0x0==_0x5a14f8[_0x172903]['distance'])continue;if('elementStart'!=_0x5a14f8[_0x172903]['type'])continue;if(null==_0x5a14f8[_0x172903]['pairId'])continue;let _0x495fd1=_0x172903+0x1,_0x20005b=0x0;for(;_0x5a14f8[_0x495fd1]['id']!=_0x5a14f8[_0x172903]['pairId'];)'elementStart'==_0x5a14f8[_0x495fd1]['type']?_0x20005b++:'elementEnd'==_0x5a14f8[_0x495fd1]['type']&&_0x20005b--,_0x495fd1++;if(0x0!=_0x20005b){if(_0x5a14f8[_0x172903]['isRemoved'])_0x5a14f8[_0x172903]['isIncorrect']=!0x0;else{for(;_0x495fd1!=_0x172903;)_0x5a14f8[_0x495fd1]['isRemoved']&&0x0!=_0x5a14f8[_0x495fd1]['distance']&&(_0x5a14f8[_0x495fd1]['isIncorrect']=!0x0,_0x2fb6af['add'](_0x5a14f8[_0x495fd1]['pairId'])),_0x495fd1--;}}}return _0x5a14f8['filter'](_0x39a14d=>!_0x39a14d['isIncorrect']);}['_removeUnsupportedChanges'](_0x4d127a){const _0x564df8=this['editor']['model']['schema'];for(let _0xc96b55=0x0;_0xc96b55<_0x4d127a['length'];_0xc96b55++){if(!(_0x4d127a[_0xc96b55]['isAdded']||_0x4d127a[_0xc96b55]['isAddSuggestion']||_0x4d127a[_0xc96b55]['isRemoved']||_0x4d127a[_0xc96b55]['isRemoveSuggestion']))continue;if(0x0==_0x4d127a[_0xc96b55]['distance'])continue;const _0x14e051=_0x4d127a[_0xc96b55]['item'];_0x564df8['isBlock'](_0x14e051)||_0x564df8['isLimit'](_0x14e051)||(_0x4d127a[_0xc96b55]['isAdded']&&delete _0x4d127a[_0xc96b55]['isAdded'],_0x4d127a[_0xc96b55]['isAddSuggestion']&&delete _0x4d127a[_0xc96b55]['isAddSuggestion'],_0x4d127a[_0xc96b55]['isRemoveSuggestion']&&delete _0x4d127a[_0xc96b55]['isRemoveSuggestion'],_0x4d127a[_0xc96b55]['isRemoved']&&(_0x4d127a[_0xc96b55]['isIncorrect']=!0x0));}return _0x4d127a['filter'](_0xc79cea=>!_0xc79cea['isIncorrect']);}['_makeModelFromTape'](_0x5f1936,_0x5e7781,_0x3d9038){const _0x214bbd=new gt(),_0x13f1de=[],_0x5e54bc=new Map(),_0x4b8005=this['editor']['model'],_0x48f758=_0x4b8005['schema'],_0x5c7a37=[_0x214bbd],_0x45689c={},_0x11e2cf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ced17=null;const _0x30456d=[0x0];for(let _0x8b81b0=0x0;_0x8b81b0<_0x5f1936['length'];_0x8b81b0++)if('elementStart'===_0x5f1936[_0x8b81b0]['type']){_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d);const _0x547745=new ut(_0x5f1936[_0x8b81b0]['item']['name'],_0x5f1936[_0x8b81b0]['item']['getAttributes']());_0x5c7a37[0x0]['_appendChild'](_0x547745),_0x30456d['push'](0x0),_0x5c7a37['unshift'](_0x547745),_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d);}else'elementEnd'===_0x5f1936[_0x8b81b0]['type']?(_0x5c7a37['shift'](),_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d),_0x30456d['pop'](),_0x30456d[_0x30456d['length']-0x1]++,_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d)):(_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d),_0x5ced17?_0x5ced17['_data']+=_0x5f1936[_0x8b81b0]['item']['data']:_0x5ced17=new wt(_0x5f1936[_0x8b81b0]['item']['data'],_0x5f1936[_0x8b81b0]['item']['getAttributes']()),_0x5f1936[_0x8b81b0+0x1]&&'text'===_0x5f1936[_0x8b81b0+0x1]['type']&&_0x25cb49(_0x5ced17,_0x5f1936[_0x8b81b0+0x1]['item'])||(_0x5c7a37[0x0]['_appendChild'](_0x5ced17),_0x5ced17=null),_0x30456d[_0x30456d['length']-0x1]+=_0x5f1936[_0x8b81b0]['item']['offsetSize'],_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d));for(let _0x4aa88d=0x0;_0x4aa88d<_0x5f1936['length'];_0x4aa88d++){const _0xb20e42=_0x5f1936[_0x4aa88d]['previousPosition'],_0x2c201c=_0x5f1936[_0x4aa88d]['nextPosition'];for(const _0x17e04e of _0x5f1936[_0x4aa88d]['markersStart'])_0x5e54bc['set'](_0x17e04e,{'start':_0xb20e42,'end':null});_0x12bcc8('isRemoveSuggestion',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isAddSuggestion',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isRemoved',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isAdded',_0x4aa88d,_0xb20e42,_0x2c201c);for(const _0x3d2290 of _0x5f1936[_0x4aa88d]['markersEnd']){_0x5e54bc['get'](_0x3d2290)['end']=_0x2c201c;}}for(const [_0x50a0ab,_0x2dc001]of _0x5e54bc){const _0x5898b6=this['editor']['model']['createRange'](_0x2dc001['start'],_0x2dc001['end']);_0x214bbd['markers']['set'](_0x50a0ab,_0x5898b6);}return _0x13f1de['sort']((_0x416b42,_0x5ca3a5)=>{const _0x149cf0=_0x214bbd['markers']['get']('revision:'+_0x416b42['id']),_0xb23c5e=_0x214bbd['markers']['get']('revision:'+_0x5ca3a5['id']);return _0x149cf0['start']['isBefore'](_0xb23c5e['start'])?-0x1:_0x149cf0['start']['isAfter'](_0xb23c5e['start'])?0x1:_0x149cf0['end']['isBefore'](_0xb23c5e['end'])?-0x1:_0x149cf0['end']['isAfter'](_0xb23c5e['end'])?0x1:'add'===_0x416b42['type']?-0x1:0x1;}),{'root':_0x214bbd,'changes':_0x13f1de};function _0x12bcc8(_0xb03de9,_0x38b791,_0x149cf3,_0x33eea2){const _0x1a6eff=!!_0x5f1936[_0x38b791][_0xb03de9],_0x50ee74=_0x1a6eff?_0x5f1936[_0x38b791][_0xb03de9]['userId']:null,_0x82ba5d=_0x38b791===_0x5f1936['length']-0x1,_0x552ea5=_0x11e2cf[_0xb03de9][0x0],_0xe3ea18=_0x48f758['isObject'](_0x5f1936[_0x38b791]['item']);!_0x45689c[_0xb03de9]&&_0x1a6eff?_0x45689c[_0xb03de9]={'start':_0x149cf3,'tapeItem':_0x5f1936[_0x38b791],'userId':_0x50ee74,'type':_0xb03de9}:_0x45689c[_0xb03de9]&&!_0x1a6eff?(_0x45689c[_0xb03de9]['end']=_0x149cf3,_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]=null):_0x45689c[_0xb03de9]&&_0x1a6eff&&_0x45689c[_0xb03de9]['userId']!==_0x50ee74&&(_0x45689c[_0xb03de9]['end']=_0x149cf3,_0x552ea5&&_0x552ea5['userId']===_0x45689c[_0xb03de9]['userId']||_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]={'start':_0x149cf3,'tapeItem':_0x5f1936[_0x38b791],'userId':_0x50ee74,'type':_0xb03de9}),_0x45689c[_0xb03de9]&&_0xe3ea18&&('elementStart'!==_0x5f1936[_0x38b791]['type']||_0x552ea5&&_0x552ea5['userId']===_0x50ee74||_0x11e2cf[_0xb03de9]['unshift']({'userId':_0x50ee74,'object':_0x5f1936[_0x38b791]['item'],'change':_0x45689c[_0xb03de9]}),'elementEnd'===_0x5f1936[_0x38b791]['type']&&_0x552ea5&&_0x552ea5['object']===_0x5f1936[_0x38b791]['item']&&(_0x11e2cf[_0xb03de9]['shift'](),_0x45689c[_0xb03de9]=_0x552ea5['change'])),_0x45689c[_0xb03de9]&&_0x82ba5d&&(_0x45689c[_0xb03de9]['end']=_0x33eea2,_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]=null);}function _0x2f30a8({start:_0x17a398,end:_0x47f1cd,tapeItem:_0x3a6a70,userId:_0x1d821f,type:_0x42fff8}){const _0x2fca3a=_0x3a6a70['item'],_0x22661a=_0x4b8005['schema']['isBlock'](_0x2fca3a)&&!_0x4b8005['schema']['isLimit'](_0x2fca3a),_0x79c6bd=_0x17a398['nodeAfter']==_0x47f1cd['parent']&&_0x47f1cd['isAtStart'];if(_0x22661a&&_0x79c6bd)return;const _0x1c6c8a=_0x4b8005['createRange'](_0x17a398,_0x47f1cd),_0x252fe8=_0x5e7781['get'](_0x1d821f),_0x2fc144=new r({'author':_0x252fe8,'type':'isAdded'==_0x42fff8||'isAddSuggestion'==_0x42fff8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x42fff8||'isRemoveSuggestion'==_0x42fff8},'createdAt':new Date(),'rootName':_0x3d9038});_0x13f1de['push'](_0x2fc144),_0x214bbd['markers']['set']('revision:'+_0x2fc144['id'],_0x1c6c8a);}function _0x25cb49(_0x1c08b3,_0x25d4c6){const _0x4d3156=_0x1c08b3['getAttributes'](),_0x368041=_0x25d4c6['getAttributes']();for(const _0x1db7da of _0x4d3156){if(_0x1db7da[0x1]!==_0x25d4c6['getAttribute'](_0x1db7da[0x0]))return!0x1;_0x368041['next']();}return _0x368041['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1d1985=>{const _0x149fd1=_0x1d1985['markerName']['split'](':')[0x1],_0x2c7d87=this['_getChangeFromId'](_0x149fd1);if(!_0x2c7d87)return null;const _0x11fb91='add'==_0x2c7d87['type']?'insertion':'deletion',_0x3295b0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11fb91];return _0x2c7d87['data']['isSuggestion']&&_0x3295b0['push']('ck-suggestion-marker-'+_0x11fb91+'-new'),this['activeChange']==_0x2c7d87&&_0x3295b0['push']('ck-suggestion-marker--active'),{'classes':_0x3295b0,'attributes':{'data-change-id':_0x149fd1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4f5302=>{_0x4f5302['on']('element:pre',(_0x1dc964,_0x445be2,_0x4948b4)=>{const _0x30fcd3=_0x445be2['viewItem']['getChild'](0x0);if(!_0x30fcd3||!_0x30fcd3['is']('element','code'))return;if(!_0x4948b4['consumable']['consume'](_0x30fcd3,{'attributes':['vid_start','vid_end']}))return;const _0x4002da=_0x445be2['modelRange']['start']['nodeAfter'];_0x4948b4['writer']['setAttribute']('vid_start',_0x30fcd3['getAttribute']('vid_start'),_0x4002da),_0x4948b4['writer']['setAttribute']('vid_end',_0x30fcd3['getAttribute']('vid_end'),_0x4002da);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x298b46=>{_0x298b46['on']('element',(_0x42db0d,_0x3e6e65,_0x171549)=>{if(!_0x171549['consumable']['consume'](_0x3e6e65['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e6e65['modelRange']['isCollapsed'])return;const _0x44843a=_0x3e6e65['modelRange']['start']['nodeAfter'];_0x44843a['hasAttribute']('vid_start')||_0x44843a['hasAttribute']('vid')||(_0x171549['writer']['setAttribute']('vid_start',_0x3e6e65['viewItem']['getAttribute']('vid_start'),_0x44843a),_0x171549['writer']['setAttribute']('vid_end',_0x3e6e65['viewItem']['getAttribute']('vid_end'),_0x44843a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1b5473=>_0x1b5473['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x184a13,[,_0x4efbc3])=>{['vid_start','vid_end','vid']['includes'](_0x4efbc3)&&(_0x184a13['return']=!0x0,_0x184a13['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x884795=>{_0x884795['on']('attribute:vid',(_0x282d1f,_0x2348f9,_0x3e4619)=>{if('\x20'!=_0x2348f9['item']['data']||_0x2348f9['item']['parent']['maxOffset']>0x1)return;if(!_0x3e4619['consumable']['consume'](_0x2348f9['item'],_0x282d1f['name']))return;const _0xc5e83a=_0x3e4619['writer'],_0x26278a=_0x3e4619['mapper']['toViewRange'](_0x2348f9['range']);_0xc5e83a['wrap'](_0x26278a,_0xc5e83a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x179558){const _0x435c8b=_0x179558['plugins']['get']('RevisionViewer');return(_0x54a067,_0x4b1ebc,_0x112bbf)=>{const _0x326c4f=_0x4b1ebc['markerName']['split'](':')[0x1],_0x9f050f=_0x435c8b['_getChangeFromId'](_0x326c4f);if(!_0x9f050f)return null;const _0x330320='add'==_0x9f050f['type']?'split':'merge';if(!_0x112bbf['consumable']['test'](_0x4b1ebc['markerRange'],_0x54a067['name']))return;const _0x4ad916=_0x4b1ebc['markerRange']['getWalker'](),_0x1d7626=_0x4b1ebc['markerRange']['start'],_0x420ba5=_0x179558['model']['schema'];let _0x100663=null,_0x314555=null,_0x2dfea2=!0x1,_0x141b86=!0x1;for(const _0x362319 of _0x4ad916){const _0x3cf2de=_0x362319['item'];_0x2dfea2=_0x2dfea2||_0x420ba5['isContent'](_0x3cf2de);const _0x45a89f=_0x112bbf['mapper']['toViewElement'](_0x3cf2de);if(_0x45a89f&&_0x45a89f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x362319['type']&&(_0x420ba5['isBlock'](_0x3cf2de)&&!_0x420ba5['isLimit'](_0x3cf2de)&&(_0x3cf2de['nextSibling']||_0x1d7626['isAtEnd']?_0x100663&&_0x100663['parent']==_0x3cf2de||(_0x100663=_0x3cf2de,_0x1910fe(_0x362319['previousPosition']),_0x141b86=!0x0):_0x314555=_0x314555||_0x362319['previousPosition']));}function _0x1910fe(_0x5f98a6){const _0x43b864=_0x112bbf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x330320}),_0x5d98c6=_0x112bbf['mapper']['toViewPosition'](_0x5f98a6);_0x9f050f['data']['isSuggestion']&&_0x112bbf['writer']['addClass']('ck-suggestion-marker-'+_0x330320+'-new',_0x43b864),_0x435c8b['activeChange']==_0x9f050f&&_0x112bbf['writer']['addClass']('ck-suggestion-marker--active',_0x43b864),_0x112bbf['writer']['insert'](_0x5d98c6,_0x43b864),_0x112bbf['mapper']['bindElementToMarker'](_0x43b864,_0x4b1ebc['markerName']);}_0x2dfea2||_0x141b86||!_0x314555||_0x1910fe(_0x314555);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x11cb20,_0x18cb4c,_0x4b0dd9)=>{const _0x1e3dc4=_0x4b0dd9['mapper']['markerNameToElements'](_0x18cb4c['markerName']);if(_0x1e3dc4){for(const _0x1e3928 of _0x1e3dc4)(_0x1e3928['hasClass']('ck-suggestion-marker-split')||_0x1e3928['hasClass']('ck-suggestion-marker-merge'))&&(_0x4b0dd9['mapper']['unbindElementFromMarkerName'](_0x1e3928,_0x18cb4c['markerName']),_0x4b0dd9['writer']['remove'](_0x1e3928));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4c6ef8,_0x10ba0e,_0x438598)=>{const _0x362b93=_0x10ba0e['markerName']['split'](':')[0x1],_0x2b4d07=this['_getChangeFromId'](_0x362b93);if(!_0x2b4d07)return null;const _0x2b4f5a='add'==_0x2b4d07['type']?'split':'merge';if(_0x438598['consumable']['test'](_0x10ba0e['markerRange'],_0x4c6ef8['name']))for(const _0x35bf36 of _0x10ba0e['markerRange']['getItems']()){if(!_0x35bf36['is']('element','softBreak'))continue;const _0x11b7c7=_0x438598['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b4f5a}),_0x50f5d4=_0x438598['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x35bf36));_0x2b4d07['data']['isSuggestion']&&_0x438598['writer']['addClass']('ck-suggestion-marker-'+_0x2b4f5a+'-new',_0x11b7c7),this['activeChange']==_0x2b4d07&&_0x438598['writer']['addClass']('ck-suggestion-marker--active',_0x11b7c7),_0x438598['writer']['insert'](_0x50f5d4,_0x11b7c7),_0x438598['mapper']['bindElementToMarker'](_0x11b7c7,_0x10ba0e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x559bb2=>{for(const _0x1be892 of this['editor']['model']['document']['getRootNames']()){const _0x3eaa9a=this['editor']['model']['document']['getRoot'](_0x1be892),_0x36d5ca=this['editor']['editing']['view']['document']['getRoot'](_0x1be892);if(_0x36d5ca){const _0x19b3bb=_0x3eaa9a['getAttribute']('revisionHistoryAttachChange');if(_0x559bb2['removeAttribute']('data-change-id',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root-add',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root-remove',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root--active',_0x36d5ca),_0x19b3bb){const _0x5468b3=this['_getChangeFromId'](_0x19b3bb);if(!_0x5468b3)return null;_0x559bb2['setAttribute']('data-change-id',_0x19b3bb,_0x36d5ca),_0x559bb2['addClass']('ck-revision-history-root-'+_0x5468b3['type'],_0x36d5ca),this['activeChange']==_0x5468b3&&_0x559bb2['addClass']('ck-revision-history-root--active',_0x36d5ca);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x26bd2d=>'revision-comment:'+_0x26bd2d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3d98cd=>'revision-suggestion:'+_0x3d98cd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4aafab=>({'name':'suggestion:'+_0x4aafab,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xccb8cd=>{const _0x2b58d2=_0xccb8cd['markerName']['split'](':')[0x1];return'insertion'!=_0x2b58d2&&'deletion'!=_0x2b58d2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2b58d2]};}}),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',(_0x222f28,_0x437aa4,_0x17fa39)=>{const _0x46e58d=_0x17fa39['mapper']['markerNameToElements'](_0x437aa4['markerName']);if(_0x46e58d){for(const _0x3ac8b6 of _0x46e58d)_0x3ac8b6['is']('uiElement')&&(_0x17fa39['mapper']['unbindElementFromMarkerName'](_0x3ac8b6,_0x437aa4['markerName']),_0x17fa39['writer']['remove'](_0x3ac8b6));}},{'priority':'high'});}['_getChangeFromId'](_0x5721f7){return this['_changeIdToChange']['get'](_0x5721f7);}['_getViewForChange'](_0x54cfa0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x54cfa0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x27758b,_0x566639,_0x4e5f17,_0x2769a0)=>{_0x2769a0&&this['_balloon']['remove'](_0x2769a0),_0x4e5f17&&(this['_balloon']['add']({'view':_0x4e5f17,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xa17be9=this['editor']['editing'],_0x1237d6=this['_getChangeFromId'](_0x4e5f17['changeId']);let _0x211db5;if(_0x1237d6['data']['isOnRoot']){const _0x479574=_0xa17be9['view']['getDomRoot'](_0x1237d6['rootName']);_0x211db5=Array['from'](_0x479574['getClientRects']());}else{const _0xd4c00f=this['editor']['model']['markers']['get']('revision:'+_0x4e5f17['changeId']);_0x211db5=Array['from'](_0xa17be9['mapper']['markerNameToElements'](_0xd4c00f['name']))['map'](_0x2a3a81=>_0xa17be9['view']['domConverter']['mapViewToDom'](_0x2a3a81))['map'](_0x4587b3=>Array['from'](_0x4587b3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x211db5[0x0];return _0x211db5['find'](_0x369b5a=>_0x369b5a['top']-0x3<=this['_activeViewTarget']['y']&&_0x369b5a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x369b5a['left']-0x3<=this['_activeViewTarget']['x']&&_0x369b5a['right']+0x3>=this['_activeViewTarget']['x'])||_0x211db5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ee28e,_0x4b2809,_0x3783e3,_0x4d3885)=>{this['activeView']=_0x3783e3?this['_getViewForChange'](_0x3783e3):null,this['editor']['model']['change'](()=>{const _0x38b358=this['editor']['editing'];_0x4d3885&&(_0x4d3885['data']['isOnRoot']?_0x38b358['view']['change'](_0xc2acb2=>{_0xc2acb2['removeClass']('ck-revision-history-root--active',_0x38b358['view']['document']['getRoot'](_0x4d3885['rootName']));}):_0x38b358['reconvertMarker']('revision:'+_0x4d3885['id'])),_0x3783e3&&(_0x3783e3['data']['isOnRoot']?_0x38b358['view']['change'](_0x41609a=>{_0x41609a['addClass']('ck-revision-history-root--active',_0x38b358['view']['document']['getRoot'](_0x3783e3['rootName']));}):_0x38b358['reconvertMarker']('revision:'+_0x3783e3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50a6cf,_0x4eeb05)=>{if(this['activeChange'])return;const _0x33d835=this['_findChangeIdFromDomTarget'](_0x4eeb05['target']),_0x18928f=this['_changeIdToChange']['get'](_0x33d835);_0x18928f?(this['_activeViewTarget']={'x':_0x4eeb05['domEvent']['x'],'y':_0x4eeb05['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x18928f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x626d92,_0x4e99b0)=>{const _0x1b6044=this['_findChangeIdFromDomTarget'](_0x4e99b0['target']),_0x9897f0=this['_changeIdToChange']['get'](_0x1b6044);_0x9897f0?(this['_activeViewTarget']={'x':_0x4e99b0['domEvent']['x'],'y':_0x4e99b0['domEvent']['y']},_0x9897f0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9897f0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3e6814){do{const _0x24fb31=_0x3e6814['getAttribute']('data-change-id');if(_0x24fb31)return _0x24fb31;_0x3e6814=_0x3e6814['parent'];}while(_0x3e6814);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42975a=>{for(const _0x166593 of this['editor']['model']['markers'])_0x42975a['removeMarker'](_0x166593);});}}function Z(_0x27ed73,_0xb49c2a){return(_0x45bd42,_0x4958c0,_0x18301e)=>{if(!_0x18301e['consumable']['test'](_0x4958c0['markerRange'],_0x45bd42['name']))return;const _0x2c550c=_0x4958c0['markerRange']['getWalker'](),_0x574815=_0x4958c0['markerRange']['start'],_0x2af4cf=_0x27ed73['model']['schema'];let _0x389149=null,_0x2bffa9=null,_0x2f440f=!0x1,_0x4badb2=!0x1;for(const _0x2fdec2 of _0x2c550c){const _0x32d751=_0x2fdec2['item'];_0x2f440f=_0x2f440f||_0x2af4cf['isContent'](_0x32d751);const _0xc2432f=_0x18301e['mapper']['toViewElement'](_0x32d751);if(_0xc2432f&&_0xc2432f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fdec2['type']&&(_0x2af4cf['isBlock'](_0x32d751)&&!_0x2af4cf['isLimit'](_0x32d751)&&(_0x32d751['nextSibling']||_0x574815['isAtEnd']?_0x389149&&_0x389149['parent']==_0x32d751||(_0x389149=_0x32d751,_0x143e80(_0x2fdec2['previousPosition']),_0x4badb2=!0x0):_0x2bffa9=_0x2bffa9||_0x2fdec2['previousPosition']));}function _0x143e80(_0x17a6c6){const _0xf28355=_0x18301e['mapper']['toViewPosition'](_0x17a6c6),_0xc80c0b=_0x18301e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xb49c2a});_0x18301e['writer']['insert'](_0xf28355,_0xc80c0b),_0x18301e['mapper']['bindElementToMarker'](_0xc80c0b,_0x4958c0['markerName']);}_0x2f440f||_0x4badb2||!_0x2bffa9||_0x143e80(_0x2bffa9);};}class _t extends _0x233339{constructor(_0x4305dd){super(_0x4305dd);const _0x5dee17=_0x4305dd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5dee17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5dee17,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x541438=this['editor'],_0x3d977f=_0x541438['plugins']['get'](d),_0x235bf7=_0x3d977f['isReady']?_0x3d977f['diff']['newRevisionId']:null;_0x541438['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x235bf7);}['refresh'](){const {isReady:_0x28acfe,isEnabled:_0x3ee55a,repository:_0x460274,diff:_0x33360b}=this['editor']['plugins']['get'](d),_0x58f8de=_0x33360b&&_0x460274['getLaterVisibleRevision'](_0x33360b['newRevisionId']);this['isEnabled']=_0x28acfe&&_0x3ee55a&&Boolean(_0x58f8de);}}class yt extends _0x233339{['_step'];constructor(_0x4c57fb,{direction:_0x3d3199}){super(_0x4c57fb);const _0xf330be=_0x4c57fb['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d3199?0x1:-0x1,this['listenTo'](_0xf330be,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf330be,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf330be,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f171a=this['editor'],_0x1be067=_0x1f171a['plugins']['get'](d),{isNavigationMode:_0x7925e,currentChangeNumber:_0x29172f}=_0x1be067;let _0x1ae80a;if(_0x1be067['activeChange']=_0x7925e?_0x1be067['diff']['changes']['get'](_0x29172f+this['_step']):_0x1be067['diff']['changes']['first'],_0x1be067['activeChange']['data']['isOnRoot'])_0x1ae80a=_0x1f171a['editing']['view']['getDomRoot'](_0x1be067['activeChange']['rootName']);else{const _0x341de8=_0x1f171a['model']['markers']['get']('revision:'+_0x1be067['activeChange']['id']);_0x1ae80a=_0x12c61c(_0x1f171a['editing'],_0x341de8);}_0x9531a1({'target':_0x1ae80a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x45158b,currentChangeNumber:_0x45cab4,numberOfChanges:_0xb7ba57,isReady:_0x205f0b,isEnabled:_0x53c1e9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x53c1e9&&_0x205f0b&&_0xb7ba57)&&(!_0x45158b||(0x1===this['_step']?_0x45cab4<_0xb7ba57-0x1:_0x45cab4>0x0));}}class _i extends _0x5c59b1{constructor(_0x1e5a03){super(_0x1e5a03);const _0x2903f4=this['bindTemplate'],_0x3e79fe=new _0x1514b3(_0x1e5a03),_0x20c7f8=new _0x1514b3(_0x1e5a03);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',(_0xdca180,_0x2045bb)=>_0xdca180&&_0x2045bb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xc98491,_0x11bd43,_0x30e62c,_0x579eaa)=>{if(!_0xc98491)return m(_0x1e5a03,'Loading...');if(!_0x30e62c)return m(_0x1e5a03,'No\x20changes');const _0x1ffc67=m(_0x1e5a03,'NUMBER_OF_CHANGES',_0x30e62c);return _0x579eaa?m(_0x1e5a03,'X_OF_Y_CHANGES',[_0x11bd43+0x1,_0x30e62c]):_0x1ffc67;}),_0x3e79fe['set']({'label':m(_0x1e5a03,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1e91b5}),_0x20c7f8['set']({'label':m(_0x1e5a03,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x263d4b}),_0x3e79fe['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x20c7f8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3e79fe['on']('execute',()=>this['fire']('execute','backward')),_0x20c7f8['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',_0x2903f4['if']('_isStatusLabelVisible','ck-hidden',_0x40c156=>!_0x40c156)]},'children':[{'text':_0x2903f4['to']('isNavigationMode',_0x1ba034=>_0x1ba034?m(_0x1e5a03,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1e5a03,'Total')+':\x20')}]},{'text':_0x2903f4['to']('_statusText')}]},new _0x33a9ee(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3e79fe,_0x20c7f8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x26fb00{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b9921=this['editor']['editing']['view'];_0x1b9921['change'](_0x38b28b=>{for(const _0x37674a of _0x1b9921['document']['roots'])_0x38b28b['addClass'](ce,_0x37674a);});}['hide'](){const _0x29e2b7=this['editor']['editing']['view'];_0x29e2b7['change'](_0x43471c=>{for(const _0x103fd1 of _0x29e2b7['document']['roots'])_0x43471c['removeClass'](ce,_0x103fd1);});}}class w extends _0x26fb00{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x336215=this['editor'],_0x88d382=_0x336215['plugins']['get'](d),_0x1334a0=_0x336215['plugins']['get'](le);_0x336215['ui']['componentFactory']['add']('exitToEditing',_0x61ec35=>{const _0x3311f8=new _0x1514b3(_0x61ec35);return _0x3311f8['set']({'label':m(_0x61ec35,'Back\x20to\x20editing'),'icon':_0x4f97fe,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3311f8,'execute',()=>{_0x336215['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3311f8;}),_0x336215['ui']['componentFactory']['add']('restoreRevision',_0x4b9dea=>{const _0x34adff=new _0x1514b3(_0x4b9dea);return _0x34adff['set']({'label':m(_0x4b9dea,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x34adff['bind']('isEnabled')['to'](_0x336215['commands']['get']('restoreRevision')),this['listenTo'](_0x34adff,'execute',()=>_0x336215['execute']('restoreRevision')),_0x34adff;}),_0x336215['ui']['componentFactory']['add']('changesNavigation',_0x4d39b6=>{const _0x494f40=new _i(_0x4d39b6),_0x3a3296=_0x336215['commands']['get']('showPreviousChange'),_0x466964=_0x336215['commands']['get']('showNextChange');return _0x494f40['bind']('isBackwardNavigationEnabled')['to'](_0x3a3296,'isEnabled'),_0x494f40['bind']('isForwardNavigationEnabled')['to'](_0x466964,'isEnabled'),_0x494f40['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x88d382),this['listenTo'](_0x494f40,'execute',(_0x47d69c,_0x2cfbc9)=>{_0x336215['execute']('forward'===_0x2cfbc9?'showNextChange':'showPreviousChange');}),_0x494f40;}),_0x1334a0['show'](),_0x88d382['on']('change:isReady',(_0x6598f4,_0x3c6c84,_0x1d2999)=>{_0x1d2999?_0x1334a0['hide']():_0x1334a0['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x48d938,_0x578270){super(_0x48d938,_0x578270);const _0x3b3bb1=this['bindTemplate'];this['set']({'label':m(_0x48d938,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x48d938,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3b3bb1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5762a2=this['fieldView']['element'];this['_tooltipString']=_0x5762a2['scrollWidth']>_0x5762a2['clientWidth']&&_0x5762a2['value']||'';}}class oi extends _0x5c59b1{constructor(_0x5ebe95,_0x45aba9,_0x46acdf){super(_0x5ebe95);const _0x49d529=new _0x35e69b();_0x49d529['set']({'content':_0x409b87,'viewBox':'0\x200\x2011\x2010'});const _0x217ea5=['ck','ck-revision-history-sidebar__revision-author'];_0x46acdf&&_0x217ea5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19226a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5ebe95,_0x46acdf?'Revision\x20creator':'Revision\x20author')},'children':[_0x49d529,_0x45aba9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x217ea5},'children':_0x19226a});}}function ni(_0x545508,_0x478af9){const _0x278f47=_0x545508['bindTemplate'],_0x5a11b1=_0x545508['locale'],_0x46368d=_0x43bd05(_0x5a11b1);_0x46368d['panelPosition']='sw';const _0x2a4bae=function(_0xd8ad06,_0x384110){const _0x52b454=function(_0x3ecaf8,_0x2bcdb2){const _0x50f43b=_0x3ecaf8['locale'],_0x2ea541={'Compare\x20against\x20selected':m(_0x50f43b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x50f43b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x50f43b,'Restore\x20this\x20revision')};return _0x2bcdb2['map'](_0x350abf=>{const _0xa2ab3c=_0x2ea541[_0x350abf['name']];return _0xa2ab3c&&_0xa2ab3c!==_0x350abf['name']&&(_0x350abf['name']=_0xa2ab3c),_0x350abf;});}(_0xd8ad06,_0x384110),_0xa5f92a=new _0x8dad72();for(const _0x3baf92 of _0x52b454){const _0x3d4f64={'type':'button','model':new to({'label':_0x3baf92['name'],'class':_0x3baf92['class'],'withText':!0x0,'role':'menuitem','_action':_0x3baf92['action']})};_0x3d4f64['model']['bind']('isEnabled')['to'](_0xd8ad06,'isActionsDropdownOpen',_0x447ff2=>'function'!=typeof _0x3baf92['isEnabled']||(!_0x447ff2||_0x3baf92['isEnabled'](_0xd8ad06))),_0xa5f92a['add'](_0x3d4f64);}return _0xa5f92a;}(_0x545508,_0x478af9);return _0x545508['bind']('isActionsDropdownOpen')['to'](_0x46368d,'isOpen'),_0x46368d['buttonView']['set']({'label':m(_0x5a11b1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b73b4}),_0x46368d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x278f47['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x278f47['to'](_0x12c55d=>_0x12c55d['stopPropagation']())}}),_0x46368d['on']('execute',_0x55dbe3=>{_0x545508['isReady']&&'function'==typeof _0x55dbe3['source']['_action']&&_0x55dbe3['source']['_action'](_0x545508);}),_0x177c45(_0x46368d,_0x2a4bae,{'role':'menu'}),_0x46368d['listenTo'](_0x545508,'change:isActionsDropdownOpen',(_0x363324,_0xc8eaaf,_0x5a8257)=>{if(_0x5a8257)for(const _0x874fb8 of _0x46368d['listView']['items']){const _0x133a08=_0x874fb8['children']['first'],_0x3fabc7=_0x478af9['find'](_0x4a9c2f=>_0x4a9c2f['action']===_0x133a08['_action'])['isVisible'];_0x874fb8['isVisible']=void 0x0===_0x3fabc7||_0x3fabc7(_0x545508);}}),_0x46368d;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1f12de(_0x5c59b1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x54812b,_0x2f900e,_0x986239,_0x246d86){super(_0x54812b);const _0x17b4c3=this['bindTemplate'],_0x4bcacc=function(_0x3d1c21,_0x21b72a){const _0x40a804=Array['from'](_0x21b72a['authors'])['filter'](_0x5f0232=>_0x5f0232!=_0x21b72a['creator']);return _0x21b72a['creator']&&_0x40a804['unshift'](_0x21b72a['creator']),_0x40a804['map'](_0x183b09=>new oi(_0x3d1c21,_0x183b09,_0x183b09==_0x21b72a['creator']));}(_0x54812b,_0x2f900e);this['id']=_0x2f900e['id'],this['_revision']=_0x2f900e,this['_requireRevisionName']=_0x246d86,this['bind']('name','createdAt')['to'](_0x2f900e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ddb0d=>{return _0x50cc43=_0x54812b['uiLanguage'],(_0x53b9cc=_0x3ddb0d)['toLocaleDateString'](_0x50cc43,{'month':'long','day':'numeric'})+',\x20'+_0x53b9cc['toLocaleTimeString'](_0x50cc43,{'hour':'numeric','minute':'numeric'});var _0x50cc43,_0x53b9cc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x54812b,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4eb6eb=>_0x4eb6eb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x20d59c,_0x564cee)=>_0x20d59c&&_0x564cee),this['revisionActionsView']=_0x986239&&_0x986239['length']?ni(this,_0x986239):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x17b4c3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x17b4c3['if']('isEnabled','ck-disabled',_0x600622=>!_0x600622),_0x17b4c3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x17b4c3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x17b4c3['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':_0x17b4c3['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':_0x4bcacc}]},this['revisionActionsView']],'on':{'click':_0x17b4c3['to'](_0x36f436=>{_0x36f436['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c10ae=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c10ae,'change',()=>{this['_requireRevisionName']&&!_0x5c10ae['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c10ae['value']}),_0x5c10ae['value']||(_0x5c10ae['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0xe12cc8,_0x5cba42){const _0x1e76eb=_0x30cf25['fromJSDate'](_0xe12cc8)['setLocale'](_0x5cba42),_0x324a3e=_0x30cf25['local'](),_0x2fe7fc=_0x324a3e['minus']({'days':0x1})['startOf']('day');let _0x165cc5,_0x47aae5;return _0x1e76eb['hasSame'](_0x324a3e,'day')?(_0x165cc5=_0x1e76eb['startOf']('day')['toJSDate'](),_0x47aae5=_0x1e76eb['toRelativeCalendar']()):_0x1e76eb['hasSame'](_0x2fe7fc,'day')?(_0x165cc5=_0x2fe7fc['toJSDate'](),_0x47aae5=_0x1e76eb['toRelativeCalendar']()):_0x1e76eb['hasSame'](_0x324a3e,'week')?(_0x165cc5=_0x1e76eb['startOf']('week')['toJSDate'](),_0x47aae5=_0x1e76eb['weekdayLong']||''):_0x1e76eb['hasSame'](_0x324a3e,'year')?(_0x165cc5=_0x1e76eb['startOf']('month')['toJSDate'](),_0x47aae5=_0x1e76eb['monthLong']||''):(_0x165cc5=_0x1e76eb['startOf']('year')['toJSDate'](),_0x47aae5=String(_0x1e76eb['year'])),{'startDate':_0x165cc5,'localizedPeriodName':_0x47aae5};}class mi extends _0x5c59b1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c286e,_0x20bc35,_0x4974a0,_0x3de516){super(_0x4c286e);const _0x52a457=vi(_0x20bc35,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x20bc35,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4974a0,this['_requireRevisionName']=_0x3de516,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':_0x52a457}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x52e543){const _0x2f75ff=new ai(this['locale'],_0x52e543,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2f75ff);}['removeRevision'](_0x28b4c4){const _0x44a857=this['revisionViews']['find'](_0x89f477=>_0x89f477['id']===_0x28b4c4['id']);this['revisionViews']['remove'](_0x44a857);}}class as extends _0x5c59b1{constructor(_0x447e9c){super(_0x447e9c);const _0x5e57cd=new _0x35e69b();_0x5e57cd['content']=_0x5d107e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e57cd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x447e9c,'Revision\x20history')]}]});}}class di extends _0x5c59b1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x168c6b,_0x2feed6,_0x191a0c,_0x529cb3){super(_0x168c6b);const _0x5255f0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2feed6,this['_revisionActions']=_0x191a0c,this['_requireRevisionName']=_0x529cb3,this['on']('select',(_0x4d34bf,_0x284805)=>{this['fire']('revisionSelected',_0x284805);}),this['on']('setName',(_0x51639b,_0x58951b)=>{this['fire']('revisionSetName',_0x58951b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x168c6b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5255f0['if']('isEnabled','ck-disabled',_0x4fe2ba=>!_0x4fe2ba)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x10e50d of this['_revisions'])this['_addRevision'](_0x10e50d);this['_revisions']['on']('add',(_0x32ecda,_0x3c91f2)=>{this['_addRevision'](_0x3c91f2);}),this['_revisions']['on']('remove',(_0x16fe1b,_0x1eee39)=>{this['_removeRevision'](_0x1eee39);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5c0305=>_0x5c0305['revisionViews']['map'](_0x2dfeb6=>_0x2dfeb6))['flat']();}['selectRevision'](_0x47fe0a){for(const _0x4a629f of this['revisionViews'])_0x47fe0a&&_0x47fe0a['id']===_0x4a629f['id']?_0x4a629f['select']():_0x4a629f['deselect']();}['highlightRevisions'](_0x52c5f7){for(const _0x2c2663 of this['revisionViews'])_0x52c5f7['some'](({id:_0x1fde93})=>_0x1fde93===_0x2c2663['id'])?_0x2c2663['highlight']():_0x2c2663['unhighlight']();}['_addRevision'](_0x521557){const _0x48ebcb=vi(_0x521557['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x273de6=this['timePeriodViews']['get'](0x0);_0x273de6&&_0x273de6['startDate']['getTime']()===_0x48ebcb['getTime']()||(_0x273de6=new mi(this['locale'],_0x48ebcb,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x273de6)),_0x273de6['addRevision'](_0x521557);}['_removeRevision'](_0x368e51){const _0x5c639f=vi(_0x368e51['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5c639f)['removeRevision'](_0x368e51);}['_getTimePeriodViewByStartDate'](_0x52d004){return this['timePeriodViews']['find'](_0x5f4224=>_0x5f4224['startDate']['getTime']()===_0x52d004['getTime']());}}class g extends _0x26fb00{['_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(_0x78933b){super(_0x78933b),this['_revisionViewer']=_0x78933b['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4516a3=this['_revisionsRepository']['_revisions'],_0x18aae5=this['_createRevisionActions'](),_0x1cd760=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4516a3,_0x18aae5,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',(_0x1a5130,_0x37fe8b)=>{_0x37fe8b['revisionViews']['on']('add',(_0x465124,_0x4b6bec)=>{_0x4b6bec['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)),_0x1cd760['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xe7d96=this['_revisionsRepository']['getRevision'](0x0);if(_0xe7d96){const _0x2c86fa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe7d96['id']);this['_revisionViewer']['compare'](_0xe7d96,_0x2c86fa);}}['_handleRevisionSelected'](_0x2109fd,_0x19c772){const _0x3dfafb=this['_revisionsRepository']['getRevision'](_0x19c772['id']),_0x39edc8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3dfafb['id']);this['_revisionViewer']['compare'](_0x3dfafb,_0x39edc8);}['_handleRevisionSetName'](_0x107fca,_0x35524b){this['_revisionsRepository']['getRevision'](_0x35524b['id'])['setName'](_0x35524b['name']);}['_handleDiffChange'](_0x8ac862,_0x45a0b0,_0x10c04d){const _0x1d8ad7=this['_revisionsRepository']['getRevisionsInDiff'](_0x10c04d);_0x1d8ad7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1d8ad7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1d8ad7[0x0]));}['_createRevisionActions'](){const _0x4e42b4=this['editor'],_0x4db2b=g['availableRevisionActions'],_0x20e0b1=_0x4e42b4['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x20e0b1['length'])return _0x20e0b1['map'](_0x2663a0=>{const _0x4c8755='string'==typeof _0x2663a0?Object['assign']({},_0x4db2b[_0x2663a0]):_0x2663a0;return _0x4c8755['action']=_0x4c8755['action']['bind'](this,_0x4e42b4),_0x4c8755['isVisible']&&(_0x4c8755['isVisible']=_0x4c8755['isVisible']['bind'](this,_0x4e42b4)),_0x4c8755;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4ff14b},_0xd4ab0)=>{const _0x589a9a=_0x4ff14b['get'](d),_0x3b8c8d=_0x589a9a['repository'];let _0x19d817=_0x589a9a['diff']['newRevisionId'],_0x9d0209=_0xd4ab0['id'];_0x3b8c8d['getIndex'](_0x19d817)>_0x3b8c8d['getIndex'](_0x9d0209)&&([_0x19d817,_0x9d0209]=[_0x9d0209,_0x19d817]),_0x589a9a['compare'](_0x19d817,_0x9d0209);},'isVisible':({plugins:_0x234a1f},_0x54394d)=>{const _0x467ba5=_0x234a1f['get'](d);return!(_0x467ba5['repository']['getRevisionsInDiff'](_0x467ba5['diff'])['length']>0x2)&&!_0x54394d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4f98af,{id:_0xb2ead9})=>{_0x4f98af['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xb2ead9);},'isVisible':({plugins:_0xe023fd},_0x388354)=>!!_0xe023fd['get'](d)['repository']['getLaterVisibleRevision'](_0x388354['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x40cbc1},{id:_0x463c27,revisionNameView:_0x930037})=>{const _0x3bdf61=_0x40cbc1['get'](d),_0x5e5bbd=_0x3bdf61['repository']['getEarlierVisibleRevision'](_0x463c27);_0x3bdf61['compare'](_0x463c27,_0x5e5bbd),_0x930037['focus'](),_0x930037['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xec49a5,_0x5b3bfa){super(_0xec49a5),this['_view']=_0x5b3bfa,this['_toolbarConfig']=ot(_0xec49a5['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x54fdf1){const _0x39da51=this['editor'],_0x4c4d44=this['view'],_0x3f0925=_0x39da51['editing']['view'],_0x4f40f1=_0x4c4d44['editable'],_0x1b75be=_0x3f0925['document']['getRoot']();_0x4f40f1['name']=_0x1b75be['rootName'],_0x4c4d44['render']();const _0x568aee=_0x4f40f1['element'];this['setEditableElement'](_0x4f40f1['name'],_0x568aee),_0x4c4d44['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3f0925['attachDomRoot'](_0x568aee),this['_elementReplacer']['replace'](_0x54fdf1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x47f62c=this['view'],_0x9e21f2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x9e21f2['detachDomRoot'](_0x47f62c['editable']['name']),_0x47f62c['destroy']();}['_initToolbar'](){const _0xda9615=this['view'];_0xda9615['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xda9615['stickyPanel']['limiterElement']=_0xda9615['element'],_0xda9615['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3e5998})=>_0x3e5998),_0xda9615['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xda9615['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x27bf23,_0xd01c0a,_0x57a60a={}){super(_0x27bf23),this['stickyPanel']=new lt(_0x27bf23),this['toolbar']=new nt(_0x27bf23,{'shouldGroupWhenFull':_0x57a60a['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x27bf23,_0xd01c0a);}['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(_0x5b51f5,_0x35cb1f){super(_0x35cb1f),this['sourceElement']=_0x5b51f5,this['model']['document']['createRoot']();const _0xbe4f87=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xbe4f87);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5b9e5d,_0x1d44d6){const _0x4ab2c4=new this(_0x5b9e5d,_0x1d44d6);return await _0x4ab2c4['initPlugins'](),await _0x4ab2c4['ui']['init'](_0x5b9e5d),await _0x4ab2c4['data']['init'](_0x4ab2c4['config']['get']('initialData')||''),_0x4ab2c4['fire']('ready'),_0x4ab2c4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x593b73{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x433d4e){function _0x559e2f(_0x5cdc89){return _0x5cdc89['map'](_0x4eacf7=>String['fromCharCode'](_0x4eacf7))['join']('');}super(_0x433d4e),this['result']='end',_0x433d4e[_0x559e2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x559e2f([0x76,0x69,0x65,0x77])][_0x559e2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x559e2f([0x61,0x75,0x74,0x6f]),_0x433d4e[_0x559e2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x559e2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x559e2f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x559e2f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x559e2f([0x6f,0x6b])});}}class k extends _0x593b73{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x103c4b){if(super(_0x103c4b),!this['editor']['config']['get']('revisionHistory'))throw new _0x18e6a6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x47bb96=>this['_showRevisionViewer']({..._0x47bb96,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x27c7f4=>this['_closeRevisionViewer'](_0x27c7f4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x354b8b=>this['_restoreRevision'](_0x354b8b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x9a2ffe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x9a2ffe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1d165a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1d165a);}['getRevision'](_0x7a0a0e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x7a0a0e);}['getRevisions'](_0xa137fa){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xa137fa||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x6c05dc=this['editor'],_0x262f0a=_0x448f62(_0x6c05dc,p),_0x3b5d0b=_0x6c05dc['plugins']['get']('RevisionTracker'),_0x448e5b=_0x6c05dc['plugins']['get']('Users')['users'];return _0x262f0a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x262f0a['lazyRoots'],(_0x262f0a['plugins']['push'](bt,d,w,class extends _0x593b73{static get['requires'](){return[d,'Users'];}['init'](){const _0x21ed48=this['editor']['plugins']['get']('Users');for(const _0x254825 of _0x448e5b)_0x254825['isAnonymous']||_0x21ed48['getUser'](_0x254825['id'])||_0x21ed48['addUser'](_0x254825);const _0x3d5edd=_0x3b5d0b['repository']['getRevisions']();let _0x4f2340=null;const _0x25c419=this['editor']['plugins']['get']('RevisionViewer');_0x25c419['adapter']=_0x3b5d0b['adapter'],_0x25c419['bind']('isEnabled')['to'](_0x3b5d0b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x6c05dc,'isReadOnly',_0x2441e1=>!_0x2441e1);for(const _0x99243c of _0x3d5edd){const _0x4728df=null===_0x99243c['creator'];if(_0x4728df&&_0x99243c['toVersion']===_0x99243c['fromVersion'])continue;const _0x3df3b9=_0x99243c['toJSON']();_0x25c419['addRevisionData'](_0x3df3b9,(_0xcc75d6,_0x21a67e,_0x50e38f)=>{if(_0x4728df){if(_0x4f2340)_0x4f2340['_update'](_0xcc75d6,_0x21a67e);else{if(!_0x21a67e){const _0x55282b=_0x50e38f['toJSON']();_0x55282b['id']=_0x57caab(),_0x3b5d0b['saveRevision'](_0x55282b,_0x50e38f['toVersion'])['then'](_0x169432=>{_0x4f2340=_0x169432;});}}}else _0x99243c['_update'](_0xcc75d6,_0x21a67e);});}}},g),_0x262f0a);}['_enhanceShowRevisionViewerCallback'](){const _0x2d4a8d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x14dd8a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x29d4bb=this['editor']['plugins']['get']('Autosave');await _0x29d4bb['save']();}else await _0x14dd8a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xb231e7=this['editor']['plugins']['get']('Dialog');_0xb231e7['isOpen']&&_0xb231e7['hide']();}const _0x2453df=this['_getRevisionViewerEditorConfig']();return _0x2d4a8d(_0x2453df)['then'](_0x47ecf8=>{return(this['_viewerEditor']=_0x47ecf8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x47ecf8;})['catch'](_0x141e69=>(console['error'](_0x141e69),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55b257=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'](),_0x55b257(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x54dfaf=this['editor']['plugins']['get']('Annotations');_0x54dfaf['refreshVisibility'](),_0x54dfaf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x14cce){const _0x4c7f99=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x839ccb=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2de4fe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2de4fe,_0x14cce)['then'](_0x38530b=>(_0x839ccb['style']['display']='block',_0x4c7f99['style']['display']='none',_0x38530b));}['_closeRevisionViewer'](_0x1a3c47){const _0x5a8638=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5a8638['style']['display']='',_0x1a3c47['destroy']();}async['_restoreRevision'](_0x15640a){const _0x32d748=this['editor'],_0x379ea6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4f664e=_0x32d748['plugins']['get']('RevisionTracker'),_0x4c9047=_0x379ea6['repository']['getRevision'](_0x15640a);let _0x248c5c,_0x4c1306,_0x449da6;try{_0x248c5c=await _0x379ea6['getRevisionData'](_0x4c9047),_0x4c1306=await _0x379ea6['getRevisionRootsAttributes'](_0x4c9047);}catch(_0x1bc4ab){return void console['error'](_0x1bc4ab);}_0x32d748['model']['change'](_0x275a48=>{for(const _0x164cd9 of Array['from'](_0x32d748['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x275a48['removeMarker'](_0x164cd9);}),_0x379ea6['isReady']=!0x1,_0x32d748['model']['enqueueChange'](_0x186db2=>{_0x186db2['setSelection'](null),_0x186db2['removeSelectionAttribute'](_0x32d748['model']['document']['selection']['getAttributeKeys']());const _0x49f1b6=Object['keys'](_0x248c5c);for(const _0x5c4f62 of _0x32d748['model']['document']['roots'])'$graveyard'!=_0x5c4f62['rootName']&&_0x5c4f62['isAttached']()&&!_0x49f1b6['includes'](_0x5c4f62['rootName'])&&_0x186db2['detachRoot'](_0x5c4f62);for(const _0x4701ae of _0x49f1b6){let _0x27c3bf=_0x32d748['model']['document']['getRoot'](_0x4701ae);_0x27c3bf&&_0x27c3bf['isAttached']()||(_0x27c3bf=_0x186db2['addRoot'](_0x4701ae));const _0x86c959=_0x4c1306[_0x4701ae],_0xd0e994=Object['keys'](_0x86c959),_0x383fda=_0x248c5c[_0x4701ae];for(const _0x32e03f of _0x27c3bf['getAttributeKeys']())_0xd0e994['includes'](_0x32e03f)||_0x186db2['removeAttribute'](_0x32e03f,_0x27c3bf);for(const _0x5db5ee of _0xd0e994)_0x186db2['setAttribute'](_0x5db5ee,_0x4c1306[_0x4701ae][_0x5db5ee],_0x27c3bf);_0x186db2['remove'](_0x186db2['createRangeIn'](_0x27c3bf)),_0x186db2['insert'](_0x32d748['data']['parse'](_0x383fda,_0x27c3bf),_0x27c3bf,0x0);}});const _0x15b2d2=m(_0x32d748['locale'],'Restored');if(_0x4c9047['name'])_0x449da6=-0x1==_0x4c9047['name']['indexOf'](_0x15b2d2)?_0x15b2d2+':\x20'+_0x4c9047['name']:_0x4c9047['name'];else _0x449da6=_0x15b2d2+':\x20'+(_0x4c9047['createdAt']['toLocaleDateString'](_0x32d748['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c9047['createdAt']['toLocaleTimeString'](_0x32d748['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4f664e['saveRevision']({'name':_0x449da6}),_0x379ea6['isReady']=!0x0,_0x32d748['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2e9dee){super(_0x2e9dee),this['_revisionViewer']=_0x2e9dee['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x588136=this['_revisionsRepository']['_revisions'],_0x3e23cf=this['_createRevisionActions'](),_0x5f2d3e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x588136,_0x3e23cf,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',(_0x48a9ad,_0x19e64e)=>{_0x19e64e['revisionViews']['on']('add',(_0x2a07da,_0x238cfd)=>{_0x238cfd['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)),_0x5f2d3e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xe1051a=this['_revisionsRepository']['getRevision'](0x0);if(_0xe1051a){const _0x27d186=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe1051a['id']);this['_revisionViewer']['compare'](_0xe1051a,_0x27d186);}}['_handleRevisionSelected'](_0x4b283b,_0x4ba7da){const _0x350357=this['_revisionsRepository']['getRevision'](_0x4ba7da['id']),_0x4af443=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x350357['id']);this['_revisionViewer']['compare'](_0x350357,_0x4af443);}['_handleRevisionSetName'](_0x5f18e6,_0x13af56){this['_revisionsRepository']['getRevision'](_0x13af56['id'])['setName'](_0x13af56['name']);}['_handleDiffChange'](_0x39e6fb,_0x18912d,_0x39d916){const _0xc9a7d4=this['_revisionsRepository']['getRevisionsInDiff'](_0x39d916);_0xc9a7d4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc9a7d4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc9a7d4[0x0]));}['_createRevisionActions'](){const _0x2f93e9=this['editor'],_0x1abb84=g['availableRevisionActions'],_0x57d3df=_0x2f93e9['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x57d3df['length'])return _0x57d3df['map'](_0x43ed14=>{const _0x32de1f='string'==typeof _0x43ed14?Object['assign']({},_0x1abb84[_0x43ed14]):_0x43ed14;return _0x32de1f['action']=_0x32de1f['action']['bind'](this,_0x2f93e9),_0x32de1f['isVisible']&&(_0x32de1f['isVisible']=_0x32de1f['isVisible']['bind'](this,_0x2f93e9)),_0x32de1f;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x419f58},_0x4e05f6)=>{const _0x741ec9=_0x419f58['get'](d),_0x16083c=_0x741ec9['repository'];let _0x120758=_0x741ec9['diff']['newRevisionId'],_0x41db5d=_0x4e05f6['id'];_0x16083c['getIndex'](_0x120758)>_0x16083c['getIndex'](_0x41db5d)&&([_0x120758,_0x41db5d]=[_0x41db5d,_0x120758]),_0x741ec9['compare'](_0x120758,_0x41db5d);},'isVisible':({plugins:_0x360e79},_0x1c2258)=>{const _0x7a44a0=_0x360e79['get'](d);return!(_0x7a44a0['repository']['getRevisionsInDiff'](_0x7a44a0['diff'])['length']>0x2)&&!_0x1c2258['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4b471b,{id:_0x2ab99a})=>{_0x4b471b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2ab99a);},'isVisible':({plugins:_0x35826b},_0x55a3f5)=>!!_0x35826b['get'](d)['repository']['getLaterVisibleRevision'](_0x55a3f5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa3719},{id:_0x593364,revisionNameView:_0x276f10})=>{const _0x332798=_0xa3719['get'](d),_0x326348=_0x332798['repository']['getEarlierVisibleRevision'](_0x593364);_0x332798['compare'](_0x593364,_0x326348),_0x276f10['focus'](),_0x276f10['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x20322d,_0x6ea275){super(_0x20322d),this['_view']=_0x6ea275,this['_toolbarConfig']=ot(_0x20322d['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x23fd2f){const _0x4d2b7c=this['editor'],_0x8c6f2c=this['view'],_0x543012=_0x4d2b7c['editing']['view'],_0x3a824b=_0x8c6f2c['editable'],_0x2318ee=_0x543012['document']['getRoot']();_0x3a824b['name']=_0x2318ee['rootName'],_0x8c6f2c['render']();const _0x281a5e=_0x3a824b['element'];this['setEditableElement'](_0x3a824b['name'],_0x281a5e),_0x8c6f2c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x543012['attachDomRoot'](_0x281a5e),this['_elementReplacer']['replace'](_0x23fd2f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x157db7=this['view'],_0x194b9f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x194b9f['detachDomRoot'](_0x157db7['editable']['name']),_0x157db7['destroy']();}['_initToolbar'](){const _0x457cb8=this['view'];_0x457cb8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x457cb8['stickyPanel']['limiterElement']=_0x457cb8['element'],_0x457cb8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d7bd9})=>_0x4d7bd9),_0x457cb8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x457cb8['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x309b9e,_0x38e91d,_0x46e3cf={}){super(_0x309b9e),this['stickyPanel']=new lt(_0x309b9e),this['toolbar']=new nt(_0x309b9e,{'shouldGroupWhenFull':_0x46e3cf['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x309b9e,_0x38e91d);}['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(_0x48ecde,_0x4e7e98){super(_0x4e7e98),this['sourceElement']=_0x48ecde,this['model']['document']['createRoot']();const _0x146b22=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x146b22);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x43d5a8,_0x4b6833){const _0x447fe3=new this(_0x43d5a8,_0x4b6833);return await _0x447fe3['initPlugins'](),await _0x447fe3['ui']['init'](_0x43d5a8),await _0x447fe3['data']['init'](_0x447fe3['config']['get']('initialData')||''),_0x447fe3['fire']('ready'),_0x447fe3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x26fb00{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35b1c0){function _0x5d38a1(_0x262b8a){return _0x262b8a['map'](_0x3f9613=>String['fromCharCode'](_0x3f9613))['join']('');}super(_0x35b1c0),this['result']='end',_0x35b1c0[_0x5d38a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d38a1([0x76,0x69,0x65,0x77])][_0x5d38a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d38a1([0x61,0x75,0x74,0x6f]),_0x35b1c0[_0x5d38a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d38a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d38a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d38a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d38a1([0x6f,0x6b])});}}class k extends _0x26fb00{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2ee821){if(super(_0x2ee821),!this['editor']['config']['get']('revisionHistory'))throw new _0x194013('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3e9fee=>this['_showRevisionViewer']({..._0x3e9fee,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x324371=>this['_closeRevisionViewer'](_0x324371)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2173f4=>this['_restoreRevision'](_0x2173f4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a8a28){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a8a28;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x18c532){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x18c532);}['getRevision'](_0x431234){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x431234);}['getRevisions'](_0x3ac139){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3ac139||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2a023b=this['editor'],_0x1738c7=_0x4802af(_0x2a023b,p),_0x136fb5=_0x2a023b['plugins']['get']('RevisionTracker'),_0x1211cd=_0x2a023b['plugins']['get']('Users')['users'];return _0x1738c7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1738c7['lazyRoots'],(_0x1738c7['plugins']['push'](Rt,d,w,class extends _0x26fb00{static get['requires'](){return[d,'Users'];}['init'](){const _0x4acbc0=this['editor']['plugins']['get']('Users');for(const _0x23860e of _0x1211cd)_0x23860e['isAnonymous']||_0x4acbc0['getUser'](_0x23860e['id'])||_0x4acbc0['addUser'](_0x23860e);const _0x69aff7=_0x136fb5['repository']['getRevisions']();let _0x4699b2=null;const _0x554dd4=this['editor']['plugins']['get']('RevisionViewer');_0x554dd4['adapter']=_0x136fb5['adapter'],_0x554dd4['bind']('isEnabled')['to'](_0x136fb5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2a023b,'isReadOnly',_0x3396ef=>!_0x3396ef);for(const _0x30c101 of _0x69aff7){const _0x44369d=null===_0x30c101['creator'];if(_0x44369d&&_0x30c101['toVersion']===_0x30c101['fromVersion'])continue;const _0x1fafb2=_0x30c101['toJSON']();_0x554dd4['addRevisionData'](_0x1fafb2,(_0x4db94a,_0x519d51,_0x24174c)=>{if(_0x44369d){if(_0x4699b2)_0x4699b2['_update'](_0x4db94a,_0x519d51);else{if(!_0x519d51){const _0xdd66ee=_0x24174c['toJSON']();_0xdd66ee['id']=_0x4e207b(),_0x136fb5['saveRevision'](_0xdd66ee,_0x24174c['toVersion'])['then'](_0x5386fe=>{_0x4699b2=_0x5386fe;});}}}else _0x30c101['_update'](_0x4db94a,_0x519d51);});}}},g),_0x1738c7);}['_enhanceShowRevisionViewerCallback'](){const _0xf20ec2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x255241=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2f19c=this['editor']['plugins']['get']('Autosave');await _0x2f19c['save']();}else await _0x255241['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4a5fbf=this['editor']['plugins']['get']('Dialog');_0x4a5fbf['isOpen']&&_0x4a5fbf['hide']();}const _0x1eaa2e=this['_getRevisionViewerEditorConfig']();return _0xf20ec2(_0x1eaa2e)['then'](_0x475f66=>{return(this['_viewerEditor']=_0x475f66,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x475f66;})['catch'](_0x39472b=>(console['error'](_0x39472b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1ce7d8=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'](),_0x1ce7d8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2a309d=this['editor']['plugins']['get']('Annotations');_0x2a309d['refreshVisibility'](),_0x2a309d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x549da1){const _0x1043ba=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c168d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x248ba6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x248ba6,_0x549da1)['then'](_0x16d02d=>(_0x1c168d['style']['display']='block',_0x1043ba['style']['display']='none',_0x16d02d));}['_closeRevisionViewer'](_0x23177b){const _0x4faf16=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4faf16['style']['display']='',_0x23177b['destroy']();}async['_restoreRevision'](_0x1bba43){const _0x39e301=this['editor'],_0x41bd5c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e1a8f=_0x39e301['plugins']['get']('RevisionTracker'),_0x159b7f=_0x41bd5c['repository']['getRevision'](_0x1bba43);let _0x3e2635,_0x94ea53,_0x53fc33;try{_0x3e2635=await _0x41bd5c['getRevisionData'](_0x159b7f),_0x94ea53=await _0x41bd5c['getRevisionRootsAttributes'](_0x159b7f);}catch(_0x75549d){return void console['error'](_0x75549d);}_0x39e301['model']['change'](_0x38ec6b=>{for(const _0x3fbffa of Array['from'](_0x39e301['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x38ec6b['removeMarker'](_0x3fbffa);}),_0x41bd5c['isReady']=!0x1,_0x39e301['model']['enqueueChange'](_0x117b0a=>{_0x117b0a['setSelection'](null),_0x117b0a['removeSelectionAttribute'](_0x39e301['model']['document']['selection']['getAttributeKeys']());const _0x3a4fb2=Object['keys'](_0x3e2635);for(const _0x476549 of _0x39e301['model']['document']['roots'])'$graveyard'!=_0x476549['rootName']&&_0x476549['isAttached']()&&!_0x3a4fb2['includes'](_0x476549['rootName'])&&_0x117b0a['detachRoot'](_0x476549);for(const _0x2807c8 of _0x3a4fb2){let _0x4702d8=_0x39e301['model']['document']['getRoot'](_0x2807c8);_0x4702d8&&_0x4702d8['isAttached']()||(_0x4702d8=_0x117b0a['addRoot'](_0x2807c8));const _0x4ad19b=_0x94ea53[_0x2807c8],_0x2f84be=Object['keys'](_0x4ad19b),_0x569077=_0x3e2635[_0x2807c8];for(const _0xe7d402 of _0x4702d8['getAttributeKeys']())_0x2f84be['includes'](_0xe7d402)||_0x117b0a['removeAttribute'](_0xe7d402,_0x4702d8);for(const _0x427fd of _0x2f84be)_0x117b0a['setAttribute'](_0x427fd,_0x94ea53[_0x2807c8][_0x427fd],_0x4702d8);_0x117b0a['remove'](_0x117b0a['createRangeIn'](_0x4702d8)),_0x117b0a['insert'](_0x39e301['data']['parse'](_0x569077,_0x4702d8),_0x4702d8,0x0);}});const _0x5aaebe=m(_0x39e301['locale'],'Restored');if(_0x159b7f['name'])_0x53fc33=-0x1==_0x159b7f['name']['indexOf'](_0x5aaebe)?_0x5aaebe+':\x20'+_0x159b7f['name']:_0x159b7f['name'];else _0x53fc33=_0x5aaebe+':\x20'+(_0x159b7f['createdAt']['toLocaleDateString'](_0x39e301['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x159b7f['createdAt']['toLocaleTimeString'](_0x39e301['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e1a8f['saveRevision']({'name':_0x53fc33}),_0x41bd5c['isReady']=!0x0,_0x39e301['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};