@ckeditor/ckeditor5-revision-history 47.3.0-alpha.1 → 47.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x382db6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21a75f){super(),this['id']=_0x21a75f['id']||_0x25f762(),this['creator']=_0x21a75f['creator']||null,this['authors']=_0x21a75f['authors']||[],this['diffData']=_0x21a75f['diffData']||null,this['toVersion']=_0x21a75f['toVersion']||0x0,this['fromVersion']=_0x21a75f['fromVersion']||0x0,this['set']('name',_0x21a75f['name']||''),this['set']('createdAt',_0x21a75f['createdAt']||new Date()),this['set']('attributes',_0x21a75f['attributes']||{});}['setName'](_0x34394e){this['_update']({'name':_0x34394e});}['setAttribute'](_0x5b1946,_0x3dcf3d){const _0x13feff=_0x23a3b0(this['attributes']);_0x2dd10b(_0x13feff,_0x5b1946,_0x3dcf3d),this['_update']({'attributes':_0x13feff});}['removeAttribute'](_0x2b23db){const _0x2d844b=_0x23a3b0(this['attributes']);_0xf55a0b(_0x2d844b,_0x2b23db),this['_update']({'attributes':_0x2d844b});}['_update'](_0x1b526c,_0x10b8cc=!0x1){let _0x4489a5=!0x1;const _0x186147={'id':this['id']},_0x62aabc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4d7868 of _0x62aabc){const _0x595841=_0x1b526c[_0x4d7868];void 0x0!==_0x595841&&_0x595841!==this[_0x4d7868]&&(this[_0x4d7868]=_0x595841,_0x186147[_0x4d7868]=_0x595841,_0x4489a5=!0x0);}_0x4489a5&&(_0x186147['authors']&&(_0x186147['authorsIds']=_0x186147['authors']['map'](_0x4a3f4e=>_0x4a3f4e['id']),delete _0x186147['authors']),this['fire']('_update',_0x186147,_0x10b8cc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x100334=>_0x100334['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x20abfc{['_revisions'];static get['requires'](){return[_0x1c97ca];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5be25e){super(_0x5be25e),this['_revisions']=new _0x1c98ba();}['afterInit'](){!async function(_0x242065){const _0x169d66=_0x29f06e([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x36fb62=0xeb829,_0x834048=0x359e09b0,_0x5b6d7a=0x359973f8^_0x834048,_0xb51968=window[_0x29f06e([0x44,0x61,0x74,0x65])][_0x29f06e([0x6e,0x6f,0x77])](),_0x134798=_0x242065[_0x29f06e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x155f6d=new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dc27f=>{_0x134798[_0x29f06e([0x6f,0x6e,0x63,0x65])](_0x29f06e([0x72,0x65,0x61,0x64,0x79]),_0x5dc27f);}),_0x9db42b={[_0x29f06e([0x6b,0x74,0x79])]:_0x29f06e([0x45,0x43]),[_0x29f06e([0x75,0x73,0x65])]:_0x29f06e([0x73,0x69,0x67]),[_0x29f06e([0x63,0x72,0x76])]:_0x29f06e([0x50,0x2d,0x32,0x35,0x36]),[_0x29f06e([0x78])]:_0x29f06e([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]),[_0x29f06e([0x79])]:_0x29f06e([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]),[_0x29f06e([0x61,0x6c,0x67])]:_0x29f06e([0x45,0x53,0x32,0x35,0x36])},_0x25c430=_0x134798[_0x29f06e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29f06e([0x67,0x65,0x74])](_0x29f06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x283b77(){let _0x450160,_0x5f2acf=null,_0x14da44=null;try{if(_0x25c430==_0x29f06e([0x47,0x50,0x4c]))return _0x29f06e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x450160=_0x320fd4(),!_0x450160)return _0x29f06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x450160[_0x29f06e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14da44=_0x29be06(_0x450160[_0x29f06e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x450160[_0x29f06e([0x6a,0x74,0x69])])),await _0x12c325()?_0x214192()?_0x5b633d()?_0x29f06e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f40e8()?(_0x450160[_0x29f06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29f06e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f2acf=_0x56fa3b(_0x29f06e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x450160[_0x29f06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29f06e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f2acf=_0x56fa3b(_0x29f06e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d9547()):_0x29f06e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29f06e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29f06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29f06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b633d(){const _0x12f066=[_0x29f06e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29f06e([0x74,0x72,0x69,0x61,0x6c])][_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x450160[_0x29f06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb51968/0x3e8:0xe10*_0x5b6d7a;return _0x450160[_0x29f06e([0x65,0x78,0x70])]<_0x12f066;}function _0x214192(){const _0x2b0ac7=_0x450160[_0x29f06e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b0ac7)return!0x1;if(_0x2b0ac7[_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f06e([0x2a])))return!0x0;if(_0x2b0ac7[_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f06e([0x52,0x48])))return!0x0;if(_0x2b0ac7[_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f06e([0x52,0x52,0x48]))){if(_0x151823())return!0x0;if(_0x9e3a8f()||_0x29724d())return!0x0;}return!0x1;}function _0x2f40e8(){const _0x31fa=_0x450160[_0x29f06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31fa||0x0==_0x31fa[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c7f03}=new URL(window[_0x29f06e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31fa[_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c7f03))return!0x0;const _0x308948=_0x1c7f03[_0x29f06e([0x73,0x70,0x6c,0x69,0x74])](_0x29f06e([0x2e]));return _0x31fa[_0x29f06e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cb7bb=>_0x1cb7bb[_0x29f06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f06e([0x2a])))[_0x29f06e([0x6d,0x61,0x70])](_0xbe928=>_0xbe928[_0x29f06e([0x73,0x70,0x6c,0x69,0x74])](_0x29f06e([0x2e])))[_0x29f06e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38fa95=>_0x38fa95[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x308948[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29f06e([0x6d,0x61,0x70])](_0x41eb76=>Array(_0x308948[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x41eb76[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29f06e([0x66,0x69,0x6c,0x6c])](_0x41eb76[0x0]===_0x29f06e([0x2a])?_0x29f06e([0x2a]):'')[_0x29f06e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x41eb76))[_0x29f06e([0x73,0x6f,0x6d,0x65])](_0xec294f=>_0x308948[_0x29f06e([0x65,0x76,0x65,0x72,0x79])]((_0x584578,_0x3619f4)=>_0xec294f[_0x3619f4]===_0x584578||_0xec294f[_0x3619f4]===_0x29f06e([0x2a])));}function _0x2d9547(){return _0x5f2acf&&_0x14da44?new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c4169,_0x1af19f)=>{_0x5f2acf[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x2c4169,_0x1af19f),_0x14da44[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x52d1d3=>{_0x52d1d3!=_0x29f06e([0x56,0x61,0x6c,0x69,0x64])&&_0x2c4169(_0x52d1d3);},_0x1af19f);}):_0x5f2acf||_0x14da44||_0x29f06e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29be06(_0x34d46e,_0x545628){return new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4772db=>{if(_0x3134f4())return _0x4772db(_0x29f06e([0x56,0x61,0x6c,0x69,0x64]));_0x15cead(),_0x134798[_0x29f06e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29f06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40c938=!0x1;const _0x3ce000=_0x25f762();function _0x47b3eb(_0x1f389f){return!!_0x1f389f&&(typeof _0x1f389f===_0x29f06e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f389f===_0x29f06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f389f[_0x29f06e([0x74,0x68,0x65,0x6e])]===_0x29f06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f389f[_0x29f06e([0x63,0x61,0x74,0x63,0x68])]===_0x29f06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32b7a6(_0x4fbcbd){_0x362715(_0x4fbcbd)[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x3c459c=>{if(!_0x3c459c||_0x3c459c[_0x29f06e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29f06e([0x6f,0x6b]))return _0x29f06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55b3de(_0x35435d(_0x3ce000+_0x545628))!=_0x3c459c[_0x29f06e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29f06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29f06e([0x56,0x61,0x6c,0x69,0x64]);})[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x367879=>(_0x7ec2e9(),_0x367879),()=>{const _0xe230a6=_0x45fae2();return null==_0xe230a6?(_0x7ec2e9(),_0x29f06e([0x56,0x61,0x6c,0x69,0x64])):_0x29f06e(_0xb51968-_0xe230a6>(0x11928db0^_0x834048)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x4772db)[_0x29f06e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4772db(_0x29f06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1362fb=0x35a8e730^_0x834048;function _0x7ec2e9(){const _0x12cac6=_0x29f06e([0x6c,0x6c,0x63,0x74,0x2d])+_0x55b3de(_0x35435d(_0x34d46e)),_0x4c0643=_0x20bc50(_0x55b3de(window[_0x29f06e([0x4d,0x61,0x74,0x68])][_0x29f06e([0x63,0x65,0x69,0x6c])](_0xb51968/_0x1362fb)));window[_0x29f06e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29f06e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12cac6,_0x4c0643);}function _0x45fae2(){const _0x27f386=_0x29f06e([0x6c,0x6c,0x63,0x74,0x2d])+_0x55b3de(_0x35435d(_0x34d46e)),_0x158e6a=window[_0x29f06e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29f06e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27f386);return _0x158e6a?window[_0x29f06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20bc50(_0x158e6a),0x10)*_0x1362fb:null;}function _0x362715(_0x1a5876){return new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x288f8c,_0xf2d028)=>{_0x1a5876[_0x29f06e([0x74,0x68,0x65,0x6e])](_0x288f8c,_0xf2d028),window[_0x29f06e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf2d028,0x359fdd70^_0x834048);});}}_0x134798[_0x29f06e([0x6f,0x6e])](_0x29f06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x135e3d,_0x4d8647)=>{if(_0x4d8647[0x0]!=_0x34d46e)return _0x4772db(_0x29f06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d8647[0x1]={..._0x4d8647[0x1],[_0x29f06e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ce000};},{[_0x29f06e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29f06e([0x68,0x69,0x67,0x68])}),_0x134798[_0x29f06e([0x6f,0x6e])](_0x29f06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40dc83=>{_0x47b3eb(_0x40dc83[_0x29f06e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40c938=!0x0,_0x32b7a6(_0x40dc83[_0x29f06e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29f06e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29f06e([0x6c,0x6f,0x77])}),_0x155f6d[_0x29f06e([0x74,0x68,0x65,0x6e])](()=>{_0x40c938||_0x4772db(_0x29f06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3134f4(){return _0x134798[_0x29f06e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29f06e([0x76,0x69,0x65,0x77])][_0x29f06e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29f06e([0x61,0x75,0x74,0x6f]);}function _0x15cead(){_0x134798[_0x29f06e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29f06e([0x76,0x69,0x65,0x77])][_0x29f06e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29f06e([0x61,0x75,0x74,0x6f]);}}function _0x56fa3b(_0x21a1c0){const _0x38cfb8=[new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22093d=>setTimeout(_0x22093d,0x3597377c^_0x834048)),_0x155f6d[_0x29f06e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x569d05=>{const _0x3b69de=0x359e09b7^_0x834048,_0x270793=_0x242065[_0x29f06e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3efacd(){_0x270793[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3b69de&&_0x569d05();}_0x3efacd(),_0x270793[_0x29f06e([0x6f,0x6e])](_0x29f06e([0x61,0x64,0x64]),_0x3efacd);})),new window[(_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4041da=>{function _0x20c6a9(){for(const _0x49063d in window)if(window[_0x29f06e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x29f06e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x49063d))&&window[_0x49063d]==_0x36fb62)return _0x4041da();_0x134798[_0x29f06e([0x73,0x74,0x61,0x74,0x65])]!=_0x29f06e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x29f06e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20c6a9,0x359e1a38^_0x834048);}_0x38997c(_0x29f06e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x20c6a9();})];return window[_0x29f06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29f06e([0x72,0x61,0x63,0x65])](_0x38cfb8)[_0x29f06e([0x74,0x68,0x65,0x6e])](()=>_0x21a1c0);}async function _0x54612a(){if(await _0x155f6d,_0x38997c(_0x29f06e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x241065=_0x242065[_0x29f06e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x379e43=_0x242065[_0x29f06e([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])](_0x241065[_0x29f06e([0x69,0x64])]),_0x37840f=_0x5e4d70(_0x29f06e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x37840f[_0x29f06e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x241065['id'],_0x379e43?_0x379e43['id']:null,!0x0),_0x37840f[_0x29f06e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29f06e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x37840f[_0x29f06e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x37840f[_0x29f06e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x349d8e,void(_0x37840f[_0x29f06e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x349d8e);}if(_0x38997c(_0x29f06e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x433311=_0x5e4d70(_0x29f06e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x433311[_0x29f06e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29f06e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x433311[_0x29f06e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x433311[_0x29f06e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x349d8e,_0x433311[_0x29f06e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x349d8e;}_0x134798[_0x29f06e([0x6d,0x6f,0x64,0x65,0x6c])][_0x29f06e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x349d8e,_0x134798[_0x29f06e([0x6d,0x6f,0x64,0x65,0x6c])][_0x29f06e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x349d8e,_0x134798[_0x29f06e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29f06e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x151823(){return _0x38997c(_0x29f06e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e4d70(_0x29f06e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29f06e([0x73,0x74,0x61,0x74,0x65])]==_0x29f06e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x9e3a8f(){return _0x38997c(_0x29f06e([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 _0x29724d(){return _0x38997c(_0x29f06e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11f5b6(_0x134eb1){const _0x215af0=_0x47b99f();_0x134798[_0x215af0]=_0x29f06e([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])+_0x134eb1,_0x134eb1[_0x29f06e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x29f06e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x47b99f()]=_0x36fb62),_0x134eb1!=_0x29f06e([0x56,0x61,0x6c,0x69,0x64])&&_0x54612a();}function _0x47b99f(){const _0x5c1904=window[_0x29f06e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29f06e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29f06e([0x6e,0x6f,0x77])]())[_0x29f06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29f06e([0x2e]),'');let _0x2e7e9a=_0x29f06e([0x76]);for(let _0x85f017=0x0;_0x85f017<_0x5c1904[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x85f017+=0x2){let _0x133135=window[_0x29f06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1904[_0x29f06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x85f017,_0x85f017+0x2));_0x133135>=_0x169d66[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x133135-=_0x169d66[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e7e9a+=_0x169d66[_0x133135];}return _0x2e7e9a;}function _0x320fd4(){const _0x2b63f7=_0x25c430[_0x29f06e([0x73,0x70,0x6c,0x69,0x74])](_0x29f06e([0x2e]));if(0x3!=_0x2b63f7[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39b4f6(_0x2b63f7[0x1]);function _0x39b4f6(_0x30fe6e){const _0xa4e4b8=_0x3c105e(_0x30fe6e);return _0xa4e4b8&&_0x14c2a6()?_0xa4e4b8:null;function _0x14c2a6(){const _0x352cbe=_0xa4e4b8[_0x29f06e([0x6a,0x74,0x69])],_0x2fa938=window[_0x29f06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352cbe[_0x29f06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x352cbe[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33b335={..._0xa4e4b8,[_0x29f06e([0x6a,0x74,0x69])]:_0x352cbe[_0x29f06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x352cbe[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33b335[_0x29f06e([0x76,0x63])],_0x35435d(_0x33b335)==_0x2fa938;}}}async function _0x12c325(){let _0x462b14=!0x0;try{const _0x37df1a=_0x25c430[_0x29f06e([0x73,0x70,0x6c,0x69,0x74])](_0x29f06e([0x2e])),[_0x280114,_0x3f91a0,_0x374011]=_0x37df1a;return _0x8f2da5(_0x280114),await _0x5f56d3(_0x280114,_0x3f91a0,_0x374011),_0x462b14;}catch{return!0x1;}function _0x8f2da5(_0x33afe4){const _0x1ccd85=_0x3c105e(_0x33afe4);_0x1ccd85&&_0x1ccd85[_0x29f06e([0x61,0x6c,0x67])]==_0x29f06e([0x45,0x53,0x32,0x35,0x36])||(_0x462b14=!0x1);}async function _0x5f56d3(_0x329fdb,_0x3753b9,_0x5e0d57){const _0x178ede=window[_0x29f06e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29f06e([0x66,0x72,0x6f,0x6d])](_0x4b123f(_0x5e0d57),_0x5efbf8=>_0x5efbf8[_0x29f06e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x166e9d=new window[(_0x29f06e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29f06e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x329fdb+_0x29f06e([0x2e])+_0x3753b9),_0x41ca5d=window[_0x29f06e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29f06e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ca5d)return;const _0x2ed534=await _0x41ca5d[_0x29f06e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29f06e([0x6a,0x77,0x6b]),_0x9db42b,{[_0x29f06e([0x6e,0x61,0x6d,0x65])]:_0x29f06e([0x45,0x43,0x44,0x53,0x41]),[_0x29f06e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29f06e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29f06e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ca5d[_0x29f06e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29f06e([0x6e,0x61,0x6d,0x65])]:_0x29f06e([0x45,0x43,0x44,0x53,0x41]),[_0x29f06e([0x68,0x61,0x73,0x68])]:{[_0x29f06e([0x6e,0x61,0x6d,0x65])]:_0x29f06e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ed534,_0x178ede,_0x166e9d)||(_0x462b14=!0x1);}}function _0x3c105e(_0x3503b7){return _0x3503b7[_0x29f06e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29f06e([0x65,0x79]))?JSON[_0x29f06e([0x70,0x61,0x72,0x73,0x65])](_0x4b123f(_0x3503b7)):null;}function _0x4b123f(_0x4eac3f){return window[_0x29f06e([0x61,0x74,0x6f,0x62])](_0x4eac3f[_0x29f06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29f06e([0x2b]))[_0x29f06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29f06e([0x2f])));}function _0x35435d(_0x53f7e3){let _0x5c4625=0x1505;function _0x507188(_0x1b2406){for(let _0x5db3ca=0x0;_0x5db3ca<_0x1b2406[_0x29f06e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5db3ca++){const _0x4f1bf1=_0x1b2406[_0x29f06e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5db3ca);_0x5c4625=(_0x5c4625<<0x5)+_0x5c4625+_0x4f1bf1,_0x5c4625&=_0x5c4625;}}function _0x56af87(_0x4f6c78){Array[_0x29f06e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f6c78)?_0x4f6c78[_0x29f06e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56af87):_0x4f6c78&&typeof _0x4f6c78==_0x29f06e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29f06e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f6c78)[_0x29f06e([0x73,0x6f,0x72,0x74])]()[_0x29f06e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x550304,_0x1cd7be])=>{_0x507188(_0x550304),_0x56af87(_0x1cd7be);}):_0x507188(window[_0x29f06e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f6c78));}return _0x56af87(_0x53f7e3),_0x5c4625>>>0x0;}function _0x55b3de(_0x1facdb){return _0x1facdb[_0x29f06e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29f06e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29f06e([0x30]));}function _0x20bc50(_0xb02a15){return _0xb02a15[_0x29f06e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29f06e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29f06e([0x6a,0x6f,0x69,0x6e])]('');}function _0x38997c(_0x4e737c){return _0x134798[_0x29f06e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29f06e([0x68,0x61,0x73])](_0x4e737c);}function _0x5e4d70(_0x2886e0){return _0x134798[_0x29f06e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29f06e([0x67,0x65,0x74])](_0x2886e0);}function _0x349d8e(){}function _0x29f06e(_0x585fbd){return _0x585fbd['map'](_0x71e1f=>String['fromCharCode'](_0x71e1f))['join']('');}_0x11f5b6(await _0x283b77());}(this);}['createRevision'](_0x167f48){const _0x469839=this['editor']['plugins']['get']('Users');return new I({'id':_0x167f48['id'],'name':_0x167f48['name'],'creator':_0x167f48['creatorId']?_0x469839['getUser'](_0x167f48['creatorId']):null,'diffData':_0x167f48['diffData']||_0x167f48['data'],'authors':_0x167f48['authorsIds']['map'](_0x44258b=>_0x469839['getUser'](_0x44258b)),'createdAt':new Date(_0x167f48['createdAt']),'attributes':_0x167f48['attributes'],'fromVersion':_0x167f48['fromVersion'],'toVersion':_0x167f48['toVersion']});}['addRevision'](_0x4f6e6e,_0x27b4ea=0x0){this['_revisions']['add'](_0x4f6e6e,_0x27b4ea);}['getRevision'](_0x30ddaa){return this['_revisions']['get'](_0x30ddaa);}['getRevisions'](_0x3cd2da={'toJSON':!0x1}){const _0x491b84=Array['from'](this['_revisions']);return _0x491b84['reverse'](),_0x3cd2da['toJSON']?_0x491b84['map'](_0x3f193b=>_0x3f193b['toJSON']()):_0x491b84;}['getIndex'](_0x36d2b9){return this['_revisions']['getIndex'](_0x36d2b9);}['getEarlierVisibleRevision'](_0x28c284){const [,_0x415bc9]=this['getRevisionsIterator'](_0x28c284,{'direction':'earlier'});return _0x415bc9;}['getLaterVisibleRevision'](_0x423069){const [,_0x45b927]=this['getRevisionsIterator'](_0x423069,{'direction':'later'});return _0x45b927;}['getRevisionsInDiff'](_0x31b061){const _0x5d3cc3=[];for(const _0x180340 of this['getRevisionsIterator'](_0x31b061['newRevisionId']))if(_0x5d3cc3['push'](_0x180340),_0x180340['id']===_0x31b061['oldRevisionId'])break;return _0x5d3cc3;}*['getRevisionsIterator'](_0x1407d5,{direction:_0x515f13='earlier',filter:_0x262b0c=()=>!0x0}={}){const _0x136c4d='earlier'===_0x515f13?0x1:-0x1;let _0x2e5f73=this['_revisions']['get'](_0x1407d5),_0x312eea=this['getIndex'](_0x2e5f73);for(yield _0x2e5f73;_0x2e5f73;){if(_0x312eea+=_0x136c4d,_0x2e5f73=this['getRevision'](_0x312eea),!_0x2e5f73)return;_0x262b0c(_0x2e5f73)&&(yield _0x2e5f73);}}}class $ extends _0x20abfc{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x40b5c4,'c'],[_0x5b2e8a,'a'],[_0x5587f6,'e'],[_0x2bf9f6,'r'],[_0x50a2c1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x40b5c4],['a',_0x5b2e8a],['e',_0x5587f6],['r',_0x2bf9f6],['u',_0x50a2c1]]);async['loadRevisionData'](_0x18847e,_0x33455b){if(_0x18847e['diffData']||!_0x33455b)return;const _0x4415e7=this['editor']['config']['get']('collaboration.channelId'),_0x4e2345=await _0x33455b['getRevision']({'channelId':_0x4415e7,'revisionId':_0x18847e['id']});_0x18847e['diffData']=_0x4e2345['diffData'];}['getRevisionDocumentData'](_0x397e24){const _0x9140e5={};for(const _0x5bb2d2 in _0x397e24['diffData']){if(_0x397e24['diffData'][_0x5bb2d2]['attachChange']&&!_0x397e24['diffData'][_0x5bb2d2]['attachChange']['isAttached'])continue;const _0xaad952=this['_removeRevisionMarkers'](JSON['parse'](_0x397e24['diffData'][_0x5bb2d2]['insertions'])),_0x117c01=this['editor']['editing']['view']['document'],_0x29ca40=new _0x444ba2(_0x117c01,_0xaad952['map'](_0x5aafc3=>this['_getViewFromDiffObj'](_0x5aafc3,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x9140e5[_0x5bb2d2]=this['editor']['data']['processor']['toData'](_0x29ca40),this['editor']['data']['processor']['useFillerType']('default');}return _0x9140e5;}['getRevisionRootsAttributes'](_0x46c558){const _0x215b14={};for(const _0x2983c6 in _0x46c558['diffData'])_0x46c558['diffData'][_0x2983c6]['attachChange']&&!_0x46c558['diffData'][_0x2983c6]['attachChange']['isAttached']||(_0x215b14[_0x2983c6]=_0x46c558['diffData'][_0x2983c6]['attributesAfter']||{});return _0x215b14;}['_getTypeCharForViewElement'](_0x34a9e0){return this['_viewClassToTypeChar']['get'](_0x34a9e0['constructor']);}['_getViewFromDiffObj'](_0x9be6d,_0x58b7bd){const _0x61bc01=this['editor']['editing']['view']['document'];if('string'==typeof _0x9be6d)return new _0x2880b7(_0x61bc01,_0x9be6d);{let _0x5a3540,_0x345161;_0x345161='u'==_0x9be6d['type']||'r'==_0x9be6d['type']?[]:_0x9be6d['children']['map'](_0x6eb27e=>this['_getViewFromDiffObj'](_0x6eb27e,_0x58b7bd));const _0x31ada5=this['_typeCharToViewClass']['get'](_0x9be6d['type'])||_0x93f45f,_0x4395aa=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5a3540=new _0x31ada5(_0x61bc01,_0x9be6d['name'],_0x9be6d['attributes'],_0x345161),'u'==_0x9be6d['type']&&_0x9be6d['children'][0x0]){const _0x1568bb=_0x9be6d['children'][0x0];if(_0x5a3540['render']=function(_0x2f5c41){const _0x31eaac=_0x2f5c41['createElement']('div');return _0x31eaac['innerHTML']=_0x1568bb,_0x31eaac['childNodes'][0x0];},_0x58b7bd){const _0x1358d4=new _0x444ba2(_0x61bc01);_0x1358d4['_appendChild'](_0x5a3540);const _0x1af31a=Array['from'](_0x4395aa['viewChildrenToDom'](_0x1358d4,{'bind':!0x1})),_0x3f20b8=_0x4395aa['domDocument']['createElement']('div');_0x3f20b8['append'](..._0x1af31a),_0x5a3540=Array['from'](_0x4395aa['domChildrenToView'](_0x3f20b8))[0x0];}}else{if('r'==_0x9be6d['type']&&_0x9be6d['children'][0x0]){const _0x517d7b=_0x9be6d['children'][0x0];if(_0x5a3540['render']=function(_0xeafdd8){_0xeafdd8['innerHTML']=_0x517d7b;},_0x58b7bd){const _0x3024d6=new _0x444ba2(_0x61bc01);_0x3024d6['_appendChild'](_0x5a3540);const _0x3dc131=Array['from'](_0x4395aa['viewChildrenToDom'](_0x3024d6,{'bind':!0x1})),_0x50eac9=_0x4395aa['domDocument']['createElement']('div');_0x50eac9['append'](..._0x3dc131);const _0x215378=Array['from'](_0x4395aa['domChildrenToView'](_0x50eac9));_0x215378['length']>0x1?_0x5a3540['_appendChild'](_0x215378):_0x5a3540=_0x215378[0x0];}}}if(_0x9be6d['customProperties']){for(const [_0x531e6c,_0x4107cd]of _0x9be6d['customProperties'])_0x5a3540['_setCustomProperty'](_0x531e6c,_0x4107cd);}const _0x2823d6=void 0x0===_0x9be6d['fillerOffset']?null:_0x9be6d['fillerOffset'];return null!==_0x2823d6&&(_0x5a3540['getFillerOffset']=()=>_0x2823d6),_0x5a3540;}}['_makeModelFromViewString'](_0x5274b3){const _0x54f692=JSON['parse'](_0x5274b3),_0x16980d=this['editor']['editing']['view']['document'],_0x348a19=new _0x444ba2(_0x16980d,_0x54f692['map'](_0x29913d=>this['_getViewFromDiffObj'](_0x29913d,!0x0)));return this['editor']['data']['toModel'](_0x348a19);}['_removeRevisionMarkers'](_0xc72b6f){return(_0xc72b6f=_0xc72b6f['filter'](_0x2f1235=>!_0x2f1235['name']||'revision-start'!==_0x2f1235['name']&&'revision-end'!==_0x2f1235['name']))['forEach'](_0x26234b=>{'string'!=typeof _0x26234b&&(_0x26234b['children']=this['_removeRevisionMarkers'](_0x26234b['children']),_0x26234b['attributes']=_0x26234b['attributes']['filter'](_0x1ba4b3=>!_0x1ba4b3[0x0]['startsWith']('data-revision-')));}),_0xc72b6f;}}function m(_0x296180,_0x45810b,_0x3cc6b2){const t=_0x296180['t'];switch(_0x45810b){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'},_0x3cc6b2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3cc6b2);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 _0x20abfc{['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[_0x1c97ca,S,$,_0x570b48];}constructor(_0x7edcd5){super(_0x7edcd5),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 _0x1917ce=_0x25f762();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1917ce},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 _0x2980b2=this['repository']['getRevision'](0x0),_0x35950c=_0x2980b2&&null===_0x2980b2['creator']?_0x2980b2:null;if(this['_continueCurrentRevision']=!!_0x35950c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x29367d=this['_source']['getCurrentRevisionId'](),_0x3a211e=this['repository']['getRevision'](_0x29367d);if(_0x3a211e)this['_startingVersion']=_0x3a211e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x479309=this['_source']['history']['_operations']['find'](_0x49d3bc=>!_0x49d3bc['_isInit']),_0x1ca022=_0x479309?_0x479309['baseVersion']:this['_source']['history']['version'];_0x2980b2?(_0x2980b2['toVersion']<_0x1ca022&&_0x2980b2['_update']({'toVersion':_0x1ca022}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x35950c['id'],this['_startingVersion']=_0x35950c['fromVersion']):(this['_startingVersion']=_0x2980b2['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1ca022,this['_continueCurrentRevision']=!0x1);}}else _0x35950c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x35950c['toVersion'],this['editor']['model']['document']['history']['version']),_0x35950c['fromVersion']===_0x35950c['toVersion']?(0x0!==_0x35950c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x35950c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x35950c['id'],this['_startingVersion']=_0x35950c['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',_0x30f73b=>!_0x30f73b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cd9a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e664e;for(const _0x41b8f4 in _0x1cd9a3){const _0x3d4101=_0x41b8f4,_0x1e5706=_0x1cd9a3[_0x3d4101];if('revisionHistoryLicenseKeyValid'==_0x1e5706||'revisionHistoryLicenseKeyInvalid'==_0x1e5706||'revisionHistoryLicenseKeyExpired'==_0x1e5706||'revisionHistoryLicenseKeyDomainLimit'==_0x1e5706||'revisionHistoryLicenseKeyNotAllowed'==_0x1e5706||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e5706||'revisionHistoryLicenseKeyTrialLimit'==_0x1e5706||'revisionHistoryLicenseKeyUsageLimit'==_0x1e5706){delete _0x1cd9a3[_0x3d4101],_0x1e664e=_0x1e5706,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1e664e&&_0x1cd9a3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xda1eae=this['repository']['getRevision'](0x0),_0x5910=await this['getRevisionDocumentData'](_0xda1eae),_0x2e8652=await this['getRevisionRootsAttributes'](_0xda1eae);this['_replaceEditorDataWithRevisionData'](_0x5910,_0x2e8652);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5797c3){this['_source']=_0x5797c3;}async['update'](){const _0x4f72d4=await this['_source']['getLatestVersion']();if(_0x4f72d4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x24df77=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4f72d4});_0x24df77['authors']=_0x24df77['authorsIds']['map'](_0x2894d5=>this['editor']['plugins']['get']('Users')['getUser'](_0x2894d5)),this['currentRevision']['_update'](_0x24df77);}}async['saveRevision'](_0x7770e9={},_0x5e5757=null){const _0x5a9425=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5e5757>this['currentRevision']['toVersion']&&(_0x5e5757=null),null===_0x5e5757&&(_0x5e5757=await this['_source']['getLatestVersion']());const _0x1cca06=this['_getFromVersion'](_0x5e5757),_0x10e596=this['buildRevisionData']({'from':_0x1cca06,'to':_0x5e5757});if(this['currentRevision']['toVersion']<_0x5e5757){const _0x401de3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5e5757,'to':_0x5e5757});_0x401de3['authors']=[],_0x401de3['authorsIds']=[],_0x401de3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x401de3,!0x0),delete _0x401de3['authors'],_0x5a9425['push'](_0x401de3);}_0x7770e9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x7770e9['name']=_0x7770e9['name']||null,_0x7770e9['id']=_0x7770e9['id']||_0x25f762(),_0x7770e9={..._0x7770e9,..._0x10e596};const _0x467ee2=this['addRevisionData'](_0x7770e9);_0x5a9425['push'](_0x7770e9);const _0x98569d=this['repository']['getIndex'](_0x467ee2);if(0x0!==_0x98569d){const _0x169e2c=this['repository']['getRevision'](_0x98569d-0x1);if(_0x169e2c['fromVersion']!==_0x5e5757){const _0x374657=this['_revisionDataBuilder']['getData'](_0x5e5757,_0x169e2c['toVersion']),_0x3f61e5={'id':_0x169e2c['id'],'diffData':_0x374657['diffData'],'authorsIds':_0x374657['authorsIds'],'authors':_0x374657['authorsIds']['map'](_0x5b1027=>this['editor']['plugins']['get']('Users')['getUser'](_0x5b1027)),'fromVersion':_0x5e5757};_0x169e2c===this['currentRevision']&&(_0x3f61e5['createdAt']=new Date(_0x7770e9['createdAt']['getTime']()+0xa)),_0x169e2c['_update'](_0x3f61e5,!0x0),delete _0x3f61e5['authors'],_0x5a9425['push'](_0x3f61e5);}}if(this['adapter']){for(const _0x16789d of _0x5a9425)this['_bufferUpdate'](_0x16789d['id'],_0x16789d,!0x0);this['sendBufferedUpdates']();}return _0x467ee2;}['addRevisionData'](_0x1c9f6e){const _0x5d4ac3=this['repository']['createRevision'](_0x1c9f6e);return this['adapter']&&_0x5d4ac3['on']('_update',(_0x1218dd,_0x5d4ce3,_0xda42f4)=>{_0xda42f4||(this['_bufferUpdate'](_0x5d4ce3['id'],_0x5d4ce3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d4ac3,this['_findInsertionIndex'](_0x5d4ac3)),_0x5d4ac3;}async['getRevisionDocumentData'](_0x55b723){return await this['_utils']['loadRevisionData'](_0x55b723,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x55b723);}async['getRevisionRootsAttributes'](_0x5915e9){return await this['_utils']['loadRevisionData'](_0x5915e9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5915e9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1b3070=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1e8aac=0x0;_0x1e8aac<_0x1b3070['length'];_0x1e8aac++){const _0x4aa850=_0x1b3070[_0x1e8aac];let _0x32f475=!0x1;for(const _0x563555 of Object['keys'](_0x4aa850))void 0x0===_0x4aa850[_0x563555]?delete _0x4aa850[_0x563555]:'id'!==_0x563555&&(_0x32f475=!0x0);_0x32f475||(_0x1b3070[_0x1e8aac]=null);}if(_0x1b3070=_0x1b3070['filter'](_0x49f5b4=>null!==_0x49f5b4),!_0x1b3070['length'])return;for(let _0x31e5c4=0x0;_0x31e5c4<_0x1b3070['length'];_0x31e5c4++){const _0x550fce=_0x1b3070[_0x31e5c4];void 0x0!==_0x550fce['fromVersion']&&void 0x0===_0x550fce['toVersion']&&(_0x550fce['toVersion']=this['repository']['getRevision'](_0x550fce['id'])['toVersion']),void 0x0!==_0x550fce['toVersion']&&void 0x0===_0x550fce['fromVersion']&&(_0x550fce['fromVersion']=this['repository']['getRevision'](_0x550fce['id'])['fromVersion']);}const _0x3bc0f6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1b3070,_0x3bc0f6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x275a3b=>{if(_0x275a3b){for(const _0x1bc893 of _0x275a3b)this['setRevisionData']({'id':_0x1bc893['id'],'createdAt':_0x1bc893['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x418be3=null,from:_0x17ea79=null,to:_0xa8072d=null}){_0x17ea79=null!==_0x17ea79?_0x17ea79:_0x418be3['fromVersion'],_0xa8072d=null!==_0xa8072d?_0xa8072d:_0x418be3['toVersion'];const _0x4e544f=this['_revisionDataBuilder']['getData'](_0x17ea79,_0xa8072d),_0xbebfe2={'diffData':_0x4e544f['diffData'],'authorsIds':_0x4e544f['authorsIds'],'fromVersion':_0x17ea79,'toVersion':_0xa8072d};if(!_0x418be3||_0xa8072d!==_0x418be3['toVersion']){const _0x20bff5=_0xa8072d-0x1,_0x249083=this['_source']['history']['getOperation'](_0x20bff5);_0xbebfe2['createdAt']=_0x249083&&_0x249083['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17ea79===this['_loadedStateData']['fromVersion']){for(const _0x2360cd of this['_loadedStateData']['authors'])_0xbebfe2['authorsIds']['includes'](_0x2360cd['id'])||_0xbebfe2['authorsIds']['push'](_0x2360cd['id']);}return _0xbebfe2;}['_bufferUpdate'](_0x1e51cb,_0x4e0000,_0x4329cf){if(this['_bufferedUpdates']['has'](_0x1e51cb)){const _0x3ad74d=this['_bufferedUpdates']['get'](_0x1e51cb);_0x4e0000=_0x4329cf?{..._0x3ad74d,..._0x4e0000}:{..._0x4e0000,..._0x3ad74d};}this['_bufferedUpdates']['set'](_0x1e51cb,_0x4e0000);}['setRevisionData'](_0x1ff836){const _0xc00f98=this['repository']['getRevision'](_0x1ff836['id']);if(_0x1ff836['createdAt']&&(_0x1ff836['createdAt']=new Date(_0x1ff836['createdAt'])),_0x1ff836['authorsIds']){const _0x5c85b5=this['editor']['plugins']['get']('Users');_0x1ff836['authors']=_0x1ff836['authorsIds']['map'](_0x467838=>_0x5c85b5['getUser'](_0x467838));}_0xc00f98['_update'](_0x1ff836,!0x0);}['_createInitialRevision'](_0x3875e1){const _0x280c52=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x280c52)this['_initialRevisionId']=_0x280c52['id'];else{const _0x1285c1=!this['editor']['model']['document']['roots']['find'](_0x33222c=>this['editor']['model']['hasContent'](_0x33222c)),_0x4e3fa4=this['editor']['plugins']['get']('Users')['me']['id'],_0x9c1d3f=m(this['editor']['locale'],_0x1285c1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3875e1,'to':_0x3875e1,'id':this['_initialRevisionId'],'name':_0x9c1d3f,'creatorId':_0x4e3fa4});}}['_createCurrentRevision'](_0x44d31b){const _0x2c7940=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2c7940),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x44d31b,'to':_0x44d31b,'id':_0x2c7940,'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'](_0x10e07f,_0x211ec4){let _0x3ec7a9=this['editor']['config']['get']('initialData'),_0x36083a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ec7a9){_0x3ec7a9={};for(const _0x1a4a6b of this['editor']['model']['document']['getRootNames']())_0x3ec7a9[_0x1a4a6b]='';}if('string'==typeof _0x3ec7a9&&(_0x3ec7a9={'main':_0x3ec7a9}),void 0x0===_0x36083a){_0x36083a={};for(const _0x2c058b of this['editor']['model']['document']['getRootNames']())_0x36083a[_0x2c058b]={};}let _0xf67eef=!0x1;const _0x140f2c=Object['keys'](_0x3ec7a9),_0x3e49ce=Object['keys'](_0x10e07f);for(const _0x289952 of _0x140f2c){if(_0x3ec7a9[_0x289952]!==_0x10e07f[_0x289952]&&''!==_0x3ec7a9[_0x289952]['trim']()){_0xf67eef=!0x0;break;}if(!_0x541597(_0x36083a[_0x289952],_0x211ec4[_0x289952])&&Object['keys'](_0x36083a[_0x289952])['length']>0x0){_0xf67eef=!0x0;break;}}_0xf67eef||(_0xf67eef=_0x3e49ce['some'](_0x53e950=>!this['editor']['model']['document']['getRoot'](_0x53e950))),_0xf67eef&&_0x1fb760('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ec7a9,'editorRootsAttributes':_0x36083a,'revisionData':_0x10e07f,'revisionRootsAttributes':_0x211ec4}),this['editor']['config']['set']('initialData',_0x10e07f),this['editor']['config']['set']('rootsAttributes',_0x211ec4);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4cba64=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4cba64['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43c8cf){const _0x31434b=this['repository']['getRevisions']();_0x31434b['reverse']();let _0x1a6080=0x0;for(;_0x1a6080<_0x31434b['length'];){const _0x590ab1=_0x31434b[_0x1a6080];if(_0x590ab1===this['currentRevision']){_0x1a6080++;continue;}if(_0x590ab1['id']===this['_initialRevisionId'])break;const _0x2adb4e=_0x43c8cf['toVersion']-_0x590ab1['toVersion']||_0x43c8cf['fromVersion']-_0x590ab1['fromVersion'];if(_0x2adb4e>0x0)break;if(_0x2adb4e<0x0)_0x1a6080++;else{if(!_0x43c8cf['creator']&&_0x590ab1['creator'])break;if(_0x590ab1['creator']||!_0x43c8cf['creator']){if(_0x43c8cf['createdAt']>_0x590ab1['createdAt'])break;_0x1a6080++;}else _0x1a6080++;}}return _0x1a6080;}['_getFromVersion'](_0x43534d){const _0xbc386a=this['repository']['getRevisions']();_0xbc386a['reverse'](),_0xbc386a['shift']();const _0x274514=_0xbc386a['find'](_0x12c9ef=>_0x12c9ef['toVersion']<=_0x43534d)['toVersion'];return _0x274514<this['_startingVersion']?this['_startingVersion']:_0x274514;}['_makeRevision']({name:_0x2b398e,from:_0x41bdfc,to:_0x566ae7,creatorId:_0x401c09,id:_0x2d1d22}){const _0xd301d7=this['buildRevisionData']({'from':_0x41bdfc,'to':_0x566ae7});_0xd301d7['name']=_0x2b398e,_0xd301d7['creatorId']=_0x401c09,_0xd301d7['id']=_0x2d1d22;const _0x96c010=this['addRevisionData'](_0xd301d7);return this['adapter']&&this['_bufferUpdate'](_0xd301d7['id'],_0xd301d7,!0x0),_0x96c010;}['_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(_0x5029c1){this['editor']=_0x5029c1,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'](_0x49b26f){this['source']=_0x49b26f;const _0x1f8062=new Map(),_0x3fea63=new Map(),_0x1e4629=this['editor']['model']['document']['roots']['map'](_0x41e540=>_0x41e540['rootName']);for(const _0x2d4962 of _0x1e4629){const _0x5f1de1=this['editor']['model']['document']['getRoot'](_0x2d4962),_0x1c6865=x(_0x5f1de1);_0x1f8062['set'](_0x2d4962,_0x1c6865),_0x3fea63['set'](_0x2d4962,Object['fromEntries'](_0x5f1de1['getAttributes']()));}const _0xfa8f2b=Array['from'](this['editor']['model']['markers'])['map'](_0x19ed36=>[_0x19ed36['name'],_0x19ed36['getRange']()]),_0x1e8223=this['source']['version'];this['_saveMetaData'](_0x1e8223,_0x1f8062,_0xfa8f2b,_0x3fea63),this['_startingRevisionId']=this['_revisionId'];const _0xeb5913=new Map(),_0x5d748b=new Map();for(const _0x16aa0e of _0x1e4629){const _0x17f05c=N(_0x16aa0e);_0xeb5913['set'](_0x16aa0e,_0x17f05c),_0x5d748b['set'](_0x16aa0e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xeb5913,[],_0x5d748b);}['getData'](_0x1f3d11,_0xff0f5){if(this['_lastFrom']===_0x1f3d11&&this['_lastTo']<=_0xff0f5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xff0f5,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f3d11)){const _0x7d35b9=this['_getPreviousFrom'](_0x1f3d11);this['_calculateMetaData'](_0x7d35b9,_0x1f3d11,!0x1);}this['_calculateMetaData'](_0x1f3d11,_0xff0f5,!0x0);}return this['_lastFrom']=_0x1f3d11,this['_lastTo']=_0xff0f5,this['_getState']();}['loadState'](_0x4bea16){if(!this['_savedMetaData']['has'](_0x4bea16['fromVersion'])){const _0x6232b3=this['_getPreviousFrom'](_0x4bea16['fromVersion']);this['_calculateMetaData'](_0x6232b3,_0x4bea16['fromVersion'],!0x1);}this['_calculateMetaData'](_0x4bea16['fromVersion'],_0x4bea16['toVersion'],!0x1);const _0x584eb2=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4bea16['fromVersion'],this['_lastTo']=_0x4bea16['toVersion'];for(const _0x1ded2b in _0x4bea16['diffData']){const _0x3e44bd=_0x4bea16['diffData'][_0x1ded2b]['attachChange'],_0x4fb2ca=_0x23a3b0(_0x4bea16['diffData'][_0x1ded2b]['attributesBefore'])||{},_0x46f859=_0x584eb2['_makeModelFromViewString'](_0x4bea16['diffData'][_0x1ded2b]['deletions']);_0x46f859['rootName']=_0x1ded2b,_0x46f859['_isAttached']=!_0x3e44bd||!_0x3e44bd['isAttached'],_0x46f859['isAttached']=()=>_0x46f859['_isAttached'],this['_baseRoots']['set'](_0x1ded2b,_0x46f859),this['_baseRootsAttributes']['set'](_0x1ded2b,_0x4fb2ca),_0x3e44bd&&this['_touchedRoots']['set'](_0x1ded2b,_0x3e44bd);const _0x4d6509=this['_makeIdsRoot'](_0x46f859);this['_baseIdsRoots']['set'](_0x1ded2b,_0x4d6509);for(const [_0x4b87e6,_0x522c0f]of _0x46f859['markers']){if(!_0x4b87e6['startsWith']('revision:'))continue;const _0x4d95a0=_0x4b87e6['split'](':')[0x2];for(const _0x396150 of _0x522c0f['getWalker']({'singleCharacters':!0x0})){const _0x157542=this['_getVidAttributeName'](_0x396150),_0x4784c0='elementEnd'==_0x396150['type']?_0x396150['previousPosition']['path']['slice'](0x0,-0x1):_0x396150['previousPosition']['path'],_0x32b454=_0x4d6509['getNodeByPath'](_0x4784c0)['getAttribute'](_0x157542);this['_touched']['set'](_0x32b454,{'userId':_0x4d95a0});}_0x46f859['markers']['delete'](_0x4b87e6);}}this['_startingRevisionId']=this['_revisionId'];const _0x3a867c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x40a9ec=>!this['_touched']['has'](_0x40a9ec));let _0x52e948=0x0;const _0x15abbc=new Map();for(const _0x5d33dc in _0x4bea16['diffData']){const _0x29326e=_0x4bea16['diffData'][_0x5d33dc]['attachChange'],_0x18240e=_0x23a3b0(_0x4bea16['diffData'][_0x5d33dc]['attributesAfter'])||{},_0x3136b9=_0x584eb2['_makeModelFromViewString'](_0x4bea16['diffData'][_0x5d33dc]['insertions']);_0x3136b9['rootName']=_0x5d33dc,_0x3136b9['_isAttached']=!_0x29326e||_0x29326e['isAttached'],_0x3136b9['isAttached']=()=>_0x3136b9['_isAttached'],this['_diffRoots']['set'](_0x5d33dc,_0x3136b9),this['_diffRootsAttributes']['set'](_0x5d33dc,_0x18240e);const _0x3f0e11=this['_makeIdsRoot'](_0x3136b9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5d33dc,_0x3f0e11),_0x15abbc['set'](_0x5d33dc,_0x3136b9['isAttached']()?_0x18240e:{});for(const [_0x14c47c,_0xdbefb5]of _0x3136b9['markers']){if(!_0x14c47c['startsWith']('revision:'))continue;const _0x2a902b=_0x14c47c['split'](':')[0x2];for(const _0x2cc2d5 of _0xdbefb5['getWalker']({'singleCharacters':!0x0})){const _0x2c467c=this['_getVidAttributeName'](_0x2cc2d5),_0x125f27=this['_revisionId']++,_0x87fcf1='elementEnd'==_0x2cc2d5['type']?_0x2cc2d5['previousPosition']['path']['slice'](0x0,-0x1):_0x2cc2d5['previousPosition']['path'];_0x3f0e11['getNodeByPath'](_0x87fcf1)['_setAttribute'](_0x2c467c,_0x125f27),this['_touched']['set'](_0x125f27,{'userId':_0x2a902b});}_0x3136b9['markers']['delete'](_0x14c47c);}for(const _0x4386c of this['editor']['model']['createRangeIn'](_0x3136b9)['getWalker']({'singleCharacters':!0x0})){const _0x3d4ac2=this['_getVidAttributeName'](_0x4386c),_0x48fda3='elementEnd'==_0x4386c['type']?_0x4386c['previousPosition']['path']['slice'](0x0,-0x1):_0x4386c['previousPosition']['path'],_0x2ad8d6=_0x3f0e11['getNodeByPath'](_0x48fda3);_0x2ad8d6['getAttribute'](_0x3d4ac2)>0x0||_0x2ad8d6['_setAttribute'](_0x3d4ac2,_0x3a867c[_0x52e948++]);}for(const [_0x960724,_0x191b42]of _0x3136b9['markers'])_0x960724['startsWith']('revision:')||this['_markers']['set'](_0x960724,_0x191b42);}const {roots:_0x569b34}=this['_savedMetaData']['get'](_0x4bea16['fromVersion']),{roots:_0x454eee}=this['_savedMetaData']['get'](_0x4bea16['toVersion']),_0x290fe3=x(_0x569b34['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x290fe3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x290fe3,Number['NEGATIVE_INFINITY']));const _0x33376d=x(_0x454eee['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x33376d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33376d));const _0x176f7a=Array['from'](this['_diffRoots'])['map'](([_0x5b3593,_0x416e98])=>[_0x5b3593,x(_0x416e98)]);this['_saveMetaData'](this['_lastTo'],_0x176f7a,this['_markers'],_0x15abbc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5431b5,_0xdcd435,_0x409811,_0xe4d0c4){const _0x3f8658=new Map(_0xdcd435),_0x52a047=new Map(_0x23a3b0(_0xe4d0c4)),_0x27d466=new Map();for(const [_0x4b03de,_0x35ebf7]of _0x409811)_0x27d466['set'](_0x4b03de,{'start':_0x35ebf7['start']['clone'](),'end':_0x35ebf7['end']['clone'](),'rootName':_0x35ebf7['root']['rootName']});this['_savedMetaData']['set'](_0x5431b5,{'roots':_0x3f8658,'markers':_0x27d466,'rootsAttributes':_0x52a047});}['_removeMetaData'](_0x5ef8c1){this['_savedMetaData']['delete'](_0x5ef8c1);}['_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'](_0x18e92c,_0x547d4c=null){let _0x13e46d=null;_0x18e92c['is']('documentFragment')||(_0x13e46d=new _0xe65b90(_0x18e92c['name'],{'vid_start':null===_0x547d4c?this['_revisionId']++:_0x547d4c++}));const _0x50b5c2=[];for(const _0x3552af of _0x18e92c['getChildren']())if(_0x3552af['is']('element')){_0x50b5c2['push'](this['_makeIdsRoot'](_0x3552af,_0x547d4c));const _0x22d261=_0x50b5c2[_0x50b5c2['length']-0x1];null!==_0x547d4c&&(_0x547d4c=_0x22d261['is']('element','$text')?_0x22d261['getAttribute']('vid')+0x1:_0x22d261['getAttribute']('vid_end')+0x1);}else{for(let _0x38bf2a=0x0;_0x38bf2a<_0x3552af['offsetSize'];_0x38bf2a++)_0x50b5c2['push'](new _0xe65b90('$text',{'vid':null===_0x547d4c?this['_revisionId']++:_0x547d4c++}));}if(_0x18e92c['is']('documentFragment')){const _0x5c3daa=N(_0x18e92c['rootName']);return _0x5c3daa['_insertChild'](0x0,_0x50b5c2),_0x5c3daa;}return _0x13e46d['_setAttribute']('vid_end',null===_0x547d4c?this['_revisionId']++:_0x547d4c++),_0x13e46d['_insertChild'](0x0,_0x50b5c2),_0x13e46d;}['_calculateMetaData'](_0x37e0d2,_0x49d964,_0x331d0c){this['_reset']();const {roots:_0x4964e1,markers:_0x4dc8e1,rootsAttributes:_0x17de06}=this['_savedMetaData']['get'](_0x37e0d2);this['_baseRoots']=new Map(_0x4964e1),this['_baseRootsAttributes']=new Map(_0x23a3b0(_0x17de06));for(const [_0x60744c,_0x184bf1]of this['_baseRoots'])if('$graveyard'!==_0x60744c&&(this['_diffRoots']['set'](_0x60744c,x(_0x184bf1)),this['_diffRootsAttributes']=new Map(_0x23a3b0(_0x17de06)),_0x331d0c)){const _0x4e6dcf=this['_revisionId'];this['_idsRoots']['set'](_0x60744c,this['_makeIdsRoot'](_0x184bf1)),this['_baseIdsRoots']['set'](_0x60744c,this['_makeIdsRoot'](_0x184bf1,_0x4e6dcf));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x331d0c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x55c623,_0x4f987b]of _0x4dc8e1){const _0x214328=this['_baseRoots']['get'](_0x4f987b['rootName']),_0x11c43b=this['_diffRoots']['get'](_0x4f987b['rootName']),_0x45dcef=new _0x6122c1(this['_fixPosition'](_0x4f987b['start'],_0x214328),this['_fixPosition'](_0x4f987b['end'],_0x214328)),_0x5b2584=this['_fixRange'](_0x45dcef,_0x11c43b);_0x214328['markers']['set'](_0x55c623,_0x45dcef),this['_markers']['set'](_0x55c623,_0x5b2584);}this['_applyOperations'](_0x37e0d2,_0x49d964,_0x331d0c);}['_applyOperations'](_0x201801,_0x25a1a2,_0x2545bc){for(const _0x3bd864 of this['source']['getOperations'](_0x201801,_0x25a1a2))this['_handleOperation'](_0x3bd864,_0x2545bc);for(const _0x343a9a of this['_diffRoots']['values']())_0x343a9a['markers']['clear']();for(const [_0x20eb37,_0x318505]of this['_markers']){this['_diffRoots']['get'](_0x318505['root']['rootName'])['markers']['set'](_0x20eb37,_0x318505['clone']());}const _0x2af75c=new Map(),_0x2f6de9=new Map();for(const [_0x30645e,_0x4b7c88]of this['_diffRoots'])_0x2af75c['set'](_0x30645e,x(_0x4b7c88)),_0x2f6de9['set'](_0x30645e,this['_diffRootsAttributes']['get'](_0x30645e));this['_saveMetaData'](_0x25a1a2,_0x2af75c,this['_markers'],_0x2f6de9);}['_getPreviousFrom'](_0x12e9f9){const _0x33e2ec=Array['from'](this['_savedMetaData']['keys']());_0x33e2ec['sort']((_0x3e5e06,_0xef638e)=>_0x3e5e06-_0xef638e),_0x33e2ec['reverse']();for(const _0x4dd4a9 of _0x33e2ec)if(_0x4dd4a9<_0x12e9f9)return _0x4dd4a9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x13c46f,_0x430ea4){const _0xae0636=Array['from'](_0x430ea4['markers'])['map'](([_0x4a8aa0,_0x2af94a])=>[_0x4a8aa0,this['_fixRange'](_0x2af94a,_0x13c46f)]);_0x13c46f['markers']=new Map(_0xae0636);}['_transformMarkers'](_0x395b8f){for(const _0xf3c2d1 of this['_markers']['values']()){const _0x5307b7=_0xf3c2d1['getTransformedByOperation'](_0x395b8f),_0x3e976b=_0x6122c1['_createFromRanges'](_0x5307b7);_0xf3c2d1['start']=_0x3e976b['start'],_0xf3c2d1['end']=_0x3e976b['end'];}}['_handleOperation'](_0x225966,_0x49babb){if('addRoot'!=_0x225966['type']&&'detachRoot'!=_0x225966['type']){if('insert'==_0x225966['type']){const _0x186def=_0x225966['position']['root']['rootName'];this['_diffRoots']['has'](_0x186def)||(this['_diffRoots']['set'](_0x186def,N(_0x186def,!0x0)),this['_diffRootsAttributes']['set'](_0x186def,{}),_0x49babb&&this['_idsRoots']['set'](_0x186def,N(_0x186def,!0x0)));}else{if('addRootAttribute'==_0x225966['type']||'removeRootAttribute'==_0x225966['type']||'changeRootAttribute'==_0x225966['type'])return void this['_handleRootAttributeOperation'](_0x225966);'marker'==_0x225966['type']&&this['_handleMarkerOperation'](_0x225966);}if('marker'!==_0x225966['type']){const _0x1be06a=this['_cloneOperation'](_0x225966,this['_diffRoots']);_0x1be06a['_execute'](),this['_transformMarkers'](_0x1be06a);}if(_0x49babb)switch(_0x225966['type']){case'insert':this['_handleInsertOperation'](_0x225966);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x225966);break;case'merge':this['_handleMergeOperation'](_0x225966);break;case'split':this['_handleSplitOperation'](_0x225966);}}else this['_handleRootOperation'](_0x225966,_0x49babb);}['_cloneOperation'](_0x598fa7,_0x57aebc){const _0x5d1a33=_0x598fa7['clone']();return _0x5d1a33['_authorId']=_0x598fa7['_authorId'],this['_fixOperation'](_0x5d1a33,_0x57aebc),_0x5d1a33;}['_getBaseVids'](_0x3a373a){return _0x3a373a['map'](_0x3d42bf=>{const _0x478700=this['_getVidAttributeName'](_0x3d42bf);return Number(_0x3d42bf['item']['getAttribute'](_0x478700));});}['_generateTape'](_0x21f1fc,_0x3b2daa){if(_0x21f1fc['is']('element','$text'))_0x3b2daa['push']({'item':_0x21f1fc,'type':'text'});else{_0x21f1fc['is']('element')&&_0x3b2daa['push']({'item':_0x21f1fc,'type':'elementStart'});for(const _0x1a6dbb of _0x21f1fc['getChildren']())this['_generateTape'](_0x1a6dbb,_0x3b2daa);_0x21f1fc['is']('element')&&_0x3b2daa['push']({'item':_0x21f1fc,'type':'elementEnd'});}return _0x3b2daa;}['_getState'](){const _0x24edea=new Map(this['_touched']),_0x281bd2=new Map(_0x24edea),_0x2d7c6c=new Map(),_0x4424bd={'insertions':{},'deletions':{}},_0x3258b0={'insertions':{},'deletions':{}},_0x171578=new Map(),_0xa8c1ee=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xa8c1ee['delete']('$graveyard');for(const _0x129665 of _0xa8c1ee){const _0x575525=this['_diffRoots']['get'](_0x129665)||N(_0x129665,!0x1),_0x17b759=this['_baseRoots']['get'](_0x129665)||N(_0x129665,!0x1);_0x575525['isAttached']()||_0x17b759['isAttached']()?(_0x4424bd['insertions'][_0x129665]=x(_0x575525),_0x4424bd['deletions'][_0x129665]=x(_0x17b759),this['_copyMarkers'](_0x4424bd['deletions'][_0x129665],_0x17b759),this['_copyMarkers'](_0x4424bd['insertions'][_0x129665],_0x575525),_0x3258b0['insertions'][_0x129665]=this['_generateTape'](this['_idsRoots']['get'](_0x129665),[]),_0x3258b0['deletions'][_0x129665]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x129665)||N(_0x129665,!0x1),[])):_0xa8c1ee['delete'](_0x129665);}for(const _0x21978f of _0xa8c1ee){const _0x476e11=_0x3258b0['insertions'][_0x21978f];for(const _0x11a124 of _0x476e11){const _0x2ca496=this['_getVidAttributeName'](_0x11a124),_0x5ad882=_0x11a124['item']['getAttribute'](_0x2ca496);_0x281bd2['delete'](_0x5ad882),_0x5ad882>=this['_startingRevisionId']&&_0x2d7c6c['set'](_0x5ad882,_0x24edea['get'](_0x5ad882));}}for(const _0x2cba85 of _0xa8c1ee){const _0x31b692=_0x3258b0['insertions'][_0x2cba85],_0x42e594=this['_getBaseVids'](_0x3258b0['deletions'][_0x2cba85]);let _0x38ef2d=0x0;for(const _0x322159 of _0x31b692){const _0x4ffd50=this['_getVidAttributeName'](_0x322159),_0x2c1e2c=_0x322159['item']['getAttribute'](_0x4ffd50);if(!_0x2d7c6c['has'](_0x2c1e2c)&&!_0x171578['has'](_0x2c1e2c)){if(_0x281bd2['has'](_0x2c1e2c))_0x38ef2d++;else{if(_0x2c1e2c!=_0x42e594[_0x38ef2d]){const _0x3237ba=_0x24edea['get'](_0x2c1e2c)||_0x24edea['get'](_0x42e594[_0x38ef2d]);for(;_0x2c1e2c!=_0x42e594[_0x38ef2d];)_0x281bd2['has'](_0x42e594[_0x38ef2d])||(_0x171578['set'](_0x42e594[_0x38ef2d],_0x3237ba),_0x24edea['set'](_0x42e594[_0x38ef2d],_0x3237ba)),_0x38ef2d++;}_0x38ef2d++;}}}}for(const _0x44fb80 of _0xa8c1ee){const _0x316ffc=_0x3258b0['insertions'][_0x44fb80];for(const _0xe61ec7 of _0x316ffc){const _0x29929e=this['_getVidAttributeName'](_0xe61ec7),_0x5befe7=_0xe61ec7['item']['getAttribute'](_0x29929e);if(_0x171578['has'](_0x5befe7)){const _0x10dce9=_0x171578['get'](_0x5befe7);_0x281bd2['has'](_0x5befe7)||_0x281bd2['set'](_0x5befe7,{..._0x10dce9}),_0x2d7c6c['set'](_0x5befe7,{..._0x10dce9});}}}for(const _0x2dc1d2 of _0x281bd2['keys']())_0x2dc1d2>=this['_startingRevisionId']&&_0x281bd2['delete'](_0x2dc1d2);const _0x3d9473=new Map();for(const _0x4efa32 of _0xa8c1ee){let _0x3e1911=_0x3258b0['insertions'][_0x4efa32];for(const _0x2199af of _0x3e1911)if(_0x2199af['item']['is']('element','tableCell')){const _0x97ce7e=this['_getVidAttributeName'](_0x2199af),_0xc48e93=_0x2199af['item']['getAttribute'](_0x97ce7e);if(_0x2d7c6c['has'](_0xc48e93)){const _0x20754a=_0x2199af['item']['parent']['parent']['getAttribute']('vid_start'),_0x36558d=_0x3d9473['get'](_0x20754a)||new Set();_0x36558d['add'](_0x2d7c6c['get'](_0xc48e93)['userId']),_0x3d9473['set'](_0x20754a,_0x36558d);}}_0x3e1911=_0x3258b0['deletions'][_0x4efa32];for(const _0x5975bb of _0x3e1911)if(_0x5975bb['item']['is']('element','tableCell')){const _0x3b1ec8=this['_getVidAttributeName'](_0x5975bb),_0x4bff63=_0x5975bb['item']['getAttribute'](_0x3b1ec8);if(_0x281bd2['has'](_0x4bff63)){const _0x1af206=_0x5975bb['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f4b6d=_0x3d9473['get'](_0x1af206)||new Set();_0x2f4b6d['add'](_0x281bd2['get'](_0x4bff63)['userId']),_0x3d9473['set'](_0x1af206,_0x2f4b6d);}}for(const _0x2c3ae4 of _0x3d9473['keys']())(_0x2d7c6c['has'](_0x2c3ae4)||_0x281bd2['has'](_0x2c3ae4))&&_0x3d9473['delete'](_0x2c3ae4);}for(const _0x12edd6 of _0xa8c1ee){const _0x4c23b1=_0x3258b0['insertions'][_0x12edd6];let _0x12423d=null,_0x24fd9c=null;for(const _0x88564e of _0x4c23b1){const _0x1c978c=this['_getVidAttributeName'](_0x88564e),_0x3a1df6=_0x88564e['item']['getAttribute'](_0x1c978c),_0x9d7a82=_0x3d9473['get'](_0x3a1df6);_0x9d7a82&&'elementStart'==_0x88564e['type']&&(_0x12423d=Array['from'](_0x9d7a82)[0x0],_0x24fd9c=_0x88564e['item']['getAttribute']('vid_end')),_0x12423d&&(_0x281bd2['set'](_0x3a1df6,{'userId':_0x12423d}),_0x2d7c6c['set'](_0x3a1df6,{'userId':_0x12423d})),_0x3a1df6==_0x24fd9c&&(_0x12423d=null,_0x24fd9c=null);}}const _0x38cc6c={},_0x501f5d=new Set();for(const _0x2719cc of _0xa8c1ee){const _0x3ec41e=_0x4424bd['deletions'][_0x2719cc],_0x5499f5=_0x4424bd['insertions'][_0x2719cc];for(const {userId:_0x4dabfe}of this['_touchedMarkers']['values']())null!==_0x4dabfe&&_0x501f5d['add'](_0x4dabfe);for(const {userId:_0x3f458a}of this['_touchedRoots']['values']())null!==_0x3f458a&&_0x501f5d['add'](_0x3f458a);this['_markChanges'](_0x5499f5,_0x3258b0['insertions'][_0x2719cc],_0x2d7c6c,'insertion',_0x501f5d),this['_markChanges'](_0x3ec41e,_0x3258b0['deletions'][_0x2719cc],_0x281bd2,'deletion',_0x501f5d),_0x38cc6c[_0x2719cc]={'insertions':this['_prepareViewToSave'](_0x5499f5),'deletions':this['_prepareViewToSave'](_0x3ec41e),'attachChange':this['_touchedRoots']['get'](_0x2719cc)||null,'attributesBefore':_0x23a3b0(this['_baseRootsAttributes']['get'](_0x2719cc))||{},'attributesAfter':_0x23a3b0(this['_diffRootsAttributes']['get'](_0x2719cc))};}return{'diffData':_0x38cc6c,'authorsIds':Array['from'](_0x501f5d)};}['_processRootBeforeSave'](_0x5d15e6){for(const [,_0x1c1d3e]of _0x5d15e6['markers']){const _0x2d96ad=_0x1c1d3e['start']['getAncestors']()['filter'](_0x16a3d5=>'tableCell'==_0x16a3d5['name']);for(const _0x30b3b6 of _0x2d96ad)0x1==_0x30b3b6['childCount']&&_0x30b3b6['getChild'](0x0)['is']('element','paragraph')&&_0x30b3b6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x190f81){this['_processRootBeforeSave'](_0x190f81);const _0x238b7e=this['editor']['data']['toView'](_0x190f81,{}),_0x4c12c5=Array['from'](_0x238b7e['getChildren']())['map'](_0x86dc8=>this['_getViewJson'](_0x86dc8));return JSON['stringify'](_0x4c12c5);}['_getViewJson'](_0x165309){if(_0x165309['is']('$text'))return _0x165309['data'];{const _0x37096d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x379641=_0x165309,_0x15573b=this['editor']['data']['htmlProcessor']['domConverter'],_0x2c4b78={'type':_0x37096d['_getTypeCharForViewElement'](_0x379641),'name':_0x379641['name'],'attributes':Array['from'](_0x379641['getAttributes']()),'children':Array['from'](_0x379641['getChildren']())['map'](_0x662470=>this['_getViewJson'](_0x662470))};if(_0x165309['is']('uiElement')&&'$comment'!=_0x165309['name']){const _0x591d70=_0x165309['render'](_0x15573b['domDocument'],_0x15573b);_0x2c4b78['children']['push'](_0x591d70['outerHTML']);}else{if(_0x165309['is']('rawElement')){const _0x10482b=_0x15573b['domDocument']['createElement'](_0x379641['name']);_0x165309['render'](_0x10482b,_0x15573b),_0x2c4b78['children']['push'](_0x10482b['innerHTML']);}}const _0x58e065=Array['from'](_0x379641['getCustomProperties']());_0x58e065['length']>0x0&&(_0x2c4b78['customProperties']=_0x58e065);const _0x19afc2=_0x379641['getFillerOffset']();return null!==_0x19afc2&&(_0x2c4b78['fillerOffset']=_0x19afc2),_0x2c4b78;}}['_markChanges'](_0x4137fd,_0x43b89f,_0x4da54c,_0x3ca9aa,_0x5c475f){let _0x3d8cfc=null,_0x2245ba=null,_0x2c6821=0x0;const _0x38cded=this['editor']['model'];for(let _0x1434d9=0x0;_0x1434d9<_0x43b89f['length'];_0x1434d9++){const _0xd2ea3=this['_getVidAttributeName'](_0x43b89f[_0x1434d9]),_0x681de6=_0x43b89f[_0x1434d9]['item']['getAttribute'](_0xd2ea3),_0x1bfd4e=_0x4da54c['get'](_0x681de6),_0x27479b=_0x1434d9==_0x43b89f['length']-0x1;(!_0x3d8cfc&&_0x1bfd4e&&(_0x3d8cfc=_0x1bfd4e,_0x2245ba=_0x43b89f[_0x1434d9]),_0x3d8cfc&&(!_0x1bfd4e||_0x1bfd4e['userId']!=_0x3d8cfc['userId']))&&(_0x540257(_0x1bfd4e,P(_0x2245ba,_0x4137fd,_0x38cded),P(_0x43b89f[_0x1434d9],_0x4137fd,_0x38cded)),_0x3d8cfc=_0x1bfd4e||null,_0x2245ba=_0x1bfd4e?_0x43b89f[_0x1434d9]:null),_0x3d8cfc&&_0x27479b&&_0x540257(_0x1bfd4e,P(_0x2245ba,_0x4137fd,_0x38cded),V(_0x43b89f[_0x1434d9],_0x4137fd,_0x38cded));}function _0x540257(_0x167373,_0x3ec53c,_0x17665a){const _0x5343b1=_0x3d8cfc['userId'],_0x97636='revision:'+_0x3ca9aa+':'+_0x5343b1+':'+_0x2c6821++,_0x4589c1=_0x38cded['createRange'](_0x3ec53c,_0x17665a);_0x4137fd['markers']['set'](_0x97636,_0x4589c1),null!==_0x5343b1&&_0x5c475f['add'](_0x5343b1);}}['_getVidAttributeName'](_0x2d0db2){switch(_0x2d0db2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3a6c52,_0x506f9b){_0x3a6c52['baseVersion']=null;for(const _0x2297ef in _0x3a6c52){const _0x25e3fd=_0x3a6c52[_0x2297ef];if(_0x25e3fd instanceof _0x3f62bd){const _0x331b64=_0x506f9b['get'](_0x25e3fd['root']['rootName']);_0x3a6c52[_0x2297ef]=this['_fixPosition'](_0x25e3fd,_0x331b64);}if(_0x25e3fd instanceof _0x6122c1){const _0x408804=_0x506f9b['get'](_0x25e3fd['root']['rootName']);_0x3a6c52[_0x2297ef]=this['_fixRange'](_0x25e3fd,_0x408804);}'root'===_0x2297ef&&(_0x3a6c52['root']=_0x506f9b['get'](_0x3a6c52['root']['rootName']));}}['_fixRange'](_0x1737ad,_0x4c611f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1737ad['start'],_0x4c611f),this['_fixPosition'](_0x1737ad['end'],_0x4c611f));}['_fixPosition'](_0x4617fe,_0x174896){return this['editor']['model']['createPositionFromPath'](_0x174896,_0x4617fe['path'],_0x4617fe['stickiness']);}['_handleInsertOperation'](_0x304be5){const _0x479db5=this['_idsRoots']['get'](_0x304be5['position']['root']['rootName']),_0x18a461=this['_fixPosition'](_0x304be5['position'],_0x479db5),_0x2ad068=null===_0x304be5['_authorId']?null:_0x304be5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1853a0=_0x18a461['parent'],_0x3fe8d3=this['_revisionId'],_0x2f1ec3=[];for(const _0xb95048 of _0x304be5['nodes'])if(_0xb95048['is']('element'))_0x2f1ec3['push'](this['_makeIdsRoot'](_0xb95048));else{for(let _0x4db368=0x0;_0x4db368<_0xb95048['offsetSize'];_0x4db368++)_0x2f1ec3['push'](new _0xe65b90('$text',{'vid':this['_revisionId']++}));}const _0x331eca=this['_revisionId'];for(let _0x16e0cf=_0x3fe8d3;_0x16e0cf<_0x331eca;_0x16e0cf++)this['_touched']['set'](_0x16e0cf,{'userId':_0x2ad068});_0x1853a0['_insertChild'](_0x18a461['offset'],_0x2f1ec3);}['_handleMoveOperation'](_0x4c9847){(_0x4c9847=this['_cloneOperation'](_0x4c9847,this['_idsRoots']))['_execute']();const _0x55b10d=null===_0x4c9847['_authorId']?null:_0x4c9847['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49418e=_0x4c9847['getMovedRangeStart'](),_0x1065d6=_0x49418e['parent'],_0x4189de=_0x49418e['offset'];!function _0x4548c2(_0x2364cf,_0x4fb7ab,_0xa57086,_0xe3b71c){for(let _0x3476c4=_0xa57086;_0x3476c4<_0xe3b71c;_0x3476c4++){const _0x561cf6=_0x4fb7ab['getChild'](_0x3476c4);_0x561cf6['is']('element','$text')?_0x2364cf['set'](_0x561cf6['getAttribute']('vid'),{'userId':_0x55b10d}):(_0x2364cf['set'](_0x561cf6['getAttribute']('vid_start'),{'userId':_0x55b10d}),_0x4548c2(_0x2364cf,_0x561cf6,0x0,_0x561cf6['childCount']),_0x2364cf['set'](_0x561cf6['getAttribute']('vid_end'),{'userId':_0x55b10d}));}}(this['_touched'],_0x1065d6,_0x4189de,_0x4189de+_0x4c9847['howMany']);}['_handleMergeOperation'](_0x1313be){const _0x3d0a23=null===(_0x1313be=this['_cloneOperation'](_0x1313be,this['_idsRoots']))['_authorId']?null:_0x1313be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33a5b7=_0x1313be['targetPosition']['parent'],_0x40796b=_0x1313be['sourcePosition']['parent'],_0x40b6d4=_0x33a5b7['getAttribute']('vid_end'),_0x26e29d=_0x40796b['getAttribute']('vid_start');_0x33a5b7['_setAttribute']('vid_end',_0x40796b['getAttribute']('vid_end')),_0x40796b['_setAttribute']('vid_end',_0x40b6d4),this['_touched']['set'](_0x26e29d,{'userId':_0x3d0a23}),this['_touched']['set'](_0x40b6d4,{'userId':_0x3d0a23}),_0x1313be['_execute']();}['_handleSplitOperation'](_0x519da8){const _0x1c5180=null===(_0x519da8=this['_cloneOperation'](_0x519da8,this['_idsRoots']))['_authorId']?null:_0x519da8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2765ac=_0x519da8['graveyardPosition'],_0x586360=_0x519da8['splitPosition']['parent'];_0x519da8['_execute']();const _0x45f83b=_0x586360['getAttribute']('vid_end'),_0xc8abbd=_0x519da8['insertionPosition']['nodeAfter'];if(_0x2765ac){const _0x200241=_0xc8abbd['getAttribute']('vid_end'),_0x220017=_0x586360['getAttribute']('vid_end');_0x586360['_setAttribute']('vid_end',_0x200241),_0xc8abbd['_setAttribute']('vid_end',_0x220017),this['_touched']['set'](_0x586360['getAttribute']('vid_end'),{'userId':_0x1c5180}),this['_touched']['set'](_0xc8abbd['getAttribute']('vid_start'),{'userId':_0x1c5180});}else{const _0x53ab9d=this['_revisionId']++,_0x1d5dba=this['_revisionId']++;_0x586360['_setAttribute']('vid_end',_0x53ab9d),_0xc8abbd['_setAttribute']('vid_start',_0x1d5dba),_0xc8abbd['_setAttribute']('vid_end',_0x45f83b),this['_touched']['set'](_0x53ab9d,{'userId':_0x1c5180}),this['_touched']['set'](_0x1d5dba,{'userId':_0x1c5180});}}['_handleMarkerOperation'](_0x469f41){if(!_0x469f41['affectsData'])return;const _0x162595=(_0x469f41=this['_cloneOperation'](_0x469f41,this['_diffRoots']))['oldRange']?_0x469f41['oldRange']['root']:null,_0x21d0ff=_0x469f41['newRange']?_0x469f41['newRange']['root']:null;_0x162595&&this['_markers']['delete'](_0x469f41['name']),_0x21d0ff&&this['_markers']['set'](_0x469f41['name'],_0x469f41['newRange']['clone']());const _0x1ee42e=null===_0x469f41['_authorId']?null:_0x469f41['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4250b5=_0x469f41['name'];if(!this['_touchedMarkers']['has'](_0x4250b5))return void this['_touchedMarkers']['set'](_0x4250b5,{'range':_0x469f41['oldRange'],'userId':_0x1ee42e});const _0x1585d9=this['_touchedMarkers']['get'](_0x4250b5),_0x7b5d2d=_0x1585d9['range'],_0x58e347=_0x469f41['newRange'];null==_0x7b5d2d&&null==_0x58e347||_0x7b5d2d&&_0x58e347&&_0x7b5d2d['isEqual'](_0x58e347)?this['_touchedMarkers']['delete'](_0x469f41['name']):_0x1585d9['userId']=_0x1ee42e;}['_handleRootOperation'](_0x19d0d9,_0x55b5fe){this['_diffRoots']['has'](_0x19d0d9['rootName'])?this['_diffRoots']['get'](_0x19d0d9['rootName'])['_isAttached']=_0x19d0d9['isAdd']:(this['_diffRoots']['set'](_0x19d0d9['rootName'],N(_0x19d0d9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x19d0d9['rootName'],{}),_0x55b5fe&&this['_idsRoots']['set'](_0x19d0d9['rootName'],N(_0x19d0d9['rootName'],!0x0)));const _0x5112aa=null===_0x19d0d9['_authorId']?null:_0x19d0d9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1127c8=this['_touchedRoots']['get'](_0x19d0d9['rootName']);_0x1127c8&&_0x1127c8['userId']===_0x5112aa?this['_touchedRoots']['delete'](_0x19d0d9['rootName']):this['_touchedRoots']['set'](_0x19d0d9['rootName'],{'userId':_0x5112aa,'isAttached':_0x19d0d9['isAdd']});}['_handleRootAttributeOperation'](_0x59223d){const _0x516aae=this['_diffRootsAttributes']['get'](_0x59223d['root']['rootName']);null===_0x59223d['newValue']?delete _0x516aae[_0x59223d['key']]:_0x516aae[_0x59223d['key']]=_0x59223d['newValue'];}}function x(_0x44d89f){const _0x8e20b3=N(_0x44d89f['rootName'],_0x44d89f['isAttached']());for(const _0x5390db of _0x44d89f['getChildren']()){const _0x366dd5=_0x5390db['_clone'](!0x0);_0x8e20b3['_appendChild'](_0x366dd5);}return _0x8e20b3;}function N(_0x1566c0,_0x4afe44=!0x0){const _0x52005f=new _0xf7c35c();return _0x52005f['rootName']=_0x1566c0,_0x52005f['_isAttached']=_0x4afe44,_0x52005f['isAttached']=()=>_0x52005f['_isAttached'],_0x52005f;}function P(_0xe77bb,_0x32e0eb,_0x1a723b){const _0x2a280c='elementEnd'==_0xe77bb['type']?_0x1a723b['createPositionAt'](_0xe77bb['item'],'end'):_0x1a723b['createPositionBefore'](_0xe77bb['item']);return _0x1a723b['createPositionFromPath'](_0x32e0eb,_0x2a280c['path'],_0x2a280c['stickiness']);}function V(_0x336fc7,_0x32bb4b,_0x4ae142){const _0xed07f1='elementStart'==_0x336fc7['type']?_0x4ae142['createPositionAt'](_0x336fc7['item'],0x0):_0x4ae142['createPositionAfter'](_0x336fc7['item']);return _0x4ae142['createPositionFromPath'](_0x32bb4b,_0xed07f1['path'],_0xed07f1['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x382db6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4e39e0){super(),this['id']=_0x4e39e0['id']||_0x25f762(),this['author']=_0x4e39e0['author'],this['type']=_0x4e39e0['type'],this['data']=_0x4e39e0['data']||{},this['rootName']=_0x4e39e0['rootName'],this['set']('createdAt',_0x4e39e0['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(_0xb5a4ba,_0xaf95eb){this['newRevisionId']=_0xb5a4ba,this['oldRevisionId']=_0xaf95eb,this['changes']=new _0x1c98ba();}['_setChanges'](_0x2fb52d){for(const _0x3961f2 of _0x2fb52d)this['changes']['add'](_0x3961f2);}}class u extends _0x20abfc{['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[_0x1c97ca,_0xbd06d1,S,$];}constructor(_0x5d9df9){super(_0x5d9df9),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',(_0x556e40,_0x345031,_0x1cafc6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x222c80=>{for(const _0x188287 of this['editor']['editing']['view']['document']['roots'])_0x1cafc6?_0x222c80['removeClass']('ck-editor__editable__overlay',_0x188287):_0x222c80['addClass']('ck-editor__editable__overlay',_0x188287);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xde1e7a=>null!==_0xde1e7a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d5c9b,_0x52969c,_0x1bbdd6)=>_0x5d5c9b&&_0x1bbdd6?_0x52969c['changes']['getIndex'](_0x1bbdd6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x149735,_0x28864d)=>_0x149735?_0x28864d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xbd06d1);}['init'](){const _0x3601df=this['editor'],_0x42e9c4=new rt(_0x3601df,{'direction':'backward'}),_0x2f4b8a=new rt(_0x3601df,{'direction':'forward'});(_0x3601df['commands']['add']('showPreviousChange',_0x42e9c4),_0x3601df['commands']['add']('showNextChange',_0x2f4b8a),_0x3601df['commands']['add']('restoreRevision',new nt(_0x3601df)),this['on']('change:numberOfChanges',()=>{_0x42e9c4['refresh'](),_0x2f4b8a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3601df['enableReadOnlyMode']('revision-viewer'),_0x3601df['plugins']['has']('WidgetToolbarRepository'))&&_0x3601df['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1f7e89){return await this['_utils']['loadRevisionData'](_0x1f7e89,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1f7e89);}async['getRevisionRootsAttributes'](_0xf4800c){return await this['_utils']['loadRevisionData'](_0xf4800c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xf4800c);}async['compare'](_0x4adfbf,_0x301452,_0x336bbb=!0x1){if(!this['isEnabled'])return;const _0x122c78=this['diff'],_0x4387c8=this['repository'],_0x448a7d='string'==typeof _0x4adfbf?_0x4387c8['getRevision'](_0x4adfbf):_0x4adfbf,_0x40ff2b='string'==typeof _0x301452?_0x4387c8['getRevision'](_0x301452):_0x301452,_0x17f29e=_0x448a7d['id'],_0xcb2139=_0x40ff2b?_0x40ff2b['id']:null;if(!_0x336bbb&&this['diff']&&this['diff']['newRevisionId']===_0x17f29e&&this['diff']['oldRevisionId']===_0xcb2139)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x17f29e,_0xcb2139);const _0x1cf70e=this['_getRevisionsRange'](_0x448a7d,_0x40ff2b,!0x0)['map'](_0x2bf31d=>this['_utils']['loadRevisionData'](_0x2bf31d,this['adapter']));return _0x1cf70e['push'](new Promise(_0x25add4=>{setTimeout(_0x25add4,0x14);})),Promise['all'](_0x1cf70e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3a54a7=this['_getDiff'](_0x17f29e,_0xcb2139);for(const _0x2a3c66 of _0x3a54a7['changes'])this['_changeIdToChange']['set'](_0x2a3c66['id'],_0x2a3c66);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x53f840=>{for(const _0x1305d8 of this['editor']['model']['document']['getRootNames']())_0x53f840['detachRoot'](_0x1305d8);for(const _0x19c9d8 of Object['keys'](_0x3a54a7['model'])){const _0x39ca5f=_0x53f840['addRoot'](_0x19c9d8);for(const _0x10d781 of Object['keys'](_0x3a54a7['attributes'][_0x19c9d8]))_0x53f840['setAttribute'](_0x10d781,_0x3a54a7['attributes'][_0x19c9d8][_0x10d781],_0x39ca5f);_0x53f840['insert'](_0x3a54a7['model'][_0x19c9d8],_0x39ca5f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3a54a7['changes'])),this['isReady']=!0x0;})['catch'](_0x8a0f03=>{console['error'](_0x8a0f03),this['_cleanUp'](),_0x122c78&&(this['diff']=_0x122c78),this['isReady']=!0x0;});}['addRevisionData'](_0x91b351,_0x700df1){const _0x4cf4fd=this['repository']['createRevision'](_0x91b351);return _0x4cf4fd['on']('_update',(_0x266547,_0x42ee73,_0x38ad9c)=>_0x700df1(_0x42ee73,_0x38ad9c,_0x4cf4fd)),this['repository']['addRevision'](_0x4cf4fd),_0x4cf4fd;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x271914=>{for(const _0x360f09 of this['editor']['model']['document']['getRootNames']())_0x271914['detachRoot'](_0x360f09);});}['_sortAndFilterDiffChanges'](_0x18eeb7){const _0x52ead6=[],_0x336484=new Map();for(const _0x345649 of this['editor']['model']['document']['getRootNames']()){const _0xb08fdc=this['editor']['editing']['view']['getDomRoot'](_0x345649);if(!_0xb08fdc)continue;const _0x5632ee=_0xb08fdc['getClientRects']()['item'](0x0);_0x5632ee&&(_0x52ead6['push'](_0x345649),_0x336484['set'](_0x345649,_0x5632ee));}return _0x52ead6['sort']((_0x1e2a57,_0x1ac197)=>{const _0x2008f3=_0x336484['get'](_0x1e2a57),_0x136e10=_0x336484['get'](_0x1ac197);return _0x2008f3['y']-_0x136e10['y']||_0x2008f3['x']-_0x136e10['x'];}),(_0x18eeb7=_0x18eeb7['filter'](_0x2fb13e=>_0x52ead6['includes'](_0x2fb13e['rootName'])))['sort']((_0x5a5ece,_0x2af42e)=>_0x52ead6['indexOf'](_0x5a5ece['rootName'])-_0x52ead6['indexOf'](_0x2af42e['rootName'])),_0x18eeb7;}['_makeTape'](_0x2910ff){const _0x144d73=Array['from'](_0x2910ff['markers'])['filter'](([_0x472e78,_0x197fdd])=>_0x472e78['startsWith']('revision:')&&!_0x197fdd['isCollapsed']),_0x32f952=Array['from'](this['editor']['model']['createRangeIn'](_0x2910ff)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x144d73['length'])for(const _0x33dfe4 of _0x32f952){const [_0x42c8a9,_0x39b1f1]=_0x144d73[0x0],[,_0x521000,_0x263d07]=_0x42c8a9['split'](':');if(_0x39b1f1['end']['isEqual'](_0x33dfe4['nextPosition'])&&_0x144d73['shift'](),(_0x33dfe4['previousPosition']['isEqual'](_0x39b1f1['start'])||_0x33dfe4['previousPosition']['isAfter'](_0x39b1f1['start']))&&('insertion'==_0x521000?_0x33dfe4['isAdded']={'userId':_0x263d07}:'deletion'==_0x521000&&(_0x33dfe4['isRemoved']={'userId':_0x263d07})),0x0==_0x144d73['length'])break;}return _0x32f952;}['_refreshStartEndIndex'](_0x343de){const _0x52c53a=new Map();for(let _0x10092f=0x0;_0x10092f<_0x343de['length'];_0x10092f++)'text'===_0x343de[_0x10092f]['type']?(_0x343de[_0x10092f]['item']['startIndex']=_0x10092f,_0x343de[_0x10092f]['item']['endIndex']=_0x10092f):('elementStart'===_0x343de[_0x10092f]['type']?_0x343de[_0x10092f]['item']['startIndex']=_0x10092f:'elementEnd'===_0x343de[_0x10092f]['type']&&(_0x343de[_0x10092f]['item']['endIndex']=_0x10092f),_0x52c53a['set'](_0x343de[_0x10092f]['id'],_0x10092f));for(const _0x1e2de0 of _0x52c53a['values']())'elementStart'===_0x343de[_0x1e2de0]['type']?_0x343de[_0x1e2de0]['item']['endIndex']=_0x52c53a['get'](_0x343de[_0x1e2de0]['pairId']):'elementEnd'===_0x343de[_0x1e2de0]['type']&&(_0x343de[_0x1e2de0]['item']['startIndex']=_0x52c53a['get'](_0x343de[_0x1e2de0]['pairId']));}['_processTape'](_0x306398){for(let _0x4614ce=0x0;_0x4614ce<_0x306398['length'];_0x4614ce++){if('elementStart'===_0x306398[_0x4614ce]['type'])_0x306398[_0x4614ce]['item']['startIndex']=_0x4614ce;else{if('elementEnd'===_0x306398[_0x4614ce]['type']){_0x306398[_0x4614ce]['item']['endIndex']=_0x4614ce;const _0x55b0a3=_0x306398[_0x4614ce]['item']['startIndex'];_0x306398[_0x55b0a3]['pairId']=_0x306398[_0x4614ce]['id'],_0x306398[_0x4614ce]['pairId']=_0x306398[_0x55b0a3]['id'];}else _0x306398[_0x4614ce]['item']['startIndex']=_0x4614ce,_0x306398[_0x4614ce]['item']['endIndex']=_0x4614ce,_0x306398[_0x4614ce]['pairId']=null;}_0x306398[_0x4614ce]['markersStart']||(_0x306398[_0x4614ce]['markersStart']=[],_0x306398[_0x4614ce]['markersEnd']=[]);}}['_markInsertions'](_0x262ecf,_0x55e931){const _0x30400b=_0x262ecf['filter'](_0x4549ef=>!_0x4549ef['isAdded']);for(let _0x56a9f7=0x0;_0x56a9f7<_0x55e931['length'];_0x56a9f7++)_0x55e931[_0x56a9f7]['isAdded']&&(_0x30400b[_0x56a9f7]['isAdded']=_0x55e931[_0x56a9f7]['isAdded']);}['_getDiff'](_0x19cfa1,_0x378b13=null){const _0x1af5ca=this['repository']['getRevision'](_0x19cfa1),_0x245b2a=_0x378b13?this['repository']['getRevision'](_0x378b13):null,_0x511c26=this['_getRevisionsRange'](_0x1af5ca,_0x245b2a),_0x29dd48=_0x511c26[_0x511c26['length']-0x1],_0x527175=new Map(),_0x2cadfe={'model':{},'attributes':{},'changes':[]},_0x4b37b0=new Set(),_0x3e4c23=new Map();for(let _0x288bee=_0x511c26['length']-0x1;_0x288bee>=0x0;_0x288bee--){const _0x31bc8d=_0x511c26[_0x288bee];for(const _0x439e7d of Object['keys'](_0x31bc8d['diffData']))if(_0x31bc8d['diffData'][_0x439e7d]['attachChange']){const _0x277ee9=_0x31bc8d['diffData'][_0x439e7d]['attachChange'];_0x277ee9['isAttached']?(_0x4b37b0['add'](_0x439e7d),_0x3e4c23['has'](_0x439e7d)&&_0x3e4c23['get'](_0x439e7d)['userId']==_0x277ee9['userId']?_0x3e4c23['delete'](_0x439e7d):_0x3e4c23['set'](_0x439e7d,_0x277ee9)):_0x3e4c23['has'](_0x439e7d)?(_0x4b37b0['delete'](_0x439e7d),_0x3e4c23['delete'](_0x439e7d)):(_0x4b37b0['add'](_0x439e7d),_0x3e4c23['set'](_0x439e7d,_0x277ee9));}else _0x4b37b0['add'](_0x439e7d);}for(const _0xbbd9b3 of _0x4b37b0){const _0x39ab13=_0x3e4c23['has'](_0xbbd9b3)&&!_0x3e4c23['get'](_0xbbd9b3)['isAttached'];let _0x23e08e=_0x39ab13?_0x511c26['length']-0x1:0x0;const _0x33a927=_0x39ab13?-0x1:0x1;for(;_0x511c26[_0x23e08e];){const _0x575396=_0x511c26[_0x23e08e];if(_0x575396['diffData'][_0xbbd9b3]){const _0x5c9998=_0x39ab13?_0x575396['diffData'][_0xbbd9b3]['attributesBefore']:_0x575396['diffData'][_0xbbd9b3]['attributesAfter'];_0x2cadfe['attributes'][_0xbbd9b3]=_0x5c9998?_0x23a3b0(_0x5c9998):{};break;}_0x23e08e+=_0x33a927;}}for(const _0x453c87 of _0x511c26){_0x453c87['model']={};for(const _0x19de8a of _0x453c87['authors'])_0x527175['set'](_0x19de8a['id'],_0x19de8a);for(const _0x477323 of _0x4b37b0){const _0x573db0=_0x453c87['diffData'][_0x477323]?_0x453c87['diffData'][_0x477323]['insertions']:'[]',_0xc526bb=_0x453c87['diffData'][_0x477323]?_0x453c87['diffData'][_0x477323]['deletions']:'[]';_0x453c87['model'][_0x477323]={'insertions':this['_utils']['_makeModelFromViewString'](_0x573db0),'deletions':this['_utils']['_makeModelFromViewString'](_0xc526bb)};}}for(const _0x301a50 of _0x4b37b0){let _0x46397e=null,_0x183067=0x0;const _0x33431b=new Map(Array['from'](_0x1af5ca['model'][_0x301a50]['insertions']['markers'])['filter'](([_0x5e9b49])=>!_0x5e9b49['startsWith']('revision:')));let _0x25b471=0x0;for(const _0x9d0c36 of _0x511c26){const _0x3ff915=this['_makeTape'](_0x9d0c36['model'][_0x301a50]['insertions']);_0x9d0c36==_0x1af5ca?(_0x46397e=_0x3ff915,_0x183067=_0x46397e['length'],_0x46397e['forEach'](_0x78dccc=>{_0x78dccc['id']=_0x25b471++;}),this['_processTape'](_0x46397e)):this['_markInsertions'](_0x46397e,_0x3ff915);const _0x1ea1a6=_0x46397e['filter'](_0x4e5246=>!_0x4e5246['isAdded'])['map'](_0x515788=>_0x515788['id']);let _0x26bc0f=0x0;const _0x4dbdc6=this['_makeTape'](_0x9d0c36['model'][_0x301a50]['deletions']);_0x4dbdc6['forEach'](_0x3cfd7e=>{_0x3cfd7e['isRemoved']?_0x3cfd7e['id']=_0x183067++:_0x3cfd7e['id']=_0x1ea1a6[_0x26bc0f++];}),this['_processTape'](_0x4dbdc6),this['_setDistance'](_0x46397e,'isAdded'),this['_setDistance'](_0x4dbdc6,'isRemoved'),_0x9d0c36==_0x1af5ca&&this['_markMarkers'](_0x46397e,_0x33431b),_0x46397e=this['_joinTapes'](_0x46397e,_0x4dbdc6),this['_refreshStartEndIndex'](_0x46397e),this['_setDistance'](_0x46397e,'isRemoved');}_0x46397e=_0x46397e['filter'](_0x2bc5ad=>!(_0x2bc5ad['isAdded']&&_0x2bc5ad['isRemoved']));const _0x4384cd=new Map(_0x29dd48['model'][_0x301a50]['deletions']['markers']),_0x234e79=new Set(_0x33431b['keys']());for(const _0x50cc8b of _0x4384cd['keys']())_0x234e79['delete'](_0x50cc8b);this['_markSuggestions'](_0x46397e,_0x234e79),this['_fixObsoleteTags'](_0x46397e),_0x46397e=this['_removeMissingPairs'](_0x46397e),_0x46397e=this['_markMismatchedRemovedTags'](_0x46397e),_0x46397e=this['_removeUnsupportedChanges'](_0x46397e);const {root:_0x5c6d9b,changes:_0x4413ba}=this['_makeModelFromTape'](_0x46397e,_0x527175,_0x301a50);_0x2cadfe['model'][_0x301a50]=_0x5c6d9b;const _0x9cabe5=_0x3e4c23['get'](_0x301a50);if(_0x9cabe5){const _0x323672=_0x527175['get'](_0x9cabe5['userId']),_0x3372e9=new G({'author':_0x323672,'type':_0x9cabe5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x301a50});_0x4413ba['unshift'](_0x3372e9),_0x2cadfe['attributes'][_0x301a50]['revisionHistoryAttachChange']=_0x3372e9['id'];}_0x2cadfe['changes']=_0x2cadfe['changes']['concat'](_0x4413ba);}return _0x2cadfe;}['_markMarkers'](_0x3d0094,_0x1dd3e1){for(let _0x1615e2=0x0;_0x1615e2<_0x3d0094['length'];_0x1615e2++)for(const [_0x1cf275,_0x4c2b61]of _0x1dd3e1)!_0x4c2b61['isCollapsed']&&_0x4c2b61['start']['isEqual'](_0x3d0094[_0x1615e2]['previousPosition'])&&_0x3d0094[_0x1615e2]['markersStart']['push'](_0x1cf275),_0x4c2b61['end']['isEqual'](_0x3d0094[_0x1615e2]['nextPosition'])&&_0x3d0094[_0x1615e2]['markersEnd']['push'](_0x1cf275);}['_joinTapes'](_0x3cc856,_0x3b74ed){let _0x1362ee=[],_0x53c4f0=0x0,_0x3d3a15=0x0;for(;_0x53c4f0<_0x3cc856['length']||_0x3d3a15<_0x3b74ed['length'];){const _0x39c318=_0x3cc856[_0x53c4f0]||{},_0x347ef2=_0x3b74ed[_0x3d3a15]||{};if(_0x39c318['id']==_0x347ef2['id'])_0x53c4f0++,_0x3d3a15++,_0x1362ee['push'](_0x39c318);else{if(_0x347ef2['isRemoved']&&_0x39c318['isAdded']){const {commonTape:_0x3b3498,iEnd:_0x3986ab,jEnd:_0x38d42f}=this['_threeWayMerge'](_0x3cc856,_0x53c4f0,_0x3b74ed,_0x3d3a15);_0x1362ee=_0x1362ee['concat'](_0x3b3498),_0x53c4f0=_0x3986ab,_0x3d3a15=_0x38d42f;}else _0x347ef2['isRemoved']?(_0x3d3a15++,_0x1362ee['push'](_0x347ef2)):(_0x53c4f0++,_0x1362ee['push'](_0x39c318));}}return _0x1362ee;}['_markSuggestions'](_0x71011b,_0x482dd7){const _0x3db35c=[];for(let _0x5500b5=0x0;_0x5500b5<_0x71011b['length'];_0x5500b5++){for(let _0x40bf0d=0x0;_0x40bf0d<_0x71011b[_0x5500b5]['markersStart']['length'];_0x40bf0d++){const _0x8874fe=_0x71011b[_0x5500b5]['markersStart'][_0x40bf0d];if(!_0x482dd7['has'](_0x8874fe))continue;const {group:_0x83ddef,type:_0x21ccb7,authorId:_0x3b40a3}=_0x372e83(_0x8874fe);'revision-suggestion'!=_0x83ddef||'insertion'!=_0x21ccb7&&'deletion'!=_0x21ccb7||(_0x3db35c['unshift']({'type':_0x21ccb7,'name':_0x8874fe,'userId':_0x3b40a3}),_0x71011b[_0x5500b5]['markersStart']['splice'](_0x40bf0d,0x1),_0x40bf0d--);}_0x233940(_0x71011b[_0x5500b5]);for(let _0x3331f0=0x0;_0x3331f0<_0x71011b[_0x5500b5]['markersEnd']['length'];_0x3331f0++){const _0x5c970e=_0x71011b[_0x5500b5]['markersEnd'][_0x3331f0];if(!_0x482dd7['has'](_0x5c970e))continue;const {group:_0x46b4d0,type:_0x4a30fd}=_0x372e83(_0x5c970e);if('revision-suggestion'!=_0x46b4d0||'insertion'!=_0x4a30fd&&'deletion'!=_0x4a30fd)continue;_0x71011b[_0x5500b5]['markersEnd']['splice'](_0x3331f0,0x1),_0x3331f0--;const _0x30b8df=_0x3db35c['findIndex'](_0x141093=>_0x141093['name']==_0x5c970e);_0x30b8df>-0x1&&_0x3db35c['splice'](_0x30b8df,0x1);}}function _0x372e83(_0x4ca8be){const _0x5288fb=_0x4ca8be['split'](':');return{'group':_0x5288fb[0x0],'type':_0x5288fb[0x1],'subType':_0x5288fb['length']>=0x5?_0x5288fb[0x2]:null,'id':_0x5288fb['length']<0x5?_0x5288fb[0x2]:_0x5288fb[0x3],'authorId':_0x5288fb['length']<0x5?_0x5288fb[0x3]:_0x5288fb[0x4],'markerCount':0x6==_0x5288fb['length']?_0x5288fb[0x5]:null};}function _0x233940(_0x50b5be){for(let _0xddbea5=0x0;_0xddbea5<_0x3db35c['length'];_0xddbea5++){if(_0x50b5be['isAdded']&&'insertion'==_0x3db35c[_0xddbea5]['type']&&_0x50b5be['isAdded']['userId']==_0x3db35c[_0xddbea5]['userId'])return _0x50b5be['isAddSuggestion']=_0x3db35c[_0xddbea5],void delete _0x50b5be['isAdded'];if(!_0x50b5be['isAdded']&&!_0x50b5be['isRemoved']&&'deletion'==_0x3db35c[_0xddbea5]['type'])return void(_0x50b5be['isRemoveSuggestion']=_0x3db35c[_0xddbea5]);}}}['_setDistance'](_0x434375,_0xce91cc){let _0x1024d3=0x0,_0x11ced7=!0x1;const _0x4a6de4=new Map();for(const _0x567e72 of _0x434375)_0x567e72[_0xce91cc]?_0x11ced7&&(_0x1024d3++,_0x11ced7=!0x1):(_0x1024d3++,_0x11ced7=!0x0),_0x4a6de4['set'](_0x567e72['id'],_0x1024d3);for(let _0x43ca81=0x0;_0x43ca81<_0x434375['length'];_0x43ca81++){if('isRemoved'==_0xce91cc&&_0x434375[_0x43ca81]['isAdded']||'isAdded'==_0xce91cc&&_0x434375[_0x43ca81]['isRemoved'])continue;if('text'==_0x434375[_0x43ca81]['type']){_0x434375[_0x43ca81]['distance']=0x0;continue;}const _0x41dbe8=_0x4a6de4['get'](_0x434375[_0x43ca81]['pairId']),_0x513d5e=_0x4a6de4['get'](_0x434375[_0x43ca81]['id']);_0x434375[_0x43ca81]['distance']=_0x41dbe8-_0x513d5e;}}['_getRevisionsRange'](_0xe86b8d,_0x3396a0,_0xed9710=!0x1){const _0x402e04=[];let _0x1b148b=this['repository']['getIndex'](_0xe86b8d),_0x2da75c=this['repository']['getIndex'](_0x3396a0);for(-0x1==_0x2da75c&&(_0x2da75c=this['repository']['_revisions']['length'],_0xed9710=!0x1);_0x1b148b<_0x2da75c;)_0x402e04['push'](this['repository']['getRevision'](_0x1b148b)),_0x1b148b++;return _0xed9710&&_0x402e04['push'](this['repository']['getRevision'](_0x1b148b)),_0x402e04;}['_threeWayMerge'](_0x104a19,_0x149898,_0x2cda3a,_0x523eb4){const _0xf188ea=this['editor']['model']['schema'];let _0x1e2431=_0x149898;for(;_0x104a19[_0x1e2431]&&_0x104a19[_0x1e2431]['isAdded'];)_0x1e2431++;let _0x50938a=_0x523eb4;for(;_0x2cda3a[_0x50938a]&&_0x2cda3a[_0x50938a]['isRemoved'];)_0x50938a++;_0x49b703(_0x104a19,_0x149898,_0x1e2431),_0x49b703(_0x2cda3a,_0x523eb4,_0x50938a);const _0x4598b7=_0x2cda3a['slice'](_0x523eb4,_0x50938a)['concat'](_0x104a19['slice'](_0x149898,_0x1e2431));return _0x4598b7['sort']((_0x2c9a1b,_0x22441a)=>_0x2c9a1b['side']!=_0x22441a['side']?_0x2c9a1b['side']-_0x22441a['side']:_0x2c9a1b['level']!=_0x22441a['level']?_0x2c9a1b['level']-_0x22441a['level']:_0x2c9a1b['distance']!=_0x22441a['distance']?_0x22441a['distance']-_0x2c9a1b['distance']:!!_0x2c9a1b['isAdded']!=!!_0x22441a['isAdded']?-0x1==_0x2c9a1b['side']||0x0==_0x2c9a1b['side']?_0x2c9a1b['isAdded']?-0x1:0x1:_0x2c9a1b['isAdded']?0x1:-0x1:_0x2c9a1b['index']-_0x22441a['index']),{'commonTape':_0x4598b7,'iEnd':_0x1e2431,'jEnd':_0x50938a};function _0x49b703(_0x28f6b4,_0x356600,_0x424070){let _0x4c95ed=-0x1,_0x16c677=Number['POSITIVE_INFINITY'],_0x107de9=!0x0;for(let _0x70aab2=_0x356600;_0x70aab2<_0x424070;_0x70aab2++)if(_0xf188ea['isInline'](_0x28f6b4[_0x70aab2]['item'])||(_0x107de9=!0x1),_0x28f6b4[_0x70aab2]['item']['startIndex']<_0x356600&&(_0x4c95ed=_0x70aab2),_0x28f6b4[_0x70aab2]['item']['endIndex']>=_0x424070){_0x16c677=_0x70aab2;break;}_0x107de9&&(_0x4c95ed=_0x424070-0x1);for(let _0x139783=_0x356600;_0x139783<_0x424070;_0x139783++)_0x28f6b4[_0x139783]['side']=_0x139783<=_0x4c95ed?-0x1:_0x139783<_0x16c677?0x0:0x1,_0x28f6b4[_0x139783]['index']=_0x139783;let _0x331b80=0x0;for(let _0x571cc5=_0x356600;_0x571cc5<=_0x4c95ed;_0x571cc5++)0x0==_0x28f6b4[_0x571cc5]['distance']?_0x28f6b4[_0x571cc5]['level']=_0x331b80:(_0x331b80++,_0x28f6b4[_0x571cc5]['level']=_0x331b80,_0x331b80++);for(let _0x4991f3=_0x356600;_0x4991f3<_0x424070;_0x4991f3++)0x0==_0x28f6b4[_0x4991f3]['side']&&(_0x28f6b4[_0x4991f3]['level']=_0x331b80);_0x331b80=0x0;for(let _0x14f783=_0x424070-0x1;_0x14f783>=_0x16c677;_0x14f783--)0x0==_0x28f6b4[_0x14f783]['distance']?_0x28f6b4[_0x14f783]['level']=_0x331b80:(_0x331b80--,_0x28f6b4[_0x14f783]['level']=_0x331b80,_0x331b80--);}}['_fixObsoleteTags'](_0xedd876){const _0x32b83c=new Map(),_0x3bcedc=this['editor']['model']['schema'];for(let _0x1de50b=0x1;_0x1de50b<_0xedd876['length'];_0x1de50b++){let _0x4d0218,_0x45075f,_0x369867;const _0x108681=_0xedd876[_0x1de50b],_0x5d1ef4=_0xedd876[_0x1de50b-0x1];if('text'==_0x108681['type'])continue;if(_0x108681['type']!=_0x5d1ef4['type'])continue;if(!_0x3bcedc['isBlock'](_0x5d1ef4['item'])||_0x3bcedc['isLimit'](_0x5d1ef4['item']))continue;if(!_0x3bcedc['isBlock'](_0x108681['item'])||_0x3bcedc['isLimit'](_0x108681['item']))continue;if((_0xedd876[_0x1de50b]['isAdded']||_0xedd876[_0x1de50b]['isAddSuggestion'])&&_0xedd876[_0x1de50b-0x1]['isRemoved'])_0x4d0218=_0xedd876[_0x1de50b],_0x45075f=_0xedd876[_0x1de50b-0x1],_0x369867=_0x1de50b-0x1;else{if(!_0xedd876[_0x1de50b]['isRemoved']||!_0xedd876[_0x1de50b-0x1]['isAdded']&&!_0xedd876[_0x1de50b-0x1]['isAddSuggestion'])continue;_0x4d0218=_0xedd876[_0x1de50b-0x1],_0x45075f=_0xedd876[_0x1de50b],_0x369867=_0x1de50b;}const _0x543a46=_0x4d0218['level']==_0x45075f['level'],_0x1a08fa=Math['abs'](_0x4d0218['level'])<Math['abs'](_0x45075f['level'])&&0x0==_0x45075f['distance'];(_0x543a46||_0x1a08fa)&&(_0x32b83c['set'](_0x45075f['id'],_0x4d0218['id']),_0xedd876['splice'](_0x369867,0x1),_0x1de50b--,_0x4d0218['isAdded']=!0x1);}for(let _0x5d2f1b=0x0;_0x5d2f1b<_0xedd876['length'];_0x5d2f1b++)_0x32b83c['has'](_0xedd876[_0x5d2f1b]['pairId'])&&(_0xedd876[_0x5d2f1b]['pairId']=_0x32b83c['get'](_0xedd876[_0x5d2f1b]['pairId']));}['_removeMissingPairs'](_0x1d1393){const _0x39c261=new Set(_0x1d1393['map'](_0x1a1521=>_0x1a1521['id']));for(let _0x3e40fb=0x0;_0x3e40fb<_0x1d1393['length'];_0x3e40fb++)_0x39c261['has'](_0x1d1393[_0x3e40fb]['pairId'])||0x0==_0x1d1393[_0x3e40fb]['distance']||(_0x1d1393[_0x3e40fb]['isIncorrect']=!0x0);return _0x1d1393['filter'](_0x30f99d=>!_0x30f99d['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd2690e){const _0x1c3b88=new Set();for(let _0x1fcbe1=0x0;_0x1fcbe1<_0xd2690e['length'];_0x1fcbe1++){if(_0x1c3b88['has'](_0xd2690e[_0x1fcbe1]['id'])&&_0xd2690e[_0x1fcbe1]['isRemoved']&&(_0xd2690e[_0x1fcbe1]['isIncorrect']=!0x0),_0xd2690e[_0x1fcbe1]['isIncorrect'])continue;if(0x0==_0xd2690e[_0x1fcbe1]['distance'])continue;if('elementStart'!=_0xd2690e[_0x1fcbe1]['type'])continue;if(null==_0xd2690e[_0x1fcbe1]['pairId'])continue;let _0x404e1c=_0x1fcbe1+0x1,_0x5a39a2=0x0;for(;_0xd2690e[_0x404e1c]['id']!=_0xd2690e[_0x1fcbe1]['pairId'];)'elementStart'==_0xd2690e[_0x404e1c]['type']?_0x5a39a2++:'elementEnd'==_0xd2690e[_0x404e1c]['type']&&_0x5a39a2--,_0x404e1c++;if(0x0!=_0x5a39a2){if(_0xd2690e[_0x1fcbe1]['isRemoved'])_0xd2690e[_0x1fcbe1]['isIncorrect']=!0x0;else{for(;_0x404e1c!=_0x1fcbe1;)_0xd2690e[_0x404e1c]['isRemoved']&&0x0!=_0xd2690e[_0x404e1c]['distance']&&(_0xd2690e[_0x404e1c]['isIncorrect']=!0x0,_0x1c3b88['add'](_0xd2690e[_0x404e1c]['pairId'])),_0x404e1c--;}}}return _0xd2690e['filter'](_0x40be22=>!_0x40be22['isIncorrect']);}['_removeUnsupportedChanges'](_0x16267d){const _0x560ca7=this['editor']['model']['schema'];for(let _0x58dd37=0x0;_0x58dd37<_0x16267d['length'];_0x58dd37++){if(!(_0x16267d[_0x58dd37]['isAdded']||_0x16267d[_0x58dd37]['isAddSuggestion']||_0x16267d[_0x58dd37]['isRemoved']||_0x16267d[_0x58dd37]['isRemoveSuggestion']))continue;if(0x0==_0x16267d[_0x58dd37]['distance'])continue;const _0x32b0ff=_0x16267d[_0x58dd37]['item'];_0x560ca7['isBlock'](_0x32b0ff)||_0x560ca7['isLimit'](_0x32b0ff)||(_0x16267d[_0x58dd37]['isAdded']&&delete _0x16267d[_0x58dd37]['isAdded'],_0x16267d[_0x58dd37]['isAddSuggestion']&&delete _0x16267d[_0x58dd37]['isAddSuggestion'],_0x16267d[_0x58dd37]['isRemoveSuggestion']&&delete _0x16267d[_0x58dd37]['isRemoveSuggestion'],_0x16267d[_0x58dd37]['isRemoved']&&(_0x16267d[_0x58dd37]['isIncorrect']=!0x0));}return _0x16267d['filter'](_0x4c65db=>!_0x4c65db['isIncorrect']);}['_makeModelFromTape'](_0x28b4c7,_0xdd4bb2,_0x1fd798){const _0x5b252a=new _0xf7c35c(),_0x4fb944=[],_0x43a762=new Map(),_0x2cbb52=this['editor']['model'],_0x1d3fdc=_0x2cbb52['schema'],_0x45af01=[_0x5b252a],_0x1c3615={},_0x32ecba={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3da38f=null;const _0x54421d=[0x0];for(let _0x665553=0x0;_0x665553<_0x28b4c7['length'];_0x665553++)if('elementStart'===_0x28b4c7[_0x665553]['type']){_0x28b4c7[_0x665553]['previousPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d);const _0x383ffc=new _0xe65b90(_0x28b4c7[_0x665553]['item']['name'],_0x28b4c7[_0x665553]['item']['getAttributes']());_0x45af01[0x0]['_appendChild'](_0x383ffc),_0x54421d['push'](0x0),_0x45af01['unshift'](_0x383ffc),_0x28b4c7[_0x665553]['nextPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d);}else'elementEnd'===_0x28b4c7[_0x665553]['type']?(_0x45af01['shift'](),_0x28b4c7[_0x665553]['previousPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d),_0x54421d['pop'](),_0x54421d[_0x54421d['length']-0x1]++,_0x28b4c7[_0x665553]['nextPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d)):(_0x28b4c7[_0x665553]['previousPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d),_0x3da38f?_0x3da38f['_data']+=_0x28b4c7[_0x665553]['item']['data']:_0x3da38f=new _0x28525c(_0x28b4c7[_0x665553]['item']['data'],_0x28b4c7[_0x665553]['item']['getAttributes']()),_0x28b4c7[_0x665553+0x1]&&'text'===_0x28b4c7[_0x665553+0x1]['type']&&_0x1d5f5e(_0x3da38f,_0x28b4c7[_0x665553+0x1]['item'])||(_0x45af01[0x0]['_appendChild'](_0x3da38f),_0x3da38f=null),_0x54421d[_0x54421d['length']-0x1]+=_0x28b4c7[_0x665553]['item']['offsetSize'],_0x28b4c7[_0x665553]['nextPosition']=_0x2cbb52['createPositionFromPath'](_0x5b252a,_0x54421d));for(let _0x4e3bd0=0x0;_0x4e3bd0<_0x28b4c7['length'];_0x4e3bd0++){const _0x5f0bbd=_0x28b4c7[_0x4e3bd0]['previousPosition'],_0x2188a3=_0x28b4c7[_0x4e3bd0]['nextPosition'];for(const _0x4f5955 of _0x28b4c7[_0x4e3bd0]['markersStart'])_0x43a762['set'](_0x4f5955,{'start':_0x5f0bbd,'end':null});_0x5dedb1('isRemoveSuggestion',_0x4e3bd0,_0x5f0bbd,_0x2188a3),_0x5dedb1('isAddSuggestion',_0x4e3bd0,_0x5f0bbd,_0x2188a3),_0x5dedb1('isRemoved',_0x4e3bd0,_0x5f0bbd,_0x2188a3),_0x5dedb1('isAdded',_0x4e3bd0,_0x5f0bbd,_0x2188a3);for(const _0x4b028a of _0x28b4c7[_0x4e3bd0]['markersEnd']){const _0x3153d1=_0x43a762['get'](_0x4b028a);_0x3153d1?_0x3153d1['end']=_0x2188a3:_0x43a762['set'](_0x4b028a,{'start':_0x2188a3,'end':_0x2188a3});}}for(const [_0x552186,_0xed75e0]of _0x43a762){const _0x5954dd=this['editor']['model']['createRange'](_0xed75e0['start'],_0xed75e0['end']);_0x5b252a['markers']['set'](_0x552186,_0x5954dd);}return _0x4fb944['sort']((_0x723276,_0x2485a6)=>{const _0x4d872b=_0x5b252a['markers']['get']('revision:'+_0x723276['id']),_0x62d9c2=_0x5b252a['markers']['get']('revision:'+_0x2485a6['id']);return _0x4d872b['start']['isBefore'](_0x62d9c2['start'])?-0x1:_0x4d872b['start']['isAfter'](_0x62d9c2['start'])?0x1:_0x4d872b['end']['isBefore'](_0x62d9c2['end'])?-0x1:_0x4d872b['end']['isAfter'](_0x62d9c2['end'])?0x1:'add'===_0x723276['type']?-0x1:0x1;}),{'root':_0x5b252a,'changes':_0x4fb944};function _0x5dedb1(_0x566a91,_0x1c7173,_0x745c2e,_0x59b49c){const _0x50e18d=!!_0x28b4c7[_0x1c7173][_0x566a91],_0x33ba03=_0x50e18d?_0x28b4c7[_0x1c7173][_0x566a91]['userId']:null,_0x4e499d=_0x1c7173===_0x28b4c7['length']-0x1,_0x43a5d7=_0x32ecba[_0x566a91][0x0],_0x253470=_0x1d3fdc['isObject'](_0x28b4c7[_0x1c7173]['item']);!_0x1c3615[_0x566a91]&&_0x50e18d?_0x1c3615[_0x566a91]={'start':_0x745c2e,'tapeItem':_0x28b4c7[_0x1c7173],'userId':_0x33ba03,'type':_0x566a91}:_0x1c3615[_0x566a91]&&!_0x50e18d?(_0x1c3615[_0x566a91]['end']=_0x745c2e,_0x37c4e7(_0x1c3615[_0x566a91]),_0x1c3615[_0x566a91]=null):_0x1c3615[_0x566a91]&&_0x50e18d&&_0x1c3615[_0x566a91]['userId']!==_0x33ba03&&(_0x1c3615[_0x566a91]['end']=_0x745c2e,_0x43a5d7&&_0x43a5d7['userId']===_0x1c3615[_0x566a91]['userId']||_0x37c4e7(_0x1c3615[_0x566a91]),_0x1c3615[_0x566a91]={'start':_0x745c2e,'tapeItem':_0x28b4c7[_0x1c7173],'userId':_0x33ba03,'type':_0x566a91}),_0x1c3615[_0x566a91]&&_0x253470&&('elementStart'!==_0x28b4c7[_0x1c7173]['type']||_0x43a5d7&&_0x43a5d7['userId']===_0x33ba03||_0x32ecba[_0x566a91]['unshift']({'userId':_0x33ba03,'object':_0x28b4c7[_0x1c7173]['item'],'change':_0x1c3615[_0x566a91]}),'elementEnd'===_0x28b4c7[_0x1c7173]['type']&&_0x43a5d7&&_0x43a5d7['object']===_0x28b4c7[_0x1c7173]['item']&&(_0x32ecba[_0x566a91]['shift'](),_0x1c3615[_0x566a91]=_0x43a5d7['change'])),_0x1c3615[_0x566a91]&&_0x4e499d&&(_0x1c3615[_0x566a91]['end']=_0x59b49c,_0x37c4e7(_0x1c3615[_0x566a91]),_0x1c3615[_0x566a91]=null);}function _0x37c4e7({start:_0x4af0be,end:_0x3a56c8,tapeItem:_0x252dfe,userId:_0x12d20a,type:_0x3403be}){const _0x570ebb=_0x252dfe['item'],_0x36523a=_0x2cbb52['schema']['isBlock'](_0x570ebb)&&!_0x2cbb52['schema']['isLimit'](_0x570ebb),_0x2026c6=_0x4af0be['nodeAfter']==_0x3a56c8['parent']&&_0x3a56c8['isAtStart'];if(_0x36523a&&_0x2026c6)return;const _0x593493=_0x2cbb52['createRange'](_0x4af0be,_0x3a56c8),_0x3dbe6f=_0xdd4bb2['get'](_0x12d20a),_0x48376e=new G({'author':_0x3dbe6f,'type':'isAdded'==_0x3403be||'isAddSuggestion'==_0x3403be?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3403be||'isRemoveSuggestion'==_0x3403be},'createdAt':new Date(),'rootName':_0x1fd798});_0x4fb944['push'](_0x48376e),_0x5b252a['markers']['set']('revision:'+_0x48376e['id'],_0x593493);}function _0x1d5f5e(_0x137df3,_0xe6c991){const _0x1f0db2=_0x137df3['getAttributes'](),_0x2c1f86=_0xe6c991['getAttributes']();for(const _0x5401e8 of _0x1f0db2){if(_0x5401e8[0x1]!==_0xe6c991['getAttribute'](_0x5401e8[0x0]))return!0x1;_0x2c1f86['next']();}return _0x2c1f86['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x243e43=>{const _0x2ca33e=_0x243e43['markerName']['split'](':')[0x1],_0x4f6eae=this['_getChangeFromId'](_0x2ca33e);if(!_0x4f6eae)return null;const _0x25061f='add'==_0x4f6eae['type']?'insertion':'deletion',_0x772409=['ck-suggestion-marker','ck-suggestion-marker-'+_0x25061f];return _0x4f6eae['data']['isSuggestion']&&_0x772409['push']('ck-suggestion-marker-'+_0x25061f+'-new'),this['activeChange']==_0x4f6eae&&_0x772409['push']('ck-suggestion-marker--active'),{'classes':_0x772409,'attributes':{'data-change-id':_0x2ca33e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1df34c=>{_0x1df34c['on']('element:pre',(_0x53b39d,_0x3d433f,_0x5d6021)=>{const _0x46f8af=_0x3d433f['viewItem']['getChild'](0x0);if(!_0x46f8af||!_0x46f8af['is']('element','code'))return;if(!_0x5d6021['consumable']['consume'](_0x46f8af,{'attributes':['vid_start','vid_end']}))return;const _0x5a7135=_0x3d433f['modelRange']['start']['nodeAfter'];_0x5d6021['writer']['setAttribute']('vid_start',_0x46f8af['getAttribute']('vid_start'),_0x5a7135),_0x5d6021['writer']['setAttribute']('vid_end',_0x46f8af['getAttribute']('vid_end'),_0x5a7135);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3a5035=>{_0x3a5035['on']('element',(_0xdee01c,_0x251f77,_0x47c7de)=>{if(!_0x47c7de['consumable']['consume'](_0x251f77['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x251f77['modelRange']['isCollapsed'])return;const _0x5282f2=_0x251f77['modelRange']['start']['nodeAfter'];_0x5282f2['hasAttribute']('vid_start')||_0x5282f2['hasAttribute']('vid')||(_0x47c7de['writer']['setAttribute']('vid_start',_0x251f77['viewItem']['getAttribute']('vid_start'),_0x5282f2),_0x47c7de['writer']['setAttribute']('vid_end',_0x251f77['viewItem']['getAttribute']('vid_end'),_0x5282f2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3ca992=>_0x3ca992['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x8d3c06,[,_0xf524c2])=>{['vid_start','vid_end','vid']['includes'](_0xf524c2)&&(_0x8d3c06['return']=!0x0,_0x8d3c06['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29101e=>{_0x29101e['on']('attribute:vid',(_0x1853ed,_0x254a0c,_0x2e4cf2)=>{if('\x20'!=_0x254a0c['item']['data']||_0x254a0c['item']['parent']['maxOffset']>0x1)return;if(!_0x2e4cf2['consumable']['consume'](_0x254a0c['item'],_0x1853ed['name']))return;const _0x5b7558=_0x2e4cf2['writer'],_0x14a166=_0x2e4cf2['mapper']['toViewRange'](_0x254a0c['range']);_0x5b7558['wrap'](_0x14a166,_0x5b7558['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1e89b3){const _0x28331d=_0x1e89b3['plugins']['get']('RevisionViewer');return(_0x43a2e4,_0x1c3381,_0x27136b)=>{const _0x23e171=_0x1c3381['markerName']['split'](':')[0x1],_0x4ccbbd=_0x28331d['_getChangeFromId'](_0x23e171);if(!_0x4ccbbd)return null;const _0x2de412='add'==_0x4ccbbd['type']?'split':'merge';if(!_0x27136b['consumable']['test'](_0x1c3381['markerRange'],_0x43a2e4['name']))return;const _0x2d3122=_0x1c3381['markerRange']['getWalker'](),_0x130552=_0x1c3381['markerRange']['start'],_0x48d7ac=_0x1e89b3['model']['schema'];let _0x27d5c6=null,_0x34312f=null,_0x1a1f1f=!0x1,_0x3a86ef=!0x1;for(const _0x37d5c2 of _0x2d3122){const _0x4a47dc=_0x37d5c2['item'];_0x1a1f1f=_0x1a1f1f||_0x48d7ac['isContent'](_0x4a47dc);const _0x27e60f=_0x27136b['mapper']['toViewElement'](_0x4a47dc);if(_0x27e60f&&_0x27e60f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37d5c2['type']&&(_0x48d7ac['isBlock'](_0x4a47dc)&&!_0x48d7ac['isLimit'](_0x4a47dc)&&(_0x4a47dc['nextSibling']||_0x130552['isAtEnd']?_0x27d5c6&&_0x27d5c6['parent']==_0x4a47dc||(_0x27d5c6=_0x4a47dc,_0x1899c8(_0x37d5c2['previousPosition']),_0x3a86ef=!0x0):_0x34312f=_0x34312f||_0x37d5c2['previousPosition']));}function _0x1899c8(_0x3be860){const _0x14a72a=_0x27136b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2de412}),_0x1af052=_0x27136b['mapper']['toViewPosition'](_0x3be860);_0x4ccbbd['data']['isSuggestion']&&_0x27136b['writer']['addClass']('ck-suggestion-marker-'+_0x2de412+'-new',_0x14a72a),_0x28331d['activeChange']==_0x4ccbbd&&_0x27136b['writer']['addClass']('ck-suggestion-marker--active',_0x14a72a),_0x27136b['writer']['insert'](_0x1af052,_0x14a72a),_0x27136b['mapper']['bindElementToMarker'](_0x14a72a,_0x1c3381['markerName']);}_0x1a1f1f||_0x3a86ef||!_0x34312f||_0x1899c8(_0x34312f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5e536e,_0x2af2b1,_0x2f6523)=>{const _0x4301c9=_0x2f6523['mapper']['markerNameToElements'](_0x2af2b1['markerName']);if(_0x4301c9){for(const _0x99a1f6 of _0x4301c9)(_0x99a1f6['hasClass']('ck-suggestion-marker-split')||_0x99a1f6['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f6523['mapper']['unbindElementFromMarkerName'](_0x99a1f6,_0x2af2b1['markerName']),_0x2f6523['writer']['remove'](_0x99a1f6));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4b2ff5,_0x4528fa,_0x4df18)=>{const _0xa6a4bd=_0x4528fa['markerName']['split'](':')[0x1],_0x14260c=this['_getChangeFromId'](_0xa6a4bd);if(!_0x14260c)return null;const _0xa3e96a='add'==_0x14260c['type']?'split':'merge';if(_0x4df18['consumable']['test'](_0x4528fa['markerRange'],_0x4b2ff5['name']))for(const _0x470f4a of _0x4528fa['markerRange']['getItems']()){if(!_0x470f4a['is']('element','softBreak'))continue;const _0x517faa=_0x4df18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa3e96a}),_0x1bd4c4=_0x4df18['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x470f4a));_0x14260c['data']['isSuggestion']&&_0x4df18['writer']['addClass']('ck-suggestion-marker-'+_0xa3e96a+'-new',_0x517faa),this['activeChange']==_0x14260c&&_0x4df18['writer']['addClass']('ck-suggestion-marker--active',_0x517faa),_0x4df18['writer']['insert'](_0x1bd4c4,_0x517faa),_0x4df18['mapper']['bindElementToMarker'](_0x517faa,_0x4528fa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xb00083=>{for(const _0x29cc4c of this['editor']['model']['document']['getRootNames']()){const _0x330273=this['editor']['model']['document']['getRoot'](_0x29cc4c),_0x1b805b=this['editor']['editing']['view']['document']['getRoot'](_0x29cc4c);if(_0x1b805b){const _0x88f11a=_0x330273['getAttribute']('revisionHistoryAttachChange');if(_0xb00083['removeAttribute']('data-change-id',_0x1b805b),_0xb00083['removeClass']('ck-revision-history-root-add',_0x1b805b),_0xb00083['removeClass']('ck-revision-history-root-remove',_0x1b805b),_0xb00083['removeClass']('ck-revision-history-root--active',_0x1b805b),_0x88f11a){const _0x9562a0=this['_getChangeFromId'](_0x88f11a);if(!_0x9562a0)return null;_0xb00083['setAttribute']('data-change-id',_0x88f11a,_0x1b805b),_0xb00083['addClass']('ck-revision-history-root-'+_0x9562a0['type'],_0x1b805b),this['activeChange']==_0x9562a0&&_0xb00083['addClass']('ck-revision-history-root--active',_0x1b805b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2c458e=>'revision-comment:'+_0x2c458e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4f8c76=>'revision-suggestion:'+_0x4f8c76,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b21d5=>({'name':'suggestion:'+_0x2b21d5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x30531c=>{const _0x326c40=_0x30531c['markerName']['split'](':')[0x1];return'insertion'!=_0x326c40&&'deletion'!=_0x326c40?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x326c40]};}}),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',(_0x183593,_0x432c9e,_0x163efa)=>{const _0x49eb75=_0x163efa['mapper']['markerNameToElements'](_0x432c9e['markerName']);if(_0x49eb75){for(const _0x41e40f of _0x49eb75)_0x41e40f['is']('uiElement')&&(_0x163efa['mapper']['unbindElementFromMarkerName'](_0x41e40f,_0x432c9e['markerName']),_0x163efa['writer']['remove'](_0x41e40f));}},{'priority':'high'});}['_getChangeFromId'](_0x4a433a){return this['_changeIdToChange']['get'](_0x4a433a);}['_getViewForChange'](_0x5e2601){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5e2601),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2471dd,_0x55a576,_0x4e6f30,_0x2d67d3)=>{_0x2d67d3&&this['_balloon']['remove'](_0x2d67d3),_0x4e6f30&&(this['_balloon']['add']({'view':_0x4e6f30,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4e212a=this['editor']['editing'],_0x4070ef=this['_getChangeFromId'](_0x4e6f30['changeId']);let _0x363783;if(_0x4070ef['data']['isOnRoot']){const _0xee266c=_0x4e212a['view']['getDomRoot'](_0x4070ef['rootName']);_0x363783=Array['from'](_0xee266c['getClientRects']());}else{const _0x3eec5a=this['editor']['model']['markers']['get']('revision:'+_0x4e6f30['changeId']);_0x363783=Array['from'](_0x4e212a['mapper']['markerNameToElements'](_0x3eec5a['name']))['map'](_0xc0ef03=>_0x4e212a['view']['domConverter']['mapViewToDom'](_0xc0ef03))['map'](_0x4e6227=>Array['from'](_0x4e6227['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x363783[0x0];return _0x363783['find'](_0x3cefdb=>_0x3cefdb['top']-0x3<=this['_activeViewTarget']['y']&&_0x3cefdb['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3cefdb['left']-0x3<=this['_activeViewTarget']['x']&&_0x3cefdb['right']+0x3>=this['_activeViewTarget']['x'])||_0x363783[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2dbaaa,_0x57e1dc,_0x4573ac,_0x23e470)=>{this['activeView']=_0x4573ac?this['_getViewForChange'](_0x4573ac):null,this['editor']['model']['change'](()=>{const _0x1f6898=this['editor']['editing'];_0x23e470&&(_0x23e470['data']['isOnRoot']?_0x1f6898['view']['change'](_0x3f8bdc=>{_0x3f8bdc['removeClass']('ck-revision-history-root--active',_0x1f6898['view']['document']['getRoot'](_0x23e470['rootName']));}):_0x1f6898['reconvertMarker']('revision:'+_0x23e470['id'])),_0x4573ac&&(_0x4573ac['data']['isOnRoot']?_0x1f6898['view']['change'](_0x32645b=>{_0x32645b['addClass']('ck-revision-history-root--active',_0x1f6898['view']['document']['getRoot'](_0x4573ac['rootName']));}):_0x1f6898['reconvertMarker']('revision:'+_0x4573ac['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd2a3aa,_0x534bba)=>{if(this['activeChange'])return;const _0x11ea09=this['_findChangeIdFromDomTarget'](_0x534bba['target']),_0x5926ee=this['_changeIdToChange']['get'](_0x11ea09);_0x5926ee?(this['_activeViewTarget']={'x':_0x534bba['domEvent']['x'],'y':_0x534bba['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5926ee)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2b4c2b,_0x469980)=>{const _0x324444=this['_findChangeIdFromDomTarget'](_0x469980['target']),_0x9b9e41=this['_changeIdToChange']['get'](_0x324444);_0x9b9e41?(this['_activeViewTarget']={'x':_0x469980['domEvent']['x'],'y':_0x469980['domEvent']['y']},_0x9b9e41===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9b9e41):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xaec455){do{const _0x5de706=_0xaec455['getAttribute']('data-change-id');if(_0x5de706)return _0x5de706;_0xaec455=_0xaec455['parent'];}while(_0xaec455);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b98fb=>{for(const _0x21dd8f of this['editor']['model']['markers'])_0x4b98fb['removeMarker'](_0x21dd8f);});}}function Q(_0x5efb99,_0x48c950){return(_0x51ab21,_0x75db50,_0x49f8fd)=>{if(!_0x49f8fd['consumable']['test'](_0x75db50['markerRange'],_0x51ab21['name']))return;const _0xed54ff=_0x75db50['markerRange']['getWalker'](),_0x2acc27=_0x75db50['markerRange']['start'],_0x5a5eea=_0x5efb99['model']['schema'];let _0x18b6cc=null,_0x21893a=null,_0x5b0bdd=!0x1,_0x1a2590=!0x1;for(const _0x21b137 of _0xed54ff){const _0x12ed34=_0x21b137['item'];_0x5b0bdd=_0x5b0bdd||_0x5a5eea['isContent'](_0x12ed34);const _0x229fa1=_0x49f8fd['mapper']['toViewElement'](_0x12ed34);if(_0x229fa1&&_0x229fa1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21b137['type']&&(_0x5a5eea['isBlock'](_0x12ed34)&&!_0x5a5eea['isLimit'](_0x12ed34)&&(_0x12ed34['nextSibling']||_0x2acc27['isAtEnd']?_0x18b6cc&&_0x18b6cc['parent']==_0x12ed34||(_0x18b6cc=_0x12ed34,_0x4753dd(_0x21b137['previousPosition']),_0x1a2590=!0x0):_0x21893a=_0x21893a||_0x21b137['previousPosition']));}function _0x4753dd(_0xdbb8bc){const _0x58dad4=_0x49f8fd['mapper']['toViewPosition'](_0xdbb8bc),_0x2b248a=_0x49f8fd['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x48c950});_0x49f8fd['writer']['insert'](_0x58dad4,_0x2b248a),_0x49f8fd['mapper']['bindElementToMarker'](_0x2b248a,_0x75db50['markerName']);}_0x5b0bdd||_0x1a2590||!_0x21893a||_0x4753dd(_0x21893a);};}class nt extends _0x175be5{constructor(_0x5e5cf9){super(_0x5e5cf9);const _0x144892=_0x5e5cf9['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x144892,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x144892,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x17f55b=this['editor'],_0x1857c1=_0x17f55b['plugins']['get'](u),_0x24b3af=_0x1857c1['isReady']?_0x1857c1['diff']['newRevisionId']:null;_0x17f55b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x24b3af);}['refresh'](){const {isReady:_0x8f21c1,isEnabled:_0xd657a5,repository:_0x45e28a,diff:_0x20e892}=this['editor']['plugins']['get'](u),_0x37f15f=_0x20e892&&_0x45e28a['getLaterVisibleRevision'](_0x20e892['newRevisionId']);this['isEnabled']=_0x8f21c1&&_0xd657a5&&Boolean(_0x37f15f);}}class rt extends _0x175be5{['_step'];constructor(_0x3cce2,{direction:_0x28d7f0}){super(_0x3cce2);const _0x5cbb0d=_0x3cce2['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x28d7f0?0x1:-0x1,this['listenTo'](_0x5cbb0d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cbb0d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cbb0d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x360093=this['editor'],_0xddf8ae=_0x360093['plugins']['get'](u),{isNavigationMode:_0x592772,currentChangeNumber:_0x30985a}=_0xddf8ae;let _0x5afc3b;if(_0xddf8ae['activeChange']=_0x592772?_0xddf8ae['diff']['changes']['get'](_0x30985a+this['_step']):_0xddf8ae['diff']['changes']['first'],_0xddf8ae['activeChange']['data']['isOnRoot'])_0x5afc3b=_0x360093['editing']['view']['getDomRoot'](_0xddf8ae['activeChange']['rootName']);else{const _0x2ae90b=_0x360093['model']['markers']['get']('revision:'+_0xddf8ae['activeChange']['id']);_0x5afc3b=_0x129741(_0x360093['editing'],_0x2ae90b);}_0x17793b({'target':_0x5afc3b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x30bebb,currentChangeNumber:_0x5eceb9,numberOfChanges:_0x124b15,isReady:_0x66b04e,isEnabled:_0xf7ff29}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0xf7ff29&&_0x66b04e&&_0x124b15)&&(!_0x30bebb||(0x1===this['_step']?_0x5eceb9<_0x124b15-0x1:_0x5eceb9>0x0));}}class Ri extends _0x379173{constructor(_0x59c734){super(_0x59c734);const _0x3696f7=this['bindTemplate'],_0x44929f=new _0x745f2c(_0x59c734),_0x36381d=new _0x745f2c(_0x59c734);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',(_0xf6a059,_0x91fe92)=>_0xf6a059&&_0x91fe92>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x224530,_0x429fab,_0x1f04ae,_0x18126a)=>{if(!_0x224530)return m(_0x59c734,'Loading...');if(!_0x1f04ae)return m(_0x59c734,'No\x20changes');const _0x1877f3=m(_0x59c734,'NUMBER_OF_CHANGES',_0x1f04ae);return _0x18126a?m(_0x59c734,'X_OF_Y_CHANGES',[_0x429fab+0x1,_0x1f04ae]):_0x1877f3;}),_0x44929f['set']({'label':m(_0x59c734,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3bcbae}),_0x36381d['set']({'label':m(_0x59c734,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1175c3}),_0x44929f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x36381d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x44929f['on']('execute',()=>this['fire']('execute','backward')),_0x36381d['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',_0x3696f7['if']('_isStatusLabelVisible','ck-hidden',_0x3abf29=>!_0x3abf29)]},'children':[{'text':_0x3696f7['to']('isNavigationMode',_0x87d2e3=>_0x87d2e3?m(_0x59c734,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x59c734,'Total')+':\x20')}]},{'text':_0x3696f7['to']('_statusText')}]},new _0x26abc3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x44929f,_0x36381d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x20abfc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f0d10=this['editor']['editing']['view'];_0x4f0d10['change'](_0x299122=>{for(const _0x1dee3d of _0x4f0d10['document']['roots'])_0x299122['addClass'](ge,_0x1dee3d);});}['hide'](){const _0x5ab77f=this['editor']['editing']['view'];_0x5ab77f['change'](_0x4c552c=>{for(const _0x31c23e of _0x5ab77f['document']['roots'])_0x4c552c['removeClass'](ge,_0x31c23e);});}}class v extends _0x20abfc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x4ffb26=this['editor'],_0x1e25fd=_0x4ffb26['plugins']['get'](u),_0x58657d=_0x4ffb26['plugins']['get'](ji);_0x4ffb26['ui']['componentFactory']['add']('exitToEditing',_0x4cd2b7=>{const _0x1d72d5=new _0x745f2c(_0x4cd2b7);return _0x1d72d5['set']({'label':m(_0x4cd2b7,'Back\x20to\x20editing'),'icon':_0x553a97,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1d72d5,'execute',()=>{_0x4ffb26['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1d72d5;}),_0x4ffb26['ui']['componentFactory']['add']('restoreRevision',_0x2b1c08=>{const _0x409ed4=new _0x745f2c(_0x2b1c08);return _0x409ed4['set']({'label':m(_0x2b1c08,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x409ed4['bind']('isEnabled')['to'](_0x4ffb26['commands']['get']('restoreRevision')),this['listenTo'](_0x409ed4,'execute',()=>_0x4ffb26['execute']('restoreRevision')),_0x409ed4;}),_0x4ffb26['ui']['componentFactory']['add']('changesNavigation',_0x17ebc2=>{const _0x1ec441=new Ri(_0x17ebc2),_0x25a92e=_0x4ffb26['commands']['get']('showPreviousChange'),_0x2b2c21=_0x4ffb26['commands']['get']('showNextChange');return _0x1ec441['bind']('isBackwardNavigationEnabled')['to'](_0x25a92e,'isEnabled'),_0x1ec441['bind']('isForwardNavigationEnabled')['to'](_0x2b2c21,'isEnabled'),_0x1ec441['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1e25fd),this['listenTo'](_0x1ec441,'execute',(_0x51f436,_0x51b12c)=>{_0x4ffb26['execute']('forward'===_0x51b12c?'showNextChange':'showPreviousChange');}),_0x1ec441;}),_0x58657d['show'](),_0x1e25fd['on']('change:isReady',(_0x49ae70,_0x5823c8,_0x1314ce)=>{_0x1314ce?_0x58657d['hide']():_0x58657d['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4ee648,_0x551643){super(_0x4ee648,_0x551643);const _0x3323be=this['bindTemplate'];this['set']({'label':m(_0x4ee648,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4ee648,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3323be['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 _0x5744e0=this['fieldView']['element'];this['_tooltipString']=_0x5744e0['scrollWidth']>_0x5744e0['clientWidth']&&_0x5744e0['value']||'';}}class ni extends _0x379173{constructor(_0x2a96e4,_0x3eeab4,_0x4d6e76){super(_0x2a96e4);const _0x29eb63=new _0x1371eb();_0x29eb63['set']({'content':_0x45cca1,'viewBox':'0\x200\x2011\x2010'});const _0x34c1cb=['ck','ck-revision-history-sidebar__revision-author'];_0x4d6e76&&_0x34c1cb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x26fd80=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2a96e4,_0x4d6e76?'Revision\x20creator':'Revision\x20author')},'children':[_0x29eb63,_0x3eeab4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x34c1cb},'children':_0x26fd80});}}function ai(_0x37820c,_0x160333){const _0x224ec9=_0x37820c['bindTemplate'],_0x30527f=_0x37820c['locale'],_0x93e22d=_0x4fa146(_0x30527f);_0x93e22d['panelPosition']='sw';const _0x4e13c6=function(_0x3c9a0c,_0x5d1305){const _0x138f9e=function(_0x41902b,_0x1168f4){const _0xac2c6f=_0x41902b['locale'],_0x2d31b2={'Compare\x20against\x20selected':m(_0xac2c6f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xac2c6f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xac2c6f,'Restore\x20this\x20revision')};return _0x1168f4['map'](_0x566b96=>{const _0x16a60d=_0x2d31b2[_0x566b96['name']];return _0x16a60d&&_0x16a60d!==_0x566b96['name']&&(_0x566b96['name']=_0x16a60d),_0x566b96;});}(_0x3c9a0c,_0x5d1305),_0x1b1dbb=new _0x1c98ba();for(const _0xfca41b of _0x138f9e){const _0x53abab={'type':'button','model':new to({'label':_0xfca41b['name'],'class':_0xfca41b['class'],'withText':!0x0,'role':'menuitem','_action':_0xfca41b['action']})};_0x53abab['model']['bind']('isEnabled')['to'](_0x3c9a0c,'isActionsDropdownOpen',_0x19d741=>'function'!=typeof _0xfca41b['isEnabled']||(!_0x19d741||_0xfca41b['isEnabled'](_0x3c9a0c))),_0x1b1dbb['add'](_0x53abab);}return _0x1b1dbb;}(_0x37820c,_0x160333);return _0x37820c['bind']('isActionsDropdownOpen')['to'](_0x93e22d,'isOpen'),_0x93e22d['buttonView']['set']({'label':m(_0x30527f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x491000}),_0x93e22d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x224ec9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x224ec9['to'](_0x3b4ae4=>_0x3b4ae4['stopPropagation']())}}),_0x93e22d['on']('execute',_0x36f570=>{_0x37820c['isReady']&&'function'==typeof _0x36f570['source']['_action']&&_0x36f570['source']['_action'](_0x37820c);}),_0x344ee0(_0x93e22d,_0x4e13c6,{'role':'menu'}),_0x93e22d['listenTo'](_0x37820c,'change:isActionsDropdownOpen',(_0x1f9835,_0x4c3e2b,_0x4b1b3f)=>{if(_0x4b1b3f)for(const _0x30ec9a of _0x93e22d['listView']['items']){const _0x11885a=_0x30ec9a['children']['first'],_0x4a3559=_0x160333['find'](_0x15f31d=>_0x15f31d['action']===_0x11885a['_action'])['isVisible'];_0x30ec9a['isVisible']=void 0x0===_0x4a3559||_0x4a3559(_0x37820c);}}),_0x93e22d;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x56b375,uid as _0x52ce2c,Collection as _0x4e11d5,logWarning as _0x283e04,FocusTracker as _0x80cd21,KeystrokeHandler as _0x5b411f,scrollViewportToShowTarget as _0x56d7a4,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x5d1702}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1b7905,set as _0x1ce470,unset as _0x3ceff6,isEqual as _0x15b9c2}from'es-toolkit/compat';import{Plugin as _0x3aa0b2,PendingActions as _0x44f1dd,Command as _0x29ff85,ElementApiMixin as _0x502bb9,Editor as _0x3e686d}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xb02d0b,getMarkerDomElement as _0x40782c,ConfirmMixin as _0x5cf7cb,sanitizeEditorConfig as _0x17961f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x24f358,ViewAttributeElement as _0x5c80b9,ViewEmptyElement as _0x122f43,ViewRawElement as _0x4a1f2b,ViewUIElement as _0x21d030,ViewDocumentFragment as _0x7e11df,ViewText as _0x5890ba,ViewElement as _0x12bcfc,ModelElement as _0x1e1cab,ModelRange as _0x10420e,ModelPosition as _0x225570,ModelDocumentFragment as _0x4e8f13,ModelText as _0x40e779}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x553cd1,IconChevronUp as _0x2767c2,IconChevronDown as _0x29e1bb,IconUndo as _0x9c7f3e,IconUser as _0x81d554,IconThreeVerticalDots as _0x4b2425}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x1d69eb,View as _0x1e10ae,submitHandler as _0x34c2cc,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x34e01e,ListView as _0x2144e2,ListItemView as _0x5d920f,ButtonView as _0x5eae90,MenuBarMenuView as _0x26206f,MenuBarMenuListView as _0xf3624d,MenuBarMenuListItemView as _0x2da689,MenuBarMenuListItemButtonView as _0x148d86,ContextualBalloon as _0x438950,ToolbarSeparatorView as _0x49d982,IconView as _0x5a2a2d,addListToDropdown as _0x1e3194,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x30441a,StickyPanelView as _0x135c05,ToolbarView as _0x1a5b73,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5e3a22}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x56b375(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa7cbea){super(),this['id']=_0xa7cbea['id']||_0x52ce2c(),this['creator']=_0xa7cbea['creator']||null,this['authors']=_0xa7cbea['authors']||[],this['diffData']=_0xa7cbea['diffData']||null,this['toVersion']=_0xa7cbea['toVersion']||0x0,this['fromVersion']=_0xa7cbea['fromVersion']||0x0,this['set']('name',_0xa7cbea['name']||''),this['set']('createdAt',_0xa7cbea['createdAt']||new Date()),this['set']('attributes',_0xa7cbea['attributes']||{});}['setName'](_0x1e645c){this['_update']({'name':_0x1e645c});}['setAttribute'](_0x3216ef,_0x371312){const _0x4b1391=_0x1b7905(this['attributes']);_0x1ce470(_0x4b1391,_0x3216ef,_0x371312),this['_update']({'attributes':_0x4b1391});}['removeAttribute'](_0x10a14d){const _0x5f53a4=_0x1b7905(this['attributes']);_0x3ceff6(_0x5f53a4,_0x10a14d),this['_update']({'attributes':_0x5f53a4});}['_update'](_0x1e765c,_0x24b70e=!0x1){let _0x3863a6=!0x1;const _0xd48156={'id':this['id']},_0x52e9c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe43de8 of _0x52e9c8){const _0x514ff6=_0x1e765c[_0xe43de8];void 0x0!==_0x514ff6&&_0x514ff6!==this[_0xe43de8]&&(this[_0xe43de8]=_0x514ff6,_0xd48156[_0xe43de8]=_0x514ff6,_0x3863a6=!0x0);}_0x3863a6&&(_0xd48156['authors']&&(_0xd48156['authorsIds']=_0xd48156['authors']['map'](_0xac2c3e=>_0xac2c3e['id']),delete _0xd48156['authors']),this['fire']('_update',_0xd48156,_0x24b70e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x35a722=>_0x35a722['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3aa0b2{['_revisions'];static get['requires'](){return[_0xb02d0b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5deb6f){super(_0x5deb6f),this['_revisions']=new _0x4e11d5();}['afterInit'](){!async function(_0x35e44d){const _0x43665c=_0x3d8609([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x51c6b2=0xeb829,_0x558221=0x359e09b0,_0x5c5cd2=0x359973d0^_0x558221,_0x5040c7=window[_0x3d8609([0x44,0x61,0x74,0x65])][_0x3d8609([0x6e,0x6f,0x77])](),_0x55e4a5=_0x35e44d[_0x3d8609([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50ff6b=new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58df53=>{_0x55e4a5[_0x3d8609([0x6f,0x6e,0x63,0x65])](_0x3d8609([0x72,0x65,0x61,0x64,0x79]),_0x58df53);}),_0x551602={[_0x3d8609([0x6b,0x74,0x79])]:_0x3d8609([0x45,0x43]),[_0x3d8609([0x75,0x73,0x65])]:_0x3d8609([0x73,0x69,0x67]),[_0x3d8609([0x63,0x72,0x76])]:_0x3d8609([0x50,0x2d,0x32,0x35,0x36]),[_0x3d8609([0x78])]:_0x3d8609([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]),[_0x3d8609([0x79])]:_0x3d8609([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]),[_0x3d8609([0x61,0x6c,0x67])]:_0x3d8609([0x45,0x53,0x32,0x35,0x36])},_0xaaf5fd=_0x55e4a5[_0x3d8609([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d8609([0x67,0x65,0x74])](_0x3d8609([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x440d28(){let _0x35eae9,_0x3a5075=null,_0x248caf=null;try{if(_0xaaf5fd==_0x3d8609([0x47,0x50,0x4c]))return _0x3d8609([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35eae9=_0x1604cd(),!_0x35eae9)return _0x3d8609([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35eae9[_0x3d8609([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x248caf=_0x1c08a3(_0x35eae9[_0x3d8609([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35eae9[_0x3d8609([0x6a,0x74,0x69])])),await _0x5ef916()?_0x25334a()?_0x330b21()?_0x3d8609([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x328b9f()?(_0x35eae9[_0x3d8609([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d8609([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a5075=_0x180fcb(_0x3d8609([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35eae9[_0x3d8609([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d8609([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a5075=_0x180fcb(_0x3d8609([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16d0e0()):_0x3d8609([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d8609([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d8609([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d8609([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x330b21(){const _0x288ba6=[_0x3d8609([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d8609([0x74,0x72,0x69,0x61,0x6c])][_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35eae9[_0x3d8609([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5040c7/0x3e8:0xe10*_0x5c5cd2;return _0x35eae9[_0x3d8609([0x65,0x78,0x70])]<_0x288ba6;}function _0x25334a(){const _0x438e47=_0x35eae9[_0x3d8609([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x438e47)return!0x1;if(_0x438e47[_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8609([0x2a])))return!0x0;if(_0x438e47[_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8609([0x52,0x48])))return!0x0;if(_0x438e47[_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8609([0x52,0x52,0x48]))){if(_0x5778d6())return!0x0;if(_0x57c88f()||_0x294822())return!0x0;}return!0x1;}function _0x328b9f(){const _0x1a062f=_0x35eae9[_0x3d8609([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a062f||0x0==_0x1a062f[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52a92a}=new URL(window[_0x3d8609([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a062f[_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a92a))return!0x0;const _0xb71b4c=_0x52a92a[_0x3d8609([0x73,0x70,0x6c,0x69,0x74])](_0x3d8609([0x2e]));return _0x1a062f[_0x3d8609([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f2b62=>_0x5f2b62[_0x3d8609([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8609([0x2a])))[_0x3d8609([0x6d,0x61,0x70])](_0x3a450e=>_0x3a450e[_0x3d8609([0x73,0x70,0x6c,0x69,0x74])](_0x3d8609([0x2e])))[_0x3d8609([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x183616=>_0x183616[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb71b4c[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d8609([0x6d,0x61,0x70])](_0x57a597=>Array(_0xb71b4c[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57a597[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d8609([0x66,0x69,0x6c,0x6c])](_0x57a597[0x0]===_0x3d8609([0x2a])?_0x3d8609([0x2a]):'')[_0x3d8609([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57a597))[_0x3d8609([0x73,0x6f,0x6d,0x65])](_0x371900=>_0xb71b4c[_0x3d8609([0x65,0x76,0x65,0x72,0x79])]((_0x266fc8,_0xc0b93e)=>_0x371900[_0xc0b93e]===_0x266fc8||_0x371900[_0xc0b93e]===_0x3d8609([0x2a])));}function _0x16d0e0(){return _0x3a5075&&_0x248caf?new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31a219,_0x3a822b)=>{_0x3a5075[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x31a219,_0x3a822b),_0x248caf[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x3eb664=>{_0x3eb664!=_0x3d8609([0x56,0x61,0x6c,0x69,0x64])&&_0x31a219(_0x3eb664);},_0x3a822b);}):_0x3a5075||_0x248caf||_0x3d8609([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c08a3(_0x214ba1,_0x3d70cf){return new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12cb0c=>{if(_0x445cc2())return _0x12cb0c(_0x3d8609([0x56,0x61,0x6c,0x69,0x64]));_0x5d3a8b(),_0x55e4a5[_0x3d8609([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d8609([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x72429d=!0x1;const _0x234739=_0x52ce2c();function _0x8d9936(_0x55c19b){return!!_0x55c19b&&(typeof _0x55c19b===_0x3d8609([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55c19b===_0x3d8609([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55c19b[_0x3d8609([0x74,0x68,0x65,0x6e])]===_0x3d8609([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55c19b[_0x3d8609([0x63,0x61,0x74,0x63,0x68])]===_0x3d8609([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50a079(_0xa0e173){_0x1e7dd3(_0xa0e173)[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x8ae83e=>{if(!_0x8ae83e||_0x8ae83e[_0x3d8609([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d8609([0x6f,0x6b]))return _0x3d8609([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x259ce7(_0x27a791(_0x234739+_0x3d70cf))!=_0x8ae83e[_0x3d8609([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d8609([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d8609([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x364a0c=>(_0x15915c(),_0x364a0c),()=>{const _0x4765cf=_0x3ba4ea();return null==_0x4765cf?(_0x15915c(),_0x3d8609([0x56,0x61,0x6c,0x69,0x64])):_0x3d8609(_0x5040c7-_0x4765cf>(0x11928db0^_0x558221)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x12cb0c)[_0x3d8609([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12cb0c(_0x3d8609([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cf235=0x35a8e730^_0x558221;function _0x15915c(){const _0x54e18b=_0x3d8609([0x6c,0x6c,0x63,0x74,0x2d])+_0x259ce7(_0x27a791(_0x214ba1)),_0x198a1b=_0x2dd131(_0x259ce7(window[_0x3d8609([0x4d,0x61,0x74,0x68])][_0x3d8609([0x63,0x65,0x69,0x6c])](_0x5040c7/_0x2cf235)));window[_0x3d8609([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d8609([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e18b,_0x198a1b);}function _0x3ba4ea(){const _0xfd0eff=_0x3d8609([0x6c,0x6c,0x63,0x74,0x2d])+_0x259ce7(_0x27a791(_0x214ba1)),_0x3092fb=window[_0x3d8609([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d8609([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfd0eff);return _0x3092fb?window[_0x3d8609([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dd131(_0x3092fb),0x10)*_0x2cf235:null;}function _0x1e7dd3(_0x481f94){return new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1edebf,_0x52b5e8)=>{_0x481f94[_0x3d8609([0x74,0x68,0x65,0x6e])](_0x1edebf,_0x52b5e8),window[_0x3d8609([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52b5e8,0x359fdd70^_0x558221);});}}_0x55e4a5[_0x3d8609([0x6f,0x6e])](_0x3d8609([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3502e1,_0x52709e)=>{if(_0x52709e[0x0]!=_0x214ba1)return _0x12cb0c(_0x3d8609([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52709e[0x1]={..._0x52709e[0x1],[_0x3d8609([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x234739};},{[_0x3d8609([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d8609([0x68,0x69,0x67,0x68])}),_0x55e4a5[_0x3d8609([0x6f,0x6e])](_0x3d8609([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28ad1c=>{_0x8d9936(_0x28ad1c[_0x3d8609([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x72429d=!0x0,_0x50a079(_0x28ad1c[_0x3d8609([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d8609([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d8609([0x6c,0x6f,0x77])}),_0x50ff6b[_0x3d8609([0x74,0x68,0x65,0x6e])](()=>{_0x72429d||_0x12cb0c(_0x3d8609([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x445cc2(){return _0x55e4a5[_0x3d8609([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d8609([0x76,0x69,0x65,0x77])][_0x3d8609([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d8609([0x61,0x75,0x74,0x6f]);}function _0x5d3a8b(){_0x55e4a5[_0x3d8609([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d8609([0x76,0x69,0x65,0x77])][_0x3d8609([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d8609([0x61,0x75,0x74,0x6f]);}}function _0x180fcb(_0x5f58d9){const _0x307012=[new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29ab15=>setTimeout(_0x29ab15,0x3597377c^_0x558221)),_0x50ff6b[_0x3d8609([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a61e=>{const _0x12cbb2=0x359e09b7^_0x558221,_0x2eaaff=_0x35e44d[_0x3d8609([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xe4bf38(){_0x2eaaff[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x12cbb2&&_0x10a61e();}_0xe4bf38(),_0x2eaaff[_0x3d8609([0x6f,0x6e])](_0x3d8609([0x61,0x64,0x64]),_0xe4bf38);})),new window[(_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d579=>{function _0x40694d(){for(const _0x31012d in window)if(window[_0x3d8609([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3d8609([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x31012d))&&window[_0x31012d]==_0x51c6b2)return _0x54d579();_0x55e4a5[_0x3d8609([0x73,0x74,0x61,0x74,0x65])]!=_0x3d8609([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3d8609([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40694d,0x359e1a38^_0x558221);}_0x545999(_0x3d8609([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x40694d();})];return window[_0x3d8609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d8609([0x72,0x61,0x63,0x65])](_0x307012)[_0x3d8609([0x74,0x68,0x65,0x6e])](()=>_0x5f58d9);}async function _0xb90dd9(){if(await _0x50ff6b,_0x545999(_0x3d8609([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xd23216=_0x35e44d[_0x3d8609([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3c5e26=_0x35e44d[_0x3d8609([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])](_0xd23216[_0x3d8609([0x69,0x64])]),_0x3e12b5=_0x286aa6(_0x3d8609([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3e12b5[_0x3d8609([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xd23216['id'],_0x3c5e26?_0x3c5e26['id']:null,!0x0),_0x3e12b5[_0x3d8609([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d8609([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3e12b5[_0x3d8609([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3e12b5[_0x3d8609([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x57f7d1,void(_0x3e12b5[_0x3d8609([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x57f7d1);}if(_0x545999(_0x3d8609([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2229f3=_0x286aa6(_0x3d8609([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2229f3[_0x3d8609([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d8609([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2229f3[_0x3d8609([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2229f3[_0x3d8609([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x57f7d1,_0x2229f3[_0x3d8609([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x57f7d1;}_0x55e4a5[_0x3d8609([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d8609([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57f7d1,_0x55e4a5[_0x3d8609([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d8609([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57f7d1,_0x55e4a5[_0x3d8609([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d8609([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5778d6(){return _0x545999(_0x3d8609([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x286aa6(_0x3d8609([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d8609([0x73,0x74,0x61,0x74,0x65])]==_0x3d8609([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57c88f(){return _0x545999(_0x3d8609([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 _0x294822(){return _0x545999(_0x3d8609([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x41810c(_0x490e69){const _0x2d010f=_0x301822();_0x55e4a5[_0x2d010f]=_0x3d8609([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])+_0x490e69,_0x490e69[_0x3d8609([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3d8609([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x301822()]=_0x51c6b2),_0x490e69!=_0x3d8609([0x56,0x61,0x6c,0x69,0x64])&&_0xb90dd9();}function _0x301822(){const _0x5233e3=window[_0x3d8609([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d8609([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d8609([0x6e,0x6f,0x77])]())[_0x3d8609([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d8609([0x2e]),'');let _0x5285e0=_0x3d8609([0x76]);for(let _0x49b015=0x0;_0x49b015<_0x5233e3[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49b015+=0x2){let _0x30c975=window[_0x3d8609([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5233e3[_0x3d8609([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49b015,_0x49b015+0x2));_0x30c975>=_0x43665c[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30c975-=_0x43665c[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5285e0+=_0x43665c[_0x30c975];}return _0x5285e0;}function _0x1604cd(){const _0x125c90=_0xaaf5fd[_0x3d8609([0x73,0x70,0x6c,0x69,0x74])](_0x3d8609([0x2e]));if(0x3!=_0x125c90[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ad81(_0x125c90[0x1]);function _0x21ad81(_0xda4996){const _0x438b22=_0x2fefec(_0xda4996);return _0x438b22&&_0x24a90e()?_0x438b22:null;function _0x24a90e(){const _0x5ccc26=_0x438b22[_0x3d8609([0x6a,0x74,0x69])],_0xf5d327=window[_0x3d8609([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ccc26[_0x3d8609([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ccc26[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20e656={..._0x438b22,[_0x3d8609([0x6a,0x74,0x69])]:_0x5ccc26[_0x3d8609([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ccc26[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20e656[_0x3d8609([0x76,0x63])],_0x27a791(_0x20e656)==_0xf5d327;}}}async function _0x5ef916(){let _0x352f83=!0x0;try{const _0xf53f30=_0xaaf5fd[_0x3d8609([0x73,0x70,0x6c,0x69,0x74])](_0x3d8609([0x2e])),[_0x4e5ddc,_0x232a55,_0x36fbd0]=_0xf53f30;return _0x173ada(_0x4e5ddc),await _0x25a20c(_0x4e5ddc,_0x232a55,_0x36fbd0),_0x352f83;}catch{return!0x1;}function _0x173ada(_0x4c0544){const _0x32ff36=_0x2fefec(_0x4c0544);_0x32ff36&&_0x32ff36[_0x3d8609([0x61,0x6c,0x67])]==_0x3d8609([0x45,0x53,0x32,0x35,0x36])||(_0x352f83=!0x1);}async function _0x25a20c(_0x3a3482,_0x748b25,_0x2958a1){const _0x183880=window[_0x3d8609([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d8609([0x66,0x72,0x6f,0x6d])](_0x20bb0e(_0x2958a1),_0x5a0652=>_0x5a0652[_0x3d8609([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x970992=new window[(_0x3d8609([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d8609([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a3482+_0x3d8609([0x2e])+_0x748b25),_0x5c2f06=window[_0x3d8609([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d8609([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c2f06)return;const _0x3be132=await _0x5c2f06[_0x3d8609([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d8609([0x6a,0x77,0x6b]),_0x551602,{[_0x3d8609([0x6e,0x61,0x6d,0x65])]:_0x3d8609([0x45,0x43,0x44,0x53,0x41]),[_0x3d8609([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d8609([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d8609([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c2f06[_0x3d8609([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d8609([0x6e,0x61,0x6d,0x65])]:_0x3d8609([0x45,0x43,0x44,0x53,0x41]),[_0x3d8609([0x68,0x61,0x73,0x68])]:{[_0x3d8609([0x6e,0x61,0x6d,0x65])]:_0x3d8609([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3be132,_0x183880,_0x970992)||(_0x352f83=!0x1);}}function _0x2fefec(_0x228379){return _0x228379[_0x3d8609([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d8609([0x65,0x79]))?JSON[_0x3d8609([0x70,0x61,0x72,0x73,0x65])](_0x20bb0e(_0x228379)):null;}function _0x20bb0e(_0x1bbb5e){return window[_0x3d8609([0x61,0x74,0x6f,0x62])](_0x1bbb5e[_0x3d8609([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d8609([0x2b]))[_0x3d8609([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d8609([0x2f])));}function _0x27a791(_0x40989d){let _0x4598af=0x1505;function _0x2786c2(_0x19c34c){for(let _0x3eca2e=0x0;_0x3eca2e<_0x19c34c[_0x3d8609([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eca2e++){const _0x4bf1e1=_0x19c34c[_0x3d8609([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eca2e);_0x4598af=(_0x4598af<<0x5)+_0x4598af+_0x4bf1e1,_0x4598af&=_0x4598af;}}function _0x4fc33a(_0x13730c){Array[_0x3d8609([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13730c)?_0x13730c[_0x3d8609([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fc33a):_0x13730c&&typeof _0x13730c==_0x3d8609([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d8609([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13730c)[_0x3d8609([0x73,0x6f,0x72,0x74])]()[_0x3d8609([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x157fa5,_0x55920e])=>{_0x2786c2(_0x157fa5),_0x4fc33a(_0x55920e);}):_0x2786c2(window[_0x3d8609([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13730c));}return _0x4fc33a(_0x40989d),_0x4598af>>>0x0;}function _0x259ce7(_0x4ea173){return _0x4ea173[_0x3d8609([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d8609([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d8609([0x30]));}function _0x2dd131(_0x196208){return _0x196208[_0x3d8609([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d8609([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d8609([0x6a,0x6f,0x69,0x6e])]('');}function _0x545999(_0x1d4b91){return _0x55e4a5[_0x3d8609([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d8609([0x68,0x61,0x73])](_0x1d4b91);}function _0x286aa6(_0x14703f){return _0x55e4a5[_0x3d8609([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d8609([0x67,0x65,0x74])](_0x14703f);}function _0x57f7d1(){}function _0x3d8609(_0xb30728){return _0xb30728['map'](_0x5a1961=>String['fromCharCode'](_0x5a1961))['join']('');}_0x41810c(await _0x440d28());}(this);}['createRevision'](_0x33ab26){const _0x457d00=this['editor']['plugins']['get']('Users');return new I({'id':_0x33ab26['id'],'name':_0x33ab26['name'],'creator':_0x33ab26['creatorId']?_0x457d00['getUser'](_0x33ab26['creatorId']):null,'diffData':_0x33ab26['diffData']||_0x33ab26['data'],'authors':_0x33ab26['authorsIds']['map'](_0x75eb1c=>_0x457d00['getUser'](_0x75eb1c)),'createdAt':new Date(_0x33ab26['createdAt']),'attributes':_0x33ab26['attributes'],'fromVersion':_0x33ab26['fromVersion'],'toVersion':_0x33ab26['toVersion']});}['addRevision'](_0x4ce252,_0x2fa8e4=0x0){this['_revisions']['add'](_0x4ce252,_0x2fa8e4);}['getRevision'](_0x329cfb){return this['_revisions']['get'](_0x329cfb);}['getRevisions'](_0x17e12c={'toJSON':!0x1}){const _0x20365d=Array['from'](this['_revisions']);return _0x20365d['reverse'](),_0x17e12c['toJSON']?_0x20365d['map'](_0x321491=>_0x321491['toJSON']()):_0x20365d;}['getIndex'](_0x11475e){return this['_revisions']['getIndex'](_0x11475e);}['getEarlierVisibleRevision'](_0xf0f4c1){const [,_0x105d09]=this['getRevisionsIterator'](_0xf0f4c1,{'direction':'earlier'});return _0x105d09;}['getLaterVisibleRevision'](_0x5adc00){const [,_0x3b8091]=this['getRevisionsIterator'](_0x5adc00,{'direction':'later'});return _0x3b8091;}['getRevisionsInDiff'](_0x16aa40){const _0x48d586=[];for(const _0xd443b1 of this['getRevisionsIterator'](_0x16aa40['newRevisionId']))if(_0x48d586['push'](_0xd443b1),_0xd443b1['id']===_0x16aa40['oldRevisionId'])break;return _0x48d586;}*['getRevisionsIterator'](_0x1d047e,{direction:_0x3ed423='earlier',filter:_0x56ccce=()=>!0x0}={}){const _0x3e7a86='earlier'===_0x3ed423?0x1:-0x1;let _0x5a6d9f=this['_revisions']['get'](_0x1d047e),_0x54d33f=this['getIndex'](_0x5a6d9f);for(yield _0x5a6d9f;_0x5a6d9f;){if(_0x54d33f+=_0x3e7a86,_0x5a6d9f=this['getRevision'](_0x54d33f),!_0x5a6d9f)return;_0x56ccce(_0x5a6d9f)&&(yield _0x5a6d9f);}}}class $ extends _0x3aa0b2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x24f358,'c'],[_0x5c80b9,'a'],[_0x122f43,'e'],[_0x4a1f2b,'r'],[_0x21d030,'u']]);['_typeCharToViewClass']=new Map([['c',_0x24f358],['a',_0x5c80b9],['e',_0x122f43],['r',_0x4a1f2b],['u',_0x21d030]]);async['loadRevisionData'](_0x1a3b49,_0x4cf408){if(_0x1a3b49['diffData']||!_0x4cf408)return;const _0x4be25b=this['editor']['config']['get']('collaboration.channelId'),_0x416ed5=await _0x4cf408['getRevision']({'channelId':_0x4be25b,'revisionId':_0x1a3b49['id']});_0x1a3b49['diffData']=_0x416ed5['diffData'];}['getRevisionDocumentData'](_0x32aca6){const _0x13c064={};for(const _0x431381 in _0x32aca6['diffData']){if(_0x32aca6['diffData'][_0x431381]['attachChange']&&!_0x32aca6['diffData'][_0x431381]['attachChange']['isAttached'])continue;const _0x5eb0c6=this['_removeRevisionMarkers'](JSON['parse'](_0x32aca6['diffData'][_0x431381]['insertions'])),_0x4d246b=this['editor']['editing']['view']['document'],_0x537b1a=new _0x7e11df(_0x4d246b,_0x5eb0c6['map'](_0x52281e=>this['_getViewFromDiffObj'](_0x52281e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x13c064[_0x431381]=this['editor']['data']['processor']['toData'](_0x537b1a),this['editor']['data']['processor']['useFillerType']('default');}return _0x13c064;}['getRevisionRootsAttributes'](_0xd5a849){const _0x3507bf={};for(const _0x5758a2 in _0xd5a849['diffData'])_0xd5a849['diffData'][_0x5758a2]['attachChange']&&!_0xd5a849['diffData'][_0x5758a2]['attachChange']['isAttached']||(_0x3507bf[_0x5758a2]=_0xd5a849['diffData'][_0x5758a2]['attributesAfter']||{});return _0x3507bf;}['_getTypeCharForViewElement'](_0x203fc4){return this['_viewClassToTypeChar']['get'](_0x203fc4['constructor']);}['_getViewFromDiffObj'](_0x4753a9,_0x421354){const _0x3fa0f3=this['editor']['editing']['view']['document'];if('string'==typeof _0x4753a9)return new _0x5890ba(_0x3fa0f3,_0x4753a9);{let _0x11ebb8,_0x445fb2;_0x445fb2='u'==_0x4753a9['type']||'r'==_0x4753a9['type']?[]:_0x4753a9['children']['map'](_0x33dbaa=>this['_getViewFromDiffObj'](_0x33dbaa,_0x421354));const _0xa99526=this['_typeCharToViewClass']['get'](_0x4753a9['type'])||_0x12bcfc,_0x4950df=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x11ebb8=new _0xa99526(_0x3fa0f3,_0x4753a9['name'],_0x4753a9['attributes'],_0x445fb2),'u'==_0x4753a9['type']&&_0x4753a9['children'][0x0]){const _0x1512ea=_0x4753a9['children'][0x0];if(_0x11ebb8['render']=function(_0x451fda){const _0x368a36=_0x451fda['createElement']('div');return _0x368a36['innerHTML']=_0x1512ea,_0x368a36['childNodes'][0x0];},_0x421354){const _0x4dc9ef=new _0x7e11df(_0x3fa0f3);_0x4dc9ef['_appendChild'](_0x11ebb8);const _0x4ec8e1=Array['from'](_0x4950df['viewChildrenToDom'](_0x4dc9ef,{'bind':!0x1})),_0x26e368=_0x4950df['domDocument']['createElement']('div');_0x26e368['append'](..._0x4ec8e1),_0x11ebb8=Array['from'](_0x4950df['domChildrenToView'](_0x26e368))[0x0];}}else{if('r'==_0x4753a9['type']&&_0x4753a9['children'][0x0]){const _0x1f4aa0=_0x4753a9['children'][0x0];if(_0x11ebb8['render']=function(_0x4c34bc){_0x4c34bc['innerHTML']=_0x1f4aa0;},_0x421354){const _0x2bac07=new _0x7e11df(_0x3fa0f3);_0x2bac07['_appendChild'](_0x11ebb8);const _0x28bc67=Array['from'](_0x4950df['viewChildrenToDom'](_0x2bac07,{'bind':!0x1})),_0x14cf30=_0x4950df['domDocument']['createElement']('div');_0x14cf30['append'](..._0x28bc67);const _0x395b0c=Array['from'](_0x4950df['domChildrenToView'](_0x14cf30));_0x395b0c['length']>0x1?_0x11ebb8['_appendChild'](_0x395b0c):_0x11ebb8=_0x395b0c[0x0];}}}if(_0x4753a9['customProperties']){for(const [_0x546ae5,_0x4f88b0]of _0x4753a9['customProperties'])_0x11ebb8['_setCustomProperty'](_0x546ae5,_0x4f88b0);}const _0x35c56c=void 0x0===_0x4753a9['fillerOffset']?null:_0x4753a9['fillerOffset'];return null!==_0x35c56c&&(_0x11ebb8['getFillerOffset']=()=>_0x35c56c),_0x11ebb8;}}['_makeModelFromViewString'](_0x4765a2){const _0x5b9c73=JSON['parse'](_0x4765a2),_0x13d319=this['editor']['editing']['view']['document'],_0x575693=new _0x7e11df(_0x13d319,_0x5b9c73['map'](_0x249d33=>this['_getViewFromDiffObj'](_0x249d33,!0x0)));return this['editor']['data']['toModel'](_0x575693);}['_removeRevisionMarkers'](_0xe08e73){return(_0xe08e73=_0xe08e73['filter'](_0x24aba5=>!_0x24aba5['name']||'revision-start'!==_0x24aba5['name']&&'revision-end'!==_0x24aba5['name']))['forEach'](_0x4bd3a0=>{'string'!=typeof _0x4bd3a0&&(_0x4bd3a0['children']=this['_removeRevisionMarkers'](_0x4bd3a0['children']),_0x4bd3a0['attributes']=_0x4bd3a0['attributes']['filter'](_0x530980=>!_0x530980[0x0]['startsWith']('data-revision-')));}),_0xe08e73;}}function m(_0xfa7d6b,_0x591e95,_0x23a8eb){const t=_0xfa7d6b['t'];switch(_0x591e95){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'},_0x23a8eb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x23a8eb);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 _0x3aa0b2{['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[_0xb02d0b,S,$,_0x44f1dd];}constructor(_0x42560a){super(_0x42560a),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 _0x596e5b=_0x52ce2c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x596e5b},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 _0x4be58b=this['repository']['getRevision'](0x0),_0x103910=_0x4be58b&&null===_0x4be58b['creator']?_0x4be58b:null;if(this['_continueCurrentRevision']=!!_0x103910&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b1281=this['_source']['getCurrentRevisionId'](),_0x3affdc=this['repository']['getRevision'](_0x4b1281);if(_0x3affdc)this['_startingVersion']=_0x3affdc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3436cd=this['_source']['history']['_operations']['find'](_0x5e3712=>!_0x5e3712['_isInit']),_0x29a342=_0x3436cd?_0x3436cd['baseVersion']:this['_source']['history']['version'];_0x4be58b?(_0x4be58b['toVersion']<_0x29a342&&_0x4be58b['_update']({'toVersion':_0x29a342}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x103910['id'],this['_startingVersion']=_0x103910['fromVersion']):(this['_startingVersion']=_0x4be58b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x29a342,this['_continueCurrentRevision']=!0x1);}}else _0x103910&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x103910['toVersion'],this['editor']['model']['document']['history']['version']),_0x103910['fromVersion']===_0x103910['toVersion']?(0x0!==_0x103910['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x103910['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x103910['id'],this['_startingVersion']=_0x103910['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',_0x4424e1=>!_0x4424e1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45e50b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21c705;for(const _0x59b408 in _0x45e50b){const _0x16b4f3=_0x59b408,_0x4d2136=_0x45e50b[_0x16b4f3];if('revisionHistoryLicenseKeyValid'==_0x4d2136||'revisionHistoryLicenseKeyInvalid'==_0x4d2136||'revisionHistoryLicenseKeyExpired'==_0x4d2136||'revisionHistoryLicenseKeyDomainLimit'==_0x4d2136||'revisionHistoryLicenseKeyNotAllowed'==_0x4d2136||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4d2136||'revisionHistoryLicenseKeyTrialLimit'==_0x4d2136||'revisionHistoryLicenseKeyUsageLimit'==_0x4d2136){delete _0x45e50b[_0x16b4f3],_0x21c705=_0x4d2136,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x21c705&&_0x45e50b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x21c705&&_0x45e50b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x21c705&&_0x45e50b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x21c705&&_0x45e50b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x21c705&&_0x45e50b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x21c705&&_0x45e50b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x21c705&&_0x45e50b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x40a248=this['repository']['getRevision'](0x0),_0x33d238=await this['getRevisionDocumentData'](_0x40a248),_0x4628ce=await this['getRevisionRootsAttributes'](_0x40a248);this['_replaceEditorDataWithRevisionData'](_0x33d238,_0x4628ce);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3b8797){this['_source']=_0x3b8797;}async['update'](){const _0x3eb25b=await this['_source']['getLatestVersion']();if(_0x3eb25b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x31a8bc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3eb25b});_0x31a8bc['authors']=_0x31a8bc['authorsIds']['map'](_0x56d39f=>this['editor']['plugins']['get']('Users')['getUser'](_0x56d39f)),this['currentRevision']['_update'](_0x31a8bc);}}async['saveRevision'](_0x12548c={},_0x8b90a6=null){const _0x5075ab=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x8b90a6>this['currentRevision']['toVersion']&&(_0x8b90a6=null),null===_0x8b90a6&&(_0x8b90a6=await this['_source']['getLatestVersion']());const _0x34170c=this['_getFromVersion'](_0x8b90a6),_0x21e8c1=this['buildRevisionData']({'from':_0x34170c,'to':_0x8b90a6});if(this['currentRevision']['toVersion']<_0x8b90a6){const _0xee95e8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x8b90a6,'to':_0x8b90a6});_0xee95e8['authors']=[],_0xee95e8['authorsIds']=[],_0xee95e8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xee95e8,!0x0),delete _0xee95e8['authors'],_0x5075ab['push'](_0xee95e8);}_0x12548c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x12548c['name']=_0x12548c['name']||null,_0x12548c['id']=_0x12548c['id']||_0x52ce2c(),_0x12548c={..._0x12548c,..._0x21e8c1};const _0x2a0456=this['addRevisionData'](_0x12548c);_0x5075ab['push'](_0x12548c);const _0x971b9f=this['repository']['getIndex'](_0x2a0456);if(0x0!==_0x971b9f){const _0x174a1a=this['repository']['getRevision'](_0x971b9f-0x1);if(_0x174a1a['fromVersion']!==_0x8b90a6){const _0x3ad6c3=this['_revisionDataBuilder']['getData'](_0x8b90a6,_0x174a1a['toVersion']),_0x4cfd12={'id':_0x174a1a['id'],'diffData':_0x3ad6c3['diffData'],'authorsIds':_0x3ad6c3['authorsIds'],'authors':_0x3ad6c3['authorsIds']['map'](_0x5d6a05=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d6a05)),'fromVersion':_0x8b90a6};_0x174a1a===this['currentRevision']&&(_0x4cfd12['createdAt']=new Date(_0x12548c['createdAt']['getTime']()+0xa)),_0x174a1a['_update'](_0x4cfd12,!0x0),delete _0x4cfd12['authors'],_0x5075ab['push'](_0x4cfd12);}}if(this['adapter']){for(const _0x51f226 of _0x5075ab)this['_bufferUpdate'](_0x51f226['id'],_0x51f226,!0x0);this['sendBufferedUpdates']();}return _0x2a0456;}['addRevisionData'](_0x52a48a){const _0x67783c=this['repository']['createRevision'](_0x52a48a);return this['adapter']&&_0x67783c['on']('_update',(_0x36a9e4,_0x98289b,_0x411733)=>{_0x411733||(this['_bufferUpdate'](_0x98289b['id'],_0x98289b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x67783c,this['_findInsertionIndex'](_0x67783c)),_0x67783c;}async['getRevisionDocumentData'](_0x3b7c18){return await this['_utils']['loadRevisionData'](_0x3b7c18,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b7c18);}async['getRevisionRootsAttributes'](_0x3306aa){return await this['_utils']['loadRevisionData'](_0x3306aa,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3306aa);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x678b4b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4b199f=0x0;_0x4b199f<_0x678b4b['length'];_0x4b199f++){const _0xe633ff=_0x678b4b[_0x4b199f];let _0x344d73=!0x1;for(const _0x229e98 of Object['keys'](_0xe633ff))void 0x0===_0xe633ff[_0x229e98]?delete _0xe633ff[_0x229e98]:'id'!==_0x229e98&&(_0x344d73=!0x0);_0x344d73||(_0x678b4b[_0x4b199f]=null);}if(_0x678b4b=_0x678b4b['filter'](_0x35c821=>null!==_0x35c821),!_0x678b4b['length'])return;for(let _0x30c83e=0x0;_0x30c83e<_0x678b4b['length'];_0x30c83e++){const _0x10543b=_0x678b4b[_0x30c83e];void 0x0!==_0x10543b['fromVersion']&&void 0x0===_0x10543b['toVersion']&&(_0x10543b['toVersion']=this['repository']['getRevision'](_0x10543b['id'])['toVersion']),void 0x0!==_0x10543b['toVersion']&&void 0x0===_0x10543b['fromVersion']&&(_0x10543b['fromVersion']=this['repository']['getRevision'](_0x10543b['id'])['fromVersion']);}const _0x3d69bf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x678b4b,_0x3d69bf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2a129b=>{if(_0x2a129b){for(const _0xf1904e of _0x2a129b)this['setRevisionData']({'id':_0xf1904e['id'],'createdAt':_0xf1904e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3a8245=null,from:_0x3eef20=null,to:_0xb669d0=null}){_0x3eef20=null!==_0x3eef20?_0x3eef20:_0x3a8245['fromVersion'],_0xb669d0=null!==_0xb669d0?_0xb669d0:_0x3a8245['toVersion'];const _0xded19f=this['_revisionDataBuilder']['getData'](_0x3eef20,_0xb669d0),_0x3fafaa={'diffData':_0xded19f['diffData'],'authorsIds':_0xded19f['authorsIds'],'fromVersion':_0x3eef20,'toVersion':_0xb669d0};if(!_0x3a8245||_0xb669d0!==_0x3a8245['toVersion']){const _0x4a2704=_0xb669d0-0x1,_0xa7947d=this['_source']['history']['getOperation'](_0x4a2704);_0x3fafaa['createdAt']=_0xa7947d&&_0xa7947d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3eef20===this['_loadedStateData']['fromVersion']){for(const _0x3dfd25 of this['_loadedStateData']['authors'])_0x3fafaa['authorsIds']['includes'](_0x3dfd25['id'])||_0x3fafaa['authorsIds']['push'](_0x3dfd25['id']);}return _0x3fafaa;}['_bufferUpdate'](_0x1d007c,_0x3ccfe6,_0x4797e2){if(this['_bufferedUpdates']['has'](_0x1d007c)){const _0x183fef=this['_bufferedUpdates']['get'](_0x1d007c);_0x3ccfe6=_0x4797e2?{..._0x183fef,..._0x3ccfe6}:{..._0x3ccfe6,..._0x183fef};}this['_bufferedUpdates']['set'](_0x1d007c,_0x3ccfe6);}['setRevisionData'](_0x33813d){const _0x590ecf=this['repository']['getRevision'](_0x33813d['id']);if(_0x33813d['createdAt']&&(_0x33813d['createdAt']=new Date(_0x33813d['createdAt'])),_0x33813d['authorsIds']){const _0x3e80c6=this['editor']['plugins']['get']('Users');_0x33813d['authors']=_0x33813d['authorsIds']['map'](_0x577918=>_0x3e80c6['getUser'](_0x577918));}_0x590ecf['_update'](_0x33813d,!0x0);}['_createInitialRevision'](_0x1323ec){const _0x20b6b3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x20b6b3)this['_initialRevisionId']=_0x20b6b3['id'];else{const _0x5ac12f=!this['editor']['model']['document']['roots']['find'](_0x145030=>this['editor']['model']['hasContent'](_0x145030)),_0x2b181c=this['editor']['plugins']['get']('Users')['me']['id'],_0x22f631=m(this['editor']['locale'],_0x5ac12f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1323ec,'to':_0x1323ec,'id':this['_initialRevisionId'],'name':_0x22f631,'creatorId':_0x2b181c});}}['_createCurrentRevision'](_0x3283a2){const _0x1268bd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1268bd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3283a2,'to':_0x3283a2,'id':_0x1268bd,'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'](_0x556952,_0x1ce89d){let _0x1267c7=this['editor']['config']['get']('initialData'),_0x1302d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1267c7){_0x1267c7={};for(const _0x1697ac of this['editor']['model']['document']['getRootNames']())_0x1267c7[_0x1697ac]='';}if('string'==typeof _0x1267c7&&(_0x1267c7={'main':_0x1267c7}),void 0x0===_0x1302d){_0x1302d={};for(const _0xbf5667 of this['editor']['model']['document']['getRootNames']())_0x1302d[_0xbf5667]={};}let _0x2e7e6e=!0x1;const _0x57c01a=Object['keys'](_0x1267c7),_0x1ceb06=Object['keys'](_0x556952);for(const _0xb0790f of _0x57c01a){if(_0x1267c7[_0xb0790f]!==_0x556952[_0xb0790f]&&''!==_0x1267c7[_0xb0790f]['trim']()){_0x2e7e6e=!0x0;break;}if(!_0x15b9c2(_0x1302d[_0xb0790f],_0x1ce89d[_0xb0790f])&&Object['keys'](_0x1302d[_0xb0790f])['length']>0x0){_0x2e7e6e=!0x0;break;}}_0x2e7e6e||(_0x2e7e6e=_0x1ceb06['some'](_0x58208d=>!this['editor']['model']['document']['getRoot'](_0x58208d))),_0x2e7e6e&&_0x283e04('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1267c7,'editorRootsAttributes':_0x1302d,'revisionData':_0x556952,'revisionRootsAttributes':_0x1ce89d}),this['editor']['config']['set']('initialData',_0x556952),this['editor']['config']['set']('rootsAttributes',_0x1ce89d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xe8da12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xe8da12['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57e123){const _0x8f71d1=this['repository']['getRevisions']();_0x8f71d1['reverse']();let _0x51015d=0x0;for(;_0x51015d<_0x8f71d1['length'];){const _0x5bdc22=_0x8f71d1[_0x51015d];if(_0x5bdc22===this['currentRevision']){_0x51015d++;continue;}if(_0x5bdc22['id']===this['_initialRevisionId'])break;const _0xdc56ae=_0x57e123['toVersion']-_0x5bdc22['toVersion']||_0x57e123['fromVersion']-_0x5bdc22['fromVersion'];if(_0xdc56ae>0x0)break;if(_0xdc56ae<0x0)_0x51015d++;else{if(!_0x57e123['creator']&&_0x5bdc22['creator'])break;if(_0x5bdc22['creator']||!_0x57e123['creator']){if(_0x57e123['createdAt']>_0x5bdc22['createdAt'])break;_0x51015d++;}else _0x51015d++;}}return _0x51015d;}['_getFromVersion'](_0x145792){const _0x4ab11b=this['repository']['getRevisions']();_0x4ab11b['reverse'](),_0x4ab11b['shift']();const _0x1980f2=_0x4ab11b['find'](_0x49bd64=>_0x49bd64['toVersion']<=_0x145792)['toVersion'];return _0x1980f2<this['_startingVersion']?this['_startingVersion']:_0x1980f2;}['_makeRevision']({name:_0x293889,from:_0x3771cc,to:_0x255b3d,creatorId:_0x31e6c6,id:_0xcececa}){const _0x59df48=this['buildRevisionData']({'from':_0x3771cc,'to':_0x255b3d});_0x59df48['name']=_0x293889,_0x59df48['creatorId']=_0x31e6c6,_0x59df48['id']=_0xcececa;const _0x42ada3=this['addRevisionData'](_0x59df48);return this['adapter']&&this['_bufferUpdate'](_0x59df48['id'],_0x59df48,!0x0),_0x42ada3;}['_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(_0x2ed4b2){this['editor']=_0x2ed4b2,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'](_0x2068f3){this['source']=_0x2068f3;const _0x10ad3e=new Map(),_0x47353f=new Map(),_0x292cd8=this['editor']['model']['document']['roots']['map'](_0x1b9722=>_0x1b9722['rootName']);for(const _0x404b6c of _0x292cd8){const _0x3caa4d=this['editor']['model']['document']['getRoot'](_0x404b6c),_0x163b15=x(_0x3caa4d);_0x10ad3e['set'](_0x404b6c,_0x163b15),_0x47353f['set'](_0x404b6c,Object['fromEntries'](_0x3caa4d['getAttributes']()));}const _0x68cf67=Array['from'](this['editor']['model']['markers'])['map'](_0x48d88b=>[_0x48d88b['name'],_0x48d88b['getRange']()]),_0x803e87=this['source']['version'];this['_saveMetaData'](_0x803e87,_0x10ad3e,_0x68cf67,_0x47353f),this['_startingRevisionId']=this['_revisionId'];const _0xd90a35=new Map(),_0x11d656=new Map();for(const _0x416583 of _0x292cd8){const _0xb5865b=N(_0x416583);_0xd90a35['set'](_0x416583,_0xb5865b),_0x11d656['set'](_0x416583,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xd90a35,[],_0x11d656);}['getData'](_0x18dc81,_0x1edb8c){if(this['_lastFrom']===_0x18dc81&&this['_lastTo']<=_0x1edb8c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1edb8c,!0x0);else{if(!this['_savedMetaData']['has'](_0x18dc81)){const _0x9800f9=this['_getPreviousFrom'](_0x18dc81);this['_calculateMetaData'](_0x9800f9,_0x18dc81,!0x1);}this['_calculateMetaData'](_0x18dc81,_0x1edb8c,!0x0);}return this['_lastFrom']=_0x18dc81,this['_lastTo']=_0x1edb8c,this['_getState']();}['loadState'](_0x29bb60){if(!this['_savedMetaData']['has'](_0x29bb60['fromVersion'])){const _0x315406=this['_getPreviousFrom'](_0x29bb60['fromVersion']);this['_calculateMetaData'](_0x315406,_0x29bb60['fromVersion'],!0x1);}this['_calculateMetaData'](_0x29bb60['fromVersion'],_0x29bb60['toVersion'],!0x1);const _0x286b0c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x29bb60['fromVersion'],this['_lastTo']=_0x29bb60['toVersion'];for(const _0x52145e in _0x29bb60['diffData']){const _0x126a44=_0x29bb60['diffData'][_0x52145e]['attachChange'],_0xed88=_0x1b7905(_0x29bb60['diffData'][_0x52145e]['attributesBefore'])||{},_0x1de6b5=_0x286b0c['_makeModelFromViewString'](_0x29bb60['diffData'][_0x52145e]['deletions']);_0x1de6b5['rootName']=_0x52145e,_0x1de6b5['_isAttached']=!_0x126a44||!_0x126a44['isAttached'],_0x1de6b5['isAttached']=()=>_0x1de6b5['_isAttached'],this['_baseRoots']['set'](_0x52145e,_0x1de6b5),this['_baseRootsAttributes']['set'](_0x52145e,_0xed88),_0x126a44&&this['_touchedRoots']['set'](_0x52145e,_0x126a44);const _0x28b3ca=this['_makeIdsRoot'](_0x1de6b5);this['_baseIdsRoots']['set'](_0x52145e,_0x28b3ca);for(const [_0x45080e,_0x347ec1]of _0x1de6b5['markers']){if(!_0x45080e['startsWith']('revision:'))continue;const _0x5725e3=_0x45080e['split'](':')[0x2];for(const _0x152c92 of _0x347ec1['getWalker']({'singleCharacters':!0x0})){const _0x3414b5=this['_getVidAttributeName'](_0x152c92),_0x253642='elementEnd'==_0x152c92['type']?_0x152c92['previousPosition']['path']['slice'](0x0,-0x1):_0x152c92['previousPosition']['path'],_0x6bd509=_0x28b3ca['getNodeByPath'](_0x253642)['getAttribute'](_0x3414b5);this['_touched']['set'](_0x6bd509,{'userId':_0x5725e3});}_0x1de6b5['markers']['delete'](_0x45080e);}}this['_startingRevisionId']=this['_revisionId'];const _0x5db067=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x39dd52=>!this['_touched']['has'](_0x39dd52));let _0x549f14=0x0;const _0x1e1633=new Map();for(const _0x66b026 in _0x29bb60['diffData']){const _0x381b28=_0x29bb60['diffData'][_0x66b026]['attachChange'],_0x22f5d6=_0x1b7905(_0x29bb60['diffData'][_0x66b026]['attributesAfter'])||{},_0x1d4867=_0x286b0c['_makeModelFromViewString'](_0x29bb60['diffData'][_0x66b026]['insertions']);_0x1d4867['rootName']=_0x66b026,_0x1d4867['_isAttached']=!_0x381b28||_0x381b28['isAttached'],_0x1d4867['isAttached']=()=>_0x1d4867['_isAttached'],this['_diffRoots']['set'](_0x66b026,_0x1d4867),this['_diffRootsAttributes']['set'](_0x66b026,_0x22f5d6);const _0x240739=this['_makeIdsRoot'](_0x1d4867,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x66b026,_0x240739),_0x1e1633['set'](_0x66b026,_0x1d4867['isAttached']()?_0x22f5d6:{});for(const [_0xb903cf,_0x1d46cc]of _0x1d4867['markers']){if(!_0xb903cf['startsWith']('revision:'))continue;const _0x22c49b=_0xb903cf['split'](':')[0x2];for(const _0x381814 of _0x1d46cc['getWalker']({'singleCharacters':!0x0})){const _0x5e2009=this['_getVidAttributeName'](_0x381814),_0x95ecb9=this['_revisionId']++,_0x5e56f1='elementEnd'==_0x381814['type']?_0x381814['previousPosition']['path']['slice'](0x0,-0x1):_0x381814['previousPosition']['path'];_0x240739['getNodeByPath'](_0x5e56f1)['_setAttribute'](_0x5e2009,_0x95ecb9),this['_touched']['set'](_0x95ecb9,{'userId':_0x22c49b});}_0x1d4867['markers']['delete'](_0xb903cf);}for(const _0x429209 of this['editor']['model']['createRangeIn'](_0x1d4867)['getWalker']({'singleCharacters':!0x0})){const _0x2c1638=this['_getVidAttributeName'](_0x429209),_0x48a720='elementEnd'==_0x429209['type']?_0x429209['previousPosition']['path']['slice'](0x0,-0x1):_0x429209['previousPosition']['path'],_0x56192c=_0x240739['getNodeByPath'](_0x48a720);_0x56192c['getAttribute'](_0x2c1638)>0x0||_0x56192c['_setAttribute'](_0x2c1638,_0x5db067[_0x549f14++]);}for(const [_0x371f4b,_0x24c26b]of _0x1d4867['markers'])_0x371f4b['startsWith']('revision:')||this['_markers']['set'](_0x371f4b,_0x24c26b);}const {roots:_0x2cf84e}=this['_savedMetaData']['get'](_0x29bb60['fromVersion']),{roots:_0x23df19}=this['_savedMetaData']['get'](_0x29bb60['toVersion']),_0x27057a=x(_0x2cf84e['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x27057a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x27057a,Number['NEGATIVE_INFINITY']));const _0x562cf9=x(_0x23df19['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x562cf9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x562cf9));const _0x246609=Array['from'](this['_diffRoots'])['map'](([_0x52c5dd,_0xc34226])=>[_0x52c5dd,x(_0xc34226)]);this['_saveMetaData'](this['_lastTo'],_0x246609,this['_markers'],_0x1e1633);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4e3776,_0x5ce199,_0x17454,_0x38c26e){const _0x561752=new Map(_0x5ce199),_0x40e30c=new Map(_0x1b7905(_0x38c26e)),_0xd2e7e3=new Map();for(const [_0x35e7d3,_0x1fd253]of _0x17454)_0xd2e7e3['set'](_0x35e7d3,{'start':_0x1fd253['start']['clone'](),'end':_0x1fd253['end']['clone'](),'rootName':_0x1fd253['root']['rootName']});this['_savedMetaData']['set'](_0x4e3776,{'roots':_0x561752,'markers':_0xd2e7e3,'rootsAttributes':_0x40e30c});}['_removeMetaData'](_0x22f4b4){this['_savedMetaData']['delete'](_0x22f4b4);}['_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'](_0x5c5df5,_0x398d39=null){let _0x394af0=null;_0x5c5df5['is']('documentFragment')||(_0x394af0=new _0x1e1cab(_0x5c5df5['name'],{'vid_start':null===_0x398d39?this['_revisionId']++:_0x398d39++}));const _0x25cb49=[];for(const _0xa0585a of _0x5c5df5['getChildren']())if(_0xa0585a['is']('element')){_0x25cb49['push'](this['_makeIdsRoot'](_0xa0585a,_0x398d39));const _0x46dc73=_0x25cb49[_0x25cb49['length']-0x1];null!==_0x398d39&&(_0x398d39=_0x46dc73['is']('element','$text')?_0x46dc73['getAttribute']('vid')+0x1:_0x46dc73['getAttribute']('vid_end')+0x1);}else{for(let _0x3a5479=0x0;_0x3a5479<_0xa0585a['offsetSize'];_0x3a5479++)_0x25cb49['push'](new _0x1e1cab('$text',{'vid':null===_0x398d39?this['_revisionId']++:_0x398d39++}));}if(_0x5c5df5['is']('documentFragment')){const _0x2e1522=N(_0x5c5df5['rootName']);return _0x2e1522['_insertChild'](0x0,_0x25cb49),_0x2e1522;}return _0x394af0['_setAttribute']('vid_end',null===_0x398d39?this['_revisionId']++:_0x398d39++),_0x394af0['_insertChild'](0x0,_0x25cb49),_0x394af0;}['_calculateMetaData'](_0x212aa2,_0x55857c,_0x374115){this['_reset']();const {roots:_0x1ecf74,markers:_0x4bed49,rootsAttributes:_0x4c2eb6}=this['_savedMetaData']['get'](_0x212aa2);this['_baseRoots']=new Map(_0x1ecf74),this['_baseRootsAttributes']=new Map(_0x1b7905(_0x4c2eb6));for(const [_0x15b898,_0x250538]of this['_baseRoots'])if('$graveyard'!==_0x15b898&&(this['_diffRoots']['set'](_0x15b898,x(_0x250538)),this['_diffRootsAttributes']=new Map(_0x1b7905(_0x4c2eb6)),_0x374115)){const _0x3637dd=this['_revisionId'];this['_idsRoots']['set'](_0x15b898,this['_makeIdsRoot'](_0x250538)),this['_baseIdsRoots']['set'](_0x15b898,this['_makeIdsRoot'](_0x250538,_0x3637dd));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x374115&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x45c780,_0x4c83e9]of _0x4bed49){const _0x15c608=this['_baseRoots']['get'](_0x4c83e9['rootName']),_0x767264=this['_diffRoots']['get'](_0x4c83e9['rootName']),_0x3c3efe=new _0x10420e(this['_fixPosition'](_0x4c83e9['start'],_0x15c608),this['_fixPosition'](_0x4c83e9['end'],_0x15c608)),_0x334c7a=this['_fixRange'](_0x3c3efe,_0x767264);_0x15c608['markers']['set'](_0x45c780,_0x3c3efe),this['_markers']['set'](_0x45c780,_0x334c7a);}this['_applyOperations'](_0x212aa2,_0x55857c,_0x374115);}['_applyOperations'](_0x5f4d0b,_0x5cd9ba,_0x1b8558){for(const _0x57d8e8 of this['source']['getOperations'](_0x5f4d0b,_0x5cd9ba))this['_handleOperation'](_0x57d8e8,_0x1b8558);for(const _0x22ad9a of this['_diffRoots']['values']())_0x22ad9a['markers']['clear']();for(const [_0x2b61a4,_0x25f868]of this['_markers']){this['_diffRoots']['get'](_0x25f868['root']['rootName'])['markers']['set'](_0x2b61a4,_0x25f868['clone']());}const _0x549ed3=new Map(),_0x349a5f=new Map();for(const [_0x3699c9,_0x313332]of this['_diffRoots'])_0x549ed3['set'](_0x3699c9,x(_0x313332)),_0x349a5f['set'](_0x3699c9,this['_diffRootsAttributes']['get'](_0x3699c9));this['_saveMetaData'](_0x5cd9ba,_0x549ed3,this['_markers'],_0x349a5f);}['_getPreviousFrom'](_0x4564bd){const _0xa07987=Array['from'](this['_savedMetaData']['keys']());_0xa07987['sort']((_0x1da30b,_0x5e1d2f)=>_0x1da30b-_0x5e1d2f),_0xa07987['reverse']();for(const _0x37b320 of _0xa07987)if(_0x37b320<_0x4564bd)return _0x37b320;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4157ed,_0x54a243){const _0x2fd50e=Array['from'](_0x54a243['markers'])['map'](([_0x289d3f,_0x38a962])=>[_0x289d3f,this['_fixRange'](_0x38a962,_0x4157ed)]);_0x4157ed['markers']=new Map(_0x2fd50e);}['_transformMarkers'](_0x1fb50b){for(const _0x204239 of this['_markers']['values']()){const _0x148103=_0x204239['getTransformedByOperation'](_0x1fb50b),_0x1e197e=_0x10420e['_createFromRanges'](_0x148103);_0x204239['start']=_0x1e197e['start'],_0x204239['end']=_0x1e197e['end'];}}['_handleOperation'](_0x3791f9,_0x3a0ef3){if('addRoot'!=_0x3791f9['type']&&'detachRoot'!=_0x3791f9['type']){if('insert'==_0x3791f9['type']){const _0x339755=_0x3791f9['position']['root']['rootName'];this['_diffRoots']['has'](_0x339755)||(this['_diffRoots']['set'](_0x339755,N(_0x339755,!0x0)),this['_diffRootsAttributes']['set'](_0x339755,{}),_0x3a0ef3&&this['_idsRoots']['set'](_0x339755,N(_0x339755,!0x0)));}else{if('addRootAttribute'==_0x3791f9['type']||'removeRootAttribute'==_0x3791f9['type']||'changeRootAttribute'==_0x3791f9['type'])return void this['_handleRootAttributeOperation'](_0x3791f9);'marker'==_0x3791f9['type']&&this['_handleMarkerOperation'](_0x3791f9);}if('marker'!==_0x3791f9['type']){const _0x44a3c0=this['_cloneOperation'](_0x3791f9,this['_diffRoots']);_0x44a3c0['_execute'](),this['_transformMarkers'](_0x44a3c0);}if(_0x3a0ef3)switch(_0x3791f9['type']){case'insert':this['_handleInsertOperation'](_0x3791f9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3791f9);break;case'merge':this['_handleMergeOperation'](_0x3791f9);break;case'split':this['_handleSplitOperation'](_0x3791f9);}}else this['_handleRootOperation'](_0x3791f9,_0x3a0ef3);}['_cloneOperation'](_0x186488,_0x535237){const _0x5f5167=_0x186488['clone']();return _0x5f5167['_authorId']=_0x186488['_authorId'],this['_fixOperation'](_0x5f5167,_0x535237),_0x5f5167;}['_getBaseVids'](_0x48fb51){return _0x48fb51['map'](_0x57628a=>{const _0x5e6fcc=this['_getVidAttributeName'](_0x57628a);return Number(_0x57628a['item']['getAttribute'](_0x5e6fcc));});}['_generateTape'](_0x1c4e5d,_0x24ca3c){if(_0x1c4e5d['is']('element','$text'))_0x24ca3c['push']({'item':_0x1c4e5d,'type':'text'});else{_0x1c4e5d['is']('element')&&_0x24ca3c['push']({'item':_0x1c4e5d,'type':'elementStart'});for(const _0x4047e4 of _0x1c4e5d['getChildren']())this['_generateTape'](_0x4047e4,_0x24ca3c);_0x1c4e5d['is']('element')&&_0x24ca3c['push']({'item':_0x1c4e5d,'type':'elementEnd'});}return _0x24ca3c;}['_getState'](){const _0x436261=new Map(this['_touched']),_0x3e0d06=new Map(_0x436261),_0x3403a4=new Map(),_0x2efb01={'insertions':{},'deletions':{}},_0x279972={'insertions':{},'deletions':{}},_0x112860=new Map(),_0x5a63b3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a63b3['delete']('$graveyard');for(const _0x1de658 of _0x5a63b3){const _0x13bc91=this['_diffRoots']['get'](_0x1de658)||N(_0x1de658,!0x1),_0x5cb537=this['_baseRoots']['get'](_0x1de658)||N(_0x1de658,!0x1);_0x13bc91['isAttached']()||_0x5cb537['isAttached']()?(_0x2efb01['insertions'][_0x1de658]=x(_0x13bc91),_0x2efb01['deletions'][_0x1de658]=x(_0x5cb537),this['_copyMarkers'](_0x2efb01['deletions'][_0x1de658],_0x5cb537),this['_copyMarkers'](_0x2efb01['insertions'][_0x1de658],_0x13bc91),_0x279972['insertions'][_0x1de658]=this['_generateTape'](this['_idsRoots']['get'](_0x1de658),[]),_0x279972['deletions'][_0x1de658]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1de658)||N(_0x1de658,!0x1),[])):_0x5a63b3['delete'](_0x1de658);}for(const _0xf3644 of _0x5a63b3){const _0x546a3b=_0x279972['insertions'][_0xf3644];for(const _0x42c77d of _0x546a3b){const _0x461381=this['_getVidAttributeName'](_0x42c77d),_0x391eea=_0x42c77d['item']['getAttribute'](_0x461381);_0x3e0d06['delete'](_0x391eea),_0x391eea>=this['_startingRevisionId']&&_0x3403a4['set'](_0x391eea,_0x436261['get'](_0x391eea));}}for(const _0x52fc54 of _0x5a63b3){const _0x3563c5=_0x279972['insertions'][_0x52fc54],_0xb18869=this['_getBaseVids'](_0x279972['deletions'][_0x52fc54]);let _0x997e72=0x0;for(const _0x2d02d4 of _0x3563c5){const _0x1d019e=this['_getVidAttributeName'](_0x2d02d4),_0x544f8c=_0x2d02d4['item']['getAttribute'](_0x1d019e);if(!_0x3403a4['has'](_0x544f8c)&&!_0x112860['has'](_0x544f8c)){if(_0x3e0d06['has'](_0x544f8c))_0x997e72++;else{if(_0x544f8c!=_0xb18869[_0x997e72]){const _0x32310e=_0x436261['get'](_0x544f8c)||_0x436261['get'](_0xb18869[_0x997e72]);for(;_0x544f8c!=_0xb18869[_0x997e72];)_0x3e0d06['has'](_0xb18869[_0x997e72])||(_0x112860['set'](_0xb18869[_0x997e72],_0x32310e),_0x436261['set'](_0xb18869[_0x997e72],_0x32310e)),_0x997e72++;}_0x997e72++;}}}}for(const _0x2a329d of _0x5a63b3){const _0x260393=_0x279972['insertions'][_0x2a329d];for(const _0x52f966 of _0x260393){const _0x146518=this['_getVidAttributeName'](_0x52f966),_0xe05e88=_0x52f966['item']['getAttribute'](_0x146518);if(_0x112860['has'](_0xe05e88)){const _0x210139=_0x112860['get'](_0xe05e88);_0x3e0d06['has'](_0xe05e88)||_0x3e0d06['set'](_0xe05e88,{..._0x210139}),_0x3403a4['set'](_0xe05e88,{..._0x210139});}}}for(const _0x3f7a8f of _0x3e0d06['keys']())_0x3f7a8f>=this['_startingRevisionId']&&_0x3e0d06['delete'](_0x3f7a8f);const _0x285348=new Map();for(const _0x446778 of _0x5a63b3){let _0x178ea8=_0x279972['insertions'][_0x446778];for(const _0x215b37 of _0x178ea8)if(_0x215b37['item']['is']('element','tableCell')){const _0x4bbf3e=this['_getVidAttributeName'](_0x215b37),_0x2b5b4a=_0x215b37['item']['getAttribute'](_0x4bbf3e);if(_0x3403a4['has'](_0x2b5b4a)){const _0x541cd3=_0x215b37['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f5624=_0x285348['get'](_0x541cd3)||new Set();_0x2f5624['add'](_0x3403a4['get'](_0x2b5b4a)['userId']),_0x285348['set'](_0x541cd3,_0x2f5624);}}_0x178ea8=_0x279972['deletions'][_0x446778];for(const _0x297f00 of _0x178ea8)if(_0x297f00['item']['is']('element','tableCell')){const _0x53ea21=this['_getVidAttributeName'](_0x297f00),_0x48f3a5=_0x297f00['item']['getAttribute'](_0x53ea21);if(_0x3e0d06['has'](_0x48f3a5)){const _0x5c1d2d=_0x297f00['item']['parent']['parent']['getAttribute']('vid_start'),_0x321c37=_0x285348['get'](_0x5c1d2d)||new Set();_0x321c37['add'](_0x3e0d06['get'](_0x48f3a5)['userId']),_0x285348['set'](_0x5c1d2d,_0x321c37);}}for(const _0x4ef1d5 of _0x285348['keys']())(_0x3403a4['has'](_0x4ef1d5)||_0x3e0d06['has'](_0x4ef1d5))&&_0x285348['delete'](_0x4ef1d5);}for(const _0x205509 of _0x5a63b3){const _0x3082c8=_0x279972['insertions'][_0x205509];let _0x24ca85=null,_0x7a2ea2=null;for(const _0x138d50 of _0x3082c8){const _0x24cef6=this['_getVidAttributeName'](_0x138d50),_0x1c048e=_0x138d50['item']['getAttribute'](_0x24cef6),_0x37509c=_0x285348['get'](_0x1c048e);_0x37509c&&'elementStart'==_0x138d50['type']&&(_0x24ca85=Array['from'](_0x37509c)[0x0],_0x7a2ea2=_0x138d50['item']['getAttribute']('vid_end')),_0x24ca85&&(_0x3e0d06['set'](_0x1c048e,{'userId':_0x24ca85}),_0x3403a4['set'](_0x1c048e,{'userId':_0x24ca85})),_0x1c048e==_0x7a2ea2&&(_0x24ca85=null,_0x7a2ea2=null);}}const _0x2b95b2={},_0x3f79c6=new Set();for(const _0x51d869 of _0x5a63b3){const _0x2a087f=_0x2efb01['deletions'][_0x51d869],_0x15d38b=_0x2efb01['insertions'][_0x51d869];for(const {userId:_0x51edba}of this['_touchedMarkers']['values']())null!==_0x51edba&&_0x3f79c6['add'](_0x51edba);for(const {userId:_0x1711bb}of this['_touchedRoots']['values']())null!==_0x1711bb&&_0x3f79c6['add'](_0x1711bb);this['_markChanges'](_0x15d38b,_0x279972['insertions'][_0x51d869],_0x3403a4,'insertion',_0x3f79c6),this['_markChanges'](_0x2a087f,_0x279972['deletions'][_0x51d869],_0x3e0d06,'deletion',_0x3f79c6),_0x2b95b2[_0x51d869]={'insertions':this['_prepareViewToSave'](_0x15d38b),'deletions':this['_prepareViewToSave'](_0x2a087f),'attachChange':this['_touchedRoots']['get'](_0x51d869)||null,'attributesBefore':_0x1b7905(this['_baseRootsAttributes']['get'](_0x51d869))||{},'attributesAfter':_0x1b7905(this['_diffRootsAttributes']['get'](_0x51d869))};}return{'diffData':_0x2b95b2,'authorsIds':Array['from'](_0x3f79c6)};}['_processRootBeforeSave'](_0x288742){for(const [,_0x5941e2]of _0x288742['markers']){const _0x1a1d1d=_0x5941e2['start']['getAncestors']()['filter'](_0x635d48=>'tableCell'==_0x635d48['name']);for(const _0xee4fde of _0x1a1d1d)0x1==_0xee4fde['childCount']&&_0xee4fde['getChild'](0x0)['is']('element','paragraph')&&_0xee4fde['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe73c29){this['_processRootBeforeSave'](_0xe73c29);const _0x42168e=this['editor']['data']['toView'](_0xe73c29,{}),_0x11de6c=Array['from'](_0x42168e['getChildren']())['map'](_0x253228=>this['_getViewJson'](_0x253228));return JSON['stringify'](_0x11de6c);}['_getViewJson'](_0x1c8a3f){if(_0x1c8a3f['is']('$text'))return _0x1c8a3f['data'];{const _0x497623=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x28195a=_0x1c8a3f,_0x511dfe=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b8b51={'type':_0x497623['_getTypeCharForViewElement'](_0x28195a),'name':_0x28195a['name'],'attributes':Array['from'](_0x28195a['getAttributes']()),'children':Array['from'](_0x28195a['getChildren']())['map'](_0x427f81=>this['_getViewJson'](_0x427f81))};if(_0x1c8a3f['is']('uiElement')&&'$comment'!=_0x1c8a3f['name']){const _0x267634=_0x1c8a3f['render'](_0x511dfe['domDocument'],_0x511dfe);_0x1b8b51['children']['push'](_0x267634['outerHTML']);}else{if(_0x1c8a3f['is']('rawElement')){const _0x43eaff=_0x511dfe['domDocument']['createElement'](_0x28195a['name']);_0x1c8a3f['render'](_0x43eaff,_0x511dfe),_0x1b8b51['children']['push'](_0x43eaff['innerHTML']);}}const _0x9260b3=Array['from'](_0x28195a['getCustomProperties']());_0x9260b3['length']>0x0&&(_0x1b8b51['customProperties']=_0x9260b3);const _0x16db91=_0x28195a['getFillerOffset']();return null!==_0x16db91&&(_0x1b8b51['fillerOffset']=_0x16db91),_0x1b8b51;}}['_markChanges'](_0x3fa8ce,_0xb29c08,_0x48b41d,_0x42a83c,_0x4a52cf){let _0x38dc77=null,_0x3a2b93=null,_0x7ee64=0x0;const _0x5f4b4a=this['editor']['model'];for(let _0x48a1f9=0x0;_0x48a1f9<_0xb29c08['length'];_0x48a1f9++){const _0x5ea4ae=this['_getVidAttributeName'](_0xb29c08[_0x48a1f9]),_0x4dec83=_0xb29c08[_0x48a1f9]['item']['getAttribute'](_0x5ea4ae),_0x545253=_0x48b41d['get'](_0x4dec83),_0x2d11eb=_0x48a1f9==_0xb29c08['length']-0x1;(!_0x38dc77&&_0x545253&&(_0x38dc77=_0x545253,_0x3a2b93=_0xb29c08[_0x48a1f9]),_0x38dc77&&(!_0x545253||_0x545253['userId']!=_0x38dc77['userId']))&&(_0x254ce7(_0x545253,P(_0x3a2b93,_0x3fa8ce,_0x5f4b4a),P(_0xb29c08[_0x48a1f9],_0x3fa8ce,_0x5f4b4a)),_0x38dc77=_0x545253||null,_0x3a2b93=_0x545253?_0xb29c08[_0x48a1f9]:null),_0x38dc77&&_0x2d11eb&&_0x254ce7(_0x545253,P(_0x3a2b93,_0x3fa8ce,_0x5f4b4a),V(_0xb29c08[_0x48a1f9],_0x3fa8ce,_0x5f4b4a));}function _0x254ce7(_0x2d570e,_0x3ff03f,_0x4369f2){const _0x1c3033=_0x38dc77['userId'],_0x54bd2f='revision:'+_0x42a83c+':'+_0x1c3033+':'+_0x7ee64++,_0x9c0fef=_0x5f4b4a['createRange'](_0x3ff03f,_0x4369f2);_0x3fa8ce['markers']['set'](_0x54bd2f,_0x9c0fef),null!==_0x1c3033&&_0x4a52cf['add'](_0x1c3033);}}['_getVidAttributeName'](_0x42f5c8){switch(_0x42f5c8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x9ad8cf,_0x3372ab){_0x9ad8cf['baseVersion']=null;for(const _0x5d5d80 in _0x9ad8cf){const _0x1fad6f=_0x9ad8cf[_0x5d5d80];if(_0x1fad6f instanceof _0x225570){const _0x51640e=_0x3372ab['get'](_0x1fad6f['root']['rootName']);_0x9ad8cf[_0x5d5d80]=this['_fixPosition'](_0x1fad6f,_0x51640e);}if(_0x1fad6f instanceof _0x10420e){const _0x30cca3=_0x3372ab['get'](_0x1fad6f['root']['rootName']);_0x9ad8cf[_0x5d5d80]=this['_fixRange'](_0x1fad6f,_0x30cca3);}'root'===_0x5d5d80&&(_0x9ad8cf['root']=_0x3372ab['get'](_0x9ad8cf['root']['rootName']));}}['_fixRange'](_0x404f40,_0x2731a9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x404f40['start'],_0x2731a9),this['_fixPosition'](_0x404f40['end'],_0x2731a9));}['_fixPosition'](_0x2d9375,_0x3fa9df){return this['editor']['model']['createPositionFromPath'](_0x3fa9df,_0x2d9375['path'],_0x2d9375['stickiness']);}['_handleInsertOperation'](_0x4f9657){const _0x3889bc=this['_idsRoots']['get'](_0x4f9657['position']['root']['rootName']),_0x4d9bb7=this['_fixPosition'](_0x4f9657['position'],_0x3889bc),_0x2efd8b=null===_0x4f9657['_authorId']?null:_0x4f9657['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e6f92=_0x4d9bb7['parent'],_0x2c3c85=this['_revisionId'],_0x3cb2d6=[];for(const _0x39b195 of _0x4f9657['nodes'])if(_0x39b195['is']('element'))_0x3cb2d6['push'](this['_makeIdsRoot'](_0x39b195));else{for(let _0xbfd059=0x0;_0xbfd059<_0x39b195['offsetSize'];_0xbfd059++)_0x3cb2d6['push'](new _0x1e1cab('$text',{'vid':this['_revisionId']++}));}const _0x52679f=this['_revisionId'];for(let _0x593585=_0x2c3c85;_0x593585<_0x52679f;_0x593585++)this['_touched']['set'](_0x593585,{'userId':_0x2efd8b});_0x5e6f92['_insertChild'](_0x4d9bb7['offset'],_0x3cb2d6);}['_handleMoveOperation'](_0x2ceb62){(_0x2ceb62=this['_cloneOperation'](_0x2ceb62,this['_idsRoots']))['_execute']();const _0x2d6984=null===_0x2ceb62['_authorId']?null:_0x2ceb62['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32d412=_0x2ceb62['getMovedRangeStart'](),_0x3cf537=_0x32d412['parent'],_0x15e2a7=_0x32d412['offset'];!function _0x124f30(_0x23881b,_0x2b98e1,_0x450f45,_0x260ffd){for(let _0x4d43f7=_0x450f45;_0x4d43f7<_0x260ffd;_0x4d43f7++){const _0x3ed08f=_0x2b98e1['getChild'](_0x4d43f7);_0x3ed08f['is']('element','$text')?_0x23881b['set'](_0x3ed08f['getAttribute']('vid'),{'userId':_0x2d6984}):(_0x23881b['set'](_0x3ed08f['getAttribute']('vid_start'),{'userId':_0x2d6984}),_0x124f30(_0x23881b,_0x3ed08f,0x0,_0x3ed08f['childCount']),_0x23881b['set'](_0x3ed08f['getAttribute']('vid_end'),{'userId':_0x2d6984}));}}(this['_touched'],_0x3cf537,_0x15e2a7,_0x15e2a7+_0x2ceb62['howMany']);}['_handleMergeOperation'](_0x876dd){const _0x3fb673=null===(_0x876dd=this['_cloneOperation'](_0x876dd,this['_idsRoots']))['_authorId']?null:_0x876dd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x125fe8=_0x876dd['targetPosition']['parent'],_0x1c5b5b=_0x876dd['sourcePosition']['parent'],_0x1dc1ac=_0x125fe8['getAttribute']('vid_end'),_0x5530ee=_0x1c5b5b['getAttribute']('vid_start');_0x125fe8['_setAttribute']('vid_end',_0x1c5b5b['getAttribute']('vid_end')),_0x1c5b5b['_setAttribute']('vid_end',_0x1dc1ac),this['_touched']['set'](_0x5530ee,{'userId':_0x3fb673}),this['_touched']['set'](_0x1dc1ac,{'userId':_0x3fb673}),_0x876dd['_execute']();}['_handleSplitOperation'](_0x494c7b){const _0x16c289=null===(_0x494c7b=this['_cloneOperation'](_0x494c7b,this['_idsRoots']))['_authorId']?null:_0x494c7b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3521db=_0x494c7b['graveyardPosition'],_0x32ac60=_0x494c7b['splitPosition']['parent'];_0x494c7b['_execute']();const _0x5957ee=_0x32ac60['getAttribute']('vid_end'),_0xa3dd7e=_0x494c7b['insertionPosition']['nodeAfter'];if(_0x3521db){const _0x521835=_0xa3dd7e['getAttribute']('vid_end'),_0x1ee2bb=_0x32ac60['getAttribute']('vid_end');_0x32ac60['_setAttribute']('vid_end',_0x521835),_0xa3dd7e['_setAttribute']('vid_end',_0x1ee2bb),this['_touched']['set'](_0x32ac60['getAttribute']('vid_end'),{'userId':_0x16c289}),this['_touched']['set'](_0xa3dd7e['getAttribute']('vid_start'),{'userId':_0x16c289});}else{const _0x3ba05f=this['_revisionId']++,_0x100b0e=this['_revisionId']++;_0x32ac60['_setAttribute']('vid_end',_0x3ba05f),_0xa3dd7e['_setAttribute']('vid_start',_0x100b0e),_0xa3dd7e['_setAttribute']('vid_end',_0x5957ee),this['_touched']['set'](_0x3ba05f,{'userId':_0x16c289}),this['_touched']['set'](_0x100b0e,{'userId':_0x16c289});}}['_handleMarkerOperation'](_0x3a98a4){if(!_0x3a98a4['affectsData'])return;const _0x110c26=(_0x3a98a4=this['_cloneOperation'](_0x3a98a4,this['_diffRoots']))['oldRange']?_0x3a98a4['oldRange']['root']:null,_0x33f77d=_0x3a98a4['newRange']?_0x3a98a4['newRange']['root']:null;_0x110c26&&this['_markers']['delete'](_0x3a98a4['name']),_0x33f77d&&this['_markers']['set'](_0x3a98a4['name'],_0x3a98a4['newRange']['clone']());const _0x17c83b=null===_0x3a98a4['_authorId']?null:_0x3a98a4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xab3f87=_0x3a98a4['name'];if(!this['_touchedMarkers']['has'](_0xab3f87))return void this['_touchedMarkers']['set'](_0xab3f87,{'range':_0x3a98a4['oldRange'],'userId':_0x17c83b});const _0x5b1953=this['_touchedMarkers']['get'](_0xab3f87),_0x4f32f=_0x5b1953['range'],_0x216a2b=_0x3a98a4['newRange'];null==_0x4f32f&&null==_0x216a2b||_0x4f32f&&_0x216a2b&&_0x4f32f['isEqual'](_0x216a2b)?this['_touchedMarkers']['delete'](_0x3a98a4['name']):_0x5b1953['userId']=_0x17c83b;}['_handleRootOperation'](_0x5bdece,_0x202498){this['_diffRoots']['has'](_0x5bdece['rootName'])?this['_diffRoots']['get'](_0x5bdece['rootName'])['_isAttached']=_0x5bdece['isAdd']:(this['_diffRoots']['set'](_0x5bdece['rootName'],N(_0x5bdece['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5bdece['rootName'],{}),_0x202498&&this['_idsRoots']['set'](_0x5bdece['rootName'],N(_0x5bdece['rootName'],!0x0)));const _0x164fb5=null===_0x5bdece['_authorId']?null:_0x5bdece['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23b9b8=this['_touchedRoots']['get'](_0x5bdece['rootName']);_0x23b9b8&&_0x23b9b8['userId']===_0x164fb5?this['_touchedRoots']['delete'](_0x5bdece['rootName']):this['_touchedRoots']['set'](_0x5bdece['rootName'],{'userId':_0x164fb5,'isAttached':_0x5bdece['isAdd']});}['_handleRootAttributeOperation'](_0x4fcca4){const _0x36759f=this['_diffRootsAttributes']['get'](_0x4fcca4['root']['rootName']);null===_0x4fcca4['newValue']?delete _0x36759f[_0x4fcca4['key']]:_0x36759f[_0x4fcca4['key']]=_0x4fcca4['newValue'];}}function x(_0x295948){const _0x484655=N(_0x295948['rootName'],_0x295948['isAttached']());for(const _0xe97cdb of _0x295948['getChildren']()){const _0x5e6fb0=_0xe97cdb['_clone'](!0x0);_0x484655['_appendChild'](_0x5e6fb0);}return _0x484655;}function N(_0x5438b1,_0x14b0ab=!0x0){const _0x52f335=new _0x4e8f13();return _0x52f335['rootName']=_0x5438b1,_0x52f335['_isAttached']=_0x14b0ab,_0x52f335['isAttached']=()=>_0x52f335['_isAttached'],_0x52f335;}function P(_0x4f9b9c,_0x3debd2,_0x2dc43e){const _0x15c0f3='elementEnd'==_0x4f9b9c['type']?_0x2dc43e['createPositionAt'](_0x4f9b9c['item'],'end'):_0x2dc43e['createPositionBefore'](_0x4f9b9c['item']);return _0x2dc43e['createPositionFromPath'](_0x3debd2,_0x15c0f3['path'],_0x15c0f3['stickiness']);}function V(_0x45bfa2,_0x52ff7c,_0x86ac8){const _0x56d581='elementStart'==_0x45bfa2['type']?_0x86ac8['createPositionAt'](_0x45bfa2['item'],0x0):_0x86ac8['createPositionAfter'](_0x45bfa2['item']);return _0x86ac8['createPositionFromPath'](_0x52ff7c,_0x56d581['path'],_0x56d581['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1d69eb(_0x1e10ae){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5ab20b,_0xe44979){super(_0x5ab20b),this['focusTracker']=new _0x80cd21(),this['keystrokes']=new _0x5b411f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe44979),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'](),_0x34c2cc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x11f7fb=_0x4f5be3=>_0x4f5be3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11f7fb),this['keystrokes']['set']('arrowleft',_0x11f7fb),this['keystrokes']['set']('arrowup',_0x11f7fb),this['keystrokes']['set']('arrowdown',_0x11f7fb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x48b643){this['revisionNameInputView']['fieldView']['element']['value']=_0x48b643['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3407b5){const _0x57b2d4=new et(this['locale'],ti),_0x4a1fc5=_0x57b2d4['fieldView'];_0x4a1fc5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x42542b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3407b5&&(_0x42542b+='\x20('+m(this['locale'],'optional')+')'),(_0x57b2d4['label']=_0x42542b,_0x4a1fc5['on']('input',()=>{this['revisionNameInputValue']=_0x4a1fc5['element']['value']['trim']();}),_0x57b2d4);}}class l extends _0x3aa0b2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x517747=this['editor'],_0x3b33ba=_0x517747['plugins']['get']('RevisionTracker');_0x517747['ui']['componentFactory']['add']('revisionHistory',_0x50812a=>{const _0x18e042=_0x34e01e(_0x50812a),_0x5c8ac0=_0x18e042['panelView']['children'],_0x34833f=new _0x2144e2(_0x50812a),_0xa7df66=new _0x5d920f(_0x50812a),_0x55b74e=this['_createSaveRevisionButton'](_0x5eae90),_0x181aae=new _0x5d920f(_0x50812a),_0xed1982=this['_createOpenRevisionButton'](_0x5eae90);return _0x18e042['bind']('isEnabled')['to'](_0x3b33ba,'isReady',_0x3b33ba,'isEnabled',_0x517747,'isReadOnly',(_0x49d1ad,_0x57bd12,_0x50a35b)=>_0x49d1ad&&_0x57bd12&&!_0x50a35b),_0x18e042['buttonView']['set']({'icon':_0x553cd1,'label':m(_0x50812a,'Revision\x20history'),'tooltip':!0x0}),_0x55b74e['set']({'withText':!0x0,'role':'menuitem'}),_0xed1982['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0xed1982,'execute',()=>{_0x18e042['isOpen']=!0x1,_0x517747['editing']['view']['focus']();},{'priority':'low'}),_0xa7df66['children']['add'](_0x55b74e),_0x181aae['children']['add'](_0xed1982),_0x34833f['role']='menu',_0x34833f['items']['addMany']([_0xa7df66,_0x181aae]),_0x5c8ac0['add'](_0x34833f),_0x18e042;}),_0x517747['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5de57d=this['editor'],_0x42041f=_0x5de57d['locale'],_0x3b8a55=_0x5de57d['plugins']['get']('RevisionTracker'),_0x578072=new _0x26206f(_0x42041f),_0x414eec=new _0xf3624d(_0x42041f);_0x578072['bind']('isEnabled')['to'](_0x3b8a55,'isReady',_0x3b8a55,'isEnabled',_0x5de57d,'isReadOnly',(_0x2192b7,_0x2e7d83,_0x57f046)=>_0x2192b7&&_0x2e7d83&&!_0x57f046),_0x578072['buttonView']['set']({'icon':_0x553cd1,'label':m(_0x42041f,'Revision\x20history')});const _0x569a2d=new _0x2da689(_0x42041f,_0x578072),_0x42d890=this['_createSaveRevisionButton'](_0x148d86);_0x42d890['delegate']('execute')['to'](_0x578072),_0x569a2d['children']['add'](_0x42d890),_0x414eec['items']['add'](_0x569a2d);const _0x43af75=new _0x2da689(_0x42041f,_0x578072),_0x64a3a=this['_createOpenRevisionButton'](_0x148d86);return _0x64a3a['delegate']('execute')['to'](_0x578072),_0x43af75['children']['add'](_0x64a3a),_0x414eec['items']['add'](_0x43af75),_0x578072['panelView']['children']['add'](_0x414eec),_0x578072;}['_createSaveRevisionButton'](_0x592d42){const _0x5945e8=this['editor'],_0x491abb=_0x5945e8['plugins']['get']('RevisionTracker'),_0x3979c0=new _0x592d42(_0x5945e8['locale']);return _0x3979c0['set']({'label':m(_0x5945e8['locale'],'Save\x20current\x20revision')}),_0x3979c0['bind']('isEnabled')['to'](_0x491abb,'isReady',_0x491abb,'isEnabled',_0x5945e8,'isReadOnly',(_0x37141e,_0x4cb87d,_0x55f637)=>_0x37141e&&_0x4cb87d&&!_0x55f637),this['listenTo'](_0x3979c0,'execute',()=>{this['_showDialog']();}),_0x3979c0;}['_createOpenRevisionButton'](_0x2f90eb){const _0x103d24=this['editor'],_0x2fea6b=_0x103d24['plugins']['get']('RevisionTracker'),_0x59b8e6=new _0x2f90eb(_0x103d24['locale']);return _0x59b8e6['set']({'label':m(_0x103d24['locale'],'Open\x20revision\x20history')}),_0x59b8e6['bind']('isEnabled')['to'](_0x2fea6b,'isReady',_0x103d24,'isReadOnly',(_0x43be7f,_0x1e0aa5)=>_0x43be7f&&!_0x1e0aa5),this['listenTo'](_0x59b8e6,'execute',()=>{_0x103d24['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59b8e6;}['_showDialog'](){const _0x27e7f5=this['editor'],_0x5cf528=_0x27e7f5['locale'],_0x2e66f2=_0x27e7f5['plugins']['get']('Dialog'),_0x74deb2=_0x27e7f5['plugins']['get']('RevisionTracker');function _0x533c34(_0x202c7f){_0x27e7f5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x202c7f['revisionName']?_0x202c7f['revisionNameInputView']['errorText']=m(_0x5cf528,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x27e7f5['plugins']['get'](h)['saveRevision']({'name':_0x202c7f['revisionName']}),_0x2e66f2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x533c34(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2e66f2['show']({'id':'revisionSave','title':m(_0x5cf528,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x27e7f5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2e66f2['hide']()},{'label':m(_0x27e7f5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4ca7e5){_0x4ca7e5['bind']('isEnabled')['to'](_0x74deb2,'isReady',_0x74deb2,'isEnabled',_0x27e7f5,'isReadOnly',(_0x5ceac9,_0x17726e,_0x1bd36e)=>_0x5ceac9&&_0x17726e&&!_0x1bd36e);},'onExecute':()=>_0x533c34(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2237d6=this['editor'],_0x43aa83=_0x2237d6['locale'];this['_saveRevisionFormView']=new he(_0x43aa83,_0x2237d6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x1e10ae{['changeId'];['_model'];constructor(_0x2f447d,_0x5c833f){super(_0x2f447d),this['_model']=_0x5c833f,this['changeId']=_0x5c833f['id'];const _0x1cd36b=this['bindTemplate'],_0x22b6ed=m(_0x2f447d,_0x5c833f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5c833f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5c833f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cd36b['to']('type',_0x4e63f8=>'ck-revision-change__'+_0x4e63f8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x22b6ed}]},{'text':'\x20'+_0x5c833f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x56b375(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x48630b){super(),this['id']=_0x48630b['id']||_0x52ce2c(),this['author']=_0x48630b['author'],this['type']=_0x48630b['type'],this['data']=_0x48630b['data']||{},this['rootName']=_0x48630b['rootName'],this['set']('createdAt',_0x48630b['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(_0x5111b9,_0x3170c2){this['newRevisionId']=_0x5111b9,this['oldRevisionId']=_0x3170c2,this['changes']=new _0x4e11d5();}['_setChanges'](_0x57ff0c){for(const _0x36a237 of _0x57ff0c)this['changes']['add'](_0x36a237);}}class u extends _0x3aa0b2{['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[_0xb02d0b,_0x438950,S,$];}constructor(_0x436dd4){super(_0x436dd4),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',(_0x398901,_0x1244b4,_0xc14e41)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x247732=>{for(const _0x1a1312 of this['editor']['editing']['view']['document']['roots'])_0xc14e41?_0x247732['removeClass']('ck-editor__editable__overlay',_0x1a1312):_0x247732['addClass']('ck-editor__editable__overlay',_0x1a1312);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a7f2a=>null!==_0x3a7f2a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5bd320,_0x701cc2,_0x1b1b7c)=>_0x5bd320&&_0x1b1b7c?_0x701cc2['changes']['getIndex'](_0x1b1b7c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3b8166,_0x182348)=>_0x3b8166?_0x182348['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x438950);}['init'](){const _0x470caf=this['editor'],_0x2a8a17=new rt(_0x470caf,{'direction':'backward'}),_0x3abc22=new rt(_0x470caf,{'direction':'forward'});(_0x470caf['commands']['add']('showPreviousChange',_0x2a8a17),_0x470caf['commands']['add']('showNextChange',_0x3abc22),_0x470caf['commands']['add']('restoreRevision',new nt(_0x470caf)),this['on']('change:numberOfChanges',()=>{_0x2a8a17['refresh'](),_0x3abc22['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x470caf['enableReadOnlyMode']('revision-viewer'),_0x470caf['plugins']['has']('WidgetToolbarRepository'))&&_0x470caf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x110289){return await this['_utils']['loadRevisionData'](_0x110289,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x110289);}async['getRevisionRootsAttributes'](_0x1c708c){return await this['_utils']['loadRevisionData'](_0x1c708c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1c708c);}async['compare'](_0x38c96a,_0x2bff7e,_0x3a74be=!0x1){if(!this['isEnabled'])return;const _0x2c66c2=this['diff'],_0x2e528f=this['repository'],_0x514a73='string'==typeof _0x38c96a?_0x2e528f['getRevision'](_0x38c96a):_0x38c96a,_0x41724c='string'==typeof _0x2bff7e?_0x2e528f['getRevision'](_0x2bff7e):_0x2bff7e,_0x66db5f=_0x514a73['id'],_0x2b0605=_0x41724c?_0x41724c['id']:null;if(!_0x3a74be&&this['diff']&&this['diff']['newRevisionId']===_0x66db5f&&this['diff']['oldRevisionId']===_0x2b0605)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x66db5f,_0x2b0605);const _0x1d76bc=this['_getRevisionsRange'](_0x514a73,_0x41724c,!0x0)['map'](_0x497eb1=>this['_utils']['loadRevisionData'](_0x497eb1,this['adapter']));return _0x1d76bc['push'](new Promise(_0x20945d=>{setTimeout(_0x20945d,0x14);})),Promise['all'](_0x1d76bc)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x511f4a=this['_getDiff'](_0x66db5f,_0x2b0605);for(const _0x40aeda of _0x511f4a['changes'])this['_changeIdToChange']['set'](_0x40aeda['id'],_0x40aeda);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x251340=>{for(const _0x210076 of this['editor']['model']['document']['getRootNames']())_0x251340['detachRoot'](_0x210076);for(const _0x36b994 of Object['keys'](_0x511f4a['model'])){const _0x118417=_0x251340['addRoot'](_0x36b994);for(const _0x121327 of Object['keys'](_0x511f4a['attributes'][_0x36b994]))_0x251340['setAttribute'](_0x121327,_0x511f4a['attributes'][_0x36b994][_0x121327],_0x118417);_0x251340['insert'](_0x511f4a['model'][_0x36b994],_0x118417,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x511f4a['changes'])),this['isReady']=!0x0;})['catch'](_0x400df4=>{console['error'](_0x400df4),this['_cleanUp'](),_0x2c66c2&&(this['diff']=_0x2c66c2),this['isReady']=!0x0;});}['addRevisionData'](_0x4bce10,_0x21690e){const _0xdae9eb=this['repository']['createRevision'](_0x4bce10);return _0xdae9eb['on']('_update',(_0x2fc8cf,_0x805fcd,_0x304ec7)=>_0x21690e(_0x805fcd,_0x304ec7,_0xdae9eb)),this['repository']['addRevision'](_0xdae9eb),_0xdae9eb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e5f6a=>{for(const _0x9c8723 of this['editor']['model']['document']['getRootNames']())_0x3e5f6a['detachRoot'](_0x9c8723);});}['_sortAndFilterDiffChanges'](_0x52e8e9){const _0x22e405=[],_0x22e233=new Map();for(const _0x3dc68f of this['editor']['model']['document']['getRootNames']()){const _0x40a858=this['editor']['editing']['view']['getDomRoot'](_0x3dc68f);if(!_0x40a858)continue;const _0x564641=_0x40a858['getClientRects']()['item'](0x0);_0x564641&&(_0x22e405['push'](_0x3dc68f),_0x22e233['set'](_0x3dc68f,_0x564641));}return _0x22e405['sort']((_0x503a21,_0x4b8aff)=>{const _0x56bce8=_0x22e233['get'](_0x503a21),_0x260512=_0x22e233['get'](_0x4b8aff);return _0x56bce8['y']-_0x260512['y']||_0x56bce8['x']-_0x260512['x'];}),(_0x52e8e9=_0x52e8e9['filter'](_0x2aa83d=>_0x22e405['includes'](_0x2aa83d['rootName'])))['sort']((_0x22d94b,_0x2d2bca)=>_0x22e405['indexOf'](_0x22d94b['rootName'])-_0x22e405['indexOf'](_0x2d2bca['rootName'])),_0x52e8e9;}['_makeTape'](_0x400b8b){const _0x1f86d2=Array['from'](_0x400b8b['markers'])['filter'](([_0x580d22,_0x25cad2])=>_0x580d22['startsWith']('revision:')&&!_0x25cad2['isCollapsed']),_0x4b036e=Array['from'](this['editor']['model']['createRangeIn'](_0x400b8b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1f86d2['length'])for(const _0x4af3a9 of _0x4b036e){const [_0x4dcb8f,_0x5b94f7]=_0x1f86d2[0x0],[,_0x35139d,_0x3a518d]=_0x4dcb8f['split'](':');if(_0x5b94f7['end']['isEqual'](_0x4af3a9['nextPosition'])&&_0x1f86d2['shift'](),(_0x4af3a9['previousPosition']['isEqual'](_0x5b94f7['start'])||_0x4af3a9['previousPosition']['isAfter'](_0x5b94f7['start']))&&('insertion'==_0x35139d?_0x4af3a9['isAdded']={'userId':_0x3a518d}:'deletion'==_0x35139d&&(_0x4af3a9['isRemoved']={'userId':_0x3a518d})),0x0==_0x1f86d2['length'])break;}return _0x4b036e;}['_refreshStartEndIndex'](_0x340409){const _0x5585b5=new Map();for(let _0x47c842=0x0;_0x47c842<_0x340409['length'];_0x47c842++)'text'===_0x340409[_0x47c842]['type']?(_0x340409[_0x47c842]['item']['startIndex']=_0x47c842,_0x340409[_0x47c842]['item']['endIndex']=_0x47c842):('elementStart'===_0x340409[_0x47c842]['type']?_0x340409[_0x47c842]['item']['startIndex']=_0x47c842:'elementEnd'===_0x340409[_0x47c842]['type']&&(_0x340409[_0x47c842]['item']['endIndex']=_0x47c842),_0x5585b5['set'](_0x340409[_0x47c842]['id'],_0x47c842));for(const _0x142416 of _0x5585b5['values']())'elementStart'===_0x340409[_0x142416]['type']?_0x340409[_0x142416]['item']['endIndex']=_0x5585b5['get'](_0x340409[_0x142416]['pairId']):'elementEnd'===_0x340409[_0x142416]['type']&&(_0x340409[_0x142416]['item']['startIndex']=_0x5585b5['get'](_0x340409[_0x142416]['pairId']));}['_processTape'](_0xdcde61){for(let _0x18c508=0x0;_0x18c508<_0xdcde61['length'];_0x18c508++){if('elementStart'===_0xdcde61[_0x18c508]['type'])_0xdcde61[_0x18c508]['item']['startIndex']=_0x18c508;else{if('elementEnd'===_0xdcde61[_0x18c508]['type']){_0xdcde61[_0x18c508]['item']['endIndex']=_0x18c508;const _0x282612=_0xdcde61[_0x18c508]['item']['startIndex'];_0xdcde61[_0x282612]['pairId']=_0xdcde61[_0x18c508]['id'],_0xdcde61[_0x18c508]['pairId']=_0xdcde61[_0x282612]['id'];}else _0xdcde61[_0x18c508]['item']['startIndex']=_0x18c508,_0xdcde61[_0x18c508]['item']['endIndex']=_0x18c508,_0xdcde61[_0x18c508]['pairId']=null;}_0xdcde61[_0x18c508]['markersStart']||(_0xdcde61[_0x18c508]['markersStart']=[],_0xdcde61[_0x18c508]['markersEnd']=[]);}}['_markInsertions'](_0x35a7cc,_0x1efd62){const _0x5381d7=_0x35a7cc['filter'](_0x2e6eb0=>!_0x2e6eb0['isAdded']);for(let _0x204fbf=0x0;_0x204fbf<_0x1efd62['length'];_0x204fbf++)_0x1efd62[_0x204fbf]['isAdded']&&(_0x5381d7[_0x204fbf]['isAdded']=_0x1efd62[_0x204fbf]['isAdded']);}['_getDiff'](_0x315033,_0x3c497d=null){const _0x3ddf48=this['repository']['getRevision'](_0x315033),_0x41b3d9=_0x3c497d?this['repository']['getRevision'](_0x3c497d):null,_0x173a1e=this['_getRevisionsRange'](_0x3ddf48,_0x41b3d9),_0x5f4a48=_0x173a1e[_0x173a1e['length']-0x1],_0x48de66=new Map(),_0x427619={'model':{},'attributes':{},'changes':[]},_0x5b31fb=new Set(),_0x30fe1d=new Map();for(let _0x518941=_0x173a1e['length']-0x1;_0x518941>=0x0;_0x518941--){const _0x243a57=_0x173a1e[_0x518941];for(const _0x2b9593 of Object['keys'](_0x243a57['diffData']))if(_0x243a57['diffData'][_0x2b9593]['attachChange']){const _0x4a9ed1=_0x243a57['diffData'][_0x2b9593]['attachChange'];_0x4a9ed1['isAttached']?(_0x5b31fb['add'](_0x2b9593),_0x30fe1d['has'](_0x2b9593)&&_0x30fe1d['get'](_0x2b9593)['userId']==_0x4a9ed1['userId']?_0x30fe1d['delete'](_0x2b9593):_0x30fe1d['set'](_0x2b9593,_0x4a9ed1)):_0x30fe1d['has'](_0x2b9593)?(_0x5b31fb['delete'](_0x2b9593),_0x30fe1d['delete'](_0x2b9593)):(_0x5b31fb['add'](_0x2b9593),_0x30fe1d['set'](_0x2b9593,_0x4a9ed1));}else _0x5b31fb['add'](_0x2b9593);}for(const _0x35a090 of _0x5b31fb){const _0x1434b6=_0x30fe1d['has'](_0x35a090)&&!_0x30fe1d['get'](_0x35a090)['isAttached'];let _0x3a934a=_0x1434b6?_0x173a1e['length']-0x1:0x0;const _0x479a6e=_0x1434b6?-0x1:0x1;for(;_0x173a1e[_0x3a934a];){const _0x2b3b2b=_0x173a1e[_0x3a934a];if(_0x2b3b2b['diffData'][_0x35a090]){const _0x2e859a=_0x1434b6?_0x2b3b2b['diffData'][_0x35a090]['attributesBefore']:_0x2b3b2b['diffData'][_0x35a090]['attributesAfter'];_0x427619['attributes'][_0x35a090]=_0x2e859a?_0x1b7905(_0x2e859a):{};break;}_0x3a934a+=_0x479a6e;}}for(const _0x43e2c1 of _0x173a1e){_0x43e2c1['model']={};for(const _0x43464a of _0x43e2c1['authors'])_0x48de66['set'](_0x43464a['id'],_0x43464a);for(const _0x16b482 of _0x5b31fb){const _0xcac9b8=_0x43e2c1['diffData'][_0x16b482]?_0x43e2c1['diffData'][_0x16b482]['insertions']:'[]',_0x53aaba=_0x43e2c1['diffData'][_0x16b482]?_0x43e2c1['diffData'][_0x16b482]['deletions']:'[]';_0x43e2c1['model'][_0x16b482]={'insertions':this['_utils']['_makeModelFromViewString'](_0xcac9b8),'deletions':this['_utils']['_makeModelFromViewString'](_0x53aaba)};}}for(const _0x36ce4b of _0x5b31fb){let _0x214490=null,_0x30d72f=0x0;const _0x7d18fc=new Map(Array['from'](_0x3ddf48['model'][_0x36ce4b]['insertions']['markers'])['filter'](([_0x3b9e1f])=>!_0x3b9e1f['startsWith']('revision:')));let _0x4a2533=0x0;for(const _0x538f10 of _0x173a1e){const _0x42b506=this['_makeTape'](_0x538f10['model'][_0x36ce4b]['insertions']);_0x538f10==_0x3ddf48?(_0x214490=_0x42b506,_0x30d72f=_0x214490['length'],_0x214490['forEach'](_0x5d9314=>{_0x5d9314['id']=_0x4a2533++;}),this['_processTape'](_0x214490)):this['_markInsertions'](_0x214490,_0x42b506);const _0x24bac4=_0x214490['filter'](_0x4d949e=>!_0x4d949e['isAdded'])['map'](_0xe0de81=>_0xe0de81['id']);let _0x501e6d=0x0;const _0x3cef7e=this['_makeTape'](_0x538f10['model'][_0x36ce4b]['deletions']);_0x3cef7e['forEach'](_0x5abb7f=>{_0x5abb7f['isRemoved']?_0x5abb7f['id']=_0x30d72f++:_0x5abb7f['id']=_0x24bac4[_0x501e6d++];}),this['_processTape'](_0x3cef7e),this['_setDistance'](_0x214490,'isAdded'),this['_setDistance'](_0x3cef7e,'isRemoved'),_0x538f10==_0x3ddf48&&this['_markMarkers'](_0x214490,_0x7d18fc),_0x214490=this['_joinTapes'](_0x214490,_0x3cef7e),this['_refreshStartEndIndex'](_0x214490),this['_setDistance'](_0x214490,'isRemoved');}_0x214490=_0x214490['filter'](_0x4f349e=>!(_0x4f349e['isAdded']&&_0x4f349e['isRemoved']));const _0x2a5849=new Map(_0x5f4a48['model'][_0x36ce4b]['deletions']['markers']),_0x4b5cd5=new Set(_0x7d18fc['keys']());for(const _0x3d2848 of _0x2a5849['keys']())_0x4b5cd5['delete'](_0x3d2848);this['_markSuggestions'](_0x214490,_0x4b5cd5),this['_fixObsoleteTags'](_0x214490),_0x214490=this['_removeMissingPairs'](_0x214490),_0x214490=this['_markMismatchedRemovedTags'](_0x214490),_0x214490=this['_removeUnsupportedChanges'](_0x214490);const {root:_0x11cecb,changes:_0x533d22}=this['_makeModelFromTape'](_0x214490,_0x48de66,_0x36ce4b);_0x427619['model'][_0x36ce4b]=_0x11cecb;const _0x53abf0=_0x30fe1d['get'](_0x36ce4b);if(_0x53abf0){const _0x370804=_0x48de66['get'](_0x53abf0['userId']),_0x4d353e=new G({'author':_0x370804,'type':_0x53abf0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x36ce4b});_0x533d22['unshift'](_0x4d353e),_0x427619['attributes'][_0x36ce4b]['revisionHistoryAttachChange']=_0x4d353e['id'];}_0x427619['changes']=_0x427619['changes']['concat'](_0x533d22);}return _0x427619;}['_markMarkers'](_0x172eac,_0x12d2cb){for(let _0x424303=0x0;_0x424303<_0x172eac['length'];_0x424303++)for(const [_0x54cba,_0xeadaa1]of _0x12d2cb)!_0xeadaa1['isCollapsed']&&_0xeadaa1['start']['isEqual'](_0x172eac[_0x424303]['previousPosition'])&&_0x172eac[_0x424303]['markersStart']['push'](_0x54cba),_0xeadaa1['end']['isEqual'](_0x172eac[_0x424303]['nextPosition'])&&_0x172eac[_0x424303]['markersEnd']['push'](_0x54cba);}['_joinTapes'](_0x5d40af,_0x316968){let _0x48be85=[],_0x15503c=0x0,_0x508554=0x0;for(;_0x15503c<_0x5d40af['length']||_0x508554<_0x316968['length'];){const _0xb4c6c2=_0x5d40af[_0x15503c]||{},_0x5f1ed6=_0x316968[_0x508554]||{};if(_0xb4c6c2['id']==_0x5f1ed6['id'])_0x15503c++,_0x508554++,_0x48be85['push'](_0xb4c6c2);else{if(_0x5f1ed6['isRemoved']&&_0xb4c6c2['isAdded']){const {commonTape:_0x37e68a,iEnd:_0x5c17c8,jEnd:_0x21e64b}=this['_threeWayMerge'](_0x5d40af,_0x15503c,_0x316968,_0x508554);_0x48be85=_0x48be85['concat'](_0x37e68a),_0x15503c=_0x5c17c8,_0x508554=_0x21e64b;}else _0x5f1ed6['isRemoved']?(_0x508554++,_0x48be85['push'](_0x5f1ed6)):(_0x15503c++,_0x48be85['push'](_0xb4c6c2));}}return _0x48be85;}['_markSuggestions'](_0x3eef59,_0x47035f){const _0x26f2d2=[];for(let _0x2cbd5b=0x0;_0x2cbd5b<_0x3eef59['length'];_0x2cbd5b++){for(let _0xbfba5c=0x0;_0xbfba5c<_0x3eef59[_0x2cbd5b]['markersStart']['length'];_0xbfba5c++){const _0x5b2f34=_0x3eef59[_0x2cbd5b]['markersStart'][_0xbfba5c];if(!_0x47035f['has'](_0x5b2f34))continue;const {group:_0x1b13e8,type:_0x30c5a1,authorId:_0x17f08c}=_0x1dbd63(_0x5b2f34);'revision-suggestion'!=_0x1b13e8||'insertion'!=_0x30c5a1&&'deletion'!=_0x30c5a1||(_0x26f2d2['unshift']({'type':_0x30c5a1,'name':_0x5b2f34,'userId':_0x17f08c}),_0x3eef59[_0x2cbd5b]['markersStart']['splice'](_0xbfba5c,0x1),_0xbfba5c--);}_0x7c3e7c(_0x3eef59[_0x2cbd5b]);for(let _0x25fde2=0x0;_0x25fde2<_0x3eef59[_0x2cbd5b]['markersEnd']['length'];_0x25fde2++){const _0x4ff53d=_0x3eef59[_0x2cbd5b]['markersEnd'][_0x25fde2];if(!_0x47035f['has'](_0x4ff53d))continue;const {group:_0x21294c,type:_0x3ec0ce}=_0x1dbd63(_0x4ff53d);if('revision-suggestion'!=_0x21294c||'insertion'!=_0x3ec0ce&&'deletion'!=_0x3ec0ce)continue;_0x3eef59[_0x2cbd5b]['markersEnd']['splice'](_0x25fde2,0x1),_0x25fde2--;const _0x1c7e92=_0x26f2d2['findIndex'](_0x25816b=>_0x25816b['name']==_0x4ff53d);_0x1c7e92>-0x1&&_0x26f2d2['splice'](_0x1c7e92,0x1);}}function _0x1dbd63(_0x2ff069){const _0x3cfece=_0x2ff069['split'](':');return{'group':_0x3cfece[0x0],'type':_0x3cfece[0x1],'subType':_0x3cfece['length']>=0x5?_0x3cfece[0x2]:null,'id':_0x3cfece['length']<0x5?_0x3cfece[0x2]:_0x3cfece[0x3],'authorId':_0x3cfece['length']<0x5?_0x3cfece[0x3]:_0x3cfece[0x4],'markerCount':0x6==_0x3cfece['length']?_0x3cfece[0x5]:null};}function _0x7c3e7c(_0x3b6d58){for(let _0x2f8c7f=0x0;_0x2f8c7f<_0x26f2d2['length'];_0x2f8c7f++){if(_0x3b6d58['isAdded']&&'insertion'==_0x26f2d2[_0x2f8c7f]['type']&&_0x3b6d58['isAdded']['userId']==_0x26f2d2[_0x2f8c7f]['userId'])return _0x3b6d58['isAddSuggestion']=_0x26f2d2[_0x2f8c7f],void delete _0x3b6d58['isAdded'];if(!_0x3b6d58['isAdded']&&!_0x3b6d58['isRemoved']&&'deletion'==_0x26f2d2[_0x2f8c7f]['type'])return void(_0x3b6d58['isRemoveSuggestion']=_0x26f2d2[_0x2f8c7f]);}}}['_setDistance'](_0x3ebe76,_0x1a4dbc){let _0x41c437=0x0,_0x4fc7da=!0x1;const _0x2416a5=new Map();for(const _0x6d1798 of _0x3ebe76)_0x6d1798[_0x1a4dbc]?_0x4fc7da&&(_0x41c437++,_0x4fc7da=!0x1):(_0x41c437++,_0x4fc7da=!0x0),_0x2416a5['set'](_0x6d1798['id'],_0x41c437);for(let _0x2f29dd=0x0;_0x2f29dd<_0x3ebe76['length'];_0x2f29dd++){if('isRemoved'==_0x1a4dbc&&_0x3ebe76[_0x2f29dd]['isAdded']||'isAdded'==_0x1a4dbc&&_0x3ebe76[_0x2f29dd]['isRemoved'])continue;if('text'==_0x3ebe76[_0x2f29dd]['type']){_0x3ebe76[_0x2f29dd]['distance']=0x0;continue;}const _0x17f96a=_0x2416a5['get'](_0x3ebe76[_0x2f29dd]['pairId']),_0x4b121c=_0x2416a5['get'](_0x3ebe76[_0x2f29dd]['id']);_0x3ebe76[_0x2f29dd]['distance']=_0x17f96a-_0x4b121c;}}['_getRevisionsRange'](_0x45d539,_0x432693,_0x292361=!0x1){const _0x4b0d5b=[];let _0x10c10c=this['repository']['getIndex'](_0x45d539),_0x49cffe=this['repository']['getIndex'](_0x432693);for(-0x1==_0x49cffe&&(_0x49cffe=this['repository']['_revisions']['length'],_0x292361=!0x1);_0x10c10c<_0x49cffe;)_0x4b0d5b['push'](this['repository']['getRevision'](_0x10c10c)),_0x10c10c++;return _0x292361&&_0x4b0d5b['push'](this['repository']['getRevision'](_0x10c10c)),_0x4b0d5b;}['_threeWayMerge'](_0x356ddc,_0x1555a1,_0x1e79e7,_0x2e1dfc){const _0x2936b4=this['editor']['model']['schema'];let _0x36aa31=_0x1555a1;for(;_0x356ddc[_0x36aa31]&&_0x356ddc[_0x36aa31]['isAdded'];)_0x36aa31++;let _0x2baad4=_0x2e1dfc;for(;_0x1e79e7[_0x2baad4]&&_0x1e79e7[_0x2baad4]['isRemoved'];)_0x2baad4++;_0x38b24a(_0x356ddc,_0x1555a1,_0x36aa31),_0x38b24a(_0x1e79e7,_0x2e1dfc,_0x2baad4);const _0x3868fc=_0x1e79e7['slice'](_0x2e1dfc,_0x2baad4)['concat'](_0x356ddc['slice'](_0x1555a1,_0x36aa31));return _0x3868fc['sort']((_0x541d4a,_0xd66e47)=>_0x541d4a['side']!=_0xd66e47['side']?_0x541d4a['side']-_0xd66e47['side']:_0x541d4a['level']!=_0xd66e47['level']?_0x541d4a['level']-_0xd66e47['level']:_0x541d4a['distance']!=_0xd66e47['distance']?_0xd66e47['distance']-_0x541d4a['distance']:!!_0x541d4a['isAdded']!=!!_0xd66e47['isAdded']?-0x1==_0x541d4a['side']||0x0==_0x541d4a['side']?_0x541d4a['isAdded']?-0x1:0x1:_0x541d4a['isAdded']?0x1:-0x1:_0x541d4a['index']-_0xd66e47['index']),{'commonTape':_0x3868fc,'iEnd':_0x36aa31,'jEnd':_0x2baad4};function _0x38b24a(_0x5bb3fc,_0x366d66,_0x3e0d87){let _0x7fa125=-0x1,_0x28ffc9=Number['POSITIVE_INFINITY'],_0x162317=!0x0;for(let _0x170b92=_0x366d66;_0x170b92<_0x3e0d87;_0x170b92++)if(_0x2936b4['isInline'](_0x5bb3fc[_0x170b92]['item'])||(_0x162317=!0x1),_0x5bb3fc[_0x170b92]['item']['startIndex']<_0x366d66&&(_0x7fa125=_0x170b92),_0x5bb3fc[_0x170b92]['item']['endIndex']>=_0x3e0d87){_0x28ffc9=_0x170b92;break;}_0x162317&&(_0x7fa125=_0x3e0d87-0x1);for(let _0x1c057c=_0x366d66;_0x1c057c<_0x3e0d87;_0x1c057c++)_0x5bb3fc[_0x1c057c]['side']=_0x1c057c<=_0x7fa125?-0x1:_0x1c057c<_0x28ffc9?0x0:0x1,_0x5bb3fc[_0x1c057c]['index']=_0x1c057c;let _0xb15cca=0x0;for(let _0x1b422a=_0x366d66;_0x1b422a<=_0x7fa125;_0x1b422a++)0x0==_0x5bb3fc[_0x1b422a]['distance']?_0x5bb3fc[_0x1b422a]['level']=_0xb15cca:(_0xb15cca++,_0x5bb3fc[_0x1b422a]['level']=_0xb15cca,_0xb15cca++);for(let _0x398ae2=_0x366d66;_0x398ae2<_0x3e0d87;_0x398ae2++)0x0==_0x5bb3fc[_0x398ae2]['side']&&(_0x5bb3fc[_0x398ae2]['level']=_0xb15cca);_0xb15cca=0x0;for(let _0x5ba034=_0x3e0d87-0x1;_0x5ba034>=_0x28ffc9;_0x5ba034--)0x0==_0x5bb3fc[_0x5ba034]['distance']?_0x5bb3fc[_0x5ba034]['level']=_0xb15cca:(_0xb15cca--,_0x5bb3fc[_0x5ba034]['level']=_0xb15cca,_0xb15cca--);}}['_fixObsoleteTags'](_0x2467aa){const _0x444ac6=new Map(),_0x32e2b9=this['editor']['model']['schema'];for(let _0x4bcc55=0x1;_0x4bcc55<_0x2467aa['length'];_0x4bcc55++){let _0x1c7556,_0x40f75c,_0x574556;const _0x9a4fcc=_0x2467aa[_0x4bcc55],_0x3b2ca2=_0x2467aa[_0x4bcc55-0x1];if('text'==_0x9a4fcc['type'])continue;if(_0x9a4fcc['type']!=_0x3b2ca2['type'])continue;if(!_0x32e2b9['isBlock'](_0x3b2ca2['item'])||_0x32e2b9['isLimit'](_0x3b2ca2['item']))continue;if(!_0x32e2b9['isBlock'](_0x9a4fcc['item'])||_0x32e2b9['isLimit'](_0x9a4fcc['item']))continue;if((_0x2467aa[_0x4bcc55]['isAdded']||_0x2467aa[_0x4bcc55]['isAddSuggestion'])&&_0x2467aa[_0x4bcc55-0x1]['isRemoved'])_0x1c7556=_0x2467aa[_0x4bcc55],_0x40f75c=_0x2467aa[_0x4bcc55-0x1],_0x574556=_0x4bcc55-0x1;else{if(!_0x2467aa[_0x4bcc55]['isRemoved']||!_0x2467aa[_0x4bcc55-0x1]['isAdded']&&!_0x2467aa[_0x4bcc55-0x1]['isAddSuggestion'])continue;_0x1c7556=_0x2467aa[_0x4bcc55-0x1],_0x40f75c=_0x2467aa[_0x4bcc55],_0x574556=_0x4bcc55;}const _0xa97c82=_0x1c7556['level']==_0x40f75c['level'],_0x2f3c4b=Math['abs'](_0x1c7556['level'])<Math['abs'](_0x40f75c['level'])&&0x0==_0x40f75c['distance'];(_0xa97c82||_0x2f3c4b)&&(_0x444ac6['set'](_0x40f75c['id'],_0x1c7556['id']),_0x2467aa['splice'](_0x574556,0x1),_0x4bcc55--,_0x1c7556['isAdded']=!0x1);}for(let _0x3023fa=0x0;_0x3023fa<_0x2467aa['length'];_0x3023fa++)_0x444ac6['has'](_0x2467aa[_0x3023fa]['pairId'])&&(_0x2467aa[_0x3023fa]['pairId']=_0x444ac6['get'](_0x2467aa[_0x3023fa]['pairId']));}['_removeMissingPairs'](_0x156d74){const _0x306ca3=new Set(_0x156d74['map'](_0x389ad3=>_0x389ad3['id']));for(let _0xe0614a=0x0;_0xe0614a<_0x156d74['length'];_0xe0614a++)_0x306ca3['has'](_0x156d74[_0xe0614a]['pairId'])||0x0==_0x156d74[_0xe0614a]['distance']||(_0x156d74[_0xe0614a]['isIncorrect']=!0x0);return _0x156d74['filter'](_0x510a5f=>!_0x510a5f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1db2ed){const _0x4c79bc=new Set();for(let _0x320109=0x0;_0x320109<_0x1db2ed['length'];_0x320109++){if(_0x4c79bc['has'](_0x1db2ed[_0x320109]['id'])&&_0x1db2ed[_0x320109]['isRemoved']&&(_0x1db2ed[_0x320109]['isIncorrect']=!0x0),_0x1db2ed[_0x320109]['isIncorrect'])continue;if(0x0==_0x1db2ed[_0x320109]['distance'])continue;if('elementStart'!=_0x1db2ed[_0x320109]['type'])continue;if(null==_0x1db2ed[_0x320109]['pairId'])continue;let _0x443da5=_0x320109+0x1,_0x46bdb4=0x0;for(;_0x1db2ed[_0x443da5]['id']!=_0x1db2ed[_0x320109]['pairId'];)'elementStart'==_0x1db2ed[_0x443da5]['type']?_0x46bdb4++:'elementEnd'==_0x1db2ed[_0x443da5]['type']&&_0x46bdb4--,_0x443da5++;if(0x0!=_0x46bdb4){if(_0x1db2ed[_0x320109]['isRemoved'])_0x1db2ed[_0x320109]['isIncorrect']=!0x0;else{for(;_0x443da5!=_0x320109;)_0x1db2ed[_0x443da5]['isRemoved']&&0x0!=_0x1db2ed[_0x443da5]['distance']&&(_0x1db2ed[_0x443da5]['isIncorrect']=!0x0,_0x4c79bc['add'](_0x1db2ed[_0x443da5]['pairId'])),_0x443da5--;}}}return _0x1db2ed['filter'](_0x142531=>!_0x142531['isIncorrect']);}['_removeUnsupportedChanges'](_0x337ad1){const _0xd47f0a=this['editor']['model']['schema'];for(let _0x16aa80=0x0;_0x16aa80<_0x337ad1['length'];_0x16aa80++){if(!(_0x337ad1[_0x16aa80]['isAdded']||_0x337ad1[_0x16aa80]['isAddSuggestion']||_0x337ad1[_0x16aa80]['isRemoved']||_0x337ad1[_0x16aa80]['isRemoveSuggestion']))continue;if(0x0==_0x337ad1[_0x16aa80]['distance'])continue;const _0x4f4ebf=_0x337ad1[_0x16aa80]['item'];_0xd47f0a['isBlock'](_0x4f4ebf)||_0xd47f0a['isLimit'](_0x4f4ebf)||(_0x337ad1[_0x16aa80]['isAdded']&&delete _0x337ad1[_0x16aa80]['isAdded'],_0x337ad1[_0x16aa80]['isAddSuggestion']&&delete _0x337ad1[_0x16aa80]['isAddSuggestion'],_0x337ad1[_0x16aa80]['isRemoveSuggestion']&&delete _0x337ad1[_0x16aa80]['isRemoveSuggestion'],_0x337ad1[_0x16aa80]['isRemoved']&&(_0x337ad1[_0x16aa80]['isIncorrect']=!0x0));}return _0x337ad1['filter'](_0x4c2041=>!_0x4c2041['isIncorrect']);}['_makeModelFromTape'](_0x801ef9,_0x3ab5b8,_0x1da8a9){const _0x1ee25f=new _0x4e8f13(),_0x5b96b5=[],_0x2045b2=new Map(),_0x5f05c3=this['editor']['model'],_0x2f1f82=_0x5f05c3['schema'],_0x26ce89=[_0x1ee25f],_0x40e695={},_0x2bd962={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x438f6c=null;const _0x4f4913=[0x0];for(let _0x487245=0x0;_0x487245<_0x801ef9['length'];_0x487245++)if('elementStart'===_0x801ef9[_0x487245]['type']){_0x801ef9[_0x487245]['previousPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913);const _0x1a5f90=new _0x1e1cab(_0x801ef9[_0x487245]['item']['name'],_0x801ef9[_0x487245]['item']['getAttributes']());_0x26ce89[0x0]['_appendChild'](_0x1a5f90),_0x4f4913['push'](0x0),_0x26ce89['unshift'](_0x1a5f90),_0x801ef9[_0x487245]['nextPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913);}else'elementEnd'===_0x801ef9[_0x487245]['type']?(_0x26ce89['shift'](),_0x801ef9[_0x487245]['previousPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913),_0x4f4913['pop'](),_0x4f4913[_0x4f4913['length']-0x1]++,_0x801ef9[_0x487245]['nextPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913)):(_0x801ef9[_0x487245]['previousPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913),_0x438f6c?_0x438f6c['_data']+=_0x801ef9[_0x487245]['item']['data']:_0x438f6c=new _0x40e779(_0x801ef9[_0x487245]['item']['data'],_0x801ef9[_0x487245]['item']['getAttributes']()),_0x801ef9[_0x487245+0x1]&&'text'===_0x801ef9[_0x487245+0x1]['type']&&_0x1f62ba(_0x438f6c,_0x801ef9[_0x487245+0x1]['item'])||(_0x26ce89[0x0]['_appendChild'](_0x438f6c),_0x438f6c=null),_0x4f4913[_0x4f4913['length']-0x1]+=_0x801ef9[_0x487245]['item']['offsetSize'],_0x801ef9[_0x487245]['nextPosition']=_0x5f05c3['createPositionFromPath'](_0x1ee25f,_0x4f4913));for(let _0xda1126=0x0;_0xda1126<_0x801ef9['length'];_0xda1126++){const _0x4a4c62=_0x801ef9[_0xda1126]['previousPosition'],_0x568c34=_0x801ef9[_0xda1126]['nextPosition'];for(const _0xb0bf79 of _0x801ef9[_0xda1126]['markersStart'])_0x2045b2['set'](_0xb0bf79,{'start':_0x4a4c62,'end':null});_0x282471('isRemoveSuggestion',_0xda1126,_0x4a4c62,_0x568c34),_0x282471('isAddSuggestion',_0xda1126,_0x4a4c62,_0x568c34),_0x282471('isRemoved',_0xda1126,_0x4a4c62,_0x568c34),_0x282471('isAdded',_0xda1126,_0x4a4c62,_0x568c34);for(const _0x11182f of _0x801ef9[_0xda1126]['markersEnd']){const _0x4b14f9=_0x2045b2['get'](_0x11182f);_0x4b14f9?_0x4b14f9['end']=_0x568c34:_0x2045b2['set'](_0x11182f,{'start':_0x568c34,'end':_0x568c34});}}for(const [_0x1cfa9a,_0x4097f1]of _0x2045b2){const _0x47f3cb=this['editor']['model']['createRange'](_0x4097f1['start'],_0x4097f1['end']);_0x1ee25f['markers']['set'](_0x1cfa9a,_0x47f3cb);}return _0x5b96b5['sort']((_0x4c6ace,_0x2b6658)=>{const _0x23406b=_0x1ee25f['markers']['get']('revision:'+_0x4c6ace['id']),_0x311943=_0x1ee25f['markers']['get']('revision:'+_0x2b6658['id']);return _0x23406b['start']['isBefore'](_0x311943['start'])?-0x1:_0x23406b['start']['isAfter'](_0x311943['start'])?0x1:_0x23406b['end']['isBefore'](_0x311943['end'])?-0x1:_0x23406b['end']['isAfter'](_0x311943['end'])?0x1:'add'===_0x4c6ace['type']?-0x1:0x1;}),{'root':_0x1ee25f,'changes':_0x5b96b5};function _0x282471(_0x1eafe2,_0x2e81c0,_0x424acf,_0xb78aeb){const _0x2ba102=!!_0x801ef9[_0x2e81c0][_0x1eafe2],_0x3afdef=_0x2ba102?_0x801ef9[_0x2e81c0][_0x1eafe2]['userId']:null,_0x3a1484=_0x2e81c0===_0x801ef9['length']-0x1,_0x875084=_0x2bd962[_0x1eafe2][0x0],_0x592fe1=_0x2f1f82['isObject'](_0x801ef9[_0x2e81c0]['item']);!_0x40e695[_0x1eafe2]&&_0x2ba102?_0x40e695[_0x1eafe2]={'start':_0x424acf,'tapeItem':_0x801ef9[_0x2e81c0],'userId':_0x3afdef,'type':_0x1eafe2}:_0x40e695[_0x1eafe2]&&!_0x2ba102?(_0x40e695[_0x1eafe2]['end']=_0x424acf,_0x1c3efc(_0x40e695[_0x1eafe2]),_0x40e695[_0x1eafe2]=null):_0x40e695[_0x1eafe2]&&_0x2ba102&&_0x40e695[_0x1eafe2]['userId']!==_0x3afdef&&(_0x40e695[_0x1eafe2]['end']=_0x424acf,_0x875084&&_0x875084['userId']===_0x40e695[_0x1eafe2]['userId']||_0x1c3efc(_0x40e695[_0x1eafe2]),_0x40e695[_0x1eafe2]={'start':_0x424acf,'tapeItem':_0x801ef9[_0x2e81c0],'userId':_0x3afdef,'type':_0x1eafe2}),_0x40e695[_0x1eafe2]&&_0x592fe1&&('elementStart'!==_0x801ef9[_0x2e81c0]['type']||_0x875084&&_0x875084['userId']===_0x3afdef||_0x2bd962[_0x1eafe2]['unshift']({'userId':_0x3afdef,'object':_0x801ef9[_0x2e81c0]['item'],'change':_0x40e695[_0x1eafe2]}),'elementEnd'===_0x801ef9[_0x2e81c0]['type']&&_0x875084&&_0x875084['object']===_0x801ef9[_0x2e81c0]['item']&&(_0x2bd962[_0x1eafe2]['shift'](),_0x40e695[_0x1eafe2]=_0x875084['change'])),_0x40e695[_0x1eafe2]&&_0x3a1484&&(_0x40e695[_0x1eafe2]['end']=_0xb78aeb,_0x1c3efc(_0x40e695[_0x1eafe2]),_0x40e695[_0x1eafe2]=null);}function _0x1c3efc({start:_0x355c42,end:_0xe66c5f,tapeItem:_0x219ded,userId:_0x6bacfb,type:_0x487f13}){const _0x214461=_0x219ded['item'],_0x24e3dd=_0x5f05c3['schema']['isBlock'](_0x214461)&&!_0x5f05c3['schema']['isLimit'](_0x214461),_0x128980=_0x355c42['nodeAfter']==_0xe66c5f['parent']&&_0xe66c5f['isAtStart'];if(_0x24e3dd&&_0x128980)return;const _0x233d1a=_0x5f05c3['createRange'](_0x355c42,_0xe66c5f),_0x338dff=_0x3ab5b8['get'](_0x6bacfb),_0x131486=new G({'author':_0x338dff,'type':'isAdded'==_0x487f13||'isAddSuggestion'==_0x487f13?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x487f13||'isRemoveSuggestion'==_0x487f13},'createdAt':new Date(),'rootName':_0x1da8a9});_0x5b96b5['push'](_0x131486),_0x1ee25f['markers']['set']('revision:'+_0x131486['id'],_0x233d1a);}function _0x1f62ba(_0x1a4404,_0xf3a614){const _0x4ea7f8=_0x1a4404['getAttributes'](),_0x1ffbca=_0xf3a614['getAttributes']();for(const _0x5c8748 of _0x4ea7f8){if(_0x5c8748[0x1]!==_0xf3a614['getAttribute'](_0x5c8748[0x0]))return!0x1;_0x1ffbca['next']();}return _0x1ffbca['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1530e8=>{const _0x122fd9=_0x1530e8['markerName']['split'](':')[0x1],_0x2038b5=this['_getChangeFromId'](_0x122fd9);if(!_0x2038b5)return null;const _0x332f93='add'==_0x2038b5['type']?'insertion':'deletion',_0x1ed2af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x332f93];return _0x2038b5['data']['isSuggestion']&&_0x1ed2af['push']('ck-suggestion-marker-'+_0x332f93+'-new'),this['activeChange']==_0x2038b5&&_0x1ed2af['push']('ck-suggestion-marker--active'),{'classes':_0x1ed2af,'attributes':{'data-change-id':_0x122fd9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2ddafc=>{_0x2ddafc['on']('element:pre',(_0x1b0f5f,_0x478d78,_0x42f99d)=>{const _0x1ff696=_0x478d78['viewItem']['getChild'](0x0);if(!_0x1ff696||!_0x1ff696['is']('element','code'))return;if(!_0x42f99d['consumable']['consume'](_0x1ff696,{'attributes':['vid_start','vid_end']}))return;const _0x1a2c9f=_0x478d78['modelRange']['start']['nodeAfter'];_0x42f99d['writer']['setAttribute']('vid_start',_0x1ff696['getAttribute']('vid_start'),_0x1a2c9f),_0x42f99d['writer']['setAttribute']('vid_end',_0x1ff696['getAttribute']('vid_end'),_0x1a2c9f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5ac684=>{_0x5ac684['on']('element',(_0x474061,_0x22119a,_0xfb215e)=>{if(!_0xfb215e['consumable']['consume'](_0x22119a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x22119a['modelRange']['isCollapsed'])return;const _0x53298f=_0x22119a['modelRange']['start']['nodeAfter'];_0x53298f['hasAttribute']('vid_start')||_0x53298f['hasAttribute']('vid')||(_0xfb215e['writer']['setAttribute']('vid_start',_0x22119a['viewItem']['getAttribute']('vid_start'),_0x53298f),_0xfb215e['writer']['setAttribute']('vid_end',_0x22119a['viewItem']['getAttribute']('vid_end'),_0x53298f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2f992e=>_0x2f992e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1a45f2,[,_0x55aabb])=>{['vid_start','vid_end','vid']['includes'](_0x55aabb)&&(_0x1a45f2['return']=!0x0,_0x1a45f2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5a9f48=>{_0x5a9f48['on']('attribute:vid',(_0x2e86a6,_0x1180ed,_0x18c235)=>{if('\x20'!=_0x1180ed['item']['data']||_0x1180ed['item']['parent']['maxOffset']>0x1)return;if(!_0x18c235['consumable']['consume'](_0x1180ed['item'],_0x2e86a6['name']))return;const _0x268dc9=_0x18c235['writer'],_0x58eec5=_0x18c235['mapper']['toViewRange'](_0x1180ed['range']);_0x268dc9['wrap'](_0x58eec5,_0x268dc9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4bf90f){const _0x2935b7=_0x4bf90f['plugins']['get']('RevisionViewer');return(_0x5da957,_0xa47c93,_0x3d69f7)=>{const _0x15d211=_0xa47c93['markerName']['split'](':')[0x1],_0x1ec597=_0x2935b7['_getChangeFromId'](_0x15d211);if(!_0x1ec597)return null;const _0x200323='add'==_0x1ec597['type']?'split':'merge';if(!_0x3d69f7['consumable']['test'](_0xa47c93['markerRange'],_0x5da957['name']))return;const _0x597495=_0xa47c93['markerRange']['getWalker'](),_0x5933cd=_0xa47c93['markerRange']['start'],_0x192285=_0x4bf90f['model']['schema'];let _0x26e6bf=null,_0xf279f=null,_0x8f8db3=!0x1,_0x35fcc9=!0x1;for(const _0xdd98b0 of _0x597495){const _0x772cce=_0xdd98b0['item'];_0x8f8db3=_0x8f8db3||_0x192285['isContent'](_0x772cce);const _0x23e86f=_0x3d69f7['mapper']['toViewElement'](_0x772cce);if(_0x23e86f&&_0x23e86f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdd98b0['type']&&(_0x192285['isBlock'](_0x772cce)&&!_0x192285['isLimit'](_0x772cce)&&(_0x772cce['nextSibling']||_0x5933cd['isAtEnd']?_0x26e6bf&&_0x26e6bf['parent']==_0x772cce||(_0x26e6bf=_0x772cce,_0x4dab2c(_0xdd98b0['previousPosition']),_0x35fcc9=!0x0):_0xf279f=_0xf279f||_0xdd98b0['previousPosition']));}function _0x4dab2c(_0x337240){const _0xa046ac=_0x3d69f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x200323}),_0x4dac03=_0x3d69f7['mapper']['toViewPosition'](_0x337240);_0x1ec597['data']['isSuggestion']&&_0x3d69f7['writer']['addClass']('ck-suggestion-marker-'+_0x200323+'-new',_0xa046ac),_0x2935b7['activeChange']==_0x1ec597&&_0x3d69f7['writer']['addClass']('ck-suggestion-marker--active',_0xa046ac),_0x3d69f7['writer']['insert'](_0x4dac03,_0xa046ac),_0x3d69f7['mapper']['bindElementToMarker'](_0xa046ac,_0xa47c93['markerName']);}_0x8f8db3||_0x35fcc9||!_0xf279f||_0x4dab2c(_0xf279f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19601a,_0x457409,_0x1e56fb)=>{const _0x4eaf38=_0x1e56fb['mapper']['markerNameToElements'](_0x457409['markerName']);if(_0x4eaf38){for(const _0x341096 of _0x4eaf38)(_0x341096['hasClass']('ck-suggestion-marker-split')||_0x341096['hasClass']('ck-suggestion-marker-merge'))&&(_0x1e56fb['mapper']['unbindElementFromMarkerName'](_0x341096,_0x457409['markerName']),_0x1e56fb['writer']['remove'](_0x341096));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5e505f,_0x196e87,_0x1cc88e)=>{const _0x3ab32f=_0x196e87['markerName']['split'](':')[0x1],_0x399544=this['_getChangeFromId'](_0x3ab32f);if(!_0x399544)return null;const _0x19b239='add'==_0x399544['type']?'split':'merge';if(_0x1cc88e['consumable']['test'](_0x196e87['markerRange'],_0x5e505f['name']))for(const _0x57b4e2 of _0x196e87['markerRange']['getItems']()){if(!_0x57b4e2['is']('element','softBreak'))continue;const _0x13c252=_0x1cc88e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19b239}),_0x1d3ad5=_0x1cc88e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x57b4e2));_0x399544['data']['isSuggestion']&&_0x1cc88e['writer']['addClass']('ck-suggestion-marker-'+_0x19b239+'-new',_0x13c252),this['activeChange']==_0x399544&&_0x1cc88e['writer']['addClass']('ck-suggestion-marker--active',_0x13c252),_0x1cc88e['writer']['insert'](_0x1d3ad5,_0x13c252),_0x1cc88e['mapper']['bindElementToMarker'](_0x13c252,_0x196e87['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3de849=>{for(const _0x1f0bb4 of this['editor']['model']['document']['getRootNames']()){const _0x86af21=this['editor']['model']['document']['getRoot'](_0x1f0bb4),_0x32cefa=this['editor']['editing']['view']['document']['getRoot'](_0x1f0bb4);if(_0x32cefa){const _0x2c39e5=_0x86af21['getAttribute']('revisionHistoryAttachChange');if(_0x3de849['removeAttribute']('data-change-id',_0x32cefa),_0x3de849['removeClass']('ck-revision-history-root-add',_0x32cefa),_0x3de849['removeClass']('ck-revision-history-root-remove',_0x32cefa),_0x3de849['removeClass']('ck-revision-history-root--active',_0x32cefa),_0x2c39e5){const _0x4d9496=this['_getChangeFromId'](_0x2c39e5);if(!_0x4d9496)return null;_0x3de849['setAttribute']('data-change-id',_0x2c39e5,_0x32cefa),_0x3de849['addClass']('ck-revision-history-root-'+_0x4d9496['type'],_0x32cefa),this['activeChange']==_0x4d9496&&_0x3de849['addClass']('ck-revision-history-root--active',_0x32cefa);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4361bd=>'revision-comment:'+_0x4361bd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x48fefb=>'revision-suggestion:'+_0x48fefb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34b69f=>({'name':'suggestion:'+_0x34b69f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x10a9c5=>{const _0x462add=_0x10a9c5['markerName']['split'](':')[0x1];return'insertion'!=_0x462add&&'deletion'!=_0x462add?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x462add]};}}),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',(_0x5352f8,_0x9f62e1,_0x48306a)=>{const _0x290de0=_0x48306a['mapper']['markerNameToElements'](_0x9f62e1['markerName']);if(_0x290de0){for(const _0x5523c3 of _0x290de0)_0x5523c3['is']('uiElement')&&(_0x48306a['mapper']['unbindElementFromMarkerName'](_0x5523c3,_0x9f62e1['markerName']),_0x48306a['writer']['remove'](_0x5523c3));}},{'priority':'high'});}['_getChangeFromId'](_0xeed449){return this['_changeIdToChange']['get'](_0xeed449);}['_getViewForChange'](_0x395dd9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x395dd9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3725ce,_0x35685d,_0x5bb1d6,_0x3338e0)=>{_0x3338e0&&this['_balloon']['remove'](_0x3338e0),_0x5bb1d6&&(this['_balloon']['add']({'view':_0x5bb1d6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x243092=this['editor']['editing'],_0x3bc5e6=this['_getChangeFromId'](_0x5bb1d6['changeId']);let _0x15b5ed;if(_0x3bc5e6['data']['isOnRoot']){const _0x347416=_0x243092['view']['getDomRoot'](_0x3bc5e6['rootName']);_0x15b5ed=Array['from'](_0x347416['getClientRects']());}else{const _0x573458=this['editor']['model']['markers']['get']('revision:'+_0x5bb1d6['changeId']);_0x15b5ed=Array['from'](_0x243092['mapper']['markerNameToElements'](_0x573458['name']))['map'](_0x12ad22=>_0x243092['view']['domConverter']['mapViewToDom'](_0x12ad22))['map'](_0x1ebf89=>Array['from'](_0x1ebf89['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x15b5ed[0x0];return _0x15b5ed['find'](_0x48d9b0=>_0x48d9b0['top']-0x3<=this['_activeViewTarget']['y']&&_0x48d9b0['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x48d9b0['left']-0x3<=this['_activeViewTarget']['x']&&_0x48d9b0['right']+0x3>=this['_activeViewTarget']['x'])||_0x15b5ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1a527a,_0x4d6b1f,_0x1b18fd,_0x5acd85)=>{this['activeView']=_0x1b18fd?this['_getViewForChange'](_0x1b18fd):null,this['editor']['model']['change'](()=>{const _0x2581f3=this['editor']['editing'];_0x5acd85&&(_0x5acd85['data']['isOnRoot']?_0x2581f3['view']['change'](_0x5b8ed5=>{_0x5b8ed5['removeClass']('ck-revision-history-root--active',_0x2581f3['view']['document']['getRoot'](_0x5acd85['rootName']));}):_0x2581f3['reconvertMarker']('revision:'+_0x5acd85['id'])),_0x1b18fd&&(_0x1b18fd['data']['isOnRoot']?_0x2581f3['view']['change'](_0x3eb246=>{_0x3eb246['addClass']('ck-revision-history-root--active',_0x2581f3['view']['document']['getRoot'](_0x1b18fd['rootName']));}):_0x2581f3['reconvertMarker']('revision:'+_0x1b18fd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x340fbf,_0x26110e)=>{if(this['activeChange'])return;const _0x3cbb91=this['_findChangeIdFromDomTarget'](_0x26110e['target']),_0x2f73bd=this['_changeIdToChange']['get'](_0x3cbb91);_0x2f73bd?(this['_activeViewTarget']={'x':_0x26110e['domEvent']['x'],'y':_0x26110e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2f73bd)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x585c85,_0x296c70)=>{const _0x4add45=this['_findChangeIdFromDomTarget'](_0x296c70['target']),_0x509f7a=this['_changeIdToChange']['get'](_0x4add45);_0x509f7a?(this['_activeViewTarget']={'x':_0x296c70['domEvent']['x'],'y':_0x296c70['domEvent']['y']},_0x509f7a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x509f7a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x560979){do{const _0x51a6ad=_0x560979['getAttribute']('data-change-id');if(_0x51a6ad)return _0x51a6ad;_0x560979=_0x560979['parent'];}while(_0x560979);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2dcd2c=>{for(const _0x54079d of this['editor']['model']['markers'])_0x2dcd2c['removeMarker'](_0x54079d);});}}function Q(_0x475cfc,_0x295c78){return(_0x461daf,_0x4f66f3,_0x9ca50)=>{if(!_0x9ca50['consumable']['test'](_0x4f66f3['markerRange'],_0x461daf['name']))return;const _0x1d897=_0x4f66f3['markerRange']['getWalker'](),_0x55e9f3=_0x4f66f3['markerRange']['start'],_0x5a8eed=_0x475cfc['model']['schema'];let _0x51e500=null,_0x15181e=null,_0x335f44=!0x1,_0x4f4fa4=!0x1;for(const _0x51cb03 of _0x1d897){const _0x39a30c=_0x51cb03['item'];_0x335f44=_0x335f44||_0x5a8eed['isContent'](_0x39a30c);const _0x5960b2=_0x9ca50['mapper']['toViewElement'](_0x39a30c);if(_0x5960b2&&_0x5960b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51cb03['type']&&(_0x5a8eed['isBlock'](_0x39a30c)&&!_0x5a8eed['isLimit'](_0x39a30c)&&(_0x39a30c['nextSibling']||_0x55e9f3['isAtEnd']?_0x51e500&&_0x51e500['parent']==_0x39a30c||(_0x51e500=_0x39a30c,_0x1c376b(_0x51cb03['previousPosition']),_0x4f4fa4=!0x0):_0x15181e=_0x15181e||_0x51cb03['previousPosition']));}function _0x1c376b(_0x3ca030){const _0xfb0090=_0x9ca50['mapper']['toViewPosition'](_0x3ca030),_0xd383bf=_0x9ca50['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x295c78});_0x9ca50['writer']['insert'](_0xfb0090,_0xd383bf),_0x9ca50['mapper']['bindElementToMarker'](_0xd383bf,_0x4f66f3['markerName']);}_0x335f44||_0x4f4fa4||!_0x15181e||_0x1c376b(_0x15181e);};}class nt extends _0x29ff85{constructor(_0x3ccec7){super(_0x3ccec7);const _0x1cae02=_0x3ccec7['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1cae02,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1cae02,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x9d2d6a=this['editor'],_0x20c1e3=_0x9d2d6a['plugins']['get'](u),_0x3ba665=_0x20c1e3['isReady']?_0x20c1e3['diff']['newRevisionId']:null;_0x9d2d6a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ba665);}['refresh'](){const {isReady:_0x104160,isEnabled:_0x5599cf,repository:_0x5105db,diff:_0x36d04d}=this['editor']['plugins']['get'](u),_0x5e278a=_0x36d04d&&_0x5105db['getLaterVisibleRevision'](_0x36d04d['newRevisionId']);this['isEnabled']=_0x104160&&_0x5599cf&&Boolean(_0x5e278a);}}class rt extends _0x29ff85{['_step'];constructor(_0x24b1b6,{direction:_0x5ab541}){super(_0x24b1b6);const _0x493b3c=_0x24b1b6['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5ab541?0x1:-0x1,this['listenTo'](_0x493b3c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x493b3c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x493b3c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x27c3ad=this['editor'],_0x2344c6=_0x27c3ad['plugins']['get'](u),{isNavigationMode:_0x2d3099,currentChangeNumber:_0x3eb607}=_0x2344c6;let _0x2bcf2c;if(_0x2344c6['activeChange']=_0x2d3099?_0x2344c6['diff']['changes']['get'](_0x3eb607+this['_step']):_0x2344c6['diff']['changes']['first'],_0x2344c6['activeChange']['data']['isOnRoot'])_0x2bcf2c=_0x27c3ad['editing']['view']['getDomRoot'](_0x2344c6['activeChange']['rootName']);else{const _0x5bc90d=_0x27c3ad['model']['markers']['get']('revision:'+_0x2344c6['activeChange']['id']);_0x2bcf2c=_0x40782c(_0x27c3ad['editing'],_0x5bc90d);}_0x56d7a4({'target':_0x2bcf2c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1ae8d1,currentChangeNumber:_0x5a97fd,numberOfChanges:_0xb6db51,isReady:_0xaceb9e,isEnabled:_0x1f9ff0}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x1f9ff0&&_0xaceb9e&&_0xb6db51)&&(!_0x1ae8d1||(0x1===this['_step']?_0x5a97fd<_0xb6db51-0x1:_0x5a97fd>0x0));}}class Ri extends _0x1e10ae{constructor(_0x4ff6e1){super(_0x4ff6e1);const _0x29cd12=this['bindTemplate'],_0x33babb=new _0x5eae90(_0x4ff6e1),_0x27d827=new _0x5eae90(_0x4ff6e1);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',(_0xac3ddc,_0x2aaf3a)=>_0xac3ddc&&_0x2aaf3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2237de,_0xe3b78e,_0x580ee7,_0x48f173)=>{if(!_0x2237de)return m(_0x4ff6e1,'Loading...');if(!_0x580ee7)return m(_0x4ff6e1,'No\x20changes');const _0xf61b85=m(_0x4ff6e1,'NUMBER_OF_CHANGES',_0x580ee7);return _0x48f173?m(_0x4ff6e1,'X_OF_Y_CHANGES',[_0xe3b78e+0x1,_0x580ee7]):_0xf61b85;}),_0x33babb['set']({'label':m(_0x4ff6e1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2767c2}),_0x27d827['set']({'label':m(_0x4ff6e1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x29e1bb}),_0x33babb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x27d827['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33babb['on']('execute',()=>this['fire']('execute','backward')),_0x27d827['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',_0x29cd12['if']('_isStatusLabelVisible','ck-hidden',_0x13e101=>!_0x13e101)]},'children':[{'text':_0x29cd12['to']('isNavigationMode',_0x4511d7=>_0x4511d7?m(_0x4ff6e1,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ff6e1,'Total')+':\x20')}]},{'text':_0x29cd12['to']('_statusText')}]},new _0x49d982(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33babb,_0x27d827]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3aa0b2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x110e0d=this['editor']['editing']['view'];_0x110e0d['change'](_0x3fc372=>{for(const _0x2478e3 of _0x110e0d['document']['roots'])_0x3fc372['addClass'](ge,_0x2478e3);});}['hide'](){const _0x51b02c=this['editor']['editing']['view'];_0x51b02c['change'](_0x2ba487=>{for(const _0x34094b of _0x51b02c['document']['roots'])_0x2ba487['removeClass'](ge,_0x34094b);});}}class v extends _0x3aa0b2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x497db2=this['editor'],_0x25c6fd=_0x497db2['plugins']['get'](u),_0x5cb7e6=_0x497db2['plugins']['get'](ji);_0x497db2['ui']['componentFactory']['add']('exitToEditing',_0xf0e977=>{const _0x3ddb95=new _0x5eae90(_0xf0e977);return _0x3ddb95['set']({'label':m(_0xf0e977,'Back\x20to\x20editing'),'icon':_0x9c7f3e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3ddb95,'execute',()=>{_0x497db2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3ddb95;}),_0x497db2['ui']['componentFactory']['add']('restoreRevision',_0x20cf83=>{const _0x323f37=new _0x5eae90(_0x20cf83);return _0x323f37['set']({'label':m(_0x20cf83,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x323f37['bind']('isEnabled')['to'](_0x497db2['commands']['get']('restoreRevision')),this['listenTo'](_0x323f37,'execute',()=>_0x497db2['execute']('restoreRevision')),_0x323f37;}),_0x497db2['ui']['componentFactory']['add']('changesNavigation',_0x29b311=>{const _0x36c033=new Ri(_0x29b311),_0x4aefe6=_0x497db2['commands']['get']('showPreviousChange'),_0x3af963=_0x497db2['commands']['get']('showNextChange');return _0x36c033['bind']('isBackwardNavigationEnabled')['to'](_0x4aefe6,'isEnabled'),_0x36c033['bind']('isForwardNavigationEnabled')['to'](_0x3af963,'isEnabled'),_0x36c033['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x25c6fd),this['listenTo'](_0x36c033,'execute',(_0xd11fab,_0x4a65a8)=>{_0x497db2['execute']('forward'===_0x4a65a8?'showNextChange':'showPreviousChange');}),_0x36c033;}),_0x5cb7e6['show'](),_0x25c6fd['on']('change:isReady',(_0x5c0518,_0xceaa77,_0x5be6a8)=>{_0x5be6a8?_0x5cb7e6['hide']():_0x5cb7e6['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x40b5c2,_0x2a9592){super(_0x40b5c2,_0x2a9592);const _0xc7ea4c=this['bindTemplate'];this['set']({'label':m(_0x40b5c2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x40b5c2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc7ea4c['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 _0xd11d11=this['fieldView']['element'];this['_tooltipString']=_0xd11d11['scrollWidth']>_0xd11d11['clientWidth']&&_0xd11d11['value']||'';}}class ni extends _0x1e10ae{constructor(_0x42e811,_0x4c8fbb,_0x29a83f){super(_0x42e811);const _0xec4eed=new _0x5a2a2d();_0xec4eed['set']({'content':_0x81d554,'viewBox':'0\x200\x2011\x2010'});const _0x27030b=['ck','ck-revision-history-sidebar__revision-author'];_0x29a83f&&_0x27030b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x356931=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x42e811,_0x29a83f?'Revision\x20creator':'Revision\x20author')},'children':[_0xec4eed,_0x4c8fbb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x27030b},'children':_0x356931});}}function ai(_0x436c5a,_0x1cce57){const _0x5dfb15=_0x436c5a['bindTemplate'],_0x96149f=_0x436c5a['locale'],_0x4deb1f=_0x34e01e(_0x96149f);_0x4deb1f['panelPosition']='sw';const _0x2e462e=function(_0xba448e,_0x561896){const _0x4dcb71=function(_0x53fc9d,_0x2f4ff3){const _0x15dc06=_0x53fc9d['locale'],_0x494ce9={'Compare\x20against\x20selected':m(_0x15dc06,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x15dc06,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x15dc06,'Restore\x20this\x20revision')};return _0x2f4ff3['map'](_0xd17a8d=>{const _0x55546f=_0x494ce9[_0xd17a8d['name']];return _0x55546f&&_0x55546f!==_0xd17a8d['name']&&(_0xd17a8d['name']=_0x55546f),_0xd17a8d;});}(_0xba448e,_0x561896),_0x4c2fde=new _0x4e11d5();for(const _0x6856a7 of _0x4dcb71){const _0x41aa99={'type':'button','model':new to({'label':_0x6856a7['name'],'class':_0x6856a7['class'],'withText':!0x0,'role':'menuitem','_action':_0x6856a7['action']})};_0x41aa99['model']['bind']('isEnabled')['to'](_0xba448e,'isActionsDropdownOpen',_0x2ce0d6=>'function'!=typeof _0x6856a7['isEnabled']||(!_0x2ce0d6||_0x6856a7['isEnabled'](_0xba448e))),_0x4c2fde['add'](_0x41aa99);}return _0x4c2fde;}(_0x436c5a,_0x1cce57);return _0x436c5a['bind']('isActionsDropdownOpen')['to'](_0x4deb1f,'isOpen'),_0x4deb1f['buttonView']['set']({'label':m(_0x96149f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4b2425}),_0x4deb1f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5dfb15['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5dfb15['to'](_0x137670=>_0x137670['stopPropagation']())}}),_0x4deb1f['on']('execute',_0x5b2972=>{_0x436c5a['isReady']&&'function'==typeof _0x5b2972['source']['_action']&&_0x5b2972['source']['_action'](_0x436c5a);}),_0x1e3194(_0x4deb1f,_0x2e462e,{'role':'menu'}),_0x4deb1f['listenTo'](_0x436c5a,'change:isActionsDropdownOpen',(_0x57df92,_0x4ceab8,_0x241b70)=>{if(_0x241b70)for(const _0x35bb26 of _0x4deb1f['listView']['items']){const _0x32dd39=_0x35bb26['children']['first'],_0x33f442=_0x1cce57['find'](_0x452d3f=>_0x452d3f['action']===_0x32dd39['_action'])['isVisible'];_0x35bb26['isVisible']=void 0x0===_0x33f442||_0x33f442(_0x436c5a);}}),_0x4deb1f;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x5cf7cb(_0x1e10ae){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x192090,_0x48689f,_0x537e78,_0x4dc488){super(_0x192090);const _0x1331a9=this['bindTemplate'],_0x47d492=function(_0x45bc20,_0xa5b091){const _0x47d6bc=Array['from'](_0xa5b091['authors'])['filter'](_0x175316=>_0x175316!=_0xa5b091['creator']);return _0xa5b091['creator']&&_0x47d6bc['unshift'](_0xa5b091['creator']),_0x47d6bc['map'](_0x443db4=>new ni(_0x45bc20,_0x443db4,_0x443db4==_0xa5b091['creator']));}(_0x192090,_0x48689f);this['id']=_0x48689f['id'],this['_revision']=_0x48689f,this['_requireRevisionName']=_0x4dc488,this['bind']('name','createdAt')['to'](_0x48689f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ca217=>{return _0x17eb9f=_0x192090['uiLanguage'],(_0x1b181c=_0x3ca217)['toLocaleDateString'](_0x17eb9f,{'month':'long','day':'numeric'})+',\x20'+_0x1b181c['toLocaleTimeString'](_0x17eb9f,{'hour':'numeric','minute':'numeric'});var _0x17eb9f,_0x1b181c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x192090,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x471112=>_0x471112||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2e2862,_0x2ecce0)=>_0x2e2862&&_0x2ecce0),this['revisionActionsView']=_0x537e78&&_0x537e78['length']?ai(this,_0x537e78):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1331a9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1331a9['if']('isEnabled','ck-disabled',_0xb37346=>!_0xb37346),_0x1331a9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1331a9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1331a9['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':_0x1331a9['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':_0x47d492}]},this['revisionActionsView']],'on':{'click':_0x1331a9['to'](_0x5bb7da=>{_0x5bb7da['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1d0ad9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1d0ad9,'change',()=>{this['_requireRevisionName']&&!_0x1d0ad9['value']||this['fire']('setName',{'id':this['id'],'name':_0x1d0ad9['value']}),_0x1d0ad9['value']||(_0x1d0ad9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1aad8b,_0x39c038){const _0x15b92a=_0x5e3a22['fromJSDate'](_0x1aad8b)['setLocale'](_0x39c038),_0x4a1954=_0x5e3a22['local'](),_0x1c9332=_0x4a1954['minus']({'days':0x1})['startOf']('day');let _0x109f9d,_0x56e848;return _0x15b92a['hasSame'](_0x4a1954,'day')?(_0x109f9d=_0x15b92a['startOf']('day')['toJSDate'](),_0x56e848=_0x15b92a['toRelativeCalendar']()):_0x15b92a['hasSame'](_0x1c9332,'day')?(_0x109f9d=_0x1c9332['toJSDate'](),_0x56e848=_0x15b92a['toRelativeCalendar']()):_0x15b92a['hasSame'](_0x4a1954,'week')?(_0x109f9d=_0x15b92a['startOf']('week')['toJSDate'](),_0x56e848=_0x15b92a['weekdayLong']||''):_0x15b92a['hasSame'](_0x4a1954,'year')?(_0x109f9d=_0x15b92a['startOf']('month')['toJSDate'](),_0x56e848=_0x15b92a['monthLong']||''):(_0x109f9d=_0x15b92a['startOf']('year')['toJSDate'](),_0x56e848=String(_0x15b92a['year'])),{'startDate':_0x109f9d,'localizedPeriodName':_0x56e848};}class li extends _0x1e10ae{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x488a82,_0x1c34fe,_0x7ae49a,_0x224509){super(_0x488a82);const _0x31960a=mi(_0x1c34fe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1c34fe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x7ae49a,this['_requireRevisionName']=_0x224509,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':_0x31960a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x289325){const _0x5c8e62=new vi(this['locale'],_0x289325,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5c8e62);}['removeRevision'](_0xef3efe){const _0x4ec577=this['revisionViews']['find'](_0x3286fb=>_0x3286fb['id']===_0xef3efe['id']);this['revisionViews']['remove'](_0x4ec577);}}class bi extends _0x1e10ae{constructor(_0x32c723){super(_0x32c723);const _0x164c22=new _0x5a2a2d();_0x164c22['content']=_0x553cd1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x164c22,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x32c723,'Revision\x20history')]}]});}}class di extends _0x1e10ae{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x448303,_0xc85547,_0x359aa5,_0x374ed0){super(_0x448303);const _0x2fd676=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xc85547,this['_revisionActions']=_0x359aa5,this['_requireRevisionName']=_0x374ed0,this['on']('select',(_0x6f298c,_0x233304)=>{this['fire']('revisionSelected',_0x233304);}),this['on']('setName',(_0x97e3e4,_0x52bae7)=>{this['fire']('revisionSetName',_0x52bae7);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x448303),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2fd676['if']('isEnabled','ck-disabled',_0x3a2e10=>!_0x3a2e10)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x9462b8 of this['_revisions'])this['_addRevision'](_0x9462b8);this['_revisions']['on']('add',(_0x1463e0,_0x32cdc7)=>{this['_addRevision'](_0x32cdc7);}),this['_revisions']['on']('remove',(_0x383d2a,_0x5e185b)=>{this['_removeRevision'](_0x5e185b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x308268=>_0x308268['revisionViews']['map'](_0xb35a8c=>_0xb35a8c))['flat']();}['selectRevision'](_0x1a7507){for(const _0x12b8cf of this['revisionViews'])_0x1a7507&&_0x1a7507['id']===_0x12b8cf['id']?_0x12b8cf['select']():_0x12b8cf['deselect']();}['highlightRevisions'](_0x14a9de){for(const _0x916544 of this['revisionViews'])_0x14a9de['some'](({id:_0x11b010})=>_0x11b010===_0x916544['id'])?_0x916544['highlight']():_0x916544['unhighlight']();}['_addRevision'](_0x127c9b){const _0x34731d=mi(_0x127c9b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5cf952=this['timePeriodViews']['get'](0x0);_0x5cf952&&_0x5cf952['startDate']['getTime']()===_0x34731d['getTime']()||(_0x5cf952=new li(this['locale'],_0x34731d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5cf952)),_0x5cf952['addRevision'](_0x127c9b);}['_removeRevision'](_0x4b4f9f){const _0x4fb901=mi(_0x4b4f9f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4fb901)['removeRevision'](_0x4b4f9f);}['_getTimePeriodViewByStartDate'](_0x3979c1){return this['timePeriodViews']['find'](_0x51ea6c=>_0x51ea6c['startDate']['getTime']()===_0x3979c1['getTime']());}}class d extends _0x3aa0b2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x1dcf98(_0x52b58b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4003c0,_0x3e50c3){super(_0x3e50c3),this['sourceElement']=_0x4003c0,this['model']['document']['createRoot']();const _0x23e763=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x23e763);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe45512,_0x10ebb3){const _0x58fcda=new this(_0xe45512,_0x10ebb3);return await _0x58fcda['initPlugins'](),await _0x58fcda['ui']['init'](_0xe45512),await _0x58fcda['data']['init'](_0x58fcda['config']['get']('initialData')||''),_0x58fcda['fire']('ready'),_0x58fcda;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x20abfc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf12e28){function _0x4f83af(_0x1962a5){return _0x1962a5['map'](_0x49f4c9=>String['fromCharCode'](_0x49f4c9))['join']('');}super(_0xf12e28),this['result']='end',_0xf12e28[_0x4f83af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f83af([0x76,0x69,0x65,0x77])][_0x4f83af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f83af([0x61,0x75,0x74,0x6f]),_0xf12e28[_0x4f83af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4f83af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f83af([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4f83af([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4f83af([0x6f,0x6b])});}}class ct extends _0x20abfc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x27647e){if(super(_0x27647e),!this['editor']['config']['get']('revisionHistory'))throw new _0x3ebe8b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x6c0196=>this['_showRevisionViewer']({..._0x6c0196,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x97a423=>this['_closeRevisionViewer'](_0x97a423)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb9d423=>this['_restoreRevision'](_0xb9d423)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x300c9e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x300c9e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x48ab70){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x48ab70);}['getRevision'](_0x20938d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x20938d);}['getRevisions'](_0x581e51){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x581e51||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d9344=this['editor'],_0x760829=_0x3ee41e(_0x4d9344,p),_0x19f14b=_0x4d9344['plugins']['get']('RevisionTracker'),_0x9587c2=_0x4d9344['plugins']['get']('Users')['users'];return _0x760829['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x760829['lazyRoots'],(_0x760829['plugins']['push'](ht,u,v,class extends _0x20abfc{static get['requires'](){return[u,'Users'];}['init'](){const _0x3b6068=this['editor']['plugins']['get']('Users');for(const _0x1b4a09 of _0x9587c2)_0x1b4a09['isAnonymous']||_0x3b6068['getUser'](_0x1b4a09['id'])||_0x3b6068['addUser'](_0x1b4a09);const _0x26128f=_0x19f14b['repository']['getRevisions']();let _0x502299=null;const _0x5bdc03=this['editor']['plugins']['get']('RevisionViewer');_0x5bdc03['adapter']=_0x19f14b['adapter'],_0x5bdc03['bind']('isEnabled')['to'](_0x19f14b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d9344,'isReadOnly',_0x254eed=>!_0x254eed);for(const _0x42322f of _0x26128f){const _0x11e9d6=null===_0x42322f['creator'];if(_0x11e9d6&&_0x42322f['toVersion']===_0x42322f['fromVersion'])continue;const _0x7a34f7=_0x42322f['toJSON']();_0x5bdc03['addRevisionData'](_0x7a34f7,(_0x39a5f6,_0x3f5b4b,_0x30b3f2)=>{if(_0x11e9d6){if(_0x502299)_0x502299['_update'](_0x39a5f6,_0x3f5b4b);else{if(!_0x3f5b4b){const _0x5053ed=_0x30b3f2['toJSON']();_0x5053ed['id']=_0x25f762(),_0x19f14b['saveRevision'](_0x5053ed,_0x30b3f2['toVersion'])['then'](_0x33ed6f=>{_0x502299=_0x33ed6f;});}}}else _0x42322f['_update'](_0x39a5f6,_0x3f5b4b);});}}},d),_0x760829);}['_enhanceShowRevisionViewerCallback'](){const _0x3fc084=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2427e0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x239c3a=this['editor']['plugins']['get']('Autosave');await _0x239c3a['save']();}else await _0x2427e0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x78fb85=this['editor']['plugins']['get']('Dialog');_0x78fb85['isOpen']&&_0x78fb85['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x5689f1=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x281e0f of _0x5689f1)_0x281e0f['class']=_0x281e0f['class']?_0x281e0f['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x21d46e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x21d46e&&_0x21d46e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x14cd00=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x14cd00&&_0x14cd00['setAttribute']('tabindex','-1');}}const _0x3fa051=this['_getRevisionViewerEditorConfig']();return _0x3fc084(_0x3fa051)['then'](_0x1d68c4=>{return(this['_viewerEditor']=_0x1d68c4,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'),_0x1d68c4);})['catch'](_0x599dfb=>(console['error'](_0x599dfb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x22c5ad=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x407510=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x38f49d of _0x407510)_0x38f49d['class']='ck-tab-panel_disabled'===_0x38f49d['class']?'':_0x38f49d['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x2488ae=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2488ae&&_0x2488ae['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x46975e=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x46975e&&_0x46975e['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x22c5ad(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xbaf0d3=this['editor']['plugins']['get']('Annotations');_0xbaf0d3['refreshVisibility'](),_0xbaf0d3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x3f8c49){const _0x40d0c6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9264be=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1ce1af=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1ce1af,_0x3f8c49)['then'](_0x556db3=>(_0x9264be['style']['display']='block',_0x40d0c6['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x556db3));}['_closeRevisionViewer'](_0x3ee9a1){const _0x3f0a20=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3f0a20['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3ee9a1['destroy']();}async['_restoreRevision'](_0x268f4b){const _0x58ecf8=this['editor'],_0xf5f56=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x31fc1c=_0x58ecf8['plugins']['get']('RevisionTracker'),_0x2fd6ed=_0x58ecf8['plugins']['get']('RevisionHistoryUtils'),_0x2877f4=_0xf5f56['repository']['getRevision'](_0x268f4b);let _0x14bc76,_0x141131,_0x507616;try{await _0x2fd6ed['loadRevisionData'](_0x2877f4,this['adapter']),_0x14bc76=_0x2fd6ed['getRevisionDocumentData'](_0x2877f4),_0x141131=_0x2fd6ed['getRevisionRootsAttributes'](_0x2877f4);}catch(_0x5ea338){return void console['error'](_0x5ea338);}_0x58ecf8['model']['change'](_0x2320a0=>{for(const _0x563e20 of Array['from'](_0x58ecf8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2320a0['removeMarker'](_0x563e20);}),_0xf5f56['isReady']=!0x1,_0x58ecf8['model']['enqueueChange'](_0x4d7819=>{_0x4d7819['setSelection'](null),_0x4d7819['removeSelectionAttribute'](_0x58ecf8['model']['document']['selection']['getAttributeKeys']());const _0x40d86e=Object['keys'](_0x14bc76);for(const _0x301f0a of _0x58ecf8['model']['document']['roots'])'$graveyard'!=_0x301f0a['rootName']&&_0x301f0a['isAttached']()&&!_0x40d86e['includes'](_0x301f0a['rootName'])&&_0x4d7819['detachRoot'](_0x301f0a);for(const _0x44c675 of _0x40d86e){let _0x4041bd=_0x58ecf8['model']['document']['getRoot'](_0x44c675);_0x4041bd&&_0x4041bd['isAttached']()||(_0x4041bd=_0x4d7819['addRoot'](_0x44c675));const _0x2fc8be=_0x141131[_0x44c675],_0xc604ce=Object['keys'](_0x2fc8be),_0x39f19e=_0x14bc76[_0x44c675];for(const _0x5189bb of _0x4041bd['getAttributeKeys']())_0xc604ce['includes'](_0x5189bb)||_0x4d7819['removeAttribute'](_0x5189bb,_0x4041bd);for(const _0x20f3ec of _0xc604ce)_0x4d7819['setAttribute'](_0x20f3ec,_0x141131[_0x44c675][_0x20f3ec],_0x4041bd);_0x4d7819['remove'](_0x4d7819['createRangeIn'](_0x4041bd)),_0x4d7819['insert'](_0x58ecf8['data']['parse'](_0x39f19e,_0x4041bd),_0x4041bd,0x0);}});const _0x2e0d42=m(_0x58ecf8['locale'],'Restored');if(_0x2877f4['name'])_0x507616=-0x1==_0x2877f4['name']['indexOf'](_0x2e0d42)?_0x2e0d42+':\x20'+_0x2877f4['name']:_0x2877f4['name'];else _0x507616=_0x2e0d42+':\x20'+(_0x2877f4['createdAt']['toLocaleDateString'](_0x58ecf8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2877f4['createdAt']['toLocaleTimeString'](_0x58ecf8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x31fc1c['saveRevision']({'name':_0x507616}),_0xf5f56['isReady']=!0x0,_0x58ecf8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x1a99b0){super(_0x1a99b0),this['_revisionViewer']=_0x1a99b0['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x23d88e=this['_revisionsRepository']['_revisions'],_0x112b21=this['_createRevisionActions'](),_0x3c0822=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x23d88e,_0x112b21,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',(_0x42c435,_0x31ec42)=>{_0x31ec42['revisionViews']['on']('add',(_0x49096a,_0x482469)=>{_0x482469['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)),_0x3c0822['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x541fb6=this['_revisionsRepository']['getRevision'](0x0);if(_0x541fb6){const _0x5632b5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x541fb6['id']);this['_revisionViewer']['compare'](_0x541fb6,_0x5632b5);}}['_handleRevisionSelected'](_0x4cb38b,_0x9ba37b){const _0x125577=this['_revisionsRepository']['getRevision'](_0x9ba37b['id']),_0x4520ab=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x125577['id']);this['_revisionViewer']['compare'](_0x125577,_0x4520ab);}['_handleRevisionSetName'](_0x29c51a,_0x212c3b){this['_revisionsRepository']['getRevision'](_0x212c3b['id'])['setName'](_0x212c3b['name']);}['_handleDiffChange'](_0x3d2f97,_0x2f70a1,_0x5f540e){const _0x32c6d0=this['_revisionsRepository']['getRevisionsInDiff'](_0x5f540e);_0x32c6d0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x32c6d0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x32c6d0[0x0]));}['_createRevisionActions'](){const _0x2e45d3=this['editor'],_0x1e8158=d['availableRevisionActions'],_0x52ec01=_0x2e45d3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x52ec01['length'])return _0x52ec01['map'](_0x1f087e=>{const _0x4f706f='string'==typeof _0x1f087e?Object['assign']({},_0x1e8158[_0x1f087e]):_0x1f087e;return _0x4f706f['action']=_0x4f706f['action']['bind'](this,_0x2e45d3),_0x4f706f['isVisible']&&(_0x4f706f['isVisible']=_0x4f706f['isVisible']['bind'](this,_0x2e45d3)),_0x4f706f;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2459db},_0x1b5bb8)=>{const _0x485f62=_0x2459db['get'](u),_0x1da7aa=_0x485f62['repository'];let _0x5b6bbb=_0x485f62['diff']['newRevisionId'],_0x3765ae=_0x1b5bb8['id'];_0x1da7aa['getIndex'](_0x5b6bbb)>_0x1da7aa['getIndex'](_0x3765ae)&&([_0x5b6bbb,_0x3765ae]=[_0x3765ae,_0x5b6bbb]),_0x485f62['compare'](_0x5b6bbb,_0x3765ae);},'isVisible':({plugins:_0x221e69},_0x5d8ef5)=>{const _0x2a4545=_0x221e69['get'](u);return!(_0x2a4545['repository']['getRevisionsInDiff'](_0x2a4545['diff'])['length']>0x2)&&!_0x5d8ef5['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2c35fd,{id:_0x3d94bf})=>{_0x2c35fd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d94bf);},'isVisible':({plugins:_0x1de40d},_0x5047ee)=>!!_0x1de40d['get'](u)['repository']['getLaterVisibleRevision'](_0x5047ee['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1a374d},{id:_0x463cf6,revisionNameView:_0x66470c})=>{const _0x5be28a=_0x1a374d['get'](u),_0x220aa8=_0x5be28a['repository']['getEarlierVisibleRevision'](_0x463cf6);_0x5be28a['compare'](_0x463cf6,_0x220aa8),_0x66470c['focus'](),_0x66470c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x47a55c,_0x167ccd){super(_0x47a55c),this['_view']=_0x167ccd,this['_toolbarConfig']=st(_0x47a55c['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x8a0967){const _0x373d03=this['editor'],_0x1a4fd9=this['view'],_0x109250=_0x373d03['editing']['view'],_0x5245bf=_0x1a4fd9['editable'],_0x2c5118=_0x109250['document']['getRoot']();_0x5245bf['name']=_0x2c5118['rootName'],_0x1a4fd9['render']();const _0x450f6e=_0x5245bf['element'];this['setEditableElement'](_0x5245bf['name'],_0x450f6e),_0x1a4fd9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x109250['attachDomRoot'](_0x450f6e),this['_elementReplacer']['replace'](_0x8a0967,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x38b873=this['view'],_0x15b4ea=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x15b4ea['detachDomRoot'](_0x38b873['editable']['name']),_0x38b873['destroy']();}['_initToolbar'](){const _0xfcedff=this['view'];_0xfcedff['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfcedff['stickyPanel']['limiterElement']=_0xfcedff['element'],_0xfcedff['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x454345})=>_0x454345),_0xfcedff['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfcedff['toolbar']);}}class ii extends _0x30441a{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x301756,_0xc99d16,_0xaedac4={}){super(_0x301756),this['stickyPanel']=new _0x135c05(_0x301756),this['toolbar']=new _0x1a5b73(_0x301756,{'shouldGroupWhenFull':_0xaedac4['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x301756,_0xc99d16);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x502bb9(_0x3e686d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x496c0d,_0x3b9a3a){super(_0x3b9a3a),this['sourceElement']=_0x496c0d,this['model']['document']['createRoot']();const _0x3628ee=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3628ee);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5d7c30,_0x2128f8){const _0xbe1876=new this(_0x5d7c30,_0x2128f8);return await _0xbe1876['initPlugins'](),await _0xbe1876['ui']['init'](_0x5d7c30),await _0xbe1876['data']['init'](_0xbe1876['config']['get']('initialData')||''),_0xbe1876['fire']('ready'),_0xbe1876;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x3aa0b2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x304c7c){function _0x15e26a(_0x20ed57){return _0x20ed57['map'](_0x169415=>String['fromCharCode'](_0x169415))['join']('');}super(_0x304c7c),this['result']='end',_0x304c7c[_0x15e26a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e26a([0x76,0x69,0x65,0x77])][_0x15e26a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e26a([0x61,0x75,0x74,0x6f]),_0x304c7c[_0x15e26a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15e26a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e26a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15e26a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15e26a([0x6f,0x6b])});}}class ct extends _0x3aa0b2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2c0495){if(super(_0x2c0495),!this['editor']['config']['get']('revisionHistory'))throw new _0x5d1702('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x51d8c5=>this['_showRevisionViewer']({..._0x51d8c5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x377085=>this['_closeRevisionViewer'](_0x377085)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5a83e5=>this['_restoreRevision'](_0x5a83e5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4b8311){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4b8311;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4b2dea){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4b2dea);}['getRevision'](_0x40fc64){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x40fc64);}['getRevisions'](_0x535c53){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x535c53||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d1169=this['editor'],_0x5cfb2a=_0x17961f(_0x1d1169,p),_0x11387a=_0x1d1169['plugins']['get']('RevisionTracker'),_0x6c7e49=_0x1d1169['plugins']['get']('Users')['users'];return _0x5cfb2a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5cfb2a['lazyRoots'],(_0x5cfb2a['plugins']['push'](ht,u,v,class extends _0x3aa0b2{static get['requires'](){return[u,'Users'];}['init'](){const _0x5811d1=this['editor']['plugins']['get']('Users');for(const _0x12e7b of _0x6c7e49)_0x12e7b['isAnonymous']||_0x5811d1['getUser'](_0x12e7b['id'])||_0x5811d1['addUser'](_0x12e7b);const _0x26c94f=_0x11387a['repository']['getRevisions']();let _0x4f6921=null;const _0x1fe9d9=this['editor']['plugins']['get']('RevisionViewer');_0x1fe9d9['adapter']=_0x11387a['adapter'],_0x1fe9d9['bind']('isEnabled')['to'](_0x11387a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d1169,'isReadOnly',_0x499845=>!_0x499845);for(const _0x54f378 of _0x26c94f){const _0x4782a4=null===_0x54f378['creator'];if(_0x4782a4&&_0x54f378['toVersion']===_0x54f378['fromVersion'])continue;const _0x278b14=_0x54f378['toJSON']();_0x1fe9d9['addRevisionData'](_0x278b14,(_0x1b0100,_0x401fb1,_0x372fff)=>{if(_0x4782a4){if(_0x4f6921)_0x4f6921['_update'](_0x1b0100,_0x401fb1);else{if(!_0x401fb1){const _0x36eae4=_0x372fff['toJSON']();_0x36eae4['id']=_0x52ce2c(),_0x11387a['saveRevision'](_0x36eae4,_0x372fff['toVersion'])['then'](_0x25d7c3=>{_0x4f6921=_0x25d7c3;});}}}else _0x54f378['_update'](_0x1b0100,_0x401fb1);});}}},d),_0x5cfb2a);}['_enhanceShowRevisionViewerCallback'](){const _0x1775f4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17b080=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x363ddf=this['editor']['plugins']['get']('Autosave');await _0x363ddf['save']();}else await _0x17b080['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x18463f=this['editor']['plugins']['get']('Dialog');_0x18463f['isOpen']&&_0x18463f['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x340d84=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0xe99f36 of _0x340d84)_0xe99f36['class']=_0xe99f36['class']?_0xe99f36['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x5dafdd=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5dafdd&&_0x5dafdd['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x361859=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x361859&&_0x361859['setAttribute']('tabindex','-1');}}const _0x107be8=this['_getRevisionViewerEditorConfig']();return _0x1775f4(_0x107be8)['then'](_0x4f6e10=>{return(this['_viewerEditor']=_0x4f6e10,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'),_0x4f6e10);})['catch'](_0x359b1a=>(console['error'](_0x359b1a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x540555=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x309ae7=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4135b3 of _0x309ae7)_0x4135b3['class']='ck-tab-panel_disabled'===_0x4135b3['class']?'':_0x4135b3['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1fa9b0=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1fa9b0&&_0x1fa9b0['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x4d0625=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x4d0625&&_0x4d0625['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x540555(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x311656=this['editor']['plugins']['get']('Annotations');_0x311656['refreshVisibility'](),_0x311656['refreshPositioning']();}});});}['_showRevisionViewer'](_0x536c51){const _0x221358=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x319429=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xa3e92b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0xa3e92b,_0x536c51)['then'](_0x2d0f73=>(_0x319429['style']['display']='block',_0x221358['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2d0f73));}['_closeRevisionViewer'](_0x99ef45){const _0x4d1a9f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4d1a9f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x99ef45['destroy']();}async['_restoreRevision'](_0xc00f89){const _0x365a97=this['editor'],_0x4122f0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x544e26=_0x365a97['plugins']['get']('RevisionTracker'),_0x1a043d=_0x365a97['plugins']['get']('RevisionHistoryUtils'),_0x1589f8=_0x4122f0['repository']['getRevision'](_0xc00f89);let _0xe682c3,_0x14e815,_0x3505cf;try{await _0x1a043d['loadRevisionData'](_0x1589f8,this['adapter']),_0xe682c3=_0x1a043d['getRevisionDocumentData'](_0x1589f8),_0x14e815=_0x1a043d['getRevisionRootsAttributes'](_0x1589f8);}catch(_0x14c40f){return void console['error'](_0x14c40f);}_0x365a97['model']['change'](_0xce84a5=>{for(const _0x3883d3 of Array['from'](_0x365a97['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xce84a5['removeMarker'](_0x3883d3);}),_0x4122f0['isReady']=!0x1,_0x365a97['model']['enqueueChange'](_0x27d621=>{_0x27d621['setSelection'](null),_0x27d621['removeSelectionAttribute'](_0x365a97['model']['document']['selection']['getAttributeKeys']());const _0x995f19=Object['keys'](_0xe682c3);for(const _0x511598 of _0x365a97['model']['document']['roots'])'$graveyard'!=_0x511598['rootName']&&_0x511598['isAttached']()&&!_0x995f19['includes'](_0x511598['rootName'])&&_0x27d621['detachRoot'](_0x511598);for(const _0x5d076c of _0x995f19){let _0xbc3277=_0x365a97['model']['document']['getRoot'](_0x5d076c);_0xbc3277&&_0xbc3277['isAttached']()||(_0xbc3277=_0x27d621['addRoot'](_0x5d076c));const _0x520e3c=_0x14e815[_0x5d076c],_0x24e7c3=Object['keys'](_0x520e3c),_0x1a1e97=_0xe682c3[_0x5d076c];for(const _0x22a79d of _0xbc3277['getAttributeKeys']())_0x24e7c3['includes'](_0x22a79d)||_0x27d621['removeAttribute'](_0x22a79d,_0xbc3277);for(const _0x3a92bf of _0x24e7c3)_0x27d621['setAttribute'](_0x3a92bf,_0x14e815[_0x5d076c][_0x3a92bf],_0xbc3277);_0x27d621['remove'](_0x27d621['createRangeIn'](_0xbc3277)),_0x27d621['insert'](_0x365a97['data']['parse'](_0x1a1e97,_0xbc3277),_0xbc3277,0x0);}});const _0x52fb5c=m(_0x365a97['locale'],'Restored');if(_0x1589f8['name'])_0x3505cf=-0x1==_0x1589f8['name']['indexOf'](_0x52fb5c)?_0x52fb5c+':\x20'+_0x1589f8['name']:_0x1589f8['name'];else _0x3505cf=_0x52fb5c+':\x20'+(_0x1589f8['createdAt']['toLocaleDateString'](_0x365a97['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1589f8['createdAt']['toLocaleTimeString'](_0x365a97['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x544e26['saveRevision']({'name':_0x3505cf}),_0x4122f0['isReady']=!0x0,_0x365a97['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|