@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250412.0 → 0.0.0-nightly-20250414.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 _0x2dde58,uid as _0xebbfb1,Collection as _0x49b051,logWarning as _0x466f46,FocusTracker as _0x56a114,KeystrokeHandler as _0x4bff5f,scrollViewportToShowTarget as _0x26d94d,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x58d8ca}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd7a62f,set as _0x87f9b6,unset as _0x470b4c,isEqual as _0x5a58ba}from'es-toolkit/compat';import{Plugin as _0x58fda8,PendingActions as _0x1d5925,Command as _0x584ec5,ElementApiMixin as _0x4d05c2,Editor as _0x28d055}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x188778,getMarkerDomElement as _0x1c65ec,ConfirmMixin as _0x2ad390,sanitizeEditorConfig as _0xb5ee61}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x28e605,ViewAttributeElement as _0x3b5d0b,ViewEmptyElement as _0x3417c3,ViewRawElement as _0x4a0e80,ViewUIElement as _0x389fd7,ViewDocumentFragment as _0x3b96fc,ViewText as _0x1fec82,ViewElement as _0x1752e5,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 _0x3c02f1,IconChevronUp as _0x42210d,IconChevronDown as _0x28927a,IconUndo as _0x4b2128,IconUser as _0x30d279,IconThreeVerticalDots as _0x1ea0ad}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5e8693,submitHandler as _0x265629,LabeledFieldView as _0x2ad300,createLabeledInputText as _0x25e8fe,createDropdown as _0x4da7ef,ListView as _0x58148e,ListItemView as _0x5f1e94,ButtonView as te,MenuBarMenuView as _0x4a49cf,MenuBarMenuListView as _0x5616fd,MenuBarMenuListItemView as _0x4baf0b,MenuBarMenuListItemButtonView as _0x33ec5d,ContextualBalloon as _0x7d8f21,ToolbarSeparatorView as _0x108164,IconView as _0x4d0aac,addListToDropdown as _0x3c3382,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 _0x339624}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x2dde58(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa0a7ce){super(),this['id']=_0xa0a7ce['id']||_0xebbfb1(),this['creator']=_0xa0a7ce['creator']||null,this['authors']=_0xa0a7ce['authors']||[],this['diffData']=_0xa0a7ce['diffData']||null,this['toVersion']=_0xa0a7ce['toVersion']||0x0,this['fromVersion']=_0xa0a7ce['fromVersion']||0x0,this['set']('name',_0xa0a7ce['name']||''),this['set']('createdAt',_0xa0a7ce['createdAt']||new Date()),this['set']('attributes',_0xa0a7ce['attributes']||{});}['setName'](_0x1b5417){this['_update']({'name':_0x1b5417});}['setAttribute'](_0x81c60c,_0x46ea8c){const _0x2662a3=_0xd7a62f(this['attributes']);_0x87f9b6(_0x2662a3,_0x81c60c,_0x46ea8c),this['_update']({'attributes':_0x2662a3});}['removeAttribute'](_0x5907e6){const _0x28105c=_0xd7a62f(this['attributes']);_0x470b4c(_0x28105c,_0x5907e6),this['_update']({'attributes':_0x28105c});}['_update'](_0x46244e,_0xa11134=!0x1){let _0x455cac=!0x1;const _0x576012={'id':this['id']},_0xabe272=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2dc94b of _0xabe272){const _0x2764dd=_0x46244e[_0x2dc94b];void 0x0!==_0x2764dd&&_0x2764dd!==this[_0x2dc94b]&&(this[_0x2dc94b]=_0x2764dd,_0x576012[_0x2dc94b]=_0x2764dd,_0x455cac=!0x0);}_0x455cac&&(_0x576012['authors']&&(_0x576012['authorsIds']=_0x576012['authors']['map'](_0x2dc25a=>_0x2dc25a['id']),delete _0x576012['authors']),this['fire']('_update',_0x576012,_0xa11134));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc99bec=>_0xc99bec['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x58fda8{['_revisions'];static get['requires'](){return[_0x188778];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x40db41){super(_0x40db41),this['_revisions']=new _0x49b051();}['afterInit'](){!async function(_0x302c0a){const _0x3883f1=_0x2379e2([0x61,0x69,0x4e,0x63,0x39,0x73,0x6c,0x43,0x79,0x62,0x74,0x31,0x77,0x50,0x4d,0x56,0x76,0x6a,0x70,0x55,0x4a,0x67,0x75,0x37,0x54,0x71,0x59,0x51,0x6e,0x68,0x58,0x64,0x46,0x47,0x48,0x65,0x41,0x52,0x42,0x32,0x36,0x49,0x7a,0x66,0x38,0x72,0x33,0x45,0x30,0x44,0x35,0x4f,0x6d,0x6b,0x4c,0x57,0x53,0x6f,0x34,0x5a,0x78,0x4b]),_0x47ba13=0xeb829,_0xb8118f=0x3536d01d,_0x28b1a9=0x3531b4cd^_0xb8118f,_0x4591e4=window[_0x2379e2([0x44,0x61,0x74,0x65])][_0x2379e2([0x6e,0x6f,0x77])](),_0x432a33=_0x302c0a[_0x2379e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x230d2b=new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234fa6=>{_0x432a33[_0x2379e2([0x6f,0x6e,0x63,0x65])](_0x2379e2([0x72,0x65,0x61,0x64,0x79]),_0x234fa6);}),_0x5995bc={[_0x2379e2([0x6b,0x74,0x79])]:_0x2379e2([0x45,0x43]),[_0x2379e2([0x75,0x73,0x65])]:_0x2379e2([0x73,0x69,0x67]),[_0x2379e2([0x63,0x72,0x76])]:_0x2379e2([0x50,0x2d,0x32,0x35,0x36]),[_0x2379e2([0x78])]:_0x2379e2([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]),[_0x2379e2([0x79])]:_0x2379e2([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]),[_0x2379e2([0x61,0x6c,0x67])]:_0x2379e2([0x45,0x53,0x32,0x35,0x36])},_0x1b2cc9=_0x432a33[_0x2379e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2379e2([0x67,0x65,0x74])](_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33b4e7(){let _0x5a8f7f,_0x470aac=null,_0x425788=null;try{if(_0x1b2cc9==_0x2379e2([0x47,0x50,0x4c]))return _0x2379e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8f7f=_0x3710e3(),!_0x5a8f7f)return _0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8f7f[_0x2379e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x425788=_0x558bd9(_0x5a8f7f[_0x2379e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8f7f[_0x2379e2([0x6a,0x74,0x69])])),await _0x41b61a()?_0x4e0219()?_0x496f2c()?_0x2379e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb8676b()?(_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2379e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470aac=_0x129375(_0x2379e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2379e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x470aac=_0x129375(_0x2379e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ea87d()):_0x2379e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2379e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x51d5f0){return _0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x496f2c(){const _0x2e30fd=[_0x2379e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2379e2([0x74,0x72,0x69,0x61,0x6c])][_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4591e4/0x3e8:0xe10*_0x28b1a9;return _0x5a8f7f[_0x2379e2([0x65,0x78,0x70])]<_0x2e30fd;}function _0x4e0219(){const _0x2da359=_0x5a8f7f[_0x2379e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2da359)return!0x1;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x2a])))return!0x0;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x52,0x48])))return!0x0;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x52,0x52,0x48]))){if(_0x31475b())return!0x0;if(_0x177227()||_0x1e64e9())return!0x0;}return!0x1;}function _0xb8676b(){const _0x50f9e4=_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50f9e4||0x0==_0x50f9e4[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31b148}=new URL(window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50f9e4[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31b148))return!0x0;const _0x3bb377=_0x31b148[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e]));return _0x50f9e4[_0x2379e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24db9d=>_0x24db9d[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x2a])))[_0x2379e2([0x6d,0x61,0x70])](_0x392dfc=>_0x392dfc[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e])))[_0x2379e2([0x73,0x6f,0x6d,0x65])](_0x1a86a4=>_0x3bb377[_0x2379e2([0x65,0x76,0x65,0x72,0x79])]((_0x3559df,_0x751555)=>_0x1a86a4[_0x751555]===_0x3559df||_0x1a86a4[_0x751555]===_0x2379e2([0x2a])));}function _0x1ea87d(){return _0x470aac&&_0x425788?new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x550848,_0x36ddf1)=>{_0x470aac[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x550848,_0x36ddf1),_0x425788[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x169b2c=>{_0x169b2c!=_0x2379e2([0x56,0x61,0x6c,0x69,0x64])&&_0x550848(_0x169b2c);},_0x36ddf1);}):_0x470aac||_0x425788||_0x2379e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x558bd9(_0x2e9cee,_0x4abe06){return new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495ae4=>{if(_0x58ecf7())return _0x495ae4(_0x2379e2([0x56,0x61,0x6c,0x69,0x64]));_0x246603(),_0x432a33[_0x2379e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2ee05=!0x1;const _0xd63fc0=_0xebbfb1();function _0x158be5(_0x3278ca){return!!_0x3278ca&&(typeof _0x3278ca===_0x2379e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3278ca===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3278ca[_0x2379e2([0x74,0x68,0x65,0x6e])]===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3278ca[_0x2379e2([0x63,0x61,0x74,0x63,0x68])]===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7aa8e5(_0x4e786b){_0x13907d(_0x4e786b)[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x1b7fba=>{if(!_0x1b7fba||_0x1b7fba[_0x2379e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2379e2([0x6f,0x6b]))return _0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x295fbc(_0x5be60e(_0xd63fc0+_0x4abe06))!=_0x1b7fba[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2379e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x15421f=>(_0x5e8753(),_0x15421f),()=>{const _0x315a6c=_0x363830();return null==_0x315a6c?(_0x5e8753(),_0x2379e2([0x56,0x61,0x6c,0x69,0x64])):_0x2379e2(_0x4591e4-_0x315a6c>(0x113a541d^_0xb8118f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x495ae4)[_0x2379e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a2cd5=0x35003e9d^_0xb8118f;function _0x5e8753(){const _0x4f5e9b=_0x2379e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x295fbc(_0x5be60e(_0x2e9cee)),_0xf05a42=_0x22ac9a(_0x295fbc(window[_0x2379e2([0x4d,0x61,0x74,0x68])][_0x2379e2([0x63,0x65,0x69,0x6c])](_0x4591e4/_0x2a2cd5)));window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2379e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f5e9b,_0xf05a42);}function _0x363830(){const _0x2838cb=_0x2379e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x295fbc(_0x5be60e(_0x2e9cee)),_0x269119=window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2379e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2838cb);return _0x269119?window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22ac9a(_0x269119),0x10)*_0x2a2cd5:null;}function _0x13907d(_0x3bfd20){return new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d2391,_0x2f12c9)=>{_0x3bfd20[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x5d2391,_0x2f12c9),window[_0x2379e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f12c9,0x353704dd^_0xb8118f);});}}_0x432a33[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27672e,_0x2dea10)=>{if(_0x2dea10[0x0]!=_0x2e9cee)return _0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dea10[0x1]={..._0x2dea10[0x1],[_0x2379e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd63fc0};},{[_0x2379e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2379e2([0x68,0x69,0x67,0x68])}),_0x432a33[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf7f235=>{_0x158be5(_0xf7f235[_0x2379e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2ee05=!0x0,_0x7aa8e5(_0xf7f235[_0x2379e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2379e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2379e2([0x6c,0x6f,0x77])}),_0x230d2b[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>{_0xf2ee05||_0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58ecf7(){return _0x432a33[_0x2379e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2379e2([0x76,0x69,0x65,0x77])][_0x2379e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2379e2([0x61,0x75,0x74,0x6f]);}function _0x246603(){_0x432a33[_0x2379e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2379e2([0x76,0x69,0x65,0x77])][_0x2379e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2379e2([0x61,0x75,0x74,0x6f]);}}function _0x129375(_0x85bcdc){const _0x22f7ef=[new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163bfa=>setTimeout(_0x163bfa,0x353feed1^_0xb8118f)),_0x230d2b[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387c75=>{const _0x310572=0x3536d01a^_0xb8118f,_0x195492=_0x302c0a[_0x2379e2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1c1c7d(){_0x195492[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x310572&&_0x387c75();}_0x1c1c7d(),_0x195492[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x61,0x64,0x64]),_0x1c1c7d);})),new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff68c1=>{function _0x1b326a(){for(const _0x9ac2f2 in window)if(window[_0x2379e2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2379e2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x9ac2f2))&&window[_0x9ac2f2]==_0x47ba13)return _0xff68c1();_0x432a33[_0x2379e2([0x73,0x74,0x61,0x74,0x65])]!=_0x2379e2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2379e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b326a,0x3536c395^_0xb8118f);}_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1b326a();})];return window[_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2379e2([0x72,0x61,0x63,0x65])](_0x22f7ef)[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>_0x85bcdc);}async function _0x199887(){if(await _0x230d2b,_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44eb6f=_0x302c0a[_0x2379e2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x51f3ae=_0x302c0a[_0x2379e2([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])](_0x44eb6f[_0x2379e2([0x69,0x64])]),_0x3a6ed8=_0x5ac5a7(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a6ed8[_0x2379e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44eb6f['id'],_0x51f3ae?_0x51f3ae['id']:null,!0x0),_0x3a6ed8[_0x2379e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a6ed8[_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a6ed8[_0x2379e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1f1b0e,void(_0x3a6ed8[_0x2379e2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1f1b0e);}if(_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bfa3=_0x5ac5a7(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bfa3[_0x2379e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bfa3[_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bfa3[_0x2379e2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1f1b0e,_0x59bfa3[_0x2379e2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1f1b0e;}_0x432a33[_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2379e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f1b0e,_0x432a33[_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2379e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f1b0e,_0x432a33[_0x2379e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31475b(){return _0x25e024(_0x2379e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ac5a7(_0x2379e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2379e2([0x73,0x74,0x61,0x74,0x65])]==_0x2379e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x177227(){return _0x25e024(_0x2379e2([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 _0x1e64e9(){return _0x25e024(_0x2379e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b2f09(_0x1798d6){const _0x4adc34=_0x1e3051();_0x432a33[_0x4adc34]=_0x2379e2([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])+_0x1798d6,_0x1798d6[_0x2379e2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2379e2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e3051()]=_0x47ba13),_0x1798d6!=_0x2379e2([0x56,0x61,0x6c,0x69,0x64])&&_0x199887();}function _0x1e3051(){const _0x437bd9=window[_0x2379e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2379e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2379e2([0x6e,0x6f,0x77])]())[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2379e2([0x2e]),'');let _0x339131=_0x2379e2([0x61]);for(let _0x1bd778=0x0;_0x1bd778<_0x437bd9[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd778+=0x2){let _0x3104f3=window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437bd9[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd778,_0x1bd778+0x2));_0x3104f3>=_0x3883f1[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3104f3-=_0x3883f1[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x339131+=_0x3883f1[_0x3104f3];}return _0x339131;}function _0x3710e3(){const _0x3ee77c=_0x1b2cc9[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e]));if(0x3!=_0x3ee77c[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2da02f(_0x3ee77c[0x1]);function _0x2da02f(_0x305ea4){const _0x11c84a=_0x2470f4(_0x305ea4);return _0x11c84a&&_0x8366c1()?_0x11c84a:null;function _0x8366c1(){const _0x4121b0=_0x11c84a[_0x2379e2([0x6a,0x74,0x69])],_0x1b04a0=window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4121b0[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4121b0[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504ca={..._0x11c84a,[_0x2379e2([0x6a,0x74,0x69])]:_0x4121b0[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4121b0[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504ca[_0x2379e2([0x76,0x63])],_0x5be60e(_0x504ca)==_0x1b04a0;}}}async function _0x41b61a(){let _0x4a9258=!0x0;try{const _0x57b6cf=_0x1b2cc9[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e])),[_0x5d1511,_0x591eef,_0x48fa0e]=_0x57b6cf;return _0x8c3d8d(_0x5d1511),await _0x47f7ae(_0x5d1511,_0x591eef,_0x48fa0e),_0x4a9258;}catch(_0x9e618b){return!0x1;}function _0x8c3d8d(_0x4ae1ea){const _0x12058c=_0x2470f4(_0x4ae1ea);_0x12058c&&_0x12058c[_0x2379e2([0x61,0x6c,0x67])]==_0x2379e2([0x45,0x53,0x32,0x35,0x36])||(_0x4a9258=!0x1);}async function _0x47f7ae(_0x48d831,_0x15fbe,_0x5cd615){const _0x53c691=window[_0x2379e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2379e2([0x66,0x72,0x6f,0x6d])](_0x3152fb(_0x5cd615),_0x964a68=>_0x964a68[_0x2379e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e6717=new window[(_0x2379e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2379e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48d831+_0x2379e2([0x2e])+_0x15fbe),_0x3eceec=window[_0x2379e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2379e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3eceec)return;const _0x571f21=await _0x3eceec[_0x2379e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2379e2([0x6a,0x77,0x6b]),_0x5995bc,{[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x45,0x43,0x44,0x53,0x41]),[_0x2379e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2379e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3eceec[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x45,0x43,0x44,0x53,0x41]),[_0x2379e2([0x68,0x61,0x73,0x68])]:{[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x571f21,_0x53c691,_0x5e6717)||(_0x4a9258=!0x1);}}function _0x2470f4(_0x26d1ea){return _0x26d1ea[_0x2379e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2379e2([0x65,0x79]))?JSON[_0x2379e2([0x70,0x61,0x72,0x73,0x65])](_0x3152fb(_0x26d1ea)):null;}function _0x3152fb(_0xc55fe9){return window[_0x2379e2([0x61,0x74,0x6f,0x62])](_0xc55fe9[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2379e2([0x2b]))[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2379e2([0x2f])));}function _0x5be60e(_0x5ec445){let _0x3eb5a3=0x1505;function _0x16b97c(_0x12f162){for(let _0x2f0b75=0x0;_0x2f0b75<_0x12f162[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f0b75++){const _0x565d47=_0x12f162[_0x2379e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f0b75);_0x3eb5a3=(_0x3eb5a3<<0x5)+_0x3eb5a3+_0x565d47,_0x3eb5a3&=_0x3eb5a3;}}function _0x3501a3(_0x9344b){Array[_0x2379e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9344b)?_0x9344b[_0x2379e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3501a3):_0x9344b&&typeof _0x9344b==_0x2379e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2379e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9344b)[_0x2379e2([0x73,0x6f,0x72,0x74])]()[_0x2379e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d86f,_0x17eed6])=>{_0x16b97c(_0x16d86f),_0x3501a3(_0x17eed6);}):_0x16b97c(window[_0x2379e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9344b));}return _0x3501a3(_0x5ec445),_0x3eb5a3>>>0x0;}function _0x295fbc(_0x3272a3){return _0x3272a3[_0x2379e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2379e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2379e2([0x30]));}function _0x22ac9a(_0x1ea5da){return _0x1ea5da[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2379e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2379e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x25e024(_0x352d3f){return _0x432a33[_0x2379e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2379e2([0x68,0x61,0x73])](_0x352d3f);}function _0x5ac5a7(_0x2cf86e){return _0x432a33[_0x2379e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2379e2([0x67,0x65,0x74])](_0x2cf86e);}function _0x1f1b0e(){}function _0x2379e2(_0x36d130){return _0x36d130['map'](_0x3d5331=>String['fromCharCode'](_0x3d5331))['join']('');}_0x4b2f09(await _0x33b4e7());}(this);}['createRevision'](_0x56488d){const _0x307a36=this['editor']['plugins']['get']('Users');return new h({'id':_0x56488d['id'],'name':_0x56488d['name'],'creator':_0x56488d['creatorId']?_0x307a36['getUser'](_0x56488d['creatorId']):null,'diffData':_0x56488d['diffData']||_0x56488d['data'],'authors':_0x56488d['authorsIds']['map'](_0x39adfd=>_0x307a36['getUser'](_0x39adfd)),'createdAt':new Date(_0x56488d['createdAt']),'attributes':_0x56488d['attributes'],'fromVersion':_0x56488d['fromVersion'],'toVersion':_0x56488d['toVersion']});}['addRevision'](_0x1439b9,_0x2fdeb1=0x0){this['_revisions']['add'](_0x1439b9,_0x2fdeb1);}['getRevision'](_0x4d690d){return this['_revisions']['get'](_0x4d690d);}['getRevisions'](_0x10edf4={'toJSON':!0x1}){const _0x14495f=Array['from'](this['_revisions']);return _0x14495f['reverse'](),_0x10edf4['toJSON']?_0x14495f['map'](_0x42196c=>_0x42196c['toJSON']()):_0x14495f;}['getIndex'](_0x5a11fd){return this['_revisions']['getIndex'](_0x5a11fd);}['getEarlierVisibleRevision'](_0x4a4ff6){const [,_0x39ff68]=this['getRevisionsIterator'](_0x4a4ff6,{'direction':'earlier'});return _0x39ff68;}['getLaterVisibleRevision'](_0x6ff865){const [,_0x2caf5d]=this['getRevisionsIterator'](_0x6ff865,{'direction':'later'});return _0x2caf5d;}['getRevisionsInDiff'](_0x521d12){const _0x372892=[];for(const _0x5632af of this['getRevisionsIterator'](_0x521d12['newRevisionId']))if(_0x372892['push'](_0x5632af),_0x5632af['id']===_0x521d12['oldRevisionId'])break;return _0x372892;}*['getRevisionsIterator'](_0x254b2d,{direction:_0x78631c='earlier',filter:_0x34a8ff=()=>!0x0}={}){const _0x5d8fbc='earlier'===_0x78631c?0x1:-0x1;let _0x34a6f7=this['_revisions']['get'](_0x254b2d),_0x31f30e=this['getIndex'](_0x34a6f7);for(yield _0x34a6f7;_0x34a6f7;){if(_0x31f30e+=_0x5d8fbc,_0x34a6f7=this['getRevision'](_0x31f30e),!_0x34a6f7)return;_0x34a8ff(_0x34a6f7)&&(yield _0x34a6f7);}}}class V extends _0x58fda8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x28e605,'c'],[_0x3b5d0b,'a'],[_0x3417c3,'e'],[_0x4a0e80,'r'],[_0x389fd7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x28e605],['a',_0x3b5d0b],['e',_0x3417c3],['r',_0x4a0e80],['u',_0x389fd7]]);async['loadRevisionData'](_0x1edc83,_0x5b5e2b){if(_0x1edc83['diffData']||!_0x5b5e2b)return;const _0x275570=this['editor']['config']['get']('collaboration.channelId'),_0x1aba64=await _0x5b5e2b['getRevision']({'channelId':_0x275570,'revisionId':_0x1edc83['id']});_0x1edc83['diffData']=_0x1aba64['diffData'];}['getRevisionDocumentData'](_0x2b4f55){const _0x55ecbd={};for(const _0x577234 in _0x2b4f55['diffData']){if(_0x2b4f55['diffData'][_0x577234]['attachChange']&&!_0x2b4f55['diffData'][_0x577234]['attachChange']['isAttached'])continue;const _0x599f8c=this['_removeRevisionMarkers'](JSON['parse'](_0x2b4f55['diffData'][_0x577234]['insertions'])),_0x209c28=this['editor']['editing']['view']['document'],_0x5e2be6=new _0x3b96fc(_0x209c28,_0x599f8c['map'](_0x1cef71=>this['_getViewFromDiffObj'](_0x1cef71,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x55ecbd[_0x577234]=this['editor']['data']['processor']['toData'](_0x5e2be6),this['editor']['data']['processor']['useFillerType']('default');}return _0x55ecbd;}['getRevisionRootsAttributes'](_0x322dc6){const _0x42075f={};for(const _0x5af317 in _0x322dc6['diffData'])_0x322dc6['diffData'][_0x5af317]['attachChange']&&!_0x322dc6['diffData'][_0x5af317]['attachChange']['isAttached']||(_0x42075f[_0x5af317]=_0x322dc6['diffData'][_0x5af317]['attributesAfter']||{});return _0x42075f;}['_getTypeCharForViewElement'](_0x154004){return this['_viewClassToTypeChar']['get'](_0x154004['constructor']);}['_getViewFromDiffObj'](_0x55b6f0,_0x3ed069){const _0x339dec=this['editor']['editing']['view']['document'];if('string'==typeof _0x55b6f0)return new _0x1fec82(_0x339dec,_0x55b6f0);{let _0x471de7,_0x4c569d;_0x4c569d='u'==_0x55b6f0['type']||'r'==_0x55b6f0['type']?[]:_0x55b6f0['children']['map'](_0x2dc70e=>this['_getViewFromDiffObj'](_0x2dc70e,_0x3ed069));const _0x1bf3bb=this['_typeCharToViewClass']['get'](_0x55b6f0['type'])||_0x1752e5,_0x3ac2df=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x471de7=new _0x1bf3bb(_0x339dec,_0x55b6f0['name'],_0x55b6f0['attributes'],_0x4c569d),'u'==_0x55b6f0['type']&&_0x55b6f0['children'][0x0]){const _0x2649e4=_0x55b6f0['children'][0x0];if(_0x471de7['render']=function(_0x407a97){const _0x55445e=_0x407a97['createElement']('div');return _0x55445e['innerHTML']=_0x2649e4,_0x55445e['childNodes'][0x0];},_0x3ed069){const _0x403eb4=new _0x3b96fc(_0x339dec);_0x403eb4['_appendChild'](_0x471de7);const _0x151a94=Array['from'](_0x3ac2df['viewChildrenToDom'](_0x403eb4,{'bind':!0x1})),_0x54417d=_0x3ac2df['domDocument']['createElement']('div');_0x54417d['append'](..._0x151a94),_0x471de7=Array['from'](_0x3ac2df['domChildrenToView'](_0x54417d))[0x0];}}else{if('r'==_0x55b6f0['type']&&_0x55b6f0['children'][0x0]){const _0x2991b3=_0x55b6f0['children'][0x0];if(_0x471de7['render']=function(_0x2706b3){_0x2706b3['innerHTML']=_0x2991b3;},_0x3ed069){const _0x1daeb2=new _0x3b96fc(_0x339dec);_0x1daeb2['_appendChild'](_0x471de7);const _0x5e33a4=Array['from'](_0x3ac2df['viewChildrenToDom'](_0x1daeb2,{'bind':!0x1})),_0x38d4e9=_0x3ac2df['domDocument']['createElement']('div');_0x38d4e9['append'](..._0x5e33a4);const _0x17eebe=Array['from'](_0x3ac2df['domChildrenToView'](_0x38d4e9));_0x17eebe['length']>0x1?_0x471de7['_appendChild'](_0x17eebe):_0x471de7=_0x17eebe[0x0];}}}if(_0x55b6f0['customProperties']){for(const [_0x2e1f6d,_0x145c27]of _0x55b6f0['customProperties'])_0x471de7['_setCustomProperty'](_0x2e1f6d,_0x145c27);}const _0x2739b9=void 0x0===_0x55b6f0['fillerOffset']?null:_0x55b6f0['fillerOffset'];return null!==_0x2739b9&&(_0x471de7['getFillerOffset']=()=>_0x2739b9),_0x471de7;}}['_makeModelFromViewString'](_0x369791){const _0x55ede6=JSON['parse'](_0x369791),_0x3a16d1=this['editor']['editing']['view']['document'],_0x5bfb58=new _0x3b96fc(_0x3a16d1,_0x55ede6['map'](_0x2ec6b5=>this['_getViewFromDiffObj'](_0x2ec6b5,!0x0)));return this['editor']['data']['toModel'](_0x5bfb58);}['_removeRevisionMarkers'](_0x35ebec){return(_0x35ebec=_0x35ebec['filter'](_0x2d8d0e=>!_0x2d8d0e['name']||'revision-start'!==_0x2d8d0e['name']&&'revision-end'!==_0x2d8d0e['name']))['forEach'](_0xb8e8fb=>{'string'!=typeof _0xb8e8fb&&(_0xb8e8fb['children']=this['_removeRevisionMarkers'](_0xb8e8fb['children']),_0xb8e8fb['attributes']=_0xb8e8fb['attributes']['filter'](_0x507a5d=>!_0x507a5d[0x0]['startsWith']('data-revision-')));}),_0x35ebec;}}function g(_0xf20bab,_0x58e507,_0x2f5c44){const t=_0xf20bab['t'];switch(_0x58e507){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'},_0x2f5c44);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f5c44);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 _0x58fda8{['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[_0x188778,I,V,_0x1d5925];}constructor(_0x50e0e9){super(_0x50e0e9),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 _0x2b9947=_0xebbfb1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b9947},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 _0xb0301d=this['repository']['getRevision'](0x0),_0x3817be=_0xb0301d&&null===_0xb0301d['creator']?_0xb0301d:null;if(this['_continueCurrentRevision']=!!_0x3817be&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x36832b=this['_source']['getCurrentRevisionId'](),_0x44d4fe=this['repository']['getRevision'](_0x36832b);if(_0x44d4fe)this['_startingVersion']=_0x44d4fe['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x11dd85=this['_source']['history']['_operations']['find'](_0x14fb56=>!_0x14fb56['_isInit']),_0xd6efb6=_0x11dd85?_0x11dd85['baseVersion']:this['_source']['history']['version'];_0xb0301d?(_0xb0301d['toVersion']<_0xd6efb6&&_0xb0301d['_update']({'toVersion':_0xd6efb6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id'],this['_startingVersion']=_0x3817be['fromVersion']):(this['_startingVersion']=_0xb0301d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xd6efb6,this['_continueCurrentRevision']=!0x1);}}else _0x3817be&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3817be['toVersion'],this['editor']['model']['document']['history']['version']),_0x3817be['fromVersion']===_0x3817be['toVersion']?(0x0!==_0x3817be['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id'],this['_startingVersion']=_0x3817be['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',_0x22a3ed=>!_0x22a3ed),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe513a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f3416;for(const _0x567e89 in _0xe513a4){const _0x20abd3=_0x567e89,_0x3faea3=_0xe513a4[_0x20abd3];if('revisionHistoryLicenseKeyValid'==_0x3faea3||'revisionHistoryLicenseKeyInvalid'==_0x3faea3||'revisionHistoryLicenseKeyExpired'==_0x3faea3||'revisionHistoryLicenseKeyDomainLimit'==_0x3faea3||'revisionHistoryLicenseKeyNotAllowed'==_0x3faea3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3faea3||'revisionHistoryLicenseKeyTrialLimit'==_0x3faea3||'revisionHistoryLicenseKeyUsageLimit'==_0x3faea3){delete _0xe513a4[_0x20abd3],_0x1f3416=_0x3faea3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1f3416&&_0xe513a4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1f3416&&_0xe513a4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1f3416&&_0xe513a4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x44a98d=this['repository']['getRevision'](0x0),_0xb90e47=await this['getRevisionDocumentData'](_0x44a98d),_0x3cc0c8=await this['getRevisionRootsAttributes'](_0x44a98d);this['_replaceEditorDataWithRevisionData'](_0xb90e47,_0x3cc0c8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x145316){this['_source']=_0x145316;}async['update'](){const _0x42a0f7=await this['_source']['getLatestVersion']();if(_0x42a0f7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d7fee=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x42a0f7});_0x1d7fee['authors']=_0x1d7fee['authorsIds']['map'](_0xc3f9d5=>this['editor']['plugins']['get']('Users')['getUser'](_0xc3f9d5)),this['currentRevision']['_update'](_0x1d7fee);}}async['saveRevision'](_0x23e274={},_0x12a0ef=null){const _0xcfc725=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x12a0ef>this['currentRevision']['toVersion']&&(_0x12a0ef=null),null===_0x12a0ef&&(_0x12a0ef=await this['_source']['getLatestVersion']());const _0x54267d=this['_getFromVersion'](_0x12a0ef),_0x50a06a=this['buildRevisionData']({'from':_0x54267d,'to':_0x12a0ef});if(this['currentRevision']['toVersion']<_0x12a0ef){const _0x5832ae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x12a0ef,'to':_0x12a0ef});_0x5832ae['authors']=[],_0x5832ae['authorsIds']=[],_0x5832ae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5832ae,!0x0),delete _0x5832ae['authors'],_0xcfc725['push'](_0x5832ae);}_0x23e274['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x23e274['name']=_0x23e274['name']||null,_0x23e274['id']=_0x23e274['id']||_0xebbfb1(),_0x23e274={..._0x23e274,..._0x50a06a};const _0x3bcb16=this['addRevisionData'](_0x23e274);_0xcfc725['push'](_0x23e274);const _0x4152be=this['repository']['getIndex'](_0x3bcb16);if(0x0!==_0x4152be){const _0x11fd36=this['repository']['getRevision'](_0x4152be-0x1);if(_0x11fd36['fromVersion']!==_0x12a0ef){const _0x431fe1=this['_revisionDataBuilder']['getData'](_0x12a0ef,_0x11fd36['toVersion']),_0x4cda73={'id':_0x11fd36['id'],'diffData':_0x431fe1['diffData'],'authorsIds':_0x431fe1['authorsIds'],'authors':_0x431fe1['authorsIds']['map'](_0x36c2b6=>this['editor']['plugins']['get']('Users')['getUser'](_0x36c2b6)),'fromVersion':_0x12a0ef};_0x11fd36===this['currentRevision']&&(_0x4cda73['createdAt']=new Date(_0x23e274['createdAt']['getTime']()+0xa)),_0x11fd36['_update'](_0x4cda73,!0x0),delete _0x4cda73['authors'],_0xcfc725['push'](_0x4cda73);}}if(this['adapter']){for(const _0x714b39 of _0xcfc725)this['_bufferUpdate'](_0x714b39['id'],_0x714b39,!0x0);this['sendBufferedUpdates']();}return _0x3bcb16;}['addRevisionData'](_0x2a762d){const _0x2d6178=this['repository']['createRevision'](_0x2a762d);return this['adapter']&&_0x2d6178['on']('_update',(_0x4bf112,_0x472ac1,_0x26cea3)=>{_0x26cea3||(this['_bufferUpdate'](_0x472ac1['id'],_0x472ac1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d6178,this['_findInsertionIndex'](_0x2d6178)),_0x2d6178;}async['getRevisionDocumentData'](_0x4adbbc){return await this['_utils']['loadRevisionData'](_0x4adbbc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4adbbc);}async['getRevisionRootsAttributes'](_0xccc7b1){return await this['_utils']['loadRevisionData'](_0xccc7b1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xccc7b1);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x21ff6d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1e5723=0x0;_0x1e5723<_0x21ff6d['length'];_0x1e5723++){const _0x302ea4=_0x21ff6d[_0x1e5723];let _0xa86889=!0x1;for(const _0x483cc4 of Object['keys'](_0x302ea4))void 0x0===_0x302ea4[_0x483cc4]?delete _0x302ea4[_0x483cc4]:'id'!==_0x483cc4&&(_0xa86889=!0x0);_0xa86889||(_0x21ff6d[_0x1e5723]=null);}if(_0x21ff6d=_0x21ff6d['filter'](_0x26469d=>null!==_0x26469d),!_0x21ff6d['length'])return;for(let _0x2ea69e=0x0;_0x2ea69e<_0x21ff6d['length'];_0x2ea69e++){const _0xe0618d=_0x21ff6d[_0x2ea69e];void 0x0!==_0xe0618d['fromVersion']&&void 0x0===_0xe0618d['toVersion']&&(_0xe0618d['toVersion']=this['repository']['getRevision'](_0xe0618d['id'])['toVersion']),void 0x0!==_0xe0618d['toVersion']&&void 0x0===_0xe0618d['fromVersion']&&(_0xe0618d['fromVersion']=this['repository']['getRevision'](_0xe0618d['id'])['fromVersion']);}const _0x337d8d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x21ff6d,_0x337d8d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5999f9=>{if(_0x5999f9){for(const _0x29f2e3 of _0x5999f9)this['setRevisionData']({'id':_0x29f2e3['id'],'createdAt':_0x29f2e3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x17d983=null,from:_0x1898ba=null,to:_0x25e0c9=null}){_0x1898ba=null!==_0x1898ba?_0x1898ba:_0x17d983['fromVersion'],_0x25e0c9=null!==_0x25e0c9?_0x25e0c9:_0x17d983['toVersion'];const _0x42be22=this['_revisionDataBuilder']['getData'](_0x1898ba,_0x25e0c9),_0x27c3e5={'diffData':_0x42be22['diffData'],'authorsIds':_0x42be22['authorsIds'],'fromVersion':_0x1898ba,'toVersion':_0x25e0c9};if(!_0x17d983||_0x25e0c9!==_0x17d983['toVersion']){const _0x5901b0=_0x25e0c9-0x1,_0x4449fd=this['_source']['history']['getOperation'](_0x5901b0);_0x27c3e5['createdAt']=_0x4449fd&&_0x4449fd['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1898ba===this['_loadedStateData']['fromVersion']){for(const _0x486013 of this['_loadedStateData']['authors'])_0x27c3e5['authorsIds']['includes'](_0x486013['id'])||_0x27c3e5['authorsIds']['push'](_0x486013['id']);}return _0x27c3e5;}['_bufferUpdate'](_0x14afa2,_0x3aca8e,_0x272a8a){if(this['_bufferedUpdates']['has'](_0x14afa2)){const _0x1d1b86=this['_bufferedUpdates']['get'](_0x14afa2);_0x3aca8e=_0x272a8a?{..._0x1d1b86,..._0x3aca8e}:{..._0x3aca8e,..._0x1d1b86};}this['_bufferedUpdates']['set'](_0x14afa2,_0x3aca8e);}['setRevisionData'](_0x10714a){const _0x7119a1=this['repository']['getRevision'](_0x10714a['id']);if(_0x10714a['createdAt']&&(_0x10714a['createdAt']=new Date(_0x10714a['createdAt'])),_0x10714a['authorsIds']){const _0x54b804=this['editor']['plugins']['get']('Users');_0x10714a['authors']=_0x10714a['authorsIds']['map'](_0x4a70dd=>_0x54b804['getUser'](_0x4a70dd));}_0x7119a1['_update'](_0x10714a,!0x0);}['_createInitialRevision'](_0x170ca6){const _0x43f5b3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x43f5b3)this['_initialRevisionId']=_0x43f5b3['id'];else{const _0x5b0481=!this['editor']['model']['document']['roots']['find'](_0x13ce88=>this['editor']['model']['hasContent'](_0x13ce88)),_0x18848e=this['editor']['plugins']['get']('Users')['me']['id'],_0x575075=g(this['editor']['locale'],_0x5b0481?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x170ca6,'to':_0x170ca6,'id':this['_initialRevisionId'],'name':_0x575075,'creatorId':_0x18848e});}}['_createCurrentRevision'](_0x2d7490){const _0x5510af=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5510af),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d7490,'to':_0x2d7490,'id':_0x5510af,'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'](_0x56dad8,_0x95c194){let _0x4ce22d=this['editor']['config']['get']('initialData'),_0x3ea557=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4ce22d){_0x4ce22d={};for(const _0x2eb655 of this['editor']['model']['document']['getRootNames']())_0x4ce22d[_0x2eb655]='';}if('string'==typeof _0x4ce22d&&(_0x4ce22d={'main':_0x4ce22d}),void 0x0===_0x3ea557){_0x3ea557={};for(const _0x7fe03a of this['editor']['model']['document']['getRootNames']())_0x3ea557[_0x7fe03a]={};}let _0x55143f=!0x1;const _0x4f3f60=Object['keys'](_0x4ce22d),_0x3f0982=Object['keys'](_0x56dad8);for(const _0x41ce2e of _0x4f3f60){if(_0x4ce22d[_0x41ce2e]!==_0x56dad8[_0x41ce2e]&&''!==_0x4ce22d[_0x41ce2e]['trim']()){_0x55143f=!0x0;break;}if(!_0x5a58ba(_0x3ea557[_0x41ce2e],_0x95c194[_0x41ce2e])&&Object['keys'](_0x3ea557[_0x41ce2e])['length']>0x0){_0x55143f=!0x0;break;}}_0x55143f||(_0x55143f=_0x3f0982['some'](_0x4c5a3c=>!this['editor']['model']['document']['getRoot'](_0x4c5a3c))),_0x55143f&&_0x466f46('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4ce22d,'editorRootsAttributes':_0x3ea557,'revisionData':_0x56dad8,'revisionRootsAttributes':_0x95c194}),this['editor']['config']['set']('initialData',_0x56dad8),this['editor']['config']['set']('rootsAttributes',_0x95c194);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x495389=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x495389['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x50b114){const _0x53e513=this['repository']['getRevisions']();_0x53e513['reverse']();let _0x320f5d=0x0;for(;_0x320f5d<_0x53e513['length'];){const _0x414d8=_0x53e513[_0x320f5d];if(_0x414d8===this['currentRevision']){_0x320f5d++;continue;}if(_0x414d8['id']===this['_initialRevisionId'])break;const _0x3efca1=_0x50b114['toVersion']-_0x414d8['toVersion']||_0x50b114['fromVersion']-_0x414d8['fromVersion'];if(_0x3efca1>0x0)break;if(_0x3efca1<0x0)_0x320f5d++;else{if(!_0x50b114['creator']&&_0x414d8['creator'])break;if(_0x414d8['creator']||!_0x50b114['creator']){if(_0x50b114['createdAt']>_0x414d8['createdAt'])break;_0x320f5d++;}else _0x320f5d++;}}return _0x320f5d;}['_getFromVersion'](_0x5935dc){const _0x994ca2=this['repository']['getRevisions']();_0x994ca2['reverse'](),_0x994ca2['shift']();const _0x55a175=_0x994ca2['find'](_0x2468dd=>_0x2468dd['toVersion']<=_0x5935dc)['toVersion'];return _0x55a175<this['_startingVersion']?this['_startingVersion']:_0x55a175;}['_makeRevision']({name:_0x31876f,from:_0x32c391,to:_0x35ad09,creatorId:_0x4f8052,id:_0x412e7c}){const _0x2443c7=this['buildRevisionData']({'from':_0x32c391,'to':_0x35ad09});_0x2443c7['name']=_0x31876f,_0x2443c7['creatorId']=_0x4f8052,_0x2443c7['id']=_0x412e7c;const _0x5799eb=this['addRevisionData'](_0x2443c7);return this['adapter']&&this['_bufferUpdate'](_0x2443c7['id'],_0x2443c7,!0x0),_0x5799eb;}['_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(_0x50f508){this['editor']=_0x50f508,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'](_0x3daaed){this['source']=_0x3daaed;const _0x20603b=new Map(),_0xd767a5=new Map(),_0x1abe97=this['editor']['model']['document']['roots']['map'](_0x22237b=>_0x22237b['rootName']);for(const _0x27884f of _0x1abe97){const _0x20f8f1=this['editor']['model']['document']['getRoot'](_0x27884f),_0x4e16e9=N(_0x20f8f1);_0x20603b['set'](_0x27884f,_0x4e16e9),_0xd767a5['set'](_0x27884f,Object['fromEntries'](_0x20f8f1['getAttributes']()));}const _0x32f91f=Array['from'](this['editor']['model']['markers'])['map'](_0x1f9de7=>[_0x1f9de7['name'],_0x1f9de7['getRange']()]),_0x9d21c6=this['source']['version'];this['_saveMetaData'](_0x9d21c6,_0x20603b,_0x32f91f,_0xd767a5),this['_startingRevisionId']=this['_revisionId'];const _0xc9fb8a=new Map(),_0x53bf57=new Map();for(const _0x26aaef of _0x1abe97){const _0x443074=P(_0x26aaef);_0xc9fb8a['set'](_0x26aaef,_0x443074),_0x53bf57['set'](_0x26aaef,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc9fb8a,[],_0x53bf57);}['getData'](_0x476a41,_0xff0112){if(this['_lastFrom']===_0x476a41&&this['_lastTo']<=_0xff0112)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xff0112,!0x0);else{if(!this['_savedMetaData']['has'](_0x476a41)){const _0x2a822b=this['_getPreviousFrom'](_0x476a41);this['_calculateMetaData'](_0x2a822b,_0x476a41,!0x1);}this['_calculateMetaData'](_0x476a41,_0xff0112,!0x0);}return this['_lastFrom']=_0x476a41,this['_lastTo']=_0xff0112,this['_getState']();}['loadState'](_0x36b4f3){const _0x3cabe8=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x36b4f3['fromVersion'],this['_lastTo']=_0x36b4f3['toVersion'];for(const _0xc29c1 in _0x36b4f3['diffData']){const _0x5a8eca=_0x36b4f3['diffData'][_0xc29c1]['attachChange'],_0x159554=_0xd7a62f(_0x36b4f3['diffData'][_0xc29c1]['attributesBefore'])||{},_0x412f81=_0x3cabe8['_makeModelFromViewString'](_0x36b4f3['diffData'][_0xc29c1]['deletions']);_0x412f81['rootName']=_0xc29c1,_0x412f81['_isAttached']=!_0x5a8eca||!_0x5a8eca['isAttached'],_0x412f81['isAttached']=()=>_0x412f81['_isAttached'],this['_baseRoots']['set'](_0xc29c1,_0x412f81),this['_baseRootsAttributes']['set'](_0xc29c1,_0x159554),_0x5a8eca&&this['_touchedRoots']['set'](_0xc29c1,_0x5a8eca);const _0x598123=this['_makeIdsRoot'](_0x412f81);this['_baseIdsRoots']['set'](_0xc29c1,_0x598123);for(const [_0x4b4cc3,_0x22c564]of _0x412f81['markers']){if(!_0x4b4cc3['startsWith']('revision:'))continue;const _0x3eb11f=_0x4b4cc3['split'](':')[0x2];for(const _0x46f517 of _0x22c564['getWalker']({'singleCharacters':!0x0})){const _0x5bea3d=this['_getVidAttributeName'](_0x46f517),_0x1a444c='elementEnd'==_0x46f517['type']?_0x46f517['previousPosition']['path']['slice'](0x0,-0x1):_0x46f517['previousPosition']['path'],_0x17cceb=_0x598123['getNodeByPath'](_0x1a444c)['getAttribute'](_0x5bea3d);this['_touched']['set'](_0x17cceb,{'userId':_0x3eb11f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x290ad=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x29114c=>!this['_touched']['has'](_0x29114c));let _0x1a8b10=0x0;const _0x32f9a7=new Map();for(const _0x1aac3e in _0x36b4f3['diffData']){const _0x3edbd1=_0x36b4f3['diffData'][_0x1aac3e]['attachChange'],_0x387ea9=_0xd7a62f(_0x36b4f3['diffData'][_0x1aac3e]['attributesAfter'])||{},_0x42d0c3=_0x3cabe8['_makeModelFromViewString'](_0x36b4f3['diffData'][_0x1aac3e]['insertions']);_0x42d0c3['rootName']=_0x1aac3e,_0x42d0c3['_isAttached']=!_0x3edbd1||_0x3edbd1['isAttached'],_0x42d0c3['isAttached']=()=>_0x42d0c3['_isAttached'],this['_diffRoots']['set'](_0x1aac3e,_0x42d0c3),this['_diffRootsAttributes']['set'](_0x1aac3e,_0x387ea9);const _0x360f32=this['_makeIdsRoot'](_0x42d0c3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1aac3e,_0x360f32),_0x32f9a7['set'](_0x1aac3e,_0x42d0c3['isAttached']()?_0x387ea9:{});for(const [_0x28265a,_0x493375]of _0x42d0c3['markers']){if(!_0x28265a['startsWith']('revision:'))continue;const _0x55fe99=_0x28265a['split'](':')[0x2];for(const _0x13a70d of _0x493375['getWalker']({'singleCharacters':!0x0})){const _0x30ee38=this['_getVidAttributeName'](_0x13a70d),_0x2d3299=this['_revisionId']++,_0xf8dff6='elementEnd'==_0x13a70d['type']?_0x13a70d['previousPosition']['path']['slice'](0x0,-0x1):_0x13a70d['previousPosition']['path'];_0x360f32['getNodeByPath'](_0xf8dff6)['_setAttribute'](_0x30ee38,_0x2d3299),this['_touched']['set'](_0x2d3299,{'userId':_0x55fe99});}}for(const _0x55f391 of this['editor']['model']['createRangeIn'](_0x42d0c3)['getWalker']({'singleCharacters':!0x0})){const _0x36cccf=this['_getVidAttributeName'](_0x55f391),_0x3402f7='elementEnd'==_0x55f391['type']?_0x55f391['previousPosition']['path']['slice'](0x0,-0x1):_0x55f391['previousPosition']['path'],_0x374197=_0x360f32['getNodeByPath'](_0x3402f7);_0x374197['getAttribute'](_0x36cccf)>0x0||_0x374197['_setAttribute'](_0x36cccf,_0x290ad[_0x1a8b10++]);}for(const [_0x5a35b3,_0x366f1b]of _0x42d0c3['markers'])_0x5a35b3['startsWith']('revision:')||this['_markers']['set'](_0x5a35b3,_0x366f1b);}const _0x5f406f=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5f406f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f406f,0x1));const _0x3347c3=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3347c3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3347c3,0x1));const _0x4535fd=Array['from'](this['_diffRoots'])['map'](([_0xce9d7e,_0x39b73f])=>[_0xce9d7e,N(_0x39b73f)]);this['_saveMetaData'](this['_lastTo'],_0x4535fd,this['_markers'],_0x32f9a7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xf7b2c3,_0xbf9c72,_0x2bca8b,_0x2b5008){const _0x142d80=new Map(_0xbf9c72),_0x10f496=new Map(_0xd7a62f(_0x2b5008)),_0x1ebce3=new Map();for(const [_0x411f34,_0x153fe4]of _0x2bca8b)_0x1ebce3['set'](_0x411f34,{'start':_0x153fe4['start']['clone'](),'end':_0x153fe4['end']['clone'](),'rootName':_0x153fe4['root']['rootName']});this['_savedMetaData']['set'](_0xf7b2c3,{'roots':_0x142d80,'markers':_0x1ebce3,'rootsAttributes':_0x10f496});}['_removeMetaData'](_0x5cd35a){this['_savedMetaData']['delete'](_0x5cd35a);}['_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'](_0x339d2c,_0x4f7613=null){let _0x1da7a6=null;_0x339d2c['is']('documentFragment')||(_0x1da7a6=new ut(_0x339d2c['name'],{'vid_start':null===_0x4f7613?this['_revisionId']++:_0x4f7613++}));const _0x3234c4=[];for(const _0xfb203f of _0x339d2c['getChildren']())if(_0xfb203f['is']('element')){_0x3234c4['push'](this['_makeIdsRoot'](_0xfb203f,_0x4f7613));const _0x4464b1=_0x3234c4[_0x3234c4['length']-0x1];null!==_0x4f7613&&(_0x4f7613=_0x4464b1['is']('element','$text')?_0x4464b1['getAttribute']('vid')+0x1:_0x4464b1['getAttribute']('vid_end')+0x1);}else{for(let _0xdf24ae=0x0;_0xdf24ae<_0xfb203f['offsetSize'];_0xdf24ae++)_0x3234c4['push'](new ut('$text',{'vid':null===_0x4f7613?this['_revisionId']++:_0x4f7613++}));}if(_0x339d2c['is']('documentFragment')){const _0x464763=P(_0x339d2c['rootName']);return _0x464763['_insertChild'](0x0,_0x3234c4),_0x464763;}return _0x1da7a6['_setAttribute']('vid_end',null===_0x4f7613?this['_revisionId']++:_0x4f7613++),_0x1da7a6['_insertChild'](0x0,_0x3234c4),_0x1da7a6;}['_calculateMetaData'](_0x20a2f9,_0x4d6bd2,_0x39351c){this['_reset']();const {roots:_0x4f1557,markers:_0x31d408,rootsAttributes:_0xeed911}=this['_savedMetaData']['get'](_0x20a2f9);this['_baseRoots']=new Map(_0x4f1557),this['_baseRootsAttributes']=new Map(_0xd7a62f(_0xeed911));for(const [_0x2ea5a1,_0xc83ec3]of this['_baseRoots'])if('$graveyard'!==_0x2ea5a1&&(this['_diffRoots']['set'](_0x2ea5a1,N(_0xc83ec3)),this['_diffRootsAttributes']=new Map(_0xd7a62f(_0xeed911)),_0x39351c)){const _0x19b8e1=this['_revisionId'];this['_idsRoots']['set'](_0x2ea5a1,this['_makeIdsRoot'](_0xc83ec3)),this['_baseIdsRoots']['set'](_0x2ea5a1,this['_makeIdsRoot'](_0xc83ec3,_0x19b8e1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x39351c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d637d,_0xb3ab3]of _0x31d408){const _0x34ac28=this['_baseRoots']['get'](_0xb3ab3['rootName']),_0x5e08fd=this['_diffRoots']['get'](_0xb3ab3['rootName']),_0x452445=new lt(this['_fixPosition'](_0xb3ab3['start'],_0x34ac28),this['_fixPosition'](_0xb3ab3['end'],_0x34ac28)),_0x522dd9=this['_fixRange'](_0x452445,_0x5e08fd);_0x34ac28['markers']['set'](_0x2d637d,_0x452445),this['_markers']['set'](_0x2d637d,_0x522dd9);}this['_applyOperations'](_0x20a2f9,_0x4d6bd2,_0x39351c);}['_applyOperations'](_0x322b5a,_0x32fdc6,_0x8cfe33){for(const _0x15137f of this['source']['getOperations'](_0x322b5a,_0x32fdc6))this['_handleOperation'](_0x15137f,_0x8cfe33);for(const _0x2bfa1c of this['_diffRoots']['values']())_0x2bfa1c['markers']['clear']();for(const [_0x1feb67,_0x2af1fe]of this['_markers']){this['_diffRoots']['get'](_0x2af1fe['root']['rootName'])['markers']['set'](_0x1feb67,_0x2af1fe['clone']());}const _0x52ce7c=new Map(),_0x2bd074=new Map();for(const [_0x11a5eb,_0x2f02bd]of this['_diffRoots'])_0x52ce7c['set'](_0x11a5eb,N(_0x2f02bd)),_0x2bd074['set'](_0x11a5eb,this['_diffRootsAttributes']['get'](_0x11a5eb));this['_saveMetaData'](_0x32fdc6,_0x52ce7c,this['_markers'],_0x2bd074);}['_getPreviousFrom'](_0xce5f42){const _0x193d14=Array['from'](this['_savedMetaData']['keys']());_0x193d14['sort']((_0x2b0545,_0x4f68be)=>_0x2b0545-_0x4f68be),_0x193d14['reverse']();for(const _0x5c3f6a of _0x193d14)if(_0x5c3f6a<_0xce5f42)return _0x5c3f6a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x22e7f1,_0x359a8c){const _0x36a374=Array['from'](_0x359a8c['markers'])['map'](([_0x3a8f80,_0x183cae])=>[_0x3a8f80,this['_fixRange'](_0x183cae,_0x22e7f1)]);_0x22e7f1['markers']=new Map(_0x36a374);}['_transformMarkers'](_0x53b0b3){for(const _0x1ab21f of this['_markers']['values']()){const _0x3649dd=_0x1ab21f['getTransformedByOperation'](_0x53b0b3),_0x3abe3d=lt['_createFromRanges'](_0x3649dd);_0x1ab21f['start']=_0x3abe3d['start'],_0x1ab21f['end']=_0x3abe3d['end'];}}['_handleOperation'](_0x2946d1,_0x2ee249){if('addRoot'!=_0x2946d1['type']&&'detachRoot'!=_0x2946d1['type']){if('insert'==_0x2946d1['type']){const _0x33e143=_0x2946d1['position']['root']['rootName'];this['_diffRoots']['has'](_0x33e143)||(this['_diffRoots']['set'](_0x33e143,P(_0x33e143,!0x0)),this['_diffRootsAttributes']['set'](_0x33e143,{}),_0x2ee249&&this['_idsRoots']['set'](_0x33e143,P(_0x33e143,!0x0)));}else{if('addRootAttribute'==_0x2946d1['type']||'removeRootAttribute'==_0x2946d1['type']||'changeRootAttribute'==_0x2946d1['type'])return void this['_handleRootAttributeOperation'](_0x2946d1);'marker'==_0x2946d1['type']&&this['_handleMarkerOperation'](_0x2946d1);}if('marker'!==_0x2946d1['type']){const _0x2fb481=this['_cloneOperation'](_0x2946d1,this['_diffRoots']);_0x2fb481['_execute'](),this['_transformMarkers'](_0x2fb481);}if(_0x2ee249)switch(_0x2946d1['type']){case'insert':this['_handleInsertOperation'](_0x2946d1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2946d1);break;case'merge':this['_handleMergeOperation'](_0x2946d1);break;case'split':this['_handleSplitOperation'](_0x2946d1);}}else this['_handleRootOperation'](_0x2946d1,_0x2ee249);}['_cloneOperation'](_0x1a9e39,_0x556147){const _0x49ebec=_0x1a9e39['clone']();return _0x49ebec['_authorId']=_0x1a9e39['_authorId'],this['_fixOperation'](_0x49ebec,_0x556147),_0x49ebec;}['_getBaseVids'](_0x3ed5d3){return _0x3ed5d3['map'](_0xdc6ac8=>{const _0x1f0792=this['_getVidAttributeName'](_0xdc6ac8);return Number(_0xdc6ac8['item']['getAttribute'](_0x1f0792));});}['_generateTape'](_0x14d895,_0x194ad0){if(_0x14d895['is']('element','$text'))_0x194ad0['push']({'item':_0x14d895,'type':'text'});else{_0x14d895['is']('element')&&_0x194ad0['push']({'item':_0x14d895,'type':'elementStart'});for(const _0x150391 of _0x14d895['getChildren']())this['_generateTape'](_0x150391,_0x194ad0);_0x14d895['is']('element')&&_0x194ad0['push']({'item':_0x14d895,'type':'elementEnd'});}return _0x194ad0;}['_getState'](){const _0xda2f10=new Map(this['_touched']),_0x1c7ec6=new Map(_0xda2f10),_0x57953d=new Map(),_0xa1903b={'insertions':{},'deletions':{}},_0x1aa911={'insertions':{},'deletions':{}},_0x51679a=new Map(),_0x4fd42e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4fd42e['delete']('$graveyard');for(const _0x5652fc of _0x4fd42e){const _0x39889a=this['_diffRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1),_0x3d5d79=this['_baseRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1);_0x39889a['isAttached']()||_0x3d5d79['isAttached']()?(_0xa1903b['insertions'][_0x5652fc]=N(_0x39889a),_0xa1903b['deletions'][_0x5652fc]=N(_0x3d5d79),this['_copyMarkers'](_0xa1903b['deletions'][_0x5652fc],_0x3d5d79),this['_copyMarkers'](_0xa1903b['insertions'][_0x5652fc],_0x39889a),_0x1aa911['insertions'][_0x5652fc]=this['_generateTape'](this['_idsRoots']['get'](_0x5652fc),[]),_0x1aa911['deletions'][_0x5652fc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1),[])):_0x4fd42e['delete'](_0x5652fc);}for(const _0x2b74ac of _0x4fd42e){const _0xd18361=_0x1aa911['insertions'][_0x2b74ac];for(const _0xd418a1 of _0xd18361){const _0x28c58c=this['_getVidAttributeName'](_0xd418a1),_0x103d06=_0xd418a1['item']['getAttribute'](_0x28c58c);_0x1c7ec6['delete'](_0x103d06),_0x103d06>=this['_startingRevisionId']&&_0x57953d['set'](_0x103d06,_0xda2f10['get'](_0x103d06));}}for(const _0xb28fce of _0x4fd42e){const _0x593b40=_0x1aa911['insertions'][_0xb28fce],_0x368c27=this['_getBaseVids'](_0x1aa911['deletions'][_0xb28fce]);let _0x4ad4fd=0x0;for(const _0x4f5ea3 of _0x593b40){const _0x35ab1b=this['_getVidAttributeName'](_0x4f5ea3),_0x2e0e88=_0x4f5ea3['item']['getAttribute'](_0x35ab1b);if(!_0x57953d['has'](_0x2e0e88)&&!_0x51679a['has'](_0x2e0e88)){if(_0x1c7ec6['has'](_0x2e0e88))_0x4ad4fd++;else{if(_0x2e0e88!=_0x368c27[_0x4ad4fd]){const _0x491b3e=_0xda2f10['get'](_0x2e0e88)||_0xda2f10['get'](_0x368c27[_0x4ad4fd]);for(;_0x2e0e88!=_0x368c27[_0x4ad4fd];)_0x1c7ec6['has'](_0x368c27[_0x4ad4fd])||(_0x51679a['set'](_0x368c27[_0x4ad4fd],_0x491b3e),_0xda2f10['set'](_0x368c27[_0x4ad4fd],_0x491b3e)),_0x4ad4fd++;}_0x4ad4fd++;}}}}for(const _0x4d8f90 of _0x4fd42e){const _0x202e71=_0x1aa911['insertions'][_0x4d8f90];for(const _0x3f515b of _0x202e71){const _0x4a0cbc=this['_getVidAttributeName'](_0x3f515b),_0x3538f1=_0x3f515b['item']['getAttribute'](_0x4a0cbc);if(_0x51679a['has'](_0x3538f1)){const _0x4613d0=_0x51679a['get'](_0x3538f1);_0x1c7ec6['has'](_0x3538f1)||_0x1c7ec6['set'](_0x3538f1,{..._0x4613d0}),_0x57953d['set'](_0x3538f1,{..._0x4613d0});}}}for(const _0xe689b3 of _0x1c7ec6['keys']())_0xe689b3>=this['_startingRevisionId']&&_0x1c7ec6['delete'](_0xe689b3);const _0x1885fc=new Map();for(const _0x5141d1 of _0x4fd42e){let _0x4d4d1c=_0x1aa911['insertions'][_0x5141d1];for(const _0x18ad15 of _0x4d4d1c)if(_0x18ad15['item']['is']('element','tableCell')){const _0x587796=this['_getVidAttributeName'](_0x18ad15),_0x210eba=_0x18ad15['item']['getAttribute'](_0x587796);if(_0x57953d['has'](_0x210eba)){const _0x55b823=_0x18ad15['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ca800=_0x1885fc['get'](_0x55b823)||new Set();_0x4ca800['add'](_0x57953d['get'](_0x210eba)['userId']),_0x1885fc['set'](_0x55b823,_0x4ca800);}}_0x4d4d1c=_0x1aa911['deletions'][_0x5141d1];for(const _0x57756a of _0x4d4d1c)if(_0x57756a['item']['is']('element','tableCell')){const _0x256ab1=this['_getVidAttributeName'](_0x57756a),_0x13ba99=_0x57756a['item']['getAttribute'](_0x256ab1);if(_0x1c7ec6['has'](_0x13ba99)){const _0x22de76=_0x57756a['item']['parent']['parent']['getAttribute']('vid_start'),_0x16366e=_0x1885fc['get'](_0x22de76)||new Set();_0x16366e['add'](_0x1c7ec6['get'](_0x13ba99)['userId']),_0x1885fc['set'](_0x22de76,_0x16366e);}}for(const _0x259f71 of _0x1885fc['keys']())(_0x57953d['has'](_0x259f71)||_0x1c7ec6['has'](_0x259f71))&&_0x1885fc['delete'](_0x259f71);}for(const _0x2ac8e4 of _0x4fd42e){const _0x2c05cb=_0x1aa911['insertions'][_0x2ac8e4];let _0x25d7e1=null,_0x240957=null;for(const _0x2f9fd2 of _0x2c05cb){const _0x1c823a=this['_getVidAttributeName'](_0x2f9fd2),_0x13ca20=_0x2f9fd2['item']['getAttribute'](_0x1c823a),_0x1329d2=_0x1885fc['get'](_0x13ca20);_0x1329d2&&'elementStart'==_0x2f9fd2['type']&&(_0x25d7e1=Array['from'](_0x1329d2)[0x0],_0x240957=_0x2f9fd2['item']['getAttribute']('vid_end')),_0x25d7e1&&(_0x1c7ec6['set'](_0x13ca20,{'userId':_0x25d7e1}),_0x57953d['set'](_0x13ca20,{'userId':_0x25d7e1})),_0x13ca20==_0x240957&&(_0x25d7e1=null,_0x240957=null);}}const _0x1b018e={},_0x1bbd12=new Set();for(const _0x168790 of _0x4fd42e){const _0x17c0f4=_0xa1903b['deletions'][_0x168790],_0x10a91e=_0xa1903b['insertions'][_0x168790];for(const {userId:_0x97a8ca}of this['_touchedMarkers']['values']())null!==_0x97a8ca&&_0x1bbd12['add'](_0x97a8ca);for(const {userId:_0x5d60f8}of this['_touchedRoots']['values']())null!==_0x5d60f8&&_0x1bbd12['add'](_0x5d60f8);this['_markChanges'](_0x10a91e,_0x1aa911['insertions'][_0x168790],_0x57953d,'insertion',_0x1bbd12),this['_markChanges'](_0x17c0f4,_0x1aa911['deletions'][_0x168790],_0x1c7ec6,'deletion',_0x1bbd12),_0x1b018e[_0x168790]={'insertions':this['_prepareViewToSave'](_0x10a91e),'deletions':this['_prepareViewToSave'](_0x17c0f4),'attachChange':this['_touchedRoots']['get'](_0x168790)||null,'attributesBefore':_0xd7a62f(this['_baseRootsAttributes']['get'](_0x168790))||{},'attributesAfter':_0xd7a62f(this['_diffRootsAttributes']['get'](_0x168790))};}return{'diffData':_0x1b018e,'authorsIds':Array['from'](_0x1bbd12)};}['_processRootBeforeSave'](_0x7cc5d2){for(const [,_0x120806]of _0x7cc5d2['markers']){const _0x9ef4f1=_0x120806['start']['getAncestors']()['filter'](_0x13f5b9=>'tableCell'==_0x13f5b9['name']);for(const _0x37a9ab of _0x9ef4f1)0x1==_0x37a9ab['childCount']&&_0x37a9ab['getChild'](0x0)['is']('element','paragraph')&&_0x37a9ab['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5decb5){this['_processRootBeforeSave'](_0x5decb5);const _0x1a2b01=this['editor']['data']['toView'](_0x5decb5,{}),_0xf18ab3=Array['from'](_0x1a2b01['getChildren']())['map'](_0x1010da=>this['_getViewJson'](_0x1010da));return JSON['stringify'](_0xf18ab3);}['_getViewJson'](_0x44489b){if(_0x44489b['is']('$text'))return _0x44489b['data'];{const _0x2a45ff=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x50d42c=_0x44489b,_0x17ebaf=this['editor']['data']['htmlProcessor']['domConverter'],_0x66bfaf={'type':_0x2a45ff['_getTypeCharForViewElement'](_0x50d42c),'name':_0x50d42c['name'],'attributes':Array['from'](_0x50d42c['getAttributes']()),'children':Array['from'](_0x50d42c['getChildren']())['map'](_0xece97c=>this['_getViewJson'](_0xece97c))};if(_0x44489b['is']('uiElement')&&'$comment'!=_0x44489b['name']){const _0x25faa3=_0x44489b['render'](_0x17ebaf['domDocument'],_0x17ebaf);_0x66bfaf['children']['push'](_0x25faa3['outerHTML']);}else{if(_0x44489b['is']('rawElement')){const _0x4cdc19=_0x17ebaf['domDocument']['createElement'](_0x50d42c['name']);_0x44489b['render'](_0x4cdc19,_0x17ebaf),_0x66bfaf['children']['push'](_0x4cdc19['innerHTML']);}}const _0x4c5187=Array['from'](_0x50d42c['getCustomProperties']());_0x4c5187['length']>0x0&&(_0x66bfaf['customProperties']=_0x4c5187);const _0x48b361=_0x50d42c['getFillerOffset']();return null!==_0x48b361&&(_0x66bfaf['fillerOffset']=_0x48b361),_0x66bfaf;}}['_markChanges'](_0xe37204,_0x5877ed,_0x5ee2b6,_0x25da94,_0x2d85ed){let _0x493305=null,_0x1f6dca=null,_0x2dc4bf=0x0;const _0x25639a=this['editor']['model'];for(let _0x5a666a=0x0;_0x5a666a<_0x5877ed['length'];_0x5a666a++){const _0x25e3ad=this['_getVidAttributeName'](_0x5877ed[_0x5a666a]),_0x4408a7=_0x5877ed[_0x5a666a]['item']['getAttribute'](_0x25e3ad),_0x3fc383=_0x5ee2b6['get'](_0x4408a7),_0x11c5f8=_0x5a666a==_0x5877ed['length']-0x1;(!_0x493305&&_0x3fc383&&(_0x493305=_0x3fc383,_0x1f6dca=_0x5877ed[_0x5a666a]),_0x493305&&(!_0x3fc383||_0x3fc383['userId']!=_0x493305['userId']))&&(_0x5786c2(_0x3fc383,F(_0x1f6dca,_0xe37204,_0x25639a),F(_0x5877ed[_0x5a666a],_0xe37204,_0x25639a)),_0x493305=_0x3fc383||null,_0x1f6dca=_0x3fc383?_0x5877ed[_0x5a666a]:null),_0x493305&&_0x11c5f8&&_0x5786c2(_0x3fc383,F(_0x1f6dca,_0xe37204,_0x25639a),B(_0x5877ed[_0x5a666a],_0xe37204,_0x25639a));}function _0x5786c2(_0x70d883,_0x1bc77f,_0x58394f){const _0x50c883=_0x493305['userId'],_0x24bc0a='revision:'+_0x25da94+':'+_0x50c883+':'+_0x2dc4bf++,_0x166d4e=_0x25639a['createRange'](_0x1bc77f,_0x58394f);_0xe37204['markers']['set'](_0x24bc0a,_0x166d4e),null!==_0x50c883&&_0x2d85ed['add'](_0x50c883);}}['_getVidAttributeName'](_0x21874e){switch(_0x21874e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x207449,_0x36d80b){_0x207449['baseVersion']=null;for(const _0x24d0c1 in _0x207449){const _0xb7c32=_0x207449[_0x24d0c1];if(_0xb7c32 instanceof ft){const _0x455bda=_0x36d80b['get'](_0xb7c32['root']['rootName']);_0x207449[_0x24d0c1]=this['_fixPosition'](_0xb7c32,_0x455bda);}if(_0xb7c32 instanceof lt){const _0x251f39=_0x36d80b['get'](_0xb7c32['root']['rootName']);_0x207449[_0x24d0c1]=this['_fixRange'](_0xb7c32,_0x251f39);}'root'===_0x24d0c1&&(_0x207449['root']=_0x36d80b['get'](_0x207449['root']['rootName']));}}['_fixRange'](_0x481eb1,_0x156d71){return this['editor']['model']['createRange'](this['_fixPosition'](_0x481eb1['start'],_0x156d71),this['_fixPosition'](_0x481eb1['end'],_0x156d71));}['_fixPosition'](_0x3860fb,_0x585a42){return this['editor']['model']['createPositionFromPath'](_0x585a42,_0x3860fb['path'],_0x3860fb['stickiness']);}['_handleInsertOperation'](_0x27a50a){const _0x5d137e=this['_idsRoots']['get'](_0x27a50a['position']['root']['rootName']),_0x2f1cb7=this['_fixPosition'](_0x27a50a['position'],_0x5d137e),_0x16a0df=null===_0x27a50a['_authorId']?null:_0x27a50a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17ef5a=_0x2f1cb7['parent'],_0x4feb01=this['_revisionId'],_0x557744=[];for(const _0x5a46bb of _0x27a50a['nodes'])if(_0x5a46bb['is']('element'))_0x557744['push'](this['_makeIdsRoot'](_0x5a46bb));else{for(let _0x57c887=0x0;_0x57c887<_0x5a46bb['offsetSize'];_0x57c887++)_0x557744['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x155f97=this['_revisionId'];for(let _0xb72e4a=_0x4feb01;_0xb72e4a<_0x155f97;_0xb72e4a++)this['_touched']['set'](_0xb72e4a,{'userId':_0x16a0df});_0x17ef5a['_insertChild'](_0x2f1cb7['offset'],_0x557744);}['_handleMoveOperation'](_0x3e051d){(_0x3e051d=this['_cloneOperation'](_0x3e051d,this['_idsRoots']))['_execute']();const _0x4ff37c=null===_0x3e051d['_authorId']?null:_0x3e051d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc5b3b5=_0x3e051d['getMovedRangeStart'](),_0x5d620e=_0xc5b3b5['parent'],_0x71b38a=_0xc5b3b5['offset'];!function _0x47341e(_0x11d22b,_0x15ca27,_0x1dbfc6,_0x16a5a6){for(let _0x13cd0b=_0x1dbfc6;_0x13cd0b<_0x16a5a6;_0x13cd0b++){const _0x4c5f24=_0x15ca27['getChild'](_0x13cd0b);_0x4c5f24['is']('element','$text')?_0x11d22b['set'](_0x4c5f24['getAttribute']('vid'),{'userId':_0x4ff37c}):(_0x11d22b['set'](_0x4c5f24['getAttribute']('vid_start'),{'userId':_0x4ff37c}),_0x47341e(_0x11d22b,_0x4c5f24,0x0,_0x4c5f24['childCount']),_0x11d22b['set'](_0x4c5f24['getAttribute']('vid_end'),{'userId':_0x4ff37c}));}}(this['_touched'],_0x5d620e,_0x71b38a,_0x71b38a+_0x3e051d['howMany']);}['_handleMergeOperation'](_0x1080a6){const _0x51e83b=null===(_0x1080a6=this['_cloneOperation'](_0x1080a6,this['_idsRoots']))['_authorId']?null:_0x1080a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a713b=_0x1080a6['targetPosition']['parent'],_0x2047f4=_0x1080a6['sourcePosition']['parent'],_0x493b3d=_0x4a713b['getAttribute']('vid_end'),_0x4deda0=_0x2047f4['getAttribute']('vid_start');_0x4a713b['_setAttribute']('vid_end',_0x2047f4['getAttribute']('vid_end')),_0x2047f4['_setAttribute']('vid_end',_0x493b3d),this['_touched']['set'](_0x4deda0,{'userId':_0x51e83b}),this['_touched']['set'](_0x493b3d,{'userId':_0x51e83b}),_0x1080a6['_execute']();}['_handleSplitOperation'](_0x8cb720){const _0x49785a=null===(_0x8cb720=this['_cloneOperation'](_0x8cb720,this['_idsRoots']))['_authorId']?null:_0x8cb720['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5255b5=_0x8cb720['graveyardPosition'],_0x4acc85=_0x8cb720['splitPosition']['parent'];_0x8cb720['_execute']();const _0x24a73c=_0x4acc85['getAttribute']('vid_end'),_0x868014=_0x8cb720['insertionPosition']['nodeAfter'];if(_0x5255b5){const _0x4b03e2=_0x868014['getAttribute']('vid_end'),_0x57205e=_0x4acc85['getAttribute']('vid_end');_0x4acc85['_setAttribute']('vid_end',_0x4b03e2),_0x868014['_setAttribute']('vid_end',_0x57205e),this['_touched']['set'](_0x4acc85['getAttribute']('vid_end'),{'userId':_0x49785a}),this['_touched']['set'](_0x868014['getAttribute']('vid_start'),{'userId':_0x49785a});}else{const _0x8ea0c8=this['_revisionId']++,_0x35ae37=this['_revisionId']++;_0x4acc85['_setAttribute']('vid_end',_0x8ea0c8),_0x868014['_setAttribute']('vid_start',_0x35ae37),_0x868014['_setAttribute']('vid_end',_0x24a73c),this['_touched']['set'](_0x8ea0c8,{'userId':_0x49785a}),this['_touched']['set'](_0x35ae37,{'userId':_0x49785a});}}['_handleMarkerOperation'](_0x4c6642){if(!_0x4c6642['affectsData'])return;const _0x1db495=(_0x4c6642=this['_cloneOperation'](_0x4c6642,this['_diffRoots']))['oldRange']?_0x4c6642['oldRange']['root']:null,_0x17162f=_0x4c6642['newRange']?_0x4c6642['newRange']['root']:null;_0x1db495&&this['_markers']['delete'](_0x4c6642['name']),_0x17162f&&this['_markers']['set'](_0x4c6642['name'],_0x4c6642['newRange']['clone']());const _0x361135=null===_0x4c6642['_authorId']?null:_0x4c6642['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5da808=_0x4c6642['name'];if(!this['_touchedMarkers']['has'](_0x5da808))return void this['_touchedMarkers']['set'](_0x5da808,{'range':_0x4c6642['oldRange'],'userId':_0x361135});const _0x492d5b=this['_touchedMarkers']['get'](_0x5da808),_0xf29efb=_0x492d5b['range'],_0x1e1884=_0x4c6642['newRange'];null==_0xf29efb&&null==_0x1e1884||_0xf29efb&&_0x1e1884&&_0xf29efb['isEqual'](_0x1e1884)?this['_touchedMarkers']['delete'](_0x4c6642['name']):_0x492d5b['userId']=_0x361135;}['_handleRootOperation'](_0x37b081,_0x3a1675){this['_diffRoots']['has'](_0x37b081['rootName'])?this['_diffRoots']['get'](_0x37b081['rootName'])['_isAttached']=_0x37b081['isAdd']:(this['_diffRoots']['set'](_0x37b081['rootName'],P(_0x37b081['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x37b081['rootName'],{}),_0x3a1675&&this['_idsRoots']['set'](_0x37b081['rootName'],P(_0x37b081['rootName'],!0x0)));const _0x156621=null===_0x37b081['_authorId']?null:_0x37b081['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3bbfbf=this['_touchedRoots']['get'](_0x37b081['rootName']);_0x3bbfbf&&_0x3bbfbf['userId']===_0x156621?this['_touchedRoots']['delete'](_0x37b081['rootName']):this['_touchedRoots']['set'](_0x37b081['rootName'],{'userId':_0x156621,'isAttached':_0x37b081['isAdd']});}['_handleRootAttributeOperation'](_0x4f905c){const _0x355b34=this['_diffRootsAttributes']['get'](_0x4f905c['root']['rootName']);null===_0x4f905c['newValue']?delete _0x355b34[_0x4f905c['key']]:_0x355b34[_0x4f905c['key']]=_0x4f905c['newValue'];}}function N(_0x13b2ac){const _0x5f143c=P(_0x13b2ac['rootName'],_0x13b2ac['isAttached']());for(const _0x156801 of _0x13b2ac['getChildren']()){const _0x110dd7=_0x156801['_clone'](!0x0);_0x5f143c['_appendChild'](_0x110dd7);}return _0x5f143c;}function P(_0x2129dd,_0x2a43f5=!0x0){const _0xb76972=new vt();return _0xb76972['rootName']=_0x2129dd,_0xb76972['_isAttached']=_0x2a43f5,_0xb76972['isAttached']=()=>_0xb76972['_isAttached'],_0xb76972;}function F(_0xeac08b,_0x317647,_0x2780bd){const _0x4d4098='elementEnd'==_0xeac08b['type']?_0x2780bd['createPositionAt'](_0xeac08b['item'],'end'):_0x2780bd['createPositionBefore'](_0xeac08b['item']);return _0x2780bd['createPositionFromPath'](_0x317647,_0x4d4098['path'],_0x4d4098['stickiness']);}function B(_0x2c94ff,_0x52e0f7,_0x356d2e){const _0x20f039='elementStart'==_0x2c94ff['type']?_0x356d2e['createPositionAt'](_0x2c94ff['item'],0x0):_0x356d2e['createPositionAfter'](_0x2c94ff['item']);return _0x356d2e['createPositionFromPath'](_0x52e0f7,_0x20f039['path'],_0x20f039['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3c0e57,_0x29de62){super(_0x3c0e57),this['focusTracker']=new _0x56a114(),this['keystrokes']=new _0x4bff5f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x29de62),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e8693(this);}['render'](){super['render'](),_0x265629({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d9cc7=_0x19c9a2=>_0x19c9a2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d9cc7),this['keystrokes']['set']('arrowleft',_0x2d9cc7),this['keystrokes']['set']('arrowup',_0x2d9cc7),this['keystrokes']['set']('arrowdown',_0x2d9cc7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x9a2a23){this['revisionNameInputView']['fieldView']['element']['value']=_0x9a2a23['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2e6a5e){const _0x4caa3f=new _0x2ad300(this['locale'],_0x25e8fe),_0x4998e4=_0x4caa3f['fieldView'];_0x4998e4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x259238=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2e6a5e&&(_0x259238+='\x20('+g(this['locale'],'optional')+')'),(_0x4caa3f['label']=_0x259238,_0x4998e4['on']('input',()=>{this['revisionNameInputValue']=_0x4998e4['element']['value']['trim']();}),_0x4caa3f);}}class f extends _0x58fda8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1af984=this['editor'],_0x187179=_0x1af984['plugins']['get']('RevisionTracker');_0x1af984['ui']['componentFactory']['add']('revisionHistory',_0x26e599=>{const _0x3b68fa=_0x4da7ef(_0x26e599),_0x21d909=_0x3b68fa['panelView']['children'],_0x1e8f74=new _0x58148e(_0x26e599),_0x462296=new _0x5f1e94(_0x26e599),_0x153df9=new te(_0x26e599),_0x5b4f10=new _0x5f1e94(_0x26e599),_0x20b587=new te(_0x26e599);return _0x3b68fa['bind']('isEnabled')['to'](_0x187179,'isReady',_0x187179,'isEnabled',_0x1af984,'isReadOnly',(_0x4eb8b,_0x4b6a71,_0x33e606)=>_0x4eb8b&&_0x4b6a71&&!_0x33e606),_0x3b68fa['buttonView']['set']({'icon':_0x3c02f1,'label':g(_0x26e599,'Revision\x20history'),'tooltip':!0x0}),_0x153df9['set']({'label':g(_0x26e599,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x153df9['bind']('isEnabled')['to'](_0x187179,'isReady',_0x187179,'isEnabled',_0x1af984,'isReadOnly',(_0x5da953,_0x1b4a04,_0x13a755)=>_0x5da953&&_0x1b4a04&&!_0x13a755),_0x153df9['on']('execute',()=>this['_showDialog']()),_0x20b587['set']({'label':g(_0x26e599,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20b587['bind']('isEnabled')['to'](_0x187179,'isReady',_0x1af984,'isReadOnly',(_0xf40976,_0x38b3f3)=>_0xf40976&&!_0x38b3f3),_0x20b587['on']('execute',()=>{_0x1af984['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3b68fa['isOpen']=!0x1,_0x1af984['editing']['view']['focus']();}),_0x462296['children']['add'](_0x153df9),_0x5b4f10['children']['add'](_0x20b587),_0x1e8f74['role']='menu',_0x1e8f74['items']['addMany']([_0x462296,_0x5b4f10]),_0x21d909['add'](_0x1e8f74),_0x3b68fa;}),_0x1af984['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x31fd5c=this['editor'],_0x43e0fd=_0x31fd5c['locale'],_0x5b3de6=new _0x4a49cf(_0x43e0fd),_0x75c7c5=new _0x5616fd(_0x43e0fd);_0x5b3de6['buttonView']['set']({'icon':_0x3c02f1,'label':g(_0x43e0fd,'Revision\x20history')});const _0x26af20=new _0x4baf0b(_0x43e0fd,_0x5b3de6),_0x57455d=new _0x33ec5d(_0x43e0fd);_0x57455d['set']({'label':g(_0x43e0fd,'Save\x20current\x20revision')}),_0x57455d['delegate']('execute')['to'](_0x5b3de6),_0x57455d['on']('execute',()=>{this['_showDialog']();}),_0x26af20['children']['add'](_0x57455d),_0x75c7c5['items']['add'](_0x26af20);const _0x1191a9=new _0x4baf0b(_0x43e0fd,_0x5b3de6),_0x26f644=new _0x33ec5d(_0x43e0fd);return _0x26f644['set']({'label':g(_0x43e0fd,'Open\x20revision\x20history')}),_0x26f644['delegate']('execute')['to'](_0x5b3de6),_0x26f644['on']('execute',()=>{_0x31fd5c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1191a9['children']['add'](_0x26f644),_0x75c7c5['items']['add'](_0x1191a9),_0x5b3de6['panelView']['children']['add'](_0x75c7c5),_0x5b3de6;}['_showDialog'](){const _0x30442d=this['editor'],_0x2ed6d6=_0x30442d['locale'],_0x55abe0=_0x30442d['plugins']['get']('Dialog'),_0x304bd9=_0x30442d['plugins']['get']('RevisionTracker');function _0x10fa8f(_0x3c5d79){_0x30442d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c5d79['revisionName']?_0x3c5d79['revisionNameInputView']['errorText']=g(_0x2ed6d6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x30442d['plugins']['get'](u)['saveRevision']({'name':_0x3c5d79['revisionName']}),_0x55abe0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x10fa8f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x55abe0['show']({'id':'revisionSave','title':g(_0x2ed6d6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x30442d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x55abe0['hide']()},{'label':g(_0x30442d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51659d){_0x51659d['bind']('isEnabled')['to'](_0x304bd9,'isReady',_0x304bd9,'isEnabled',_0x30442d,'isReadOnly',(_0x101bc5,_0x5a39d9,_0x1a90ec)=>_0x101bc5&&_0x5a39d9&&!_0x1a90ec);},'onExecute':()=>_0x10fa8f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3f2ee8=this['editor'],_0x40dd5f=_0x3f2ee8['locale'];this['_saveRevisionFormView']=new hs(_0x40dd5f,_0x3f2ee8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2867c9,_0x5ce049){super(_0x2867c9),this['_model']=_0x5ce049,this['changeId']=_0x5ce049['id'];const _0x32c508=this['bindTemplate'],_0x3b8503=g(_0x2867c9,_0x5ce049['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ce049['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ce049['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x32c508['to']('type',_0x184808=>'ck-revision-change__'+_0x184808)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3b8503}]},{'text':'\x20'+_0x5ce049['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2dde58(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51e0c6){super(),this['id']=_0x51e0c6['id']||_0xebbfb1(),this['author']=_0x51e0c6['author'],this['type']=_0x51e0c6['type'],this['data']=_0x51e0c6['data']||{},this['rootName']=_0x51e0c6['rootName'],this['set']('createdAt',_0x51e0c6['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(_0x1e8581,_0x18f570){this['newRevisionId']=_0x1e8581,this['oldRevisionId']=_0x18f570,this['changes']=new _0x49b051();}['_setChanges'](_0x1adcb8){for(const _0x15b4c2 of _0x1adcb8)this['changes']['add'](_0x15b4c2);}}class m extends _0x58fda8{['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[_0x188778,_0x7d8f21,I,V];}constructor(_0xd962aa){super(_0xd962aa),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',(_0x3e908f,_0x348564,_0x41c0ad)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x40b0fa=>{for(const _0x1fe662 of this['editor']['editing']['view']['document']['roots'])_0x41c0ad?_0x40b0fa['removeClass']('ck-editor__editable__overlay',_0x1fe662):_0x40b0fa['addClass']('ck-editor__editable__overlay',_0x1fe662);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x18d278=>null!==_0x18d278),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xf5d512,_0x1edba5,_0x2391e1)=>_0xf5d512&&_0x2391e1?_0x1edba5['changes']['getIndex'](_0x2391e1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f8e1b,_0x1bbf2b)=>_0x1f8e1b?_0x1bbf2b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x7d8f21);}['init'](){const _0x205a62=this['editor'],_0x37cfe4=new wt(_0x205a62,{'direction':'backward'}),_0x1095d0=new wt(_0x205a62,{'direction':'forward'});(_0x205a62['commands']['add']('showPreviousChange',_0x37cfe4),_0x205a62['commands']['add']('showNextChange',_0x1095d0),_0x205a62['commands']['add']('restoreRevision',new mt(_0x205a62)),this['on']('change:numberOfChanges',()=>{_0x37cfe4['refresh'](),_0x1095d0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x205a62['enableReadOnlyMode']('revision-viewer'),_0x205a62['plugins']['has']('WidgetToolbarRepository'))&&_0x205a62['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xb79f95){return await this['_utils']['loadRevisionData'](_0xb79f95,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xb79f95);}async['getRevisionRootsAttributes'](_0x20b497){return await this['_utils']['loadRevisionData'](_0x20b497,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20b497);}async['compare'](_0x278eac,_0xfdd0c2,_0x2925ef=!0x1){if(!this['isEnabled'])return;const _0xc6efbb=this['diff'],_0x35fcf0=this['repository'],_0x3ea970='string'==typeof _0x278eac?_0x35fcf0['getRevision'](_0x278eac):_0x278eac,_0x135fcc='string'==typeof _0xfdd0c2?_0x35fcf0['getRevision'](_0xfdd0c2):_0xfdd0c2,_0x8946cb=_0x3ea970['id'],_0xca261d=_0x135fcc?_0x135fcc['id']:null;if(!_0x2925ef&&this['diff']&&this['diff']['newRevisionId']===_0x8946cb&&this['diff']['oldRevisionId']===_0xca261d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x8946cb,_0xca261d);const _0xf1303e=this['_getRevisionsRange'](_0x3ea970,_0x135fcc,!0x0)['map'](_0x2f5d92=>this['_utils']['loadRevisionData'](_0x2f5d92,this['adapter']));return _0xf1303e['push'](new Promise(_0x316e65=>{setTimeout(_0x316e65,0x14);})),Promise['all'](_0xf1303e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7fbdd1=this['_getDiff'](_0x8946cb,_0xca261d);for(const _0x514e85 of _0x7fbdd1['changes'])this['_changeIdToChange']['set'](_0x514e85['id'],_0x514e85);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2bc019=>{for(const _0x3939f5 of this['editor']['model']['document']['getRootNames']())_0x2bc019['detachRoot'](_0x3939f5);for(const _0x187212 of Object['keys'](_0x7fbdd1['model'])){const _0x3a7e3b=_0x2bc019['addRoot'](_0x187212);for(const _0x583fc1 of Object['keys'](_0x7fbdd1['attributes'][_0x187212]))_0x2bc019['setAttribute'](_0x583fc1,_0x7fbdd1['attributes'][_0x187212][_0x583fc1],_0x3a7e3b);_0x2bc019['insert'](_0x7fbdd1['model'][_0x187212],_0x3a7e3b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7fbdd1['changes'])),this['isReady']=!0x0;})['catch'](_0x6c0bbe=>{console['error'](_0x6c0bbe),this['_cleanUp'](),_0xc6efbb&&(this['diff']=_0xc6efbb),this['isReady']=!0x0;});}['addRevisionData'](_0x2db8d6,_0xde93e4){const _0x25388a=this['repository']['createRevision'](_0x2db8d6);return _0x25388a['on']('_update',(_0x4d40f0,_0x353b2b,_0x4b81f8)=>_0xde93e4(_0x353b2b,_0x4b81f8,_0x25388a)),this['repository']['addRevision'](_0x25388a),_0x25388a;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x38d0a7=>{for(const _0x39d149 of this['editor']['model']['document']['getRootNames']())_0x38d0a7['detachRoot'](_0x39d149);});}['_sortAndFilterDiffChanges'](_0x1d78ea){const _0x57481d=[],_0x33c804=new Map();for(const _0x3ad338 of this['editor']['model']['document']['getRootNames']()){const _0x2fafc0=this['editor']['editing']['view']['getDomRoot'](_0x3ad338);if(!_0x2fafc0)continue;const _0x50eee3=_0x2fafc0['getClientRects']()['item'](0x0);_0x50eee3&&(_0x57481d['push'](_0x3ad338),_0x33c804['set'](_0x3ad338,_0x50eee3));}return _0x57481d['sort']((_0x3fa648,_0x2e217b)=>{const _0x8ca61c=_0x33c804['get'](_0x3fa648),_0x4480cd=_0x33c804['get'](_0x2e217b);return _0x8ca61c['y']-_0x4480cd['y']||_0x8ca61c['x']-_0x4480cd['x'];}),(_0x1d78ea=_0x1d78ea['filter'](_0xf0d2b1=>_0x57481d['includes'](_0xf0d2b1['rootName'])))['sort']((_0x5c28ed,_0x43aefa)=>_0x57481d['indexOf'](_0x5c28ed['rootName'])-_0x57481d['indexOf'](_0x43aefa['rootName'])),_0x1d78ea;}['_makeTape'](_0x2e22a3){const _0x36e837=Array['from'](_0x2e22a3['markers'])['filter'](([_0x4f1bcf,_0x5c810b])=>_0x4f1bcf['startsWith']('revision:')&&!_0x5c810b['isCollapsed']),_0xe258e3=Array['from'](this['editor']['model']['createRangeIn'](_0x2e22a3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x36e837['length'])for(const _0x286440 of _0xe258e3){const [_0xcff5e8,_0xc1f13c]=_0x36e837[0x0],[,_0x32073b,_0x22c557]=_0xcff5e8['split'](':');if(_0xc1f13c['end']['isEqual'](_0x286440['nextPosition'])&&_0x36e837['shift'](),(_0x286440['previousPosition']['isEqual'](_0xc1f13c['start'])||_0x286440['previousPosition']['isAfter'](_0xc1f13c['start']))&&('insertion'==_0x32073b?_0x286440['isAdded']={'userId':_0x22c557}:'deletion'==_0x32073b&&(_0x286440['isRemoved']={'userId':_0x22c557})),0x0==_0x36e837['length'])break;}return _0xe258e3;}['_refreshStartEndIndex'](_0x253ce5){const _0x228af5=new Map();for(let _0x1ad5e6=0x0;_0x1ad5e6<_0x253ce5['length'];_0x1ad5e6++)'text'===_0x253ce5[_0x1ad5e6]['type']?(_0x253ce5[_0x1ad5e6]['item']['startIndex']=_0x1ad5e6,_0x253ce5[_0x1ad5e6]['item']['endIndex']=_0x1ad5e6):('elementStart'===_0x253ce5[_0x1ad5e6]['type']?_0x253ce5[_0x1ad5e6]['item']['startIndex']=_0x1ad5e6:'elementEnd'===_0x253ce5[_0x1ad5e6]['type']&&(_0x253ce5[_0x1ad5e6]['item']['endIndex']=_0x1ad5e6),_0x228af5['set'](_0x253ce5[_0x1ad5e6]['id'],_0x1ad5e6));for(const _0x3e2801 of _0x228af5['values']())'elementStart'===_0x253ce5[_0x3e2801]['type']?_0x253ce5[_0x3e2801]['item']['endIndex']=_0x228af5['get'](_0x253ce5[_0x3e2801]['pairId']):'elementEnd'===_0x253ce5[_0x3e2801]['type']&&(_0x253ce5[_0x3e2801]['item']['startIndex']=_0x228af5['get'](_0x253ce5[_0x3e2801]['pairId']));}['_processTape'](_0x123564){for(let _0x954822=0x0;_0x954822<_0x123564['length'];_0x954822++){if('elementStart'===_0x123564[_0x954822]['type'])_0x123564[_0x954822]['item']['startIndex']=_0x954822;else{if('elementEnd'===_0x123564[_0x954822]['type']){_0x123564[_0x954822]['item']['endIndex']=_0x954822;const _0x347256=_0x123564[_0x954822]['item']['startIndex'];_0x123564[_0x347256]['pairId']=_0x123564[_0x954822]['id'],_0x123564[_0x954822]['pairId']=_0x123564[_0x347256]['id'];}else _0x123564[_0x954822]['item']['startIndex']=_0x954822,_0x123564[_0x954822]['item']['endIndex']=_0x954822,_0x123564[_0x954822]['pairId']=null;}_0x123564[_0x954822]['markersStart']||(_0x123564[_0x954822]['markersStart']=[],_0x123564[_0x954822]['markersEnd']=[]);}}['_markInsertions'](_0x1746ca,_0x56a6ac){const _0x564599=_0x1746ca['filter'](_0x2fcc11=>!_0x2fcc11['isAdded']);for(let _0x189b0d=0x0;_0x189b0d<_0x56a6ac['length'];_0x189b0d++)_0x56a6ac[_0x189b0d]['isAdded']&&(_0x564599[_0x189b0d]['isAdded']=_0x56a6ac[_0x189b0d]['isAdded']);}['_getDiff'](_0x2e599c,_0x566b1f=null){const _0x44e72c=this['repository']['getRevision'](_0x2e599c),_0x35bb43=_0x566b1f?this['repository']['getRevision'](_0x566b1f):null,_0x72974b=this['_getRevisionsRange'](_0x44e72c,_0x35bb43),_0x56ca59=_0x72974b[_0x72974b['length']-0x1],_0x57f40f=new Map(),_0x1ce082={'model':{},'attributes':{},'changes':[]},_0x99ce9f=new Set(),_0x4e30cb=new Map();for(let _0x505eeb=_0x72974b['length']-0x1;_0x505eeb>=0x0;_0x505eeb--){const _0xe8e16a=_0x72974b[_0x505eeb];for(const _0x495e6a of Object['keys'](_0xe8e16a['diffData']))if(_0xe8e16a['diffData'][_0x495e6a]['attachChange']){const _0x39fb69=_0xe8e16a['diffData'][_0x495e6a]['attachChange'];_0x39fb69['isAttached']?(_0x99ce9f['add'](_0x495e6a),_0x4e30cb['has'](_0x495e6a)&&_0x4e30cb['get'](_0x495e6a)['userId']==_0x39fb69['userId']?_0x4e30cb['delete'](_0x495e6a):_0x4e30cb['set'](_0x495e6a,_0x39fb69)):_0x4e30cb['has'](_0x495e6a)?(_0x99ce9f['delete'](_0x495e6a),_0x4e30cb['delete'](_0x495e6a)):(_0x99ce9f['add'](_0x495e6a),_0x4e30cb['set'](_0x495e6a,_0x39fb69));}else _0x99ce9f['add'](_0x495e6a);}for(const _0x5b5d59 of _0x99ce9f){const _0x8d1be0=_0x4e30cb['has'](_0x5b5d59)&&!_0x4e30cb['get'](_0x5b5d59)['isAttached'];let _0x55fe74=_0x8d1be0?_0x72974b['length']-0x1:0x0;const _0x2a0d06=_0x8d1be0?-0x1:0x1;for(;_0x72974b[_0x55fe74];){const _0x13113f=_0x72974b[_0x55fe74];if(_0x13113f['diffData'][_0x5b5d59]){const _0x3d291e=_0x8d1be0?_0x13113f['diffData'][_0x5b5d59]['attributesBefore']:_0x13113f['diffData'][_0x5b5d59]['attributesAfter'];_0x1ce082['attributes'][_0x5b5d59]=_0x3d291e?_0xd7a62f(_0x3d291e):{};break;}_0x55fe74+=_0x2a0d06;}}for(const _0x469258 of _0x72974b){_0x469258['model']={};for(const _0x19e744 of _0x469258['authors'])_0x57f40f['set'](_0x19e744['id'],_0x19e744);for(const _0x2a1758 of _0x99ce9f){const _0x235a36=_0x469258['diffData'][_0x2a1758]?_0x469258['diffData'][_0x2a1758]['insertions']:'[]',_0x1cdf27=_0x469258['diffData'][_0x2a1758]?_0x469258['diffData'][_0x2a1758]['deletions']:'[]';_0x469258['model'][_0x2a1758]={'insertions':this['_utils']['_makeModelFromViewString'](_0x235a36),'deletions':this['_utils']['_makeModelFromViewString'](_0x1cdf27)};}}for(const _0x586665 of _0x99ce9f){let _0x19e80d=null,_0x5bc60e=0x0;const _0x5c4a6f=new Map(Array['from'](_0x44e72c['model'][_0x586665]['insertions']['markers'])['filter'](([_0x2128ac])=>!_0x2128ac['startsWith']('revision:')));let _0x467e47=0x0;for(const _0x1e6fb1 of _0x72974b){const _0x1ebd0f=this['_makeTape'](_0x1e6fb1['model'][_0x586665]['insertions']);_0x1e6fb1==_0x44e72c?(_0x19e80d=_0x1ebd0f,_0x5bc60e=_0x19e80d['length'],_0x19e80d['forEach'](_0x3b0b13=>{_0x3b0b13['id']=_0x467e47++;}),this['_processTape'](_0x19e80d)):this['_markInsertions'](_0x19e80d,_0x1ebd0f);const _0x1d21e6=_0x19e80d['filter'](_0x1df9cc=>!_0x1df9cc['isAdded'])['map'](_0x3fc5f7=>_0x3fc5f7['id']);let _0x19d965=0x0;const _0x21367b=this['_makeTape'](_0x1e6fb1['model'][_0x586665]['deletions']);_0x21367b['forEach'](_0x5961d5=>{_0x5961d5['isRemoved']?_0x5961d5['id']=_0x5bc60e++:_0x5961d5['id']=_0x1d21e6[_0x19d965++];}),this['_processTape'](_0x21367b),this['_setDistance'](_0x19e80d,'isAdded'),this['_setDistance'](_0x21367b,'isRemoved'),_0x1e6fb1==_0x44e72c&&this['_markMarkers'](_0x19e80d,_0x5c4a6f),_0x19e80d=this['_joinTapes'](_0x19e80d,_0x21367b),this['_refreshStartEndIndex'](_0x19e80d),this['_setDistance'](_0x19e80d,'isRemoved');}_0x19e80d=_0x19e80d['filter'](_0x3f85cb=>!(_0x3f85cb['isAdded']&&_0x3f85cb['isRemoved']));const _0x194b12=new Map(_0x56ca59['model'][_0x586665]['deletions']['markers']),_0x5b2e27=new Set(_0x5c4a6f['keys']());for(const _0xf6581a of _0x194b12['keys']())_0x5b2e27['delete'](_0xf6581a);this['_markSuggestions'](_0x19e80d,_0x5b2e27),this['_fixObsoleteTags'](_0x19e80d),_0x19e80d=this['_removeMissingPairs'](_0x19e80d),_0x19e80d=this['_markMismatchedRemovedTags'](_0x19e80d),_0x19e80d=this['_removeUnsupportedChanges'](_0x19e80d);const {root:_0x30d19f,changes:_0x3f648c}=this['_makeModelFromTape'](_0x19e80d,_0x57f40f,_0x586665);_0x1ce082['model'][_0x586665]=_0x30d19f;const _0x47c275=_0x4e30cb['get'](_0x586665);if(_0x47c275){const _0x561ebd=_0x57f40f['get'](_0x47c275['userId']),_0x1b4b96=new r({'author':_0x561ebd,'type':_0x47c275['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x586665});_0x3f648c['unshift'](_0x1b4b96),_0x1ce082['attributes'][_0x586665]['revisionHistoryAttachChange']=_0x1b4b96['id'];}_0x1ce082['changes']=_0x1ce082['changes']['concat'](_0x3f648c);}return _0x1ce082;}['_markMarkers'](_0x926994,_0x138cbc){for(let _0x25131f=0x0;_0x25131f<_0x926994['length'];_0x25131f++)for(const [_0x5ba265,_0x31ee21]of _0x138cbc)!_0x31ee21['isCollapsed']&&_0x31ee21['start']['isEqual'](_0x926994[_0x25131f]['previousPosition'])&&_0x926994[_0x25131f]['markersStart']['push'](_0x5ba265),_0x31ee21['end']['isEqual'](_0x926994[_0x25131f]['nextPosition'])&&_0x926994[_0x25131f]['markersEnd']['push'](_0x5ba265);}['_joinTapes'](_0x445856,_0x5df544){let _0x3234e0=[],_0x3c6dcc=0x0,_0x16c63c=0x0;for(;_0x3c6dcc<_0x445856['length']||_0x16c63c<_0x5df544['length'];){const _0x5af184=_0x445856[_0x3c6dcc]||{},_0x265f6a=_0x5df544[_0x16c63c]||{};if(_0x5af184['id']==_0x265f6a['id'])_0x3c6dcc++,_0x16c63c++,_0x3234e0['push'](_0x5af184);else{if(_0x265f6a['isRemoved']&&_0x5af184['isAdded']){const {commonTape:_0x5e8f0f,iEnd:_0x2541f5,jEnd:_0x12255f}=this['_threeWayMerge'](_0x445856,_0x3c6dcc,_0x5df544,_0x16c63c);_0x3234e0=_0x3234e0['concat'](_0x5e8f0f),_0x3c6dcc=_0x2541f5,_0x16c63c=_0x12255f;}else _0x265f6a['isRemoved']?(_0x16c63c++,_0x3234e0['push'](_0x265f6a)):(_0x3c6dcc++,_0x3234e0['push'](_0x5af184));}}return _0x3234e0;}['_markSuggestions'](_0x309659,_0x550ce8){const _0x36a0b5=[];for(let _0x5588f9=0x0;_0x5588f9<_0x309659['length'];_0x5588f9++){for(let _0x475e8e=0x0;_0x475e8e<_0x309659[_0x5588f9]['markersStart']['length'];_0x475e8e++){const _0x488236=_0x309659[_0x5588f9]['markersStart'][_0x475e8e];if(!_0x550ce8['has'](_0x488236))continue;const {group:_0x69eec,type:_0x678013,authorId:_0x1efcbe}=_0x130747(_0x488236);'revision-suggestion'!=_0x69eec||'insertion'!=_0x678013&&'deletion'!=_0x678013||(_0x36a0b5['unshift']({'type':_0x678013,'name':_0x488236,'userId':_0x1efcbe}),_0x309659[_0x5588f9]['markersStart']['splice'](_0x475e8e,0x1),_0x475e8e--);}_0x2047f2(_0x309659[_0x5588f9]);for(let _0x41911d=0x0;_0x41911d<_0x309659[_0x5588f9]['markersEnd']['length'];_0x41911d++){const _0x16bd00=_0x309659[_0x5588f9]['markersEnd'][_0x41911d];if(!_0x550ce8['has'](_0x16bd00))continue;const {group:_0x2843c8,type:_0x50fd8e}=_0x130747(_0x16bd00);if('revision-suggestion'!=_0x2843c8||'insertion'!=_0x50fd8e&&'deletion'!=_0x50fd8e)continue;_0x309659[_0x5588f9]['markersEnd']['splice'](_0x41911d,0x1),_0x41911d--;const _0x26aecb=_0x36a0b5['findIndex'](_0x430984=>_0x430984['name']==_0x16bd00);_0x26aecb>-0x1&&_0x36a0b5['splice'](_0x26aecb,0x1);}}function _0x130747(_0x46032e){const _0x14fd3d=_0x46032e['split'](':');return{'group':_0x14fd3d[0x0],'type':_0x14fd3d[0x1],'subType':_0x14fd3d['length']>=0x5?_0x14fd3d[0x2]:null,'id':_0x14fd3d['length']<0x5?_0x14fd3d[0x2]:_0x14fd3d[0x3],'authorId':_0x14fd3d['length']<0x5?_0x14fd3d[0x3]:_0x14fd3d[0x4],'markerCount':0x6==_0x14fd3d['length']?_0x14fd3d[0x5]:null};}function _0x2047f2(_0x392522){for(let _0xd3e5fe=0x0;_0xd3e5fe<_0x36a0b5['length'];_0xd3e5fe++){if(_0x392522['isAdded']&&'insertion'==_0x36a0b5[_0xd3e5fe]['type'])return _0x392522['isAddSuggestion']=_0x36a0b5[_0xd3e5fe],void delete _0x392522['isAdded'];if(!_0x392522['isAdded']&&!_0x392522['isRemoved']&&'deletion'==_0x36a0b5[_0xd3e5fe]['type'])return void(_0x392522['isRemoveSuggestion']=_0x36a0b5[_0xd3e5fe]);}}}['_setDistance'](_0x5b98f8,_0x1dbafc){let _0x569fd9=0x0,_0x2bbef0=!0x1;const _0xb8d130=new Map();for(const _0x1e6579 of _0x5b98f8)_0x1e6579[_0x1dbafc]?_0x2bbef0&&(_0x569fd9++,_0x2bbef0=!0x1):(_0x569fd9++,_0x2bbef0=!0x0),_0xb8d130['set'](_0x1e6579['id'],_0x569fd9);for(let _0x26e0cd=0x0;_0x26e0cd<_0x5b98f8['length'];_0x26e0cd++){if('isRemoved'==_0x1dbafc&&_0x5b98f8[_0x26e0cd]['isAdded']||'isAdded'==_0x1dbafc&&_0x5b98f8[_0x26e0cd]['isRemoved'])continue;if('text'==_0x5b98f8[_0x26e0cd]['type']){_0x5b98f8[_0x26e0cd]['distance']=0x0;continue;}const _0x177e2e=_0xb8d130['get'](_0x5b98f8[_0x26e0cd]['pairId']),_0x7e0f8b=_0xb8d130['get'](_0x5b98f8[_0x26e0cd]['id']);_0x5b98f8[_0x26e0cd]['distance']=_0x177e2e-_0x7e0f8b;}}['_getRevisionsRange'](_0x5ee092,_0x591141,_0xf2c59a=!0x1){const _0x4bfd4a=[];let _0xaa258=this['repository']['getIndex'](_0x5ee092),_0x4dfadb=this['repository']['getIndex'](_0x591141);for(-0x1==_0x4dfadb&&(_0x4dfadb=this['repository']['_revisions']['length'],_0xf2c59a=!0x1);_0xaa258<_0x4dfadb;)_0x4bfd4a['push'](this['repository']['getRevision'](_0xaa258)),_0xaa258++;return _0xf2c59a&&_0x4bfd4a['push'](this['repository']['getRevision'](_0xaa258)),_0x4bfd4a;}['_threeWayMerge'](_0x4e1fd9,_0x46cb04,_0x17c790,_0xd516c2){const _0x51e4c2=this['editor']['model']['schema'];let _0x27383f=_0x46cb04;for(;_0x4e1fd9[_0x27383f]&&_0x4e1fd9[_0x27383f]['isAdded'];)_0x27383f++;let _0x376b87=_0xd516c2;for(;_0x17c790[_0x376b87]&&_0x17c790[_0x376b87]['isRemoved'];)_0x376b87++;_0xbb4c8c(_0x4e1fd9,_0x46cb04,_0x27383f),_0xbb4c8c(_0x17c790,_0xd516c2,_0x376b87);const _0x4ff085=_0x17c790['slice'](_0xd516c2,_0x376b87)['concat'](_0x4e1fd9['slice'](_0x46cb04,_0x27383f));return _0x4ff085['sort']((_0x545a1c,_0x203860)=>_0x545a1c['side']!=_0x203860['side']?_0x545a1c['side']-_0x203860['side']:_0x545a1c['level']!=_0x203860['level']?_0x545a1c['level']-_0x203860['level']:_0x545a1c['distance']!=_0x203860['distance']?_0x203860['distance']-_0x545a1c['distance']:!!_0x545a1c['isAdded']!=!!_0x203860['isAdded']?-0x1==_0x545a1c['side']||0x0==_0x545a1c['side']?_0x545a1c['isAdded']?-0x1:0x1:_0x545a1c['isAdded']?0x1:-0x1:_0x545a1c['index']-_0x203860['index']),{'commonTape':_0x4ff085,'iEnd':_0x27383f,'jEnd':_0x376b87};function _0xbb4c8c(_0x3dc23d,_0x5ee800,_0x52a9e3){let _0x567a36=-0x1,_0x117895=Number['POSITIVE_INFINITY'],_0x547874=!0x0;for(let _0x562e8e=_0x5ee800;_0x562e8e<_0x52a9e3;_0x562e8e++)if(_0x51e4c2['isInline'](_0x3dc23d[_0x562e8e]['item'])||(_0x547874=!0x1),_0x3dc23d[_0x562e8e]['item']['startIndex']<_0x5ee800&&(_0x567a36=_0x562e8e),_0x3dc23d[_0x562e8e]['item']['endIndex']>=_0x52a9e3){_0x117895=_0x562e8e;break;}_0x547874&&(_0x567a36=_0x52a9e3-0x1);for(let _0x520b7e=_0x5ee800;_0x520b7e<_0x52a9e3;_0x520b7e++)_0x3dc23d[_0x520b7e]['side']=_0x520b7e<=_0x567a36?-0x1:_0x520b7e<_0x117895?0x0:0x1,_0x3dc23d[_0x520b7e]['index']=_0x520b7e;let _0x2883d7=0x0;for(let _0x194061=_0x5ee800;_0x194061<=_0x567a36;_0x194061++)0x0==_0x3dc23d[_0x194061]['distance']?_0x3dc23d[_0x194061]['level']=_0x2883d7:(_0x2883d7++,_0x3dc23d[_0x194061]['level']=_0x2883d7,_0x2883d7++);for(let _0x5d4792=_0x5ee800;_0x5d4792<_0x52a9e3;_0x5d4792++)0x0==_0x3dc23d[_0x5d4792]['side']&&(_0x3dc23d[_0x5d4792]['level']=_0x2883d7);_0x2883d7=0x0;for(let _0x476292=_0x52a9e3-0x1;_0x476292>=_0x117895;_0x476292--)0x0==_0x3dc23d[_0x476292]['distance']?_0x3dc23d[_0x476292]['level']=_0x2883d7:(_0x2883d7--,_0x3dc23d[_0x476292]['level']=_0x2883d7,_0x2883d7--);}}['_fixObsoleteTags'](_0x8dd588){const _0x2fb7a2=new Map(),_0x43846e=this['editor']['model']['schema'];for(let _0x40aa12=0x1;_0x40aa12<_0x8dd588['length'];_0x40aa12++){let _0x2f0d16,_0x3d9408,_0x5bd542;const _0x1a9546=_0x8dd588[_0x40aa12],_0x27962b=_0x8dd588[_0x40aa12-0x1];if('text'==_0x1a9546['type'])continue;if(_0x1a9546['type']!=_0x27962b['type'])continue;if(!_0x43846e['isBlock'](_0x27962b['item'])||_0x43846e['isLimit'](_0x27962b['item']))continue;if(!_0x43846e['isBlock'](_0x1a9546['item'])||_0x43846e['isLimit'](_0x1a9546['item']))continue;if((_0x8dd588[_0x40aa12]['isAdded']||_0x8dd588[_0x40aa12]['isAddSuggestion'])&&_0x8dd588[_0x40aa12-0x1]['isRemoved'])_0x2f0d16=_0x8dd588[_0x40aa12],_0x3d9408=_0x8dd588[_0x40aa12-0x1],_0x5bd542=_0x40aa12-0x1;else{if(!_0x8dd588[_0x40aa12]['isRemoved']||!_0x8dd588[_0x40aa12-0x1]['isAdded']&&!_0x8dd588[_0x40aa12-0x1]['isAddSuggestion'])continue;_0x2f0d16=_0x8dd588[_0x40aa12-0x1],_0x3d9408=_0x8dd588[_0x40aa12],_0x5bd542=_0x40aa12;}const _0x3333a8=_0x2f0d16['level']==_0x3d9408['level'],_0x1d63ab=Math['abs'](_0x2f0d16['level'])<Math['abs'](_0x3d9408['level'])&&0x0==_0x3d9408['distance'];(_0x3333a8||_0x1d63ab)&&(_0x2fb7a2['set'](_0x3d9408['id'],_0x2f0d16['id']),_0x8dd588['splice'](_0x5bd542,0x1),_0x40aa12--,_0x2f0d16['isAdded']=!0x1);}for(let _0x2068e8=0x0;_0x2068e8<_0x8dd588['length'];_0x2068e8++)_0x2fb7a2['has'](_0x8dd588[_0x2068e8]['pairId'])&&(_0x8dd588[_0x2068e8]['pairId']=_0x2fb7a2['get'](_0x8dd588[_0x2068e8]['pairId']));}['_removeMissingPairs'](_0x45f34f){const _0x3a3224=new Set(_0x45f34f['map'](_0x5c3796=>_0x5c3796['id']));for(let _0x54a6ec=0x0;_0x54a6ec<_0x45f34f['length'];_0x54a6ec++)_0x3a3224['has'](_0x45f34f[_0x54a6ec]['pairId'])||0x0==_0x45f34f[_0x54a6ec]['distance']||(_0x45f34f[_0x54a6ec]['isIncorrect']=!0x0);return _0x45f34f['filter'](_0x30a033=>!_0x30a033['isIncorrect']);}['_markMismatchedRemovedTags'](_0xa0599a){const _0x211fcc=new Set();for(let _0x5761d9=0x0;_0x5761d9<_0xa0599a['length'];_0x5761d9++){if(_0x211fcc['has'](_0xa0599a[_0x5761d9]['id'])&&_0xa0599a[_0x5761d9]['isRemoved']&&(_0xa0599a[_0x5761d9]['isIncorrect']=!0x0),_0xa0599a[_0x5761d9]['isIncorrect'])continue;if(0x0==_0xa0599a[_0x5761d9]['distance'])continue;if('elementStart'!=_0xa0599a[_0x5761d9]['type'])continue;if(null==_0xa0599a[_0x5761d9]['pairId'])continue;let _0x5e9c02=_0x5761d9+0x1,_0x1c9abc=0x0;for(;_0xa0599a[_0x5e9c02]['id']!=_0xa0599a[_0x5761d9]['pairId'];)'elementStart'==_0xa0599a[_0x5e9c02]['type']?_0x1c9abc++:'elementEnd'==_0xa0599a[_0x5e9c02]['type']&&_0x1c9abc--,_0x5e9c02++;if(0x0!=_0x1c9abc){if(_0xa0599a[_0x5761d9]['isRemoved'])_0xa0599a[_0x5761d9]['isIncorrect']=!0x0;else{for(;_0x5e9c02!=_0x5761d9;)_0xa0599a[_0x5e9c02]['isRemoved']&&0x0!=_0xa0599a[_0x5e9c02]['distance']&&(_0xa0599a[_0x5e9c02]['isIncorrect']=!0x0,_0x211fcc['add'](_0xa0599a[_0x5e9c02]['pairId'])),_0x5e9c02--;}}}return _0xa0599a['filter'](_0x348913=>!_0x348913['isIncorrect']);}['_removeUnsupportedChanges'](_0x1da93d){const _0x112211=this['editor']['model']['schema'];for(let _0x11b8b1=0x0;_0x11b8b1<_0x1da93d['length'];_0x11b8b1++){if(!(_0x1da93d[_0x11b8b1]['isAdded']||_0x1da93d[_0x11b8b1]['isAddSuggestion']||_0x1da93d[_0x11b8b1]['isRemoved']||_0x1da93d[_0x11b8b1]['isRemoveSuggestion']))continue;if(0x0==_0x1da93d[_0x11b8b1]['distance'])continue;const _0x2125bf=_0x1da93d[_0x11b8b1]['item'];_0x112211['isBlock'](_0x2125bf)||_0x112211['isLimit'](_0x2125bf)||(_0x1da93d[_0x11b8b1]['isAdded']&&delete _0x1da93d[_0x11b8b1]['isAdded'],_0x1da93d[_0x11b8b1]['isAddSuggestion']&&delete _0x1da93d[_0x11b8b1]['isAddSuggestion'],_0x1da93d[_0x11b8b1]['isRemoveSuggestion']&&delete _0x1da93d[_0x11b8b1]['isRemoveSuggestion'],_0x1da93d[_0x11b8b1]['isRemoved']&&(_0x1da93d[_0x11b8b1]['isIncorrect']=!0x0));}return _0x1da93d['filter'](_0x283a35=>!_0x283a35['isIncorrect']);}['_makeModelFromTape'](_0x50bd79,_0x23f669,_0x47db64){const _0x5c6fdf=new vt(),_0x5a53dc=[],_0x54f5f5=new Map(),_0x2a362a=this['editor']['model'],_0x161ac9=_0x2a362a['schema'],_0x455ffa=[_0x5c6fdf],_0x359311={},_0x2dbb3b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x44b47e=null;const _0x5dae8c=[0x0];for(let _0x10d8cc=0x0;_0x10d8cc<_0x50bd79['length'];_0x10d8cc++)if('elementStart'===_0x50bd79[_0x10d8cc]['type']){_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c);const _0x1d35d4=new ut(_0x50bd79[_0x10d8cc]['item']['name'],_0x50bd79[_0x10d8cc]['item']['getAttributes']());_0x455ffa[0x0]['_appendChild'](_0x1d35d4),_0x5dae8c['push'](0x0),_0x455ffa['unshift'](_0x1d35d4),_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c);}else'elementEnd'===_0x50bd79[_0x10d8cc]['type']?(_0x455ffa['shift'](),_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c),_0x5dae8c['pop'](),_0x5dae8c[_0x5dae8c['length']-0x1]++,_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c)):(_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c),_0x44b47e?_0x44b47e['_data']+=_0x50bd79[_0x10d8cc]['item']['data']:_0x44b47e=new gt(_0x50bd79[_0x10d8cc]['item']['data'],_0x50bd79[_0x10d8cc]['item']['getAttributes']()),_0x50bd79[_0x10d8cc+0x1]&&'text'===_0x50bd79[_0x10d8cc+0x1]['type']&&_0x249e4c(_0x44b47e,_0x50bd79[_0x10d8cc+0x1]['item'])||(_0x455ffa[0x0]['_appendChild'](_0x44b47e),_0x44b47e=null),_0x5dae8c[_0x5dae8c['length']-0x1]+=_0x50bd79[_0x10d8cc]['item']['offsetSize'],_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c));for(let _0x9fc742=0x0;_0x9fc742<_0x50bd79['length'];_0x9fc742++){const _0x43d1d2=_0x50bd79[_0x9fc742]['previousPosition'],_0x21a075=_0x50bd79[_0x9fc742]['nextPosition'];for(const _0x32fddb of _0x50bd79[_0x9fc742]['markersStart'])_0x54f5f5['set'](_0x32fddb,{'start':_0x43d1d2,'end':null});_0x1c3a3f('isRemoveSuggestion',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isAddSuggestion',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isRemoved',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isAdded',_0x9fc742,_0x43d1d2,_0x21a075);for(const _0x5e7d9d of _0x50bd79[_0x9fc742]['markersEnd']){const _0x588057=_0x54f5f5['get'](_0x5e7d9d);_0x588057?_0x588057['end']=_0x21a075:_0x54f5f5['set'](_0x5e7d9d,{'start':_0x21a075,'end':_0x21a075});}}for(const [_0x445b73,_0x4e26a9]of _0x54f5f5){const _0x59c31c=this['editor']['model']['createRange'](_0x4e26a9['start'],_0x4e26a9['end']);_0x5c6fdf['markers']['set'](_0x445b73,_0x59c31c);}return _0x5a53dc['sort']((_0x55ed25,_0x4bf936)=>{const _0x1709b0=_0x5c6fdf['markers']['get']('revision:'+_0x55ed25['id']),_0x38117d=_0x5c6fdf['markers']['get']('revision:'+_0x4bf936['id']);return _0x1709b0['start']['isBefore'](_0x38117d['start'])?-0x1:_0x1709b0['start']['isAfter'](_0x38117d['start'])?0x1:_0x1709b0['end']['isBefore'](_0x38117d['end'])?-0x1:_0x1709b0['end']['isAfter'](_0x38117d['end'])?0x1:'add'===_0x55ed25['type']?-0x1:0x1;}),{'root':_0x5c6fdf,'changes':_0x5a53dc};function _0x1c3a3f(_0x57d29b,_0x11a794,_0x80a849,_0x3157bc){const _0x45b704=!!_0x50bd79[_0x11a794][_0x57d29b],_0x222c3f=_0x45b704?_0x50bd79[_0x11a794][_0x57d29b]['userId']:null,_0x323896=_0x11a794===_0x50bd79['length']-0x1,_0x4ee7b0=_0x2dbb3b[_0x57d29b][0x0],_0x588fc6=_0x161ac9['isObject'](_0x50bd79[_0x11a794]['item']);!_0x359311[_0x57d29b]&&_0x45b704?_0x359311[_0x57d29b]={'start':_0x80a849,'tapeItem':_0x50bd79[_0x11a794],'userId':_0x222c3f,'type':_0x57d29b}:_0x359311[_0x57d29b]&&!_0x45b704?(_0x359311[_0x57d29b]['end']=_0x80a849,_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]=null):_0x359311[_0x57d29b]&&_0x45b704&&_0x359311[_0x57d29b]['userId']!==_0x222c3f&&(_0x359311[_0x57d29b]['end']=_0x80a849,_0x4ee7b0&&_0x4ee7b0['userId']===_0x359311[_0x57d29b]['userId']||_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]={'start':_0x80a849,'tapeItem':_0x50bd79[_0x11a794],'userId':_0x222c3f,'type':_0x57d29b}),_0x359311[_0x57d29b]&&_0x588fc6&&('elementStart'!==_0x50bd79[_0x11a794]['type']||_0x4ee7b0&&_0x4ee7b0['userId']===_0x222c3f||_0x2dbb3b[_0x57d29b]['unshift']({'userId':_0x222c3f,'object':_0x50bd79[_0x11a794]['item'],'change':_0x359311[_0x57d29b]}),'elementEnd'===_0x50bd79[_0x11a794]['type']&&_0x4ee7b0&&_0x4ee7b0['object']===_0x50bd79[_0x11a794]['item']&&(_0x2dbb3b[_0x57d29b]['shift'](),_0x359311[_0x57d29b]=_0x4ee7b0['change'])),_0x359311[_0x57d29b]&&_0x323896&&(_0x359311[_0x57d29b]['end']=_0x3157bc,_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]=null);}function _0x47b695({start:_0x44d271,end:_0x2361c3,tapeItem:_0x557265,userId:_0xa5a32e,type:_0x32cf01}){const _0x1715fe=_0x557265['item'],_0x78575f=_0x2a362a['schema']['isBlock'](_0x1715fe)&&!_0x2a362a['schema']['isLimit'](_0x1715fe),_0x7f851e=_0x44d271['nodeAfter']==_0x2361c3['parent']&&_0x2361c3['isAtStart'];if(_0x78575f&&_0x7f851e)return;const _0x3b1aa7=_0x2a362a['createRange'](_0x44d271,_0x2361c3),_0x20cc5a=_0x23f669['get'](_0xa5a32e),_0x47cd5f=new r({'author':_0x20cc5a,'type':'isAdded'==_0x32cf01||'isAddSuggestion'==_0x32cf01?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x32cf01||'isRemoveSuggestion'==_0x32cf01},'createdAt':new Date(),'rootName':_0x47db64});_0x5a53dc['push'](_0x47cd5f),_0x5c6fdf['markers']['set']('revision:'+_0x47cd5f['id'],_0x3b1aa7);}function _0x249e4c(_0xa5061b,_0x4632cb){const _0x2e21c9=_0xa5061b['getAttributes'](),_0xf0115a=_0x4632cb['getAttributes']();for(const _0x5153ac of _0x2e21c9){if(_0x5153ac[0x1]!==_0x4632cb['getAttribute'](_0x5153ac[0x0]))return!0x1;_0xf0115a['next']();}return _0xf0115a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x341a73=>{const _0x16e80b=_0x341a73['markerName']['split'](':')[0x1],_0x5841f9=this['_getChangeFromId'](_0x16e80b);if(!_0x5841f9)return null;const _0x203c45='add'==_0x5841f9['type']?'insertion':'deletion',_0x37b19f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x203c45];return _0x5841f9['data']['isSuggestion']&&_0x37b19f['push']('ck-suggestion-marker-'+_0x203c45+'-new'),this['activeChange']==_0x5841f9&&_0x37b19f['push']('ck-suggestion-marker--active'),{'classes':_0x37b19f,'attributes':{'data-change-id':_0x16e80b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x94fd4b=>{_0x94fd4b['on']('element:pre',(_0x5875ef,_0x287f1b,_0x27ff5c)=>{const _0xe1c1e3=_0x287f1b['viewItem']['getChild'](0x0);if(!_0xe1c1e3||!_0xe1c1e3['is']('element','code'))return;if(!_0x27ff5c['consumable']['consume'](_0xe1c1e3,{'attributes':['vid_start','vid_end']}))return;const _0x9e3e47=_0x287f1b['modelRange']['start']['nodeAfter'];_0x27ff5c['writer']['setAttribute']('vid_start',_0xe1c1e3['getAttribute']('vid_start'),_0x9e3e47),_0x27ff5c['writer']['setAttribute']('vid_end',_0xe1c1e3['getAttribute']('vid_end'),_0x9e3e47);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2c845b=>{_0x2c845b['on']('element',(_0x294469,_0x5af5bd,_0xb1a5d9)=>{if(!_0xb1a5d9['consumable']['consume'](_0x5af5bd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5af5bd['modelRange']['isCollapsed'])return;const _0x3c7e64=_0x5af5bd['modelRange']['start']['nodeAfter'];_0x3c7e64['hasAttribute']('vid_start')||_0x3c7e64['hasAttribute']('vid')||(_0xb1a5d9['writer']['setAttribute']('vid_start',_0x5af5bd['viewItem']['getAttribute']('vid_start'),_0x3c7e64),_0xb1a5d9['writer']['setAttribute']('vid_end',_0x5af5bd['viewItem']['getAttribute']('vid_end'),_0x3c7e64));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x71033=>_0x71033['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x50087d,[,_0x578bce])=>{['vid_start','vid_end','vid']['includes'](_0x578bce)&&(_0x50087d['return']=!0x0,_0x50087d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29e91c=>{_0x29e91c['on']('attribute:vid',(_0x5cd0b4,_0x5a50b8,_0x43e701)=>{if('\x20'!=_0x5a50b8['item']['data']||_0x5a50b8['item']['parent']['maxOffset']>0x1)return;if(!_0x43e701['consumable']['consume'](_0x5a50b8['item'],_0x5cd0b4['name']))return;const _0x228ce4=_0x43e701['writer'],_0x4eab5c=_0x43e701['mapper']['toViewRange'](_0x5a50b8['range']);_0x228ce4['wrap'](_0x4eab5c,_0x228ce4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x19f373){const _0x177019=_0x19f373['plugins']['get']('RevisionViewer');return(_0x43578a,_0x1c15e9,_0x538183)=>{const _0x3ca7ec=_0x1c15e9['markerName']['split'](':')[0x1],_0x5e5171=_0x177019['_getChangeFromId'](_0x3ca7ec);if(!_0x5e5171)return null;const _0x2efb26='add'==_0x5e5171['type']?'split':'merge';if(!_0x538183['consumable']['test'](_0x1c15e9['markerRange'],_0x43578a['name']))return;const _0x3d6295=_0x1c15e9['markerRange']['getWalker'](),_0x281d03=_0x1c15e9['markerRange']['start'],_0x667745=_0x19f373['model']['schema'];let _0x1541c1=null,_0xf250bb=null,_0x5e99cd=!0x1,_0x819a16=!0x1;for(const _0x3de470 of _0x3d6295){const _0x2fa8ec=_0x3de470['item'];_0x5e99cd=_0x5e99cd||_0x667745['isContent'](_0x2fa8ec);const _0x1906f9=_0x538183['mapper']['toViewElement'](_0x2fa8ec);if(_0x1906f9&&_0x1906f9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3de470['type']&&(_0x667745['isBlock'](_0x2fa8ec)&&!_0x667745['isLimit'](_0x2fa8ec)&&(_0x2fa8ec['nextSibling']||_0x281d03['isAtEnd']?_0x1541c1&&_0x1541c1['parent']==_0x2fa8ec||(_0x1541c1=_0x2fa8ec,_0x3d0009(_0x3de470['previousPosition']),_0x819a16=!0x0):_0xf250bb=_0xf250bb||_0x3de470['previousPosition']));}function _0x3d0009(_0x351acb){const _0x499ac0=_0x538183['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2efb26}),_0x305728=_0x538183['mapper']['toViewPosition'](_0x351acb);_0x5e5171['data']['isSuggestion']&&_0x538183['writer']['addClass']('ck-suggestion-marker-'+_0x2efb26+'-new',_0x499ac0),_0x177019['activeChange']==_0x5e5171&&_0x538183['writer']['addClass']('ck-suggestion-marker--active',_0x499ac0),_0x538183['writer']['insert'](_0x305728,_0x499ac0),_0x538183['mapper']['bindElementToMarker'](_0x499ac0,_0x1c15e9['markerName']);}_0x5e99cd||_0x819a16||!_0xf250bb||_0x3d0009(_0xf250bb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x440d62,_0x4b4534,_0x190f98)=>{const _0x5f1657=_0x190f98['mapper']['markerNameToElements'](_0x4b4534['markerName']);if(_0x5f1657){for(const _0x44e799 of _0x5f1657)(_0x44e799['hasClass']('ck-suggestion-marker-split')||_0x44e799['hasClass']('ck-suggestion-marker-merge'))&&(_0x190f98['mapper']['unbindElementFromMarkerName'](_0x44e799,_0x4b4534['markerName']),_0x190f98['writer']['remove'](_0x44e799));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x412232,_0x5b7ad5,_0x1ab7f8)=>{const _0x42e554=_0x5b7ad5['markerName']['split'](':')[0x1],_0x2951bc=this['_getChangeFromId'](_0x42e554);if(!_0x2951bc)return null;const _0x4d12ec='add'==_0x2951bc['type']?'split':'merge';if(_0x1ab7f8['consumable']['test'](_0x5b7ad5['markerRange'],_0x412232['name']))for(const _0x465368 of _0x5b7ad5['markerRange']['getItems']()){if(!_0x465368['is']('element','softBreak'))continue;const _0x33e322=_0x1ab7f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d12ec}),_0x2dc420=_0x1ab7f8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x465368));_0x2951bc['data']['isSuggestion']&&_0x1ab7f8['writer']['addClass']('ck-suggestion-marker-'+_0x4d12ec+'-new',_0x33e322),this['activeChange']==_0x2951bc&&_0x1ab7f8['writer']['addClass']('ck-suggestion-marker--active',_0x33e322),_0x1ab7f8['writer']['insert'](_0x2dc420,_0x33e322),_0x1ab7f8['mapper']['bindElementToMarker'](_0x33e322,_0x5b7ad5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x32fb0e=>{for(const _0x363e23 of this['editor']['model']['document']['getRootNames']()){const _0x5bad10=this['editor']['model']['document']['getRoot'](_0x363e23),_0x195d5f=this['editor']['editing']['view']['document']['getRoot'](_0x363e23);if(_0x195d5f){const _0x2d3517=_0x5bad10['getAttribute']('revisionHistoryAttachChange');if(_0x32fb0e['removeAttribute']('data-change-id',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root-add',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root-remove',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root--active',_0x195d5f),_0x2d3517){const _0x5da7df=this['_getChangeFromId'](_0x2d3517);if(!_0x5da7df)return null;_0x32fb0e['setAttribute']('data-change-id',_0x2d3517,_0x195d5f),_0x32fb0e['addClass']('ck-revision-history-root-'+_0x5da7df['type'],_0x195d5f),this['activeChange']==_0x5da7df&&_0x32fb0e['addClass']('ck-revision-history-root--active',_0x195d5f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x152bb7=>'revision-comment:'+_0x152bb7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2fa93b=>'revision-suggestion:'+_0x2fa93b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xcf9b35=>({'name':'suggestion:'+_0xcf9b35,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5b2561=>{const _0x50b95e=_0x5b2561['markerName']['split'](':')[0x1];return'insertion'!=_0x50b95e&&'deletion'!=_0x50b95e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x50b95e]};}}),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',(_0x25342d,_0x3194fb,_0x9f801e)=>{const _0x5ec418=_0x9f801e['mapper']['markerNameToElements'](_0x3194fb['markerName']);if(_0x5ec418){for(const _0x3917ec of _0x5ec418)_0x3917ec['is']('uiElement')&&(_0x9f801e['mapper']['unbindElementFromMarkerName'](_0x3917ec,_0x3194fb['markerName']),_0x9f801e['writer']['remove'](_0x3917ec));}},{'priority':'high'});}['_getChangeFromId'](_0x4ee10a){return this['_changeIdToChange']['get'](_0x4ee10a);}['_getViewForChange'](_0x33c225){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x33c225),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xbcf913,_0xf3eb51,_0x4b9a57,_0x1f158a)=>{_0x1f158a&&this['_balloon']['remove'](_0x1f158a),_0x4b9a57&&(this['_balloon']['add']({'view':_0x4b9a57,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x139512=this['editor']['editing'],_0x15f5e9=this['_getChangeFromId'](_0x4b9a57['changeId']);let _0x53cdf0;if(_0x15f5e9['data']['isOnRoot']){const _0x2eb3da=_0x139512['view']['getDomRoot'](_0x15f5e9['rootName']);_0x53cdf0=Array['from'](_0x2eb3da['getClientRects']());}else{const _0x360944=this['editor']['model']['markers']['get']('revision:'+_0x4b9a57['changeId']);_0x53cdf0=Array['from'](_0x139512['mapper']['markerNameToElements'](_0x360944['name']))['map'](_0x1cbd76=>_0x139512['view']['domConverter']['mapViewToDom'](_0x1cbd76))['map'](_0x3b6c17=>Array['from'](_0x3b6c17['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x53cdf0[0x0];return _0x53cdf0['find'](_0x2ac2f8=>_0x2ac2f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x2ac2f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2ac2f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x2ac2f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x53cdf0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4454d7,_0x3f75cd,_0x42d13d,_0x14aae4)=>{this['activeView']=_0x42d13d?this['_getViewForChange'](_0x42d13d):null,this['editor']['model']['change'](()=>{const _0x4f038b=this['editor']['editing'];_0x14aae4&&(_0x14aae4['data']['isOnRoot']?_0x4f038b['view']['change'](_0x2461dc=>{_0x2461dc['removeClass']('ck-revision-history-root--active',_0x4f038b['view']['document']['getRoot'](_0x14aae4['rootName']));}):_0x4f038b['reconvertMarker']('revision:'+_0x14aae4['id'])),_0x42d13d&&(_0x42d13d['data']['isOnRoot']?_0x4f038b['view']['change'](_0x1893fd=>{_0x1893fd['addClass']('ck-revision-history-root--active',_0x4f038b['view']['document']['getRoot'](_0x42d13d['rootName']));}):_0x4f038b['reconvertMarker']('revision:'+_0x42d13d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37e891,_0x5c0f49)=>{if(this['activeChange'])return;const _0x1fd93e=this['_findChangeIdFromDomTarget'](_0x5c0f49['target']),_0x1c4006=this['_changeIdToChange']['get'](_0x1fd93e);_0x1c4006?(this['_activeViewTarget']={'x':_0x5c0f49['domEvent']['x'],'y':_0x5c0f49['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1c4006)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3b1e05,_0xda1ef9)=>{const _0x48435a=this['_findChangeIdFromDomTarget'](_0xda1ef9['target']),_0x5195dd=this['_changeIdToChange']['get'](_0x48435a);_0x5195dd?(this['_activeViewTarget']={'x':_0xda1ef9['domEvent']['x'],'y':_0xda1ef9['domEvent']['y']},_0x5195dd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5195dd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x538c4c){do{const _0x1148ee=_0x538c4c['getAttribute']('data-change-id');if(_0x1148ee)return _0x1148ee;_0x538c4c=_0x538c4c['parent'];}while(_0x538c4c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd54774=>{for(const _0x590d8f of this['editor']['model']['markers'])_0xd54774['removeMarker'](_0x590d8f);});}}function X(_0x37acbf,_0xfb63a0){return(_0x61d3d6,_0x3bc7ae,_0x4c844b)=>{if(!_0x4c844b['consumable']['test'](_0x3bc7ae['markerRange'],_0x61d3d6['name']))return;const _0x9c4331=_0x3bc7ae['markerRange']['getWalker'](),_0x44370c=_0x3bc7ae['markerRange']['start'],_0x17c8a4=_0x37acbf['model']['schema'];let _0x59106a=null,_0x2c2bb6=null,_0x14eaef=!0x1,_0x5da15f=!0x1;for(const _0x197249 of _0x9c4331){const _0x13e53b=_0x197249['item'];_0x14eaef=_0x14eaef||_0x17c8a4['isContent'](_0x13e53b);const _0x13ae99=_0x4c844b['mapper']['toViewElement'](_0x13e53b);if(_0x13ae99&&_0x13ae99['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x197249['type']&&(_0x17c8a4['isBlock'](_0x13e53b)&&!_0x17c8a4['isLimit'](_0x13e53b)&&(_0x13e53b['nextSibling']||_0x44370c['isAtEnd']?_0x59106a&&_0x59106a['parent']==_0x13e53b||(_0x59106a=_0x13e53b,_0xd15681(_0x197249['previousPosition']),_0x5da15f=!0x0):_0x2c2bb6=_0x2c2bb6||_0x197249['previousPosition']));}function _0xd15681(_0x46757c){const _0x1193d1=_0x4c844b['mapper']['toViewPosition'](_0x46757c),_0x2e1def=_0x4c844b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xfb63a0});_0x4c844b['writer']['insert'](_0x1193d1,_0x2e1def),_0x4c844b['mapper']['bindElementToMarker'](_0x2e1def,_0x3bc7ae['markerName']);}_0x14eaef||_0x5da15f||!_0x2c2bb6||_0xd15681(_0x2c2bb6);};}class mt extends _0x584ec5{constructor(_0xf298d0){super(_0xf298d0);const _0x1bf350=_0xf298d0['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1bf350,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1bf350,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4d8397=this['editor'],_0x35669d=_0x4d8397['plugins']['get'](m),_0x41b2d4=_0x35669d['isReady']?_0x35669d['diff']['newRevisionId']:null;_0x4d8397['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x41b2d4);}['refresh'](){const {isReady:_0x2fd732,isEnabled:_0x472f20,repository:_0x59c9f8,diff:_0xd35c9b}=this['editor']['plugins']['get'](m),_0x2c5efe=_0xd35c9b&&_0x59c9f8['getLaterVisibleRevision'](_0xd35c9b['newRevisionId']);this['isEnabled']=_0x2fd732&&_0x472f20&&Boolean(_0x2c5efe);}}class wt extends _0x584ec5{['_step'];constructor(_0x16feac,{direction:_0x2e9f3}){super(_0x16feac);const _0x37f302=_0x16feac['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2e9f3?0x1:-0x1,this['listenTo'](_0x37f302,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37f302,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37f302,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x49a496=this['editor'],_0xf114df=_0x49a496['plugins']['get'](m),{isNavigationMode:_0x2704a0,currentChangeNumber:_0x373035}=_0xf114df;let _0x476cc2;if(_0xf114df['activeChange']=_0x2704a0?_0xf114df['diff']['changes']['get'](_0x373035+this['_step']):_0xf114df['diff']['changes']['first'],_0xf114df['activeChange']['data']['isOnRoot'])_0x476cc2=_0x49a496['editing']['view']['getDomRoot'](_0xf114df['activeChange']['rootName']);else{const _0x3853cb=_0x49a496['model']['markers']['get']('revision:'+_0xf114df['activeChange']['id']);_0x476cc2=_0x1c65ec(_0x49a496['editing'],_0x3853cb);}_0x26d94d({'target':_0x476cc2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x510de6,currentChangeNumber:_0x4788b9,numberOfChanges:_0x31a04c,isReady:_0x91ba63,isEnabled:_0x1ba429}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1ba429&&_0x91ba63&&_0x31a04c)&&(!_0x510de6||(0x1===this['_step']?_0x4788b9<_0x31a04c-0x1:_0x4788b9>0x0));}}class li extends ts{constructor(_0x4ecc37){super(_0x4ecc37);const _0x1a4deb=this['bindTemplate'],_0x28aaf8=new te(_0x4ecc37),_0x4baa98=new te(_0x4ecc37);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',(_0x97ca6,_0x5ef497)=>_0x97ca6&&_0x5ef497>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1df17b,_0xcf434,_0x30bc35,_0x387d13)=>{if(!_0x1df17b)return g(_0x4ecc37,'Loading...');if(!_0x30bc35)return g(_0x4ecc37,'No\x20changes');const _0x1b8cea=g(_0x4ecc37,'NUMBER_OF_CHANGES',_0x30bc35);return _0x387d13?g(_0x4ecc37,'X_OF_Y_CHANGES',[_0xcf434+0x1,_0x30bc35]):_0x1b8cea;}),_0x28aaf8['set']({'label':g(_0x4ecc37,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x42210d}),_0x4baa98['set']({'label':g(_0x4ecc37,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x28927a}),_0x28aaf8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4baa98['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x28aaf8['on']('execute',()=>this['fire']('execute','backward')),_0x4baa98['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',_0x1a4deb['if']('_isStatusLabelVisible','ck-hidden',_0x3d4bc4=>!_0x3d4bc4)]},'children':[{'text':_0x1a4deb['to']('isNavigationMode',_0x5e5002=>_0x5e5002?g(_0x4ecc37,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4ecc37,'Total')+':\x20')}]},{'text':_0x1a4deb['to']('_statusText')}]},new _0x108164(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x28aaf8,_0x4baa98]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x58fda8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46a0dc=this['editor']['editing']['view'];_0x46a0dc['change'](_0x4a6450=>{for(const _0x464408 of _0x46a0dc['document']['roots'])_0x4a6450['addClass'](le,_0x464408);});}['hide'](){const _0x245d97=this['editor']['editing']['view'];_0x245d97['change'](_0x2c4071=>{for(const _0x16fe17 of _0x245d97['document']['roots'])_0x2c4071['removeClass'](le,_0x16fe17);});}}class R extends _0x58fda8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x25c8e0=this['editor'],_0xd4fc8a=_0x25c8e0['plugins']['get'](m),_0x355dca=_0x25c8e0['plugins']['get'](ge);_0x25c8e0['ui']['componentFactory']['add']('exitToEditing',_0x2b5103=>{const _0x409399=new te(_0x2b5103);return _0x409399['set']({'label':g(_0x2b5103,'Back\x20to\x20editing'),'icon':_0x4b2128,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x409399,'execute',()=>{_0x25c8e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x409399;}),_0x25c8e0['ui']['componentFactory']['add']('restoreRevision',_0x2c80ef=>{const _0x585ffb=new te(_0x2c80ef);return _0x585ffb['set']({'label':g(_0x2c80ef,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x585ffb['bind']('isEnabled')['to'](_0x25c8e0['commands']['get']('restoreRevision')),this['listenTo'](_0x585ffb,'execute',()=>_0x25c8e0['execute']('restoreRevision')),_0x585ffb;}),_0x25c8e0['ui']['componentFactory']['add']('changesNavigation',_0x160e95=>{const _0x1f6aef=new li(_0x160e95),_0x5451dc=_0x25c8e0['commands']['get']('showPreviousChange'),_0xac2497=_0x25c8e0['commands']['get']('showNextChange');return _0x1f6aef['bind']('isBackwardNavigationEnabled')['to'](_0x5451dc,'isEnabled'),_0x1f6aef['bind']('isForwardNavigationEnabled')['to'](_0xac2497,'isEnabled'),_0x1f6aef['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xd4fc8a),this['listenTo'](_0x1f6aef,'execute',(_0x57ab6b,_0x4186c6)=>{_0x25c8e0['execute']('forward'===_0x4186c6?'showNextChange':'showPreviousChange');}),_0x1f6aef;}),_0x355dca['show'](),_0xd4fc8a['on']('change:isReady',(_0x40efbc,_0x271794,_0x814470)=>{_0x814470?_0x355dca['hide']():_0x355dca['show']();});}}class at extends _0x2ad300{['_resizeObserver']=null;constructor(_0x35aa19,_0x2b4ee5){super(_0x35aa19,_0x2b4ee5);const _0x33e42c=this['bindTemplate'];this['set']({'label':g(_0x35aa19,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x35aa19,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x33e42c['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 _0x49543a=this['fieldView']['element'];this['_tooltipString']=_0x49543a['scrollWidth']>_0x49543a['clientWidth']&&_0x49543a['value']||'';}}class oi extends ts{constructor(_0x76471e,_0x441d3a,_0x722cd9){super(_0x76471e);const _0x352dfe=new _0x4d0aac();_0x352dfe['set']({'content':_0x30d279,'viewBox':'0\x200\x2011\x2010'});const _0x591dec=['ck','ck-revision-history-sidebar__revision-author'];_0x722cd9&&_0x591dec['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5074bc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x76471e,_0x722cd9?'Revision\x20creator':'Revision\x20author')},'children':[_0x352dfe,_0x441d3a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x591dec},'children':_0x5074bc});}}function ai(_0x3f0411,_0x4de298){const _0x10c63b=_0x3f0411['bindTemplate'],_0x1cf763=_0x3f0411['locale'],_0x50eebd=_0x4da7ef(_0x1cf763);_0x50eebd['panelPosition']='sw';const _0x355b6e=function(_0x30d865,_0x390e82){const _0x17782a=function(_0x5ab534,_0x478c62){const _0x5ae690=_0x5ab534['locale'],_0x4ce7b6={'Compare\x20against\x20selected':g(_0x5ae690,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5ae690,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5ae690,'Restore\x20this\x20revision')};return _0x478c62['map'](_0x25df7a=>{const _0x38713c=_0x4ce7b6[_0x25df7a['name']];return _0x38713c&&_0x38713c!==_0x25df7a['name']&&(_0x25df7a['name']=_0x38713c),_0x25df7a;});}(_0x30d865,_0x390e82),_0x512f18=new _0x49b051();for(const _0x1b8c13 of _0x17782a){const _0x528269={'type':'button','model':new to({'label':_0x1b8c13['name'],'class':_0x1b8c13['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b8c13['action']})};_0x528269['model']['bind']('isEnabled')['to'](_0x30d865,'isActionsDropdownOpen',_0x1a19db=>'function'!=typeof _0x1b8c13['isEnabled']||(!_0x1a19db||_0x1b8c13['isEnabled'](_0x30d865))),_0x512f18['add'](_0x528269);}return _0x512f18;}(_0x3f0411,_0x4de298);return _0x3f0411['bind']('isActionsDropdownOpen')['to'](_0x50eebd,'isOpen'),_0x50eebd['buttonView']['set']({'label':g(_0x1cf763,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ea0ad}),_0x50eebd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x10c63b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x10c63b['to'](_0x713411=>_0x713411['stopPropagation']())}}),_0x50eebd['on']('execute',_0xd7a29e=>{_0x3f0411['isReady']&&'function'==typeof _0xd7a29e['source']['_action']&&_0xd7a29e['source']['_action'](_0x3f0411);}),_0x3c3382(_0x50eebd,_0x355b6e,{'role':'menu'}),_0x50eebd['listenTo'](_0x3f0411,'change:isActionsDropdownOpen',(_0x3ddfdc,_0x38b963,_0x1efd7c)=>{if(_0x1efd7c)for(const _0x50dd53 of _0x50eebd['listView']['items']){const _0x35b309=_0x50dd53['children']['first'],_0x53ff8f=_0x4de298['find'](_0x47962e=>_0x47962e['action']===_0x35b309['_action'])['isVisible'];_0x50dd53['isVisible']=void 0x0===_0x53ff8f||_0x53ff8f(_0x3f0411);}}),_0x50eebd;}class si extends/* #__PURE__ -- @preserve */
26
- _0x2ad390(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x383b83,_0xd5f20f,_0x4868b0,_0x328ab2){super(_0x383b83);const _0x183f1c=this['bindTemplate'],_0x1885ab=function(_0x25cbe5,_0x9d864a){const _0x5dcbcc=Array['from'](_0x9d864a['authors'])['filter'](_0x2faff=>_0x2faff!=_0x9d864a['creator']);return _0x9d864a['creator']&&_0x5dcbcc['unshift'](_0x9d864a['creator']),_0x5dcbcc['map'](_0x810ece=>new oi(_0x25cbe5,_0x810ece,_0x810ece==_0x9d864a['creator']));}(_0x383b83,_0xd5f20f);this['id']=_0xd5f20f['id'],this['_revision']=_0xd5f20f,this['_requireRevisionName']=_0x328ab2,this['bind']('name','createdAt')['to'](_0xd5f20f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x297f5f=>{return _0x5b3006=_0x383b83['uiLanguage'],(_0x32ab21=_0x297f5f)['toLocaleDateString'](_0x5b3006,{'month':'long','day':'numeric'})+',\x20'+_0x32ab21['toLocaleTimeString'](_0x5b3006,{'hour':'numeric','minute':'numeric'});var _0x5b3006,_0x32ab21;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x383b83,_0x25e8fe),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2f057a=>_0x2f057a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3914eb,_0x5ae8df)=>_0x3914eb&&_0x5ae8df),this['revisionActionsView']=_0x4868b0&&_0x4868b0['length']?ai(this,_0x4868b0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x183f1c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x183f1c['if']('isEnabled','ck-disabled',_0x45aa26=>!_0x45aa26),_0x183f1c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x183f1c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x183f1c['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':_0x183f1c['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':_0x1885ab}]},this['revisionActionsView']],'on':{'click':_0x183f1c['to'](_0x4e70fc=>{_0x4e70fc['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2867a9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2867a9,'change',()=>{this['_requireRevisionName']&&!_0x2867a9['value']||this['fire']('setName',{'id':this['id'],'name':_0x2867a9['value']}),_0x2867a9['value']||(_0x2867a9['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(_0x4f2167,_0x4c9288){const _0x20a5bb=_0x339624['fromJSDate'](_0x4f2167)['setLocale'](_0x4c9288),_0x3efe69=_0x339624['local'](),_0x31f485=_0x3efe69['minus']({'days':0x1})['startOf']('day');let _0x2766ac,_0x2c0d0c;return _0x20a5bb['hasSame'](_0x3efe69,'day')?(_0x2766ac=_0x20a5bb['startOf']('day')['toJSDate'](),_0x2c0d0c=_0x20a5bb['toRelativeCalendar']()):_0x20a5bb['hasSame'](_0x31f485,'day')?(_0x2766ac=_0x31f485['toJSDate'](),_0x2c0d0c=_0x20a5bb['toRelativeCalendar']()):_0x20a5bb['hasSame'](_0x3efe69,'week')?(_0x2766ac=_0x20a5bb['startOf']('week')['toJSDate'](),_0x2c0d0c=_0x20a5bb['weekdayLong']||''):_0x20a5bb['hasSame'](_0x3efe69,'year')?(_0x2766ac=_0x20a5bb['startOf']('month')['toJSDate'](),_0x2c0d0c=_0x20a5bb['monthLong']||''):(_0x2766ac=_0x20a5bb['startOf']('year')['toJSDate'](),_0x2c0d0c=String(_0x20a5bb['year'])),{'startDate':_0x2766ac,'localizedPeriodName':_0x2c0d0c};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x44d3b1,_0x4e4b53,_0xb24b19,_0x11fdb1){super(_0x44d3b1);const _0x55c008=ti(_0x4e4b53,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4e4b53,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xb24b19,this['_requireRevisionName']=_0x11fdb1,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':_0x55c008}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4c6104){const _0x3b3c3a=new si(this['locale'],_0x4c6104,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3b3c3a);}['removeRevision'](_0x373d9c){const _0x1d93a3=this['revisionViews']['find'](_0x100144=>_0x100144['id']===_0x373d9c['id']);this['revisionViews']['remove'](_0x1d93a3);}}class cs extends ts{constructor(_0xd4a657){super(_0xd4a657);const _0x259781=new _0x4d0aac();_0x259781['content']=_0x3c02f1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x259781,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xd4a657,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x34be6c,_0x51144a,_0x581513,_0x4fd886){super(_0x34be6c);const _0x372605=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x51144a,this['_revisionActions']=_0x581513,this['_requireRevisionName']=_0x4fd886,this['on']('select',(_0x26d1e3,_0x18a410)=>{this['fire']('revisionSelected',_0x18a410);}),this['on']('setName',(_0x36561d,_0x19b6a7)=>{this['fire']('revisionSetName',_0x19b6a7);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x34be6c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x372605['if']('isEnabled','ck-disabled',_0xe41637=>!_0xe41637)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x34e39e of this['_revisions'])this['_addRevision'](_0x34e39e);this['_revisions']['on']('add',(_0x1c6afe,_0x177943)=>{this['_addRevision'](_0x177943);}),this['_revisions']['on']('remove',(_0x5a7479,_0x1dc72e)=>{this['_removeRevision'](_0x1dc72e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x428a05=>_0x428a05['revisionViews']['map'](_0x452acd=>_0x452acd))['flat']();}['selectRevision'](_0x300c1e){for(const _0x2b5601 of this['revisionViews'])_0x300c1e&&_0x300c1e['id']===_0x2b5601['id']?_0x2b5601['select']():_0x2b5601['deselect']();}['highlightRevisions'](_0x360346){for(const _0x12b90d of this['revisionViews'])_0x360346['some'](({id:_0x4d89e1})=>_0x4d89e1===_0x12b90d['id'])?_0x12b90d['highlight']():_0x12b90d['unhighlight']();}['_addRevision'](_0xf6e111){const _0x3cdd97=ti(_0xf6e111['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x396d5c=this['timePeriodViews']['get'](0x0);_0x396d5c&&_0x396d5c['startDate']['getTime']()===_0x3cdd97['getTime']()||(_0x396d5c=new ei(this['locale'],_0x3cdd97,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x396d5c)),_0x396d5c['addRevision'](_0xf6e111);}['_removeRevision'](_0x238992){const _0x59f0ae=ti(_0x238992['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x59f0ae)['removeRevision'](_0x238992);}['_getTimePeriodViewByStartDate'](_0x1b03fa){return this['timePeriodViews']['find'](_0x4e96d5=>_0x4e96d5['startDate']['getTime']()===_0x1b03fa['getTime']());}}class d extends _0x58fda8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x175e0a,uid as _0x3965a3,Collection as _0x27a842,logWarning as _0x5c4e6d,FocusTracker as _0x586dc1,KeystrokeHandler as _0x34e813,scrollViewportToShowTarget as _0x5a1869,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x36fac0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xe5768f,set as _0x28d1b9,unset as _0x549203,isEqual as _0x32f493}from'es-toolkit/compat';import{Plugin as _0x4be61a,PendingActions as _0x574f1e,Command as _0x5ef1c8,ElementApiMixin as _0x188b0c,Editor as _0x5a5fa3}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b4791,getMarkerDomElement as _0x192f57,ConfirmMixin as ti,sanitizeEditorConfig as _0x3b6f3e}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4fd2d9,ViewAttributeElement as _0x4ef4b6,ViewEmptyElement as _0x3f9e9f,ViewRawElement as _0x19fa37,ViewUIElement as _0x39271f,ViewDocumentFragment as _0xa88be5,ViewText as _0x1cfd9a,ViewElement as _0x48ac15,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 _0x25e4f4,IconChevronUp as _0x4c0517,IconChevronDown as _0xf4b24e,IconUndo as _0x519bc3,IconUser as _0x4e02bb,IconThreeVerticalDots as _0x1a4d34}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x55af15,submitHandler as _0x55bffc,LabeledFieldView as _0x783eff,createLabeledInputText as _0x23e1c3,createDropdown as _0x58a328,ListView as _0x2ea3e0,ListItemView as _0x44422b,ButtonView as te,MenuBarMenuView as _0x321d74,MenuBarMenuListView as _0x2d0b7d,MenuBarMenuListItemView as _0x3ef07d,MenuBarMenuListItemButtonView as _0x54fdf8,ContextualBalloon as _0x2e9d58,ToolbarSeparatorView as _0x4a40bb,IconView as _0x1b53ba,addListToDropdown as _0x3a3b21,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 _0x3c34b4}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x175e0a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2a1403){super(),this['id']=_0x2a1403['id']||_0x3965a3(),this['creator']=_0x2a1403['creator']||null,this['authors']=_0x2a1403['authors']||[],this['diffData']=_0x2a1403['diffData']||null,this['toVersion']=_0x2a1403['toVersion']||0x0,this['fromVersion']=_0x2a1403['fromVersion']||0x0,this['set']('name',_0x2a1403['name']||''),this['set']('createdAt',_0x2a1403['createdAt']||new Date()),this['set']('attributes',_0x2a1403['attributes']||{});}['setName'](_0x357f8f){this['_update']({'name':_0x357f8f});}['setAttribute'](_0xafa154,_0x378937){const _0x1ef244=_0xe5768f(this['attributes']);_0x28d1b9(_0x1ef244,_0xafa154,_0x378937),this['_update']({'attributes':_0x1ef244});}['removeAttribute'](_0x445921){const _0x80ac20=_0xe5768f(this['attributes']);_0x549203(_0x80ac20,_0x445921),this['_update']({'attributes':_0x80ac20});}['_update'](_0xf88c15,_0x1d8970=!0x1){let _0x1255d2=!0x1;const _0x31ccc6={'id':this['id']},_0x3812d4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x263bc8 of _0x3812d4){const _0x427b6b=_0xf88c15[_0x263bc8];void 0x0!==_0x427b6b&&_0x427b6b!==this[_0x263bc8]&&(this[_0x263bc8]=_0x427b6b,_0x31ccc6[_0x263bc8]=_0x427b6b,_0x1255d2=!0x0);}_0x1255d2&&(_0x31ccc6['authors']&&(_0x31ccc6['authorsIds']=_0x31ccc6['authors']['map'](_0x4652fe=>_0x4652fe['id']),delete _0x31ccc6['authors']),this['fire']('_update',_0x31ccc6,_0x1d8970));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x842bff=>_0x842bff['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4be61a{['_revisions'];static get['requires'](){return[_0x1b4791];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x644561){super(_0x644561),this['_revisions']=new _0x27a842();}['afterInit'](){!async function(_0x509d21){const _0x59b064=_0x3926d9([0x58,0x46,0x39,0x4a,0x69,0x6c,0x61,0x70,0x48,0x51,0x31,0x6e,0x44,0x35,0x4f,0x7a,0x36,0x6a,0x62,0x71,0x73,0x32,0x54,0x50,0x42,0x38,0x30,0x68,0x55,0x66,0x47,0x41,0x78,0x64,0x4e,0x5a,0x74,0x34,0x4c,0x6d,0x77,0x72,0x49,0x52,0x43,0x57,0x63,0x53,0x67,0x65,0x6f,0x75,0x79,0x56,0x33,0x4d,0x6b,0x59,0x4b,0x45,0x76,0x37]),_0x46745a=0xeb829,_0x4819c1=0x5bffffcc,_0x45c751=0x5bf89acc^_0x4819c1,_0x23ede5=window[_0x3926d9([0x44,0x61,0x74,0x65])][_0x3926d9([0x6e,0x6f,0x77])](),_0xbaaa7a=_0x509d21[_0x3926d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x210852=new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29ee2a=>{_0xbaaa7a[_0x3926d9([0x6f,0x6e,0x63,0x65])](_0x3926d9([0x72,0x65,0x61,0x64,0x79]),_0x29ee2a);}),_0x1e32d6={[_0x3926d9([0x6b,0x74,0x79])]:_0x3926d9([0x45,0x43]),[_0x3926d9([0x75,0x73,0x65])]:_0x3926d9([0x73,0x69,0x67]),[_0x3926d9([0x63,0x72,0x76])]:_0x3926d9([0x50,0x2d,0x32,0x35,0x36]),[_0x3926d9([0x78])]:_0x3926d9([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]),[_0x3926d9([0x79])]:_0x3926d9([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]),[_0x3926d9([0x61,0x6c,0x67])]:_0x3926d9([0x45,0x53,0x32,0x35,0x36])},_0xdd167e=_0xbaaa7a[_0x3926d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3926d9([0x67,0x65,0x74])](_0x3926d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xde9892(){let _0xdd7582,_0x58677f=null,_0x208bee=null;try{if(_0xdd167e==_0x3926d9([0x47,0x50,0x4c]))return _0x3926d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdd7582=_0x51714c(),!_0xdd7582)return _0x3926d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdd7582[_0x3926d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x208bee=_0x217d2f(_0xdd7582[_0x3926d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdd7582[_0x3926d9([0x6a,0x74,0x69])])),await _0x32d251()?_0x563e04()?_0x562d91()?_0x3926d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cfa8f()?(_0xdd7582[_0x3926d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3926d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58677f=_0x170be0(_0x3926d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdd7582[_0x3926d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3926d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x58677f=_0x170be0(_0x3926d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1710c4()):_0x3926d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3926d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3926d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x162dfb){return _0x3926d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x562d91(){const _0x16497a=[_0x3926d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3926d9([0x74,0x72,0x69,0x61,0x6c])][_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdd7582[_0x3926d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23ede5/0x3e8:0xe10*_0x45c751;return _0xdd7582[_0x3926d9([0x65,0x78,0x70])]<_0x16497a;}function _0x563e04(){const _0x9bdeac=_0xdd7582[_0x3926d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x9bdeac)return!0x1;if(_0x9bdeac[_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3926d9([0x2a])))return!0x0;if(_0x9bdeac[_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3926d9([0x52,0x48])))return!0x0;if(_0x9bdeac[_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3926d9([0x52,0x52,0x48]))){if(_0x4798c9())return!0x0;if(_0x488a75()||_0x296ec3())return!0x0;}return!0x1;}function _0x3cfa8f(){const _0x60cff4=_0xdd7582[_0x3926d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x60cff4||0x0==_0x60cff4[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ccaa4}=new URL(window[_0x3926d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x60cff4[_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ccaa4))return!0x0;const _0xbf400a=_0x2ccaa4[_0x3926d9([0x73,0x70,0x6c,0x69,0x74])](_0x3926d9([0x2e]));return _0x60cff4[_0x3926d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34dde1=>_0x34dde1[_0x3926d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3926d9([0x2a])))[_0x3926d9([0x6d,0x61,0x70])](_0x252419=>_0x252419[_0x3926d9([0x73,0x70,0x6c,0x69,0x74])](_0x3926d9([0x2e])))[_0x3926d9([0x73,0x6f,0x6d,0x65])](_0x4b34aa=>_0xbf400a[_0x3926d9([0x65,0x76,0x65,0x72,0x79])]((_0x217103,_0x28f666)=>_0x4b34aa[_0x28f666]===_0x217103||_0x4b34aa[_0x28f666]===_0x3926d9([0x2a])));}function _0x1710c4(){return _0x58677f&&_0x208bee?new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5079b2,_0x25e7ce)=>{_0x58677f[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x5079b2,_0x25e7ce),_0x208bee[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x16f50b=>{_0x16f50b!=_0x3926d9([0x56,0x61,0x6c,0x69,0x64])&&_0x5079b2(_0x16f50b);},_0x25e7ce);}):_0x58677f||_0x208bee||_0x3926d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x217d2f(_0x1f7eb5,_0x1b2108){return new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27b2c7=>{if(_0x5105ac())return _0x27b2c7(_0x3926d9([0x56,0x61,0x6c,0x69,0x64]));_0xceeb92(),_0xbaaa7a[_0x3926d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3926d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4127df=!0x1;const _0x35dbc3=_0x3965a3();function _0x127e05(_0x2ca969){return!!_0x2ca969&&(typeof _0x2ca969===_0x3926d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ca969===_0x3926d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ca969[_0x3926d9([0x74,0x68,0x65,0x6e])]===_0x3926d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ca969[_0x3926d9([0x63,0x61,0x74,0x63,0x68])]===_0x3926d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x307119(_0x14d989){_0x1bb8f3(_0x14d989)[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x4104e1=>{if(!_0x4104e1||_0x4104e1[_0x3926d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3926d9([0x6f,0x6b]))return _0x3926d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x298c00(_0x51b1a7(_0x35dbc3+_0x1b2108))!=_0x4104e1[_0x3926d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3926d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3926d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x1b1c43=>(_0xdd37a0(),_0x1b1c43),()=>{const _0x371b46=_0x3d4f3a();return null==_0x371b46?(_0xdd37a0(),_0x3926d9([0x56,0x61,0x6c,0x69,0x64])):_0x3926d9(_0x23ede5-_0x371b46>(0x7ff37bcc^_0x4819c1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x27b2c7)[_0x3926d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27b2c7(_0x3926d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3722ed=0x5bc9114c^_0x4819c1;function _0xdd37a0(){const _0x4385db=_0x3926d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x298c00(_0x51b1a7(_0x1f7eb5)),_0x51ef25=_0x1e8e62(_0x298c00(window[_0x3926d9([0x4d,0x61,0x74,0x68])][_0x3926d9([0x63,0x65,0x69,0x6c])](_0x23ede5/_0x3722ed)));window[_0x3926d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3926d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4385db,_0x51ef25);}function _0x3d4f3a(){const _0x4f1838=_0x3926d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x298c00(_0x51b1a7(_0x1f7eb5)),_0x1b92e4=window[_0x3926d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3926d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1838);return _0x1b92e4?window[_0x3926d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e8e62(_0x1b92e4),0x10)*_0x3722ed:null;}function _0x1bb8f3(_0x35f675){return new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f2cb4,_0x20c844)=>{_0x35f675[_0x3926d9([0x74,0x68,0x65,0x6e])](_0x4f2cb4,_0x20c844),window[_0x3926d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20c844,0x5bfe2b0c^_0x4819c1);});}}_0xbaaa7a[_0x3926d9([0x6f,0x6e])](_0x3926d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5eb578,_0x52abf4)=>{if(_0x52abf4[0x0]!=_0x1f7eb5)return _0x27b2c7(_0x3926d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52abf4[0x1]={..._0x52abf4[0x1],[_0x3926d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35dbc3};},{[_0x3926d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3926d9([0x68,0x69,0x67,0x68])}),_0xbaaa7a[_0x3926d9([0x6f,0x6e])](_0x3926d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1af8df=>{_0x127e05(_0x1af8df[_0x3926d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4127df=!0x0,_0x307119(_0x1af8df[_0x3926d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3926d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3926d9([0x6c,0x6f,0x77])}),_0x210852[_0x3926d9([0x74,0x68,0x65,0x6e])](()=>{_0x4127df||_0x27b2c7(_0x3926d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5105ac(){return _0xbaaa7a[_0x3926d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3926d9([0x76,0x69,0x65,0x77])][_0x3926d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3926d9([0x61,0x75,0x74,0x6f]);}function _0xceeb92(){_0xbaaa7a[_0x3926d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3926d9([0x76,0x69,0x65,0x77])][_0x3926d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3926d9([0x61,0x75,0x74,0x6f]);}}function _0x170be0(_0x3b25f5){const _0xeb962c=[new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e2ee=>setTimeout(_0x18e2ee,0x5bf6c100^_0x4819c1)),_0x210852[_0x3926d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x526af2=>{const _0x4b9f5a=0x5bffffcb^_0x4819c1,_0x2d10b2=_0x509d21[_0x3926d9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xa7e0e5(){_0x2d10b2[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4b9f5a&&_0x526af2();}_0xa7e0e5(),_0x2d10b2[_0x3926d9([0x6f,0x6e])](_0x3926d9([0x61,0x64,0x64]),_0xa7e0e5);})),new window[(_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3620af=>{function _0x4de946(){for(const _0x1bfe10 in window)if(window[_0x3926d9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3926d9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1bfe10))&&window[_0x1bfe10]==_0x46745a)return _0x3620af();_0xbaaa7a[_0x3926d9([0x73,0x74,0x61,0x74,0x65])]!=_0x3926d9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3926d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4de946,0x5bffec44^_0x4819c1);}_0x3c36f0(_0x3926d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4de946();})];return window[_0x3926d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3926d9([0x72,0x61,0x63,0x65])](_0xeb962c)[_0x3926d9([0x74,0x68,0x65,0x6e])](()=>_0x3b25f5);}async function _0x2329ba(){if(await _0x210852,_0x3c36f0(_0x3926d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4ed032=_0x509d21[_0x3926d9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1dc9d0=_0x509d21[_0x3926d9([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])](_0x4ed032[_0x3926d9([0x69,0x64])]),_0x239e22=_0x16909a(_0x3926d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x239e22[_0x3926d9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4ed032['id'],_0x1dc9d0?_0x1dc9d0['id']:null,!0x0),_0x239e22[_0x3926d9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3926d9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x239e22[_0x3926d9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x239e22[_0x3926d9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3e1048,void(_0x239e22[_0x3926d9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3e1048);}if(_0x3c36f0(_0x3926d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x217286=_0x16909a(_0x3926d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x217286[_0x3926d9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3926d9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x217286[_0x3926d9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x217286[_0x3926d9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3e1048,_0x217286[_0x3926d9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3e1048;}_0xbaaa7a[_0x3926d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3926d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e1048,_0xbaaa7a[_0x3926d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3926d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e1048,_0xbaaa7a[_0x3926d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3926d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4798c9(){return _0x3c36f0(_0x3926d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x16909a(_0x3926d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3926d9([0x73,0x74,0x61,0x74,0x65])]==_0x3926d9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x488a75(){return _0x3c36f0(_0x3926d9([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 _0x296ec3(){return _0x3c36f0(_0x3926d9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x362c1d(_0x325e36){const _0xa69316=_0x171e75();_0xbaaa7a[_0xa69316]=_0x3926d9([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])+_0x325e36,_0x325e36[_0x3926d9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3926d9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x171e75()]=_0x46745a),_0x325e36!=_0x3926d9([0x56,0x61,0x6c,0x69,0x64])&&_0x2329ba();}function _0x171e75(){const _0x3eeaef=window[_0x3926d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3926d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3926d9([0x6e,0x6f,0x77])]())[_0x3926d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3926d9([0x2e]),'');let _0x246f7d=_0x3926d9([0x58]);for(let _0x29701c=0x0;_0x29701c<_0x3eeaef[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29701c+=0x2){let _0x2dd0f9=window[_0x3926d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3eeaef[_0x3926d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29701c,_0x29701c+0x2));_0x2dd0f9>=_0x59b064[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dd0f9-=_0x59b064[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x246f7d+=_0x59b064[_0x2dd0f9];}return _0x246f7d;}function _0x51714c(){const _0x212b75=_0xdd167e[_0x3926d9([0x73,0x70,0x6c,0x69,0x74])](_0x3926d9([0x2e]));if(0x3!=_0x212b75[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x201056(_0x212b75[0x1]);function _0x201056(_0x26dbf0){const _0x2fcafa=_0x41f442(_0x26dbf0);return _0x2fcafa&&_0x2c0ed4()?_0x2fcafa:null;function _0x2c0ed4(){const _0x389bd2=_0x2fcafa[_0x3926d9([0x6a,0x74,0x69])],_0x2ea79a=window[_0x3926d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x389bd2[_0x3926d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x389bd2[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30d876={..._0x2fcafa,[_0x3926d9([0x6a,0x74,0x69])]:_0x389bd2[_0x3926d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x389bd2[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30d876[_0x3926d9([0x76,0x63])],_0x51b1a7(_0x30d876)==_0x2ea79a;}}}async function _0x32d251(){let _0xc5eaf8=!0x0;try{const _0x9b09ba=_0xdd167e[_0x3926d9([0x73,0x70,0x6c,0x69,0x74])](_0x3926d9([0x2e])),[_0x500950,_0x1fac9d,_0x58fdf9]=_0x9b09ba;return _0x2ba5d2(_0x500950),await _0x41a864(_0x500950,_0x1fac9d,_0x58fdf9),_0xc5eaf8;}catch(_0x556b89){return!0x1;}function _0x2ba5d2(_0x59ed6c){const _0x1063b3=_0x41f442(_0x59ed6c);_0x1063b3&&_0x1063b3[_0x3926d9([0x61,0x6c,0x67])]==_0x3926d9([0x45,0x53,0x32,0x35,0x36])||(_0xc5eaf8=!0x1);}async function _0x41a864(_0x1496d5,_0x497c1c,_0x308764){const _0x108214=window[_0x3926d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3926d9([0x66,0x72,0x6f,0x6d])](_0x8bf03b(_0x308764),_0x2b81fa=>_0x2b81fa[_0x3926d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d46a8=new window[(_0x3926d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3926d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1496d5+_0x3926d9([0x2e])+_0x497c1c),_0x28d42a=window[_0x3926d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3926d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28d42a)return;const _0xe4c0e4=await _0x28d42a[_0x3926d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3926d9([0x6a,0x77,0x6b]),_0x1e32d6,{[_0x3926d9([0x6e,0x61,0x6d,0x65])]:_0x3926d9([0x45,0x43,0x44,0x53,0x41]),[_0x3926d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3926d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3926d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28d42a[_0x3926d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3926d9([0x6e,0x61,0x6d,0x65])]:_0x3926d9([0x45,0x43,0x44,0x53,0x41]),[_0x3926d9([0x68,0x61,0x73,0x68])]:{[_0x3926d9([0x6e,0x61,0x6d,0x65])]:_0x3926d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe4c0e4,_0x108214,_0x5d46a8)||(_0xc5eaf8=!0x1);}}function _0x41f442(_0x621605){return _0x621605[_0x3926d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3926d9([0x65,0x79]))?JSON[_0x3926d9([0x70,0x61,0x72,0x73,0x65])](_0x8bf03b(_0x621605)):null;}function _0x8bf03b(_0x453de9){return window[_0x3926d9([0x61,0x74,0x6f,0x62])](_0x453de9[_0x3926d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3926d9([0x2b]))[_0x3926d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3926d9([0x2f])));}function _0x51b1a7(_0x140f1e){let _0x3dafbb=0x1505;function _0x4ea648(_0x4111bb){for(let _0x4675b7=0x0;_0x4675b7<_0x4111bb[_0x3926d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4675b7++){const _0x41a608=_0x4111bb[_0x3926d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4675b7);_0x3dafbb=(_0x3dafbb<<0x5)+_0x3dafbb+_0x41a608,_0x3dafbb&=_0x3dafbb;}}function _0x405325(_0x1d78cf){Array[_0x3926d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d78cf)?_0x1d78cf[_0x3926d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x405325):_0x1d78cf&&typeof _0x1d78cf==_0x3926d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3926d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d78cf)[_0x3926d9([0x73,0x6f,0x72,0x74])]()[_0x3926d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x115047,_0x178e65])=>{_0x4ea648(_0x115047),_0x405325(_0x178e65);}):_0x4ea648(window[_0x3926d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d78cf));}return _0x405325(_0x140f1e),_0x3dafbb>>>0x0;}function _0x298c00(_0x335710){return _0x335710[_0x3926d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3926d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3926d9([0x30]));}function _0x1e8e62(_0x130b54){return _0x130b54[_0x3926d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3926d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3926d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c36f0(_0x67c885){return _0xbaaa7a[_0x3926d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3926d9([0x68,0x61,0x73])](_0x67c885);}function _0x16909a(_0x4f04e7){return _0xbaaa7a[_0x3926d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3926d9([0x67,0x65,0x74])](_0x4f04e7);}function _0x3e1048(){}function _0x3926d9(_0x3574f7){return _0x3574f7['map'](_0x1a73e4=>String['fromCharCode'](_0x1a73e4))['join']('');}_0x362c1d(await _0xde9892());}(this);}['createRevision'](_0x2fb7aa){const _0x1b5a31=this['editor']['plugins']['get']('Users');return new h({'id':_0x2fb7aa['id'],'name':_0x2fb7aa['name'],'creator':_0x2fb7aa['creatorId']?_0x1b5a31['getUser'](_0x2fb7aa['creatorId']):null,'diffData':_0x2fb7aa['diffData']||_0x2fb7aa['data'],'authors':_0x2fb7aa['authorsIds']['map'](_0x41ce62=>_0x1b5a31['getUser'](_0x41ce62)),'createdAt':new Date(_0x2fb7aa['createdAt']),'attributes':_0x2fb7aa['attributes'],'fromVersion':_0x2fb7aa['fromVersion'],'toVersion':_0x2fb7aa['toVersion']});}['addRevision'](_0x2fc8a9,_0x17fc2b=0x0){this['_revisions']['add'](_0x2fc8a9,_0x17fc2b);}['getRevision'](_0x21efd2){return this['_revisions']['get'](_0x21efd2);}['getRevisions'](_0xbdb8be={'toJSON':!0x1}){const _0x137f3b=Array['from'](this['_revisions']);return _0x137f3b['reverse'](),_0xbdb8be['toJSON']?_0x137f3b['map'](_0x546786=>_0x546786['toJSON']()):_0x137f3b;}['getIndex'](_0x25b7c1){return this['_revisions']['getIndex'](_0x25b7c1);}['getEarlierVisibleRevision'](_0x15e60e){const [,_0x5d428c]=this['getRevisionsIterator'](_0x15e60e,{'direction':'earlier'});return _0x5d428c;}['getLaterVisibleRevision'](_0x4a0368){const [,_0x38309c]=this['getRevisionsIterator'](_0x4a0368,{'direction':'later'});return _0x38309c;}['getRevisionsInDiff'](_0x571d31){const _0x37f1c1=[];for(const _0x475f39 of this['getRevisionsIterator'](_0x571d31['newRevisionId']))if(_0x37f1c1['push'](_0x475f39),_0x475f39['id']===_0x571d31['oldRevisionId'])break;return _0x37f1c1;}*['getRevisionsIterator'](_0x37aab8,{direction:_0x15f748='earlier',filter:_0x56a31e=()=>!0x0}={}){const _0x1c3d96='earlier'===_0x15f748?0x1:-0x1;let _0x31a4cd=this['_revisions']['get'](_0x37aab8),_0x47b9c0=this['getIndex'](_0x31a4cd);for(yield _0x31a4cd;_0x31a4cd;){if(_0x47b9c0+=_0x1c3d96,_0x31a4cd=this['getRevision'](_0x47b9c0),!_0x31a4cd)return;_0x56a31e(_0x31a4cd)&&(yield _0x31a4cd);}}}class V extends _0x4be61a{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4fd2d9,'c'],[_0x4ef4b6,'a'],[_0x3f9e9f,'e'],[_0x19fa37,'r'],[_0x39271f,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4fd2d9],['a',_0x4ef4b6],['e',_0x3f9e9f],['r',_0x19fa37],['u',_0x39271f]]);async['loadRevisionData'](_0x4990f3,_0x1a4cde){if(_0x4990f3['diffData']||!_0x1a4cde)return;const _0x116bc0=this['editor']['config']['get']('collaboration.channelId'),_0x2b5a78=await _0x1a4cde['getRevision']({'channelId':_0x116bc0,'revisionId':_0x4990f3['id']});_0x4990f3['diffData']=_0x2b5a78['diffData'];}['getRevisionDocumentData'](_0x4ca004){const _0x21b7ed={};for(const _0x5a53f2 in _0x4ca004['diffData']){if(_0x4ca004['diffData'][_0x5a53f2]['attachChange']&&!_0x4ca004['diffData'][_0x5a53f2]['attachChange']['isAttached'])continue;const _0x19c684=this['_removeRevisionMarkers'](JSON['parse'](_0x4ca004['diffData'][_0x5a53f2]['insertions'])),_0x48ccf0=this['editor']['editing']['view']['document'],_0x3abf8f=new _0xa88be5(_0x48ccf0,_0x19c684['map'](_0x578370=>this['_getViewFromDiffObj'](_0x578370,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x21b7ed[_0x5a53f2]=this['editor']['data']['processor']['toData'](_0x3abf8f),this['editor']['data']['processor']['useFillerType']('default');}return _0x21b7ed;}['getRevisionRootsAttributes'](_0x565b63){const _0x2146bc={};for(const _0x12c793 in _0x565b63['diffData'])_0x565b63['diffData'][_0x12c793]['attachChange']&&!_0x565b63['diffData'][_0x12c793]['attachChange']['isAttached']||(_0x2146bc[_0x12c793]=_0x565b63['diffData'][_0x12c793]['attributesAfter']||{});return _0x2146bc;}['_getTypeCharForViewElement'](_0x21f938){return this['_viewClassToTypeChar']['get'](_0x21f938['constructor']);}['_getViewFromDiffObj'](_0x355035,_0xb2a9bf){const _0x24388e=this['editor']['editing']['view']['document'];if('string'==typeof _0x355035)return new _0x1cfd9a(_0x24388e,_0x355035);{let _0x175dd4,_0x35960e;_0x35960e='u'==_0x355035['type']||'r'==_0x355035['type']?[]:_0x355035['children']['map'](_0x184f13=>this['_getViewFromDiffObj'](_0x184f13,_0xb2a9bf));const _0x577f4b=this['_typeCharToViewClass']['get'](_0x355035['type'])||_0x48ac15,_0x648ff=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x175dd4=new _0x577f4b(_0x24388e,_0x355035['name'],_0x355035['attributes'],_0x35960e),'u'==_0x355035['type']&&_0x355035['children'][0x0]){const _0x232387=_0x355035['children'][0x0];if(_0x175dd4['render']=function(_0x7a4c67){const _0x2eac65=_0x7a4c67['createElement']('div');return _0x2eac65['innerHTML']=_0x232387,_0x2eac65['childNodes'][0x0];},_0xb2a9bf){const _0x317971=new _0xa88be5(_0x24388e);_0x317971['_appendChild'](_0x175dd4);const _0x43c60a=Array['from'](_0x648ff['viewChildrenToDom'](_0x317971,{'bind':!0x1})),_0x10aba1=_0x648ff['domDocument']['createElement']('div');_0x10aba1['append'](..._0x43c60a),_0x175dd4=Array['from'](_0x648ff['domChildrenToView'](_0x10aba1))[0x0];}}else{if('r'==_0x355035['type']&&_0x355035['children'][0x0]){const _0x24135a=_0x355035['children'][0x0];if(_0x175dd4['render']=function(_0x210673){_0x210673['innerHTML']=_0x24135a;},_0xb2a9bf){const _0x23e8c6=new _0xa88be5(_0x24388e);_0x23e8c6['_appendChild'](_0x175dd4);const _0x15e090=Array['from'](_0x648ff['viewChildrenToDom'](_0x23e8c6,{'bind':!0x1})),_0x57bf88=_0x648ff['domDocument']['createElement']('div');_0x57bf88['append'](..._0x15e090);const _0x2035d4=Array['from'](_0x648ff['domChildrenToView'](_0x57bf88));_0x2035d4['length']>0x1?_0x175dd4['_appendChild'](_0x2035d4):_0x175dd4=_0x2035d4[0x0];}}}if(_0x355035['customProperties']){for(const [_0x21f813,_0x5708ae]of _0x355035['customProperties'])_0x175dd4['_setCustomProperty'](_0x21f813,_0x5708ae);}const _0x1d2623=void 0x0===_0x355035['fillerOffset']?null:_0x355035['fillerOffset'];return null!==_0x1d2623&&(_0x175dd4['getFillerOffset']=()=>_0x1d2623),_0x175dd4;}}['_makeModelFromViewString'](_0x4a094c){const _0x132616=JSON['parse'](_0x4a094c),_0x5924c8=this['editor']['editing']['view']['document'],_0x4cc753=new _0xa88be5(_0x5924c8,_0x132616['map'](_0x2588c8=>this['_getViewFromDiffObj'](_0x2588c8,!0x0)));return this['editor']['data']['toModel'](_0x4cc753);}['_removeRevisionMarkers'](_0x5c2ca3){return(_0x5c2ca3=_0x5c2ca3['filter'](_0x2febaf=>!_0x2febaf['name']||'revision-start'!==_0x2febaf['name']&&'revision-end'!==_0x2febaf['name']))['forEach'](_0x3bb306=>{'string'!=typeof _0x3bb306&&(_0x3bb306['children']=this['_removeRevisionMarkers'](_0x3bb306['children']),_0x3bb306['attributes']=_0x3bb306['attributes']['filter'](_0x36bcbd=>!_0x36bcbd[0x0]['startsWith']('data-revision-')));}),_0x5c2ca3;}}function g(_0x5e0e43,_0x50a7d9,_0x47d1b4){const t=_0x5e0e43['t'];switch(_0x50a7d9){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'},_0x47d1b4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x47d1b4);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 _0x4be61a{['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[_0x1b4791,I,V,_0x574f1e];}constructor(_0x5b5772){super(_0x5b5772),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 _0x306a1f=_0x3965a3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x306a1f},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 _0x5c475=this['repository']['getRevision'](0x0),_0x49c613=_0x5c475&&null===_0x5c475['creator']?_0x5c475:null;if(this['_continueCurrentRevision']=!!_0x49c613&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x433bb8=this['_source']['getCurrentRevisionId'](),_0x5ddc43=this['repository']['getRevision'](_0x433bb8);if(_0x5ddc43)this['_startingVersion']=_0x5ddc43['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5b6e04=this['_source']['history']['_operations']['find'](_0x1fe6d8=>!_0x1fe6d8['_isInit']),_0x5a8f2b=_0x5b6e04?_0x5b6e04['baseVersion']:this['_source']['history']['version'];_0x5c475?(_0x5c475['toVersion']<_0x5a8f2b&&_0x5c475['_update']({'toVersion':_0x5a8f2b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x49c613['id'],this['_startingVersion']=_0x49c613['fromVersion']):(this['_startingVersion']=_0x5c475['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5a8f2b,this['_continueCurrentRevision']=!0x1);}}else _0x49c613&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x49c613['toVersion'],this['editor']['model']['document']['history']['version']),_0x49c613['fromVersion']===_0x49c613['toVersion']?(0x0!==_0x49c613['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x49c613['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x49c613['id'],this['_startingVersion']=_0x49c613['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',_0x527a05=>!_0x527a05),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42b041=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50dfab;for(const _0x3af66b in _0x42b041){const _0x13d0dd=_0x3af66b,_0x5123a9=_0x42b041[_0x13d0dd];if('revisionHistoryLicenseKeyValid'==_0x5123a9||'revisionHistoryLicenseKeyInvalid'==_0x5123a9||'revisionHistoryLicenseKeyExpired'==_0x5123a9||'revisionHistoryLicenseKeyDomainLimit'==_0x5123a9||'revisionHistoryLicenseKeyNotAllowed'==_0x5123a9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5123a9||'revisionHistoryLicenseKeyTrialLimit'==_0x5123a9||'revisionHistoryLicenseKeyUsageLimit'==_0x5123a9){delete _0x42b041[_0x13d0dd],_0x50dfab=_0x5123a9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x50dfab&&_0x42b041['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x50dfab&&_0x42b041['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x50dfab&&_0x42b041['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x50dfab&&_0x42b041['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x50dfab&&_0x42b041['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x50dfab&&_0x42b041['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x50dfab&&_0x42b041['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xadc88=this['repository']['getRevision'](0x0),_0x344e96=await this['getRevisionDocumentData'](_0xadc88),_0x106d7d=await this['getRevisionRootsAttributes'](_0xadc88);this['_replaceEditorDataWithRevisionData'](_0x344e96,_0x106d7d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x59ec3b){this['_source']=_0x59ec3b;}async['update'](){const _0x21d2dd=await this['_source']['getLatestVersion']();if(_0x21d2dd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5d5e83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x21d2dd});_0x5d5e83['authors']=_0x5d5e83['authorsIds']['map'](_0x32d180=>this['editor']['plugins']['get']('Users')['getUser'](_0x32d180)),this['currentRevision']['_update'](_0x5d5e83);}}async['saveRevision'](_0x210e1f={},_0x378f7d=null){const _0x41efa4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x378f7d>this['currentRevision']['toVersion']&&(_0x378f7d=null),null===_0x378f7d&&(_0x378f7d=await this['_source']['getLatestVersion']());const _0x1f8379=this['_getFromVersion'](_0x378f7d),_0x2ba5ab=this['buildRevisionData']({'from':_0x1f8379,'to':_0x378f7d});if(this['currentRevision']['toVersion']<_0x378f7d){const _0x29af9c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x378f7d,'to':_0x378f7d});_0x29af9c['authors']=[],_0x29af9c['authorsIds']=[],_0x29af9c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x29af9c,!0x0),delete _0x29af9c['authors'],_0x41efa4['push'](_0x29af9c);}_0x210e1f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x210e1f['name']=_0x210e1f['name']||null,_0x210e1f['id']=_0x210e1f['id']||_0x3965a3(),_0x210e1f={..._0x210e1f,..._0x2ba5ab};const _0x18f094=this['addRevisionData'](_0x210e1f);_0x41efa4['push'](_0x210e1f);const _0xa0ed4a=this['repository']['getIndex'](_0x18f094);if(0x0!==_0xa0ed4a){const _0x41a8b8=this['repository']['getRevision'](_0xa0ed4a-0x1);if(_0x41a8b8['fromVersion']!==_0x378f7d){const _0x511a3d=this['_revisionDataBuilder']['getData'](_0x378f7d,_0x41a8b8['toVersion']),_0x86263b={'id':_0x41a8b8['id'],'diffData':_0x511a3d['diffData'],'authorsIds':_0x511a3d['authorsIds'],'authors':_0x511a3d['authorsIds']['map'](_0x597817=>this['editor']['plugins']['get']('Users')['getUser'](_0x597817)),'fromVersion':_0x378f7d};_0x41a8b8===this['currentRevision']&&(_0x86263b['createdAt']=new Date(_0x210e1f['createdAt']['getTime']()+0xa)),_0x41a8b8['_update'](_0x86263b,!0x0),delete _0x86263b['authors'],_0x41efa4['push'](_0x86263b);}}if(this['adapter']){for(const _0x3f049d of _0x41efa4)this['_bufferUpdate'](_0x3f049d['id'],_0x3f049d,!0x0);this['sendBufferedUpdates']();}return _0x18f094;}['addRevisionData'](_0x340298){const _0x5d45bc=this['repository']['createRevision'](_0x340298);return this['adapter']&&_0x5d45bc['on']('_update',(_0x10ce34,_0x255ae8,_0x1e814e)=>{_0x1e814e||(this['_bufferUpdate'](_0x255ae8['id'],_0x255ae8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d45bc,this['_findInsertionIndex'](_0x5d45bc)),_0x5d45bc;}async['getRevisionDocumentData'](_0x46e4af){return await this['_utils']['loadRevisionData'](_0x46e4af,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x46e4af);}async['getRevisionRootsAttributes'](_0x2e45ee){return await this['_utils']['loadRevisionData'](_0x2e45ee,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2e45ee);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x120832=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x292303=0x0;_0x292303<_0x120832['length'];_0x292303++){const _0x329392=_0x120832[_0x292303];let _0x6a6313=!0x1;for(const _0x350676 of Object['keys'](_0x329392))void 0x0===_0x329392[_0x350676]?delete _0x329392[_0x350676]:'id'!==_0x350676&&(_0x6a6313=!0x0);_0x6a6313||(_0x120832[_0x292303]=null);}if(_0x120832=_0x120832['filter'](_0x532a12=>null!==_0x532a12),!_0x120832['length'])return;for(let _0x20378e=0x0;_0x20378e<_0x120832['length'];_0x20378e++){const _0x4ee044=_0x120832[_0x20378e];void 0x0!==_0x4ee044['fromVersion']&&void 0x0===_0x4ee044['toVersion']&&(_0x4ee044['toVersion']=this['repository']['getRevision'](_0x4ee044['id'])['toVersion']),void 0x0!==_0x4ee044['toVersion']&&void 0x0===_0x4ee044['fromVersion']&&(_0x4ee044['fromVersion']=this['repository']['getRevision'](_0x4ee044['id'])['fromVersion']);}const _0x379ef6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x120832,_0x379ef6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2d96d9=>{if(_0x2d96d9){for(const _0x6e3dc6 of _0x2d96d9)this['setRevisionData']({'id':_0x6e3dc6['id'],'createdAt':_0x6e3dc6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x553148=null,from:_0x37c4e0=null,to:_0x1b50ec=null}){_0x37c4e0=null!==_0x37c4e0?_0x37c4e0:_0x553148['fromVersion'],_0x1b50ec=null!==_0x1b50ec?_0x1b50ec:_0x553148['toVersion'];const _0x5830f2=this['_revisionDataBuilder']['getData'](_0x37c4e0,_0x1b50ec),_0x1f15c6={'diffData':_0x5830f2['diffData'],'authorsIds':_0x5830f2['authorsIds'],'fromVersion':_0x37c4e0,'toVersion':_0x1b50ec};if(!_0x553148||_0x1b50ec!==_0x553148['toVersion']){const _0x39706a=_0x1b50ec-0x1,_0x1f38a0=this['_source']['history']['getOperation'](_0x39706a);_0x1f15c6['createdAt']=_0x1f38a0&&_0x1f38a0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x37c4e0===this['_loadedStateData']['fromVersion']){for(const _0x26d3f7 of this['_loadedStateData']['authors'])_0x1f15c6['authorsIds']['includes'](_0x26d3f7['id'])||_0x1f15c6['authorsIds']['push'](_0x26d3f7['id']);}return _0x1f15c6;}['_bufferUpdate'](_0x2b2e3f,_0x15402b,_0x2f267e){if(this['_bufferedUpdates']['has'](_0x2b2e3f)){const _0x2e7303=this['_bufferedUpdates']['get'](_0x2b2e3f);_0x15402b=_0x2f267e?{..._0x2e7303,..._0x15402b}:{..._0x15402b,..._0x2e7303};}this['_bufferedUpdates']['set'](_0x2b2e3f,_0x15402b);}['setRevisionData'](_0x2b6b47){const _0x184dad=this['repository']['getRevision'](_0x2b6b47['id']);if(_0x2b6b47['createdAt']&&(_0x2b6b47['createdAt']=new Date(_0x2b6b47['createdAt'])),_0x2b6b47['authorsIds']){const _0x40444d=this['editor']['plugins']['get']('Users');_0x2b6b47['authors']=_0x2b6b47['authorsIds']['map'](_0x527438=>_0x40444d['getUser'](_0x527438));}_0x184dad['_update'](_0x2b6b47,!0x0);}['_createInitialRevision'](_0x1bbf99){const _0x2565f0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2565f0)this['_initialRevisionId']=_0x2565f0['id'];else{const _0x2be5be=!this['editor']['model']['document']['roots']['find'](_0x46c5d1=>this['editor']['model']['hasContent'](_0x46c5d1)),_0x44bd6a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cfdae=g(this['editor']['locale'],_0x2be5be?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1bbf99,'to':_0x1bbf99,'id':this['_initialRevisionId'],'name':_0x3cfdae,'creatorId':_0x44bd6a});}}['_createCurrentRevision'](_0x5d47bb){const _0x3653d6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3653d6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5d47bb,'to':_0x5d47bb,'id':_0x3653d6,'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'](_0x3d2aa7,_0x74233d){let _0x2b7a0f=this['editor']['config']['get']('initialData'),_0xa86020=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2b7a0f){_0x2b7a0f={};for(const _0x23fd08 of this['editor']['model']['document']['getRootNames']())_0x2b7a0f[_0x23fd08]='';}if('string'==typeof _0x2b7a0f&&(_0x2b7a0f={'main':_0x2b7a0f}),void 0x0===_0xa86020){_0xa86020={};for(const _0x584a0a of this['editor']['model']['document']['getRootNames']())_0xa86020[_0x584a0a]={};}let _0x49078b=!0x1;const _0x6a2bde=Object['keys'](_0x2b7a0f),_0x4aa022=Object['keys'](_0x3d2aa7);for(const _0x5e3972 of _0x6a2bde){if(_0x2b7a0f[_0x5e3972]!==_0x3d2aa7[_0x5e3972]&&''!==_0x2b7a0f[_0x5e3972]['trim']()){_0x49078b=!0x0;break;}if(!_0x32f493(_0xa86020[_0x5e3972],_0x74233d[_0x5e3972])&&Object['keys'](_0xa86020[_0x5e3972])['length']>0x0){_0x49078b=!0x0;break;}}_0x49078b||(_0x49078b=_0x4aa022['some'](_0x352c9a=>!this['editor']['model']['document']['getRoot'](_0x352c9a))),_0x49078b&&_0x5c4e6d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2b7a0f,'editorRootsAttributes':_0xa86020,'revisionData':_0x3d2aa7,'revisionRootsAttributes':_0x74233d}),this['editor']['config']['set']('initialData',_0x3d2aa7),this['editor']['config']['set']('rootsAttributes',_0x74233d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc853b8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc853b8['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x49691b){const _0x7f9d96=this['repository']['getRevisions']();_0x7f9d96['reverse']();let _0x55fb5f=0x0;for(;_0x55fb5f<_0x7f9d96['length'];){const _0x2e3c74=_0x7f9d96[_0x55fb5f];if(_0x2e3c74===this['currentRevision']){_0x55fb5f++;continue;}if(_0x2e3c74['id']===this['_initialRevisionId'])break;const _0x5bab6d=_0x49691b['toVersion']-_0x2e3c74['toVersion']||_0x49691b['fromVersion']-_0x2e3c74['fromVersion'];if(_0x5bab6d>0x0)break;if(_0x5bab6d<0x0)_0x55fb5f++;else{if(!_0x49691b['creator']&&_0x2e3c74['creator'])break;if(_0x2e3c74['creator']||!_0x49691b['creator']){if(_0x49691b['createdAt']>_0x2e3c74['createdAt'])break;_0x55fb5f++;}else _0x55fb5f++;}}return _0x55fb5f;}['_getFromVersion'](_0x3b6381){const _0x15edd6=this['repository']['getRevisions']();_0x15edd6['reverse'](),_0x15edd6['shift']();const _0x472503=_0x15edd6['find'](_0x595a4e=>_0x595a4e['toVersion']<=_0x3b6381)['toVersion'];return _0x472503<this['_startingVersion']?this['_startingVersion']:_0x472503;}['_makeRevision']({name:_0x59289e,from:_0x10fd87,to:_0x58fd8a,creatorId:_0x49c755,id:_0x2c1bf0}){const _0x50f7f3=this['buildRevisionData']({'from':_0x10fd87,'to':_0x58fd8a});_0x50f7f3['name']=_0x59289e,_0x50f7f3['creatorId']=_0x49c755,_0x50f7f3['id']=_0x2c1bf0;const _0x5ca82e=this['addRevisionData'](_0x50f7f3);return this['adapter']&&this['_bufferUpdate'](_0x50f7f3['id'],_0x50f7f3,!0x0),_0x5ca82e;}['_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(_0x2b6ba8){this['editor']=_0x2b6ba8,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'](_0x3368fc){this['source']=_0x3368fc;const _0x68ba7=new Map(),_0x1270af=new Map(),_0x2c62ec=this['editor']['model']['document']['roots']['map'](_0x56882d=>_0x56882d['rootName']);for(const _0x33ca8b of _0x2c62ec){const _0x3ad344=this['editor']['model']['document']['getRoot'](_0x33ca8b),_0x248d06=N(_0x3ad344);_0x68ba7['set'](_0x33ca8b,_0x248d06),_0x1270af['set'](_0x33ca8b,Object['fromEntries'](_0x3ad344['getAttributes']()));}const _0xcbcb26=Array['from'](this['editor']['model']['markers'])['map'](_0x34f304=>[_0x34f304['name'],_0x34f304['getRange']()]),_0x50c5c1=this['source']['version'];this['_saveMetaData'](_0x50c5c1,_0x68ba7,_0xcbcb26,_0x1270af),this['_startingRevisionId']=this['_revisionId'];const _0xa35b6a=new Map(),_0x120ec6=new Map();for(const _0x2200a1 of _0x2c62ec){const _0x318003=P(_0x2200a1);_0xa35b6a['set'](_0x2200a1,_0x318003),_0x120ec6['set'](_0x2200a1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa35b6a,[],_0x120ec6);}['getData'](_0x568bf3,_0x1a2dbb){if(this['_lastFrom']===_0x568bf3&&this['_lastTo']<=_0x1a2dbb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1a2dbb,!0x0);else{if(!this['_savedMetaData']['has'](_0x568bf3)){const _0x336dbc=this['_getPreviousFrom'](_0x568bf3);this['_calculateMetaData'](_0x336dbc,_0x568bf3,!0x1);}this['_calculateMetaData'](_0x568bf3,_0x1a2dbb,!0x0);}return this['_lastFrom']=_0x568bf3,this['_lastTo']=_0x1a2dbb,this['_getState']();}['loadState'](_0x41035d){const _0x46eecc=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x41035d['fromVersion'],this['_lastTo']=_0x41035d['toVersion'];for(const _0x3b018d in _0x41035d['diffData']){const _0x4896b5=_0x41035d['diffData'][_0x3b018d]['attachChange'],_0x94ecf1=_0xe5768f(_0x41035d['diffData'][_0x3b018d]['attributesBefore'])||{},_0x4974f2=_0x46eecc['_makeModelFromViewString'](_0x41035d['diffData'][_0x3b018d]['deletions']);_0x4974f2['rootName']=_0x3b018d,_0x4974f2['_isAttached']=!_0x4896b5||!_0x4896b5['isAttached'],_0x4974f2['isAttached']=()=>_0x4974f2['_isAttached'],this['_baseRoots']['set'](_0x3b018d,_0x4974f2),this['_baseRootsAttributes']['set'](_0x3b018d,_0x94ecf1),_0x4896b5&&this['_touchedRoots']['set'](_0x3b018d,_0x4896b5);const _0x2ac4fe=this['_makeIdsRoot'](_0x4974f2);this['_baseIdsRoots']['set'](_0x3b018d,_0x2ac4fe);for(const [_0x4c83ac,_0x5c7c83]of _0x4974f2['markers']){if(!_0x4c83ac['startsWith']('revision:'))continue;const _0x4cf6e5=_0x4c83ac['split'](':')[0x2];for(const _0x5103c1 of _0x5c7c83['getWalker']({'singleCharacters':!0x0})){const _0x1f777c=this['_getVidAttributeName'](_0x5103c1),_0x3587dd='elementEnd'==_0x5103c1['type']?_0x5103c1['previousPosition']['path']['slice'](0x0,-0x1):_0x5103c1['previousPosition']['path'],_0x2c684a=_0x2ac4fe['getNodeByPath'](_0x3587dd)['getAttribute'](_0x1f777c);this['_touched']['set'](_0x2c684a,{'userId':_0x4cf6e5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x440c79=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5757fe=>!this['_touched']['has'](_0x5757fe));let _0x1fd3c5=0x0;const _0x81b906=new Map();for(const _0x325a59 in _0x41035d['diffData']){const _0x43b083=_0x41035d['diffData'][_0x325a59]['attachChange'],_0x340589=_0xe5768f(_0x41035d['diffData'][_0x325a59]['attributesAfter'])||{},_0xc3a916=_0x46eecc['_makeModelFromViewString'](_0x41035d['diffData'][_0x325a59]['insertions']);_0xc3a916['rootName']=_0x325a59,_0xc3a916['_isAttached']=!_0x43b083||_0x43b083['isAttached'],_0xc3a916['isAttached']=()=>_0xc3a916['_isAttached'],this['_diffRoots']['set'](_0x325a59,_0xc3a916),this['_diffRootsAttributes']['set'](_0x325a59,_0x340589);const _0x4f6860=this['_makeIdsRoot'](_0xc3a916,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x325a59,_0x4f6860),_0x81b906['set'](_0x325a59,_0xc3a916['isAttached']()?_0x340589:{});for(const [_0x2b798a,_0x324b07]of _0xc3a916['markers']){if(!_0x2b798a['startsWith']('revision:'))continue;const _0x17d1d2=_0x2b798a['split'](':')[0x2];for(const _0x213f51 of _0x324b07['getWalker']({'singleCharacters':!0x0})){const _0x627d1d=this['_getVidAttributeName'](_0x213f51),_0x11eb27=this['_revisionId']++,_0x5e4b38='elementEnd'==_0x213f51['type']?_0x213f51['previousPosition']['path']['slice'](0x0,-0x1):_0x213f51['previousPosition']['path'];_0x4f6860['getNodeByPath'](_0x5e4b38)['_setAttribute'](_0x627d1d,_0x11eb27),this['_touched']['set'](_0x11eb27,{'userId':_0x17d1d2});}}for(const _0xa1fdfa of this['editor']['model']['createRangeIn'](_0xc3a916)['getWalker']({'singleCharacters':!0x0})){const _0x3c5aca=this['_getVidAttributeName'](_0xa1fdfa),_0x3096c8='elementEnd'==_0xa1fdfa['type']?_0xa1fdfa['previousPosition']['path']['slice'](0x0,-0x1):_0xa1fdfa['previousPosition']['path'],_0x278120=_0x4f6860['getNodeByPath'](_0x3096c8);_0x278120['getAttribute'](_0x3c5aca)>0x0||_0x278120['_setAttribute'](_0x3c5aca,_0x440c79[_0x1fd3c5++]);}for(const [_0x36bf94,_0x31c58f]of _0xc3a916['markers'])_0x36bf94['startsWith']('revision:')||this['_markers']['set'](_0x36bf94,_0x31c58f);}const _0xdea4b8=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xdea4b8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdea4b8,0x1));const _0x107f29=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x107f29),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x107f29,0x1));const _0x5236ef=Array['from'](this['_diffRoots'])['map'](([_0x453162,_0x42535a])=>[_0x453162,N(_0x42535a)]);this['_saveMetaData'](this['_lastTo'],_0x5236ef,this['_markers'],_0x81b906);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x67f35f,_0x39d7c4,_0x3ac645,_0xf5e605){const _0x4ab8f8=new Map(_0x39d7c4),_0x21680d=new Map(_0xe5768f(_0xf5e605)),_0x478017=new Map();for(const [_0x492402,_0x3ae23b]of _0x3ac645)_0x478017['set'](_0x492402,{'start':_0x3ae23b['start']['clone'](),'end':_0x3ae23b['end']['clone'](),'rootName':_0x3ae23b['root']['rootName']});this['_savedMetaData']['set'](_0x67f35f,{'roots':_0x4ab8f8,'markers':_0x478017,'rootsAttributes':_0x21680d});}['_removeMetaData'](_0x19b8f1){this['_savedMetaData']['delete'](_0x19b8f1);}['_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'](_0x621d6,_0x39e9c0=null){let _0x235988=null;_0x621d6['is']('documentFragment')||(_0x235988=new ut(_0x621d6['name'],{'vid_start':null===_0x39e9c0?this['_revisionId']++:_0x39e9c0++}));const _0x5b7594=[];for(const _0x375c6c of _0x621d6['getChildren']())if(_0x375c6c['is']('element')){_0x5b7594['push'](this['_makeIdsRoot'](_0x375c6c,_0x39e9c0));const _0x296e8e=_0x5b7594[_0x5b7594['length']-0x1];null!==_0x39e9c0&&(_0x39e9c0=_0x296e8e['is']('element','$text')?_0x296e8e['getAttribute']('vid')+0x1:_0x296e8e['getAttribute']('vid_end')+0x1);}else{for(let _0x390bae=0x0;_0x390bae<_0x375c6c['offsetSize'];_0x390bae++)_0x5b7594['push'](new ut('$text',{'vid':null===_0x39e9c0?this['_revisionId']++:_0x39e9c0++}));}if(_0x621d6['is']('documentFragment')){const _0x482af8=P(_0x621d6['rootName']);return _0x482af8['_insertChild'](0x0,_0x5b7594),_0x482af8;}return _0x235988['_setAttribute']('vid_end',null===_0x39e9c0?this['_revisionId']++:_0x39e9c0++),_0x235988['_insertChild'](0x0,_0x5b7594),_0x235988;}['_calculateMetaData'](_0x3fc48d,_0xb2d174,_0x41fff9){this['_reset']();const {roots:_0x42fe31,markers:_0x255c42,rootsAttributes:_0x2d29b3}=this['_savedMetaData']['get'](_0x3fc48d);this['_baseRoots']=new Map(_0x42fe31),this['_baseRootsAttributes']=new Map(_0xe5768f(_0x2d29b3));for(const [_0x501f63,_0x570f23]of this['_baseRoots'])if('$graveyard'!==_0x501f63&&(this['_diffRoots']['set'](_0x501f63,N(_0x570f23)),this['_diffRootsAttributes']=new Map(_0xe5768f(_0x2d29b3)),_0x41fff9)){const _0x2a8137=this['_revisionId'];this['_idsRoots']['set'](_0x501f63,this['_makeIdsRoot'](_0x570f23)),this['_baseIdsRoots']['set'](_0x501f63,this['_makeIdsRoot'](_0x570f23,_0x2a8137));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x41fff9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x26a880,_0x3afaaf]of _0x255c42){const _0x1e5c27=this['_baseRoots']['get'](_0x3afaaf['rootName']),_0x191a26=this['_diffRoots']['get'](_0x3afaaf['rootName']),_0x552837=new lt(this['_fixPosition'](_0x3afaaf['start'],_0x1e5c27),this['_fixPosition'](_0x3afaaf['end'],_0x1e5c27)),_0x3eedc5=this['_fixRange'](_0x552837,_0x191a26);_0x1e5c27['markers']['set'](_0x26a880,_0x552837),this['_markers']['set'](_0x26a880,_0x3eedc5);}this['_applyOperations'](_0x3fc48d,_0xb2d174,_0x41fff9);}['_applyOperations'](_0x5e4bce,_0x2f2a6f,_0x336819){for(const _0x11c9f3 of this['source']['getOperations'](_0x5e4bce,_0x2f2a6f))this['_handleOperation'](_0x11c9f3,_0x336819);for(const _0x26ae8b of this['_diffRoots']['values']())_0x26ae8b['markers']['clear']();for(const [_0x5abed2,_0x39d44d]of this['_markers']){this['_diffRoots']['get'](_0x39d44d['root']['rootName'])['markers']['set'](_0x5abed2,_0x39d44d['clone']());}const _0x3ccd9c=new Map(),_0x51d1c9=new Map();for(const [_0x537779,_0x17659e]of this['_diffRoots'])_0x3ccd9c['set'](_0x537779,N(_0x17659e)),_0x51d1c9['set'](_0x537779,this['_diffRootsAttributes']['get'](_0x537779));this['_saveMetaData'](_0x2f2a6f,_0x3ccd9c,this['_markers'],_0x51d1c9);}['_getPreviousFrom'](_0x4145d1){const _0x18646a=Array['from'](this['_savedMetaData']['keys']());_0x18646a['sort']((_0x164a1d,_0x56491a)=>_0x164a1d-_0x56491a),_0x18646a['reverse']();for(const _0xf0846e of _0x18646a)if(_0xf0846e<_0x4145d1)return _0xf0846e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x51dfb4,_0x473015){const _0x115541=Array['from'](_0x473015['markers'])['map'](([_0x3ba53c,_0x16d712])=>[_0x3ba53c,this['_fixRange'](_0x16d712,_0x51dfb4)]);_0x51dfb4['markers']=new Map(_0x115541);}['_transformMarkers'](_0x5804a5){for(const _0x3813f1 of this['_markers']['values']()){const _0x1a75a5=_0x3813f1['getTransformedByOperation'](_0x5804a5),_0x229e7d=lt['_createFromRanges'](_0x1a75a5);_0x3813f1['start']=_0x229e7d['start'],_0x3813f1['end']=_0x229e7d['end'];}}['_handleOperation'](_0x359ec4,_0x2d9c50){if('addRoot'!=_0x359ec4['type']&&'detachRoot'!=_0x359ec4['type']){if('insert'==_0x359ec4['type']){const _0x5c6bcf=_0x359ec4['position']['root']['rootName'];this['_diffRoots']['has'](_0x5c6bcf)||(this['_diffRoots']['set'](_0x5c6bcf,P(_0x5c6bcf,!0x0)),this['_diffRootsAttributes']['set'](_0x5c6bcf,{}),_0x2d9c50&&this['_idsRoots']['set'](_0x5c6bcf,P(_0x5c6bcf,!0x0)));}else{if('addRootAttribute'==_0x359ec4['type']||'removeRootAttribute'==_0x359ec4['type']||'changeRootAttribute'==_0x359ec4['type'])return void this['_handleRootAttributeOperation'](_0x359ec4);'marker'==_0x359ec4['type']&&this['_handleMarkerOperation'](_0x359ec4);}if('marker'!==_0x359ec4['type']){const _0x14cdd0=this['_cloneOperation'](_0x359ec4,this['_diffRoots']);_0x14cdd0['_execute'](),this['_transformMarkers'](_0x14cdd0);}if(_0x2d9c50)switch(_0x359ec4['type']){case'insert':this['_handleInsertOperation'](_0x359ec4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x359ec4);break;case'merge':this['_handleMergeOperation'](_0x359ec4);break;case'split':this['_handleSplitOperation'](_0x359ec4);}}else this['_handleRootOperation'](_0x359ec4,_0x2d9c50);}['_cloneOperation'](_0xf4c83c,_0x42d7d5){const _0x534bbb=_0xf4c83c['clone']();return _0x534bbb['_authorId']=_0xf4c83c['_authorId'],this['_fixOperation'](_0x534bbb,_0x42d7d5),_0x534bbb;}['_getBaseVids'](_0x1ab344){return _0x1ab344['map'](_0x2d34dd=>{const _0x1aa6de=this['_getVidAttributeName'](_0x2d34dd);return Number(_0x2d34dd['item']['getAttribute'](_0x1aa6de));});}['_generateTape'](_0x2a57f9,_0x4d7359){if(_0x2a57f9['is']('element','$text'))_0x4d7359['push']({'item':_0x2a57f9,'type':'text'});else{_0x2a57f9['is']('element')&&_0x4d7359['push']({'item':_0x2a57f9,'type':'elementStart'});for(const _0x42f220 of _0x2a57f9['getChildren']())this['_generateTape'](_0x42f220,_0x4d7359);_0x2a57f9['is']('element')&&_0x4d7359['push']({'item':_0x2a57f9,'type':'elementEnd'});}return _0x4d7359;}['_getState'](){const _0x452963=new Map(this['_touched']),_0x4e2d09=new Map(_0x452963),_0x4eb44a=new Map(),_0x436c99={'insertions':{},'deletions':{}},_0x5a78c3={'insertions':{},'deletions':{}},_0x1a0b6d=new Map(),_0x29aaea=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29aaea['delete']('$graveyard');for(const _0x23c476 of _0x29aaea){const _0x9a7d72=this['_diffRoots']['get'](_0x23c476)||P(_0x23c476,!0x1),_0x4f1a90=this['_baseRoots']['get'](_0x23c476)||P(_0x23c476,!0x1);_0x9a7d72['isAttached']()||_0x4f1a90['isAttached']()?(_0x436c99['insertions'][_0x23c476]=N(_0x9a7d72),_0x436c99['deletions'][_0x23c476]=N(_0x4f1a90),this['_copyMarkers'](_0x436c99['deletions'][_0x23c476],_0x4f1a90),this['_copyMarkers'](_0x436c99['insertions'][_0x23c476],_0x9a7d72),_0x5a78c3['insertions'][_0x23c476]=this['_generateTape'](this['_idsRoots']['get'](_0x23c476),[]),_0x5a78c3['deletions'][_0x23c476]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x23c476)||P(_0x23c476,!0x1),[])):_0x29aaea['delete'](_0x23c476);}for(const _0x53e2e9 of _0x29aaea){const _0x4f966f=_0x5a78c3['insertions'][_0x53e2e9];for(const _0x4de16f of _0x4f966f){const _0x30a582=this['_getVidAttributeName'](_0x4de16f),_0x2313ed=_0x4de16f['item']['getAttribute'](_0x30a582);_0x4e2d09['delete'](_0x2313ed),_0x2313ed>=this['_startingRevisionId']&&_0x4eb44a['set'](_0x2313ed,_0x452963['get'](_0x2313ed));}}for(const _0x476b7e of _0x29aaea){const _0x1bdc46=_0x5a78c3['insertions'][_0x476b7e],_0x55e434=this['_getBaseVids'](_0x5a78c3['deletions'][_0x476b7e]);let _0x519be0=0x0;for(const _0xd29ab9 of _0x1bdc46){const _0xd1fdbf=this['_getVidAttributeName'](_0xd29ab9),_0x14c6c0=_0xd29ab9['item']['getAttribute'](_0xd1fdbf);if(!_0x4eb44a['has'](_0x14c6c0)&&!_0x1a0b6d['has'](_0x14c6c0)){if(_0x4e2d09['has'](_0x14c6c0))_0x519be0++;else{if(_0x14c6c0!=_0x55e434[_0x519be0]){const _0x2bab6b=_0x452963['get'](_0x14c6c0)||_0x452963['get'](_0x55e434[_0x519be0]);for(;_0x14c6c0!=_0x55e434[_0x519be0];)_0x4e2d09['has'](_0x55e434[_0x519be0])||(_0x1a0b6d['set'](_0x55e434[_0x519be0],_0x2bab6b),_0x452963['set'](_0x55e434[_0x519be0],_0x2bab6b)),_0x519be0++;}_0x519be0++;}}}}for(const _0x4c5fbb of _0x29aaea){const _0x36e607=_0x5a78c3['insertions'][_0x4c5fbb];for(const _0x13bb3a of _0x36e607){const _0xe13c4e=this['_getVidAttributeName'](_0x13bb3a),_0x5a10f4=_0x13bb3a['item']['getAttribute'](_0xe13c4e);if(_0x1a0b6d['has'](_0x5a10f4)){const _0x25a2e5=_0x1a0b6d['get'](_0x5a10f4);_0x4e2d09['has'](_0x5a10f4)||_0x4e2d09['set'](_0x5a10f4,{..._0x25a2e5}),_0x4eb44a['set'](_0x5a10f4,{..._0x25a2e5});}}}for(const _0x5af624 of _0x4e2d09['keys']())_0x5af624>=this['_startingRevisionId']&&_0x4e2d09['delete'](_0x5af624);const _0x1acdda=new Map();for(const _0x3c8a1d of _0x29aaea){let _0x517d54=_0x5a78c3['insertions'][_0x3c8a1d];for(const _0x5e80a1 of _0x517d54)if(_0x5e80a1['item']['is']('element','tableCell')){const _0x4ea0b1=this['_getVidAttributeName'](_0x5e80a1),_0xbe20e5=_0x5e80a1['item']['getAttribute'](_0x4ea0b1);if(_0x4eb44a['has'](_0xbe20e5)){const _0x316c93=_0x5e80a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x955d00=_0x1acdda['get'](_0x316c93)||new Set();_0x955d00['add'](_0x4eb44a['get'](_0xbe20e5)['userId']),_0x1acdda['set'](_0x316c93,_0x955d00);}}_0x517d54=_0x5a78c3['deletions'][_0x3c8a1d];for(const _0x31fd87 of _0x517d54)if(_0x31fd87['item']['is']('element','tableCell')){const _0x1c4237=this['_getVidAttributeName'](_0x31fd87),_0xd4051c=_0x31fd87['item']['getAttribute'](_0x1c4237);if(_0x4e2d09['has'](_0xd4051c)){const _0x15269f=_0x31fd87['item']['parent']['parent']['getAttribute']('vid_start'),_0x42723c=_0x1acdda['get'](_0x15269f)||new Set();_0x42723c['add'](_0x4e2d09['get'](_0xd4051c)['userId']),_0x1acdda['set'](_0x15269f,_0x42723c);}}for(const _0x4791aa of _0x1acdda['keys']())(_0x4eb44a['has'](_0x4791aa)||_0x4e2d09['has'](_0x4791aa))&&_0x1acdda['delete'](_0x4791aa);}for(const _0x232f20 of _0x29aaea){const _0x1f4ef1=_0x5a78c3['insertions'][_0x232f20];let _0x2820d0=null,_0x5a9475=null;for(const _0x36f0db of _0x1f4ef1){const _0x4cca45=this['_getVidAttributeName'](_0x36f0db),_0x2e348b=_0x36f0db['item']['getAttribute'](_0x4cca45),_0xbd5598=_0x1acdda['get'](_0x2e348b);_0xbd5598&&'elementStart'==_0x36f0db['type']&&(_0x2820d0=Array['from'](_0xbd5598)[0x0],_0x5a9475=_0x36f0db['item']['getAttribute']('vid_end')),_0x2820d0&&(_0x4e2d09['set'](_0x2e348b,{'userId':_0x2820d0}),_0x4eb44a['set'](_0x2e348b,{'userId':_0x2820d0})),_0x2e348b==_0x5a9475&&(_0x2820d0=null,_0x5a9475=null);}}const _0x13a37f={},_0x154eb4=new Set();for(const _0x4339e0 of _0x29aaea){const _0x4f399b=_0x436c99['deletions'][_0x4339e0],_0x1b9adc=_0x436c99['insertions'][_0x4339e0];for(const {userId:_0x140896}of this['_touchedMarkers']['values']())null!==_0x140896&&_0x154eb4['add'](_0x140896);for(const {userId:_0x4f04b0}of this['_touchedRoots']['values']())null!==_0x4f04b0&&_0x154eb4['add'](_0x4f04b0);this['_markChanges'](_0x1b9adc,_0x5a78c3['insertions'][_0x4339e0],_0x4eb44a,'insertion',_0x154eb4),this['_markChanges'](_0x4f399b,_0x5a78c3['deletions'][_0x4339e0],_0x4e2d09,'deletion',_0x154eb4),_0x13a37f[_0x4339e0]={'insertions':this['_prepareViewToSave'](_0x1b9adc),'deletions':this['_prepareViewToSave'](_0x4f399b),'attachChange':this['_touchedRoots']['get'](_0x4339e0)||null,'attributesBefore':_0xe5768f(this['_baseRootsAttributes']['get'](_0x4339e0))||{},'attributesAfter':_0xe5768f(this['_diffRootsAttributes']['get'](_0x4339e0))};}return{'diffData':_0x13a37f,'authorsIds':Array['from'](_0x154eb4)};}['_processRootBeforeSave'](_0x1a2186){for(const [,_0x11c8a2]of _0x1a2186['markers']){const _0x1fe1a0=_0x11c8a2['start']['getAncestors']()['filter'](_0x1da926=>'tableCell'==_0x1da926['name']);for(const _0x16e19e of _0x1fe1a0)0x1==_0x16e19e['childCount']&&_0x16e19e['getChild'](0x0)['is']('element','paragraph')&&_0x16e19e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x55c8f0){this['_processRootBeforeSave'](_0x55c8f0);const _0x2b0811=this['editor']['data']['toView'](_0x55c8f0,{}),_0x224b8a=Array['from'](_0x2b0811['getChildren']())['map'](_0x75f376=>this['_getViewJson'](_0x75f376));return JSON['stringify'](_0x224b8a);}['_getViewJson'](_0x2a0891){if(_0x2a0891['is']('$text'))return _0x2a0891['data'];{const _0x164c75=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x578f1b=_0x2a0891,_0x5d1fc0=this['editor']['data']['htmlProcessor']['domConverter'],_0x5b2bf8={'type':_0x164c75['_getTypeCharForViewElement'](_0x578f1b),'name':_0x578f1b['name'],'attributes':Array['from'](_0x578f1b['getAttributes']()),'children':Array['from'](_0x578f1b['getChildren']())['map'](_0x3767f9=>this['_getViewJson'](_0x3767f9))};if(_0x2a0891['is']('uiElement')&&'$comment'!=_0x2a0891['name']){const _0x318a90=_0x2a0891['render'](_0x5d1fc0['domDocument'],_0x5d1fc0);_0x5b2bf8['children']['push'](_0x318a90['outerHTML']);}else{if(_0x2a0891['is']('rawElement')){const _0x20357e=_0x5d1fc0['domDocument']['createElement'](_0x578f1b['name']);_0x2a0891['render'](_0x20357e,_0x5d1fc0),_0x5b2bf8['children']['push'](_0x20357e['innerHTML']);}}const _0x28ae7b=Array['from'](_0x578f1b['getCustomProperties']());_0x28ae7b['length']>0x0&&(_0x5b2bf8['customProperties']=_0x28ae7b);const _0x5c1283=_0x578f1b['getFillerOffset']();return null!==_0x5c1283&&(_0x5b2bf8['fillerOffset']=_0x5c1283),_0x5b2bf8;}}['_markChanges'](_0x6a8d6a,_0x4d8806,_0x2d43f7,_0x190593,_0x2ddaca){let _0x24efc6=null,_0x3162f5=null,_0x1754f5=0x0;const _0x46ef59=this['editor']['model'];for(let _0xfef126=0x0;_0xfef126<_0x4d8806['length'];_0xfef126++){const _0x162301=this['_getVidAttributeName'](_0x4d8806[_0xfef126]),_0x41b243=_0x4d8806[_0xfef126]['item']['getAttribute'](_0x162301),_0x676f03=_0x2d43f7['get'](_0x41b243),_0x3b14ca=_0xfef126==_0x4d8806['length']-0x1;(!_0x24efc6&&_0x676f03&&(_0x24efc6=_0x676f03,_0x3162f5=_0x4d8806[_0xfef126]),_0x24efc6&&(!_0x676f03||_0x676f03['userId']!=_0x24efc6['userId']))&&(_0x325313(_0x676f03,F(_0x3162f5,_0x6a8d6a,_0x46ef59),F(_0x4d8806[_0xfef126],_0x6a8d6a,_0x46ef59)),_0x24efc6=_0x676f03||null,_0x3162f5=_0x676f03?_0x4d8806[_0xfef126]:null),_0x24efc6&&_0x3b14ca&&_0x325313(_0x676f03,F(_0x3162f5,_0x6a8d6a,_0x46ef59),B(_0x4d8806[_0xfef126],_0x6a8d6a,_0x46ef59));}function _0x325313(_0x5e4ad5,_0x3ca1c2,_0x25cf3c){const _0x5ddec2=_0x24efc6['userId'],_0x2aa98f='revision:'+_0x190593+':'+_0x5ddec2+':'+_0x1754f5++,_0x118ab0=_0x46ef59['createRange'](_0x3ca1c2,_0x25cf3c);_0x6a8d6a['markers']['set'](_0x2aa98f,_0x118ab0),null!==_0x5ddec2&&_0x2ddaca['add'](_0x5ddec2);}}['_getVidAttributeName'](_0x375a99){switch(_0x375a99['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5abeef,_0x3da9a8){_0x5abeef['baseVersion']=null;for(const _0x1bda15 in _0x5abeef){const _0x3de441=_0x5abeef[_0x1bda15];if(_0x3de441 instanceof ft){const _0xa74d22=_0x3da9a8['get'](_0x3de441['root']['rootName']);_0x5abeef[_0x1bda15]=this['_fixPosition'](_0x3de441,_0xa74d22);}if(_0x3de441 instanceof lt){const _0x5474da=_0x3da9a8['get'](_0x3de441['root']['rootName']);_0x5abeef[_0x1bda15]=this['_fixRange'](_0x3de441,_0x5474da);}'root'===_0x1bda15&&(_0x5abeef['root']=_0x3da9a8['get'](_0x5abeef['root']['rootName']));}}['_fixRange'](_0x427e66,_0x53a50a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x427e66['start'],_0x53a50a),this['_fixPosition'](_0x427e66['end'],_0x53a50a));}['_fixPosition'](_0x79bab0,_0x33dd64){return this['editor']['model']['createPositionFromPath'](_0x33dd64,_0x79bab0['path'],_0x79bab0['stickiness']);}['_handleInsertOperation'](_0xc5da6f){const _0x9d95c3=this['_idsRoots']['get'](_0xc5da6f['position']['root']['rootName']),_0xd40012=this['_fixPosition'](_0xc5da6f['position'],_0x9d95c3),_0xba465c=null===_0xc5da6f['_authorId']?null:_0xc5da6f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6ed61f=_0xd40012['parent'],_0x5d5925=this['_revisionId'],_0x28f1c3=[];for(const _0x3c2242 of _0xc5da6f['nodes'])if(_0x3c2242['is']('element'))_0x28f1c3['push'](this['_makeIdsRoot'](_0x3c2242));else{for(let _0x357b00=0x0;_0x357b00<_0x3c2242['offsetSize'];_0x357b00++)_0x28f1c3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xd5f8d=this['_revisionId'];for(let _0x8056c5=_0x5d5925;_0x8056c5<_0xd5f8d;_0x8056c5++)this['_touched']['set'](_0x8056c5,{'userId':_0xba465c});_0x6ed61f['_insertChild'](_0xd40012['offset'],_0x28f1c3);}['_handleMoveOperation'](_0x3dd1d4){(_0x3dd1d4=this['_cloneOperation'](_0x3dd1d4,this['_idsRoots']))['_execute']();const _0x587493=null===_0x3dd1d4['_authorId']?null:_0x3dd1d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e80f7=_0x3dd1d4['getMovedRangeStart'](),_0x16e152=_0x3e80f7['parent'],_0x55c8be=_0x3e80f7['offset'];!function _0x2eae7a(_0x45d138,_0x4b09c2,_0x5d22ce,_0x2e41af){for(let _0x342346=_0x5d22ce;_0x342346<_0x2e41af;_0x342346++){const _0x435415=_0x4b09c2['getChild'](_0x342346);_0x435415['is']('element','$text')?_0x45d138['set'](_0x435415['getAttribute']('vid'),{'userId':_0x587493}):(_0x45d138['set'](_0x435415['getAttribute']('vid_start'),{'userId':_0x587493}),_0x2eae7a(_0x45d138,_0x435415,0x0,_0x435415['childCount']),_0x45d138['set'](_0x435415['getAttribute']('vid_end'),{'userId':_0x587493}));}}(this['_touched'],_0x16e152,_0x55c8be,_0x55c8be+_0x3dd1d4['howMany']);}['_handleMergeOperation'](_0x242a44){const _0x4c7c88=null===(_0x242a44=this['_cloneOperation'](_0x242a44,this['_idsRoots']))['_authorId']?null:_0x242a44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c3e7f=_0x242a44['targetPosition']['parent'],_0x1e7d71=_0x242a44['sourcePosition']['parent'],_0x3c3f39=_0x2c3e7f['getAttribute']('vid_end'),_0x2f4e1f=_0x1e7d71['getAttribute']('vid_start');_0x2c3e7f['_setAttribute']('vid_end',_0x1e7d71['getAttribute']('vid_end')),_0x1e7d71['_setAttribute']('vid_end',_0x3c3f39),this['_touched']['set'](_0x2f4e1f,{'userId':_0x4c7c88}),this['_touched']['set'](_0x3c3f39,{'userId':_0x4c7c88}),_0x242a44['_execute']();}['_handleSplitOperation'](_0x57c505){const _0x2b9e4b=null===(_0x57c505=this['_cloneOperation'](_0x57c505,this['_idsRoots']))['_authorId']?null:_0x57c505['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47206f=_0x57c505['graveyardPosition'],_0x3a92dd=_0x57c505['splitPosition']['parent'];_0x57c505['_execute']();const _0xf1cda5=_0x3a92dd['getAttribute']('vid_end'),_0x300ca0=_0x57c505['insertionPosition']['nodeAfter'];if(_0x47206f){const _0x544b00=_0x300ca0['getAttribute']('vid_end'),_0x39ddc9=_0x3a92dd['getAttribute']('vid_end');_0x3a92dd['_setAttribute']('vid_end',_0x544b00),_0x300ca0['_setAttribute']('vid_end',_0x39ddc9),this['_touched']['set'](_0x3a92dd['getAttribute']('vid_end'),{'userId':_0x2b9e4b}),this['_touched']['set'](_0x300ca0['getAttribute']('vid_start'),{'userId':_0x2b9e4b});}else{const _0xddc194=this['_revisionId']++,_0x2b2932=this['_revisionId']++;_0x3a92dd['_setAttribute']('vid_end',_0xddc194),_0x300ca0['_setAttribute']('vid_start',_0x2b2932),_0x300ca0['_setAttribute']('vid_end',_0xf1cda5),this['_touched']['set'](_0xddc194,{'userId':_0x2b9e4b}),this['_touched']['set'](_0x2b2932,{'userId':_0x2b9e4b});}}['_handleMarkerOperation'](_0x4d147a){if(!_0x4d147a['affectsData'])return;const _0x4e88bf=(_0x4d147a=this['_cloneOperation'](_0x4d147a,this['_diffRoots']))['oldRange']?_0x4d147a['oldRange']['root']:null,_0x4ad0a9=_0x4d147a['newRange']?_0x4d147a['newRange']['root']:null;_0x4e88bf&&this['_markers']['delete'](_0x4d147a['name']),_0x4ad0a9&&this['_markers']['set'](_0x4d147a['name'],_0x4d147a['newRange']['clone']());const _0x2e32c5=null===_0x4d147a['_authorId']?null:_0x4d147a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13a34c=_0x4d147a['name'];if(!this['_touchedMarkers']['has'](_0x13a34c))return void this['_touchedMarkers']['set'](_0x13a34c,{'range':_0x4d147a['oldRange'],'userId':_0x2e32c5});const _0x35f643=this['_touchedMarkers']['get'](_0x13a34c),_0x35b17d=_0x35f643['range'],_0x488831=_0x4d147a['newRange'];null==_0x35b17d&&null==_0x488831||_0x35b17d&&_0x488831&&_0x35b17d['isEqual'](_0x488831)?this['_touchedMarkers']['delete'](_0x4d147a['name']):_0x35f643['userId']=_0x2e32c5;}['_handleRootOperation'](_0x236d1e,_0x51ab04){this['_diffRoots']['has'](_0x236d1e['rootName'])?this['_diffRoots']['get'](_0x236d1e['rootName'])['_isAttached']=_0x236d1e['isAdd']:(this['_diffRoots']['set'](_0x236d1e['rootName'],P(_0x236d1e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x236d1e['rootName'],{}),_0x51ab04&&this['_idsRoots']['set'](_0x236d1e['rootName'],P(_0x236d1e['rootName'],!0x0)));const _0x48bc59=null===_0x236d1e['_authorId']?null:_0x236d1e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b6b97=this['_touchedRoots']['get'](_0x236d1e['rootName']);_0x2b6b97&&_0x2b6b97['userId']===_0x48bc59?this['_touchedRoots']['delete'](_0x236d1e['rootName']):this['_touchedRoots']['set'](_0x236d1e['rootName'],{'userId':_0x48bc59,'isAttached':_0x236d1e['isAdd']});}['_handleRootAttributeOperation'](_0x4f11a8){const _0x558e88=this['_diffRootsAttributes']['get'](_0x4f11a8['root']['rootName']);null===_0x4f11a8['newValue']?delete _0x558e88[_0x4f11a8['key']]:_0x558e88[_0x4f11a8['key']]=_0x4f11a8['newValue'];}}function N(_0x31117b){const _0x508b6b=P(_0x31117b['rootName'],_0x31117b['isAttached']());for(const _0x5293b6 of _0x31117b['getChildren']()){const _0xc99a1c=_0x5293b6['_clone'](!0x0);_0x508b6b['_appendChild'](_0xc99a1c);}return _0x508b6b;}function P(_0x135436,_0x2d3acf=!0x0){const _0x4ad3c6=new vt();return _0x4ad3c6['rootName']=_0x135436,_0x4ad3c6['_isAttached']=_0x2d3acf,_0x4ad3c6['isAttached']=()=>_0x4ad3c6['_isAttached'],_0x4ad3c6;}function F(_0xe7c04a,_0x15dac6,_0x5ef720){const _0x17c755='elementEnd'==_0xe7c04a['type']?_0x5ef720['createPositionAt'](_0xe7c04a['item'],'end'):_0x5ef720['createPositionBefore'](_0xe7c04a['item']);return _0x5ef720['createPositionFromPath'](_0x15dac6,_0x17c755['path'],_0x17c755['stickiness']);}function B(_0x59f577,_0x533dce,_0x6b1301){const _0x508813='elementStart'==_0x59f577['type']?_0x6b1301['createPositionAt'](_0x59f577['item'],0x0):_0x6b1301['createPositionAfter'](_0x59f577['item']);return _0x6b1301['createPositionFromPath'](_0x533dce,_0x508813['path'],_0x508813['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x54d34a,_0x4665ac){super(_0x54d34a),this['focusTracker']=new _0x586dc1(),this['keystrokes']=new _0x34e813(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4665ac),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x55af15(this);}['render'](){super['render'](),_0x55bffc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x509ec3=_0x30e42f=>_0x30e42f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x509ec3),this['keystrokes']['set']('arrowleft',_0x509ec3),this['keystrokes']['set']('arrowup',_0x509ec3),this['keystrokes']['set']('arrowdown',_0x509ec3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x34a056){this['revisionNameInputView']['fieldView']['element']['value']=_0x34a056['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x59abba){const _0x14258d=new _0x783eff(this['locale'],_0x23e1c3),_0x326618=_0x14258d['fieldView'];_0x326618['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x272cb8=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x59abba&&(_0x272cb8+='\x20('+g(this['locale'],'optional')+')'),(_0x14258d['label']=_0x272cb8,_0x326618['on']('input',()=>{this['revisionNameInputValue']=_0x326618['element']['value']['trim']();}),_0x14258d);}}class f extends _0x4be61a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x535ef3=this['editor'],_0xfe0b6f=_0x535ef3['plugins']['get']('RevisionTracker');_0x535ef3['ui']['componentFactory']['add']('revisionHistory',_0x274454=>{const _0x47c512=_0x58a328(_0x274454),_0x370981=_0x47c512['panelView']['children'],_0x349e40=new _0x2ea3e0(_0x274454),_0x174ba3=new _0x44422b(_0x274454),_0x454980=new te(_0x274454),_0x510773=new _0x44422b(_0x274454),_0x706d8=new te(_0x274454);return _0x47c512['bind']('isEnabled')['to'](_0xfe0b6f,'isReady',_0xfe0b6f,'isEnabled',_0x535ef3,'isReadOnly',(_0x2976c3,_0x9afda,_0x21d729)=>_0x2976c3&&_0x9afda&&!_0x21d729),_0x47c512['buttonView']['set']({'icon':_0x25e4f4,'label':g(_0x274454,'Revision\x20history'),'tooltip':!0x0}),_0x454980['set']({'label':g(_0x274454,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x454980['bind']('isEnabled')['to'](_0xfe0b6f,'isReady',_0xfe0b6f,'isEnabled',_0x535ef3,'isReadOnly',(_0x55c6d4,_0x1c42fb,_0x4b258c)=>_0x55c6d4&&_0x1c42fb&&!_0x4b258c),_0x454980['on']('execute',()=>this['_showDialog']()),_0x706d8['set']({'label':g(_0x274454,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x706d8['bind']('isEnabled')['to'](_0xfe0b6f,'isReady',_0x535ef3,'isReadOnly',(_0x48cf24,_0x33d8ec)=>_0x48cf24&&!_0x33d8ec),_0x706d8['on']('execute',()=>{_0x535ef3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x47c512['isOpen']=!0x1,_0x535ef3['editing']['view']['focus']();}),_0x174ba3['children']['add'](_0x454980),_0x510773['children']['add'](_0x706d8),_0x349e40['role']='menu',_0x349e40['items']['addMany']([_0x174ba3,_0x510773]),_0x370981['add'](_0x349e40),_0x47c512;}),_0x535ef3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xb4c601=this['editor'],_0x341bba=_0xb4c601['locale'],_0x20e0c3=new _0x321d74(_0x341bba),_0x12bf89=new _0x2d0b7d(_0x341bba);_0x20e0c3['buttonView']['set']({'icon':_0x25e4f4,'label':g(_0x341bba,'Revision\x20history')});const _0x1e830b=new _0x3ef07d(_0x341bba,_0x20e0c3),_0x2cce73=new _0x54fdf8(_0x341bba);_0x2cce73['set']({'label':g(_0x341bba,'Save\x20current\x20revision')}),_0x2cce73['delegate']('execute')['to'](_0x20e0c3),_0x2cce73['on']('execute',()=>{this['_showDialog']();}),_0x1e830b['children']['add'](_0x2cce73),_0x12bf89['items']['add'](_0x1e830b);const _0xf15db8=new _0x3ef07d(_0x341bba,_0x20e0c3),_0x2b7c85=new _0x54fdf8(_0x341bba);return _0x2b7c85['set']({'label':g(_0x341bba,'Open\x20revision\x20history')}),_0x2b7c85['delegate']('execute')['to'](_0x20e0c3),_0x2b7c85['on']('execute',()=>{_0xb4c601['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xf15db8['children']['add'](_0x2b7c85),_0x12bf89['items']['add'](_0xf15db8),_0x20e0c3['panelView']['children']['add'](_0x12bf89),_0x20e0c3;}['_showDialog'](){const _0x4f50ae=this['editor'],_0x33932f=_0x4f50ae['locale'],_0x47c138=_0x4f50ae['plugins']['get']('Dialog'),_0x3e9dd7=_0x4f50ae['plugins']['get']('RevisionTracker');function _0x288439(_0x4bcb9f){_0x4f50ae['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4bcb9f['revisionName']?_0x4bcb9f['revisionNameInputView']['errorText']=g(_0x33932f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4f50ae['plugins']['get'](u)['saveRevision']({'name':_0x4bcb9f['revisionName']}),_0x47c138['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x288439(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x47c138['show']({'id':'revisionSave','title':g(_0x33932f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4f50ae['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x47c138['hide']()},{'label':g(_0x4f50ae['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x18b97e){_0x18b97e['bind']('isEnabled')['to'](_0x3e9dd7,'isReady',_0x3e9dd7,'isEnabled',_0x4f50ae,'isReadOnly',(_0x5625eb,_0x428d0b,_0x484dac)=>_0x5625eb&&_0x428d0b&&!_0x484dac);},'onExecute':()=>_0x288439(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x54ce11=this['editor'],_0x59f8cd=_0x54ce11['locale'];this['_saveRevisionFormView']=new hs(_0x59f8cd,_0x54ce11['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x453898,_0x31583b){super(_0x453898),this['_model']=_0x31583b,this['changeId']=_0x31583b['id'];const _0x4c7bcf=this['bindTemplate'],_0x3de613=g(_0x453898,_0x31583b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x31583b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x31583b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4c7bcf['to']('type',_0x27ac96=>'ck-revision-change__'+_0x27ac96)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3de613}]},{'text':'\x20'+_0x31583b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x175e0a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x21d5d3){super(),this['id']=_0x21d5d3['id']||_0x3965a3(),this['author']=_0x21d5d3['author'],this['type']=_0x21d5d3['type'],this['data']=_0x21d5d3['data']||{},this['rootName']=_0x21d5d3['rootName'],this['set']('createdAt',_0x21d5d3['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(_0x1d855d,_0x56cf91){this['newRevisionId']=_0x1d855d,this['oldRevisionId']=_0x56cf91,this['changes']=new _0x27a842();}['_setChanges'](_0x54fa15){for(const _0x52e6ee of _0x54fa15)this['changes']['add'](_0x52e6ee);}}class m extends _0x4be61a{['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[_0x1b4791,_0x2e9d58,I,V];}constructor(_0x3a4748){super(_0x3a4748),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',(_0x3b32c2,_0x271d6e,_0x27e856)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2b74c5=>{for(const _0x20145d of this['editor']['editing']['view']['document']['roots'])_0x27e856?_0x2b74c5['removeClass']('ck-editor__editable__overlay',_0x20145d):_0x2b74c5['addClass']('ck-editor__editable__overlay',_0x20145d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x52cd47=>null!==_0x52cd47),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x36182c,_0x37a236,_0x1916b9)=>_0x36182c&&_0x1916b9?_0x37a236['changes']['getIndex'](_0x1916b9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x26ffc1,_0x49a42c)=>_0x26ffc1?_0x49a42c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2e9d58);}['init'](){const _0x17df99=this['editor'],_0x185f32=new wt(_0x17df99,{'direction':'backward'}),_0x241cfd=new wt(_0x17df99,{'direction':'forward'});(_0x17df99['commands']['add']('showPreviousChange',_0x185f32),_0x17df99['commands']['add']('showNextChange',_0x241cfd),_0x17df99['commands']['add']('restoreRevision',new mt(_0x17df99)),this['on']('change:numberOfChanges',()=>{_0x185f32['refresh'](),_0x241cfd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x17df99['enableReadOnlyMode']('revision-viewer'),_0x17df99['plugins']['has']('WidgetToolbarRepository'))&&_0x17df99['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2be1bd){return await this['_utils']['loadRevisionData'](_0x2be1bd,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2be1bd);}async['getRevisionRootsAttributes'](_0x58611a){return await this['_utils']['loadRevisionData'](_0x58611a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x58611a);}async['compare'](_0xc6f40,_0x147713,_0x1a118a=!0x1){if(!this['isEnabled'])return;const _0x3869bb=this['diff'],_0xc6ef82=this['repository'],_0x45f6b8='string'==typeof _0xc6f40?_0xc6ef82['getRevision'](_0xc6f40):_0xc6f40,_0xc48775='string'==typeof _0x147713?_0xc6ef82['getRevision'](_0x147713):_0x147713,_0x19451c=_0x45f6b8['id'],_0x44853f=_0xc48775?_0xc48775['id']:null;if(!_0x1a118a&&this['diff']&&this['diff']['newRevisionId']===_0x19451c&&this['diff']['oldRevisionId']===_0x44853f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x19451c,_0x44853f);const _0x41b2af=this['_getRevisionsRange'](_0x45f6b8,_0xc48775,!0x0)['map'](_0x322da8=>this['_utils']['loadRevisionData'](_0x322da8,this['adapter']));return _0x41b2af['push'](new Promise(_0xc5b467=>{setTimeout(_0xc5b467,0x14);})),Promise['all'](_0x41b2af)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x426dce=this['_getDiff'](_0x19451c,_0x44853f);for(const _0x20ff57 of _0x426dce['changes'])this['_changeIdToChange']['set'](_0x20ff57['id'],_0x20ff57);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4eb4b0=>{for(const _0x51e59f of this['editor']['model']['document']['getRootNames']())_0x4eb4b0['detachRoot'](_0x51e59f);for(const _0x28c487 of Object['keys'](_0x426dce['model'])){const _0x313cb0=_0x4eb4b0['addRoot'](_0x28c487);for(const _0x21ea04 of Object['keys'](_0x426dce['attributes'][_0x28c487]))_0x4eb4b0['setAttribute'](_0x21ea04,_0x426dce['attributes'][_0x28c487][_0x21ea04],_0x313cb0);_0x4eb4b0['insert'](_0x426dce['model'][_0x28c487],_0x313cb0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x426dce['changes'])),this['isReady']=!0x0;})['catch'](_0x267dbc=>{console['error'](_0x267dbc),this['_cleanUp'](),_0x3869bb&&(this['diff']=_0x3869bb),this['isReady']=!0x0;});}['addRevisionData'](_0xb5e927,_0x1861cc){const _0x558cfd=this['repository']['createRevision'](_0xb5e927);return _0x558cfd['on']('_update',(_0x394349,_0x5e205b,_0x348c5c)=>_0x1861cc(_0x5e205b,_0x348c5c,_0x558cfd)),this['repository']['addRevision'](_0x558cfd),_0x558cfd;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2aa0e0=>{for(const _0x3a92c9 of this['editor']['model']['document']['getRootNames']())_0x2aa0e0['detachRoot'](_0x3a92c9);});}['_sortAndFilterDiffChanges'](_0x502357){const _0x26e93f=[],_0x5a28fe=new Map();for(const _0x2fe3d7 of this['editor']['model']['document']['getRootNames']()){const _0x30f795=this['editor']['editing']['view']['getDomRoot'](_0x2fe3d7);if(!_0x30f795)continue;const _0x1f4d60=_0x30f795['getClientRects']()['item'](0x0);_0x1f4d60&&(_0x26e93f['push'](_0x2fe3d7),_0x5a28fe['set'](_0x2fe3d7,_0x1f4d60));}return _0x26e93f['sort']((_0x29a29d,_0x5a81cf)=>{const _0x394de2=_0x5a28fe['get'](_0x29a29d),_0x49e3b8=_0x5a28fe['get'](_0x5a81cf);return _0x394de2['y']-_0x49e3b8['y']||_0x394de2['x']-_0x49e3b8['x'];}),(_0x502357=_0x502357['filter'](_0x1d49b0=>_0x26e93f['includes'](_0x1d49b0['rootName'])))['sort']((_0x5a39e0,_0x1cf890)=>_0x26e93f['indexOf'](_0x5a39e0['rootName'])-_0x26e93f['indexOf'](_0x1cf890['rootName'])),_0x502357;}['_makeTape'](_0x4be2a8){const _0x3f2492=Array['from'](_0x4be2a8['markers'])['filter'](([_0x5b9506,_0x464192])=>_0x5b9506['startsWith']('revision:')&&!_0x464192['isCollapsed']),_0x3ba8f2=Array['from'](this['editor']['model']['createRangeIn'](_0x4be2a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3f2492['length'])for(const _0x5c21ab of _0x3ba8f2){const [_0x4f2058,_0x1a0d43]=_0x3f2492[0x0],[,_0x4dd067,_0x1957e9]=_0x4f2058['split'](':');if(_0x1a0d43['end']['isEqual'](_0x5c21ab['nextPosition'])&&_0x3f2492['shift'](),(_0x5c21ab['previousPosition']['isEqual'](_0x1a0d43['start'])||_0x5c21ab['previousPosition']['isAfter'](_0x1a0d43['start']))&&('insertion'==_0x4dd067?_0x5c21ab['isAdded']={'userId':_0x1957e9}:'deletion'==_0x4dd067&&(_0x5c21ab['isRemoved']={'userId':_0x1957e9})),0x0==_0x3f2492['length'])break;}return _0x3ba8f2;}['_refreshStartEndIndex'](_0x2ebe0a){const _0x476ce5=new Map();for(let _0x4eb045=0x0;_0x4eb045<_0x2ebe0a['length'];_0x4eb045++)'text'===_0x2ebe0a[_0x4eb045]['type']?(_0x2ebe0a[_0x4eb045]['item']['startIndex']=_0x4eb045,_0x2ebe0a[_0x4eb045]['item']['endIndex']=_0x4eb045):('elementStart'===_0x2ebe0a[_0x4eb045]['type']?_0x2ebe0a[_0x4eb045]['item']['startIndex']=_0x4eb045:'elementEnd'===_0x2ebe0a[_0x4eb045]['type']&&(_0x2ebe0a[_0x4eb045]['item']['endIndex']=_0x4eb045),_0x476ce5['set'](_0x2ebe0a[_0x4eb045]['id'],_0x4eb045));for(const _0x1814ab of _0x476ce5['values']())'elementStart'===_0x2ebe0a[_0x1814ab]['type']?_0x2ebe0a[_0x1814ab]['item']['endIndex']=_0x476ce5['get'](_0x2ebe0a[_0x1814ab]['pairId']):'elementEnd'===_0x2ebe0a[_0x1814ab]['type']&&(_0x2ebe0a[_0x1814ab]['item']['startIndex']=_0x476ce5['get'](_0x2ebe0a[_0x1814ab]['pairId']));}['_processTape'](_0x14a02c){for(let _0x52101e=0x0;_0x52101e<_0x14a02c['length'];_0x52101e++){if('elementStart'===_0x14a02c[_0x52101e]['type'])_0x14a02c[_0x52101e]['item']['startIndex']=_0x52101e;else{if('elementEnd'===_0x14a02c[_0x52101e]['type']){_0x14a02c[_0x52101e]['item']['endIndex']=_0x52101e;const _0x2d1995=_0x14a02c[_0x52101e]['item']['startIndex'];_0x14a02c[_0x2d1995]['pairId']=_0x14a02c[_0x52101e]['id'],_0x14a02c[_0x52101e]['pairId']=_0x14a02c[_0x2d1995]['id'];}else _0x14a02c[_0x52101e]['item']['startIndex']=_0x52101e,_0x14a02c[_0x52101e]['item']['endIndex']=_0x52101e,_0x14a02c[_0x52101e]['pairId']=null;}_0x14a02c[_0x52101e]['markersStart']||(_0x14a02c[_0x52101e]['markersStart']=[],_0x14a02c[_0x52101e]['markersEnd']=[]);}}['_markInsertions'](_0x29ed13,_0x191405){const _0x38903b=_0x29ed13['filter'](_0x33da45=>!_0x33da45['isAdded']);for(let _0x10b360=0x0;_0x10b360<_0x191405['length'];_0x10b360++)_0x191405[_0x10b360]['isAdded']&&(_0x38903b[_0x10b360]['isAdded']=_0x191405[_0x10b360]['isAdded']);}['_getDiff'](_0x418864,_0x2e10e0=null){const _0x411298=this['repository']['getRevision'](_0x418864),_0x43db4d=_0x2e10e0?this['repository']['getRevision'](_0x2e10e0):null,_0x2edc63=this['_getRevisionsRange'](_0x411298,_0x43db4d),_0x36eb4e=_0x2edc63[_0x2edc63['length']-0x1],_0x54c6b2=new Map(),_0x3baaa4={'model':{},'attributes':{},'changes':[]},_0x4aacbf=new Set(),_0xa891dd=new Map();for(let _0x1abedf=_0x2edc63['length']-0x1;_0x1abedf>=0x0;_0x1abedf--){const _0x404421=_0x2edc63[_0x1abedf];for(const _0x2a9df7 of Object['keys'](_0x404421['diffData']))if(_0x404421['diffData'][_0x2a9df7]['attachChange']){const _0x5d6d4e=_0x404421['diffData'][_0x2a9df7]['attachChange'];_0x5d6d4e['isAttached']?(_0x4aacbf['add'](_0x2a9df7),_0xa891dd['has'](_0x2a9df7)&&_0xa891dd['get'](_0x2a9df7)['userId']==_0x5d6d4e['userId']?_0xa891dd['delete'](_0x2a9df7):_0xa891dd['set'](_0x2a9df7,_0x5d6d4e)):_0xa891dd['has'](_0x2a9df7)?(_0x4aacbf['delete'](_0x2a9df7),_0xa891dd['delete'](_0x2a9df7)):(_0x4aacbf['add'](_0x2a9df7),_0xa891dd['set'](_0x2a9df7,_0x5d6d4e));}else _0x4aacbf['add'](_0x2a9df7);}for(const _0x4ac682 of _0x4aacbf){const _0x395a7c=_0xa891dd['has'](_0x4ac682)&&!_0xa891dd['get'](_0x4ac682)['isAttached'];let _0x5eb27a=_0x395a7c?_0x2edc63['length']-0x1:0x0;const _0x2a82a1=_0x395a7c?-0x1:0x1;for(;_0x2edc63[_0x5eb27a];){const _0x5cbbce=_0x2edc63[_0x5eb27a];if(_0x5cbbce['diffData'][_0x4ac682]){const _0x309840=_0x395a7c?_0x5cbbce['diffData'][_0x4ac682]['attributesBefore']:_0x5cbbce['diffData'][_0x4ac682]['attributesAfter'];_0x3baaa4['attributes'][_0x4ac682]=_0x309840?_0xe5768f(_0x309840):{};break;}_0x5eb27a+=_0x2a82a1;}}for(const _0x4287bb of _0x2edc63){_0x4287bb['model']={};for(const _0x2f248b of _0x4287bb['authors'])_0x54c6b2['set'](_0x2f248b['id'],_0x2f248b);for(const _0x3e9407 of _0x4aacbf){const _0x4d54ff=_0x4287bb['diffData'][_0x3e9407]?_0x4287bb['diffData'][_0x3e9407]['insertions']:'[]',_0x24acaf=_0x4287bb['diffData'][_0x3e9407]?_0x4287bb['diffData'][_0x3e9407]['deletions']:'[]';_0x4287bb['model'][_0x3e9407]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4d54ff),'deletions':this['_utils']['_makeModelFromViewString'](_0x24acaf)};}}for(const _0x305077 of _0x4aacbf){let _0x279fa3=null,_0x2af4ae=0x0;const _0x166f89=new Map(Array['from'](_0x411298['model'][_0x305077]['insertions']['markers'])['filter'](([_0x3f222b])=>!_0x3f222b['startsWith']('revision:')));let _0x55bf2b=0x0;for(const _0x866a53 of _0x2edc63){const _0x584583=this['_makeTape'](_0x866a53['model'][_0x305077]['insertions']);_0x866a53==_0x411298?(_0x279fa3=_0x584583,_0x2af4ae=_0x279fa3['length'],_0x279fa3['forEach'](_0x195343=>{_0x195343['id']=_0x55bf2b++;}),this['_processTape'](_0x279fa3)):this['_markInsertions'](_0x279fa3,_0x584583);const _0x187fca=_0x279fa3['filter'](_0x132fc0=>!_0x132fc0['isAdded'])['map'](_0x76353=>_0x76353['id']);let _0x4dda41=0x0;const _0xaf5308=this['_makeTape'](_0x866a53['model'][_0x305077]['deletions']);_0xaf5308['forEach'](_0x2920f2=>{_0x2920f2['isRemoved']?_0x2920f2['id']=_0x2af4ae++:_0x2920f2['id']=_0x187fca[_0x4dda41++];}),this['_processTape'](_0xaf5308),this['_setDistance'](_0x279fa3,'isAdded'),this['_setDistance'](_0xaf5308,'isRemoved'),_0x866a53==_0x411298&&this['_markMarkers'](_0x279fa3,_0x166f89),_0x279fa3=this['_joinTapes'](_0x279fa3,_0xaf5308),this['_refreshStartEndIndex'](_0x279fa3),this['_setDistance'](_0x279fa3,'isRemoved');}_0x279fa3=_0x279fa3['filter'](_0x19fe8b=>!(_0x19fe8b['isAdded']&&_0x19fe8b['isRemoved']));const _0x5d133e=new Map(_0x36eb4e['model'][_0x305077]['deletions']['markers']),_0x4d925d=new Set(_0x166f89['keys']());for(const _0x4c493b of _0x5d133e['keys']())_0x4d925d['delete'](_0x4c493b);this['_markSuggestions'](_0x279fa3,_0x4d925d),this['_fixObsoleteTags'](_0x279fa3),_0x279fa3=this['_removeMissingPairs'](_0x279fa3),_0x279fa3=this['_markMismatchedRemovedTags'](_0x279fa3),_0x279fa3=this['_removeUnsupportedChanges'](_0x279fa3);const {root:_0x599b35,changes:_0x23b8a3}=this['_makeModelFromTape'](_0x279fa3,_0x54c6b2,_0x305077);_0x3baaa4['model'][_0x305077]=_0x599b35;const _0x1204ea=_0xa891dd['get'](_0x305077);if(_0x1204ea){const _0x17a9b0=_0x54c6b2['get'](_0x1204ea['userId']),_0x31ed7f=new r({'author':_0x17a9b0,'type':_0x1204ea['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x305077});_0x23b8a3['unshift'](_0x31ed7f),_0x3baaa4['attributes'][_0x305077]['revisionHistoryAttachChange']=_0x31ed7f['id'];}_0x3baaa4['changes']=_0x3baaa4['changes']['concat'](_0x23b8a3);}return _0x3baaa4;}['_markMarkers'](_0x314e2c,_0x3d80a8){for(let _0x35b907=0x0;_0x35b907<_0x314e2c['length'];_0x35b907++)for(const [_0x534f30,_0x2121ae]of _0x3d80a8)!_0x2121ae['isCollapsed']&&_0x2121ae['start']['isEqual'](_0x314e2c[_0x35b907]['previousPosition'])&&_0x314e2c[_0x35b907]['markersStart']['push'](_0x534f30),_0x2121ae['end']['isEqual'](_0x314e2c[_0x35b907]['nextPosition'])&&_0x314e2c[_0x35b907]['markersEnd']['push'](_0x534f30);}['_joinTapes'](_0x1d2965,_0x1213f3){let _0x2b69a7=[],_0x3e9139=0x0,_0x5115e4=0x0;for(;_0x3e9139<_0x1d2965['length']||_0x5115e4<_0x1213f3['length'];){const _0x40f51c=_0x1d2965[_0x3e9139]||{},_0x52cfb5=_0x1213f3[_0x5115e4]||{};if(_0x40f51c['id']==_0x52cfb5['id'])_0x3e9139++,_0x5115e4++,_0x2b69a7['push'](_0x40f51c);else{if(_0x52cfb5['isRemoved']&&_0x40f51c['isAdded']){const {commonTape:_0x12c49f,iEnd:_0xeeb4cb,jEnd:_0x4c9cb8}=this['_threeWayMerge'](_0x1d2965,_0x3e9139,_0x1213f3,_0x5115e4);_0x2b69a7=_0x2b69a7['concat'](_0x12c49f),_0x3e9139=_0xeeb4cb,_0x5115e4=_0x4c9cb8;}else _0x52cfb5['isRemoved']?(_0x5115e4++,_0x2b69a7['push'](_0x52cfb5)):(_0x3e9139++,_0x2b69a7['push'](_0x40f51c));}}return _0x2b69a7;}['_markSuggestions'](_0x36e5ef,_0x275f){const _0x28b56b=[];for(let _0x334b8f=0x0;_0x334b8f<_0x36e5ef['length'];_0x334b8f++){for(let _0x49ab49=0x0;_0x49ab49<_0x36e5ef[_0x334b8f]['markersStart']['length'];_0x49ab49++){const _0x2083ab=_0x36e5ef[_0x334b8f]['markersStart'][_0x49ab49];if(!_0x275f['has'](_0x2083ab))continue;const {group:_0x32f1b6,type:_0x5cd684,authorId:_0x43130d}=_0x5337c5(_0x2083ab);'revision-suggestion'!=_0x32f1b6||'insertion'!=_0x5cd684&&'deletion'!=_0x5cd684||(_0x28b56b['unshift']({'type':_0x5cd684,'name':_0x2083ab,'userId':_0x43130d}),_0x36e5ef[_0x334b8f]['markersStart']['splice'](_0x49ab49,0x1),_0x49ab49--);}_0x291280(_0x36e5ef[_0x334b8f]);for(let _0x3b63a1=0x0;_0x3b63a1<_0x36e5ef[_0x334b8f]['markersEnd']['length'];_0x3b63a1++){const _0x28f3be=_0x36e5ef[_0x334b8f]['markersEnd'][_0x3b63a1];if(!_0x275f['has'](_0x28f3be))continue;const {group:_0x53ad66,type:_0x5bc8b8}=_0x5337c5(_0x28f3be);if('revision-suggestion'!=_0x53ad66||'insertion'!=_0x5bc8b8&&'deletion'!=_0x5bc8b8)continue;_0x36e5ef[_0x334b8f]['markersEnd']['splice'](_0x3b63a1,0x1),_0x3b63a1--;const _0x340bd2=_0x28b56b['findIndex'](_0x1ce13b=>_0x1ce13b['name']==_0x28f3be);_0x340bd2>-0x1&&_0x28b56b['splice'](_0x340bd2,0x1);}}function _0x5337c5(_0x42ab04){const _0x425f12=_0x42ab04['split'](':');return{'group':_0x425f12[0x0],'type':_0x425f12[0x1],'subType':_0x425f12['length']>=0x5?_0x425f12[0x2]:null,'id':_0x425f12['length']<0x5?_0x425f12[0x2]:_0x425f12[0x3],'authorId':_0x425f12['length']<0x5?_0x425f12[0x3]:_0x425f12[0x4],'markerCount':0x6==_0x425f12['length']?_0x425f12[0x5]:null};}function _0x291280(_0x4179c2){for(let _0x17f3f0=0x0;_0x17f3f0<_0x28b56b['length'];_0x17f3f0++){if(_0x4179c2['isAdded']&&'insertion'==_0x28b56b[_0x17f3f0]['type'])return _0x4179c2['isAddSuggestion']=_0x28b56b[_0x17f3f0],void delete _0x4179c2['isAdded'];if(!_0x4179c2['isAdded']&&!_0x4179c2['isRemoved']&&'deletion'==_0x28b56b[_0x17f3f0]['type'])return void(_0x4179c2['isRemoveSuggestion']=_0x28b56b[_0x17f3f0]);}}}['_setDistance'](_0x45e550,_0x1213d1){let _0x4a7a5a=0x0,_0x49af76=!0x1;const _0x44cc17=new Map();for(const _0x105075 of _0x45e550)_0x105075[_0x1213d1]?_0x49af76&&(_0x4a7a5a++,_0x49af76=!0x1):(_0x4a7a5a++,_0x49af76=!0x0),_0x44cc17['set'](_0x105075['id'],_0x4a7a5a);for(let _0x2f20ed=0x0;_0x2f20ed<_0x45e550['length'];_0x2f20ed++){if('isRemoved'==_0x1213d1&&_0x45e550[_0x2f20ed]['isAdded']||'isAdded'==_0x1213d1&&_0x45e550[_0x2f20ed]['isRemoved'])continue;if('text'==_0x45e550[_0x2f20ed]['type']){_0x45e550[_0x2f20ed]['distance']=0x0;continue;}const _0x5b2566=_0x44cc17['get'](_0x45e550[_0x2f20ed]['pairId']),_0x4cb66f=_0x44cc17['get'](_0x45e550[_0x2f20ed]['id']);_0x45e550[_0x2f20ed]['distance']=_0x5b2566-_0x4cb66f;}}['_getRevisionsRange'](_0x303fd8,_0x3cc68a,_0x299da6=!0x1){const _0x4bdc7c=[];let _0x3e6c6e=this['repository']['getIndex'](_0x303fd8),_0x5eff9e=this['repository']['getIndex'](_0x3cc68a);for(-0x1==_0x5eff9e&&(_0x5eff9e=this['repository']['_revisions']['length'],_0x299da6=!0x1);_0x3e6c6e<_0x5eff9e;)_0x4bdc7c['push'](this['repository']['getRevision'](_0x3e6c6e)),_0x3e6c6e++;return _0x299da6&&_0x4bdc7c['push'](this['repository']['getRevision'](_0x3e6c6e)),_0x4bdc7c;}['_threeWayMerge'](_0x3fc386,_0x5e81cc,_0x5a3fa3,_0xf07d8d){const _0x47d5c1=this['editor']['model']['schema'];let _0x1533e0=_0x5e81cc;for(;_0x3fc386[_0x1533e0]&&_0x3fc386[_0x1533e0]['isAdded'];)_0x1533e0++;let _0x1ca107=_0xf07d8d;for(;_0x5a3fa3[_0x1ca107]&&_0x5a3fa3[_0x1ca107]['isRemoved'];)_0x1ca107++;_0x3d4a68(_0x3fc386,_0x5e81cc,_0x1533e0),_0x3d4a68(_0x5a3fa3,_0xf07d8d,_0x1ca107);const _0x32933f=_0x5a3fa3['slice'](_0xf07d8d,_0x1ca107)['concat'](_0x3fc386['slice'](_0x5e81cc,_0x1533e0));return _0x32933f['sort']((_0x50781b,_0x137925)=>_0x50781b['side']!=_0x137925['side']?_0x50781b['side']-_0x137925['side']:_0x50781b['level']!=_0x137925['level']?_0x50781b['level']-_0x137925['level']:_0x50781b['distance']!=_0x137925['distance']?_0x137925['distance']-_0x50781b['distance']:!!_0x50781b['isAdded']!=!!_0x137925['isAdded']?-0x1==_0x50781b['side']||0x0==_0x50781b['side']?_0x50781b['isAdded']?-0x1:0x1:_0x50781b['isAdded']?0x1:-0x1:_0x50781b['index']-_0x137925['index']),{'commonTape':_0x32933f,'iEnd':_0x1533e0,'jEnd':_0x1ca107};function _0x3d4a68(_0x90ae3a,_0x2c836e,_0x1fe710){let _0x50a871=-0x1,_0x10ca0c=Number['POSITIVE_INFINITY'],_0x5a1c51=!0x0;for(let _0x188516=_0x2c836e;_0x188516<_0x1fe710;_0x188516++)if(_0x47d5c1['isInline'](_0x90ae3a[_0x188516]['item'])||(_0x5a1c51=!0x1),_0x90ae3a[_0x188516]['item']['startIndex']<_0x2c836e&&(_0x50a871=_0x188516),_0x90ae3a[_0x188516]['item']['endIndex']>=_0x1fe710){_0x10ca0c=_0x188516;break;}_0x5a1c51&&(_0x50a871=_0x1fe710-0x1);for(let _0x575721=_0x2c836e;_0x575721<_0x1fe710;_0x575721++)_0x90ae3a[_0x575721]['side']=_0x575721<=_0x50a871?-0x1:_0x575721<_0x10ca0c?0x0:0x1,_0x90ae3a[_0x575721]['index']=_0x575721;let _0x58c9f6=0x0;for(let _0xf94aa1=_0x2c836e;_0xf94aa1<=_0x50a871;_0xf94aa1++)0x0==_0x90ae3a[_0xf94aa1]['distance']?_0x90ae3a[_0xf94aa1]['level']=_0x58c9f6:(_0x58c9f6++,_0x90ae3a[_0xf94aa1]['level']=_0x58c9f6,_0x58c9f6++);for(let _0x543670=_0x2c836e;_0x543670<_0x1fe710;_0x543670++)0x0==_0x90ae3a[_0x543670]['side']&&(_0x90ae3a[_0x543670]['level']=_0x58c9f6);_0x58c9f6=0x0;for(let _0x245d64=_0x1fe710-0x1;_0x245d64>=_0x10ca0c;_0x245d64--)0x0==_0x90ae3a[_0x245d64]['distance']?_0x90ae3a[_0x245d64]['level']=_0x58c9f6:(_0x58c9f6--,_0x90ae3a[_0x245d64]['level']=_0x58c9f6,_0x58c9f6--);}}['_fixObsoleteTags'](_0x5cc7b8){const _0x3a5338=new Map(),_0xb0c0f8=this['editor']['model']['schema'];for(let _0x2ddf1d=0x1;_0x2ddf1d<_0x5cc7b8['length'];_0x2ddf1d++){let _0x779145,_0x49f89f,_0x2d7e8e;const _0x237d03=_0x5cc7b8[_0x2ddf1d],_0xeb23cf=_0x5cc7b8[_0x2ddf1d-0x1];if('text'==_0x237d03['type'])continue;if(_0x237d03['type']!=_0xeb23cf['type'])continue;if(!_0xb0c0f8['isBlock'](_0xeb23cf['item'])||_0xb0c0f8['isLimit'](_0xeb23cf['item']))continue;if(!_0xb0c0f8['isBlock'](_0x237d03['item'])||_0xb0c0f8['isLimit'](_0x237d03['item']))continue;if((_0x5cc7b8[_0x2ddf1d]['isAdded']||_0x5cc7b8[_0x2ddf1d]['isAddSuggestion'])&&_0x5cc7b8[_0x2ddf1d-0x1]['isRemoved'])_0x779145=_0x5cc7b8[_0x2ddf1d],_0x49f89f=_0x5cc7b8[_0x2ddf1d-0x1],_0x2d7e8e=_0x2ddf1d-0x1;else{if(!_0x5cc7b8[_0x2ddf1d]['isRemoved']||!_0x5cc7b8[_0x2ddf1d-0x1]['isAdded']&&!_0x5cc7b8[_0x2ddf1d-0x1]['isAddSuggestion'])continue;_0x779145=_0x5cc7b8[_0x2ddf1d-0x1],_0x49f89f=_0x5cc7b8[_0x2ddf1d],_0x2d7e8e=_0x2ddf1d;}const _0x2b7323=_0x779145['level']==_0x49f89f['level'],_0x3c269e=Math['abs'](_0x779145['level'])<Math['abs'](_0x49f89f['level'])&&0x0==_0x49f89f['distance'];(_0x2b7323||_0x3c269e)&&(_0x3a5338['set'](_0x49f89f['id'],_0x779145['id']),_0x5cc7b8['splice'](_0x2d7e8e,0x1),_0x2ddf1d--,_0x779145['isAdded']=!0x1);}for(let _0x47170c=0x0;_0x47170c<_0x5cc7b8['length'];_0x47170c++)_0x3a5338['has'](_0x5cc7b8[_0x47170c]['pairId'])&&(_0x5cc7b8[_0x47170c]['pairId']=_0x3a5338['get'](_0x5cc7b8[_0x47170c]['pairId']));}['_removeMissingPairs'](_0x10154e){const _0xc4b73d=new Set(_0x10154e['map'](_0x2b1c66=>_0x2b1c66['id']));for(let _0x3de993=0x0;_0x3de993<_0x10154e['length'];_0x3de993++)_0xc4b73d['has'](_0x10154e[_0x3de993]['pairId'])||0x0==_0x10154e[_0x3de993]['distance']||(_0x10154e[_0x3de993]['isIncorrect']=!0x0);return _0x10154e['filter'](_0x4bc72b=>!_0x4bc72b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2df5be){const _0x219cdd=new Set();for(let _0x255ee6=0x0;_0x255ee6<_0x2df5be['length'];_0x255ee6++){if(_0x219cdd['has'](_0x2df5be[_0x255ee6]['id'])&&_0x2df5be[_0x255ee6]['isRemoved']&&(_0x2df5be[_0x255ee6]['isIncorrect']=!0x0),_0x2df5be[_0x255ee6]['isIncorrect'])continue;if(0x0==_0x2df5be[_0x255ee6]['distance'])continue;if('elementStart'!=_0x2df5be[_0x255ee6]['type'])continue;if(null==_0x2df5be[_0x255ee6]['pairId'])continue;let _0x39db6e=_0x255ee6+0x1,_0x5475c0=0x0;for(;_0x2df5be[_0x39db6e]['id']!=_0x2df5be[_0x255ee6]['pairId'];)'elementStart'==_0x2df5be[_0x39db6e]['type']?_0x5475c0++:'elementEnd'==_0x2df5be[_0x39db6e]['type']&&_0x5475c0--,_0x39db6e++;if(0x0!=_0x5475c0){if(_0x2df5be[_0x255ee6]['isRemoved'])_0x2df5be[_0x255ee6]['isIncorrect']=!0x0;else{for(;_0x39db6e!=_0x255ee6;)_0x2df5be[_0x39db6e]['isRemoved']&&0x0!=_0x2df5be[_0x39db6e]['distance']&&(_0x2df5be[_0x39db6e]['isIncorrect']=!0x0,_0x219cdd['add'](_0x2df5be[_0x39db6e]['pairId'])),_0x39db6e--;}}}return _0x2df5be['filter'](_0x2d87cf=>!_0x2d87cf['isIncorrect']);}['_removeUnsupportedChanges'](_0x3d9189){const _0x57e9f6=this['editor']['model']['schema'];for(let _0xaa5114=0x0;_0xaa5114<_0x3d9189['length'];_0xaa5114++){if(!(_0x3d9189[_0xaa5114]['isAdded']||_0x3d9189[_0xaa5114]['isAddSuggestion']||_0x3d9189[_0xaa5114]['isRemoved']||_0x3d9189[_0xaa5114]['isRemoveSuggestion']))continue;if(0x0==_0x3d9189[_0xaa5114]['distance'])continue;const _0x1dfc94=_0x3d9189[_0xaa5114]['item'];_0x57e9f6['isBlock'](_0x1dfc94)||_0x57e9f6['isLimit'](_0x1dfc94)||(_0x3d9189[_0xaa5114]['isAdded']&&delete _0x3d9189[_0xaa5114]['isAdded'],_0x3d9189[_0xaa5114]['isAddSuggestion']&&delete _0x3d9189[_0xaa5114]['isAddSuggestion'],_0x3d9189[_0xaa5114]['isRemoveSuggestion']&&delete _0x3d9189[_0xaa5114]['isRemoveSuggestion'],_0x3d9189[_0xaa5114]['isRemoved']&&(_0x3d9189[_0xaa5114]['isIncorrect']=!0x0));}return _0x3d9189['filter'](_0x479e46=>!_0x479e46['isIncorrect']);}['_makeModelFromTape'](_0x25dace,_0x2d573d,_0x296316){const _0x5b25e9=new vt(),_0x35adf3=[],_0xe4d19=new Map(),_0x427b10=this['editor']['model'],_0x2ba17d=_0x427b10['schema'],_0x3e63f3=[_0x5b25e9],_0x221c77={},_0x415ad0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd275d7=null;const _0x5070ae=[0x0];for(let _0x916dab=0x0;_0x916dab<_0x25dace['length'];_0x916dab++)if('elementStart'===_0x25dace[_0x916dab]['type']){_0x25dace[_0x916dab]['previousPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae);const _0x3d5898=new ut(_0x25dace[_0x916dab]['item']['name'],_0x25dace[_0x916dab]['item']['getAttributes']());_0x3e63f3[0x0]['_appendChild'](_0x3d5898),_0x5070ae['push'](0x0),_0x3e63f3['unshift'](_0x3d5898),_0x25dace[_0x916dab]['nextPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae);}else'elementEnd'===_0x25dace[_0x916dab]['type']?(_0x3e63f3['shift'](),_0x25dace[_0x916dab]['previousPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae),_0x5070ae['pop'](),_0x5070ae[_0x5070ae['length']-0x1]++,_0x25dace[_0x916dab]['nextPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae)):(_0x25dace[_0x916dab]['previousPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae),_0xd275d7?_0xd275d7['_data']+=_0x25dace[_0x916dab]['item']['data']:_0xd275d7=new gt(_0x25dace[_0x916dab]['item']['data'],_0x25dace[_0x916dab]['item']['getAttributes']()),_0x25dace[_0x916dab+0x1]&&'text'===_0x25dace[_0x916dab+0x1]['type']&&_0x35801d(_0xd275d7,_0x25dace[_0x916dab+0x1]['item'])||(_0x3e63f3[0x0]['_appendChild'](_0xd275d7),_0xd275d7=null),_0x5070ae[_0x5070ae['length']-0x1]+=_0x25dace[_0x916dab]['item']['offsetSize'],_0x25dace[_0x916dab]['nextPosition']=_0x427b10['createPositionFromPath'](_0x5b25e9,_0x5070ae));for(let _0x30ef3f=0x0;_0x30ef3f<_0x25dace['length'];_0x30ef3f++){const _0x19b700=_0x25dace[_0x30ef3f]['previousPosition'],_0x414183=_0x25dace[_0x30ef3f]['nextPosition'];for(const _0x548212 of _0x25dace[_0x30ef3f]['markersStart'])_0xe4d19['set'](_0x548212,{'start':_0x19b700,'end':null});_0x478307('isRemoveSuggestion',_0x30ef3f,_0x19b700,_0x414183),_0x478307('isAddSuggestion',_0x30ef3f,_0x19b700,_0x414183),_0x478307('isRemoved',_0x30ef3f,_0x19b700,_0x414183),_0x478307('isAdded',_0x30ef3f,_0x19b700,_0x414183);for(const _0x2a64e2 of _0x25dace[_0x30ef3f]['markersEnd']){const _0x5a44bf=_0xe4d19['get'](_0x2a64e2);_0x5a44bf?_0x5a44bf['end']=_0x414183:_0xe4d19['set'](_0x2a64e2,{'start':_0x414183,'end':_0x414183});}}for(const [_0xdab621,_0x129066]of _0xe4d19){const _0x15c92d=this['editor']['model']['createRange'](_0x129066['start'],_0x129066['end']);_0x5b25e9['markers']['set'](_0xdab621,_0x15c92d);}return _0x35adf3['sort']((_0x479ecf,_0xfd1037)=>{const _0x3e6db4=_0x5b25e9['markers']['get']('revision:'+_0x479ecf['id']),_0x45a8bf=_0x5b25e9['markers']['get']('revision:'+_0xfd1037['id']);return _0x3e6db4['start']['isBefore'](_0x45a8bf['start'])?-0x1:_0x3e6db4['start']['isAfter'](_0x45a8bf['start'])?0x1:_0x3e6db4['end']['isBefore'](_0x45a8bf['end'])?-0x1:_0x3e6db4['end']['isAfter'](_0x45a8bf['end'])?0x1:'add'===_0x479ecf['type']?-0x1:0x1;}),{'root':_0x5b25e9,'changes':_0x35adf3};function _0x478307(_0x4e9380,_0x2b561d,_0x4bce5f,_0x507741){const _0x356df1=!!_0x25dace[_0x2b561d][_0x4e9380],_0x10c157=_0x356df1?_0x25dace[_0x2b561d][_0x4e9380]['userId']:null,_0x39505f=_0x2b561d===_0x25dace['length']-0x1,_0x54aad8=_0x415ad0[_0x4e9380][0x0],_0x70865a=_0x2ba17d['isObject'](_0x25dace[_0x2b561d]['item']);!_0x221c77[_0x4e9380]&&_0x356df1?_0x221c77[_0x4e9380]={'start':_0x4bce5f,'tapeItem':_0x25dace[_0x2b561d],'userId':_0x10c157,'type':_0x4e9380}:_0x221c77[_0x4e9380]&&!_0x356df1?(_0x221c77[_0x4e9380]['end']=_0x4bce5f,_0x1c990c(_0x221c77[_0x4e9380]),_0x221c77[_0x4e9380]=null):_0x221c77[_0x4e9380]&&_0x356df1&&_0x221c77[_0x4e9380]['userId']!==_0x10c157&&(_0x221c77[_0x4e9380]['end']=_0x4bce5f,_0x54aad8&&_0x54aad8['userId']===_0x221c77[_0x4e9380]['userId']||_0x1c990c(_0x221c77[_0x4e9380]),_0x221c77[_0x4e9380]={'start':_0x4bce5f,'tapeItem':_0x25dace[_0x2b561d],'userId':_0x10c157,'type':_0x4e9380}),_0x221c77[_0x4e9380]&&_0x70865a&&('elementStart'!==_0x25dace[_0x2b561d]['type']||_0x54aad8&&_0x54aad8['userId']===_0x10c157||_0x415ad0[_0x4e9380]['unshift']({'userId':_0x10c157,'object':_0x25dace[_0x2b561d]['item'],'change':_0x221c77[_0x4e9380]}),'elementEnd'===_0x25dace[_0x2b561d]['type']&&_0x54aad8&&_0x54aad8['object']===_0x25dace[_0x2b561d]['item']&&(_0x415ad0[_0x4e9380]['shift'](),_0x221c77[_0x4e9380]=_0x54aad8['change'])),_0x221c77[_0x4e9380]&&_0x39505f&&(_0x221c77[_0x4e9380]['end']=_0x507741,_0x1c990c(_0x221c77[_0x4e9380]),_0x221c77[_0x4e9380]=null);}function _0x1c990c({start:_0x49c068,end:_0x2ecfab,tapeItem:_0x522386,userId:_0x539e23,type:_0x3b1e3f}){const _0x54ea04=_0x522386['item'],_0x2d5ae8=_0x427b10['schema']['isBlock'](_0x54ea04)&&!_0x427b10['schema']['isLimit'](_0x54ea04),_0x81c762=_0x49c068['nodeAfter']==_0x2ecfab['parent']&&_0x2ecfab['isAtStart'];if(_0x2d5ae8&&_0x81c762)return;const _0xce4a0b=_0x427b10['createRange'](_0x49c068,_0x2ecfab),_0x337174=_0x2d573d['get'](_0x539e23),_0x205937=new r({'author':_0x337174,'type':'isAdded'==_0x3b1e3f||'isAddSuggestion'==_0x3b1e3f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3b1e3f||'isRemoveSuggestion'==_0x3b1e3f},'createdAt':new Date(),'rootName':_0x296316});_0x35adf3['push'](_0x205937),_0x5b25e9['markers']['set']('revision:'+_0x205937['id'],_0xce4a0b);}function _0x35801d(_0x190852,_0x5cb9ae){const _0x197563=_0x190852['getAttributes'](),_0xd043c7=_0x5cb9ae['getAttributes']();for(const _0x52f361 of _0x197563){if(_0x52f361[0x1]!==_0x5cb9ae['getAttribute'](_0x52f361[0x0]))return!0x1;_0xd043c7['next']();}return _0xd043c7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3521e1=>{const _0x5ff32c=_0x3521e1['markerName']['split'](':')[0x1],_0x4052ec=this['_getChangeFromId'](_0x5ff32c);if(!_0x4052ec)return null;const _0x29a51b='add'==_0x4052ec['type']?'insertion':'deletion',_0x4b06ba=['ck-suggestion-marker','ck-suggestion-marker-'+_0x29a51b];return _0x4052ec['data']['isSuggestion']&&_0x4b06ba['push']('ck-suggestion-marker-'+_0x29a51b+'-new'),this['activeChange']==_0x4052ec&&_0x4b06ba['push']('ck-suggestion-marker--active'),{'classes':_0x4b06ba,'attributes':{'data-change-id':_0x5ff32c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xf8d7d9=>{_0xf8d7d9['on']('element:pre',(_0x5a8e7c,_0x189e99,_0x1836a0)=>{const _0x22bbba=_0x189e99['viewItem']['getChild'](0x0);if(!_0x22bbba||!_0x22bbba['is']('element','code'))return;if(!_0x1836a0['consumable']['consume'](_0x22bbba,{'attributes':['vid_start','vid_end']}))return;const _0x3eb806=_0x189e99['modelRange']['start']['nodeAfter'];_0x1836a0['writer']['setAttribute']('vid_start',_0x22bbba['getAttribute']('vid_start'),_0x3eb806),_0x1836a0['writer']['setAttribute']('vid_end',_0x22bbba['getAttribute']('vid_end'),_0x3eb806);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ad5bd=>{_0x2ad5bd['on']('element',(_0x544247,_0xc6e5b1,_0x3c0284)=>{if(!_0x3c0284['consumable']['consume'](_0xc6e5b1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xc6e5b1['modelRange']['isCollapsed'])return;const _0x30416a=_0xc6e5b1['modelRange']['start']['nodeAfter'];_0x30416a['hasAttribute']('vid_start')||_0x30416a['hasAttribute']('vid')||(_0x3c0284['writer']['setAttribute']('vid_start',_0xc6e5b1['viewItem']['getAttribute']('vid_start'),_0x30416a),_0x3c0284['writer']['setAttribute']('vid_end',_0xc6e5b1['viewItem']['getAttribute']('vid_end'),_0x30416a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3eb7bf=>_0x3eb7bf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x58da68,[,_0xdfc395])=>{['vid_start','vid_end','vid']['includes'](_0xdfc395)&&(_0x58da68['return']=!0x0,_0x58da68['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x168f16=>{_0x168f16['on']('attribute:vid',(_0x1fb19c,_0x4da240,_0x2d703c)=>{if('\x20'!=_0x4da240['item']['data']||_0x4da240['item']['parent']['maxOffset']>0x1)return;if(!_0x2d703c['consumable']['consume'](_0x4da240['item'],_0x1fb19c['name']))return;const _0x132311=_0x2d703c['writer'],_0x17c656=_0x2d703c['mapper']['toViewRange'](_0x4da240['range']);_0x132311['wrap'](_0x17c656,_0x132311['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x29f84e){const _0x2ec9d3=_0x29f84e['plugins']['get']('RevisionViewer');return(_0x1296b1,_0xb20228,_0x5edfa8)=>{const _0x4e13a9=_0xb20228['markerName']['split'](':')[0x1],_0x305430=_0x2ec9d3['_getChangeFromId'](_0x4e13a9);if(!_0x305430)return null;const _0x39ad5f='add'==_0x305430['type']?'split':'merge';if(!_0x5edfa8['consumable']['test'](_0xb20228['markerRange'],_0x1296b1['name']))return;const _0x24ae6c=_0xb20228['markerRange']['getWalker'](),_0x222153=_0xb20228['markerRange']['start'],_0x44c739=_0x29f84e['model']['schema'];let _0x1ff85e=null,_0x431f69=null,_0x396e56=!0x1,_0x5c3e24=!0x1;for(const _0x3c980e of _0x24ae6c){const _0x32b38e=_0x3c980e['item'];_0x396e56=_0x396e56||_0x44c739['isContent'](_0x32b38e);const _0x1edb23=_0x5edfa8['mapper']['toViewElement'](_0x32b38e);if(_0x1edb23&&_0x1edb23['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c980e['type']&&(_0x44c739['isBlock'](_0x32b38e)&&!_0x44c739['isLimit'](_0x32b38e)&&(_0x32b38e['nextSibling']||_0x222153['isAtEnd']?_0x1ff85e&&_0x1ff85e['parent']==_0x32b38e||(_0x1ff85e=_0x32b38e,_0x2a23ad(_0x3c980e['previousPosition']),_0x5c3e24=!0x0):_0x431f69=_0x431f69||_0x3c980e['previousPosition']));}function _0x2a23ad(_0x4cf6bf){const _0x1c59a2=_0x5edfa8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39ad5f}),_0x354544=_0x5edfa8['mapper']['toViewPosition'](_0x4cf6bf);_0x305430['data']['isSuggestion']&&_0x5edfa8['writer']['addClass']('ck-suggestion-marker-'+_0x39ad5f+'-new',_0x1c59a2),_0x2ec9d3['activeChange']==_0x305430&&_0x5edfa8['writer']['addClass']('ck-suggestion-marker--active',_0x1c59a2),_0x5edfa8['writer']['insert'](_0x354544,_0x1c59a2),_0x5edfa8['mapper']['bindElementToMarker'](_0x1c59a2,_0xb20228['markerName']);}_0x396e56||_0x5c3e24||!_0x431f69||_0x2a23ad(_0x431f69);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x34bbb0,_0x29e377,_0x260753)=>{const _0x8a0f73=_0x260753['mapper']['markerNameToElements'](_0x29e377['markerName']);if(_0x8a0f73){for(const _0xca5016 of _0x8a0f73)(_0xca5016['hasClass']('ck-suggestion-marker-split')||_0xca5016['hasClass']('ck-suggestion-marker-merge'))&&(_0x260753['mapper']['unbindElementFromMarkerName'](_0xca5016,_0x29e377['markerName']),_0x260753['writer']['remove'](_0xca5016));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5b2ab3,_0x96bbe8,_0x1d24ec)=>{const _0x2dac6c=_0x96bbe8['markerName']['split'](':')[0x1],_0x559fda=this['_getChangeFromId'](_0x2dac6c);if(!_0x559fda)return null;const _0x18ecb6='add'==_0x559fda['type']?'split':'merge';if(_0x1d24ec['consumable']['test'](_0x96bbe8['markerRange'],_0x5b2ab3['name']))for(const _0x516faf of _0x96bbe8['markerRange']['getItems']()){if(!_0x516faf['is']('element','softBreak'))continue;const _0x4eefc6=_0x1d24ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18ecb6}),_0x5b3ceb=_0x1d24ec['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x516faf));_0x559fda['data']['isSuggestion']&&_0x1d24ec['writer']['addClass']('ck-suggestion-marker-'+_0x18ecb6+'-new',_0x4eefc6),this['activeChange']==_0x559fda&&_0x1d24ec['writer']['addClass']('ck-suggestion-marker--active',_0x4eefc6),_0x1d24ec['writer']['insert'](_0x5b3ceb,_0x4eefc6),_0x1d24ec['mapper']['bindElementToMarker'](_0x4eefc6,_0x96bbe8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2cefa7=>{for(const _0x34ca90 of this['editor']['model']['document']['getRootNames']()){const _0x335bf8=this['editor']['model']['document']['getRoot'](_0x34ca90),_0x4fc9bc=this['editor']['editing']['view']['document']['getRoot'](_0x34ca90);if(_0x4fc9bc){const _0x13f04f=_0x335bf8['getAttribute']('revisionHistoryAttachChange');if(_0x2cefa7['removeAttribute']('data-change-id',_0x4fc9bc),_0x2cefa7['removeClass']('ck-revision-history-root-add',_0x4fc9bc),_0x2cefa7['removeClass']('ck-revision-history-root-remove',_0x4fc9bc),_0x2cefa7['removeClass']('ck-revision-history-root--active',_0x4fc9bc),_0x13f04f){const _0x3e0658=this['_getChangeFromId'](_0x13f04f);if(!_0x3e0658)return null;_0x2cefa7['setAttribute']('data-change-id',_0x13f04f,_0x4fc9bc),_0x2cefa7['addClass']('ck-revision-history-root-'+_0x3e0658['type'],_0x4fc9bc),this['activeChange']==_0x3e0658&&_0x2cefa7['addClass']('ck-revision-history-root--active',_0x4fc9bc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2244b6=>'revision-comment:'+_0x2244b6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xdf1e0a=>'revision-suggestion:'+_0xdf1e0a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x129b7d=>({'name':'suggestion:'+_0x129b7d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x386d3d=>{const _0x4239a1=_0x386d3d['markerName']['split'](':')[0x1];return'insertion'!=_0x4239a1&&'deletion'!=_0x4239a1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4239a1]};}}),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',(_0x2ca707,_0x137c34,_0x2405e8)=>{const _0x11776b=_0x2405e8['mapper']['markerNameToElements'](_0x137c34['markerName']);if(_0x11776b){for(const _0x4e883b of _0x11776b)_0x4e883b['is']('uiElement')&&(_0x2405e8['mapper']['unbindElementFromMarkerName'](_0x4e883b,_0x137c34['markerName']),_0x2405e8['writer']['remove'](_0x4e883b));}},{'priority':'high'});}['_getChangeFromId'](_0x2c1aec){return this['_changeIdToChange']['get'](_0x2c1aec);}['_getViewForChange'](_0x403e1d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x403e1d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x240f2a,_0x310c93,_0x31e4a5,_0x49835e)=>{_0x49835e&&this['_balloon']['remove'](_0x49835e),_0x31e4a5&&(this['_balloon']['add']({'view':_0x31e4a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x6217d8=this['editor']['editing'],_0x566f16=this['_getChangeFromId'](_0x31e4a5['changeId']);let _0x278743;if(_0x566f16['data']['isOnRoot']){const _0x4451f9=_0x6217d8['view']['getDomRoot'](_0x566f16['rootName']);_0x278743=Array['from'](_0x4451f9['getClientRects']());}else{const _0x1b3100=this['editor']['model']['markers']['get']('revision:'+_0x31e4a5['changeId']);_0x278743=Array['from'](_0x6217d8['mapper']['markerNameToElements'](_0x1b3100['name']))['map'](_0x27cea8=>_0x6217d8['view']['domConverter']['mapViewToDom'](_0x27cea8))['map'](_0x57245c=>Array['from'](_0x57245c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x278743[0x0];return _0x278743['find'](_0x4a7f0a=>_0x4a7f0a['top']-0x3<=this['_activeViewTarget']['y']&&_0x4a7f0a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4a7f0a['left']-0x3<=this['_activeViewTarget']['x']&&_0x4a7f0a['right']+0x3>=this['_activeViewTarget']['x'])||_0x278743[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x54277,_0x1d8195,_0x3cab1e,_0x258432)=>{this['activeView']=_0x3cab1e?this['_getViewForChange'](_0x3cab1e):null,this['editor']['model']['change'](()=>{const _0x26307b=this['editor']['editing'];_0x258432&&(_0x258432['data']['isOnRoot']?_0x26307b['view']['change'](_0x25dc25=>{_0x25dc25['removeClass']('ck-revision-history-root--active',_0x26307b['view']['document']['getRoot'](_0x258432['rootName']));}):_0x26307b['reconvertMarker']('revision:'+_0x258432['id'])),_0x3cab1e&&(_0x3cab1e['data']['isOnRoot']?_0x26307b['view']['change'](_0x3c14c8=>{_0x3c14c8['addClass']('ck-revision-history-root--active',_0x26307b['view']['document']['getRoot'](_0x3cab1e['rootName']));}):_0x26307b['reconvertMarker']('revision:'+_0x3cab1e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1acff6,_0x2490b1)=>{if(this['activeChange'])return;const _0x32c6e9=this['_findChangeIdFromDomTarget'](_0x2490b1['target']),_0x23ae0d=this['_changeIdToChange']['get'](_0x32c6e9);_0x23ae0d?(this['_activeViewTarget']={'x':_0x2490b1['domEvent']['x'],'y':_0x2490b1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x23ae0d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2a12e0,_0x5a0091)=>{const _0x1300ea=this['_findChangeIdFromDomTarget'](_0x5a0091['target']),_0x50e16d=this['_changeIdToChange']['get'](_0x1300ea);_0x50e16d?(this['_activeViewTarget']={'x':_0x5a0091['domEvent']['x'],'y':_0x5a0091['domEvent']['y']},_0x50e16d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x50e16d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x408270){do{const _0x14f9a2=_0x408270['getAttribute']('data-change-id');if(_0x14f9a2)return _0x14f9a2;_0x408270=_0x408270['parent'];}while(_0x408270);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b43fe=>{for(const _0xb6922d of this['editor']['model']['markers'])_0x4b43fe['removeMarker'](_0xb6922d);});}}function X(_0x34eed5,_0x3a0802){return(_0x19e1c4,_0x2f4487,_0x47d964)=>{if(!_0x47d964['consumable']['test'](_0x2f4487['markerRange'],_0x19e1c4['name']))return;const _0x3d48ab=_0x2f4487['markerRange']['getWalker'](),_0x3b3c9a=_0x2f4487['markerRange']['start'],_0x55af4f=_0x34eed5['model']['schema'];let _0x551883=null,_0x2b0327=null,_0x304551=!0x1,_0x73e250=!0x1;for(const _0x2836d1 of _0x3d48ab){const _0x18fb65=_0x2836d1['item'];_0x304551=_0x304551||_0x55af4f['isContent'](_0x18fb65);const _0x1ef9c7=_0x47d964['mapper']['toViewElement'](_0x18fb65);if(_0x1ef9c7&&_0x1ef9c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2836d1['type']&&(_0x55af4f['isBlock'](_0x18fb65)&&!_0x55af4f['isLimit'](_0x18fb65)&&(_0x18fb65['nextSibling']||_0x3b3c9a['isAtEnd']?_0x551883&&_0x551883['parent']==_0x18fb65||(_0x551883=_0x18fb65,_0x212fdb(_0x2836d1['previousPosition']),_0x73e250=!0x0):_0x2b0327=_0x2b0327||_0x2836d1['previousPosition']));}function _0x212fdb(_0x54c053){const _0x4bcf68=_0x47d964['mapper']['toViewPosition'](_0x54c053),_0x3a29d6=_0x47d964['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3a0802});_0x47d964['writer']['insert'](_0x4bcf68,_0x3a29d6),_0x47d964['mapper']['bindElementToMarker'](_0x3a29d6,_0x2f4487['markerName']);}_0x304551||_0x73e250||!_0x2b0327||_0x212fdb(_0x2b0327);};}class mt extends _0x5ef1c8{constructor(_0x1bc9f9){super(_0x1bc9f9);const _0x5c0cac=_0x1bc9f9['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5c0cac,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5c0cac,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1dd44d=this['editor'],_0x5142=_0x1dd44d['plugins']['get'](m),_0x3db9ed=_0x5142['isReady']?_0x5142['diff']['newRevisionId']:null;_0x1dd44d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3db9ed);}['refresh'](){const {isReady:_0x555ceb,isEnabled:_0x205659,repository:_0x484f27,diff:_0x4aedd3}=this['editor']['plugins']['get'](m),_0x4fabd6=_0x4aedd3&&_0x484f27['getLaterVisibleRevision'](_0x4aedd3['newRevisionId']);this['isEnabled']=_0x555ceb&&_0x205659&&Boolean(_0x4fabd6);}}class wt extends _0x5ef1c8{['_step'];constructor(_0xebb854,{direction:_0x5e2c74}){super(_0xebb854);const _0x5a1698=_0xebb854['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5e2c74?0x1:-0x1,this['listenTo'](_0x5a1698,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a1698,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a1698,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2cde14=this['editor'],_0x19f62d=_0x2cde14['plugins']['get'](m),{isNavigationMode:_0x1876b2,currentChangeNumber:_0x598e59}=_0x19f62d;let _0x10fc30;if(_0x19f62d['activeChange']=_0x1876b2?_0x19f62d['diff']['changes']['get'](_0x598e59+this['_step']):_0x19f62d['diff']['changes']['first'],_0x19f62d['activeChange']['data']['isOnRoot'])_0x10fc30=_0x2cde14['editing']['view']['getDomRoot'](_0x19f62d['activeChange']['rootName']);else{const _0x41742d=_0x2cde14['model']['markers']['get']('revision:'+_0x19f62d['activeChange']['id']);_0x10fc30=_0x192f57(_0x2cde14['editing'],_0x41742d);}_0x5a1869({'target':_0x10fc30,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x50e2a9,currentChangeNumber:_0x2c39e6,numberOfChanges:_0x472096,isReady:_0x555fcd,isEnabled:_0x28e43b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x28e43b&&_0x555fcd&&_0x472096)&&(!_0x50e2a9||(0x1===this['_step']?_0x2c39e6<_0x472096-0x1:_0x2c39e6>0x0));}}class _i extends ts{constructor(_0x5a27b4){super(_0x5a27b4);const _0x16954e=this['bindTemplate'],_0x4e5b39=new te(_0x5a27b4),_0x2dc05a=new te(_0x5a27b4);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',(_0x34286c,_0x79246)=>_0x34286c&&_0x79246>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6420f5,_0x2cf72c,_0x2cea71,_0x4a666e)=>{if(!_0x6420f5)return g(_0x5a27b4,'Loading...');if(!_0x2cea71)return g(_0x5a27b4,'No\x20changes');const _0x1d40e9=g(_0x5a27b4,'NUMBER_OF_CHANGES',_0x2cea71);return _0x4a666e?g(_0x5a27b4,'X_OF_Y_CHANGES',[_0x2cf72c+0x1,_0x2cea71]):_0x1d40e9;}),_0x4e5b39['set']({'label':g(_0x5a27b4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4c0517}),_0x2dc05a['set']({'label':g(_0x5a27b4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xf4b24e}),_0x4e5b39['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2dc05a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e5b39['on']('execute',()=>this['fire']('execute','backward')),_0x2dc05a['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',_0x16954e['if']('_isStatusLabelVisible','ck-hidden',_0xc3cda1=>!_0xc3cda1)]},'children':[{'text':_0x16954e['to']('isNavigationMode',_0x3bb21a=>_0x3bb21a?g(_0x5a27b4,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x5a27b4,'Total')+':\x20')}]},{'text':_0x16954e['to']('_statusText')}]},new _0x4a40bb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e5b39,_0x2dc05a]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4be61a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x209959=this['editor']['editing']['view'];_0x209959['change'](_0x115eb9=>{for(const _0x253f14 of _0x209959['document']['roots'])_0x115eb9['addClass'](le,_0x253f14);});}['hide'](){const _0x34dd60=this['editor']['editing']['view'];_0x34dd60['change'](_0x143743=>{for(const _0x475492 of _0x34dd60['document']['roots'])_0x143743['removeClass'](le,_0x475492);});}}class R extends _0x4be61a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x5ec576=this['editor'],_0x5c302e=_0x5ec576['plugins']['get'](m),_0x3f0de4=_0x5ec576['plugins']['get'](ge);_0x5ec576['ui']['componentFactory']['add']('exitToEditing',_0x2a9630=>{const _0x122fb6=new te(_0x2a9630);return _0x122fb6['set']({'label':g(_0x2a9630,'Back\x20to\x20editing'),'icon':_0x519bc3,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x122fb6,'execute',()=>{_0x5ec576['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x122fb6;}),_0x5ec576['ui']['componentFactory']['add']('restoreRevision',_0x5a0ee7=>{const _0x149023=new te(_0x5a0ee7);return _0x149023['set']({'label':g(_0x5a0ee7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x149023['bind']('isEnabled')['to'](_0x5ec576['commands']['get']('restoreRevision')),this['listenTo'](_0x149023,'execute',()=>_0x5ec576['execute']('restoreRevision')),_0x149023;}),_0x5ec576['ui']['componentFactory']['add']('changesNavigation',_0x434397=>{const _0x5c8c5c=new _i(_0x434397),_0x4ba49b=_0x5ec576['commands']['get']('showPreviousChange'),_0x38b717=_0x5ec576['commands']['get']('showNextChange');return _0x5c8c5c['bind']('isBackwardNavigationEnabled')['to'](_0x4ba49b,'isEnabled'),_0x5c8c5c['bind']('isForwardNavigationEnabled')['to'](_0x38b717,'isEnabled'),_0x5c8c5c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5c302e),this['listenTo'](_0x5c8c5c,'execute',(_0x19c7ac,_0x53897b)=>{_0x5ec576['execute']('forward'===_0x53897b?'showNextChange':'showPreviousChange');}),_0x5c8c5c;}),_0x3f0de4['show'](),_0x5c302e['on']('change:isReady',(_0x2dd189,_0x50b788,_0x9db1e1)=>{_0x9db1e1?_0x3f0de4['hide']():_0x3f0de4['show']();});}}class at extends _0x783eff{['_resizeObserver']=null;constructor(_0x17ff11,_0x454bab){super(_0x17ff11,_0x454bab);const _0x5b3a63=this['bindTemplate'];this['set']({'label':g(_0x17ff11,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x17ff11,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5b3a63['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 _0x52d87d=this['fieldView']['element'];this['_tooltipString']=_0x52d87d['scrollWidth']>_0x52d87d['clientWidth']&&_0x52d87d['value']||'';}}class si extends ts{constructor(_0x16dd89,_0x41c4b9,_0x2b0ddc){super(_0x16dd89);const _0x557fa6=new _0x1b53ba();_0x557fa6['set']({'content':_0x4e02bb,'viewBox':'0\x200\x2011\x2010'});const _0x201b9e=['ck','ck-revision-history-sidebar__revision-author'];_0x2b0ddc&&_0x201b9e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c13c4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x16dd89,_0x2b0ddc?'Revision\x20creator':'Revision\x20author')},'children':[_0x557fa6,_0x41c4b9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x201b9e},'children':_0x2c13c4});}}function oi(_0x329e33,_0x1993f9){const _0x2af0c6=_0x329e33['bindTemplate'],_0x31159c=_0x329e33['locale'],_0x2edc5c=_0x58a328(_0x31159c);_0x2edc5c['panelPosition']='sw';const _0x5ad572=function(_0x5b8a92,_0x50faa5){const _0x357995=function(_0x347625,_0x5d1961){const _0x4ec82c=_0x347625['locale'],_0x4b9b7d={'Compare\x20against\x20selected':g(_0x4ec82c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4ec82c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4ec82c,'Restore\x20this\x20revision')};return _0x5d1961['map'](_0x486bfc=>{const _0x31ef32=_0x4b9b7d[_0x486bfc['name']];return _0x31ef32&&_0x31ef32!==_0x486bfc['name']&&(_0x486bfc['name']=_0x31ef32),_0x486bfc;});}(_0x5b8a92,_0x50faa5),_0x4fc390=new _0x27a842();for(const _0x1b96a5 of _0x357995){const _0xf5352={'type':'button','model':new to({'label':_0x1b96a5['name'],'class':_0x1b96a5['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b96a5['action']})};_0xf5352['model']['bind']('isEnabled')['to'](_0x5b8a92,'isActionsDropdownOpen',_0x440240=>'function'!=typeof _0x1b96a5['isEnabled']||(!_0x440240||_0x1b96a5['isEnabled'](_0x5b8a92))),_0x4fc390['add'](_0xf5352);}return _0x4fc390;}(_0x329e33,_0x1993f9);return _0x329e33['bind']('isActionsDropdownOpen')['to'](_0x2edc5c,'isOpen'),_0x2edc5c['buttonView']['set']({'label':g(_0x31159c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1a4d34}),_0x2edc5c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2af0c6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2af0c6['to'](_0x14fec1=>_0x14fec1['stopPropagation']())}}),_0x2edc5c['on']('execute',_0x43fad4=>{_0x329e33['isReady']&&'function'==typeof _0x43fad4['source']['_action']&&_0x43fad4['source']['_action'](_0x329e33);}),_0x3a3b21(_0x2edc5c,_0x5ad572,{'role':'menu'}),_0x2edc5c['listenTo'](_0x329e33,'change:isActionsDropdownOpen',(_0xde2147,_0xd515cd,_0x11c103)=>{if(_0x11c103)for(const _0x2440d3 of _0x2edc5c['listView']['items']){const _0x37f870=_0x2440d3['children']['first'],_0x19e105=_0x1993f9['find'](_0x1bc9d5=>_0x1bc9d5['action']===_0x37f870['_action'])['isVisible'];_0x2440d3['isVisible']=void 0x0===_0x19e105||_0x19e105(_0x329e33);}}),_0x2edc5c;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x48eb2e,_0x3eb52d,_0x15e909,_0x46dbad){super(_0x48eb2e);const _0x11270d=this['bindTemplate'],_0x5ddf5e=function(_0x1376e6,_0x249db5){const _0x4c0c4a=Array['from'](_0x249db5['authors'])['filter'](_0x318f08=>_0x318f08!=_0x249db5['creator']);return _0x249db5['creator']&&_0x4c0c4a['unshift'](_0x249db5['creator']),_0x4c0c4a['map'](_0x1ee48a=>new si(_0x1376e6,_0x1ee48a,_0x1ee48a==_0x249db5['creator']));}(_0x48eb2e,_0x3eb52d);this['id']=_0x3eb52d['id'],this['_revision']=_0x3eb52d,this['_requireRevisionName']=_0x46dbad,this['bind']('name','createdAt')['to'](_0x3eb52d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x553f95=>{return _0x418311=_0x48eb2e['uiLanguage'],(_0x45cb01=_0x553f95)['toLocaleDateString'](_0x418311,{'month':'long','day':'numeric'})+',\x20'+_0x45cb01['toLocaleTimeString'](_0x418311,{'hour':'numeric','minute':'numeric'});var _0x418311,_0x45cb01;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x48eb2e,_0x23e1c3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ad78b=>_0x1ad78b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4762d3,_0x34a44c)=>_0x4762d3&&_0x34a44c),this['revisionActionsView']=_0x15e909&&_0x15e909['length']?oi(this,_0x15e909):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x11270d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x11270d['if']('isEnabled','ck-disabled',_0x5d6abd=>!_0x5d6abd),_0x11270d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x11270d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x11270d['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':_0x11270d['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':_0x5ddf5e}]},this['revisionActionsView']],'on':{'click':_0x11270d['to'](_0x17bd9b=>{_0x17bd9b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x390c46=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x390c46,'change',()=>{this['_requireRevisionName']&&!_0x390c46['value']||this['fire']('setName',{'id':this['id'],'name':_0x390c46['value']}),_0x390c46['value']||(_0x390c46['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0xc205b4,_0x547ab2){const _0x517d78=_0x3c34b4['fromJSDate'](_0xc205b4)['setLocale'](_0x547ab2),_0x98bd7f=_0x3c34b4['local'](),_0x3f6767=_0x98bd7f['minus']({'days':0x1})['startOf']('day');let _0x2f4650,_0x35a16a;return _0x517d78['hasSame'](_0x98bd7f,'day')?(_0x2f4650=_0x517d78['startOf']('day')['toJSDate'](),_0x35a16a=_0x517d78['toRelativeCalendar']()):_0x517d78['hasSame'](_0x3f6767,'day')?(_0x2f4650=_0x3f6767['toJSDate'](),_0x35a16a=_0x517d78['toRelativeCalendar']()):_0x517d78['hasSame'](_0x98bd7f,'week')?(_0x2f4650=_0x517d78['startOf']('week')['toJSDate'](),_0x35a16a=_0x517d78['weekdayLong']||''):_0x517d78['hasSame'](_0x98bd7f,'year')?(_0x2f4650=_0x517d78['startOf']('month')['toJSDate'](),_0x35a16a=_0x517d78['monthLong']||''):(_0x2f4650=_0x517d78['startOf']('year')['toJSDate'](),_0x35a16a=String(_0x517d78['year'])),{'startDate':_0x2f4650,'localizedPeriodName':_0x35a16a};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x7f14e8,_0x4c01e2,_0x3f3b0a,_0x5c941c){super(_0x7f14e8);const _0x52f877=ai(_0x4c01e2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4c01e2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3f3b0a,this['_requireRevisionName']=_0x5c941c,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':_0x52f877}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x517eee){const _0x3e6181=new hi(this['locale'],_0x517eee,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3e6181);}['removeRevision'](_0x4c49d2){const _0x124b01=this['revisionViews']['find'](_0x302160=>_0x302160['id']===_0x4c49d2['id']);this['revisionViews']['remove'](_0x124b01);}}class as extends ts{constructor(_0x5bfd70){super(_0x5bfd70);const _0x197892=new _0x1b53ba();_0x197892['content']=_0x25e4f4,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x197892,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5bfd70,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x10de1d,_0x326c4e,_0x5632c3,_0x1bca29){super(_0x10de1d);const _0x4d69fd=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x326c4e,this['_revisionActions']=_0x5632c3,this['_requireRevisionName']=_0x1bca29,this['on']('select',(_0x559352,_0x1db2ab)=>{this['fire']('revisionSelected',_0x1db2ab);}),this['on']('setName',(_0x3714fc,_0xb6ae40)=>{this['fire']('revisionSetName',_0xb6ae40);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x10de1d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4d69fd['if']('isEnabled','ck-disabled',_0x2bfb2c=>!_0x2bfb2c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f6e3b of this['_revisions'])this['_addRevision'](_0x2f6e3b);this['_revisions']['on']('add',(_0x100c36,_0x1e2c05)=>{this['_addRevision'](_0x1e2c05);}),this['_revisions']['on']('remove',(_0x545a54,_0x4ba076)=>{this['_removeRevision'](_0x4ba076);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2f535b=>_0x2f535b['revisionViews']['map'](_0x68a02f=>_0x68a02f))['flat']();}['selectRevision'](_0x5b84ea){for(const _0x4e2b7a of this['revisionViews'])_0x5b84ea&&_0x5b84ea['id']===_0x4e2b7a['id']?_0x4e2b7a['select']():_0x4e2b7a['deselect']();}['highlightRevisions'](_0x14be24){for(const _0x52b706 of this['revisionViews'])_0x14be24['some'](({id:_0x1dfe23})=>_0x1dfe23===_0x52b706['id'])?_0x52b706['highlight']():_0x52b706['unhighlight']();}['_addRevision'](_0xa10d2c){const _0x1a943e=ai(_0xa10d2c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5f125e=this['timePeriodViews']['get'](0x0);_0x5f125e&&_0x5f125e['startDate']['getTime']()===_0x1a943e['getTime']()||(_0x5f125e=new di(this['locale'],_0x1a943e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5f125e)),_0x5f125e['addRevision'](_0xa10d2c);}['_removeRevision'](_0xc3fa26){const _0x3392d7=ai(_0xc3fa26['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3392d7)['removeRevision'](_0xc3fa26);}['_getTimePeriodViewByStartDate'](_0x16b001){return this['timePeriodViews']['find'](_0x1131a0=>_0x1131a0['startDate']['getTime']()===_0x16b001['getTime']());}}class d extends _0x4be61a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x945cc9){super(_0x945cc9),this['_revisionViewer']=_0x945cc9['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2e32ed=this['_revisionsRepository']['_revisions'],_0x512837=this['_createRevisionActions'](),_0x34732c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x2e32ed,_0x512837,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',(_0x2be6c2,_0x4a27fc)=>{_0x4a27fc['revisionViews']['on']('add',(_0x24d2a2,_0x3e9c51)=>{_0x3e9c51['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)),_0x34732c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xf4b4ca=this['_revisionsRepository']['getRevision'](0x0);if(_0xf4b4ca){const _0xd9249f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xf4b4ca['id']);this['_revisionViewer']['compare'](_0xf4b4ca,_0xd9249f);}}['_handleRevisionSelected'](_0x26e307,_0x403094){const _0x74ea4=this['_revisionsRepository']['getRevision'](_0x403094['id']),_0x400f7e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x74ea4['id']);this['_revisionViewer']['compare'](_0x74ea4,_0x400f7e);}['_handleRevisionSetName'](_0x433a6e,_0x588f9c){this['_revisionsRepository']['getRevision'](_0x588f9c['id'])['setName'](_0x588f9c['name']);}['_handleDiffChange'](_0x9b5894,_0x2a4e6f,_0x53219c){const _0x2cc732=this['_revisionsRepository']['getRevisionsInDiff'](_0x53219c);_0x2cc732['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2cc732),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2cc732[0x0]));}['_createRevisionActions'](){const _0xe26791=this['editor'],_0x593ac8=d['availableRevisionActions'],_0x5f3a35=_0xe26791['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5f3a35['length'])return _0x5f3a35['map'](_0x3bd95d=>{const _0x570207='string'==typeof _0x3bd95d?Object['assign']({},_0x593ac8[_0x3bd95d]):_0x3bd95d;return _0x570207['action']=_0x570207['action']['bind'](this,_0xe26791),_0x570207['isVisible']&&(_0x570207['isVisible']=_0x570207['isVisible']['bind'](this,_0xe26791)),_0x570207;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x10f194},_0x4f0a93)=>{const _0x2529b2=_0x10f194['get'](m),_0x3fa6a2=_0x2529b2['repository'];let _0xdce162=_0x2529b2['diff']['newRevisionId'],_0x1fb308=_0x4f0a93['id'];_0x3fa6a2['getIndex'](_0xdce162)>_0x3fa6a2['getIndex'](_0x1fb308)&&([_0xdce162,_0x1fb308]=[_0x1fb308,_0xdce162]),_0x2529b2['compare'](_0xdce162,_0x1fb308);},'isVisible':({plugins:_0x50a1ff},_0x4baf7e)=>{const _0x3e2c7f=_0x50a1ff['get'](m);return!(_0x3e2c7f['repository']['getRevisionsInDiff'](_0x3e2c7f['diff'])['length']>0x2)&&!_0x4baf7e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x37084e,{id:_0x4fa2e2})=>{_0x37084e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fa2e2);},'isVisible':({plugins:_0xf000f3},_0x4b7b4c)=>!!_0xf000f3['get'](m)['repository']['getLaterVisibleRevision'](_0x4b7b4c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x328e4e},{id:_0x469281,revisionNameView:_0x39dcd2})=>{const _0x5713e5=_0x328e4e['get'](m),_0x1f4f37=_0x5713e5['repository']['getEarlierVisibleRevision'](_0x469281);_0x5713e5['compare'](_0x469281,_0x1f4f37),_0x39dcd2['focus'](),_0x39dcd2['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1e7fa0,_0x17f1a8){super(_0x1e7fa0),this['_view']=_0x17f1a8,this['_toolbarConfig']=et(_0x1e7fa0['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1cf754){const _0x1f3e22=this['editor'],_0x36403b=this['view'],_0x23026d=_0x1f3e22['editing']['view'],_0x2bcb0a=_0x36403b['editable'],_0x48ac30=_0x23026d['document']['getRoot']();_0x2bcb0a['name']=_0x48ac30['rootName'],_0x36403b['render']();const _0x3d5828=_0x2bcb0a['element'];this['setEditableElement'](_0x2bcb0a['name'],_0x3d5828),_0x36403b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x23026d['attachDomRoot'](_0x3d5828),this['_elementReplacer']['replace'](_0x1cf754,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b99e2=this['view'],_0x497305=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x497305['detachDomRoot'](_0x2b99e2['editable']['name']),_0x2b99e2['destroy']();}['_initToolbar'](){const _0x554a4f=this['view'];_0x554a4f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x554a4f['stickyPanel']['limiterElement']=_0x554a4f['element'],_0x554a4f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2e23a8})=>_0x2e23a8),_0x554a4f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x554a4f['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x47035f,_0x585846,_0x3d6bc4={}){super(_0x47035f),this['stickyPanel']=new ht(_0x47035f),this['toolbar']=new dt(_0x47035f,{'shouldGroupWhenFull':_0x3d6bc4['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x47035f,_0x585846);}['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
- _0x4d05c2(_0x28d055){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x509df8,_0x3ee243){super(_0x3ee243),this['sourceElement']=_0x509df8,this['model']['document']['createRoot']();const _0x3ef217=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3ef217);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1ff238,_0x4d20e0){const _0x58db82=new this(_0x1ff238,_0x4d20e0);return await _0x58db82['initPlugins'](),await _0x58db82['ui']['init'](_0x1ff238),await _0x58db82['data']['init'](_0x58db82['config']['get']('initialData')||''),_0x58db82['fire']('ready'),_0x58db82;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x58fda8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f19f0){function _0x36f94a(_0x6fdf91){return _0x6fdf91['map'](_0x24ca36=>String['fromCharCode'](_0x24ca36))['join']('');}super(_0x4f19f0),this['result']='end',_0x4f19f0[_0x36f94a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f94a([0x76,0x69,0x65,0x77])][_0x36f94a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36f94a([0x61,0x75,0x74,0x6f]),_0x4f19f0[_0x36f94a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36f94a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36f94a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36f94a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36f94a([0x6f,0x6b])});}}class k extends _0x58fda8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x490adf){if(super(_0x490adf),!this['editor']['config']['get']('revisionHistory'))throw new _0x58d8ca('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x487735=>this['_showRevisionViewer']({..._0x487735,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x701fbc=>this['_closeRevisionViewer'](_0x701fbc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4d13a0=>this['_restoreRevision'](_0x4d13a0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41a7a7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41a7a7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2db642){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2db642);}['getRevision'](_0x159c81){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x159c81);}['getRevisions'](_0x2595d7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2595d7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x27798b=this['editor'],_0x5c4b20=_0xb5ee61(_0x27798b,p),_0x35fdc2=_0x27798b['plugins']['get']('RevisionTracker'),_0x4aa248=_0x27798b['plugins']['get']('Users')['users'];return _0x5c4b20['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5c4b20['lazyRoots'],(_0x5c4b20['plugins']['push'](_t,m,R,class extends _0x58fda8{static get['requires'](){return[m,'Users'];}['init'](){const _0x375b11=this['editor']['plugins']['get']('Users');for(const _0x29e960 of _0x4aa248)_0x29e960['isAnonymous']||_0x375b11['getUser'](_0x29e960['id'])||_0x375b11['addUser'](_0x29e960);const _0x1beb7b=_0x35fdc2['repository']['getRevisions']();let _0x519c49=null;const _0x20edd0=this['editor']['plugins']['get']('RevisionViewer');_0x20edd0['adapter']=_0x35fdc2['adapter'],_0x20edd0['bind']('isEnabled')['to'](_0x35fdc2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27798b,'isReadOnly',_0x12a109=>!_0x12a109);for(const _0x377c45 of _0x1beb7b){const _0xee83c6=null===_0x377c45['creator'];if(_0xee83c6&&_0x377c45['toVersion']===_0x377c45['fromVersion'])continue;const _0x4c1ce2=_0x377c45['toJSON']();_0x20edd0['addRevisionData'](_0x4c1ce2,(_0x3c864c,_0x43d0c4,_0x4fc2d1)=>{if(_0xee83c6){if(_0x519c49)_0x519c49['_update'](_0x3c864c,_0x43d0c4);else{if(!_0x43d0c4){const _0xe29d2a=_0x4fc2d1['toJSON']();_0xe29d2a['id']=_0xebbfb1(),_0x35fdc2['saveRevision'](_0xe29d2a,_0x4fc2d1['toVersion'])['then'](_0xb66e47=>{_0x519c49=_0xb66e47;});}}}else _0x377c45['_update'](_0x3c864c,_0x43d0c4);});}}},d),_0x5c4b20);}['_enhanceShowRevisionViewerCallback'](){const _0x271a0c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1af18b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x441b69=this['editor']['plugins']['get']('Autosave');await _0x441b69['save']();}else await _0x1af18b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x530c78=this['editor']['plugins']['get']('Dialog');_0x530c78['isOpen']&&_0x530c78['hide']();}const _0x4d79b3=this['_getRevisionViewerEditorConfig']();return _0x271a0c(_0x4d79b3)['then'](_0x228b7d=>{return(this['_viewerEditor']=_0x228b7d,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'),_0x228b7d);})['catch'](_0x558750=>(console['error'](_0x558750),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x195d9d=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'](),_0x195d9d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x43e3cf=this['editor']['plugins']['get']('Annotations');_0x43e3cf['refreshVisibility'](),_0x43e3cf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x340607){const _0x27d73b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3b1694=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x546df2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x546df2,_0x340607)['then'](_0x108092=>(_0x3b1694['style']['display']='block',_0x27d73b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x108092));}['_closeRevisionViewer'](_0x311ce6){const _0x42c4a1=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x42c4a1['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x311ce6['destroy']();}async['_restoreRevision'](_0xddb30a){const _0x488e36=this['editor'],_0x571f93=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5ad841=_0x488e36['plugins']['get']('RevisionTracker'),_0x355cc0=_0x488e36['plugins']['get']('RevisionHistoryUtils'),_0x5d16f9=_0x571f93['repository']['getRevision'](_0xddb30a);let _0x1bef88,_0x48e6bb,_0x282562;try{await _0x355cc0['loadRevisionData'](_0x5d16f9,this['adapter']),_0x1bef88=_0x355cc0['getRevisionDocumentData'](_0x5d16f9),_0x48e6bb=_0x355cc0['getRevisionRootsAttributes'](_0x5d16f9);}catch(_0x4507ea){return void console['error'](_0x4507ea);}_0x488e36['model']['change'](_0x34fc9f=>{for(const _0x4deea7 of Array['from'](_0x488e36['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34fc9f['removeMarker'](_0x4deea7);}),_0x571f93['isReady']=!0x1,_0x488e36['model']['enqueueChange'](_0x333897=>{_0x333897['setSelection'](null),_0x333897['removeSelectionAttribute'](_0x488e36['model']['document']['selection']['getAttributeKeys']());const _0x333d45=Object['keys'](_0x1bef88);for(const _0x390d60 of _0x488e36['model']['document']['roots'])'$graveyard'!=_0x390d60['rootName']&&_0x390d60['isAttached']()&&!_0x333d45['includes'](_0x390d60['rootName'])&&_0x333897['detachRoot'](_0x390d60);for(const _0x12b31f of _0x333d45){let _0x116628=_0x488e36['model']['document']['getRoot'](_0x12b31f);_0x116628&&_0x116628['isAttached']()||(_0x116628=_0x333897['addRoot'](_0x12b31f));const _0x12d3e2=_0x48e6bb[_0x12b31f],_0x124710=Object['keys'](_0x12d3e2),_0x4acd2d=_0x1bef88[_0x12b31f];for(const _0x59337f of _0x116628['getAttributeKeys']())_0x124710['includes'](_0x59337f)||_0x333897['removeAttribute'](_0x59337f,_0x116628);for(const _0x574b09 of _0x124710)_0x333897['setAttribute'](_0x574b09,_0x48e6bb[_0x12b31f][_0x574b09],_0x116628);_0x333897['remove'](_0x333897['createRangeIn'](_0x116628)),_0x333897['insert'](_0x488e36['data']['parse'](_0x4acd2d,_0x116628),_0x116628,0x0);}});const _0x539bf7=g(_0x488e36['locale'],'Restored');if(_0x5d16f9['name'])_0x282562=-0x1==_0x5d16f9['name']['indexOf'](_0x539bf7)?_0x539bf7+':\x20'+_0x5d16f9['name']:_0x5d16f9['name'];else _0x282562=_0x539bf7+':\x20'+(_0x5d16f9['createdAt']['toLocaleDateString'](_0x488e36['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5d16f9['createdAt']['toLocaleTimeString'](_0x488e36['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5ad841['saveRevision']({'name':_0x282562}),_0x571f93['isReady']=!0x0,_0x488e36['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};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0xaa35d5){super(_0xaa35d5),this['_revisionViewer']=_0xaa35d5['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3aa2c5=this['_revisionsRepository']['_revisions'],_0x1b1026=this['_createRevisionActions'](),_0x16dee8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3aa2c5,_0x1b1026,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',(_0x3a9d76,_0x2b0d36)=>{_0x2b0d36['revisionViews']['on']('add',(_0x4c531c,_0x26c73b)=>{_0x26c73b['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)),_0x16dee8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5bb770=this['_revisionsRepository']['getRevision'](0x0);if(_0x5bb770){const _0x32525f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5bb770['id']);this['_revisionViewer']['compare'](_0x5bb770,_0x32525f);}}['_handleRevisionSelected'](_0x2f233c,_0x51f2dc){const _0x593af0=this['_revisionsRepository']['getRevision'](_0x51f2dc['id']),_0x418e15=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x593af0['id']);this['_revisionViewer']['compare'](_0x593af0,_0x418e15);}['_handleRevisionSetName'](_0x402762,_0x1ee1ee){this['_revisionsRepository']['getRevision'](_0x1ee1ee['id'])['setName'](_0x1ee1ee['name']);}['_handleDiffChange'](_0x13d450,_0x368595,_0x30d3a9){const _0x3839a8=this['_revisionsRepository']['getRevisionsInDiff'](_0x30d3a9);_0x3839a8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3839a8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3839a8[0x0]));}['_createRevisionActions'](){const _0x1bc1b9=this['editor'],_0x356904=d['availableRevisionActions'],_0x5251d1=_0x1bc1b9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5251d1['length'])return _0x5251d1['map'](_0x110e7e=>{const _0x2ff873='string'==typeof _0x110e7e?Object['assign']({},_0x356904[_0x110e7e]):_0x110e7e;return _0x2ff873['action']=_0x2ff873['action']['bind'](this,_0x1bc1b9),_0x2ff873['isVisible']&&(_0x2ff873['isVisible']=_0x2ff873['isVisible']['bind'](this,_0x1bc1b9)),_0x2ff873;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x9038fa},_0x462d53)=>{const _0x2a14f2=_0x9038fa['get'](m),_0x4c091e=_0x2a14f2['repository'];let _0x46e3da=_0x2a14f2['diff']['newRevisionId'],_0x160a3a=_0x462d53['id'];_0x4c091e['getIndex'](_0x46e3da)>_0x4c091e['getIndex'](_0x160a3a)&&([_0x46e3da,_0x160a3a]=[_0x160a3a,_0x46e3da]),_0x2a14f2['compare'](_0x46e3da,_0x160a3a);},'isVisible':({plugins:_0x27a876},_0x56fe9d)=>{const _0x573ef5=_0x27a876['get'](m);return!(_0x573ef5['repository']['getRevisionsInDiff'](_0x573ef5['diff'])['length']>0x2)&&!_0x56fe9d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2c6310,{id:_0x349f1f})=>{_0x2c6310['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x349f1f);},'isVisible':({plugins:_0x33a366},_0x3b8cc3)=>!!_0x33a366['get'](m)['repository']['getLaterVisibleRevision'](_0x3b8cc3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4f6349},{id:_0x481dd2,revisionNameView:_0x192cec})=>{const _0x4c5864=_0x4f6349['get'](m),_0xf3e49=_0x4c5864['repository']['getEarlierVisibleRevision'](_0x481dd2);_0x4c5864['compare'](_0x481dd2,_0xf3e49),_0x192cec['focus'](),_0x192cec['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x469b64,_0x5e37f0){super(_0x469b64),this['_view']=_0x5e37f0,this['_toolbarConfig']=et(_0x469b64['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x295725){const _0x33f012=this['editor'],_0x6bd0c6=this['view'],_0x2a1f09=_0x33f012['editing']['view'],_0x3b8f86=_0x6bd0c6['editable'],_0x506a57=_0x2a1f09['document']['getRoot']();_0x3b8f86['name']=_0x506a57['rootName'],_0x6bd0c6['render']();const _0x26562b=_0x3b8f86['element'];this['setEditableElement'](_0x3b8f86['name'],_0x26562b),_0x6bd0c6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2a1f09['attachDomRoot'](_0x26562b),this['_elementReplacer']['replace'](_0x295725,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2ccfef=this['view'],_0x571725=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x571725['detachDomRoot'](_0x2ccfef['editable']['name']),_0x2ccfef['destroy']();}['_initToolbar'](){const _0x52ff61=this['view'];_0x52ff61['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x52ff61['stickyPanel']['limiterElement']=_0x52ff61['element'],_0x52ff61['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3c5f38})=>_0x3c5f38),_0x52ff61['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x52ff61['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x55bde1,_0x2d5135,_0x2ed8c3={}){super(_0x55bde1),this['stickyPanel']=new ht(_0x55bde1),this['toolbar']=new dt(_0x55bde1,{'shouldGroupWhenFull':_0x2ed8c3['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x55bde1,_0x2d5135);}['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
+ _0x188b0c(_0x5a5fa3){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2509cf,_0x25fb74){super(_0x25fb74),this['sourceElement']=_0x2509cf,this['model']['document']['createRoot']();const _0x2633db=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2633db);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x242812,_0x547a48){const _0x27532b=new this(_0x242812,_0x547a48);return await _0x27532b['initPlugins'](),await _0x27532b['ui']['init'](_0x242812),await _0x27532b['data']['init'](_0x27532b['config']['get']('initialData')||''),_0x27532b['fire']('ready'),_0x27532b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4be61a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ed134){function _0x181ce3(_0x3e111f){return _0x3e111f['map'](_0x1a9343=>String['fromCharCode'](_0x1a9343))['join']('');}super(_0x4ed134),this['result']='end',_0x4ed134[_0x181ce3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x181ce3([0x76,0x69,0x65,0x77])][_0x181ce3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x181ce3([0x61,0x75,0x74,0x6f]),_0x4ed134[_0x181ce3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x181ce3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x181ce3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x181ce3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x181ce3([0x6f,0x6b])});}}class k extends _0x4be61a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x18693e){if(super(_0x18693e),!this['editor']['config']['get']('revisionHistory'))throw new _0x36fac0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e4b51=>this['_showRevisionViewer']({..._0x4e4b51,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3aa000=>this['_closeRevisionViewer'](_0x3aa000)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x52d632=>this['_restoreRevision'](_0x52d632)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3c26d1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3c26d1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xe92c03){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xe92c03);}['getRevision'](_0x34f317){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x34f317);}['getRevisions'](_0x2b9375){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2b9375||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d09e9=this['editor'],_0x21c5c6=_0x3b6f3e(_0x1d09e9,p),_0x1baf09=_0x1d09e9['plugins']['get']('RevisionTracker'),_0xcd69f=_0x1d09e9['plugins']['get']('Users')['users'];return _0x21c5c6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21c5c6['lazyRoots'],(_0x21c5c6['plugins']['push'](_t,m,R,class extends _0x4be61a{static get['requires'](){return[m,'Users'];}['init'](){const _0x3c1b78=this['editor']['plugins']['get']('Users');for(const _0x4f7e72 of _0xcd69f)_0x4f7e72['isAnonymous']||_0x3c1b78['getUser'](_0x4f7e72['id'])||_0x3c1b78['addUser'](_0x4f7e72);const _0x5dd2c8=_0x1baf09['repository']['getRevisions']();let _0x5750ca=null;const _0x288ff5=this['editor']['plugins']['get']('RevisionViewer');_0x288ff5['adapter']=_0x1baf09['adapter'],_0x288ff5['bind']('isEnabled')['to'](_0x1baf09),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d09e9,'isReadOnly',_0xf8e089=>!_0xf8e089);for(const _0x2a2fc9 of _0x5dd2c8){const _0xc0b34b=null===_0x2a2fc9['creator'];if(_0xc0b34b&&_0x2a2fc9['toVersion']===_0x2a2fc9['fromVersion'])continue;const _0x3ebb0c=_0x2a2fc9['toJSON']();_0x288ff5['addRevisionData'](_0x3ebb0c,(_0x599fdc,_0x15b5ac,_0x17a917)=>{if(_0xc0b34b){if(_0x5750ca)_0x5750ca['_update'](_0x599fdc,_0x15b5ac);else{if(!_0x15b5ac){const _0x3ba3cb=_0x17a917['toJSON']();_0x3ba3cb['id']=_0x3965a3(),_0x1baf09['saveRevision'](_0x3ba3cb,_0x17a917['toVersion'])['then'](_0x1eecc9=>{_0x5750ca=_0x1eecc9;});}}}else _0x2a2fc9['_update'](_0x599fdc,_0x15b5ac);});}}},d),_0x21c5c6);}['_enhanceShowRevisionViewerCallback'](){const _0x426677=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x54efd1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d5c49=this['editor']['plugins']['get']('Autosave');await _0x4d5c49['save']();}else await _0x54efd1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x35173f=this['editor']['plugins']['get']('Dialog');_0x35173f['isOpen']&&_0x35173f['hide']();}const _0x8eea52=this['_getRevisionViewerEditorConfig']();return _0x426677(_0x8eea52)['then'](_0x5e2dc0=>{return(this['_viewerEditor']=_0x5e2dc0,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'),_0x5e2dc0);})['catch'](_0x413b04=>(console['error'](_0x413b04),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5a2d61=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'](),_0x5a2d61(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2e5e80=this['editor']['plugins']['get']('Annotations');_0x2e5e80['refreshVisibility'](),_0x2e5e80['refreshPositioning']();}})));}['_showRevisionViewer'](_0x303457){const _0x2f181a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5d3d13=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x586064=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x586064,_0x303457)['then'](_0xad6c6e=>(_0x5d3d13['style']['display']='block',_0x2f181a['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xad6c6e));}['_closeRevisionViewer'](_0x2d7e0a){const _0x11382b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x11382b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2d7e0a['destroy']();}async['_restoreRevision'](_0x46f44d){const _0x4becae=this['editor'],_0x15149f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3f0d96=_0x4becae['plugins']['get']('RevisionTracker'),_0x4bda53=_0x4becae['plugins']['get']('RevisionHistoryUtils'),_0x2bb805=_0x15149f['repository']['getRevision'](_0x46f44d);let _0xe42baf,_0x530287,_0x33b071;try{await _0x4bda53['loadRevisionData'](_0x2bb805,this['adapter']),_0xe42baf=_0x4bda53['getRevisionDocumentData'](_0x2bb805),_0x530287=_0x4bda53['getRevisionRootsAttributes'](_0x2bb805);}catch(_0x119b00){return void console['error'](_0x119b00);}_0x4becae['model']['change'](_0x5b05bd=>{for(const _0x2f6da3 of Array['from'](_0x4becae['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5b05bd['removeMarker'](_0x2f6da3);}),_0x15149f['isReady']=!0x1,_0x4becae['model']['enqueueChange'](_0x57d896=>{_0x57d896['setSelection'](null),_0x57d896['removeSelectionAttribute'](_0x4becae['model']['document']['selection']['getAttributeKeys']());const _0x451238=Object['keys'](_0xe42baf);for(const _0x9af180 of _0x4becae['model']['document']['roots'])'$graveyard'!=_0x9af180['rootName']&&_0x9af180['isAttached']()&&!_0x451238['includes'](_0x9af180['rootName'])&&_0x57d896['detachRoot'](_0x9af180);for(const _0x2d86e6 of _0x451238){let _0x55e62d=_0x4becae['model']['document']['getRoot'](_0x2d86e6);_0x55e62d&&_0x55e62d['isAttached']()||(_0x55e62d=_0x57d896['addRoot'](_0x2d86e6));const _0x389f34=_0x530287[_0x2d86e6],_0x3ecb7e=Object['keys'](_0x389f34),_0x34479a=_0xe42baf[_0x2d86e6];for(const _0x281731 of _0x55e62d['getAttributeKeys']())_0x3ecb7e['includes'](_0x281731)||_0x57d896['removeAttribute'](_0x281731,_0x55e62d);for(const _0x744151 of _0x3ecb7e)_0x57d896['setAttribute'](_0x744151,_0x530287[_0x2d86e6][_0x744151],_0x55e62d);_0x57d896['remove'](_0x57d896['createRangeIn'](_0x55e62d)),_0x57d896['insert'](_0x4becae['data']['parse'](_0x34479a,_0x55e62d),_0x55e62d,0x0);}});const _0x25b3ec=g(_0x4becae['locale'],'Restored');if(_0x2bb805['name'])_0x33b071=-0x1==_0x2bb805['name']['indexOf'](_0x25b3ec)?_0x25b3ec+':\x20'+_0x2bb805['name']:_0x2bb805['name'];else _0x33b071=_0x25b3ec+':\x20'+(_0x2bb805['createdAt']['toLocaleDateString'](_0x4becae['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2bb805['createdAt']['toLocaleTimeString'](_0x4becae['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3f0d96['saveRevision']({'name':_0x33b071}),_0x15149f['isReady']=!0x0,_0x4becae['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};