@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250504.0 → 0.0.0-nightly-20250505.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 _0x4f55d8,uid as _0x450571,Collection as _0x58d884,logWarning as _0x1f0366,FocusTracker as _0x38cc87,KeystrokeHandler as _0x133eb8,scrollViewportToShowTarget as _0x698de3,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x26796e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x385a22,set as _0x2e4b6a,unset as _0x28be5c,isEqual as _0x5c2d5e}from'es-toolkit/compat';import{Plugin as _0x425a55,PendingActions as _0x526cfd,Command as _0x235e90,ElementApiMixin as _0x1cb9b2,Editor as _0x55a24b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5701d4,getMarkerDomElement as _0x333dad,ConfirmMixin as _0x1c40d5,sanitizeEditorConfig as _0x349ba6}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4f8a2e,ViewAttributeElement as _0x124e09,ViewEmptyElement as _0x415bf5,ViewRawElement as _0x3ada0a,ViewUIElement as _0x1fe111,ViewDocumentFragment as _0x5e4916,ViewText as _0x20f639,ViewElement as _0x55adab,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4280c8,IconChevronUp as _0x28f55c,IconChevronDown as _0x15d7a2,IconUndo as _0xfb9832,IconUser as _0x171f71,IconThreeVerticalDots as _0x35f117}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x39cfbe,injectCssTransitionDisabler as ts,submitHandler as _0x2cc73e,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x2f3f6b,ListView as _0x381af1,ListItemView as te,ButtonView as _0x2e3194,MenuBarMenuView as _0x1cf6e8,MenuBarMenuListView as _0x325bfc,MenuBarMenuListItemView as _0x1c0134,MenuBarMenuListItemButtonView as _0x17e213,ContextualBalloon as _0x208e19,ToolbarSeparatorView as _0x5e79f7,IconView as _0x43ff91,addListToDropdown as _0x101f1a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1f6c3a}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4f55d8(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52b410){super(),this['id']=_0x52b410['id']||_0x450571(),this['creator']=_0x52b410['creator']||null,this['authors']=_0x52b410['authors']||[],this['diffData']=_0x52b410['diffData']||null,this['toVersion']=_0x52b410['toVersion']||0x0,this['fromVersion']=_0x52b410['fromVersion']||0x0,this['set']('name',_0x52b410['name']||''),this['set']('createdAt',_0x52b410['createdAt']||new Date()),this['set']('attributes',_0x52b410['attributes']||{});}['setName'](_0x3f7cac){this['_update']({'name':_0x3f7cac});}['setAttribute'](_0x3c6afa,_0x194b90){const _0x3f32c2=_0x385a22(this['attributes']);_0x2e4b6a(_0x3f32c2,_0x3c6afa,_0x194b90),this['_update']({'attributes':_0x3f32c2});}['removeAttribute'](_0x43a114){const _0xc508ff=_0x385a22(this['attributes']);_0x28be5c(_0xc508ff,_0x43a114),this['_update']({'attributes':_0xc508ff});}['_update'](_0x4e5cd3,_0x50f2d4=!0x1){let _0x15d98b=!0x1;const _0x5502ce={'id':this['id']},_0x8db1d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x307380 of _0x8db1d9){const _0x987f21=_0x4e5cd3[_0x307380];void 0x0!==_0x987f21&&_0x987f21!==this[_0x307380]&&(this[_0x307380]=_0x987f21,_0x5502ce[_0x307380]=_0x987f21,_0x15d98b=!0x0);}_0x15d98b&&(_0x5502ce['authors']&&(_0x5502ce['authorsIds']=_0x5502ce['authors']['map'](_0x465da1=>_0x465da1['id']),delete _0x5502ce['authors']),this['fire']('_update',_0x5502ce,_0x50f2d4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11ff78=>_0x11ff78['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x425a55{['_revisions'];static get['requires'](){return[_0x5701d4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x92ebfa){super(_0x92ebfa),this['_revisions']=new _0x58d884();}['afterInit'](){!async function(_0x386bc5){const _0x935020=_0xfa34b([0x54,0x55,0x30,0x32,0x34,0x66,0x48,0x51,0x61,0x35,0x72,0x79,0x77,0x47,0x43,0x44,0x67,0x50,0x74,0x64,0x31,0x49,0x6a,0x57,0x4e,0x41,0x6e,0x38,0x65,0x37,0x52,0x68,0x4b,0x58,0x75,0x7a,0x53,0x5a,0x4a,0x46,0x63,0x6b,0x56,0x45,0x76,0x70,0x71,0x6f,0x73,0x59,0x62,0x4c,0x36,0x39,0x78,0x4d,0x42,0x6c,0x69,0x4f,0x33,0x6d]),_0x2d2f41=0xeb829,_0x7c55d7=0x4921d5f8,_0x3ae5f9=0x4926b318^_0x7c55d7,_0x10dcea=window[_0xfa34b([0x44,0x61,0x74,0x65])][_0xfa34b([0x6e,0x6f,0x77])](),_0x164b20=_0x386bc5[_0xfa34b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fc8e3=new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59eae1=>{_0x164b20[_0xfa34b([0x6f,0x6e,0x63,0x65])](_0xfa34b([0x72,0x65,0x61,0x64,0x79]),_0x59eae1);}),_0x4161e3={[_0xfa34b([0x6b,0x74,0x79])]:_0xfa34b([0x45,0x43]),[_0xfa34b([0x75,0x73,0x65])]:_0xfa34b([0x73,0x69,0x67]),[_0xfa34b([0x63,0x72,0x76])]:_0xfa34b([0x50,0x2d,0x32,0x35,0x36]),[_0xfa34b([0x78])]:_0xfa34b([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]),[_0xfa34b([0x79])]:_0xfa34b([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]),[_0xfa34b([0x61,0x6c,0x67])]:_0xfa34b([0x45,0x53,0x32,0x35,0x36])},_0x4b221b=_0x164b20[_0xfa34b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfa34b([0x67,0x65,0x74])](_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x439cc9(){let _0x205db8,_0x38e832=null,_0x2f2076=null;try{if(_0x4b221b==_0xfa34b([0x47,0x50,0x4c]))return _0xfa34b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x205db8=_0x10a67d(),!_0x205db8)return _0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x205db8[_0xfa34b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f2076=_0x3cc7b3(_0x205db8[_0xfa34b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x205db8[_0xfa34b([0x6a,0x74,0x69])])),await _0x232da9()?_0x1fbb59()?_0x6634b()?_0xfa34b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b79f6()?(_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfa34b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e832=_0x432351(_0xfa34b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfa34b([0x74,0x72,0x69,0x61,0x6c])&&(_0x38e832=_0x432351(_0xfa34b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58b233()):_0xfa34b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfa34b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54c4c2){return _0xfa34b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6634b(){const _0x527ee3=[_0xfa34b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfa34b([0x74,0x72,0x69,0x61,0x6c])][_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10dcea/0x3e8:0xe10*_0x3ae5f9;return _0x205db8[_0xfa34b([0x65,0x78,0x70])]<_0x527ee3;}function _0x1fbb59(){const _0xa503ef=_0x205db8[_0xfa34b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa503ef)return!0x1;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x2a])))return!0x0;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x52,0x48])))return!0x0;if(_0xa503ef[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x52,0x52,0x48]))){if(_0x3c00f1())return!0x0;if(_0x5a012e()||_0x5a6ba7())return!0x0;}return!0x1;}function _0x1b79f6(){const _0x589e72=_0x205db8[_0xfa34b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x589e72||0x0==_0x589e72[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27d174}=new URL(window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x589e72[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d174))return!0x0;const _0x1e5498=_0x27d174[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e]));return _0x589e72[_0xfa34b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e2b09=>_0x5e2b09[_0xfa34b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa34b([0x2a])))[_0xfa34b([0x6d,0x61,0x70])](_0x55aa86=>_0x55aa86[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e])))[_0xfa34b([0x73,0x6f,0x6d,0x65])](_0x2c46b8=>_0x1e5498[_0xfa34b([0x65,0x76,0x65,0x72,0x79])]((_0x3fd029,_0x2bf3f2)=>_0x2c46b8[_0x2bf3f2]===_0x3fd029||_0x2c46b8[_0x2bf3f2]===_0xfa34b([0x2a])));}function _0x58b233(){return _0x38e832&&_0x2f2076?new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e5bd7,_0x33da8c)=>{_0x38e832[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x1e5bd7,_0x33da8c),_0x2f2076[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x48435e=>{_0x48435e!=_0xfa34b([0x56,0x61,0x6c,0x69,0x64])&&_0x1e5bd7(_0x48435e);},_0x33da8c);}):_0x38e832||_0x2f2076||_0xfa34b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cc7b3(_0x479c78,_0x5a213a){return new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20489a=>{if(_0x21cba4())return _0x20489a(_0xfa34b([0x56,0x61,0x6c,0x69,0x64]));_0x491f04(),_0x164b20[_0xfa34b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ce2d1=!0x1;const _0x1fc9d8=_0x450571();function _0x52009b(_0x2e7de8){return!!_0x2e7de8&&(typeof _0x2e7de8===_0xfa34b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e7de8===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e7de8[_0xfa34b([0x74,0x68,0x65,0x6e])]===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e7de8[_0xfa34b([0x63,0x61,0x74,0x63,0x68])]===_0xfa34b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2774c0(_0x3eb28b){_0x4c8fda(_0x3eb28b)[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x4cfac7=>{if(!_0x4cfac7||_0x4cfac7[_0xfa34b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfa34b([0x6f,0x6b]))return _0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeef1eb(_0x216d8e(_0x1fc9d8+_0x5a213a))!=_0x4cfac7[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfa34b([0x56,0x61,0x6c,0x69,0x64]);})[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x5c04ed=>(_0x2120aa(),_0x5c04ed),()=>{const _0x5b4d48=_0x4ff644();return null==_0x5b4d48?(_0x2120aa(),_0xfa34b([0x56,0x61,0x6c,0x69,0x64])):_0xfa34b(_0x10dcea-_0x5b4d48>(0x6d2d51f8^_0x7c55d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x20489a)[_0xfa34b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x474019=0x49173b78^_0x7c55d7;function _0x2120aa(){const _0x46519c=_0xfa34b([0x6c,0x6c,0x63,0x74,0x2d])+_0xeef1eb(_0x216d8e(_0x479c78)),_0x400ea4=_0x195f0f(_0xeef1eb(window[_0xfa34b([0x4d,0x61,0x74,0x68])][_0xfa34b([0x63,0x65,0x69,0x6c])](_0x10dcea/_0x474019)));window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfa34b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46519c,_0x400ea4);}function _0x4ff644(){const _0x59ef5d=_0xfa34b([0x6c,0x6c,0x63,0x74,0x2d])+_0xeef1eb(_0x216d8e(_0x479c78)),_0x35f366=window[_0xfa34b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfa34b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59ef5d);return _0x35f366?window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x195f0f(_0x35f366),0x10)*_0x474019:null;}function _0x4c8fda(_0x2c804e){return new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x588e35,_0x5ac74d)=>{_0x2c804e[_0xfa34b([0x74,0x68,0x65,0x6e])](_0x588e35,_0x5ac74d),window[_0xfa34b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ac74d,0x49200138^_0x7c55d7);});}}_0x164b20[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47e12a,_0x31e5b8)=>{if(_0x31e5b8[0x0]!=_0x479c78)return _0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31e5b8[0x1]={..._0x31e5b8[0x1],[_0xfa34b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fc9d8};},{[_0xfa34b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfa34b([0x68,0x69,0x67,0x68])}),_0x164b20[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x461378=>{_0x52009b(_0x461378[_0xfa34b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ce2d1=!0x0,_0x2774c0(_0x461378[_0xfa34b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfa34b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfa34b([0x6c,0x6f,0x77])}),_0x1fc8e3[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>{_0x2ce2d1||_0x20489a(_0xfa34b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21cba4(){return _0x164b20[_0xfa34b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfa34b([0x76,0x69,0x65,0x77])][_0xfa34b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfa34b([0x61,0x75,0x74,0x6f]);}function _0x491f04(){_0x164b20[_0xfa34b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfa34b([0x76,0x69,0x65,0x77])][_0xfa34b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfa34b([0x61,0x75,0x74,0x6f]);}}function _0x432351(_0x399fdf){const _0x4fcb26=[new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dcbef=>setTimeout(_0x5dcbef,0x4928eb34^_0x7c55d7)),_0x1fc8e3[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9264=>{const _0x1aff88=0x4921d5ff^_0x7c55d7,_0x6277a3=_0x386bc5[_0xfa34b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x459394(){_0x6277a3[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1aff88&&_0x3a9264();}_0x459394(),_0x6277a3[_0xfa34b([0x6f,0x6e])](_0xfa34b([0x61,0x64,0x64]),_0x459394);})),new window[(_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x81d3b0=>{function _0x844ed5(){for(const _0x333d2d in window)if(window[_0xfa34b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xfa34b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x333d2d))&&window[_0x333d2d]==_0x2d2f41)return _0x81d3b0();_0x164b20[_0xfa34b([0x73,0x74,0x61,0x74,0x65])]!=_0xfa34b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xfa34b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x844ed5,0x4921c670^_0x7c55d7);}_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x844ed5();})];return window[_0xfa34b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfa34b([0x72,0x61,0x63,0x65])](_0x4fcb26)[_0xfa34b([0x74,0x68,0x65,0x6e])](()=>_0x399fdf);}async function _0x15a631(){if(await _0x1fc8e3,_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xd27984=_0x386bc5[_0xfa34b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167b43=_0x386bc5[_0xfa34b([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])](_0xd27984[_0xfa34b([0x69,0x64])]),_0x48447c=_0x1f7928(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x48447c[_0xfa34b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xd27984['id'],_0x167b43?_0x167b43['id']:null,!0x0),_0x48447c[_0xfa34b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x48447c[_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x48447c[_0xfa34b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1fc58,void(_0x48447c[_0xfa34b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1fc58);}if(_0x1d6b36(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e22a7=_0x1f7928(_0xfa34b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e22a7[_0xfa34b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e22a7[_0xfa34b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e22a7[_0xfa34b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1fc58,_0x5e22a7[_0xfa34b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1fc58;}_0x164b20[_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c])][_0xfa34b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fc58,_0x164b20[_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c])][_0xfa34b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fc58,_0x164b20[_0xfa34b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfa34b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c00f1(){return _0x1d6b36(_0xfa34b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f7928(_0xfa34b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xfa34b([0x73,0x74,0x61,0x74,0x65])]==_0xfa34b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a012e(){return _0x1d6b36(_0xfa34b([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 _0x5a6ba7(){return _0x1d6b36(_0xfa34b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d4a0a(_0x343d20){const _0x603c44=_0xf8e3c6();_0x164b20[_0x603c44]=_0xfa34b([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])+_0x343d20,_0x343d20[_0xfa34b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xfa34b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf8e3c6()]=_0x2d2f41),_0x343d20!=_0xfa34b([0x56,0x61,0x6c,0x69,0x64])&&_0x15a631();}function _0xf8e3c6(){const _0x30e71b=window[_0xfa34b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfa34b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfa34b([0x6e,0x6f,0x77])]())[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfa34b([0x2e]),'');let _0x79b89a=_0xfa34b([0x54]);for(let _0x102e9c=0x0;_0x102e9c<_0x30e71b[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x102e9c+=0x2){let _0x54aa3d=window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e71b[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x102e9c,_0x102e9c+0x2));_0x54aa3d>=_0x935020[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54aa3d-=_0x935020[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x79b89a+=_0x935020[_0x54aa3d];}return _0x79b89a;}function _0x10a67d(){const _0x21f489=_0x4b221b[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e]));if(0x3!=_0x21f489[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a5c0e(_0x21f489[0x1]);function _0x2a5c0e(_0x47e21e){const _0x54c9c7=_0x1e4013(_0x47e21e);return _0x54c9c7&&_0xe73d7c()?_0x54c9c7:null;function _0xe73d7c(){const _0xdb1468=_0x54c9c7[_0xfa34b([0x6a,0x74,0x69])],_0x349508=window[_0xfa34b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb1468[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdb1468[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ff21a={..._0x54c9c7,[_0xfa34b([0x6a,0x74,0x69])]:_0xdb1468[_0xfa34b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xdb1468[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ff21a[_0xfa34b([0x76,0x63])],_0x216d8e(_0x2ff21a)==_0x349508;}}}async function _0x232da9(){let _0x5f17dd=!0x0;try{const _0x34cf86=_0x4b221b[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])](_0xfa34b([0x2e])),[_0x51d744,_0x252f45,_0x445cd0]=_0x34cf86;return _0x187355(_0x51d744),await _0x4f100d(_0x51d744,_0x252f45,_0x445cd0),_0x5f17dd;}catch(_0x4622ed){return!0x1;}function _0x187355(_0x4bcfb8){const _0x348962=_0x1e4013(_0x4bcfb8);_0x348962&&_0x348962[_0xfa34b([0x61,0x6c,0x67])]==_0xfa34b([0x45,0x53,0x32,0x35,0x36])||(_0x5f17dd=!0x1);}async function _0x4f100d(_0x124b32,_0x59dc22,_0x3d35bc){const _0x2f1787=window[_0xfa34b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfa34b([0x66,0x72,0x6f,0x6d])](_0x51b3a6(_0x3d35bc),_0x12674b=>_0x12674b[_0xfa34b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x170612=new window[(_0xfa34b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfa34b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124b32+_0xfa34b([0x2e])+_0x59dc22),_0x1ba2dc=window[_0xfa34b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfa34b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ba2dc)return;const _0x6896ee=await _0x1ba2dc[_0xfa34b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfa34b([0x6a,0x77,0x6b]),_0x4161e3,{[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x45,0x43,0x44,0x53,0x41]),[_0xfa34b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfa34b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ba2dc[_0xfa34b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x45,0x43,0x44,0x53,0x41]),[_0xfa34b([0x68,0x61,0x73,0x68])]:{[_0xfa34b([0x6e,0x61,0x6d,0x65])]:_0xfa34b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6896ee,_0x2f1787,_0x170612)||(_0x5f17dd=!0x1);}}function _0x1e4013(_0x18bb15){return _0x18bb15[_0xfa34b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfa34b([0x65,0x79]))?JSON[_0xfa34b([0x70,0x61,0x72,0x73,0x65])](_0x51b3a6(_0x18bb15)):null;}function _0x51b3a6(_0x3ec5cf){return window[_0xfa34b([0x61,0x74,0x6f,0x62])](_0x3ec5cf[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfa34b([0x2b]))[_0xfa34b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfa34b([0x2f])));}function _0x216d8e(_0x5de421){let _0x304c61=0x1505;function _0x4358e0(_0x37739c){for(let _0x3874c6=0x0;_0x3874c6<_0x37739c[_0xfa34b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3874c6++){const _0x3d2944=_0x37739c[_0xfa34b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3874c6);_0x304c61=(_0x304c61<<0x5)+_0x304c61+_0x3d2944,_0x304c61&=_0x304c61;}}function _0x265898(_0x21d695){Array[_0xfa34b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21d695)?_0x21d695[_0xfa34b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x265898):_0x21d695&&typeof _0x21d695==_0xfa34b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfa34b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21d695)[_0xfa34b([0x73,0x6f,0x72,0x74])]()[_0xfa34b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d67e9,_0x26a970])=>{_0x4358e0(_0x4d67e9),_0x265898(_0x26a970);}):_0x4358e0(window[_0xfa34b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21d695));}return _0x265898(_0x5de421),_0x304c61>>>0x0;}function _0xeef1eb(_0xe9b749){return _0xe9b749[_0xfa34b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfa34b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfa34b([0x30]));}function _0x195f0f(_0x3d5583){return _0x3d5583[_0xfa34b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfa34b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfa34b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d6b36(_0x16f072){return _0x164b20[_0xfa34b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfa34b([0x68,0x61,0x73])](_0x16f072);}function _0x1f7928(_0x248a35){return _0x164b20[_0xfa34b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfa34b([0x67,0x65,0x74])](_0x248a35);}function _0x1fc58(){}function _0xfa34b(_0x529b3e){return _0x529b3e['map'](_0x5ebcda=>String['fromCharCode'](_0x5ebcda))['join']('');}_0x3d4a0a(await _0x439cc9());}(this);}['createRevision'](_0x55437f){const _0x4ab138=this['editor']['plugins']['get']('Users');return new h({'id':_0x55437f['id'],'name':_0x55437f['name'],'creator':_0x55437f['creatorId']?_0x4ab138['getUser'](_0x55437f['creatorId']):null,'diffData':_0x55437f['diffData']||_0x55437f['data'],'authors':_0x55437f['authorsIds']['map'](_0xff606e=>_0x4ab138['getUser'](_0xff606e)),'createdAt':new Date(_0x55437f['createdAt']),'attributes':_0x55437f['attributes'],'fromVersion':_0x55437f['fromVersion'],'toVersion':_0x55437f['toVersion']});}['addRevision'](_0x425703,_0xdbec82=0x0){this['_revisions']['add'](_0x425703,_0xdbec82);}['getRevision'](_0xa93fb2){return this['_revisions']['get'](_0xa93fb2);}['getRevisions'](_0xd6fcff={'toJSON':!0x1}){const _0x1deca8=Array['from'](this['_revisions']);return _0x1deca8['reverse'](),_0xd6fcff['toJSON']?_0x1deca8['map'](_0x4623d9=>_0x4623d9['toJSON']()):_0x1deca8;}['getIndex'](_0x282eb3){return this['_revisions']['getIndex'](_0x282eb3);}['getEarlierVisibleRevision'](_0x3fb908){const [,_0x26a414]=this['getRevisionsIterator'](_0x3fb908,{'direction':'earlier'});return _0x26a414;}['getLaterVisibleRevision'](_0x557200){const [,_0x3a99a9]=this['getRevisionsIterator'](_0x557200,{'direction':'later'});return _0x3a99a9;}['getRevisionsInDiff'](_0x3bc768){const _0x365fa5=[];for(const _0x3ae574 of this['getRevisionsIterator'](_0x3bc768['newRevisionId']))if(_0x365fa5['push'](_0x3ae574),_0x3ae574['id']===_0x3bc768['oldRevisionId'])break;return _0x365fa5;}*['getRevisionsIterator'](_0x12216a,{direction:_0x1cf095='earlier',filter:_0x6f1932=()=>!0x0}={}){const _0x5df7c1='earlier'===_0x1cf095?0x1:-0x1;let _0x2745c1=this['_revisions']['get'](_0x12216a),_0x3181aa=this['getIndex'](_0x2745c1);for(yield _0x2745c1;_0x2745c1;){if(_0x3181aa+=_0x5df7c1,_0x2745c1=this['getRevision'](_0x3181aa),!_0x2745c1)return;_0x6f1932(_0x2745c1)&&(yield _0x2745c1);}}}class V extends _0x425a55{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4f8a2e,'c'],[_0x124e09,'a'],[_0x415bf5,'e'],[_0x3ada0a,'r'],[_0x1fe111,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4f8a2e],['a',_0x124e09],['e',_0x415bf5],['r',_0x3ada0a],['u',_0x1fe111]]);async['loadRevisionData'](_0x30a12a,_0x31f5a7){if(_0x30a12a['diffData']||!_0x31f5a7)return;const _0x5cd82f=this['editor']['config']['get']('collaboration.channelId'),_0x19dde5=await _0x31f5a7['getRevision']({'channelId':_0x5cd82f,'revisionId':_0x30a12a['id']});_0x30a12a['diffData']=_0x19dde5['diffData'];}['getRevisionDocumentData'](_0x57ef61){const _0x2aedd8={};for(const _0x3157a2 in _0x57ef61['diffData']){if(_0x57ef61['diffData'][_0x3157a2]['attachChange']&&!_0x57ef61['diffData'][_0x3157a2]['attachChange']['isAttached'])continue;const _0x3b5635=this['_removeRevisionMarkers'](JSON['parse'](_0x57ef61['diffData'][_0x3157a2]['insertions'])),_0x3a143f=this['editor']['editing']['view']['document'],_0x5a4126=new _0x5e4916(_0x3a143f,_0x3b5635['map'](_0x387c20=>this['_getViewFromDiffObj'](_0x387c20,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2aedd8[_0x3157a2]=this['editor']['data']['processor']['toData'](_0x5a4126),this['editor']['data']['processor']['useFillerType']('default');}return _0x2aedd8;}['getRevisionRootsAttributes'](_0x56c655){const _0x148981={};for(const _0x2e30ca in _0x56c655['diffData'])_0x56c655['diffData'][_0x2e30ca]['attachChange']&&!_0x56c655['diffData'][_0x2e30ca]['attachChange']['isAttached']||(_0x148981[_0x2e30ca]=_0x56c655['diffData'][_0x2e30ca]['attributesAfter']||{});return _0x148981;}['_getTypeCharForViewElement'](_0x5d3fb0){return this['_viewClassToTypeChar']['get'](_0x5d3fb0['constructor']);}['_getViewFromDiffObj'](_0x2ef952,_0x4b3b64){const _0xa71fb7=this['editor']['editing']['view']['document'];if('string'==typeof _0x2ef952)return new _0x20f639(_0xa71fb7,_0x2ef952);{let _0x2b0506,_0x138610;_0x138610='u'==_0x2ef952['type']||'r'==_0x2ef952['type']?[]:_0x2ef952['children']['map'](_0x2d46cd=>this['_getViewFromDiffObj'](_0x2d46cd,_0x4b3b64));const _0x536be6=this['_typeCharToViewClass']['get'](_0x2ef952['type'])||_0x55adab,_0x524b62=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2b0506=new _0x536be6(_0xa71fb7,_0x2ef952['name'],_0x2ef952['attributes'],_0x138610),'u'==_0x2ef952['type']&&_0x2ef952['children'][0x0]){const _0x38d986=_0x2ef952['children'][0x0];if(_0x2b0506['render']=function(_0x519352){const _0x421b86=_0x519352['createElement']('div');return _0x421b86['innerHTML']=_0x38d986,_0x421b86['childNodes'][0x0];},_0x4b3b64){const _0x1c3738=new _0x5e4916(_0xa71fb7);_0x1c3738['_appendChild'](_0x2b0506);const _0x1733ca=Array['from'](_0x524b62['viewChildrenToDom'](_0x1c3738,{'bind':!0x1})),_0x294fef=_0x524b62['domDocument']['createElement']('div');_0x294fef['append'](..._0x1733ca),_0x2b0506=Array['from'](_0x524b62['domChildrenToView'](_0x294fef))[0x0];}}else{if('r'==_0x2ef952['type']&&_0x2ef952['children'][0x0]){const _0x58dae5=_0x2ef952['children'][0x0];if(_0x2b0506['render']=function(_0x511c54){_0x511c54['innerHTML']=_0x58dae5;},_0x4b3b64){const _0x4c4b4b=new _0x5e4916(_0xa71fb7);_0x4c4b4b['_appendChild'](_0x2b0506);const _0x59f48a=Array['from'](_0x524b62['viewChildrenToDom'](_0x4c4b4b,{'bind':!0x1})),_0x2bcfc0=_0x524b62['domDocument']['createElement']('div');_0x2bcfc0['append'](..._0x59f48a);const _0x489f83=Array['from'](_0x524b62['domChildrenToView'](_0x2bcfc0));_0x489f83['length']>0x1?_0x2b0506['_appendChild'](_0x489f83):_0x2b0506=_0x489f83[0x0];}}}if(_0x2ef952['customProperties']){for(const [_0x3d2219,_0x3b03aa]of _0x2ef952['customProperties'])_0x2b0506['_setCustomProperty'](_0x3d2219,_0x3b03aa);}const _0x13c77d=void 0x0===_0x2ef952['fillerOffset']?null:_0x2ef952['fillerOffset'];return null!==_0x13c77d&&(_0x2b0506['getFillerOffset']=()=>_0x13c77d),_0x2b0506;}}['_makeModelFromViewString'](_0x4d76a9){const _0xe01218=JSON['parse'](_0x4d76a9),_0x21f8fb=this['editor']['editing']['view']['document'],_0x41d49d=new _0x5e4916(_0x21f8fb,_0xe01218['map'](_0x1fb520=>this['_getViewFromDiffObj'](_0x1fb520,!0x0)));return this['editor']['data']['toModel'](_0x41d49d);}['_removeRevisionMarkers'](_0x188966){return(_0x188966=_0x188966['filter'](_0x48c061=>!_0x48c061['name']||'revision-start'!==_0x48c061['name']&&'revision-end'!==_0x48c061['name']))['forEach'](_0x12ddfd=>{'string'!=typeof _0x12ddfd&&(_0x12ddfd['children']=this['_removeRevisionMarkers'](_0x12ddfd['children']),_0x12ddfd['attributes']=_0x12ddfd['attributes']['filter'](_0x2d3ce9=>!_0x2d3ce9[0x0]['startsWith']('data-revision-')));}),_0x188966;}}function g(_0x5d270c,_0x2bb735,_0x50c4de){const t=_0x5d270c['t'];switch(_0x2bb735){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'},_0x50c4de);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x50c4de);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x425a55{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5701d4,I,V,_0x526cfd];}constructor(_0x26d491){super(_0x26d491),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x381c9c=_0x450571();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x381c9c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x75944c=this['repository']['getRevision'](0x0),_0x5b3e15=_0x75944c&&null===_0x75944c['creator']?_0x75944c:null;if(this['_continueCurrentRevision']=!!_0x5b3e15&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1abb53=this['_source']['getCurrentRevisionId'](),_0x1179fe=this['repository']['getRevision'](_0x1abb53);if(_0x1179fe)this['_startingVersion']=_0x1179fe['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5d2c96=this['_source']['history']['_operations']['find'](_0xbd229e=>!_0xbd229e['_isInit']),_0x40a94f=_0x5d2c96?_0x5d2c96['baseVersion']:this['_source']['history']['version'];_0x75944c?(_0x75944c['toVersion']<_0x40a94f&&_0x75944c['_update']({'toVersion':_0x40a94f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id'],this['_startingVersion']=_0x5b3e15['fromVersion']):(this['_startingVersion']=_0x75944c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x40a94f,this['_continueCurrentRevision']=!0x1);}}else _0x5b3e15&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b3e15['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b3e15['fromVersion']===_0x5b3e15['toVersion']?(0x0!==_0x5b3e15['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b3e15['id'],this['_startingVersion']=_0x5b3e15['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',_0x58aeff=>!_0x58aeff),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x279a64=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ac97c;for(const _0x1b3819 in _0x279a64){const _0x34c37a=_0x1b3819,_0x4848c9=_0x279a64[_0x34c37a];if('revisionHistoryLicenseKeyValid'==_0x4848c9||'revisionHistoryLicenseKeyInvalid'==_0x4848c9||'revisionHistoryLicenseKeyExpired'==_0x4848c9||'revisionHistoryLicenseKeyDomainLimit'==_0x4848c9||'revisionHistoryLicenseKeyNotAllowed'==_0x4848c9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4848c9||'revisionHistoryLicenseKeyTrialLimit'==_0x4848c9||'revisionHistoryLicenseKeyUsageLimit'==_0x4848c9){delete _0x279a64[_0x34c37a],_0x1ac97c=_0x4848c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1ac97c&&_0x279a64['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1ac97c&&_0x279a64['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1ac97c&&_0x279a64['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1ac97c&&_0x279a64['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x50a3fc=this['repository']['getRevision'](0x0),_0x238dc6=await this['getRevisionDocumentData'](_0x50a3fc),_0x336fee=await this['getRevisionRootsAttributes'](_0x50a3fc);this['_replaceEditorDataWithRevisionData'](_0x238dc6,_0x336fee);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5c8dc5){this['_source']=_0x5c8dc5;}async['update'](){const _0xecb04b=await this['_source']['getLatestVersion']();if(_0xecb04b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5c9cc0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xecb04b});_0x5c9cc0['authors']=_0x5c9cc0['authorsIds']['map'](_0x96b72=>this['editor']['plugins']['get']('Users')['getUser'](_0x96b72)),this['currentRevision']['_update'](_0x5c9cc0);}}async['saveRevision'](_0x30a6b5={},_0x49cd9c=null){const _0xaaa8c6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x49cd9c>this['currentRevision']['toVersion']&&(_0x49cd9c=null),null===_0x49cd9c&&(_0x49cd9c=await this['_source']['getLatestVersion']());const _0x300cfc=this['_getFromVersion'](_0x49cd9c),_0x3a03ad=this['buildRevisionData']({'from':_0x300cfc,'to':_0x49cd9c});if(this['currentRevision']['toVersion']<_0x49cd9c){const _0x3364fe=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x49cd9c,'to':_0x49cd9c});_0x3364fe['authors']=[],_0x3364fe['authorsIds']=[],_0x3364fe['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3364fe,!0x0),delete _0x3364fe['authors'],_0xaaa8c6['push'](_0x3364fe);}_0x30a6b5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30a6b5['name']=_0x30a6b5['name']||null,_0x30a6b5['id']=_0x30a6b5['id']||_0x450571(),_0x30a6b5={..._0x30a6b5,..._0x3a03ad};const _0x2064dd=this['addRevisionData'](_0x30a6b5);_0xaaa8c6['push'](_0x30a6b5);const _0x2fc72c=this['repository']['getIndex'](_0x2064dd);if(0x0!==_0x2fc72c){const _0x3e5cc4=this['repository']['getRevision'](_0x2fc72c-0x1);if(_0x3e5cc4['fromVersion']!==_0x49cd9c){const _0x1d6129=this['_revisionDataBuilder']['getData'](_0x49cd9c,_0x3e5cc4['toVersion']),_0x155b5d={'id':_0x3e5cc4['id'],'diffData':_0x1d6129['diffData'],'authorsIds':_0x1d6129['authorsIds'],'authors':_0x1d6129['authorsIds']['map'](_0x4119a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x4119a0)),'fromVersion':_0x49cd9c};_0x3e5cc4===this['currentRevision']&&(_0x155b5d['createdAt']=new Date(_0x30a6b5['createdAt']['getTime']()+0xa)),_0x3e5cc4['_update'](_0x155b5d,!0x0),delete _0x155b5d['authors'],_0xaaa8c6['push'](_0x155b5d);}}if(this['adapter']){for(const _0x3a5222 of _0xaaa8c6)this['_bufferUpdate'](_0x3a5222['id'],_0x3a5222,!0x0);this['sendBufferedUpdates']();}return _0x2064dd;}['addRevisionData'](_0x536f4d){const _0x4f68fb=this['repository']['createRevision'](_0x536f4d);return this['adapter']&&_0x4f68fb['on']('_update',(_0x15cea6,_0x1c2587,_0x5bcdf0)=>{_0x5bcdf0||(this['_bufferUpdate'](_0x1c2587['id'],_0x1c2587,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f68fb,this['_findInsertionIndex'](_0x4f68fb)),_0x4f68fb;}async['getRevisionDocumentData'](_0x298f09){return await this['_utils']['loadRevisionData'](_0x298f09,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x298f09);}async['getRevisionRootsAttributes'](_0x89e00c){return await this['_utils']['loadRevisionData'](_0x89e00c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x89e00c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x498fe9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x289875=0x0;_0x289875<_0x498fe9['length'];_0x289875++){const _0x2837e1=_0x498fe9[_0x289875];let _0xab859f=!0x1;for(const _0xec1e65 of Object['keys'](_0x2837e1))void 0x0===_0x2837e1[_0xec1e65]?delete _0x2837e1[_0xec1e65]:'id'!==_0xec1e65&&(_0xab859f=!0x0);_0xab859f||(_0x498fe9[_0x289875]=null);}if(_0x498fe9=_0x498fe9['filter'](_0x9c59c9=>null!==_0x9c59c9),!_0x498fe9['length'])return;for(let _0x416487=0x0;_0x416487<_0x498fe9['length'];_0x416487++){const _0x507f70=_0x498fe9[_0x416487];void 0x0!==_0x507f70['fromVersion']&&void 0x0===_0x507f70['toVersion']&&(_0x507f70['toVersion']=this['repository']['getRevision'](_0x507f70['id'])['toVersion']),void 0x0!==_0x507f70['toVersion']&&void 0x0===_0x507f70['fromVersion']&&(_0x507f70['fromVersion']=this['repository']['getRevision'](_0x507f70['id'])['fromVersion']);}const _0x274e00=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x498fe9,_0x274e00)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x44b0a6=>{if(_0x44b0a6){for(const _0x245642 of _0x44b0a6)this['setRevisionData']({'id':_0x245642['id'],'createdAt':_0x245642['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x15695e=null,from:_0x2616bd=null,to:_0x52d5eb=null}){_0x2616bd=null!==_0x2616bd?_0x2616bd:_0x15695e['fromVersion'],_0x52d5eb=null!==_0x52d5eb?_0x52d5eb:_0x15695e['toVersion'];const _0xb7619b=this['_revisionDataBuilder']['getData'](_0x2616bd,_0x52d5eb),_0xe23673={'diffData':_0xb7619b['diffData'],'authorsIds':_0xb7619b['authorsIds'],'fromVersion':_0x2616bd,'toVersion':_0x52d5eb};if(!_0x15695e||_0x52d5eb!==_0x15695e['toVersion']){const _0x33e950=_0x52d5eb-0x1,_0x3af729=this['_source']['history']['getOperation'](_0x33e950);_0xe23673['createdAt']=_0x3af729&&_0x3af729['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2616bd===this['_loadedStateData']['fromVersion']){for(const _0x147fce of this['_loadedStateData']['authors'])_0xe23673['authorsIds']['includes'](_0x147fce['id'])||_0xe23673['authorsIds']['push'](_0x147fce['id']);}return _0xe23673;}['_bufferUpdate'](_0x17dc3a,_0x113fdd,_0x260871){if(this['_bufferedUpdates']['has'](_0x17dc3a)){const _0x1cd509=this['_bufferedUpdates']['get'](_0x17dc3a);_0x113fdd=_0x260871?{..._0x1cd509,..._0x113fdd}:{..._0x113fdd,..._0x1cd509};}this['_bufferedUpdates']['set'](_0x17dc3a,_0x113fdd);}['setRevisionData'](_0x1c564f){const _0x46808a=this['repository']['getRevision'](_0x1c564f['id']);if(_0x1c564f['createdAt']&&(_0x1c564f['createdAt']=new Date(_0x1c564f['createdAt'])),_0x1c564f['authorsIds']){const _0x4fc316=this['editor']['plugins']['get']('Users');_0x1c564f['authors']=_0x1c564f['authorsIds']['map'](_0x34ec23=>_0x4fc316['getUser'](_0x34ec23));}_0x46808a['_update'](_0x1c564f,!0x0);}['_createInitialRevision'](_0x5be680){const _0x53afe7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x53afe7)this['_initialRevisionId']=_0x53afe7['id'];else{const _0x22c041=!this['editor']['model']['document']['roots']['find'](_0x539df0=>this['editor']['model']['hasContent'](_0x539df0)),_0xfa6ac3=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c9fd5=g(this['editor']['locale'],_0x22c041?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5be680,'to':_0x5be680,'id':this['_initialRevisionId'],'name':_0x2c9fd5,'creatorId':_0xfa6ac3});}}['_createCurrentRevision'](_0x576522){const _0x3efbc4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3efbc4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x576522,'to':_0x576522,'id':_0x3efbc4,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3a94d5,_0x357ccd){let _0x400ca3=this['editor']['config']['get']('initialData'),_0x1a8c17=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x400ca3){_0x400ca3={};for(const _0x49570a of this['editor']['model']['document']['getRootNames']())_0x400ca3[_0x49570a]='';}if('string'==typeof _0x400ca3&&(_0x400ca3={'main':_0x400ca3}),void 0x0===_0x1a8c17){_0x1a8c17={};for(const _0x1c42b7 of this['editor']['model']['document']['getRootNames']())_0x1a8c17[_0x1c42b7]={};}let _0x22ef77=!0x1;const _0x34d9ec=Object['keys'](_0x400ca3),_0x1d5f1b=Object['keys'](_0x3a94d5);for(const _0x109ed7 of _0x34d9ec){if(_0x400ca3[_0x109ed7]!==_0x3a94d5[_0x109ed7]&&''!==_0x400ca3[_0x109ed7]['trim']()){_0x22ef77=!0x0;break;}if(!_0x5c2d5e(_0x1a8c17[_0x109ed7],_0x357ccd[_0x109ed7])&&Object['keys'](_0x1a8c17[_0x109ed7])['length']>0x0){_0x22ef77=!0x0;break;}}_0x22ef77||(_0x22ef77=_0x1d5f1b['some'](_0x4b67e2=>!this['editor']['model']['document']['getRoot'](_0x4b67e2))),_0x22ef77&&_0x1f0366('editor-initial-data-replaced-with-revision-data',{'editorData':_0x400ca3,'editorRootsAttributes':_0x1a8c17,'revisionData':_0x3a94d5,'revisionRootsAttributes':_0x357ccd}),this['editor']['config']['set']('initialData',_0x3a94d5),this['editor']['config']['set']('rootsAttributes',_0x357ccd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3ff49b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3ff49b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x71cd52){const _0x21499a=this['repository']['getRevisions']();_0x21499a['reverse']();let _0x93c816=0x0;for(;_0x93c816<_0x21499a['length'];){const _0x47fe35=_0x21499a[_0x93c816];if(_0x47fe35===this['currentRevision']){_0x93c816++;continue;}if(_0x47fe35['id']===this['_initialRevisionId'])break;const _0x32e931=_0x71cd52['toVersion']-_0x47fe35['toVersion']||_0x71cd52['fromVersion']-_0x47fe35['fromVersion'];if(_0x32e931>0x0)break;if(_0x32e931<0x0)_0x93c816++;else{if(!_0x71cd52['creator']&&_0x47fe35['creator'])break;if(_0x47fe35['creator']||!_0x71cd52['creator']){if(_0x71cd52['createdAt']>_0x47fe35['createdAt'])break;_0x93c816++;}else _0x93c816++;}}return _0x93c816;}['_getFromVersion'](_0x535f57){const _0x5ed9dd=this['repository']['getRevisions']();_0x5ed9dd['reverse'](),_0x5ed9dd['shift']();const _0x57aaa2=_0x5ed9dd['find'](_0x3ce4d9=>_0x3ce4d9['toVersion']<=_0x535f57)['toVersion'];return _0x57aaa2<this['_startingVersion']?this['_startingVersion']:_0x57aaa2;}['_makeRevision']({name:_0x2ff61e,from:_0x4da597,to:_0x8f8a41,creatorId:_0x362e28,id:_0x1ed2fd}){const _0x3a9524=this['buildRevisionData']({'from':_0x4da597,'to':_0x8f8a41});_0x3a9524['name']=_0x2ff61e,_0x3a9524['creatorId']=_0x362e28,_0x3a9524['id']=_0x1ed2fd;const _0x1709d7=this['addRevisionData'](_0x3a9524);return this['adapter']&&this['_bufferUpdate'](_0x3a9524['id'],_0x3a9524,!0x0),_0x1709d7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x911a22){this['editor']=_0x911a22,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'](_0x569fc1){this['source']=_0x569fc1;const _0x3be25b=new Map(),_0x4e26b1=new Map(),_0x3a87b7=this['editor']['model']['document']['roots']['map'](_0x2a7509=>_0x2a7509['rootName']);for(const _0x5c97d3 of _0x3a87b7){const _0x1784a1=this['editor']['model']['document']['getRoot'](_0x5c97d3),_0x5662f9=N(_0x1784a1);_0x3be25b['set'](_0x5c97d3,_0x5662f9),_0x4e26b1['set'](_0x5c97d3,Object['fromEntries'](_0x1784a1['getAttributes']()));}const _0x43e4cf=Array['from'](this['editor']['model']['markers'])['map'](_0x53ad=>[_0x53ad['name'],_0x53ad['getRange']()]),_0x5e9a43=this['source']['version'];this['_saveMetaData'](_0x5e9a43,_0x3be25b,_0x43e4cf,_0x4e26b1),this['_startingRevisionId']=this['_revisionId'];const _0x1c6a2f=new Map(),_0x52de10=new Map();for(const _0x6691b6 of _0x3a87b7){const _0xc6a66e=P(_0x6691b6);_0x1c6a2f['set'](_0x6691b6,_0xc6a66e),_0x52de10['set'](_0x6691b6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1c6a2f,[],_0x52de10);}['getData'](_0x4bc8fb,_0xffa59b){if(this['_lastFrom']===_0x4bc8fb&&this['_lastTo']<=_0xffa59b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xffa59b,!0x0);else{if(!this['_savedMetaData']['has'](_0x4bc8fb)){const _0x230f0f=this['_getPreviousFrom'](_0x4bc8fb);this['_calculateMetaData'](_0x230f0f,_0x4bc8fb,!0x1);}this['_calculateMetaData'](_0x4bc8fb,_0xffa59b,!0x0);}return this['_lastFrom']=_0x4bc8fb,this['_lastTo']=_0xffa59b,this['_getState']();}['loadState'](_0x10a227){const _0x57f16c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x10a227['fromVersion'],this['_lastTo']=_0x10a227['toVersion'];for(const _0x31cc21 in _0x10a227['diffData']){const _0x31260d=_0x10a227['diffData'][_0x31cc21]['attachChange'],_0x15c9eb=_0x385a22(_0x10a227['diffData'][_0x31cc21]['attributesBefore'])||{},_0x2e30ba=_0x57f16c['_makeModelFromViewString'](_0x10a227['diffData'][_0x31cc21]['deletions']);_0x2e30ba['rootName']=_0x31cc21,_0x2e30ba['_isAttached']=!_0x31260d||!_0x31260d['isAttached'],_0x2e30ba['isAttached']=()=>_0x2e30ba['_isAttached'],this['_baseRoots']['set'](_0x31cc21,_0x2e30ba),this['_baseRootsAttributes']['set'](_0x31cc21,_0x15c9eb),_0x31260d&&this['_touchedRoots']['set'](_0x31cc21,_0x31260d);const _0x57ad22=this['_makeIdsRoot'](_0x2e30ba);this['_baseIdsRoots']['set'](_0x31cc21,_0x57ad22);for(const [_0x3f1c41,_0x126c25]of _0x2e30ba['markers']){if(!_0x3f1c41['startsWith']('revision:'))continue;const _0x24be24=_0x3f1c41['split'](':')[0x2];for(const _0x2454fd of _0x126c25['getWalker']({'singleCharacters':!0x0})){const _0x1ca022=this['_getVidAttributeName'](_0x2454fd),_0xabee24='elementEnd'==_0x2454fd['type']?_0x2454fd['previousPosition']['path']['slice'](0x0,-0x1):_0x2454fd['previousPosition']['path'],_0x47db88=_0x57ad22['getNodeByPath'](_0xabee24)['getAttribute'](_0x1ca022);this['_touched']['set'](_0x47db88,{'userId':_0x24be24});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4effc8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43a0e1=>!this['_touched']['has'](_0x43a0e1));let _0x2766bc=0x0;const _0x1e5879=new Map();for(const _0x1825ae in _0x10a227['diffData']){const _0x3278fe=_0x10a227['diffData'][_0x1825ae]['attachChange'],_0x3e73d7=_0x385a22(_0x10a227['diffData'][_0x1825ae]['attributesAfter'])||{},_0x4ed1db=_0x57f16c['_makeModelFromViewString'](_0x10a227['diffData'][_0x1825ae]['insertions']);_0x4ed1db['rootName']=_0x1825ae,_0x4ed1db['_isAttached']=!_0x3278fe||_0x3278fe['isAttached'],_0x4ed1db['isAttached']=()=>_0x4ed1db['_isAttached'],this['_diffRoots']['set'](_0x1825ae,_0x4ed1db),this['_diffRootsAttributes']['set'](_0x1825ae,_0x3e73d7);const _0x4b3488=this['_makeIdsRoot'](_0x4ed1db,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1825ae,_0x4b3488),_0x1e5879['set'](_0x1825ae,_0x4ed1db['isAttached']()?_0x3e73d7:{});for(const [_0x4aef41,_0x38ce84]of _0x4ed1db['markers']){if(!_0x4aef41['startsWith']('revision:'))continue;const _0x199414=_0x4aef41['split'](':')[0x2];for(const _0x5bfc40 of _0x38ce84['getWalker']({'singleCharacters':!0x0})){const _0x5dedc5=this['_getVidAttributeName'](_0x5bfc40),_0x114932=this['_revisionId']++,_0x3883eb='elementEnd'==_0x5bfc40['type']?_0x5bfc40['previousPosition']['path']['slice'](0x0,-0x1):_0x5bfc40['previousPosition']['path'];_0x4b3488['getNodeByPath'](_0x3883eb)['_setAttribute'](_0x5dedc5,_0x114932),this['_touched']['set'](_0x114932,{'userId':_0x199414});}}for(const _0x322af1 of this['editor']['model']['createRangeIn'](_0x4ed1db)['getWalker']({'singleCharacters':!0x0})){const _0x56a079=this['_getVidAttributeName'](_0x322af1),_0x24fe70='elementEnd'==_0x322af1['type']?_0x322af1['previousPosition']['path']['slice'](0x0,-0x1):_0x322af1['previousPosition']['path'],_0x47f9c5=_0x4b3488['getNodeByPath'](_0x24fe70);_0x47f9c5['getAttribute'](_0x56a079)>0x0||_0x47f9c5['_setAttribute'](_0x56a079,_0x4effc8[_0x2766bc++]);}for(const [_0x269900,_0x191f2a]of _0x4ed1db['markers'])_0x269900['startsWith']('revision:')||this['_markers']['set'](_0x269900,_0x191f2a);}const _0x3609d4=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3609d4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3609d4,0x1));const _0x16e1f2=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x16e1f2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x16e1f2,0x1));const _0x4bca08=Array['from'](this['_diffRoots'])['map'](([_0x3be1c9,_0x31ee29])=>[_0x3be1c9,N(_0x31ee29)]);this['_saveMetaData'](this['_lastTo'],_0x4bca08,this['_markers'],_0x1e5879);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3b3c88,_0x4ee8e0,_0x2b9525,_0x2ac821){const _0x1e8504=new Map(_0x4ee8e0),_0x6b3a8=new Map(_0x385a22(_0x2ac821)),_0x2d0ba6=new Map();for(const [_0x46d76f,_0x815891]of _0x2b9525)_0x2d0ba6['set'](_0x46d76f,{'start':_0x815891['start']['clone'](),'end':_0x815891['end']['clone'](),'rootName':_0x815891['root']['rootName']});this['_savedMetaData']['set'](_0x3b3c88,{'roots':_0x1e8504,'markers':_0x2d0ba6,'rootsAttributes':_0x6b3a8});}['_removeMetaData'](_0x3a2015){this['_savedMetaData']['delete'](_0x3a2015);}['_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'](_0x572453,_0x348582=null){let _0x308e55=null;_0x572453['is']('documentFragment')||(_0x308e55=new ut(_0x572453['name'],{'vid_start':null===_0x348582?this['_revisionId']++:_0x348582++}));const _0x215405=[];for(const _0x342dc9 of _0x572453['getChildren']())if(_0x342dc9['is']('element')){_0x215405['push'](this['_makeIdsRoot'](_0x342dc9,_0x348582));const _0x254714=_0x215405[_0x215405['length']-0x1];null!==_0x348582&&(_0x348582=_0x254714['is']('element','$text')?_0x254714['getAttribute']('vid')+0x1:_0x254714['getAttribute']('vid_end')+0x1);}else{for(let _0xb9e1b8=0x0;_0xb9e1b8<_0x342dc9['offsetSize'];_0xb9e1b8++)_0x215405['push'](new ut('$text',{'vid':null===_0x348582?this['_revisionId']++:_0x348582++}));}if(_0x572453['is']('documentFragment')){const _0x52c483=P(_0x572453['rootName']);return _0x52c483['_insertChild'](0x0,_0x215405),_0x52c483;}return _0x308e55['_setAttribute']('vid_end',null===_0x348582?this['_revisionId']++:_0x348582++),_0x308e55['_insertChild'](0x0,_0x215405),_0x308e55;}['_calculateMetaData'](_0x389833,_0x49b152,_0x19e6de){this['_reset']();const {roots:_0x2e8d6d,markers:_0x1d47b2,rootsAttributes:_0xec302}=this['_savedMetaData']['get'](_0x389833);this['_baseRoots']=new Map(_0x2e8d6d),this['_baseRootsAttributes']=new Map(_0x385a22(_0xec302));for(const [_0x2a3f8b,_0xb69264]of this['_baseRoots'])if('$graveyard'!==_0x2a3f8b&&(this['_diffRoots']['set'](_0x2a3f8b,N(_0xb69264)),this['_diffRootsAttributes']=new Map(_0x385a22(_0xec302)),_0x19e6de)){const _0x59a8fc=this['_revisionId'];this['_idsRoots']['set'](_0x2a3f8b,this['_makeIdsRoot'](_0xb69264)),this['_baseIdsRoots']['set'](_0x2a3f8b,this['_makeIdsRoot'](_0xb69264,_0x59a8fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x19e6de&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10a93b,_0x5154be]of _0x1d47b2){const _0x2a20ad=this['_baseRoots']['get'](_0x5154be['rootName']),_0x5e9ab3=this['_diffRoots']['get'](_0x5154be['rootName']),_0x153844=new ft(this['_fixPosition'](_0x5154be['start'],_0x2a20ad),this['_fixPosition'](_0x5154be['end'],_0x2a20ad)),_0x1fdb6b=this['_fixRange'](_0x153844,_0x5e9ab3);_0x2a20ad['markers']['set'](_0x10a93b,_0x153844),this['_markers']['set'](_0x10a93b,_0x1fdb6b);}this['_applyOperations'](_0x389833,_0x49b152,_0x19e6de);}['_applyOperations'](_0x4918b4,_0x7ca397,_0x51fc0d){for(const _0x18d09e of this['source']['getOperations'](_0x4918b4,_0x7ca397))this['_handleOperation'](_0x18d09e,_0x51fc0d);for(const _0x32536f of this['_diffRoots']['values']())_0x32536f['markers']['clear']();for(const [_0x172647,_0x20e5af]of this['_markers']){this['_diffRoots']['get'](_0x20e5af['root']['rootName'])['markers']['set'](_0x172647,_0x20e5af['clone']());}const _0x39ed9b=new Map(),_0x45765f=new Map();for(const [_0x50fc9d,_0x463e8c]of this['_diffRoots'])_0x39ed9b['set'](_0x50fc9d,N(_0x463e8c)),_0x45765f['set'](_0x50fc9d,this['_diffRootsAttributes']['get'](_0x50fc9d));this['_saveMetaData'](_0x7ca397,_0x39ed9b,this['_markers'],_0x45765f);}['_getPreviousFrom'](_0x554e85){const _0x527a08=Array['from'](this['_savedMetaData']['keys']());_0x527a08['sort']((_0x2ee0ca,_0x111ed5)=>_0x2ee0ca-_0x111ed5),_0x527a08['reverse']();for(const _0x1d053d of _0x527a08)if(_0x1d053d<_0x554e85)return _0x1d053d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x374497,_0x950d46){const _0x5cbb01=Array['from'](_0x950d46['markers'])['map'](([_0x4b62ea,_0x54bdc6])=>[_0x4b62ea,this['_fixRange'](_0x54bdc6,_0x374497)]);_0x374497['markers']=new Map(_0x5cbb01);}['_transformMarkers'](_0xbdffba){for(const _0x4a73f3 of this['_markers']['values']()){const _0x341548=_0x4a73f3['getTransformedByOperation'](_0xbdffba),_0x137f02=ft['_createFromRanges'](_0x341548);_0x4a73f3['start']=_0x137f02['start'],_0x4a73f3['end']=_0x137f02['end'];}}['_handleOperation'](_0x542118,_0x3aa8b0){if('addRoot'!=_0x542118['type']&&'detachRoot'!=_0x542118['type']){if('insert'==_0x542118['type']){const _0x15df4a=_0x542118['position']['root']['rootName'];this['_diffRoots']['has'](_0x15df4a)||(this['_diffRoots']['set'](_0x15df4a,P(_0x15df4a,!0x0)),this['_diffRootsAttributes']['set'](_0x15df4a,{}),_0x3aa8b0&&this['_idsRoots']['set'](_0x15df4a,P(_0x15df4a,!0x0)));}else{if('addRootAttribute'==_0x542118['type']||'removeRootAttribute'==_0x542118['type']||'changeRootAttribute'==_0x542118['type'])return void this['_handleRootAttributeOperation'](_0x542118);'marker'==_0x542118['type']&&this['_handleMarkerOperation'](_0x542118);}if('marker'!==_0x542118['type']){const _0x523531=this['_cloneOperation'](_0x542118,this['_diffRoots']);_0x523531['_execute'](),this['_transformMarkers'](_0x523531);}if(_0x3aa8b0)switch(_0x542118['type']){case'insert':this['_handleInsertOperation'](_0x542118);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x542118);break;case'merge':this['_handleMergeOperation'](_0x542118);break;case'split':this['_handleSplitOperation'](_0x542118);}}else this['_handleRootOperation'](_0x542118,_0x3aa8b0);}['_cloneOperation'](_0x5e9f74,_0x2c8180){const _0x34bfb6=_0x5e9f74['clone']();return _0x34bfb6['_authorId']=_0x5e9f74['_authorId'],this['_fixOperation'](_0x34bfb6,_0x2c8180),_0x34bfb6;}['_getBaseVids'](_0x50fbf7){return _0x50fbf7['map'](_0xb26236=>{const _0x4cbfb1=this['_getVidAttributeName'](_0xb26236);return Number(_0xb26236['item']['getAttribute'](_0x4cbfb1));});}['_generateTape'](_0x54cba9,_0x52977c){if(_0x54cba9['is']('element','$text'))_0x52977c['push']({'item':_0x54cba9,'type':'text'});else{_0x54cba9['is']('element')&&_0x52977c['push']({'item':_0x54cba9,'type':'elementStart'});for(const _0x33b6fd of _0x54cba9['getChildren']())this['_generateTape'](_0x33b6fd,_0x52977c);_0x54cba9['is']('element')&&_0x52977c['push']({'item':_0x54cba9,'type':'elementEnd'});}return _0x52977c;}['_getState'](){const _0x199b2d=new Map(this['_touched']),_0x28e88e=new Map(_0x199b2d),_0x594056=new Map(),_0x35803f={'insertions':{},'deletions':{}},_0x1d1c4d={'insertions':{},'deletions':{}},_0x50ab1b=new Map(),_0x5ddef7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ddef7['delete']('$graveyard');for(const _0x44e1f3 of _0x5ddef7){const _0x3931d4=this['_diffRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1),_0x275905=this['_baseRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1);_0x3931d4['isAttached']()||_0x275905['isAttached']()?(_0x35803f['insertions'][_0x44e1f3]=N(_0x3931d4),_0x35803f['deletions'][_0x44e1f3]=N(_0x275905),this['_copyMarkers'](_0x35803f['deletions'][_0x44e1f3],_0x275905),this['_copyMarkers'](_0x35803f['insertions'][_0x44e1f3],_0x3931d4),_0x1d1c4d['insertions'][_0x44e1f3]=this['_generateTape'](this['_idsRoots']['get'](_0x44e1f3),[]),_0x1d1c4d['deletions'][_0x44e1f3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x44e1f3)||P(_0x44e1f3,!0x1),[])):_0x5ddef7['delete'](_0x44e1f3);}for(const _0x450a9f of _0x5ddef7){const _0x52096b=_0x1d1c4d['insertions'][_0x450a9f];for(const _0x304eb7 of _0x52096b){const _0x63d9c8=this['_getVidAttributeName'](_0x304eb7),_0x3bbfc2=_0x304eb7['item']['getAttribute'](_0x63d9c8);_0x28e88e['delete'](_0x3bbfc2),_0x3bbfc2>=this['_startingRevisionId']&&_0x594056['set'](_0x3bbfc2,_0x199b2d['get'](_0x3bbfc2));}}for(const _0x2a1803 of _0x5ddef7){const _0x363da8=_0x1d1c4d['insertions'][_0x2a1803],_0x3e3721=this['_getBaseVids'](_0x1d1c4d['deletions'][_0x2a1803]);let _0x78a1ef=0x0;for(const _0x14f2b8 of _0x363da8){const _0x30db51=this['_getVidAttributeName'](_0x14f2b8),_0x47c766=_0x14f2b8['item']['getAttribute'](_0x30db51);if(!_0x594056['has'](_0x47c766)&&!_0x50ab1b['has'](_0x47c766)){if(_0x28e88e['has'](_0x47c766))_0x78a1ef++;else{if(_0x47c766!=_0x3e3721[_0x78a1ef]){const _0x259c61=_0x199b2d['get'](_0x47c766)||_0x199b2d['get'](_0x3e3721[_0x78a1ef]);for(;_0x47c766!=_0x3e3721[_0x78a1ef];)_0x28e88e['has'](_0x3e3721[_0x78a1ef])||(_0x50ab1b['set'](_0x3e3721[_0x78a1ef],_0x259c61),_0x199b2d['set'](_0x3e3721[_0x78a1ef],_0x259c61)),_0x78a1ef++;}_0x78a1ef++;}}}}for(const _0x17ab78 of _0x5ddef7){const _0x20dc6d=_0x1d1c4d['insertions'][_0x17ab78];for(const _0x1a99a0 of _0x20dc6d){const _0x28bdf9=this['_getVidAttributeName'](_0x1a99a0),_0x451514=_0x1a99a0['item']['getAttribute'](_0x28bdf9);if(_0x50ab1b['has'](_0x451514)){const _0xa5028b=_0x50ab1b['get'](_0x451514);_0x28e88e['has'](_0x451514)||_0x28e88e['set'](_0x451514,{..._0xa5028b}),_0x594056['set'](_0x451514,{..._0xa5028b});}}}for(const _0x1403c0 of _0x28e88e['keys']())_0x1403c0>=this['_startingRevisionId']&&_0x28e88e['delete'](_0x1403c0);const _0x190f06=new Map();for(const _0x28e83b of _0x5ddef7){let _0x166b23=_0x1d1c4d['insertions'][_0x28e83b];for(const _0x46313b of _0x166b23)if(_0x46313b['item']['is']('element','tableCell')){const _0x21d364=this['_getVidAttributeName'](_0x46313b),_0x26edce=_0x46313b['item']['getAttribute'](_0x21d364);if(_0x594056['has'](_0x26edce)){const _0x52c848=_0x46313b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3705a5=_0x190f06['get'](_0x52c848)||new Set();_0x3705a5['add'](_0x594056['get'](_0x26edce)['userId']),_0x190f06['set'](_0x52c848,_0x3705a5);}}_0x166b23=_0x1d1c4d['deletions'][_0x28e83b];for(const _0x5de779 of _0x166b23)if(_0x5de779['item']['is']('element','tableCell')){const _0x1572d8=this['_getVidAttributeName'](_0x5de779),_0x42d868=_0x5de779['item']['getAttribute'](_0x1572d8);if(_0x28e88e['has'](_0x42d868)){const _0x228972=_0x5de779['item']['parent']['parent']['getAttribute']('vid_start'),_0x518f2a=_0x190f06['get'](_0x228972)||new Set();_0x518f2a['add'](_0x28e88e['get'](_0x42d868)['userId']),_0x190f06['set'](_0x228972,_0x518f2a);}}for(const _0x11631a of _0x190f06['keys']())(_0x594056['has'](_0x11631a)||_0x28e88e['has'](_0x11631a))&&_0x190f06['delete'](_0x11631a);}for(const _0x567e7a of _0x5ddef7){const _0x16895f=_0x1d1c4d['insertions'][_0x567e7a];let _0x53ae81=null,_0x2d2359=null;for(const _0x1aa762 of _0x16895f){const _0x3fbcf1=this['_getVidAttributeName'](_0x1aa762),_0x51ce55=_0x1aa762['item']['getAttribute'](_0x3fbcf1),_0xb84a09=_0x190f06['get'](_0x51ce55);_0xb84a09&&'elementStart'==_0x1aa762['type']&&(_0x53ae81=Array['from'](_0xb84a09)[0x0],_0x2d2359=_0x1aa762['item']['getAttribute']('vid_end')),_0x53ae81&&(_0x28e88e['set'](_0x51ce55,{'userId':_0x53ae81}),_0x594056['set'](_0x51ce55,{'userId':_0x53ae81})),_0x51ce55==_0x2d2359&&(_0x53ae81=null,_0x2d2359=null);}}const _0x4b8cd7={},_0x2ae34d=new Set();for(const _0x294300 of _0x5ddef7){const _0x3cb8c6=_0x35803f['deletions'][_0x294300],_0x52c089=_0x35803f['insertions'][_0x294300];for(const {userId:_0x1165e7}of this['_touchedMarkers']['values']())null!==_0x1165e7&&_0x2ae34d['add'](_0x1165e7);for(const {userId:_0x37a1df}of this['_touchedRoots']['values']())null!==_0x37a1df&&_0x2ae34d['add'](_0x37a1df);this['_markChanges'](_0x52c089,_0x1d1c4d['insertions'][_0x294300],_0x594056,'insertion',_0x2ae34d),this['_markChanges'](_0x3cb8c6,_0x1d1c4d['deletions'][_0x294300],_0x28e88e,'deletion',_0x2ae34d),_0x4b8cd7[_0x294300]={'insertions':this['_prepareViewToSave'](_0x52c089),'deletions':this['_prepareViewToSave'](_0x3cb8c6),'attachChange':this['_touchedRoots']['get'](_0x294300)||null,'attributesBefore':_0x385a22(this['_baseRootsAttributes']['get'](_0x294300))||{},'attributesAfter':_0x385a22(this['_diffRootsAttributes']['get'](_0x294300))};}return{'diffData':_0x4b8cd7,'authorsIds':Array['from'](_0x2ae34d)};}['_processRootBeforeSave'](_0x5f17b0){for(const [,_0x1b8546]of _0x5f17b0['markers']){const _0x134d33=_0x1b8546['start']['getAncestors']()['filter'](_0xa49c10=>'tableCell'==_0xa49c10['name']);for(const _0x23d49e of _0x134d33)0x1==_0x23d49e['childCount']&&_0x23d49e['getChild'](0x0)['is']('element','paragraph')&&_0x23d49e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x217083){this['_processRootBeforeSave'](_0x217083);const _0xafb4dc=this['editor']['data']['toView'](_0x217083,{}),_0x5ad2e2=Array['from'](_0xafb4dc['getChildren']())['map'](_0x4f86b4=>this['_getViewJson'](_0x4f86b4));return JSON['stringify'](_0x5ad2e2);}['_getViewJson'](_0x4249f8){if(_0x4249f8['is']('$text'))return _0x4249f8['data'];{const _0x1ef59d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2f12e8=_0x4249f8,_0x163688=this['editor']['data']['htmlProcessor']['domConverter'],_0x22a762={'type':_0x1ef59d['_getTypeCharForViewElement'](_0x2f12e8),'name':_0x2f12e8['name'],'attributes':Array['from'](_0x2f12e8['getAttributes']()),'children':Array['from'](_0x2f12e8['getChildren']())['map'](_0x5c8225=>this['_getViewJson'](_0x5c8225))};if(_0x4249f8['is']('uiElement')&&'$comment'!=_0x4249f8['name']){const _0xa789dd=_0x4249f8['render'](_0x163688['domDocument'],_0x163688);_0x22a762['children']['push'](_0xa789dd['outerHTML']);}else{if(_0x4249f8['is']('rawElement')){const _0x45b027=_0x163688['domDocument']['createElement'](_0x2f12e8['name']);_0x4249f8['render'](_0x45b027,_0x163688),_0x22a762['children']['push'](_0x45b027['innerHTML']);}}const _0xdddbbd=Array['from'](_0x2f12e8['getCustomProperties']());_0xdddbbd['length']>0x0&&(_0x22a762['customProperties']=_0xdddbbd);const _0x575b5c=_0x2f12e8['getFillerOffset']();return null!==_0x575b5c&&(_0x22a762['fillerOffset']=_0x575b5c),_0x22a762;}}['_markChanges'](_0xd2b391,_0x25a9a0,_0x41323e,_0x12c694,_0x2bdca5){let _0x10af79=null,_0x279a91=null,_0x527e7c=0x0;const _0xc3323=this['editor']['model'];for(let _0x193680=0x0;_0x193680<_0x25a9a0['length'];_0x193680++){const _0x1923d3=this['_getVidAttributeName'](_0x25a9a0[_0x193680]),_0x1b9211=_0x25a9a0[_0x193680]['item']['getAttribute'](_0x1923d3),_0x2920fa=_0x41323e['get'](_0x1b9211),_0x1149ac=_0x193680==_0x25a9a0['length']-0x1;(!_0x10af79&&_0x2920fa&&(_0x10af79=_0x2920fa,_0x279a91=_0x25a9a0[_0x193680]),_0x10af79&&(!_0x2920fa||_0x2920fa['userId']!=_0x10af79['userId']))&&(_0x353404(_0x2920fa,F(_0x279a91,_0xd2b391,_0xc3323),F(_0x25a9a0[_0x193680],_0xd2b391,_0xc3323)),_0x10af79=_0x2920fa||null,_0x279a91=_0x2920fa?_0x25a9a0[_0x193680]:null),_0x10af79&&_0x1149ac&&_0x353404(_0x2920fa,F(_0x279a91,_0xd2b391,_0xc3323),B(_0x25a9a0[_0x193680],_0xd2b391,_0xc3323));}function _0x353404(_0x3670bd,_0x3cdbc1,_0x448437){const _0x11f796=_0x10af79['userId'],_0x3df7a2='revision:'+_0x12c694+':'+_0x11f796+':'+_0x527e7c++,_0x3d6346=_0xc3323['createRange'](_0x3cdbc1,_0x448437);_0xd2b391['markers']['set'](_0x3df7a2,_0x3d6346),null!==_0x11f796&&_0x2bdca5['add'](_0x11f796);}}['_getVidAttributeName'](_0x526766){switch(_0x526766['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x198218,_0x248b21){_0x198218['baseVersion']=null;for(const _0x21025f in _0x198218){const _0x43cbf4=_0x198218[_0x21025f];if(_0x43cbf4 instanceof vt){const _0x557ff5=_0x248b21['get'](_0x43cbf4['root']['rootName']);_0x198218[_0x21025f]=this['_fixPosition'](_0x43cbf4,_0x557ff5);}if(_0x43cbf4 instanceof ft){const _0x116ca9=_0x248b21['get'](_0x43cbf4['root']['rootName']);_0x198218[_0x21025f]=this['_fixRange'](_0x43cbf4,_0x116ca9);}'root'===_0x21025f&&(_0x198218['root']=_0x248b21['get'](_0x198218['root']['rootName']));}}['_fixRange'](_0x2a55c9,_0x3760f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2a55c9['start'],_0x3760f2),this['_fixPosition'](_0x2a55c9['end'],_0x3760f2));}['_fixPosition'](_0x3dc565,_0x5d7c93){return this['editor']['model']['createPositionFromPath'](_0x5d7c93,_0x3dc565['path'],_0x3dc565['stickiness']);}['_handleInsertOperation'](_0x228a6b){const _0xfb0ae5=this['_idsRoots']['get'](_0x228a6b['position']['root']['rootName']),_0x2a1b3c=this['_fixPosition'](_0x228a6b['position'],_0xfb0ae5),_0x329517=null===_0x228a6b['_authorId']?null:_0x228a6b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c3115=_0x2a1b3c['parent'],_0x363c39=this['_revisionId'],_0x42c89c=[];for(const _0x260c5f of _0x228a6b['nodes'])if(_0x260c5f['is']('element'))_0x42c89c['push'](this['_makeIdsRoot'](_0x260c5f));else{for(let _0xddfb38=0x0;_0xddfb38<_0x260c5f['offsetSize'];_0xddfb38++)_0x42c89c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x59c299=this['_revisionId'];for(let _0xda6289=_0x363c39;_0xda6289<_0x59c299;_0xda6289++)this['_touched']['set'](_0xda6289,{'userId':_0x329517});_0x2c3115['_insertChild'](_0x2a1b3c['offset'],_0x42c89c);}['_handleMoveOperation'](_0x2783cc){(_0x2783cc=this['_cloneOperation'](_0x2783cc,this['_idsRoots']))['_execute']();const _0x61107b=null===_0x2783cc['_authorId']?null:_0x2783cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f563d=_0x2783cc['getMovedRangeStart'](),_0x1fccb6=_0x3f563d['parent'],_0x1e0679=_0x3f563d['offset'];!function _0x4e9841(_0x1f6b5a,_0x4cb62e,_0xbba153,_0x29fe72){for(let _0x3200f7=_0xbba153;_0x3200f7<_0x29fe72;_0x3200f7++){const _0x23bc2f=_0x4cb62e['getChild'](_0x3200f7);_0x23bc2f['is']('element','$text')?_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid'),{'userId':_0x61107b}):(_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid_start'),{'userId':_0x61107b}),_0x4e9841(_0x1f6b5a,_0x23bc2f,0x0,_0x23bc2f['childCount']),_0x1f6b5a['set'](_0x23bc2f['getAttribute']('vid_end'),{'userId':_0x61107b}));}}(this['_touched'],_0x1fccb6,_0x1e0679,_0x1e0679+_0x2783cc['howMany']);}['_handleMergeOperation'](_0x4ce590){const _0x492206=null===(_0x4ce590=this['_cloneOperation'](_0x4ce590,this['_idsRoots']))['_authorId']?null:_0x4ce590['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc17f69=_0x4ce590['targetPosition']['parent'],_0xf33754=_0x4ce590['sourcePosition']['parent'],_0x32f156=_0xc17f69['getAttribute']('vid_end'),_0x3479e4=_0xf33754['getAttribute']('vid_start');_0xc17f69['_setAttribute']('vid_end',_0xf33754['getAttribute']('vid_end')),_0xf33754['_setAttribute']('vid_end',_0x32f156),this['_touched']['set'](_0x3479e4,{'userId':_0x492206}),this['_touched']['set'](_0x32f156,{'userId':_0x492206}),_0x4ce590['_execute']();}['_handleSplitOperation'](_0x1e2bf3){const _0xacc236=null===(_0x1e2bf3=this['_cloneOperation'](_0x1e2bf3,this['_idsRoots']))['_authorId']?null:_0x1e2bf3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x324168=_0x1e2bf3['graveyardPosition'],_0x53a617=_0x1e2bf3['splitPosition']['parent'];_0x1e2bf3['_execute']();const _0x27edbf=_0x53a617['getAttribute']('vid_end'),_0x2717f3=_0x1e2bf3['insertionPosition']['nodeAfter'];if(_0x324168){const _0xa0ba6a=_0x2717f3['getAttribute']('vid_end'),_0x16a789=_0x53a617['getAttribute']('vid_end');_0x53a617['_setAttribute']('vid_end',_0xa0ba6a),_0x2717f3['_setAttribute']('vid_end',_0x16a789),this['_touched']['set'](_0x53a617['getAttribute']('vid_end'),{'userId':_0xacc236}),this['_touched']['set'](_0x2717f3['getAttribute']('vid_start'),{'userId':_0xacc236});}else{const _0x4edfef=this['_revisionId']++,_0x456c22=this['_revisionId']++;_0x53a617['_setAttribute']('vid_end',_0x4edfef),_0x2717f3['_setAttribute']('vid_start',_0x456c22),_0x2717f3['_setAttribute']('vid_end',_0x27edbf),this['_touched']['set'](_0x4edfef,{'userId':_0xacc236}),this['_touched']['set'](_0x456c22,{'userId':_0xacc236});}}['_handleMarkerOperation'](_0x44e985){if(!_0x44e985['affectsData'])return;const _0x54aec1=(_0x44e985=this['_cloneOperation'](_0x44e985,this['_diffRoots']))['oldRange']?_0x44e985['oldRange']['root']:null,_0x4869e6=_0x44e985['newRange']?_0x44e985['newRange']['root']:null;_0x54aec1&&this['_markers']['delete'](_0x44e985['name']),_0x4869e6&&this['_markers']['set'](_0x44e985['name'],_0x44e985['newRange']['clone']());const _0xc605ea=null===_0x44e985['_authorId']?null:_0x44e985['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2378c1=_0x44e985['name'];if(!this['_touchedMarkers']['has'](_0x2378c1))return void this['_touchedMarkers']['set'](_0x2378c1,{'range':_0x44e985['oldRange'],'userId':_0xc605ea});const _0x2ff201=this['_touchedMarkers']['get'](_0x2378c1),_0x1288f4=_0x2ff201['range'],_0x7a0a85=_0x44e985['newRange'];null==_0x1288f4&&null==_0x7a0a85||_0x1288f4&&_0x7a0a85&&_0x1288f4['isEqual'](_0x7a0a85)?this['_touchedMarkers']['delete'](_0x44e985['name']):_0x2ff201['userId']=_0xc605ea;}['_handleRootOperation'](_0x841ce3,_0x3950ed){this['_diffRoots']['has'](_0x841ce3['rootName'])?this['_diffRoots']['get'](_0x841ce3['rootName'])['_isAttached']=_0x841ce3['isAdd']:(this['_diffRoots']['set'](_0x841ce3['rootName'],P(_0x841ce3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x841ce3['rootName'],{}),_0x3950ed&&this['_idsRoots']['set'](_0x841ce3['rootName'],P(_0x841ce3['rootName'],!0x0)));const _0x56c925=null===_0x841ce3['_authorId']?null:_0x841ce3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x274b23=this['_touchedRoots']['get'](_0x841ce3['rootName']);_0x274b23&&_0x274b23['userId']===_0x56c925?this['_touchedRoots']['delete'](_0x841ce3['rootName']):this['_touchedRoots']['set'](_0x841ce3['rootName'],{'userId':_0x56c925,'isAttached':_0x841ce3['isAdd']});}['_handleRootAttributeOperation'](_0x3d3dbf){const _0xfb588c=this['_diffRootsAttributes']['get'](_0x3d3dbf['root']['rootName']);null===_0x3d3dbf['newValue']?delete _0xfb588c[_0x3d3dbf['key']]:_0xfb588c[_0x3d3dbf['key']]=_0x3d3dbf['newValue'];}}function N(_0x2f981d){const _0x4c4d2f=P(_0x2f981d['rootName'],_0x2f981d['isAttached']());for(const _0x22ee08 of _0x2f981d['getChildren']()){const _0x13d3a0=_0x22ee08['_clone'](!0x0);_0x4c4d2f['_appendChild'](_0x13d3a0);}return _0x4c4d2f;}function P(_0x107c20,_0x5d4b29=!0x0){const _0x3046c2=new gt();return _0x3046c2['rootName']=_0x107c20,_0x3046c2['_isAttached']=_0x5d4b29,_0x3046c2['isAttached']=()=>_0x3046c2['_isAttached'],_0x3046c2;}function F(_0x398ea2,_0x564cc5,_0x241413){const _0x1118eb='elementEnd'==_0x398ea2['type']?_0x241413['createPositionAt'](_0x398ea2['item'],'end'):_0x241413['createPositionBefore'](_0x398ea2['item']);return _0x241413['createPositionFromPath'](_0x564cc5,_0x1118eb['path'],_0x1118eb['stickiness']);}function B(_0x137eed,_0x47d55e,_0xdc32e1){const _0x5de78e='elementStart'==_0x137eed['type']?_0xdc32e1['createPositionAt'](_0x137eed['item'],0x0):_0xdc32e1['createPositionAfter'](_0x137eed['item']);return _0xdc32e1['createPositionFromPath'](_0x47d55e,_0x5de78e['path'],_0x5de78e['stickiness']);}class os extends _0x39cfbe{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4030f9,_0x477d42){super(_0x4030f9),this['focusTracker']=new _0x38cc87(),this['keystrokes']=new _0x133eb8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x477d42),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'](),_0x2cc73e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x421d24=_0x541a30=>_0x541a30['stopPropagation']();this['keystrokes']['set']('arrowright',_0x421d24),this['keystrokes']['set']('arrowleft',_0x421d24),this['keystrokes']['set']('arrowup',_0x421d24),this['keystrokes']['set']('arrowdown',_0x421d24);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5b47b7){this['revisionNameInputView']['fieldView']['element']['value']=_0x5b47b7['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x272ed8){const _0x48c16f=new nt(this['locale'],ti),_0x23a9d1=_0x48c16f['fieldView'];_0x23a9d1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x532fb6=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x272ed8&&(_0x532fb6+='\x20('+g(this['locale'],'optional')+')'),(_0x48c16f['label']=_0x532fb6,_0x23a9d1['on']('input',()=>{this['revisionNameInputValue']=_0x23a9d1['element']['value']['trim']();}),_0x48c16f);}}class f extends _0x425a55{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1a554a=this['editor'],_0x3f9606=_0x1a554a['plugins']['get']('RevisionTracker');_0x1a554a['ui']['componentFactory']['add']('revisionHistory',_0xd96346=>{const _0x4ff774=_0x2f3f6b(_0xd96346),_0x74f9df=_0x4ff774['panelView']['children'],_0x2b8ed8=new _0x381af1(_0xd96346),_0x571abd=new te(_0xd96346),_0x5d6104=new _0x2e3194(_0xd96346),_0x114b55=new te(_0xd96346),_0x27fde7=new _0x2e3194(_0xd96346);return _0x4ff774['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x3f9606,'isEnabled',_0x1a554a,'isReadOnly',(_0x4de8ca,_0x3160af,_0x27f81e)=>_0x4de8ca&&_0x3160af&&!_0x27f81e),_0x4ff774['buttonView']['set']({'icon':_0x4280c8,'label':g(_0xd96346,'Revision\x20history'),'tooltip':!0x0}),_0x5d6104['set']({'label':g(_0xd96346,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d6104['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x3f9606,'isEnabled',_0x1a554a,'isReadOnly',(_0x258abf,_0x973b38,_0x53f0cf)=>_0x258abf&&_0x973b38&&!_0x53f0cf),_0x5d6104['on']('execute',()=>this['_showDialog']()),_0x27fde7['set']({'label':g(_0xd96346,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x27fde7['bind']('isEnabled')['to'](_0x3f9606,'isReady',_0x1a554a,'isReadOnly',(_0x3a0092,_0xa93f1)=>_0x3a0092&&!_0xa93f1),_0x27fde7['on']('execute',()=>{_0x1a554a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4ff774['isOpen']=!0x1,_0x1a554a['editing']['view']['focus']();}),_0x571abd['children']['add'](_0x5d6104),_0x114b55['children']['add'](_0x27fde7),_0x2b8ed8['role']='menu',_0x2b8ed8['items']['addMany']([_0x571abd,_0x114b55]),_0x74f9df['add'](_0x2b8ed8),_0x4ff774;}),_0x1a554a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32dc7e=this['editor'],_0x348c5c=_0x32dc7e['locale'],_0x275328=new _0x1cf6e8(_0x348c5c),_0x1f40ef=new _0x325bfc(_0x348c5c);_0x275328['buttonView']['set']({'icon':_0x4280c8,'label':g(_0x348c5c,'Revision\x20history')});const _0x3a00d6=new _0x1c0134(_0x348c5c,_0x275328),_0x203461=new _0x17e213(_0x348c5c);_0x203461['set']({'label':g(_0x348c5c,'Save\x20current\x20revision')}),_0x203461['delegate']('execute')['to'](_0x275328),_0x203461['on']('execute',()=>{this['_showDialog']();}),_0x3a00d6['children']['add'](_0x203461),_0x1f40ef['items']['add'](_0x3a00d6);const _0x2a4b77=new _0x1c0134(_0x348c5c,_0x275328),_0x5938a4=new _0x17e213(_0x348c5c);return _0x5938a4['set']({'label':g(_0x348c5c,'Open\x20revision\x20history')}),_0x5938a4['delegate']('execute')['to'](_0x275328),_0x5938a4['on']('execute',()=>{_0x32dc7e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2a4b77['children']['add'](_0x5938a4),_0x1f40ef['items']['add'](_0x2a4b77),_0x275328['panelView']['children']['add'](_0x1f40ef),_0x275328;}['_showDialog'](){const _0xced8d4=this['editor'],_0x581d55=_0xced8d4['locale'],_0x5f5805=_0xced8d4['plugins']['get']('Dialog'),_0x10b24b=_0xced8d4['plugins']['get']('RevisionTracker');function _0x423365(_0xfc0c1b){_0xced8d4['config']['get']('revisionHistory.requireRevisionName')&&''===_0xfc0c1b['revisionName']?_0xfc0c1b['revisionNameInputView']['errorText']=g(_0x581d55,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xced8d4['plugins']['get'](u)['saveRevision']({'name':_0xfc0c1b['revisionName']}),_0x5f5805['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x423365(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5f5805['show']({'id':'revisionSave','title':g(_0x581d55,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xced8d4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5f5805['hide']()},{'label':g(_0xced8d4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3be9ff){_0x3be9ff['bind']('isEnabled')['to'](_0x10b24b,'isReady',_0x10b24b,'isEnabled',_0xced8d4,'isReadOnly',(_0xb7fd8e,_0x266b13,_0x22686d)=>_0xb7fd8e&&_0x266b13&&!_0x22686d);},'onExecute':()=>_0x423365(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2f7479=this['editor'],_0x26fc80=_0x2f7479['locale'];this['_saveRevisionFormView']=new os(_0x26fc80,_0x2f7479['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x39cfbe{['changeId'];['_model'];constructor(_0xbde4c7,_0x501eee){super(_0xbde4c7),this['_model']=_0x501eee,this['changeId']=_0x501eee['id'];const _0x1ed43b=this['bindTemplate'],_0x1bbf0c=g(_0xbde4c7,_0x501eee['data']['isSuggestion']?'Suggested\x20by':'add'==_0x501eee['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x501eee['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1ed43b['to']('type',_0x54dbf6=>'ck-revision-change__'+_0x54dbf6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1bbf0c}]},{'text':'\x20'+_0x501eee['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4f55d8(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x45d4eb){super(),this['id']=_0x45d4eb['id']||_0x450571(),this['author']=_0x45d4eb['author'],this['type']=_0x45d4eb['type'],this['data']=_0x45d4eb['data']||{},this['rootName']=_0x45d4eb['rootName'],this['set']('createdAt',_0x45d4eb['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(_0x5019c7,_0x18b785){this['newRevisionId']=_0x5019c7,this['oldRevisionId']=_0x18b785,this['changes']=new _0x58d884();}['_setChanges'](_0x32343e){for(const _0x357991 of _0x32343e)this['changes']['add'](_0x357991);}}class m extends _0x425a55{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5701d4,_0x208e19,I,V];}constructor(_0x12c7eb){super(_0x12c7eb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x20f302,_0x3402f3,_0x4f627a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x30832e=>{for(const _0xb0359e of this['editor']['editing']['view']['document']['roots'])_0x4f627a?_0x30832e['removeClass']('ck-editor__editable__overlay',_0xb0359e):_0x30832e['addClass']('ck-editor__editable__overlay',_0xb0359e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x49f003=>null!==_0x49f003),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1d6b48,_0x49c743,_0x57ca7e)=>_0x1d6b48&&_0x57ca7e?_0x49c743['changes']['getIndex'](_0x57ca7e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3a6507,_0x53e898)=>_0x3a6507?_0x53e898['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x208e19);}['init'](){const _0x2495c0=this['editor'],_0x1d8f73=new pt(_0x2495c0,{'direction':'backward'}),_0x41ea8e=new pt(_0x2495c0,{'direction':'forward'});(_0x2495c0['commands']['add']('showPreviousChange',_0x1d8f73),_0x2495c0['commands']['add']('showNextChange',_0x41ea8e),_0x2495c0['commands']['add']('restoreRevision',new wt(_0x2495c0)),this['on']('change:numberOfChanges',()=>{_0x1d8f73['refresh'](),_0x41ea8e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2495c0['enableReadOnlyMode']('revision-viewer'),_0x2495c0['plugins']['has']('WidgetToolbarRepository'))&&_0x2495c0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1d1638){return await this['_utils']['loadRevisionData'](_0x1d1638,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1d1638);}async['getRevisionRootsAttributes'](_0x3610d2){return await this['_utils']['loadRevisionData'](_0x3610d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3610d2);}async['compare'](_0x4acfb3,_0x3c4599,_0x397e18=!0x1){if(!this['isEnabled'])return;const _0xbd7ed2=this['diff'],_0x116020=this['repository'],_0x1f0466='string'==typeof _0x4acfb3?_0x116020['getRevision'](_0x4acfb3):_0x4acfb3,_0x3087cd='string'==typeof _0x3c4599?_0x116020['getRevision'](_0x3c4599):_0x3c4599,_0x1a6dd2=_0x1f0466['id'],_0x4b58a8=_0x3087cd?_0x3087cd['id']:null;if(!_0x397e18&&this['diff']&&this['diff']['newRevisionId']===_0x1a6dd2&&this['diff']['oldRevisionId']===_0x4b58a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1a6dd2,_0x4b58a8);const _0x525e73=this['_getRevisionsRange'](_0x1f0466,_0x3087cd,!0x0)['map'](_0x5d1201=>this['_utils']['loadRevisionData'](_0x5d1201,this['adapter']));return _0x525e73['push'](new Promise(_0x37d11c=>{setTimeout(_0x37d11c,0x14);})),Promise['all'](_0x525e73)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5d7b75=this['_getDiff'](_0x1a6dd2,_0x4b58a8);for(const _0x5eb591 of _0x5d7b75['changes'])this['_changeIdToChange']['set'](_0x5eb591['id'],_0x5eb591);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c7c2e=>{for(const _0x3c8582 of this['editor']['model']['document']['getRootNames']())_0x4c7c2e['detachRoot'](_0x3c8582);for(const _0x406b5c of Object['keys'](_0x5d7b75['model'])){const _0x5e2640=_0x4c7c2e['addRoot'](_0x406b5c);for(const _0x4a0eb3 of Object['keys'](_0x5d7b75['attributes'][_0x406b5c]))_0x4c7c2e['setAttribute'](_0x4a0eb3,_0x5d7b75['attributes'][_0x406b5c][_0x4a0eb3],_0x5e2640);_0x4c7c2e['insert'](_0x5d7b75['model'][_0x406b5c],_0x5e2640,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5d7b75['changes'])),this['isReady']=!0x0;})['catch'](_0x4a79e3=>{console['error'](_0x4a79e3),this['_cleanUp'](),_0xbd7ed2&&(this['diff']=_0xbd7ed2),this['isReady']=!0x0;});}['addRevisionData'](_0x33bf7c,_0x3e5a8f){const _0x55ac92=this['repository']['createRevision'](_0x33bf7c);return _0x55ac92['on']('_update',(_0x46d46b,_0x4cfbfc,_0x3ac565)=>_0x3e5a8f(_0x4cfbfc,_0x3ac565,_0x55ac92)),this['repository']['addRevision'](_0x55ac92),_0x55ac92;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x6dd15a=>{for(const _0x547376 of this['editor']['model']['document']['getRootNames']())_0x6dd15a['detachRoot'](_0x547376);});}['_sortAndFilterDiffChanges'](_0x43ec9a){const _0xdc666f=[],_0x159daa=new Map();for(const _0x4e8b57 of this['editor']['model']['document']['getRootNames']()){const _0x4a346d=this['editor']['editing']['view']['getDomRoot'](_0x4e8b57);if(!_0x4a346d)continue;const _0x2ec77c=_0x4a346d['getClientRects']()['item'](0x0);_0x2ec77c&&(_0xdc666f['push'](_0x4e8b57),_0x159daa['set'](_0x4e8b57,_0x2ec77c));}return _0xdc666f['sort']((_0x37197a,_0x531207)=>{const _0x6bd5e1=_0x159daa['get'](_0x37197a),_0x258bb7=_0x159daa['get'](_0x531207);return _0x6bd5e1['y']-_0x258bb7['y']||_0x6bd5e1['x']-_0x258bb7['x'];}),(_0x43ec9a=_0x43ec9a['filter'](_0x178e85=>_0xdc666f['includes'](_0x178e85['rootName'])))['sort']((_0x1e19d6,_0x4ad16c)=>_0xdc666f['indexOf'](_0x1e19d6['rootName'])-_0xdc666f['indexOf'](_0x4ad16c['rootName'])),_0x43ec9a;}['_makeTape'](_0x1d3cc1){const _0x30e187=Array['from'](_0x1d3cc1['markers'])['filter'](([_0x422ae2,_0x12e8b8])=>_0x422ae2['startsWith']('revision:')&&!_0x12e8b8['isCollapsed']),_0x24675e=Array['from'](this['editor']['model']['createRangeIn'](_0x1d3cc1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x30e187['length'])for(const _0x5395fc of _0x24675e){const [_0x5a454c,_0x3e3de5]=_0x30e187[0x0],[,_0x234c04,_0x346178]=_0x5a454c['split'](':');if(_0x3e3de5['end']['isEqual'](_0x5395fc['nextPosition'])&&_0x30e187['shift'](),(_0x5395fc['previousPosition']['isEqual'](_0x3e3de5['start'])||_0x5395fc['previousPosition']['isAfter'](_0x3e3de5['start']))&&('insertion'==_0x234c04?_0x5395fc['isAdded']={'userId':_0x346178}:'deletion'==_0x234c04&&(_0x5395fc['isRemoved']={'userId':_0x346178})),0x0==_0x30e187['length'])break;}return _0x24675e;}['_refreshStartEndIndex'](_0x5699c3){const _0x511602=new Map();for(let _0x2df97c=0x0;_0x2df97c<_0x5699c3['length'];_0x2df97c++)'text'===_0x5699c3[_0x2df97c]['type']?(_0x5699c3[_0x2df97c]['item']['startIndex']=_0x2df97c,_0x5699c3[_0x2df97c]['item']['endIndex']=_0x2df97c):('elementStart'===_0x5699c3[_0x2df97c]['type']?_0x5699c3[_0x2df97c]['item']['startIndex']=_0x2df97c:'elementEnd'===_0x5699c3[_0x2df97c]['type']&&(_0x5699c3[_0x2df97c]['item']['endIndex']=_0x2df97c),_0x511602['set'](_0x5699c3[_0x2df97c]['id'],_0x2df97c));for(const _0x432ace of _0x511602['values']())'elementStart'===_0x5699c3[_0x432ace]['type']?_0x5699c3[_0x432ace]['item']['endIndex']=_0x511602['get'](_0x5699c3[_0x432ace]['pairId']):'elementEnd'===_0x5699c3[_0x432ace]['type']&&(_0x5699c3[_0x432ace]['item']['startIndex']=_0x511602['get'](_0x5699c3[_0x432ace]['pairId']));}['_processTape'](_0x2565af){for(let _0x411db4=0x0;_0x411db4<_0x2565af['length'];_0x411db4++){if('elementStart'===_0x2565af[_0x411db4]['type'])_0x2565af[_0x411db4]['item']['startIndex']=_0x411db4;else{if('elementEnd'===_0x2565af[_0x411db4]['type']){_0x2565af[_0x411db4]['item']['endIndex']=_0x411db4;const _0x161ad0=_0x2565af[_0x411db4]['item']['startIndex'];_0x2565af[_0x161ad0]['pairId']=_0x2565af[_0x411db4]['id'],_0x2565af[_0x411db4]['pairId']=_0x2565af[_0x161ad0]['id'];}else _0x2565af[_0x411db4]['item']['startIndex']=_0x411db4,_0x2565af[_0x411db4]['item']['endIndex']=_0x411db4,_0x2565af[_0x411db4]['pairId']=null;}_0x2565af[_0x411db4]['markersStart']||(_0x2565af[_0x411db4]['markersStart']=[],_0x2565af[_0x411db4]['markersEnd']=[]);}}['_markInsertions'](_0x425cfc,_0x53a200){const _0x4670d8=_0x425cfc['filter'](_0x3b7775=>!_0x3b7775['isAdded']);for(let _0x202f54=0x0;_0x202f54<_0x53a200['length'];_0x202f54++)_0x53a200[_0x202f54]['isAdded']&&(_0x4670d8[_0x202f54]['isAdded']=_0x53a200[_0x202f54]['isAdded']);}['_getDiff'](_0x140820,_0x58f30f=null){const _0x4f1a90=this['repository']['getRevision'](_0x140820),_0x15e657=_0x58f30f?this['repository']['getRevision'](_0x58f30f):null,_0x3ec375=this['_getRevisionsRange'](_0x4f1a90,_0x15e657),_0x28127a=_0x3ec375[_0x3ec375['length']-0x1],_0x364e29=new Map(),_0x16b2a4={'model':{},'attributes':{},'changes':[]},_0x5e557f=new Set(),_0x1712dc=new Map();for(let _0x2cd78a=_0x3ec375['length']-0x1;_0x2cd78a>=0x0;_0x2cd78a--){const _0x496467=_0x3ec375[_0x2cd78a];for(const _0x3c043c of Object['keys'](_0x496467['diffData']))if(_0x496467['diffData'][_0x3c043c]['attachChange']){const _0x5ad81f=_0x496467['diffData'][_0x3c043c]['attachChange'];_0x5ad81f['isAttached']?(_0x5e557f['add'](_0x3c043c),_0x1712dc['has'](_0x3c043c)&&_0x1712dc['get'](_0x3c043c)['userId']==_0x5ad81f['userId']?_0x1712dc['delete'](_0x3c043c):_0x1712dc['set'](_0x3c043c,_0x5ad81f)):_0x1712dc['has'](_0x3c043c)?(_0x5e557f['delete'](_0x3c043c),_0x1712dc['delete'](_0x3c043c)):(_0x5e557f['add'](_0x3c043c),_0x1712dc['set'](_0x3c043c,_0x5ad81f));}else _0x5e557f['add'](_0x3c043c);}for(const _0x5b6f99 of _0x5e557f){const _0x3cca1b=_0x1712dc['has'](_0x5b6f99)&&!_0x1712dc['get'](_0x5b6f99)['isAttached'];let _0x1953c2=_0x3cca1b?_0x3ec375['length']-0x1:0x0;const _0x551084=_0x3cca1b?-0x1:0x1;for(;_0x3ec375[_0x1953c2];){const _0x552e50=_0x3ec375[_0x1953c2];if(_0x552e50['diffData'][_0x5b6f99]){const _0x5dbe39=_0x3cca1b?_0x552e50['diffData'][_0x5b6f99]['attributesBefore']:_0x552e50['diffData'][_0x5b6f99]['attributesAfter'];_0x16b2a4['attributes'][_0x5b6f99]=_0x5dbe39?_0x385a22(_0x5dbe39):{};break;}_0x1953c2+=_0x551084;}}for(const _0x19ffda of _0x3ec375){_0x19ffda['model']={};for(const _0x36377e of _0x19ffda['authors'])_0x364e29['set'](_0x36377e['id'],_0x36377e);for(const _0x220d09 of _0x5e557f){const _0x537e18=_0x19ffda['diffData'][_0x220d09]?_0x19ffda['diffData'][_0x220d09]['insertions']:'[]',_0x2ec440=_0x19ffda['diffData'][_0x220d09]?_0x19ffda['diffData'][_0x220d09]['deletions']:'[]';_0x19ffda['model'][_0x220d09]={'insertions':this['_utils']['_makeModelFromViewString'](_0x537e18),'deletions':this['_utils']['_makeModelFromViewString'](_0x2ec440)};}}for(const _0x7e8748 of _0x5e557f){let _0x131a51=null,_0x364ec4=0x0;const _0x4467fb=new Map(Array['from'](_0x4f1a90['model'][_0x7e8748]['insertions']['markers'])['filter'](([_0x1911c6])=>!_0x1911c6['startsWith']('revision:')));let _0x2a0f98=0x0;for(const _0x404da8 of _0x3ec375){const _0x276859=this['_makeTape'](_0x404da8['model'][_0x7e8748]['insertions']);_0x404da8==_0x4f1a90?(_0x131a51=_0x276859,_0x364ec4=_0x131a51['length'],_0x131a51['forEach'](_0x5314b6=>{_0x5314b6['id']=_0x2a0f98++;}),this['_processTape'](_0x131a51)):this['_markInsertions'](_0x131a51,_0x276859);const _0x26f64e=_0x131a51['filter'](_0x1f5055=>!_0x1f5055['isAdded'])['map'](_0x4ee8a5=>_0x4ee8a5['id']);let _0x82f469=0x0;const _0x3b2a3f=this['_makeTape'](_0x404da8['model'][_0x7e8748]['deletions']);_0x3b2a3f['forEach'](_0x3aaab1=>{_0x3aaab1['isRemoved']?_0x3aaab1['id']=_0x364ec4++:_0x3aaab1['id']=_0x26f64e[_0x82f469++];}),this['_processTape'](_0x3b2a3f),this['_setDistance'](_0x131a51,'isAdded'),this['_setDistance'](_0x3b2a3f,'isRemoved'),_0x404da8==_0x4f1a90&&this['_markMarkers'](_0x131a51,_0x4467fb),_0x131a51=this['_joinTapes'](_0x131a51,_0x3b2a3f),this['_refreshStartEndIndex'](_0x131a51),this['_setDistance'](_0x131a51,'isRemoved');}_0x131a51=_0x131a51['filter'](_0x272661=>!(_0x272661['isAdded']&&_0x272661['isRemoved']));const _0x25ce2d=new Map(_0x28127a['model'][_0x7e8748]['deletions']['markers']),_0x52c337=new Set(_0x4467fb['keys']());for(const _0x28f9e6 of _0x25ce2d['keys']())_0x52c337['delete'](_0x28f9e6);this['_markSuggestions'](_0x131a51,_0x52c337),this['_fixObsoleteTags'](_0x131a51),_0x131a51=this['_removeMissingPairs'](_0x131a51),_0x131a51=this['_markMismatchedRemovedTags'](_0x131a51),_0x131a51=this['_removeUnsupportedChanges'](_0x131a51);const {root:_0xaedb49,changes:_0xbe72d6}=this['_makeModelFromTape'](_0x131a51,_0x364e29,_0x7e8748);_0x16b2a4['model'][_0x7e8748]=_0xaedb49;const _0x929643=_0x1712dc['get'](_0x7e8748);if(_0x929643){const _0x352b01=_0x364e29['get'](_0x929643['userId']),_0x197ea9=new r({'author':_0x352b01,'type':_0x929643['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x7e8748});_0xbe72d6['unshift'](_0x197ea9),_0x16b2a4['attributes'][_0x7e8748]['revisionHistoryAttachChange']=_0x197ea9['id'];}_0x16b2a4['changes']=_0x16b2a4['changes']['concat'](_0xbe72d6);}return _0x16b2a4;}['_markMarkers'](_0x777421,_0x49b778){for(let _0x48acda=0x0;_0x48acda<_0x777421['length'];_0x48acda++)for(const [_0xbfe1be,_0x39df95]of _0x49b778)!_0x39df95['isCollapsed']&&_0x39df95['start']['isEqual'](_0x777421[_0x48acda]['previousPosition'])&&_0x777421[_0x48acda]['markersStart']['push'](_0xbfe1be),_0x39df95['end']['isEqual'](_0x777421[_0x48acda]['nextPosition'])&&_0x777421[_0x48acda]['markersEnd']['push'](_0xbfe1be);}['_joinTapes'](_0x38f6a7,_0x538d19){let _0x3d82a1=[],_0x4404ba=0x0,_0x5249e7=0x0;for(;_0x4404ba<_0x38f6a7['length']||_0x5249e7<_0x538d19['length'];){const _0x5547fe=_0x38f6a7[_0x4404ba]||{},_0x58d62d=_0x538d19[_0x5249e7]||{};if(_0x5547fe['id']==_0x58d62d['id'])_0x4404ba++,_0x5249e7++,_0x3d82a1['push'](_0x5547fe);else{if(_0x58d62d['isRemoved']&&_0x5547fe['isAdded']){const {commonTape:_0x2d089f,iEnd:_0x3e5240,jEnd:_0x50dc8b}=this['_threeWayMerge'](_0x38f6a7,_0x4404ba,_0x538d19,_0x5249e7);_0x3d82a1=_0x3d82a1['concat'](_0x2d089f),_0x4404ba=_0x3e5240,_0x5249e7=_0x50dc8b;}else _0x58d62d['isRemoved']?(_0x5249e7++,_0x3d82a1['push'](_0x58d62d)):(_0x4404ba++,_0x3d82a1['push'](_0x5547fe));}}return _0x3d82a1;}['_markSuggestions'](_0x9e14fa,_0x3552bb){const _0x34fb38=[];for(let _0x1b0b68=0x0;_0x1b0b68<_0x9e14fa['length'];_0x1b0b68++){for(let _0x49d2f8=0x0;_0x49d2f8<_0x9e14fa[_0x1b0b68]['markersStart']['length'];_0x49d2f8++){const _0x10b8a4=_0x9e14fa[_0x1b0b68]['markersStart'][_0x49d2f8];if(!_0x3552bb['has'](_0x10b8a4))continue;const {group:_0x14aa61,type:_0x4c93c6,authorId:_0x3c08ce}=_0x2b92f9(_0x10b8a4);'revision-suggestion'!=_0x14aa61||'insertion'!=_0x4c93c6&&'deletion'!=_0x4c93c6||(_0x34fb38['unshift']({'type':_0x4c93c6,'name':_0x10b8a4,'userId':_0x3c08ce}),_0x9e14fa[_0x1b0b68]['markersStart']['splice'](_0x49d2f8,0x1),_0x49d2f8--);}_0xa81b50(_0x9e14fa[_0x1b0b68]);for(let _0x52b361=0x0;_0x52b361<_0x9e14fa[_0x1b0b68]['markersEnd']['length'];_0x52b361++){const _0x26fd26=_0x9e14fa[_0x1b0b68]['markersEnd'][_0x52b361];if(!_0x3552bb['has'](_0x26fd26))continue;const {group:_0x154e98,type:_0x2c8860}=_0x2b92f9(_0x26fd26);if('revision-suggestion'!=_0x154e98||'insertion'!=_0x2c8860&&'deletion'!=_0x2c8860)continue;_0x9e14fa[_0x1b0b68]['markersEnd']['splice'](_0x52b361,0x1),_0x52b361--;const _0x303f4d=_0x34fb38['findIndex'](_0x46fd4b=>_0x46fd4b['name']==_0x26fd26);_0x303f4d>-0x1&&_0x34fb38['splice'](_0x303f4d,0x1);}}function _0x2b92f9(_0x32d58d){const _0x26e9bb=_0x32d58d['split'](':');return{'group':_0x26e9bb[0x0],'type':_0x26e9bb[0x1],'subType':_0x26e9bb['length']>=0x5?_0x26e9bb[0x2]:null,'id':_0x26e9bb['length']<0x5?_0x26e9bb[0x2]:_0x26e9bb[0x3],'authorId':_0x26e9bb['length']<0x5?_0x26e9bb[0x3]:_0x26e9bb[0x4],'markerCount':0x6==_0x26e9bb['length']?_0x26e9bb[0x5]:null};}function _0xa81b50(_0x1a0a39){for(let _0x1e61f5=0x0;_0x1e61f5<_0x34fb38['length'];_0x1e61f5++){if(_0x1a0a39['isAdded']&&'insertion'==_0x34fb38[_0x1e61f5]['type'])return _0x1a0a39['isAddSuggestion']=_0x34fb38[_0x1e61f5],void delete _0x1a0a39['isAdded'];if(!_0x1a0a39['isAdded']&&!_0x1a0a39['isRemoved']&&'deletion'==_0x34fb38[_0x1e61f5]['type'])return void(_0x1a0a39['isRemoveSuggestion']=_0x34fb38[_0x1e61f5]);}}}['_setDistance'](_0x2b5604,_0x2d3bf0){let _0x3ee214=0x0,_0x37ad33=!0x1;const _0x58dd88=new Map();for(const _0x33436a of _0x2b5604)_0x33436a[_0x2d3bf0]?_0x37ad33&&(_0x3ee214++,_0x37ad33=!0x1):(_0x3ee214++,_0x37ad33=!0x0),_0x58dd88['set'](_0x33436a['id'],_0x3ee214);for(let _0x3a420f=0x0;_0x3a420f<_0x2b5604['length'];_0x3a420f++){if('isRemoved'==_0x2d3bf0&&_0x2b5604[_0x3a420f]['isAdded']||'isAdded'==_0x2d3bf0&&_0x2b5604[_0x3a420f]['isRemoved'])continue;if('text'==_0x2b5604[_0x3a420f]['type']){_0x2b5604[_0x3a420f]['distance']=0x0;continue;}const _0x1ec9e5=_0x58dd88['get'](_0x2b5604[_0x3a420f]['pairId']),_0x30be2a=_0x58dd88['get'](_0x2b5604[_0x3a420f]['id']);_0x2b5604[_0x3a420f]['distance']=_0x1ec9e5-_0x30be2a;}}['_getRevisionsRange'](_0x3cb1c7,_0x372afc,_0x2d117b=!0x1){const _0x1c3f53=[];let _0xd835b9=this['repository']['getIndex'](_0x3cb1c7),_0x395c55=this['repository']['getIndex'](_0x372afc);for(-0x1==_0x395c55&&(_0x395c55=this['repository']['_revisions']['length'],_0x2d117b=!0x1);_0xd835b9<_0x395c55;)_0x1c3f53['push'](this['repository']['getRevision'](_0xd835b9)),_0xd835b9++;return _0x2d117b&&_0x1c3f53['push'](this['repository']['getRevision'](_0xd835b9)),_0x1c3f53;}['_threeWayMerge'](_0x5d3e11,_0x3a283e,_0xc38716,_0x101498){const _0x21df91=this['editor']['model']['schema'];let _0xe7ed8e=_0x3a283e;for(;_0x5d3e11[_0xe7ed8e]&&_0x5d3e11[_0xe7ed8e]['isAdded'];)_0xe7ed8e++;let _0x54c657=_0x101498;for(;_0xc38716[_0x54c657]&&_0xc38716[_0x54c657]['isRemoved'];)_0x54c657++;_0x43eda9(_0x5d3e11,_0x3a283e,_0xe7ed8e),_0x43eda9(_0xc38716,_0x101498,_0x54c657);const _0x21825f=_0xc38716['slice'](_0x101498,_0x54c657)['concat'](_0x5d3e11['slice'](_0x3a283e,_0xe7ed8e));return _0x21825f['sort']((_0x2c57bc,_0x5663fa)=>_0x2c57bc['side']!=_0x5663fa['side']?_0x2c57bc['side']-_0x5663fa['side']:_0x2c57bc['level']!=_0x5663fa['level']?_0x2c57bc['level']-_0x5663fa['level']:_0x2c57bc['distance']!=_0x5663fa['distance']?_0x5663fa['distance']-_0x2c57bc['distance']:!!_0x2c57bc['isAdded']!=!!_0x5663fa['isAdded']?-0x1==_0x2c57bc['side']||0x0==_0x2c57bc['side']?_0x2c57bc['isAdded']?-0x1:0x1:_0x2c57bc['isAdded']?0x1:-0x1:_0x2c57bc['index']-_0x5663fa['index']),{'commonTape':_0x21825f,'iEnd':_0xe7ed8e,'jEnd':_0x54c657};function _0x43eda9(_0x2a2552,_0x224b62,_0x43fd5c){let _0x3d34e9=-0x1,_0x486033=Number['POSITIVE_INFINITY'],_0x45d4d3=!0x0;for(let _0x107f8a=_0x224b62;_0x107f8a<_0x43fd5c;_0x107f8a++)if(_0x21df91['isInline'](_0x2a2552[_0x107f8a]['item'])||(_0x45d4d3=!0x1),_0x2a2552[_0x107f8a]['item']['startIndex']<_0x224b62&&(_0x3d34e9=_0x107f8a),_0x2a2552[_0x107f8a]['item']['endIndex']>=_0x43fd5c){_0x486033=_0x107f8a;break;}_0x45d4d3&&(_0x3d34e9=_0x43fd5c-0x1);for(let _0x5398d7=_0x224b62;_0x5398d7<_0x43fd5c;_0x5398d7++)_0x2a2552[_0x5398d7]['side']=_0x5398d7<=_0x3d34e9?-0x1:_0x5398d7<_0x486033?0x0:0x1,_0x2a2552[_0x5398d7]['index']=_0x5398d7;let _0x485b4a=0x0;for(let _0x1e0471=_0x224b62;_0x1e0471<=_0x3d34e9;_0x1e0471++)0x0==_0x2a2552[_0x1e0471]['distance']?_0x2a2552[_0x1e0471]['level']=_0x485b4a:(_0x485b4a++,_0x2a2552[_0x1e0471]['level']=_0x485b4a,_0x485b4a++);for(let _0xf8c5f=_0x224b62;_0xf8c5f<_0x43fd5c;_0xf8c5f++)0x0==_0x2a2552[_0xf8c5f]['side']&&(_0x2a2552[_0xf8c5f]['level']=_0x485b4a);_0x485b4a=0x0;for(let _0x5a6580=_0x43fd5c-0x1;_0x5a6580>=_0x486033;_0x5a6580--)0x0==_0x2a2552[_0x5a6580]['distance']?_0x2a2552[_0x5a6580]['level']=_0x485b4a:(_0x485b4a--,_0x2a2552[_0x5a6580]['level']=_0x485b4a,_0x485b4a--);}}['_fixObsoleteTags'](_0x425d5c){const _0xa95cc=new Map(),_0x5f28d9=this['editor']['model']['schema'];for(let _0x1ab643=0x1;_0x1ab643<_0x425d5c['length'];_0x1ab643++){let _0x550552,_0x26cc42,_0x8bfb36;const _0x468f5e=_0x425d5c[_0x1ab643],_0x9f7c54=_0x425d5c[_0x1ab643-0x1];if('text'==_0x468f5e['type'])continue;if(_0x468f5e['type']!=_0x9f7c54['type'])continue;if(!_0x5f28d9['isBlock'](_0x9f7c54['item'])||_0x5f28d9['isLimit'](_0x9f7c54['item']))continue;if(!_0x5f28d9['isBlock'](_0x468f5e['item'])||_0x5f28d9['isLimit'](_0x468f5e['item']))continue;if((_0x425d5c[_0x1ab643]['isAdded']||_0x425d5c[_0x1ab643]['isAddSuggestion'])&&_0x425d5c[_0x1ab643-0x1]['isRemoved'])_0x550552=_0x425d5c[_0x1ab643],_0x26cc42=_0x425d5c[_0x1ab643-0x1],_0x8bfb36=_0x1ab643-0x1;else{if(!_0x425d5c[_0x1ab643]['isRemoved']||!_0x425d5c[_0x1ab643-0x1]['isAdded']&&!_0x425d5c[_0x1ab643-0x1]['isAddSuggestion'])continue;_0x550552=_0x425d5c[_0x1ab643-0x1],_0x26cc42=_0x425d5c[_0x1ab643],_0x8bfb36=_0x1ab643;}const _0x92093b=_0x550552['level']==_0x26cc42['level'],_0x160b6d=Math['abs'](_0x550552['level'])<Math['abs'](_0x26cc42['level'])&&0x0==_0x26cc42['distance'];(_0x92093b||_0x160b6d)&&(_0xa95cc['set'](_0x26cc42['id'],_0x550552['id']),_0x425d5c['splice'](_0x8bfb36,0x1),_0x1ab643--,_0x550552['isAdded']=!0x1);}for(let _0x5dc571=0x0;_0x5dc571<_0x425d5c['length'];_0x5dc571++)_0xa95cc['has'](_0x425d5c[_0x5dc571]['pairId'])&&(_0x425d5c[_0x5dc571]['pairId']=_0xa95cc['get'](_0x425d5c[_0x5dc571]['pairId']));}['_removeMissingPairs'](_0xb1bd85){const _0x10537a=new Set(_0xb1bd85['map'](_0x258c19=>_0x258c19['id']));for(let _0x54548d=0x0;_0x54548d<_0xb1bd85['length'];_0x54548d++)_0x10537a['has'](_0xb1bd85[_0x54548d]['pairId'])||0x0==_0xb1bd85[_0x54548d]['distance']||(_0xb1bd85[_0x54548d]['isIncorrect']=!0x0);return _0xb1bd85['filter'](_0x3f9918=>!_0x3f9918['isIncorrect']);}['_markMismatchedRemovedTags'](_0x517c85){const _0x4f3264=new Set();for(let _0x5bca2f=0x0;_0x5bca2f<_0x517c85['length'];_0x5bca2f++){if(_0x4f3264['has'](_0x517c85[_0x5bca2f]['id'])&&_0x517c85[_0x5bca2f]['isRemoved']&&(_0x517c85[_0x5bca2f]['isIncorrect']=!0x0),_0x517c85[_0x5bca2f]['isIncorrect'])continue;if(0x0==_0x517c85[_0x5bca2f]['distance'])continue;if('elementStart'!=_0x517c85[_0x5bca2f]['type'])continue;if(null==_0x517c85[_0x5bca2f]['pairId'])continue;let _0x85116d=_0x5bca2f+0x1,_0x239799=0x0;for(;_0x517c85[_0x85116d]['id']!=_0x517c85[_0x5bca2f]['pairId'];)'elementStart'==_0x517c85[_0x85116d]['type']?_0x239799++:'elementEnd'==_0x517c85[_0x85116d]['type']&&_0x239799--,_0x85116d++;if(0x0!=_0x239799){if(_0x517c85[_0x5bca2f]['isRemoved'])_0x517c85[_0x5bca2f]['isIncorrect']=!0x0;else{for(;_0x85116d!=_0x5bca2f;)_0x517c85[_0x85116d]['isRemoved']&&0x0!=_0x517c85[_0x85116d]['distance']&&(_0x517c85[_0x85116d]['isIncorrect']=!0x0,_0x4f3264['add'](_0x517c85[_0x85116d]['pairId'])),_0x85116d--;}}}return _0x517c85['filter'](_0x5d3036=>!_0x5d3036['isIncorrect']);}['_removeUnsupportedChanges'](_0x1afa85){const _0x197bee=this['editor']['model']['schema'];for(let _0x2fcf5e=0x0;_0x2fcf5e<_0x1afa85['length'];_0x2fcf5e++){if(!(_0x1afa85[_0x2fcf5e]['isAdded']||_0x1afa85[_0x2fcf5e]['isAddSuggestion']||_0x1afa85[_0x2fcf5e]['isRemoved']||_0x1afa85[_0x2fcf5e]['isRemoveSuggestion']))continue;if(0x0==_0x1afa85[_0x2fcf5e]['distance'])continue;const _0xbf010c=_0x1afa85[_0x2fcf5e]['item'];_0x197bee['isBlock'](_0xbf010c)||_0x197bee['isLimit'](_0xbf010c)||(_0x1afa85[_0x2fcf5e]['isAdded']&&delete _0x1afa85[_0x2fcf5e]['isAdded'],_0x1afa85[_0x2fcf5e]['isAddSuggestion']&&delete _0x1afa85[_0x2fcf5e]['isAddSuggestion'],_0x1afa85[_0x2fcf5e]['isRemoveSuggestion']&&delete _0x1afa85[_0x2fcf5e]['isRemoveSuggestion'],_0x1afa85[_0x2fcf5e]['isRemoved']&&(_0x1afa85[_0x2fcf5e]['isIncorrect']=!0x0));}return _0x1afa85['filter'](_0x454050=>!_0x454050['isIncorrect']);}['_makeModelFromTape'](_0x54e49e,_0x83720b,_0xbf47b0){const _0x33d63d=new gt(),_0x526c5f=[],_0x565656=new Map(),_0x52f176=this['editor']['model'],_0x2be5ff=_0x52f176['schema'],_0x33b331=[_0x33d63d],_0x12b300={},_0x28cda5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x200f94=null;const _0x209771=[0x0];for(let _0x5f168f=0x0;_0x5f168f<_0x54e49e['length'];_0x5f168f++)if('elementStart'===_0x54e49e[_0x5f168f]['type']){_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771);const _0x1adb7c=new ut(_0x54e49e[_0x5f168f]['item']['name'],_0x54e49e[_0x5f168f]['item']['getAttributes']());_0x33b331[0x0]['_appendChild'](_0x1adb7c),_0x209771['push'](0x0),_0x33b331['unshift'](_0x1adb7c),_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771);}else'elementEnd'===_0x54e49e[_0x5f168f]['type']?(_0x33b331['shift'](),_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771),_0x209771['pop'](),_0x209771[_0x209771['length']-0x1]++,_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771)):(_0x54e49e[_0x5f168f]['previousPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771),_0x200f94?_0x200f94['_data']+=_0x54e49e[_0x5f168f]['item']['data']:_0x200f94=new mt(_0x54e49e[_0x5f168f]['item']['data'],_0x54e49e[_0x5f168f]['item']['getAttributes']()),_0x54e49e[_0x5f168f+0x1]&&'text'===_0x54e49e[_0x5f168f+0x1]['type']&&_0xe19954(_0x200f94,_0x54e49e[_0x5f168f+0x1]['item'])||(_0x33b331[0x0]['_appendChild'](_0x200f94),_0x200f94=null),_0x209771[_0x209771['length']-0x1]+=_0x54e49e[_0x5f168f]['item']['offsetSize'],_0x54e49e[_0x5f168f]['nextPosition']=_0x52f176['createPositionFromPath'](_0x33d63d,_0x209771));for(let _0x2f3d4a=0x0;_0x2f3d4a<_0x54e49e['length'];_0x2f3d4a++){const _0x5a9cfd=_0x54e49e[_0x2f3d4a]['previousPosition'],_0xc81ad4=_0x54e49e[_0x2f3d4a]['nextPosition'];for(const _0x5bfe31 of _0x54e49e[_0x2f3d4a]['markersStart'])_0x565656['set'](_0x5bfe31,{'start':_0x5a9cfd,'end':null});_0x5ab605('isRemoveSuggestion',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isAddSuggestion',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isRemoved',_0x2f3d4a,_0x5a9cfd,_0xc81ad4),_0x5ab605('isAdded',_0x2f3d4a,_0x5a9cfd,_0xc81ad4);for(const _0x5ca94b of _0x54e49e[_0x2f3d4a]['markersEnd']){const _0x3c3e79=_0x565656['get'](_0x5ca94b);_0x3c3e79?_0x3c3e79['end']=_0xc81ad4:_0x565656['set'](_0x5ca94b,{'start':_0xc81ad4,'end':_0xc81ad4});}}for(const [_0x1a616a,_0x377112]of _0x565656){const _0x1057dd=this['editor']['model']['createRange'](_0x377112['start'],_0x377112['end']);_0x33d63d['markers']['set'](_0x1a616a,_0x1057dd);}return _0x526c5f['sort']((_0x3b6595,_0x58cd88)=>{const _0x4f81e3=_0x33d63d['markers']['get']('revision:'+_0x3b6595['id']),_0x49fb9d=_0x33d63d['markers']['get']('revision:'+_0x58cd88['id']);return _0x4f81e3['start']['isBefore'](_0x49fb9d['start'])?-0x1:_0x4f81e3['start']['isAfter'](_0x49fb9d['start'])?0x1:_0x4f81e3['end']['isBefore'](_0x49fb9d['end'])?-0x1:_0x4f81e3['end']['isAfter'](_0x49fb9d['end'])?0x1:'add'===_0x3b6595['type']?-0x1:0x1;}),{'root':_0x33d63d,'changes':_0x526c5f};function _0x5ab605(_0x6e9196,_0x942ddf,_0x483a23,_0x5f34fa){const _0x28e494=!!_0x54e49e[_0x942ddf][_0x6e9196],_0x8c901d=_0x28e494?_0x54e49e[_0x942ddf][_0x6e9196]['userId']:null,_0x2b554c=_0x942ddf===_0x54e49e['length']-0x1,_0x1aba3f=_0x28cda5[_0x6e9196][0x0],_0x4512b4=_0x2be5ff['isObject'](_0x54e49e[_0x942ddf]['item']);!_0x12b300[_0x6e9196]&&_0x28e494?_0x12b300[_0x6e9196]={'start':_0x483a23,'tapeItem':_0x54e49e[_0x942ddf],'userId':_0x8c901d,'type':_0x6e9196}:_0x12b300[_0x6e9196]&&!_0x28e494?(_0x12b300[_0x6e9196]['end']=_0x483a23,_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]=null):_0x12b300[_0x6e9196]&&_0x28e494&&_0x12b300[_0x6e9196]['userId']!==_0x8c901d&&(_0x12b300[_0x6e9196]['end']=_0x483a23,_0x1aba3f&&_0x1aba3f['userId']===_0x12b300[_0x6e9196]['userId']||_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]={'start':_0x483a23,'tapeItem':_0x54e49e[_0x942ddf],'userId':_0x8c901d,'type':_0x6e9196}),_0x12b300[_0x6e9196]&&_0x4512b4&&('elementStart'!==_0x54e49e[_0x942ddf]['type']||_0x1aba3f&&_0x1aba3f['userId']===_0x8c901d||_0x28cda5[_0x6e9196]['unshift']({'userId':_0x8c901d,'object':_0x54e49e[_0x942ddf]['item'],'change':_0x12b300[_0x6e9196]}),'elementEnd'===_0x54e49e[_0x942ddf]['type']&&_0x1aba3f&&_0x1aba3f['object']===_0x54e49e[_0x942ddf]['item']&&(_0x28cda5[_0x6e9196]['shift'](),_0x12b300[_0x6e9196]=_0x1aba3f['change'])),_0x12b300[_0x6e9196]&&_0x2b554c&&(_0x12b300[_0x6e9196]['end']=_0x5f34fa,_0x5dfa21(_0x12b300[_0x6e9196]),_0x12b300[_0x6e9196]=null);}function _0x5dfa21({start:_0x597485,end:_0x50f01e,tapeItem:_0x2ab816,userId:_0x2463f5,type:_0x11b73e}){const _0x48a827=_0x2ab816['item'],_0x3b2bc9=_0x52f176['schema']['isBlock'](_0x48a827)&&!_0x52f176['schema']['isLimit'](_0x48a827),_0x3216a4=_0x597485['nodeAfter']==_0x50f01e['parent']&&_0x50f01e['isAtStart'];if(_0x3b2bc9&&_0x3216a4)return;const _0x418d72=_0x52f176['createRange'](_0x597485,_0x50f01e),_0x302f23=_0x83720b['get'](_0x2463f5),_0xb4059a=new r({'author':_0x302f23,'type':'isAdded'==_0x11b73e||'isAddSuggestion'==_0x11b73e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x11b73e||'isRemoveSuggestion'==_0x11b73e},'createdAt':new Date(),'rootName':_0xbf47b0});_0x526c5f['push'](_0xb4059a),_0x33d63d['markers']['set']('revision:'+_0xb4059a['id'],_0x418d72);}function _0xe19954(_0x4ab999,_0x4017b6){const _0x341c58=_0x4ab999['getAttributes'](),_0x26bd1a=_0x4017b6['getAttributes']();for(const _0x1378d3 of _0x341c58){if(_0x1378d3[0x1]!==_0x4017b6['getAttribute'](_0x1378d3[0x0]))return!0x1;_0x26bd1a['next']();}return _0x26bd1a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x482302=>{const _0x38f7cc=_0x482302['markerName']['split'](':')[0x1],_0x2280ae=this['_getChangeFromId'](_0x38f7cc);if(!_0x2280ae)return null;const _0x3c74c0='add'==_0x2280ae['type']?'insertion':'deletion',_0x42ef74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c74c0];return _0x2280ae['data']['isSuggestion']&&_0x42ef74['push']('ck-suggestion-marker-'+_0x3c74c0+'-new'),this['activeChange']==_0x2280ae&&_0x42ef74['push']('ck-suggestion-marker--active'),{'classes':_0x42ef74,'attributes':{'data-change-id':_0x38f7cc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3ac511=>{_0x3ac511['on']('element:pre',(_0x32c02e,_0x359486,_0xec3179)=>{const _0x5beaf0=_0x359486['viewItem']['getChild'](0x0);if(!_0x5beaf0||!_0x5beaf0['is']('element','code'))return;if(!_0xec3179['consumable']['consume'](_0x5beaf0,{'attributes':['vid_start','vid_end']}))return;const _0x42e9df=_0x359486['modelRange']['start']['nodeAfter'];_0xec3179['writer']['setAttribute']('vid_start',_0x5beaf0['getAttribute']('vid_start'),_0x42e9df),_0xec3179['writer']['setAttribute']('vid_end',_0x5beaf0['getAttribute']('vid_end'),_0x42e9df);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x553e7d=>{_0x553e7d['on']('element',(_0x289642,_0x4985f0,_0x1968ef)=>{if(!_0x1968ef['consumable']['consume'](_0x4985f0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4985f0['modelRange']['isCollapsed'])return;const _0x52067d=_0x4985f0['modelRange']['start']['nodeAfter'];_0x52067d['hasAttribute']('vid_start')||_0x52067d['hasAttribute']('vid')||(_0x1968ef['writer']['setAttribute']('vid_start',_0x4985f0['viewItem']['getAttribute']('vid_start'),_0x52067d),_0x1968ef['writer']['setAttribute']('vid_end',_0x4985f0['viewItem']['getAttribute']('vid_end'),_0x52067d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x503968=>_0x503968['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c5fea,[,_0x42d188])=>{['vid_start','vid_end','vid']['includes'](_0x42d188)&&(_0x3c5fea['return']=!0x0,_0x3c5fea['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xf23c9b=>{_0xf23c9b['on']('attribute:vid',(_0x54d42d,_0x13fb4d,_0x23d09c)=>{if('\x20'!=_0x13fb4d['item']['data']||_0x13fb4d['item']['parent']['maxOffset']>0x1)return;if(!_0x23d09c['consumable']['consume'](_0x13fb4d['item'],_0x54d42d['name']))return;const _0x42578d=_0x23d09c['writer'],_0x2cccda=_0x23d09c['mapper']['toViewRange'](_0x13fb4d['range']);_0x42578d['wrap'](_0x2cccda,_0x42578d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3aa860){const _0x5d346a=_0x3aa860['plugins']['get']('RevisionViewer');return(_0x3d9318,_0xf5c196,_0x21c20f)=>{const _0x261649=_0xf5c196['markerName']['split'](':')[0x1],_0xa6a6e6=_0x5d346a['_getChangeFromId'](_0x261649);if(!_0xa6a6e6)return null;const _0x45d90a='add'==_0xa6a6e6['type']?'split':'merge';if(!_0x21c20f['consumable']['test'](_0xf5c196['markerRange'],_0x3d9318['name']))return;const _0x2ebffb=_0xf5c196['markerRange']['getWalker'](),_0x4f08e8=_0xf5c196['markerRange']['start'],_0x1d9cae=_0x3aa860['model']['schema'];let _0x3439d0=null,_0x584125=null,_0x55f238=!0x1,_0x5ca341=!0x1;for(const _0x1652af of _0x2ebffb){const _0x4f582e=_0x1652af['item'];_0x55f238=_0x55f238||_0x1d9cae['isContent'](_0x4f582e);const _0x95b279=_0x21c20f['mapper']['toViewElement'](_0x4f582e);if(_0x95b279&&_0x95b279['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1652af['type']&&(_0x1d9cae['isBlock'](_0x4f582e)&&!_0x1d9cae['isLimit'](_0x4f582e)&&(_0x4f582e['nextSibling']||_0x4f08e8['isAtEnd']?_0x3439d0&&_0x3439d0['parent']==_0x4f582e||(_0x3439d0=_0x4f582e,_0x3ae779(_0x1652af['previousPosition']),_0x5ca341=!0x0):_0x584125=_0x584125||_0x1652af['previousPosition']));}function _0x3ae779(_0x3764d7){const _0x4854f6=_0x21c20f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45d90a}),_0x21b508=_0x21c20f['mapper']['toViewPosition'](_0x3764d7);_0xa6a6e6['data']['isSuggestion']&&_0x21c20f['writer']['addClass']('ck-suggestion-marker-'+_0x45d90a+'-new',_0x4854f6),_0x5d346a['activeChange']==_0xa6a6e6&&_0x21c20f['writer']['addClass']('ck-suggestion-marker--active',_0x4854f6),_0x21c20f['writer']['insert'](_0x21b508,_0x4854f6),_0x21c20f['mapper']['bindElementToMarker'](_0x4854f6,_0xf5c196['markerName']);}_0x55f238||_0x5ca341||!_0x584125||_0x3ae779(_0x584125);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x223ee4,_0x29dd14,_0xd4ae9b)=>{const _0x5adcde=_0xd4ae9b['mapper']['markerNameToElements'](_0x29dd14['markerName']);if(_0x5adcde){for(const _0x2dffad of _0x5adcde)(_0x2dffad['hasClass']('ck-suggestion-marker-split')||_0x2dffad['hasClass']('ck-suggestion-marker-merge'))&&(_0xd4ae9b['mapper']['unbindElementFromMarkerName'](_0x2dffad,_0x29dd14['markerName']),_0xd4ae9b['writer']['remove'](_0x2dffad));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54b254,_0x114aa7,_0x1b76e3)=>{const _0x16df63=_0x114aa7['markerName']['split'](':')[0x1],_0x1d1f13=this['_getChangeFromId'](_0x16df63);if(!_0x1d1f13)return null;const _0x56f576='add'==_0x1d1f13['type']?'split':'merge';if(_0x1b76e3['consumable']['test'](_0x114aa7['markerRange'],_0x54b254['name']))for(const _0x3ff3c5 of _0x114aa7['markerRange']['getItems']()){if(!_0x3ff3c5['is']('element','softBreak'))continue;const _0x112fa4=_0x1b76e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56f576}),_0x57107c=_0x1b76e3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3ff3c5));_0x1d1f13['data']['isSuggestion']&&_0x1b76e3['writer']['addClass']('ck-suggestion-marker-'+_0x56f576+'-new',_0x112fa4),this['activeChange']==_0x1d1f13&&_0x1b76e3['writer']['addClass']('ck-suggestion-marker--active',_0x112fa4),_0x1b76e3['writer']['insert'](_0x57107c,_0x112fa4),_0x1b76e3['mapper']['bindElementToMarker'](_0x112fa4,_0x114aa7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4fdda5=>{for(const _0xa9e36a of this['editor']['model']['document']['getRootNames']()){const _0x23d395=this['editor']['model']['document']['getRoot'](_0xa9e36a),_0x4ef0c5=this['editor']['editing']['view']['document']['getRoot'](_0xa9e36a);if(_0x4ef0c5){const _0x2d6d6=_0x23d395['getAttribute']('revisionHistoryAttachChange');if(_0x4fdda5['removeAttribute']('data-change-id',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root-add',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root-remove',_0x4ef0c5),_0x4fdda5['removeClass']('ck-revision-history-root--active',_0x4ef0c5),_0x2d6d6){const _0xfc79c5=this['_getChangeFromId'](_0x2d6d6);if(!_0xfc79c5)return null;_0x4fdda5['setAttribute']('data-change-id',_0x2d6d6,_0x4ef0c5),_0x4fdda5['addClass']('ck-revision-history-root-'+_0xfc79c5['type'],_0x4ef0c5),this['activeChange']==_0xfc79c5&&_0x4fdda5['addClass']('ck-revision-history-root--active',_0x4ef0c5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x178a62=>'revision-comment:'+_0x178a62,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x38542c=>'revision-suggestion:'+_0x38542c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15bc13=>({'name':'suggestion:'+_0x15bc13,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5cc45c=>{const _0x1272bd=_0x5cc45c['markerName']['split'](':')[0x1];return'insertion'!=_0x1272bd&&'deletion'!=_0x1272bd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1272bd]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x524aca,_0x168f82,_0x245f48)=>{const _0x18dde1=_0x245f48['mapper']['markerNameToElements'](_0x168f82['markerName']);if(_0x18dde1){for(const _0x107693 of _0x18dde1)_0x107693['is']('uiElement')&&(_0x245f48['mapper']['unbindElementFromMarkerName'](_0x107693,_0x168f82['markerName']),_0x245f48['writer']['remove'](_0x107693));}},{'priority':'high'});}['_getChangeFromId'](_0x4c9f11){return this['_changeIdToChange']['get'](_0x4c9f11);}['_getViewForChange'](_0xe9a78b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xe9a78b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1adfef,_0x1df4ed,_0x2eb7e6,_0x3a3a8c)=>{_0x3a3a8c&&this['_balloon']['remove'](_0x3a3a8c),_0x2eb7e6&&(this['_balloon']['add']({'view':_0x2eb7e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1758db=this['editor']['editing'],_0xc9953a=this['_getChangeFromId'](_0x2eb7e6['changeId']);let _0x4dae9d;if(_0xc9953a['data']['isOnRoot']){const _0x54037e=_0x1758db['view']['getDomRoot'](_0xc9953a['rootName']);_0x4dae9d=Array['from'](_0x54037e['getClientRects']());}else{const _0x4b920b=this['editor']['model']['markers']['get']('revision:'+_0x2eb7e6['changeId']);_0x4dae9d=Array['from'](_0x1758db['mapper']['markerNameToElements'](_0x4b920b['name']))['map'](_0x4f5249=>_0x1758db['view']['domConverter']['mapViewToDom'](_0x4f5249))['map'](_0x3c4f77=>Array['from'](_0x3c4f77['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4dae9d[0x0];return _0x4dae9d['find'](_0x3e018a=>_0x3e018a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3e018a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3e018a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3e018a['right']+0x3>=this['_activeViewTarget']['x'])||_0x4dae9d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52d90a,_0xaf820e,_0x6a898d,_0x380dad)=>{this['activeView']=_0x6a898d?this['_getViewForChange'](_0x6a898d):null,this['editor']['model']['change'](()=>{const _0x5d03bb=this['editor']['editing'];_0x380dad&&(_0x380dad['data']['isOnRoot']?_0x5d03bb['view']['change'](_0x4c13f2=>{_0x4c13f2['removeClass']('ck-revision-history-root--active',_0x5d03bb['view']['document']['getRoot'](_0x380dad['rootName']));}):_0x5d03bb['reconvertMarker']('revision:'+_0x380dad['id'])),_0x6a898d&&(_0x6a898d['data']['isOnRoot']?_0x5d03bb['view']['change'](_0x3c5539=>{_0x3c5539['addClass']('ck-revision-history-root--active',_0x5d03bb['view']['document']['getRoot'](_0x6a898d['rootName']));}):_0x5d03bb['reconvertMarker']('revision:'+_0x6a898d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xda8387,_0x572f4b)=>{if(this['activeChange'])return;const _0x360f6f=this['_findChangeIdFromDomTarget'](_0x572f4b['target']),_0x4eff75=this['_changeIdToChange']['get'](_0x360f6f);_0x4eff75?(this['_activeViewTarget']={'x':_0x572f4b['domEvent']['x'],'y':_0x572f4b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4eff75)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x271bed,_0x128384)=>{const _0x103bd7=this['_findChangeIdFromDomTarget'](_0x128384['target']),_0x2d1870=this['_changeIdToChange']['get'](_0x103bd7);_0x2d1870?(this['_activeViewTarget']={'x':_0x128384['domEvent']['x'],'y':_0x128384['domEvent']['y']},_0x2d1870===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d1870):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xfeb567){do{const _0x4021a5=_0xfeb567['getAttribute']('data-change-id');if(_0x4021a5)return _0x4021a5;_0xfeb567=_0xfeb567['parent'];}while(_0xfeb567);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x26f367=>{for(const _0x40c6cc of this['editor']['model']['markers'])_0x26f367['removeMarker'](_0x40c6cc);});}}function X(_0x291d9a,_0x143acc){return(_0x12ccb0,_0x397975,_0x415491)=>{if(!_0x415491['consumable']['test'](_0x397975['markerRange'],_0x12ccb0['name']))return;const _0x31de4c=_0x397975['markerRange']['getWalker'](),_0x57af88=_0x397975['markerRange']['start'],_0x9141e1=_0x291d9a['model']['schema'];let _0x377d91=null,_0x460a29=null,_0x135671=!0x1,_0x2cd2c3=!0x1;for(const _0x18dec of _0x31de4c){const _0xf1d109=_0x18dec['item'];_0x135671=_0x135671||_0x9141e1['isContent'](_0xf1d109);const _0x5312b4=_0x415491['mapper']['toViewElement'](_0xf1d109);if(_0x5312b4&&_0x5312b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18dec['type']&&(_0x9141e1['isBlock'](_0xf1d109)&&!_0x9141e1['isLimit'](_0xf1d109)&&(_0xf1d109['nextSibling']||_0x57af88['isAtEnd']?_0x377d91&&_0x377d91['parent']==_0xf1d109||(_0x377d91=_0xf1d109,_0x15552b(_0x18dec['previousPosition']),_0x2cd2c3=!0x0):_0x460a29=_0x460a29||_0x18dec['previousPosition']));}function _0x15552b(_0x1a860b){const _0xa99fe=_0x415491['mapper']['toViewPosition'](_0x1a860b),_0x24054d=_0x415491['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x143acc});_0x415491['writer']['insert'](_0xa99fe,_0x24054d),_0x415491['mapper']['bindElementToMarker'](_0x24054d,_0x397975['markerName']);}_0x135671||_0x2cd2c3||!_0x460a29||_0x15552b(_0x460a29);};}class wt extends _0x235e90{constructor(_0x4173a8){super(_0x4173a8);const _0x3392ff=_0x4173a8['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3392ff,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3392ff,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a23e4=this['editor'],_0x2280bf=_0x4a23e4['plugins']['get'](m),_0x231759=_0x2280bf['isReady']?_0x2280bf['diff']['newRevisionId']:null;_0x4a23e4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x231759);}['refresh'](){const {isReady:_0x49aa99,isEnabled:_0x157e50,repository:_0x414a03,diff:_0x4c636a}=this['editor']['plugins']['get'](m),_0x3aac62=_0x4c636a&&_0x414a03['getLaterVisibleRevision'](_0x4c636a['newRevisionId']);this['isEnabled']=_0x49aa99&&_0x157e50&&Boolean(_0x3aac62);}}class pt extends _0x235e90{['_step'];constructor(_0x10eec6,{direction:_0x38a3f5}){super(_0x10eec6);const _0xe24054=_0x10eec6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x38a3f5?0x1:-0x1,this['listenTo'](_0xe24054,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe24054,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xe24054,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x530375=this['editor'],_0x367be5=_0x530375['plugins']['get'](m),{isNavigationMode:_0x29ece9,currentChangeNumber:_0x472ff5}=_0x367be5;let _0x168c60;if(_0x367be5['activeChange']=_0x29ece9?_0x367be5['diff']['changes']['get'](_0x472ff5+this['_step']):_0x367be5['diff']['changes']['first'],_0x367be5['activeChange']['data']['isOnRoot'])_0x168c60=_0x530375['editing']['view']['getDomRoot'](_0x367be5['activeChange']['rootName']);else{const _0x240ddd=_0x530375['model']['markers']['get']('revision:'+_0x367be5['activeChange']['id']);_0x168c60=_0x333dad(_0x530375['editing'],_0x240ddd);}_0x698de3({'target':_0x168c60,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xe128ca,currentChangeNumber:_0x5b8a56,numberOfChanges:_0x53df16,isReady:_0x2d38bd,isEnabled:_0x2135c2}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2135c2&&_0x2d38bd&&_0x53df16)&&(!_0xe128ca||(0x1===this['_step']?_0x5b8a56<_0x53df16-0x1:_0x5b8a56>0x0));}}class _i extends _0x39cfbe{constructor(_0x57f8ca){super(_0x57f8ca);const _0x43decb=this['bindTemplate'],_0x2ca02f=new _0x2e3194(_0x57f8ca),_0x5000ef=new _0x2e3194(_0x57f8ca);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',(_0x27f260,_0x2a7f50)=>_0x27f260&&_0x2a7f50>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bcfce,_0x1c7462,_0x2e89a7,_0x44b3eb)=>{if(!_0x3bcfce)return g(_0x57f8ca,'Loading...');if(!_0x2e89a7)return g(_0x57f8ca,'No\x20changes');const _0x24bf4a=g(_0x57f8ca,'NUMBER_OF_CHANGES',_0x2e89a7);return _0x44b3eb?g(_0x57f8ca,'X_OF_Y_CHANGES',[_0x1c7462+0x1,_0x2e89a7]):_0x24bf4a;}),_0x2ca02f['set']({'label':g(_0x57f8ca,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x28f55c}),_0x5000ef['set']({'label':g(_0x57f8ca,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x15d7a2}),_0x2ca02f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5000ef['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ca02f['on']('execute',()=>this['fire']('execute','backward')),_0x5000ef['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',_0x43decb['if']('_isStatusLabelVisible','ck-hidden',_0x2b37a1=>!_0x2b37a1)]},'children':[{'text':_0x43decb['to']('isNavigationMode',_0x1cbbbb=>_0x1cbbbb?g(_0x57f8ca,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x57f8ca,'Total')+':\x20')}]},{'text':_0x43decb['to']('_statusText')}]},new _0x5e79f7(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ca02f,_0x5000ef]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x425a55{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x25d9c9=this['editor']['editing']['view'];_0x25d9c9['change'](_0x4e624e=>{for(const _0x1bdfeb of _0x25d9c9['document']['roots'])_0x4e624e['addClass'](ce,_0x1bdfeb);});}['hide'](){const _0x35689b=this['editor']['editing']['view'];_0x35689b['change'](_0x40ef21=>{for(const _0x276a26 of _0x35689b['document']['roots'])_0x40ef21['removeClass'](ce,_0x276a26);});}}class R extends _0x425a55{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0xd80a35=this['editor'],_0xa7366d=_0xd80a35['plugins']['get'](m),_0x59f044=_0xd80a35['plugins']['get'](le);_0xd80a35['ui']['componentFactory']['add']('exitToEditing',_0x213efb=>{const _0x57f800=new _0x2e3194(_0x213efb);return _0x57f800['set']({'label':g(_0x213efb,'Back\x20to\x20editing'),'icon':_0xfb9832,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x57f800,'execute',()=>{_0xd80a35['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x57f800;}),_0xd80a35['ui']['componentFactory']['add']('restoreRevision',_0x26f7d9=>{const _0x352b81=new _0x2e3194(_0x26f7d9);return _0x352b81['set']({'label':g(_0x26f7d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x352b81['bind']('isEnabled')['to'](_0xd80a35['commands']['get']('restoreRevision')),this['listenTo'](_0x352b81,'execute',()=>_0xd80a35['execute']('restoreRevision')),_0x352b81;}),_0xd80a35['ui']['componentFactory']['add']('changesNavigation',_0x26038b=>{const _0x1cc757=new _i(_0x26038b),_0x9826aa=_0xd80a35['commands']['get']('showPreviousChange'),_0x39209d=_0xd80a35['commands']['get']('showNextChange');return _0x1cc757['bind']('isBackwardNavigationEnabled')['to'](_0x9826aa,'isEnabled'),_0x1cc757['bind']('isForwardNavigationEnabled')['to'](_0x39209d,'isEnabled'),_0x1cc757['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xa7366d),this['listenTo'](_0x1cc757,'execute',(_0x454b7c,_0x599d41)=>{_0xd80a35['execute']('forward'===_0x599d41?'showNextChange':'showPreviousChange');}),_0x1cc757;}),_0x59f044['show'](),_0xa7366d['on']('change:isReady',(_0x3832d0,_0x2caf3c,_0x51bbbd)=>{_0x51bbbd?_0x59f044['hide']():_0x59f044['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x18cf09,_0x159098){super(_0x18cf09,_0x159098);const _0x3dd3a9=this['bindTemplate'];this['set']({'label':g(_0x18cf09,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x18cf09,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3dd3a9['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 _0x486ae5=this['fieldView']['element'];this['_tooltipString']=_0x486ae5['scrollWidth']>_0x486ae5['clientWidth']&&_0x486ae5['value']||'';}}class oi extends _0x39cfbe{constructor(_0x4b4d07,_0x32c842,_0x22aeee){super(_0x4b4d07);const _0x29ee45=new _0x43ff91();_0x29ee45['set']({'content':_0x171f71,'viewBox':'0\x200\x2011\x2010'});const _0x3d9b01=['ck','ck-revision-history-sidebar__revision-author'];_0x22aeee&&_0x3d9b01['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5e118d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4b4d07,_0x22aeee?'Revision\x20creator':'Revision\x20author')},'children':[_0x29ee45,_0x32c842['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d9b01},'children':_0x5e118d});}}function ni(_0x1f11f0,_0x315bf0){const _0x3848eb=_0x1f11f0['bindTemplate'],_0x28003a=_0x1f11f0['locale'],_0x2ede14=_0x2f3f6b(_0x28003a);_0x2ede14['panelPosition']='sw';const _0x1aa8a0=function(_0x3311ef,_0x21bbf2){const _0x43cf38=function(_0x5b4391,_0x47c6f7){const _0x3b3f9b=_0x5b4391['locale'],_0x5651a5={'Compare\x20against\x20selected':g(_0x3b3f9b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3b3f9b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3b3f9b,'Restore\x20this\x20revision')};return _0x47c6f7['map'](_0x3bce8d=>{const _0x49f9d8=_0x5651a5[_0x3bce8d['name']];return _0x49f9d8&&_0x49f9d8!==_0x3bce8d['name']&&(_0x3bce8d['name']=_0x49f9d8),_0x3bce8d;});}(_0x3311ef,_0x21bbf2),_0x5e6bb4=new _0x58d884();for(const _0x4bd617 of _0x43cf38){const _0x29ba85={'type':'button','model':new to({'label':_0x4bd617['name'],'class':_0x4bd617['class'],'withText':!0x0,'role':'menuitem','_action':_0x4bd617['action']})};_0x29ba85['model']['bind']('isEnabled')['to'](_0x3311ef,'isActionsDropdownOpen',_0x4c9114=>'function'!=typeof _0x4bd617['isEnabled']||(!_0x4c9114||_0x4bd617['isEnabled'](_0x3311ef))),_0x5e6bb4['add'](_0x29ba85);}return _0x5e6bb4;}(_0x1f11f0,_0x315bf0);return _0x1f11f0['bind']('isActionsDropdownOpen')['to'](_0x2ede14,'isOpen'),_0x2ede14['buttonView']['set']({'label':g(_0x28003a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x35f117}),_0x2ede14['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3848eb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3848eb['to'](_0x55ef01=>_0x55ef01['stopPropagation']())}}),_0x2ede14['on']('execute',_0x354fcc=>{_0x1f11f0['isReady']&&'function'==typeof _0x354fcc['source']['_action']&&_0x354fcc['source']['_action'](_0x1f11f0);}),_0x101f1a(_0x2ede14,_0x1aa8a0,{'role':'menu'}),_0x2ede14['listenTo'](_0x1f11f0,'change:isActionsDropdownOpen',(_0x3b5c66,_0x12a12e,_0x2e8653)=>{if(_0x2e8653)for(const _0x5a3eaa of _0x2ede14['listView']['items']){const _0x3d7d5d=_0x5a3eaa['children']['first'],_0x85d131=_0x315bf0['find'](_0x4a6d03=>_0x4a6d03['action']===_0x3d7d5d['_action'])['isVisible'];_0x5a3eaa['isVisible']=void 0x0===_0x85d131||_0x85d131(_0x1f11f0);}}),_0x2ede14;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1c40d5(_0x39cfbe){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x41c7c0,_0x2e6999,_0x15041f,_0x3f1d0d){super(_0x41c7c0);const _0x5234b2=this['bindTemplate'],_0x5f8bf6=function(_0x40d764,_0x25c741){const _0x5ef324=Array['from'](_0x25c741['authors'])['filter'](_0x4b38d8=>_0x4b38d8!=_0x25c741['creator']);return _0x25c741['creator']&&_0x5ef324['unshift'](_0x25c741['creator']),_0x5ef324['map'](_0x2f2993=>new oi(_0x40d764,_0x2f2993,_0x2f2993==_0x25c741['creator']));}(_0x41c7c0,_0x2e6999);this['id']=_0x2e6999['id'],this['_revision']=_0x2e6999,this['_requireRevisionName']=_0x3f1d0d,this['bind']('name','createdAt')['to'](_0x2e6999),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xcc5b4a=>{return _0x374cd1=_0x41c7c0['uiLanguage'],(_0xf49654=_0xcc5b4a)['toLocaleDateString'](_0x374cd1,{'month':'long','day':'numeric'})+',\x20'+_0xf49654['toLocaleTimeString'](_0x374cd1,{'hour':'numeric','minute':'numeric'});var _0x374cd1,_0xf49654;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x41c7c0,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3647a5=>_0x3647a5||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2780bf,_0xa5d028)=>_0x2780bf&&_0xa5d028),this['revisionActionsView']=_0x15041f&&_0x15041f['length']?ni(this,_0x15041f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5234b2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5234b2['if']('isEnabled','ck-disabled',_0x2d0b54=>!_0x2d0b54),_0x5234b2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5234b2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5234b2['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':_0x5234b2['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':_0x5f8bf6}]},this['revisionActionsView']],'on':{'click':_0x5234b2['to'](_0x274550=>{_0x274550['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x368b02=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x368b02,'change',()=>{this['_requireRevisionName']&&!_0x368b02['value']||this['fire']('setName',{'id':this['id'],'name':_0x368b02['value']}),_0x368b02['value']||(_0x368b02['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(_0x1bd92f,_0x2d88d2){const _0x1a4c46=_0x1f6c3a['fromJSDate'](_0x1bd92f)['setLocale'](_0x2d88d2),_0x3c2aab=_0x1f6c3a['local'](),_0x346da7=_0x3c2aab['minus']({'days':0x1})['startOf']('day');let _0x5d9c98,_0x2a563f;return _0x1a4c46['hasSame'](_0x3c2aab,'day')?(_0x5d9c98=_0x1a4c46['startOf']('day')['toJSDate'](),_0x2a563f=_0x1a4c46['toRelativeCalendar']()):_0x1a4c46['hasSame'](_0x346da7,'day')?(_0x5d9c98=_0x346da7['toJSDate'](),_0x2a563f=_0x1a4c46['toRelativeCalendar']()):_0x1a4c46['hasSame'](_0x3c2aab,'week')?(_0x5d9c98=_0x1a4c46['startOf']('week')['toJSDate'](),_0x2a563f=_0x1a4c46['weekdayLong']||''):_0x1a4c46['hasSame'](_0x3c2aab,'year')?(_0x5d9c98=_0x1a4c46['startOf']('month')['toJSDate'](),_0x2a563f=_0x1a4c46['monthLong']||''):(_0x5d9c98=_0x1a4c46['startOf']('year')['toJSDate'](),_0x2a563f=String(_0x1a4c46['year'])),{'startDate':_0x5d9c98,'localizedPeriodName':_0x2a563f};}class mi extends _0x39cfbe{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4db1b5,_0x18405c,_0x2f5eaa,_0x1f5b60){super(_0x4db1b5);const _0x4e9200=vi(_0x18405c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x18405c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2f5eaa,this['_requireRevisionName']=_0x1f5b60,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':_0x4e9200}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x49f9af){const _0x1cd15f=new ai(this['locale'],_0x49f9af,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1cd15f);}['removeRevision'](_0x2e212c){const _0x36ed84=this['revisionViews']['find'](_0x4a00f9=>_0x4a00f9['id']===_0x2e212c['id']);this['revisionViews']['remove'](_0x36ed84);}}class as extends _0x39cfbe{constructor(_0x5e610f){super(_0x5e610f);const _0x59a9ad=new _0x43ff91();_0x59a9ad['content']=_0x4280c8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59a9ad,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5e610f,'Revision\x20history')]}]});}}class di extends _0x39cfbe{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x529b68,_0xd08432,_0x4838a2,_0x4f54bc){super(_0x529b68);const _0x3a582a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd08432,this['_revisionActions']=_0x4838a2,this['_requireRevisionName']=_0x4f54bc,this['on']('select',(_0x3ff61f,_0x492eec)=>{this['fire']('revisionSelected',_0x492eec);}),this['on']('setName',(_0x465e29,_0x4b6a23)=>{this['fire']('revisionSetName',_0x4b6a23);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x529b68),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3a582a['if']('isEnabled','ck-disabled',_0x4702c9=>!_0x4702c9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x187d53 of this['_revisions'])this['_addRevision'](_0x187d53);this['_revisions']['on']('add',(_0x3053d9,_0xb2a5e0)=>{this['_addRevision'](_0xb2a5e0);}),this['_revisions']['on']('remove',(_0x2b0b72,_0x855cd0)=>{this['_removeRevision'](_0x855cd0);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x40ec05=>_0x40ec05['revisionViews']['map'](_0x2e89c5=>_0x2e89c5))['flat']();}['selectRevision'](_0x1e64da){for(const _0x4afeb2 of this['revisionViews'])_0x1e64da&&_0x1e64da['id']===_0x4afeb2['id']?_0x4afeb2['select']():_0x4afeb2['deselect']();}['highlightRevisions'](_0x35a66d){for(const _0x9aba08 of this['revisionViews'])_0x35a66d['some'](({id:_0x56564b})=>_0x56564b===_0x9aba08['id'])?_0x9aba08['highlight']():_0x9aba08['unhighlight']();}['_addRevision'](_0x4b5786){const _0x4883f4=vi(_0x4b5786['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x194a55=this['timePeriodViews']['get'](0x0);_0x194a55&&_0x194a55['startDate']['getTime']()===_0x4883f4['getTime']()||(_0x194a55=new mi(this['locale'],_0x4883f4,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x194a55)),_0x194a55['addRevision'](_0x4b5786);}['_removeRevision'](_0xd9ebd9){const _0x3906e6=vi(_0xd9ebd9['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3906e6)['removeRevision'](_0xd9ebd9);}['_getTimePeriodViewByStartDate'](_0x1f09ee){return this['timePeriodViews']['find'](_0x14f0a4=>_0x14f0a4['startDate']['getTime']()===_0x1f09ee['getTime']());}}class d extends _0x425a55{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x583c2e,uid as _0x57d2cb,Collection as _0x20fb32,logWarning as _0x151264,FocusTracker as _0x5eeeb9,KeystrokeHandler as _0x2bed51,scrollViewportToShowTarget as _0x3985f8,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x1e0d91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5765cb,set as _0x150a09,unset as _0x1f0564,isEqual as _0x171f44}from'es-toolkit/compat';import{Plugin as _0x467a15,PendingActions as _0x2fd44b,Command as _0x130ccb,ElementApiMixin as _0x4753c3,Editor as _0x41b39a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x164c4c,getMarkerDomElement as _0x353784,ConfirmMixin as _0x15303f,sanitizeEditorConfig as _0x1b8334}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x34e179,ViewAttributeElement as _0x257f86,ViewEmptyElement as _0x44d94e,ViewRawElement as _0x19a24e,ViewUIElement as _0x4d9bda,ViewDocumentFragment as _0x58171e,ViewText as _0x3be512,ViewElement as _0x2d9bd2,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x11f442,IconChevronUp as _0xea41e4,IconChevronDown as _0x40586f,IconUndo as _0xa6d7b,IconUser as _0x50a058,IconThreeVerticalDots as _0x1b7c4a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x28aef4,submitHandler as _0x3e875d,LabeledFieldView as _0x5e368c,createLabeledInputText as _0x27bde4,createDropdown as _0x1bbc66,ListView as _0x423895,ListItemView as _0x4e47b7,ButtonView as te,MenuBarMenuView as _0x3bae41,MenuBarMenuListView as _0x319907,MenuBarMenuListItemView as _0x23c40d,MenuBarMenuListItemButtonView as _0x22a9b2,ContextualBalloon as _0x40ff0f,ToolbarSeparatorView as _0x5518ad,IconView as _0x3b9592,addListToDropdown as _0x4e7e23,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4d9239}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x583c2e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x176449){super(),this['id']=_0x176449['id']||_0x57d2cb(),this['creator']=_0x176449['creator']||null,this['authors']=_0x176449['authors']||[],this['diffData']=_0x176449['diffData']||null,this['toVersion']=_0x176449['toVersion']||0x0,this['fromVersion']=_0x176449['fromVersion']||0x0,this['set']('name',_0x176449['name']||''),this['set']('createdAt',_0x176449['createdAt']||new Date()),this['set']('attributes',_0x176449['attributes']||{});}['setName'](_0x2d42cf){this['_update']({'name':_0x2d42cf});}['setAttribute'](_0x4ca3d4,_0x12327d){const _0x4ba2c1=_0x5765cb(this['attributes']);_0x150a09(_0x4ba2c1,_0x4ca3d4,_0x12327d),this['_update']({'attributes':_0x4ba2c1});}['removeAttribute'](_0x2a66f7){const _0x2ca226=_0x5765cb(this['attributes']);_0x1f0564(_0x2ca226,_0x2a66f7),this['_update']({'attributes':_0x2ca226});}['_update'](_0x202eb7,_0x372ba7=!0x1){let _0x144b5d=!0x1;const _0x5157a0={'id':this['id']},_0x1de491=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x83b451 of _0x1de491){const _0x48b075=_0x202eb7[_0x83b451];void 0x0!==_0x48b075&&_0x48b075!==this[_0x83b451]&&(this[_0x83b451]=_0x48b075,_0x5157a0[_0x83b451]=_0x48b075,_0x144b5d=!0x0);}_0x144b5d&&(_0x5157a0['authors']&&(_0x5157a0['authorsIds']=_0x5157a0['authors']['map'](_0xb9e348=>_0xb9e348['id']),delete _0x5157a0['authors']),this['fire']('_update',_0x5157a0,_0x372ba7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ed7ea=>_0x5ed7ea['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x467a15{['_revisions'];static get['requires'](){return[_0x164c4c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x370c56){super(_0x370c56),this['_revisions']=new _0x20fb32();}['afterInit'](){!async function(_0x401b14){const _0x460f8b=_0x1ab014([0x71,0x46,0x68,0x78,0x61,0x4c,0x50,0x42,0x70,0x73,0x75,0x52,0x4a,0x6e,0x35,0x55,0x38,0x51,0x67,0x6f,0x6a,0x62,0x30,0x44,0x74,0x32,0x6d,0x72,0x39,0x4e,0x33,0x48,0x76,0x49,0x36,0x58,0x43,0x7a,0x53,0x69,0x41,0x34,0x59,0x4b,0x6c,0x66,0x77,0x5a,0x64,0x45,0x47,0x63,0x4f,0x54,0x4d,0x6b,0x57,0x37,0x56,0x31,0x79,0x65]),_0x2c7b3a=0xeb829,_0x2b791d=0x20152130,_0x237390=0x201247c8^_0x2b791d,_0x17cd35=window[_0x1ab014([0x44,0x61,0x74,0x65])][_0x1ab014([0x6e,0x6f,0x77])](),_0xb78c19=_0x401b14[_0x1ab014([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x218314=new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a287=>{_0xb78c19[_0x1ab014([0x6f,0x6e,0x63,0x65])](_0x1ab014([0x72,0x65,0x61,0x64,0x79]),_0x26a287);}),_0x260123={[_0x1ab014([0x6b,0x74,0x79])]:_0x1ab014([0x45,0x43]),[_0x1ab014([0x75,0x73,0x65])]:_0x1ab014([0x73,0x69,0x67]),[_0x1ab014([0x63,0x72,0x76])]:_0x1ab014([0x50,0x2d,0x32,0x35,0x36]),[_0x1ab014([0x78])]:_0x1ab014([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]),[_0x1ab014([0x79])]:_0x1ab014([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]),[_0x1ab014([0x61,0x6c,0x67])]:_0x1ab014([0x45,0x53,0x32,0x35,0x36])},_0x55d66f=_0xb78c19[_0x1ab014([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ab014([0x67,0x65,0x74])](_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30a9ed(){let _0x26ac67,_0x50b61=null,_0x18997e=null;try{if(_0x55d66f==_0x1ab014([0x47,0x50,0x4c]))return _0x1ab014([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26ac67=_0x52bff1(),!_0x26ac67)return _0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26ac67[_0x1ab014([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18997e=_0x3ac1c2(_0x26ac67[_0x1ab014([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26ac67[_0x1ab014([0x6a,0x74,0x69])])),await _0x4d572f()?_0x28b349()?_0x347872()?_0x1ab014([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2587f3()?(_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab014([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b61=_0xc73ec8(_0x1ab014([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab014([0x74,0x72,0x69,0x61,0x6c])&&(_0x50b61=_0xc73ec8(_0x1ab014([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b78c8()):_0x1ab014([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab014([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52c943){return _0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x347872(){const _0x3955e6=[_0x1ab014([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ab014([0x74,0x72,0x69,0x61,0x6c])][_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17cd35/0x3e8:0xe10*_0x237390;return _0x26ac67[_0x1ab014([0x65,0x78,0x70])]<_0x3955e6;}function _0x28b349(){const _0x1f9ac7=_0x26ac67[_0x1ab014([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1f9ac7)return!0x1;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x2a])))return!0x0;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x52,0x48])))return!0x0;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x52,0x52,0x48]))){if(_0xbcda16())return!0x0;if(_0x2cae35()||_0x4efcf2())return!0x0;}return!0x1;}function _0x2587f3(){const _0x159f16=_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x159f16||0x0==_0x159f16[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5392}=new URL(window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x159f16[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5392))return!0x0;const _0x5888b1=_0x2d5392[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e]));return _0x159f16[_0x1ab014([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dd6ce=>_0x5dd6ce[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x2a])))[_0x1ab014([0x6d,0x61,0x70])](_0x30a754=>_0x30a754[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e])))[_0x1ab014([0x73,0x6f,0x6d,0x65])](_0x5b879c=>_0x5888b1[_0x1ab014([0x65,0x76,0x65,0x72,0x79])]((_0x40d726,_0x332a3d)=>_0x5b879c[_0x332a3d]===_0x40d726||_0x5b879c[_0x332a3d]===_0x1ab014([0x2a])));}function _0x3b78c8(){return _0x50b61&&_0x18997e?new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34a434,_0x4fce9d)=>{_0x50b61[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x34a434,_0x4fce9d),_0x18997e[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x34212b=>{_0x34212b!=_0x1ab014([0x56,0x61,0x6c,0x69,0x64])&&_0x34a434(_0x34212b);},_0x4fce9d);}):_0x50b61||_0x18997e||_0x1ab014([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac1c2(_0x2cb9bd,_0x2a7480){return new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebd66=>{if(_0x45cae0())return _0x2ebd66(_0x1ab014([0x56,0x61,0x6c,0x69,0x64]));_0x275a7b(),_0xb78c19[_0x1ab014([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cb19e=!0x1;const _0x16ace8=_0x57d2cb();function _0x1e1857(_0x38bacc){return!!_0x38bacc&&(typeof _0x38bacc===_0x1ab014([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38bacc===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38bacc[_0x1ab014([0x74,0x68,0x65,0x6e])]===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38bacc[_0x1ab014([0x63,0x61,0x74,0x63,0x68])]===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c1931(_0x5d8d81){_0x1fe555(_0x5d8d81)[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x5f5562=>{if(!_0x5f5562||_0x5f5562[_0x1ab014([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ab014([0x6f,0x6b]))return _0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c99e7(_0x418e99(_0x16ace8+_0x2a7480))!=_0x5f5562[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab014([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x67a8f2=>(_0x457b93(),_0x67a8f2),()=>{const _0x529784=_0x1f22db();return null==_0x529784?(_0x457b93(),_0x1ab014([0x56,0x61,0x6c,0x69,0x64])):_0x1ab014(_0x17cd35-_0x529784>(0x419a530^_0x2b791d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x2ebd66)[_0x1ab014([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14f169=0x2023cfb0^_0x2b791d;function _0x457b93(){const _0x50aeba=_0x1ab014([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c99e7(_0x418e99(_0x2cb9bd)),_0xda59f4=_0x4cd51d(_0x2c99e7(window[_0x1ab014([0x4d,0x61,0x74,0x68])][_0x1ab014([0x63,0x65,0x69,0x6c])](_0x17cd35/_0x14f169)));window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab014([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50aeba,_0xda59f4);}function _0x1f22db(){const _0xe078e3=_0x1ab014([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c99e7(_0x418e99(_0x2cb9bd)),_0x5f0818=window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab014([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe078e3);return _0x5f0818?window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd51d(_0x5f0818),0x10)*_0x14f169:null;}function _0x1fe555(_0x34ccea){return new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7c5554,_0x3e04ba)=>{_0x34ccea[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x7c5554,_0x3e04ba),window[_0x1ab014([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e04ba,0x2014f5f0^_0x2b791d);});}}_0xb78c19[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dbd9e,_0x47779e)=>{if(_0x47779e[0x0]!=_0x2cb9bd)return _0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47779e[0x1]={..._0x47779e[0x1],[_0x1ab014([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ace8};},{[_0x1ab014([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab014([0x68,0x69,0x67,0x68])}),_0xb78c19[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b9a9c=>{_0x1e1857(_0x2b9a9c[_0x1ab014([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cb19e=!0x0,_0x1c1931(_0x2b9a9c[_0x1ab014([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ab014([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab014([0x6c,0x6f,0x77])}),_0x218314[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>{_0x1cb19e||_0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45cae0(){return _0xb78c19[_0x1ab014([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab014([0x76,0x69,0x65,0x77])][_0x1ab014([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ab014([0x61,0x75,0x74,0x6f]);}function _0x275a7b(){_0xb78c19[_0x1ab014([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab014([0x76,0x69,0x65,0x77])][_0x1ab014([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ab014([0x61,0x75,0x74,0x6f]);}}function _0xc73ec8(_0x225481){const _0x1c7301=[new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583327=>setTimeout(_0x583327,0x201c1ffc^_0x2b791d)),_0x218314[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e882c=>{const _0x220a07=0x20152137^_0x2b791d,_0x1ed6e8=_0x401b14[_0x1ab014([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x397c01(){_0x1ed6e8[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x220a07&&_0x1e882c();}_0x397c01(),_0x1ed6e8[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x61,0x64,0x64]),_0x397c01);})),new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e9408=>{function _0x338b4e(){for(const _0x27cf0e in window)if(window[_0x1ab014([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ab014([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x27cf0e))&&window[_0x27cf0e]==_0x2c7b3a)return _0x5e9408();_0xb78c19[_0x1ab014([0x73,0x74,0x61,0x74,0x65])]!=_0x1ab014([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ab014([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x338b4e,0x201532b8^_0x2b791d);}_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x338b4e();})];return window[_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ab014([0x72,0x61,0x63,0x65])](_0x1c7301)[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>_0x225481);}async function _0x520e5f(){if(await _0x218314,_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4bc1f9=_0x401b14[_0x1ab014([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x212533=_0x401b14[_0x1ab014([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])](_0x4bc1f9[_0x1ab014([0x69,0x64])]),_0x32604c=_0x26e11e(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32604c[_0x1ab014([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4bc1f9['id'],_0x212533?_0x212533['id']:null,!0x0),_0x32604c[_0x1ab014([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32604c[_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32604c[_0x1ab014([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1e6271,void(_0x32604c[_0x1ab014([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1e6271);}if(_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x21b25b=_0x26e11e(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x21b25b[_0x1ab014([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21b25b[_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21b25b[_0x1ab014([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1e6271,_0x21b25b[_0x1ab014([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1e6271;}_0xb78c19[_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab014([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e6271,_0xb78c19[_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab014([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e6271,_0xb78c19[_0x1ab014([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbcda16(){return _0x2b2892(_0x1ab014([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26e11e(_0x1ab014([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ab014([0x73,0x74,0x61,0x74,0x65])]==_0x1ab014([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cae35(){return _0x2b2892(_0x1ab014([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 _0x4efcf2(){return _0x2b2892(_0x1ab014([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x459285(_0x591e4e){const _0x234b48=_0x37454a();_0xb78c19[_0x234b48]=_0x1ab014([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])+_0x591e4e,_0x591e4e[_0x1ab014([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ab014([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x37454a()]=_0x2c7b3a),_0x591e4e!=_0x1ab014([0x56,0x61,0x6c,0x69,0x64])&&_0x520e5f();}function _0x37454a(){const _0x4e02b3=window[_0x1ab014([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ab014([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ab014([0x6e,0x6f,0x77])]())[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ab014([0x2e]),'');let _0x58201e=_0x1ab014([0x71]);for(let _0x17ebfe=0x0;_0x17ebfe<_0x4e02b3[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17ebfe+=0x2){let _0x1c5873=window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e02b3[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17ebfe,_0x17ebfe+0x2));_0x1c5873>=_0x460f8b[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c5873-=_0x460f8b[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58201e+=_0x460f8b[_0x1c5873];}return _0x58201e;}function _0x52bff1(){const _0x28b456=_0x55d66f[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e]));if(0x3!=_0x28b456[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53d25b(_0x28b456[0x1]);function _0x53d25b(_0x2522b7){const _0xce43c7=_0x81a40a(_0x2522b7);return _0xce43c7&&_0x43344d()?_0xce43c7:null;function _0x43344d(){const _0xb87e35=_0xce43c7[_0x1ab014([0x6a,0x74,0x69])],_0x12542d=window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb87e35[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb87e35[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460ded={..._0xce43c7,[_0x1ab014([0x6a,0x74,0x69])]:_0xb87e35[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb87e35[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460ded[_0x1ab014([0x76,0x63])],_0x418e99(_0x460ded)==_0x12542d;}}}async function _0x4d572f(){let _0x335063=!0x0;try{const _0x37ef91=_0x55d66f[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e])),[_0x2ad6d1,_0x19ac91,_0x3f7711]=_0x37ef91;return _0x369e5a(_0x2ad6d1),await _0x269bfb(_0x2ad6d1,_0x19ac91,_0x3f7711),_0x335063;}catch(_0x584941){return!0x1;}function _0x369e5a(_0x585c27){const _0x31494e=_0x81a40a(_0x585c27);_0x31494e&&_0x31494e[_0x1ab014([0x61,0x6c,0x67])]==_0x1ab014([0x45,0x53,0x32,0x35,0x36])||(_0x335063=!0x1);}async function _0x269bfb(_0x2bde40,_0x74da18,_0x331507){const _0x543382=window[_0x1ab014([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ab014([0x66,0x72,0x6f,0x6d])](_0x5488cd(_0x331507),_0x591d71=>_0x591d71[_0x1ab014([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f2a5a=new window[(_0x1ab014([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ab014([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bde40+_0x1ab014([0x2e])+_0x74da18),_0x599d75=window[_0x1ab014([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ab014([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x599d75)return;const _0x51214c=await _0x599d75[_0x1ab014([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ab014([0x6a,0x77,0x6b]),_0x260123,{[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x45,0x43,0x44,0x53,0x41]),[_0x1ab014([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ab014([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x599d75[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x45,0x43,0x44,0x53,0x41]),[_0x1ab014([0x68,0x61,0x73,0x68])]:{[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51214c,_0x543382,_0x2f2a5a)||(_0x335063=!0x1);}}function _0x81a40a(_0x123baf){return _0x123baf[_0x1ab014([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ab014([0x65,0x79]))?JSON[_0x1ab014([0x70,0x61,0x72,0x73,0x65])](_0x5488cd(_0x123baf)):null;}function _0x5488cd(_0x29e2ce){return window[_0x1ab014([0x61,0x74,0x6f,0x62])](_0x29e2ce[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ab014([0x2b]))[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ab014([0x2f])));}function _0x418e99(_0x21908f){let _0x1b5f53=0x1505;function _0xacc8f1(_0x54c7bb){for(let _0xe21da=0x0;_0xe21da<_0x54c7bb[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe21da++){const _0xd3b0b0=_0x54c7bb[_0x1ab014([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe21da);_0x1b5f53=(_0x1b5f53<<0x5)+_0x1b5f53+_0xd3b0b0,_0x1b5f53&=_0x1b5f53;}}function _0x4b9f31(_0x2d9b3f){Array[_0x1ab014([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d9b3f)?_0x2d9b3f[_0x1ab014([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b9f31):_0x2d9b3f&&typeof _0x2d9b3f==_0x1ab014([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ab014([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d9b3f)[_0x1ab014([0x73,0x6f,0x72,0x74])]()[_0x1ab014([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52ebe6,_0x4685ab])=>{_0xacc8f1(_0x52ebe6),_0x4b9f31(_0x4685ab);}):_0xacc8f1(window[_0x1ab014([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d9b3f));}return _0x4b9f31(_0x21908f),_0x1b5f53>>>0x0;}function _0x2c99e7(_0x55acee){return _0x55acee[_0x1ab014([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ab014([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ab014([0x30]));}function _0x4cd51d(_0x4ef033){return _0x4ef033[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ab014([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ab014([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b2892(_0x1f0120){return _0xb78c19[_0x1ab014([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab014([0x68,0x61,0x73])](_0x1f0120);}function _0x26e11e(_0x30db2c){return _0xb78c19[_0x1ab014([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab014([0x67,0x65,0x74])](_0x30db2c);}function _0x1e6271(){}function _0x1ab014(_0x357b10){return _0x357b10['map'](_0x5787d2=>String['fromCharCode'](_0x5787d2))['join']('');}_0x459285(await _0x30a9ed());}(this);}['createRevision'](_0x141ed6){const _0x4fc703=this['editor']['plugins']['get']('Users');return new h({'id':_0x141ed6['id'],'name':_0x141ed6['name'],'creator':_0x141ed6['creatorId']?_0x4fc703['getUser'](_0x141ed6['creatorId']):null,'diffData':_0x141ed6['diffData']||_0x141ed6['data'],'authors':_0x141ed6['authorsIds']['map'](_0x19c0ac=>_0x4fc703['getUser'](_0x19c0ac)),'createdAt':new Date(_0x141ed6['createdAt']),'attributes':_0x141ed6['attributes'],'fromVersion':_0x141ed6['fromVersion'],'toVersion':_0x141ed6['toVersion']});}['addRevision'](_0x3052d6,_0xf47bd7=0x0){this['_revisions']['add'](_0x3052d6,_0xf47bd7);}['getRevision'](_0x4a1d81){return this['_revisions']['get'](_0x4a1d81);}['getRevisions'](_0x42764c={'toJSON':!0x1}){const _0x49a515=Array['from'](this['_revisions']);return _0x49a515['reverse'](),_0x42764c['toJSON']?_0x49a515['map'](_0x429469=>_0x429469['toJSON']()):_0x49a515;}['getIndex'](_0x2ee90e){return this['_revisions']['getIndex'](_0x2ee90e);}['getEarlierVisibleRevision'](_0x59a6c0){const [,_0x54ed04]=this['getRevisionsIterator'](_0x59a6c0,{'direction':'earlier'});return _0x54ed04;}['getLaterVisibleRevision'](_0x4740b2){const [,_0x1cad67]=this['getRevisionsIterator'](_0x4740b2,{'direction':'later'});return _0x1cad67;}['getRevisionsInDiff'](_0x18b5ef){const _0x142a2=[];for(const _0x4f86e8 of this['getRevisionsIterator'](_0x18b5ef['newRevisionId']))if(_0x142a2['push'](_0x4f86e8),_0x4f86e8['id']===_0x18b5ef['oldRevisionId'])break;return _0x142a2;}*['getRevisionsIterator'](_0x31649a,{direction:_0x4254b9='earlier',filter:_0x8fec1f=()=>!0x0}={}){const _0x19283a='earlier'===_0x4254b9?0x1:-0x1;let _0x5b6c3b=this['_revisions']['get'](_0x31649a),_0x299da2=this['getIndex'](_0x5b6c3b);for(yield _0x5b6c3b;_0x5b6c3b;){if(_0x299da2+=_0x19283a,_0x5b6c3b=this['getRevision'](_0x299da2),!_0x5b6c3b)return;_0x8fec1f(_0x5b6c3b)&&(yield _0x5b6c3b);}}}class V extends _0x467a15{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x34e179,'c'],[_0x257f86,'a'],[_0x44d94e,'e'],[_0x19a24e,'r'],[_0x4d9bda,'u']]);['_typeCharToViewClass']=new Map([['c',_0x34e179],['a',_0x257f86],['e',_0x44d94e],['r',_0x19a24e],['u',_0x4d9bda]]);async['loadRevisionData'](_0x4522d4,_0x2c88fd){if(_0x4522d4['diffData']||!_0x2c88fd)return;const _0x4620a2=this['editor']['config']['get']('collaboration.channelId'),_0x479610=await _0x2c88fd['getRevision']({'channelId':_0x4620a2,'revisionId':_0x4522d4['id']});_0x4522d4['diffData']=_0x479610['diffData'];}['getRevisionDocumentData'](_0x3f4ea4){const _0x272cbe={};for(const _0x1d7e3d in _0x3f4ea4['diffData']){if(_0x3f4ea4['diffData'][_0x1d7e3d]['attachChange']&&!_0x3f4ea4['diffData'][_0x1d7e3d]['attachChange']['isAttached'])continue;const _0x2f4c32=this['_removeRevisionMarkers'](JSON['parse'](_0x3f4ea4['diffData'][_0x1d7e3d]['insertions'])),_0x319b18=this['editor']['editing']['view']['document'],_0x5ac193=new _0x58171e(_0x319b18,_0x2f4c32['map'](_0x29625d=>this['_getViewFromDiffObj'](_0x29625d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x272cbe[_0x1d7e3d]=this['editor']['data']['processor']['toData'](_0x5ac193),this['editor']['data']['processor']['useFillerType']('default');}return _0x272cbe;}['getRevisionRootsAttributes'](_0x352688){const _0x121811={};for(const _0x5d8ab0 in _0x352688['diffData'])_0x352688['diffData'][_0x5d8ab0]['attachChange']&&!_0x352688['diffData'][_0x5d8ab0]['attachChange']['isAttached']||(_0x121811[_0x5d8ab0]=_0x352688['diffData'][_0x5d8ab0]['attributesAfter']||{});return _0x121811;}['_getTypeCharForViewElement'](_0x5c8f2d){return this['_viewClassToTypeChar']['get'](_0x5c8f2d['constructor']);}['_getViewFromDiffObj'](_0x28c025,_0x1ecb35){const _0x55c754=this['editor']['editing']['view']['document'];if('string'==typeof _0x28c025)return new _0x3be512(_0x55c754,_0x28c025);{let _0x29bb35,_0xedb04c;_0xedb04c='u'==_0x28c025['type']||'r'==_0x28c025['type']?[]:_0x28c025['children']['map'](_0x30cec5=>this['_getViewFromDiffObj'](_0x30cec5,_0x1ecb35));const _0x31fa7b=this['_typeCharToViewClass']['get'](_0x28c025['type'])||_0x2d9bd2,_0x198629=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x29bb35=new _0x31fa7b(_0x55c754,_0x28c025['name'],_0x28c025['attributes'],_0xedb04c),'u'==_0x28c025['type']&&_0x28c025['children'][0x0]){const _0x20cbb3=_0x28c025['children'][0x0];if(_0x29bb35['render']=function(_0x243946){const _0x3eafa7=_0x243946['createElement']('div');return _0x3eafa7['innerHTML']=_0x20cbb3,_0x3eafa7['childNodes'][0x0];},_0x1ecb35){const _0x57a3be=new _0x58171e(_0x55c754);_0x57a3be['_appendChild'](_0x29bb35);const _0x30033a=Array['from'](_0x198629['viewChildrenToDom'](_0x57a3be,{'bind':!0x1})),_0x458043=_0x198629['domDocument']['createElement']('div');_0x458043['append'](..._0x30033a),_0x29bb35=Array['from'](_0x198629['domChildrenToView'](_0x458043))[0x0];}}else{if('r'==_0x28c025['type']&&_0x28c025['children'][0x0]){const _0x242c23=_0x28c025['children'][0x0];if(_0x29bb35['render']=function(_0x4eb593){_0x4eb593['innerHTML']=_0x242c23;},_0x1ecb35){const _0x2ce1c0=new _0x58171e(_0x55c754);_0x2ce1c0['_appendChild'](_0x29bb35);const _0x51a85e=Array['from'](_0x198629['viewChildrenToDom'](_0x2ce1c0,{'bind':!0x1})),_0x573b00=_0x198629['domDocument']['createElement']('div');_0x573b00['append'](..._0x51a85e);const _0x21a212=Array['from'](_0x198629['domChildrenToView'](_0x573b00));_0x21a212['length']>0x1?_0x29bb35['_appendChild'](_0x21a212):_0x29bb35=_0x21a212[0x0];}}}if(_0x28c025['customProperties']){for(const [_0x551da8,_0x4ca72f]of _0x28c025['customProperties'])_0x29bb35['_setCustomProperty'](_0x551da8,_0x4ca72f);}const _0x18e607=void 0x0===_0x28c025['fillerOffset']?null:_0x28c025['fillerOffset'];return null!==_0x18e607&&(_0x29bb35['getFillerOffset']=()=>_0x18e607),_0x29bb35;}}['_makeModelFromViewString'](_0x22d260){const _0x5d953e=JSON['parse'](_0x22d260),_0x4aaa5f=this['editor']['editing']['view']['document'],_0x2b1539=new _0x58171e(_0x4aaa5f,_0x5d953e['map'](_0x574751=>this['_getViewFromDiffObj'](_0x574751,!0x0)));return this['editor']['data']['toModel'](_0x2b1539);}['_removeRevisionMarkers'](_0x585dda){return(_0x585dda=_0x585dda['filter'](_0x415410=>!_0x415410['name']||'revision-start'!==_0x415410['name']&&'revision-end'!==_0x415410['name']))['forEach'](_0xd64fad=>{'string'!=typeof _0xd64fad&&(_0xd64fad['children']=this['_removeRevisionMarkers'](_0xd64fad['children']),_0xd64fad['attributes']=_0xd64fad['attributes']['filter'](_0x3e0c4d=>!_0x3e0c4d[0x0]['startsWith']('data-revision-')));}),_0x585dda;}}function g(_0x33564f,_0x47512b,_0x215c1e){const t=_0x33564f['t'];switch(_0x47512b){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'},_0x215c1e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x215c1e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x467a15{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x164c4c,I,V,_0x2fd44b];}constructor(_0x5d6c0c){super(_0x5d6c0c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x21ea87=_0x57d2cb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x21ea87},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xbb20b1=this['repository']['getRevision'](0x0),_0x2dd977=_0xbb20b1&&null===_0xbb20b1['creator']?_0xbb20b1:null;if(this['_continueCurrentRevision']=!!_0x2dd977&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x44d918=this['_source']['getCurrentRevisionId'](),_0x54a956=this['repository']['getRevision'](_0x44d918);if(_0x54a956)this['_startingVersion']=_0x54a956['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x573c96=this['_source']['history']['_operations']['find'](_0x4b3f86=>!_0x4b3f86['_isInit']),_0x510a1f=_0x573c96?_0x573c96['baseVersion']:this['_source']['history']['version'];_0xbb20b1?(_0xbb20b1['toVersion']<_0x510a1f&&_0xbb20b1['_update']({'toVersion':_0x510a1f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id'],this['_startingVersion']=_0x2dd977['fromVersion']):(this['_startingVersion']=_0xbb20b1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x510a1f,this['_continueCurrentRevision']=!0x1);}}else _0x2dd977&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2dd977['toVersion'],this['editor']['model']['document']['history']['version']),_0x2dd977['fromVersion']===_0x2dd977['toVersion']?(0x0!==_0x2dd977['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id'],this['_startingVersion']=_0x2dd977['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',_0x193b82=>!_0x193b82),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x474262=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18fb2c;for(const _0x2264b1 in _0x474262){const _0x2806bb=_0x2264b1,_0x427244=_0x474262[_0x2806bb];if('revisionHistoryLicenseKeyValid'==_0x427244||'revisionHistoryLicenseKeyInvalid'==_0x427244||'revisionHistoryLicenseKeyExpired'==_0x427244||'revisionHistoryLicenseKeyDomainLimit'==_0x427244||'revisionHistoryLicenseKeyNotAllowed'==_0x427244||'revisionHistoryLicenseKeyEvaluationLimit'==_0x427244||'revisionHistoryLicenseKeyTrialLimit'==_0x427244||'revisionHistoryLicenseKeyUsageLimit'==_0x427244){delete _0x474262[_0x2806bb],_0x18fb2c=_0x427244,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x18fb2c&&_0x474262['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x18fb2c&&_0x474262['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x18fb2c&&_0x474262['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2353bf=this['repository']['getRevision'](0x0),_0x2ac738=await this['getRevisionDocumentData'](_0x2353bf),_0x59f4b5=await this['getRevisionRootsAttributes'](_0x2353bf);this['_replaceEditorDataWithRevisionData'](_0x2ac738,_0x59f4b5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3a4908){this['_source']=_0x3a4908;}async['update'](){const _0x317378=await this['_source']['getLatestVersion']();if(_0x317378>this['currentRevision']['toVersion']){await this['_loadState']();const _0xee42af=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x317378});_0xee42af['authors']=_0xee42af['authorsIds']['map'](_0x207359=>this['editor']['plugins']['get']('Users')['getUser'](_0x207359)),this['currentRevision']['_update'](_0xee42af);}}async['saveRevision'](_0x59946c={},_0x310e2c=null){const _0x9e0b99=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x310e2c>this['currentRevision']['toVersion']&&(_0x310e2c=null),null===_0x310e2c&&(_0x310e2c=await this['_source']['getLatestVersion']());const _0x593b6c=this['_getFromVersion'](_0x310e2c),_0x3e1ec4=this['buildRevisionData']({'from':_0x593b6c,'to':_0x310e2c});if(this['currentRevision']['toVersion']<_0x310e2c){const _0x336c77=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x310e2c,'to':_0x310e2c});_0x336c77['authors']=[],_0x336c77['authorsIds']=[],_0x336c77['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x336c77,!0x0),delete _0x336c77['authors'],_0x9e0b99['push'](_0x336c77);}_0x59946c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x59946c['name']=_0x59946c['name']||null,_0x59946c['id']=_0x59946c['id']||_0x57d2cb(),_0x59946c={..._0x59946c,..._0x3e1ec4};const _0x36ad41=this['addRevisionData'](_0x59946c);_0x9e0b99['push'](_0x59946c);const _0x28447f=this['repository']['getIndex'](_0x36ad41);if(0x0!==_0x28447f){const _0x2e130d=this['repository']['getRevision'](_0x28447f-0x1);if(_0x2e130d['fromVersion']!==_0x310e2c){const _0x57e58c=this['_revisionDataBuilder']['getData'](_0x310e2c,_0x2e130d['toVersion']),_0x318cfc={'id':_0x2e130d['id'],'diffData':_0x57e58c['diffData'],'authorsIds':_0x57e58c['authorsIds'],'authors':_0x57e58c['authorsIds']['map'](_0x171862=>this['editor']['plugins']['get']('Users')['getUser'](_0x171862)),'fromVersion':_0x310e2c};_0x2e130d===this['currentRevision']&&(_0x318cfc['createdAt']=new Date(_0x59946c['createdAt']['getTime']()+0xa)),_0x2e130d['_update'](_0x318cfc,!0x0),delete _0x318cfc['authors'],_0x9e0b99['push'](_0x318cfc);}}if(this['adapter']){for(const _0x583950 of _0x9e0b99)this['_bufferUpdate'](_0x583950['id'],_0x583950,!0x0);this['sendBufferedUpdates']();}return _0x36ad41;}['addRevisionData'](_0x5932c1){const _0x381eb2=this['repository']['createRevision'](_0x5932c1);return this['adapter']&&_0x381eb2['on']('_update',(_0x2fd158,_0x454750,_0x8706f0)=>{_0x8706f0||(this['_bufferUpdate'](_0x454750['id'],_0x454750,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x381eb2,this['_findInsertionIndex'](_0x381eb2)),_0x381eb2;}async['getRevisionDocumentData'](_0x478d23){return await this['_utils']['loadRevisionData'](_0x478d23,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x478d23);}async['getRevisionRootsAttributes'](_0x279539){return await this['_utils']['loadRevisionData'](_0x279539,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x279539);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3a2b97=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8db657=0x0;_0x8db657<_0x3a2b97['length'];_0x8db657++){const _0x5247d6=_0x3a2b97[_0x8db657];let _0x511a21=!0x1;for(const _0x320ba3 of Object['keys'](_0x5247d6))void 0x0===_0x5247d6[_0x320ba3]?delete _0x5247d6[_0x320ba3]:'id'!==_0x320ba3&&(_0x511a21=!0x0);_0x511a21||(_0x3a2b97[_0x8db657]=null);}if(_0x3a2b97=_0x3a2b97['filter'](_0xbc9a27=>null!==_0xbc9a27),!_0x3a2b97['length'])return;for(let _0x12fb79=0x0;_0x12fb79<_0x3a2b97['length'];_0x12fb79++){const _0x1b59bf=_0x3a2b97[_0x12fb79];void 0x0!==_0x1b59bf['fromVersion']&&void 0x0===_0x1b59bf['toVersion']&&(_0x1b59bf['toVersion']=this['repository']['getRevision'](_0x1b59bf['id'])['toVersion']),void 0x0!==_0x1b59bf['toVersion']&&void 0x0===_0x1b59bf['fromVersion']&&(_0x1b59bf['fromVersion']=this['repository']['getRevision'](_0x1b59bf['id'])['fromVersion']);}const _0x40f995=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3a2b97,_0x40f995)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4f5c82=>{if(_0x4f5c82){for(const _0x17b213 of _0x4f5c82)this['setRevisionData']({'id':_0x17b213['id'],'createdAt':_0x17b213['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4c0020=null,from:_0x37cae7=null,to:_0xfc7c78=null}){_0x37cae7=null!==_0x37cae7?_0x37cae7:_0x4c0020['fromVersion'],_0xfc7c78=null!==_0xfc7c78?_0xfc7c78:_0x4c0020['toVersion'];const _0x4fdfb1=this['_revisionDataBuilder']['getData'](_0x37cae7,_0xfc7c78),_0x1e9f46={'diffData':_0x4fdfb1['diffData'],'authorsIds':_0x4fdfb1['authorsIds'],'fromVersion':_0x37cae7,'toVersion':_0xfc7c78};if(!_0x4c0020||_0xfc7c78!==_0x4c0020['toVersion']){const _0x712027=_0xfc7c78-0x1,_0x1fbba5=this['_source']['history']['getOperation'](_0x712027);_0x1e9f46['createdAt']=_0x1fbba5&&_0x1fbba5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x37cae7===this['_loadedStateData']['fromVersion']){for(const _0x403d7a of this['_loadedStateData']['authors'])_0x1e9f46['authorsIds']['includes'](_0x403d7a['id'])||_0x1e9f46['authorsIds']['push'](_0x403d7a['id']);}return _0x1e9f46;}['_bufferUpdate'](_0x4526dc,_0x130a63,_0x118c38){if(this['_bufferedUpdates']['has'](_0x4526dc)){const _0x3cd162=this['_bufferedUpdates']['get'](_0x4526dc);_0x130a63=_0x118c38?{..._0x3cd162,..._0x130a63}:{..._0x130a63,..._0x3cd162};}this['_bufferedUpdates']['set'](_0x4526dc,_0x130a63);}['setRevisionData'](_0x131bc9){const _0x1fc689=this['repository']['getRevision'](_0x131bc9['id']);if(_0x131bc9['createdAt']&&(_0x131bc9['createdAt']=new Date(_0x131bc9['createdAt'])),_0x131bc9['authorsIds']){const _0x4441d6=this['editor']['plugins']['get']('Users');_0x131bc9['authors']=_0x131bc9['authorsIds']['map'](_0x54e1bf=>_0x4441d6['getUser'](_0x54e1bf));}_0x1fc689['_update'](_0x131bc9,!0x0);}['_createInitialRevision'](_0x153789){const _0xfe7114=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xfe7114)this['_initialRevisionId']=_0xfe7114['id'];else{const _0x190aea=!this['editor']['model']['document']['roots']['find'](_0x2fa7dc=>this['editor']['model']['hasContent'](_0x2fa7dc)),_0x1555e0=this['editor']['plugins']['get']('Users')['me']['id'],_0x58499b=g(this['editor']['locale'],_0x190aea?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x153789,'to':_0x153789,'id':this['_initialRevisionId'],'name':_0x58499b,'creatorId':_0x1555e0});}}['_createCurrentRevision'](_0x1fdd08){const _0x3b83ea=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3b83ea),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1fdd08,'to':_0x1fdd08,'id':_0x3b83ea,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xcb408a,_0xa02602){let _0x1487bf=this['editor']['config']['get']('initialData'),_0x110cf9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1487bf){_0x1487bf={};for(const _0x2bc396 of this['editor']['model']['document']['getRootNames']())_0x1487bf[_0x2bc396]='';}if('string'==typeof _0x1487bf&&(_0x1487bf={'main':_0x1487bf}),void 0x0===_0x110cf9){_0x110cf9={};for(const _0x3e7b69 of this['editor']['model']['document']['getRootNames']())_0x110cf9[_0x3e7b69]={};}let _0x344624=!0x1;const _0x66d16f=Object['keys'](_0x1487bf),_0x13cdea=Object['keys'](_0xcb408a);for(const _0x1d6233 of _0x66d16f){if(_0x1487bf[_0x1d6233]!==_0xcb408a[_0x1d6233]&&''!==_0x1487bf[_0x1d6233]['trim']()){_0x344624=!0x0;break;}if(!_0x171f44(_0x110cf9[_0x1d6233],_0xa02602[_0x1d6233])&&Object['keys'](_0x110cf9[_0x1d6233])['length']>0x0){_0x344624=!0x0;break;}}_0x344624||(_0x344624=_0x13cdea['some'](_0x4edc00=>!this['editor']['model']['document']['getRoot'](_0x4edc00))),_0x344624&&_0x151264('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1487bf,'editorRootsAttributes':_0x110cf9,'revisionData':_0xcb408a,'revisionRootsAttributes':_0xa02602}),this['editor']['config']['set']('initialData',_0xcb408a),this['editor']['config']['set']('rootsAttributes',_0xa02602);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x329b92=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x329b92['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x45f4c1){const _0x482270=this['repository']['getRevisions']();_0x482270['reverse']();let _0x16ed21=0x0;for(;_0x16ed21<_0x482270['length'];){const _0x32d030=_0x482270[_0x16ed21];if(_0x32d030===this['currentRevision']){_0x16ed21++;continue;}if(_0x32d030['id']===this['_initialRevisionId'])break;const _0x478955=_0x45f4c1['toVersion']-_0x32d030['toVersion']||_0x45f4c1['fromVersion']-_0x32d030['fromVersion'];if(_0x478955>0x0)break;if(_0x478955<0x0)_0x16ed21++;else{if(!_0x45f4c1['creator']&&_0x32d030['creator'])break;if(_0x32d030['creator']||!_0x45f4c1['creator']){if(_0x45f4c1['createdAt']>_0x32d030['createdAt'])break;_0x16ed21++;}else _0x16ed21++;}}return _0x16ed21;}['_getFromVersion'](_0x14005e){const _0x2ccdf4=this['repository']['getRevisions']();_0x2ccdf4['reverse'](),_0x2ccdf4['shift']();const _0x19558b=_0x2ccdf4['find'](_0x215dbb=>_0x215dbb['toVersion']<=_0x14005e)['toVersion'];return _0x19558b<this['_startingVersion']?this['_startingVersion']:_0x19558b;}['_makeRevision']({name:_0x46ef76,from:_0x10a6c5,to:_0x530ae7,creatorId:_0x2dd41b,id:_0x4aedd3}){const _0x182960=this['buildRevisionData']({'from':_0x10a6c5,'to':_0x530ae7});_0x182960['name']=_0x46ef76,_0x182960['creatorId']=_0x2dd41b,_0x182960['id']=_0x4aedd3;const _0x52c6dc=this['addRevisionData'](_0x182960);return this['adapter']&&this['_bufferUpdate'](_0x182960['id'],_0x182960,!0x0),_0x52c6dc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b9919){this['editor']=_0x1b9919,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'](_0x57ecaf){this['source']=_0x57ecaf;const _0x8cf441=new Map(),_0x4bf6f0=new Map(),_0x3d865a=this['editor']['model']['document']['roots']['map'](_0x23f597=>_0x23f597['rootName']);for(const _0x2080bc of _0x3d865a){const _0x25c1fa=this['editor']['model']['document']['getRoot'](_0x2080bc),_0x13016e=N(_0x25c1fa);_0x8cf441['set'](_0x2080bc,_0x13016e),_0x4bf6f0['set'](_0x2080bc,Object['fromEntries'](_0x25c1fa['getAttributes']()));}const _0x1c2e31=Array['from'](this['editor']['model']['markers'])['map'](_0x4091d8=>[_0x4091d8['name'],_0x4091d8['getRange']()]),_0x2924c6=this['source']['version'];this['_saveMetaData'](_0x2924c6,_0x8cf441,_0x1c2e31,_0x4bf6f0),this['_startingRevisionId']=this['_revisionId'];const _0x43afc6=new Map(),_0x2e7cd6=new Map();for(const _0x1e734f of _0x3d865a){const _0x255bef=P(_0x1e734f);_0x43afc6['set'](_0x1e734f,_0x255bef),_0x2e7cd6['set'](_0x1e734f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43afc6,[],_0x2e7cd6);}['getData'](_0x1ffd3d,_0x1fcad7){if(this['_lastFrom']===_0x1ffd3d&&this['_lastTo']<=_0x1fcad7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1fcad7,!0x0);else{if(!this['_savedMetaData']['has'](_0x1ffd3d)){const _0x3abb1c=this['_getPreviousFrom'](_0x1ffd3d);this['_calculateMetaData'](_0x3abb1c,_0x1ffd3d,!0x1);}this['_calculateMetaData'](_0x1ffd3d,_0x1fcad7,!0x0);}return this['_lastFrom']=_0x1ffd3d,this['_lastTo']=_0x1fcad7,this['_getState']();}['loadState'](_0x25e072){const _0x19eb8f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x25e072['fromVersion'],this['_lastTo']=_0x25e072['toVersion'];for(const _0x3b1eea in _0x25e072['diffData']){const _0x1d2635=_0x25e072['diffData'][_0x3b1eea]['attachChange'],_0x457b94=_0x5765cb(_0x25e072['diffData'][_0x3b1eea]['attributesBefore'])||{},_0x155506=_0x19eb8f['_makeModelFromViewString'](_0x25e072['diffData'][_0x3b1eea]['deletions']);_0x155506['rootName']=_0x3b1eea,_0x155506['_isAttached']=!_0x1d2635||!_0x1d2635['isAttached'],_0x155506['isAttached']=()=>_0x155506['_isAttached'],this['_baseRoots']['set'](_0x3b1eea,_0x155506),this['_baseRootsAttributes']['set'](_0x3b1eea,_0x457b94),_0x1d2635&&this['_touchedRoots']['set'](_0x3b1eea,_0x1d2635);const _0x520258=this['_makeIdsRoot'](_0x155506);this['_baseIdsRoots']['set'](_0x3b1eea,_0x520258);for(const [_0x4bdbf0,_0x279f76]of _0x155506['markers']){if(!_0x4bdbf0['startsWith']('revision:'))continue;const _0x12305a=_0x4bdbf0['split'](':')[0x2];for(const _0x2cc9ad of _0x279f76['getWalker']({'singleCharacters':!0x0})){const _0x23a508=this['_getVidAttributeName'](_0x2cc9ad),_0xc45d0a='elementEnd'==_0x2cc9ad['type']?_0x2cc9ad['previousPosition']['path']['slice'](0x0,-0x1):_0x2cc9ad['previousPosition']['path'],_0x4ef0e7=_0x520258['getNodeByPath'](_0xc45d0a)['getAttribute'](_0x23a508);this['_touched']['set'](_0x4ef0e7,{'userId':_0x12305a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4601a3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x296e20=>!this['_touched']['has'](_0x296e20));let _0x23ed29=0x0;const _0x441367=new Map();for(const _0x2ec7cc in _0x25e072['diffData']){const _0x3ce794=_0x25e072['diffData'][_0x2ec7cc]['attachChange'],_0x4da618=_0x5765cb(_0x25e072['diffData'][_0x2ec7cc]['attributesAfter'])||{},_0x52e7c3=_0x19eb8f['_makeModelFromViewString'](_0x25e072['diffData'][_0x2ec7cc]['insertions']);_0x52e7c3['rootName']=_0x2ec7cc,_0x52e7c3['_isAttached']=!_0x3ce794||_0x3ce794['isAttached'],_0x52e7c3['isAttached']=()=>_0x52e7c3['_isAttached'],this['_diffRoots']['set'](_0x2ec7cc,_0x52e7c3),this['_diffRootsAttributes']['set'](_0x2ec7cc,_0x4da618);const _0x416fb7=this['_makeIdsRoot'](_0x52e7c3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2ec7cc,_0x416fb7),_0x441367['set'](_0x2ec7cc,_0x52e7c3['isAttached']()?_0x4da618:{});for(const [_0x1714d5,_0x52ef8d]of _0x52e7c3['markers']){if(!_0x1714d5['startsWith']('revision:'))continue;const _0x35600c=_0x1714d5['split'](':')[0x2];for(const _0x4a748f of _0x52ef8d['getWalker']({'singleCharacters':!0x0})){const _0x218c82=this['_getVidAttributeName'](_0x4a748f),_0x182d1b=this['_revisionId']++,_0x50ebf1='elementEnd'==_0x4a748f['type']?_0x4a748f['previousPosition']['path']['slice'](0x0,-0x1):_0x4a748f['previousPosition']['path'];_0x416fb7['getNodeByPath'](_0x50ebf1)['_setAttribute'](_0x218c82,_0x182d1b),this['_touched']['set'](_0x182d1b,{'userId':_0x35600c});}}for(const _0x5eddf9 of this['editor']['model']['createRangeIn'](_0x52e7c3)['getWalker']({'singleCharacters':!0x0})){const _0x1853f9=this['_getVidAttributeName'](_0x5eddf9),_0x3ad30f='elementEnd'==_0x5eddf9['type']?_0x5eddf9['previousPosition']['path']['slice'](0x0,-0x1):_0x5eddf9['previousPosition']['path'],_0xa1586a=_0x416fb7['getNodeByPath'](_0x3ad30f);_0xa1586a['getAttribute'](_0x1853f9)>0x0||_0xa1586a['_setAttribute'](_0x1853f9,_0x4601a3[_0x23ed29++]);}for(const [_0x10fafa,_0x4950bd]of _0x52e7c3['markers'])_0x10fafa['startsWith']('revision:')||this['_markers']['set'](_0x10fafa,_0x4950bd);}const _0x441286=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x441286),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x441286,0x1));const _0x5c512c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c512c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c512c,0x1));const _0x10f9c0=Array['from'](this['_diffRoots'])['map'](([_0x115fe8,_0x79ea08])=>[_0x115fe8,N(_0x79ea08)]);this['_saveMetaData'](this['_lastTo'],_0x10f9c0,this['_markers'],_0x441367);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x507345,_0x4a37fa,_0x2a7495,_0x3bcde9){const _0x247c76=new Map(_0x4a37fa),_0xbc3b12=new Map(_0x5765cb(_0x3bcde9)),_0x466860=new Map();for(const [_0x541a81,_0x3ee5ed]of _0x2a7495)_0x466860['set'](_0x541a81,{'start':_0x3ee5ed['start']['clone'](),'end':_0x3ee5ed['end']['clone'](),'rootName':_0x3ee5ed['root']['rootName']});this['_savedMetaData']['set'](_0x507345,{'roots':_0x247c76,'markers':_0x466860,'rootsAttributes':_0xbc3b12});}['_removeMetaData'](_0x5f554d){this['_savedMetaData']['delete'](_0x5f554d);}['_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'](_0x41af6b,_0x207c32=null){let _0x351519=null;_0x41af6b['is']('documentFragment')||(_0x351519=new ut(_0x41af6b['name'],{'vid_start':null===_0x207c32?this['_revisionId']++:_0x207c32++}));const _0x3a84b1=[];for(const _0x52684b of _0x41af6b['getChildren']())if(_0x52684b['is']('element')){_0x3a84b1['push'](this['_makeIdsRoot'](_0x52684b,_0x207c32));const _0x57d917=_0x3a84b1[_0x3a84b1['length']-0x1];null!==_0x207c32&&(_0x207c32=_0x57d917['is']('element','$text')?_0x57d917['getAttribute']('vid')+0x1:_0x57d917['getAttribute']('vid_end')+0x1);}else{for(let _0x1c21e6=0x0;_0x1c21e6<_0x52684b['offsetSize'];_0x1c21e6++)_0x3a84b1['push'](new ut('$text',{'vid':null===_0x207c32?this['_revisionId']++:_0x207c32++}));}if(_0x41af6b['is']('documentFragment')){const _0x5bc784=P(_0x41af6b['rootName']);return _0x5bc784['_insertChild'](0x0,_0x3a84b1),_0x5bc784;}return _0x351519['_setAttribute']('vid_end',null===_0x207c32?this['_revisionId']++:_0x207c32++),_0x351519['_insertChild'](0x0,_0x3a84b1),_0x351519;}['_calculateMetaData'](_0x2d3304,_0x536a8f,_0x17f880){this['_reset']();const {roots:_0x51c16f,markers:_0x15af82,rootsAttributes:_0x2f6580}=this['_savedMetaData']['get'](_0x2d3304);this['_baseRoots']=new Map(_0x51c16f),this['_baseRootsAttributes']=new Map(_0x5765cb(_0x2f6580));for(const [_0x349b65,_0x342bbe]of this['_baseRoots'])if('$graveyard'!==_0x349b65&&(this['_diffRoots']['set'](_0x349b65,N(_0x342bbe)),this['_diffRootsAttributes']=new Map(_0x5765cb(_0x2f6580)),_0x17f880)){const _0x886c65=this['_revisionId'];this['_idsRoots']['set'](_0x349b65,this['_makeIdsRoot'](_0x342bbe)),this['_baseIdsRoots']['set'](_0x349b65,this['_makeIdsRoot'](_0x342bbe,_0x886c65));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x17f880&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x29f579,_0x528d94]of _0x15af82){const _0x2bc160=this['_baseRoots']['get'](_0x528d94['rootName']),_0x59962b=this['_diffRoots']['get'](_0x528d94['rootName']),_0x54a0e7=new lt(this['_fixPosition'](_0x528d94['start'],_0x2bc160),this['_fixPosition'](_0x528d94['end'],_0x2bc160)),_0x1fafab=this['_fixRange'](_0x54a0e7,_0x59962b);_0x2bc160['markers']['set'](_0x29f579,_0x54a0e7),this['_markers']['set'](_0x29f579,_0x1fafab);}this['_applyOperations'](_0x2d3304,_0x536a8f,_0x17f880);}['_applyOperations'](_0x2210db,_0x36b3c0,_0x274e1b){for(const _0x384612 of this['source']['getOperations'](_0x2210db,_0x36b3c0))this['_handleOperation'](_0x384612,_0x274e1b);for(const _0x451535 of this['_diffRoots']['values']())_0x451535['markers']['clear']();for(const [_0x2d5481,_0x49e3c0]of this['_markers']){this['_diffRoots']['get'](_0x49e3c0['root']['rootName'])['markers']['set'](_0x2d5481,_0x49e3c0['clone']());}const _0x37b3c8=new Map(),_0x49fa46=new Map();for(const [_0x1ff106,_0x40ec49]of this['_diffRoots'])_0x37b3c8['set'](_0x1ff106,N(_0x40ec49)),_0x49fa46['set'](_0x1ff106,this['_diffRootsAttributes']['get'](_0x1ff106));this['_saveMetaData'](_0x36b3c0,_0x37b3c8,this['_markers'],_0x49fa46);}['_getPreviousFrom'](_0x540779){const _0x1f5826=Array['from'](this['_savedMetaData']['keys']());_0x1f5826['sort']((_0x3972c8,_0x45da4a)=>_0x3972c8-_0x45da4a),_0x1f5826['reverse']();for(const _0x167ee1 of _0x1f5826)if(_0x167ee1<_0x540779)return _0x167ee1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bfaf4,_0x215e7f){const _0xfe229e=Array['from'](_0x215e7f['markers'])['map'](([_0x403d68,_0x2468de])=>[_0x403d68,this['_fixRange'](_0x2468de,_0x3bfaf4)]);_0x3bfaf4['markers']=new Map(_0xfe229e);}['_transformMarkers'](_0x4c3139){for(const _0x227ea7 of this['_markers']['values']()){const _0x5a7c96=_0x227ea7['getTransformedByOperation'](_0x4c3139),_0x3bf414=lt['_createFromRanges'](_0x5a7c96);_0x227ea7['start']=_0x3bf414['start'],_0x227ea7['end']=_0x3bf414['end'];}}['_handleOperation'](_0x55c3f0,_0x357407){if('addRoot'!=_0x55c3f0['type']&&'detachRoot'!=_0x55c3f0['type']){if('insert'==_0x55c3f0['type']){const _0x38ffd3=_0x55c3f0['position']['root']['rootName'];this['_diffRoots']['has'](_0x38ffd3)||(this['_diffRoots']['set'](_0x38ffd3,P(_0x38ffd3,!0x0)),this['_diffRootsAttributes']['set'](_0x38ffd3,{}),_0x357407&&this['_idsRoots']['set'](_0x38ffd3,P(_0x38ffd3,!0x0)));}else{if('addRootAttribute'==_0x55c3f0['type']||'removeRootAttribute'==_0x55c3f0['type']||'changeRootAttribute'==_0x55c3f0['type'])return void this['_handleRootAttributeOperation'](_0x55c3f0);'marker'==_0x55c3f0['type']&&this['_handleMarkerOperation'](_0x55c3f0);}if('marker'!==_0x55c3f0['type']){const _0x29e320=this['_cloneOperation'](_0x55c3f0,this['_diffRoots']);_0x29e320['_execute'](),this['_transformMarkers'](_0x29e320);}if(_0x357407)switch(_0x55c3f0['type']){case'insert':this['_handleInsertOperation'](_0x55c3f0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x55c3f0);break;case'merge':this['_handleMergeOperation'](_0x55c3f0);break;case'split':this['_handleSplitOperation'](_0x55c3f0);}}else this['_handleRootOperation'](_0x55c3f0,_0x357407);}['_cloneOperation'](_0x1680f1,_0x53b14c){const _0x547b42=_0x1680f1['clone']();return _0x547b42['_authorId']=_0x1680f1['_authorId'],this['_fixOperation'](_0x547b42,_0x53b14c),_0x547b42;}['_getBaseVids'](_0x25ee62){return _0x25ee62['map'](_0x57ea47=>{const _0x179dd3=this['_getVidAttributeName'](_0x57ea47);return Number(_0x57ea47['item']['getAttribute'](_0x179dd3));});}['_generateTape'](_0x11af55,_0xda106b){if(_0x11af55['is']('element','$text'))_0xda106b['push']({'item':_0x11af55,'type':'text'});else{_0x11af55['is']('element')&&_0xda106b['push']({'item':_0x11af55,'type':'elementStart'});for(const _0x5d622f of _0x11af55['getChildren']())this['_generateTape'](_0x5d622f,_0xda106b);_0x11af55['is']('element')&&_0xda106b['push']({'item':_0x11af55,'type':'elementEnd'});}return _0xda106b;}['_getState'](){const _0x4f6624=new Map(this['_touched']),_0x163947=new Map(_0x4f6624),_0x5e34df=new Map(),_0x58d170={'insertions':{},'deletions':{}},_0x56c4e9={'insertions':{},'deletions':{}},_0x54ab92=new Map(),_0xe2fe1d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe2fe1d['delete']('$graveyard');for(const _0x4e9668 of _0xe2fe1d){const _0x4862ad=this['_diffRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1),_0x5e63ac=this['_baseRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1);_0x4862ad['isAttached']()||_0x5e63ac['isAttached']()?(_0x58d170['insertions'][_0x4e9668]=N(_0x4862ad),_0x58d170['deletions'][_0x4e9668]=N(_0x5e63ac),this['_copyMarkers'](_0x58d170['deletions'][_0x4e9668],_0x5e63ac),this['_copyMarkers'](_0x58d170['insertions'][_0x4e9668],_0x4862ad),_0x56c4e9['insertions'][_0x4e9668]=this['_generateTape'](this['_idsRoots']['get'](_0x4e9668),[]),_0x56c4e9['deletions'][_0x4e9668]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1),[])):_0xe2fe1d['delete'](_0x4e9668);}for(const _0x489703 of _0xe2fe1d){const _0x1a5ce0=_0x56c4e9['insertions'][_0x489703];for(const _0x43e3c4 of _0x1a5ce0){const _0x5b42e0=this['_getVidAttributeName'](_0x43e3c4),_0x1eb227=_0x43e3c4['item']['getAttribute'](_0x5b42e0);_0x163947['delete'](_0x1eb227),_0x1eb227>=this['_startingRevisionId']&&_0x5e34df['set'](_0x1eb227,_0x4f6624['get'](_0x1eb227));}}for(const _0x18e027 of _0xe2fe1d){const _0x8de9af=_0x56c4e9['insertions'][_0x18e027],_0x3d940b=this['_getBaseVids'](_0x56c4e9['deletions'][_0x18e027]);let _0x20ff6b=0x0;for(const _0x3cbf0a of _0x8de9af){const _0x447200=this['_getVidAttributeName'](_0x3cbf0a),_0x5cb634=_0x3cbf0a['item']['getAttribute'](_0x447200);if(!_0x5e34df['has'](_0x5cb634)&&!_0x54ab92['has'](_0x5cb634)){if(_0x163947['has'](_0x5cb634))_0x20ff6b++;else{if(_0x5cb634!=_0x3d940b[_0x20ff6b]){const _0x41db17=_0x4f6624['get'](_0x5cb634)||_0x4f6624['get'](_0x3d940b[_0x20ff6b]);for(;_0x5cb634!=_0x3d940b[_0x20ff6b];)_0x163947['has'](_0x3d940b[_0x20ff6b])||(_0x54ab92['set'](_0x3d940b[_0x20ff6b],_0x41db17),_0x4f6624['set'](_0x3d940b[_0x20ff6b],_0x41db17)),_0x20ff6b++;}_0x20ff6b++;}}}}for(const _0x2841ae of _0xe2fe1d){const _0x49fa64=_0x56c4e9['insertions'][_0x2841ae];for(const _0x127fb9 of _0x49fa64){const _0x4fe7de=this['_getVidAttributeName'](_0x127fb9),_0x18b12b=_0x127fb9['item']['getAttribute'](_0x4fe7de);if(_0x54ab92['has'](_0x18b12b)){const _0x3bb13a=_0x54ab92['get'](_0x18b12b);_0x163947['has'](_0x18b12b)||_0x163947['set'](_0x18b12b,{..._0x3bb13a}),_0x5e34df['set'](_0x18b12b,{..._0x3bb13a});}}}for(const _0x396097 of _0x163947['keys']())_0x396097>=this['_startingRevisionId']&&_0x163947['delete'](_0x396097);const _0x22b51e=new Map();for(const _0x9ffc4d of _0xe2fe1d){let _0x5532b4=_0x56c4e9['insertions'][_0x9ffc4d];for(const _0x6bb219 of _0x5532b4)if(_0x6bb219['item']['is']('element','tableCell')){const _0x1b4510=this['_getVidAttributeName'](_0x6bb219),_0x2dc117=_0x6bb219['item']['getAttribute'](_0x1b4510);if(_0x5e34df['has'](_0x2dc117)){const _0x4d4300=_0x6bb219['item']['parent']['parent']['getAttribute']('vid_start'),_0x9092cf=_0x22b51e['get'](_0x4d4300)||new Set();_0x9092cf['add'](_0x5e34df['get'](_0x2dc117)['userId']),_0x22b51e['set'](_0x4d4300,_0x9092cf);}}_0x5532b4=_0x56c4e9['deletions'][_0x9ffc4d];for(const _0x24c9e8 of _0x5532b4)if(_0x24c9e8['item']['is']('element','tableCell')){const _0x42ddf2=this['_getVidAttributeName'](_0x24c9e8),_0x206a82=_0x24c9e8['item']['getAttribute'](_0x42ddf2);if(_0x163947['has'](_0x206a82)){const _0x59e52b=_0x24c9e8['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ff286=_0x22b51e['get'](_0x59e52b)||new Set();_0x1ff286['add'](_0x163947['get'](_0x206a82)['userId']),_0x22b51e['set'](_0x59e52b,_0x1ff286);}}for(const _0x249a7d of _0x22b51e['keys']())(_0x5e34df['has'](_0x249a7d)||_0x163947['has'](_0x249a7d))&&_0x22b51e['delete'](_0x249a7d);}for(const _0x29efb4 of _0xe2fe1d){const _0x526e9d=_0x56c4e9['insertions'][_0x29efb4];let _0x54b1cf=null,_0x1b7379=null;for(const _0x3228a9 of _0x526e9d){const _0x25f3a7=this['_getVidAttributeName'](_0x3228a9),_0x2af6e0=_0x3228a9['item']['getAttribute'](_0x25f3a7),_0x20d1a0=_0x22b51e['get'](_0x2af6e0);_0x20d1a0&&'elementStart'==_0x3228a9['type']&&(_0x54b1cf=Array['from'](_0x20d1a0)[0x0],_0x1b7379=_0x3228a9['item']['getAttribute']('vid_end')),_0x54b1cf&&(_0x163947['set'](_0x2af6e0,{'userId':_0x54b1cf}),_0x5e34df['set'](_0x2af6e0,{'userId':_0x54b1cf})),_0x2af6e0==_0x1b7379&&(_0x54b1cf=null,_0x1b7379=null);}}const _0x539eb2={},_0x40dbf4=new Set();for(const _0xa6b21c of _0xe2fe1d){const _0x24924b=_0x58d170['deletions'][_0xa6b21c],_0x48234b=_0x58d170['insertions'][_0xa6b21c];for(const {userId:_0x274f00}of this['_touchedMarkers']['values']())null!==_0x274f00&&_0x40dbf4['add'](_0x274f00);for(const {userId:_0x297068}of this['_touchedRoots']['values']())null!==_0x297068&&_0x40dbf4['add'](_0x297068);this['_markChanges'](_0x48234b,_0x56c4e9['insertions'][_0xa6b21c],_0x5e34df,'insertion',_0x40dbf4),this['_markChanges'](_0x24924b,_0x56c4e9['deletions'][_0xa6b21c],_0x163947,'deletion',_0x40dbf4),_0x539eb2[_0xa6b21c]={'insertions':this['_prepareViewToSave'](_0x48234b),'deletions':this['_prepareViewToSave'](_0x24924b),'attachChange':this['_touchedRoots']['get'](_0xa6b21c)||null,'attributesBefore':_0x5765cb(this['_baseRootsAttributes']['get'](_0xa6b21c))||{},'attributesAfter':_0x5765cb(this['_diffRootsAttributes']['get'](_0xa6b21c))};}return{'diffData':_0x539eb2,'authorsIds':Array['from'](_0x40dbf4)};}['_processRootBeforeSave'](_0x1d123c){for(const [,_0x1cb07a]of _0x1d123c['markers']){const _0x41847e=_0x1cb07a['start']['getAncestors']()['filter'](_0x596766=>'tableCell'==_0x596766['name']);for(const _0x48f2d2 of _0x41847e)0x1==_0x48f2d2['childCount']&&_0x48f2d2['getChild'](0x0)['is']('element','paragraph')&&_0x48f2d2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5840b4){this['_processRootBeforeSave'](_0x5840b4);const _0x52fa5=this['editor']['data']['toView'](_0x5840b4,{}),_0x233f5c=Array['from'](_0x52fa5['getChildren']())['map'](_0x43046b=>this['_getViewJson'](_0x43046b));return JSON['stringify'](_0x233f5c);}['_getViewJson'](_0x2d4999){if(_0x2d4999['is']('$text'))return _0x2d4999['data'];{const _0x13f54f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xd24282=_0x2d4999,_0x2a4ebe=this['editor']['data']['htmlProcessor']['domConverter'],_0x474e74={'type':_0x13f54f['_getTypeCharForViewElement'](_0xd24282),'name':_0xd24282['name'],'attributes':Array['from'](_0xd24282['getAttributes']()),'children':Array['from'](_0xd24282['getChildren']())['map'](_0x5a2373=>this['_getViewJson'](_0x5a2373))};if(_0x2d4999['is']('uiElement')&&'$comment'!=_0x2d4999['name']){const _0x2da4e9=_0x2d4999['render'](_0x2a4ebe['domDocument'],_0x2a4ebe);_0x474e74['children']['push'](_0x2da4e9['outerHTML']);}else{if(_0x2d4999['is']('rawElement')){const _0x9e4079=_0x2a4ebe['domDocument']['createElement'](_0xd24282['name']);_0x2d4999['render'](_0x9e4079,_0x2a4ebe),_0x474e74['children']['push'](_0x9e4079['innerHTML']);}}const _0x4ddece=Array['from'](_0xd24282['getCustomProperties']());_0x4ddece['length']>0x0&&(_0x474e74['customProperties']=_0x4ddece);const _0x1bfe6a=_0xd24282['getFillerOffset']();return null!==_0x1bfe6a&&(_0x474e74['fillerOffset']=_0x1bfe6a),_0x474e74;}}['_markChanges'](_0x31e3ab,_0x124797,_0x55c2a9,_0x3ea6ce,_0x36e25d){let _0x32416c=null,_0x5a5ff7=null,_0x1c88f7=0x0;const _0x1a302c=this['editor']['model'];for(let _0x79591a=0x0;_0x79591a<_0x124797['length'];_0x79591a++){const _0x3e483c=this['_getVidAttributeName'](_0x124797[_0x79591a]),_0x22bded=_0x124797[_0x79591a]['item']['getAttribute'](_0x3e483c),_0x2c8190=_0x55c2a9['get'](_0x22bded),_0x2851e9=_0x79591a==_0x124797['length']-0x1;(!_0x32416c&&_0x2c8190&&(_0x32416c=_0x2c8190,_0x5a5ff7=_0x124797[_0x79591a]),_0x32416c&&(!_0x2c8190||_0x2c8190['userId']!=_0x32416c['userId']))&&(_0x2c31c3(_0x2c8190,F(_0x5a5ff7,_0x31e3ab,_0x1a302c),F(_0x124797[_0x79591a],_0x31e3ab,_0x1a302c)),_0x32416c=_0x2c8190||null,_0x5a5ff7=_0x2c8190?_0x124797[_0x79591a]:null),_0x32416c&&_0x2851e9&&_0x2c31c3(_0x2c8190,F(_0x5a5ff7,_0x31e3ab,_0x1a302c),B(_0x124797[_0x79591a],_0x31e3ab,_0x1a302c));}function _0x2c31c3(_0x5c7541,_0x2cd681,_0x4c29fc){const _0x4a2f6c=_0x32416c['userId'],_0x111620='revision:'+_0x3ea6ce+':'+_0x4a2f6c+':'+_0x1c88f7++,_0x35372b=_0x1a302c['createRange'](_0x2cd681,_0x4c29fc);_0x31e3ab['markers']['set'](_0x111620,_0x35372b),null!==_0x4a2f6c&&_0x36e25d['add'](_0x4a2f6c);}}['_getVidAttributeName'](_0x41f0f4){switch(_0x41f0f4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e354f,_0x4affef){_0x5e354f['baseVersion']=null;for(const _0x517798 in _0x5e354f){const _0xed922e=_0x5e354f[_0x517798];if(_0xed922e instanceof ft){const _0x42b64e=_0x4affef['get'](_0xed922e['root']['rootName']);_0x5e354f[_0x517798]=this['_fixPosition'](_0xed922e,_0x42b64e);}if(_0xed922e instanceof lt){const _0xd74050=_0x4affef['get'](_0xed922e['root']['rootName']);_0x5e354f[_0x517798]=this['_fixRange'](_0xed922e,_0xd74050);}'root'===_0x517798&&(_0x5e354f['root']=_0x4affef['get'](_0x5e354f['root']['rootName']));}}['_fixRange'](_0x385c8f,_0x3ad886){return this['editor']['model']['createRange'](this['_fixPosition'](_0x385c8f['start'],_0x3ad886),this['_fixPosition'](_0x385c8f['end'],_0x3ad886));}['_fixPosition'](_0xcce1cb,_0x3b838a){return this['editor']['model']['createPositionFromPath'](_0x3b838a,_0xcce1cb['path'],_0xcce1cb['stickiness']);}['_handleInsertOperation'](_0x2a7b61){const _0x1d0212=this['_idsRoots']['get'](_0x2a7b61['position']['root']['rootName']),_0x280df8=this['_fixPosition'](_0x2a7b61['position'],_0x1d0212),_0x56bb4c=null===_0x2a7b61['_authorId']?null:_0x2a7b61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44605b=_0x280df8['parent'],_0x1c71d9=this['_revisionId'],_0x3b06c4=[];for(const _0x280ced of _0x2a7b61['nodes'])if(_0x280ced['is']('element'))_0x3b06c4['push'](this['_makeIdsRoot'](_0x280ced));else{for(let _0x3af213=0x0;_0x3af213<_0x280ced['offsetSize'];_0x3af213++)_0x3b06c4['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x565565=this['_revisionId'];for(let _0x404b8c=_0x1c71d9;_0x404b8c<_0x565565;_0x404b8c++)this['_touched']['set'](_0x404b8c,{'userId':_0x56bb4c});_0x44605b['_insertChild'](_0x280df8['offset'],_0x3b06c4);}['_handleMoveOperation'](_0x186b32){(_0x186b32=this['_cloneOperation'](_0x186b32,this['_idsRoots']))['_execute']();const _0xa4c7a3=null===_0x186b32['_authorId']?null:_0x186b32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c194e=_0x186b32['getMovedRangeStart'](),_0x3f03a8=_0x1c194e['parent'],_0x119816=_0x1c194e['offset'];!function _0x3ac309(_0x3983ad,_0x481082,_0x2e2b06,_0x351cfa){for(let _0x52fdfe=_0x2e2b06;_0x52fdfe<_0x351cfa;_0x52fdfe++){const _0x1b0264=_0x481082['getChild'](_0x52fdfe);_0x1b0264['is']('element','$text')?_0x3983ad['set'](_0x1b0264['getAttribute']('vid'),{'userId':_0xa4c7a3}):(_0x3983ad['set'](_0x1b0264['getAttribute']('vid_start'),{'userId':_0xa4c7a3}),_0x3ac309(_0x3983ad,_0x1b0264,0x0,_0x1b0264['childCount']),_0x3983ad['set'](_0x1b0264['getAttribute']('vid_end'),{'userId':_0xa4c7a3}));}}(this['_touched'],_0x3f03a8,_0x119816,_0x119816+_0x186b32['howMany']);}['_handleMergeOperation'](_0x3f8375){const _0x271017=null===(_0x3f8375=this['_cloneOperation'](_0x3f8375,this['_idsRoots']))['_authorId']?null:_0x3f8375['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15c083=_0x3f8375['targetPosition']['parent'],_0x4fc668=_0x3f8375['sourcePosition']['parent'],_0x27d2b3=_0x15c083['getAttribute']('vid_end'),_0x96387=_0x4fc668['getAttribute']('vid_start');_0x15c083['_setAttribute']('vid_end',_0x4fc668['getAttribute']('vid_end')),_0x4fc668['_setAttribute']('vid_end',_0x27d2b3),this['_touched']['set'](_0x96387,{'userId':_0x271017}),this['_touched']['set'](_0x27d2b3,{'userId':_0x271017}),_0x3f8375['_execute']();}['_handleSplitOperation'](_0xac5598){const _0x1b5b19=null===(_0xac5598=this['_cloneOperation'](_0xac5598,this['_idsRoots']))['_authorId']?null:_0xac5598['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cbada=_0xac5598['graveyardPosition'],_0x49bfeb=_0xac5598['splitPosition']['parent'];_0xac5598['_execute']();const _0x55609a=_0x49bfeb['getAttribute']('vid_end'),_0x1a1528=_0xac5598['insertionPosition']['nodeAfter'];if(_0x2cbada){const _0x2b6002=_0x1a1528['getAttribute']('vid_end'),_0x2f5feb=_0x49bfeb['getAttribute']('vid_end');_0x49bfeb['_setAttribute']('vid_end',_0x2b6002),_0x1a1528['_setAttribute']('vid_end',_0x2f5feb),this['_touched']['set'](_0x49bfeb['getAttribute']('vid_end'),{'userId':_0x1b5b19}),this['_touched']['set'](_0x1a1528['getAttribute']('vid_start'),{'userId':_0x1b5b19});}else{const _0x7646e3=this['_revisionId']++,_0x11ffcb=this['_revisionId']++;_0x49bfeb['_setAttribute']('vid_end',_0x7646e3),_0x1a1528['_setAttribute']('vid_start',_0x11ffcb),_0x1a1528['_setAttribute']('vid_end',_0x55609a),this['_touched']['set'](_0x7646e3,{'userId':_0x1b5b19}),this['_touched']['set'](_0x11ffcb,{'userId':_0x1b5b19});}}['_handleMarkerOperation'](_0x51da25){if(!_0x51da25['affectsData'])return;const _0x5cab4f=(_0x51da25=this['_cloneOperation'](_0x51da25,this['_diffRoots']))['oldRange']?_0x51da25['oldRange']['root']:null,_0x171777=_0x51da25['newRange']?_0x51da25['newRange']['root']:null;_0x5cab4f&&this['_markers']['delete'](_0x51da25['name']),_0x171777&&this['_markers']['set'](_0x51da25['name'],_0x51da25['newRange']['clone']());const _0x2b25a5=null===_0x51da25['_authorId']?null:_0x51da25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2387be=_0x51da25['name'];if(!this['_touchedMarkers']['has'](_0x2387be))return void this['_touchedMarkers']['set'](_0x2387be,{'range':_0x51da25['oldRange'],'userId':_0x2b25a5});const _0x26165d=this['_touchedMarkers']['get'](_0x2387be),_0x17e1ac=_0x26165d['range'],_0x2a06cb=_0x51da25['newRange'];null==_0x17e1ac&&null==_0x2a06cb||_0x17e1ac&&_0x2a06cb&&_0x17e1ac['isEqual'](_0x2a06cb)?this['_touchedMarkers']['delete'](_0x51da25['name']):_0x26165d['userId']=_0x2b25a5;}['_handleRootOperation'](_0x8d9d76,_0x510355){this['_diffRoots']['has'](_0x8d9d76['rootName'])?this['_diffRoots']['get'](_0x8d9d76['rootName'])['_isAttached']=_0x8d9d76['isAdd']:(this['_diffRoots']['set'](_0x8d9d76['rootName'],P(_0x8d9d76['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8d9d76['rootName'],{}),_0x510355&&this['_idsRoots']['set'](_0x8d9d76['rootName'],P(_0x8d9d76['rootName'],!0x0)));const _0x462f2a=null===_0x8d9d76['_authorId']?null:_0x8d9d76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fe53c=this['_touchedRoots']['get'](_0x8d9d76['rootName']);_0x1fe53c&&_0x1fe53c['userId']===_0x462f2a?this['_touchedRoots']['delete'](_0x8d9d76['rootName']):this['_touchedRoots']['set'](_0x8d9d76['rootName'],{'userId':_0x462f2a,'isAttached':_0x8d9d76['isAdd']});}['_handleRootAttributeOperation'](_0x3bcdcb){const _0x36b6ff=this['_diffRootsAttributes']['get'](_0x3bcdcb['root']['rootName']);null===_0x3bcdcb['newValue']?delete _0x36b6ff[_0x3bcdcb['key']]:_0x36b6ff[_0x3bcdcb['key']]=_0x3bcdcb['newValue'];}}function N(_0x43acfa){const _0x5b5537=P(_0x43acfa['rootName'],_0x43acfa['isAttached']());for(const _0x528425 of _0x43acfa['getChildren']()){const _0x38d035=_0x528425['_clone'](!0x0);_0x5b5537['_appendChild'](_0x38d035);}return _0x5b5537;}function P(_0x5ecb5c,_0x20cb1c=!0x0){const _0x15752c=new vt();return _0x15752c['rootName']=_0x5ecb5c,_0x15752c['_isAttached']=_0x20cb1c,_0x15752c['isAttached']=()=>_0x15752c['_isAttached'],_0x15752c;}function F(_0xfe71cf,_0x34cc72,_0x352684){const _0x123ee4='elementEnd'==_0xfe71cf['type']?_0x352684['createPositionAt'](_0xfe71cf['item'],'end'):_0x352684['createPositionBefore'](_0xfe71cf['item']);return _0x352684['createPositionFromPath'](_0x34cc72,_0x123ee4['path'],_0x123ee4['stickiness']);}function B(_0x42d89c,_0x1c22a6,_0x30f595){const _0x5ef6b3='elementStart'==_0x42d89c['type']?_0x30f595['createPositionAt'](_0x42d89c['item'],0x0):_0x30f595['createPositionAfter'](_0x42d89c['item']);return _0x30f595['createPositionFromPath'](_0x1c22a6,_0x5ef6b3['path'],_0x5ef6b3['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x50270f,_0x440dd4){super(_0x50270f),this['focusTracker']=new _0x5eeeb9(),this['keystrokes']=new _0x2bed51(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x440dd4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x28aef4(this);}['render'](){super['render'](),_0x3e875d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x55886a=_0x29b508=>_0x29b508['stopPropagation']();this['keystrokes']['set']('arrowright',_0x55886a),this['keystrokes']['set']('arrowleft',_0x55886a),this['keystrokes']['set']('arrowup',_0x55886a),this['keystrokes']['set']('arrowdown',_0x55886a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x32c243){this['revisionNameInputView']['fieldView']['element']['value']=_0x32c243['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x53c637){const _0x17dab4=new _0x5e368c(this['locale'],_0x27bde4),_0xad7594=_0x17dab4['fieldView'];_0xad7594['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x178132=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x53c637&&(_0x178132+='\x20('+g(this['locale'],'optional')+')'),(_0x17dab4['label']=_0x178132,_0xad7594['on']('input',()=>{this['revisionNameInputValue']=_0xad7594['element']['value']['trim']();}),_0x17dab4);}}class f extends _0x467a15{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x319bc1=this['editor'],_0x17c3cb=_0x319bc1['plugins']['get']('RevisionTracker');_0x319bc1['ui']['componentFactory']['add']('revisionHistory',_0xf184d2=>{const _0x574bcb=_0x1bbc66(_0xf184d2),_0x1ae67e=_0x574bcb['panelView']['children'],_0x43fcd5=new _0x423895(_0xf184d2),_0x3ca02d=new _0x4e47b7(_0xf184d2),_0x3d85e0=new te(_0xf184d2),_0x390f5a=new _0x4e47b7(_0xf184d2),_0x5a40a1=new te(_0xf184d2);return _0x574bcb['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x17c3cb,'isEnabled',_0x319bc1,'isReadOnly',(_0xd7c039,_0x29c83d,_0x3f4812)=>_0xd7c039&&_0x29c83d&&!_0x3f4812),_0x574bcb['buttonView']['set']({'icon':_0x11f442,'label':g(_0xf184d2,'Revision\x20history'),'tooltip':!0x0}),_0x3d85e0['set']({'label':g(_0xf184d2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3d85e0['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x17c3cb,'isEnabled',_0x319bc1,'isReadOnly',(_0x4f9898,_0x12dcf3,_0x19e6c6)=>_0x4f9898&&_0x12dcf3&&!_0x19e6c6),_0x3d85e0['on']('execute',()=>this['_showDialog']()),_0x5a40a1['set']({'label':g(_0xf184d2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a40a1['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x319bc1,'isReadOnly',(_0x575df4,_0x4acd8d)=>_0x575df4&&!_0x4acd8d),_0x5a40a1['on']('execute',()=>{_0x319bc1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x574bcb['isOpen']=!0x1,_0x319bc1['editing']['view']['focus']();}),_0x3ca02d['children']['add'](_0x3d85e0),_0x390f5a['children']['add'](_0x5a40a1),_0x43fcd5['role']='menu',_0x43fcd5['items']['addMany']([_0x3ca02d,_0x390f5a]),_0x1ae67e['add'](_0x43fcd5),_0x574bcb;}),_0x319bc1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1da82f=this['editor'],_0x3cfba4=_0x1da82f['locale'],_0x508d82=new _0x3bae41(_0x3cfba4),_0x2dc5d3=new _0x319907(_0x3cfba4);_0x508d82['buttonView']['set']({'icon':_0x11f442,'label':g(_0x3cfba4,'Revision\x20history')});const _0x25acbb=new _0x23c40d(_0x3cfba4,_0x508d82),_0x3597b9=new _0x22a9b2(_0x3cfba4);_0x3597b9['set']({'label':g(_0x3cfba4,'Save\x20current\x20revision')}),_0x3597b9['delegate']('execute')['to'](_0x508d82),_0x3597b9['on']('execute',()=>{this['_showDialog']();}),_0x25acbb['children']['add'](_0x3597b9),_0x2dc5d3['items']['add'](_0x25acbb);const _0x2d267c=new _0x23c40d(_0x3cfba4,_0x508d82),_0x21c287=new _0x22a9b2(_0x3cfba4);return _0x21c287['set']({'label':g(_0x3cfba4,'Open\x20revision\x20history')}),_0x21c287['delegate']('execute')['to'](_0x508d82),_0x21c287['on']('execute',()=>{_0x1da82f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d267c['children']['add'](_0x21c287),_0x2dc5d3['items']['add'](_0x2d267c),_0x508d82['panelView']['children']['add'](_0x2dc5d3),_0x508d82;}['_showDialog'](){const _0x54b204=this['editor'],_0x2c0876=_0x54b204['locale'],_0x234abe=_0x54b204['plugins']['get']('Dialog'),_0x1c63d9=_0x54b204['plugins']['get']('RevisionTracker');function _0x5cd85d(_0x14a6ba){_0x54b204['config']['get']('revisionHistory.requireRevisionName')&&''===_0x14a6ba['revisionName']?_0x14a6ba['revisionNameInputView']['errorText']=g(_0x2c0876,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x54b204['plugins']['get'](u)['saveRevision']({'name':_0x14a6ba['revisionName']}),_0x234abe['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cd85d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x234abe['show']({'id':'revisionSave','title':g(_0x2c0876,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x54b204['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x234abe['hide']()},{'label':g(_0x54b204['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2b71e3){_0x2b71e3['bind']('isEnabled')['to'](_0x1c63d9,'isReady',_0x1c63d9,'isEnabled',_0x54b204,'isReadOnly',(_0x3375ce,_0x22cf71,_0xa19f16)=>_0x3375ce&&_0x22cf71&&!_0xa19f16);},'onExecute':()=>_0x5cd85d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x57dd5e=this['editor'],_0x576b6f=_0x57dd5e['locale'];this['_saveRevisionFormView']=new hs(_0x576b6f,_0x57dd5e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1cc29a,_0x5e4176){super(_0x1cc29a),this['_model']=_0x5e4176,this['changeId']=_0x5e4176['id'];const _0x170e38=this['bindTemplate'],_0x1f8e00=g(_0x1cc29a,_0x5e4176['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5e4176['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5e4176['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x170e38['to']('type',_0x47918c=>'ck-revision-change__'+_0x47918c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1f8e00}]},{'text':'\x20'+_0x5e4176['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x583c2e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3953b4){super(),this['id']=_0x3953b4['id']||_0x57d2cb(),this['author']=_0x3953b4['author'],this['type']=_0x3953b4['type'],this['data']=_0x3953b4['data']||{},this['rootName']=_0x3953b4['rootName'],this['set']('createdAt',_0x3953b4['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(_0x39e114,_0x5c78a0){this['newRevisionId']=_0x39e114,this['oldRevisionId']=_0x5c78a0,this['changes']=new _0x20fb32();}['_setChanges'](_0x3f0746){for(const _0x2b3bc8 of _0x3f0746)this['changes']['add'](_0x2b3bc8);}}class m extends _0x467a15{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x164c4c,_0x40ff0f,I,V];}constructor(_0x34ed8f){super(_0x34ed8f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a1572,_0x2ba7fb,_0x461783)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xab4235=>{for(const _0x132292 of this['editor']['editing']['view']['document']['roots'])_0x461783?_0xab4235['removeClass']('ck-editor__editable__overlay',_0x132292):_0xab4235['addClass']('ck-editor__editable__overlay',_0x132292);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x506578=>null!==_0x506578),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1db1a1,_0xcde619,_0x3c1456)=>_0x1db1a1&&_0x3c1456?_0xcde619['changes']['getIndex'](_0x3c1456):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x156541,_0x57cf11)=>_0x156541?_0x57cf11['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x40ff0f);}['init'](){const _0x1d9544=this['editor'],_0x281b7e=new wt(_0x1d9544,{'direction':'backward'}),_0x35669d=new wt(_0x1d9544,{'direction':'forward'});(_0x1d9544['commands']['add']('showPreviousChange',_0x281b7e),_0x1d9544['commands']['add']('showNextChange',_0x35669d),_0x1d9544['commands']['add']('restoreRevision',new mt(_0x1d9544)),this['on']('change:numberOfChanges',()=>{_0x281b7e['refresh'](),_0x35669d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1d9544['enableReadOnlyMode']('revision-viewer'),_0x1d9544['plugins']['has']('WidgetToolbarRepository'))&&_0x1d9544['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5ea206){return await this['_utils']['loadRevisionData'](_0x5ea206,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5ea206);}async['getRevisionRootsAttributes'](_0x55170f){return await this['_utils']['loadRevisionData'](_0x55170f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x55170f);}async['compare'](_0x25cd88,_0x4469c1,_0x2e442e=!0x1){if(!this['isEnabled'])return;const _0x471847=this['diff'],_0x58b755=this['repository'],_0x1967b7='string'==typeof _0x25cd88?_0x58b755['getRevision'](_0x25cd88):_0x25cd88,_0x4f0014='string'==typeof _0x4469c1?_0x58b755['getRevision'](_0x4469c1):_0x4469c1,_0x1ecd95=_0x1967b7['id'],_0x28be2b=_0x4f0014?_0x4f0014['id']:null;if(!_0x2e442e&&this['diff']&&this['diff']['newRevisionId']===_0x1ecd95&&this['diff']['oldRevisionId']===_0x28be2b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ecd95,_0x28be2b);const _0x52e210=this['_getRevisionsRange'](_0x1967b7,_0x4f0014,!0x0)['map'](_0x3a1db2=>this['_utils']['loadRevisionData'](_0x3a1db2,this['adapter']));return _0x52e210['push'](new Promise(_0x2340b4=>{setTimeout(_0x2340b4,0x14);})),Promise['all'](_0x52e210)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1b0e27=this['_getDiff'](_0x1ecd95,_0x28be2b);for(const _0x3a9346 of _0x1b0e27['changes'])this['_changeIdToChange']['set'](_0x3a9346['id'],_0x3a9346);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b837d=>{for(const _0x380bb7 of this['editor']['model']['document']['getRootNames']())_0x4b837d['detachRoot'](_0x380bb7);for(const _0x3b36fb of Object['keys'](_0x1b0e27['model'])){const _0x259579=_0x4b837d['addRoot'](_0x3b36fb);for(const _0x5775bc of Object['keys'](_0x1b0e27['attributes'][_0x3b36fb]))_0x4b837d['setAttribute'](_0x5775bc,_0x1b0e27['attributes'][_0x3b36fb][_0x5775bc],_0x259579);_0x4b837d['insert'](_0x1b0e27['model'][_0x3b36fb],_0x259579,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1b0e27['changes'])),this['isReady']=!0x0;})['catch'](_0x2128d5=>{console['error'](_0x2128d5),this['_cleanUp'](),_0x471847&&(this['diff']=_0x471847),this['isReady']=!0x0;});}['addRevisionData'](_0x3d04a0,_0x39310d){const _0x1e97a1=this['repository']['createRevision'](_0x3d04a0);return _0x1e97a1['on']('_update',(_0x974b16,_0x48b7e6,_0x39c023)=>_0x39310d(_0x48b7e6,_0x39c023,_0x1e97a1)),this['repository']['addRevision'](_0x1e97a1),_0x1e97a1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f013c=>{for(const _0x470064 of this['editor']['model']['document']['getRootNames']())_0x2f013c['detachRoot'](_0x470064);});}['_sortAndFilterDiffChanges'](_0x153a53){const _0x2a34cf=[],_0x1c6474=new Map();for(const _0x3ac9f7 of this['editor']['model']['document']['getRootNames']()){const _0x5ea08c=this['editor']['editing']['view']['getDomRoot'](_0x3ac9f7);if(!_0x5ea08c)continue;const _0x58965d=_0x5ea08c['getClientRects']()['item'](0x0);_0x58965d&&(_0x2a34cf['push'](_0x3ac9f7),_0x1c6474['set'](_0x3ac9f7,_0x58965d));}return _0x2a34cf['sort']((_0x313f4e,_0x278078)=>{const _0x18a865=_0x1c6474['get'](_0x313f4e),_0xf46e3d=_0x1c6474['get'](_0x278078);return _0x18a865['y']-_0xf46e3d['y']||_0x18a865['x']-_0xf46e3d['x'];}),(_0x153a53=_0x153a53['filter'](_0x169abf=>_0x2a34cf['includes'](_0x169abf['rootName'])))['sort']((_0x309c71,_0x349587)=>_0x2a34cf['indexOf'](_0x309c71['rootName'])-_0x2a34cf['indexOf'](_0x349587['rootName'])),_0x153a53;}['_makeTape'](_0x539adf){const _0x2d8959=Array['from'](_0x539adf['markers'])['filter'](([_0x2b1139,_0x4bf173])=>_0x2b1139['startsWith']('revision:')&&!_0x4bf173['isCollapsed']),_0x5d6898=Array['from'](this['editor']['model']['createRangeIn'](_0x539adf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2d8959['length'])for(const _0x5bcf2c of _0x5d6898){const [_0x5c8a87,_0x43a7a5]=_0x2d8959[0x0],[,_0x47a496,_0x145da0]=_0x5c8a87['split'](':');if(_0x43a7a5['end']['isEqual'](_0x5bcf2c['nextPosition'])&&_0x2d8959['shift'](),(_0x5bcf2c['previousPosition']['isEqual'](_0x43a7a5['start'])||_0x5bcf2c['previousPosition']['isAfter'](_0x43a7a5['start']))&&('insertion'==_0x47a496?_0x5bcf2c['isAdded']={'userId':_0x145da0}:'deletion'==_0x47a496&&(_0x5bcf2c['isRemoved']={'userId':_0x145da0})),0x0==_0x2d8959['length'])break;}return _0x5d6898;}['_refreshStartEndIndex'](_0x59d206){const _0x1705a0=new Map();for(let _0x402980=0x0;_0x402980<_0x59d206['length'];_0x402980++)'text'===_0x59d206[_0x402980]['type']?(_0x59d206[_0x402980]['item']['startIndex']=_0x402980,_0x59d206[_0x402980]['item']['endIndex']=_0x402980):('elementStart'===_0x59d206[_0x402980]['type']?_0x59d206[_0x402980]['item']['startIndex']=_0x402980:'elementEnd'===_0x59d206[_0x402980]['type']&&(_0x59d206[_0x402980]['item']['endIndex']=_0x402980),_0x1705a0['set'](_0x59d206[_0x402980]['id'],_0x402980));for(const _0x4852df of _0x1705a0['values']())'elementStart'===_0x59d206[_0x4852df]['type']?_0x59d206[_0x4852df]['item']['endIndex']=_0x1705a0['get'](_0x59d206[_0x4852df]['pairId']):'elementEnd'===_0x59d206[_0x4852df]['type']&&(_0x59d206[_0x4852df]['item']['startIndex']=_0x1705a0['get'](_0x59d206[_0x4852df]['pairId']));}['_processTape'](_0x93b715){for(let _0x840fc4=0x0;_0x840fc4<_0x93b715['length'];_0x840fc4++){if('elementStart'===_0x93b715[_0x840fc4]['type'])_0x93b715[_0x840fc4]['item']['startIndex']=_0x840fc4;else{if('elementEnd'===_0x93b715[_0x840fc4]['type']){_0x93b715[_0x840fc4]['item']['endIndex']=_0x840fc4;const _0x37d3bc=_0x93b715[_0x840fc4]['item']['startIndex'];_0x93b715[_0x37d3bc]['pairId']=_0x93b715[_0x840fc4]['id'],_0x93b715[_0x840fc4]['pairId']=_0x93b715[_0x37d3bc]['id'];}else _0x93b715[_0x840fc4]['item']['startIndex']=_0x840fc4,_0x93b715[_0x840fc4]['item']['endIndex']=_0x840fc4,_0x93b715[_0x840fc4]['pairId']=null;}_0x93b715[_0x840fc4]['markersStart']||(_0x93b715[_0x840fc4]['markersStart']=[],_0x93b715[_0x840fc4]['markersEnd']=[]);}}['_markInsertions'](_0x37716c,_0x5bcf21){const _0x53eaf3=_0x37716c['filter'](_0x6017f6=>!_0x6017f6['isAdded']);for(let _0x595255=0x0;_0x595255<_0x5bcf21['length'];_0x595255++)_0x5bcf21[_0x595255]['isAdded']&&(_0x53eaf3[_0x595255]['isAdded']=_0x5bcf21[_0x595255]['isAdded']);}['_getDiff'](_0x1dfc4e,_0x43630a=null){const _0x2d482a=this['repository']['getRevision'](_0x1dfc4e),_0x3c5278=_0x43630a?this['repository']['getRevision'](_0x43630a):null,_0x18df86=this['_getRevisionsRange'](_0x2d482a,_0x3c5278),_0x4ff575=_0x18df86[_0x18df86['length']-0x1],_0x4a4729=new Map(),_0x1510b4={'model':{},'attributes':{},'changes':[]},_0x4624d8=new Set(),_0x5903f1=new Map();for(let _0x44c62e=_0x18df86['length']-0x1;_0x44c62e>=0x0;_0x44c62e--){const _0x2b63fc=_0x18df86[_0x44c62e];for(const _0x1e33c3 of Object['keys'](_0x2b63fc['diffData']))if(_0x2b63fc['diffData'][_0x1e33c3]['attachChange']){const _0x3ab274=_0x2b63fc['diffData'][_0x1e33c3]['attachChange'];_0x3ab274['isAttached']?(_0x4624d8['add'](_0x1e33c3),_0x5903f1['has'](_0x1e33c3)&&_0x5903f1['get'](_0x1e33c3)['userId']==_0x3ab274['userId']?_0x5903f1['delete'](_0x1e33c3):_0x5903f1['set'](_0x1e33c3,_0x3ab274)):_0x5903f1['has'](_0x1e33c3)?(_0x4624d8['delete'](_0x1e33c3),_0x5903f1['delete'](_0x1e33c3)):(_0x4624d8['add'](_0x1e33c3),_0x5903f1['set'](_0x1e33c3,_0x3ab274));}else _0x4624d8['add'](_0x1e33c3);}for(const _0x207511 of _0x4624d8){const _0x1ec757=_0x5903f1['has'](_0x207511)&&!_0x5903f1['get'](_0x207511)['isAttached'];let _0x4037e1=_0x1ec757?_0x18df86['length']-0x1:0x0;const _0x48a546=_0x1ec757?-0x1:0x1;for(;_0x18df86[_0x4037e1];){const _0x5717d9=_0x18df86[_0x4037e1];if(_0x5717d9['diffData'][_0x207511]){const _0x29f88f=_0x1ec757?_0x5717d9['diffData'][_0x207511]['attributesBefore']:_0x5717d9['diffData'][_0x207511]['attributesAfter'];_0x1510b4['attributes'][_0x207511]=_0x29f88f?_0x5765cb(_0x29f88f):{};break;}_0x4037e1+=_0x48a546;}}for(const _0x5977b3 of _0x18df86){_0x5977b3['model']={};for(const _0xf0815 of _0x5977b3['authors'])_0x4a4729['set'](_0xf0815['id'],_0xf0815);for(const _0x34d910 of _0x4624d8){const _0x5a6855=_0x5977b3['diffData'][_0x34d910]?_0x5977b3['diffData'][_0x34d910]['insertions']:'[]',_0x3680bd=_0x5977b3['diffData'][_0x34d910]?_0x5977b3['diffData'][_0x34d910]['deletions']:'[]';_0x5977b3['model'][_0x34d910]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a6855),'deletions':this['_utils']['_makeModelFromViewString'](_0x3680bd)};}}for(const _0x1a457d of _0x4624d8){let _0x59bc39=null,_0x5d56d7=0x0;const _0x19ce5c=new Map(Array['from'](_0x2d482a['model'][_0x1a457d]['insertions']['markers'])['filter'](([_0xf2ef03])=>!_0xf2ef03['startsWith']('revision:')));let _0xd82452=0x0;for(const _0x17166a of _0x18df86){const _0x531f7f=this['_makeTape'](_0x17166a['model'][_0x1a457d]['insertions']);_0x17166a==_0x2d482a?(_0x59bc39=_0x531f7f,_0x5d56d7=_0x59bc39['length'],_0x59bc39['forEach'](_0x31cfa9=>{_0x31cfa9['id']=_0xd82452++;}),this['_processTape'](_0x59bc39)):this['_markInsertions'](_0x59bc39,_0x531f7f);const _0x18734c=_0x59bc39['filter'](_0xeafd57=>!_0xeafd57['isAdded'])['map'](_0x3bce53=>_0x3bce53['id']);let _0x20fb98=0x0;const _0x2ea848=this['_makeTape'](_0x17166a['model'][_0x1a457d]['deletions']);_0x2ea848['forEach'](_0x485dc2=>{_0x485dc2['isRemoved']?_0x485dc2['id']=_0x5d56d7++:_0x485dc2['id']=_0x18734c[_0x20fb98++];}),this['_processTape'](_0x2ea848),this['_setDistance'](_0x59bc39,'isAdded'),this['_setDistance'](_0x2ea848,'isRemoved'),_0x17166a==_0x2d482a&&this['_markMarkers'](_0x59bc39,_0x19ce5c),_0x59bc39=this['_joinTapes'](_0x59bc39,_0x2ea848),this['_refreshStartEndIndex'](_0x59bc39),this['_setDistance'](_0x59bc39,'isRemoved');}_0x59bc39=_0x59bc39['filter'](_0x2f67f6=>!(_0x2f67f6['isAdded']&&_0x2f67f6['isRemoved']));const _0x2c14ce=new Map(_0x4ff575['model'][_0x1a457d]['deletions']['markers']),_0x12e643=new Set(_0x19ce5c['keys']());for(const _0x111edd of _0x2c14ce['keys']())_0x12e643['delete'](_0x111edd);this['_markSuggestions'](_0x59bc39,_0x12e643),this['_fixObsoleteTags'](_0x59bc39),_0x59bc39=this['_removeMissingPairs'](_0x59bc39),_0x59bc39=this['_markMismatchedRemovedTags'](_0x59bc39),_0x59bc39=this['_removeUnsupportedChanges'](_0x59bc39);const {root:_0x1309af,changes:_0x338017}=this['_makeModelFromTape'](_0x59bc39,_0x4a4729,_0x1a457d);_0x1510b4['model'][_0x1a457d]=_0x1309af;const _0x30dcad=_0x5903f1['get'](_0x1a457d);if(_0x30dcad){const _0x432385=_0x4a4729['get'](_0x30dcad['userId']),_0x49d459=new r({'author':_0x432385,'type':_0x30dcad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a457d});_0x338017['unshift'](_0x49d459),_0x1510b4['attributes'][_0x1a457d]['revisionHistoryAttachChange']=_0x49d459['id'];}_0x1510b4['changes']=_0x1510b4['changes']['concat'](_0x338017);}return _0x1510b4;}['_markMarkers'](_0xca9359,_0x4f2efe){for(let _0x1f1acb=0x0;_0x1f1acb<_0xca9359['length'];_0x1f1acb++)for(const [_0x190324,_0x3bfb2d]of _0x4f2efe)!_0x3bfb2d['isCollapsed']&&_0x3bfb2d['start']['isEqual'](_0xca9359[_0x1f1acb]['previousPosition'])&&_0xca9359[_0x1f1acb]['markersStart']['push'](_0x190324),_0x3bfb2d['end']['isEqual'](_0xca9359[_0x1f1acb]['nextPosition'])&&_0xca9359[_0x1f1acb]['markersEnd']['push'](_0x190324);}['_joinTapes'](_0x4eb039,_0x31955f){let _0x5b1a09=[],_0x15c4ff=0x0,_0x736a50=0x0;for(;_0x15c4ff<_0x4eb039['length']||_0x736a50<_0x31955f['length'];){const _0x51f88c=_0x4eb039[_0x15c4ff]||{},_0x3131ff=_0x31955f[_0x736a50]||{};if(_0x51f88c['id']==_0x3131ff['id'])_0x15c4ff++,_0x736a50++,_0x5b1a09['push'](_0x51f88c);else{if(_0x3131ff['isRemoved']&&_0x51f88c['isAdded']){const {commonTape:_0x4f29ad,iEnd:_0x206a75,jEnd:_0x32892c}=this['_threeWayMerge'](_0x4eb039,_0x15c4ff,_0x31955f,_0x736a50);_0x5b1a09=_0x5b1a09['concat'](_0x4f29ad),_0x15c4ff=_0x206a75,_0x736a50=_0x32892c;}else _0x3131ff['isRemoved']?(_0x736a50++,_0x5b1a09['push'](_0x3131ff)):(_0x15c4ff++,_0x5b1a09['push'](_0x51f88c));}}return _0x5b1a09;}['_markSuggestions'](_0x1a64bb,_0x3a9081){const _0x4b0979=[];for(let _0x3ae9b0=0x0;_0x3ae9b0<_0x1a64bb['length'];_0x3ae9b0++){for(let _0xcd1993=0x0;_0xcd1993<_0x1a64bb[_0x3ae9b0]['markersStart']['length'];_0xcd1993++){const _0x211c16=_0x1a64bb[_0x3ae9b0]['markersStart'][_0xcd1993];if(!_0x3a9081['has'](_0x211c16))continue;const {group:_0x5c8f67,type:_0x42d15e,authorId:_0x4dcd23}=_0xa2fbb7(_0x211c16);'revision-suggestion'!=_0x5c8f67||'insertion'!=_0x42d15e&&'deletion'!=_0x42d15e||(_0x4b0979['unshift']({'type':_0x42d15e,'name':_0x211c16,'userId':_0x4dcd23}),_0x1a64bb[_0x3ae9b0]['markersStart']['splice'](_0xcd1993,0x1),_0xcd1993--);}_0x4145dc(_0x1a64bb[_0x3ae9b0]);for(let _0x3c15f9=0x0;_0x3c15f9<_0x1a64bb[_0x3ae9b0]['markersEnd']['length'];_0x3c15f9++){const _0x8dc55b=_0x1a64bb[_0x3ae9b0]['markersEnd'][_0x3c15f9];if(!_0x3a9081['has'](_0x8dc55b))continue;const {group:_0x14d5f2,type:_0x552351}=_0xa2fbb7(_0x8dc55b);if('revision-suggestion'!=_0x14d5f2||'insertion'!=_0x552351&&'deletion'!=_0x552351)continue;_0x1a64bb[_0x3ae9b0]['markersEnd']['splice'](_0x3c15f9,0x1),_0x3c15f9--;const _0x357e04=_0x4b0979['findIndex'](_0x57f2ad=>_0x57f2ad['name']==_0x8dc55b);_0x357e04>-0x1&&_0x4b0979['splice'](_0x357e04,0x1);}}function _0xa2fbb7(_0x2c67ef){const _0x595014=_0x2c67ef['split'](':');return{'group':_0x595014[0x0],'type':_0x595014[0x1],'subType':_0x595014['length']>=0x5?_0x595014[0x2]:null,'id':_0x595014['length']<0x5?_0x595014[0x2]:_0x595014[0x3],'authorId':_0x595014['length']<0x5?_0x595014[0x3]:_0x595014[0x4],'markerCount':0x6==_0x595014['length']?_0x595014[0x5]:null};}function _0x4145dc(_0x38779f){for(let _0x2ddc5c=0x0;_0x2ddc5c<_0x4b0979['length'];_0x2ddc5c++){if(_0x38779f['isAdded']&&'insertion'==_0x4b0979[_0x2ddc5c]['type'])return _0x38779f['isAddSuggestion']=_0x4b0979[_0x2ddc5c],void delete _0x38779f['isAdded'];if(!_0x38779f['isAdded']&&!_0x38779f['isRemoved']&&'deletion'==_0x4b0979[_0x2ddc5c]['type'])return void(_0x38779f['isRemoveSuggestion']=_0x4b0979[_0x2ddc5c]);}}}['_setDistance'](_0x4eb013,_0x27f008){let _0x58ee11=0x0,_0x32350f=!0x1;const _0x51b50d=new Map();for(const _0x635ae7 of _0x4eb013)_0x635ae7[_0x27f008]?_0x32350f&&(_0x58ee11++,_0x32350f=!0x1):(_0x58ee11++,_0x32350f=!0x0),_0x51b50d['set'](_0x635ae7['id'],_0x58ee11);for(let _0x91226b=0x0;_0x91226b<_0x4eb013['length'];_0x91226b++){if('isRemoved'==_0x27f008&&_0x4eb013[_0x91226b]['isAdded']||'isAdded'==_0x27f008&&_0x4eb013[_0x91226b]['isRemoved'])continue;if('text'==_0x4eb013[_0x91226b]['type']){_0x4eb013[_0x91226b]['distance']=0x0;continue;}const _0x503759=_0x51b50d['get'](_0x4eb013[_0x91226b]['pairId']),_0x159fe9=_0x51b50d['get'](_0x4eb013[_0x91226b]['id']);_0x4eb013[_0x91226b]['distance']=_0x503759-_0x159fe9;}}['_getRevisionsRange'](_0x45db9b,_0x2fdbd7,_0x191c53=!0x1){const _0x2887a8=[];let _0x30c50f=this['repository']['getIndex'](_0x45db9b),_0x5eee93=this['repository']['getIndex'](_0x2fdbd7);for(-0x1==_0x5eee93&&(_0x5eee93=this['repository']['_revisions']['length'],_0x191c53=!0x1);_0x30c50f<_0x5eee93;)_0x2887a8['push'](this['repository']['getRevision'](_0x30c50f)),_0x30c50f++;return _0x191c53&&_0x2887a8['push'](this['repository']['getRevision'](_0x30c50f)),_0x2887a8;}['_threeWayMerge'](_0x14b6b7,_0x2ce48b,_0x26de81,_0x5dd38a){const _0x260153=this['editor']['model']['schema'];let _0x131375=_0x2ce48b;for(;_0x14b6b7[_0x131375]&&_0x14b6b7[_0x131375]['isAdded'];)_0x131375++;let _0x171df7=_0x5dd38a;for(;_0x26de81[_0x171df7]&&_0x26de81[_0x171df7]['isRemoved'];)_0x171df7++;_0x5f1b88(_0x14b6b7,_0x2ce48b,_0x131375),_0x5f1b88(_0x26de81,_0x5dd38a,_0x171df7);const _0x36782b=_0x26de81['slice'](_0x5dd38a,_0x171df7)['concat'](_0x14b6b7['slice'](_0x2ce48b,_0x131375));return _0x36782b['sort']((_0x3d65e2,_0x40e2b2)=>_0x3d65e2['side']!=_0x40e2b2['side']?_0x3d65e2['side']-_0x40e2b2['side']:_0x3d65e2['level']!=_0x40e2b2['level']?_0x3d65e2['level']-_0x40e2b2['level']:_0x3d65e2['distance']!=_0x40e2b2['distance']?_0x40e2b2['distance']-_0x3d65e2['distance']:!!_0x3d65e2['isAdded']!=!!_0x40e2b2['isAdded']?-0x1==_0x3d65e2['side']||0x0==_0x3d65e2['side']?_0x3d65e2['isAdded']?-0x1:0x1:_0x3d65e2['isAdded']?0x1:-0x1:_0x3d65e2['index']-_0x40e2b2['index']),{'commonTape':_0x36782b,'iEnd':_0x131375,'jEnd':_0x171df7};function _0x5f1b88(_0x3d1695,_0x308025,_0x1d6777){let _0x5eb082=-0x1,_0x2795e0=Number['POSITIVE_INFINITY'],_0x1d4251=!0x0;for(let _0x412fa1=_0x308025;_0x412fa1<_0x1d6777;_0x412fa1++)if(_0x260153['isInline'](_0x3d1695[_0x412fa1]['item'])||(_0x1d4251=!0x1),_0x3d1695[_0x412fa1]['item']['startIndex']<_0x308025&&(_0x5eb082=_0x412fa1),_0x3d1695[_0x412fa1]['item']['endIndex']>=_0x1d6777){_0x2795e0=_0x412fa1;break;}_0x1d4251&&(_0x5eb082=_0x1d6777-0x1);for(let _0x19a368=_0x308025;_0x19a368<_0x1d6777;_0x19a368++)_0x3d1695[_0x19a368]['side']=_0x19a368<=_0x5eb082?-0x1:_0x19a368<_0x2795e0?0x0:0x1,_0x3d1695[_0x19a368]['index']=_0x19a368;let _0x5eb7e3=0x0;for(let _0x31791c=_0x308025;_0x31791c<=_0x5eb082;_0x31791c++)0x0==_0x3d1695[_0x31791c]['distance']?_0x3d1695[_0x31791c]['level']=_0x5eb7e3:(_0x5eb7e3++,_0x3d1695[_0x31791c]['level']=_0x5eb7e3,_0x5eb7e3++);for(let _0x26669=_0x308025;_0x26669<_0x1d6777;_0x26669++)0x0==_0x3d1695[_0x26669]['side']&&(_0x3d1695[_0x26669]['level']=_0x5eb7e3);_0x5eb7e3=0x0;for(let _0x4b6cfd=_0x1d6777-0x1;_0x4b6cfd>=_0x2795e0;_0x4b6cfd--)0x0==_0x3d1695[_0x4b6cfd]['distance']?_0x3d1695[_0x4b6cfd]['level']=_0x5eb7e3:(_0x5eb7e3--,_0x3d1695[_0x4b6cfd]['level']=_0x5eb7e3,_0x5eb7e3--);}}['_fixObsoleteTags'](_0x5413ed){const _0x443c25=new Map(),_0x4eaf55=this['editor']['model']['schema'];for(let _0x53c97d=0x1;_0x53c97d<_0x5413ed['length'];_0x53c97d++){let _0x52e850,_0x31b0bb,_0x4ca5f6;const _0x4721be=_0x5413ed[_0x53c97d],_0x37045b=_0x5413ed[_0x53c97d-0x1];if('text'==_0x4721be['type'])continue;if(_0x4721be['type']!=_0x37045b['type'])continue;if(!_0x4eaf55['isBlock'](_0x37045b['item'])||_0x4eaf55['isLimit'](_0x37045b['item']))continue;if(!_0x4eaf55['isBlock'](_0x4721be['item'])||_0x4eaf55['isLimit'](_0x4721be['item']))continue;if((_0x5413ed[_0x53c97d]['isAdded']||_0x5413ed[_0x53c97d]['isAddSuggestion'])&&_0x5413ed[_0x53c97d-0x1]['isRemoved'])_0x52e850=_0x5413ed[_0x53c97d],_0x31b0bb=_0x5413ed[_0x53c97d-0x1],_0x4ca5f6=_0x53c97d-0x1;else{if(!_0x5413ed[_0x53c97d]['isRemoved']||!_0x5413ed[_0x53c97d-0x1]['isAdded']&&!_0x5413ed[_0x53c97d-0x1]['isAddSuggestion'])continue;_0x52e850=_0x5413ed[_0x53c97d-0x1],_0x31b0bb=_0x5413ed[_0x53c97d],_0x4ca5f6=_0x53c97d;}const _0x1cd0bf=_0x52e850['level']==_0x31b0bb['level'],_0x5bbc81=Math['abs'](_0x52e850['level'])<Math['abs'](_0x31b0bb['level'])&&0x0==_0x31b0bb['distance'];(_0x1cd0bf||_0x5bbc81)&&(_0x443c25['set'](_0x31b0bb['id'],_0x52e850['id']),_0x5413ed['splice'](_0x4ca5f6,0x1),_0x53c97d--,_0x52e850['isAdded']=!0x1);}for(let _0x452b43=0x0;_0x452b43<_0x5413ed['length'];_0x452b43++)_0x443c25['has'](_0x5413ed[_0x452b43]['pairId'])&&(_0x5413ed[_0x452b43]['pairId']=_0x443c25['get'](_0x5413ed[_0x452b43]['pairId']));}['_removeMissingPairs'](_0x5e88e0){const _0x5222e0=new Set(_0x5e88e0['map'](_0x48a4c6=>_0x48a4c6['id']));for(let _0x27e013=0x0;_0x27e013<_0x5e88e0['length'];_0x27e013++)_0x5222e0['has'](_0x5e88e0[_0x27e013]['pairId'])||0x0==_0x5e88e0[_0x27e013]['distance']||(_0x5e88e0[_0x27e013]['isIncorrect']=!0x0);return _0x5e88e0['filter'](_0x3b887e=>!_0x3b887e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cc7f3){const _0x24048a=new Set();for(let _0x15cd0b=0x0;_0x15cd0b<_0x4cc7f3['length'];_0x15cd0b++){if(_0x24048a['has'](_0x4cc7f3[_0x15cd0b]['id'])&&_0x4cc7f3[_0x15cd0b]['isRemoved']&&(_0x4cc7f3[_0x15cd0b]['isIncorrect']=!0x0),_0x4cc7f3[_0x15cd0b]['isIncorrect'])continue;if(0x0==_0x4cc7f3[_0x15cd0b]['distance'])continue;if('elementStart'!=_0x4cc7f3[_0x15cd0b]['type'])continue;if(null==_0x4cc7f3[_0x15cd0b]['pairId'])continue;let _0x47b6a3=_0x15cd0b+0x1,_0x21aaf6=0x0;for(;_0x4cc7f3[_0x47b6a3]['id']!=_0x4cc7f3[_0x15cd0b]['pairId'];)'elementStart'==_0x4cc7f3[_0x47b6a3]['type']?_0x21aaf6++:'elementEnd'==_0x4cc7f3[_0x47b6a3]['type']&&_0x21aaf6--,_0x47b6a3++;if(0x0!=_0x21aaf6){if(_0x4cc7f3[_0x15cd0b]['isRemoved'])_0x4cc7f3[_0x15cd0b]['isIncorrect']=!0x0;else{for(;_0x47b6a3!=_0x15cd0b;)_0x4cc7f3[_0x47b6a3]['isRemoved']&&0x0!=_0x4cc7f3[_0x47b6a3]['distance']&&(_0x4cc7f3[_0x47b6a3]['isIncorrect']=!0x0,_0x24048a['add'](_0x4cc7f3[_0x47b6a3]['pairId'])),_0x47b6a3--;}}}return _0x4cc7f3['filter'](_0x1ce557=>!_0x1ce557['isIncorrect']);}['_removeUnsupportedChanges'](_0x4f8564){const _0x58bef3=this['editor']['model']['schema'];for(let _0x468d38=0x0;_0x468d38<_0x4f8564['length'];_0x468d38++){if(!(_0x4f8564[_0x468d38]['isAdded']||_0x4f8564[_0x468d38]['isAddSuggestion']||_0x4f8564[_0x468d38]['isRemoved']||_0x4f8564[_0x468d38]['isRemoveSuggestion']))continue;if(0x0==_0x4f8564[_0x468d38]['distance'])continue;const _0x299e50=_0x4f8564[_0x468d38]['item'];_0x58bef3['isBlock'](_0x299e50)||_0x58bef3['isLimit'](_0x299e50)||(_0x4f8564[_0x468d38]['isAdded']&&delete _0x4f8564[_0x468d38]['isAdded'],_0x4f8564[_0x468d38]['isAddSuggestion']&&delete _0x4f8564[_0x468d38]['isAddSuggestion'],_0x4f8564[_0x468d38]['isRemoveSuggestion']&&delete _0x4f8564[_0x468d38]['isRemoveSuggestion'],_0x4f8564[_0x468d38]['isRemoved']&&(_0x4f8564[_0x468d38]['isIncorrect']=!0x0));}return _0x4f8564['filter'](_0x72b72=>!_0x72b72['isIncorrect']);}['_makeModelFromTape'](_0x1fd39f,_0x4bcb6e,_0x1bd29d){const _0xaef22b=new vt(),_0x427a7c=[],_0x1d483f=new Map(),_0x55a08e=this['editor']['model'],_0x3d7241=_0x55a08e['schema'],_0x1f149f=[_0xaef22b],_0x2db11d={},_0x549ba9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x429d1a=null;const _0x389f23=[0x0];for(let _0x192749=0x0;_0x192749<_0x1fd39f['length'];_0x192749++)if('elementStart'===_0x1fd39f[_0x192749]['type']){_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23);const _0x4d7d47=new ut(_0x1fd39f[_0x192749]['item']['name'],_0x1fd39f[_0x192749]['item']['getAttributes']());_0x1f149f[0x0]['_appendChild'](_0x4d7d47),_0x389f23['push'](0x0),_0x1f149f['unshift'](_0x4d7d47),_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23);}else'elementEnd'===_0x1fd39f[_0x192749]['type']?(_0x1f149f['shift'](),_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23),_0x389f23['pop'](),_0x389f23[_0x389f23['length']-0x1]++,_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23)):(_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23),_0x429d1a?_0x429d1a['_data']+=_0x1fd39f[_0x192749]['item']['data']:_0x429d1a=new gt(_0x1fd39f[_0x192749]['item']['data'],_0x1fd39f[_0x192749]['item']['getAttributes']()),_0x1fd39f[_0x192749+0x1]&&'text'===_0x1fd39f[_0x192749+0x1]['type']&&_0x5ab78f(_0x429d1a,_0x1fd39f[_0x192749+0x1]['item'])||(_0x1f149f[0x0]['_appendChild'](_0x429d1a),_0x429d1a=null),_0x389f23[_0x389f23['length']-0x1]+=_0x1fd39f[_0x192749]['item']['offsetSize'],_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23));for(let _0x1065d6=0x0;_0x1065d6<_0x1fd39f['length'];_0x1065d6++){const _0x29ee37=_0x1fd39f[_0x1065d6]['previousPosition'],_0x17bfd7=_0x1fd39f[_0x1065d6]['nextPosition'];for(const _0x322267 of _0x1fd39f[_0x1065d6]['markersStart'])_0x1d483f['set'](_0x322267,{'start':_0x29ee37,'end':null});_0x226ab7('isRemoveSuggestion',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isAddSuggestion',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isRemoved',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isAdded',_0x1065d6,_0x29ee37,_0x17bfd7);for(const _0x26faaf of _0x1fd39f[_0x1065d6]['markersEnd']){const _0x64cc55=_0x1d483f['get'](_0x26faaf);_0x64cc55?_0x64cc55['end']=_0x17bfd7:_0x1d483f['set'](_0x26faaf,{'start':_0x17bfd7,'end':_0x17bfd7});}}for(const [_0x54daa9,_0x1f38d4]of _0x1d483f){const _0x1faa95=this['editor']['model']['createRange'](_0x1f38d4['start'],_0x1f38d4['end']);_0xaef22b['markers']['set'](_0x54daa9,_0x1faa95);}return _0x427a7c['sort']((_0x5e96f1,_0x4514ad)=>{const _0x56b1d5=_0xaef22b['markers']['get']('revision:'+_0x5e96f1['id']),_0x24f5cc=_0xaef22b['markers']['get']('revision:'+_0x4514ad['id']);return _0x56b1d5['start']['isBefore'](_0x24f5cc['start'])?-0x1:_0x56b1d5['start']['isAfter'](_0x24f5cc['start'])?0x1:_0x56b1d5['end']['isBefore'](_0x24f5cc['end'])?-0x1:_0x56b1d5['end']['isAfter'](_0x24f5cc['end'])?0x1:'add'===_0x5e96f1['type']?-0x1:0x1;}),{'root':_0xaef22b,'changes':_0x427a7c};function _0x226ab7(_0x5567b6,_0x5d7e62,_0x2df7cc,_0x37a040){const _0x26f379=!!_0x1fd39f[_0x5d7e62][_0x5567b6],_0x100c3d=_0x26f379?_0x1fd39f[_0x5d7e62][_0x5567b6]['userId']:null,_0x45730d=_0x5d7e62===_0x1fd39f['length']-0x1,_0x167309=_0x549ba9[_0x5567b6][0x0],_0x267b40=_0x3d7241['isObject'](_0x1fd39f[_0x5d7e62]['item']);!_0x2db11d[_0x5567b6]&&_0x26f379?_0x2db11d[_0x5567b6]={'start':_0x2df7cc,'tapeItem':_0x1fd39f[_0x5d7e62],'userId':_0x100c3d,'type':_0x5567b6}:_0x2db11d[_0x5567b6]&&!_0x26f379?(_0x2db11d[_0x5567b6]['end']=_0x2df7cc,_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]=null):_0x2db11d[_0x5567b6]&&_0x26f379&&_0x2db11d[_0x5567b6]['userId']!==_0x100c3d&&(_0x2db11d[_0x5567b6]['end']=_0x2df7cc,_0x167309&&_0x167309['userId']===_0x2db11d[_0x5567b6]['userId']||_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]={'start':_0x2df7cc,'tapeItem':_0x1fd39f[_0x5d7e62],'userId':_0x100c3d,'type':_0x5567b6}),_0x2db11d[_0x5567b6]&&_0x267b40&&('elementStart'!==_0x1fd39f[_0x5d7e62]['type']||_0x167309&&_0x167309['userId']===_0x100c3d||_0x549ba9[_0x5567b6]['unshift']({'userId':_0x100c3d,'object':_0x1fd39f[_0x5d7e62]['item'],'change':_0x2db11d[_0x5567b6]}),'elementEnd'===_0x1fd39f[_0x5d7e62]['type']&&_0x167309&&_0x167309['object']===_0x1fd39f[_0x5d7e62]['item']&&(_0x549ba9[_0x5567b6]['shift'](),_0x2db11d[_0x5567b6]=_0x167309['change'])),_0x2db11d[_0x5567b6]&&_0x45730d&&(_0x2db11d[_0x5567b6]['end']=_0x37a040,_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]=null);}function _0x5959c4({start:_0x1d9c97,end:_0x138c9b,tapeItem:_0x3bf852,userId:_0x3ea9fe,type:_0x33f9f7}){const _0xe57bfb=_0x3bf852['item'],_0x43417e=_0x55a08e['schema']['isBlock'](_0xe57bfb)&&!_0x55a08e['schema']['isLimit'](_0xe57bfb),_0x1717da=_0x1d9c97['nodeAfter']==_0x138c9b['parent']&&_0x138c9b['isAtStart'];if(_0x43417e&&_0x1717da)return;const _0x2094f6=_0x55a08e['createRange'](_0x1d9c97,_0x138c9b),_0x59f6d4=_0x4bcb6e['get'](_0x3ea9fe),_0x49892b=new r({'author':_0x59f6d4,'type':'isAdded'==_0x33f9f7||'isAddSuggestion'==_0x33f9f7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33f9f7||'isRemoveSuggestion'==_0x33f9f7},'createdAt':new Date(),'rootName':_0x1bd29d});_0x427a7c['push'](_0x49892b),_0xaef22b['markers']['set']('revision:'+_0x49892b['id'],_0x2094f6);}function _0x5ab78f(_0x5d09c4,_0x50cf5a){const _0x61b8b3=_0x5d09c4['getAttributes'](),_0x9cb702=_0x50cf5a['getAttributes']();for(const _0x35e0d0 of _0x61b8b3){if(_0x35e0d0[0x1]!==_0x50cf5a['getAttribute'](_0x35e0d0[0x0]))return!0x1;_0x9cb702['next']();}return _0x9cb702['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3e8f12=>{const _0xf3cbcb=_0x3e8f12['markerName']['split'](':')[0x1],_0x51797a=this['_getChangeFromId'](_0xf3cbcb);if(!_0x51797a)return null;const _0x23e8c7='add'==_0x51797a['type']?'insertion':'deletion',_0x4e9dd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x23e8c7];return _0x51797a['data']['isSuggestion']&&_0x4e9dd['push']('ck-suggestion-marker-'+_0x23e8c7+'-new'),this['activeChange']==_0x51797a&&_0x4e9dd['push']('ck-suggestion-marker--active'),{'classes':_0x4e9dd,'attributes':{'data-change-id':_0xf3cbcb}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b0f49=>{_0x1b0f49['on']('element:pre',(_0x230914,_0x6c55d2,_0x5a7074)=>{const _0x4d4c8f=_0x6c55d2['viewItem']['getChild'](0x0);if(!_0x4d4c8f||!_0x4d4c8f['is']('element','code'))return;if(!_0x5a7074['consumable']['consume'](_0x4d4c8f,{'attributes':['vid_start','vid_end']}))return;const _0x12583e=_0x6c55d2['modelRange']['start']['nodeAfter'];_0x5a7074['writer']['setAttribute']('vid_start',_0x4d4c8f['getAttribute']('vid_start'),_0x12583e),_0x5a7074['writer']['setAttribute']('vid_end',_0x4d4c8f['getAttribute']('vid_end'),_0x12583e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x406b4e=>{_0x406b4e['on']('element',(_0x41fe41,_0x3c68d7,_0x59e9d7)=>{if(!_0x59e9d7['consumable']['consume'](_0x3c68d7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c68d7['modelRange']['isCollapsed'])return;const _0x36fd5c=_0x3c68d7['modelRange']['start']['nodeAfter'];_0x36fd5c['hasAttribute']('vid_start')||_0x36fd5c['hasAttribute']('vid')||(_0x59e9d7['writer']['setAttribute']('vid_start',_0x3c68d7['viewItem']['getAttribute']('vid_start'),_0x36fd5c),_0x59e9d7['writer']['setAttribute']('vid_end',_0x3c68d7['viewItem']['getAttribute']('vid_end'),_0x36fd5c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x67221f=>_0x67221f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4e0de9,[,_0x2ab9d0])=>{['vid_start','vid_end','vid']['includes'](_0x2ab9d0)&&(_0x4e0de9['return']=!0x0,_0x4e0de9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f4ddb=>{_0x4f4ddb['on']('attribute:vid',(_0xfae33c,_0xe369db,_0xff2226)=>{if('\x20'!=_0xe369db['item']['data']||_0xe369db['item']['parent']['maxOffset']>0x1)return;if(!_0xff2226['consumable']['consume'](_0xe369db['item'],_0xfae33c['name']))return;const _0x3d1b6a=_0xff2226['writer'],_0x51aeb0=_0xff2226['mapper']['toViewRange'](_0xe369db['range']);_0x3d1b6a['wrap'](_0x51aeb0,_0x3d1b6a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1d5ca7){const _0xf6be86=_0x1d5ca7['plugins']['get']('RevisionViewer');return(_0x107769,_0x2d9d91,_0x196a9c)=>{const _0x1b3f1f=_0x2d9d91['markerName']['split'](':')[0x1],_0x4e4256=_0xf6be86['_getChangeFromId'](_0x1b3f1f);if(!_0x4e4256)return null;const _0x4296a9='add'==_0x4e4256['type']?'split':'merge';if(!_0x196a9c['consumable']['test'](_0x2d9d91['markerRange'],_0x107769['name']))return;const _0x5106a5=_0x2d9d91['markerRange']['getWalker'](),_0x992c9a=_0x2d9d91['markerRange']['start'],_0x1608ad=_0x1d5ca7['model']['schema'];let _0x5777f9=null,_0x300af7=null,_0x219ae8=!0x1,_0x426319=!0x1;for(const _0x318318 of _0x5106a5){const _0x2d0026=_0x318318['item'];_0x219ae8=_0x219ae8||_0x1608ad['isContent'](_0x2d0026);const _0x3a3bbf=_0x196a9c['mapper']['toViewElement'](_0x2d0026);if(_0x3a3bbf&&_0x3a3bbf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x318318['type']&&(_0x1608ad['isBlock'](_0x2d0026)&&!_0x1608ad['isLimit'](_0x2d0026)&&(_0x2d0026['nextSibling']||_0x992c9a['isAtEnd']?_0x5777f9&&_0x5777f9['parent']==_0x2d0026||(_0x5777f9=_0x2d0026,_0x5bc401(_0x318318['previousPosition']),_0x426319=!0x0):_0x300af7=_0x300af7||_0x318318['previousPosition']));}function _0x5bc401(_0x5af524){const _0x18143f=_0x196a9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4296a9}),_0x3512f8=_0x196a9c['mapper']['toViewPosition'](_0x5af524);_0x4e4256['data']['isSuggestion']&&_0x196a9c['writer']['addClass']('ck-suggestion-marker-'+_0x4296a9+'-new',_0x18143f),_0xf6be86['activeChange']==_0x4e4256&&_0x196a9c['writer']['addClass']('ck-suggestion-marker--active',_0x18143f),_0x196a9c['writer']['insert'](_0x3512f8,_0x18143f),_0x196a9c['mapper']['bindElementToMarker'](_0x18143f,_0x2d9d91['markerName']);}_0x219ae8||_0x426319||!_0x300af7||_0x5bc401(_0x300af7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x492752,_0x50f68b,_0x56d1a1)=>{const _0x5b21e5=_0x56d1a1['mapper']['markerNameToElements'](_0x50f68b['markerName']);if(_0x5b21e5){for(const _0x5d154c of _0x5b21e5)(_0x5d154c['hasClass']('ck-suggestion-marker-split')||_0x5d154c['hasClass']('ck-suggestion-marker-merge'))&&(_0x56d1a1['mapper']['unbindElementFromMarkerName'](_0x5d154c,_0x50f68b['markerName']),_0x56d1a1['writer']['remove'](_0x5d154c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x27213a,_0xfd954e,_0x157cbb)=>{const _0x426ef4=_0xfd954e['markerName']['split'](':')[0x1],_0x1badb4=this['_getChangeFromId'](_0x426ef4);if(!_0x1badb4)return null;const _0x22e587='add'==_0x1badb4['type']?'split':'merge';if(_0x157cbb['consumable']['test'](_0xfd954e['markerRange'],_0x27213a['name']))for(const _0x403523 of _0xfd954e['markerRange']['getItems']()){if(!_0x403523['is']('element','softBreak'))continue;const _0x1fd7fe=_0x157cbb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22e587}),_0x1b1855=_0x157cbb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x403523));_0x1badb4['data']['isSuggestion']&&_0x157cbb['writer']['addClass']('ck-suggestion-marker-'+_0x22e587+'-new',_0x1fd7fe),this['activeChange']==_0x1badb4&&_0x157cbb['writer']['addClass']('ck-suggestion-marker--active',_0x1fd7fe),_0x157cbb['writer']['insert'](_0x1b1855,_0x1fd7fe),_0x157cbb['mapper']['bindElementToMarker'](_0x1fd7fe,_0xfd954e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x166987=>{for(const _0xc3a930 of this['editor']['model']['document']['getRootNames']()){const _0x852e72=this['editor']['model']['document']['getRoot'](_0xc3a930),_0x37cd16=this['editor']['editing']['view']['document']['getRoot'](_0xc3a930);if(_0x37cd16){const _0x4bf3b0=_0x852e72['getAttribute']('revisionHistoryAttachChange');if(_0x166987['removeAttribute']('data-change-id',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root-add',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root-remove',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root--active',_0x37cd16),_0x4bf3b0){const _0x5d77a7=this['_getChangeFromId'](_0x4bf3b0);if(!_0x5d77a7)return null;_0x166987['setAttribute']('data-change-id',_0x4bf3b0,_0x37cd16),_0x166987['addClass']('ck-revision-history-root-'+_0x5d77a7['type'],_0x37cd16),this['activeChange']==_0x5d77a7&&_0x166987['addClass']('ck-revision-history-root--active',_0x37cd16);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8003f1=>'revision-comment:'+_0x8003f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa320ee=>'revision-suggestion:'+_0xa320ee,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x417b22=>({'name':'suggestion:'+_0x417b22,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x49ef48=>{const _0x17a813=_0x49ef48['markerName']['split'](':')[0x1];return'insertion'!=_0x17a813&&'deletion'!=_0x17a813?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x17a813]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x48fef5,_0x5d29ac,_0x78214c)=>{const _0x387461=_0x78214c['mapper']['markerNameToElements'](_0x5d29ac['markerName']);if(_0x387461){for(const _0x53eca6 of _0x387461)_0x53eca6['is']('uiElement')&&(_0x78214c['mapper']['unbindElementFromMarkerName'](_0x53eca6,_0x5d29ac['markerName']),_0x78214c['writer']['remove'](_0x53eca6));}},{'priority':'high'});}['_getChangeFromId'](_0x156e11){return this['_changeIdToChange']['get'](_0x156e11);}['_getViewForChange'](_0x49c335){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x49c335),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a11c0,_0x3056c6,_0x437b0e,_0x136a80)=>{_0x136a80&&this['_balloon']['remove'](_0x136a80),_0x437b0e&&(this['_balloon']['add']({'view':_0x437b0e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4615a1=this['editor']['editing'],_0x2f3986=this['_getChangeFromId'](_0x437b0e['changeId']);let _0x2d915;if(_0x2f3986['data']['isOnRoot']){const _0x3ec606=_0x4615a1['view']['getDomRoot'](_0x2f3986['rootName']);_0x2d915=Array['from'](_0x3ec606['getClientRects']());}else{const _0x5c231c=this['editor']['model']['markers']['get']('revision:'+_0x437b0e['changeId']);_0x2d915=Array['from'](_0x4615a1['mapper']['markerNameToElements'](_0x5c231c['name']))['map'](_0x11245b=>_0x4615a1['view']['domConverter']['mapViewToDom'](_0x11245b))['map'](_0x182b49=>Array['from'](_0x182b49['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2d915[0x0];return _0x2d915['find'](_0x3783d1=>_0x3783d1['top']-0x3<=this['_activeViewTarget']['y']&&_0x3783d1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3783d1['left']-0x3<=this['_activeViewTarget']['x']&&_0x3783d1['right']+0x3>=this['_activeViewTarget']['x'])||_0x2d915[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d9805,_0x5b61ff,_0x31b948,_0x3600b2)=>{this['activeView']=_0x31b948?this['_getViewForChange'](_0x31b948):null,this['editor']['model']['change'](()=>{const _0x2a7568=this['editor']['editing'];_0x3600b2&&(_0x3600b2['data']['isOnRoot']?_0x2a7568['view']['change'](_0x4e6309=>{_0x4e6309['removeClass']('ck-revision-history-root--active',_0x2a7568['view']['document']['getRoot'](_0x3600b2['rootName']));}):_0x2a7568['reconvertMarker']('revision:'+_0x3600b2['id'])),_0x31b948&&(_0x31b948['data']['isOnRoot']?_0x2a7568['view']['change'](_0x26eba2=>{_0x26eba2['addClass']('ck-revision-history-root--active',_0x2a7568['view']['document']['getRoot'](_0x31b948['rootName']));}):_0x2a7568['reconvertMarker']('revision:'+_0x31b948['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1aa926,_0x1693bc)=>{if(this['activeChange'])return;const _0x5eadca=this['_findChangeIdFromDomTarget'](_0x1693bc['target']),_0x5db684=this['_changeIdToChange']['get'](_0x5eadca);_0x5db684?(this['_activeViewTarget']={'x':_0x1693bc['domEvent']['x'],'y':_0x1693bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5db684)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4608b3,_0x120f50)=>{const _0x398665=this['_findChangeIdFromDomTarget'](_0x120f50['target']),_0x5c4913=this['_changeIdToChange']['get'](_0x398665);_0x5c4913?(this['_activeViewTarget']={'x':_0x120f50['domEvent']['x'],'y':_0x120f50['domEvent']['y']},_0x5c4913===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5c4913):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3dff9f){do{const _0x47b2df=_0x3dff9f['getAttribute']('data-change-id');if(_0x47b2df)return _0x47b2df;_0x3dff9f=_0x3dff9f['parent'];}while(_0x3dff9f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2d2aa6=>{for(const _0x281e2b of this['editor']['model']['markers'])_0x2d2aa6['removeMarker'](_0x281e2b);});}}function X(_0xc70e1a,_0x1ec3e1){return(_0x319823,_0x46f8fe,_0x1f207b)=>{if(!_0x1f207b['consumable']['test'](_0x46f8fe['markerRange'],_0x319823['name']))return;const _0x1cd3a6=_0x46f8fe['markerRange']['getWalker'](),_0x21af24=_0x46f8fe['markerRange']['start'],_0x4862a9=_0xc70e1a['model']['schema'];let _0x532d08=null,_0x2d1df2=null,_0x583b6a=!0x1,_0xcc5e48=!0x1;for(const _0xdd9010 of _0x1cd3a6){const _0x4ace4b=_0xdd9010['item'];_0x583b6a=_0x583b6a||_0x4862a9['isContent'](_0x4ace4b);const _0xcb3007=_0x1f207b['mapper']['toViewElement'](_0x4ace4b);if(_0xcb3007&&_0xcb3007['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdd9010['type']&&(_0x4862a9['isBlock'](_0x4ace4b)&&!_0x4862a9['isLimit'](_0x4ace4b)&&(_0x4ace4b['nextSibling']||_0x21af24['isAtEnd']?_0x532d08&&_0x532d08['parent']==_0x4ace4b||(_0x532d08=_0x4ace4b,_0x5bb7c4(_0xdd9010['previousPosition']),_0xcc5e48=!0x0):_0x2d1df2=_0x2d1df2||_0xdd9010['previousPosition']));}function _0x5bb7c4(_0x4e66f4){const _0x34f1b9=_0x1f207b['mapper']['toViewPosition'](_0x4e66f4),_0x3679f2=_0x1f207b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ec3e1});_0x1f207b['writer']['insert'](_0x34f1b9,_0x3679f2),_0x1f207b['mapper']['bindElementToMarker'](_0x3679f2,_0x46f8fe['markerName']);}_0x583b6a||_0xcc5e48||!_0x2d1df2||_0x5bb7c4(_0x2d1df2);};}class mt extends _0x130ccb{constructor(_0x57a8a1){super(_0x57a8a1);const _0x4be3b5=_0x57a8a1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4be3b5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4be3b5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc6b593=this['editor'],_0x162619=_0xc6b593['plugins']['get'](m),_0x14278e=_0x162619['isReady']?_0x162619['diff']['newRevisionId']:null;_0xc6b593['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14278e);}['refresh'](){const {isReady:_0x4e57d8,isEnabled:_0x1cc0ff,repository:_0xd389f6,diff:_0x456b09}=this['editor']['plugins']['get'](m),_0x2f9025=_0x456b09&&_0xd389f6['getLaterVisibleRevision'](_0x456b09['newRevisionId']);this['isEnabled']=_0x4e57d8&&_0x1cc0ff&&Boolean(_0x2f9025);}}class wt extends _0x130ccb{['_step'];constructor(_0x20e70b,{direction:_0x4740fc}){super(_0x20e70b);const _0x34a231=_0x20e70b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4740fc?0x1:-0x1,this['listenTo'](_0x34a231,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34a231,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34a231,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d5cc1=this['editor'],_0x49abfb=_0x5d5cc1['plugins']['get'](m),{isNavigationMode:_0x717e06,currentChangeNumber:_0x4e4bce}=_0x49abfb;let _0xd892f5;if(_0x49abfb['activeChange']=_0x717e06?_0x49abfb['diff']['changes']['get'](_0x4e4bce+this['_step']):_0x49abfb['diff']['changes']['first'],_0x49abfb['activeChange']['data']['isOnRoot'])_0xd892f5=_0x5d5cc1['editing']['view']['getDomRoot'](_0x49abfb['activeChange']['rootName']);else{const _0x36f5fb=_0x5d5cc1['model']['markers']['get']('revision:'+_0x49abfb['activeChange']['id']);_0xd892f5=_0x353784(_0x5d5cc1['editing'],_0x36f5fb);}_0x3985f8({'target':_0xd892f5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x201a57,currentChangeNumber:_0x34b4ee,numberOfChanges:_0x54d36e,isReady:_0x249242,isEnabled:_0x15f402}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x15f402&&_0x249242&&_0x54d36e)&&(!_0x201a57||(0x1===this['_step']?_0x34b4ee<_0x54d36e-0x1:_0x34b4ee>0x0));}}class li extends ts{constructor(_0x362cf4){super(_0x362cf4);const _0x4e8356=this['bindTemplate'],_0x3bb7c5=new te(_0x362cf4),_0x38a4cb=new te(_0x362cf4);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',(_0x24eec2,_0x39cda7)=>_0x24eec2&&_0x39cda7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x14086e,_0x1782c7,_0xb46c80,_0x5039cc)=>{if(!_0x14086e)return g(_0x362cf4,'Loading...');if(!_0xb46c80)return g(_0x362cf4,'No\x20changes');const _0x2bc74e=g(_0x362cf4,'NUMBER_OF_CHANGES',_0xb46c80);return _0x5039cc?g(_0x362cf4,'X_OF_Y_CHANGES',[_0x1782c7+0x1,_0xb46c80]):_0x2bc74e;}),_0x3bb7c5['set']({'label':g(_0x362cf4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xea41e4}),_0x38a4cb['set']({'label':g(_0x362cf4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x40586f}),_0x3bb7c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x38a4cb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3bb7c5['on']('execute',()=>this['fire']('execute','backward')),_0x38a4cb['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',_0x4e8356['if']('_isStatusLabelVisible','ck-hidden',_0x4c2869=>!_0x4c2869)]},'children':[{'text':_0x4e8356['to']('isNavigationMode',_0xdeb1=>_0xdeb1?g(_0x362cf4,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x362cf4,'Total')+':\x20')}]},{'text':_0x4e8356['to']('_statusText')}]},new _0x5518ad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3bb7c5,_0x38a4cb]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x467a15{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c722a=this['editor']['editing']['view'];_0x5c722a['change'](_0x295be3=>{for(const _0x489906 of _0x5c722a['document']['roots'])_0x295be3['addClass'](le,_0x489906);});}['hide'](){const _0xd7316f=this['editor']['editing']['view'];_0xd7316f['change'](_0x5af7b1=>{for(const _0x516f69 of _0xd7316f['document']['roots'])_0x5af7b1['removeClass'](le,_0x516f69);});}}class R extends _0x467a15{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x498042=this['editor'],_0x27b3bd=_0x498042['plugins']['get'](m),_0x299000=_0x498042['plugins']['get'](ge);_0x498042['ui']['componentFactory']['add']('exitToEditing',_0x3fb56e=>{const _0x272c67=new te(_0x3fb56e);return _0x272c67['set']({'label':g(_0x3fb56e,'Back\x20to\x20editing'),'icon':_0xa6d7b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x272c67,'execute',()=>{_0x498042['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x272c67;}),_0x498042['ui']['componentFactory']['add']('restoreRevision',_0xeae4db=>{const _0x4f15fa=new te(_0xeae4db);return _0x4f15fa['set']({'label':g(_0xeae4db,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4f15fa['bind']('isEnabled')['to'](_0x498042['commands']['get']('restoreRevision')),this['listenTo'](_0x4f15fa,'execute',()=>_0x498042['execute']('restoreRevision')),_0x4f15fa;}),_0x498042['ui']['componentFactory']['add']('changesNavigation',_0x2e1ba6=>{const _0x4477ef=new li(_0x2e1ba6),_0x20b7dc=_0x498042['commands']['get']('showPreviousChange'),_0x172657=_0x498042['commands']['get']('showNextChange');return _0x4477ef['bind']('isBackwardNavigationEnabled')['to'](_0x20b7dc,'isEnabled'),_0x4477ef['bind']('isForwardNavigationEnabled')['to'](_0x172657,'isEnabled'),_0x4477ef['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x27b3bd),this['listenTo'](_0x4477ef,'execute',(_0x2d7c86,_0x129017)=>{_0x498042['execute']('forward'===_0x129017?'showNextChange':'showPreviousChange');}),_0x4477ef;}),_0x299000['show'](),_0x27b3bd['on']('change:isReady',(_0x27def9,_0x3cd157,_0x4e905b)=>{_0x4e905b?_0x299000['hide']():_0x299000['show']();});}}class at extends _0x5e368c{['_resizeObserver']=null;constructor(_0x66d5eb,_0x4a8a99){super(_0x66d5eb,_0x4a8a99);const _0x2982b8=this['bindTemplate'];this['set']({'label':g(_0x66d5eb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x66d5eb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2982b8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x50abc6=this['fieldView']['element'];this['_tooltipString']=_0x50abc6['scrollWidth']>_0x50abc6['clientWidth']&&_0x50abc6['value']||'';}}class oi extends ts{constructor(_0x791770,_0x37e66f,_0x133f92){super(_0x791770);const _0xd0818c=new _0x3b9592();_0xd0818c['set']({'content':_0x50a058,'viewBox':'0\x200\x2011\x2010'});const _0x540653=['ck','ck-revision-history-sidebar__revision-author'];_0x133f92&&_0x540653['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa3c208=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x791770,_0x133f92?'Revision\x20creator':'Revision\x20author')},'children':[_0xd0818c,_0x37e66f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x540653},'children':_0xa3c208});}}function ai(_0x25c1c4,_0x23cf23){const _0x2557b7=_0x25c1c4['bindTemplate'],_0x172ef1=_0x25c1c4['locale'],_0x5bcc5c=_0x1bbc66(_0x172ef1);_0x5bcc5c['panelPosition']='sw';const _0x2b3dee=function(_0x3215f0,_0x3adeea){const _0x382ba4=function(_0x792e00,_0x11318c){const _0x379788=_0x792e00['locale'],_0x2466b5={'Compare\x20against\x20selected':g(_0x379788,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x379788,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x379788,'Restore\x20this\x20revision')};return _0x11318c['map'](_0x4c7917=>{const _0x5a1c3b=_0x2466b5[_0x4c7917['name']];return _0x5a1c3b&&_0x5a1c3b!==_0x4c7917['name']&&(_0x4c7917['name']=_0x5a1c3b),_0x4c7917;});}(_0x3215f0,_0x3adeea),_0x84aace=new _0x20fb32();for(const _0x54528a of _0x382ba4){const _0xe46cef={'type':'button','model':new to({'label':_0x54528a['name'],'class':_0x54528a['class'],'withText':!0x0,'role':'menuitem','_action':_0x54528a['action']})};_0xe46cef['model']['bind']('isEnabled')['to'](_0x3215f0,'isActionsDropdownOpen',_0x5a0b0b=>'function'!=typeof _0x54528a['isEnabled']||(!_0x5a0b0b||_0x54528a['isEnabled'](_0x3215f0))),_0x84aace['add'](_0xe46cef);}return _0x84aace;}(_0x25c1c4,_0x23cf23);return _0x25c1c4['bind']('isActionsDropdownOpen')['to'](_0x5bcc5c,'isOpen'),_0x5bcc5c['buttonView']['set']({'label':g(_0x172ef1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1b7c4a}),_0x5bcc5c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2557b7['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2557b7['to'](_0x7430ed=>_0x7430ed['stopPropagation']())}}),_0x5bcc5c['on']('execute',_0x4ffeb2=>{_0x25c1c4['isReady']&&'function'==typeof _0x4ffeb2['source']['_action']&&_0x4ffeb2['source']['_action'](_0x25c1c4);}),_0x4e7e23(_0x5bcc5c,_0x2b3dee,{'role':'menu'}),_0x5bcc5c['listenTo'](_0x25c1c4,'change:isActionsDropdownOpen',(_0x55b259,_0x191f19,_0x398bfa)=>{if(_0x398bfa)for(const _0x3cbb52 of _0x5bcc5c['listView']['items']){const _0x599475=_0x3cbb52['children']['first'],_0x2112ed=_0x23cf23['find'](_0x411cd3=>_0x411cd3['action']===_0x599475['_action'])['isVisible'];_0x3cbb52['isVisible']=void 0x0===_0x2112ed||_0x2112ed(_0x25c1c4);}}),_0x5bcc5c;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x15303f(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x14a703,_0x48d947,_0x1b95a3,_0x5d761c){super(_0x14a703);const _0x541aa0=this['bindTemplate'],_0x1223fa=function(_0x43dd85,_0xbb4306){const _0x583ed7=Array['from'](_0xbb4306['authors'])['filter'](_0xfe3742=>_0xfe3742!=_0xbb4306['creator']);return _0xbb4306['creator']&&_0x583ed7['unshift'](_0xbb4306['creator']),_0x583ed7['map'](_0x365f21=>new oi(_0x43dd85,_0x365f21,_0x365f21==_0xbb4306['creator']));}(_0x14a703,_0x48d947);this['id']=_0x48d947['id'],this['_revision']=_0x48d947,this['_requireRevisionName']=_0x5d761c,this['bind']('name','createdAt')['to'](_0x48d947),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x135aec=>{return _0x771df0=_0x14a703['uiLanguage'],(_0xa4732a=_0x135aec)['toLocaleDateString'](_0x771df0,{'month':'long','day':'numeric'})+',\x20'+_0xa4732a['toLocaleTimeString'](_0x771df0,{'hour':'numeric','minute':'numeric'});var _0x771df0,_0xa4732a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x14a703,_0x27bde4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x28a9a1=>_0x28a9a1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5e868f,_0x23e803)=>_0x5e868f&&_0x23e803),this['revisionActionsView']=_0x1b95a3&&_0x1b95a3['length']?ai(this,_0x1b95a3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x541aa0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x541aa0['if']('isEnabled','ck-disabled',_0x551fef=>!_0x551fef),_0x541aa0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x541aa0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x541aa0['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':_0x541aa0['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':_0x1223fa}]},this['revisionActionsView']],'on':{'click':_0x541aa0['to'](_0x2283ee=>{_0x2283ee['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x119757=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x119757,'change',()=>{this['_requireRevisionName']&&!_0x119757['value']||this['fire']('setName',{'id':this['id'],'name':_0x119757['value']}),_0x119757['value']||(_0x119757['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0xe884a6,_0x2ef779){const _0x10abe9=_0x4d9239['fromJSDate'](_0xe884a6)['setLocale'](_0x2ef779),_0x324476=_0x4d9239['local'](),_0x578134=_0x324476['minus']({'days':0x1})['startOf']('day');let _0x2e37c0,_0x473347;return _0x10abe9['hasSame'](_0x324476,'day')?(_0x2e37c0=_0x10abe9['startOf']('day')['toJSDate'](),_0x473347=_0x10abe9['toRelativeCalendar']()):_0x10abe9['hasSame'](_0x578134,'day')?(_0x2e37c0=_0x578134['toJSDate'](),_0x473347=_0x10abe9['toRelativeCalendar']()):_0x10abe9['hasSame'](_0x324476,'week')?(_0x2e37c0=_0x10abe9['startOf']('week')['toJSDate'](),_0x473347=_0x10abe9['weekdayLong']||''):_0x10abe9['hasSame'](_0x324476,'year')?(_0x2e37c0=_0x10abe9['startOf']('month')['toJSDate'](),_0x473347=_0x10abe9['monthLong']||''):(_0x2e37c0=_0x10abe9['startOf']('year')['toJSDate'](),_0x473347=String(_0x10abe9['year'])),{'startDate':_0x2e37c0,'localizedPeriodName':_0x473347};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58914e,_0x422b56,_0x122e87,_0x5c6a26){super(_0x58914e);const _0x1b59a4=ti(_0x422b56,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x422b56,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x122e87,this['_requireRevisionName']=_0x5c6a26,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':_0x1b59a4}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x48d45a){const _0x457096=new si(this['locale'],_0x48d45a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x457096);}['removeRevision'](_0x75fcb2){const _0x262fb1=this['revisionViews']['find'](_0x14e76c=>_0x14e76c['id']===_0x75fcb2['id']);this['revisionViews']['remove'](_0x262fb1);}}class cs extends ts{constructor(_0xc737bb){super(_0xc737bb);const _0x1bc902=new _0x3b9592();_0x1bc902['content']=_0x11f442,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1bc902,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xc737bb,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x13e0b6,_0x392327,_0x560f75,_0x1d2d74){super(_0x13e0b6);const _0x13bfa2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x392327,this['_revisionActions']=_0x560f75,this['_requireRevisionName']=_0x1d2d74,this['on']('select',(_0x3233f1,_0x58ad92)=>{this['fire']('revisionSelected',_0x58ad92);}),this['on']('setName',(_0x52256e,_0x41d3d9)=>{this['fire']('revisionSetName',_0x41d3d9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x13e0b6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x13bfa2['if']('isEnabled','ck-disabled',_0xf39b27=>!_0xf39b27)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3e83c9 of this['_revisions'])this['_addRevision'](_0x3e83c9);this['_revisions']['on']('add',(_0x636062,_0x4dfbc8)=>{this['_addRevision'](_0x4dfbc8);}),this['_revisions']['on']('remove',(_0xf58866,_0x1302d8)=>{this['_removeRevision'](_0x1302d8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x52cdae=>_0x52cdae['revisionViews']['map'](_0x587699=>_0x587699))['flat']();}['selectRevision'](_0x175368){for(const _0x5b6895 of this['revisionViews'])_0x175368&&_0x175368['id']===_0x5b6895['id']?_0x5b6895['select']():_0x5b6895['deselect']();}['highlightRevisions'](_0x46a8fa){for(const _0x422a4d of this['revisionViews'])_0x46a8fa['some'](({id:_0x57b57d})=>_0x57b57d===_0x422a4d['id'])?_0x422a4d['highlight']():_0x422a4d['unhighlight']();}['_addRevision'](_0x3bd9fb){const _0x45b318=ti(_0x3bd9fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x7030ff=this['timePeriodViews']['get'](0x0);_0x7030ff&&_0x7030ff['startDate']['getTime']()===_0x45b318['getTime']()||(_0x7030ff=new ei(this['locale'],_0x45b318,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x7030ff)),_0x7030ff['addRevision'](_0x3bd9fb);}['_removeRevision'](_0x42e50a){const _0x635de5=ti(_0x42e50a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x635de5)['removeRevision'](_0x42e50a);}['_getTimePeriodViewByStartDate'](_0x2e4895){return this['timePeriodViews']['find'](_0x5d0efa=>_0x5d0efa['startDate']['getTime']()===_0x2e4895['getTime']());}}class d extends _0x467a15{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0xb0a2a8){super(_0xb0a2a8),this['_revisionViewer']=_0xb0a2a8['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x23cd51=this['_revisionsRepository']['_revisions'],_0x5da023=this['_createRevisionActions'](),_0xcdc5c4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x23cd51,_0x5da023,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',(_0x3b2504,_0xb72622)=>{_0xb72622['revisionViews']['on']('add',(_0x14e8ec,_0x1a0d78)=>{_0x1a0d78['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)),_0xcdc5c4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xc8e7cf=this['_revisionsRepository']['getRevision'](0x0);if(_0xc8e7cf){const _0x580429=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc8e7cf['id']);this['_revisionViewer']['compare'](_0xc8e7cf,_0x580429);}}['_handleRevisionSelected'](_0x50413f,_0x3d6974){const _0x454623=this['_revisionsRepository']['getRevision'](_0x3d6974['id']),_0x1c395b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x454623['id']);this['_revisionViewer']['compare'](_0x454623,_0x1c395b);}['_handleRevisionSetName'](_0x7680fd,_0x2420a7){this['_revisionsRepository']['getRevision'](_0x2420a7['id'])['setName'](_0x2420a7['name']);}['_handleDiffChange'](_0x4d9350,_0x48535b,_0x55c93c){const _0x4d70f7=this['_revisionsRepository']['getRevisionsInDiff'](_0x55c93c);_0x4d70f7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4d70f7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4d70f7[0x0]));}['_createRevisionActions'](){const _0x1f62f9=this['editor'],_0x1ff4a7=d['availableRevisionActions'],_0x23f157=_0x1f62f9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x23f157['length'])return _0x23f157['map'](_0x1eafd1=>{const _0x25f1c0='string'==typeof _0x1eafd1?Object['assign']({},_0x1ff4a7[_0x1eafd1]):_0x1eafd1;return _0x25f1c0['action']=_0x25f1c0['action']['bind'](this,_0x1f62f9),_0x25f1c0['isVisible']&&(_0x25f1c0['isVisible']=_0x25f1c0['isVisible']['bind'](this,_0x1f62f9)),_0x25f1c0;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5f2871},_0x49872e)=>{const _0xc5ce4b=_0x5f2871['get'](m),_0xb12200=_0xc5ce4b['repository'];let _0x2066ac=_0xc5ce4b['diff']['newRevisionId'],_0x5cfe03=_0x49872e['id'];_0xb12200['getIndex'](_0x2066ac)>_0xb12200['getIndex'](_0x5cfe03)&&([_0x2066ac,_0x5cfe03]=[_0x5cfe03,_0x2066ac]),_0xc5ce4b['compare'](_0x2066ac,_0x5cfe03);},'isVisible':({plugins:_0x44e85b},_0x5daedf)=>{const _0x1a509d=_0x44e85b['get'](m);return!(_0x1a509d['repository']['getRevisionsInDiff'](_0x1a509d['diff'])['length']>0x2)&&!_0x5daedf['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2ee712,{id:_0x5a947e})=>{_0x2ee712['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a947e);},'isVisible':({plugins:_0x1af309},_0x2ebabb)=>!!_0x1af309['get'](m)['repository']['getLaterVisibleRevision'](_0x2ebabb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5eb6fa},{id:_0x1b6db9,revisionNameView:_0x1dc213})=>{const _0x2e1254=_0x5eb6fa['get'](m),_0x1b4376=_0x2e1254['repository']['getEarlierVisibleRevision'](_0x1b6db9);_0x2e1254['compare'](_0x1b6db9,_0x1b4376),_0x1dc213['focus'](),_0x1dc213['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2fc8e6,_0x1735d5){super(_0x2fc8e6),this['_view']=_0x1735d5,this['_toolbarConfig']=et(_0x2fc8e6['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1323a7){const _0x2c4f9b=this['editor'],_0x15a23b=this['view'],_0x2386e1=_0x2c4f9b['editing']['view'],_0x29d8ac=_0x15a23b['editable'],_0x797a75=_0x2386e1['document']['getRoot']();_0x29d8ac['name']=_0x797a75['rootName'],_0x15a23b['render']();const _0x3aee02=_0x29d8ac['element'];this['setEditableElement'](_0x29d8ac['name'],_0x3aee02),_0x15a23b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2386e1['attachDomRoot'](_0x3aee02),this['_elementReplacer']['replace'](_0x1323a7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x17b5b9=this['view'],_0x418e1d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x418e1d['detachDomRoot'](_0x17b5b9['editable']['name']),_0x17b5b9['destroy']();}['_initToolbar'](){const _0x22d3a5=this['view'];_0x22d3a5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x22d3a5['stickyPanel']['limiterElement']=_0x22d3a5['element'],_0x22d3a5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x24e7d5})=>_0x24e7d5),_0x22d3a5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x22d3a5['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x39133c,_0xe6513a,_0x3c45d3={}){super(_0x39133c),this['stickyPanel']=new ht(_0x39133c),this['toolbar']=new dt(_0x39133c,{'shouldGroupWhenFull':_0x3c45d3['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x39133c,_0xe6513a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x1cb9b2(_0x55a24b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x120c05,_0x3c34e3){super(_0x3c34e3),this['sourceElement']=_0x120c05,this['model']['document']['createRoot']();const _0x24229b=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x24229b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4a4c5a,_0x5e93ca){const _0x431a23=new this(_0x4a4c5a,_0x5e93ca);return await _0x431a23['initPlugins'](),await _0x431a23['ui']['init'](_0x4a4c5a),await _0x431a23['data']['init'](_0x431a23['config']['get']('initialData')||''),_0x431a23['fire']('ready'),_0x431a23;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x425a55{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44a61b){function _0x51ceda(_0xcb304d){return _0xcb304d['map'](_0x8c10d8=>String['fromCharCode'](_0x8c10d8))['join']('');}super(_0x44a61b),this['result']='end',_0x44a61b[_0x51ceda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ceda([0x76,0x69,0x65,0x77])][_0x51ceda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51ceda([0x61,0x75,0x74,0x6f]),_0x44a61b[_0x51ceda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51ceda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51ceda([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51ceda([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51ceda([0x6f,0x6b])});}}class k extends _0x425a55{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x19de7e){if(super(_0x19de7e),!this['editor']['config']['get']('revisionHistory'))throw new _0x26796e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3dab08=>this['_showRevisionViewer']({..._0x3dab08,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x562cef=>this['_closeRevisionViewer'](_0x562cef)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x516260=>this['_restoreRevision'](_0x516260)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x341c32){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x341c32;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x58704a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x58704a);}['getRevision'](_0xedaae4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xedaae4);}['getRevisions'](_0x4a294c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4a294c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb20bba=this['editor'],_0x32db46=_0x349ba6(_0xb20bba,p),_0x47789b=_0xb20bba['plugins']['get']('RevisionTracker'),_0x528f1b=_0xb20bba['plugins']['get']('Users')['users'];return _0x32db46['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x32db46['lazyRoots'],(_0x32db46['plugins']['push'](yt,m,R,class extends _0x425a55{static get['requires'](){return[m,'Users'];}['init'](){const _0x1d78c1=this['editor']['plugins']['get']('Users');for(const _0x74eeb3 of _0x528f1b)_0x74eeb3['isAnonymous']||_0x1d78c1['getUser'](_0x74eeb3['id'])||_0x1d78c1['addUser'](_0x74eeb3);const _0x7fdee7=_0x47789b['repository']['getRevisions']();let _0x1148ef=null;const _0x29bfb0=this['editor']['plugins']['get']('RevisionViewer');_0x29bfb0['adapter']=_0x47789b['adapter'],_0x29bfb0['bind']('isEnabled')['to'](_0x47789b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb20bba,'isReadOnly',_0x2b1c86=>!_0x2b1c86);for(const _0xd792cd of _0x7fdee7){const _0x3d77e4=null===_0xd792cd['creator'];if(_0x3d77e4&&_0xd792cd['toVersion']===_0xd792cd['fromVersion'])continue;const _0x40eb17=_0xd792cd['toJSON']();_0x29bfb0['addRevisionData'](_0x40eb17,(_0x117cd3,_0x2f8417,_0x4b6706)=>{if(_0x3d77e4){if(_0x1148ef)_0x1148ef['_update'](_0x117cd3,_0x2f8417);else{if(!_0x2f8417){const _0x35f074=_0x4b6706['toJSON']();_0x35f074['id']=_0x450571(),_0x47789b['saveRevision'](_0x35f074,_0x4b6706['toVersion'])['then'](_0xa7fad6=>{_0x1148ef=_0xa7fad6;});}}}else _0xd792cd['_update'](_0x117cd3,_0x2f8417);});}}},d),_0x32db46);}['_enhanceShowRevisionViewerCallback'](){const _0x14f881=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4bbb70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2b01c=this['editor']['plugins']['get']('Autosave');await _0x2b01c['save']();}else await _0x4bbb70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x323ca4=this['editor']['plugins']['get']('Dialog');_0x323ca4['isOpen']&&_0x323ca4['hide']();}const _0x1f9451=this['_getRevisionViewerEditorConfig']();return _0x14f881(_0x1f9451)['then'](_0x1459e0=>{return(this['_viewerEditor']=_0x1459e0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1459e0);})['catch'](_0x2cfe6c=>(console['error'](_0x2cfe6c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2496ba=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2496ba(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4a15bb=this['editor']['plugins']['get']('Annotations');_0x4a15bb['refreshVisibility'](),_0x4a15bb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x380e83){const _0x385fa4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x456f46=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x866591=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x866591,_0x380e83)['then'](_0x690b55=>(_0x456f46['style']['display']='block',_0x385fa4['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x690b55));}['_closeRevisionViewer'](_0x175f7d){const _0x5525d7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5525d7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x175f7d['destroy']();}async['_restoreRevision'](_0x34b260){const _0x388694=this['editor'],_0x44ae18=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46ac1a=_0x388694['plugins']['get']('RevisionTracker'),_0x282985=_0x388694['plugins']['get']('RevisionHistoryUtils'),_0x5de94a=_0x44ae18['repository']['getRevision'](_0x34b260);let _0x2876b0,_0x5127de,_0x218e6b;try{await _0x282985['loadRevisionData'](_0x5de94a,this['adapter']),_0x2876b0=_0x282985['getRevisionDocumentData'](_0x5de94a),_0x5127de=_0x282985['getRevisionRootsAttributes'](_0x5de94a);}catch(_0x367051){return void console['error'](_0x367051);}_0x388694['model']['change'](_0x57be7c=>{for(const _0x5b81e9 of Array['from'](_0x388694['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x57be7c['removeMarker'](_0x5b81e9);}),_0x44ae18['isReady']=!0x1,_0x388694['model']['enqueueChange'](_0x566019=>{_0x566019['setSelection'](null),_0x566019['removeSelectionAttribute'](_0x388694['model']['document']['selection']['getAttributeKeys']());const _0x43d1cf=Object['keys'](_0x2876b0);for(const _0x32b31f of _0x388694['model']['document']['roots'])'$graveyard'!=_0x32b31f['rootName']&&_0x32b31f['isAttached']()&&!_0x43d1cf['includes'](_0x32b31f['rootName'])&&_0x566019['detachRoot'](_0x32b31f);for(const _0x2dc6b5 of _0x43d1cf){let _0x5ebff5=_0x388694['model']['document']['getRoot'](_0x2dc6b5);_0x5ebff5&&_0x5ebff5['isAttached']()||(_0x5ebff5=_0x566019['addRoot'](_0x2dc6b5));const _0x3416b8=_0x5127de[_0x2dc6b5],_0x2740dd=Object['keys'](_0x3416b8),_0x251e5f=_0x2876b0[_0x2dc6b5];for(const _0x4e6b7a of _0x5ebff5['getAttributeKeys']())_0x2740dd['includes'](_0x4e6b7a)||_0x566019['removeAttribute'](_0x4e6b7a,_0x5ebff5);for(const _0x17c4a1 of _0x2740dd)_0x566019['setAttribute'](_0x17c4a1,_0x5127de[_0x2dc6b5][_0x17c4a1],_0x5ebff5);_0x566019['remove'](_0x566019['createRangeIn'](_0x5ebff5)),_0x566019['insert'](_0x388694['data']['parse'](_0x251e5f,_0x5ebff5),_0x5ebff5,0x0);}});const _0x1fafd3=g(_0x388694['locale'],'Restored');if(_0x5de94a['name'])_0x218e6b=-0x1==_0x5de94a['name']['indexOf'](_0x1fafd3)?_0x1fafd3+':\x20'+_0x5de94a['name']:_0x5de94a['name'];else _0x218e6b=_0x1fafd3+':\x20'+(_0x5de94a['createdAt']['toLocaleDateString'](_0x388694['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5de94a['createdAt']['toLocaleTimeString'](_0x388694['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46ac1a['saveRevision']({'name':_0x218e6b}),_0x44ae18['isReady']=!0x0,_0x388694['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x3d41e9){super(_0x3d41e9),this['_revisionViewer']=_0x3d41e9['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x563c55=this['_revisionsRepository']['_revisions'],_0x37def7=this['_createRevisionActions'](),_0x57bc48=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x563c55,_0x37def7,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',(_0x32fcb7,_0x104598)=>{_0x104598['revisionViews']['on']('add',(_0x30e7cb,_0x996bfb)=>{_0x996bfb['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)),_0x57bc48['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x277cae=this['_revisionsRepository']['getRevision'](0x0);if(_0x277cae){const _0x2b8fee=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x277cae['id']);this['_revisionViewer']['compare'](_0x277cae,_0x2b8fee);}}['_handleRevisionSelected'](_0x4ee236,_0x2ba1b0){const _0xe77a3=this['_revisionsRepository']['getRevision'](_0x2ba1b0['id']),_0xf4b8f4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe77a3['id']);this['_revisionViewer']['compare'](_0xe77a3,_0xf4b8f4);}['_handleRevisionSetName'](_0x765b01,_0x105ea0){this['_revisionsRepository']['getRevision'](_0x105ea0['id'])['setName'](_0x105ea0['name']);}['_handleDiffChange'](_0x2bf7bd,_0x20bb20,_0x360cce){const _0x25150e=this['_revisionsRepository']['getRevisionsInDiff'](_0x360cce);_0x25150e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x25150e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x25150e[0x0]));}['_createRevisionActions'](){const _0x187ca2=this['editor'],_0x463b7d=d['availableRevisionActions'],_0x5a55b9=_0x187ca2['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5a55b9['length'])return _0x5a55b9['map'](_0x1ca9c6=>{const _0x244e0f='string'==typeof _0x1ca9c6?Object['assign']({},_0x463b7d[_0x1ca9c6]):_0x1ca9c6;return _0x244e0f['action']=_0x244e0f['action']['bind'](this,_0x187ca2),_0x244e0f['isVisible']&&(_0x244e0f['isVisible']=_0x244e0f['isVisible']['bind'](this,_0x187ca2)),_0x244e0f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x43e9c4},_0x2dfa18)=>{const _0x15955c=_0x43e9c4['get'](m),_0x1deab4=_0x15955c['repository'];let _0xd498a=_0x15955c['diff']['newRevisionId'],_0xd58561=_0x2dfa18['id'];_0x1deab4['getIndex'](_0xd498a)>_0x1deab4['getIndex'](_0xd58561)&&([_0xd498a,_0xd58561]=[_0xd58561,_0xd498a]),_0x15955c['compare'](_0xd498a,_0xd58561);},'isVisible':({plugins:_0x5e2ce2},_0x164456)=>{const _0x30ca10=_0x5e2ce2['get'](m);return!(_0x30ca10['repository']['getRevisionsInDiff'](_0x30ca10['diff'])['length']>0x2)&&!_0x164456['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x590add,{id:_0x49cf1d})=>{_0x590add['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x49cf1d);},'isVisible':({plugins:_0x3f1af8},_0x1936c0)=>!!_0x3f1af8['get'](m)['repository']['getLaterVisibleRevision'](_0x1936c0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xe27e14},{id:_0x15fd06,revisionNameView:_0x357f15})=>{const _0x2bb8e4=_0xe27e14['get'](m),_0x219fed=_0x2bb8e4['repository']['getEarlierVisibleRevision'](_0x15fd06);_0x2bb8e4['compare'](_0x15fd06,_0x219fed),_0x357f15['focus'](),_0x357f15['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xdf4623,_0x102bda){super(_0xdf4623),this['_view']=_0x102bda,this['_toolbarConfig']=et(_0xdf4623['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x441195){const _0x16194b=this['editor'],_0x2fc7a1=this['view'],_0x27b515=_0x16194b['editing']['view'],_0xb4aa78=_0x2fc7a1['editable'],_0x48a80a=_0x27b515['document']['getRoot']();_0xb4aa78['name']=_0x48a80a['rootName'],_0x2fc7a1['render']();const _0xd6b8e8=_0xb4aa78['element'];this['setEditableElement'](_0xb4aa78['name'],_0xd6b8e8),_0x2fc7a1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x27b515['attachDomRoot'](_0xd6b8e8),this['_elementReplacer']['replace'](_0x441195,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x57de61=this['view'],_0x316e81=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x316e81['detachDomRoot'](_0x57de61['editable']['name']),_0x57de61['destroy']();}['_initToolbar'](){const _0x386070=this['view'];_0x386070['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x386070['stickyPanel']['limiterElement']=_0x386070['element'],_0x386070['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1f2629})=>_0x1f2629),_0x386070['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x386070['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x414f8c,_0x4cb948,_0xefbcb2={}){super(_0x414f8c),this['stickyPanel']=new ht(_0x414f8c),this['toolbar']=new dt(_0x414f8c,{'shouldGroupWhenFull':_0xefbcb2['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x414f8c,_0x4cb948);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x4753c3(_0x41b39a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4824ac,_0x281979){super(_0x281979),this['sourceElement']=_0x4824ac,this['model']['document']['createRoot']();const _0x102f57=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x102f57);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2d1dee,_0x22c2ac){const _0x4a5543=new this(_0x2d1dee,_0x22c2ac);return await _0x4a5543['initPlugins'](),await _0x4a5543['ui']['init'](_0x2d1dee),await _0x4a5543['data']['init'](_0x4a5543['config']['get']('initialData')||''),_0x4a5543['fire']('ready'),_0x4a5543;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x467a15{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x546fb5){function _0x56e2aa(_0x46a583){return _0x46a583['map'](_0x2da102=>String['fromCharCode'](_0x2da102))['join']('');}super(_0x546fb5),this['result']='end',_0x546fb5[_0x56e2aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e2aa([0x76,0x69,0x65,0x77])][_0x56e2aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56e2aa([0x61,0x75,0x74,0x6f]),_0x546fb5[_0x56e2aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56e2aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56e2aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56e2aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56e2aa([0x6f,0x6b])});}}class k extends _0x467a15{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x410f35){if(super(_0x410f35),!this['editor']['config']['get']('revisionHistory'))throw new _0x1e0d91('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x56cf7b=>this['_showRevisionViewer']({..._0x56cf7b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x54dedd=>this['_closeRevisionViewer'](_0x54dedd)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x545a15=>this['_restoreRevision'](_0x545a15)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1fb014){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1fb014;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x428b0b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x428b0b);}['getRevision'](_0x7ccdd6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x7ccdd6);}['getRevisions'](_0x26fced){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26fced||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3caa3d=this['editor'],_0x4144df=_0x1b8334(_0x3caa3d,p),_0x1767de=_0x3caa3d['plugins']['get']('RevisionTracker'),_0x4e0011=_0x3caa3d['plugins']['get']('Users')['users'];return _0x4144df['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4144df['lazyRoots'],(_0x4144df['plugins']['push'](_t,m,R,class extends _0x467a15{static get['requires'](){return[m,'Users'];}['init'](){const _0x43b83c=this['editor']['plugins']['get']('Users');for(const _0xd406b3 of _0x4e0011)_0xd406b3['isAnonymous']||_0x43b83c['getUser'](_0xd406b3['id'])||_0x43b83c['addUser'](_0xd406b3);const _0x3b8d8c=_0x1767de['repository']['getRevisions']();let _0x528297=null;const _0x33cad4=this['editor']['plugins']['get']('RevisionViewer');_0x33cad4['adapter']=_0x1767de['adapter'],_0x33cad4['bind']('isEnabled')['to'](_0x1767de),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3caa3d,'isReadOnly',_0x2ccbfb=>!_0x2ccbfb);for(const _0x462998 of _0x3b8d8c){const _0x573cd2=null===_0x462998['creator'];if(_0x573cd2&&_0x462998['toVersion']===_0x462998['fromVersion'])continue;const _0x54465a=_0x462998['toJSON']();_0x33cad4['addRevisionData'](_0x54465a,(_0x1d2145,_0x38ee0b,_0x18cab7)=>{if(_0x573cd2){if(_0x528297)_0x528297['_update'](_0x1d2145,_0x38ee0b);else{if(!_0x38ee0b){const _0x1d2117=_0x18cab7['toJSON']();_0x1d2117['id']=_0x57d2cb(),_0x1767de['saveRevision'](_0x1d2117,_0x18cab7['toVersion'])['then'](_0x5d0961=>{_0x528297=_0x5d0961;});}}}else _0x462998['_update'](_0x1d2145,_0x38ee0b);});}}},d),_0x4144df);}['_enhanceShowRevisionViewerCallback'](){const _0x73c1d0=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21827=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x169e7d=this['editor']['plugins']['get']('Autosave');await _0x169e7d['save']();}else await _0x21827['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x34873d=this['editor']['plugins']['get']('Dialog');_0x34873d['isOpen']&&_0x34873d['hide']();}const _0x4c72cd=this['_getRevisionViewerEditorConfig']();return _0x73c1d0(_0x4c72cd)['then'](_0x317de9=>{return(this['_viewerEditor']=_0x317de9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x317de9);})['catch'](_0x12e469=>(console['error'](_0x12e469),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x32f6f5=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x32f6f5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x451e13=this['editor']['plugins']['get']('Annotations');_0x451e13['refreshVisibility'](),_0x451e13['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5249ef){const _0x129c00=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x25cf8d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3e8b5b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3e8b5b,_0x5249ef)['then'](_0x2c0262=>(_0x25cf8d['style']['display']='block',_0x129c00['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2c0262));}['_closeRevisionViewer'](_0x5f0050){const _0x27079e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x27079e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5f0050['destroy']();}async['_restoreRevision'](_0x48393d){const _0x248c5a=this['editor'],_0x5c6839=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x37eeea=_0x248c5a['plugins']['get']('RevisionTracker'),_0x5e28fc=_0x248c5a['plugins']['get']('RevisionHistoryUtils'),_0xbca4e8=_0x5c6839['repository']['getRevision'](_0x48393d);let _0x4830f8,_0x54b7f4,_0x332d6c;try{await _0x5e28fc['loadRevisionData'](_0xbca4e8,this['adapter']),_0x4830f8=_0x5e28fc['getRevisionDocumentData'](_0xbca4e8),_0x54b7f4=_0x5e28fc['getRevisionRootsAttributes'](_0xbca4e8);}catch(_0x55d0d5){return void console['error'](_0x55d0d5);}_0x248c5a['model']['change'](_0xc755fb=>{for(const _0x11220a of Array['from'](_0x248c5a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xc755fb['removeMarker'](_0x11220a);}),_0x5c6839['isReady']=!0x1,_0x248c5a['model']['enqueueChange'](_0x7ca78a=>{_0x7ca78a['setSelection'](null),_0x7ca78a['removeSelectionAttribute'](_0x248c5a['model']['document']['selection']['getAttributeKeys']());const _0xd10bc=Object['keys'](_0x4830f8);for(const _0x282211 of _0x248c5a['model']['document']['roots'])'$graveyard'!=_0x282211['rootName']&&_0x282211['isAttached']()&&!_0xd10bc['includes'](_0x282211['rootName'])&&_0x7ca78a['detachRoot'](_0x282211);for(const _0x4971ff of _0xd10bc){let _0x523894=_0x248c5a['model']['document']['getRoot'](_0x4971ff);_0x523894&&_0x523894['isAttached']()||(_0x523894=_0x7ca78a['addRoot'](_0x4971ff));const _0x114967=_0x54b7f4[_0x4971ff],_0x5cbe75=Object['keys'](_0x114967),_0x3c46b5=_0x4830f8[_0x4971ff];for(const _0x2a11da of _0x523894['getAttributeKeys']())_0x5cbe75['includes'](_0x2a11da)||_0x7ca78a['removeAttribute'](_0x2a11da,_0x523894);for(const _0x4a0c3b of _0x5cbe75)_0x7ca78a['setAttribute'](_0x4a0c3b,_0x54b7f4[_0x4971ff][_0x4a0c3b],_0x523894);_0x7ca78a['remove'](_0x7ca78a['createRangeIn'](_0x523894)),_0x7ca78a['insert'](_0x248c5a['data']['parse'](_0x3c46b5,_0x523894),_0x523894,0x0);}});const _0x54491c=g(_0x248c5a['locale'],'Restored');if(_0xbca4e8['name'])_0x332d6c=-0x1==_0xbca4e8['name']['indexOf'](_0x54491c)?_0x54491c+':\x20'+_0xbca4e8['name']:_0xbca4e8['name'];else _0x332d6c=_0x54491c+':\x20'+(_0xbca4e8['createdAt']['toLocaleDateString'](_0x248c5a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xbca4e8['createdAt']['toLocaleTimeString'](_0x248c5a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x37eeea['saveRevision']({'name':_0x332d6c}),_0x5c6839['isReady']=!0x0,_0x248c5a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};