@ckeditor/ckeditor5-revision-history 46.1.1-alpha.0 → 46.1.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- 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 +2 -2
- 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,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4f3d81(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x31126f){super(),this['id']=_0x31126f['id']||_0x1c1c29(),this['creator']=_0x31126f['creator']||null,this['authors']=_0x31126f['authors']||[],this['diffData']=_0x31126f['diffData']||null,this['toVersion']=_0x31126f['toVersion']||0x0,this['fromVersion']=_0x31126f['fromVersion']||0x0,this['set']('name',_0x31126f['name']||''),this['set']('createdAt',_0x31126f['createdAt']||new Date()),this['set']('attributes',_0x31126f['attributes']||{});}['setName'](_0x164993){this['_update']({'name':_0x164993});}['setAttribute'](_0x3459d5,_0x88cdec){const _0x2290eb=_0x5b681f(this['attributes']);_0x232aee(_0x2290eb,_0x3459d5,_0x88cdec),this['_update']({'attributes':_0x2290eb});}['removeAttribute'](_0x40b2d2){const _0x1bea57=_0x5b681f(this['attributes']);_0x2051b7(_0x1bea57,_0x40b2d2),this['_update']({'attributes':_0x1bea57});}['_update'](_0x2ef7a8,_0x5cb783=!0x1){let _0x133227=!0x1;const _0x364ed0={'id':this['id']},_0x70182f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x6510e0 of _0x70182f){const _0x194ca2=_0x2ef7a8[_0x6510e0];void 0x0!==_0x194ca2&&_0x194ca2!==this[_0x6510e0]&&(this[_0x6510e0]=_0x194ca2,_0x364ed0[_0x6510e0]=_0x194ca2,_0x133227=!0x0);}_0x133227&&(_0x364ed0['authors']&&(_0x364ed0['authorsIds']=_0x364ed0['authors']['map'](_0x35fc2f=>_0x35fc2f['id']),delete _0x364ed0['authors']),this['fire']('_update',_0x364ed0,_0x5cb783));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1c186a=>_0x1c186a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3daf77{['_revisions'];static get['requires'](){return[_0x3c3d4d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x51ffe4){super(_0x51ffe4),this['_revisions']=new _0x485594();}['afterInit'](){!async function(_0x3a39ea){const _0x441afd=_0x482353([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x29fed7=0xeb829,_0x29fc43=0x7374585f,_0x2cc3df=0x73732b77^_0x29fc43,_0x12b164=window[_0x482353([0x44,0x61,0x74,0x65])][_0x482353([0x6e,0x6f,0x77])](),_0x19c869=_0x3a39ea[_0x482353([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d148d=new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c40ea=>{_0x19c869[_0x482353([0x6f,0x6e,0x63,0x65])](_0x482353([0x72,0x65,0x61,0x64,0x79]),_0x3c40ea);}),_0x2b207f={[_0x482353([0x6b,0x74,0x79])]:_0x482353([0x45,0x43]),[_0x482353([0x75,0x73,0x65])]:_0x482353([0x73,0x69,0x67]),[_0x482353([0x63,0x72,0x76])]:_0x482353([0x50,0x2d,0x32,0x35,0x36]),[_0x482353([0x78])]:_0x482353([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]),[_0x482353([0x79])]:_0x482353([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]),[_0x482353([0x61,0x6c,0x67])]:_0x482353([0x45,0x53,0x32,0x35,0x36])},_0x9a7239=_0x19c869[_0x482353([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x482353([0x67,0x65,0x74])](_0x482353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13b21d(){let _0x502062,_0x3894f9=null,_0x5c4ed1=null;try{if(_0x9a7239==_0x482353([0x47,0x50,0x4c]))return _0x482353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x502062=_0x35529a(),!_0x502062)return _0x482353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x502062[_0x482353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c4ed1=_0x2e3b14(_0x502062[_0x482353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x502062[_0x482353([0x6a,0x74,0x69])])),await _0x4fbcb9()?_0xe64809()?_0x1f69be()?_0x482353([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36f38b()?(_0x502062[_0x482353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x482353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3894f9=_0x304a57(_0x482353([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x502062[_0x482353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x482353([0x74,0x72,0x69,0x61,0x6c])&&(_0x3894f9=_0x304a57(_0x482353([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39d1ee()):_0x482353([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x482353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x482353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x482353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f69be(){const _0x31d216=[_0x482353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x482353([0x74,0x72,0x69,0x61,0x6c])][_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x502062[_0x482353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12b164/0x3e8:0xe10*_0x2cc3df;return _0x502062[_0x482353([0x65,0x78,0x70])]<_0x31d216;}function _0xe64809(){const _0x3c07ca=_0x502062[_0x482353([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c07ca)return!0x1;if(_0x3c07ca[_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482353([0x2a])))return!0x0;if(_0x3c07ca[_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482353([0x52,0x48])))return!0x0;if(_0x3c07ca[_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482353([0x52,0x52,0x48]))){if(_0x25bac1())return!0x0;if(_0x4b3618()||_0x482569())return!0x0;}return!0x1;}function _0x36f38b(){const _0x1ed9ea=_0x502062[_0x482353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ed9ea||0x0==_0x1ed9ea[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x127aa0}=new URL(window[_0x482353([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ed9ea[_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127aa0))return!0x0;const _0x7bf686=_0x127aa0[_0x482353([0x73,0x70,0x6c,0x69,0x74])](_0x482353([0x2e]));return _0x1ed9ea[_0x482353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x369b9e=>_0x369b9e[_0x482353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x482353([0x2a])))[_0x482353([0x6d,0x61,0x70])](_0x262084=>_0x262084[_0x482353([0x73,0x70,0x6c,0x69,0x74])](_0x482353([0x2e])))[_0x482353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd8c8cd=>_0xd8c8cd[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7bf686[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x482353([0x6d,0x61,0x70])](_0x47e4ec=>Array(_0x7bf686[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47e4ec[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x482353([0x66,0x69,0x6c,0x6c])](_0x47e4ec[0x0]===_0x482353([0x2a])?_0x482353([0x2a]):'')[_0x482353([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47e4ec))[_0x482353([0x73,0x6f,0x6d,0x65])](_0x5bd1ab=>_0x7bf686[_0x482353([0x65,0x76,0x65,0x72,0x79])]((_0x442c23,_0x446da4)=>_0x5bd1ab[_0x446da4]===_0x442c23||_0x5bd1ab[_0x446da4]===_0x482353([0x2a])));}function _0x39d1ee(){return _0x3894f9&&_0x5c4ed1?new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48d707,_0x1b9f99)=>{_0x3894f9[_0x482353([0x74,0x68,0x65,0x6e])](_0x48d707,_0x1b9f99),_0x5c4ed1[_0x482353([0x74,0x68,0x65,0x6e])](_0x16ccbe=>{_0x16ccbe!=_0x482353([0x56,0x61,0x6c,0x69,0x64])&&_0x48d707(_0x16ccbe);},_0x1b9f99);}):_0x3894f9||_0x5c4ed1||_0x482353([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e3b14(_0x315f13,_0x5a2569){return new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304835=>{if(_0x114ced())return _0x304835(_0x482353([0x56,0x61,0x6c,0x69,0x64]));_0xfba3cf(),_0x19c869[_0x482353([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x482353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35d897=!0x1;const _0x442b38=_0x1c1c29();function _0x1c45a5(_0x484e3d){return!!_0x484e3d&&(typeof _0x484e3d===_0x482353([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x484e3d===_0x482353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x484e3d[_0x482353([0x74,0x68,0x65,0x6e])]===_0x482353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x484e3d[_0x482353([0x63,0x61,0x74,0x63,0x68])]===_0x482353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34badb(_0x38c760){_0x29a617(_0x38c760)[_0x482353([0x74,0x68,0x65,0x6e])](_0x2e8ed3=>{if(!_0x2e8ed3||_0x2e8ed3[_0x482353([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x482353([0x6f,0x6b]))return _0x482353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309308(_0x57feb8(_0x442b38+_0x5a2569))!=_0x2e8ed3[_0x482353([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x482353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x482353([0x56,0x61,0x6c,0x69,0x64]);})[_0x482353([0x74,0x68,0x65,0x6e])](_0x4704c5=>(_0x143b69(),_0x4704c5),()=>{const _0x515999=_0x273e0b();return null==_0x515999?(_0x143b69(),_0x482353([0x56,0x61,0x6c,0x69,0x64])):_0x482353(_0x12b164-_0x515999>(0x5778dc5f^_0x29fc43)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x482353([0x74,0x68,0x65,0x6e])](_0x304835)[_0x482353([0x63,0x61,0x74,0x63,0x68])](()=>{_0x304835(_0x482353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31444d=0x7342b6df^_0x29fc43;function _0x143b69(){const _0x44b6ad=_0x482353([0x6c,0x6c,0x63,0x74,0x2d])+_0x309308(_0x57feb8(_0x315f13)),_0x2ae238=_0x4e6ed8(_0x309308(window[_0x482353([0x4d,0x61,0x74,0x68])][_0x482353([0x63,0x65,0x69,0x6c])](_0x12b164/_0x31444d)));window[_0x482353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x482353([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b6ad,_0x2ae238);}function _0x273e0b(){const _0x5621e7=_0x482353([0x6c,0x6c,0x63,0x74,0x2d])+_0x309308(_0x57feb8(_0x315f13)),_0x2a807e=window[_0x482353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x482353([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5621e7);return _0x2a807e?window[_0x482353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6ed8(_0x2a807e),0x10)*_0x31444d:null;}function _0x29a617(_0x103def){return new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2038f0,_0x2c0909)=>{_0x103def[_0x482353([0x74,0x68,0x65,0x6e])](_0x2038f0,_0x2c0909),window[_0x482353([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c0909,0x73758c9f^_0x29fc43);});}}_0x19c869[_0x482353([0x6f,0x6e])](_0x482353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cdd3f,_0x4a13a8)=>{if(_0x4a13a8[0x0]!=_0x315f13)return _0x304835(_0x482353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a13a8[0x1]={..._0x4a13a8[0x1],[_0x482353([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x442b38};},{[_0x482353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x482353([0x68,0x69,0x67,0x68])}),_0x19c869[_0x482353([0x6f,0x6e])](_0x482353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ca50c=>{_0x1c45a5(_0x3ca50c[_0x482353([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35d897=!0x0,_0x34badb(_0x3ca50c[_0x482353([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x482353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x482353([0x6c,0x6f,0x77])}),_0x5d148d[_0x482353([0x74,0x68,0x65,0x6e])](()=>{_0x35d897||_0x304835(_0x482353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x114ced(){return _0x19c869[_0x482353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x482353([0x76,0x69,0x65,0x77])][_0x482353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x482353([0x61,0x75,0x74,0x6f]);}function _0xfba3cf(){_0x19c869[_0x482353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x482353([0x76,0x69,0x65,0x77])][_0x482353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x482353([0x61,0x75,0x74,0x6f]);}}function _0x304a57(_0x42cde){const _0x50779e=[new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23c92a=>setTimeout(_0x23c92a,0x737d6693^_0x29fc43)),_0x5d148d[_0x482353([0x74,0x68,0x65,0x6e])](()=>new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a28d9=>{const _0x152058=0x73745858^_0x29fc43,_0x23674a=_0x3a39ea[_0x482353([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf21050(){_0x23674a[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x152058&&_0x2a28d9();}_0xf21050(),_0x23674a[_0x482353([0x6f,0x6e])](_0x482353([0x61,0x64,0x64]),_0xf21050);})),new window[(_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110d62=>{function _0x4a8c6b(){for(const _0x3968f9 in window)if(window[_0x482353([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x482353([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3968f9))&&window[_0x3968f9]==_0x29fed7)return _0x110d62();_0x19c869[_0x482353([0x73,0x74,0x61,0x74,0x65])]!=_0x482353([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x482353([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a8c6b,0x73744bd7^_0x29fc43);}_0x2b69e3(_0x482353([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4a8c6b();})];return window[_0x482353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x482353([0x72,0x61,0x63,0x65])](_0x50779e)[_0x482353([0x74,0x68,0x65,0x6e])](()=>_0x42cde);}async function _0x25f027(){if(await _0x5d148d,_0x2b69e3(_0x482353([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3daa31=_0x3a39ea[_0x482353([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5a1860=_0x3a39ea[_0x482353([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])](_0x3daa31[_0x482353([0x69,0x64])]),_0x343974=_0x3d3de1(_0x482353([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x343974[_0x482353([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3daa31['id'],_0x5a1860?_0x5a1860['id']:null,!0x0),_0x343974[_0x482353([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x482353([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x343974[_0x482353([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x343974[_0x482353([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x201f4e,void(_0x343974[_0x482353([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x201f4e);}if(_0x2b69e3(_0x482353([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1badaf=_0x3d3de1(_0x482353([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1badaf[_0x482353([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x482353([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1badaf[_0x482353([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1badaf[_0x482353([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x201f4e,_0x1badaf[_0x482353([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x201f4e;}_0x19c869[_0x482353([0x6d,0x6f,0x64,0x65,0x6c])][_0x482353([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x201f4e,_0x19c869[_0x482353([0x6d,0x6f,0x64,0x65,0x6c])][_0x482353([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x201f4e,_0x19c869[_0x482353([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x482353([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25bac1(){return _0x2b69e3(_0x482353([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d3de1(_0x482353([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x482353([0x73,0x74,0x61,0x74,0x65])]==_0x482353([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b3618(){return _0x2b69e3(_0x482353([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 _0x482569(){return _0x2b69e3(_0x482353([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa19b70(_0x543d56){const _0x240fb0=_0x5af0fe();_0x19c869[_0x240fb0]=_0x482353([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])+_0x543d56,_0x543d56[_0x482353([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x482353([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5af0fe()]=_0x29fed7),_0x543d56!=_0x482353([0x56,0x61,0x6c,0x69,0x64])&&_0x25f027();}function _0x5af0fe(){const _0x1970c4=window[_0x482353([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x482353([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x482353([0x6e,0x6f,0x77])]())[_0x482353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x482353([0x2e]),'');let _0x5f20e9=_0x482353([0x73]);for(let _0x43e451=0x0;_0x43e451<_0x1970c4[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43e451+=0x2){let _0x2968ae=window[_0x482353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1970c4[_0x482353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e451,_0x43e451+0x2));_0x2968ae>=_0x441afd[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2968ae-=_0x441afd[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f20e9+=_0x441afd[_0x2968ae];}return _0x5f20e9;}function _0x35529a(){const _0x31caee=_0x9a7239[_0x482353([0x73,0x70,0x6c,0x69,0x74])](_0x482353([0x2e]));if(0x3!=_0x31caee[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c2400(_0x31caee[0x1]);function _0x3c2400(_0x3a2210){const _0x2a2938=_0x3f02e1(_0x3a2210);return _0x2a2938&&_0x53d1d6()?_0x2a2938:null;function _0x53d1d6(){const _0x4aa5ef=_0x2a2938[_0x482353([0x6a,0x74,0x69])],_0x4e7165=window[_0x482353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aa5ef[_0x482353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aa5ef[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x290002={..._0x2a2938,[_0x482353([0x6a,0x74,0x69])]:_0x4aa5ef[_0x482353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aa5ef[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x290002[_0x482353([0x76,0x63])],_0x57feb8(_0x290002)==_0x4e7165;}}}async function _0x4fbcb9(){let _0x1d3288=!0x0;try{const _0x15a470=_0x9a7239[_0x482353([0x73,0x70,0x6c,0x69,0x74])](_0x482353([0x2e])),[_0x5a5954,_0x5c1d49,_0x1fdb2a]=_0x15a470;return _0x37c21d(_0x5a5954),await _0x44eca9(_0x5a5954,_0x5c1d49,_0x1fdb2a),_0x1d3288;}catch{return!0x1;}function _0x37c21d(_0x320f28){const _0x2216f9=_0x3f02e1(_0x320f28);_0x2216f9&&_0x2216f9[_0x482353([0x61,0x6c,0x67])]==_0x482353([0x45,0x53,0x32,0x35,0x36])||(_0x1d3288=!0x1);}async function _0x44eca9(_0x1ea1b2,_0x3f41f0,_0x505a65){const _0xf6232=window[_0x482353([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x482353([0x66,0x72,0x6f,0x6d])](_0x1ada59(_0x505a65),_0x28fa4c=>_0x28fa4c[_0x482353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x563485=new window[(_0x482353([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x482353([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ea1b2+_0x482353([0x2e])+_0x3f41f0),_0x226c71=window[_0x482353([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x482353([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x226c71)return;const _0x6a41ee=await _0x226c71[_0x482353([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x482353([0x6a,0x77,0x6b]),_0x2b207f,{[_0x482353([0x6e,0x61,0x6d,0x65])]:_0x482353([0x45,0x43,0x44,0x53,0x41]),[_0x482353([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x482353([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x482353([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x226c71[_0x482353([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x482353([0x6e,0x61,0x6d,0x65])]:_0x482353([0x45,0x43,0x44,0x53,0x41]),[_0x482353([0x68,0x61,0x73,0x68])]:{[_0x482353([0x6e,0x61,0x6d,0x65])]:_0x482353([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6a41ee,_0xf6232,_0x563485)||(_0x1d3288=!0x1);}}function _0x3f02e1(_0x5332a0){return _0x5332a0[_0x482353([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x482353([0x65,0x79]))?JSON[_0x482353([0x70,0x61,0x72,0x73,0x65])](_0x1ada59(_0x5332a0)):null;}function _0x1ada59(_0x3d75d1){return window[_0x482353([0x61,0x74,0x6f,0x62])](_0x3d75d1[_0x482353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x482353([0x2b]))[_0x482353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x482353([0x2f])));}function _0x57feb8(_0xcf480f){let _0x286637=0x1505;function _0x37b9d3(_0x32471e){for(let _0x203669=0x0;_0x203669<_0x32471e[_0x482353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x203669++){const _0x4033c0=_0x32471e[_0x482353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x203669);_0x286637=(_0x286637<<0x5)+_0x286637+_0x4033c0,_0x286637&=_0x286637;}}function _0x33ee40(_0x28d051){Array[_0x482353([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28d051)?_0x28d051[_0x482353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33ee40):_0x28d051&&typeof _0x28d051==_0x482353([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x482353([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28d051)[_0x482353([0x73,0x6f,0x72,0x74])]()[_0x482353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d43e6,_0x248361])=>{_0x37b9d3(_0x5d43e6),_0x33ee40(_0x248361);}):_0x37b9d3(window[_0x482353([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28d051));}return _0x33ee40(_0xcf480f),_0x286637>>>0x0;}function _0x309308(_0x49e843){return _0x49e843[_0x482353([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x482353([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x482353([0x30]));}function _0x4e6ed8(_0x4b8d37){return _0x4b8d37[_0x482353([0x73,0x70,0x6c,0x69,0x74])]('')[_0x482353([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x482353([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b69e3(_0x5110c2){return _0x19c869[_0x482353([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x482353([0x68,0x61,0x73])](_0x5110c2);}function _0x3d3de1(_0xdecd2f){return _0x19c869[_0x482353([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x482353([0x67,0x65,0x74])](_0xdecd2f);}function _0x201f4e(){}function _0x482353(_0x143d06){return _0x143d06['map'](_0xfcaaa4=>String['fromCharCode'](_0xfcaaa4))['join']('');}_0xa19b70(await _0x13b21d());}(this);}['createRevision'](_0x5f174b){const _0x214b73=this['editor']['plugins']['get']('Users');return new I({'id':_0x5f174b['id'],'name':_0x5f174b['name'],'creator':_0x5f174b['creatorId']?_0x214b73['getUser'](_0x5f174b['creatorId']):null,'diffData':_0x5f174b['diffData']||_0x5f174b['data'],'authors':_0x5f174b['authorsIds']['map'](_0x20f059=>_0x214b73['getUser'](_0x20f059)),'createdAt':new Date(_0x5f174b['createdAt']),'attributes':_0x5f174b['attributes'],'fromVersion':_0x5f174b['fromVersion'],'toVersion':_0x5f174b['toVersion']});}['addRevision'](_0x490673,_0x27e84f=0x0){this['_revisions']['add'](_0x490673,_0x27e84f);}['getRevision'](_0x14b93b){return this['_revisions']['get'](_0x14b93b);}['getRevisions'](_0x3ce8db={'toJSON':!0x1}){const _0x321cda=Array['from'](this['_revisions']);return _0x321cda['reverse'](),_0x3ce8db['toJSON']?_0x321cda['map'](_0x2c8f80=>_0x2c8f80['toJSON']()):_0x321cda;}['getIndex'](_0x1f10bd){return this['_revisions']['getIndex'](_0x1f10bd);}['getEarlierVisibleRevision'](_0x1356d7){const [,_0x54b355]=this['getRevisionsIterator'](_0x1356d7,{'direction':'earlier'});return _0x54b355;}['getLaterVisibleRevision'](_0x412a5f){const [,_0x29c007]=this['getRevisionsIterator'](_0x412a5f,{'direction':'later'});return _0x29c007;}['getRevisionsInDiff'](_0x3d272f){const _0x29bb81=[];for(const _0x253ec5 of this['getRevisionsIterator'](_0x3d272f['newRevisionId']))if(_0x29bb81['push'](_0x253ec5),_0x253ec5['id']===_0x3d272f['oldRevisionId'])break;return _0x29bb81;}*['getRevisionsIterator'](_0x267adb,{direction:_0x2c8b2a='earlier',filter:_0x5feb93=()=>!0x0}={}){const _0x3e5b5f='earlier'===_0x2c8b2a?0x1:-0x1;let _0x58c7e2=this['_revisions']['get'](_0x267adb),_0x2be69c=this['getIndex'](_0x58c7e2);for(yield _0x58c7e2;_0x58c7e2;){if(_0x2be69c+=_0x3e5b5f,_0x58c7e2=this['getRevision'](_0x2be69c),!_0x58c7e2)return;_0x5feb93(_0x58c7e2)&&(yield _0x58c7e2);}}}class $ extends _0x3daf77{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5310ca,'c'],[_0x521fc7,'a'],[_0x27d05e,'e'],[_0x99885e,'r'],[_0x7901b6,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5310ca],['a',_0x521fc7],['e',_0x27d05e],['r',_0x99885e],['u',_0x7901b6]]);async['loadRevisionData'](_0x585124,_0x4a5c26){if(_0x585124['diffData']||!_0x4a5c26)return;const _0x464430=this['editor']['config']['get']('collaboration.channelId'),_0x4712d9=await _0x4a5c26['getRevision']({'channelId':_0x464430,'revisionId':_0x585124['id']});_0x585124['diffData']=_0x4712d9['diffData'];}['getRevisionDocumentData'](_0x934c50){const _0x5be2c9={};for(const _0x1a724d in _0x934c50['diffData']){if(_0x934c50['diffData'][_0x1a724d]['attachChange']&&!_0x934c50['diffData'][_0x1a724d]['attachChange']['isAttached'])continue;const _0x5c1f5c=this['_removeRevisionMarkers'](JSON['parse'](_0x934c50['diffData'][_0x1a724d]['insertions'])),_0x333300=this['editor']['editing']['view']['document'],_0x15873f=new _0x225429(_0x333300,_0x5c1f5c['map'](_0x1e1d55=>this['_getViewFromDiffObj'](_0x1e1d55,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5be2c9[_0x1a724d]=this['editor']['data']['processor']['toData'](_0x15873f),this['editor']['data']['processor']['useFillerType']('default');}return _0x5be2c9;}['getRevisionRootsAttributes'](_0x31bcae){const _0x2d8fa7={};for(const _0x165a2e in _0x31bcae['diffData'])_0x31bcae['diffData'][_0x165a2e]['attachChange']&&!_0x31bcae['diffData'][_0x165a2e]['attachChange']['isAttached']||(_0x2d8fa7[_0x165a2e]=_0x31bcae['diffData'][_0x165a2e]['attributesAfter']||{});return _0x2d8fa7;}['_getTypeCharForViewElement'](_0x1efea0){return this['_viewClassToTypeChar']['get'](_0x1efea0['constructor']);}['_getViewFromDiffObj'](_0x5bdbe9,_0x4376ff){const _0x3af97d=this['editor']['editing']['view']['document'];if('string'==typeof _0x5bdbe9)return new _0x5af1b3(_0x3af97d,_0x5bdbe9);{let _0x73905e,_0x20fc0d;_0x20fc0d='u'==_0x5bdbe9['type']||'r'==_0x5bdbe9['type']?[]:_0x5bdbe9['children']['map'](_0x2def3c=>this['_getViewFromDiffObj'](_0x2def3c,_0x4376ff));const _0x96dbe4=this['_typeCharToViewClass']['get'](_0x5bdbe9['type'])||_0x261aec,_0xaa72fb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x73905e=new _0x96dbe4(_0x3af97d,_0x5bdbe9['name'],_0x5bdbe9['attributes'],_0x20fc0d),'u'==_0x5bdbe9['type']&&_0x5bdbe9['children'][0x0]){const _0x35a832=_0x5bdbe9['children'][0x0];if(_0x73905e['render']=function(_0x4da11b){const _0x5504ae=_0x4da11b['createElement']('div');return _0x5504ae['innerHTML']=_0x35a832,_0x5504ae['childNodes'][0x0];},_0x4376ff){const _0xc2c393=new _0x225429(_0x3af97d);_0xc2c393['_appendChild'](_0x73905e);const _0x55ab61=Array['from'](_0xaa72fb['viewChildrenToDom'](_0xc2c393,{'bind':!0x1})),_0x32c2fd=_0xaa72fb['domDocument']['createElement']('div');_0x32c2fd['append'](..._0x55ab61),_0x73905e=Array['from'](_0xaa72fb['domChildrenToView'](_0x32c2fd))[0x0];}}else{if('r'==_0x5bdbe9['type']&&_0x5bdbe9['children'][0x0]){const _0x524c59=_0x5bdbe9['children'][0x0];if(_0x73905e['render']=function(_0x4be845){_0x4be845['innerHTML']=_0x524c59;},_0x4376ff){const _0x3d44d5=new _0x225429(_0x3af97d);_0x3d44d5['_appendChild'](_0x73905e);const _0x580384=Array['from'](_0xaa72fb['viewChildrenToDom'](_0x3d44d5,{'bind':!0x1})),_0x127adf=_0xaa72fb['domDocument']['createElement']('div');_0x127adf['append'](..._0x580384);const _0x78f397=Array['from'](_0xaa72fb['domChildrenToView'](_0x127adf));_0x78f397['length']>0x1?_0x73905e['_appendChild'](_0x78f397):_0x73905e=_0x78f397[0x0];}}}if(_0x5bdbe9['customProperties']){for(const [_0x44815d,_0xfd382b]of _0x5bdbe9['customProperties'])_0x73905e['_setCustomProperty'](_0x44815d,_0xfd382b);}const _0x3f61df=void 0x0===_0x5bdbe9['fillerOffset']?null:_0x5bdbe9['fillerOffset'];return null!==_0x3f61df&&(_0x73905e['getFillerOffset']=()=>_0x3f61df),_0x73905e;}}['_makeModelFromViewString'](_0x49a55d){const _0x11d655=JSON['parse'](_0x49a55d),_0x7fc4a2=this['editor']['editing']['view']['document'],_0xdffc88=new _0x225429(_0x7fc4a2,_0x11d655['map'](_0x286cc1=>this['_getViewFromDiffObj'](_0x286cc1,!0x0)));return this['editor']['data']['toModel'](_0xdffc88);}['_removeRevisionMarkers'](_0xdb877e){return(_0xdb877e=_0xdb877e['filter'](_0x11a50e=>!_0x11a50e['name']||'revision-start'!==_0x11a50e['name']&&'revision-end'!==_0x11a50e['name']))['forEach'](_0x5bc775=>{'string'!=typeof _0x5bc775&&(_0x5bc775['children']=this['_removeRevisionMarkers'](_0x5bc775['children']),_0x5bc775['attributes']=_0x5bc775['attributes']['filter'](_0x516850=>!_0x516850[0x0]['startsWith']('data-revision-')));}),_0xdb877e;}}function R(_0x349324,_0x2da8fc,_0x107793){const t=_0x349324['t'];switch(_0x2da8fc){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'},_0x107793);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x107793);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 h extends _0x3daf77{['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[_0x3c3d4d,S,$,_0x485562];}constructor(_0x538ddc){super(_0x538ddc),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x131616=_0x1c1c29();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x131616},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 _0x18cfde=this['repository']['getRevision'](0x0),_0x17bfae=_0x18cfde&&null===_0x18cfde['creator']?_0x18cfde:null;if(this['_continueCurrentRevision']=!!_0x17bfae&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x210bde=this['_source']['getCurrentRevisionId'](),_0x57d899=this['repository']['getRevision'](_0x210bde);if(_0x57d899)this['_startingVersion']=_0x57d899['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x303687=this['_source']['history']['_operations']['find'](_0xe76bd8=>!_0xe76bd8['_isInit']),_0x1cab6b=_0x303687?_0x303687['baseVersion']:this['_source']['history']['version'];_0x18cfde?(_0x18cfde['toVersion']<_0x1cab6b&&_0x18cfde['_update']({'toVersion':_0x1cab6b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17bfae['id'],this['_startingVersion']=_0x17bfae['fromVersion']):(this['_startingVersion']=_0x18cfde['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1cab6b,this['_continueCurrentRevision']=!0x1);}}else _0x17bfae&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17bfae['toVersion'],this['editor']['model']['document']['history']['version']),_0x17bfae['fromVersion']===_0x17bfae['toVersion']?(0x0!==_0x17bfae['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17bfae['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17bfae['id'],this['_startingVersion']=_0x17bfae['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',_0x566940=>!_0x566940),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1948d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bdd2a;for(const _0x45d427 in _0x1948d3){const _0x390439=_0x45d427,_0x10e696=_0x1948d3[_0x390439];if('revisionHistoryLicenseKeyValid'==_0x10e696||'revisionHistoryLicenseKeyInvalid'==_0x10e696||'revisionHistoryLicenseKeyExpired'==_0x10e696||'revisionHistoryLicenseKeyDomainLimit'==_0x10e696||'revisionHistoryLicenseKeyNotAllowed'==_0x10e696||'revisionHistoryLicenseKeyEvaluationLimit'==_0x10e696||'revisionHistoryLicenseKeyTrialLimit'==_0x10e696||'revisionHistoryLicenseKeyUsageLimit'==_0x10e696){delete _0x1948d3[_0x390439],_0x4bdd2a=_0x10e696,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4bdd2a&&_0x1948d3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x48e7c9=this['repository']['getRevision'](0x0),_0x49319b=await this['getRevisionDocumentData'](_0x48e7c9),_0x399568=await this['getRevisionRootsAttributes'](_0x48e7c9);this['_replaceEditorDataWithRevisionData'](_0x49319b,_0x399568);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe7fcc3){this['_source']=_0xe7fcc3;}async['update'](){const _0xb52e0a=await this['_source']['getLatestVersion']();if(_0xb52e0a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5e1219=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xb52e0a});_0x5e1219['authors']=_0x5e1219['authorsIds']['map'](_0x3e07a5=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e07a5)),this['currentRevision']['_update'](_0x5e1219);}}async['saveRevision'](_0x50e41f={},_0x4e0455=null){const _0x3c8dee=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4e0455>this['currentRevision']['toVersion']&&(_0x4e0455=null),null===_0x4e0455&&(_0x4e0455=await this['_source']['getLatestVersion']());const _0x14618a=this['_getFromVersion'](_0x4e0455),_0x5efa70=this['buildRevisionData']({'from':_0x14618a,'to':_0x4e0455});if(this['currentRevision']['toVersion']<_0x4e0455){const _0x124904=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4e0455,'to':_0x4e0455});_0x124904['authors']=[],_0x124904['authorsIds']=[],_0x124904['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x124904,!0x0),delete _0x124904['authors'],_0x3c8dee['push'](_0x124904);}_0x50e41f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x50e41f['name']=_0x50e41f['name']||null,_0x50e41f['id']=_0x50e41f['id']||_0x1c1c29(),_0x50e41f={..._0x50e41f,..._0x5efa70};const _0x544547=this['addRevisionData'](_0x50e41f);_0x3c8dee['push'](_0x50e41f);const _0x565968=this['repository']['getIndex'](_0x544547);if(0x0!==_0x565968){const _0x50e446=this['repository']['getRevision'](_0x565968-0x1);if(_0x50e446['fromVersion']!==_0x4e0455){const _0x37d250=this['_revisionDataBuilder']['getData'](_0x4e0455,_0x50e446['toVersion']),_0x48ebc4={'id':_0x50e446['id'],'diffData':_0x37d250['diffData'],'authorsIds':_0x37d250['authorsIds'],'authors':_0x37d250['authorsIds']['map'](_0x262144=>this['editor']['plugins']['get']('Users')['getUser'](_0x262144)),'fromVersion':_0x4e0455};_0x50e446===this['currentRevision']&&(_0x48ebc4['createdAt']=new Date(_0x50e41f['createdAt']['getTime']()+0xa)),_0x50e446['_update'](_0x48ebc4,!0x0),delete _0x48ebc4['authors'],_0x3c8dee['push'](_0x48ebc4);}}if(this['adapter']){for(const _0x16af4d of _0x3c8dee)this['_bufferUpdate'](_0x16af4d['id'],_0x16af4d,!0x0);this['sendBufferedUpdates']();}return _0x544547;}['addRevisionData'](_0x1058be){const _0x10e19c=this['repository']['createRevision'](_0x1058be);return this['adapter']&&_0x10e19c['on']('_update',(_0xe4b782,_0x49fbb6,_0x319496)=>{_0x319496||(this['_bufferUpdate'](_0x49fbb6['id'],_0x49fbb6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x10e19c,this['_findInsertionIndex'](_0x10e19c)),_0x10e19c;}async['getRevisionDocumentData'](_0x3b1339){return await this['_utils']['loadRevisionData'](_0x3b1339,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b1339);}async['getRevisionRootsAttributes'](_0x2eff3c){return await this['_utils']['loadRevisionData'](_0x2eff3c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2eff3c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4362a5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3489a9=0x0;_0x3489a9<_0x4362a5['length'];_0x3489a9++){const _0x24a6d1=_0x4362a5[_0x3489a9];let _0x25da84=!0x1;for(const _0x30e445 of Object['keys'](_0x24a6d1))void 0x0===_0x24a6d1[_0x30e445]?delete _0x24a6d1[_0x30e445]:'id'!==_0x30e445&&(_0x25da84=!0x0);_0x25da84||(_0x4362a5[_0x3489a9]=null);}if(_0x4362a5=_0x4362a5['filter'](_0xd54670=>null!==_0xd54670),!_0x4362a5['length'])return;for(let _0x42dde2=0x0;_0x42dde2<_0x4362a5['length'];_0x42dde2++){const _0x1091cd=_0x4362a5[_0x42dde2];void 0x0!==_0x1091cd['fromVersion']&&void 0x0===_0x1091cd['toVersion']&&(_0x1091cd['toVersion']=this['repository']['getRevision'](_0x1091cd['id'])['toVersion']),void 0x0!==_0x1091cd['toVersion']&&void 0x0===_0x1091cd['fromVersion']&&(_0x1091cd['fromVersion']=this['repository']['getRevision'](_0x1091cd['id'])['fromVersion']);}const _0x1fca3a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4362a5,_0x1fca3a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4c9dc0=>{if(_0x4c9dc0){for(const _0x2b93b9 of _0x4c9dc0)this['setRevisionData']({'id':_0x2b93b9['id'],'createdAt':_0x2b93b9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2fbb6e=null,from:_0xb8c144=null,to:_0x24a3c3=null}){_0xb8c144=null!==_0xb8c144?_0xb8c144:_0x2fbb6e['fromVersion'],_0x24a3c3=null!==_0x24a3c3?_0x24a3c3:_0x2fbb6e['toVersion'];const _0x4786a7=this['_revisionDataBuilder']['getData'](_0xb8c144,_0x24a3c3),_0x484ac9={'diffData':_0x4786a7['diffData'],'authorsIds':_0x4786a7['authorsIds'],'fromVersion':_0xb8c144,'toVersion':_0x24a3c3};if(!_0x2fbb6e||_0x24a3c3!==_0x2fbb6e['toVersion']){const _0x1dd267=_0x24a3c3-0x1,_0x53f422=this['_source']['history']['getOperation'](_0x1dd267);_0x484ac9['createdAt']=_0x53f422&&_0x53f422['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb8c144===this['_loadedStateData']['fromVersion']){for(const _0x15d5f0 of this['_loadedStateData']['authors'])_0x484ac9['authorsIds']['includes'](_0x15d5f0['id'])||_0x484ac9['authorsIds']['push'](_0x15d5f0['id']);}return _0x484ac9;}['_bufferUpdate'](_0x11d1e8,_0x356757,_0x405378){if(this['_bufferedUpdates']['has'](_0x11d1e8)){const _0x4f17e9=this['_bufferedUpdates']['get'](_0x11d1e8);_0x356757=_0x405378?{..._0x4f17e9,..._0x356757}:{..._0x356757,..._0x4f17e9};}this['_bufferedUpdates']['set'](_0x11d1e8,_0x356757);}['setRevisionData'](_0x1c21a1){const _0x11df90=this['repository']['getRevision'](_0x1c21a1['id']);if(_0x1c21a1['createdAt']&&(_0x1c21a1['createdAt']=new Date(_0x1c21a1['createdAt'])),_0x1c21a1['authorsIds']){const _0x5a28ed=this['editor']['plugins']['get']('Users');_0x1c21a1['authors']=_0x1c21a1['authorsIds']['map'](_0x25f1ee=>_0x5a28ed['getUser'](_0x25f1ee));}_0x11df90['_update'](_0x1c21a1,!0x0);}['_createInitialRevision'](_0x224521){const _0x388d2b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x388d2b)this['_initialRevisionId']=_0x388d2b['id'];else{const _0x4a3e13=!this['editor']['model']['document']['roots']['find'](_0x44f3b9=>this['editor']['model']['hasContent'](_0x44f3b9)),_0x7a257=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d8b9e=R(this['editor']['locale'],_0x4a3e13?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x224521,'to':_0x224521,'id':this['_initialRevisionId'],'name':_0x3d8b9e,'creatorId':_0x7a257});}}['_createCurrentRevision'](_0xb78c44){const _0x2f817e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2f817e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xb78c44,'to':_0xb78c44,'id':_0x2f817e,'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'](_0xd6d8d4,_0x16ceb0){let _0x24d975=this['editor']['config']['get']('initialData'),_0x1003c1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x24d975){_0x24d975={};for(const _0x38c1e8 of this['editor']['model']['document']['getRootNames']())_0x24d975[_0x38c1e8]='';}if('string'==typeof _0x24d975&&(_0x24d975={'main':_0x24d975}),void 0x0===_0x1003c1){_0x1003c1={};for(const _0x2fe104 of this['editor']['model']['document']['getRootNames']())_0x1003c1[_0x2fe104]={};}let _0x479c57=!0x1;const _0x2bb6ae=Object['keys'](_0x24d975),_0x209e2f=Object['keys'](_0xd6d8d4);for(const _0x30621c of _0x2bb6ae){if(_0x24d975[_0x30621c]!==_0xd6d8d4[_0x30621c]&&''!==_0x24d975[_0x30621c]['trim']()){_0x479c57=!0x0;break;}if(!_0x480b44(_0x1003c1[_0x30621c],_0x16ceb0[_0x30621c])&&Object['keys'](_0x1003c1[_0x30621c])['length']>0x0){_0x479c57=!0x0;break;}}_0x479c57||(_0x479c57=_0x209e2f['some'](_0xce8b91=>!this['editor']['model']['document']['getRoot'](_0xce8b91))),_0x479c57&&_0x4a2031('editor-initial-data-replaced-with-revision-data',{'editorData':_0x24d975,'editorRootsAttributes':_0x1003c1,'revisionData':_0xd6d8d4,'revisionRootsAttributes':_0x16ceb0}),this['editor']['config']['set']('initialData',_0xd6d8d4),this['editor']['config']['set']('rootsAttributes',_0x16ceb0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2cc7f3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2cc7f3['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1eea32){const _0x4ca3c6=this['repository']['getRevisions']();_0x4ca3c6['reverse']();let _0x132969=0x0;for(;_0x132969<_0x4ca3c6['length'];){const _0x4ae555=_0x4ca3c6[_0x132969];if(_0x4ae555===this['currentRevision']){_0x132969++;continue;}if(_0x4ae555['id']===this['_initialRevisionId'])break;const _0x4d4d21=_0x1eea32['toVersion']-_0x4ae555['toVersion']||_0x1eea32['fromVersion']-_0x4ae555['fromVersion'];if(_0x4d4d21>0x0)break;if(_0x4d4d21<0x0)_0x132969++;else{if(!_0x1eea32['creator']&&_0x4ae555['creator'])break;if(_0x4ae555['creator']||!_0x1eea32['creator']){if(_0x1eea32['createdAt']>_0x4ae555['createdAt'])break;_0x132969++;}else _0x132969++;}}return _0x132969;}['_getFromVersion'](_0x10a88e){const _0x40921a=this['repository']['getRevisions']();_0x40921a['reverse'](),_0x40921a['shift']();const _0x410c48=_0x40921a['find'](_0x18a5ea=>_0x18a5ea['toVersion']<=_0x10a88e)['toVersion'];return _0x410c48<this['_startingVersion']?this['_startingVersion']:_0x410c48;}['_makeRevision']({name:_0x58de99,from:_0x3e9a86,to:_0x3e8bc6,creatorId:_0x138c10,id:_0x3080ae}){const _0x5a63ac=this['buildRevisionData']({'from':_0x3e9a86,'to':_0x3e8bc6});_0x5a63ac['name']=_0x58de99,_0x5a63ac['creatorId']=_0x138c10,_0x5a63ac['id']=_0x3080ae;const _0x4c361d=this['addRevisionData'](_0x5a63ac);return this['adapter']&&this['_bufferUpdate'](_0x5a63ac['id'],_0x5a63ac,!0x0),_0x4c361d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x398086){this['editor']=_0x398086,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'](_0x2ee47c){this['source']=_0x2ee47c;const _0x6af5d1=new Map(),_0x23edb3=new Map(),_0x265968=this['editor']['model']['document']['roots']['map'](_0x178797=>_0x178797['rootName']);for(const _0x1be264 of _0x265968){const _0x575073=this['editor']['model']['document']['getRoot'](_0x1be264),_0x3e555c=x(_0x575073);_0x6af5d1['set'](_0x1be264,_0x3e555c),_0x23edb3['set'](_0x1be264,Object['fromEntries'](_0x575073['getAttributes']()));}const _0x79670b=Array['from'](this['editor']['model']['markers'])['map'](_0x336213=>[_0x336213['name'],_0x336213['getRange']()]),_0x163095=this['source']['version'];this['_saveMetaData'](_0x163095,_0x6af5d1,_0x79670b,_0x23edb3),this['_startingRevisionId']=this['_revisionId'];const _0x1c5c35=new Map(),_0x702ae2=new Map();for(const _0x104e55 of _0x265968){const _0x34ea4e=N(_0x104e55);_0x1c5c35['set'](_0x104e55,_0x34ea4e),_0x702ae2['set'](_0x104e55,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1c5c35,[],_0x702ae2);}['getData'](_0x2aceff,_0x4f79a3){if(this['_lastFrom']===_0x2aceff&&this['_lastTo']<=_0x4f79a3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4f79a3,!0x0);else{if(!this['_savedMetaData']['has'](_0x2aceff)){const _0x8debe1=this['_getPreviousFrom'](_0x2aceff);this['_calculateMetaData'](_0x8debe1,_0x2aceff,!0x1);}this['_calculateMetaData'](_0x2aceff,_0x4f79a3,!0x0);}return this['_lastFrom']=_0x2aceff,this['_lastTo']=_0x4f79a3,this['_getState']();}['loadState'](_0x48a148){const _0x1f6bd2=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x48a148['fromVersion'],this['_lastTo']=_0x48a148['toVersion'];for(const _0x4389fe in _0x48a148['diffData']){const _0x5ceb02=_0x48a148['diffData'][_0x4389fe]['attachChange'],_0x5aeea2=_0x5b681f(_0x48a148['diffData'][_0x4389fe]['attributesBefore'])||{},_0x450b20=_0x1f6bd2['_makeModelFromViewString'](_0x48a148['diffData'][_0x4389fe]['deletions']);_0x450b20['rootName']=_0x4389fe,_0x450b20['_isAttached']=!_0x5ceb02||!_0x5ceb02['isAttached'],_0x450b20['isAttached']=()=>_0x450b20['_isAttached'],this['_baseRoots']['set'](_0x4389fe,_0x450b20),this['_baseRootsAttributes']['set'](_0x4389fe,_0x5aeea2),_0x5ceb02&&this['_touchedRoots']['set'](_0x4389fe,_0x5ceb02);const _0x5ab1e9=this['_makeIdsRoot'](_0x450b20);this['_baseIdsRoots']['set'](_0x4389fe,_0x5ab1e9);for(const [_0x121396,_0x402ee0]of _0x450b20['markers']){if(!_0x121396['startsWith']('revision:'))continue;const _0x1dc4ff=_0x121396['split'](':')[0x2];for(const _0x184adb of _0x402ee0['getWalker']({'singleCharacters':!0x0})){const _0x3cc3b2=this['_getVidAttributeName'](_0x184adb),_0x1a38d7='elementEnd'==_0x184adb['type']?_0x184adb['previousPosition']['path']['slice'](0x0,-0x1):_0x184adb['previousPosition']['path'],_0x493a3d=_0x5ab1e9['getNodeByPath'](_0x1a38d7)['getAttribute'](_0x3cc3b2);this['_touched']['set'](_0x493a3d,{'userId':_0x1dc4ff});}}}this['_startingRevisionId']=this['_revisionId'];const _0x34a48a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b91e7=>!this['_touched']['has'](_0x2b91e7));let _0x185fbf=0x0;const _0x3dc342=new Map();for(const _0x2e52b7 in _0x48a148['diffData']){const _0x4f8c45=_0x48a148['diffData'][_0x2e52b7]['attachChange'],_0x22a2fd=_0x5b681f(_0x48a148['diffData'][_0x2e52b7]['attributesAfter'])||{},_0x3fec93=_0x1f6bd2['_makeModelFromViewString'](_0x48a148['diffData'][_0x2e52b7]['insertions']);_0x3fec93['rootName']=_0x2e52b7,_0x3fec93['_isAttached']=!_0x4f8c45||_0x4f8c45['isAttached'],_0x3fec93['isAttached']=()=>_0x3fec93['_isAttached'],this['_diffRoots']['set'](_0x2e52b7,_0x3fec93),this['_diffRootsAttributes']['set'](_0x2e52b7,_0x22a2fd);const _0x84f63d=this['_makeIdsRoot'](_0x3fec93,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2e52b7,_0x84f63d),_0x3dc342['set'](_0x2e52b7,_0x3fec93['isAttached']()?_0x22a2fd:{});for(const [_0x2446fe,_0x4453c3]of _0x3fec93['markers']){if(!_0x2446fe['startsWith']('revision:'))continue;const _0x29b69d=_0x2446fe['split'](':')[0x2];for(const _0x198040 of _0x4453c3['getWalker']({'singleCharacters':!0x0})){const _0x340026=this['_getVidAttributeName'](_0x198040),_0x37b62f=this['_revisionId']++,_0x32b2d3='elementEnd'==_0x198040['type']?_0x198040['previousPosition']['path']['slice'](0x0,-0x1):_0x198040['previousPosition']['path'];_0x84f63d['getNodeByPath'](_0x32b2d3)['_setAttribute'](_0x340026,_0x37b62f),this['_touched']['set'](_0x37b62f,{'userId':_0x29b69d});}}for(const _0x5c6371 of this['editor']['model']['createRangeIn'](_0x3fec93)['getWalker']({'singleCharacters':!0x0})){const _0x4f0264=this['_getVidAttributeName'](_0x5c6371),_0x3f904c='elementEnd'==_0x5c6371['type']?_0x5c6371['previousPosition']['path']['slice'](0x0,-0x1):_0x5c6371['previousPosition']['path'],_0x2ae154=_0x84f63d['getNodeByPath'](_0x3f904c);_0x2ae154['getAttribute'](_0x4f0264)>0x0||_0x2ae154['_setAttribute'](_0x4f0264,_0x34a48a[_0x185fbf++]);}for(const [_0x4d6b9a,_0xc2c570]of _0x3fec93['markers'])_0x4d6b9a['startsWith']('revision:')||this['_markers']['set'](_0x4d6b9a,_0xc2c570);}const _0x3f3284=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f3284),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f3284,0x1));const _0x33649f=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x33649f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33649f,0x1));const _0x2885ac=Array['from'](this['_diffRoots'])['map'](([_0xb97c24,_0xd2ecc0])=>[_0xb97c24,x(_0xd2ecc0)]);this['_saveMetaData'](this['_lastTo'],_0x2885ac,this['_markers'],_0x3dc342);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x339179,_0x53558a,_0x549384,_0x337b58){const _0x566aa4=new Map(_0x53558a),_0x21683f=new Map(_0x5b681f(_0x337b58)),_0x114f9f=new Map();for(const [_0x2176af,_0x110ec8]of _0x549384)_0x114f9f['set'](_0x2176af,{'start':_0x110ec8['start']['clone'](),'end':_0x110ec8['end']['clone'](),'rootName':_0x110ec8['root']['rootName']});this['_savedMetaData']['set'](_0x339179,{'roots':_0x566aa4,'markers':_0x114f9f,'rootsAttributes':_0x21683f});}['_removeMetaData'](_0x231800){this['_savedMetaData']['delete'](_0x231800);}['_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'](_0x5b3584,_0x1dfc3b=null){let _0x228c04=null;_0x5b3584['is']('documentFragment')||(_0x228c04=new _0x2d434f(_0x5b3584['name'],{'vid_start':null===_0x1dfc3b?this['_revisionId']++:_0x1dfc3b++}));const _0x28c262=[];for(const _0x4f7f9d of _0x5b3584['getChildren']())if(_0x4f7f9d['is']('element')){_0x28c262['push'](this['_makeIdsRoot'](_0x4f7f9d,_0x1dfc3b));const _0x185b27=_0x28c262[_0x28c262['length']-0x1];null!==_0x1dfc3b&&(_0x1dfc3b=_0x185b27['is']('element','$text')?_0x185b27['getAttribute']('vid')+0x1:_0x185b27['getAttribute']('vid_end')+0x1);}else{for(let _0x59a83a=0x0;_0x59a83a<_0x4f7f9d['offsetSize'];_0x59a83a++)_0x28c262['push'](new _0x2d434f('$text',{'vid':null===_0x1dfc3b?this['_revisionId']++:_0x1dfc3b++}));}if(_0x5b3584['is']('documentFragment')){const _0x4efc4c=N(_0x5b3584['rootName']);return _0x4efc4c['_insertChild'](0x0,_0x28c262),_0x4efc4c;}return _0x228c04['_setAttribute']('vid_end',null===_0x1dfc3b?this['_revisionId']++:_0x1dfc3b++),_0x228c04['_insertChild'](0x0,_0x28c262),_0x228c04;}['_calculateMetaData'](_0x4512b0,_0x509a84,_0x5052b5){this['_reset']();const {roots:_0x3d5d87,markers:_0x5e89c0,rootsAttributes:_0x5a05ef}=this['_savedMetaData']['get'](_0x4512b0);this['_baseRoots']=new Map(_0x3d5d87),this['_baseRootsAttributes']=new Map(_0x5b681f(_0x5a05ef));for(const [_0x2b2005,_0x5d687b]of this['_baseRoots'])if('$graveyard'!==_0x2b2005&&(this['_diffRoots']['set'](_0x2b2005,x(_0x5d687b)),this['_diffRootsAttributes']=new Map(_0x5b681f(_0x5a05ef)),_0x5052b5)){const _0x5d917c=this['_revisionId'];this['_idsRoots']['set'](_0x2b2005,this['_makeIdsRoot'](_0x5d687b)),this['_baseIdsRoots']['set'](_0x2b2005,this['_makeIdsRoot'](_0x5d687b,_0x5d917c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5052b5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x25c4d3,_0x50c5b2]of _0x5e89c0){const _0x571d25=this['_baseRoots']['get'](_0x50c5b2['rootName']),_0x4961c5=this['_diffRoots']['get'](_0x50c5b2['rootName']),_0x3b39e1=new _0x36900d(this['_fixPosition'](_0x50c5b2['start'],_0x571d25),this['_fixPosition'](_0x50c5b2['end'],_0x571d25)),_0x1beaa0=this['_fixRange'](_0x3b39e1,_0x4961c5);_0x571d25['markers']['set'](_0x25c4d3,_0x3b39e1),this['_markers']['set'](_0x25c4d3,_0x1beaa0);}this['_applyOperations'](_0x4512b0,_0x509a84,_0x5052b5);}['_applyOperations'](_0x3e7fc8,_0x50e2d1,_0x51aebd){for(const _0x27e454 of this['source']['getOperations'](_0x3e7fc8,_0x50e2d1))this['_handleOperation'](_0x27e454,_0x51aebd);for(const _0x3a3059 of this['_diffRoots']['values']())_0x3a3059['markers']['clear']();for(const [_0x4af7eb,_0x3297fe]of this['_markers']){this['_diffRoots']['get'](_0x3297fe['root']['rootName'])['markers']['set'](_0x4af7eb,_0x3297fe['clone']());}const _0xa7b6e6=new Map(),_0x36efef=new Map();for(const [_0x268f05,_0x346a03]of this['_diffRoots'])_0xa7b6e6['set'](_0x268f05,x(_0x346a03)),_0x36efef['set'](_0x268f05,this['_diffRootsAttributes']['get'](_0x268f05));this['_saveMetaData'](_0x50e2d1,_0xa7b6e6,this['_markers'],_0x36efef);}['_getPreviousFrom'](_0x57c575){const _0x28578f=Array['from'](this['_savedMetaData']['keys']());_0x28578f['sort']((_0x4fe56e,_0x3be56a)=>_0x4fe56e-_0x3be56a),_0x28578f['reverse']();for(const _0x19b969 of _0x28578f)if(_0x19b969<_0x57c575)return _0x19b969;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x113eb6,_0x3172fc){const _0x1c280d=Array['from'](_0x3172fc['markers'])['map'](([_0x3de21d,_0x525aad])=>[_0x3de21d,this['_fixRange'](_0x525aad,_0x113eb6)]);_0x113eb6['markers']=new Map(_0x1c280d);}['_transformMarkers'](_0x34e9f2){for(const _0x4e1cb2 of this['_markers']['values']()){const _0x37702a=_0x4e1cb2['getTransformedByOperation'](_0x34e9f2),_0xa1f188=_0x36900d['_createFromRanges'](_0x37702a);_0x4e1cb2['start']=_0xa1f188['start'],_0x4e1cb2['end']=_0xa1f188['end'];}}['_handleOperation'](_0x1c22cf,_0x2e8fee){if('addRoot'!=_0x1c22cf['type']&&'detachRoot'!=_0x1c22cf['type']){if('insert'==_0x1c22cf['type']){const _0x326ac3=_0x1c22cf['position']['root']['rootName'];this['_diffRoots']['has'](_0x326ac3)||(this['_diffRoots']['set'](_0x326ac3,N(_0x326ac3,!0x0)),this['_diffRootsAttributes']['set'](_0x326ac3,{}),_0x2e8fee&&this['_idsRoots']['set'](_0x326ac3,N(_0x326ac3,!0x0)));}else{if('addRootAttribute'==_0x1c22cf['type']||'removeRootAttribute'==_0x1c22cf['type']||'changeRootAttribute'==_0x1c22cf['type'])return void this['_handleRootAttributeOperation'](_0x1c22cf);'marker'==_0x1c22cf['type']&&this['_handleMarkerOperation'](_0x1c22cf);}if('marker'!==_0x1c22cf['type']){const _0xb099fd=this['_cloneOperation'](_0x1c22cf,this['_diffRoots']);_0xb099fd['_execute'](),this['_transformMarkers'](_0xb099fd);}if(_0x2e8fee)switch(_0x1c22cf['type']){case'insert':this['_handleInsertOperation'](_0x1c22cf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1c22cf);break;case'merge':this['_handleMergeOperation'](_0x1c22cf);break;case'split':this['_handleSplitOperation'](_0x1c22cf);}}else this['_handleRootOperation'](_0x1c22cf,_0x2e8fee);}['_cloneOperation'](_0x2bfc06,_0x39df45){const _0x19347b=_0x2bfc06['clone']();return _0x19347b['_authorId']=_0x2bfc06['_authorId'],this['_fixOperation'](_0x19347b,_0x39df45),_0x19347b;}['_getBaseVids'](_0x1dd0bd){return _0x1dd0bd['map'](_0x3162b5=>{const _0x5a6681=this['_getVidAttributeName'](_0x3162b5);return Number(_0x3162b5['item']['getAttribute'](_0x5a6681));});}['_generateTape'](_0x2556df,_0x53babd){if(_0x2556df['is']('element','$text'))_0x53babd['push']({'item':_0x2556df,'type':'text'});else{_0x2556df['is']('element')&&_0x53babd['push']({'item':_0x2556df,'type':'elementStart'});for(const _0x3c4139 of _0x2556df['getChildren']())this['_generateTape'](_0x3c4139,_0x53babd);_0x2556df['is']('element')&&_0x53babd['push']({'item':_0x2556df,'type':'elementEnd'});}return _0x53babd;}['_getState'](){const _0x3a5edb=new Map(this['_touched']),_0xaf5bd8=new Map(_0x3a5edb),_0x573f3b=new Map(),_0x190000={'insertions':{},'deletions':{}},_0x4ca124={'insertions':{},'deletions':{}},_0xd23e2c=new Map(),_0x2a99ca=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2a99ca['delete']('$graveyard');for(const _0x52b109 of _0x2a99ca){const _0x49b749=this['_diffRoots']['get'](_0x52b109)||N(_0x52b109,!0x1),_0x36593e=this['_baseRoots']['get'](_0x52b109)||N(_0x52b109,!0x1);_0x49b749['isAttached']()||_0x36593e['isAttached']()?(_0x190000['insertions'][_0x52b109]=x(_0x49b749),_0x190000['deletions'][_0x52b109]=x(_0x36593e),this['_copyMarkers'](_0x190000['deletions'][_0x52b109],_0x36593e),this['_copyMarkers'](_0x190000['insertions'][_0x52b109],_0x49b749),_0x4ca124['insertions'][_0x52b109]=this['_generateTape'](this['_idsRoots']['get'](_0x52b109),[]),_0x4ca124['deletions'][_0x52b109]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x52b109)||N(_0x52b109,!0x1),[])):_0x2a99ca['delete'](_0x52b109);}for(const _0x2e8eec of _0x2a99ca){const _0x249ce3=_0x4ca124['insertions'][_0x2e8eec];for(const _0x206f2c of _0x249ce3){const _0x40265e=this['_getVidAttributeName'](_0x206f2c),_0x356f72=_0x206f2c['item']['getAttribute'](_0x40265e);_0xaf5bd8['delete'](_0x356f72),_0x356f72>=this['_startingRevisionId']&&_0x573f3b['set'](_0x356f72,_0x3a5edb['get'](_0x356f72));}}for(const _0x51dcba of _0x2a99ca){const _0x11a62c=_0x4ca124['insertions'][_0x51dcba],_0x31f1fe=this['_getBaseVids'](_0x4ca124['deletions'][_0x51dcba]);let _0xf55e93=0x0;for(const _0x535bba of _0x11a62c){const _0x10f3a3=this['_getVidAttributeName'](_0x535bba),_0xfcf88f=_0x535bba['item']['getAttribute'](_0x10f3a3);if(!_0x573f3b['has'](_0xfcf88f)&&!_0xd23e2c['has'](_0xfcf88f)){if(_0xaf5bd8['has'](_0xfcf88f))_0xf55e93++;else{if(_0xfcf88f!=_0x31f1fe[_0xf55e93]){const _0x3fc56b=_0x3a5edb['get'](_0xfcf88f)||_0x3a5edb['get'](_0x31f1fe[_0xf55e93]);for(;_0xfcf88f!=_0x31f1fe[_0xf55e93];)_0xaf5bd8['has'](_0x31f1fe[_0xf55e93])||(_0xd23e2c['set'](_0x31f1fe[_0xf55e93],_0x3fc56b),_0x3a5edb['set'](_0x31f1fe[_0xf55e93],_0x3fc56b)),_0xf55e93++;}_0xf55e93++;}}}}for(const _0x52ffd7 of _0x2a99ca){const _0x1ee6f2=_0x4ca124['insertions'][_0x52ffd7];for(const _0xc413fe of _0x1ee6f2){const _0x264d16=this['_getVidAttributeName'](_0xc413fe),_0x30f923=_0xc413fe['item']['getAttribute'](_0x264d16);if(_0xd23e2c['has'](_0x30f923)){const _0x531a84=_0xd23e2c['get'](_0x30f923);_0xaf5bd8['has'](_0x30f923)||_0xaf5bd8['set'](_0x30f923,{..._0x531a84}),_0x573f3b['set'](_0x30f923,{..._0x531a84});}}}for(const _0x23e75c of _0xaf5bd8['keys']())_0x23e75c>=this['_startingRevisionId']&&_0xaf5bd8['delete'](_0x23e75c);const _0x167410=new Map();for(const _0x5632fa of _0x2a99ca){let _0x495fcf=_0x4ca124['insertions'][_0x5632fa];for(const _0x4b053f of _0x495fcf)if(_0x4b053f['item']['is']('element','tableCell')){const _0xb60b84=this['_getVidAttributeName'](_0x4b053f),_0x3ac093=_0x4b053f['item']['getAttribute'](_0xb60b84);if(_0x573f3b['has'](_0x3ac093)){const _0x155ab8=_0x4b053f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3b449f=_0x167410['get'](_0x155ab8)||new Set();_0x3b449f['add'](_0x573f3b['get'](_0x3ac093)['userId']),_0x167410['set'](_0x155ab8,_0x3b449f);}}_0x495fcf=_0x4ca124['deletions'][_0x5632fa];for(const _0x44d228 of _0x495fcf)if(_0x44d228['item']['is']('element','tableCell')){const _0x10375a=this['_getVidAttributeName'](_0x44d228),_0x3bdfdc=_0x44d228['item']['getAttribute'](_0x10375a);if(_0xaf5bd8['has'](_0x3bdfdc)){const _0x56f564=_0x44d228['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c87b5=_0x167410['get'](_0x56f564)||new Set();_0x4c87b5['add'](_0xaf5bd8['get'](_0x3bdfdc)['userId']),_0x167410['set'](_0x56f564,_0x4c87b5);}}for(const _0x2926dc of _0x167410['keys']())(_0x573f3b['has'](_0x2926dc)||_0xaf5bd8['has'](_0x2926dc))&&_0x167410['delete'](_0x2926dc);}for(const _0x4d1e4f of _0x2a99ca){const _0x1592d8=_0x4ca124['insertions'][_0x4d1e4f];let _0x34669c=null,_0x255313=null;for(const _0x142118 of _0x1592d8){const _0xffcd73=this['_getVidAttributeName'](_0x142118),_0x10eef1=_0x142118['item']['getAttribute'](_0xffcd73),_0x52ff4d=_0x167410['get'](_0x10eef1);_0x52ff4d&&'elementStart'==_0x142118['type']&&(_0x34669c=Array['from'](_0x52ff4d)[0x0],_0x255313=_0x142118['item']['getAttribute']('vid_end')),_0x34669c&&(_0xaf5bd8['set'](_0x10eef1,{'userId':_0x34669c}),_0x573f3b['set'](_0x10eef1,{'userId':_0x34669c})),_0x10eef1==_0x255313&&(_0x34669c=null,_0x255313=null);}}const _0x4ce27b={},_0x2e6a8b=new Set();for(const _0x2be6e4 of _0x2a99ca){const _0x5008d2=_0x190000['deletions'][_0x2be6e4],_0x1891ad=_0x190000['insertions'][_0x2be6e4];for(const {userId:_0x3322fd}of this['_touchedMarkers']['values']())null!==_0x3322fd&&_0x2e6a8b['add'](_0x3322fd);for(const {userId:_0x44d3b5}of this['_touchedRoots']['values']())null!==_0x44d3b5&&_0x2e6a8b['add'](_0x44d3b5);this['_markChanges'](_0x1891ad,_0x4ca124['insertions'][_0x2be6e4],_0x573f3b,'insertion',_0x2e6a8b),this['_markChanges'](_0x5008d2,_0x4ca124['deletions'][_0x2be6e4],_0xaf5bd8,'deletion',_0x2e6a8b),_0x4ce27b[_0x2be6e4]={'insertions':this['_prepareViewToSave'](_0x1891ad),'deletions':this['_prepareViewToSave'](_0x5008d2),'attachChange':this['_touchedRoots']['get'](_0x2be6e4)||null,'attributesBefore':_0x5b681f(this['_baseRootsAttributes']['get'](_0x2be6e4))||{},'attributesAfter':_0x5b681f(this['_diffRootsAttributes']['get'](_0x2be6e4))};}return{'diffData':_0x4ce27b,'authorsIds':Array['from'](_0x2e6a8b)};}['_processRootBeforeSave'](_0x4606b5){for(const [,_0x4302c0]of _0x4606b5['markers']){const _0x1803df=_0x4302c0['start']['getAncestors']()['filter'](_0x29cde3=>'tableCell'==_0x29cde3['name']);for(const _0x20e3d7 of _0x1803df)0x1==_0x20e3d7['childCount']&&_0x20e3d7['getChild'](0x0)['is']('element','paragraph')&&_0x20e3d7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1aee6f){this['_processRootBeforeSave'](_0x1aee6f);const _0xe46c50=this['editor']['data']['toView'](_0x1aee6f,{}),_0xc53440=Array['from'](_0xe46c50['getChildren']())['map'](_0x5ae36d=>this['_getViewJson'](_0x5ae36d));return JSON['stringify'](_0xc53440);}['_getViewJson'](_0x5c6bd9){if(_0x5c6bd9['is']('$text'))return _0x5c6bd9['data'];{const _0x4aabbb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xa30eb5=_0x5c6bd9,_0x1ecc83=this['editor']['data']['htmlProcessor']['domConverter'],_0x5b4b0a={'type':_0x4aabbb['_getTypeCharForViewElement'](_0xa30eb5),'name':_0xa30eb5['name'],'attributes':Array['from'](_0xa30eb5['getAttributes']()),'children':Array['from'](_0xa30eb5['getChildren']())['map'](_0x5f40b6=>this['_getViewJson'](_0x5f40b6))};if(_0x5c6bd9['is']('uiElement')&&'$comment'!=_0x5c6bd9['name']){const _0x1a67bf=_0x5c6bd9['render'](_0x1ecc83['domDocument'],_0x1ecc83);_0x5b4b0a['children']['push'](_0x1a67bf['outerHTML']);}else{if(_0x5c6bd9['is']('rawElement')){const _0x474420=_0x1ecc83['domDocument']['createElement'](_0xa30eb5['name']);_0x5c6bd9['render'](_0x474420,_0x1ecc83),_0x5b4b0a['children']['push'](_0x474420['innerHTML']);}}const _0x53888a=Array['from'](_0xa30eb5['getCustomProperties']());_0x53888a['length']>0x0&&(_0x5b4b0a['customProperties']=_0x53888a);const _0x497a93=_0xa30eb5['getFillerOffset']();return null!==_0x497a93&&(_0x5b4b0a['fillerOffset']=_0x497a93),_0x5b4b0a;}}['_markChanges'](_0x5d99b3,_0x16aa1e,_0x150194,_0x3e291b,_0x2c48c1){let _0x2324b6=null,_0x2014ed=null,_0x18aa43=0x0;const _0x3e9336=this['editor']['model'];for(let _0x37942b=0x0;_0x37942b<_0x16aa1e['length'];_0x37942b++){const _0x4a10d4=this['_getVidAttributeName'](_0x16aa1e[_0x37942b]),_0x139dda=_0x16aa1e[_0x37942b]['item']['getAttribute'](_0x4a10d4),_0x4c8528=_0x150194['get'](_0x139dda),_0x2b2794=_0x37942b==_0x16aa1e['length']-0x1;(!_0x2324b6&&_0x4c8528&&(_0x2324b6=_0x4c8528,_0x2014ed=_0x16aa1e[_0x37942b]),_0x2324b6&&(!_0x4c8528||_0x4c8528['userId']!=_0x2324b6['userId']))&&(_0x1342f2(_0x4c8528,P(_0x2014ed,_0x5d99b3,_0x3e9336),P(_0x16aa1e[_0x37942b],_0x5d99b3,_0x3e9336)),_0x2324b6=_0x4c8528||null,_0x2014ed=_0x4c8528?_0x16aa1e[_0x37942b]:null),_0x2324b6&&_0x2b2794&&_0x1342f2(_0x4c8528,P(_0x2014ed,_0x5d99b3,_0x3e9336),V(_0x16aa1e[_0x37942b],_0x5d99b3,_0x3e9336));}function _0x1342f2(_0x24fc9,_0x4a9c8f,_0x26ed09){const _0x42c347=_0x2324b6['userId'],_0x5aa4c8='revision:'+_0x3e291b+':'+_0x42c347+':'+_0x18aa43++,_0x440a55=_0x3e9336['createRange'](_0x4a9c8f,_0x26ed09);_0x5d99b3['markers']['set'](_0x5aa4c8,_0x440a55),null!==_0x42c347&&_0x2c48c1['add'](_0x42c347);}}['_getVidAttributeName'](_0x4ceb43){switch(_0x4ceb43['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3f72f3,_0xf4246a){_0x3f72f3['baseVersion']=null;for(const _0x555c08 in _0x3f72f3){const _0x4b0fe5=_0x3f72f3[_0x555c08];if(_0x4b0fe5 instanceof _0xb2d03b){const _0x46834b=_0xf4246a['get'](_0x4b0fe5['root']['rootName']);_0x3f72f3[_0x555c08]=this['_fixPosition'](_0x4b0fe5,_0x46834b);}if(_0x4b0fe5 instanceof _0x36900d){const _0x450f48=_0xf4246a['get'](_0x4b0fe5['root']['rootName']);_0x3f72f3[_0x555c08]=this['_fixRange'](_0x4b0fe5,_0x450f48);}'root'===_0x555c08&&(_0x3f72f3['root']=_0xf4246a['get'](_0x3f72f3['root']['rootName']));}}['_fixRange'](_0x5ef438,_0x584bff){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ef438['start'],_0x584bff),this['_fixPosition'](_0x5ef438['end'],_0x584bff));}['_fixPosition'](_0x2d41df,_0x2e4bfd){return this['editor']['model']['createPositionFromPath'](_0x2e4bfd,_0x2d41df['path'],_0x2d41df['stickiness']);}['_handleInsertOperation'](_0x2e0c4e){const _0x3c3e04=this['_idsRoots']['get'](_0x2e0c4e['position']['root']['rootName']),_0xcd525=this['_fixPosition'](_0x2e0c4e['position'],_0x3c3e04),_0x254589=null===_0x2e0c4e['_authorId']?null:_0x2e0c4e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52c21d=_0xcd525['parent'],_0x3220cc=this['_revisionId'],_0x52397a=[];for(const _0x2fe939 of _0x2e0c4e['nodes'])if(_0x2fe939['is']('element'))_0x52397a['push'](this['_makeIdsRoot'](_0x2fe939));else{for(let _0x584c2f=0x0;_0x584c2f<_0x2fe939['offsetSize'];_0x584c2f++)_0x52397a['push'](new _0x2d434f('$text',{'vid':this['_revisionId']++}));}const _0x39e231=this['_revisionId'];for(let _0x32c3ec=_0x3220cc;_0x32c3ec<_0x39e231;_0x32c3ec++)this['_touched']['set'](_0x32c3ec,{'userId':_0x254589});_0x52c21d['_insertChild'](_0xcd525['offset'],_0x52397a);}['_handleMoveOperation'](_0x35e5c9){(_0x35e5c9=this['_cloneOperation'](_0x35e5c9,this['_idsRoots']))['_execute']();const _0x5d8a31=null===_0x35e5c9['_authorId']?null:_0x35e5c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16fdbd=_0x35e5c9['getMovedRangeStart'](),_0xb39387=_0x16fdbd['parent'],_0x3646e7=_0x16fdbd['offset'];!function _0x1de5c0(_0xf8d650,_0x449cef,_0x3f2619,_0xeb60a5){for(let _0x939029=_0x3f2619;_0x939029<_0xeb60a5;_0x939029++){const _0xa71c4=_0x449cef['getChild'](_0x939029);_0xa71c4['is']('element','$text')?_0xf8d650['set'](_0xa71c4['getAttribute']('vid'),{'userId':_0x5d8a31}):(_0xf8d650['set'](_0xa71c4['getAttribute']('vid_start'),{'userId':_0x5d8a31}),_0x1de5c0(_0xf8d650,_0xa71c4,0x0,_0xa71c4['childCount']),_0xf8d650['set'](_0xa71c4['getAttribute']('vid_end'),{'userId':_0x5d8a31}));}}(this['_touched'],_0xb39387,_0x3646e7,_0x3646e7+_0x35e5c9['howMany']);}['_handleMergeOperation'](_0x34d5a2){const _0x55d9cc=null===(_0x34d5a2=this['_cloneOperation'](_0x34d5a2,this['_idsRoots']))['_authorId']?null:_0x34d5a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a5a5=_0x34d5a2['targetPosition']['parent'],_0x3e294c=_0x34d5a2['sourcePosition']['parent'],_0x54188a=_0x26a5a5['getAttribute']('vid_end'),_0x16b79d=_0x3e294c['getAttribute']('vid_start');_0x26a5a5['_setAttribute']('vid_end',_0x3e294c['getAttribute']('vid_end')),_0x3e294c['_setAttribute']('vid_end',_0x54188a),this['_touched']['set'](_0x16b79d,{'userId':_0x55d9cc}),this['_touched']['set'](_0x54188a,{'userId':_0x55d9cc}),_0x34d5a2['_execute']();}['_handleSplitOperation'](_0x154ee3){const _0x48b99a=null===(_0x154ee3=this['_cloneOperation'](_0x154ee3,this['_idsRoots']))['_authorId']?null:_0x154ee3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3bd953=_0x154ee3['graveyardPosition'],_0x15e17f=_0x154ee3['splitPosition']['parent'];_0x154ee3['_execute']();const _0x25831e=_0x15e17f['getAttribute']('vid_end'),_0x5778f6=_0x154ee3['insertionPosition']['nodeAfter'];if(_0x3bd953){const _0x556de3=_0x5778f6['getAttribute']('vid_end'),_0x25a7e1=_0x15e17f['getAttribute']('vid_end');_0x15e17f['_setAttribute']('vid_end',_0x556de3),_0x5778f6['_setAttribute']('vid_end',_0x25a7e1),this['_touched']['set'](_0x15e17f['getAttribute']('vid_end'),{'userId':_0x48b99a}),this['_touched']['set'](_0x5778f6['getAttribute']('vid_start'),{'userId':_0x48b99a});}else{const _0x420a68=this['_revisionId']++,_0x24284e=this['_revisionId']++;_0x15e17f['_setAttribute']('vid_end',_0x420a68),_0x5778f6['_setAttribute']('vid_start',_0x24284e),_0x5778f6['_setAttribute']('vid_end',_0x25831e),this['_touched']['set'](_0x420a68,{'userId':_0x48b99a}),this['_touched']['set'](_0x24284e,{'userId':_0x48b99a});}}['_handleMarkerOperation'](_0x19ae78){if(!_0x19ae78['affectsData'])return;const _0x118fdc=(_0x19ae78=this['_cloneOperation'](_0x19ae78,this['_diffRoots']))['oldRange']?_0x19ae78['oldRange']['root']:null,_0x214e49=_0x19ae78['newRange']?_0x19ae78['newRange']['root']:null;_0x118fdc&&this['_markers']['delete'](_0x19ae78['name']),_0x214e49&&this['_markers']['set'](_0x19ae78['name'],_0x19ae78['newRange']['clone']());const _0x194661=null===_0x19ae78['_authorId']?null:_0x19ae78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53cd72=_0x19ae78['name'];if(!this['_touchedMarkers']['has'](_0x53cd72))return void this['_touchedMarkers']['set'](_0x53cd72,{'range':_0x19ae78['oldRange'],'userId':_0x194661});const _0x4ba1c9=this['_touchedMarkers']['get'](_0x53cd72),_0x500ca5=_0x4ba1c9['range'],_0x31133e=_0x19ae78['newRange'];null==_0x500ca5&&null==_0x31133e||_0x500ca5&&_0x31133e&&_0x500ca5['isEqual'](_0x31133e)?this['_touchedMarkers']['delete'](_0x19ae78['name']):_0x4ba1c9['userId']=_0x194661;}['_handleRootOperation'](_0x214142,_0x27e56b){this['_diffRoots']['has'](_0x214142['rootName'])?this['_diffRoots']['get'](_0x214142['rootName'])['_isAttached']=_0x214142['isAdd']:(this['_diffRoots']['set'](_0x214142['rootName'],N(_0x214142['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x214142['rootName'],{}),_0x27e56b&&this['_idsRoots']['set'](_0x214142['rootName'],N(_0x214142['rootName'],!0x0)));const _0x147955=null===_0x214142['_authorId']?null:_0x214142['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x271d29=this['_touchedRoots']['get'](_0x214142['rootName']);_0x271d29&&_0x271d29['userId']===_0x147955?this['_touchedRoots']['delete'](_0x214142['rootName']):this['_touchedRoots']['set'](_0x214142['rootName'],{'userId':_0x147955,'isAttached':_0x214142['isAdd']});}['_handleRootAttributeOperation'](_0x23cb6f){const _0x381847=this['_diffRootsAttributes']['get'](_0x23cb6f['root']['rootName']);null===_0x23cb6f['newValue']?delete _0x381847[_0x23cb6f['key']]:_0x381847[_0x23cb6f['key']]=_0x23cb6f['newValue'];}}function x(_0x543637){const _0x57f2ce=N(_0x543637['rootName'],_0x543637['isAttached']());for(const _0x40338d of _0x543637['getChildren']()){const _0x1a4639=_0x40338d['_clone'](!0x0);_0x57f2ce['_appendChild'](_0x1a4639);}return _0x57f2ce;}function N(_0x5b7b17,_0x4b3e26=!0x0){const _0x4c8e4d=new _0x5dcd6c();return _0x4c8e4d['rootName']=_0x5b7b17,_0x4c8e4d['_isAttached']=_0x4b3e26,_0x4c8e4d['isAttached']=()=>_0x4c8e4d['_isAttached'],_0x4c8e4d;}function P(_0x4aacfd,_0x263e53,_0x40dee4){const _0x16d515='elementEnd'==_0x4aacfd['type']?_0x40dee4['createPositionAt'](_0x4aacfd['item'],'end'):_0x40dee4['createPositionBefore'](_0x4aacfd['item']);return _0x40dee4['createPositionFromPath'](_0x263e53,_0x16d515['path'],_0x16d515['stickiness']);}function V(_0x439dac,_0x52bd5c,_0x365f67){const _0x3cfe79='elementStart'==_0x439dac['type']?_0x365f67['createPositionAt'](_0x439dac['item'],0x0):_0x365f67['createPositionAfter'](_0x439dac['item']);return _0x365f67['createPositionFromPath'](_0x52bd5c,_0x3cfe79['path'],_0x3cfe79['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x4f3d81(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x540e15){super(),this['id']=_0x540e15['id']||_0x1c1c29(),this['author']=_0x540e15['author'],this['type']=_0x540e15['type'],this['data']=_0x540e15['data']||{},this['rootName']=_0x540e15['rootName'],this['set']('createdAt',_0x540e15['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5cbf1b,_0x407025){this['newRevisionId']=_0x5cbf1b,this['oldRevisionId']=_0x407025,this['changes']=new _0x485594();}['_setChanges'](_0xbfda30){for(const _0x44b51b of _0xbfda30)this['changes']['add'](_0x44b51b);}}class l extends _0x3daf77{['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[_0x3c3d4d,_0x159e16,S,$];}constructor(_0x3b3ca7){super(_0x3b3ca7),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',(_0x188b4c,_0x3f0d52,_0xfd941c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1c2761=>{for(const _0x57fd3f of this['editor']['editing']['view']['document']['roots'])_0xfd941c?_0x1c2761['removeClass']('ck-editor__editable__overlay',_0x57fd3f):_0x1c2761['addClass']('ck-editor__editable__overlay',_0x57fd3f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x595752=>null!==_0x595752),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2bf6b8,_0x199407,_0x22df79)=>_0x2bf6b8&&_0x22df79?_0x199407['changes']['getIndex'](_0x22df79):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2c25b4,_0xd60ea0)=>_0x2c25b4?_0xd60ea0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x159e16);}['init'](){const _0xcc56b5=this['editor'],_0x1c1697=new rt(_0xcc56b5,{'direction':'backward'}),_0xa38a79=new rt(_0xcc56b5,{'direction':'forward'});(_0xcc56b5['commands']['add']('showPreviousChange',_0x1c1697),_0xcc56b5['commands']['add']('showNextChange',_0xa38a79),_0xcc56b5['commands']['add']('restoreRevision',new nt(_0xcc56b5)),this['on']('change:numberOfChanges',()=>{_0x1c1697['refresh'](),_0xa38a79['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xcc56b5['enableReadOnlyMode']('revision-viewer'),_0xcc56b5['plugins']['has']('WidgetToolbarRepository'))&&_0xcc56b5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x38c48b){return await this['_utils']['loadRevisionData'](_0x38c48b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x38c48b);}async['getRevisionRootsAttributes'](_0x2b5a23){return await this['_utils']['loadRevisionData'](_0x2b5a23,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2b5a23);}async['compare'](_0x3b6133,_0x4b7278,_0x3580ed=!0x1){if(!this['isEnabled'])return;const _0x22f309=this['diff'],_0x28b46e=this['repository'],_0x32da5d='string'==typeof _0x3b6133?_0x28b46e['getRevision'](_0x3b6133):_0x3b6133,_0x222aa7='string'==typeof _0x4b7278?_0x28b46e['getRevision'](_0x4b7278):_0x4b7278,_0xa6b9f2=_0x32da5d['id'],_0x588867=_0x222aa7?_0x222aa7['id']:null;if(!_0x3580ed&&this['diff']&&this['diff']['newRevisionId']===_0xa6b9f2&&this['diff']['oldRevisionId']===_0x588867)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xa6b9f2,_0x588867);const _0x2fd661=this['_getRevisionsRange'](_0x32da5d,_0x222aa7,!0x0)['map'](_0x4c4309=>this['_utils']['loadRevisionData'](_0x4c4309,this['adapter']));return _0x2fd661['push'](new Promise(_0x3f19d4=>{setTimeout(_0x3f19d4,0x14);})),Promise['all'](_0x2fd661)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf8dc18=this['_getDiff'](_0xa6b9f2,_0x588867);for(const _0x501fb7 of _0xf8dc18['changes'])this['_changeIdToChange']['set'](_0x501fb7['id'],_0x501fb7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa96d08=>{for(const _0x5ba827 of this['editor']['model']['document']['getRootNames']())_0xa96d08['detachRoot'](_0x5ba827);for(const _0x1a5aab of Object['keys'](_0xf8dc18['model'])){const _0x351766=_0xa96d08['addRoot'](_0x1a5aab);for(const _0x3fae86 of Object['keys'](_0xf8dc18['attributes'][_0x1a5aab]))_0xa96d08['setAttribute'](_0x3fae86,_0xf8dc18['attributes'][_0x1a5aab][_0x3fae86],_0x351766);_0xa96d08['insert'](_0xf8dc18['model'][_0x1a5aab],_0x351766,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf8dc18['changes'])),this['isReady']=!0x0;})['catch'](_0x3e4a08=>{console['error'](_0x3e4a08),this['_cleanUp'](),_0x22f309&&(this['diff']=_0x22f309),this['isReady']=!0x0;});}['addRevisionData'](_0x36a8e3,_0x2591b4){const _0x175d08=this['repository']['createRevision'](_0x36a8e3);return _0x175d08['on']('_update',(_0x53c3cd,_0x483a2c,_0x4f5209)=>_0x2591b4(_0x483a2c,_0x4f5209,_0x175d08)),this['repository']['addRevision'](_0x175d08),_0x175d08;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10f732=>{for(const _0x2db058 of this['editor']['model']['document']['getRootNames']())_0x10f732['detachRoot'](_0x2db058);});}['_sortAndFilterDiffChanges'](_0x7af0ff){const _0x41b6c7=[],_0x3fc376=new Map();for(const _0x3f51fb of this['editor']['model']['document']['getRootNames']()){const _0x4dbf0f=this['editor']['editing']['view']['getDomRoot'](_0x3f51fb);if(!_0x4dbf0f)continue;const _0x48719a=_0x4dbf0f['getClientRects']()['item'](0x0);_0x48719a&&(_0x41b6c7['push'](_0x3f51fb),_0x3fc376['set'](_0x3f51fb,_0x48719a));}return _0x41b6c7['sort']((_0x5d98b0,_0x35f50d)=>{const _0x845bb=_0x3fc376['get'](_0x5d98b0),_0x30b178=_0x3fc376['get'](_0x35f50d);return _0x845bb['y']-_0x30b178['y']||_0x845bb['x']-_0x30b178['x'];}),(_0x7af0ff=_0x7af0ff['filter'](_0x5e2d31=>_0x41b6c7['includes'](_0x5e2d31['rootName'])))['sort']((_0x470dcb,_0xef5bfe)=>_0x41b6c7['indexOf'](_0x470dcb['rootName'])-_0x41b6c7['indexOf'](_0xef5bfe['rootName'])),_0x7af0ff;}['_makeTape'](_0x577fe1){const _0x448536=Array['from'](_0x577fe1['markers'])['filter'](([_0x723b6f,_0x253cf9])=>_0x723b6f['startsWith']('revision:')&&!_0x253cf9['isCollapsed']),_0xae208b=Array['from'](this['editor']['model']['createRangeIn'](_0x577fe1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x448536['length'])for(const _0x5ec4ad of _0xae208b){const [_0x19b819,_0x47f52e]=_0x448536[0x0],[,_0x5b3626,_0x1559af]=_0x19b819['split'](':');if(_0x47f52e['end']['isEqual'](_0x5ec4ad['nextPosition'])&&_0x448536['shift'](),(_0x5ec4ad['previousPosition']['isEqual'](_0x47f52e['start'])||_0x5ec4ad['previousPosition']['isAfter'](_0x47f52e['start']))&&('insertion'==_0x5b3626?_0x5ec4ad['isAdded']={'userId':_0x1559af}:'deletion'==_0x5b3626&&(_0x5ec4ad['isRemoved']={'userId':_0x1559af})),0x0==_0x448536['length'])break;}return _0xae208b;}['_refreshStartEndIndex'](_0x2d3a69){const _0x472eda=new Map();for(let _0x44a923=0x0;_0x44a923<_0x2d3a69['length'];_0x44a923++)'text'===_0x2d3a69[_0x44a923]['type']?(_0x2d3a69[_0x44a923]['item']['startIndex']=_0x44a923,_0x2d3a69[_0x44a923]['item']['endIndex']=_0x44a923):('elementStart'===_0x2d3a69[_0x44a923]['type']?_0x2d3a69[_0x44a923]['item']['startIndex']=_0x44a923:'elementEnd'===_0x2d3a69[_0x44a923]['type']&&(_0x2d3a69[_0x44a923]['item']['endIndex']=_0x44a923),_0x472eda['set'](_0x2d3a69[_0x44a923]['id'],_0x44a923));for(const _0x5ce7e3 of _0x472eda['values']())'elementStart'===_0x2d3a69[_0x5ce7e3]['type']?_0x2d3a69[_0x5ce7e3]['item']['endIndex']=_0x472eda['get'](_0x2d3a69[_0x5ce7e3]['pairId']):'elementEnd'===_0x2d3a69[_0x5ce7e3]['type']&&(_0x2d3a69[_0x5ce7e3]['item']['startIndex']=_0x472eda['get'](_0x2d3a69[_0x5ce7e3]['pairId']));}['_processTape'](_0x1f4232){for(let _0x5d8f63=0x0;_0x5d8f63<_0x1f4232['length'];_0x5d8f63++){if('elementStart'===_0x1f4232[_0x5d8f63]['type'])_0x1f4232[_0x5d8f63]['item']['startIndex']=_0x5d8f63;else{if('elementEnd'===_0x1f4232[_0x5d8f63]['type']){_0x1f4232[_0x5d8f63]['item']['endIndex']=_0x5d8f63;const _0x1c2ad1=_0x1f4232[_0x5d8f63]['item']['startIndex'];_0x1f4232[_0x1c2ad1]['pairId']=_0x1f4232[_0x5d8f63]['id'],_0x1f4232[_0x5d8f63]['pairId']=_0x1f4232[_0x1c2ad1]['id'];}else _0x1f4232[_0x5d8f63]['item']['startIndex']=_0x5d8f63,_0x1f4232[_0x5d8f63]['item']['endIndex']=_0x5d8f63,_0x1f4232[_0x5d8f63]['pairId']=null;}_0x1f4232[_0x5d8f63]['markersStart']||(_0x1f4232[_0x5d8f63]['markersStart']=[],_0x1f4232[_0x5d8f63]['markersEnd']=[]);}}['_markInsertions'](_0x309a2e,_0x152432){const _0x2c1d87=_0x309a2e['filter'](_0x222d60=>!_0x222d60['isAdded']);for(let _0x33e4fd=0x0;_0x33e4fd<_0x152432['length'];_0x33e4fd++)_0x152432[_0x33e4fd]['isAdded']&&(_0x2c1d87[_0x33e4fd]['isAdded']=_0x152432[_0x33e4fd]['isAdded']);}['_getDiff'](_0x135b64,_0x4eca94=null){const _0x13dcf2=this['repository']['getRevision'](_0x135b64),_0x5b2928=_0x4eca94?this['repository']['getRevision'](_0x4eca94):null,_0x2f0d95=this['_getRevisionsRange'](_0x13dcf2,_0x5b2928),_0x42e95e=_0x2f0d95[_0x2f0d95['length']-0x1],_0x35549b=new Map(),_0x4c93df={'model':{},'attributes':{},'changes':[]},_0x4af802=new Set(),_0x45b736=new Map();for(let _0x2ccfd5=_0x2f0d95['length']-0x1;_0x2ccfd5>=0x0;_0x2ccfd5--){const _0x139b0c=_0x2f0d95[_0x2ccfd5];for(const _0x14cc0c of Object['keys'](_0x139b0c['diffData']))if(_0x139b0c['diffData'][_0x14cc0c]['attachChange']){const _0x2e8266=_0x139b0c['diffData'][_0x14cc0c]['attachChange'];_0x2e8266['isAttached']?(_0x4af802['add'](_0x14cc0c),_0x45b736['has'](_0x14cc0c)&&_0x45b736['get'](_0x14cc0c)['userId']==_0x2e8266['userId']?_0x45b736['delete'](_0x14cc0c):_0x45b736['set'](_0x14cc0c,_0x2e8266)):_0x45b736['has'](_0x14cc0c)?(_0x4af802['delete'](_0x14cc0c),_0x45b736['delete'](_0x14cc0c)):(_0x4af802['add'](_0x14cc0c),_0x45b736['set'](_0x14cc0c,_0x2e8266));}else _0x4af802['add'](_0x14cc0c);}for(const _0x271d81 of _0x4af802){const _0x157c21=_0x45b736['has'](_0x271d81)&&!_0x45b736['get'](_0x271d81)['isAttached'];let _0x2a7537=_0x157c21?_0x2f0d95['length']-0x1:0x0;const _0x51faaf=_0x157c21?-0x1:0x1;for(;_0x2f0d95[_0x2a7537];){const _0xaa814f=_0x2f0d95[_0x2a7537];if(_0xaa814f['diffData'][_0x271d81]){const _0x3a914f=_0x157c21?_0xaa814f['diffData'][_0x271d81]['attributesBefore']:_0xaa814f['diffData'][_0x271d81]['attributesAfter'];_0x4c93df['attributes'][_0x271d81]=_0x3a914f?_0x5b681f(_0x3a914f):{};break;}_0x2a7537+=_0x51faaf;}}for(const _0x2cadbc of _0x2f0d95){_0x2cadbc['model']={};for(const _0x317c8f of _0x2cadbc['authors'])_0x35549b['set'](_0x317c8f['id'],_0x317c8f);for(const _0x3d1260 of _0x4af802){const _0x21eb05=_0x2cadbc['diffData'][_0x3d1260]?_0x2cadbc['diffData'][_0x3d1260]['insertions']:'[]',_0x1df506=_0x2cadbc['diffData'][_0x3d1260]?_0x2cadbc['diffData'][_0x3d1260]['deletions']:'[]';_0x2cadbc['model'][_0x3d1260]={'insertions':this['_utils']['_makeModelFromViewString'](_0x21eb05),'deletions':this['_utils']['_makeModelFromViewString'](_0x1df506)};}}for(const _0x20360c of _0x4af802){let _0x5ebc0e=null,_0x314ba5=0x0;const _0x13837f=new Map(Array['from'](_0x13dcf2['model'][_0x20360c]['insertions']['markers'])['filter'](([_0xf16b8c])=>!_0xf16b8c['startsWith']('revision:')));let _0xa8b1b4=0x0;for(const _0xb917b9 of _0x2f0d95){const _0x93fc42=this['_makeTape'](_0xb917b9['model'][_0x20360c]['insertions']);_0xb917b9==_0x13dcf2?(_0x5ebc0e=_0x93fc42,_0x314ba5=_0x5ebc0e['length'],_0x5ebc0e['forEach'](_0x7b88c7=>{_0x7b88c7['id']=_0xa8b1b4++;}),this['_processTape'](_0x5ebc0e)):this['_markInsertions'](_0x5ebc0e,_0x93fc42);const _0x3e7557=_0x5ebc0e['filter'](_0x7c974f=>!_0x7c974f['isAdded'])['map'](_0x27da30=>_0x27da30['id']);let _0x4e402c=0x0;const _0xe22389=this['_makeTape'](_0xb917b9['model'][_0x20360c]['deletions']);_0xe22389['forEach'](_0x557b09=>{_0x557b09['isRemoved']?_0x557b09['id']=_0x314ba5++:_0x557b09['id']=_0x3e7557[_0x4e402c++];}),this['_processTape'](_0xe22389),this['_setDistance'](_0x5ebc0e,'isAdded'),this['_setDistance'](_0xe22389,'isRemoved'),_0xb917b9==_0x13dcf2&&this['_markMarkers'](_0x5ebc0e,_0x13837f),_0x5ebc0e=this['_joinTapes'](_0x5ebc0e,_0xe22389),this['_refreshStartEndIndex'](_0x5ebc0e),this['_setDistance'](_0x5ebc0e,'isRemoved');}_0x5ebc0e=_0x5ebc0e['filter'](_0x540d2e=>!(_0x540d2e['isAdded']&&_0x540d2e['isRemoved']));const _0x262094=new Map(_0x42e95e['model'][_0x20360c]['deletions']['markers']),_0x3aecbc=new Set(_0x13837f['keys']());for(const _0x28ceb4 of _0x262094['keys']())_0x3aecbc['delete'](_0x28ceb4);this['_markSuggestions'](_0x5ebc0e,_0x3aecbc),this['_fixObsoleteTags'](_0x5ebc0e),_0x5ebc0e=this['_removeMissingPairs'](_0x5ebc0e),_0x5ebc0e=this['_markMismatchedRemovedTags'](_0x5ebc0e),_0x5ebc0e=this['_removeUnsupportedChanges'](_0x5ebc0e);const {root:_0x2fe219,changes:_0x175e6c}=this['_makeModelFromTape'](_0x5ebc0e,_0x35549b,_0x20360c);_0x4c93df['model'][_0x20360c]=_0x2fe219;const _0x278063=_0x45b736['get'](_0x20360c);if(_0x278063){const _0xab8410=_0x35549b['get'](_0x278063['userId']),_0x35d42d=new G({'author':_0xab8410,'type':_0x278063['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x20360c});_0x175e6c['unshift'](_0x35d42d),_0x4c93df['attributes'][_0x20360c]['revisionHistoryAttachChange']=_0x35d42d['id'];}_0x4c93df['changes']=_0x4c93df['changes']['concat'](_0x175e6c);}return _0x4c93df;}['_markMarkers'](_0x182688,_0x46f9a2){for(let _0x56e742=0x0;_0x56e742<_0x182688['length'];_0x56e742++)for(const [_0x883442,_0x1de724]of _0x46f9a2)!_0x1de724['isCollapsed']&&_0x1de724['start']['isEqual'](_0x182688[_0x56e742]['previousPosition'])&&_0x182688[_0x56e742]['markersStart']['push'](_0x883442),_0x1de724['end']['isEqual'](_0x182688[_0x56e742]['nextPosition'])&&_0x182688[_0x56e742]['markersEnd']['push'](_0x883442);}['_joinTapes'](_0xebc5b4,_0x5b68f1){let _0x330328=[],_0x8c6253=0x0,_0x24422d=0x0;for(;_0x8c6253<_0xebc5b4['length']||_0x24422d<_0x5b68f1['length'];){const _0x24911a=_0xebc5b4[_0x8c6253]||{},_0x4ca9cd=_0x5b68f1[_0x24422d]||{};if(_0x24911a['id']==_0x4ca9cd['id'])_0x8c6253++,_0x24422d++,_0x330328['push'](_0x24911a);else{if(_0x4ca9cd['isRemoved']&&_0x24911a['isAdded']){const {commonTape:_0x24735e,iEnd:_0x3d15c1,jEnd:_0x1bf24f}=this['_threeWayMerge'](_0xebc5b4,_0x8c6253,_0x5b68f1,_0x24422d);_0x330328=_0x330328['concat'](_0x24735e),_0x8c6253=_0x3d15c1,_0x24422d=_0x1bf24f;}else _0x4ca9cd['isRemoved']?(_0x24422d++,_0x330328['push'](_0x4ca9cd)):(_0x8c6253++,_0x330328['push'](_0x24911a));}}return _0x330328;}['_markSuggestions'](_0x1f308f,_0x414eed){const _0x763ec6=[];for(let _0xdbb457=0x0;_0xdbb457<_0x1f308f['length'];_0xdbb457++){for(let _0x16b412=0x0;_0x16b412<_0x1f308f[_0xdbb457]['markersStart']['length'];_0x16b412++){const _0x35d605=_0x1f308f[_0xdbb457]['markersStart'][_0x16b412];if(!_0x414eed['has'](_0x35d605))continue;const {group:_0x387e03,type:_0x114d45,authorId:_0x3afd8e}=_0x4a8dbc(_0x35d605);'revision-suggestion'!=_0x387e03||'insertion'!=_0x114d45&&'deletion'!=_0x114d45||(_0x763ec6['unshift']({'type':_0x114d45,'name':_0x35d605,'userId':_0x3afd8e}),_0x1f308f[_0xdbb457]['markersStart']['splice'](_0x16b412,0x1),_0x16b412--);}_0x7f92c8(_0x1f308f[_0xdbb457]);for(let _0x3ba71a=0x0;_0x3ba71a<_0x1f308f[_0xdbb457]['markersEnd']['length'];_0x3ba71a++){const _0x2d180f=_0x1f308f[_0xdbb457]['markersEnd'][_0x3ba71a];if(!_0x414eed['has'](_0x2d180f))continue;const {group:_0x1dc8a2,type:_0xa5c480}=_0x4a8dbc(_0x2d180f);if('revision-suggestion'!=_0x1dc8a2||'insertion'!=_0xa5c480&&'deletion'!=_0xa5c480)continue;_0x1f308f[_0xdbb457]['markersEnd']['splice'](_0x3ba71a,0x1),_0x3ba71a--;const _0x55ad6b=_0x763ec6['findIndex'](_0x4ec709=>_0x4ec709['name']==_0x2d180f);_0x55ad6b>-0x1&&_0x763ec6['splice'](_0x55ad6b,0x1);}}function _0x4a8dbc(_0x4f4be0){const _0x37716c=_0x4f4be0['split'](':');return{'group':_0x37716c[0x0],'type':_0x37716c[0x1],'subType':_0x37716c['length']>=0x5?_0x37716c[0x2]:null,'id':_0x37716c['length']<0x5?_0x37716c[0x2]:_0x37716c[0x3],'authorId':_0x37716c['length']<0x5?_0x37716c[0x3]:_0x37716c[0x4],'markerCount':0x6==_0x37716c['length']?_0x37716c[0x5]:null};}function _0x7f92c8(_0x544a9f){for(let _0x5a8552=0x0;_0x5a8552<_0x763ec6['length'];_0x5a8552++){if(_0x544a9f['isAdded']&&'insertion'==_0x763ec6[_0x5a8552]['type']&&_0x544a9f['isAdded']['userId']==_0x763ec6[_0x5a8552]['userId'])return _0x544a9f['isAddSuggestion']=_0x763ec6[_0x5a8552],void delete _0x544a9f['isAdded'];if(!_0x544a9f['isAdded']&&!_0x544a9f['isRemoved']&&'deletion'==_0x763ec6[_0x5a8552]['type'])return void(_0x544a9f['isRemoveSuggestion']=_0x763ec6[_0x5a8552]);}}}['_setDistance'](_0x35e359,_0x4c1733){let _0x2a906b=0x0,_0x20064f=!0x1;const _0x5af1e5=new Map();for(const _0x5b5125 of _0x35e359)_0x5b5125[_0x4c1733]?_0x20064f&&(_0x2a906b++,_0x20064f=!0x1):(_0x2a906b++,_0x20064f=!0x0),_0x5af1e5['set'](_0x5b5125['id'],_0x2a906b);for(let _0x153e40=0x0;_0x153e40<_0x35e359['length'];_0x153e40++){if('isRemoved'==_0x4c1733&&_0x35e359[_0x153e40]['isAdded']||'isAdded'==_0x4c1733&&_0x35e359[_0x153e40]['isRemoved'])continue;if('text'==_0x35e359[_0x153e40]['type']){_0x35e359[_0x153e40]['distance']=0x0;continue;}const _0xdc6bc0=_0x5af1e5['get'](_0x35e359[_0x153e40]['pairId']),_0x25d17b=_0x5af1e5['get'](_0x35e359[_0x153e40]['id']);_0x35e359[_0x153e40]['distance']=_0xdc6bc0-_0x25d17b;}}['_getRevisionsRange'](_0x30efa8,_0x6e4e21,_0x34a36a=!0x1){const _0x1b998d=[];let _0xfcda71=this['repository']['getIndex'](_0x30efa8),_0x3dffea=this['repository']['getIndex'](_0x6e4e21);for(-0x1==_0x3dffea&&(_0x3dffea=this['repository']['_revisions']['length'],_0x34a36a=!0x1);_0xfcda71<_0x3dffea;)_0x1b998d['push'](this['repository']['getRevision'](_0xfcda71)),_0xfcda71++;return _0x34a36a&&_0x1b998d['push'](this['repository']['getRevision'](_0xfcda71)),_0x1b998d;}['_threeWayMerge'](_0x23f1e5,_0x3c3b2c,_0x5bcdfd,_0xfae694){const _0x7271e9=this['editor']['model']['schema'];let _0x397d38=_0x3c3b2c;for(;_0x23f1e5[_0x397d38]&&_0x23f1e5[_0x397d38]['isAdded'];)_0x397d38++;let _0x342c43=_0xfae694;for(;_0x5bcdfd[_0x342c43]&&_0x5bcdfd[_0x342c43]['isRemoved'];)_0x342c43++;_0x2b9c10(_0x23f1e5,_0x3c3b2c,_0x397d38),_0x2b9c10(_0x5bcdfd,_0xfae694,_0x342c43);const _0xae6e67=_0x5bcdfd['slice'](_0xfae694,_0x342c43)['concat'](_0x23f1e5['slice'](_0x3c3b2c,_0x397d38));return _0xae6e67['sort']((_0x38d59f,_0x40078b)=>_0x38d59f['side']!=_0x40078b['side']?_0x38d59f['side']-_0x40078b['side']:_0x38d59f['level']!=_0x40078b['level']?_0x38d59f['level']-_0x40078b['level']:_0x38d59f['distance']!=_0x40078b['distance']?_0x40078b['distance']-_0x38d59f['distance']:!!_0x38d59f['isAdded']!=!!_0x40078b['isAdded']?-0x1==_0x38d59f['side']||0x0==_0x38d59f['side']?_0x38d59f['isAdded']?-0x1:0x1:_0x38d59f['isAdded']?0x1:-0x1:_0x38d59f['index']-_0x40078b['index']),{'commonTape':_0xae6e67,'iEnd':_0x397d38,'jEnd':_0x342c43};function _0x2b9c10(_0x47996b,_0x205bc0,_0xf5ec9){let _0x844fca=-0x1,_0x118f7b=Number['POSITIVE_INFINITY'],_0x311188=!0x0;for(let _0x55dd49=_0x205bc0;_0x55dd49<_0xf5ec9;_0x55dd49++)if(_0x7271e9['isInline'](_0x47996b[_0x55dd49]['item'])||(_0x311188=!0x1),_0x47996b[_0x55dd49]['item']['startIndex']<_0x205bc0&&(_0x844fca=_0x55dd49),_0x47996b[_0x55dd49]['item']['endIndex']>=_0xf5ec9){_0x118f7b=_0x55dd49;break;}_0x311188&&(_0x844fca=_0xf5ec9-0x1);for(let _0x4e2307=_0x205bc0;_0x4e2307<_0xf5ec9;_0x4e2307++)_0x47996b[_0x4e2307]['side']=_0x4e2307<=_0x844fca?-0x1:_0x4e2307<_0x118f7b?0x0:0x1,_0x47996b[_0x4e2307]['index']=_0x4e2307;let _0x5c0fa0=0x0;for(let _0x3c6214=_0x205bc0;_0x3c6214<=_0x844fca;_0x3c6214++)0x0==_0x47996b[_0x3c6214]['distance']?_0x47996b[_0x3c6214]['level']=_0x5c0fa0:(_0x5c0fa0++,_0x47996b[_0x3c6214]['level']=_0x5c0fa0,_0x5c0fa0++);for(let _0xb3625a=_0x205bc0;_0xb3625a<_0xf5ec9;_0xb3625a++)0x0==_0x47996b[_0xb3625a]['side']&&(_0x47996b[_0xb3625a]['level']=_0x5c0fa0);_0x5c0fa0=0x0;for(let _0xfe5c48=_0xf5ec9-0x1;_0xfe5c48>=_0x118f7b;_0xfe5c48--)0x0==_0x47996b[_0xfe5c48]['distance']?_0x47996b[_0xfe5c48]['level']=_0x5c0fa0:(_0x5c0fa0--,_0x47996b[_0xfe5c48]['level']=_0x5c0fa0,_0x5c0fa0--);}}['_fixObsoleteTags'](_0x1d9c6b){const _0x262b21=new Map(),_0x37fd78=this['editor']['model']['schema'];for(let _0x155731=0x1;_0x155731<_0x1d9c6b['length'];_0x155731++){let _0x487d9b,_0x4b9bf7,_0x4d3956;const _0x500176=_0x1d9c6b[_0x155731],_0xb4f3f9=_0x1d9c6b[_0x155731-0x1];if('text'==_0x500176['type'])continue;if(_0x500176['type']!=_0xb4f3f9['type'])continue;if(!_0x37fd78['isBlock'](_0xb4f3f9['item'])||_0x37fd78['isLimit'](_0xb4f3f9['item']))continue;if(!_0x37fd78['isBlock'](_0x500176['item'])||_0x37fd78['isLimit'](_0x500176['item']))continue;if((_0x1d9c6b[_0x155731]['isAdded']||_0x1d9c6b[_0x155731]['isAddSuggestion'])&&_0x1d9c6b[_0x155731-0x1]['isRemoved'])_0x487d9b=_0x1d9c6b[_0x155731],_0x4b9bf7=_0x1d9c6b[_0x155731-0x1],_0x4d3956=_0x155731-0x1;else{if(!_0x1d9c6b[_0x155731]['isRemoved']||!_0x1d9c6b[_0x155731-0x1]['isAdded']&&!_0x1d9c6b[_0x155731-0x1]['isAddSuggestion'])continue;_0x487d9b=_0x1d9c6b[_0x155731-0x1],_0x4b9bf7=_0x1d9c6b[_0x155731],_0x4d3956=_0x155731;}const _0x4d461b=_0x487d9b['level']==_0x4b9bf7['level'],_0x14bb4b=Math['abs'](_0x487d9b['level'])<Math['abs'](_0x4b9bf7['level'])&&0x0==_0x4b9bf7['distance'];(_0x4d461b||_0x14bb4b)&&(_0x262b21['set'](_0x4b9bf7['id'],_0x487d9b['id']),_0x1d9c6b['splice'](_0x4d3956,0x1),_0x155731--,_0x487d9b['isAdded']=!0x1);}for(let _0x4136f5=0x0;_0x4136f5<_0x1d9c6b['length'];_0x4136f5++)_0x262b21['has'](_0x1d9c6b[_0x4136f5]['pairId'])&&(_0x1d9c6b[_0x4136f5]['pairId']=_0x262b21['get'](_0x1d9c6b[_0x4136f5]['pairId']));}['_removeMissingPairs'](_0x4e1947){const _0x123e89=new Set(_0x4e1947['map'](_0x1ab9c9=>_0x1ab9c9['id']));for(let _0x2750de=0x0;_0x2750de<_0x4e1947['length'];_0x2750de++)_0x123e89['has'](_0x4e1947[_0x2750de]['pairId'])||0x0==_0x4e1947[_0x2750de]['distance']||(_0x4e1947[_0x2750de]['isIncorrect']=!0x0);return _0x4e1947['filter'](_0x352c4a=>!_0x352c4a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x19db1a){const _0x479a41=new Set();for(let _0x132c42=0x0;_0x132c42<_0x19db1a['length'];_0x132c42++){if(_0x479a41['has'](_0x19db1a[_0x132c42]['id'])&&_0x19db1a[_0x132c42]['isRemoved']&&(_0x19db1a[_0x132c42]['isIncorrect']=!0x0),_0x19db1a[_0x132c42]['isIncorrect'])continue;if(0x0==_0x19db1a[_0x132c42]['distance'])continue;if('elementStart'!=_0x19db1a[_0x132c42]['type'])continue;if(null==_0x19db1a[_0x132c42]['pairId'])continue;let _0x4e544a=_0x132c42+0x1,_0x30c4b8=0x0;for(;_0x19db1a[_0x4e544a]['id']!=_0x19db1a[_0x132c42]['pairId'];)'elementStart'==_0x19db1a[_0x4e544a]['type']?_0x30c4b8++:'elementEnd'==_0x19db1a[_0x4e544a]['type']&&_0x30c4b8--,_0x4e544a++;if(0x0!=_0x30c4b8){if(_0x19db1a[_0x132c42]['isRemoved'])_0x19db1a[_0x132c42]['isIncorrect']=!0x0;else{for(;_0x4e544a!=_0x132c42;)_0x19db1a[_0x4e544a]['isRemoved']&&0x0!=_0x19db1a[_0x4e544a]['distance']&&(_0x19db1a[_0x4e544a]['isIncorrect']=!0x0,_0x479a41['add'](_0x19db1a[_0x4e544a]['pairId'])),_0x4e544a--;}}}return _0x19db1a['filter'](_0x5c0d21=>!_0x5c0d21['isIncorrect']);}['_removeUnsupportedChanges'](_0x3787e2){const _0x3d7bf9=this['editor']['model']['schema'];for(let _0x4a7ab1=0x0;_0x4a7ab1<_0x3787e2['length'];_0x4a7ab1++){if(!(_0x3787e2[_0x4a7ab1]['isAdded']||_0x3787e2[_0x4a7ab1]['isAddSuggestion']||_0x3787e2[_0x4a7ab1]['isRemoved']||_0x3787e2[_0x4a7ab1]['isRemoveSuggestion']))continue;if(0x0==_0x3787e2[_0x4a7ab1]['distance'])continue;const _0x30c4f3=_0x3787e2[_0x4a7ab1]['item'];_0x3d7bf9['isBlock'](_0x30c4f3)||_0x3d7bf9['isLimit'](_0x30c4f3)||(_0x3787e2[_0x4a7ab1]['isAdded']&&delete _0x3787e2[_0x4a7ab1]['isAdded'],_0x3787e2[_0x4a7ab1]['isAddSuggestion']&&delete _0x3787e2[_0x4a7ab1]['isAddSuggestion'],_0x3787e2[_0x4a7ab1]['isRemoveSuggestion']&&delete _0x3787e2[_0x4a7ab1]['isRemoveSuggestion'],_0x3787e2[_0x4a7ab1]['isRemoved']&&(_0x3787e2[_0x4a7ab1]['isIncorrect']=!0x0));}return _0x3787e2['filter'](_0x168fe2=>!_0x168fe2['isIncorrect']);}['_makeModelFromTape'](_0x385213,_0x3fb48f,_0x76cc07){const _0x3ce1f9=new _0x5dcd6c(),_0x33b4cb=[],_0x45fcda=new Map(),_0x5388c6=this['editor']['model'],_0x356933=_0x5388c6['schema'],_0x2bd2cb=[_0x3ce1f9],_0x25c53c={},_0x121802={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43924e=null;const _0x424975=[0x0];for(let _0x51aa66=0x0;_0x51aa66<_0x385213['length'];_0x51aa66++)if('elementStart'===_0x385213[_0x51aa66]['type']){_0x385213[_0x51aa66]['previousPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975);const _0x3ce063=new _0x2d434f(_0x385213[_0x51aa66]['item']['name'],_0x385213[_0x51aa66]['item']['getAttributes']());_0x2bd2cb[0x0]['_appendChild'](_0x3ce063),_0x424975['push'](0x0),_0x2bd2cb['unshift'](_0x3ce063),_0x385213[_0x51aa66]['nextPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975);}else'elementEnd'===_0x385213[_0x51aa66]['type']?(_0x2bd2cb['shift'](),_0x385213[_0x51aa66]['previousPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975),_0x424975['pop'](),_0x424975[_0x424975['length']-0x1]++,_0x385213[_0x51aa66]['nextPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975)):(_0x385213[_0x51aa66]['previousPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975),_0x43924e?_0x43924e['_data']+=_0x385213[_0x51aa66]['item']['data']:_0x43924e=new _0x41b5b5(_0x385213[_0x51aa66]['item']['data'],_0x385213[_0x51aa66]['item']['getAttributes']()),_0x385213[_0x51aa66+0x1]&&'text'===_0x385213[_0x51aa66+0x1]['type']&&_0x27a5d8(_0x43924e,_0x385213[_0x51aa66+0x1]['item'])||(_0x2bd2cb[0x0]['_appendChild'](_0x43924e),_0x43924e=null),_0x424975[_0x424975['length']-0x1]+=_0x385213[_0x51aa66]['item']['offsetSize'],_0x385213[_0x51aa66]['nextPosition']=_0x5388c6['createPositionFromPath'](_0x3ce1f9,_0x424975));for(let _0x15819d=0x0;_0x15819d<_0x385213['length'];_0x15819d++){const _0x476a49=_0x385213[_0x15819d]['previousPosition'],_0x583f5a=_0x385213[_0x15819d]['nextPosition'];for(const _0x266f8c of _0x385213[_0x15819d]['markersStart'])_0x45fcda['set'](_0x266f8c,{'start':_0x476a49,'end':null});_0x46096e('isRemoveSuggestion',_0x15819d,_0x476a49,_0x583f5a),_0x46096e('isAddSuggestion',_0x15819d,_0x476a49,_0x583f5a),_0x46096e('isRemoved',_0x15819d,_0x476a49,_0x583f5a),_0x46096e('isAdded',_0x15819d,_0x476a49,_0x583f5a);for(const _0x332d48 of _0x385213[_0x15819d]['markersEnd']){const _0x44802b=_0x45fcda['get'](_0x332d48);_0x44802b?_0x44802b['end']=_0x583f5a:_0x45fcda['set'](_0x332d48,{'start':_0x583f5a,'end':_0x583f5a});}}for(const [_0x5dd0c3,_0x5c09cc]of _0x45fcda){const _0x320721=this['editor']['model']['createRange'](_0x5c09cc['start'],_0x5c09cc['end']);_0x3ce1f9['markers']['set'](_0x5dd0c3,_0x320721);}return _0x33b4cb['sort']((_0x2dac35,_0x4ce631)=>{const _0x4b7484=_0x3ce1f9['markers']['get']('revision:'+_0x2dac35['id']),_0x3fee48=_0x3ce1f9['markers']['get']('revision:'+_0x4ce631['id']);return _0x4b7484['start']['isBefore'](_0x3fee48['start'])?-0x1:_0x4b7484['start']['isAfter'](_0x3fee48['start'])?0x1:_0x4b7484['end']['isBefore'](_0x3fee48['end'])?-0x1:_0x4b7484['end']['isAfter'](_0x3fee48['end'])?0x1:'add'===_0x2dac35['type']?-0x1:0x1;}),{'root':_0x3ce1f9,'changes':_0x33b4cb};function _0x46096e(_0x1fdf3a,_0x198c9f,_0x118276,_0x4565be){const _0xa4be84=!!_0x385213[_0x198c9f][_0x1fdf3a],_0xc928d8=_0xa4be84?_0x385213[_0x198c9f][_0x1fdf3a]['userId']:null,_0x2d7f47=_0x198c9f===_0x385213['length']-0x1,_0xbe223=_0x121802[_0x1fdf3a][0x0],_0x21274a=_0x356933['isObject'](_0x385213[_0x198c9f]['item']);!_0x25c53c[_0x1fdf3a]&&_0xa4be84?_0x25c53c[_0x1fdf3a]={'start':_0x118276,'tapeItem':_0x385213[_0x198c9f],'userId':_0xc928d8,'type':_0x1fdf3a}:_0x25c53c[_0x1fdf3a]&&!_0xa4be84?(_0x25c53c[_0x1fdf3a]['end']=_0x118276,_0x25130e(_0x25c53c[_0x1fdf3a]),_0x25c53c[_0x1fdf3a]=null):_0x25c53c[_0x1fdf3a]&&_0xa4be84&&_0x25c53c[_0x1fdf3a]['userId']!==_0xc928d8&&(_0x25c53c[_0x1fdf3a]['end']=_0x118276,_0xbe223&&_0xbe223['userId']===_0x25c53c[_0x1fdf3a]['userId']||_0x25130e(_0x25c53c[_0x1fdf3a]),_0x25c53c[_0x1fdf3a]={'start':_0x118276,'tapeItem':_0x385213[_0x198c9f],'userId':_0xc928d8,'type':_0x1fdf3a}),_0x25c53c[_0x1fdf3a]&&_0x21274a&&('elementStart'!==_0x385213[_0x198c9f]['type']||_0xbe223&&_0xbe223['userId']===_0xc928d8||_0x121802[_0x1fdf3a]['unshift']({'userId':_0xc928d8,'object':_0x385213[_0x198c9f]['item'],'change':_0x25c53c[_0x1fdf3a]}),'elementEnd'===_0x385213[_0x198c9f]['type']&&_0xbe223&&_0xbe223['object']===_0x385213[_0x198c9f]['item']&&(_0x121802[_0x1fdf3a]['shift'](),_0x25c53c[_0x1fdf3a]=_0xbe223['change'])),_0x25c53c[_0x1fdf3a]&&_0x2d7f47&&(_0x25c53c[_0x1fdf3a]['end']=_0x4565be,_0x25130e(_0x25c53c[_0x1fdf3a]),_0x25c53c[_0x1fdf3a]=null);}function _0x25130e({start:_0xba1b8f,end:_0x21ba59,tapeItem:_0x45964d,userId:_0x4b7c57,type:_0x52de3a}){const _0x4a264d=_0x45964d['item'],_0x1f6705=_0x5388c6['schema']['isBlock'](_0x4a264d)&&!_0x5388c6['schema']['isLimit'](_0x4a264d),_0x1f06a1=_0xba1b8f['nodeAfter']==_0x21ba59['parent']&&_0x21ba59['isAtStart'];if(_0x1f6705&&_0x1f06a1)return;const _0x2865bf=_0x5388c6['createRange'](_0xba1b8f,_0x21ba59),_0xc225fb=_0x3fb48f['get'](_0x4b7c57),_0x1f58eb=new G({'author':_0xc225fb,'type':'isAdded'==_0x52de3a||'isAddSuggestion'==_0x52de3a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x52de3a||'isRemoveSuggestion'==_0x52de3a},'createdAt':new Date(),'rootName':_0x76cc07});_0x33b4cb['push'](_0x1f58eb),_0x3ce1f9['markers']['set']('revision:'+_0x1f58eb['id'],_0x2865bf);}function _0x27a5d8(_0x3e9938,_0x454543){const _0x3ce236=_0x3e9938['getAttributes'](),_0x2e115d=_0x454543['getAttributes']();for(const _0x58fa6c of _0x3ce236){if(_0x58fa6c[0x1]!==_0x454543['getAttribute'](_0x58fa6c[0x0]))return!0x1;_0x2e115d['next']();}return _0x2e115d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x331e65=>{const _0x233005=_0x331e65['markerName']['split'](':')[0x1],_0x426f81=this['_getChangeFromId'](_0x233005);if(!_0x426f81)return null;const _0x2132c7='add'==_0x426f81['type']?'insertion':'deletion',_0x3cad93=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2132c7];return _0x426f81['data']['isSuggestion']&&_0x3cad93['push']('ck-suggestion-marker-'+_0x2132c7+'-new'),this['activeChange']==_0x426f81&&_0x3cad93['push']('ck-suggestion-marker--active'),{'classes':_0x3cad93,'attributes':{'data-change-id':_0x233005}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x346712=>{_0x346712['on']('element:pre',(_0x254662,_0x1c8d74,_0x55cee8)=>{const _0x480d06=_0x1c8d74['viewItem']['getChild'](0x0);if(!_0x480d06||!_0x480d06['is']('element','code'))return;if(!_0x55cee8['consumable']['consume'](_0x480d06,{'attributes':['vid_start','vid_end']}))return;const _0x2e37f1=_0x1c8d74['modelRange']['start']['nodeAfter'];_0x55cee8['writer']['setAttribute']('vid_start',_0x480d06['getAttribute']('vid_start'),_0x2e37f1),_0x55cee8['writer']['setAttribute']('vid_end',_0x480d06['getAttribute']('vid_end'),_0x2e37f1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27d9a8=>{_0x27d9a8['on']('element',(_0x19181a,_0x10ae3f,_0x3b7713)=>{if(!_0x3b7713['consumable']['consume'](_0x10ae3f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x10ae3f['modelRange']['isCollapsed'])return;const _0x765732=_0x10ae3f['modelRange']['start']['nodeAfter'];_0x765732['hasAttribute']('vid_start')||_0x765732['hasAttribute']('vid')||(_0x3b7713['writer']['setAttribute']('vid_start',_0x10ae3f['viewItem']['getAttribute']('vid_start'),_0x765732),_0x3b7713['writer']['setAttribute']('vid_end',_0x10ae3f['viewItem']['getAttribute']('vid_end'),_0x765732));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x52f5be=>_0x52f5be['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1fa6ef,[,_0x6ff02])=>{['vid_start','vid_end','vid']['includes'](_0x6ff02)&&(_0x1fa6ef['return']=!0x0,_0x1fa6ef['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x53adb6=>{_0x53adb6['on']('attribute:vid',(_0x5d7668,_0x4caf13,_0x1adb2e)=>{if('\x20'!=_0x4caf13['item']['data']||_0x4caf13['item']['parent']['maxOffset']>0x1)return;if(!_0x1adb2e['consumable']['consume'](_0x4caf13['item'],_0x5d7668['name']))return;const _0x230c9e=_0x1adb2e['writer'],_0xd65e53=_0x1adb2e['mapper']['toViewRange'](_0x4caf13['range']);_0x230c9e['wrap'](_0xd65e53,_0x230c9e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x44c346){const _0xf54561=_0x44c346['plugins']['get']('RevisionViewer');return(_0x4f5e96,_0x226dd1,_0x18c079)=>{const _0x7b4679=_0x226dd1['markerName']['split'](':')[0x1],_0x492f99=_0xf54561['_getChangeFromId'](_0x7b4679);if(!_0x492f99)return null;const _0x13e706='add'==_0x492f99['type']?'split':'merge';if(!_0x18c079['consumable']['test'](_0x226dd1['markerRange'],_0x4f5e96['name']))return;const _0x4e3187=_0x226dd1['markerRange']['getWalker'](),_0x571c8e=_0x226dd1['markerRange']['start'],_0x3314bc=_0x44c346['model']['schema'];let _0x3e324a=null,_0x1d5950=null,_0x1bff61=!0x1,_0x2c6c4b=!0x1;for(const _0xab0974 of _0x4e3187){const _0x50dd97=_0xab0974['item'];_0x1bff61=_0x1bff61||_0x3314bc['isContent'](_0x50dd97);const _0x3be7ff=_0x18c079['mapper']['toViewElement'](_0x50dd97);if(_0x3be7ff&&_0x3be7ff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xab0974['type']&&(_0x3314bc['isBlock'](_0x50dd97)&&!_0x3314bc['isLimit'](_0x50dd97)&&(_0x50dd97['nextSibling']||_0x571c8e['isAtEnd']?_0x3e324a&&_0x3e324a['parent']==_0x50dd97||(_0x3e324a=_0x50dd97,_0x2246fb(_0xab0974['previousPosition']),_0x2c6c4b=!0x0):_0x1d5950=_0x1d5950||_0xab0974['previousPosition']));}function _0x2246fb(_0x526f48){const _0x520596=_0x18c079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13e706}),_0x1d3e34=_0x18c079['mapper']['toViewPosition'](_0x526f48);_0x492f99['data']['isSuggestion']&&_0x18c079['writer']['addClass']('ck-suggestion-marker-'+_0x13e706+'-new',_0x520596),_0xf54561['activeChange']==_0x492f99&&_0x18c079['writer']['addClass']('ck-suggestion-marker--active',_0x520596),_0x18c079['writer']['insert'](_0x1d3e34,_0x520596),_0x18c079['mapper']['bindElementToMarker'](_0x520596,_0x226dd1['markerName']);}_0x1bff61||_0x2c6c4b||!_0x1d5950||_0x2246fb(_0x1d5950);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x567dc5,_0x573c76,_0x386dec)=>{const _0x4522b6=_0x386dec['mapper']['markerNameToElements'](_0x573c76['markerName']);if(_0x4522b6){for(const _0x23291f of _0x4522b6)(_0x23291f['hasClass']('ck-suggestion-marker-split')||_0x23291f['hasClass']('ck-suggestion-marker-merge'))&&(_0x386dec['mapper']['unbindElementFromMarkerName'](_0x23291f,_0x573c76['markerName']),_0x386dec['writer']['remove'](_0x23291f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x246319,_0xa5b018,_0x59050c)=>{const _0x111073=_0xa5b018['markerName']['split'](':')[0x1],_0x1b0e96=this['_getChangeFromId'](_0x111073);if(!_0x1b0e96)return null;const _0x58698c='add'==_0x1b0e96['type']?'split':'merge';if(_0x59050c['consumable']['test'](_0xa5b018['markerRange'],_0x246319['name']))for(const _0x5a6842 of _0xa5b018['markerRange']['getItems']()){if(!_0x5a6842['is']('element','softBreak'))continue;const _0x1347cb=_0x59050c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58698c}),_0x256c73=_0x59050c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5a6842));_0x1b0e96['data']['isSuggestion']&&_0x59050c['writer']['addClass']('ck-suggestion-marker-'+_0x58698c+'-new',_0x1347cb),this['activeChange']==_0x1b0e96&&_0x59050c['writer']['addClass']('ck-suggestion-marker--active',_0x1347cb),_0x59050c['writer']['insert'](_0x256c73,_0x1347cb),_0x59050c['mapper']['bindElementToMarker'](_0x1347cb,_0xa5b018['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2a9dae=>{for(const _0x1f52d2 of this['editor']['model']['document']['getRootNames']()){const _0xed2703=this['editor']['model']['document']['getRoot'](_0x1f52d2),_0x37aa71=this['editor']['editing']['view']['document']['getRoot'](_0x1f52d2);if(_0x37aa71){const _0x5f41bf=_0xed2703['getAttribute']('revisionHistoryAttachChange');if(_0x2a9dae['removeAttribute']('data-change-id',_0x37aa71),_0x2a9dae['removeClass']('ck-revision-history-root-add',_0x37aa71),_0x2a9dae['removeClass']('ck-revision-history-root-remove',_0x37aa71),_0x2a9dae['removeClass']('ck-revision-history-root--active',_0x37aa71),_0x5f41bf){const _0xf08045=this['_getChangeFromId'](_0x5f41bf);if(!_0xf08045)return null;_0x2a9dae['setAttribute']('data-change-id',_0x5f41bf,_0x37aa71),_0x2a9dae['addClass']('ck-revision-history-root-'+_0xf08045['type'],_0x37aa71),this['activeChange']==_0xf08045&&_0x2a9dae['addClass']('ck-revision-history-root--active',_0x37aa71);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x349dfe=>'revision-comment:'+_0x349dfe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5dd5cd=>'revision-suggestion:'+_0x5dd5cd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4d8d34=>({'name':'suggestion:'+_0x4d8d34,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x57ae9a=>{const _0x48840c=_0x57ae9a['markerName']['split'](':')[0x1];return'insertion'!=_0x48840c&&'deletion'!=_0x48840c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48840c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xa06219,_0x273b84,_0x53a4fb)=>{const _0x12dc10=_0x53a4fb['mapper']['markerNameToElements'](_0x273b84['markerName']);if(_0x12dc10){for(const _0x391909 of _0x12dc10)_0x391909['is']('uiElement')&&(_0x53a4fb['mapper']['unbindElementFromMarkerName'](_0x391909,_0x273b84['markerName']),_0x53a4fb['writer']['remove'](_0x391909));}},{'priority':'high'});}['_getChangeFromId'](_0x40ae8e){return this['_changeIdToChange']['get'](_0x40ae8e);}['_getViewForChange'](_0x1dbe39){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1dbe39),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x366723,_0x2d9906,_0x3982c3,_0x5d08ca)=>{_0x5d08ca&&this['_balloon']['remove'](_0x5d08ca),_0x3982c3&&(this['_balloon']['add']({'view':_0x3982c3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2d5d07=this['editor']['editing'],_0x213def=this['_getChangeFromId'](_0x3982c3['changeId']);let _0x266ed7;if(_0x213def['data']['isOnRoot']){const _0x5f40df=_0x2d5d07['view']['getDomRoot'](_0x213def['rootName']);_0x266ed7=Array['from'](_0x5f40df['getClientRects']());}else{const _0x516337=this['editor']['model']['markers']['get']('revision:'+_0x3982c3['changeId']);_0x266ed7=Array['from'](_0x2d5d07['mapper']['markerNameToElements'](_0x516337['name']))['map'](_0x33f30e=>_0x2d5d07['view']['domConverter']['mapViewToDom'](_0x33f30e))['map'](_0x172ef7=>Array['from'](_0x172ef7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x266ed7[0x0];return _0x266ed7['find'](_0x3da15b=>_0x3da15b['top']-0x3<=this['_activeViewTarget']['y']&&_0x3da15b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3da15b['left']-0x3<=this['_activeViewTarget']['x']&&_0x3da15b['right']+0x3>=this['_activeViewTarget']['x'])||_0x266ed7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x502c1e,_0x86f553,_0x585566,_0x1e2334)=>{this['activeView']=_0x585566?this['_getViewForChange'](_0x585566):null,this['editor']['model']['change'](()=>{const _0x154666=this['editor']['editing'];_0x1e2334&&(_0x1e2334['data']['isOnRoot']?_0x154666['view']['change'](_0x58db67=>{_0x58db67['removeClass']('ck-revision-history-root--active',_0x154666['view']['document']['getRoot'](_0x1e2334['rootName']));}):_0x154666['reconvertMarker']('revision:'+_0x1e2334['id'])),_0x585566&&(_0x585566['data']['isOnRoot']?_0x154666['view']['change'](_0x153201=>{_0x153201['addClass']('ck-revision-history-root--active',_0x154666['view']['document']['getRoot'](_0x585566['rootName']));}):_0x154666['reconvertMarker']('revision:'+_0x585566['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50192b,_0x181bda)=>{if(this['activeChange'])return;const _0x1ecf7b=this['_findChangeIdFromDomTarget'](_0x181bda['target']),_0x598a77=this['_changeIdToChange']['get'](_0x1ecf7b);_0x598a77?(this['_activeViewTarget']={'x':_0x181bda['domEvent']['x'],'y':_0x181bda['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x598a77)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5021ea,_0x37dc81)=>{const _0x52cc7d=this['_findChangeIdFromDomTarget'](_0x37dc81['target']),_0x4fc446=this['_changeIdToChange']['get'](_0x52cc7d);_0x4fc446?(this['_activeViewTarget']={'x':_0x37dc81['domEvent']['x'],'y':_0x37dc81['domEvent']['y']},_0x4fc446===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4fc446):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xab2636){do{const _0x38a432=_0xab2636['getAttribute']('data-change-id');if(_0x38a432)return _0x38a432;_0xab2636=_0xab2636['parent'];}while(_0xab2636);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5eae09=>{for(const _0x48113a of this['editor']['model']['markers'])_0x5eae09['removeMarker'](_0x48113a);});}}function Q(_0x3bb4f5,_0x1e7061){return(_0x353970,_0x10d76b,_0x3bb173)=>{if(!_0x3bb173['consumable']['test'](_0x10d76b['markerRange'],_0x353970['name']))return;const _0xf1b602=_0x10d76b['markerRange']['getWalker'](),_0x3ba584=_0x10d76b['markerRange']['start'],_0x15d5ef=_0x3bb4f5['model']['schema'];let _0x4184fc=null,_0x3a114e=null,_0x2e9fd4=!0x1,_0x49f49e=!0x1;for(const _0x59a5d5 of _0xf1b602){const _0x15029c=_0x59a5d5['item'];_0x2e9fd4=_0x2e9fd4||_0x15d5ef['isContent'](_0x15029c);const _0x57e31d=_0x3bb173['mapper']['toViewElement'](_0x15029c);if(_0x57e31d&&_0x57e31d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x59a5d5['type']&&(_0x15d5ef['isBlock'](_0x15029c)&&!_0x15d5ef['isLimit'](_0x15029c)&&(_0x15029c['nextSibling']||_0x3ba584['isAtEnd']?_0x4184fc&&_0x4184fc['parent']==_0x15029c||(_0x4184fc=_0x15029c,_0x46f35f(_0x59a5d5['previousPosition']),_0x49f49e=!0x0):_0x3a114e=_0x3a114e||_0x59a5d5['previousPosition']));}function _0x46f35f(_0xd895da){const _0x2dc8c2=_0x3bb173['mapper']['toViewPosition'](_0xd895da),_0x3378b6=_0x3bb173['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e7061});_0x3bb173['writer']['insert'](_0x2dc8c2,_0x3378b6),_0x3bb173['mapper']['bindElementToMarker'](_0x3378b6,_0x10d76b['markerName']);}_0x2e9fd4||_0x49f49e||!_0x3a114e||_0x46f35f(_0x3a114e);};}class nt extends _0x439955{constructor(_0x5854b6){super(_0x5854b6);const _0x2e25b8=_0x5854b6['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x2e25b8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e25b8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5250c2=this['editor'],_0x2c184a=_0x5250c2['plugins']['get'](l),_0x52bfde=_0x2c184a['isReady']?_0x2c184a['diff']['newRevisionId']:null;_0x5250c2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x52bfde);}['refresh'](){const {isReady:_0x575dc7,isEnabled:_0x4126ef,repository:_0x44943,diff:_0x3455ca}=this['editor']['plugins']['get'](l),_0x5b2084=_0x3455ca&&_0x44943['getLaterVisibleRevision'](_0x3455ca['newRevisionId']);this['isEnabled']=_0x575dc7&&_0x4126ef&&Boolean(_0x5b2084);}}class rt extends _0x439955{['_step'];constructor(_0x47b66e,{direction:_0x36119e}){super(_0x47b66e);const _0x48d00c=_0x47b66e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x36119e?0x1:-0x1,this['listenTo'](_0x48d00c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48d00c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x48d00c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xb3c88b=this['editor'],_0x42974d=_0xb3c88b['plugins']['get'](l),{isNavigationMode:_0x1f8f9d,currentChangeNumber:_0x3c5cb4}=_0x42974d;let _0x50c654;if(_0x42974d['activeChange']=_0x1f8f9d?_0x42974d['diff']['changes']['get'](_0x3c5cb4+this['_step']):_0x42974d['diff']['changes']['first'],_0x42974d['activeChange']['data']['isOnRoot'])_0x50c654=_0xb3c88b['editing']['view']['getDomRoot'](_0x42974d['activeChange']['rootName']);else{const _0x38e0d6=_0xb3c88b['model']['markers']['get']('revision:'+_0x42974d['activeChange']['id']);_0x50c654=_0x4aa28c(_0xb3c88b['editing'],_0x38e0d6);}_0x234f22({'target':_0x50c654,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3fb4e3,currentChangeNumber:_0x3df021,numberOfChanges:_0x4d2cdd,isReady:_0x51de07,isEnabled:_0x29b22c}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x29b22c&&_0x51de07&&_0x4d2cdd)&&(!_0x3fb4e3||(0x1===this['_step']?_0x3df021<_0x4d2cdd-0x1:_0x3df021>0x0));}}class fi extends _0x2027a1{constructor(_0x5557d3){super(_0x5557d3);const _0x52f125=this['bindTemplate'],_0xb61028=new _0x304609(_0x5557d3),_0x5554be=new _0x304609(_0x5557d3);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',(_0x46444f,_0x34c489)=>_0x46444f&&_0x34c489>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1fc80b,_0x410eb3,_0x3fc9b7,_0x428f26)=>{if(!_0x1fc80b)return R(_0x5557d3,'Loading...');if(!_0x3fc9b7)return R(_0x5557d3,'No\x20changes');const _0x2b1a04=R(_0x5557d3,'NUMBER_OF_CHANGES',_0x3fc9b7);return _0x428f26?R(_0x5557d3,'X_OF_Y_CHANGES',[_0x410eb3+0x1,_0x3fc9b7]):_0x2b1a04;}),_0xb61028['set']({'label':R(_0x5557d3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5b0108}),_0x5554be['set']({'label':R(_0x5557d3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x24f5ef}),_0xb61028['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5554be['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xb61028['on']('execute',()=>this['fire']('execute','backward')),_0x5554be['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',_0x52f125['if']('_isStatusLabelVisible','ck-hidden',_0x5c4089=>!_0x5c4089)]},'children':[{'text':_0x52f125['to']('isNavigationMode',_0x5ca375=>_0x5ca375?R(_0x5557d3,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5557d3,'Total')+':\x20')}]},{'text':_0x52f125['to']('_statusText')}]},new _0x45456d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xb61028,_0x5554be]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x3daf77{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x253e0a=this['editor']['editing']['view'];_0x253e0a['change'](_0x707011=>{for(const _0x3bee1a of _0x253e0a['document']['roots'])_0x707011['addClass'](ge,_0x3bee1a);});}['hide'](){const _0x4e4aea=this['editor']['editing']['view'];_0x4e4aea['change'](_0x151aa6=>{for(const _0x118043 of _0x4e4aea['document']['roots'])_0x151aa6['removeClass'](ge,_0x118043);});}}class u extends _0x3daf77{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,bi];}['init'](){const _0x1eaf1f=this['editor'],_0x1d73d1=_0x1eaf1f['plugins']['get'](l),_0x22eb78=_0x1eaf1f['plugins']['get'](bi);_0x1eaf1f['ui']['componentFactory']['add']('exitToEditing',_0x4b36eb=>{const _0x4a1e55=new _0x304609(_0x4b36eb);return _0x4a1e55['set']({'label':R(_0x4b36eb,'Back\x20to\x20editing'),'icon':_0xc406e8,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4a1e55,'execute',()=>{_0x1eaf1f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4a1e55;}),_0x1eaf1f['ui']['componentFactory']['add']('restoreRevision',_0x236532=>{const _0x186c23=new _0x304609(_0x236532);return _0x186c23['set']({'label':R(_0x236532,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x186c23['bind']('isEnabled')['to'](_0x1eaf1f['commands']['get']('restoreRevision')),this['listenTo'](_0x186c23,'execute',()=>_0x1eaf1f['execute']('restoreRevision')),_0x186c23;}),_0x1eaf1f['ui']['componentFactory']['add']('changesNavigation',_0x357256=>{const _0x45ac5f=new fi(_0x357256),_0x4c6279=_0x1eaf1f['commands']['get']('showPreviousChange'),_0x398536=_0x1eaf1f['commands']['get']('showNextChange');return _0x45ac5f['bind']('isBackwardNavigationEnabled')['to'](_0x4c6279,'isEnabled'),_0x45ac5f['bind']('isForwardNavigationEnabled')['to'](_0x398536,'isEnabled'),_0x45ac5f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1d73d1),this['listenTo'](_0x45ac5f,'execute',(_0x39fde3,_0x35f945)=>{_0x1eaf1f['execute']('forward'===_0x35f945?'showNextChange':'showPreviousChange');}),_0x45ac5f;}),_0x22eb78['show'](),_0x1d73d1['on']('change:isReady',(_0x195594,_0xadb9e1,_0x9efe9c)=>{_0x9efe9c?_0x22eb78['hide']():_0x22eb78['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x2f9fc1,_0x122f7e){super(_0x2f9fc1,_0x122f7e);const _0x55803b=this['bindTemplate'];this['set']({'label':R(_0x2f9fc1,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2f9fc1,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55803b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x222274=this['fieldView']['element'];this['_tooltipString']=_0x222274['scrollWidth']>_0x222274['clientWidth']&&_0x222274['value']||'';}}class ni extends _0x2027a1{constructor(_0x16578f,_0x40d669,_0x9f9014){super(_0x16578f);const _0x13083b=new _0x4e4b3c();_0x13083b['set']({'content':_0x5132bd,'viewBox':'0\x200\x2011\x2010'});const _0x4d63c0=['ck','ck-revision-history-sidebar__revision-author'];_0x9f9014&&_0x4d63c0['push']('ck-revision-history-sidebar__revision-author_creator');const _0x477497=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x16578f,_0x9f9014?'Revision\x20creator':'Revision\x20author')},'children':[_0x13083b,_0x40d669['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d63c0},'children':_0x477497});}}function ci(_0xb90f12,_0x3bd72a){const _0x5c4070=_0xb90f12['bindTemplate'],_0x19c1b5=_0xb90f12['locale'],_0x39240e=_0x261f45(_0x19c1b5);_0x39240e['panelPosition']='sw';const _0x25f316=function(_0x1037d6,_0x333cd7){const _0x4f2b21=function(_0x55b200,_0x43f472){const _0x2e833d=_0x55b200['locale'],_0x2b7dec={'Compare\x20against\x20selected':R(_0x2e833d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2e833d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2e833d,'Restore\x20this\x20revision')};return _0x43f472['map'](_0x576fe5=>{const _0xe12612=_0x2b7dec[_0x576fe5['name']];return _0xe12612&&_0xe12612!==_0x576fe5['name']&&(_0x576fe5['name']=_0xe12612),_0x576fe5;});}(_0x1037d6,_0x333cd7),_0xc2c8af=new _0x485594();for(const _0x481b72 of _0x4f2b21){const _0x4dd811={'type':'button','model':new to({'label':_0x481b72['name'],'class':_0x481b72['class'],'withText':!0x0,'role':'menuitem','_action':_0x481b72['action']})};_0x4dd811['model']['bind']('isEnabled')['to'](_0x1037d6,'isActionsDropdownOpen',_0x1eaf24=>'function'!=typeof _0x481b72['isEnabled']||(!_0x1eaf24||_0x481b72['isEnabled'](_0x1037d6))),_0xc2c8af['add'](_0x4dd811);}return _0xc2c8af;}(_0xb90f12,_0x3bd72a);return _0xb90f12['bind']('isActionsDropdownOpen')['to'](_0x39240e,'isOpen'),_0x39240e['buttonView']['set']({'label':R(_0x19c1b5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25fb16}),_0x39240e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5c4070['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5c4070['to'](_0x5b4f9c=>_0x5b4f9c['stopPropagation']())}}),_0x39240e['on']('execute',_0x18dd3d=>{_0xb90f12['isReady']&&'function'==typeof _0x18dd3d['source']['_action']&&_0x18dd3d['source']['_action'](_0xb90f12);}),_0x242355(_0x39240e,_0x25f316,{'role':'menu'}),_0x39240e['listenTo'](_0xb90f12,'change:isActionsDropdownOpen',(_0x5acc00,_0x3b7d27,_0x16cc64)=>{if(_0x16cc64)for(const _0x57cf30 of _0x39240e['listView']['items']){const _0x3d758a=_0x57cf30['children']['first'],_0x1b5e66=_0x3bd72a['find'](_0x69243f=>_0x69243f['action']===_0x3d758a['_action'])['isVisible'];_0x57cf30['isVisible']=void 0x0===_0x1b5e66||_0x1b5e66(_0xb90f12);}}),_0x39240e;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4f3aac,uid as _0x2e23f1,Collection as _0xd01162,logWarning as _0x43702b,FocusTracker as _0xd221d5,KeystrokeHandler as _0x567867,scrollViewportToShowTarget as _0x799686,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x51ae0d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x25ff9b,set as _0x336c62,unset as _0x57d449,isEqual as _0x23914e}from'es-toolkit/compat';import{Plugin as _0x1305a6,PendingActions as _0x12b2e2,Command as _0x5788b1,ElementApiMixin as _0x1cd33c,Editor as _0x674d86}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ca452,getMarkerDomElement as _0x308ad9,ConfirmMixin as _0x5f2668,sanitizeEditorConfig as _0x5dbe93}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x27e06e,ViewAttributeElement as _0x735ecc,ViewEmptyElement as _0x3458cf,ViewRawElement as _0x41874f,ViewUIElement as _0x4535de,ViewDocumentFragment as _0x54b629,ViewText as _0x470b3b,ViewElement as _0x2b40c0,ModelElement as _0x220be8,ModelRange as _0x15b2d1,ModelPosition as _0xb51ac3,ModelDocumentFragment as _0x24dd64,ModelText as _0x53c09b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x317799,IconChevronUp as _0x434994,IconChevronDown as _0x1b458c,IconUndo as _0x3c04b5,IconUser as _0x5d06bd,IconThreeVerticalDots as _0x47696e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x59796b,View as _0x5afe72,submitHandler as _0x2f1169,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5191d3,ListView as _0xa2f141,ListItemView as _0x3b47c2,ButtonView as _0x20e177,MenuBarMenuView as _0xaf22f1,MenuBarMenuListView as _0xb503e8,MenuBarMenuListItemView as _0x5c1894,MenuBarMenuListItemButtonView as _0x2a248b,ContextualBalloon as _0xbad7fb,ToolbarSeparatorView as _0x56d6b1,IconView as _0x13a599,addListToDropdown as _0x2730e5,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x331048,StickyPanelView as _0x4bf268,ToolbarView as _0x32ff63,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x18db6e}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f3aac(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfdca93){super(),this['id']=_0xfdca93['id']||_0x2e23f1(),this['creator']=_0xfdca93['creator']||null,this['authors']=_0xfdca93['authors']||[],this['diffData']=_0xfdca93['diffData']||null,this['toVersion']=_0xfdca93['toVersion']||0x0,this['fromVersion']=_0xfdca93['fromVersion']||0x0,this['set']('name',_0xfdca93['name']||''),this['set']('createdAt',_0xfdca93['createdAt']||new Date()),this['set']('attributes',_0xfdca93['attributes']||{});}['setName'](_0x32e3a9){this['_update']({'name':_0x32e3a9});}['setAttribute'](_0xbbdaa3,_0x1a5c43){const _0x23dc29=_0x25ff9b(this['attributes']);_0x336c62(_0x23dc29,_0xbbdaa3,_0x1a5c43),this['_update']({'attributes':_0x23dc29});}['removeAttribute'](_0x2726ef){const _0x99e1bf=_0x25ff9b(this['attributes']);_0x57d449(_0x99e1bf,_0x2726ef),this['_update']({'attributes':_0x99e1bf});}['_update'](_0x2bb524,_0x3ceadc=!0x1){let _0x272fde=!0x1;const _0x427da6={'id':this['id']},_0xfd2a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5474d7 of _0xfd2a){const _0x1b98b7=_0x2bb524[_0x5474d7];void 0x0!==_0x1b98b7&&_0x1b98b7!==this[_0x5474d7]&&(this[_0x5474d7]=_0x1b98b7,_0x427da6[_0x5474d7]=_0x1b98b7,_0x272fde=!0x0);}_0x272fde&&(_0x427da6['authors']&&(_0x427da6['authorsIds']=_0x427da6['authors']['map'](_0x138c3f=>_0x138c3f['id']),delete _0x427da6['authors']),this['fire']('_update',_0x427da6,_0x3ceadc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e322b=>_0x4e322b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1305a6{['_revisions'];static get['requires'](){return[_0x4ca452];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x334d7f){super(_0x334d7f),this['_revisions']=new _0xd01162();}['afterInit'](){!async function(_0x37628d){const _0x4298eb=_0x4932c2([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2e5285=0xeb829,_0x97b2b8=0x7374585f,_0x5d09d3=0x73732b07^_0x97b2b8,_0x1d89fe=window[_0x4932c2([0x44,0x61,0x74,0x65])][_0x4932c2([0x6e,0x6f,0x77])](),_0x224c81=_0x37628d[_0x4932c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x128c9b=new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1d2f=>{_0x224c81[_0x4932c2([0x6f,0x6e,0x63,0x65])](_0x4932c2([0x72,0x65,0x61,0x64,0x79]),_0x3d1d2f);}),_0x5bbba5={[_0x4932c2([0x6b,0x74,0x79])]:_0x4932c2([0x45,0x43]),[_0x4932c2([0x75,0x73,0x65])]:_0x4932c2([0x73,0x69,0x67]),[_0x4932c2([0x63,0x72,0x76])]:_0x4932c2([0x50,0x2d,0x32,0x35,0x36]),[_0x4932c2([0x78])]:_0x4932c2([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]),[_0x4932c2([0x79])]:_0x4932c2([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]),[_0x4932c2([0x61,0x6c,0x67])]:_0x4932c2([0x45,0x53,0x32,0x35,0x36])},_0x1c772a=_0x224c81[_0x4932c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4932c2([0x67,0x65,0x74])](_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4befb8(){let _0x47d915,_0x1a7174=null,_0x31b414=null;try{if(_0x1c772a==_0x4932c2([0x47,0x50,0x4c]))return _0x4932c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47d915=_0x294ebb(),!_0x47d915)return _0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47d915[_0x4932c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31b414=_0x3bd83f(_0x47d915[_0x4932c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47d915[_0x4932c2([0x6a,0x74,0x69])])),await _0x11fe66()?_0x4bf16c()?_0xbb59a7()?_0x4932c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bf63a()?(_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4932c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a7174=_0x1ab9a4(_0x4932c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4932c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a7174=_0x1ab9a4(_0x4932c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52aa23()):_0x4932c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4932c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4932c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbb59a7(){const _0x58a61a=[_0x4932c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4932c2([0x74,0x72,0x69,0x61,0x6c])][_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d89fe/0x3e8:0xe10*_0x5d09d3;return _0x47d915[_0x4932c2([0x65,0x78,0x70])]<_0x58a61a;}function _0x4bf16c(){const _0xba2915=_0x47d915[_0x4932c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xba2915)return!0x1;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x2a])))return!0x0;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x52,0x48])))return!0x0;if(_0xba2915[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x52,0x52,0x48]))){if(_0x5bc768())return!0x0;if(_0x287090()||_0x431987())return!0x0;}return!0x1;}function _0x2bf63a(){const _0x20c7e2=_0x47d915[_0x4932c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c7e2||0x0==_0x20c7e2[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e773d}=new URL(window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c7e2[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e773d))return!0x0;const _0x45a22c=_0x1e773d[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e]));return _0x20c7e2[_0x4932c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x572151=>_0x572151[_0x4932c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4932c2([0x2a])))[_0x4932c2([0x6d,0x61,0x70])](_0x2daca6=>_0x2daca6[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e])))[_0x4932c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a871e=>_0x2a871e[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45a22c[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4932c2([0x6d,0x61,0x70])](_0x25a4d9=>Array(_0x45a22c[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25a4d9[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4932c2([0x66,0x69,0x6c,0x6c])](_0x25a4d9[0x0]===_0x4932c2([0x2a])?_0x4932c2([0x2a]):'')[_0x4932c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25a4d9))[_0x4932c2([0x73,0x6f,0x6d,0x65])](_0x52566f=>_0x45a22c[_0x4932c2([0x65,0x76,0x65,0x72,0x79])]((_0x42d365,_0x289db5)=>_0x52566f[_0x289db5]===_0x42d365||_0x52566f[_0x289db5]===_0x4932c2([0x2a])));}function _0x52aa23(){return _0x1a7174&&_0x31b414?new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6b2c,_0x319cc6)=>{_0x1a7174[_0x4932c2([0x74,0x68,0x65,0x6e])](_0xed6b2c,_0x319cc6),_0x31b414[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x1b20d4=>{_0x1b20d4!=_0x4932c2([0x56,0x61,0x6c,0x69,0x64])&&_0xed6b2c(_0x1b20d4);},_0x319cc6);}):_0x1a7174||_0x31b414||_0x4932c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bd83f(_0xaa3f10,_0x53a7de){return new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58bfa3=>{if(_0x4c9d02())return _0x58bfa3(_0x4932c2([0x56,0x61,0x6c,0x69,0x64]));_0x4345ef(),_0x224c81[_0x4932c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d8348=!0x1;const _0x1ffa5c=_0x2e23f1();function _0x3f2be5(_0x2f59bf){return!!_0x2f59bf&&(typeof _0x2f59bf===_0x4932c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f59bf===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f59bf[_0x4932c2([0x74,0x68,0x65,0x6e])]===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f59bf[_0x4932c2([0x63,0x61,0x74,0x63,0x68])]===_0x4932c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x71a85(_0x55b075){_0x23580d(_0x55b075)[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x4f9e16=>{if(!_0x4f9e16||_0x4f9e16[_0x4932c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4932c2([0x6f,0x6b]))return _0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ccbbc(_0x46d187(_0x1ffa5c+_0x53a7de))!=_0x4f9e16[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4932c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x420d74=>(_0x22b689(),_0x420d74),()=>{const _0x273025=_0x4dec4f();return null==_0x273025?(_0x22b689(),_0x4932c2([0x56,0x61,0x6c,0x69,0x64])):_0x4932c2(_0x1d89fe-_0x273025>(0x5778dc5f^_0x97b2b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x58bfa3)[_0x4932c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e30c1=0x7342b6df^_0x97b2b8;function _0x22b689(){const _0x53f605=_0x4932c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccbbc(_0x46d187(_0xaa3f10)),_0x15478c=_0x56c842(_0x3ccbbc(window[_0x4932c2([0x4d,0x61,0x74,0x68])][_0x4932c2([0x63,0x65,0x69,0x6c])](_0x1d89fe/_0x5e30c1)));window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4932c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53f605,_0x15478c);}function _0x4dec4f(){const _0x410ccf=_0x4932c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccbbc(_0x46d187(_0xaa3f10)),_0x191ecf=window[_0x4932c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4932c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x410ccf);return _0x191ecf?window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56c842(_0x191ecf),0x10)*_0x5e30c1:null;}function _0x23580d(_0x3a81e3){return new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x72b533,_0x39399f)=>{_0x3a81e3[_0x4932c2([0x74,0x68,0x65,0x6e])](_0x72b533,_0x39399f),window[_0x4932c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39399f,0x73758c9f^_0x97b2b8);});}}_0x224c81[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x239e9c,_0x15e16b)=>{if(_0x15e16b[0x0]!=_0xaa3f10)return _0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15e16b[0x1]={..._0x15e16b[0x1],[_0x4932c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ffa5c};},{[_0x4932c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4932c2([0x68,0x69,0x67,0x68])}),_0x224c81[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59ccca=>{_0x3f2be5(_0x59ccca[_0x4932c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d8348=!0x0,_0x71a85(_0x59ccca[_0x4932c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4932c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4932c2([0x6c,0x6f,0x77])}),_0x128c9b[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>{_0x3d8348||_0x58bfa3(_0x4932c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c9d02(){return _0x224c81[_0x4932c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4932c2([0x76,0x69,0x65,0x77])][_0x4932c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4932c2([0x61,0x75,0x74,0x6f]);}function _0x4345ef(){_0x224c81[_0x4932c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4932c2([0x76,0x69,0x65,0x77])][_0x4932c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4932c2([0x61,0x75,0x74,0x6f]);}}function _0x1ab9a4(_0x88a94d){const _0x460ae3=[new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e1a1=>setTimeout(_0x41e1a1,0x737d6693^_0x97b2b8)),_0x128c9b[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47942c=>{const _0x45348b=0x73745858^_0x97b2b8,_0x50419a=_0x37628d[_0x4932c2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4a2ae5(){_0x50419a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45348b&&_0x47942c();}_0x4a2ae5(),_0x50419a[_0x4932c2([0x6f,0x6e])](_0x4932c2([0x61,0x64,0x64]),_0x4a2ae5);})),new window[(_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15d3be=>{function _0x2623df(){for(const _0xb9f286 in window)if(window[_0x4932c2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4932c2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb9f286))&&window[_0xb9f286]==_0x2e5285)return _0x15d3be();_0x224c81[_0x4932c2([0x73,0x74,0x61,0x74,0x65])]!=_0x4932c2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4932c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2623df,0x73744bd7^_0x97b2b8);}_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2623df();})];return window[_0x4932c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4932c2([0x72,0x61,0x63,0x65])](_0x460ae3)[_0x4932c2([0x74,0x68,0x65,0x6e])](()=>_0x88a94d);}async function _0x592b58(){if(await _0x128c9b,_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x37ab75=_0x37628d[_0x4932c2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3450d1=_0x37628d[_0x4932c2([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])](_0x37ab75[_0x4932c2([0x69,0x64])]),_0x270566=_0x502379(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x270566[_0x4932c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x37ab75['id'],_0x3450d1?_0x3450d1['id']:null,!0x0),_0x270566[_0x4932c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x270566[_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x270566[_0x4932c2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3d269a,void(_0x270566[_0x4932c2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3d269a);}if(_0x256b17(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x31d9ad=_0x502379(_0x4932c2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x31d9ad[_0x4932c2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x31d9ad[_0x4932c2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x31d9ad[_0x4932c2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3d269a,_0x31d9ad[_0x4932c2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3d269a;}_0x224c81[_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4932c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d269a,_0x224c81[_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4932c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d269a,_0x224c81[_0x4932c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4932c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bc768(){return _0x256b17(_0x4932c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x502379(_0x4932c2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4932c2([0x73,0x74,0x61,0x74,0x65])]==_0x4932c2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287090(){return _0x256b17(_0x4932c2([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 _0x431987(){return _0x256b17(_0x4932c2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x142e21(_0x31b05a){const _0x37b81e=_0x3056df();_0x224c81[_0x37b81e]=_0x4932c2([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])+_0x31b05a,_0x31b05a[_0x4932c2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4932c2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3056df()]=_0x2e5285),_0x31b05a!=_0x4932c2([0x56,0x61,0x6c,0x69,0x64])&&_0x592b58();}function _0x3056df(){const _0x5de7e8=window[_0x4932c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4932c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4932c2([0x6e,0x6f,0x77])]())[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4932c2([0x2e]),'');let _0x5d34b8=_0x4932c2([0x73]);for(let _0x10543c=0x0;_0x10543c<_0x5de7e8[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10543c+=0x2){let _0x430f37=window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5de7e8[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10543c,_0x10543c+0x2));_0x430f37>=_0x4298eb[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x430f37-=_0x4298eb[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d34b8+=_0x4298eb[_0x430f37];}return _0x5d34b8;}function _0x294ebb(){const _0x284280=_0x1c772a[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e]));if(0x3!=_0x284280[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c05d4(_0x284280[0x1]);function _0x5c05d4(_0x22ec19){const _0x3dcdd6=_0xa6cbf2(_0x22ec19);return _0x3dcdd6&&_0x159e2e()?_0x3dcdd6:null;function _0x159e2e(){const _0x40704a=_0x3dcdd6[_0x4932c2([0x6a,0x74,0x69])],_0xc1a29e=window[_0x4932c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40704a[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40704a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34858e={..._0x3dcdd6,[_0x4932c2([0x6a,0x74,0x69])]:_0x40704a[_0x4932c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40704a[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34858e[_0x4932c2([0x76,0x63])],_0x46d187(_0x34858e)==_0xc1a29e;}}}async function _0x11fe66(){let _0x4c59fb=!0x0;try{const _0x4aeed3=_0x1c772a[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])](_0x4932c2([0x2e])),[_0x3ddc4f,_0x20d54c,_0x5b0fb6]=_0x4aeed3;return _0xef2568(_0x3ddc4f),await _0x301bde(_0x3ddc4f,_0x20d54c,_0x5b0fb6),_0x4c59fb;}catch{return!0x1;}function _0xef2568(_0x24efe4){const _0x4659b3=_0xa6cbf2(_0x24efe4);_0x4659b3&&_0x4659b3[_0x4932c2([0x61,0x6c,0x67])]==_0x4932c2([0x45,0x53,0x32,0x35,0x36])||(_0x4c59fb=!0x1);}async function _0x301bde(_0x39e8c0,_0x50899e,_0x491cc1){const _0xe0d2c9=window[_0x4932c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4932c2([0x66,0x72,0x6f,0x6d])](_0x585c12(_0x491cc1),_0x220bb0=>_0x220bb0[_0x4932c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ed02b=new window[(_0x4932c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4932c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39e8c0+_0x4932c2([0x2e])+_0x50899e),_0x29e9aa=window[_0x4932c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4932c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29e9aa)return;const _0x3b86d1=await _0x29e9aa[_0x4932c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4932c2([0x6a,0x77,0x6b]),_0x5bbba5,{[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x45,0x43,0x44,0x53,0x41]),[_0x4932c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4932c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29e9aa[_0x4932c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x45,0x43,0x44,0x53,0x41]),[_0x4932c2([0x68,0x61,0x73,0x68])]:{[_0x4932c2([0x6e,0x61,0x6d,0x65])]:_0x4932c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b86d1,_0xe0d2c9,_0x4ed02b)||(_0x4c59fb=!0x1);}}function _0xa6cbf2(_0x1ddd90){return _0x1ddd90[_0x4932c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4932c2([0x65,0x79]))?JSON[_0x4932c2([0x70,0x61,0x72,0x73,0x65])](_0x585c12(_0x1ddd90)):null;}function _0x585c12(_0x4e5e26){return window[_0x4932c2([0x61,0x74,0x6f,0x62])](_0x4e5e26[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4932c2([0x2b]))[_0x4932c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4932c2([0x2f])));}function _0x46d187(_0x52f715){let _0x38ae25=0x1505;function _0x226784(_0x3a00f9){for(let _0x4c2d78=0x0;_0x4c2d78<_0x3a00f9[_0x4932c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c2d78++){const _0x4f0519=_0x3a00f9[_0x4932c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c2d78);_0x38ae25=(_0x38ae25<<0x5)+_0x38ae25+_0x4f0519,_0x38ae25&=_0x38ae25;}}function _0x30e9cd(_0x4c8f2b){Array[_0x4932c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c8f2b)?_0x4c8f2b[_0x4932c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30e9cd):_0x4c8f2b&&typeof _0x4c8f2b==_0x4932c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4932c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c8f2b)[_0x4932c2([0x73,0x6f,0x72,0x74])]()[_0x4932c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19864c,_0x2479af])=>{_0x226784(_0x19864c),_0x30e9cd(_0x2479af);}):_0x226784(window[_0x4932c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c8f2b));}return _0x30e9cd(_0x52f715),_0x38ae25>>>0x0;}function _0x3ccbbc(_0x4c3532){return _0x4c3532[_0x4932c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4932c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4932c2([0x30]));}function _0x56c842(_0x54c428){return _0x54c428[_0x4932c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4932c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4932c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x256b17(_0xcb7486){return _0x224c81[_0x4932c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4932c2([0x68,0x61,0x73])](_0xcb7486);}function _0x502379(_0x515990){return _0x224c81[_0x4932c2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4932c2([0x67,0x65,0x74])](_0x515990);}function _0x3d269a(){}function _0x4932c2(_0xc018e3){return _0xc018e3['map'](_0x5c32b5=>String['fromCharCode'](_0x5c32b5))['join']('');}_0x142e21(await _0x4befb8());}(this);}['createRevision'](_0x368107){const _0x38f622=this['editor']['plugins']['get']('Users');return new I({'id':_0x368107['id'],'name':_0x368107['name'],'creator':_0x368107['creatorId']?_0x38f622['getUser'](_0x368107['creatorId']):null,'diffData':_0x368107['diffData']||_0x368107['data'],'authors':_0x368107['authorsIds']['map'](_0x2e033f=>_0x38f622['getUser'](_0x2e033f)),'createdAt':new Date(_0x368107['createdAt']),'attributes':_0x368107['attributes'],'fromVersion':_0x368107['fromVersion'],'toVersion':_0x368107['toVersion']});}['addRevision'](_0xc380a9,_0x138730=0x0){this['_revisions']['add'](_0xc380a9,_0x138730);}['getRevision'](_0xa4b7b0){return this['_revisions']['get'](_0xa4b7b0);}['getRevisions'](_0x5c5828={'toJSON':!0x1}){const _0x3fa538=Array['from'](this['_revisions']);return _0x3fa538['reverse'](),_0x5c5828['toJSON']?_0x3fa538['map'](_0x868a81=>_0x868a81['toJSON']()):_0x3fa538;}['getIndex'](_0x5ed4d6){return this['_revisions']['getIndex'](_0x5ed4d6);}['getEarlierVisibleRevision'](_0x2b4c29){const [,_0x5f0751]=this['getRevisionsIterator'](_0x2b4c29,{'direction':'earlier'});return _0x5f0751;}['getLaterVisibleRevision'](_0x5bc127){const [,_0x21e477]=this['getRevisionsIterator'](_0x5bc127,{'direction':'later'});return _0x21e477;}['getRevisionsInDiff'](_0x111cd2){const _0x5e0f2a=[];for(const _0x173dff of this['getRevisionsIterator'](_0x111cd2['newRevisionId']))if(_0x5e0f2a['push'](_0x173dff),_0x173dff['id']===_0x111cd2['oldRevisionId'])break;return _0x5e0f2a;}*['getRevisionsIterator'](_0x3f9baf,{direction:_0x5843ef='earlier',filter:_0x286a11=()=>!0x0}={}){const _0x12fd5a='earlier'===_0x5843ef?0x1:-0x1;let _0xc9fc33=this['_revisions']['get'](_0x3f9baf),_0x450d4e=this['getIndex'](_0xc9fc33);for(yield _0xc9fc33;_0xc9fc33;){if(_0x450d4e+=_0x12fd5a,_0xc9fc33=this['getRevision'](_0x450d4e),!_0xc9fc33)return;_0x286a11(_0xc9fc33)&&(yield _0xc9fc33);}}}class $ extends _0x1305a6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x27e06e,'c'],[_0x735ecc,'a'],[_0x3458cf,'e'],[_0x41874f,'r'],[_0x4535de,'u']]);['_typeCharToViewClass']=new Map([['c',_0x27e06e],['a',_0x735ecc],['e',_0x3458cf],['r',_0x41874f],['u',_0x4535de]]);async['loadRevisionData'](_0x5cf160,_0x4d839c){if(_0x5cf160['diffData']||!_0x4d839c)return;const _0x2d14ae=this['editor']['config']['get']('collaboration.channelId'),_0x4d078=await _0x4d839c['getRevision']({'channelId':_0x2d14ae,'revisionId':_0x5cf160['id']});_0x5cf160['diffData']=_0x4d078['diffData'];}['getRevisionDocumentData'](_0x14e09e){const _0x2b98cd={};for(const _0x775f0b in _0x14e09e['diffData']){if(_0x14e09e['diffData'][_0x775f0b]['attachChange']&&!_0x14e09e['diffData'][_0x775f0b]['attachChange']['isAttached'])continue;const _0x42fa4c=this['_removeRevisionMarkers'](JSON['parse'](_0x14e09e['diffData'][_0x775f0b]['insertions'])),_0x4a00b7=this['editor']['editing']['view']['document'],_0x3a5bda=new _0x54b629(_0x4a00b7,_0x42fa4c['map'](_0x17b23e=>this['_getViewFromDiffObj'](_0x17b23e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2b98cd[_0x775f0b]=this['editor']['data']['processor']['toData'](_0x3a5bda),this['editor']['data']['processor']['useFillerType']('default');}return _0x2b98cd;}['getRevisionRootsAttributes'](_0x548022){const _0x37460f={};for(const _0x5ca643 in _0x548022['diffData'])_0x548022['diffData'][_0x5ca643]['attachChange']&&!_0x548022['diffData'][_0x5ca643]['attachChange']['isAttached']||(_0x37460f[_0x5ca643]=_0x548022['diffData'][_0x5ca643]['attributesAfter']||{});return _0x37460f;}['_getTypeCharForViewElement'](_0x15cd16){return this['_viewClassToTypeChar']['get'](_0x15cd16['constructor']);}['_getViewFromDiffObj'](_0x526ec0,_0x2a9177){const _0x23918d=this['editor']['editing']['view']['document'];if('string'==typeof _0x526ec0)return new _0x470b3b(_0x23918d,_0x526ec0);{let _0x2257a6,_0x9e8384;_0x9e8384='u'==_0x526ec0['type']||'r'==_0x526ec0['type']?[]:_0x526ec0['children']['map'](_0x31594c=>this['_getViewFromDiffObj'](_0x31594c,_0x2a9177));const _0x2bdd7c=this['_typeCharToViewClass']['get'](_0x526ec0['type'])||_0x2b40c0,_0x9e5ac2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2257a6=new _0x2bdd7c(_0x23918d,_0x526ec0['name'],_0x526ec0['attributes'],_0x9e8384),'u'==_0x526ec0['type']&&_0x526ec0['children'][0x0]){const _0x2d9131=_0x526ec0['children'][0x0];if(_0x2257a6['render']=function(_0x18729f){const _0x186285=_0x18729f['createElement']('div');return _0x186285['innerHTML']=_0x2d9131,_0x186285['childNodes'][0x0];},_0x2a9177){const _0x123e8c=new _0x54b629(_0x23918d);_0x123e8c['_appendChild'](_0x2257a6);const _0x1521ac=Array['from'](_0x9e5ac2['viewChildrenToDom'](_0x123e8c,{'bind':!0x1})),_0x5277fe=_0x9e5ac2['domDocument']['createElement']('div');_0x5277fe['append'](..._0x1521ac),_0x2257a6=Array['from'](_0x9e5ac2['domChildrenToView'](_0x5277fe))[0x0];}}else{if('r'==_0x526ec0['type']&&_0x526ec0['children'][0x0]){const _0x161b68=_0x526ec0['children'][0x0];if(_0x2257a6['render']=function(_0x5f577e){_0x5f577e['innerHTML']=_0x161b68;},_0x2a9177){const _0x2bb892=new _0x54b629(_0x23918d);_0x2bb892['_appendChild'](_0x2257a6);const _0x3fb6eb=Array['from'](_0x9e5ac2['viewChildrenToDom'](_0x2bb892,{'bind':!0x1})),_0x23db7e=_0x9e5ac2['domDocument']['createElement']('div');_0x23db7e['append'](..._0x3fb6eb);const _0x419aee=Array['from'](_0x9e5ac2['domChildrenToView'](_0x23db7e));_0x419aee['length']>0x1?_0x2257a6['_appendChild'](_0x419aee):_0x2257a6=_0x419aee[0x0];}}}if(_0x526ec0['customProperties']){for(const [_0x1758f9,_0x1730e0]of _0x526ec0['customProperties'])_0x2257a6['_setCustomProperty'](_0x1758f9,_0x1730e0);}const _0xd6fab5=void 0x0===_0x526ec0['fillerOffset']?null:_0x526ec0['fillerOffset'];return null!==_0xd6fab5&&(_0x2257a6['getFillerOffset']=()=>_0xd6fab5),_0x2257a6;}}['_makeModelFromViewString'](_0x5a4922){const _0x3612cc=JSON['parse'](_0x5a4922),_0x585701=this['editor']['editing']['view']['document'],_0x44757b=new _0x54b629(_0x585701,_0x3612cc['map'](_0x2f61bd=>this['_getViewFromDiffObj'](_0x2f61bd,!0x0)));return this['editor']['data']['toModel'](_0x44757b);}['_removeRevisionMarkers'](_0x15d611){return(_0x15d611=_0x15d611['filter'](_0x3f6e53=>!_0x3f6e53['name']||'revision-start'!==_0x3f6e53['name']&&'revision-end'!==_0x3f6e53['name']))['forEach'](_0x5833aa=>{'string'!=typeof _0x5833aa&&(_0x5833aa['children']=this['_removeRevisionMarkers'](_0x5833aa['children']),_0x5833aa['attributes']=_0x5833aa['attributes']['filter'](_0x11245b=>!_0x11245b[0x0]['startsWith']('data-revision-')));}),_0x15d611;}}function R(_0x21d22e,_0x389aff,_0x1f1586){const t=_0x21d22e['t'];switch(_0x389aff){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'},_0x1f1586);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1f1586);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 h extends _0x1305a6{['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[_0x4ca452,S,$,_0x12b2e2];}constructor(_0x1f4a68){super(_0x1f4a68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xd053e0=_0x2e23f1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xd053e0},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 _0x16e1a5=this['repository']['getRevision'](0x0),_0x33b196=_0x16e1a5&&null===_0x16e1a5['creator']?_0x16e1a5:null;if(this['_continueCurrentRevision']=!!_0x33b196&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x237ea2=this['_source']['getCurrentRevisionId'](),_0x25e365=this['repository']['getRevision'](_0x237ea2);if(_0x25e365)this['_startingVersion']=_0x25e365['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38b60e=this['_source']['history']['_operations']['find'](_0x33f720=>!_0x33f720['_isInit']),_0x229ec0=_0x38b60e?_0x38b60e['baseVersion']:this['_source']['history']['version'];_0x16e1a5?(_0x16e1a5['toVersion']<_0x229ec0&&_0x16e1a5['_update']({'toVersion':_0x229ec0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id'],this['_startingVersion']=_0x33b196['fromVersion']):(this['_startingVersion']=_0x16e1a5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x229ec0,this['_continueCurrentRevision']=!0x1);}}else _0x33b196&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x33b196['toVersion'],this['editor']['model']['document']['history']['version']),_0x33b196['fromVersion']===_0x33b196['toVersion']?(0x0!==_0x33b196['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x33b196['id'],this['_startingVersion']=_0x33b196['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',_0x5f5d66=>!_0x5f5d66),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x434ccc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186157;for(const _0x5cfc10 in _0x434ccc){const _0x48d878=_0x5cfc10,_0x526ca6=_0x434ccc[_0x48d878];if('revisionHistoryLicenseKeyValid'==_0x526ca6||'revisionHistoryLicenseKeyInvalid'==_0x526ca6||'revisionHistoryLicenseKeyExpired'==_0x526ca6||'revisionHistoryLicenseKeyDomainLimit'==_0x526ca6||'revisionHistoryLicenseKeyNotAllowed'==_0x526ca6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x526ca6||'revisionHistoryLicenseKeyTrialLimit'==_0x526ca6||'revisionHistoryLicenseKeyUsageLimit'==_0x526ca6){delete _0x434ccc[_0x48d878],_0x186157=_0x526ca6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x186157&&_0x434ccc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x186157&&_0x434ccc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x186157&&_0x434ccc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x186157&&_0x434ccc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x186157&&_0x434ccc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x186157&&_0x434ccc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x186157&&_0x434ccc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x360613=this['repository']['getRevision'](0x0),_0x5875f8=await this['getRevisionDocumentData'](_0x360613),_0x27bf96=await this['getRevisionRootsAttributes'](_0x360613);this['_replaceEditorDataWithRevisionData'](_0x5875f8,_0x27bf96);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2cd678){this['_source']=_0x2cd678;}async['update'](){const _0xdb6b43=await this['_source']['getLatestVersion']();if(_0xdb6b43>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3aa6de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xdb6b43});_0x3aa6de['authors']=_0x3aa6de['authorsIds']['map'](_0x3c86e8=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c86e8)),this['currentRevision']['_update'](_0x3aa6de);}}async['saveRevision'](_0x2a3a62={},_0x5cf760=null){const _0x223455=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5cf760>this['currentRevision']['toVersion']&&(_0x5cf760=null),null===_0x5cf760&&(_0x5cf760=await this['_source']['getLatestVersion']());const _0x1d75f5=this['_getFromVersion'](_0x5cf760),_0x558294=this['buildRevisionData']({'from':_0x1d75f5,'to':_0x5cf760});if(this['currentRevision']['toVersion']<_0x5cf760){const _0x19e2ce=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5cf760,'to':_0x5cf760});_0x19e2ce['authors']=[],_0x19e2ce['authorsIds']=[],_0x19e2ce['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x19e2ce,!0x0),delete _0x19e2ce['authors'],_0x223455['push'](_0x19e2ce);}_0x2a3a62['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3a62['name']=_0x2a3a62['name']||null,_0x2a3a62['id']=_0x2a3a62['id']||_0x2e23f1(),_0x2a3a62={..._0x2a3a62,..._0x558294};const _0xfee374=this['addRevisionData'](_0x2a3a62);_0x223455['push'](_0x2a3a62);const _0x197505=this['repository']['getIndex'](_0xfee374);if(0x0!==_0x197505){const _0x3752ef=this['repository']['getRevision'](_0x197505-0x1);if(_0x3752ef['fromVersion']!==_0x5cf760){const _0x1643fc=this['_revisionDataBuilder']['getData'](_0x5cf760,_0x3752ef['toVersion']),_0x531394={'id':_0x3752ef['id'],'diffData':_0x1643fc['diffData'],'authorsIds':_0x1643fc['authorsIds'],'authors':_0x1643fc['authorsIds']['map'](_0xe4d1ee=>this['editor']['plugins']['get']('Users')['getUser'](_0xe4d1ee)),'fromVersion':_0x5cf760};_0x3752ef===this['currentRevision']&&(_0x531394['createdAt']=new Date(_0x2a3a62['createdAt']['getTime']()+0xa)),_0x3752ef['_update'](_0x531394,!0x0),delete _0x531394['authors'],_0x223455['push'](_0x531394);}}if(this['adapter']){for(const _0x520f0d of _0x223455)this['_bufferUpdate'](_0x520f0d['id'],_0x520f0d,!0x0);this['sendBufferedUpdates']();}return _0xfee374;}['addRevisionData'](_0x5c9d79){const _0x2c181d=this['repository']['createRevision'](_0x5c9d79);return this['adapter']&&_0x2c181d['on']('_update',(_0x4d02ea,_0x1825e5,_0x124a19)=>{_0x124a19||(this['_bufferUpdate'](_0x1825e5['id'],_0x1825e5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c181d,this['_findInsertionIndex'](_0x2c181d)),_0x2c181d;}async['getRevisionDocumentData'](_0x885d87){return await this['_utils']['loadRevisionData'](_0x885d87,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x885d87);}async['getRevisionRootsAttributes'](_0x20c44a){return await this['_utils']['loadRevisionData'](_0x20c44a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20c44a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x138d55=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x27193d=0x0;_0x27193d<_0x138d55['length'];_0x27193d++){const _0x3eb329=_0x138d55[_0x27193d];let _0x2dcdad=!0x1;for(const _0x28e0c8 of Object['keys'](_0x3eb329))void 0x0===_0x3eb329[_0x28e0c8]?delete _0x3eb329[_0x28e0c8]:'id'!==_0x28e0c8&&(_0x2dcdad=!0x0);_0x2dcdad||(_0x138d55[_0x27193d]=null);}if(_0x138d55=_0x138d55['filter'](_0x33cc98=>null!==_0x33cc98),!_0x138d55['length'])return;for(let _0x52a058=0x0;_0x52a058<_0x138d55['length'];_0x52a058++){const _0x1fa665=_0x138d55[_0x52a058];void 0x0!==_0x1fa665['fromVersion']&&void 0x0===_0x1fa665['toVersion']&&(_0x1fa665['toVersion']=this['repository']['getRevision'](_0x1fa665['id'])['toVersion']),void 0x0!==_0x1fa665['toVersion']&&void 0x0===_0x1fa665['fromVersion']&&(_0x1fa665['fromVersion']=this['repository']['getRevision'](_0x1fa665['id'])['fromVersion']);}const _0x58c305=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x138d55,_0x58c305)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x15a9bb=>{if(_0x15a9bb){for(const _0x1ac554 of _0x15a9bb)this['setRevisionData']({'id':_0x1ac554['id'],'createdAt':_0x1ac554['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3c749d=null,from:_0x5741b8=null,to:_0xd16ce9=null}){_0x5741b8=null!==_0x5741b8?_0x5741b8:_0x3c749d['fromVersion'],_0xd16ce9=null!==_0xd16ce9?_0xd16ce9:_0x3c749d['toVersion'];const _0x4f68b5=this['_revisionDataBuilder']['getData'](_0x5741b8,_0xd16ce9),_0xcc1914={'diffData':_0x4f68b5['diffData'],'authorsIds':_0x4f68b5['authorsIds'],'fromVersion':_0x5741b8,'toVersion':_0xd16ce9};if(!_0x3c749d||_0xd16ce9!==_0x3c749d['toVersion']){const _0x1326ad=_0xd16ce9-0x1,_0x5176aa=this['_source']['history']['getOperation'](_0x1326ad);_0xcc1914['createdAt']=_0x5176aa&&_0x5176aa['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5741b8===this['_loadedStateData']['fromVersion']){for(const _0x5133aa of this['_loadedStateData']['authors'])_0xcc1914['authorsIds']['includes'](_0x5133aa['id'])||_0xcc1914['authorsIds']['push'](_0x5133aa['id']);}return _0xcc1914;}['_bufferUpdate'](_0x447ef1,_0x1e33d4,_0x2893fc){if(this['_bufferedUpdates']['has'](_0x447ef1)){const _0x163adb=this['_bufferedUpdates']['get'](_0x447ef1);_0x1e33d4=_0x2893fc?{..._0x163adb,..._0x1e33d4}:{..._0x1e33d4,..._0x163adb};}this['_bufferedUpdates']['set'](_0x447ef1,_0x1e33d4);}['setRevisionData'](_0x504235){const _0x503507=this['repository']['getRevision'](_0x504235['id']);if(_0x504235['createdAt']&&(_0x504235['createdAt']=new Date(_0x504235['createdAt'])),_0x504235['authorsIds']){const _0x51fcc8=this['editor']['plugins']['get']('Users');_0x504235['authors']=_0x504235['authorsIds']['map'](_0x4ce33c=>_0x51fcc8['getUser'](_0x4ce33c));}_0x503507['_update'](_0x504235,!0x0);}['_createInitialRevision'](_0x390b39){const _0x385f3b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x385f3b)this['_initialRevisionId']=_0x385f3b['id'];else{const _0x51a74e=!this['editor']['model']['document']['roots']['find'](_0x48ae27=>this['editor']['model']['hasContent'](_0x48ae27)),_0x57a942=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ef061=R(this['editor']['locale'],_0x51a74e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x390b39,'to':_0x390b39,'id':this['_initialRevisionId'],'name':_0x5ef061,'creatorId':_0x57a942});}}['_createCurrentRevision'](_0x1a9903){const _0xc46b9f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xc46b9f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a9903,'to':_0x1a9903,'id':_0xc46b9f,'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'](_0x58af42,_0x317347){let _0xe13c9f=this['editor']['config']['get']('initialData'),_0x36c1d4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xe13c9f){_0xe13c9f={};for(const _0x509c84 of this['editor']['model']['document']['getRootNames']())_0xe13c9f[_0x509c84]='';}if('string'==typeof _0xe13c9f&&(_0xe13c9f={'main':_0xe13c9f}),void 0x0===_0x36c1d4){_0x36c1d4={};for(const _0x4cd632 of this['editor']['model']['document']['getRootNames']())_0x36c1d4[_0x4cd632]={};}let _0x59a9d3=!0x1;const _0x208ea8=Object['keys'](_0xe13c9f),_0x2b3ebe=Object['keys'](_0x58af42);for(const _0x3b6137 of _0x208ea8){if(_0xe13c9f[_0x3b6137]!==_0x58af42[_0x3b6137]&&''!==_0xe13c9f[_0x3b6137]['trim']()){_0x59a9d3=!0x0;break;}if(!_0x23914e(_0x36c1d4[_0x3b6137],_0x317347[_0x3b6137])&&Object['keys'](_0x36c1d4[_0x3b6137])['length']>0x0){_0x59a9d3=!0x0;break;}}_0x59a9d3||(_0x59a9d3=_0x2b3ebe['some'](_0x1bb477=>!this['editor']['model']['document']['getRoot'](_0x1bb477))),_0x59a9d3&&_0x43702b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xe13c9f,'editorRootsAttributes':_0x36c1d4,'revisionData':_0x58af42,'revisionRootsAttributes':_0x317347}),this['editor']['config']['set']('initialData',_0x58af42),this['editor']['config']['set']('rootsAttributes',_0x317347);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52dd5b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52dd5b['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37bfad){const _0x4b25bc=this['repository']['getRevisions']();_0x4b25bc['reverse']();let _0x286d42=0x0;for(;_0x286d42<_0x4b25bc['length'];){const _0x560c8d=_0x4b25bc[_0x286d42];if(_0x560c8d===this['currentRevision']){_0x286d42++;continue;}if(_0x560c8d['id']===this['_initialRevisionId'])break;const _0x3fc46f=_0x37bfad['toVersion']-_0x560c8d['toVersion']||_0x37bfad['fromVersion']-_0x560c8d['fromVersion'];if(_0x3fc46f>0x0)break;if(_0x3fc46f<0x0)_0x286d42++;else{if(!_0x37bfad['creator']&&_0x560c8d['creator'])break;if(_0x560c8d['creator']||!_0x37bfad['creator']){if(_0x37bfad['createdAt']>_0x560c8d['createdAt'])break;_0x286d42++;}else _0x286d42++;}}return _0x286d42;}['_getFromVersion'](_0x5ccc62){const _0x236a0f=this['repository']['getRevisions']();_0x236a0f['reverse'](),_0x236a0f['shift']();const _0xf751f6=_0x236a0f['find'](_0x453eff=>_0x453eff['toVersion']<=_0x5ccc62)['toVersion'];return _0xf751f6<this['_startingVersion']?this['_startingVersion']:_0xf751f6;}['_makeRevision']({name:_0x1fa1e1,from:_0x1bbeb8,to:_0x2f0146,creatorId:_0x14f87e,id:_0x592533}){const _0x50c4ed=this['buildRevisionData']({'from':_0x1bbeb8,'to':_0x2f0146});_0x50c4ed['name']=_0x1fa1e1,_0x50c4ed['creatorId']=_0x14f87e,_0x50c4ed['id']=_0x592533;const _0x2c68f5=this['addRevisionData'](_0x50c4ed);return this['adapter']&&this['_bufferUpdate'](_0x50c4ed['id'],_0x50c4ed,!0x0),_0x2c68f5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x373278){this['editor']=_0x373278,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'](_0x5e0415){this['source']=_0x5e0415;const _0x45a850=new Map(),_0x24b80c=new Map(),_0x587b2c=this['editor']['model']['document']['roots']['map'](_0x42d814=>_0x42d814['rootName']);for(const _0x11a6dc of _0x587b2c){const _0x5a323c=this['editor']['model']['document']['getRoot'](_0x11a6dc),_0x3384ac=x(_0x5a323c);_0x45a850['set'](_0x11a6dc,_0x3384ac),_0x24b80c['set'](_0x11a6dc,Object['fromEntries'](_0x5a323c['getAttributes']()));}const _0x3f1cc2=Array['from'](this['editor']['model']['markers'])['map'](_0x59f775=>[_0x59f775['name'],_0x59f775['getRange']()]),_0x5ac951=this['source']['version'];this['_saveMetaData'](_0x5ac951,_0x45a850,_0x3f1cc2,_0x24b80c),this['_startingRevisionId']=this['_revisionId'];const _0x371f9c=new Map(),_0x31b313=new Map();for(const _0x268991 of _0x587b2c){const _0x10bd95=N(_0x268991);_0x371f9c['set'](_0x268991,_0x10bd95),_0x31b313['set'](_0x268991,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x371f9c,[],_0x31b313);}['getData'](_0xa4bdb3,_0x54853c){if(this['_lastFrom']===_0xa4bdb3&&this['_lastTo']<=_0x54853c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x54853c,!0x0);else{if(!this['_savedMetaData']['has'](_0xa4bdb3)){const _0x1d9eb1=this['_getPreviousFrom'](_0xa4bdb3);this['_calculateMetaData'](_0x1d9eb1,_0xa4bdb3,!0x1);}this['_calculateMetaData'](_0xa4bdb3,_0x54853c,!0x0);}return this['_lastFrom']=_0xa4bdb3,this['_lastTo']=_0x54853c,this['_getState']();}['loadState'](_0x1c2c22){const _0x748f62=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1c2c22['fromVersion'],this['_lastTo']=_0x1c2c22['toVersion'];for(const _0x300b5e in _0x1c2c22['diffData']){const _0x317ccd=_0x1c2c22['diffData'][_0x300b5e]['attachChange'],_0x5d2af6=_0x25ff9b(_0x1c2c22['diffData'][_0x300b5e]['attributesBefore'])||{},_0x26bd25=_0x748f62['_makeModelFromViewString'](_0x1c2c22['diffData'][_0x300b5e]['deletions']);_0x26bd25['rootName']=_0x300b5e,_0x26bd25['_isAttached']=!_0x317ccd||!_0x317ccd['isAttached'],_0x26bd25['isAttached']=()=>_0x26bd25['_isAttached'],this['_baseRoots']['set'](_0x300b5e,_0x26bd25),this['_baseRootsAttributes']['set'](_0x300b5e,_0x5d2af6),_0x317ccd&&this['_touchedRoots']['set'](_0x300b5e,_0x317ccd);const _0x367ab0=this['_makeIdsRoot'](_0x26bd25);this['_baseIdsRoots']['set'](_0x300b5e,_0x367ab0);for(const [_0x226457,_0x34dc8f]of _0x26bd25['markers']){if(!_0x226457['startsWith']('revision:'))continue;const _0x33bd27=_0x226457['split'](':')[0x2];for(const _0x5af942 of _0x34dc8f['getWalker']({'singleCharacters':!0x0})){const _0x20e4b2=this['_getVidAttributeName'](_0x5af942),_0xf149a2='elementEnd'==_0x5af942['type']?_0x5af942['previousPosition']['path']['slice'](0x0,-0x1):_0x5af942['previousPosition']['path'],_0xb44b36=_0x367ab0['getNodeByPath'](_0xf149a2)['getAttribute'](_0x20e4b2);this['_touched']['set'](_0xb44b36,{'userId':_0x33bd27});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2761b8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x479b1e=>!this['_touched']['has'](_0x479b1e));let _0x25d636=0x0;const _0x37697b=new Map();for(const _0x2595c1 in _0x1c2c22['diffData']){const _0x886255=_0x1c2c22['diffData'][_0x2595c1]['attachChange'],_0x15be2f=_0x25ff9b(_0x1c2c22['diffData'][_0x2595c1]['attributesAfter'])||{},_0x4bd491=_0x748f62['_makeModelFromViewString'](_0x1c2c22['diffData'][_0x2595c1]['insertions']);_0x4bd491['rootName']=_0x2595c1,_0x4bd491['_isAttached']=!_0x886255||_0x886255['isAttached'],_0x4bd491['isAttached']=()=>_0x4bd491['_isAttached'],this['_diffRoots']['set'](_0x2595c1,_0x4bd491),this['_diffRootsAttributes']['set'](_0x2595c1,_0x15be2f);const _0x444fb0=this['_makeIdsRoot'](_0x4bd491,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2595c1,_0x444fb0),_0x37697b['set'](_0x2595c1,_0x4bd491['isAttached']()?_0x15be2f:{});for(const [_0x16c1f9,_0x365c0e]of _0x4bd491['markers']){if(!_0x16c1f9['startsWith']('revision:'))continue;const _0x2af9b1=_0x16c1f9['split'](':')[0x2];for(const _0x553a69 of _0x365c0e['getWalker']({'singleCharacters':!0x0})){const _0x469693=this['_getVidAttributeName'](_0x553a69),_0x18b27d=this['_revisionId']++,_0x102b02='elementEnd'==_0x553a69['type']?_0x553a69['previousPosition']['path']['slice'](0x0,-0x1):_0x553a69['previousPosition']['path'];_0x444fb0['getNodeByPath'](_0x102b02)['_setAttribute'](_0x469693,_0x18b27d),this['_touched']['set'](_0x18b27d,{'userId':_0x2af9b1});}}for(const _0x393323 of this['editor']['model']['createRangeIn'](_0x4bd491)['getWalker']({'singleCharacters':!0x0})){const _0x464eb1=this['_getVidAttributeName'](_0x393323),_0x235838='elementEnd'==_0x393323['type']?_0x393323['previousPosition']['path']['slice'](0x0,-0x1):_0x393323['previousPosition']['path'],_0x86486e=_0x444fb0['getNodeByPath'](_0x235838);_0x86486e['getAttribute'](_0x464eb1)>0x0||_0x86486e['_setAttribute'](_0x464eb1,_0x2761b8[_0x25d636++]);}for(const [_0x5b8229,_0x23e28d]of _0x4bd491['markers'])_0x5b8229['startsWith']('revision:')||this['_markers']['set'](_0x5b8229,_0x23e28d);}const _0x1e8dd2=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1e8dd2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e8dd2,0x1));const _0x2235ce=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2235ce),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2235ce,0x1));const _0x3c1b02=Array['from'](this['_diffRoots'])['map'](([_0x5c9a04,_0x1f5737])=>[_0x5c9a04,x(_0x1f5737)]);this['_saveMetaData'](this['_lastTo'],_0x3c1b02,this['_markers'],_0x37697b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3e5ef4,_0x48a71e,_0x21f041,_0x5f44f1){const _0x425ca7=new Map(_0x48a71e),_0x164af2=new Map(_0x25ff9b(_0x5f44f1)),_0x4ee697=new Map();for(const [_0x5a5545,_0x4ea785]of _0x21f041)_0x4ee697['set'](_0x5a5545,{'start':_0x4ea785['start']['clone'](),'end':_0x4ea785['end']['clone'](),'rootName':_0x4ea785['root']['rootName']});this['_savedMetaData']['set'](_0x3e5ef4,{'roots':_0x425ca7,'markers':_0x4ee697,'rootsAttributes':_0x164af2});}['_removeMetaData'](_0x1bb233){this['_savedMetaData']['delete'](_0x1bb233);}['_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'](_0x637966,_0x30e093=null){let _0x45576f=null;_0x637966['is']('documentFragment')||(_0x45576f=new _0x220be8(_0x637966['name'],{'vid_start':null===_0x30e093?this['_revisionId']++:_0x30e093++}));const _0x5efa4a=[];for(const _0x3487cc of _0x637966['getChildren']())if(_0x3487cc['is']('element')){_0x5efa4a['push'](this['_makeIdsRoot'](_0x3487cc,_0x30e093));const _0x69406e=_0x5efa4a[_0x5efa4a['length']-0x1];null!==_0x30e093&&(_0x30e093=_0x69406e['is']('element','$text')?_0x69406e['getAttribute']('vid')+0x1:_0x69406e['getAttribute']('vid_end')+0x1);}else{for(let _0x3f866d=0x0;_0x3f866d<_0x3487cc['offsetSize'];_0x3f866d++)_0x5efa4a['push'](new _0x220be8('$text',{'vid':null===_0x30e093?this['_revisionId']++:_0x30e093++}));}if(_0x637966['is']('documentFragment')){const _0x1d254b=N(_0x637966['rootName']);return _0x1d254b['_insertChild'](0x0,_0x5efa4a),_0x1d254b;}return _0x45576f['_setAttribute']('vid_end',null===_0x30e093?this['_revisionId']++:_0x30e093++),_0x45576f['_insertChild'](0x0,_0x5efa4a),_0x45576f;}['_calculateMetaData'](_0x489c83,_0x4e364f,_0x19850f){this['_reset']();const {roots:_0x479fb7,markers:_0x3a5147,rootsAttributes:_0x335176}=this['_savedMetaData']['get'](_0x489c83);this['_baseRoots']=new Map(_0x479fb7),this['_baseRootsAttributes']=new Map(_0x25ff9b(_0x335176));for(const [_0x2124b5,_0x4432c6]of this['_baseRoots'])if('$graveyard'!==_0x2124b5&&(this['_diffRoots']['set'](_0x2124b5,x(_0x4432c6)),this['_diffRootsAttributes']=new Map(_0x25ff9b(_0x335176)),_0x19850f)){const _0x135583=this['_revisionId'];this['_idsRoots']['set'](_0x2124b5,this['_makeIdsRoot'](_0x4432c6)),this['_baseIdsRoots']['set'](_0x2124b5,this['_makeIdsRoot'](_0x4432c6,_0x135583));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x19850f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cd080,_0x2da971]of _0x3a5147){const _0xa79c96=this['_baseRoots']['get'](_0x2da971['rootName']),_0x5ccfc0=this['_diffRoots']['get'](_0x2da971['rootName']),_0xde12ee=new _0x15b2d1(this['_fixPosition'](_0x2da971['start'],_0xa79c96),this['_fixPosition'](_0x2da971['end'],_0xa79c96)),_0x25dc30=this['_fixRange'](_0xde12ee,_0x5ccfc0);_0xa79c96['markers']['set'](_0x1cd080,_0xde12ee),this['_markers']['set'](_0x1cd080,_0x25dc30);}this['_applyOperations'](_0x489c83,_0x4e364f,_0x19850f);}['_applyOperations'](_0x73783a,_0x2bd38f,_0xb26621){for(const _0x327e22 of this['source']['getOperations'](_0x73783a,_0x2bd38f))this['_handleOperation'](_0x327e22,_0xb26621);for(const _0x521a15 of this['_diffRoots']['values']())_0x521a15['markers']['clear']();for(const [_0x57145c,_0x4dcda5]of this['_markers']){this['_diffRoots']['get'](_0x4dcda5['root']['rootName'])['markers']['set'](_0x57145c,_0x4dcda5['clone']());}const _0x4896b=new Map(),_0x4253d3=new Map();for(const [_0x376a97,_0xa9bb45]of this['_diffRoots'])_0x4896b['set'](_0x376a97,x(_0xa9bb45)),_0x4253d3['set'](_0x376a97,this['_diffRootsAttributes']['get'](_0x376a97));this['_saveMetaData'](_0x2bd38f,_0x4896b,this['_markers'],_0x4253d3);}['_getPreviousFrom'](_0x797d56){const _0x27ab24=Array['from'](this['_savedMetaData']['keys']());_0x27ab24['sort']((_0x23d1c0,_0x54c978)=>_0x23d1c0-_0x54c978),_0x27ab24['reverse']();for(const _0x432bad of _0x27ab24)if(_0x432bad<_0x797d56)return _0x432bad;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4b9fd2,_0x3ccbc9){const _0x519da9=Array['from'](_0x3ccbc9['markers'])['map'](([_0x1e9d90,_0x2776ba])=>[_0x1e9d90,this['_fixRange'](_0x2776ba,_0x4b9fd2)]);_0x4b9fd2['markers']=new Map(_0x519da9);}['_transformMarkers'](_0x114a64){for(const _0x4663fd of this['_markers']['values']()){const _0x3a0a4d=_0x4663fd['getTransformedByOperation'](_0x114a64),_0x44fa44=_0x15b2d1['_createFromRanges'](_0x3a0a4d);_0x4663fd['start']=_0x44fa44['start'],_0x4663fd['end']=_0x44fa44['end'];}}['_handleOperation'](_0x488795,_0x24d761){if('addRoot'!=_0x488795['type']&&'detachRoot'!=_0x488795['type']){if('insert'==_0x488795['type']){const _0x4cbc13=_0x488795['position']['root']['rootName'];this['_diffRoots']['has'](_0x4cbc13)||(this['_diffRoots']['set'](_0x4cbc13,N(_0x4cbc13,!0x0)),this['_diffRootsAttributes']['set'](_0x4cbc13,{}),_0x24d761&&this['_idsRoots']['set'](_0x4cbc13,N(_0x4cbc13,!0x0)));}else{if('addRootAttribute'==_0x488795['type']||'removeRootAttribute'==_0x488795['type']||'changeRootAttribute'==_0x488795['type'])return void this['_handleRootAttributeOperation'](_0x488795);'marker'==_0x488795['type']&&this['_handleMarkerOperation'](_0x488795);}if('marker'!==_0x488795['type']){const _0x14b7d8=this['_cloneOperation'](_0x488795,this['_diffRoots']);_0x14b7d8['_execute'](),this['_transformMarkers'](_0x14b7d8);}if(_0x24d761)switch(_0x488795['type']){case'insert':this['_handleInsertOperation'](_0x488795);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x488795);break;case'merge':this['_handleMergeOperation'](_0x488795);break;case'split':this['_handleSplitOperation'](_0x488795);}}else this['_handleRootOperation'](_0x488795,_0x24d761);}['_cloneOperation'](_0x584862,_0x352771){const _0x4468b0=_0x584862['clone']();return _0x4468b0['_authorId']=_0x584862['_authorId'],this['_fixOperation'](_0x4468b0,_0x352771),_0x4468b0;}['_getBaseVids'](_0x1aa30f){return _0x1aa30f['map'](_0x4c943f=>{const _0x160873=this['_getVidAttributeName'](_0x4c943f);return Number(_0x4c943f['item']['getAttribute'](_0x160873));});}['_generateTape'](_0x16989a,_0x596cb5){if(_0x16989a['is']('element','$text'))_0x596cb5['push']({'item':_0x16989a,'type':'text'});else{_0x16989a['is']('element')&&_0x596cb5['push']({'item':_0x16989a,'type':'elementStart'});for(const _0x52611b of _0x16989a['getChildren']())this['_generateTape'](_0x52611b,_0x596cb5);_0x16989a['is']('element')&&_0x596cb5['push']({'item':_0x16989a,'type':'elementEnd'});}return _0x596cb5;}['_getState'](){const _0x23aa3c=new Map(this['_touched']),_0x359b8b=new Map(_0x23aa3c),_0x3ae746=new Map(),_0x19d0be={'insertions':{},'deletions':{}},_0x22e51c={'insertions':{},'deletions':{}},_0x238147=new Map(),_0x29b945=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29b945['delete']('$graveyard');for(const _0x115e67 of _0x29b945){const _0x3eeabf=this['_diffRoots']['get'](_0x115e67)||N(_0x115e67,!0x1),_0x1c77c5=this['_baseRoots']['get'](_0x115e67)||N(_0x115e67,!0x1);_0x3eeabf['isAttached']()||_0x1c77c5['isAttached']()?(_0x19d0be['insertions'][_0x115e67]=x(_0x3eeabf),_0x19d0be['deletions'][_0x115e67]=x(_0x1c77c5),this['_copyMarkers'](_0x19d0be['deletions'][_0x115e67],_0x1c77c5),this['_copyMarkers'](_0x19d0be['insertions'][_0x115e67],_0x3eeabf),_0x22e51c['insertions'][_0x115e67]=this['_generateTape'](this['_idsRoots']['get'](_0x115e67),[]),_0x22e51c['deletions'][_0x115e67]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x115e67)||N(_0x115e67,!0x1),[])):_0x29b945['delete'](_0x115e67);}for(const _0x3c10df of _0x29b945){const _0x24ef1a=_0x22e51c['insertions'][_0x3c10df];for(const _0x5833e7 of _0x24ef1a){const _0xa3d792=this['_getVidAttributeName'](_0x5833e7),_0x2c68c8=_0x5833e7['item']['getAttribute'](_0xa3d792);_0x359b8b['delete'](_0x2c68c8),_0x2c68c8>=this['_startingRevisionId']&&_0x3ae746['set'](_0x2c68c8,_0x23aa3c['get'](_0x2c68c8));}}for(const _0x2d533a of _0x29b945){const _0x21979d=_0x22e51c['insertions'][_0x2d533a],_0x2d2d3=this['_getBaseVids'](_0x22e51c['deletions'][_0x2d533a]);let _0x4763b8=0x0;for(const _0x1b3219 of _0x21979d){const _0x535f9f=this['_getVidAttributeName'](_0x1b3219),_0x16d23e=_0x1b3219['item']['getAttribute'](_0x535f9f);if(!_0x3ae746['has'](_0x16d23e)&&!_0x238147['has'](_0x16d23e)){if(_0x359b8b['has'](_0x16d23e))_0x4763b8++;else{if(_0x16d23e!=_0x2d2d3[_0x4763b8]){const _0x38d123=_0x23aa3c['get'](_0x16d23e)||_0x23aa3c['get'](_0x2d2d3[_0x4763b8]);for(;_0x16d23e!=_0x2d2d3[_0x4763b8];)_0x359b8b['has'](_0x2d2d3[_0x4763b8])||(_0x238147['set'](_0x2d2d3[_0x4763b8],_0x38d123),_0x23aa3c['set'](_0x2d2d3[_0x4763b8],_0x38d123)),_0x4763b8++;}_0x4763b8++;}}}}for(const _0x2480af of _0x29b945){const _0x5c21e4=_0x22e51c['insertions'][_0x2480af];for(const _0x358ef5 of _0x5c21e4){const _0x59440c=this['_getVidAttributeName'](_0x358ef5),_0x100e49=_0x358ef5['item']['getAttribute'](_0x59440c);if(_0x238147['has'](_0x100e49)){const _0x2eb8dd=_0x238147['get'](_0x100e49);_0x359b8b['has'](_0x100e49)||_0x359b8b['set'](_0x100e49,{..._0x2eb8dd}),_0x3ae746['set'](_0x100e49,{..._0x2eb8dd});}}}for(const _0x641fc of _0x359b8b['keys']())_0x641fc>=this['_startingRevisionId']&&_0x359b8b['delete'](_0x641fc);const _0x73c013=new Map();for(const _0x5c9adf of _0x29b945){let _0x19b88=_0x22e51c['insertions'][_0x5c9adf];for(const _0x48b5af of _0x19b88)if(_0x48b5af['item']['is']('element','tableCell')){const _0x2fac83=this['_getVidAttributeName'](_0x48b5af),_0x5c230c=_0x48b5af['item']['getAttribute'](_0x2fac83);if(_0x3ae746['has'](_0x5c230c)){const _0x49799f=_0x48b5af['item']['parent']['parent']['getAttribute']('vid_start'),_0x94f538=_0x73c013['get'](_0x49799f)||new Set();_0x94f538['add'](_0x3ae746['get'](_0x5c230c)['userId']),_0x73c013['set'](_0x49799f,_0x94f538);}}_0x19b88=_0x22e51c['deletions'][_0x5c9adf];for(const _0x41e3b4 of _0x19b88)if(_0x41e3b4['item']['is']('element','tableCell')){const _0x5512e2=this['_getVidAttributeName'](_0x41e3b4),_0x4baad8=_0x41e3b4['item']['getAttribute'](_0x5512e2);if(_0x359b8b['has'](_0x4baad8)){const _0x5d781d=_0x41e3b4['item']['parent']['parent']['getAttribute']('vid_start'),_0x29bb36=_0x73c013['get'](_0x5d781d)||new Set();_0x29bb36['add'](_0x359b8b['get'](_0x4baad8)['userId']),_0x73c013['set'](_0x5d781d,_0x29bb36);}}for(const _0x40ba36 of _0x73c013['keys']())(_0x3ae746['has'](_0x40ba36)||_0x359b8b['has'](_0x40ba36))&&_0x73c013['delete'](_0x40ba36);}for(const _0x532032 of _0x29b945){const _0x3e8fde=_0x22e51c['insertions'][_0x532032];let _0x1ecf87=null,_0x302499=null;for(const _0x48da21 of _0x3e8fde){const _0x1cfbb0=this['_getVidAttributeName'](_0x48da21),_0x16fca1=_0x48da21['item']['getAttribute'](_0x1cfbb0),_0x5c1048=_0x73c013['get'](_0x16fca1);_0x5c1048&&'elementStart'==_0x48da21['type']&&(_0x1ecf87=Array['from'](_0x5c1048)[0x0],_0x302499=_0x48da21['item']['getAttribute']('vid_end')),_0x1ecf87&&(_0x359b8b['set'](_0x16fca1,{'userId':_0x1ecf87}),_0x3ae746['set'](_0x16fca1,{'userId':_0x1ecf87})),_0x16fca1==_0x302499&&(_0x1ecf87=null,_0x302499=null);}}const _0x4a64ef={},_0x5822cc=new Set();for(const _0x298f16 of _0x29b945){const _0x57e31a=_0x19d0be['deletions'][_0x298f16],_0x4bb12c=_0x19d0be['insertions'][_0x298f16];for(const {userId:_0x292f59}of this['_touchedMarkers']['values']())null!==_0x292f59&&_0x5822cc['add'](_0x292f59);for(const {userId:_0x2001ed}of this['_touchedRoots']['values']())null!==_0x2001ed&&_0x5822cc['add'](_0x2001ed);this['_markChanges'](_0x4bb12c,_0x22e51c['insertions'][_0x298f16],_0x3ae746,'insertion',_0x5822cc),this['_markChanges'](_0x57e31a,_0x22e51c['deletions'][_0x298f16],_0x359b8b,'deletion',_0x5822cc),_0x4a64ef[_0x298f16]={'insertions':this['_prepareViewToSave'](_0x4bb12c),'deletions':this['_prepareViewToSave'](_0x57e31a),'attachChange':this['_touchedRoots']['get'](_0x298f16)||null,'attributesBefore':_0x25ff9b(this['_baseRootsAttributes']['get'](_0x298f16))||{},'attributesAfter':_0x25ff9b(this['_diffRootsAttributes']['get'](_0x298f16))};}return{'diffData':_0x4a64ef,'authorsIds':Array['from'](_0x5822cc)};}['_processRootBeforeSave'](_0x40ffc8){for(const [,_0x51807d]of _0x40ffc8['markers']){const _0x24d626=_0x51807d['start']['getAncestors']()['filter'](_0x3e815d=>'tableCell'==_0x3e815d['name']);for(const _0x16b184 of _0x24d626)0x1==_0x16b184['childCount']&&_0x16b184['getChild'](0x0)['is']('element','paragraph')&&_0x16b184['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x53b804){this['_processRootBeforeSave'](_0x53b804);const _0x4b0be8=this['editor']['data']['toView'](_0x53b804,{}),_0x20769c=Array['from'](_0x4b0be8['getChildren']())['map'](_0x3cdd8d=>this['_getViewJson'](_0x3cdd8d));return JSON['stringify'](_0x20769c);}['_getViewJson'](_0x3c8f98){if(_0x3c8f98['is']('$text'))return _0x3c8f98['data'];{const _0x25af97=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x34bd6d=_0x3c8f98,_0x7aac05=this['editor']['data']['htmlProcessor']['domConverter'],_0x56cc03={'type':_0x25af97['_getTypeCharForViewElement'](_0x34bd6d),'name':_0x34bd6d['name'],'attributes':Array['from'](_0x34bd6d['getAttributes']()),'children':Array['from'](_0x34bd6d['getChildren']())['map'](_0x3413a0=>this['_getViewJson'](_0x3413a0))};if(_0x3c8f98['is']('uiElement')&&'$comment'!=_0x3c8f98['name']){const _0x2ddddb=_0x3c8f98['render'](_0x7aac05['domDocument'],_0x7aac05);_0x56cc03['children']['push'](_0x2ddddb['outerHTML']);}else{if(_0x3c8f98['is']('rawElement')){const _0x4c21f8=_0x7aac05['domDocument']['createElement'](_0x34bd6d['name']);_0x3c8f98['render'](_0x4c21f8,_0x7aac05),_0x56cc03['children']['push'](_0x4c21f8['innerHTML']);}}const _0x3d0ef7=Array['from'](_0x34bd6d['getCustomProperties']());_0x3d0ef7['length']>0x0&&(_0x56cc03['customProperties']=_0x3d0ef7);const _0x3d8876=_0x34bd6d['getFillerOffset']();return null!==_0x3d8876&&(_0x56cc03['fillerOffset']=_0x3d8876),_0x56cc03;}}['_markChanges'](_0x165a5b,_0x4ade8b,_0x297da3,_0x3afff1,_0x41b250){let _0x3b43fe=null,_0x4d8855=null,_0x7c97aa=0x0;const _0x343181=this['editor']['model'];for(let _0x32fdd5=0x0;_0x32fdd5<_0x4ade8b['length'];_0x32fdd5++){const _0x581fb8=this['_getVidAttributeName'](_0x4ade8b[_0x32fdd5]),_0x450b8a=_0x4ade8b[_0x32fdd5]['item']['getAttribute'](_0x581fb8),_0x5ddf8e=_0x297da3['get'](_0x450b8a),_0x5d79af=_0x32fdd5==_0x4ade8b['length']-0x1;(!_0x3b43fe&&_0x5ddf8e&&(_0x3b43fe=_0x5ddf8e,_0x4d8855=_0x4ade8b[_0x32fdd5]),_0x3b43fe&&(!_0x5ddf8e||_0x5ddf8e['userId']!=_0x3b43fe['userId']))&&(_0x35c36d(_0x5ddf8e,P(_0x4d8855,_0x165a5b,_0x343181),P(_0x4ade8b[_0x32fdd5],_0x165a5b,_0x343181)),_0x3b43fe=_0x5ddf8e||null,_0x4d8855=_0x5ddf8e?_0x4ade8b[_0x32fdd5]:null),_0x3b43fe&&_0x5d79af&&_0x35c36d(_0x5ddf8e,P(_0x4d8855,_0x165a5b,_0x343181),V(_0x4ade8b[_0x32fdd5],_0x165a5b,_0x343181));}function _0x35c36d(_0x50b44b,_0x3a8069,_0xe4246d){const _0x25260c=_0x3b43fe['userId'],_0x2497b1='revision:'+_0x3afff1+':'+_0x25260c+':'+_0x7c97aa++,_0x196562=_0x343181['createRange'](_0x3a8069,_0xe4246d);_0x165a5b['markers']['set'](_0x2497b1,_0x196562),null!==_0x25260c&&_0x41b250['add'](_0x25260c);}}['_getVidAttributeName'](_0x5ea6f9){switch(_0x5ea6f9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e6acb,_0x243d86){_0x3e6acb['baseVersion']=null;for(const _0x41fedc in _0x3e6acb){const _0x1addc5=_0x3e6acb[_0x41fedc];if(_0x1addc5 instanceof _0xb51ac3){const _0x8fb270=_0x243d86['get'](_0x1addc5['root']['rootName']);_0x3e6acb[_0x41fedc]=this['_fixPosition'](_0x1addc5,_0x8fb270);}if(_0x1addc5 instanceof _0x15b2d1){const _0x4040fc=_0x243d86['get'](_0x1addc5['root']['rootName']);_0x3e6acb[_0x41fedc]=this['_fixRange'](_0x1addc5,_0x4040fc);}'root'===_0x41fedc&&(_0x3e6acb['root']=_0x243d86['get'](_0x3e6acb['root']['rootName']));}}['_fixRange'](_0x2d8b10,_0x4552e7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2d8b10['start'],_0x4552e7),this['_fixPosition'](_0x2d8b10['end'],_0x4552e7));}['_fixPosition'](_0x3003fb,_0x3c408a){return this['editor']['model']['createPositionFromPath'](_0x3c408a,_0x3003fb['path'],_0x3003fb['stickiness']);}['_handleInsertOperation'](_0x1d5441){const _0x35c1b2=this['_idsRoots']['get'](_0x1d5441['position']['root']['rootName']),_0x5317ae=this['_fixPosition'](_0x1d5441['position'],_0x35c1b2),_0x168acd=null===_0x1d5441['_authorId']?null:_0x1d5441['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a78c2=_0x5317ae['parent'],_0x5b95f2=this['_revisionId'],_0x1cd563=[];for(const _0x385c6b of _0x1d5441['nodes'])if(_0x385c6b['is']('element'))_0x1cd563['push'](this['_makeIdsRoot'](_0x385c6b));else{for(let _0x5bee9a=0x0;_0x5bee9a<_0x385c6b['offsetSize'];_0x5bee9a++)_0x1cd563['push'](new _0x220be8('$text',{'vid':this['_revisionId']++}));}const _0x3942be=this['_revisionId'];for(let _0x27e27e=_0x5b95f2;_0x27e27e<_0x3942be;_0x27e27e++)this['_touched']['set'](_0x27e27e,{'userId':_0x168acd});_0x5a78c2['_insertChild'](_0x5317ae['offset'],_0x1cd563);}['_handleMoveOperation'](_0x28aec2){(_0x28aec2=this['_cloneOperation'](_0x28aec2,this['_idsRoots']))['_execute']();const _0x5effa2=null===_0x28aec2['_authorId']?null:_0x28aec2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f22a8=_0x28aec2['getMovedRangeStart'](),_0x344f72=_0x5f22a8['parent'],_0x1adf30=_0x5f22a8['offset'];!function _0x506200(_0x113531,_0x54c5d8,_0x1abab9,_0x228965){for(let _0x4177f1=_0x1abab9;_0x4177f1<_0x228965;_0x4177f1++){const _0x100d48=_0x54c5d8['getChild'](_0x4177f1);_0x100d48['is']('element','$text')?_0x113531['set'](_0x100d48['getAttribute']('vid'),{'userId':_0x5effa2}):(_0x113531['set'](_0x100d48['getAttribute']('vid_start'),{'userId':_0x5effa2}),_0x506200(_0x113531,_0x100d48,0x0,_0x100d48['childCount']),_0x113531['set'](_0x100d48['getAttribute']('vid_end'),{'userId':_0x5effa2}));}}(this['_touched'],_0x344f72,_0x1adf30,_0x1adf30+_0x28aec2['howMany']);}['_handleMergeOperation'](_0xacfbc8){const _0x460468=null===(_0xacfbc8=this['_cloneOperation'](_0xacfbc8,this['_idsRoots']))['_authorId']?null:_0xacfbc8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cacb2=_0xacfbc8['targetPosition']['parent'],_0xfa83db=_0xacfbc8['sourcePosition']['parent'],_0x51ee37=_0x2cacb2['getAttribute']('vid_end'),_0x2438bb=_0xfa83db['getAttribute']('vid_start');_0x2cacb2['_setAttribute']('vid_end',_0xfa83db['getAttribute']('vid_end')),_0xfa83db['_setAttribute']('vid_end',_0x51ee37),this['_touched']['set'](_0x2438bb,{'userId':_0x460468}),this['_touched']['set'](_0x51ee37,{'userId':_0x460468}),_0xacfbc8['_execute']();}['_handleSplitOperation'](_0x22cf66){const _0x320c8e=null===(_0x22cf66=this['_cloneOperation'](_0x22cf66,this['_idsRoots']))['_authorId']?null:_0x22cf66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a599d=_0x22cf66['graveyardPosition'],_0x2a7a1f=_0x22cf66['splitPosition']['parent'];_0x22cf66['_execute']();const _0x355655=_0x2a7a1f['getAttribute']('vid_end'),_0x1d690c=_0x22cf66['insertionPosition']['nodeAfter'];if(_0x4a599d){const _0x4ed64d=_0x1d690c['getAttribute']('vid_end'),_0x1576a4=_0x2a7a1f['getAttribute']('vid_end');_0x2a7a1f['_setAttribute']('vid_end',_0x4ed64d),_0x1d690c['_setAttribute']('vid_end',_0x1576a4),this['_touched']['set'](_0x2a7a1f['getAttribute']('vid_end'),{'userId':_0x320c8e}),this['_touched']['set'](_0x1d690c['getAttribute']('vid_start'),{'userId':_0x320c8e});}else{const _0x2f9d7d=this['_revisionId']++,_0x24d044=this['_revisionId']++;_0x2a7a1f['_setAttribute']('vid_end',_0x2f9d7d),_0x1d690c['_setAttribute']('vid_start',_0x24d044),_0x1d690c['_setAttribute']('vid_end',_0x355655),this['_touched']['set'](_0x2f9d7d,{'userId':_0x320c8e}),this['_touched']['set'](_0x24d044,{'userId':_0x320c8e});}}['_handleMarkerOperation'](_0x3a52ff){if(!_0x3a52ff['affectsData'])return;const _0x70b74f=(_0x3a52ff=this['_cloneOperation'](_0x3a52ff,this['_diffRoots']))['oldRange']?_0x3a52ff['oldRange']['root']:null,_0x21cef8=_0x3a52ff['newRange']?_0x3a52ff['newRange']['root']:null;_0x70b74f&&this['_markers']['delete'](_0x3a52ff['name']),_0x21cef8&&this['_markers']['set'](_0x3a52ff['name'],_0x3a52ff['newRange']['clone']());const _0xb2d356=null===_0x3a52ff['_authorId']?null:_0x3a52ff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42e5c7=_0x3a52ff['name'];if(!this['_touchedMarkers']['has'](_0x42e5c7))return void this['_touchedMarkers']['set'](_0x42e5c7,{'range':_0x3a52ff['oldRange'],'userId':_0xb2d356});const _0x302573=this['_touchedMarkers']['get'](_0x42e5c7),_0x5bf3a2=_0x302573['range'],_0x173e06=_0x3a52ff['newRange'];null==_0x5bf3a2&&null==_0x173e06||_0x5bf3a2&&_0x173e06&&_0x5bf3a2['isEqual'](_0x173e06)?this['_touchedMarkers']['delete'](_0x3a52ff['name']):_0x302573['userId']=_0xb2d356;}['_handleRootOperation'](_0x76b8d6,_0x3c2597){this['_diffRoots']['has'](_0x76b8d6['rootName'])?this['_diffRoots']['get'](_0x76b8d6['rootName'])['_isAttached']=_0x76b8d6['isAdd']:(this['_diffRoots']['set'](_0x76b8d6['rootName'],N(_0x76b8d6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x76b8d6['rootName'],{}),_0x3c2597&&this['_idsRoots']['set'](_0x76b8d6['rootName'],N(_0x76b8d6['rootName'],!0x0)));const _0x1a726a=null===_0x76b8d6['_authorId']?null:_0x76b8d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x259725=this['_touchedRoots']['get'](_0x76b8d6['rootName']);_0x259725&&_0x259725['userId']===_0x1a726a?this['_touchedRoots']['delete'](_0x76b8d6['rootName']):this['_touchedRoots']['set'](_0x76b8d6['rootName'],{'userId':_0x1a726a,'isAttached':_0x76b8d6['isAdd']});}['_handleRootAttributeOperation'](_0x32add9){const _0x2e2f1e=this['_diffRootsAttributes']['get'](_0x32add9['root']['rootName']);null===_0x32add9['newValue']?delete _0x2e2f1e[_0x32add9['key']]:_0x2e2f1e[_0x32add9['key']]=_0x32add9['newValue'];}}function x(_0x44591a){const _0x4577b2=N(_0x44591a['rootName'],_0x44591a['isAttached']());for(const _0x13295b of _0x44591a['getChildren']()){const _0x565bac=_0x13295b['_clone'](!0x0);_0x4577b2['_appendChild'](_0x565bac);}return _0x4577b2;}function N(_0x1196d4,_0x19a9a9=!0x0){const _0xc7127e=new _0x24dd64();return _0xc7127e['rootName']=_0x1196d4,_0xc7127e['_isAttached']=_0x19a9a9,_0xc7127e['isAttached']=()=>_0xc7127e['_isAttached'],_0xc7127e;}function P(_0x4dd2b7,_0x15cd45,_0x4fcf00){const _0x83e6c7='elementEnd'==_0x4dd2b7['type']?_0x4fcf00['createPositionAt'](_0x4dd2b7['item'],'end'):_0x4fcf00['createPositionBefore'](_0x4dd2b7['item']);return _0x4fcf00['createPositionFromPath'](_0x15cd45,_0x83e6c7['path'],_0x83e6c7['stickiness']);}function V(_0x35deb8,_0x59051a,_0x5e86c5){const _0x4412f8='elementStart'==_0x35deb8['type']?_0x5e86c5['createPositionAt'](_0x35deb8['item'],0x0):_0x5e86c5['createPositionAfter'](_0x35deb8['item']);return _0x5e86c5['createPositionFromPath'](_0x59051a,_0x4412f8['path'],_0x4412f8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x59796b(_0x5afe72){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5ac9fa,_0x362af8){super(_0x5ac9fa),this['focusTracker']=new _0xd221d5(),this['keystrokes']=new _0x567867(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x362af8),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2f1169({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x226fad=_0x399b0a=>_0x399b0a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x226fad),this['keystrokes']['set']('arrowleft',_0x226fad),this['keystrokes']['set']('arrowup',_0x226fad),this['keystrokes']['set']('arrowdown',_0x226fad);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2390ce){this['revisionNameInputView']['fieldView']['element']['value']=_0x2390ce['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x382104){const _0x1ba84f=new et(this['locale'],ti),_0x5d4586=_0x1ba84f['fieldView'];_0x5d4586['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x248118=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x382104&&(_0x248118+='\x20('+R(this['locale'],'optional')+')'),(_0x1ba84f['label']=_0x248118,_0x5d4586['on']('input',()=>{this['revisionNameInputValue']=_0x5d4586['element']['value']['trim']();}),_0x1ba84f);}}class v extends _0x1305a6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x607c3b=this['editor'],_0x126dc6=_0x607c3b['plugins']['get']('RevisionTracker');_0x607c3b['ui']['componentFactory']['add']('revisionHistory',_0x598c59=>{const _0x205121=_0x5191d3(_0x598c59),_0x561bbf=_0x205121['panelView']['children'],_0x1f8862=new _0xa2f141(_0x598c59),_0x4c30a6=new _0x3b47c2(_0x598c59),_0x3919e9=new _0x20e177(_0x598c59),_0x7e59cc=new _0x3b47c2(_0x598c59),_0x3c0f39=new _0x20e177(_0x598c59);return _0x205121['bind']('isEnabled')['to'](_0x126dc6,'isReady',_0x126dc6,'isEnabled',_0x607c3b,'isReadOnly',(_0x1f4445,_0x1b3606,_0x5d279c)=>_0x1f4445&&_0x1b3606&&!_0x5d279c),_0x205121['buttonView']['set']({'icon':_0x317799,'label':R(_0x598c59,'Revision\x20history'),'tooltip':!0x0}),_0x3919e9['set']({'label':R(_0x598c59,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3919e9['bind']('isEnabled')['to'](_0x126dc6,'isReady',_0x126dc6,'isEnabled',_0x607c3b,'isReadOnly',(_0x19445f,_0x3dd6f0,_0x5df363)=>_0x19445f&&_0x3dd6f0&&!_0x5df363),_0x3919e9['on']('execute',()=>this['_showDialog']()),_0x3c0f39['set']({'label':R(_0x598c59,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3c0f39['bind']('isEnabled')['to'](_0x126dc6,'isReady',_0x607c3b,'isReadOnly',(_0x4e2d70,_0x21558c)=>_0x4e2d70&&!_0x21558c),_0x3c0f39['on']('execute',()=>{_0x607c3b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x205121['isOpen']=!0x1,_0x607c3b['editing']['view']['focus']();}),_0x4c30a6['children']['add'](_0x3919e9),_0x7e59cc['children']['add'](_0x3c0f39),_0x1f8862['role']='menu',_0x1f8862['items']['addMany']([_0x4c30a6,_0x7e59cc]),_0x561bbf['add'](_0x1f8862),_0x205121;}),_0x607c3b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x89ccfe=this['editor'],_0xc3d00=_0x89ccfe['locale'],_0x50ab5c=new _0xaf22f1(_0xc3d00),_0x2c870c=new _0xb503e8(_0xc3d00);_0x50ab5c['buttonView']['set']({'icon':_0x317799,'label':R(_0xc3d00,'Revision\x20history')});const _0x7f00e6=new _0x5c1894(_0xc3d00,_0x50ab5c),_0x502552=new _0x2a248b(_0xc3d00);_0x502552['set']({'label':R(_0xc3d00,'Save\x20current\x20revision')}),_0x502552['delegate']('execute')['to'](_0x50ab5c),_0x502552['on']('execute',()=>{this['_showDialog']();}),_0x7f00e6['children']['add'](_0x502552),_0x2c870c['items']['add'](_0x7f00e6);const _0x57f0f1=new _0x5c1894(_0xc3d00,_0x50ab5c),_0x2a8dc3=new _0x2a248b(_0xc3d00);return _0x2a8dc3['set']({'label':R(_0xc3d00,'Open\x20revision\x20history')}),_0x2a8dc3['delegate']('execute')['to'](_0x50ab5c),_0x2a8dc3['on']('execute',()=>{_0x89ccfe['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x57f0f1['children']['add'](_0x2a8dc3),_0x2c870c['items']['add'](_0x57f0f1),_0x50ab5c['panelView']['children']['add'](_0x2c870c),_0x50ab5c;}['_showDialog'](){const _0x5c073a=this['editor'],_0xb784ee=_0x5c073a['locale'],_0x94125f=_0x5c073a['plugins']['get']('Dialog'),_0x40ba5c=_0x5c073a['plugins']['get']('RevisionTracker');function _0x26e40e(_0x50eb04){_0x5c073a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x50eb04['revisionName']?_0x50eb04['revisionNameInputView']['errorText']=R(_0xb784ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5c073a['plugins']['get'](h)['saveRevision']({'name':_0x50eb04['revisionName']}),_0x94125f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26e40e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x94125f['show']({'id':'revisionSave','title':R(_0xb784ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x5c073a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x94125f['hide']()},{'label':R(_0x5c073a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4c65e9){_0x4c65e9['bind']('isEnabled')['to'](_0x40ba5c,'isReady',_0x40ba5c,'isEnabled',_0x5c073a,'isReadOnly',(_0x1f8d44,_0x1ba5d2,_0x56b11e)=>_0x1f8d44&&_0x1ba5d2&&!_0x56b11e);},'onExecute':()=>_0x26e40e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25258a=this['editor'],_0x24ad85=_0x25258a['locale'];this['_saveRevisionFormView']=new me(_0x24ad85,_0x25258a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5afe72{['changeId'];['_model'];constructor(_0x46700c,_0xb288b){super(_0x46700c),this['_model']=_0xb288b,this['changeId']=_0xb288b['id'];const _0x186e46=this['bindTemplate'],_0x35b5de=R(_0x46700c,_0xb288b['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb288b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb288b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x186e46['to']('type',_0x28975c=>'ck-revision-change__'+_0x28975c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x35b5de}]},{'text':'\x20'+_0xb288b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4f3aac(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51ba98){super(),this['id']=_0x51ba98['id']||_0x2e23f1(),this['author']=_0x51ba98['author'],this['type']=_0x51ba98['type'],this['data']=_0x51ba98['data']||{},this['rootName']=_0x51ba98['rootName'],this['set']('createdAt',_0x51ba98['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1dcbcb,_0x4983be){this['newRevisionId']=_0x1dcbcb,this['oldRevisionId']=_0x4983be,this['changes']=new _0xd01162();}['_setChanges'](_0x5f563f){for(const _0x5266d4 of _0x5f563f)this['changes']['add'](_0x5266d4);}}class l extends _0x1305a6{['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[_0x4ca452,_0xbad7fb,S,$];}constructor(_0x1777be){super(_0x1777be),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',(_0x2d0ce7,_0x508280,_0x55d399)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x173d37=>{for(const _0x335b18 of this['editor']['editing']['view']['document']['roots'])_0x55d399?_0x173d37['removeClass']('ck-editor__editable__overlay',_0x335b18):_0x173d37['addClass']('ck-editor__editable__overlay',_0x335b18);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3d8d14=>null!==_0x3d8d14),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5eeb1a,_0x112f0a,_0x48605c)=>_0x5eeb1a&&_0x48605c?_0x112f0a['changes']['getIndex'](_0x48605c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3d6c59,_0x4afb67)=>_0x3d6c59?_0x4afb67['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xbad7fb);}['init'](){const _0x1dd41f=this['editor'],_0x334c0e=new rt(_0x1dd41f,{'direction':'backward'}),_0x5bb826=new rt(_0x1dd41f,{'direction':'forward'});(_0x1dd41f['commands']['add']('showPreviousChange',_0x334c0e),_0x1dd41f['commands']['add']('showNextChange',_0x5bb826),_0x1dd41f['commands']['add']('restoreRevision',new nt(_0x1dd41f)),this['on']('change:numberOfChanges',()=>{_0x334c0e['refresh'](),_0x5bb826['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1dd41f['enableReadOnlyMode']('revision-viewer'),_0x1dd41f['plugins']['has']('WidgetToolbarRepository'))&&_0x1dd41f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2acfc2){return await this['_utils']['loadRevisionData'](_0x2acfc2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2acfc2);}async['getRevisionRootsAttributes'](_0x36789f){return await this['_utils']['loadRevisionData'](_0x36789f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x36789f);}async['compare'](_0x500841,_0x2131ba,_0x1ec71d=!0x1){if(!this['isEnabled'])return;const _0x2cb7b6=this['diff'],_0x3f546d=this['repository'],_0x76093b='string'==typeof _0x500841?_0x3f546d['getRevision'](_0x500841):_0x500841,_0x574194='string'==typeof _0x2131ba?_0x3f546d['getRevision'](_0x2131ba):_0x2131ba,_0x4a5239=_0x76093b['id'],_0x268304=_0x574194?_0x574194['id']:null;if(!_0x1ec71d&&this['diff']&&this['diff']['newRevisionId']===_0x4a5239&&this['diff']['oldRevisionId']===_0x268304)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4a5239,_0x268304);const _0x399228=this['_getRevisionsRange'](_0x76093b,_0x574194,!0x0)['map'](_0x24ad54=>this['_utils']['loadRevisionData'](_0x24ad54,this['adapter']));return _0x399228['push'](new Promise(_0x10eb3c=>{setTimeout(_0x10eb3c,0x14);})),Promise['all'](_0x399228)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x476a1f=this['_getDiff'](_0x4a5239,_0x268304);for(const _0x15f256 of _0x476a1f['changes'])this['_changeIdToChange']['set'](_0x15f256['id'],_0x15f256);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x41d124=>{for(const _0x452eb1 of this['editor']['model']['document']['getRootNames']())_0x41d124['detachRoot'](_0x452eb1);for(const _0x236c32 of Object['keys'](_0x476a1f['model'])){const _0xa0bb61=_0x41d124['addRoot'](_0x236c32);for(const _0x2bc8e0 of Object['keys'](_0x476a1f['attributes'][_0x236c32]))_0x41d124['setAttribute'](_0x2bc8e0,_0x476a1f['attributes'][_0x236c32][_0x2bc8e0],_0xa0bb61);_0x41d124['insert'](_0x476a1f['model'][_0x236c32],_0xa0bb61,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x476a1f['changes'])),this['isReady']=!0x0;})['catch'](_0x3a4aaf=>{console['error'](_0x3a4aaf),this['_cleanUp'](),_0x2cb7b6&&(this['diff']=_0x2cb7b6),this['isReady']=!0x0;});}['addRevisionData'](_0x35947b,_0xa41f62){const _0x140cd5=this['repository']['createRevision'](_0x35947b);return _0x140cd5['on']('_update',(_0x6a3cac,_0x2bf102,_0x5a6b19)=>_0xa41f62(_0x2bf102,_0x5a6b19,_0x140cd5)),this['repository']['addRevision'](_0x140cd5),_0x140cd5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x58fd73=>{for(const _0x271bb0 of this['editor']['model']['document']['getRootNames']())_0x58fd73['detachRoot'](_0x271bb0);});}['_sortAndFilterDiffChanges'](_0x16e237){const _0x199b42=[],_0x2864ac=new Map();for(const _0x228954 of this['editor']['model']['document']['getRootNames']()){const _0x4c6dc5=this['editor']['editing']['view']['getDomRoot'](_0x228954);if(!_0x4c6dc5)continue;const _0x29840c=_0x4c6dc5['getClientRects']()['item'](0x0);_0x29840c&&(_0x199b42['push'](_0x228954),_0x2864ac['set'](_0x228954,_0x29840c));}return _0x199b42['sort']((_0x427859,_0x4b1424)=>{const _0xa16261=_0x2864ac['get'](_0x427859),_0xbc1243=_0x2864ac['get'](_0x4b1424);return _0xa16261['y']-_0xbc1243['y']||_0xa16261['x']-_0xbc1243['x'];}),(_0x16e237=_0x16e237['filter'](_0x31b193=>_0x199b42['includes'](_0x31b193['rootName'])))['sort']((_0x5b1370,_0x56fb3d)=>_0x199b42['indexOf'](_0x5b1370['rootName'])-_0x199b42['indexOf'](_0x56fb3d['rootName'])),_0x16e237;}['_makeTape'](_0x30d3b3){const _0x21f2a7=Array['from'](_0x30d3b3['markers'])['filter'](([_0x418677,_0xf7813a])=>_0x418677['startsWith']('revision:')&&!_0xf7813a['isCollapsed']),_0x31c4fd=Array['from'](this['editor']['model']['createRangeIn'](_0x30d3b3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x21f2a7['length'])for(const _0x52317b of _0x31c4fd){const [_0x1162ef,_0x3e3ba4]=_0x21f2a7[0x0],[,_0x5004cf,_0x153efb]=_0x1162ef['split'](':');if(_0x3e3ba4['end']['isEqual'](_0x52317b['nextPosition'])&&_0x21f2a7['shift'](),(_0x52317b['previousPosition']['isEqual'](_0x3e3ba4['start'])||_0x52317b['previousPosition']['isAfter'](_0x3e3ba4['start']))&&('insertion'==_0x5004cf?_0x52317b['isAdded']={'userId':_0x153efb}:'deletion'==_0x5004cf&&(_0x52317b['isRemoved']={'userId':_0x153efb})),0x0==_0x21f2a7['length'])break;}return _0x31c4fd;}['_refreshStartEndIndex'](_0x321123){const _0x445d2c=new Map();for(let _0xb01356=0x0;_0xb01356<_0x321123['length'];_0xb01356++)'text'===_0x321123[_0xb01356]['type']?(_0x321123[_0xb01356]['item']['startIndex']=_0xb01356,_0x321123[_0xb01356]['item']['endIndex']=_0xb01356):('elementStart'===_0x321123[_0xb01356]['type']?_0x321123[_0xb01356]['item']['startIndex']=_0xb01356:'elementEnd'===_0x321123[_0xb01356]['type']&&(_0x321123[_0xb01356]['item']['endIndex']=_0xb01356),_0x445d2c['set'](_0x321123[_0xb01356]['id'],_0xb01356));for(const _0x2be6b1 of _0x445d2c['values']())'elementStart'===_0x321123[_0x2be6b1]['type']?_0x321123[_0x2be6b1]['item']['endIndex']=_0x445d2c['get'](_0x321123[_0x2be6b1]['pairId']):'elementEnd'===_0x321123[_0x2be6b1]['type']&&(_0x321123[_0x2be6b1]['item']['startIndex']=_0x445d2c['get'](_0x321123[_0x2be6b1]['pairId']));}['_processTape'](_0x5987e4){for(let _0x225eb3=0x0;_0x225eb3<_0x5987e4['length'];_0x225eb3++){if('elementStart'===_0x5987e4[_0x225eb3]['type'])_0x5987e4[_0x225eb3]['item']['startIndex']=_0x225eb3;else{if('elementEnd'===_0x5987e4[_0x225eb3]['type']){_0x5987e4[_0x225eb3]['item']['endIndex']=_0x225eb3;const _0x36ae5f=_0x5987e4[_0x225eb3]['item']['startIndex'];_0x5987e4[_0x36ae5f]['pairId']=_0x5987e4[_0x225eb3]['id'],_0x5987e4[_0x225eb3]['pairId']=_0x5987e4[_0x36ae5f]['id'];}else _0x5987e4[_0x225eb3]['item']['startIndex']=_0x225eb3,_0x5987e4[_0x225eb3]['item']['endIndex']=_0x225eb3,_0x5987e4[_0x225eb3]['pairId']=null;}_0x5987e4[_0x225eb3]['markersStart']||(_0x5987e4[_0x225eb3]['markersStart']=[],_0x5987e4[_0x225eb3]['markersEnd']=[]);}}['_markInsertions'](_0x4c4955,_0x229767){const _0x318381=_0x4c4955['filter'](_0x24eb9d=>!_0x24eb9d['isAdded']);for(let _0x5484b0=0x0;_0x5484b0<_0x229767['length'];_0x5484b0++)_0x229767[_0x5484b0]['isAdded']&&(_0x318381[_0x5484b0]['isAdded']=_0x229767[_0x5484b0]['isAdded']);}['_getDiff'](_0xcd699a,_0x53db85=null){const _0x258ae5=this['repository']['getRevision'](_0xcd699a),_0x2e6165=_0x53db85?this['repository']['getRevision'](_0x53db85):null,_0x366671=this['_getRevisionsRange'](_0x258ae5,_0x2e6165),_0x9d0061=_0x366671[_0x366671['length']-0x1],_0x40dcc5=new Map(),_0x2c4a79={'model':{},'attributes':{},'changes':[]},_0x7f832d=new Set(),_0x2fd9d5=new Map();for(let _0x4171d1=_0x366671['length']-0x1;_0x4171d1>=0x0;_0x4171d1--){const _0x4a278c=_0x366671[_0x4171d1];for(const _0x4e3fd2 of Object['keys'](_0x4a278c['diffData']))if(_0x4a278c['diffData'][_0x4e3fd2]['attachChange']){const _0x53b522=_0x4a278c['diffData'][_0x4e3fd2]['attachChange'];_0x53b522['isAttached']?(_0x7f832d['add'](_0x4e3fd2),_0x2fd9d5['has'](_0x4e3fd2)&&_0x2fd9d5['get'](_0x4e3fd2)['userId']==_0x53b522['userId']?_0x2fd9d5['delete'](_0x4e3fd2):_0x2fd9d5['set'](_0x4e3fd2,_0x53b522)):_0x2fd9d5['has'](_0x4e3fd2)?(_0x7f832d['delete'](_0x4e3fd2),_0x2fd9d5['delete'](_0x4e3fd2)):(_0x7f832d['add'](_0x4e3fd2),_0x2fd9d5['set'](_0x4e3fd2,_0x53b522));}else _0x7f832d['add'](_0x4e3fd2);}for(const _0x2ddefc of _0x7f832d){const _0xa5ac47=_0x2fd9d5['has'](_0x2ddefc)&&!_0x2fd9d5['get'](_0x2ddefc)['isAttached'];let _0x1d167f=_0xa5ac47?_0x366671['length']-0x1:0x0;const _0x450776=_0xa5ac47?-0x1:0x1;for(;_0x366671[_0x1d167f];){const _0x168a51=_0x366671[_0x1d167f];if(_0x168a51['diffData'][_0x2ddefc]){const _0x51b072=_0xa5ac47?_0x168a51['diffData'][_0x2ddefc]['attributesBefore']:_0x168a51['diffData'][_0x2ddefc]['attributesAfter'];_0x2c4a79['attributes'][_0x2ddefc]=_0x51b072?_0x25ff9b(_0x51b072):{};break;}_0x1d167f+=_0x450776;}}for(const _0xe72f88 of _0x366671){_0xe72f88['model']={};for(const _0x2b0f3c of _0xe72f88['authors'])_0x40dcc5['set'](_0x2b0f3c['id'],_0x2b0f3c);for(const _0x19fc3f of _0x7f832d){const _0x5a6fd7=_0xe72f88['diffData'][_0x19fc3f]?_0xe72f88['diffData'][_0x19fc3f]['insertions']:'[]',_0x12e338=_0xe72f88['diffData'][_0x19fc3f]?_0xe72f88['diffData'][_0x19fc3f]['deletions']:'[]';_0xe72f88['model'][_0x19fc3f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a6fd7),'deletions':this['_utils']['_makeModelFromViewString'](_0x12e338)};}}for(const _0x3f37fa of _0x7f832d){let _0x314de1=null,_0x1c23e8=0x0;const _0x124576=new Map(Array['from'](_0x258ae5['model'][_0x3f37fa]['insertions']['markers'])['filter'](([_0x1b036b])=>!_0x1b036b['startsWith']('revision:')));let _0x1a4bb0=0x0;for(const _0x3791c of _0x366671){const _0x28d55b=this['_makeTape'](_0x3791c['model'][_0x3f37fa]['insertions']);_0x3791c==_0x258ae5?(_0x314de1=_0x28d55b,_0x1c23e8=_0x314de1['length'],_0x314de1['forEach'](_0x198a32=>{_0x198a32['id']=_0x1a4bb0++;}),this['_processTape'](_0x314de1)):this['_markInsertions'](_0x314de1,_0x28d55b);const _0x3fc545=_0x314de1['filter'](_0xbf1002=>!_0xbf1002['isAdded'])['map'](_0x5d8e03=>_0x5d8e03['id']);let _0x4899b4=0x0;const _0x22c740=this['_makeTape'](_0x3791c['model'][_0x3f37fa]['deletions']);_0x22c740['forEach'](_0x302259=>{_0x302259['isRemoved']?_0x302259['id']=_0x1c23e8++:_0x302259['id']=_0x3fc545[_0x4899b4++];}),this['_processTape'](_0x22c740),this['_setDistance'](_0x314de1,'isAdded'),this['_setDistance'](_0x22c740,'isRemoved'),_0x3791c==_0x258ae5&&this['_markMarkers'](_0x314de1,_0x124576),_0x314de1=this['_joinTapes'](_0x314de1,_0x22c740),this['_refreshStartEndIndex'](_0x314de1),this['_setDistance'](_0x314de1,'isRemoved');}_0x314de1=_0x314de1['filter'](_0x4a4dd8=>!(_0x4a4dd8['isAdded']&&_0x4a4dd8['isRemoved']));const _0x35982a=new Map(_0x9d0061['model'][_0x3f37fa]['deletions']['markers']),_0x57b3c5=new Set(_0x124576['keys']());for(const _0x25d5d9 of _0x35982a['keys']())_0x57b3c5['delete'](_0x25d5d9);this['_markSuggestions'](_0x314de1,_0x57b3c5),this['_fixObsoleteTags'](_0x314de1),_0x314de1=this['_removeMissingPairs'](_0x314de1),_0x314de1=this['_markMismatchedRemovedTags'](_0x314de1),_0x314de1=this['_removeUnsupportedChanges'](_0x314de1);const {root:_0x397eda,changes:_0x191851}=this['_makeModelFromTape'](_0x314de1,_0x40dcc5,_0x3f37fa);_0x2c4a79['model'][_0x3f37fa]=_0x397eda;const _0x5e4ab4=_0x2fd9d5['get'](_0x3f37fa);if(_0x5e4ab4){const _0x4bf44e=_0x40dcc5['get'](_0x5e4ab4['userId']),_0x596f46=new G({'author':_0x4bf44e,'type':_0x5e4ab4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3f37fa});_0x191851['unshift'](_0x596f46),_0x2c4a79['attributes'][_0x3f37fa]['revisionHistoryAttachChange']=_0x596f46['id'];}_0x2c4a79['changes']=_0x2c4a79['changes']['concat'](_0x191851);}return _0x2c4a79;}['_markMarkers'](_0x467837,_0x5896e4){for(let _0x14ee08=0x0;_0x14ee08<_0x467837['length'];_0x14ee08++)for(const [_0x5c635c,_0x4ef32c]of _0x5896e4)!_0x4ef32c['isCollapsed']&&_0x4ef32c['start']['isEqual'](_0x467837[_0x14ee08]['previousPosition'])&&_0x467837[_0x14ee08]['markersStart']['push'](_0x5c635c),_0x4ef32c['end']['isEqual'](_0x467837[_0x14ee08]['nextPosition'])&&_0x467837[_0x14ee08]['markersEnd']['push'](_0x5c635c);}['_joinTapes'](_0x4d1f22,_0x3243cb){let _0x24d006=[],_0x104793=0x0,_0x3ac0e7=0x0;for(;_0x104793<_0x4d1f22['length']||_0x3ac0e7<_0x3243cb['length'];){const _0x3a1467=_0x4d1f22[_0x104793]||{},_0x39e4e2=_0x3243cb[_0x3ac0e7]||{};if(_0x3a1467['id']==_0x39e4e2['id'])_0x104793++,_0x3ac0e7++,_0x24d006['push'](_0x3a1467);else{if(_0x39e4e2['isRemoved']&&_0x3a1467['isAdded']){const {commonTape:_0x56228b,iEnd:_0x295c1e,jEnd:_0x5a5826}=this['_threeWayMerge'](_0x4d1f22,_0x104793,_0x3243cb,_0x3ac0e7);_0x24d006=_0x24d006['concat'](_0x56228b),_0x104793=_0x295c1e,_0x3ac0e7=_0x5a5826;}else _0x39e4e2['isRemoved']?(_0x3ac0e7++,_0x24d006['push'](_0x39e4e2)):(_0x104793++,_0x24d006['push'](_0x3a1467));}}return _0x24d006;}['_markSuggestions'](_0x1fac04,_0x3f4fb1){const _0x778c64=[];for(let _0x28b5da=0x0;_0x28b5da<_0x1fac04['length'];_0x28b5da++){for(let _0x339be5=0x0;_0x339be5<_0x1fac04[_0x28b5da]['markersStart']['length'];_0x339be5++){const _0x418aaf=_0x1fac04[_0x28b5da]['markersStart'][_0x339be5];if(!_0x3f4fb1['has'](_0x418aaf))continue;const {group:_0x2bf8f6,type:_0xa8391,authorId:_0xf6531e}=_0x5edcda(_0x418aaf);'revision-suggestion'!=_0x2bf8f6||'insertion'!=_0xa8391&&'deletion'!=_0xa8391||(_0x778c64['unshift']({'type':_0xa8391,'name':_0x418aaf,'userId':_0xf6531e}),_0x1fac04[_0x28b5da]['markersStart']['splice'](_0x339be5,0x1),_0x339be5--);}_0x176e65(_0x1fac04[_0x28b5da]);for(let _0xddc3db=0x0;_0xddc3db<_0x1fac04[_0x28b5da]['markersEnd']['length'];_0xddc3db++){const _0x361fb4=_0x1fac04[_0x28b5da]['markersEnd'][_0xddc3db];if(!_0x3f4fb1['has'](_0x361fb4))continue;const {group:_0x4b4eef,type:_0x4066de}=_0x5edcda(_0x361fb4);if('revision-suggestion'!=_0x4b4eef||'insertion'!=_0x4066de&&'deletion'!=_0x4066de)continue;_0x1fac04[_0x28b5da]['markersEnd']['splice'](_0xddc3db,0x1),_0xddc3db--;const _0x3d2b65=_0x778c64['findIndex'](_0x30bfdc=>_0x30bfdc['name']==_0x361fb4);_0x3d2b65>-0x1&&_0x778c64['splice'](_0x3d2b65,0x1);}}function _0x5edcda(_0x2502e3){const _0x27d553=_0x2502e3['split'](':');return{'group':_0x27d553[0x0],'type':_0x27d553[0x1],'subType':_0x27d553['length']>=0x5?_0x27d553[0x2]:null,'id':_0x27d553['length']<0x5?_0x27d553[0x2]:_0x27d553[0x3],'authorId':_0x27d553['length']<0x5?_0x27d553[0x3]:_0x27d553[0x4],'markerCount':0x6==_0x27d553['length']?_0x27d553[0x5]:null};}function _0x176e65(_0x59848e){for(let _0x31f301=0x0;_0x31f301<_0x778c64['length'];_0x31f301++){if(_0x59848e['isAdded']&&'insertion'==_0x778c64[_0x31f301]['type']&&_0x59848e['isAdded']['userId']==_0x778c64[_0x31f301]['userId'])return _0x59848e['isAddSuggestion']=_0x778c64[_0x31f301],void delete _0x59848e['isAdded'];if(!_0x59848e['isAdded']&&!_0x59848e['isRemoved']&&'deletion'==_0x778c64[_0x31f301]['type'])return void(_0x59848e['isRemoveSuggestion']=_0x778c64[_0x31f301]);}}}['_setDistance'](_0x4eb68b,_0x2296ff){let _0x318042=0x0,_0x1fdf9b=!0x1;const _0x288f19=new Map();for(const _0x44dc56 of _0x4eb68b)_0x44dc56[_0x2296ff]?_0x1fdf9b&&(_0x318042++,_0x1fdf9b=!0x1):(_0x318042++,_0x1fdf9b=!0x0),_0x288f19['set'](_0x44dc56['id'],_0x318042);for(let _0x48cb7e=0x0;_0x48cb7e<_0x4eb68b['length'];_0x48cb7e++){if('isRemoved'==_0x2296ff&&_0x4eb68b[_0x48cb7e]['isAdded']||'isAdded'==_0x2296ff&&_0x4eb68b[_0x48cb7e]['isRemoved'])continue;if('text'==_0x4eb68b[_0x48cb7e]['type']){_0x4eb68b[_0x48cb7e]['distance']=0x0;continue;}const _0x3ec854=_0x288f19['get'](_0x4eb68b[_0x48cb7e]['pairId']),_0x3d3ee7=_0x288f19['get'](_0x4eb68b[_0x48cb7e]['id']);_0x4eb68b[_0x48cb7e]['distance']=_0x3ec854-_0x3d3ee7;}}['_getRevisionsRange'](_0x27de6d,_0x3c4bb8,_0x39ae42=!0x1){const _0x284085=[];let _0x3d30c6=this['repository']['getIndex'](_0x27de6d),_0x36448f=this['repository']['getIndex'](_0x3c4bb8);for(-0x1==_0x36448f&&(_0x36448f=this['repository']['_revisions']['length'],_0x39ae42=!0x1);_0x3d30c6<_0x36448f;)_0x284085['push'](this['repository']['getRevision'](_0x3d30c6)),_0x3d30c6++;return _0x39ae42&&_0x284085['push'](this['repository']['getRevision'](_0x3d30c6)),_0x284085;}['_threeWayMerge'](_0xb1897d,_0x35d320,_0x1814ed,_0x1551bb){const _0x1f740c=this['editor']['model']['schema'];let _0x4dd67a=_0x35d320;for(;_0xb1897d[_0x4dd67a]&&_0xb1897d[_0x4dd67a]['isAdded'];)_0x4dd67a++;let _0x182ce8=_0x1551bb;for(;_0x1814ed[_0x182ce8]&&_0x1814ed[_0x182ce8]['isRemoved'];)_0x182ce8++;_0x2d8346(_0xb1897d,_0x35d320,_0x4dd67a),_0x2d8346(_0x1814ed,_0x1551bb,_0x182ce8);const _0x4fe013=_0x1814ed['slice'](_0x1551bb,_0x182ce8)['concat'](_0xb1897d['slice'](_0x35d320,_0x4dd67a));return _0x4fe013['sort']((_0x85d151,_0x4e965e)=>_0x85d151['side']!=_0x4e965e['side']?_0x85d151['side']-_0x4e965e['side']:_0x85d151['level']!=_0x4e965e['level']?_0x85d151['level']-_0x4e965e['level']:_0x85d151['distance']!=_0x4e965e['distance']?_0x4e965e['distance']-_0x85d151['distance']:!!_0x85d151['isAdded']!=!!_0x4e965e['isAdded']?-0x1==_0x85d151['side']||0x0==_0x85d151['side']?_0x85d151['isAdded']?-0x1:0x1:_0x85d151['isAdded']?0x1:-0x1:_0x85d151['index']-_0x4e965e['index']),{'commonTape':_0x4fe013,'iEnd':_0x4dd67a,'jEnd':_0x182ce8};function _0x2d8346(_0x3a2b81,_0x8c5062,_0x34797a){let _0x2701f8=-0x1,_0x46893c=Number['POSITIVE_INFINITY'],_0x2cfe8c=!0x0;for(let _0x406f1f=_0x8c5062;_0x406f1f<_0x34797a;_0x406f1f++)if(_0x1f740c['isInline'](_0x3a2b81[_0x406f1f]['item'])||(_0x2cfe8c=!0x1),_0x3a2b81[_0x406f1f]['item']['startIndex']<_0x8c5062&&(_0x2701f8=_0x406f1f),_0x3a2b81[_0x406f1f]['item']['endIndex']>=_0x34797a){_0x46893c=_0x406f1f;break;}_0x2cfe8c&&(_0x2701f8=_0x34797a-0x1);for(let _0x2ac7e8=_0x8c5062;_0x2ac7e8<_0x34797a;_0x2ac7e8++)_0x3a2b81[_0x2ac7e8]['side']=_0x2ac7e8<=_0x2701f8?-0x1:_0x2ac7e8<_0x46893c?0x0:0x1,_0x3a2b81[_0x2ac7e8]['index']=_0x2ac7e8;let _0x394900=0x0;for(let _0x462262=_0x8c5062;_0x462262<=_0x2701f8;_0x462262++)0x0==_0x3a2b81[_0x462262]['distance']?_0x3a2b81[_0x462262]['level']=_0x394900:(_0x394900++,_0x3a2b81[_0x462262]['level']=_0x394900,_0x394900++);for(let _0xb68d4b=_0x8c5062;_0xb68d4b<_0x34797a;_0xb68d4b++)0x0==_0x3a2b81[_0xb68d4b]['side']&&(_0x3a2b81[_0xb68d4b]['level']=_0x394900);_0x394900=0x0;for(let _0x41ec8c=_0x34797a-0x1;_0x41ec8c>=_0x46893c;_0x41ec8c--)0x0==_0x3a2b81[_0x41ec8c]['distance']?_0x3a2b81[_0x41ec8c]['level']=_0x394900:(_0x394900--,_0x3a2b81[_0x41ec8c]['level']=_0x394900,_0x394900--);}}['_fixObsoleteTags'](_0x522e3d){const _0x27abc6=new Map(),_0x57d031=this['editor']['model']['schema'];for(let _0x1654bd=0x1;_0x1654bd<_0x522e3d['length'];_0x1654bd++){let _0x2d3f5d,_0xb039b9,_0x1c2194;const _0x48938c=_0x522e3d[_0x1654bd],_0x455043=_0x522e3d[_0x1654bd-0x1];if('text'==_0x48938c['type'])continue;if(_0x48938c['type']!=_0x455043['type'])continue;if(!_0x57d031['isBlock'](_0x455043['item'])||_0x57d031['isLimit'](_0x455043['item']))continue;if(!_0x57d031['isBlock'](_0x48938c['item'])||_0x57d031['isLimit'](_0x48938c['item']))continue;if((_0x522e3d[_0x1654bd]['isAdded']||_0x522e3d[_0x1654bd]['isAddSuggestion'])&&_0x522e3d[_0x1654bd-0x1]['isRemoved'])_0x2d3f5d=_0x522e3d[_0x1654bd],_0xb039b9=_0x522e3d[_0x1654bd-0x1],_0x1c2194=_0x1654bd-0x1;else{if(!_0x522e3d[_0x1654bd]['isRemoved']||!_0x522e3d[_0x1654bd-0x1]['isAdded']&&!_0x522e3d[_0x1654bd-0x1]['isAddSuggestion'])continue;_0x2d3f5d=_0x522e3d[_0x1654bd-0x1],_0xb039b9=_0x522e3d[_0x1654bd],_0x1c2194=_0x1654bd;}const _0x3f1c34=_0x2d3f5d['level']==_0xb039b9['level'],_0x537fc6=Math['abs'](_0x2d3f5d['level'])<Math['abs'](_0xb039b9['level'])&&0x0==_0xb039b9['distance'];(_0x3f1c34||_0x537fc6)&&(_0x27abc6['set'](_0xb039b9['id'],_0x2d3f5d['id']),_0x522e3d['splice'](_0x1c2194,0x1),_0x1654bd--,_0x2d3f5d['isAdded']=!0x1);}for(let _0x5899e6=0x0;_0x5899e6<_0x522e3d['length'];_0x5899e6++)_0x27abc6['has'](_0x522e3d[_0x5899e6]['pairId'])&&(_0x522e3d[_0x5899e6]['pairId']=_0x27abc6['get'](_0x522e3d[_0x5899e6]['pairId']));}['_removeMissingPairs'](_0x9dcf36){const _0x344e2e=new Set(_0x9dcf36['map'](_0x1fc399=>_0x1fc399['id']));for(let _0x2cdacd=0x0;_0x2cdacd<_0x9dcf36['length'];_0x2cdacd++)_0x344e2e['has'](_0x9dcf36[_0x2cdacd]['pairId'])||0x0==_0x9dcf36[_0x2cdacd]['distance']||(_0x9dcf36[_0x2cdacd]['isIncorrect']=!0x0);return _0x9dcf36['filter'](_0x21f59d=>!_0x21f59d['isIncorrect']);}['_markMismatchedRemovedTags'](_0xefe65){const _0x5379b8=new Set();for(let _0x2e22e8=0x0;_0x2e22e8<_0xefe65['length'];_0x2e22e8++){if(_0x5379b8['has'](_0xefe65[_0x2e22e8]['id'])&&_0xefe65[_0x2e22e8]['isRemoved']&&(_0xefe65[_0x2e22e8]['isIncorrect']=!0x0),_0xefe65[_0x2e22e8]['isIncorrect'])continue;if(0x0==_0xefe65[_0x2e22e8]['distance'])continue;if('elementStart'!=_0xefe65[_0x2e22e8]['type'])continue;if(null==_0xefe65[_0x2e22e8]['pairId'])continue;let _0x3b2015=_0x2e22e8+0x1,_0x8ee1e6=0x0;for(;_0xefe65[_0x3b2015]['id']!=_0xefe65[_0x2e22e8]['pairId'];)'elementStart'==_0xefe65[_0x3b2015]['type']?_0x8ee1e6++:'elementEnd'==_0xefe65[_0x3b2015]['type']&&_0x8ee1e6--,_0x3b2015++;if(0x0!=_0x8ee1e6){if(_0xefe65[_0x2e22e8]['isRemoved'])_0xefe65[_0x2e22e8]['isIncorrect']=!0x0;else{for(;_0x3b2015!=_0x2e22e8;)_0xefe65[_0x3b2015]['isRemoved']&&0x0!=_0xefe65[_0x3b2015]['distance']&&(_0xefe65[_0x3b2015]['isIncorrect']=!0x0,_0x5379b8['add'](_0xefe65[_0x3b2015]['pairId'])),_0x3b2015--;}}}return _0xefe65['filter'](_0x47118b=>!_0x47118b['isIncorrect']);}['_removeUnsupportedChanges'](_0xecdd04){const _0x59b714=this['editor']['model']['schema'];for(let _0x52ac85=0x0;_0x52ac85<_0xecdd04['length'];_0x52ac85++){if(!(_0xecdd04[_0x52ac85]['isAdded']||_0xecdd04[_0x52ac85]['isAddSuggestion']||_0xecdd04[_0x52ac85]['isRemoved']||_0xecdd04[_0x52ac85]['isRemoveSuggestion']))continue;if(0x0==_0xecdd04[_0x52ac85]['distance'])continue;const _0x196eb8=_0xecdd04[_0x52ac85]['item'];_0x59b714['isBlock'](_0x196eb8)||_0x59b714['isLimit'](_0x196eb8)||(_0xecdd04[_0x52ac85]['isAdded']&&delete _0xecdd04[_0x52ac85]['isAdded'],_0xecdd04[_0x52ac85]['isAddSuggestion']&&delete _0xecdd04[_0x52ac85]['isAddSuggestion'],_0xecdd04[_0x52ac85]['isRemoveSuggestion']&&delete _0xecdd04[_0x52ac85]['isRemoveSuggestion'],_0xecdd04[_0x52ac85]['isRemoved']&&(_0xecdd04[_0x52ac85]['isIncorrect']=!0x0));}return _0xecdd04['filter'](_0x3c7502=>!_0x3c7502['isIncorrect']);}['_makeModelFromTape'](_0x3d5158,_0x1d38fc,_0x39a0ce){const _0xd08691=new _0x24dd64(),_0x19b7dc=[],_0x2e090e=new Map(),_0x48bff3=this['editor']['model'],_0x1acf0=_0x48bff3['schema'],_0x4800de=[_0xd08691],_0x202693={},_0x39d139={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b17e8=null;const _0x382a94=[0x0];for(let _0x5bb8ec=0x0;_0x5bb8ec<_0x3d5158['length'];_0x5bb8ec++)if('elementStart'===_0x3d5158[_0x5bb8ec]['type']){_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94);const _0x596ef2=new _0x220be8(_0x3d5158[_0x5bb8ec]['item']['name'],_0x3d5158[_0x5bb8ec]['item']['getAttributes']());_0x4800de[0x0]['_appendChild'](_0x596ef2),_0x382a94['push'](0x0),_0x4800de['unshift'](_0x596ef2),_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94);}else'elementEnd'===_0x3d5158[_0x5bb8ec]['type']?(_0x4800de['shift'](),_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94),_0x382a94['pop'](),_0x382a94[_0x382a94['length']-0x1]++,_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94)):(_0x3d5158[_0x5bb8ec]['previousPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94),_0x5b17e8?_0x5b17e8['_data']+=_0x3d5158[_0x5bb8ec]['item']['data']:_0x5b17e8=new _0x53c09b(_0x3d5158[_0x5bb8ec]['item']['data'],_0x3d5158[_0x5bb8ec]['item']['getAttributes']()),_0x3d5158[_0x5bb8ec+0x1]&&'text'===_0x3d5158[_0x5bb8ec+0x1]['type']&&_0x1c0881(_0x5b17e8,_0x3d5158[_0x5bb8ec+0x1]['item'])||(_0x4800de[0x0]['_appendChild'](_0x5b17e8),_0x5b17e8=null),_0x382a94[_0x382a94['length']-0x1]+=_0x3d5158[_0x5bb8ec]['item']['offsetSize'],_0x3d5158[_0x5bb8ec]['nextPosition']=_0x48bff3['createPositionFromPath'](_0xd08691,_0x382a94));for(let _0x3ee718=0x0;_0x3ee718<_0x3d5158['length'];_0x3ee718++){const _0xd15757=_0x3d5158[_0x3ee718]['previousPosition'],_0x93c19e=_0x3d5158[_0x3ee718]['nextPosition'];for(const _0x40ad3d of _0x3d5158[_0x3ee718]['markersStart'])_0x2e090e['set'](_0x40ad3d,{'start':_0xd15757,'end':null});_0x48f26b('isRemoveSuggestion',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isAddSuggestion',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isRemoved',_0x3ee718,_0xd15757,_0x93c19e),_0x48f26b('isAdded',_0x3ee718,_0xd15757,_0x93c19e);for(const _0x390e8a of _0x3d5158[_0x3ee718]['markersEnd']){const _0x3f41e2=_0x2e090e['get'](_0x390e8a);_0x3f41e2?_0x3f41e2['end']=_0x93c19e:_0x2e090e['set'](_0x390e8a,{'start':_0x93c19e,'end':_0x93c19e});}}for(const [_0x599017,_0x5d950d]of _0x2e090e){const _0x43ca5b=this['editor']['model']['createRange'](_0x5d950d['start'],_0x5d950d['end']);_0xd08691['markers']['set'](_0x599017,_0x43ca5b);}return _0x19b7dc['sort']((_0x1c47a9,_0x32f20f)=>{const _0x674e4f=_0xd08691['markers']['get']('revision:'+_0x1c47a9['id']),_0x4c2712=_0xd08691['markers']['get']('revision:'+_0x32f20f['id']);return _0x674e4f['start']['isBefore'](_0x4c2712['start'])?-0x1:_0x674e4f['start']['isAfter'](_0x4c2712['start'])?0x1:_0x674e4f['end']['isBefore'](_0x4c2712['end'])?-0x1:_0x674e4f['end']['isAfter'](_0x4c2712['end'])?0x1:'add'===_0x1c47a9['type']?-0x1:0x1;}),{'root':_0xd08691,'changes':_0x19b7dc};function _0x48f26b(_0x497fbe,_0x3eb91d,_0x219f3a,_0x3a4d96){const _0x138e56=!!_0x3d5158[_0x3eb91d][_0x497fbe],_0x3bcf2d=_0x138e56?_0x3d5158[_0x3eb91d][_0x497fbe]['userId']:null,_0xe74129=_0x3eb91d===_0x3d5158['length']-0x1,_0x1d74a4=_0x39d139[_0x497fbe][0x0],_0x75d87c=_0x1acf0['isObject'](_0x3d5158[_0x3eb91d]['item']);!_0x202693[_0x497fbe]&&_0x138e56?_0x202693[_0x497fbe]={'start':_0x219f3a,'tapeItem':_0x3d5158[_0x3eb91d],'userId':_0x3bcf2d,'type':_0x497fbe}:_0x202693[_0x497fbe]&&!_0x138e56?(_0x202693[_0x497fbe]['end']=_0x219f3a,_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]=null):_0x202693[_0x497fbe]&&_0x138e56&&_0x202693[_0x497fbe]['userId']!==_0x3bcf2d&&(_0x202693[_0x497fbe]['end']=_0x219f3a,_0x1d74a4&&_0x1d74a4['userId']===_0x202693[_0x497fbe]['userId']||_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]={'start':_0x219f3a,'tapeItem':_0x3d5158[_0x3eb91d],'userId':_0x3bcf2d,'type':_0x497fbe}),_0x202693[_0x497fbe]&&_0x75d87c&&('elementStart'!==_0x3d5158[_0x3eb91d]['type']||_0x1d74a4&&_0x1d74a4['userId']===_0x3bcf2d||_0x39d139[_0x497fbe]['unshift']({'userId':_0x3bcf2d,'object':_0x3d5158[_0x3eb91d]['item'],'change':_0x202693[_0x497fbe]}),'elementEnd'===_0x3d5158[_0x3eb91d]['type']&&_0x1d74a4&&_0x1d74a4['object']===_0x3d5158[_0x3eb91d]['item']&&(_0x39d139[_0x497fbe]['shift'](),_0x202693[_0x497fbe]=_0x1d74a4['change'])),_0x202693[_0x497fbe]&&_0xe74129&&(_0x202693[_0x497fbe]['end']=_0x3a4d96,_0x2ca79a(_0x202693[_0x497fbe]),_0x202693[_0x497fbe]=null);}function _0x2ca79a({start:_0x64dba8,end:_0x248647,tapeItem:_0x3c8fbc,userId:_0x155a05,type:_0xbf22e8}){const _0x127d10=_0x3c8fbc['item'],_0x2d2ca2=_0x48bff3['schema']['isBlock'](_0x127d10)&&!_0x48bff3['schema']['isLimit'](_0x127d10),_0xd83808=_0x64dba8['nodeAfter']==_0x248647['parent']&&_0x248647['isAtStart'];if(_0x2d2ca2&&_0xd83808)return;const _0xe72c5c=_0x48bff3['createRange'](_0x64dba8,_0x248647),_0x54abfa=_0x1d38fc['get'](_0x155a05),_0x43829e=new G({'author':_0x54abfa,'type':'isAdded'==_0xbf22e8||'isAddSuggestion'==_0xbf22e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xbf22e8||'isRemoveSuggestion'==_0xbf22e8},'createdAt':new Date(),'rootName':_0x39a0ce});_0x19b7dc['push'](_0x43829e),_0xd08691['markers']['set']('revision:'+_0x43829e['id'],_0xe72c5c);}function _0x1c0881(_0x2bb970,_0x61cce8){const _0x4df61e=_0x2bb970['getAttributes'](),_0x37e5c6=_0x61cce8['getAttributes']();for(const _0xcc45a4 of _0x4df61e){if(_0xcc45a4[0x1]!==_0x61cce8['getAttribute'](_0xcc45a4[0x0]))return!0x1;_0x37e5c6['next']();}return _0x37e5c6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x492be2=>{const _0x25c8b2=_0x492be2['markerName']['split'](':')[0x1],_0x40b67f=this['_getChangeFromId'](_0x25c8b2);if(!_0x40b67f)return null;const _0x143231='add'==_0x40b67f['type']?'insertion':'deletion',_0x49ced7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x143231];return _0x40b67f['data']['isSuggestion']&&_0x49ced7['push']('ck-suggestion-marker-'+_0x143231+'-new'),this['activeChange']==_0x40b67f&&_0x49ced7['push']('ck-suggestion-marker--active'),{'classes':_0x49ced7,'attributes':{'data-change-id':_0x25c8b2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x916bef=>{_0x916bef['on']('element:pre',(_0x416b2a,_0xb330eb,_0x45ad43)=>{const _0x13c12b=_0xb330eb['viewItem']['getChild'](0x0);if(!_0x13c12b||!_0x13c12b['is']('element','code'))return;if(!_0x45ad43['consumable']['consume'](_0x13c12b,{'attributes':['vid_start','vid_end']}))return;const _0x178fe1=_0xb330eb['modelRange']['start']['nodeAfter'];_0x45ad43['writer']['setAttribute']('vid_start',_0x13c12b['getAttribute']('vid_start'),_0x178fe1),_0x45ad43['writer']['setAttribute']('vid_end',_0x13c12b['getAttribute']('vid_end'),_0x178fe1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ab9f6=>{_0x2ab9f6['on']('element',(_0x373efc,_0x42a6d3,_0x29286f)=>{if(!_0x29286f['consumable']['consume'](_0x42a6d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42a6d3['modelRange']['isCollapsed'])return;const _0x39d93f=_0x42a6d3['modelRange']['start']['nodeAfter'];_0x39d93f['hasAttribute']('vid_start')||_0x39d93f['hasAttribute']('vid')||(_0x29286f['writer']['setAttribute']('vid_start',_0x42a6d3['viewItem']['getAttribute']('vid_start'),_0x39d93f),_0x29286f['writer']['setAttribute']('vid_end',_0x42a6d3['viewItem']['getAttribute']('vid_end'),_0x39d93f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x6c8866=>_0x6c8866['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2d7ea1,[,_0xfedfa])=>{['vid_start','vid_end','vid']['includes'](_0xfedfa)&&(_0x2d7ea1['return']=!0x0,_0x2d7ea1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1f3d93=>{_0x1f3d93['on']('attribute:vid',(_0x7637ad,_0x49bf73,_0x5edd98)=>{if('\x20'!=_0x49bf73['item']['data']||_0x49bf73['item']['parent']['maxOffset']>0x1)return;if(!_0x5edd98['consumable']['consume'](_0x49bf73['item'],_0x7637ad['name']))return;const _0x3dcb31=_0x5edd98['writer'],_0x427b3c=_0x5edd98['mapper']['toViewRange'](_0x49bf73['range']);_0x3dcb31['wrap'](_0x427b3c,_0x3dcb31['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4781e5){const _0x48e21c=_0x4781e5['plugins']['get']('RevisionViewer');return(_0x55c25a,_0xb71e08,_0x1f9e74)=>{const _0xdf1cc2=_0xb71e08['markerName']['split'](':')[0x1],_0x3b1c8e=_0x48e21c['_getChangeFromId'](_0xdf1cc2);if(!_0x3b1c8e)return null;const _0x5877f6='add'==_0x3b1c8e['type']?'split':'merge';if(!_0x1f9e74['consumable']['test'](_0xb71e08['markerRange'],_0x55c25a['name']))return;const _0xf24404=_0xb71e08['markerRange']['getWalker'](),_0x44c2e7=_0xb71e08['markerRange']['start'],_0x143794=_0x4781e5['model']['schema'];let _0x4e1247=null,_0x3a34a6=null,_0x267cab=!0x1,_0x5dfb66=!0x1;for(const _0x383456 of _0xf24404){const _0x58d804=_0x383456['item'];_0x267cab=_0x267cab||_0x143794['isContent'](_0x58d804);const _0xd8fc7b=_0x1f9e74['mapper']['toViewElement'](_0x58d804);if(_0xd8fc7b&&_0xd8fc7b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x383456['type']&&(_0x143794['isBlock'](_0x58d804)&&!_0x143794['isLimit'](_0x58d804)&&(_0x58d804['nextSibling']||_0x44c2e7['isAtEnd']?_0x4e1247&&_0x4e1247['parent']==_0x58d804||(_0x4e1247=_0x58d804,_0x2b1688(_0x383456['previousPosition']),_0x5dfb66=!0x0):_0x3a34a6=_0x3a34a6||_0x383456['previousPosition']));}function _0x2b1688(_0x2ee688){const _0x4e840d=_0x1f9e74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5877f6}),_0x1c8953=_0x1f9e74['mapper']['toViewPosition'](_0x2ee688);_0x3b1c8e['data']['isSuggestion']&&_0x1f9e74['writer']['addClass']('ck-suggestion-marker-'+_0x5877f6+'-new',_0x4e840d),_0x48e21c['activeChange']==_0x3b1c8e&&_0x1f9e74['writer']['addClass']('ck-suggestion-marker--active',_0x4e840d),_0x1f9e74['writer']['insert'](_0x1c8953,_0x4e840d),_0x1f9e74['mapper']['bindElementToMarker'](_0x4e840d,_0xb71e08['markerName']);}_0x267cab||_0x5dfb66||!_0x3a34a6||_0x2b1688(_0x3a34a6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b6ebc,_0x411446,_0x576b23)=>{const _0x460fc9=_0x576b23['mapper']['markerNameToElements'](_0x411446['markerName']);if(_0x460fc9){for(const _0x9e20ce of _0x460fc9)(_0x9e20ce['hasClass']('ck-suggestion-marker-split')||_0x9e20ce['hasClass']('ck-suggestion-marker-merge'))&&(_0x576b23['mapper']['unbindElementFromMarkerName'](_0x9e20ce,_0x411446['markerName']),_0x576b23['writer']['remove'](_0x9e20ce));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x460295,_0x569b9c,_0x28d486)=>{const _0x3cfd4c=_0x569b9c['markerName']['split'](':')[0x1],_0x35fe53=this['_getChangeFromId'](_0x3cfd4c);if(!_0x35fe53)return null;const _0x1ba917='add'==_0x35fe53['type']?'split':'merge';if(_0x28d486['consumable']['test'](_0x569b9c['markerRange'],_0x460295['name']))for(const _0x22d0e0 of _0x569b9c['markerRange']['getItems']()){if(!_0x22d0e0['is']('element','softBreak'))continue;const _0x347a93=_0x28d486['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ba917}),_0x447aba=_0x28d486['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x22d0e0));_0x35fe53['data']['isSuggestion']&&_0x28d486['writer']['addClass']('ck-suggestion-marker-'+_0x1ba917+'-new',_0x347a93),this['activeChange']==_0x35fe53&&_0x28d486['writer']['addClass']('ck-suggestion-marker--active',_0x347a93),_0x28d486['writer']['insert'](_0x447aba,_0x347a93),_0x28d486['mapper']['bindElementToMarker'](_0x347a93,_0x569b9c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2e8c4d=>{for(const _0x5a430 of this['editor']['model']['document']['getRootNames']()){const _0x2460c0=this['editor']['model']['document']['getRoot'](_0x5a430),_0x2d7604=this['editor']['editing']['view']['document']['getRoot'](_0x5a430);if(_0x2d7604){const _0x437c5e=_0x2460c0['getAttribute']('revisionHistoryAttachChange');if(_0x2e8c4d['removeAttribute']('data-change-id',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root-add',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root-remove',_0x2d7604),_0x2e8c4d['removeClass']('ck-revision-history-root--active',_0x2d7604),_0x437c5e){const _0x5ebc74=this['_getChangeFromId'](_0x437c5e);if(!_0x5ebc74)return null;_0x2e8c4d['setAttribute']('data-change-id',_0x437c5e,_0x2d7604),_0x2e8c4d['addClass']('ck-revision-history-root-'+_0x5ebc74['type'],_0x2d7604),this['activeChange']==_0x5ebc74&&_0x2e8c4d['addClass']('ck-revision-history-root--active',_0x2d7604);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x294e62=>'revision-comment:'+_0x294e62,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2b37fc=>'revision-suggestion:'+_0x2b37fc,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ec9d0=>({'name':'suggestion:'+_0x1ec9d0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1d2a09=>{const _0x135217=_0x1d2a09['markerName']['split'](':')[0x1];return'insertion'!=_0x135217&&'deletion'!=_0x135217?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x135217]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2eeb6d,_0x29327e,_0x4b8dd4)=>{const _0xde0758=_0x4b8dd4['mapper']['markerNameToElements'](_0x29327e['markerName']);if(_0xde0758){for(const _0x1a274a of _0xde0758)_0x1a274a['is']('uiElement')&&(_0x4b8dd4['mapper']['unbindElementFromMarkerName'](_0x1a274a,_0x29327e['markerName']),_0x4b8dd4['writer']['remove'](_0x1a274a));}},{'priority':'high'});}['_getChangeFromId'](_0x583b45){return this['_changeIdToChange']['get'](_0x583b45);}['_getViewForChange'](_0x55a1f4){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x55a1f4),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e81e5,_0x1b718a,_0x2f7e84,_0x590e69)=>{_0x590e69&&this['_balloon']['remove'](_0x590e69),_0x2f7e84&&(this['_balloon']['add']({'view':_0x2f7e84,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x51fe25=this['editor']['editing'],_0x4b79cc=this['_getChangeFromId'](_0x2f7e84['changeId']);let _0x4bbca9;if(_0x4b79cc['data']['isOnRoot']){const _0x1e0799=_0x51fe25['view']['getDomRoot'](_0x4b79cc['rootName']);_0x4bbca9=Array['from'](_0x1e0799['getClientRects']());}else{const _0x58a79c=this['editor']['model']['markers']['get']('revision:'+_0x2f7e84['changeId']);_0x4bbca9=Array['from'](_0x51fe25['mapper']['markerNameToElements'](_0x58a79c['name']))['map'](_0x129f7d=>_0x51fe25['view']['domConverter']['mapViewToDom'](_0x129f7d))['map'](_0x15afc8=>Array['from'](_0x15afc8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4bbca9[0x0];return _0x4bbca9['find'](_0x2bfee=>_0x2bfee['top']-0x3<=this['_activeViewTarget']['y']&&_0x2bfee['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bfee['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bfee['right']+0x3>=this['_activeViewTarget']['x'])||_0x4bbca9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4a329a,_0x58dc6f,_0x4f5bde,_0x407b20)=>{this['activeView']=_0x4f5bde?this['_getViewForChange'](_0x4f5bde):null,this['editor']['model']['change'](()=>{const _0x7e6d9d=this['editor']['editing'];_0x407b20&&(_0x407b20['data']['isOnRoot']?_0x7e6d9d['view']['change'](_0x1f7544=>{_0x1f7544['removeClass']('ck-revision-history-root--active',_0x7e6d9d['view']['document']['getRoot'](_0x407b20['rootName']));}):_0x7e6d9d['reconvertMarker']('revision:'+_0x407b20['id'])),_0x4f5bde&&(_0x4f5bde['data']['isOnRoot']?_0x7e6d9d['view']['change'](_0x16fd68=>{_0x16fd68['addClass']('ck-revision-history-root--active',_0x7e6d9d['view']['document']['getRoot'](_0x4f5bde['rootName']));}):_0x7e6d9d['reconvertMarker']('revision:'+_0x4f5bde['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x35a37d,_0x2efa29)=>{if(this['activeChange'])return;const _0x213b3e=this['_findChangeIdFromDomTarget'](_0x2efa29['target']),_0x251fcf=this['_changeIdToChange']['get'](_0x213b3e);_0x251fcf?(this['_activeViewTarget']={'x':_0x2efa29['domEvent']['x'],'y':_0x2efa29['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x251fcf)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3419d4,_0x31d727)=>{const _0x419061=this['_findChangeIdFromDomTarget'](_0x31d727['target']),_0x47d910=this['_changeIdToChange']['get'](_0x419061);_0x47d910?(this['_activeViewTarget']={'x':_0x31d727['domEvent']['x'],'y':_0x31d727['domEvent']['y']},_0x47d910===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x47d910):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x570ac6){do{const _0x14098d=_0x570ac6['getAttribute']('data-change-id');if(_0x14098d)return _0x14098d;_0x570ac6=_0x570ac6['parent'];}while(_0x570ac6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25f570=>{for(const _0x53cea2 of this['editor']['model']['markers'])_0x25f570['removeMarker'](_0x53cea2);});}}function Q(_0x3c6db1,_0x55a8ed){return(_0xff0ec9,_0x381d7b,_0x1d20b8)=>{if(!_0x1d20b8['consumable']['test'](_0x381d7b['markerRange'],_0xff0ec9['name']))return;const _0x524630=_0x381d7b['markerRange']['getWalker'](),_0x5bf329=_0x381d7b['markerRange']['start'],_0x193057=_0x3c6db1['model']['schema'];let _0x173393=null,_0x146beb=null,_0x5558aa=!0x1,_0x33dde8=!0x1;for(const _0x3339fd of _0x524630){const _0x22344c=_0x3339fd['item'];_0x5558aa=_0x5558aa||_0x193057['isContent'](_0x22344c);const _0x3a86a0=_0x1d20b8['mapper']['toViewElement'](_0x22344c);if(_0x3a86a0&&_0x3a86a0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3339fd['type']&&(_0x193057['isBlock'](_0x22344c)&&!_0x193057['isLimit'](_0x22344c)&&(_0x22344c['nextSibling']||_0x5bf329['isAtEnd']?_0x173393&&_0x173393['parent']==_0x22344c||(_0x173393=_0x22344c,_0xf86237(_0x3339fd['previousPosition']),_0x33dde8=!0x0):_0x146beb=_0x146beb||_0x3339fd['previousPosition']));}function _0xf86237(_0x3bc2eb){const _0x228e11=_0x1d20b8['mapper']['toViewPosition'](_0x3bc2eb),_0x424414=_0x1d20b8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55a8ed});_0x1d20b8['writer']['insert'](_0x228e11,_0x424414),_0x1d20b8['mapper']['bindElementToMarker'](_0x424414,_0x381d7b['markerName']);}_0x5558aa||_0x33dde8||!_0x146beb||_0xf86237(_0x146beb);};}class nt extends _0x5788b1{constructor(_0x57f8df){super(_0x57f8df);const _0x2f2b93=_0x57f8df['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x2f2b93,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2f2b93,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x7115d3=this['editor'],_0x5f3edb=_0x7115d3['plugins']['get'](l),_0x419563=_0x5f3edb['isReady']?_0x5f3edb['diff']['newRevisionId']:null;_0x7115d3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x419563);}['refresh'](){const {isReady:_0x2e93f3,isEnabled:_0x341225,repository:_0x5041a7,diff:_0xbe75da}=this['editor']['plugins']['get'](l),_0x3b4cf9=_0xbe75da&&_0x5041a7['getLaterVisibleRevision'](_0xbe75da['newRevisionId']);this['isEnabled']=_0x2e93f3&&_0x341225&&Boolean(_0x3b4cf9);}}class rt extends _0x5788b1{['_step'];constructor(_0x3cdb6f,{direction:_0x464d84}){super(_0x3cdb6f);const _0x37db98=_0x3cdb6f['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x464d84?0x1:-0x1,this['listenTo'](_0x37db98,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37db98,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37db98,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x470f85=this['editor'],_0x261ada=_0x470f85['plugins']['get'](l),{isNavigationMode:_0x5e60cb,currentChangeNumber:_0x19120a}=_0x261ada;let _0xd52598;if(_0x261ada['activeChange']=_0x5e60cb?_0x261ada['diff']['changes']['get'](_0x19120a+this['_step']):_0x261ada['diff']['changes']['first'],_0x261ada['activeChange']['data']['isOnRoot'])_0xd52598=_0x470f85['editing']['view']['getDomRoot'](_0x261ada['activeChange']['rootName']);else{const _0x43b3ad=_0x470f85['model']['markers']['get']('revision:'+_0x261ada['activeChange']['id']);_0xd52598=_0x308ad9(_0x470f85['editing'],_0x43b3ad);}_0x799686({'target':_0xd52598,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5470d3,currentChangeNumber:_0x252f54,numberOfChanges:_0x7329bb,isReady:_0x182c9b,isEnabled:_0xcd8edd}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0xcd8edd&&_0x182c9b&&_0x7329bb)&&(!_0x5470d3||(0x1===this['_step']?_0x252f54<_0x7329bb-0x1:_0x252f54>0x0));}}class Ri extends _0x5afe72{constructor(_0x16a877){super(_0x16a877);const _0x1ccedb=this['bindTemplate'],_0x3f950e=new _0x20e177(_0x16a877),_0x2b675d=new _0x20e177(_0x16a877);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',(_0x1964b9,_0x4d64d2)=>_0x1964b9&&_0x4d64d2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x419c7b,_0x40e898,_0x29be76,_0xef3b9f)=>{if(!_0x419c7b)return R(_0x16a877,'Loading...');if(!_0x29be76)return R(_0x16a877,'No\x20changes');const _0x5f0b15=R(_0x16a877,'NUMBER_OF_CHANGES',_0x29be76);return _0xef3b9f?R(_0x16a877,'X_OF_Y_CHANGES',[_0x40e898+0x1,_0x29be76]):_0x5f0b15;}),_0x3f950e['set']({'label':R(_0x16a877,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x434994}),_0x2b675d['set']({'label':R(_0x16a877,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1b458c}),_0x3f950e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b675d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f950e['on']('execute',()=>this['fire']('execute','backward')),_0x2b675d['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',_0x1ccedb['if']('_isStatusLabelVisible','ck-hidden',_0x8a02dc=>!_0x8a02dc)]},'children':[{'text':_0x1ccedb['to']('isNavigationMode',_0x5e0f78=>_0x5e0f78?R(_0x16a877,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x16a877,'Total')+':\x20')}]},{'text':_0x1ccedb['to']('_statusText')}]},new _0x56d6b1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f950e,_0x2b675d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1305a6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x34ee8f=this['editor']['editing']['view'];_0x34ee8f['change'](_0x1a1e20=>{for(const _0x1148ae of _0x34ee8f['document']['roots'])_0x1a1e20['addClass'](ge,_0x1148ae);});}['hide'](){const _0x3ded21=this['editor']['editing']['view'];_0x3ded21['change'](_0x28ad09=>{for(const _0x183147 of _0x3ded21['document']['roots'])_0x28ad09['removeClass'](ge,_0x183147);});}}class u extends _0x1305a6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x29e9be=this['editor'],_0x2e475a=_0x29e9be['plugins']['get'](l),_0x5ae89e=_0x29e9be['plugins']['get'](ji);_0x29e9be['ui']['componentFactory']['add']('exitToEditing',_0xd83fcf=>{const _0x319d54=new _0x20e177(_0xd83fcf);return _0x319d54['set']({'label':R(_0xd83fcf,'Back\x20to\x20editing'),'icon':_0x3c04b5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x319d54,'execute',()=>{_0x29e9be['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x319d54;}),_0x29e9be['ui']['componentFactory']['add']('restoreRevision',_0x171bad=>{const _0x2a927e=new _0x20e177(_0x171bad);return _0x2a927e['set']({'label':R(_0x171bad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2a927e['bind']('isEnabled')['to'](_0x29e9be['commands']['get']('restoreRevision')),this['listenTo'](_0x2a927e,'execute',()=>_0x29e9be['execute']('restoreRevision')),_0x2a927e;}),_0x29e9be['ui']['componentFactory']['add']('changesNavigation',_0x4e7d96=>{const _0x2f4144=new Ri(_0x4e7d96),_0xe11223=_0x29e9be['commands']['get']('showPreviousChange'),_0x5e52a4=_0x29e9be['commands']['get']('showNextChange');return _0x2f4144['bind']('isBackwardNavigationEnabled')['to'](_0xe11223,'isEnabled'),_0x2f4144['bind']('isForwardNavigationEnabled')['to'](_0x5e52a4,'isEnabled'),_0x2f4144['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2e475a),this['listenTo'](_0x2f4144,'execute',(_0x54519c,_0x4dc08b)=>{_0x29e9be['execute']('forward'===_0x4dc08b?'showNextChange':'showPreviousChange');}),_0x2f4144;}),_0x5ae89e['show'](),_0x2e475a['on']('change:isReady',(_0x59b1d2,_0x96ee9a,_0x3512b4)=>{_0x3512b4?_0x5ae89e['hide']():_0x5ae89e['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x31a567,_0x2fccbb){super(_0x31a567,_0x2fccbb);const _0x347427=this['bindTemplate'];this['set']({'label':R(_0x31a567,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x31a567,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x347427['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5885e1=this['fieldView']['element'];this['_tooltipString']=_0x5885e1['scrollWidth']>_0x5885e1['clientWidth']&&_0x5885e1['value']||'';}}class ni extends _0x5afe72{constructor(_0x48e1fa,_0x2c1e55,_0x125764){super(_0x48e1fa);const _0x4709d6=new _0x13a599();_0x4709d6['set']({'content':_0x5d06bd,'viewBox':'0\x200\x2011\x2010'});const _0x365aae=['ck','ck-revision-history-sidebar__revision-author'];_0x125764&&_0x365aae['push']('ck-revision-history-sidebar__revision-author_creator');const _0x160172=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x48e1fa,_0x125764?'Revision\x20creator':'Revision\x20author')},'children':[_0x4709d6,_0x2c1e55['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x365aae},'children':_0x160172});}}function ci(_0x370628,_0x44d6e8){const _0x3b7fed=_0x370628['bindTemplate'],_0x2949cb=_0x370628['locale'],_0x26a482=_0x5191d3(_0x2949cb);_0x26a482['panelPosition']='sw';const _0x55f807=function(_0x4ca342,_0x44f328){const _0x2c46f9=function(_0x2c9666,_0x3aeea8){const _0x59ca70=_0x2c9666['locale'],_0xd44bd7={'Compare\x20against\x20selected':R(_0x59ca70,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x59ca70,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x59ca70,'Restore\x20this\x20revision')};return _0x3aeea8['map'](_0x488ad0=>{const _0x1d7680=_0xd44bd7[_0x488ad0['name']];return _0x1d7680&&_0x1d7680!==_0x488ad0['name']&&(_0x488ad0['name']=_0x1d7680),_0x488ad0;});}(_0x4ca342,_0x44f328),_0x1672a4=new _0xd01162();for(const _0x3aae17 of _0x2c46f9){const _0x42e50b={'type':'button','model':new to({'label':_0x3aae17['name'],'class':_0x3aae17['class'],'withText':!0x0,'role':'menuitem','_action':_0x3aae17['action']})};_0x42e50b['model']['bind']('isEnabled')['to'](_0x4ca342,'isActionsDropdownOpen',_0x3032b4=>'function'!=typeof _0x3aae17['isEnabled']||(!_0x3032b4||_0x3aae17['isEnabled'](_0x4ca342))),_0x1672a4['add'](_0x42e50b);}return _0x1672a4;}(_0x370628,_0x44d6e8);return _0x370628['bind']('isActionsDropdownOpen')['to'](_0x26a482,'isOpen'),_0x26a482['buttonView']['set']({'label':R(_0x2949cb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x47696e}),_0x26a482['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3b7fed['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3b7fed['to'](_0x5853b2=>_0x5853b2['stopPropagation']())}}),_0x26a482['on']('execute',_0x183af5=>{_0x370628['isReady']&&'function'==typeof _0x183af5['source']['_action']&&_0x183af5['source']['_action'](_0x370628);}),_0x2730e5(_0x26a482,_0x55f807,{'role':'menu'}),_0x26a482['listenTo'](_0x370628,'change:isActionsDropdownOpen',(_0x250b33,_0x5b30bd,_0x2fb7a0)=>{if(_0x2fb7a0)for(const _0xf5583 of _0x26a482['listView']['items']){const _0x214a0c=_0xf5583['children']['first'],_0x510720=_0x44d6e8['find'](_0x43f649=>_0x43f649['action']===_0x214a0c['_action'])['isVisible'];_0xf5583['isVisible']=void 0x0===_0x510720||_0x510720(_0x370628);}}),_0x26a482;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x5f2668(_0x5afe72){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2cc007,_0x41df40,_0x10b2ad,_0x313a73){super(_0x2cc007);const _0x386475=this['bindTemplate'],_0x125683=function(_0x30170e,_0x13ad0e){const _0x4afc93=Array['from'](_0x13ad0e['authors'])['filter'](_0xa5e0c2=>_0xa5e0c2!=_0x13ad0e['creator']);return _0x13ad0e['creator']&&_0x4afc93['unshift'](_0x13ad0e['creator']),_0x4afc93['map'](_0x2b3cb1=>new ni(_0x30170e,_0x2b3cb1,_0x2b3cb1==_0x13ad0e['creator']));}(_0x2cc007,_0x41df40);this['id']=_0x41df40['id'],this['_revision']=_0x41df40,this['_requireRevisionName']=_0x313a73,this['bind']('name','createdAt')['to'](_0x41df40),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x330098=>{return _0x506636=_0x2cc007['uiLanguage'],(_0x3c96a6=_0x330098)['toLocaleDateString'](_0x506636,{'month':'long','day':'numeric'})+',\x20'+_0x3c96a6['toLocaleTimeString'](_0x506636,{'hour':'numeric','minute':'numeric'});var _0x506636,_0x3c96a6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2cc007,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x387f14=>_0x387f14||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x24c8ca,_0x4adcd7)=>_0x24c8ca&&_0x4adcd7),this['revisionActionsView']=_0x10b2ad&&_0x10b2ad['length']?ci(this,_0x10b2ad):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x386475['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x386475['if']('isEnabled','ck-disabled',_0x1d71bd=>!_0x1d71bd),_0x386475['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x386475['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x386475['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':_0x386475['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':_0x125683}]},this['revisionActionsView']],'on':{'click':_0x386475['to'](_0x215af1=>{_0x215af1['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x59894d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x59894d,'change',()=>{this['_requireRevisionName']&&!_0x59894d['value']||this['fire']('setName',{'id':this['id'],'name':_0x59894d['value']}),_0x59894d['value']||(_0x59894d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x12229f,_0x3c6bce){const _0x5c71f5=_0x18db6e['fromJSDate'](_0x12229f)['setLocale'](_0x3c6bce),_0x5d38bc=_0x18db6e['local'](),_0x18c94c=_0x5d38bc['minus']({'days':0x1})['startOf']('day');let _0x1c3515,_0x1d6d0f;return _0x5c71f5['hasSame'](_0x5d38bc,'day')?(_0x1c3515=_0x5c71f5['startOf']('day')['toJSDate'](),_0x1d6d0f=_0x5c71f5['toRelativeCalendar']()):_0x5c71f5['hasSame'](_0x18c94c,'day')?(_0x1c3515=_0x18c94c['toJSDate'](),_0x1d6d0f=_0x5c71f5['toRelativeCalendar']()):_0x5c71f5['hasSame'](_0x5d38bc,'week')?(_0x1c3515=_0x5c71f5['startOf']('week')['toJSDate'](),_0x1d6d0f=_0x5c71f5['weekdayLong']||''):_0x5c71f5['hasSame'](_0x5d38bc,'year')?(_0x1c3515=_0x5c71f5['startOf']('month')['toJSDate'](),_0x1d6d0f=_0x5c71f5['monthLong']||''):(_0x1c3515=_0x5c71f5['startOf']('year')['toJSDate'](),_0x1d6d0f=String(_0x5c71f5['year'])),{'startDate':_0x1c3515,'localizedPeriodName':_0x1d6d0f};}class bi extends _0x5afe72{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d4542,_0x3b4cf2,_0x3a25ad,_0x4e8e52){super(_0x3d4542);const _0x5c7111=li(_0x3b4cf2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3b4cf2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3a25ad,this['_requireRevisionName']=_0x4e8e52,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':_0x5c7111}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3363b0){const _0x3a511f=new _i(this['locale'],_0x3363b0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3a511f);}['removeRevision'](_0x2b96d3){const _0x443b4a=this['revisionViews']['find'](_0x3c45a4=>_0x3c45a4['id']===_0x2b96d3['id']);this['revisionViews']['remove'](_0x443b4a);}}class fi extends _0x5afe72{constructor(_0x3df28f){super(_0x3df28f);const _0x49bb67=new _0x13a599();_0x49bb67['content']=_0x317799,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x49bb67,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3df28f,'Revision\x20history')]}]});}}class di extends _0x5afe72{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2161d3,_0x141598,_0x199ec5,_0x457dd4){super(_0x2161d3);const _0x118aac=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x141598,this['_revisionActions']=_0x199ec5,this['_requireRevisionName']=_0x457dd4,this['on']('select',(_0x23ecb1,_0x511f92)=>{this['fire']('revisionSelected',_0x511f92);}),this['on']('setName',(_0x5dc6b3,_0x4f0c83)=>{this['fire']('revisionSetName',_0x4f0c83);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x2161d3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x118aac['if']('isEnabled','ck-disabled',_0x15f34b=>!_0x15f34b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x12f242 of this['_revisions'])this['_addRevision'](_0x12f242);this['_revisions']['on']('add',(_0x365c09,_0x3f1643)=>{this['_addRevision'](_0x3f1643);}),this['_revisions']['on']('remove',(_0x13631b,_0x32324f)=>{this['_removeRevision'](_0x32324f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x28ef35=>_0x28ef35['revisionViews']['map'](_0xeae68=>_0xeae68))['flat']();}['selectRevision'](_0x44ab0f){for(const _0x5a81a0 of this['revisionViews'])_0x44ab0f&&_0x44ab0f['id']===_0x5a81a0['id']?_0x5a81a0['select']():_0x5a81a0['deselect']();}['highlightRevisions'](_0x62bea7){for(const _0x391b0a of this['revisionViews'])_0x62bea7['some'](({id:_0x4773e8})=>_0x4773e8===_0x391b0a['id'])?_0x391b0a['highlight']():_0x391b0a['unhighlight']();}['_addRevision'](_0x33c29b){const _0x3486c2=li(_0x33c29b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x20b803=this['timePeriodViews']['get'](0x0);_0x20b803&&_0x20b803['startDate']['getTime']()===_0x3486c2['getTime']()||(_0x20b803=new bi(this['locale'],_0x3486c2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x20b803)),_0x20b803['addRevision'](_0x33c29b);}['_removeRevision'](_0x5b5418){const _0x37f632=li(_0x5b5418['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x37f632)['removeRevision'](_0x5b5418);}['_getTimePeriodViewByStartDate'](_0x26dcac){return this['timePeriodViews']['find'](_0x3e088f=>_0x3e088f['startDate']['getTime']()===_0x26dcac['getTime']());}}class f extends _0x1305a6{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x3c1de6(_0x39d64c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3489f7,_0x412afe){super(_0x412afe),this['sourceElement']=_0x3489f7,this['model']['document']['createRoot']();const _0x5387a2=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5387a2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2028fa,_0x41ac17){const _0x57111f=new this(_0x2028fa,_0x41ac17);return await _0x57111f['initPlugins'](),await _0x57111f['ui']['init'](_0x2028fa),await _0x57111f['data']['init'](_0x57111f['config']['get']('initialData')||''),_0x57111f['fire']('ready'),_0x57111f;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x3daf77{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32716f){function _0x489e98(_0x50b0e2){return _0x50b0e2['map'](_0x344358=>String['fromCharCode'](_0x344358))['join']('');}super(_0x32716f),this['result']='end',_0x32716f[_0x489e98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489e98([0x76,0x69,0x65,0x77])][_0x489e98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489e98([0x61,0x75,0x74,0x6f]),_0x32716f[_0x489e98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x489e98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489e98([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x489e98([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x489e98([0x6f,0x6b])});}}class ct extends _0x3daf77{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x476ba3){if(super(_0x476ba3),!this['editor']['config']['get']('revisionHistory'))throw new _0x308bd1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5450e3=>this['_showRevisionViewer']({..._0x5450e3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5c634c=>this['_closeRevisionViewer'](_0x5c634c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x336a53=>this['_restoreRevision'](_0x336a53)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4c70b3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4c70b3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3e13b6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3e13b6);}['getRevision'](_0x508196){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x508196);}['getRevisions'](_0x169996){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x169996||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2b23d9=this['editor'],_0xf08e95=_0x28a60b(_0x2b23d9,d),_0x1aaa7a=_0x2b23d9['plugins']['get']('RevisionTracker'),_0x57b247=_0x2b23d9['plugins']['get']('Users')['users'];return _0xf08e95['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xf08e95['lazyRoots'],(_0xf08e95['plugins']['push'](ht,l,u,class extends _0x3daf77{static get['requires'](){return[l,'Users'];}['init'](){const _0x1ed363=this['editor']['plugins']['get']('Users');for(const _0x5e9cff of _0x57b247)_0x5e9cff['isAnonymous']||_0x1ed363['getUser'](_0x5e9cff['id'])||_0x1ed363['addUser'](_0x5e9cff);const _0x481be8=_0x1aaa7a['repository']['getRevisions']();let _0x4ddec1=null;const _0x167110=this['editor']['plugins']['get']('RevisionViewer');_0x167110['adapter']=_0x1aaa7a['adapter'],_0x167110['bind']('isEnabled')['to'](_0x1aaa7a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2b23d9,'isReadOnly',_0x35b73b=>!_0x35b73b);for(const _0x18949c of _0x481be8){const _0x17888e=null===_0x18949c['creator'];if(_0x17888e&&_0x18949c['toVersion']===_0x18949c['fromVersion'])continue;const _0x1908ae=_0x18949c['toJSON']();_0x167110['addRevisionData'](_0x1908ae,(_0xd58b33,_0x2ad130,_0x1bedc0)=>{if(_0x17888e){if(_0x4ddec1)_0x4ddec1['_update'](_0xd58b33,_0x2ad130);else{if(!_0x2ad130){const _0x501d8d=_0x1bedc0['toJSON']();_0x501d8d['id']=_0x1c1c29(),_0x1aaa7a['saveRevision'](_0x501d8d,_0x1bedc0['toVersion'])['then'](_0x11c227=>{_0x4ddec1=_0x11c227;});}}}else _0x18949c['_update'](_0xd58b33,_0x2ad130);});}}},f),_0xf08e95);}['_enhanceShowRevisionViewerCallback'](){const _0x38c867=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16d37b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x21ec6a=this['editor']['plugins']['get']('Autosave');await _0x21ec6a['save']();}else await _0x16d37b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x354811=this['editor']['plugins']['get']('Dialog');_0x354811['isOpen']&&_0x354811['hide']();}const _0x5d2fc9=this['_getRevisionViewerEditorConfig']();return _0x38c867(_0x5d2fc9)['then'](_0x17174c=>{return(this['_viewerEditor']=_0x17174c,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'),_0x17174c);})['catch'](_0x53fb1e=>(console['error'](_0x53fb1e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3a145e=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'](),_0x3a145e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x570db5=this['editor']['plugins']['get']('Annotations');_0x570db5['refreshVisibility'](),_0x570db5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10739b){const _0xf601a1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2faaa8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x19123b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x19123b,_0x10739b)['then'](_0x2e7c2e=>(_0x2faaa8['style']['display']='block',_0xf601a1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2e7c2e));}['_closeRevisionViewer'](_0x55e427){const _0xd5c293=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xd5c293['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x55e427['destroy']();}async['_restoreRevision'](_0x414fb1){const _0x5b871b=this['editor'],_0x19e71c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2443ef=_0x5b871b['plugins']['get']('RevisionTracker'),_0x391460=_0x5b871b['plugins']['get']('RevisionHistoryUtils'),_0x3ead63=_0x19e71c['repository']['getRevision'](_0x414fb1);let _0xa289e8,_0x48adec,_0x199fe7;try{await _0x391460['loadRevisionData'](_0x3ead63,this['adapter']),_0xa289e8=_0x391460['getRevisionDocumentData'](_0x3ead63),_0x48adec=_0x391460['getRevisionRootsAttributes'](_0x3ead63);}catch(_0x2240e1){return void console['error'](_0x2240e1);}_0x5b871b['model']['change'](_0x45fcdc=>{for(const _0x35fc63 of Array['from'](_0x5b871b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x45fcdc['removeMarker'](_0x35fc63);}),_0x19e71c['isReady']=!0x1,_0x5b871b['model']['enqueueChange'](_0x404548=>{_0x404548['setSelection'](null),_0x404548['removeSelectionAttribute'](_0x5b871b['model']['document']['selection']['getAttributeKeys']());const _0x4fef6b=Object['keys'](_0xa289e8);for(const _0x1734fb of _0x5b871b['model']['document']['roots'])'$graveyard'!=_0x1734fb['rootName']&&_0x1734fb['isAttached']()&&!_0x4fef6b['includes'](_0x1734fb['rootName'])&&_0x404548['detachRoot'](_0x1734fb);for(const _0x159bef of _0x4fef6b){let _0x286cae=_0x5b871b['model']['document']['getRoot'](_0x159bef);_0x286cae&&_0x286cae['isAttached']()||(_0x286cae=_0x404548['addRoot'](_0x159bef));const _0x45897a=_0x48adec[_0x159bef],_0x2b31d5=Object['keys'](_0x45897a),_0x2cf618=_0xa289e8[_0x159bef];for(const _0x1c7d2b of _0x286cae['getAttributeKeys']())_0x2b31d5['includes'](_0x1c7d2b)||_0x404548['removeAttribute'](_0x1c7d2b,_0x286cae);for(const _0x14b74f of _0x2b31d5)_0x404548['setAttribute'](_0x14b74f,_0x48adec[_0x159bef][_0x14b74f],_0x286cae);_0x404548['remove'](_0x404548['createRangeIn'](_0x286cae)),_0x404548['insert'](_0x5b871b['data']['parse'](_0x2cf618,_0x286cae),_0x286cae,0x0);}});const _0x28d0e2=R(_0x5b871b['locale'],'Restored');if(_0x3ead63['name'])_0x199fe7=-0x1==_0x3ead63['name']['indexOf'](_0x28d0e2)?_0x28d0e2+':\x20'+_0x3ead63['name']:_0x3ead63['name'];else _0x199fe7=_0x28d0e2+':\x20'+(_0x3ead63['createdAt']['toLocaleDateString'](_0x5b871b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ead63['createdAt']['toLocaleTimeString'](_0x5b871b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2443ef['saveRevision']({'name':_0x199fe7}),_0x19e71c['isReady']=!0x0,_0x5b871b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x5387a5){super(_0x5387a5),this['_revisionViewer']=_0x5387a5['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4b790f=this['_revisionsRepository']['_revisions'],_0x47a16b=this['_createRevisionActions'](),_0x17eca6=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x4b790f,_0x47a16b,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',(_0x72ffb0,_0x45e594)=>{_0x45e594['revisionViews']['on']('add',(_0x1e055,_0x6ec01f)=>{_0x6ec01f['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)),_0x17eca6['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x22f6ec=this['_revisionsRepository']['getRevision'](0x0);if(_0x22f6ec){const _0x7507dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x22f6ec['id']);this['_revisionViewer']['compare'](_0x22f6ec,_0x7507dc);}}['_handleRevisionSelected'](_0x17d5ea,_0x4c8857){const _0xc068a4=this['_revisionsRepository']['getRevision'](_0x4c8857['id']),_0x10cb28=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc068a4['id']);this['_revisionViewer']['compare'](_0xc068a4,_0x10cb28);}['_handleRevisionSetName'](_0x520b57,_0x2ada39){this['_revisionsRepository']['getRevision'](_0x2ada39['id'])['setName'](_0x2ada39['name']);}['_handleDiffChange'](_0xf475cf,_0x627b6,_0xfffd98){const _0x419041=this['_revisionsRepository']['getRevisionsInDiff'](_0xfffd98);_0x419041['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x419041),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x419041[0x0]));}['_createRevisionActions'](){const _0x22c73a=this['editor'],_0x194b38=f['availableRevisionActions'],_0x19d08a=_0x22c73a['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x19d08a['length'])return _0x19d08a['map'](_0xc17b97=>{const _0x570b70='string'==typeof _0xc17b97?Object['assign']({},_0x194b38[_0xc17b97]):_0xc17b97;return _0x570b70['action']=_0x570b70['action']['bind'](this,_0x22c73a),_0x570b70['isVisible']&&(_0x570b70['isVisible']=_0x570b70['isVisible']['bind'](this,_0x22c73a)),_0x570b70;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x14bcc9},_0xacc77a)=>{const _0x161018=_0x14bcc9['get'](l),_0x320598=_0x161018['repository'];let _0x2caef0=_0x161018['diff']['newRevisionId'],_0x1f408b=_0xacc77a['id'];_0x320598['getIndex'](_0x2caef0)>_0x320598['getIndex'](_0x1f408b)&&([_0x2caef0,_0x1f408b]=[_0x1f408b,_0x2caef0]),_0x161018['compare'](_0x2caef0,_0x1f408b);},'isVisible':({plugins:_0x1876ed},_0x416cab)=>{const _0x5a5734=_0x1876ed['get'](l);return!(_0x5a5734['repository']['getRevisionsInDiff'](_0x5a5734['diff'])['length']>0x2)&&!_0x416cab['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x30c515,{id:_0x58a757})=>{_0x30c515['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x58a757);},'isVisible':({plugins:_0x45c002},_0x34f040)=>!!_0x45c002['get'](l)['repository']['getLaterVisibleRevision'](_0x34f040['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3eb04a},{id:_0x59d34b,revisionNameView:_0x14d58c})=>{const _0x15a8e5=_0x3eb04a['get'](l),_0x1b9dd7=_0x15a8e5['repository']['getEarlierVisibleRevision'](_0x59d34b);_0x15a8e5['compare'](_0x59d34b,_0x1b9dd7),_0x14d58c['focus'](),_0x14d58c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x31b7ab,_0x4c9d41){super(_0x31b7ab),this['_view']=_0x4c9d41,this['_toolbarConfig']=st(_0x31b7ab['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x5287f9){const _0x233238=this['editor'],_0x45a4af=this['view'],_0x1fab8e=_0x233238['editing']['view'],_0x25e0f5=_0x45a4af['editable'],_0x434882=_0x1fab8e['document']['getRoot']();_0x25e0f5['name']=_0x434882['rootName'],_0x45a4af['render']();const _0x2dfdc1=_0x25e0f5['element'];this['setEditableElement'](_0x25e0f5['name'],_0x2dfdc1),_0x45a4af['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1fab8e['attachDomRoot'](_0x2dfdc1),this['_elementReplacer']['replace'](_0x5287f9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1888d7=this['view'],_0x4235fb=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4235fb['detachDomRoot'](_0x1888d7['editable']['name']),_0x1888d7['destroy']();}['_initToolbar'](){const _0x15633c=this['view'];_0x15633c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x15633c['stickyPanel']['limiterElement']=_0x15633c['element'],_0x15633c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1da315})=>_0x1da315),_0x15633c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x15633c['toolbar']);}}class ii extends _0x331048{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5bc747,_0x26b01d,_0x21bd60={}){super(_0x5bc747),this['stickyPanel']=new _0x4bf268(_0x5bc747),this['toolbar']=new _0x32ff63(_0x5bc747,{'shouldGroupWhenFull':_0x21bd60['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5bc747,_0x26b01d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1cd33c(_0x674d86){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4d3802,_0x2861d3){super(_0x2861d3),this['sourceElement']=_0x4d3802,this['model']['document']['createRoot']();const _0x422aac=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x422aac);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x24a39a,_0x2e10fd){const _0xd8202b=new this(_0x24a39a,_0x2e10fd);return await _0xd8202b['initPlugins'](),await _0xd8202b['ui']['init'](_0x24a39a),await _0xd8202b['data']['init'](_0xd8202b['config']['get']('initialData')||''),_0xd8202b['fire']('ready'),_0xd8202b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x1305a6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x369ab0){function _0x35be22(_0x1e57c0){return _0x1e57c0['map'](_0x1d991d=>String['fromCharCode'](_0x1d991d))['join']('');}super(_0x369ab0),this['result']='end',_0x369ab0[_0x35be22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35be22([0x76,0x69,0x65,0x77])][_0x35be22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35be22([0x61,0x75,0x74,0x6f]),_0x369ab0[_0x35be22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x35be22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35be22([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x35be22([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x35be22([0x6f,0x6b])});}}class ct extends _0x1305a6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3d717f){if(super(_0x3d717f),!this['editor']['config']['get']('revisionHistory'))throw new _0x51ae0d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x584691=>this['_showRevisionViewer']({..._0x584691,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36d7bf=>this['_closeRevisionViewer'](_0x36d7bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ea12d=>this['_restoreRevision'](_0x2ea12d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5bf4f5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5bf4f5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4a304d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4a304d);}['getRevision'](_0x2489b8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2489b8);}['getRevisions'](_0x28f11b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x28f11b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4bddd7=this['editor'],_0x474721=_0x5dbe93(_0x4bddd7,d),_0x5b6b10=_0x4bddd7['plugins']['get']('RevisionTracker'),_0x5774f9=_0x4bddd7['plugins']['get']('Users')['users'];return _0x474721['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x474721['lazyRoots'],(_0x474721['plugins']['push'](ht,l,u,class extends _0x1305a6{static get['requires'](){return[l,'Users'];}['init'](){const _0x3b061d=this['editor']['plugins']['get']('Users');for(const _0x45b43d of _0x5774f9)_0x45b43d['isAnonymous']||_0x3b061d['getUser'](_0x45b43d['id'])||_0x3b061d['addUser'](_0x45b43d);const _0x4c8a73=_0x5b6b10['repository']['getRevisions']();let _0x2f0417=null;const _0x5496e1=this['editor']['plugins']['get']('RevisionViewer');_0x5496e1['adapter']=_0x5b6b10['adapter'],_0x5496e1['bind']('isEnabled')['to'](_0x5b6b10),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4bddd7,'isReadOnly',_0x5234ef=>!_0x5234ef);for(const _0x1faf9d of _0x4c8a73){const _0x1480c3=null===_0x1faf9d['creator'];if(_0x1480c3&&_0x1faf9d['toVersion']===_0x1faf9d['fromVersion'])continue;const _0x48bfab=_0x1faf9d['toJSON']();_0x5496e1['addRevisionData'](_0x48bfab,(_0x1164b9,_0x283a7e,_0x3783bd)=>{if(_0x1480c3){if(_0x2f0417)_0x2f0417['_update'](_0x1164b9,_0x283a7e);else{if(!_0x283a7e){const _0x37fd5e=_0x3783bd['toJSON']();_0x37fd5e['id']=_0x2e23f1(),_0x5b6b10['saveRevision'](_0x37fd5e,_0x3783bd['toVersion'])['then'](_0x436b01=>{_0x2f0417=_0x436b01;});}}}else _0x1faf9d['_update'](_0x1164b9,_0x283a7e);});}}},f),_0x474721);}['_enhanceShowRevisionViewerCallback'](){const _0x401ea2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x265556=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1fce27=this['editor']['plugins']['get']('Autosave');await _0x1fce27['save']();}else await _0x265556['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x111326=this['editor']['plugins']['get']('Dialog');_0x111326['isOpen']&&_0x111326['hide']();}const _0x23f6b3=this['_getRevisionViewerEditorConfig']();return _0x401ea2(_0x23f6b3)['then'](_0xcf2c75=>{return(this['_viewerEditor']=_0xcf2c75,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'),_0xcf2c75);})['catch'](_0x41076f=>(console['error'](_0x41076f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xb16d93=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'](),_0xb16d93(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x37e3fe=this['editor']['plugins']['get']('Annotations');_0x37e3fe['refreshVisibility'](),_0x37e3fe['refreshPositioning']();}})));}['_showRevisionViewer'](_0x32b0c4){const _0xc248aa=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x12c0d0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4541e0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4541e0,_0x32b0c4)['then'](_0x492cc4=>(_0x12c0d0['style']['display']='block',_0xc248aa['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x492cc4));}['_closeRevisionViewer'](_0x5bd0c2){const _0x2cf0cc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2cf0cc['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5bd0c2['destroy']();}async['_restoreRevision'](_0x30b9ce){const _0x5be029=this['editor'],_0x30b4ce=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3cb2f7=_0x5be029['plugins']['get']('RevisionTracker'),_0x404fb9=_0x5be029['plugins']['get']('RevisionHistoryUtils'),_0x4fac3b=_0x30b4ce['repository']['getRevision'](_0x30b9ce);let _0x1155a9,_0x2daa6f,_0x1a4d50;try{await _0x404fb9['loadRevisionData'](_0x4fac3b,this['adapter']),_0x1155a9=_0x404fb9['getRevisionDocumentData'](_0x4fac3b),_0x2daa6f=_0x404fb9['getRevisionRootsAttributes'](_0x4fac3b);}catch(_0x1cb2eb){return void console['error'](_0x1cb2eb);}_0x5be029['model']['change'](_0x1ef335=>{for(const _0x552424 of Array['from'](_0x5be029['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1ef335['removeMarker'](_0x552424);}),_0x30b4ce['isReady']=!0x1,_0x5be029['model']['enqueueChange'](_0x36220b=>{_0x36220b['setSelection'](null),_0x36220b['removeSelectionAttribute'](_0x5be029['model']['document']['selection']['getAttributeKeys']());const _0x31017b=Object['keys'](_0x1155a9);for(const _0x2110c8 of _0x5be029['model']['document']['roots'])'$graveyard'!=_0x2110c8['rootName']&&_0x2110c8['isAttached']()&&!_0x31017b['includes'](_0x2110c8['rootName'])&&_0x36220b['detachRoot'](_0x2110c8);for(const _0x5bd6fe of _0x31017b){let _0x3b140b=_0x5be029['model']['document']['getRoot'](_0x5bd6fe);_0x3b140b&&_0x3b140b['isAttached']()||(_0x3b140b=_0x36220b['addRoot'](_0x5bd6fe));const _0x51a7ac=_0x2daa6f[_0x5bd6fe],_0x13472=Object['keys'](_0x51a7ac),_0x2d4ec1=_0x1155a9[_0x5bd6fe];for(const _0x2c5141 of _0x3b140b['getAttributeKeys']())_0x13472['includes'](_0x2c5141)||_0x36220b['removeAttribute'](_0x2c5141,_0x3b140b);for(const _0x5a05b4 of _0x13472)_0x36220b['setAttribute'](_0x5a05b4,_0x2daa6f[_0x5bd6fe][_0x5a05b4],_0x3b140b);_0x36220b['remove'](_0x36220b['createRangeIn'](_0x3b140b)),_0x36220b['insert'](_0x5be029['data']['parse'](_0x2d4ec1,_0x3b140b),_0x3b140b,0x0);}});const _0x42ba3f=R(_0x5be029['locale'],'Restored');if(_0x4fac3b['name'])_0x1a4d50=-0x1==_0x4fac3b['name']['indexOf'](_0x42ba3f)?_0x42ba3f+':\x20'+_0x4fac3b['name']:_0x4fac3b['name'];else _0x1a4d50=_0x42ba3f+':\x20'+(_0x4fac3b['createdAt']['toLocaleDateString'](_0x5be029['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4fac3b['createdAt']['toLocaleTimeString'](_0x5be029['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3cb2f7['saveRevision']({'name':_0x1a4d50}),_0x30b4ce['isReady']=!0x0,_0x5be029['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|