@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250402.0 → 0.0.0-nightly-20250404.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -1
- 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/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
|
-
_0x38c0dd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x658459){super(),this['id']=_0x658459['id']||_0x27ee83(),this['creator']=_0x658459['creator']||null,this['authors']=_0x658459['authors']||[],this['diffData']=_0x658459['diffData']||null,this['toVersion']=_0x658459['toVersion']||0x0,this['fromVersion']=_0x658459['fromVersion']||0x0,this['set']('name',_0x658459['name']||''),this['set']('createdAt',_0x658459['createdAt']||new Date()),this['set']('attributes',_0x658459['attributes']||{});}['setName'](_0xe534df){this['_update']({'name':_0xe534df});}['setAttribute'](_0x2cc900,_0x172eb7){const _0x2d98f3=_0x4ec41c(this['attributes']);_0x112824(_0x2d98f3,_0x2cc900,_0x172eb7),this['_update']({'attributes':_0x2d98f3});}['removeAttribute'](_0x296eaf){const _0x6e0974=_0x4ec41c(this['attributes']);_0x473edd(_0x6e0974,_0x296eaf),this['_update']({'attributes':_0x6e0974});}['_update'](_0x50c145,_0x352239=!0x1){let _0x3e6596=!0x1;const _0x3bc3aa={'id':this['id']},_0x1339a0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42390a of _0x1339a0){const _0x5801ad=_0x50c145[_0x42390a];void 0x0!==_0x5801ad&&_0x5801ad!==this[_0x42390a]&&(this[_0x42390a]=_0x5801ad,_0x3bc3aa[_0x42390a]=_0x5801ad,_0x3e6596=!0x0);}_0x3e6596&&(_0x3bc3aa['authors']&&(_0x3bc3aa['authorsIds']=_0x3bc3aa['authors']['map'](_0x188ce8=>_0x188ce8['id']),delete _0x3bc3aa['authors']),this['fire']('_update',_0x3bc3aa,_0x352239));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5af905=>_0x5af905['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5bfc96{['_revisions'];static get['requires'](){return[_0x688979];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x534fb6){super(_0x534fb6),this['_revisions']=new _0x32397e();}['afterInit'](){!async function(_0xfea203){const _0x3cedca=_0x3541c6([0x75,0x77,0x51,0x6a,0x61,0x4f,0x37,0x68,0x4b,0x45,0x42,0x69,0x66,0x79,0x67,0x34,0x39,0x4c,0x6b,0x4a,0x54,0x57,0x46,0x4d,0x59,0x74,0x35,0x47,0x6e,0x44,0x38,0x4e,0x50,0x7a,0x41,0x78,0x63,0x58,0x6c,0x5a,0x53,0x52,0x55,0x73,0x64,0x70,0x71,0x65,0x56,0x6f,0x76,0x49,0x32,0x33,0x30,0x36,0x6d,0x72,0x48,0x62,0x43,0x31]),_0x1c3be0=0xeb829,_0x97e87c=0x1e4bc1ce,_0x2a8080=0x1e4ca22e^_0x97e87c,_0x4393b6=window[_0x3541c6([0x44,0x61,0x74,0x65])][_0x3541c6([0x6e,0x6f,0x77])](),_0x3a7dd0=_0xfea203[_0x3541c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x184642=new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e8619=>{_0x3a7dd0[_0x3541c6([0x6f,0x6e,0x63,0x65])](_0x3541c6([0x72,0x65,0x61,0x64,0x79]),_0x4e8619);}),_0x222b39={[_0x3541c6([0x6b,0x74,0x79])]:_0x3541c6([0x45,0x43]),[_0x3541c6([0x75,0x73,0x65])]:_0x3541c6([0x73,0x69,0x67]),[_0x3541c6([0x63,0x72,0x76])]:_0x3541c6([0x50,0x2d,0x32,0x35,0x36]),[_0x3541c6([0x78])]:_0x3541c6([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]),[_0x3541c6([0x79])]:_0x3541c6([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]),[_0x3541c6([0x61,0x6c,0x67])]:_0x3541c6([0x45,0x53,0x32,0x35,0x36])},_0x4d7fd7=_0x3a7dd0[_0x3541c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3541c6([0x67,0x65,0x74])](_0x3541c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39a303(){let _0x1162c4,_0x2c4ec3=null,_0x124b5e=null;try{if(_0x4d7fd7==_0x3541c6([0x47,0x50,0x4c]))return _0x3541c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1162c4=_0x4bd1ca(),!_0x1162c4)return _0x3541c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1162c4[_0x3541c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x124b5e=_0x51329b(_0x1162c4[_0x3541c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1162c4[_0x3541c6([0x6a,0x74,0x69])])),await _0x2de589()?_0x3bac06()?_0x11ff8c()?_0x3541c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5afc99()?(_0x1162c4[_0x3541c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3541c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c4ec3=_0xda8f20(_0x3541c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1162c4[_0x3541c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3541c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c4ec3=_0xda8f20(_0x3541c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4005cb()):_0x3541c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3541c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3541c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4fe306){return _0x3541c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11ff8c(){const _0x1ed637=[_0x3541c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3541c6([0x74,0x72,0x69,0x61,0x6c])][_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1162c4[_0x3541c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4393b6/0x3e8:0xe10*_0x2a8080;return _0x1162c4[_0x3541c6([0x65,0x78,0x70])]<_0x1ed637;}function _0x3bac06(){const _0x522eab=_0x1162c4[_0x3541c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x522eab)return!0x1;if(_0x522eab[_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3541c6([0x2a])))return!0x0;if(_0x522eab[_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3541c6([0x52,0x48])))return!0x0;if(_0x522eab[_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3541c6([0x52,0x52,0x48]))){if(_0x4c88fa())return!0x0;if(_0x10e1ad()||_0x394e2a())return!0x0;}return!0x1;}function _0x5afc99(){const _0x4404b8=_0x1162c4[_0x3541c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4404b8||0x0==_0x4404b8[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56e30d}=new URL(window[_0x3541c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4404b8[_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e30d))return!0x0;const _0xb8881b=_0x56e30d[_0x3541c6([0x73,0x70,0x6c,0x69,0x74])](_0x3541c6([0x2e]));return _0x4404b8[_0x3541c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ebbf7=>_0x2ebbf7[_0x3541c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3541c6([0x2a])))[_0x3541c6([0x6d,0x61,0x70])](_0x553dbd=>_0x553dbd[_0x3541c6([0x73,0x70,0x6c,0x69,0x74])](_0x3541c6([0x2e])))[_0x3541c6([0x73,0x6f,0x6d,0x65])](_0xe00d4c=>_0xb8881b[_0x3541c6([0x65,0x76,0x65,0x72,0x79])]((_0x376529,_0x2470fd)=>_0xe00d4c[_0x2470fd]===_0x376529||_0xe00d4c[_0x2470fd]===_0x3541c6([0x2a])));}function _0x4005cb(){return _0x2c4ec3&&_0x124b5e?new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf413,_0x217981)=>{_0x2c4ec3[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x1bf413,_0x217981),_0x124b5e[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x5178cd=>{_0x5178cd!=_0x3541c6([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf413(_0x5178cd);},_0x217981);}):_0x2c4ec3||_0x124b5e||_0x3541c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51329b(_0x1b8377,_0x2c8d0d){return new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344c8c=>{if(_0x59138e())return _0x344c8c(_0x3541c6([0x56,0x61,0x6c,0x69,0x64]));_0x6d5e45(),_0x3a7dd0[_0x3541c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3541c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3354da=!0x1;const _0x6c8030=_0x27ee83();function _0x47a8bc(_0xf65dc3){return!!_0xf65dc3&&(typeof _0xf65dc3===_0x3541c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf65dc3===_0x3541c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf65dc3[_0x3541c6([0x74,0x68,0x65,0x6e])]===_0x3541c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf65dc3[_0x3541c6([0x63,0x61,0x74,0x63,0x68])]===_0x3541c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf1dbb3(_0x1daa3c){_0x4204af(_0x1daa3c)[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x319cfb=>{if(!_0x319cfb||_0x319cfb[_0x3541c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3541c6([0x6f,0x6b]))return _0x3541c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15475d(_0x3fed05(_0x6c8030+_0x2c8d0d))!=_0x319cfb[_0x3541c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3541c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3541c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x11e6d4=>(_0x1428bc(),_0x11e6d4),()=>{const _0x11038d=_0x1b60fc();return null==_0x11038d?(_0x1428bc(),_0x3541c6([0x56,0x61,0x6c,0x69,0x64])):_0x3541c6(_0x4393b6-_0x11038d>(0x3a4745ce^_0x97e87c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x344c8c)[_0x3541c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x344c8c(_0x3541c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46c732=0x1e7d2f4e^_0x97e87c;function _0x1428bc(){const _0x24c278=_0x3541c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x15475d(_0x3fed05(_0x1b8377)),_0xb04de0=_0x117fa5(_0x15475d(window[_0x3541c6([0x4d,0x61,0x74,0x68])][_0x3541c6([0x63,0x65,0x69,0x6c])](_0x4393b6/_0x46c732)));window[_0x3541c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3541c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24c278,_0xb04de0);}function _0x1b60fc(){const _0x4adbd3=_0x3541c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x15475d(_0x3fed05(_0x1b8377)),_0x443e9d=window[_0x3541c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3541c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4adbd3);return _0x443e9d?window[_0x3541c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117fa5(_0x443e9d),0x10)*_0x46c732:null;}function _0x4204af(_0x2eaa17){return new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eb056,_0x123515)=>{_0x2eaa17[_0x3541c6([0x74,0x68,0x65,0x6e])](_0x3eb056,_0x123515),window[_0x3541c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x123515,0x1e4a150e^_0x97e87c);});}}_0x3a7dd0[_0x3541c6([0x6f,0x6e])](_0x3541c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf4432b,_0x2a90ee)=>{if(_0x2a90ee[0x0]!=_0x1b8377)return _0x344c8c(_0x3541c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a90ee[0x1]={..._0x2a90ee[0x1],[_0x3541c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6c8030};},{[_0x3541c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3541c6([0x68,0x69,0x67,0x68])}),_0x3a7dd0[_0x3541c6([0x6f,0x6e])](_0x3541c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbc6210=>{_0x47a8bc(_0xbc6210[_0x3541c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3354da=!0x0,_0xf1dbb3(_0xbc6210[_0x3541c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3541c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3541c6([0x6c,0x6f,0x77])}),_0x184642[_0x3541c6([0x74,0x68,0x65,0x6e])](()=>{_0x3354da||_0x344c8c(_0x3541c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59138e(){return _0x3a7dd0[_0x3541c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3541c6([0x76,0x69,0x65,0x77])][_0x3541c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3541c6([0x61,0x75,0x74,0x6f]);}function _0x6d5e45(){_0x3a7dd0[_0x3541c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3541c6([0x76,0x69,0x65,0x77])][_0x3541c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3541c6([0x61,0x75,0x74,0x6f]);}}function _0xda8f20(_0x3412a5){const _0x500eb5=[new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30c385=>setTimeout(_0x30c385,0x1e42ff02^_0x97e87c)),_0x184642[_0x3541c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd54ae3=>{const _0x166237=0x1e4bc1c9^_0x97e87c,_0x3ad24a=_0xfea203[_0x3541c6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x54c12a(){_0x3ad24a[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x166237&&_0xd54ae3();}_0x54c12a(),_0x3ad24a[_0x3541c6([0x6f,0x6e])](_0x3541c6([0x61,0x64,0x64]),_0x54c12a);})),new window[(_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x223555=>{function _0x5e773e(){for(const _0x47db95 in window)if(window[_0x3541c6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3541c6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x47db95))&&window[_0x47db95]==_0x1c3be0)return _0x223555();_0x3a7dd0[_0x3541c6([0x73,0x74,0x61,0x74,0x65])]!=_0x3541c6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3541c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e773e,0x1e4bd246^_0x97e87c);}_0xf4d70b(_0x3541c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5e773e();})];return window[_0x3541c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3541c6([0x72,0x61,0x63,0x65])](_0x500eb5)[_0x3541c6([0x74,0x68,0x65,0x6e])](()=>_0x3412a5);}async function _0x54c667(){if(await _0x184642,_0xf4d70b(_0x3541c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5f331f=_0xfea203[_0x3541c6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x283510=_0xfea203[_0x3541c6([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])](_0x5f331f[_0x3541c6([0x69,0x64])]),_0x5a83b2=_0x2fc935(_0x3541c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5a83b2[_0x3541c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5f331f['id'],_0x283510?_0x283510['id']:null,!0x0),_0x5a83b2[_0x3541c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3541c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5a83b2[_0x3541c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5a83b2[_0x3541c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x31e1d3,void(_0x5a83b2[_0x3541c6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x31e1d3);}if(_0xf4d70b(_0x3541c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ba720=_0x2fc935(_0x3541c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ba720[_0x3541c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3541c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ba720[_0x3541c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ba720[_0x3541c6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x31e1d3,_0x2ba720[_0x3541c6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x31e1d3;}_0x3a7dd0[_0x3541c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3541c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31e1d3,_0x3a7dd0[_0x3541c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3541c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31e1d3,_0x3a7dd0[_0x3541c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3541c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c88fa(){return _0xf4d70b(_0x3541c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2fc935(_0x3541c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3541c6([0x73,0x74,0x61,0x74,0x65])]==_0x3541c6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10e1ad(){return _0xf4d70b(_0x3541c6([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 _0x394e2a(){return _0xf4d70b(_0x3541c6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x23e872(_0x1b9bad){const _0x43d82a=_0x313519();_0x3a7dd0[_0x43d82a]=_0x3541c6([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])+_0x1b9bad,_0x1b9bad[_0x3541c6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3541c6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x313519()]=_0x1c3be0),_0x1b9bad!=_0x3541c6([0x56,0x61,0x6c,0x69,0x64])&&_0x54c667();}function _0x313519(){const _0x53ad53=window[_0x3541c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3541c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3541c6([0x6e,0x6f,0x77])]())[_0x3541c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3541c6([0x2e]),'');let _0x4a957a=_0x3541c6([0x75]);for(let _0x2444b1=0x0;_0x2444b1<_0x53ad53[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2444b1+=0x2){let _0x1dfc03=window[_0x3541c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53ad53[_0x3541c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2444b1,_0x2444b1+0x2));_0x1dfc03>=_0x3cedca[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1dfc03-=_0x3cedca[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a957a+=_0x3cedca[_0x1dfc03];}return _0x4a957a;}function _0x4bd1ca(){const _0x45af7e=_0x4d7fd7[_0x3541c6([0x73,0x70,0x6c,0x69,0x74])](_0x3541c6([0x2e]));if(0x3!=_0x45af7e[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40bed2(_0x45af7e[0x1]);function _0x40bed2(_0x36fbfd){const _0x9fe9e0=_0x53cfca(_0x36fbfd);return _0x9fe9e0&&_0x54591c()?_0x9fe9e0:null;function _0x54591c(){const _0x43a464=_0x9fe9e0[_0x3541c6([0x6a,0x74,0x69])],_0x1a7009=window[_0x3541c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a464[_0x3541c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43a464[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a6514={..._0x9fe9e0,[_0x3541c6([0x6a,0x74,0x69])]:_0x43a464[_0x3541c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43a464[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a6514[_0x3541c6([0x76,0x63])],_0x3fed05(_0x5a6514)==_0x1a7009;}}}async function _0x2de589(){let _0xa26dc2=!0x0;try{const _0x1dec85=_0x4d7fd7[_0x3541c6([0x73,0x70,0x6c,0x69,0x74])](_0x3541c6([0x2e])),[_0x5a3871,_0x47cfd3,_0x407c42]=_0x1dec85;return _0x5ee34d(_0x5a3871),await _0x5c03f6(_0x5a3871,_0x47cfd3,_0x407c42),_0xa26dc2;}catch(_0x28d006){return!0x1;}function _0x5ee34d(_0x45273b){const _0x5bbd25=_0x53cfca(_0x45273b);_0x5bbd25&&_0x5bbd25[_0x3541c6([0x61,0x6c,0x67])]==_0x3541c6([0x45,0x53,0x32,0x35,0x36])||(_0xa26dc2=!0x1);}async function _0x5c03f6(_0x2e74ab,_0x1247e8,_0x22cabd){const _0x220fe9=window[_0x3541c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3541c6([0x66,0x72,0x6f,0x6d])](_0x15fd5e(_0x22cabd),_0x431a62=>_0x431a62[_0x3541c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5757fe=new window[(_0x3541c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3541c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e74ab+_0x3541c6([0x2e])+_0x1247e8),_0x386df6=window[_0x3541c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3541c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x386df6)return;const _0x3bd57f=await _0x386df6[_0x3541c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3541c6([0x6a,0x77,0x6b]),_0x222b39,{[_0x3541c6([0x6e,0x61,0x6d,0x65])]:_0x3541c6([0x45,0x43,0x44,0x53,0x41]),[_0x3541c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3541c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3541c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x386df6[_0x3541c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3541c6([0x6e,0x61,0x6d,0x65])]:_0x3541c6([0x45,0x43,0x44,0x53,0x41]),[_0x3541c6([0x68,0x61,0x73,0x68])]:{[_0x3541c6([0x6e,0x61,0x6d,0x65])]:_0x3541c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bd57f,_0x220fe9,_0x5757fe)||(_0xa26dc2=!0x1);}}function _0x53cfca(_0x54bb04){return _0x54bb04[_0x3541c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3541c6([0x65,0x79]))?JSON[_0x3541c6([0x70,0x61,0x72,0x73,0x65])](_0x15fd5e(_0x54bb04)):null;}function _0x15fd5e(_0x1fa6eb){return window[_0x3541c6([0x61,0x74,0x6f,0x62])](_0x1fa6eb[_0x3541c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3541c6([0x2b]))[_0x3541c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3541c6([0x2f])));}function _0x3fed05(_0x5a45e8){let _0x5ebb6d=0x1505;function _0x5391b1(_0x34d318){for(let _0x4d419f=0x0;_0x4d419f<_0x34d318[_0x3541c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d419f++){const _0x5b5235=_0x34d318[_0x3541c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d419f);_0x5ebb6d=(_0x5ebb6d<<0x5)+_0x5ebb6d+_0x5b5235,_0x5ebb6d&=_0x5ebb6d;}}function _0x5a03a7(_0x3d0ba2){Array[_0x3541c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d0ba2)?_0x3d0ba2[_0x3541c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a03a7):_0x3d0ba2&&typeof _0x3d0ba2==_0x3541c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3541c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d0ba2)[_0x3541c6([0x73,0x6f,0x72,0x74])]()[_0x3541c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51b5f1,_0xc9874c])=>{_0x5391b1(_0x51b5f1),_0x5a03a7(_0xc9874c);}):_0x5391b1(window[_0x3541c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d0ba2));}return _0x5a03a7(_0x5a45e8),_0x5ebb6d>>>0x0;}function _0x15475d(_0x1083d0){return _0x1083d0[_0x3541c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3541c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3541c6([0x30]));}function _0x117fa5(_0x3f1806){return _0x3f1806[_0x3541c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3541c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3541c6([0x6a,0x6f,0x69,0x6e])]('');}function _0xf4d70b(_0x3d3da1){return _0x3a7dd0[_0x3541c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3541c6([0x68,0x61,0x73])](_0x3d3da1);}function _0x2fc935(_0x481753){return _0x3a7dd0[_0x3541c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3541c6([0x67,0x65,0x74])](_0x481753);}function _0x31e1d3(){}function _0x3541c6(_0x412559){return _0x412559['map'](_0x5f9dde=>String['fromCharCode'](_0x5f9dde))['join']('');}_0x23e872(await _0x39a303());}(this);}['createRevision'](_0x3f21a4){const _0x49d9d9=this['editor']['plugins']['get']('Users');return new h({'id':_0x3f21a4['id'],'name':_0x3f21a4['name'],'creator':_0x3f21a4['creatorId']?_0x49d9d9['getUser'](_0x3f21a4['creatorId']):null,'diffData':_0x3f21a4['diffData']||_0x3f21a4['data'],'authors':_0x3f21a4['authorsIds']['map'](_0x2dde7f=>_0x49d9d9['getUser'](_0x2dde7f)),'createdAt':new Date(_0x3f21a4['createdAt']),'attributes':_0x3f21a4['attributes'],'fromVersion':_0x3f21a4['fromVersion'],'toVersion':_0x3f21a4['toVersion']});}['addRevision'](_0x345c42,_0x71abe9=0x0){this['_revisions']['add'](_0x345c42,_0x71abe9);}['getRevision'](_0x509f3b){return this['_revisions']['get'](_0x509f3b);}['getRevisions'](_0x212582={'toJSON':!0x1}){const _0x166c98=Array['from'](this['_revisions']);return _0x166c98['reverse'](),_0x212582['toJSON']?_0x166c98['map'](_0x5f5bea=>_0x5f5bea['toJSON']()):_0x166c98;}['getIndex'](_0x4eafa2){return this['_revisions']['getIndex'](_0x4eafa2);}['getEarlierVisibleRevision'](_0xcb483d){const [,_0x16723a]=this['getRevisionsIterator'](_0xcb483d,{'direction':'earlier'});return _0x16723a;}['getLaterVisibleRevision'](_0x2f0757){const [,_0x4d24d4]=this['getRevisionsIterator'](_0x2f0757,{'direction':'later'});return _0x4d24d4;}['getRevisionsInDiff'](_0x500bc6){const _0x89c0c0=[];for(const _0xfa4b0f of this['getRevisionsIterator'](_0x500bc6['newRevisionId']))if(_0x89c0c0['push'](_0xfa4b0f),_0xfa4b0f['id']===_0x500bc6['oldRevisionId'])break;return _0x89c0c0;}*['getRevisionsIterator'](_0x3b20e3,{direction:_0xb5e7b4='earlier',filter:_0x4aaaba=()=>!0x0}={}){const _0x11b4d6='earlier'===_0xb5e7b4?0x1:-0x1;let _0x115148=this['_revisions']['get'](_0x3b20e3),_0xe35688=this['getIndex'](_0x115148);for(yield _0x115148;_0x115148;){if(_0xe35688+=_0x11b4d6,_0x115148=this['getRevision'](_0xe35688),!_0x115148)return;_0x4aaaba(_0x115148)&&(yield _0x115148);}}}class V extends _0x5bfc96{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x51844e,'c'],[_0x51a66d,'a'],[_0x189f2d,'e'],[_0x51d6e7,'r'],[_0xea271,'u']]);['_typeCharToViewClass']=new Map([['c',_0x51844e],['a',_0x51a66d],['e',_0x189f2d],['r',_0x51d6e7],['u',_0xea271]]);async['loadRevisionData'](_0x58ece4,_0x22085d){if(_0x58ece4['diffData']||!_0x22085d)return;const _0x230461=this['editor']['config']['get']('collaboration.channelId'),_0x3c9095=await _0x22085d['getRevision']({'channelId':_0x230461,'revisionId':_0x58ece4['id']});_0x58ece4['diffData']=_0x3c9095['diffData'];}['getRevisionDocumentData'](_0x5ece74){const _0xbfbe4b={};for(const _0x391187 in _0x5ece74['diffData']){if(_0x5ece74['diffData'][_0x391187]['attachChange']&&!_0x5ece74['diffData'][_0x391187]['attachChange']['isAttached'])continue;const _0x553f1b=this['_removeRevisionMarkers'](JSON['parse'](_0x5ece74['diffData'][_0x391187]['insertions'])),_0x2b58ec=this['editor']['editing']['view']['document'],_0x4ee75e=new _0x35262a(_0x2b58ec,_0x553f1b['map'](_0x4a104e=>this['_getViewFromDiffObj'](_0x4a104e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xbfbe4b[_0x391187]=this['editor']['data']['processor']['toData'](_0x4ee75e),this['editor']['data']['processor']['useFillerType']('default');}return _0xbfbe4b;}['getRevisionRootsAttributes'](_0x1db425){const _0x5eb791={};for(const _0x27317d in _0x1db425['diffData'])_0x1db425['diffData'][_0x27317d]['attachChange']&&!_0x1db425['diffData'][_0x27317d]['attachChange']['isAttached']||(_0x5eb791[_0x27317d]=_0x1db425['diffData'][_0x27317d]['attributesAfter']||{});return _0x5eb791;}['_getTypeCharForViewElement'](_0x56de8e){return this['_viewClassToTypeChar']['get'](_0x56de8e['constructor']);}['_getViewFromDiffObj'](_0x2c128a,_0x4645f4){const _0x3fafba=this['editor']['editing']['view']['document'];if('string'==typeof _0x2c128a)return new _0x2595bd(_0x3fafba,_0x2c128a);{let _0x53d004,_0x5004ef;_0x5004ef='u'==_0x2c128a['type']||'r'==_0x2c128a['type']?[]:_0x2c128a['children']['map'](_0x182148=>this['_getViewFromDiffObj'](_0x182148,_0x4645f4));const _0x1af6bb=this['_typeCharToViewClass']['get'](_0x2c128a['type'])||_0x21e0f1,_0x5b780a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x53d004=new _0x1af6bb(_0x3fafba,_0x2c128a['name'],_0x2c128a['attributes'],_0x5004ef),'u'==_0x2c128a['type']){const _0x34f8e7=_0x2c128a['children'][0x0];if(_0x53d004['render']=function(_0xa7dc2a){const _0x5669ea=_0xa7dc2a['createElement']('div');return _0x5669ea['innerHTML']=_0x34f8e7,_0x5669ea['childNodes'][0x0];},_0x4645f4){const _0x14833e=new _0x35262a(_0x3fafba);_0x14833e['_appendChild'](_0x53d004);const _0x5425ed=Array['from'](_0x5b780a['viewChildrenToDom'](_0x14833e,{'bind':!0x1})),_0x55bb94=_0x5b780a['domDocument']['createElement']('div');_0x55bb94['append'](..._0x5425ed),_0x53d004=Array['from'](_0x5b780a['domChildrenToView'](_0x55bb94))[0x0];}}else{if('r'==_0x2c128a['type']){const _0x4320db=_0x2c128a['children'][0x0];if(_0x53d004['render']=function(_0x4474f6){_0x4474f6['innerHTML']=_0x4320db;},_0x4645f4){const _0x4276c5=new _0x35262a(_0x3fafba);_0x4276c5['_appendChild'](_0x53d004);const _0x3ecab9=Array['from'](_0x5b780a['viewChildrenToDom'](_0x4276c5,{'bind':!0x1})),_0x18f06a=_0x5b780a['domDocument']['createElement']('div');_0x18f06a['append'](..._0x3ecab9);const _0x419377=Array['from'](_0x5b780a['domChildrenToView'](_0x18f06a));_0x419377['length']>0x1?_0x53d004['_appendChild'](_0x419377):_0x53d004=_0x419377[0x0];}}}if(_0x2c128a['customProperties']){for(const [_0x48b046,_0x4a91cc]of _0x2c128a['customProperties'])_0x53d004['_setCustomProperty'](_0x48b046,_0x4a91cc);}const _0x5b4efa=_0x2c128a['fillerOffset']||null;return _0x53d004['getFillerOffset']=()=>_0x5b4efa,_0x53d004;}}['_makeModelFromViewString'](_0x515222){const _0x1bc5fe=JSON['parse'](_0x515222),_0x17f203=this['editor']['editing']['view']['document'],_0x540002=new _0x35262a(_0x17f203,_0x1bc5fe['map'](_0x309461=>this['_getViewFromDiffObj'](_0x309461,!0x0)));return this['editor']['data']['toModel'](_0x540002);}['_removeRevisionMarkers'](_0x1c39fc){return(_0x1c39fc=_0x1c39fc['filter'](_0x5ab929=>!_0x5ab929['name']||'revision-start'!==_0x5ab929['name']&&'revision-end'!==_0x5ab929['name']))['forEach'](_0x31827f=>{'string'!=typeof _0x31827f&&(_0x31827f['children']=this['_removeRevisionMarkers'](_0x31827f['children']),_0x31827f['attributes']=_0x31827f['attributes']['filter'](_0x14dd47=>!_0x14dd47[0x0]['startsWith']('data-revision-')));}),_0x1c39fc;}}function g(_0x267cac,_0x5a2791,_0x56cd3f){const t=_0x267cac['t'];switch(_0x5a2791){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'},_0x56cd3f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56cd3f);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 _0x5bfc96{['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[_0x688979,I,V,_0x478b8b];}constructor(_0x5e05cb){super(_0x5e05cb),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 _0x3152c2=_0x27ee83();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3152c2},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 _0x238406=this['repository']['getRevision'](0x0),_0x51b635=_0x238406&&null===_0x238406['creator']?_0x238406:null;if(this['_continueCurrentRevision']=!!_0x51b635&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x57423c=this['_source']['getCurrentRevisionId'](),_0x5c070c=this['repository']['getRevision'](_0x57423c);if(_0x5c070c)this['_startingVersion']=_0x5c070c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6f7e34=this['_source']['history']['_operations']['find'](_0x3b8996=>!_0x3b8996['_isInit']),_0x3d17b9=_0x6f7e34?_0x6f7e34['baseVersion']:this['_source']['history']['version'];_0x238406?(_0x238406['toVersion']<_0x3d17b9&&_0x238406['_update']({'toVersion':_0x3d17b9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x51b635['id'],this['_startingVersion']=_0x51b635['fromVersion']):(this['_startingVersion']=_0x238406['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3d17b9,this['_continueCurrentRevision']=!0x1);}}else _0x51b635&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x51b635['toVersion'],this['editor']['model']['document']['history']['version']),_0x51b635['fromVersion']===_0x51b635['toVersion']?(0x0!==_0x51b635['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x51b635['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x51b635['id'],this['_startingVersion']=_0x51b635['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',_0x1fbc8c=>!_0x1fbc8c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9aa905=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23208b;for(const _0x54fc8f in _0x9aa905){const _0x586a8e=_0x54fc8f,_0x3f291f=_0x9aa905[_0x586a8e];if('revisionHistoryLicenseKeyValid'==_0x3f291f||'revisionHistoryLicenseKeyInvalid'==_0x3f291f||'revisionHistoryLicenseKeyExpired'==_0x3f291f||'revisionHistoryLicenseKeyDomainLimit'==_0x3f291f||'revisionHistoryLicenseKeyNotAllowed'==_0x3f291f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3f291f||'revisionHistoryLicenseKeyTrialLimit'==_0x3f291f||'revisionHistoryLicenseKeyUsageLimit'==_0x3f291f){delete _0x9aa905[_0x586a8e],_0x23208b=_0x3f291f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x23208b&&_0x9aa905['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x23208b&&_0x9aa905['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x23208b&&_0x9aa905['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x23208b&&_0x9aa905['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x23208b&&_0x9aa905['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x23208b&&_0x9aa905['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x23208b&&_0x9aa905['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x37fcc9=this['repository']['getRevision'](0x0),_0x4b1c00=await this['getRevisionDocumentData'](_0x37fcc9),_0x5b6b9f=await this['getRevisionRootsAttributes'](_0x37fcc9);this['_replaceEditorDataWithRevisionData'](_0x4b1c00,_0x5b6b9f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1317ba){this['_source']=_0x1317ba;}async['update'](){const _0x5ee6ee=await this['_source']['getLatestVersion']();if(_0x5ee6ee>this['currentRevision']['toVersion']){await this['_loadState']();const _0x55868d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5ee6ee});_0x55868d['authors']=_0x55868d['authorsIds']['map'](_0x549a7b=>this['editor']['plugins']['get']('Users')['getUser'](_0x549a7b)),this['currentRevision']['_update'](_0x55868d);}}async['saveRevision'](_0x20a51e={},_0x2a4180=null){const _0x3a2a49=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a4180>this['currentRevision']['toVersion']&&(_0x2a4180=null),null===_0x2a4180&&(_0x2a4180=await this['_source']['getLatestVersion']());const _0x4eabad=this['_getFromVersion'](_0x2a4180),_0x2f7479=this['buildRevisionData']({'from':_0x4eabad,'to':_0x2a4180});if(this['currentRevision']['toVersion']<_0x2a4180){const _0x40f125=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a4180,'to':_0x2a4180});_0x40f125['authors']=[],_0x40f125['authorsIds']=[],_0x40f125['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40f125,!0x0),delete _0x40f125['authors'],_0x3a2a49['push'](_0x40f125);}_0x20a51e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x20a51e['name']=_0x20a51e['name']||null,_0x20a51e['id']=_0x20a51e['id']||_0x27ee83(),_0x20a51e={..._0x20a51e,..._0x2f7479};const _0x2acff0=this['addRevisionData'](_0x20a51e);_0x3a2a49['push'](_0x20a51e);const _0x3a81c7=this['repository']['getIndex'](_0x2acff0);if(0x0!==_0x3a81c7){const _0x299e1c=this['repository']['getRevision'](_0x3a81c7-0x1);if(_0x299e1c['fromVersion']!==_0x2a4180){const _0x5185c1=this['_revisionDataBuilder']['getData'](_0x2a4180,_0x299e1c['toVersion']),_0x461263={'id':_0x299e1c['id'],'diffData':_0x5185c1['diffData'],'authorsIds':_0x5185c1['authorsIds'],'authors':_0x5185c1['authorsIds']['map'](_0x716a5e=>this['editor']['plugins']['get']('Users')['getUser'](_0x716a5e)),'fromVersion':_0x2a4180};_0x299e1c===this['currentRevision']&&(_0x461263['createdAt']=new Date(_0x20a51e['createdAt']['getTime']()+0xa)),_0x299e1c['_update'](_0x461263,!0x0),delete _0x461263['authors'],_0x3a2a49['push'](_0x461263);}}if(this['adapter']){for(const _0x288f41 of _0x3a2a49)this['_bufferUpdate'](_0x288f41['id'],_0x288f41,!0x0);this['sendBufferedUpdates']();}return _0x2acff0;}['addRevisionData'](_0x5a9d8a){const _0x26edda=this['repository']['createRevision'](_0x5a9d8a);return this['adapter']&&_0x26edda['on']('_update',(_0x4920e1,_0x4c5f1d,_0x56ccca)=>{_0x56ccca||(this['_bufferUpdate'](_0x4c5f1d['id'],_0x4c5f1d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x26edda,this['_findInsertionIndex'](_0x26edda)),_0x26edda;}async['getRevisionDocumentData'](_0x408d1c){return await this['_utils']['loadRevisionData'](_0x408d1c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x408d1c);}async['getRevisionRootsAttributes'](_0xaa237c){return await this['_utils']['loadRevisionData'](_0xaa237c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xaa237c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xa3e590=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3e8612=0x0;_0x3e8612<_0xa3e590['length'];_0x3e8612++){const _0x3c2d80=_0xa3e590[_0x3e8612];let _0x4f1569=!0x1;for(const _0xe3cbc9 of Object['keys'](_0x3c2d80))void 0x0===_0x3c2d80[_0xe3cbc9]?delete _0x3c2d80[_0xe3cbc9]:'id'!==_0xe3cbc9&&(_0x4f1569=!0x0);_0x4f1569||(_0xa3e590[_0x3e8612]=null);}if(_0xa3e590=_0xa3e590['filter'](_0x5eee2e=>null!==_0x5eee2e),!_0xa3e590['length'])return;for(let _0x3d747b=0x0;_0x3d747b<_0xa3e590['length'];_0x3d747b++){const _0x5364c1=_0xa3e590[_0x3d747b];void 0x0!==_0x5364c1['fromVersion']&&void 0x0===_0x5364c1['toVersion']&&(_0x5364c1['toVersion']=this['repository']['getRevision'](_0x5364c1['id'])['toVersion']),void 0x0!==_0x5364c1['toVersion']&&void 0x0===_0x5364c1['fromVersion']&&(_0x5364c1['fromVersion']=this['repository']['getRevision'](_0x5364c1['id'])['fromVersion']);}const _0x362b07=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xa3e590,_0x362b07)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x13f866=>{if(_0x13f866){for(const _0x3978b3 of _0x13f866)this['setRevisionData']({'id':_0x3978b3['id'],'createdAt':_0x3978b3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x262028=null,from:_0x5447c7=null,to:_0x19e6b0=null}){_0x5447c7=null!==_0x5447c7?_0x5447c7:_0x262028['fromVersion'],_0x19e6b0=null!==_0x19e6b0?_0x19e6b0:_0x262028['toVersion'];const _0x3479b7=this['_revisionDataBuilder']['getData'](_0x5447c7,_0x19e6b0),_0x13cea9={'diffData':_0x3479b7['diffData'],'authorsIds':_0x3479b7['authorsIds'],'fromVersion':_0x5447c7,'toVersion':_0x19e6b0};if(!_0x262028||_0x19e6b0!==_0x262028['toVersion']){const _0x35676e=_0x19e6b0-0x1,_0x234717=this['_source']['history']['getOperation'](_0x35676e);_0x13cea9['createdAt']=_0x234717&&_0x234717['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5447c7===this['_loadedStateData']['fromVersion']){for(const _0x50d8d3 of this['_loadedStateData']['authors'])_0x13cea9['authorsIds']['includes'](_0x50d8d3['id'])||_0x13cea9['authorsIds']['push'](_0x50d8d3['id']);}return _0x13cea9;}['_bufferUpdate'](_0x1bf458,_0x30527a,_0x7a09f2){if(this['_bufferedUpdates']['has'](_0x1bf458)){const _0x414e27=this['_bufferedUpdates']['get'](_0x1bf458);_0x30527a=_0x7a09f2?{..._0x414e27,..._0x30527a}:{..._0x30527a,..._0x414e27};}this['_bufferedUpdates']['set'](_0x1bf458,_0x30527a);}['setRevisionData'](_0x3cd0cd){const _0x5a64c5=this['repository']['getRevision'](_0x3cd0cd['id']);if(_0x3cd0cd['createdAt']&&(_0x3cd0cd['createdAt']=new Date(_0x3cd0cd['createdAt'])),_0x3cd0cd['authorsIds']){const _0x3f5cde=this['editor']['plugins']['get']('Users');_0x3cd0cd['authors']=_0x3cd0cd['authorsIds']['map'](_0x46fedc=>_0x3f5cde['getUser'](_0x46fedc));}_0x5a64c5['_update'](_0x3cd0cd,!0x0);}['_createInitialRevision'](_0x412d57){const _0x3cf189=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3cf189)this['_initialRevisionId']=_0x3cf189['id'];else{const _0x2cc59f=!this['editor']['model']['document']['roots']['find'](_0x14d61b=>this['editor']['model']['hasContent'](_0x14d61b)),_0x1d6ba8=this['editor']['plugins']['get']('Users')['me']['id'],_0x5155de=g(this['editor']['locale'],_0x2cc59f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x412d57,'to':_0x412d57,'id':this['_initialRevisionId'],'name':_0x5155de,'creatorId':_0x1d6ba8});}}['_createCurrentRevision'](_0x1fe3f8){const _0x356a89=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x356a89),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1fe3f8,'to':_0x1fe3f8,'id':_0x356a89,'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'](_0x28dc95,_0x19359d){let _0x4403f8=this['editor']['config']['get']('initialData'),_0x30cce3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4403f8){_0x4403f8={};for(const _0x5a9063 of this['editor']['model']['document']['getRootNames']())_0x4403f8[_0x5a9063]='';}if('string'==typeof _0x4403f8&&(_0x4403f8={'main':_0x4403f8}),void 0x0===_0x30cce3){_0x30cce3={};for(const _0x320908 of this['editor']['model']['document']['getRootNames']())_0x30cce3[_0x320908]={};}let _0x279aae=!0x1;const _0xa00ccb=Object['keys'](_0x4403f8),_0x2b7758=Object['keys'](_0x28dc95);for(const _0x3f21af of _0xa00ccb){if(_0x4403f8[_0x3f21af]!==_0x28dc95[_0x3f21af]&&''!==_0x4403f8[_0x3f21af]['trim']()){_0x279aae=!0x0;break;}if(!_0x3dce40(_0x30cce3[_0x3f21af],_0x19359d[_0x3f21af])&&Object['keys'](_0x30cce3[_0x3f21af])['length']>0x0){_0x279aae=!0x0;break;}}_0x279aae||(_0x279aae=_0x2b7758['some'](_0xe6334f=>!this['editor']['model']['document']['getRoot'](_0xe6334f))),_0x279aae&&_0xa63e6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4403f8,'editorRootsAttributes':_0x30cce3,'revisionData':_0x28dc95,'revisionRootsAttributes':_0x19359d}),this['editor']['config']['set']('initialData',_0x28dc95),this['editor']['config']['set']('rootsAttributes',_0x19359d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x38c9a5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x38c9a5['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xb0d363){const _0x4ed257=this['repository']['getRevisions']();_0x4ed257['reverse']();let _0x1fb1d4=0x0;for(;_0x1fb1d4<_0x4ed257['length'];){const _0x56f524=_0x4ed257[_0x1fb1d4];if(_0x56f524===this['currentRevision']){_0x1fb1d4++;continue;}if(_0x56f524['id']===this['_initialRevisionId'])break;const _0x3c5afb=_0xb0d363['toVersion']-_0x56f524['toVersion']||_0xb0d363['fromVersion']-_0x56f524['fromVersion'];if(_0x3c5afb>0x0)break;if(_0x3c5afb<0x0)_0x1fb1d4++;else{if(!_0xb0d363['creator']&&_0x56f524['creator'])break;if(_0x56f524['creator']||!_0xb0d363['creator']){if(_0xb0d363['createdAt']>_0x56f524['createdAt'])break;_0x1fb1d4++;}else _0x1fb1d4++;}}return _0x1fb1d4;}['_getFromVersion'](_0xa24a1){const _0x3f0554=this['repository']['getRevisions']();_0x3f0554['reverse'](),_0x3f0554['shift']();const _0x5c3fc4=_0x3f0554['find'](_0x373c73=>_0x373c73['toVersion']<=_0xa24a1)['toVersion'];return _0x5c3fc4<this['_startingVersion']?this['_startingVersion']:_0x5c3fc4;}['_makeRevision']({name:_0x54295c,from:_0x547d41,to:_0x39f90a,creatorId:_0x37622b,id:_0x262a96}){const _0x554f5b=this['buildRevisionData']({'from':_0x547d41,'to':_0x39f90a});_0x554f5b['name']=_0x54295c,_0x554f5b['creatorId']=_0x37622b,_0x554f5b['id']=_0x262a96;const _0x4f7ed6=this['addRevisionData'](_0x554f5b);return this['adapter']&&this['_bufferUpdate'](_0x554f5b['id'],_0x554f5b,!0x0),_0x4f7ed6;}['_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(_0x3d947d){this['editor']=_0x3d947d,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'](_0x29836e){this['source']=_0x29836e;const _0x224bbc=new Map(),_0x570230=new Map(),_0x5dd1ba=this['editor']['model']['document']['roots']['map'](_0x1cc1be=>_0x1cc1be['rootName']);for(const _0x5e4909 of _0x5dd1ba){const _0x35b52a=this['editor']['model']['document']['getRoot'](_0x5e4909),_0x13dedf=N(_0x35b52a);_0x224bbc['set'](_0x5e4909,_0x13dedf),_0x570230['set'](_0x5e4909,Object['fromEntries'](_0x35b52a['getAttributes']()));}const _0x51e374=Array['from'](this['editor']['model']['markers'])['map'](_0x3b0acd=>[_0x3b0acd['name'],_0x3b0acd['getRange']()]),_0x576cdb=this['source']['version'];this['_saveMetaData'](_0x576cdb,_0x224bbc,_0x51e374,_0x570230),this['_startingRevisionId']=this['_revisionId'];const _0x313186=new Map(),_0x4b6937=new Map();for(const _0x46820e of _0x5dd1ba){const _0x4229d7=P(_0x46820e);_0x313186['set'](_0x46820e,_0x4229d7),_0x4b6937['set'](_0x46820e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x313186,[],_0x4b6937);}['getData'](_0x515d1a,_0x5164f9){if(this['_lastFrom']===_0x515d1a&&this['_lastTo']<=_0x5164f9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5164f9,!0x0);else{if(!this['_savedMetaData']['has'](_0x515d1a)){const _0x13cb48=this['_getPreviousFrom'](_0x515d1a);this['_calculateMetaData'](_0x13cb48,_0x515d1a,!0x1);}this['_calculateMetaData'](_0x515d1a,_0x5164f9,!0x0);}return this['_lastFrom']=_0x515d1a,this['_lastTo']=_0x5164f9,this['_getState']();}['loadState'](_0x75492d){const _0x356f49=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x75492d['fromVersion'],this['_lastTo']=_0x75492d['toVersion'];for(const _0x42855a in _0x75492d['diffData']){const _0x5df251=_0x75492d['diffData'][_0x42855a]['attachChange'],_0x3fa58d=_0x4ec41c(_0x75492d['diffData'][_0x42855a]['attributesBefore'])||{},_0x2653b8=_0x356f49['_makeModelFromViewString'](_0x75492d['diffData'][_0x42855a]['deletions']);_0x2653b8['rootName']=_0x42855a,_0x2653b8['_isAttached']=!_0x5df251||!_0x5df251['isAttached'],_0x2653b8['isAttached']=()=>_0x2653b8['_isAttached'],this['_baseRoots']['set'](_0x42855a,_0x2653b8),this['_baseRootsAttributes']['set'](_0x42855a,_0x3fa58d),_0x5df251&&this['_touchedRoots']['set'](_0x42855a,_0x5df251);const _0x9b2b5f=this['_makeIdsRoot'](_0x2653b8);this['_baseIdsRoots']['set'](_0x42855a,_0x9b2b5f);for(const [_0x18900a,_0xf1d8a2]of _0x2653b8['markers']){if(!_0x18900a['startsWith']('revision:'))continue;const _0x48f0c6=_0x18900a['split'](':')[0x2];for(const _0x2f43af of _0xf1d8a2['getWalker']({'singleCharacters':!0x0})){const _0x40502f=this['_getVidAttributeName'](_0x2f43af),_0x54dc26='elementEnd'==_0x2f43af['type']?_0x2f43af['previousPosition']['path']['slice'](0x0,-0x1):_0x2f43af['previousPosition']['path'],_0x3918f6=_0x9b2b5f['getNodeByPath'](_0x54dc26)['getAttribute'](_0x40502f);this['_touched']['set'](_0x3918f6,{'userId':_0x48f0c6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2f8855=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b664f=>!this['_touched']['has'](_0x2b664f));let _0x1fb5c2=0x0;const _0x4e7698=new Map();for(const _0x34adc4 in _0x75492d['diffData']){const _0x525502=_0x75492d['diffData'][_0x34adc4]['attachChange'],_0x31d928=_0x4ec41c(_0x75492d['diffData'][_0x34adc4]['attributesAfter'])||{},_0x183c78=_0x356f49['_makeModelFromViewString'](_0x75492d['diffData'][_0x34adc4]['insertions']);_0x183c78['rootName']=_0x34adc4,_0x183c78['_isAttached']=!_0x525502||_0x525502['isAttached'],_0x183c78['isAttached']=()=>_0x183c78['_isAttached'],this['_diffRoots']['set'](_0x34adc4,_0x183c78),this['_diffRootsAttributes']['set'](_0x34adc4,_0x31d928);const _0x591449=this['_makeIdsRoot'](_0x183c78,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x34adc4,_0x591449),_0x4e7698['set'](_0x34adc4,_0x183c78['isAttached']()?_0x31d928:{});for(const [_0x262325,_0x28bdd8]of _0x183c78['markers']){if(!_0x262325['startsWith']('revision:'))continue;const _0xf3f23c=_0x262325['split'](':')[0x2];for(const _0x5e79d1 of _0x28bdd8['getWalker']({'singleCharacters':!0x0})){const _0x574ccd=this['_getVidAttributeName'](_0x5e79d1),_0x353a8a=this['_revisionId']++,_0x3531df='elementEnd'==_0x5e79d1['type']?_0x5e79d1['previousPosition']['path']['slice'](0x0,-0x1):_0x5e79d1['previousPosition']['path'];_0x591449['getNodeByPath'](_0x3531df)['_setAttribute'](_0x574ccd,_0x353a8a),this['_touched']['set'](_0x353a8a,{'userId':_0xf3f23c});}}for(const _0x916474 of this['editor']['model']['createRangeIn'](_0x183c78)['getWalker']({'singleCharacters':!0x0})){const _0x5108b2=this['_getVidAttributeName'](_0x916474),_0x5c8d8c='elementEnd'==_0x916474['type']?_0x916474['previousPosition']['path']['slice'](0x0,-0x1):_0x916474['previousPosition']['path'],_0x3c823a=_0x591449['getNodeByPath'](_0x5c8d8c);_0x3c823a['getAttribute'](_0x5108b2)>0x0||_0x3c823a['_setAttribute'](_0x5108b2,_0x2f8855[_0x1fb5c2++]);}for(const [_0x48e9f0,_0x366e55]of _0x183c78['markers'])_0x48e9f0['startsWith']('revision:')||this['_markers']['set'](_0x48e9f0,_0x366e55);}const _0x382745=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x382745),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x382745,0x1));const _0x30ace6=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x30ace6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x30ace6,0x1));const _0x482fbb=Array['from'](this['_diffRoots'])['map'](([_0x4d4984,_0xbbf167])=>[_0x4d4984,N(_0xbbf167)]);this['_saveMetaData'](this['_lastTo'],_0x482fbb,this['_markers'],_0x4e7698);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x13be81,_0x119546,_0x96f2d1,_0x22eacb){const _0x55acfb=new Map(_0x119546),_0x59d28f=new Map(_0x4ec41c(_0x22eacb)),_0x578020=new Map();for(const [_0x3ddc83,_0x163b90]of _0x96f2d1)_0x578020['set'](_0x3ddc83,{'start':_0x163b90['start']['clone'](),'end':_0x163b90['end']['clone'](),'rootName':_0x163b90['root']['rootName']});this['_savedMetaData']['set'](_0x13be81,{'roots':_0x55acfb,'markers':_0x578020,'rootsAttributes':_0x59d28f});}['_removeMetaData'](_0x2690de){this['_savedMetaData']['delete'](_0x2690de);}['_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'](_0x57083a,_0x17a284=null){let _0x3cf672=null;_0x57083a['is']('documentFragment')||(_0x3cf672=new ut(_0x57083a['name'],{'vid_start':null===_0x17a284?this['_revisionId']++:_0x17a284++}));const _0x4f3792=[];for(const _0x4b7e41 of _0x57083a['getChildren']())if(_0x4b7e41['is']('element')){_0x4f3792['push'](this['_makeIdsRoot'](_0x4b7e41,_0x17a284));const _0x697af5=_0x4f3792[_0x4f3792['length']-0x1];null!==_0x17a284&&(_0x17a284=_0x697af5['is']('element','$text')?_0x697af5['getAttribute']('vid')+0x1:_0x697af5['getAttribute']('vid_end')+0x1);}else{for(let _0x36003d=0x0;_0x36003d<_0x4b7e41['offsetSize'];_0x36003d++)_0x4f3792['push'](new ut('$text',{'vid':null===_0x17a284?this['_revisionId']++:_0x17a284++}));}if(_0x57083a['is']('documentFragment')){const _0x38d8a2=P(_0x57083a['rootName']);return _0x38d8a2['_insertChild'](0x0,_0x4f3792),_0x38d8a2;}return _0x3cf672['_setAttribute']('vid_end',null===_0x17a284?this['_revisionId']++:_0x17a284++),_0x3cf672['_insertChild'](0x0,_0x4f3792),_0x3cf672;}['_calculateMetaData'](_0x3bc964,_0x196568,_0x6f5a98){this['_reset']();const {roots:_0xaacaf0,markers:_0xae4513,rootsAttributes:_0x46bcd8}=this['_savedMetaData']['get'](_0x3bc964);this['_baseRoots']=new Map(_0xaacaf0),this['_baseRootsAttributes']=new Map(_0x4ec41c(_0x46bcd8));for(const [_0x5c2bae,_0x5683cf]of this['_baseRoots'])if('$graveyard'!==_0x5c2bae&&(this['_diffRoots']['set'](_0x5c2bae,N(_0x5683cf)),this['_diffRootsAttributes']=new Map(_0x4ec41c(_0x46bcd8)),_0x6f5a98)){const _0x5e9a10=this['_revisionId'];this['_idsRoots']['set'](_0x5c2bae,this['_makeIdsRoot'](_0x5683cf)),this['_baseIdsRoots']['set'](_0x5c2bae,this['_makeIdsRoot'](_0x5683cf,_0x5e9a10));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x6f5a98&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xf2b67a,_0xc2d299]of _0xae4513){const _0x43cc40=this['_baseRoots']['get'](_0xc2d299['rootName']),_0x48c7ea=this['_diffRoots']['get'](_0xc2d299['rootName']),_0x55e2c7=new ft(this['_fixPosition'](_0xc2d299['start'],_0x43cc40),this['_fixPosition'](_0xc2d299['end'],_0x43cc40)),_0x35746d=this['_fixRange'](_0x55e2c7,_0x48c7ea);_0x43cc40['markers']['set'](_0xf2b67a,_0x55e2c7),this['_markers']['set'](_0xf2b67a,_0x35746d);}this['_applyOperations'](_0x3bc964,_0x196568,_0x6f5a98);}['_applyOperations'](_0x29a12f,_0x1d2cc5,_0x51f6a2){for(const _0xdac29d of this['source']['getOperations'](_0x29a12f,_0x1d2cc5))this['_handleOperation'](_0xdac29d,_0x51f6a2);for(const _0x36b359 of this['_diffRoots']['values']())_0x36b359['markers']['clear']();for(const [_0x1ba839,_0x349482]of this['_markers']){this['_diffRoots']['get'](_0x349482['root']['rootName'])['markers']['set'](_0x1ba839,_0x349482['clone']());}const _0x352c86=new Map(),_0x2337f8=new Map();for(const [_0xe4fd04,_0x153c6c]of this['_diffRoots'])_0x352c86['set'](_0xe4fd04,N(_0x153c6c)),_0x2337f8['set'](_0xe4fd04,this['_diffRootsAttributes']['get'](_0xe4fd04));this['_saveMetaData'](_0x1d2cc5,_0x352c86,this['_markers'],_0x2337f8);}['_getPreviousFrom'](_0x830012){const _0xe5ab49=Array['from'](this['_savedMetaData']['keys']());_0xe5ab49['sort']((_0x40e1b6,_0xe996c9)=>_0x40e1b6-_0xe996c9),_0xe5ab49['reverse']();for(const _0x5ad65a of _0xe5ab49)if(_0x5ad65a<_0x830012)return _0x5ad65a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x35d472,_0x32712d){const _0x1e2331=Array['from'](_0x32712d['markers'])['map'](([_0x12c1cf,_0x482963])=>[_0x12c1cf,this['_fixRange'](_0x482963,_0x35d472)]);_0x35d472['markers']=new Map(_0x1e2331);}['_transformMarkers'](_0x35e034){for(const _0x230f98 of this['_markers']['values']()){const _0x4a5087=_0x230f98['getTransformedByOperation'](_0x35e034),_0x1fc541=ft['_createFromRanges'](_0x4a5087);_0x230f98['start']=_0x1fc541['start'],_0x230f98['end']=_0x1fc541['end'];}}['_handleOperation'](_0x1e7d5b,_0x4815aa){if('addRoot'!=_0x1e7d5b['type']&&'detachRoot'!=_0x1e7d5b['type']){if('insert'==_0x1e7d5b['type']){const _0x591b78=_0x1e7d5b['position']['root']['rootName'];this['_diffRoots']['has'](_0x591b78)||(this['_diffRoots']['set'](_0x591b78,P(_0x591b78,!0x0)),this['_diffRootsAttributes']['set'](_0x591b78,{}),_0x4815aa&&this['_idsRoots']['set'](_0x591b78,P(_0x591b78,!0x0)));}else{if('addRootAttribute'==_0x1e7d5b['type']||'removeRootAttribute'==_0x1e7d5b['type']||'changeRootAttribute'==_0x1e7d5b['type'])return void this['_handleRootAttributeOperation'](_0x1e7d5b);'marker'==_0x1e7d5b['type']&&this['_handleMarkerOperation'](_0x1e7d5b);}if('marker'!==_0x1e7d5b['type']){const _0x24518e=this['_cloneOperation'](_0x1e7d5b,this['_diffRoots']);_0x24518e['_execute'](),this['_transformMarkers'](_0x24518e);}if(_0x4815aa)switch(_0x1e7d5b['type']){case'insert':this['_handleInsertOperation'](_0x1e7d5b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1e7d5b);break;case'merge':this['_handleMergeOperation'](_0x1e7d5b);break;case'split':this['_handleSplitOperation'](_0x1e7d5b);}}else this['_handleRootOperation'](_0x1e7d5b,_0x4815aa);}['_cloneOperation'](_0xc2689c,_0x333e5d){const _0x455c01=_0xc2689c['clone']();return _0x455c01['_authorId']=_0xc2689c['_authorId'],this['_fixOperation'](_0x455c01,_0x333e5d),_0x455c01;}['_getBaseVids'](_0x315771){return _0x315771['map'](_0x507d55=>{const _0x37f90a=this['_getVidAttributeName'](_0x507d55);return Number(_0x507d55['item']['getAttribute'](_0x37f90a));});}['_generateTape'](_0x298261,_0x397ccd){if(_0x298261['is']('element','$text'))_0x397ccd['push']({'item':_0x298261,'type':'text'});else{_0x298261['is']('element')&&_0x397ccd['push']({'item':_0x298261,'type':'elementStart'});for(const _0x3673d9 of _0x298261['getChildren']())this['_generateTape'](_0x3673d9,_0x397ccd);_0x298261['is']('element')&&_0x397ccd['push']({'item':_0x298261,'type':'elementEnd'});}return _0x397ccd;}['_getState'](){const _0x5e9a1c=new Map(this['_touched']),_0x42f60f=new Map(_0x5e9a1c),_0x3766e9=new Map(),_0x900ec1={'insertions':{},'deletions':{}},_0x22503f={'insertions':{},'deletions':{}},_0x5a1c22=new Map(),_0x4d28c3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4d28c3['delete']('$graveyard');for(const _0x656215 of _0x4d28c3){const _0xed4aa3=this['_diffRoots']['get'](_0x656215)||P(_0x656215,!0x1),_0x30a184=this['_baseRoots']['get'](_0x656215)||P(_0x656215,!0x1);_0xed4aa3['isAttached']()||_0x30a184['isAttached']()?(_0x900ec1['insertions'][_0x656215]=N(_0xed4aa3),_0x900ec1['deletions'][_0x656215]=N(_0x30a184),this['_copyMarkers'](_0x900ec1['deletions'][_0x656215],_0x30a184),this['_copyMarkers'](_0x900ec1['insertions'][_0x656215],_0xed4aa3),_0x22503f['insertions'][_0x656215]=this['_generateTape'](this['_idsRoots']['get'](_0x656215),[]),_0x22503f['deletions'][_0x656215]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x656215)||P(_0x656215,!0x1),[])):_0x4d28c3['delete'](_0x656215);}for(const _0x51b488 of _0x4d28c3){const _0x5bd2f9=_0x22503f['insertions'][_0x51b488];for(const _0x375e4a of _0x5bd2f9){const _0x442b44=this['_getVidAttributeName'](_0x375e4a),_0x53a74b=_0x375e4a['item']['getAttribute'](_0x442b44);_0x42f60f['delete'](_0x53a74b),_0x53a74b>=this['_startingRevisionId']&&_0x3766e9['set'](_0x53a74b,_0x5e9a1c['get'](_0x53a74b));}}for(const _0x391d62 of _0x4d28c3){const _0x432b0d=_0x22503f['insertions'][_0x391d62],_0x317ca6=this['_getBaseVids'](_0x22503f['deletions'][_0x391d62]);let _0x4c2687=0x0;for(const _0x4d6745 of _0x432b0d){const _0x2a44b3=this['_getVidAttributeName'](_0x4d6745),_0x199622=_0x4d6745['item']['getAttribute'](_0x2a44b3);if(!_0x3766e9['has'](_0x199622)&&!_0x5a1c22['has'](_0x199622)){if(_0x42f60f['has'](_0x199622))_0x4c2687++;else{if(_0x199622!=_0x317ca6[_0x4c2687]){const _0x5087ed=_0x5e9a1c['get'](_0x199622)||_0x5e9a1c['get'](_0x317ca6[_0x4c2687]);for(;_0x199622!=_0x317ca6[_0x4c2687];)_0x42f60f['has'](_0x317ca6[_0x4c2687])||(_0x5a1c22['set'](_0x317ca6[_0x4c2687],_0x5087ed),_0x5e9a1c['set'](_0x317ca6[_0x4c2687],_0x5087ed)),_0x4c2687++;}_0x4c2687++;}}}}for(const _0x1239ae of _0x4d28c3){const _0xb79ecf=_0x22503f['insertions'][_0x1239ae];for(const _0x157a38 of _0xb79ecf){const _0x43eb71=this['_getVidAttributeName'](_0x157a38),_0x3f3fcc=_0x157a38['item']['getAttribute'](_0x43eb71);if(_0x5a1c22['has'](_0x3f3fcc)){const _0x6e75c1=_0x5a1c22['get'](_0x3f3fcc);_0x42f60f['has'](_0x3f3fcc)||_0x42f60f['set'](_0x3f3fcc,{..._0x6e75c1}),_0x3766e9['set'](_0x3f3fcc,{..._0x6e75c1});}}}for(const _0x5e66b2 of _0x42f60f['keys']())_0x5e66b2>=this['_startingRevisionId']&&_0x42f60f['delete'](_0x5e66b2);const _0x5a17ae=new Map();for(const _0x2739c6 of _0x4d28c3){let _0x282110=_0x22503f['insertions'][_0x2739c6];for(const _0x6114a of _0x282110)if(_0x6114a['item']['is']('element','tableCell')){const _0x1660e5=this['_getVidAttributeName'](_0x6114a),_0x452673=_0x6114a['item']['getAttribute'](_0x1660e5);if(_0x3766e9['has'](_0x452673)){const _0x9be6bf=_0x6114a['item']['parent']['parent']['getAttribute']('vid_start'),_0x2677e9=_0x5a17ae['get'](_0x9be6bf)||new Set();_0x2677e9['add'](_0x3766e9['get'](_0x452673)['userId']),_0x5a17ae['set'](_0x9be6bf,_0x2677e9);}}_0x282110=_0x22503f['deletions'][_0x2739c6];for(const _0x5d46d3 of _0x282110)if(_0x5d46d3['item']['is']('element','tableCell')){const _0x4b834a=this['_getVidAttributeName'](_0x5d46d3),_0x11e95a=_0x5d46d3['item']['getAttribute'](_0x4b834a);if(_0x42f60f['has'](_0x11e95a)){const _0x5bc843=_0x5d46d3['item']['parent']['parent']['getAttribute']('vid_start'),_0x12ce3d=_0x5a17ae['get'](_0x5bc843)||new Set();_0x12ce3d['add'](_0x42f60f['get'](_0x11e95a)['userId']),_0x5a17ae['set'](_0x5bc843,_0x12ce3d);}}for(const _0xecb24f of _0x5a17ae['keys']())(_0x3766e9['has'](_0xecb24f)||_0x42f60f['has'](_0xecb24f))&&_0x5a17ae['delete'](_0xecb24f);}for(const _0x35972d of _0x4d28c3){const _0x2609a8=_0x22503f['insertions'][_0x35972d];let _0x535f6c=null,_0x480dc1=null;for(const _0x36c0b2 of _0x2609a8){const _0x240b85=this['_getVidAttributeName'](_0x36c0b2),_0x5b6c71=_0x36c0b2['item']['getAttribute'](_0x240b85),_0x466251=_0x5a17ae['get'](_0x5b6c71);_0x466251&&'elementStart'==_0x36c0b2['type']&&(_0x535f6c=Array['from'](_0x466251)[0x0],_0x480dc1=_0x36c0b2['item']['getAttribute']('vid_end')),_0x535f6c&&(_0x42f60f['set'](_0x5b6c71,{'userId':_0x535f6c}),_0x3766e9['set'](_0x5b6c71,{'userId':_0x535f6c})),_0x5b6c71==_0x480dc1&&(_0x535f6c=null,_0x480dc1=null);}}const _0x2169a3={},_0x2f82a6=new Set();for(const _0x4806ed of _0x4d28c3){const _0x23b030=_0x900ec1['deletions'][_0x4806ed],_0x19f954=_0x900ec1['insertions'][_0x4806ed];for(const {userId:_0x3be527}of this['_touchedMarkers']['values']())null!==_0x3be527&&_0x2f82a6['add'](_0x3be527);for(const {userId:_0x5898fe}of this['_touchedRoots']['values']())null!==_0x5898fe&&_0x2f82a6['add'](_0x5898fe);this['_markChanges'](_0x19f954,_0x22503f['insertions'][_0x4806ed],_0x3766e9,'insertion',_0x2f82a6),this['_markChanges'](_0x23b030,_0x22503f['deletions'][_0x4806ed],_0x42f60f,'deletion',_0x2f82a6),_0x2169a3[_0x4806ed]={'insertions':this['_prepareViewToSave'](_0x19f954),'deletions':this['_prepareViewToSave'](_0x23b030),'attachChange':this['_touchedRoots']['get'](_0x4806ed)||null,'attributesBefore':_0x4ec41c(this['_baseRootsAttributes']['get'](_0x4806ed))||{},'attributesAfter':_0x4ec41c(this['_diffRootsAttributes']['get'](_0x4806ed))};}return{'diffData':_0x2169a3,'authorsIds':Array['from'](_0x2f82a6)};}['_processRootBeforeSave'](_0x42260d){for(const [,_0x2d6d57]of _0x42260d['markers']){const _0x12401f=_0x2d6d57['start']['getAncestors']()['filter'](_0x4c2578=>'tableCell'==_0x4c2578['name']);for(const _0x39c1f4 of _0x12401f)0x1==_0x39c1f4['childCount']&&_0x39c1f4['getChild'](0x0)['is']('element','paragraph')&&_0x39c1f4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x39c16f){this['_processRootBeforeSave'](_0x39c16f);const _0xf4ff84=this['editor']['data']['toView'](_0x39c16f,{}),_0x46a912=Array['from'](_0xf4ff84['getChildren']())['map'](_0x865874=>this['_getViewJson'](_0x865874));return JSON['stringify'](_0x46a912);}['_getViewJson'](_0x48a5f3){if(_0x48a5f3['is']('$text'))return _0x48a5f3['data'];{const _0x4d3843=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x78ad75=_0x48a5f3,_0x19cbb2=this['editor']['data']['htmlProcessor']['domConverter'],_0x521a65={'type':_0x4d3843['_getTypeCharForViewElement'](_0x78ad75),'name':_0x78ad75['name'],'attributes':Array['from'](_0x78ad75['getAttributes']()),'children':Array['from'](_0x78ad75['getChildren']())['map'](_0x5826aa=>this['_getViewJson'](_0x5826aa))};if(_0x48a5f3['is']('uiElement')&&'$comment'!=_0x48a5f3['name']){const _0xdb3ca9=_0x48a5f3['render'](_0x19cbb2['domDocument'],_0x19cbb2);_0x521a65['children']['push'](_0xdb3ca9['outerHTML']);}else{if(_0x48a5f3['is']('rawElement')){const _0x31b9ef=_0x19cbb2['domDocument']['createElement'](_0x78ad75['name']);_0x48a5f3['render'](_0x31b9ef,_0x19cbb2),_0x521a65['children']['push'](_0x31b9ef['innerHTML']);}}const _0x5ea519=Array['from'](_0x78ad75['getCustomProperties']());_0x5ea519['length']>0x0&&(_0x521a65['customProperties']=_0x5ea519);const _0x4d8d56=_0x78ad75['getFillerOffset']();return null!==_0x4d8d56&&(_0x521a65['fillerOffset']=_0x4d8d56),_0x521a65;}}['_markChanges'](_0xe1662e,_0x1be8e8,_0x5eeb1f,_0x5aa9e5,_0x3d83ef){let _0x5f1d6c=null,_0xcd1570=null,_0x56db2b=0x0;const _0x32979b=this['editor']['model'];for(let _0x276210=0x0;_0x276210<_0x1be8e8['length'];_0x276210++){const _0x3433d4=this['_getVidAttributeName'](_0x1be8e8[_0x276210]),_0x556f86=_0x1be8e8[_0x276210]['item']['getAttribute'](_0x3433d4),_0x1e1bcc=_0x5eeb1f['get'](_0x556f86),_0x585261=_0x276210==_0x1be8e8['length']-0x1;(!_0x5f1d6c&&_0x1e1bcc&&(_0x5f1d6c=_0x1e1bcc,_0xcd1570=_0x1be8e8[_0x276210]),_0x5f1d6c&&(!_0x1e1bcc||_0x1e1bcc['userId']!=_0x5f1d6c['userId']))&&(_0x1413eb(_0x1e1bcc,F(_0xcd1570,_0xe1662e,_0x32979b),F(_0x1be8e8[_0x276210],_0xe1662e,_0x32979b)),_0x5f1d6c=_0x1e1bcc||null,_0xcd1570=_0x1e1bcc?_0x1be8e8[_0x276210]:null),_0x5f1d6c&&_0x585261&&_0x1413eb(_0x1e1bcc,F(_0xcd1570,_0xe1662e,_0x32979b),B(_0x1be8e8[_0x276210],_0xe1662e,_0x32979b));}function _0x1413eb(_0x34951a,_0x520b2e,_0x5288ab){const _0x5827cb=_0x5f1d6c['userId'],_0x45ade0='revision:'+_0x5aa9e5+':'+_0x5827cb+':'+_0x56db2b++,_0x524c68=_0x32979b['createRange'](_0x520b2e,_0x5288ab);_0xe1662e['markers']['set'](_0x45ade0,_0x524c68),null!==_0x5827cb&&_0x3d83ef['add'](_0x5827cb);}}['_getVidAttributeName'](_0x43a9bb){switch(_0x43a9bb['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x521b3d,_0x58d114){_0x521b3d['baseVersion']=null;for(const _0x267297 in _0x521b3d){const _0x127df9=_0x521b3d[_0x267297];if(_0x127df9 instanceof vt){const _0x1484bd=_0x58d114['get'](_0x127df9['root']['rootName']);_0x521b3d[_0x267297]=this['_fixPosition'](_0x127df9,_0x1484bd);}if(_0x127df9 instanceof ft){const _0x173918=_0x58d114['get'](_0x127df9['root']['rootName']);_0x521b3d[_0x267297]=this['_fixRange'](_0x127df9,_0x173918);}'root'===_0x267297&&(_0x521b3d['root']=_0x58d114['get'](_0x521b3d['root']['rootName']));}}['_fixRange'](_0x2bcfa5,_0x47402c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2bcfa5['start'],_0x47402c),this['_fixPosition'](_0x2bcfa5['end'],_0x47402c));}['_fixPosition'](_0x132cd2,_0x54aaf1){return this['editor']['model']['createPositionFromPath'](_0x54aaf1,_0x132cd2['path'],_0x132cd2['stickiness']);}['_handleInsertOperation'](_0xed679d){const _0x31866c=this['_idsRoots']['get'](_0xed679d['position']['root']['rootName']),_0x76ea2e=this['_fixPosition'](_0xed679d['position'],_0x31866c),_0x5acfe7=null===_0xed679d['_authorId']?null:_0xed679d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21324c=_0x76ea2e['parent'],_0x4c43a4=this['_revisionId'],_0x5f5922=[];for(const _0x6ca7d of _0xed679d['nodes'])if(_0x6ca7d['is']('element'))_0x5f5922['push'](this['_makeIdsRoot'](_0x6ca7d));else{for(let _0x523bc3=0x0;_0x523bc3<_0x6ca7d['offsetSize'];_0x523bc3++)_0x5f5922['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5c44fb=this['_revisionId'];for(let _0x598e9a=_0x4c43a4;_0x598e9a<_0x5c44fb;_0x598e9a++)this['_touched']['set'](_0x598e9a,{'userId':_0x5acfe7});_0x21324c['_insertChild'](_0x76ea2e['offset'],_0x5f5922);}['_handleMoveOperation'](_0x19e521){(_0x19e521=this['_cloneOperation'](_0x19e521,this['_idsRoots']))['_execute']();const _0x2e4e6b=null===_0x19e521['_authorId']?null:_0x19e521['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c0812=_0x19e521['getMovedRangeStart'](),_0x544475=_0x5c0812['parent'],_0x2200d1=_0x5c0812['offset'];!function _0x5597e7(_0x3bdd44,_0x38240e,_0x30550a,_0x3f43b0){for(let _0xebe929=_0x30550a;_0xebe929<_0x3f43b0;_0xebe929++){const _0x408e77=_0x38240e['getChild'](_0xebe929);_0x408e77['is']('element','$text')?_0x3bdd44['set'](_0x408e77['getAttribute']('vid'),{'userId':_0x2e4e6b}):(_0x3bdd44['set'](_0x408e77['getAttribute']('vid_start'),{'userId':_0x2e4e6b}),_0x5597e7(_0x3bdd44,_0x408e77,0x0,_0x408e77['childCount']),_0x3bdd44['set'](_0x408e77['getAttribute']('vid_end'),{'userId':_0x2e4e6b}));}}(this['_touched'],_0x544475,_0x2200d1,_0x2200d1+_0x19e521['howMany']);}['_handleMergeOperation'](_0x327f13){const _0x209f88=null===(_0x327f13=this['_cloneOperation'](_0x327f13,this['_idsRoots']))['_authorId']?null:_0x327f13['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16036e=_0x327f13['targetPosition']['parent'],_0x337cb9=_0x327f13['sourcePosition']['parent'],_0x53c778=_0x16036e['getAttribute']('vid_end'),_0x5480b7=_0x337cb9['getAttribute']('vid_start');_0x16036e['_setAttribute']('vid_end',_0x337cb9['getAttribute']('vid_end')),_0x337cb9['_setAttribute']('vid_end',_0x53c778),this['_touched']['set'](_0x5480b7,{'userId':_0x209f88}),this['_touched']['set'](_0x53c778,{'userId':_0x209f88}),_0x327f13['_execute']();}['_handleSplitOperation'](_0x19ab3c){const _0x51f4ce=null===(_0x19ab3c=this['_cloneOperation'](_0x19ab3c,this['_idsRoots']))['_authorId']?null:_0x19ab3c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d608f=_0x19ab3c['graveyardPosition'],_0x1e5995=_0x19ab3c['splitPosition']['parent'];_0x19ab3c['_execute']();const _0x517e57=_0x1e5995['getAttribute']('vid_end'),_0x301039=_0x19ab3c['insertionPosition']['nodeAfter'];if(_0x3d608f){const _0x2b3839=_0x301039['getAttribute']('vid_end'),_0x228906=_0x1e5995['getAttribute']('vid_end');_0x1e5995['_setAttribute']('vid_end',_0x2b3839),_0x301039['_setAttribute']('vid_end',_0x228906),this['_touched']['set'](_0x1e5995['getAttribute']('vid_end'),{'userId':_0x51f4ce}),this['_touched']['set'](_0x301039['getAttribute']('vid_start'),{'userId':_0x51f4ce});}else{const _0x201768=this['_revisionId']++,_0x47d7c9=this['_revisionId']++;_0x1e5995['_setAttribute']('vid_end',_0x201768),_0x301039['_setAttribute']('vid_start',_0x47d7c9),_0x301039['_setAttribute']('vid_end',_0x517e57),this['_touched']['set'](_0x201768,{'userId':_0x51f4ce}),this['_touched']['set'](_0x47d7c9,{'userId':_0x51f4ce});}}['_handleMarkerOperation'](_0x4407a0){if(!_0x4407a0['affectsData'])return;const _0x2c3f1a=(_0x4407a0=this['_cloneOperation'](_0x4407a0,this['_diffRoots']))['oldRange']?_0x4407a0['oldRange']['root']:null,_0x8def55=_0x4407a0['newRange']?_0x4407a0['newRange']['root']:null;_0x2c3f1a&&this['_markers']['delete'](_0x4407a0['name']),_0x8def55&&this['_markers']['set'](_0x4407a0['name'],_0x4407a0['newRange']['clone']());const _0x330f7d=null===_0x4407a0['_authorId']?null:_0x4407a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c1faa=_0x4407a0['name'];if(!this['_touchedMarkers']['has'](_0x1c1faa))return void this['_touchedMarkers']['set'](_0x1c1faa,{'range':_0x4407a0['oldRange'],'userId':_0x330f7d});const _0x44cea8=this['_touchedMarkers']['get'](_0x1c1faa),_0xeea72f=_0x44cea8['range'],_0xb81985=_0x4407a0['newRange'];null==_0xeea72f&&null==_0xb81985||_0xeea72f&&_0xb81985&&_0xeea72f['isEqual'](_0xb81985)?this['_touchedMarkers']['delete'](_0x4407a0['name']):_0x44cea8['userId']=_0x330f7d;}['_handleRootOperation'](_0x5590d6,_0x14927c){this['_diffRoots']['has'](_0x5590d6['rootName'])?this['_diffRoots']['get'](_0x5590d6['rootName'])['_isAttached']=_0x5590d6['isAdd']:(this['_diffRoots']['set'](_0x5590d6['rootName'],P(_0x5590d6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5590d6['rootName'],{}),_0x14927c&&this['_idsRoots']['set'](_0x5590d6['rootName'],P(_0x5590d6['rootName'],!0x0)));const _0xf2e826=null===_0x5590d6['_authorId']?null:_0x5590d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5743b7=this['_touchedRoots']['get'](_0x5590d6['rootName']);_0x5743b7&&_0x5743b7['userId']===_0xf2e826?this['_touchedRoots']['delete'](_0x5590d6['rootName']):this['_touchedRoots']['set'](_0x5590d6['rootName'],{'userId':_0xf2e826,'isAttached':_0x5590d6['isAdd']});}['_handleRootAttributeOperation'](_0x38c12b){const _0x343d80=this['_diffRootsAttributes']['get'](_0x38c12b['root']['rootName']);null===_0x38c12b['newValue']?delete _0x343d80[_0x38c12b['key']]:_0x343d80[_0x38c12b['key']]=_0x38c12b['newValue'];}}function N(_0x1b6716){const _0x85a385=P(_0x1b6716['rootName'],_0x1b6716['isAttached']());for(const _0x2c96f7 of _0x1b6716['getChildren']()){const _0x36f279=_0x2c96f7['_clone'](!0x0);_0x85a385['_appendChild'](_0x36f279);}return _0x85a385;}function P(_0x5e0472,_0x1f5694=!0x0){const _0xade8c7=new gt();return _0xade8c7['rootName']=_0x5e0472,_0xade8c7['_isAttached']=_0x1f5694,_0xade8c7['isAttached']=()=>_0xade8c7['_isAttached'],_0xade8c7;}function F(_0x37392c,_0xad64b4,_0xdd6d56){const _0x20c6cb='elementEnd'==_0x37392c['type']?_0xdd6d56['createPositionAt'](_0x37392c['item'],'end'):_0xdd6d56['createPositionBefore'](_0x37392c['item']);return _0xdd6d56['createPositionFromPath'](_0xad64b4,_0x20c6cb['path'],_0x20c6cb['stickiness']);}function B(_0xd6d224,_0x3b8b49,_0x5a8c52){const _0x1340ba='elementStart'==_0xd6d224['type']?_0x5a8c52['createPositionAt'](_0xd6d224['item'],0x0):_0x5a8c52['createPositionAfter'](_0xd6d224['item']);return _0x5a8c52['createPositionFromPath'](_0x3b8b49,_0x1340ba['path'],_0x1340ba['stickiness']);}class os extends _0x3cddfa{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1745b0,_0x46ec4c){super(_0x1745b0),this['focusTracker']=new _0xe1bf60(),this['keystrokes']=new _0x483130(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x46ec4c),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'](),_0x59d0e6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x31ca67=_0x4ea6c4=>_0x4ea6c4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x31ca67),this['keystrokes']['set']('arrowleft',_0x31ca67),this['keystrokes']['set']('arrowup',_0x31ca67),this['keystrokes']['set']('arrowdown',_0x31ca67);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5be870){this['revisionNameInputView']['fieldView']['element']['value']=_0x5be870['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xaeafca){const _0xb244e0=new nt(this['locale'],ti),_0xfbc647=_0xb244e0['fieldView'];_0xfbc647['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1c0a33=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xaeafca&&(_0x1c0a33+='\x20('+g(this['locale'],'optional')+')'),(_0xb244e0['label']=_0x1c0a33,_0xfbc647['on']('input',()=>{this['revisionNameInputValue']=_0xfbc647['element']['value']['trim']();}),_0xb244e0);}}class f extends _0x5bfc96{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x31256b=this['editor'],_0x37756a=_0x31256b['plugins']['get']('RevisionTracker');_0x31256b['ui']['componentFactory']['add']('revisionHistory',_0x342fbc=>{const _0x4c0d37=_0x3750d8(_0x342fbc),_0x2d206f=_0x4c0d37['panelView']['children'],_0x3da47d=new _0x5e0f1e(_0x342fbc),_0x288441=new te(_0x342fbc),_0x1c65a0=new _0x54f12b(_0x342fbc),_0x26d465=new te(_0x342fbc),_0x44a688=new _0x54f12b(_0x342fbc);return _0x4c0d37['bind']('isEnabled')['to'](_0x37756a,'isReady',_0x37756a,'isEnabled',_0x31256b,'isReadOnly',(_0x4b46b5,_0x318c13,_0x5c3d26)=>_0x4b46b5&&_0x318c13&&!_0x5c3d26),_0x4c0d37['buttonView']['set']({'icon':_0x329d0b,'label':g(_0x342fbc,'Revision\x20history'),'tooltip':!0x0}),_0x1c65a0['set']({'label':g(_0x342fbc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1c65a0['bind']('isEnabled')['to'](_0x37756a,'isReady',_0x37756a,'isEnabled',_0x31256b,'isReadOnly',(_0x192a18,_0x51fb17,_0x54c871)=>_0x192a18&&_0x51fb17&&!_0x54c871),_0x1c65a0['on']('execute',()=>this['_showDialog']()),_0x44a688['set']({'label':g(_0x342fbc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x44a688['bind']('isEnabled')['to'](_0x37756a,'isReady',_0x31256b,'isReadOnly',(_0x2877e3,_0x4e7621)=>_0x2877e3&&!_0x4e7621),_0x44a688['on']('execute',()=>{_0x31256b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4c0d37['isOpen']=!0x1,_0x31256b['editing']['view']['focus']();}),_0x288441['children']['add'](_0x1c65a0),_0x26d465['children']['add'](_0x44a688),_0x3da47d['role']='menu',_0x3da47d['items']['addMany']([_0x288441,_0x26d465]),_0x2d206f['add'](_0x3da47d),_0x4c0d37;}),_0x31256b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x406b3a=this['editor'],_0x3822a1=_0x406b3a['locale'],_0x49912f=new _0x5efd36(_0x3822a1),_0x5f493b=new _0x4957e5(_0x3822a1);_0x49912f['buttonView']['set']({'icon':_0x329d0b,'label':g(_0x3822a1,'Revision\x20history')});const _0x52ca28=new _0x305113(_0x3822a1,_0x49912f),_0x2896c9=new _0x51297c(_0x3822a1);_0x2896c9['set']({'label':g(_0x3822a1,'Save\x20current\x20revision')}),_0x2896c9['delegate']('execute')['to'](_0x49912f),_0x2896c9['on']('execute',()=>{this['_showDialog']();}),_0x52ca28['children']['add'](_0x2896c9),_0x5f493b['items']['add'](_0x52ca28);const _0x1b9069=new _0x305113(_0x3822a1,_0x49912f),_0x410459=new _0x51297c(_0x3822a1);return _0x410459['set']({'label':g(_0x3822a1,'Open\x20revision\x20history')}),_0x410459['delegate']('execute')['to'](_0x49912f),_0x410459['on']('execute',()=>{_0x406b3a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1b9069['children']['add'](_0x410459),_0x5f493b['items']['add'](_0x1b9069),_0x49912f['panelView']['children']['add'](_0x5f493b),_0x49912f;}['_showDialog'](){const _0x387034=this['editor'],_0x2d257a=_0x387034['locale'],_0x586c6b=_0x387034['plugins']['get']('Dialog'),_0x13ad7a=_0x387034['plugins']['get']('RevisionTracker');function _0x1e3b14(_0x511732){_0x387034['config']['get']('revisionHistory.requireRevisionName')&&''===_0x511732['revisionName']?_0x511732['revisionNameInputView']['errorText']=g(_0x2d257a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x387034['plugins']['get'](u)['saveRevision']({'name':_0x511732['revisionName']}),_0x586c6b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e3b14(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x586c6b['show']({'id':'revisionSave','title':g(_0x2d257a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x387034['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x586c6b['hide']()},{'label':g(_0x387034['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xd03390){_0xd03390['bind']('isEnabled')['to'](_0x13ad7a,'isReady',_0x13ad7a,'isEnabled',_0x387034,'isReadOnly',(_0x29304a,_0x4a89c1,_0x5617e3)=>_0x29304a&&_0x4a89c1&&!_0x5617e3);},'onExecute':()=>_0x1e3b14(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a8ada=this['editor'],_0xcd7f5d=_0x2a8ada['locale'];this['_saveRevisionFormView']=new os(_0xcd7f5d,_0x2a8ada['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x3cddfa{['changeId'];['_model'];constructor(_0x195c39,_0x5638d0){super(_0x195c39),this['_model']=_0x5638d0,this['changeId']=_0x5638d0['id'];const _0x27e98c=this['bindTemplate'],_0x2fe3a2=g(_0x195c39,_0x5638d0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5638d0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5638d0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x27e98c['to']('type',_0x540177=>'ck-revision-change__'+_0x540177)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2fe3a2}]},{'text':'\x20'+_0x5638d0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x38c0dd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e1e4b){super(),this['id']=_0x3e1e4b['id']||_0x27ee83(),this['author']=_0x3e1e4b['author'],this['type']=_0x3e1e4b['type'],this['data']=_0x3e1e4b['data']||{},this['rootName']=_0x3e1e4b['rootName'],this['set']('createdAt',_0x3e1e4b['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(_0x246a23,_0x121e04){this['newRevisionId']=_0x246a23,this['oldRevisionId']=_0x121e04,this['changes']=new _0x32397e();}['_setChanges'](_0x40027e){for(const _0x5a9fc4 of _0x40027e)this['changes']['add'](_0x5a9fc4);}}class m extends _0x5bfc96{['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[_0x688979,_0x3a7d79,I,V];}constructor(_0x9d81ee){super(_0x9d81ee),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',(_0x168525,_0x4bb9ab,_0x5656e8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x366436=>{for(const _0x233f79 of this['editor']['editing']['view']['document']['roots'])_0x5656e8?_0x366436['removeClass']('ck-editor__editable__overlay',_0x233f79):_0x366436['addClass']('ck-editor__editable__overlay',_0x233f79);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x53724e=>null!==_0x53724e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x332633,_0x241076,_0x35338c)=>_0x332633&&_0x35338c?_0x241076['changes']['getIndex'](_0x35338c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x32cc9e,_0x483bb1)=>_0x32cc9e?_0x483bb1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3a7d79);}['init'](){const _0x56590e=this['editor'],_0x578667=new pt(_0x56590e,{'direction':'backward'}),_0x285e4e=new pt(_0x56590e,{'direction':'forward'});(_0x56590e['commands']['add']('showPreviousChange',_0x578667),_0x56590e['commands']['add']('showNextChange',_0x285e4e),_0x56590e['commands']['add']('restoreRevision',new wt(_0x56590e)),this['on']('change:numberOfChanges',()=>{_0x578667['refresh'](),_0x285e4e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x56590e['enableReadOnlyMode']('revision-viewer'),_0x56590e['plugins']['has']('WidgetToolbarRepository'))&&_0x56590e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c8e24){return await this['_utils']['loadRevisionData'](_0x1c8e24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c8e24);}async['getRevisionRootsAttributes'](_0x4a910d){return await this['_utils']['loadRevisionData'](_0x4a910d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4a910d);}async['compare'](_0x16b0fc,_0x23fdab,_0x1f33df=!0x1){if(!this['isEnabled'])return;const _0x28b6f1=this['diff'],_0x29f5bd=this['repository'],_0x57973a='string'==typeof _0x16b0fc?_0x29f5bd['getRevision'](_0x16b0fc):_0x16b0fc,_0x26b39d='string'==typeof _0x23fdab?_0x29f5bd['getRevision'](_0x23fdab):_0x23fdab,_0x50ff63=_0x57973a['id'],_0x368042=_0x26b39d?_0x26b39d['id']:null;if(!_0x1f33df&&this['diff']&&this['diff']['newRevisionId']===_0x50ff63&&this['diff']['oldRevisionId']===_0x368042)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x50ff63,_0x368042);const _0x5e0a66=this['_getRevisionsRange'](_0x57973a,_0x26b39d,!0x0)['map'](_0x364e66=>this['_utils']['loadRevisionData'](_0x364e66,this['adapter']));return _0x5e0a66['push'](new Promise(_0x523a64=>{setTimeout(_0x523a64,0x14);})),Promise['all'](_0x5e0a66)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x14928c=this['_getDiff'](_0x50ff63,_0x368042);for(const _0x5d1596 of _0x14928c['changes'])this['_changeIdToChange']['set'](_0x5d1596['id'],_0x5d1596);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x48af5e=>{for(const _0x548809 of this['editor']['model']['document']['getRootNames']())_0x48af5e['detachRoot'](_0x548809);for(const _0x1d56d9 of Object['keys'](_0x14928c['model'])){const _0x58ac08=_0x48af5e['addRoot'](_0x1d56d9);for(const _0x3c982b of Object['keys'](_0x14928c['attributes'][_0x1d56d9]))_0x48af5e['setAttribute'](_0x3c982b,_0x14928c['attributes'][_0x1d56d9][_0x3c982b],_0x58ac08);_0x48af5e['insert'](_0x14928c['model'][_0x1d56d9],_0x58ac08,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x14928c['changes'])),this['isReady']=!0x0;})['catch'](_0x23e803=>{console['error'](_0x23e803),this['_cleanUp'](),_0x28b6f1&&(this['diff']=_0x28b6f1),this['isReady']=!0x0;});}['addRevisionData'](_0x475136,_0x22bead){const _0x516e0d=this['repository']['createRevision'](_0x475136);return _0x516e0d['on']('_update',(_0xf38de2,_0x184047,_0x3db8f2)=>_0x22bead(_0x184047,_0x3db8f2,_0x516e0d)),this['repository']['addRevision'](_0x516e0d),_0x516e0d;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x38fdcb=>{for(const _0x17d53c of this['editor']['model']['document']['getRootNames']())_0x38fdcb['detachRoot'](_0x17d53c);});}['_sortAndFilterDiffChanges'](_0xbbeb08){const _0x3d8acd=[],_0x916aad=new Map();for(const _0x3a5c1b of this['editor']['model']['document']['getRootNames']()){const _0x1a697e=this['editor']['editing']['view']['getDomRoot'](_0x3a5c1b);if(!_0x1a697e)continue;const _0x3598ad=_0x1a697e['getClientRects']()['item'](0x0);_0x3598ad&&(_0x3d8acd['push'](_0x3a5c1b),_0x916aad['set'](_0x3a5c1b,_0x3598ad));}return _0x3d8acd['sort']((_0x4989df,_0x196d1f)=>{const _0x26583c=_0x916aad['get'](_0x4989df),_0x10385b=_0x916aad['get'](_0x196d1f);return _0x26583c['y']-_0x10385b['y']||_0x26583c['x']-_0x10385b['x'];}),(_0xbbeb08=_0xbbeb08['filter'](_0x4b78ac=>_0x3d8acd['includes'](_0x4b78ac['rootName'])))['sort']((_0x3ce2e8,_0x2ab363)=>_0x3d8acd['indexOf'](_0x3ce2e8['rootName'])-_0x3d8acd['indexOf'](_0x2ab363['rootName'])),_0xbbeb08;}['_makeTape'](_0x4d12c5){const _0x306c13=Array['from'](_0x4d12c5['markers'])['filter'](([_0x3359f1,_0x4676ca])=>_0x3359f1['startsWith']('revision:')&&!_0x4676ca['isCollapsed']),_0x52edd2=Array['from'](this['editor']['model']['createRangeIn'](_0x4d12c5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x306c13['length'])for(const _0x3a95f6 of _0x52edd2){const [_0x19a5ce,_0x3917d1]=_0x306c13[0x0],[,_0x223291,_0x558873]=_0x19a5ce['split'](':');if(_0x3917d1['end']['isEqual'](_0x3a95f6['nextPosition'])&&_0x306c13['shift'](),(_0x3a95f6['previousPosition']['isEqual'](_0x3917d1['start'])||_0x3a95f6['previousPosition']['isAfter'](_0x3917d1['start']))&&('insertion'==_0x223291?_0x3a95f6['isAdded']={'userId':_0x558873}:'deletion'==_0x223291&&(_0x3a95f6['isRemoved']={'userId':_0x558873})),0x0==_0x306c13['length'])break;}return _0x52edd2;}['_refreshStartEndIndex'](_0x315e22){const _0x39b26c=new Map();for(let _0xba2b2f=0x0;_0xba2b2f<_0x315e22['length'];_0xba2b2f++)'text'===_0x315e22[_0xba2b2f]['type']?(_0x315e22[_0xba2b2f]['item']['startIndex']=_0xba2b2f,_0x315e22[_0xba2b2f]['item']['endIndex']=_0xba2b2f):('elementStart'===_0x315e22[_0xba2b2f]['type']?_0x315e22[_0xba2b2f]['item']['startIndex']=_0xba2b2f:'elementEnd'===_0x315e22[_0xba2b2f]['type']&&(_0x315e22[_0xba2b2f]['item']['endIndex']=_0xba2b2f),_0x39b26c['set'](_0x315e22[_0xba2b2f]['id'],_0xba2b2f));for(const _0x37b668 of _0x39b26c['values']())'elementStart'===_0x315e22[_0x37b668]['type']?_0x315e22[_0x37b668]['item']['endIndex']=_0x39b26c['get'](_0x315e22[_0x37b668]['pairId']):'elementEnd'===_0x315e22[_0x37b668]['type']&&(_0x315e22[_0x37b668]['item']['startIndex']=_0x39b26c['get'](_0x315e22[_0x37b668]['pairId']));}['_processTape'](_0x1397d1){for(let _0x1b8a4b=0x0;_0x1b8a4b<_0x1397d1['length'];_0x1b8a4b++){if('elementStart'===_0x1397d1[_0x1b8a4b]['type'])_0x1397d1[_0x1b8a4b]['item']['startIndex']=_0x1b8a4b;else{if('elementEnd'===_0x1397d1[_0x1b8a4b]['type']){_0x1397d1[_0x1b8a4b]['item']['endIndex']=_0x1b8a4b;const _0xb9ba0f=_0x1397d1[_0x1b8a4b]['item']['startIndex'];_0x1397d1[_0xb9ba0f]['pairId']=_0x1397d1[_0x1b8a4b]['id'],_0x1397d1[_0x1b8a4b]['pairId']=_0x1397d1[_0xb9ba0f]['id'];}else _0x1397d1[_0x1b8a4b]['item']['startIndex']=_0x1b8a4b,_0x1397d1[_0x1b8a4b]['item']['endIndex']=_0x1b8a4b,_0x1397d1[_0x1b8a4b]['pairId']=null;}_0x1397d1[_0x1b8a4b]['markersStart']||(_0x1397d1[_0x1b8a4b]['markersStart']=[],_0x1397d1[_0x1b8a4b]['markersEnd']=[]);}}['_markInsertions'](_0xfabc3c,_0x5c565e){const _0x50e83c=_0xfabc3c['filter'](_0x14b8c1=>!_0x14b8c1['isAdded']);for(let _0x140fca=0x0;_0x140fca<_0x5c565e['length'];_0x140fca++)_0x5c565e[_0x140fca]['isAdded']&&(_0x50e83c[_0x140fca]['isAdded']=_0x5c565e[_0x140fca]['isAdded']);}['_getDiff'](_0xcbe3dd,_0x212e4b=null){const _0x1e31c2=this['repository']['getRevision'](_0xcbe3dd),_0x553afb=_0x212e4b?this['repository']['getRevision'](_0x212e4b):null,_0x12e47f=this['_getRevisionsRange'](_0x1e31c2,_0x553afb),_0x39bd2c=_0x12e47f[_0x12e47f['length']-0x1],_0x545e1b=new Map(),_0x5a7b8d={'model':{},'attributes':{},'changes':[]},_0x3f2c4b=new Set(),_0x277fd2=new Map();for(let _0x383de0=_0x12e47f['length']-0x1;_0x383de0>=0x0;_0x383de0--){const _0x2515a5=_0x12e47f[_0x383de0];for(const _0x503b40 of Object['keys'](_0x2515a5['diffData']))if(_0x2515a5['diffData'][_0x503b40]['attachChange']){const _0x120edb=_0x2515a5['diffData'][_0x503b40]['attachChange'];_0x120edb['isAttached']?(_0x3f2c4b['add'](_0x503b40),_0x277fd2['has'](_0x503b40)&&_0x277fd2['get'](_0x503b40)['userId']==_0x120edb['userId']?_0x277fd2['delete'](_0x503b40):_0x277fd2['set'](_0x503b40,_0x120edb)):_0x277fd2['has'](_0x503b40)?(_0x3f2c4b['delete'](_0x503b40),_0x277fd2['delete'](_0x503b40)):(_0x3f2c4b['add'](_0x503b40),_0x277fd2['set'](_0x503b40,_0x120edb));}else _0x3f2c4b['add'](_0x503b40);}for(const _0x27e597 of _0x3f2c4b){const _0x47d6d1=_0x277fd2['has'](_0x27e597)&&!_0x277fd2['get'](_0x27e597)['isAttached'];let _0x39a386=_0x47d6d1?_0x12e47f['length']-0x1:0x0;const _0x4e26af=_0x47d6d1?-0x1:0x1;for(;_0x12e47f[_0x39a386];){const _0x1f8f69=_0x12e47f[_0x39a386];if(_0x1f8f69['diffData'][_0x27e597]){const _0x48d879=_0x47d6d1?_0x1f8f69['diffData'][_0x27e597]['attributesBefore']:_0x1f8f69['diffData'][_0x27e597]['attributesAfter'];_0x5a7b8d['attributes'][_0x27e597]=_0x48d879?_0x4ec41c(_0x48d879):{};break;}_0x39a386+=_0x4e26af;}}for(const _0x2402c1 of _0x12e47f){_0x2402c1['model']={};for(const _0x173c03 of _0x2402c1['authors'])_0x545e1b['set'](_0x173c03['id'],_0x173c03);for(const _0x41eb1c of _0x3f2c4b){const _0x223ac0=_0x2402c1['diffData'][_0x41eb1c]?_0x2402c1['diffData'][_0x41eb1c]['insertions']:'[]',_0x246138=_0x2402c1['diffData'][_0x41eb1c]?_0x2402c1['diffData'][_0x41eb1c]['deletions']:'[]';_0x2402c1['model'][_0x41eb1c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x223ac0),'deletions':this['_utils']['_makeModelFromViewString'](_0x246138)};}}for(const _0x427c3c of _0x3f2c4b){let _0x182dac=null,_0x5626ed=0x0;const _0x57a435=new Map(Array['from'](_0x1e31c2['model'][_0x427c3c]['insertions']['markers'])['filter'](([_0x433672])=>!_0x433672['startsWith']('revision:')));let _0x2009af=0x0;for(const _0x1be253 of _0x12e47f){const _0x1b47af=this['_makeTape'](_0x1be253['model'][_0x427c3c]['insertions']);_0x1be253==_0x1e31c2?(_0x182dac=_0x1b47af,_0x5626ed=_0x182dac['length'],_0x182dac['forEach'](_0x58be70=>{_0x58be70['id']=_0x2009af++;}),this['_processTape'](_0x182dac)):this['_markInsertions'](_0x182dac,_0x1b47af);const _0x2a1d5=_0x182dac['filter'](_0x38b562=>!_0x38b562['isAdded'])['map'](_0x150fcb=>_0x150fcb['id']);let _0x137114=0x0;const _0x397bf7=this['_makeTape'](_0x1be253['model'][_0x427c3c]['deletions']);_0x397bf7['forEach'](_0x5723b0=>{_0x5723b0['isRemoved']?_0x5723b0['id']=_0x5626ed++:_0x5723b0['id']=_0x2a1d5[_0x137114++];}),this['_processTape'](_0x397bf7),this['_setDistance'](_0x182dac,'isAdded'),this['_setDistance'](_0x397bf7,'isRemoved'),_0x1be253==_0x1e31c2&&this['_markMarkers'](_0x182dac,_0x57a435),_0x182dac=this['_joinTapes'](_0x182dac,_0x397bf7),this['_refreshStartEndIndex'](_0x182dac),this['_setDistance'](_0x182dac,'isRemoved');}_0x182dac=_0x182dac['filter'](_0x175901=>!(_0x175901['isAdded']&&_0x175901['isRemoved']));const _0xf51f38=new Map(_0x39bd2c['model'][_0x427c3c]['deletions']['markers']),_0x55cda4=new Set(_0x57a435['keys']());for(const _0x13d661 of _0xf51f38['keys']())_0x55cda4['delete'](_0x13d661);this['_markSuggestions'](_0x182dac,_0x55cda4),this['_fixObsoleteTags'](_0x182dac),_0x182dac=this['_removeMissingPairs'](_0x182dac),_0x182dac=this['_markMismatchedRemovedTags'](_0x182dac),_0x182dac=this['_removeUnsupportedChanges'](_0x182dac);const {root:_0x63736,changes:_0xd28a0a}=this['_makeModelFromTape'](_0x182dac,_0x545e1b,_0x427c3c);_0x5a7b8d['model'][_0x427c3c]=_0x63736;const _0x50c302=_0x277fd2['get'](_0x427c3c);if(_0x50c302){const _0x17d045=_0x545e1b['get'](_0x50c302['userId']),_0x1a6792=new r({'author':_0x17d045,'type':_0x50c302['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x427c3c});_0xd28a0a['unshift'](_0x1a6792),_0x5a7b8d['attributes'][_0x427c3c]['revisionHistoryAttachChange']=_0x1a6792['id'];}_0x5a7b8d['changes']=_0x5a7b8d['changes']['concat'](_0xd28a0a);}return _0x5a7b8d;}['_markMarkers'](_0x4a8e37,_0x4bfa8f){for(let _0x15915d=0x0;_0x15915d<_0x4a8e37['length'];_0x15915d++)for(const [_0xf15c8e,_0x47fdcb]of _0x4bfa8f)!_0x47fdcb['isCollapsed']&&_0x47fdcb['start']['isEqual'](_0x4a8e37[_0x15915d]['previousPosition'])&&_0x4a8e37[_0x15915d]['markersStart']['push'](_0xf15c8e),_0x47fdcb['end']['isEqual'](_0x4a8e37[_0x15915d]['nextPosition'])&&_0x4a8e37[_0x15915d]['markersEnd']['push'](_0xf15c8e);}['_joinTapes'](_0x48d5b5,_0x35e9b4){let _0x2135f7=[],_0x12bd3d=0x0,_0x115f19=0x0;for(;_0x12bd3d<_0x48d5b5['length']||_0x115f19<_0x35e9b4['length'];){const _0x48684f=_0x48d5b5[_0x12bd3d]||{},_0x4e1b0e=_0x35e9b4[_0x115f19]||{};if(_0x48684f['id']==_0x4e1b0e['id'])_0x12bd3d++,_0x115f19++,_0x2135f7['push'](_0x48684f);else{if(_0x4e1b0e['isRemoved']&&_0x48684f['isAdded']){const {commonTape:_0x38aff0,iEnd:_0x6cee27,jEnd:_0x4f2b4c}=this['_threeWayMerge'](_0x48d5b5,_0x12bd3d,_0x35e9b4,_0x115f19);_0x2135f7=_0x2135f7['concat'](_0x38aff0),_0x12bd3d=_0x6cee27,_0x115f19=_0x4f2b4c;}else _0x4e1b0e['isRemoved']?(_0x115f19++,_0x2135f7['push'](_0x4e1b0e)):(_0x12bd3d++,_0x2135f7['push'](_0x48684f));}}return _0x2135f7;}['_markSuggestions'](_0x3ed0e3,_0x1548c8){const _0x4fb823=[];for(let _0x3ef3da=0x0;_0x3ef3da<_0x3ed0e3['length'];_0x3ef3da++){for(let _0x56092c=0x0;_0x56092c<_0x3ed0e3[_0x3ef3da]['markersStart']['length'];_0x56092c++){const _0x5ed9da=_0x3ed0e3[_0x3ef3da]['markersStart'][_0x56092c];if(!_0x1548c8['has'](_0x5ed9da))continue;const {group:_0xc9c7f2,type:_0x1986e5,authorId:_0x5585f8}=_0x399d04(_0x5ed9da);'revision-suggestion'!=_0xc9c7f2||'insertion'!=_0x1986e5&&'deletion'!=_0x1986e5||(_0x4fb823['unshift']({'type':_0x1986e5,'name':_0x5ed9da,'userId':_0x5585f8}),_0x3ed0e3[_0x3ef3da]['markersStart']['splice'](_0x56092c,0x1),_0x56092c--);}_0x34cf50(_0x3ed0e3[_0x3ef3da]);for(let _0x23d4c8=0x0;_0x23d4c8<_0x3ed0e3[_0x3ef3da]['markersEnd']['length'];_0x23d4c8++){const _0x259796=_0x3ed0e3[_0x3ef3da]['markersEnd'][_0x23d4c8];if(!_0x1548c8['has'](_0x259796))continue;const {group:_0x1dc596,type:_0x48d133}=_0x399d04(_0x259796);if('revision-suggestion'!=_0x1dc596||'insertion'!=_0x48d133&&'deletion'!=_0x48d133)continue;_0x3ed0e3[_0x3ef3da]['markersEnd']['splice'](_0x23d4c8,0x1),_0x23d4c8--;const _0x4a7fd7=_0x4fb823['findIndex'](_0x41034b=>_0x41034b['name']==_0x259796);_0x4a7fd7>-0x1&&_0x4fb823['splice'](_0x4a7fd7,0x1);}}function _0x399d04(_0x54e35c){const _0x3af699=_0x54e35c['split'](':');return{'group':_0x3af699[0x0],'type':_0x3af699[0x1],'subType':_0x3af699['length']>=0x5?_0x3af699[0x2]:null,'id':_0x3af699['length']<0x5?_0x3af699[0x2]:_0x3af699[0x3],'authorId':_0x3af699['length']<0x5?_0x3af699[0x3]:_0x3af699[0x4],'markerCount':0x6==_0x3af699['length']?_0x3af699[0x5]:null};}function _0x34cf50(_0x433df3){for(let _0x3f673b=0x0;_0x3f673b<_0x4fb823['length'];_0x3f673b++){if(_0x433df3['isAdded']&&'insertion'==_0x4fb823[_0x3f673b]['type'])return _0x433df3['isAddSuggestion']=_0x4fb823[_0x3f673b],void delete _0x433df3['isAdded'];if(!_0x433df3['isAdded']&&!_0x433df3['isRemoved']&&'deletion'==_0x4fb823[_0x3f673b]['type'])return void(_0x433df3['isRemoveSuggestion']=_0x4fb823[_0x3f673b]);}}}['_setDistance'](_0x2c5181,_0x1cd508){let _0x2596cb=0x0,_0xd44ac8=!0x1;const _0x5c8480=new Map();for(const _0x140769 of _0x2c5181)_0x140769[_0x1cd508]?_0xd44ac8&&(_0x2596cb++,_0xd44ac8=!0x1):(_0x2596cb++,_0xd44ac8=!0x0),_0x5c8480['set'](_0x140769['id'],_0x2596cb);for(let _0x1d9c84=0x0;_0x1d9c84<_0x2c5181['length'];_0x1d9c84++){if('isRemoved'==_0x1cd508&&_0x2c5181[_0x1d9c84]['isAdded']||'isAdded'==_0x1cd508&&_0x2c5181[_0x1d9c84]['isRemoved'])continue;if('text'==_0x2c5181[_0x1d9c84]['type']){_0x2c5181[_0x1d9c84]['distance']=0x0;continue;}const _0x5182f6=_0x5c8480['get'](_0x2c5181[_0x1d9c84]['pairId']),_0x2f2ea5=_0x5c8480['get'](_0x2c5181[_0x1d9c84]['id']);_0x2c5181[_0x1d9c84]['distance']=_0x5182f6-_0x2f2ea5;}}['_getRevisionsRange'](_0x1ed8c6,_0x175eeb,_0x572c3c=!0x1){const _0x36920c=[];let _0x412712=this['repository']['getIndex'](_0x1ed8c6),_0x50ef6d=this['repository']['getIndex'](_0x175eeb);for(-0x1==_0x50ef6d&&(_0x50ef6d=this['repository']['_revisions']['length'],_0x572c3c=!0x1);_0x412712<_0x50ef6d;)_0x36920c['push'](this['repository']['getRevision'](_0x412712)),_0x412712++;return _0x572c3c&&_0x36920c['push'](this['repository']['getRevision'](_0x412712)),_0x36920c;}['_threeWayMerge'](_0x57c55a,_0x26baea,_0x39deb7,_0xeb96fe){const _0x14b5be=this['editor']['model']['schema'];let _0x4350d1=_0x26baea;for(;_0x57c55a[_0x4350d1]&&_0x57c55a[_0x4350d1]['isAdded'];)_0x4350d1++;let _0x26168c=_0xeb96fe;for(;_0x39deb7[_0x26168c]&&_0x39deb7[_0x26168c]['isRemoved'];)_0x26168c++;_0x28971c(_0x57c55a,_0x26baea,_0x4350d1),_0x28971c(_0x39deb7,_0xeb96fe,_0x26168c);const _0x134bf0=_0x39deb7['slice'](_0xeb96fe,_0x26168c)['concat'](_0x57c55a['slice'](_0x26baea,_0x4350d1));return _0x134bf0['sort']((_0x559eaf,_0x3ecc20)=>_0x559eaf['side']!=_0x3ecc20['side']?_0x559eaf['side']-_0x3ecc20['side']:_0x559eaf['level']!=_0x3ecc20['level']?_0x559eaf['level']-_0x3ecc20['level']:_0x559eaf['distance']!=_0x3ecc20['distance']?_0x3ecc20['distance']-_0x559eaf['distance']:!!_0x559eaf['isAdded']!=!!_0x3ecc20['isAdded']?-0x1==_0x559eaf['side']||0x0==_0x559eaf['side']?_0x559eaf['isAdded']?-0x1:0x1:_0x559eaf['isAdded']?0x1:-0x1:_0x559eaf['index']-_0x3ecc20['index']),{'commonTape':_0x134bf0,'iEnd':_0x4350d1,'jEnd':_0x26168c};function _0x28971c(_0x545249,_0x78f262,_0x10bb16){let _0x45ad6a=-0x1,_0x340948=Number['POSITIVE_INFINITY'],_0x54fadb=!0x0;for(let _0x4af9cf=_0x78f262;_0x4af9cf<_0x10bb16;_0x4af9cf++)if(_0x14b5be['isInline'](_0x545249[_0x4af9cf]['item'])||(_0x54fadb=!0x1),_0x545249[_0x4af9cf]['item']['startIndex']<_0x78f262&&(_0x45ad6a=_0x4af9cf),_0x545249[_0x4af9cf]['item']['endIndex']>=_0x10bb16){_0x340948=_0x4af9cf;break;}_0x54fadb&&(_0x45ad6a=_0x10bb16-0x1);for(let _0x196dce=_0x78f262;_0x196dce<_0x10bb16;_0x196dce++)_0x545249[_0x196dce]['side']=_0x196dce<=_0x45ad6a?-0x1:_0x196dce<_0x340948?0x0:0x1,_0x545249[_0x196dce]['index']=_0x196dce;let _0x1fbef4=0x0;for(let _0x3ffdba=_0x78f262;_0x3ffdba<=_0x45ad6a;_0x3ffdba++)0x0==_0x545249[_0x3ffdba]['distance']?_0x545249[_0x3ffdba]['level']=_0x1fbef4:(_0x1fbef4++,_0x545249[_0x3ffdba]['level']=_0x1fbef4,_0x1fbef4++);for(let _0x48d0fc=_0x78f262;_0x48d0fc<_0x10bb16;_0x48d0fc++)0x0==_0x545249[_0x48d0fc]['side']&&(_0x545249[_0x48d0fc]['level']=_0x1fbef4);_0x1fbef4=0x0;for(let _0xaa47d7=_0x10bb16-0x1;_0xaa47d7>=_0x340948;_0xaa47d7--)0x0==_0x545249[_0xaa47d7]['distance']?_0x545249[_0xaa47d7]['level']=_0x1fbef4:(_0x1fbef4--,_0x545249[_0xaa47d7]['level']=_0x1fbef4,_0x1fbef4--);}}['_fixObsoleteTags'](_0x495d53){const _0x570398=new Map(),_0x863c4d=this['editor']['model']['schema'];for(let _0x1dce70=0x1;_0x1dce70<_0x495d53['length'];_0x1dce70++){let _0x5d055d,_0x97e0ff,_0x24452e;const _0xf7ba96=_0x495d53[_0x1dce70],_0x5507de=_0x495d53[_0x1dce70-0x1];if('text'==_0xf7ba96['type'])continue;if(_0xf7ba96['type']!=_0x5507de['type'])continue;if(!_0x863c4d['isBlock'](_0x5507de['item'])||_0x863c4d['isLimit'](_0x5507de['item']))continue;if(!_0x863c4d['isBlock'](_0xf7ba96['item'])||_0x863c4d['isLimit'](_0xf7ba96['item']))continue;if((_0x495d53[_0x1dce70]['isAdded']||_0x495d53[_0x1dce70]['isAddSuggestion'])&&_0x495d53[_0x1dce70-0x1]['isRemoved'])_0x5d055d=_0x495d53[_0x1dce70],_0x97e0ff=_0x495d53[_0x1dce70-0x1],_0x24452e=_0x1dce70-0x1;else{if(!_0x495d53[_0x1dce70]['isRemoved']||!_0x495d53[_0x1dce70-0x1]['isAdded']&&!_0x495d53[_0x1dce70-0x1]['isAddSuggestion'])continue;_0x5d055d=_0x495d53[_0x1dce70-0x1],_0x97e0ff=_0x495d53[_0x1dce70],_0x24452e=_0x1dce70;}const _0xc7bc2a=_0x5d055d['level']==_0x97e0ff['level'],_0x249dd9=Math['abs'](_0x5d055d['level'])<Math['abs'](_0x97e0ff['level'])&&0x0==_0x97e0ff['distance'];(_0xc7bc2a||_0x249dd9)&&(_0x570398['set'](_0x97e0ff['id'],_0x5d055d['id']),_0x495d53['splice'](_0x24452e,0x1),_0x1dce70--,_0x5d055d['isAdded']=!0x1);}for(let _0x5bdc63=0x0;_0x5bdc63<_0x495d53['length'];_0x5bdc63++)_0x570398['has'](_0x495d53[_0x5bdc63]['pairId'])&&(_0x495d53[_0x5bdc63]['pairId']=_0x570398['get'](_0x495d53[_0x5bdc63]['pairId']));}['_removeMissingPairs'](_0xdac1a3){const _0x2bb391=new Set(_0xdac1a3['map'](_0x18dc5a=>_0x18dc5a['id']));for(let _0x196000=0x0;_0x196000<_0xdac1a3['length'];_0x196000++)_0x2bb391['has'](_0xdac1a3[_0x196000]['pairId'])||0x0==_0xdac1a3[_0x196000]['distance']||(_0xdac1a3[_0x196000]['isIncorrect']=!0x0);return _0xdac1a3['filter'](_0x61e17e=>!_0x61e17e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5bfa8e){const _0x203bc9=new Set();for(let _0x4e5ab8=0x0;_0x4e5ab8<_0x5bfa8e['length'];_0x4e5ab8++){if(_0x203bc9['has'](_0x5bfa8e[_0x4e5ab8]['id'])&&_0x5bfa8e[_0x4e5ab8]['isRemoved']&&(_0x5bfa8e[_0x4e5ab8]['isIncorrect']=!0x0),_0x5bfa8e[_0x4e5ab8]['isIncorrect'])continue;if(0x0==_0x5bfa8e[_0x4e5ab8]['distance'])continue;if('elementStart'!=_0x5bfa8e[_0x4e5ab8]['type'])continue;if(null==_0x5bfa8e[_0x4e5ab8]['pairId'])continue;let _0x25f505=_0x4e5ab8+0x1,_0x6deb37=0x0;for(;_0x5bfa8e[_0x25f505]['id']!=_0x5bfa8e[_0x4e5ab8]['pairId'];)'elementStart'==_0x5bfa8e[_0x25f505]['type']?_0x6deb37++:'elementEnd'==_0x5bfa8e[_0x25f505]['type']&&_0x6deb37--,_0x25f505++;if(0x0!=_0x6deb37){if(_0x5bfa8e[_0x4e5ab8]['isRemoved'])_0x5bfa8e[_0x4e5ab8]['isIncorrect']=!0x0;else{for(;_0x25f505!=_0x4e5ab8;)_0x5bfa8e[_0x25f505]['isRemoved']&&0x0!=_0x5bfa8e[_0x25f505]['distance']&&(_0x5bfa8e[_0x25f505]['isIncorrect']=!0x0,_0x203bc9['add'](_0x5bfa8e[_0x25f505]['pairId'])),_0x25f505--;}}}return _0x5bfa8e['filter'](_0x51e76a=>!_0x51e76a['isIncorrect']);}['_removeUnsupportedChanges'](_0x1e5d01){const _0x157c0b=this['editor']['model']['schema'];for(let _0x2260a9=0x0;_0x2260a9<_0x1e5d01['length'];_0x2260a9++){if(!(_0x1e5d01[_0x2260a9]['isAdded']||_0x1e5d01[_0x2260a9]['isAddSuggestion']||_0x1e5d01[_0x2260a9]['isRemoved']||_0x1e5d01[_0x2260a9]['isRemoveSuggestion']))continue;if(0x0==_0x1e5d01[_0x2260a9]['distance'])continue;const _0x579182=_0x1e5d01[_0x2260a9]['item'];_0x157c0b['isBlock'](_0x579182)||_0x157c0b['isLimit'](_0x579182)||(_0x1e5d01[_0x2260a9]['isAdded']&&delete _0x1e5d01[_0x2260a9]['isAdded'],_0x1e5d01[_0x2260a9]['isAddSuggestion']&&delete _0x1e5d01[_0x2260a9]['isAddSuggestion'],_0x1e5d01[_0x2260a9]['isRemoveSuggestion']&&delete _0x1e5d01[_0x2260a9]['isRemoveSuggestion'],_0x1e5d01[_0x2260a9]['isRemoved']&&(_0x1e5d01[_0x2260a9]['isIncorrect']=!0x0));}return _0x1e5d01['filter'](_0x541cee=>!_0x541cee['isIncorrect']);}['_makeModelFromTape'](_0x50cc5b,_0x2ed8da,_0x1a6228){const _0x5c4b97=new gt(),_0x5a85a9=[],_0x516401=new Map(),_0x3c7469=this['editor']['model'],_0x513238=_0x3c7469['schema'],_0x96a5f2=[_0x5c4b97],_0x51b108={},_0x3c6e79={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2207c1=null;const _0xd84957=[0x0];for(let _0x40fafe=0x0;_0x40fafe<_0x50cc5b['length'];_0x40fafe++)if('elementStart'===_0x50cc5b[_0x40fafe]['type']){_0x50cc5b[_0x40fafe]['previousPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957);const _0x437dcf=new ut(_0x50cc5b[_0x40fafe]['item']['name'],_0x50cc5b[_0x40fafe]['item']['getAttributes']());_0x96a5f2[0x0]['_appendChild'](_0x437dcf),_0xd84957['push'](0x0),_0x96a5f2['unshift'](_0x437dcf),_0x50cc5b[_0x40fafe]['nextPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957);}else'elementEnd'===_0x50cc5b[_0x40fafe]['type']?(_0x96a5f2['shift'](),_0x50cc5b[_0x40fafe]['previousPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957),_0xd84957['pop'](),_0xd84957[_0xd84957['length']-0x1]++,_0x50cc5b[_0x40fafe]['nextPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957)):(_0x50cc5b[_0x40fafe]['previousPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957),_0x2207c1?_0x2207c1['_data']+=_0x50cc5b[_0x40fafe]['item']['data']:_0x2207c1=new mt(_0x50cc5b[_0x40fafe]['item']['data'],_0x50cc5b[_0x40fafe]['item']['getAttributes']()),_0x50cc5b[_0x40fafe+0x1]&&'text'===_0x50cc5b[_0x40fafe+0x1]['type']&&_0xbc0708(_0x2207c1,_0x50cc5b[_0x40fafe+0x1]['item'])||(_0x96a5f2[0x0]['_appendChild'](_0x2207c1),_0x2207c1=null),_0xd84957[_0xd84957['length']-0x1]+=_0x50cc5b[_0x40fafe]['item']['offsetSize'],_0x50cc5b[_0x40fafe]['nextPosition']=_0x3c7469['createPositionFromPath'](_0x5c4b97,_0xd84957));for(let _0x4d0d56=0x0;_0x4d0d56<_0x50cc5b['length'];_0x4d0d56++){const _0xd981c5=_0x50cc5b[_0x4d0d56]['previousPosition'],_0x1ec229=_0x50cc5b[_0x4d0d56]['nextPosition'];for(const _0x31ec19 of _0x50cc5b[_0x4d0d56]['markersStart'])_0x516401['set'](_0x31ec19,{'start':_0xd981c5,'end':null});_0x10ee86('isRemoveSuggestion',_0x4d0d56,_0xd981c5,_0x1ec229),_0x10ee86('isAddSuggestion',_0x4d0d56,_0xd981c5,_0x1ec229),_0x10ee86('isRemoved',_0x4d0d56,_0xd981c5,_0x1ec229),_0x10ee86('isAdded',_0x4d0d56,_0xd981c5,_0x1ec229);for(const _0x5983f6 of _0x50cc5b[_0x4d0d56]['markersEnd']){const _0x36d74d=_0x516401['get'](_0x5983f6);_0x36d74d?_0x36d74d['end']=_0x1ec229:_0x516401['set'](_0x5983f6,{'start':_0x1ec229,'end':_0x1ec229});}}for(const [_0x1e4f52,_0x3f4d87]of _0x516401){const _0x1a39d6=this['editor']['model']['createRange'](_0x3f4d87['start'],_0x3f4d87['end']);_0x5c4b97['markers']['set'](_0x1e4f52,_0x1a39d6);}return _0x5a85a9['sort']((_0x432c5c,_0x4a44a4)=>{const _0x1a8079=_0x5c4b97['markers']['get']('revision:'+_0x432c5c['id']),_0x54b52c=_0x5c4b97['markers']['get']('revision:'+_0x4a44a4['id']);return _0x1a8079['start']['isBefore'](_0x54b52c['start'])?-0x1:_0x1a8079['start']['isAfter'](_0x54b52c['start'])?0x1:_0x1a8079['end']['isBefore'](_0x54b52c['end'])?-0x1:_0x1a8079['end']['isAfter'](_0x54b52c['end'])?0x1:'add'===_0x432c5c['type']?-0x1:0x1;}),{'root':_0x5c4b97,'changes':_0x5a85a9};function _0x10ee86(_0x45d9ea,_0x4c4094,_0x2a534d,_0x1fd5b8){const _0x447354=!!_0x50cc5b[_0x4c4094][_0x45d9ea],_0x1fdbbf=_0x447354?_0x50cc5b[_0x4c4094][_0x45d9ea]['userId']:null,_0x2b8193=_0x4c4094===_0x50cc5b['length']-0x1,_0x5ce99c=_0x3c6e79[_0x45d9ea][0x0],_0x1fc3a6=_0x513238['isObject'](_0x50cc5b[_0x4c4094]['item']);!_0x51b108[_0x45d9ea]&&_0x447354?_0x51b108[_0x45d9ea]={'start':_0x2a534d,'tapeItem':_0x50cc5b[_0x4c4094],'userId':_0x1fdbbf,'type':_0x45d9ea}:_0x51b108[_0x45d9ea]&&!_0x447354?(_0x51b108[_0x45d9ea]['end']=_0x2a534d,_0x1f823b(_0x51b108[_0x45d9ea]),_0x51b108[_0x45d9ea]=null):_0x51b108[_0x45d9ea]&&_0x447354&&_0x51b108[_0x45d9ea]['userId']!==_0x1fdbbf&&(_0x51b108[_0x45d9ea]['end']=_0x2a534d,_0x5ce99c&&_0x5ce99c['userId']===_0x51b108[_0x45d9ea]['userId']||_0x1f823b(_0x51b108[_0x45d9ea]),_0x51b108[_0x45d9ea]={'start':_0x2a534d,'tapeItem':_0x50cc5b[_0x4c4094],'userId':_0x1fdbbf,'type':_0x45d9ea}),_0x51b108[_0x45d9ea]&&_0x1fc3a6&&('elementStart'!==_0x50cc5b[_0x4c4094]['type']||_0x5ce99c&&_0x5ce99c['userId']===_0x1fdbbf||_0x3c6e79[_0x45d9ea]['unshift']({'userId':_0x1fdbbf,'object':_0x50cc5b[_0x4c4094]['item'],'change':_0x51b108[_0x45d9ea]}),'elementEnd'===_0x50cc5b[_0x4c4094]['type']&&_0x5ce99c&&_0x5ce99c['object']===_0x50cc5b[_0x4c4094]['item']&&(_0x3c6e79[_0x45d9ea]['shift'](),_0x51b108[_0x45d9ea]=_0x5ce99c['change'])),_0x51b108[_0x45d9ea]&&_0x2b8193&&(_0x51b108[_0x45d9ea]['end']=_0x1fd5b8,_0x1f823b(_0x51b108[_0x45d9ea]),_0x51b108[_0x45d9ea]=null);}function _0x1f823b({start:_0x7238ce,end:_0x599da5,tapeItem:_0x1b43c2,userId:_0x5a83ed,type:_0x2b4074}){const _0x575225=_0x1b43c2['item'],_0x42438=_0x3c7469['schema']['isBlock'](_0x575225)&&!_0x3c7469['schema']['isLimit'](_0x575225),_0x29f9ba=_0x7238ce['nodeAfter']==_0x599da5['parent']&&_0x599da5['isAtStart'];if(_0x42438&&_0x29f9ba)return;const _0x2aecf6=_0x3c7469['createRange'](_0x7238ce,_0x599da5),_0x5dab65=_0x2ed8da['get'](_0x5a83ed),_0x126f26=new r({'author':_0x5dab65,'type':'isAdded'==_0x2b4074||'isAddSuggestion'==_0x2b4074?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2b4074||'isRemoveSuggestion'==_0x2b4074},'createdAt':new Date(),'rootName':_0x1a6228});_0x5a85a9['push'](_0x126f26),_0x5c4b97['markers']['set']('revision:'+_0x126f26['id'],_0x2aecf6);}function _0xbc0708(_0x38a9d3,_0x50bdcb){const _0x28ffb4=_0x38a9d3['getAttributes'](),_0x170f78=_0x50bdcb['getAttributes']();for(const _0x517c88 of _0x28ffb4){if(_0x517c88[0x1]!==_0x50bdcb['getAttribute'](_0x517c88[0x0]))return!0x1;_0x170f78['next']();}return _0x170f78['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5a3bc2=>{const _0x492e51=_0x5a3bc2['markerName']['split'](':')[0x1],_0x17793f=this['_getChangeFromId'](_0x492e51);if(!_0x17793f)return null;const _0x1b2578='add'==_0x17793f['type']?'insertion':'deletion',_0x2b9c1e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1b2578];return _0x17793f['data']['isSuggestion']&&_0x2b9c1e['push']('ck-suggestion-marker-'+_0x1b2578+'-new'),this['activeChange']==_0x17793f&&_0x2b9c1e['push']('ck-suggestion-marker--active'),{'classes':_0x2b9c1e,'attributes':{'data-change-id':_0x492e51}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xd64d42=>{_0xd64d42['on']('element:pre',(_0x158652,_0x5e3892,_0x129f6e)=>{const _0xb64558=_0x5e3892['viewItem']['getChild'](0x0);if(!_0xb64558||!_0xb64558['is']('element','code'))return;if(!_0x129f6e['consumable']['consume'](_0xb64558,{'attributes':['vid_start','vid_end']}))return;const _0xa706e=_0x5e3892['modelRange']['start']['nodeAfter'];_0x129f6e['writer']['setAttribute']('vid_start',_0xb64558['getAttribute']('vid_start'),_0xa706e),_0x129f6e['writer']['setAttribute']('vid_end',_0xb64558['getAttribute']('vid_end'),_0xa706e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x537952=>{_0x537952['on']('element',(_0x47347e,_0x476172,_0x2d8785)=>{if(!_0x2d8785['consumable']['consume'](_0x476172['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x476172['modelRange']['isCollapsed'])return;const _0xfec13c=_0x476172['modelRange']['start']['nodeAfter'];_0xfec13c['hasAttribute']('vid_start')||_0xfec13c['hasAttribute']('vid')||(_0x2d8785['writer']['setAttribute']('vid_start',_0x476172['viewItem']['getAttribute']('vid_start'),_0xfec13c),_0x2d8785['writer']['setAttribute']('vid_end',_0x476172['viewItem']['getAttribute']('vid_end'),_0xfec13c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51cdaf=>_0x51cdaf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x445cbe,[,_0x5ef168])=>{['vid_start','vid_end','vid']['includes'](_0x5ef168)&&(_0x445cbe['return']=!0x0,_0x445cbe['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x35d92d=>{_0x35d92d['on']('attribute:vid',(_0x3f84a7,_0x43bd64,_0x1dc2fb)=>{if('\x20'!=_0x43bd64['item']['data']||_0x43bd64['item']['parent']['maxOffset']>0x1)return;if(!_0x1dc2fb['consumable']['consume'](_0x43bd64['item'],_0x3f84a7['name']))return;const _0x2e677e=_0x1dc2fb['writer'],_0x13c226=_0x1dc2fb['mapper']['toViewRange'](_0x43bd64['range']);_0x2e677e['wrap'](_0x13c226,_0x2e677e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27a603){const _0xc78611=_0x27a603['plugins']['get']('RevisionViewer');return(_0x11bb09,_0x56fcc1,_0x14a27c)=>{const _0x21cb91=_0x56fcc1['markerName']['split'](':')[0x1],_0x3cc0bd=_0xc78611['_getChangeFromId'](_0x21cb91);if(!_0x3cc0bd)return null;const _0x243602='add'==_0x3cc0bd['type']?'split':'merge';if(!_0x14a27c['consumable']['test'](_0x56fcc1['markerRange'],_0x11bb09['name']))return;const _0x178c4f=_0x56fcc1['markerRange']['getWalker'](),_0x3e7174=_0x56fcc1['markerRange']['start'],_0x1d9c1f=_0x27a603['model']['schema'];let _0x2fa55c=null,_0x5e4e41=null,_0x31bba3=!0x1,_0xb4785a=!0x1;for(const _0x5eaaa9 of _0x178c4f){const _0x15cf5f=_0x5eaaa9['item'];_0x31bba3=_0x31bba3||_0x1d9c1f['isContent'](_0x15cf5f);const _0x331ee0=_0x14a27c['mapper']['toViewElement'](_0x15cf5f);if(_0x331ee0&&_0x331ee0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5eaaa9['type']&&(_0x1d9c1f['isBlock'](_0x15cf5f)&&!_0x1d9c1f['isLimit'](_0x15cf5f)&&(_0x15cf5f['nextSibling']||_0x3e7174['isAtEnd']?_0x2fa55c&&_0x2fa55c['parent']==_0x15cf5f||(_0x2fa55c=_0x15cf5f,_0x37300f(_0x5eaaa9['previousPosition']),_0xb4785a=!0x0):_0x5e4e41=_0x5e4e41||_0x5eaaa9['previousPosition']));}function _0x37300f(_0x10c5cb){const _0x331f8d=_0x14a27c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x243602}),_0x4f92da=_0x14a27c['mapper']['toViewPosition'](_0x10c5cb);_0x3cc0bd['data']['isSuggestion']&&_0x14a27c['writer']['addClass']('ck-suggestion-marker-'+_0x243602+'-new',_0x331f8d),_0xc78611['activeChange']==_0x3cc0bd&&_0x14a27c['writer']['addClass']('ck-suggestion-marker--active',_0x331f8d),_0x14a27c['writer']['insert'](_0x4f92da,_0x331f8d),_0x14a27c['mapper']['bindElementToMarker'](_0x331f8d,_0x56fcc1['markerName']);}_0x31bba3||_0xb4785a||!_0x5e4e41||_0x37300f(_0x5e4e41);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x50541d,_0x4cae3c,_0x55d902)=>{const _0x1ae2cb=_0x55d902['mapper']['markerNameToElements'](_0x4cae3c['markerName']);if(_0x1ae2cb){for(const _0x173a03 of _0x1ae2cb)(_0x173a03['hasClass']('ck-suggestion-marker-split')||_0x173a03['hasClass']('ck-suggestion-marker-merge'))&&(_0x55d902['mapper']['unbindElementFromMarkerName'](_0x173a03,_0x4cae3c['markerName']),_0x55d902['writer']['remove'](_0x173a03));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1610e8,_0x5221aa,_0x4c3114)=>{const _0x7a9933=_0x5221aa['markerName']['split'](':')[0x1],_0x2e3182=this['_getChangeFromId'](_0x7a9933);if(!_0x2e3182)return null;const _0x7bb68a='add'==_0x2e3182['type']?'split':'merge';if(_0x4c3114['consumable']['test'](_0x5221aa['markerRange'],_0x1610e8['name']))for(const _0x4536cb of _0x5221aa['markerRange']['getItems']()){if(!_0x4536cb['is']('element','softBreak'))continue;const _0x6aedbb=_0x4c3114['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7bb68a}),_0x2dbaa0=_0x4c3114['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4536cb));_0x2e3182['data']['isSuggestion']&&_0x4c3114['writer']['addClass']('ck-suggestion-marker-'+_0x7bb68a+'-new',_0x6aedbb),this['activeChange']==_0x2e3182&&_0x4c3114['writer']['addClass']('ck-suggestion-marker--active',_0x6aedbb),_0x4c3114['writer']['insert'](_0x2dbaa0,_0x6aedbb),_0x4c3114['mapper']['bindElementToMarker'](_0x6aedbb,_0x5221aa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2ccc71=>{for(const _0x59938d of this['editor']['model']['document']['getRootNames']()){const _0x426a58=this['editor']['model']['document']['getRoot'](_0x59938d),_0x2123c4=this['editor']['editing']['view']['document']['getRoot'](_0x59938d);if(_0x2123c4){const _0x24dd6d=_0x426a58['getAttribute']('revisionHistoryAttachChange');if(_0x2ccc71['removeAttribute']('data-change-id',_0x2123c4),_0x2ccc71['removeClass']('ck-revision-history-root-add',_0x2123c4),_0x2ccc71['removeClass']('ck-revision-history-root-remove',_0x2123c4),_0x2ccc71['removeClass']('ck-revision-history-root--active',_0x2123c4),_0x24dd6d){const _0x39d4aa=this['_getChangeFromId'](_0x24dd6d);if(!_0x39d4aa)return null;_0x2ccc71['setAttribute']('data-change-id',_0x24dd6d,_0x2123c4),_0x2ccc71['addClass']('ck-revision-history-root-'+_0x39d4aa['type'],_0x2123c4),this['activeChange']==_0x39d4aa&&_0x2ccc71['addClass']('ck-revision-history-root--active',_0x2123c4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xdd9c9f=>'revision-comment:'+_0xdd9c9f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x395e0b=>'revision-suggestion:'+_0x395e0b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x29df03=>({'name':'suggestion:'+_0x29df03,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3b8f55=>{const _0x5e28fd=_0x3b8f55['markerName']['split'](':')[0x1];return'insertion'!=_0x5e28fd&&'deletion'!=_0x5e28fd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e28fd]};}}),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',(_0x29d9ea,_0x21f7ca,_0x476541)=>{const _0x24da14=_0x476541['mapper']['markerNameToElements'](_0x21f7ca['markerName']);if(_0x24da14){for(const _0x2275ee of _0x24da14)_0x2275ee['is']('uiElement')&&(_0x476541['mapper']['unbindElementFromMarkerName'](_0x2275ee,_0x21f7ca['markerName']),_0x476541['writer']['remove'](_0x2275ee));}},{'priority':'high'});}['_getChangeFromId'](_0x3390dd){return this['_changeIdToChange']['get'](_0x3390dd);}['_getViewForChange'](_0x57152f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x57152f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x394137,_0x4ffa97,_0x1c73f6,_0x2fd469)=>{_0x2fd469&&this['_balloon']['remove'](_0x2fd469),_0x1c73f6&&(this['_balloon']['add']({'view':_0x1c73f6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5b235e=this['editor']['editing'],_0x41d04e=this['_getChangeFromId'](_0x1c73f6['changeId']);let _0x37363b;if(_0x41d04e['data']['isOnRoot']){const _0x1baabb=_0x5b235e['view']['getDomRoot'](_0x41d04e['rootName']);_0x37363b=Array['from'](_0x1baabb['getClientRects']());}else{const _0x47f291=this['editor']['model']['markers']['get']('revision:'+_0x1c73f6['changeId']);_0x37363b=Array['from'](_0x5b235e['mapper']['markerNameToElements'](_0x47f291['name']))['map'](_0x4e8cdb=>_0x5b235e['view']['domConverter']['mapViewToDom'](_0x4e8cdb))['map'](_0x1f9698=>Array['from'](_0x1f9698['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x37363b[0x0];return _0x37363b['find'](_0x2d7271=>_0x2d7271['top']-0x3<=this['_activeViewTarget']['y']&&_0x2d7271['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2d7271['left']-0x3<=this['_activeViewTarget']['x']&&_0x2d7271['right']+0x3>=this['_activeViewTarget']['x'])||_0x37363b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x13f5df,_0x510b40,_0x3d37cd,_0x28cb0a)=>{this['activeView']=_0x3d37cd?this['_getViewForChange'](_0x3d37cd):null,this['editor']['model']['change'](()=>{const _0x378d6a=this['editor']['editing'];_0x28cb0a&&(_0x28cb0a['data']['isOnRoot']?_0x378d6a['view']['change'](_0x4d2dbf=>{_0x4d2dbf['removeClass']('ck-revision-history-root--active',_0x378d6a['view']['document']['getRoot'](_0x28cb0a['rootName']));}):_0x378d6a['reconvertMarker']('revision:'+_0x28cb0a['id'])),_0x3d37cd&&(_0x3d37cd['data']['isOnRoot']?_0x378d6a['view']['change'](_0x198e04=>{_0x198e04['addClass']('ck-revision-history-root--active',_0x378d6a['view']['document']['getRoot'](_0x3d37cd['rootName']));}):_0x378d6a['reconvertMarker']('revision:'+_0x3d37cd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x588fdd,_0x1454da)=>{if(this['activeChange'])return;const _0x58ed77=this['_findChangeIdFromDomTarget'](_0x1454da['target']),_0x59d2f8=this['_changeIdToChange']['get'](_0x58ed77);_0x59d2f8?(this['_activeViewTarget']={'x':_0x1454da['domEvent']['x'],'y':_0x1454da['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x59d2f8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4133c9,_0x1f0c86)=>{const _0x1e02a9=this['_findChangeIdFromDomTarget'](_0x1f0c86['target']),_0x48fb23=this['_changeIdToChange']['get'](_0x1e02a9);_0x48fb23?(this['_activeViewTarget']={'x':_0x1f0c86['domEvent']['x'],'y':_0x1f0c86['domEvent']['y']},_0x48fb23===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x48fb23):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4f9e4d){do{const _0x12cf56=_0x4f9e4d['getAttribute']('data-change-id');if(_0x12cf56)return _0x12cf56;_0x4f9e4d=_0x4f9e4d['parent'];}while(_0x4f9e4d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x20b49e=>{for(const _0x1c9f32 of this['editor']['model']['markers'])_0x20b49e['removeMarker'](_0x1c9f32);});}}function X(_0x1d5796,_0x215cb1){return(_0x4d7004,_0x1f882d,_0x1ee31c)=>{if(!_0x1ee31c['consumable']['test'](_0x1f882d['markerRange'],_0x4d7004['name']))return;const _0x56ea91=_0x1f882d['markerRange']['getWalker'](),_0x48cb25=_0x1f882d['markerRange']['start'],_0x1ae532=_0x1d5796['model']['schema'];let _0x2aa1ee=null,_0x30b315=null,_0x484ba7=!0x1,_0x37799f=!0x1;for(const _0x451584 of _0x56ea91){const _0x5ca97d=_0x451584['item'];_0x484ba7=_0x484ba7||_0x1ae532['isContent'](_0x5ca97d);const _0x18d4fb=_0x1ee31c['mapper']['toViewElement'](_0x5ca97d);if(_0x18d4fb&&_0x18d4fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x451584['type']&&(_0x1ae532['isBlock'](_0x5ca97d)&&!_0x1ae532['isLimit'](_0x5ca97d)&&(_0x5ca97d['nextSibling']||_0x48cb25['isAtEnd']?_0x2aa1ee&&_0x2aa1ee['parent']==_0x5ca97d||(_0x2aa1ee=_0x5ca97d,_0x4e1d57(_0x451584['previousPosition']),_0x37799f=!0x0):_0x30b315=_0x30b315||_0x451584['previousPosition']));}function _0x4e1d57(_0x2385d7){const _0x385272=_0x1ee31c['mapper']['toViewPosition'](_0x2385d7),_0x37eb24=_0x1ee31c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x215cb1});_0x1ee31c['writer']['insert'](_0x385272,_0x37eb24),_0x1ee31c['mapper']['bindElementToMarker'](_0x37eb24,_0x1f882d['markerName']);}_0x484ba7||_0x37799f||!_0x30b315||_0x4e1d57(_0x30b315);};}class wt extends _0x261801{constructor(_0x15656c){super(_0x15656c);const _0x36783b=_0x15656c['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x36783b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x36783b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x183aa4=this['editor'],_0x465674=_0x183aa4['plugins']['get'](m),_0x2f33a0=_0x465674['isReady']?_0x465674['diff']['newRevisionId']:null;_0x183aa4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f33a0);}['refresh'](){const {isReady:_0x17557e,isEnabled:_0x27175b,repository:_0x5ae571,diff:_0x1a1638}=this['editor']['plugins']['get'](m),_0x32cc32=_0x1a1638&&_0x5ae571['getLaterVisibleRevision'](_0x1a1638['newRevisionId']);this['isEnabled']=_0x17557e&&_0x27175b&&Boolean(_0x32cc32);}}class pt extends _0x261801{['_step'];constructor(_0x302a2d,{direction:_0x2adf79}){super(_0x302a2d);const _0x58fc44=_0x302a2d['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2adf79?0x1:-0x1,this['listenTo'](_0x58fc44,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58fc44,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58fc44,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x418ad3=this['editor'],_0x552035=_0x418ad3['plugins']['get'](m),{isNavigationMode:_0x3f5e83,currentChangeNumber:_0x15f17a}=_0x552035;let _0x58d7ea;if(_0x552035['activeChange']=_0x3f5e83?_0x552035['diff']['changes']['get'](_0x15f17a+this['_step']):_0x552035['diff']['changes']['first'],_0x552035['activeChange']['data']['isOnRoot'])_0x58d7ea=_0x418ad3['editing']['view']['getDomRoot'](_0x552035['activeChange']['rootName']);else{const _0x461207=_0x418ad3['model']['markers']['get']('revision:'+_0x552035['activeChange']['id']);_0x58d7ea=_0x5e4f4f(_0x418ad3['editing'],_0x461207);}_0x36f1ca({'target':_0x58d7ea,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5f1db0,currentChangeNumber:_0x39f353,numberOfChanges:_0x3020ba,isReady:_0xc94dec,isEnabled:_0x14f49c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x14f49c&&_0xc94dec&&_0x3020ba)&&(!_0x5f1db0||(0x1===this['_step']?_0x39f353<_0x3020ba-0x1:_0x39f353>0x0));}}class _i extends _0x3cddfa{constructor(_0x129a2f){super(_0x129a2f);const _0x292a8c=this['bindTemplate'],_0x496068=new _0x54f12b(_0x129a2f),_0x10ac35=new _0x54f12b(_0x129a2f);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',(_0x24801c,_0xe06a6)=>_0x24801c&&_0xe06a6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4d374e,_0x590806,_0x4092ca,_0xb36d7c)=>{if(!_0x4d374e)return g(_0x129a2f,'Loading...');if(!_0x4092ca)return g(_0x129a2f,'No\x20changes');const _0x371262=g(_0x129a2f,'NUMBER_OF_CHANGES',_0x4092ca);return _0xb36d7c?g(_0x129a2f,'X_OF_Y_CHANGES',[_0x590806+0x1,_0x4092ca]):_0x371262;}),_0x496068['set']({'label':g(_0x129a2f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x603296}),_0x10ac35['set']({'label':g(_0x129a2f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x24f9d6}),_0x496068['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x10ac35['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x496068['on']('execute',()=>this['fire']('execute','backward')),_0x10ac35['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',_0x292a8c['if']('_isStatusLabelVisible','ck-hidden',_0x3a05a7=>!_0x3a05a7)]},'children':[{'text':_0x292a8c['to']('isNavigationMode',_0x136dfe=>_0x136dfe?g(_0x129a2f,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x129a2f,'Total')+':\x20')}]},{'text':_0x292a8c['to']('_statusText')}]},new _0x5b3a52(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x496068,_0x10ac35]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5bfc96{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b5e0e=this['editor']['editing']['view'];_0x2b5e0e['change'](_0x3e3a67=>{for(const _0x5743ea of _0x2b5e0e['document']['roots'])_0x3e3a67['addClass'](ce,_0x5743ea);});}['hide'](){const _0x4c50f2=this['editor']['editing']['view'];_0x4c50f2['change'](_0x5c1c33=>{for(const _0x4dfbe9 of _0x4c50f2['document']['roots'])_0x5c1c33['removeClass'](ce,_0x4dfbe9);});}}class R extends _0x5bfc96{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x43be25=this['editor'],_0x22f009=_0x43be25['plugins']['get'](m),_0x3a8784=_0x43be25['plugins']['get'](le);_0x43be25['ui']['componentFactory']['add']('exitToEditing',_0x251bbb=>{const _0x527b49=new _0x54f12b(_0x251bbb);return _0x527b49['set']({'label':g(_0x251bbb,'Back\x20to\x20editing'),'icon':_0x5200f8,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x527b49,'execute',()=>{_0x43be25['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x527b49;}),_0x43be25['ui']['componentFactory']['add']('restoreRevision',_0x3c9528=>{const _0x1da7c3=new _0x54f12b(_0x3c9528);return _0x1da7c3['set']({'label':g(_0x3c9528,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1da7c3['bind']('isEnabled')['to'](_0x43be25['commands']['get']('restoreRevision')),this['listenTo'](_0x1da7c3,'execute',()=>_0x43be25['execute']('restoreRevision')),_0x1da7c3;}),_0x43be25['ui']['componentFactory']['add']('changesNavigation',_0x3017ca=>{const _0x3d3aa1=new _i(_0x3017ca),_0x29f21b=_0x43be25['commands']['get']('showPreviousChange'),_0x25d570=_0x43be25['commands']['get']('showNextChange');return _0x3d3aa1['bind']('isBackwardNavigationEnabled')['to'](_0x29f21b,'isEnabled'),_0x3d3aa1['bind']('isForwardNavigationEnabled')['to'](_0x25d570,'isEnabled'),_0x3d3aa1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22f009),this['listenTo'](_0x3d3aa1,'execute',(_0x3f91a9,_0x2bd344)=>{_0x43be25['execute']('forward'===_0x2bd344?'showNextChange':'showPreviousChange');}),_0x3d3aa1;}),_0x3a8784['show'](),_0x22f009['on']('change:isReady',(_0x3b38f0,_0x478a8b,_0x5bf7b3)=>{_0x5bf7b3?_0x3a8784['hide']():_0x3a8784['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x1b1a1c,_0xecf869){super(_0x1b1a1c,_0xecf869);const _0x443745=this['bindTemplate'];this['set']({'label':g(_0x1b1a1c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1b1a1c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x443745['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 _0x59f29d=this['fieldView']['element'];this['_tooltipString']=_0x59f29d['scrollWidth']>_0x59f29d['clientWidth']&&_0x59f29d['value']||'';}}class oi extends _0x3cddfa{constructor(_0x4f45c8,_0x26c87c,_0x5be784){super(_0x4f45c8);const _0x5b6514=new _0x438faf();_0x5b6514['set']({'content':_0xf46e84,'viewBox':'0\x200\x2011\x2010'});const _0x5df5eb=['ck','ck-revision-history-sidebar__revision-author'];_0x5be784&&_0x5df5eb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d64d0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4f45c8,_0x5be784?'Revision\x20creator':'Revision\x20author')},'children':[_0x5b6514,_0x26c87c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5df5eb},'children':_0x4d64d0});}}function ni(_0x3d8359,_0x4d0639){const _0x1d3e29=_0x3d8359['bindTemplate'],_0x18410c=_0x3d8359['locale'],_0x5cba37=_0x3750d8(_0x18410c);_0x5cba37['panelPosition']='sw';const _0x36f7ae=function(_0x22961f,_0x5259b2){const _0x2645e5=function(_0x48ddd3,_0x1322e4){const _0x52eec1=_0x48ddd3['locale'],_0x129731={'Compare\x20against\x20selected':g(_0x52eec1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x52eec1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x52eec1,'Restore\x20this\x20revision')};return _0x1322e4['map'](_0x1fcc14=>{const _0x4d0a1c=_0x129731[_0x1fcc14['name']];return _0x4d0a1c&&_0x4d0a1c!==_0x1fcc14['name']&&(_0x1fcc14['name']=_0x4d0a1c),_0x1fcc14;});}(_0x22961f,_0x5259b2),_0x319dbb=new _0x32397e();for(const _0x30b0b3 of _0x2645e5){const _0x1efa4c={'type':'button','model':new to({'label':_0x30b0b3['name'],'class':_0x30b0b3['class'],'withText':!0x0,'role':'menuitem','_action':_0x30b0b3['action']})};_0x1efa4c['model']['bind']('isEnabled')['to'](_0x22961f,'isActionsDropdownOpen',_0x35a463=>'function'!=typeof _0x30b0b3['isEnabled']||(!_0x35a463||_0x30b0b3['isEnabled'](_0x22961f))),_0x319dbb['add'](_0x1efa4c);}return _0x319dbb;}(_0x3d8359,_0x4d0639);return _0x3d8359['bind']('isActionsDropdownOpen')['to'](_0x5cba37,'isOpen'),_0x5cba37['buttonView']['set']({'label':g(_0x18410c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x560b20}),_0x5cba37['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1d3e29['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1d3e29['to'](_0x290a28=>_0x290a28['stopPropagation']())}}),_0x5cba37['on']('execute',_0x2da1f0=>{_0x3d8359['isReady']&&'function'==typeof _0x2da1f0['source']['_action']&&_0x2da1f0['source']['_action'](_0x3d8359);}),_0x56357f(_0x5cba37,_0x36f7ae,{'role':'menu'}),_0x5cba37['listenTo'](_0x3d8359,'change:isActionsDropdownOpen',(_0xf7623e,_0x3d880c,_0x48d2db)=>{if(_0x48d2db)for(const _0x4e5393 of _0x5cba37['listView']['items']){const _0x507cc1=_0x4e5393['children']['first'],_0x307adc=_0x4d0639['find'](_0x24c0b5=>_0x24c0b5['action']===_0x507cc1['_action'])['isVisible'];_0x4e5393['isVisible']=void 0x0===_0x307adc||_0x307adc(_0x3d8359);}}),_0x5cba37;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x32ac1c,uid as _0x3cce8a,Collection as _0xce0641,logWarning as _0x611ad9,FocusTracker as _0x1d7358,KeystrokeHandler as _0x2fbd22,scrollViewportToShowTarget as _0x3ccd89,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x585f88}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x425cb6,set as _0x57adba,unset as _0x17aa25,isEqual as _0x1aed24}from'es-toolkit/compat';import{Plugin as _0x432e21,PendingActions as _0x10e408,Command as _0x4bf53c,ElementApiMixin as _0x54af36,Editor as _0x152331}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3dc44b,getMarkerDomElement as _0x3748cb,ConfirmMixin as ti,sanitizeEditorConfig as _0x34620a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3750d4,ViewAttributeElement as _0x24e0cf,ViewEmptyElement as _0xb18752,ViewRawElement as _0x22b748,ViewUIElement as _0x47bfc5,ViewDocumentFragment as _0x72ffd8,ViewText as _0x565d05,ViewElement as _0x194c36,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 _0x1e483f,IconChevronUp as _0x548b1c,IconChevronDown as _0x235c62,IconUndo as _0x483496,IconUser as _0x512e1f,IconThreeVerticalDots as _0x2da73a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1b7731,submitHandler as _0x299d24,LabeledFieldView as _0x5b84f9,createLabeledInputText as _0x307c29,createDropdown as _0x11b6e8,ListView as _0x1d094f,ListItemView as _0x46fcb4,ButtonView as te,MenuBarMenuView as _0x44467d,MenuBarMenuListView as _0x1ff7c0,MenuBarMenuListItemView as _0x74afb2,MenuBarMenuListItemButtonView as _0x50e74c,ContextualBalloon as _0x3d22b1,ToolbarSeparatorView as _0x2ebcba,IconView as _0x4262a6,addListToDropdown as _0x25c378,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 _0xa82a03}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32ac1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x242b73){super(),this['id']=_0x242b73['id']||_0x3cce8a(),this['creator']=_0x242b73['creator']||null,this['authors']=_0x242b73['authors']||[],this['diffData']=_0x242b73['diffData']||null,this['toVersion']=_0x242b73['toVersion']||0x0,this['fromVersion']=_0x242b73['fromVersion']||0x0,this['set']('name',_0x242b73['name']||''),this['set']('createdAt',_0x242b73['createdAt']||new Date()),this['set']('attributes',_0x242b73['attributes']||{});}['setName'](_0x558e8c){this['_update']({'name':_0x558e8c});}['setAttribute'](_0x20df84,_0x5ef25d){const _0x23192f=_0x425cb6(this['attributes']);_0x57adba(_0x23192f,_0x20df84,_0x5ef25d),this['_update']({'attributes':_0x23192f});}['removeAttribute'](_0x4ec302){const _0x219ac0=_0x425cb6(this['attributes']);_0x17aa25(_0x219ac0,_0x4ec302),this['_update']({'attributes':_0x219ac0});}['_update'](_0x367977,_0x3a999f=!0x1){let _0x505320=!0x1;const _0x33ed43={'id':this['id']},_0x2f6b98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d560f of _0x2f6b98){const _0x51cad9=_0x367977[_0x5d560f];void 0x0!==_0x51cad9&&_0x51cad9!==this[_0x5d560f]&&(this[_0x5d560f]=_0x51cad9,_0x33ed43[_0x5d560f]=_0x51cad9,_0x505320=!0x0);}_0x505320&&(_0x33ed43['authors']&&(_0x33ed43['authorsIds']=_0x33ed43['authors']['map'](_0x310acf=>_0x310acf['id']),delete _0x33ed43['authors']),this['fire']('_update',_0x33ed43,_0x3a999f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x152d6a=>_0x152d6a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x432e21{['_revisions'];static get['requires'](){return[_0x3dc44b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x566325){super(_0x566325),this['_revisions']=new _0xce0641();}['afterInit'](){!async function(_0x35ea75){const _0x34e125=_0x586b0a([0x31,0x47,0x59,0x6f,0x58,0x57,0x42,0x73,0x49,0x76,0x36,0x61,0x39,0x69,0x64,0x74,0x38,0x56,0x4a,0x6b,0x66,0x41,0x7a,0x75,0x78,0x51,0x65,0x4c,0x77,0x6c,0x4e,0x45,0x44,0x67,0x43,0x33,0x5a,0x52,0x34,0x6e,0x4d,0x6d,0x54,0x4f,0x4b,0x48,0x30,0x71,0x63,0x62,0x55,0x46,0x72,0x37,0x35,0x50,0x68,0x6a,0x70,0x32,0x79,0x53]),_0x446c10=0xeb829,_0xf77bf=0x3045620b,_0x3765ee=0x3042061b^_0xf77bf,_0x507615=window[_0x586b0a([0x44,0x61,0x74,0x65])][_0x586b0a([0x6e,0x6f,0x77])](),_0x4d7946=_0x35ea75[_0x586b0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d8934=new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad7a2=>{_0x4d7946[_0x586b0a([0x6f,0x6e,0x63,0x65])](_0x586b0a([0x72,0x65,0x61,0x64,0x79]),_0x3ad7a2);}),_0x52564b={[_0x586b0a([0x6b,0x74,0x79])]:_0x586b0a([0x45,0x43]),[_0x586b0a([0x75,0x73,0x65])]:_0x586b0a([0x73,0x69,0x67]),[_0x586b0a([0x63,0x72,0x76])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36]),[_0x586b0a([0x78])]:_0x586b0a([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]),[_0x586b0a([0x79])]:_0x586b0a([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]),[_0x586b0a([0x61,0x6c,0x67])]:_0x586b0a([0x45,0x53,0x32,0x35,0x36])},_0x4c2bdb=_0x4d7946[_0x586b0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586b0a([0x67,0x65,0x74])](_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f88e7(){let _0x3a329f,_0x548f87=null,_0x490929=null;try{if(_0x4c2bdb==_0x586b0a([0x47,0x50,0x4c]))return _0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a329f=_0x473fdd(),!_0x3a329f)return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x490929=_0xe1e3da(_0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a329f[_0x586b0a([0x6a,0x74,0x69])])),await _0x330207()?_0x160d31()?_0x2d5606()?_0x586b0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa3190b()?(_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x548f87=_0x5b1317(_0x586b0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x548f87=_0x5b1317(_0x586b0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x170165()):_0x586b0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xcc3091){return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d5606(){const _0x4b2e84=[_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586b0a([0x74,0x72,0x69,0x61,0x6c])][_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x507615/0x3e8:0xe10*_0x3765ee;return _0x3a329f[_0x586b0a([0x65,0x78,0x70])]<_0x4b2e84;}function _0x160d31(){const _0x2e63cb=_0x3a329f[_0x586b0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e63cb)return!0x1;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x48])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x52,0x48]))){if(_0x5c38ef())return!0x0;if(_0x4aab5b()||_0x1eb3a8())return!0x0;}return!0x1;}function _0xa3190b(){const _0x88a12c=_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x88a12c||0x0==_0x88a12c[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x456b0d}=new URL(window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x88a12c[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x456b0d))return!0x0;const _0x316c53=_0x456b0d[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));return _0x88a12c[_0x586b0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c166b=>_0x1c166b[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))[_0x586b0a([0x6d,0x61,0x70])](_0x5e1743=>_0x5e1743[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])))[_0x586b0a([0x73,0x6f,0x6d,0x65])](_0x5e35c6=>_0x316c53[_0x586b0a([0x65,0x76,0x65,0x72,0x79])]((_0x3460fd,_0x2bf476)=>_0x5e35c6[_0x2bf476]===_0x3460fd||_0x5e35c6[_0x2bf476]===_0x586b0a([0x2a])));}function _0x170165(){return _0x548f87&&_0x490929?new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x738da8,_0x21f192)=>{_0x548f87[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x738da8,_0x21f192),_0x490929[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x14241e=>{_0x14241e!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x738da8(_0x14241e);},_0x21f192);}):_0x548f87||_0x490929||_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe1e3da(_0x59a386,_0x6368e2){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31848b=>{if(_0x4f086f())return _0x31848b(_0x586b0a([0x56,0x61,0x6c,0x69,0x64]));_0x260865(),_0x4d7946[_0x586b0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4df40c=!0x1;const _0x9d5888=_0x3cce8a();function _0x13c769(_0x1fad3e){return!!_0x1fad3e&&(typeof _0x1fad3e===_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fad3e===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fad3e[_0x586b0a([0x74,0x68,0x65,0x6e])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fad3e[_0x586b0a([0x63,0x61,0x74,0x63,0x68])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x544e92(_0x4dd172){_0x3fcb1c(_0x4dd172)[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x4ae90a=>{if(!_0x4ae90a||_0x4ae90a[_0x586b0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586b0a([0x6f,0x6b]))return _0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40863b(_0x4bfe5c(_0x9d5888+_0x6368e2))!=_0x4ae90a[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x389653=>(_0x367f13(),_0x389653),()=>{const _0x8702e8=_0x4e56ba();return null==_0x8702e8?(_0x367f13(),_0x586b0a([0x56,0x61,0x6c,0x69,0x64])):_0x586b0a(_0x507615-_0x8702e8>(0x1449e60b^_0xf77bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x31848b)[_0x586b0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b8ddc=0x30738c8b^_0xf77bf;function _0x367f13(){const _0x612bef=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x48ee08=_0x36d4bf(_0x40863b(window[_0x586b0a([0x4d,0x61,0x74,0x68])][_0x586b0a([0x63,0x65,0x69,0x6c])](_0x507615/_0x2b8ddc)));window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x612bef,_0x48ee08);}function _0x4e56ba(){const _0xbeec34=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x341c72=window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbeec34);return _0x341c72?window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d4bf(_0x341c72),0x10)*_0x2b8ddc:null;}function _0x3fcb1c(_0x28abb8){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc159,_0x337d91)=>{_0x28abb8[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x3cc159,_0x337d91),window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x337d91,0x3044b6cb^_0xf77bf);});}}_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc8854a,_0x12da6c)=>{if(_0x12da6c[0x0]!=_0x59a386)return _0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12da6c[0x1]={..._0x12da6c[0x1],[_0x586b0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9d5888};},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x68,0x69,0x67,0x68])}),_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20f03b=>{_0x13c769(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4df40c=!0x0,_0x544e92(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x6c,0x6f,0x77])}),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>{_0x4df40c||_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f086f(){return _0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586b0a([0x61,0x75,0x74,0x6f]);}function _0x260865(){_0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586b0a([0x61,0x75,0x74,0x6f]);}}function _0x5b1317(_0x421ec4){const _0x35f1c6=[new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28f4b1=>setTimeout(_0x28f4b1,0x304c5cc7^_0xf77bf)),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131bdd=>{const _0x2d77a8=0x3045620c^_0xf77bf,_0x201840=_0x35ea75[_0x586b0a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xe01963(){_0x201840[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d77a8&&_0x131bdd();}_0xe01963(),_0x201840[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x61,0x64,0x64]),_0xe01963);})),new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a9d8c=>{function _0x122ed8(){for(const _0x2941eb in window)if(window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2941eb))&&window[_0x2941eb]==_0x446c10)return _0x7a9d8c();_0x4d7946[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]!=_0x586b0a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x122ed8,0x30457183^_0xf77bf);}_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x122ed8();})];return window[_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586b0a([0x72,0x61,0x63,0x65])](_0x35f1c6)[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>_0x421ec4);}async function _0x1609ce(){if(await _0x4d8934,_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x425e5=_0x35ea75[_0x586b0a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5ea55d=_0x35ea75[_0x586b0a([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])](_0x425e5[_0x586b0a([0x69,0x64])]),_0x5f9010=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x425e5['id'],_0x5ea55d?_0x5ea55d['id']:null,!0x0),_0x5f9010[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f9010[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x161478,void(_0x5f9010[_0x586b0a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x161478);}if(_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4d7c04=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4d7c04[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d7c04[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d7c04[_0x586b0a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x161478,_0x4d7c04[_0x586b0a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x161478;}_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c38ef(){return _0x24e608(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d22fd(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]==_0x586b0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4aab5b(){return _0x24e608(_0x586b0a([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 _0x1eb3a8(){return _0x24e608(_0x586b0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58b1c9(_0x29057a){const _0x5906ef=_0x20e2ed();_0x4d7946[_0x5906ef]=_0x586b0a([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])+_0x29057a,_0x29057a[_0x586b0a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20e2ed()]=_0x446c10),_0x29057a!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x1609ce();}function _0x20e2ed(){const _0x297c2e=window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586b0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586b0a([0x6e,0x6f,0x77])]())[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586b0a([0x2e]),'');let _0x20e9c6=_0x586b0a([0x47]);for(let _0xdda36b=0x0;_0xdda36b<_0x297c2e[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdda36b+=0x2){let _0x4d202c=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x297c2e[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdda36b,_0xdda36b+0x2));_0x4d202c>=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d202c-=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20e9c6+=_0x34e125[_0x4d202c];}return _0x20e9c6;}function _0x473fdd(){const _0x52d733=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));if(0x3!=_0x52d733[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f20b(_0x52d733[0x1]);function _0x3f20b(_0x3ed752){const _0x1169d4=_0x49ec89(_0x3ed752);return _0x1169d4&&_0x5d6414()?_0x1169d4:null;function _0x5d6414(){const _0x4c4638=_0x1169d4[_0x586b0a([0x6a,0x74,0x69])],_0x2bb76b=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c9591={..._0x1169d4,[_0x586b0a([0x6a,0x74,0x69])]:_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c9591[_0x586b0a([0x76,0x63])],_0x4bfe5c(_0x5c9591)==_0x2bb76b;}}}async function _0x330207(){let _0x8818bf=!0x0;try{const _0x3e519c=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])),[_0x4697d9,_0x5410c3,_0x226f8d]=_0x3e519c;return _0x39f448(_0x4697d9),await _0x102a66(_0x4697d9,_0x5410c3,_0x226f8d),_0x8818bf;}catch(_0x2faee6){return!0x1;}function _0x39f448(_0x5a9e6c){const _0x421d8c=_0x49ec89(_0x5a9e6c);_0x421d8c&&_0x421d8c[_0x586b0a([0x61,0x6c,0x67])]==_0x586b0a([0x45,0x53,0x32,0x35,0x36])||(_0x8818bf=!0x1);}async function _0x102a66(_0x109151,_0x4fa9cb,_0x27c745){const _0x4fec97=window[_0x586b0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586b0a([0x66,0x72,0x6f,0x6d])](_0x4d7972(_0x27c745),_0x4b2f19=>_0x4b2f19[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cc5b6=new window[(_0x586b0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586b0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x109151+_0x586b0a([0x2e])+_0x4fa9cb),_0x39f353=window[_0x586b0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586b0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39f353)return;const _0x458c99=await _0x39f353[_0x586b0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586b0a([0x6a,0x77,0x6b]),_0x52564b,{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39f353[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x68,0x61,0x73,0x68])]:{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x458c99,_0x4fec97,_0x1cc5b6)||(_0x8818bf=!0x1);}}function _0x49ec89(_0x5e62c6){return _0x5e62c6[_0x586b0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x65,0x79]))?JSON[_0x586b0a([0x70,0x61,0x72,0x73,0x65])](_0x4d7972(_0x5e62c6)):null;}function _0x4d7972(_0x3e0618){return window[_0x586b0a([0x61,0x74,0x6f,0x62])](_0x3e0618[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586b0a([0x2b]))[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586b0a([0x2f])));}function _0x4bfe5c(_0x12743f){let _0x45b42e=0x1505;function _0xb4bdd6(_0x2cda28){for(let _0x30be49=0x0;_0x30be49<_0x2cda28[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30be49++){const _0x13e60c=_0x2cda28[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30be49);_0x45b42e=(_0x45b42e<<0x5)+_0x45b42e+_0x13e60c,_0x45b42e&=_0x45b42e;}}function _0x370d7a(_0x284fc7){Array[_0x586b0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x284fc7)?_0x284fc7[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370d7a):_0x284fc7&&typeof _0x284fc7==_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586b0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x284fc7)[_0x586b0a([0x73,0x6f,0x72,0x74])]()[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47a201,_0x5cfd6d])=>{_0xb4bdd6(_0x47a201),_0x370d7a(_0x5cfd6d);}):_0xb4bdd6(window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x284fc7));}return _0x370d7a(_0x12743f),_0x45b42e>>>0x0;}function _0x40863b(_0x557e58){return _0x557e58[_0x586b0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586b0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586b0a([0x30]));}function _0x36d4bf(_0x1c2f19){return _0x1c2f19[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586b0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586b0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x24e608(_0x1992f5){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x68,0x61,0x73])](_0x1992f5);}function _0x4d22fd(_0x2d71a3){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x67,0x65,0x74])](_0x2d71a3);}function _0x161478(){}function _0x586b0a(_0x153e05){return _0x153e05['map'](_0x4f6460=>String['fromCharCode'](_0x4f6460))['join']('');}_0x58b1c9(await _0x1f88e7());}(this);}['createRevision'](_0x247579){const _0x5f32ec=this['editor']['plugins']['get']('Users');return new h({'id':_0x247579['id'],'name':_0x247579['name'],'creator':_0x247579['creatorId']?_0x5f32ec['getUser'](_0x247579['creatorId']):null,'diffData':_0x247579['diffData']||_0x247579['data'],'authors':_0x247579['authorsIds']['map'](_0x39f138=>_0x5f32ec['getUser'](_0x39f138)),'createdAt':new Date(_0x247579['createdAt']),'attributes':_0x247579['attributes'],'fromVersion':_0x247579['fromVersion'],'toVersion':_0x247579['toVersion']});}['addRevision'](_0x1a8679,_0x1252f1=0x0){this['_revisions']['add'](_0x1a8679,_0x1252f1);}['getRevision'](_0x599f9a){return this['_revisions']['get'](_0x599f9a);}['getRevisions'](_0x5cb0d9={'toJSON':!0x1}){const _0x4297e3=Array['from'](this['_revisions']);return _0x4297e3['reverse'](),_0x5cb0d9['toJSON']?_0x4297e3['map'](_0x204373=>_0x204373['toJSON']()):_0x4297e3;}['getIndex'](_0x46d606){return this['_revisions']['getIndex'](_0x46d606);}['getEarlierVisibleRevision'](_0x1027c2){const [,_0x1c6d52]=this['getRevisionsIterator'](_0x1027c2,{'direction':'earlier'});return _0x1c6d52;}['getLaterVisibleRevision'](_0x208fc7){const [,_0x240e49]=this['getRevisionsIterator'](_0x208fc7,{'direction':'later'});return _0x240e49;}['getRevisionsInDiff'](_0x1f7b14){const _0x15d0a8=[];for(const _0x1b0921 of this['getRevisionsIterator'](_0x1f7b14['newRevisionId']))if(_0x15d0a8['push'](_0x1b0921),_0x1b0921['id']===_0x1f7b14['oldRevisionId'])break;return _0x15d0a8;}*['getRevisionsIterator'](_0x57415d,{direction:_0x1abb59='earlier',filter:_0x2a4a4b=()=>!0x0}={}){const _0x5cbf0a='earlier'===_0x1abb59?0x1:-0x1;let _0x3b7021=this['_revisions']['get'](_0x57415d),_0x1c6bab=this['getIndex'](_0x3b7021);for(yield _0x3b7021;_0x3b7021;){if(_0x1c6bab+=_0x5cbf0a,_0x3b7021=this['getRevision'](_0x1c6bab),!_0x3b7021)return;_0x2a4a4b(_0x3b7021)&&(yield _0x3b7021);}}}class V extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3750d4,'c'],[_0x24e0cf,'a'],[_0xb18752,'e'],[_0x22b748,'r'],[_0x47bfc5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3750d4],['a',_0x24e0cf],['e',_0xb18752],['r',_0x22b748],['u',_0x47bfc5]]);async['loadRevisionData'](_0x36b982,_0x46a9e0){if(_0x36b982['diffData']||!_0x46a9e0)return;const _0x1297ca=this['editor']['config']['get']('collaboration.channelId'),_0x518f5f=await _0x46a9e0['getRevision']({'channelId':_0x1297ca,'revisionId':_0x36b982['id']});_0x36b982['diffData']=_0x518f5f['diffData'];}['getRevisionDocumentData'](_0x3b7c1e){const _0x515ade={};for(const _0x28925c in _0x3b7c1e['diffData']){if(_0x3b7c1e['diffData'][_0x28925c]['attachChange']&&!_0x3b7c1e['diffData'][_0x28925c]['attachChange']['isAttached'])continue;const _0x35a028=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7c1e['diffData'][_0x28925c]['insertions'])),_0xce55fa=this['editor']['editing']['view']['document'],_0x25e6ee=new _0x72ffd8(_0xce55fa,_0x35a028['map'](_0x205190=>this['_getViewFromDiffObj'](_0x205190,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x515ade[_0x28925c]=this['editor']['data']['processor']['toData'](_0x25e6ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x515ade;}['getRevisionRootsAttributes'](_0x5a7978){const _0x437da1={};for(const _0x3f1377 in _0x5a7978['diffData'])_0x5a7978['diffData'][_0x3f1377]['attachChange']&&!_0x5a7978['diffData'][_0x3f1377]['attachChange']['isAttached']||(_0x437da1[_0x3f1377]=_0x5a7978['diffData'][_0x3f1377]['attributesAfter']||{});return _0x437da1;}['_getTypeCharForViewElement'](_0x1bf321){return this['_viewClassToTypeChar']['get'](_0x1bf321['constructor']);}['_getViewFromDiffObj'](_0xc692d3,_0x442d4e){const _0x2b1436=this['editor']['editing']['view']['document'];if('string'==typeof _0xc692d3)return new _0x565d05(_0x2b1436,_0xc692d3);{let _0x490cb0,_0x20703d;_0x20703d='u'==_0xc692d3['type']||'r'==_0xc692d3['type']?[]:_0xc692d3['children']['map'](_0x53f544=>this['_getViewFromDiffObj'](_0x53f544,_0x442d4e));const _0x30f477=this['_typeCharToViewClass']['get'](_0xc692d3['type'])||_0x194c36,_0x3eb901=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x490cb0=new _0x30f477(_0x2b1436,_0xc692d3['name'],_0xc692d3['attributes'],_0x20703d),'u'==_0xc692d3['type']){const _0x4252b6=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x3e3312){const _0x5bf7cb=_0x3e3312['createElement']('div');return _0x5bf7cb['innerHTML']=_0x4252b6,_0x5bf7cb['childNodes'][0x0];},_0x442d4e){const _0x40a750=new _0x72ffd8(_0x2b1436);_0x40a750['_appendChild'](_0x490cb0);const _0x26c472=Array['from'](_0x3eb901['viewChildrenToDom'](_0x40a750,{'bind':!0x1})),_0x18522b=_0x3eb901['domDocument']['createElement']('div');_0x18522b['append'](..._0x26c472),_0x490cb0=Array['from'](_0x3eb901['domChildrenToView'](_0x18522b))[0x0];}}else{if('r'==_0xc692d3['type']){const _0x19d2f7=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x26682c){_0x26682c['innerHTML']=_0x19d2f7;},_0x442d4e){const _0x4c1d18=new _0x72ffd8(_0x2b1436);_0x4c1d18['_appendChild'](_0x490cb0);const _0x3d9cc1=Array['from'](_0x3eb901['viewChildrenToDom'](_0x4c1d18,{'bind':!0x1})),_0x22c718=_0x3eb901['domDocument']['createElement']('div');_0x22c718['append'](..._0x3d9cc1);const _0x23f871=Array['from'](_0x3eb901['domChildrenToView'](_0x22c718));_0x23f871['length']>0x1?_0x490cb0['_appendChild'](_0x23f871):_0x490cb0=_0x23f871[0x0];}}}if(_0xc692d3['customProperties']){for(const [_0x32da38,_0x2d2073]of _0xc692d3['customProperties'])_0x490cb0['_setCustomProperty'](_0x32da38,_0x2d2073);}const _0x4c4455=_0xc692d3['fillerOffset']||null;return _0x490cb0['getFillerOffset']=()=>_0x4c4455,_0x490cb0;}}['_makeModelFromViewString'](_0x479f7e){const _0x51333f=JSON['parse'](_0x479f7e),_0xa17f8b=this['editor']['editing']['view']['document'],_0x343f8d=new _0x72ffd8(_0xa17f8b,_0x51333f['map'](_0x136b17=>this['_getViewFromDiffObj'](_0x136b17,!0x0)));return this['editor']['data']['toModel'](_0x343f8d);}['_removeRevisionMarkers'](_0x35c329){return(_0x35c329=_0x35c329['filter'](_0xdb3a17=>!_0xdb3a17['name']||'revision-start'!==_0xdb3a17['name']&&'revision-end'!==_0xdb3a17['name']))['forEach'](_0x39df5e=>{'string'!=typeof _0x39df5e&&(_0x39df5e['children']=this['_removeRevisionMarkers'](_0x39df5e['children']),_0x39df5e['attributes']=_0x39df5e['attributes']['filter'](_0x1c2824=>!_0x1c2824[0x0]['startsWith']('data-revision-')));}),_0x35c329;}}function g(_0x652f76,_0x399c91,_0xc00436){const t=_0x652f76['t'];switch(_0x399c91){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'},_0xc00436);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc00436);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 _0x432e21{['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[_0x3dc44b,I,V,_0x10e408];}constructor(_0x3a9383){super(_0x3a9383),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 _0x109028=_0x3cce8a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x109028},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 _0x4a43b3=this['repository']['getRevision'](0x0),_0x5031cc=_0x4a43b3&&null===_0x4a43b3['creator']?_0x4a43b3:null;if(this['_continueCurrentRevision']=!!_0x5031cc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x540782=this['_source']['getCurrentRevisionId'](),_0x4b62c9=this['repository']['getRevision'](_0x540782);if(_0x4b62c9)this['_startingVersion']=_0x4b62c9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x59a25b=this['_source']['history']['_operations']['find'](_0x237998=>!_0x237998['_isInit']),_0x4f863b=_0x59a25b?_0x59a25b['baseVersion']:this['_source']['history']['version'];_0x4a43b3?(_0x4a43b3['toVersion']<_0x4f863b&&_0x4a43b3['_update']({'toVersion':_0x4f863b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['fromVersion']):(this['_startingVersion']=_0x4a43b3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f863b,this['_continueCurrentRevision']=!0x1);}}else _0x5031cc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5031cc['toVersion'],this['editor']['model']['document']['history']['version']),_0x5031cc['fromVersion']===_0x5031cc['toVersion']?(0x0!==_0x5031cc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['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',_0x14a7a6=>!_0x14a7a6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4577f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13e714;for(const _0xa6fa85 in _0x4577f0){const _0x5cb9f2=_0xa6fa85,_0x2a28f1=_0x4577f0[_0x5cb9f2];if('revisionHistoryLicenseKeyValid'==_0x2a28f1||'revisionHistoryLicenseKeyInvalid'==_0x2a28f1||'revisionHistoryLicenseKeyExpired'==_0x2a28f1||'revisionHistoryLicenseKeyDomainLimit'==_0x2a28f1||'revisionHistoryLicenseKeyNotAllowed'==_0x2a28f1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a28f1||'revisionHistoryLicenseKeyTrialLimit'==_0x2a28f1||'revisionHistoryLicenseKeyUsageLimit'==_0x2a28f1){delete _0x4577f0[_0x5cb9f2],_0x13e714=_0x2a28f1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x13e714&&_0x4577f0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x13e714&&_0x4577f0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x13e714&&_0x4577f0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x241cc7=this['repository']['getRevision'](0x0),_0x3d7135=await this['getRevisionDocumentData'](_0x241cc7),_0x5deab6=await this['getRevisionRootsAttributes'](_0x241cc7);this['_replaceEditorDataWithRevisionData'](_0x3d7135,_0x5deab6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3157dd){this['_source']=_0x3157dd;}async['update'](){const _0x340ebf=await this['_source']['getLatestVersion']();if(_0x340ebf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e40d0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x340ebf});_0x4e40d0['authors']=_0x4e40d0['authorsIds']['map'](_0x1f8091=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f8091)),this['currentRevision']['_update'](_0x4e40d0);}}async['saveRevision'](_0x3171a3={},_0x320ddf=null){const _0xd2f18e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x320ddf>this['currentRevision']['toVersion']&&(_0x320ddf=null),null===_0x320ddf&&(_0x320ddf=await this['_source']['getLatestVersion']());const _0x5543c4=this['_getFromVersion'](_0x320ddf),_0x3a87f1=this['buildRevisionData']({'from':_0x5543c4,'to':_0x320ddf});if(this['currentRevision']['toVersion']<_0x320ddf){const _0xc38b0f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x320ddf,'to':_0x320ddf});_0xc38b0f['authors']=[],_0xc38b0f['authorsIds']=[],_0xc38b0f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc38b0f,!0x0),delete _0xc38b0f['authors'],_0xd2f18e['push'](_0xc38b0f);}_0x3171a3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3171a3['name']=_0x3171a3['name']||null,_0x3171a3['id']=_0x3171a3['id']||_0x3cce8a(),_0x3171a3={..._0x3171a3,..._0x3a87f1};const _0x240471=this['addRevisionData'](_0x3171a3);_0xd2f18e['push'](_0x3171a3);const _0x4502a4=this['repository']['getIndex'](_0x240471);if(0x0!==_0x4502a4){const _0x24c38d=this['repository']['getRevision'](_0x4502a4-0x1);if(_0x24c38d['fromVersion']!==_0x320ddf){const _0x1f33e8=this['_revisionDataBuilder']['getData'](_0x320ddf,_0x24c38d['toVersion']),_0x38e2f9={'id':_0x24c38d['id'],'diffData':_0x1f33e8['diffData'],'authorsIds':_0x1f33e8['authorsIds'],'authors':_0x1f33e8['authorsIds']['map'](_0x57acc6=>this['editor']['plugins']['get']('Users')['getUser'](_0x57acc6)),'fromVersion':_0x320ddf};_0x24c38d===this['currentRevision']&&(_0x38e2f9['createdAt']=new Date(_0x3171a3['createdAt']['getTime']()+0xa)),_0x24c38d['_update'](_0x38e2f9,!0x0),delete _0x38e2f9['authors'],_0xd2f18e['push'](_0x38e2f9);}}if(this['adapter']){for(const _0x1a4ac2 of _0xd2f18e)this['_bufferUpdate'](_0x1a4ac2['id'],_0x1a4ac2,!0x0);this['sendBufferedUpdates']();}return _0x240471;}['addRevisionData'](_0x4a2abd){const _0x19e191=this['repository']['createRevision'](_0x4a2abd);return this['adapter']&&_0x19e191['on']('_update',(_0x4a764b,_0x4e64ab,_0x26dfcb)=>{_0x26dfcb||(this['_bufferUpdate'](_0x4e64ab['id'],_0x4e64ab,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x19e191,this['_findInsertionIndex'](_0x19e191)),_0x19e191;}async['getRevisionDocumentData'](_0x207c05){return await this['_utils']['loadRevisionData'](_0x207c05,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x207c05);}async['getRevisionRootsAttributes'](_0xfdfb9a){return await this['_utils']['loadRevisionData'](_0xfdfb9a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xfdfb9a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x287b16=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x411447=0x0;_0x411447<_0x287b16['length'];_0x411447++){const _0x4f8132=_0x287b16[_0x411447];let _0x176d97=!0x1;for(const _0x524311 of Object['keys'](_0x4f8132))void 0x0===_0x4f8132[_0x524311]?delete _0x4f8132[_0x524311]:'id'!==_0x524311&&(_0x176d97=!0x0);_0x176d97||(_0x287b16[_0x411447]=null);}if(_0x287b16=_0x287b16['filter'](_0x151a1c=>null!==_0x151a1c),!_0x287b16['length'])return;for(let _0x1f3dac=0x0;_0x1f3dac<_0x287b16['length'];_0x1f3dac++){const _0x285c56=_0x287b16[_0x1f3dac];void 0x0!==_0x285c56['fromVersion']&&void 0x0===_0x285c56['toVersion']&&(_0x285c56['toVersion']=this['repository']['getRevision'](_0x285c56['id'])['toVersion']),void 0x0!==_0x285c56['toVersion']&&void 0x0===_0x285c56['fromVersion']&&(_0x285c56['fromVersion']=this['repository']['getRevision'](_0x285c56['id'])['fromVersion']);}const _0x442901=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x287b16,_0x442901)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x59fc1c=>{if(_0x59fc1c){for(const _0xb41172 of _0x59fc1c)this['setRevisionData']({'id':_0xb41172['id'],'createdAt':_0xb41172['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5b5f2a=null,from:_0x57a4fb=null,to:_0x2efc0d=null}){_0x57a4fb=null!==_0x57a4fb?_0x57a4fb:_0x5b5f2a['fromVersion'],_0x2efc0d=null!==_0x2efc0d?_0x2efc0d:_0x5b5f2a['toVersion'];const _0x4ad924=this['_revisionDataBuilder']['getData'](_0x57a4fb,_0x2efc0d),_0x5415e1={'diffData':_0x4ad924['diffData'],'authorsIds':_0x4ad924['authorsIds'],'fromVersion':_0x57a4fb,'toVersion':_0x2efc0d};if(!_0x5b5f2a||_0x2efc0d!==_0x5b5f2a['toVersion']){const _0x1cf18f=_0x2efc0d-0x1,_0x5c0eef=this['_source']['history']['getOperation'](_0x1cf18f);_0x5415e1['createdAt']=_0x5c0eef&&_0x5c0eef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x57a4fb===this['_loadedStateData']['fromVersion']){for(const _0x45294f of this['_loadedStateData']['authors'])_0x5415e1['authorsIds']['includes'](_0x45294f['id'])||_0x5415e1['authorsIds']['push'](_0x45294f['id']);}return _0x5415e1;}['_bufferUpdate'](_0x306535,_0x42a304,_0xaad1b1){if(this['_bufferedUpdates']['has'](_0x306535)){const _0x17af2a=this['_bufferedUpdates']['get'](_0x306535);_0x42a304=_0xaad1b1?{..._0x17af2a,..._0x42a304}:{..._0x42a304,..._0x17af2a};}this['_bufferedUpdates']['set'](_0x306535,_0x42a304);}['setRevisionData'](_0x8276e0){const _0x310e0f=this['repository']['getRevision'](_0x8276e0['id']);if(_0x8276e0['createdAt']&&(_0x8276e0['createdAt']=new Date(_0x8276e0['createdAt'])),_0x8276e0['authorsIds']){const _0x497343=this['editor']['plugins']['get']('Users');_0x8276e0['authors']=_0x8276e0['authorsIds']['map'](_0x570427=>_0x497343['getUser'](_0x570427));}_0x310e0f['_update'](_0x8276e0,!0x0);}['_createInitialRevision'](_0x43e180){const _0x4002a4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4002a4)this['_initialRevisionId']=_0x4002a4['id'];else{const _0x4ebd86=!this['editor']['model']['document']['roots']['find'](_0x455fb4=>this['editor']['model']['hasContent'](_0x455fb4)),_0x20ab4b=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ed336=g(this['editor']['locale'],_0x4ebd86?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43e180,'to':_0x43e180,'id':this['_initialRevisionId'],'name':_0x2ed336,'creatorId':_0x20ab4b});}}['_createCurrentRevision'](_0x2b2090){const _0x36ff3f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x36ff3f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2b2090,'to':_0x2b2090,'id':_0x36ff3f,'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'](_0x100239,_0x27eb5e){let _0x2123af=this['editor']['config']['get']('initialData'),_0x3fd40c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2123af){_0x2123af={};for(const _0x2ce058 of this['editor']['model']['document']['getRootNames']())_0x2123af[_0x2ce058]='';}if('string'==typeof _0x2123af&&(_0x2123af={'main':_0x2123af}),void 0x0===_0x3fd40c){_0x3fd40c={};for(const _0xc390e2 of this['editor']['model']['document']['getRootNames']())_0x3fd40c[_0xc390e2]={};}let _0x2f10eb=!0x1;const _0x4abf65=Object['keys'](_0x2123af),_0x5e6068=Object['keys'](_0x100239);for(const _0x2ee0e2 of _0x4abf65){if(_0x2123af[_0x2ee0e2]!==_0x100239[_0x2ee0e2]&&''!==_0x2123af[_0x2ee0e2]['trim']()){_0x2f10eb=!0x0;break;}if(!_0x1aed24(_0x3fd40c[_0x2ee0e2],_0x27eb5e[_0x2ee0e2])&&Object['keys'](_0x3fd40c[_0x2ee0e2])['length']>0x0){_0x2f10eb=!0x0;break;}}_0x2f10eb||(_0x2f10eb=_0x5e6068['some'](_0x3377c8=>!this['editor']['model']['document']['getRoot'](_0x3377c8))),_0x2f10eb&&_0x611ad9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2123af,'editorRootsAttributes':_0x3fd40c,'revisionData':_0x100239,'revisionRootsAttributes':_0x27eb5e}),this['editor']['config']['set']('initialData',_0x100239),this['editor']['config']['set']('rootsAttributes',_0x27eb5e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1fa5a4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1fa5a4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37b8a7){const _0x4de234=this['repository']['getRevisions']();_0x4de234['reverse']();let _0x47e743=0x0;for(;_0x47e743<_0x4de234['length'];){const _0x78b2ed=_0x4de234[_0x47e743];if(_0x78b2ed===this['currentRevision']){_0x47e743++;continue;}if(_0x78b2ed['id']===this['_initialRevisionId'])break;const _0xb9da2a=_0x37b8a7['toVersion']-_0x78b2ed['toVersion']||_0x37b8a7['fromVersion']-_0x78b2ed['fromVersion'];if(_0xb9da2a>0x0)break;if(_0xb9da2a<0x0)_0x47e743++;else{if(!_0x37b8a7['creator']&&_0x78b2ed['creator'])break;if(_0x78b2ed['creator']||!_0x37b8a7['creator']){if(_0x37b8a7['createdAt']>_0x78b2ed['createdAt'])break;_0x47e743++;}else _0x47e743++;}}return _0x47e743;}['_getFromVersion'](_0x38ad21){const _0x19f24f=this['repository']['getRevisions']();_0x19f24f['reverse'](),_0x19f24f['shift']();const _0x57cd3b=_0x19f24f['find'](_0x29f50c=>_0x29f50c['toVersion']<=_0x38ad21)['toVersion'];return _0x57cd3b<this['_startingVersion']?this['_startingVersion']:_0x57cd3b;}['_makeRevision']({name:_0x1ea738,from:_0x1539fd,to:_0x5528f3,creatorId:_0x3c814a,id:_0x247945}){const _0x6360e8=this['buildRevisionData']({'from':_0x1539fd,'to':_0x5528f3});_0x6360e8['name']=_0x1ea738,_0x6360e8['creatorId']=_0x3c814a,_0x6360e8['id']=_0x247945;const _0x2511e3=this['addRevisionData'](_0x6360e8);return this['adapter']&&this['_bufferUpdate'](_0x6360e8['id'],_0x6360e8,!0x0),_0x2511e3;}['_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(_0x27f5df){this['editor']=_0x27f5df,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'](_0x53d056){this['source']=_0x53d056;const _0x30dca0=new Map(),_0x546dc8=new Map(),_0x7d7df6=this['editor']['model']['document']['roots']['map'](_0x10642c=>_0x10642c['rootName']);for(const _0x3823ff of _0x7d7df6){const _0x556587=this['editor']['model']['document']['getRoot'](_0x3823ff),_0x3d434a=N(_0x556587);_0x30dca0['set'](_0x3823ff,_0x3d434a),_0x546dc8['set'](_0x3823ff,Object['fromEntries'](_0x556587['getAttributes']()));}const _0x2ade01=Array['from'](this['editor']['model']['markers'])['map'](_0x1a4bb5=>[_0x1a4bb5['name'],_0x1a4bb5['getRange']()]),_0x9de725=this['source']['version'];this['_saveMetaData'](_0x9de725,_0x30dca0,_0x2ade01,_0x546dc8),this['_startingRevisionId']=this['_revisionId'];const _0x4c8430=new Map(),_0x4fb199=new Map();for(const _0x1ae943 of _0x7d7df6){const _0x4f8030=P(_0x1ae943);_0x4c8430['set'](_0x1ae943,_0x4f8030),_0x4fb199['set'](_0x1ae943,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c8430,[],_0x4fb199);}['getData'](_0x6421fc,_0x1ecc39){if(this['_lastFrom']===_0x6421fc&&this['_lastTo']<=_0x1ecc39)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ecc39,!0x0);else{if(!this['_savedMetaData']['has'](_0x6421fc)){const _0x1b65c9=this['_getPreviousFrom'](_0x6421fc);this['_calculateMetaData'](_0x1b65c9,_0x6421fc,!0x1);}this['_calculateMetaData'](_0x6421fc,_0x1ecc39,!0x0);}return this['_lastFrom']=_0x6421fc,this['_lastTo']=_0x1ecc39,this['_getState']();}['loadState'](_0xfbf453){const _0x274bcb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xfbf453['fromVersion'],this['_lastTo']=_0xfbf453['toVersion'];for(const _0x585238 in _0xfbf453['diffData']){const _0x57e018=_0xfbf453['diffData'][_0x585238]['attachChange'],_0x1ea170=_0x425cb6(_0xfbf453['diffData'][_0x585238]['attributesBefore'])||{},_0x2ab06f=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x585238]['deletions']);_0x2ab06f['rootName']=_0x585238,_0x2ab06f['_isAttached']=!_0x57e018||!_0x57e018['isAttached'],_0x2ab06f['isAttached']=()=>_0x2ab06f['_isAttached'],this['_baseRoots']['set'](_0x585238,_0x2ab06f),this['_baseRootsAttributes']['set'](_0x585238,_0x1ea170),_0x57e018&&this['_touchedRoots']['set'](_0x585238,_0x57e018);const _0x4be361=this['_makeIdsRoot'](_0x2ab06f);this['_baseIdsRoots']['set'](_0x585238,_0x4be361);for(const [_0x386d35,_0x1c3c3e]of _0x2ab06f['markers']){if(!_0x386d35['startsWith']('revision:'))continue;const _0x5d4a19=_0x386d35['split'](':')[0x2];for(const _0x3c59f3 of _0x1c3c3e['getWalker']({'singleCharacters':!0x0})){const _0xfd78e9=this['_getVidAttributeName'](_0x3c59f3),_0x412f49='elementEnd'==_0x3c59f3['type']?_0x3c59f3['previousPosition']['path']['slice'](0x0,-0x1):_0x3c59f3['previousPosition']['path'],_0x416165=_0x4be361['getNodeByPath'](_0x412f49)['getAttribute'](_0xfd78e9);this['_touched']['set'](_0x416165,{'userId':_0x5d4a19});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2ec8f6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4033f4=>!this['_touched']['has'](_0x4033f4));let _0x1a3be2=0x0;const _0x13a9d8=new Map();for(const _0x1c8533 in _0xfbf453['diffData']){const _0x154da2=_0xfbf453['diffData'][_0x1c8533]['attachChange'],_0x5c3660=_0x425cb6(_0xfbf453['diffData'][_0x1c8533]['attributesAfter'])||{},_0x9fd6d1=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x1c8533]['insertions']);_0x9fd6d1['rootName']=_0x1c8533,_0x9fd6d1['_isAttached']=!_0x154da2||_0x154da2['isAttached'],_0x9fd6d1['isAttached']=()=>_0x9fd6d1['_isAttached'],this['_diffRoots']['set'](_0x1c8533,_0x9fd6d1),this['_diffRootsAttributes']['set'](_0x1c8533,_0x5c3660);const _0x2ac965=this['_makeIdsRoot'](_0x9fd6d1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1c8533,_0x2ac965),_0x13a9d8['set'](_0x1c8533,_0x9fd6d1['isAttached']()?_0x5c3660:{});for(const [_0xb7a9fd,_0x44265e]of _0x9fd6d1['markers']){if(!_0xb7a9fd['startsWith']('revision:'))continue;const _0x417e87=_0xb7a9fd['split'](':')[0x2];for(const _0x23917e of _0x44265e['getWalker']({'singleCharacters':!0x0})){const _0x50cb19=this['_getVidAttributeName'](_0x23917e),_0x35d0e9=this['_revisionId']++,_0x550380='elementEnd'==_0x23917e['type']?_0x23917e['previousPosition']['path']['slice'](0x0,-0x1):_0x23917e['previousPosition']['path'];_0x2ac965['getNodeByPath'](_0x550380)['_setAttribute'](_0x50cb19,_0x35d0e9),this['_touched']['set'](_0x35d0e9,{'userId':_0x417e87});}}for(const _0xc5131f of this['editor']['model']['createRangeIn'](_0x9fd6d1)['getWalker']({'singleCharacters':!0x0})){const _0x141dd2=this['_getVidAttributeName'](_0xc5131f),_0x3e25eb='elementEnd'==_0xc5131f['type']?_0xc5131f['previousPosition']['path']['slice'](0x0,-0x1):_0xc5131f['previousPosition']['path'],_0x9f142=_0x2ac965['getNodeByPath'](_0x3e25eb);_0x9f142['getAttribute'](_0x141dd2)>0x0||_0x9f142['_setAttribute'](_0x141dd2,_0x2ec8f6[_0x1a3be2++]);}for(const [_0x2eab8a,_0x486664]of _0x9fd6d1['markers'])_0x2eab8a['startsWith']('revision:')||this['_markers']['set'](_0x2eab8a,_0x486664);}const _0x4eb273=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4eb273),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4eb273,0x1));const _0x436ba3=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x436ba3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x436ba3,0x1));const _0x1248a9=Array['from'](this['_diffRoots'])['map'](([_0x17836d,_0x242426])=>[_0x17836d,N(_0x242426)]);this['_saveMetaData'](this['_lastTo'],_0x1248a9,this['_markers'],_0x13a9d8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x29e7e1,_0x376595,_0x1fda4c,_0x4b463e){const _0x244ca0=new Map(_0x376595),_0x504cb6=new Map(_0x425cb6(_0x4b463e)),_0x13bb6c=new Map();for(const [_0x39acac,_0x1f8bdf]of _0x1fda4c)_0x13bb6c['set'](_0x39acac,{'start':_0x1f8bdf['start']['clone'](),'end':_0x1f8bdf['end']['clone'](),'rootName':_0x1f8bdf['root']['rootName']});this['_savedMetaData']['set'](_0x29e7e1,{'roots':_0x244ca0,'markers':_0x13bb6c,'rootsAttributes':_0x504cb6});}['_removeMetaData'](_0x49cd11){this['_savedMetaData']['delete'](_0x49cd11);}['_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'](_0x358fbc,_0x53dfd1=null){let _0x402d20=null;_0x358fbc['is']('documentFragment')||(_0x402d20=new ut(_0x358fbc['name'],{'vid_start':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));const _0xf5ea45=[];for(const _0x4c56d6 of _0x358fbc['getChildren']())if(_0x4c56d6['is']('element')){_0xf5ea45['push'](this['_makeIdsRoot'](_0x4c56d6,_0x53dfd1));const _0x5566f3=_0xf5ea45[_0xf5ea45['length']-0x1];null!==_0x53dfd1&&(_0x53dfd1=_0x5566f3['is']('element','$text')?_0x5566f3['getAttribute']('vid')+0x1:_0x5566f3['getAttribute']('vid_end')+0x1);}else{for(let _0xe79ac7=0x0;_0xe79ac7<_0x4c56d6['offsetSize'];_0xe79ac7++)_0xf5ea45['push'](new ut('$text',{'vid':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));}if(_0x358fbc['is']('documentFragment')){const _0x32799b=P(_0x358fbc['rootName']);return _0x32799b['_insertChild'](0x0,_0xf5ea45),_0x32799b;}return _0x402d20['_setAttribute']('vid_end',null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++),_0x402d20['_insertChild'](0x0,_0xf5ea45),_0x402d20;}['_calculateMetaData'](_0x32543a,_0x2144db,_0x344596){this['_reset']();const {roots:_0x2c5586,markers:_0x48ecc6,rootsAttributes:_0x4b9326}=this['_savedMetaData']['get'](_0x32543a);this['_baseRoots']=new Map(_0x2c5586),this['_baseRootsAttributes']=new Map(_0x425cb6(_0x4b9326));for(const [_0x22adb6,_0x1d2eb3]of this['_baseRoots'])if('$graveyard'!==_0x22adb6&&(this['_diffRoots']['set'](_0x22adb6,N(_0x1d2eb3)),this['_diffRootsAttributes']=new Map(_0x425cb6(_0x4b9326)),_0x344596)){const _0xa9b33c=this['_revisionId'];this['_idsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3)),this['_baseIdsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3,_0xa9b33c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x344596&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e9a21,_0x24e755]of _0x48ecc6){const _0x1cb75d=this['_baseRoots']['get'](_0x24e755['rootName']),_0x29e1f8=this['_diffRoots']['get'](_0x24e755['rootName']),_0x2f81de=new lt(this['_fixPosition'](_0x24e755['start'],_0x1cb75d),this['_fixPosition'](_0x24e755['end'],_0x1cb75d)),_0x21af5a=this['_fixRange'](_0x2f81de,_0x29e1f8);_0x1cb75d['markers']['set'](_0x5e9a21,_0x2f81de),this['_markers']['set'](_0x5e9a21,_0x21af5a);}this['_applyOperations'](_0x32543a,_0x2144db,_0x344596);}['_applyOperations'](_0x237e14,_0x29d6a0,_0x376097){for(const _0x50ac00 of this['source']['getOperations'](_0x237e14,_0x29d6a0))this['_handleOperation'](_0x50ac00,_0x376097);for(const _0x79f5ab of this['_diffRoots']['values']())_0x79f5ab['markers']['clear']();for(const [_0xba9697,_0x55ea91]of this['_markers']){this['_diffRoots']['get'](_0x55ea91['root']['rootName'])['markers']['set'](_0xba9697,_0x55ea91['clone']());}const _0x4fa8cd=new Map(),_0x293727=new Map();for(const [_0x4af55f,_0x4c90ab]of this['_diffRoots'])_0x4fa8cd['set'](_0x4af55f,N(_0x4c90ab)),_0x293727['set'](_0x4af55f,this['_diffRootsAttributes']['get'](_0x4af55f));this['_saveMetaData'](_0x29d6a0,_0x4fa8cd,this['_markers'],_0x293727);}['_getPreviousFrom'](_0x25ae10){const _0x4ba130=Array['from'](this['_savedMetaData']['keys']());_0x4ba130['sort']((_0xcc4d43,_0x54097b)=>_0xcc4d43-_0x54097b),_0x4ba130['reverse']();for(const _0x41be98 of _0x4ba130)if(_0x41be98<_0x25ae10)return _0x41be98;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42b9f7,_0x1f281c){const _0x59f74e=Array['from'](_0x1f281c['markers'])['map'](([_0x3b6ed2,_0x1fde1e])=>[_0x3b6ed2,this['_fixRange'](_0x1fde1e,_0x42b9f7)]);_0x42b9f7['markers']=new Map(_0x59f74e);}['_transformMarkers'](_0x47e5c6){for(const _0x191314 of this['_markers']['values']()){const _0x4226ee=_0x191314['getTransformedByOperation'](_0x47e5c6),_0x214695=lt['_createFromRanges'](_0x4226ee);_0x191314['start']=_0x214695['start'],_0x191314['end']=_0x214695['end'];}}['_handleOperation'](_0x54cc2b,_0x47b8f8){if('addRoot'!=_0x54cc2b['type']&&'detachRoot'!=_0x54cc2b['type']){if('insert'==_0x54cc2b['type']){const _0x472a06=_0x54cc2b['position']['root']['rootName'];this['_diffRoots']['has'](_0x472a06)||(this['_diffRoots']['set'](_0x472a06,P(_0x472a06,!0x0)),this['_diffRootsAttributes']['set'](_0x472a06,{}),_0x47b8f8&&this['_idsRoots']['set'](_0x472a06,P(_0x472a06,!0x0)));}else{if('addRootAttribute'==_0x54cc2b['type']||'removeRootAttribute'==_0x54cc2b['type']||'changeRootAttribute'==_0x54cc2b['type'])return void this['_handleRootAttributeOperation'](_0x54cc2b);'marker'==_0x54cc2b['type']&&this['_handleMarkerOperation'](_0x54cc2b);}if('marker'!==_0x54cc2b['type']){const _0x468085=this['_cloneOperation'](_0x54cc2b,this['_diffRoots']);_0x468085['_execute'](),this['_transformMarkers'](_0x468085);}if(_0x47b8f8)switch(_0x54cc2b['type']){case'insert':this['_handleInsertOperation'](_0x54cc2b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x54cc2b);break;case'merge':this['_handleMergeOperation'](_0x54cc2b);break;case'split':this['_handleSplitOperation'](_0x54cc2b);}}else this['_handleRootOperation'](_0x54cc2b,_0x47b8f8);}['_cloneOperation'](_0x43c34f,_0x5d209f){const _0x1aa3d4=_0x43c34f['clone']();return _0x1aa3d4['_authorId']=_0x43c34f['_authorId'],this['_fixOperation'](_0x1aa3d4,_0x5d209f),_0x1aa3d4;}['_getBaseVids'](_0x22caf9){return _0x22caf9['map'](_0x376d9a=>{const _0x364f7d=this['_getVidAttributeName'](_0x376d9a);return Number(_0x376d9a['item']['getAttribute'](_0x364f7d));});}['_generateTape'](_0x34197,_0x3797cb){if(_0x34197['is']('element','$text'))_0x3797cb['push']({'item':_0x34197,'type':'text'});else{_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementStart'});for(const _0xbbfdf3 of _0x34197['getChildren']())this['_generateTape'](_0xbbfdf3,_0x3797cb);_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementEnd'});}return _0x3797cb;}['_getState'](){const _0x275767=new Map(this['_touched']),_0x263d72=new Map(_0x275767),_0x175816=new Map(),_0x3ea30e={'insertions':{},'deletions':{}},_0x10d98c={'insertions':{},'deletions':{}},_0x2407a7=new Map(),_0x39b730=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39b730['delete']('$graveyard');for(const _0x120783 of _0x39b730){const _0x4dc4f4=this['_diffRoots']['get'](_0x120783)||P(_0x120783,!0x1),_0x505d6a=this['_baseRoots']['get'](_0x120783)||P(_0x120783,!0x1);_0x4dc4f4['isAttached']()||_0x505d6a['isAttached']()?(_0x3ea30e['insertions'][_0x120783]=N(_0x4dc4f4),_0x3ea30e['deletions'][_0x120783]=N(_0x505d6a),this['_copyMarkers'](_0x3ea30e['deletions'][_0x120783],_0x505d6a),this['_copyMarkers'](_0x3ea30e['insertions'][_0x120783],_0x4dc4f4),_0x10d98c['insertions'][_0x120783]=this['_generateTape'](this['_idsRoots']['get'](_0x120783),[]),_0x10d98c['deletions'][_0x120783]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x120783)||P(_0x120783,!0x1),[])):_0x39b730['delete'](_0x120783);}for(const _0x373f7b of _0x39b730){const _0x1d1485=_0x10d98c['insertions'][_0x373f7b];for(const _0x245a07 of _0x1d1485){const _0x3e7cdc=this['_getVidAttributeName'](_0x245a07),_0x29ead9=_0x245a07['item']['getAttribute'](_0x3e7cdc);_0x263d72['delete'](_0x29ead9),_0x29ead9>=this['_startingRevisionId']&&_0x175816['set'](_0x29ead9,_0x275767['get'](_0x29ead9));}}for(const _0x3fe4ab of _0x39b730){const _0x3596a0=_0x10d98c['insertions'][_0x3fe4ab],_0x2c49ab=this['_getBaseVids'](_0x10d98c['deletions'][_0x3fe4ab]);let _0x160b8f=0x0;for(const _0x2cecd4 of _0x3596a0){const _0x187c06=this['_getVidAttributeName'](_0x2cecd4),_0x3743d8=_0x2cecd4['item']['getAttribute'](_0x187c06);if(!_0x175816['has'](_0x3743d8)&&!_0x2407a7['has'](_0x3743d8)){if(_0x263d72['has'](_0x3743d8))_0x160b8f++;else{if(_0x3743d8!=_0x2c49ab[_0x160b8f]){const _0x53f41a=_0x275767['get'](_0x3743d8)||_0x275767['get'](_0x2c49ab[_0x160b8f]);for(;_0x3743d8!=_0x2c49ab[_0x160b8f];)_0x263d72['has'](_0x2c49ab[_0x160b8f])||(_0x2407a7['set'](_0x2c49ab[_0x160b8f],_0x53f41a),_0x275767['set'](_0x2c49ab[_0x160b8f],_0x53f41a)),_0x160b8f++;}_0x160b8f++;}}}}for(const _0x3814ca of _0x39b730){const _0x3326b8=_0x10d98c['insertions'][_0x3814ca];for(const _0x3ec0cc of _0x3326b8){const _0x4b39cd=this['_getVidAttributeName'](_0x3ec0cc),_0x473932=_0x3ec0cc['item']['getAttribute'](_0x4b39cd);if(_0x2407a7['has'](_0x473932)){const _0x2abc8c=_0x2407a7['get'](_0x473932);_0x263d72['has'](_0x473932)||_0x263d72['set'](_0x473932,{..._0x2abc8c}),_0x175816['set'](_0x473932,{..._0x2abc8c});}}}for(const _0x4da8e6 of _0x263d72['keys']())_0x4da8e6>=this['_startingRevisionId']&&_0x263d72['delete'](_0x4da8e6);const _0x4474ab=new Map();for(const _0x2a4a3f of _0x39b730){let _0x45f173=_0x10d98c['insertions'][_0x2a4a3f];for(const _0x597c32 of _0x45f173)if(_0x597c32['item']['is']('element','tableCell')){const _0x2ea97c=this['_getVidAttributeName'](_0x597c32),_0x4fceea=_0x597c32['item']['getAttribute'](_0x2ea97c);if(_0x175816['has'](_0x4fceea)){const _0x5f2c72=_0x597c32['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c17b7=_0x4474ab['get'](_0x5f2c72)||new Set();_0x1c17b7['add'](_0x175816['get'](_0x4fceea)['userId']),_0x4474ab['set'](_0x5f2c72,_0x1c17b7);}}_0x45f173=_0x10d98c['deletions'][_0x2a4a3f];for(const _0x32e62c of _0x45f173)if(_0x32e62c['item']['is']('element','tableCell')){const _0x3b6bb3=this['_getVidAttributeName'](_0x32e62c),_0x2b0e8d=_0x32e62c['item']['getAttribute'](_0x3b6bb3);if(_0x263d72['has'](_0x2b0e8d)){const _0x37a7a1=_0x32e62c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2a319b=_0x4474ab['get'](_0x37a7a1)||new Set();_0x2a319b['add'](_0x263d72['get'](_0x2b0e8d)['userId']),_0x4474ab['set'](_0x37a7a1,_0x2a319b);}}for(const _0x4fff1e of _0x4474ab['keys']())(_0x175816['has'](_0x4fff1e)||_0x263d72['has'](_0x4fff1e))&&_0x4474ab['delete'](_0x4fff1e);}for(const _0x3d1c14 of _0x39b730){const _0x166262=_0x10d98c['insertions'][_0x3d1c14];let _0x596a48=null,_0x34334f=null;for(const _0x347ff3 of _0x166262){const _0x5cc3c2=this['_getVidAttributeName'](_0x347ff3),_0x17ea88=_0x347ff3['item']['getAttribute'](_0x5cc3c2),_0x182a31=_0x4474ab['get'](_0x17ea88);_0x182a31&&'elementStart'==_0x347ff3['type']&&(_0x596a48=Array['from'](_0x182a31)[0x0],_0x34334f=_0x347ff3['item']['getAttribute']('vid_end')),_0x596a48&&(_0x263d72['set'](_0x17ea88,{'userId':_0x596a48}),_0x175816['set'](_0x17ea88,{'userId':_0x596a48})),_0x17ea88==_0x34334f&&(_0x596a48=null,_0x34334f=null);}}const _0x2d3af5={},_0x4387f8=new Set();for(const _0x199c67 of _0x39b730){const _0x4f0f1b=_0x3ea30e['deletions'][_0x199c67],_0x8c5344=_0x3ea30e['insertions'][_0x199c67];for(const {userId:_0x24c7f8}of this['_touchedMarkers']['values']())null!==_0x24c7f8&&_0x4387f8['add'](_0x24c7f8);for(const {userId:_0x5389f9}of this['_touchedRoots']['values']())null!==_0x5389f9&&_0x4387f8['add'](_0x5389f9);this['_markChanges'](_0x8c5344,_0x10d98c['insertions'][_0x199c67],_0x175816,'insertion',_0x4387f8),this['_markChanges'](_0x4f0f1b,_0x10d98c['deletions'][_0x199c67],_0x263d72,'deletion',_0x4387f8),_0x2d3af5[_0x199c67]={'insertions':this['_prepareViewToSave'](_0x8c5344),'deletions':this['_prepareViewToSave'](_0x4f0f1b),'attachChange':this['_touchedRoots']['get'](_0x199c67)||null,'attributesBefore':_0x425cb6(this['_baseRootsAttributes']['get'](_0x199c67))||{},'attributesAfter':_0x425cb6(this['_diffRootsAttributes']['get'](_0x199c67))};}return{'diffData':_0x2d3af5,'authorsIds':Array['from'](_0x4387f8)};}['_processRootBeforeSave'](_0x100df5){for(const [,_0x120e40]of _0x100df5['markers']){const _0x589cd4=_0x120e40['start']['getAncestors']()['filter'](_0x5054fb=>'tableCell'==_0x5054fb['name']);for(const _0xc6db15 of _0x589cd4)0x1==_0xc6db15['childCount']&&_0xc6db15['getChild'](0x0)['is']('element','paragraph')&&_0xc6db15['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2408e0){this['_processRootBeforeSave'](_0x2408e0);const _0x362833=this['editor']['data']['toView'](_0x2408e0,{}),_0x436eb6=Array['from'](_0x362833['getChildren']())['map'](_0x38deea=>this['_getViewJson'](_0x38deea));return JSON['stringify'](_0x436eb6);}['_getViewJson'](_0xcbafd6){if(_0xcbafd6['is']('$text'))return _0xcbafd6['data'];{const _0x2898c3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x395ab8=_0xcbafd6,_0x500d2d=this['editor']['data']['htmlProcessor']['domConverter'],_0x510cfc={'type':_0x2898c3['_getTypeCharForViewElement'](_0x395ab8),'name':_0x395ab8['name'],'attributes':Array['from'](_0x395ab8['getAttributes']()),'children':Array['from'](_0x395ab8['getChildren']())['map'](_0x4b7f80=>this['_getViewJson'](_0x4b7f80))};if(_0xcbafd6['is']('uiElement')&&'$comment'!=_0xcbafd6['name']){const _0x27a757=_0xcbafd6['render'](_0x500d2d['domDocument'],_0x500d2d);_0x510cfc['children']['push'](_0x27a757['outerHTML']);}else{if(_0xcbafd6['is']('rawElement')){const _0x5a2676=_0x500d2d['domDocument']['createElement'](_0x395ab8['name']);_0xcbafd6['render'](_0x5a2676,_0x500d2d),_0x510cfc['children']['push'](_0x5a2676['innerHTML']);}}const _0x33dd5d=Array['from'](_0x395ab8['getCustomProperties']());_0x33dd5d['length']>0x0&&(_0x510cfc['customProperties']=_0x33dd5d);const _0x5b0bf4=_0x395ab8['getFillerOffset']();return null!==_0x5b0bf4&&(_0x510cfc['fillerOffset']=_0x5b0bf4),_0x510cfc;}}['_markChanges'](_0x5936f2,_0x4f51da,_0x4296b8,_0x5c47ad,_0x28acc9){let _0x4f7b3d=null,_0x3e518a=null,_0x25b138=0x0;const _0x9fefe0=this['editor']['model'];for(let _0x17d14c=0x0;_0x17d14c<_0x4f51da['length'];_0x17d14c++){const _0x4ef737=this['_getVidAttributeName'](_0x4f51da[_0x17d14c]),_0x4dca1c=_0x4f51da[_0x17d14c]['item']['getAttribute'](_0x4ef737),_0x5687de=_0x4296b8['get'](_0x4dca1c),_0x36aa96=_0x17d14c==_0x4f51da['length']-0x1;(!_0x4f7b3d&&_0x5687de&&(_0x4f7b3d=_0x5687de,_0x3e518a=_0x4f51da[_0x17d14c]),_0x4f7b3d&&(!_0x5687de||_0x5687de['userId']!=_0x4f7b3d['userId']))&&(_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),F(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0)),_0x4f7b3d=_0x5687de||null,_0x3e518a=_0x5687de?_0x4f51da[_0x17d14c]:null),_0x4f7b3d&&_0x36aa96&&_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),B(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0));}function _0x1b7647(_0x198a6f,_0xea05ae,_0xccbbad){const _0x1a6dac=_0x4f7b3d['userId'],_0x332125='revision:'+_0x5c47ad+':'+_0x1a6dac+':'+_0x25b138++,_0x17d55c=_0x9fefe0['createRange'](_0xea05ae,_0xccbbad);_0x5936f2['markers']['set'](_0x332125,_0x17d55c),null!==_0x1a6dac&&_0x28acc9['add'](_0x1a6dac);}}['_getVidAttributeName'](_0x529860){switch(_0x529860['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26820b,_0x11a9d2){_0x26820b['baseVersion']=null;for(const _0x4b1893 in _0x26820b){const _0x58264d=_0x26820b[_0x4b1893];if(_0x58264d instanceof ft){const _0x44f622=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixPosition'](_0x58264d,_0x44f622);}if(_0x58264d instanceof lt){const _0x4a2745=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixRange'](_0x58264d,_0x4a2745);}'root'===_0x4b1893&&(_0x26820b['root']=_0x11a9d2['get'](_0x26820b['root']['rootName']));}}['_fixRange'](_0xaba299,_0x3aed72){return this['editor']['model']['createRange'](this['_fixPosition'](_0xaba299['start'],_0x3aed72),this['_fixPosition'](_0xaba299['end'],_0x3aed72));}['_fixPosition'](_0x4566e1,_0xab0c8f){return this['editor']['model']['createPositionFromPath'](_0xab0c8f,_0x4566e1['path'],_0x4566e1['stickiness']);}['_handleInsertOperation'](_0x1f686f){const _0x4e8a9d=this['_idsRoots']['get'](_0x1f686f['position']['root']['rootName']),_0x481f29=this['_fixPosition'](_0x1f686f['position'],_0x4e8a9d),_0x5c7a6b=null===_0x1f686f['_authorId']?null:_0x1f686f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376cea=_0x481f29['parent'],_0x20e5d5=this['_revisionId'],_0x2af8bf=[];for(const _0x46ac6f of _0x1f686f['nodes'])if(_0x46ac6f['is']('element'))_0x2af8bf['push'](this['_makeIdsRoot'](_0x46ac6f));else{for(let _0x2ca702=0x0;_0x2ca702<_0x46ac6f['offsetSize'];_0x2ca702++)_0x2af8bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xe893d7=this['_revisionId'];for(let _0x44a1be=_0x20e5d5;_0x44a1be<_0xe893d7;_0x44a1be++)this['_touched']['set'](_0x44a1be,{'userId':_0x5c7a6b});_0x376cea['_insertChild'](_0x481f29['offset'],_0x2af8bf);}['_handleMoveOperation'](_0x18d12b){(_0x18d12b=this['_cloneOperation'](_0x18d12b,this['_idsRoots']))['_execute']();const _0x5858b7=null===_0x18d12b['_authorId']?null:_0x18d12b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe6b3d4=_0x18d12b['getMovedRangeStart'](),_0xad4ff9=_0xe6b3d4['parent'],_0x7a2b1=_0xe6b3d4['offset'];!function _0x2e4a06(_0x56631e,_0xf6edf7,_0x22e175,_0x2d8767){for(let _0x5da5e2=_0x22e175;_0x5da5e2<_0x2d8767;_0x5da5e2++){const _0xe1ff02=_0xf6edf7['getChild'](_0x5da5e2);_0xe1ff02['is']('element','$text')?_0x56631e['set'](_0xe1ff02['getAttribute']('vid'),{'userId':_0x5858b7}):(_0x56631e['set'](_0xe1ff02['getAttribute']('vid_start'),{'userId':_0x5858b7}),_0x2e4a06(_0x56631e,_0xe1ff02,0x0,_0xe1ff02['childCount']),_0x56631e['set'](_0xe1ff02['getAttribute']('vid_end'),{'userId':_0x5858b7}));}}(this['_touched'],_0xad4ff9,_0x7a2b1,_0x7a2b1+_0x18d12b['howMany']);}['_handleMergeOperation'](_0x5d6c46){const _0x6fa484=null===(_0x5d6c46=this['_cloneOperation'](_0x5d6c46,this['_idsRoots']))['_authorId']?null:_0x5d6c46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e4305=_0x5d6c46['targetPosition']['parent'],_0x367dbb=_0x5d6c46['sourcePosition']['parent'],_0x363ab0=_0x2e4305['getAttribute']('vid_end'),_0x25ffcd=_0x367dbb['getAttribute']('vid_start');_0x2e4305['_setAttribute']('vid_end',_0x367dbb['getAttribute']('vid_end')),_0x367dbb['_setAttribute']('vid_end',_0x363ab0),this['_touched']['set'](_0x25ffcd,{'userId':_0x6fa484}),this['_touched']['set'](_0x363ab0,{'userId':_0x6fa484}),_0x5d6c46['_execute']();}['_handleSplitOperation'](_0x1b154f){const _0x6dcdb2=null===(_0x1b154f=this['_cloneOperation'](_0x1b154f,this['_idsRoots']))['_authorId']?null:_0x1b154f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ee664=_0x1b154f['graveyardPosition'],_0x2f546c=_0x1b154f['splitPosition']['parent'];_0x1b154f['_execute']();const _0x3ac003=_0x2f546c['getAttribute']('vid_end'),_0x3c2346=_0x1b154f['insertionPosition']['nodeAfter'];if(_0x2ee664){const _0x3b1ea7=_0x3c2346['getAttribute']('vid_end'),_0x1895b1=_0x2f546c['getAttribute']('vid_end');_0x2f546c['_setAttribute']('vid_end',_0x3b1ea7),_0x3c2346['_setAttribute']('vid_end',_0x1895b1),this['_touched']['set'](_0x2f546c['getAttribute']('vid_end'),{'userId':_0x6dcdb2}),this['_touched']['set'](_0x3c2346['getAttribute']('vid_start'),{'userId':_0x6dcdb2});}else{const _0x4b7e18=this['_revisionId']++,_0x14ee3d=this['_revisionId']++;_0x2f546c['_setAttribute']('vid_end',_0x4b7e18),_0x3c2346['_setAttribute']('vid_start',_0x14ee3d),_0x3c2346['_setAttribute']('vid_end',_0x3ac003),this['_touched']['set'](_0x4b7e18,{'userId':_0x6dcdb2}),this['_touched']['set'](_0x14ee3d,{'userId':_0x6dcdb2});}}['_handleMarkerOperation'](_0x51c42d){if(!_0x51c42d['affectsData'])return;const _0x3725e6=(_0x51c42d=this['_cloneOperation'](_0x51c42d,this['_diffRoots']))['oldRange']?_0x51c42d['oldRange']['root']:null,_0x48dd50=_0x51c42d['newRange']?_0x51c42d['newRange']['root']:null;_0x3725e6&&this['_markers']['delete'](_0x51c42d['name']),_0x48dd50&&this['_markers']['set'](_0x51c42d['name'],_0x51c42d['newRange']['clone']());const _0xc1527a=null===_0x51c42d['_authorId']?null:_0x51c42d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17db1d=_0x51c42d['name'];if(!this['_touchedMarkers']['has'](_0x17db1d))return void this['_touchedMarkers']['set'](_0x17db1d,{'range':_0x51c42d['oldRange'],'userId':_0xc1527a});const _0x4a765d=this['_touchedMarkers']['get'](_0x17db1d),_0x375eb6=_0x4a765d['range'],_0x621f15=_0x51c42d['newRange'];null==_0x375eb6&&null==_0x621f15||_0x375eb6&&_0x621f15&&_0x375eb6['isEqual'](_0x621f15)?this['_touchedMarkers']['delete'](_0x51c42d['name']):_0x4a765d['userId']=_0xc1527a;}['_handleRootOperation'](_0x136bf0,_0x5140f2){this['_diffRoots']['has'](_0x136bf0['rootName'])?this['_diffRoots']['get'](_0x136bf0['rootName'])['_isAttached']=_0x136bf0['isAdd']:(this['_diffRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136bf0['rootName'],{}),_0x5140f2&&this['_idsRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)));const _0xb8d289=null===_0x136bf0['_authorId']?null:_0x136bf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28355d=this['_touchedRoots']['get'](_0x136bf0['rootName']);_0x28355d&&_0x28355d['userId']===_0xb8d289?this['_touchedRoots']['delete'](_0x136bf0['rootName']):this['_touchedRoots']['set'](_0x136bf0['rootName'],{'userId':_0xb8d289,'isAttached':_0x136bf0['isAdd']});}['_handleRootAttributeOperation'](_0x24df05){const _0x48a186=this['_diffRootsAttributes']['get'](_0x24df05['root']['rootName']);null===_0x24df05['newValue']?delete _0x48a186[_0x24df05['key']]:_0x48a186[_0x24df05['key']]=_0x24df05['newValue'];}}function N(_0x34f356){const _0x5aa994=P(_0x34f356['rootName'],_0x34f356['isAttached']());for(const _0x540ef7 of _0x34f356['getChildren']()){const _0x4d8ea7=_0x540ef7['_clone'](!0x0);_0x5aa994['_appendChild'](_0x4d8ea7);}return _0x5aa994;}function P(_0x5da987,_0x23bf92=!0x0){const _0x1f7273=new vt();return _0x1f7273['rootName']=_0x5da987,_0x1f7273['_isAttached']=_0x23bf92,_0x1f7273['isAttached']=()=>_0x1f7273['_isAttached'],_0x1f7273;}function F(_0x4b168e,_0x4ca2ab,_0x297c7e){const _0x3e4c4b='elementEnd'==_0x4b168e['type']?_0x297c7e['createPositionAt'](_0x4b168e['item'],'end'):_0x297c7e['createPositionBefore'](_0x4b168e['item']);return _0x297c7e['createPositionFromPath'](_0x4ca2ab,_0x3e4c4b['path'],_0x3e4c4b['stickiness']);}function B(_0x2b4752,_0x2037b6,_0xe95a72){const _0x2634e6='elementStart'==_0x2b4752['type']?_0xe95a72['createPositionAt'](_0x2b4752['item'],0x0):_0xe95a72['createPositionAfter'](_0x2b4752['item']);return _0xe95a72['createPositionFromPath'](_0x2037b6,_0x2634e6['path'],_0x2634e6['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c23a9,_0xd8d7e5){super(_0x5c23a9),this['focusTracker']=new _0x1d7358(),this['keystrokes']=new _0x2fbd22(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xd8d7e5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1b7731(this);}['render'](){super['render'](),_0x299d24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a68a4=_0x443618=>_0x443618['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a68a4),this['keystrokes']['set']('arrowleft',_0x3a68a4),this['keystrokes']['set']('arrowup',_0x3a68a4),this['keystrokes']['set']('arrowdown',_0x3a68a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53cfa9){this['revisionNameInputView']['fieldView']['element']['value']=_0x53cfa9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28d2c5){const _0x7d41a=new _0x5b84f9(this['locale'],_0x307c29),_0x3772ae=_0x7d41a['fieldView'];_0x3772ae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x314409=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28d2c5&&(_0x314409+='\x20('+g(this['locale'],'optional')+')'),(_0x7d41a['label']=_0x314409,_0x3772ae['on']('input',()=>{this['revisionNameInputValue']=_0x3772ae['element']['value']['trim']();}),_0x7d41a);}}class f extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x51f0f8=this['editor'],_0x2ef902=_0x51f0f8['plugins']['get']('RevisionTracker');_0x51f0f8['ui']['componentFactory']['add']('revisionHistory',_0x268151=>{const _0x19015b=_0x11b6e8(_0x268151),_0x23a141=_0x19015b['panelView']['children'],_0x49b84c=new _0x1d094f(_0x268151),_0x5771ee=new _0x46fcb4(_0x268151),_0x120e61=new te(_0x268151),_0x3945fd=new _0x46fcb4(_0x268151),_0x597e20=new te(_0x268151);return _0x19015b['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x3d0780,_0x772182,_0x1dd18c)=>_0x3d0780&&_0x772182&&!_0x1dd18c),_0x19015b['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x268151,'Revision\x20history'),'tooltip':!0x0}),_0x120e61['set']({'label':g(_0x268151,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x120e61['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x428f5e,_0x547697,_0x5b3d34)=>_0x428f5e&&_0x547697&&!_0x5b3d34),_0x120e61['on']('execute',()=>this['_showDialog']()),_0x597e20['set']({'label':g(_0x268151,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x597e20['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x51f0f8,'isReadOnly',(_0x27d609,_0xeb93a5)=>_0x27d609&&!_0xeb93a5),_0x597e20['on']('execute',()=>{_0x51f0f8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x19015b['isOpen']=!0x1,_0x51f0f8['editing']['view']['focus']();}),_0x5771ee['children']['add'](_0x120e61),_0x3945fd['children']['add'](_0x597e20),_0x49b84c['role']='menu',_0x49b84c['items']['addMany']([_0x5771ee,_0x3945fd]),_0x23a141['add'](_0x49b84c),_0x19015b;}),_0x51f0f8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xb964c=this['editor'],_0x5db422=_0xb964c['locale'],_0x47979a=new _0x44467d(_0x5db422),_0x260e83=new _0x1ff7c0(_0x5db422);_0x47979a['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x5db422,'Revision\x20history')});const _0x219bec=new _0x74afb2(_0x5db422,_0x47979a),_0x278b3d=new _0x50e74c(_0x5db422);_0x278b3d['set']({'label':g(_0x5db422,'Save\x20current\x20revision')}),_0x278b3d['delegate']('execute')['to'](_0x47979a),_0x278b3d['on']('execute',()=>{this['_showDialog']();}),_0x219bec['children']['add'](_0x278b3d),_0x260e83['items']['add'](_0x219bec);const _0x424e58=new _0x74afb2(_0x5db422,_0x47979a),_0x9c4176=new _0x50e74c(_0x5db422);return _0x9c4176['set']({'label':g(_0x5db422,'Open\x20revision\x20history')}),_0x9c4176['delegate']('execute')['to'](_0x47979a),_0x9c4176['on']('execute',()=>{_0xb964c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x424e58['children']['add'](_0x9c4176),_0x260e83['items']['add'](_0x424e58),_0x47979a['panelView']['children']['add'](_0x260e83),_0x47979a;}['_showDialog'](){const _0x2addc1=this['editor'],_0x12d1cb=_0x2addc1['locale'],_0x869ab8=_0x2addc1['plugins']['get']('Dialog'),_0x5e3ae4=_0x2addc1['plugins']['get']('RevisionTracker');function _0x5568f8(_0x334930){_0x2addc1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x334930['revisionName']?_0x334930['revisionNameInputView']['errorText']=g(_0x12d1cb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2addc1['plugins']['get'](u)['saveRevision']({'name':_0x334930['revisionName']}),_0x869ab8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5568f8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x869ab8['show']({'id':'revisionSave','title':g(_0x12d1cb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2addc1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x869ab8['hide']()},{'label':g(_0x2addc1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1f12f7){_0x1f12f7['bind']('isEnabled')['to'](_0x5e3ae4,'isReady',_0x5e3ae4,'isEnabled',_0x2addc1,'isReadOnly',(_0xeb103a,_0x4831a8,_0x457fd4)=>_0xeb103a&&_0x4831a8&&!_0x457fd4);},'onExecute':()=>_0x5568f8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5608b6=this['editor'],_0x5f3cbf=_0x5608b6['locale'];this['_saveRevisionFormView']=new hs(_0x5f3cbf,_0x5608b6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x588a8e,_0x1fa34){super(_0x588a8e),this['_model']=_0x1fa34,this['changeId']=_0x1fa34['id'];const _0x553d84=this['bindTemplate'],_0x1277fa=g(_0x588a8e,_0x1fa34['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1fa34['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1fa34['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x553d84['to']('type',_0x1d1c14=>'ck-revision-change__'+_0x1d1c14)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1277fa}]},{'text':'\x20'+_0x1fa34['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x32ac1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x868d59){super(),this['id']=_0x868d59['id']||_0x3cce8a(),this['author']=_0x868d59['author'],this['type']=_0x868d59['type'],this['data']=_0x868d59['data']||{},this['rootName']=_0x868d59['rootName'],this['set']('createdAt',_0x868d59['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(_0x57f656,_0x136b57){this['newRevisionId']=_0x57f656,this['oldRevisionId']=_0x136b57,this['changes']=new _0xce0641();}['_setChanges'](_0x9020d1){for(const _0x1f4514 of _0x9020d1)this['changes']['add'](_0x1f4514);}}class m extends _0x432e21{['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[_0x3dc44b,_0x3d22b1,I,V];}constructor(_0x1bb9ce){super(_0x1bb9ce),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',(_0x2a6c3a,_0x429d6d,_0xef1199)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2482df=>{for(const _0x2fe232 of this['editor']['editing']['view']['document']['roots'])_0xef1199?_0x2482df['removeClass']('ck-editor__editable__overlay',_0x2fe232):_0x2482df['addClass']('ck-editor__editable__overlay',_0x2fe232);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5c445f=>null!==_0x5c445f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1962a5,_0x1eee8b,_0x5611bc)=>_0x1962a5&&_0x5611bc?_0x1eee8b['changes']['getIndex'](_0x5611bc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2aa786,_0x17b6ad)=>_0x2aa786?_0x17b6ad['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3d22b1);}['init'](){const _0x46b8b3=this['editor'],_0x44acf6=new wt(_0x46b8b3,{'direction':'backward'}),_0xb97c0d=new wt(_0x46b8b3,{'direction':'forward'});(_0x46b8b3['commands']['add']('showPreviousChange',_0x44acf6),_0x46b8b3['commands']['add']('showNextChange',_0xb97c0d),_0x46b8b3['commands']['add']('restoreRevision',new mt(_0x46b8b3)),this['on']('change:numberOfChanges',()=>{_0x44acf6['refresh'](),_0xb97c0d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x46b8b3['enableReadOnlyMode']('revision-viewer'),_0x46b8b3['plugins']['has']('WidgetToolbarRepository'))&&_0x46b8b3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x562a61){return await this['_utils']['loadRevisionData'](_0x562a61,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x562a61);}async['getRevisionRootsAttributes'](_0x2d6b72){return await this['_utils']['loadRevisionData'](_0x2d6b72,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d6b72);}async['compare'](_0x120a75,_0x1005d0,_0x435880=!0x1){if(!this['isEnabled'])return;const _0x35fd73=this['diff'],_0x338348=this['repository'],_0x4d5476='string'==typeof _0x120a75?_0x338348['getRevision'](_0x120a75):_0x120a75,_0x281d90='string'==typeof _0x1005d0?_0x338348['getRevision'](_0x1005d0):_0x1005d0,_0x5bf93d=_0x4d5476['id'],_0x55caba=_0x281d90?_0x281d90['id']:null;if(!_0x435880&&this['diff']&&this['diff']['newRevisionId']===_0x5bf93d&&this['diff']['oldRevisionId']===_0x55caba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5bf93d,_0x55caba);const _0x45a15e=this['_getRevisionsRange'](_0x4d5476,_0x281d90,!0x0)['map'](_0x525856=>this['_utils']['loadRevisionData'](_0x525856,this['adapter']));return _0x45a15e['push'](new Promise(_0x2d8348=>{setTimeout(_0x2d8348,0x14);})),Promise['all'](_0x45a15e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x335de1=this['_getDiff'](_0x5bf93d,_0x55caba);for(const _0x49d308 of _0x335de1['changes'])this['_changeIdToChange']['set'](_0x49d308['id'],_0x49d308);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5d8ef4=>{for(const _0xa59806 of this['editor']['model']['document']['getRootNames']())_0x5d8ef4['detachRoot'](_0xa59806);for(const _0x4a12f2 of Object['keys'](_0x335de1['model'])){const _0x2cc3c0=_0x5d8ef4['addRoot'](_0x4a12f2);for(const _0x4ddbcd of Object['keys'](_0x335de1['attributes'][_0x4a12f2]))_0x5d8ef4['setAttribute'](_0x4ddbcd,_0x335de1['attributes'][_0x4a12f2][_0x4ddbcd],_0x2cc3c0);_0x5d8ef4['insert'](_0x335de1['model'][_0x4a12f2],_0x2cc3c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x335de1['changes'])),this['isReady']=!0x0;})['catch'](_0x21c956=>{console['error'](_0x21c956),this['_cleanUp'](),_0x35fd73&&(this['diff']=_0x35fd73),this['isReady']=!0x0;});}['addRevisionData'](_0x14320e,_0x1e2d94){const _0x4e38aa=this['repository']['createRevision'](_0x14320e);return _0x4e38aa['on']('_update',(_0x268a9b,_0x57da3e,_0x32ad27)=>_0x1e2d94(_0x57da3e,_0x32ad27,_0x4e38aa)),this['repository']['addRevision'](_0x4e38aa),_0x4e38aa;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x351bc8=>{for(const _0x465c8e of this['editor']['model']['document']['getRootNames']())_0x351bc8['detachRoot'](_0x465c8e);});}['_sortAndFilterDiffChanges'](_0x3d6c31){const _0x2ecf35=[],_0x2990ed=new Map();for(const _0x695275 of this['editor']['model']['document']['getRootNames']()){const _0x730552=this['editor']['editing']['view']['getDomRoot'](_0x695275);if(!_0x730552)continue;const _0xedea72=_0x730552['getClientRects']()['item'](0x0);_0xedea72&&(_0x2ecf35['push'](_0x695275),_0x2990ed['set'](_0x695275,_0xedea72));}return _0x2ecf35['sort']((_0x2e8ad4,_0x318c5a)=>{const _0x4191f4=_0x2990ed['get'](_0x2e8ad4),_0x35fc2c=_0x2990ed['get'](_0x318c5a);return _0x4191f4['y']-_0x35fc2c['y']||_0x4191f4['x']-_0x35fc2c['x'];}),(_0x3d6c31=_0x3d6c31['filter'](_0x37e3c7=>_0x2ecf35['includes'](_0x37e3c7['rootName'])))['sort']((_0x4ac942,_0x239289)=>_0x2ecf35['indexOf'](_0x4ac942['rootName'])-_0x2ecf35['indexOf'](_0x239289['rootName'])),_0x3d6c31;}['_makeTape'](_0x2580c6){const _0x579c5=Array['from'](_0x2580c6['markers'])['filter'](([_0x18c7c4,_0x23adc8])=>_0x18c7c4['startsWith']('revision:')&&!_0x23adc8['isCollapsed']),_0x2bb87a=Array['from'](this['editor']['model']['createRangeIn'](_0x2580c6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x579c5['length'])for(const _0x189b5b of _0x2bb87a){const [_0x4afd04,_0x18a61c]=_0x579c5[0x0],[,_0x236509,_0x3511eb]=_0x4afd04['split'](':');if(_0x18a61c['end']['isEqual'](_0x189b5b['nextPosition'])&&_0x579c5['shift'](),(_0x189b5b['previousPosition']['isEqual'](_0x18a61c['start'])||_0x189b5b['previousPosition']['isAfter'](_0x18a61c['start']))&&('insertion'==_0x236509?_0x189b5b['isAdded']={'userId':_0x3511eb}:'deletion'==_0x236509&&(_0x189b5b['isRemoved']={'userId':_0x3511eb})),0x0==_0x579c5['length'])break;}return _0x2bb87a;}['_refreshStartEndIndex'](_0x233928){const _0x4fb5c2=new Map();for(let _0x5cdc72=0x0;_0x5cdc72<_0x233928['length'];_0x5cdc72++)'text'===_0x233928[_0x5cdc72]['type']?(_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72,_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72):('elementStart'===_0x233928[_0x5cdc72]['type']?_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72:'elementEnd'===_0x233928[_0x5cdc72]['type']&&(_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72),_0x4fb5c2['set'](_0x233928[_0x5cdc72]['id'],_0x5cdc72));for(const _0x2e79fd of _0x4fb5c2['values']())'elementStart'===_0x233928[_0x2e79fd]['type']?_0x233928[_0x2e79fd]['item']['endIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']):'elementEnd'===_0x233928[_0x2e79fd]['type']&&(_0x233928[_0x2e79fd]['item']['startIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']));}['_processTape'](_0xd2cfe2){for(let _0x51c1f9=0x0;_0x51c1f9<_0xd2cfe2['length'];_0x51c1f9++){if('elementStart'===_0xd2cfe2[_0x51c1f9]['type'])_0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9;else{if('elementEnd'===_0xd2cfe2[_0x51c1f9]['type']){_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9;const _0x261e71=_0xd2cfe2[_0x51c1f9]['item']['startIndex'];_0xd2cfe2[_0x261e71]['pairId']=_0xd2cfe2[_0x51c1f9]['id'],_0xd2cfe2[_0x51c1f9]['pairId']=_0xd2cfe2[_0x261e71]['id'];}else _0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['pairId']=null;}_0xd2cfe2[_0x51c1f9]['markersStart']||(_0xd2cfe2[_0x51c1f9]['markersStart']=[],_0xd2cfe2[_0x51c1f9]['markersEnd']=[]);}}['_markInsertions'](_0x1611d2,_0x4b7545){const _0x1d2efb=_0x1611d2['filter'](_0x4a95ca=>!_0x4a95ca['isAdded']);for(let _0x3acdde=0x0;_0x3acdde<_0x4b7545['length'];_0x3acdde++)_0x4b7545[_0x3acdde]['isAdded']&&(_0x1d2efb[_0x3acdde]['isAdded']=_0x4b7545[_0x3acdde]['isAdded']);}['_getDiff'](_0x327418,_0x527009=null){const _0x241364=this['repository']['getRevision'](_0x327418),_0x598609=_0x527009?this['repository']['getRevision'](_0x527009):null,_0x15fd50=this['_getRevisionsRange'](_0x241364,_0x598609),_0x26f9fa=_0x15fd50[_0x15fd50['length']-0x1],_0x6ada68=new Map(),_0x6125f8={'model':{},'attributes':{},'changes':[]},_0x544b22=new Set(),_0x32b50b=new Map();for(let _0x28d4f9=_0x15fd50['length']-0x1;_0x28d4f9>=0x0;_0x28d4f9--){const _0xce7156=_0x15fd50[_0x28d4f9];for(const _0x1d7a27 of Object['keys'](_0xce7156['diffData']))if(_0xce7156['diffData'][_0x1d7a27]['attachChange']){const _0x36e503=_0xce7156['diffData'][_0x1d7a27]['attachChange'];_0x36e503['isAttached']?(_0x544b22['add'](_0x1d7a27),_0x32b50b['has'](_0x1d7a27)&&_0x32b50b['get'](_0x1d7a27)['userId']==_0x36e503['userId']?_0x32b50b['delete'](_0x1d7a27):_0x32b50b['set'](_0x1d7a27,_0x36e503)):_0x32b50b['has'](_0x1d7a27)?(_0x544b22['delete'](_0x1d7a27),_0x32b50b['delete'](_0x1d7a27)):(_0x544b22['add'](_0x1d7a27),_0x32b50b['set'](_0x1d7a27,_0x36e503));}else _0x544b22['add'](_0x1d7a27);}for(const _0x39d7e4 of _0x544b22){const _0x34cf58=_0x32b50b['has'](_0x39d7e4)&&!_0x32b50b['get'](_0x39d7e4)['isAttached'];let _0x3197fb=_0x34cf58?_0x15fd50['length']-0x1:0x0;const _0x538f69=_0x34cf58?-0x1:0x1;for(;_0x15fd50[_0x3197fb];){const _0x494374=_0x15fd50[_0x3197fb];if(_0x494374['diffData'][_0x39d7e4]){const _0x2e8907=_0x34cf58?_0x494374['diffData'][_0x39d7e4]['attributesBefore']:_0x494374['diffData'][_0x39d7e4]['attributesAfter'];_0x6125f8['attributes'][_0x39d7e4]=_0x2e8907?_0x425cb6(_0x2e8907):{};break;}_0x3197fb+=_0x538f69;}}for(const _0x4d98d7 of _0x15fd50){_0x4d98d7['model']={};for(const _0x1343c3 of _0x4d98d7['authors'])_0x6ada68['set'](_0x1343c3['id'],_0x1343c3);for(const _0x5a4109 of _0x544b22){const _0x27c558=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['insertions']:'[]',_0x237abc=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['deletions']:'[]';_0x4d98d7['model'][_0x5a4109]={'insertions':this['_utils']['_makeModelFromViewString'](_0x27c558),'deletions':this['_utils']['_makeModelFromViewString'](_0x237abc)};}}for(const _0x492ef8 of _0x544b22){let _0x2c1701=null,_0x2f67b4=0x0;const _0x3611b6=new Map(Array['from'](_0x241364['model'][_0x492ef8]['insertions']['markers'])['filter'](([_0x91aaf9])=>!_0x91aaf9['startsWith']('revision:')));let _0x1747f1=0x0;for(const _0x4defda of _0x15fd50){const _0xddee95=this['_makeTape'](_0x4defda['model'][_0x492ef8]['insertions']);_0x4defda==_0x241364?(_0x2c1701=_0xddee95,_0x2f67b4=_0x2c1701['length'],_0x2c1701['forEach'](_0x34236d=>{_0x34236d['id']=_0x1747f1++;}),this['_processTape'](_0x2c1701)):this['_markInsertions'](_0x2c1701,_0xddee95);const _0xbd8cdf=_0x2c1701['filter'](_0x56f3e5=>!_0x56f3e5['isAdded'])['map'](_0x2102cd=>_0x2102cd['id']);let _0x551520=0x0;const _0x4ae0ce=this['_makeTape'](_0x4defda['model'][_0x492ef8]['deletions']);_0x4ae0ce['forEach'](_0x29ba7a=>{_0x29ba7a['isRemoved']?_0x29ba7a['id']=_0x2f67b4++:_0x29ba7a['id']=_0xbd8cdf[_0x551520++];}),this['_processTape'](_0x4ae0ce),this['_setDistance'](_0x2c1701,'isAdded'),this['_setDistance'](_0x4ae0ce,'isRemoved'),_0x4defda==_0x241364&&this['_markMarkers'](_0x2c1701,_0x3611b6),_0x2c1701=this['_joinTapes'](_0x2c1701,_0x4ae0ce),this['_refreshStartEndIndex'](_0x2c1701),this['_setDistance'](_0x2c1701,'isRemoved');}_0x2c1701=_0x2c1701['filter'](_0x23245b=>!(_0x23245b['isAdded']&&_0x23245b['isRemoved']));const _0x6b662e=new Map(_0x26f9fa['model'][_0x492ef8]['deletions']['markers']),_0x3e803e=new Set(_0x3611b6['keys']());for(const _0x501e92 of _0x6b662e['keys']())_0x3e803e['delete'](_0x501e92);this['_markSuggestions'](_0x2c1701,_0x3e803e),this['_fixObsoleteTags'](_0x2c1701),_0x2c1701=this['_removeMissingPairs'](_0x2c1701),_0x2c1701=this['_markMismatchedRemovedTags'](_0x2c1701),_0x2c1701=this['_removeUnsupportedChanges'](_0x2c1701);const {root:_0x1d0847,changes:_0x47d063}=this['_makeModelFromTape'](_0x2c1701,_0x6ada68,_0x492ef8);_0x6125f8['model'][_0x492ef8]=_0x1d0847;const _0x43bb20=_0x32b50b['get'](_0x492ef8);if(_0x43bb20){const _0x1a487c=_0x6ada68['get'](_0x43bb20['userId']),_0x31ede6=new r({'author':_0x1a487c,'type':_0x43bb20['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x492ef8});_0x47d063['unshift'](_0x31ede6),_0x6125f8['attributes'][_0x492ef8]['revisionHistoryAttachChange']=_0x31ede6['id'];}_0x6125f8['changes']=_0x6125f8['changes']['concat'](_0x47d063);}return _0x6125f8;}['_markMarkers'](_0x9a257e,_0x205f97){for(let _0x1db326=0x0;_0x1db326<_0x9a257e['length'];_0x1db326++)for(const [_0x1a6cb6,_0x350e9f]of _0x205f97)!_0x350e9f['isCollapsed']&&_0x350e9f['start']['isEqual'](_0x9a257e[_0x1db326]['previousPosition'])&&_0x9a257e[_0x1db326]['markersStart']['push'](_0x1a6cb6),_0x350e9f['end']['isEqual'](_0x9a257e[_0x1db326]['nextPosition'])&&_0x9a257e[_0x1db326]['markersEnd']['push'](_0x1a6cb6);}['_joinTapes'](_0x447cb0,_0x1ea2f7){let _0x18ef64=[],_0x5eea6d=0x0,_0xd64016=0x0;for(;_0x5eea6d<_0x447cb0['length']||_0xd64016<_0x1ea2f7['length'];){const _0x358dc1=_0x447cb0[_0x5eea6d]||{},_0x4a3421=_0x1ea2f7[_0xd64016]||{};if(_0x358dc1['id']==_0x4a3421['id'])_0x5eea6d++,_0xd64016++,_0x18ef64['push'](_0x358dc1);else{if(_0x4a3421['isRemoved']&&_0x358dc1['isAdded']){const {commonTape:_0x176068,iEnd:_0x2b5c04,jEnd:_0x361434}=this['_threeWayMerge'](_0x447cb0,_0x5eea6d,_0x1ea2f7,_0xd64016);_0x18ef64=_0x18ef64['concat'](_0x176068),_0x5eea6d=_0x2b5c04,_0xd64016=_0x361434;}else _0x4a3421['isRemoved']?(_0xd64016++,_0x18ef64['push'](_0x4a3421)):(_0x5eea6d++,_0x18ef64['push'](_0x358dc1));}}return _0x18ef64;}['_markSuggestions'](_0x301c41,_0x2b1358){const _0x402d1d=[];for(let _0x4da352=0x0;_0x4da352<_0x301c41['length'];_0x4da352++){for(let _0x474b91=0x0;_0x474b91<_0x301c41[_0x4da352]['markersStart']['length'];_0x474b91++){const _0x4acefd=_0x301c41[_0x4da352]['markersStart'][_0x474b91];if(!_0x2b1358['has'](_0x4acefd))continue;const {group:_0x56dcbb,type:_0x373672,authorId:_0x49c01e}=_0x698ede(_0x4acefd);'revision-suggestion'!=_0x56dcbb||'insertion'!=_0x373672&&'deletion'!=_0x373672||(_0x402d1d['unshift']({'type':_0x373672,'name':_0x4acefd,'userId':_0x49c01e}),_0x301c41[_0x4da352]['markersStart']['splice'](_0x474b91,0x1),_0x474b91--);}_0x19fabf(_0x301c41[_0x4da352]);for(let _0x4d9d9f=0x0;_0x4d9d9f<_0x301c41[_0x4da352]['markersEnd']['length'];_0x4d9d9f++){const _0x382a1e=_0x301c41[_0x4da352]['markersEnd'][_0x4d9d9f];if(!_0x2b1358['has'](_0x382a1e))continue;const {group:_0x46f839,type:_0x34e16f}=_0x698ede(_0x382a1e);if('revision-suggestion'!=_0x46f839||'insertion'!=_0x34e16f&&'deletion'!=_0x34e16f)continue;_0x301c41[_0x4da352]['markersEnd']['splice'](_0x4d9d9f,0x1),_0x4d9d9f--;const _0xff56c=_0x402d1d['findIndex'](_0x52577d=>_0x52577d['name']==_0x382a1e);_0xff56c>-0x1&&_0x402d1d['splice'](_0xff56c,0x1);}}function _0x698ede(_0x59d6e1){const _0x31c4ff=_0x59d6e1['split'](':');return{'group':_0x31c4ff[0x0],'type':_0x31c4ff[0x1],'subType':_0x31c4ff['length']>=0x5?_0x31c4ff[0x2]:null,'id':_0x31c4ff['length']<0x5?_0x31c4ff[0x2]:_0x31c4ff[0x3],'authorId':_0x31c4ff['length']<0x5?_0x31c4ff[0x3]:_0x31c4ff[0x4],'markerCount':0x6==_0x31c4ff['length']?_0x31c4ff[0x5]:null};}function _0x19fabf(_0x3c7136){for(let _0x231f86=0x0;_0x231f86<_0x402d1d['length'];_0x231f86++){if(_0x3c7136['isAdded']&&'insertion'==_0x402d1d[_0x231f86]['type'])return _0x3c7136['isAddSuggestion']=_0x402d1d[_0x231f86],void delete _0x3c7136['isAdded'];if(!_0x3c7136['isAdded']&&!_0x3c7136['isRemoved']&&'deletion'==_0x402d1d[_0x231f86]['type'])return void(_0x3c7136['isRemoveSuggestion']=_0x402d1d[_0x231f86]);}}}['_setDistance'](_0x506ad6,_0x148393){let _0x42c9b0=0x0,_0x49f71c=!0x1;const _0x2c5f2b=new Map();for(const _0x236b40 of _0x506ad6)_0x236b40[_0x148393]?_0x49f71c&&(_0x42c9b0++,_0x49f71c=!0x1):(_0x42c9b0++,_0x49f71c=!0x0),_0x2c5f2b['set'](_0x236b40['id'],_0x42c9b0);for(let _0x16a1bb=0x0;_0x16a1bb<_0x506ad6['length'];_0x16a1bb++){if('isRemoved'==_0x148393&&_0x506ad6[_0x16a1bb]['isAdded']||'isAdded'==_0x148393&&_0x506ad6[_0x16a1bb]['isRemoved'])continue;if('text'==_0x506ad6[_0x16a1bb]['type']){_0x506ad6[_0x16a1bb]['distance']=0x0;continue;}const _0x12fb2c=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['pairId']),_0x31a766=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['id']);_0x506ad6[_0x16a1bb]['distance']=_0x12fb2c-_0x31a766;}}['_getRevisionsRange'](_0x380d38,_0x223cbf,_0x549337=!0x1){const _0x42b75f=[];let _0x555a65=this['repository']['getIndex'](_0x380d38),_0x4b1b30=this['repository']['getIndex'](_0x223cbf);for(-0x1==_0x4b1b30&&(_0x4b1b30=this['repository']['_revisions']['length'],_0x549337=!0x1);_0x555a65<_0x4b1b30;)_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x555a65++;return _0x549337&&_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x42b75f;}['_threeWayMerge'](_0xfda82,_0x3dc860,_0x467fb7,_0x330fb6){const _0x2186fb=this['editor']['model']['schema'];let _0x2f1b93=_0x3dc860;for(;_0xfda82[_0x2f1b93]&&_0xfda82[_0x2f1b93]['isAdded'];)_0x2f1b93++;let _0x3c4897=_0x330fb6;for(;_0x467fb7[_0x3c4897]&&_0x467fb7[_0x3c4897]['isRemoved'];)_0x3c4897++;_0x5cf631(_0xfda82,_0x3dc860,_0x2f1b93),_0x5cf631(_0x467fb7,_0x330fb6,_0x3c4897);const _0x34b66a=_0x467fb7['slice'](_0x330fb6,_0x3c4897)['concat'](_0xfda82['slice'](_0x3dc860,_0x2f1b93));return _0x34b66a['sort']((_0x57351a,_0x11cf94)=>_0x57351a['side']!=_0x11cf94['side']?_0x57351a['side']-_0x11cf94['side']:_0x57351a['level']!=_0x11cf94['level']?_0x57351a['level']-_0x11cf94['level']:_0x57351a['distance']!=_0x11cf94['distance']?_0x11cf94['distance']-_0x57351a['distance']:!!_0x57351a['isAdded']!=!!_0x11cf94['isAdded']?-0x1==_0x57351a['side']||0x0==_0x57351a['side']?_0x57351a['isAdded']?-0x1:0x1:_0x57351a['isAdded']?0x1:-0x1:_0x57351a['index']-_0x11cf94['index']),{'commonTape':_0x34b66a,'iEnd':_0x2f1b93,'jEnd':_0x3c4897};function _0x5cf631(_0x35f965,_0x1bdffe,_0x562aed){let _0x15cdc1=-0x1,_0x1332d5=Number['POSITIVE_INFINITY'],_0x3990b4=!0x0;for(let _0x2948ad=_0x1bdffe;_0x2948ad<_0x562aed;_0x2948ad++)if(_0x2186fb['isInline'](_0x35f965[_0x2948ad]['item'])||(_0x3990b4=!0x1),_0x35f965[_0x2948ad]['item']['startIndex']<_0x1bdffe&&(_0x15cdc1=_0x2948ad),_0x35f965[_0x2948ad]['item']['endIndex']>=_0x562aed){_0x1332d5=_0x2948ad;break;}_0x3990b4&&(_0x15cdc1=_0x562aed-0x1);for(let _0x5cba70=_0x1bdffe;_0x5cba70<_0x562aed;_0x5cba70++)_0x35f965[_0x5cba70]['side']=_0x5cba70<=_0x15cdc1?-0x1:_0x5cba70<_0x1332d5?0x0:0x1,_0x35f965[_0x5cba70]['index']=_0x5cba70;let _0x25c3af=0x0;for(let _0x3cd6fd=_0x1bdffe;_0x3cd6fd<=_0x15cdc1;_0x3cd6fd++)0x0==_0x35f965[_0x3cd6fd]['distance']?_0x35f965[_0x3cd6fd]['level']=_0x25c3af:(_0x25c3af++,_0x35f965[_0x3cd6fd]['level']=_0x25c3af,_0x25c3af++);for(let _0x24d43c=_0x1bdffe;_0x24d43c<_0x562aed;_0x24d43c++)0x0==_0x35f965[_0x24d43c]['side']&&(_0x35f965[_0x24d43c]['level']=_0x25c3af);_0x25c3af=0x0;for(let _0x3cd17c=_0x562aed-0x1;_0x3cd17c>=_0x1332d5;_0x3cd17c--)0x0==_0x35f965[_0x3cd17c]['distance']?_0x35f965[_0x3cd17c]['level']=_0x25c3af:(_0x25c3af--,_0x35f965[_0x3cd17c]['level']=_0x25c3af,_0x25c3af--);}}['_fixObsoleteTags'](_0x444064){const _0x382f80=new Map(),_0x21c506=this['editor']['model']['schema'];for(let _0x190ed5=0x1;_0x190ed5<_0x444064['length'];_0x190ed5++){let _0x4ca9c7,_0x4387ba,_0x195675;const _0x30ac10=_0x444064[_0x190ed5],_0x42669b=_0x444064[_0x190ed5-0x1];if('text'==_0x30ac10['type'])continue;if(_0x30ac10['type']!=_0x42669b['type'])continue;if(!_0x21c506['isBlock'](_0x42669b['item'])||_0x21c506['isLimit'](_0x42669b['item']))continue;if(!_0x21c506['isBlock'](_0x30ac10['item'])||_0x21c506['isLimit'](_0x30ac10['item']))continue;if((_0x444064[_0x190ed5]['isAdded']||_0x444064[_0x190ed5]['isAddSuggestion'])&&_0x444064[_0x190ed5-0x1]['isRemoved'])_0x4ca9c7=_0x444064[_0x190ed5],_0x4387ba=_0x444064[_0x190ed5-0x1],_0x195675=_0x190ed5-0x1;else{if(!_0x444064[_0x190ed5]['isRemoved']||!_0x444064[_0x190ed5-0x1]['isAdded']&&!_0x444064[_0x190ed5-0x1]['isAddSuggestion'])continue;_0x4ca9c7=_0x444064[_0x190ed5-0x1],_0x4387ba=_0x444064[_0x190ed5],_0x195675=_0x190ed5;}const _0x56abe1=_0x4ca9c7['level']==_0x4387ba['level'],_0xdce170=Math['abs'](_0x4ca9c7['level'])<Math['abs'](_0x4387ba['level'])&&0x0==_0x4387ba['distance'];(_0x56abe1||_0xdce170)&&(_0x382f80['set'](_0x4387ba['id'],_0x4ca9c7['id']),_0x444064['splice'](_0x195675,0x1),_0x190ed5--,_0x4ca9c7['isAdded']=!0x1);}for(let _0x20e5be=0x0;_0x20e5be<_0x444064['length'];_0x20e5be++)_0x382f80['has'](_0x444064[_0x20e5be]['pairId'])&&(_0x444064[_0x20e5be]['pairId']=_0x382f80['get'](_0x444064[_0x20e5be]['pairId']));}['_removeMissingPairs'](_0x557751){const _0x5d48d4=new Set(_0x557751['map'](_0x34edc6=>_0x34edc6['id']));for(let _0x2463ee=0x0;_0x2463ee<_0x557751['length'];_0x2463ee++)_0x5d48d4['has'](_0x557751[_0x2463ee]['pairId'])||0x0==_0x557751[_0x2463ee]['distance']||(_0x557751[_0x2463ee]['isIncorrect']=!0x0);return _0x557751['filter'](_0x13e49b=>!_0x13e49b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e3a5a){const _0x4a8bab=new Set();for(let _0x2c19af=0x0;_0x2c19af<_0x5e3a5a['length'];_0x2c19af++){if(_0x4a8bab['has'](_0x5e3a5a[_0x2c19af]['id'])&&_0x5e3a5a[_0x2c19af]['isRemoved']&&(_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0),_0x5e3a5a[_0x2c19af]['isIncorrect'])continue;if(0x0==_0x5e3a5a[_0x2c19af]['distance'])continue;if('elementStart'!=_0x5e3a5a[_0x2c19af]['type'])continue;if(null==_0x5e3a5a[_0x2c19af]['pairId'])continue;let _0xf19f6d=_0x2c19af+0x1,_0x3741ed=0x0;for(;_0x5e3a5a[_0xf19f6d]['id']!=_0x5e3a5a[_0x2c19af]['pairId'];)'elementStart'==_0x5e3a5a[_0xf19f6d]['type']?_0x3741ed++:'elementEnd'==_0x5e3a5a[_0xf19f6d]['type']&&_0x3741ed--,_0xf19f6d++;if(0x0!=_0x3741ed){if(_0x5e3a5a[_0x2c19af]['isRemoved'])_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0;else{for(;_0xf19f6d!=_0x2c19af;)_0x5e3a5a[_0xf19f6d]['isRemoved']&&0x0!=_0x5e3a5a[_0xf19f6d]['distance']&&(_0x5e3a5a[_0xf19f6d]['isIncorrect']=!0x0,_0x4a8bab['add'](_0x5e3a5a[_0xf19f6d]['pairId'])),_0xf19f6d--;}}}return _0x5e3a5a['filter'](_0x1ec71e=>!_0x1ec71e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4bf99f){const _0x293907=this['editor']['model']['schema'];for(let _0x5b9322=0x0;_0x5b9322<_0x4bf99f['length'];_0x5b9322++){if(!(_0x4bf99f[_0x5b9322]['isAdded']||_0x4bf99f[_0x5b9322]['isAddSuggestion']||_0x4bf99f[_0x5b9322]['isRemoved']||_0x4bf99f[_0x5b9322]['isRemoveSuggestion']))continue;if(0x0==_0x4bf99f[_0x5b9322]['distance'])continue;const _0x513fc4=_0x4bf99f[_0x5b9322]['item'];_0x293907['isBlock'](_0x513fc4)||_0x293907['isLimit'](_0x513fc4)||(_0x4bf99f[_0x5b9322]['isAdded']&&delete _0x4bf99f[_0x5b9322]['isAdded'],_0x4bf99f[_0x5b9322]['isAddSuggestion']&&delete _0x4bf99f[_0x5b9322]['isAddSuggestion'],_0x4bf99f[_0x5b9322]['isRemoveSuggestion']&&delete _0x4bf99f[_0x5b9322]['isRemoveSuggestion'],_0x4bf99f[_0x5b9322]['isRemoved']&&(_0x4bf99f[_0x5b9322]['isIncorrect']=!0x0));}return _0x4bf99f['filter'](_0xc3a6dd=>!_0xc3a6dd['isIncorrect']);}['_makeModelFromTape'](_0x5a4c9e,_0x51c020,_0x4540b4){const _0x27e6e9=new vt(),_0x3423fb=[],_0xc5efff=new Map(),_0x206f02=this['editor']['model'],_0x1171ba=_0x206f02['schema'],_0x1a4281=[_0x27e6e9],_0x12c36e={},_0x30f530={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2b3059=null;const _0x910421=[0x0];for(let _0x5cd34e=0x0;_0x5cd34e<_0x5a4c9e['length'];_0x5cd34e++)if('elementStart'===_0x5a4c9e[_0x5cd34e]['type']){_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);const _0x54e381=new ut(_0x5a4c9e[_0x5cd34e]['item']['name'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']());_0x1a4281[0x0]['_appendChild'](_0x54e381),_0x910421['push'](0x0),_0x1a4281['unshift'](_0x54e381),_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);}else'elementEnd'===_0x5a4c9e[_0x5cd34e]['type']?(_0x1a4281['shift'](),_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x910421['pop'](),_0x910421[_0x910421['length']-0x1]++,_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421)):(_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x2b3059?_0x2b3059['_data']+=_0x5a4c9e[_0x5cd34e]['item']['data']:_0x2b3059=new gt(_0x5a4c9e[_0x5cd34e]['item']['data'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']()),_0x5a4c9e[_0x5cd34e+0x1]&&'text'===_0x5a4c9e[_0x5cd34e+0x1]['type']&&_0x5bf36e(_0x2b3059,_0x5a4c9e[_0x5cd34e+0x1]['item'])||(_0x1a4281[0x0]['_appendChild'](_0x2b3059),_0x2b3059=null),_0x910421[_0x910421['length']-0x1]+=_0x5a4c9e[_0x5cd34e]['item']['offsetSize'],_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421));for(let _0x5dd944=0x0;_0x5dd944<_0x5a4c9e['length'];_0x5dd944++){const _0x5e7c04=_0x5a4c9e[_0x5dd944]['previousPosition'],_0x1d03bf=_0x5a4c9e[_0x5dd944]['nextPosition'];for(const _0x29d5ca of _0x5a4c9e[_0x5dd944]['markersStart'])_0xc5efff['set'](_0x29d5ca,{'start':_0x5e7c04,'end':null});_0x4b9692('isRemoveSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAddSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isRemoved',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAdded',_0x5dd944,_0x5e7c04,_0x1d03bf);for(const _0x557dc1 of _0x5a4c9e[_0x5dd944]['markersEnd']){const _0x50b0e8=_0xc5efff['get'](_0x557dc1);_0x50b0e8?_0x50b0e8['end']=_0x1d03bf:_0xc5efff['set'](_0x557dc1,{'start':_0x1d03bf,'end':_0x1d03bf});}}for(const [_0x478586,_0x13398e]of _0xc5efff){const _0x236611=this['editor']['model']['createRange'](_0x13398e['start'],_0x13398e['end']);_0x27e6e9['markers']['set'](_0x478586,_0x236611);}return _0x3423fb['sort']((_0x2511af,_0x59c915)=>{const _0x3997d1=_0x27e6e9['markers']['get']('revision:'+_0x2511af['id']),_0x31733b=_0x27e6e9['markers']['get']('revision:'+_0x59c915['id']);return _0x3997d1['start']['isBefore'](_0x31733b['start'])?-0x1:_0x3997d1['start']['isAfter'](_0x31733b['start'])?0x1:_0x3997d1['end']['isBefore'](_0x31733b['end'])?-0x1:_0x3997d1['end']['isAfter'](_0x31733b['end'])?0x1:'add'===_0x2511af['type']?-0x1:0x1;}),{'root':_0x27e6e9,'changes':_0x3423fb};function _0x4b9692(_0xfb6cf1,_0x48d528,_0x158d53,_0x35cb8d){const _0x3f4cb4=!!_0x5a4c9e[_0x48d528][_0xfb6cf1],_0x4ce2f0=_0x3f4cb4?_0x5a4c9e[_0x48d528][_0xfb6cf1]['userId']:null,_0x4fda4f=_0x48d528===_0x5a4c9e['length']-0x1,_0x5e5804=_0x30f530[_0xfb6cf1][0x0],_0x34e22c=_0x1171ba['isObject'](_0x5a4c9e[_0x48d528]['item']);!_0x12c36e[_0xfb6cf1]&&_0x3f4cb4?_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}:_0x12c36e[_0xfb6cf1]&&!_0x3f4cb4?(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null):_0x12c36e[_0xfb6cf1]&&_0x3f4cb4&&_0x12c36e[_0xfb6cf1]['userId']!==_0x4ce2f0&&(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x5e5804&&_0x5e5804['userId']===_0x12c36e[_0xfb6cf1]['userId']||_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}),_0x12c36e[_0xfb6cf1]&&_0x34e22c&&('elementStart'!==_0x5a4c9e[_0x48d528]['type']||_0x5e5804&&_0x5e5804['userId']===_0x4ce2f0||_0x30f530[_0xfb6cf1]['unshift']({'userId':_0x4ce2f0,'object':_0x5a4c9e[_0x48d528]['item'],'change':_0x12c36e[_0xfb6cf1]}),'elementEnd'===_0x5a4c9e[_0x48d528]['type']&&_0x5e5804&&_0x5e5804['object']===_0x5a4c9e[_0x48d528]['item']&&(_0x30f530[_0xfb6cf1]['shift'](),_0x12c36e[_0xfb6cf1]=_0x5e5804['change'])),_0x12c36e[_0xfb6cf1]&&_0x4fda4f&&(_0x12c36e[_0xfb6cf1]['end']=_0x35cb8d,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null);}function _0x467bc0({start:_0x43d146,end:_0x1f1d54,tapeItem:_0x292b8a,userId:_0x5e0033,type:_0x23acb7}){const _0x67a500=_0x292b8a['item'],_0x3b1436=_0x206f02['schema']['isBlock'](_0x67a500)&&!_0x206f02['schema']['isLimit'](_0x67a500),_0x127015=_0x43d146['nodeAfter']==_0x1f1d54['parent']&&_0x1f1d54['isAtStart'];if(_0x3b1436&&_0x127015)return;const _0x52befa=_0x206f02['createRange'](_0x43d146,_0x1f1d54),_0x40d6ed=_0x51c020['get'](_0x5e0033),_0x4671c2=new r({'author':_0x40d6ed,'type':'isAdded'==_0x23acb7||'isAddSuggestion'==_0x23acb7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23acb7||'isRemoveSuggestion'==_0x23acb7},'createdAt':new Date(),'rootName':_0x4540b4});_0x3423fb['push'](_0x4671c2),_0x27e6e9['markers']['set']('revision:'+_0x4671c2['id'],_0x52befa);}function _0x5bf36e(_0x495318,_0x132bd2){const _0x24926b=_0x495318['getAttributes'](),_0x43f005=_0x132bd2['getAttributes']();for(const _0x24c027 of _0x24926b){if(_0x24c027[0x1]!==_0x132bd2['getAttribute'](_0x24c027[0x0]))return!0x1;_0x43f005['next']();}return _0x43f005['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e74e=>{const _0x50755b=_0x42e74e['markerName']['split'](':')[0x1],_0x8e5449=this['_getChangeFromId'](_0x50755b);if(!_0x8e5449)return null;const _0x11e849='add'==_0x8e5449['type']?'insertion':'deletion',_0x5003c0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e849];return _0x8e5449['data']['isSuggestion']&&_0x5003c0['push']('ck-suggestion-marker-'+_0x11e849+'-new'),this['activeChange']==_0x8e5449&&_0x5003c0['push']('ck-suggestion-marker--active'),{'classes':_0x5003c0,'attributes':{'data-change-id':_0x50755b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4a10cd=>{_0x4a10cd['on']('element:pre',(_0x295f26,_0x3b3ca4,_0x47f754)=>{const _0x12d9a7=_0x3b3ca4['viewItem']['getChild'](0x0);if(!_0x12d9a7||!_0x12d9a7['is']('element','code'))return;if(!_0x47f754['consumable']['consume'](_0x12d9a7,{'attributes':['vid_start','vid_end']}))return;const _0x1ee258=_0x3b3ca4['modelRange']['start']['nodeAfter'];_0x47f754['writer']['setAttribute']('vid_start',_0x12d9a7['getAttribute']('vid_start'),_0x1ee258),_0x47f754['writer']['setAttribute']('vid_end',_0x12d9a7['getAttribute']('vid_end'),_0x1ee258);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xd936ea=>{_0xd936ea['on']('element',(_0x3e42cd,_0x540c30,_0x433ccb)=>{if(!_0x433ccb['consumable']['consume'](_0x540c30['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x540c30['modelRange']['isCollapsed'])return;const _0x5e1a29=_0x540c30['modelRange']['start']['nodeAfter'];_0x5e1a29['hasAttribute']('vid_start')||_0x5e1a29['hasAttribute']('vid')||(_0x433ccb['writer']['setAttribute']('vid_start',_0x540c30['viewItem']['getAttribute']('vid_start'),_0x5e1a29),_0x433ccb['writer']['setAttribute']('vid_end',_0x540c30['viewItem']['getAttribute']('vid_end'),_0x5e1a29));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x24e20e=>_0x24e20e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x480a48,[,_0x41b94d])=>{['vid_start','vid_end','vid']['includes'](_0x41b94d)&&(_0x480a48['return']=!0x0,_0x480a48['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x130ad2=>{_0x130ad2['on']('attribute:vid',(_0x192ee3,_0x2f40ff,_0x49e7f1)=>{if('\x20'!=_0x2f40ff['item']['data']||_0x2f40ff['item']['parent']['maxOffset']>0x1)return;if(!_0x49e7f1['consumable']['consume'](_0x2f40ff['item'],_0x192ee3['name']))return;const _0x102080=_0x49e7f1['writer'],_0x29a816=_0x49e7f1['mapper']['toViewRange'](_0x2f40ff['range']);_0x102080['wrap'](_0x29a816,_0x102080['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x492b38){const _0x1c76a8=_0x492b38['plugins']['get']('RevisionViewer');return(_0x29189b,_0x9abae2,_0x564d35)=>{const _0x6a51eb=_0x9abae2['markerName']['split'](':')[0x1],_0x328ad0=_0x1c76a8['_getChangeFromId'](_0x6a51eb);if(!_0x328ad0)return null;const _0x47df1e='add'==_0x328ad0['type']?'split':'merge';if(!_0x564d35['consumable']['test'](_0x9abae2['markerRange'],_0x29189b['name']))return;const _0x3e34ac=_0x9abae2['markerRange']['getWalker'](),_0x31ac9b=_0x9abae2['markerRange']['start'],_0x489fb9=_0x492b38['model']['schema'];let _0x53c51d=null,_0x6fb43c=null,_0x290c20=!0x1,_0x4849bb=!0x1;for(const _0x50e645 of _0x3e34ac){const _0x494b6c=_0x50e645['item'];_0x290c20=_0x290c20||_0x489fb9['isContent'](_0x494b6c);const _0x4fd904=_0x564d35['mapper']['toViewElement'](_0x494b6c);if(_0x4fd904&&_0x4fd904['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50e645['type']&&(_0x489fb9['isBlock'](_0x494b6c)&&!_0x489fb9['isLimit'](_0x494b6c)&&(_0x494b6c['nextSibling']||_0x31ac9b['isAtEnd']?_0x53c51d&&_0x53c51d['parent']==_0x494b6c||(_0x53c51d=_0x494b6c,_0x4e9749(_0x50e645['previousPosition']),_0x4849bb=!0x0):_0x6fb43c=_0x6fb43c||_0x50e645['previousPosition']));}function _0x4e9749(_0x4f6a53){const _0xf4c007=_0x564d35['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47df1e}),_0x364981=_0x564d35['mapper']['toViewPosition'](_0x4f6a53);_0x328ad0['data']['isSuggestion']&&_0x564d35['writer']['addClass']('ck-suggestion-marker-'+_0x47df1e+'-new',_0xf4c007),_0x1c76a8['activeChange']==_0x328ad0&&_0x564d35['writer']['addClass']('ck-suggestion-marker--active',_0xf4c007),_0x564d35['writer']['insert'](_0x364981,_0xf4c007),_0x564d35['mapper']['bindElementToMarker'](_0xf4c007,_0x9abae2['markerName']);}_0x290c20||_0x4849bb||!_0x6fb43c||_0x4e9749(_0x6fb43c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b77e8,_0x4af6bb,_0x471e33)=>{const _0x2f747a=_0x471e33['mapper']['markerNameToElements'](_0x4af6bb['markerName']);if(_0x2f747a){for(const _0x2392aa of _0x2f747a)(_0x2392aa['hasClass']('ck-suggestion-marker-split')||_0x2392aa['hasClass']('ck-suggestion-marker-merge'))&&(_0x471e33['mapper']['unbindElementFromMarkerName'](_0x2392aa,_0x4af6bb['markerName']),_0x471e33['writer']['remove'](_0x2392aa));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2fe626,_0x376397,_0x44dc84)=>{const _0x1b10cd=_0x376397['markerName']['split'](':')[0x1],_0x5f2254=this['_getChangeFromId'](_0x1b10cd);if(!_0x5f2254)return null;const _0x41351b='add'==_0x5f2254['type']?'split':'merge';if(_0x44dc84['consumable']['test'](_0x376397['markerRange'],_0x2fe626['name']))for(const _0x2866e7 of _0x376397['markerRange']['getItems']()){if(!_0x2866e7['is']('element','softBreak'))continue;const _0x2de012=_0x44dc84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41351b}),_0x2bf2d7=_0x44dc84['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2866e7));_0x5f2254['data']['isSuggestion']&&_0x44dc84['writer']['addClass']('ck-suggestion-marker-'+_0x41351b+'-new',_0x2de012),this['activeChange']==_0x5f2254&&_0x44dc84['writer']['addClass']('ck-suggestion-marker--active',_0x2de012),_0x44dc84['writer']['insert'](_0x2bf2d7,_0x2de012),_0x44dc84['mapper']['bindElementToMarker'](_0x2de012,_0x376397['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x18527e=>{for(const _0x2c0a5f of this['editor']['model']['document']['getRootNames']()){const _0x3072d3=this['editor']['model']['document']['getRoot'](_0x2c0a5f),_0x39bdc3=this['editor']['editing']['view']['document']['getRoot'](_0x2c0a5f);if(_0x39bdc3){const _0x1176ad=_0x3072d3['getAttribute']('revisionHistoryAttachChange');if(_0x18527e['removeAttribute']('data-change-id',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-add',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-remove',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root--active',_0x39bdc3),_0x1176ad){const _0x280bf3=this['_getChangeFromId'](_0x1176ad);if(!_0x280bf3)return null;_0x18527e['setAttribute']('data-change-id',_0x1176ad,_0x39bdc3),_0x18527e['addClass']('ck-revision-history-root-'+_0x280bf3['type'],_0x39bdc3),this['activeChange']==_0x280bf3&&_0x18527e['addClass']('ck-revision-history-root--active',_0x39bdc3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xedfc30=>'revision-comment:'+_0xedfc30,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4af8a6=>'revision-suggestion:'+_0x4af8a6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5acfbc=>({'name':'suggestion:'+_0x5acfbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x55566b=>{const _0x1de12b=_0x55566b['markerName']['split'](':')[0x1];return'insertion'!=_0x1de12b&&'deletion'!=_0x1de12b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1de12b]};}}),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',(_0x1ff845,_0xc4174d,_0x1198a8)=>{const _0x3240be=_0x1198a8['mapper']['markerNameToElements'](_0xc4174d['markerName']);if(_0x3240be){for(const _0x2a03e4 of _0x3240be)_0x2a03e4['is']('uiElement')&&(_0x1198a8['mapper']['unbindElementFromMarkerName'](_0x2a03e4,_0xc4174d['markerName']),_0x1198a8['writer']['remove'](_0x2a03e4));}},{'priority':'high'});}['_getChangeFromId'](_0x5acea1){return this['_changeIdToChange']['get'](_0x5acea1);}['_getViewForChange'](_0x5c1cf7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5c1cf7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e185e,_0x33e565,_0x29b8a5,_0x41929a)=>{_0x41929a&&this['_balloon']['remove'](_0x41929a),_0x29b8a5&&(this['_balloon']['add']({'view':_0x29b8a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4da630=this['editor']['editing'],_0xd86462=this['_getChangeFromId'](_0x29b8a5['changeId']);let _0x51daec;if(_0xd86462['data']['isOnRoot']){const _0x3179c1=_0x4da630['view']['getDomRoot'](_0xd86462['rootName']);_0x51daec=Array['from'](_0x3179c1['getClientRects']());}else{const _0x284566=this['editor']['model']['markers']['get']('revision:'+_0x29b8a5['changeId']);_0x51daec=Array['from'](_0x4da630['mapper']['markerNameToElements'](_0x284566['name']))['map'](_0x312202=>_0x4da630['view']['domConverter']['mapViewToDom'](_0x312202))['map'](_0x1e2cf8=>Array['from'](_0x1e2cf8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51daec[0x0];return _0x51daec['find'](_0x5bbaf4=>_0x5bbaf4['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bbaf4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bbaf4['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bbaf4['right']+0x3>=this['_activeViewTarget']['x'])||_0x51daec[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c0ddd,_0x40ef7b,_0x278c11,_0x277351)=>{this['activeView']=_0x278c11?this['_getViewForChange'](_0x278c11):null,this['editor']['model']['change'](()=>{const _0x14e3ae=this['editor']['editing'];_0x277351&&(_0x277351['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x2d2e56=>{_0x2d2e56['removeClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x277351['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x277351['id'])),_0x278c11&&(_0x278c11['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x23a080=>{_0x23a080['addClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x278c11['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x278c11['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x235aeb,_0x20b29e)=>{if(this['activeChange'])return;const _0xe5ff42=this['_findChangeIdFromDomTarget'](_0x20b29e['target']),_0x413ab1=this['_changeIdToChange']['get'](_0xe5ff42);_0x413ab1?(this['_activeViewTarget']={'x':_0x20b29e['domEvent']['x'],'y':_0x20b29e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x413ab1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2c30f9,_0x4398ca)=>{const _0x5366bf=this['_findChangeIdFromDomTarget'](_0x4398ca['target']),_0x771ed8=this['_changeIdToChange']['get'](_0x5366bf);_0x771ed8?(this['_activeViewTarget']={'x':_0x4398ca['domEvent']['x'],'y':_0x4398ca['domEvent']['y']},_0x771ed8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x771ed8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x287e4d){do{const _0x408566=_0x287e4d['getAttribute']('data-change-id');if(_0x408566)return _0x408566;_0x287e4d=_0x287e4d['parent'];}while(_0x287e4d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x570c6d=>{for(const _0x404771 of this['editor']['model']['markers'])_0x570c6d['removeMarker'](_0x404771);});}}function X(_0xad30fd,_0x4191c6){return(_0x2c25c1,_0x3eaeb4,_0x5c9ff2)=>{if(!_0x5c9ff2['consumable']['test'](_0x3eaeb4['markerRange'],_0x2c25c1['name']))return;const _0x42e900=_0x3eaeb4['markerRange']['getWalker'](),_0x4b4e98=_0x3eaeb4['markerRange']['start'],_0x131415=_0xad30fd['model']['schema'];let _0x45fd55=null,_0x323623=null,_0x4d6160=!0x1,_0x2382f0=!0x1;for(const _0x4e1b13 of _0x42e900){const _0x71d90f=_0x4e1b13['item'];_0x4d6160=_0x4d6160||_0x131415['isContent'](_0x71d90f);const _0x3044e5=_0x5c9ff2['mapper']['toViewElement'](_0x71d90f);if(_0x3044e5&&_0x3044e5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e1b13['type']&&(_0x131415['isBlock'](_0x71d90f)&&!_0x131415['isLimit'](_0x71d90f)&&(_0x71d90f['nextSibling']||_0x4b4e98['isAtEnd']?_0x45fd55&&_0x45fd55['parent']==_0x71d90f||(_0x45fd55=_0x71d90f,_0x15b52a(_0x4e1b13['previousPosition']),_0x2382f0=!0x0):_0x323623=_0x323623||_0x4e1b13['previousPosition']));}function _0x15b52a(_0x172385){const _0xedc7d8=_0x5c9ff2['mapper']['toViewPosition'](_0x172385),_0x517fcc=_0x5c9ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4191c6});_0x5c9ff2['writer']['insert'](_0xedc7d8,_0x517fcc),_0x5c9ff2['mapper']['bindElementToMarker'](_0x517fcc,_0x3eaeb4['markerName']);}_0x4d6160||_0x2382f0||!_0x323623||_0x15b52a(_0x323623);};}class mt extends _0x4bf53c{constructor(_0x2d0b40){super(_0x2d0b40);const _0x276d5c=_0x2d0b40['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x276d5c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276d5c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x28bdb5=this['editor'],_0x4bed8d=_0x28bdb5['plugins']['get'](m),_0x397e72=_0x4bed8d['isReady']?_0x4bed8d['diff']['newRevisionId']:null;_0x28bdb5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x397e72);}['refresh'](){const {isReady:_0x3be1e9,isEnabled:_0x462d26,repository:_0x531ffa,diff:_0x3c3135}=this['editor']['plugins']['get'](m),_0x149067=_0x3c3135&&_0x531ffa['getLaterVisibleRevision'](_0x3c3135['newRevisionId']);this['isEnabled']=_0x3be1e9&&_0x462d26&&Boolean(_0x149067);}}class wt extends _0x4bf53c{['_step'];constructor(_0x37f699,{direction:_0x21b010}){super(_0x37f699);const _0x518da3=_0x37f699['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x21b010?0x1:-0x1,this['listenTo'](_0x518da3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1425cd=this['editor'],_0x32cb17=_0x1425cd['plugins']['get'](m),{isNavigationMode:_0x45f7c1,currentChangeNumber:_0xc169ba}=_0x32cb17;let _0x2fe951;if(_0x32cb17['activeChange']=_0x45f7c1?_0x32cb17['diff']['changes']['get'](_0xc169ba+this['_step']):_0x32cb17['diff']['changes']['first'],_0x32cb17['activeChange']['data']['isOnRoot'])_0x2fe951=_0x1425cd['editing']['view']['getDomRoot'](_0x32cb17['activeChange']['rootName']);else{const _0xc7e26b=_0x1425cd['model']['markers']['get']('revision:'+_0x32cb17['activeChange']['id']);_0x2fe951=_0x3748cb(_0x1425cd['editing'],_0xc7e26b);}_0x3ccd89({'target':_0x2fe951,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5a8fa9,currentChangeNumber:_0x372294,numberOfChanges:_0x1292b6,isReady:_0x559603,isEnabled:_0x356c1d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x356c1d&&_0x559603&&_0x1292b6)&&(!_0x5a8fa9||(0x1===this['_step']?_0x372294<_0x1292b6-0x1:_0x372294>0x0));}}class _i extends ts{constructor(_0x28d47c){super(_0x28d47c);const _0x4bac7f=this['bindTemplate'],_0x1de506=new te(_0x28d47c),_0x25eeab=new te(_0x28d47c);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',(_0x5e8691,_0x111b4e)=>_0x5e8691&&_0x111b4e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20080d,_0x5bb29e,_0x22445d,_0x56073c)=>{if(!_0x20080d)return g(_0x28d47c,'Loading...');if(!_0x22445d)return g(_0x28d47c,'No\x20changes');const _0x1958f0=g(_0x28d47c,'NUMBER_OF_CHANGES',_0x22445d);return _0x56073c?g(_0x28d47c,'X_OF_Y_CHANGES',[_0x5bb29e+0x1,_0x22445d]):_0x1958f0;}),_0x1de506['set']({'label':g(_0x28d47c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x548b1c}),_0x25eeab['set']({'label':g(_0x28d47c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x235c62}),_0x1de506['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x25eeab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1de506['on']('execute',()=>this['fire']('execute','backward')),_0x25eeab['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',_0x4bac7f['if']('_isStatusLabelVisible','ck-hidden',_0x35ca4f=>!_0x35ca4f)]},'children':[{'text':_0x4bac7f['to']('isNavigationMode',_0x122f43=>_0x122f43?g(_0x28d47c,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x28d47c,'Total')+':\x20')}]},{'text':_0x4bac7f['to']('_statusText')}]},new _0x2ebcba(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1de506,_0x25eeab]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x432e21{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x197658=this['editor']['editing']['view'];_0x197658['change'](_0x1b552b=>{for(const _0x20fb72 of _0x197658['document']['roots'])_0x1b552b['addClass'](le,_0x20fb72);});}['hide'](){const _0x328a38=this['editor']['editing']['view'];_0x328a38['change'](_0x241337=>{for(const _0xe455a0 of _0x328a38['document']['roots'])_0x241337['removeClass'](le,_0xe455a0);});}}class R extends _0x432e21{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xee2b7a=this['editor'],_0x12a874=_0xee2b7a['plugins']['get'](m),_0x5c2dd2=_0xee2b7a['plugins']['get'](ge);_0xee2b7a['ui']['componentFactory']['add']('exitToEditing',_0x24c71a=>{const _0x1bede9=new te(_0x24c71a);return _0x1bede9['set']({'label':g(_0x24c71a,'Back\x20to\x20editing'),'icon':_0x483496,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1bede9,'execute',()=>{_0xee2b7a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1bede9;}),_0xee2b7a['ui']['componentFactory']['add']('restoreRevision',_0x1ec5f6=>{const _0x1e5084=new te(_0x1ec5f6);return _0x1e5084['set']({'label':g(_0x1ec5f6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1e5084['bind']('isEnabled')['to'](_0xee2b7a['commands']['get']('restoreRevision')),this['listenTo'](_0x1e5084,'execute',()=>_0xee2b7a['execute']('restoreRevision')),_0x1e5084;}),_0xee2b7a['ui']['componentFactory']['add']('changesNavigation',_0x2626b4=>{const _0x34868d=new _i(_0x2626b4),_0x58182b=_0xee2b7a['commands']['get']('showPreviousChange'),_0x152dbf=_0xee2b7a['commands']['get']('showNextChange');return _0x34868d['bind']('isBackwardNavigationEnabled')['to'](_0x58182b,'isEnabled'),_0x34868d['bind']('isForwardNavigationEnabled')['to'](_0x152dbf,'isEnabled'),_0x34868d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12a874),this['listenTo'](_0x34868d,'execute',(_0x25a589,_0x41e40e)=>{_0xee2b7a['execute']('forward'===_0x41e40e?'showNextChange':'showPreviousChange');}),_0x34868d;}),_0x5c2dd2['show'](),_0x12a874['on']('change:isReady',(_0x4d7789,_0xd0dedc,_0x26fc7c)=>{_0x26fc7c?_0x5c2dd2['hide']():_0x5c2dd2['show']();});}}class at extends _0x5b84f9{['_resizeObserver']=null;constructor(_0x5d00f4,_0x8a8ee3){super(_0x5d00f4,_0x8a8ee3);const _0x4a0bc1=this['bindTemplate'];this['set']({'label':g(_0x5d00f4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5d00f4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a0bc1['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 _0x4b13b4=this['fieldView']['element'];this['_tooltipString']=_0x4b13b4['scrollWidth']>_0x4b13b4['clientWidth']&&_0x4b13b4['value']||'';}}class si extends ts{constructor(_0x5f1729,_0x4a6a85,_0x3d3341){super(_0x5f1729);const _0x5ad432=new _0x4262a6();_0x5ad432['set']({'content':_0x512e1f,'viewBox':'0\x200\x2011\x2010'});const _0x4f7681=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3341&&_0x4f7681['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37be0b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5f1729,_0x3d3341?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ad432,_0x4a6a85['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4f7681},'children':_0x37be0b});}}function oi(_0x1dc901,_0xef48d2){const _0x5ee6df=_0x1dc901['bindTemplate'],_0x4e6670=_0x1dc901['locale'],_0x637257=_0x11b6e8(_0x4e6670);_0x637257['panelPosition']='sw';const _0x2e1db7=function(_0x61acab,_0x1bd527){const _0x1c40b8=function(_0x29276f,_0x2c167c){const _0x46ae82=_0x29276f['locale'],_0x6f1ff7={'Compare\x20against\x20selected':g(_0x46ae82,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x46ae82,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x46ae82,'Restore\x20this\x20revision')};return _0x2c167c['map'](_0x2a8938=>{const _0x1f13f8=_0x6f1ff7[_0x2a8938['name']];return _0x1f13f8&&_0x1f13f8!==_0x2a8938['name']&&(_0x2a8938['name']=_0x1f13f8),_0x2a8938;});}(_0x61acab,_0x1bd527),_0x29fc50=new _0xce0641();for(const _0x52c0bd of _0x1c40b8){const _0x23b50f={'type':'button','model':new to({'label':_0x52c0bd['name'],'class':_0x52c0bd['class'],'withText':!0x0,'role':'menuitem','_action':_0x52c0bd['action']})};_0x23b50f['model']['bind']('isEnabled')['to'](_0x61acab,'isActionsDropdownOpen',_0x50511a=>'function'!=typeof _0x52c0bd['isEnabled']||(!_0x50511a||_0x52c0bd['isEnabled'](_0x61acab))),_0x29fc50['add'](_0x23b50f);}return _0x29fc50;}(_0x1dc901,_0xef48d2);return _0x1dc901['bind']('isActionsDropdownOpen')['to'](_0x637257,'isOpen'),_0x637257['buttonView']['set']({'label':g(_0x4e6670,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2da73a}),_0x637257['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ee6df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ee6df['to'](_0x13fb67=>_0x13fb67['stopPropagation']())}}),_0x637257['on']('execute',_0x41422f=>{_0x1dc901['isReady']&&'function'==typeof _0x41422f['source']['_action']&&_0x41422f['source']['_action'](_0x1dc901);}),_0x25c378(_0x637257,_0x2e1db7,{'role':'menu'}),_0x637257['listenTo'](_0x1dc901,'change:isActionsDropdownOpen',(_0x3ca243,_0x2c9b27,_0x215c43)=>{if(_0x215c43)for(const _0x58c884 of _0x637257['listView']['items']){const _0x5159f8=_0x58c884['children']['first'],_0x16dc7b=_0xef48d2['find'](_0x93d84c=>_0x93d84c['action']===_0x5159f8['_action'])['isVisible'];_0x58c884['isVisible']=void 0x0===_0x16dc7b||_0x16dc7b(_0x1dc901);}}),_0x637257;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52de02,_0x3c0df2,_0x14bd4c,_0x47a61b){super(_0x52de02);const _0x333a20=this['bindTemplate'],_0x5b51f5=function(_0x159764,_0xf484b0){const _0xc7090=Array['from'](_0xf484b0['authors'])['filter'](_0x3960cb=>_0x3960cb!=_0xf484b0['creator']);return _0xf484b0['creator']&&_0xc7090['unshift'](_0xf484b0['creator']),_0xc7090['map'](_0x3e0ef6=>new si(_0x159764,_0x3e0ef6,_0x3e0ef6==_0xf484b0['creator']));}(_0x52de02,_0x3c0df2);this['id']=_0x3c0df2['id'],this['_revision']=_0x3c0df2,this['_requireRevisionName']=_0x47a61b,this['bind']('name','createdAt')['to'](_0x3c0df2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x405a53=>{return _0x38c167=_0x52de02['uiLanguage'],(_0x32446f=_0x405a53)['toLocaleDateString'](_0x38c167,{'month':'long','day':'numeric'})+',\x20'+_0x32446f['toLocaleTimeString'](_0x38c167,{'hour':'numeric','minute':'numeric'});var _0x38c167,_0x32446f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x52de02,_0x307c29),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x37717c=>_0x37717c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2fc8c4,_0x5153cd)=>_0x2fc8c4&&_0x5153cd),this['revisionActionsView']=_0x14bd4c&&_0x14bd4c['length']?oi(this,_0x14bd4c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x333a20['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x333a20['if']('isEnabled','ck-disabled',_0x5cdd23=>!_0x5cdd23),_0x333a20['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x333a20['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x333a20['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':_0x333a20['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':_0x5b51f5}]},this['revisionActionsView']],'on':{'click':_0x333a20['to'](_0x384bee=>{_0x384bee['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x38a178=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x38a178,'change',()=>{this['_requireRevisionName']&&!_0x38a178['value']||this['fire']('setName',{'id':this['id'],'name':_0x38a178['value']}),_0x38a178['value']||(_0x38a178['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x26576c,_0x3d27bc){const _0x2d8061=_0xa82a03['fromJSDate'](_0x26576c)['setLocale'](_0x3d27bc),_0x47de76=_0xa82a03['local'](),_0x31f45e=_0x47de76['minus']({'days':0x1})['startOf']('day');let _0xf36802,_0x1ca642;return _0x2d8061['hasSame'](_0x47de76,'day')?(_0xf36802=_0x2d8061['startOf']('day')['toJSDate'](),_0x1ca642=_0x2d8061['toRelativeCalendar']()):_0x2d8061['hasSame'](_0x31f45e,'day')?(_0xf36802=_0x31f45e['toJSDate'](),_0x1ca642=_0x2d8061['toRelativeCalendar']()):_0x2d8061['hasSame'](_0x47de76,'week')?(_0xf36802=_0x2d8061['startOf']('week')['toJSDate'](),_0x1ca642=_0x2d8061['weekdayLong']||''):_0x2d8061['hasSame'](_0x47de76,'year')?(_0xf36802=_0x2d8061['startOf']('month')['toJSDate'](),_0x1ca642=_0x2d8061['monthLong']||''):(_0xf36802=_0x2d8061['startOf']('year')['toJSDate'](),_0x1ca642=String(_0x2d8061['year'])),{'startDate':_0xf36802,'localizedPeriodName':_0x1ca642};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x19c557,_0x3a38be,_0x1736df,_0x5c416d){super(_0x19c557);const _0x2b0345=ai(_0x3a38be,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3a38be,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1736df,this['_requireRevisionName']=_0x5c416d,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':_0x2b0345}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x21ca31){const _0x3bb41c=new hi(this['locale'],_0x21ca31,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3bb41c);}['removeRevision'](_0x44865a){const _0x1c1bcf=this['revisionViews']['find'](_0x110b8f=>_0x110b8f['id']===_0x44865a['id']);this['revisionViews']['remove'](_0x1c1bcf);}}class as extends ts{constructor(_0x332457){super(_0x332457);const _0x14c6f6=new _0x4262a6();_0x14c6f6['content']=_0x1e483f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x14c6f6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x332457,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f0cf4,_0x453104,_0x1a0355,_0xec013e){super(_0x2f0cf4);const _0x1f90f5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x453104,this['_revisionActions']=_0x1a0355,this['_requireRevisionName']=_0xec013e,this['on']('select',(_0x443359,_0x32f01b)=>{this['fire']('revisionSelected',_0x32f01b);}),this['on']('setName',(_0x58c3c5,_0x2f2c09)=>{this['fire']('revisionSetName',_0x2f2c09);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2f0cf4),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1f90f5['if']('isEnabled','ck-disabled',_0x229f26=>!_0x229f26)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5aaf52 of this['_revisions'])this['_addRevision'](_0x5aaf52);this['_revisions']['on']('add',(_0x2d1fdd,_0x526d20)=>{this['_addRevision'](_0x526d20);}),this['_revisions']['on']('remove',(_0x35ab92,_0x17d393)=>{this['_removeRevision'](_0x17d393);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x59886f=>_0x59886f['revisionViews']['map'](_0x555006=>_0x555006))['flat']();}['selectRevision'](_0x17a4e1){for(const _0xaef7b2 of this['revisionViews'])_0x17a4e1&&_0x17a4e1['id']===_0xaef7b2['id']?_0xaef7b2['select']():_0xaef7b2['deselect']();}['highlightRevisions'](_0x47e81b){for(const _0x2a57a1 of this['revisionViews'])_0x47e81b['some'](({id:_0x17dbe6})=>_0x17dbe6===_0x2a57a1['id'])?_0x2a57a1['highlight']():_0x2a57a1['unhighlight']();}['_addRevision'](_0x25d71c){const _0x16ebd0=ai(_0x25d71c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x560bd5=this['timePeriodViews']['get'](0x0);_0x560bd5&&_0x560bd5['startDate']['getTime']()===_0x16ebd0['getTime']()||(_0x560bd5=new di(this['locale'],_0x16ebd0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x560bd5)),_0x560bd5['addRevision'](_0x25d71c);}['_removeRevision'](_0x1c1b93){const _0x6eb03f=ai(_0x1c1b93['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x6eb03f)['removeRevision'](_0x1c1b93);}['_getTimePeriodViewByStartDate'](_0x20c2ab){return this['timePeriodViews']['find'](_0x1b4b70=>_0x1b4b70['startDate']['getTime']()===_0x20c2ab['getTime']());}}class d extends _0x432e21{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x488038(_0x32c873){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x244f39,_0x322e64){super(_0x322e64),this['sourceElement']=_0x244f39,this['model']['document']['createRoot']();const _0x3527fb=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3527fb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4dfd4e,_0x1a8ffd){const _0xee4b63=new this(_0x4dfd4e,_0x1a8ffd);return await _0xee4b63['initPlugins'](),await _0xee4b63['ui']['init'](_0x4dfd4e),await _0xee4b63['data']['init'](_0xee4b63['config']['get']('initialData')||''),_0xee4b63['fire']('ready'),_0xee4b63;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x5bfc96{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2039fe){function _0x2fb723(_0x260f2d){return _0x260f2d['map'](_0x545de4=>String['fromCharCode'](_0x545de4))['join']('');}super(_0x2039fe),this['result']='end',_0x2039fe[_0x2fb723([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fb723([0x76,0x69,0x65,0x77])][_0x2fb723([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fb723([0x61,0x75,0x74,0x6f]),_0x2039fe[_0x2fb723([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fb723([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fb723([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fb723([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fb723([0x6f,0x6b])});}}class k extends _0x5bfc96{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2a4eff){if(super(_0x2a4eff),!this['editor']['config']['get']('revisionHistory'))throw new _0x39a46b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2b5eb5=>this['_showRevisionViewer']({..._0x2b5eb5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x18428c=>this['_closeRevisionViewer'](_0x18428c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3a87dd=>this['_restoreRevision'](_0x3a87dd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2eb421){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2eb421;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1cb6a0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1cb6a0);}['getRevision'](_0x36c54d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x36c54d);}['getRevisions'](_0x475da3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x475da3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x39fd13=this['editor'],_0x5cb69e=_0x45b597(_0x39fd13,p),_0xf0c118=_0x39fd13['plugins']['get']('RevisionTracker'),_0x1f50f3=_0x39fd13['plugins']['get']('Users')['users'];return _0x5cb69e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5cb69e['lazyRoots'],(_0x5cb69e['plugins']['push'](yt,m,R,class extends _0x5bfc96{static get['requires'](){return[m,'Users'];}['init'](){const _0x4661cb=this['editor']['plugins']['get']('Users');for(const _0x1da1bd of _0x1f50f3)_0x1da1bd['isAnonymous']||_0x4661cb['getUser'](_0x1da1bd['id'])||_0x4661cb['addUser'](_0x1da1bd);const _0x183124=_0xf0c118['repository']['getRevisions']();let _0x90301d=null;const _0x594211=this['editor']['plugins']['get']('RevisionViewer');_0x594211['adapter']=_0xf0c118['adapter'],_0x594211['bind']('isEnabled')['to'](_0xf0c118),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x39fd13,'isReadOnly',_0x172063=>!_0x172063);for(const _0x5bbf0d of _0x183124){const _0x1c596b=null===_0x5bbf0d['creator'];if(_0x1c596b&&_0x5bbf0d['toVersion']===_0x5bbf0d['fromVersion'])continue;const _0xa50c81=_0x5bbf0d['toJSON']();_0x594211['addRevisionData'](_0xa50c81,(_0x38a114,_0x4aae7e,_0x3c19f5)=>{if(_0x1c596b){if(_0x90301d)_0x90301d['_update'](_0x38a114,_0x4aae7e);else{if(!_0x4aae7e){const _0xa2b5f4=_0x3c19f5['toJSON']();_0xa2b5f4['id']=_0x27ee83(),_0xf0c118['saveRevision'](_0xa2b5f4,_0x3c19f5['toVersion'])['then'](_0x3f1ea2=>{_0x90301d=_0x3f1ea2;});}}}else _0x5bbf0d['_update'](_0x38a114,_0x4aae7e);});}}},d),_0x5cb69e);}['_enhanceShowRevisionViewerCallback'](){const _0x37d91f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c62aa=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x172e9f=this['editor']['plugins']['get']('Autosave');await _0x172e9f['save']();}else await _0x3c62aa['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x813215=this['editor']['plugins']['get']('Dialog');_0x813215['isOpen']&&_0x813215['hide']();}const _0x203d27=this['_getRevisionViewerEditorConfig']();return _0x37d91f(_0x203d27)['then'](_0x1bb7af=>{return(this['_viewerEditor']=_0x1bb7af,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'),_0x1bb7af);})['catch'](_0x3bb452=>(console['error'](_0x3bb452),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1aaf42=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'](),_0x1aaf42(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ef3de=this['editor']['plugins']['get']('Annotations');_0x1ef3de['refreshVisibility'](),_0x1ef3de['refreshPositioning']();}})));}['_showRevisionViewer'](_0x366fc8){const _0x36fa65=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x45dc41=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x105ad0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x105ad0,_0x366fc8)['then'](_0x161405=>(_0x45dc41['style']['display']='block',_0x36fa65['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x161405));}['_closeRevisionViewer'](_0x2aa122){const _0x1f0594=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1f0594['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2aa122['destroy']();}async['_restoreRevision'](_0x3c2901){const _0x73f7fb=this['editor'],_0x12e694=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3867d7=_0x73f7fb['plugins']['get']('RevisionTracker'),_0x5b1f03=_0x73f7fb['plugins']['get']('RevisionHistoryUtils'),_0x882e8a=_0x12e694['repository']['getRevision'](_0x3c2901);let _0x5e16d5,_0x46540c,_0x1c1cc6;try{await _0x5b1f03['loadRevisionData'](_0x882e8a,this['adapter']),_0x5e16d5=_0x5b1f03['getRevisionDocumentData'](_0x882e8a),_0x46540c=_0x5b1f03['getRevisionRootsAttributes'](_0x882e8a);}catch(_0xb61b3f){return void console['error'](_0xb61b3f);}_0x73f7fb['model']['change'](_0x31b16c=>{for(const _0x2fab26 of Array['from'](_0x73f7fb['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x31b16c['removeMarker'](_0x2fab26);}),_0x12e694['isReady']=!0x1,_0x73f7fb['model']['enqueueChange'](_0x390911=>{_0x390911['setSelection'](null),_0x390911['removeSelectionAttribute'](_0x73f7fb['model']['document']['selection']['getAttributeKeys']());const _0x5587b9=Object['keys'](_0x5e16d5);for(const _0x23ec98 of _0x73f7fb['model']['document']['roots'])'$graveyard'!=_0x23ec98['rootName']&&_0x23ec98['isAttached']()&&!_0x5587b9['includes'](_0x23ec98['rootName'])&&_0x390911['detachRoot'](_0x23ec98);for(const _0x59d2fa of _0x5587b9){let _0x1f2c16=_0x73f7fb['model']['document']['getRoot'](_0x59d2fa);_0x1f2c16&&_0x1f2c16['isAttached']()||(_0x1f2c16=_0x390911['addRoot'](_0x59d2fa));const _0x134942=_0x46540c[_0x59d2fa],_0x33af27=Object['keys'](_0x134942),_0x398913=_0x5e16d5[_0x59d2fa];for(const _0x44e7c4 of _0x1f2c16['getAttributeKeys']())_0x33af27['includes'](_0x44e7c4)||_0x390911['removeAttribute'](_0x44e7c4,_0x1f2c16);for(const _0x4a1c95 of _0x33af27)_0x390911['setAttribute'](_0x4a1c95,_0x46540c[_0x59d2fa][_0x4a1c95],_0x1f2c16);_0x390911['remove'](_0x390911['createRangeIn'](_0x1f2c16)),_0x390911['insert'](_0x73f7fb['data']['parse'](_0x398913,_0x1f2c16),_0x1f2c16,0x0);}});const _0x248e34=g(_0x73f7fb['locale'],'Restored');if(_0x882e8a['name'])_0x1c1cc6=-0x1==_0x882e8a['name']['indexOf'](_0x248e34)?_0x248e34+':\x20'+_0x882e8a['name']:_0x882e8a['name'];else _0x1c1cc6=_0x248e34+':\x20'+(_0x882e8a['createdAt']['toLocaleDateString'](_0x73f7fb['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x882e8a['createdAt']['toLocaleTimeString'](_0x73f7fb['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3867d7['saveRevision']({'name':_0x1c1cc6}),_0x12e694['isReady']=!0x0,_0x73f7fb['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(_0x1bee2c){super(_0x1bee2c),this['_revisionViewer']=_0x1bee2c['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5d769d=this['_revisionsRepository']['_revisions'],_0x2d9296=this['_createRevisionActions'](),_0x4ede9d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x5d769d,_0x2d9296,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',(_0x4a6d79,_0x344ffa)=>{_0x344ffa['revisionViews']['on']('add',(_0x18b3a8,_0x454f33)=>{_0x454f33['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)),_0x4ede9d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x386082=this['_revisionsRepository']['getRevision'](0x0);if(_0x386082){const _0x5f547e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x386082['id']);this['_revisionViewer']['compare'](_0x386082,_0x5f547e);}}['_handleRevisionSelected'](_0x2743fc,_0x3b24f3){const _0x301a88=this['_revisionsRepository']['getRevision'](_0x3b24f3['id']),_0x5010d0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x301a88['id']);this['_revisionViewer']['compare'](_0x301a88,_0x5010d0);}['_handleRevisionSetName'](_0x3a2b16,_0x38d4bc){this['_revisionsRepository']['getRevision'](_0x38d4bc['id'])['setName'](_0x38d4bc['name']);}['_handleDiffChange'](_0x555362,_0x59189b,_0x19776b){const _0x9b4c5a=this['_revisionsRepository']['getRevisionsInDiff'](_0x19776b);_0x9b4c5a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x9b4c5a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x9b4c5a[0x0]));}['_createRevisionActions'](){const _0x59ee38=this['editor'],_0x29809a=d['availableRevisionActions'],_0x162104=_0x59ee38['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x162104['length'])return _0x162104['map'](_0x53561b=>{const _0x2e975c='string'==typeof _0x53561b?Object['assign']({},_0x29809a[_0x53561b]):_0x53561b;return _0x2e975c['action']=_0x2e975c['action']['bind'](this,_0x59ee38),_0x2e975c['isVisible']&&(_0x2e975c['isVisible']=_0x2e975c['isVisible']['bind'](this,_0x59ee38)),_0x2e975c;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x229a8b},_0x531382)=>{const _0x30d479=_0x229a8b['get'](m),_0x1ee569=_0x30d479['repository'];let _0x36315a=_0x30d479['diff']['newRevisionId'],_0x3a8a3a=_0x531382['id'];_0x1ee569['getIndex'](_0x36315a)>_0x1ee569['getIndex'](_0x3a8a3a)&&([_0x36315a,_0x3a8a3a]=[_0x3a8a3a,_0x36315a]),_0x30d479['compare'](_0x36315a,_0x3a8a3a);},'isVisible':({plugins:_0x404bbc},_0xda30de)=>{const _0xd449f4=_0x404bbc['get'](m);return!(_0xd449f4['repository']['getRevisionsInDiff'](_0xd449f4['diff'])['length']>0x2)&&!_0xda30de['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x419123,{id:_0x3f59d4})=>{_0x419123['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f59d4);},'isVisible':({plugins:_0x2ecd49},_0x4fbee6)=>!!_0x2ecd49['get'](m)['repository']['getLaterVisibleRevision'](_0x4fbee6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1258c7},{id:_0x37c2d7,revisionNameView:_0x20464a})=>{const _0x20abcb=_0x1258c7['get'](m),_0x3fb6b7=_0x20abcb['repository']['getEarlierVisibleRevision'](_0x37c2d7);_0x20abcb['compare'](_0x37c2d7,_0x3fb6b7),_0x20464a['focus'](),_0x20464a['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x43eae9,_0x446081){super(_0x43eae9),this['_view']=_0x446081,this['_toolbarConfig']=et(_0x43eae9['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4bd681){const _0x1a7525=this['editor'],_0x39a828=this['view'],_0x3a2adf=_0x1a7525['editing']['view'],_0x2f1994=_0x39a828['editable'],_0x32e907=_0x3a2adf['document']['getRoot']();_0x2f1994['name']=_0x32e907['rootName'],_0x39a828['render']();const _0x56fc33=_0x2f1994['element'];this['setEditableElement'](_0x2f1994['name'],_0x56fc33),_0x39a828['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3a2adf['attachDomRoot'](_0x56fc33),this['_elementReplacer']['replace'](_0x4bd681,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x561b51=this['view'],_0x2e9cd2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2e9cd2['detachDomRoot'](_0x561b51['editable']['name']),_0x561b51['destroy']();}['_initToolbar'](){const _0x38cce9=this['view'];_0x38cce9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x38cce9['stickyPanel']['limiterElement']=_0x38cce9['element'],_0x38cce9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x16a69d})=>_0x16a69d),_0x38cce9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x38cce9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x488087,_0x179f5c,_0x201010={}){super(_0x488087),this['stickyPanel']=new ht(_0x488087),this['toolbar']=new dt(_0x488087,{'shouldGroupWhenFull':_0x201010['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x488087,_0x179f5c);}['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
|
+
_0x54af36(_0x152331){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x29293d,_0x54813b){super(_0x54813b),this['sourceElement']=_0x29293d,this['model']['document']['createRoot']();const _0x41ffbd=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x41ffbd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x161db2,_0x49b0a6){const _0x502153=new this(_0x161db2,_0x49b0a6);return await _0x502153['initPlugins'](),await _0x502153['ui']['init'](_0x161db2),await _0x502153['data']['init'](_0x502153['config']['get']('initialData')||''),_0x502153['fire']('ready'),_0x502153;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x432e21{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419346){function _0x494881(_0x2c8d98){return _0x2c8d98['map'](_0x410310=>String['fromCharCode'](_0x410310))['join']('');}super(_0x419346),this['result']='end',_0x419346[_0x494881([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494881([0x76,0x69,0x65,0x77])][_0x494881([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x494881([0x61,0x75,0x74,0x6f]),_0x419346[_0x494881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x494881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x494881([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x494881([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x494881([0x6f,0x6b])});}}class k extends _0x432e21{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x46ed03){if(super(_0x46ed03),!this['editor']['config']['get']('revisionHistory'))throw new _0x585f88('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x520228=>this['_showRevisionViewer']({..._0x520228,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x989ae3=>this['_closeRevisionViewer'](_0x989ae3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4d3396=>this['_restoreRevision'](_0x4d3396)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4ea281){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4ea281;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2be9da){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2be9da);}['getRevision'](_0x541c1c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x541c1c);}['getRevisions'](_0x3f1a1f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f1a1f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x37d712=this['editor'],_0x4a09b7=_0x34620a(_0x37d712,p),_0x3d918e=_0x37d712['plugins']['get']('RevisionTracker'),_0x566650=_0x37d712['plugins']['get']('Users')['users'];return _0x4a09b7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a09b7['lazyRoots'],(_0x4a09b7['plugins']['push'](_t,m,R,class extends _0x432e21{static get['requires'](){return[m,'Users'];}['init'](){const _0x24e9a1=this['editor']['plugins']['get']('Users');for(const _0x110e40 of _0x566650)_0x110e40['isAnonymous']||_0x24e9a1['getUser'](_0x110e40['id'])||_0x24e9a1['addUser'](_0x110e40);const _0x2d01f3=_0x3d918e['repository']['getRevisions']();let _0x26fd19=null;const _0x1a4046=this['editor']['plugins']['get']('RevisionViewer');_0x1a4046['adapter']=_0x3d918e['adapter'],_0x1a4046['bind']('isEnabled')['to'](_0x3d918e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x37d712,'isReadOnly',_0x46f59b=>!_0x46f59b);for(const _0x47cfd5 of _0x2d01f3){const _0xdbc674=null===_0x47cfd5['creator'];if(_0xdbc674&&_0x47cfd5['toVersion']===_0x47cfd5['fromVersion'])continue;const _0x42d551=_0x47cfd5['toJSON']();_0x1a4046['addRevisionData'](_0x42d551,(_0x5a91e4,_0x267b53,_0x36d7f7)=>{if(_0xdbc674){if(_0x26fd19)_0x26fd19['_update'](_0x5a91e4,_0x267b53);else{if(!_0x267b53){const _0x99c3f6=_0x36d7f7['toJSON']();_0x99c3f6['id']=_0x3cce8a(),_0x3d918e['saveRevision'](_0x99c3f6,_0x36d7f7['toVersion'])['then'](_0x4fe373=>{_0x26fd19=_0x4fe373;});}}}else _0x47cfd5['_update'](_0x5a91e4,_0x267b53);});}}},d),_0x4a09b7);}['_enhanceShowRevisionViewerCallback'](){const _0x44b877=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3d5cfb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3a423c=this['editor']['plugins']['get']('Autosave');await _0x3a423c['save']();}else await _0x3d5cfb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x17bd0b=this['editor']['plugins']['get']('Dialog');_0x17bd0b['isOpen']&&_0x17bd0b['hide']();}const _0x4e3c73=this['_getRevisionViewerEditorConfig']();return _0x44b877(_0x4e3c73)['then'](_0x50cd89=>{return(this['_viewerEditor']=_0x50cd89,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'),_0x50cd89);})['catch'](_0x135984=>(console['error'](_0x135984),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x33d2fd=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'](),_0x33d2fd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x47f9e3=this['editor']['plugins']['get']('Annotations');_0x47f9e3['refreshVisibility'](),_0x47f9e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5af98b){const _0x5a163d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x288a72=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8e7d2e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x8e7d2e,_0x5af98b)['then'](_0x4a9579=>(_0x288a72['style']['display']='block',_0x5a163d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4a9579));}['_closeRevisionViewer'](_0x36fb0b){const _0x43fd5b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x43fd5b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x36fb0b['destroy']();}async['_restoreRevision'](_0x54da48){const _0x382ec0=this['editor'],_0x24a318=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xaf93cf=_0x382ec0['plugins']['get']('RevisionTracker'),_0x99130e=_0x382ec0['plugins']['get']('RevisionHistoryUtils'),_0x1ab978=_0x24a318['repository']['getRevision'](_0x54da48);let _0x3b4992,_0x4cfb5d,_0x5756e5;try{await _0x99130e['loadRevisionData'](_0x1ab978,this['adapter']),_0x3b4992=_0x99130e['getRevisionDocumentData'](_0x1ab978),_0x4cfb5d=_0x99130e['getRevisionRootsAttributes'](_0x1ab978);}catch(_0x27e456){return void console['error'](_0x27e456);}_0x382ec0['model']['change'](_0x2fd3e8=>{for(const _0x979094 of Array['from'](_0x382ec0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2fd3e8['removeMarker'](_0x979094);}),_0x24a318['isReady']=!0x1,_0x382ec0['model']['enqueueChange'](_0x16b76e=>{_0x16b76e['setSelection'](null),_0x16b76e['removeSelectionAttribute'](_0x382ec0['model']['document']['selection']['getAttributeKeys']());const _0x31ab94=Object['keys'](_0x3b4992);for(const _0x445fd6 of _0x382ec0['model']['document']['roots'])'$graveyard'!=_0x445fd6['rootName']&&_0x445fd6['isAttached']()&&!_0x31ab94['includes'](_0x445fd6['rootName'])&&_0x16b76e['detachRoot'](_0x445fd6);for(const _0x2997be of _0x31ab94){let _0x542f3e=_0x382ec0['model']['document']['getRoot'](_0x2997be);_0x542f3e&&_0x542f3e['isAttached']()||(_0x542f3e=_0x16b76e['addRoot'](_0x2997be));const _0x54bfe3=_0x4cfb5d[_0x2997be],_0x2273d5=Object['keys'](_0x54bfe3),_0x4394ce=_0x3b4992[_0x2997be];for(const _0x1c34e9 of _0x542f3e['getAttributeKeys']())_0x2273d5['includes'](_0x1c34e9)||_0x16b76e['removeAttribute'](_0x1c34e9,_0x542f3e);for(const _0x5ddbee of _0x2273d5)_0x16b76e['setAttribute'](_0x5ddbee,_0x4cfb5d[_0x2997be][_0x5ddbee],_0x542f3e);_0x16b76e['remove'](_0x16b76e['createRangeIn'](_0x542f3e)),_0x16b76e['insert'](_0x382ec0['data']['parse'](_0x4394ce,_0x542f3e),_0x542f3e,0x0);}});const _0x49841e=g(_0x382ec0['locale'],'Restored');if(_0x1ab978['name'])_0x5756e5=-0x1==_0x1ab978['name']['indexOf'](_0x49841e)?_0x49841e+':\x20'+_0x1ab978['name']:_0x1ab978['name'];else _0x5756e5=_0x49841e+':\x20'+(_0x1ab978['createdAt']['toLocaleDateString'](_0x382ec0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1ab978['createdAt']['toLocaleTimeString'](_0x382ec0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xaf93cf['saveRevision']({'name':_0x5756e5}),_0x24a318['isReady']=!0x0,_0x382ec0['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};
|