@ckeditor/ckeditor5-revision-history 44.0.0-alpha.11 → 44.0.0-alpha.12

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 _0x548e85,uid as _0x48d30f,Collection as _0x484e70,logWarning as _0x122f63,FocusTracker as _0x156815,KeystrokeHandler as _0x494240,scrollViewportToShowTarget as _0x5a980a,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x31144e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1feff3,set as _0x194f23,unset as _0x161646,isEqual as _0x276f68}from'lodash-es';import{Plugin as _0x3472f2,PendingActions as _0x469610,icons as _0x3b2de1,Command as _0x5873b3,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2be816,getMarkerDomElement as _0x478fd0,ConfirmMixin as _0x12fed1,sanitizeEditorConfig as _0x55347b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2083b3,ViewText as _0x485786,ViewElement as _0x39dcfb,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x5e6c57,ViewAttributeElement as _0x10b96c,ViewEmptyElement as _0x152bc2,ViewRawElement as _0x5d1736,ViewUIElement as _0x57f6bc,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5ef80d,injectCssTransitionDisabler as ts,submitHandler as _0xd4a387,LabeledFieldView as at,createLabeledInputText as _0x159df2,createDropdown as _0xea3632,ListView as te,ListItemView as _0x5657fa,ButtonView as _0x4d329d,MenuBarMenuView as _0x4c4776,MenuBarMenuListView as _0x54c300,MenuBarMenuListItemView as _0x59f5b4,MenuBarMenuListItemButtonView as _0x43a490,ContextualBalloon as _0x2b93ff,ToolbarSeparatorView as _0x5c36e5,IconView as _0x549a8e,addListToDropdown as _0x4b64ea,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3e51c8}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x548e85(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x59c8db){super(),this['id']=_0x59c8db['id']||_0x48d30f(),this['creator']=_0x59c8db['creator']||null,this['authors']=_0x59c8db['authors']||[],this['diffData']=_0x59c8db['diffData']||null,this['toVersion']=_0x59c8db['toVersion']||0x0,this['fromVersion']=_0x59c8db['fromVersion']||0x0,this['set']('name',_0x59c8db['name']||''),this['set']('createdAt',_0x59c8db['createdAt']||new Date()),this['set']('attributes',_0x59c8db['attributes']||{});}['setName'](_0x42ce2d){this['_update']({'name':_0x42ce2d});}['setAttribute'](_0x1687c9,_0x1ea02f){const _0x2b9828=_0x1feff3(this['attributes']);_0x194f23(_0x2b9828,_0x1687c9,_0x1ea02f),this['_update']({'attributes':_0x2b9828});}['removeAttribute'](_0x4ceb2f){const _0x1bdda3=_0x1feff3(this['attributes']);_0x161646(_0x1bdda3,_0x4ceb2f),this['_update']({'attributes':_0x1bdda3});}['_update'](_0xdf6d01,_0x33fb1e=!0x1){let _0x17e682=!0x1;const _0x17cf9e={'id':this['id']},_0x283a2e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d533b of _0x283a2e){const _0x16b824=_0xdf6d01[_0x5d533b];void 0x0!==_0x16b824&&_0x16b824!==this[_0x5d533b]&&(this[_0x5d533b]=_0x16b824,_0x17cf9e[_0x5d533b]=_0x16b824,_0x17e682=!0x0);}_0x17e682&&(_0x17cf9e['authors']&&(_0x17cf9e['authorsIds']=_0x17cf9e['authors']['map'](_0x3de23e=>_0x3de23e['id']),delete _0x17cf9e['authors']),this['fire']('_update',_0x17cf9e,_0x33fb1e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x39f1ee=>_0x39f1ee['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3472f2{['_revisions'];static get['requires'](){return[_0x2be816];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5a6ccb){super(_0x5a6ccb),this['_revisions']=new _0x484e70();}['afterInit'](){!async function(_0x27f5f1){const _0x1f7001=_0x264059([0x36,0x4d,0x31,0x37,0x55,0x33,0x69,0x39,0x78,0x6f,0x4e,0x53,0x35,0x30,0x74,0x49,0x6c,0x66,0x44,0x6b,0x62,0x58,0x46,0x51,0x72,0x56,0x4f,0x32,0x63,0x48,0x42,0x73,0x70,0x59,0x52,0x67,0x5a,0x38,0x61,0x47,0x6e,0x75,0x6a,0x79,0x45,0x54,0x68,0x65,0x43,0x57,0x77,0x4a,0x4c,0x4b,0x41,0x34,0x71,0x7a,0x64,0x76,0x6d,0x50]),_0x23abc3=0xeb829,_0x19ffbf=0x288e24b0,_0x27cf60=0x28897cc0^_0x19ffbf,_0x522b70=window[_0x264059([0x44,0x61,0x74,0x65])][_0x264059([0x6e,0x6f,0x77])](),_0x380dca=_0x27f5f1[_0x264059([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x430759=new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x206bde=>{_0x380dca[_0x264059([0x6f,0x6e,0x63,0x65])](_0x264059([0x72,0x65,0x61,0x64,0x79]),_0x206bde);}),_0x3a8b7b={[_0x264059([0x6b,0x74,0x79])]:_0x264059([0x45,0x43]),[_0x264059([0x75,0x73,0x65])]:_0x264059([0x73,0x69,0x67]),[_0x264059([0x63,0x72,0x76])]:_0x264059([0x50,0x2d,0x32,0x35,0x36]),[_0x264059([0x78])]:_0x264059([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]),[_0x264059([0x79])]:_0x264059([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]),[_0x264059([0x61,0x6c,0x67])]:_0x264059([0x45,0x53,0x32,0x35,0x36])},_0x1ca00d=_0x380dca[_0x264059([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x264059([0x67,0x65,0x74])](_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34e27e(){let _0x4ae064,_0x50b503=null,_0x357e71=null;try{if(_0x1ca00d==_0x264059([0x47,0x50,0x4c]))return _0x264059([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ae064=_0x2acb14(),!_0x4ae064)return _0x264059([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ae064[_0x264059([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x357e71=_0x3565d0(_0x4ae064[_0x264059([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ae064[_0x264059([0x6a,0x74,0x69])])),await _0x447f01()?_0x3a1471()?_0x535537()?_0x264059([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3313e1()?(_0x4ae064[_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x264059([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b503=_0x43565f(_0x264059([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ae064[_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x264059([0x74,0x72,0x69,0x61,0x6c])&&(_0x50b503=_0x43565f(_0x264059([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ae064[_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x264059([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x50b503=_0x43565f(_0x264059([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2af6ce()):_0x264059([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x264059([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x264059([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x109982){return _0x264059([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x535537(){const _0x15fc43=[_0x264059([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x264059([0x74,0x72,0x69,0x61,0x6c])][_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ae064[_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x522b70/0x3e8:0xe10*_0x27cf60;return _0x4ae064[_0x264059([0x65,0x78,0x70])]<_0x15fc43;}function _0x3a1471(){const _0x3b41bd=_0x4ae064[_0x264059([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b41bd)return!0x1;if(_0x3b41bd[_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x264059([0x2a])))return!0x0;if(_0x3b41bd[_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x264059([0x52,0x48])))return!0x0;if(_0x3b41bd[_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x264059([0x52,0x52,0x48]))){if(_0x5c22dd())return!0x0;if(_0xe73840()||_0x3f4ea2())return!0x0;}return!0x1;}function _0x3313e1(){const _0x1eb10b=_0x4ae064[_0x264059([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1eb10b||0x0==_0x1eb10b[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12cf01}=new URL(window[_0x264059([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1eb10b[_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cf01))return!0x0;const _0x4d3cec=_0x12cf01[_0x264059([0x73,0x70,0x6c,0x69,0x74])](_0x264059([0x2e]));return _0x1eb10b[_0x264059([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb04591=>_0xb04591[_0x264059([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x264059([0x2a])))[_0x264059([0x6d,0x61,0x70])](_0x3ff370=>_0x3ff370[_0x264059([0x73,0x70,0x6c,0x69,0x74])](_0x264059([0x2e])))[_0x264059([0x73,0x6f,0x6d,0x65])](_0x2bd391=>_0x4d3cec[_0x264059([0x65,0x76,0x65,0x72,0x79])]((_0x1a66b7,_0x2468b4)=>_0x2bd391[_0x2468b4]===_0x1a66b7||_0x2bd391[_0x2468b4]===_0x264059([0x2a])));}function _0x2af6ce(){return _0x50b503&&_0x357e71?new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x182dbf,_0x2fdf3a)=>{_0x50b503[_0x264059([0x74,0x68,0x65,0x6e])](_0x182dbf,_0x2fdf3a),_0x357e71[_0x264059([0x74,0x68,0x65,0x6e])](_0x50a964=>{_0x50a964!=_0x264059([0x56,0x61,0x6c,0x69,0x64])&&_0x182dbf(_0x50a964);},_0x2fdf3a);}):_0x50b503||_0x357e71||_0x264059([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3565d0(_0x280199,_0x1e186b){return new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x586c1b=>{if(_0x1dc694())return _0x586c1b(_0x264059([0x56,0x61,0x6c,0x69,0x64]));_0x17fdea(),_0x380dca[_0x264059([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x264059([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5435d0=!0x1;const _0x2f0230=_0x48d30f();function _0x1ad624(_0x1baec3){return!!_0x1baec3&&(typeof _0x1baec3===_0x264059([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1baec3===_0x264059([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1baec3[_0x264059([0x74,0x68,0x65,0x6e])]===_0x264059([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1baec3[_0x264059([0x63,0x61,0x74,0x63,0x68])]===_0x264059([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x559363(_0x41eb54){_0x635d65(_0x41eb54)[_0x264059([0x74,0x68,0x65,0x6e])](_0x1ab2ff=>{if(!_0x1ab2ff||_0x1ab2ff[_0x264059([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x264059([0x6f,0x6b]))return _0x264059([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9160(_0x5a7019(_0x2f0230+_0x1e186b))!=_0x1ab2ff[_0x264059([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x264059([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x264059([0x56,0x61,0x6c,0x69,0x64]);})[_0x264059([0x74,0x68,0x65,0x6e])](_0x5b7daa=>(_0x27f677(),_0x5b7daa),()=>{const _0x37d813=_0x4e8ce2();return null==_0x37d813?(_0x27f677(),_0x264059([0x56,0x61,0x6c,0x69,0x64])):_0x264059(_0x522b70-_0x37d813>(0xc82a0b0^_0x19ffbf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x264059([0x74,0x68,0x65,0x6e])](_0x586c1b)[_0x264059([0x63,0x61,0x74,0x63,0x68])](()=>{_0x586c1b(_0x264059([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x252fe2=0x28b8ca30^_0x19ffbf;function _0x27f677(){const _0x33d085=_0x264059([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9160(_0x5a7019(_0x280199)),_0x4e72f8=_0x4e44e3(_0x2a9160(window[_0x264059([0x4d,0x61,0x74,0x68])][_0x264059([0x63,0x65,0x69,0x6c])](_0x522b70/_0x252fe2)));window[_0x264059([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x264059([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33d085,_0x4e72f8);}function _0x4e8ce2(){const _0x5ab34a=_0x264059([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9160(_0x5a7019(_0x280199)),_0x1a3aa7=window[_0x264059([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x264059([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ab34a);return _0x1a3aa7?window[_0x264059([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e44e3(_0x1a3aa7),0x10)*_0x252fe2:null;}function _0x635d65(_0x4cdb86){return new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56e057,_0x3fa77a)=>{_0x4cdb86[_0x264059([0x74,0x68,0x65,0x6e])](_0x56e057,_0x3fa77a),window[_0x264059([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3fa77a,0x288ff070^_0x19ffbf);});}}_0x380dca[_0x264059([0x6f,0x6e])](_0x264059([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d529c,_0x34fb9d)=>{if(_0x34fb9d[0x0]!=_0x280199)return _0x586c1b(_0x264059([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34fb9d[0x1]={..._0x34fb9d[0x1],[_0x264059([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f0230};},{[_0x264059([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x264059([0x68,0x69,0x67,0x68])}),_0x380dca[_0x264059([0x6f,0x6e])](_0x264059([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x184e0e=>{_0x1ad624(_0x184e0e[_0x264059([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5435d0=!0x0,_0x559363(_0x184e0e[_0x264059([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x264059([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x264059([0x6c,0x6f,0x77])}),_0x430759[_0x264059([0x74,0x68,0x65,0x6e])](()=>{_0x5435d0||_0x586c1b(_0x264059([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dc694(){return _0x380dca[_0x264059([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x264059([0x76,0x69,0x65,0x77])][_0x264059([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x264059([0x61,0x75,0x74,0x6f]);}function _0x17fdea(){_0x380dca[_0x264059([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x264059([0x76,0x69,0x65,0x77])][_0x264059([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x264059([0x61,0x75,0x74,0x6f]);}}function _0x43565f(_0xafec48){const _0x448f0d=[new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f04b7=>setTimeout(_0x4f04b7,0x28871a7c^_0x19ffbf)),_0x430759[_0x264059([0x74,0x68,0x65,0x6e])](()=>new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a98e=>{const _0x1074a5=0x288e24b7^_0x19ffbf,_0x27d512=_0x27f5f1[_0x264059([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5a5406(){_0x27d512[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1074a5&&_0x12a98e();}_0x5a5406(),_0x27d512[_0x264059([0x6f,0x6e])](_0x264059([0x61,0x64,0x64]),_0x5a5406);})),new window[(_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec433=>{function _0x49ae71(){for(const _0x270772 in window)if(window[_0x264059([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x264059([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x270772))&&window[_0x270772]==_0x23abc3)return _0x5ec433();_0x380dca[_0x264059([0x73,0x74,0x61,0x74,0x65])]!=_0x264059([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x264059([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ae71,0x288e3738^_0x19ffbf);}_0x16ae44(_0x264059([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x49ae71();})];return window[_0x264059([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x264059([0x72,0x61,0x63,0x65])](_0x448f0d)[_0x264059([0x74,0x68,0x65,0x6e])](()=>_0xafec48);}async function _0x3e9945(){if(await _0x430759,_0x16ae44(_0x264059([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1d987a=_0x27f5f1[_0x264059([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x43a19a=_0x27f5f1[_0x264059([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])](_0x1d987a[_0x264059([0x69,0x64])]),_0x469e21=_0x320de3(_0x264059([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x469e21[_0x264059([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d987a['id'],_0x43a19a?_0x43a19a['id']:null,!0x0),_0x469e21[_0x264059([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x264059([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x469e21[_0x264059([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x469e21[_0x264059([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x58a770,void(_0x469e21[_0x264059([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x58a770);}if(_0x16ae44(_0x264059([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x19b56=_0x320de3(_0x264059([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x19b56[_0x264059([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x264059([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x19b56[_0x264059([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x19b56[_0x264059([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x58a770,_0x19b56[_0x264059([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x58a770;}_0x380dca[_0x264059([0x6d,0x6f,0x64,0x65,0x6c])][_0x264059([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58a770,_0x380dca[_0x264059([0x6d,0x6f,0x64,0x65,0x6c])][_0x264059([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58a770,_0x380dca[_0x264059([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x264059([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c22dd(){return _0x16ae44(_0x264059([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x320de3(_0x264059([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x264059([0x73,0x74,0x61,0x74,0x65])]==_0x264059([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe73840(){return _0x16ae44(_0x264059([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 _0x3f4ea2(){return _0x16ae44(_0x264059([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14ab64(_0x13499a){const _0x3ba2f9=_0x319540();_0x380dca[_0x3ba2f9]=_0x264059([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])+_0x13499a,_0x13499a[_0x264059([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x264059([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x319540()]=_0x23abc3),_0x13499a!=_0x264059([0x56,0x61,0x6c,0x69,0x64])&&_0x3e9945();}function _0x319540(){const _0x468c8a=window[_0x264059([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x264059([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x264059([0x6e,0x6f,0x77])]())[_0x264059([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x264059([0x2e]),'');let _0x163975=_0x264059([0x4d]);for(let _0x234a26=0x0;_0x234a26<_0x468c8a[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x234a26+=0x2){let _0x4dd35a=window[_0x264059([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468c8a[_0x264059([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x234a26,_0x234a26+0x2));_0x4dd35a>=_0x1f7001[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4dd35a-=_0x1f7001[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x163975+=_0x1f7001[_0x4dd35a];}return _0x163975;}function _0x2acb14(){const _0x2c265c=_0x1ca00d[_0x264059([0x73,0x70,0x6c,0x69,0x74])](_0x264059([0x2e]));if(0x3!=_0x2c265c[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12d2a1(_0x2c265c[0x1]);function _0x12d2a1(_0x33a5a5){const _0x594411=_0x31bd5a(_0x33a5a5);return _0x594411&&_0x7a6355()?_0x594411:null;function _0x7a6355(){const _0x5cf231=_0x594411[_0x264059([0x6a,0x74,0x69])],_0x90a102=window[_0x264059([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf231[_0x264059([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf231[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57303d={..._0x594411,[_0x264059([0x6a,0x74,0x69])]:_0x5cf231[_0x264059([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf231[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57303d[_0x264059([0x76,0x63])],_0x5a7019(_0x57303d)==_0x90a102;}}}async function _0x447f01(){let _0x55aece=!0x0;try{const _0x49a2fe=_0x1ca00d[_0x264059([0x73,0x70,0x6c,0x69,0x74])](_0x264059([0x2e])),[_0x5af8af,_0x217f55,_0x1b6f46]=_0x49a2fe;return _0x19090c(_0x5af8af),await _0x1e976e(_0x5af8af,_0x217f55,_0x1b6f46),_0x55aece;}catch(_0x33e52d){return!0x1;}function _0x19090c(_0x4e75ab){const _0x4e0aea=_0x31bd5a(_0x4e75ab);_0x4e0aea&&_0x4e0aea[_0x264059([0x61,0x6c,0x67])]==_0x264059([0x45,0x53,0x32,0x35,0x36])||(_0x55aece=!0x1);}async function _0x1e976e(_0x5c9bb0,_0x57aa3c,_0x2b561f){const _0x21b8af=window[_0x264059([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x264059([0x66,0x72,0x6f,0x6d])](_0x174e50(_0x2b561f),_0x5d97ce=>_0x5d97ce[_0x264059([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5583d8=new window[(_0x264059([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x264059([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c9bb0+_0x264059([0x2e])+_0x57aa3c),_0x1b8a5a=window[_0x264059([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x264059([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b8a5a)return;const _0x42b73b=await _0x1b8a5a[_0x264059([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x264059([0x6a,0x77,0x6b]),_0x3a8b7b,{[_0x264059([0x6e,0x61,0x6d,0x65])]:_0x264059([0x45,0x43,0x44,0x53,0x41]),[_0x264059([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x264059([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x264059([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b8a5a[_0x264059([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x264059([0x6e,0x61,0x6d,0x65])]:_0x264059([0x45,0x43,0x44,0x53,0x41]),[_0x264059([0x68,0x61,0x73,0x68])]:{[_0x264059([0x6e,0x61,0x6d,0x65])]:_0x264059([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42b73b,_0x21b8af,_0x5583d8)||(_0x55aece=!0x1);}}function _0x31bd5a(_0x3636e7){return _0x3636e7[_0x264059([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x264059([0x65,0x79]))?JSON[_0x264059([0x70,0x61,0x72,0x73,0x65])](_0x174e50(_0x3636e7)):null;}function _0x174e50(_0x1338ec){return window[_0x264059([0x61,0x74,0x6f,0x62])](_0x1338ec[_0x264059([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x264059([0x2b]))[_0x264059([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x264059([0x2f])));}function _0x5a7019(_0x7ff8d4){let _0x50510e=0x1505;function _0x2c79c6(_0x34b007){for(let _0x5cd848=0x0;_0x5cd848<_0x34b007[_0x264059([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cd848++){const _0xd40bc5=_0x34b007[_0x264059([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cd848);_0x50510e=(_0x50510e<<0x5)+_0x50510e+_0xd40bc5,_0x50510e&=_0x50510e;}}function _0x2c1870(_0x1ee251){Array[_0x264059([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ee251)?_0x1ee251[_0x264059([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c1870):_0x1ee251&&typeof _0x1ee251==_0x264059([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x264059([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ee251)[_0x264059([0x73,0x6f,0x72,0x74])]()[_0x264059([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c7751,_0x2d8839])=>{_0x2c79c6(_0x4c7751),_0x2c1870(_0x2d8839);}):_0x2c79c6(window[_0x264059([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ee251));}return _0x2c1870(_0x7ff8d4),_0x50510e>>>0x0;}function _0x2a9160(_0x5b7037){return _0x5b7037[_0x264059([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x264059([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x264059([0x30]));}function _0x4e44e3(_0x186168){return _0x186168[_0x264059([0x73,0x70,0x6c,0x69,0x74])]('')[_0x264059([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x264059([0x6a,0x6f,0x69,0x6e])]('');}function _0x16ae44(_0x82f67c){return _0x380dca[_0x264059([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x264059([0x68,0x61,0x73])](_0x82f67c);}function _0x320de3(_0x521a38){return _0x380dca[_0x264059([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x264059([0x67,0x65,0x74])](_0x521a38);}function _0x58a770(){}function _0x264059(_0x504697){return _0x504697['map'](_0x1a70d8=>String['fromCharCode'](_0x1a70d8))['join']('');}_0x14ab64(await _0x34e27e());}(this);}['createRevision'](_0x44ef36){const _0x17fb45=this['editor']['plugins']['get']('Users');return new a({'id':_0x44ef36['id'],'name':_0x44ef36['name'],'creator':_0x44ef36['creatorId']?_0x17fb45['getUser'](_0x44ef36['creatorId']):null,'diffData':_0x44ef36['diffData']||_0x44ef36['data'],'authors':_0x44ef36['authorsIds']['map'](_0x67685f=>_0x17fb45['getUser'](_0x67685f)),'createdAt':new Date(_0x44ef36['createdAt']),'attributes':_0x44ef36['attributes'],'fromVersion':_0x44ef36['fromVersion'],'toVersion':_0x44ef36['toVersion']});}['addRevision'](_0x3a1794,_0x4297ec=0x0){this['_revisions']['add'](_0x3a1794,_0x4297ec);}['getRevision'](_0x39a169){return this['_revisions']['get'](_0x39a169);}['getRevisions'](_0x5f4df4={'toJSON':!0x1}){const _0x40f3cc=Array['from'](this['_revisions']);return _0x40f3cc['reverse'](),_0x5f4df4['toJSON']?_0x40f3cc['map'](_0x41494d=>_0x41494d['toJSON']()):_0x40f3cc;}['getIndex'](_0x235cec){return this['_revisions']['getIndex'](_0x235cec);}['getEarlierVisibleRevision'](_0x26685d){const [,_0xf809db]=this['getRevisionsIterator'](_0x26685d,{'direction':'earlier'});return _0xf809db;}['getLaterVisibleRevision'](_0x2f52d9){const [,_0x1becc2]=this['getRevisionsIterator'](_0x2f52d9,{'direction':'later'});return _0x1becc2;}['getRevisionsInDiff'](_0x3605e3){const _0x40db02=[];for(const _0x120a01 of this['getRevisionsIterator'](_0x3605e3['newRevisionId']))if(_0x40db02['push'](_0x120a01),_0x120a01['id']===_0x3605e3['oldRevisionId'])break;return _0x40db02;}*['getRevisionsIterator'](_0x570d5b,{direction:_0x439009='earlier',filter:_0x4ac149=()=>!0x0}={}){const _0x4f7db7='earlier'===_0x439009?0x1:-0x1;let _0x36f9c6=this['_revisions']['get'](_0x570d5b),_0x5e6bca=this['getIndex'](_0x36f9c6);for(yield _0x36f9c6;_0x36f9c6;){if(_0x5e6bca+=_0x4f7db7,_0x36f9c6=this['getRevision'](_0x5e6bca),!_0x36f9c6)return;_0x4ac149(_0x36f9c6)&&(yield _0x36f9c6);}}}function R(_0x220187,_0x3679f4,_0x504621){const t=_0x220187['t'];switch(_0x3679f4){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'},_0x504621);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x504621);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x5e6c57,'a':_0x10b96c,'e':_0x152bc2,'r':_0x5d1736,'u':_0x57f6bc};class l extends _0x3472f2{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2be816,j,_0x469610];}constructor(_0x4b2275){super(_0x4b2275),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x173f86=_0x48d30f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x173f86},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x340bbb=this['repository']['getRevision'](0x0),_0x1001ad=_0x340bbb&&null===_0x340bbb['creator']?_0x340bbb:null;if(this['_continueCurrentRevision']=!!_0x1001ad&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x417189=this['_source']['getCurrentRevisionId'](),_0x29c059=this['repository']['getRevision'](_0x417189);if(_0x29c059)this['_startingVersion']=_0x29c059['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x13faba=this['_source']['history']['_operations']['find'](_0x3fda2e=>!_0x3fda2e['_isInit']),_0x1c2176=_0x13faba?_0x13faba['baseVersion']:this['_source']['history']['version'];_0x340bbb?(_0x340bbb['toVersion']<_0x1c2176&&_0x340bbb['_update']({'toVersion':_0x1c2176}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1001ad['id'],this['_startingVersion']=_0x1001ad['fromVersion']):(this['_startingVersion']=_0x340bbb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1c2176,this['_continueCurrentRevision']=!0x1);}}else _0x1001ad&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1001ad['toVersion'],this['editor']['model']['document']['history']['version']),_0x1001ad['fromVersion']===_0x1001ad['toVersion']?(0x0!==_0x1001ad['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1001ad['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1001ad['id'],this['_startingVersion']=_0x1001ad['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',_0x5cd233=>!_0x5cd233),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b7e50=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x395285;for(const _0x151f2a in _0x1b7e50){const _0x4e106b=_0x151f2a,_0x42bbab=_0x1b7e50[_0x4e106b];if('revisionHistoryLicenseKeyValid'==_0x42bbab||'revisionHistoryLicenseKeyInvalid'==_0x42bbab||'revisionHistoryLicenseKeyExpired'==_0x42bbab||'revisionHistoryLicenseKeyDomainLimit'==_0x42bbab||'revisionHistoryLicenseKeyNotAllowed'==_0x42bbab||'revisionHistoryLicenseKeyEvaluationLimit'==_0x42bbab||'revisionHistoryLicenseKeyTrialLimit'==_0x42bbab||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x42bbab||'revisionHistoryLicenseKeyUsageLimit'==_0x42bbab){delete _0x1b7e50[_0x4e106b],_0x395285=_0x42bbab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x395285&&_0x1b7e50['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x395285&&_0x1b7e50['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x395285&&_0x1b7e50['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x395285&&_0x1b7e50['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x395285&&_0x1b7e50['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x395285&&_0x1b7e50['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x395285&&_0x1b7e50['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x395285&&_0x1b7e50['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x46552b=this['repository']['getRevision'](0x0),_0x93b5d=await this['getRevisionDocumentData'](_0x46552b),_0x4510c4=await this['getRevisionRootsAttributes'](_0x46552b);this['_replaceEditorDataWithRevisionData'](_0x93b5d,_0x4510c4);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x471f42){this['_source']=_0x471f42;}async['update'](){const _0x28cf76=await this['_source']['getLatestVersion']();if(_0x28cf76>this['currentRevision']['toVersion']){await this['_loadState']();const _0x442ca2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x28cf76});_0x442ca2['authors']=_0x442ca2['authorsIds']['map'](_0x49c096=>this['editor']['plugins']['get']('Users')['getUser'](_0x49c096)),this['currentRevision']['_update'](_0x442ca2);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1558e2={},_0x536df3=null){const _0x15cd09=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x536df3>this['currentRevision']['toVersion']&&(_0x536df3=null),null===_0x536df3&&(_0x536df3=await this['_source']['getLatestVersion']());const _0x3cb468=this['_getFromVersion'](_0x536df3),_0x988266=this['buildRevisionData']({'from':_0x3cb468,'to':_0x536df3});if(this['currentRevision']['toVersion']<_0x536df3){const _0xbc6b90=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x536df3,'to':_0x536df3});_0xbc6b90['authors']=[],_0xbc6b90['authorsIds']=[],_0xbc6b90['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbc6b90,!0x0),delete _0xbc6b90['authors'],_0x15cd09['push'](_0xbc6b90);}_0x1558e2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1558e2['name']=_0x1558e2['name']||null,_0x1558e2['id']=_0x1558e2['id']||_0x48d30f(),_0x1558e2={..._0x1558e2,..._0x988266};const _0x250a93=this['addRevisionData'](_0x1558e2);_0x15cd09['push'](_0x1558e2);const _0x469a11=this['repository']['getIndex'](_0x250a93);if(0x0!==_0x469a11){const _0x5862f6=this['repository']['getRevision'](_0x469a11-0x1);if(_0x5862f6['fromVersion']!==_0x536df3){const _0x5d87a3=this['_revisionDataBuilder']['getData'](_0x536df3,_0x5862f6['toVersion']),_0x3f1f0b={'id':_0x5862f6['id'],'diffData':_0x5d87a3['diffData'],'authorsIds':_0x5d87a3['authorsIds'],'authors':_0x5d87a3['authorsIds']['map'](_0x47c1de=>this['editor']['plugins']['get']('Users')['getUser'](_0x47c1de)),'fromVersion':_0x536df3};_0x5862f6===this['currentRevision']&&(_0x3f1f0b['createdAt']=new Date(_0x1558e2['createdAt']['getTime']()+0xa)),_0x5862f6['_update'](_0x3f1f0b,!0x0),delete _0x3f1f0b['authors'],_0x15cd09['push'](_0x3f1f0b);}}if(this['adapter']){for(const _0x23f28b of _0x15cd09)this['_bufferUpdate'](_0x23f28b['id'],_0x23f28b,!0x0);this['sendBufferedUpdates']();}return _0x250a93;}['addRevisionData'](_0x4fc382){const _0x68fcc5=this['repository']['createRevision'](_0x4fc382);return this['adapter']&&_0x68fcc5['on']('_update',(_0x452762,_0x2c14a2,_0x20c309)=>{_0x20c309||(this['_bufferUpdate'](_0x2c14a2['id'],_0x2c14a2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x68fcc5,this['_findInsertionIndex'](_0x68fcc5)),_0x68fcc5;}async['getRevisionDocumentData'](_0x5428f3){await this['_loadRevisionData'](_0x5428f3);const _0x311d80={};for(const _0x340a3e in _0x5428f3['diffData']){if(_0x5428f3['diffData'][_0x340a3e]['attachChange']&&!_0x5428f3['diffData'][_0x340a3e]['attachChange']['isAttached'])continue;const _0x1d7499=this['_removeRevisionMarkers'](JSON['parse'](_0x5428f3['diffData'][_0x340a3e]['insertions'])),_0x26d04c=this['editor']['editing']['view']['document'],_0x13d29b=new _0x2083b3(_0x26d04c,_0x1d7499['map'](_0x492db3=>V(_0x492db3,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x311d80[_0x340a3e]=this['editor']['data']['processor']['toData'](_0x13d29b),this['editor']['data']['processor']['useFillerType']('default');}return _0x311d80;}async['getRevisionRootsAttributes'](_0x10fb2e){await this['_loadRevisionData'](_0x10fb2e);const _0x3ca06e={};for(const _0x414bcd in _0x10fb2e['diffData'])_0x10fb2e['diffData'][_0x414bcd]['attachChange']&&!_0x10fb2e['diffData'][_0x414bcd]['attachChange']['isAttached']||(_0x3ca06e[_0x414bcd]=_0x10fb2e['diffData'][_0x414bcd]['attributesAfter']||{});return _0x3ca06e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x568f95=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4c637b=0x0;_0x4c637b<_0x568f95['length'];_0x4c637b++){const _0x48d68c=_0x568f95[_0x4c637b];let _0x5b3358=!0x1;for(const _0x2a878d of Object['keys'](_0x48d68c))void 0x0===_0x48d68c[_0x2a878d]?delete _0x48d68c[_0x2a878d]:'id'!==_0x2a878d&&(_0x5b3358=!0x0);_0x5b3358||(_0x568f95[_0x4c637b]=null);}if(_0x568f95=_0x568f95['filter'](_0x356bb7=>null!==_0x356bb7),!_0x568f95['length'])return;for(let _0xa4d99d=0x0;_0xa4d99d<_0x568f95['length'];_0xa4d99d++){const _0xed6485=_0x568f95[_0xa4d99d];void 0x0!==_0xed6485['fromVersion']&&void 0x0===_0xed6485['toVersion']&&(_0xed6485['toVersion']=this['repository']['getRevision'](_0xed6485['id'])['toVersion']),void 0x0!==_0xed6485['toVersion']&&void 0x0===_0xed6485['fromVersion']&&(_0xed6485['fromVersion']=this['repository']['getRevision'](_0xed6485['id'])['fromVersion']);}const _0x481691=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x568f95,_0x481691)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x16a49a=>{if(_0x16a49a){for(const _0x5037bc of _0x16a49a)this['setRevisionData']({'id':_0x5037bc['id'],'createdAt':_0x5037bc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5887a1,_0x26bae6){let _0x3abd6a=this['editor']['config']['get']('initialData'),_0x555392=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3abd6a){_0x3abd6a={};for(const _0x5880e7 of this['editor']['model']['document']['getRootNames']())_0x3abd6a[_0x5880e7]='';}if('string'==typeof _0x3abd6a&&(_0x3abd6a={'main':_0x3abd6a}),void 0x0===_0x555392){_0x555392={};for(const _0x363c88 of this['editor']['model']['document']['getRootNames']())_0x555392[_0x363c88]={};}let _0x30a224=!0x1;const _0x43ed19=Object['keys'](_0x3abd6a),_0x5b8133=Object['keys'](_0x5887a1);for(const _0x455588 of _0x43ed19){if(_0x3abd6a[_0x455588]!==_0x5887a1[_0x455588]&&''!==_0x3abd6a[_0x455588]['trim']()){_0x30a224=!0x0;break;}if(!_0x276f68(_0x555392[_0x455588],_0x26bae6[_0x455588])&&Object['keys'](_0x555392[_0x455588])['length']>0x0){_0x30a224=!0x0;break;}}_0x30a224||(_0x30a224=_0x5b8133['some'](_0x2a6882=>!this['editor']['model']['document']['getRoot'](_0x2a6882))),_0x30a224&&_0x122f63('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3abd6a,'editorRootsAttributes':_0x555392,'revisionData':_0x5887a1,'revisionRootsAttributes':_0x26bae6}),this['editor']['config']['set']('initialData',_0x5887a1),this['editor']['config']['set']('rootsAttributes',_0x26bae6);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4202a5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4202a5['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x441159){const _0x13c77a=this['repository']['getRevisions']();_0x13c77a['reverse']();let _0x459928=0x0;for(;_0x459928<_0x13c77a['length'];){const _0x1e550c=_0x13c77a[_0x459928];if(_0x1e550c===this['currentRevision']){_0x459928++;continue;}if(_0x1e550c['id']===this['_initialRevisionId'])break;const _0x1c99c6=_0x441159['toVersion']-_0x1e550c['toVersion']||_0x441159['fromVersion']-_0x1e550c['fromVersion'];if(_0x1c99c6>0x0)break;if(_0x1c99c6<0x0)_0x459928++;else{if(!_0x441159['creator']&&_0x1e550c['creator'])break;if(_0x1e550c['creator']||!_0x441159['creator']){if(_0x441159['createdAt']>_0x1e550c['createdAt'])break;_0x459928++;}else _0x459928++;}}return _0x459928;}['setRevisionData'](_0x23de7d){const _0x1f055f=this['repository']['getRevision'](_0x23de7d['id']);if(_0x23de7d['createdAt']&&(_0x23de7d['createdAt']=new Date(_0x23de7d['createdAt'])),_0x23de7d['authorsIds']){const _0x9aca67=this['editor']['plugins']['get']('Users');_0x23de7d['authors']=_0x23de7d['authorsIds']['map'](_0x5b6889=>_0x9aca67['getUser'](_0x5b6889));}_0x1f055f['_update'](_0x23de7d,!0x0);}['buildRevisionData']({revision:_0x5ee816=null,from:_0x1b924e=null,to:_0x5adfd6=null}){_0x1b924e=null!==_0x1b924e?_0x1b924e:_0x5ee816['fromVersion'],_0x5adfd6=null!==_0x5adfd6?_0x5adfd6:_0x5ee816['toVersion'];const _0x32831a=this['_revisionDataBuilder']['getData'](_0x1b924e,_0x5adfd6),_0x5eed23={'diffData':_0x32831a['diffData'],'authorsIds':_0x32831a['authorsIds'],'fromVersion':_0x1b924e,'toVersion':_0x5adfd6};if(!_0x5ee816||_0x5adfd6!==_0x5ee816['toVersion']){const _0x3a85e1=_0x5adfd6-0x1,_0x317364=this['_source']['history']['getOperation'](_0x3a85e1);_0x5eed23['createdAt']=_0x317364&&_0x317364['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1b924e===this['_loadedStateData']['fromVersion']){for(const _0x5c227d of this['_loadedStateData']['authors'])_0x5eed23['authorsIds']['includes'](_0x5c227d['id'])||_0x5eed23['authorsIds']['push'](_0x5c227d['id']);}return _0x5eed23;}['_loadRevisionData'](_0x4bfb85){if(!_0x4bfb85||_0x4bfb85['diffData'])return Promise['resolve']();{const _0x518874=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x518874,'revisionId':_0x4bfb85['id']})['then'](_0x19efff=>{_0x4bfb85['diffData']=_0x19efff['diffData'];});}}['_bufferUpdate'](_0x267f9b,_0x1a7444,_0x2b7e99){if(this['_bufferedUpdates']['has'](_0x267f9b)){const _0x598750=this['_bufferedUpdates']['get'](_0x267f9b);_0x1a7444=_0x2b7e99?{..._0x598750,..._0x1a7444}:{..._0x1a7444,..._0x598750};}this['_bufferedUpdates']['set'](_0x267f9b,_0x1a7444);}['_getFromVersion'](_0x3abbd8){const _0x209298=this['repository']['getRevisions']();_0x209298['reverse'](),_0x209298['shift']();const _0x11087e=_0x209298['find'](_0x571a02=>_0x571a02['toVersion']<=_0x3abbd8)['toVersion'];return _0x11087e<this['_startingVersion']?this['_startingVersion']:_0x11087e;}['_createInitialRevision'](_0x537fd1){const _0x2394b5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2394b5)this['_initialRevisionId']=_0x2394b5['id'];else{const _0x1bbca3=!this['editor']['model']['document']['roots']['find'](_0x16d0b3=>this['editor']['model']['hasContent'](_0x16d0b3)),_0x1391db=this['editor']['plugins']['get']('Users')['me']['id'],_0x4db98a=R(this['editor']['locale'],_0x1bbca3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x537fd1,'to':_0x537fd1,'id':this['_initialRevisionId'],'name':_0x4db98a,'creatorId':_0x1391db});}}['_createCurrentRevision'](_0x78ca45){const _0x274a6e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x274a6e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x78ca45,'to':_0x78ca45,'id':_0x274a6e,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4b18a6,from:_0x335801,to:_0x2d8fbb,creatorId:_0x500c3a,id:_0x537796}){const _0x4e4d59=this['buildRevisionData']({'from':_0x335801,'to':_0x2d8fbb});_0x4e4d59['name']=_0x4b18a6,_0x4e4d59['creatorId']=_0x500c3a,_0x4e4d59['id']=_0x537796;const _0x5220ef=this['addRevisionData'](_0x4e4d59);return this['adapter']&&this['_bufferUpdate'](_0x4e4d59['id'],_0x4e4d59,!0x0),_0x5220ef;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2be61c){return(_0x2be61c=_0x2be61c['filter'](_0x31c014=>!_0x31c014['name']||'revision-start'!==_0x31c014['name']&&'revision-end'!==_0x31c014['name']))['forEach'](_0x3d1461=>{'string'!=typeof _0x3d1461&&(_0x3d1461['children']=this['_removeRevisionMarkers'](_0x3d1461['children']),_0x3d1461['attributes']=_0x3d1461['attributes']['filter'](_0xf3fef8=>!_0xf3fef8[0x0]['startsWith']('data-revision-')));}),_0x2be61c;}}function V(_0xa33ad1,_0x41ad45){const _0x2f7395=_0x41ad45['editing']['view']['document'];if('string'==typeof _0xa33ad1)return new _0x485786(_0x2f7395,_0xa33ad1);{const _0x127a9b=_0xa33ad1['children']['map'](_0x100e00=>V(_0x100e00,_0x41ad45));return new(C[_0xa33ad1['type']]||_0x39dcfb)(_0x2f7395,_0xa33ad1['name'],_0xa33ad1['attributes'],_0x127a9b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4e7f84){this['editor']=_0x4e7f84,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'](_0x1b2ae2){this['source']=_0x1b2ae2;const _0x250099=new Map(),_0x4c809d=new Map(),_0x25d38d=this['editor']['model']['document']['roots']['map'](_0x581dd1=>_0x581dd1['rootName']);for(const _0x33a2c1 of _0x25d38d){const _0x1f2c69=this['editor']['model']['document']['getRoot'](_0x33a2c1),_0x5b880b=F(_0x1f2c69);_0x250099['set'](_0x33a2c1,_0x5b880b),_0x4c809d['set'](_0x33a2c1,Object['fromEntries'](_0x1f2c69['getAttributes']()));}const _0x2017da=Array['from'](this['editor']['model']['markers'])['map'](_0x16f67d=>[_0x16f67d['name'],_0x16f67d['getRange']()]),_0x41f3c5=this['source']['version'];this['_saveMetaData'](_0x41f3c5,_0x250099,_0x2017da,_0x4c809d),this['_startingRevisionId']=this['_revisionId'];const _0x2af40d=new Map(),_0x51535c=new Map();for(const _0x555cea of _0x25d38d){const _0x188931=B(_0x555cea);_0x2af40d['set'](_0x555cea,_0x188931),_0x51535c['set'](_0x555cea,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2af40d,[],_0x51535c);}['getData'](_0x555528,_0x14f49c){if(this['_lastFrom']===_0x555528&&this['_lastTo']<=_0x14f49c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x14f49c,!0x0);else{if(!this['_savedMetaData']['has'](_0x555528)){const _0xc08fe1=this['_getPreviousFrom'](_0x555528);this['_calculateMetaData'](_0xc08fe1,_0x555528,!0x1);}this['_calculateMetaData'](_0x555528,_0x14f49c,!0x0);}return this['_lastFrom']=_0x555528,this['_lastTo']=_0x14f49c,this['_getState']();}['loadState'](_0x39e393){this['_reset'](),this['_lastFrom']=_0x39e393['fromVersion'],this['_lastTo']=_0x39e393['toVersion'];for(const _0x1cc126 in _0x39e393['diffData']){const _0x266a07=_0x39e393['diffData'][_0x1cc126]['attachChange'],_0x33d00b=_0x1feff3(_0x39e393['diffData'][_0x1cc126]['attributesBefore'])||{},_0x2f2140=this['_makeModelFromViewString'](_0x39e393['diffData'][_0x1cc126]['deletions']);_0x2f2140['rootName']=_0x1cc126,_0x2f2140['_isAttached']=!_0x266a07||!_0x266a07['isAttached'],_0x2f2140['isAttached']=()=>_0x2f2140['_isAttached'],this['_baseRoots']['set'](_0x1cc126,_0x2f2140),this['_baseRootsAttributes']['set'](_0x1cc126,_0x33d00b),_0x266a07&&this['_touchedRoots']['set'](_0x1cc126,_0x266a07);const _0x2c58e4=this['_makeIdsRoot'](_0x2f2140);this['_baseIdsRoots']['set'](_0x1cc126,_0x2c58e4);for(const [_0x4526e4,_0x1125c0]of _0x2f2140['markers']){if(!_0x4526e4['startsWith']('revision:'))continue;const _0x379adc=_0x4526e4['split'](':')[0x2];for(const _0x5eddbd of _0x1125c0['getWalker']({'singleCharacters':!0x0})){const _0x227c13=this['_getVidAttributeName'](_0x5eddbd),_0x39b3cf='elementEnd'==_0x5eddbd['type']?_0x5eddbd['previousPosition']['path']['slice'](0x0,-0x1):_0x5eddbd['previousPosition']['path'],_0x46367f=_0x2c58e4['getNodeByPath'](_0x39b3cf)['getAttribute'](_0x227c13);this['_touched']['set'](_0x46367f,{'userId':_0x379adc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5d40e7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x50167d=>!this['_touched']['has'](_0x50167d));let _0x2a1568=0x0;const _0x2fea74=new Map();for(const _0x5504e2 in _0x39e393['diffData']){const _0x5c1494=_0x39e393['diffData'][_0x5504e2]['attachChange'],_0x25e448=_0x1feff3(_0x39e393['diffData'][_0x5504e2]['attributesAfter'])||{},_0x12f82c=this['_makeModelFromViewString'](_0x39e393['diffData'][_0x5504e2]['insertions']);_0x12f82c['rootName']=_0x5504e2,_0x12f82c['_isAttached']=!_0x5c1494||_0x5c1494['isAttached'],_0x12f82c['isAttached']=()=>_0x12f82c['_isAttached'],this['_diffRoots']['set'](_0x5504e2,_0x12f82c),this['_diffRootsAttributes']['set'](_0x5504e2,_0x25e448);const _0x10666b=this['_makeIdsRoot'](_0x12f82c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5504e2,_0x10666b),_0x2fea74['set'](_0x5504e2,_0x12f82c['isAttached']()?_0x25e448:{});for(const [_0x357c4b,_0x539ac3]of _0x12f82c['markers']){if(!_0x357c4b['startsWith']('revision:'))continue;const _0x83f5f6=_0x357c4b['split'](':')[0x2];for(const _0x45a6a8 of _0x539ac3['getWalker']({'singleCharacters':!0x0})){const _0x5c726f=this['_getVidAttributeName'](_0x45a6a8),_0x36ef63=this['_revisionId']++,_0x52330b='elementEnd'==_0x45a6a8['type']?_0x45a6a8['previousPosition']['path']['slice'](0x0,-0x1):_0x45a6a8['previousPosition']['path'];_0x10666b['getNodeByPath'](_0x52330b)['_setAttribute'](_0x5c726f,_0x36ef63),this['_touched']['set'](_0x36ef63,{'userId':_0x83f5f6});}}for(const _0x385410 of this['editor']['model']['createRangeIn'](_0x12f82c)['getWalker']({'singleCharacters':!0x0})){const _0x3b4dac=this['_getVidAttributeName'](_0x385410),_0x3adb2f='elementEnd'==_0x385410['type']?_0x385410['previousPosition']['path']['slice'](0x0,-0x1):_0x385410['previousPosition']['path'],_0x549c43=_0x10666b['getNodeByPath'](_0x3adb2f);_0x549c43['getAttribute'](_0x3b4dac)>0x0||_0x549c43['_setAttribute'](_0x3b4dac,_0x5d40e7[_0x2a1568++]);}for(const [_0x50d40c,_0x3b1d85]of _0x12f82c['markers'])_0x50d40c['startsWith']('revision:')||this['_markers']['set'](_0x50d40c,_0x3b1d85);}const _0x462217=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x462217),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x462217,0x1));const _0x1a3fd9=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1a3fd9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1a3fd9,0x1));const _0x66ea45=Array['from'](this['_diffRoots'])['map'](([_0x1643ee,_0x9e5bff])=>[_0x1643ee,F(_0x9e5bff)]);this['_saveMetaData'](this['_lastTo'],_0x66ea45,this['_markers'],_0x2fea74);}['_makeModelFromViewString'](_0x11b922){const _0x493bbe=JSON['parse'](_0x11b922),_0x15c063=this['editor']['editing']['view']['document'],_0x37064e=new _0x2083b3(_0x15c063,_0x493bbe['map'](_0x2156af=>V(_0x2156af,this['editor'])));return this['editor']['data']['toModel'](_0x37064e);}['_saveMetaData'](_0x300676,_0x8d4aef,_0x26a9c1,_0x3c9801){const _0x1685de=new Map(_0x8d4aef),_0x3d22f0=new Map(_0x1feff3(_0x3c9801)),_0xe7a656=new Map();for(const [_0x3eb239,_0x207869]of _0x26a9c1)_0xe7a656['set'](_0x3eb239,{'start':_0x207869['start']['clone'](),'end':_0x207869['end']['clone'](),'rootName':_0x207869['root']['rootName']});this['_savedMetaData']['set'](_0x300676,{'roots':_0x1685de,'markers':_0xe7a656,'rootsAttributes':_0x3d22f0});}['_removeMetaData'](_0x142725){this['_savedMetaData']['delete'](_0x142725);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1b9b05,_0x5ef337=null){let _0x2b8615=null;_0x1b9b05['is']('documentFragment')||(_0x2b8615=new ft(_0x1b9b05['name'],{'vid_start':null===_0x5ef337?this['_revisionId']++:_0x5ef337++}));const _0xa44a07=[];for(const _0x22f195 of _0x1b9b05['getChildren']())if(_0x22f195['is']('element')){_0xa44a07['push'](this['_makeIdsRoot'](_0x22f195,_0x5ef337));const _0x3e2905=_0xa44a07[_0xa44a07['length']-0x1];null!==_0x5ef337&&(_0x5ef337=_0x3e2905['is']('element','$text')?_0x3e2905['getAttribute']('vid')+0x1:_0x3e2905['getAttribute']('vid_end')+0x1);}else{for(let _0x25c5fa=0x0;_0x25c5fa<_0x22f195['offsetSize'];_0x25c5fa++)_0xa44a07['push'](new ft('$text',{'vid':null===_0x5ef337?this['_revisionId']++:_0x5ef337++}));}if(_0x1b9b05['is']('documentFragment')){const _0x5f0dc1=B(_0x1b9b05['rootName']);return _0x5f0dc1['_insertChild'](0x0,_0xa44a07),_0x5f0dc1;}return _0x2b8615['_setAttribute']('vid_end',null===_0x5ef337?this['_revisionId']++:_0x5ef337++),_0x2b8615['_insertChild'](0x0,_0xa44a07),_0x2b8615;}['_calculateMetaData'](_0x11c862,_0x712fb1,_0x2033e6){this['_reset']();const {roots:_0xe87c5b,markers:_0x281f53,rootsAttributes:_0x1b384d}=this['_savedMetaData']['get'](_0x11c862);this['_baseRoots']=new Map(_0xe87c5b),this['_baseRootsAttributes']=new Map(_0x1feff3(_0x1b384d));for(const [_0x1baf19,_0x18e0cf]of this['_baseRoots'])if('$graveyard'!==_0x1baf19&&(this['_diffRoots']['set'](_0x1baf19,F(_0x18e0cf)),this['_diffRootsAttributes']=new Map(_0x1feff3(_0x1b384d)),_0x2033e6)){const _0x45515f=this['_revisionId'];this['_idsRoots']['set'](_0x1baf19,this['_makeIdsRoot'](_0x18e0cf)),this['_baseIdsRoots']['set'](_0x1baf19,this['_makeIdsRoot'](_0x18e0cf,_0x45515f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2033e6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d6f33,_0x21984e]of _0x281f53){const _0x4a72e8=this['_baseRoots']['get'](_0x21984e['rootName']),_0x28a00d=this['_diffRoots']['get'](_0x21984e['rootName']),_0x3c58c0=new vt(this['_fixPosition'](_0x21984e['start'],_0x4a72e8),this['_fixPosition'](_0x21984e['end'],_0x4a72e8)),_0x43ab9e=this['_fixRange'](_0x3c58c0,_0x28a00d);_0x4a72e8['markers']['set'](_0x2d6f33,_0x3c58c0),this['_markers']['set'](_0x2d6f33,_0x43ab9e);}this['_applyOperations'](_0x11c862,_0x712fb1,_0x2033e6);}['_applyOperations'](_0x2e3cf3,_0x334f1f,_0x179893){for(const _0x15da97 of this['source']['getOperations'](_0x2e3cf3,_0x334f1f))this['_handleOperation'](_0x15da97,_0x179893);for(const _0x315f55 of this['_diffRoots']['values']())_0x315f55['markers']['clear']();for(const [_0x5b2117,_0x2c8e17]of this['_markers']){this['_diffRoots']['get'](_0x2c8e17['root']['rootName'])['markers']['set'](_0x5b2117,_0x2c8e17['clone']());}const _0xceaa9f=new Map(),_0x54b1f8=new Map();for(const [_0x222470,_0x24e921]of this['_diffRoots'])_0xceaa9f['set'](_0x222470,F(_0x24e921)),_0x54b1f8['set'](_0x222470,this['_diffRootsAttributes']['get'](_0x222470));this['_saveMetaData'](_0x334f1f,_0xceaa9f,this['_markers'],_0x54b1f8);}['_getPreviousFrom'](_0x480356){const _0xfc07bb=Array['from'](this['_savedMetaData']['keys']());_0xfc07bb['sort']((_0x5b1907,_0x55eb9e)=>_0x5b1907-_0x55eb9e),_0xfc07bb['reverse']();for(const _0x25d9f3 of _0xfc07bb)if(_0x25d9f3<_0x480356)return _0x25d9f3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x81a363,_0x3765f7){const _0x3638eb=Array['from'](_0x3765f7['markers'])['map'](([_0x39521e,_0xe33307])=>[_0x39521e,this['_fixRange'](_0xe33307,_0x81a363)]);_0x81a363['markers']=new Map(_0x3638eb);}['_transformMarkers'](_0x3a29e2){for(const _0x5a72d4 of this['_markers']['values']()){const _0x478e01=_0x5a72d4['getTransformedByOperation'](_0x3a29e2),_0xce0b2b=vt['_createFromRanges'](_0x478e01);_0x5a72d4['start']=_0xce0b2b['start'],_0x5a72d4['end']=_0xce0b2b['end'];}}['_handleOperation'](_0x1ca984,_0x44fb96){if('addRoot'!=_0x1ca984['type']&&'detachRoot'!=_0x1ca984['type']){if('insert'==_0x1ca984['type']){const _0x4656f5=_0x1ca984['position']['root']['rootName'];this['_diffRoots']['has'](_0x4656f5)||(this['_diffRoots']['set'](_0x4656f5,B(_0x4656f5,!0x0)),this['_diffRootsAttributes']['set'](_0x4656f5,{}),_0x44fb96&&this['_idsRoots']['set'](_0x4656f5,B(_0x4656f5,!0x0)));}else{if('addRootAttribute'==_0x1ca984['type']||'removeRootAttribute'==_0x1ca984['type']||'changeRootAttribute'==_0x1ca984['type'])return void this['_handleRootAttributeOperation'](_0x1ca984);'marker'==_0x1ca984['type']&&this['_handleMarkerOperation'](_0x1ca984);}if('marker'!==_0x1ca984['type']){const _0x549fa4=this['_cloneOperation'](_0x1ca984,this['_diffRoots']);_0x549fa4['_execute'](),this['_transformMarkers'](_0x549fa4);}if(_0x44fb96)switch(_0x1ca984['type']){case'insert':this['_handleInsertOperation'](_0x1ca984);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1ca984);break;case'merge':this['_handleMergeOperation'](_0x1ca984);break;case'split':this['_handleSplitOperation'](_0x1ca984);}}else this['_handleRootOperation'](_0x1ca984,_0x44fb96);}['_cloneOperation'](_0x3c77bf,_0x630db5){const _0x294a9c=_0x3c77bf['clone']();return _0x294a9c['_authorId']=_0x3c77bf['_authorId'],this['_fixOperation'](_0x294a9c,_0x630db5),_0x294a9c;}['_getBaseVids'](_0x39b907){return _0x39b907['map'](_0x927251=>{const _0x3cec8e=this['_getVidAttributeName'](_0x927251);return Number(_0x927251['item']['getAttribute'](_0x3cec8e));});}['_generateTape'](_0xde198e,_0x1b76a9){if(_0xde198e['is']('element','$text'))_0x1b76a9['push']({'item':_0xde198e,'type':'text'});else{_0xde198e['is']('element')&&_0x1b76a9['push']({'item':_0xde198e,'type':'elementStart'});for(const _0x3a9c9f of _0xde198e['getChildren']())this['_generateTape'](_0x3a9c9f,_0x1b76a9);_0xde198e['is']('element')&&_0x1b76a9['push']({'item':_0xde198e,'type':'elementEnd'});}return _0x1b76a9;}['_getState'](){const _0x4462fb=new Map(this['_touched']),_0x53788a=new Map(_0x4462fb),_0x2f98a1=new Map(),_0xc1097e={'insertions':{},'deletions':{}},_0xaea2b2={'insertions':{},'deletions':{}},_0x38d882=new Map(),_0x1835ec=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1835ec['delete']('$graveyard');for(const _0x287204 of _0x1835ec){const _0x4ce96e=this['_diffRoots']['get'](_0x287204)||B(_0x287204,!0x1),_0x1ad4e4=this['_baseRoots']['get'](_0x287204)||B(_0x287204,!0x1);_0x4ce96e['isAttached']()||_0x1ad4e4['isAttached']()?(_0xc1097e['insertions'][_0x287204]=F(_0x4ce96e),_0xc1097e['deletions'][_0x287204]=F(_0x1ad4e4),this['_copyMarkers'](_0xc1097e['deletions'][_0x287204],_0x1ad4e4),this['_copyMarkers'](_0xc1097e['insertions'][_0x287204],_0x4ce96e),_0xaea2b2['insertions'][_0x287204]=this['_generateTape'](this['_idsRoots']['get'](_0x287204),[]),_0xaea2b2['deletions'][_0x287204]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x287204)||B(_0x287204,!0x1),[])):_0x1835ec['delete'](_0x287204);}for(const _0x2cb5e1 of _0x1835ec){const _0x25bb24=_0xaea2b2['insertions'][_0x2cb5e1];for(const _0x2374fb of _0x25bb24){const _0x4abbc2=this['_getVidAttributeName'](_0x2374fb),_0xc46e75=_0x2374fb['item']['getAttribute'](_0x4abbc2);_0x53788a['delete'](_0xc46e75),_0xc46e75>=this['_startingRevisionId']&&_0x2f98a1['set'](_0xc46e75,_0x4462fb['get'](_0xc46e75));}}for(const _0xe2601d of _0x1835ec){const _0x106a2b=_0xaea2b2['insertions'][_0xe2601d],_0x2f6561=this['_getBaseVids'](_0xaea2b2['deletions'][_0xe2601d]);let _0x25d67b=0x0;for(const _0x574551 of _0x106a2b){const _0x33695c=this['_getVidAttributeName'](_0x574551),_0x339cfa=_0x574551['item']['getAttribute'](_0x33695c);if(!_0x2f98a1['has'](_0x339cfa)&&!_0x38d882['has'](_0x339cfa)){if(_0x53788a['has'](_0x339cfa))_0x25d67b++;else{if(_0x339cfa!=_0x2f6561[_0x25d67b]){const _0x5c6f9f=_0x4462fb['get'](_0x339cfa)||_0x4462fb['get'](_0x2f6561[_0x25d67b]);for(;_0x339cfa!=_0x2f6561[_0x25d67b];)_0x53788a['has'](_0x2f6561[_0x25d67b])||(_0x38d882['set'](_0x2f6561[_0x25d67b],_0x5c6f9f),_0x4462fb['set'](_0x2f6561[_0x25d67b],_0x5c6f9f)),_0x25d67b++;}_0x25d67b++;}}}}for(const _0x895d05 of _0x1835ec){const _0x36b33b=_0xaea2b2['insertions'][_0x895d05];for(const _0x2e046a of _0x36b33b){const _0x53d1e8=this['_getVidAttributeName'](_0x2e046a),_0x44fb20=_0x2e046a['item']['getAttribute'](_0x53d1e8);if(_0x38d882['has'](_0x44fb20)){const _0x869c30=_0x38d882['get'](_0x44fb20);_0x53788a['has'](_0x44fb20)||_0x53788a['set'](_0x44fb20,{..._0x869c30}),_0x2f98a1['set'](_0x44fb20,{..._0x869c30});}}}for(const _0x2332b7 of _0x53788a['keys']())_0x2332b7>=this['_startingRevisionId']&&_0x53788a['delete'](_0x2332b7);const _0x7b1297=new Map();for(const _0x575b0d of _0x1835ec){let _0x17f81b=_0xaea2b2['insertions'][_0x575b0d];for(const _0x2c96f9 of _0x17f81b)if(_0x2c96f9['item']['is']('element','tableCell')){const _0x26f2e1=this['_getVidAttributeName'](_0x2c96f9),_0x327d51=_0x2c96f9['item']['getAttribute'](_0x26f2e1);if(_0x2f98a1['has'](_0x327d51)){const _0x10ef21=_0x2c96f9['item']['parent']['parent']['getAttribute']('vid_start'),_0x435ed1=_0x7b1297['get'](_0x10ef21)||new Set();_0x435ed1['add'](_0x2f98a1['get'](_0x327d51)['userId']),_0x7b1297['set'](_0x10ef21,_0x435ed1);}}_0x17f81b=_0xaea2b2['deletions'][_0x575b0d];for(const _0x2c3721 of _0x17f81b)if(_0x2c3721['item']['is']('element','tableCell')){const _0x160cad=this['_getVidAttributeName'](_0x2c3721),_0xe4447c=_0x2c3721['item']['getAttribute'](_0x160cad);if(_0x53788a['has'](_0xe4447c)){const _0x33d4e6=_0x2c3721['item']['parent']['parent']['getAttribute']('vid_start'),_0x86937f=_0x7b1297['get'](_0x33d4e6)||new Set();_0x86937f['add'](_0x53788a['get'](_0xe4447c)['userId']),_0x7b1297['set'](_0x33d4e6,_0x86937f);}}for(const _0x4061e3 of _0x7b1297['keys']())(_0x2f98a1['has'](_0x4061e3)||_0x53788a['has'](_0x4061e3))&&_0x7b1297['delete'](_0x4061e3);}for(const _0xa3905 of _0x1835ec){const _0x398419=_0xaea2b2['insertions'][_0xa3905];let _0x275d78=null,_0x3a328c=null;for(const _0x26eb53 of _0x398419){const _0x10591=this['_getVidAttributeName'](_0x26eb53),_0x5c2172=_0x26eb53['item']['getAttribute'](_0x10591),_0x1f2810=_0x7b1297['get'](_0x5c2172);_0x1f2810&&'elementStart'==_0x26eb53['type']&&(_0x275d78=Array['from'](_0x1f2810)[0x0],_0x3a328c=_0x26eb53['item']['getAttribute']('vid_end')),_0x275d78&&(_0x53788a['set'](_0x5c2172,{'userId':_0x275d78}),_0x2f98a1['set'](_0x5c2172,{'userId':_0x275d78})),_0x5c2172==_0x3a328c&&(_0x275d78=null,_0x3a328c=null);}}const _0x136026={},_0x16ef9b=new Set();for(const _0x52086e of _0x1835ec){const _0x5d4f4f=_0xc1097e['deletions'][_0x52086e],_0x59ca00=_0xc1097e['insertions'][_0x52086e];for(const {userId:_0x39d13a}of this['_touchedMarkers']['values']())null!==_0x39d13a&&_0x16ef9b['add'](_0x39d13a);for(const {userId:_0x7dafbf}of this['_touchedRoots']['values']())null!==_0x7dafbf&&_0x16ef9b['add'](_0x7dafbf);this['_markChanges'](_0x59ca00,_0xaea2b2['insertions'][_0x52086e],_0x2f98a1,'insertion',_0x16ef9b),this['_markChanges'](_0x5d4f4f,_0xaea2b2['deletions'][_0x52086e],_0x53788a,'deletion',_0x16ef9b),_0x136026[_0x52086e]={'insertions':this['_prepareViewToSave'](_0x59ca00),'deletions':this['_prepareViewToSave'](_0x5d4f4f),'attachChange':this['_touchedRoots']['get'](_0x52086e)||null,'attributesBefore':_0x1feff3(this['_baseRootsAttributes']['get'](_0x52086e))||{},'attributesAfter':_0x1feff3(this['_diffRootsAttributes']['get'](_0x52086e))};}return{'diffData':_0x136026,'authorsIds':Array['from'](_0x16ef9b)};}['_processRootBeforeSave'](_0x398e90){for(const [,_0x21e430]of _0x398e90['markers']){const _0x8d5f01=_0x21e430['start']['getAncestors']()['filter'](_0x4c7903=>'tableCell'==_0x4c7903['name']);for(const _0x45e1c7 of _0x8d5f01)0x1==_0x45e1c7['childCount']&&_0x45e1c7['getChild'](0x0)['is']('element','paragraph')&&_0x45e1c7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3b65a7){this['_processRootBeforeSave'](_0x3b65a7);const _0x59f9de=this['editor']['data']['toView'](_0x3b65a7,{}),_0x455087=Array['from'](_0x59f9de['getChildren']())['map'](_0x5d8e2c=>this['_getViewJson'](_0x5d8e2c));return JSON['stringify'](_0x455087);}['_getViewJson'](_0x303139){if(_0x303139['is']('$text'))return _0x303139['data'];{const _0x51a688=_0x303139;return{'type':Object['keys'](C)['find'](_0x3da9ef=>_0x303139 instanceof C[_0x3da9ef]),'name':_0x51a688['name'],'attributes':Array['from'](_0x51a688['getAttributes']()),'children':Array['from'](_0x51a688['getChildren']())['map'](_0x4607e5=>this['_getViewJson'](_0x4607e5))};}}['_markChanges'](_0x47cdf6,_0x5b05a0,_0x3e090d,_0x23078e,_0x307315){let _0x1c1824=null,_0x4d9b57=null,_0x7d608d=0x0;const _0x274a52=this['editor']['model'];for(let _0x4c0d4a=0x0;_0x4c0d4a<_0x5b05a0['length'];_0x4c0d4a++){const _0x31a7ca=this['_getVidAttributeName'](_0x5b05a0[_0x4c0d4a]),_0x13dbbb=_0x5b05a0[_0x4c0d4a]['item']['getAttribute'](_0x31a7ca),_0x12f31d=_0x3e090d['get'](_0x13dbbb),_0x458eef=_0x4c0d4a==_0x5b05a0['length']-0x1;(!_0x1c1824&&_0x12f31d&&(_0x1c1824=_0x12f31d,_0x4d9b57=_0x5b05a0[_0x4c0d4a]),_0x1c1824&&(!_0x12f31d||_0x12f31d['userId']!=_0x1c1824['userId']))&&(_0x5e5d44(_0x12f31d,J(_0x4d9b57,_0x47cdf6,_0x274a52),J(_0x5b05a0[_0x4c0d4a],_0x47cdf6,_0x274a52)),_0x1c1824=_0x12f31d||null,_0x4d9b57=_0x12f31d?_0x5b05a0[_0x4c0d4a]:null),_0x1c1824&&_0x458eef&&_0x5e5d44(_0x12f31d,J(_0x4d9b57,_0x47cdf6,_0x274a52),q(_0x5b05a0[_0x4c0d4a],_0x47cdf6,_0x274a52));}function _0x5e5d44(_0x163bc1,_0x130d79,_0x16cdce){const _0x2cd2c6=_0x1c1824['userId'],_0x4f4cfa='revision:'+_0x23078e+':'+_0x2cd2c6+':'+_0x7d608d++,_0x4a1117=_0x274a52['createRange'](_0x130d79,_0x16cdce);_0x47cdf6['markers']['set'](_0x4f4cfa,_0x4a1117),null!==_0x2cd2c6&&_0x307315['add'](_0x2cd2c6);}}['_getVidAttributeName'](_0x2d18cb){switch(_0x2d18cb['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4ced1c,_0x9c99ef){_0x4ced1c['baseVersion']=null;for(const _0x5364d3 in _0x4ced1c){const _0x1c0c6f=_0x4ced1c[_0x5364d3];if(_0x1c0c6f instanceof gt){const _0x4b8176=_0x9c99ef['get'](_0x1c0c6f['root']['rootName']);_0x4ced1c[_0x5364d3]=this['_fixPosition'](_0x1c0c6f,_0x4b8176);}if(_0x1c0c6f instanceof vt){const _0x5cad65=_0x9c99ef['get'](_0x1c0c6f['root']['rootName']);_0x4ced1c[_0x5364d3]=this['_fixRange'](_0x1c0c6f,_0x5cad65);}'root'===_0x5364d3&&(_0x4ced1c['root']=_0x9c99ef['get'](_0x4ced1c['root']['rootName']));}}['_fixRange'](_0x3ecdfa,_0x44dfe2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3ecdfa['start'],_0x44dfe2),this['_fixPosition'](_0x3ecdfa['end'],_0x44dfe2));}['_fixPosition'](_0x1428dc,_0xbaebde){return this['editor']['model']['createPositionFromPath'](_0xbaebde,_0x1428dc['path'],_0x1428dc['stickiness']);}['_handleInsertOperation'](_0x511f46){const _0x5ebbb2=this['_idsRoots']['get'](_0x511f46['position']['root']['rootName']),_0x25cdd4=this['_fixPosition'](_0x511f46['position'],_0x5ebbb2),_0x2c7160=null===_0x511f46['_authorId']?null:_0x511f46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17a413=_0x25cdd4['parent'],_0x1214db=this['_revisionId'],_0xe1f6bb=[];for(const _0x3e9383 of _0x511f46['nodes'])if(_0x3e9383['is']('element'))_0xe1f6bb['push'](this['_makeIdsRoot'](_0x3e9383));else{for(let _0x4da3f9=0x0;_0x4da3f9<_0x3e9383['offsetSize'];_0x4da3f9++)_0xe1f6bb['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x54fa23=this['_revisionId'];for(let _0x4b1cf7=_0x1214db;_0x4b1cf7<_0x54fa23;_0x4b1cf7++)this['_touched']['set'](_0x4b1cf7,{'userId':_0x2c7160});_0x17a413['_insertChild'](_0x25cdd4['offset'],_0xe1f6bb);}['_handleMoveOperation'](_0x54316c){(_0x54316c=this['_cloneOperation'](_0x54316c,this['_idsRoots']))['_execute']();const _0x249b1d=null===_0x54316c['_authorId']?null:_0x54316c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c1ebf=_0x54316c['getMovedRangeStart'](),_0x25b251=_0x1c1ebf['parent'],_0x2778b8=_0x1c1ebf['offset'];!function _0x5de848(_0x50b29e,_0x343fbf,_0xcca07c,_0x312447){for(let _0x4c95ef=_0xcca07c;_0x4c95ef<_0x312447;_0x4c95ef++){const _0xad49d3=_0x343fbf['getChild'](_0x4c95ef);_0xad49d3['is']('element','$text')?_0x50b29e['set'](_0xad49d3['getAttribute']('vid'),{'userId':_0x249b1d}):(_0x50b29e['set'](_0xad49d3['getAttribute']('vid_start'),{'userId':_0x249b1d}),_0x5de848(_0x50b29e,_0xad49d3,0x0,_0xad49d3['childCount']),_0x50b29e['set'](_0xad49d3['getAttribute']('vid_end'),{'userId':_0x249b1d}));}}(this['_touched'],_0x25b251,_0x2778b8,_0x2778b8+_0x54316c['howMany']);}['_handleMergeOperation'](_0x30dbcc){const _0x54b900=null===(_0x30dbcc=this['_cloneOperation'](_0x30dbcc,this['_idsRoots']))['_authorId']?null:_0x30dbcc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2427f7=_0x30dbcc['targetPosition']['parent'],_0x4d8e42=_0x30dbcc['sourcePosition']['parent'],_0x5b8929=_0x2427f7['getAttribute']('vid_end'),_0x283e85=_0x4d8e42['getAttribute']('vid_start');_0x2427f7['_setAttribute']('vid_end',_0x4d8e42['getAttribute']('vid_end')),_0x4d8e42['_setAttribute']('vid_end',_0x5b8929),this['_touched']['set'](_0x283e85,{'userId':_0x54b900}),this['_touched']['set'](_0x5b8929,{'userId':_0x54b900}),_0x30dbcc['_execute']();}['_handleSplitOperation'](_0x255d29){const _0x566525=null===(_0x255d29=this['_cloneOperation'](_0x255d29,this['_idsRoots']))['_authorId']?null:_0x255d29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e8eb7=_0x255d29['graveyardPosition'],_0xd71398=_0x255d29['splitPosition']['parent'];_0x255d29['_execute']();const _0x3e536d=_0xd71398['getAttribute']('vid_end'),_0x69a4c=_0x255d29['insertionPosition']['nodeAfter'];if(_0x1e8eb7){const _0x3b1b68=_0x69a4c['getAttribute']('vid_end'),_0x1d0f92=_0xd71398['getAttribute']('vid_end');_0xd71398['_setAttribute']('vid_end',_0x3b1b68),_0x69a4c['_setAttribute']('vid_end',_0x1d0f92),this['_touched']['set'](_0xd71398['getAttribute']('vid_end'),{'userId':_0x566525}),this['_touched']['set'](_0x69a4c['getAttribute']('vid_start'),{'userId':_0x566525});}else{const _0x100b61=this['_revisionId']++,_0x18b425=this['_revisionId']++;_0xd71398['_setAttribute']('vid_end',_0x100b61),_0x69a4c['_setAttribute']('vid_start',_0x18b425),_0x69a4c['_setAttribute']('vid_end',_0x3e536d),this['_touched']['set'](_0x100b61,{'userId':_0x566525}),this['_touched']['set'](_0x18b425,{'userId':_0x566525});}}['_handleMarkerOperation'](_0x4201d3){if(!_0x4201d3['affectsData'])return;const _0x1da05e=(_0x4201d3=this['_cloneOperation'](_0x4201d3,this['_diffRoots']))['oldRange']?_0x4201d3['oldRange']['root']:null,_0xefd70b=_0x4201d3['newRange']?_0x4201d3['newRange']['root']:null;_0x1da05e&&this['_markers']['delete'](_0x4201d3['name']),_0xefd70b&&this['_markers']['set'](_0x4201d3['name'],_0x4201d3['newRange']['clone']());const _0x54eeb6=null===_0x4201d3['_authorId']?null:_0x4201d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22ca0b=_0x4201d3['name'];if(!this['_touchedMarkers']['has'](_0x22ca0b))return void this['_touchedMarkers']['set'](_0x22ca0b,{'range':_0x4201d3['oldRange'],'userId':_0x54eeb6});const _0x426da3=this['_touchedMarkers']['get'](_0x22ca0b),_0x1cd9f3=_0x426da3['range'],_0x521432=_0x4201d3['newRange'];null==_0x1cd9f3&&null==_0x521432||_0x1cd9f3&&_0x521432&&_0x1cd9f3['isEqual'](_0x521432)?this['_touchedMarkers']['delete'](_0x4201d3['name']):_0x426da3['userId']=_0x54eeb6;}['_handleRootOperation'](_0x316336,_0x54f476){this['_diffRoots']['has'](_0x316336['rootName'])?this['_diffRoots']['get'](_0x316336['rootName'])['_isAttached']=_0x316336['isAdd']:(this['_diffRoots']['set'](_0x316336['rootName'],B(_0x316336['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x316336['rootName'],{}),_0x54f476&&this['_idsRoots']['set'](_0x316336['rootName'],B(_0x316336['rootName'],!0x0)));const _0x21042e=null===_0x316336['_authorId']?null:_0x316336['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d200b=this['_touchedRoots']['get'](_0x316336['rootName']);_0x2d200b&&_0x2d200b['userId']===_0x21042e?this['_touchedRoots']['delete'](_0x316336['rootName']):this['_touchedRoots']['set'](_0x316336['rootName'],{'userId':_0x21042e,'isAttached':_0x316336['isAdd']});}['_handleRootAttributeOperation'](_0x1704a6){const _0x416a51=this['_diffRootsAttributes']['get'](_0x1704a6['root']['rootName']);null===_0x1704a6['newValue']?delete _0x416a51[_0x1704a6['key']]:_0x416a51[_0x1704a6['key']]=_0x1704a6['newValue'];}}function F(_0x302918){const _0x4323fa=B(_0x302918['rootName'],_0x302918['isAttached']());for(const _0x553120 of _0x302918['getChildren']()){const _0x332ad8=_0x553120['_clone'](!0x0);_0x4323fa['_appendChild'](_0x332ad8);}return _0x4323fa;}function B(_0x157155,_0xbbb94f=!0x0){const _0x26c872=new wt();return _0x26c872['rootName']=_0x157155,_0x26c872['_isAttached']=_0xbbb94f,_0x26c872['isAttached']=()=>_0x26c872['_isAttached'],_0x26c872;}function J(_0x36db48,_0x2fdc2e,_0x4f0c32){const _0x22938f='elementEnd'==_0x36db48['type']?_0x4f0c32['createPositionAt'](_0x36db48['item'],'end'):_0x4f0c32['createPositionBefore'](_0x36db48['item']);return _0x4f0c32['createPositionFromPath'](_0x2fdc2e,_0x22938f['path'],_0x22938f['stickiness']);}function q(_0x440879,_0xafd6af,_0x1e3055){const _0x483452='elementStart'==_0x440879['type']?_0x1e3055['createPositionAt'](_0x440879['item'],0x0):_0x1e3055['createPositionAfter'](_0x440879['item']);return _0x1e3055['createPositionFromPath'](_0xafd6af,_0x483452['path'],_0x483452['stickiness']);}class ns extends _0x5ef80d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x171d2a,_0x106500){super(_0x171d2a),this['focusTracker']=new _0x156815(),this['keystrokes']=new _0x494240(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x106500),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xd4a387({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2da853=_0x593b43=>_0x593b43['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2da853),this['keystrokes']['set']('arrowleft',_0x2da853),this['keystrokes']['set']('arrowup',_0x2da853),this['keystrokes']['set']('arrowdown',_0x2da853);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5e63a2){this['revisionNameInputView']['fieldView']['element']['value']=_0x5e63a2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35b986){const _0x317eb6=new at(this['locale'],_0x159df2),_0x536c91=_0x317eb6['fieldView'];_0x536c91['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5c14cf=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35b986&&(_0x5c14cf+='\x20('+R(this['locale'],'optional')+')'),(_0x317eb6['label']=_0x5c14cf,_0x536c91['on']('input',()=>{this['revisionNameInputValue']=_0x536c91['element']['value']['trim']();}),_0x317eb6);}}class u extends _0x3472f2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xd9366f=this['editor'],_0x517f17=_0xd9366f['plugins']['get']('RevisionTracker');_0xd9366f['ui']['componentFactory']['add']('revisionHistory',_0x51742e=>{const _0x62fdd9=_0xea3632(_0x51742e),_0x1b85ea=_0x62fdd9['panelView']['children'],_0x2c2851=new te(_0x51742e),_0xeab51b=new _0x5657fa(_0x51742e),_0x264d35=new _0x4d329d(_0x51742e),_0x80dc33=new _0x5657fa(_0x51742e),_0x6ce9c1=new _0x4d329d(_0x51742e);return _0x62fdd9['bind']('isEnabled')['to'](_0x517f17,'isReady',_0x517f17,'isEnabled',_0xd9366f,'isReadOnly',(_0x2aa221,_0x33cff8,_0x4326ab)=>_0x2aa221&&_0x33cff8&&!_0x4326ab),_0x62fdd9['buttonView']['set']({'icon':_0x3b2de1['history'],'label':R(_0x51742e,'Revision\x20history'),'tooltip':!0x0}),_0x264d35['set']({'label':R(_0x51742e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x264d35['bind']('isEnabled')['to'](_0x517f17,'isReady',_0x517f17,'isEnabled',_0xd9366f,'isReadOnly',(_0x5a6b77,_0x1a8515,_0x1e4623)=>_0x5a6b77&&_0x1a8515&&!_0x1e4623),_0x264d35['on']('execute',()=>this['_showDialog']()),_0x6ce9c1['set']({'label':R(_0x51742e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x6ce9c1['bind']('isEnabled')['to'](_0x517f17,'isReady',_0xd9366f,'isReadOnly',(_0x22d9d9,_0x2d8a3d)=>_0x22d9d9&&!_0x2d8a3d),_0x6ce9c1['on']('execute',()=>{_0xd9366f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x62fdd9['isOpen']=!0x1,_0xd9366f['editing']['view']['focus']();}),_0xeab51b['children']['add'](_0x264d35),_0x80dc33['children']['add'](_0x6ce9c1),_0x2c2851['role']='menu',_0x2c2851['items']['addMany']([_0xeab51b,_0x80dc33]),_0x1b85ea['add'](_0x2c2851),_0x62fdd9;}),_0xd9366f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4498c4=this['editor'],_0x12e2e0=_0x4498c4['locale'],_0x264cca=new _0x4c4776(_0x12e2e0),_0x1ee0a9=new _0x54c300(_0x12e2e0);_0x264cca['buttonView']['set']({'icon':_0x3b2de1['history'],'label':R(_0x12e2e0,'Revision\x20history')});const _0x5c2b1b=new _0x59f5b4(_0x12e2e0,_0x264cca),_0x428905=new _0x43a490(_0x12e2e0);_0x428905['set']({'label':R(_0x12e2e0,'Save\x20current\x20revision')}),_0x428905['delegate']('execute')['to'](_0x264cca),_0x428905['on']('execute',()=>{this['_showDialog']();}),_0x5c2b1b['children']['add'](_0x428905),_0x1ee0a9['items']['add'](_0x5c2b1b);const _0x46c620=new _0x59f5b4(_0x12e2e0,_0x264cca),_0x308d91=new _0x43a490(_0x12e2e0);return _0x308d91['set']({'label':R(_0x12e2e0,'Open\x20revision\x20history')}),_0x308d91['delegate']('execute')['to'](_0x264cca),_0x308d91['on']('execute',()=>{_0x4498c4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x46c620['children']['add'](_0x308d91),_0x1ee0a9['items']['add'](_0x46c620),_0x264cca['panelView']['children']['add'](_0x1ee0a9),_0x264cca;}['_showDialog'](){const _0x4d03d2=this['editor'],_0x2a19f4=_0x4d03d2['locale'],_0xae9d5f=_0x4d03d2['plugins']['get']('Dialog'),_0x16f17f=_0x4d03d2['plugins']['get']('RevisionTracker');function _0x458658(_0x1ee8fb){_0x4d03d2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1ee8fb['revisionName']?_0x1ee8fb['revisionNameInputView']['errorText']=R(_0x2a19f4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4d03d2['plugins']['get'](l)['saveRevision']({'name':_0x1ee8fb['revisionName']}),_0xae9d5f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x458658(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xae9d5f['show']({'id':'revisionSave','title':R(_0x2a19f4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4d03d2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xae9d5f['hide']()},{'label':R(_0x4d03d2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x175241){_0x175241['bind']('isEnabled')['to'](_0x16f17f,'isReady',_0x16f17f,'isEnabled',_0x4d03d2,'isReadOnly',(_0x2c405e,_0x4b2042,_0x5f5d05)=>_0x2c405e&&_0x4b2042&&!_0x5f5d05);},'onExecute':()=>_0x458658(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e3112=this['editor'],_0x31aedb=_0x3e3112['locale'];this['_saveRevisionFormView']=new ns(_0x31aedb,_0x3e3112['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x5ef80d{['changeId'];['_model'];constructor(_0x2b4049,_0x1c2502){super(_0x2b4049),this['_model']=_0x1c2502,this['changeId']=_0x1c2502['id'];const _0x4bf4cf=this['bindTemplate'],_0x2112a5=R(_0x2b4049,_0x1c2502['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1c2502['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1c2502['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4bf4cf['to']('type',_0x56982f=>'ck-revision-change__'+_0x56982f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2112a5}]},{'text':'\x20'+_0x1c2502['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x548e85(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x247f06){super(),this['id']=_0x247f06['id']||_0x48d30f(),this['author']=_0x247f06['author'],this['type']=_0x247f06['type'],this['data']=_0x247f06['data']||{},this['rootName']=_0x247f06['rootName'],this['set']('createdAt',_0x247f06['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x22a34b,_0x18f5dc){this['newRevisionId']=_0x22a34b,this['oldRevisionId']=_0x18f5dc,this['changes']=new _0x484e70();}['_setChanges'](_0x50959f){for(const _0x154ffa of _0x50959f)this['changes']['add'](_0x154ffa);}}const Z={'c':_0x5e6c57,'a':_0x10b96c,'e':_0x152bc2,'r':_0x5d1736,'u':_0x57f6bc};class d extends _0x3472f2{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2be816,_0x2b93ff,j];}constructor(_0x724201){super(_0x724201),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x419aa,_0x5daf27,_0x918f00)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5ce30f=>{for(const _0x725745 of this['editor']['editing']['view']['document']['roots'])_0x918f00?_0x5ce30f['removeClass']('ck-editor__editable__overlay',_0x725745):_0x5ce30f['addClass']('ck-editor__editable__overlay',_0x725745);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56f35a=>null!==_0x56f35a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x203572,_0x2f267b,_0x5e31db)=>_0x203572&&_0x5e31db?_0x2f267b['changes']['getIndex'](_0x5e31db):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x441c3e,_0x3e3be7)=>_0x441c3e?_0x3e3be7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2b93ff);}['init'](){const _0x2e0615=this['editor'],_0x3349aa=new bt(_0x2e0615,{'direction':'backward'}),_0x3e9770=new bt(_0x2e0615,{'direction':'forward'});(_0x2e0615['commands']['add']('showPreviousChange',_0x3349aa),_0x2e0615['commands']['add']('showNextChange',_0x3e9770),_0x2e0615['commands']['add']('restoreRevision',new yt(_0x2e0615)),this['on']('change:numberOfChanges',()=>{_0x3349aa['refresh'](),_0x3e9770['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2e0615['enableReadOnlyMode']('revision-viewer'),_0x2e0615['plugins']['has']('WidgetToolbarRepository'))&&_0x2e0615['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1c9f37){await this['loadRevisionData'](_0x1c9f37);const _0x35e3e0={};for(const _0xe4b3 in _0x1c9f37['diffData']){if(_0x1c9f37['diffData'][_0xe4b3]['attachChange']&&!_0x1c9f37['diffData'][_0xe4b3]['attachChange']['isAttached'])continue;const _0x1dc2a4=this['_removeRevisionMarkers'](JSON['parse'](_0x1c9f37['diffData'][_0xe4b3]['insertions'])),_0xef04fc=this['editor']['editing']['view']['document'],_0x4ab1ec=new _0x2083b3(_0xef04fc,_0x1dc2a4['map'](_0x50132a=>this['_getViewObj'](_0x50132a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x35e3e0[_0xe4b3]=this['editor']['data']['processor']['toData'](_0x4ab1ec),this['editor']['data']['processor']['useFillerType']('default');}return _0x35e3e0;}async['getRevisionRootsAttributes'](_0x3cc81f){await this['loadRevisionData'](_0x3cc81f);const _0x2cdea0={};for(const _0xb6b970 in _0x3cc81f['diffData'])_0x3cc81f['diffData'][_0xb6b970]['attachChange']&&!_0x3cc81f['diffData'][_0xb6b970]['attachChange']['isAttached']||(_0x2cdea0[_0xb6b970]=_0x3cc81f['diffData'][_0xb6b970]['attributesAfter']||{});return _0x2cdea0;}['_removeRevisionMarkers'](_0x5328cd){return(_0x5328cd=_0x5328cd['filter'](_0x2c2d66=>!_0x2c2d66['name']||'revision-start'!==_0x2c2d66['name']&&'revision-end'!==_0x2c2d66['name']))['forEach'](_0x457fe7=>{'string'!=typeof _0x457fe7&&(_0x457fe7['children']=this['_removeRevisionMarkers'](_0x457fe7['children']),_0x457fe7['attributes']=_0x457fe7['attributes']['filter'](_0x1cab1c=>!_0x1cab1c[0x0]['startsWith']('data-revision-')));}),_0x5328cd;}async['compare'](_0x5d7ef7,_0x5ce2b1,_0x1f469b=!0x1){if(!this['isEnabled'])return;const _0x288a84=this['diff'],_0xec75c1=this['repository'],_0x167174='string'==typeof _0x5d7ef7?_0xec75c1['getRevision'](_0x5d7ef7):_0x5d7ef7,_0x24807b='string'==typeof _0x5ce2b1?_0xec75c1['getRevision'](_0x5ce2b1):_0x5ce2b1,_0x4518e8=_0x167174['id'],_0x5aa26e=_0x24807b?_0x24807b['id']:null;if(!_0x1f469b&&this['diff']&&this['diff']['newRevisionId']===_0x4518e8&&this['diff']['oldRevisionId']===_0x5aa26e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4518e8,_0x5aa26e);const _0x4019a7=this['_getRevisionsRange'](_0x167174,_0x24807b,!0x0)['map'](_0x1b5e05=>this['loadRevisionData'](_0x1b5e05));return _0x4019a7['push'](new Promise(_0x5dd133=>{setTimeout(_0x5dd133,0x14);})),Promise['all'](_0x4019a7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x189004=this['_getDiff'](_0x4518e8,_0x5aa26e);for(const _0x3d3bd6 of _0x189004['changes'])this['_changeIdToChange']['set'](_0x3d3bd6['id'],_0x3d3bd6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x530fe9=>{for(const _0x9f9d63 of this['editor']['model']['document']['getRootNames']())_0x530fe9['detachRoot'](_0x9f9d63);for(const _0x1d3de4 of Object['keys'](_0x189004['model'])){const _0x2e1068=_0x530fe9['addRoot'](_0x1d3de4);for(const _0x3e84ec of Object['keys'](_0x189004['attributes'][_0x1d3de4]))_0x530fe9['setAttribute'](_0x3e84ec,_0x189004['attributes'][_0x1d3de4][_0x3e84ec],_0x2e1068);_0x530fe9['insert'](_0x189004['model'][_0x1d3de4],_0x2e1068,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x189004['changes'])),this['isReady']=!0x0;})['catch'](_0x20275d=>{console['error'](_0x20275d),this['_cleanUp'](),_0x288a84&&(this['diff']=_0x288a84),this['isReady']=!0x0;});}['addRevisionData'](_0x138545,_0x462740){const _0x3ca05c=this['repository']['createRevision'](_0x138545);return _0x3ca05c['on']('_update',(_0x209c51,_0x375d99,_0xdda0d3)=>_0x462740(_0x375d99,_0xdda0d3,_0x3ca05c)),this['repository']['addRevision'](_0x3ca05c),_0x3ca05c;}['loadRevisionData'](_0x3f97dd){if(!_0x3f97dd||_0x3f97dd['diffData'])return Promise['resolve']();{const _0x2ff7fc=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2ff7fc,'revisionId':_0x3f97dd['id']})['then'](_0x10850e=>{_0x3f97dd['_update']({'diffData':_0x10850e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f3eb1=>{for(const _0x5b2df6 of this['editor']['model']['document']['getRootNames']())_0x5f3eb1['detachRoot'](_0x5b2df6);});}['_sortAndFilterDiffChanges'](_0x40c31c){const _0xd2c564=[],_0x308b70=new Map();for(const _0x20ef3b of this['editor']['model']['document']['getRootNames']()){const _0x2275e1=this['editor']['editing']['view']['getDomRoot'](_0x20ef3b);if(!_0x2275e1)continue;const _0x133cdd=_0x2275e1['getClientRects']()['item'](0x0);_0x133cdd&&(_0xd2c564['push'](_0x20ef3b),_0x308b70['set'](_0x20ef3b,_0x133cdd));}return _0xd2c564['sort']((_0x56fb79,_0x49e4ce)=>{const _0x1b30c7=_0x308b70['get'](_0x56fb79),_0x33c8c6=_0x308b70['get'](_0x49e4ce);return _0x1b30c7['y']-_0x33c8c6['y']||_0x1b30c7['x']-_0x33c8c6['x'];}),(_0x40c31c=_0x40c31c['filter'](_0x195f7c=>_0xd2c564['includes'](_0x195f7c['rootName'])))['sort']((_0x2a5ccc,_0x4f6d9e)=>_0xd2c564['indexOf'](_0x2a5ccc['rootName'])-_0xd2c564['indexOf'](_0x4f6d9e['rootName'])),_0x40c31c;}['_makeTape'](_0x504e4f){const _0x4f32f0=Array['from'](_0x504e4f['markers'])['filter'](([_0x142863,_0x3adfee])=>_0x142863['startsWith']('revision:')&&!_0x3adfee['isCollapsed']),_0xa736c2=Array['from'](this['editor']['model']['createRangeIn'](_0x504e4f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4f32f0['length'])for(const _0x386e45 of _0xa736c2){const [_0x316818,_0x4a0987]=_0x4f32f0[0x0],[,_0xbd9cef,_0x8534d]=_0x316818['split'](':');if(_0x4a0987['end']['isEqual'](_0x386e45['nextPosition'])&&_0x4f32f0['shift'](),(_0x386e45['previousPosition']['isEqual'](_0x4a0987['start'])||_0x386e45['previousPosition']['isAfter'](_0x4a0987['start']))&&('insertion'==_0xbd9cef?_0x386e45['isAdded']={'userId':_0x8534d}:'deletion'==_0xbd9cef&&(_0x386e45['isRemoved']={'userId':_0x8534d})),0x0==_0x4f32f0['length'])break;}return _0xa736c2;}['_refreshStartEndIndex'](_0x205552){const _0x1cac3e=new Map();for(let _0x55fc82=0x0;_0x55fc82<_0x205552['length'];_0x55fc82++)'text'===_0x205552[_0x55fc82]['type']?(_0x205552[_0x55fc82]['item']['startIndex']=_0x55fc82,_0x205552[_0x55fc82]['item']['endIndex']=_0x55fc82):('elementStart'===_0x205552[_0x55fc82]['type']?_0x205552[_0x55fc82]['item']['startIndex']=_0x55fc82:'elementEnd'===_0x205552[_0x55fc82]['type']&&(_0x205552[_0x55fc82]['item']['endIndex']=_0x55fc82),_0x1cac3e['set'](_0x205552[_0x55fc82]['id'],_0x55fc82));for(const _0x472a14 of _0x1cac3e['values']())'elementStart'===_0x205552[_0x472a14]['type']?_0x205552[_0x472a14]['item']['endIndex']=_0x1cac3e['get'](_0x205552[_0x472a14]['pairId']):'elementEnd'===_0x205552[_0x472a14]['type']&&(_0x205552[_0x472a14]['item']['startIndex']=_0x1cac3e['get'](_0x205552[_0x472a14]['pairId']));}['_processTape'](_0x114ebc){for(let _0x265500=0x0;_0x265500<_0x114ebc['length'];_0x265500++){if('elementStart'===_0x114ebc[_0x265500]['type'])_0x114ebc[_0x265500]['item']['startIndex']=_0x265500;else{if('elementEnd'===_0x114ebc[_0x265500]['type']){_0x114ebc[_0x265500]['item']['endIndex']=_0x265500;const _0x128979=_0x114ebc[_0x265500]['item']['startIndex'];_0x114ebc[_0x128979]['pairId']=_0x114ebc[_0x265500]['id'],_0x114ebc[_0x265500]['pairId']=_0x114ebc[_0x128979]['id'];}else _0x114ebc[_0x265500]['item']['startIndex']=_0x265500,_0x114ebc[_0x265500]['item']['endIndex']=_0x265500,_0x114ebc[_0x265500]['pairId']=null;}_0x114ebc[_0x265500]['markersStart']||(_0x114ebc[_0x265500]['markersStart']=[],_0x114ebc[_0x265500]['markersEnd']=[]);}}['_markInsertions'](_0x3176a9,_0x533a00){const _0x22bd1a=_0x3176a9['filter'](_0x1cefb3=>!_0x1cefb3['isAdded']);for(let _0x1d4161=0x0;_0x1d4161<_0x533a00['length'];_0x1d4161++)_0x533a00[_0x1d4161]['isAdded']&&(_0x22bd1a[_0x1d4161]['isAdded']=_0x533a00[_0x1d4161]['isAdded']);}['_makeModelFromViewString'](_0xae9015){const _0x4295e9=JSON['parse'](_0xae9015),_0x4d1c17=this['editor']['editing']['view']['document'],_0x2113cf=new _0x2083b3(_0x4d1c17,_0x4295e9['map'](_0x51e26a=>this['_getViewObj'](_0x51e26a)));return this['editor']['data']['toModel'](_0x2113cf);}['_getViewObj'](_0x336cd9){const _0x54ca30=this['editor']['editing']['view']['document'];if('string'==typeof _0x336cd9)return new _0x485786(_0x54ca30,_0x336cd9);{const _0x150338=_0x336cd9['children']['map'](_0x63c3aa=>this['_getViewObj'](_0x63c3aa));return new(Z[_0x336cd9['type']]||_0x39dcfb)(_0x54ca30,_0x336cd9['name'],_0x336cd9['attributes'],_0x150338);}}['_getDiff'](_0x4ca7ea,_0x52c679=null){const _0x4fd39e=this['repository']['getRevision'](_0x4ca7ea),_0x28f7ac=_0x52c679?this['repository']['getRevision'](_0x52c679):null,_0x5f1a77=this['_getRevisionsRange'](_0x4fd39e,_0x28f7ac),_0xce1ccb=_0x5f1a77[_0x5f1a77['length']-0x1],_0x2a279f=new Map(),_0x1f84e9={'model':{},'attributes':{},'changes':[]},_0x31db20=new Set(),_0xc33026=new Map();for(let _0x2addba=_0x5f1a77['length']-0x1;_0x2addba>=0x0;_0x2addba--){const _0x50585f=_0x5f1a77[_0x2addba];for(const _0x2dedda of Object['keys'](_0x50585f['diffData']))if(_0x50585f['diffData'][_0x2dedda]['attachChange']){const _0x33891e=_0x50585f['diffData'][_0x2dedda]['attachChange'];_0x33891e['isAttached']?(_0x31db20['add'](_0x2dedda),_0xc33026['has'](_0x2dedda)&&_0xc33026['get'](_0x2dedda)['userId']==_0x33891e['userId']?_0xc33026['delete'](_0x2dedda):_0xc33026['set'](_0x2dedda,_0x33891e)):_0xc33026['has'](_0x2dedda)?(_0x31db20['delete'](_0x2dedda),_0xc33026['delete'](_0x2dedda)):(_0x31db20['add'](_0x2dedda),_0xc33026['set'](_0x2dedda,_0x33891e));}else _0x31db20['add'](_0x2dedda);}for(const _0x376cf3 of _0x31db20){const _0x4f1075=_0xc33026['has'](_0x376cf3)&&!_0xc33026['get'](_0x376cf3)['isAttached'];let _0x43255d=_0x4f1075?_0x5f1a77['length']-0x1:0x0;const _0x9ea45c=_0x4f1075?-0x1:0x1;for(;_0x5f1a77[_0x43255d];){const _0x1e3e2c=_0x5f1a77[_0x43255d];if(_0x1e3e2c['diffData'][_0x376cf3]){const _0x3cfeb6=_0x4f1075?_0x1e3e2c['diffData'][_0x376cf3]['attributesBefore']:_0x1e3e2c['diffData'][_0x376cf3]['attributesAfter'];_0x1f84e9['attributes'][_0x376cf3]=_0x3cfeb6?_0x1feff3(_0x3cfeb6):{};break;}_0x43255d+=_0x9ea45c;}}for(const _0x399c61 of _0x5f1a77){_0x399c61['model']={};for(const _0x34f9a6 of _0x399c61['authors'])_0x2a279f['set'](_0x34f9a6['id'],_0x34f9a6);for(const _0x216284 of _0x31db20){const _0x1411a2=_0x399c61['diffData'][_0x216284]?_0x399c61['diffData'][_0x216284]['insertions']:'[]',_0x4edde7=_0x399c61['diffData'][_0x216284]?_0x399c61['diffData'][_0x216284]['deletions']:'[]';_0x399c61['model'][_0x216284]={'insertions':this['_makeModelFromViewString'](_0x1411a2),'deletions':this['_makeModelFromViewString'](_0x4edde7)};}}for(const _0x24e67b of _0x31db20){let _0xf7af2d=null,_0xb81f27=0x0;const _0x5e3128=new Map(Array['from'](_0x4fd39e['model'][_0x24e67b]['insertions']['markers'])['filter'](([_0x4f2960])=>!_0x4f2960['startsWith']('revision:')));let _0x1aaa77=0x0;for(const _0x3b444e of _0x5f1a77){const _0x4d5659=this['_makeTape'](_0x3b444e['model'][_0x24e67b]['insertions']);_0x3b444e==_0x4fd39e?(_0xf7af2d=_0x4d5659,_0xb81f27=_0xf7af2d['length'],_0xf7af2d['forEach'](_0x2f8579=>{_0x2f8579['id']=_0x1aaa77++;}),this['_processTape'](_0xf7af2d)):this['_markInsertions'](_0xf7af2d,_0x4d5659);const _0x2f8c72=_0xf7af2d['filter'](_0x442fdd=>!_0x442fdd['isAdded'])['map'](_0x341f77=>_0x341f77['id']);let _0x20c6d3=0x0;const _0x2295f8=this['_makeTape'](_0x3b444e['model'][_0x24e67b]['deletions']);_0x2295f8['forEach'](_0x23c98e=>{_0x23c98e['isRemoved']?_0x23c98e['id']=_0xb81f27++:_0x23c98e['id']=_0x2f8c72[_0x20c6d3++];}),this['_processTape'](_0x2295f8),this['_setDistance'](_0xf7af2d,'isAdded'),this['_setDistance'](_0x2295f8,'isRemoved'),_0x3b444e==_0x4fd39e&&this['_markMarkers'](_0xf7af2d,_0x5e3128),_0xf7af2d=this['_joinTapes'](_0xf7af2d,_0x2295f8),this['_refreshStartEndIndex'](_0xf7af2d),this['_setDistance'](_0xf7af2d,'isRemoved');}_0xf7af2d=_0xf7af2d['filter'](_0x22dcd7=>!(_0x22dcd7['isAdded']&&_0x22dcd7['isRemoved']));const _0x1f2d28=new Map(_0xce1ccb['model'][_0x24e67b]['deletions']['markers']),_0x3ff59b=new Set(_0x5e3128['keys']());for(const _0x52467d of _0x1f2d28['keys']())_0x3ff59b['delete'](_0x52467d);this['_markSuggestions'](_0xf7af2d,_0x3ff59b),this['_fixObsoleteTags'](_0xf7af2d),_0xf7af2d=this['_removeMissingPairs'](_0xf7af2d),_0xf7af2d=this['_markMismatchedRemovedTags'](_0xf7af2d),_0xf7af2d=this['_removeUnsupportedChanges'](_0xf7af2d);const {root:_0xdeda99,changes:_0x4576ac}=this['_makeModelFromTape'](_0xf7af2d,_0x2a279f,_0x24e67b);_0x1f84e9['model'][_0x24e67b]=_0xdeda99;const _0x1ea17a=_0xc33026['get'](_0x24e67b);if(_0x1ea17a){const _0x422307=_0x2a279f['get'](_0x1ea17a['userId']),_0x1dd77a=new r({'author':_0x422307,'type':_0x1ea17a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x24e67b});_0x4576ac['unshift'](_0x1dd77a),_0x1f84e9['attributes'][_0x24e67b]['revisionHistoryAttachChange']=_0x1dd77a['id'];}_0x1f84e9['changes']=_0x1f84e9['changes']['concat'](_0x4576ac);}return _0x1f84e9;}['_markMarkers'](_0x25004a,_0x460c1d){for(let _0x290ae9=0x0;_0x290ae9<_0x25004a['length'];_0x290ae9++)for(const [_0x223d34,_0x2e3857]of _0x460c1d)_0x2e3857['start']['isEqual'](_0x25004a[_0x290ae9]['previousPosition'])&&_0x25004a[_0x290ae9]['markersStart']['push'](_0x223d34),_0x2e3857['end']['isEqual'](_0x25004a[_0x290ae9]['nextPosition'])&&_0x25004a[_0x290ae9]['markersEnd']['push'](_0x223d34);}['_joinTapes'](_0x24405e,_0x145a38){let _0x1db012=[],_0x5c12fb=0x0,_0x2b8067=0x0;for(;_0x5c12fb<_0x24405e['length']||_0x2b8067<_0x145a38['length'];){const _0x19092e=_0x24405e[_0x5c12fb]||{},_0x33cd0e=_0x145a38[_0x2b8067]||{};if(_0x19092e['id']==_0x33cd0e['id'])_0x5c12fb++,_0x2b8067++,_0x1db012['push'](_0x19092e);else{if(_0x33cd0e['isRemoved']&&_0x19092e['isAdded']){const {commonTape:_0x13b396,iEnd:_0xbd4bc3,jEnd:_0x373f55}=this['_threeWayMerge'](_0x24405e,_0x5c12fb,_0x145a38,_0x2b8067);_0x1db012=_0x1db012['concat'](_0x13b396),_0x5c12fb=_0xbd4bc3,_0x2b8067=_0x373f55;}else _0x33cd0e['isRemoved']?(_0x2b8067++,_0x1db012['push'](_0x33cd0e)):(_0x5c12fb++,_0x1db012['push'](_0x19092e));}}return _0x1db012;}['_markSuggestions'](_0x3018cc,_0x2dd361){const _0x4b51f=[];for(let _0x200178=0x0;_0x200178<_0x3018cc['length'];_0x200178++){for(let _0x3442eb=0x0;_0x3442eb<_0x3018cc[_0x200178]['markersStart']['length'];_0x3442eb++){const _0x52119d=_0x3018cc[_0x200178]['markersStart'][_0x3442eb];if(!_0x2dd361['has'](_0x52119d))continue;const {group:_0xfdd65,type:_0x11c927,authorId:_0x24065f}=_0x2785ad(_0x52119d);'revision-suggestion'!=_0xfdd65||'insertion'!=_0x11c927&&'deletion'!=_0x11c927||(_0x4b51f['unshift']({'type':_0x11c927,'name':_0x52119d,'userId':_0x24065f}),_0x3018cc[_0x200178]['markersStart']['splice'](_0x3442eb,0x1),_0x3442eb--);}_0x2ecba7(_0x3018cc[_0x200178]);for(let _0x332eaf=0x0;_0x332eaf<_0x3018cc[_0x200178]['markersEnd']['length'];_0x332eaf++){const _0x2052be=_0x3018cc[_0x200178]['markersEnd'][_0x332eaf];if(!_0x2dd361['has'](_0x2052be))continue;const {group:_0x550e14,type:_0x5602cc}=_0x2785ad(_0x2052be);if('revision-suggestion'!=_0x550e14||'insertion'!=_0x5602cc&&'deletion'!=_0x5602cc)continue;_0x3018cc[_0x200178]['markersEnd']['splice'](_0x332eaf,0x1),_0x332eaf--;const _0x5e27e6=_0x4b51f['findIndex'](_0x429057=>_0x429057['name']==_0x2052be);_0x5e27e6>-0x1&&_0x4b51f['splice'](_0x5e27e6,0x1);}}function _0x2785ad(_0x343d72){const _0x2cc6f1=_0x343d72['split'](':');return{'group':_0x2cc6f1[0x0],'type':_0x2cc6f1[0x1],'subType':_0x2cc6f1['length']>=0x5?_0x2cc6f1[0x2]:null,'id':_0x2cc6f1['length']<0x5?_0x2cc6f1[0x2]:_0x2cc6f1[0x3],'authorId':_0x2cc6f1['length']<0x5?_0x2cc6f1[0x3]:_0x2cc6f1[0x4],'markerCount':0x6==_0x2cc6f1['length']?_0x2cc6f1[0x5]:null};}function _0x2ecba7(_0x59f7d5){for(let _0x45de86=0x0;_0x45de86<_0x4b51f['length'];_0x45de86++){if(_0x59f7d5['isAdded']&&'insertion'==_0x4b51f[_0x45de86]['type'])return _0x59f7d5['isAddSuggestion']=_0x4b51f[_0x45de86],void delete _0x59f7d5['isAdded'];if(!_0x59f7d5['isAdded']&&!_0x59f7d5['isRemoved']&&'deletion'==_0x4b51f[_0x45de86]['type'])return void(_0x59f7d5['isRemoveSuggestion']=_0x4b51f[_0x45de86]);}}}['_setDistance'](_0x4bc580,_0x548060){let _0x3b3e76=0x0,_0x2bed3b=!0x1;const _0x13d95d=new Map();for(const _0x2adaec of _0x4bc580)_0x2adaec[_0x548060]?_0x2bed3b&&(_0x3b3e76++,_0x2bed3b=!0x1):(_0x3b3e76++,_0x2bed3b=!0x0),_0x13d95d['set'](_0x2adaec['id'],_0x3b3e76);for(let _0x2589a8=0x0;_0x2589a8<_0x4bc580['length'];_0x2589a8++){if('isRemoved'==_0x548060&&_0x4bc580[_0x2589a8]['isAdded']||'isAdded'==_0x548060&&_0x4bc580[_0x2589a8]['isRemoved'])continue;if('text'==_0x4bc580[_0x2589a8]['type']){_0x4bc580[_0x2589a8]['distance']=0x0;continue;}const _0x536796=_0x13d95d['get'](_0x4bc580[_0x2589a8]['pairId']),_0x5cf2c7=_0x13d95d['get'](_0x4bc580[_0x2589a8]['id']);_0x4bc580[_0x2589a8]['distance']=_0x536796-_0x5cf2c7;}}['_getRevisionsRange'](_0xcdfe20,_0xe8f90e,_0x1ca579=!0x1){const _0x57c584=[];let _0x2d258c=this['repository']['getIndex'](_0xcdfe20),_0x3f9ee3=this['repository']['getIndex'](_0xe8f90e);for(-0x1==_0x3f9ee3&&(_0x3f9ee3=this['repository']['_revisions']['length'],_0x1ca579=!0x1);_0x2d258c<_0x3f9ee3;)_0x57c584['push'](this['repository']['getRevision'](_0x2d258c)),_0x2d258c++;return _0x1ca579&&_0x57c584['push'](this['repository']['getRevision'](_0x2d258c)),_0x57c584;}['_threeWayMerge'](_0x29dce6,_0x27599a,_0x328026,_0x5808e1){const _0x426ac7=this['editor']['model']['schema'];let _0x5d2cc8=_0x27599a;for(;_0x29dce6[_0x5d2cc8]&&_0x29dce6[_0x5d2cc8]['isAdded'];)_0x5d2cc8++;let _0x234dba=_0x5808e1;for(;_0x328026[_0x234dba]&&_0x328026[_0x234dba]['isRemoved'];)_0x234dba++;_0x1ce4f7(_0x29dce6,_0x27599a,_0x5d2cc8),_0x1ce4f7(_0x328026,_0x5808e1,_0x234dba);const _0x3e015a=_0x328026['slice'](_0x5808e1,_0x234dba)['concat'](_0x29dce6['slice'](_0x27599a,_0x5d2cc8));return _0x3e015a['sort']((_0x28e922,_0x209c40)=>_0x28e922['side']!=_0x209c40['side']?_0x28e922['side']-_0x209c40['side']:_0x28e922['level']!=_0x209c40['level']?_0x28e922['level']-_0x209c40['level']:_0x28e922['distance']!=_0x209c40['distance']?_0x209c40['distance']-_0x28e922['distance']:!!_0x28e922['isAdded']!=!!_0x209c40['isAdded']?-0x1==_0x28e922['side']||0x0==_0x28e922['side']?_0x28e922['isAdded']?-0x1:0x1:_0x28e922['isAdded']?0x1:-0x1:_0x28e922['index']-_0x209c40['index']),{'commonTape':_0x3e015a,'iEnd':_0x5d2cc8,'jEnd':_0x234dba};function _0x1ce4f7(_0x3d9b6c,_0x19145d,_0x976a82){let _0x3a00d2=-0x1,_0x3868a5=Number['POSITIVE_INFINITY'],_0x217de8=!0x0;for(let _0xc5a136=_0x19145d;_0xc5a136<_0x976a82;_0xc5a136++)if(_0x426ac7['isInline'](_0x3d9b6c[_0xc5a136]['item'])||(_0x217de8=!0x1),_0x3d9b6c[_0xc5a136]['item']['startIndex']<_0x19145d&&(_0x3a00d2=_0xc5a136),_0x3d9b6c[_0xc5a136]['item']['endIndex']>=_0x976a82){_0x3868a5=_0xc5a136;break;}_0x217de8&&(_0x3a00d2=_0x976a82-0x1);for(let _0x264f53=_0x19145d;_0x264f53<_0x976a82;_0x264f53++)_0x3d9b6c[_0x264f53]['side']=_0x264f53<=_0x3a00d2?-0x1:_0x264f53<_0x3868a5?0x0:0x1,_0x3d9b6c[_0x264f53]['index']=_0x264f53;let _0x1158cd=0x0;for(let _0x38c984=_0x19145d;_0x38c984<=_0x3a00d2;_0x38c984++)0x0==_0x3d9b6c[_0x38c984]['distance']?_0x3d9b6c[_0x38c984]['level']=_0x1158cd:(_0x1158cd++,_0x3d9b6c[_0x38c984]['level']=_0x1158cd,_0x1158cd++);for(let _0x6d4cc7=_0x19145d;_0x6d4cc7<_0x976a82;_0x6d4cc7++)0x0==_0x3d9b6c[_0x6d4cc7]['side']&&(_0x3d9b6c[_0x6d4cc7]['level']=_0x1158cd);_0x1158cd=0x0;for(let _0x3378d0=_0x976a82-0x1;_0x3378d0>=_0x3868a5;_0x3378d0--)0x0==_0x3d9b6c[_0x3378d0]['distance']?_0x3d9b6c[_0x3378d0]['level']=_0x1158cd:(_0x1158cd--,_0x3d9b6c[_0x3378d0]['level']=_0x1158cd,_0x1158cd--);}}['_fixObsoleteTags'](_0x1b8f40){const _0x29b438=new Map(),_0x13d4c8=this['editor']['model']['schema'];for(let _0x441e85=0x1;_0x441e85<_0x1b8f40['length'];_0x441e85++){let _0x2eabde,_0x1b4228,_0x4ad178;const _0x247764=_0x1b8f40[_0x441e85],_0x1b4a88=_0x1b8f40[_0x441e85-0x1];if('text'==_0x247764['type'])continue;if(_0x247764['type']!=_0x1b4a88['type'])continue;if(!_0x13d4c8['isBlock'](_0x1b4a88['item'])||_0x13d4c8['isLimit'](_0x1b4a88['item']))continue;if(!_0x13d4c8['isBlock'](_0x247764['item'])||_0x13d4c8['isLimit'](_0x247764['item']))continue;if((_0x1b8f40[_0x441e85]['isAdded']||_0x1b8f40[_0x441e85]['isAddSuggestion'])&&_0x1b8f40[_0x441e85-0x1]['isRemoved'])_0x2eabde=_0x1b8f40[_0x441e85],_0x1b4228=_0x1b8f40[_0x441e85-0x1],_0x4ad178=_0x441e85-0x1;else{if(!_0x1b8f40[_0x441e85]['isRemoved']||!_0x1b8f40[_0x441e85-0x1]['isAdded']&&!_0x1b8f40[_0x441e85-0x1]['isAddSuggestion'])continue;_0x2eabde=_0x1b8f40[_0x441e85-0x1],_0x1b4228=_0x1b8f40[_0x441e85],_0x4ad178=_0x441e85;}const _0x4ae2de=_0x2eabde['level']==_0x1b4228['level'],_0xc3ebaa=Math['abs'](_0x2eabde['level'])<Math['abs'](_0x1b4228['level'])&&0x0==_0x1b4228['distance'];(_0x4ae2de||_0xc3ebaa)&&(_0x29b438['set'](_0x1b4228['id'],_0x2eabde['id']),_0x1b8f40['splice'](_0x4ad178,0x1),_0x441e85--,_0x2eabde['isAdded']=!0x1);}for(let _0x5b8010=0x0;_0x5b8010<_0x1b8f40['length'];_0x5b8010++)_0x29b438['has'](_0x1b8f40[_0x5b8010]['pairId'])&&(_0x1b8f40[_0x5b8010]['pairId']=_0x29b438['get'](_0x1b8f40[_0x5b8010]['pairId']));}['_removeMissingPairs'](_0x290c26){const _0x2f562a=new Set(_0x290c26['map'](_0x3b6a14=>_0x3b6a14['id']));for(let _0x4d7a9e=0x0;_0x4d7a9e<_0x290c26['length'];_0x4d7a9e++)_0x2f562a['has'](_0x290c26[_0x4d7a9e]['pairId'])||0x0==_0x290c26[_0x4d7a9e]['distance']||(_0x290c26[_0x4d7a9e]['isIncorrect']=!0x0);return _0x290c26['filter'](_0x3463c3=>!_0x3463c3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x30acf4){const _0xaed2b3=new Set();for(let _0x57c933=0x0;_0x57c933<_0x30acf4['length'];_0x57c933++){if(_0xaed2b3['has'](_0x30acf4[_0x57c933]['id'])&&_0x30acf4[_0x57c933]['isRemoved']&&(_0x30acf4[_0x57c933]['isIncorrect']=!0x0),_0x30acf4[_0x57c933]['isIncorrect'])continue;if(0x0==_0x30acf4[_0x57c933]['distance'])continue;if('elementStart'!=_0x30acf4[_0x57c933]['type'])continue;if(null==_0x30acf4[_0x57c933]['pairId'])continue;let _0x39b9d7=_0x57c933+0x1,_0x498d14=0x0;for(;_0x30acf4[_0x39b9d7]['id']!=_0x30acf4[_0x57c933]['pairId'];)'elementStart'==_0x30acf4[_0x39b9d7]['type']?_0x498d14++:'elementEnd'==_0x30acf4[_0x39b9d7]['type']&&_0x498d14--,_0x39b9d7++;if(0x0!=_0x498d14){if(_0x30acf4[_0x57c933]['isRemoved'])_0x30acf4[_0x57c933]['isIncorrect']=!0x0;else{for(;_0x39b9d7!=_0x57c933;)_0x30acf4[_0x39b9d7]['isRemoved']&&0x0!=_0x30acf4[_0x39b9d7]['distance']&&(_0x30acf4[_0x39b9d7]['isIncorrect']=!0x0,_0xaed2b3['add'](_0x30acf4[_0x39b9d7]['pairId'])),_0x39b9d7--;}}}return _0x30acf4['filter'](_0x346636=>!_0x346636['isIncorrect']);}['_removeUnsupportedChanges'](_0x522442){const _0x46f31d=this['editor']['model']['schema'];for(let _0x519bf5=0x0;_0x519bf5<_0x522442['length'];_0x519bf5++){if(!(_0x522442[_0x519bf5]['isAdded']||_0x522442[_0x519bf5]['isAddSuggestion']||_0x522442[_0x519bf5]['isRemoved']||_0x522442[_0x519bf5]['isRemoveSuggestion']))continue;if(0x0==_0x522442[_0x519bf5]['distance'])continue;const _0x51119c=_0x522442[_0x519bf5]['item'];_0x46f31d['isBlock'](_0x51119c)||_0x46f31d['isLimit'](_0x51119c)||(_0x522442[_0x519bf5]['isAdded']&&delete _0x522442[_0x519bf5]['isAdded'],_0x522442[_0x519bf5]['isAddSuggestion']&&delete _0x522442[_0x519bf5]['isAddSuggestion'],_0x522442[_0x519bf5]['isRemoveSuggestion']&&delete _0x522442[_0x519bf5]['isRemoveSuggestion'],_0x522442[_0x519bf5]['isRemoved']&&(_0x522442[_0x519bf5]['isIncorrect']=!0x0));}return _0x522442['filter'](_0xb50abe=>!_0xb50abe['isIncorrect']);}['_makeModelFromTape'](_0x379a6a,_0x1b98b0,_0x2f5c6a){const _0x4d3c87=new wt(),_0x47053d=[],_0x313d3c=new Map(),_0x3a846c=this['editor']['model'],_0x481263=_0x3a846c['schema'],_0x2db0a6=[_0x4d3c87],_0x6d975c={},_0x23a013={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5cd4af=null;const _0x1e6e9f=[0x0];for(let _0x5048d8=0x0;_0x5048d8<_0x379a6a['length'];_0x5048d8++)if('elementStart'===_0x379a6a[_0x5048d8]['type']){_0x379a6a[_0x5048d8]['previousPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f);const _0x36116b=new ft(_0x379a6a[_0x5048d8]['item']['name'],_0x379a6a[_0x5048d8]['item']['getAttributes']());_0x2db0a6[0x0]['_appendChild'](_0x36116b),_0x1e6e9f['push'](0x0),_0x2db0a6['unshift'](_0x36116b),_0x379a6a[_0x5048d8]['nextPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f);}else'elementEnd'===_0x379a6a[_0x5048d8]['type']?(_0x2db0a6['shift'](),_0x379a6a[_0x5048d8]['previousPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f),_0x1e6e9f['pop'](),_0x1e6e9f[_0x1e6e9f['length']-0x1]++,_0x379a6a[_0x5048d8]['nextPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f)):(_0x379a6a[_0x5048d8]['previousPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f),_0x5cd4af?_0x5cd4af['_data']+=_0x379a6a[_0x5048d8]['item']['data']:_0x5cd4af=new _t(_0x379a6a[_0x5048d8]['item']['data'],_0x379a6a[_0x5048d8]['item']['getAttributes']()),_0x379a6a[_0x5048d8+0x1]&&'text'===_0x379a6a[_0x5048d8+0x1]['type']&&_0x479113(_0x5cd4af,_0x379a6a[_0x5048d8+0x1]['item'])||(_0x2db0a6[0x0]['_appendChild'](_0x5cd4af),_0x5cd4af=null),_0x1e6e9f[_0x1e6e9f['length']-0x1]+=_0x379a6a[_0x5048d8]['item']['offsetSize'],_0x379a6a[_0x5048d8]['nextPosition']=_0x3a846c['createPositionFromPath'](_0x4d3c87,_0x1e6e9f));for(let _0x35d7f9=0x0;_0x35d7f9<_0x379a6a['length'];_0x35d7f9++){const _0x1dde3b=_0x379a6a[_0x35d7f9]['previousPosition'],_0x49e852=_0x379a6a[_0x35d7f9]['nextPosition'];for(const _0x1030f4 of _0x379a6a[_0x35d7f9]['markersStart'])_0x313d3c['set'](_0x1030f4,{'start':_0x1dde3b,'end':null});_0xd4a402('isRemoveSuggestion',_0x35d7f9,_0x1dde3b,_0x49e852),_0xd4a402('isAddSuggestion',_0x35d7f9,_0x1dde3b,_0x49e852),_0xd4a402('isRemoved',_0x35d7f9,_0x1dde3b,_0x49e852),_0xd4a402('isAdded',_0x35d7f9,_0x1dde3b,_0x49e852);for(const _0x2abce8 of _0x379a6a[_0x35d7f9]['markersEnd']){_0x313d3c['get'](_0x2abce8)['end']=_0x49e852;}}for(const [_0x4e442b,_0x37ad7f]of _0x313d3c){const _0x4b9038=this['editor']['model']['createRange'](_0x37ad7f['start'],_0x37ad7f['end']);_0x4d3c87['markers']['set'](_0x4e442b,_0x4b9038);}return _0x47053d['sort']((_0x1041fe,_0x8c2a)=>{const _0x3a8bfa=_0x4d3c87['markers']['get']('revision:'+_0x1041fe['id']),_0x484a94=_0x4d3c87['markers']['get']('revision:'+_0x8c2a['id']);return _0x3a8bfa['start']['isBefore'](_0x484a94['start'])?-0x1:_0x3a8bfa['start']['isAfter'](_0x484a94['start'])?0x1:_0x3a8bfa['end']['isBefore'](_0x484a94['end'])?-0x1:_0x3a8bfa['end']['isAfter'](_0x484a94['end'])?0x1:'add'===_0x1041fe['type']?-0x1:0x1;}),{'root':_0x4d3c87,'changes':_0x47053d};function _0xd4a402(_0x9e7901,_0x3c8ec6,_0x599e5f,_0x1b6ad5){const _0x2c62e4=!!_0x379a6a[_0x3c8ec6][_0x9e7901],_0x1abe50=_0x2c62e4?_0x379a6a[_0x3c8ec6][_0x9e7901]['userId']:null,_0x216d64=_0x3c8ec6===_0x379a6a['length']-0x1,_0x4fe379=_0x23a013[_0x9e7901][0x0],_0x5df3b2=_0x481263['isObject'](_0x379a6a[_0x3c8ec6]['item']);!_0x6d975c[_0x9e7901]&&_0x2c62e4?_0x6d975c[_0x9e7901]={'start':_0x599e5f,'tapeItem':_0x379a6a[_0x3c8ec6],'userId':_0x1abe50,'type':_0x9e7901}:_0x6d975c[_0x9e7901]&&!_0x2c62e4?(_0x6d975c[_0x9e7901]['end']=_0x599e5f,_0x247904(_0x6d975c[_0x9e7901]),_0x6d975c[_0x9e7901]=null):_0x6d975c[_0x9e7901]&&_0x2c62e4&&_0x6d975c[_0x9e7901]['userId']!==_0x1abe50&&(_0x6d975c[_0x9e7901]['end']=_0x599e5f,_0x4fe379&&_0x4fe379['userId']===_0x6d975c[_0x9e7901]['userId']||_0x247904(_0x6d975c[_0x9e7901]),_0x6d975c[_0x9e7901]={'start':_0x599e5f,'tapeItem':_0x379a6a[_0x3c8ec6],'userId':_0x1abe50,'type':_0x9e7901}),_0x6d975c[_0x9e7901]&&_0x5df3b2&&('elementStart'!==_0x379a6a[_0x3c8ec6]['type']||_0x4fe379&&_0x4fe379['userId']===_0x1abe50||_0x23a013[_0x9e7901]['unshift']({'userId':_0x1abe50,'object':_0x379a6a[_0x3c8ec6]['item'],'change':_0x6d975c[_0x9e7901]}),'elementEnd'===_0x379a6a[_0x3c8ec6]['type']&&_0x4fe379&&_0x4fe379['object']===_0x379a6a[_0x3c8ec6]['item']&&(_0x23a013[_0x9e7901]['shift'](),_0x6d975c[_0x9e7901]=_0x4fe379['change'])),_0x6d975c[_0x9e7901]&&_0x216d64&&(_0x6d975c[_0x9e7901]['end']=_0x1b6ad5,_0x247904(_0x6d975c[_0x9e7901]),_0x6d975c[_0x9e7901]=null);}function _0x247904({start:_0x343cd5,end:_0x4eaa04,tapeItem:_0x13da8b,userId:_0x103bd0,type:_0x51988d}){const _0x364907=_0x13da8b['item'],_0x5b498f=_0x3a846c['schema']['isBlock'](_0x364907)&&!_0x3a846c['schema']['isLimit'](_0x364907),_0xf80b66=_0x343cd5['nodeAfter']==_0x4eaa04['parent']&&_0x4eaa04['isAtStart'];if(_0x5b498f&&_0xf80b66)return;const _0x5a7e04=_0x3a846c['createRange'](_0x343cd5,_0x4eaa04),_0x43453b=_0x1b98b0['get'](_0x103bd0),_0x3c4c59=new r({'author':_0x43453b,'type':'isAdded'==_0x51988d||'isAddSuggestion'==_0x51988d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x51988d||'isRemoveSuggestion'==_0x51988d},'createdAt':new Date(),'rootName':_0x2f5c6a});_0x47053d['push'](_0x3c4c59),_0x4d3c87['markers']['set']('revision:'+_0x3c4c59['id'],_0x5a7e04);}function _0x479113(_0x276a45,_0x5a3102){const _0x5df8a0=_0x276a45['getAttributes'](),_0x463518=_0x5a3102['getAttributes']();for(const _0x59bece of _0x5df8a0){if(_0x59bece[0x1]!==_0x5a3102['getAttribute'](_0x59bece[0x0]))return!0x1;_0x463518['next']();}return _0x463518['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x57bedd=>{const _0x4686c7=_0x57bedd['markerName']['split'](':')[0x1],_0xac93a9=this['_getChangeFromId'](_0x4686c7);if(!_0xac93a9)return null;const _0x3291ca='add'==_0xac93a9['type']?'insertion':'deletion',_0x46b9db=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3291ca];return _0xac93a9['data']['isSuggestion']&&_0x46b9db['push']('ck-suggestion-marker-'+_0x3291ca+'-new'),this['activeChange']==_0xac93a9&&_0x46b9db['push']('ck-suggestion-marker--active'),{'classes':_0x46b9db,'attributes':{'data-change-id':_0x4686c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1046ec=>{_0x1046ec['on']('element:pre',(_0x3820b0,_0xeb645e,_0x4dedec)=>{const _0x235568=_0xeb645e['viewItem']['getChild'](0x0);if(!_0x235568||!_0x235568['is']('element','code'))return;if(!_0x4dedec['consumable']['consume'](_0x235568,{'attributes':['vid_start','vid_end']}))return;const _0xab7ee3=_0xeb645e['modelRange']['start']['nodeAfter'];_0x4dedec['writer']['setAttribute']('vid_start',_0x235568['getAttribute']('vid_start'),_0xab7ee3),_0x4dedec['writer']['setAttribute']('vid_end',_0x235568['getAttribute']('vid_end'),_0xab7ee3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x299db4=>{_0x299db4['on']('element',(_0x3b021b,_0x45c75d,_0x8116dd)=>{if(!_0x8116dd['consumable']['consume'](_0x45c75d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x45c75d['modelRange']['isCollapsed'])return;const _0x4e148c=_0x45c75d['modelRange']['start']['nodeAfter'];_0x4e148c['hasAttribute']('vid_start')||_0x4e148c['hasAttribute']('vid')||(_0x8116dd['writer']['setAttribute']('vid_start',_0x45c75d['viewItem']['getAttribute']('vid_start'),_0x4e148c),_0x8116dd['writer']['setAttribute']('vid_end',_0x45c75d['viewItem']['getAttribute']('vid_end'),_0x4e148c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x10e770=>_0x10e770['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1edb8c,[,_0x5a3a17])=>{['vid_start','vid_end','vid']['includes'](_0x5a3a17)&&(_0x1edb8c['return']=!0x0,_0x1edb8c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38e272=>{_0x38e272['on']('attribute:vid',(_0x38e0ee,_0x22f61a,_0x204ca9)=>{if('\x20'!=_0x22f61a['item']['data']||_0x22f61a['item']['parent']['maxOffset']>0x1)return;if(!_0x204ca9['consumable']['consume'](_0x22f61a['item'],_0x38e0ee['name']))return;const _0x37f510=_0x204ca9['writer'],_0x4a3a6d=_0x204ca9['mapper']['toViewRange'](_0x22f61a['range']);_0x37f510['wrap'](_0x4a3a6d,_0x37f510['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4cd648){const _0x433a9b=_0x4cd648['plugins']['get']('RevisionViewer');return(_0x391ab9,_0xd1dfaf,_0x27f66f)=>{const _0x1e9758=_0xd1dfaf['markerName']['split'](':')[0x1],_0x114466=_0x433a9b['_getChangeFromId'](_0x1e9758);if(!_0x114466)return null;const _0x1becfc='add'==_0x114466['type']?'split':'merge';if(!_0x27f66f['consumable']['test'](_0xd1dfaf['markerRange'],_0x391ab9['name']))return;const _0x3be730=_0xd1dfaf['markerRange']['getWalker'](),_0x4c424d=_0xd1dfaf['markerRange']['start'],_0x4bb084=_0x4cd648['model']['schema'];let _0x1b3df3=null,_0x54ce73=null,_0x1a30c0=!0x1,_0x4cc3c9=!0x1;for(const _0x52c985 of _0x3be730){const _0x39f2b9=_0x52c985['item'];_0x1a30c0=_0x1a30c0||_0x4bb084['isContent'](_0x39f2b9);const _0x33df97=_0x27f66f['mapper']['toViewElement'](_0x39f2b9);if(_0x33df97&&_0x33df97['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52c985['type']&&(_0x4bb084['isBlock'](_0x39f2b9)&&!_0x4bb084['isLimit'](_0x39f2b9)&&(_0x39f2b9['nextSibling']||_0x4c424d['isAtEnd']?_0x1b3df3&&_0x1b3df3['parent']==_0x39f2b9||(_0x1b3df3=_0x39f2b9,_0x355aab(_0x52c985['previousPosition']),_0x4cc3c9=!0x0):_0x54ce73=_0x54ce73||_0x52c985['previousPosition']));}function _0x355aab(_0x58b41d){const _0x2e3547=_0x27f66f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1becfc}),_0x528cda=_0x27f66f['mapper']['toViewPosition'](_0x58b41d);_0x114466['data']['isSuggestion']&&_0x27f66f['writer']['addClass']('ck-suggestion-marker-'+_0x1becfc+'-new',_0x2e3547),_0x433a9b['activeChange']==_0x114466&&_0x27f66f['writer']['addClass']('ck-suggestion-marker--active',_0x2e3547),_0x27f66f['writer']['insert'](_0x528cda,_0x2e3547),_0x27f66f['mapper']['bindElementToMarker'](_0x2e3547,_0xd1dfaf['markerName']);}_0x1a30c0||_0x4cc3c9||!_0x54ce73||_0x355aab(_0x54ce73);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2abb1c,_0x180a29,_0x6000ef)=>{const _0x3911b6=_0x6000ef['mapper']['markerNameToElements'](_0x180a29['markerName']);if(_0x3911b6){for(const _0x425e2d of _0x3911b6)(_0x425e2d['hasClass']('ck-suggestion-marker-split')||_0x425e2d['hasClass']('ck-suggestion-marker-merge'))&&(_0x6000ef['mapper']['unbindElementFromMarkerName'](_0x425e2d,_0x180a29['markerName']),_0x6000ef['writer']['remove'](_0x425e2d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x6744bf,_0x4fd847,_0x414bc7)=>{const _0x6ccbf2=_0x4fd847['markerName']['split'](':')[0x1],_0x279854=this['_getChangeFromId'](_0x6ccbf2);if(!_0x279854)return null;const _0x476acd='add'==_0x279854['type']?'split':'merge';if(_0x414bc7['consumable']['test'](_0x4fd847['markerRange'],_0x6744bf['name']))for(const _0x159c63 of _0x4fd847['markerRange']['getItems']()){if(!_0x159c63['is']('element','softBreak'))continue;const _0x1de312=_0x414bc7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x476acd}),_0x504925=_0x414bc7['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x159c63));_0x279854['data']['isSuggestion']&&_0x414bc7['writer']['addClass']('ck-suggestion-marker-'+_0x476acd+'-new',_0x1de312),this['activeChange']==_0x279854&&_0x414bc7['writer']['addClass']('ck-suggestion-marker--active',_0x1de312),_0x414bc7['writer']['insert'](_0x504925,_0x1de312),_0x414bc7['mapper']['bindElementToMarker'](_0x1de312,_0x4fd847['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4d21c5=>{for(const _0x5dc5fa of this['editor']['model']['document']['getRootNames']()){const _0x513aa9=this['editor']['model']['document']['getRoot'](_0x5dc5fa),_0x330953=this['editor']['editing']['view']['document']['getRoot'](_0x5dc5fa);if(_0x330953){const _0x185be6=_0x513aa9['getAttribute']('revisionHistoryAttachChange');if(_0x4d21c5['removeAttribute']('data-change-id',_0x330953),_0x4d21c5['removeClass']('ck-revision-history-root-add',_0x330953),_0x4d21c5['removeClass']('ck-revision-history-root-remove',_0x330953),_0x4d21c5['removeClass']('ck-revision-history-root--active',_0x330953),_0x185be6){const _0x2160cd=this['_getChangeFromId'](_0x185be6);if(!_0x2160cd)return null;_0x4d21c5['setAttribute']('data-change-id',_0x185be6,_0x330953),_0x4d21c5['addClass']('ck-revision-history-root-'+_0x2160cd['type'],_0x330953),this['activeChange']==_0x2160cd&&_0x4d21c5['addClass']('ck-revision-history-root--active',_0x330953);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x53d0df=>'revision-comment:'+_0x53d0df,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x32bcc7=>'revision-suggestion:'+_0x32bcc7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x52a965=>({'name':'suggestion:'+_0x52a965,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x318e7e=>{const _0x40ee6b=_0x318e7e['markerName']['split'](':')[0x1];return'insertion'!=_0x40ee6b&&'deletion'!=_0x40ee6b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x40ee6b]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x413906,_0xb048d7,_0xa6ee4d)=>{const _0x22c5b2=_0xa6ee4d['mapper']['markerNameToElements'](_0xb048d7['markerName']);if(_0x22c5b2){for(const _0x478de9 of _0x22c5b2)_0x478de9['is']('uiElement')&&(_0xa6ee4d['mapper']['unbindElementFromMarkerName'](_0x478de9,_0xb048d7['markerName']),_0xa6ee4d['writer']['remove'](_0x478de9));}},{'priority':'high'});}['_getChangeFromId'](_0x43c8fa){return this['_changeIdToChange']['get'](_0x43c8fa);}['_getViewForChange'](_0x5998b5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5998b5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb25f9b,_0x330ba6,_0x43cf3f,_0x4b790e)=>{_0x4b790e&&this['_balloon']['remove'](_0x4b790e),_0x43cf3f&&(this['_balloon']['add']({'view':_0x43cf3f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x39783d=this['editor']['editing'],_0x2bd70d=this['_getChangeFromId'](_0x43cf3f['changeId']);let _0x187996;if(_0x2bd70d['data']['isOnRoot']){const _0x320466=_0x39783d['view']['getDomRoot'](_0x2bd70d['rootName']);_0x187996=Array['from'](_0x320466['getClientRects']());}else{const _0x45de43=this['editor']['model']['markers']['get']('revision:'+_0x43cf3f['changeId']);_0x187996=Array['from'](_0x39783d['mapper']['markerNameToElements'](_0x45de43['name']))['map'](_0x478d6b=>_0x39783d['view']['domConverter']['mapViewToDom'](_0x478d6b))['map'](_0x17e664=>Array['from'](_0x17e664['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x187996[0x0];return _0x187996['find'](_0x48e965=>_0x48e965['top']-0x3<=this['_activeViewTarget']['y']&&_0x48e965['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x48e965['left']-0x3<=this['_activeViewTarget']['x']&&_0x48e965['right']+0x3>=this['_activeViewTarget']['x'])||_0x187996[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26ef4e,_0x2aa6d0,_0x4b2c49,_0x73f238)=>{this['activeView']=_0x4b2c49?this['_getViewForChange'](_0x4b2c49):null,this['editor']['model']['change'](()=>{const _0x156958=this['editor']['editing'];_0x73f238&&(_0x73f238['data']['isOnRoot']?_0x156958['view']['change'](_0x1be485=>{_0x1be485['removeClass']('ck-revision-history-root--active',_0x156958['view']['document']['getRoot'](_0x73f238['rootName']));}):_0x156958['reconvertMarker']('revision:'+_0x73f238['id'])),_0x4b2c49&&(_0x4b2c49['data']['isOnRoot']?_0x156958['view']['change'](_0x158831=>{_0x158831['addClass']('ck-revision-history-root--active',_0x156958['view']['document']['getRoot'](_0x4b2c49['rootName']));}):_0x156958['reconvertMarker']('revision:'+_0x4b2c49['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1a4b16,_0x43b7d1)=>{if(this['activeChange'])return;const _0x5dd0b2=this['_findChangeIdFromDomTarget'](_0x43b7d1['target']),_0x4ce3f8=this['_changeIdToChange']['get'](_0x5dd0b2);_0x4ce3f8?(this['_activeViewTarget']={'x':_0x43b7d1['domEvent']['x'],'y':_0x43b7d1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4ce3f8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5ea566,_0x586718)=>{const _0x4eb3d6=this['_findChangeIdFromDomTarget'](_0x586718['target']),_0x53c33a=this['_changeIdToChange']['get'](_0x4eb3d6);_0x53c33a?(this['_activeViewTarget']={'x':_0x586718['domEvent']['x'],'y':_0x586718['domEvent']['y']},_0x53c33a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x53c33a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3aeef2){do{const _0x1b348d=_0x3aeef2['getAttribute']('data-change-id');if(_0x1b348d)return _0x1b348d;_0x3aeef2=_0x3aeef2['parent'];}while(_0x3aeef2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2d3ae1=>{for(const _0x1dbcd6 of this['editor']['model']['markers'])_0x2d3ae1['removeMarker'](_0x1dbcd6);});}}function tt(_0x3e2a98,_0x197889){return(_0x48a59a,_0x240dd6,_0x28d7bd)=>{if(!_0x28d7bd['consumable']['test'](_0x240dd6['markerRange'],_0x48a59a['name']))return;const _0x4600a7=_0x240dd6['markerRange']['getWalker'](),_0x1da1c0=_0x240dd6['markerRange']['start'],_0x2ab828=_0x3e2a98['model']['schema'];let _0x1bffa9=null,_0xa5ab41=null,_0x2baa1f=!0x1,_0x57ed15=!0x1;for(const _0x46fbdb of _0x4600a7){const _0x425183=_0x46fbdb['item'];_0x2baa1f=_0x2baa1f||_0x2ab828['isContent'](_0x425183);const _0x55dbd0=_0x28d7bd['mapper']['toViewElement'](_0x425183);if(_0x55dbd0&&_0x55dbd0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46fbdb['type']&&(_0x2ab828['isBlock'](_0x425183)&&!_0x2ab828['isLimit'](_0x425183)&&(_0x425183['nextSibling']||_0x1da1c0['isAtEnd']?_0x1bffa9&&_0x1bffa9['parent']==_0x425183||(_0x1bffa9=_0x425183,_0x3579a2(_0x46fbdb['previousPosition']),_0x57ed15=!0x0):_0xa5ab41=_0xa5ab41||_0x46fbdb['previousPosition']));}function _0x3579a2(_0x1aeef2){const _0x72f007=_0x28d7bd['mapper']['toViewPosition'](_0x1aeef2),_0x5bb173=_0x28d7bd['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x197889});_0x28d7bd['writer']['insert'](_0x72f007,_0x5bb173),_0x28d7bd['mapper']['bindElementToMarker'](_0x5bb173,_0x240dd6['markerName']);}_0x2baa1f||_0x57ed15||!_0xa5ab41||_0x3579a2(_0xa5ab41);};}class yt extends _0x5873b3{constructor(_0x2b2760){super(_0x2b2760);const _0x11b6f1=_0x2b2760['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x11b6f1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x11b6f1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1ff298=this['editor'],_0x2a527c=_0x1ff298['plugins']['get'](d),_0xf74f2e=_0x2a527c['isReady']?_0x2a527c['diff']['newRevisionId']:null;_0x1ff298['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xf74f2e);}['refresh'](){const {isReady:_0x39b491,isEnabled:_0x5cf95b}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x39b491&&_0x5cf95b;}}class bt extends _0x5873b3{['_step'];constructor(_0x55c7f2,{direction:_0x87a169}){super(_0x55c7f2);const _0x424c2f=_0x55c7f2['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x87a169?0x1:-0x1,this['listenTo'](_0x424c2f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x424c2f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x424c2f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xcf02a7=this['editor'],_0x4cb622=_0xcf02a7['plugins']['get'](d),{isNavigationMode:_0x3ecc20,currentChangeNumber:_0x457ecc}=_0x4cb622;let _0x5284fb;if(_0x4cb622['activeChange']=_0x3ecc20?_0x4cb622['diff']['changes']['get'](_0x457ecc+this['_step']):_0x4cb622['diff']['changes']['first'],_0x4cb622['activeChange']['data']['isOnRoot'])_0x5284fb=_0xcf02a7['editing']['view']['getDomRoot'](_0x4cb622['activeChange']['rootName']);else{const _0x200224=_0xcf02a7['model']['markers']['get']('revision:'+_0x4cb622['activeChange']['id']);_0x5284fb=_0x478fd0(_0xcf02a7['editing'],_0x200224);}_0x5a980a({'target':_0x5284fb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x56f37c,currentChangeNumber:_0x595101,numberOfChanges:_0x3ef2d2,isReady:_0x17f12e,isEnabled:_0x50d637}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x50d637&&_0x17f12e&&_0x3ef2d2)&&(!_0x56f37c||(0x1===this['_step']?_0x595101<_0x3ef2d2-0x1:_0x595101>0x0));}}class _i extends _0x5ef80d{constructor(_0x1d26c6){super(_0x1d26c6);const _0x235fe3=this['bindTemplate'],_0x387659=new _0x4d329d(_0x1d26c6),_0x44e6b2=new _0x4d329d(_0x1d26c6);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',(_0x5b9466,_0x90bc64)=>_0x5b9466&&_0x90bc64>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ad484,_0x5f1cc2,_0x3de941,_0x1d78cc)=>{if(!_0x5ad484)return R(_0x1d26c6,'Loading...');if(!_0x3de941)return R(_0x1d26c6,'No\x20changes');const _0x1e5737=R(_0x1d26c6,'NUMBER_OF_CHANGES',_0x3de941);return _0x1d78cc?R(_0x1d26c6,'X_OF_Y_CHANGES',[_0x5f1cc2+0x1,_0x3de941]):_0x1e5737;}),_0x387659['set']({'label':R(_0x1d26c6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x44e6b2['set']({'label':R(_0x1d26c6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x387659['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x44e6b2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x387659['on']('execute',()=>this['fire']('execute','backward')),_0x44e6b2['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',_0x235fe3['if']('_isStatusLabelVisible','ck-hidden',_0x54599b=>!_0x54599b)]},'children':[{'text':_0x235fe3['to']('isNavigationMode',_0x2ed2da=>_0x2ed2da?R(_0x1d26c6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1d26c6,'Total')+':\x20')}]},{'text':_0x235fe3['to']('_statusText')}]},new _0x5c36e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x387659,_0x44e6b2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3472f2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2445d6=this['editor']['editing']['view'];_0x2445d6['change'](_0x273112=>{for(const _0x36cd75 of _0x2445d6['document']['roots'])_0x273112['addClass'](ce,_0x36cd75);});}['hide'](){const _0x1d4d93=this['editor']['editing']['view'];_0x1d4d93['change'](_0xccc915=>{for(const _0x1c02de of _0x1d4d93['document']['roots'])_0xccc915['removeClass'](ce,_0x1c02de);});}}class m extends _0x3472f2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5c9a41=this['editor'],_0x527d82=_0x5c9a41['plugins']['get'](d),_0x2152d6=_0x5c9a41['plugins']['get'](le);_0x5c9a41['ui']['componentFactory']['add']('exitToEditing',_0x50ff26=>{const _0x2b9c4b=new _0x4d329d(_0x50ff26);return _0x2b9c4b['set']({'label':R(_0x50ff26,'Back\x20to\x20editing'),'icon':_0x3b2de1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2b9c4b,'execute',()=>{_0x5c9a41['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2b9c4b;}),_0x5c9a41['ui']['componentFactory']['add']('restoreRevision',_0x296bbc=>{const _0x2aac08=new _0x4d329d(_0x296bbc);return _0x2aac08['set']({'label':R(_0x296bbc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2aac08['bind']('isEnabled')['to'](_0x5c9a41['commands']['get']('restoreRevision')),this['listenTo'](_0x2aac08,'execute',()=>_0x5c9a41['execute']('restoreRevision')),_0x2aac08;}),_0x5c9a41['ui']['componentFactory']['add']('changesNavigation',_0x32f6e7=>{const _0x1f1b9b=new _i(_0x32f6e7),_0x356884=_0x5c9a41['commands']['get']('showPreviousChange'),_0x46162c=_0x5c9a41['commands']['get']('showNextChange');return _0x1f1b9b['bind']('isBackwardNavigationEnabled')['to'](_0x356884,'isEnabled'),_0x1f1b9b['bind']('isForwardNavigationEnabled')['to'](_0x46162c,'isEnabled'),_0x1f1b9b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x527d82),this['listenTo'](_0x1f1b9b,'execute',(_0x4295ed,_0x40472f)=>{_0x5c9a41['execute']('forward'===_0x40472f?'showNextChange':'showPreviousChange');}),_0x1f1b9b;}),_0x2152d6['show'](),_0x527d82['on']('change:isReady',(_0x55d16c,_0x3565bd,_0x27df6a)=>{_0x27df6a?_0x2152d6['hide']():_0x2152d6['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x36909e,_0x375e7e){super(_0x36909e,_0x375e7e);const _0x4ce87f=this['bindTemplate'];this['set']({'label':R(_0x36909e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x36909e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ce87f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x754d99=this['fieldView']['element'];this['_tooltipString']=_0x754d99['scrollWidth']>_0x754d99['clientWidth']&&_0x754d99['value']||'';}}class ti extends _0x5ef80d{constructor(_0x1bbd7a,_0x15db2d,_0x48eeb9){super(_0x1bbd7a);const _0x3c4aec=new _0x549a8e();_0x3c4aec['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x422822=['ck','ck-revision-history-sidebar__revision-author'];_0x48eeb9&&_0x422822['push']('ck-revision-history-sidebar__revision-author_creator');const _0x9ed7dc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1bbd7a,_0x48eeb9?'Revision\x20creator':'Revision\x20author')},'children':[_0x3c4aec,_0x15db2d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x422822},'children':_0x9ed7dc});}}function ni(_0x36e55f,_0x2e3635){const _0x3c6593=_0x36e55f['bindTemplate'],_0x78644=_0x36e55f['locale'],_0x4bc058=_0xea3632(_0x78644);_0x4bc058['panelPosition']='sw';const _0x489998=function(_0x1b0bb5,_0x47edc5){const _0x5e7e94=function(_0x3a50d5,_0x5848a8){const _0x124545=_0x3a50d5['locale'],_0x54db85={'Compare\x20against\x20selected':R(_0x124545,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x124545,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x124545,'Restore\x20this\x20revision')};return _0x5848a8['map'](_0x241ed6=>{const _0x939ced=_0x54db85[_0x241ed6['name']];return _0x939ced&&_0x939ced!==_0x241ed6['name']&&(_0x241ed6['name']=_0x939ced),_0x241ed6;});}(_0x1b0bb5,_0x47edc5),_0x39f9df=new _0x484e70();for(const _0x4bdaeb of _0x5e7e94){const _0x3a680b={'type':'button','model':new to({'label':_0x4bdaeb['name'],'class':_0x4bdaeb['class'],'withText':!0x0,'role':'menuitem','_action':_0x4bdaeb['action']})};_0x3a680b['model']['bind']('isEnabled')['to'](_0x1b0bb5,'isActionsDropdownOpen',_0x27bbc0=>'function'!=typeof _0x4bdaeb['isEnabled']||(!_0x27bbc0||_0x4bdaeb['isEnabled'](_0x1b0bb5))),_0x39f9df['add'](_0x3a680b);}return _0x39f9df;}(_0x36e55f,_0x2e3635);return _0x36e55f['bind']('isActionsDropdownOpen')['to'](_0x4bc058,'isOpen'),_0x4bc058['buttonView']['set']({'label':R(_0x78644,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b2de1['threeVerticalDots']}),_0x4bc058['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c6593['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c6593['to'](_0x3b8258=>_0x3b8258['stopPropagation']())}}),_0x4bc058['on']('execute',_0x223ec3=>{_0x36e55f['isReady']&&'function'==typeof _0x223ec3['source']['_action']&&_0x223ec3['source']['_action'](_0x36e55f);}),_0x4b64ea(_0x4bc058,_0x489998,{'role':'menu'}),_0x4bc058['listenTo'](_0x36e55f,'change:isActionsDropdownOpen',(_0x17e42f,_0x3179cc,_0x4d0fec)=>{if(_0x4d0fec)for(const _0x507a29 of _0x4bc058['listView']['items']){const _0x259b70=_0x507a29['children']['first'],_0x1df80d=_0x2e3635['find'](_0x2fd38d=>_0x2fd38d['action']===_0x259b70['_action'])['isVisible'];_0x507a29['isVisible']=void 0x0===_0x1df80d||_0x1df80d(_0x36e55f);}}),_0x4bc058;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x12fed1(_0x5ef80d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3cc6c1,_0x2041d0,_0x4c3f8b,_0x1cd55c){super(_0x3cc6c1);const _0x549c3f=this['bindTemplate'],_0x69279b=function(_0x91b214,_0x564108){const _0x166f62=Array['from'](_0x564108['authors'])['filter'](_0x3d200e=>_0x3d200e!=_0x564108['creator']);return _0x564108['creator']&&_0x166f62['unshift'](_0x564108['creator']),_0x166f62['map'](_0xb1e642=>new ti(_0x91b214,_0xb1e642,_0xb1e642==_0x564108['creator']));}(_0x3cc6c1,_0x2041d0);this['id']=_0x2041d0['id'],this['_revision']=_0x2041d0,this['_requireRevisionName']=_0x1cd55c,this['bind']('name','createdAt')['to'](_0x2041d0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2cd56d=>{return _0x29e0af=_0x3cc6c1['uiLanguage'],(_0x359b16=_0x2cd56d)['toLocaleDateString'](_0x29e0af,{'month':'long','day':'numeric'})+',\x20'+_0x359b16['toLocaleTimeString'](_0x29e0af,{'hour':'numeric','minute':'numeric'});var _0x29e0af,_0x359b16;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3cc6c1,_0x159df2),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x70a2b4=>_0x70a2b4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2aa310,_0x20f015)=>_0x2aa310&&_0x20f015),this['revisionActionsView']=_0x4c3f8b&&_0x4c3f8b['length']?ni(this,_0x4c3f8b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x549c3f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x549c3f['if']('isEnabled','ck-disabled',_0x46a09d=>!_0x46a09d),_0x549c3f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x549c3f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x549c3f['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':_0x549c3f['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':_0x69279b}]},this['revisionActionsView']],'on':{'click':_0x549c3f['to'](_0x4cec1a=>{_0x4cec1a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1f7d0f=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1f7d0f,'change',()=>{this['_requireRevisionName']&&!_0x1f7d0f['value']||this['fire']('setName',{'id':this['id'],'name':_0x1f7d0f['value']}),_0x1f7d0f['value']||(_0x1f7d0f['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x3c2014,_0x8a4d91){const _0x44f4c1=_0x3e51c8['fromJSDate'](_0x3c2014)['setLocale'](_0x8a4d91),_0x586c2a=_0x3e51c8['local'](),_0x47a0c9=_0x586c2a['minus']({'days':0x1})['startOf']('day');let _0x442484,_0x4c6ce7;return _0x44f4c1['hasSame'](_0x586c2a,'day')?(_0x442484=_0x44f4c1['startOf']('day')['toJSDate'](),_0x4c6ce7=_0x44f4c1['toRelativeCalendar']()):_0x44f4c1['hasSame'](_0x47a0c9,'day')?(_0x442484=_0x47a0c9['toJSDate'](),_0x4c6ce7=_0x44f4c1['toRelativeCalendar']()):_0x44f4c1['hasSame'](_0x586c2a,'week')?(_0x442484=_0x44f4c1['startOf']('week')['toJSDate'](),_0x4c6ce7=_0x44f4c1['weekdayLong']||''):_0x44f4c1['hasSame'](_0x586c2a,'year')?(_0x442484=_0x44f4c1['startOf']('month')['toJSDate'](),_0x4c6ce7=_0x44f4c1['monthLong']||''):(_0x442484=_0x44f4c1['startOf']('year')['toJSDate'](),_0x4c6ce7=String(_0x44f4c1['year'])),{'startDate':_0x442484,'localizedPeriodName':_0x4c6ce7};}class mi extends _0x5ef80d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x36ec19,_0x4501dc,_0x37b636,_0x42d125){super(_0x36ec19);const _0x36c210=di(_0x4501dc,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4501dc,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x37b636,this['_requireRevisionName']=_0x42d125,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':_0x36c210}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3fd6d4){const _0x2335b3=new ai(this['locale'],_0x3fd6d4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2335b3);}['removeRevision'](_0x167c02){const _0x269555=this['revisionViews']['find'](_0x5e21a3=>_0x5e21a3['id']===_0x167c02['id']);this['revisionViews']['remove'](_0x269555);}}class as extends _0x5ef80d{constructor(_0x127f5b){super(_0x127f5b);const _0x484058=new _0x549a8e();_0x484058['content']=_0x3b2de1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x484058,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x127f5b,'Revision\x20history')]}]});}}class ci extends _0x5ef80d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xad02fe,_0x599459,_0x39baae,_0x352148){super(_0xad02fe);const _0x5761fa=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x599459,this['_revisionActions']=_0x39baae,this['_requireRevisionName']=_0x352148,this['on']('select',(_0x30d10d,_0x2b9f5f)=>{this['fire']('revisionSelected',_0x2b9f5f);}),this['on']('setName',(_0x5178dc,_0x188b91)=>{this['fire']('revisionSetName',_0x188b91);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xad02fe),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5761fa['if']('isEnabled','ck-disabled',_0x5bb0c5=>!_0x5bb0c5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f9634 of this['_revisions'])this['_addRevision'](_0x2f9634);this['_revisions']['on']('add',(_0x43f816,_0x3d4114)=>{this['_addRevision'](_0x3d4114);}),this['_revisions']['on']('remove',(_0x85c910,_0x2416b2)=>{this['_removeRevision'](_0x2416b2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4ada46=>_0x4ada46['revisionViews']['map'](_0x38a0a1=>_0x38a0a1))['flat']();}['selectRevision'](_0x386e66){for(const _0x573115 of this['revisionViews'])_0x386e66&&_0x386e66['id']===_0x573115['id']?_0x573115['select']():_0x573115['deselect']();}['highlightRevisions'](_0x204dbf){for(const _0x1864a4 of this['revisionViews'])_0x204dbf['some'](({id:_0x5346fa})=>_0x5346fa===_0x1864a4['id'])?_0x1864a4['highlight']():_0x1864a4['unhighlight']();}['_addRevision'](_0x26e714){const _0x4e643d=di(_0x26e714['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4455f0=this['timePeriodViews']['get'](0x0);_0x4455f0&&_0x4455f0['startDate']['getTime']()===_0x4e643d['getTime']()||(_0x4455f0=new mi(this['locale'],_0x4e643d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4455f0)),_0x4455f0['addRevision'](_0x26e714);}['_removeRevision'](_0x12e499){const _0xb5bed4=di(_0x12e499['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb5bed4)['removeRevision'](_0x12e499);}['_getTimePeriodViewByStartDate'](_0x3e43bf){return this['timePeriodViews']['find'](_0x4f6f3a=>_0x4f6f3a['startDate']['getTime']()===_0x3e43bf['getTime']());}}class g extends _0x3472f2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4302bb,uid as _0x117971,Collection as _0x217079,logWarning as _0x35cc54,FocusTracker as _0x2136d6,KeystrokeHandler as _0xdc9f35,scrollViewportToShowTarget as _0xc8b0a1,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x4394a1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4df95c,set as _0x452a3d,unset as _0x1fa52c,isEqual as _0x305277}from'lodash-es';import{Plugin as _0x18ce1a,PendingActions as _0x4c3947,icons as _0x4c8f5a,Command as _0x12cb3f,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x29871c,getMarkerDomElement as _0x57bd90,ConfirmMixin as ti,sanitizeEditorConfig as _0x5b1398}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a3b60,ViewText as _0x2e650f,ViewElement as _0x2f8075,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x2bc34a,ViewAttributeElement as _0x51f8c0,ViewEmptyElement as _0x2d4fc1,ViewRawElement as _0x2adcbe,ViewUIElement as _0x267212,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5ce5c8,submitHandler as _0x3d4ebe,LabeledFieldView as _0x4e9da2,createLabeledInputText as _0x1f4481,createDropdown as _0x397b70,ListView as _0xb2a828,ListItemView as _0x17c68a,ButtonView as te,MenuBarMenuView as _0x4f8c67,MenuBarMenuListView as _0x141661,MenuBarMenuListItemView as _0x2606da,MenuBarMenuListItemButtonView as _0x3d49c4,ContextualBalloon as _0x34fe8c,ToolbarSeparatorView as _0x2a8d19,IconView as _0x53e56c,addListToDropdown as to,ViewModel as _0x2de829,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2c8970}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4302bb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4702dd){super(),this['id']=_0x4702dd['id']||_0x117971(),this['creator']=_0x4702dd['creator']||null,this['authors']=_0x4702dd['authors']||[],this['diffData']=_0x4702dd['diffData']||null,this['toVersion']=_0x4702dd['toVersion']||0x0,this['fromVersion']=_0x4702dd['fromVersion']||0x0,this['set']('name',_0x4702dd['name']||''),this['set']('createdAt',_0x4702dd['createdAt']||new Date()),this['set']('attributes',_0x4702dd['attributes']||{});}['setName'](_0xf30263){this['_update']({'name':_0xf30263});}['setAttribute'](_0x21897a,_0x2b5021){const _0x3f0878=_0x4df95c(this['attributes']);_0x452a3d(_0x3f0878,_0x21897a,_0x2b5021),this['_update']({'attributes':_0x3f0878});}['removeAttribute'](_0x2cd231){const _0x133bb1=_0x4df95c(this['attributes']);_0x1fa52c(_0x133bb1,_0x2cd231),this['_update']({'attributes':_0x133bb1});}['_update'](_0x404f45,_0x1a277c=!0x1){let _0x2cb7a8=!0x1;const _0x5e0eb0={'id':this['id']},_0x6ea5f6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x20ad98 of _0x6ea5f6){const _0x1e58bf=_0x404f45[_0x20ad98];void 0x0!==_0x1e58bf&&_0x1e58bf!==this[_0x20ad98]&&(this[_0x20ad98]=_0x1e58bf,_0x5e0eb0[_0x20ad98]=_0x1e58bf,_0x2cb7a8=!0x0);}_0x2cb7a8&&(_0x5e0eb0['authors']&&(_0x5e0eb0['authorsIds']=_0x5e0eb0['authors']['map'](_0x426060=>_0x426060['id']),delete _0x5e0eb0['authors']),this['fire']('_update',_0x5e0eb0,_0x1a277c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3f080b=>_0x3f080b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x18ce1a{['_revisions'];static get['requires'](){return[_0x29871c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf8f041){super(_0xf8f041),this['_revisions']=new _0x217079();}['afterInit'](){!async function(_0x355a93){const _0x1a3db2=_0x4e063e([0x50,0x48,0x79,0x51,0x59,0x44,0x53,0x6a,0x6f,0x66,0x4a,0x72,0x4b,0x36,0x5a,0x61,0x42,0x37,0x62,0x58,0x78,0x65,0x39,0x54,0x6d,0x4d,0x47,0x6b,0x4e,0x55,0x71,0x46,0x57,0x45,0x34,0x35,0x75,0x30,0x64,0x63,0x43,0x31,0x49,0x74,0x69,0x32,0x41,0x33,0x52,0x76,0x68,0x6c,0x70,0x73,0x4f,0x67,0x4c,0x6e,0x38,0x7a,0x77,0x56]),_0x2e7dbd=0xeb829,_0x54818f=0x5f76acae,_0x54302b=0x5f71f426^_0x54818f,_0x5e1176=window[_0x4e063e([0x44,0x61,0x74,0x65])][_0x4e063e([0x6e,0x6f,0x77])](),_0x47b170=_0x355a93[_0x4e063e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x237b88=new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325f07=>{_0x47b170[_0x4e063e([0x6f,0x6e,0x63,0x65])](_0x4e063e([0x72,0x65,0x61,0x64,0x79]),_0x325f07);}),_0x32f5f9={[_0x4e063e([0x6b,0x74,0x79])]:_0x4e063e([0x45,0x43]),[_0x4e063e([0x75,0x73,0x65])]:_0x4e063e([0x73,0x69,0x67]),[_0x4e063e([0x63,0x72,0x76])]:_0x4e063e([0x50,0x2d,0x32,0x35,0x36]),[_0x4e063e([0x78])]:_0x4e063e([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]),[_0x4e063e([0x79])]:_0x4e063e([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]),[_0x4e063e([0x61,0x6c,0x67])]:_0x4e063e([0x45,0x53,0x32,0x35,0x36])},_0x5ee540=_0x47b170[_0x4e063e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e063e([0x67,0x65,0x74])](_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bdf74(){let _0x4aa793,_0x2dd9b1=null,_0x7f060c=null;try{if(_0x5ee540==_0x4e063e([0x47,0x50,0x4c]))return _0x4e063e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4aa793=_0x3dd066(),!_0x4aa793)return _0x4e063e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4aa793[_0x4e063e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7f060c=_0x306351(_0x4aa793[_0x4e063e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4aa793[_0x4e063e([0x6a,0x74,0x69])])),await _0x34b965()?_0x584024()?_0x46678f()?_0x4e063e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46843f()?(_0x4aa793[_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e063e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dd9b1=_0x275aa6(_0x4e063e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4aa793[_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e063e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2dd9b1=_0x275aa6(_0x4e063e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4aa793[_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e063e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2dd9b1=_0x275aa6(_0x4e063e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46810f()):_0x4e063e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e063e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e063e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b8e98){return _0x4e063e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46678f(){const _0x479332=[_0x4e063e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e063e([0x74,0x72,0x69,0x61,0x6c])][_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aa793[_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e1176/0x3e8:0xe10*_0x54302b;return _0x4aa793[_0x4e063e([0x65,0x78,0x70])]<_0x479332;}function _0x584024(){const _0x1713b8=_0x4aa793[_0x4e063e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1713b8)return!0x1;if(_0x1713b8[_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e063e([0x2a])))return!0x0;if(_0x1713b8[_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e063e([0x52,0x48])))return!0x0;if(_0x1713b8[_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e063e([0x52,0x52,0x48]))){if(_0x5dfc74())return!0x0;if(_0x196d81()||_0x7926c0())return!0x0;}return!0x1;}function _0x46843f(){const _0x34087d=_0x4aa793[_0x4e063e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34087d||0x0==_0x34087d[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f7f83}=new URL(window[_0x4e063e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34087d[_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f7f83))return!0x0;const _0x6a47b=_0x2f7f83[_0x4e063e([0x73,0x70,0x6c,0x69,0x74])](_0x4e063e([0x2e]));return _0x34087d[_0x4e063e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ce1ec=>_0x4ce1ec[_0x4e063e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e063e([0x2a])))[_0x4e063e([0x6d,0x61,0x70])](_0x35aa31=>_0x35aa31[_0x4e063e([0x73,0x70,0x6c,0x69,0x74])](_0x4e063e([0x2e])))[_0x4e063e([0x73,0x6f,0x6d,0x65])](_0x54c5e9=>_0x6a47b[_0x4e063e([0x65,0x76,0x65,0x72,0x79])]((_0x561419,_0xa5b88e)=>_0x54c5e9[_0xa5b88e]===_0x561419||_0x54c5e9[_0xa5b88e]===_0x4e063e([0x2a])));}function _0x46810f(){return _0x2dd9b1&&_0x7f060c?new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f6b0b,_0x1d60a7)=>{_0x2dd9b1[_0x4e063e([0x74,0x68,0x65,0x6e])](_0x1f6b0b,_0x1d60a7),_0x7f060c[_0x4e063e([0x74,0x68,0x65,0x6e])](_0x4d40c8=>{_0x4d40c8!=_0x4e063e([0x56,0x61,0x6c,0x69,0x64])&&_0x1f6b0b(_0x4d40c8);},_0x1d60a7);}):_0x2dd9b1||_0x7f060c||_0x4e063e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306351(_0x2b46c5,_0x414d58){return new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ef86=>{if(_0x377552())return _0x54ef86(_0x4e063e([0x56,0x61,0x6c,0x69,0x64]));_0xee2966(),_0x47b170[_0x4e063e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e063e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11294d=!0x1;const _0x23609f=_0x117971();function _0x34326d(_0x6fd523){return!!_0x6fd523&&(typeof _0x6fd523===_0x4e063e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6fd523===_0x4e063e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6fd523[_0x4e063e([0x74,0x68,0x65,0x6e])]===_0x4e063e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6fd523[_0x4e063e([0x63,0x61,0x74,0x63,0x68])]===_0x4e063e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5021a1(_0x4183cc){_0x590c5c(_0x4183cc)[_0x4e063e([0x74,0x68,0x65,0x6e])](_0x3866e0=>{if(!_0x3866e0||_0x3866e0[_0x4e063e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e063e([0x6f,0x6b]))return _0x4e063e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x483923(_0x4f7268(_0x23609f+_0x414d58))!=_0x3866e0[_0x4e063e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e063e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e063e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e063e([0x74,0x68,0x65,0x6e])](_0xfae67a=>(_0x197323(),_0xfae67a),()=>{const _0x3164da=_0x3da841();return null==_0x3164da?(_0x197323(),_0x4e063e([0x56,0x61,0x6c,0x69,0x64])):_0x4e063e(_0x5e1176-_0x3164da>(0x7b7a28ae^_0x54818f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e063e([0x74,0x68,0x65,0x6e])](_0x54ef86)[_0x4e063e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54ef86(_0x4e063e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f5199=0x5f40422e^_0x54818f;function _0x197323(){const _0x4f550f=_0x4e063e([0x6c,0x6c,0x63,0x74,0x2d])+_0x483923(_0x4f7268(_0x2b46c5)),_0x2de3fb=_0x2f1069(_0x483923(window[_0x4e063e([0x4d,0x61,0x74,0x68])][_0x4e063e([0x63,0x65,0x69,0x6c])](_0x5e1176/_0x3f5199)));window[_0x4e063e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e063e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f550f,_0x2de3fb);}function _0x3da841(){const _0x35e704=_0x4e063e([0x6c,0x6c,0x63,0x74,0x2d])+_0x483923(_0x4f7268(_0x2b46c5)),_0x139a2a=window[_0x4e063e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e063e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e704);return _0x139a2a?window[_0x4e063e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f1069(_0x139a2a),0x10)*_0x3f5199:null;}function _0x590c5c(_0x309f09){return new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x452949,_0x47d808)=>{_0x309f09[_0x4e063e([0x74,0x68,0x65,0x6e])](_0x452949,_0x47d808),window[_0x4e063e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47d808,0x5f77786e^_0x54818f);});}}_0x47b170[_0x4e063e([0x6f,0x6e])](_0x4e063e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x192e06,_0x2bc394)=>{if(_0x2bc394[0x0]!=_0x2b46c5)return _0x54ef86(_0x4e063e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bc394[0x1]={..._0x2bc394[0x1],[_0x4e063e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23609f};},{[_0x4e063e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e063e([0x68,0x69,0x67,0x68])}),_0x47b170[_0x4e063e([0x6f,0x6e])](_0x4e063e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1741c6=>{_0x34326d(_0x1741c6[_0x4e063e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11294d=!0x0,_0x5021a1(_0x1741c6[_0x4e063e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e063e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e063e([0x6c,0x6f,0x77])}),_0x237b88[_0x4e063e([0x74,0x68,0x65,0x6e])](()=>{_0x11294d||_0x54ef86(_0x4e063e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x377552(){return _0x47b170[_0x4e063e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e063e([0x76,0x69,0x65,0x77])][_0x4e063e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e063e([0x61,0x75,0x74,0x6f]);}function _0xee2966(){_0x47b170[_0x4e063e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e063e([0x76,0x69,0x65,0x77])][_0x4e063e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e063e([0x61,0x75,0x74,0x6f]);}}function _0x275aa6(_0x4be41b){const _0x378880=[new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2f60=>setTimeout(_0x2f2f60,0x5f7f9262^_0x54818f)),_0x237b88[_0x4e063e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x379a5a=>{const _0x1248c4=0x5f76aca9^_0x54818f,_0x342409=_0x355a93[_0x4e063e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x26e392(){_0x342409[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1248c4&&_0x379a5a();}_0x26e392(),_0x342409[_0x4e063e([0x6f,0x6e])](_0x4e063e([0x61,0x64,0x64]),_0x26e392);})),new window[(_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bc729=>{function _0x54359f(){for(const _0x4eae3c in window)if(window[_0x4e063e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4e063e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4eae3c))&&window[_0x4eae3c]==_0x2e7dbd)return _0x5bc729();_0x47b170[_0x4e063e([0x73,0x74,0x61,0x74,0x65])]!=_0x4e063e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4e063e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54359f,0x5f76bf26^_0x54818f);}_0xf63764(_0x4e063e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x54359f();})];return window[_0x4e063e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e063e([0x72,0x61,0x63,0x65])](_0x378880)[_0x4e063e([0x74,0x68,0x65,0x6e])](()=>_0x4be41b);}async function _0x3e3e2e(){if(await _0x237b88,_0xf63764(_0x4e063e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x158045=_0x355a93[_0x4e063e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x10bad4=_0x355a93[_0x4e063e([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])](_0x158045[_0x4e063e([0x69,0x64])]),_0x47b217=_0x4905e0(_0x4e063e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x47b217[_0x4e063e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x158045['id'],_0x10bad4?_0x10bad4['id']:null,!0x0),_0x47b217[_0x4e063e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4e063e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x47b217[_0x4e063e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x47b217[_0x4e063e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d3dee,void(_0x47b217[_0x4e063e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d3dee);}if(_0xf63764(_0x4e063e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x35c68b=_0x4905e0(_0x4e063e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x35c68b[_0x4e063e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4e063e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x35c68b[_0x4e063e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x35c68b[_0x4e063e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d3dee,_0x35c68b[_0x4e063e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d3dee;}_0x47b170[_0x4e063e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e063e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d3dee,_0x47b170[_0x4e063e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e063e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d3dee,_0x47b170[_0x4e063e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e063e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5dfc74(){return _0xf63764(_0x4e063e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4905e0(_0x4e063e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e063e([0x73,0x74,0x61,0x74,0x65])]==_0x4e063e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x196d81(){return _0xf63764(_0x4e063e([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 _0x7926c0(){return _0xf63764(_0x4e063e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1584d7(_0x505b2c){const _0x48ec24=_0x31b910();_0x47b170[_0x48ec24]=_0x4e063e([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])+_0x505b2c,_0x505b2c[_0x4e063e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4e063e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31b910()]=_0x2e7dbd),_0x505b2c!=_0x4e063e([0x56,0x61,0x6c,0x69,0x64])&&_0x3e3e2e();}function _0x31b910(){const _0x30d282=window[_0x4e063e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e063e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e063e([0x6e,0x6f,0x77])]())[_0x4e063e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e063e([0x2e]),'');let _0x314cf5=_0x4e063e([0x50]);for(let _0x3d02e9=0x0;_0x3d02e9<_0x30d282[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d02e9+=0x2){let _0x3ba03e=window[_0x4e063e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30d282[_0x4e063e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d02e9,_0x3d02e9+0x2));_0x3ba03e>=_0x1a3db2[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ba03e-=_0x1a3db2[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x314cf5+=_0x1a3db2[_0x3ba03e];}return _0x314cf5;}function _0x3dd066(){const _0x4420fb=_0x5ee540[_0x4e063e([0x73,0x70,0x6c,0x69,0x74])](_0x4e063e([0x2e]));if(0x3!=_0x4420fb[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bbab5(_0x4420fb[0x1]);function _0x5bbab5(_0x2b9f74){const _0x2cfa59=_0x572454(_0x2b9f74);return _0x2cfa59&&_0x504011()?_0x2cfa59:null;function _0x504011(){const _0x67cbde=_0x2cfa59[_0x4e063e([0x6a,0x74,0x69])],_0x27d9ef=window[_0x4e063e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x67cbde[_0x4e063e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x67cbde[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dd25d={..._0x2cfa59,[_0x4e063e([0x6a,0x74,0x69])]:_0x67cbde[_0x4e063e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x67cbde[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dd25d[_0x4e063e([0x76,0x63])],_0x4f7268(_0x4dd25d)==_0x27d9ef;}}}async function _0x34b965(){let _0x440be1=!0x0;try{const _0x1e9361=_0x5ee540[_0x4e063e([0x73,0x70,0x6c,0x69,0x74])](_0x4e063e([0x2e])),[_0x3dd8a3,_0xe1aaf9,_0x32e18a]=_0x1e9361;return _0x28f36a(_0x3dd8a3),await _0x5e884d(_0x3dd8a3,_0xe1aaf9,_0x32e18a),_0x440be1;}catch(_0x131940){return!0x1;}function _0x28f36a(_0x12c2c0){const _0x4e970d=_0x572454(_0x12c2c0);_0x4e970d&&_0x4e970d[_0x4e063e([0x61,0x6c,0x67])]==_0x4e063e([0x45,0x53,0x32,0x35,0x36])||(_0x440be1=!0x1);}async function _0x5e884d(_0x12d17c,_0x27a994,_0x5aba24){const _0xaa2031=window[_0x4e063e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e063e([0x66,0x72,0x6f,0x6d])](_0x12af0f(_0x5aba24),_0x826914=>_0x826914[_0x4e063e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ddd0=new window[(_0x4e063e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e063e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12d17c+_0x4e063e([0x2e])+_0x27a994),_0x309290=window[_0x4e063e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e063e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x309290)return;const _0x54cfa5=await _0x309290[_0x4e063e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e063e([0x6a,0x77,0x6b]),_0x32f5f9,{[_0x4e063e([0x6e,0x61,0x6d,0x65])]:_0x4e063e([0x45,0x43,0x44,0x53,0x41]),[_0x4e063e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e063e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e063e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x309290[_0x4e063e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e063e([0x6e,0x61,0x6d,0x65])]:_0x4e063e([0x45,0x43,0x44,0x53,0x41]),[_0x4e063e([0x68,0x61,0x73,0x68])]:{[_0x4e063e([0x6e,0x61,0x6d,0x65])]:_0x4e063e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54cfa5,_0xaa2031,_0x20ddd0)||(_0x440be1=!0x1);}}function _0x572454(_0x471d08){return _0x471d08[_0x4e063e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e063e([0x65,0x79]))?JSON[_0x4e063e([0x70,0x61,0x72,0x73,0x65])](_0x12af0f(_0x471d08)):null;}function _0x12af0f(_0x25c9f2){return window[_0x4e063e([0x61,0x74,0x6f,0x62])](_0x25c9f2[_0x4e063e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e063e([0x2b]))[_0x4e063e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e063e([0x2f])));}function _0x4f7268(_0x4aeea7){let _0x3bf310=0x1505;function _0x5bfe80(_0x4d53f6){for(let _0x305ffe=0x0;_0x305ffe<_0x4d53f6[_0x4e063e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x305ffe++){const _0x11d07c=_0x4d53f6[_0x4e063e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x305ffe);_0x3bf310=(_0x3bf310<<0x5)+_0x3bf310+_0x11d07c,_0x3bf310&=_0x3bf310;}}function _0xeddc22(_0x580bad){Array[_0x4e063e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x580bad)?_0x580bad[_0x4e063e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xeddc22):_0x580bad&&typeof _0x580bad==_0x4e063e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e063e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x580bad)[_0x4e063e([0x73,0x6f,0x72,0x74])]()[_0x4e063e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ab511,_0xa16792])=>{_0x5bfe80(_0x5ab511),_0xeddc22(_0xa16792);}):_0x5bfe80(window[_0x4e063e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x580bad));}return _0xeddc22(_0x4aeea7),_0x3bf310>>>0x0;}function _0x483923(_0x4afb0d){return _0x4afb0d[_0x4e063e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e063e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e063e([0x30]));}function _0x2f1069(_0x19610c){return _0x19610c[_0x4e063e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e063e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e063e([0x6a,0x6f,0x69,0x6e])]('');}function _0xf63764(_0x478776){return _0x47b170[_0x4e063e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e063e([0x68,0x61,0x73])](_0x478776);}function _0x4905e0(_0x2c080d){return _0x47b170[_0x4e063e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e063e([0x67,0x65,0x74])](_0x2c080d);}function _0x4d3dee(){}function _0x4e063e(_0x5caffc){return _0x5caffc['map'](_0x2658f0=>String['fromCharCode'](_0x2658f0))['join']('');}_0x1584d7(await _0x3bdf74());}(this);}['createRevision'](_0x230738){const _0x271384=this['editor']['plugins']['get']('Users');return new a({'id':_0x230738['id'],'name':_0x230738['name'],'creator':_0x230738['creatorId']?_0x271384['getUser'](_0x230738['creatorId']):null,'diffData':_0x230738['diffData']||_0x230738['data'],'authors':_0x230738['authorsIds']['map'](_0x4ccf14=>_0x271384['getUser'](_0x4ccf14)),'createdAt':new Date(_0x230738['createdAt']),'attributes':_0x230738['attributes'],'fromVersion':_0x230738['fromVersion'],'toVersion':_0x230738['toVersion']});}['addRevision'](_0x5241ce,_0x3a4b28=0x0){this['_revisions']['add'](_0x5241ce,_0x3a4b28);}['getRevision'](_0x4501a9){return this['_revisions']['get'](_0x4501a9);}['getRevisions'](_0x3babad={'toJSON':!0x1}){const _0x5b9f38=Array['from'](this['_revisions']);return _0x5b9f38['reverse'](),_0x3babad['toJSON']?_0x5b9f38['map'](_0xe90d50=>_0xe90d50['toJSON']()):_0x5b9f38;}['getIndex'](_0x3613da){return this['_revisions']['getIndex'](_0x3613da);}['getEarlierVisibleRevision'](_0x17a66e){const [,_0x55628a]=this['getRevisionsIterator'](_0x17a66e,{'direction':'earlier'});return _0x55628a;}['getLaterVisibleRevision'](_0x3cb303){const [,_0x13b17d]=this['getRevisionsIterator'](_0x3cb303,{'direction':'later'});return _0x13b17d;}['getRevisionsInDiff'](_0x131b2b){const _0x3e613f=[];for(const _0x5c0499 of this['getRevisionsIterator'](_0x131b2b['newRevisionId']))if(_0x3e613f['push'](_0x5c0499),_0x5c0499['id']===_0x131b2b['oldRevisionId'])break;return _0x3e613f;}*['getRevisionsIterator'](_0x21e587,{direction:_0x45da97='earlier',filter:_0x2ce6a5=()=>!0x0}={}){const _0x2f8e90='earlier'===_0x45da97?0x1:-0x1;let _0x4a3539=this['_revisions']['get'](_0x21e587),_0x2be0b1=this['getIndex'](_0x4a3539);for(yield _0x4a3539;_0x4a3539;){if(_0x2be0b1+=_0x2f8e90,_0x4a3539=this['getRevision'](_0x2be0b1),!_0x4a3539)return;_0x2ce6a5(_0x4a3539)&&(yield _0x4a3539);}}}function R(_0x58f4fd,_0x222fe2,_0x539dcb){const t=_0x58f4fd['t'];switch(_0x222fe2){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'},_0x539dcb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x539dcb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x2bc34a,'a':_0x51f8c0,'e':_0x2d4fc1,'r':_0x2adcbe,'u':_0x267212};class l extends _0x18ce1a{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29871c,j,_0x4c3947];}constructor(_0x85a6f9){super(_0x85a6f9),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1211fd=_0x117971();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1211fd},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xd9567c=this['repository']['getRevision'](0x0),_0x7f7553=_0xd9567c&&null===_0xd9567c['creator']?_0xd9567c:null;if(this['_continueCurrentRevision']=!!_0x7f7553&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x157f1d=this['_source']['getCurrentRevisionId'](),_0x50f86b=this['repository']['getRevision'](_0x157f1d);if(_0x50f86b)this['_startingVersion']=_0x50f86b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x42c0fe=this['_source']['history']['_operations']['find'](_0x34faa4=>!_0x34faa4['_isInit']),_0x334465=_0x42c0fe?_0x42c0fe['baseVersion']:this['_source']['history']['version'];_0xd9567c?(_0xd9567c['toVersion']<_0x334465&&_0xd9567c['_update']({'toVersion':_0x334465}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x7f7553['id'],this['_startingVersion']=_0x7f7553['fromVersion']):(this['_startingVersion']=_0xd9567c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x334465,this['_continueCurrentRevision']=!0x1);}}else _0x7f7553&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x7f7553['toVersion'],this['editor']['model']['document']['history']['version']),_0x7f7553['fromVersion']===_0x7f7553['toVersion']?(0x0!==_0x7f7553['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x7f7553['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x7f7553['id'],this['_startingVersion']=_0x7f7553['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',_0x26b7e6=>!_0x26b7e6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c66f4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31ff33;for(const _0x381602 in _0x3c66f4){const _0x29c64c=_0x381602,_0x3f63b3=_0x3c66f4[_0x29c64c];if('revisionHistoryLicenseKeyValid'==_0x3f63b3||'revisionHistoryLicenseKeyInvalid'==_0x3f63b3||'revisionHistoryLicenseKeyExpired'==_0x3f63b3||'revisionHistoryLicenseKeyDomainLimit'==_0x3f63b3||'revisionHistoryLicenseKeyNotAllowed'==_0x3f63b3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3f63b3||'revisionHistoryLicenseKeyTrialLimit'==_0x3f63b3||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3f63b3||'revisionHistoryLicenseKeyUsageLimit'==_0x3f63b3){delete _0x3c66f4[_0x29c64c],_0x31ff33=_0x3f63b3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x31ff33&&_0x3c66f4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x31ff33&&_0x3c66f4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x31ff33&&_0x3c66f4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x31ff33&&_0x3c66f4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x31ff33&&_0x3c66f4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x31ff33&&_0x3c66f4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x31ff33&&_0x3c66f4['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x31ff33&&_0x3c66f4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2d68a6=this['repository']['getRevision'](0x0),_0x27da13=await this['getRevisionDocumentData'](_0x2d68a6),_0x1ef6d6=await this['getRevisionRootsAttributes'](_0x2d68a6);this['_replaceEditorDataWithRevisionData'](_0x27da13,_0x1ef6d6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1ecca6){this['_source']=_0x1ecca6;}async['update'](){const _0x1f6ad6=await this['_source']['getLatestVersion']();if(_0x1f6ad6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2925c8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1f6ad6});_0x2925c8['authors']=_0x2925c8['authorsIds']['map'](_0x4410f1=>this['editor']['plugins']['get']('Users')['getUser'](_0x4410f1)),this['currentRevision']['_update'](_0x2925c8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3bfc9f={},_0x4a9c70=null){const _0x229343=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a9c70>this['currentRevision']['toVersion']&&(_0x4a9c70=null),null===_0x4a9c70&&(_0x4a9c70=await this['_source']['getLatestVersion']());const _0x38ab94=this['_getFromVersion'](_0x4a9c70),_0x7110b7=this['buildRevisionData']({'from':_0x38ab94,'to':_0x4a9c70});if(this['currentRevision']['toVersion']<_0x4a9c70){const _0x223426=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a9c70,'to':_0x4a9c70});_0x223426['authors']=[],_0x223426['authorsIds']=[],_0x223426['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x223426,!0x0),delete _0x223426['authors'],_0x229343['push'](_0x223426);}_0x3bfc9f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bfc9f['name']=_0x3bfc9f['name']||null,_0x3bfc9f['id']=_0x3bfc9f['id']||_0x117971(),_0x3bfc9f={..._0x3bfc9f,..._0x7110b7};const _0x393485=this['addRevisionData'](_0x3bfc9f);_0x229343['push'](_0x3bfc9f);const _0x43e68d=this['repository']['getIndex'](_0x393485);if(0x0!==_0x43e68d){const _0x155f9d=this['repository']['getRevision'](_0x43e68d-0x1);if(_0x155f9d['fromVersion']!==_0x4a9c70){const _0x5b557e=this['_revisionDataBuilder']['getData'](_0x4a9c70,_0x155f9d['toVersion']),_0x5ef4e7={'id':_0x155f9d['id'],'diffData':_0x5b557e['diffData'],'authorsIds':_0x5b557e['authorsIds'],'authors':_0x5b557e['authorsIds']['map'](_0x111f09=>this['editor']['plugins']['get']('Users')['getUser'](_0x111f09)),'fromVersion':_0x4a9c70};_0x155f9d===this['currentRevision']&&(_0x5ef4e7['createdAt']=new Date(_0x3bfc9f['createdAt']['getTime']()+0xa)),_0x155f9d['_update'](_0x5ef4e7,!0x0),delete _0x5ef4e7['authors'],_0x229343['push'](_0x5ef4e7);}}if(this['adapter']){for(const _0x3c7a00 of _0x229343)this['_bufferUpdate'](_0x3c7a00['id'],_0x3c7a00,!0x0);this['sendBufferedUpdates']();}return _0x393485;}['addRevisionData'](_0x1137e9){const _0x525d2c=this['repository']['createRevision'](_0x1137e9);return this['adapter']&&_0x525d2c['on']('_update',(_0x3ca639,_0x211c9a,_0x571234)=>{_0x571234||(this['_bufferUpdate'](_0x211c9a['id'],_0x211c9a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x525d2c,this['_findInsertionIndex'](_0x525d2c)),_0x525d2c;}async['getRevisionDocumentData'](_0x1e2010){await this['_loadRevisionData'](_0x1e2010);const _0xe90dea={};for(const _0x25f9fe in _0x1e2010['diffData']){if(_0x1e2010['diffData'][_0x25f9fe]['attachChange']&&!_0x1e2010['diffData'][_0x25f9fe]['attachChange']['isAttached'])continue;const _0x33ca32=this['_removeRevisionMarkers'](JSON['parse'](_0x1e2010['diffData'][_0x25f9fe]['insertions'])),_0x1cb02a=this['editor']['editing']['view']['document'],_0xb1a211=new _0x4a3b60(_0x1cb02a,_0x33ca32['map'](_0xa03445=>V(_0xa03445,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xe90dea[_0x25f9fe]=this['editor']['data']['processor']['toData'](_0xb1a211),this['editor']['data']['processor']['useFillerType']('default');}return _0xe90dea;}async['getRevisionRootsAttributes'](_0x439c62){await this['_loadRevisionData'](_0x439c62);const _0x4c7066={};for(const _0x20bc06 in _0x439c62['diffData'])_0x439c62['diffData'][_0x20bc06]['attachChange']&&!_0x439c62['diffData'][_0x20bc06]['attachChange']['isAttached']||(_0x4c7066[_0x20bc06]=_0x439c62['diffData'][_0x20bc06]['attributesAfter']||{});return _0x4c7066;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x142fd9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1f5b74=0x0;_0x1f5b74<_0x142fd9['length'];_0x1f5b74++){const _0x2b6c97=_0x142fd9[_0x1f5b74];let _0x5a1156=!0x1;for(const _0x2de85e of Object['keys'](_0x2b6c97))void 0x0===_0x2b6c97[_0x2de85e]?delete _0x2b6c97[_0x2de85e]:'id'!==_0x2de85e&&(_0x5a1156=!0x0);_0x5a1156||(_0x142fd9[_0x1f5b74]=null);}if(_0x142fd9=_0x142fd9['filter'](_0x43534a=>null!==_0x43534a),!_0x142fd9['length'])return;for(let _0x4f7fb6=0x0;_0x4f7fb6<_0x142fd9['length'];_0x4f7fb6++){const _0x5e16df=_0x142fd9[_0x4f7fb6];void 0x0!==_0x5e16df['fromVersion']&&void 0x0===_0x5e16df['toVersion']&&(_0x5e16df['toVersion']=this['repository']['getRevision'](_0x5e16df['id'])['toVersion']),void 0x0!==_0x5e16df['toVersion']&&void 0x0===_0x5e16df['fromVersion']&&(_0x5e16df['fromVersion']=this['repository']['getRevision'](_0x5e16df['id'])['fromVersion']);}const _0x125388=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x142fd9,_0x125388)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x192c89=>{if(_0x192c89){for(const _0xa97ca9 of _0x192c89)this['setRevisionData']({'id':_0xa97ca9['id'],'createdAt':_0xa97ca9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3ae64e,_0x56c811){let _0x580152=this['editor']['config']['get']('initialData'),_0x2dbe08=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x580152){_0x580152={};for(const _0x4037ee of this['editor']['model']['document']['getRootNames']())_0x580152[_0x4037ee]='';}if('string'==typeof _0x580152&&(_0x580152={'main':_0x580152}),void 0x0===_0x2dbe08){_0x2dbe08={};for(const _0x9041c3 of this['editor']['model']['document']['getRootNames']())_0x2dbe08[_0x9041c3]={};}let _0x499316=!0x1;const _0x49249d=Object['keys'](_0x580152),_0xf80fb2=Object['keys'](_0x3ae64e);for(const _0x37e04b of _0x49249d){if(_0x580152[_0x37e04b]!==_0x3ae64e[_0x37e04b]&&''!==_0x580152[_0x37e04b]['trim']()){_0x499316=!0x0;break;}if(!_0x305277(_0x2dbe08[_0x37e04b],_0x56c811[_0x37e04b])&&Object['keys'](_0x2dbe08[_0x37e04b])['length']>0x0){_0x499316=!0x0;break;}}_0x499316||(_0x499316=_0xf80fb2['some'](_0x5d070f=>!this['editor']['model']['document']['getRoot'](_0x5d070f))),_0x499316&&_0x35cc54('editor-initial-data-replaced-with-revision-data',{'editorData':_0x580152,'editorRootsAttributes':_0x2dbe08,'revisionData':_0x3ae64e,'revisionRootsAttributes':_0x56c811}),this['editor']['config']['set']('initialData',_0x3ae64e),this['editor']['config']['set']('rootsAttributes',_0x56c811);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x59b6a7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x59b6a7['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1ba2a1){const _0x4b756a=this['repository']['getRevisions']();_0x4b756a['reverse']();let _0x207b08=0x0;for(;_0x207b08<_0x4b756a['length'];){const _0x2f71b1=_0x4b756a[_0x207b08];if(_0x2f71b1===this['currentRevision']){_0x207b08++;continue;}if(_0x2f71b1['id']===this['_initialRevisionId'])break;const _0x415ab8=_0x1ba2a1['toVersion']-_0x2f71b1['toVersion']||_0x1ba2a1['fromVersion']-_0x2f71b1['fromVersion'];if(_0x415ab8>0x0)break;if(_0x415ab8<0x0)_0x207b08++;else{if(!_0x1ba2a1['creator']&&_0x2f71b1['creator'])break;if(_0x2f71b1['creator']||!_0x1ba2a1['creator']){if(_0x1ba2a1['createdAt']>_0x2f71b1['createdAt'])break;_0x207b08++;}else _0x207b08++;}}return _0x207b08;}['setRevisionData'](_0x37d018){const _0x295775=this['repository']['getRevision'](_0x37d018['id']);if(_0x37d018['createdAt']&&(_0x37d018['createdAt']=new Date(_0x37d018['createdAt'])),_0x37d018['authorsIds']){const _0x77214d=this['editor']['plugins']['get']('Users');_0x37d018['authors']=_0x37d018['authorsIds']['map'](_0x24b40b=>_0x77214d['getUser'](_0x24b40b));}_0x295775['_update'](_0x37d018,!0x0);}['buildRevisionData']({revision:_0x23cc47=null,from:_0x7f656c=null,to:_0x371196=null}){_0x7f656c=null!==_0x7f656c?_0x7f656c:_0x23cc47['fromVersion'],_0x371196=null!==_0x371196?_0x371196:_0x23cc47['toVersion'];const _0x580add=this['_revisionDataBuilder']['getData'](_0x7f656c,_0x371196),_0xea2c1d={'diffData':_0x580add['diffData'],'authorsIds':_0x580add['authorsIds'],'fromVersion':_0x7f656c,'toVersion':_0x371196};if(!_0x23cc47||_0x371196!==_0x23cc47['toVersion']){const _0x4e492d=_0x371196-0x1,_0x5b7b6c=this['_source']['history']['getOperation'](_0x4e492d);_0xea2c1d['createdAt']=_0x5b7b6c&&_0x5b7b6c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x7f656c===this['_loadedStateData']['fromVersion']){for(const _0xb0b64d of this['_loadedStateData']['authors'])_0xea2c1d['authorsIds']['includes'](_0xb0b64d['id'])||_0xea2c1d['authorsIds']['push'](_0xb0b64d['id']);}return _0xea2c1d;}['_loadRevisionData'](_0xc2d6f9){if(!_0xc2d6f9||_0xc2d6f9['diffData'])return Promise['resolve']();{const _0x296ff1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x296ff1,'revisionId':_0xc2d6f9['id']})['then'](_0x1fb58e=>{_0xc2d6f9['diffData']=_0x1fb58e['diffData'];});}}['_bufferUpdate'](_0x129f26,_0x4089b5,_0x5cb857){if(this['_bufferedUpdates']['has'](_0x129f26)){const _0x4b462b=this['_bufferedUpdates']['get'](_0x129f26);_0x4089b5=_0x5cb857?{..._0x4b462b,..._0x4089b5}:{..._0x4089b5,..._0x4b462b};}this['_bufferedUpdates']['set'](_0x129f26,_0x4089b5);}['_getFromVersion'](_0x1537ca){const _0x2d442f=this['repository']['getRevisions']();_0x2d442f['reverse'](),_0x2d442f['shift']();const _0x164205=_0x2d442f['find'](_0xa18311=>_0xa18311['toVersion']<=_0x1537ca)['toVersion'];return _0x164205<this['_startingVersion']?this['_startingVersion']:_0x164205;}['_createInitialRevision'](_0x27f5a5){const _0x57d55a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x57d55a)this['_initialRevisionId']=_0x57d55a['id'];else{const _0x2a2505=!this['editor']['model']['document']['roots']['find'](_0x1a59a3=>this['editor']['model']['hasContent'](_0x1a59a3)),_0x5daa31=this['editor']['plugins']['get']('Users')['me']['id'],_0xf71e4a=R(this['editor']['locale'],_0x2a2505?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x27f5a5,'to':_0x27f5a5,'id':this['_initialRevisionId'],'name':_0xf71e4a,'creatorId':_0x5daa31});}}['_createCurrentRevision'](_0x5e516d){const _0x74b434=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x74b434),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5e516d,'to':_0x5e516d,'id':_0x74b434,'name':'','creatorId':null}));}['_makeRevision']({name:_0x334431,from:_0x859e05,to:_0x37cc0e,creatorId:_0x304f8a,id:_0x1e8b0b}){const _0x498469=this['buildRevisionData']({'from':_0x859e05,'to':_0x37cc0e});_0x498469['name']=_0x334431,_0x498469['creatorId']=_0x304f8a,_0x498469['id']=_0x1e8b0b;const _0x5e306a=this['addRevisionData'](_0x498469);return this['adapter']&&this['_bufferUpdate'](_0x498469['id'],_0x498469,!0x0),_0x5e306a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1b36cc){return(_0x1b36cc=_0x1b36cc['filter'](_0x1f98e8=>!_0x1f98e8['name']||'revision-start'!==_0x1f98e8['name']&&'revision-end'!==_0x1f98e8['name']))['forEach'](_0x4e8af1=>{'string'!=typeof _0x4e8af1&&(_0x4e8af1['children']=this['_removeRevisionMarkers'](_0x4e8af1['children']),_0x4e8af1['attributes']=_0x4e8af1['attributes']['filter'](_0x169ed8=>!_0x169ed8[0x0]['startsWith']('data-revision-')));}),_0x1b36cc;}}function V(_0x3fdbef,_0x57d253){const _0x4d7d27=_0x57d253['editing']['view']['document'];if('string'==typeof _0x3fdbef)return new _0x2e650f(_0x4d7d27,_0x3fdbef);{const _0x3f38d6=_0x3fdbef['children']['map'](_0x2812d0=>V(_0x2812d0,_0x57d253));return new(C[_0x3fdbef['type']]||_0x2f8075)(_0x4d7d27,_0x3fdbef['name'],_0x3fdbef['attributes'],_0x3f38d6);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x20aa87){this['editor']=_0x20aa87,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'](_0x555e2b){this['source']=_0x555e2b;const _0x42f7f3=new Map(),_0x1bb8f0=new Map(),_0x3a655d=this['editor']['model']['document']['roots']['map'](_0x5646b2=>_0x5646b2['rootName']);for(const _0x40820e of _0x3a655d){const _0x2bc7df=this['editor']['model']['document']['getRoot'](_0x40820e),_0x17f433=F(_0x2bc7df);_0x42f7f3['set'](_0x40820e,_0x17f433),_0x1bb8f0['set'](_0x40820e,Object['fromEntries'](_0x2bc7df['getAttributes']()));}const _0x5ed71f=Array['from'](this['editor']['model']['markers'])['map'](_0xc27bc2=>[_0xc27bc2['name'],_0xc27bc2['getRange']()]),_0x5be93c=this['source']['version'];this['_saveMetaData'](_0x5be93c,_0x42f7f3,_0x5ed71f,_0x1bb8f0),this['_startingRevisionId']=this['_revisionId'];const _0x234b71=new Map(),_0xd919f4=new Map();for(const _0x471c41 of _0x3a655d){const _0x40dbc3=B(_0x471c41);_0x234b71['set'](_0x471c41,_0x40dbc3),_0xd919f4['set'](_0x471c41,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x234b71,[],_0xd919f4);}['getData'](_0x15257e,_0x1ed04e){if(this['_lastFrom']===_0x15257e&&this['_lastTo']<=_0x1ed04e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ed04e,!0x0);else{if(!this['_savedMetaData']['has'](_0x15257e)){const _0x5eb369=this['_getPreviousFrom'](_0x15257e);this['_calculateMetaData'](_0x5eb369,_0x15257e,!0x1);}this['_calculateMetaData'](_0x15257e,_0x1ed04e,!0x0);}return this['_lastFrom']=_0x15257e,this['_lastTo']=_0x1ed04e,this['_getState']();}['loadState'](_0x22c0a4){this['_reset'](),this['_lastFrom']=_0x22c0a4['fromVersion'],this['_lastTo']=_0x22c0a4['toVersion'];for(const _0x1231d8 in _0x22c0a4['diffData']){const _0x515da3=_0x22c0a4['diffData'][_0x1231d8]['attachChange'],_0xdc69eb=_0x4df95c(_0x22c0a4['diffData'][_0x1231d8]['attributesBefore'])||{},_0x126983=this['_makeModelFromViewString'](_0x22c0a4['diffData'][_0x1231d8]['deletions']);_0x126983['rootName']=_0x1231d8,_0x126983['_isAttached']=!_0x515da3||!_0x515da3['isAttached'],_0x126983['isAttached']=()=>_0x126983['_isAttached'],this['_baseRoots']['set'](_0x1231d8,_0x126983),this['_baseRootsAttributes']['set'](_0x1231d8,_0xdc69eb),_0x515da3&&this['_touchedRoots']['set'](_0x1231d8,_0x515da3);const _0x6f221e=this['_makeIdsRoot'](_0x126983);this['_baseIdsRoots']['set'](_0x1231d8,_0x6f221e);for(const [_0x58da00,_0x52b6c5]of _0x126983['markers']){if(!_0x58da00['startsWith']('revision:'))continue;const _0x57d6b7=_0x58da00['split'](':')[0x2];for(const _0x498fab of _0x52b6c5['getWalker']({'singleCharacters':!0x0})){const _0xb2952=this['_getVidAttributeName'](_0x498fab),_0x504c9e='elementEnd'==_0x498fab['type']?_0x498fab['previousPosition']['path']['slice'](0x0,-0x1):_0x498fab['previousPosition']['path'],_0x130426=_0x6f221e['getNodeByPath'](_0x504c9e)['getAttribute'](_0xb2952);this['_touched']['set'](_0x130426,{'userId':_0x57d6b7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1734ae=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22910e=>!this['_touched']['has'](_0x22910e));let _0x52f8ac=0x0;const _0x1318fd=new Map();for(const _0x20955b in _0x22c0a4['diffData']){const _0x3656d2=_0x22c0a4['diffData'][_0x20955b]['attachChange'],_0x4b73de=_0x4df95c(_0x22c0a4['diffData'][_0x20955b]['attributesAfter'])||{},_0xa2902a=this['_makeModelFromViewString'](_0x22c0a4['diffData'][_0x20955b]['insertions']);_0xa2902a['rootName']=_0x20955b,_0xa2902a['_isAttached']=!_0x3656d2||_0x3656d2['isAttached'],_0xa2902a['isAttached']=()=>_0xa2902a['_isAttached'],this['_diffRoots']['set'](_0x20955b,_0xa2902a),this['_diffRootsAttributes']['set'](_0x20955b,_0x4b73de);const _0x5704df=this['_makeIdsRoot'](_0xa2902a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20955b,_0x5704df),_0x1318fd['set'](_0x20955b,_0xa2902a['isAttached']()?_0x4b73de:{});for(const [_0x10593c,_0x2aabb7]of _0xa2902a['markers']){if(!_0x10593c['startsWith']('revision:'))continue;const _0x2f3edc=_0x10593c['split'](':')[0x2];for(const _0x251462 of _0x2aabb7['getWalker']({'singleCharacters':!0x0})){const _0x24c89c=this['_getVidAttributeName'](_0x251462),_0x44d3a3=this['_revisionId']++,_0xcac097='elementEnd'==_0x251462['type']?_0x251462['previousPosition']['path']['slice'](0x0,-0x1):_0x251462['previousPosition']['path'];_0x5704df['getNodeByPath'](_0xcac097)['_setAttribute'](_0x24c89c,_0x44d3a3),this['_touched']['set'](_0x44d3a3,{'userId':_0x2f3edc});}}for(const _0x5eed45 of this['editor']['model']['createRangeIn'](_0xa2902a)['getWalker']({'singleCharacters':!0x0})){const _0xc4ddd6=this['_getVidAttributeName'](_0x5eed45),_0x20eb78='elementEnd'==_0x5eed45['type']?_0x5eed45['previousPosition']['path']['slice'](0x0,-0x1):_0x5eed45['previousPosition']['path'],_0x1fdbab=_0x5704df['getNodeByPath'](_0x20eb78);_0x1fdbab['getAttribute'](_0xc4ddd6)>0x0||_0x1fdbab['_setAttribute'](_0xc4ddd6,_0x1734ae[_0x52f8ac++]);}for(const [_0x3719cb,_0x20b0bf]of _0xa2902a['markers'])_0x3719cb['startsWith']('revision:')||this['_markers']['set'](_0x3719cb,_0x20b0bf);}const _0x80cd9c=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x80cd9c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x80cd9c,0x1));const _0x1c9934=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1c9934),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c9934,0x1));const _0x508e56=Array['from'](this['_diffRoots'])['map'](([_0x46f713,_0x5bbd51])=>[_0x46f713,F(_0x5bbd51)]);this['_saveMetaData'](this['_lastTo'],_0x508e56,this['_markers'],_0x1318fd);}['_makeModelFromViewString'](_0x5b8bc4){const _0x28b43c=JSON['parse'](_0x5b8bc4),_0x5c9f6a=this['editor']['editing']['view']['document'],_0x3f1b19=new _0x4a3b60(_0x5c9f6a,_0x28b43c['map'](_0x3f3071=>V(_0x3f3071,this['editor'])));return this['editor']['data']['toModel'](_0x3f1b19);}['_saveMetaData'](_0x47ee19,_0x171348,_0x35a079,_0x4ebb65){const _0x4a0bb2=new Map(_0x171348),_0x4e51cd=new Map(_0x4df95c(_0x4ebb65)),_0x373baf=new Map();for(const [_0x1bfe8b,_0x545845]of _0x35a079)_0x373baf['set'](_0x1bfe8b,{'start':_0x545845['start']['clone'](),'end':_0x545845['end']['clone'](),'rootName':_0x545845['root']['rootName']});this['_savedMetaData']['set'](_0x47ee19,{'roots':_0x4a0bb2,'markers':_0x373baf,'rootsAttributes':_0x4e51cd});}['_removeMetaData'](_0x1b808e){this['_savedMetaData']['delete'](_0x1b808e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x50bbca,_0x1027f4=null){let _0x13e3f1=null;_0x50bbca['is']('documentFragment')||(_0x13e3f1=new ft(_0x50bbca['name'],{'vid_start':null===_0x1027f4?this['_revisionId']++:_0x1027f4++}));const _0x19c48e=[];for(const _0x57196b of _0x50bbca['getChildren']())if(_0x57196b['is']('element')){_0x19c48e['push'](this['_makeIdsRoot'](_0x57196b,_0x1027f4));const _0x404b21=_0x19c48e[_0x19c48e['length']-0x1];null!==_0x1027f4&&(_0x1027f4=_0x404b21['is']('element','$text')?_0x404b21['getAttribute']('vid')+0x1:_0x404b21['getAttribute']('vid_end')+0x1);}else{for(let _0x1101e3=0x0;_0x1101e3<_0x57196b['offsetSize'];_0x1101e3++)_0x19c48e['push'](new ft('$text',{'vid':null===_0x1027f4?this['_revisionId']++:_0x1027f4++}));}if(_0x50bbca['is']('documentFragment')){const _0x416605=B(_0x50bbca['rootName']);return _0x416605['_insertChild'](0x0,_0x19c48e),_0x416605;}return _0x13e3f1['_setAttribute']('vid_end',null===_0x1027f4?this['_revisionId']++:_0x1027f4++),_0x13e3f1['_insertChild'](0x0,_0x19c48e),_0x13e3f1;}['_calculateMetaData'](_0x234d4e,_0x4b593a,_0x5c6ef6){this['_reset']();const {roots:_0x18f516,markers:_0x18be7a,rootsAttributes:_0x5f2d32}=this['_savedMetaData']['get'](_0x234d4e);this['_baseRoots']=new Map(_0x18f516),this['_baseRootsAttributes']=new Map(_0x4df95c(_0x5f2d32));for(const [_0xef7b52,_0x16193d]of this['_baseRoots'])if('$graveyard'!==_0xef7b52&&(this['_diffRoots']['set'](_0xef7b52,F(_0x16193d)),this['_diffRootsAttributes']=new Map(_0x4df95c(_0x5f2d32)),_0x5c6ef6)){const _0x2a5ad5=this['_revisionId'];this['_idsRoots']['set'](_0xef7b52,this['_makeIdsRoot'](_0x16193d)),this['_baseIdsRoots']['set'](_0xef7b52,this['_makeIdsRoot'](_0x16193d,_0x2a5ad5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5c6ef6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12d280,_0x42e221]of _0x18be7a){const _0x19754c=this['_baseRoots']['get'](_0x42e221['rootName']),_0x29da8e=this['_diffRoots']['get'](_0x42e221['rootName']),_0x3ffac9=new vt(this['_fixPosition'](_0x42e221['start'],_0x19754c),this['_fixPosition'](_0x42e221['end'],_0x19754c)),_0x59f51a=this['_fixRange'](_0x3ffac9,_0x29da8e);_0x19754c['markers']['set'](_0x12d280,_0x3ffac9),this['_markers']['set'](_0x12d280,_0x59f51a);}this['_applyOperations'](_0x234d4e,_0x4b593a,_0x5c6ef6);}['_applyOperations'](_0x3e9b2e,_0x182f88,_0x5750f3){for(const _0x53a95f of this['source']['getOperations'](_0x3e9b2e,_0x182f88))this['_handleOperation'](_0x53a95f,_0x5750f3);for(const _0x1a41b0 of this['_diffRoots']['values']())_0x1a41b0['markers']['clear']();for(const [_0x49c267,_0x3b39b0]of this['_markers']){this['_diffRoots']['get'](_0x3b39b0['root']['rootName'])['markers']['set'](_0x49c267,_0x3b39b0['clone']());}const _0x53644a=new Map(),_0x156713=new Map();for(const [_0x424df3,_0x5c71f3]of this['_diffRoots'])_0x53644a['set'](_0x424df3,F(_0x5c71f3)),_0x156713['set'](_0x424df3,this['_diffRootsAttributes']['get'](_0x424df3));this['_saveMetaData'](_0x182f88,_0x53644a,this['_markers'],_0x156713);}['_getPreviousFrom'](_0x413045){const _0x2facdf=Array['from'](this['_savedMetaData']['keys']());_0x2facdf['sort']((_0x124086,_0xa696cc)=>_0x124086-_0xa696cc),_0x2facdf['reverse']();for(const _0x2f5282 of _0x2facdf)if(_0x2f5282<_0x413045)return _0x2f5282;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x8cd7bf,_0x20cccf){const _0x16f02d=Array['from'](_0x20cccf['markers'])['map'](([_0xa826a5,_0x185aec])=>[_0xa826a5,this['_fixRange'](_0x185aec,_0x8cd7bf)]);_0x8cd7bf['markers']=new Map(_0x16f02d);}['_transformMarkers'](_0x52840a){for(const _0x37e69f of this['_markers']['values']()){const _0x43e1ee=_0x37e69f['getTransformedByOperation'](_0x52840a),_0xa03600=vt['_createFromRanges'](_0x43e1ee);_0x37e69f['start']=_0xa03600['start'],_0x37e69f['end']=_0xa03600['end'];}}['_handleOperation'](_0x154201,_0x4527a2){if('addRoot'!=_0x154201['type']&&'detachRoot'!=_0x154201['type']){if('insert'==_0x154201['type']){const _0x596877=_0x154201['position']['root']['rootName'];this['_diffRoots']['has'](_0x596877)||(this['_diffRoots']['set'](_0x596877,B(_0x596877,!0x0)),this['_diffRootsAttributes']['set'](_0x596877,{}),_0x4527a2&&this['_idsRoots']['set'](_0x596877,B(_0x596877,!0x0)));}else{if('addRootAttribute'==_0x154201['type']||'removeRootAttribute'==_0x154201['type']||'changeRootAttribute'==_0x154201['type'])return void this['_handleRootAttributeOperation'](_0x154201);'marker'==_0x154201['type']&&this['_handleMarkerOperation'](_0x154201);}if('marker'!==_0x154201['type']){const _0x1bf397=this['_cloneOperation'](_0x154201,this['_diffRoots']);_0x1bf397['_execute'](),this['_transformMarkers'](_0x1bf397);}if(_0x4527a2)switch(_0x154201['type']){case'insert':this['_handleInsertOperation'](_0x154201);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x154201);break;case'merge':this['_handleMergeOperation'](_0x154201);break;case'split':this['_handleSplitOperation'](_0x154201);}}else this['_handleRootOperation'](_0x154201,_0x4527a2);}['_cloneOperation'](_0xec608e,_0x4d0a96){const _0x46b9cc=_0xec608e['clone']();return _0x46b9cc['_authorId']=_0xec608e['_authorId'],this['_fixOperation'](_0x46b9cc,_0x4d0a96),_0x46b9cc;}['_getBaseVids'](_0x1ccedc){return _0x1ccedc['map'](_0x36698a=>{const _0x5d5b26=this['_getVidAttributeName'](_0x36698a);return Number(_0x36698a['item']['getAttribute'](_0x5d5b26));});}['_generateTape'](_0x562887,_0x531a03){if(_0x562887['is']('element','$text'))_0x531a03['push']({'item':_0x562887,'type':'text'});else{_0x562887['is']('element')&&_0x531a03['push']({'item':_0x562887,'type':'elementStart'});for(const _0x1ad6f8 of _0x562887['getChildren']())this['_generateTape'](_0x1ad6f8,_0x531a03);_0x562887['is']('element')&&_0x531a03['push']({'item':_0x562887,'type':'elementEnd'});}return _0x531a03;}['_getState'](){const _0x537f60=new Map(this['_touched']),_0x4d7d28=new Map(_0x537f60),_0x496515=new Map(),_0x2e7786={'insertions':{},'deletions':{}},_0x190daf={'insertions':{},'deletions':{}},_0xfb86fb=new Map(),_0x5c5f5b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5c5f5b['delete']('$graveyard');for(const _0x1aaa94 of _0x5c5f5b){const _0x3828cc=this['_diffRoots']['get'](_0x1aaa94)||B(_0x1aaa94,!0x1),_0x1227fa=this['_baseRoots']['get'](_0x1aaa94)||B(_0x1aaa94,!0x1);_0x3828cc['isAttached']()||_0x1227fa['isAttached']()?(_0x2e7786['insertions'][_0x1aaa94]=F(_0x3828cc),_0x2e7786['deletions'][_0x1aaa94]=F(_0x1227fa),this['_copyMarkers'](_0x2e7786['deletions'][_0x1aaa94],_0x1227fa),this['_copyMarkers'](_0x2e7786['insertions'][_0x1aaa94],_0x3828cc),_0x190daf['insertions'][_0x1aaa94]=this['_generateTape'](this['_idsRoots']['get'](_0x1aaa94),[]),_0x190daf['deletions'][_0x1aaa94]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1aaa94)||B(_0x1aaa94,!0x1),[])):_0x5c5f5b['delete'](_0x1aaa94);}for(const _0x543409 of _0x5c5f5b){const _0x12ae30=_0x190daf['insertions'][_0x543409];for(const _0x2e77b2 of _0x12ae30){const _0x1abab1=this['_getVidAttributeName'](_0x2e77b2),_0x4a7de3=_0x2e77b2['item']['getAttribute'](_0x1abab1);_0x4d7d28['delete'](_0x4a7de3),_0x4a7de3>=this['_startingRevisionId']&&_0x496515['set'](_0x4a7de3,_0x537f60['get'](_0x4a7de3));}}for(const _0x136e30 of _0x5c5f5b){const _0x12372b=_0x190daf['insertions'][_0x136e30],_0x67361c=this['_getBaseVids'](_0x190daf['deletions'][_0x136e30]);let _0x3b004e=0x0;for(const _0x5dfbfa of _0x12372b){const _0x5b0d65=this['_getVidAttributeName'](_0x5dfbfa),_0xa61a40=_0x5dfbfa['item']['getAttribute'](_0x5b0d65);if(!_0x496515['has'](_0xa61a40)&&!_0xfb86fb['has'](_0xa61a40)){if(_0x4d7d28['has'](_0xa61a40))_0x3b004e++;else{if(_0xa61a40!=_0x67361c[_0x3b004e]){const _0x37ae0c=_0x537f60['get'](_0xa61a40)||_0x537f60['get'](_0x67361c[_0x3b004e]);for(;_0xa61a40!=_0x67361c[_0x3b004e];)_0x4d7d28['has'](_0x67361c[_0x3b004e])||(_0xfb86fb['set'](_0x67361c[_0x3b004e],_0x37ae0c),_0x537f60['set'](_0x67361c[_0x3b004e],_0x37ae0c)),_0x3b004e++;}_0x3b004e++;}}}}for(const _0x15e375 of _0x5c5f5b){const _0x13a3b3=_0x190daf['insertions'][_0x15e375];for(const _0x5f0b78 of _0x13a3b3){const _0xc423f=this['_getVidAttributeName'](_0x5f0b78),_0x5870ee=_0x5f0b78['item']['getAttribute'](_0xc423f);if(_0xfb86fb['has'](_0x5870ee)){const _0x16a8bc=_0xfb86fb['get'](_0x5870ee);_0x4d7d28['has'](_0x5870ee)||_0x4d7d28['set'](_0x5870ee,{..._0x16a8bc}),_0x496515['set'](_0x5870ee,{..._0x16a8bc});}}}for(const _0x2ebc48 of _0x4d7d28['keys']())_0x2ebc48>=this['_startingRevisionId']&&_0x4d7d28['delete'](_0x2ebc48);const _0x3b2bce=new Map();for(const _0x231e8b of _0x5c5f5b){let _0x328776=_0x190daf['insertions'][_0x231e8b];for(const _0x1782c0 of _0x328776)if(_0x1782c0['item']['is']('element','tableCell')){const _0x5be27c=this['_getVidAttributeName'](_0x1782c0),_0x165c42=_0x1782c0['item']['getAttribute'](_0x5be27c);if(_0x496515['has'](_0x165c42)){const _0x4fa7aa=_0x1782c0['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a25c4=_0x3b2bce['get'](_0x4fa7aa)||new Set();_0x1a25c4['add'](_0x496515['get'](_0x165c42)['userId']),_0x3b2bce['set'](_0x4fa7aa,_0x1a25c4);}}_0x328776=_0x190daf['deletions'][_0x231e8b];for(const _0x222657 of _0x328776)if(_0x222657['item']['is']('element','tableCell')){const _0x185f4c=this['_getVidAttributeName'](_0x222657),_0x30f56f=_0x222657['item']['getAttribute'](_0x185f4c);if(_0x4d7d28['has'](_0x30f56f)){const _0x2cecc4=_0x222657['item']['parent']['parent']['getAttribute']('vid_start'),_0x46c05e=_0x3b2bce['get'](_0x2cecc4)||new Set();_0x46c05e['add'](_0x4d7d28['get'](_0x30f56f)['userId']),_0x3b2bce['set'](_0x2cecc4,_0x46c05e);}}for(const _0x4983b5 of _0x3b2bce['keys']())(_0x496515['has'](_0x4983b5)||_0x4d7d28['has'](_0x4983b5))&&_0x3b2bce['delete'](_0x4983b5);}for(const _0x2c9977 of _0x5c5f5b){const _0x249238=_0x190daf['insertions'][_0x2c9977];let _0x59e748=null,_0x512c8d=null;for(const _0x2802cc of _0x249238){const _0x2b6605=this['_getVidAttributeName'](_0x2802cc),_0x10d315=_0x2802cc['item']['getAttribute'](_0x2b6605),_0x5b4902=_0x3b2bce['get'](_0x10d315);_0x5b4902&&'elementStart'==_0x2802cc['type']&&(_0x59e748=Array['from'](_0x5b4902)[0x0],_0x512c8d=_0x2802cc['item']['getAttribute']('vid_end')),_0x59e748&&(_0x4d7d28['set'](_0x10d315,{'userId':_0x59e748}),_0x496515['set'](_0x10d315,{'userId':_0x59e748})),_0x10d315==_0x512c8d&&(_0x59e748=null,_0x512c8d=null);}}const _0x140317={},_0x1f554d=new Set();for(const _0x43f97f of _0x5c5f5b){const _0x3012a5=_0x2e7786['deletions'][_0x43f97f],_0x77de64=_0x2e7786['insertions'][_0x43f97f];for(const {userId:_0x33103c}of this['_touchedMarkers']['values']())null!==_0x33103c&&_0x1f554d['add'](_0x33103c);for(const {userId:_0x16baf3}of this['_touchedRoots']['values']())null!==_0x16baf3&&_0x1f554d['add'](_0x16baf3);this['_markChanges'](_0x77de64,_0x190daf['insertions'][_0x43f97f],_0x496515,'insertion',_0x1f554d),this['_markChanges'](_0x3012a5,_0x190daf['deletions'][_0x43f97f],_0x4d7d28,'deletion',_0x1f554d),_0x140317[_0x43f97f]={'insertions':this['_prepareViewToSave'](_0x77de64),'deletions':this['_prepareViewToSave'](_0x3012a5),'attachChange':this['_touchedRoots']['get'](_0x43f97f)||null,'attributesBefore':_0x4df95c(this['_baseRootsAttributes']['get'](_0x43f97f))||{},'attributesAfter':_0x4df95c(this['_diffRootsAttributes']['get'](_0x43f97f))};}return{'diffData':_0x140317,'authorsIds':Array['from'](_0x1f554d)};}['_processRootBeforeSave'](_0x494634){for(const [,_0x255167]of _0x494634['markers']){const _0x3c6688=_0x255167['start']['getAncestors']()['filter'](_0x5cd6ad=>'tableCell'==_0x5cd6ad['name']);for(const _0x4aff27 of _0x3c6688)0x1==_0x4aff27['childCount']&&_0x4aff27['getChild'](0x0)['is']('element','paragraph')&&_0x4aff27['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3739e9){this['_processRootBeforeSave'](_0x3739e9);const _0xe66815=this['editor']['data']['toView'](_0x3739e9,{}),_0x1da56e=Array['from'](_0xe66815['getChildren']())['map'](_0x1522e5=>this['_getViewJson'](_0x1522e5));return JSON['stringify'](_0x1da56e);}['_getViewJson'](_0x2b2fe4){if(_0x2b2fe4['is']('$text'))return _0x2b2fe4['data'];{const _0x5c112e=_0x2b2fe4;return{'type':Object['keys'](C)['find'](_0x14bfa8=>_0x2b2fe4 instanceof C[_0x14bfa8]),'name':_0x5c112e['name'],'attributes':Array['from'](_0x5c112e['getAttributes']()),'children':Array['from'](_0x5c112e['getChildren']())['map'](_0x252319=>this['_getViewJson'](_0x252319))};}}['_markChanges'](_0x47d0f8,_0x1685d8,_0x5749ca,_0x48e60d,_0xa4ef2){let _0x2bf1e0=null,_0x5eb8b5=null,_0x1f8e2a=0x0;const _0x68ad68=this['editor']['model'];for(let _0x82d1d8=0x0;_0x82d1d8<_0x1685d8['length'];_0x82d1d8++){const _0x4cc834=this['_getVidAttributeName'](_0x1685d8[_0x82d1d8]),_0x3630c5=_0x1685d8[_0x82d1d8]['item']['getAttribute'](_0x4cc834),_0x4871b8=_0x5749ca['get'](_0x3630c5),_0x39dd1e=_0x82d1d8==_0x1685d8['length']-0x1;(!_0x2bf1e0&&_0x4871b8&&(_0x2bf1e0=_0x4871b8,_0x5eb8b5=_0x1685d8[_0x82d1d8]),_0x2bf1e0&&(!_0x4871b8||_0x4871b8['userId']!=_0x2bf1e0['userId']))&&(_0x571659(_0x4871b8,J(_0x5eb8b5,_0x47d0f8,_0x68ad68),J(_0x1685d8[_0x82d1d8],_0x47d0f8,_0x68ad68)),_0x2bf1e0=_0x4871b8||null,_0x5eb8b5=_0x4871b8?_0x1685d8[_0x82d1d8]:null),_0x2bf1e0&&_0x39dd1e&&_0x571659(_0x4871b8,J(_0x5eb8b5,_0x47d0f8,_0x68ad68),q(_0x1685d8[_0x82d1d8],_0x47d0f8,_0x68ad68));}function _0x571659(_0xac5758,_0x324caf,_0x5156aa){const _0x287fba=_0x2bf1e0['userId'],_0x1c6d28='revision:'+_0x48e60d+':'+_0x287fba+':'+_0x1f8e2a++,_0x2053c1=_0x68ad68['createRange'](_0x324caf,_0x5156aa);_0x47d0f8['markers']['set'](_0x1c6d28,_0x2053c1),null!==_0x287fba&&_0xa4ef2['add'](_0x287fba);}}['_getVidAttributeName'](_0x4aa2bf){switch(_0x4aa2bf['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x232034,_0x381d87){_0x232034['baseVersion']=null;for(const _0x42c8ef in _0x232034){const _0x8ac267=_0x232034[_0x42c8ef];if(_0x8ac267 instanceof gt){const _0x50d408=_0x381d87['get'](_0x8ac267['root']['rootName']);_0x232034[_0x42c8ef]=this['_fixPosition'](_0x8ac267,_0x50d408);}if(_0x8ac267 instanceof vt){const _0x5da026=_0x381d87['get'](_0x8ac267['root']['rootName']);_0x232034[_0x42c8ef]=this['_fixRange'](_0x8ac267,_0x5da026);}'root'===_0x42c8ef&&(_0x232034['root']=_0x381d87['get'](_0x232034['root']['rootName']));}}['_fixRange'](_0x3627b2,_0x11eb0a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3627b2['start'],_0x11eb0a),this['_fixPosition'](_0x3627b2['end'],_0x11eb0a));}['_fixPosition'](_0xc78ce8,_0x52701e){return this['editor']['model']['createPositionFromPath'](_0x52701e,_0xc78ce8['path'],_0xc78ce8['stickiness']);}['_handleInsertOperation'](_0x1c70d3){const _0x57dff4=this['_idsRoots']['get'](_0x1c70d3['position']['root']['rootName']),_0x3b25da=this['_fixPosition'](_0x1c70d3['position'],_0x57dff4),_0x123b0f=null===_0x1c70d3['_authorId']?null:_0x1c70d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x427569=_0x3b25da['parent'],_0x2c6811=this['_revisionId'],_0x169af6=[];for(const _0x58fcc4 of _0x1c70d3['nodes'])if(_0x58fcc4['is']('element'))_0x169af6['push'](this['_makeIdsRoot'](_0x58fcc4));else{for(let _0x110e80=0x0;_0x110e80<_0x58fcc4['offsetSize'];_0x110e80++)_0x169af6['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4acec1=this['_revisionId'];for(let _0x43df3d=_0x2c6811;_0x43df3d<_0x4acec1;_0x43df3d++)this['_touched']['set'](_0x43df3d,{'userId':_0x123b0f});_0x427569['_insertChild'](_0x3b25da['offset'],_0x169af6);}['_handleMoveOperation'](_0x5ad6f3){(_0x5ad6f3=this['_cloneOperation'](_0x5ad6f3,this['_idsRoots']))['_execute']();const _0x27a1bf=null===_0x5ad6f3['_authorId']?null:_0x5ad6f3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3877b9=_0x5ad6f3['getMovedRangeStart'](),_0x561afa=_0x3877b9['parent'],_0x433b0c=_0x3877b9['offset'];!function _0x34cba4(_0x5aeecd,_0x10a16b,_0x5c1b59,_0x15f805){for(let _0x278d33=_0x5c1b59;_0x278d33<_0x15f805;_0x278d33++){const _0x2db3b1=_0x10a16b['getChild'](_0x278d33);_0x2db3b1['is']('element','$text')?_0x5aeecd['set'](_0x2db3b1['getAttribute']('vid'),{'userId':_0x27a1bf}):(_0x5aeecd['set'](_0x2db3b1['getAttribute']('vid_start'),{'userId':_0x27a1bf}),_0x34cba4(_0x5aeecd,_0x2db3b1,0x0,_0x2db3b1['childCount']),_0x5aeecd['set'](_0x2db3b1['getAttribute']('vid_end'),{'userId':_0x27a1bf}));}}(this['_touched'],_0x561afa,_0x433b0c,_0x433b0c+_0x5ad6f3['howMany']);}['_handleMergeOperation'](_0x715aa3){const _0x40f13d=null===(_0x715aa3=this['_cloneOperation'](_0x715aa3,this['_idsRoots']))['_authorId']?null:_0x715aa3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32fb62=_0x715aa3['targetPosition']['parent'],_0x19752d=_0x715aa3['sourcePosition']['parent'],_0x1b232f=_0x32fb62['getAttribute']('vid_end'),_0xc439a5=_0x19752d['getAttribute']('vid_start');_0x32fb62['_setAttribute']('vid_end',_0x19752d['getAttribute']('vid_end')),_0x19752d['_setAttribute']('vid_end',_0x1b232f),this['_touched']['set'](_0xc439a5,{'userId':_0x40f13d}),this['_touched']['set'](_0x1b232f,{'userId':_0x40f13d}),_0x715aa3['_execute']();}['_handleSplitOperation'](_0x25b0dd){const _0x26345e=null===(_0x25b0dd=this['_cloneOperation'](_0x25b0dd,this['_idsRoots']))['_authorId']?null:_0x25b0dd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xef5e1c=_0x25b0dd['graveyardPosition'],_0x1941a9=_0x25b0dd['splitPosition']['parent'];_0x25b0dd['_execute']();const _0x526bdf=_0x1941a9['getAttribute']('vid_end'),_0x24625e=_0x25b0dd['insertionPosition']['nodeAfter'];if(_0xef5e1c){const _0x273277=_0x24625e['getAttribute']('vid_end'),_0x817d88=_0x1941a9['getAttribute']('vid_end');_0x1941a9['_setAttribute']('vid_end',_0x273277),_0x24625e['_setAttribute']('vid_end',_0x817d88),this['_touched']['set'](_0x1941a9['getAttribute']('vid_end'),{'userId':_0x26345e}),this['_touched']['set'](_0x24625e['getAttribute']('vid_start'),{'userId':_0x26345e});}else{const _0x27357b=this['_revisionId']++,_0x4e30ec=this['_revisionId']++;_0x1941a9['_setAttribute']('vid_end',_0x27357b),_0x24625e['_setAttribute']('vid_start',_0x4e30ec),_0x24625e['_setAttribute']('vid_end',_0x526bdf),this['_touched']['set'](_0x27357b,{'userId':_0x26345e}),this['_touched']['set'](_0x4e30ec,{'userId':_0x26345e});}}['_handleMarkerOperation'](_0x3c4d87){if(!_0x3c4d87['affectsData'])return;const _0x4ba02b=(_0x3c4d87=this['_cloneOperation'](_0x3c4d87,this['_diffRoots']))['oldRange']?_0x3c4d87['oldRange']['root']:null,_0x269781=_0x3c4d87['newRange']?_0x3c4d87['newRange']['root']:null;_0x4ba02b&&this['_markers']['delete'](_0x3c4d87['name']),_0x269781&&this['_markers']['set'](_0x3c4d87['name'],_0x3c4d87['newRange']['clone']());const _0x194e4c=null===_0x3c4d87['_authorId']?null:_0x3c4d87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58ed72=_0x3c4d87['name'];if(!this['_touchedMarkers']['has'](_0x58ed72))return void this['_touchedMarkers']['set'](_0x58ed72,{'range':_0x3c4d87['oldRange'],'userId':_0x194e4c});const _0x3878d9=this['_touchedMarkers']['get'](_0x58ed72),_0x1cb183=_0x3878d9['range'],_0x11d70c=_0x3c4d87['newRange'];null==_0x1cb183&&null==_0x11d70c||_0x1cb183&&_0x11d70c&&_0x1cb183['isEqual'](_0x11d70c)?this['_touchedMarkers']['delete'](_0x3c4d87['name']):_0x3878d9['userId']=_0x194e4c;}['_handleRootOperation'](_0x349507,_0x35a4a8){this['_diffRoots']['has'](_0x349507['rootName'])?this['_diffRoots']['get'](_0x349507['rootName'])['_isAttached']=_0x349507['isAdd']:(this['_diffRoots']['set'](_0x349507['rootName'],B(_0x349507['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x349507['rootName'],{}),_0x35a4a8&&this['_idsRoots']['set'](_0x349507['rootName'],B(_0x349507['rootName'],!0x0)));const _0x54f795=null===_0x349507['_authorId']?null:_0x349507['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53c3cb=this['_touchedRoots']['get'](_0x349507['rootName']);_0x53c3cb&&_0x53c3cb['userId']===_0x54f795?this['_touchedRoots']['delete'](_0x349507['rootName']):this['_touchedRoots']['set'](_0x349507['rootName'],{'userId':_0x54f795,'isAttached':_0x349507['isAdd']});}['_handleRootAttributeOperation'](_0x477807){const _0x385f46=this['_diffRootsAttributes']['get'](_0x477807['root']['rootName']);null===_0x477807['newValue']?delete _0x385f46[_0x477807['key']]:_0x385f46[_0x477807['key']]=_0x477807['newValue'];}}function F(_0x3e86f0){const _0x1962cb=B(_0x3e86f0['rootName'],_0x3e86f0['isAttached']());for(const _0x39c93b of _0x3e86f0['getChildren']()){const _0x96efe5=_0x39c93b['_clone'](!0x0);_0x1962cb['_appendChild'](_0x96efe5);}return _0x1962cb;}function B(_0x1327ed,_0x54ba43=!0x0){const _0x34a30e=new mt();return _0x34a30e['rootName']=_0x1327ed,_0x34a30e['_isAttached']=_0x54ba43,_0x34a30e['isAttached']=()=>_0x34a30e['_isAttached'],_0x34a30e;}function J(_0x12b63a,_0x272549,_0x11cae6){const _0x17d701='elementEnd'==_0x12b63a['type']?_0x11cae6['createPositionAt'](_0x12b63a['item'],'end'):_0x11cae6['createPositionBefore'](_0x12b63a['item']);return _0x11cae6['createPositionFromPath'](_0x272549,_0x17d701['path'],_0x17d701['stickiness']);}function q(_0x12b031,_0x41b0a3,_0x58a314){const _0x4becba='elementStart'==_0x12b031['type']?_0x58a314['createPositionAt'](_0x12b031['item'],0x0):_0x58a314['createPositionAfter'](_0x12b031['item']);return _0x58a314['createPositionFromPath'](_0x41b0a3,_0x4becba['path'],_0x4becba['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x47a421,_0x153a62){super(_0x47a421),this['focusTracker']=new _0x2136d6(),this['keystrokes']=new _0xdc9f35(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x153a62),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5ce5c8(this);}['render'](){super['render'](),_0x3d4ebe({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x51f1b0=_0x3aff23=>_0x3aff23['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51f1b0),this['keystrokes']['set']('arrowleft',_0x51f1b0),this['keystrokes']['set']('arrowup',_0x51f1b0),this['keystrokes']['set']('arrowdown',_0x51f1b0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3991e2){this['revisionNameInputView']['fieldView']['element']['value']=_0x3991e2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x16badd){const _0x46fe28=new _0x4e9da2(this['locale'],_0x1f4481),_0x409599=_0x46fe28['fieldView'];_0x409599['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5232e6=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x16badd&&(_0x5232e6+='\x20('+R(this['locale'],'optional')+')'),(_0x46fe28['label']=_0x5232e6,_0x409599['on']('input',()=>{this['revisionNameInputValue']=_0x409599['element']['value']['trim']();}),_0x46fe28);}}class u extends _0x18ce1a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x59ac4f=this['editor'],_0x3c94be=_0x59ac4f['plugins']['get']('RevisionTracker');_0x59ac4f['ui']['componentFactory']['add']('revisionHistory',_0x865898=>{const _0x5ce179=_0x397b70(_0x865898),_0x1590dc=_0x5ce179['panelView']['children'],_0x40684c=new _0xb2a828(_0x865898),_0x1d9940=new _0x17c68a(_0x865898),_0xf88893=new te(_0x865898),_0x34e72a=new _0x17c68a(_0x865898),_0x409779=new te(_0x865898);return _0x5ce179['bind']('isEnabled')['to'](_0x3c94be,'isReady',_0x3c94be,'isEnabled',_0x59ac4f,'isReadOnly',(_0x33bd79,_0xa955e7,_0x5dbb7b)=>_0x33bd79&&_0xa955e7&&!_0x5dbb7b),_0x5ce179['buttonView']['set']({'icon':_0x4c8f5a['history'],'label':R(_0x865898,'Revision\x20history'),'tooltip':!0x0}),_0xf88893['set']({'label':R(_0x865898,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf88893['bind']('isEnabled')['to'](_0x3c94be,'isReady',_0x3c94be,'isEnabled',_0x59ac4f,'isReadOnly',(_0x2104f8,_0x33138b,_0x420c08)=>_0x2104f8&&_0x33138b&&!_0x420c08),_0xf88893['on']('execute',()=>this['_showDialog']()),_0x409779['set']({'label':R(_0x865898,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x409779['bind']('isEnabled')['to'](_0x3c94be,'isReady',_0x59ac4f,'isReadOnly',(_0x1584af,_0x46aa07)=>_0x1584af&&!_0x46aa07),_0x409779['on']('execute',()=>{_0x59ac4f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5ce179['isOpen']=!0x1,_0x59ac4f['editing']['view']['focus']();}),_0x1d9940['children']['add'](_0xf88893),_0x34e72a['children']['add'](_0x409779),_0x40684c['role']='menu',_0x40684c['items']['addMany']([_0x1d9940,_0x34e72a]),_0x1590dc['add'](_0x40684c),_0x5ce179;}),_0x59ac4f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49e852=this['editor'],_0x35fb27=_0x49e852['locale'],_0x3417ba=new _0x4f8c67(_0x35fb27),_0x27966c=new _0x141661(_0x35fb27);_0x3417ba['buttonView']['set']({'icon':_0x4c8f5a['history'],'label':R(_0x35fb27,'Revision\x20history')});const _0x33d47f=new _0x2606da(_0x35fb27,_0x3417ba),_0x2c9180=new _0x3d49c4(_0x35fb27);_0x2c9180['set']({'label':R(_0x35fb27,'Save\x20current\x20revision')}),_0x2c9180['delegate']('execute')['to'](_0x3417ba),_0x2c9180['on']('execute',()=>{this['_showDialog']();}),_0x33d47f['children']['add'](_0x2c9180),_0x27966c['items']['add'](_0x33d47f);const _0x4751f5=new _0x2606da(_0x35fb27,_0x3417ba),_0x403f72=new _0x3d49c4(_0x35fb27);return _0x403f72['set']({'label':R(_0x35fb27,'Open\x20revision\x20history')}),_0x403f72['delegate']('execute')['to'](_0x3417ba),_0x403f72['on']('execute',()=>{_0x49e852['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4751f5['children']['add'](_0x403f72),_0x27966c['items']['add'](_0x4751f5),_0x3417ba['panelView']['children']['add'](_0x27966c),_0x3417ba;}['_showDialog'](){const _0x2d51b2=this['editor'],_0x1a6c67=_0x2d51b2['locale'],_0x304b27=_0x2d51b2['plugins']['get']('Dialog'),_0x19b974=_0x2d51b2['plugins']['get']('RevisionTracker');function _0x515238(_0xcdf99c){_0x2d51b2['config']['get']('revisionHistory.requireRevisionName')&&''===_0xcdf99c['revisionName']?_0xcdf99c['revisionNameInputView']['errorText']=R(_0x1a6c67,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d51b2['plugins']['get'](l)['saveRevision']({'name':_0xcdf99c['revisionName']}),_0x304b27['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x515238(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x304b27['show']({'id':'revisionSave','title':R(_0x1a6c67,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2d51b2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x304b27['hide']()},{'label':R(_0x2d51b2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3cad02){_0x3cad02['bind']('isEnabled')['to'](_0x19b974,'isReady',_0x19b974,'isEnabled',_0x2d51b2,'isReadOnly',(_0x2659da,_0x37eb8b,_0xb1d371)=>_0x2659da&&_0x37eb8b&&!_0xb1d371);},'onExecute':()=>_0x515238(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x97014f=this['editor'],_0x38ce1a=_0x97014f['locale'];this['_saveRevisionFormView']=new hs(_0x38ce1a,_0x97014f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x2076b8,_0x4573bf){super(_0x2076b8),this['_model']=_0x4573bf,this['changeId']=_0x4573bf['id'];const _0x4882cf=this['bindTemplate'],_0x57929b=R(_0x2076b8,_0x4573bf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4573bf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4573bf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4882cf['to']('type',_0x130aed=>'ck-revision-change__'+_0x130aed)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x57929b}]},{'text':'\x20'+_0x4573bf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4302bb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa8fda2){super(),this['id']=_0xa8fda2['id']||_0x117971(),this['author']=_0xa8fda2['author'],this['type']=_0xa8fda2['type'],this['data']=_0xa8fda2['data']||{},this['rootName']=_0xa8fda2['rootName'],this['set']('createdAt',_0xa8fda2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x102852,_0x209dd8){this['newRevisionId']=_0x102852,this['oldRevisionId']=_0x209dd8,this['changes']=new _0x217079();}['_setChanges'](_0x10fc33){for(const _0x275fef of _0x10fc33)this['changes']['add'](_0x275fef);}}const Z={'c':_0x2bc34a,'a':_0x51f8c0,'e':_0x2d4fc1,'r':_0x2adcbe,'u':_0x267212};class d extends _0x18ce1a{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29871c,_0x34fe8c,j];}constructor(_0xfe860a){super(_0xfe860a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x590f69,_0x52b242,_0x4f6749)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3bbf4c=>{for(const _0x1be11d of this['editor']['editing']['view']['document']['roots'])_0x4f6749?_0x3bbf4c['removeClass']('ck-editor__editable__overlay',_0x1be11d):_0x3bbf4c['addClass']('ck-editor__editable__overlay',_0x1be11d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xc00825=>null!==_0xc00825),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x9b21cb,_0x1ec143,_0x10b39d)=>_0x9b21cb&&_0x10b39d?_0x1ec143['changes']['getIndex'](_0x10b39d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1672b6,_0x24c9ee)=>_0x1672b6?_0x24c9ee['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x34fe8c);}['init'](){const _0x2e8f12=this['editor'],_0x13b55c=new yt(_0x2e8f12,{'direction':'backward'}),_0x53778d=new yt(_0x2e8f12,{'direction':'forward'});(_0x2e8f12['commands']['add']('showPreviousChange',_0x13b55c),_0x2e8f12['commands']['add']('showNextChange',_0x53778d),_0x2e8f12['commands']['add']('restoreRevision',new _t(_0x2e8f12)),this['on']('change:numberOfChanges',()=>{_0x13b55c['refresh'](),_0x53778d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2e8f12['enableReadOnlyMode']('revision-viewer'),_0x2e8f12['plugins']['has']('WidgetToolbarRepository'))&&_0x2e8f12['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2acffe){await this['loadRevisionData'](_0x2acffe);const _0xdc6297={};for(const _0x4a5187 in _0x2acffe['diffData']){if(_0x2acffe['diffData'][_0x4a5187]['attachChange']&&!_0x2acffe['diffData'][_0x4a5187]['attachChange']['isAttached'])continue;const _0xc51122=this['_removeRevisionMarkers'](JSON['parse'](_0x2acffe['diffData'][_0x4a5187]['insertions'])),_0x56f30e=this['editor']['editing']['view']['document'],_0x54c592=new _0x4a3b60(_0x56f30e,_0xc51122['map'](_0x18dc8f=>this['_getViewObj'](_0x18dc8f)));this['editor']['data']['processor']['useFillerType']('marked'),_0xdc6297[_0x4a5187]=this['editor']['data']['processor']['toData'](_0x54c592),this['editor']['data']['processor']['useFillerType']('default');}return _0xdc6297;}async['getRevisionRootsAttributes'](_0x5e0388){await this['loadRevisionData'](_0x5e0388);const _0x19b1c6={};for(const _0x98d051 in _0x5e0388['diffData'])_0x5e0388['diffData'][_0x98d051]['attachChange']&&!_0x5e0388['diffData'][_0x98d051]['attachChange']['isAttached']||(_0x19b1c6[_0x98d051]=_0x5e0388['diffData'][_0x98d051]['attributesAfter']||{});return _0x19b1c6;}['_removeRevisionMarkers'](_0x5e499f){return(_0x5e499f=_0x5e499f['filter'](_0x1236d6=>!_0x1236d6['name']||'revision-start'!==_0x1236d6['name']&&'revision-end'!==_0x1236d6['name']))['forEach'](_0x5dcf48=>{'string'!=typeof _0x5dcf48&&(_0x5dcf48['children']=this['_removeRevisionMarkers'](_0x5dcf48['children']),_0x5dcf48['attributes']=_0x5dcf48['attributes']['filter'](_0x39bd26=>!_0x39bd26[0x0]['startsWith']('data-revision-')));}),_0x5e499f;}async['compare'](_0x1d6b37,_0x2fd82a,_0x2af9dc=!0x1){if(!this['isEnabled'])return;const _0xd1fa3=this['diff'],_0x5c902b=this['repository'],_0x430d01='string'==typeof _0x1d6b37?_0x5c902b['getRevision'](_0x1d6b37):_0x1d6b37,_0x3d35d1='string'==typeof _0x2fd82a?_0x5c902b['getRevision'](_0x2fd82a):_0x2fd82a,_0xac0c76=_0x430d01['id'],_0x220169=_0x3d35d1?_0x3d35d1['id']:null;if(!_0x2af9dc&&this['diff']&&this['diff']['newRevisionId']===_0xac0c76&&this['diff']['oldRevisionId']===_0x220169)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xac0c76,_0x220169);const _0x258ff4=this['_getRevisionsRange'](_0x430d01,_0x3d35d1,!0x0)['map'](_0xa4c576=>this['loadRevisionData'](_0xa4c576));return _0x258ff4['push'](new Promise(_0x43cedc=>{setTimeout(_0x43cedc,0x14);})),Promise['all'](_0x258ff4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38ab14=this['_getDiff'](_0xac0c76,_0x220169);for(const _0x316d16 of _0x38ab14['changes'])this['_changeIdToChange']['set'](_0x316d16['id'],_0x316d16);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x47637a=>{for(const _0x4325ab of this['editor']['model']['document']['getRootNames']())_0x47637a['detachRoot'](_0x4325ab);for(const _0x41747b of Object['keys'](_0x38ab14['model'])){const _0x579e8b=_0x47637a['addRoot'](_0x41747b);for(const _0xc0a9af of Object['keys'](_0x38ab14['attributes'][_0x41747b]))_0x47637a['setAttribute'](_0xc0a9af,_0x38ab14['attributes'][_0x41747b][_0xc0a9af],_0x579e8b);_0x47637a['insert'](_0x38ab14['model'][_0x41747b],_0x579e8b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38ab14['changes'])),this['isReady']=!0x0;})['catch'](_0x206401=>{console['error'](_0x206401),this['_cleanUp'](),_0xd1fa3&&(this['diff']=_0xd1fa3),this['isReady']=!0x0;});}['addRevisionData'](_0x41dc4a,_0x1c3d6f){const _0x22f868=this['repository']['createRevision'](_0x41dc4a);return _0x22f868['on']('_update',(_0x1b9ba6,_0x437d6f,_0x1e3181)=>_0x1c3d6f(_0x437d6f,_0x1e3181,_0x22f868)),this['repository']['addRevision'](_0x22f868),_0x22f868;}['loadRevisionData'](_0x3fbb5d){if(!_0x3fbb5d||_0x3fbb5d['diffData'])return Promise['resolve']();{const _0x17fe75=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x17fe75,'revisionId':_0x3fbb5d['id']})['then'](_0x35f147=>{_0x3fbb5d['_update']({'diffData':_0x35f147['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18774d=>{for(const _0x399903 of this['editor']['model']['document']['getRootNames']())_0x18774d['detachRoot'](_0x399903);});}['_sortAndFilterDiffChanges'](_0x18310c){const _0x186b00=[],_0x1ece66=new Map();for(const _0x45a59f of this['editor']['model']['document']['getRootNames']()){const _0x3848dc=this['editor']['editing']['view']['getDomRoot'](_0x45a59f);if(!_0x3848dc)continue;const _0x368aca=_0x3848dc['getClientRects']()['item'](0x0);_0x368aca&&(_0x186b00['push'](_0x45a59f),_0x1ece66['set'](_0x45a59f,_0x368aca));}return _0x186b00['sort']((_0xbacf3d,_0x1a6175)=>{const _0x4dc66d=_0x1ece66['get'](_0xbacf3d),_0x154d32=_0x1ece66['get'](_0x1a6175);return _0x4dc66d['y']-_0x154d32['y']||_0x4dc66d['x']-_0x154d32['x'];}),(_0x18310c=_0x18310c['filter'](_0x39b0a2=>_0x186b00['includes'](_0x39b0a2['rootName'])))['sort']((_0x49f061,_0x30fb66)=>_0x186b00['indexOf'](_0x49f061['rootName'])-_0x186b00['indexOf'](_0x30fb66['rootName'])),_0x18310c;}['_makeTape'](_0x343828){const _0x2b3756=Array['from'](_0x343828['markers'])['filter'](([_0x464e68,_0x4f9c09])=>_0x464e68['startsWith']('revision:')&&!_0x4f9c09['isCollapsed']),_0x6d78a1=Array['from'](this['editor']['model']['createRangeIn'](_0x343828)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2b3756['length'])for(const _0xa0cc04 of _0x6d78a1){const [_0x29cfe0,_0x3f6448]=_0x2b3756[0x0],[,_0xc63aa7,_0x1a3a21]=_0x29cfe0['split'](':');if(_0x3f6448['end']['isEqual'](_0xa0cc04['nextPosition'])&&_0x2b3756['shift'](),(_0xa0cc04['previousPosition']['isEqual'](_0x3f6448['start'])||_0xa0cc04['previousPosition']['isAfter'](_0x3f6448['start']))&&('insertion'==_0xc63aa7?_0xa0cc04['isAdded']={'userId':_0x1a3a21}:'deletion'==_0xc63aa7&&(_0xa0cc04['isRemoved']={'userId':_0x1a3a21})),0x0==_0x2b3756['length'])break;}return _0x6d78a1;}['_refreshStartEndIndex'](_0x285449){const _0x29b65e=new Map();for(let _0x49afca=0x0;_0x49afca<_0x285449['length'];_0x49afca++)'text'===_0x285449[_0x49afca]['type']?(_0x285449[_0x49afca]['item']['startIndex']=_0x49afca,_0x285449[_0x49afca]['item']['endIndex']=_0x49afca):('elementStart'===_0x285449[_0x49afca]['type']?_0x285449[_0x49afca]['item']['startIndex']=_0x49afca:'elementEnd'===_0x285449[_0x49afca]['type']&&(_0x285449[_0x49afca]['item']['endIndex']=_0x49afca),_0x29b65e['set'](_0x285449[_0x49afca]['id'],_0x49afca));for(const _0x20869d of _0x29b65e['values']())'elementStart'===_0x285449[_0x20869d]['type']?_0x285449[_0x20869d]['item']['endIndex']=_0x29b65e['get'](_0x285449[_0x20869d]['pairId']):'elementEnd'===_0x285449[_0x20869d]['type']&&(_0x285449[_0x20869d]['item']['startIndex']=_0x29b65e['get'](_0x285449[_0x20869d]['pairId']));}['_processTape'](_0x39572e){for(let _0x3fb180=0x0;_0x3fb180<_0x39572e['length'];_0x3fb180++){if('elementStart'===_0x39572e[_0x3fb180]['type'])_0x39572e[_0x3fb180]['item']['startIndex']=_0x3fb180;else{if('elementEnd'===_0x39572e[_0x3fb180]['type']){_0x39572e[_0x3fb180]['item']['endIndex']=_0x3fb180;const _0x24806f=_0x39572e[_0x3fb180]['item']['startIndex'];_0x39572e[_0x24806f]['pairId']=_0x39572e[_0x3fb180]['id'],_0x39572e[_0x3fb180]['pairId']=_0x39572e[_0x24806f]['id'];}else _0x39572e[_0x3fb180]['item']['startIndex']=_0x3fb180,_0x39572e[_0x3fb180]['item']['endIndex']=_0x3fb180,_0x39572e[_0x3fb180]['pairId']=null;}_0x39572e[_0x3fb180]['markersStart']||(_0x39572e[_0x3fb180]['markersStart']=[],_0x39572e[_0x3fb180]['markersEnd']=[]);}}['_markInsertions'](_0x1a3290,_0x1fdef0){const _0xdc7d06=_0x1a3290['filter'](_0x443019=>!_0x443019['isAdded']);for(let _0x1f2ce8=0x0;_0x1f2ce8<_0x1fdef0['length'];_0x1f2ce8++)_0x1fdef0[_0x1f2ce8]['isAdded']&&(_0xdc7d06[_0x1f2ce8]['isAdded']=_0x1fdef0[_0x1f2ce8]['isAdded']);}['_makeModelFromViewString'](_0x10ff04){const _0x5b0598=JSON['parse'](_0x10ff04),_0x8978cf=this['editor']['editing']['view']['document'],_0x338a87=new _0x4a3b60(_0x8978cf,_0x5b0598['map'](_0x31d8ab=>this['_getViewObj'](_0x31d8ab)));return this['editor']['data']['toModel'](_0x338a87);}['_getViewObj'](_0x1d81f0){const _0xe2b560=this['editor']['editing']['view']['document'];if('string'==typeof _0x1d81f0)return new _0x2e650f(_0xe2b560,_0x1d81f0);{const _0xa6a51c=_0x1d81f0['children']['map'](_0x64953=>this['_getViewObj'](_0x64953));return new(Z[_0x1d81f0['type']]||_0x2f8075)(_0xe2b560,_0x1d81f0['name'],_0x1d81f0['attributes'],_0xa6a51c);}}['_getDiff'](_0x5ed96a,_0x51c1b3=null){const _0x3de996=this['repository']['getRevision'](_0x5ed96a),_0x44cf87=_0x51c1b3?this['repository']['getRevision'](_0x51c1b3):null,_0x1c94ce=this['_getRevisionsRange'](_0x3de996,_0x44cf87),_0x3bf37b=_0x1c94ce[_0x1c94ce['length']-0x1],_0x4a41a5=new Map(),_0x49c85a={'model':{},'attributes':{},'changes':[]},_0xf0ca97=new Set(),_0x42abff=new Map();for(let _0x478ce4=_0x1c94ce['length']-0x1;_0x478ce4>=0x0;_0x478ce4--){const _0x2b0c54=_0x1c94ce[_0x478ce4];for(const _0x554906 of Object['keys'](_0x2b0c54['diffData']))if(_0x2b0c54['diffData'][_0x554906]['attachChange']){const _0x57916c=_0x2b0c54['diffData'][_0x554906]['attachChange'];_0x57916c['isAttached']?(_0xf0ca97['add'](_0x554906),_0x42abff['has'](_0x554906)&&_0x42abff['get'](_0x554906)['userId']==_0x57916c['userId']?_0x42abff['delete'](_0x554906):_0x42abff['set'](_0x554906,_0x57916c)):_0x42abff['has'](_0x554906)?(_0xf0ca97['delete'](_0x554906),_0x42abff['delete'](_0x554906)):(_0xf0ca97['add'](_0x554906),_0x42abff['set'](_0x554906,_0x57916c));}else _0xf0ca97['add'](_0x554906);}for(const _0x2c489f of _0xf0ca97){const _0x49f7d6=_0x42abff['has'](_0x2c489f)&&!_0x42abff['get'](_0x2c489f)['isAttached'];let _0x58a4ba=_0x49f7d6?_0x1c94ce['length']-0x1:0x0;const _0x2f1752=_0x49f7d6?-0x1:0x1;for(;_0x1c94ce[_0x58a4ba];){const _0x2d21c8=_0x1c94ce[_0x58a4ba];if(_0x2d21c8['diffData'][_0x2c489f]){const _0x179ada=_0x49f7d6?_0x2d21c8['diffData'][_0x2c489f]['attributesBefore']:_0x2d21c8['diffData'][_0x2c489f]['attributesAfter'];_0x49c85a['attributes'][_0x2c489f]=_0x179ada?_0x4df95c(_0x179ada):{};break;}_0x58a4ba+=_0x2f1752;}}for(const _0x300624 of _0x1c94ce){_0x300624['model']={};for(const _0x353d25 of _0x300624['authors'])_0x4a41a5['set'](_0x353d25['id'],_0x353d25);for(const _0x597192 of _0xf0ca97){const _0x34825e=_0x300624['diffData'][_0x597192]?_0x300624['diffData'][_0x597192]['insertions']:'[]',_0x268ea2=_0x300624['diffData'][_0x597192]?_0x300624['diffData'][_0x597192]['deletions']:'[]';_0x300624['model'][_0x597192]={'insertions':this['_makeModelFromViewString'](_0x34825e),'deletions':this['_makeModelFromViewString'](_0x268ea2)};}}for(const _0x47e4b9 of _0xf0ca97){let _0x22b2be=null,_0x3509c6=0x0;const _0x26597b=new Map(Array['from'](_0x3de996['model'][_0x47e4b9]['insertions']['markers'])['filter'](([_0x312eb4])=>!_0x312eb4['startsWith']('revision:')));let _0x1fec9f=0x0;for(const _0x2bd081 of _0x1c94ce){const _0x36124f=this['_makeTape'](_0x2bd081['model'][_0x47e4b9]['insertions']);_0x2bd081==_0x3de996?(_0x22b2be=_0x36124f,_0x3509c6=_0x22b2be['length'],_0x22b2be['forEach'](_0x2197bb=>{_0x2197bb['id']=_0x1fec9f++;}),this['_processTape'](_0x22b2be)):this['_markInsertions'](_0x22b2be,_0x36124f);const _0x5641fb=_0x22b2be['filter'](_0x58b37c=>!_0x58b37c['isAdded'])['map'](_0x2d17c3=>_0x2d17c3['id']);let _0x2027d7=0x0;const _0x2e351e=this['_makeTape'](_0x2bd081['model'][_0x47e4b9]['deletions']);_0x2e351e['forEach'](_0x5051b6=>{_0x5051b6['isRemoved']?_0x5051b6['id']=_0x3509c6++:_0x5051b6['id']=_0x5641fb[_0x2027d7++];}),this['_processTape'](_0x2e351e),this['_setDistance'](_0x22b2be,'isAdded'),this['_setDistance'](_0x2e351e,'isRemoved'),_0x2bd081==_0x3de996&&this['_markMarkers'](_0x22b2be,_0x26597b),_0x22b2be=this['_joinTapes'](_0x22b2be,_0x2e351e),this['_refreshStartEndIndex'](_0x22b2be),this['_setDistance'](_0x22b2be,'isRemoved');}_0x22b2be=_0x22b2be['filter'](_0x4a1966=>!(_0x4a1966['isAdded']&&_0x4a1966['isRemoved']));const _0x52d6ad=new Map(_0x3bf37b['model'][_0x47e4b9]['deletions']['markers']),_0x1ed61b=new Set(_0x26597b['keys']());for(const _0x14f328 of _0x52d6ad['keys']())_0x1ed61b['delete'](_0x14f328);this['_markSuggestions'](_0x22b2be,_0x1ed61b),this['_fixObsoleteTags'](_0x22b2be),_0x22b2be=this['_removeMissingPairs'](_0x22b2be),_0x22b2be=this['_markMismatchedRemovedTags'](_0x22b2be),_0x22b2be=this['_removeUnsupportedChanges'](_0x22b2be);const {root:_0x451d1b,changes:_0x74f7dc}=this['_makeModelFromTape'](_0x22b2be,_0x4a41a5,_0x47e4b9);_0x49c85a['model'][_0x47e4b9]=_0x451d1b;const _0x3ffe30=_0x42abff['get'](_0x47e4b9);if(_0x3ffe30){const _0x4456d4=_0x4a41a5['get'](_0x3ffe30['userId']),_0x355b2b=new r({'author':_0x4456d4,'type':_0x3ffe30['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x47e4b9});_0x74f7dc['unshift'](_0x355b2b),_0x49c85a['attributes'][_0x47e4b9]['revisionHistoryAttachChange']=_0x355b2b['id'];}_0x49c85a['changes']=_0x49c85a['changes']['concat'](_0x74f7dc);}return _0x49c85a;}['_markMarkers'](_0x15f0e6,_0x5255f7){for(let _0x1060b5=0x0;_0x1060b5<_0x15f0e6['length'];_0x1060b5++)for(const [_0x47309e,_0x465547]of _0x5255f7)_0x465547['start']['isEqual'](_0x15f0e6[_0x1060b5]['previousPosition'])&&_0x15f0e6[_0x1060b5]['markersStart']['push'](_0x47309e),_0x465547['end']['isEqual'](_0x15f0e6[_0x1060b5]['nextPosition'])&&_0x15f0e6[_0x1060b5]['markersEnd']['push'](_0x47309e);}['_joinTapes'](_0x576c4d,_0x18dee5){let _0xee7d53=[],_0x9e33a4=0x0,_0x140b98=0x0;for(;_0x9e33a4<_0x576c4d['length']||_0x140b98<_0x18dee5['length'];){const _0x983e83=_0x576c4d[_0x9e33a4]||{},_0x4e053d=_0x18dee5[_0x140b98]||{};if(_0x983e83['id']==_0x4e053d['id'])_0x9e33a4++,_0x140b98++,_0xee7d53['push'](_0x983e83);else{if(_0x4e053d['isRemoved']&&_0x983e83['isAdded']){const {commonTape:_0x5bd5,iEnd:_0xaa7577,jEnd:_0x164403}=this['_threeWayMerge'](_0x576c4d,_0x9e33a4,_0x18dee5,_0x140b98);_0xee7d53=_0xee7d53['concat'](_0x5bd5),_0x9e33a4=_0xaa7577,_0x140b98=_0x164403;}else _0x4e053d['isRemoved']?(_0x140b98++,_0xee7d53['push'](_0x4e053d)):(_0x9e33a4++,_0xee7d53['push'](_0x983e83));}}return _0xee7d53;}['_markSuggestions'](_0x3da8a2,_0xc71efc){const _0xc67da9=[];for(let _0x170633=0x0;_0x170633<_0x3da8a2['length'];_0x170633++){for(let _0x77df7c=0x0;_0x77df7c<_0x3da8a2[_0x170633]['markersStart']['length'];_0x77df7c++){const _0x40fbf3=_0x3da8a2[_0x170633]['markersStart'][_0x77df7c];if(!_0xc71efc['has'](_0x40fbf3))continue;const {group:_0x47d5d7,type:_0x4db0a6,authorId:_0x10f410}=_0x1577e5(_0x40fbf3);'revision-suggestion'!=_0x47d5d7||'insertion'!=_0x4db0a6&&'deletion'!=_0x4db0a6||(_0xc67da9['unshift']({'type':_0x4db0a6,'name':_0x40fbf3,'userId':_0x10f410}),_0x3da8a2[_0x170633]['markersStart']['splice'](_0x77df7c,0x1),_0x77df7c--);}_0x236905(_0x3da8a2[_0x170633]);for(let _0xa7fbcc=0x0;_0xa7fbcc<_0x3da8a2[_0x170633]['markersEnd']['length'];_0xa7fbcc++){const _0x15e544=_0x3da8a2[_0x170633]['markersEnd'][_0xa7fbcc];if(!_0xc71efc['has'](_0x15e544))continue;const {group:_0x230999,type:_0x2fe940}=_0x1577e5(_0x15e544);if('revision-suggestion'!=_0x230999||'insertion'!=_0x2fe940&&'deletion'!=_0x2fe940)continue;_0x3da8a2[_0x170633]['markersEnd']['splice'](_0xa7fbcc,0x1),_0xa7fbcc--;const _0x1dea59=_0xc67da9['findIndex'](_0x394e24=>_0x394e24['name']==_0x15e544);_0x1dea59>-0x1&&_0xc67da9['splice'](_0x1dea59,0x1);}}function _0x1577e5(_0x1a7c5a){const _0x2f2acd=_0x1a7c5a['split'](':');return{'group':_0x2f2acd[0x0],'type':_0x2f2acd[0x1],'subType':_0x2f2acd['length']>=0x5?_0x2f2acd[0x2]:null,'id':_0x2f2acd['length']<0x5?_0x2f2acd[0x2]:_0x2f2acd[0x3],'authorId':_0x2f2acd['length']<0x5?_0x2f2acd[0x3]:_0x2f2acd[0x4],'markerCount':0x6==_0x2f2acd['length']?_0x2f2acd[0x5]:null};}function _0x236905(_0x2da854){for(let _0x144504=0x0;_0x144504<_0xc67da9['length'];_0x144504++){if(_0x2da854['isAdded']&&'insertion'==_0xc67da9[_0x144504]['type'])return _0x2da854['isAddSuggestion']=_0xc67da9[_0x144504],void delete _0x2da854['isAdded'];if(!_0x2da854['isAdded']&&!_0x2da854['isRemoved']&&'deletion'==_0xc67da9[_0x144504]['type'])return void(_0x2da854['isRemoveSuggestion']=_0xc67da9[_0x144504]);}}}['_setDistance'](_0x5eedfe,_0x5a271d){let _0x5e8c00=0x0,_0x27da3f=!0x1;const _0x40f9e9=new Map();for(const _0x38eb06 of _0x5eedfe)_0x38eb06[_0x5a271d]?_0x27da3f&&(_0x5e8c00++,_0x27da3f=!0x1):(_0x5e8c00++,_0x27da3f=!0x0),_0x40f9e9['set'](_0x38eb06['id'],_0x5e8c00);for(let _0x4bb284=0x0;_0x4bb284<_0x5eedfe['length'];_0x4bb284++){if('isRemoved'==_0x5a271d&&_0x5eedfe[_0x4bb284]['isAdded']||'isAdded'==_0x5a271d&&_0x5eedfe[_0x4bb284]['isRemoved'])continue;if('text'==_0x5eedfe[_0x4bb284]['type']){_0x5eedfe[_0x4bb284]['distance']=0x0;continue;}const _0x3a0343=_0x40f9e9['get'](_0x5eedfe[_0x4bb284]['pairId']),_0xecf6a4=_0x40f9e9['get'](_0x5eedfe[_0x4bb284]['id']);_0x5eedfe[_0x4bb284]['distance']=_0x3a0343-_0xecf6a4;}}['_getRevisionsRange'](_0x523fcd,_0x423c99,_0x1051bc=!0x1){const _0x531af3=[];let _0xa5ee25=this['repository']['getIndex'](_0x523fcd),_0x54332c=this['repository']['getIndex'](_0x423c99);for(-0x1==_0x54332c&&(_0x54332c=this['repository']['_revisions']['length'],_0x1051bc=!0x1);_0xa5ee25<_0x54332c;)_0x531af3['push'](this['repository']['getRevision'](_0xa5ee25)),_0xa5ee25++;return _0x1051bc&&_0x531af3['push'](this['repository']['getRevision'](_0xa5ee25)),_0x531af3;}['_threeWayMerge'](_0x1ae69f,_0x371098,_0x1d3f60,_0x745037){const _0x49e774=this['editor']['model']['schema'];let _0x301b13=_0x371098;for(;_0x1ae69f[_0x301b13]&&_0x1ae69f[_0x301b13]['isAdded'];)_0x301b13++;let _0x23d73c=_0x745037;for(;_0x1d3f60[_0x23d73c]&&_0x1d3f60[_0x23d73c]['isRemoved'];)_0x23d73c++;_0x444993(_0x1ae69f,_0x371098,_0x301b13),_0x444993(_0x1d3f60,_0x745037,_0x23d73c);const _0x26adfc=_0x1d3f60['slice'](_0x745037,_0x23d73c)['concat'](_0x1ae69f['slice'](_0x371098,_0x301b13));return _0x26adfc['sort']((_0x4d2f99,_0x28ae79)=>_0x4d2f99['side']!=_0x28ae79['side']?_0x4d2f99['side']-_0x28ae79['side']:_0x4d2f99['level']!=_0x28ae79['level']?_0x4d2f99['level']-_0x28ae79['level']:_0x4d2f99['distance']!=_0x28ae79['distance']?_0x28ae79['distance']-_0x4d2f99['distance']:!!_0x4d2f99['isAdded']!=!!_0x28ae79['isAdded']?-0x1==_0x4d2f99['side']||0x0==_0x4d2f99['side']?_0x4d2f99['isAdded']?-0x1:0x1:_0x4d2f99['isAdded']?0x1:-0x1:_0x4d2f99['index']-_0x28ae79['index']),{'commonTape':_0x26adfc,'iEnd':_0x301b13,'jEnd':_0x23d73c};function _0x444993(_0x37b733,_0x3f646b,_0x53b0df){let _0x4bb767=-0x1,_0x27b010=Number['POSITIVE_INFINITY'],_0x516390=!0x0;for(let _0x46b66e=_0x3f646b;_0x46b66e<_0x53b0df;_0x46b66e++)if(_0x49e774['isInline'](_0x37b733[_0x46b66e]['item'])||(_0x516390=!0x1),_0x37b733[_0x46b66e]['item']['startIndex']<_0x3f646b&&(_0x4bb767=_0x46b66e),_0x37b733[_0x46b66e]['item']['endIndex']>=_0x53b0df){_0x27b010=_0x46b66e;break;}_0x516390&&(_0x4bb767=_0x53b0df-0x1);for(let _0x31f6ee=_0x3f646b;_0x31f6ee<_0x53b0df;_0x31f6ee++)_0x37b733[_0x31f6ee]['side']=_0x31f6ee<=_0x4bb767?-0x1:_0x31f6ee<_0x27b010?0x0:0x1,_0x37b733[_0x31f6ee]['index']=_0x31f6ee;let _0x277a51=0x0;for(let _0x2fa766=_0x3f646b;_0x2fa766<=_0x4bb767;_0x2fa766++)0x0==_0x37b733[_0x2fa766]['distance']?_0x37b733[_0x2fa766]['level']=_0x277a51:(_0x277a51++,_0x37b733[_0x2fa766]['level']=_0x277a51,_0x277a51++);for(let _0x1ccc1e=_0x3f646b;_0x1ccc1e<_0x53b0df;_0x1ccc1e++)0x0==_0x37b733[_0x1ccc1e]['side']&&(_0x37b733[_0x1ccc1e]['level']=_0x277a51);_0x277a51=0x0;for(let _0x1047a5=_0x53b0df-0x1;_0x1047a5>=_0x27b010;_0x1047a5--)0x0==_0x37b733[_0x1047a5]['distance']?_0x37b733[_0x1047a5]['level']=_0x277a51:(_0x277a51--,_0x37b733[_0x1047a5]['level']=_0x277a51,_0x277a51--);}}['_fixObsoleteTags'](_0x12112c){const _0x3ba8ee=new Map(),_0x573394=this['editor']['model']['schema'];for(let _0x1741d7=0x1;_0x1741d7<_0x12112c['length'];_0x1741d7++){let _0x30b2a9,_0x13da0c,_0x5c736c;const _0x35bf71=_0x12112c[_0x1741d7],_0x1912c6=_0x12112c[_0x1741d7-0x1];if('text'==_0x35bf71['type'])continue;if(_0x35bf71['type']!=_0x1912c6['type'])continue;if(!_0x573394['isBlock'](_0x1912c6['item'])||_0x573394['isLimit'](_0x1912c6['item']))continue;if(!_0x573394['isBlock'](_0x35bf71['item'])||_0x573394['isLimit'](_0x35bf71['item']))continue;if((_0x12112c[_0x1741d7]['isAdded']||_0x12112c[_0x1741d7]['isAddSuggestion'])&&_0x12112c[_0x1741d7-0x1]['isRemoved'])_0x30b2a9=_0x12112c[_0x1741d7],_0x13da0c=_0x12112c[_0x1741d7-0x1],_0x5c736c=_0x1741d7-0x1;else{if(!_0x12112c[_0x1741d7]['isRemoved']||!_0x12112c[_0x1741d7-0x1]['isAdded']&&!_0x12112c[_0x1741d7-0x1]['isAddSuggestion'])continue;_0x30b2a9=_0x12112c[_0x1741d7-0x1],_0x13da0c=_0x12112c[_0x1741d7],_0x5c736c=_0x1741d7;}const _0x1c4b9a=_0x30b2a9['level']==_0x13da0c['level'],_0x3b8a20=Math['abs'](_0x30b2a9['level'])<Math['abs'](_0x13da0c['level'])&&0x0==_0x13da0c['distance'];(_0x1c4b9a||_0x3b8a20)&&(_0x3ba8ee['set'](_0x13da0c['id'],_0x30b2a9['id']),_0x12112c['splice'](_0x5c736c,0x1),_0x1741d7--,_0x30b2a9['isAdded']=!0x1);}for(let _0x182d52=0x0;_0x182d52<_0x12112c['length'];_0x182d52++)_0x3ba8ee['has'](_0x12112c[_0x182d52]['pairId'])&&(_0x12112c[_0x182d52]['pairId']=_0x3ba8ee['get'](_0x12112c[_0x182d52]['pairId']));}['_removeMissingPairs'](_0x37c5e9){const _0x37a80e=new Set(_0x37c5e9['map'](_0xcbfe03=>_0xcbfe03['id']));for(let _0x2dff33=0x0;_0x2dff33<_0x37c5e9['length'];_0x2dff33++)_0x37a80e['has'](_0x37c5e9[_0x2dff33]['pairId'])||0x0==_0x37c5e9[_0x2dff33]['distance']||(_0x37c5e9[_0x2dff33]['isIncorrect']=!0x0);return _0x37c5e9['filter'](_0xca62bb=>!_0xca62bb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x155826){const _0x3410dc=new Set();for(let _0x741265=0x0;_0x741265<_0x155826['length'];_0x741265++){if(_0x3410dc['has'](_0x155826[_0x741265]['id'])&&_0x155826[_0x741265]['isRemoved']&&(_0x155826[_0x741265]['isIncorrect']=!0x0),_0x155826[_0x741265]['isIncorrect'])continue;if(0x0==_0x155826[_0x741265]['distance'])continue;if('elementStart'!=_0x155826[_0x741265]['type'])continue;if(null==_0x155826[_0x741265]['pairId'])continue;let _0x35fd37=_0x741265+0x1,_0x52d8fc=0x0;for(;_0x155826[_0x35fd37]['id']!=_0x155826[_0x741265]['pairId'];)'elementStart'==_0x155826[_0x35fd37]['type']?_0x52d8fc++:'elementEnd'==_0x155826[_0x35fd37]['type']&&_0x52d8fc--,_0x35fd37++;if(0x0!=_0x52d8fc){if(_0x155826[_0x741265]['isRemoved'])_0x155826[_0x741265]['isIncorrect']=!0x0;else{for(;_0x35fd37!=_0x741265;)_0x155826[_0x35fd37]['isRemoved']&&0x0!=_0x155826[_0x35fd37]['distance']&&(_0x155826[_0x35fd37]['isIncorrect']=!0x0,_0x3410dc['add'](_0x155826[_0x35fd37]['pairId'])),_0x35fd37--;}}}return _0x155826['filter'](_0x563bb2=>!_0x563bb2['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e09a3){const _0x13ee55=this['editor']['model']['schema'];for(let _0x4a577e=0x0;_0x4a577e<_0x5e09a3['length'];_0x4a577e++){if(!(_0x5e09a3[_0x4a577e]['isAdded']||_0x5e09a3[_0x4a577e]['isAddSuggestion']||_0x5e09a3[_0x4a577e]['isRemoved']||_0x5e09a3[_0x4a577e]['isRemoveSuggestion']))continue;if(0x0==_0x5e09a3[_0x4a577e]['distance'])continue;const _0x48bc48=_0x5e09a3[_0x4a577e]['item'];_0x13ee55['isBlock'](_0x48bc48)||_0x13ee55['isLimit'](_0x48bc48)||(_0x5e09a3[_0x4a577e]['isAdded']&&delete _0x5e09a3[_0x4a577e]['isAdded'],_0x5e09a3[_0x4a577e]['isAddSuggestion']&&delete _0x5e09a3[_0x4a577e]['isAddSuggestion'],_0x5e09a3[_0x4a577e]['isRemoveSuggestion']&&delete _0x5e09a3[_0x4a577e]['isRemoveSuggestion'],_0x5e09a3[_0x4a577e]['isRemoved']&&(_0x5e09a3[_0x4a577e]['isIncorrect']=!0x0));}return _0x5e09a3['filter'](_0x3ccade=>!_0x3ccade['isIncorrect']);}['_makeModelFromTape'](_0x13309b,_0x3fffc0,_0x2a7df9){const _0x5d17c2=new mt(),_0x5e8c7a=[],_0xa9ecb5=new Map(),_0x378dd1=this['editor']['model'],_0x4a3a65=_0x378dd1['schema'],_0x4025c0=[_0x5d17c2],_0x2d27d0={},_0x3e6e36={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ca3fe=null;const _0x1642f8=[0x0];for(let _0x4e2a4c=0x0;_0x4e2a4c<_0x13309b['length'];_0x4e2a4c++)if('elementStart'===_0x13309b[_0x4e2a4c]['type']){_0x13309b[_0x4e2a4c]['previousPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8);const _0x28173b=new ft(_0x13309b[_0x4e2a4c]['item']['name'],_0x13309b[_0x4e2a4c]['item']['getAttributes']());_0x4025c0[0x0]['_appendChild'](_0x28173b),_0x1642f8['push'](0x0),_0x4025c0['unshift'](_0x28173b),_0x13309b[_0x4e2a4c]['nextPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8);}else'elementEnd'===_0x13309b[_0x4e2a4c]['type']?(_0x4025c0['shift'](),_0x13309b[_0x4e2a4c]['previousPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8),_0x1642f8['pop'](),_0x1642f8[_0x1642f8['length']-0x1]++,_0x13309b[_0x4e2a4c]['nextPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8)):(_0x13309b[_0x4e2a4c]['previousPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8),_0x3ca3fe?_0x3ca3fe['_data']+=_0x13309b[_0x4e2a4c]['item']['data']:_0x3ca3fe=new wt(_0x13309b[_0x4e2a4c]['item']['data'],_0x13309b[_0x4e2a4c]['item']['getAttributes']()),_0x13309b[_0x4e2a4c+0x1]&&'text'===_0x13309b[_0x4e2a4c+0x1]['type']&&_0x2ed8c1(_0x3ca3fe,_0x13309b[_0x4e2a4c+0x1]['item'])||(_0x4025c0[0x0]['_appendChild'](_0x3ca3fe),_0x3ca3fe=null),_0x1642f8[_0x1642f8['length']-0x1]+=_0x13309b[_0x4e2a4c]['item']['offsetSize'],_0x13309b[_0x4e2a4c]['nextPosition']=_0x378dd1['createPositionFromPath'](_0x5d17c2,_0x1642f8));for(let _0xa419fb=0x0;_0xa419fb<_0x13309b['length'];_0xa419fb++){const _0x5c9d31=_0x13309b[_0xa419fb]['previousPosition'],_0x128f49=_0x13309b[_0xa419fb]['nextPosition'];for(const _0x5d703b of _0x13309b[_0xa419fb]['markersStart'])_0xa9ecb5['set'](_0x5d703b,{'start':_0x5c9d31,'end':null});_0x3fd6cb('isRemoveSuggestion',_0xa419fb,_0x5c9d31,_0x128f49),_0x3fd6cb('isAddSuggestion',_0xa419fb,_0x5c9d31,_0x128f49),_0x3fd6cb('isRemoved',_0xa419fb,_0x5c9d31,_0x128f49),_0x3fd6cb('isAdded',_0xa419fb,_0x5c9d31,_0x128f49);for(const _0x49dd57 of _0x13309b[_0xa419fb]['markersEnd']){_0xa9ecb5['get'](_0x49dd57)['end']=_0x128f49;}}for(const [_0x491e36,_0x1248df]of _0xa9ecb5){const _0x2d661d=this['editor']['model']['createRange'](_0x1248df['start'],_0x1248df['end']);_0x5d17c2['markers']['set'](_0x491e36,_0x2d661d);}return _0x5e8c7a['sort']((_0x5073dd,_0x4a81fc)=>{const _0x5968e6=_0x5d17c2['markers']['get']('revision:'+_0x5073dd['id']),_0x345fbc=_0x5d17c2['markers']['get']('revision:'+_0x4a81fc['id']);return _0x5968e6['start']['isBefore'](_0x345fbc['start'])?-0x1:_0x5968e6['start']['isAfter'](_0x345fbc['start'])?0x1:_0x5968e6['end']['isBefore'](_0x345fbc['end'])?-0x1:_0x5968e6['end']['isAfter'](_0x345fbc['end'])?0x1:'add'===_0x5073dd['type']?-0x1:0x1;}),{'root':_0x5d17c2,'changes':_0x5e8c7a};function _0x3fd6cb(_0x38ca19,_0x277f32,_0x3478f0,_0x591987){const _0x45be5c=!!_0x13309b[_0x277f32][_0x38ca19],_0x217769=_0x45be5c?_0x13309b[_0x277f32][_0x38ca19]['userId']:null,_0x3a7e4c=_0x277f32===_0x13309b['length']-0x1,_0x455880=_0x3e6e36[_0x38ca19][0x0],_0x3aba15=_0x4a3a65['isObject'](_0x13309b[_0x277f32]['item']);!_0x2d27d0[_0x38ca19]&&_0x45be5c?_0x2d27d0[_0x38ca19]={'start':_0x3478f0,'tapeItem':_0x13309b[_0x277f32],'userId':_0x217769,'type':_0x38ca19}:_0x2d27d0[_0x38ca19]&&!_0x45be5c?(_0x2d27d0[_0x38ca19]['end']=_0x3478f0,_0x154fdf(_0x2d27d0[_0x38ca19]),_0x2d27d0[_0x38ca19]=null):_0x2d27d0[_0x38ca19]&&_0x45be5c&&_0x2d27d0[_0x38ca19]['userId']!==_0x217769&&(_0x2d27d0[_0x38ca19]['end']=_0x3478f0,_0x455880&&_0x455880['userId']===_0x2d27d0[_0x38ca19]['userId']||_0x154fdf(_0x2d27d0[_0x38ca19]),_0x2d27d0[_0x38ca19]={'start':_0x3478f0,'tapeItem':_0x13309b[_0x277f32],'userId':_0x217769,'type':_0x38ca19}),_0x2d27d0[_0x38ca19]&&_0x3aba15&&('elementStart'!==_0x13309b[_0x277f32]['type']||_0x455880&&_0x455880['userId']===_0x217769||_0x3e6e36[_0x38ca19]['unshift']({'userId':_0x217769,'object':_0x13309b[_0x277f32]['item'],'change':_0x2d27d0[_0x38ca19]}),'elementEnd'===_0x13309b[_0x277f32]['type']&&_0x455880&&_0x455880['object']===_0x13309b[_0x277f32]['item']&&(_0x3e6e36[_0x38ca19]['shift'](),_0x2d27d0[_0x38ca19]=_0x455880['change'])),_0x2d27d0[_0x38ca19]&&_0x3a7e4c&&(_0x2d27d0[_0x38ca19]['end']=_0x591987,_0x154fdf(_0x2d27d0[_0x38ca19]),_0x2d27d0[_0x38ca19]=null);}function _0x154fdf({start:_0x537ac2,end:_0x4bb3dd,tapeItem:_0x125030,userId:_0x3189bd,type:_0x70ea05}){const _0x300051=_0x125030['item'],_0x516510=_0x378dd1['schema']['isBlock'](_0x300051)&&!_0x378dd1['schema']['isLimit'](_0x300051),_0x5dbcc3=_0x537ac2['nodeAfter']==_0x4bb3dd['parent']&&_0x4bb3dd['isAtStart'];if(_0x516510&&_0x5dbcc3)return;const _0xd21d2a=_0x378dd1['createRange'](_0x537ac2,_0x4bb3dd),_0x18a609=_0x3fffc0['get'](_0x3189bd),_0x29edae=new r({'author':_0x18a609,'type':'isAdded'==_0x70ea05||'isAddSuggestion'==_0x70ea05?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x70ea05||'isRemoveSuggestion'==_0x70ea05},'createdAt':new Date(),'rootName':_0x2a7df9});_0x5e8c7a['push'](_0x29edae),_0x5d17c2['markers']['set']('revision:'+_0x29edae['id'],_0xd21d2a);}function _0x2ed8c1(_0x51e8a4,_0xbb281c){const _0x2a324c=_0x51e8a4['getAttributes'](),_0x26dc79=_0xbb281c['getAttributes']();for(const _0x9cae12 of _0x2a324c){if(_0x9cae12[0x1]!==_0xbb281c['getAttribute'](_0x9cae12[0x0]))return!0x1;_0x26dc79['next']();}return _0x26dc79['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a2877=>{const _0x3846d5=_0x3a2877['markerName']['split'](':')[0x1],_0x33c124=this['_getChangeFromId'](_0x3846d5);if(!_0x33c124)return null;const _0x38e15f='add'==_0x33c124['type']?'insertion':'deletion',_0x2122ca=['ck-suggestion-marker','ck-suggestion-marker-'+_0x38e15f];return _0x33c124['data']['isSuggestion']&&_0x2122ca['push']('ck-suggestion-marker-'+_0x38e15f+'-new'),this['activeChange']==_0x33c124&&_0x2122ca['push']('ck-suggestion-marker--active'),{'classes':_0x2122ca,'attributes':{'data-change-id':_0x3846d5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x35f61a=>{_0x35f61a['on']('element:pre',(_0x2ab789,_0x3c4e39,_0x45a252)=>{const _0x47c11f=_0x3c4e39['viewItem']['getChild'](0x0);if(!_0x47c11f||!_0x47c11f['is']('element','code'))return;if(!_0x45a252['consumable']['consume'](_0x47c11f,{'attributes':['vid_start','vid_end']}))return;const _0x14e7bc=_0x3c4e39['modelRange']['start']['nodeAfter'];_0x45a252['writer']['setAttribute']('vid_start',_0x47c11f['getAttribute']('vid_start'),_0x14e7bc),_0x45a252['writer']['setAttribute']('vid_end',_0x47c11f['getAttribute']('vid_end'),_0x14e7bc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5eda6d=>{_0x5eda6d['on']('element',(_0x1a9e70,_0x355b09,_0x6a2e5d)=>{if(!_0x6a2e5d['consumable']['consume'](_0x355b09['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x355b09['modelRange']['isCollapsed'])return;const _0x5b9b90=_0x355b09['modelRange']['start']['nodeAfter'];_0x5b9b90['hasAttribute']('vid_start')||_0x5b9b90['hasAttribute']('vid')||(_0x6a2e5d['writer']['setAttribute']('vid_start',_0x355b09['viewItem']['getAttribute']('vid_start'),_0x5b9b90),_0x6a2e5d['writer']['setAttribute']('vid_end',_0x355b09['viewItem']['getAttribute']('vid_end'),_0x5b9b90));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1ca2ca=>_0x1ca2ca['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4dd5cc,[,_0x36d534])=>{['vid_start','vid_end','vid']['includes'](_0x36d534)&&(_0x4dd5cc['return']=!0x0,_0x4dd5cc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x121f50=>{_0x121f50['on']('attribute:vid',(_0x388800,_0x31f9d4,_0x42b5aa)=>{if('\x20'!=_0x31f9d4['item']['data']||_0x31f9d4['item']['parent']['maxOffset']>0x1)return;if(!_0x42b5aa['consumable']['consume'](_0x31f9d4['item'],_0x388800['name']))return;const _0x549ffc=_0x42b5aa['writer'],_0xcffcde=_0x42b5aa['mapper']['toViewRange'](_0x31f9d4['range']);_0x549ffc['wrap'](_0xcffcde,_0x549ffc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xca2748){const _0x4f02a5=_0xca2748['plugins']['get']('RevisionViewer');return(_0x58b9cd,_0x533627,_0x52ab4f)=>{const _0x3bc672=_0x533627['markerName']['split'](':')[0x1],_0x8306ce=_0x4f02a5['_getChangeFromId'](_0x3bc672);if(!_0x8306ce)return null;const _0x3326ff='add'==_0x8306ce['type']?'split':'merge';if(!_0x52ab4f['consumable']['test'](_0x533627['markerRange'],_0x58b9cd['name']))return;const _0x48dff8=_0x533627['markerRange']['getWalker'](),_0x44943e=_0x533627['markerRange']['start'],_0x4f6390=_0xca2748['model']['schema'];let _0x3d46cc=null,_0x583d34=null,_0x2ba479=!0x1,_0x17c54e=!0x1;for(const _0x14dbe6 of _0x48dff8){const _0x44f96e=_0x14dbe6['item'];_0x2ba479=_0x2ba479||_0x4f6390['isContent'](_0x44f96e);const _0x4ed3d9=_0x52ab4f['mapper']['toViewElement'](_0x44f96e);if(_0x4ed3d9&&_0x4ed3d9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x14dbe6['type']&&(_0x4f6390['isBlock'](_0x44f96e)&&!_0x4f6390['isLimit'](_0x44f96e)&&(_0x44f96e['nextSibling']||_0x44943e['isAtEnd']?_0x3d46cc&&_0x3d46cc['parent']==_0x44f96e||(_0x3d46cc=_0x44f96e,_0x5f5764(_0x14dbe6['previousPosition']),_0x17c54e=!0x0):_0x583d34=_0x583d34||_0x14dbe6['previousPosition']));}function _0x5f5764(_0x3f1b2f){const _0x1984fd=_0x52ab4f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3326ff}),_0x3d76c8=_0x52ab4f['mapper']['toViewPosition'](_0x3f1b2f);_0x8306ce['data']['isSuggestion']&&_0x52ab4f['writer']['addClass']('ck-suggestion-marker-'+_0x3326ff+'-new',_0x1984fd),_0x4f02a5['activeChange']==_0x8306ce&&_0x52ab4f['writer']['addClass']('ck-suggestion-marker--active',_0x1984fd),_0x52ab4f['writer']['insert'](_0x3d76c8,_0x1984fd),_0x52ab4f['mapper']['bindElementToMarker'](_0x1984fd,_0x533627['markerName']);}_0x2ba479||_0x17c54e||!_0x583d34||_0x5f5764(_0x583d34);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2fbb11,_0x65c15e,_0x1b35fb)=>{const _0x403e92=_0x1b35fb['mapper']['markerNameToElements'](_0x65c15e['markerName']);if(_0x403e92){for(const _0x428cc5 of _0x403e92)(_0x428cc5['hasClass']('ck-suggestion-marker-split')||_0x428cc5['hasClass']('ck-suggestion-marker-merge'))&&(_0x1b35fb['mapper']['unbindElementFromMarkerName'](_0x428cc5,_0x65c15e['markerName']),_0x1b35fb['writer']['remove'](_0x428cc5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47dbe6,_0x40f04a,_0x17b391)=>{const _0x6eb7dd=_0x40f04a['markerName']['split'](':')[0x1],_0x9361c6=this['_getChangeFromId'](_0x6eb7dd);if(!_0x9361c6)return null;const _0x397663='add'==_0x9361c6['type']?'split':'merge';if(_0x17b391['consumable']['test'](_0x40f04a['markerRange'],_0x47dbe6['name']))for(const _0x196905 of _0x40f04a['markerRange']['getItems']()){if(!_0x196905['is']('element','softBreak'))continue;const _0x4f0158=_0x17b391['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x397663}),_0x5d14f5=_0x17b391['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x196905));_0x9361c6['data']['isSuggestion']&&_0x17b391['writer']['addClass']('ck-suggestion-marker-'+_0x397663+'-new',_0x4f0158),this['activeChange']==_0x9361c6&&_0x17b391['writer']['addClass']('ck-suggestion-marker--active',_0x4f0158),_0x17b391['writer']['insert'](_0x5d14f5,_0x4f0158),_0x17b391['mapper']['bindElementToMarker'](_0x4f0158,_0x40f04a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5a4f9f=>{for(const _0x38528a of this['editor']['model']['document']['getRootNames']()){const _0x2e60c9=this['editor']['model']['document']['getRoot'](_0x38528a),_0xf099d4=this['editor']['editing']['view']['document']['getRoot'](_0x38528a);if(_0xf099d4){const _0x491d4b=_0x2e60c9['getAttribute']('revisionHistoryAttachChange');if(_0x5a4f9f['removeAttribute']('data-change-id',_0xf099d4),_0x5a4f9f['removeClass']('ck-revision-history-root-add',_0xf099d4),_0x5a4f9f['removeClass']('ck-revision-history-root-remove',_0xf099d4),_0x5a4f9f['removeClass']('ck-revision-history-root--active',_0xf099d4),_0x491d4b){const _0x365ee8=this['_getChangeFromId'](_0x491d4b);if(!_0x365ee8)return null;_0x5a4f9f['setAttribute']('data-change-id',_0x491d4b,_0xf099d4),_0x5a4f9f['addClass']('ck-revision-history-root-'+_0x365ee8['type'],_0xf099d4),this['activeChange']==_0x365ee8&&_0x5a4f9f['addClass']('ck-revision-history-root--active',_0xf099d4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31627e=>'revision-comment:'+_0x31627e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa48dd5=>'revision-suggestion:'+_0xa48dd5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b4d0c=>({'name':'suggestion:'+_0x2b4d0c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1638da=>{const _0x3fba44=_0x1638da['markerName']['split'](':')[0x1];return'insertion'!=_0x3fba44&&'deletion'!=_0x3fba44?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3fba44]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x53ed82,_0x32bc79,_0x2d6d8d)=>{const _0x171ea8=_0x2d6d8d['mapper']['markerNameToElements'](_0x32bc79['markerName']);if(_0x171ea8){for(const _0x4d890c of _0x171ea8)_0x4d890c['is']('uiElement')&&(_0x2d6d8d['mapper']['unbindElementFromMarkerName'](_0x4d890c,_0x32bc79['markerName']),_0x2d6d8d['writer']['remove'](_0x4d890c));}},{'priority':'high'});}['_getChangeFromId'](_0x5c5f36){return this['_changeIdToChange']['get'](_0x5c5f36);}['_getViewForChange'](_0x549ae7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x549ae7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x273c09,_0x3fd2a3,_0x57a887,_0x39917f)=>{_0x39917f&&this['_balloon']['remove'](_0x39917f),_0x57a887&&(this['_balloon']['add']({'view':_0x57a887,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f4dc8=this['editor']['editing'],_0x5240e8=this['_getChangeFromId'](_0x57a887['changeId']);let _0x3974c9;if(_0x5240e8['data']['isOnRoot']){const _0x12fe6a=_0x5f4dc8['view']['getDomRoot'](_0x5240e8['rootName']);_0x3974c9=Array['from'](_0x12fe6a['getClientRects']());}else{const _0x6f0904=this['editor']['model']['markers']['get']('revision:'+_0x57a887['changeId']);_0x3974c9=Array['from'](_0x5f4dc8['mapper']['markerNameToElements'](_0x6f0904['name']))['map'](_0x909f9a=>_0x5f4dc8['view']['domConverter']['mapViewToDom'](_0x909f9a))['map'](_0x1eaded=>Array['from'](_0x1eaded['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3974c9[0x0];return _0x3974c9['find'](_0x5c8a85=>_0x5c8a85['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c8a85['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c8a85['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c8a85['right']+0x3>=this['_activeViewTarget']['x'])||_0x3974c9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x13c8b3,_0x2d3d0e,_0x20cf6c,_0x2fc252)=>{this['activeView']=_0x20cf6c?this['_getViewForChange'](_0x20cf6c):null,this['editor']['model']['change'](()=>{const _0x4e66fd=this['editor']['editing'];_0x2fc252&&(_0x2fc252['data']['isOnRoot']?_0x4e66fd['view']['change'](_0x3c2476=>{_0x3c2476['removeClass']('ck-revision-history-root--active',_0x4e66fd['view']['document']['getRoot'](_0x2fc252['rootName']));}):_0x4e66fd['reconvertMarker']('revision:'+_0x2fc252['id'])),_0x20cf6c&&(_0x20cf6c['data']['isOnRoot']?_0x4e66fd['view']['change'](_0x3434c7=>{_0x3434c7['addClass']('ck-revision-history-root--active',_0x4e66fd['view']['document']['getRoot'](_0x20cf6c['rootName']));}):_0x4e66fd['reconvertMarker']('revision:'+_0x20cf6c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3fe918,_0x1f3dfc)=>{if(this['activeChange'])return;const _0x1a1bb9=this['_findChangeIdFromDomTarget'](_0x1f3dfc['target']),_0x340152=this['_changeIdToChange']['get'](_0x1a1bb9);_0x340152?(this['_activeViewTarget']={'x':_0x1f3dfc['domEvent']['x'],'y':_0x1f3dfc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x340152)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2b3815,_0x3d1d47)=>{const _0x381084=this['_findChangeIdFromDomTarget'](_0x3d1d47['target']),_0x32479c=this['_changeIdToChange']['get'](_0x381084);_0x32479c?(this['_activeViewTarget']={'x':_0x3d1d47['domEvent']['x'],'y':_0x3d1d47['domEvent']['y']},_0x32479c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x32479c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5110bd){do{const _0x1be72d=_0x5110bd['getAttribute']('data-change-id');if(_0x1be72d)return _0x1be72d;_0x5110bd=_0x5110bd['parent'];}while(_0x5110bd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a2a7e=>{for(const _0x3165af of this['editor']['model']['markers'])_0x1a2a7e['removeMarker'](_0x3165af);});}}function tt(_0x5de902,_0x243cd0){return(_0x154214,_0x1488b0,_0x5c033d)=>{if(!_0x5c033d['consumable']['test'](_0x1488b0['markerRange'],_0x154214['name']))return;const _0x332992=_0x1488b0['markerRange']['getWalker'](),_0x29c12c=_0x1488b0['markerRange']['start'],_0x6651e9=_0x5de902['model']['schema'];let _0x1bc802=null,_0x71c2f6=null,_0x20ed21=!0x1,_0xfe7805=!0x1;for(const _0xf6dd6b of _0x332992){const _0x5d07b9=_0xf6dd6b['item'];_0x20ed21=_0x20ed21||_0x6651e9['isContent'](_0x5d07b9);const _0x1bfbdd=_0x5c033d['mapper']['toViewElement'](_0x5d07b9);if(_0x1bfbdd&&_0x1bfbdd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf6dd6b['type']&&(_0x6651e9['isBlock'](_0x5d07b9)&&!_0x6651e9['isLimit'](_0x5d07b9)&&(_0x5d07b9['nextSibling']||_0x29c12c['isAtEnd']?_0x1bc802&&_0x1bc802['parent']==_0x5d07b9||(_0x1bc802=_0x5d07b9,_0x47a3bc(_0xf6dd6b['previousPosition']),_0xfe7805=!0x0):_0x71c2f6=_0x71c2f6||_0xf6dd6b['previousPosition']));}function _0x47a3bc(_0x20ed63){const _0x47f980=_0x5c033d['mapper']['toViewPosition'](_0x20ed63),_0x2e2f57=_0x5c033d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x243cd0});_0x5c033d['writer']['insert'](_0x47f980,_0x2e2f57),_0x5c033d['mapper']['bindElementToMarker'](_0x2e2f57,_0x1488b0['markerName']);}_0x20ed21||_0xfe7805||!_0x71c2f6||_0x47a3bc(_0x71c2f6);};}class _t extends _0x12cb3f{constructor(_0x5c1f40){super(_0x5c1f40);const _0x44a460=_0x5c1f40['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x44a460,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x44a460,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4ae8ee=this['editor'],_0x1e581b=_0x4ae8ee['plugins']['get'](d),_0x1f6af0=_0x1e581b['isReady']?_0x1e581b['diff']['newRevisionId']:null;_0x4ae8ee['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f6af0);}['refresh'](){const {isReady:_0x36a02d,isEnabled:_0x100635}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x36a02d&&_0x100635;}}class yt extends _0x12cb3f{['_step'];constructor(_0x20f051,{direction:_0x4068c8}){super(_0x20f051);const _0x2bd458=_0x20f051['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4068c8?0x1:-0x1,this['listenTo'](_0x2bd458,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bd458,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2bd458,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xd14bc1=this['editor'],_0x3ef4d3=_0xd14bc1['plugins']['get'](d),{isNavigationMode:_0x1f3c07,currentChangeNumber:_0xb69c38}=_0x3ef4d3;let _0x1a94c0;if(_0x3ef4d3['activeChange']=_0x1f3c07?_0x3ef4d3['diff']['changes']['get'](_0xb69c38+this['_step']):_0x3ef4d3['diff']['changes']['first'],_0x3ef4d3['activeChange']['data']['isOnRoot'])_0x1a94c0=_0xd14bc1['editing']['view']['getDomRoot'](_0x3ef4d3['activeChange']['rootName']);else{const _0x142561=_0xd14bc1['model']['markers']['get']('revision:'+_0x3ef4d3['activeChange']['id']);_0x1a94c0=_0x57bd90(_0xd14bc1['editing'],_0x142561);}_0xc8b0a1({'target':_0x1a94c0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x37ae4e,currentChangeNumber:_0x1aab0a,numberOfChanges:_0x2c8934,isReady:_0xfb4af4,isEnabled:_0x58682e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x58682e&&_0xfb4af4&&_0x2c8934)&&(!_0x37ae4e||(0x1===this['_step']?_0x1aab0a<_0x2c8934-0x1:_0x1aab0a>0x0));}}class li extends ts{constructor(_0x585158){super(_0x585158);const _0x267fba=this['bindTemplate'],_0x2dab2d=new te(_0x585158),_0x2fe790=new te(_0x585158);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',(_0x18fccf,_0x1e2f93)=>_0x18fccf&&_0x1e2f93>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2443fe,_0x300d58,_0x1c706a,_0x28d8a0)=>{if(!_0x2443fe)return R(_0x585158,'Loading...');if(!_0x1c706a)return R(_0x585158,'No\x20changes');const _0x5ac55d=R(_0x585158,'NUMBER_OF_CHANGES',_0x1c706a);return _0x28d8a0?R(_0x585158,'X_OF_Y_CHANGES',[_0x300d58+0x1,_0x1c706a]):_0x5ac55d;}),_0x2dab2d['set']({'label':R(_0x585158,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2fe790['set']({'label':R(_0x585158,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2dab2d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2fe790['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2dab2d['on']('execute',()=>this['fire']('execute','backward')),_0x2fe790['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',_0x267fba['if']('_isStatusLabelVisible','ck-hidden',_0x35ee13=>!_0x35ee13)]},'children':[{'text':_0x267fba['to']('isNavigationMode',_0x1878cc=>_0x1878cc?R(_0x585158,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x585158,'Total')+':\x20')}]},{'text':_0x267fba['to']('_statusText')}]},new _0x2a8d19(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2dab2d,_0x2fe790]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x18ce1a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1194e7=this['editor']['editing']['view'];_0x1194e7['change'](_0x3b2f7a=>{for(const _0x2cd00f of _0x1194e7['document']['roots'])_0x3b2f7a['addClass'](le,_0x2cd00f);});}['hide'](){const _0x3c2d5f=this['editor']['editing']['view'];_0x3c2d5f['change'](_0x298823=>{for(const _0x1fd1d2 of _0x3c2d5f['document']['roots'])_0x298823['removeClass'](le,_0x1fd1d2);});}}class m extends _0x18ce1a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x38c139=this['editor'],_0x57e377=_0x38c139['plugins']['get'](d),_0x335a93=_0x38c139['plugins']['get'](ge);_0x38c139['ui']['componentFactory']['add']('exitToEditing',_0x53e7df=>{const _0x497260=new te(_0x53e7df);return _0x497260['set']({'label':R(_0x53e7df,'Back\x20to\x20editing'),'icon':_0x4c8f5a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x497260,'execute',()=>{_0x38c139['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x497260;}),_0x38c139['ui']['componentFactory']['add']('restoreRevision',_0x3ed1a3=>{const _0x313da2=new te(_0x3ed1a3);return _0x313da2['set']({'label':R(_0x3ed1a3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x313da2['bind']('isEnabled')['to'](_0x38c139['commands']['get']('restoreRevision')),this['listenTo'](_0x313da2,'execute',()=>_0x38c139['execute']('restoreRevision')),_0x313da2;}),_0x38c139['ui']['componentFactory']['add']('changesNavigation',_0x55a68e=>{const _0x8aaee8=new li(_0x55a68e),_0x1cf22b=_0x38c139['commands']['get']('showPreviousChange'),_0x2a8104=_0x38c139['commands']['get']('showNextChange');return _0x8aaee8['bind']('isBackwardNavigationEnabled')['to'](_0x1cf22b,'isEnabled'),_0x8aaee8['bind']('isForwardNavigationEnabled')['to'](_0x2a8104,'isEnabled'),_0x8aaee8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x57e377),this['listenTo'](_0x8aaee8,'execute',(_0x5eb2c3,_0xb8de26)=>{_0x38c139['execute']('forward'===_0xb8de26?'showNextChange':'showPreviousChange');}),_0x8aaee8;}),_0x335a93['show'](),_0x57e377['on']('change:isReady',(_0x7837fa,_0x1bda63,_0x47763f)=>{_0x47763f?_0x335a93['hide']():_0x335a93['show']();});}}class pt extends _0x4e9da2{['_resizeObserver']=null;constructor(_0x50e527,_0x394d07){super(_0x50e527,_0x394d07);const _0x208d86=this['bindTemplate'];this['set']({'label':R(_0x50e527,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x50e527,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x208d86['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3cbb73=this['fieldView']['element'];this['_tooltipString']=_0x3cbb73['scrollWidth']>_0x3cbb73['clientWidth']&&_0x3cbb73['value']||'';}}class ri extends ts{constructor(_0xd95b84,_0x43a1bd,_0x656098){super(_0xd95b84);const _0x507d2d=new _0x53e56c();_0x507d2d['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5a0970=['ck','ck-revision-history-sidebar__revision-author'];_0x656098&&_0x5a0970['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5eccda=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xd95b84,_0x656098?'Revision\x20creator':'Revision\x20author')},'children':[_0x507d2d,_0x43a1bd['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a0970},'children':_0x5eccda});}}function oi(_0x31a1ed,_0x2d52fe){const _0x5971b6=_0x31a1ed['bindTemplate'],_0x7a3147=_0x31a1ed['locale'],_0x3d1f06=_0x397b70(_0x7a3147);_0x3d1f06['panelPosition']='sw';const _0xeffea5=function(_0x437107,_0x335109){const _0x2c33e1=function(_0x592df0,_0x93c2f6){const _0x4c256a=_0x592df0['locale'],_0x2ab8b4={'Compare\x20against\x20selected':R(_0x4c256a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4c256a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4c256a,'Restore\x20this\x20revision')};return _0x93c2f6['map'](_0xd91b1=>{const _0x137176=_0x2ab8b4[_0xd91b1['name']];return _0x137176&&_0x137176!==_0xd91b1['name']&&(_0xd91b1['name']=_0x137176),_0xd91b1;});}(_0x437107,_0x335109),_0x8c38eb=new _0x217079();for(const _0x4b22d0 of _0x2c33e1){const _0xd48080={'type':'button','model':new _0x2de829({'label':_0x4b22d0['name'],'class':_0x4b22d0['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b22d0['action']})};_0xd48080['model']['bind']('isEnabled')['to'](_0x437107,'isActionsDropdownOpen',_0x106f48=>'function'!=typeof _0x4b22d0['isEnabled']||(!_0x106f48||_0x4b22d0['isEnabled'](_0x437107))),_0x8c38eb['add'](_0xd48080);}return _0x8c38eb;}(_0x31a1ed,_0x2d52fe);return _0x31a1ed['bind']('isActionsDropdownOpen')['to'](_0x3d1f06,'isOpen'),_0x3d1f06['buttonView']['set']({'label':R(_0x7a3147,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4c8f5a['threeVerticalDots']}),_0x3d1f06['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5971b6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5971b6['to'](_0x5943cd=>_0x5943cd['stopPropagation']())}}),_0x3d1f06['on']('execute',_0x3becbc=>{_0x31a1ed['isReady']&&'function'==typeof _0x3becbc['source']['_action']&&_0x3becbc['source']['_action'](_0x31a1ed);}),to(_0x3d1f06,_0xeffea5,{'role':'menu'}),_0x3d1f06['listenTo'](_0x31a1ed,'change:isActionsDropdownOpen',(_0x4ea42d,_0xa64157,_0x4009e2)=>{if(_0x4009e2)for(const _0x2f4921 of _0x3d1f06['listView']['items']){const _0x43be33=_0x2f4921['children']['first'],_0x4234c1=_0x2d52fe['find'](_0x4a169d=>_0x4a169d['action']===_0x43be33['_action'])['isVisible'];_0x2f4921['isVisible']=void 0x0===_0x4234c1||_0x4234c1(_0x31a1ed);}}),_0x3d1f06;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4a1a06,_0x28f86d,_0x3f8a8f,_0x2312a9){super(_0x4a1a06);const _0x122df1=this['bindTemplate'],_0x52b21b=function(_0x5809f3,_0x1750b6){const _0x218b3b=Array['from'](_0x1750b6['authors'])['filter'](_0x8e6a8a=>_0x8e6a8a!=_0x1750b6['creator']);return _0x1750b6['creator']&&_0x218b3b['unshift'](_0x1750b6['creator']),_0x218b3b['map'](_0x39b8fb=>new ri(_0x5809f3,_0x39b8fb,_0x39b8fb==_0x1750b6['creator']));}(_0x4a1a06,_0x28f86d);this['id']=_0x28f86d['id'],this['_revision']=_0x28f86d,this['_requireRevisionName']=_0x2312a9,this['bind']('name','createdAt')['to'](_0x28f86d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x10f677=>{return _0x3f6576=_0x4a1a06['uiLanguage'],(_0x38903a=_0x10f677)['toLocaleDateString'](_0x3f6576,{'month':'long','day':'numeric'})+',\x20'+_0x38903a['toLocaleTimeString'](_0x3f6576,{'hour':'numeric','minute':'numeric'});var _0x3f6576,_0x38903a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x4a1a06,_0x1f4481),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5f148c=>_0x5f148c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x477e44,_0x55dc63)=>_0x477e44&&_0x55dc63),this['revisionActionsView']=_0x3f8a8f&&_0x3f8a8f['length']?oi(this,_0x3f8a8f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x122df1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x122df1['if']('isEnabled','ck-disabled',_0x569bf6=>!_0x569bf6),_0x122df1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x122df1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x122df1['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':_0x122df1['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':_0x52b21b}]},this['revisionActionsView']],'on':{'click':_0x122df1['to'](_0xe7c133=>{_0xe7c133['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4f34be=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4f34be,'change',()=>{this['_requireRevisionName']&&!_0x4f34be['value']||this['fire']('setName',{'id':this['id'],'name':_0x4f34be['value']}),_0x4f34be['value']||(_0x4f34be['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x4f3480,_0x423eb7){const _0x17f120=_0x2c8970['fromJSDate'](_0x4f3480)['setLocale'](_0x423eb7),_0x18ce4a=_0x2c8970['local'](),_0x21dbf2=_0x18ce4a['minus']({'days':0x1})['startOf']('day');let _0x13ae52,_0x416a2a;return _0x17f120['hasSame'](_0x18ce4a,'day')?(_0x13ae52=_0x17f120['startOf']('day')['toJSDate'](),_0x416a2a=_0x17f120['toRelativeCalendar']()):_0x17f120['hasSame'](_0x21dbf2,'day')?(_0x13ae52=_0x21dbf2['toJSDate'](),_0x416a2a=_0x17f120['toRelativeCalendar']()):_0x17f120['hasSame'](_0x18ce4a,'week')?(_0x13ae52=_0x17f120['startOf']('week')['toJSDate'](),_0x416a2a=_0x17f120['weekdayLong']||''):_0x17f120['hasSame'](_0x18ce4a,'year')?(_0x13ae52=_0x17f120['startOf']('month')['toJSDate'](),_0x416a2a=_0x17f120['monthLong']||''):(_0x13ae52=_0x17f120['startOf']('year')['toJSDate'](),_0x416a2a=String(_0x17f120['year'])),{'startDate':_0x13ae52,'localizedPeriodName':_0x416a2a};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x21ba66,_0xc2d45c,_0x3b59b9,_0x3e72c1){super(_0x21ba66);const _0x2fc067=ci(_0xc2d45c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xc2d45c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3b59b9,this['_requireRevisionName']=_0x3e72c1,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':_0x2fc067}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2f4e08){const _0x282d2a=new hi(this['locale'],_0x2f4e08,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x282d2a);}['removeRevision'](_0x3d9071){const _0x1e090b=this['revisionViews']['find'](_0x4d3a90=>_0x4d3a90['id']===_0x3d9071['id']);this['revisionViews']['remove'](_0x1e090b);}}class as extends ts{constructor(_0x9d8ed5){super(_0x9d8ed5);const _0x6ec723=new _0x53e56c();_0x6ec723['content']=_0x4c8f5a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x6ec723,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x9d8ed5,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x56cd8d,_0x3bb14b,_0x354836,_0x2c91b2){super(_0x56cd8d);const _0x1b3335=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3bb14b,this['_revisionActions']=_0x354836,this['_requireRevisionName']=_0x2c91b2,this['on']('select',(_0xaaf35b,_0x32c94f)=>{this['fire']('revisionSelected',_0x32c94f);}),this['on']('setName',(_0x27f2df,_0x5a9efb)=>{this['fire']('revisionSetName',_0x5a9efb);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x56cd8d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1b3335['if']('isEnabled','ck-disabled',_0x1911c9=>!_0x1911c9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x16d41b of this['_revisions'])this['_addRevision'](_0x16d41b);this['_revisions']['on']('add',(_0x1678ae,_0x4695ff)=>{this['_addRevision'](_0x4695ff);}),this['_revisions']['on']('remove',(_0x4d8ffb,_0x9540cf)=>{this['_removeRevision'](_0x9540cf);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5d74fe=>_0x5d74fe['revisionViews']['map'](_0xd1ac38=>_0xd1ac38))['flat']();}['selectRevision'](_0x2dfa8f){for(const _0x54f0e8 of this['revisionViews'])_0x2dfa8f&&_0x2dfa8f['id']===_0x54f0e8['id']?_0x54f0e8['select']():_0x54f0e8['deselect']();}['highlightRevisions'](_0x4d476d){for(const _0x1a0ed3 of this['revisionViews'])_0x4d476d['some'](({id:_0x694630})=>_0x694630===_0x1a0ed3['id'])?_0x1a0ed3['highlight']():_0x1a0ed3['unhighlight']();}['_addRevision'](_0x2342fc){const _0x3cc6c9=ci(_0x2342fc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16989f=this['timePeriodViews']['get'](0x0);_0x16989f&&_0x16989f['startDate']['getTime']()===_0x3cc6c9['getTime']()||(_0x16989f=new ai(this['locale'],_0x3cc6c9,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16989f)),_0x16989f['addRevision'](_0x2342fc);}['_removeRevision'](_0x5a2df2){const _0x259fa9=ci(_0x5a2df2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x259fa9)['removeRevision'](_0x5a2df2);}['_getTimePeriodViewByStartDate'](_0xe43429){return this['timePeriodViews']['find'](_0x21f94a=>_0x21f94a['startDate']['getTime']()===_0xe43429['getTime']());}}class g extends _0x18ce1a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x6d9f0){super(_0x6d9f0),this['_revisionViewer']=_0x6d9f0['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x384b98=this['_revisionsRepository']['_revisions'],_0x4ea37d=this['_createRevisionActions'](),_0x25b1ed=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x384b98,_0x4ea37d,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',(_0x10e77b,_0x5d658b)=>{_0x5d658b['revisionViews']['on']('add',(_0x4ac266,_0x212189)=>{_0x212189['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)),_0x25b1ed['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3a62a2=this['_revisionsRepository']['getRevision'](0x0);if(_0x3a62a2){const _0x4bfa8e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a62a2['id']);this['_revisionViewer']['compare'](_0x3a62a2,_0x4bfa8e);}}['_handleRevisionSelected'](_0x4a7946,_0x4002c5){const _0x4f9863=this['_revisionsRepository']['getRevision'](_0x4002c5['id']),_0x3b60b2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4f9863['id']);this['_revisionViewer']['compare'](_0x4f9863,_0x3b60b2);}['_handleRevisionSetName'](_0x11916d,_0x3dfb89){this['_revisionsRepository']['getRevision'](_0x3dfb89['id'])['setName'](_0x3dfb89['name']);}['_handleDiffChange'](_0x2c88d5,_0x5731b7,_0x4de62e){const _0x15cb64=this['_revisionsRepository']['getRevisionsInDiff'](_0x4de62e);_0x15cb64['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x15cb64),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x15cb64[0x0]));}['_createRevisionActions'](){const _0x276dcc=this['editor'],_0x40449c=g['availableRevisionActions'],_0x19b63d=_0x276dcc['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x19b63d['length'])return _0x19b63d['map'](_0x8d7cb3=>{const _0x5e9dcd='string'==typeof _0x8d7cb3?Object['assign']({},_0x40449c[_0x8d7cb3]):_0x8d7cb3;return _0x5e9dcd['action']=_0x5e9dcd['action']['bind'](this,_0x276dcc),_0x5e9dcd['isVisible']&&(_0x5e9dcd['isVisible']=_0x5e9dcd['isVisible']['bind'](this,_0x276dcc)),_0x5e9dcd;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x12a87b},_0x550896)=>{const _0x494c12=_0x12a87b['get'](d),_0x120796=_0x494c12['repository'];let _0x5eb38f=_0x494c12['diff']['newRevisionId'],_0x336769=_0x550896['id'];_0x120796['getIndex'](_0x5eb38f)>_0x120796['getIndex'](_0x336769)&&([_0x5eb38f,_0x336769]=[_0x336769,_0x5eb38f]),_0x494c12['compare'](_0x5eb38f,_0x336769);},'isVisible':({plugins:_0x19ac11},_0x18a7f3)=>{const _0x437069=_0x19ac11['get'](d);return!(_0x437069['repository']['getRevisionsInDiff'](_0x437069['diff'])['length']>0x2)&&!_0x18a7f3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x31a716,{id:_0x1d6f8f})=>{_0x31a716['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1d6f8f);},'isVisible':({plugins:_0x2baf38},_0x564f98)=>!!_0x2baf38['get'](d)['repository']['getLaterVisibleRevision'](_0x564f98['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x39ae92},{id:_0x493ba7,revisionNameView:_0x3b75f5})=>{const _0x24371f=_0x39ae92['get'](d),_0x480b10=_0x24371f['repository']['getEarlierVisibleRevision'](_0x493ba7);_0x24371f['compare'](_0x493ba7,_0x480b10),_0x3b75f5['focus'](),_0x3b75f5['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x431e4d,_0x492042){super(_0x431e4d),this['_view']=_0x492042,this['_toolbarConfig']=ht(_0x431e4d['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x342764){const _0x43c013=this['editor'],_0x18010d=this['view'],_0x3b0798=_0x43c013['editing']['view'],_0x346b09=_0x18010d['editable'],_0x1b6bd4=_0x3b0798['document']['getRoot']();_0x346b09['name']=_0x1b6bd4['rootName'],_0x18010d['render']();const _0x20de01=_0x346b09['element'];this['setEditableElement'](_0x346b09['name'],_0x20de01),_0x18010d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3b0798['attachDomRoot'](_0x20de01),this['_elementReplacer']['replace'](_0x342764,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x44890c=this['view'],_0xd8e92d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xd8e92d['detachDomRoot'](_0x44890c['editable']['name']),_0x44890c['destroy']();}['_initToolbar'](){const _0x5879f2=this['view'];_0x5879f2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5879f2['stickyPanel']['limiterElement']=_0x5879f2['element'],_0x5879f2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x18f506})=>_0x18f506),_0x5879f2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5879f2['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4d0b15,_0x319fb5,_0x7436e9={}){super(_0x4d0b15),this['stickyPanel']=new lt(_0x4d0b15),this['toolbar']=new nt(_0x4d0b15,{'shouldGroupWhenFull':_0x7436e9['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4d0b15,_0x319fb5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x39dfba,_0x3d3f53){super(_0x3d3f53),this['sourceElement']=_0x39dfba,this['model']['document']['createRoot']();const _0x15cffa=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x15cffa);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x416f29,_0x788ad1){const _0x34043a=new this(_0x416f29,_0x788ad1);return await _0x34043a['initPlugins'](),await _0x34043a['ui']['init'](_0x416f29),await _0x34043a['data']['init'](_0x34043a['config']['get']('initialData')||''),_0x34043a['fire']('ready'),_0x34043a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x3472f2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a9edc){function _0x45f659(_0x57089c){return _0x57089c['map'](_0x1d29e6=>String['fromCharCode'](_0x1d29e6))['join']('');}super(_0x1a9edc),this['result']='end',_0x1a9edc[_0x45f659([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45f659([0x76,0x69,0x65,0x77])][_0x45f659([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45f659([0x61,0x75,0x74,0x6f]),_0x1a9edc[_0x45f659([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45f659([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45f659([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45f659([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45f659([0x6f,0x6b])});}}class H extends _0x3472f2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5a99fe){if(super(_0x5a99fe),!this['editor']['config']['get']('revisionHistory'))throw new _0x31144e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x16c955=>this['_showRevisionViewer']({..._0x16c955,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2db6fd=>this['_closeRevisionViewer'](_0x2db6fd)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x300070=>this['_restoreRevision'](_0x300070)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x325aec){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x325aec;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x518c82){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x518c82);}['getRevision'](_0x5b38a4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5b38a4);}['getRevisions'](_0xd5c1c9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xd5c1c9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x31dab1=this['editor'],_0x464dae=_0x55347b(_0x31dab1,p),_0x174ef9=_0x31dab1['plugins']['get']('RevisionTracker'),_0x58ace2=_0x31dab1['plugins']['get']('Users')['users'];return _0x464dae['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x464dae['lazyRoots'],(_0x464dae['plugins']['push'](k,d,m,class extends _0x3472f2{static get['requires'](){return[d,'Users'];}['init'](){const _0x4bfbf4=this['editor']['plugins']['get']('Users');for(const _0x1d41dc of _0x58ace2)_0x1d41dc['isAnonymous']||_0x4bfbf4['getUser'](_0x1d41dc['id'])||_0x4bfbf4['addUser'](_0x1d41dc);const _0x2ebf9d=_0x174ef9['repository']['getRevisions']();let _0xe5dcf6=null;const _0x31692a=this['editor']['plugins']['get']('RevisionViewer');_0x31692a['adapter']=_0x174ef9['adapter'],_0x31692a['bind']('isEnabled')['to'](_0x174ef9),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x31dab1,'isReadOnly',_0x5c6323=>!_0x5c6323);for(const _0x32078f of _0x2ebf9d){const _0x1be37b=null===_0x32078f['creator'];if(_0x1be37b&&_0x32078f['toVersion']===_0x32078f['fromVersion'])continue;const _0x198b7a=_0x32078f['toJSON']();_0x31692a['addRevisionData'](_0x198b7a,(_0x410707,_0x45ff97,_0x101f8e)=>{if(_0x1be37b){if(_0xe5dcf6)_0xe5dcf6['_update'](_0x410707,_0x45ff97);else{if(!_0x45ff97){const _0x23a7ab=_0x101f8e['toJSON']();_0x23a7ab['id']=_0x48d30f(),_0x174ef9['saveRevision'](_0x23a7ab,_0x101f8e['toVersion'])['then'](_0x2f32c5=>{_0xe5dcf6=_0x2f32c5;});}}}else _0x32078f['_update'](_0x410707,_0x45ff97);});}}},g),_0x464dae);}['_enhanceShowRevisionViewerCallback'](){const _0x4f3ae9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4a3efe=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bf379=this['editor']['plugins']['get']('Autosave');await _0x4bf379['save']();}else await _0x4a3efe['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x15d966=this['editor']['plugins']['get']('Dialog');_0x15d966['isOpen']&&_0x15d966['hide']();}const _0x23e2bb=this['_getRevisionViewerEditorConfig']();return _0x4f3ae9(_0x23e2bb)['then'](_0x41dba8=>{return(this['_viewerEditor']=_0x41dba8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x41dba8;})['catch'](_0x3c691b=>(console['error'](_0x3c691b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2ef479=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2ef479(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x182de9=this['editor']['plugins']['get']('Annotations');_0x182de9['refreshVisibility'](),_0x182de9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1e2564){const _0x509395=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3a0a26=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2281da=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2281da,_0x1e2564)['then'](_0x47f59f=>(_0x3a0a26['style']['display']='block',_0x509395['style']['display']='none',_0x47f59f));}['_closeRevisionViewer'](_0x245e43){const _0x5527b4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5527b4['style']['display']='',_0x245e43['destroy']();}async['_restoreRevision'](_0x7809e0){const _0x181eaa=this['editor'],_0x2863df=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2ff80a=_0x181eaa['plugins']['get']('RevisionTracker'),_0x6fef2e=_0x2863df['repository']['getRevision'](_0x7809e0);let _0x4423bf,_0x2a2a5c,_0x1d62a0;try{_0x4423bf=await _0x2863df['getRevisionData'](_0x6fef2e),_0x2a2a5c=await _0x2863df['getRevisionRootsAttributes'](_0x6fef2e);}catch(_0x2de2e9){return void console['error'](_0x2de2e9);}_0x181eaa['model']['change'](_0x2583ba=>{for(const _0x54f5ba of Array['from'](_0x181eaa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2583ba['removeMarker'](_0x54f5ba);}),_0x2863df['isReady']=!0x1,_0x181eaa['model']['enqueueChange'](_0x15499d=>{_0x15499d['setSelection'](null),_0x15499d['removeSelectionAttribute'](_0x181eaa['model']['document']['selection']['getAttributeKeys']());const _0x2c0e2c=Object['keys'](_0x4423bf);for(const _0x4c4f53 of _0x181eaa['model']['document']['roots'])'$graveyard'!=_0x4c4f53['rootName']&&_0x4c4f53['isAttached']()&&!_0x2c0e2c['includes'](_0x4c4f53['rootName'])&&_0x15499d['detachRoot'](_0x4c4f53);for(const _0x149be5 of _0x2c0e2c){let _0x465b99=_0x181eaa['model']['document']['getRoot'](_0x149be5);_0x465b99&&_0x465b99['isAttached']()||(_0x465b99=_0x15499d['addRoot'](_0x149be5));const _0x34b66d=_0x2a2a5c[_0x149be5],_0x55788e=Object['keys'](_0x34b66d),_0x5018c2=_0x4423bf[_0x149be5];for(const _0x58f203 of _0x465b99['getAttributeKeys']())_0x55788e['includes'](_0x58f203)||_0x15499d['removeAttribute'](_0x58f203,_0x465b99);for(const _0x4a70af of _0x55788e)_0x15499d['setAttribute'](_0x4a70af,_0x2a2a5c[_0x149be5][_0x4a70af],_0x465b99);_0x15499d['remove'](_0x15499d['createRangeIn'](_0x465b99)),_0x15499d['insert'](_0x181eaa['data']['parse'](_0x5018c2,_0x465b99),_0x465b99,0x0);}});const _0x4fd019=R(_0x181eaa['locale'],'Restored');if(_0x6fef2e['name'])_0x1d62a0=-0x1==_0x6fef2e['name']['indexOf'](_0x4fd019)?_0x4fd019+':\x20'+_0x6fef2e['name']:_0x6fef2e['name'];else _0x1d62a0=_0x4fd019+':\x20'+(_0x6fef2e['createdAt']['toLocaleDateString'](_0x181eaa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x6fef2e['createdAt']['toLocaleTimeString'](_0x181eaa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2ff80a['saveRevision']({'name':_0x1d62a0}),_0x2863df['isReady']=!0x0,_0x181eaa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x56c9e1){super(_0x56c9e1),this['_revisionViewer']=_0x56c9e1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x188935=this['_revisionsRepository']['_revisions'],_0x2ed23a=this['_createRevisionActions'](),_0x630939=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x188935,_0x2ed23a,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',(_0x3d2e0d,_0x1ee8bf)=>{_0x1ee8bf['revisionViews']['on']('add',(_0x116396,_0x54c24e)=>{_0x54c24e['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)),_0x630939['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x532c4c=this['_revisionsRepository']['getRevision'](0x0);if(_0x532c4c){const _0x31bdd4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x532c4c['id']);this['_revisionViewer']['compare'](_0x532c4c,_0x31bdd4);}}['_handleRevisionSelected'](_0x4a0711,_0x67c92d){const _0x3d1eec=this['_revisionsRepository']['getRevision'](_0x67c92d['id']),_0x591806=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d1eec['id']);this['_revisionViewer']['compare'](_0x3d1eec,_0x591806);}['_handleRevisionSetName'](_0x51d34d,_0x2b53e2){this['_revisionsRepository']['getRevision'](_0x2b53e2['id'])['setName'](_0x2b53e2['name']);}['_handleDiffChange'](_0x56a968,_0xd5814b,_0x40d707){const _0x1629f9=this['_revisionsRepository']['getRevisionsInDiff'](_0x40d707);_0x1629f9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1629f9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1629f9[0x0]));}['_createRevisionActions'](){const _0x570b23=this['editor'],_0x340a68=g['availableRevisionActions'],_0x407ecf=_0x570b23['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x407ecf['length'])return _0x407ecf['map'](_0x24d390=>{const _0x503107='string'==typeof _0x24d390?Object['assign']({},_0x340a68[_0x24d390]):_0x24d390;return _0x503107['action']=_0x503107['action']['bind'](this,_0x570b23),_0x503107['isVisible']&&(_0x503107['isVisible']=_0x503107['isVisible']['bind'](this,_0x570b23)),_0x503107;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4f79b0},_0x5d0704)=>{const _0x4be86d=_0x4f79b0['get'](d),_0x18a8a4=_0x4be86d['repository'];let _0x45c2cc=_0x4be86d['diff']['newRevisionId'],_0x210347=_0x5d0704['id'];_0x18a8a4['getIndex'](_0x45c2cc)>_0x18a8a4['getIndex'](_0x210347)&&([_0x45c2cc,_0x210347]=[_0x210347,_0x45c2cc]),_0x4be86d['compare'](_0x45c2cc,_0x210347);},'isVisible':({plugins:_0x174485},_0x445324)=>{const _0x213ef5=_0x174485['get'](d);return!(_0x213ef5['repository']['getRevisionsInDiff'](_0x213ef5['diff'])['length']>0x2)&&!_0x445324['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x568b10,{id:_0x3046fb})=>{_0x568b10['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3046fb);},'isVisible':({plugins:_0x4719e8},_0x2899d7)=>!!_0x4719e8['get'](d)['repository']['getLaterVisibleRevision'](_0x2899d7['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1b0a81},{id:_0xda4d8b,revisionNameView:_0x59b8f5})=>{const _0x54527d=_0x1b0a81['get'](d),_0x34288f=_0x54527d['repository']['getEarlierVisibleRevision'](_0xda4d8b);_0x54527d['compare'](_0xda4d8b,_0x34288f),_0x59b8f5['focus'](),_0x59b8f5['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4682e7,_0x1aad40){super(_0x4682e7),this['_view']=_0x1aad40,this['_toolbarConfig']=ht(_0x4682e7['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3306cd){const _0x5e38d5=this['editor'],_0x74e6de=this['view'],_0x293ab2=_0x5e38d5['editing']['view'],_0xfcac6a=_0x74e6de['editable'],_0x92eb6b=_0x293ab2['document']['getRoot']();_0xfcac6a['name']=_0x92eb6b['rootName'],_0x74e6de['render']();const _0x56bd02=_0xfcac6a['element'];this['setEditableElement'](_0xfcac6a['name'],_0x56bd02),_0x74e6de['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x293ab2['attachDomRoot'](_0x56bd02),this['_elementReplacer']['replace'](_0x3306cd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c76d8=this['view'],_0x34f402=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x34f402['detachDomRoot'](_0x4c76d8['editable']['name']),_0x4c76d8['destroy']();}['_initToolbar'](){const _0x3746ff=this['view'];_0x3746ff['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3746ff['stickyPanel']['limiterElement']=_0x3746ff['element'],_0x3746ff['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x366628})=>_0x366628),_0x3746ff['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3746ff['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x22665b,_0x56a27f,_0x362d25={}){super(_0x22665b),this['stickyPanel']=new lt(_0x22665b),this['toolbar']=new nt(_0x22665b,{'shouldGroupWhenFull':_0x362d25['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x22665b,_0x56a27f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3cfc15,_0x52b9a2){super(_0x52b9a2),this['sourceElement']=_0x3cfc15,this['model']['document']['createRoot']();const _0x597fed=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x597fed);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41e3b1,_0x1fb463){const _0x182cea=new this(_0x41e3b1,_0x1fb463);return await _0x182cea['initPlugins'](),await _0x182cea['ui']['init'](_0x41e3b1),await _0x182cea['data']['init'](_0x182cea['config']['get']('initialData')||''),_0x182cea['fire']('ready'),_0x182cea;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x18ce1a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56a889){function _0x3ff704(_0x228111){return _0x228111['map'](_0x4b2d38=>String['fromCharCode'](_0x4b2d38))['join']('');}super(_0x56a889),this['result']='end',_0x56a889[_0x3ff704([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ff704([0x76,0x69,0x65,0x77])][_0x3ff704([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ff704([0x61,0x75,0x74,0x6f]),_0x56a889[_0x3ff704([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ff704([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ff704([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ff704([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ff704([0x6f,0x6b])});}}class H extends _0x18ce1a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x25a128){if(super(_0x25a128),!this['editor']['config']['get']('revisionHistory'))throw new _0x4394a1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4d94a8=>this['_showRevisionViewer']({..._0x4d94a8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x535a35=>this['_closeRevisionViewer'](_0x535a35)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3859b6=>this['_restoreRevision'](_0x3859b6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2b40de){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2b40de;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x194248){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x194248);}['getRevision'](_0x588d3e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x588d3e);}['getRevisions'](_0x55a565){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x55a565||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20a879=this['editor'],_0x1da830=_0x5b1398(_0x20a879,p),_0x4bd47b=_0x20a879['plugins']['get']('RevisionTracker'),_0x25f52b=_0x20a879['plugins']['get']('Users')['users'];return _0x1da830['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1da830['lazyRoots'],(_0x1da830['plugins']['push'](k,d,m,class extends _0x18ce1a{static get['requires'](){return[d,'Users'];}['init'](){const _0x1e90de=this['editor']['plugins']['get']('Users');for(const _0x3c92fe of _0x25f52b)_0x3c92fe['isAnonymous']||_0x1e90de['getUser'](_0x3c92fe['id'])||_0x1e90de['addUser'](_0x3c92fe);const _0x5fbc23=_0x4bd47b['repository']['getRevisions']();let _0x24449e=null;const _0x2fb0f9=this['editor']['plugins']['get']('RevisionViewer');_0x2fb0f9['adapter']=_0x4bd47b['adapter'],_0x2fb0f9['bind']('isEnabled')['to'](_0x4bd47b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20a879,'isReadOnly',_0x38580c=>!_0x38580c);for(const _0x32ebfd of _0x5fbc23){const _0x4e69f3=null===_0x32ebfd['creator'];if(_0x4e69f3&&_0x32ebfd['toVersion']===_0x32ebfd['fromVersion'])continue;const _0x31814c=_0x32ebfd['toJSON']();_0x2fb0f9['addRevisionData'](_0x31814c,(_0x2118b4,_0xf999d5,_0x58f730)=>{if(_0x4e69f3){if(_0x24449e)_0x24449e['_update'](_0x2118b4,_0xf999d5);else{if(!_0xf999d5){const _0x11c957=_0x58f730['toJSON']();_0x11c957['id']=_0x117971(),_0x4bd47b['saveRevision'](_0x11c957,_0x58f730['toVersion'])['then'](_0x287881=>{_0x24449e=_0x287881;});}}}else _0x32ebfd['_update'](_0x2118b4,_0xf999d5);});}}},g),_0x1da830);}['_enhanceShowRevisionViewerCallback'](){const _0x5390b6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x29b2e1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x426022=this['editor']['plugins']['get']('Autosave');await _0x426022['save']();}else await _0x29b2e1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x206d69=this['editor']['plugins']['get']('Dialog');_0x206d69['isOpen']&&_0x206d69['hide']();}const _0x1d4ffe=this['_getRevisionViewerEditorConfig']();return _0x5390b6(_0x1d4ffe)['then'](_0x4a5519=>{return(this['_viewerEditor']=_0x4a5519,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4a5519;})['catch'](_0xf20ffe=>(console['error'](_0xf20ffe),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x16b55f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x16b55f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4d4174=this['editor']['plugins']['get']('Annotations');_0x4d4174['refreshVisibility'](),_0x4d4174['refreshPositioning']();}})));}['_showRevisionViewer'](_0x42d4e1){const _0x3eee18=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x37b37d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x392abb=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x392abb,_0x42d4e1)['then'](_0x25c034=>(_0x37b37d['style']['display']='block',_0x3eee18['style']['display']='none',_0x25c034));}['_closeRevisionViewer'](_0x98f3f7){const _0xb3bed4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb3bed4['style']['display']='',_0x98f3f7['destroy']();}async['_restoreRevision'](_0x2baecd){const _0x5657e4=this['editor'],_0x466bd2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x29a935=_0x5657e4['plugins']['get']('RevisionTracker'),_0x5c2b71=_0x466bd2['repository']['getRevision'](_0x2baecd);let _0x46347a,_0x3ae22d,_0x1de809;try{_0x46347a=await _0x466bd2['getRevisionData'](_0x5c2b71),_0x3ae22d=await _0x466bd2['getRevisionRootsAttributes'](_0x5c2b71);}catch(_0x1ce3e8){return void console['error'](_0x1ce3e8);}_0x5657e4['model']['change'](_0x126a96=>{for(const _0x2e312c of Array['from'](_0x5657e4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x126a96['removeMarker'](_0x2e312c);}),_0x466bd2['isReady']=!0x1,_0x5657e4['model']['enqueueChange'](_0x7a56fb=>{_0x7a56fb['setSelection'](null),_0x7a56fb['removeSelectionAttribute'](_0x5657e4['model']['document']['selection']['getAttributeKeys']());const _0xaae100=Object['keys'](_0x46347a);for(const _0x3ef57a of _0x5657e4['model']['document']['roots'])'$graveyard'!=_0x3ef57a['rootName']&&_0x3ef57a['isAttached']()&&!_0xaae100['includes'](_0x3ef57a['rootName'])&&_0x7a56fb['detachRoot'](_0x3ef57a);for(const _0x4ae1f8 of _0xaae100){let _0x562c36=_0x5657e4['model']['document']['getRoot'](_0x4ae1f8);_0x562c36&&_0x562c36['isAttached']()||(_0x562c36=_0x7a56fb['addRoot'](_0x4ae1f8));const _0x125aa8=_0x3ae22d[_0x4ae1f8],_0x36e479=Object['keys'](_0x125aa8),_0x49162e=_0x46347a[_0x4ae1f8];for(const _0x469b8f of _0x562c36['getAttributeKeys']())_0x36e479['includes'](_0x469b8f)||_0x7a56fb['removeAttribute'](_0x469b8f,_0x562c36);for(const _0x428d9a of _0x36e479)_0x7a56fb['setAttribute'](_0x428d9a,_0x3ae22d[_0x4ae1f8][_0x428d9a],_0x562c36);_0x7a56fb['remove'](_0x7a56fb['createRangeIn'](_0x562c36)),_0x7a56fb['insert'](_0x5657e4['data']['parse'](_0x49162e,_0x562c36),_0x562c36,0x0);}});const _0x2cfa7f=R(_0x5657e4['locale'],'Restored');if(_0x5c2b71['name'])_0x1de809=-0x1==_0x5c2b71['name']['indexOf'](_0x2cfa7f)?_0x2cfa7f+':\x20'+_0x5c2b71['name']:_0x5c2b71['name'];else _0x1de809=_0x2cfa7f+':\x20'+(_0x5c2b71['createdAt']['toLocaleDateString'](_0x5657e4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5c2b71['createdAt']['toLocaleTimeString'](_0x5657e4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x29a935['saveRevision']({'name':_0x1de809}),_0x466bd2['isReady']=!0x0,_0x5657e4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};