@ckeditor/ckeditor5-revision-history 46.0.1-alpha.7 → 46.0.1-alpha.8
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 +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +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
|
-
_0xf83e66(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x202e4c){super(),this['id']=_0x202e4c['id']||_0x54a7d7(),this['creator']=_0x202e4c['creator']||null,this['authors']=_0x202e4c['authors']||[],this['diffData']=_0x202e4c['diffData']||null,this['toVersion']=_0x202e4c['toVersion']||0x0,this['fromVersion']=_0x202e4c['fromVersion']||0x0,this['set']('name',_0x202e4c['name']||''),this['set']('createdAt',_0x202e4c['createdAt']||new Date()),this['set']('attributes',_0x202e4c['attributes']||{});}['setName'](_0x469312){this['_update']({'name':_0x469312});}['setAttribute'](_0x45c7db,_0x3b1eb8){const _0x4491c0=_0x1bef90(this['attributes']);_0x33bbdb(_0x4491c0,_0x45c7db,_0x3b1eb8),this['_update']({'attributes':_0x4491c0});}['removeAttribute'](_0x3b1125){const _0x31b3e8=_0x1bef90(this['attributes']);_0x2c4b37(_0x31b3e8,_0x3b1125),this['_update']({'attributes':_0x31b3e8});}['_update'](_0x496536,_0x32d937=!0x1){let _0x12a623=!0x1;const _0x573d21={'id':this['id']},_0x1246ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x461a2c of _0x1246ca){const _0x245c16=_0x496536[_0x461a2c];void 0x0!==_0x245c16&&_0x245c16!==this[_0x461a2c]&&(this[_0x461a2c]=_0x245c16,_0x573d21[_0x461a2c]=_0x245c16,_0x12a623=!0x0);}_0x12a623&&(_0x573d21['authors']&&(_0x573d21['authorsIds']=_0x573d21['authors']['map'](_0x1b5c5a=>_0x1b5c5a['id']),delete _0x573d21['authors']),this['fire']('_update',_0x573d21,_0x32d937));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x283f8d=>_0x283f8d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x42167a{['_revisions'];static get['requires'](){return[_0x376a79];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x10f4b9){super(_0x10f4b9),this['_revisions']=new _0x43d864();}['afterInit'](){!async function(_0xb38b14){const _0x355a57=_0x52df6e([0x74,0x58,0x55,0x6e,0x39,0x78,0x4b,0x4f,0x4d,0x48,0x72,0x36,0x47,0x4a,0x49,0x64,0x76,0x46,0x63,0x52,0x53,0x69,0x50,0x57,0x61,0x54,0x65,0x73,0x31,0x56,0x6b,0x4e,0x6c,0x32,0x71,0x70,0x5a,0x45,0x43,0x59,0x4c,0x33,0x41,0x37,0x6f,0x79,0x6d,0x68,0x34,0x6a,0x67,0x44,0x30,0x42,0x62,0x35,0x75,0x38,0x77,0x66,0x7a,0x51]),_0x59b6e6=0xeb829,_0x25d7f9=0x3d6338a8,_0x188ac0=0x3d645730^_0x25d7f9,_0x47ce3b=window[_0x52df6e([0x44,0x61,0x74,0x65])][_0x52df6e([0x6e,0x6f,0x77])](),_0x4cdd02=_0xb38b14[_0x52df6e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1847e1=new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3abdf1=>{_0x4cdd02[_0x52df6e([0x6f,0x6e,0x63,0x65])](_0x52df6e([0x72,0x65,0x61,0x64,0x79]),_0x3abdf1);}),_0x5ae339={[_0x52df6e([0x6b,0x74,0x79])]:_0x52df6e([0x45,0x43]),[_0x52df6e([0x75,0x73,0x65])]:_0x52df6e([0x73,0x69,0x67]),[_0x52df6e([0x63,0x72,0x76])]:_0x52df6e([0x50,0x2d,0x32,0x35,0x36]),[_0x52df6e([0x78])]:_0x52df6e([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]),[_0x52df6e([0x79])]:_0x52df6e([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]),[_0x52df6e([0x61,0x6c,0x67])]:_0x52df6e([0x45,0x53,0x32,0x35,0x36])},_0x58e595=_0x4cdd02[_0x52df6e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52df6e([0x67,0x65,0x74])](_0x52df6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa62131(){let _0x424b70,_0xda34d3=null,_0x312136=null;try{if(_0x58e595==_0x52df6e([0x47,0x50,0x4c]))return _0x52df6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x424b70=_0x5c81f1(),!_0x424b70)return _0x52df6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x424b70[_0x52df6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x312136=_0x227263(_0x424b70[_0x52df6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x424b70[_0x52df6e([0x6a,0x74,0x69])])),await _0x58b02a()?_0xf49953()?_0x38d308()?_0x52df6e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x421244()?(_0x424b70[_0x52df6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52df6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xda34d3=_0x3c9583(_0x52df6e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x424b70[_0x52df6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52df6e([0x74,0x72,0x69,0x61,0x6c])&&(_0xda34d3=_0x3c9583(_0x52df6e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31782b()):_0x52df6e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52df6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52df6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52df6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38d308(){const _0xea0abd=[_0x52df6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52df6e([0x74,0x72,0x69,0x61,0x6c])][_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424b70[_0x52df6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47ce3b/0x3e8:0xe10*_0x188ac0;return _0x424b70[_0x52df6e([0x65,0x78,0x70])]<_0xea0abd;}function _0xf49953(){const _0x3da83d=_0x424b70[_0x52df6e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3da83d)return!0x1;if(_0x3da83d[_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52df6e([0x2a])))return!0x0;if(_0x3da83d[_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52df6e([0x52,0x48])))return!0x0;if(_0x3da83d[_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52df6e([0x52,0x52,0x48]))){if(_0x422ea2())return!0x0;if(_0x49174a()||_0x1d8cb5())return!0x0;}return!0x1;}function _0x421244(){const _0x2b8294=_0x424b70[_0x52df6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b8294||0x0==_0x2b8294[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30baf9}=new URL(window[_0x52df6e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b8294[_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30baf9))return!0x0;const _0x53009e=_0x30baf9[_0x52df6e([0x73,0x70,0x6c,0x69,0x74])](_0x52df6e([0x2e]));return _0x2b8294[_0x52df6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d9ba2=>_0x2d9ba2[_0x52df6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52df6e([0x2a])))[_0x52df6e([0x6d,0x61,0x70])](_0x51b207=>_0x51b207[_0x52df6e([0x73,0x70,0x6c,0x69,0x74])](_0x52df6e([0x2e])))[_0x52df6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d6072=>_0x1d6072[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53009e[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52df6e([0x6d,0x61,0x70])](_0x4463b7=>Array(_0x53009e[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4463b7[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52df6e([0x66,0x69,0x6c,0x6c])](_0x4463b7[0x0]===_0x52df6e([0x2a])?_0x52df6e([0x2a]):'')[_0x52df6e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4463b7))[_0x52df6e([0x73,0x6f,0x6d,0x65])](_0x166ab3=>_0x53009e[_0x52df6e([0x65,0x76,0x65,0x72,0x79])]((_0x5493a3,_0x1ddf86)=>_0x166ab3[_0x1ddf86]===_0x5493a3||_0x166ab3[_0x1ddf86]===_0x52df6e([0x2a])));}function _0x31782b(){return _0xda34d3&&_0x312136?new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x471652,_0x2a03af)=>{_0xda34d3[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x471652,_0x2a03af),_0x312136[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x36d637=>{_0x36d637!=_0x52df6e([0x56,0x61,0x6c,0x69,0x64])&&_0x471652(_0x36d637);},_0x2a03af);}):_0xda34d3||_0x312136||_0x52df6e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x227263(_0x5b10a7,_0x594f75){return new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ad7a5=>{if(_0x56f285())return _0x5ad7a5(_0x52df6e([0x56,0x61,0x6c,0x69,0x64]));_0x33b364(),_0x4cdd02[_0x52df6e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52df6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18e681=!0x1;const _0x5ca6c1=_0x54a7d7();function _0x422dcd(_0x42ba2a){return!!_0x42ba2a&&(typeof _0x42ba2a===_0x52df6e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42ba2a===_0x52df6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42ba2a[_0x52df6e([0x74,0x68,0x65,0x6e])]===_0x52df6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42ba2a[_0x52df6e([0x63,0x61,0x74,0x63,0x68])]===_0x52df6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xba89dd(_0x57e061){_0x5471b2(_0x57e061)[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x4a647d=>{if(!_0x4a647d||_0x4a647d[_0x52df6e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52df6e([0x6f,0x6b]))return _0x52df6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbad295(_0x1b1f59(_0x5ca6c1+_0x594f75))!=_0x4a647d[_0x52df6e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52df6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52df6e([0x56,0x61,0x6c,0x69,0x64]);})[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x7f4641=>(_0x15e519(),_0x7f4641),()=>{const _0xa78bf3=_0x437b10();return null==_0xa78bf3?(_0x15e519(),_0x52df6e([0x56,0x61,0x6c,0x69,0x64])):_0x52df6e(_0x47ce3b-_0xa78bf3>(0x196fbca8^_0x25d7f9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x5ad7a5)[_0x52df6e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ad7a5(_0x52df6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18c02d=0x3d55d628^_0x25d7f9;function _0x15e519(){const _0x385714=_0x52df6e([0x6c,0x6c,0x63,0x74,0x2d])+_0xbad295(_0x1b1f59(_0x5b10a7)),_0x109440=_0xaa2472(_0xbad295(window[_0x52df6e([0x4d,0x61,0x74,0x68])][_0x52df6e([0x63,0x65,0x69,0x6c])](_0x47ce3b/_0x18c02d)));window[_0x52df6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52df6e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x385714,_0x109440);}function _0x437b10(){const _0x1c2871=_0x52df6e([0x6c,0x6c,0x63,0x74,0x2d])+_0xbad295(_0x1b1f59(_0x5b10a7)),_0x25fea5=window[_0x52df6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52df6e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2871);return _0x25fea5?window[_0x52df6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaa2472(_0x25fea5),0x10)*_0x18c02d:null;}function _0x5471b2(_0x29753d){return new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56cead,_0x5f2796)=>{_0x29753d[_0x52df6e([0x74,0x68,0x65,0x6e])](_0x56cead,_0x5f2796),window[_0x52df6e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f2796,0x3d62ec68^_0x25d7f9);});}}_0x4cdd02[_0x52df6e([0x6f,0x6e])](_0x52df6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25e442,_0x44e34e)=>{if(_0x44e34e[0x0]!=_0x5b10a7)return _0x5ad7a5(_0x52df6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44e34e[0x1]={..._0x44e34e[0x1],[_0x52df6e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ca6c1};},{[_0x52df6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52df6e([0x68,0x69,0x67,0x68])}),_0x4cdd02[_0x52df6e([0x6f,0x6e])](_0x52df6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x60fbf3=>{_0x422dcd(_0x60fbf3[_0x52df6e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18e681=!0x0,_0xba89dd(_0x60fbf3[_0x52df6e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52df6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52df6e([0x6c,0x6f,0x77])}),_0x1847e1[_0x52df6e([0x74,0x68,0x65,0x6e])](()=>{_0x18e681||_0x5ad7a5(_0x52df6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56f285(){return _0x4cdd02[_0x52df6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52df6e([0x76,0x69,0x65,0x77])][_0x52df6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52df6e([0x61,0x75,0x74,0x6f]);}function _0x33b364(){_0x4cdd02[_0x52df6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52df6e([0x76,0x69,0x65,0x77])][_0x52df6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52df6e([0x61,0x75,0x74,0x6f]);}}function _0x3c9583(_0x99b977){const _0x5bddc3=[new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3645f5=>setTimeout(_0x3645f5,0x3d6a0664^_0x25d7f9)),_0x1847e1[_0x52df6e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1138c7=>{const _0x400454=0x3d6338af^_0x25d7f9,_0x52d3b4=_0xb38b14[_0x52df6e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x248f6c(){_0x52d3b4[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x400454&&_0x1138c7();}_0x248f6c(),_0x52d3b4[_0x52df6e([0x6f,0x6e])](_0x52df6e([0x61,0x64,0x64]),_0x248f6c);})),new window[(_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506e58=>{function _0x3d33b9(){for(const _0x232fcb in window)if(window[_0x52df6e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x52df6e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x232fcb))&&window[_0x232fcb]==_0x59b6e6)return _0x506e58();_0x4cdd02[_0x52df6e([0x73,0x74,0x61,0x74,0x65])]!=_0x52df6e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x52df6e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d33b9,0x3d632b20^_0x25d7f9);}_0x2feda5(_0x52df6e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3d33b9();})];return window[_0x52df6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52df6e([0x72,0x61,0x63,0x65])](_0x5bddc3)[_0x52df6e([0x74,0x68,0x65,0x6e])](()=>_0x99b977);}async function _0x391bdd(){if(await _0x1847e1,_0x2feda5(_0x52df6e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4bea8f=_0xb38b14[_0x52df6e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x24ea73=_0xb38b14[_0x52df6e([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])](_0x4bea8f[_0x52df6e([0x69,0x64])]),_0x1a6696=_0x4e6275(_0x52df6e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a6696[_0x52df6e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4bea8f['id'],_0x24ea73?_0x24ea73['id']:null,!0x0),_0x1a6696[_0x52df6e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x52df6e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a6696[_0x52df6e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a6696[_0x52df6e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x461e6a,void(_0x1a6696[_0x52df6e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x461e6a);}if(_0x2feda5(_0x52df6e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x62e37b=_0x4e6275(_0x52df6e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x62e37b[_0x52df6e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x52df6e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x62e37b[_0x52df6e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x62e37b[_0x52df6e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x461e6a,_0x62e37b[_0x52df6e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x461e6a;}_0x4cdd02[_0x52df6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x52df6e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x461e6a,_0x4cdd02[_0x52df6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x52df6e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x461e6a,_0x4cdd02[_0x52df6e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52df6e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x422ea2(){return _0x2feda5(_0x52df6e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e6275(_0x52df6e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52df6e([0x73,0x74,0x61,0x74,0x65])]==_0x52df6e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49174a(){return _0x2feda5(_0x52df6e([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 _0x1d8cb5(){return _0x2feda5(_0x52df6e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11f04d(_0x1eabe2){const _0xfd349c=_0x18a29d();_0x4cdd02[_0xfd349c]=_0x52df6e([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])+_0x1eabe2,_0x1eabe2[_0x52df6e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x52df6e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x18a29d()]=_0x59b6e6),_0x1eabe2!=_0x52df6e([0x56,0x61,0x6c,0x69,0x64])&&_0x391bdd();}function _0x18a29d(){const _0x2de6da=window[_0x52df6e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52df6e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52df6e([0x6e,0x6f,0x77])]())[_0x52df6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52df6e([0x2e]),'');let _0x3627ea=_0x52df6e([0x74]);for(let _0x1b8246=0x0;_0x1b8246<_0x2de6da[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b8246+=0x2){let _0x14d123=window[_0x52df6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de6da[_0x52df6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b8246,_0x1b8246+0x2));_0x14d123>=_0x355a57[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14d123-=_0x355a57[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3627ea+=_0x355a57[_0x14d123];}return _0x3627ea;}function _0x5c81f1(){const _0x2bccbf=_0x58e595[_0x52df6e([0x73,0x70,0x6c,0x69,0x74])](_0x52df6e([0x2e]));if(0x3!=_0x2bccbf[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2210e3(_0x2bccbf[0x1]);function _0x2210e3(_0x2285f1){const _0x3a410d=_0x3f7b58(_0x2285f1);return _0x3a410d&&_0x30d4b1()?_0x3a410d:null;function _0x30d4b1(){const _0x386e8b=_0x3a410d[_0x52df6e([0x6a,0x74,0x69])],_0x30436a=window[_0x52df6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x386e8b[_0x52df6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x386e8b[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9fb93b={..._0x3a410d,[_0x52df6e([0x6a,0x74,0x69])]:_0x386e8b[_0x52df6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x386e8b[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9fb93b[_0x52df6e([0x76,0x63])],_0x1b1f59(_0x9fb93b)==_0x30436a;}}}async function _0x58b02a(){let _0x12e985=!0x0;try{const _0x3a5334=_0x58e595[_0x52df6e([0x73,0x70,0x6c,0x69,0x74])](_0x52df6e([0x2e])),[_0x52e7e8,_0x22b933,_0x292bec]=_0x3a5334;return _0x1f98b9(_0x52e7e8),await _0x768389(_0x52e7e8,_0x22b933,_0x292bec),_0x12e985;}catch{return!0x1;}function _0x1f98b9(_0x5b1943){const _0x280281=_0x3f7b58(_0x5b1943);_0x280281&&_0x280281[_0x52df6e([0x61,0x6c,0x67])]==_0x52df6e([0x45,0x53,0x32,0x35,0x36])||(_0x12e985=!0x1);}async function _0x768389(_0xcce1c2,_0x44a702,_0x1d3289){const _0x1a8ed0=window[_0x52df6e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52df6e([0x66,0x72,0x6f,0x6d])](_0x333e22(_0x1d3289),_0x1d9b09=>_0x1d9b09[_0x52df6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12b02a=new window[(_0x52df6e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52df6e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcce1c2+_0x52df6e([0x2e])+_0x44a702),_0x46806c=window[_0x52df6e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52df6e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46806c)return;const _0x15cbb1=await _0x46806c[_0x52df6e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52df6e([0x6a,0x77,0x6b]),_0x5ae339,{[_0x52df6e([0x6e,0x61,0x6d,0x65])]:_0x52df6e([0x45,0x43,0x44,0x53,0x41]),[_0x52df6e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52df6e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52df6e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46806c[_0x52df6e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52df6e([0x6e,0x61,0x6d,0x65])]:_0x52df6e([0x45,0x43,0x44,0x53,0x41]),[_0x52df6e([0x68,0x61,0x73,0x68])]:{[_0x52df6e([0x6e,0x61,0x6d,0x65])]:_0x52df6e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15cbb1,_0x1a8ed0,_0x12b02a)||(_0x12e985=!0x1);}}function _0x3f7b58(_0x5b7bda){return _0x5b7bda[_0x52df6e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52df6e([0x65,0x79]))?JSON[_0x52df6e([0x70,0x61,0x72,0x73,0x65])](_0x333e22(_0x5b7bda)):null;}function _0x333e22(_0x52d09f){return window[_0x52df6e([0x61,0x74,0x6f,0x62])](_0x52d09f[_0x52df6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52df6e([0x2b]))[_0x52df6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52df6e([0x2f])));}function _0x1b1f59(_0x5b0d50){let _0x30cc1b=0x1505;function _0x442f43(_0x431c4b){for(let _0x33bb23=0x0;_0x33bb23<_0x431c4b[_0x52df6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33bb23++){const _0x10f300=_0x431c4b[_0x52df6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33bb23);_0x30cc1b=(_0x30cc1b<<0x5)+_0x30cc1b+_0x10f300,_0x30cc1b&=_0x30cc1b;}}function _0x22142c(_0x8ac506){Array[_0x52df6e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8ac506)?_0x8ac506[_0x52df6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22142c):_0x8ac506&&typeof _0x8ac506==_0x52df6e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52df6e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8ac506)[_0x52df6e([0x73,0x6f,0x72,0x74])]()[_0x52df6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x387282,_0x348083])=>{_0x442f43(_0x387282),_0x22142c(_0x348083);}):_0x442f43(window[_0x52df6e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8ac506));}return _0x22142c(_0x5b0d50),_0x30cc1b>>>0x0;}function _0xbad295(_0x14e81e){return _0x14e81e[_0x52df6e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52df6e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52df6e([0x30]));}function _0xaa2472(_0x5f4580){return _0x5f4580[_0x52df6e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52df6e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52df6e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2feda5(_0x40325f){return _0x4cdd02[_0x52df6e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52df6e([0x68,0x61,0x73])](_0x40325f);}function _0x4e6275(_0x3687a4){return _0x4cdd02[_0x52df6e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52df6e([0x67,0x65,0x74])](_0x3687a4);}function _0x461e6a(){}function _0x52df6e(_0x56033e){return _0x56033e['map'](_0x183f1c=>String['fromCharCode'](_0x183f1c))['join']('');}_0x11f04d(await _0xa62131());}(this);}['createRevision'](_0x49a784){const _0x264287=this['editor']['plugins']['get']('Users');return new I({'id':_0x49a784['id'],'name':_0x49a784['name'],'creator':_0x49a784['creatorId']?_0x264287['getUser'](_0x49a784['creatorId']):null,'diffData':_0x49a784['diffData']||_0x49a784['data'],'authors':_0x49a784['authorsIds']['map'](_0xc6c59d=>_0x264287['getUser'](_0xc6c59d)),'createdAt':new Date(_0x49a784['createdAt']),'attributes':_0x49a784['attributes'],'fromVersion':_0x49a784['fromVersion'],'toVersion':_0x49a784['toVersion']});}['addRevision'](_0x1e2b51,_0x44634e=0x0){this['_revisions']['add'](_0x1e2b51,_0x44634e);}['getRevision'](_0x238342){return this['_revisions']['get'](_0x238342);}['getRevisions'](_0x3c6399={'toJSON':!0x1}){const _0xa29047=Array['from'](this['_revisions']);return _0xa29047['reverse'](),_0x3c6399['toJSON']?_0xa29047['map'](_0x4edd05=>_0x4edd05['toJSON']()):_0xa29047;}['getIndex'](_0x4f34a8){return this['_revisions']['getIndex'](_0x4f34a8);}['getEarlierVisibleRevision'](_0x537950){const [,_0x244bbe]=this['getRevisionsIterator'](_0x537950,{'direction':'earlier'});return _0x244bbe;}['getLaterVisibleRevision'](_0x95b0b9){const [,_0x3aead9]=this['getRevisionsIterator'](_0x95b0b9,{'direction':'later'});return _0x3aead9;}['getRevisionsInDiff'](_0x322433){const _0x5ae55e=[];for(const _0x507cdb of this['getRevisionsIterator'](_0x322433['newRevisionId']))if(_0x5ae55e['push'](_0x507cdb),_0x507cdb['id']===_0x322433['oldRevisionId'])break;return _0x5ae55e;}*['getRevisionsIterator'](_0x962cce,{direction:_0x2cf8ba='earlier',filter:_0xf92fed=()=>!0x0}={}){const _0x285a7a='earlier'===_0x2cf8ba?0x1:-0x1;let _0x1ff530=this['_revisions']['get'](_0x962cce),_0x1ed31b=this['getIndex'](_0x1ff530);for(yield _0x1ff530;_0x1ff530;){if(_0x1ed31b+=_0x285a7a,_0x1ff530=this['getRevision'](_0x1ed31b),!_0x1ff530)return;_0xf92fed(_0x1ff530)&&(yield _0x1ff530);}}}class $ extends _0x42167a{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5a0180,'c'],[_0x4d7325,'a'],[_0x5015a2,'e'],[_0x57cb36,'r'],[_0x312f26,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5a0180],['a',_0x4d7325],['e',_0x5015a2],['r',_0x57cb36],['u',_0x312f26]]);async['loadRevisionData'](_0x3afd93,_0x1ea63c){if(_0x3afd93['diffData']||!_0x1ea63c)return;const _0x1d46d8=this['editor']['config']['get']('collaboration.channelId'),_0x455a9a=await _0x1ea63c['getRevision']({'channelId':_0x1d46d8,'revisionId':_0x3afd93['id']});_0x3afd93['diffData']=_0x455a9a['diffData'];}['getRevisionDocumentData'](_0x185ff4){const _0x2335c5={};for(const _0x2f56a8 in _0x185ff4['diffData']){if(_0x185ff4['diffData'][_0x2f56a8]['attachChange']&&!_0x185ff4['diffData'][_0x2f56a8]['attachChange']['isAttached'])continue;const _0x32075d=this['_removeRevisionMarkers'](JSON['parse'](_0x185ff4['diffData'][_0x2f56a8]['insertions'])),_0x53ef04=this['editor']['editing']['view']['document'],_0x4fbf94=new _0x347038(_0x53ef04,_0x32075d['map'](_0x584145=>this['_getViewFromDiffObj'](_0x584145,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2335c5[_0x2f56a8]=this['editor']['data']['processor']['toData'](_0x4fbf94),this['editor']['data']['processor']['useFillerType']('default');}return _0x2335c5;}['getRevisionRootsAttributes'](_0x144d30){const _0x4b49f2={};for(const _0x51f31f in _0x144d30['diffData'])_0x144d30['diffData'][_0x51f31f]['attachChange']&&!_0x144d30['diffData'][_0x51f31f]['attachChange']['isAttached']||(_0x4b49f2[_0x51f31f]=_0x144d30['diffData'][_0x51f31f]['attributesAfter']||{});return _0x4b49f2;}['_getTypeCharForViewElement'](_0x32ad53){return this['_viewClassToTypeChar']['get'](_0x32ad53['constructor']);}['_getViewFromDiffObj'](_0x3b7335,_0x5eba78){const _0x46c2a9=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b7335)return new _0x3f07c9(_0x46c2a9,_0x3b7335);{let _0x216dc9,_0x37b486;_0x37b486='u'==_0x3b7335['type']||'r'==_0x3b7335['type']?[]:_0x3b7335['children']['map'](_0xb105c7=>this['_getViewFromDiffObj'](_0xb105c7,_0x5eba78));const _0x17e90a=this['_typeCharToViewClass']['get'](_0x3b7335['type'])||_0xf4c76c,_0x3315bc=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x216dc9=new _0x17e90a(_0x46c2a9,_0x3b7335['name'],_0x3b7335['attributes'],_0x37b486),'u'==_0x3b7335['type']&&_0x3b7335['children'][0x0]){const _0x1bb1c5=_0x3b7335['children'][0x0];if(_0x216dc9['render']=function(_0x12bd3e){const _0x4227aa=_0x12bd3e['createElement']('div');return _0x4227aa['innerHTML']=_0x1bb1c5,_0x4227aa['childNodes'][0x0];},_0x5eba78){const _0x3156a9=new _0x347038(_0x46c2a9);_0x3156a9['_appendChild'](_0x216dc9);const _0x26b58c=Array['from'](_0x3315bc['viewChildrenToDom'](_0x3156a9,{'bind':!0x1})),_0x10032d=_0x3315bc['domDocument']['createElement']('div');_0x10032d['append'](..._0x26b58c),_0x216dc9=Array['from'](_0x3315bc['domChildrenToView'](_0x10032d))[0x0];}}else{if('r'==_0x3b7335['type']&&_0x3b7335['children'][0x0]){const _0xb72edc=_0x3b7335['children'][0x0];if(_0x216dc9['render']=function(_0x5c6240){_0x5c6240['innerHTML']=_0xb72edc;},_0x5eba78){const _0x2686dc=new _0x347038(_0x46c2a9);_0x2686dc['_appendChild'](_0x216dc9);const _0x4d9cc1=Array['from'](_0x3315bc['viewChildrenToDom'](_0x2686dc,{'bind':!0x1})),_0x5d9fc5=_0x3315bc['domDocument']['createElement']('div');_0x5d9fc5['append'](..._0x4d9cc1);const _0x415620=Array['from'](_0x3315bc['domChildrenToView'](_0x5d9fc5));_0x415620['length']>0x1?_0x216dc9['_appendChild'](_0x415620):_0x216dc9=_0x415620[0x0];}}}if(_0x3b7335['customProperties']){for(const [_0x401f81,_0x48d205]of _0x3b7335['customProperties'])_0x216dc9['_setCustomProperty'](_0x401f81,_0x48d205);}const _0x186e20=void 0x0===_0x3b7335['fillerOffset']?null:_0x3b7335['fillerOffset'];return null!==_0x186e20&&(_0x216dc9['getFillerOffset']=()=>_0x186e20),_0x216dc9;}}['_makeModelFromViewString'](_0x58b669){const _0x4f6286=JSON['parse'](_0x58b669),_0xbc3be2=this['editor']['editing']['view']['document'],_0x3be627=new _0x347038(_0xbc3be2,_0x4f6286['map'](_0x1ddd0d=>this['_getViewFromDiffObj'](_0x1ddd0d,!0x0)));return this['editor']['data']['toModel'](_0x3be627);}['_removeRevisionMarkers'](_0x4f4c9e){return(_0x4f4c9e=_0x4f4c9e['filter'](_0x264cbe=>!_0x264cbe['name']||'revision-start'!==_0x264cbe['name']&&'revision-end'!==_0x264cbe['name']))['forEach'](_0x5cc8ac=>{'string'!=typeof _0x5cc8ac&&(_0x5cc8ac['children']=this['_removeRevisionMarkers'](_0x5cc8ac['children']),_0x5cc8ac['attributes']=_0x5cc8ac['attributes']['filter'](_0x24d246=>!_0x24d246[0x0]['startsWith']('data-revision-')));}),_0x4f4c9e;}}function R(_0x3b7d5d,_0x1bc8c1,_0x40eae6){const t=_0x3b7d5d['t'];switch(_0x1bc8c1){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'},_0x40eae6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x40eae6);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 _0x42167a{['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[_0x376a79,S,$,_0x113c0e];}constructor(_0x399da0){super(_0x399da0),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 _0x21c684=_0x54a7d7();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x21c684},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 _0x471778=this['repository']['getRevision'](0x0),_0x45c3a4=_0x471778&&null===_0x471778['creator']?_0x471778:null;if(this['_continueCurrentRevision']=!!_0x45c3a4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3bb969=this['_source']['getCurrentRevisionId'](),_0x52821e=this['repository']['getRevision'](_0x3bb969);if(_0x52821e)this['_startingVersion']=_0x52821e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1d2fae=this['_source']['history']['_operations']['find'](_0x3c1e43=>!_0x3c1e43['_isInit']),_0x432e38=_0x1d2fae?_0x1d2fae['baseVersion']:this['_source']['history']['version'];_0x471778?(_0x471778['toVersion']<_0x432e38&&_0x471778['_update']({'toVersion':_0x432e38}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x45c3a4['id'],this['_startingVersion']=_0x45c3a4['fromVersion']):(this['_startingVersion']=_0x471778['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x432e38,this['_continueCurrentRevision']=!0x1);}}else _0x45c3a4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x45c3a4['toVersion'],this['editor']['model']['document']['history']['version']),_0x45c3a4['fromVersion']===_0x45c3a4['toVersion']?(0x0!==_0x45c3a4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x45c3a4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x45c3a4['id'],this['_startingVersion']=_0x45c3a4['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',_0x10af2b=>!_0x10af2b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49ac83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x433d85;for(const _0x3c2690 in _0x49ac83){const _0x2585d5=_0x3c2690,_0x4a3471=_0x49ac83[_0x2585d5];if('revisionHistoryLicenseKeyValid'==_0x4a3471||'revisionHistoryLicenseKeyInvalid'==_0x4a3471||'revisionHistoryLicenseKeyExpired'==_0x4a3471||'revisionHistoryLicenseKeyDomainLimit'==_0x4a3471||'revisionHistoryLicenseKeyNotAllowed'==_0x4a3471||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a3471||'revisionHistoryLicenseKeyTrialLimit'==_0x4a3471||'revisionHistoryLicenseKeyUsageLimit'==_0x4a3471){delete _0x49ac83[_0x2585d5],_0x433d85=_0x4a3471,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x433d85&&_0x49ac83['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x433d85&&_0x49ac83['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x433d85&&_0x49ac83['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x433d85&&_0x49ac83['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x433d85&&_0x49ac83['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x433d85&&_0x49ac83['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x433d85&&_0x49ac83['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3d3fdf=this['repository']['getRevision'](0x0),_0x56d042=await this['getRevisionDocumentData'](_0x3d3fdf),_0x1766b9=await this['getRevisionRootsAttributes'](_0x3d3fdf);this['_replaceEditorDataWithRevisionData'](_0x56d042,_0x1766b9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1a46e3){this['_source']=_0x1a46e3;}async['update'](){const _0x59e2e2=await this['_source']['getLatestVersion']();if(_0x59e2e2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2263ac=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x59e2e2});_0x2263ac['authors']=_0x2263ac['authorsIds']['map'](_0x41bf4e=>this['editor']['plugins']['get']('Users')['getUser'](_0x41bf4e)),this['currentRevision']['_update'](_0x2263ac);}}async['saveRevision'](_0x47a742={},_0x4c13a9=null){const _0x558466=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c13a9>this['currentRevision']['toVersion']&&(_0x4c13a9=null),null===_0x4c13a9&&(_0x4c13a9=await this['_source']['getLatestVersion']());const _0x288395=this['_getFromVersion'](_0x4c13a9),_0x2523e2=this['buildRevisionData']({'from':_0x288395,'to':_0x4c13a9});if(this['currentRevision']['toVersion']<_0x4c13a9){const _0x36867d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c13a9,'to':_0x4c13a9});_0x36867d['authors']=[],_0x36867d['authorsIds']=[],_0x36867d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36867d,!0x0),delete _0x36867d['authors'],_0x558466['push'](_0x36867d);}_0x47a742['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x47a742['name']=_0x47a742['name']||null,_0x47a742['id']=_0x47a742['id']||_0x54a7d7(),_0x47a742={..._0x47a742,..._0x2523e2};const _0x4f39f2=this['addRevisionData'](_0x47a742);_0x558466['push'](_0x47a742);const _0x248031=this['repository']['getIndex'](_0x4f39f2);if(0x0!==_0x248031){const _0x5e3b00=this['repository']['getRevision'](_0x248031-0x1);if(_0x5e3b00['fromVersion']!==_0x4c13a9){const _0x4b37bd=this['_revisionDataBuilder']['getData'](_0x4c13a9,_0x5e3b00['toVersion']),_0x30cd20={'id':_0x5e3b00['id'],'diffData':_0x4b37bd['diffData'],'authorsIds':_0x4b37bd['authorsIds'],'authors':_0x4b37bd['authorsIds']['map'](_0x2d749e=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d749e)),'fromVersion':_0x4c13a9};_0x5e3b00===this['currentRevision']&&(_0x30cd20['createdAt']=new Date(_0x47a742['createdAt']['getTime']()+0xa)),_0x5e3b00['_update'](_0x30cd20,!0x0),delete _0x30cd20['authors'],_0x558466['push'](_0x30cd20);}}if(this['adapter']){for(const _0x3d2897 of _0x558466)this['_bufferUpdate'](_0x3d2897['id'],_0x3d2897,!0x0);this['sendBufferedUpdates']();}return _0x4f39f2;}['addRevisionData'](_0x54ae60){const _0x3e8bea=this['repository']['createRevision'](_0x54ae60);return this['adapter']&&_0x3e8bea['on']('_update',(_0x4ec56e,_0x1b2598,_0x3a1be3)=>{_0x3a1be3||(this['_bufferUpdate'](_0x1b2598['id'],_0x1b2598,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3e8bea,this['_findInsertionIndex'](_0x3e8bea)),_0x3e8bea;}async['getRevisionDocumentData'](_0x1543c2){return await this['_utils']['loadRevisionData'](_0x1543c2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1543c2);}async['getRevisionRootsAttributes'](_0x355555){return await this['_utils']['loadRevisionData'](_0x355555,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x355555);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x593aba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x29fe82=0x0;_0x29fe82<_0x593aba['length'];_0x29fe82++){const _0x141353=_0x593aba[_0x29fe82];let _0x3cf18b=!0x1;for(const _0xc33b88 of Object['keys'](_0x141353))void 0x0===_0x141353[_0xc33b88]?delete _0x141353[_0xc33b88]:'id'!==_0xc33b88&&(_0x3cf18b=!0x0);_0x3cf18b||(_0x593aba[_0x29fe82]=null);}if(_0x593aba=_0x593aba['filter'](_0x15c952=>null!==_0x15c952),!_0x593aba['length'])return;for(let _0x3eee49=0x0;_0x3eee49<_0x593aba['length'];_0x3eee49++){const _0x44fd07=_0x593aba[_0x3eee49];void 0x0!==_0x44fd07['fromVersion']&&void 0x0===_0x44fd07['toVersion']&&(_0x44fd07['toVersion']=this['repository']['getRevision'](_0x44fd07['id'])['toVersion']),void 0x0!==_0x44fd07['toVersion']&&void 0x0===_0x44fd07['fromVersion']&&(_0x44fd07['fromVersion']=this['repository']['getRevision'](_0x44fd07['id'])['fromVersion']);}const _0x173767=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x593aba,_0x173767)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9be46=>{if(_0x9be46){for(const _0x18db34 of _0x9be46)this['setRevisionData']({'id':_0x18db34['id'],'createdAt':_0x18db34['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x55047e=null,from:_0x44a165=null,to:_0x38e191=null}){_0x44a165=null!==_0x44a165?_0x44a165:_0x55047e['fromVersion'],_0x38e191=null!==_0x38e191?_0x38e191:_0x55047e['toVersion'];const _0x3ab764=this['_revisionDataBuilder']['getData'](_0x44a165,_0x38e191),_0x182317={'diffData':_0x3ab764['diffData'],'authorsIds':_0x3ab764['authorsIds'],'fromVersion':_0x44a165,'toVersion':_0x38e191};if(!_0x55047e||_0x38e191!==_0x55047e['toVersion']){const _0x563c3b=_0x38e191-0x1,_0x41ed2f=this['_source']['history']['getOperation'](_0x563c3b);_0x182317['createdAt']=_0x41ed2f&&_0x41ed2f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x44a165===this['_loadedStateData']['fromVersion']){for(const _0x321ef2 of this['_loadedStateData']['authors'])_0x182317['authorsIds']['includes'](_0x321ef2['id'])||_0x182317['authorsIds']['push'](_0x321ef2['id']);}return _0x182317;}['_bufferUpdate'](_0x9c5a9a,_0x1b75e4,_0x2bc7a8){if(this['_bufferedUpdates']['has'](_0x9c5a9a)){const _0xe9bfa8=this['_bufferedUpdates']['get'](_0x9c5a9a);_0x1b75e4=_0x2bc7a8?{..._0xe9bfa8,..._0x1b75e4}:{..._0x1b75e4,..._0xe9bfa8};}this['_bufferedUpdates']['set'](_0x9c5a9a,_0x1b75e4);}['setRevisionData'](_0x10afce){const _0x8e42e8=this['repository']['getRevision'](_0x10afce['id']);if(_0x10afce['createdAt']&&(_0x10afce['createdAt']=new Date(_0x10afce['createdAt'])),_0x10afce['authorsIds']){const _0x6f8bde=this['editor']['plugins']['get']('Users');_0x10afce['authors']=_0x10afce['authorsIds']['map'](_0xa6df26=>_0x6f8bde['getUser'](_0xa6df26));}_0x8e42e8['_update'](_0x10afce,!0x0);}['_createInitialRevision'](_0x3e0bbf){const _0x1835ff=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1835ff)this['_initialRevisionId']=_0x1835ff['id'];else{const _0x1e6049=!this['editor']['model']['document']['roots']['find'](_0x1729f9=>this['editor']['model']['hasContent'](_0x1729f9)),_0x98d699=this['editor']['plugins']['get']('Users')['me']['id'],_0x353c09=R(this['editor']['locale'],_0x1e6049?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3e0bbf,'to':_0x3e0bbf,'id':this['_initialRevisionId'],'name':_0x353c09,'creatorId':_0x98d699});}}['_createCurrentRevision'](_0x531ca0){const _0x46b00b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x46b00b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x531ca0,'to':_0x531ca0,'id':_0x46b00b,'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'](_0x3ca2be,_0x3adc2e){let _0x12e051=this['editor']['config']['get']('initialData'),_0x2f211c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x12e051){_0x12e051={};for(const _0x58e51b of this['editor']['model']['document']['getRootNames']())_0x12e051[_0x58e51b]='';}if('string'==typeof _0x12e051&&(_0x12e051={'main':_0x12e051}),void 0x0===_0x2f211c){_0x2f211c={};for(const _0x1df622 of this['editor']['model']['document']['getRootNames']())_0x2f211c[_0x1df622]={};}let _0x2ca800=!0x1;const _0x153a82=Object['keys'](_0x12e051),_0x148b7e=Object['keys'](_0x3ca2be);for(const _0x5dac2a of _0x153a82){if(_0x12e051[_0x5dac2a]!==_0x3ca2be[_0x5dac2a]&&''!==_0x12e051[_0x5dac2a]['trim']()){_0x2ca800=!0x0;break;}if(!_0x30f930(_0x2f211c[_0x5dac2a],_0x3adc2e[_0x5dac2a])&&Object['keys'](_0x2f211c[_0x5dac2a])['length']>0x0){_0x2ca800=!0x0;break;}}_0x2ca800||(_0x2ca800=_0x148b7e['some'](_0x1013f8=>!this['editor']['model']['document']['getRoot'](_0x1013f8))),_0x2ca800&&_0x83bbd('editor-initial-data-replaced-with-revision-data',{'editorData':_0x12e051,'editorRootsAttributes':_0x2f211c,'revisionData':_0x3ca2be,'revisionRootsAttributes':_0x3adc2e}),this['editor']['config']['set']('initialData',_0x3ca2be),this['editor']['config']['set']('rootsAttributes',_0x3adc2e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x18187b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x18187b['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x89a7f6){const _0x203d4d=this['repository']['getRevisions']();_0x203d4d['reverse']();let _0x3982a5=0x0;for(;_0x3982a5<_0x203d4d['length'];){const _0x2a5657=_0x203d4d[_0x3982a5];if(_0x2a5657===this['currentRevision']){_0x3982a5++;continue;}if(_0x2a5657['id']===this['_initialRevisionId'])break;const _0x3b4ca9=_0x89a7f6['toVersion']-_0x2a5657['toVersion']||_0x89a7f6['fromVersion']-_0x2a5657['fromVersion'];if(_0x3b4ca9>0x0)break;if(_0x3b4ca9<0x0)_0x3982a5++;else{if(!_0x89a7f6['creator']&&_0x2a5657['creator'])break;if(_0x2a5657['creator']||!_0x89a7f6['creator']){if(_0x89a7f6['createdAt']>_0x2a5657['createdAt'])break;_0x3982a5++;}else _0x3982a5++;}}return _0x3982a5;}['_getFromVersion'](_0x4f3f31){const _0xc0826b=this['repository']['getRevisions']();_0xc0826b['reverse'](),_0xc0826b['shift']();const _0x3c27af=_0xc0826b['find'](_0x364fc3=>_0x364fc3['toVersion']<=_0x4f3f31)['toVersion'];return _0x3c27af<this['_startingVersion']?this['_startingVersion']:_0x3c27af;}['_makeRevision']({name:_0x5e2f64,from:_0x51f480,to:_0x3b857b,creatorId:_0x12e329,id:_0x10dbb7}){const _0x28d4dd=this['buildRevisionData']({'from':_0x51f480,'to':_0x3b857b});_0x28d4dd['name']=_0x5e2f64,_0x28d4dd['creatorId']=_0x12e329,_0x28d4dd['id']=_0x10dbb7;const _0x538c9b=this['addRevisionData'](_0x28d4dd);return this['adapter']&&this['_bufferUpdate'](_0x28d4dd['id'],_0x28d4dd,!0x0),_0x538c9b;}['_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(_0x225604){this['editor']=_0x225604,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'](_0x5676cf){this['source']=_0x5676cf;const _0x4e9ede=new Map(),_0x446be6=new Map(),_0x5ed31d=this['editor']['model']['document']['roots']['map'](_0x5dc390=>_0x5dc390['rootName']);for(const _0x4e9b92 of _0x5ed31d){const _0x1e455e=this['editor']['model']['document']['getRoot'](_0x4e9b92),_0x3654fe=x(_0x1e455e);_0x4e9ede['set'](_0x4e9b92,_0x3654fe),_0x446be6['set'](_0x4e9b92,Object['fromEntries'](_0x1e455e['getAttributes']()));}const _0x42ac79=Array['from'](this['editor']['model']['markers'])['map'](_0x5c4bbf=>[_0x5c4bbf['name'],_0x5c4bbf['getRange']()]),_0x10a506=this['source']['version'];this['_saveMetaData'](_0x10a506,_0x4e9ede,_0x42ac79,_0x446be6),this['_startingRevisionId']=this['_revisionId'];const _0x54d31b=new Map(),_0x5cc2fd=new Map();for(const _0x34b0a2 of _0x5ed31d){const _0x1c4f22=N(_0x34b0a2);_0x54d31b['set'](_0x34b0a2,_0x1c4f22),_0x5cc2fd['set'](_0x34b0a2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x54d31b,[],_0x5cc2fd);}['getData'](_0x4b7442,_0x3b433f){if(this['_lastFrom']===_0x4b7442&&this['_lastTo']<=_0x3b433f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b433f,!0x0);else{if(!this['_savedMetaData']['has'](_0x4b7442)){const _0xf2f326=this['_getPreviousFrom'](_0x4b7442);this['_calculateMetaData'](_0xf2f326,_0x4b7442,!0x1);}this['_calculateMetaData'](_0x4b7442,_0x3b433f,!0x0);}return this['_lastFrom']=_0x4b7442,this['_lastTo']=_0x3b433f,this['_getState']();}['loadState'](_0x5a792d){const _0x185419=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5a792d['fromVersion'],this['_lastTo']=_0x5a792d['toVersion'];for(const _0xa50f52 in _0x5a792d['diffData']){const _0x237af4=_0x5a792d['diffData'][_0xa50f52]['attachChange'],_0x19438c=_0x1bef90(_0x5a792d['diffData'][_0xa50f52]['attributesBefore'])||{},_0x3f4006=_0x185419['_makeModelFromViewString'](_0x5a792d['diffData'][_0xa50f52]['deletions']);_0x3f4006['rootName']=_0xa50f52,_0x3f4006['_isAttached']=!_0x237af4||!_0x237af4['isAttached'],_0x3f4006['isAttached']=()=>_0x3f4006['_isAttached'],this['_baseRoots']['set'](_0xa50f52,_0x3f4006),this['_baseRootsAttributes']['set'](_0xa50f52,_0x19438c),_0x237af4&&this['_touchedRoots']['set'](_0xa50f52,_0x237af4);const _0x5b1357=this['_makeIdsRoot'](_0x3f4006);this['_baseIdsRoots']['set'](_0xa50f52,_0x5b1357);for(const [_0x1ea022,_0x3f9641]of _0x3f4006['markers']){if(!_0x1ea022['startsWith']('revision:'))continue;const _0x298dea=_0x1ea022['split'](':')[0x2];for(const _0x43b98a of _0x3f9641['getWalker']({'singleCharacters':!0x0})){const _0x29d299=this['_getVidAttributeName'](_0x43b98a),_0x185003='elementEnd'==_0x43b98a['type']?_0x43b98a['previousPosition']['path']['slice'](0x0,-0x1):_0x43b98a['previousPosition']['path'],_0x3df7ee=_0x5b1357['getNodeByPath'](_0x185003)['getAttribute'](_0x29d299);this['_touched']['set'](_0x3df7ee,{'userId':_0x298dea});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2aa1af=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4bca47=>!this['_touched']['has'](_0x4bca47));let _0x5d719a=0x0;const _0x250704=new Map();for(const _0x23c106 in _0x5a792d['diffData']){const _0x1e3ce4=_0x5a792d['diffData'][_0x23c106]['attachChange'],_0x2fb89c=_0x1bef90(_0x5a792d['diffData'][_0x23c106]['attributesAfter'])||{},_0x48eb62=_0x185419['_makeModelFromViewString'](_0x5a792d['diffData'][_0x23c106]['insertions']);_0x48eb62['rootName']=_0x23c106,_0x48eb62['_isAttached']=!_0x1e3ce4||_0x1e3ce4['isAttached'],_0x48eb62['isAttached']=()=>_0x48eb62['_isAttached'],this['_diffRoots']['set'](_0x23c106,_0x48eb62),this['_diffRootsAttributes']['set'](_0x23c106,_0x2fb89c);const _0x557dd1=this['_makeIdsRoot'](_0x48eb62,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x23c106,_0x557dd1),_0x250704['set'](_0x23c106,_0x48eb62['isAttached']()?_0x2fb89c:{});for(const [_0x46a083,_0x1ab52d]of _0x48eb62['markers']){if(!_0x46a083['startsWith']('revision:'))continue;const _0x4bfe34=_0x46a083['split'](':')[0x2];for(const _0x49bef4 of _0x1ab52d['getWalker']({'singleCharacters':!0x0})){const _0x4fda14=this['_getVidAttributeName'](_0x49bef4),_0x3bd6da=this['_revisionId']++,_0x4f4bc3='elementEnd'==_0x49bef4['type']?_0x49bef4['previousPosition']['path']['slice'](0x0,-0x1):_0x49bef4['previousPosition']['path'];_0x557dd1['getNodeByPath'](_0x4f4bc3)['_setAttribute'](_0x4fda14,_0x3bd6da),this['_touched']['set'](_0x3bd6da,{'userId':_0x4bfe34});}}for(const _0x490b50 of this['editor']['model']['createRangeIn'](_0x48eb62)['getWalker']({'singleCharacters':!0x0})){const _0xa2635b=this['_getVidAttributeName'](_0x490b50),_0x33cedc='elementEnd'==_0x490b50['type']?_0x490b50['previousPosition']['path']['slice'](0x0,-0x1):_0x490b50['previousPosition']['path'],_0x1af46b=_0x557dd1['getNodeByPath'](_0x33cedc);_0x1af46b['getAttribute'](_0xa2635b)>0x0||_0x1af46b['_setAttribute'](_0xa2635b,_0x2aa1af[_0x5d719a++]);}for(const [_0x2aac83,_0xb03ca3]of _0x48eb62['markers'])_0x2aac83['startsWith']('revision:')||this['_markers']['set'](_0x2aac83,_0xb03ca3);}const _0x3f566b=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f566b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f566b,0x1));const _0x5cea63=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5cea63),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5cea63,0x1));const _0x16c852=Array['from'](this['_diffRoots'])['map'](([_0x1920c8,_0x59d54f])=>[_0x1920c8,x(_0x59d54f)]);this['_saveMetaData'](this['_lastTo'],_0x16c852,this['_markers'],_0x250704);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x230a96,_0x4dd4d2,_0x4cb724,_0x4f1eca){const _0x511ca9=new Map(_0x4dd4d2),_0x28c46e=new Map(_0x1bef90(_0x4f1eca)),_0x7052ed=new Map();for(const [_0x4911a5,_0x67f921]of _0x4cb724)_0x7052ed['set'](_0x4911a5,{'start':_0x67f921['start']['clone'](),'end':_0x67f921['end']['clone'](),'rootName':_0x67f921['root']['rootName']});this['_savedMetaData']['set'](_0x230a96,{'roots':_0x511ca9,'markers':_0x7052ed,'rootsAttributes':_0x28c46e});}['_removeMetaData'](_0x38e368){this['_savedMetaData']['delete'](_0x38e368);}['_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'](_0x2ab0c0,_0x1aa590=null){let _0xd71f91=null;_0x2ab0c0['is']('documentFragment')||(_0xd71f91=new _0x2885e6(_0x2ab0c0['name'],{'vid_start':null===_0x1aa590?this['_revisionId']++:_0x1aa590++}));const _0x3e4b4b=[];for(const _0x4431d8 of _0x2ab0c0['getChildren']())if(_0x4431d8['is']('element')){_0x3e4b4b['push'](this['_makeIdsRoot'](_0x4431d8,_0x1aa590));const _0x587b11=_0x3e4b4b[_0x3e4b4b['length']-0x1];null!==_0x1aa590&&(_0x1aa590=_0x587b11['is']('element','$text')?_0x587b11['getAttribute']('vid')+0x1:_0x587b11['getAttribute']('vid_end')+0x1);}else{for(let _0x5a0736=0x0;_0x5a0736<_0x4431d8['offsetSize'];_0x5a0736++)_0x3e4b4b['push'](new _0x2885e6('$text',{'vid':null===_0x1aa590?this['_revisionId']++:_0x1aa590++}));}if(_0x2ab0c0['is']('documentFragment')){const _0x4b87b6=N(_0x2ab0c0['rootName']);return _0x4b87b6['_insertChild'](0x0,_0x3e4b4b),_0x4b87b6;}return _0xd71f91['_setAttribute']('vid_end',null===_0x1aa590?this['_revisionId']++:_0x1aa590++),_0xd71f91['_insertChild'](0x0,_0x3e4b4b),_0xd71f91;}['_calculateMetaData'](_0x3b5f12,_0x1da78c,_0x1b5bab){this['_reset']();const {roots:_0x55ea30,markers:_0x263235,rootsAttributes:_0x52815c}=this['_savedMetaData']['get'](_0x3b5f12);this['_baseRoots']=new Map(_0x55ea30),this['_baseRootsAttributes']=new Map(_0x1bef90(_0x52815c));for(const [_0x300a34,_0x5d3bb6]of this['_baseRoots'])if('$graveyard'!==_0x300a34&&(this['_diffRoots']['set'](_0x300a34,x(_0x5d3bb6)),this['_diffRootsAttributes']=new Map(_0x1bef90(_0x52815c)),_0x1b5bab)){const _0x5610d9=this['_revisionId'];this['_idsRoots']['set'](_0x300a34,this['_makeIdsRoot'](_0x5d3bb6)),this['_baseIdsRoots']['set'](_0x300a34,this['_makeIdsRoot'](_0x5d3bb6,_0x5610d9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1b5bab&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1b1329,_0x379eb4]of _0x263235){const _0x4611b1=this['_baseRoots']['get'](_0x379eb4['rootName']),_0x346a33=this['_diffRoots']['get'](_0x379eb4['rootName']),_0x21e61d=new _0x54dc07(this['_fixPosition'](_0x379eb4['start'],_0x4611b1),this['_fixPosition'](_0x379eb4['end'],_0x4611b1)),_0x10b2d3=this['_fixRange'](_0x21e61d,_0x346a33);_0x4611b1['markers']['set'](_0x1b1329,_0x21e61d),this['_markers']['set'](_0x1b1329,_0x10b2d3);}this['_applyOperations'](_0x3b5f12,_0x1da78c,_0x1b5bab);}['_applyOperations'](_0x3fcb00,_0xa20876,_0x47813f){for(const _0xbef618 of this['source']['getOperations'](_0x3fcb00,_0xa20876))this['_handleOperation'](_0xbef618,_0x47813f);for(const _0x51ccb3 of this['_diffRoots']['values']())_0x51ccb3['markers']['clear']();for(const [_0x33860a,_0x55ccb0]of this['_markers']){this['_diffRoots']['get'](_0x55ccb0['root']['rootName'])['markers']['set'](_0x33860a,_0x55ccb0['clone']());}const _0x182393=new Map(),_0x2ffd3a=new Map();for(const [_0x306950,_0x5d6b2c]of this['_diffRoots'])_0x182393['set'](_0x306950,x(_0x5d6b2c)),_0x2ffd3a['set'](_0x306950,this['_diffRootsAttributes']['get'](_0x306950));this['_saveMetaData'](_0xa20876,_0x182393,this['_markers'],_0x2ffd3a);}['_getPreviousFrom'](_0x1cf752){const _0x5e12ff=Array['from'](this['_savedMetaData']['keys']());_0x5e12ff['sort']((_0x2e878e,_0xe10db6)=>_0x2e878e-_0xe10db6),_0x5e12ff['reverse']();for(const _0x6b19af of _0x5e12ff)if(_0x6b19af<_0x1cf752)return _0x6b19af;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xcf9be1,_0x13adb0){const _0x128c93=Array['from'](_0x13adb0['markers'])['map'](([_0x5a4f23,_0x19e806])=>[_0x5a4f23,this['_fixRange'](_0x19e806,_0xcf9be1)]);_0xcf9be1['markers']=new Map(_0x128c93);}['_transformMarkers'](_0x3ead6d){for(const _0x209838 of this['_markers']['values']()){const _0x1c3474=_0x209838['getTransformedByOperation'](_0x3ead6d),_0x465fef=_0x54dc07['_createFromRanges'](_0x1c3474);_0x209838['start']=_0x465fef['start'],_0x209838['end']=_0x465fef['end'];}}['_handleOperation'](_0x380d9f,_0x1debde){if('addRoot'!=_0x380d9f['type']&&'detachRoot'!=_0x380d9f['type']){if('insert'==_0x380d9f['type']){const _0x559bd9=_0x380d9f['position']['root']['rootName'];this['_diffRoots']['has'](_0x559bd9)||(this['_diffRoots']['set'](_0x559bd9,N(_0x559bd9,!0x0)),this['_diffRootsAttributes']['set'](_0x559bd9,{}),_0x1debde&&this['_idsRoots']['set'](_0x559bd9,N(_0x559bd9,!0x0)));}else{if('addRootAttribute'==_0x380d9f['type']||'removeRootAttribute'==_0x380d9f['type']||'changeRootAttribute'==_0x380d9f['type'])return void this['_handleRootAttributeOperation'](_0x380d9f);'marker'==_0x380d9f['type']&&this['_handleMarkerOperation'](_0x380d9f);}if('marker'!==_0x380d9f['type']){const _0x292c06=this['_cloneOperation'](_0x380d9f,this['_diffRoots']);_0x292c06['_execute'](),this['_transformMarkers'](_0x292c06);}if(_0x1debde)switch(_0x380d9f['type']){case'insert':this['_handleInsertOperation'](_0x380d9f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x380d9f);break;case'merge':this['_handleMergeOperation'](_0x380d9f);break;case'split':this['_handleSplitOperation'](_0x380d9f);}}else this['_handleRootOperation'](_0x380d9f,_0x1debde);}['_cloneOperation'](_0xf6ee49,_0x29551){const _0x566835=_0xf6ee49['clone']();return _0x566835['_authorId']=_0xf6ee49['_authorId'],this['_fixOperation'](_0x566835,_0x29551),_0x566835;}['_getBaseVids'](_0x367f56){return _0x367f56['map'](_0x56a270=>{const _0xfaef9=this['_getVidAttributeName'](_0x56a270);return Number(_0x56a270['item']['getAttribute'](_0xfaef9));});}['_generateTape'](_0x149db5,_0x4a46a1){if(_0x149db5['is']('element','$text'))_0x4a46a1['push']({'item':_0x149db5,'type':'text'});else{_0x149db5['is']('element')&&_0x4a46a1['push']({'item':_0x149db5,'type':'elementStart'});for(const _0x525d40 of _0x149db5['getChildren']())this['_generateTape'](_0x525d40,_0x4a46a1);_0x149db5['is']('element')&&_0x4a46a1['push']({'item':_0x149db5,'type':'elementEnd'});}return _0x4a46a1;}['_getState'](){const _0x2aea68=new Map(this['_touched']),_0x163267=new Map(_0x2aea68),_0x4c770d=new Map(),_0x87b719={'insertions':{},'deletions':{}},_0x3b83da={'insertions':{},'deletions':{}},_0x170f09=new Map(),_0x245832=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x245832['delete']('$graveyard');for(const _0x195b3c of _0x245832){const _0x425a05=this['_diffRoots']['get'](_0x195b3c)||N(_0x195b3c,!0x1),_0x3ba6d0=this['_baseRoots']['get'](_0x195b3c)||N(_0x195b3c,!0x1);_0x425a05['isAttached']()||_0x3ba6d0['isAttached']()?(_0x87b719['insertions'][_0x195b3c]=x(_0x425a05),_0x87b719['deletions'][_0x195b3c]=x(_0x3ba6d0),this['_copyMarkers'](_0x87b719['deletions'][_0x195b3c],_0x3ba6d0),this['_copyMarkers'](_0x87b719['insertions'][_0x195b3c],_0x425a05),_0x3b83da['insertions'][_0x195b3c]=this['_generateTape'](this['_idsRoots']['get'](_0x195b3c),[]),_0x3b83da['deletions'][_0x195b3c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x195b3c)||N(_0x195b3c,!0x1),[])):_0x245832['delete'](_0x195b3c);}for(const _0x328b25 of _0x245832){const _0x207b69=_0x3b83da['insertions'][_0x328b25];for(const _0x5c762c of _0x207b69){const _0x5eedb5=this['_getVidAttributeName'](_0x5c762c),_0x5366da=_0x5c762c['item']['getAttribute'](_0x5eedb5);_0x163267['delete'](_0x5366da),_0x5366da>=this['_startingRevisionId']&&_0x4c770d['set'](_0x5366da,_0x2aea68['get'](_0x5366da));}}for(const _0x2112c3 of _0x245832){const _0x3213d6=_0x3b83da['insertions'][_0x2112c3],_0xceddaf=this['_getBaseVids'](_0x3b83da['deletions'][_0x2112c3]);let _0x55053c=0x0;for(const _0x3799ac of _0x3213d6){const _0x1770ec=this['_getVidAttributeName'](_0x3799ac),_0x43a8ad=_0x3799ac['item']['getAttribute'](_0x1770ec);if(!_0x4c770d['has'](_0x43a8ad)&&!_0x170f09['has'](_0x43a8ad)){if(_0x163267['has'](_0x43a8ad))_0x55053c++;else{if(_0x43a8ad!=_0xceddaf[_0x55053c]){const _0x62e64=_0x2aea68['get'](_0x43a8ad)||_0x2aea68['get'](_0xceddaf[_0x55053c]);for(;_0x43a8ad!=_0xceddaf[_0x55053c];)_0x163267['has'](_0xceddaf[_0x55053c])||(_0x170f09['set'](_0xceddaf[_0x55053c],_0x62e64),_0x2aea68['set'](_0xceddaf[_0x55053c],_0x62e64)),_0x55053c++;}_0x55053c++;}}}}for(const _0x3a6ea7 of _0x245832){const _0x5756bb=_0x3b83da['insertions'][_0x3a6ea7];for(const _0xa6552d of _0x5756bb){const _0x436186=this['_getVidAttributeName'](_0xa6552d),_0x1f1b60=_0xa6552d['item']['getAttribute'](_0x436186);if(_0x170f09['has'](_0x1f1b60)){const _0x12220b=_0x170f09['get'](_0x1f1b60);_0x163267['has'](_0x1f1b60)||_0x163267['set'](_0x1f1b60,{..._0x12220b}),_0x4c770d['set'](_0x1f1b60,{..._0x12220b});}}}for(const _0x340497 of _0x163267['keys']())_0x340497>=this['_startingRevisionId']&&_0x163267['delete'](_0x340497);const _0x529577=new Map();for(const _0x4648af of _0x245832){let _0x24d798=_0x3b83da['insertions'][_0x4648af];for(const _0x584a98 of _0x24d798)if(_0x584a98['item']['is']('element','tableCell')){const _0x266f6c=this['_getVidAttributeName'](_0x584a98),_0x2ca826=_0x584a98['item']['getAttribute'](_0x266f6c);if(_0x4c770d['has'](_0x2ca826)){const _0x361a18=_0x584a98['item']['parent']['parent']['getAttribute']('vid_start'),_0x130fee=_0x529577['get'](_0x361a18)||new Set();_0x130fee['add'](_0x4c770d['get'](_0x2ca826)['userId']),_0x529577['set'](_0x361a18,_0x130fee);}}_0x24d798=_0x3b83da['deletions'][_0x4648af];for(const _0x5010d2 of _0x24d798)if(_0x5010d2['item']['is']('element','tableCell')){const _0x3781be=this['_getVidAttributeName'](_0x5010d2),_0x2647bd=_0x5010d2['item']['getAttribute'](_0x3781be);if(_0x163267['has'](_0x2647bd)){const _0x4a8541=_0x5010d2['item']['parent']['parent']['getAttribute']('vid_start'),_0x413c8d=_0x529577['get'](_0x4a8541)||new Set();_0x413c8d['add'](_0x163267['get'](_0x2647bd)['userId']),_0x529577['set'](_0x4a8541,_0x413c8d);}}for(const _0x1fb1cf of _0x529577['keys']())(_0x4c770d['has'](_0x1fb1cf)||_0x163267['has'](_0x1fb1cf))&&_0x529577['delete'](_0x1fb1cf);}for(const _0x4fa6fc of _0x245832){const _0x258bd9=_0x3b83da['insertions'][_0x4fa6fc];let _0x3ededd=null,_0x289460=null;for(const _0x24778e of _0x258bd9){const _0x2730cf=this['_getVidAttributeName'](_0x24778e),_0xaeeef9=_0x24778e['item']['getAttribute'](_0x2730cf),_0x42fa1a=_0x529577['get'](_0xaeeef9);_0x42fa1a&&'elementStart'==_0x24778e['type']&&(_0x3ededd=Array['from'](_0x42fa1a)[0x0],_0x289460=_0x24778e['item']['getAttribute']('vid_end')),_0x3ededd&&(_0x163267['set'](_0xaeeef9,{'userId':_0x3ededd}),_0x4c770d['set'](_0xaeeef9,{'userId':_0x3ededd})),_0xaeeef9==_0x289460&&(_0x3ededd=null,_0x289460=null);}}const _0x25e46b={},_0x124720=new Set();for(const _0x297d23 of _0x245832){const _0x2282fd=_0x87b719['deletions'][_0x297d23],_0x2fe50b=_0x87b719['insertions'][_0x297d23];for(const {userId:_0x41b082}of this['_touchedMarkers']['values']())null!==_0x41b082&&_0x124720['add'](_0x41b082);for(const {userId:_0x5803f2}of this['_touchedRoots']['values']())null!==_0x5803f2&&_0x124720['add'](_0x5803f2);this['_markChanges'](_0x2fe50b,_0x3b83da['insertions'][_0x297d23],_0x4c770d,'insertion',_0x124720),this['_markChanges'](_0x2282fd,_0x3b83da['deletions'][_0x297d23],_0x163267,'deletion',_0x124720),_0x25e46b[_0x297d23]={'insertions':this['_prepareViewToSave'](_0x2fe50b),'deletions':this['_prepareViewToSave'](_0x2282fd),'attachChange':this['_touchedRoots']['get'](_0x297d23)||null,'attributesBefore':_0x1bef90(this['_baseRootsAttributes']['get'](_0x297d23))||{},'attributesAfter':_0x1bef90(this['_diffRootsAttributes']['get'](_0x297d23))};}return{'diffData':_0x25e46b,'authorsIds':Array['from'](_0x124720)};}['_processRootBeforeSave'](_0x27d9ef){for(const [,_0x2aebc2]of _0x27d9ef['markers']){const _0x33db6b=_0x2aebc2['start']['getAncestors']()['filter'](_0x1361dd=>'tableCell'==_0x1361dd['name']);for(const _0x2465cf of _0x33db6b)0x1==_0x2465cf['childCount']&&_0x2465cf['getChild'](0x0)['is']('element','paragraph')&&_0x2465cf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2176cb){this['_processRootBeforeSave'](_0x2176cb);const _0xb864b1=this['editor']['data']['toView'](_0x2176cb,{}),_0x4e311b=Array['from'](_0xb864b1['getChildren']())['map'](_0x3cf970=>this['_getViewJson'](_0x3cf970));return JSON['stringify'](_0x4e311b);}['_getViewJson'](_0xb403d9){if(_0xb403d9['is']('$text'))return _0xb403d9['data'];{const _0x42be2e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xc8d86e=_0xb403d9,_0x40c72d=this['editor']['data']['htmlProcessor']['domConverter'],_0x10a449={'type':_0x42be2e['_getTypeCharForViewElement'](_0xc8d86e),'name':_0xc8d86e['name'],'attributes':Array['from'](_0xc8d86e['getAttributes']()),'children':Array['from'](_0xc8d86e['getChildren']())['map'](_0x516fe7=>this['_getViewJson'](_0x516fe7))};if(_0xb403d9['is']('uiElement')&&'$comment'!=_0xb403d9['name']){const _0x598542=_0xb403d9['render'](_0x40c72d['domDocument'],_0x40c72d);_0x10a449['children']['push'](_0x598542['outerHTML']);}else{if(_0xb403d9['is']('rawElement')){const _0x22fef8=_0x40c72d['domDocument']['createElement'](_0xc8d86e['name']);_0xb403d9['render'](_0x22fef8,_0x40c72d),_0x10a449['children']['push'](_0x22fef8['innerHTML']);}}const _0x11c7c1=Array['from'](_0xc8d86e['getCustomProperties']());_0x11c7c1['length']>0x0&&(_0x10a449['customProperties']=_0x11c7c1);const _0x3dbd66=_0xc8d86e['getFillerOffset']();return null!==_0x3dbd66&&(_0x10a449['fillerOffset']=_0x3dbd66),_0x10a449;}}['_markChanges'](_0x22f313,_0x1a16e3,_0xafd2b5,_0x2ba162,_0x32d37a){let _0x53580e=null,_0x5a01dd=null,_0xe66e5d=0x0;const _0x237e05=this['editor']['model'];for(let _0x34d120=0x0;_0x34d120<_0x1a16e3['length'];_0x34d120++){const _0x4c7ad8=this['_getVidAttributeName'](_0x1a16e3[_0x34d120]),_0x287da7=_0x1a16e3[_0x34d120]['item']['getAttribute'](_0x4c7ad8),_0x2573e2=_0xafd2b5['get'](_0x287da7),_0x125ada=_0x34d120==_0x1a16e3['length']-0x1;(!_0x53580e&&_0x2573e2&&(_0x53580e=_0x2573e2,_0x5a01dd=_0x1a16e3[_0x34d120]),_0x53580e&&(!_0x2573e2||_0x2573e2['userId']!=_0x53580e['userId']))&&(_0x4d4fa7(_0x2573e2,P(_0x5a01dd,_0x22f313,_0x237e05),P(_0x1a16e3[_0x34d120],_0x22f313,_0x237e05)),_0x53580e=_0x2573e2||null,_0x5a01dd=_0x2573e2?_0x1a16e3[_0x34d120]:null),_0x53580e&&_0x125ada&&_0x4d4fa7(_0x2573e2,P(_0x5a01dd,_0x22f313,_0x237e05),V(_0x1a16e3[_0x34d120],_0x22f313,_0x237e05));}function _0x4d4fa7(_0x70bae,_0x5f8219,_0x409e04){const _0xa7784a=_0x53580e['userId'],_0x591e0d='revision:'+_0x2ba162+':'+_0xa7784a+':'+_0xe66e5d++,_0xbac33d=_0x237e05['createRange'](_0x5f8219,_0x409e04);_0x22f313['markers']['set'](_0x591e0d,_0xbac33d),null!==_0xa7784a&&_0x32d37a['add'](_0xa7784a);}}['_getVidAttributeName'](_0x5ab340){switch(_0x5ab340['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2d67a3,_0x3285d1){_0x2d67a3['baseVersion']=null;for(const _0x4491ed in _0x2d67a3){const _0x2ba4b7=_0x2d67a3[_0x4491ed];if(_0x2ba4b7 instanceof _0x4c0b34){const _0x36260e=_0x3285d1['get'](_0x2ba4b7['root']['rootName']);_0x2d67a3[_0x4491ed]=this['_fixPosition'](_0x2ba4b7,_0x36260e);}if(_0x2ba4b7 instanceof _0x54dc07){const _0x4d5333=_0x3285d1['get'](_0x2ba4b7['root']['rootName']);_0x2d67a3[_0x4491ed]=this['_fixRange'](_0x2ba4b7,_0x4d5333);}'root'===_0x4491ed&&(_0x2d67a3['root']=_0x3285d1['get'](_0x2d67a3['root']['rootName']));}}['_fixRange'](_0x165f34,_0x258781){return this['editor']['model']['createRange'](this['_fixPosition'](_0x165f34['start'],_0x258781),this['_fixPosition'](_0x165f34['end'],_0x258781));}['_fixPosition'](_0x11c24e,_0xdaddb3){return this['editor']['model']['createPositionFromPath'](_0xdaddb3,_0x11c24e['path'],_0x11c24e['stickiness']);}['_handleInsertOperation'](_0x53b4ae){const _0x953e69=this['_idsRoots']['get'](_0x53b4ae['position']['root']['rootName']),_0x55c88d=this['_fixPosition'](_0x53b4ae['position'],_0x953e69),_0x160bb4=null===_0x53b4ae['_authorId']?null:_0x53b4ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16bb71=_0x55c88d['parent'],_0x3e5ceb=this['_revisionId'],_0xbfcbc2=[];for(const _0x1d003a of _0x53b4ae['nodes'])if(_0x1d003a['is']('element'))_0xbfcbc2['push'](this['_makeIdsRoot'](_0x1d003a));else{for(let _0x43a8a1=0x0;_0x43a8a1<_0x1d003a['offsetSize'];_0x43a8a1++)_0xbfcbc2['push'](new _0x2885e6('$text',{'vid':this['_revisionId']++}));}const _0x4638e1=this['_revisionId'];for(let _0x1285ee=_0x3e5ceb;_0x1285ee<_0x4638e1;_0x1285ee++)this['_touched']['set'](_0x1285ee,{'userId':_0x160bb4});_0x16bb71['_insertChild'](_0x55c88d['offset'],_0xbfcbc2);}['_handleMoveOperation'](_0xbd54aa){(_0xbd54aa=this['_cloneOperation'](_0xbd54aa,this['_idsRoots']))['_execute']();const _0x42d936=null===_0xbd54aa['_authorId']?null:_0xbd54aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc7549=_0xbd54aa['getMovedRangeStart'](),_0x2521f5=_0xc7549['parent'],_0x2ac322=_0xc7549['offset'];!function _0x50604a(_0x115983,_0x21495d,_0x6d63e1,_0x310d7e){for(let _0x5caac4=_0x6d63e1;_0x5caac4<_0x310d7e;_0x5caac4++){const _0x54a57f=_0x21495d['getChild'](_0x5caac4);_0x54a57f['is']('element','$text')?_0x115983['set'](_0x54a57f['getAttribute']('vid'),{'userId':_0x42d936}):(_0x115983['set'](_0x54a57f['getAttribute']('vid_start'),{'userId':_0x42d936}),_0x50604a(_0x115983,_0x54a57f,0x0,_0x54a57f['childCount']),_0x115983['set'](_0x54a57f['getAttribute']('vid_end'),{'userId':_0x42d936}));}}(this['_touched'],_0x2521f5,_0x2ac322,_0x2ac322+_0xbd54aa['howMany']);}['_handleMergeOperation'](_0x4e8c83){const _0x4e38c3=null===(_0x4e8c83=this['_cloneOperation'](_0x4e8c83,this['_idsRoots']))['_authorId']?null:_0x4e8c83['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c265b=_0x4e8c83['targetPosition']['parent'],_0x4d9ea4=_0x4e8c83['sourcePosition']['parent'],_0x5a7b36=_0x4c265b['getAttribute']('vid_end'),_0xb2a4=_0x4d9ea4['getAttribute']('vid_start');_0x4c265b['_setAttribute']('vid_end',_0x4d9ea4['getAttribute']('vid_end')),_0x4d9ea4['_setAttribute']('vid_end',_0x5a7b36),this['_touched']['set'](_0xb2a4,{'userId':_0x4e38c3}),this['_touched']['set'](_0x5a7b36,{'userId':_0x4e38c3}),_0x4e8c83['_execute']();}['_handleSplitOperation'](_0x55ff1a){const _0xc2a7b6=null===(_0x55ff1a=this['_cloneOperation'](_0x55ff1a,this['_idsRoots']))['_authorId']?null:_0x55ff1a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56da1f=_0x55ff1a['graveyardPosition'],_0x11eedc=_0x55ff1a['splitPosition']['parent'];_0x55ff1a['_execute']();const _0x42cc2e=_0x11eedc['getAttribute']('vid_end'),_0x31d763=_0x55ff1a['insertionPosition']['nodeAfter'];if(_0x56da1f){const _0x13c79c=_0x31d763['getAttribute']('vid_end'),_0xbbb00=_0x11eedc['getAttribute']('vid_end');_0x11eedc['_setAttribute']('vid_end',_0x13c79c),_0x31d763['_setAttribute']('vid_end',_0xbbb00),this['_touched']['set'](_0x11eedc['getAttribute']('vid_end'),{'userId':_0xc2a7b6}),this['_touched']['set'](_0x31d763['getAttribute']('vid_start'),{'userId':_0xc2a7b6});}else{const _0x43c574=this['_revisionId']++,_0x47efe8=this['_revisionId']++;_0x11eedc['_setAttribute']('vid_end',_0x43c574),_0x31d763['_setAttribute']('vid_start',_0x47efe8),_0x31d763['_setAttribute']('vid_end',_0x42cc2e),this['_touched']['set'](_0x43c574,{'userId':_0xc2a7b6}),this['_touched']['set'](_0x47efe8,{'userId':_0xc2a7b6});}}['_handleMarkerOperation'](_0x311ac0){if(!_0x311ac0['affectsData'])return;const _0x36d8d5=(_0x311ac0=this['_cloneOperation'](_0x311ac0,this['_diffRoots']))['oldRange']?_0x311ac0['oldRange']['root']:null,_0x3ee204=_0x311ac0['newRange']?_0x311ac0['newRange']['root']:null;_0x36d8d5&&this['_markers']['delete'](_0x311ac0['name']),_0x3ee204&&this['_markers']['set'](_0x311ac0['name'],_0x311ac0['newRange']['clone']());const _0xd86d4c=null===_0x311ac0['_authorId']?null:_0x311ac0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35fc81=_0x311ac0['name'];if(!this['_touchedMarkers']['has'](_0x35fc81))return void this['_touchedMarkers']['set'](_0x35fc81,{'range':_0x311ac0['oldRange'],'userId':_0xd86d4c});const _0x3cfafc=this['_touchedMarkers']['get'](_0x35fc81),_0x2206c2=_0x3cfafc['range'],_0x330efb=_0x311ac0['newRange'];null==_0x2206c2&&null==_0x330efb||_0x2206c2&&_0x330efb&&_0x2206c2['isEqual'](_0x330efb)?this['_touchedMarkers']['delete'](_0x311ac0['name']):_0x3cfafc['userId']=_0xd86d4c;}['_handleRootOperation'](_0x1c5c90,_0x54d025){this['_diffRoots']['has'](_0x1c5c90['rootName'])?this['_diffRoots']['get'](_0x1c5c90['rootName'])['_isAttached']=_0x1c5c90['isAdd']:(this['_diffRoots']['set'](_0x1c5c90['rootName'],N(_0x1c5c90['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1c5c90['rootName'],{}),_0x54d025&&this['_idsRoots']['set'](_0x1c5c90['rootName'],N(_0x1c5c90['rootName'],!0x0)));const _0x110aa9=null===_0x1c5c90['_authorId']?null:_0x1c5c90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a6276=this['_touchedRoots']['get'](_0x1c5c90['rootName']);_0x4a6276&&_0x4a6276['userId']===_0x110aa9?this['_touchedRoots']['delete'](_0x1c5c90['rootName']):this['_touchedRoots']['set'](_0x1c5c90['rootName'],{'userId':_0x110aa9,'isAttached':_0x1c5c90['isAdd']});}['_handleRootAttributeOperation'](_0x1b3086){const _0x1a56f4=this['_diffRootsAttributes']['get'](_0x1b3086['root']['rootName']);null===_0x1b3086['newValue']?delete _0x1a56f4[_0x1b3086['key']]:_0x1a56f4[_0x1b3086['key']]=_0x1b3086['newValue'];}}function x(_0x5249df){const _0x114cab=N(_0x5249df['rootName'],_0x5249df['isAttached']());for(const _0x397115 of _0x5249df['getChildren']()){const _0x125bdf=_0x397115['_clone'](!0x0);_0x114cab['_appendChild'](_0x125bdf);}return _0x114cab;}function N(_0xcfc53,_0x3338ac=!0x0){const _0x577d16=new _0x27a5cb();return _0x577d16['rootName']=_0xcfc53,_0x577d16['_isAttached']=_0x3338ac,_0x577d16['isAttached']=()=>_0x577d16['_isAttached'],_0x577d16;}function P(_0x6853d1,_0x3d0fbe,_0x208896){const _0xe7a7e8='elementEnd'==_0x6853d1['type']?_0x208896['createPositionAt'](_0x6853d1['item'],'end'):_0x208896['createPositionBefore'](_0x6853d1['item']);return _0x208896['createPositionFromPath'](_0x3d0fbe,_0xe7a7e8['path'],_0xe7a7e8['stickiness']);}function V(_0x3c0ea1,_0x23b0cd,_0x4feef0){const _0x8f2d7='elementStart'==_0x3c0ea1['type']?_0x4feef0['createPositionAt'](_0x3c0ea1['item'],0x0):_0x4feef0['createPositionAfter'](_0x3c0ea1['item']);return _0x4feef0['createPositionFromPath'](_0x23b0cd,_0x8f2d7['path'],_0x8f2d7['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0xf83e66(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x26e242){super(),this['id']=_0x26e242['id']||_0x54a7d7(),this['author']=_0x26e242['author'],this['type']=_0x26e242['type'],this['data']=_0x26e242['data']||{},this['rootName']=_0x26e242['rootName'],this['set']('createdAt',_0x26e242['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(_0x4a4a4a,_0x2ce881){this['newRevisionId']=_0x4a4a4a,this['oldRevisionId']=_0x2ce881,this['changes']=new _0x43d864();}['_setChanges'](_0x1793f4){for(const _0x267d97 of _0x1793f4)this['changes']['add'](_0x267d97);}}class l extends _0x42167a{['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[_0x376a79,_0x1f697a,S,$];}constructor(_0x349f74){super(_0x349f74),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',(_0x5b9c1d,_0x5099f1,_0x3f60fc)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x20f40c=>{for(const _0xe8d66e of this['editor']['editing']['view']['document']['roots'])_0x3f60fc?_0x20f40c['removeClass']('ck-editor__editable__overlay',_0xe8d66e):_0x20f40c['addClass']('ck-editor__editable__overlay',_0xe8d66e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4eba66=>null!==_0x4eba66),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3eccf6,_0x56802e,_0x59bf2f)=>_0x3eccf6&&_0x59bf2f?_0x56802e['changes']['getIndex'](_0x59bf2f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x349fd5,_0x487dec)=>_0x349fd5?_0x487dec['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1f697a);}['init'](){const _0x3c7625=this['editor'],_0x54df8f=new rt(_0x3c7625,{'direction':'backward'}),_0x4c1ef2=new rt(_0x3c7625,{'direction':'forward'});(_0x3c7625['commands']['add']('showPreviousChange',_0x54df8f),_0x3c7625['commands']['add']('showNextChange',_0x4c1ef2),_0x3c7625['commands']['add']('restoreRevision',new nt(_0x3c7625)),this['on']('change:numberOfChanges',()=>{_0x54df8f['refresh'](),_0x4c1ef2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3c7625['enableReadOnlyMode']('revision-viewer'),_0x3c7625['plugins']['has']('WidgetToolbarRepository'))&&_0x3c7625['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4a51b9){return await this['_utils']['loadRevisionData'](_0x4a51b9,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a51b9);}async['getRevisionRootsAttributes'](_0x5885f0){return await this['_utils']['loadRevisionData'](_0x5885f0,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5885f0);}async['compare'](_0x390bd8,_0x20530f,_0x26160f=!0x1){if(!this['isEnabled'])return;const _0x5cbc3c=this['diff'],_0x4af80b=this['repository'],_0x31cf38='string'==typeof _0x390bd8?_0x4af80b['getRevision'](_0x390bd8):_0x390bd8,_0x4b2f34='string'==typeof _0x20530f?_0x4af80b['getRevision'](_0x20530f):_0x20530f,_0x1105a5=_0x31cf38['id'],_0x57a87a=_0x4b2f34?_0x4b2f34['id']:null;if(!_0x26160f&&this['diff']&&this['diff']['newRevisionId']===_0x1105a5&&this['diff']['oldRevisionId']===_0x57a87a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1105a5,_0x57a87a);const _0x2e0d94=this['_getRevisionsRange'](_0x31cf38,_0x4b2f34,!0x0)['map'](_0x1c4255=>this['_utils']['loadRevisionData'](_0x1c4255,this['adapter']));return _0x2e0d94['push'](new Promise(_0x21b580=>{setTimeout(_0x21b580,0x14);})),Promise['all'](_0x2e0d94)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5d1be3=this['_getDiff'](_0x1105a5,_0x57a87a);for(const _0x54ad50 of _0x5d1be3['changes'])this['_changeIdToChange']['set'](_0x54ad50['id'],_0x54ad50);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1a73bc=>{for(const _0x416b76 of this['editor']['model']['document']['getRootNames']())_0x1a73bc['detachRoot'](_0x416b76);for(const _0x54f8b6 of Object['keys'](_0x5d1be3['model'])){const _0x39ff2d=_0x1a73bc['addRoot'](_0x54f8b6);for(const _0x39f705 of Object['keys'](_0x5d1be3['attributes'][_0x54f8b6]))_0x1a73bc['setAttribute'](_0x39f705,_0x5d1be3['attributes'][_0x54f8b6][_0x39f705],_0x39ff2d);_0x1a73bc['insert'](_0x5d1be3['model'][_0x54f8b6],_0x39ff2d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5d1be3['changes'])),this['isReady']=!0x0;})['catch'](_0x116a5c=>{console['error'](_0x116a5c),this['_cleanUp'](),_0x5cbc3c&&(this['diff']=_0x5cbc3c),this['isReady']=!0x0;});}['addRevisionData'](_0x5acd91,_0x57de33){const _0x1f27c4=this['repository']['createRevision'](_0x5acd91);return _0x1f27c4['on']('_update',(_0x3ff34e,_0x30daba,_0x4fb553)=>_0x57de33(_0x30daba,_0x4fb553,_0x1f27c4)),this['repository']['addRevision'](_0x1f27c4),_0x1f27c4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1bb2fc=>{for(const _0x10ae33 of this['editor']['model']['document']['getRootNames']())_0x1bb2fc['detachRoot'](_0x10ae33);});}['_sortAndFilterDiffChanges'](_0x11bc3a){const _0x529523=[],_0x2823b1=new Map();for(const _0x2631bb of this['editor']['model']['document']['getRootNames']()){const _0x53aa0d=this['editor']['editing']['view']['getDomRoot'](_0x2631bb);if(!_0x53aa0d)continue;const _0x202758=_0x53aa0d['getClientRects']()['item'](0x0);_0x202758&&(_0x529523['push'](_0x2631bb),_0x2823b1['set'](_0x2631bb,_0x202758));}return _0x529523['sort']((_0x30d4a5,_0xb56577)=>{const _0x20a615=_0x2823b1['get'](_0x30d4a5),_0x166aeb=_0x2823b1['get'](_0xb56577);return _0x20a615['y']-_0x166aeb['y']||_0x20a615['x']-_0x166aeb['x'];}),(_0x11bc3a=_0x11bc3a['filter'](_0x17bfc9=>_0x529523['includes'](_0x17bfc9['rootName'])))['sort']((_0x3404df,_0xf4ae8a)=>_0x529523['indexOf'](_0x3404df['rootName'])-_0x529523['indexOf'](_0xf4ae8a['rootName'])),_0x11bc3a;}['_makeTape'](_0xef00e){const _0x2b43f7=Array['from'](_0xef00e['markers'])['filter'](([_0x236f93,_0x543af9])=>_0x236f93['startsWith']('revision:')&&!_0x543af9['isCollapsed']),_0x1d8bb0=Array['from'](this['editor']['model']['createRangeIn'](_0xef00e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2b43f7['length'])for(const _0x376f37 of _0x1d8bb0){const [_0x4837e2,_0x14c07b]=_0x2b43f7[0x0],[,_0x59a7a7,_0x56366d]=_0x4837e2['split'](':');if(_0x14c07b['end']['isEqual'](_0x376f37['nextPosition'])&&_0x2b43f7['shift'](),(_0x376f37['previousPosition']['isEqual'](_0x14c07b['start'])||_0x376f37['previousPosition']['isAfter'](_0x14c07b['start']))&&('insertion'==_0x59a7a7?_0x376f37['isAdded']={'userId':_0x56366d}:'deletion'==_0x59a7a7&&(_0x376f37['isRemoved']={'userId':_0x56366d})),0x0==_0x2b43f7['length'])break;}return _0x1d8bb0;}['_refreshStartEndIndex'](_0x2b7837){const _0x2a49c6=new Map();for(let _0x682865=0x0;_0x682865<_0x2b7837['length'];_0x682865++)'text'===_0x2b7837[_0x682865]['type']?(_0x2b7837[_0x682865]['item']['startIndex']=_0x682865,_0x2b7837[_0x682865]['item']['endIndex']=_0x682865):('elementStart'===_0x2b7837[_0x682865]['type']?_0x2b7837[_0x682865]['item']['startIndex']=_0x682865:'elementEnd'===_0x2b7837[_0x682865]['type']&&(_0x2b7837[_0x682865]['item']['endIndex']=_0x682865),_0x2a49c6['set'](_0x2b7837[_0x682865]['id'],_0x682865));for(const _0x5192c9 of _0x2a49c6['values']())'elementStart'===_0x2b7837[_0x5192c9]['type']?_0x2b7837[_0x5192c9]['item']['endIndex']=_0x2a49c6['get'](_0x2b7837[_0x5192c9]['pairId']):'elementEnd'===_0x2b7837[_0x5192c9]['type']&&(_0x2b7837[_0x5192c9]['item']['startIndex']=_0x2a49c6['get'](_0x2b7837[_0x5192c9]['pairId']));}['_processTape'](_0x3c3e95){for(let _0x511eae=0x0;_0x511eae<_0x3c3e95['length'];_0x511eae++){if('elementStart'===_0x3c3e95[_0x511eae]['type'])_0x3c3e95[_0x511eae]['item']['startIndex']=_0x511eae;else{if('elementEnd'===_0x3c3e95[_0x511eae]['type']){_0x3c3e95[_0x511eae]['item']['endIndex']=_0x511eae;const _0x8451f9=_0x3c3e95[_0x511eae]['item']['startIndex'];_0x3c3e95[_0x8451f9]['pairId']=_0x3c3e95[_0x511eae]['id'],_0x3c3e95[_0x511eae]['pairId']=_0x3c3e95[_0x8451f9]['id'];}else _0x3c3e95[_0x511eae]['item']['startIndex']=_0x511eae,_0x3c3e95[_0x511eae]['item']['endIndex']=_0x511eae,_0x3c3e95[_0x511eae]['pairId']=null;}_0x3c3e95[_0x511eae]['markersStart']||(_0x3c3e95[_0x511eae]['markersStart']=[],_0x3c3e95[_0x511eae]['markersEnd']=[]);}}['_markInsertions'](_0x10964d,_0x173186){const _0x5790a7=_0x10964d['filter'](_0x1d0663=>!_0x1d0663['isAdded']);for(let _0x1d9398=0x0;_0x1d9398<_0x173186['length'];_0x1d9398++)_0x173186[_0x1d9398]['isAdded']&&(_0x5790a7[_0x1d9398]['isAdded']=_0x173186[_0x1d9398]['isAdded']);}['_getDiff'](_0x1857bf,_0x30ac34=null){const _0x4e8393=this['repository']['getRevision'](_0x1857bf),_0x56f36f=_0x30ac34?this['repository']['getRevision'](_0x30ac34):null,_0x598de6=this['_getRevisionsRange'](_0x4e8393,_0x56f36f),_0x58a956=_0x598de6[_0x598de6['length']-0x1],_0x384d2b=new Map(),_0x1d9943={'model':{},'attributes':{},'changes':[]},_0x59b997=new Set(),_0x11f409=new Map();for(let _0xce0179=_0x598de6['length']-0x1;_0xce0179>=0x0;_0xce0179--){const _0x104827=_0x598de6[_0xce0179];for(const _0x2a03e9 of Object['keys'](_0x104827['diffData']))if(_0x104827['diffData'][_0x2a03e9]['attachChange']){const _0xc0195f=_0x104827['diffData'][_0x2a03e9]['attachChange'];_0xc0195f['isAttached']?(_0x59b997['add'](_0x2a03e9),_0x11f409['has'](_0x2a03e9)&&_0x11f409['get'](_0x2a03e9)['userId']==_0xc0195f['userId']?_0x11f409['delete'](_0x2a03e9):_0x11f409['set'](_0x2a03e9,_0xc0195f)):_0x11f409['has'](_0x2a03e9)?(_0x59b997['delete'](_0x2a03e9),_0x11f409['delete'](_0x2a03e9)):(_0x59b997['add'](_0x2a03e9),_0x11f409['set'](_0x2a03e9,_0xc0195f));}else _0x59b997['add'](_0x2a03e9);}for(const _0x15186a of _0x59b997){const _0x7f5085=_0x11f409['has'](_0x15186a)&&!_0x11f409['get'](_0x15186a)['isAttached'];let _0x4360ac=_0x7f5085?_0x598de6['length']-0x1:0x0;const _0x40ce0c=_0x7f5085?-0x1:0x1;for(;_0x598de6[_0x4360ac];){const _0x246e6b=_0x598de6[_0x4360ac];if(_0x246e6b['diffData'][_0x15186a]){const _0x17a285=_0x7f5085?_0x246e6b['diffData'][_0x15186a]['attributesBefore']:_0x246e6b['diffData'][_0x15186a]['attributesAfter'];_0x1d9943['attributes'][_0x15186a]=_0x17a285?_0x1bef90(_0x17a285):{};break;}_0x4360ac+=_0x40ce0c;}}for(const _0x37453e of _0x598de6){_0x37453e['model']={};for(const _0x1f543b of _0x37453e['authors'])_0x384d2b['set'](_0x1f543b['id'],_0x1f543b);for(const _0x332701 of _0x59b997){const _0x26df47=_0x37453e['diffData'][_0x332701]?_0x37453e['diffData'][_0x332701]['insertions']:'[]',_0x2b04ce=_0x37453e['diffData'][_0x332701]?_0x37453e['diffData'][_0x332701]['deletions']:'[]';_0x37453e['model'][_0x332701]={'insertions':this['_utils']['_makeModelFromViewString'](_0x26df47),'deletions':this['_utils']['_makeModelFromViewString'](_0x2b04ce)};}}for(const _0x17bb87 of _0x59b997){let _0x105427=null,_0x5837f0=0x0;const _0x1be1cf=new Map(Array['from'](_0x4e8393['model'][_0x17bb87]['insertions']['markers'])['filter'](([_0x49fdf7])=>!_0x49fdf7['startsWith']('revision:')));let _0x2184a6=0x0;for(const _0x22ce5e of _0x598de6){const _0x4ddef0=this['_makeTape'](_0x22ce5e['model'][_0x17bb87]['insertions']);_0x22ce5e==_0x4e8393?(_0x105427=_0x4ddef0,_0x5837f0=_0x105427['length'],_0x105427['forEach'](_0x5b6657=>{_0x5b6657['id']=_0x2184a6++;}),this['_processTape'](_0x105427)):this['_markInsertions'](_0x105427,_0x4ddef0);const _0x4160f5=_0x105427['filter'](_0x28e70a=>!_0x28e70a['isAdded'])['map'](_0x2c8117=>_0x2c8117['id']);let _0xcd7721=0x0;const _0xc9961c=this['_makeTape'](_0x22ce5e['model'][_0x17bb87]['deletions']);_0xc9961c['forEach'](_0x2837c8=>{_0x2837c8['isRemoved']?_0x2837c8['id']=_0x5837f0++:_0x2837c8['id']=_0x4160f5[_0xcd7721++];}),this['_processTape'](_0xc9961c),this['_setDistance'](_0x105427,'isAdded'),this['_setDistance'](_0xc9961c,'isRemoved'),_0x22ce5e==_0x4e8393&&this['_markMarkers'](_0x105427,_0x1be1cf),_0x105427=this['_joinTapes'](_0x105427,_0xc9961c),this['_refreshStartEndIndex'](_0x105427),this['_setDistance'](_0x105427,'isRemoved');}_0x105427=_0x105427['filter'](_0x2b4c69=>!(_0x2b4c69['isAdded']&&_0x2b4c69['isRemoved']));const _0x1226fb=new Map(_0x58a956['model'][_0x17bb87]['deletions']['markers']),_0x2854db=new Set(_0x1be1cf['keys']());for(const _0xaa8ae7 of _0x1226fb['keys']())_0x2854db['delete'](_0xaa8ae7);this['_markSuggestions'](_0x105427,_0x2854db),this['_fixObsoleteTags'](_0x105427),_0x105427=this['_removeMissingPairs'](_0x105427),_0x105427=this['_markMismatchedRemovedTags'](_0x105427),_0x105427=this['_removeUnsupportedChanges'](_0x105427);const {root:_0x511430,changes:_0x107156}=this['_makeModelFromTape'](_0x105427,_0x384d2b,_0x17bb87);_0x1d9943['model'][_0x17bb87]=_0x511430;const _0x124b2b=_0x11f409['get'](_0x17bb87);if(_0x124b2b){const _0x24ea68=_0x384d2b['get'](_0x124b2b['userId']),_0x5e876a=new G({'author':_0x24ea68,'type':_0x124b2b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x17bb87});_0x107156['unshift'](_0x5e876a),_0x1d9943['attributes'][_0x17bb87]['revisionHistoryAttachChange']=_0x5e876a['id'];}_0x1d9943['changes']=_0x1d9943['changes']['concat'](_0x107156);}return _0x1d9943;}['_markMarkers'](_0x1bf34d,_0x495b84){for(let _0x365d57=0x0;_0x365d57<_0x1bf34d['length'];_0x365d57++)for(const [_0x51732b,_0x5d0af0]of _0x495b84)!_0x5d0af0['isCollapsed']&&_0x5d0af0['start']['isEqual'](_0x1bf34d[_0x365d57]['previousPosition'])&&_0x1bf34d[_0x365d57]['markersStart']['push'](_0x51732b),_0x5d0af0['end']['isEqual'](_0x1bf34d[_0x365d57]['nextPosition'])&&_0x1bf34d[_0x365d57]['markersEnd']['push'](_0x51732b);}['_joinTapes'](_0x491310,_0x2a6315){let _0x4d2bb2=[],_0x446e35=0x0,_0x36da7b=0x0;for(;_0x446e35<_0x491310['length']||_0x36da7b<_0x2a6315['length'];){const _0x51e73b=_0x491310[_0x446e35]||{},_0x4856f1=_0x2a6315[_0x36da7b]||{};if(_0x51e73b['id']==_0x4856f1['id'])_0x446e35++,_0x36da7b++,_0x4d2bb2['push'](_0x51e73b);else{if(_0x4856f1['isRemoved']&&_0x51e73b['isAdded']){const {commonTape:_0x12c1c1,iEnd:_0x364da0,jEnd:_0x5f539c}=this['_threeWayMerge'](_0x491310,_0x446e35,_0x2a6315,_0x36da7b);_0x4d2bb2=_0x4d2bb2['concat'](_0x12c1c1),_0x446e35=_0x364da0,_0x36da7b=_0x5f539c;}else _0x4856f1['isRemoved']?(_0x36da7b++,_0x4d2bb2['push'](_0x4856f1)):(_0x446e35++,_0x4d2bb2['push'](_0x51e73b));}}return _0x4d2bb2;}['_markSuggestions'](_0x4ede3c,_0x278dde){const _0x11aa9c=[];for(let _0x357f21=0x0;_0x357f21<_0x4ede3c['length'];_0x357f21++){for(let _0x448cf7=0x0;_0x448cf7<_0x4ede3c[_0x357f21]['markersStart']['length'];_0x448cf7++){const _0x2987a9=_0x4ede3c[_0x357f21]['markersStart'][_0x448cf7];if(!_0x278dde['has'](_0x2987a9))continue;const {group:_0x40d92a,type:_0x1f678e,authorId:_0x4fdfdc}=_0x38e9c3(_0x2987a9);'revision-suggestion'!=_0x40d92a||'insertion'!=_0x1f678e&&'deletion'!=_0x1f678e||(_0x11aa9c['unshift']({'type':_0x1f678e,'name':_0x2987a9,'userId':_0x4fdfdc}),_0x4ede3c[_0x357f21]['markersStart']['splice'](_0x448cf7,0x1),_0x448cf7--);}_0x2593aa(_0x4ede3c[_0x357f21]);for(let _0x211783=0x0;_0x211783<_0x4ede3c[_0x357f21]['markersEnd']['length'];_0x211783++){const _0x262921=_0x4ede3c[_0x357f21]['markersEnd'][_0x211783];if(!_0x278dde['has'](_0x262921))continue;const {group:_0x5cefa8,type:_0x1caa67}=_0x38e9c3(_0x262921);if('revision-suggestion'!=_0x5cefa8||'insertion'!=_0x1caa67&&'deletion'!=_0x1caa67)continue;_0x4ede3c[_0x357f21]['markersEnd']['splice'](_0x211783,0x1),_0x211783--;const _0x3e07f=_0x11aa9c['findIndex'](_0x45da5b=>_0x45da5b['name']==_0x262921);_0x3e07f>-0x1&&_0x11aa9c['splice'](_0x3e07f,0x1);}}function _0x38e9c3(_0x487566){const _0x248e85=_0x487566['split'](':');return{'group':_0x248e85[0x0],'type':_0x248e85[0x1],'subType':_0x248e85['length']>=0x5?_0x248e85[0x2]:null,'id':_0x248e85['length']<0x5?_0x248e85[0x2]:_0x248e85[0x3],'authorId':_0x248e85['length']<0x5?_0x248e85[0x3]:_0x248e85[0x4],'markerCount':0x6==_0x248e85['length']?_0x248e85[0x5]:null};}function _0x2593aa(_0xa369bc){for(let _0x8d28a6=0x0;_0x8d28a6<_0x11aa9c['length'];_0x8d28a6++){if(_0xa369bc['isAdded']&&'insertion'==_0x11aa9c[_0x8d28a6]['type']&&_0xa369bc['isAdded']['userId']==_0x11aa9c[_0x8d28a6]['userId'])return _0xa369bc['isAddSuggestion']=_0x11aa9c[_0x8d28a6],void delete _0xa369bc['isAdded'];if(!_0xa369bc['isAdded']&&!_0xa369bc['isRemoved']&&'deletion'==_0x11aa9c[_0x8d28a6]['type'])return void(_0xa369bc['isRemoveSuggestion']=_0x11aa9c[_0x8d28a6]);}}}['_setDistance'](_0x1c88e5,_0x5c1a48){let _0xcf0ecc=0x0,_0x7f9f96=!0x1;const _0x3261b1=new Map();for(const _0x9690fb of _0x1c88e5)_0x9690fb[_0x5c1a48]?_0x7f9f96&&(_0xcf0ecc++,_0x7f9f96=!0x1):(_0xcf0ecc++,_0x7f9f96=!0x0),_0x3261b1['set'](_0x9690fb['id'],_0xcf0ecc);for(let _0x2ed6b8=0x0;_0x2ed6b8<_0x1c88e5['length'];_0x2ed6b8++){if('isRemoved'==_0x5c1a48&&_0x1c88e5[_0x2ed6b8]['isAdded']||'isAdded'==_0x5c1a48&&_0x1c88e5[_0x2ed6b8]['isRemoved'])continue;if('text'==_0x1c88e5[_0x2ed6b8]['type']){_0x1c88e5[_0x2ed6b8]['distance']=0x0;continue;}const _0x30df03=_0x3261b1['get'](_0x1c88e5[_0x2ed6b8]['pairId']),_0x2dd4a2=_0x3261b1['get'](_0x1c88e5[_0x2ed6b8]['id']);_0x1c88e5[_0x2ed6b8]['distance']=_0x30df03-_0x2dd4a2;}}['_getRevisionsRange'](_0x2d6d99,_0x14220c,_0x5392b2=!0x1){const _0x2f127b=[];let _0x5295e3=this['repository']['getIndex'](_0x2d6d99),_0x3614b9=this['repository']['getIndex'](_0x14220c);for(-0x1==_0x3614b9&&(_0x3614b9=this['repository']['_revisions']['length'],_0x5392b2=!0x1);_0x5295e3<_0x3614b9;)_0x2f127b['push'](this['repository']['getRevision'](_0x5295e3)),_0x5295e3++;return _0x5392b2&&_0x2f127b['push'](this['repository']['getRevision'](_0x5295e3)),_0x2f127b;}['_threeWayMerge'](_0x561f17,_0x20f177,_0x2b9438,_0x5297b7){const _0x78a6fc=this['editor']['model']['schema'];let _0x1f146b=_0x20f177;for(;_0x561f17[_0x1f146b]&&_0x561f17[_0x1f146b]['isAdded'];)_0x1f146b++;let _0x47eec1=_0x5297b7;for(;_0x2b9438[_0x47eec1]&&_0x2b9438[_0x47eec1]['isRemoved'];)_0x47eec1++;_0x4fede0(_0x561f17,_0x20f177,_0x1f146b),_0x4fede0(_0x2b9438,_0x5297b7,_0x47eec1);const _0x43d49e=_0x2b9438['slice'](_0x5297b7,_0x47eec1)['concat'](_0x561f17['slice'](_0x20f177,_0x1f146b));return _0x43d49e['sort']((_0x24928c,_0x48f7bb)=>_0x24928c['side']!=_0x48f7bb['side']?_0x24928c['side']-_0x48f7bb['side']:_0x24928c['level']!=_0x48f7bb['level']?_0x24928c['level']-_0x48f7bb['level']:_0x24928c['distance']!=_0x48f7bb['distance']?_0x48f7bb['distance']-_0x24928c['distance']:!!_0x24928c['isAdded']!=!!_0x48f7bb['isAdded']?-0x1==_0x24928c['side']||0x0==_0x24928c['side']?_0x24928c['isAdded']?-0x1:0x1:_0x24928c['isAdded']?0x1:-0x1:_0x24928c['index']-_0x48f7bb['index']),{'commonTape':_0x43d49e,'iEnd':_0x1f146b,'jEnd':_0x47eec1};function _0x4fede0(_0x57a506,_0x572024,_0x20cd42){let _0x4798b9=-0x1,_0x2f9c3d=Number['POSITIVE_INFINITY'],_0x3a47a1=!0x0;for(let _0x3b3e62=_0x572024;_0x3b3e62<_0x20cd42;_0x3b3e62++)if(_0x78a6fc['isInline'](_0x57a506[_0x3b3e62]['item'])||(_0x3a47a1=!0x1),_0x57a506[_0x3b3e62]['item']['startIndex']<_0x572024&&(_0x4798b9=_0x3b3e62),_0x57a506[_0x3b3e62]['item']['endIndex']>=_0x20cd42){_0x2f9c3d=_0x3b3e62;break;}_0x3a47a1&&(_0x4798b9=_0x20cd42-0x1);for(let _0x765cf4=_0x572024;_0x765cf4<_0x20cd42;_0x765cf4++)_0x57a506[_0x765cf4]['side']=_0x765cf4<=_0x4798b9?-0x1:_0x765cf4<_0x2f9c3d?0x0:0x1,_0x57a506[_0x765cf4]['index']=_0x765cf4;let _0x25630d=0x0;for(let _0x454bcf=_0x572024;_0x454bcf<=_0x4798b9;_0x454bcf++)0x0==_0x57a506[_0x454bcf]['distance']?_0x57a506[_0x454bcf]['level']=_0x25630d:(_0x25630d++,_0x57a506[_0x454bcf]['level']=_0x25630d,_0x25630d++);for(let _0x6e4ffd=_0x572024;_0x6e4ffd<_0x20cd42;_0x6e4ffd++)0x0==_0x57a506[_0x6e4ffd]['side']&&(_0x57a506[_0x6e4ffd]['level']=_0x25630d);_0x25630d=0x0;for(let _0x229b00=_0x20cd42-0x1;_0x229b00>=_0x2f9c3d;_0x229b00--)0x0==_0x57a506[_0x229b00]['distance']?_0x57a506[_0x229b00]['level']=_0x25630d:(_0x25630d--,_0x57a506[_0x229b00]['level']=_0x25630d,_0x25630d--);}}['_fixObsoleteTags'](_0x105c57){const _0x38a18a=new Map(),_0x4eb3d2=this['editor']['model']['schema'];for(let _0x3f80ab=0x1;_0x3f80ab<_0x105c57['length'];_0x3f80ab++){let _0x56cb68,_0x126468,_0x3b0a2f;const _0x21889b=_0x105c57[_0x3f80ab],_0x32251b=_0x105c57[_0x3f80ab-0x1];if('text'==_0x21889b['type'])continue;if(_0x21889b['type']!=_0x32251b['type'])continue;if(!_0x4eb3d2['isBlock'](_0x32251b['item'])||_0x4eb3d2['isLimit'](_0x32251b['item']))continue;if(!_0x4eb3d2['isBlock'](_0x21889b['item'])||_0x4eb3d2['isLimit'](_0x21889b['item']))continue;if((_0x105c57[_0x3f80ab]['isAdded']||_0x105c57[_0x3f80ab]['isAddSuggestion'])&&_0x105c57[_0x3f80ab-0x1]['isRemoved'])_0x56cb68=_0x105c57[_0x3f80ab],_0x126468=_0x105c57[_0x3f80ab-0x1],_0x3b0a2f=_0x3f80ab-0x1;else{if(!_0x105c57[_0x3f80ab]['isRemoved']||!_0x105c57[_0x3f80ab-0x1]['isAdded']&&!_0x105c57[_0x3f80ab-0x1]['isAddSuggestion'])continue;_0x56cb68=_0x105c57[_0x3f80ab-0x1],_0x126468=_0x105c57[_0x3f80ab],_0x3b0a2f=_0x3f80ab;}const _0x48f51a=_0x56cb68['level']==_0x126468['level'],_0x42bf92=Math['abs'](_0x56cb68['level'])<Math['abs'](_0x126468['level'])&&0x0==_0x126468['distance'];(_0x48f51a||_0x42bf92)&&(_0x38a18a['set'](_0x126468['id'],_0x56cb68['id']),_0x105c57['splice'](_0x3b0a2f,0x1),_0x3f80ab--,_0x56cb68['isAdded']=!0x1);}for(let _0x554666=0x0;_0x554666<_0x105c57['length'];_0x554666++)_0x38a18a['has'](_0x105c57[_0x554666]['pairId'])&&(_0x105c57[_0x554666]['pairId']=_0x38a18a['get'](_0x105c57[_0x554666]['pairId']));}['_removeMissingPairs'](_0x5ea651){const _0x44a423=new Set(_0x5ea651['map'](_0x436b89=>_0x436b89['id']));for(let _0xa78131=0x0;_0xa78131<_0x5ea651['length'];_0xa78131++)_0x44a423['has'](_0x5ea651[_0xa78131]['pairId'])||0x0==_0x5ea651[_0xa78131]['distance']||(_0x5ea651[_0xa78131]['isIncorrect']=!0x0);return _0x5ea651['filter'](_0x155605=>!_0x155605['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3ee943){const _0x4df524=new Set();for(let _0x3de52d=0x0;_0x3de52d<_0x3ee943['length'];_0x3de52d++){if(_0x4df524['has'](_0x3ee943[_0x3de52d]['id'])&&_0x3ee943[_0x3de52d]['isRemoved']&&(_0x3ee943[_0x3de52d]['isIncorrect']=!0x0),_0x3ee943[_0x3de52d]['isIncorrect'])continue;if(0x0==_0x3ee943[_0x3de52d]['distance'])continue;if('elementStart'!=_0x3ee943[_0x3de52d]['type'])continue;if(null==_0x3ee943[_0x3de52d]['pairId'])continue;let _0x328f19=_0x3de52d+0x1,_0x46c7c5=0x0;for(;_0x3ee943[_0x328f19]['id']!=_0x3ee943[_0x3de52d]['pairId'];)'elementStart'==_0x3ee943[_0x328f19]['type']?_0x46c7c5++:'elementEnd'==_0x3ee943[_0x328f19]['type']&&_0x46c7c5--,_0x328f19++;if(0x0!=_0x46c7c5){if(_0x3ee943[_0x3de52d]['isRemoved'])_0x3ee943[_0x3de52d]['isIncorrect']=!0x0;else{for(;_0x328f19!=_0x3de52d;)_0x3ee943[_0x328f19]['isRemoved']&&0x0!=_0x3ee943[_0x328f19]['distance']&&(_0x3ee943[_0x328f19]['isIncorrect']=!0x0,_0x4df524['add'](_0x3ee943[_0x328f19]['pairId'])),_0x328f19--;}}}return _0x3ee943['filter'](_0x40bf82=>!_0x40bf82['isIncorrect']);}['_removeUnsupportedChanges'](_0x11b0fc){const _0x21986a=this['editor']['model']['schema'];for(let _0x454be2=0x0;_0x454be2<_0x11b0fc['length'];_0x454be2++){if(!(_0x11b0fc[_0x454be2]['isAdded']||_0x11b0fc[_0x454be2]['isAddSuggestion']||_0x11b0fc[_0x454be2]['isRemoved']||_0x11b0fc[_0x454be2]['isRemoveSuggestion']))continue;if(0x0==_0x11b0fc[_0x454be2]['distance'])continue;const _0x44e23d=_0x11b0fc[_0x454be2]['item'];_0x21986a['isBlock'](_0x44e23d)||_0x21986a['isLimit'](_0x44e23d)||(_0x11b0fc[_0x454be2]['isAdded']&&delete _0x11b0fc[_0x454be2]['isAdded'],_0x11b0fc[_0x454be2]['isAddSuggestion']&&delete _0x11b0fc[_0x454be2]['isAddSuggestion'],_0x11b0fc[_0x454be2]['isRemoveSuggestion']&&delete _0x11b0fc[_0x454be2]['isRemoveSuggestion'],_0x11b0fc[_0x454be2]['isRemoved']&&(_0x11b0fc[_0x454be2]['isIncorrect']=!0x0));}return _0x11b0fc['filter'](_0x1c2539=>!_0x1c2539['isIncorrect']);}['_makeModelFromTape'](_0x50b549,_0x29bfff,_0x23d57f){const _0xb99a42=new _0x27a5cb(),_0x1be0bd=[],_0x5a5d7e=new Map(),_0x5c3853=this['editor']['model'],_0x1ab3d7=_0x5c3853['schema'],_0xc0f53b=[_0xb99a42],_0x2f3980={},_0x38f50b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bc94c=null;const _0x40adbe=[0x0];for(let _0x588b4f=0x0;_0x588b4f<_0x50b549['length'];_0x588b4f++)if('elementStart'===_0x50b549[_0x588b4f]['type']){_0x50b549[_0x588b4f]['previousPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe);const _0x5ab6ca=new _0x2885e6(_0x50b549[_0x588b4f]['item']['name'],_0x50b549[_0x588b4f]['item']['getAttributes']());_0xc0f53b[0x0]['_appendChild'](_0x5ab6ca),_0x40adbe['push'](0x0),_0xc0f53b['unshift'](_0x5ab6ca),_0x50b549[_0x588b4f]['nextPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe);}else'elementEnd'===_0x50b549[_0x588b4f]['type']?(_0xc0f53b['shift'](),_0x50b549[_0x588b4f]['previousPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe),_0x40adbe['pop'](),_0x40adbe[_0x40adbe['length']-0x1]++,_0x50b549[_0x588b4f]['nextPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe)):(_0x50b549[_0x588b4f]['previousPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe),_0x4bc94c?_0x4bc94c['_data']+=_0x50b549[_0x588b4f]['item']['data']:_0x4bc94c=new _0x3b2670(_0x50b549[_0x588b4f]['item']['data'],_0x50b549[_0x588b4f]['item']['getAttributes']()),_0x50b549[_0x588b4f+0x1]&&'text'===_0x50b549[_0x588b4f+0x1]['type']&&_0x52588b(_0x4bc94c,_0x50b549[_0x588b4f+0x1]['item'])||(_0xc0f53b[0x0]['_appendChild'](_0x4bc94c),_0x4bc94c=null),_0x40adbe[_0x40adbe['length']-0x1]+=_0x50b549[_0x588b4f]['item']['offsetSize'],_0x50b549[_0x588b4f]['nextPosition']=_0x5c3853['createPositionFromPath'](_0xb99a42,_0x40adbe));for(let _0x2d2743=0x0;_0x2d2743<_0x50b549['length'];_0x2d2743++){const _0x41b7eb=_0x50b549[_0x2d2743]['previousPosition'],_0x5a19df=_0x50b549[_0x2d2743]['nextPosition'];for(const _0x33be57 of _0x50b549[_0x2d2743]['markersStart'])_0x5a5d7e['set'](_0x33be57,{'start':_0x41b7eb,'end':null});_0x450db6('isRemoveSuggestion',_0x2d2743,_0x41b7eb,_0x5a19df),_0x450db6('isAddSuggestion',_0x2d2743,_0x41b7eb,_0x5a19df),_0x450db6('isRemoved',_0x2d2743,_0x41b7eb,_0x5a19df),_0x450db6('isAdded',_0x2d2743,_0x41b7eb,_0x5a19df);for(const _0x21d381 of _0x50b549[_0x2d2743]['markersEnd']){const _0x18e5f4=_0x5a5d7e['get'](_0x21d381);_0x18e5f4?_0x18e5f4['end']=_0x5a19df:_0x5a5d7e['set'](_0x21d381,{'start':_0x5a19df,'end':_0x5a19df});}}for(const [_0x46359e,_0x14ed4a]of _0x5a5d7e){const _0x40ef38=this['editor']['model']['createRange'](_0x14ed4a['start'],_0x14ed4a['end']);_0xb99a42['markers']['set'](_0x46359e,_0x40ef38);}return _0x1be0bd['sort']((_0x4717ee,_0x5794c0)=>{const _0x54399f=_0xb99a42['markers']['get']('revision:'+_0x4717ee['id']),_0x2d3630=_0xb99a42['markers']['get']('revision:'+_0x5794c0['id']);return _0x54399f['start']['isBefore'](_0x2d3630['start'])?-0x1:_0x54399f['start']['isAfter'](_0x2d3630['start'])?0x1:_0x54399f['end']['isBefore'](_0x2d3630['end'])?-0x1:_0x54399f['end']['isAfter'](_0x2d3630['end'])?0x1:'add'===_0x4717ee['type']?-0x1:0x1;}),{'root':_0xb99a42,'changes':_0x1be0bd};function _0x450db6(_0x564b15,_0x5b7fb1,_0x26f2e0,_0x42db9f){const _0x5c71ff=!!_0x50b549[_0x5b7fb1][_0x564b15],_0x3c72e9=_0x5c71ff?_0x50b549[_0x5b7fb1][_0x564b15]['userId']:null,_0x50bed8=_0x5b7fb1===_0x50b549['length']-0x1,_0x6c3d9a=_0x38f50b[_0x564b15][0x0],_0xd4890e=_0x1ab3d7['isObject'](_0x50b549[_0x5b7fb1]['item']);!_0x2f3980[_0x564b15]&&_0x5c71ff?_0x2f3980[_0x564b15]={'start':_0x26f2e0,'tapeItem':_0x50b549[_0x5b7fb1],'userId':_0x3c72e9,'type':_0x564b15}:_0x2f3980[_0x564b15]&&!_0x5c71ff?(_0x2f3980[_0x564b15]['end']=_0x26f2e0,_0x2b4d85(_0x2f3980[_0x564b15]),_0x2f3980[_0x564b15]=null):_0x2f3980[_0x564b15]&&_0x5c71ff&&_0x2f3980[_0x564b15]['userId']!==_0x3c72e9&&(_0x2f3980[_0x564b15]['end']=_0x26f2e0,_0x6c3d9a&&_0x6c3d9a['userId']===_0x2f3980[_0x564b15]['userId']||_0x2b4d85(_0x2f3980[_0x564b15]),_0x2f3980[_0x564b15]={'start':_0x26f2e0,'tapeItem':_0x50b549[_0x5b7fb1],'userId':_0x3c72e9,'type':_0x564b15}),_0x2f3980[_0x564b15]&&_0xd4890e&&('elementStart'!==_0x50b549[_0x5b7fb1]['type']||_0x6c3d9a&&_0x6c3d9a['userId']===_0x3c72e9||_0x38f50b[_0x564b15]['unshift']({'userId':_0x3c72e9,'object':_0x50b549[_0x5b7fb1]['item'],'change':_0x2f3980[_0x564b15]}),'elementEnd'===_0x50b549[_0x5b7fb1]['type']&&_0x6c3d9a&&_0x6c3d9a['object']===_0x50b549[_0x5b7fb1]['item']&&(_0x38f50b[_0x564b15]['shift'](),_0x2f3980[_0x564b15]=_0x6c3d9a['change'])),_0x2f3980[_0x564b15]&&_0x50bed8&&(_0x2f3980[_0x564b15]['end']=_0x42db9f,_0x2b4d85(_0x2f3980[_0x564b15]),_0x2f3980[_0x564b15]=null);}function _0x2b4d85({start:_0x5eefd3,end:_0x27ec1c,tapeItem:_0x3d2d2b,userId:_0x589c1d,type:_0x51630a}){const _0x11d793=_0x3d2d2b['item'],_0x39dc8c=_0x5c3853['schema']['isBlock'](_0x11d793)&&!_0x5c3853['schema']['isLimit'](_0x11d793),_0x1973c3=_0x5eefd3['nodeAfter']==_0x27ec1c['parent']&&_0x27ec1c['isAtStart'];if(_0x39dc8c&&_0x1973c3)return;const _0x5f1e52=_0x5c3853['createRange'](_0x5eefd3,_0x27ec1c),_0x5c3a14=_0x29bfff['get'](_0x589c1d),_0x452082=new G({'author':_0x5c3a14,'type':'isAdded'==_0x51630a||'isAddSuggestion'==_0x51630a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x51630a||'isRemoveSuggestion'==_0x51630a},'createdAt':new Date(),'rootName':_0x23d57f});_0x1be0bd['push'](_0x452082),_0xb99a42['markers']['set']('revision:'+_0x452082['id'],_0x5f1e52);}function _0x52588b(_0x35efbf,_0x218c07){const _0x3d52b4=_0x35efbf['getAttributes'](),_0x303070=_0x218c07['getAttributes']();for(const _0x4fc538 of _0x3d52b4){if(_0x4fc538[0x1]!==_0x218c07['getAttribute'](_0x4fc538[0x0]))return!0x1;_0x303070['next']();}return _0x303070['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x591558=>{const _0xb9325d=_0x591558['markerName']['split'](':')[0x1],_0x395e0c=this['_getChangeFromId'](_0xb9325d);if(!_0x395e0c)return null;const _0x36c923='add'==_0x395e0c['type']?'insertion':'deletion',_0x996137=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36c923];return _0x395e0c['data']['isSuggestion']&&_0x996137['push']('ck-suggestion-marker-'+_0x36c923+'-new'),this['activeChange']==_0x395e0c&&_0x996137['push']('ck-suggestion-marker--active'),{'classes':_0x996137,'attributes':{'data-change-id':_0xb9325d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x55ee80=>{_0x55ee80['on']('element:pre',(_0x24a94a,_0xb1a65c,_0x32715f)=>{const _0x381a35=_0xb1a65c['viewItem']['getChild'](0x0);if(!_0x381a35||!_0x381a35['is']('element','code'))return;if(!_0x32715f['consumable']['consume'](_0x381a35,{'attributes':['vid_start','vid_end']}))return;const _0x24f64e=_0xb1a65c['modelRange']['start']['nodeAfter'];_0x32715f['writer']['setAttribute']('vid_start',_0x381a35['getAttribute']('vid_start'),_0x24f64e),_0x32715f['writer']['setAttribute']('vid_end',_0x381a35['getAttribute']('vid_end'),_0x24f64e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x46284c=>{_0x46284c['on']('element',(_0x30e759,_0x234fc0,_0x2aa16b)=>{if(!_0x2aa16b['consumable']['consume'](_0x234fc0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x234fc0['modelRange']['isCollapsed'])return;const _0x2bf04a=_0x234fc0['modelRange']['start']['nodeAfter'];_0x2bf04a['hasAttribute']('vid_start')||_0x2bf04a['hasAttribute']('vid')||(_0x2aa16b['writer']['setAttribute']('vid_start',_0x234fc0['viewItem']['getAttribute']('vid_start'),_0x2bf04a),_0x2aa16b['writer']['setAttribute']('vid_end',_0x234fc0['viewItem']['getAttribute']('vid_end'),_0x2bf04a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x205c17=>_0x205c17['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3f016a,[,_0x4e2a11])=>{['vid_start','vid_end','vid']['includes'](_0x4e2a11)&&(_0x3f016a['return']=!0x0,_0x3f016a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x23f727=>{_0x23f727['on']('attribute:vid',(_0x1812e5,_0x1acd1a,_0x3ca9a0)=>{if('\x20'!=_0x1acd1a['item']['data']||_0x1acd1a['item']['parent']['maxOffset']>0x1)return;if(!_0x3ca9a0['consumable']['consume'](_0x1acd1a['item'],_0x1812e5['name']))return;const _0x3845aa=_0x3ca9a0['writer'],_0x110b2f=_0x3ca9a0['mapper']['toViewRange'](_0x1acd1a['range']);_0x3845aa['wrap'](_0x110b2f,_0x3845aa['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5cde33){const _0x425afc=_0x5cde33['plugins']['get']('RevisionViewer');return(_0x1a54ca,_0x23e022,_0x17b833)=>{const _0x17ee7b=_0x23e022['markerName']['split'](':')[0x1],_0x3dcdd2=_0x425afc['_getChangeFromId'](_0x17ee7b);if(!_0x3dcdd2)return null;const _0x2bd362='add'==_0x3dcdd2['type']?'split':'merge';if(!_0x17b833['consumable']['test'](_0x23e022['markerRange'],_0x1a54ca['name']))return;const _0x280859=_0x23e022['markerRange']['getWalker'](),_0x2613fb=_0x23e022['markerRange']['start'],_0x4488a5=_0x5cde33['model']['schema'];let _0x481acf=null,_0x23263e=null,_0x5c740d=!0x1,_0x554a0c=!0x1;for(const _0x25c8a3 of _0x280859){const _0x487f8b=_0x25c8a3['item'];_0x5c740d=_0x5c740d||_0x4488a5['isContent'](_0x487f8b);const _0x2f677c=_0x17b833['mapper']['toViewElement'](_0x487f8b);if(_0x2f677c&&_0x2f677c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25c8a3['type']&&(_0x4488a5['isBlock'](_0x487f8b)&&!_0x4488a5['isLimit'](_0x487f8b)&&(_0x487f8b['nextSibling']||_0x2613fb['isAtEnd']?_0x481acf&&_0x481acf['parent']==_0x487f8b||(_0x481acf=_0x487f8b,_0x2b24f4(_0x25c8a3['previousPosition']),_0x554a0c=!0x0):_0x23263e=_0x23263e||_0x25c8a3['previousPosition']));}function _0x2b24f4(_0x6f184e){const _0x550f30=_0x17b833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bd362}),_0x2503b4=_0x17b833['mapper']['toViewPosition'](_0x6f184e);_0x3dcdd2['data']['isSuggestion']&&_0x17b833['writer']['addClass']('ck-suggestion-marker-'+_0x2bd362+'-new',_0x550f30),_0x425afc['activeChange']==_0x3dcdd2&&_0x17b833['writer']['addClass']('ck-suggestion-marker--active',_0x550f30),_0x17b833['writer']['insert'](_0x2503b4,_0x550f30),_0x17b833['mapper']['bindElementToMarker'](_0x550f30,_0x23e022['markerName']);}_0x5c740d||_0x554a0c||!_0x23263e||_0x2b24f4(_0x23263e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf1bd3e,_0x1b75da,_0x42f713)=>{const _0x4801e8=_0x42f713['mapper']['markerNameToElements'](_0x1b75da['markerName']);if(_0x4801e8){for(const _0x5e32ba of _0x4801e8)(_0x5e32ba['hasClass']('ck-suggestion-marker-split')||_0x5e32ba['hasClass']('ck-suggestion-marker-merge'))&&(_0x42f713['mapper']['unbindElementFromMarkerName'](_0x5e32ba,_0x1b75da['markerName']),_0x42f713['writer']['remove'](_0x5e32ba));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2ef394,_0x524176,_0x34d046)=>{const _0x44828d=_0x524176['markerName']['split'](':')[0x1],_0x2e6712=this['_getChangeFromId'](_0x44828d);if(!_0x2e6712)return null;const _0x262d21='add'==_0x2e6712['type']?'split':'merge';if(_0x34d046['consumable']['test'](_0x524176['markerRange'],_0x2ef394['name']))for(const _0x278cc0 of _0x524176['markerRange']['getItems']()){if(!_0x278cc0['is']('element','softBreak'))continue;const _0x509ac7=_0x34d046['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x262d21}),_0x30c5cf=_0x34d046['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x278cc0));_0x2e6712['data']['isSuggestion']&&_0x34d046['writer']['addClass']('ck-suggestion-marker-'+_0x262d21+'-new',_0x509ac7),this['activeChange']==_0x2e6712&&_0x34d046['writer']['addClass']('ck-suggestion-marker--active',_0x509ac7),_0x34d046['writer']['insert'](_0x30c5cf,_0x509ac7),_0x34d046['mapper']['bindElementToMarker'](_0x509ac7,_0x524176['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4fa9e4=>{for(const _0x2a7d6e of this['editor']['model']['document']['getRootNames']()){const _0x26ddd7=this['editor']['model']['document']['getRoot'](_0x2a7d6e),_0x334ae4=this['editor']['editing']['view']['document']['getRoot'](_0x2a7d6e);if(_0x334ae4){const _0x3ab261=_0x26ddd7['getAttribute']('revisionHistoryAttachChange');if(_0x4fa9e4['removeAttribute']('data-change-id',_0x334ae4),_0x4fa9e4['removeClass']('ck-revision-history-root-add',_0x334ae4),_0x4fa9e4['removeClass']('ck-revision-history-root-remove',_0x334ae4),_0x4fa9e4['removeClass']('ck-revision-history-root--active',_0x334ae4),_0x3ab261){const _0x3e581d=this['_getChangeFromId'](_0x3ab261);if(!_0x3e581d)return null;_0x4fa9e4['setAttribute']('data-change-id',_0x3ab261,_0x334ae4),_0x4fa9e4['addClass']('ck-revision-history-root-'+_0x3e581d['type'],_0x334ae4),this['activeChange']==_0x3e581d&&_0x4fa9e4['addClass']('ck-revision-history-root--active',_0x334ae4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5cf8ac=>'revision-comment:'+_0x5cf8ac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2caa1b=>'revision-suggestion:'+_0x2caa1b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34fa11=>({'name':'suggestion:'+_0x34fa11,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x52fe70=>{const _0x5330e9=_0x52fe70['markerName']['split'](':')[0x1];return'insertion'!=_0x5330e9&&'deletion'!=_0x5330e9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5330e9]};}}),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',(_0x5077a9,_0x239204,_0x227192)=>{const _0x5948f1=_0x227192['mapper']['markerNameToElements'](_0x239204['markerName']);if(_0x5948f1){for(const _0x2b89c9 of _0x5948f1)_0x2b89c9['is']('uiElement')&&(_0x227192['mapper']['unbindElementFromMarkerName'](_0x2b89c9,_0x239204['markerName']),_0x227192['writer']['remove'](_0x2b89c9));}},{'priority':'high'});}['_getChangeFromId'](_0x54afa9){return this['_changeIdToChange']['get'](_0x54afa9);}['_getViewForChange'](_0x51e998){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x51e998),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8369f,_0x1fa628,_0x3ddeef,_0x471c61)=>{_0x471c61&&this['_balloon']['remove'](_0x471c61),_0x3ddeef&&(this['_balloon']['add']({'view':_0x3ddeef,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35f7d2=this['editor']['editing'],_0x73447b=this['_getChangeFromId'](_0x3ddeef['changeId']);let _0x4cd0a8;if(_0x73447b['data']['isOnRoot']){const _0x12459a=_0x35f7d2['view']['getDomRoot'](_0x73447b['rootName']);_0x4cd0a8=Array['from'](_0x12459a['getClientRects']());}else{const _0x42efee=this['editor']['model']['markers']['get']('revision:'+_0x3ddeef['changeId']);_0x4cd0a8=Array['from'](_0x35f7d2['mapper']['markerNameToElements'](_0x42efee['name']))['map'](_0x4774eb=>_0x35f7d2['view']['domConverter']['mapViewToDom'](_0x4774eb))['map'](_0x3d195c=>Array['from'](_0x3d195c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4cd0a8[0x0];return _0x4cd0a8['find'](_0x3d6c47=>_0x3d6c47['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d6c47['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d6c47['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d6c47['right']+0x3>=this['_activeViewTarget']['x'])||_0x4cd0a8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x31d9b5,_0x576b4b,_0x34ccb6,_0xd7145b)=>{this['activeView']=_0x34ccb6?this['_getViewForChange'](_0x34ccb6):null,this['editor']['model']['change'](()=>{const _0x38a9e1=this['editor']['editing'];_0xd7145b&&(_0xd7145b['data']['isOnRoot']?_0x38a9e1['view']['change'](_0x29d6e7=>{_0x29d6e7['removeClass']('ck-revision-history-root--active',_0x38a9e1['view']['document']['getRoot'](_0xd7145b['rootName']));}):_0x38a9e1['reconvertMarker']('revision:'+_0xd7145b['id'])),_0x34ccb6&&(_0x34ccb6['data']['isOnRoot']?_0x38a9e1['view']['change'](_0x2ba1f1=>{_0x2ba1f1['addClass']('ck-revision-history-root--active',_0x38a9e1['view']['document']['getRoot'](_0x34ccb6['rootName']));}):_0x38a9e1['reconvertMarker']('revision:'+_0x34ccb6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xdf8584,_0x4de280)=>{if(this['activeChange'])return;const _0x189671=this['_findChangeIdFromDomTarget'](_0x4de280['target']),_0x71b15b=this['_changeIdToChange']['get'](_0x189671);_0x71b15b?(this['_activeViewTarget']={'x':_0x4de280['domEvent']['x'],'y':_0x4de280['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x71b15b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c155d,_0x3f97c0)=>{const _0x5a4981=this['_findChangeIdFromDomTarget'](_0x3f97c0['target']),_0x283622=this['_changeIdToChange']['get'](_0x5a4981);_0x283622?(this['_activeViewTarget']={'x':_0x3f97c0['domEvent']['x'],'y':_0x3f97c0['domEvent']['y']},_0x283622===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x283622):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4e83c0){do{const _0x3a7967=_0x4e83c0['getAttribute']('data-change-id');if(_0x3a7967)return _0x3a7967;_0x4e83c0=_0x4e83c0['parent'];}while(_0x4e83c0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5d8813=>{for(const _0x2a560e of this['editor']['model']['markers'])_0x5d8813['removeMarker'](_0x2a560e);});}}function Q(_0x48504c,_0x1d73da){return(_0x3169b3,_0x346831,_0x363e8a)=>{if(!_0x363e8a['consumable']['test'](_0x346831['markerRange'],_0x3169b3['name']))return;const _0x2cdacf=_0x346831['markerRange']['getWalker'](),_0xc4936a=_0x346831['markerRange']['start'],_0x43cb44=_0x48504c['model']['schema'];let _0x1a1033=null,_0x256b54=null,_0x3425cf=!0x1,_0x93c63a=!0x1;for(const _0x20c75f of _0x2cdacf){const _0x2d0890=_0x20c75f['item'];_0x3425cf=_0x3425cf||_0x43cb44['isContent'](_0x2d0890);const _0x57254f=_0x363e8a['mapper']['toViewElement'](_0x2d0890);if(_0x57254f&&_0x57254f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x20c75f['type']&&(_0x43cb44['isBlock'](_0x2d0890)&&!_0x43cb44['isLimit'](_0x2d0890)&&(_0x2d0890['nextSibling']||_0xc4936a['isAtEnd']?_0x1a1033&&_0x1a1033['parent']==_0x2d0890||(_0x1a1033=_0x2d0890,_0x3ea5ad(_0x20c75f['previousPosition']),_0x93c63a=!0x0):_0x256b54=_0x256b54||_0x20c75f['previousPosition']));}function _0x3ea5ad(_0x128fcd){const _0x1bb4af=_0x363e8a['mapper']['toViewPosition'](_0x128fcd),_0x14269c=_0x363e8a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1d73da});_0x363e8a['writer']['insert'](_0x1bb4af,_0x14269c),_0x363e8a['mapper']['bindElementToMarker'](_0x14269c,_0x346831['markerName']);}_0x3425cf||_0x93c63a||!_0x256b54||_0x3ea5ad(_0x256b54);};}class nt extends _0x468ec8{constructor(_0x47783b){super(_0x47783b);const _0x31421c=_0x47783b['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x31421c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x31421c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4eadf7=this['editor'],_0x342a29=_0x4eadf7['plugins']['get'](l),_0x119f72=_0x342a29['isReady']?_0x342a29['diff']['newRevisionId']:null;_0x4eadf7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x119f72);}['refresh'](){const {isReady:_0x3bb6ad,isEnabled:_0x215160,repository:_0x288fd8,diff:_0x5b5396}=this['editor']['plugins']['get'](l),_0x4e8042=_0x5b5396&&_0x288fd8['getLaterVisibleRevision'](_0x5b5396['newRevisionId']);this['isEnabled']=_0x3bb6ad&&_0x215160&&Boolean(_0x4e8042);}}class rt extends _0x468ec8{['_step'];constructor(_0x31aafc,{direction:_0x2c7dc4}){super(_0x31aafc);const _0x5a7869=_0x31aafc['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2c7dc4?0x1:-0x1,this['listenTo'](_0x5a7869,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a7869,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a7869,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d14a4=this['editor'],_0x203bcd=_0x5d14a4['plugins']['get'](l),{isNavigationMode:_0x52b262,currentChangeNumber:_0x156f9a}=_0x203bcd;let _0x22a173;if(_0x203bcd['activeChange']=_0x52b262?_0x203bcd['diff']['changes']['get'](_0x156f9a+this['_step']):_0x203bcd['diff']['changes']['first'],_0x203bcd['activeChange']['data']['isOnRoot'])_0x22a173=_0x5d14a4['editing']['view']['getDomRoot'](_0x203bcd['activeChange']['rootName']);else{const _0x41976b=_0x5d14a4['model']['markers']['get']('revision:'+_0x203bcd['activeChange']['id']);_0x22a173=_0x680ef(_0x5d14a4['editing'],_0x41976b);}_0x5a283f({'target':_0x22a173,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x55f58e,currentChangeNumber:_0x1397f8,numberOfChanges:_0x3934ed,isReady:_0x7d2a7,isEnabled:_0x4f71c4}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x4f71c4&&_0x7d2a7&&_0x3934ed)&&(!_0x55f58e||(0x1===this['_step']?_0x1397f8<_0x3934ed-0x1:_0x1397f8>0x0));}}class Ri extends _0x2f3954{constructor(_0x485c8f){super(_0x485c8f);const _0x5b70db=this['bindTemplate'],_0x3e6fcd=new _0x3c0d17(_0x485c8f),_0x1d3c6d=new _0x3c0d17(_0x485c8f);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',(_0x50061e,_0x20ee3c)=>_0x50061e&&_0x20ee3c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3301d1,_0x2e881e,_0x40509e,_0x3ff87f)=>{if(!_0x3301d1)return R(_0x485c8f,'Loading...');if(!_0x40509e)return R(_0x485c8f,'No\x20changes');const _0x72702f=R(_0x485c8f,'NUMBER_OF_CHANGES',_0x40509e);return _0x3ff87f?R(_0x485c8f,'X_OF_Y_CHANGES',[_0x2e881e+0x1,_0x40509e]):_0x72702f;}),_0x3e6fcd['set']({'label':R(_0x485c8f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2f223a}),_0x1d3c6d['set']({'label':R(_0x485c8f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x24255b}),_0x3e6fcd['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1d3c6d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3e6fcd['on']('execute',()=>this['fire']('execute','backward')),_0x1d3c6d['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',_0x5b70db['if']('_isStatusLabelVisible','ck-hidden',_0x560ee9=>!_0x560ee9)]},'children':[{'text':_0x5b70db['to']('isNavigationMode',_0x1b846f=>_0x1b846f?R(_0x485c8f,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x485c8f,'Total')+':\x20')}]},{'text':_0x5b70db['to']('_statusText')}]},new _0x16d315(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3e6fcd,_0x1d3c6d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x42167a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x29e82d=this['editor']['editing']['view'];_0x29e82d['change'](_0x53b52d=>{for(const _0xd7f0d9 of _0x29e82d['document']['roots'])_0x53b52d['addClass'](ge,_0xd7f0d9);});}['hide'](){const _0x53e001=this['editor']['editing']['view'];_0x53e001['change'](_0x49bf1f=>{for(const _0xa912df of _0x53e001['document']['roots'])_0x49bf1f['removeClass'](ge,_0xa912df);});}}class u extends _0x42167a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xffe88d=this['editor'],_0x26517f=_0xffe88d['plugins']['get'](l),_0x1dd5a0=_0xffe88d['plugins']['get'](ji);_0xffe88d['ui']['componentFactory']['add']('exitToEditing',_0x4ad012=>{const _0x1331db=new _0x3c0d17(_0x4ad012);return _0x1331db['set']({'label':R(_0x4ad012,'Back\x20to\x20editing'),'icon':_0x48767f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1331db,'execute',()=>{_0xffe88d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1331db;}),_0xffe88d['ui']['componentFactory']['add']('restoreRevision',_0x5a1c94=>{const _0x460b00=new _0x3c0d17(_0x5a1c94);return _0x460b00['set']({'label':R(_0x5a1c94,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x460b00['bind']('isEnabled')['to'](_0xffe88d['commands']['get']('restoreRevision')),this['listenTo'](_0x460b00,'execute',()=>_0xffe88d['execute']('restoreRevision')),_0x460b00;}),_0xffe88d['ui']['componentFactory']['add']('changesNavigation',_0x3fb328=>{const _0x120384=new Ri(_0x3fb328),_0x422411=_0xffe88d['commands']['get']('showPreviousChange'),_0x36b570=_0xffe88d['commands']['get']('showNextChange');return _0x120384['bind']('isBackwardNavigationEnabled')['to'](_0x422411,'isEnabled'),_0x120384['bind']('isForwardNavigationEnabled')['to'](_0x36b570,'isEnabled'),_0x120384['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x26517f),this['listenTo'](_0x120384,'execute',(_0x165ca1,_0x20f53e)=>{_0xffe88d['execute']('forward'===_0x20f53e?'showNextChange':'showPreviousChange');}),_0x120384;}),_0x1dd5a0['show'](),_0x26517f['on']('change:isReady',(_0x29b4a1,_0x458df0,_0x3044c3)=>{_0x3044c3?_0x1dd5a0['hide']():_0x1dd5a0['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x168e7b,_0x3822c0){super(_0x168e7b,_0x3822c0);const _0x428315=this['bindTemplate'];this['set']({'label':R(_0x168e7b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x168e7b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x428315['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 _0x1cd2bc=this['fieldView']['element'];this['_tooltipString']=_0x1cd2bc['scrollWidth']>_0x1cd2bc['clientWidth']&&_0x1cd2bc['value']||'';}}class ni extends _0x2f3954{constructor(_0x40d081,_0x2543d8,_0x116235){super(_0x40d081);const _0x5f51cd=new _0x180cc4();_0x5f51cd['set']({'content':_0x3c5d9e,'viewBox':'0\x200\x2011\x2010'});const _0x2fc7bd=['ck','ck-revision-history-sidebar__revision-author'];_0x116235&&_0x2fc7bd['push']('ck-revision-history-sidebar__revision-author_creator');const _0x43caf5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x40d081,_0x116235?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f51cd,_0x2543d8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fc7bd},'children':_0x43caf5});}}function ci(_0x274efb,_0x323d0a){const _0x31fe21=_0x274efb['bindTemplate'],_0x32fefa=_0x274efb['locale'],_0x1749c1=_0x993c86(_0x32fefa);_0x1749c1['panelPosition']='sw';const _0x315fa7=function(_0x4e38a9,_0x89f40a){const _0x1a81bf=function(_0x6defa1,_0x1e981d){const _0x5bf00a=_0x6defa1['locale'],_0x1cb095={'Compare\x20against\x20selected':R(_0x5bf00a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5bf00a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5bf00a,'Restore\x20this\x20revision')};return _0x1e981d['map'](_0x1b07c6=>{const _0x4b4514=_0x1cb095[_0x1b07c6['name']];return _0x4b4514&&_0x4b4514!==_0x1b07c6['name']&&(_0x1b07c6['name']=_0x4b4514),_0x1b07c6;});}(_0x4e38a9,_0x89f40a),_0x313571=new _0x43d864();for(const _0x268c6a of _0x1a81bf){const _0x1702ab={'type':'button','model':new to({'label':_0x268c6a['name'],'class':_0x268c6a['class'],'withText':!0x0,'role':'menuitem','_action':_0x268c6a['action']})};_0x1702ab['model']['bind']('isEnabled')['to'](_0x4e38a9,'isActionsDropdownOpen',_0x27b832=>'function'!=typeof _0x268c6a['isEnabled']||(!_0x27b832||_0x268c6a['isEnabled'](_0x4e38a9))),_0x313571['add'](_0x1702ab);}return _0x313571;}(_0x274efb,_0x323d0a);return _0x274efb['bind']('isActionsDropdownOpen')['to'](_0x1749c1,'isOpen'),_0x1749c1['buttonView']['set']({'label':R(_0x32fefa,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3e86b0}),_0x1749c1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x31fe21['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x31fe21['to'](_0x1e8863=>_0x1e8863['stopPropagation']())}}),_0x1749c1['on']('execute',_0x5034c5=>{_0x274efb['isReady']&&'function'==typeof _0x5034c5['source']['_action']&&_0x5034c5['source']['_action'](_0x274efb);}),_0x60a1b0(_0x1749c1,_0x315fa7,{'role':'menu'}),_0x1749c1['listenTo'](_0x274efb,'change:isActionsDropdownOpen',(_0xee704f,_0x8cc660,_0x331b31)=>{if(_0x331b31)for(const _0x3e529b of _0x1749c1['listView']['items']){const _0x23314d=_0x3e529b['children']['first'],_0xb9a357=_0x323d0a['find'](_0x38a930=>_0x38a930['action']===_0x23314d['_action'])['isVisible'];_0x3e529b['isVisible']=void 0x0===_0xb9a357||_0xb9a357(_0x274efb);}}),_0x1749c1;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5ed703,uid as _0x2bd58b,Collection as _0x5d0537,logWarning as _0x392114,FocusTracker as _0x5ad870,KeystrokeHandler as _0x380150,scrollViewportToShowTarget as _0x5ede0c,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x13b40b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x20f484,set as _0x1c71ae,unset as _0x20caac,isEqual as _0x5c2b50}from'es-toolkit/compat';import{Plugin as _0x4b6c22,PendingActions as _0x24ed16,Command as _0x3005ae,ElementApiMixin as _0x54c108,Editor as _0x34b6db}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x14b7c6,getMarkerDomElement as _0x444498,ConfirmMixin as _0xf82478,sanitizeEditorConfig as _0x539216}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x45a9dc,ViewAttributeElement as _0x241726,ViewEmptyElement as _0x4328bf,ViewRawElement as _0x15798c,ViewUIElement as _0x5cd230,ViewDocumentFragment as _0xbc62d3,ViewText as _0x369968,ViewElement as _0x607f5e,ModelElement as _0x24e097,ModelRange as _0x47f923,ModelPosition as _0x5d8173,ModelDocumentFragment as _0xdf8818,ModelText as _0xa4be3c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x255ec9,IconChevronUp as _0x2929a1,IconChevronDown as _0x69ef5d,IconUndo as _0x52a6c2,IconUser as _0x277b2d,IconThreeVerticalDots as _0x1c4fb7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x42afb7,View as _0x3ecb12,submitHandler as _0x507135,LabeledFieldView as ti,createLabeledInputText as _0x5b55e3,createDropdown as _0x195a39,ListView as _0xcfb5d2,ListItemView as _0x276d1b,ButtonView as _0x5c81a4,MenuBarMenuView as _0x6d116d,MenuBarMenuListView as _0x1dc46d,MenuBarMenuListItemView as _0x41dcbf,MenuBarMenuListItemButtonView as _0x33b590,ContextualBalloon as _0x4232c8,ToolbarSeparatorView as _0x19f4e5,IconView as _0x32fa98,addListToDropdown as _0x1a4bab,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3498aa,StickyPanelView as _0x885ae8,ToolbarView as _0x529c76,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3505de}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ed703(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18ca66){super(),this['id']=_0x18ca66['id']||_0x2bd58b(),this['creator']=_0x18ca66['creator']||null,this['authors']=_0x18ca66['authors']||[],this['diffData']=_0x18ca66['diffData']||null,this['toVersion']=_0x18ca66['toVersion']||0x0,this['fromVersion']=_0x18ca66['fromVersion']||0x0,this['set']('name',_0x18ca66['name']||''),this['set']('createdAt',_0x18ca66['createdAt']||new Date()),this['set']('attributes',_0x18ca66['attributes']||{});}['setName'](_0x3a9f28){this['_update']({'name':_0x3a9f28});}['setAttribute'](_0x4d3034,_0x4b88f8){const _0x1bd8a6=_0x20f484(this['attributes']);_0x1c71ae(_0x1bd8a6,_0x4d3034,_0x4b88f8),this['_update']({'attributes':_0x1bd8a6});}['removeAttribute'](_0x320a4b){const _0x4414f2=_0x20f484(this['attributes']);_0x20caac(_0x4414f2,_0x320a4b),this['_update']({'attributes':_0x4414f2});}['_update'](_0x55466c,_0x2aaf8d=!0x1){let _0x1c54d4=!0x1;const _0x535524={'id':this['id']},_0x1dec01=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ad0a0 of _0x1dec01){const _0x4a532d=_0x55466c[_0x1ad0a0];void 0x0!==_0x4a532d&&_0x4a532d!==this[_0x1ad0a0]&&(this[_0x1ad0a0]=_0x4a532d,_0x535524[_0x1ad0a0]=_0x4a532d,_0x1c54d4=!0x0);}_0x1c54d4&&(_0x535524['authors']&&(_0x535524['authorsIds']=_0x535524['authors']['map'](_0x34113a=>_0x34113a['id']),delete _0x535524['authors']),this['fire']('_update',_0x535524,_0x2aaf8d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b0f17=>_0x1b0f17['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x4b6c22{['_revisions'];static get['requires'](){return[_0x14b7c6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xe16980){super(_0xe16980),this['_revisions']=new _0x5d0537();}['afterInit'](){!async function(_0x38bc2c){const _0x1f9088=_0x2eddde([0x55,0x62,0x4d,0x6e,0x69,0x71,0x51,0x59,0x77,0x45,0x30,0x67,0x72,0x4b,0x76,0x33,0x78,0x44,0x6d,0x63,0x73,0x79,0x31,0x4e,0x57,0x56,0x65,0x66,0x32,0x49,0x64,0x34,0x39,0x4a,0x42,0x6c,0x4c,0x46,0x50,0x36,0x7a,0x4f,0x58,0x61,0x43,0x47,0x6b,0x74,0x48,0x70,0x68,0x53,0x6a,0x38,0x37,0x41,0x6f,0x54,0x5a,0x52,0x75,0x35]),_0x44ead2=0xeb829,_0x26b24d=0x69229469,_0x291ee4=0x6925fbd9^_0x26b24d,_0x42d851=window[_0x2eddde([0x44,0x61,0x74,0x65])][_0x2eddde([0x6e,0x6f,0x77])](),_0x23d2af=_0x38bc2c[_0x2eddde([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348338=new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da1ff=>{_0x23d2af[_0x2eddde([0x6f,0x6e,0x63,0x65])](_0x2eddde([0x72,0x65,0x61,0x64,0x79]),_0x1da1ff);}),_0x25da84={[_0x2eddde([0x6b,0x74,0x79])]:_0x2eddde([0x45,0x43]),[_0x2eddde([0x75,0x73,0x65])]:_0x2eddde([0x73,0x69,0x67]),[_0x2eddde([0x63,0x72,0x76])]:_0x2eddde([0x50,0x2d,0x32,0x35,0x36]),[_0x2eddde([0x78])]:_0x2eddde([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]),[_0x2eddde([0x79])]:_0x2eddde([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]),[_0x2eddde([0x61,0x6c,0x67])]:_0x2eddde([0x45,0x53,0x32,0x35,0x36])},_0x37c6e0=_0x23d2af[_0x2eddde([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2eddde([0x67,0x65,0x74])](_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe1ec05(){let _0x40aa62,_0x6f913b=null,_0x246825=null;try{if(_0x37c6e0==_0x2eddde([0x47,0x50,0x4c]))return _0x2eddde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40aa62=_0x5de874(),!_0x40aa62)return _0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40aa62[_0x2eddde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x246825=_0x1367eb(_0x40aa62[_0x2eddde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40aa62[_0x2eddde([0x6a,0x74,0x69])])),await _0x3c08f8()?_0x466940()?_0x325514()?_0x2eddde([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13df1b()?(_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eddde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6f913b=_0x22d121(_0x2eddde([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eddde([0x74,0x72,0x69,0x61,0x6c])&&(_0x6f913b=_0x22d121(_0x2eddde([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e18b3()):_0x2eddde([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2eddde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x325514(){const _0x56613c=[_0x2eddde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2eddde([0x74,0x72,0x69,0x61,0x6c])][_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42d851/0x3e8:0xe10*_0x291ee4;return _0x40aa62[_0x2eddde([0x65,0x78,0x70])]<_0x56613c;}function _0x466940(){const _0xd4ef1e=_0x40aa62[_0x2eddde([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd4ef1e)return!0x1;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x2a])))return!0x0;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x52,0x48])))return!0x0;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x52,0x52,0x48]))){if(_0xaad3d())return!0x0;if(_0x364462()||_0x5f2358())return!0x0;}return!0x1;}function _0x13df1b(){const _0x517ee2=_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x517ee2||0x0==_0x517ee2[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33d88a}=new URL(window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x517ee2[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33d88a))return!0x0;const _0x1004f3=_0x33d88a[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e]));return _0x517ee2[_0x2eddde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa36fd5=>_0xa36fd5[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x2a])))[_0x2eddde([0x6d,0x61,0x70])](_0x4801c1=>_0x4801c1[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e])))[_0x2eddde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x274b11=>_0x274b11[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1004f3[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eddde([0x6d,0x61,0x70])](_0x564a66=>Array(_0x1004f3[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x564a66[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eddde([0x66,0x69,0x6c,0x6c])](_0x564a66[0x0]===_0x2eddde([0x2a])?_0x2eddde([0x2a]):'')[_0x2eddde([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x564a66))[_0x2eddde([0x73,0x6f,0x6d,0x65])](_0x3be214=>_0x1004f3[_0x2eddde([0x65,0x76,0x65,0x72,0x79])]((_0x45e6f3,_0x1a1607)=>_0x3be214[_0x1a1607]===_0x45e6f3||_0x3be214[_0x1a1607]===_0x2eddde([0x2a])));}function _0x5e18b3(){return _0x6f913b&&_0x246825?new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cfaa2,_0x100073)=>{_0x6f913b[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x1cfaa2,_0x100073),_0x246825[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x3ed148=>{_0x3ed148!=_0x2eddde([0x56,0x61,0x6c,0x69,0x64])&&_0x1cfaa2(_0x3ed148);},_0x100073);}):_0x6f913b||_0x246825||_0x2eddde([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1367eb(_0x1ed618,_0x1b911c){return new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5493de=>{if(_0xf369c1())return _0x5493de(_0x2eddde([0x56,0x61,0x6c,0x69,0x64]));_0x2f397e(),_0x23d2af[_0x2eddde([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46e95b=!0x1;const _0x45af57=_0x2bd58b();function _0x31131f(_0x4a448f){return!!_0x4a448f&&(typeof _0x4a448f===_0x2eddde([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a448f===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a448f[_0x2eddde([0x74,0x68,0x65,0x6e])]===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a448f[_0x2eddde([0x63,0x61,0x74,0x63,0x68])]===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2925f5(_0x12a039){_0x182282(_0x12a039)[_0x2eddde([0x74,0x68,0x65,0x6e])](_0xb4125c=>{if(!_0xb4125c||_0xb4125c[_0x2eddde([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2eddde([0x6f,0x6b]))return _0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ec3e(_0x69403a(_0x45af57+_0x1b911c))!=_0xb4125c[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2eddde([0x56,0x61,0x6c,0x69,0x64]);})[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x44c5ef=>(_0xf0465d(),_0x44c5ef),()=>{const _0x55b1e3=_0x40898b();return null==_0x55b1e3?(_0xf0465d(),_0x2eddde([0x56,0x61,0x6c,0x69,0x64])):_0x2eddde(_0x42d851-_0x55b1e3>(0x4d2e1069^_0x26b24d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x5493de)[_0x2eddde([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5136f4=0x69147ae9^_0x26b24d;function _0xf0465d(){const _0x5dd85c=_0x2eddde([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ec3e(_0x69403a(_0x1ed618)),_0x45168d=_0x3136e0(_0x40ec3e(window[_0x2eddde([0x4d,0x61,0x74,0x68])][_0x2eddde([0x63,0x65,0x69,0x6c])](_0x42d851/_0x5136f4)));window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eddde([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dd85c,_0x45168d);}function _0x40898b(){const _0x58e6c1=_0x2eddde([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ec3e(_0x69403a(_0x1ed618)),_0x46281a=window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eddde([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e6c1);return _0x46281a?window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3136e0(_0x46281a),0x10)*_0x5136f4:null;}function _0x182282(_0x4ae68d){return new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468e89,_0x2587e4)=>{_0x4ae68d[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x468e89,_0x2587e4),window[_0x2eddde([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2587e4,0x692340a9^_0x26b24d);});}}_0x23d2af[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560b16,_0x1480d4)=>{if(_0x1480d4[0x0]!=_0x1ed618)return _0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1480d4[0x1]={..._0x1480d4[0x1],[_0x2eddde([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45af57};},{[_0x2eddde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eddde([0x68,0x69,0x67,0x68])}),_0x23d2af[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45110a=>{_0x31131f(_0x45110a[_0x2eddde([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46e95b=!0x0,_0x2925f5(_0x45110a[_0x2eddde([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2eddde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eddde([0x6c,0x6f,0x77])}),_0x348338[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>{_0x46e95b||_0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf369c1(){return _0x23d2af[_0x2eddde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eddde([0x76,0x69,0x65,0x77])][_0x2eddde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2eddde([0x61,0x75,0x74,0x6f]);}function _0x2f397e(){_0x23d2af[_0x2eddde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eddde([0x76,0x69,0x65,0x77])][_0x2eddde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2eddde([0x61,0x75,0x74,0x6f]);}}function _0x22d121(_0xb22fae){const _0x319149=[new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530ca0=>setTimeout(_0x530ca0,0x692baaa5^_0x26b24d)),_0x348338[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2d1a=>{const _0x4b1f87=0x6922946e^_0x26b24d,_0x2ea4bd=_0x38bc2c[_0x2eddde([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4808bf(){_0x2ea4bd[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4b1f87&&_0x3a2d1a();}_0x4808bf(),_0x2ea4bd[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x61,0x64,0x64]),_0x4808bf);})),new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca2fd=>{function _0x299329(){for(const _0x4048fc in window)if(window[_0x2eddde([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2eddde([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4048fc))&&window[_0x4048fc]==_0x44ead2)return _0x1ca2fd();_0x23d2af[_0x2eddde([0x73,0x74,0x61,0x74,0x65])]!=_0x2eddde([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2eddde([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x299329,0x692287e1^_0x26b24d);}_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x299329();})];return window[_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2eddde([0x72,0x61,0x63,0x65])](_0x319149)[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>_0xb22fae);}async function _0x56189e(){if(await _0x348338,_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a4dbd=_0x38bc2c[_0x2eddde([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1491f6=_0x38bc2c[_0x2eddde([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])](_0x5a4dbd[_0x2eddde([0x69,0x64])]),_0x364d1b=_0x324665(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x364d1b[_0x2eddde([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a4dbd['id'],_0x1491f6?_0x1491f6['id']:null,!0x0),_0x364d1b[_0x2eddde([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x364d1b[_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x364d1b[_0x2eddde([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5762a5,void(_0x364d1b[_0x2eddde([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5762a5);}if(_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x58f3a6=_0x324665(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x58f3a6[_0x2eddde([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58f3a6[_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58f3a6[_0x2eddde([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5762a5,_0x58f3a6[_0x2eddde([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5762a5;}_0x23d2af[_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eddde([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5762a5,_0x23d2af[_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eddde([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5762a5,_0x23d2af[_0x2eddde([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaad3d(){return _0x5f168e(_0x2eddde([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x324665(_0x2eddde([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2eddde([0x73,0x74,0x61,0x74,0x65])]==_0x2eddde([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x364462(){return _0x5f168e(_0x2eddde([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 _0x5f2358(){return _0x5f168e(_0x2eddde([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14a146(_0x36ae68){const _0x20a8c0=_0x5cc089();_0x23d2af[_0x20a8c0]=_0x2eddde([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])+_0x36ae68,_0x36ae68[_0x2eddde([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2eddde([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5cc089()]=_0x44ead2),_0x36ae68!=_0x2eddde([0x56,0x61,0x6c,0x69,0x64])&&_0x56189e();}function _0x5cc089(){const _0x42e455=window[_0x2eddde([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2eddde([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2eddde([0x6e,0x6f,0x77])]())[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2eddde([0x2e]),'');let _0x101f99=_0x2eddde([0x55]);for(let _0x342705=0x0;_0x342705<_0x42e455[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x342705+=0x2){let _0x10c99a=window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42e455[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x342705,_0x342705+0x2));_0x10c99a>=_0x1f9088[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10c99a-=_0x1f9088[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x101f99+=_0x1f9088[_0x10c99a];}return _0x101f99;}function _0x5de874(){const _0x3972c8=_0x37c6e0[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e]));if(0x3!=_0x3972c8[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc8a97f(_0x3972c8[0x1]);function _0xc8a97f(_0xc3c4a2){const _0x43af2e=_0xbbb876(_0xc3c4a2);return _0x43af2e&&_0x2e4608()?_0x43af2e:null;function _0x2e4608(){const _0x23cefc=_0x43af2e[_0x2eddde([0x6a,0x74,0x69])],_0x456635=window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23cefc[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23cefc[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f1eac={..._0x43af2e,[_0x2eddde([0x6a,0x74,0x69])]:_0x23cefc[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23cefc[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f1eac[_0x2eddde([0x76,0x63])],_0x69403a(_0x1f1eac)==_0x456635;}}}async function _0x3c08f8(){let _0x5dcfb1=!0x0;try{const _0x5c32ff=_0x37c6e0[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e])),[_0x356c0a,_0x198985,_0x3b3bb8]=_0x5c32ff;return _0x2712b0(_0x356c0a),await _0x586936(_0x356c0a,_0x198985,_0x3b3bb8),_0x5dcfb1;}catch{return!0x1;}function _0x2712b0(_0x49aaaf){const _0xbf22e8=_0xbbb876(_0x49aaaf);_0xbf22e8&&_0xbf22e8[_0x2eddde([0x61,0x6c,0x67])]==_0x2eddde([0x45,0x53,0x32,0x35,0x36])||(_0x5dcfb1=!0x1);}async function _0x586936(_0x400408,_0x15a332,_0x20d258){const _0x101250=window[_0x2eddde([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2eddde([0x66,0x72,0x6f,0x6d])](_0x1471c3(_0x20d258),_0x27e0b0=>_0x27e0b0[_0x2eddde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d60dd=new window[(_0x2eddde([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2eddde([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x400408+_0x2eddde([0x2e])+_0x15a332),_0xc58dea=window[_0x2eddde([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2eddde([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc58dea)return;const _0x57dfaf=await _0xc58dea[_0x2eddde([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2eddde([0x6a,0x77,0x6b]),_0x25da84,{[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x45,0x43,0x44,0x53,0x41]),[_0x2eddde([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2eddde([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc58dea[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x45,0x43,0x44,0x53,0x41]),[_0x2eddde([0x68,0x61,0x73,0x68])]:{[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57dfaf,_0x101250,_0x5d60dd)||(_0x5dcfb1=!0x1);}}function _0xbbb876(_0x2143e0){return _0x2143e0[_0x2eddde([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2eddde([0x65,0x79]))?JSON[_0x2eddde([0x70,0x61,0x72,0x73,0x65])](_0x1471c3(_0x2143e0)):null;}function _0x1471c3(_0x174fe8){return window[_0x2eddde([0x61,0x74,0x6f,0x62])](_0x174fe8[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2eddde([0x2b]))[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2eddde([0x2f])));}function _0x69403a(_0x49dc1e){let _0x1d58ba=0x1505;function _0x3bbfb4(_0x4a3915){for(let _0x497a96=0x0;_0x497a96<_0x4a3915[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497a96++){const _0x32adbe=_0x4a3915[_0x2eddde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x497a96);_0x1d58ba=(_0x1d58ba<<0x5)+_0x1d58ba+_0x32adbe,_0x1d58ba&=_0x1d58ba;}}function _0x1770f7(_0x552a5c){Array[_0x2eddde([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x552a5c)?_0x552a5c[_0x2eddde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1770f7):_0x552a5c&&typeof _0x552a5c==_0x2eddde([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2eddde([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x552a5c)[_0x2eddde([0x73,0x6f,0x72,0x74])]()[_0x2eddde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c98cb,_0x4518ae])=>{_0x3bbfb4(_0x4c98cb),_0x1770f7(_0x4518ae);}):_0x3bbfb4(window[_0x2eddde([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x552a5c));}return _0x1770f7(_0x49dc1e),_0x1d58ba>>>0x0;}function _0x40ec3e(_0xae89bc){return _0xae89bc[_0x2eddde([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2eddde([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2eddde([0x30]));}function _0x3136e0(_0x1b0c0c){return _0x1b0c0c[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2eddde([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2eddde([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f168e(_0x3c9444){return _0x23d2af[_0x2eddde([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2eddde([0x68,0x61,0x73])](_0x3c9444);}function _0x324665(_0x5ebf7e){return _0x23d2af[_0x2eddde([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2eddde([0x67,0x65,0x74])](_0x5ebf7e);}function _0x5762a5(){}function _0x2eddde(_0x1e6c8b){return _0x1e6c8b['map'](_0x31b9fd=>String['fromCharCode'](_0x31b9fd))['join']('');}_0x14a146(await _0xe1ec05());}(this);}['createRevision'](_0x46772f){const _0x355f59=this['editor']['plugins']['get']('Users');return new I({'id':_0x46772f['id'],'name':_0x46772f['name'],'creator':_0x46772f['creatorId']?_0x355f59['getUser'](_0x46772f['creatorId']):null,'diffData':_0x46772f['diffData']||_0x46772f['data'],'authors':_0x46772f['authorsIds']['map'](_0x4f4b2c=>_0x355f59['getUser'](_0x4f4b2c)),'createdAt':new Date(_0x46772f['createdAt']),'attributes':_0x46772f['attributes'],'fromVersion':_0x46772f['fromVersion'],'toVersion':_0x46772f['toVersion']});}['addRevision'](_0x4d31d3,_0x360b77=0x0){this['_revisions']['add'](_0x4d31d3,_0x360b77);}['getRevision'](_0x13cb28){return this['_revisions']['get'](_0x13cb28);}['getRevisions'](_0x44a75a={'toJSON':!0x1}){const _0x351e89=Array['from'](this['_revisions']);return _0x351e89['reverse'](),_0x44a75a['toJSON']?_0x351e89['map'](_0x2d0649=>_0x2d0649['toJSON']()):_0x351e89;}['getIndex'](_0x5bfe0c){return this['_revisions']['getIndex'](_0x5bfe0c);}['getEarlierVisibleRevision'](_0x581d1d){const [,_0x49a5dc]=this['getRevisionsIterator'](_0x581d1d,{'direction':'earlier'});return _0x49a5dc;}['getLaterVisibleRevision'](_0x544c51){const [,_0x36f59b]=this['getRevisionsIterator'](_0x544c51,{'direction':'later'});return _0x36f59b;}['getRevisionsInDiff'](_0x81495f){const _0x270741=[];for(const _0x4dda66 of this['getRevisionsIterator'](_0x81495f['newRevisionId']))if(_0x270741['push'](_0x4dda66),_0x4dda66['id']===_0x81495f['oldRevisionId'])break;return _0x270741;}*['getRevisionsIterator'](_0xd90bd0,{direction:_0x4cb84b='earlier',filter:_0x1349be=()=>!0x0}={}){const _0xa90afd='earlier'===_0x4cb84b?0x1:-0x1;let _0x414d81=this['_revisions']['get'](_0xd90bd0),_0x3c201e=this['getIndex'](_0x414d81);for(yield _0x414d81;_0x414d81;){if(_0x3c201e+=_0xa90afd,_0x414d81=this['getRevision'](_0x3c201e),!_0x414d81)return;_0x1349be(_0x414d81)&&(yield _0x414d81);}}}class $ extends _0x4b6c22{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x45a9dc,'c'],[_0x241726,'a'],[_0x4328bf,'e'],[_0x15798c,'r'],[_0x5cd230,'u']]);['_typeCharToViewClass']=new Map([['c',_0x45a9dc],['a',_0x241726],['e',_0x4328bf],['r',_0x15798c],['u',_0x5cd230]]);async['loadRevisionData'](_0x577ed7,_0x843abe){if(_0x577ed7['diffData']||!_0x843abe)return;const _0x13057b=this['editor']['config']['get']('collaboration.channelId'),_0x111d35=await _0x843abe['getRevision']({'channelId':_0x13057b,'revisionId':_0x577ed7['id']});_0x577ed7['diffData']=_0x111d35['diffData'];}['getRevisionDocumentData'](_0x4627bc){const _0xfee4e6={};for(const _0x222684 in _0x4627bc['diffData']){if(_0x4627bc['diffData'][_0x222684]['attachChange']&&!_0x4627bc['diffData'][_0x222684]['attachChange']['isAttached'])continue;const _0x1f378d=this['_removeRevisionMarkers'](JSON['parse'](_0x4627bc['diffData'][_0x222684]['insertions'])),_0x3b3aa1=this['editor']['editing']['view']['document'],_0x20f2db=new _0xbc62d3(_0x3b3aa1,_0x1f378d['map'](_0xe56d03=>this['_getViewFromDiffObj'](_0xe56d03,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xfee4e6[_0x222684]=this['editor']['data']['processor']['toData'](_0x20f2db),this['editor']['data']['processor']['useFillerType']('default');}return _0xfee4e6;}['getRevisionRootsAttributes'](_0xd434e4){const _0x2fd0d7={};for(const _0x29d590 in _0xd434e4['diffData'])_0xd434e4['diffData'][_0x29d590]['attachChange']&&!_0xd434e4['diffData'][_0x29d590]['attachChange']['isAttached']||(_0x2fd0d7[_0x29d590]=_0xd434e4['diffData'][_0x29d590]['attributesAfter']||{});return _0x2fd0d7;}['_getTypeCharForViewElement'](_0x796f1c){return this['_viewClassToTypeChar']['get'](_0x796f1c['constructor']);}['_getViewFromDiffObj'](_0x335bc,_0x2d3845){const _0x52adf4=this['editor']['editing']['view']['document'];if('string'==typeof _0x335bc)return new _0x369968(_0x52adf4,_0x335bc);{let _0x29fac3,_0x1f4238;_0x1f4238='u'==_0x335bc['type']||'r'==_0x335bc['type']?[]:_0x335bc['children']['map'](_0x14bc9f=>this['_getViewFromDiffObj'](_0x14bc9f,_0x2d3845));const _0xa429bb=this['_typeCharToViewClass']['get'](_0x335bc['type'])||_0x607f5e,_0x1a9c36=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x29fac3=new _0xa429bb(_0x52adf4,_0x335bc['name'],_0x335bc['attributes'],_0x1f4238),'u'==_0x335bc['type']&&_0x335bc['children'][0x0]){const _0x454d3f=_0x335bc['children'][0x0];if(_0x29fac3['render']=function(_0x569c9f){const _0x63f6f9=_0x569c9f['createElement']('div');return _0x63f6f9['innerHTML']=_0x454d3f,_0x63f6f9['childNodes'][0x0];},_0x2d3845){const _0x129cba=new _0xbc62d3(_0x52adf4);_0x129cba['_appendChild'](_0x29fac3);const _0x4f3694=Array['from'](_0x1a9c36['viewChildrenToDom'](_0x129cba,{'bind':!0x1})),_0x2739b6=_0x1a9c36['domDocument']['createElement']('div');_0x2739b6['append'](..._0x4f3694),_0x29fac3=Array['from'](_0x1a9c36['domChildrenToView'](_0x2739b6))[0x0];}}else{if('r'==_0x335bc['type']&&_0x335bc['children'][0x0]){const _0x25579b=_0x335bc['children'][0x0];if(_0x29fac3['render']=function(_0x1722dc){_0x1722dc['innerHTML']=_0x25579b;},_0x2d3845){const _0x3695fe=new _0xbc62d3(_0x52adf4);_0x3695fe['_appendChild'](_0x29fac3);const _0x84ad3f=Array['from'](_0x1a9c36['viewChildrenToDom'](_0x3695fe,{'bind':!0x1})),_0x533ed0=_0x1a9c36['domDocument']['createElement']('div');_0x533ed0['append'](..._0x84ad3f);const _0x249253=Array['from'](_0x1a9c36['domChildrenToView'](_0x533ed0));_0x249253['length']>0x1?_0x29fac3['_appendChild'](_0x249253):_0x29fac3=_0x249253[0x0];}}}if(_0x335bc['customProperties']){for(const [_0x3a60de,_0x10446e]of _0x335bc['customProperties'])_0x29fac3['_setCustomProperty'](_0x3a60de,_0x10446e);}const _0x33da11=void 0x0===_0x335bc['fillerOffset']?null:_0x335bc['fillerOffset'];return null!==_0x33da11&&(_0x29fac3['getFillerOffset']=()=>_0x33da11),_0x29fac3;}}['_makeModelFromViewString'](_0x3037b0){const _0x41d994=JSON['parse'](_0x3037b0),_0x4ed14e=this['editor']['editing']['view']['document'],_0x2a86fe=new _0xbc62d3(_0x4ed14e,_0x41d994['map'](_0x143aec=>this['_getViewFromDiffObj'](_0x143aec,!0x0)));return this['editor']['data']['toModel'](_0x2a86fe);}['_removeRevisionMarkers'](_0x170031){return(_0x170031=_0x170031['filter'](_0x3941f9=>!_0x3941f9['name']||'revision-start'!==_0x3941f9['name']&&'revision-end'!==_0x3941f9['name']))['forEach'](_0x240e5f=>{'string'!=typeof _0x240e5f&&(_0x240e5f['children']=this['_removeRevisionMarkers'](_0x240e5f['children']),_0x240e5f['attributes']=_0x240e5f['attributes']['filter'](_0x3b6660=>!_0x3b6660[0x0]['startsWith']('data-revision-')));}),_0x170031;}}function R(_0x28cd14,_0x1ea205,_0x2c6d4b){const t=_0x28cd14['t'];switch(_0x1ea205){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'},_0x2c6d4b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c6d4b);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 _0x4b6c22{['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[_0x14b7c6,S,$,_0x24ed16];}constructor(_0x8e93ba){super(_0x8e93ba),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 _0x258d60=_0x2bd58b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x258d60},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 _0x2f474d=this['repository']['getRevision'](0x0),_0x315a11=_0x2f474d&&null===_0x2f474d['creator']?_0x2f474d:null;if(this['_continueCurrentRevision']=!!_0x315a11&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x43d089=this['_source']['getCurrentRevisionId'](),_0x4edcb0=this['repository']['getRevision'](_0x43d089);if(_0x4edcb0)this['_startingVersion']=_0x4edcb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x453340=this['_source']['history']['_operations']['find'](_0x146cc7=>!_0x146cc7['_isInit']),_0x1f04e1=_0x453340?_0x453340['baseVersion']:this['_source']['history']['version'];_0x2f474d?(_0x2f474d['toVersion']<_0x1f04e1&&_0x2f474d['_update']({'toVersion':_0x1f04e1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id'],this['_startingVersion']=_0x315a11['fromVersion']):(this['_startingVersion']=_0x2f474d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1f04e1,this['_continueCurrentRevision']=!0x1);}}else _0x315a11&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x315a11['toVersion'],this['editor']['model']['document']['history']['version']),_0x315a11['fromVersion']===_0x315a11['toVersion']?(0x0!==_0x315a11['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id'],this['_startingVersion']=_0x315a11['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',_0x57149d=>!_0x57149d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x532972=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd47934;for(const _0x4a6713 in _0x532972){const _0x25f5fe=_0x4a6713,_0x4583fb=_0x532972[_0x25f5fe];if('revisionHistoryLicenseKeyValid'==_0x4583fb||'revisionHistoryLicenseKeyInvalid'==_0x4583fb||'revisionHistoryLicenseKeyExpired'==_0x4583fb||'revisionHistoryLicenseKeyDomainLimit'==_0x4583fb||'revisionHistoryLicenseKeyNotAllowed'==_0x4583fb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4583fb||'revisionHistoryLicenseKeyTrialLimit'==_0x4583fb||'revisionHistoryLicenseKeyUsageLimit'==_0x4583fb){delete _0x532972[_0x25f5fe],_0xd47934=_0x4583fb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xd47934&&_0x532972['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xd47934&&_0x532972['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xd47934&&_0x532972['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xd47934&&_0x532972['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xd47934&&_0x532972['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xd47934&&_0x532972['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xd47934&&_0x532972['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe11c=this['repository']['getRevision'](0x0),_0x4f118e=await this['getRevisionDocumentData'](_0x2fe11c),_0x5e07f7=await this['getRevisionRootsAttributes'](_0x2fe11c);this['_replaceEditorDataWithRevisionData'](_0x4f118e,_0x5e07f7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x82a46e){this['_source']=_0x82a46e;}async['update'](){const _0x1b0fdd=await this['_source']['getLatestVersion']();if(_0x1b0fdd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ba7a4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b0fdd});_0x2ba7a4['authors']=_0x2ba7a4['authorsIds']['map'](_0x3bf4e5=>this['editor']['plugins']['get']('Users')['getUser'](_0x3bf4e5)),this['currentRevision']['_update'](_0x2ba7a4);}}async['saveRevision'](_0x3f36e7={},_0x2571f1=null){const _0x45865a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2571f1>this['currentRevision']['toVersion']&&(_0x2571f1=null),null===_0x2571f1&&(_0x2571f1=await this['_source']['getLatestVersion']());const _0x4baa69=this['_getFromVersion'](_0x2571f1),_0x198770=this['buildRevisionData']({'from':_0x4baa69,'to':_0x2571f1});if(this['currentRevision']['toVersion']<_0x2571f1){const _0x18e2fc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2571f1,'to':_0x2571f1});_0x18e2fc['authors']=[],_0x18e2fc['authorsIds']=[],_0x18e2fc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x18e2fc,!0x0),delete _0x18e2fc['authors'],_0x45865a['push'](_0x18e2fc);}_0x3f36e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f36e7['name']=_0x3f36e7['name']||null,_0x3f36e7['id']=_0x3f36e7['id']||_0x2bd58b(),_0x3f36e7={..._0x3f36e7,..._0x198770};const _0x39d47d=this['addRevisionData'](_0x3f36e7);_0x45865a['push'](_0x3f36e7);const _0x234be2=this['repository']['getIndex'](_0x39d47d);if(0x0!==_0x234be2){const _0x297ba1=this['repository']['getRevision'](_0x234be2-0x1);if(_0x297ba1['fromVersion']!==_0x2571f1){const _0x569858=this['_revisionDataBuilder']['getData'](_0x2571f1,_0x297ba1['toVersion']),_0x2b8aa8={'id':_0x297ba1['id'],'diffData':_0x569858['diffData'],'authorsIds':_0x569858['authorsIds'],'authors':_0x569858['authorsIds']['map'](_0x9a501a=>this['editor']['plugins']['get']('Users')['getUser'](_0x9a501a)),'fromVersion':_0x2571f1};_0x297ba1===this['currentRevision']&&(_0x2b8aa8['createdAt']=new Date(_0x3f36e7['createdAt']['getTime']()+0xa)),_0x297ba1['_update'](_0x2b8aa8,!0x0),delete _0x2b8aa8['authors'],_0x45865a['push'](_0x2b8aa8);}}if(this['adapter']){for(const _0x597cef of _0x45865a)this['_bufferUpdate'](_0x597cef['id'],_0x597cef,!0x0);this['sendBufferedUpdates']();}return _0x39d47d;}['addRevisionData'](_0x1b4b7f){const _0x9654ba=this['repository']['createRevision'](_0x1b4b7f);return this['adapter']&&_0x9654ba['on']('_update',(_0x5b48c2,_0x14d2a8,_0x5d9a03)=>{_0x5d9a03||(this['_bufferUpdate'](_0x14d2a8['id'],_0x14d2a8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9654ba,this['_findInsertionIndex'](_0x9654ba)),_0x9654ba;}async['getRevisionDocumentData'](_0x3c621b){return await this['_utils']['loadRevisionData'](_0x3c621b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3c621b);}async['getRevisionRootsAttributes'](_0x929b1c){return await this['_utils']['loadRevisionData'](_0x929b1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x929b1c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xe79bba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x130297=0x0;_0x130297<_0xe79bba['length'];_0x130297++){const _0x198fcf=_0xe79bba[_0x130297];let _0x4dac43=!0x1;for(const _0x1ebceb of Object['keys'](_0x198fcf))void 0x0===_0x198fcf[_0x1ebceb]?delete _0x198fcf[_0x1ebceb]:'id'!==_0x1ebceb&&(_0x4dac43=!0x0);_0x4dac43||(_0xe79bba[_0x130297]=null);}if(_0xe79bba=_0xe79bba['filter'](_0x33a427=>null!==_0x33a427),!_0xe79bba['length'])return;for(let _0x4b0993=0x0;_0x4b0993<_0xe79bba['length'];_0x4b0993++){const _0x562f4f=_0xe79bba[_0x4b0993];void 0x0!==_0x562f4f['fromVersion']&&void 0x0===_0x562f4f['toVersion']&&(_0x562f4f['toVersion']=this['repository']['getRevision'](_0x562f4f['id'])['toVersion']),void 0x0!==_0x562f4f['toVersion']&&void 0x0===_0x562f4f['fromVersion']&&(_0x562f4f['fromVersion']=this['repository']['getRevision'](_0x562f4f['id'])['fromVersion']);}const _0x402e5f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xe79bba,_0x402e5f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xb27c3c=>{if(_0xb27c3c){for(const _0x46f400 of _0xb27c3c)this['setRevisionData']({'id':_0x46f400['id'],'createdAt':_0x46f400['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x280f15=null,from:_0x516869=null,to:_0x482c79=null}){_0x516869=null!==_0x516869?_0x516869:_0x280f15['fromVersion'],_0x482c79=null!==_0x482c79?_0x482c79:_0x280f15['toVersion'];const _0x23365f=this['_revisionDataBuilder']['getData'](_0x516869,_0x482c79),_0x55002f={'diffData':_0x23365f['diffData'],'authorsIds':_0x23365f['authorsIds'],'fromVersion':_0x516869,'toVersion':_0x482c79};if(!_0x280f15||_0x482c79!==_0x280f15['toVersion']){const _0x5b917f=_0x482c79-0x1,_0x2ff85d=this['_source']['history']['getOperation'](_0x5b917f);_0x55002f['createdAt']=_0x2ff85d&&_0x2ff85d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x516869===this['_loadedStateData']['fromVersion']){for(const _0x23bbad of this['_loadedStateData']['authors'])_0x55002f['authorsIds']['includes'](_0x23bbad['id'])||_0x55002f['authorsIds']['push'](_0x23bbad['id']);}return _0x55002f;}['_bufferUpdate'](_0x22ceff,_0x37f6bd,_0x22ade6){if(this['_bufferedUpdates']['has'](_0x22ceff)){const _0x417a7b=this['_bufferedUpdates']['get'](_0x22ceff);_0x37f6bd=_0x22ade6?{..._0x417a7b,..._0x37f6bd}:{..._0x37f6bd,..._0x417a7b};}this['_bufferedUpdates']['set'](_0x22ceff,_0x37f6bd);}['setRevisionData'](_0xd3deb3){const _0x39ee48=this['repository']['getRevision'](_0xd3deb3['id']);if(_0xd3deb3['createdAt']&&(_0xd3deb3['createdAt']=new Date(_0xd3deb3['createdAt'])),_0xd3deb3['authorsIds']){const _0x1e4d98=this['editor']['plugins']['get']('Users');_0xd3deb3['authors']=_0xd3deb3['authorsIds']['map'](_0x176258=>_0x1e4d98['getUser'](_0x176258));}_0x39ee48['_update'](_0xd3deb3,!0x0);}['_createInitialRevision'](_0x21cb56){const _0x26aaf9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x26aaf9)this['_initialRevisionId']=_0x26aaf9['id'];else{const _0x1ea6e2=!this['editor']['model']['document']['roots']['find'](_0x26d698=>this['editor']['model']['hasContent'](_0x26d698)),_0x3b067c=this['editor']['plugins']['get']('Users')['me']['id'],_0x196bdb=R(this['editor']['locale'],_0x1ea6e2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x21cb56,'to':_0x21cb56,'id':this['_initialRevisionId'],'name':_0x196bdb,'creatorId':_0x3b067c});}}['_createCurrentRevision'](_0x2a9452){const _0x5b98c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5b98c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2a9452,'to':_0x2a9452,'id':_0x5b98c2,'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'](_0x599b7d,_0xa195f9){let _0x9c5792=this['editor']['config']['get']('initialData'),_0x45e335=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x9c5792){_0x9c5792={};for(const _0x3ccb04 of this['editor']['model']['document']['getRootNames']())_0x9c5792[_0x3ccb04]='';}if('string'==typeof _0x9c5792&&(_0x9c5792={'main':_0x9c5792}),void 0x0===_0x45e335){_0x45e335={};for(const _0x405fbd of this['editor']['model']['document']['getRootNames']())_0x45e335[_0x405fbd]={};}let _0x3b18f6=!0x1;const _0x390bc2=Object['keys'](_0x9c5792),_0x30de56=Object['keys'](_0x599b7d);for(const _0x28b468 of _0x390bc2){if(_0x9c5792[_0x28b468]!==_0x599b7d[_0x28b468]&&''!==_0x9c5792[_0x28b468]['trim']()){_0x3b18f6=!0x0;break;}if(!_0x5c2b50(_0x45e335[_0x28b468],_0xa195f9[_0x28b468])&&Object['keys'](_0x45e335[_0x28b468])['length']>0x0){_0x3b18f6=!0x0;break;}}_0x3b18f6||(_0x3b18f6=_0x30de56['some'](_0x1e6cf6=>!this['editor']['model']['document']['getRoot'](_0x1e6cf6))),_0x3b18f6&&_0x392114('editor-initial-data-replaced-with-revision-data',{'editorData':_0x9c5792,'editorRootsAttributes':_0x45e335,'revisionData':_0x599b7d,'revisionRootsAttributes':_0xa195f9}),this['editor']['config']['set']('initialData',_0x599b7d),this['editor']['config']['set']('rootsAttributes',_0xa195f9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1ccaf4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1ccaf4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2638be){const _0x3cf21f=this['repository']['getRevisions']();_0x3cf21f['reverse']();let _0x9b7670=0x0;for(;_0x9b7670<_0x3cf21f['length'];){const _0x187192=_0x3cf21f[_0x9b7670];if(_0x187192===this['currentRevision']){_0x9b7670++;continue;}if(_0x187192['id']===this['_initialRevisionId'])break;const _0x434519=_0x2638be['toVersion']-_0x187192['toVersion']||_0x2638be['fromVersion']-_0x187192['fromVersion'];if(_0x434519>0x0)break;if(_0x434519<0x0)_0x9b7670++;else{if(!_0x2638be['creator']&&_0x187192['creator'])break;if(_0x187192['creator']||!_0x2638be['creator']){if(_0x2638be['createdAt']>_0x187192['createdAt'])break;_0x9b7670++;}else _0x9b7670++;}}return _0x9b7670;}['_getFromVersion'](_0x21e008){const _0x101897=this['repository']['getRevisions']();_0x101897['reverse'](),_0x101897['shift']();const _0x347947=_0x101897['find'](_0x19986c=>_0x19986c['toVersion']<=_0x21e008)['toVersion'];return _0x347947<this['_startingVersion']?this['_startingVersion']:_0x347947;}['_makeRevision']({name:_0x1ad37f,from:_0x106871,to:_0x1f08d3,creatorId:_0x20b87c,id:_0xb30ea5}){const _0x54c951=this['buildRevisionData']({'from':_0x106871,'to':_0x1f08d3});_0x54c951['name']=_0x1ad37f,_0x54c951['creatorId']=_0x20b87c,_0x54c951['id']=_0xb30ea5;const _0x4e49d5=this['addRevisionData'](_0x54c951);return this['adapter']&&this['_bufferUpdate'](_0x54c951['id'],_0x54c951,!0x0),_0x4e49d5;}['_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(_0x515b01){this['editor']=_0x515b01,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'](_0x32d60f){this['source']=_0x32d60f;const _0x5dffd6=new Map(),_0x28cf7f=new Map(),_0x52f6ef=this['editor']['model']['document']['roots']['map'](_0x4b8311=>_0x4b8311['rootName']);for(const _0x335dc4 of _0x52f6ef){const _0x184c22=this['editor']['model']['document']['getRoot'](_0x335dc4),_0x3de92f=x(_0x184c22);_0x5dffd6['set'](_0x335dc4,_0x3de92f),_0x28cf7f['set'](_0x335dc4,Object['fromEntries'](_0x184c22['getAttributes']()));}const _0x119b64=Array['from'](this['editor']['model']['markers'])['map'](_0x18abd0=>[_0x18abd0['name'],_0x18abd0['getRange']()]),_0xb7f659=this['source']['version'];this['_saveMetaData'](_0xb7f659,_0x5dffd6,_0x119b64,_0x28cf7f),this['_startingRevisionId']=this['_revisionId'];const _0x12e7d0=new Map(),_0x1b5cbd=new Map();for(const _0x4eada5 of _0x52f6ef){const _0xc26098=N(_0x4eada5);_0x12e7d0['set'](_0x4eada5,_0xc26098),_0x1b5cbd['set'](_0x4eada5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12e7d0,[],_0x1b5cbd);}['getData'](_0xb006d8,_0x3ccaf6){if(this['_lastFrom']===_0xb006d8&&this['_lastTo']<=_0x3ccaf6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3ccaf6,!0x0);else{if(!this['_savedMetaData']['has'](_0xb006d8)){const _0x4ddcb0=this['_getPreviousFrom'](_0xb006d8);this['_calculateMetaData'](_0x4ddcb0,_0xb006d8,!0x1);}this['_calculateMetaData'](_0xb006d8,_0x3ccaf6,!0x0);}return this['_lastFrom']=_0xb006d8,this['_lastTo']=_0x3ccaf6,this['_getState']();}['loadState'](_0x52847a){const _0x2ef962=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x52847a['fromVersion'],this['_lastTo']=_0x52847a['toVersion'];for(const _0x32cbc3 in _0x52847a['diffData']){const _0x44c69b=_0x52847a['diffData'][_0x32cbc3]['attachChange'],_0x335798=_0x20f484(_0x52847a['diffData'][_0x32cbc3]['attributesBefore'])||{},_0x489f50=_0x2ef962['_makeModelFromViewString'](_0x52847a['diffData'][_0x32cbc3]['deletions']);_0x489f50['rootName']=_0x32cbc3,_0x489f50['_isAttached']=!_0x44c69b||!_0x44c69b['isAttached'],_0x489f50['isAttached']=()=>_0x489f50['_isAttached'],this['_baseRoots']['set'](_0x32cbc3,_0x489f50),this['_baseRootsAttributes']['set'](_0x32cbc3,_0x335798),_0x44c69b&&this['_touchedRoots']['set'](_0x32cbc3,_0x44c69b);const _0x88412a=this['_makeIdsRoot'](_0x489f50);this['_baseIdsRoots']['set'](_0x32cbc3,_0x88412a);for(const [_0x3b49c9,_0x903b76]of _0x489f50['markers']){if(!_0x3b49c9['startsWith']('revision:'))continue;const _0x1a4d68=_0x3b49c9['split'](':')[0x2];for(const _0x4be26b of _0x903b76['getWalker']({'singleCharacters':!0x0})){const _0x11ba9c=this['_getVidAttributeName'](_0x4be26b),_0x404cdc='elementEnd'==_0x4be26b['type']?_0x4be26b['previousPosition']['path']['slice'](0x0,-0x1):_0x4be26b['previousPosition']['path'],_0x3f6ce0=_0x88412a['getNodeByPath'](_0x404cdc)['getAttribute'](_0x11ba9c);this['_touched']['set'](_0x3f6ce0,{'userId':_0x1a4d68});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21765f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x7690bd=>!this['_touched']['has'](_0x7690bd));let _0x57ec02=0x0;const _0x14d84e=new Map();for(const _0x3ae535 in _0x52847a['diffData']){const _0x4db8ab=_0x52847a['diffData'][_0x3ae535]['attachChange'],_0x30d3fe=_0x20f484(_0x52847a['diffData'][_0x3ae535]['attributesAfter'])||{},_0x163261=_0x2ef962['_makeModelFromViewString'](_0x52847a['diffData'][_0x3ae535]['insertions']);_0x163261['rootName']=_0x3ae535,_0x163261['_isAttached']=!_0x4db8ab||_0x4db8ab['isAttached'],_0x163261['isAttached']=()=>_0x163261['_isAttached'],this['_diffRoots']['set'](_0x3ae535,_0x163261),this['_diffRootsAttributes']['set'](_0x3ae535,_0x30d3fe);const _0x529cee=this['_makeIdsRoot'](_0x163261,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3ae535,_0x529cee),_0x14d84e['set'](_0x3ae535,_0x163261['isAttached']()?_0x30d3fe:{});for(const [_0x389edc,_0x310dc5]of _0x163261['markers']){if(!_0x389edc['startsWith']('revision:'))continue;const _0x404633=_0x389edc['split'](':')[0x2];for(const _0xde2a2b of _0x310dc5['getWalker']({'singleCharacters':!0x0})){const _0x182c0f=this['_getVidAttributeName'](_0xde2a2b),_0x2705af=this['_revisionId']++,_0x5d2b91='elementEnd'==_0xde2a2b['type']?_0xde2a2b['previousPosition']['path']['slice'](0x0,-0x1):_0xde2a2b['previousPosition']['path'];_0x529cee['getNodeByPath'](_0x5d2b91)['_setAttribute'](_0x182c0f,_0x2705af),this['_touched']['set'](_0x2705af,{'userId':_0x404633});}}for(const _0x159803 of this['editor']['model']['createRangeIn'](_0x163261)['getWalker']({'singleCharacters':!0x0})){const _0x1f57b0=this['_getVidAttributeName'](_0x159803),_0x3c4e95='elementEnd'==_0x159803['type']?_0x159803['previousPosition']['path']['slice'](0x0,-0x1):_0x159803['previousPosition']['path'],_0x5464e4=_0x529cee['getNodeByPath'](_0x3c4e95);_0x5464e4['getAttribute'](_0x1f57b0)>0x0||_0x5464e4['_setAttribute'](_0x1f57b0,_0x21765f[_0x57ec02++]);}for(const [_0x5d3371,_0x13fada]of _0x163261['markers'])_0x5d3371['startsWith']('revision:')||this['_markers']['set'](_0x5d3371,_0x13fada);}const _0xe97ae2=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0xe97ae2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xe97ae2,0x1));const _0x1b4267=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1b4267),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b4267,0x1));const _0x22afba=Array['from'](this['_diffRoots'])['map'](([_0x359d85,_0xe31131])=>[_0x359d85,x(_0xe31131)]);this['_saveMetaData'](this['_lastTo'],_0x22afba,this['_markers'],_0x14d84e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d5ed5,_0x27e746,_0x48da94,_0x17b22d){const _0xe6a40c=new Map(_0x27e746),_0x5ad9d6=new Map(_0x20f484(_0x17b22d)),_0x36a0e0=new Map();for(const [_0x240b70,_0x5ae358]of _0x48da94)_0x36a0e0['set'](_0x240b70,{'start':_0x5ae358['start']['clone'](),'end':_0x5ae358['end']['clone'](),'rootName':_0x5ae358['root']['rootName']});this['_savedMetaData']['set'](_0x4d5ed5,{'roots':_0xe6a40c,'markers':_0x36a0e0,'rootsAttributes':_0x5ad9d6});}['_removeMetaData'](_0x3b0acf){this['_savedMetaData']['delete'](_0x3b0acf);}['_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'](_0x1bd566,_0x145fde=null){let _0x4dd450=null;_0x1bd566['is']('documentFragment')||(_0x4dd450=new _0x24e097(_0x1bd566['name'],{'vid_start':null===_0x145fde?this['_revisionId']++:_0x145fde++}));const _0x3038b4=[];for(const _0x90044e of _0x1bd566['getChildren']())if(_0x90044e['is']('element')){_0x3038b4['push'](this['_makeIdsRoot'](_0x90044e,_0x145fde));const _0x387970=_0x3038b4[_0x3038b4['length']-0x1];null!==_0x145fde&&(_0x145fde=_0x387970['is']('element','$text')?_0x387970['getAttribute']('vid')+0x1:_0x387970['getAttribute']('vid_end')+0x1);}else{for(let _0x5deabc=0x0;_0x5deabc<_0x90044e['offsetSize'];_0x5deabc++)_0x3038b4['push'](new _0x24e097('$text',{'vid':null===_0x145fde?this['_revisionId']++:_0x145fde++}));}if(_0x1bd566['is']('documentFragment')){const _0x48c650=N(_0x1bd566['rootName']);return _0x48c650['_insertChild'](0x0,_0x3038b4),_0x48c650;}return _0x4dd450['_setAttribute']('vid_end',null===_0x145fde?this['_revisionId']++:_0x145fde++),_0x4dd450['_insertChild'](0x0,_0x3038b4),_0x4dd450;}['_calculateMetaData'](_0x7a1237,_0x4d0044,_0xb94dc2){this['_reset']();const {roots:_0x274fcc,markers:_0x2fe7eb,rootsAttributes:_0x475aeb}=this['_savedMetaData']['get'](_0x7a1237);this['_baseRoots']=new Map(_0x274fcc),this['_baseRootsAttributes']=new Map(_0x20f484(_0x475aeb));for(const [_0x38791b,_0x390bce]of this['_baseRoots'])if('$graveyard'!==_0x38791b&&(this['_diffRoots']['set'](_0x38791b,x(_0x390bce)),this['_diffRootsAttributes']=new Map(_0x20f484(_0x475aeb)),_0xb94dc2)){const _0x4d5e72=this['_revisionId'];this['_idsRoots']['set'](_0x38791b,this['_makeIdsRoot'](_0x390bce)),this['_baseIdsRoots']['set'](_0x38791b,this['_makeIdsRoot'](_0x390bce,_0x4d5e72));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0xb94dc2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x383290,_0x47e106]of _0x2fe7eb){const _0x1232e2=this['_baseRoots']['get'](_0x47e106['rootName']),_0x51d937=this['_diffRoots']['get'](_0x47e106['rootName']),_0x50a0a3=new _0x47f923(this['_fixPosition'](_0x47e106['start'],_0x1232e2),this['_fixPosition'](_0x47e106['end'],_0x1232e2)),_0x373bad=this['_fixRange'](_0x50a0a3,_0x51d937);_0x1232e2['markers']['set'](_0x383290,_0x50a0a3),this['_markers']['set'](_0x383290,_0x373bad);}this['_applyOperations'](_0x7a1237,_0x4d0044,_0xb94dc2);}['_applyOperations'](_0x5f5d9e,_0x3582f0,_0x16eeff){for(const _0x3a0b24 of this['source']['getOperations'](_0x5f5d9e,_0x3582f0))this['_handleOperation'](_0x3a0b24,_0x16eeff);for(const _0x1fd1e3 of this['_diffRoots']['values']())_0x1fd1e3['markers']['clear']();for(const [_0x55ece1,_0x513718]of this['_markers']){this['_diffRoots']['get'](_0x513718['root']['rootName'])['markers']['set'](_0x55ece1,_0x513718['clone']());}const _0x40ff08=new Map(),_0x519510=new Map();for(const [_0x31a493,_0xe975d9]of this['_diffRoots'])_0x40ff08['set'](_0x31a493,x(_0xe975d9)),_0x519510['set'](_0x31a493,this['_diffRootsAttributes']['get'](_0x31a493));this['_saveMetaData'](_0x3582f0,_0x40ff08,this['_markers'],_0x519510);}['_getPreviousFrom'](_0x46716b){const _0x992610=Array['from'](this['_savedMetaData']['keys']());_0x992610['sort']((_0x575ee7,_0x330b2c)=>_0x575ee7-_0x330b2c),_0x992610['reverse']();for(const _0x1b422d of _0x992610)if(_0x1b422d<_0x46716b)return _0x1b422d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x26fcbd,_0xe67091){const _0x3d7770=Array['from'](_0xe67091['markers'])['map'](([_0x1d6932,_0x44552f])=>[_0x1d6932,this['_fixRange'](_0x44552f,_0x26fcbd)]);_0x26fcbd['markers']=new Map(_0x3d7770);}['_transformMarkers'](_0x944103){for(const _0x352dde of this['_markers']['values']()){const _0x24bbde=_0x352dde['getTransformedByOperation'](_0x944103),_0x176bdc=_0x47f923['_createFromRanges'](_0x24bbde);_0x352dde['start']=_0x176bdc['start'],_0x352dde['end']=_0x176bdc['end'];}}['_handleOperation'](_0x597630,_0x477ee3){if('addRoot'!=_0x597630['type']&&'detachRoot'!=_0x597630['type']){if('insert'==_0x597630['type']){const _0x2a13b9=_0x597630['position']['root']['rootName'];this['_diffRoots']['has'](_0x2a13b9)||(this['_diffRoots']['set'](_0x2a13b9,N(_0x2a13b9,!0x0)),this['_diffRootsAttributes']['set'](_0x2a13b9,{}),_0x477ee3&&this['_idsRoots']['set'](_0x2a13b9,N(_0x2a13b9,!0x0)));}else{if('addRootAttribute'==_0x597630['type']||'removeRootAttribute'==_0x597630['type']||'changeRootAttribute'==_0x597630['type'])return void this['_handleRootAttributeOperation'](_0x597630);'marker'==_0x597630['type']&&this['_handleMarkerOperation'](_0x597630);}if('marker'!==_0x597630['type']){const _0x10a477=this['_cloneOperation'](_0x597630,this['_diffRoots']);_0x10a477['_execute'](),this['_transformMarkers'](_0x10a477);}if(_0x477ee3)switch(_0x597630['type']){case'insert':this['_handleInsertOperation'](_0x597630);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x597630);break;case'merge':this['_handleMergeOperation'](_0x597630);break;case'split':this['_handleSplitOperation'](_0x597630);}}else this['_handleRootOperation'](_0x597630,_0x477ee3);}['_cloneOperation'](_0x2d9b1a,_0x4b1cd8){const _0x5f5b1e=_0x2d9b1a['clone']();return _0x5f5b1e['_authorId']=_0x2d9b1a['_authorId'],this['_fixOperation'](_0x5f5b1e,_0x4b1cd8),_0x5f5b1e;}['_getBaseVids'](_0x17efcc){return _0x17efcc['map'](_0x52d18e=>{const _0xfb7946=this['_getVidAttributeName'](_0x52d18e);return Number(_0x52d18e['item']['getAttribute'](_0xfb7946));});}['_generateTape'](_0x53bf0c,_0x10f63d){if(_0x53bf0c['is']('element','$text'))_0x10f63d['push']({'item':_0x53bf0c,'type':'text'});else{_0x53bf0c['is']('element')&&_0x10f63d['push']({'item':_0x53bf0c,'type':'elementStart'});for(const _0x14a6d5 of _0x53bf0c['getChildren']())this['_generateTape'](_0x14a6d5,_0x10f63d);_0x53bf0c['is']('element')&&_0x10f63d['push']({'item':_0x53bf0c,'type':'elementEnd'});}return _0x10f63d;}['_getState'](){const _0x2cca19=new Map(this['_touched']),_0x1ffb22=new Map(_0x2cca19),_0x84af8c=new Map(),_0x2b2eba={'insertions':{},'deletions':{}},_0x5369ce={'insertions':{},'deletions':{}},_0x56da32=new Map(),_0x256335=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x256335['delete']('$graveyard');for(const _0x4c1d9b of _0x256335){const _0x3e949a=this['_diffRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1),_0x4a6d45=this['_baseRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1);_0x3e949a['isAttached']()||_0x4a6d45['isAttached']()?(_0x2b2eba['insertions'][_0x4c1d9b]=x(_0x3e949a),_0x2b2eba['deletions'][_0x4c1d9b]=x(_0x4a6d45),this['_copyMarkers'](_0x2b2eba['deletions'][_0x4c1d9b],_0x4a6d45),this['_copyMarkers'](_0x2b2eba['insertions'][_0x4c1d9b],_0x3e949a),_0x5369ce['insertions'][_0x4c1d9b]=this['_generateTape'](this['_idsRoots']['get'](_0x4c1d9b),[]),_0x5369ce['deletions'][_0x4c1d9b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1),[])):_0x256335['delete'](_0x4c1d9b);}for(const _0x4cb3c5 of _0x256335){const _0x29457e=_0x5369ce['insertions'][_0x4cb3c5];for(const _0x40f64f of _0x29457e){const _0x431741=this['_getVidAttributeName'](_0x40f64f),_0x358fa1=_0x40f64f['item']['getAttribute'](_0x431741);_0x1ffb22['delete'](_0x358fa1),_0x358fa1>=this['_startingRevisionId']&&_0x84af8c['set'](_0x358fa1,_0x2cca19['get'](_0x358fa1));}}for(const _0x33c8ce of _0x256335){const _0x3bcd92=_0x5369ce['insertions'][_0x33c8ce],_0x359355=this['_getBaseVids'](_0x5369ce['deletions'][_0x33c8ce]);let _0x2b4d7c=0x0;for(const _0x8a7634 of _0x3bcd92){const _0x237c00=this['_getVidAttributeName'](_0x8a7634),_0x275f2e=_0x8a7634['item']['getAttribute'](_0x237c00);if(!_0x84af8c['has'](_0x275f2e)&&!_0x56da32['has'](_0x275f2e)){if(_0x1ffb22['has'](_0x275f2e))_0x2b4d7c++;else{if(_0x275f2e!=_0x359355[_0x2b4d7c]){const _0x4d6f28=_0x2cca19['get'](_0x275f2e)||_0x2cca19['get'](_0x359355[_0x2b4d7c]);for(;_0x275f2e!=_0x359355[_0x2b4d7c];)_0x1ffb22['has'](_0x359355[_0x2b4d7c])||(_0x56da32['set'](_0x359355[_0x2b4d7c],_0x4d6f28),_0x2cca19['set'](_0x359355[_0x2b4d7c],_0x4d6f28)),_0x2b4d7c++;}_0x2b4d7c++;}}}}for(const _0x94bed7 of _0x256335){const _0x1bc43a=_0x5369ce['insertions'][_0x94bed7];for(const _0x4adf6e of _0x1bc43a){const _0x521e43=this['_getVidAttributeName'](_0x4adf6e),_0x3c806=_0x4adf6e['item']['getAttribute'](_0x521e43);if(_0x56da32['has'](_0x3c806)){const _0x2fc6db=_0x56da32['get'](_0x3c806);_0x1ffb22['has'](_0x3c806)||_0x1ffb22['set'](_0x3c806,{..._0x2fc6db}),_0x84af8c['set'](_0x3c806,{..._0x2fc6db});}}}for(const _0x1fc26a of _0x1ffb22['keys']())_0x1fc26a>=this['_startingRevisionId']&&_0x1ffb22['delete'](_0x1fc26a);const _0x421e97=new Map();for(const _0x413076 of _0x256335){let _0x514d5d=_0x5369ce['insertions'][_0x413076];for(const _0x5cd8dd of _0x514d5d)if(_0x5cd8dd['item']['is']('element','tableCell')){const _0x2cf708=this['_getVidAttributeName'](_0x5cd8dd),_0x41d7ee=_0x5cd8dd['item']['getAttribute'](_0x2cf708);if(_0x84af8c['has'](_0x41d7ee)){const _0x2b0a87=_0x5cd8dd['item']['parent']['parent']['getAttribute']('vid_start'),_0x1248b1=_0x421e97['get'](_0x2b0a87)||new Set();_0x1248b1['add'](_0x84af8c['get'](_0x41d7ee)['userId']),_0x421e97['set'](_0x2b0a87,_0x1248b1);}}_0x514d5d=_0x5369ce['deletions'][_0x413076];for(const _0x314802 of _0x514d5d)if(_0x314802['item']['is']('element','tableCell')){const _0x5d2b8c=this['_getVidAttributeName'](_0x314802),_0x582910=_0x314802['item']['getAttribute'](_0x5d2b8c);if(_0x1ffb22['has'](_0x582910)){const _0xff64d3=_0x314802['item']['parent']['parent']['getAttribute']('vid_start'),_0x224bdd=_0x421e97['get'](_0xff64d3)||new Set();_0x224bdd['add'](_0x1ffb22['get'](_0x582910)['userId']),_0x421e97['set'](_0xff64d3,_0x224bdd);}}for(const _0x20f602 of _0x421e97['keys']())(_0x84af8c['has'](_0x20f602)||_0x1ffb22['has'](_0x20f602))&&_0x421e97['delete'](_0x20f602);}for(const _0x4d8387 of _0x256335){const _0x2d3490=_0x5369ce['insertions'][_0x4d8387];let _0x2bd70d=null,_0x2fef05=null;for(const _0x5209e7 of _0x2d3490){const _0x336d4b=this['_getVidAttributeName'](_0x5209e7),_0x3aea95=_0x5209e7['item']['getAttribute'](_0x336d4b),_0x3f41f7=_0x421e97['get'](_0x3aea95);_0x3f41f7&&'elementStart'==_0x5209e7['type']&&(_0x2bd70d=Array['from'](_0x3f41f7)[0x0],_0x2fef05=_0x5209e7['item']['getAttribute']('vid_end')),_0x2bd70d&&(_0x1ffb22['set'](_0x3aea95,{'userId':_0x2bd70d}),_0x84af8c['set'](_0x3aea95,{'userId':_0x2bd70d})),_0x3aea95==_0x2fef05&&(_0x2bd70d=null,_0x2fef05=null);}}const _0x36a72a={},_0x12dfd7=new Set();for(const _0x296bf6 of _0x256335){const _0x3b5f2e=_0x2b2eba['deletions'][_0x296bf6],_0x4d91c6=_0x2b2eba['insertions'][_0x296bf6];for(const {userId:_0x5cf8fc}of this['_touchedMarkers']['values']())null!==_0x5cf8fc&&_0x12dfd7['add'](_0x5cf8fc);for(const {userId:_0x35f6d9}of this['_touchedRoots']['values']())null!==_0x35f6d9&&_0x12dfd7['add'](_0x35f6d9);this['_markChanges'](_0x4d91c6,_0x5369ce['insertions'][_0x296bf6],_0x84af8c,'insertion',_0x12dfd7),this['_markChanges'](_0x3b5f2e,_0x5369ce['deletions'][_0x296bf6],_0x1ffb22,'deletion',_0x12dfd7),_0x36a72a[_0x296bf6]={'insertions':this['_prepareViewToSave'](_0x4d91c6),'deletions':this['_prepareViewToSave'](_0x3b5f2e),'attachChange':this['_touchedRoots']['get'](_0x296bf6)||null,'attributesBefore':_0x20f484(this['_baseRootsAttributes']['get'](_0x296bf6))||{},'attributesAfter':_0x20f484(this['_diffRootsAttributes']['get'](_0x296bf6))};}return{'diffData':_0x36a72a,'authorsIds':Array['from'](_0x12dfd7)};}['_processRootBeforeSave'](_0x1af8c0){for(const [,_0x4198b8]of _0x1af8c0['markers']){const _0x4b05f2=_0x4198b8['start']['getAncestors']()['filter'](_0x4ccf56=>'tableCell'==_0x4ccf56['name']);for(const _0x338d62 of _0x4b05f2)0x1==_0x338d62['childCount']&&_0x338d62['getChild'](0x0)['is']('element','paragraph')&&_0x338d62['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x47a10b){this['_processRootBeforeSave'](_0x47a10b);const _0xf519b2=this['editor']['data']['toView'](_0x47a10b,{}),_0x32a86f=Array['from'](_0xf519b2['getChildren']())['map'](_0x4021fb=>this['_getViewJson'](_0x4021fb));return JSON['stringify'](_0x32a86f);}['_getViewJson'](_0x1f2f92){if(_0x1f2f92['is']('$text'))return _0x1f2f92['data'];{const _0x1e0bf4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fa11b=_0x1f2f92,_0x4067e9=this['editor']['data']['htmlProcessor']['domConverter'],_0xde8907={'type':_0x1e0bf4['_getTypeCharForViewElement'](_0x4fa11b),'name':_0x4fa11b['name'],'attributes':Array['from'](_0x4fa11b['getAttributes']()),'children':Array['from'](_0x4fa11b['getChildren']())['map'](_0x468152=>this['_getViewJson'](_0x468152))};if(_0x1f2f92['is']('uiElement')&&'$comment'!=_0x1f2f92['name']){const _0x178ea4=_0x1f2f92['render'](_0x4067e9['domDocument'],_0x4067e9);_0xde8907['children']['push'](_0x178ea4['outerHTML']);}else{if(_0x1f2f92['is']('rawElement')){const _0x4bdef5=_0x4067e9['domDocument']['createElement'](_0x4fa11b['name']);_0x1f2f92['render'](_0x4bdef5,_0x4067e9),_0xde8907['children']['push'](_0x4bdef5['innerHTML']);}}const _0x2d0571=Array['from'](_0x4fa11b['getCustomProperties']());_0x2d0571['length']>0x0&&(_0xde8907['customProperties']=_0x2d0571);const _0x25d218=_0x4fa11b['getFillerOffset']();return null!==_0x25d218&&(_0xde8907['fillerOffset']=_0x25d218),_0xde8907;}}['_markChanges'](_0x1e25bc,_0x53efcd,_0x45cb10,_0x456d7a,_0x68c19){let _0x1984af=null,_0x168eff=null,_0x58ccb5=0x0;const _0x2fc3cc=this['editor']['model'];for(let _0x5950a7=0x0;_0x5950a7<_0x53efcd['length'];_0x5950a7++){const _0x50d861=this['_getVidAttributeName'](_0x53efcd[_0x5950a7]),_0x8d2c2=_0x53efcd[_0x5950a7]['item']['getAttribute'](_0x50d861),_0x2769d3=_0x45cb10['get'](_0x8d2c2),_0x28568a=_0x5950a7==_0x53efcd['length']-0x1;(!_0x1984af&&_0x2769d3&&(_0x1984af=_0x2769d3,_0x168eff=_0x53efcd[_0x5950a7]),_0x1984af&&(!_0x2769d3||_0x2769d3['userId']!=_0x1984af['userId']))&&(_0x17c318(_0x2769d3,P(_0x168eff,_0x1e25bc,_0x2fc3cc),P(_0x53efcd[_0x5950a7],_0x1e25bc,_0x2fc3cc)),_0x1984af=_0x2769d3||null,_0x168eff=_0x2769d3?_0x53efcd[_0x5950a7]:null),_0x1984af&&_0x28568a&&_0x17c318(_0x2769d3,P(_0x168eff,_0x1e25bc,_0x2fc3cc),V(_0x53efcd[_0x5950a7],_0x1e25bc,_0x2fc3cc));}function _0x17c318(_0x321f03,_0x4ff24b,_0x3b4733){const _0x4ae499=_0x1984af['userId'],_0x5aa60c='revision:'+_0x456d7a+':'+_0x4ae499+':'+_0x58ccb5++,_0x21cbe0=_0x2fc3cc['createRange'](_0x4ff24b,_0x3b4733);_0x1e25bc['markers']['set'](_0x5aa60c,_0x21cbe0),null!==_0x4ae499&&_0x68c19['add'](_0x4ae499);}}['_getVidAttributeName'](_0x43d8ae){switch(_0x43d8ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x41b469,_0x2db3eb){_0x41b469['baseVersion']=null;for(const _0x1306b0 in _0x41b469){const _0x5e3d18=_0x41b469[_0x1306b0];if(_0x5e3d18 instanceof _0x5d8173){const _0x356fd6=_0x2db3eb['get'](_0x5e3d18['root']['rootName']);_0x41b469[_0x1306b0]=this['_fixPosition'](_0x5e3d18,_0x356fd6);}if(_0x5e3d18 instanceof _0x47f923){const _0x3f1aa0=_0x2db3eb['get'](_0x5e3d18['root']['rootName']);_0x41b469[_0x1306b0]=this['_fixRange'](_0x5e3d18,_0x3f1aa0);}'root'===_0x1306b0&&(_0x41b469['root']=_0x2db3eb['get'](_0x41b469['root']['rootName']));}}['_fixRange'](_0x274367,_0x1cee7f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x274367['start'],_0x1cee7f),this['_fixPosition'](_0x274367['end'],_0x1cee7f));}['_fixPosition'](_0x54a742,_0x190539){return this['editor']['model']['createPositionFromPath'](_0x190539,_0x54a742['path'],_0x54a742['stickiness']);}['_handleInsertOperation'](_0xa2277c){const _0x1827f9=this['_idsRoots']['get'](_0xa2277c['position']['root']['rootName']),_0x5c3b2e=this['_fixPosition'](_0xa2277c['position'],_0x1827f9),_0x1e0ce2=null===_0xa2277c['_authorId']?null:_0xa2277c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35f81c=_0x5c3b2e['parent'],_0x45076c=this['_revisionId'],_0x4e4720=[];for(const _0x1ab2e4 of _0xa2277c['nodes'])if(_0x1ab2e4['is']('element'))_0x4e4720['push'](this['_makeIdsRoot'](_0x1ab2e4));else{for(let _0x2167e8=0x0;_0x2167e8<_0x1ab2e4['offsetSize'];_0x2167e8++)_0x4e4720['push'](new _0x24e097('$text',{'vid':this['_revisionId']++}));}const _0x37621b=this['_revisionId'];for(let _0x41538b=_0x45076c;_0x41538b<_0x37621b;_0x41538b++)this['_touched']['set'](_0x41538b,{'userId':_0x1e0ce2});_0x35f81c['_insertChild'](_0x5c3b2e['offset'],_0x4e4720);}['_handleMoveOperation'](_0x3b3f7d){(_0x3b3f7d=this['_cloneOperation'](_0x3b3f7d,this['_idsRoots']))['_execute']();const _0x2e6653=null===_0x3b3f7d['_authorId']?null:_0x3b3f7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x196886=_0x3b3f7d['getMovedRangeStart'](),_0x1fc8c3=_0x196886['parent'],_0xc9405b=_0x196886['offset'];!function _0xaec0ae(_0x25a717,_0x233e4d,_0x5e89b4,_0x95d955){for(let _0x362e77=_0x5e89b4;_0x362e77<_0x95d955;_0x362e77++){const _0x485710=_0x233e4d['getChild'](_0x362e77);_0x485710['is']('element','$text')?_0x25a717['set'](_0x485710['getAttribute']('vid'),{'userId':_0x2e6653}):(_0x25a717['set'](_0x485710['getAttribute']('vid_start'),{'userId':_0x2e6653}),_0xaec0ae(_0x25a717,_0x485710,0x0,_0x485710['childCount']),_0x25a717['set'](_0x485710['getAttribute']('vid_end'),{'userId':_0x2e6653}));}}(this['_touched'],_0x1fc8c3,_0xc9405b,_0xc9405b+_0x3b3f7d['howMany']);}['_handleMergeOperation'](_0x25f585){const _0x3134de=null===(_0x25f585=this['_cloneOperation'](_0x25f585,this['_idsRoots']))['_authorId']?null:_0x25f585['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7edcf1=_0x25f585['targetPosition']['parent'],_0x287532=_0x25f585['sourcePosition']['parent'],_0xd7e726=_0x7edcf1['getAttribute']('vid_end'),_0x752d02=_0x287532['getAttribute']('vid_start');_0x7edcf1['_setAttribute']('vid_end',_0x287532['getAttribute']('vid_end')),_0x287532['_setAttribute']('vid_end',_0xd7e726),this['_touched']['set'](_0x752d02,{'userId':_0x3134de}),this['_touched']['set'](_0xd7e726,{'userId':_0x3134de}),_0x25f585['_execute']();}['_handleSplitOperation'](_0x598911){const _0x381c31=null===(_0x598911=this['_cloneOperation'](_0x598911,this['_idsRoots']))['_authorId']?null:_0x598911['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2505ab=_0x598911['graveyardPosition'],_0x4c91ba=_0x598911['splitPosition']['parent'];_0x598911['_execute']();const _0x2188e7=_0x4c91ba['getAttribute']('vid_end'),_0x406ac8=_0x598911['insertionPosition']['nodeAfter'];if(_0x2505ab){const _0x4a7cbb=_0x406ac8['getAttribute']('vid_end'),_0x183a85=_0x4c91ba['getAttribute']('vid_end');_0x4c91ba['_setAttribute']('vid_end',_0x4a7cbb),_0x406ac8['_setAttribute']('vid_end',_0x183a85),this['_touched']['set'](_0x4c91ba['getAttribute']('vid_end'),{'userId':_0x381c31}),this['_touched']['set'](_0x406ac8['getAttribute']('vid_start'),{'userId':_0x381c31});}else{const _0x2e7b49=this['_revisionId']++,_0x5040b1=this['_revisionId']++;_0x4c91ba['_setAttribute']('vid_end',_0x2e7b49),_0x406ac8['_setAttribute']('vid_start',_0x5040b1),_0x406ac8['_setAttribute']('vid_end',_0x2188e7),this['_touched']['set'](_0x2e7b49,{'userId':_0x381c31}),this['_touched']['set'](_0x5040b1,{'userId':_0x381c31});}}['_handleMarkerOperation'](_0x35dc4c){if(!_0x35dc4c['affectsData'])return;const _0x566582=(_0x35dc4c=this['_cloneOperation'](_0x35dc4c,this['_diffRoots']))['oldRange']?_0x35dc4c['oldRange']['root']:null,_0x584ae5=_0x35dc4c['newRange']?_0x35dc4c['newRange']['root']:null;_0x566582&&this['_markers']['delete'](_0x35dc4c['name']),_0x584ae5&&this['_markers']['set'](_0x35dc4c['name'],_0x35dc4c['newRange']['clone']());const _0x2a7f0a=null===_0x35dc4c['_authorId']?null:_0x35dc4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52d407=_0x35dc4c['name'];if(!this['_touchedMarkers']['has'](_0x52d407))return void this['_touchedMarkers']['set'](_0x52d407,{'range':_0x35dc4c['oldRange'],'userId':_0x2a7f0a});const _0x4f2695=this['_touchedMarkers']['get'](_0x52d407),_0x28576b=_0x4f2695['range'],_0x86f1be=_0x35dc4c['newRange'];null==_0x28576b&&null==_0x86f1be||_0x28576b&&_0x86f1be&&_0x28576b['isEqual'](_0x86f1be)?this['_touchedMarkers']['delete'](_0x35dc4c['name']):_0x4f2695['userId']=_0x2a7f0a;}['_handleRootOperation'](_0x32274a,_0x4f8bac){this['_diffRoots']['has'](_0x32274a['rootName'])?this['_diffRoots']['get'](_0x32274a['rootName'])['_isAttached']=_0x32274a['isAdd']:(this['_diffRoots']['set'](_0x32274a['rootName'],N(_0x32274a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x32274a['rootName'],{}),_0x4f8bac&&this['_idsRoots']['set'](_0x32274a['rootName'],N(_0x32274a['rootName'],!0x0)));const _0x2f8d82=null===_0x32274a['_authorId']?null:_0x32274a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c4275=this['_touchedRoots']['get'](_0x32274a['rootName']);_0x2c4275&&_0x2c4275['userId']===_0x2f8d82?this['_touchedRoots']['delete'](_0x32274a['rootName']):this['_touchedRoots']['set'](_0x32274a['rootName'],{'userId':_0x2f8d82,'isAttached':_0x32274a['isAdd']});}['_handleRootAttributeOperation'](_0x28e9bb){const _0x4d6f1d=this['_diffRootsAttributes']['get'](_0x28e9bb['root']['rootName']);null===_0x28e9bb['newValue']?delete _0x4d6f1d[_0x28e9bb['key']]:_0x4d6f1d[_0x28e9bb['key']]=_0x28e9bb['newValue'];}}function x(_0x499161){const _0x576f3f=N(_0x499161['rootName'],_0x499161['isAttached']());for(const _0x90ed43 of _0x499161['getChildren']()){const _0x3b6468=_0x90ed43['_clone'](!0x0);_0x576f3f['_appendChild'](_0x3b6468);}return _0x576f3f;}function N(_0x541a9c,_0x24a00b=!0x0){const _0x12c792=new _0xdf8818();return _0x12c792['rootName']=_0x541a9c,_0x12c792['_isAttached']=_0x24a00b,_0x12c792['isAttached']=()=>_0x12c792['_isAttached'],_0x12c792;}function P(_0x33bb4d,_0x1845d2,_0x28bfd4){const _0x17b475='elementEnd'==_0x33bb4d['type']?_0x28bfd4['createPositionAt'](_0x33bb4d['item'],'end'):_0x28bfd4['createPositionBefore'](_0x33bb4d['item']);return _0x28bfd4['createPositionFromPath'](_0x1845d2,_0x17b475['path'],_0x17b475['stickiness']);}function V(_0x195048,_0xe6839a,_0x305c98){const _0xcf895a='elementStart'==_0x195048['type']?_0x305c98['createPositionAt'](_0x195048['item'],0x0):_0x305c98['createPositionAfter'](_0x195048['item']);return _0x305c98['createPositionFromPath'](_0xe6839a,_0xcf895a['path'],_0xcf895a['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x42afb7(_0x3ecb12){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49f0e8,_0x4886bb){super(_0x49f0e8),this['focusTracker']=new _0x5ad870(),this['keystrokes']=new _0x380150(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4886bb),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'](),_0x507135({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x57b3b8=_0x55531b=>_0x55531b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x57b3b8),this['keystrokes']['set']('arrowleft',_0x57b3b8),this['keystrokes']['set']('arrowup',_0x57b3b8),this['keystrokes']['set']('arrowdown',_0x57b3b8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x511d51){this['revisionNameInputView']['fieldView']['element']['value']=_0x511d51['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x353f3c){const _0x101aa3=new ti(this['locale'],_0x5b55e3),_0x541795=_0x101aa3['fieldView'];_0x541795['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x10531d=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x353f3c&&(_0x10531d+='\x20('+R(this['locale'],'optional')+')'),(_0x101aa3['label']=_0x10531d,_0x541795['on']('input',()=>{this['revisionNameInputValue']=_0x541795['element']['value']['trim']();}),_0x101aa3);}}class v extends _0x4b6c22{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x10ac2d=this['editor'],_0x216015=_0x10ac2d['plugins']['get']('RevisionTracker');_0x10ac2d['ui']['componentFactory']['add']('revisionHistory',_0x118487=>{const _0xce3a09=_0x195a39(_0x118487),_0x2b9c07=_0xce3a09['panelView']['children'],_0x4ca4dc=new _0xcfb5d2(_0x118487),_0x14117b=new _0x276d1b(_0x118487),_0x52b2dc=new _0x5c81a4(_0x118487),_0xe1defc=new _0x276d1b(_0x118487),_0xa60a0b=new _0x5c81a4(_0x118487);return _0xce3a09['bind']('isEnabled')['to'](_0x216015,'isReady',_0x216015,'isEnabled',_0x10ac2d,'isReadOnly',(_0x285c0d,_0x30dccf,_0x4cfd43)=>_0x285c0d&&_0x30dccf&&!_0x4cfd43),_0xce3a09['buttonView']['set']({'icon':_0x255ec9,'label':R(_0x118487,'Revision\x20history'),'tooltip':!0x0}),_0x52b2dc['set']({'label':R(_0x118487,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x52b2dc['bind']('isEnabled')['to'](_0x216015,'isReady',_0x216015,'isEnabled',_0x10ac2d,'isReadOnly',(_0x487063,_0x1b0689,_0x42a2d5)=>_0x487063&&_0x1b0689&&!_0x42a2d5),_0x52b2dc['on']('execute',()=>this['_showDialog']()),_0xa60a0b['set']({'label':R(_0x118487,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xa60a0b['bind']('isEnabled')['to'](_0x216015,'isReady',_0x10ac2d,'isReadOnly',(_0x14ef7d,_0x471575)=>_0x14ef7d&&!_0x471575),_0xa60a0b['on']('execute',()=>{_0x10ac2d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xce3a09['isOpen']=!0x1,_0x10ac2d['editing']['view']['focus']();}),_0x14117b['children']['add'](_0x52b2dc),_0xe1defc['children']['add'](_0xa60a0b),_0x4ca4dc['role']='menu',_0x4ca4dc['items']['addMany']([_0x14117b,_0xe1defc]),_0x2b9c07['add'](_0x4ca4dc),_0xce3a09;}),_0x10ac2d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x7ed6ae=this['editor'],_0x13864e=_0x7ed6ae['locale'],_0x34bdd4=new _0x6d116d(_0x13864e),_0x2fc1f4=new _0x1dc46d(_0x13864e);_0x34bdd4['buttonView']['set']({'icon':_0x255ec9,'label':R(_0x13864e,'Revision\x20history')});const _0x5a08a1=new _0x41dcbf(_0x13864e,_0x34bdd4),_0x495a0f=new _0x33b590(_0x13864e);_0x495a0f['set']({'label':R(_0x13864e,'Save\x20current\x20revision')}),_0x495a0f['delegate']('execute')['to'](_0x34bdd4),_0x495a0f['on']('execute',()=>{this['_showDialog']();}),_0x5a08a1['children']['add'](_0x495a0f),_0x2fc1f4['items']['add'](_0x5a08a1);const _0x3c6851=new _0x41dcbf(_0x13864e,_0x34bdd4),_0xe014b7=new _0x33b590(_0x13864e);return _0xe014b7['set']({'label':R(_0x13864e,'Open\x20revision\x20history')}),_0xe014b7['delegate']('execute')['to'](_0x34bdd4),_0xe014b7['on']('execute',()=>{_0x7ed6ae['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3c6851['children']['add'](_0xe014b7),_0x2fc1f4['items']['add'](_0x3c6851),_0x34bdd4['panelView']['children']['add'](_0x2fc1f4),_0x34bdd4;}['_showDialog'](){const _0x502eee=this['editor'],_0x52b17a=_0x502eee['locale'],_0xd56b26=_0x502eee['plugins']['get']('Dialog'),_0x2e9bd4=_0x502eee['plugins']['get']('RevisionTracker');function _0x1bcafd(_0x199d76){_0x502eee['config']['get']('revisionHistory.requireRevisionName')&&''===_0x199d76['revisionName']?_0x199d76['revisionNameInputView']['errorText']=R(_0x52b17a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x502eee['plugins']['get'](h)['saveRevision']({'name':_0x199d76['revisionName']}),_0xd56b26['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1bcafd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xd56b26['show']({'id':'revisionSave','title':R(_0x52b17a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x502eee['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xd56b26['hide']()},{'label':R(_0x502eee['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xc1ad87){_0xc1ad87['bind']('isEnabled')['to'](_0x2e9bd4,'isReady',_0x2e9bd4,'isEnabled',_0x502eee,'isReadOnly',(_0xd43e2f,_0x5b5d9e,_0x2dba55)=>_0xd43e2f&&_0x5b5d9e&&!_0x2dba55);},'onExecute':()=>_0x1bcafd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xd70dd9=this['editor'],_0x18807c=_0xd70dd9['locale'];this['_saveRevisionFormView']=new he(_0x18807c,_0xd70dd9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3ecb12{['changeId'];['_model'];constructor(_0x4336f6,_0x5dff48){super(_0x4336f6),this['_model']=_0x5dff48,this['changeId']=_0x5dff48['id'];const _0x3aff5e=this['bindTemplate'],_0x1b3140=R(_0x4336f6,_0x5dff48['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5dff48['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5dff48['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3aff5e['to']('type',_0x134293=>'ck-revision-change__'+_0x134293)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b3140}]},{'text':'\x20'+_0x5dff48['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5ed703(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2ae273){super(),this['id']=_0x2ae273['id']||_0x2bd58b(),this['author']=_0x2ae273['author'],this['type']=_0x2ae273['type'],this['data']=_0x2ae273['data']||{},this['rootName']=_0x2ae273['rootName'],this['set']('createdAt',_0x2ae273['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(_0x5cd2b3,_0x4a8b9b){this['newRevisionId']=_0x5cd2b3,this['oldRevisionId']=_0x4a8b9b,this['changes']=new _0x5d0537();}['_setChanges'](_0x2b6e12){for(const _0x10ea7f of _0x2b6e12)this['changes']['add'](_0x10ea7f);}}class l extends _0x4b6c22{['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[_0x14b7c6,_0x4232c8,S,$];}constructor(_0x5036b3){super(_0x5036b3),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',(_0x46e4e5,_0x4313a3,_0xae2907)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2f5d53=>{for(const _0x2ecad6 of this['editor']['editing']['view']['document']['roots'])_0xae2907?_0x2f5d53['removeClass']('ck-editor__editable__overlay',_0x2ecad6):_0x2f5d53['addClass']('ck-editor__editable__overlay',_0x2ecad6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x404f82=>null!==_0x404f82),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1bcdbd,_0x8489f4,_0x5ba345)=>_0x1bcdbd&&_0x5ba345?_0x8489f4['changes']['getIndex'](_0x5ba345):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x13ab47,_0x1a8dc1)=>_0x13ab47?_0x1a8dc1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4232c8);}['init'](){const _0x599280=this['editor'],_0x30144c=new ot(_0x599280,{'direction':'backward'}),_0x52a89c=new ot(_0x599280,{'direction':'forward'});(_0x599280['commands']['add']('showPreviousChange',_0x30144c),_0x599280['commands']['add']('showNextChange',_0x52a89c),_0x599280['commands']['add']('restoreRevision',new nt(_0x599280)),this['on']('change:numberOfChanges',()=>{_0x30144c['refresh'](),_0x52a89c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x599280['enableReadOnlyMode']('revision-viewer'),_0x599280['plugins']['has']('WidgetToolbarRepository'))&&_0x599280['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x236581){return await this['_utils']['loadRevisionData'](_0x236581,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x236581);}async['getRevisionRootsAttributes'](_0x518af0){return await this['_utils']['loadRevisionData'](_0x518af0,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x518af0);}async['compare'](_0x4e24b9,_0x240315,_0x47f018=!0x1){if(!this['isEnabled'])return;const _0x20934c=this['diff'],_0xa4189=this['repository'],_0x4c84d6='string'==typeof _0x4e24b9?_0xa4189['getRevision'](_0x4e24b9):_0x4e24b9,_0x142688='string'==typeof _0x240315?_0xa4189['getRevision'](_0x240315):_0x240315,_0x4cc956=_0x4c84d6['id'],_0x3b97b5=_0x142688?_0x142688['id']:null;if(!_0x47f018&&this['diff']&&this['diff']['newRevisionId']===_0x4cc956&&this['diff']['oldRevisionId']===_0x3b97b5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4cc956,_0x3b97b5);const _0x2b83c9=this['_getRevisionsRange'](_0x4c84d6,_0x142688,!0x0)['map'](_0x2e47f3=>this['_utils']['loadRevisionData'](_0x2e47f3,this['adapter']));return _0x2b83c9['push'](new Promise(_0x1a4e57=>{setTimeout(_0x1a4e57,0x14);})),Promise['all'](_0x2b83c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x160ad6=this['_getDiff'](_0x4cc956,_0x3b97b5);for(const _0x236351 of _0x160ad6['changes'])this['_changeIdToChange']['set'](_0x236351['id'],_0x236351);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3277c3=>{for(const _0x38670a of this['editor']['model']['document']['getRootNames']())_0x3277c3['detachRoot'](_0x38670a);for(const _0x5f4604 of Object['keys'](_0x160ad6['model'])){const _0x146bc8=_0x3277c3['addRoot'](_0x5f4604);for(const _0xe25f05 of Object['keys'](_0x160ad6['attributes'][_0x5f4604]))_0x3277c3['setAttribute'](_0xe25f05,_0x160ad6['attributes'][_0x5f4604][_0xe25f05],_0x146bc8);_0x3277c3['insert'](_0x160ad6['model'][_0x5f4604],_0x146bc8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x160ad6['changes'])),this['isReady']=!0x0;})['catch'](_0x52ad79=>{console['error'](_0x52ad79),this['_cleanUp'](),_0x20934c&&(this['diff']=_0x20934c),this['isReady']=!0x0;});}['addRevisionData'](_0x13b67b,_0x44fc14){const _0x338f16=this['repository']['createRevision'](_0x13b67b);return _0x338f16['on']('_update',(_0xd49d4c,_0x2f4dcb,_0x4b77e2)=>_0x44fc14(_0x2f4dcb,_0x4b77e2,_0x338f16)),this['repository']['addRevision'](_0x338f16),_0x338f16;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26528e=>{for(const _0x43e27a of this['editor']['model']['document']['getRootNames']())_0x26528e['detachRoot'](_0x43e27a);});}['_sortAndFilterDiffChanges'](_0xb2820c){const _0x4bf866=[],_0x1ed267=new Map();for(const _0x130e49 of this['editor']['model']['document']['getRootNames']()){const _0x55506c=this['editor']['editing']['view']['getDomRoot'](_0x130e49);if(!_0x55506c)continue;const _0x43dab6=_0x55506c['getClientRects']()['item'](0x0);_0x43dab6&&(_0x4bf866['push'](_0x130e49),_0x1ed267['set'](_0x130e49,_0x43dab6));}return _0x4bf866['sort']((_0x496b53,_0x183caf)=>{const _0x284e04=_0x1ed267['get'](_0x496b53),_0x1efebe=_0x1ed267['get'](_0x183caf);return _0x284e04['y']-_0x1efebe['y']||_0x284e04['x']-_0x1efebe['x'];}),(_0xb2820c=_0xb2820c['filter'](_0x332dc7=>_0x4bf866['includes'](_0x332dc7['rootName'])))['sort']((_0x5bc6e2,_0x9afbfd)=>_0x4bf866['indexOf'](_0x5bc6e2['rootName'])-_0x4bf866['indexOf'](_0x9afbfd['rootName'])),_0xb2820c;}['_makeTape'](_0x3b309a){const _0x210b3e=Array['from'](_0x3b309a['markers'])['filter'](([_0x35f5f6,_0x33cec9])=>_0x35f5f6['startsWith']('revision:')&&!_0x33cec9['isCollapsed']),_0x32c5ba=Array['from'](this['editor']['model']['createRangeIn'](_0x3b309a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x210b3e['length'])for(const _0x42f96d of _0x32c5ba){const [_0x2479bb,_0x55fd82]=_0x210b3e[0x0],[,_0x7b0e2e,_0x20281e]=_0x2479bb['split'](':');if(_0x55fd82['end']['isEqual'](_0x42f96d['nextPosition'])&&_0x210b3e['shift'](),(_0x42f96d['previousPosition']['isEqual'](_0x55fd82['start'])||_0x42f96d['previousPosition']['isAfter'](_0x55fd82['start']))&&('insertion'==_0x7b0e2e?_0x42f96d['isAdded']={'userId':_0x20281e}:'deletion'==_0x7b0e2e&&(_0x42f96d['isRemoved']={'userId':_0x20281e})),0x0==_0x210b3e['length'])break;}return _0x32c5ba;}['_refreshStartEndIndex'](_0x23241e){const _0x253221=new Map();for(let _0x1654ed=0x0;_0x1654ed<_0x23241e['length'];_0x1654ed++)'text'===_0x23241e[_0x1654ed]['type']?(_0x23241e[_0x1654ed]['item']['startIndex']=_0x1654ed,_0x23241e[_0x1654ed]['item']['endIndex']=_0x1654ed):('elementStart'===_0x23241e[_0x1654ed]['type']?_0x23241e[_0x1654ed]['item']['startIndex']=_0x1654ed:'elementEnd'===_0x23241e[_0x1654ed]['type']&&(_0x23241e[_0x1654ed]['item']['endIndex']=_0x1654ed),_0x253221['set'](_0x23241e[_0x1654ed]['id'],_0x1654ed));for(const _0x150073 of _0x253221['values']())'elementStart'===_0x23241e[_0x150073]['type']?_0x23241e[_0x150073]['item']['endIndex']=_0x253221['get'](_0x23241e[_0x150073]['pairId']):'elementEnd'===_0x23241e[_0x150073]['type']&&(_0x23241e[_0x150073]['item']['startIndex']=_0x253221['get'](_0x23241e[_0x150073]['pairId']));}['_processTape'](_0x4242e5){for(let _0x293a58=0x0;_0x293a58<_0x4242e5['length'];_0x293a58++){if('elementStart'===_0x4242e5[_0x293a58]['type'])_0x4242e5[_0x293a58]['item']['startIndex']=_0x293a58;else{if('elementEnd'===_0x4242e5[_0x293a58]['type']){_0x4242e5[_0x293a58]['item']['endIndex']=_0x293a58;const _0x595830=_0x4242e5[_0x293a58]['item']['startIndex'];_0x4242e5[_0x595830]['pairId']=_0x4242e5[_0x293a58]['id'],_0x4242e5[_0x293a58]['pairId']=_0x4242e5[_0x595830]['id'];}else _0x4242e5[_0x293a58]['item']['startIndex']=_0x293a58,_0x4242e5[_0x293a58]['item']['endIndex']=_0x293a58,_0x4242e5[_0x293a58]['pairId']=null;}_0x4242e5[_0x293a58]['markersStart']||(_0x4242e5[_0x293a58]['markersStart']=[],_0x4242e5[_0x293a58]['markersEnd']=[]);}}['_markInsertions'](_0x563e86,_0x178ef0){const _0x1b0686=_0x563e86['filter'](_0x328bfa=>!_0x328bfa['isAdded']);for(let _0x2f214f=0x0;_0x2f214f<_0x178ef0['length'];_0x2f214f++)_0x178ef0[_0x2f214f]['isAdded']&&(_0x1b0686[_0x2f214f]['isAdded']=_0x178ef0[_0x2f214f]['isAdded']);}['_getDiff'](_0x343b5e,_0x95f923=null){const _0x171885=this['repository']['getRevision'](_0x343b5e),_0x140f17=_0x95f923?this['repository']['getRevision'](_0x95f923):null,_0x58b9c3=this['_getRevisionsRange'](_0x171885,_0x140f17),_0x5ae5ef=_0x58b9c3[_0x58b9c3['length']-0x1],_0x3cd529=new Map(),_0x1ff6d8={'model':{},'attributes':{},'changes':[]},_0x22fe81=new Set(),_0x3acc24=new Map();for(let _0x39571a=_0x58b9c3['length']-0x1;_0x39571a>=0x0;_0x39571a--){const _0x47136a=_0x58b9c3[_0x39571a];for(const _0x24c4d0 of Object['keys'](_0x47136a['diffData']))if(_0x47136a['diffData'][_0x24c4d0]['attachChange']){const _0x2c661e=_0x47136a['diffData'][_0x24c4d0]['attachChange'];_0x2c661e['isAttached']?(_0x22fe81['add'](_0x24c4d0),_0x3acc24['has'](_0x24c4d0)&&_0x3acc24['get'](_0x24c4d0)['userId']==_0x2c661e['userId']?_0x3acc24['delete'](_0x24c4d0):_0x3acc24['set'](_0x24c4d0,_0x2c661e)):_0x3acc24['has'](_0x24c4d0)?(_0x22fe81['delete'](_0x24c4d0),_0x3acc24['delete'](_0x24c4d0)):(_0x22fe81['add'](_0x24c4d0),_0x3acc24['set'](_0x24c4d0,_0x2c661e));}else _0x22fe81['add'](_0x24c4d0);}for(const _0x3019f1 of _0x22fe81){const _0x19e7b3=_0x3acc24['has'](_0x3019f1)&&!_0x3acc24['get'](_0x3019f1)['isAttached'];let _0x1faeae=_0x19e7b3?_0x58b9c3['length']-0x1:0x0;const _0x17deda=_0x19e7b3?-0x1:0x1;for(;_0x58b9c3[_0x1faeae];){const _0x268068=_0x58b9c3[_0x1faeae];if(_0x268068['diffData'][_0x3019f1]){const _0x482a55=_0x19e7b3?_0x268068['diffData'][_0x3019f1]['attributesBefore']:_0x268068['diffData'][_0x3019f1]['attributesAfter'];_0x1ff6d8['attributes'][_0x3019f1]=_0x482a55?_0x20f484(_0x482a55):{};break;}_0x1faeae+=_0x17deda;}}for(const _0x22a4f3 of _0x58b9c3){_0x22a4f3['model']={};for(const _0x2067cf of _0x22a4f3['authors'])_0x3cd529['set'](_0x2067cf['id'],_0x2067cf);for(const _0x3350a8 of _0x22fe81){const _0x5c256c=_0x22a4f3['diffData'][_0x3350a8]?_0x22a4f3['diffData'][_0x3350a8]['insertions']:'[]',_0x530d0f=_0x22a4f3['diffData'][_0x3350a8]?_0x22a4f3['diffData'][_0x3350a8]['deletions']:'[]';_0x22a4f3['model'][_0x3350a8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5c256c),'deletions':this['_utils']['_makeModelFromViewString'](_0x530d0f)};}}for(const _0x885866 of _0x22fe81){let _0x364c0f=null,_0x5bfcf7=0x0;const _0x1937d8=new Map(Array['from'](_0x171885['model'][_0x885866]['insertions']['markers'])['filter'](([_0x344c04])=>!_0x344c04['startsWith']('revision:')));let _0x4baa38=0x0;for(const _0x57eb12 of _0x58b9c3){const _0x4dbc6b=this['_makeTape'](_0x57eb12['model'][_0x885866]['insertions']);_0x57eb12==_0x171885?(_0x364c0f=_0x4dbc6b,_0x5bfcf7=_0x364c0f['length'],_0x364c0f['forEach'](_0x1127bc=>{_0x1127bc['id']=_0x4baa38++;}),this['_processTape'](_0x364c0f)):this['_markInsertions'](_0x364c0f,_0x4dbc6b);const _0x5ae1ef=_0x364c0f['filter'](_0x10bfce=>!_0x10bfce['isAdded'])['map'](_0x294829=>_0x294829['id']);let _0x5b09aa=0x0;const _0x574657=this['_makeTape'](_0x57eb12['model'][_0x885866]['deletions']);_0x574657['forEach'](_0xb43db6=>{_0xb43db6['isRemoved']?_0xb43db6['id']=_0x5bfcf7++:_0xb43db6['id']=_0x5ae1ef[_0x5b09aa++];}),this['_processTape'](_0x574657),this['_setDistance'](_0x364c0f,'isAdded'),this['_setDistance'](_0x574657,'isRemoved'),_0x57eb12==_0x171885&&this['_markMarkers'](_0x364c0f,_0x1937d8),_0x364c0f=this['_joinTapes'](_0x364c0f,_0x574657),this['_refreshStartEndIndex'](_0x364c0f),this['_setDistance'](_0x364c0f,'isRemoved');}_0x364c0f=_0x364c0f['filter'](_0xf3fee4=>!(_0xf3fee4['isAdded']&&_0xf3fee4['isRemoved']));const _0x4193d2=new Map(_0x5ae5ef['model'][_0x885866]['deletions']['markers']),_0x1c1e84=new Set(_0x1937d8['keys']());for(const _0x278474 of _0x4193d2['keys']())_0x1c1e84['delete'](_0x278474);this['_markSuggestions'](_0x364c0f,_0x1c1e84),this['_fixObsoleteTags'](_0x364c0f),_0x364c0f=this['_removeMissingPairs'](_0x364c0f),_0x364c0f=this['_markMismatchedRemovedTags'](_0x364c0f),_0x364c0f=this['_removeUnsupportedChanges'](_0x364c0f);const {root:_0x5961c6,changes:_0x31ad43}=this['_makeModelFromTape'](_0x364c0f,_0x3cd529,_0x885866);_0x1ff6d8['model'][_0x885866]=_0x5961c6;const _0x48dbca=_0x3acc24['get'](_0x885866);if(_0x48dbca){const _0x42d0ac=_0x3cd529['get'](_0x48dbca['userId']),_0x262d1e=new G({'author':_0x42d0ac,'type':_0x48dbca['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x885866});_0x31ad43['unshift'](_0x262d1e),_0x1ff6d8['attributes'][_0x885866]['revisionHistoryAttachChange']=_0x262d1e['id'];}_0x1ff6d8['changes']=_0x1ff6d8['changes']['concat'](_0x31ad43);}return _0x1ff6d8;}['_markMarkers'](_0x1ee918,_0x345992){for(let _0x3fcf67=0x0;_0x3fcf67<_0x1ee918['length'];_0x3fcf67++)for(const [_0x13ddf3,_0x582852]of _0x345992)!_0x582852['isCollapsed']&&_0x582852['start']['isEqual'](_0x1ee918[_0x3fcf67]['previousPosition'])&&_0x1ee918[_0x3fcf67]['markersStart']['push'](_0x13ddf3),_0x582852['end']['isEqual'](_0x1ee918[_0x3fcf67]['nextPosition'])&&_0x1ee918[_0x3fcf67]['markersEnd']['push'](_0x13ddf3);}['_joinTapes'](_0x2a402d,_0x130d8c){let _0x44621a=[],_0x499a8b=0x0,_0x337ab5=0x0;for(;_0x499a8b<_0x2a402d['length']||_0x337ab5<_0x130d8c['length'];){const _0x257045=_0x2a402d[_0x499a8b]||{},_0x4eedaf=_0x130d8c[_0x337ab5]||{};if(_0x257045['id']==_0x4eedaf['id'])_0x499a8b++,_0x337ab5++,_0x44621a['push'](_0x257045);else{if(_0x4eedaf['isRemoved']&&_0x257045['isAdded']){const {commonTape:_0x3dbbd5,iEnd:_0x2628b4,jEnd:_0x40b857}=this['_threeWayMerge'](_0x2a402d,_0x499a8b,_0x130d8c,_0x337ab5);_0x44621a=_0x44621a['concat'](_0x3dbbd5),_0x499a8b=_0x2628b4,_0x337ab5=_0x40b857;}else _0x4eedaf['isRemoved']?(_0x337ab5++,_0x44621a['push'](_0x4eedaf)):(_0x499a8b++,_0x44621a['push'](_0x257045));}}return _0x44621a;}['_markSuggestions'](_0x27a94d,_0x17503b){const _0x5d5db5=[];for(let _0x1eb213=0x0;_0x1eb213<_0x27a94d['length'];_0x1eb213++){for(let _0x24aedb=0x0;_0x24aedb<_0x27a94d[_0x1eb213]['markersStart']['length'];_0x24aedb++){const _0x40c78b=_0x27a94d[_0x1eb213]['markersStart'][_0x24aedb];if(!_0x17503b['has'](_0x40c78b))continue;const {group:_0x303e33,type:_0x2cc8d7,authorId:_0x15090e}=_0x44c920(_0x40c78b);'revision-suggestion'!=_0x303e33||'insertion'!=_0x2cc8d7&&'deletion'!=_0x2cc8d7||(_0x5d5db5['unshift']({'type':_0x2cc8d7,'name':_0x40c78b,'userId':_0x15090e}),_0x27a94d[_0x1eb213]['markersStart']['splice'](_0x24aedb,0x1),_0x24aedb--);}_0x5e49a9(_0x27a94d[_0x1eb213]);for(let _0x190d55=0x0;_0x190d55<_0x27a94d[_0x1eb213]['markersEnd']['length'];_0x190d55++){const _0xabb35=_0x27a94d[_0x1eb213]['markersEnd'][_0x190d55];if(!_0x17503b['has'](_0xabb35))continue;const {group:_0x5b0e06,type:_0x265a2}=_0x44c920(_0xabb35);if('revision-suggestion'!=_0x5b0e06||'insertion'!=_0x265a2&&'deletion'!=_0x265a2)continue;_0x27a94d[_0x1eb213]['markersEnd']['splice'](_0x190d55,0x1),_0x190d55--;const _0x4b6fd8=_0x5d5db5['findIndex'](_0x450c19=>_0x450c19['name']==_0xabb35);_0x4b6fd8>-0x1&&_0x5d5db5['splice'](_0x4b6fd8,0x1);}}function _0x44c920(_0x10d04c){const _0x2c6241=_0x10d04c['split'](':');return{'group':_0x2c6241[0x0],'type':_0x2c6241[0x1],'subType':_0x2c6241['length']>=0x5?_0x2c6241[0x2]:null,'id':_0x2c6241['length']<0x5?_0x2c6241[0x2]:_0x2c6241[0x3],'authorId':_0x2c6241['length']<0x5?_0x2c6241[0x3]:_0x2c6241[0x4],'markerCount':0x6==_0x2c6241['length']?_0x2c6241[0x5]:null};}function _0x5e49a9(_0x40a949){for(let _0x3cd4c1=0x0;_0x3cd4c1<_0x5d5db5['length'];_0x3cd4c1++){if(_0x40a949['isAdded']&&'insertion'==_0x5d5db5[_0x3cd4c1]['type']&&_0x40a949['isAdded']['userId']==_0x5d5db5[_0x3cd4c1]['userId'])return _0x40a949['isAddSuggestion']=_0x5d5db5[_0x3cd4c1],void delete _0x40a949['isAdded'];if(!_0x40a949['isAdded']&&!_0x40a949['isRemoved']&&'deletion'==_0x5d5db5[_0x3cd4c1]['type'])return void(_0x40a949['isRemoveSuggestion']=_0x5d5db5[_0x3cd4c1]);}}}['_setDistance'](_0x5f1931,_0x30e522){let _0x48ef24=0x0,_0x302090=!0x1;const _0x5001a7=new Map();for(const _0x512a44 of _0x5f1931)_0x512a44[_0x30e522]?_0x302090&&(_0x48ef24++,_0x302090=!0x1):(_0x48ef24++,_0x302090=!0x0),_0x5001a7['set'](_0x512a44['id'],_0x48ef24);for(let _0x32f289=0x0;_0x32f289<_0x5f1931['length'];_0x32f289++){if('isRemoved'==_0x30e522&&_0x5f1931[_0x32f289]['isAdded']||'isAdded'==_0x30e522&&_0x5f1931[_0x32f289]['isRemoved'])continue;if('text'==_0x5f1931[_0x32f289]['type']){_0x5f1931[_0x32f289]['distance']=0x0;continue;}const _0x4c2f83=_0x5001a7['get'](_0x5f1931[_0x32f289]['pairId']),_0x252dc0=_0x5001a7['get'](_0x5f1931[_0x32f289]['id']);_0x5f1931[_0x32f289]['distance']=_0x4c2f83-_0x252dc0;}}['_getRevisionsRange'](_0x507e6e,_0x26e193,_0x2868ac=!0x1){const _0x3dfc5a=[];let _0x2d027d=this['repository']['getIndex'](_0x507e6e),_0x482d14=this['repository']['getIndex'](_0x26e193);for(-0x1==_0x482d14&&(_0x482d14=this['repository']['_revisions']['length'],_0x2868ac=!0x1);_0x2d027d<_0x482d14;)_0x3dfc5a['push'](this['repository']['getRevision'](_0x2d027d)),_0x2d027d++;return _0x2868ac&&_0x3dfc5a['push'](this['repository']['getRevision'](_0x2d027d)),_0x3dfc5a;}['_threeWayMerge'](_0x287fbc,_0x1d0e96,_0x1b7f97,_0x31353d){const _0x1da3c0=this['editor']['model']['schema'];let _0x5c5344=_0x1d0e96;for(;_0x287fbc[_0x5c5344]&&_0x287fbc[_0x5c5344]['isAdded'];)_0x5c5344++;let _0xf43136=_0x31353d;for(;_0x1b7f97[_0xf43136]&&_0x1b7f97[_0xf43136]['isRemoved'];)_0xf43136++;_0x16081c(_0x287fbc,_0x1d0e96,_0x5c5344),_0x16081c(_0x1b7f97,_0x31353d,_0xf43136);const _0x3493a4=_0x1b7f97['slice'](_0x31353d,_0xf43136)['concat'](_0x287fbc['slice'](_0x1d0e96,_0x5c5344));return _0x3493a4['sort']((_0x5721fd,_0x19b89d)=>_0x5721fd['side']!=_0x19b89d['side']?_0x5721fd['side']-_0x19b89d['side']:_0x5721fd['level']!=_0x19b89d['level']?_0x5721fd['level']-_0x19b89d['level']:_0x5721fd['distance']!=_0x19b89d['distance']?_0x19b89d['distance']-_0x5721fd['distance']:!!_0x5721fd['isAdded']!=!!_0x19b89d['isAdded']?-0x1==_0x5721fd['side']||0x0==_0x5721fd['side']?_0x5721fd['isAdded']?-0x1:0x1:_0x5721fd['isAdded']?0x1:-0x1:_0x5721fd['index']-_0x19b89d['index']),{'commonTape':_0x3493a4,'iEnd':_0x5c5344,'jEnd':_0xf43136};function _0x16081c(_0x14d443,_0x37f836,_0x1a22cf){let _0x5e63ca=-0x1,_0xc91b7e=Number['POSITIVE_INFINITY'],_0x24b2dc=!0x0;for(let _0x2eaf1a=_0x37f836;_0x2eaf1a<_0x1a22cf;_0x2eaf1a++)if(_0x1da3c0['isInline'](_0x14d443[_0x2eaf1a]['item'])||(_0x24b2dc=!0x1),_0x14d443[_0x2eaf1a]['item']['startIndex']<_0x37f836&&(_0x5e63ca=_0x2eaf1a),_0x14d443[_0x2eaf1a]['item']['endIndex']>=_0x1a22cf){_0xc91b7e=_0x2eaf1a;break;}_0x24b2dc&&(_0x5e63ca=_0x1a22cf-0x1);for(let _0x4cd64c=_0x37f836;_0x4cd64c<_0x1a22cf;_0x4cd64c++)_0x14d443[_0x4cd64c]['side']=_0x4cd64c<=_0x5e63ca?-0x1:_0x4cd64c<_0xc91b7e?0x0:0x1,_0x14d443[_0x4cd64c]['index']=_0x4cd64c;let _0x42cbe9=0x0;for(let _0x55787d=_0x37f836;_0x55787d<=_0x5e63ca;_0x55787d++)0x0==_0x14d443[_0x55787d]['distance']?_0x14d443[_0x55787d]['level']=_0x42cbe9:(_0x42cbe9++,_0x14d443[_0x55787d]['level']=_0x42cbe9,_0x42cbe9++);for(let _0x4a69e1=_0x37f836;_0x4a69e1<_0x1a22cf;_0x4a69e1++)0x0==_0x14d443[_0x4a69e1]['side']&&(_0x14d443[_0x4a69e1]['level']=_0x42cbe9);_0x42cbe9=0x0;for(let _0x2b729c=_0x1a22cf-0x1;_0x2b729c>=_0xc91b7e;_0x2b729c--)0x0==_0x14d443[_0x2b729c]['distance']?_0x14d443[_0x2b729c]['level']=_0x42cbe9:(_0x42cbe9--,_0x14d443[_0x2b729c]['level']=_0x42cbe9,_0x42cbe9--);}}['_fixObsoleteTags'](_0x35f641){const _0x339df4=new Map(),_0x12159c=this['editor']['model']['schema'];for(let _0x23fd0f=0x1;_0x23fd0f<_0x35f641['length'];_0x23fd0f++){let _0x11ca38,_0x33e2b3,_0x58c270;const _0x33ad84=_0x35f641[_0x23fd0f],_0x3b07ff=_0x35f641[_0x23fd0f-0x1];if('text'==_0x33ad84['type'])continue;if(_0x33ad84['type']!=_0x3b07ff['type'])continue;if(!_0x12159c['isBlock'](_0x3b07ff['item'])||_0x12159c['isLimit'](_0x3b07ff['item']))continue;if(!_0x12159c['isBlock'](_0x33ad84['item'])||_0x12159c['isLimit'](_0x33ad84['item']))continue;if((_0x35f641[_0x23fd0f]['isAdded']||_0x35f641[_0x23fd0f]['isAddSuggestion'])&&_0x35f641[_0x23fd0f-0x1]['isRemoved'])_0x11ca38=_0x35f641[_0x23fd0f],_0x33e2b3=_0x35f641[_0x23fd0f-0x1],_0x58c270=_0x23fd0f-0x1;else{if(!_0x35f641[_0x23fd0f]['isRemoved']||!_0x35f641[_0x23fd0f-0x1]['isAdded']&&!_0x35f641[_0x23fd0f-0x1]['isAddSuggestion'])continue;_0x11ca38=_0x35f641[_0x23fd0f-0x1],_0x33e2b3=_0x35f641[_0x23fd0f],_0x58c270=_0x23fd0f;}const _0x5d7471=_0x11ca38['level']==_0x33e2b3['level'],_0x55dc36=Math['abs'](_0x11ca38['level'])<Math['abs'](_0x33e2b3['level'])&&0x0==_0x33e2b3['distance'];(_0x5d7471||_0x55dc36)&&(_0x339df4['set'](_0x33e2b3['id'],_0x11ca38['id']),_0x35f641['splice'](_0x58c270,0x1),_0x23fd0f--,_0x11ca38['isAdded']=!0x1);}for(let _0x19b00d=0x0;_0x19b00d<_0x35f641['length'];_0x19b00d++)_0x339df4['has'](_0x35f641[_0x19b00d]['pairId'])&&(_0x35f641[_0x19b00d]['pairId']=_0x339df4['get'](_0x35f641[_0x19b00d]['pairId']));}['_removeMissingPairs'](_0x75a9ba){const _0x1fb106=new Set(_0x75a9ba['map'](_0x1097d3=>_0x1097d3['id']));for(let _0x157383=0x0;_0x157383<_0x75a9ba['length'];_0x157383++)_0x1fb106['has'](_0x75a9ba[_0x157383]['pairId'])||0x0==_0x75a9ba[_0x157383]['distance']||(_0x75a9ba[_0x157383]['isIncorrect']=!0x0);return _0x75a9ba['filter'](_0x2c2089=>!_0x2c2089['isIncorrect']);}['_markMismatchedRemovedTags'](_0x190038){const _0x55ef45=new Set();for(let _0x14a2e8=0x0;_0x14a2e8<_0x190038['length'];_0x14a2e8++){if(_0x55ef45['has'](_0x190038[_0x14a2e8]['id'])&&_0x190038[_0x14a2e8]['isRemoved']&&(_0x190038[_0x14a2e8]['isIncorrect']=!0x0),_0x190038[_0x14a2e8]['isIncorrect'])continue;if(0x0==_0x190038[_0x14a2e8]['distance'])continue;if('elementStart'!=_0x190038[_0x14a2e8]['type'])continue;if(null==_0x190038[_0x14a2e8]['pairId'])continue;let _0x570dbe=_0x14a2e8+0x1,_0x5bbdbd=0x0;for(;_0x190038[_0x570dbe]['id']!=_0x190038[_0x14a2e8]['pairId'];)'elementStart'==_0x190038[_0x570dbe]['type']?_0x5bbdbd++:'elementEnd'==_0x190038[_0x570dbe]['type']&&_0x5bbdbd--,_0x570dbe++;if(0x0!=_0x5bbdbd){if(_0x190038[_0x14a2e8]['isRemoved'])_0x190038[_0x14a2e8]['isIncorrect']=!0x0;else{for(;_0x570dbe!=_0x14a2e8;)_0x190038[_0x570dbe]['isRemoved']&&0x0!=_0x190038[_0x570dbe]['distance']&&(_0x190038[_0x570dbe]['isIncorrect']=!0x0,_0x55ef45['add'](_0x190038[_0x570dbe]['pairId'])),_0x570dbe--;}}}return _0x190038['filter'](_0x3ede1d=>!_0x3ede1d['isIncorrect']);}['_removeUnsupportedChanges'](_0x54690a){const _0x884675=this['editor']['model']['schema'];for(let _0x49d019=0x0;_0x49d019<_0x54690a['length'];_0x49d019++){if(!(_0x54690a[_0x49d019]['isAdded']||_0x54690a[_0x49d019]['isAddSuggestion']||_0x54690a[_0x49d019]['isRemoved']||_0x54690a[_0x49d019]['isRemoveSuggestion']))continue;if(0x0==_0x54690a[_0x49d019]['distance'])continue;const _0x91fd30=_0x54690a[_0x49d019]['item'];_0x884675['isBlock'](_0x91fd30)||_0x884675['isLimit'](_0x91fd30)||(_0x54690a[_0x49d019]['isAdded']&&delete _0x54690a[_0x49d019]['isAdded'],_0x54690a[_0x49d019]['isAddSuggestion']&&delete _0x54690a[_0x49d019]['isAddSuggestion'],_0x54690a[_0x49d019]['isRemoveSuggestion']&&delete _0x54690a[_0x49d019]['isRemoveSuggestion'],_0x54690a[_0x49d019]['isRemoved']&&(_0x54690a[_0x49d019]['isIncorrect']=!0x0));}return _0x54690a['filter'](_0x26fd02=>!_0x26fd02['isIncorrect']);}['_makeModelFromTape'](_0x48e0ac,_0x16fac2,_0x1eab2b){const _0x2398ff=new _0xdf8818(),_0x32db29=[],_0xdde649=new Map(),_0x2dc8f5=this['editor']['model'],_0x4f4c69=_0x2dc8f5['schema'],_0x4d167a=[_0x2398ff],_0x3df780={},_0x8b0390={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x8e1848=null;const _0x1a7e63=[0x0];for(let _0x257084=0x0;_0x257084<_0x48e0ac['length'];_0x257084++)if('elementStart'===_0x48e0ac[_0x257084]['type']){_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63);const _0x371a0a=new _0x24e097(_0x48e0ac[_0x257084]['item']['name'],_0x48e0ac[_0x257084]['item']['getAttributes']());_0x4d167a[0x0]['_appendChild'](_0x371a0a),_0x1a7e63['push'](0x0),_0x4d167a['unshift'](_0x371a0a),_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63);}else'elementEnd'===_0x48e0ac[_0x257084]['type']?(_0x4d167a['shift'](),_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63),_0x1a7e63['pop'](),_0x1a7e63[_0x1a7e63['length']-0x1]++,_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63)):(_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63),_0x8e1848?_0x8e1848['_data']+=_0x48e0ac[_0x257084]['item']['data']:_0x8e1848=new _0xa4be3c(_0x48e0ac[_0x257084]['item']['data'],_0x48e0ac[_0x257084]['item']['getAttributes']()),_0x48e0ac[_0x257084+0x1]&&'text'===_0x48e0ac[_0x257084+0x1]['type']&&_0x53623a(_0x8e1848,_0x48e0ac[_0x257084+0x1]['item'])||(_0x4d167a[0x0]['_appendChild'](_0x8e1848),_0x8e1848=null),_0x1a7e63[_0x1a7e63['length']-0x1]+=_0x48e0ac[_0x257084]['item']['offsetSize'],_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63));for(let _0x32d9c3=0x0;_0x32d9c3<_0x48e0ac['length'];_0x32d9c3++){const _0x5c524e=_0x48e0ac[_0x32d9c3]['previousPosition'],_0x2718c9=_0x48e0ac[_0x32d9c3]['nextPosition'];for(const _0x294b18 of _0x48e0ac[_0x32d9c3]['markersStart'])_0xdde649['set'](_0x294b18,{'start':_0x5c524e,'end':null});_0x5e2993('isRemoveSuggestion',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isAddSuggestion',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isRemoved',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isAdded',_0x32d9c3,_0x5c524e,_0x2718c9);for(const _0x1cfc4d of _0x48e0ac[_0x32d9c3]['markersEnd']){const _0x20e864=_0xdde649['get'](_0x1cfc4d);_0x20e864?_0x20e864['end']=_0x2718c9:_0xdde649['set'](_0x1cfc4d,{'start':_0x2718c9,'end':_0x2718c9});}}for(const [_0x15c0d3,_0x30c65b]of _0xdde649){const _0x3ac262=this['editor']['model']['createRange'](_0x30c65b['start'],_0x30c65b['end']);_0x2398ff['markers']['set'](_0x15c0d3,_0x3ac262);}return _0x32db29['sort']((_0x489b4f,_0x2f37a8)=>{const _0x10b6bc=_0x2398ff['markers']['get']('revision:'+_0x489b4f['id']),_0x4e18c6=_0x2398ff['markers']['get']('revision:'+_0x2f37a8['id']);return _0x10b6bc['start']['isBefore'](_0x4e18c6['start'])?-0x1:_0x10b6bc['start']['isAfter'](_0x4e18c6['start'])?0x1:_0x10b6bc['end']['isBefore'](_0x4e18c6['end'])?-0x1:_0x10b6bc['end']['isAfter'](_0x4e18c6['end'])?0x1:'add'===_0x489b4f['type']?-0x1:0x1;}),{'root':_0x2398ff,'changes':_0x32db29};function _0x5e2993(_0x2c5528,_0xdc1ee3,_0x21343c,_0x49c24c){const _0x32479b=!!_0x48e0ac[_0xdc1ee3][_0x2c5528],_0x217a2d=_0x32479b?_0x48e0ac[_0xdc1ee3][_0x2c5528]['userId']:null,_0x484a1a=_0xdc1ee3===_0x48e0ac['length']-0x1,_0x57524a=_0x8b0390[_0x2c5528][0x0],_0x1fe520=_0x4f4c69['isObject'](_0x48e0ac[_0xdc1ee3]['item']);!_0x3df780[_0x2c5528]&&_0x32479b?_0x3df780[_0x2c5528]={'start':_0x21343c,'tapeItem':_0x48e0ac[_0xdc1ee3],'userId':_0x217a2d,'type':_0x2c5528}:_0x3df780[_0x2c5528]&&!_0x32479b?(_0x3df780[_0x2c5528]['end']=_0x21343c,_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]=null):_0x3df780[_0x2c5528]&&_0x32479b&&_0x3df780[_0x2c5528]['userId']!==_0x217a2d&&(_0x3df780[_0x2c5528]['end']=_0x21343c,_0x57524a&&_0x57524a['userId']===_0x3df780[_0x2c5528]['userId']||_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]={'start':_0x21343c,'tapeItem':_0x48e0ac[_0xdc1ee3],'userId':_0x217a2d,'type':_0x2c5528}),_0x3df780[_0x2c5528]&&_0x1fe520&&('elementStart'!==_0x48e0ac[_0xdc1ee3]['type']||_0x57524a&&_0x57524a['userId']===_0x217a2d||_0x8b0390[_0x2c5528]['unshift']({'userId':_0x217a2d,'object':_0x48e0ac[_0xdc1ee3]['item'],'change':_0x3df780[_0x2c5528]}),'elementEnd'===_0x48e0ac[_0xdc1ee3]['type']&&_0x57524a&&_0x57524a['object']===_0x48e0ac[_0xdc1ee3]['item']&&(_0x8b0390[_0x2c5528]['shift'](),_0x3df780[_0x2c5528]=_0x57524a['change'])),_0x3df780[_0x2c5528]&&_0x484a1a&&(_0x3df780[_0x2c5528]['end']=_0x49c24c,_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]=null);}function _0x48abff({start:_0xb1c891,end:_0x122317,tapeItem:_0x2a83d1,userId:_0x5d17f1,type:_0x20fc78}){const _0x5ccb65=_0x2a83d1['item'],_0x3028e9=_0x2dc8f5['schema']['isBlock'](_0x5ccb65)&&!_0x2dc8f5['schema']['isLimit'](_0x5ccb65),_0xd1398c=_0xb1c891['nodeAfter']==_0x122317['parent']&&_0x122317['isAtStart'];if(_0x3028e9&&_0xd1398c)return;const _0x4721fb=_0x2dc8f5['createRange'](_0xb1c891,_0x122317),_0x1cf619=_0x16fac2['get'](_0x5d17f1),_0xe925e5=new G({'author':_0x1cf619,'type':'isAdded'==_0x20fc78||'isAddSuggestion'==_0x20fc78?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x20fc78||'isRemoveSuggestion'==_0x20fc78},'createdAt':new Date(),'rootName':_0x1eab2b});_0x32db29['push'](_0xe925e5),_0x2398ff['markers']['set']('revision:'+_0xe925e5['id'],_0x4721fb);}function _0x53623a(_0x5e4f7a,_0x4083cb){const _0xc8128c=_0x5e4f7a['getAttributes'](),_0x407fa6=_0x4083cb['getAttributes']();for(const _0x14b5db of _0xc8128c){if(_0x14b5db[0x1]!==_0x4083cb['getAttribute'](_0x14b5db[0x0]))return!0x1;_0x407fa6['next']();}return _0x407fa6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x389e3d=>{const _0x293ee2=_0x389e3d['markerName']['split'](':')[0x1],_0x30b0de=this['_getChangeFromId'](_0x293ee2);if(!_0x30b0de)return null;const _0x355e30='add'==_0x30b0de['type']?'insertion':'deletion',_0x4ee7f5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x355e30];return _0x30b0de['data']['isSuggestion']&&_0x4ee7f5['push']('ck-suggestion-marker-'+_0x355e30+'-new'),this['activeChange']==_0x30b0de&&_0x4ee7f5['push']('ck-suggestion-marker--active'),{'classes':_0x4ee7f5,'attributes':{'data-change-id':_0x293ee2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4b5be9=>{_0x4b5be9['on']('element:pre',(_0x1332de,_0x48ac28,_0x4abeba)=>{const _0x29b932=_0x48ac28['viewItem']['getChild'](0x0);if(!_0x29b932||!_0x29b932['is']('element','code'))return;if(!_0x4abeba['consumable']['consume'](_0x29b932,{'attributes':['vid_start','vid_end']}))return;const _0x2874e3=_0x48ac28['modelRange']['start']['nodeAfter'];_0x4abeba['writer']['setAttribute']('vid_start',_0x29b932['getAttribute']('vid_start'),_0x2874e3),_0x4abeba['writer']['setAttribute']('vid_end',_0x29b932['getAttribute']('vid_end'),_0x2874e3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8d7f20=>{_0x8d7f20['on']('element',(_0x4f5d0a,_0x5159f8,_0x30c3cb)=>{if(!_0x30c3cb['consumable']['consume'](_0x5159f8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5159f8['modelRange']['isCollapsed'])return;const _0x73f383=_0x5159f8['modelRange']['start']['nodeAfter'];_0x73f383['hasAttribute']('vid_start')||_0x73f383['hasAttribute']('vid')||(_0x30c3cb['writer']['setAttribute']('vid_start',_0x5159f8['viewItem']['getAttribute']('vid_start'),_0x73f383),_0x30c3cb['writer']['setAttribute']('vid_end',_0x5159f8['viewItem']['getAttribute']('vid_end'),_0x73f383));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13f80f=>_0x13f80f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe80d17,[,_0x20278d])=>{['vid_start','vid_end','vid']['includes'](_0x20278d)&&(_0xe80d17['return']=!0x0,_0xe80d17['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x41b6f5=>{_0x41b6f5['on']('attribute:vid',(_0x231c86,_0x5b080f,_0x334666)=>{if('\x20'!=_0x5b080f['item']['data']||_0x5b080f['item']['parent']['maxOffset']>0x1)return;if(!_0x334666['consumable']['consume'](_0x5b080f['item'],_0x231c86['name']))return;const _0x4aa0bc=_0x334666['writer'],_0x128dee=_0x334666['mapper']['toViewRange'](_0x5b080f['range']);_0x4aa0bc['wrap'](_0x128dee,_0x4aa0bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5d21cf){const _0x7e324a=_0x5d21cf['plugins']['get']('RevisionViewer');return(_0x16e008,_0x1e3046,_0x5aa9b5)=>{const _0x51c9c3=_0x1e3046['markerName']['split'](':')[0x1],_0x320b11=_0x7e324a['_getChangeFromId'](_0x51c9c3);if(!_0x320b11)return null;const _0x127d34='add'==_0x320b11['type']?'split':'merge';if(!_0x5aa9b5['consumable']['test'](_0x1e3046['markerRange'],_0x16e008['name']))return;const _0x5d72fe=_0x1e3046['markerRange']['getWalker'](),_0x256973=_0x1e3046['markerRange']['start'],_0x3cdccf=_0x5d21cf['model']['schema'];let _0x5a0f46=null,_0x17758f=null,_0x1c2dd2=!0x1,_0x543998=!0x1;for(const _0x5eb9c7 of _0x5d72fe){const _0x38c91e=_0x5eb9c7['item'];_0x1c2dd2=_0x1c2dd2||_0x3cdccf['isContent'](_0x38c91e);const _0x252b9f=_0x5aa9b5['mapper']['toViewElement'](_0x38c91e);if(_0x252b9f&&_0x252b9f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5eb9c7['type']&&(_0x3cdccf['isBlock'](_0x38c91e)&&!_0x3cdccf['isLimit'](_0x38c91e)&&(_0x38c91e['nextSibling']||_0x256973['isAtEnd']?_0x5a0f46&&_0x5a0f46['parent']==_0x38c91e||(_0x5a0f46=_0x38c91e,_0x2dc568(_0x5eb9c7['previousPosition']),_0x543998=!0x0):_0x17758f=_0x17758f||_0x5eb9c7['previousPosition']));}function _0x2dc568(_0x2fdf29){const _0x2fb211=_0x5aa9b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x127d34}),_0x250443=_0x5aa9b5['mapper']['toViewPosition'](_0x2fdf29);_0x320b11['data']['isSuggestion']&&_0x5aa9b5['writer']['addClass']('ck-suggestion-marker-'+_0x127d34+'-new',_0x2fb211),_0x7e324a['activeChange']==_0x320b11&&_0x5aa9b5['writer']['addClass']('ck-suggestion-marker--active',_0x2fb211),_0x5aa9b5['writer']['insert'](_0x250443,_0x2fb211),_0x5aa9b5['mapper']['bindElementToMarker'](_0x2fb211,_0x1e3046['markerName']);}_0x1c2dd2||_0x543998||!_0x17758f||_0x2dc568(_0x17758f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x40f5ae,_0x3ea56a,_0x3d6b8c)=>{const _0x26d97a=_0x3d6b8c['mapper']['markerNameToElements'](_0x3ea56a['markerName']);if(_0x26d97a){for(const _0x3d32d7 of _0x26d97a)(_0x3d32d7['hasClass']('ck-suggestion-marker-split')||_0x3d32d7['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d6b8c['mapper']['unbindElementFromMarkerName'](_0x3d32d7,_0x3ea56a['markerName']),_0x3d6b8c['writer']['remove'](_0x3d32d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x526ed8,_0x376fc2,_0x185ef9)=>{const _0x20bef4=_0x376fc2['markerName']['split'](':')[0x1],_0x2caace=this['_getChangeFromId'](_0x20bef4);if(!_0x2caace)return null;const _0x480805='add'==_0x2caace['type']?'split':'merge';if(_0x185ef9['consumable']['test'](_0x376fc2['markerRange'],_0x526ed8['name']))for(const _0x3b6611 of _0x376fc2['markerRange']['getItems']()){if(!_0x3b6611['is']('element','softBreak'))continue;const _0x4bcb1e=_0x185ef9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x480805}),_0x2ed529=_0x185ef9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b6611));_0x2caace['data']['isSuggestion']&&_0x185ef9['writer']['addClass']('ck-suggestion-marker-'+_0x480805+'-new',_0x4bcb1e),this['activeChange']==_0x2caace&&_0x185ef9['writer']['addClass']('ck-suggestion-marker--active',_0x4bcb1e),_0x185ef9['writer']['insert'](_0x2ed529,_0x4bcb1e),_0x185ef9['mapper']['bindElementToMarker'](_0x4bcb1e,_0x376fc2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4a414f=>{for(const _0xf98d37 of this['editor']['model']['document']['getRootNames']()){const _0x2aee44=this['editor']['model']['document']['getRoot'](_0xf98d37),_0x4a8efc=this['editor']['editing']['view']['document']['getRoot'](_0xf98d37);if(_0x4a8efc){const _0x41319f=_0x2aee44['getAttribute']('revisionHistoryAttachChange');if(_0x4a414f['removeAttribute']('data-change-id',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root-add',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root-remove',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root--active',_0x4a8efc),_0x41319f){const _0x24e0c1=this['_getChangeFromId'](_0x41319f);if(!_0x24e0c1)return null;_0x4a414f['setAttribute']('data-change-id',_0x41319f,_0x4a8efc),_0x4a414f['addClass']('ck-revision-history-root-'+_0x24e0c1['type'],_0x4a8efc),this['activeChange']==_0x24e0c1&&_0x4a414f['addClass']('ck-revision-history-root--active',_0x4a8efc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x50d755=>'revision-comment:'+_0x50d755,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x21259a=>'revision-suggestion:'+_0x21259a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x252c0f=>({'name':'suggestion:'+_0x252c0f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4632ac=>{const _0x38c9e5=_0x4632ac['markerName']['split'](':')[0x1];return'insertion'!=_0x38c9e5&&'deletion'!=_0x38c9e5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x38c9e5]};}}),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',(_0x2aea3e,_0x386665,_0x39f59a)=>{const _0x3eef49=_0x39f59a['mapper']['markerNameToElements'](_0x386665['markerName']);if(_0x3eef49){for(const _0x5aed90 of _0x3eef49)_0x5aed90['is']('uiElement')&&(_0x39f59a['mapper']['unbindElementFromMarkerName'](_0x5aed90,_0x386665['markerName']),_0x39f59a['writer']['remove'](_0x5aed90));}},{'priority':'high'});}['_getChangeFromId'](_0x30829e){return this['_changeIdToChange']['get'](_0x30829e);}['_getViewForChange'](_0x5a056b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5a056b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x56cd1d,_0x3416ec,_0xaa0e06,_0x4d6863)=>{_0x4d6863&&this['_balloon']['remove'](_0x4d6863),_0xaa0e06&&(this['_balloon']['add']({'view':_0xaa0e06,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x220abc=this['editor']['editing'],_0x2dc3a1=this['_getChangeFromId'](_0xaa0e06['changeId']);let _0x31dbf6;if(_0x2dc3a1['data']['isOnRoot']){const _0x538270=_0x220abc['view']['getDomRoot'](_0x2dc3a1['rootName']);_0x31dbf6=Array['from'](_0x538270['getClientRects']());}else{const _0x3145a6=this['editor']['model']['markers']['get']('revision:'+_0xaa0e06['changeId']);_0x31dbf6=Array['from'](_0x220abc['mapper']['markerNameToElements'](_0x3145a6['name']))['map'](_0x575260=>_0x220abc['view']['domConverter']['mapViewToDom'](_0x575260))['map'](_0x22652d=>Array['from'](_0x22652d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31dbf6[0x0];return _0x31dbf6['find'](_0x355b32=>_0x355b32['top']-0x3<=this['_activeViewTarget']['y']&&_0x355b32['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x355b32['left']-0x3<=this['_activeViewTarget']['x']&&_0x355b32['right']+0x3>=this['_activeViewTarget']['x'])||_0x31dbf6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2a4ea3,_0x28c035,_0x3e929f,_0x50824e)=>{this['activeView']=_0x3e929f?this['_getViewForChange'](_0x3e929f):null,this['editor']['model']['change'](()=>{const _0x19e5f5=this['editor']['editing'];_0x50824e&&(_0x50824e['data']['isOnRoot']?_0x19e5f5['view']['change'](_0x23f401=>{_0x23f401['removeClass']('ck-revision-history-root--active',_0x19e5f5['view']['document']['getRoot'](_0x50824e['rootName']));}):_0x19e5f5['reconvertMarker']('revision:'+_0x50824e['id'])),_0x3e929f&&(_0x3e929f['data']['isOnRoot']?_0x19e5f5['view']['change'](_0x30c772=>{_0x30c772['addClass']('ck-revision-history-root--active',_0x19e5f5['view']['document']['getRoot'](_0x3e929f['rootName']));}):_0x19e5f5['reconvertMarker']('revision:'+_0x3e929f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x192c88,_0x4e4258)=>{if(this['activeChange'])return;const _0x514646=this['_findChangeIdFromDomTarget'](_0x4e4258['target']),_0xf0ed83=this['_changeIdToChange']['get'](_0x514646);_0xf0ed83?(this['_activeViewTarget']={'x':_0x4e4258['domEvent']['x'],'y':_0x4e4258['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf0ed83)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x188c40,_0x53d14d)=>{const _0x544b46=this['_findChangeIdFromDomTarget'](_0x53d14d['target']),_0x39d5ea=this['_changeIdToChange']['get'](_0x544b46);_0x39d5ea?(this['_activeViewTarget']={'x':_0x53d14d['domEvent']['x'],'y':_0x53d14d['domEvent']['y']},_0x39d5ea===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x39d5ea):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x34716d){do{const _0x25bf55=_0x34716d['getAttribute']('data-change-id');if(_0x25bf55)return _0x25bf55;_0x34716d=_0x34716d['parent'];}while(_0x34716d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x36c5de=>{for(const _0x2209e3 of this['editor']['model']['markers'])_0x36c5de['removeMarker'](_0x2209e3);});}}function Q(_0x21b483,_0x3c1d64){return(_0x87992e,_0x471523,_0x297cbb)=>{if(!_0x297cbb['consumable']['test'](_0x471523['markerRange'],_0x87992e['name']))return;const _0x2c0fc2=_0x471523['markerRange']['getWalker'](),_0x17cbd4=_0x471523['markerRange']['start'],_0x416cab=_0x21b483['model']['schema'];let _0x49dc1b=null,_0x4af057=null,_0x4d5e1b=!0x1,_0x4fdb53=!0x1;for(const _0x29323c of _0x2c0fc2){const _0x330bae=_0x29323c['item'];_0x4d5e1b=_0x4d5e1b||_0x416cab['isContent'](_0x330bae);const _0x5b9863=_0x297cbb['mapper']['toViewElement'](_0x330bae);if(_0x5b9863&&_0x5b9863['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29323c['type']&&(_0x416cab['isBlock'](_0x330bae)&&!_0x416cab['isLimit'](_0x330bae)&&(_0x330bae['nextSibling']||_0x17cbd4['isAtEnd']?_0x49dc1b&&_0x49dc1b['parent']==_0x330bae||(_0x49dc1b=_0x330bae,_0x470142(_0x29323c['previousPosition']),_0x4fdb53=!0x0):_0x4af057=_0x4af057||_0x29323c['previousPosition']));}function _0x470142(_0x5efc2f){const _0x2e5857=_0x297cbb['mapper']['toViewPosition'](_0x5efc2f),_0xbf189e=_0x297cbb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3c1d64});_0x297cbb['writer']['insert'](_0x2e5857,_0xbf189e),_0x297cbb['mapper']['bindElementToMarker'](_0xbf189e,_0x471523['markerName']);}_0x4d5e1b||_0x4fdb53||!_0x4af057||_0x470142(_0x4af057);};}class nt extends _0x3005ae{constructor(_0x47b6f0){super(_0x47b6f0);const _0x21395a=_0x47b6f0['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x21395a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21395a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41ccbf=this['editor'],_0x30e7ea=_0x41ccbf['plugins']['get'](l),_0x4c37c3=_0x30e7ea['isReady']?_0x30e7ea['diff']['newRevisionId']:null;_0x41ccbf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4c37c3);}['refresh'](){const {isReady:_0x28ae53,isEnabled:_0x27bab4,repository:_0x5b67b0,diff:_0x31d685}=this['editor']['plugins']['get'](l),_0x47ef3b=_0x31d685&&_0x5b67b0['getLaterVisibleRevision'](_0x31d685['newRevisionId']);this['isEnabled']=_0x28ae53&&_0x27bab4&&Boolean(_0x47ef3b);}}class ot extends _0x3005ae{['_step'];constructor(_0x2ef336,{direction:_0x47f27c}){super(_0x2ef336);const _0x921ff9=_0x2ef336['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x47f27c?0x1:-0x1,this['listenTo'](_0x921ff9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x921ff9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x921ff9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x435167=this['editor'],_0x18c180=_0x435167['plugins']['get'](l),{isNavigationMode:_0x4a0a57,currentChangeNumber:_0x38fc74}=_0x18c180;let _0x43533c;if(_0x18c180['activeChange']=_0x4a0a57?_0x18c180['diff']['changes']['get'](_0x38fc74+this['_step']):_0x18c180['diff']['changes']['first'],_0x18c180['activeChange']['data']['isOnRoot'])_0x43533c=_0x435167['editing']['view']['getDomRoot'](_0x18c180['activeChange']['rootName']);else{const _0x415f7a=_0x435167['model']['markers']['get']('revision:'+_0x18c180['activeChange']['id']);_0x43533c=_0x444498(_0x435167['editing'],_0x415f7a);}_0x5ede0c({'target':_0x43533c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cbe3d,currentChangeNumber:_0x183062,numberOfChanges:_0x39c895,isReady:_0x157e87,isEnabled:_0x23eac3}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x23eac3&&_0x157e87&&_0x39c895)&&(!_0x2cbe3d||(0x1===this['_step']?_0x183062<_0x39c895-0x1:_0x183062>0x0));}}class xi extends _0x3ecb12{constructor(_0x3caf91){super(_0x3caf91);const _0xf32b3d=this['bindTemplate'],_0x3fa51c=new _0x5c81a4(_0x3caf91),_0x7251ad=new _0x5c81a4(_0x3caf91);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',(_0x435db8,_0x4bd796)=>_0x435db8&&_0x4bd796>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x517297,_0x11ea79,_0x2cf47f,_0x497c5e)=>{if(!_0x517297)return R(_0x3caf91,'Loading...');if(!_0x2cf47f)return R(_0x3caf91,'No\x20changes');const _0xe29316=R(_0x3caf91,'NUMBER_OF_CHANGES',_0x2cf47f);return _0x497c5e?R(_0x3caf91,'X_OF_Y_CHANGES',[_0x11ea79+0x1,_0x2cf47f]):_0xe29316;}),_0x3fa51c['set']({'label':R(_0x3caf91,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2929a1}),_0x7251ad['set']({'label':R(_0x3caf91,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x69ef5d}),_0x3fa51c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x7251ad['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3fa51c['on']('execute',()=>this['fire']('execute','backward')),_0x7251ad['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',_0xf32b3d['if']('_isStatusLabelVisible','ck-hidden',_0x341a37=>!_0x341a37)]},'children':[{'text':_0xf32b3d['to']('isNavigationMode',_0x3d5ca7=>_0x3d5ca7?R(_0x3caf91,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3caf91,'Total')+':\x20')}]},{'text':_0xf32b3d['to']('_statusText')}]},new _0x19f4e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3fa51c,_0x7251ad]}]});}}const ge='ck-editor__editable__loading-overlay';class Ri extends _0x4b6c22{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x25993b=this['editor']['editing']['view'];_0x25993b['change'](_0x4da46c=>{for(const _0x2dad6d of _0x25993b['document']['roots'])_0x4da46c['addClass'](ge,_0x2dad6d);});}['hide'](){const _0x41b5c2=this['editor']['editing']['view'];_0x41b5c2['change'](_0x489668=>{for(const _0x3b47f8 of _0x41b5c2['document']['roots'])_0x489668['removeClass'](ge,_0x3b47f8);});}}class u extends _0x4b6c22{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,Ri];}['init'](){const _0x5a1e57=this['editor'],_0x204a9e=_0x5a1e57['plugins']['get'](l),_0x2fbd74=_0x5a1e57['plugins']['get'](Ri);_0x5a1e57['ui']['componentFactory']['add']('exitToEditing',_0x399f81=>{const _0xc57f8=new _0x5c81a4(_0x399f81);return _0xc57f8['set']({'label':R(_0x399f81,'Back\x20to\x20editing'),'icon':_0x52a6c2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xc57f8,'execute',()=>{_0x5a1e57['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xc57f8;}),_0x5a1e57['ui']['componentFactory']['add']('restoreRevision',_0x2926d8=>{const _0x30892a=new _0x5c81a4(_0x2926d8);return _0x30892a['set']({'label':R(_0x2926d8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x30892a['bind']('isEnabled')['to'](_0x5a1e57['commands']['get']('restoreRevision')),this['listenTo'](_0x30892a,'execute',()=>_0x5a1e57['execute']('restoreRevision')),_0x30892a;}),_0x5a1e57['ui']['componentFactory']['add']('changesNavigation',_0x35e604=>{const _0x45a7c4=new xi(_0x35e604),_0x2dcbf3=_0x5a1e57['commands']['get']('showPreviousChange'),_0x51b2cb=_0x5a1e57['commands']['get']('showNextChange');return _0x45a7c4['bind']('isBackwardNavigationEnabled')['to'](_0x2dcbf3,'isEnabled'),_0x45a7c4['bind']('isForwardNavigationEnabled')['to'](_0x51b2cb,'isEnabled'),_0x45a7c4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x204a9e),this['listenTo'](_0x45a7c4,'execute',(_0x3bd5f5,_0x10713f)=>{_0x5a1e57['execute']('forward'===_0x10713f?'showNextChange':'showPreviousChange');}),_0x45a7c4;}),_0x2fbd74['show'](),_0x204a9e['on']('change:isReady',(_0x114a15,_0x412822,_0x1813fa)=>{_0x1813fa?_0x2fbd74['hide']():_0x2fbd74['show']();});}}class _i extends ti{['_resizeObserver']=null;constructor(_0x1a1c7f,_0xf04268){super(_0x1a1c7f,_0xf04268);const _0x3fb147=this['bindTemplate'];this['set']({'label':R(_0x1a1c7f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1a1c7f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3fb147['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x353a4c=this['fieldView']['element'];this['_tooltipString']=_0x353a4c['scrollWidth']>_0x353a4c['clientWidth']&&_0x353a4c['value']||'';}}class bi extends _0x3ecb12{constructor(_0x5b94dd,_0x4223b5,_0x3f3bfc){super(_0x5b94dd);const _0x269efb=new _0x32fa98();_0x269efb['set']({'content':_0x277b2d,'viewBox':'0\x200\x2011\x2010'});const _0x13dd66=['ck','ck-revision-history-sidebar__revision-author'];_0x3f3bfc&&_0x13dd66['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1c081a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5b94dd,_0x3f3bfc?'Revision\x20creator':'Revision\x20author')},'children':[_0x269efb,_0x4223b5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x13dd66},'children':_0x1c081a});}}function ki(_0x2b4ab4,_0x1350a5){const _0x23ce34=_0x2b4ab4['bindTemplate'],_0x289422=_0x2b4ab4['locale'],_0x59bd8d=_0x195a39(_0x289422);_0x59bd8d['panelPosition']='sw';const _0x48fa0e=function(_0x314e15,_0x5dcb01){const _0x5ee1a9=function(_0x2ce95f,_0x974130){const _0x15fc29=_0x2ce95f['locale'],_0x334f94={'Compare\x20against\x20selected':R(_0x15fc29,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x15fc29,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x15fc29,'Restore\x20this\x20revision')};return _0x974130['map'](_0x46f2b1=>{const _0x42fd5f=_0x334f94[_0x46f2b1['name']];return _0x42fd5f&&_0x42fd5f!==_0x46f2b1['name']&&(_0x46f2b1['name']=_0x42fd5f),_0x46f2b1;});}(_0x314e15,_0x5dcb01),_0x4933e4=new _0x5d0537();for(const _0x2fb655 of _0x5ee1a9){const _0x418a90={'type':'button','model':new to({'label':_0x2fb655['name'],'class':_0x2fb655['class'],'withText':!0x0,'role':'menuitem','_action':_0x2fb655['action']})};_0x418a90['model']['bind']('isEnabled')['to'](_0x314e15,'isActionsDropdownOpen',_0x24ad1c=>'function'!=typeof _0x2fb655['isEnabled']||(!_0x24ad1c||_0x2fb655['isEnabled'](_0x314e15))),_0x4933e4['add'](_0x418a90);}return _0x4933e4;}(_0x2b4ab4,_0x1350a5);return _0x2b4ab4['bind']('isActionsDropdownOpen')['to'](_0x59bd8d,'isOpen'),_0x59bd8d['buttonView']['set']({'label':R(_0x289422,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c4fb7}),_0x59bd8d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23ce34['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23ce34['to'](_0x40a7b6=>_0x40a7b6['stopPropagation']())}}),_0x59bd8d['on']('execute',_0x1a1f5c=>{_0x2b4ab4['isReady']&&'function'==typeof _0x1a1f5c['source']['_action']&&_0x1a1f5c['source']['_action'](_0x2b4ab4);}),_0x1a4bab(_0x59bd8d,_0x48fa0e,{'role':'menu'}),_0x59bd8d['listenTo'](_0x2b4ab4,'change:isActionsDropdownOpen',(_0x2f400b,_0x43a142,_0x362214)=>{if(_0x362214)for(const _0x23ace7 of _0x59bd8d['listView']['items']){const _0x2dd330=_0x23ace7['children']['first'],_0x377958=_0x1350a5['find'](_0x76620a=>_0x76620a['action']===_0x2dd330['_action'])['isVisible'];_0x23ace7['isVisible']=void 0x0===_0x377958||_0x377958(_0x2b4ab4);}}),_0x59bd8d;}class ci extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xf82478(_0x3ecb12){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2dc219,_0xc3fb70,_0x1c8ead,_0x213b9c){super(_0x2dc219);const _0x4c3491=this['bindTemplate'],_0x3a43e8=function(_0x55defb,_0x5bf217){const _0x2fe854=Array['from'](_0x5bf217['authors'])['filter'](_0x3b7e2b=>_0x3b7e2b!=_0x5bf217['creator']);return _0x5bf217['creator']&&_0x2fe854['unshift'](_0x5bf217['creator']),_0x2fe854['map'](_0x529f9a=>new bi(_0x55defb,_0x529f9a,_0x529f9a==_0x5bf217['creator']));}(_0x2dc219,_0xc3fb70);this['id']=_0xc3fb70['id'],this['_revision']=_0xc3fb70,this['_requireRevisionName']=_0x213b9c,this['bind']('name','createdAt')['to'](_0xc3fb70),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x363fd9=>{return _0x4f5213=_0x2dc219['uiLanguage'],(_0x5544f4=_0x363fd9)['toLocaleDateString'](_0x4f5213,{'month':'long','day':'numeric'})+',\x20'+_0x5544f4['toLocaleTimeString'](_0x4f5213,{'hour':'numeric','minute':'numeric'});var _0x4f5213,_0x5544f4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new _i(_0x2dc219,_0x5b55e3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33716f=>_0x33716f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3e2f8c,_0x4c6e4a)=>_0x3e2f8c&&_0x4c6e4a),this['revisionActionsView']=_0x1c8ead&&_0x1c8ead['length']?ki(this,_0x1c8ead):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4c3491['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4c3491['if']('isEnabled','ck-disabled',_0x50211c=>!_0x50211c),_0x4c3491['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4c3491['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4c3491['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':_0x4c3491['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':_0x3a43e8}]},this['revisionActionsView']],'on':{'click':_0x4c3491['to'](_0x4885ca=>{_0x4885ca['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x20aef4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x20aef4,'change',()=>{this['_requireRevisionName']&&!_0x20aef4['value']||this['fire']('setName',{'id':this['id'],'name':_0x20aef4['value']}),_0x20aef4['value']||(_0x20aef4['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x43e672,_0x4defce){const _0x510e3f=_0x3505de['fromJSDate'](_0x43e672)['setLocale'](_0x4defce),_0x2b067b=_0x3505de['local'](),_0x3281e3=_0x2b067b['minus']({'days':0x1})['startOf']('day');let _0x42dfce,_0x191238;return _0x510e3f['hasSame'](_0x2b067b,'day')?(_0x42dfce=_0x510e3f['startOf']('day')['toJSDate'](),_0x191238=_0x510e3f['toRelativeCalendar']()):_0x510e3f['hasSame'](_0x3281e3,'day')?(_0x42dfce=_0x3281e3['toJSDate'](),_0x191238=_0x510e3f['toRelativeCalendar']()):_0x510e3f['hasSame'](_0x2b067b,'week')?(_0x42dfce=_0x510e3f['startOf']('week')['toJSDate'](),_0x191238=_0x510e3f['weekdayLong']||''):_0x510e3f['hasSame'](_0x2b067b,'year')?(_0x42dfce=_0x510e3f['startOf']('month')['toJSDate'](),_0x191238=_0x510e3f['monthLong']||''):(_0x42dfce=_0x510e3f['startOf']('year')['toJSDate'](),_0x191238=String(_0x510e3f['year'])),{'startDate':_0x42dfce,'localizedPeriodName':_0x191238};}class vi extends _0x3ecb12{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d971f,_0x266b31,_0x480acf,_0x30e28e){super(_0x2d971f);const _0x5cf6fc=di(_0x266b31,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x266b31,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x480acf,this['_requireRevisionName']=_0x30e28e,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':_0x5cf6fc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xadfbd5){const _0x57d7e6=new ci(this['locale'],_0xadfbd5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x57d7e6);}['removeRevision'](_0x279087){const _0x3bd855=this['revisionViews']['find'](_0x1a8239=>_0x1a8239['id']===_0x279087['id']);this['revisionViews']['remove'](_0x3bd855);}}class mi extends _0x3ecb12{constructor(_0x55cb62){super(_0x55cb62);const _0x4eb7f6=new _0x32fa98();_0x4eb7f6['content']=_0x255ec9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4eb7f6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x55cb62,'Revision\x20history')]}]});}}class ai extends _0x3ecb12{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f2e0b,_0x5051a7,_0x397860,_0x2d222c){super(_0x2f2e0b);const _0x3439a9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5051a7,this['_revisionActions']=_0x397860,this['_requireRevisionName']=_0x2d222c,this['on']('select',(_0x29828a,_0x2bf986)=>{this['fire']('revisionSelected',_0x2bf986);}),this['on']('setName',(_0x17f619,_0x1a175e)=>{this['fire']('revisionSetName',_0x1a175e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new mi(_0x2f2e0b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3439a9['if']('isEnabled','ck-disabled',_0x46cffa=>!_0x46cffa)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x440661 of this['_revisions'])this['_addRevision'](_0x440661);this['_revisions']['on']('add',(_0x1c120e,_0x3986e2)=>{this['_addRevision'](_0x3986e2);}),this['_revisions']['on']('remove',(_0x39efa6,_0x453203)=>{this['_removeRevision'](_0x453203);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x507a96=>_0x507a96['revisionViews']['map'](_0x478498=>_0x478498))['flat']();}['selectRevision'](_0x5d6774){for(const _0x43928d of this['revisionViews'])_0x5d6774&&_0x5d6774['id']===_0x43928d['id']?_0x43928d['select']():_0x43928d['deselect']();}['highlightRevisions'](_0x5dc212){for(const _0x1339cb of this['revisionViews'])_0x5dc212['some'](({id:_0xaec3d4})=>_0xaec3d4===_0x1339cb['id'])?_0x1339cb['highlight']():_0x1339cb['unhighlight']();}['_addRevision'](_0x579406){const _0x462ef0=di(_0x579406['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x29c045=this['timePeriodViews']['get'](0x0);_0x29c045&&_0x29c045['startDate']['getTime']()===_0x462ef0['getTime']()||(_0x29c045=new vi(this['locale'],_0x462ef0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x29c045)),_0x29c045['addRevision'](_0x579406);}['_removeRevision'](_0x1aca1d){const _0x71009a=di(_0x1aca1d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x71009a)['removeRevision'](_0x1aca1d);}['_getTimePeriodViewByStartDate'](_0x2d3442){return this['timePeriodViews']['find'](_0xc327da=>_0xc327da['startDate']['getTime']()===_0x2d3442['getTime']());}}class f extends _0x4b6c22{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x2846a4(_0x5f5802){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ab3c2,_0xa2104d){super(_0xa2104d),this['sourceElement']=_0x2ab3c2,this['model']['document']['createRoot']();const _0x22a9dc=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x22a9dc);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1ba14b,_0x2d1f2a){const _0x4a48db=new this(_0x1ba14b,_0x2d1f2a);return await _0x4a48db['initPlugins'](),await _0x4a48db['ui']['init'](_0x1ba14b),await _0x4a48db['data']['init'](_0x4a48db['config']['get']('initialData')||''),_0x4a48db['fire']('ready'),_0x4a48db;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x42167a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x267da2){function _0x2735b7(_0x48a2bb){return _0x48a2bb['map'](_0x5cd8d8=>String['fromCharCode'](_0x5cd8d8))['join']('');}super(_0x267da2),this['result']='end',_0x267da2[_0x2735b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2735b7([0x76,0x69,0x65,0x77])][_0x2735b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2735b7([0x61,0x75,0x74,0x6f]),_0x267da2[_0x2735b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2735b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2735b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2735b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2735b7([0x6f,0x6b])});}}class ct extends _0x42167a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x5d6ec3){if(super(_0x5d6ec3),!this['editor']['config']['get']('revisionHistory'))throw new _0x3c38dd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x369548=>this['_showRevisionViewer']({..._0x369548,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x360f21=>this['_closeRevisionViewer'](_0x360f21)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4ce1c1=>this['_restoreRevision'](_0x4ce1c1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x286a64){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x286a64;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x45ad89){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x45ad89);}['getRevision'](_0x457479){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x457479);}['getRevisions'](_0x5e9bc5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5e9bc5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3466d9=this['editor'],_0x747c0c=_0x56c73f(_0x3466d9,d),_0x25088f=_0x3466d9['plugins']['get']('RevisionTracker'),_0x25ef6c=_0x3466d9['plugins']['get']('Users')['users'];return _0x747c0c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x747c0c['lazyRoots'],(_0x747c0c['plugins']['push'](ht,l,u,class extends _0x42167a{static get['requires'](){return[l,'Users'];}['init'](){const _0x3ba0f0=this['editor']['plugins']['get']('Users');for(const _0x32254b of _0x25ef6c)_0x32254b['isAnonymous']||_0x3ba0f0['getUser'](_0x32254b['id'])||_0x3ba0f0['addUser'](_0x32254b);const _0x4ee824=_0x25088f['repository']['getRevisions']();let _0x379a60=null;const _0x1aacbe=this['editor']['plugins']['get']('RevisionViewer');_0x1aacbe['adapter']=_0x25088f['adapter'],_0x1aacbe['bind']('isEnabled')['to'](_0x25088f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3466d9,'isReadOnly',_0x2ef527=>!_0x2ef527);for(const _0x59b1f9 of _0x4ee824){const _0x375bad=null===_0x59b1f9['creator'];if(_0x375bad&&_0x59b1f9['toVersion']===_0x59b1f9['fromVersion'])continue;const _0x5414e6=_0x59b1f9['toJSON']();_0x1aacbe['addRevisionData'](_0x5414e6,(_0x1b2149,_0x143837,_0x37095f)=>{if(_0x375bad){if(_0x379a60)_0x379a60['_update'](_0x1b2149,_0x143837);else{if(!_0x143837){const _0x3f2923=_0x37095f['toJSON']();_0x3f2923['id']=_0x54a7d7(),_0x25088f['saveRevision'](_0x3f2923,_0x37095f['toVersion'])['then'](_0x143f46=>{_0x379a60=_0x143f46;});}}}else _0x59b1f9['_update'](_0x1b2149,_0x143837);});}}},f),_0x747c0c);}['_enhanceShowRevisionViewerCallback'](){const _0x585551=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x299d47=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x27a7c0=this['editor']['plugins']['get']('Autosave');await _0x27a7c0['save']();}else await _0x299d47['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x15fbe2=this['editor']['plugins']['get']('Dialog');_0x15fbe2['isOpen']&&_0x15fbe2['hide']();}const _0x286e55=this['_getRevisionViewerEditorConfig']();return _0x585551(_0x286e55)['then'](_0x10b099=>{return(this['_viewerEditor']=_0x10b099,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'),_0x10b099);})['catch'](_0xc27190=>(console['error'](_0xc27190),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x424544=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'](),_0x424544(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3e62af=this['editor']['plugins']['get']('Annotations');_0x3e62af['refreshVisibility'](),_0x3e62af['refreshPositioning']();}})));}['_showRevisionViewer'](_0x293141){const _0x54ffdb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4abdde=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d571a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4d571a,_0x293141)['then'](_0x48aa3d=>(_0x4abdde['style']['display']='block',_0x54ffdb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x48aa3d));}['_closeRevisionViewer'](_0x61ce25){const _0x205b59=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x205b59['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x61ce25['destroy']();}async['_restoreRevision'](_0x5cb073){const _0x4f03a0=this['editor'],_0x1dc527=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x517ab4=_0x4f03a0['plugins']['get']('RevisionTracker'),_0x363ffe=_0x4f03a0['plugins']['get']('RevisionHistoryUtils'),_0x3bf6b9=_0x1dc527['repository']['getRevision'](_0x5cb073);let _0x273bea,_0x3cb3c9,_0x2cda65;try{await _0x363ffe['loadRevisionData'](_0x3bf6b9,this['adapter']),_0x273bea=_0x363ffe['getRevisionDocumentData'](_0x3bf6b9),_0x3cb3c9=_0x363ffe['getRevisionRootsAttributes'](_0x3bf6b9);}catch(_0x28c376){return void console['error'](_0x28c376);}_0x4f03a0['model']['change'](_0x2edd7e=>{for(const _0x1450ab of Array['from'](_0x4f03a0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2edd7e['removeMarker'](_0x1450ab);}),_0x1dc527['isReady']=!0x1,_0x4f03a0['model']['enqueueChange'](_0x246314=>{_0x246314['setSelection'](null),_0x246314['removeSelectionAttribute'](_0x4f03a0['model']['document']['selection']['getAttributeKeys']());const _0x151d1e=Object['keys'](_0x273bea);for(const _0x1cbc82 of _0x4f03a0['model']['document']['roots'])'$graveyard'!=_0x1cbc82['rootName']&&_0x1cbc82['isAttached']()&&!_0x151d1e['includes'](_0x1cbc82['rootName'])&&_0x246314['detachRoot'](_0x1cbc82);for(const _0x2de968 of _0x151d1e){let _0x4baf8c=_0x4f03a0['model']['document']['getRoot'](_0x2de968);_0x4baf8c&&_0x4baf8c['isAttached']()||(_0x4baf8c=_0x246314['addRoot'](_0x2de968));const _0x492fc1=_0x3cb3c9[_0x2de968],_0x389284=Object['keys'](_0x492fc1),_0xd41b6f=_0x273bea[_0x2de968];for(const _0x3a0184 of _0x4baf8c['getAttributeKeys']())_0x389284['includes'](_0x3a0184)||_0x246314['removeAttribute'](_0x3a0184,_0x4baf8c);for(const _0x316c99 of _0x389284)_0x246314['setAttribute'](_0x316c99,_0x3cb3c9[_0x2de968][_0x316c99],_0x4baf8c);_0x246314['remove'](_0x246314['createRangeIn'](_0x4baf8c)),_0x246314['insert'](_0x4f03a0['data']['parse'](_0xd41b6f,_0x4baf8c),_0x4baf8c,0x0);}});const _0x1b6331=R(_0x4f03a0['locale'],'Restored');if(_0x3bf6b9['name'])_0x2cda65=-0x1==_0x3bf6b9['name']['indexOf'](_0x1b6331)?_0x1b6331+':\x20'+_0x3bf6b9['name']:_0x3bf6b9['name'];else _0x2cda65=_0x1b6331+':\x20'+(_0x3bf6b9['createdAt']['toLocaleDateString'](_0x4f03a0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3bf6b9['createdAt']['toLocaleTimeString'](_0x4f03a0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x517ab4['saveRevision']({'name':_0x2cda65}),_0x1dc527['isReady']=!0x0,_0x4f03a0['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};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x4d87c8){super(_0x4d87c8),this['_revisionViewer']=_0x4d87c8['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5b9e1c=this['_revisionsRepository']['_revisions'],_0x2c6a59=this['_createRevisionActions'](),_0x549291=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ai(this['editor']['locale'],_0x5b9e1c,_0x2c6a59,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',(_0x575c4d,_0xb4a55c)=>{_0xb4a55c['revisionViews']['on']('add',(_0x2166fd,_0x2ccf9f)=>{_0x2ccf9f['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)),_0x549291['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4e969b=this['_revisionsRepository']['getRevision'](0x0);if(_0x4e969b){const _0x45acb4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e969b['id']);this['_revisionViewer']['compare'](_0x4e969b,_0x45acb4);}}['_handleRevisionSelected'](_0x252e15,_0x472737){const _0x304c77=this['_revisionsRepository']['getRevision'](_0x472737['id']),_0xfb155e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x304c77['id']);this['_revisionViewer']['compare'](_0x304c77,_0xfb155e);}['_handleRevisionSetName'](_0x35ec40,_0x4a00e9){this['_revisionsRepository']['getRevision'](_0x4a00e9['id'])['setName'](_0x4a00e9['name']);}['_handleDiffChange'](_0x54ce71,_0x4b6a8c,_0x48d1b9){const _0x3178e5=this['_revisionsRepository']['getRevisionsInDiff'](_0x48d1b9);_0x3178e5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3178e5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3178e5[0x0]));}['_createRevisionActions'](){const _0x54d35a=this['editor'],_0x2ef5c3=f['availableRevisionActions'],_0x3140e1=_0x54d35a['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3140e1['length'])return _0x3140e1['map'](_0x10b8fe=>{const _0x36780b='string'==typeof _0x10b8fe?Object['assign']({},_0x2ef5c3[_0x10b8fe]):_0x10b8fe;return _0x36780b['action']=_0x36780b['action']['bind'](this,_0x54d35a),_0x36780b['isVisible']&&(_0x36780b['isVisible']=_0x36780b['isVisible']['bind'](this,_0x54d35a)),_0x36780b;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x33bcf7},_0x1ae049)=>{const _0x4d0ce1=_0x33bcf7['get'](l),_0x200f68=_0x4d0ce1['repository'];let _0x3f845a=_0x4d0ce1['diff']['newRevisionId'],_0x1727ba=_0x1ae049['id'];_0x200f68['getIndex'](_0x3f845a)>_0x200f68['getIndex'](_0x1727ba)&&([_0x3f845a,_0x1727ba]=[_0x1727ba,_0x3f845a]),_0x4d0ce1['compare'](_0x3f845a,_0x1727ba);},'isVisible':({plugins:_0x54af1a},_0x553e2b)=>{const _0xf329b2=_0x54af1a['get'](l);return!(_0xf329b2['repository']['getRevisionsInDiff'](_0xf329b2['diff'])['length']>0x2)&&!_0x553e2b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12fcde,{id:_0x29a1b3})=>{_0x12fcde['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29a1b3);},'isVisible':({plugins:_0x35b905},_0x11048d)=>!!_0x35b905['get'](l)['repository']['getLaterVisibleRevision'](_0x11048d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x279f8b},{id:_0x531ac0,revisionNameView:_0x44e588})=>{const _0xa0a30f=_0x279f8b['get'](l),_0x38fb60=_0xa0a30f['repository']['getEarlierVisibleRevision'](_0x531ac0);_0xa0a30f['compare'](_0x531ac0,_0x38fb60),_0x44e588['focus'](),_0x44e588['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3f2e67,_0x1ff6ee){super(_0x3f2e67),this['_view']=_0x1ff6ee,this['_toolbarConfig']=st(_0x3f2e67['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x497be6){const _0x13ed4a=this['editor'],_0x3bd535=this['view'],_0x33e196=_0x13ed4a['editing']['view'],_0x4e366d=_0x3bd535['editable'],_0x3b5a59=_0x33e196['document']['getRoot']();_0x4e366d['name']=_0x3b5a59['rootName'],_0x3bd535['render']();const _0x390bc8=_0x4e366d['element'];this['setEditableElement'](_0x4e366d['name'],_0x390bc8),_0x3bd535['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x33e196['attachDomRoot'](_0x390bc8),this['_elementReplacer']['replace'](_0x497be6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e6588=this['view'],_0x132b24=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x132b24['detachDomRoot'](_0x3e6588['editable']['name']),_0x3e6588['destroy']();}['_initToolbar'](){const _0x2d645d=this['view'];_0x2d645d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2d645d['stickyPanel']['limiterElement']=_0x2d645d['element'],_0x2d645d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x27720b})=>_0x27720b),_0x2d645d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2d645d['toolbar']);}}class ii extends _0x3498aa{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5993f4,_0x448711,_0x52ecbe={}){super(_0x5993f4),this['stickyPanel']=new _0x885ae8(_0x5993f4),this['toolbar']=new _0x529c76(_0x5993f4,{'shouldGroupWhenFull':_0x52ecbe['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5993f4,_0x448711);}['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
|
+
_0x54c108(_0x34b6db){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x28c9be,_0x9e836c){super(_0x9e836c),this['sourceElement']=_0x28c9be,this['model']['document']['createRoot']();const _0x2183e8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2183e8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x56984e,_0x4f4426){const _0x22ba47=new this(_0x56984e,_0x4f4426);return await _0x22ba47['initPlugins'](),await _0x22ba47['ui']['init'](_0x56984e),await _0x22ba47['data']['init'](_0x22ba47['config']['get']('initialData')||''),_0x22ba47['fire']('ready'),_0x22ba47;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x4b6c22{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xecbd12){function _0x58c945(_0xefebbe){return _0xefebbe['map'](_0x49d9aa=>String['fromCharCode'](_0x49d9aa))['join']('');}super(_0xecbd12),this['result']='end',_0xecbd12[_0x58c945([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58c945([0x76,0x69,0x65,0x77])][_0x58c945([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58c945([0x61,0x75,0x74,0x6f]),_0xecbd12[_0x58c945([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58c945([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58c945([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58c945([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58c945([0x6f,0x6b])});}}class ht extends _0x4b6c22{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x575e9d){if(super(_0x575e9d),!this['editor']['config']['get']('revisionHistory'))throw new _0x13b40b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xbabf7c=>this['_showRevisionViewer']({..._0xbabf7c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3dd464=>this['_closeRevisionViewer'](_0x3dd464)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xcf2326=>this['_restoreRevision'](_0xcf2326)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1bbd4d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1bbd4d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x67a960){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x67a960);}['getRevision'](_0x361f4a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x361f4a);}['getRevisions'](_0x550209){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x550209||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3992a4=this['editor'],_0x14984e=_0x539216(_0x3992a4,d),_0x5a0e5e=_0x3992a4['plugins']['get']('RevisionTracker'),_0x59141b=_0x3992a4['plugins']['get']('Users')['users'];return _0x14984e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x14984e['lazyRoots'],(_0x14984e['plugins']['push'](at,l,u,class extends _0x4b6c22{static get['requires'](){return[l,'Users'];}['init'](){const _0x173086=this['editor']['plugins']['get']('Users');for(const _0x49a3b7 of _0x59141b)_0x49a3b7['isAnonymous']||_0x173086['getUser'](_0x49a3b7['id'])||_0x173086['addUser'](_0x49a3b7);const _0x5e7a60=_0x5a0e5e['repository']['getRevisions']();let _0x4614d6=null;const _0x7ec89e=this['editor']['plugins']['get']('RevisionViewer');_0x7ec89e['adapter']=_0x5a0e5e['adapter'],_0x7ec89e['bind']('isEnabled')['to'](_0x5a0e5e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3992a4,'isReadOnly',_0x10f58e=>!_0x10f58e);for(const _0x46114b of _0x5e7a60){const _0x343ee0=null===_0x46114b['creator'];if(_0x343ee0&&_0x46114b['toVersion']===_0x46114b['fromVersion'])continue;const _0x4c3302=_0x46114b['toJSON']();_0x7ec89e['addRevisionData'](_0x4c3302,(_0x4f5a36,_0x25daf8,_0x3eb91a)=>{if(_0x343ee0){if(_0x4614d6)_0x4614d6['_update'](_0x4f5a36,_0x25daf8);else{if(!_0x25daf8){const _0x319444=_0x3eb91a['toJSON']();_0x319444['id']=_0x2bd58b(),_0x5a0e5e['saveRevision'](_0x319444,_0x3eb91a['toVersion'])['then'](_0xbcee29=>{_0x4614d6=_0xbcee29;});}}}else _0x46114b['_update'](_0x4f5a36,_0x25daf8);});}}},f),_0x14984e);}['_enhanceShowRevisionViewerCallback'](){const _0xdeba9b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2de5d0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38b175=this['editor']['plugins']['get']('Autosave');await _0x38b175['save']();}else await _0x2de5d0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xd70b75=this['editor']['plugins']['get']('Dialog');_0xd70b75['isOpen']&&_0xd70b75['hide']();}const _0x5e8454=this['_getRevisionViewerEditorConfig']();return _0xdeba9b(_0x5e8454)['then'](_0xf85dde=>{return(this['_viewerEditor']=_0xf85dde,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'),_0xf85dde);})['catch'](_0x58a4dc=>(console['error'](_0x58a4dc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x239e06=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'](),_0x239e06(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x158f81=this['editor']['plugins']['get']('Annotations');_0x158f81['refreshVisibility'](),_0x158f81['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5a8e2b){const _0xfaa1f2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x500236=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc6b6c8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0xc6b6c8,_0x5a8e2b)['then'](_0x743dfc=>(_0x500236['style']['display']='block',_0xfaa1f2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x743dfc));}['_closeRevisionViewer'](_0x5f4bdf){const _0x5a1c16=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5a1c16['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5f4bdf['destroy']();}async['_restoreRevision'](_0x17c4b2){const _0x55df62=this['editor'],_0x227ecb=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x83f87e=_0x55df62['plugins']['get']('RevisionTracker'),_0x176563=_0x55df62['plugins']['get']('RevisionHistoryUtils'),_0x1657fc=_0x227ecb['repository']['getRevision'](_0x17c4b2);let _0x2e7c12,_0x1f39a0,_0x9f23b;try{await _0x176563['loadRevisionData'](_0x1657fc,this['adapter']),_0x2e7c12=_0x176563['getRevisionDocumentData'](_0x1657fc),_0x1f39a0=_0x176563['getRevisionRootsAttributes'](_0x1657fc);}catch(_0x5a5acb){return void console['error'](_0x5a5acb);}_0x55df62['model']['change'](_0x33f1ea=>{for(const _0x4fceae of Array['from'](_0x55df62['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33f1ea['removeMarker'](_0x4fceae);}),_0x227ecb['isReady']=!0x1,_0x55df62['model']['enqueueChange'](_0x5e8b9e=>{_0x5e8b9e['setSelection'](null),_0x5e8b9e['removeSelectionAttribute'](_0x55df62['model']['document']['selection']['getAttributeKeys']());const _0x1f44b6=Object['keys'](_0x2e7c12);for(const _0x749d91 of _0x55df62['model']['document']['roots'])'$graveyard'!=_0x749d91['rootName']&&_0x749d91['isAttached']()&&!_0x1f44b6['includes'](_0x749d91['rootName'])&&_0x5e8b9e['detachRoot'](_0x749d91);for(const _0x2c1772 of _0x1f44b6){let _0x42c2b5=_0x55df62['model']['document']['getRoot'](_0x2c1772);_0x42c2b5&&_0x42c2b5['isAttached']()||(_0x42c2b5=_0x5e8b9e['addRoot'](_0x2c1772));const _0x2d5dac=_0x1f39a0[_0x2c1772],_0x550d9c=Object['keys'](_0x2d5dac),_0x258420=_0x2e7c12[_0x2c1772];for(const _0x21601c of _0x42c2b5['getAttributeKeys']())_0x550d9c['includes'](_0x21601c)||_0x5e8b9e['removeAttribute'](_0x21601c,_0x42c2b5);for(const _0x4886f6 of _0x550d9c)_0x5e8b9e['setAttribute'](_0x4886f6,_0x1f39a0[_0x2c1772][_0x4886f6],_0x42c2b5);_0x5e8b9e['remove'](_0x5e8b9e['createRangeIn'](_0x42c2b5)),_0x5e8b9e['insert'](_0x55df62['data']['parse'](_0x258420,_0x42c2b5),_0x42c2b5,0x0);}});const _0x5af4e1=R(_0x55df62['locale'],'Restored');if(_0x1657fc['name'])_0x9f23b=-0x1==_0x1657fc['name']['indexOf'](_0x5af4e1)?_0x5af4e1+':\x20'+_0x1657fc['name']:_0x1657fc['name'];else _0x9f23b=_0x5af4e1+':\x20'+(_0x1657fc['createdAt']['toLocaleDateString'](_0x55df62['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1657fc['createdAt']['toLocaleTimeString'](_0x55df62['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x83f87e['saveRevision']({'name':_0x9f23b}),_0x227ecb['isReady']=!0x0,_0x55df62['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,Ri as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|