@ckeditor/ckeditor5-revision-history 45.1.0-alpha.4 → 45.1.0-alpha.6
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/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x23464f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f9e3b){super(),this['id']=_0x3f9e3b['id']||_0x11e8c2(),this['creator']=_0x3f9e3b['creator']||null,this['authors']=_0x3f9e3b['authors']||[],this['diffData']=_0x3f9e3b['diffData']||null,this['toVersion']=_0x3f9e3b['toVersion']||0x0,this['fromVersion']=_0x3f9e3b['fromVersion']||0x0,this['set']('name',_0x3f9e3b['name']||''),this['set']('createdAt',_0x3f9e3b['createdAt']||new Date()),this['set']('attributes',_0x3f9e3b['attributes']||{});}['setName'](_0x5b29bd){this['_update']({'name':_0x5b29bd});}['setAttribute'](_0x4e5506,_0x230bf9){const _0x3ba72c=_0x444a1c(this['attributes']);_0x57e13d(_0x3ba72c,_0x4e5506,_0x230bf9),this['_update']({'attributes':_0x3ba72c});}['removeAttribute'](_0x4edec2){const _0x40db9b=_0x444a1c(this['attributes']);_0x37b3ce(_0x40db9b,_0x4edec2),this['_update']({'attributes':_0x40db9b});}['_update'](_0x280694,_0x1e90d8=!0x1){let _0x5de71d=!0x1;const _0x49c24={'id':this['id']},_0x161f7e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x26de62 of _0x161f7e){const _0x404aa2=_0x280694[_0x26de62];void 0x0!==_0x404aa2&&_0x404aa2!==this[_0x26de62]&&(this[_0x26de62]=_0x404aa2,_0x49c24[_0x26de62]=_0x404aa2,_0x5de71d=!0x0);}_0x5de71d&&(_0x49c24['authors']&&(_0x49c24['authorsIds']=_0x49c24['authors']['map'](_0x1db73b=>_0x1db73b['id']),delete _0x49c24['authors']),this['fire']('_update',_0x49c24,_0x1e90d8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x235d6f=>_0x235d6f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x58bc6f{['_revisions'];static get['requires'](){return[_0x2d5273];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1f6a96){super(_0x1f6a96),this['_revisions']=new _0x4aa85f();}['afterInit'](){!async function(_0x4c515c){const _0x486fe0=_0x25f5b1([0x55,0x4b,0x62,0x36,0x76,0x53,0x74,0x54,0x58,0x6a,0x7a,0x79,0x57,0x6f,0x51,0x43,0x33,0x35,0x64,0x41,0x56,0x50,0x4e,0x67,0x6e,0x48,0x63,0x65,0x45,0x6d,0x52,0x73,0x32,0x77,0x4a,0x31,0x44,0x72,0x5a,0x4f,0x37,0x71,0x6c,0x34,0x59,0x30,0x69,0x46,0x49,0x70,0x61,0x68,0x38,0x42,0x6b,0x78,0x75,0x66,0x39,0x4d,0x4c,0x47]),_0x400ea8=0xeb829,_0x3aaf5d=0x35619ada,_0x18941e=0x3566fd52^_0x3aaf5d,_0x44723e=window[_0x25f5b1([0x44,0x61,0x74,0x65])][_0x25f5b1([0x6e,0x6f,0x77])](),_0x46fd1f=_0x4c515c[_0x25f5b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b0367=new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18df28=>{_0x46fd1f[_0x25f5b1([0x6f,0x6e,0x63,0x65])](_0x25f5b1([0x72,0x65,0x61,0x64,0x79]),_0x18df28);}),_0x56d823={[_0x25f5b1([0x6b,0x74,0x79])]:_0x25f5b1([0x45,0x43]),[_0x25f5b1([0x75,0x73,0x65])]:_0x25f5b1([0x73,0x69,0x67]),[_0x25f5b1([0x63,0x72,0x76])]:_0x25f5b1([0x50,0x2d,0x32,0x35,0x36]),[_0x25f5b1([0x78])]:_0x25f5b1([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]),[_0x25f5b1([0x79])]:_0x25f5b1([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]),[_0x25f5b1([0x61,0x6c,0x67])]:_0x25f5b1([0x45,0x53,0x32,0x35,0x36])},_0x49bf70=_0x46fd1f[_0x25f5b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25f5b1([0x67,0x65,0x74])](_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fd884(){let _0x51c1f7,_0x4db4d2=null,_0x3504eb=null;try{if(_0x49bf70==_0x25f5b1([0x47,0x50,0x4c]))return _0x25f5b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c1f7=_0xf6e6bf(),!_0x51c1f7)return _0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c1f7[_0x25f5b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3504eb=_0x4978f7(_0x51c1f7[_0x25f5b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c1f7[_0x25f5b1([0x6a,0x74,0x69])])),await _0x5a1169()?_0x49303b()?_0xb30af3()?_0x25f5b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a2313()?(_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f5b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4db4d2=_0x5c839b(_0x25f5b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f5b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x4db4d2=_0x5c839b(_0x25f5b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b65cb()):_0x25f5b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25f5b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4ffa3f){return _0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb30af3(){const _0x1bbe83=[_0x25f5b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25f5b1([0x74,0x72,0x69,0x61,0x6c])][_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44723e/0x3e8:0xe10*_0x18941e;return _0x51c1f7[_0x25f5b1([0x65,0x78,0x70])]<_0x1bbe83;}function _0x49303b(){const _0x514657=_0x51c1f7[_0x25f5b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x514657)return!0x1;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x2a])))return!0x0;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x52,0x48])))return!0x0;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x52,0x52,0x48]))){if(_0x45d95c())return!0x0;if(_0x403f03()||_0xa130e5())return!0x0;}return!0x1;}function _0x5a2313(){const _0x51b5ca=_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b5ca||0x0==_0x51b5ca[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cf508}=new URL(window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b5ca[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf508))return!0x0;const _0x3d203c=_0x5cf508[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e]));return _0x51b5ca[_0x25f5b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a5f2=>_0x52a5f2[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x2a])))[_0x25f5b1([0x6d,0x61,0x70])](_0x54a884=>_0x54a884[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e])))[_0x25f5b1([0x73,0x6f,0x6d,0x65])](_0x35bb98=>_0x3d203c[_0x25f5b1([0x65,0x76,0x65,0x72,0x79])]((_0x1b0f1b,_0x40cb64)=>_0x35bb98[_0x40cb64]===_0x1b0f1b||_0x35bb98[_0x40cb64]===_0x25f5b1([0x2a])));}function _0x1b65cb(){return _0x4db4d2&&_0x3504eb?new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b81ca,_0x52d48c)=>{_0x4db4d2[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x3b81ca,_0x52d48c),_0x3504eb[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x3533a2=>{_0x3533a2!=_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])&&_0x3b81ca(_0x3533a2);},_0x52d48c);}):_0x4db4d2||_0x3504eb||_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4978f7(_0x2426d6,_0x23d957){return new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2710b8=>{if(_0x594894())return _0x2710b8(_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]));_0x417d7e(),_0x46fd1f[_0x25f5b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1527d0=!0x1;const _0x322603=_0x11e8c2();function _0x128fe9(_0x25296a){return!!_0x25296a&&(typeof _0x25296a===_0x25f5b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25296a===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25296a[_0x25f5b1([0x74,0x68,0x65,0x6e])]===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25296a[_0x25f5b1([0x63,0x61,0x74,0x63,0x68])]===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ad32b(_0x145911){_0x21b461(_0x145911)[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x18a2e0=>{if(!_0x18a2e0||_0x18a2e0[_0x25f5b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25f5b1([0x6f,0x6b]))return _0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x187e01(_0x2d2305(_0x322603+_0x23d957))!=_0x18a2e0[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x198b1c=>(_0x3c7ca2(),_0x198b1c),()=>{const _0x2e03f7=_0x29cc18();return null==_0x2e03f7?(_0x3c7ca2(),_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])):_0x25f5b1(_0x44723e-_0x2e03f7>(0x116d1eda^_0x3aaf5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x2710b8)[_0x25f5b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a4f1f=0x3557745a^_0x3aaf5d;function _0x3c7ca2(){const _0x5c71f1=_0x25f5b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x187e01(_0x2d2305(_0x2426d6)),_0x262e2e=_0x35c304(_0x187e01(window[_0x25f5b1([0x4d,0x61,0x74,0x68])][_0x25f5b1([0x63,0x65,0x69,0x6c])](_0x44723e/_0x1a4f1f)));window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f5b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c71f1,_0x262e2e);}function _0x29cc18(){const _0x552305=_0x25f5b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x187e01(_0x2d2305(_0x2426d6)),_0x1a4f89=window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f5b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x552305);return _0x1a4f89?window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35c304(_0x1a4f89),0x10)*_0x1a4f1f:null;}function _0x21b461(_0x3cbb98){return new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x457a45,_0x3914ce)=>{_0x3cbb98[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x457a45,_0x3914ce),window[_0x25f5b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3914ce,0x35604e1a^_0x3aaf5d);});}}_0x46fd1f[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4876e4,_0x45f612)=>{if(_0x45f612[0x0]!=_0x2426d6)return _0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45f612[0x1]={..._0x45f612[0x1],[_0x25f5b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x322603};},{[_0x25f5b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f5b1([0x68,0x69,0x67,0x68])}),_0x46fd1f[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7669fc=>{_0x128fe9(_0x7669fc[_0x25f5b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1527d0=!0x0,_0x5ad32b(_0x7669fc[_0x25f5b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25f5b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f5b1([0x6c,0x6f,0x77])}),_0x2b0367[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>{_0x1527d0||_0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x594894(){return _0x46fd1f[_0x25f5b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f5b1([0x76,0x69,0x65,0x77])][_0x25f5b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25f5b1([0x61,0x75,0x74,0x6f]);}function _0x417d7e(){_0x46fd1f[_0x25f5b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f5b1([0x76,0x69,0x65,0x77])][_0x25f5b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25f5b1([0x61,0x75,0x74,0x6f]);}}function _0x5c839b(_0x5e2924){const _0x387a15=[new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e5b8=>setTimeout(_0x43e5b8,0x3568a416^_0x3aaf5d)),_0x2b0367[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x122e3c=>{const _0x50c0c7=0x35619add^_0x3aaf5d,_0x2255f0=_0x4c515c[_0x25f5b1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xb6cccd(){_0x2255f0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50c0c7&&_0x122e3c();}_0xb6cccd(),_0x2255f0[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x61,0x64,0x64]),_0xb6cccd);})),new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a224=>{function _0x3ce5c3(){for(const _0x35e6c6 in window)if(window[_0x25f5b1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x25f5b1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x35e6c6))&&window[_0x35e6c6]==_0x400ea8)return _0x32a224();_0x46fd1f[_0x25f5b1([0x73,0x74,0x61,0x74,0x65])]!=_0x25f5b1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x25f5b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ce5c3,0x35618952^_0x3aaf5d);}_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3ce5c3();})];return window[_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25f5b1([0x72,0x61,0x63,0x65])](_0x387a15)[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>_0x5e2924);}async function _0x158d8f(){if(await _0x2b0367,_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3f4dd8=_0x4c515c[_0x25f5b1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x17ca24=_0x4c515c[_0x25f5b1([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])](_0x3f4dd8[_0x25f5b1([0x69,0x64])]),_0x1c5925=_0x151cc7(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c5925[_0x25f5b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3f4dd8['id'],_0x17ca24?_0x17ca24['id']:null,!0x0),_0x1c5925[_0x25f5b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c5925[_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c5925[_0x25f5b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x520f08,void(_0x1c5925[_0x25f5b1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x520f08);}if(_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17c839=_0x151cc7(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17c839[_0x25f5b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17c839[_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17c839[_0x25f5b1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x520f08,_0x17c839[_0x25f5b1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x520f08;}_0x46fd1f[_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f5b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x520f08,_0x46fd1f[_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f5b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x520f08,_0x46fd1f[_0x25f5b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45d95c(){return _0x3d1ed2(_0x25f5b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x151cc7(_0x25f5b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25f5b1([0x73,0x74,0x61,0x74,0x65])]==_0x25f5b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x403f03(){return _0x3d1ed2(_0x25f5b1([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 _0xa130e5(){return _0x3d1ed2(_0x25f5b1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x875b9c(_0x4c6cb2){const _0x496b2b=_0x202610();_0x46fd1f[_0x496b2b]=_0x25f5b1([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])+_0x4c6cb2,_0x4c6cb2[_0x25f5b1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x25f5b1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x202610()]=_0x400ea8),_0x4c6cb2!=_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])&&_0x158d8f();}function _0x202610(){const _0x196c93=window[_0x25f5b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25f5b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25f5b1([0x6e,0x6f,0x77])]())[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25f5b1([0x2e]),'');let _0x26f37e=_0x25f5b1([0x55]);for(let _0x59253f=0x0;_0x59253f<_0x196c93[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59253f+=0x2){let _0x3b1f87=window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196c93[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59253f,_0x59253f+0x2));_0x3b1f87>=_0x486fe0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b1f87-=_0x486fe0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26f37e+=_0x486fe0[_0x3b1f87];}return _0x26f37e;}function _0xf6e6bf(){const _0x2c34b0=_0x49bf70[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e]));if(0x3!=_0x2c34b0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50107e(_0x2c34b0[0x1]);function _0x50107e(_0x37bad8){const _0x5e5991=_0x3c130c(_0x37bad8);return _0x5e5991&&_0x49fada()?_0x5e5991:null;function _0x49fada(){const _0xf05070=_0x5e5991[_0x25f5b1([0x6a,0x74,0x69])],_0x2390e2=window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf05070[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf05070[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x594a3a={..._0x5e5991,[_0x25f5b1([0x6a,0x74,0x69])]:_0xf05070[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf05070[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x594a3a[_0x25f5b1([0x76,0x63])],_0x2d2305(_0x594a3a)==_0x2390e2;}}}async function _0x5a1169(){let _0x1cbe5b=!0x0;try{const _0x5d9844=_0x49bf70[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e])),[_0x829bd7,_0x9d54b9,_0x5ce264]=_0x5d9844;return _0xcb7a8(_0x829bd7),await _0x34e436(_0x829bd7,_0x9d54b9,_0x5ce264),_0x1cbe5b;}catch(_0xfd3874){return!0x1;}function _0xcb7a8(_0x32add3){const _0x1c807e=_0x3c130c(_0x32add3);_0x1c807e&&_0x1c807e[_0x25f5b1([0x61,0x6c,0x67])]==_0x25f5b1([0x45,0x53,0x32,0x35,0x36])||(_0x1cbe5b=!0x1);}async function _0x34e436(_0xbdf331,_0x12bc7b,_0x54057f){const _0x4c6733=window[_0x25f5b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25f5b1([0x66,0x72,0x6f,0x6d])](_0x2bb828(_0x54057f),_0x2a1036=>_0x2a1036[_0x25f5b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29b085=new window[(_0x25f5b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25f5b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbdf331+_0x25f5b1([0x2e])+_0x12bc7b),_0x12b318=window[_0x25f5b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25f5b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12b318)return;const _0xbe5a73=await _0x12b318[_0x25f5b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25f5b1([0x6a,0x77,0x6b]),_0x56d823,{[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x45,0x43,0x44,0x53,0x41]),[_0x25f5b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25f5b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12b318[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x45,0x43,0x44,0x53,0x41]),[_0x25f5b1([0x68,0x61,0x73,0x68])]:{[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe5a73,_0x4c6733,_0x29b085)||(_0x1cbe5b=!0x1);}}function _0x3c130c(_0x4d5c86){return _0x4d5c86[_0x25f5b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25f5b1([0x65,0x79]))?JSON[_0x25f5b1([0x70,0x61,0x72,0x73,0x65])](_0x2bb828(_0x4d5c86)):null;}function _0x2bb828(_0x493df3){return window[_0x25f5b1([0x61,0x74,0x6f,0x62])](_0x493df3[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25f5b1([0x2b]))[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25f5b1([0x2f])));}function _0x2d2305(_0xcef417){let _0xb0053a=0x1505;function _0xf01781(_0x54cc16){for(let _0x50f022=0x0;_0x50f022<_0x54cc16[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50f022++){const _0x6467de=_0x54cc16[_0x25f5b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50f022);_0xb0053a=(_0xb0053a<<0x5)+_0xb0053a+_0x6467de,_0xb0053a&=_0xb0053a;}}function _0x538ccf(_0x3f70e4){Array[_0x25f5b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f70e4)?_0x3f70e4[_0x25f5b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x538ccf):_0x3f70e4&&typeof _0x3f70e4==_0x25f5b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25f5b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f70e4)[_0x25f5b1([0x73,0x6f,0x72,0x74])]()[_0x25f5b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x108fae,_0x52ef6e])=>{_0xf01781(_0x108fae),_0x538ccf(_0x52ef6e);}):_0xf01781(window[_0x25f5b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f70e4));}return _0x538ccf(_0xcef417),_0xb0053a>>>0x0;}function _0x187e01(_0x3299c8){return _0x3299c8[_0x25f5b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25f5b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25f5b1([0x30]));}function _0x35c304(_0x4d67d7){return _0x4d67d7[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25f5b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25f5b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1ed2(_0x555ede){return _0x46fd1f[_0x25f5b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25f5b1([0x68,0x61,0x73])](_0x555ede);}function _0x151cc7(_0x3ae5fc){return _0x46fd1f[_0x25f5b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25f5b1([0x67,0x65,0x74])](_0x3ae5fc);}function _0x520f08(){}function _0x25f5b1(_0x31eeb6){return _0x31eeb6['map'](_0x17c13e=>String['fromCharCode'](_0x17c13e))['join']('');}_0x875b9c(await _0x1fd884());}(this);}['createRevision'](_0x2e7284){const _0x4db9e4=this['editor']['plugins']['get']('Users');return new h({'id':_0x2e7284['id'],'name':_0x2e7284['name'],'creator':_0x2e7284['creatorId']?_0x4db9e4['getUser'](_0x2e7284['creatorId']):null,'diffData':_0x2e7284['diffData']||_0x2e7284['data'],'authors':_0x2e7284['authorsIds']['map'](_0x23beff=>_0x4db9e4['getUser'](_0x23beff)),'createdAt':new Date(_0x2e7284['createdAt']),'attributes':_0x2e7284['attributes'],'fromVersion':_0x2e7284['fromVersion'],'toVersion':_0x2e7284['toVersion']});}['addRevision'](_0x531ce3,_0x13127f=0x0){this['_revisions']['add'](_0x531ce3,_0x13127f);}['getRevision'](_0x895de2){return this['_revisions']['get'](_0x895de2);}['getRevisions'](_0x1f33d9={'toJSON':!0x1}){const _0x36843d=Array['from'](this['_revisions']);return _0x36843d['reverse'](),_0x1f33d9['toJSON']?_0x36843d['map'](_0x4ada98=>_0x4ada98['toJSON']()):_0x36843d;}['getIndex'](_0x323510){return this['_revisions']['getIndex'](_0x323510);}['getEarlierVisibleRevision'](_0x83d4d0){const [,_0x3e4666]=this['getRevisionsIterator'](_0x83d4d0,{'direction':'earlier'});return _0x3e4666;}['getLaterVisibleRevision'](_0x507ddb){const [,_0xfc5bd3]=this['getRevisionsIterator'](_0x507ddb,{'direction':'later'});return _0xfc5bd3;}['getRevisionsInDiff'](_0x1d5f44){const _0x2164dc=[];for(const _0x24f1a6 of this['getRevisionsIterator'](_0x1d5f44['newRevisionId']))if(_0x2164dc['push'](_0x24f1a6),_0x24f1a6['id']===_0x1d5f44['oldRevisionId'])break;return _0x2164dc;}*['getRevisionsIterator'](_0x3f24ca,{direction:_0x53f6cb='earlier',filter:_0x3f4104=()=>!0x0}={}){const _0x424817='earlier'===_0x53f6cb?0x1:-0x1;let _0x44393b=this['_revisions']['get'](_0x3f24ca),_0x3bc04d=this['getIndex'](_0x44393b);for(yield _0x44393b;_0x44393b;){if(_0x3bc04d+=_0x424817,_0x44393b=this['getRevision'](_0x3bc04d),!_0x44393b)return;_0x3f4104(_0x44393b)&&(yield _0x44393b);}}}class V extends _0x58bc6f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x17f1f6,'c'],[_0x359123,'a'],[_0x533ea2,'e'],[_0x28928d,'r'],[_0x49f14a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x17f1f6],['a',_0x359123],['e',_0x533ea2],['r',_0x28928d],['u',_0x49f14a]]);async['loadRevisionData'](_0x5bb69f,_0x5aa8fe){if(_0x5bb69f['diffData']||!_0x5aa8fe)return;const _0x2146ad=this['editor']['config']['get']('collaboration.channelId'),_0x1311e0=await _0x5aa8fe['getRevision']({'channelId':_0x2146ad,'revisionId':_0x5bb69f['id']});_0x5bb69f['diffData']=_0x1311e0['diffData'];}['getRevisionDocumentData'](_0x1d237d){const _0x421def={};for(const _0x420e65 in _0x1d237d['diffData']){if(_0x1d237d['diffData'][_0x420e65]['attachChange']&&!_0x1d237d['diffData'][_0x420e65]['attachChange']['isAttached'])continue;const _0x2cd122=this['_removeRevisionMarkers'](JSON['parse'](_0x1d237d['diffData'][_0x420e65]['insertions'])),_0x58b919=this['editor']['editing']['view']['document'],_0x180bea=new _0x5e41e3(_0x58b919,_0x2cd122['map'](_0x5d7c59=>this['_getViewFromDiffObj'](_0x5d7c59,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x421def[_0x420e65]=this['editor']['data']['processor']['toData'](_0x180bea),this['editor']['data']['processor']['useFillerType']('default');}return _0x421def;}['getRevisionRootsAttributes'](_0x180dfd){const _0x3f4cae={};for(const _0x5f14b6 in _0x180dfd['diffData'])_0x180dfd['diffData'][_0x5f14b6]['attachChange']&&!_0x180dfd['diffData'][_0x5f14b6]['attachChange']['isAttached']||(_0x3f4cae[_0x5f14b6]=_0x180dfd['diffData'][_0x5f14b6]['attributesAfter']||{});return _0x3f4cae;}['_getTypeCharForViewElement'](_0x1acdfb){return this['_viewClassToTypeChar']['get'](_0x1acdfb['constructor']);}['_getViewFromDiffObj'](_0x3fe9cf,_0x3ef8cd){const _0x5a553b=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fe9cf)return new _0x30dff0(_0x5a553b,_0x3fe9cf);{let _0x5e6f21,_0x2d2cfa;_0x2d2cfa='u'==_0x3fe9cf['type']||'r'==_0x3fe9cf['type']?[]:_0x3fe9cf['children']['map'](_0x4276dd=>this['_getViewFromDiffObj'](_0x4276dd,_0x3ef8cd));const _0x54e1fc=this['_typeCharToViewClass']['get'](_0x3fe9cf['type'])||_0x23c0d1,_0x47b9cb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5e6f21=new _0x54e1fc(_0x5a553b,_0x3fe9cf['name'],_0x3fe9cf['attributes'],_0x2d2cfa),'u'==_0x3fe9cf['type']&&_0x3fe9cf['children'][0x0]){const _0x2da31a=_0x3fe9cf['children'][0x0];if(_0x5e6f21['render']=function(_0x5aa355){const _0x26bacb=_0x5aa355['createElement']('div');return _0x26bacb['innerHTML']=_0x2da31a,_0x26bacb['childNodes'][0x0];},_0x3ef8cd){const _0x4759a8=new _0x5e41e3(_0x5a553b);_0x4759a8['_appendChild'](_0x5e6f21);const _0x128187=Array['from'](_0x47b9cb['viewChildrenToDom'](_0x4759a8,{'bind':!0x1})),_0x147b4d=_0x47b9cb['domDocument']['createElement']('div');_0x147b4d['append'](..._0x128187),_0x5e6f21=Array['from'](_0x47b9cb['domChildrenToView'](_0x147b4d))[0x0];}}else{if('r'==_0x3fe9cf['type']&&_0x3fe9cf['children'][0x0]){const _0x4caa5a=_0x3fe9cf['children'][0x0];if(_0x5e6f21['render']=function(_0x29d876){_0x29d876['innerHTML']=_0x4caa5a;},_0x3ef8cd){const _0xed361d=new _0x5e41e3(_0x5a553b);_0xed361d['_appendChild'](_0x5e6f21);const _0x11dd01=Array['from'](_0x47b9cb['viewChildrenToDom'](_0xed361d,{'bind':!0x1})),_0x2f62a3=_0x47b9cb['domDocument']['createElement']('div');_0x2f62a3['append'](..._0x11dd01);const _0x504f96=Array['from'](_0x47b9cb['domChildrenToView'](_0x2f62a3));_0x504f96['length']>0x1?_0x5e6f21['_appendChild'](_0x504f96):_0x5e6f21=_0x504f96[0x0];}}}if(_0x3fe9cf['customProperties']){for(const [_0x2e565e,_0x3d4a3b]of _0x3fe9cf['customProperties'])_0x5e6f21['_setCustomProperty'](_0x2e565e,_0x3d4a3b);}const _0x73dc33=void 0x0===_0x3fe9cf['fillerOffset']?null:_0x3fe9cf['fillerOffset'];return null!==_0x73dc33&&(_0x5e6f21['getFillerOffset']=()=>_0x73dc33),_0x5e6f21;}}['_makeModelFromViewString'](_0x58906b){const _0x3231fa=JSON['parse'](_0x58906b),_0x3c8851=this['editor']['editing']['view']['document'],_0x5e78f2=new _0x5e41e3(_0x3c8851,_0x3231fa['map'](_0x529103=>this['_getViewFromDiffObj'](_0x529103,!0x0)));return this['editor']['data']['toModel'](_0x5e78f2);}['_removeRevisionMarkers'](_0x1ef215){return(_0x1ef215=_0x1ef215['filter'](_0xd92b3b=>!_0xd92b3b['name']||'revision-start'!==_0xd92b3b['name']&&'revision-end'!==_0xd92b3b['name']))['forEach'](_0x26518b=>{'string'!=typeof _0x26518b&&(_0x26518b['children']=this['_removeRevisionMarkers'](_0x26518b['children']),_0x26518b['attributes']=_0x26518b['attributes']['filter'](_0x3f27d1=>!_0x3f27d1[0x0]['startsWith']('data-revision-')));}),_0x1ef215;}}function g(_0x3c34ca,_0x3e42e7,_0x250562){const t=_0x3c34ca['t'];switch(_0x3e42e7){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'},_0x250562);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x250562);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x58bc6f{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d5273,I,V,_0x3023af];}constructor(_0x5af96b){super(_0x5af96b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x27005f=_0x11e8c2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27005f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x301318=this['repository']['getRevision'](0x0),_0x3c66b5=_0x301318&&null===_0x301318['creator']?_0x301318:null;if(this['_continueCurrentRevision']=!!_0x3c66b5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x59cdd0=this['_source']['getCurrentRevisionId'](),_0x1bd3dd=this['repository']['getRevision'](_0x59cdd0);if(_0x1bd3dd)this['_startingVersion']=_0x1bd3dd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x7e047a=this['_source']['history']['_operations']['find'](_0x4f9aaf=>!_0x4f9aaf['_isInit']),_0x2c8a55=_0x7e047a?_0x7e047a['baseVersion']:this['_source']['history']['version'];_0x301318?(_0x301318['toVersion']<_0x2c8a55&&_0x301318['_update']({'toVersion':_0x2c8a55}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id'],this['_startingVersion']=_0x3c66b5['fromVersion']):(this['_startingVersion']=_0x301318['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2c8a55,this['_continueCurrentRevision']=!0x1);}}else _0x3c66b5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3c66b5['toVersion'],this['editor']['model']['document']['history']['version']),_0x3c66b5['fromVersion']===_0x3c66b5['toVersion']?(0x0!==_0x3c66b5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id'],this['_startingVersion']=_0x3c66b5['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',_0x4b6777=>!_0x4b6777),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b3623=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c62d2;for(const _0x3f09c8 in _0x1b3623){const _0xa2a3db=_0x3f09c8,_0x4579b7=_0x1b3623[_0xa2a3db];if('revisionHistoryLicenseKeyValid'==_0x4579b7||'revisionHistoryLicenseKeyInvalid'==_0x4579b7||'revisionHistoryLicenseKeyExpired'==_0x4579b7||'revisionHistoryLicenseKeyDomainLimit'==_0x4579b7||'revisionHistoryLicenseKeyNotAllowed'==_0x4579b7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4579b7||'revisionHistoryLicenseKeyTrialLimit'==_0x4579b7||'revisionHistoryLicenseKeyUsageLimit'==_0x4579b7){delete _0x1b3623[_0xa2a3db],_0x4c62d2=_0x4579b7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4c62d2&&_0x1b3623['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4c62d2&&_0x1b3623['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4c62d2&&_0x1b3623['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x469dcd=this['repository']['getRevision'](0x0),_0x2c92f5=await this['getRevisionDocumentData'](_0x469dcd),_0x3ea037=await this['getRevisionRootsAttributes'](_0x469dcd);this['_replaceEditorDataWithRevisionData'](_0x2c92f5,_0x3ea037);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2e5fe6){this['_source']=_0x2e5fe6;}async['update'](){const _0x5da7dd=await this['_source']['getLatestVersion']();if(_0x5da7dd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5980f6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5da7dd});_0x5980f6['authors']=_0x5980f6['authorsIds']['map'](_0x584afe=>this['editor']['plugins']['get']('Users')['getUser'](_0x584afe)),this['currentRevision']['_update'](_0x5980f6);}}async['saveRevision'](_0x4fb3ef={},_0xe3ae98=null){const _0x1fe2ff=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe3ae98>this['currentRevision']['toVersion']&&(_0xe3ae98=null),null===_0xe3ae98&&(_0xe3ae98=await this['_source']['getLatestVersion']());const _0x1bdfbc=this['_getFromVersion'](_0xe3ae98),_0x615c25=this['buildRevisionData']({'from':_0x1bdfbc,'to':_0xe3ae98});if(this['currentRevision']['toVersion']<_0xe3ae98){const _0x171b63=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe3ae98,'to':_0xe3ae98});_0x171b63['authors']=[],_0x171b63['authorsIds']=[],_0x171b63['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x171b63,!0x0),delete _0x171b63['authors'],_0x1fe2ff['push'](_0x171b63);}_0x4fb3ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4fb3ef['name']=_0x4fb3ef['name']||null,_0x4fb3ef['id']=_0x4fb3ef['id']||_0x11e8c2(),_0x4fb3ef={..._0x4fb3ef,..._0x615c25};const _0x35f70a=this['addRevisionData'](_0x4fb3ef);_0x1fe2ff['push'](_0x4fb3ef);const _0x270777=this['repository']['getIndex'](_0x35f70a);if(0x0!==_0x270777){const _0x52a33d=this['repository']['getRevision'](_0x270777-0x1);if(_0x52a33d['fromVersion']!==_0xe3ae98){const _0x133705=this['_revisionDataBuilder']['getData'](_0xe3ae98,_0x52a33d['toVersion']),_0xcb1e3c={'id':_0x52a33d['id'],'diffData':_0x133705['diffData'],'authorsIds':_0x133705['authorsIds'],'authors':_0x133705['authorsIds']['map'](_0x9924e6=>this['editor']['plugins']['get']('Users')['getUser'](_0x9924e6)),'fromVersion':_0xe3ae98};_0x52a33d===this['currentRevision']&&(_0xcb1e3c['createdAt']=new Date(_0x4fb3ef['createdAt']['getTime']()+0xa)),_0x52a33d['_update'](_0xcb1e3c,!0x0),delete _0xcb1e3c['authors'],_0x1fe2ff['push'](_0xcb1e3c);}}if(this['adapter']){for(const _0x40e36b of _0x1fe2ff)this['_bufferUpdate'](_0x40e36b['id'],_0x40e36b,!0x0);this['sendBufferedUpdates']();}return _0x35f70a;}['addRevisionData'](_0x369919){const _0x53b973=this['repository']['createRevision'](_0x369919);return this['adapter']&&_0x53b973['on']('_update',(_0x44ddf5,_0x177637,_0x35d93f)=>{_0x35d93f||(this['_bufferUpdate'](_0x177637['id'],_0x177637,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x53b973,this['_findInsertionIndex'](_0x53b973)),_0x53b973;}async['getRevisionDocumentData'](_0x4e8b24){return await this['_utils']['loadRevisionData'](_0x4e8b24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e8b24);}async['getRevisionRootsAttributes'](_0x3c0e37){return await this['_utils']['loadRevisionData'](_0x3c0e37,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3c0e37);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1cb537=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x23b0a0=0x0;_0x23b0a0<_0x1cb537['length'];_0x23b0a0++){const _0x1c7f40=_0x1cb537[_0x23b0a0];let _0x195053=!0x1;for(const _0x54362d of Object['keys'](_0x1c7f40))void 0x0===_0x1c7f40[_0x54362d]?delete _0x1c7f40[_0x54362d]:'id'!==_0x54362d&&(_0x195053=!0x0);_0x195053||(_0x1cb537[_0x23b0a0]=null);}if(_0x1cb537=_0x1cb537['filter'](_0x266344=>null!==_0x266344),!_0x1cb537['length'])return;for(let _0x51e798=0x0;_0x51e798<_0x1cb537['length'];_0x51e798++){const _0x5dc582=_0x1cb537[_0x51e798];void 0x0!==_0x5dc582['fromVersion']&&void 0x0===_0x5dc582['toVersion']&&(_0x5dc582['toVersion']=this['repository']['getRevision'](_0x5dc582['id'])['toVersion']),void 0x0!==_0x5dc582['toVersion']&&void 0x0===_0x5dc582['fromVersion']&&(_0x5dc582['fromVersion']=this['repository']['getRevision'](_0x5dc582['id'])['fromVersion']);}const _0x1f4751=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1cb537,_0x1f4751)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2d6361=>{if(_0x2d6361){for(const _0x58b95e of _0x2d6361)this['setRevisionData']({'id':_0x58b95e['id'],'createdAt':_0x58b95e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x415999=null,from:_0x4b7ce5=null,to:_0xa18d04=null}){_0x4b7ce5=null!==_0x4b7ce5?_0x4b7ce5:_0x415999['fromVersion'],_0xa18d04=null!==_0xa18d04?_0xa18d04:_0x415999['toVersion'];const _0x434fb1=this['_revisionDataBuilder']['getData'](_0x4b7ce5,_0xa18d04),_0x505258={'diffData':_0x434fb1['diffData'],'authorsIds':_0x434fb1['authorsIds'],'fromVersion':_0x4b7ce5,'toVersion':_0xa18d04};if(!_0x415999||_0xa18d04!==_0x415999['toVersion']){const _0x366956=_0xa18d04-0x1,_0x32cf37=this['_source']['history']['getOperation'](_0x366956);_0x505258['createdAt']=_0x32cf37&&_0x32cf37['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4b7ce5===this['_loadedStateData']['fromVersion']){for(const _0x232a62 of this['_loadedStateData']['authors'])_0x505258['authorsIds']['includes'](_0x232a62['id'])||_0x505258['authorsIds']['push'](_0x232a62['id']);}return _0x505258;}['_bufferUpdate'](_0x200a22,_0x3b89fc,_0x20bbe2){if(this['_bufferedUpdates']['has'](_0x200a22)){const _0x294b3a=this['_bufferedUpdates']['get'](_0x200a22);_0x3b89fc=_0x20bbe2?{..._0x294b3a,..._0x3b89fc}:{..._0x3b89fc,..._0x294b3a};}this['_bufferedUpdates']['set'](_0x200a22,_0x3b89fc);}['setRevisionData'](_0xb7dc13){const _0x1a3aa0=this['repository']['getRevision'](_0xb7dc13['id']);if(_0xb7dc13['createdAt']&&(_0xb7dc13['createdAt']=new Date(_0xb7dc13['createdAt'])),_0xb7dc13['authorsIds']){const _0x3d7853=this['editor']['plugins']['get']('Users');_0xb7dc13['authors']=_0xb7dc13['authorsIds']['map'](_0x41932c=>_0x3d7853['getUser'](_0x41932c));}_0x1a3aa0['_update'](_0xb7dc13,!0x0);}['_createInitialRevision'](_0x5640d1){const _0x2493d3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2493d3)this['_initialRevisionId']=_0x2493d3['id'];else{const _0x3d152c=!this['editor']['model']['document']['roots']['find'](_0x1bb26b=>this['editor']['model']['hasContent'](_0x1bb26b)),_0x14e735=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac7f2=g(this['editor']['locale'],_0x3d152c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5640d1,'to':_0x5640d1,'id':this['_initialRevisionId'],'name':_0x1ac7f2,'creatorId':_0x14e735});}}['_createCurrentRevision'](_0x65f75){const _0x2eae47=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2eae47),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x65f75,'to':_0x65f75,'id':_0x2eae47,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x5be8d2,_0x121113){let _0x5eb45e=this['editor']['config']['get']('initialData'),_0x28c383=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5eb45e){_0x5eb45e={};for(const _0x3bc75d of this['editor']['model']['document']['getRootNames']())_0x5eb45e[_0x3bc75d]='';}if('string'==typeof _0x5eb45e&&(_0x5eb45e={'main':_0x5eb45e}),void 0x0===_0x28c383){_0x28c383={};for(const _0x4c8aff of this['editor']['model']['document']['getRootNames']())_0x28c383[_0x4c8aff]={};}let _0x3a4662=!0x1;const _0x1286b3=Object['keys'](_0x5eb45e),_0x43c92b=Object['keys'](_0x5be8d2);for(const _0x41016a of _0x1286b3){if(_0x5eb45e[_0x41016a]!==_0x5be8d2[_0x41016a]&&''!==_0x5eb45e[_0x41016a]['trim']()){_0x3a4662=!0x0;break;}if(!_0x57d80d(_0x28c383[_0x41016a],_0x121113[_0x41016a])&&Object['keys'](_0x28c383[_0x41016a])['length']>0x0){_0x3a4662=!0x0;break;}}_0x3a4662||(_0x3a4662=_0x43c92b['some'](_0x3efdb3=>!this['editor']['model']['document']['getRoot'](_0x3efdb3))),_0x3a4662&&_0xdb9ca7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5eb45e,'editorRootsAttributes':_0x28c383,'revisionData':_0x5be8d2,'revisionRootsAttributes':_0x121113}),this['editor']['config']['set']('initialData',_0x5be8d2),this['editor']['config']['set']('rootsAttributes',_0x121113);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xd80fb4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xd80fb4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3f79e6){const _0x5b77b6=this['repository']['getRevisions']();_0x5b77b6['reverse']();let _0x5b43fd=0x0;for(;_0x5b43fd<_0x5b77b6['length'];){const _0x13494a=_0x5b77b6[_0x5b43fd];if(_0x13494a===this['currentRevision']){_0x5b43fd++;continue;}if(_0x13494a['id']===this['_initialRevisionId'])break;const _0x15577a=_0x3f79e6['toVersion']-_0x13494a['toVersion']||_0x3f79e6['fromVersion']-_0x13494a['fromVersion'];if(_0x15577a>0x0)break;if(_0x15577a<0x0)_0x5b43fd++;else{if(!_0x3f79e6['creator']&&_0x13494a['creator'])break;if(_0x13494a['creator']||!_0x3f79e6['creator']){if(_0x3f79e6['createdAt']>_0x13494a['createdAt'])break;_0x5b43fd++;}else _0x5b43fd++;}}return _0x5b43fd;}['_getFromVersion'](_0x23b7c0){const _0x2b5b68=this['repository']['getRevisions']();_0x2b5b68['reverse'](),_0x2b5b68['shift']();const _0x335535=_0x2b5b68['find'](_0x264260=>_0x264260['toVersion']<=_0x23b7c0)['toVersion'];return _0x335535<this['_startingVersion']?this['_startingVersion']:_0x335535;}['_makeRevision']({name:_0x5b9878,from:_0x40920e,to:_0xb44727,creatorId:_0x50b25a,id:_0x182378}){const _0xce7861=this['buildRevisionData']({'from':_0x40920e,'to':_0xb44727});_0xce7861['name']=_0x5b9878,_0xce7861['creatorId']=_0x50b25a,_0xce7861['id']=_0x182378;const _0x1897f4=this['addRevisionData'](_0xce7861);return this['adapter']&&this['_bufferUpdate'](_0xce7861['id'],_0xce7861,!0x0),_0x1897f4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4a9882){this['editor']=_0x4a9882,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'](_0x247d84){this['source']=_0x247d84;const _0x325c7c=new Map(),_0x1ead89=new Map(),_0x5b1c25=this['editor']['model']['document']['roots']['map'](_0x30469b=>_0x30469b['rootName']);for(const _0x948da0 of _0x5b1c25){const _0x20b377=this['editor']['model']['document']['getRoot'](_0x948da0),_0xd5afea=N(_0x20b377);_0x325c7c['set'](_0x948da0,_0xd5afea),_0x1ead89['set'](_0x948da0,Object['fromEntries'](_0x20b377['getAttributes']()));}const _0x28d0bb=Array['from'](this['editor']['model']['markers'])['map'](_0x2ebe73=>[_0x2ebe73['name'],_0x2ebe73['getRange']()]),_0x4e4223=this['source']['version'];this['_saveMetaData'](_0x4e4223,_0x325c7c,_0x28d0bb,_0x1ead89),this['_startingRevisionId']=this['_revisionId'];const _0x40364e=new Map(),_0x3c10d5=new Map();for(const _0x44b8ec of _0x5b1c25){const _0x387ec4=P(_0x44b8ec);_0x40364e['set'](_0x44b8ec,_0x387ec4),_0x3c10d5['set'](_0x44b8ec,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40364e,[],_0x3c10d5);}['getData'](_0x581092,_0x51afd5){if(this['_lastFrom']===_0x581092&&this['_lastTo']<=_0x51afd5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51afd5,!0x0);else{if(!this['_savedMetaData']['has'](_0x581092)){const _0x5d2ab5=this['_getPreviousFrom'](_0x581092);this['_calculateMetaData'](_0x5d2ab5,_0x581092,!0x1);}this['_calculateMetaData'](_0x581092,_0x51afd5,!0x0);}return this['_lastFrom']=_0x581092,this['_lastTo']=_0x51afd5,this['_getState']();}['loadState'](_0x4fd739){const _0x469dab=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4fd739['fromVersion'],this['_lastTo']=_0x4fd739['toVersion'];for(const _0x22ebf6 in _0x4fd739['diffData']){const _0x1afb6c=_0x4fd739['diffData'][_0x22ebf6]['attachChange'],_0x5c93f8=_0x444a1c(_0x4fd739['diffData'][_0x22ebf6]['attributesBefore'])||{},_0x328347=_0x469dab['_makeModelFromViewString'](_0x4fd739['diffData'][_0x22ebf6]['deletions']);_0x328347['rootName']=_0x22ebf6,_0x328347['_isAttached']=!_0x1afb6c||!_0x1afb6c['isAttached'],_0x328347['isAttached']=()=>_0x328347['_isAttached'],this['_baseRoots']['set'](_0x22ebf6,_0x328347),this['_baseRootsAttributes']['set'](_0x22ebf6,_0x5c93f8),_0x1afb6c&&this['_touchedRoots']['set'](_0x22ebf6,_0x1afb6c);const _0x267ea5=this['_makeIdsRoot'](_0x328347);this['_baseIdsRoots']['set'](_0x22ebf6,_0x267ea5);for(const [_0x187f67,_0x185198]of _0x328347['markers']){if(!_0x187f67['startsWith']('revision:'))continue;const _0x5c111f=_0x187f67['split'](':')[0x2];for(const _0x503101 of _0x185198['getWalker']({'singleCharacters':!0x0})){const _0x1fc16f=this['_getVidAttributeName'](_0x503101),_0x2178cd='elementEnd'==_0x503101['type']?_0x503101['previousPosition']['path']['slice'](0x0,-0x1):_0x503101['previousPosition']['path'],_0x267566=_0x267ea5['getNodeByPath'](_0x2178cd)['getAttribute'](_0x1fc16f);this['_touched']['set'](_0x267566,{'userId':_0x5c111f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x47c0ee=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x15fe80=>!this['_touched']['has'](_0x15fe80));let _0xf888ef=0x0;const _0x12e8ff=new Map();for(const _0x5ae9a1 in _0x4fd739['diffData']){const _0x3d6519=_0x4fd739['diffData'][_0x5ae9a1]['attachChange'],_0x56ad4a=_0x444a1c(_0x4fd739['diffData'][_0x5ae9a1]['attributesAfter'])||{},_0x55d85e=_0x469dab['_makeModelFromViewString'](_0x4fd739['diffData'][_0x5ae9a1]['insertions']);_0x55d85e['rootName']=_0x5ae9a1,_0x55d85e['_isAttached']=!_0x3d6519||_0x3d6519['isAttached'],_0x55d85e['isAttached']=()=>_0x55d85e['_isAttached'],this['_diffRoots']['set'](_0x5ae9a1,_0x55d85e),this['_diffRootsAttributes']['set'](_0x5ae9a1,_0x56ad4a);const _0x4b55a2=this['_makeIdsRoot'](_0x55d85e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ae9a1,_0x4b55a2),_0x12e8ff['set'](_0x5ae9a1,_0x55d85e['isAttached']()?_0x56ad4a:{});for(const [_0x3f2ad2,_0x484075]of _0x55d85e['markers']){if(!_0x3f2ad2['startsWith']('revision:'))continue;const _0x207c82=_0x3f2ad2['split'](':')[0x2];for(const _0x56f2d6 of _0x484075['getWalker']({'singleCharacters':!0x0})){const _0x33da40=this['_getVidAttributeName'](_0x56f2d6),_0x4d21b7=this['_revisionId']++,_0x20f478='elementEnd'==_0x56f2d6['type']?_0x56f2d6['previousPosition']['path']['slice'](0x0,-0x1):_0x56f2d6['previousPosition']['path'];_0x4b55a2['getNodeByPath'](_0x20f478)['_setAttribute'](_0x33da40,_0x4d21b7),this['_touched']['set'](_0x4d21b7,{'userId':_0x207c82});}}for(const _0x34a030 of this['editor']['model']['createRangeIn'](_0x55d85e)['getWalker']({'singleCharacters':!0x0})){const _0x2b777a=this['_getVidAttributeName'](_0x34a030),_0x57a6eb='elementEnd'==_0x34a030['type']?_0x34a030['previousPosition']['path']['slice'](0x0,-0x1):_0x34a030['previousPosition']['path'],_0x5ed342=_0x4b55a2['getNodeByPath'](_0x57a6eb);_0x5ed342['getAttribute'](_0x2b777a)>0x0||_0x5ed342['_setAttribute'](_0x2b777a,_0x47c0ee[_0xf888ef++]);}for(const [_0xac21c3,_0x266959]of _0x55d85e['markers'])_0xac21c3['startsWith']('revision:')||this['_markers']['set'](_0xac21c3,_0x266959);}const _0x17400d=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17400d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17400d,0x1));const _0x487a72=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x487a72),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x487a72,0x1));const _0x505e22=Array['from'](this['_diffRoots'])['map'](([_0x1077f7,_0x252ee8])=>[_0x1077f7,N(_0x252ee8)]);this['_saveMetaData'](this['_lastTo'],_0x505e22,this['_markers'],_0x12e8ff);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d4b84,_0x219858,_0x30018a,_0x5e0840){const _0x4855c2=new Map(_0x219858),_0x2b6aa2=new Map(_0x444a1c(_0x5e0840)),_0x2ba683=new Map();for(const [_0xed995b,_0x5014fe]of _0x30018a)_0x2ba683['set'](_0xed995b,{'start':_0x5014fe['start']['clone'](),'end':_0x5014fe['end']['clone'](),'rootName':_0x5014fe['root']['rootName']});this['_savedMetaData']['set'](_0x4d4b84,{'roots':_0x4855c2,'markers':_0x2ba683,'rootsAttributes':_0x2b6aa2});}['_removeMetaData'](_0x2d1e6c){this['_savedMetaData']['delete'](_0x2d1e6c);}['_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'](_0x515561,_0x39feb6=null){let _0x34e227=null;_0x515561['is']('documentFragment')||(_0x34e227=new ut(_0x515561['name'],{'vid_start':null===_0x39feb6?this['_revisionId']++:_0x39feb6++}));const _0x158cb6=[];for(const _0x1ea6ab of _0x515561['getChildren']())if(_0x1ea6ab['is']('element')){_0x158cb6['push'](this['_makeIdsRoot'](_0x1ea6ab,_0x39feb6));const _0x846e36=_0x158cb6[_0x158cb6['length']-0x1];null!==_0x39feb6&&(_0x39feb6=_0x846e36['is']('element','$text')?_0x846e36['getAttribute']('vid')+0x1:_0x846e36['getAttribute']('vid_end')+0x1);}else{for(let _0x43466b=0x0;_0x43466b<_0x1ea6ab['offsetSize'];_0x43466b++)_0x158cb6['push'](new ut('$text',{'vid':null===_0x39feb6?this['_revisionId']++:_0x39feb6++}));}if(_0x515561['is']('documentFragment')){const _0x10ba27=P(_0x515561['rootName']);return _0x10ba27['_insertChild'](0x0,_0x158cb6),_0x10ba27;}return _0x34e227['_setAttribute']('vid_end',null===_0x39feb6?this['_revisionId']++:_0x39feb6++),_0x34e227['_insertChild'](0x0,_0x158cb6),_0x34e227;}['_calculateMetaData'](_0x25b404,_0xc84f55,_0x4198e1){this['_reset']();const {roots:_0x5352e2,markers:_0x346caf,rootsAttributes:_0x431fe6}=this['_savedMetaData']['get'](_0x25b404);this['_baseRoots']=new Map(_0x5352e2),this['_baseRootsAttributes']=new Map(_0x444a1c(_0x431fe6));for(const [_0xcd346c,_0x57fd33]of this['_baseRoots'])if('$graveyard'!==_0xcd346c&&(this['_diffRoots']['set'](_0xcd346c,N(_0x57fd33)),this['_diffRootsAttributes']=new Map(_0x444a1c(_0x431fe6)),_0x4198e1)){const _0x92762d=this['_revisionId'];this['_idsRoots']['set'](_0xcd346c,this['_makeIdsRoot'](_0x57fd33)),this['_baseIdsRoots']['set'](_0xcd346c,this['_makeIdsRoot'](_0x57fd33,_0x92762d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4198e1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x137bc0,_0x457b7b]of _0x346caf){const _0x40d121=this['_baseRoots']['get'](_0x457b7b['rootName']),_0x402c92=this['_diffRoots']['get'](_0x457b7b['rootName']),_0x4832ed=new ft(this['_fixPosition'](_0x457b7b['start'],_0x40d121),this['_fixPosition'](_0x457b7b['end'],_0x40d121)),_0x3ade6a=this['_fixRange'](_0x4832ed,_0x402c92);_0x40d121['markers']['set'](_0x137bc0,_0x4832ed),this['_markers']['set'](_0x137bc0,_0x3ade6a);}this['_applyOperations'](_0x25b404,_0xc84f55,_0x4198e1);}['_applyOperations'](_0x5794a3,_0x528a13,_0x577c7e){for(const _0x5e50e4 of this['source']['getOperations'](_0x5794a3,_0x528a13))this['_handleOperation'](_0x5e50e4,_0x577c7e);for(const _0x14d96d of this['_diffRoots']['values']())_0x14d96d['markers']['clear']();for(const [_0x456a8c,_0x716fc3]of this['_markers']){this['_diffRoots']['get'](_0x716fc3['root']['rootName'])['markers']['set'](_0x456a8c,_0x716fc3['clone']());}const _0x18c00e=new Map(),_0x4c789b=new Map();for(const [_0x2f21c9,_0x217a8f]of this['_diffRoots'])_0x18c00e['set'](_0x2f21c9,N(_0x217a8f)),_0x4c789b['set'](_0x2f21c9,this['_diffRootsAttributes']['get'](_0x2f21c9));this['_saveMetaData'](_0x528a13,_0x18c00e,this['_markers'],_0x4c789b);}['_getPreviousFrom'](_0x189f06){const _0x159228=Array['from'](this['_savedMetaData']['keys']());_0x159228['sort']((_0x21de13,_0x425c06)=>_0x21de13-_0x425c06),_0x159228['reverse']();for(const _0x1bf2c7 of _0x159228)if(_0x1bf2c7<_0x189f06)return _0x1bf2c7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x314138,_0x1c3a43){const _0x49e3b8=Array['from'](_0x1c3a43['markers'])['map'](([_0x265153,_0x1bfb0b])=>[_0x265153,this['_fixRange'](_0x1bfb0b,_0x314138)]);_0x314138['markers']=new Map(_0x49e3b8);}['_transformMarkers'](_0x594d08){for(const _0x2efc68 of this['_markers']['values']()){const _0x1730ed=_0x2efc68['getTransformedByOperation'](_0x594d08),_0x19ece6=ft['_createFromRanges'](_0x1730ed);_0x2efc68['start']=_0x19ece6['start'],_0x2efc68['end']=_0x19ece6['end'];}}['_handleOperation'](_0x554ed3,_0x3d4d7a){if('addRoot'!=_0x554ed3['type']&&'detachRoot'!=_0x554ed3['type']){if('insert'==_0x554ed3['type']){const _0x320281=_0x554ed3['position']['root']['rootName'];this['_diffRoots']['has'](_0x320281)||(this['_diffRoots']['set'](_0x320281,P(_0x320281,!0x0)),this['_diffRootsAttributes']['set'](_0x320281,{}),_0x3d4d7a&&this['_idsRoots']['set'](_0x320281,P(_0x320281,!0x0)));}else{if('addRootAttribute'==_0x554ed3['type']||'removeRootAttribute'==_0x554ed3['type']||'changeRootAttribute'==_0x554ed3['type'])return void this['_handleRootAttributeOperation'](_0x554ed3);'marker'==_0x554ed3['type']&&this['_handleMarkerOperation'](_0x554ed3);}if('marker'!==_0x554ed3['type']){const _0x399cb9=this['_cloneOperation'](_0x554ed3,this['_diffRoots']);_0x399cb9['_execute'](),this['_transformMarkers'](_0x399cb9);}if(_0x3d4d7a)switch(_0x554ed3['type']){case'insert':this['_handleInsertOperation'](_0x554ed3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x554ed3);break;case'merge':this['_handleMergeOperation'](_0x554ed3);break;case'split':this['_handleSplitOperation'](_0x554ed3);}}else this['_handleRootOperation'](_0x554ed3,_0x3d4d7a);}['_cloneOperation'](_0x4e0c2d,_0x1b3da0){const _0x2f6980=_0x4e0c2d['clone']();return _0x2f6980['_authorId']=_0x4e0c2d['_authorId'],this['_fixOperation'](_0x2f6980,_0x1b3da0),_0x2f6980;}['_getBaseVids'](_0x5262a3){return _0x5262a3['map'](_0x94d94a=>{const _0x38dab4=this['_getVidAttributeName'](_0x94d94a);return Number(_0x94d94a['item']['getAttribute'](_0x38dab4));});}['_generateTape'](_0x593e0a,_0x45ea9b){if(_0x593e0a['is']('element','$text'))_0x45ea9b['push']({'item':_0x593e0a,'type':'text'});else{_0x593e0a['is']('element')&&_0x45ea9b['push']({'item':_0x593e0a,'type':'elementStart'});for(const _0x45f28b of _0x593e0a['getChildren']())this['_generateTape'](_0x45f28b,_0x45ea9b);_0x593e0a['is']('element')&&_0x45ea9b['push']({'item':_0x593e0a,'type':'elementEnd'});}return _0x45ea9b;}['_getState'](){const _0x8785db=new Map(this['_touched']),_0x151d4c=new Map(_0x8785db),_0x51ea98=new Map(),_0x3071c5={'insertions':{},'deletions':{}},_0x53f271={'insertions':{},'deletions':{}},_0x11b6d1=new Map(),_0x99f571=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x99f571['delete']('$graveyard');for(const _0x342cc4 of _0x99f571){const _0x2e124c=this['_diffRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1),_0xf30628=this['_baseRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1);_0x2e124c['isAttached']()||_0xf30628['isAttached']()?(_0x3071c5['insertions'][_0x342cc4]=N(_0x2e124c),_0x3071c5['deletions'][_0x342cc4]=N(_0xf30628),this['_copyMarkers'](_0x3071c5['deletions'][_0x342cc4],_0xf30628),this['_copyMarkers'](_0x3071c5['insertions'][_0x342cc4],_0x2e124c),_0x53f271['insertions'][_0x342cc4]=this['_generateTape'](this['_idsRoots']['get'](_0x342cc4),[]),_0x53f271['deletions'][_0x342cc4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1),[])):_0x99f571['delete'](_0x342cc4);}for(const _0x3ef29f of _0x99f571){const _0x379b96=_0x53f271['insertions'][_0x3ef29f];for(const _0x505492 of _0x379b96){const _0x4da4d0=this['_getVidAttributeName'](_0x505492),_0x105767=_0x505492['item']['getAttribute'](_0x4da4d0);_0x151d4c['delete'](_0x105767),_0x105767>=this['_startingRevisionId']&&_0x51ea98['set'](_0x105767,_0x8785db['get'](_0x105767));}}for(const _0x4687b7 of _0x99f571){const _0x5efe71=_0x53f271['insertions'][_0x4687b7],_0x9b0fd3=this['_getBaseVids'](_0x53f271['deletions'][_0x4687b7]);let _0x556e92=0x0;for(const _0xc28117 of _0x5efe71){const _0x4eaec2=this['_getVidAttributeName'](_0xc28117),_0x203665=_0xc28117['item']['getAttribute'](_0x4eaec2);if(!_0x51ea98['has'](_0x203665)&&!_0x11b6d1['has'](_0x203665)){if(_0x151d4c['has'](_0x203665))_0x556e92++;else{if(_0x203665!=_0x9b0fd3[_0x556e92]){const _0x17f5a9=_0x8785db['get'](_0x203665)||_0x8785db['get'](_0x9b0fd3[_0x556e92]);for(;_0x203665!=_0x9b0fd3[_0x556e92];)_0x151d4c['has'](_0x9b0fd3[_0x556e92])||(_0x11b6d1['set'](_0x9b0fd3[_0x556e92],_0x17f5a9),_0x8785db['set'](_0x9b0fd3[_0x556e92],_0x17f5a9)),_0x556e92++;}_0x556e92++;}}}}for(const _0x57e8f5 of _0x99f571){const _0x3ffd57=_0x53f271['insertions'][_0x57e8f5];for(const _0xae1edf of _0x3ffd57){const _0x42861e=this['_getVidAttributeName'](_0xae1edf),_0x516dce=_0xae1edf['item']['getAttribute'](_0x42861e);if(_0x11b6d1['has'](_0x516dce)){const _0x2bada5=_0x11b6d1['get'](_0x516dce);_0x151d4c['has'](_0x516dce)||_0x151d4c['set'](_0x516dce,{..._0x2bada5}),_0x51ea98['set'](_0x516dce,{..._0x2bada5});}}}for(const _0x199bb6 of _0x151d4c['keys']())_0x199bb6>=this['_startingRevisionId']&&_0x151d4c['delete'](_0x199bb6);const _0xca17ea=new Map();for(const _0x5bda68 of _0x99f571){let _0x4d67cf=_0x53f271['insertions'][_0x5bda68];for(const _0x367e50 of _0x4d67cf)if(_0x367e50['item']['is']('element','tableCell')){const _0x4c3aec=this['_getVidAttributeName'](_0x367e50),_0x55a263=_0x367e50['item']['getAttribute'](_0x4c3aec);if(_0x51ea98['has'](_0x55a263)){const _0x4b025e=_0x367e50['item']['parent']['parent']['getAttribute']('vid_start'),_0x4269d2=_0xca17ea['get'](_0x4b025e)||new Set();_0x4269d2['add'](_0x51ea98['get'](_0x55a263)['userId']),_0xca17ea['set'](_0x4b025e,_0x4269d2);}}_0x4d67cf=_0x53f271['deletions'][_0x5bda68];for(const _0x2ace44 of _0x4d67cf)if(_0x2ace44['item']['is']('element','tableCell')){const _0xd698ba=this['_getVidAttributeName'](_0x2ace44),_0x32b7a9=_0x2ace44['item']['getAttribute'](_0xd698ba);if(_0x151d4c['has'](_0x32b7a9)){const _0x1ec05e=_0x2ace44['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f6d04=_0xca17ea['get'](_0x1ec05e)||new Set();_0x4f6d04['add'](_0x151d4c['get'](_0x32b7a9)['userId']),_0xca17ea['set'](_0x1ec05e,_0x4f6d04);}}for(const _0x550053 of _0xca17ea['keys']())(_0x51ea98['has'](_0x550053)||_0x151d4c['has'](_0x550053))&&_0xca17ea['delete'](_0x550053);}for(const _0x2bdb2f of _0x99f571){const _0x3763ad=_0x53f271['insertions'][_0x2bdb2f];let _0x2f3eea=null,_0x3ab615=null;for(const _0x45917e of _0x3763ad){const _0x38f2eb=this['_getVidAttributeName'](_0x45917e),_0x3ec63a=_0x45917e['item']['getAttribute'](_0x38f2eb),_0x4b5929=_0xca17ea['get'](_0x3ec63a);_0x4b5929&&'elementStart'==_0x45917e['type']&&(_0x2f3eea=Array['from'](_0x4b5929)[0x0],_0x3ab615=_0x45917e['item']['getAttribute']('vid_end')),_0x2f3eea&&(_0x151d4c['set'](_0x3ec63a,{'userId':_0x2f3eea}),_0x51ea98['set'](_0x3ec63a,{'userId':_0x2f3eea})),_0x3ec63a==_0x3ab615&&(_0x2f3eea=null,_0x3ab615=null);}}const _0x146cd2={},_0x4d1aed=new Set();for(const _0x1fc3b2 of _0x99f571){const _0x1c2c29=_0x3071c5['deletions'][_0x1fc3b2],_0x5c8804=_0x3071c5['insertions'][_0x1fc3b2];for(const {userId:_0x5b6169}of this['_touchedMarkers']['values']())null!==_0x5b6169&&_0x4d1aed['add'](_0x5b6169);for(const {userId:_0x3b8b39}of this['_touchedRoots']['values']())null!==_0x3b8b39&&_0x4d1aed['add'](_0x3b8b39);this['_markChanges'](_0x5c8804,_0x53f271['insertions'][_0x1fc3b2],_0x51ea98,'insertion',_0x4d1aed),this['_markChanges'](_0x1c2c29,_0x53f271['deletions'][_0x1fc3b2],_0x151d4c,'deletion',_0x4d1aed),_0x146cd2[_0x1fc3b2]={'insertions':this['_prepareViewToSave'](_0x5c8804),'deletions':this['_prepareViewToSave'](_0x1c2c29),'attachChange':this['_touchedRoots']['get'](_0x1fc3b2)||null,'attributesBefore':_0x444a1c(this['_baseRootsAttributes']['get'](_0x1fc3b2))||{},'attributesAfter':_0x444a1c(this['_diffRootsAttributes']['get'](_0x1fc3b2))};}return{'diffData':_0x146cd2,'authorsIds':Array['from'](_0x4d1aed)};}['_processRootBeforeSave'](_0x39de0b){for(const [,_0x5859a0]of _0x39de0b['markers']){const _0x2f75c5=_0x5859a0['start']['getAncestors']()['filter'](_0x31db21=>'tableCell'==_0x31db21['name']);for(const _0x34b33f of _0x2f75c5)0x1==_0x34b33f['childCount']&&_0x34b33f['getChild'](0x0)['is']('element','paragraph')&&_0x34b33f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x546e30){this['_processRootBeforeSave'](_0x546e30);const _0x3675a5=this['editor']['data']['toView'](_0x546e30,{}),_0x3a75e3=Array['from'](_0x3675a5['getChildren']())['map'](_0x59eb4d=>this['_getViewJson'](_0x59eb4d));return JSON['stringify'](_0x3a75e3);}['_getViewJson'](_0x468913){if(_0x468913['is']('$text'))return _0x468913['data'];{const _0x3435a4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1c4590=_0x468913,_0x21617b=this['editor']['data']['htmlProcessor']['domConverter'],_0x4cc29d={'type':_0x3435a4['_getTypeCharForViewElement'](_0x1c4590),'name':_0x1c4590['name'],'attributes':Array['from'](_0x1c4590['getAttributes']()),'children':Array['from'](_0x1c4590['getChildren']())['map'](_0x323732=>this['_getViewJson'](_0x323732))};if(_0x468913['is']('uiElement')&&'$comment'!=_0x468913['name']){const _0x5e20c5=_0x468913['render'](_0x21617b['domDocument'],_0x21617b);_0x4cc29d['children']['push'](_0x5e20c5['outerHTML']);}else{if(_0x468913['is']('rawElement')){const _0x2973da=_0x21617b['domDocument']['createElement'](_0x1c4590['name']);_0x468913['render'](_0x2973da,_0x21617b),_0x4cc29d['children']['push'](_0x2973da['innerHTML']);}}const _0x31f57c=Array['from'](_0x1c4590['getCustomProperties']());_0x31f57c['length']>0x0&&(_0x4cc29d['customProperties']=_0x31f57c);const _0x1def27=_0x1c4590['getFillerOffset']();return null!==_0x1def27&&(_0x4cc29d['fillerOffset']=_0x1def27),_0x4cc29d;}}['_markChanges'](_0x313b81,_0x196646,_0xf04086,_0x50c5e3,_0xaf25c5){let _0xf6112b=null,_0x5f30ea=null,_0x1e945c=0x0;const _0x218546=this['editor']['model'];for(let _0x54e1d2=0x0;_0x54e1d2<_0x196646['length'];_0x54e1d2++){const _0x4cf814=this['_getVidAttributeName'](_0x196646[_0x54e1d2]),_0x1754c6=_0x196646[_0x54e1d2]['item']['getAttribute'](_0x4cf814),_0x2c4094=_0xf04086['get'](_0x1754c6),_0x2a4472=_0x54e1d2==_0x196646['length']-0x1;(!_0xf6112b&&_0x2c4094&&(_0xf6112b=_0x2c4094,_0x5f30ea=_0x196646[_0x54e1d2]),_0xf6112b&&(!_0x2c4094||_0x2c4094['userId']!=_0xf6112b['userId']))&&(_0x151ac3(_0x2c4094,F(_0x5f30ea,_0x313b81,_0x218546),F(_0x196646[_0x54e1d2],_0x313b81,_0x218546)),_0xf6112b=_0x2c4094||null,_0x5f30ea=_0x2c4094?_0x196646[_0x54e1d2]:null),_0xf6112b&&_0x2a4472&&_0x151ac3(_0x2c4094,F(_0x5f30ea,_0x313b81,_0x218546),B(_0x196646[_0x54e1d2],_0x313b81,_0x218546));}function _0x151ac3(_0x327cd5,_0x14fcf6,_0x56ba07){const _0xba1b5e=_0xf6112b['userId'],_0x219906='revision:'+_0x50c5e3+':'+_0xba1b5e+':'+_0x1e945c++,_0x227508=_0x218546['createRange'](_0x14fcf6,_0x56ba07);_0x313b81['markers']['set'](_0x219906,_0x227508),null!==_0xba1b5e&&_0xaf25c5['add'](_0xba1b5e);}}['_getVidAttributeName'](_0x2ca45d){switch(_0x2ca45d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x281131,_0x45aa3f){_0x281131['baseVersion']=null;for(const _0x2dc335 in _0x281131){const _0x538cd=_0x281131[_0x2dc335];if(_0x538cd instanceof vt){const _0x5466f7=_0x45aa3f['get'](_0x538cd['root']['rootName']);_0x281131[_0x2dc335]=this['_fixPosition'](_0x538cd,_0x5466f7);}if(_0x538cd instanceof ft){const _0x1cef3e=_0x45aa3f['get'](_0x538cd['root']['rootName']);_0x281131[_0x2dc335]=this['_fixRange'](_0x538cd,_0x1cef3e);}'root'===_0x2dc335&&(_0x281131['root']=_0x45aa3f['get'](_0x281131['root']['rootName']));}}['_fixRange'](_0x1df951,_0x13dcfe){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1df951['start'],_0x13dcfe),this['_fixPosition'](_0x1df951['end'],_0x13dcfe));}['_fixPosition'](_0x5564ea,_0x147f1c){return this['editor']['model']['createPositionFromPath'](_0x147f1c,_0x5564ea['path'],_0x5564ea['stickiness']);}['_handleInsertOperation'](_0xd077ac){const _0xf95a53=this['_idsRoots']['get'](_0xd077ac['position']['root']['rootName']),_0x1307a9=this['_fixPosition'](_0xd077ac['position'],_0xf95a53),_0x44d44b=null===_0xd077ac['_authorId']?null:_0xd077ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e6aa=_0x1307a9['parent'],_0x345d8a=this['_revisionId'],_0x1ce5d7=[];for(const _0x5794cd of _0xd077ac['nodes'])if(_0x5794cd['is']('element'))_0x1ce5d7['push'](this['_makeIdsRoot'](_0x5794cd));else{for(let _0x37d6c1=0x0;_0x37d6c1<_0x5794cd['offsetSize'];_0x37d6c1++)_0x1ce5d7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x44b647=this['_revisionId'];for(let _0x4b5fee=_0x345d8a;_0x4b5fee<_0x44b647;_0x4b5fee++)this['_touched']['set'](_0x4b5fee,{'userId':_0x44d44b});_0x29e6aa['_insertChild'](_0x1307a9['offset'],_0x1ce5d7);}['_handleMoveOperation'](_0x3065b7){(_0x3065b7=this['_cloneOperation'](_0x3065b7,this['_idsRoots']))['_execute']();const _0x4b44b9=null===_0x3065b7['_authorId']?null:_0x3065b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x273cf4=_0x3065b7['getMovedRangeStart'](),_0x5f4fd2=_0x273cf4['parent'],_0x3afc3a=_0x273cf4['offset'];!function _0x2ce003(_0x725746,_0x2d3a5b,_0x568d6e,_0x10e1d6){for(let _0x1f63db=_0x568d6e;_0x1f63db<_0x10e1d6;_0x1f63db++){const _0x19ab69=_0x2d3a5b['getChild'](_0x1f63db);_0x19ab69['is']('element','$text')?_0x725746['set'](_0x19ab69['getAttribute']('vid'),{'userId':_0x4b44b9}):(_0x725746['set'](_0x19ab69['getAttribute']('vid_start'),{'userId':_0x4b44b9}),_0x2ce003(_0x725746,_0x19ab69,0x0,_0x19ab69['childCount']),_0x725746['set'](_0x19ab69['getAttribute']('vid_end'),{'userId':_0x4b44b9}));}}(this['_touched'],_0x5f4fd2,_0x3afc3a,_0x3afc3a+_0x3065b7['howMany']);}['_handleMergeOperation'](_0x1bb6f1){const _0x36d655=null===(_0x1bb6f1=this['_cloneOperation'](_0x1bb6f1,this['_idsRoots']))['_authorId']?null:_0x1bb6f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dec35=_0x1bb6f1['targetPosition']['parent'],_0x1147c9=_0x1bb6f1['sourcePosition']['parent'],_0xebcff=_0x5dec35['getAttribute']('vid_end'),_0x1725e1=_0x1147c9['getAttribute']('vid_start');_0x5dec35['_setAttribute']('vid_end',_0x1147c9['getAttribute']('vid_end')),_0x1147c9['_setAttribute']('vid_end',_0xebcff),this['_touched']['set'](_0x1725e1,{'userId':_0x36d655}),this['_touched']['set'](_0xebcff,{'userId':_0x36d655}),_0x1bb6f1['_execute']();}['_handleSplitOperation'](_0x5e0968){const _0x2158b2=null===(_0x5e0968=this['_cloneOperation'](_0x5e0968,this['_idsRoots']))['_authorId']?null:_0x5e0968['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x249ba1=_0x5e0968['graveyardPosition'],_0x4004ec=_0x5e0968['splitPosition']['parent'];_0x5e0968['_execute']();const _0xb10801=_0x4004ec['getAttribute']('vid_end'),_0x3c9bca=_0x5e0968['insertionPosition']['nodeAfter'];if(_0x249ba1){const _0x224096=_0x3c9bca['getAttribute']('vid_end'),_0x1a3ee5=_0x4004ec['getAttribute']('vid_end');_0x4004ec['_setAttribute']('vid_end',_0x224096),_0x3c9bca['_setAttribute']('vid_end',_0x1a3ee5),this['_touched']['set'](_0x4004ec['getAttribute']('vid_end'),{'userId':_0x2158b2}),this['_touched']['set'](_0x3c9bca['getAttribute']('vid_start'),{'userId':_0x2158b2});}else{const _0x3d2281=this['_revisionId']++,_0x439dba=this['_revisionId']++;_0x4004ec['_setAttribute']('vid_end',_0x3d2281),_0x3c9bca['_setAttribute']('vid_start',_0x439dba),_0x3c9bca['_setAttribute']('vid_end',_0xb10801),this['_touched']['set'](_0x3d2281,{'userId':_0x2158b2}),this['_touched']['set'](_0x439dba,{'userId':_0x2158b2});}}['_handleMarkerOperation'](_0x19b6bf){if(!_0x19b6bf['affectsData'])return;const _0x389247=(_0x19b6bf=this['_cloneOperation'](_0x19b6bf,this['_diffRoots']))['oldRange']?_0x19b6bf['oldRange']['root']:null,_0x53d751=_0x19b6bf['newRange']?_0x19b6bf['newRange']['root']:null;_0x389247&&this['_markers']['delete'](_0x19b6bf['name']),_0x53d751&&this['_markers']['set'](_0x19b6bf['name'],_0x19b6bf['newRange']['clone']());const _0x395d4c=null===_0x19b6bf['_authorId']?null:_0x19b6bf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e17ad=_0x19b6bf['name'];if(!this['_touchedMarkers']['has'](_0x1e17ad))return void this['_touchedMarkers']['set'](_0x1e17ad,{'range':_0x19b6bf['oldRange'],'userId':_0x395d4c});const _0x1b295c=this['_touchedMarkers']['get'](_0x1e17ad),_0x55cbbc=_0x1b295c['range'],_0x26658a=_0x19b6bf['newRange'];null==_0x55cbbc&&null==_0x26658a||_0x55cbbc&&_0x26658a&&_0x55cbbc['isEqual'](_0x26658a)?this['_touchedMarkers']['delete'](_0x19b6bf['name']):_0x1b295c['userId']=_0x395d4c;}['_handleRootOperation'](_0x252773,_0x1fb16d){this['_diffRoots']['has'](_0x252773['rootName'])?this['_diffRoots']['get'](_0x252773['rootName'])['_isAttached']=_0x252773['isAdd']:(this['_diffRoots']['set'](_0x252773['rootName'],P(_0x252773['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x252773['rootName'],{}),_0x1fb16d&&this['_idsRoots']['set'](_0x252773['rootName'],P(_0x252773['rootName'],!0x0)));const _0x4d3c30=null===_0x252773['_authorId']?null:_0x252773['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d793e=this['_touchedRoots']['get'](_0x252773['rootName']);_0x4d793e&&_0x4d793e['userId']===_0x4d3c30?this['_touchedRoots']['delete'](_0x252773['rootName']):this['_touchedRoots']['set'](_0x252773['rootName'],{'userId':_0x4d3c30,'isAttached':_0x252773['isAdd']});}['_handleRootAttributeOperation'](_0x151026){const _0x5d3549=this['_diffRootsAttributes']['get'](_0x151026['root']['rootName']);null===_0x151026['newValue']?delete _0x5d3549[_0x151026['key']]:_0x5d3549[_0x151026['key']]=_0x151026['newValue'];}}function N(_0x5d085a){const _0x5ffa35=P(_0x5d085a['rootName'],_0x5d085a['isAttached']());for(const _0x312b06 of _0x5d085a['getChildren']()){const _0x242db2=_0x312b06['_clone'](!0x0);_0x5ffa35['_appendChild'](_0x242db2);}return _0x5ffa35;}function P(_0x377fbb,_0x5067aa=!0x0){const _0x5e0dc8=new gt();return _0x5e0dc8['rootName']=_0x377fbb,_0x5e0dc8['_isAttached']=_0x5067aa,_0x5e0dc8['isAttached']=()=>_0x5e0dc8['_isAttached'],_0x5e0dc8;}function F(_0x3d0e0b,_0x170695,_0x3b3a32){const _0x28410d='elementEnd'==_0x3d0e0b['type']?_0x3b3a32['createPositionAt'](_0x3d0e0b['item'],'end'):_0x3b3a32['createPositionBefore'](_0x3d0e0b['item']);return _0x3b3a32['createPositionFromPath'](_0x170695,_0x28410d['path'],_0x28410d['stickiness']);}function B(_0x2559c5,_0x13c6cb,_0x559c7f){const _0x59086e='elementStart'==_0x2559c5['type']?_0x559c7f['createPositionAt'](_0x2559c5['item'],0x0):_0x559c7f['createPositionAfter'](_0x2559c5['item']);return _0x559c7f['createPositionFromPath'](_0x13c6cb,_0x59086e['path'],_0x59086e['stickiness']);}class os extends _0x45ce53{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4ec2e0,_0x3a570a){super(_0x4ec2e0),this['focusTracker']=new _0xb00117(),this['keystrokes']=new _0x101bde(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3a570a),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'](),_0x501da0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39c848=_0x246cf1=>_0x246cf1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39c848),this['keystrokes']['set']('arrowleft',_0x39c848),this['keystrokes']['set']('arrowup',_0x39c848),this['keystrokes']['set']('arrowdown',_0x39c848);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x239990){this['revisionNameInputView']['fieldView']['element']['value']=_0x239990['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x41870e){const _0x371eb8=new nt(this['locale'],ti),_0x1898c1=_0x371eb8['fieldView'];_0x1898c1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1fa7cf=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x41870e&&(_0x1fa7cf+='\x20('+g(this['locale'],'optional')+')'),(_0x371eb8['label']=_0x1fa7cf,_0x1898c1['on']('input',()=>{this['revisionNameInputValue']=_0x1898c1['element']['value']['trim']();}),_0x371eb8);}}class f extends _0x58bc6f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2adbd8=this['editor'],_0x1d3c87=_0x2adbd8['plugins']['get']('RevisionTracker');_0x2adbd8['ui']['componentFactory']['add']('revisionHistory',_0xd38b7a=>{const _0x22d439=_0xbd0f73(_0xd38b7a),_0xd27646=_0x22d439['panelView']['children'],_0x5a1838=new _0x86dbad(_0xd38b7a),_0x3e1efb=new te(_0xd38b7a),_0x4ee4b0=new _0xf1e793(_0xd38b7a),_0x39ffb7=new te(_0xd38b7a),_0x17a62f=new _0xf1e793(_0xd38b7a);return _0x22d439['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x1d3c87,'isEnabled',_0x2adbd8,'isReadOnly',(_0x3ed173,_0x42d1c1,_0x396cd2)=>_0x3ed173&&_0x42d1c1&&!_0x396cd2),_0x22d439['buttonView']['set']({'icon':_0x3be67e,'label':g(_0xd38b7a,'Revision\x20history'),'tooltip':!0x0}),_0x4ee4b0['set']({'label':g(_0xd38b7a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4ee4b0['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x1d3c87,'isEnabled',_0x2adbd8,'isReadOnly',(_0x68a76d,_0x586f6b,_0xca881)=>_0x68a76d&&_0x586f6b&&!_0xca881),_0x4ee4b0['on']('execute',()=>this['_showDialog']()),_0x17a62f['set']({'label':g(_0xd38b7a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x17a62f['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x2adbd8,'isReadOnly',(_0x1e34be,_0x2296fe)=>_0x1e34be&&!_0x2296fe),_0x17a62f['on']('execute',()=>{_0x2adbd8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x22d439['isOpen']=!0x1,_0x2adbd8['editing']['view']['focus']();}),_0x3e1efb['children']['add'](_0x4ee4b0),_0x39ffb7['children']['add'](_0x17a62f),_0x5a1838['role']='menu',_0x5a1838['items']['addMany']([_0x3e1efb,_0x39ffb7]),_0xd27646['add'](_0x5a1838),_0x22d439;}),_0x2adbd8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1357eb=this['editor'],_0x2c6409=_0x1357eb['locale'],_0x287ea2=new _0x5f3a05(_0x2c6409),_0xd9176=new _0x1e21b2(_0x2c6409);_0x287ea2['buttonView']['set']({'icon':_0x3be67e,'label':g(_0x2c6409,'Revision\x20history')});const _0x42e7a0=new _0xb7a14(_0x2c6409,_0x287ea2),_0x3ab60c=new _0x438cc2(_0x2c6409);_0x3ab60c['set']({'label':g(_0x2c6409,'Save\x20current\x20revision')}),_0x3ab60c['delegate']('execute')['to'](_0x287ea2),_0x3ab60c['on']('execute',()=>{this['_showDialog']();}),_0x42e7a0['children']['add'](_0x3ab60c),_0xd9176['items']['add'](_0x42e7a0);const _0x379828=new _0xb7a14(_0x2c6409,_0x287ea2),_0x332373=new _0x438cc2(_0x2c6409);return _0x332373['set']({'label':g(_0x2c6409,'Open\x20revision\x20history')}),_0x332373['delegate']('execute')['to'](_0x287ea2),_0x332373['on']('execute',()=>{_0x1357eb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x379828['children']['add'](_0x332373),_0xd9176['items']['add'](_0x379828),_0x287ea2['panelView']['children']['add'](_0xd9176),_0x287ea2;}['_showDialog'](){const _0x5b5d41=this['editor'],_0x46c360=_0x5b5d41['locale'],_0x1bfabc=_0x5b5d41['plugins']['get']('Dialog'),_0x2ff4ef=_0x5b5d41['plugins']['get']('RevisionTracker');function _0x4ca64c(_0x43af91){_0x5b5d41['config']['get']('revisionHistory.requireRevisionName')&&''===_0x43af91['revisionName']?_0x43af91['revisionNameInputView']['errorText']=g(_0x46c360,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5b5d41['plugins']['get'](u)['saveRevision']({'name':_0x43af91['revisionName']}),_0x1bfabc['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4ca64c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1bfabc['show']({'id':'revisionSave','title':g(_0x46c360,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5b5d41['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1bfabc['hide']()},{'label':g(_0x5b5d41['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xd54987){_0xd54987['bind']('isEnabled')['to'](_0x2ff4ef,'isReady',_0x2ff4ef,'isEnabled',_0x5b5d41,'isReadOnly',(_0x1478a6,_0x469154,_0x29b175)=>_0x1478a6&&_0x469154&&!_0x29b175);},'onExecute':()=>_0x4ca64c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1cf775=this['editor'],_0x459bfc=_0x1cf775['locale'];this['_saveRevisionFormView']=new os(_0x459bfc,_0x1cf775['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x45ce53{['changeId'];['_model'];constructor(_0x25ae9d,_0x446618){super(_0x25ae9d),this['_model']=_0x446618,this['changeId']=_0x446618['id'];const _0x518de5=this['bindTemplate'],_0x553d11=g(_0x25ae9d,_0x446618['data']['isSuggestion']?'Suggested\x20by':'add'==_0x446618['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x446618['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x518de5['to']('type',_0x6b491e=>'ck-revision-change__'+_0x6b491e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x553d11}]},{'text':'\x20'+_0x446618['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x23464f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x59a8d2){super(),this['id']=_0x59a8d2['id']||_0x11e8c2(),this['author']=_0x59a8d2['author'],this['type']=_0x59a8d2['type'],this['data']=_0x59a8d2['data']||{},this['rootName']=_0x59a8d2['rootName'],this['set']('createdAt',_0x59a8d2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x44a5fe,_0x12af50){this['newRevisionId']=_0x44a5fe,this['oldRevisionId']=_0x12af50,this['changes']=new _0x4aa85f();}['_setChanges'](_0x2cdbaa){for(const _0x4773f8 of _0x2cdbaa)this['changes']['add'](_0x4773f8);}}class m extends _0x58bc6f{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d5273,_0x109f69,I,V];}constructor(_0x21dc0d){super(_0x21dc0d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x197c7f,_0x58a3c5,_0x62cf3c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x44c549=>{for(const _0x107974 of this['editor']['editing']['view']['document']['roots'])_0x62cf3c?_0x44c549['removeClass']('ck-editor__editable__overlay',_0x107974):_0x44c549['addClass']('ck-editor__editable__overlay',_0x107974);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4e51a5=>null!==_0x4e51a5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x239ba8,_0x450e18,_0x2af42e)=>_0x239ba8&&_0x2af42e?_0x450e18['changes']['getIndex'](_0x2af42e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x45c51c,_0x11f9c6)=>_0x45c51c?_0x11f9c6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x109f69);}['init'](){const _0x28e72f=this['editor'],_0x3fc5d1=new pt(_0x28e72f,{'direction':'backward'}),_0x4307c4=new pt(_0x28e72f,{'direction':'forward'});(_0x28e72f['commands']['add']('showPreviousChange',_0x3fc5d1),_0x28e72f['commands']['add']('showNextChange',_0x4307c4),_0x28e72f['commands']['add']('restoreRevision',new wt(_0x28e72f)),this['on']('change:numberOfChanges',()=>{_0x3fc5d1['refresh'](),_0x4307c4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x28e72f['enableReadOnlyMode']('revision-viewer'),_0x28e72f['plugins']['has']('WidgetToolbarRepository'))&&_0x28e72f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x116b0f){return await this['_utils']['loadRevisionData'](_0x116b0f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x116b0f);}async['getRevisionRootsAttributes'](_0x528883){return await this['_utils']['loadRevisionData'](_0x528883,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x528883);}async['compare'](_0xac446,_0x1c9792,_0x3ecdd4=!0x1){if(!this['isEnabled'])return;const _0x1867ef=this['diff'],_0x47d390=this['repository'],_0x3fb393='string'==typeof _0xac446?_0x47d390['getRevision'](_0xac446):_0xac446,_0x321414='string'==typeof _0x1c9792?_0x47d390['getRevision'](_0x1c9792):_0x1c9792,_0x43df86=_0x3fb393['id'],_0x1c3f54=_0x321414?_0x321414['id']:null;if(!_0x3ecdd4&&this['diff']&&this['diff']['newRevisionId']===_0x43df86&&this['diff']['oldRevisionId']===_0x1c3f54)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x43df86,_0x1c3f54);const _0x151638=this['_getRevisionsRange'](_0x3fb393,_0x321414,!0x0)['map'](_0x19e759=>this['_utils']['loadRevisionData'](_0x19e759,this['adapter']));return _0x151638['push'](new Promise(_0x2d027d=>{setTimeout(_0x2d027d,0x14);})),Promise['all'](_0x151638)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x18a541=this['_getDiff'](_0x43df86,_0x1c3f54);for(const _0x51f8b6 of _0x18a541['changes'])this['_changeIdToChange']['set'](_0x51f8b6['id'],_0x51f8b6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26731b=>{for(const _0x4af74d of this['editor']['model']['document']['getRootNames']())_0x26731b['detachRoot'](_0x4af74d);for(const _0x9eda54 of Object['keys'](_0x18a541['model'])){const _0x1c1ec1=_0x26731b['addRoot'](_0x9eda54);for(const _0x4d09d8 of Object['keys'](_0x18a541['attributes'][_0x9eda54]))_0x26731b['setAttribute'](_0x4d09d8,_0x18a541['attributes'][_0x9eda54][_0x4d09d8],_0x1c1ec1);_0x26731b['insert'](_0x18a541['model'][_0x9eda54],_0x1c1ec1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x18a541['changes'])),this['isReady']=!0x0;})['catch'](_0x40c403=>{console['error'](_0x40c403),this['_cleanUp'](),_0x1867ef&&(this['diff']=_0x1867ef),this['isReady']=!0x0;});}['addRevisionData'](_0x4f32ff,_0x54e68b){const _0x1aea87=this['repository']['createRevision'](_0x4f32ff);return _0x1aea87['on']('_update',(_0x46589e,_0x59c680,_0x4133ae)=>_0x54e68b(_0x59c680,_0x4133ae,_0x1aea87)),this['repository']['addRevision'](_0x1aea87),_0x1aea87;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a20e3=>{for(const _0x5da124 of this['editor']['model']['document']['getRootNames']())_0x2a20e3['detachRoot'](_0x5da124);});}['_sortAndFilterDiffChanges'](_0x3d8117){const _0x323586=[],_0x183b53=new Map();for(const _0x4ca603 of this['editor']['model']['document']['getRootNames']()){const _0x56fc96=this['editor']['editing']['view']['getDomRoot'](_0x4ca603);if(!_0x56fc96)continue;const _0x11b363=_0x56fc96['getClientRects']()['item'](0x0);_0x11b363&&(_0x323586['push'](_0x4ca603),_0x183b53['set'](_0x4ca603,_0x11b363));}return _0x323586['sort']((_0x5e0c81,_0x7209c6)=>{const _0x119c53=_0x183b53['get'](_0x5e0c81),_0xc9ba7f=_0x183b53['get'](_0x7209c6);return _0x119c53['y']-_0xc9ba7f['y']||_0x119c53['x']-_0xc9ba7f['x'];}),(_0x3d8117=_0x3d8117['filter'](_0x6c21b0=>_0x323586['includes'](_0x6c21b0['rootName'])))['sort']((_0x350d74,_0x3770e9)=>_0x323586['indexOf'](_0x350d74['rootName'])-_0x323586['indexOf'](_0x3770e9['rootName'])),_0x3d8117;}['_makeTape'](_0x3bdbcc){const _0x48e1f7=Array['from'](_0x3bdbcc['markers'])['filter'](([_0x223b75,_0x19318c])=>_0x223b75['startsWith']('revision:')&&!_0x19318c['isCollapsed']),_0x5a0bb3=Array['from'](this['editor']['model']['createRangeIn'](_0x3bdbcc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x48e1f7['length'])for(const _0x3652e4 of _0x5a0bb3){const [_0x32ed97,_0xc21597]=_0x48e1f7[0x0],[,_0x1acdfc,_0x5252ba]=_0x32ed97['split'](':');if(_0xc21597['end']['isEqual'](_0x3652e4['nextPosition'])&&_0x48e1f7['shift'](),(_0x3652e4['previousPosition']['isEqual'](_0xc21597['start'])||_0x3652e4['previousPosition']['isAfter'](_0xc21597['start']))&&('insertion'==_0x1acdfc?_0x3652e4['isAdded']={'userId':_0x5252ba}:'deletion'==_0x1acdfc&&(_0x3652e4['isRemoved']={'userId':_0x5252ba})),0x0==_0x48e1f7['length'])break;}return _0x5a0bb3;}['_refreshStartEndIndex'](_0x6790ed){const _0x5aac54=new Map();for(let _0x5a493b=0x0;_0x5a493b<_0x6790ed['length'];_0x5a493b++)'text'===_0x6790ed[_0x5a493b]['type']?(_0x6790ed[_0x5a493b]['item']['startIndex']=_0x5a493b,_0x6790ed[_0x5a493b]['item']['endIndex']=_0x5a493b):('elementStart'===_0x6790ed[_0x5a493b]['type']?_0x6790ed[_0x5a493b]['item']['startIndex']=_0x5a493b:'elementEnd'===_0x6790ed[_0x5a493b]['type']&&(_0x6790ed[_0x5a493b]['item']['endIndex']=_0x5a493b),_0x5aac54['set'](_0x6790ed[_0x5a493b]['id'],_0x5a493b));for(const _0x86709d of _0x5aac54['values']())'elementStart'===_0x6790ed[_0x86709d]['type']?_0x6790ed[_0x86709d]['item']['endIndex']=_0x5aac54['get'](_0x6790ed[_0x86709d]['pairId']):'elementEnd'===_0x6790ed[_0x86709d]['type']&&(_0x6790ed[_0x86709d]['item']['startIndex']=_0x5aac54['get'](_0x6790ed[_0x86709d]['pairId']));}['_processTape'](_0x3b22f8){for(let _0x4703f2=0x0;_0x4703f2<_0x3b22f8['length'];_0x4703f2++){if('elementStart'===_0x3b22f8[_0x4703f2]['type'])_0x3b22f8[_0x4703f2]['item']['startIndex']=_0x4703f2;else{if('elementEnd'===_0x3b22f8[_0x4703f2]['type']){_0x3b22f8[_0x4703f2]['item']['endIndex']=_0x4703f2;const _0x368940=_0x3b22f8[_0x4703f2]['item']['startIndex'];_0x3b22f8[_0x368940]['pairId']=_0x3b22f8[_0x4703f2]['id'],_0x3b22f8[_0x4703f2]['pairId']=_0x3b22f8[_0x368940]['id'];}else _0x3b22f8[_0x4703f2]['item']['startIndex']=_0x4703f2,_0x3b22f8[_0x4703f2]['item']['endIndex']=_0x4703f2,_0x3b22f8[_0x4703f2]['pairId']=null;}_0x3b22f8[_0x4703f2]['markersStart']||(_0x3b22f8[_0x4703f2]['markersStart']=[],_0x3b22f8[_0x4703f2]['markersEnd']=[]);}}['_markInsertions'](_0x2d0f81,_0x7a9482){const _0x170eab=_0x2d0f81['filter'](_0x24ae3a=>!_0x24ae3a['isAdded']);for(let _0x198bef=0x0;_0x198bef<_0x7a9482['length'];_0x198bef++)_0x7a9482[_0x198bef]['isAdded']&&(_0x170eab[_0x198bef]['isAdded']=_0x7a9482[_0x198bef]['isAdded']);}['_getDiff'](_0x18d8b0,_0x542387=null){const _0x355992=this['repository']['getRevision'](_0x18d8b0),_0x282084=_0x542387?this['repository']['getRevision'](_0x542387):null,_0x2923ab=this['_getRevisionsRange'](_0x355992,_0x282084),_0x1f19a0=_0x2923ab[_0x2923ab['length']-0x1],_0x44f5e0=new Map(),_0x1413de={'model':{},'attributes':{},'changes':[]},_0x11a87c=new Set(),_0x2880f1=new Map();for(let _0x3a51a2=_0x2923ab['length']-0x1;_0x3a51a2>=0x0;_0x3a51a2--){const _0x41f7b0=_0x2923ab[_0x3a51a2];for(const _0x56773c of Object['keys'](_0x41f7b0['diffData']))if(_0x41f7b0['diffData'][_0x56773c]['attachChange']){const _0x5b6bdf=_0x41f7b0['diffData'][_0x56773c]['attachChange'];_0x5b6bdf['isAttached']?(_0x11a87c['add'](_0x56773c),_0x2880f1['has'](_0x56773c)&&_0x2880f1['get'](_0x56773c)['userId']==_0x5b6bdf['userId']?_0x2880f1['delete'](_0x56773c):_0x2880f1['set'](_0x56773c,_0x5b6bdf)):_0x2880f1['has'](_0x56773c)?(_0x11a87c['delete'](_0x56773c),_0x2880f1['delete'](_0x56773c)):(_0x11a87c['add'](_0x56773c),_0x2880f1['set'](_0x56773c,_0x5b6bdf));}else _0x11a87c['add'](_0x56773c);}for(const _0x683eaa of _0x11a87c){const _0x235661=_0x2880f1['has'](_0x683eaa)&&!_0x2880f1['get'](_0x683eaa)['isAttached'];let _0x491aa6=_0x235661?_0x2923ab['length']-0x1:0x0;const _0x4ee2a8=_0x235661?-0x1:0x1;for(;_0x2923ab[_0x491aa6];){const _0x38fe59=_0x2923ab[_0x491aa6];if(_0x38fe59['diffData'][_0x683eaa]){const _0x2169e1=_0x235661?_0x38fe59['diffData'][_0x683eaa]['attributesBefore']:_0x38fe59['diffData'][_0x683eaa]['attributesAfter'];_0x1413de['attributes'][_0x683eaa]=_0x2169e1?_0x444a1c(_0x2169e1):{};break;}_0x491aa6+=_0x4ee2a8;}}for(const _0x3a6285 of _0x2923ab){_0x3a6285['model']={};for(const _0x5e838b of _0x3a6285['authors'])_0x44f5e0['set'](_0x5e838b['id'],_0x5e838b);for(const _0x21c357 of _0x11a87c){const _0x3a04a8=_0x3a6285['diffData'][_0x21c357]?_0x3a6285['diffData'][_0x21c357]['insertions']:'[]',_0x4629d0=_0x3a6285['diffData'][_0x21c357]?_0x3a6285['diffData'][_0x21c357]['deletions']:'[]';_0x3a6285['model'][_0x21c357]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3a04a8),'deletions':this['_utils']['_makeModelFromViewString'](_0x4629d0)};}}for(const _0x4df012 of _0x11a87c){let _0x2ba405=null,_0x2c34e2=0x0;const _0x56a620=new Map(Array['from'](_0x355992['model'][_0x4df012]['insertions']['markers'])['filter'](([_0x57291b])=>!_0x57291b['startsWith']('revision:')));let _0x54e17c=0x0;for(const _0x514b30 of _0x2923ab){const _0x4f54e6=this['_makeTape'](_0x514b30['model'][_0x4df012]['insertions']);_0x514b30==_0x355992?(_0x2ba405=_0x4f54e6,_0x2c34e2=_0x2ba405['length'],_0x2ba405['forEach'](_0x2f8397=>{_0x2f8397['id']=_0x54e17c++;}),this['_processTape'](_0x2ba405)):this['_markInsertions'](_0x2ba405,_0x4f54e6);const _0x50c7fc=_0x2ba405['filter'](_0x202299=>!_0x202299['isAdded'])['map'](_0x551834=>_0x551834['id']);let _0x1e0653=0x0;const _0xbd91df=this['_makeTape'](_0x514b30['model'][_0x4df012]['deletions']);_0xbd91df['forEach'](_0x8c037a=>{_0x8c037a['isRemoved']?_0x8c037a['id']=_0x2c34e2++:_0x8c037a['id']=_0x50c7fc[_0x1e0653++];}),this['_processTape'](_0xbd91df),this['_setDistance'](_0x2ba405,'isAdded'),this['_setDistance'](_0xbd91df,'isRemoved'),_0x514b30==_0x355992&&this['_markMarkers'](_0x2ba405,_0x56a620),_0x2ba405=this['_joinTapes'](_0x2ba405,_0xbd91df),this['_refreshStartEndIndex'](_0x2ba405),this['_setDistance'](_0x2ba405,'isRemoved');}_0x2ba405=_0x2ba405['filter'](_0x50db7f=>!(_0x50db7f['isAdded']&&_0x50db7f['isRemoved']));const _0x643fe8=new Map(_0x1f19a0['model'][_0x4df012]['deletions']['markers']),_0x42d3fd=new Set(_0x56a620['keys']());for(const _0x4ca5ba of _0x643fe8['keys']())_0x42d3fd['delete'](_0x4ca5ba);this['_markSuggestions'](_0x2ba405,_0x42d3fd),this['_fixObsoleteTags'](_0x2ba405),_0x2ba405=this['_removeMissingPairs'](_0x2ba405),_0x2ba405=this['_markMismatchedRemovedTags'](_0x2ba405),_0x2ba405=this['_removeUnsupportedChanges'](_0x2ba405);const {root:_0x2e5997,changes:_0x19a918}=this['_makeModelFromTape'](_0x2ba405,_0x44f5e0,_0x4df012);_0x1413de['model'][_0x4df012]=_0x2e5997;const _0x3a11f2=_0x2880f1['get'](_0x4df012);if(_0x3a11f2){const _0x58ca73=_0x44f5e0['get'](_0x3a11f2['userId']),_0x31b29c=new r({'author':_0x58ca73,'type':_0x3a11f2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4df012});_0x19a918['unshift'](_0x31b29c),_0x1413de['attributes'][_0x4df012]['revisionHistoryAttachChange']=_0x31b29c['id'];}_0x1413de['changes']=_0x1413de['changes']['concat'](_0x19a918);}return _0x1413de;}['_markMarkers'](_0x521179,_0x3dede4){for(let _0x59981b=0x0;_0x59981b<_0x521179['length'];_0x59981b++)for(const [_0x42538c,_0x534719]of _0x3dede4)!_0x534719['isCollapsed']&&_0x534719['start']['isEqual'](_0x521179[_0x59981b]['previousPosition'])&&_0x521179[_0x59981b]['markersStart']['push'](_0x42538c),_0x534719['end']['isEqual'](_0x521179[_0x59981b]['nextPosition'])&&_0x521179[_0x59981b]['markersEnd']['push'](_0x42538c);}['_joinTapes'](_0x38a4f2,_0xd05f4b){let _0x1510c3=[],_0x26b442=0x0,_0x217c45=0x0;for(;_0x26b442<_0x38a4f2['length']||_0x217c45<_0xd05f4b['length'];){const _0x46f86d=_0x38a4f2[_0x26b442]||{},_0x1a5fe1=_0xd05f4b[_0x217c45]||{};if(_0x46f86d['id']==_0x1a5fe1['id'])_0x26b442++,_0x217c45++,_0x1510c3['push'](_0x46f86d);else{if(_0x1a5fe1['isRemoved']&&_0x46f86d['isAdded']){const {commonTape:_0x2e9094,iEnd:_0x4274b7,jEnd:_0xa6b550}=this['_threeWayMerge'](_0x38a4f2,_0x26b442,_0xd05f4b,_0x217c45);_0x1510c3=_0x1510c3['concat'](_0x2e9094),_0x26b442=_0x4274b7,_0x217c45=_0xa6b550;}else _0x1a5fe1['isRemoved']?(_0x217c45++,_0x1510c3['push'](_0x1a5fe1)):(_0x26b442++,_0x1510c3['push'](_0x46f86d));}}return _0x1510c3;}['_markSuggestions'](_0x3c9a7b,_0x5f3367){const _0x2118aa=[];for(let _0x5fa992=0x0;_0x5fa992<_0x3c9a7b['length'];_0x5fa992++){for(let _0x1e22d1=0x0;_0x1e22d1<_0x3c9a7b[_0x5fa992]['markersStart']['length'];_0x1e22d1++){const _0x6bf058=_0x3c9a7b[_0x5fa992]['markersStart'][_0x1e22d1];if(!_0x5f3367['has'](_0x6bf058))continue;const {group:_0x50582c,type:_0x23cfc5,authorId:_0x1c478f}=_0xd0676b(_0x6bf058);'revision-suggestion'!=_0x50582c||'insertion'!=_0x23cfc5&&'deletion'!=_0x23cfc5||(_0x2118aa['unshift']({'type':_0x23cfc5,'name':_0x6bf058,'userId':_0x1c478f}),_0x3c9a7b[_0x5fa992]['markersStart']['splice'](_0x1e22d1,0x1),_0x1e22d1--);}_0x5ed07d(_0x3c9a7b[_0x5fa992]);for(let _0xc62c54=0x0;_0xc62c54<_0x3c9a7b[_0x5fa992]['markersEnd']['length'];_0xc62c54++){const _0x1f6186=_0x3c9a7b[_0x5fa992]['markersEnd'][_0xc62c54];if(!_0x5f3367['has'](_0x1f6186))continue;const {group:_0x2c95e4,type:_0x442091}=_0xd0676b(_0x1f6186);if('revision-suggestion'!=_0x2c95e4||'insertion'!=_0x442091&&'deletion'!=_0x442091)continue;_0x3c9a7b[_0x5fa992]['markersEnd']['splice'](_0xc62c54,0x1),_0xc62c54--;const _0x51c633=_0x2118aa['findIndex'](_0x5d1919=>_0x5d1919['name']==_0x1f6186);_0x51c633>-0x1&&_0x2118aa['splice'](_0x51c633,0x1);}}function _0xd0676b(_0x16c625){const _0x5752c4=_0x16c625['split'](':');return{'group':_0x5752c4[0x0],'type':_0x5752c4[0x1],'subType':_0x5752c4['length']>=0x5?_0x5752c4[0x2]:null,'id':_0x5752c4['length']<0x5?_0x5752c4[0x2]:_0x5752c4[0x3],'authorId':_0x5752c4['length']<0x5?_0x5752c4[0x3]:_0x5752c4[0x4],'markerCount':0x6==_0x5752c4['length']?_0x5752c4[0x5]:null};}function _0x5ed07d(_0x5bcfe3){for(let _0x6495fb=0x0;_0x6495fb<_0x2118aa['length'];_0x6495fb++){if(_0x5bcfe3['isAdded']&&'insertion'==_0x2118aa[_0x6495fb]['type'])return _0x5bcfe3['isAddSuggestion']=_0x2118aa[_0x6495fb],void delete _0x5bcfe3['isAdded'];if(!_0x5bcfe3['isAdded']&&!_0x5bcfe3['isRemoved']&&'deletion'==_0x2118aa[_0x6495fb]['type'])return void(_0x5bcfe3['isRemoveSuggestion']=_0x2118aa[_0x6495fb]);}}}['_setDistance'](_0x559faf,_0xd47a0){let _0x55a62a=0x0,_0xb0d587=!0x1;const _0x659a0c=new Map();for(const _0x1e5103 of _0x559faf)_0x1e5103[_0xd47a0]?_0xb0d587&&(_0x55a62a++,_0xb0d587=!0x1):(_0x55a62a++,_0xb0d587=!0x0),_0x659a0c['set'](_0x1e5103['id'],_0x55a62a);for(let _0x37aca3=0x0;_0x37aca3<_0x559faf['length'];_0x37aca3++){if('isRemoved'==_0xd47a0&&_0x559faf[_0x37aca3]['isAdded']||'isAdded'==_0xd47a0&&_0x559faf[_0x37aca3]['isRemoved'])continue;if('text'==_0x559faf[_0x37aca3]['type']){_0x559faf[_0x37aca3]['distance']=0x0;continue;}const _0x422e43=_0x659a0c['get'](_0x559faf[_0x37aca3]['pairId']),_0x5774fd=_0x659a0c['get'](_0x559faf[_0x37aca3]['id']);_0x559faf[_0x37aca3]['distance']=_0x422e43-_0x5774fd;}}['_getRevisionsRange'](_0x3741ac,_0x3407ac,_0x57950a=!0x1){const _0x4309ef=[];let _0x1da6db=this['repository']['getIndex'](_0x3741ac),_0x268012=this['repository']['getIndex'](_0x3407ac);for(-0x1==_0x268012&&(_0x268012=this['repository']['_revisions']['length'],_0x57950a=!0x1);_0x1da6db<_0x268012;)_0x4309ef['push'](this['repository']['getRevision'](_0x1da6db)),_0x1da6db++;return _0x57950a&&_0x4309ef['push'](this['repository']['getRevision'](_0x1da6db)),_0x4309ef;}['_threeWayMerge'](_0x384f1c,_0x1019a8,_0x4f383f,_0x3439db){const _0x381b08=this['editor']['model']['schema'];let _0xce54a4=_0x1019a8;for(;_0x384f1c[_0xce54a4]&&_0x384f1c[_0xce54a4]['isAdded'];)_0xce54a4++;let _0x31de1e=_0x3439db;for(;_0x4f383f[_0x31de1e]&&_0x4f383f[_0x31de1e]['isRemoved'];)_0x31de1e++;_0x150375(_0x384f1c,_0x1019a8,_0xce54a4),_0x150375(_0x4f383f,_0x3439db,_0x31de1e);const _0xc683db=_0x4f383f['slice'](_0x3439db,_0x31de1e)['concat'](_0x384f1c['slice'](_0x1019a8,_0xce54a4));return _0xc683db['sort']((_0x70c5b1,_0x2153e9)=>_0x70c5b1['side']!=_0x2153e9['side']?_0x70c5b1['side']-_0x2153e9['side']:_0x70c5b1['level']!=_0x2153e9['level']?_0x70c5b1['level']-_0x2153e9['level']:_0x70c5b1['distance']!=_0x2153e9['distance']?_0x2153e9['distance']-_0x70c5b1['distance']:!!_0x70c5b1['isAdded']!=!!_0x2153e9['isAdded']?-0x1==_0x70c5b1['side']||0x0==_0x70c5b1['side']?_0x70c5b1['isAdded']?-0x1:0x1:_0x70c5b1['isAdded']?0x1:-0x1:_0x70c5b1['index']-_0x2153e9['index']),{'commonTape':_0xc683db,'iEnd':_0xce54a4,'jEnd':_0x31de1e};function _0x150375(_0x42b4c3,_0x32b992,_0x15d98a){let _0x543efe=-0x1,_0x43d6df=Number['POSITIVE_INFINITY'],_0x4f6322=!0x0;for(let _0x3c6c88=_0x32b992;_0x3c6c88<_0x15d98a;_0x3c6c88++)if(_0x381b08['isInline'](_0x42b4c3[_0x3c6c88]['item'])||(_0x4f6322=!0x1),_0x42b4c3[_0x3c6c88]['item']['startIndex']<_0x32b992&&(_0x543efe=_0x3c6c88),_0x42b4c3[_0x3c6c88]['item']['endIndex']>=_0x15d98a){_0x43d6df=_0x3c6c88;break;}_0x4f6322&&(_0x543efe=_0x15d98a-0x1);for(let _0x416a03=_0x32b992;_0x416a03<_0x15d98a;_0x416a03++)_0x42b4c3[_0x416a03]['side']=_0x416a03<=_0x543efe?-0x1:_0x416a03<_0x43d6df?0x0:0x1,_0x42b4c3[_0x416a03]['index']=_0x416a03;let _0x2a1777=0x0;for(let _0x4ad33b=_0x32b992;_0x4ad33b<=_0x543efe;_0x4ad33b++)0x0==_0x42b4c3[_0x4ad33b]['distance']?_0x42b4c3[_0x4ad33b]['level']=_0x2a1777:(_0x2a1777++,_0x42b4c3[_0x4ad33b]['level']=_0x2a1777,_0x2a1777++);for(let _0x50f12d=_0x32b992;_0x50f12d<_0x15d98a;_0x50f12d++)0x0==_0x42b4c3[_0x50f12d]['side']&&(_0x42b4c3[_0x50f12d]['level']=_0x2a1777);_0x2a1777=0x0;for(let _0x3ecd9b=_0x15d98a-0x1;_0x3ecd9b>=_0x43d6df;_0x3ecd9b--)0x0==_0x42b4c3[_0x3ecd9b]['distance']?_0x42b4c3[_0x3ecd9b]['level']=_0x2a1777:(_0x2a1777--,_0x42b4c3[_0x3ecd9b]['level']=_0x2a1777,_0x2a1777--);}}['_fixObsoleteTags'](_0x133e8c){const _0x525cef=new Map(),_0x38170c=this['editor']['model']['schema'];for(let _0x3d7b3d=0x1;_0x3d7b3d<_0x133e8c['length'];_0x3d7b3d++){let _0x3a2d39,_0x599893,_0x55bf07;const _0x5c19cb=_0x133e8c[_0x3d7b3d],_0x272d41=_0x133e8c[_0x3d7b3d-0x1];if('text'==_0x5c19cb['type'])continue;if(_0x5c19cb['type']!=_0x272d41['type'])continue;if(!_0x38170c['isBlock'](_0x272d41['item'])||_0x38170c['isLimit'](_0x272d41['item']))continue;if(!_0x38170c['isBlock'](_0x5c19cb['item'])||_0x38170c['isLimit'](_0x5c19cb['item']))continue;if((_0x133e8c[_0x3d7b3d]['isAdded']||_0x133e8c[_0x3d7b3d]['isAddSuggestion'])&&_0x133e8c[_0x3d7b3d-0x1]['isRemoved'])_0x3a2d39=_0x133e8c[_0x3d7b3d],_0x599893=_0x133e8c[_0x3d7b3d-0x1],_0x55bf07=_0x3d7b3d-0x1;else{if(!_0x133e8c[_0x3d7b3d]['isRemoved']||!_0x133e8c[_0x3d7b3d-0x1]['isAdded']&&!_0x133e8c[_0x3d7b3d-0x1]['isAddSuggestion'])continue;_0x3a2d39=_0x133e8c[_0x3d7b3d-0x1],_0x599893=_0x133e8c[_0x3d7b3d],_0x55bf07=_0x3d7b3d;}const _0x48e79d=_0x3a2d39['level']==_0x599893['level'],_0x3b3c63=Math['abs'](_0x3a2d39['level'])<Math['abs'](_0x599893['level'])&&0x0==_0x599893['distance'];(_0x48e79d||_0x3b3c63)&&(_0x525cef['set'](_0x599893['id'],_0x3a2d39['id']),_0x133e8c['splice'](_0x55bf07,0x1),_0x3d7b3d--,_0x3a2d39['isAdded']=!0x1);}for(let _0x1ea173=0x0;_0x1ea173<_0x133e8c['length'];_0x1ea173++)_0x525cef['has'](_0x133e8c[_0x1ea173]['pairId'])&&(_0x133e8c[_0x1ea173]['pairId']=_0x525cef['get'](_0x133e8c[_0x1ea173]['pairId']));}['_removeMissingPairs'](_0x3c4d6d){const _0x913347=new Set(_0x3c4d6d['map'](_0x472de2=>_0x472de2['id']));for(let _0x1bf638=0x0;_0x1bf638<_0x3c4d6d['length'];_0x1bf638++)_0x913347['has'](_0x3c4d6d[_0x1bf638]['pairId'])||0x0==_0x3c4d6d[_0x1bf638]['distance']||(_0x3c4d6d[_0x1bf638]['isIncorrect']=!0x0);return _0x3c4d6d['filter'](_0x478a9e=>!_0x478a9e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x237e7e){const _0x5371dd=new Set();for(let _0x7b56a0=0x0;_0x7b56a0<_0x237e7e['length'];_0x7b56a0++){if(_0x5371dd['has'](_0x237e7e[_0x7b56a0]['id'])&&_0x237e7e[_0x7b56a0]['isRemoved']&&(_0x237e7e[_0x7b56a0]['isIncorrect']=!0x0),_0x237e7e[_0x7b56a0]['isIncorrect'])continue;if(0x0==_0x237e7e[_0x7b56a0]['distance'])continue;if('elementStart'!=_0x237e7e[_0x7b56a0]['type'])continue;if(null==_0x237e7e[_0x7b56a0]['pairId'])continue;let _0x285b99=_0x7b56a0+0x1,_0x16a09f=0x0;for(;_0x237e7e[_0x285b99]['id']!=_0x237e7e[_0x7b56a0]['pairId'];)'elementStart'==_0x237e7e[_0x285b99]['type']?_0x16a09f++:'elementEnd'==_0x237e7e[_0x285b99]['type']&&_0x16a09f--,_0x285b99++;if(0x0!=_0x16a09f){if(_0x237e7e[_0x7b56a0]['isRemoved'])_0x237e7e[_0x7b56a0]['isIncorrect']=!0x0;else{for(;_0x285b99!=_0x7b56a0;)_0x237e7e[_0x285b99]['isRemoved']&&0x0!=_0x237e7e[_0x285b99]['distance']&&(_0x237e7e[_0x285b99]['isIncorrect']=!0x0,_0x5371dd['add'](_0x237e7e[_0x285b99]['pairId'])),_0x285b99--;}}}return _0x237e7e['filter'](_0x58d215=>!_0x58d215['isIncorrect']);}['_removeUnsupportedChanges'](_0xa64f54){const _0x532210=this['editor']['model']['schema'];for(let _0x4e986e=0x0;_0x4e986e<_0xa64f54['length'];_0x4e986e++){if(!(_0xa64f54[_0x4e986e]['isAdded']||_0xa64f54[_0x4e986e]['isAddSuggestion']||_0xa64f54[_0x4e986e]['isRemoved']||_0xa64f54[_0x4e986e]['isRemoveSuggestion']))continue;if(0x0==_0xa64f54[_0x4e986e]['distance'])continue;const _0x3d2a21=_0xa64f54[_0x4e986e]['item'];_0x532210['isBlock'](_0x3d2a21)||_0x532210['isLimit'](_0x3d2a21)||(_0xa64f54[_0x4e986e]['isAdded']&&delete _0xa64f54[_0x4e986e]['isAdded'],_0xa64f54[_0x4e986e]['isAddSuggestion']&&delete _0xa64f54[_0x4e986e]['isAddSuggestion'],_0xa64f54[_0x4e986e]['isRemoveSuggestion']&&delete _0xa64f54[_0x4e986e]['isRemoveSuggestion'],_0xa64f54[_0x4e986e]['isRemoved']&&(_0xa64f54[_0x4e986e]['isIncorrect']=!0x0));}return _0xa64f54['filter'](_0x1729da=>!_0x1729da['isIncorrect']);}['_makeModelFromTape'](_0x330c9b,_0x5f3d1b,_0x25397c){const _0x1ea565=new gt(),_0x29fcfc=[],_0x28d765=new Map(),_0x3611e6=this['editor']['model'],_0x4335ea=_0x3611e6['schema'],_0x3d9fe4=[_0x1ea565],_0x44c7f8={},_0x37d283={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x408fef=null;const _0x42687a=[0x0];for(let _0x4852cb=0x0;_0x4852cb<_0x330c9b['length'];_0x4852cb++)if('elementStart'===_0x330c9b[_0x4852cb]['type']){_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a);const _0x1f4912=new ut(_0x330c9b[_0x4852cb]['item']['name'],_0x330c9b[_0x4852cb]['item']['getAttributes']());_0x3d9fe4[0x0]['_appendChild'](_0x1f4912),_0x42687a['push'](0x0),_0x3d9fe4['unshift'](_0x1f4912),_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a);}else'elementEnd'===_0x330c9b[_0x4852cb]['type']?(_0x3d9fe4['shift'](),_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a),_0x42687a['pop'](),_0x42687a[_0x42687a['length']-0x1]++,_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a)):(_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a),_0x408fef?_0x408fef['_data']+=_0x330c9b[_0x4852cb]['item']['data']:_0x408fef=new mt(_0x330c9b[_0x4852cb]['item']['data'],_0x330c9b[_0x4852cb]['item']['getAttributes']()),_0x330c9b[_0x4852cb+0x1]&&'text'===_0x330c9b[_0x4852cb+0x1]['type']&&_0x5f0dc4(_0x408fef,_0x330c9b[_0x4852cb+0x1]['item'])||(_0x3d9fe4[0x0]['_appendChild'](_0x408fef),_0x408fef=null),_0x42687a[_0x42687a['length']-0x1]+=_0x330c9b[_0x4852cb]['item']['offsetSize'],_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a));for(let _0x2e967f=0x0;_0x2e967f<_0x330c9b['length'];_0x2e967f++){const _0x1330c3=_0x330c9b[_0x2e967f]['previousPosition'],_0x2e4517=_0x330c9b[_0x2e967f]['nextPosition'];for(const _0x26897f of _0x330c9b[_0x2e967f]['markersStart'])_0x28d765['set'](_0x26897f,{'start':_0x1330c3,'end':null});_0x45058a('isRemoveSuggestion',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isAddSuggestion',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isRemoved',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isAdded',_0x2e967f,_0x1330c3,_0x2e4517);for(const _0x237f61 of _0x330c9b[_0x2e967f]['markersEnd']){const _0x211d35=_0x28d765['get'](_0x237f61);_0x211d35?_0x211d35['end']=_0x2e4517:_0x28d765['set'](_0x237f61,{'start':_0x2e4517,'end':_0x2e4517});}}for(const [_0x25f63d,_0x4030ea]of _0x28d765){const _0x495a20=this['editor']['model']['createRange'](_0x4030ea['start'],_0x4030ea['end']);_0x1ea565['markers']['set'](_0x25f63d,_0x495a20);}return _0x29fcfc['sort']((_0x2ea6f5,_0x3561e0)=>{const _0x26f14d=_0x1ea565['markers']['get']('revision:'+_0x2ea6f5['id']),_0x10c9d7=_0x1ea565['markers']['get']('revision:'+_0x3561e0['id']);return _0x26f14d['start']['isBefore'](_0x10c9d7['start'])?-0x1:_0x26f14d['start']['isAfter'](_0x10c9d7['start'])?0x1:_0x26f14d['end']['isBefore'](_0x10c9d7['end'])?-0x1:_0x26f14d['end']['isAfter'](_0x10c9d7['end'])?0x1:'add'===_0x2ea6f5['type']?-0x1:0x1;}),{'root':_0x1ea565,'changes':_0x29fcfc};function _0x45058a(_0x30cccb,_0x2d4828,_0x4a08ff,_0x3acce2){const _0x249d27=!!_0x330c9b[_0x2d4828][_0x30cccb],_0x1fb80c=_0x249d27?_0x330c9b[_0x2d4828][_0x30cccb]['userId']:null,_0x50ee13=_0x2d4828===_0x330c9b['length']-0x1,_0x5a3821=_0x37d283[_0x30cccb][0x0],_0x365212=_0x4335ea['isObject'](_0x330c9b[_0x2d4828]['item']);!_0x44c7f8[_0x30cccb]&&_0x249d27?_0x44c7f8[_0x30cccb]={'start':_0x4a08ff,'tapeItem':_0x330c9b[_0x2d4828],'userId':_0x1fb80c,'type':_0x30cccb}:_0x44c7f8[_0x30cccb]&&!_0x249d27?(_0x44c7f8[_0x30cccb]['end']=_0x4a08ff,_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]=null):_0x44c7f8[_0x30cccb]&&_0x249d27&&_0x44c7f8[_0x30cccb]['userId']!==_0x1fb80c&&(_0x44c7f8[_0x30cccb]['end']=_0x4a08ff,_0x5a3821&&_0x5a3821['userId']===_0x44c7f8[_0x30cccb]['userId']||_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]={'start':_0x4a08ff,'tapeItem':_0x330c9b[_0x2d4828],'userId':_0x1fb80c,'type':_0x30cccb}),_0x44c7f8[_0x30cccb]&&_0x365212&&('elementStart'!==_0x330c9b[_0x2d4828]['type']||_0x5a3821&&_0x5a3821['userId']===_0x1fb80c||_0x37d283[_0x30cccb]['unshift']({'userId':_0x1fb80c,'object':_0x330c9b[_0x2d4828]['item'],'change':_0x44c7f8[_0x30cccb]}),'elementEnd'===_0x330c9b[_0x2d4828]['type']&&_0x5a3821&&_0x5a3821['object']===_0x330c9b[_0x2d4828]['item']&&(_0x37d283[_0x30cccb]['shift'](),_0x44c7f8[_0x30cccb]=_0x5a3821['change'])),_0x44c7f8[_0x30cccb]&&_0x50ee13&&(_0x44c7f8[_0x30cccb]['end']=_0x3acce2,_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]=null);}function _0x1bd327({start:_0x29bad1,end:_0xb19465,tapeItem:_0xbd6fc6,userId:_0x26d0f1,type:_0x4a1305}){const _0x5c5d3b=_0xbd6fc6['item'],_0x3c7216=_0x3611e6['schema']['isBlock'](_0x5c5d3b)&&!_0x3611e6['schema']['isLimit'](_0x5c5d3b),_0xaae6ac=_0x29bad1['nodeAfter']==_0xb19465['parent']&&_0xb19465['isAtStart'];if(_0x3c7216&&_0xaae6ac)return;const _0x9754ff=_0x3611e6['createRange'](_0x29bad1,_0xb19465),_0xc08b39=_0x5f3d1b['get'](_0x26d0f1),_0x4fb560=new r({'author':_0xc08b39,'type':'isAdded'==_0x4a1305||'isAddSuggestion'==_0x4a1305?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a1305||'isRemoveSuggestion'==_0x4a1305},'createdAt':new Date(),'rootName':_0x25397c});_0x29fcfc['push'](_0x4fb560),_0x1ea565['markers']['set']('revision:'+_0x4fb560['id'],_0x9754ff);}function _0x5f0dc4(_0x1b4a41,_0x3d4d1e){const _0x29dfd=_0x1b4a41['getAttributes'](),_0x8f1ccd=_0x3d4d1e['getAttributes']();for(const _0x2406ba of _0x29dfd){if(_0x2406ba[0x1]!==_0x3d4d1e['getAttribute'](_0x2406ba[0x0]))return!0x1;_0x8f1ccd['next']();}return _0x8f1ccd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x50fbc3=>{const _0x1558ce=_0x50fbc3['markerName']['split'](':')[0x1],_0x1c3094=this['_getChangeFromId'](_0x1558ce);if(!_0x1c3094)return null;const _0x36fb40='add'==_0x1c3094['type']?'insertion':'deletion',_0x301858=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36fb40];return _0x1c3094['data']['isSuggestion']&&_0x301858['push']('ck-suggestion-marker-'+_0x36fb40+'-new'),this['activeChange']==_0x1c3094&&_0x301858['push']('ck-suggestion-marker--active'),{'classes':_0x301858,'attributes':{'data-change-id':_0x1558ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22ddb0=>{_0x22ddb0['on']('element:pre',(_0x43d8a2,_0xd82441,_0x429dbc)=>{const _0x246227=_0xd82441['viewItem']['getChild'](0x0);if(!_0x246227||!_0x246227['is']('element','code'))return;if(!_0x429dbc['consumable']['consume'](_0x246227,{'attributes':['vid_start','vid_end']}))return;const _0x2aace0=_0xd82441['modelRange']['start']['nodeAfter'];_0x429dbc['writer']['setAttribute']('vid_start',_0x246227['getAttribute']('vid_start'),_0x2aace0),_0x429dbc['writer']['setAttribute']('vid_end',_0x246227['getAttribute']('vid_end'),_0x2aace0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xde4a28=>{_0xde4a28['on']('element',(_0x279ace,_0x34acf6,_0x1dc5b0)=>{if(!_0x1dc5b0['consumable']['consume'](_0x34acf6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x34acf6['modelRange']['isCollapsed'])return;const _0x52cb7b=_0x34acf6['modelRange']['start']['nodeAfter'];_0x52cb7b['hasAttribute']('vid_start')||_0x52cb7b['hasAttribute']('vid')||(_0x1dc5b0['writer']['setAttribute']('vid_start',_0x34acf6['viewItem']['getAttribute']('vid_start'),_0x52cb7b),_0x1dc5b0['writer']['setAttribute']('vid_end',_0x34acf6['viewItem']['getAttribute']('vid_end'),_0x52cb7b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x413bc5=>_0x413bc5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x425177,[,_0x348ff7])=>{['vid_start','vid_end','vid']['includes'](_0x348ff7)&&(_0x425177['return']=!0x0,_0x425177['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x15b45e=>{_0x15b45e['on']('attribute:vid',(_0x59a03b,_0x4cca08,_0x1daf96)=>{if('\x20'!=_0x4cca08['item']['data']||_0x4cca08['item']['parent']['maxOffset']>0x1)return;if(!_0x1daf96['consumable']['consume'](_0x4cca08['item'],_0x59a03b['name']))return;const _0x210a43=_0x1daf96['writer'],_0xc1297b=_0x1daf96['mapper']['toViewRange'](_0x4cca08['range']);_0x210a43['wrap'](_0xc1297b,_0x210a43['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4d81c5){const _0x26b9ab=_0x4d81c5['plugins']['get']('RevisionViewer');return(_0x20a30d,_0x5c7838,_0x401607)=>{const _0x20ca88=_0x5c7838['markerName']['split'](':')[0x1],_0x52a17c=_0x26b9ab['_getChangeFromId'](_0x20ca88);if(!_0x52a17c)return null;const _0x4e2fa8='add'==_0x52a17c['type']?'split':'merge';if(!_0x401607['consumable']['test'](_0x5c7838['markerRange'],_0x20a30d['name']))return;const _0x1a9fea=_0x5c7838['markerRange']['getWalker'](),_0x3b4b85=_0x5c7838['markerRange']['start'],_0x4143ff=_0x4d81c5['model']['schema'];let _0x4a94b6=null,_0x594c37=null,_0x26bd38=!0x1,_0x347a3b=!0x1;for(const _0x51ceae of _0x1a9fea){const _0x3b9831=_0x51ceae['item'];_0x26bd38=_0x26bd38||_0x4143ff['isContent'](_0x3b9831);const _0x4f41f5=_0x401607['mapper']['toViewElement'](_0x3b9831);if(_0x4f41f5&&_0x4f41f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51ceae['type']&&(_0x4143ff['isBlock'](_0x3b9831)&&!_0x4143ff['isLimit'](_0x3b9831)&&(_0x3b9831['nextSibling']||_0x3b4b85['isAtEnd']?_0x4a94b6&&_0x4a94b6['parent']==_0x3b9831||(_0x4a94b6=_0x3b9831,_0x36d2e1(_0x51ceae['previousPosition']),_0x347a3b=!0x0):_0x594c37=_0x594c37||_0x51ceae['previousPosition']));}function _0x36d2e1(_0x1ada18){const _0x578e0b=_0x401607['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e2fa8}),_0x419a39=_0x401607['mapper']['toViewPosition'](_0x1ada18);_0x52a17c['data']['isSuggestion']&&_0x401607['writer']['addClass']('ck-suggestion-marker-'+_0x4e2fa8+'-new',_0x578e0b),_0x26b9ab['activeChange']==_0x52a17c&&_0x401607['writer']['addClass']('ck-suggestion-marker--active',_0x578e0b),_0x401607['writer']['insert'](_0x419a39,_0x578e0b),_0x401607['mapper']['bindElementToMarker'](_0x578e0b,_0x5c7838['markerName']);}_0x26bd38||_0x347a3b||!_0x594c37||_0x36d2e1(_0x594c37);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x10efb4,_0x4537d2,_0xd671dd)=>{const _0x1b921a=_0xd671dd['mapper']['markerNameToElements'](_0x4537d2['markerName']);if(_0x1b921a){for(const _0x3e60d4 of _0x1b921a)(_0x3e60d4['hasClass']('ck-suggestion-marker-split')||_0x3e60d4['hasClass']('ck-suggestion-marker-merge'))&&(_0xd671dd['mapper']['unbindElementFromMarkerName'](_0x3e60d4,_0x4537d2['markerName']),_0xd671dd['writer']['remove'](_0x3e60d4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2eb2f0,_0x5ef584,_0x21371a)=>{const _0x2c62dd=_0x5ef584['markerName']['split'](':')[0x1],_0x1585e1=this['_getChangeFromId'](_0x2c62dd);if(!_0x1585e1)return null;const _0x5c29a7='add'==_0x1585e1['type']?'split':'merge';if(_0x21371a['consumable']['test'](_0x5ef584['markerRange'],_0x2eb2f0['name']))for(const _0x3caf3d of _0x5ef584['markerRange']['getItems']()){if(!_0x3caf3d['is']('element','softBreak'))continue;const _0x41c8d8=_0x21371a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c29a7}),_0x365fd3=_0x21371a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3caf3d));_0x1585e1['data']['isSuggestion']&&_0x21371a['writer']['addClass']('ck-suggestion-marker-'+_0x5c29a7+'-new',_0x41c8d8),this['activeChange']==_0x1585e1&&_0x21371a['writer']['addClass']('ck-suggestion-marker--active',_0x41c8d8),_0x21371a['writer']['insert'](_0x365fd3,_0x41c8d8),_0x21371a['mapper']['bindElementToMarker'](_0x41c8d8,_0x5ef584['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5c6061=>{for(const _0xc178d1 of this['editor']['model']['document']['getRootNames']()){const _0x41dc7e=this['editor']['model']['document']['getRoot'](_0xc178d1),_0x3fe62a=this['editor']['editing']['view']['document']['getRoot'](_0xc178d1);if(_0x3fe62a){const _0x87cba6=_0x41dc7e['getAttribute']('revisionHistoryAttachChange');if(_0x5c6061['removeAttribute']('data-change-id',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root-add',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root-remove',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root--active',_0x3fe62a),_0x87cba6){const _0x242dd3=this['_getChangeFromId'](_0x87cba6);if(!_0x242dd3)return null;_0x5c6061['setAttribute']('data-change-id',_0x87cba6,_0x3fe62a),_0x5c6061['addClass']('ck-revision-history-root-'+_0x242dd3['type'],_0x3fe62a),this['activeChange']==_0x242dd3&&_0x5c6061['addClass']('ck-revision-history-root--active',_0x3fe62a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c9485=>'revision-comment:'+_0x1c9485,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x10c43d=>'revision-suggestion:'+_0x10c43d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b43ba=>({'name':'suggestion:'+_0x2b43ba,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2832ac=>{const _0x252f04=_0x2832ac['markerName']['split'](':')[0x1];return'insertion'!=_0x252f04&&'deletion'!=_0x252f04?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x252f04]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xb87fd3,_0x845cbd,_0x5139b7)=>{const _0x1b39f3=_0x5139b7['mapper']['markerNameToElements'](_0x845cbd['markerName']);if(_0x1b39f3){for(const _0x4f60b8 of _0x1b39f3)_0x4f60b8['is']('uiElement')&&(_0x5139b7['mapper']['unbindElementFromMarkerName'](_0x4f60b8,_0x845cbd['markerName']),_0x5139b7['writer']['remove'](_0x4f60b8));}},{'priority':'high'});}['_getChangeFromId'](_0x459554){return this['_changeIdToChange']['get'](_0x459554);}['_getViewForChange'](_0xdb23da){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xdb23da),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb4776b,_0x5cf33a,_0x21ae4c,_0x38c757)=>{_0x38c757&&this['_balloon']['remove'](_0x38c757),_0x21ae4c&&(this['_balloon']['add']({'view':_0x21ae4c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x46030c=this['editor']['editing'],_0x396e84=this['_getChangeFromId'](_0x21ae4c['changeId']);let _0x672b41;if(_0x396e84['data']['isOnRoot']){const _0x2f6854=_0x46030c['view']['getDomRoot'](_0x396e84['rootName']);_0x672b41=Array['from'](_0x2f6854['getClientRects']());}else{const _0x48c435=this['editor']['model']['markers']['get']('revision:'+_0x21ae4c['changeId']);_0x672b41=Array['from'](_0x46030c['mapper']['markerNameToElements'](_0x48c435['name']))['map'](_0x58b678=>_0x46030c['view']['domConverter']['mapViewToDom'](_0x58b678))['map'](_0x27919e=>Array['from'](_0x27919e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x672b41[0x0];return _0x672b41['find'](_0x4ee14d=>_0x4ee14d['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ee14d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ee14d['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ee14d['right']+0x3>=this['_activeViewTarget']['x'])||_0x672b41[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xfdbb37,_0x1deb04,_0x326b54,_0x5705d0)=>{this['activeView']=_0x326b54?this['_getViewForChange'](_0x326b54):null,this['editor']['model']['change'](()=>{const _0x46b23c=this['editor']['editing'];_0x5705d0&&(_0x5705d0['data']['isOnRoot']?_0x46b23c['view']['change'](_0x2d5803=>{_0x2d5803['removeClass']('ck-revision-history-root--active',_0x46b23c['view']['document']['getRoot'](_0x5705d0['rootName']));}):_0x46b23c['reconvertMarker']('revision:'+_0x5705d0['id'])),_0x326b54&&(_0x326b54['data']['isOnRoot']?_0x46b23c['view']['change'](_0x4c762e=>{_0x4c762e['addClass']('ck-revision-history-root--active',_0x46b23c['view']['document']['getRoot'](_0x326b54['rootName']));}):_0x46b23c['reconvertMarker']('revision:'+_0x326b54['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1b2eb0,_0x4f7c46)=>{if(this['activeChange'])return;const _0x41846a=this['_findChangeIdFromDomTarget'](_0x4f7c46['target']),_0x56dd97=this['_changeIdToChange']['get'](_0x41846a);_0x56dd97?(this['_activeViewTarget']={'x':_0x4f7c46['domEvent']['x'],'y':_0x4f7c46['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56dd97)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x40a861,_0x403e2b)=>{const _0x554a99=this['_findChangeIdFromDomTarget'](_0x403e2b['target']),_0x1b7770=this['_changeIdToChange']['get'](_0x554a99);_0x1b7770?(this['_activeViewTarget']={'x':_0x403e2b['domEvent']['x'],'y':_0x403e2b['domEvent']['y']},_0x1b7770===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1b7770):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x55c426){do{const _0x41b0c5=_0x55c426['getAttribute']('data-change-id');if(_0x41b0c5)return _0x41b0c5;_0x55c426=_0x55c426['parent'];}while(_0x55c426);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a0e6f=>{for(const _0x148402 of this['editor']['model']['markers'])_0x1a0e6f['removeMarker'](_0x148402);});}}function X(_0x4b3036,_0x55cc41){return(_0x491db3,_0x3dff44,_0x5e5c0b)=>{if(!_0x5e5c0b['consumable']['test'](_0x3dff44['markerRange'],_0x491db3['name']))return;const _0x4e7e29=_0x3dff44['markerRange']['getWalker'](),_0x2edb79=_0x3dff44['markerRange']['start'],_0x51e579=_0x4b3036['model']['schema'];let _0x14abef=null,_0x3317e9=null,_0x44adb6=!0x1,_0x5a96be=!0x1;for(const _0x2c6379 of _0x4e7e29){const _0x460994=_0x2c6379['item'];_0x44adb6=_0x44adb6||_0x51e579['isContent'](_0x460994);const _0x1550aa=_0x5e5c0b['mapper']['toViewElement'](_0x460994);if(_0x1550aa&&_0x1550aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c6379['type']&&(_0x51e579['isBlock'](_0x460994)&&!_0x51e579['isLimit'](_0x460994)&&(_0x460994['nextSibling']||_0x2edb79['isAtEnd']?_0x14abef&&_0x14abef['parent']==_0x460994||(_0x14abef=_0x460994,_0x3bec0c(_0x2c6379['previousPosition']),_0x5a96be=!0x0):_0x3317e9=_0x3317e9||_0x2c6379['previousPosition']));}function _0x3bec0c(_0x30a00d){const _0x1a88a8=_0x5e5c0b['mapper']['toViewPosition'](_0x30a00d),_0x34183a=_0x5e5c0b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55cc41});_0x5e5c0b['writer']['insert'](_0x1a88a8,_0x34183a),_0x5e5c0b['mapper']['bindElementToMarker'](_0x34183a,_0x3dff44['markerName']);}_0x44adb6||_0x5a96be||!_0x3317e9||_0x3bec0c(_0x3317e9);};}class wt extends _0x4024a8{constructor(_0x5aa5bd){super(_0x5aa5bd);const _0x2e9d27=_0x5aa5bd['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2e9d27,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e9d27,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x52e802=this['editor'],_0x1f79c2=_0x52e802['plugins']['get'](m),_0x31bf7d=_0x1f79c2['isReady']?_0x1f79c2['diff']['newRevisionId']:null;_0x52e802['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31bf7d);}['refresh'](){const {isReady:_0x417106,isEnabled:_0x7ea6e,repository:_0x571a44,diff:_0x216650}=this['editor']['plugins']['get'](m),_0x40f484=_0x216650&&_0x571a44['getLaterVisibleRevision'](_0x216650['newRevisionId']);this['isEnabled']=_0x417106&&_0x7ea6e&&Boolean(_0x40f484);}}class pt extends _0x4024a8{['_step'];constructor(_0x1418e8,{direction:_0x4905f2}){super(_0x1418e8);const _0x5440e7=_0x1418e8['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4905f2?0x1:-0x1,this['listenTo'](_0x5440e7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5440e7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5440e7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e0aa0=this['editor'],_0x25810d=_0x4e0aa0['plugins']['get'](m),{isNavigationMode:_0x18ed88,currentChangeNumber:_0x4a0049}=_0x25810d;let _0x5c6025;if(_0x25810d['activeChange']=_0x18ed88?_0x25810d['diff']['changes']['get'](_0x4a0049+this['_step']):_0x25810d['diff']['changes']['first'],_0x25810d['activeChange']['data']['isOnRoot'])_0x5c6025=_0x4e0aa0['editing']['view']['getDomRoot'](_0x25810d['activeChange']['rootName']);else{const _0x505990=_0x4e0aa0['model']['markers']['get']('revision:'+_0x25810d['activeChange']['id']);_0x5c6025=_0xba3d92(_0x4e0aa0['editing'],_0x505990);}_0x4c6269({'target':_0x5c6025,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x264926,currentChangeNumber:_0x4fef2d,numberOfChanges:_0x32daaa,isReady:_0x60a649,isEnabled:_0x1f4739}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1f4739&&_0x60a649&&_0x32daaa)&&(!_0x264926||(0x1===this['_step']?_0x4fef2d<_0x32daaa-0x1:_0x4fef2d>0x0));}}class _i extends _0x45ce53{constructor(_0x3d3f82){super(_0x3d3f82);const _0x311b6d=this['bindTemplate'],_0x82d936=new _0xf1e793(_0x3d3f82),_0x52fb6f=new _0xf1e793(_0x3d3f82);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',(_0x5c1b25,_0x54b56c)=>_0x5c1b25&&_0x54b56c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x242600,_0x583981,_0x4ff6ac,_0x9dd539)=>{if(!_0x242600)return g(_0x3d3f82,'Loading...');if(!_0x4ff6ac)return g(_0x3d3f82,'No\x20changes');const _0x2ce6f0=g(_0x3d3f82,'NUMBER_OF_CHANGES',_0x4ff6ac);return _0x9dd539?g(_0x3d3f82,'X_OF_Y_CHANGES',[_0x583981+0x1,_0x4ff6ac]):_0x2ce6f0;}),_0x82d936['set']({'label':g(_0x3d3f82,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2859cd}),_0x52fb6f['set']({'label':g(_0x3d3f82,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4e16f1}),_0x82d936['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x52fb6f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x82d936['on']('execute',()=>this['fire']('execute','backward')),_0x52fb6f['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',_0x311b6d['if']('_isStatusLabelVisible','ck-hidden',_0x36ca14=>!_0x36ca14)]},'children':[{'text':_0x311b6d['to']('isNavigationMode',_0x34f1ec=>_0x34f1ec?g(_0x3d3f82,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3d3f82,'Total')+':\x20')}]},{'text':_0x311b6d['to']('_statusText')}]},new _0x4a94af(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x82d936,_0x52fb6f]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x58bc6f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2e934e=this['editor']['editing']['view'];_0x2e934e['change'](_0x1a5dda=>{for(const _0x4e799f of _0x2e934e['document']['roots'])_0x1a5dda['addClass'](ce,_0x4e799f);});}['hide'](){const _0x172c5=this['editor']['editing']['view'];_0x172c5['change'](_0x5ef6f9=>{for(const _0x28cb88 of _0x172c5['document']['roots'])_0x5ef6f9['removeClass'](ce,_0x28cb88);});}}class R extends _0x58bc6f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x46e4cc=this['editor'],_0x5c4960=_0x46e4cc['plugins']['get'](m),_0x230a4c=_0x46e4cc['plugins']['get'](le);_0x46e4cc['ui']['componentFactory']['add']('exitToEditing',_0x5ee7cd=>{const _0x1f684f=new _0xf1e793(_0x5ee7cd);return _0x1f684f['set']({'label':g(_0x5ee7cd,'Back\x20to\x20editing'),'icon':_0x529c1c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f684f,'execute',()=>{_0x46e4cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f684f;}),_0x46e4cc['ui']['componentFactory']['add']('restoreRevision',_0x24d0a8=>{const _0x21a06e=new _0xf1e793(_0x24d0a8);return _0x21a06e['set']({'label':g(_0x24d0a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x21a06e['bind']('isEnabled')['to'](_0x46e4cc['commands']['get']('restoreRevision')),this['listenTo'](_0x21a06e,'execute',()=>_0x46e4cc['execute']('restoreRevision')),_0x21a06e;}),_0x46e4cc['ui']['componentFactory']['add']('changesNavigation',_0x319903=>{const _0xb8316=new _i(_0x319903),_0x1477a0=_0x46e4cc['commands']['get']('showPreviousChange'),_0x1e3a41=_0x46e4cc['commands']['get']('showNextChange');return _0xb8316['bind']('isBackwardNavigationEnabled')['to'](_0x1477a0,'isEnabled'),_0xb8316['bind']('isForwardNavigationEnabled')['to'](_0x1e3a41,'isEnabled'),_0xb8316['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5c4960),this['listenTo'](_0xb8316,'execute',(_0x19a052,_0xe472ed)=>{_0x46e4cc['execute']('forward'===_0xe472ed?'showNextChange':'showPreviousChange');}),_0xb8316;}),_0x230a4c['show'](),_0x5c4960['on']('change:isReady',(_0x38003e,_0x3377de,_0x442f7b)=>{_0x442f7b?_0x230a4c['hide']():_0x230a4c['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0xf156d0,_0x47b3d3){super(_0xf156d0,_0x47b3d3);const _0x1c58e7=this['bindTemplate'];this['set']({'label':g(_0xf156d0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xf156d0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1c58e7['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 _0x372a4a=this['fieldView']['element'];this['_tooltipString']=_0x372a4a['scrollWidth']>_0x372a4a['clientWidth']&&_0x372a4a['value']||'';}}class oi extends _0x45ce53{constructor(_0x233777,_0x539a58,_0x5c713c){super(_0x233777);const _0x56e2dc=new _0x28f921();_0x56e2dc['set']({'content':_0x1f2c16,'viewBox':'0\x200\x2011\x2010'});const _0xf28b48=['ck','ck-revision-history-sidebar__revision-author'];_0x5c713c&&_0xf28b48['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf7232d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x233777,_0x5c713c?'Revision\x20creator':'Revision\x20author')},'children':[_0x56e2dc,_0x539a58['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xf28b48},'children':_0xf7232d});}}function ni(_0x16c184,_0x4198a0){const _0x549d8e=_0x16c184['bindTemplate'],_0x161ab2=_0x16c184['locale'],_0x1b45e7=_0xbd0f73(_0x161ab2);_0x1b45e7['panelPosition']='sw';const _0x84617b=function(_0x14a527,_0x49f751){const _0x43e64f=function(_0xe3a746,_0x56cea7){const _0x484a4f=_0xe3a746['locale'],_0x36b903={'Compare\x20against\x20selected':g(_0x484a4f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x484a4f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x484a4f,'Restore\x20this\x20revision')};return _0x56cea7['map'](_0x20b2ad=>{const _0x30f0cd=_0x36b903[_0x20b2ad['name']];return _0x30f0cd&&_0x30f0cd!==_0x20b2ad['name']&&(_0x20b2ad['name']=_0x30f0cd),_0x20b2ad;});}(_0x14a527,_0x49f751),_0xd1a87a=new _0x4aa85f();for(const _0x530a64 of _0x43e64f){const _0x3670b9={'type':'button','model':new to({'label':_0x530a64['name'],'class':_0x530a64['class'],'withText':!0x0,'role':'menuitem','_action':_0x530a64['action']})};_0x3670b9['model']['bind']('isEnabled')['to'](_0x14a527,'isActionsDropdownOpen',_0xdf995d=>'function'!=typeof _0x530a64['isEnabled']||(!_0xdf995d||_0x530a64['isEnabled'](_0x14a527))),_0xd1a87a['add'](_0x3670b9);}return _0xd1a87a;}(_0x16c184,_0x4198a0);return _0x16c184['bind']('isActionsDropdownOpen')['to'](_0x1b45e7,'isOpen'),_0x1b45e7['buttonView']['set']({'label':g(_0x161ab2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x60fa10}),_0x1b45e7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x549d8e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x549d8e['to'](_0x19b179=>_0x19b179['stopPropagation']())}}),_0x1b45e7['on']('execute',_0x5d7bdd=>{_0x16c184['isReady']&&'function'==typeof _0x5d7bdd['source']['_action']&&_0x5d7bdd['source']['_action'](_0x16c184);}),_0x2116eb(_0x1b45e7,_0x84617b,{'role':'menu'}),_0x1b45e7['listenTo'](_0x16c184,'change:isActionsDropdownOpen',(_0x323619,_0x1b113a,_0xb21d80)=>{if(_0xb21d80)for(const _0x500f6e of _0x1b45e7['listView']['items']){const _0x520e6c=_0x500f6e['children']['first'],_0x197269=_0x4198a0['find'](_0x5d02ea=>_0x5d02ea['action']===_0x520e6c['_action'])['isVisible'];_0x500f6e['isVisible']=void 0x0===_0x197269||_0x197269(_0x16c184);}}),_0x1b45e7;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x1a0236,uid as _0x335623,Collection as _0x3b3f60,logWarning as _0x223dbb,FocusTracker as _0x3d5f91,KeystrokeHandler as _0x583348,scrollViewportToShowTarget as _0x2b83d3,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x382e41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x25c995,set as _0x18567d,unset as _0x23a879,isEqual as _0xf42df9}from'es-toolkit/compat';import{Plugin as _0x215f3d,PendingActions as _0x23f0a8,Command as _0x209300,ElementApiMixin as _0x33a608,Editor as _0x180b1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1efa5c,getMarkerDomElement as _0x1a9bee,ConfirmMixin as _0x3e9bdc,sanitizeEditorConfig as _0x16f0f7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x15f24b,ViewAttributeElement as _0x5946e2,ViewEmptyElement as _0x2065b8,ViewRawElement as _0x501869,ViewUIElement as _0x4a6e43,ViewDocumentFragment as _0x12e64f,ViewText as _0x2e1387,ViewElement as _0x204b8d,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x14d782,IconChevronUp as _0x314266,IconChevronDown as _0x1ae486,IconUndo as _0x1a92ae,IconUser as _0xcd8008,IconThreeVerticalDots as _0x57e1b8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x25b1f2,submitHandler as _0x50411b,LabeledFieldView as _0x53f8a9,createLabeledInputText as _0x33ff0f,createDropdown as _0x41d57a,ListView as _0x21eec4,ListItemView as _0xbcd986,ButtonView as te,MenuBarMenuView as _0x3cb039,MenuBarMenuListView as _0x34a253,MenuBarMenuListItemView as _0x4b57e6,MenuBarMenuListItemButtonView as _0x51584f,ContextualBalloon as _0x5401b0,ToolbarSeparatorView as _0x49f084,IconView as _0x4d07d2,addListToDropdown as _0x31792c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5e9815}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a0236(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2c36aa){super(),this['id']=_0x2c36aa['id']||_0x335623(),this['creator']=_0x2c36aa['creator']||null,this['authors']=_0x2c36aa['authors']||[],this['diffData']=_0x2c36aa['diffData']||null,this['toVersion']=_0x2c36aa['toVersion']||0x0,this['fromVersion']=_0x2c36aa['fromVersion']||0x0,this['set']('name',_0x2c36aa['name']||''),this['set']('createdAt',_0x2c36aa['createdAt']||new Date()),this['set']('attributes',_0x2c36aa['attributes']||{});}['setName'](_0x1a6298){this['_update']({'name':_0x1a6298});}['setAttribute'](_0x3fb2e6,_0xc02ce9){const _0x1614f1=_0x25c995(this['attributes']);_0x18567d(_0x1614f1,_0x3fb2e6,_0xc02ce9),this['_update']({'attributes':_0x1614f1});}['removeAttribute'](_0xc6948c){const _0x29c86b=_0x25c995(this['attributes']);_0x23a879(_0x29c86b,_0xc6948c),this['_update']({'attributes':_0x29c86b});}['_update'](_0x3fa65b,_0x419545=!0x1){let _0x20136b=!0x1;const _0x3c6d17={'id':this['id']},_0x484e6c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7e0c7e of _0x484e6c){const _0x13736d=_0x3fa65b[_0x7e0c7e];void 0x0!==_0x13736d&&_0x13736d!==this[_0x7e0c7e]&&(this[_0x7e0c7e]=_0x13736d,_0x3c6d17[_0x7e0c7e]=_0x13736d,_0x20136b=!0x0);}_0x20136b&&(_0x3c6d17['authors']&&(_0x3c6d17['authorsIds']=_0x3c6d17['authors']['map'](_0x260c50=>_0x260c50['id']),delete _0x3c6d17['authors']),this['fire']('_update',_0x3c6d17,_0x419545));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5d0612=>_0x5d0612['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x215f3d{['_revisions'];static get['requires'](){return[_0x1efa5c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x18abe6){super(_0x18abe6),this['_revisions']=new _0x3b3f60();}['afterInit'](){!async function(_0x14594b){const _0x4afd28=_0x386b0c([0x5a,0x72,0x6e,0x54,0x74,0x32,0x62,0x6f,0x48,0x51,0x30,0x56,0x71,0x67,0x33,0x7a,0x73,0x44,0x69,0x46,0x53,0x64,0x45,0x77,0x6c,0x39,0x57,0x4a,0x4c,0x4d,0x43,0x68,0x34,0x6d,0x58,0x4f,0x6a,0x50,0x31,0x78,0x61,0x4e,0x59,0x70,0x47,0x41,0x55,0x75,0x79,0x49,0x35,0x65,0x36,0x4b,0x66,0x63,0x6b,0x42,0x38,0x76,0x37,0x52]),_0x180735=0xeb829,_0xaf5918=0x36bc9b11,_0x473f43=0x36bbfca9^_0xaf5918,_0x8ffc35=window[_0x386b0c([0x44,0x61,0x74,0x65])][_0x386b0c([0x6e,0x6f,0x77])](),_0x34fec8=_0x14594b[_0x386b0c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2735fb=new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a4f1=>{_0x34fec8[_0x386b0c([0x6f,0x6e,0x63,0x65])](_0x386b0c([0x72,0x65,0x61,0x64,0x79]),_0x42a4f1);}),_0x70747d={[_0x386b0c([0x6b,0x74,0x79])]:_0x386b0c([0x45,0x43]),[_0x386b0c([0x75,0x73,0x65])]:_0x386b0c([0x73,0x69,0x67]),[_0x386b0c([0x63,0x72,0x76])]:_0x386b0c([0x50,0x2d,0x32,0x35,0x36]),[_0x386b0c([0x78])]:_0x386b0c([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]),[_0x386b0c([0x79])]:_0x386b0c([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]),[_0x386b0c([0x61,0x6c,0x67])]:_0x386b0c([0x45,0x53,0x32,0x35,0x36])},_0x38d1c7=_0x34fec8[_0x386b0c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x386b0c([0x67,0x65,0x74])](_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x267c78(){let _0x58ef18,_0x980717=null,_0x565d62=null;try{if(_0x38d1c7==_0x386b0c([0x47,0x50,0x4c]))return _0x386b0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58ef18=_0x315cba(),!_0x58ef18)return _0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58ef18[_0x386b0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x565d62=_0x4e8268(_0x58ef18[_0x386b0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58ef18[_0x386b0c([0x6a,0x74,0x69])])),await _0x36be25()?_0x13ec46()?_0x3554a0()?_0x386b0c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5caf85()?(_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x386b0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x980717=_0x31fd7a(_0x386b0c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x386b0c([0x74,0x72,0x69,0x61,0x6c])&&(_0x980717=_0x31fd7a(_0x386b0c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25af09()):_0x386b0c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x386b0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2623a6){return _0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3554a0(){const _0x364077=[_0x386b0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x386b0c([0x74,0x72,0x69,0x61,0x6c])][_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8ffc35/0x3e8:0xe10*_0x473f43;return _0x58ef18[_0x386b0c([0x65,0x78,0x70])]<_0x364077;}function _0x13ec46(){const _0x10046c=_0x58ef18[_0x386b0c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10046c)return!0x1;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x2a])))return!0x0;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x52,0x48])))return!0x0;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x52,0x52,0x48]))){if(_0x1ea812())return!0x0;if(_0x7480d()||_0x394e0b())return!0x0;}return!0x1;}function _0x5caf85(){const _0x2717bb=_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2717bb||0x0==_0x2717bb[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360d1a}=new URL(window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2717bb[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360d1a))return!0x0;const _0x3c9ed5=_0x360d1a[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e]));return _0x2717bb[_0x386b0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2531e2=>_0x2531e2[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x2a])))[_0x386b0c([0x6d,0x61,0x70])](_0x3790f4=>_0x3790f4[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e])))[_0x386b0c([0x73,0x6f,0x6d,0x65])](_0x4cabbd=>_0x3c9ed5[_0x386b0c([0x65,0x76,0x65,0x72,0x79])]((_0x135999,_0x35acaa)=>_0x4cabbd[_0x35acaa]===_0x135999||_0x4cabbd[_0x35acaa]===_0x386b0c([0x2a])));}function _0x25af09(){return _0x980717&&_0x565d62?new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48e0bb,_0x4ec57d)=>{_0x980717[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x48e0bb,_0x4ec57d),_0x565d62[_0x386b0c([0x74,0x68,0x65,0x6e])](_0xe1b56c=>{_0xe1b56c!=_0x386b0c([0x56,0x61,0x6c,0x69,0x64])&&_0x48e0bb(_0xe1b56c);},_0x4ec57d);}):_0x980717||_0x565d62||_0x386b0c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e8268(_0x5212a1,_0x4740ee){return new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2461cb=>{if(_0x300537())return _0x2461cb(_0x386b0c([0x56,0x61,0x6c,0x69,0x64]));_0x844af7(),_0x34fec8[_0x386b0c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x289002=!0x1;const _0xc719a1=_0x335623();function _0x2a4e92(_0x10aa75){return!!_0x10aa75&&(typeof _0x10aa75===_0x386b0c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10aa75===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10aa75[_0x386b0c([0x74,0x68,0x65,0x6e])]===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10aa75[_0x386b0c([0x63,0x61,0x74,0x63,0x68])]===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52fae6(_0x4ed1eb){_0x527fc8(_0x4ed1eb)[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x56cb36=>{if(!_0x56cb36||_0x56cb36[_0x386b0c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x386b0c([0x6f,0x6b]))return _0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd12c68(_0x1ea4a9(_0xc719a1+_0x4740ee))!=_0x56cb36[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x386b0c([0x56,0x61,0x6c,0x69,0x64]);})[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x4720ca=>(_0x16ee47(),_0x4720ca),()=>{const _0x3d4424=_0x2c9021();return null==_0x3d4424?(_0x16ee47(),_0x386b0c([0x56,0x61,0x6c,0x69,0x64])):_0x386b0c(_0x8ffc35-_0x3d4424>(0x12b01f11^_0xaf5918)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x2461cb)[_0x386b0c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bbe7f=0x368a7591^_0xaf5918;function _0x16ee47(){const _0x23d18e=_0x386b0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xd12c68(_0x1ea4a9(_0x5212a1)),_0x2a20d9=_0x3735fb(_0xd12c68(window[_0x386b0c([0x4d,0x61,0x74,0x68])][_0x386b0c([0x63,0x65,0x69,0x6c])](_0x8ffc35/_0x1bbe7f)));window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b0c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23d18e,_0x2a20d9);}function _0x2c9021(){const _0x3df395=_0x386b0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xd12c68(_0x1ea4a9(_0x5212a1)),_0x470684=window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b0c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3df395);return _0x470684?window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3735fb(_0x470684),0x10)*_0x1bbe7f:null;}function _0x527fc8(_0x24a231){return new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21a8fc,_0x117e27)=>{_0x24a231[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x21a8fc,_0x117e27),window[_0x386b0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117e27,0x36bd4fd1^_0xaf5918);});}}_0x34fec8[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x91ddc1,_0x1aae29)=>{if(_0x1aae29[0x0]!=_0x5212a1)return _0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1aae29[0x1]={..._0x1aae29[0x1],[_0x386b0c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc719a1};},{[_0x386b0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b0c([0x68,0x69,0x67,0x68])}),_0x34fec8[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a55a=>{_0x2a4e92(_0x10a55a[_0x386b0c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x289002=!0x0,_0x52fae6(_0x10a55a[_0x386b0c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x386b0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b0c([0x6c,0x6f,0x77])}),_0x2735fb[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>{_0x289002||_0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x300537(){return _0x34fec8[_0x386b0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b0c([0x76,0x69,0x65,0x77])][_0x386b0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x386b0c([0x61,0x75,0x74,0x6f]);}function _0x844af7(){_0x34fec8[_0x386b0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b0c([0x76,0x69,0x65,0x77])][_0x386b0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x386b0c([0x61,0x75,0x74,0x6f]);}}function _0x31fd7a(_0x3e053a){const _0x516652=[new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a4b3c=>setTimeout(_0x3a4b3c,0x36b5a5dd^_0xaf5918)),_0x2735fb[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b8da3=>{const _0xd2b6ca=0x36bc9b16^_0xaf5918,_0x3ccb9e=_0x14594b[_0x386b0c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2d57dc(){_0x3ccb9e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xd2b6ca&&_0x1b8da3();}_0x2d57dc(),_0x3ccb9e[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x61,0x64,0x64]),_0x2d57dc);})),new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d044=>{function _0x468511(){for(const _0x1de420 in window)if(window[_0x386b0c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x386b0c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1de420))&&window[_0x1de420]==_0x180735)return _0x55d044();_0x34fec8[_0x386b0c([0x73,0x74,0x61,0x74,0x65])]!=_0x386b0c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x386b0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x468511,0x36bc8899^_0xaf5918);}_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x468511();})];return window[_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x386b0c([0x72,0x61,0x63,0x65])](_0x516652)[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>_0x3e053a);}async function _0xbbbdc2(){if(await _0x2735fb,_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x21c26b=_0x14594b[_0x386b0c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x490ffd=_0x14594b[_0x386b0c([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])](_0x21c26b[_0x386b0c([0x69,0x64])]),_0xe42292=_0xf349fe(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xe42292[_0x386b0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x21c26b['id'],_0x490ffd?_0x490ffd['id']:null,!0x0),_0xe42292[_0x386b0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xe42292[_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xe42292[_0x386b0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x13664a,void(_0xe42292[_0x386b0c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x13664a);}if(_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x465a3c=_0xf349fe(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x465a3c[_0x386b0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x465a3c[_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x465a3c[_0x386b0c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x13664a,_0x465a3c[_0x386b0c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x13664a;}_0x34fec8[_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b0c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13664a,_0x34fec8[_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b0c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13664a,_0x34fec8[_0x386b0c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ea812(){return _0x27fccc(_0x386b0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf349fe(_0x386b0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x386b0c([0x73,0x74,0x61,0x74,0x65])]==_0x386b0c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x7480d(){return _0x27fccc(_0x386b0c([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 _0x394e0b(){return _0x27fccc(_0x386b0c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x81db4(_0x16246f){const _0xa34784=_0x25e0e0();_0x34fec8[_0xa34784]=_0x386b0c([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])+_0x16246f,_0x16246f[_0x386b0c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x386b0c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x25e0e0()]=_0x180735),_0x16246f!=_0x386b0c([0x56,0x61,0x6c,0x69,0x64])&&_0xbbbdc2();}function _0x25e0e0(){const _0x3ed3c1=window[_0x386b0c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x386b0c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x386b0c([0x6e,0x6f,0x77])]())[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x386b0c([0x2e]),'');let _0x683b8f=_0x386b0c([0x5a]);for(let _0x595a47=0x0;_0x595a47<_0x3ed3c1[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x595a47+=0x2){let _0x1a2fda=window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed3c1[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x595a47,_0x595a47+0x2));_0x1a2fda>=_0x4afd28[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a2fda-=_0x4afd28[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x683b8f+=_0x4afd28[_0x1a2fda];}return _0x683b8f;}function _0x315cba(){const _0x21c5d7=_0x38d1c7[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e]));if(0x3!=_0x21c5d7[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b85e6(_0x21c5d7[0x1]);function _0x2b85e6(_0xef9f6d){const _0x5f0c3d=_0x5b28ab(_0xef9f6d);return _0x5f0c3d&&_0x4c3b4b()?_0x5f0c3d:null;function _0x4c3b4b(){const _0x5b133e=_0x5f0c3d[_0x386b0c([0x6a,0x74,0x69])],_0x34d961=window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b133e[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b133e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x121d48={..._0x5f0c3d,[_0x386b0c([0x6a,0x74,0x69])]:_0x5b133e[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b133e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x121d48[_0x386b0c([0x76,0x63])],_0x1ea4a9(_0x121d48)==_0x34d961;}}}async function _0x36be25(){let _0x11be14=!0x0;try{const _0x10c688=_0x38d1c7[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e])),[_0x7be484,_0xc5eca1,_0x44859d]=_0x10c688;return _0x2b1c99(_0x7be484),await _0x13a158(_0x7be484,_0xc5eca1,_0x44859d),_0x11be14;}catch(_0x2c7327){return!0x1;}function _0x2b1c99(_0x36be5e){const _0x372f46=_0x5b28ab(_0x36be5e);_0x372f46&&_0x372f46[_0x386b0c([0x61,0x6c,0x67])]==_0x386b0c([0x45,0x53,0x32,0x35,0x36])||(_0x11be14=!0x1);}async function _0x13a158(_0x5f2801,_0x284adc,_0x54404e){const _0xae9a33=window[_0x386b0c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x386b0c([0x66,0x72,0x6f,0x6d])](_0x4429b6(_0x54404e),_0x38bb35=>_0x38bb35[_0x386b0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55f15b=new window[(_0x386b0c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x386b0c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f2801+_0x386b0c([0x2e])+_0x284adc),_0x24bd32=window[_0x386b0c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x386b0c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24bd32)return;const _0xd52f4c=await _0x24bd32[_0x386b0c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x386b0c([0x6a,0x77,0x6b]),_0x70747d,{[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x45,0x43,0x44,0x53,0x41]),[_0x386b0c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x386b0c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24bd32[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x45,0x43,0x44,0x53,0x41]),[_0x386b0c([0x68,0x61,0x73,0x68])]:{[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd52f4c,_0xae9a33,_0x55f15b)||(_0x11be14=!0x1);}}function _0x5b28ab(_0x149da5){return _0x149da5[_0x386b0c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x386b0c([0x65,0x79]))?JSON[_0x386b0c([0x70,0x61,0x72,0x73,0x65])](_0x4429b6(_0x149da5)):null;}function _0x4429b6(_0x540ffb){return window[_0x386b0c([0x61,0x74,0x6f,0x62])](_0x540ffb[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x386b0c([0x2b]))[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x386b0c([0x2f])));}function _0x1ea4a9(_0x519ab2){let _0x35d539=0x1505;function _0xce56f3(_0x463ebe){for(let _0x7dd36f=0x0;_0x7dd36f<_0x463ebe[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7dd36f++){const _0x19d306=_0x463ebe[_0x386b0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7dd36f);_0x35d539=(_0x35d539<<0x5)+_0x35d539+_0x19d306,_0x35d539&=_0x35d539;}}function _0x28826e(_0x371cd0){Array[_0x386b0c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x371cd0)?_0x371cd0[_0x386b0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28826e):_0x371cd0&&typeof _0x371cd0==_0x386b0c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x386b0c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x371cd0)[_0x386b0c([0x73,0x6f,0x72,0x74])]()[_0x386b0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24d509,_0x4bfb37])=>{_0xce56f3(_0x24d509),_0x28826e(_0x4bfb37);}):_0xce56f3(window[_0x386b0c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x371cd0));}return _0x28826e(_0x519ab2),_0x35d539>>>0x0;}function _0xd12c68(_0x4dc006){return _0x4dc006[_0x386b0c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x386b0c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x386b0c([0x30]));}function _0x3735fb(_0x5c08b4){return _0x5c08b4[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x386b0c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x386b0c([0x6a,0x6f,0x69,0x6e])]('');}function _0x27fccc(_0x415c8a){return _0x34fec8[_0x386b0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x386b0c([0x68,0x61,0x73])](_0x415c8a);}function _0xf349fe(_0x43ad45){return _0x34fec8[_0x386b0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x386b0c([0x67,0x65,0x74])](_0x43ad45);}function _0x13664a(){}function _0x386b0c(_0x5ac132){return _0x5ac132['map'](_0xd79ad6=>String['fromCharCode'](_0xd79ad6))['join']('');}_0x81db4(await _0x267c78());}(this);}['createRevision'](_0x11fd7e){const _0x51b820=this['editor']['plugins']['get']('Users');return new h({'id':_0x11fd7e['id'],'name':_0x11fd7e['name'],'creator':_0x11fd7e['creatorId']?_0x51b820['getUser'](_0x11fd7e['creatorId']):null,'diffData':_0x11fd7e['diffData']||_0x11fd7e['data'],'authors':_0x11fd7e['authorsIds']['map'](_0x1b2875=>_0x51b820['getUser'](_0x1b2875)),'createdAt':new Date(_0x11fd7e['createdAt']),'attributes':_0x11fd7e['attributes'],'fromVersion':_0x11fd7e['fromVersion'],'toVersion':_0x11fd7e['toVersion']});}['addRevision'](_0x22b97b,_0xc4e0e5=0x0){this['_revisions']['add'](_0x22b97b,_0xc4e0e5);}['getRevision'](_0x5b2994){return this['_revisions']['get'](_0x5b2994);}['getRevisions'](_0x5a275f={'toJSON':!0x1}){const _0x2e7e72=Array['from'](this['_revisions']);return _0x2e7e72['reverse'](),_0x5a275f['toJSON']?_0x2e7e72['map'](_0x533dfa=>_0x533dfa['toJSON']()):_0x2e7e72;}['getIndex'](_0x50c824){return this['_revisions']['getIndex'](_0x50c824);}['getEarlierVisibleRevision'](_0x57ac9a){const [,_0x106c52]=this['getRevisionsIterator'](_0x57ac9a,{'direction':'earlier'});return _0x106c52;}['getLaterVisibleRevision'](_0x1ce793){const [,_0x3c01fe]=this['getRevisionsIterator'](_0x1ce793,{'direction':'later'});return _0x3c01fe;}['getRevisionsInDiff'](_0x1cea82){const _0x1f420c=[];for(const _0x2eec60 of this['getRevisionsIterator'](_0x1cea82['newRevisionId']))if(_0x1f420c['push'](_0x2eec60),_0x2eec60['id']===_0x1cea82['oldRevisionId'])break;return _0x1f420c;}*['getRevisionsIterator'](_0x38b6a5,{direction:_0x1aa24a='earlier',filter:_0x38193c=()=>!0x0}={}){const _0xc0b25b='earlier'===_0x1aa24a?0x1:-0x1;let _0xb1ddad=this['_revisions']['get'](_0x38b6a5),_0x4e3f8e=this['getIndex'](_0xb1ddad);for(yield _0xb1ddad;_0xb1ddad;){if(_0x4e3f8e+=_0xc0b25b,_0xb1ddad=this['getRevision'](_0x4e3f8e),!_0xb1ddad)return;_0x38193c(_0xb1ddad)&&(yield _0xb1ddad);}}}class V extends _0x215f3d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x15f24b,'c'],[_0x5946e2,'a'],[_0x2065b8,'e'],[_0x501869,'r'],[_0x4a6e43,'u']]);['_typeCharToViewClass']=new Map([['c',_0x15f24b],['a',_0x5946e2],['e',_0x2065b8],['r',_0x501869],['u',_0x4a6e43]]);async['loadRevisionData'](_0x32e951,_0x1c1dd8){if(_0x32e951['diffData']||!_0x1c1dd8)return;const _0x35f2a7=this['editor']['config']['get']('collaboration.channelId'),_0x2c8619=await _0x1c1dd8['getRevision']({'channelId':_0x35f2a7,'revisionId':_0x32e951['id']});_0x32e951['diffData']=_0x2c8619['diffData'];}['getRevisionDocumentData'](_0x311cc6){const _0x2a98ef={};for(const _0x2deda3 in _0x311cc6['diffData']){if(_0x311cc6['diffData'][_0x2deda3]['attachChange']&&!_0x311cc6['diffData'][_0x2deda3]['attachChange']['isAttached'])continue;const _0x51da3b=this['_removeRevisionMarkers'](JSON['parse'](_0x311cc6['diffData'][_0x2deda3]['insertions'])),_0x1623fb=this['editor']['editing']['view']['document'],_0x47012a=new _0x12e64f(_0x1623fb,_0x51da3b['map'](_0x3f061c=>this['_getViewFromDiffObj'](_0x3f061c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2a98ef[_0x2deda3]=this['editor']['data']['processor']['toData'](_0x47012a),this['editor']['data']['processor']['useFillerType']('default');}return _0x2a98ef;}['getRevisionRootsAttributes'](_0x4fc66a){const _0x5c5b9d={};for(const _0x491059 in _0x4fc66a['diffData'])_0x4fc66a['diffData'][_0x491059]['attachChange']&&!_0x4fc66a['diffData'][_0x491059]['attachChange']['isAttached']||(_0x5c5b9d[_0x491059]=_0x4fc66a['diffData'][_0x491059]['attributesAfter']||{});return _0x5c5b9d;}['_getTypeCharForViewElement'](_0x5aca2f){return this['_viewClassToTypeChar']['get'](_0x5aca2f['constructor']);}['_getViewFromDiffObj'](_0x4af402,_0x209e36){const _0x580b1a=this['editor']['editing']['view']['document'];if('string'==typeof _0x4af402)return new _0x2e1387(_0x580b1a,_0x4af402);{let _0x301726,_0x398728;_0x398728='u'==_0x4af402['type']||'r'==_0x4af402['type']?[]:_0x4af402['children']['map'](_0x47f511=>this['_getViewFromDiffObj'](_0x47f511,_0x209e36));const _0xb412b=this['_typeCharToViewClass']['get'](_0x4af402['type'])||_0x204b8d,_0x282a70=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x301726=new _0xb412b(_0x580b1a,_0x4af402['name'],_0x4af402['attributes'],_0x398728),'u'==_0x4af402['type']&&_0x4af402['children'][0x0]){const _0x2da4ab=_0x4af402['children'][0x0];if(_0x301726['render']=function(_0x5e6ba5){const _0x5200a9=_0x5e6ba5['createElement']('div');return _0x5200a9['innerHTML']=_0x2da4ab,_0x5200a9['childNodes'][0x0];},_0x209e36){const _0x1a3057=new _0x12e64f(_0x580b1a);_0x1a3057['_appendChild'](_0x301726);const _0x14f837=Array['from'](_0x282a70['viewChildrenToDom'](_0x1a3057,{'bind':!0x1})),_0x5c3ccb=_0x282a70['domDocument']['createElement']('div');_0x5c3ccb['append'](..._0x14f837),_0x301726=Array['from'](_0x282a70['domChildrenToView'](_0x5c3ccb))[0x0];}}else{if('r'==_0x4af402['type']&&_0x4af402['children'][0x0]){const _0x20acc6=_0x4af402['children'][0x0];if(_0x301726['render']=function(_0x153aae){_0x153aae['innerHTML']=_0x20acc6;},_0x209e36){const _0xa62ac6=new _0x12e64f(_0x580b1a);_0xa62ac6['_appendChild'](_0x301726);const _0x49a9dd=Array['from'](_0x282a70['viewChildrenToDom'](_0xa62ac6,{'bind':!0x1})),_0x4ff72c=_0x282a70['domDocument']['createElement']('div');_0x4ff72c['append'](..._0x49a9dd);const _0x30c2b=Array['from'](_0x282a70['domChildrenToView'](_0x4ff72c));_0x30c2b['length']>0x1?_0x301726['_appendChild'](_0x30c2b):_0x301726=_0x30c2b[0x0];}}}if(_0x4af402['customProperties']){for(const [_0x147073,_0xa81481]of _0x4af402['customProperties'])_0x301726['_setCustomProperty'](_0x147073,_0xa81481);}const _0x132715=void 0x0===_0x4af402['fillerOffset']?null:_0x4af402['fillerOffset'];return null!==_0x132715&&(_0x301726['getFillerOffset']=()=>_0x132715),_0x301726;}}['_makeModelFromViewString'](_0xae7999){const _0x2b9f29=JSON['parse'](_0xae7999),_0x18043b=this['editor']['editing']['view']['document'],_0x58fcc0=new _0x12e64f(_0x18043b,_0x2b9f29['map'](_0x5ceb40=>this['_getViewFromDiffObj'](_0x5ceb40,!0x0)));return this['editor']['data']['toModel'](_0x58fcc0);}['_removeRevisionMarkers'](_0x4aaa89){return(_0x4aaa89=_0x4aaa89['filter'](_0xe65fad=>!_0xe65fad['name']||'revision-start'!==_0xe65fad['name']&&'revision-end'!==_0xe65fad['name']))['forEach'](_0x4edcb7=>{'string'!=typeof _0x4edcb7&&(_0x4edcb7['children']=this['_removeRevisionMarkers'](_0x4edcb7['children']),_0x4edcb7['attributes']=_0x4edcb7['attributes']['filter'](_0x295ac1=>!_0x295ac1[0x0]['startsWith']('data-revision-')));}),_0x4aaa89;}}function g(_0x2aea13,_0x59cff8,_0x5a1029){const t=_0x2aea13['t'];switch(_0x59cff8){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'},_0x5a1029);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a1029);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x215f3d{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1efa5c,I,V,_0x23f0a8];}constructor(_0x477aea){super(_0x477aea),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2bb52a=_0x335623();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2bb52a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xe362ff=this['repository']['getRevision'](0x0),_0x3149ef=_0xe362ff&&null===_0xe362ff['creator']?_0xe362ff:null;if(this['_continueCurrentRevision']=!!_0x3149ef&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x573a0c=this['_source']['getCurrentRevisionId'](),_0x58f01c=this['repository']['getRevision'](_0x573a0c);if(_0x58f01c)this['_startingVersion']=_0x58f01c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x518c15=this['_source']['history']['_operations']['find'](_0x545472=>!_0x545472['_isInit']),_0x2ec8c4=_0x518c15?_0x518c15['baseVersion']:this['_source']['history']['version'];_0xe362ff?(_0xe362ff['toVersion']<_0x2ec8c4&&_0xe362ff['_update']({'toVersion':_0x2ec8c4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id'],this['_startingVersion']=_0x3149ef['fromVersion']):(this['_startingVersion']=_0xe362ff['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ec8c4,this['_continueCurrentRevision']=!0x1);}}else _0x3149ef&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3149ef['toVersion'],this['editor']['model']['document']['history']['version']),_0x3149ef['fromVersion']===_0x3149ef['toVersion']?(0x0!==_0x3149ef['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id'],this['_startingVersion']=_0x3149ef['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',_0x1637b0=>!_0x1637b0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ef8b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4957b9;for(const _0x31545e in _0x1ef8b7){const _0x28e1a4=_0x31545e,_0x5ed9e4=_0x1ef8b7[_0x28e1a4];if('revisionHistoryLicenseKeyValid'==_0x5ed9e4||'revisionHistoryLicenseKeyInvalid'==_0x5ed9e4||'revisionHistoryLicenseKeyExpired'==_0x5ed9e4||'revisionHistoryLicenseKeyDomainLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyNotAllowed'==_0x5ed9e4||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyTrialLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyUsageLimit'==_0x5ed9e4){delete _0x1ef8b7[_0x28e1a4],_0x4957b9=_0x5ed9e4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1291a7=this['repository']['getRevision'](0x0),_0x27d2c2=await this['getRevisionDocumentData'](_0x1291a7),_0x11cd41=await this['getRevisionRootsAttributes'](_0x1291a7);this['_replaceEditorDataWithRevisionData'](_0x27d2c2,_0x11cd41);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x517a5d){this['_source']=_0x517a5d;}async['update'](){const _0x15a05b=await this['_source']['getLatestVersion']();if(_0x15a05b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x36fce2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x15a05b});_0x36fce2['authors']=_0x36fce2['authorsIds']['map'](_0x1392d3=>this['editor']['plugins']['get']('Users')['getUser'](_0x1392d3)),this['currentRevision']['_update'](_0x36fce2);}}async['saveRevision'](_0x2afc6e={},_0x18d4d0=null){const _0xc66a54=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18d4d0>this['currentRevision']['toVersion']&&(_0x18d4d0=null),null===_0x18d4d0&&(_0x18d4d0=await this['_source']['getLatestVersion']());const _0x457953=this['_getFromVersion'](_0x18d4d0),_0x12470d=this['buildRevisionData']({'from':_0x457953,'to':_0x18d4d0});if(this['currentRevision']['toVersion']<_0x18d4d0){const _0x23b956=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x18d4d0,'to':_0x18d4d0});_0x23b956['authors']=[],_0x23b956['authorsIds']=[],_0x23b956['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x23b956,!0x0),delete _0x23b956['authors'],_0xc66a54['push'](_0x23b956);}_0x2afc6e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2afc6e['name']=_0x2afc6e['name']||null,_0x2afc6e['id']=_0x2afc6e['id']||_0x335623(),_0x2afc6e={..._0x2afc6e,..._0x12470d};const _0x597ba8=this['addRevisionData'](_0x2afc6e);_0xc66a54['push'](_0x2afc6e);const _0x7fc491=this['repository']['getIndex'](_0x597ba8);if(0x0!==_0x7fc491){const _0x508861=this['repository']['getRevision'](_0x7fc491-0x1);if(_0x508861['fromVersion']!==_0x18d4d0){const _0x255559=this['_revisionDataBuilder']['getData'](_0x18d4d0,_0x508861['toVersion']),_0x295919={'id':_0x508861['id'],'diffData':_0x255559['diffData'],'authorsIds':_0x255559['authorsIds'],'authors':_0x255559['authorsIds']['map'](_0x1d5ec1=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d5ec1)),'fromVersion':_0x18d4d0};_0x508861===this['currentRevision']&&(_0x295919['createdAt']=new Date(_0x2afc6e['createdAt']['getTime']()+0xa)),_0x508861['_update'](_0x295919,!0x0),delete _0x295919['authors'],_0xc66a54['push'](_0x295919);}}if(this['adapter']){for(const _0x1114f8 of _0xc66a54)this['_bufferUpdate'](_0x1114f8['id'],_0x1114f8,!0x0);this['sendBufferedUpdates']();}return _0x597ba8;}['addRevisionData'](_0x2f7885){const _0x51bc38=this['repository']['createRevision'](_0x2f7885);return this['adapter']&&_0x51bc38['on']('_update',(_0x1ebe60,_0x59e2e0,_0x3bb40d)=>{_0x3bb40d||(this['_bufferUpdate'](_0x59e2e0['id'],_0x59e2e0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x51bc38,this['_findInsertionIndex'](_0x51bc38)),_0x51bc38;}async['getRevisionDocumentData'](_0x3e2942){return await this['_utils']['loadRevisionData'](_0x3e2942,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3e2942);}async['getRevisionRootsAttributes'](_0x224d7b){return await this['_utils']['loadRevisionData'](_0x224d7b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x224d7b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4545b8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31ab4f=0x0;_0x31ab4f<_0x4545b8['length'];_0x31ab4f++){const _0x4af8ef=_0x4545b8[_0x31ab4f];let _0x35b950=!0x1;for(const _0x2dc392 of Object['keys'](_0x4af8ef))void 0x0===_0x4af8ef[_0x2dc392]?delete _0x4af8ef[_0x2dc392]:'id'!==_0x2dc392&&(_0x35b950=!0x0);_0x35b950||(_0x4545b8[_0x31ab4f]=null);}if(_0x4545b8=_0x4545b8['filter'](_0x5962e4=>null!==_0x5962e4),!_0x4545b8['length'])return;for(let _0x5e3da6=0x0;_0x5e3da6<_0x4545b8['length'];_0x5e3da6++){const _0x3b568e=_0x4545b8[_0x5e3da6];void 0x0!==_0x3b568e['fromVersion']&&void 0x0===_0x3b568e['toVersion']&&(_0x3b568e['toVersion']=this['repository']['getRevision'](_0x3b568e['id'])['toVersion']),void 0x0!==_0x3b568e['toVersion']&&void 0x0===_0x3b568e['fromVersion']&&(_0x3b568e['fromVersion']=this['repository']['getRevision'](_0x3b568e['id'])['fromVersion']);}const _0x53c2de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4545b8,_0x53c2de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2e34dd=>{if(_0x2e34dd){for(const _0x170eb8 of _0x2e34dd)this['setRevisionData']({'id':_0x170eb8['id'],'createdAt':_0x170eb8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x10de7e=null,from:_0x1e6efa=null,to:_0x55e1fd=null}){_0x1e6efa=null!==_0x1e6efa?_0x1e6efa:_0x10de7e['fromVersion'],_0x55e1fd=null!==_0x55e1fd?_0x55e1fd:_0x10de7e['toVersion'];const _0x14a586=this['_revisionDataBuilder']['getData'](_0x1e6efa,_0x55e1fd),_0x5ad0c2={'diffData':_0x14a586['diffData'],'authorsIds':_0x14a586['authorsIds'],'fromVersion':_0x1e6efa,'toVersion':_0x55e1fd};if(!_0x10de7e||_0x55e1fd!==_0x10de7e['toVersion']){const _0x110d72=_0x55e1fd-0x1,_0x353bba=this['_source']['history']['getOperation'](_0x110d72);_0x5ad0c2['createdAt']=_0x353bba&&_0x353bba['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1e6efa===this['_loadedStateData']['fromVersion']){for(const _0x49ec15 of this['_loadedStateData']['authors'])_0x5ad0c2['authorsIds']['includes'](_0x49ec15['id'])||_0x5ad0c2['authorsIds']['push'](_0x49ec15['id']);}return _0x5ad0c2;}['_bufferUpdate'](_0x33ec95,_0x1facdb,_0x4864a7){if(this['_bufferedUpdates']['has'](_0x33ec95)){const _0x4234f6=this['_bufferedUpdates']['get'](_0x33ec95);_0x1facdb=_0x4864a7?{..._0x4234f6,..._0x1facdb}:{..._0x1facdb,..._0x4234f6};}this['_bufferedUpdates']['set'](_0x33ec95,_0x1facdb);}['setRevisionData'](_0x284cf0){const _0x54bf8b=this['repository']['getRevision'](_0x284cf0['id']);if(_0x284cf0['createdAt']&&(_0x284cf0['createdAt']=new Date(_0x284cf0['createdAt'])),_0x284cf0['authorsIds']){const _0xa67d99=this['editor']['plugins']['get']('Users');_0x284cf0['authors']=_0x284cf0['authorsIds']['map'](_0xb3b1d9=>_0xa67d99['getUser'](_0xb3b1d9));}_0x54bf8b['_update'](_0x284cf0,!0x0);}['_createInitialRevision'](_0x411a19){const _0x440078=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x440078)this['_initialRevisionId']=_0x440078['id'];else{const _0x52df6a=!this['editor']['model']['document']['roots']['find'](_0x861855=>this['editor']['model']['hasContent'](_0x861855)),_0x5d8871=this['editor']['plugins']['get']('Users')['me']['id'],_0x56f9c1=g(this['editor']['locale'],_0x52df6a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x411a19,'to':_0x411a19,'id':this['_initialRevisionId'],'name':_0x56f9c1,'creatorId':_0x5d8871});}}['_createCurrentRevision'](_0x3b2b60){const _0x8e36eb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x8e36eb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3b2b60,'to':_0x3b2b60,'id':_0x8e36eb,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x1bcdc8,_0x37f80c){let _0x4555cb=this['editor']['config']['get']('initialData'),_0x5a23d5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4555cb){_0x4555cb={};for(const _0x558216 of this['editor']['model']['document']['getRootNames']())_0x4555cb[_0x558216]='';}if('string'==typeof _0x4555cb&&(_0x4555cb={'main':_0x4555cb}),void 0x0===_0x5a23d5){_0x5a23d5={};for(const _0x3926c6 of this['editor']['model']['document']['getRootNames']())_0x5a23d5[_0x3926c6]={};}let _0x57a604=!0x1;const _0x43e347=Object['keys'](_0x4555cb),_0x8b3aa5=Object['keys'](_0x1bcdc8);for(const _0x2cf1ba of _0x43e347){if(_0x4555cb[_0x2cf1ba]!==_0x1bcdc8[_0x2cf1ba]&&''!==_0x4555cb[_0x2cf1ba]['trim']()){_0x57a604=!0x0;break;}if(!_0xf42df9(_0x5a23d5[_0x2cf1ba],_0x37f80c[_0x2cf1ba])&&Object['keys'](_0x5a23d5[_0x2cf1ba])['length']>0x0){_0x57a604=!0x0;break;}}_0x57a604||(_0x57a604=_0x8b3aa5['some'](_0x4acd88=>!this['editor']['model']['document']['getRoot'](_0x4acd88))),_0x57a604&&_0x223dbb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4555cb,'editorRootsAttributes':_0x5a23d5,'revisionData':_0x1bcdc8,'revisionRootsAttributes':_0x37f80c}),this['editor']['config']['set']('initialData',_0x1bcdc8),this['editor']['config']['set']('rootsAttributes',_0x37f80c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x12d69b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x12d69b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xa87917){const _0x56203a=this['repository']['getRevisions']();_0x56203a['reverse']();let _0x193483=0x0;for(;_0x193483<_0x56203a['length'];){const _0x523058=_0x56203a[_0x193483];if(_0x523058===this['currentRevision']){_0x193483++;continue;}if(_0x523058['id']===this['_initialRevisionId'])break;const _0x3255e8=_0xa87917['toVersion']-_0x523058['toVersion']||_0xa87917['fromVersion']-_0x523058['fromVersion'];if(_0x3255e8>0x0)break;if(_0x3255e8<0x0)_0x193483++;else{if(!_0xa87917['creator']&&_0x523058['creator'])break;if(_0x523058['creator']||!_0xa87917['creator']){if(_0xa87917['createdAt']>_0x523058['createdAt'])break;_0x193483++;}else _0x193483++;}}return _0x193483;}['_getFromVersion'](_0xed989e){const _0x157b1a=this['repository']['getRevisions']();_0x157b1a['reverse'](),_0x157b1a['shift']();const _0x9cd9a4=_0x157b1a['find'](_0x58318c=>_0x58318c['toVersion']<=_0xed989e)['toVersion'];return _0x9cd9a4<this['_startingVersion']?this['_startingVersion']:_0x9cd9a4;}['_makeRevision']({name:_0x10290b,from:_0x29d036,to:_0x24d72d,creatorId:_0xaf2fb9,id:_0x4726f2}){const _0x4df6b4=this['buildRevisionData']({'from':_0x29d036,'to':_0x24d72d});_0x4df6b4['name']=_0x10290b,_0x4df6b4['creatorId']=_0xaf2fb9,_0x4df6b4['id']=_0x4726f2;const _0xed83c2=this['addRevisionData'](_0x4df6b4);return this['adapter']&&this['_bufferUpdate'](_0x4df6b4['id'],_0x4df6b4,!0x0),_0xed83c2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4c04fa){this['editor']=_0x4c04fa,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'](_0x5120cb){this['source']=_0x5120cb;const _0xc04b3d=new Map(),_0x1126db=new Map(),_0x1c773a=this['editor']['model']['document']['roots']['map'](_0x25edd6=>_0x25edd6['rootName']);for(const _0x34a53f of _0x1c773a){const _0x323e56=this['editor']['model']['document']['getRoot'](_0x34a53f),_0x3cffb7=N(_0x323e56);_0xc04b3d['set'](_0x34a53f,_0x3cffb7),_0x1126db['set'](_0x34a53f,Object['fromEntries'](_0x323e56['getAttributes']()));}const _0x5079b3=Array['from'](this['editor']['model']['markers'])['map'](_0x49502d=>[_0x49502d['name'],_0x49502d['getRange']()]),_0x3c92c2=this['source']['version'];this['_saveMetaData'](_0x3c92c2,_0xc04b3d,_0x5079b3,_0x1126db),this['_startingRevisionId']=this['_revisionId'];const _0x6ba6e=new Map(),_0x23dbe5=new Map();for(const _0x5e2131 of _0x1c773a){const _0xaa6ce2=P(_0x5e2131);_0x6ba6e['set'](_0x5e2131,_0xaa6ce2),_0x23dbe5['set'](_0x5e2131,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6ba6e,[],_0x23dbe5);}['getData'](_0x28902c,_0x2fe3fe){if(this['_lastFrom']===_0x28902c&&this['_lastTo']<=_0x2fe3fe)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2fe3fe,!0x0);else{if(!this['_savedMetaData']['has'](_0x28902c)){const _0x25893a=this['_getPreviousFrom'](_0x28902c);this['_calculateMetaData'](_0x25893a,_0x28902c,!0x1);}this['_calculateMetaData'](_0x28902c,_0x2fe3fe,!0x0);}return this['_lastFrom']=_0x28902c,this['_lastTo']=_0x2fe3fe,this['_getState']();}['loadState'](_0x1179ca){const _0x1a8346=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1179ca['fromVersion'],this['_lastTo']=_0x1179ca['toVersion'];for(const _0x73737 in _0x1179ca['diffData']){const _0x5b0269=_0x1179ca['diffData'][_0x73737]['attachChange'],_0x3a3656=_0x25c995(_0x1179ca['diffData'][_0x73737]['attributesBefore'])||{},_0x3abb0f=_0x1a8346['_makeModelFromViewString'](_0x1179ca['diffData'][_0x73737]['deletions']);_0x3abb0f['rootName']=_0x73737,_0x3abb0f['_isAttached']=!_0x5b0269||!_0x5b0269['isAttached'],_0x3abb0f['isAttached']=()=>_0x3abb0f['_isAttached'],this['_baseRoots']['set'](_0x73737,_0x3abb0f),this['_baseRootsAttributes']['set'](_0x73737,_0x3a3656),_0x5b0269&&this['_touchedRoots']['set'](_0x73737,_0x5b0269);const _0x2691c0=this['_makeIdsRoot'](_0x3abb0f);this['_baseIdsRoots']['set'](_0x73737,_0x2691c0);for(const [_0x5d4685,_0x2fef9b]of _0x3abb0f['markers']){if(!_0x5d4685['startsWith']('revision:'))continue;const _0x1e7141=_0x5d4685['split'](':')[0x2];for(const _0x45f5fa of _0x2fef9b['getWalker']({'singleCharacters':!0x0})){const _0x452f6c=this['_getVidAttributeName'](_0x45f5fa),_0x15d8e6='elementEnd'==_0x45f5fa['type']?_0x45f5fa['previousPosition']['path']['slice'](0x0,-0x1):_0x45f5fa['previousPosition']['path'],_0x5c6f0d=_0x2691c0['getNodeByPath'](_0x15d8e6)['getAttribute'](_0x452f6c);this['_touched']['set'](_0x5c6f0d,{'userId':_0x1e7141});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ac088=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x551f63=>!this['_touched']['has'](_0x551f63));let _0xdf3893=0x0;const _0x387b01=new Map();for(const _0x599360 in _0x1179ca['diffData']){const _0x3c19a3=_0x1179ca['diffData'][_0x599360]['attachChange'],_0x21e6ec=_0x25c995(_0x1179ca['diffData'][_0x599360]['attributesAfter'])||{},_0x38ca7f=_0x1a8346['_makeModelFromViewString'](_0x1179ca['diffData'][_0x599360]['insertions']);_0x38ca7f['rootName']=_0x599360,_0x38ca7f['_isAttached']=!_0x3c19a3||_0x3c19a3['isAttached'],_0x38ca7f['isAttached']=()=>_0x38ca7f['_isAttached'],this['_diffRoots']['set'](_0x599360,_0x38ca7f),this['_diffRootsAttributes']['set'](_0x599360,_0x21e6ec);const _0x5a73ac=this['_makeIdsRoot'](_0x38ca7f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x599360,_0x5a73ac),_0x387b01['set'](_0x599360,_0x38ca7f['isAttached']()?_0x21e6ec:{});for(const [_0x358dad,_0x4e88e1]of _0x38ca7f['markers']){if(!_0x358dad['startsWith']('revision:'))continue;const _0x388827=_0x358dad['split'](':')[0x2];for(const _0x4e6ee7 of _0x4e88e1['getWalker']({'singleCharacters':!0x0})){const _0x33fa1b=this['_getVidAttributeName'](_0x4e6ee7),_0x16b1bf=this['_revisionId']++,_0x4f710f='elementEnd'==_0x4e6ee7['type']?_0x4e6ee7['previousPosition']['path']['slice'](0x0,-0x1):_0x4e6ee7['previousPosition']['path'];_0x5a73ac['getNodeByPath'](_0x4f710f)['_setAttribute'](_0x33fa1b,_0x16b1bf),this['_touched']['set'](_0x16b1bf,{'userId':_0x388827});}}for(const _0x2bbb20 of this['editor']['model']['createRangeIn'](_0x38ca7f)['getWalker']({'singleCharacters':!0x0})){const _0x458ba9=this['_getVidAttributeName'](_0x2bbb20),_0x2900fb='elementEnd'==_0x2bbb20['type']?_0x2bbb20['previousPosition']['path']['slice'](0x0,-0x1):_0x2bbb20['previousPosition']['path'],_0x2e9a18=_0x5a73ac['getNodeByPath'](_0x2900fb);_0x2e9a18['getAttribute'](_0x458ba9)>0x0||_0x2e9a18['_setAttribute'](_0x458ba9,_0x4ac088[_0xdf3893++]);}for(const [_0x4bd67,_0x5335cf]of _0x38ca7f['markers'])_0x4bd67['startsWith']('revision:')||this['_markers']['set'](_0x4bd67,_0x5335cf);}const _0x4bf626=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4bf626),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4bf626,0x1));const _0x32c9aa=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x32c9aa),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x32c9aa,0x1));const _0x34a0f6=Array['from'](this['_diffRoots'])['map'](([_0x344654,_0x2d4cd1])=>[_0x344654,N(_0x2d4cd1)]);this['_saveMetaData'](this['_lastTo'],_0x34a0f6,this['_markers'],_0x387b01);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1e984e,_0xefeb57,_0x390152,_0x482da2){const _0x32f7c3=new Map(_0xefeb57),_0x5e75f4=new Map(_0x25c995(_0x482da2)),_0x4772b3=new Map();for(const [_0x3436cc,_0x5f5685]of _0x390152)_0x4772b3['set'](_0x3436cc,{'start':_0x5f5685['start']['clone'](),'end':_0x5f5685['end']['clone'](),'rootName':_0x5f5685['root']['rootName']});this['_savedMetaData']['set'](_0x1e984e,{'roots':_0x32f7c3,'markers':_0x4772b3,'rootsAttributes':_0x5e75f4});}['_removeMetaData'](_0x2229f6){this['_savedMetaData']['delete'](_0x2229f6);}['_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'](_0x4f99ab,_0x9e87d3=null){let _0x3d76b9=null;_0x4f99ab['is']('documentFragment')||(_0x3d76b9=new ut(_0x4f99ab['name'],{'vid_start':null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++}));const _0x2efa4c=[];for(const _0x12fbad of _0x4f99ab['getChildren']())if(_0x12fbad['is']('element')){_0x2efa4c['push'](this['_makeIdsRoot'](_0x12fbad,_0x9e87d3));const _0xb652=_0x2efa4c[_0x2efa4c['length']-0x1];null!==_0x9e87d3&&(_0x9e87d3=_0xb652['is']('element','$text')?_0xb652['getAttribute']('vid')+0x1:_0xb652['getAttribute']('vid_end')+0x1);}else{for(let _0x170b52=0x0;_0x170b52<_0x12fbad['offsetSize'];_0x170b52++)_0x2efa4c['push'](new ut('$text',{'vid':null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++}));}if(_0x4f99ab['is']('documentFragment')){const _0x13966c=P(_0x4f99ab['rootName']);return _0x13966c['_insertChild'](0x0,_0x2efa4c),_0x13966c;}return _0x3d76b9['_setAttribute']('vid_end',null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++),_0x3d76b9['_insertChild'](0x0,_0x2efa4c),_0x3d76b9;}['_calculateMetaData'](_0x2abfc6,_0xcd5ef1,_0x1b164f){this['_reset']();const {roots:_0xea737f,markers:_0xf50550,rootsAttributes:_0x3e6f14}=this['_savedMetaData']['get'](_0x2abfc6);this['_baseRoots']=new Map(_0xea737f),this['_baseRootsAttributes']=new Map(_0x25c995(_0x3e6f14));for(const [_0x2af116,_0x37706c]of this['_baseRoots'])if('$graveyard'!==_0x2af116&&(this['_diffRoots']['set'](_0x2af116,N(_0x37706c)),this['_diffRootsAttributes']=new Map(_0x25c995(_0x3e6f14)),_0x1b164f)){const _0x2011dc=this['_revisionId'];this['_idsRoots']['set'](_0x2af116,this['_makeIdsRoot'](_0x37706c)),this['_baseIdsRoots']['set'](_0x2af116,this['_makeIdsRoot'](_0x37706c,_0x2011dc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1b164f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x38e2e5,_0x3d1390]of _0xf50550){const _0xe60c6c=this['_baseRoots']['get'](_0x3d1390['rootName']),_0x5bfda3=this['_diffRoots']['get'](_0x3d1390['rootName']),_0x5b8dc5=new lt(this['_fixPosition'](_0x3d1390['start'],_0xe60c6c),this['_fixPosition'](_0x3d1390['end'],_0xe60c6c)),_0xc9ed2e=this['_fixRange'](_0x5b8dc5,_0x5bfda3);_0xe60c6c['markers']['set'](_0x38e2e5,_0x5b8dc5),this['_markers']['set'](_0x38e2e5,_0xc9ed2e);}this['_applyOperations'](_0x2abfc6,_0xcd5ef1,_0x1b164f);}['_applyOperations'](_0x22fb97,_0x4b83e0,_0x3cfddc){for(const _0x5989eb of this['source']['getOperations'](_0x22fb97,_0x4b83e0))this['_handleOperation'](_0x5989eb,_0x3cfddc);for(const _0x5c868c of this['_diffRoots']['values']())_0x5c868c['markers']['clear']();for(const [_0x5eb9d1,_0x24d1f6]of this['_markers']){this['_diffRoots']['get'](_0x24d1f6['root']['rootName'])['markers']['set'](_0x5eb9d1,_0x24d1f6['clone']());}const _0x273477=new Map(),_0x24c3d5=new Map();for(const [_0x3cd6f,_0x3becf5]of this['_diffRoots'])_0x273477['set'](_0x3cd6f,N(_0x3becf5)),_0x24c3d5['set'](_0x3cd6f,this['_diffRootsAttributes']['get'](_0x3cd6f));this['_saveMetaData'](_0x4b83e0,_0x273477,this['_markers'],_0x24c3d5);}['_getPreviousFrom'](_0x154033){const _0x5401cf=Array['from'](this['_savedMetaData']['keys']());_0x5401cf['sort']((_0x42b91b,_0x403ccf)=>_0x42b91b-_0x403ccf),_0x5401cf['reverse']();for(const _0x178476 of _0x5401cf)if(_0x178476<_0x154033)return _0x178476;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3abc87,_0x1ec519){const _0x1fc907=Array['from'](_0x1ec519['markers'])['map'](([_0x18e322,_0x51bc2e])=>[_0x18e322,this['_fixRange'](_0x51bc2e,_0x3abc87)]);_0x3abc87['markers']=new Map(_0x1fc907);}['_transformMarkers'](_0x3eab88){for(const _0xba8b0b of this['_markers']['values']()){const _0x1850bd=_0xba8b0b['getTransformedByOperation'](_0x3eab88),_0x233d72=lt['_createFromRanges'](_0x1850bd);_0xba8b0b['start']=_0x233d72['start'],_0xba8b0b['end']=_0x233d72['end'];}}['_handleOperation'](_0x13f00c,_0x285104){if('addRoot'!=_0x13f00c['type']&&'detachRoot'!=_0x13f00c['type']){if('insert'==_0x13f00c['type']){const _0x12a8a8=_0x13f00c['position']['root']['rootName'];this['_diffRoots']['has'](_0x12a8a8)||(this['_diffRoots']['set'](_0x12a8a8,P(_0x12a8a8,!0x0)),this['_diffRootsAttributes']['set'](_0x12a8a8,{}),_0x285104&&this['_idsRoots']['set'](_0x12a8a8,P(_0x12a8a8,!0x0)));}else{if('addRootAttribute'==_0x13f00c['type']||'removeRootAttribute'==_0x13f00c['type']||'changeRootAttribute'==_0x13f00c['type'])return void this['_handleRootAttributeOperation'](_0x13f00c);'marker'==_0x13f00c['type']&&this['_handleMarkerOperation'](_0x13f00c);}if('marker'!==_0x13f00c['type']){const _0x66bcf=this['_cloneOperation'](_0x13f00c,this['_diffRoots']);_0x66bcf['_execute'](),this['_transformMarkers'](_0x66bcf);}if(_0x285104)switch(_0x13f00c['type']){case'insert':this['_handleInsertOperation'](_0x13f00c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x13f00c);break;case'merge':this['_handleMergeOperation'](_0x13f00c);break;case'split':this['_handleSplitOperation'](_0x13f00c);}}else this['_handleRootOperation'](_0x13f00c,_0x285104);}['_cloneOperation'](_0x47c126,_0x14aca0){const _0x3725da=_0x47c126['clone']();return _0x3725da['_authorId']=_0x47c126['_authorId'],this['_fixOperation'](_0x3725da,_0x14aca0),_0x3725da;}['_getBaseVids'](_0x109ba9){return _0x109ba9['map'](_0x2cc91d=>{const _0x644a53=this['_getVidAttributeName'](_0x2cc91d);return Number(_0x2cc91d['item']['getAttribute'](_0x644a53));});}['_generateTape'](_0x46fea3,_0x12680d){if(_0x46fea3['is']('element','$text'))_0x12680d['push']({'item':_0x46fea3,'type':'text'});else{_0x46fea3['is']('element')&&_0x12680d['push']({'item':_0x46fea3,'type':'elementStart'});for(const _0x4adbe3 of _0x46fea3['getChildren']())this['_generateTape'](_0x4adbe3,_0x12680d);_0x46fea3['is']('element')&&_0x12680d['push']({'item':_0x46fea3,'type':'elementEnd'});}return _0x12680d;}['_getState'](){const _0x354dc7=new Map(this['_touched']),_0x47144c=new Map(_0x354dc7),_0x464adf=new Map(),_0x13f58e={'insertions':{},'deletions':{}},_0x538d61={'insertions':{},'deletions':{}},_0x3973ff=new Map(),_0x505d5e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x505d5e['delete']('$graveyard');for(const _0x4087f8 of _0x505d5e){const _0x33aa2a=this['_diffRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1),_0xb17227=this['_baseRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1);_0x33aa2a['isAttached']()||_0xb17227['isAttached']()?(_0x13f58e['insertions'][_0x4087f8]=N(_0x33aa2a),_0x13f58e['deletions'][_0x4087f8]=N(_0xb17227),this['_copyMarkers'](_0x13f58e['deletions'][_0x4087f8],_0xb17227),this['_copyMarkers'](_0x13f58e['insertions'][_0x4087f8],_0x33aa2a),_0x538d61['insertions'][_0x4087f8]=this['_generateTape'](this['_idsRoots']['get'](_0x4087f8),[]),_0x538d61['deletions'][_0x4087f8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1),[])):_0x505d5e['delete'](_0x4087f8);}for(const _0x275d40 of _0x505d5e){const _0x24c96b=_0x538d61['insertions'][_0x275d40];for(const _0x578276 of _0x24c96b){const _0x42567a=this['_getVidAttributeName'](_0x578276),_0x3abb74=_0x578276['item']['getAttribute'](_0x42567a);_0x47144c['delete'](_0x3abb74),_0x3abb74>=this['_startingRevisionId']&&_0x464adf['set'](_0x3abb74,_0x354dc7['get'](_0x3abb74));}}for(const _0x3d2ee7 of _0x505d5e){const _0x2fa0a3=_0x538d61['insertions'][_0x3d2ee7],_0x24e41f=this['_getBaseVids'](_0x538d61['deletions'][_0x3d2ee7]);let _0xe18952=0x0;for(const _0x3da0fc of _0x2fa0a3){const _0x586cf1=this['_getVidAttributeName'](_0x3da0fc),_0x3ff1e9=_0x3da0fc['item']['getAttribute'](_0x586cf1);if(!_0x464adf['has'](_0x3ff1e9)&&!_0x3973ff['has'](_0x3ff1e9)){if(_0x47144c['has'](_0x3ff1e9))_0xe18952++;else{if(_0x3ff1e9!=_0x24e41f[_0xe18952]){const _0x3ccf81=_0x354dc7['get'](_0x3ff1e9)||_0x354dc7['get'](_0x24e41f[_0xe18952]);for(;_0x3ff1e9!=_0x24e41f[_0xe18952];)_0x47144c['has'](_0x24e41f[_0xe18952])||(_0x3973ff['set'](_0x24e41f[_0xe18952],_0x3ccf81),_0x354dc7['set'](_0x24e41f[_0xe18952],_0x3ccf81)),_0xe18952++;}_0xe18952++;}}}}for(const _0x2c23ba of _0x505d5e){const _0x2f8e78=_0x538d61['insertions'][_0x2c23ba];for(const _0x58c871 of _0x2f8e78){const _0x39ce01=this['_getVidAttributeName'](_0x58c871),_0x3635f0=_0x58c871['item']['getAttribute'](_0x39ce01);if(_0x3973ff['has'](_0x3635f0)){const _0x41af37=_0x3973ff['get'](_0x3635f0);_0x47144c['has'](_0x3635f0)||_0x47144c['set'](_0x3635f0,{..._0x41af37}),_0x464adf['set'](_0x3635f0,{..._0x41af37});}}}for(const _0x19d768 of _0x47144c['keys']())_0x19d768>=this['_startingRevisionId']&&_0x47144c['delete'](_0x19d768);const _0x3d3078=new Map();for(const _0x599b7e of _0x505d5e){let _0x1723d9=_0x538d61['insertions'][_0x599b7e];for(const _0x3e4a1f of _0x1723d9)if(_0x3e4a1f['item']['is']('element','tableCell')){const _0x2156d7=this['_getVidAttributeName'](_0x3e4a1f),_0x3e7dd9=_0x3e4a1f['item']['getAttribute'](_0x2156d7);if(_0x464adf['has'](_0x3e7dd9)){const _0x3f4ed1=_0x3e4a1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3aaff5=_0x3d3078['get'](_0x3f4ed1)||new Set();_0x3aaff5['add'](_0x464adf['get'](_0x3e7dd9)['userId']),_0x3d3078['set'](_0x3f4ed1,_0x3aaff5);}}_0x1723d9=_0x538d61['deletions'][_0x599b7e];for(const _0x1507c4 of _0x1723d9)if(_0x1507c4['item']['is']('element','tableCell')){const _0x23ec8d=this['_getVidAttributeName'](_0x1507c4),_0x465afe=_0x1507c4['item']['getAttribute'](_0x23ec8d);if(_0x47144c['has'](_0x465afe)){const _0x130d09=_0x1507c4['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ac467=_0x3d3078['get'](_0x130d09)||new Set();_0x4ac467['add'](_0x47144c['get'](_0x465afe)['userId']),_0x3d3078['set'](_0x130d09,_0x4ac467);}}for(const _0x4d7dca of _0x3d3078['keys']())(_0x464adf['has'](_0x4d7dca)||_0x47144c['has'](_0x4d7dca))&&_0x3d3078['delete'](_0x4d7dca);}for(const _0x334894 of _0x505d5e){const _0x45e9ef=_0x538d61['insertions'][_0x334894];let _0x369ef8=null,_0x72ce2d=null;for(const _0x8df839 of _0x45e9ef){const _0x45c1f0=this['_getVidAttributeName'](_0x8df839),_0x9a0bbe=_0x8df839['item']['getAttribute'](_0x45c1f0),_0x3794cb=_0x3d3078['get'](_0x9a0bbe);_0x3794cb&&'elementStart'==_0x8df839['type']&&(_0x369ef8=Array['from'](_0x3794cb)[0x0],_0x72ce2d=_0x8df839['item']['getAttribute']('vid_end')),_0x369ef8&&(_0x47144c['set'](_0x9a0bbe,{'userId':_0x369ef8}),_0x464adf['set'](_0x9a0bbe,{'userId':_0x369ef8})),_0x9a0bbe==_0x72ce2d&&(_0x369ef8=null,_0x72ce2d=null);}}const _0x4ef524={},_0xab38a5=new Set();for(const _0xf53f51 of _0x505d5e){const _0x30600d=_0x13f58e['deletions'][_0xf53f51],_0xb764f7=_0x13f58e['insertions'][_0xf53f51];for(const {userId:_0x521f89}of this['_touchedMarkers']['values']())null!==_0x521f89&&_0xab38a5['add'](_0x521f89);for(const {userId:_0xde5afc}of this['_touchedRoots']['values']())null!==_0xde5afc&&_0xab38a5['add'](_0xde5afc);this['_markChanges'](_0xb764f7,_0x538d61['insertions'][_0xf53f51],_0x464adf,'insertion',_0xab38a5),this['_markChanges'](_0x30600d,_0x538d61['deletions'][_0xf53f51],_0x47144c,'deletion',_0xab38a5),_0x4ef524[_0xf53f51]={'insertions':this['_prepareViewToSave'](_0xb764f7),'deletions':this['_prepareViewToSave'](_0x30600d),'attachChange':this['_touchedRoots']['get'](_0xf53f51)||null,'attributesBefore':_0x25c995(this['_baseRootsAttributes']['get'](_0xf53f51))||{},'attributesAfter':_0x25c995(this['_diffRootsAttributes']['get'](_0xf53f51))};}return{'diffData':_0x4ef524,'authorsIds':Array['from'](_0xab38a5)};}['_processRootBeforeSave'](_0x1d9ced){for(const [,_0x4f0624]of _0x1d9ced['markers']){const _0x19febb=_0x4f0624['start']['getAncestors']()['filter'](_0x4917d3=>'tableCell'==_0x4917d3['name']);for(const _0x48204f of _0x19febb)0x1==_0x48204f['childCount']&&_0x48204f['getChild'](0x0)['is']('element','paragraph')&&_0x48204f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xf5712){this['_processRootBeforeSave'](_0xf5712);const _0x4e06df=this['editor']['data']['toView'](_0xf5712,{}),_0x2a201c=Array['from'](_0x4e06df['getChildren']())['map'](_0x5792ed=>this['_getViewJson'](_0x5792ed));return JSON['stringify'](_0x2a201c);}['_getViewJson'](_0x41900e){if(_0x41900e['is']('$text'))return _0x41900e['data'];{const _0x520b47=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fba9b=_0x41900e,_0x28647b=this['editor']['data']['htmlProcessor']['domConverter'],_0x30a975={'type':_0x520b47['_getTypeCharForViewElement'](_0x4fba9b),'name':_0x4fba9b['name'],'attributes':Array['from'](_0x4fba9b['getAttributes']()),'children':Array['from'](_0x4fba9b['getChildren']())['map'](_0x18ff13=>this['_getViewJson'](_0x18ff13))};if(_0x41900e['is']('uiElement')&&'$comment'!=_0x41900e['name']){const _0x404899=_0x41900e['render'](_0x28647b['domDocument'],_0x28647b);_0x30a975['children']['push'](_0x404899['outerHTML']);}else{if(_0x41900e['is']('rawElement')){const _0x2cae44=_0x28647b['domDocument']['createElement'](_0x4fba9b['name']);_0x41900e['render'](_0x2cae44,_0x28647b),_0x30a975['children']['push'](_0x2cae44['innerHTML']);}}const _0x355988=Array['from'](_0x4fba9b['getCustomProperties']());_0x355988['length']>0x0&&(_0x30a975['customProperties']=_0x355988);const _0x40d6b2=_0x4fba9b['getFillerOffset']();return null!==_0x40d6b2&&(_0x30a975['fillerOffset']=_0x40d6b2),_0x30a975;}}['_markChanges'](_0x10ef42,_0x5500ab,_0x5d4ded,_0x46f5d3,_0x37c1f2){let _0x3b17e1=null,_0x15c1d8=null,_0x292228=0x0;const _0x2d0ad8=this['editor']['model'];for(let _0x241c03=0x0;_0x241c03<_0x5500ab['length'];_0x241c03++){const _0x4f37a2=this['_getVidAttributeName'](_0x5500ab[_0x241c03]),_0x2c434d=_0x5500ab[_0x241c03]['item']['getAttribute'](_0x4f37a2),_0x106d43=_0x5d4ded['get'](_0x2c434d),_0x49bf25=_0x241c03==_0x5500ab['length']-0x1;(!_0x3b17e1&&_0x106d43&&(_0x3b17e1=_0x106d43,_0x15c1d8=_0x5500ab[_0x241c03]),_0x3b17e1&&(!_0x106d43||_0x106d43['userId']!=_0x3b17e1['userId']))&&(_0x2fbec5(_0x106d43,F(_0x15c1d8,_0x10ef42,_0x2d0ad8),F(_0x5500ab[_0x241c03],_0x10ef42,_0x2d0ad8)),_0x3b17e1=_0x106d43||null,_0x15c1d8=_0x106d43?_0x5500ab[_0x241c03]:null),_0x3b17e1&&_0x49bf25&&_0x2fbec5(_0x106d43,F(_0x15c1d8,_0x10ef42,_0x2d0ad8),B(_0x5500ab[_0x241c03],_0x10ef42,_0x2d0ad8));}function _0x2fbec5(_0x1b6153,_0xe05ac3,_0x100a92){const _0x2effbc=_0x3b17e1['userId'],_0x5da5f2='revision:'+_0x46f5d3+':'+_0x2effbc+':'+_0x292228++,_0x3d05e9=_0x2d0ad8['createRange'](_0xe05ac3,_0x100a92);_0x10ef42['markers']['set'](_0x5da5f2,_0x3d05e9),null!==_0x2effbc&&_0x37c1f2['add'](_0x2effbc);}}['_getVidAttributeName'](_0xfc135f){switch(_0xfc135f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4b8fb4,_0x4cbac9){_0x4b8fb4['baseVersion']=null;for(const _0x2fbbe0 in _0x4b8fb4){const _0x4b5d0a=_0x4b8fb4[_0x2fbbe0];if(_0x4b5d0a instanceof ft){const _0x49c01f=_0x4cbac9['get'](_0x4b5d0a['root']['rootName']);_0x4b8fb4[_0x2fbbe0]=this['_fixPosition'](_0x4b5d0a,_0x49c01f);}if(_0x4b5d0a instanceof lt){const _0x36a329=_0x4cbac9['get'](_0x4b5d0a['root']['rootName']);_0x4b8fb4[_0x2fbbe0]=this['_fixRange'](_0x4b5d0a,_0x36a329);}'root'===_0x2fbbe0&&(_0x4b8fb4['root']=_0x4cbac9['get'](_0x4b8fb4['root']['rootName']));}}['_fixRange'](_0x16d3e0,_0x2ceb92){return this['editor']['model']['createRange'](this['_fixPosition'](_0x16d3e0['start'],_0x2ceb92),this['_fixPosition'](_0x16d3e0['end'],_0x2ceb92));}['_fixPosition'](_0x2a3412,_0x2b6b51){return this['editor']['model']['createPositionFromPath'](_0x2b6b51,_0x2a3412['path'],_0x2a3412['stickiness']);}['_handleInsertOperation'](_0x1f3263){const _0x33c76e=this['_idsRoots']['get'](_0x1f3263['position']['root']['rootName']),_0x2125f0=this['_fixPosition'](_0x1f3263['position'],_0x33c76e),_0x578857=null===_0x1f3263['_authorId']?null:_0x1f3263['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29f67f=_0x2125f0['parent'],_0x504074=this['_revisionId'],_0x3d40bf=[];for(const _0x3926ae of _0x1f3263['nodes'])if(_0x3926ae['is']('element'))_0x3d40bf['push'](this['_makeIdsRoot'](_0x3926ae));else{for(let _0x2003c2=0x0;_0x2003c2<_0x3926ae['offsetSize'];_0x2003c2++)_0x3d40bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x39dc8a=this['_revisionId'];for(let _0x206df5=_0x504074;_0x206df5<_0x39dc8a;_0x206df5++)this['_touched']['set'](_0x206df5,{'userId':_0x578857});_0x29f67f['_insertChild'](_0x2125f0['offset'],_0x3d40bf);}['_handleMoveOperation'](_0x42fb48){(_0x42fb48=this['_cloneOperation'](_0x42fb48,this['_idsRoots']))['_execute']();const _0x409576=null===_0x42fb48['_authorId']?null:_0x42fb48['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41ad12=_0x42fb48['getMovedRangeStart'](),_0x138513=_0x41ad12['parent'],_0x39af18=_0x41ad12['offset'];!function _0x4f49bb(_0x4bad2a,_0x48b6ef,_0xe7f4d,_0x2a4194){for(let _0x9bc8f6=_0xe7f4d;_0x9bc8f6<_0x2a4194;_0x9bc8f6++){const _0x146e81=_0x48b6ef['getChild'](_0x9bc8f6);_0x146e81['is']('element','$text')?_0x4bad2a['set'](_0x146e81['getAttribute']('vid'),{'userId':_0x409576}):(_0x4bad2a['set'](_0x146e81['getAttribute']('vid_start'),{'userId':_0x409576}),_0x4f49bb(_0x4bad2a,_0x146e81,0x0,_0x146e81['childCount']),_0x4bad2a['set'](_0x146e81['getAttribute']('vid_end'),{'userId':_0x409576}));}}(this['_touched'],_0x138513,_0x39af18,_0x39af18+_0x42fb48['howMany']);}['_handleMergeOperation'](_0x478f9a){const _0x5c34e4=null===(_0x478f9a=this['_cloneOperation'](_0x478f9a,this['_idsRoots']))['_authorId']?null:_0x478f9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x501d5d=_0x478f9a['targetPosition']['parent'],_0x11c400=_0x478f9a['sourcePosition']['parent'],_0x4c16ea=_0x501d5d['getAttribute']('vid_end'),_0x41448e=_0x11c400['getAttribute']('vid_start');_0x501d5d['_setAttribute']('vid_end',_0x11c400['getAttribute']('vid_end')),_0x11c400['_setAttribute']('vid_end',_0x4c16ea),this['_touched']['set'](_0x41448e,{'userId':_0x5c34e4}),this['_touched']['set'](_0x4c16ea,{'userId':_0x5c34e4}),_0x478f9a['_execute']();}['_handleSplitOperation'](_0x15da8b){const _0x137c93=null===(_0x15da8b=this['_cloneOperation'](_0x15da8b,this['_idsRoots']))['_authorId']?null:_0x15da8b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17bb4f=_0x15da8b['graveyardPosition'],_0xf48711=_0x15da8b['splitPosition']['parent'];_0x15da8b['_execute']();const _0x44a56e=_0xf48711['getAttribute']('vid_end'),_0x489215=_0x15da8b['insertionPosition']['nodeAfter'];if(_0x17bb4f){const _0x1b4a88=_0x489215['getAttribute']('vid_end'),_0x363f11=_0xf48711['getAttribute']('vid_end');_0xf48711['_setAttribute']('vid_end',_0x1b4a88),_0x489215['_setAttribute']('vid_end',_0x363f11),this['_touched']['set'](_0xf48711['getAttribute']('vid_end'),{'userId':_0x137c93}),this['_touched']['set'](_0x489215['getAttribute']('vid_start'),{'userId':_0x137c93});}else{const _0x5a878e=this['_revisionId']++,_0x41b7cb=this['_revisionId']++;_0xf48711['_setAttribute']('vid_end',_0x5a878e),_0x489215['_setAttribute']('vid_start',_0x41b7cb),_0x489215['_setAttribute']('vid_end',_0x44a56e),this['_touched']['set'](_0x5a878e,{'userId':_0x137c93}),this['_touched']['set'](_0x41b7cb,{'userId':_0x137c93});}}['_handleMarkerOperation'](_0x3b1254){if(!_0x3b1254['affectsData'])return;const _0x5a8866=(_0x3b1254=this['_cloneOperation'](_0x3b1254,this['_diffRoots']))['oldRange']?_0x3b1254['oldRange']['root']:null,_0xc04de4=_0x3b1254['newRange']?_0x3b1254['newRange']['root']:null;_0x5a8866&&this['_markers']['delete'](_0x3b1254['name']),_0xc04de4&&this['_markers']['set'](_0x3b1254['name'],_0x3b1254['newRange']['clone']());const _0x2a4534=null===_0x3b1254['_authorId']?null:_0x3b1254['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32a439=_0x3b1254['name'];if(!this['_touchedMarkers']['has'](_0x32a439))return void this['_touchedMarkers']['set'](_0x32a439,{'range':_0x3b1254['oldRange'],'userId':_0x2a4534});const _0x1460eb=this['_touchedMarkers']['get'](_0x32a439),_0x3fde65=_0x1460eb['range'],_0x3e7911=_0x3b1254['newRange'];null==_0x3fde65&&null==_0x3e7911||_0x3fde65&&_0x3e7911&&_0x3fde65['isEqual'](_0x3e7911)?this['_touchedMarkers']['delete'](_0x3b1254['name']):_0x1460eb['userId']=_0x2a4534;}['_handleRootOperation'](_0x316c4f,_0x5a8e93){this['_diffRoots']['has'](_0x316c4f['rootName'])?this['_diffRoots']['get'](_0x316c4f['rootName'])['_isAttached']=_0x316c4f['isAdd']:(this['_diffRoots']['set'](_0x316c4f['rootName'],P(_0x316c4f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x316c4f['rootName'],{}),_0x5a8e93&&this['_idsRoots']['set'](_0x316c4f['rootName'],P(_0x316c4f['rootName'],!0x0)));const _0x201e72=null===_0x316c4f['_authorId']?null:_0x316c4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ce410=this['_touchedRoots']['get'](_0x316c4f['rootName']);_0x4ce410&&_0x4ce410['userId']===_0x201e72?this['_touchedRoots']['delete'](_0x316c4f['rootName']):this['_touchedRoots']['set'](_0x316c4f['rootName'],{'userId':_0x201e72,'isAttached':_0x316c4f['isAdd']});}['_handleRootAttributeOperation'](_0x4a5d27){const _0x2924f4=this['_diffRootsAttributes']['get'](_0x4a5d27['root']['rootName']);null===_0x4a5d27['newValue']?delete _0x2924f4[_0x4a5d27['key']]:_0x2924f4[_0x4a5d27['key']]=_0x4a5d27['newValue'];}}function N(_0x116dec){const _0x4ca5f8=P(_0x116dec['rootName'],_0x116dec['isAttached']());for(const _0x334958 of _0x116dec['getChildren']()){const _0x2a7659=_0x334958['_clone'](!0x0);_0x4ca5f8['_appendChild'](_0x2a7659);}return _0x4ca5f8;}function P(_0x5e38e9,_0x43d658=!0x0){const _0x9a54c9=new vt();return _0x9a54c9['rootName']=_0x5e38e9,_0x9a54c9['_isAttached']=_0x43d658,_0x9a54c9['isAttached']=()=>_0x9a54c9['_isAttached'],_0x9a54c9;}function F(_0x2babcc,_0x3a22c5,_0x5e7f94){const _0x2c308e='elementEnd'==_0x2babcc['type']?_0x5e7f94['createPositionAt'](_0x2babcc['item'],'end'):_0x5e7f94['createPositionBefore'](_0x2babcc['item']);return _0x5e7f94['createPositionFromPath'](_0x3a22c5,_0x2c308e['path'],_0x2c308e['stickiness']);}function B(_0x3ef295,_0x79ba40,_0x1651dc){const _0x38a995='elementStart'==_0x3ef295['type']?_0x1651dc['createPositionAt'](_0x3ef295['item'],0x0):_0x1651dc['createPositionAfter'](_0x3ef295['item']);return _0x1651dc['createPositionFromPath'](_0x79ba40,_0x38a995['path'],_0x38a995['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1bcd9d,_0x171027){super(_0x1bcd9d),this['focusTracker']=new _0x3d5f91(),this['keystrokes']=new _0x583348(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x171027),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25b1f2(this);}['render'](){super['render'](),_0x50411b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3d4464=_0x3376bb=>_0x3376bb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3d4464),this['keystrokes']['set']('arrowleft',_0x3d4464),this['keystrokes']['set']('arrowup',_0x3d4464),this['keystrokes']['set']('arrowdown',_0x3d4464);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x59cb39){this['revisionNameInputView']['fieldView']['element']['value']=_0x59cb39['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24b823){const _0x72ba45=new _0x53f8a9(this['locale'],_0x33ff0f),_0x5c4374=_0x72ba45['fieldView'];_0x5c4374['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x37bb55=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24b823&&(_0x37bb55+='\x20('+g(this['locale'],'optional')+')'),(_0x72ba45['label']=_0x37bb55,_0x5c4374['on']('input',()=>{this['revisionNameInputValue']=_0x5c4374['element']['value']['trim']();}),_0x72ba45);}}class f extends _0x215f3d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x119e27=this['editor'],_0x1b06b5=_0x119e27['plugins']['get']('RevisionTracker');_0x119e27['ui']['componentFactory']['add']('revisionHistory',_0x184c84=>{const _0x49468e=_0x41d57a(_0x184c84),_0x28288a=_0x49468e['panelView']['children'],_0x1649b5=new _0x21eec4(_0x184c84),_0x1252c9=new _0xbcd986(_0x184c84),_0x9a6a8=new te(_0x184c84),_0x2abaa9=new _0xbcd986(_0x184c84),_0x1e1645=new te(_0x184c84);return _0x49468e['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x1b06b5,'isEnabled',_0x119e27,'isReadOnly',(_0x5c29f6,_0x1fa5a2,_0x3af306)=>_0x5c29f6&&_0x1fa5a2&&!_0x3af306),_0x49468e['buttonView']['set']({'icon':_0x14d782,'label':g(_0x184c84,'Revision\x20history'),'tooltip':!0x0}),_0x9a6a8['set']({'label':g(_0x184c84,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x9a6a8['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x1b06b5,'isEnabled',_0x119e27,'isReadOnly',(_0x47a5cc,_0x1c48e7,_0xe84d24)=>_0x47a5cc&&_0x1c48e7&&!_0xe84d24),_0x9a6a8['on']('execute',()=>this['_showDialog']()),_0x1e1645['set']({'label':g(_0x184c84,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e1645['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x119e27,'isReadOnly',(_0x42a621,_0x513d39)=>_0x42a621&&!_0x513d39),_0x1e1645['on']('execute',()=>{_0x119e27['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x49468e['isOpen']=!0x1,_0x119e27['editing']['view']['focus']();}),_0x1252c9['children']['add'](_0x9a6a8),_0x2abaa9['children']['add'](_0x1e1645),_0x1649b5['role']='menu',_0x1649b5['items']['addMany']([_0x1252c9,_0x2abaa9]),_0x28288a['add'](_0x1649b5),_0x49468e;}),_0x119e27['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x282ad5=this['editor'],_0x26ac4b=_0x282ad5['locale'],_0x5da082=new _0x3cb039(_0x26ac4b),_0x3e3268=new _0x34a253(_0x26ac4b);_0x5da082['buttonView']['set']({'icon':_0x14d782,'label':g(_0x26ac4b,'Revision\x20history')});const _0x16057b=new _0x4b57e6(_0x26ac4b,_0x5da082),_0x365ff8=new _0x51584f(_0x26ac4b);_0x365ff8['set']({'label':g(_0x26ac4b,'Save\x20current\x20revision')}),_0x365ff8['delegate']('execute')['to'](_0x5da082),_0x365ff8['on']('execute',()=>{this['_showDialog']();}),_0x16057b['children']['add'](_0x365ff8),_0x3e3268['items']['add'](_0x16057b);const _0x5b2859=new _0x4b57e6(_0x26ac4b,_0x5da082),_0x3ec97f=new _0x51584f(_0x26ac4b);return _0x3ec97f['set']({'label':g(_0x26ac4b,'Open\x20revision\x20history')}),_0x3ec97f['delegate']('execute')['to'](_0x5da082),_0x3ec97f['on']('execute',()=>{_0x282ad5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5b2859['children']['add'](_0x3ec97f),_0x3e3268['items']['add'](_0x5b2859),_0x5da082['panelView']['children']['add'](_0x3e3268),_0x5da082;}['_showDialog'](){const _0x4a6d86=this['editor'],_0x305005=_0x4a6d86['locale'],_0x10305c=_0x4a6d86['plugins']['get']('Dialog'),_0x2cc5b6=_0x4a6d86['plugins']['get']('RevisionTracker');function _0x3c7004(_0x18a622){_0x4a6d86['config']['get']('revisionHistory.requireRevisionName')&&''===_0x18a622['revisionName']?_0x18a622['revisionNameInputView']['errorText']=g(_0x305005,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4a6d86['plugins']['get'](u)['saveRevision']({'name':_0x18a622['revisionName']}),_0x10305c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3c7004(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x10305c['show']({'id':'revisionSave','title':g(_0x305005,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4a6d86['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x10305c['hide']()},{'label':g(_0x4a6d86['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4b0b12){_0x4b0b12['bind']('isEnabled')['to'](_0x2cc5b6,'isReady',_0x2cc5b6,'isEnabled',_0x4a6d86,'isReadOnly',(_0x27937f,_0x5c1373,_0x23d2db)=>_0x27937f&&_0x5c1373&&!_0x23d2db);},'onExecute':()=>_0x3c7004(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1c0e5f=this['editor'],_0x552dae=_0x1c0e5f['locale'];this['_saveRevisionFormView']=new hs(_0x552dae,_0x1c0e5f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x45c588,_0x530daf){super(_0x45c588),this['_model']=_0x530daf,this['changeId']=_0x530daf['id'];const _0x425495=this['bindTemplate'],_0x59ac6b=g(_0x45c588,_0x530daf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x530daf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x530daf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x425495['to']('type',_0x478871=>'ck-revision-change__'+_0x478871)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59ac6b}]},{'text':'\x20'+_0x530daf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1a0236(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5bdb4b){super(),this['id']=_0x5bdb4b['id']||_0x335623(),this['author']=_0x5bdb4b['author'],this['type']=_0x5bdb4b['type'],this['data']=_0x5bdb4b['data']||{},this['rootName']=_0x5bdb4b['rootName'],this['set']('createdAt',_0x5bdb4b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x25b89d,_0x1bad84){this['newRevisionId']=_0x25b89d,this['oldRevisionId']=_0x1bad84,this['changes']=new _0x3b3f60();}['_setChanges'](_0x429355){for(const _0x14184b of _0x429355)this['changes']['add'](_0x14184b);}}class m extends _0x215f3d{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1efa5c,_0x5401b0,I,V];}constructor(_0x443bf7){super(_0x443bf7),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x542954,_0x4ec691,_0x17921f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x41c03c=>{for(const _0x418215 of this['editor']['editing']['view']['document']['roots'])_0x17921f?_0x41c03c['removeClass']('ck-editor__editable__overlay',_0x418215):_0x41c03c['addClass']('ck-editor__editable__overlay',_0x418215);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x11f3b0=>null!==_0x11f3b0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2d7d9e,_0x44febb,_0x2427d3)=>_0x2d7d9e&&_0x2427d3?_0x44febb['changes']['getIndex'](_0x2427d3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x554932,_0x23621d)=>_0x554932?_0x23621d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5401b0);}['init'](){const _0x32bcf4=this['editor'],_0xc560fd=new wt(_0x32bcf4,{'direction':'backward'}),_0x4c84d6=new wt(_0x32bcf4,{'direction':'forward'});(_0x32bcf4['commands']['add']('showPreviousChange',_0xc560fd),_0x32bcf4['commands']['add']('showNextChange',_0x4c84d6),_0x32bcf4['commands']['add']('restoreRevision',new mt(_0x32bcf4)),this['on']('change:numberOfChanges',()=>{_0xc560fd['refresh'](),_0x4c84d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32bcf4['enableReadOnlyMode']('revision-viewer'),_0x32bcf4['plugins']['has']('WidgetToolbarRepository'))&&_0x32bcf4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x279240){return await this['_utils']['loadRevisionData'](_0x279240,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x279240);}async['getRevisionRootsAttributes'](_0x14deba){return await this['_utils']['loadRevisionData'](_0x14deba,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x14deba);}async['compare'](_0x5c1b04,_0x146707,_0xc993b1=!0x1){if(!this['isEnabled'])return;const _0x3c15eb=this['diff'],_0x1291d0=this['repository'],_0x21638a='string'==typeof _0x5c1b04?_0x1291d0['getRevision'](_0x5c1b04):_0x5c1b04,_0x5ce675='string'==typeof _0x146707?_0x1291d0['getRevision'](_0x146707):_0x146707,_0x3d9f53=_0x21638a['id'],_0x367cda=_0x5ce675?_0x5ce675['id']:null;if(!_0xc993b1&&this['diff']&&this['diff']['newRevisionId']===_0x3d9f53&&this['diff']['oldRevisionId']===_0x367cda)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3d9f53,_0x367cda);const _0xc81f89=this['_getRevisionsRange'](_0x21638a,_0x5ce675,!0x0)['map'](_0x2be2a3=>this['_utils']['loadRevisionData'](_0x2be2a3,this['adapter']));return _0xc81f89['push'](new Promise(_0x4c52d4=>{setTimeout(_0x4c52d4,0x14);})),Promise['all'](_0xc81f89)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x617663=this['_getDiff'](_0x3d9f53,_0x367cda);for(const _0x511edb of _0x617663['changes'])this['_changeIdToChange']['set'](_0x511edb['id'],_0x511edb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfecebc=>{for(const _0x171f5a of this['editor']['model']['document']['getRootNames']())_0xfecebc['detachRoot'](_0x171f5a);for(const _0x4c8bc1 of Object['keys'](_0x617663['model'])){const _0x3396ac=_0xfecebc['addRoot'](_0x4c8bc1);for(const _0x37b119 of Object['keys'](_0x617663['attributes'][_0x4c8bc1]))_0xfecebc['setAttribute'](_0x37b119,_0x617663['attributes'][_0x4c8bc1][_0x37b119],_0x3396ac);_0xfecebc['insert'](_0x617663['model'][_0x4c8bc1],_0x3396ac,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x617663['changes'])),this['isReady']=!0x0;})['catch'](_0x365081=>{console['error'](_0x365081),this['_cleanUp'](),_0x3c15eb&&(this['diff']=_0x3c15eb),this['isReady']=!0x0;});}['addRevisionData'](_0x5e7c5d,_0x55d9d9){const _0x486019=this['repository']['createRevision'](_0x5e7c5d);return _0x486019['on']('_update',(_0x32a0e4,_0x188abe,_0x47f203)=>_0x55d9d9(_0x188abe,_0x47f203,_0x486019)),this['repository']['addRevision'](_0x486019),_0x486019;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1701c5=>{for(const _0x4052a5 of this['editor']['model']['document']['getRootNames']())_0x1701c5['detachRoot'](_0x4052a5);});}['_sortAndFilterDiffChanges'](_0x16cc85){const _0x15e873=[],_0x2e57c3=new Map();for(const _0x261f62 of this['editor']['model']['document']['getRootNames']()){const _0x1bffe2=this['editor']['editing']['view']['getDomRoot'](_0x261f62);if(!_0x1bffe2)continue;const _0x1c055f=_0x1bffe2['getClientRects']()['item'](0x0);_0x1c055f&&(_0x15e873['push'](_0x261f62),_0x2e57c3['set'](_0x261f62,_0x1c055f));}return _0x15e873['sort']((_0x45ae13,_0x235637)=>{const _0x3d407a=_0x2e57c3['get'](_0x45ae13),_0x3c39c2=_0x2e57c3['get'](_0x235637);return _0x3d407a['y']-_0x3c39c2['y']||_0x3d407a['x']-_0x3c39c2['x'];}),(_0x16cc85=_0x16cc85['filter'](_0xadf6ef=>_0x15e873['includes'](_0xadf6ef['rootName'])))['sort']((_0x498e59,_0x24a189)=>_0x15e873['indexOf'](_0x498e59['rootName'])-_0x15e873['indexOf'](_0x24a189['rootName'])),_0x16cc85;}['_makeTape'](_0x220416){const _0x55f052=Array['from'](_0x220416['markers'])['filter'](([_0x1f28a5,_0xb92cd2])=>_0x1f28a5['startsWith']('revision:')&&!_0xb92cd2['isCollapsed']),_0x2d5451=Array['from'](this['editor']['model']['createRangeIn'](_0x220416)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x55f052['length'])for(const _0x48007e of _0x2d5451){const [_0x3efb83,_0x47d4b1]=_0x55f052[0x0],[,_0x45ca6a,_0x159c04]=_0x3efb83['split'](':');if(_0x47d4b1['end']['isEqual'](_0x48007e['nextPosition'])&&_0x55f052['shift'](),(_0x48007e['previousPosition']['isEqual'](_0x47d4b1['start'])||_0x48007e['previousPosition']['isAfter'](_0x47d4b1['start']))&&('insertion'==_0x45ca6a?_0x48007e['isAdded']={'userId':_0x159c04}:'deletion'==_0x45ca6a&&(_0x48007e['isRemoved']={'userId':_0x159c04})),0x0==_0x55f052['length'])break;}return _0x2d5451;}['_refreshStartEndIndex'](_0x23fadd){const _0x1c3b25=new Map();for(let _0x2f165c=0x0;_0x2f165c<_0x23fadd['length'];_0x2f165c++)'text'===_0x23fadd[_0x2f165c]['type']?(_0x23fadd[_0x2f165c]['item']['startIndex']=_0x2f165c,_0x23fadd[_0x2f165c]['item']['endIndex']=_0x2f165c):('elementStart'===_0x23fadd[_0x2f165c]['type']?_0x23fadd[_0x2f165c]['item']['startIndex']=_0x2f165c:'elementEnd'===_0x23fadd[_0x2f165c]['type']&&(_0x23fadd[_0x2f165c]['item']['endIndex']=_0x2f165c),_0x1c3b25['set'](_0x23fadd[_0x2f165c]['id'],_0x2f165c));for(const _0x4d7f99 of _0x1c3b25['values']())'elementStart'===_0x23fadd[_0x4d7f99]['type']?_0x23fadd[_0x4d7f99]['item']['endIndex']=_0x1c3b25['get'](_0x23fadd[_0x4d7f99]['pairId']):'elementEnd'===_0x23fadd[_0x4d7f99]['type']&&(_0x23fadd[_0x4d7f99]['item']['startIndex']=_0x1c3b25['get'](_0x23fadd[_0x4d7f99]['pairId']));}['_processTape'](_0x3acb9d){for(let _0x1f40b0=0x0;_0x1f40b0<_0x3acb9d['length'];_0x1f40b0++){if('elementStart'===_0x3acb9d[_0x1f40b0]['type'])_0x3acb9d[_0x1f40b0]['item']['startIndex']=_0x1f40b0;else{if('elementEnd'===_0x3acb9d[_0x1f40b0]['type']){_0x3acb9d[_0x1f40b0]['item']['endIndex']=_0x1f40b0;const _0x252c79=_0x3acb9d[_0x1f40b0]['item']['startIndex'];_0x3acb9d[_0x252c79]['pairId']=_0x3acb9d[_0x1f40b0]['id'],_0x3acb9d[_0x1f40b0]['pairId']=_0x3acb9d[_0x252c79]['id'];}else _0x3acb9d[_0x1f40b0]['item']['startIndex']=_0x1f40b0,_0x3acb9d[_0x1f40b0]['item']['endIndex']=_0x1f40b0,_0x3acb9d[_0x1f40b0]['pairId']=null;}_0x3acb9d[_0x1f40b0]['markersStart']||(_0x3acb9d[_0x1f40b0]['markersStart']=[],_0x3acb9d[_0x1f40b0]['markersEnd']=[]);}}['_markInsertions'](_0x3f7efe,_0x153b37){const _0x42904d=_0x3f7efe['filter'](_0x534754=>!_0x534754['isAdded']);for(let _0x27f049=0x0;_0x27f049<_0x153b37['length'];_0x27f049++)_0x153b37[_0x27f049]['isAdded']&&(_0x42904d[_0x27f049]['isAdded']=_0x153b37[_0x27f049]['isAdded']);}['_getDiff'](_0x20a7e3,_0x3f37f1=null){const _0x46052c=this['repository']['getRevision'](_0x20a7e3),_0x297299=_0x3f37f1?this['repository']['getRevision'](_0x3f37f1):null,_0x174451=this['_getRevisionsRange'](_0x46052c,_0x297299),_0x44d5c2=_0x174451[_0x174451['length']-0x1],_0x17eb88=new Map(),_0x569d30={'model':{},'attributes':{},'changes':[]},_0x4c32d1=new Set(),_0x5f5a77=new Map();for(let _0x5d1bb9=_0x174451['length']-0x1;_0x5d1bb9>=0x0;_0x5d1bb9--){const _0x3f8a63=_0x174451[_0x5d1bb9];for(const _0x50f849 of Object['keys'](_0x3f8a63['diffData']))if(_0x3f8a63['diffData'][_0x50f849]['attachChange']){const _0x27baa4=_0x3f8a63['diffData'][_0x50f849]['attachChange'];_0x27baa4['isAttached']?(_0x4c32d1['add'](_0x50f849),_0x5f5a77['has'](_0x50f849)&&_0x5f5a77['get'](_0x50f849)['userId']==_0x27baa4['userId']?_0x5f5a77['delete'](_0x50f849):_0x5f5a77['set'](_0x50f849,_0x27baa4)):_0x5f5a77['has'](_0x50f849)?(_0x4c32d1['delete'](_0x50f849),_0x5f5a77['delete'](_0x50f849)):(_0x4c32d1['add'](_0x50f849),_0x5f5a77['set'](_0x50f849,_0x27baa4));}else _0x4c32d1['add'](_0x50f849);}for(const _0x386b65 of _0x4c32d1){const _0x3626bd=_0x5f5a77['has'](_0x386b65)&&!_0x5f5a77['get'](_0x386b65)['isAttached'];let _0x5592df=_0x3626bd?_0x174451['length']-0x1:0x0;const _0x373434=_0x3626bd?-0x1:0x1;for(;_0x174451[_0x5592df];){const _0xded708=_0x174451[_0x5592df];if(_0xded708['diffData'][_0x386b65]){const _0x555f19=_0x3626bd?_0xded708['diffData'][_0x386b65]['attributesBefore']:_0xded708['diffData'][_0x386b65]['attributesAfter'];_0x569d30['attributes'][_0x386b65]=_0x555f19?_0x25c995(_0x555f19):{};break;}_0x5592df+=_0x373434;}}for(const _0x216f91 of _0x174451){_0x216f91['model']={};for(const _0x597d31 of _0x216f91['authors'])_0x17eb88['set'](_0x597d31['id'],_0x597d31);for(const _0x8def27 of _0x4c32d1){const _0x37fd15=_0x216f91['diffData'][_0x8def27]?_0x216f91['diffData'][_0x8def27]['insertions']:'[]',_0x5d830f=_0x216f91['diffData'][_0x8def27]?_0x216f91['diffData'][_0x8def27]['deletions']:'[]';_0x216f91['model'][_0x8def27]={'insertions':this['_utils']['_makeModelFromViewString'](_0x37fd15),'deletions':this['_utils']['_makeModelFromViewString'](_0x5d830f)};}}for(const _0x51bcbb of _0x4c32d1){let _0x52044e=null,_0x2d6bbc=0x0;const _0x279280=new Map(Array['from'](_0x46052c['model'][_0x51bcbb]['insertions']['markers'])['filter'](([_0x32f771])=>!_0x32f771['startsWith']('revision:')));let _0x41c4be=0x0;for(const _0x54f702 of _0x174451){const _0x1a8f65=this['_makeTape'](_0x54f702['model'][_0x51bcbb]['insertions']);_0x54f702==_0x46052c?(_0x52044e=_0x1a8f65,_0x2d6bbc=_0x52044e['length'],_0x52044e['forEach'](_0x4a12a6=>{_0x4a12a6['id']=_0x41c4be++;}),this['_processTape'](_0x52044e)):this['_markInsertions'](_0x52044e,_0x1a8f65);const _0x366672=_0x52044e['filter'](_0x2e3c3b=>!_0x2e3c3b['isAdded'])['map'](_0x14a510=>_0x14a510['id']);let _0x338849=0x0;const _0x3fafc3=this['_makeTape'](_0x54f702['model'][_0x51bcbb]['deletions']);_0x3fafc3['forEach'](_0x1aab1c=>{_0x1aab1c['isRemoved']?_0x1aab1c['id']=_0x2d6bbc++:_0x1aab1c['id']=_0x366672[_0x338849++];}),this['_processTape'](_0x3fafc3),this['_setDistance'](_0x52044e,'isAdded'),this['_setDistance'](_0x3fafc3,'isRemoved'),_0x54f702==_0x46052c&&this['_markMarkers'](_0x52044e,_0x279280),_0x52044e=this['_joinTapes'](_0x52044e,_0x3fafc3),this['_refreshStartEndIndex'](_0x52044e),this['_setDistance'](_0x52044e,'isRemoved');}_0x52044e=_0x52044e['filter'](_0x254598=>!(_0x254598['isAdded']&&_0x254598['isRemoved']));const _0xfe8330=new Map(_0x44d5c2['model'][_0x51bcbb]['deletions']['markers']),_0x10efb2=new Set(_0x279280['keys']());for(const _0x14a15e of _0xfe8330['keys']())_0x10efb2['delete'](_0x14a15e);this['_markSuggestions'](_0x52044e,_0x10efb2),this['_fixObsoleteTags'](_0x52044e),_0x52044e=this['_removeMissingPairs'](_0x52044e),_0x52044e=this['_markMismatchedRemovedTags'](_0x52044e),_0x52044e=this['_removeUnsupportedChanges'](_0x52044e);const {root:_0x2d1eb7,changes:_0x409eef}=this['_makeModelFromTape'](_0x52044e,_0x17eb88,_0x51bcbb);_0x569d30['model'][_0x51bcbb]=_0x2d1eb7;const _0x25baf9=_0x5f5a77['get'](_0x51bcbb);if(_0x25baf9){const _0x48bae6=_0x17eb88['get'](_0x25baf9['userId']),_0x208a02=new r({'author':_0x48bae6,'type':_0x25baf9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x51bcbb});_0x409eef['unshift'](_0x208a02),_0x569d30['attributes'][_0x51bcbb]['revisionHistoryAttachChange']=_0x208a02['id'];}_0x569d30['changes']=_0x569d30['changes']['concat'](_0x409eef);}return _0x569d30;}['_markMarkers'](_0x175951,_0x3b2d6a){for(let _0x309841=0x0;_0x309841<_0x175951['length'];_0x309841++)for(const [_0x245ced,_0x690b02]of _0x3b2d6a)!_0x690b02['isCollapsed']&&_0x690b02['start']['isEqual'](_0x175951[_0x309841]['previousPosition'])&&_0x175951[_0x309841]['markersStart']['push'](_0x245ced),_0x690b02['end']['isEqual'](_0x175951[_0x309841]['nextPosition'])&&_0x175951[_0x309841]['markersEnd']['push'](_0x245ced);}['_joinTapes'](_0x52cbb4,_0x27e696){let _0x1a0c9e=[],_0x261f6e=0x0,_0x537444=0x0;for(;_0x261f6e<_0x52cbb4['length']||_0x537444<_0x27e696['length'];){const _0x4316e9=_0x52cbb4[_0x261f6e]||{},_0x5607af=_0x27e696[_0x537444]||{};if(_0x4316e9['id']==_0x5607af['id'])_0x261f6e++,_0x537444++,_0x1a0c9e['push'](_0x4316e9);else{if(_0x5607af['isRemoved']&&_0x4316e9['isAdded']){const {commonTape:_0x51d01c,iEnd:_0x2376b8,jEnd:_0x4d9671}=this['_threeWayMerge'](_0x52cbb4,_0x261f6e,_0x27e696,_0x537444);_0x1a0c9e=_0x1a0c9e['concat'](_0x51d01c),_0x261f6e=_0x2376b8,_0x537444=_0x4d9671;}else _0x5607af['isRemoved']?(_0x537444++,_0x1a0c9e['push'](_0x5607af)):(_0x261f6e++,_0x1a0c9e['push'](_0x4316e9));}}return _0x1a0c9e;}['_markSuggestions'](_0x2e2369,_0x198ba7){const _0x3e1470=[];for(let _0x3ccf89=0x0;_0x3ccf89<_0x2e2369['length'];_0x3ccf89++){for(let _0x3391b0=0x0;_0x3391b0<_0x2e2369[_0x3ccf89]['markersStart']['length'];_0x3391b0++){const _0x2a2bb8=_0x2e2369[_0x3ccf89]['markersStart'][_0x3391b0];if(!_0x198ba7['has'](_0x2a2bb8))continue;const {group:_0x449865,type:_0x959440,authorId:_0x4e951f}=_0x8d6776(_0x2a2bb8);'revision-suggestion'!=_0x449865||'insertion'!=_0x959440&&'deletion'!=_0x959440||(_0x3e1470['unshift']({'type':_0x959440,'name':_0x2a2bb8,'userId':_0x4e951f}),_0x2e2369[_0x3ccf89]['markersStart']['splice'](_0x3391b0,0x1),_0x3391b0--);}_0x25e76d(_0x2e2369[_0x3ccf89]);for(let _0xce2bce=0x0;_0xce2bce<_0x2e2369[_0x3ccf89]['markersEnd']['length'];_0xce2bce++){const _0x137c0f=_0x2e2369[_0x3ccf89]['markersEnd'][_0xce2bce];if(!_0x198ba7['has'](_0x137c0f))continue;const {group:_0x4eb838,type:_0x1d4cf0}=_0x8d6776(_0x137c0f);if('revision-suggestion'!=_0x4eb838||'insertion'!=_0x1d4cf0&&'deletion'!=_0x1d4cf0)continue;_0x2e2369[_0x3ccf89]['markersEnd']['splice'](_0xce2bce,0x1),_0xce2bce--;const _0x1cf932=_0x3e1470['findIndex'](_0xbe8092=>_0xbe8092['name']==_0x137c0f);_0x1cf932>-0x1&&_0x3e1470['splice'](_0x1cf932,0x1);}}function _0x8d6776(_0x595bad){const _0x217b93=_0x595bad['split'](':');return{'group':_0x217b93[0x0],'type':_0x217b93[0x1],'subType':_0x217b93['length']>=0x5?_0x217b93[0x2]:null,'id':_0x217b93['length']<0x5?_0x217b93[0x2]:_0x217b93[0x3],'authorId':_0x217b93['length']<0x5?_0x217b93[0x3]:_0x217b93[0x4],'markerCount':0x6==_0x217b93['length']?_0x217b93[0x5]:null};}function _0x25e76d(_0x264148){for(let _0x2929cd=0x0;_0x2929cd<_0x3e1470['length'];_0x2929cd++){if(_0x264148['isAdded']&&'insertion'==_0x3e1470[_0x2929cd]['type'])return _0x264148['isAddSuggestion']=_0x3e1470[_0x2929cd],void delete _0x264148['isAdded'];if(!_0x264148['isAdded']&&!_0x264148['isRemoved']&&'deletion'==_0x3e1470[_0x2929cd]['type'])return void(_0x264148['isRemoveSuggestion']=_0x3e1470[_0x2929cd]);}}}['_setDistance'](_0x2e3f78,_0x27aad1){let _0xc3be9c=0x0,_0x13d4f0=!0x1;const _0x279b08=new Map();for(const _0x381e96 of _0x2e3f78)_0x381e96[_0x27aad1]?_0x13d4f0&&(_0xc3be9c++,_0x13d4f0=!0x1):(_0xc3be9c++,_0x13d4f0=!0x0),_0x279b08['set'](_0x381e96['id'],_0xc3be9c);for(let _0x460fd6=0x0;_0x460fd6<_0x2e3f78['length'];_0x460fd6++){if('isRemoved'==_0x27aad1&&_0x2e3f78[_0x460fd6]['isAdded']||'isAdded'==_0x27aad1&&_0x2e3f78[_0x460fd6]['isRemoved'])continue;if('text'==_0x2e3f78[_0x460fd6]['type']){_0x2e3f78[_0x460fd6]['distance']=0x0;continue;}const _0x370a27=_0x279b08['get'](_0x2e3f78[_0x460fd6]['pairId']),_0x3f1cbf=_0x279b08['get'](_0x2e3f78[_0x460fd6]['id']);_0x2e3f78[_0x460fd6]['distance']=_0x370a27-_0x3f1cbf;}}['_getRevisionsRange'](_0x5f5dc6,_0x1164f9,_0x1e0295=!0x1){const _0x2cb1a9=[];let _0x1a6813=this['repository']['getIndex'](_0x5f5dc6),_0x2d3e4d=this['repository']['getIndex'](_0x1164f9);for(-0x1==_0x2d3e4d&&(_0x2d3e4d=this['repository']['_revisions']['length'],_0x1e0295=!0x1);_0x1a6813<_0x2d3e4d;)_0x2cb1a9['push'](this['repository']['getRevision'](_0x1a6813)),_0x1a6813++;return _0x1e0295&&_0x2cb1a9['push'](this['repository']['getRevision'](_0x1a6813)),_0x2cb1a9;}['_threeWayMerge'](_0xdef9f6,_0x4225e3,_0x2fac45,_0x4ca110){const _0x1480c3=this['editor']['model']['schema'];let _0x29f207=_0x4225e3;for(;_0xdef9f6[_0x29f207]&&_0xdef9f6[_0x29f207]['isAdded'];)_0x29f207++;let _0x371d05=_0x4ca110;for(;_0x2fac45[_0x371d05]&&_0x2fac45[_0x371d05]['isRemoved'];)_0x371d05++;_0x6faf4(_0xdef9f6,_0x4225e3,_0x29f207),_0x6faf4(_0x2fac45,_0x4ca110,_0x371d05);const _0x5ca918=_0x2fac45['slice'](_0x4ca110,_0x371d05)['concat'](_0xdef9f6['slice'](_0x4225e3,_0x29f207));return _0x5ca918['sort']((_0x5b5bae,_0x47d3d6)=>_0x5b5bae['side']!=_0x47d3d6['side']?_0x5b5bae['side']-_0x47d3d6['side']:_0x5b5bae['level']!=_0x47d3d6['level']?_0x5b5bae['level']-_0x47d3d6['level']:_0x5b5bae['distance']!=_0x47d3d6['distance']?_0x47d3d6['distance']-_0x5b5bae['distance']:!!_0x5b5bae['isAdded']!=!!_0x47d3d6['isAdded']?-0x1==_0x5b5bae['side']||0x0==_0x5b5bae['side']?_0x5b5bae['isAdded']?-0x1:0x1:_0x5b5bae['isAdded']?0x1:-0x1:_0x5b5bae['index']-_0x47d3d6['index']),{'commonTape':_0x5ca918,'iEnd':_0x29f207,'jEnd':_0x371d05};function _0x6faf4(_0x54ed29,_0x2fbc66,_0x5ef6c7){let _0xba47b=-0x1,_0x57e9db=Number['POSITIVE_INFINITY'],_0x1f6ac0=!0x0;for(let _0x51ad29=_0x2fbc66;_0x51ad29<_0x5ef6c7;_0x51ad29++)if(_0x1480c3['isInline'](_0x54ed29[_0x51ad29]['item'])||(_0x1f6ac0=!0x1),_0x54ed29[_0x51ad29]['item']['startIndex']<_0x2fbc66&&(_0xba47b=_0x51ad29),_0x54ed29[_0x51ad29]['item']['endIndex']>=_0x5ef6c7){_0x57e9db=_0x51ad29;break;}_0x1f6ac0&&(_0xba47b=_0x5ef6c7-0x1);for(let _0xf0f2b6=_0x2fbc66;_0xf0f2b6<_0x5ef6c7;_0xf0f2b6++)_0x54ed29[_0xf0f2b6]['side']=_0xf0f2b6<=_0xba47b?-0x1:_0xf0f2b6<_0x57e9db?0x0:0x1,_0x54ed29[_0xf0f2b6]['index']=_0xf0f2b6;let _0x526fa8=0x0;for(let _0x3922b7=_0x2fbc66;_0x3922b7<=_0xba47b;_0x3922b7++)0x0==_0x54ed29[_0x3922b7]['distance']?_0x54ed29[_0x3922b7]['level']=_0x526fa8:(_0x526fa8++,_0x54ed29[_0x3922b7]['level']=_0x526fa8,_0x526fa8++);for(let _0x989a4=_0x2fbc66;_0x989a4<_0x5ef6c7;_0x989a4++)0x0==_0x54ed29[_0x989a4]['side']&&(_0x54ed29[_0x989a4]['level']=_0x526fa8);_0x526fa8=0x0;for(let _0x416e80=_0x5ef6c7-0x1;_0x416e80>=_0x57e9db;_0x416e80--)0x0==_0x54ed29[_0x416e80]['distance']?_0x54ed29[_0x416e80]['level']=_0x526fa8:(_0x526fa8--,_0x54ed29[_0x416e80]['level']=_0x526fa8,_0x526fa8--);}}['_fixObsoleteTags'](_0x5c0dab){const _0x2fe606=new Map(),_0x463155=this['editor']['model']['schema'];for(let _0x4036c9=0x1;_0x4036c9<_0x5c0dab['length'];_0x4036c9++){let _0xf7173e,_0x483493,_0x2b76d8;const _0x29822f=_0x5c0dab[_0x4036c9],_0x34ca7a=_0x5c0dab[_0x4036c9-0x1];if('text'==_0x29822f['type'])continue;if(_0x29822f['type']!=_0x34ca7a['type'])continue;if(!_0x463155['isBlock'](_0x34ca7a['item'])||_0x463155['isLimit'](_0x34ca7a['item']))continue;if(!_0x463155['isBlock'](_0x29822f['item'])||_0x463155['isLimit'](_0x29822f['item']))continue;if((_0x5c0dab[_0x4036c9]['isAdded']||_0x5c0dab[_0x4036c9]['isAddSuggestion'])&&_0x5c0dab[_0x4036c9-0x1]['isRemoved'])_0xf7173e=_0x5c0dab[_0x4036c9],_0x483493=_0x5c0dab[_0x4036c9-0x1],_0x2b76d8=_0x4036c9-0x1;else{if(!_0x5c0dab[_0x4036c9]['isRemoved']||!_0x5c0dab[_0x4036c9-0x1]['isAdded']&&!_0x5c0dab[_0x4036c9-0x1]['isAddSuggestion'])continue;_0xf7173e=_0x5c0dab[_0x4036c9-0x1],_0x483493=_0x5c0dab[_0x4036c9],_0x2b76d8=_0x4036c9;}const _0xf2bc27=_0xf7173e['level']==_0x483493['level'],_0x905b52=Math['abs'](_0xf7173e['level'])<Math['abs'](_0x483493['level'])&&0x0==_0x483493['distance'];(_0xf2bc27||_0x905b52)&&(_0x2fe606['set'](_0x483493['id'],_0xf7173e['id']),_0x5c0dab['splice'](_0x2b76d8,0x1),_0x4036c9--,_0xf7173e['isAdded']=!0x1);}for(let _0x101115=0x0;_0x101115<_0x5c0dab['length'];_0x101115++)_0x2fe606['has'](_0x5c0dab[_0x101115]['pairId'])&&(_0x5c0dab[_0x101115]['pairId']=_0x2fe606['get'](_0x5c0dab[_0x101115]['pairId']));}['_removeMissingPairs'](_0x40595e){const _0x22c3cf=new Set(_0x40595e['map'](_0x3a933c=>_0x3a933c['id']));for(let _0x46a835=0x0;_0x46a835<_0x40595e['length'];_0x46a835++)_0x22c3cf['has'](_0x40595e[_0x46a835]['pairId'])||0x0==_0x40595e[_0x46a835]['distance']||(_0x40595e[_0x46a835]['isIncorrect']=!0x0);return _0x40595e['filter'](_0x4c8193=>!_0x4c8193['isIncorrect']);}['_markMismatchedRemovedTags'](_0x335b92){const _0x151e88=new Set();for(let _0x55a7d0=0x0;_0x55a7d0<_0x335b92['length'];_0x55a7d0++){if(_0x151e88['has'](_0x335b92[_0x55a7d0]['id'])&&_0x335b92[_0x55a7d0]['isRemoved']&&(_0x335b92[_0x55a7d0]['isIncorrect']=!0x0),_0x335b92[_0x55a7d0]['isIncorrect'])continue;if(0x0==_0x335b92[_0x55a7d0]['distance'])continue;if('elementStart'!=_0x335b92[_0x55a7d0]['type'])continue;if(null==_0x335b92[_0x55a7d0]['pairId'])continue;let _0x1e8664=_0x55a7d0+0x1,_0x4c86e2=0x0;for(;_0x335b92[_0x1e8664]['id']!=_0x335b92[_0x55a7d0]['pairId'];)'elementStart'==_0x335b92[_0x1e8664]['type']?_0x4c86e2++:'elementEnd'==_0x335b92[_0x1e8664]['type']&&_0x4c86e2--,_0x1e8664++;if(0x0!=_0x4c86e2){if(_0x335b92[_0x55a7d0]['isRemoved'])_0x335b92[_0x55a7d0]['isIncorrect']=!0x0;else{for(;_0x1e8664!=_0x55a7d0;)_0x335b92[_0x1e8664]['isRemoved']&&0x0!=_0x335b92[_0x1e8664]['distance']&&(_0x335b92[_0x1e8664]['isIncorrect']=!0x0,_0x151e88['add'](_0x335b92[_0x1e8664]['pairId'])),_0x1e8664--;}}}return _0x335b92['filter'](_0x11eec9=>!_0x11eec9['isIncorrect']);}['_removeUnsupportedChanges'](_0x132981){const _0x5ad288=this['editor']['model']['schema'];for(let _0x2a6267=0x0;_0x2a6267<_0x132981['length'];_0x2a6267++){if(!(_0x132981[_0x2a6267]['isAdded']||_0x132981[_0x2a6267]['isAddSuggestion']||_0x132981[_0x2a6267]['isRemoved']||_0x132981[_0x2a6267]['isRemoveSuggestion']))continue;if(0x0==_0x132981[_0x2a6267]['distance'])continue;const _0x327a47=_0x132981[_0x2a6267]['item'];_0x5ad288['isBlock'](_0x327a47)||_0x5ad288['isLimit'](_0x327a47)||(_0x132981[_0x2a6267]['isAdded']&&delete _0x132981[_0x2a6267]['isAdded'],_0x132981[_0x2a6267]['isAddSuggestion']&&delete _0x132981[_0x2a6267]['isAddSuggestion'],_0x132981[_0x2a6267]['isRemoveSuggestion']&&delete _0x132981[_0x2a6267]['isRemoveSuggestion'],_0x132981[_0x2a6267]['isRemoved']&&(_0x132981[_0x2a6267]['isIncorrect']=!0x0));}return _0x132981['filter'](_0x3cb6ad=>!_0x3cb6ad['isIncorrect']);}['_makeModelFromTape'](_0x4a118c,_0x2cab0a,_0x26ee84){const _0x30aba6=new vt(),_0x546c22=[],_0x5bb673=new Map(),_0x3ce2c7=this['editor']['model'],_0x189feb=_0x3ce2c7['schema'],_0x1720fb=[_0x30aba6],_0x25e388={},_0x4150f9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xe706d3=null;const _0x34cac6=[0x0];for(let _0x47bcec=0x0;_0x47bcec<_0x4a118c['length'];_0x47bcec++)if('elementStart'===_0x4a118c[_0x47bcec]['type']){_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6);const _0x5459e3=new ut(_0x4a118c[_0x47bcec]['item']['name'],_0x4a118c[_0x47bcec]['item']['getAttributes']());_0x1720fb[0x0]['_appendChild'](_0x5459e3),_0x34cac6['push'](0x0),_0x1720fb['unshift'](_0x5459e3),_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6);}else'elementEnd'===_0x4a118c[_0x47bcec]['type']?(_0x1720fb['shift'](),_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6),_0x34cac6['pop'](),_0x34cac6[_0x34cac6['length']-0x1]++,_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6)):(_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6),_0xe706d3?_0xe706d3['_data']+=_0x4a118c[_0x47bcec]['item']['data']:_0xe706d3=new gt(_0x4a118c[_0x47bcec]['item']['data'],_0x4a118c[_0x47bcec]['item']['getAttributes']()),_0x4a118c[_0x47bcec+0x1]&&'text'===_0x4a118c[_0x47bcec+0x1]['type']&&_0x34df15(_0xe706d3,_0x4a118c[_0x47bcec+0x1]['item'])||(_0x1720fb[0x0]['_appendChild'](_0xe706d3),_0xe706d3=null),_0x34cac6[_0x34cac6['length']-0x1]+=_0x4a118c[_0x47bcec]['item']['offsetSize'],_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6));for(let _0x43bd6a=0x0;_0x43bd6a<_0x4a118c['length'];_0x43bd6a++){const _0x2b2fd9=_0x4a118c[_0x43bd6a]['previousPosition'],_0x22006b=_0x4a118c[_0x43bd6a]['nextPosition'];for(const _0x47f61d of _0x4a118c[_0x43bd6a]['markersStart'])_0x5bb673['set'](_0x47f61d,{'start':_0x2b2fd9,'end':null});_0x380397('isRemoveSuggestion',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isAddSuggestion',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isRemoved',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isAdded',_0x43bd6a,_0x2b2fd9,_0x22006b);for(const _0x422179 of _0x4a118c[_0x43bd6a]['markersEnd']){const _0x12702f=_0x5bb673['get'](_0x422179);_0x12702f?_0x12702f['end']=_0x22006b:_0x5bb673['set'](_0x422179,{'start':_0x22006b,'end':_0x22006b});}}for(const [_0x50f586,_0x2e3949]of _0x5bb673){const _0x2d7f9b=this['editor']['model']['createRange'](_0x2e3949['start'],_0x2e3949['end']);_0x30aba6['markers']['set'](_0x50f586,_0x2d7f9b);}return _0x546c22['sort']((_0x2d81d9,_0x5a126f)=>{const _0x528a5e=_0x30aba6['markers']['get']('revision:'+_0x2d81d9['id']),_0x3e7beb=_0x30aba6['markers']['get']('revision:'+_0x5a126f['id']);return _0x528a5e['start']['isBefore'](_0x3e7beb['start'])?-0x1:_0x528a5e['start']['isAfter'](_0x3e7beb['start'])?0x1:_0x528a5e['end']['isBefore'](_0x3e7beb['end'])?-0x1:_0x528a5e['end']['isAfter'](_0x3e7beb['end'])?0x1:'add'===_0x2d81d9['type']?-0x1:0x1;}),{'root':_0x30aba6,'changes':_0x546c22};function _0x380397(_0x8e8a34,_0x24267c,_0x44b92e,_0x512336){const _0x529406=!!_0x4a118c[_0x24267c][_0x8e8a34],_0x17c700=_0x529406?_0x4a118c[_0x24267c][_0x8e8a34]['userId']:null,_0x154c97=_0x24267c===_0x4a118c['length']-0x1,_0x192811=_0x4150f9[_0x8e8a34][0x0],_0x34def0=_0x189feb['isObject'](_0x4a118c[_0x24267c]['item']);!_0x25e388[_0x8e8a34]&&_0x529406?_0x25e388[_0x8e8a34]={'start':_0x44b92e,'tapeItem':_0x4a118c[_0x24267c],'userId':_0x17c700,'type':_0x8e8a34}:_0x25e388[_0x8e8a34]&&!_0x529406?(_0x25e388[_0x8e8a34]['end']=_0x44b92e,_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]=null):_0x25e388[_0x8e8a34]&&_0x529406&&_0x25e388[_0x8e8a34]['userId']!==_0x17c700&&(_0x25e388[_0x8e8a34]['end']=_0x44b92e,_0x192811&&_0x192811['userId']===_0x25e388[_0x8e8a34]['userId']||_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]={'start':_0x44b92e,'tapeItem':_0x4a118c[_0x24267c],'userId':_0x17c700,'type':_0x8e8a34}),_0x25e388[_0x8e8a34]&&_0x34def0&&('elementStart'!==_0x4a118c[_0x24267c]['type']||_0x192811&&_0x192811['userId']===_0x17c700||_0x4150f9[_0x8e8a34]['unshift']({'userId':_0x17c700,'object':_0x4a118c[_0x24267c]['item'],'change':_0x25e388[_0x8e8a34]}),'elementEnd'===_0x4a118c[_0x24267c]['type']&&_0x192811&&_0x192811['object']===_0x4a118c[_0x24267c]['item']&&(_0x4150f9[_0x8e8a34]['shift'](),_0x25e388[_0x8e8a34]=_0x192811['change'])),_0x25e388[_0x8e8a34]&&_0x154c97&&(_0x25e388[_0x8e8a34]['end']=_0x512336,_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]=null);}function _0x2114bf({start:_0x22bae4,end:_0x4ac3ba,tapeItem:_0x3b16c5,userId:_0x2cf8ad,type:_0x42a602}){const _0x2e34e2=_0x3b16c5['item'],_0x529e95=_0x3ce2c7['schema']['isBlock'](_0x2e34e2)&&!_0x3ce2c7['schema']['isLimit'](_0x2e34e2),_0x504938=_0x22bae4['nodeAfter']==_0x4ac3ba['parent']&&_0x4ac3ba['isAtStart'];if(_0x529e95&&_0x504938)return;const _0x4ad0ba=_0x3ce2c7['createRange'](_0x22bae4,_0x4ac3ba),_0x4c0c3d=_0x2cab0a['get'](_0x2cf8ad),_0x4e1177=new r({'author':_0x4c0c3d,'type':'isAdded'==_0x42a602||'isAddSuggestion'==_0x42a602?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x42a602||'isRemoveSuggestion'==_0x42a602},'createdAt':new Date(),'rootName':_0x26ee84});_0x546c22['push'](_0x4e1177),_0x30aba6['markers']['set']('revision:'+_0x4e1177['id'],_0x4ad0ba);}function _0x34df15(_0x3339df,_0x330719){const _0x553e27=_0x3339df['getAttributes'](),_0x421b56=_0x330719['getAttributes']();for(const _0x2fdc11 of _0x553e27){if(_0x2fdc11[0x1]!==_0x330719['getAttribute'](_0x2fdc11[0x0]))return!0x1;_0x421b56['next']();}return _0x421b56['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x253e3b=>{const _0x1338ef=_0x253e3b['markerName']['split'](':')[0x1],_0xd88bf5=this['_getChangeFromId'](_0x1338ef);if(!_0xd88bf5)return null;const _0x415ca9='add'==_0xd88bf5['type']?'insertion':'deletion',_0x4e6f96=['ck-suggestion-marker','ck-suggestion-marker-'+_0x415ca9];return _0xd88bf5['data']['isSuggestion']&&_0x4e6f96['push']('ck-suggestion-marker-'+_0x415ca9+'-new'),this['activeChange']==_0xd88bf5&&_0x4e6f96['push']('ck-suggestion-marker--active'),{'classes':_0x4e6f96,'attributes':{'data-change-id':_0x1338ef}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x49482c=>{_0x49482c['on']('element:pre',(_0x3a98e5,_0x376003,_0x3f8d9a)=>{const _0x12fb35=_0x376003['viewItem']['getChild'](0x0);if(!_0x12fb35||!_0x12fb35['is']('element','code'))return;if(!_0x3f8d9a['consumable']['consume'](_0x12fb35,{'attributes':['vid_start','vid_end']}))return;const _0x1a8164=_0x376003['modelRange']['start']['nodeAfter'];_0x3f8d9a['writer']['setAttribute']('vid_start',_0x12fb35['getAttribute']('vid_start'),_0x1a8164),_0x3f8d9a['writer']['setAttribute']('vid_end',_0x12fb35['getAttribute']('vid_end'),_0x1a8164);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x289e63=>{_0x289e63['on']('element',(_0x30d5d1,_0x11db2d,_0x4e1c78)=>{if(!_0x4e1c78['consumable']['consume'](_0x11db2d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x11db2d['modelRange']['isCollapsed'])return;const _0x1017dc=_0x11db2d['modelRange']['start']['nodeAfter'];_0x1017dc['hasAttribute']('vid_start')||_0x1017dc['hasAttribute']('vid')||(_0x4e1c78['writer']['setAttribute']('vid_start',_0x11db2d['viewItem']['getAttribute']('vid_start'),_0x1017dc),_0x4e1c78['writer']['setAttribute']('vid_end',_0x11db2d['viewItem']['getAttribute']('vid_end'),_0x1017dc));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x123810=>_0x123810['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16cad1,[,_0x142b37])=>{['vid_start','vid_end','vid']['includes'](_0x142b37)&&(_0x16cad1['return']=!0x0,_0x16cad1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xdbdae5=>{_0xdbdae5['on']('attribute:vid',(_0x2e6096,_0x54f0f9,_0x10ecee)=>{if('\x20'!=_0x54f0f9['item']['data']||_0x54f0f9['item']['parent']['maxOffset']>0x1)return;if(!_0x10ecee['consumable']['consume'](_0x54f0f9['item'],_0x2e6096['name']))return;const _0x1f674d=_0x10ecee['writer'],_0x350c24=_0x10ecee['mapper']['toViewRange'](_0x54f0f9['range']);_0x1f674d['wrap'](_0x350c24,_0x1f674d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x153ffd){const _0x5d06eb=_0x153ffd['plugins']['get']('RevisionViewer');return(_0xfc29cb,_0x28f332,_0x4615a0)=>{const _0x5e2473=_0x28f332['markerName']['split'](':')[0x1],_0x32f487=_0x5d06eb['_getChangeFromId'](_0x5e2473);if(!_0x32f487)return null;const _0xb503ad='add'==_0x32f487['type']?'split':'merge';if(!_0x4615a0['consumable']['test'](_0x28f332['markerRange'],_0xfc29cb['name']))return;const _0x5cd5a8=_0x28f332['markerRange']['getWalker'](),_0x43020f=_0x28f332['markerRange']['start'],_0x2e52a7=_0x153ffd['model']['schema'];let _0x1b8f73=null,_0x287c8d=null,_0x31665f=!0x1,_0x73c3f6=!0x1;for(const _0x4a4b0c of _0x5cd5a8){const _0x4327da=_0x4a4b0c['item'];_0x31665f=_0x31665f||_0x2e52a7['isContent'](_0x4327da);const _0x3f399d=_0x4615a0['mapper']['toViewElement'](_0x4327da);if(_0x3f399d&&_0x3f399d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a4b0c['type']&&(_0x2e52a7['isBlock'](_0x4327da)&&!_0x2e52a7['isLimit'](_0x4327da)&&(_0x4327da['nextSibling']||_0x43020f['isAtEnd']?_0x1b8f73&&_0x1b8f73['parent']==_0x4327da||(_0x1b8f73=_0x4327da,_0x5b2296(_0x4a4b0c['previousPosition']),_0x73c3f6=!0x0):_0x287c8d=_0x287c8d||_0x4a4b0c['previousPosition']));}function _0x5b2296(_0x1abc6a){const _0x2dbde6=_0x4615a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb503ad}),_0xf38e9c=_0x4615a0['mapper']['toViewPosition'](_0x1abc6a);_0x32f487['data']['isSuggestion']&&_0x4615a0['writer']['addClass']('ck-suggestion-marker-'+_0xb503ad+'-new',_0x2dbde6),_0x5d06eb['activeChange']==_0x32f487&&_0x4615a0['writer']['addClass']('ck-suggestion-marker--active',_0x2dbde6),_0x4615a0['writer']['insert'](_0xf38e9c,_0x2dbde6),_0x4615a0['mapper']['bindElementToMarker'](_0x2dbde6,_0x28f332['markerName']);}_0x31665f||_0x73c3f6||!_0x287c8d||_0x5b2296(_0x287c8d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x15174c,_0x16a14c,_0x363a54)=>{const _0x108f5f=_0x363a54['mapper']['markerNameToElements'](_0x16a14c['markerName']);if(_0x108f5f){for(const _0x503142 of _0x108f5f)(_0x503142['hasClass']('ck-suggestion-marker-split')||_0x503142['hasClass']('ck-suggestion-marker-merge'))&&(_0x363a54['mapper']['unbindElementFromMarkerName'](_0x503142,_0x16a14c['markerName']),_0x363a54['writer']['remove'](_0x503142));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a2b58,_0x4892bb,_0x2c5d2f)=>{const _0x504202=_0x4892bb['markerName']['split'](':')[0x1],_0x42c0af=this['_getChangeFromId'](_0x504202);if(!_0x42c0af)return null;const _0x5fc982='add'==_0x42c0af['type']?'split':'merge';if(_0x2c5d2f['consumable']['test'](_0x4892bb['markerRange'],_0x1a2b58['name']))for(const _0x4e416d of _0x4892bb['markerRange']['getItems']()){if(!_0x4e416d['is']('element','softBreak'))continue;const _0xbc7042=_0x2c5d2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5fc982}),_0x185e73=_0x2c5d2f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e416d));_0x42c0af['data']['isSuggestion']&&_0x2c5d2f['writer']['addClass']('ck-suggestion-marker-'+_0x5fc982+'-new',_0xbc7042),this['activeChange']==_0x42c0af&&_0x2c5d2f['writer']['addClass']('ck-suggestion-marker--active',_0xbc7042),_0x2c5d2f['writer']['insert'](_0x185e73,_0xbc7042),_0x2c5d2f['mapper']['bindElementToMarker'](_0xbc7042,_0x4892bb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1caf1a=>{for(const _0x2cf07c of this['editor']['model']['document']['getRootNames']()){const _0x2aca9a=this['editor']['model']['document']['getRoot'](_0x2cf07c),_0x128998=this['editor']['editing']['view']['document']['getRoot'](_0x2cf07c);if(_0x128998){const _0x59ac6a=_0x2aca9a['getAttribute']('revisionHistoryAttachChange');if(_0x1caf1a['removeAttribute']('data-change-id',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root-add',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root-remove',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root--active',_0x128998),_0x59ac6a){const _0xbf9699=this['_getChangeFromId'](_0x59ac6a);if(!_0xbf9699)return null;_0x1caf1a['setAttribute']('data-change-id',_0x59ac6a,_0x128998),_0x1caf1a['addClass']('ck-revision-history-root-'+_0xbf9699['type'],_0x128998),this['activeChange']==_0xbf9699&&_0x1caf1a['addClass']('ck-revision-history-root--active',_0x128998);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3bc41b=>'revision-comment:'+_0x3bc41b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xdf1611=>'revision-suggestion:'+_0xdf1611,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x52beb7=>({'name':'suggestion:'+_0x52beb7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1b9b1f=>{const _0x1685b3=_0x1b9b1f['markerName']['split'](':')[0x1];return'insertion'!=_0x1685b3&&'deletion'!=_0x1685b3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1685b3]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x57fb81,_0x30effa,_0x34f326)=>{const _0x5277a6=_0x34f326['mapper']['markerNameToElements'](_0x30effa['markerName']);if(_0x5277a6){for(const _0x209dbc of _0x5277a6)_0x209dbc['is']('uiElement')&&(_0x34f326['mapper']['unbindElementFromMarkerName'](_0x209dbc,_0x30effa['markerName']),_0x34f326['writer']['remove'](_0x209dbc));}},{'priority':'high'});}['_getChangeFromId'](_0x2220eb){return this['_changeIdToChange']['get'](_0x2220eb);}['_getViewForChange'](_0x5429a6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5429a6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e0962,_0xe4f77c,_0x346c4f,_0x2f4619)=>{_0x2f4619&&this['_balloon']['remove'](_0x2f4619),_0x346c4f&&(this['_balloon']['add']({'view':_0x346c4f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2bf01c=this['editor']['editing'],_0x2a69d3=this['_getChangeFromId'](_0x346c4f['changeId']);let _0x5ba45a;if(_0x2a69d3['data']['isOnRoot']){const _0x46b9fd=_0x2bf01c['view']['getDomRoot'](_0x2a69d3['rootName']);_0x5ba45a=Array['from'](_0x46b9fd['getClientRects']());}else{const _0x279f07=this['editor']['model']['markers']['get']('revision:'+_0x346c4f['changeId']);_0x5ba45a=Array['from'](_0x2bf01c['mapper']['markerNameToElements'](_0x279f07['name']))['map'](_0x10b914=>_0x2bf01c['view']['domConverter']['mapViewToDom'](_0x10b914))['map'](_0x46a6cc=>Array['from'](_0x46a6cc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5ba45a[0x0];return _0x5ba45a['find'](_0x983814=>_0x983814['top']-0x3<=this['_activeViewTarget']['y']&&_0x983814['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x983814['left']-0x3<=this['_activeViewTarget']['x']&&_0x983814['right']+0x3>=this['_activeViewTarget']['x'])||_0x5ba45a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xecb74f,_0x99d789,_0x33a802,_0x1aa5e6)=>{this['activeView']=_0x33a802?this['_getViewForChange'](_0x33a802):null,this['editor']['model']['change'](()=>{const _0x1a1dfc=this['editor']['editing'];_0x1aa5e6&&(_0x1aa5e6['data']['isOnRoot']?_0x1a1dfc['view']['change'](_0x596388=>{_0x596388['removeClass']('ck-revision-history-root--active',_0x1a1dfc['view']['document']['getRoot'](_0x1aa5e6['rootName']));}):_0x1a1dfc['reconvertMarker']('revision:'+_0x1aa5e6['id'])),_0x33a802&&(_0x33a802['data']['isOnRoot']?_0x1a1dfc['view']['change'](_0x1fd2b0=>{_0x1fd2b0['addClass']('ck-revision-history-root--active',_0x1a1dfc['view']['document']['getRoot'](_0x33a802['rootName']));}):_0x1a1dfc['reconvertMarker']('revision:'+_0x33a802['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59634a,_0x573c8a)=>{if(this['activeChange'])return;const _0x518df7=this['_findChangeIdFromDomTarget'](_0x573c8a['target']),_0x357b7d=this['_changeIdToChange']['get'](_0x518df7);_0x357b7d?(this['_activeViewTarget']={'x':_0x573c8a['domEvent']['x'],'y':_0x573c8a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x357b7d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x135bc5,_0x2503ff)=>{const _0x760a80=this['_findChangeIdFromDomTarget'](_0x2503ff['target']),_0x5607e3=this['_changeIdToChange']['get'](_0x760a80);_0x5607e3?(this['_activeViewTarget']={'x':_0x2503ff['domEvent']['x'],'y':_0x2503ff['domEvent']['y']},_0x5607e3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5607e3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x584f50){do{const _0x3b1322=_0x584f50['getAttribute']('data-change-id');if(_0x3b1322)return _0x3b1322;_0x584f50=_0x584f50['parent'];}while(_0x584f50);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50d6c6=>{for(const _0x413a77 of this['editor']['model']['markers'])_0x50d6c6['removeMarker'](_0x413a77);});}}function X(_0x476962,_0x41432b){return(_0x189a40,_0x21bcf0,_0x16e814)=>{if(!_0x16e814['consumable']['test'](_0x21bcf0['markerRange'],_0x189a40['name']))return;const _0x253303=_0x21bcf0['markerRange']['getWalker'](),_0x536c75=_0x21bcf0['markerRange']['start'],_0x1d1149=_0x476962['model']['schema'];let _0x3f0fa5=null,_0x1fcdec=null,_0x53b069=!0x1,_0x597dde=!0x1;for(const _0x2ed082 of _0x253303){const _0x1f559d=_0x2ed082['item'];_0x53b069=_0x53b069||_0x1d1149['isContent'](_0x1f559d);const _0x14d91d=_0x16e814['mapper']['toViewElement'](_0x1f559d);if(_0x14d91d&&_0x14d91d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ed082['type']&&(_0x1d1149['isBlock'](_0x1f559d)&&!_0x1d1149['isLimit'](_0x1f559d)&&(_0x1f559d['nextSibling']||_0x536c75['isAtEnd']?_0x3f0fa5&&_0x3f0fa5['parent']==_0x1f559d||(_0x3f0fa5=_0x1f559d,_0x59cebd(_0x2ed082['previousPosition']),_0x597dde=!0x0):_0x1fcdec=_0x1fcdec||_0x2ed082['previousPosition']));}function _0x59cebd(_0x214af3){const _0x410fb9=_0x16e814['mapper']['toViewPosition'](_0x214af3),_0x2316c0=_0x16e814['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x41432b});_0x16e814['writer']['insert'](_0x410fb9,_0x2316c0),_0x16e814['mapper']['bindElementToMarker'](_0x2316c0,_0x21bcf0['markerName']);}_0x53b069||_0x597dde||!_0x1fcdec||_0x59cebd(_0x1fcdec);};}class mt extends _0x209300{constructor(_0x148142){super(_0x148142);const _0xaefba7=_0x148142['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0xaefba7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xaefba7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x18aba6=this['editor'],_0x2b1a91=_0x18aba6['plugins']['get'](m),_0x25d4f6=_0x2b1a91['isReady']?_0x2b1a91['diff']['newRevisionId']:null;_0x18aba6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x25d4f6);}['refresh'](){const {isReady:_0x225d48,isEnabled:_0x1c74c2,repository:_0x51662e,diff:_0x58b2d6}=this['editor']['plugins']['get'](m),_0x5dc396=_0x58b2d6&&_0x51662e['getLaterVisibleRevision'](_0x58b2d6['newRevisionId']);this['isEnabled']=_0x225d48&&_0x1c74c2&&Boolean(_0x5dc396);}}class wt extends _0x209300{['_step'];constructor(_0x29c5d4,{direction:_0x4662bf}){super(_0x29c5d4);const _0x262bc9=_0x29c5d4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4662bf?0x1:-0x1,this['listenTo'](_0x262bc9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x262bc9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x262bc9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1b423c=this['editor'],_0x22b18c=_0x1b423c['plugins']['get'](m),{isNavigationMode:_0x5b0976,currentChangeNumber:_0xc3c2aa}=_0x22b18c;let _0x53f1d8;if(_0x22b18c['activeChange']=_0x5b0976?_0x22b18c['diff']['changes']['get'](_0xc3c2aa+this['_step']):_0x22b18c['diff']['changes']['first'],_0x22b18c['activeChange']['data']['isOnRoot'])_0x53f1d8=_0x1b423c['editing']['view']['getDomRoot'](_0x22b18c['activeChange']['rootName']);else{const _0x39317d=_0x1b423c['model']['markers']['get']('revision:'+_0x22b18c['activeChange']['id']);_0x53f1d8=_0x1a9bee(_0x1b423c['editing'],_0x39317d);}_0x2b83d3({'target':_0x53f1d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x56bef2,currentChangeNumber:_0x464245,numberOfChanges:_0x1bb179,isReady:_0x4233e9,isEnabled:_0x26bff1}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x26bff1&&_0x4233e9&&_0x1bb179)&&(!_0x56bef2||(0x1===this['_step']?_0x464245<_0x1bb179-0x1:_0x464245>0x0));}}class li extends ts{constructor(_0x3a0239){super(_0x3a0239);const _0x242d7f=this['bindTemplate'],_0x186097=new te(_0x3a0239),_0xb922c7=new te(_0x3a0239);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',(_0x276e02,_0x39d3c9)=>_0x276e02&&_0x39d3c9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x485d4c,_0x4881ee,_0x1eddbd,_0x17a0ac)=>{if(!_0x485d4c)return g(_0x3a0239,'Loading...');if(!_0x1eddbd)return g(_0x3a0239,'No\x20changes');const _0xa7707a=g(_0x3a0239,'NUMBER_OF_CHANGES',_0x1eddbd);return _0x17a0ac?g(_0x3a0239,'X_OF_Y_CHANGES',[_0x4881ee+0x1,_0x1eddbd]):_0xa7707a;}),_0x186097['set']({'label':g(_0x3a0239,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x314266}),_0xb922c7['set']({'label':g(_0x3a0239,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1ae486}),_0x186097['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb922c7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x186097['on']('execute',()=>this['fire']('execute','backward')),_0xb922c7['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',_0x242d7f['if']('_isStatusLabelVisible','ck-hidden',_0x3e7539=>!_0x3e7539)]},'children':[{'text':_0x242d7f['to']('isNavigationMode',_0xf22d5c=>_0xf22d5c?g(_0x3a0239,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3a0239,'Total')+':\x20')}]},{'text':_0x242d7f['to']('_statusText')}]},new _0x49f084(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x186097,_0xb922c7]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x215f3d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37471e=this['editor']['editing']['view'];_0x37471e['change'](_0x4a1572=>{for(const _0x315402 of _0x37471e['document']['roots'])_0x4a1572['addClass'](le,_0x315402);});}['hide'](){const _0x5ee7db=this['editor']['editing']['view'];_0x5ee7db['change'](_0x453b54=>{for(const _0xe36358 of _0x5ee7db['document']['roots'])_0x453b54['removeClass'](le,_0xe36358);});}}class R extends _0x215f3d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x31d7e3=this['editor'],_0x5d474e=_0x31d7e3['plugins']['get'](m),_0x2badda=_0x31d7e3['plugins']['get'](ge);_0x31d7e3['ui']['componentFactory']['add']('exitToEditing',_0x15c24c=>{const _0x4cbd2f=new te(_0x15c24c);return _0x4cbd2f['set']({'label':g(_0x15c24c,'Back\x20to\x20editing'),'icon':_0x1a92ae,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4cbd2f,'execute',()=>{_0x31d7e3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4cbd2f;}),_0x31d7e3['ui']['componentFactory']['add']('restoreRevision',_0x5df51c=>{const _0x19d1e4=new te(_0x5df51c);return _0x19d1e4['set']({'label':g(_0x5df51c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x19d1e4['bind']('isEnabled')['to'](_0x31d7e3['commands']['get']('restoreRevision')),this['listenTo'](_0x19d1e4,'execute',()=>_0x31d7e3['execute']('restoreRevision')),_0x19d1e4;}),_0x31d7e3['ui']['componentFactory']['add']('changesNavigation',_0x4dcd74=>{const _0x27bf6c=new li(_0x4dcd74),_0x1c1e33=_0x31d7e3['commands']['get']('showPreviousChange'),_0x568bb3=_0x31d7e3['commands']['get']('showNextChange');return _0x27bf6c['bind']('isBackwardNavigationEnabled')['to'](_0x1c1e33,'isEnabled'),_0x27bf6c['bind']('isForwardNavigationEnabled')['to'](_0x568bb3,'isEnabled'),_0x27bf6c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5d474e),this['listenTo'](_0x27bf6c,'execute',(_0x5b48b6,_0x208e73)=>{_0x31d7e3['execute']('forward'===_0x208e73?'showNextChange':'showPreviousChange');}),_0x27bf6c;}),_0x2badda['show'](),_0x5d474e['on']('change:isReady',(_0x5a5883,_0x18bf31,_0x55f504)=>{_0x55f504?_0x2badda['hide']():_0x2badda['show']();});}}class at extends _0x53f8a9{['_resizeObserver']=null;constructor(_0x427673,_0x356113){super(_0x427673,_0x356113);const _0x327939=this['bindTemplate'];this['set']({'label':g(_0x427673,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x427673,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x327939['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4e3a4c=this['fieldView']['element'];this['_tooltipString']=_0x4e3a4c['scrollWidth']>_0x4e3a4c['clientWidth']&&_0x4e3a4c['value']||'';}}class oi extends ts{constructor(_0x56bc1d,_0xb43b6c,_0xf7cc27){super(_0x56bc1d);const _0x5afac8=new _0x4d07d2();_0x5afac8['set']({'content':_0xcd8008,'viewBox':'0\x200\x2011\x2010'});const _0x330a9b=['ck','ck-revision-history-sidebar__revision-author'];_0xf7cc27&&_0x330a9b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5347e7=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x56bc1d,_0xf7cc27?'Revision\x20creator':'Revision\x20author')},'children':[_0x5afac8,_0xb43b6c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x330a9b},'children':_0x5347e7});}}function ai(_0x41062a,_0xd318fb){const _0x5c291b=_0x41062a['bindTemplate'],_0x339987=_0x41062a['locale'],_0x2a579e=_0x41d57a(_0x339987);_0x2a579e['panelPosition']='sw';const _0x547932=function(_0x58c3f7,_0x32a392){const _0x5bc5a5=function(_0x36ba59,_0x1eef44){const _0x1c40b8=_0x36ba59['locale'],_0x4fe729={'Compare\x20against\x20selected':g(_0x1c40b8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1c40b8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1c40b8,'Restore\x20this\x20revision')};return _0x1eef44['map'](_0x13e099=>{const _0x66efd=_0x4fe729[_0x13e099['name']];return _0x66efd&&_0x66efd!==_0x13e099['name']&&(_0x13e099['name']=_0x66efd),_0x13e099;});}(_0x58c3f7,_0x32a392),_0x3bf32e=new _0x3b3f60();for(const _0xa58a08 of _0x5bc5a5){const _0x1573bc={'type':'button','model':new to({'label':_0xa58a08['name'],'class':_0xa58a08['class'],'withText':!0x0,'role':'menuitem','_action':_0xa58a08['action']})};_0x1573bc['model']['bind']('isEnabled')['to'](_0x58c3f7,'isActionsDropdownOpen',_0x70cb65=>'function'!=typeof _0xa58a08['isEnabled']||(!_0x70cb65||_0xa58a08['isEnabled'](_0x58c3f7))),_0x3bf32e['add'](_0x1573bc);}return _0x3bf32e;}(_0x41062a,_0xd318fb);return _0x41062a['bind']('isActionsDropdownOpen')['to'](_0x2a579e,'isOpen'),_0x2a579e['buttonView']['set']({'label':g(_0x339987,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57e1b8}),_0x2a579e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5c291b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5c291b['to'](_0x1b68d3=>_0x1b68d3['stopPropagation']())}}),_0x2a579e['on']('execute',_0xcc8977=>{_0x41062a['isReady']&&'function'==typeof _0xcc8977['source']['_action']&&_0xcc8977['source']['_action'](_0x41062a);}),_0x31792c(_0x2a579e,_0x547932,{'role':'menu'}),_0x2a579e['listenTo'](_0x41062a,'change:isActionsDropdownOpen',(_0x4c62a1,_0x4d98e4,_0x264dc0)=>{if(_0x264dc0)for(const _0x5207fd of _0x2a579e['listView']['items']){const _0x45b32d=_0x5207fd['children']['first'],_0x14b045=_0xd318fb['find'](_0x4d34cc=>_0x4d34cc['action']===_0x45b32d['_action'])['isVisible'];_0x5207fd['isVisible']=void 0x0===_0x14b045||_0x14b045(_0x41062a);}}),_0x2a579e;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3e9bdc(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ed471,_0x2c0a74,_0x5ec0a0,_0x1ae1ae){super(_0x5ed471);const _0xdf98cc=this['bindTemplate'],_0x57273b=function(_0x28fb6f,_0xa2fe69){const _0x18c250=Array['from'](_0xa2fe69['authors'])['filter'](_0xd350c3=>_0xd350c3!=_0xa2fe69['creator']);return _0xa2fe69['creator']&&_0x18c250['unshift'](_0xa2fe69['creator']),_0x18c250['map'](_0x4ac90d=>new oi(_0x28fb6f,_0x4ac90d,_0x4ac90d==_0xa2fe69['creator']));}(_0x5ed471,_0x2c0a74);this['id']=_0x2c0a74['id'],this['_revision']=_0x2c0a74,this['_requireRevisionName']=_0x1ae1ae,this['bind']('name','createdAt')['to'](_0x2c0a74),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x563934=>{return _0x5a6752=_0x5ed471['uiLanguage'],(_0x4f8c6e=_0x563934)['toLocaleDateString'](_0x5a6752,{'month':'long','day':'numeric'})+',\x20'+_0x4f8c6e['toLocaleTimeString'](_0x5a6752,{'hour':'numeric','minute':'numeric'});var _0x5a6752,_0x4f8c6e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5ed471,_0x33ff0f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4184b8=>_0x4184b8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x428c53,_0x250875)=>_0x428c53&&_0x250875),this['revisionActionsView']=_0x5ec0a0&&_0x5ec0a0['length']?ai(this,_0x5ec0a0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xdf98cc['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xdf98cc['if']('isEnabled','ck-disabled',_0x471127=>!_0x471127),_0xdf98cc['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xdf98cc['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xdf98cc['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':_0xdf98cc['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':_0x57273b}]},this['revisionActionsView']],'on':{'click':_0xdf98cc['to'](_0xb19bbf=>{_0xb19bbf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5d7f1d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5d7f1d,'change',()=>{this['_requireRevisionName']&&!_0x5d7f1d['value']||this['fire']('setName',{'id':this['id'],'name':_0x5d7f1d['value']}),_0x5d7f1d['value']||(_0x5d7f1d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x39d303,_0x3adcd5){const _0x1ed52b=_0x5e9815['fromJSDate'](_0x39d303)['setLocale'](_0x3adcd5),_0x27e8f7=_0x5e9815['local'](),_0x43c0ca=_0x27e8f7['minus']({'days':0x1})['startOf']('day');let _0x2c504f,_0x432f;return _0x1ed52b['hasSame'](_0x27e8f7,'day')?(_0x2c504f=_0x1ed52b['startOf']('day')['toJSDate'](),_0x432f=_0x1ed52b['toRelativeCalendar']()):_0x1ed52b['hasSame'](_0x43c0ca,'day')?(_0x2c504f=_0x43c0ca['toJSDate'](),_0x432f=_0x1ed52b['toRelativeCalendar']()):_0x1ed52b['hasSame'](_0x27e8f7,'week')?(_0x2c504f=_0x1ed52b['startOf']('week')['toJSDate'](),_0x432f=_0x1ed52b['weekdayLong']||''):_0x1ed52b['hasSame'](_0x27e8f7,'year')?(_0x2c504f=_0x1ed52b['startOf']('month')['toJSDate'](),_0x432f=_0x1ed52b['monthLong']||''):(_0x2c504f=_0x1ed52b['startOf']('year')['toJSDate'](),_0x432f=String(_0x1ed52b['year'])),{'startDate':_0x2c504f,'localizedPeriodName':_0x432f};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x494409,_0x5723a9,_0x37e194,_0x2385e2){super(_0x494409);const _0x40b105=ti(_0x5723a9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5723a9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x37e194,this['_requireRevisionName']=_0x2385e2,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':_0x40b105}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x177ecd){const _0x572b0d=new si(this['locale'],_0x177ecd,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x572b0d);}['removeRevision'](_0x377bda){const _0x54ce61=this['revisionViews']['find'](_0x2dba2f=>_0x2dba2f['id']===_0x377bda['id']);this['revisionViews']['remove'](_0x54ce61);}}class cs extends ts{constructor(_0x5079d2){super(_0x5079d2);const _0x53c341=new _0x4d07d2();_0x53c341['content']=_0x14d782,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x53c341,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5079d2,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x21ef0c,_0x211e17,_0x3423bf,_0x5731f0){super(_0x21ef0c);const _0x35e760=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x211e17,this['_revisionActions']=_0x3423bf,this['_requireRevisionName']=_0x5731f0,this['on']('select',(_0xa40c6d,_0x75f5c4)=>{this['fire']('revisionSelected',_0x75f5c4);}),this['on']('setName',(_0x931023,_0x2ba2fa)=>{this['fire']('revisionSetName',_0x2ba2fa);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x21ef0c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x35e760['if']('isEnabled','ck-disabled',_0x256c48=>!_0x256c48)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x6f397f of this['_revisions'])this['_addRevision'](_0x6f397f);this['_revisions']['on']('add',(_0x423801,_0x54de3e)=>{this['_addRevision'](_0x54de3e);}),this['_revisions']['on']('remove',(_0x48ca86,_0x521efc)=>{this['_removeRevision'](_0x521efc);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5cadef=>_0x5cadef['revisionViews']['map'](_0x12f123=>_0x12f123))['flat']();}['selectRevision'](_0x43d87c){for(const _0x2010e2 of this['revisionViews'])_0x43d87c&&_0x43d87c['id']===_0x2010e2['id']?_0x2010e2['select']():_0x2010e2['deselect']();}['highlightRevisions'](_0xd9ee2d){for(const _0xd9e50c of this['revisionViews'])_0xd9ee2d['some'](({id:_0x1e0bd7})=>_0x1e0bd7===_0xd9e50c['id'])?_0xd9e50c['highlight']():_0xd9e50c['unhighlight']();}['_addRevision'](_0x41fc11){const _0xd1673e=ti(_0x41fc11['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x204d4b=this['timePeriodViews']['get'](0x0);_0x204d4b&&_0x204d4b['startDate']['getTime']()===_0xd1673e['getTime']()||(_0x204d4b=new ei(this['locale'],_0xd1673e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x204d4b)),_0x204d4b['addRevision'](_0x41fc11);}['_removeRevision'](_0x360324){const _0x2343fe=ti(_0x360324['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2343fe)['removeRevision'](_0x360324);}['_getTimePeriodViewByStartDate'](_0x541d7f){return this['timePeriodViews']['find'](_0x11358c=>_0x11358c['startDate']['getTime']()===_0x541d7f['getTime']());}}class d extends _0x215f3d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x5aa471(_0x54efd4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x52bbea,_0x201140){super(_0x201140),this['sourceElement']=_0x52bbea,this['model']['document']['createRoot']();const _0x5797d5=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5797d5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x31552f,_0x3c2c45){const _0xab2e21=new this(_0x31552f,_0x3c2c45);return await _0xab2e21['initPlugins'](),await _0xab2e21['ui']['init'](_0x31552f),await _0xab2e21['data']['init'](_0xab2e21['config']['get']('initialData')||''),_0xab2e21['fire']('ready'),_0xab2e21;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x58bc6f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3079ff){function _0x5c5695(_0x47c872){return _0x47c872['map'](_0x17a700=>String['fromCharCode'](_0x17a700))['join']('');}super(_0x3079ff),this['result']='end',_0x3079ff[_0x5c5695([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c5695([0x76,0x69,0x65,0x77])][_0x5c5695([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c5695([0x61,0x75,0x74,0x6f]),_0x3079ff[_0x5c5695([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5c5695([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c5695([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5c5695([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5c5695([0x6f,0x6b])});}}class k extends _0x58bc6f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x181fdf){if(super(_0x181fdf),!this['editor']['config']['get']('revisionHistory'))throw new _0x43b617('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xeadb8d=>this['_showRevisionViewer']({..._0xeadb8d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5e154e=>this['_closeRevisionViewer'](_0x5e154e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x36952a=>this['_restoreRevision'](_0x36952a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5d7dd5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5d7dd5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4cafb0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4cafb0);}['getRevision'](_0x5769b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5769b3);}['getRevisions'](_0x35817c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35817c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x541e81=this['editor'],_0xe8915=_0x23feb7(_0x541e81,p),_0x49f357=_0x541e81['plugins']['get']('RevisionTracker'),_0x533307=_0x541e81['plugins']['get']('Users')['users'];return _0xe8915['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xe8915['lazyRoots'],(_0xe8915['plugins']['push'](yt,m,R,class extends _0x58bc6f{static get['requires'](){return[m,'Users'];}['init'](){const _0x10c469=this['editor']['plugins']['get']('Users');for(const _0x22d723 of _0x533307)_0x22d723['isAnonymous']||_0x10c469['getUser'](_0x22d723['id'])||_0x10c469['addUser'](_0x22d723);const _0x187960=_0x49f357['repository']['getRevisions']();let _0x6f26ad=null;const _0x29916b=this['editor']['plugins']['get']('RevisionViewer');_0x29916b['adapter']=_0x49f357['adapter'],_0x29916b['bind']('isEnabled')['to'](_0x49f357),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x541e81,'isReadOnly',_0x3c9f37=>!_0x3c9f37);for(const _0x1f9adf of _0x187960){const _0xd9175=null===_0x1f9adf['creator'];if(_0xd9175&&_0x1f9adf['toVersion']===_0x1f9adf['fromVersion'])continue;const _0x5170ee=_0x1f9adf['toJSON']();_0x29916b['addRevisionData'](_0x5170ee,(_0x2467ef,_0x3ec48b,_0x126cf0)=>{if(_0xd9175){if(_0x6f26ad)_0x6f26ad['_update'](_0x2467ef,_0x3ec48b);else{if(!_0x3ec48b){const _0x4afba2=_0x126cf0['toJSON']();_0x4afba2['id']=_0x11e8c2(),_0x49f357['saveRevision'](_0x4afba2,_0x126cf0['toVersion'])['then'](_0x5f1d6e=>{_0x6f26ad=_0x5f1d6e;});}}}else _0x1f9adf['_update'](_0x2467ef,_0x3ec48b);});}}},d),_0xe8915);}['_enhanceShowRevisionViewerCallback'](){const _0x8a3602=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2195a8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x28953d=this['editor']['plugins']['get']('Autosave');await _0x28953d['save']();}else await _0x2195a8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x56f514=this['editor']['plugins']['get']('Dialog');_0x56f514['isOpen']&&_0x56f514['hide']();}const _0x42db08=this['_getRevisionViewerEditorConfig']();return _0x8a3602(_0x42db08)['then'](_0x31a59e=>{return(this['_viewerEditor']=_0x31a59e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x31a59e);})['catch'](_0xb917b2=>(console['error'](_0xb917b2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4dd6a9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4dd6a9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4eb94d=this['editor']['plugins']['get']('Annotations');_0x4eb94d['refreshVisibility'](),_0x4eb94d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x16e0c8){const _0x1ade8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5838d3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x109dc0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x109dc0,_0x16e0c8)['then'](_0x43275c=>(_0x5838d3['style']['display']='block',_0x1ade8e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x43275c));}['_closeRevisionViewer'](_0x46d7ef){const _0x173a7e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x173a7e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46d7ef['destroy']();}async['_restoreRevision'](_0x1839ce){const _0x26af39=this['editor'],_0x15eae1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5dc907=_0x26af39['plugins']['get']('RevisionTracker'),_0x55f52a=_0x26af39['plugins']['get']('RevisionHistoryUtils'),_0x4d8dcb=_0x15eae1['repository']['getRevision'](_0x1839ce);let _0x30f613,_0x5f0345,_0x127cec;try{await _0x55f52a['loadRevisionData'](_0x4d8dcb,this['adapter']),_0x30f613=_0x55f52a['getRevisionDocumentData'](_0x4d8dcb),_0x5f0345=_0x55f52a['getRevisionRootsAttributes'](_0x4d8dcb);}catch(_0x20d0ab){return void console['error'](_0x20d0ab);}_0x26af39['model']['change'](_0x927239=>{for(const _0x2cd1bd of Array['from'](_0x26af39['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x927239['removeMarker'](_0x2cd1bd);}),_0x15eae1['isReady']=!0x1,_0x26af39['model']['enqueueChange'](_0x39239b=>{_0x39239b['setSelection'](null),_0x39239b['removeSelectionAttribute'](_0x26af39['model']['document']['selection']['getAttributeKeys']());const _0x37144f=Object['keys'](_0x30f613);for(const _0x2ad5bb of _0x26af39['model']['document']['roots'])'$graveyard'!=_0x2ad5bb['rootName']&&_0x2ad5bb['isAttached']()&&!_0x37144f['includes'](_0x2ad5bb['rootName'])&&_0x39239b['detachRoot'](_0x2ad5bb);for(const _0x54ff69 of _0x37144f){let _0x46cf05=_0x26af39['model']['document']['getRoot'](_0x54ff69);_0x46cf05&&_0x46cf05['isAttached']()||(_0x46cf05=_0x39239b['addRoot'](_0x54ff69));const _0x4b7c6f=_0x5f0345[_0x54ff69],_0x5e6502=Object['keys'](_0x4b7c6f),_0x2f1376=_0x30f613[_0x54ff69];for(const _0x14cc22 of _0x46cf05['getAttributeKeys']())_0x5e6502['includes'](_0x14cc22)||_0x39239b['removeAttribute'](_0x14cc22,_0x46cf05);for(const _0xd3995 of _0x5e6502)_0x39239b['setAttribute'](_0xd3995,_0x5f0345[_0x54ff69][_0xd3995],_0x46cf05);_0x39239b['remove'](_0x39239b['createRangeIn'](_0x46cf05)),_0x39239b['insert'](_0x26af39['data']['parse'](_0x2f1376,_0x46cf05),_0x46cf05,0x0);}});const _0x5f4c2b=g(_0x26af39['locale'],'Restored');if(_0x4d8dcb['name'])_0x127cec=-0x1==_0x4d8dcb['name']['indexOf'](_0x5f4c2b)?_0x5f4c2b+':\x20'+_0x4d8dcb['name']:_0x4d8dcb['name'];else _0x127cec=_0x5f4c2b+':\x20'+(_0x4d8dcb['createdAt']['toLocaleDateString'](_0x26af39['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4d8dcb['createdAt']['toLocaleTimeString'](_0x26af39['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5dc907['saveRevision']({'name':_0x127cec}),_0x15eae1['isReady']=!0x0,_0x26af39['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x24a816){super(_0x24a816),this['_revisionViewer']=_0x24a816['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2681fd=this['_revisionsRepository']['_revisions'],_0x5ede8f=this['_createRevisionActions'](),_0x43f8f0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x2681fd,_0x5ede8f,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',(_0x379ee7,_0x21a002)=>{_0x21a002['revisionViews']['on']('add',(_0x53dcdf,_0x2ecdd5)=>{_0x2ecdd5['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)),_0x43f8f0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x231057=this['_revisionsRepository']['getRevision'](0x0);if(_0x231057){const _0x55467c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x231057['id']);this['_revisionViewer']['compare'](_0x231057,_0x55467c);}}['_handleRevisionSelected'](_0x494c6c,_0x612a0f){const _0x4be7bc=this['_revisionsRepository']['getRevision'](_0x612a0f['id']),_0x584b31=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4be7bc['id']);this['_revisionViewer']['compare'](_0x4be7bc,_0x584b31);}['_handleRevisionSetName'](_0x4e9d82,_0x3263c2){this['_revisionsRepository']['getRevision'](_0x3263c2['id'])['setName'](_0x3263c2['name']);}['_handleDiffChange'](_0x15dce8,_0x1b146b,_0x4aa41f){const _0x18fadf=this['_revisionsRepository']['getRevisionsInDiff'](_0x4aa41f);_0x18fadf['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x18fadf),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x18fadf[0x0]));}['_createRevisionActions'](){const _0x806938=this['editor'],_0x4fb459=d['availableRevisionActions'],_0x6e5361=_0x806938['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x6e5361['length'])return _0x6e5361['map'](_0x149f32=>{const _0xbbf6b6='string'==typeof _0x149f32?Object['assign']({},_0x4fb459[_0x149f32]):_0x149f32;return _0xbbf6b6['action']=_0xbbf6b6['action']['bind'](this,_0x806938),_0xbbf6b6['isVisible']&&(_0xbbf6b6['isVisible']=_0xbbf6b6['isVisible']['bind'](this,_0x806938)),_0xbbf6b6;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x324f76},_0x585a6a)=>{const _0x208fd2=_0x324f76['get'](m),_0x1a1b31=_0x208fd2['repository'];let _0x505a11=_0x208fd2['diff']['newRevisionId'],_0x3878ed=_0x585a6a['id'];_0x1a1b31['getIndex'](_0x505a11)>_0x1a1b31['getIndex'](_0x3878ed)&&([_0x505a11,_0x3878ed]=[_0x3878ed,_0x505a11]),_0x208fd2['compare'](_0x505a11,_0x3878ed);},'isVisible':({plugins:_0x10d4e1},_0x20a2f3)=>{const _0x5b9ffc=_0x10d4e1['get'](m);return!(_0x5b9ffc['repository']['getRevisionsInDiff'](_0x5b9ffc['diff'])['length']>0x2)&&!_0x20a2f3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3f7c5f,{id:_0x16692f})=>{_0x3f7c5f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x16692f);},'isVisible':({plugins:_0x21fe71},_0x391363)=>!!_0x21fe71['get'](m)['repository']['getLaterVisibleRevision'](_0x391363['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1a8ebe},{id:_0x42ea71,revisionNameView:_0x30490a})=>{const _0x4abd35=_0x1a8ebe['get'](m),_0x4a5ec6=_0x4abd35['repository']['getEarlierVisibleRevision'](_0x42ea71);_0x4abd35['compare'](_0x42ea71,_0x4a5ec6),_0x30490a['focus'](),_0x30490a['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x215a40,_0x17dd7d){super(_0x215a40),this['_view']=_0x17dd7d,this['_toolbarConfig']=et(_0x215a40['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xf46f17){const _0x59ced2=this['editor'],_0x56bc12=this['view'],_0x13d2b4=_0x59ced2['editing']['view'],_0x582215=_0x56bc12['editable'],_0x4d3c91=_0x13d2b4['document']['getRoot']();_0x582215['name']=_0x4d3c91['rootName'],_0x56bc12['render']();const _0x21bbed=_0x582215['element'];this['setEditableElement'](_0x582215['name'],_0x21bbed),_0x56bc12['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x13d2b4['attachDomRoot'](_0x21bbed),this['_elementReplacer']['replace'](_0xf46f17,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1da2ac=this['view'],_0x39a562=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x39a562['detachDomRoot'](_0x1da2ac['editable']['name']),_0x1da2ac['destroy']();}['_initToolbar'](){const _0x11e8e8=this['view'];_0x11e8e8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x11e8e8['stickyPanel']['limiterElement']=_0x11e8e8['element'],_0x11e8e8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5f048e})=>_0x5f048e),_0x11e8e8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x11e8e8['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x9ae6f,_0x5588c0,_0x4b9d5b={}){super(_0x9ae6f),this['stickyPanel']=new ht(_0x9ae6f),this['toolbar']=new dt(_0x9ae6f,{'shouldGroupWhenFull':_0x4b9d5b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x9ae6f,_0x5588c0);}['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
|
+
_0x33a608(_0x180b1b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x44cbef,_0x14de9c){super(_0x14de9c),this['sourceElement']=_0x44cbef,this['model']['document']['createRoot']();const _0x476c92=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x476c92);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1984c4,_0x2c1841){const _0x30d9ea=new this(_0x1984c4,_0x2c1841);return await _0x30d9ea['initPlugins'](),await _0x30d9ea['ui']['init'](_0x1984c4),await _0x30d9ea['data']['init'](_0x30d9ea['config']['get']('initialData')||''),_0x30d9ea['fire']('ready'),_0x30d9ea;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x215f3d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x990472){function _0x553106(_0x4df8a0){return _0x4df8a0['map'](_0x3116dd=>String['fromCharCode'](_0x3116dd))['join']('');}super(_0x990472),this['result']='end',_0x990472[_0x553106([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x553106([0x76,0x69,0x65,0x77])][_0x553106([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x553106([0x61,0x75,0x74,0x6f]),_0x990472[_0x553106([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x553106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x553106([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x553106([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x553106([0x6f,0x6b])});}}class k extends _0x215f3d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2289bb){if(super(_0x2289bb),!this['editor']['config']['get']('revisionHistory'))throw new _0x382e41('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x45131a=>this['_showRevisionViewer']({..._0x45131a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4c32e5=>this['_closeRevisionViewer'](_0x4c32e5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xa147=>this['_restoreRevision'](_0xa147)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x36e6c2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x36e6c2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2eb2c7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2eb2c7);}['getRevision'](_0x117dec){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x117dec);}['getRevisions'](_0x34f763){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x34f763||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x808730=this['editor'],_0x499083=_0x16f0f7(_0x808730,p),_0x4eef47=_0x808730['plugins']['get']('RevisionTracker'),_0x171348=_0x808730['plugins']['get']('Users')['users'];return _0x499083['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x499083['lazyRoots'],(_0x499083['plugins']['push'](_t,m,R,class extends _0x215f3d{static get['requires'](){return[m,'Users'];}['init'](){const _0x5e1539=this['editor']['plugins']['get']('Users');for(const _0x465378 of _0x171348)_0x465378['isAnonymous']||_0x5e1539['getUser'](_0x465378['id'])||_0x5e1539['addUser'](_0x465378);const _0x499a82=_0x4eef47['repository']['getRevisions']();let _0x59eb44=null;const _0xd9801f=this['editor']['plugins']['get']('RevisionViewer');_0xd9801f['adapter']=_0x4eef47['adapter'],_0xd9801f['bind']('isEnabled')['to'](_0x4eef47),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x808730,'isReadOnly',_0x537acf=>!_0x537acf);for(const _0x1ba452 of _0x499a82){const _0x592dcf=null===_0x1ba452['creator'];if(_0x592dcf&&_0x1ba452['toVersion']===_0x1ba452['fromVersion'])continue;const _0x1328d7=_0x1ba452['toJSON']();_0xd9801f['addRevisionData'](_0x1328d7,(_0x3b9f68,_0x54b2ae,_0x4e243b)=>{if(_0x592dcf){if(_0x59eb44)_0x59eb44['_update'](_0x3b9f68,_0x54b2ae);else{if(!_0x54b2ae){const _0x14e003=_0x4e243b['toJSON']();_0x14e003['id']=_0x335623(),_0x4eef47['saveRevision'](_0x14e003,_0x4e243b['toVersion'])['then'](_0x16be2f=>{_0x59eb44=_0x16be2f;});}}}else _0x1ba452['_update'](_0x3b9f68,_0x54b2ae);});}}},d),_0x499083);}['_enhanceShowRevisionViewerCallback'](){const _0x166b4b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x49dfa7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x16768f=this['editor']['plugins']['get']('Autosave');await _0x16768f['save']();}else await _0x49dfa7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4f0ecd=this['editor']['plugins']['get']('Dialog');_0x4f0ecd['isOpen']&&_0x4f0ecd['hide']();}const _0x315f2d=this['_getRevisionViewerEditorConfig']();return _0x166b4b(_0x315f2d)['then'](_0x4d1443=>{return(this['_viewerEditor']=_0x4d1443,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4d1443);})['catch'](_0x85e347=>(console['error'](_0x85e347),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xce0e77=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xce0e77(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3b8e37=this['editor']['plugins']['get']('Annotations');_0x3b8e37['refreshVisibility'](),_0x3b8e37['refreshPositioning']();}})));}['_showRevisionViewer'](_0x151442){const _0x3e548d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x156fa8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c816a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1c816a,_0x151442)['then'](_0x2b43f8=>(_0x156fa8['style']['display']='block',_0x3e548d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2b43f8));}['_closeRevisionViewer'](_0x301e89){const _0x75a4f8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x75a4f8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x301e89['destroy']();}async['_restoreRevision'](_0x400692){const _0x350725=this['editor'],_0x398ae6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x21e80e=_0x350725['plugins']['get']('RevisionTracker'),_0x4c5370=_0x350725['plugins']['get']('RevisionHistoryUtils'),_0x4b3df4=_0x398ae6['repository']['getRevision'](_0x400692);let _0x50efb2,_0x5978f8,_0x544035;try{await _0x4c5370['loadRevisionData'](_0x4b3df4,this['adapter']),_0x50efb2=_0x4c5370['getRevisionDocumentData'](_0x4b3df4),_0x5978f8=_0x4c5370['getRevisionRootsAttributes'](_0x4b3df4);}catch(_0x578d26){return void console['error'](_0x578d26);}_0x350725['model']['change'](_0x3b1792=>{for(const _0x28d86c of Array['from'](_0x350725['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3b1792['removeMarker'](_0x28d86c);}),_0x398ae6['isReady']=!0x1,_0x350725['model']['enqueueChange'](_0x19b597=>{_0x19b597['setSelection'](null),_0x19b597['removeSelectionAttribute'](_0x350725['model']['document']['selection']['getAttributeKeys']());const _0x518e0d=Object['keys'](_0x50efb2);for(const _0x440edf of _0x350725['model']['document']['roots'])'$graveyard'!=_0x440edf['rootName']&&_0x440edf['isAttached']()&&!_0x518e0d['includes'](_0x440edf['rootName'])&&_0x19b597['detachRoot'](_0x440edf);for(const _0x397b65 of _0x518e0d){let _0x2f8b72=_0x350725['model']['document']['getRoot'](_0x397b65);_0x2f8b72&&_0x2f8b72['isAttached']()||(_0x2f8b72=_0x19b597['addRoot'](_0x397b65));const _0x1dbd51=_0x5978f8[_0x397b65],_0x4b5f27=Object['keys'](_0x1dbd51),_0x1bdb6f=_0x50efb2[_0x397b65];for(const _0x5d57cb of _0x2f8b72['getAttributeKeys']())_0x4b5f27['includes'](_0x5d57cb)||_0x19b597['removeAttribute'](_0x5d57cb,_0x2f8b72);for(const _0x146618 of _0x4b5f27)_0x19b597['setAttribute'](_0x146618,_0x5978f8[_0x397b65][_0x146618],_0x2f8b72);_0x19b597['remove'](_0x19b597['createRangeIn'](_0x2f8b72)),_0x19b597['insert'](_0x350725['data']['parse'](_0x1bdb6f,_0x2f8b72),_0x2f8b72,0x0);}});const _0x4d3fdf=g(_0x350725['locale'],'Restored');if(_0x4b3df4['name'])_0x544035=-0x1==_0x4b3df4['name']['indexOf'](_0x4d3fdf)?_0x4d3fdf+':\x20'+_0x4b3df4['name']:_0x4b3df4['name'];else _0x544035=_0x4d3fdf+':\x20'+(_0x4b3df4['createdAt']['toLocaleDateString'](_0x350725['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4b3df4['createdAt']['toLocaleTimeString'](_0x350725['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x21e80e['saveRevision']({'name':_0x544035}),_0x398ae6['isReady']=!0x0,_0x350725['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|