@ckeditor/ckeditor5-revision-history 46.0.2-alpha.0 → 46.0.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 +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x220e5e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3dc839){super(),this['id']=_0x3dc839['id']||_0x58edc7(),this['creator']=_0x3dc839['creator']||null,this['authors']=_0x3dc839['authors']||[],this['diffData']=_0x3dc839['diffData']||null,this['toVersion']=_0x3dc839['toVersion']||0x0,this['fromVersion']=_0x3dc839['fromVersion']||0x0,this['set']('name',_0x3dc839['name']||''),this['set']('createdAt',_0x3dc839['createdAt']||new Date()),this['set']('attributes',_0x3dc839['attributes']||{});}['setName'](_0x1b073a){this['_update']({'name':_0x1b073a});}['setAttribute'](_0x2186b9,_0x4a512e){const _0x497fb0=_0x570b2f(this['attributes']);_0x3d4dc9(_0x497fb0,_0x2186b9,_0x4a512e),this['_update']({'attributes':_0x497fb0});}['removeAttribute'](_0x5e80f2){const _0x2770c9=_0x570b2f(this['attributes']);_0x30c73b(_0x2770c9,_0x5e80f2),this['_update']({'attributes':_0x2770c9});}['_update'](_0xd281ba,_0x14187f=!0x1){let _0x1fa2e8=!0x1;const _0x3608da={'id':this['id']},_0x314f88=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x849b24 of _0x314f88){const _0x5bb891=_0xd281ba[_0x849b24];void 0x0!==_0x5bb891&&_0x5bb891!==this[_0x849b24]&&(this[_0x849b24]=_0x5bb891,_0x3608da[_0x849b24]=_0x5bb891,_0x1fa2e8=!0x0);}_0x1fa2e8&&(_0x3608da['authors']&&(_0x3608da['authorsIds']=_0x3608da['authors']['map'](_0x250f39=>_0x250f39['id']),delete _0x3608da['authors']),this['fire']('_update',_0x3608da,_0x14187f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x165fd8=>_0x165fd8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x40d69e{['_revisions'];static get['requires'](){return[_0x31b528];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x17961d){super(_0x17961d),this['_revisions']=new _0xbf5b7e();}['afterInit'](){!async function(_0x1c5bf9){const _0x55426d=_0x9a0efa([0x74,0x63,0x49,0x6a,0x4f,0x78,0x34,0x58,0x4b,0x54,0x62,0x41,0x5a,0x4e,0x59,0x65,0x51,0x66,0x32,0x69,0x4a,0x39,0x53,0x33,0x35,0x57,0x47,0x4c,0x6c,0x7a,0x43,0x64,0x72,0x31,0x30,0x67,0x75,0x37,0x36,0x79,0x6d,0x68,0x52,0x45,0x4d,0x56,0x70,0x38,0x46,0x76,0x77,0x55,0x6f,0x42,0x61,0x50,0x6e,0x71,0x44,0x48,0x73,0x6b]),_0x245ace=0xeb829,_0x24df09=0x72b9e60,_0x226e0e=0x72ceeb0^_0x24df09,_0xed50f9=window[_0x9a0efa([0x44,0x61,0x74,0x65])][_0x9a0efa([0x6e,0x6f,0x77])](),_0x5af653=_0x1c5bf9[_0x9a0efa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e38d8=new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca5bb=>{_0x5af653[_0x9a0efa([0x6f,0x6e,0x63,0x65])](_0x9a0efa([0x72,0x65,0x61,0x64,0x79]),_0x2ca5bb);}),_0x5ea9ba={[_0x9a0efa([0x6b,0x74,0x79])]:_0x9a0efa([0x45,0x43]),[_0x9a0efa([0x75,0x73,0x65])]:_0x9a0efa([0x73,0x69,0x67]),[_0x9a0efa([0x63,0x72,0x76])]:_0x9a0efa([0x50,0x2d,0x32,0x35,0x36]),[_0x9a0efa([0x78])]:_0x9a0efa([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]),[_0x9a0efa([0x79])]:_0x9a0efa([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]),[_0x9a0efa([0x61,0x6c,0x67])]:_0x9a0efa([0x45,0x53,0x32,0x35,0x36])},_0x3ded8b=_0x5af653[_0x9a0efa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9a0efa([0x67,0x65,0x74])](_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6ae52e(){let _0x650506,_0x111d6b=null,_0x2b59bc=null;try{if(_0x3ded8b==_0x9a0efa([0x47,0x50,0x4c]))return _0x9a0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x650506=_0xa3662c(),!_0x650506)return _0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x650506[_0x9a0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b59bc=_0x1bdc47(_0x650506[_0x9a0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x650506[_0x9a0efa([0x6a,0x74,0x69])])),await _0x54ba66()?_0x2017aa()?_0xd94edc()?_0x9a0efa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x399e99()?(_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x111d6b=_0x491a6a(_0x9a0efa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a0efa([0x74,0x72,0x69,0x61,0x6c])&&(_0x111d6b=_0x491a6a(_0x9a0efa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xab3a71()):_0x9a0efa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9a0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd94edc(){const _0x489595=[_0x9a0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9a0efa([0x74,0x72,0x69,0x61,0x6c])][_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xed50f9/0x3e8:0xe10*_0x226e0e;return _0x650506[_0x9a0efa([0x65,0x78,0x70])]<_0x489595;}function _0x2017aa(){const _0x26c250=_0x650506[_0x9a0efa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26c250)return!0x1;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x2a])))return!0x0;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x52,0x48])))return!0x0;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x52,0x52,0x48]))){if(_0x46e2a())return!0x0;if(_0x45cdff()||_0x256f41())return!0x0;}return!0x1;}function _0x399e99(){const _0x1bbab3=_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bbab3||0x0==_0x1bbab3[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f0b91}=new URL(window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bbab3[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0b91))return!0x0;const _0x5ded8e=_0x3f0b91[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e]));return _0x1bbab3[_0x9a0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27bc92=>_0x27bc92[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x2a])))[_0x9a0efa([0x6d,0x61,0x70])](_0x2c765b=>_0x2c765b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e])))[_0x9a0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c335d=>_0x1c335d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ded8e[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a0efa([0x6d,0x61,0x70])](_0x22a8d3=>Array(_0x5ded8e[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22a8d3[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a0efa([0x66,0x69,0x6c,0x6c])](_0x22a8d3[0x0]===_0x9a0efa([0x2a])?_0x9a0efa([0x2a]):'')[_0x9a0efa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22a8d3))[_0x9a0efa([0x73,0x6f,0x6d,0x65])](_0x1c7ae0=>_0x5ded8e[_0x9a0efa([0x65,0x76,0x65,0x72,0x79])]((_0x3bc30,_0x5a64d5)=>_0x1c7ae0[_0x5a64d5]===_0x3bc30||_0x1c7ae0[_0x5a64d5]===_0x9a0efa([0x2a])));}function _0xab3a71(){return _0x111d6b&&_0x2b59bc?new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x127be2,_0x3e3e85)=>{_0x111d6b[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x127be2,_0x3e3e85),_0x2b59bc[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x52e5eb=>{_0x52e5eb!=_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x127be2(_0x52e5eb);},_0x3e3e85);}):_0x111d6b||_0x2b59bc||_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bdc47(_0xef7e71,_0x227b6a){return new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b9b2=>{if(_0x1d5f40())return _0x45b9b2(_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]));_0xc4ee1a(),_0x5af653[_0x9a0efa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dfec2=!0x1;const _0x56ece3=_0x58edc7();function _0x1e97a8(_0x3af331){return!!_0x3af331&&(typeof _0x3af331===_0x9a0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3af331===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3af331[_0x9a0efa([0x74,0x68,0x65,0x6e])]===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3af331[_0x9a0efa([0x63,0x61,0x74,0x63,0x68])]===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524d95(_0x26bcc4){_0x517664(_0x26bcc4)[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x29f80c=>{if(!_0x29f80c||_0x29f80c[_0x9a0efa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9a0efa([0x6f,0x6b]))return _0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bb309(_0x3c9170(_0x56ece3+_0x227b6a))!=_0x29f80c[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]);})[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x486119=>(_0x469d17(),_0x486119),()=>{const _0x2fbd41=_0x69bafc();return null==_0x2fbd41?(_0x469d17(),_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])):_0x9a0efa(_0xed50f9-_0x2fbd41>(0x23271a60^_0x24df09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x45b9b2)[_0x9a0efa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379e56=0x71d70e0^_0x24df09;function _0x469d17(){const _0x6c777f=_0x9a0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bb309(_0x3c9170(_0xef7e71)),_0x45148e=_0x53f9ef(_0x1bb309(window[_0x9a0efa([0x4d,0x61,0x74,0x68])][_0x9a0efa([0x63,0x65,0x69,0x6c])](_0xed50f9/_0x379e56)));window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a0efa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c777f,_0x45148e);}function _0x69bafc(){const _0xe7e7d3=_0x9a0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bb309(_0x3c9170(_0xef7e71)),_0x537e60=window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a0efa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7e7d3);return _0x537e60?window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53f9ef(_0x537e60),0x10)*_0x379e56:null;}function _0x517664(_0x11180f){return new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be784,_0x140c60)=>{_0x11180f[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x5be784,_0x140c60),window[_0x9a0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x140c60,0x72a4aa0^_0x24df09);});}}_0x5af653[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3accfc,_0x3caa27)=>{if(_0x3caa27[0x0]!=_0xef7e71)return _0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3caa27[0x1]={..._0x3caa27[0x1],[_0x9a0efa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56ece3};},{[_0x9a0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a0efa([0x68,0x69,0x67,0x68])}),_0x5af653[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50822d=>{_0x1e97a8(_0x50822d[_0x9a0efa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dfec2=!0x0,_0x524d95(_0x50822d[_0x9a0efa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9a0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a0efa([0x6c,0x6f,0x77])}),_0x2e38d8[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>{_0x4dfec2||_0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d5f40(){return _0x5af653[_0x9a0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a0efa([0x76,0x69,0x65,0x77])][_0x9a0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9a0efa([0x61,0x75,0x74,0x6f]);}function _0xc4ee1a(){_0x5af653[_0x9a0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a0efa([0x76,0x69,0x65,0x77])][_0x9a0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9a0efa([0x61,0x75,0x74,0x6f]);}}function _0x491a6a(_0x216409){const _0x3bbdee=[new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c1a06=>setTimeout(_0x5c1a06,0x722a0ac^_0x24df09)),_0x2e38d8[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7156=>{const _0x252b94=0x72b9e67^_0x24df09,_0x4222e6=_0x1c5bf9[_0x9a0efa([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x175278(){_0x4222e6[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x252b94&&_0x3b7156();}_0x175278(),_0x4222e6[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x61,0x64,0x64]),_0x175278);})),new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bafa=>{function _0x4bdf9e(){for(const _0xc704b0 in window)if(window[_0x9a0efa([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x9a0efa([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xc704b0))&&window[_0xc704b0]==_0x245ace)return _0x20bafa();_0x5af653[_0x9a0efa([0x73,0x74,0x61,0x74,0x65])]!=_0x9a0efa([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x9a0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bdf9e,0x72b8de8^_0x24df09);}_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4bdf9e();})];return window[_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9a0efa([0x72,0x61,0x63,0x65])](_0x3bbdee)[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>_0x216409);}async function _0x1bc8a5(){if(await _0x2e38d8,_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5acb1b=_0x1c5bf9[_0x9a0efa([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4fd297=_0x1c5bf9[_0x9a0efa([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])](_0x5acb1b[_0x9a0efa([0x69,0x64])]),_0x2f1f0d=_0x4db482(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2f1f0d[_0x9a0efa([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5acb1b['id'],_0x4fd297?_0x4fd297['id']:null,!0x0),_0x2f1f0d[_0x9a0efa([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f1f0d[_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f1f0d[_0x9a0efa([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x49f779,void(_0x2f1f0d[_0x9a0efa([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x49f779);}if(_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1326d7=_0x4db482(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1326d7[_0x9a0efa([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1326d7[_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1326d7[_0x9a0efa([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x49f779,_0x1326d7[_0x9a0efa([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x49f779;}_0x5af653[_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a0efa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49f779,_0x5af653[_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a0efa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49f779,_0x5af653[_0x9a0efa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46e2a(){return _0x80defc(_0x9a0efa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4db482(_0x9a0efa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9a0efa([0x73,0x74,0x61,0x74,0x65])]==_0x9a0efa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x45cdff(){return _0x80defc(_0x9a0efa([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 _0x256f41(){return _0x80defc(_0x9a0efa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x386bb3(_0x5b39e1){const _0x325326=_0x218be1();_0x5af653[_0x325326]=_0x9a0efa([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])+_0x5b39e1,_0x5b39e1[_0x9a0efa([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x9a0efa([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x218be1()]=_0x245ace),_0x5b39e1!=_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x1bc8a5();}function _0x218be1(){const _0x1ca05d=window[_0x9a0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9a0efa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9a0efa([0x6e,0x6f,0x77])]())[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9a0efa([0x2e]),'');let _0x2a97a2=_0x9a0efa([0x74]);for(let _0x282d97=0x0;_0x282d97<_0x1ca05d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x282d97+=0x2){let _0x36f3a3=window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca05d[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x282d97,_0x282d97+0x2));_0x36f3a3>=_0x55426d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36f3a3-=_0x55426d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a97a2+=_0x55426d[_0x36f3a3];}return _0x2a97a2;}function _0xa3662c(){const _0x17dd32=_0x3ded8b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e]));if(0x3!=_0x17dd32[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x468a81(_0x17dd32[0x1]);function _0x468a81(_0x5adf75){const _0x18b0fc=_0x170503(_0x5adf75);return _0x18b0fc&&_0x2658bd()?_0x18b0fc:null;function _0x2658bd(){const _0x139ed1=_0x18b0fc[_0x9a0efa([0x6a,0x74,0x69])],_0x24837e=window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139ed1[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x139ed1[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9c78f7={..._0x18b0fc,[_0x9a0efa([0x6a,0x74,0x69])]:_0x139ed1[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x139ed1[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9c78f7[_0x9a0efa([0x76,0x63])],_0x3c9170(_0x9c78f7)==_0x24837e;}}}async function _0x54ba66(){let _0x140d4c=!0x0;try{const _0x4e1ae9=_0x3ded8b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e])),[_0x3e2990,_0x22f3c6,_0x226e27]=_0x4e1ae9;return _0x14c277(_0x3e2990),await _0x351bbc(_0x3e2990,_0x22f3c6,_0x226e27),_0x140d4c;}catch{return!0x1;}function _0x14c277(_0x4537a0){const _0x41f906=_0x170503(_0x4537a0);_0x41f906&&_0x41f906[_0x9a0efa([0x61,0x6c,0x67])]==_0x9a0efa([0x45,0x53,0x32,0x35,0x36])||(_0x140d4c=!0x1);}async function _0x351bbc(_0x901bbd,_0x2b3307,_0x2b91ca){const _0xe763ae=window[_0x9a0efa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9a0efa([0x66,0x72,0x6f,0x6d])](_0x533f9d(_0x2b91ca),_0x115a42=>_0x115a42[_0x9a0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4beeef=new window[(_0x9a0efa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9a0efa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x901bbd+_0x9a0efa([0x2e])+_0x2b3307),_0x1a85b2=window[_0x9a0efa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9a0efa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a85b2)return;const _0x381cae=await _0x1a85b2[_0x9a0efa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9a0efa([0x6a,0x77,0x6b]),_0x5ea9ba,{[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x45,0x43,0x44,0x53,0x41]),[_0x9a0efa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9a0efa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a85b2[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x45,0x43,0x44,0x53,0x41]),[_0x9a0efa([0x68,0x61,0x73,0x68])]:{[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x381cae,_0xe763ae,_0x4beeef)||(_0x140d4c=!0x1);}}function _0x170503(_0x31011c){return _0x31011c[_0x9a0efa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9a0efa([0x65,0x79]))?JSON[_0x9a0efa([0x70,0x61,0x72,0x73,0x65])](_0x533f9d(_0x31011c)):null;}function _0x533f9d(_0x5c1ac8){return window[_0x9a0efa([0x61,0x74,0x6f,0x62])](_0x5c1ac8[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9a0efa([0x2b]))[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9a0efa([0x2f])));}function _0x3c9170(_0x5578ed){let _0x469d76=0x1505;function _0xd5238(_0x34ce14){for(let _0x43dcf1=0x0;_0x43dcf1<_0x34ce14[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43dcf1++){const _0x29d5eb=_0x34ce14[_0x9a0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43dcf1);_0x469d76=(_0x469d76<<0x5)+_0x469d76+_0x29d5eb,_0x469d76&=_0x469d76;}}function _0x395174(_0x49bde2){Array[_0x9a0efa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49bde2)?_0x49bde2[_0x9a0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x395174):_0x49bde2&&typeof _0x49bde2==_0x9a0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9a0efa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49bde2)[_0x9a0efa([0x73,0x6f,0x72,0x74])]()[_0x9a0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x142d95,_0x16e526])=>{_0xd5238(_0x142d95),_0x395174(_0x16e526);}):_0xd5238(window[_0x9a0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49bde2));}return _0x395174(_0x5578ed),_0x469d76>>>0x0;}function _0x1bb309(_0x4b2ec7){return _0x4b2ec7[_0x9a0efa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9a0efa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9a0efa([0x30]));}function _0x53f9ef(_0xbced7b){return _0xbced7b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9a0efa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9a0efa([0x6a,0x6f,0x69,0x6e])]('');}function _0x80defc(_0x14d71a){return _0x5af653[_0x9a0efa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9a0efa([0x68,0x61,0x73])](_0x14d71a);}function _0x4db482(_0x391e0b){return _0x5af653[_0x9a0efa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9a0efa([0x67,0x65,0x74])](_0x391e0b);}function _0x49f779(){}function _0x9a0efa(_0x341269){return _0x341269['map'](_0x4f6bc5=>String['fromCharCode'](_0x4f6bc5))['join']('');}_0x386bb3(await _0x6ae52e());}(this);}['createRevision'](_0x14fcce){const _0x374152=this['editor']['plugins']['get']('Users');return new I({'id':_0x14fcce['id'],'name':_0x14fcce['name'],'creator':_0x14fcce['creatorId']?_0x374152['getUser'](_0x14fcce['creatorId']):null,'diffData':_0x14fcce['diffData']||_0x14fcce['data'],'authors':_0x14fcce['authorsIds']['map'](_0x3e4f54=>_0x374152['getUser'](_0x3e4f54)),'createdAt':new Date(_0x14fcce['createdAt']),'attributes':_0x14fcce['attributes'],'fromVersion':_0x14fcce['fromVersion'],'toVersion':_0x14fcce['toVersion']});}['addRevision'](_0x5014ff,_0x197a6c=0x0){this['_revisions']['add'](_0x5014ff,_0x197a6c);}['getRevision'](_0x211bcd){return this['_revisions']['get'](_0x211bcd);}['getRevisions'](_0xfb5fa7={'toJSON':!0x1}){const _0x5871f8=Array['from'](this['_revisions']);return _0x5871f8['reverse'](),_0xfb5fa7['toJSON']?_0x5871f8['map'](_0xb948f7=>_0xb948f7['toJSON']()):_0x5871f8;}['getIndex'](_0x3078ad){return this['_revisions']['getIndex'](_0x3078ad);}['getEarlierVisibleRevision'](_0x4ae1fa){const [,_0x51a978]=this['getRevisionsIterator'](_0x4ae1fa,{'direction':'earlier'});return _0x51a978;}['getLaterVisibleRevision'](_0x43ebea){const [,_0x176bdb]=this['getRevisionsIterator'](_0x43ebea,{'direction':'later'});return _0x176bdb;}['getRevisionsInDiff'](_0x4929af){const _0x37f709=[];for(const _0x59a786 of this['getRevisionsIterator'](_0x4929af['newRevisionId']))if(_0x37f709['push'](_0x59a786),_0x59a786['id']===_0x4929af['oldRevisionId'])break;return _0x37f709;}*['getRevisionsIterator'](_0x33ac70,{direction:_0x3c353c='earlier',filter:_0x22258f=()=>!0x0}={}){const _0x546d6f='earlier'===_0x3c353c?0x1:-0x1;let _0x340e59=this['_revisions']['get'](_0x33ac70),_0x28339e=this['getIndex'](_0x340e59);for(yield _0x340e59;_0x340e59;){if(_0x28339e+=_0x546d6f,_0x340e59=this['getRevision'](_0x28339e),!_0x340e59)return;_0x22258f(_0x340e59)&&(yield _0x340e59);}}}class $ extends _0x40d69e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2ccec7,'c'],[_0x3707a2,'a'],[_0x78a4a0,'e'],[_0x4740c3,'r'],[_0x74385,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2ccec7],['a',_0x3707a2],['e',_0x78a4a0],['r',_0x4740c3],['u',_0x74385]]);async['loadRevisionData'](_0x263699,_0x5e9e33){if(_0x263699['diffData']||!_0x5e9e33)return;const _0x53d8a9=this['editor']['config']['get']('collaboration.channelId'),_0x22af67=await _0x5e9e33['getRevision']({'channelId':_0x53d8a9,'revisionId':_0x263699['id']});_0x263699['diffData']=_0x22af67['diffData'];}['getRevisionDocumentData'](_0x5a8d1e){const _0x5571b7={};for(const _0x4e6150 in _0x5a8d1e['diffData']){if(_0x5a8d1e['diffData'][_0x4e6150]['attachChange']&&!_0x5a8d1e['diffData'][_0x4e6150]['attachChange']['isAttached'])continue;const _0x282c66=this['_removeRevisionMarkers'](JSON['parse'](_0x5a8d1e['diffData'][_0x4e6150]['insertions'])),_0x51f82c=this['editor']['editing']['view']['document'],_0x493e0e=new _0x103c9a(_0x51f82c,_0x282c66['map'](_0x391a0a=>this['_getViewFromDiffObj'](_0x391a0a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5571b7[_0x4e6150]=this['editor']['data']['processor']['toData'](_0x493e0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5571b7;}['getRevisionRootsAttributes'](_0xa82cb3){const _0x4e2961={};for(const _0x48846f in _0xa82cb3['diffData'])_0xa82cb3['diffData'][_0x48846f]['attachChange']&&!_0xa82cb3['diffData'][_0x48846f]['attachChange']['isAttached']||(_0x4e2961[_0x48846f]=_0xa82cb3['diffData'][_0x48846f]['attributesAfter']||{});return _0x4e2961;}['_getTypeCharForViewElement'](_0x3ed979){return this['_viewClassToTypeChar']['get'](_0x3ed979['constructor']);}['_getViewFromDiffObj'](_0x2cf743,_0x4b5b07){const _0x54c5bd=this['editor']['editing']['view']['document'];if('string'==typeof _0x2cf743)return new _0x1ccf06(_0x54c5bd,_0x2cf743);{let _0x58b7cc,_0x501797;_0x501797='u'==_0x2cf743['type']||'r'==_0x2cf743['type']?[]:_0x2cf743['children']['map'](_0x1b9243=>this['_getViewFromDiffObj'](_0x1b9243,_0x4b5b07));const _0x43a1c7=this['_typeCharToViewClass']['get'](_0x2cf743['type'])||_0x530198,_0x294677=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x58b7cc=new _0x43a1c7(_0x54c5bd,_0x2cf743['name'],_0x2cf743['attributes'],_0x501797),'u'==_0x2cf743['type']&&_0x2cf743['children'][0x0]){const _0x5323c0=_0x2cf743['children'][0x0];if(_0x58b7cc['render']=function(_0xb652f0){const _0x173edd=_0xb652f0['createElement']('div');return _0x173edd['innerHTML']=_0x5323c0,_0x173edd['childNodes'][0x0];},_0x4b5b07){const _0x9468ab=new _0x103c9a(_0x54c5bd);_0x9468ab['_appendChild'](_0x58b7cc);const _0x9bac4b=Array['from'](_0x294677['viewChildrenToDom'](_0x9468ab,{'bind':!0x1})),_0x6d74d=_0x294677['domDocument']['createElement']('div');_0x6d74d['append'](..._0x9bac4b),_0x58b7cc=Array['from'](_0x294677['domChildrenToView'](_0x6d74d))[0x0];}}else{if('r'==_0x2cf743['type']&&_0x2cf743['children'][0x0]){const _0x5a1703=_0x2cf743['children'][0x0];if(_0x58b7cc['render']=function(_0x360afb){_0x360afb['innerHTML']=_0x5a1703;},_0x4b5b07){const _0xc69f0d=new _0x103c9a(_0x54c5bd);_0xc69f0d['_appendChild'](_0x58b7cc);const _0x57e79e=Array['from'](_0x294677['viewChildrenToDom'](_0xc69f0d,{'bind':!0x1})),_0x1d8f4b=_0x294677['domDocument']['createElement']('div');_0x1d8f4b['append'](..._0x57e79e);const _0xa27eb5=Array['from'](_0x294677['domChildrenToView'](_0x1d8f4b));_0xa27eb5['length']>0x1?_0x58b7cc['_appendChild'](_0xa27eb5):_0x58b7cc=_0xa27eb5[0x0];}}}if(_0x2cf743['customProperties']){for(const [_0x57bd28,_0x3984fd]of _0x2cf743['customProperties'])_0x58b7cc['_setCustomProperty'](_0x57bd28,_0x3984fd);}const _0x29a7a8=void 0x0===_0x2cf743['fillerOffset']?null:_0x2cf743['fillerOffset'];return null!==_0x29a7a8&&(_0x58b7cc['getFillerOffset']=()=>_0x29a7a8),_0x58b7cc;}}['_makeModelFromViewString'](_0x373a12){const _0xd448a2=JSON['parse'](_0x373a12),_0x11ba96=this['editor']['editing']['view']['document'],_0x19be18=new _0x103c9a(_0x11ba96,_0xd448a2['map'](_0x288103=>this['_getViewFromDiffObj'](_0x288103,!0x0)));return this['editor']['data']['toModel'](_0x19be18);}['_removeRevisionMarkers'](_0x350838){return(_0x350838=_0x350838['filter'](_0x5e7ec9=>!_0x5e7ec9['name']||'revision-start'!==_0x5e7ec9['name']&&'revision-end'!==_0x5e7ec9['name']))['forEach'](_0x106651=>{'string'!=typeof _0x106651&&(_0x106651['children']=this['_removeRevisionMarkers'](_0x106651['children']),_0x106651['attributes']=_0x106651['attributes']['filter'](_0x1b755f=>!_0x1b755f[0x0]['startsWith']('data-revision-')));}),_0x350838;}}function R(_0x4cc3f7,_0xe9da72,_0xeb9a2c){const t=_0x4cc3f7['t'];switch(_0xe9da72){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'},_0xeb9a2c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeb9a2c);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 _0x40d69e{['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[_0x31b528,S,$,_0x371990];}constructor(_0x106af3){super(_0x106af3),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 _0x1ef2bf=_0x58edc7();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1ef2bf},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 _0x5f35ba=this['repository']['getRevision'](0x0),_0x4cbc3f=_0x5f35ba&&null===_0x5f35ba['creator']?_0x5f35ba:null;if(this['_continueCurrentRevision']=!!_0x4cbc3f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x261e16=this['_source']['getCurrentRevisionId'](),_0x199248=this['repository']['getRevision'](_0x261e16);if(_0x199248)this['_startingVersion']=_0x199248['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e8dc4=this['_source']['history']['_operations']['find'](_0x3ecef5=>!_0x3ecef5['_isInit']),_0x1a551d=_0x5e8dc4?_0x5e8dc4['baseVersion']:this['_source']['history']['version'];_0x5f35ba?(_0x5f35ba['toVersion']<_0x1a551d&&_0x5f35ba['_update']({'toVersion':_0x1a551d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id'],this['_startingVersion']=_0x4cbc3f['fromVersion']):(this['_startingVersion']=_0x5f35ba['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a551d,this['_continueCurrentRevision']=!0x1);}}else _0x4cbc3f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cbc3f['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cbc3f['fromVersion']===_0x4cbc3f['toVersion']?(0x0!==_0x4cbc3f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id'],this['_startingVersion']=_0x4cbc3f['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',_0x3f4419=>!_0x3f4419),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30e5d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2473b7;for(const _0x1e8df5 in _0x30e5d6){const _0x15c341=_0x1e8df5,_0x3db3a1=_0x30e5d6[_0x15c341];if('revisionHistoryLicenseKeyValid'==_0x3db3a1||'revisionHistoryLicenseKeyInvalid'==_0x3db3a1||'revisionHistoryLicenseKeyExpired'==_0x3db3a1||'revisionHistoryLicenseKeyDomainLimit'==_0x3db3a1||'revisionHistoryLicenseKeyNotAllowed'==_0x3db3a1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3db3a1||'revisionHistoryLicenseKeyTrialLimit'==_0x3db3a1||'revisionHistoryLicenseKeyUsageLimit'==_0x3db3a1){delete _0x30e5d6[_0x15c341],_0x2473b7=_0x3db3a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2473b7&&_0x30e5d6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2473b7&&_0x30e5d6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2473b7&&_0x30e5d6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x420a5a=this['repository']['getRevision'](0x0),_0xd6ed85=await this['getRevisionDocumentData'](_0x420a5a),_0x3a1850=await this['getRevisionRootsAttributes'](_0x420a5a);this['_replaceEditorDataWithRevisionData'](_0xd6ed85,_0x3a1850);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5e3d9d){this['_source']=_0x5e3d9d;}async['update'](){const _0x25eda7=await this['_source']['getLatestVersion']();if(_0x25eda7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x290e84=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x25eda7});_0x290e84['authors']=_0x290e84['authorsIds']['map'](_0x38a097=>this['editor']['plugins']['get']('Users')['getUser'](_0x38a097)),this['currentRevision']['_update'](_0x290e84);}}async['saveRevision'](_0x2e2e42={},_0x4979b4=null){const _0x51c644=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4979b4>this['currentRevision']['toVersion']&&(_0x4979b4=null),null===_0x4979b4&&(_0x4979b4=await this['_source']['getLatestVersion']());const _0x46df2a=this['_getFromVersion'](_0x4979b4),_0x485963=this['buildRevisionData']({'from':_0x46df2a,'to':_0x4979b4});if(this['currentRevision']['toVersion']<_0x4979b4){const _0x1b8493=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4979b4,'to':_0x4979b4});_0x1b8493['authors']=[],_0x1b8493['authorsIds']=[],_0x1b8493['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1b8493,!0x0),delete _0x1b8493['authors'],_0x51c644['push'](_0x1b8493);}_0x2e2e42['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e2e42['name']=_0x2e2e42['name']||null,_0x2e2e42['id']=_0x2e2e42['id']||_0x58edc7(),_0x2e2e42={..._0x2e2e42,..._0x485963};const _0x11ddef=this['addRevisionData'](_0x2e2e42);_0x51c644['push'](_0x2e2e42);const _0x4ade19=this['repository']['getIndex'](_0x11ddef);if(0x0!==_0x4ade19){const _0x2b30f7=this['repository']['getRevision'](_0x4ade19-0x1);if(_0x2b30f7['fromVersion']!==_0x4979b4){const _0x257a00=this['_revisionDataBuilder']['getData'](_0x4979b4,_0x2b30f7['toVersion']),_0x5626c7={'id':_0x2b30f7['id'],'diffData':_0x257a00['diffData'],'authorsIds':_0x257a00['authorsIds'],'authors':_0x257a00['authorsIds']['map'](_0x90e49=>this['editor']['plugins']['get']('Users')['getUser'](_0x90e49)),'fromVersion':_0x4979b4};_0x2b30f7===this['currentRevision']&&(_0x5626c7['createdAt']=new Date(_0x2e2e42['createdAt']['getTime']()+0xa)),_0x2b30f7['_update'](_0x5626c7,!0x0),delete _0x5626c7['authors'],_0x51c644['push'](_0x5626c7);}}if(this['adapter']){for(const _0x4f5045 of _0x51c644)this['_bufferUpdate'](_0x4f5045['id'],_0x4f5045,!0x0);this['sendBufferedUpdates']();}return _0x11ddef;}['addRevisionData'](_0x939e3d){const _0x184a81=this['repository']['createRevision'](_0x939e3d);return this['adapter']&&_0x184a81['on']('_update',(_0x35f91a,_0x21ca4a,_0xc75411)=>{_0xc75411||(this['_bufferUpdate'](_0x21ca4a['id'],_0x21ca4a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x184a81,this['_findInsertionIndex'](_0x184a81)),_0x184a81;}async['getRevisionDocumentData'](_0x2ccc32){return await this['_utils']['loadRevisionData'](_0x2ccc32,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2ccc32);}async['getRevisionRootsAttributes'](_0x544b57){return await this['_utils']['loadRevisionData'](_0x544b57,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x544b57);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x48e455=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xb0ed1=0x0;_0xb0ed1<_0x48e455['length'];_0xb0ed1++){const _0x143bad=_0x48e455[_0xb0ed1];let _0xff412c=!0x1;for(const _0x5635ec of Object['keys'](_0x143bad))void 0x0===_0x143bad[_0x5635ec]?delete _0x143bad[_0x5635ec]:'id'!==_0x5635ec&&(_0xff412c=!0x0);_0xff412c||(_0x48e455[_0xb0ed1]=null);}if(_0x48e455=_0x48e455['filter'](_0xa53a5a=>null!==_0xa53a5a),!_0x48e455['length'])return;for(let _0x1911d8=0x0;_0x1911d8<_0x48e455['length'];_0x1911d8++){const _0x56e136=_0x48e455[_0x1911d8];void 0x0!==_0x56e136['fromVersion']&&void 0x0===_0x56e136['toVersion']&&(_0x56e136['toVersion']=this['repository']['getRevision'](_0x56e136['id'])['toVersion']),void 0x0!==_0x56e136['toVersion']&&void 0x0===_0x56e136['fromVersion']&&(_0x56e136['fromVersion']=this['repository']['getRevision'](_0x56e136['id'])['fromVersion']);}const _0x1d3cf3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x48e455,_0x1d3cf3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x53f56c=>{if(_0x53f56c){for(const _0x316d20 of _0x53f56c)this['setRevisionData']({'id':_0x316d20['id'],'createdAt':_0x316d20['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x15cb1f=null,from:_0x4e8ee1=null,to:_0x4a4a12=null}){_0x4e8ee1=null!==_0x4e8ee1?_0x4e8ee1:_0x15cb1f['fromVersion'],_0x4a4a12=null!==_0x4a4a12?_0x4a4a12:_0x15cb1f['toVersion'];const _0x518ae8=this['_revisionDataBuilder']['getData'](_0x4e8ee1,_0x4a4a12),_0x56edac={'diffData':_0x518ae8['diffData'],'authorsIds':_0x518ae8['authorsIds'],'fromVersion':_0x4e8ee1,'toVersion':_0x4a4a12};if(!_0x15cb1f||_0x4a4a12!==_0x15cb1f['toVersion']){const _0x2421f0=_0x4a4a12-0x1,_0x515085=this['_source']['history']['getOperation'](_0x2421f0);_0x56edac['createdAt']=_0x515085&&_0x515085['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e8ee1===this['_loadedStateData']['fromVersion']){for(const _0x4acab0 of this['_loadedStateData']['authors'])_0x56edac['authorsIds']['includes'](_0x4acab0['id'])||_0x56edac['authorsIds']['push'](_0x4acab0['id']);}return _0x56edac;}['_bufferUpdate'](_0x1b4dcc,_0x34809c,_0x5bde25){if(this['_bufferedUpdates']['has'](_0x1b4dcc)){const _0x7a3e55=this['_bufferedUpdates']['get'](_0x1b4dcc);_0x34809c=_0x5bde25?{..._0x7a3e55,..._0x34809c}:{..._0x34809c,..._0x7a3e55};}this['_bufferedUpdates']['set'](_0x1b4dcc,_0x34809c);}['setRevisionData'](_0x2bb20b){const _0x9ef52f=this['repository']['getRevision'](_0x2bb20b['id']);if(_0x2bb20b['createdAt']&&(_0x2bb20b['createdAt']=new Date(_0x2bb20b['createdAt'])),_0x2bb20b['authorsIds']){const _0x1844e4=this['editor']['plugins']['get']('Users');_0x2bb20b['authors']=_0x2bb20b['authorsIds']['map'](_0x1503c3=>_0x1844e4['getUser'](_0x1503c3));}_0x9ef52f['_update'](_0x2bb20b,!0x0);}['_createInitialRevision'](_0x69e4b2){const _0x130365=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x130365)this['_initialRevisionId']=_0x130365['id'];else{const _0x260444=!this['editor']['model']['document']['roots']['find'](_0x3255d9=>this['editor']['model']['hasContent'](_0x3255d9)),_0x4776bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x30624f=R(this['editor']['locale'],_0x260444?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x69e4b2,'to':_0x69e4b2,'id':this['_initialRevisionId'],'name':_0x30624f,'creatorId':_0x4776bf});}}['_createCurrentRevision'](_0x1e9062){const _0x14a71f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x14a71f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e9062,'to':_0x1e9062,'id':_0x14a71f,'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'](_0x160924,_0x3d57ab){let _0x36bb35=this['editor']['config']['get']('initialData'),_0x4f5e36=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x36bb35){_0x36bb35={};for(const _0x5ea0cf of this['editor']['model']['document']['getRootNames']())_0x36bb35[_0x5ea0cf]='';}if('string'==typeof _0x36bb35&&(_0x36bb35={'main':_0x36bb35}),void 0x0===_0x4f5e36){_0x4f5e36={};for(const _0x5b9477 of this['editor']['model']['document']['getRootNames']())_0x4f5e36[_0x5b9477]={};}let _0x3f0787=!0x1;const _0x54a4be=Object['keys'](_0x36bb35),_0x4a6945=Object['keys'](_0x160924);for(const _0x175928 of _0x54a4be){if(_0x36bb35[_0x175928]!==_0x160924[_0x175928]&&''!==_0x36bb35[_0x175928]['trim']()){_0x3f0787=!0x0;break;}if(!_0x158881(_0x4f5e36[_0x175928],_0x3d57ab[_0x175928])&&Object['keys'](_0x4f5e36[_0x175928])['length']>0x0){_0x3f0787=!0x0;break;}}_0x3f0787||(_0x3f0787=_0x4a6945['some'](_0x615800=>!this['editor']['model']['document']['getRoot'](_0x615800))),_0x3f0787&&_0x3c4dda('editor-initial-data-replaced-with-revision-data',{'editorData':_0x36bb35,'editorRootsAttributes':_0x4f5e36,'revisionData':_0x160924,'revisionRootsAttributes':_0x3d57ab}),this['editor']['config']['set']('initialData',_0x160924),this['editor']['config']['set']('rootsAttributes',_0x3d57ab);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x11a261=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x11a261['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x350a4b){const _0x1d19c3=this['repository']['getRevisions']();_0x1d19c3['reverse']();let _0x583971=0x0;for(;_0x583971<_0x1d19c3['length'];){const _0x1e01d0=_0x1d19c3[_0x583971];if(_0x1e01d0===this['currentRevision']){_0x583971++;continue;}if(_0x1e01d0['id']===this['_initialRevisionId'])break;const _0x35226e=_0x350a4b['toVersion']-_0x1e01d0['toVersion']||_0x350a4b['fromVersion']-_0x1e01d0['fromVersion'];if(_0x35226e>0x0)break;if(_0x35226e<0x0)_0x583971++;else{if(!_0x350a4b['creator']&&_0x1e01d0['creator'])break;if(_0x1e01d0['creator']||!_0x350a4b['creator']){if(_0x350a4b['createdAt']>_0x1e01d0['createdAt'])break;_0x583971++;}else _0x583971++;}}return _0x583971;}['_getFromVersion'](_0x140ab1){const _0x3fd6c2=this['repository']['getRevisions']();_0x3fd6c2['reverse'](),_0x3fd6c2['shift']();const _0x58b225=_0x3fd6c2['find'](_0xdb1c5e=>_0xdb1c5e['toVersion']<=_0x140ab1)['toVersion'];return _0x58b225<this['_startingVersion']?this['_startingVersion']:_0x58b225;}['_makeRevision']({name:_0x3b7bca,from:_0x3f8343,to:_0x1f69dc,creatorId:_0x423b14,id:_0x24bfd7}){const _0x33c033=this['buildRevisionData']({'from':_0x3f8343,'to':_0x1f69dc});_0x33c033['name']=_0x3b7bca,_0x33c033['creatorId']=_0x423b14,_0x33c033['id']=_0x24bfd7;const _0x27190a=this['addRevisionData'](_0x33c033);return this['adapter']&&this['_bufferUpdate'](_0x33c033['id'],_0x33c033,!0x0),_0x27190a;}['_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(_0x2e8879){this['editor']=_0x2e8879,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'](_0x1e6058){this['source']=_0x1e6058;const _0x1e62c5=new Map(),_0x15c5e6=new Map(),_0x4b6388=this['editor']['model']['document']['roots']['map'](_0x3704fd=>_0x3704fd['rootName']);for(const _0x3db005 of _0x4b6388){const _0x365041=this['editor']['model']['document']['getRoot'](_0x3db005),_0x18aa21=x(_0x365041);_0x1e62c5['set'](_0x3db005,_0x18aa21),_0x15c5e6['set'](_0x3db005,Object['fromEntries'](_0x365041['getAttributes']()));}const _0x134e47=Array['from'](this['editor']['model']['markers'])['map'](_0x166381=>[_0x166381['name'],_0x166381['getRange']()]),_0x33fc99=this['source']['version'];this['_saveMetaData'](_0x33fc99,_0x1e62c5,_0x134e47,_0x15c5e6),this['_startingRevisionId']=this['_revisionId'];const _0x1b0d18=new Map(),_0x487eb2=new Map();for(const _0x5e42ee of _0x4b6388){const _0x536a84=N(_0x5e42ee);_0x1b0d18['set'](_0x5e42ee,_0x536a84),_0x487eb2['set'](_0x5e42ee,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1b0d18,[],_0x487eb2);}['getData'](_0x18fced,_0x8c879c){if(this['_lastFrom']===_0x18fced&&this['_lastTo']<=_0x8c879c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8c879c,!0x0);else{if(!this['_savedMetaData']['has'](_0x18fced)){const _0x12d47b=this['_getPreviousFrom'](_0x18fced);this['_calculateMetaData'](_0x12d47b,_0x18fced,!0x1);}this['_calculateMetaData'](_0x18fced,_0x8c879c,!0x0);}return this['_lastFrom']=_0x18fced,this['_lastTo']=_0x8c879c,this['_getState']();}['loadState'](_0x277e21){const _0x27951d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x277e21['fromVersion'],this['_lastTo']=_0x277e21['toVersion'];for(const _0x2cf676 in _0x277e21['diffData']){const _0x27915b=_0x277e21['diffData'][_0x2cf676]['attachChange'],_0x5a0396=_0x570b2f(_0x277e21['diffData'][_0x2cf676]['attributesBefore'])||{},_0x252d19=_0x27951d['_makeModelFromViewString'](_0x277e21['diffData'][_0x2cf676]['deletions']);_0x252d19['rootName']=_0x2cf676,_0x252d19['_isAttached']=!_0x27915b||!_0x27915b['isAttached'],_0x252d19['isAttached']=()=>_0x252d19['_isAttached'],this['_baseRoots']['set'](_0x2cf676,_0x252d19),this['_baseRootsAttributes']['set'](_0x2cf676,_0x5a0396),_0x27915b&&this['_touchedRoots']['set'](_0x2cf676,_0x27915b);const _0x161627=this['_makeIdsRoot'](_0x252d19);this['_baseIdsRoots']['set'](_0x2cf676,_0x161627);for(const [_0x27978f,_0x401b70]of _0x252d19['markers']){if(!_0x27978f['startsWith']('revision:'))continue;const _0x2085e5=_0x27978f['split'](':')[0x2];for(const _0x33e0c2 of _0x401b70['getWalker']({'singleCharacters':!0x0})){const _0x25145e=this['_getVidAttributeName'](_0x33e0c2),_0x16a291='elementEnd'==_0x33e0c2['type']?_0x33e0c2['previousPosition']['path']['slice'](0x0,-0x1):_0x33e0c2['previousPosition']['path'],_0x112529=_0x161627['getNodeByPath'](_0x16a291)['getAttribute'](_0x25145e);this['_touched']['set'](_0x112529,{'userId':_0x2085e5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x20a533=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x18d3e2=>!this['_touched']['has'](_0x18d3e2));let _0xec8143=0x0;const _0x19d16c=new Map();for(const _0x54c5ba in _0x277e21['diffData']){const _0x188aec=_0x277e21['diffData'][_0x54c5ba]['attachChange'],_0x9f6552=_0x570b2f(_0x277e21['diffData'][_0x54c5ba]['attributesAfter'])||{},_0xd33806=_0x27951d['_makeModelFromViewString'](_0x277e21['diffData'][_0x54c5ba]['insertions']);_0xd33806['rootName']=_0x54c5ba,_0xd33806['_isAttached']=!_0x188aec||_0x188aec['isAttached'],_0xd33806['isAttached']=()=>_0xd33806['_isAttached'],this['_diffRoots']['set'](_0x54c5ba,_0xd33806),this['_diffRootsAttributes']['set'](_0x54c5ba,_0x9f6552);const _0x3d2c9d=this['_makeIdsRoot'](_0xd33806,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x54c5ba,_0x3d2c9d),_0x19d16c['set'](_0x54c5ba,_0xd33806['isAttached']()?_0x9f6552:{});for(const [_0x2c8997,_0x58647c]of _0xd33806['markers']){if(!_0x2c8997['startsWith']('revision:'))continue;const _0x259d44=_0x2c8997['split'](':')[0x2];for(const _0x45779c of _0x58647c['getWalker']({'singleCharacters':!0x0})){const _0x415abf=this['_getVidAttributeName'](_0x45779c),_0x4c63c2=this['_revisionId']++,_0xda1369='elementEnd'==_0x45779c['type']?_0x45779c['previousPosition']['path']['slice'](0x0,-0x1):_0x45779c['previousPosition']['path'];_0x3d2c9d['getNodeByPath'](_0xda1369)['_setAttribute'](_0x415abf,_0x4c63c2),this['_touched']['set'](_0x4c63c2,{'userId':_0x259d44});}}for(const _0x1eba96 of this['editor']['model']['createRangeIn'](_0xd33806)['getWalker']({'singleCharacters':!0x0})){const _0x57d613=this['_getVidAttributeName'](_0x1eba96),_0x10e48f='elementEnd'==_0x1eba96['type']?_0x1eba96['previousPosition']['path']['slice'](0x0,-0x1):_0x1eba96['previousPosition']['path'],_0x2b497d=_0x3d2c9d['getNodeByPath'](_0x10e48f);_0x2b497d['getAttribute'](_0x57d613)>0x0||_0x2b497d['_setAttribute'](_0x57d613,_0x20a533[_0xec8143++]);}for(const [_0x273d54,_0x4a466e]of _0xd33806['markers'])_0x273d54['startsWith']('revision:')||this['_markers']['set'](_0x273d54,_0x4a466e);}const _0x3b049a=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3b049a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b049a,0x1));const _0x3a842a=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3a842a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a842a,0x1));const _0x50bba2=Array['from'](this['_diffRoots'])['map'](([_0x38c71d,_0x1b18ef])=>[_0x38c71d,x(_0x1b18ef)]);this['_saveMetaData'](this['_lastTo'],_0x50bba2,this['_markers'],_0x19d16c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4c25db,_0x62ffdb,_0x37caef,_0x4b68e9){const _0x14a036=new Map(_0x62ffdb),_0x5519d0=new Map(_0x570b2f(_0x4b68e9)),_0x4ae15f=new Map();for(const [_0x30cf99,_0x462299]of _0x37caef)_0x4ae15f['set'](_0x30cf99,{'start':_0x462299['start']['clone'](),'end':_0x462299['end']['clone'](),'rootName':_0x462299['root']['rootName']});this['_savedMetaData']['set'](_0x4c25db,{'roots':_0x14a036,'markers':_0x4ae15f,'rootsAttributes':_0x5519d0});}['_removeMetaData'](_0x2f637f){this['_savedMetaData']['delete'](_0x2f637f);}['_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'](_0x36d88b,_0x2e7154=null){let _0xed8ec0=null;_0x36d88b['is']('documentFragment')||(_0xed8ec0=new _0x149c78(_0x36d88b['name'],{'vid_start':null===_0x2e7154?this['_revisionId']++:_0x2e7154++}));const _0x125d29=[];for(const _0x307aae of _0x36d88b['getChildren']())if(_0x307aae['is']('element')){_0x125d29['push'](this['_makeIdsRoot'](_0x307aae,_0x2e7154));const _0x2017ff=_0x125d29[_0x125d29['length']-0x1];null!==_0x2e7154&&(_0x2e7154=_0x2017ff['is']('element','$text')?_0x2017ff['getAttribute']('vid')+0x1:_0x2017ff['getAttribute']('vid_end')+0x1);}else{for(let _0xfde36b=0x0;_0xfde36b<_0x307aae['offsetSize'];_0xfde36b++)_0x125d29['push'](new _0x149c78('$text',{'vid':null===_0x2e7154?this['_revisionId']++:_0x2e7154++}));}if(_0x36d88b['is']('documentFragment')){const _0x44d3e5=N(_0x36d88b['rootName']);return _0x44d3e5['_insertChild'](0x0,_0x125d29),_0x44d3e5;}return _0xed8ec0['_setAttribute']('vid_end',null===_0x2e7154?this['_revisionId']++:_0x2e7154++),_0xed8ec0['_insertChild'](0x0,_0x125d29),_0xed8ec0;}['_calculateMetaData'](_0x35b349,_0x535ced,_0x4fb822){this['_reset']();const {roots:_0x273fdd,markers:_0x4e07ff,rootsAttributes:_0x2fda2e}=this['_savedMetaData']['get'](_0x35b349);this['_baseRoots']=new Map(_0x273fdd),this['_baseRootsAttributes']=new Map(_0x570b2f(_0x2fda2e));for(const [_0xa87e3,_0x374a2a]of this['_baseRoots'])if('$graveyard'!==_0xa87e3&&(this['_diffRoots']['set'](_0xa87e3,x(_0x374a2a)),this['_diffRootsAttributes']=new Map(_0x570b2f(_0x2fda2e)),_0x4fb822)){const _0x368f1f=this['_revisionId'];this['_idsRoots']['set'](_0xa87e3,this['_makeIdsRoot'](_0x374a2a)),this['_baseIdsRoots']['set'](_0xa87e3,this['_makeIdsRoot'](_0x374a2a,_0x368f1f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4fb822&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x49f7c5,_0x51df03]of _0x4e07ff){const _0x345665=this['_baseRoots']['get'](_0x51df03['rootName']),_0x3f28e6=this['_diffRoots']['get'](_0x51df03['rootName']),_0x2f08dc=new _0x16968a(this['_fixPosition'](_0x51df03['start'],_0x345665),this['_fixPosition'](_0x51df03['end'],_0x345665)),_0x5bcf7e=this['_fixRange'](_0x2f08dc,_0x3f28e6);_0x345665['markers']['set'](_0x49f7c5,_0x2f08dc),this['_markers']['set'](_0x49f7c5,_0x5bcf7e);}this['_applyOperations'](_0x35b349,_0x535ced,_0x4fb822);}['_applyOperations'](_0x7b6188,_0x1421eb,_0x4416f0){for(const _0x39464e of this['source']['getOperations'](_0x7b6188,_0x1421eb))this['_handleOperation'](_0x39464e,_0x4416f0);for(const _0x4bbbdb of this['_diffRoots']['values']())_0x4bbbdb['markers']['clear']();for(const [_0x3efa6f,_0xce3163]of this['_markers']){this['_diffRoots']['get'](_0xce3163['root']['rootName'])['markers']['set'](_0x3efa6f,_0xce3163['clone']());}const _0x5be5b5=new Map(),_0x58deff=new Map();for(const [_0x3ec5ad,_0x301d51]of this['_diffRoots'])_0x5be5b5['set'](_0x3ec5ad,x(_0x301d51)),_0x58deff['set'](_0x3ec5ad,this['_diffRootsAttributes']['get'](_0x3ec5ad));this['_saveMetaData'](_0x1421eb,_0x5be5b5,this['_markers'],_0x58deff);}['_getPreviousFrom'](_0x1f84fd){const _0x279c06=Array['from'](this['_savedMetaData']['keys']());_0x279c06['sort']((_0x3d8bb2,_0x4c3606)=>_0x3d8bb2-_0x4c3606),_0x279c06['reverse']();for(const _0x365959 of _0x279c06)if(_0x365959<_0x1f84fd)return _0x365959;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4599b8,_0x53add2){const _0x2d32d0=Array['from'](_0x53add2['markers'])['map'](([_0x428c02,_0x190ad7])=>[_0x428c02,this['_fixRange'](_0x190ad7,_0x4599b8)]);_0x4599b8['markers']=new Map(_0x2d32d0);}['_transformMarkers'](_0x4a85f1){for(const _0x2fd12f of this['_markers']['values']()){const _0x28ee7c=_0x2fd12f['getTransformedByOperation'](_0x4a85f1),_0x32ebaf=_0x16968a['_createFromRanges'](_0x28ee7c);_0x2fd12f['start']=_0x32ebaf['start'],_0x2fd12f['end']=_0x32ebaf['end'];}}['_handleOperation'](_0x228ff3,_0x1e7b17){if('addRoot'!=_0x228ff3['type']&&'detachRoot'!=_0x228ff3['type']){if('insert'==_0x228ff3['type']){const _0x2614be=_0x228ff3['position']['root']['rootName'];this['_diffRoots']['has'](_0x2614be)||(this['_diffRoots']['set'](_0x2614be,N(_0x2614be,!0x0)),this['_diffRootsAttributes']['set'](_0x2614be,{}),_0x1e7b17&&this['_idsRoots']['set'](_0x2614be,N(_0x2614be,!0x0)));}else{if('addRootAttribute'==_0x228ff3['type']||'removeRootAttribute'==_0x228ff3['type']||'changeRootAttribute'==_0x228ff3['type'])return void this['_handleRootAttributeOperation'](_0x228ff3);'marker'==_0x228ff3['type']&&this['_handleMarkerOperation'](_0x228ff3);}if('marker'!==_0x228ff3['type']){const _0x2eb9e1=this['_cloneOperation'](_0x228ff3,this['_diffRoots']);_0x2eb9e1['_execute'](),this['_transformMarkers'](_0x2eb9e1);}if(_0x1e7b17)switch(_0x228ff3['type']){case'insert':this['_handleInsertOperation'](_0x228ff3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x228ff3);break;case'merge':this['_handleMergeOperation'](_0x228ff3);break;case'split':this['_handleSplitOperation'](_0x228ff3);}}else this['_handleRootOperation'](_0x228ff3,_0x1e7b17);}['_cloneOperation'](_0x2e41e4,_0x89e70b){const _0x3c03e0=_0x2e41e4['clone']();return _0x3c03e0['_authorId']=_0x2e41e4['_authorId'],this['_fixOperation'](_0x3c03e0,_0x89e70b),_0x3c03e0;}['_getBaseVids'](_0x250b4d){return _0x250b4d['map'](_0x51c371=>{const _0x2534d3=this['_getVidAttributeName'](_0x51c371);return Number(_0x51c371['item']['getAttribute'](_0x2534d3));});}['_generateTape'](_0x20f891,_0x6f3adf){if(_0x20f891['is']('element','$text'))_0x6f3adf['push']({'item':_0x20f891,'type':'text'});else{_0x20f891['is']('element')&&_0x6f3adf['push']({'item':_0x20f891,'type':'elementStart'});for(const _0x4477a1 of _0x20f891['getChildren']())this['_generateTape'](_0x4477a1,_0x6f3adf);_0x20f891['is']('element')&&_0x6f3adf['push']({'item':_0x20f891,'type':'elementEnd'});}return _0x6f3adf;}['_getState'](){const _0x5e9500=new Map(this['_touched']),_0x4ed646=new Map(_0x5e9500),_0x7eeeca=new Map(),_0x513bb3={'insertions':{},'deletions':{}},_0x25a591={'insertions':{},'deletions':{}},_0x43d991=new Map(),_0x17712b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x17712b['delete']('$graveyard');for(const _0x3b4854 of _0x17712b){const _0x113175=this['_diffRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1),_0x5d111b=this['_baseRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1);_0x113175['isAttached']()||_0x5d111b['isAttached']()?(_0x513bb3['insertions'][_0x3b4854]=x(_0x113175),_0x513bb3['deletions'][_0x3b4854]=x(_0x5d111b),this['_copyMarkers'](_0x513bb3['deletions'][_0x3b4854],_0x5d111b),this['_copyMarkers'](_0x513bb3['insertions'][_0x3b4854],_0x113175),_0x25a591['insertions'][_0x3b4854]=this['_generateTape'](this['_idsRoots']['get'](_0x3b4854),[]),_0x25a591['deletions'][_0x3b4854]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1),[])):_0x17712b['delete'](_0x3b4854);}for(const _0x104e06 of _0x17712b){const _0xb9fade=_0x25a591['insertions'][_0x104e06];for(const _0x221fc5 of _0xb9fade){const _0x19244a=this['_getVidAttributeName'](_0x221fc5),_0x5102b8=_0x221fc5['item']['getAttribute'](_0x19244a);_0x4ed646['delete'](_0x5102b8),_0x5102b8>=this['_startingRevisionId']&&_0x7eeeca['set'](_0x5102b8,_0x5e9500['get'](_0x5102b8));}}for(const _0x1de46c of _0x17712b){const _0x248a8a=_0x25a591['insertions'][_0x1de46c],_0x571d36=this['_getBaseVids'](_0x25a591['deletions'][_0x1de46c]);let _0x1d04f3=0x0;for(const _0x116a60 of _0x248a8a){const _0x546ae7=this['_getVidAttributeName'](_0x116a60),_0x238f60=_0x116a60['item']['getAttribute'](_0x546ae7);if(!_0x7eeeca['has'](_0x238f60)&&!_0x43d991['has'](_0x238f60)){if(_0x4ed646['has'](_0x238f60))_0x1d04f3++;else{if(_0x238f60!=_0x571d36[_0x1d04f3]){const _0x3087fd=_0x5e9500['get'](_0x238f60)||_0x5e9500['get'](_0x571d36[_0x1d04f3]);for(;_0x238f60!=_0x571d36[_0x1d04f3];)_0x4ed646['has'](_0x571d36[_0x1d04f3])||(_0x43d991['set'](_0x571d36[_0x1d04f3],_0x3087fd),_0x5e9500['set'](_0x571d36[_0x1d04f3],_0x3087fd)),_0x1d04f3++;}_0x1d04f3++;}}}}for(const _0x517c2c of _0x17712b){const _0x34fd42=_0x25a591['insertions'][_0x517c2c];for(const _0x186947 of _0x34fd42){const _0x5297fa=this['_getVidAttributeName'](_0x186947),_0x2ebba6=_0x186947['item']['getAttribute'](_0x5297fa);if(_0x43d991['has'](_0x2ebba6)){const _0x2d43f9=_0x43d991['get'](_0x2ebba6);_0x4ed646['has'](_0x2ebba6)||_0x4ed646['set'](_0x2ebba6,{..._0x2d43f9}),_0x7eeeca['set'](_0x2ebba6,{..._0x2d43f9});}}}for(const _0x121938 of _0x4ed646['keys']())_0x121938>=this['_startingRevisionId']&&_0x4ed646['delete'](_0x121938);const _0x1391bc=new Map();for(const _0x55fdc0 of _0x17712b){let _0x10d900=_0x25a591['insertions'][_0x55fdc0];for(const _0x16b29d of _0x10d900)if(_0x16b29d['item']['is']('element','tableCell')){const _0x4f6285=this['_getVidAttributeName'](_0x16b29d),_0xc9bf21=_0x16b29d['item']['getAttribute'](_0x4f6285);if(_0x7eeeca['has'](_0xc9bf21)){const _0x3d0b40=_0x16b29d['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a842f=_0x1391bc['get'](_0x3d0b40)||new Set();_0x3a842f['add'](_0x7eeeca['get'](_0xc9bf21)['userId']),_0x1391bc['set'](_0x3d0b40,_0x3a842f);}}_0x10d900=_0x25a591['deletions'][_0x55fdc0];for(const _0x5f52ce of _0x10d900)if(_0x5f52ce['item']['is']('element','tableCell')){const _0x70f123=this['_getVidAttributeName'](_0x5f52ce),_0x4f891e=_0x5f52ce['item']['getAttribute'](_0x70f123);if(_0x4ed646['has'](_0x4f891e)){const _0x240548=_0x5f52ce['item']['parent']['parent']['getAttribute']('vid_start'),_0xa5f54c=_0x1391bc['get'](_0x240548)||new Set();_0xa5f54c['add'](_0x4ed646['get'](_0x4f891e)['userId']),_0x1391bc['set'](_0x240548,_0xa5f54c);}}for(const _0x59b2a8 of _0x1391bc['keys']())(_0x7eeeca['has'](_0x59b2a8)||_0x4ed646['has'](_0x59b2a8))&&_0x1391bc['delete'](_0x59b2a8);}for(const _0x704826 of _0x17712b){const _0x1778d1=_0x25a591['insertions'][_0x704826];let _0x27729a=null,_0x34b412=null;for(const _0x45a213 of _0x1778d1){const _0x4620d1=this['_getVidAttributeName'](_0x45a213),_0x4141c2=_0x45a213['item']['getAttribute'](_0x4620d1),_0x444a7f=_0x1391bc['get'](_0x4141c2);_0x444a7f&&'elementStart'==_0x45a213['type']&&(_0x27729a=Array['from'](_0x444a7f)[0x0],_0x34b412=_0x45a213['item']['getAttribute']('vid_end')),_0x27729a&&(_0x4ed646['set'](_0x4141c2,{'userId':_0x27729a}),_0x7eeeca['set'](_0x4141c2,{'userId':_0x27729a})),_0x4141c2==_0x34b412&&(_0x27729a=null,_0x34b412=null);}}const _0x29113d={},_0x3ce64a=new Set();for(const _0x7f60de of _0x17712b){const _0x47d888=_0x513bb3['deletions'][_0x7f60de],_0x3d4a67=_0x513bb3['insertions'][_0x7f60de];for(const {userId:_0x527cc4}of this['_touchedMarkers']['values']())null!==_0x527cc4&&_0x3ce64a['add'](_0x527cc4);for(const {userId:_0x4f6990}of this['_touchedRoots']['values']())null!==_0x4f6990&&_0x3ce64a['add'](_0x4f6990);this['_markChanges'](_0x3d4a67,_0x25a591['insertions'][_0x7f60de],_0x7eeeca,'insertion',_0x3ce64a),this['_markChanges'](_0x47d888,_0x25a591['deletions'][_0x7f60de],_0x4ed646,'deletion',_0x3ce64a),_0x29113d[_0x7f60de]={'insertions':this['_prepareViewToSave'](_0x3d4a67),'deletions':this['_prepareViewToSave'](_0x47d888),'attachChange':this['_touchedRoots']['get'](_0x7f60de)||null,'attributesBefore':_0x570b2f(this['_baseRootsAttributes']['get'](_0x7f60de))||{},'attributesAfter':_0x570b2f(this['_diffRootsAttributes']['get'](_0x7f60de))};}return{'diffData':_0x29113d,'authorsIds':Array['from'](_0x3ce64a)};}['_processRootBeforeSave'](_0x582519){for(const [,_0x4e6fb1]of _0x582519['markers']){const _0x26ff2e=_0x4e6fb1['start']['getAncestors']()['filter'](_0x32878b=>'tableCell'==_0x32878b['name']);for(const _0x58d814 of _0x26ff2e)0x1==_0x58d814['childCount']&&_0x58d814['getChild'](0x0)['is']('element','paragraph')&&_0x58d814['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3f8b96){this['_processRootBeforeSave'](_0x3f8b96);const _0x38d74f=this['editor']['data']['toView'](_0x3f8b96,{}),_0x272605=Array['from'](_0x38d74f['getChildren']())['map'](_0x18167a=>this['_getViewJson'](_0x18167a));return JSON['stringify'](_0x272605);}['_getViewJson'](_0x9dc480){if(_0x9dc480['is']('$text'))return _0x9dc480['data'];{const _0x22a281=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3c9a7f=_0x9dc480,_0x152a36=this['editor']['data']['htmlProcessor']['domConverter'],_0x153e2d={'type':_0x22a281['_getTypeCharForViewElement'](_0x3c9a7f),'name':_0x3c9a7f['name'],'attributes':Array['from'](_0x3c9a7f['getAttributes']()),'children':Array['from'](_0x3c9a7f['getChildren']())['map'](_0x11a963=>this['_getViewJson'](_0x11a963))};if(_0x9dc480['is']('uiElement')&&'$comment'!=_0x9dc480['name']){const _0xbe5695=_0x9dc480['render'](_0x152a36['domDocument'],_0x152a36);_0x153e2d['children']['push'](_0xbe5695['outerHTML']);}else{if(_0x9dc480['is']('rawElement')){const _0x50d410=_0x152a36['domDocument']['createElement'](_0x3c9a7f['name']);_0x9dc480['render'](_0x50d410,_0x152a36),_0x153e2d['children']['push'](_0x50d410['innerHTML']);}}const _0x3bda76=Array['from'](_0x3c9a7f['getCustomProperties']());_0x3bda76['length']>0x0&&(_0x153e2d['customProperties']=_0x3bda76);const _0x23f1c9=_0x3c9a7f['getFillerOffset']();return null!==_0x23f1c9&&(_0x153e2d['fillerOffset']=_0x23f1c9),_0x153e2d;}}['_markChanges'](_0x5e3b7a,_0x5e58d5,_0x3bd89e,_0x39bcb5,_0x5e9032){let _0x486e82=null,_0x163029=null,_0x418bec=0x0;const _0x53e8e0=this['editor']['model'];for(let _0x5e579b=0x0;_0x5e579b<_0x5e58d5['length'];_0x5e579b++){const _0x1959f3=this['_getVidAttributeName'](_0x5e58d5[_0x5e579b]),_0xd303e5=_0x5e58d5[_0x5e579b]['item']['getAttribute'](_0x1959f3),_0x15ea8a=_0x3bd89e['get'](_0xd303e5),_0xee2a3a=_0x5e579b==_0x5e58d5['length']-0x1;(!_0x486e82&&_0x15ea8a&&(_0x486e82=_0x15ea8a,_0x163029=_0x5e58d5[_0x5e579b]),_0x486e82&&(!_0x15ea8a||_0x15ea8a['userId']!=_0x486e82['userId']))&&(_0x39c1a6(_0x15ea8a,P(_0x163029,_0x5e3b7a,_0x53e8e0),P(_0x5e58d5[_0x5e579b],_0x5e3b7a,_0x53e8e0)),_0x486e82=_0x15ea8a||null,_0x163029=_0x15ea8a?_0x5e58d5[_0x5e579b]:null),_0x486e82&&_0xee2a3a&&_0x39c1a6(_0x15ea8a,P(_0x163029,_0x5e3b7a,_0x53e8e0),V(_0x5e58d5[_0x5e579b],_0x5e3b7a,_0x53e8e0));}function _0x39c1a6(_0x4c7455,_0x21c19c,_0xe7f6ad){const _0x5d4e31=_0x486e82['userId'],_0x2b6551='revision:'+_0x39bcb5+':'+_0x5d4e31+':'+_0x418bec++,_0x264c8f=_0x53e8e0['createRange'](_0x21c19c,_0xe7f6ad);_0x5e3b7a['markers']['set'](_0x2b6551,_0x264c8f),null!==_0x5d4e31&&_0x5e9032['add'](_0x5d4e31);}}['_getVidAttributeName'](_0x317a32){switch(_0x317a32['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb65c6e,_0x9cd09d){_0xb65c6e['baseVersion']=null;for(const _0x48ddc6 in _0xb65c6e){const _0x1f2c7a=_0xb65c6e[_0x48ddc6];if(_0x1f2c7a instanceof _0x424c40){const _0x12c3a7=_0x9cd09d['get'](_0x1f2c7a['root']['rootName']);_0xb65c6e[_0x48ddc6]=this['_fixPosition'](_0x1f2c7a,_0x12c3a7);}if(_0x1f2c7a instanceof _0x16968a){const _0x383280=_0x9cd09d['get'](_0x1f2c7a['root']['rootName']);_0xb65c6e[_0x48ddc6]=this['_fixRange'](_0x1f2c7a,_0x383280);}'root'===_0x48ddc6&&(_0xb65c6e['root']=_0x9cd09d['get'](_0xb65c6e['root']['rootName']));}}['_fixRange'](_0x4710e8,_0x3ee51c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4710e8['start'],_0x3ee51c),this['_fixPosition'](_0x4710e8['end'],_0x3ee51c));}['_fixPosition'](_0xf49c46,_0x1fc219){return this['editor']['model']['createPositionFromPath'](_0x1fc219,_0xf49c46['path'],_0xf49c46['stickiness']);}['_handleInsertOperation'](_0x226a90){const _0x14c0f8=this['_idsRoots']['get'](_0x226a90['position']['root']['rootName']),_0x24cfba=this['_fixPosition'](_0x226a90['position'],_0x14c0f8),_0x2cdca8=null===_0x226a90['_authorId']?null:_0x226a90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb3d501=_0x24cfba['parent'],_0x276994=this['_revisionId'],_0x1072ea=[];for(const _0x52b56c of _0x226a90['nodes'])if(_0x52b56c['is']('element'))_0x1072ea['push'](this['_makeIdsRoot'](_0x52b56c));else{for(let _0x380b44=0x0;_0x380b44<_0x52b56c['offsetSize'];_0x380b44++)_0x1072ea['push'](new _0x149c78('$text',{'vid':this['_revisionId']++}));}const _0x1de12d=this['_revisionId'];for(let _0x331e87=_0x276994;_0x331e87<_0x1de12d;_0x331e87++)this['_touched']['set'](_0x331e87,{'userId':_0x2cdca8});_0xb3d501['_insertChild'](_0x24cfba['offset'],_0x1072ea);}['_handleMoveOperation'](_0x5d7fb7){(_0x5d7fb7=this['_cloneOperation'](_0x5d7fb7,this['_idsRoots']))['_execute']();const _0x549a9b=null===_0x5d7fb7['_authorId']?null:_0x5d7fb7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d05c4=_0x5d7fb7['getMovedRangeStart'](),_0x41f004=_0x2d05c4['parent'],_0x30d294=_0x2d05c4['offset'];!function _0x2a354e(_0x8be612,_0x350575,_0x758be,_0x55b0f2){for(let _0x40c556=_0x758be;_0x40c556<_0x55b0f2;_0x40c556++){const _0x1b6c92=_0x350575['getChild'](_0x40c556);_0x1b6c92['is']('element','$text')?_0x8be612['set'](_0x1b6c92['getAttribute']('vid'),{'userId':_0x549a9b}):(_0x8be612['set'](_0x1b6c92['getAttribute']('vid_start'),{'userId':_0x549a9b}),_0x2a354e(_0x8be612,_0x1b6c92,0x0,_0x1b6c92['childCount']),_0x8be612['set'](_0x1b6c92['getAttribute']('vid_end'),{'userId':_0x549a9b}));}}(this['_touched'],_0x41f004,_0x30d294,_0x30d294+_0x5d7fb7['howMany']);}['_handleMergeOperation'](_0x254d76){const _0xa75d57=null===(_0x254d76=this['_cloneOperation'](_0x254d76,this['_idsRoots']))['_authorId']?null:_0x254d76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5758ac=_0x254d76['targetPosition']['parent'],_0x48a879=_0x254d76['sourcePosition']['parent'],_0x4dcf2b=_0x5758ac['getAttribute']('vid_end'),_0x5275fa=_0x48a879['getAttribute']('vid_start');_0x5758ac['_setAttribute']('vid_end',_0x48a879['getAttribute']('vid_end')),_0x48a879['_setAttribute']('vid_end',_0x4dcf2b),this['_touched']['set'](_0x5275fa,{'userId':_0xa75d57}),this['_touched']['set'](_0x4dcf2b,{'userId':_0xa75d57}),_0x254d76['_execute']();}['_handleSplitOperation'](_0x103b37){const _0x5c3b32=null===(_0x103b37=this['_cloneOperation'](_0x103b37,this['_idsRoots']))['_authorId']?null:_0x103b37['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a5144=_0x103b37['graveyardPosition'],_0x50f4bb=_0x103b37['splitPosition']['parent'];_0x103b37['_execute']();const _0x2f060d=_0x50f4bb['getAttribute']('vid_end'),_0x5b4271=_0x103b37['insertionPosition']['nodeAfter'];if(_0x4a5144){const _0x3d2bbe=_0x5b4271['getAttribute']('vid_end'),_0x1f1872=_0x50f4bb['getAttribute']('vid_end');_0x50f4bb['_setAttribute']('vid_end',_0x3d2bbe),_0x5b4271['_setAttribute']('vid_end',_0x1f1872),this['_touched']['set'](_0x50f4bb['getAttribute']('vid_end'),{'userId':_0x5c3b32}),this['_touched']['set'](_0x5b4271['getAttribute']('vid_start'),{'userId':_0x5c3b32});}else{const _0x1eef73=this['_revisionId']++,_0x9b2d1c=this['_revisionId']++;_0x50f4bb['_setAttribute']('vid_end',_0x1eef73),_0x5b4271['_setAttribute']('vid_start',_0x9b2d1c),_0x5b4271['_setAttribute']('vid_end',_0x2f060d),this['_touched']['set'](_0x1eef73,{'userId':_0x5c3b32}),this['_touched']['set'](_0x9b2d1c,{'userId':_0x5c3b32});}}['_handleMarkerOperation'](_0xd61c78){if(!_0xd61c78['affectsData'])return;const _0x51d871=(_0xd61c78=this['_cloneOperation'](_0xd61c78,this['_diffRoots']))['oldRange']?_0xd61c78['oldRange']['root']:null,_0x462fe1=_0xd61c78['newRange']?_0xd61c78['newRange']['root']:null;_0x51d871&&this['_markers']['delete'](_0xd61c78['name']),_0x462fe1&&this['_markers']['set'](_0xd61c78['name'],_0xd61c78['newRange']['clone']());const _0x2a54cd=null===_0xd61c78['_authorId']?null:_0xd61c78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x183af3=_0xd61c78['name'];if(!this['_touchedMarkers']['has'](_0x183af3))return void this['_touchedMarkers']['set'](_0x183af3,{'range':_0xd61c78['oldRange'],'userId':_0x2a54cd});const _0x4b9d8b=this['_touchedMarkers']['get'](_0x183af3),_0xbf032d=_0x4b9d8b['range'],_0x5009de=_0xd61c78['newRange'];null==_0xbf032d&&null==_0x5009de||_0xbf032d&&_0x5009de&&_0xbf032d['isEqual'](_0x5009de)?this['_touchedMarkers']['delete'](_0xd61c78['name']):_0x4b9d8b['userId']=_0x2a54cd;}['_handleRootOperation'](_0x1d3780,_0x46390e){this['_diffRoots']['has'](_0x1d3780['rootName'])?this['_diffRoots']['get'](_0x1d3780['rootName'])['_isAttached']=_0x1d3780['isAdd']:(this['_diffRoots']['set'](_0x1d3780['rootName'],N(_0x1d3780['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1d3780['rootName'],{}),_0x46390e&&this['_idsRoots']['set'](_0x1d3780['rootName'],N(_0x1d3780['rootName'],!0x0)));const _0x2d514f=null===_0x1d3780['_authorId']?null:_0x1d3780['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11b53e=this['_touchedRoots']['get'](_0x1d3780['rootName']);_0x11b53e&&_0x11b53e['userId']===_0x2d514f?this['_touchedRoots']['delete'](_0x1d3780['rootName']):this['_touchedRoots']['set'](_0x1d3780['rootName'],{'userId':_0x2d514f,'isAttached':_0x1d3780['isAdd']});}['_handleRootAttributeOperation'](_0x152729){const _0x867d63=this['_diffRootsAttributes']['get'](_0x152729['root']['rootName']);null===_0x152729['newValue']?delete _0x867d63[_0x152729['key']]:_0x867d63[_0x152729['key']]=_0x152729['newValue'];}}function x(_0x4637f8){const _0x3c06a4=N(_0x4637f8['rootName'],_0x4637f8['isAttached']());for(const _0x4f0799 of _0x4637f8['getChildren']()){const _0x320186=_0x4f0799['_clone'](!0x0);_0x3c06a4['_appendChild'](_0x320186);}return _0x3c06a4;}function N(_0x25890c,_0x4fe45f=!0x0){const _0x51bca7=new _0x1017e4();return _0x51bca7['rootName']=_0x25890c,_0x51bca7['_isAttached']=_0x4fe45f,_0x51bca7['isAttached']=()=>_0x51bca7['_isAttached'],_0x51bca7;}function P(_0x3b4da4,_0xd3acd,_0x426a53){const _0x23c43a='elementEnd'==_0x3b4da4['type']?_0x426a53['createPositionAt'](_0x3b4da4['item'],'end'):_0x426a53['createPositionBefore'](_0x3b4da4['item']);return _0x426a53['createPositionFromPath'](_0xd3acd,_0x23c43a['path'],_0x23c43a['stickiness']);}function V(_0x1c839e,_0x2b59c1,_0x513762){const _0x3c096='elementStart'==_0x1c839e['type']?_0x513762['createPositionAt'](_0x1c839e['item'],0x0):_0x513762['createPositionAfter'](_0x1c839e['item']);return _0x513762['createPositionFromPath'](_0x2b59c1,_0x3c096['path'],_0x3c096['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x220e5e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1127bf){super(),this['id']=_0x1127bf['id']||_0x58edc7(),this['author']=_0x1127bf['author'],this['type']=_0x1127bf['type'],this['data']=_0x1127bf['data']||{},this['rootName']=_0x1127bf['rootName'],this['set']('createdAt',_0x1127bf['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(_0x468761,_0x33e416){this['newRevisionId']=_0x468761,this['oldRevisionId']=_0x33e416,this['changes']=new _0xbf5b7e();}['_setChanges'](_0x53135a){for(const _0x387a0f of _0x53135a)this['changes']['add'](_0x387a0f);}}class l extends _0x40d69e{['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[_0x31b528,_0x59aed6,S,$];}constructor(_0x3ac1a1){super(_0x3ac1a1),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',(_0x36bbc7,_0x36ee89,_0x297e5c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb97cd=>{for(const _0x40f990 of this['editor']['editing']['view']['document']['roots'])_0x297e5c?_0xb97cd['removeClass']('ck-editor__editable__overlay',_0x40f990):_0xb97cd['addClass']('ck-editor__editable__overlay',_0x40f990);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5a85e3=>null!==_0x5a85e3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x20b5c3,_0x483e13,_0x71f366)=>_0x20b5c3&&_0x71f366?_0x483e13['changes']['getIndex'](_0x71f366):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x27f2f3,_0x1b1330)=>_0x27f2f3?_0x1b1330['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x59aed6);}['init'](){const _0x166da8=this['editor'],_0x389ab0=new rt(_0x166da8,{'direction':'backward'}),_0x1e7b45=new rt(_0x166da8,{'direction':'forward'});(_0x166da8['commands']['add']('showPreviousChange',_0x389ab0),_0x166da8['commands']['add']('showNextChange',_0x1e7b45),_0x166da8['commands']['add']('restoreRevision',new nt(_0x166da8)),this['on']('change:numberOfChanges',()=>{_0x389ab0['refresh'](),_0x1e7b45['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x166da8['enableReadOnlyMode']('revision-viewer'),_0x166da8['plugins']['has']('WidgetToolbarRepository'))&&_0x166da8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3eb461){return await this['_utils']['loadRevisionData'](_0x3eb461,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3eb461);}async['getRevisionRootsAttributes'](_0x4e50ad){return await this['_utils']['loadRevisionData'](_0x4e50ad,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4e50ad);}async['compare'](_0x1cd41f,_0x3211ac,_0x5a7476=!0x1){if(!this['isEnabled'])return;const _0x1b8a9e=this['diff'],_0xc2e6e3=this['repository'],_0x5080fb='string'==typeof _0x1cd41f?_0xc2e6e3['getRevision'](_0x1cd41f):_0x1cd41f,_0x20f889='string'==typeof _0x3211ac?_0xc2e6e3['getRevision'](_0x3211ac):_0x3211ac,_0x263340=_0x5080fb['id'],_0x526a7a=_0x20f889?_0x20f889['id']:null;if(!_0x5a7476&&this['diff']&&this['diff']['newRevisionId']===_0x263340&&this['diff']['oldRevisionId']===_0x526a7a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x263340,_0x526a7a);const _0x5cb0d8=this['_getRevisionsRange'](_0x5080fb,_0x20f889,!0x0)['map'](_0x5ec572=>this['_utils']['loadRevisionData'](_0x5ec572,this['adapter']));return _0x5cb0d8['push'](new Promise(_0x1a8dec=>{setTimeout(_0x1a8dec,0x14);})),Promise['all'](_0x5cb0d8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5755fe=this['_getDiff'](_0x263340,_0x526a7a);for(const _0x570c37 of _0x5755fe['changes'])this['_changeIdToChange']['set'](_0x570c37['id'],_0x570c37);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xefd549=>{for(const _0x5874a8 of this['editor']['model']['document']['getRootNames']())_0xefd549['detachRoot'](_0x5874a8);for(const _0x50d1a4 of Object['keys'](_0x5755fe['model'])){const _0x1cce80=_0xefd549['addRoot'](_0x50d1a4);for(const _0x59727e of Object['keys'](_0x5755fe['attributes'][_0x50d1a4]))_0xefd549['setAttribute'](_0x59727e,_0x5755fe['attributes'][_0x50d1a4][_0x59727e],_0x1cce80);_0xefd549['insert'](_0x5755fe['model'][_0x50d1a4],_0x1cce80,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5755fe['changes'])),this['isReady']=!0x0;})['catch'](_0xf88c2b=>{console['error'](_0xf88c2b),this['_cleanUp'](),_0x1b8a9e&&(this['diff']=_0x1b8a9e),this['isReady']=!0x0;});}['addRevisionData'](_0x33f836,_0x13e1b9){const _0x188e0d=this['repository']['createRevision'](_0x33f836);return _0x188e0d['on']('_update',(_0x13620b,_0x2de32f,_0x451bbb)=>_0x13e1b9(_0x2de32f,_0x451bbb,_0x188e0d)),this['repository']['addRevision'](_0x188e0d),_0x188e0d;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x285e47=>{for(const _0x2872aa of this['editor']['model']['document']['getRootNames']())_0x285e47['detachRoot'](_0x2872aa);});}['_sortAndFilterDiffChanges'](_0x286fc2){const _0x4d0741=[],_0x276679=new Map();for(const _0x5b7a34 of this['editor']['model']['document']['getRootNames']()){const _0x3c55e5=this['editor']['editing']['view']['getDomRoot'](_0x5b7a34);if(!_0x3c55e5)continue;const _0x3cbe10=_0x3c55e5['getClientRects']()['item'](0x0);_0x3cbe10&&(_0x4d0741['push'](_0x5b7a34),_0x276679['set'](_0x5b7a34,_0x3cbe10));}return _0x4d0741['sort']((_0x2dc65f,_0x507d84)=>{const _0x2e75dd=_0x276679['get'](_0x2dc65f),_0x2b9bf1=_0x276679['get'](_0x507d84);return _0x2e75dd['y']-_0x2b9bf1['y']||_0x2e75dd['x']-_0x2b9bf1['x'];}),(_0x286fc2=_0x286fc2['filter'](_0x4a6895=>_0x4d0741['includes'](_0x4a6895['rootName'])))['sort']((_0x4efa69,_0x577a61)=>_0x4d0741['indexOf'](_0x4efa69['rootName'])-_0x4d0741['indexOf'](_0x577a61['rootName'])),_0x286fc2;}['_makeTape'](_0x40a1d3){const _0x2ca36c=Array['from'](_0x40a1d3['markers'])['filter'](([_0x5bc186,_0x56b842])=>_0x5bc186['startsWith']('revision:')&&!_0x56b842['isCollapsed']),_0x1769f7=Array['from'](this['editor']['model']['createRangeIn'](_0x40a1d3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2ca36c['length'])for(const _0x4d9179 of _0x1769f7){const [_0x2cc2cf,_0x1e5139]=_0x2ca36c[0x0],[,_0x2a13ae,_0x38f9b8]=_0x2cc2cf['split'](':');if(_0x1e5139['end']['isEqual'](_0x4d9179['nextPosition'])&&_0x2ca36c['shift'](),(_0x4d9179['previousPosition']['isEqual'](_0x1e5139['start'])||_0x4d9179['previousPosition']['isAfter'](_0x1e5139['start']))&&('insertion'==_0x2a13ae?_0x4d9179['isAdded']={'userId':_0x38f9b8}:'deletion'==_0x2a13ae&&(_0x4d9179['isRemoved']={'userId':_0x38f9b8})),0x0==_0x2ca36c['length'])break;}return _0x1769f7;}['_refreshStartEndIndex'](_0x60ad5d){const _0x3555d2=new Map();for(let _0x4bcf00=0x0;_0x4bcf00<_0x60ad5d['length'];_0x4bcf00++)'text'===_0x60ad5d[_0x4bcf00]['type']?(_0x60ad5d[_0x4bcf00]['item']['startIndex']=_0x4bcf00,_0x60ad5d[_0x4bcf00]['item']['endIndex']=_0x4bcf00):('elementStart'===_0x60ad5d[_0x4bcf00]['type']?_0x60ad5d[_0x4bcf00]['item']['startIndex']=_0x4bcf00:'elementEnd'===_0x60ad5d[_0x4bcf00]['type']&&(_0x60ad5d[_0x4bcf00]['item']['endIndex']=_0x4bcf00),_0x3555d2['set'](_0x60ad5d[_0x4bcf00]['id'],_0x4bcf00));for(const _0x2d3c4c of _0x3555d2['values']())'elementStart'===_0x60ad5d[_0x2d3c4c]['type']?_0x60ad5d[_0x2d3c4c]['item']['endIndex']=_0x3555d2['get'](_0x60ad5d[_0x2d3c4c]['pairId']):'elementEnd'===_0x60ad5d[_0x2d3c4c]['type']&&(_0x60ad5d[_0x2d3c4c]['item']['startIndex']=_0x3555d2['get'](_0x60ad5d[_0x2d3c4c]['pairId']));}['_processTape'](_0x4bf293){for(let _0x24a94f=0x0;_0x24a94f<_0x4bf293['length'];_0x24a94f++){if('elementStart'===_0x4bf293[_0x24a94f]['type'])_0x4bf293[_0x24a94f]['item']['startIndex']=_0x24a94f;else{if('elementEnd'===_0x4bf293[_0x24a94f]['type']){_0x4bf293[_0x24a94f]['item']['endIndex']=_0x24a94f;const _0x1fdf96=_0x4bf293[_0x24a94f]['item']['startIndex'];_0x4bf293[_0x1fdf96]['pairId']=_0x4bf293[_0x24a94f]['id'],_0x4bf293[_0x24a94f]['pairId']=_0x4bf293[_0x1fdf96]['id'];}else _0x4bf293[_0x24a94f]['item']['startIndex']=_0x24a94f,_0x4bf293[_0x24a94f]['item']['endIndex']=_0x24a94f,_0x4bf293[_0x24a94f]['pairId']=null;}_0x4bf293[_0x24a94f]['markersStart']||(_0x4bf293[_0x24a94f]['markersStart']=[],_0x4bf293[_0x24a94f]['markersEnd']=[]);}}['_markInsertions'](_0x399bf8,_0x30737a){const _0x244a8d=_0x399bf8['filter'](_0x29087f=>!_0x29087f['isAdded']);for(let _0x365ffc=0x0;_0x365ffc<_0x30737a['length'];_0x365ffc++)_0x30737a[_0x365ffc]['isAdded']&&(_0x244a8d[_0x365ffc]['isAdded']=_0x30737a[_0x365ffc]['isAdded']);}['_getDiff'](_0x20e1d8,_0x288694=null){const _0x5306fe=this['repository']['getRevision'](_0x20e1d8),_0x187d35=_0x288694?this['repository']['getRevision'](_0x288694):null,_0x45f04b=this['_getRevisionsRange'](_0x5306fe,_0x187d35),_0x5e275c=_0x45f04b[_0x45f04b['length']-0x1],_0x25a9e0=new Map(),_0x1eac78={'model':{},'attributes':{},'changes':[]},_0xc261ff=new Set(),_0x8bafff=new Map();for(let _0x5aaf58=_0x45f04b['length']-0x1;_0x5aaf58>=0x0;_0x5aaf58--){const _0x6c171c=_0x45f04b[_0x5aaf58];for(const _0x203354 of Object['keys'](_0x6c171c['diffData']))if(_0x6c171c['diffData'][_0x203354]['attachChange']){const _0x3a5c07=_0x6c171c['diffData'][_0x203354]['attachChange'];_0x3a5c07['isAttached']?(_0xc261ff['add'](_0x203354),_0x8bafff['has'](_0x203354)&&_0x8bafff['get'](_0x203354)['userId']==_0x3a5c07['userId']?_0x8bafff['delete'](_0x203354):_0x8bafff['set'](_0x203354,_0x3a5c07)):_0x8bafff['has'](_0x203354)?(_0xc261ff['delete'](_0x203354),_0x8bafff['delete'](_0x203354)):(_0xc261ff['add'](_0x203354),_0x8bafff['set'](_0x203354,_0x3a5c07));}else _0xc261ff['add'](_0x203354);}for(const _0xcf8775 of _0xc261ff){const _0x55843e=_0x8bafff['has'](_0xcf8775)&&!_0x8bafff['get'](_0xcf8775)['isAttached'];let _0x3e417c=_0x55843e?_0x45f04b['length']-0x1:0x0;const _0x3bdf8d=_0x55843e?-0x1:0x1;for(;_0x45f04b[_0x3e417c];){const _0x260dc0=_0x45f04b[_0x3e417c];if(_0x260dc0['diffData'][_0xcf8775]){const _0x28aacc=_0x55843e?_0x260dc0['diffData'][_0xcf8775]['attributesBefore']:_0x260dc0['diffData'][_0xcf8775]['attributesAfter'];_0x1eac78['attributes'][_0xcf8775]=_0x28aacc?_0x570b2f(_0x28aacc):{};break;}_0x3e417c+=_0x3bdf8d;}}for(const _0x2affc6 of _0x45f04b){_0x2affc6['model']={};for(const _0x4e6eb8 of _0x2affc6['authors'])_0x25a9e0['set'](_0x4e6eb8['id'],_0x4e6eb8);for(const _0x2e21a1 of _0xc261ff){const _0xf0e9f=_0x2affc6['diffData'][_0x2e21a1]?_0x2affc6['diffData'][_0x2e21a1]['insertions']:'[]',_0x5b408e=_0x2affc6['diffData'][_0x2e21a1]?_0x2affc6['diffData'][_0x2e21a1]['deletions']:'[]';_0x2affc6['model'][_0x2e21a1]={'insertions':this['_utils']['_makeModelFromViewString'](_0xf0e9f),'deletions':this['_utils']['_makeModelFromViewString'](_0x5b408e)};}}for(const _0x2e7111 of _0xc261ff){let _0x437725=null,_0x27a3c6=0x0;const _0x1f1b97=new Map(Array['from'](_0x5306fe['model'][_0x2e7111]['insertions']['markers'])['filter'](([_0x551a40])=>!_0x551a40['startsWith']('revision:')));let _0x222920=0x0;for(const _0x299b1e of _0x45f04b){const _0x16b463=this['_makeTape'](_0x299b1e['model'][_0x2e7111]['insertions']);_0x299b1e==_0x5306fe?(_0x437725=_0x16b463,_0x27a3c6=_0x437725['length'],_0x437725['forEach'](_0x462acc=>{_0x462acc['id']=_0x222920++;}),this['_processTape'](_0x437725)):this['_markInsertions'](_0x437725,_0x16b463);const _0x50d3bc=_0x437725['filter'](_0x3595a0=>!_0x3595a0['isAdded'])['map'](_0xeaf72a=>_0xeaf72a['id']);let _0x5a7912=0x0;const _0x566a92=this['_makeTape'](_0x299b1e['model'][_0x2e7111]['deletions']);_0x566a92['forEach'](_0x308e3b=>{_0x308e3b['isRemoved']?_0x308e3b['id']=_0x27a3c6++:_0x308e3b['id']=_0x50d3bc[_0x5a7912++];}),this['_processTape'](_0x566a92),this['_setDistance'](_0x437725,'isAdded'),this['_setDistance'](_0x566a92,'isRemoved'),_0x299b1e==_0x5306fe&&this['_markMarkers'](_0x437725,_0x1f1b97),_0x437725=this['_joinTapes'](_0x437725,_0x566a92),this['_refreshStartEndIndex'](_0x437725),this['_setDistance'](_0x437725,'isRemoved');}_0x437725=_0x437725['filter'](_0x35b30d=>!(_0x35b30d['isAdded']&&_0x35b30d['isRemoved']));const _0x53557b=new Map(_0x5e275c['model'][_0x2e7111]['deletions']['markers']),_0x4cdf95=new Set(_0x1f1b97['keys']());for(const _0x1ce28f of _0x53557b['keys']())_0x4cdf95['delete'](_0x1ce28f);this['_markSuggestions'](_0x437725,_0x4cdf95),this['_fixObsoleteTags'](_0x437725),_0x437725=this['_removeMissingPairs'](_0x437725),_0x437725=this['_markMismatchedRemovedTags'](_0x437725),_0x437725=this['_removeUnsupportedChanges'](_0x437725);const {root:_0x468721,changes:_0x70f9ad}=this['_makeModelFromTape'](_0x437725,_0x25a9e0,_0x2e7111);_0x1eac78['model'][_0x2e7111]=_0x468721;const _0x5725d2=_0x8bafff['get'](_0x2e7111);if(_0x5725d2){const _0x29db4f=_0x25a9e0['get'](_0x5725d2['userId']),_0x310f07=new G({'author':_0x29db4f,'type':_0x5725d2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e7111});_0x70f9ad['unshift'](_0x310f07),_0x1eac78['attributes'][_0x2e7111]['revisionHistoryAttachChange']=_0x310f07['id'];}_0x1eac78['changes']=_0x1eac78['changes']['concat'](_0x70f9ad);}return _0x1eac78;}['_markMarkers'](_0x2e5ecb,_0x2d5366){for(let _0x31849b=0x0;_0x31849b<_0x2e5ecb['length'];_0x31849b++)for(const [_0x10ba70,_0x4060d9]of _0x2d5366)!_0x4060d9['isCollapsed']&&_0x4060d9['start']['isEqual'](_0x2e5ecb[_0x31849b]['previousPosition'])&&_0x2e5ecb[_0x31849b]['markersStart']['push'](_0x10ba70),_0x4060d9['end']['isEqual'](_0x2e5ecb[_0x31849b]['nextPosition'])&&_0x2e5ecb[_0x31849b]['markersEnd']['push'](_0x10ba70);}['_joinTapes'](_0x13c589,_0x4d830a){let _0x242b91=[],_0x4203bd=0x0,_0x3b0e85=0x0;for(;_0x4203bd<_0x13c589['length']||_0x3b0e85<_0x4d830a['length'];){const _0x584ca8=_0x13c589[_0x4203bd]||{},_0x835fee=_0x4d830a[_0x3b0e85]||{};if(_0x584ca8['id']==_0x835fee['id'])_0x4203bd++,_0x3b0e85++,_0x242b91['push'](_0x584ca8);else{if(_0x835fee['isRemoved']&&_0x584ca8['isAdded']){const {commonTape:_0x499d38,iEnd:_0x2dcae4,jEnd:_0x304010}=this['_threeWayMerge'](_0x13c589,_0x4203bd,_0x4d830a,_0x3b0e85);_0x242b91=_0x242b91['concat'](_0x499d38),_0x4203bd=_0x2dcae4,_0x3b0e85=_0x304010;}else _0x835fee['isRemoved']?(_0x3b0e85++,_0x242b91['push'](_0x835fee)):(_0x4203bd++,_0x242b91['push'](_0x584ca8));}}return _0x242b91;}['_markSuggestions'](_0x5be4e5,_0x4975d4){const _0x3fcc35=[];for(let _0x1dbcaa=0x0;_0x1dbcaa<_0x5be4e5['length'];_0x1dbcaa++){for(let _0x1bed65=0x0;_0x1bed65<_0x5be4e5[_0x1dbcaa]['markersStart']['length'];_0x1bed65++){const _0x52a43c=_0x5be4e5[_0x1dbcaa]['markersStart'][_0x1bed65];if(!_0x4975d4['has'](_0x52a43c))continue;const {group:_0x277925,type:_0x5e5508,authorId:_0x463433}=_0x168966(_0x52a43c);'revision-suggestion'!=_0x277925||'insertion'!=_0x5e5508&&'deletion'!=_0x5e5508||(_0x3fcc35['unshift']({'type':_0x5e5508,'name':_0x52a43c,'userId':_0x463433}),_0x5be4e5[_0x1dbcaa]['markersStart']['splice'](_0x1bed65,0x1),_0x1bed65--);}_0xef28b4(_0x5be4e5[_0x1dbcaa]);for(let _0x32f088=0x0;_0x32f088<_0x5be4e5[_0x1dbcaa]['markersEnd']['length'];_0x32f088++){const _0x1e406b=_0x5be4e5[_0x1dbcaa]['markersEnd'][_0x32f088];if(!_0x4975d4['has'](_0x1e406b))continue;const {group:_0x4ddc98,type:_0x2db2d8}=_0x168966(_0x1e406b);if('revision-suggestion'!=_0x4ddc98||'insertion'!=_0x2db2d8&&'deletion'!=_0x2db2d8)continue;_0x5be4e5[_0x1dbcaa]['markersEnd']['splice'](_0x32f088,0x1),_0x32f088--;const _0x1cb954=_0x3fcc35['findIndex'](_0x25f3e4=>_0x25f3e4['name']==_0x1e406b);_0x1cb954>-0x1&&_0x3fcc35['splice'](_0x1cb954,0x1);}}function _0x168966(_0x585cfc){const _0x21501d=_0x585cfc['split'](':');return{'group':_0x21501d[0x0],'type':_0x21501d[0x1],'subType':_0x21501d['length']>=0x5?_0x21501d[0x2]:null,'id':_0x21501d['length']<0x5?_0x21501d[0x2]:_0x21501d[0x3],'authorId':_0x21501d['length']<0x5?_0x21501d[0x3]:_0x21501d[0x4],'markerCount':0x6==_0x21501d['length']?_0x21501d[0x5]:null};}function _0xef28b4(_0x3b76d8){for(let _0x4e5334=0x0;_0x4e5334<_0x3fcc35['length'];_0x4e5334++){if(_0x3b76d8['isAdded']&&'insertion'==_0x3fcc35[_0x4e5334]['type']&&_0x3b76d8['isAdded']['userId']==_0x3fcc35[_0x4e5334]['userId'])return _0x3b76d8['isAddSuggestion']=_0x3fcc35[_0x4e5334],void delete _0x3b76d8['isAdded'];if(!_0x3b76d8['isAdded']&&!_0x3b76d8['isRemoved']&&'deletion'==_0x3fcc35[_0x4e5334]['type'])return void(_0x3b76d8['isRemoveSuggestion']=_0x3fcc35[_0x4e5334]);}}}['_setDistance'](_0x260842,_0x4105e6){let _0x4a2a2a=0x0,_0x10eb5f=!0x1;const _0x942084=new Map();for(const _0x5ed210 of _0x260842)_0x5ed210[_0x4105e6]?_0x10eb5f&&(_0x4a2a2a++,_0x10eb5f=!0x1):(_0x4a2a2a++,_0x10eb5f=!0x0),_0x942084['set'](_0x5ed210['id'],_0x4a2a2a);for(let _0x1ea5f7=0x0;_0x1ea5f7<_0x260842['length'];_0x1ea5f7++){if('isRemoved'==_0x4105e6&&_0x260842[_0x1ea5f7]['isAdded']||'isAdded'==_0x4105e6&&_0x260842[_0x1ea5f7]['isRemoved'])continue;if('text'==_0x260842[_0x1ea5f7]['type']){_0x260842[_0x1ea5f7]['distance']=0x0;continue;}const _0x208656=_0x942084['get'](_0x260842[_0x1ea5f7]['pairId']),_0x5232ae=_0x942084['get'](_0x260842[_0x1ea5f7]['id']);_0x260842[_0x1ea5f7]['distance']=_0x208656-_0x5232ae;}}['_getRevisionsRange'](_0x136651,_0x562ef8,_0xfbf697=!0x1){const _0x43a889=[];let _0x4b4f6c=this['repository']['getIndex'](_0x136651),_0x26683a=this['repository']['getIndex'](_0x562ef8);for(-0x1==_0x26683a&&(_0x26683a=this['repository']['_revisions']['length'],_0xfbf697=!0x1);_0x4b4f6c<_0x26683a;)_0x43a889['push'](this['repository']['getRevision'](_0x4b4f6c)),_0x4b4f6c++;return _0xfbf697&&_0x43a889['push'](this['repository']['getRevision'](_0x4b4f6c)),_0x43a889;}['_threeWayMerge'](_0x1c6b86,_0x44b8af,_0x1cad40,_0x1b193b){const _0x40b57c=this['editor']['model']['schema'];let _0x3765db=_0x44b8af;for(;_0x1c6b86[_0x3765db]&&_0x1c6b86[_0x3765db]['isAdded'];)_0x3765db++;let _0xddd89e=_0x1b193b;for(;_0x1cad40[_0xddd89e]&&_0x1cad40[_0xddd89e]['isRemoved'];)_0xddd89e++;_0x379fcc(_0x1c6b86,_0x44b8af,_0x3765db),_0x379fcc(_0x1cad40,_0x1b193b,_0xddd89e);const _0xddcd30=_0x1cad40['slice'](_0x1b193b,_0xddd89e)['concat'](_0x1c6b86['slice'](_0x44b8af,_0x3765db));return _0xddcd30['sort']((_0x598038,_0x3c12a5)=>_0x598038['side']!=_0x3c12a5['side']?_0x598038['side']-_0x3c12a5['side']:_0x598038['level']!=_0x3c12a5['level']?_0x598038['level']-_0x3c12a5['level']:_0x598038['distance']!=_0x3c12a5['distance']?_0x3c12a5['distance']-_0x598038['distance']:!!_0x598038['isAdded']!=!!_0x3c12a5['isAdded']?-0x1==_0x598038['side']||0x0==_0x598038['side']?_0x598038['isAdded']?-0x1:0x1:_0x598038['isAdded']?0x1:-0x1:_0x598038['index']-_0x3c12a5['index']),{'commonTape':_0xddcd30,'iEnd':_0x3765db,'jEnd':_0xddd89e};function _0x379fcc(_0x482e8d,_0x497441,_0x42e281){let _0x53ca68=-0x1,_0x3fb738=Number['POSITIVE_INFINITY'],_0x4f6825=!0x0;for(let _0x5b688f=_0x497441;_0x5b688f<_0x42e281;_0x5b688f++)if(_0x40b57c['isInline'](_0x482e8d[_0x5b688f]['item'])||(_0x4f6825=!0x1),_0x482e8d[_0x5b688f]['item']['startIndex']<_0x497441&&(_0x53ca68=_0x5b688f),_0x482e8d[_0x5b688f]['item']['endIndex']>=_0x42e281){_0x3fb738=_0x5b688f;break;}_0x4f6825&&(_0x53ca68=_0x42e281-0x1);for(let _0x7b62fa=_0x497441;_0x7b62fa<_0x42e281;_0x7b62fa++)_0x482e8d[_0x7b62fa]['side']=_0x7b62fa<=_0x53ca68?-0x1:_0x7b62fa<_0x3fb738?0x0:0x1,_0x482e8d[_0x7b62fa]['index']=_0x7b62fa;let _0x4d996c=0x0;for(let _0x342b6c=_0x497441;_0x342b6c<=_0x53ca68;_0x342b6c++)0x0==_0x482e8d[_0x342b6c]['distance']?_0x482e8d[_0x342b6c]['level']=_0x4d996c:(_0x4d996c++,_0x482e8d[_0x342b6c]['level']=_0x4d996c,_0x4d996c++);for(let _0x2c6f3b=_0x497441;_0x2c6f3b<_0x42e281;_0x2c6f3b++)0x0==_0x482e8d[_0x2c6f3b]['side']&&(_0x482e8d[_0x2c6f3b]['level']=_0x4d996c);_0x4d996c=0x0;for(let _0x3ebaec=_0x42e281-0x1;_0x3ebaec>=_0x3fb738;_0x3ebaec--)0x0==_0x482e8d[_0x3ebaec]['distance']?_0x482e8d[_0x3ebaec]['level']=_0x4d996c:(_0x4d996c--,_0x482e8d[_0x3ebaec]['level']=_0x4d996c,_0x4d996c--);}}['_fixObsoleteTags'](_0x3f6ef6){const _0x1398fd=new Map(),_0x33412f=this['editor']['model']['schema'];for(let _0x58e27f=0x1;_0x58e27f<_0x3f6ef6['length'];_0x58e27f++){let _0x262313,_0x19ca8c,_0x269fd6;const _0x72dbef=_0x3f6ef6[_0x58e27f],_0x58ef48=_0x3f6ef6[_0x58e27f-0x1];if('text'==_0x72dbef['type'])continue;if(_0x72dbef['type']!=_0x58ef48['type'])continue;if(!_0x33412f['isBlock'](_0x58ef48['item'])||_0x33412f['isLimit'](_0x58ef48['item']))continue;if(!_0x33412f['isBlock'](_0x72dbef['item'])||_0x33412f['isLimit'](_0x72dbef['item']))continue;if((_0x3f6ef6[_0x58e27f]['isAdded']||_0x3f6ef6[_0x58e27f]['isAddSuggestion'])&&_0x3f6ef6[_0x58e27f-0x1]['isRemoved'])_0x262313=_0x3f6ef6[_0x58e27f],_0x19ca8c=_0x3f6ef6[_0x58e27f-0x1],_0x269fd6=_0x58e27f-0x1;else{if(!_0x3f6ef6[_0x58e27f]['isRemoved']||!_0x3f6ef6[_0x58e27f-0x1]['isAdded']&&!_0x3f6ef6[_0x58e27f-0x1]['isAddSuggestion'])continue;_0x262313=_0x3f6ef6[_0x58e27f-0x1],_0x19ca8c=_0x3f6ef6[_0x58e27f],_0x269fd6=_0x58e27f;}const _0x30f530=_0x262313['level']==_0x19ca8c['level'],_0x47dc5d=Math['abs'](_0x262313['level'])<Math['abs'](_0x19ca8c['level'])&&0x0==_0x19ca8c['distance'];(_0x30f530||_0x47dc5d)&&(_0x1398fd['set'](_0x19ca8c['id'],_0x262313['id']),_0x3f6ef6['splice'](_0x269fd6,0x1),_0x58e27f--,_0x262313['isAdded']=!0x1);}for(let _0x5ebf59=0x0;_0x5ebf59<_0x3f6ef6['length'];_0x5ebf59++)_0x1398fd['has'](_0x3f6ef6[_0x5ebf59]['pairId'])&&(_0x3f6ef6[_0x5ebf59]['pairId']=_0x1398fd['get'](_0x3f6ef6[_0x5ebf59]['pairId']));}['_removeMissingPairs'](_0x4c50e5){const _0x440c16=new Set(_0x4c50e5['map'](_0x1afb01=>_0x1afb01['id']));for(let _0x12c73c=0x0;_0x12c73c<_0x4c50e5['length'];_0x12c73c++)_0x440c16['has'](_0x4c50e5[_0x12c73c]['pairId'])||0x0==_0x4c50e5[_0x12c73c]['distance']||(_0x4c50e5[_0x12c73c]['isIncorrect']=!0x0);return _0x4c50e5['filter'](_0x1779df=>!_0x1779df['isIncorrect']);}['_markMismatchedRemovedTags'](_0x586172){const _0x51fc22=new Set();for(let _0x19ee99=0x0;_0x19ee99<_0x586172['length'];_0x19ee99++){if(_0x51fc22['has'](_0x586172[_0x19ee99]['id'])&&_0x586172[_0x19ee99]['isRemoved']&&(_0x586172[_0x19ee99]['isIncorrect']=!0x0),_0x586172[_0x19ee99]['isIncorrect'])continue;if(0x0==_0x586172[_0x19ee99]['distance'])continue;if('elementStart'!=_0x586172[_0x19ee99]['type'])continue;if(null==_0x586172[_0x19ee99]['pairId'])continue;let _0x2977f5=_0x19ee99+0x1,_0x3c0de8=0x0;for(;_0x586172[_0x2977f5]['id']!=_0x586172[_0x19ee99]['pairId'];)'elementStart'==_0x586172[_0x2977f5]['type']?_0x3c0de8++:'elementEnd'==_0x586172[_0x2977f5]['type']&&_0x3c0de8--,_0x2977f5++;if(0x0!=_0x3c0de8){if(_0x586172[_0x19ee99]['isRemoved'])_0x586172[_0x19ee99]['isIncorrect']=!0x0;else{for(;_0x2977f5!=_0x19ee99;)_0x586172[_0x2977f5]['isRemoved']&&0x0!=_0x586172[_0x2977f5]['distance']&&(_0x586172[_0x2977f5]['isIncorrect']=!0x0,_0x51fc22['add'](_0x586172[_0x2977f5]['pairId'])),_0x2977f5--;}}}return _0x586172['filter'](_0x1cff32=>!_0x1cff32['isIncorrect']);}['_removeUnsupportedChanges'](_0x362926){const _0x5201b4=this['editor']['model']['schema'];for(let _0x3da337=0x0;_0x3da337<_0x362926['length'];_0x3da337++){if(!(_0x362926[_0x3da337]['isAdded']||_0x362926[_0x3da337]['isAddSuggestion']||_0x362926[_0x3da337]['isRemoved']||_0x362926[_0x3da337]['isRemoveSuggestion']))continue;if(0x0==_0x362926[_0x3da337]['distance'])continue;const _0x418c74=_0x362926[_0x3da337]['item'];_0x5201b4['isBlock'](_0x418c74)||_0x5201b4['isLimit'](_0x418c74)||(_0x362926[_0x3da337]['isAdded']&&delete _0x362926[_0x3da337]['isAdded'],_0x362926[_0x3da337]['isAddSuggestion']&&delete _0x362926[_0x3da337]['isAddSuggestion'],_0x362926[_0x3da337]['isRemoveSuggestion']&&delete _0x362926[_0x3da337]['isRemoveSuggestion'],_0x362926[_0x3da337]['isRemoved']&&(_0x362926[_0x3da337]['isIncorrect']=!0x0));}return _0x362926['filter'](_0x19afc3=>!_0x19afc3['isIncorrect']);}['_makeModelFromTape'](_0x593f67,_0x42dba8,_0x811d2a){const _0x43f570=new _0x1017e4(),_0x362d72=[],_0x564114=new Map(),_0x467411=this['editor']['model'],_0x5084b5=_0x467411['schema'],_0x33d430=[_0x43f570],_0x46a4fa={},_0x14208e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x81162a=null;const _0x1fd6bb=[0x0];for(let _0x49bddd=0x0;_0x49bddd<_0x593f67['length'];_0x49bddd++)if('elementStart'===_0x593f67[_0x49bddd]['type']){_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb);const _0x3d9375=new _0x149c78(_0x593f67[_0x49bddd]['item']['name'],_0x593f67[_0x49bddd]['item']['getAttributes']());_0x33d430[0x0]['_appendChild'](_0x3d9375),_0x1fd6bb['push'](0x0),_0x33d430['unshift'](_0x3d9375),_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb);}else'elementEnd'===_0x593f67[_0x49bddd]['type']?(_0x33d430['shift'](),_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb),_0x1fd6bb['pop'](),_0x1fd6bb[_0x1fd6bb['length']-0x1]++,_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb)):(_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb),_0x81162a?_0x81162a['_data']+=_0x593f67[_0x49bddd]['item']['data']:_0x81162a=new _0xfc39de(_0x593f67[_0x49bddd]['item']['data'],_0x593f67[_0x49bddd]['item']['getAttributes']()),_0x593f67[_0x49bddd+0x1]&&'text'===_0x593f67[_0x49bddd+0x1]['type']&&_0x15e957(_0x81162a,_0x593f67[_0x49bddd+0x1]['item'])||(_0x33d430[0x0]['_appendChild'](_0x81162a),_0x81162a=null),_0x1fd6bb[_0x1fd6bb['length']-0x1]+=_0x593f67[_0x49bddd]['item']['offsetSize'],_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb));for(let _0x2093b8=0x0;_0x2093b8<_0x593f67['length'];_0x2093b8++){const _0x54004a=_0x593f67[_0x2093b8]['previousPosition'],_0x2c1aac=_0x593f67[_0x2093b8]['nextPosition'];for(const _0xcd8a70 of _0x593f67[_0x2093b8]['markersStart'])_0x564114['set'](_0xcd8a70,{'start':_0x54004a,'end':null});_0x6ec5e6('isRemoveSuggestion',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isAddSuggestion',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isRemoved',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isAdded',_0x2093b8,_0x54004a,_0x2c1aac);for(const _0x4be0bc of _0x593f67[_0x2093b8]['markersEnd']){const _0x4bdb5e=_0x564114['get'](_0x4be0bc);_0x4bdb5e?_0x4bdb5e['end']=_0x2c1aac:_0x564114['set'](_0x4be0bc,{'start':_0x2c1aac,'end':_0x2c1aac});}}for(const [_0x5b8212,_0x2b1d78]of _0x564114){const _0x169b78=this['editor']['model']['createRange'](_0x2b1d78['start'],_0x2b1d78['end']);_0x43f570['markers']['set'](_0x5b8212,_0x169b78);}return _0x362d72['sort']((_0xc3ded1,_0x52d5bc)=>{const _0x175e46=_0x43f570['markers']['get']('revision:'+_0xc3ded1['id']),_0x5e81f2=_0x43f570['markers']['get']('revision:'+_0x52d5bc['id']);return _0x175e46['start']['isBefore'](_0x5e81f2['start'])?-0x1:_0x175e46['start']['isAfter'](_0x5e81f2['start'])?0x1:_0x175e46['end']['isBefore'](_0x5e81f2['end'])?-0x1:_0x175e46['end']['isAfter'](_0x5e81f2['end'])?0x1:'add'===_0xc3ded1['type']?-0x1:0x1;}),{'root':_0x43f570,'changes':_0x362d72};function _0x6ec5e6(_0x2ba88a,_0x13f3a6,_0x485002,_0x41d654){const _0x3af572=!!_0x593f67[_0x13f3a6][_0x2ba88a],_0x6fdc3f=_0x3af572?_0x593f67[_0x13f3a6][_0x2ba88a]['userId']:null,_0x152161=_0x13f3a6===_0x593f67['length']-0x1,_0x3f682d=_0x14208e[_0x2ba88a][0x0],_0x3bf967=_0x5084b5['isObject'](_0x593f67[_0x13f3a6]['item']);!_0x46a4fa[_0x2ba88a]&&_0x3af572?_0x46a4fa[_0x2ba88a]={'start':_0x485002,'tapeItem':_0x593f67[_0x13f3a6],'userId':_0x6fdc3f,'type':_0x2ba88a}:_0x46a4fa[_0x2ba88a]&&!_0x3af572?(_0x46a4fa[_0x2ba88a]['end']=_0x485002,_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]=null):_0x46a4fa[_0x2ba88a]&&_0x3af572&&_0x46a4fa[_0x2ba88a]['userId']!==_0x6fdc3f&&(_0x46a4fa[_0x2ba88a]['end']=_0x485002,_0x3f682d&&_0x3f682d['userId']===_0x46a4fa[_0x2ba88a]['userId']||_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]={'start':_0x485002,'tapeItem':_0x593f67[_0x13f3a6],'userId':_0x6fdc3f,'type':_0x2ba88a}),_0x46a4fa[_0x2ba88a]&&_0x3bf967&&('elementStart'!==_0x593f67[_0x13f3a6]['type']||_0x3f682d&&_0x3f682d['userId']===_0x6fdc3f||_0x14208e[_0x2ba88a]['unshift']({'userId':_0x6fdc3f,'object':_0x593f67[_0x13f3a6]['item'],'change':_0x46a4fa[_0x2ba88a]}),'elementEnd'===_0x593f67[_0x13f3a6]['type']&&_0x3f682d&&_0x3f682d['object']===_0x593f67[_0x13f3a6]['item']&&(_0x14208e[_0x2ba88a]['shift'](),_0x46a4fa[_0x2ba88a]=_0x3f682d['change'])),_0x46a4fa[_0x2ba88a]&&_0x152161&&(_0x46a4fa[_0x2ba88a]['end']=_0x41d654,_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]=null);}function _0x338799({start:_0x1c4b0b,end:_0x518bba,tapeItem:_0x235e03,userId:_0x3b790c,type:_0x556388}){const _0x12ccb0=_0x235e03['item'],_0x51db59=_0x467411['schema']['isBlock'](_0x12ccb0)&&!_0x467411['schema']['isLimit'](_0x12ccb0),_0x4a8b1f=_0x1c4b0b['nodeAfter']==_0x518bba['parent']&&_0x518bba['isAtStart'];if(_0x51db59&&_0x4a8b1f)return;const _0x74c009=_0x467411['createRange'](_0x1c4b0b,_0x518bba),_0x27b617=_0x42dba8['get'](_0x3b790c),_0x4fb2ca=new G({'author':_0x27b617,'type':'isAdded'==_0x556388||'isAddSuggestion'==_0x556388?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x556388||'isRemoveSuggestion'==_0x556388},'createdAt':new Date(),'rootName':_0x811d2a});_0x362d72['push'](_0x4fb2ca),_0x43f570['markers']['set']('revision:'+_0x4fb2ca['id'],_0x74c009);}function _0x15e957(_0x568734,_0x3e43c9){const _0x31ea40=_0x568734['getAttributes'](),_0x55d58a=_0x3e43c9['getAttributes']();for(const _0x13f4ac of _0x31ea40){if(_0x13f4ac[0x1]!==_0x3e43c9['getAttribute'](_0x13f4ac[0x0]))return!0x1;_0x55d58a['next']();}return _0x55d58a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x31849f=>{const _0x2c29e4=_0x31849f['markerName']['split'](':')[0x1],_0x59b8d0=this['_getChangeFromId'](_0x2c29e4);if(!_0x59b8d0)return null;const _0x2e9fc2='add'==_0x59b8d0['type']?'insertion':'deletion',_0x229273=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2e9fc2];return _0x59b8d0['data']['isSuggestion']&&_0x229273['push']('ck-suggestion-marker-'+_0x2e9fc2+'-new'),this['activeChange']==_0x59b8d0&&_0x229273['push']('ck-suggestion-marker--active'),{'classes':_0x229273,'attributes':{'data-change-id':_0x2c29e4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x390fc2=>{_0x390fc2['on']('element:pre',(_0x820632,_0x8f9445,_0x429fb6)=>{const _0x542a49=_0x8f9445['viewItem']['getChild'](0x0);if(!_0x542a49||!_0x542a49['is']('element','code'))return;if(!_0x429fb6['consumable']['consume'](_0x542a49,{'attributes':['vid_start','vid_end']}))return;const _0x37c9eb=_0x8f9445['modelRange']['start']['nodeAfter'];_0x429fb6['writer']['setAttribute']('vid_start',_0x542a49['getAttribute']('vid_start'),_0x37c9eb),_0x429fb6['writer']['setAttribute']('vid_end',_0x542a49['getAttribute']('vid_end'),_0x37c9eb);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xcae4e1=>{_0xcae4e1['on']('element',(_0x5a2863,_0x2b033f,_0x377010)=>{if(!_0x377010['consumable']['consume'](_0x2b033f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b033f['modelRange']['isCollapsed'])return;const _0x224546=_0x2b033f['modelRange']['start']['nodeAfter'];_0x224546['hasAttribute']('vid_start')||_0x224546['hasAttribute']('vid')||(_0x377010['writer']['setAttribute']('vid_start',_0x2b033f['viewItem']['getAttribute']('vid_start'),_0x224546),_0x377010['writer']['setAttribute']('vid_end',_0x2b033f['viewItem']['getAttribute']('vid_end'),_0x224546));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x22dbb4=>_0x22dbb4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x39d7e8,[,_0x3e9776])=>{['vid_start','vid_end','vid']['includes'](_0x3e9776)&&(_0x39d7e8['return']=!0x0,_0x39d7e8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x446d18=>{_0x446d18['on']('attribute:vid',(_0x4f976c,_0x5a62b9,_0x1a5e4d)=>{if('\x20'!=_0x5a62b9['item']['data']||_0x5a62b9['item']['parent']['maxOffset']>0x1)return;if(!_0x1a5e4d['consumable']['consume'](_0x5a62b9['item'],_0x4f976c['name']))return;const _0x35e0ec=_0x1a5e4d['writer'],_0x52909c=_0x1a5e4d['mapper']['toViewRange'](_0x5a62b9['range']);_0x35e0ec['wrap'](_0x52909c,_0x35e0ec['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x175a31){const _0x525100=_0x175a31['plugins']['get']('RevisionViewer');return(_0x259e0b,_0x129ae4,_0x31b884)=>{const _0x249adc=_0x129ae4['markerName']['split'](':')[0x1],_0xc1965c=_0x525100['_getChangeFromId'](_0x249adc);if(!_0xc1965c)return null;const _0x5db56e='add'==_0xc1965c['type']?'split':'merge';if(!_0x31b884['consumable']['test'](_0x129ae4['markerRange'],_0x259e0b['name']))return;const _0x223459=_0x129ae4['markerRange']['getWalker'](),_0x3a1c0a=_0x129ae4['markerRange']['start'],_0x572ba1=_0x175a31['model']['schema'];let _0x5036db=null,_0x3765ab=null,_0x214c9f=!0x1,_0x49fdf2=!0x1;for(const _0x43dc69 of _0x223459){const _0x1a2b7d=_0x43dc69['item'];_0x214c9f=_0x214c9f||_0x572ba1['isContent'](_0x1a2b7d);const _0x290866=_0x31b884['mapper']['toViewElement'](_0x1a2b7d);if(_0x290866&&_0x290866['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43dc69['type']&&(_0x572ba1['isBlock'](_0x1a2b7d)&&!_0x572ba1['isLimit'](_0x1a2b7d)&&(_0x1a2b7d['nextSibling']||_0x3a1c0a['isAtEnd']?_0x5036db&&_0x5036db['parent']==_0x1a2b7d||(_0x5036db=_0x1a2b7d,_0x5a619a(_0x43dc69['previousPosition']),_0x49fdf2=!0x0):_0x3765ab=_0x3765ab||_0x43dc69['previousPosition']));}function _0x5a619a(_0x366942){const _0x298978=_0x31b884['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5db56e}),_0x49f9a8=_0x31b884['mapper']['toViewPosition'](_0x366942);_0xc1965c['data']['isSuggestion']&&_0x31b884['writer']['addClass']('ck-suggestion-marker-'+_0x5db56e+'-new',_0x298978),_0x525100['activeChange']==_0xc1965c&&_0x31b884['writer']['addClass']('ck-suggestion-marker--active',_0x298978),_0x31b884['writer']['insert'](_0x49f9a8,_0x298978),_0x31b884['mapper']['bindElementToMarker'](_0x298978,_0x129ae4['markerName']);}_0x214c9f||_0x49fdf2||!_0x3765ab||_0x5a619a(_0x3765ab);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x43f77a,_0x398991,_0x861f16)=>{const _0xfa226=_0x861f16['mapper']['markerNameToElements'](_0x398991['markerName']);if(_0xfa226){for(const _0x54cc7c of _0xfa226)(_0x54cc7c['hasClass']('ck-suggestion-marker-split')||_0x54cc7c['hasClass']('ck-suggestion-marker-merge'))&&(_0x861f16['mapper']['unbindElementFromMarkerName'](_0x54cc7c,_0x398991['markerName']),_0x861f16['writer']['remove'](_0x54cc7c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26d410,_0x23c80b,_0x57dc32)=>{const _0x319e38=_0x23c80b['markerName']['split'](':')[0x1],_0x8ba4fb=this['_getChangeFromId'](_0x319e38);if(!_0x8ba4fb)return null;const _0x56a0c4='add'==_0x8ba4fb['type']?'split':'merge';if(_0x57dc32['consumable']['test'](_0x23c80b['markerRange'],_0x26d410['name']))for(const _0x2e3669 of _0x23c80b['markerRange']['getItems']()){if(!_0x2e3669['is']('element','softBreak'))continue;const _0x3d1409=_0x57dc32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56a0c4}),_0x5372bd=_0x57dc32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e3669));_0x8ba4fb['data']['isSuggestion']&&_0x57dc32['writer']['addClass']('ck-suggestion-marker-'+_0x56a0c4+'-new',_0x3d1409),this['activeChange']==_0x8ba4fb&&_0x57dc32['writer']['addClass']('ck-suggestion-marker--active',_0x3d1409),_0x57dc32['writer']['insert'](_0x5372bd,_0x3d1409),_0x57dc32['mapper']['bindElementToMarker'](_0x3d1409,_0x23c80b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5bb0f5=>{for(const _0x280c2e of this['editor']['model']['document']['getRootNames']()){const _0x44d37e=this['editor']['model']['document']['getRoot'](_0x280c2e),_0x2ddc25=this['editor']['editing']['view']['document']['getRoot'](_0x280c2e);if(_0x2ddc25){const _0x4bf2b3=_0x44d37e['getAttribute']('revisionHistoryAttachChange');if(_0x5bb0f5['removeAttribute']('data-change-id',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root-add',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root-remove',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root--active',_0x2ddc25),_0x4bf2b3){const _0x4669a8=this['_getChangeFromId'](_0x4bf2b3);if(!_0x4669a8)return null;_0x5bb0f5['setAttribute']('data-change-id',_0x4bf2b3,_0x2ddc25),_0x5bb0f5['addClass']('ck-revision-history-root-'+_0x4669a8['type'],_0x2ddc25),this['activeChange']==_0x4669a8&&_0x5bb0f5['addClass']('ck-revision-history-root--active',_0x2ddc25);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39c392=>'revision-comment:'+_0x39c392,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3d53b5=>'revision-suggestion:'+_0x3d53b5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x57393d=>({'name':'suggestion:'+_0x57393d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x506f24=>{const _0x2753c3=_0x506f24['markerName']['split'](':')[0x1];return'insertion'!=_0x2753c3&&'deletion'!=_0x2753c3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2753c3]};}}),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',(_0x13a809,_0x3c6acf,_0x211fa3)=>{const _0x4bf985=_0x211fa3['mapper']['markerNameToElements'](_0x3c6acf['markerName']);if(_0x4bf985){for(const _0xc8d888 of _0x4bf985)_0xc8d888['is']('uiElement')&&(_0x211fa3['mapper']['unbindElementFromMarkerName'](_0xc8d888,_0x3c6acf['markerName']),_0x211fa3['writer']['remove'](_0xc8d888));}},{'priority':'high'});}['_getChangeFromId'](_0xb0b473){return this['_changeIdToChange']['get'](_0xb0b473);}['_getViewForChange'](_0x350ab6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x350ab6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x271259,_0x581916,_0x55aabb,_0x581b91)=>{_0x581b91&&this['_balloon']['remove'](_0x581b91),_0x55aabb&&(this['_balloon']['add']({'view':_0x55aabb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4f2480=this['editor']['editing'],_0x332043=this['_getChangeFromId'](_0x55aabb['changeId']);let _0x4a27ef;if(_0x332043['data']['isOnRoot']){const _0x4422f8=_0x4f2480['view']['getDomRoot'](_0x332043['rootName']);_0x4a27ef=Array['from'](_0x4422f8['getClientRects']());}else{const _0x5c9f30=this['editor']['model']['markers']['get']('revision:'+_0x55aabb['changeId']);_0x4a27ef=Array['from'](_0x4f2480['mapper']['markerNameToElements'](_0x5c9f30['name']))['map'](_0x45090e=>_0x4f2480['view']['domConverter']['mapViewToDom'](_0x45090e))['map'](_0x295dda=>Array['from'](_0x295dda['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4a27ef[0x0];return _0x4a27ef['find'](_0x585fca=>_0x585fca['top']-0x3<=this['_activeViewTarget']['y']&&_0x585fca['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x585fca['left']-0x3<=this['_activeViewTarget']['x']&&_0x585fca['right']+0x3>=this['_activeViewTarget']['x'])||_0x4a27ef[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c51ca,_0x376bf5,_0x385e82,_0x86e14e)=>{this['activeView']=_0x385e82?this['_getViewForChange'](_0x385e82):null,this['editor']['model']['change'](()=>{const _0x83a60f=this['editor']['editing'];_0x86e14e&&(_0x86e14e['data']['isOnRoot']?_0x83a60f['view']['change'](_0x28d6db=>{_0x28d6db['removeClass']('ck-revision-history-root--active',_0x83a60f['view']['document']['getRoot'](_0x86e14e['rootName']));}):_0x83a60f['reconvertMarker']('revision:'+_0x86e14e['id'])),_0x385e82&&(_0x385e82['data']['isOnRoot']?_0x83a60f['view']['change'](_0x116cbb=>{_0x116cbb['addClass']('ck-revision-history-root--active',_0x83a60f['view']['document']['getRoot'](_0x385e82['rootName']));}):_0x83a60f['reconvertMarker']('revision:'+_0x385e82['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x11576c,_0x450684)=>{if(this['activeChange'])return;const _0x4398e5=this['_findChangeIdFromDomTarget'](_0x450684['target']),_0x57528c=this['_changeIdToChange']['get'](_0x4398e5);_0x57528c?(this['_activeViewTarget']={'x':_0x450684['domEvent']['x'],'y':_0x450684['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x57528c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x35056b,_0x36ae2b)=>{const _0x1426cd=this['_findChangeIdFromDomTarget'](_0x36ae2b['target']),_0x41e3d7=this['_changeIdToChange']['get'](_0x1426cd);_0x41e3d7?(this['_activeViewTarget']={'x':_0x36ae2b['domEvent']['x'],'y':_0x36ae2b['domEvent']['y']},_0x41e3d7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x41e3d7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c6d52){do{const _0x31c4d9=_0x4c6d52['getAttribute']('data-change-id');if(_0x31c4d9)return _0x31c4d9;_0x4c6d52=_0x4c6d52['parent'];}while(_0x4c6d52);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3269fd=>{for(const _0x138911 of this['editor']['model']['markers'])_0x3269fd['removeMarker'](_0x138911);});}}function Q(_0x5cd8e8,_0x422353){return(_0x1e4964,_0x2fb666,_0x42bde8)=>{if(!_0x42bde8['consumable']['test'](_0x2fb666['markerRange'],_0x1e4964['name']))return;const _0x6e86a4=_0x2fb666['markerRange']['getWalker'](),_0x4e643b=_0x2fb666['markerRange']['start'],_0x78224e=_0x5cd8e8['model']['schema'];let _0x166a2d=null,_0x1f256e=null,_0xfb04bd=!0x1,_0x5a0e7c=!0x1;for(const _0x4da050 of _0x6e86a4){const _0x2b9d17=_0x4da050['item'];_0xfb04bd=_0xfb04bd||_0x78224e['isContent'](_0x2b9d17);const _0x2005ed=_0x42bde8['mapper']['toViewElement'](_0x2b9d17);if(_0x2005ed&&_0x2005ed['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4da050['type']&&(_0x78224e['isBlock'](_0x2b9d17)&&!_0x78224e['isLimit'](_0x2b9d17)&&(_0x2b9d17['nextSibling']||_0x4e643b['isAtEnd']?_0x166a2d&&_0x166a2d['parent']==_0x2b9d17||(_0x166a2d=_0x2b9d17,_0x336cd4(_0x4da050['previousPosition']),_0x5a0e7c=!0x0):_0x1f256e=_0x1f256e||_0x4da050['previousPosition']));}function _0x336cd4(_0x27fe0c){const _0x701cde=_0x42bde8['mapper']['toViewPosition'](_0x27fe0c),_0x4f6948=_0x42bde8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x422353});_0x42bde8['writer']['insert'](_0x701cde,_0x4f6948),_0x42bde8['mapper']['bindElementToMarker'](_0x4f6948,_0x2fb666['markerName']);}_0xfb04bd||_0x5a0e7c||!_0x1f256e||_0x336cd4(_0x1f256e);};}class nt extends _0x17f1c5{constructor(_0x4e8a6c){super(_0x4e8a6c);const _0x4a1fad=_0x4e8a6c['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4a1fad,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a1fad,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xf66660=this['editor'],_0x4bfbe0=_0xf66660['plugins']['get'](l),_0x4076bb=_0x4bfbe0['isReady']?_0x4bfbe0['diff']['newRevisionId']:null;_0xf66660['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4076bb);}['refresh'](){const {isReady:_0x4a301a,isEnabled:_0x1f610b,repository:_0x2d8f3f,diff:_0x1ba88f}=this['editor']['plugins']['get'](l),_0x18a74e=_0x1ba88f&&_0x2d8f3f['getLaterVisibleRevision'](_0x1ba88f['newRevisionId']);this['isEnabled']=_0x4a301a&&_0x1f610b&&Boolean(_0x18a74e);}}class rt extends _0x17f1c5{['_step'];constructor(_0x3abfa7,{direction:_0x408d42}){super(_0x3abfa7);const _0x360038=_0x3abfa7['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x408d42?0x1:-0x1,this['listenTo'](_0x360038,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x360038,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x360038,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ae124=this['editor'],_0x2cf73a=_0x2ae124['plugins']['get'](l),{isNavigationMode:_0x5ef789,currentChangeNumber:_0x43cf21}=_0x2cf73a;let _0x2341a4;if(_0x2cf73a['activeChange']=_0x5ef789?_0x2cf73a['diff']['changes']['get'](_0x43cf21+this['_step']):_0x2cf73a['diff']['changes']['first'],_0x2cf73a['activeChange']['data']['isOnRoot'])_0x2341a4=_0x2ae124['editing']['view']['getDomRoot'](_0x2cf73a['activeChange']['rootName']);else{const _0x25109e=_0x2ae124['model']['markers']['get']('revision:'+_0x2cf73a['activeChange']['id']);_0x2341a4=_0x5ea7c3(_0x2ae124['editing'],_0x25109e);}_0x278709({'target':_0x2341a4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5002d3,currentChangeNumber:_0x3c8fdb,numberOfChanges:_0xfde6bc,isReady:_0x458633,isEnabled:_0x28b8ae}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x28b8ae&&_0x458633&&_0xfde6bc)&&(!_0x5002d3||(0x1===this['_step']?_0x3c8fdb<_0xfde6bc-0x1:_0x3c8fdb>0x0));}}class vi extends _0x5372f9{constructor(_0x23711b){super(_0x23711b);const _0x39a5cb=this['bindTemplate'],_0x522922=new _0x4c294d(_0x23711b),_0x49f4a1=new _0x4c294d(_0x23711b);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',(_0x15415f,_0x515127)=>_0x15415f&&_0x515127>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b23a9,_0x1d10d8,_0x2808ba,_0x9a328e)=>{if(!_0x4b23a9)return R(_0x23711b,'Loading...');if(!_0x2808ba)return R(_0x23711b,'No\x20changes');const _0x3092a5=R(_0x23711b,'NUMBER_OF_CHANGES',_0x2808ba);return _0x9a328e?R(_0x23711b,'X_OF_Y_CHANGES',[_0x1d10d8+0x1,_0x2808ba]):_0x3092a5;}),_0x522922['set']({'label':R(_0x23711b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x561579}),_0x49f4a1['set']({'label':R(_0x23711b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x41c34d}),_0x522922['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x49f4a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x522922['on']('execute',()=>this['fire']('execute','backward')),_0x49f4a1['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',_0x39a5cb['if']('_isStatusLabelVisible','ck-hidden',_0x5c23bd=>!_0x5c23bd)]},'children':[{'text':_0x39a5cb['to']('isNavigationMode',_0x232dce=>_0x232dce?R(_0x23711b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x23711b,'Total')+':\x20')}]},{'text':_0x39a5cb['to']('_statusText')}]},new _0x268ae1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x522922,_0x49f4a1]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x40d69e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x911044=this['editor']['editing']['view'];_0x911044['change'](_0x2d3759=>{for(const _0x593f2c of _0x911044['document']['roots'])_0x2d3759['addClass'](oe,_0x593f2c);});}['hide'](){const _0x1889a8=this['editor']['editing']['view'];_0x1889a8['change'](_0x40d980=>{for(const _0x28bdde of _0x1889a8['document']['roots'])_0x40d980['removeClass'](oe,_0x28bdde);});}}class u extends _0x40d69e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,wi];}['init'](){const _0x1b4622=this['editor'],_0x1114d9=_0x1b4622['plugins']['get'](l),_0x488229=_0x1b4622['plugins']['get'](wi);_0x1b4622['ui']['componentFactory']['add']('exitToEditing',_0x4a31c5=>{const _0x3be821=new _0x4c294d(_0x4a31c5);return _0x3be821['set']({'label':R(_0x4a31c5,'Back\x20to\x20editing'),'icon':_0x2ee9fb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3be821,'execute',()=>{_0x1b4622['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3be821;}),_0x1b4622['ui']['componentFactory']['add']('restoreRevision',_0x544b21=>{const _0xde0dfb=new _0x4c294d(_0x544b21);return _0xde0dfb['set']({'label':R(_0x544b21,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xde0dfb['bind']('isEnabled')['to'](_0x1b4622['commands']['get']('restoreRevision')),this['listenTo'](_0xde0dfb,'execute',()=>_0x1b4622['execute']('restoreRevision')),_0xde0dfb;}),_0x1b4622['ui']['componentFactory']['add']('changesNavigation',_0x4ce24e=>{const _0x35aade=new vi(_0x4ce24e),_0x437e07=_0x1b4622['commands']['get']('showPreviousChange'),_0x5a71e0=_0x1b4622['commands']['get']('showNextChange');return _0x35aade['bind']('isBackwardNavigationEnabled')['to'](_0x437e07,'isEnabled'),_0x35aade['bind']('isForwardNavigationEnabled')['to'](_0x5a71e0,'isEnabled'),_0x35aade['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1114d9),this['listenTo'](_0x35aade,'execute',(_0x13f1fe,_0x3ab782)=>{_0x1b4622['execute']('forward'===_0x3ab782?'showNextChange':'showPreviousChange');}),_0x35aade;}),_0x488229['show'](),_0x1114d9['on']('change:isReady',(_0x324d1c,_0x1c9639,_0x33217d)=>{_0x33217d?_0x488229['hide']():_0x488229['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5b23b6,_0x5d9089){super(_0x5b23b6,_0x5d9089);const _0x3575c5=this['bindTemplate'];this['set']({'label':R(_0x5b23b6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5b23b6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3575c5['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 _0x40447e=this['fieldView']['element'];this['_tooltipString']=_0x40447e['scrollWidth']>_0x40447e['clientWidth']&&_0x40447e['value']||'';}}class ni extends _0x5372f9{constructor(_0x434764,_0x92ab74,_0x5c2856){super(_0x434764);const _0x354f3e=new _0x2e6b9e();_0x354f3e['set']({'content':_0x4023b9,'viewBox':'0\x200\x2011\x2010'});const _0x195993=['ck','ck-revision-history-sidebar__revision-author'];_0x5c2856&&_0x195993['push']('ck-revision-history-sidebar__revision-author_creator');const _0x589b85=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x434764,_0x5c2856?'Revision\x20creator':'Revision\x20author')},'children':[_0x354f3e,_0x92ab74['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x195993},'children':_0x589b85});}}function ci(_0x199b65,_0x15a688){const _0x416db4=_0x199b65['bindTemplate'],_0x455175=_0x199b65['locale'],_0x15a00a=_0x5bfde6(_0x455175);_0x15a00a['panelPosition']='sw';const _0x1452d8=function(_0xbb67e5,_0x21a110){const _0x523d98=function(_0x1ba6a6,_0x2e4279){const _0x13c57a=_0x1ba6a6['locale'],_0x5283e3={'Compare\x20against\x20selected':R(_0x13c57a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x13c57a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x13c57a,'Restore\x20this\x20revision')};return _0x2e4279['map'](_0xc3e847=>{const _0x4d6bca=_0x5283e3[_0xc3e847['name']];return _0x4d6bca&&_0x4d6bca!==_0xc3e847['name']&&(_0xc3e847['name']=_0x4d6bca),_0xc3e847;});}(_0xbb67e5,_0x21a110),_0x1022e8=new _0xbf5b7e();for(const _0x4b0fc7 of _0x523d98){const _0x17ebd0={'type':'button','model':new to({'label':_0x4b0fc7['name'],'class':_0x4b0fc7['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b0fc7['action']})};_0x17ebd0['model']['bind']('isEnabled')['to'](_0xbb67e5,'isActionsDropdownOpen',_0x18993f=>'function'!=typeof _0x4b0fc7['isEnabled']||(!_0x18993f||_0x4b0fc7['isEnabled'](_0xbb67e5))),_0x1022e8['add'](_0x17ebd0);}return _0x1022e8;}(_0x199b65,_0x15a688);return _0x199b65['bind']('isActionsDropdownOpen')['to'](_0x15a00a,'isOpen'),_0x15a00a['buttonView']['set']({'label':R(_0x455175,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2717e7}),_0x15a00a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x416db4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x416db4['to'](_0x2573f3=>_0x2573f3['stopPropagation']())}}),_0x15a00a['on']('execute',_0x4bee4a=>{_0x199b65['isReady']&&'function'==typeof _0x4bee4a['source']['_action']&&_0x4bee4a['source']['_action'](_0x199b65);}),_0x57d04a(_0x15a00a,_0x1452d8,{'role':'menu'}),_0x15a00a['listenTo'](_0x199b65,'change:isActionsDropdownOpen',(_0x314b5d,_0x1aa691,_0xe6ba6d)=>{if(_0xe6ba6d)for(const _0x521969 of _0x15a00a['listView']['items']){const _0xfbbe77=_0x521969['children']['first'],_0x1edf12=_0x15a688['find'](_0x199d30=>_0x199d30['action']===_0xfbbe77['_action'])['isVisible'];_0x521969['isVisible']=void 0x0===_0x1edf12||_0x1edf12(_0x199b65);}}),_0x15a00a;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x289903,uid as _0x20586a,Collection as _0x59f5e7,logWarning as _0x3c3309,FocusTracker as _0x32e82f,KeystrokeHandler as _0x2ae060,scrollViewportToShowTarget as _0x2169a9,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x58ad15}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x16a120,set as _0x5293ee,unset as _0x524457,isEqual as _0x7fe971}from'es-toolkit/compat';import{Plugin as _0x449360,PendingActions as _0x4a1cef,Command as _0x23ffae,ElementApiMixin as _0x4ce360,Editor as _0x3c7537}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3b5410,getMarkerDomElement as _0x2c7553,ConfirmMixin as _0x273059,sanitizeEditorConfig as _0x2b58ff}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x29b6ab,ViewAttributeElement as _0xcdec33,ViewEmptyElement as _0x11aef2,ViewRawElement as _0x47b735,ViewUIElement as _0x3d7a67,ViewDocumentFragment as _0x1bd535,ViewText as _0x112f9b,ViewElement as _0x3d0f2b,ModelElement as _0x4d1ea2,ModelRange as _0x4be064,ModelPosition as _0x15ef30,ModelDocumentFragment as _0x705efd,ModelText as _0x2f22b4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x507409,IconChevronUp as _0x72b043,IconChevronDown as _0x365fad,IconUndo as _0x46ae4d,IconUser as _0x4ca76a,IconThreeVerticalDots as _0x58a09d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x598ba2,View as _0x54ee3c,submitHandler as _0x2738e4,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x3b7ce8,ListView as _0x171f64,ListItemView as _0x5d7c86,ButtonView as _0x29e09a,MenuBarMenuView as _0x51e6c0,MenuBarMenuListView as _0x338638,MenuBarMenuListItemView as _0x517569,MenuBarMenuListItemButtonView as _0xcd3c27,ContextualBalloon as _0x330ba8,ToolbarSeparatorView as _0x27cc40,IconView as _0x5f31d5,addListToDropdown as _0x928c1c,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3f26bf,StickyPanelView as _0x872989,ToolbarView as _0x1972ec,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x53eb6e}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x289903(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xf6a543){super(),this['id']=_0xf6a543['id']||_0x20586a(),this['creator']=_0xf6a543['creator']||null,this['authors']=_0xf6a543['authors']||[],this['diffData']=_0xf6a543['diffData']||null,this['toVersion']=_0xf6a543['toVersion']||0x0,this['fromVersion']=_0xf6a543['fromVersion']||0x0,this['set']('name',_0xf6a543['name']||''),this['set']('createdAt',_0xf6a543['createdAt']||new Date()),this['set']('attributes',_0xf6a543['attributes']||{});}['setName'](_0x53cb5e){this['_update']({'name':_0x53cb5e});}['setAttribute'](_0x5d9b31,_0x55d40a){const _0x152e1a=_0x16a120(this['attributes']);_0x5293ee(_0x152e1a,_0x5d9b31,_0x55d40a),this['_update']({'attributes':_0x152e1a});}['removeAttribute'](_0x14c66f){const _0x2285cc=_0x16a120(this['attributes']);_0x524457(_0x2285cc,_0x14c66f),this['_update']({'attributes':_0x2285cc});}['_update'](_0x17e9a4,_0x38e97c=!0x1){let _0x3e68e1=!0x1;const _0x5bd3b6={'id':this['id']},_0x825be1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5f31d1 of _0x825be1){const _0x23bfdb=_0x17e9a4[_0x5f31d1];void 0x0!==_0x23bfdb&&_0x23bfdb!==this[_0x5f31d1]&&(this[_0x5f31d1]=_0x23bfdb,_0x5bd3b6[_0x5f31d1]=_0x23bfdb,_0x3e68e1=!0x0);}_0x3e68e1&&(_0x5bd3b6['authors']&&(_0x5bd3b6['authorsIds']=_0x5bd3b6['authors']['map'](_0x20f5b1=>_0x20f5b1['id']),delete _0x5bd3b6['authors']),this['fire']('_update',_0x5bd3b6,_0x38e97c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4c7817=>_0x4c7817['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x449360{['_revisions'];static get['requires'](){return[_0x3b5410];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x43b68b){super(_0x43b68b),this['_revisions']=new _0x59f5e7();}['afterInit'](){!async function(_0x272fbe){const _0x6a7f68=_0x268536([0x7a,0x33,0x4a,0x55,0x66,0x53,0x61,0x78,0x43,0x71,0x4f,0x41,0x39,0x54,0x69,0x4c,0x49,0x73,0x37,0x63,0x6f,0x34,0x4e,0x6e,0x31,0x64,0x6b,0x36,0x56,0x74,0x35,0x46,0x4d,0x68,0x67,0x52,0x6c,0x38,0x30,0x77,0x75,0x45,0x79,0x59,0x6d,0x42,0x70,0x32,0x48,0x72,0x76,0x47,0x65,0x6a,0x5a,0x50,0x51,0x4b,0x58,0x44,0x57,0x62]),_0x3ce6b7=0xeb829,_0x46d11b=0x70bb0800,_0x189590=0x70bc78e8^_0x46d11b,_0x2275fa=window[_0x268536([0x44,0x61,0x74,0x65])][_0x268536([0x6e,0x6f,0x77])](),_0xbcee5a=_0x272fbe[_0x268536([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b3486=new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13d080=>{_0xbcee5a[_0x268536([0x6f,0x6e,0x63,0x65])](_0x268536([0x72,0x65,0x61,0x64,0x79]),_0x13d080);}),_0x4e9f92={[_0x268536([0x6b,0x74,0x79])]:_0x268536([0x45,0x43]),[_0x268536([0x75,0x73,0x65])]:_0x268536([0x73,0x69,0x67]),[_0x268536([0x63,0x72,0x76])]:_0x268536([0x50,0x2d,0x32,0x35,0x36]),[_0x268536([0x78])]:_0x268536([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]),[_0x268536([0x79])]:_0x268536([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]),[_0x268536([0x61,0x6c,0x67])]:_0x268536([0x45,0x53,0x32,0x35,0x36])},_0x142784=_0xbcee5a[_0x268536([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x268536([0x67,0x65,0x74])](_0x268536([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x533aa7(){let _0x5c7fe9,_0x352d0a=null,_0x337f2f=null;try{if(_0x142784==_0x268536([0x47,0x50,0x4c]))return _0x268536([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c7fe9=_0x299491(),!_0x5c7fe9)return _0x268536([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c7fe9[_0x268536([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x337f2f=_0x2a07a1(_0x5c7fe9[_0x268536([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c7fe9[_0x268536([0x6a,0x74,0x69])])),await _0x48dcb0()?_0x5cfa1b()?_0x1dcdda()?_0x268536([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1146e9()?(_0x5c7fe9[_0x268536([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268536([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x352d0a=_0x334c9f(_0x268536([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c7fe9[_0x268536([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268536([0x74,0x72,0x69,0x61,0x6c])&&(_0x352d0a=_0x334c9f(_0x268536([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57d6bc()):_0x268536([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x268536([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x268536([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x268536([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dcdda(){const _0x16e62e=[_0x268536([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x268536([0x74,0x72,0x69,0x61,0x6c])][_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c7fe9[_0x268536([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2275fa/0x3e8:0xe10*_0x189590;return _0x5c7fe9[_0x268536([0x65,0x78,0x70])]<_0x16e62e;}function _0x5cfa1b(){const _0x18c2f9=_0x5c7fe9[_0x268536([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18c2f9)return!0x1;if(_0x18c2f9[_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268536([0x2a])))return!0x0;if(_0x18c2f9[_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268536([0x52,0x48])))return!0x0;if(_0x18c2f9[_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268536([0x52,0x52,0x48]))){if(_0x351e7f())return!0x0;if(_0x55a3c5()||_0x422eb2())return!0x0;}return!0x1;}function _0x1146e9(){const _0x475afe=_0x5c7fe9[_0x268536([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x475afe||0x0==_0x475afe[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x141787}=new URL(window[_0x268536([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x475afe[_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141787))return!0x0;const _0x333ca2=_0x141787[_0x268536([0x73,0x70,0x6c,0x69,0x74])](_0x268536([0x2e]));return _0x475afe[_0x268536([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c676f=>_0x5c676f[_0x268536([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268536([0x2a])))[_0x268536([0x6d,0x61,0x70])](_0x4874fd=>_0x4874fd[_0x268536([0x73,0x70,0x6c,0x69,0x74])](_0x268536([0x2e])))[_0x268536([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4efe4e=>_0x4efe4e[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x333ca2[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268536([0x6d,0x61,0x70])](_0xc30b0c=>Array(_0x333ca2[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc30b0c[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268536([0x66,0x69,0x6c,0x6c])](_0xc30b0c[0x0]===_0x268536([0x2a])?_0x268536([0x2a]):'')[_0x268536([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc30b0c))[_0x268536([0x73,0x6f,0x6d,0x65])](_0x1259b8=>_0x333ca2[_0x268536([0x65,0x76,0x65,0x72,0x79])]((_0x1f9a5e,_0x49a3d9)=>_0x1259b8[_0x49a3d9]===_0x1f9a5e||_0x1259b8[_0x49a3d9]===_0x268536([0x2a])));}function _0x57d6bc(){return _0x352d0a&&_0x337f2f?new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x392819,_0x5d39ae)=>{_0x352d0a[_0x268536([0x74,0x68,0x65,0x6e])](_0x392819,_0x5d39ae),_0x337f2f[_0x268536([0x74,0x68,0x65,0x6e])](_0x22b33e=>{_0x22b33e!=_0x268536([0x56,0x61,0x6c,0x69,0x64])&&_0x392819(_0x22b33e);},_0x5d39ae);}):_0x352d0a||_0x337f2f||_0x268536([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a07a1(_0x57f530,_0x490d3f){return new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a00a6=>{if(_0x44570b())return _0x4a00a6(_0x268536([0x56,0x61,0x6c,0x69,0x64]));_0x251144(),_0xbcee5a[_0x268536([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x268536([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32c9ec=!0x1;const _0x35c41d=_0x20586a();function _0x747b26(_0x5abc46){return!!_0x5abc46&&(typeof _0x5abc46===_0x268536([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5abc46===_0x268536([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5abc46[_0x268536([0x74,0x68,0x65,0x6e])]===_0x268536([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5abc46[_0x268536([0x63,0x61,0x74,0x63,0x68])]===_0x268536([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c21e3(_0x22ce53){_0x1de68d(_0x22ce53)[_0x268536([0x74,0x68,0x65,0x6e])](_0x50b781=>{if(!_0x50b781||_0x50b781[_0x268536([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x268536([0x6f,0x6b]))return _0x268536([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4962b4(_0x53fca3(_0x35c41d+_0x490d3f))!=_0x50b781[_0x268536([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x268536([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x268536([0x56,0x61,0x6c,0x69,0x64]);})[_0x268536([0x74,0x68,0x65,0x6e])](_0x1b2180=>(_0x11d362(),_0x1b2180),()=>{const _0x36f89=_0x567cbc();return null==_0x36f89?(_0x11d362(),_0x268536([0x56,0x61,0x6c,0x69,0x64])):_0x268536(_0x2275fa-_0x36f89>(0x54b78c00^_0x46d11b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x268536([0x74,0x68,0x65,0x6e])](_0x4a00a6)[_0x268536([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a00a6(_0x268536([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45d821=0x708de680^_0x46d11b;function _0x11d362(){const _0x55c4ca=_0x268536([0x6c,0x6c,0x63,0x74,0x2d])+_0x4962b4(_0x53fca3(_0x57f530)),_0x11b0ca=_0xcef403(_0x4962b4(window[_0x268536([0x4d,0x61,0x74,0x68])][_0x268536([0x63,0x65,0x69,0x6c])](_0x2275fa/_0x45d821)));window[_0x268536([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268536([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55c4ca,_0x11b0ca);}function _0x567cbc(){const _0x30a3f7=_0x268536([0x6c,0x6c,0x63,0x74,0x2d])+_0x4962b4(_0x53fca3(_0x57f530)),_0x18fe40=window[_0x268536([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268536([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30a3f7);return _0x18fe40?window[_0x268536([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcef403(_0x18fe40),0x10)*_0x45d821:null;}function _0x1de68d(_0x6d0b87){return new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42fe3e,_0xf698b7)=>{_0x6d0b87[_0x268536([0x74,0x68,0x65,0x6e])](_0x42fe3e,_0xf698b7),window[_0x268536([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf698b7,0x70badcc0^_0x46d11b);});}}_0xbcee5a[_0x268536([0x6f,0x6e])](_0x268536([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e6b01,_0x5ddc48)=>{if(_0x5ddc48[0x0]!=_0x57f530)return _0x4a00a6(_0x268536([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ddc48[0x1]={..._0x5ddc48[0x1],[_0x268536([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35c41d};},{[_0x268536([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268536([0x68,0x69,0x67,0x68])}),_0xbcee5a[_0x268536([0x6f,0x6e])](_0x268536([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1136e6=>{_0x747b26(_0x1136e6[_0x268536([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32c9ec=!0x0,_0x2c21e3(_0x1136e6[_0x268536([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x268536([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268536([0x6c,0x6f,0x77])}),_0x4b3486[_0x268536([0x74,0x68,0x65,0x6e])](()=>{_0x32c9ec||_0x4a00a6(_0x268536([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44570b(){return _0xbcee5a[_0x268536([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268536([0x76,0x69,0x65,0x77])][_0x268536([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x268536([0x61,0x75,0x74,0x6f]);}function _0x251144(){_0xbcee5a[_0x268536([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268536([0x76,0x69,0x65,0x77])][_0x268536([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x268536([0x61,0x75,0x74,0x6f]);}}function _0x334c9f(_0x7ab140){const _0x4d5883=[new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59c14a=>setTimeout(_0x59c14a,0x70b236cc^_0x46d11b)),_0x4b3486[_0x268536([0x74,0x68,0x65,0x6e])](()=>new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e9ac=>{const _0x228167=0x70bb0807^_0x46d11b,_0x2a3685=_0x272fbe[_0x268536([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x590d40(){_0x2a3685[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x228167&&_0x59e9ac();}_0x590d40(),_0x2a3685[_0x268536([0x6f,0x6e])](_0x268536([0x61,0x64,0x64]),_0x590d40);})),new window[(_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c0831=>{function _0x39c548(){for(const _0x597688 in window)if(window[_0x268536([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x268536([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x597688))&&window[_0x597688]==_0x3ce6b7)return _0x2c0831();_0xbcee5a[_0x268536([0x73,0x74,0x61,0x74,0x65])]!=_0x268536([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x268536([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39c548,0x70bb1b88^_0x46d11b);}_0x258bfe(_0x268536([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x39c548();})];return window[_0x268536([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x268536([0x72,0x61,0x63,0x65])](_0x4d5883)[_0x268536([0x74,0x68,0x65,0x6e])](()=>_0x7ab140);}async function _0x59c849(){if(await _0x4b3486,_0x258bfe(_0x268536([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2b4976=_0x272fbe[_0x268536([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1d4501=_0x272fbe[_0x268536([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])](_0x2b4976[_0x268536([0x69,0x64])]),_0x426089=_0x1912c9(_0x268536([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x426089[_0x268536([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2b4976['id'],_0x1d4501?_0x1d4501['id']:null,!0x0),_0x426089[_0x268536([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268536([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x426089[_0x268536([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x426089[_0x268536([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x218d09,void(_0x426089[_0x268536([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x218d09);}if(_0x258bfe(_0x268536([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x416593=_0x1912c9(_0x268536([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x416593[_0x268536([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268536([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x416593[_0x268536([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x416593[_0x268536([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x218d09,_0x416593[_0x268536([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x218d09;}_0xbcee5a[_0x268536([0x6d,0x6f,0x64,0x65,0x6c])][_0x268536([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x218d09,_0xbcee5a[_0x268536([0x6d,0x6f,0x64,0x65,0x6c])][_0x268536([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x218d09,_0xbcee5a[_0x268536([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x268536([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x351e7f(){return _0x258bfe(_0x268536([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1912c9(_0x268536([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x268536([0x73,0x74,0x61,0x74,0x65])]==_0x268536([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x55a3c5(){return _0x258bfe(_0x268536([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 _0x422eb2(){return _0x258bfe(_0x268536([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x27429c(_0x36356b){const _0x3ea988=_0x2f27ea();_0xbcee5a[_0x3ea988]=_0x268536([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])+_0x36356b,_0x36356b[_0x268536([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x268536([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f27ea()]=_0x3ce6b7),_0x36356b!=_0x268536([0x56,0x61,0x6c,0x69,0x64])&&_0x59c849();}function _0x2f27ea(){const _0x48d195=window[_0x268536([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x268536([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x268536([0x6e,0x6f,0x77])]())[_0x268536([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x268536([0x2e]),'');let _0x35cde5=_0x268536([0x7a]);for(let _0x501c29=0x0;_0x501c29<_0x48d195[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x501c29+=0x2){let _0x29153f=window[_0x268536([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d195[_0x268536([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x501c29,_0x501c29+0x2));_0x29153f>=_0x6a7f68[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29153f-=_0x6a7f68[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35cde5+=_0x6a7f68[_0x29153f];}return _0x35cde5;}function _0x299491(){const _0x2c4bd5=_0x142784[_0x268536([0x73,0x70,0x6c,0x69,0x74])](_0x268536([0x2e]));if(0x3!=_0x2c4bd5[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x267ba0(_0x2c4bd5[0x1]);function _0x267ba0(_0x1f93b8){const _0x2cc257=_0x92352e(_0x1f93b8);return _0x2cc257&&_0x59ba0c()?_0x2cc257:null;function _0x59ba0c(){const _0x330ebf=_0x2cc257[_0x268536([0x6a,0x74,0x69])],_0x3c4663=window[_0x268536([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330ebf[_0x268536([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x330ebf[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51f200={..._0x2cc257,[_0x268536([0x6a,0x74,0x69])]:_0x330ebf[_0x268536([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x330ebf[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51f200[_0x268536([0x76,0x63])],_0x53fca3(_0x51f200)==_0x3c4663;}}}async function _0x48dcb0(){let _0x21e875=!0x0;try{const _0x17a18e=_0x142784[_0x268536([0x73,0x70,0x6c,0x69,0x74])](_0x268536([0x2e])),[_0x2b2b9e,_0x193879,_0x5148c2]=_0x17a18e;return _0x18648b(_0x2b2b9e),await _0x4b8e81(_0x2b2b9e,_0x193879,_0x5148c2),_0x21e875;}catch{return!0x1;}function _0x18648b(_0xefcf4e){const _0x1d6828=_0x92352e(_0xefcf4e);_0x1d6828&&_0x1d6828[_0x268536([0x61,0x6c,0x67])]==_0x268536([0x45,0x53,0x32,0x35,0x36])||(_0x21e875=!0x1);}async function _0x4b8e81(_0x14e227,_0xd5eca6,_0xbbad2e){const _0x25e84a=window[_0x268536([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x268536([0x66,0x72,0x6f,0x6d])](_0x71010b(_0xbbad2e),_0x11c0d1=>_0x11c0d1[_0x268536([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9c2c41=new window[(_0x268536([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x268536([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14e227+_0x268536([0x2e])+_0xd5eca6),_0x251522=window[_0x268536([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x268536([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x251522)return;const _0x43c0e9=await _0x251522[_0x268536([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x268536([0x6a,0x77,0x6b]),_0x4e9f92,{[_0x268536([0x6e,0x61,0x6d,0x65])]:_0x268536([0x45,0x43,0x44,0x53,0x41]),[_0x268536([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x268536([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x268536([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x251522[_0x268536([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x268536([0x6e,0x61,0x6d,0x65])]:_0x268536([0x45,0x43,0x44,0x53,0x41]),[_0x268536([0x68,0x61,0x73,0x68])]:{[_0x268536([0x6e,0x61,0x6d,0x65])]:_0x268536([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43c0e9,_0x25e84a,_0x9c2c41)||(_0x21e875=!0x1);}}function _0x92352e(_0x1fca64){return _0x1fca64[_0x268536([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x268536([0x65,0x79]))?JSON[_0x268536([0x70,0x61,0x72,0x73,0x65])](_0x71010b(_0x1fca64)):null;}function _0x71010b(_0x53a0d8){return window[_0x268536([0x61,0x74,0x6f,0x62])](_0x53a0d8[_0x268536([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x268536([0x2b]))[_0x268536([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x268536([0x2f])));}function _0x53fca3(_0x4b0b9f){let _0x4125cc=0x1505;function _0x4c6c1d(_0x53babc){for(let _0x5a181f=0x0;_0x5a181f<_0x53babc[_0x268536([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a181f++){const _0x43637a=_0x53babc[_0x268536([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a181f);_0x4125cc=(_0x4125cc<<0x5)+_0x4125cc+_0x43637a,_0x4125cc&=_0x4125cc;}}function _0x39779e(_0x4bc6ec){Array[_0x268536([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bc6ec)?_0x4bc6ec[_0x268536([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39779e):_0x4bc6ec&&typeof _0x4bc6ec==_0x268536([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x268536([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bc6ec)[_0x268536([0x73,0x6f,0x72,0x74])]()[_0x268536([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5950fc,_0xe78b3c])=>{_0x4c6c1d(_0x5950fc),_0x39779e(_0xe78b3c);}):_0x4c6c1d(window[_0x268536([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bc6ec));}return _0x39779e(_0x4b0b9f),_0x4125cc>>>0x0;}function _0x4962b4(_0xe5133c){return _0xe5133c[_0x268536([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x268536([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x268536([0x30]));}function _0xcef403(_0x1756bd){return _0x1756bd[_0x268536([0x73,0x70,0x6c,0x69,0x74])]('')[_0x268536([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x268536([0x6a,0x6f,0x69,0x6e])]('');}function _0x258bfe(_0x3dd667){return _0xbcee5a[_0x268536([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268536([0x68,0x61,0x73])](_0x3dd667);}function _0x1912c9(_0x3c7a62){return _0xbcee5a[_0x268536([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268536([0x67,0x65,0x74])](_0x3c7a62);}function _0x218d09(){}function _0x268536(_0xc13e05){return _0xc13e05['map'](_0x3e0de9=>String['fromCharCode'](_0x3e0de9))['join']('');}_0x27429c(await _0x533aa7());}(this);}['createRevision'](_0x2066c7){const _0x4167df=this['editor']['plugins']['get']('Users');return new I({'id':_0x2066c7['id'],'name':_0x2066c7['name'],'creator':_0x2066c7['creatorId']?_0x4167df['getUser'](_0x2066c7['creatorId']):null,'diffData':_0x2066c7['diffData']||_0x2066c7['data'],'authors':_0x2066c7['authorsIds']['map'](_0x15f19e=>_0x4167df['getUser'](_0x15f19e)),'createdAt':new Date(_0x2066c7['createdAt']),'attributes':_0x2066c7['attributes'],'fromVersion':_0x2066c7['fromVersion'],'toVersion':_0x2066c7['toVersion']});}['addRevision'](_0x1018ef,_0x571930=0x0){this['_revisions']['add'](_0x1018ef,_0x571930);}['getRevision'](_0x215627){return this['_revisions']['get'](_0x215627);}['getRevisions'](_0x203afe={'toJSON':!0x1}){const _0x12a0a0=Array['from'](this['_revisions']);return _0x12a0a0['reverse'](),_0x203afe['toJSON']?_0x12a0a0['map'](_0xb6b8d0=>_0xb6b8d0['toJSON']()):_0x12a0a0;}['getIndex'](_0x423c61){return this['_revisions']['getIndex'](_0x423c61);}['getEarlierVisibleRevision'](_0x4b5f73){const [,_0x55cdf1]=this['getRevisionsIterator'](_0x4b5f73,{'direction':'earlier'});return _0x55cdf1;}['getLaterVisibleRevision'](_0x353732){const [,_0x47b21d]=this['getRevisionsIterator'](_0x353732,{'direction':'later'});return _0x47b21d;}['getRevisionsInDiff'](_0x58e76b){const _0x1d1e07=[];for(const _0x16b2aa of this['getRevisionsIterator'](_0x58e76b['newRevisionId']))if(_0x1d1e07['push'](_0x16b2aa),_0x16b2aa['id']===_0x58e76b['oldRevisionId'])break;return _0x1d1e07;}*['getRevisionsIterator'](_0x20dc14,{direction:_0x581997='earlier',filter:_0x16315f=()=>!0x0}={}){const _0x1d4157='earlier'===_0x581997?0x1:-0x1;let _0x45bc7b=this['_revisions']['get'](_0x20dc14),_0x3674ca=this['getIndex'](_0x45bc7b);for(yield _0x45bc7b;_0x45bc7b;){if(_0x3674ca+=_0x1d4157,_0x45bc7b=this['getRevision'](_0x3674ca),!_0x45bc7b)return;_0x16315f(_0x45bc7b)&&(yield _0x45bc7b);}}}class $ extends _0x449360{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x29b6ab,'c'],[_0xcdec33,'a'],[_0x11aef2,'e'],[_0x47b735,'r'],[_0x3d7a67,'u']]);['_typeCharToViewClass']=new Map([['c',_0x29b6ab],['a',_0xcdec33],['e',_0x11aef2],['r',_0x47b735],['u',_0x3d7a67]]);async['loadRevisionData'](_0x432240,_0x5f2574){if(_0x432240['diffData']||!_0x5f2574)return;const _0x118c13=this['editor']['config']['get']('collaboration.channelId'),_0x4a5534=await _0x5f2574['getRevision']({'channelId':_0x118c13,'revisionId':_0x432240['id']});_0x432240['diffData']=_0x4a5534['diffData'];}['getRevisionDocumentData'](_0x522a9b){const _0x98d720={};for(const _0x1538a5 in _0x522a9b['diffData']){if(_0x522a9b['diffData'][_0x1538a5]['attachChange']&&!_0x522a9b['diffData'][_0x1538a5]['attachChange']['isAttached'])continue;const _0x1de857=this['_removeRevisionMarkers'](JSON['parse'](_0x522a9b['diffData'][_0x1538a5]['insertions'])),_0x4d38a0=this['editor']['editing']['view']['document'],_0x4dbc9d=new _0x1bd535(_0x4d38a0,_0x1de857['map'](_0x2e2fd6=>this['_getViewFromDiffObj'](_0x2e2fd6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x98d720[_0x1538a5]=this['editor']['data']['processor']['toData'](_0x4dbc9d),this['editor']['data']['processor']['useFillerType']('default');}return _0x98d720;}['getRevisionRootsAttributes'](_0x5a0224){const _0x25ff95={};for(const _0x1296c3 in _0x5a0224['diffData'])_0x5a0224['diffData'][_0x1296c3]['attachChange']&&!_0x5a0224['diffData'][_0x1296c3]['attachChange']['isAttached']||(_0x25ff95[_0x1296c3]=_0x5a0224['diffData'][_0x1296c3]['attributesAfter']||{});return _0x25ff95;}['_getTypeCharForViewElement'](_0x524a2f){return this['_viewClassToTypeChar']['get'](_0x524a2f['constructor']);}['_getViewFromDiffObj'](_0x287730,_0x3767c9){const _0x17df0b=this['editor']['editing']['view']['document'];if('string'==typeof _0x287730)return new _0x112f9b(_0x17df0b,_0x287730);{let _0x147712,_0x73cb51;_0x73cb51='u'==_0x287730['type']||'r'==_0x287730['type']?[]:_0x287730['children']['map'](_0x2d36d0=>this['_getViewFromDiffObj'](_0x2d36d0,_0x3767c9));const _0x12711d=this['_typeCharToViewClass']['get'](_0x287730['type'])||_0x3d0f2b,_0x38813d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x147712=new _0x12711d(_0x17df0b,_0x287730['name'],_0x287730['attributes'],_0x73cb51),'u'==_0x287730['type']&&_0x287730['children'][0x0]){const _0x3ad07f=_0x287730['children'][0x0];if(_0x147712['render']=function(_0xe459f9){const _0x2b258a=_0xe459f9['createElement']('div');return _0x2b258a['innerHTML']=_0x3ad07f,_0x2b258a['childNodes'][0x0];},_0x3767c9){const _0x3f82c0=new _0x1bd535(_0x17df0b);_0x3f82c0['_appendChild'](_0x147712);const _0x5b261c=Array['from'](_0x38813d['viewChildrenToDom'](_0x3f82c0,{'bind':!0x1})),_0x568413=_0x38813d['domDocument']['createElement']('div');_0x568413['append'](..._0x5b261c),_0x147712=Array['from'](_0x38813d['domChildrenToView'](_0x568413))[0x0];}}else{if('r'==_0x287730['type']&&_0x287730['children'][0x0]){const _0x17c522=_0x287730['children'][0x0];if(_0x147712['render']=function(_0x4c18c0){_0x4c18c0['innerHTML']=_0x17c522;},_0x3767c9){const _0x54e0a7=new _0x1bd535(_0x17df0b);_0x54e0a7['_appendChild'](_0x147712);const _0x20193e=Array['from'](_0x38813d['viewChildrenToDom'](_0x54e0a7,{'bind':!0x1})),_0x2d7097=_0x38813d['domDocument']['createElement']('div');_0x2d7097['append'](..._0x20193e);const _0x280c75=Array['from'](_0x38813d['domChildrenToView'](_0x2d7097));_0x280c75['length']>0x1?_0x147712['_appendChild'](_0x280c75):_0x147712=_0x280c75[0x0];}}}if(_0x287730['customProperties']){for(const [_0x336dfb,_0x3b9d0c]of _0x287730['customProperties'])_0x147712['_setCustomProperty'](_0x336dfb,_0x3b9d0c);}const _0x5cb477=void 0x0===_0x287730['fillerOffset']?null:_0x287730['fillerOffset'];return null!==_0x5cb477&&(_0x147712['getFillerOffset']=()=>_0x5cb477),_0x147712;}}['_makeModelFromViewString'](_0x2f5f87){const _0x368176=JSON['parse'](_0x2f5f87),_0x3414c7=this['editor']['editing']['view']['document'],_0x2499bb=new _0x1bd535(_0x3414c7,_0x368176['map'](_0x1feea4=>this['_getViewFromDiffObj'](_0x1feea4,!0x0)));return this['editor']['data']['toModel'](_0x2499bb);}['_removeRevisionMarkers'](_0x17a507){return(_0x17a507=_0x17a507['filter'](_0x4c399e=>!_0x4c399e['name']||'revision-start'!==_0x4c399e['name']&&'revision-end'!==_0x4c399e['name']))['forEach'](_0xb7085c=>{'string'!=typeof _0xb7085c&&(_0xb7085c['children']=this['_removeRevisionMarkers'](_0xb7085c['children']),_0xb7085c['attributes']=_0xb7085c['attributes']['filter'](_0x2ba431=>!_0x2ba431[0x0]['startsWith']('data-revision-')));}),_0x17a507;}}function R(_0x552d5e,_0xea2663,_0x422815){const t=_0x552d5e['t'];switch(_0xea2663){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'},_0x422815);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x422815);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 _0x449360{['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[_0x3b5410,S,$,_0x4a1cef];}constructor(_0xaf37fe){super(_0xaf37fe),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 _0x50fb44=_0x20586a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50fb44},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 _0x1e4230=this['repository']['getRevision'](0x0),_0x122d7c=_0x1e4230&&null===_0x1e4230['creator']?_0x1e4230:null;if(this['_continueCurrentRevision']=!!_0x122d7c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4c19bf=this['_source']['getCurrentRevisionId'](),_0x338756=this['repository']['getRevision'](_0x4c19bf);if(_0x338756)this['_startingVersion']=_0x338756['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x33e562=this['_source']['history']['_operations']['find'](_0x983944=>!_0x983944['_isInit']),_0x33bf9e=_0x33e562?_0x33e562['baseVersion']:this['_source']['history']['version'];_0x1e4230?(_0x1e4230['toVersion']<_0x33bf9e&&_0x1e4230['_update']({'toVersion':_0x33bf9e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x122d7c['id'],this['_startingVersion']=_0x122d7c['fromVersion']):(this['_startingVersion']=_0x1e4230['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x33bf9e,this['_continueCurrentRevision']=!0x1);}}else _0x122d7c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x122d7c['toVersion'],this['editor']['model']['document']['history']['version']),_0x122d7c['fromVersion']===_0x122d7c['toVersion']?(0x0!==_0x122d7c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x122d7c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x122d7c['id'],this['_startingVersion']=_0x122d7c['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',_0x480d3f=>!_0x480d3f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2dda83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xcdd391;for(const _0x29d601 in _0x2dda83){const _0x5abad2=_0x29d601,_0x311eec=_0x2dda83[_0x5abad2];if('revisionHistoryLicenseKeyValid'==_0x311eec||'revisionHistoryLicenseKeyInvalid'==_0x311eec||'revisionHistoryLicenseKeyExpired'==_0x311eec||'revisionHistoryLicenseKeyDomainLimit'==_0x311eec||'revisionHistoryLicenseKeyNotAllowed'==_0x311eec||'revisionHistoryLicenseKeyEvaluationLimit'==_0x311eec||'revisionHistoryLicenseKeyTrialLimit'==_0x311eec||'revisionHistoryLicenseKeyUsageLimit'==_0x311eec){delete _0x2dda83[_0x5abad2],_0xcdd391=_0x311eec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xcdd391&&_0x2dda83['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xcdd391&&_0x2dda83['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xcdd391&&_0x2dda83['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xcdd391&&_0x2dda83['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xcdd391&&_0x2dda83['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xcdd391&&_0x2dda83['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xcdd391&&_0x2dda83['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x22fadb=this['repository']['getRevision'](0x0),_0xb498e6=await this['getRevisionDocumentData'](_0x22fadb),_0x568d3e=await this['getRevisionRootsAttributes'](_0x22fadb);this['_replaceEditorDataWithRevisionData'](_0xb498e6,_0x568d3e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x230c1d){this['_source']=_0x230c1d;}async['update'](){const _0x39c04c=await this['_source']['getLatestVersion']();if(_0x39c04c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2d9481=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x39c04c});_0x2d9481['authors']=_0x2d9481['authorsIds']['map'](_0x40aa9d=>this['editor']['plugins']['get']('Users')['getUser'](_0x40aa9d)),this['currentRevision']['_update'](_0x2d9481);}}async['saveRevision'](_0x21dea5={},_0x52833b=null){const _0x6e3b7b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x52833b>this['currentRevision']['toVersion']&&(_0x52833b=null),null===_0x52833b&&(_0x52833b=await this['_source']['getLatestVersion']());const _0x9e95e4=this['_getFromVersion'](_0x52833b),_0x418f76=this['buildRevisionData']({'from':_0x9e95e4,'to':_0x52833b});if(this['currentRevision']['toVersion']<_0x52833b){const _0x655dad=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x52833b,'to':_0x52833b});_0x655dad['authors']=[],_0x655dad['authorsIds']=[],_0x655dad['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x655dad,!0x0),delete _0x655dad['authors'],_0x6e3b7b['push'](_0x655dad);}_0x21dea5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x21dea5['name']=_0x21dea5['name']||null,_0x21dea5['id']=_0x21dea5['id']||_0x20586a(),_0x21dea5={..._0x21dea5,..._0x418f76};const _0x26dbe1=this['addRevisionData'](_0x21dea5);_0x6e3b7b['push'](_0x21dea5);const _0x8304f=this['repository']['getIndex'](_0x26dbe1);if(0x0!==_0x8304f){const _0x484e5a=this['repository']['getRevision'](_0x8304f-0x1);if(_0x484e5a['fromVersion']!==_0x52833b){const _0x212247=this['_revisionDataBuilder']['getData'](_0x52833b,_0x484e5a['toVersion']),_0x7a1067={'id':_0x484e5a['id'],'diffData':_0x212247['diffData'],'authorsIds':_0x212247['authorsIds'],'authors':_0x212247['authorsIds']['map'](_0x106e0f=>this['editor']['plugins']['get']('Users')['getUser'](_0x106e0f)),'fromVersion':_0x52833b};_0x484e5a===this['currentRevision']&&(_0x7a1067['createdAt']=new Date(_0x21dea5['createdAt']['getTime']()+0xa)),_0x484e5a['_update'](_0x7a1067,!0x0),delete _0x7a1067['authors'],_0x6e3b7b['push'](_0x7a1067);}}if(this['adapter']){for(const _0x134533 of _0x6e3b7b)this['_bufferUpdate'](_0x134533['id'],_0x134533,!0x0);this['sendBufferedUpdates']();}return _0x26dbe1;}['addRevisionData'](_0x389b45){const _0x2d9544=this['repository']['createRevision'](_0x389b45);return this['adapter']&&_0x2d9544['on']('_update',(_0x5a17de,_0x5e0194,_0x5e5ec3)=>{_0x5e5ec3||(this['_bufferUpdate'](_0x5e0194['id'],_0x5e0194,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d9544,this['_findInsertionIndex'](_0x2d9544)),_0x2d9544;}async['getRevisionDocumentData'](_0x491be5){return await this['_utils']['loadRevisionData'](_0x491be5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x491be5);}async['getRevisionRootsAttributes'](_0x1fe75d){return await this['_utils']['loadRevisionData'](_0x1fe75d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fe75d);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1e6008=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x334383=0x0;_0x334383<_0x1e6008['length'];_0x334383++){const _0x19c4e9=_0x1e6008[_0x334383];let _0x5d1c11=!0x1;for(const _0x47075b of Object['keys'](_0x19c4e9))void 0x0===_0x19c4e9[_0x47075b]?delete _0x19c4e9[_0x47075b]:'id'!==_0x47075b&&(_0x5d1c11=!0x0);_0x5d1c11||(_0x1e6008[_0x334383]=null);}if(_0x1e6008=_0x1e6008['filter'](_0x2a7167=>null!==_0x2a7167),!_0x1e6008['length'])return;for(let _0x30fa4f=0x0;_0x30fa4f<_0x1e6008['length'];_0x30fa4f++){const _0x10898e=_0x1e6008[_0x30fa4f];void 0x0!==_0x10898e['fromVersion']&&void 0x0===_0x10898e['toVersion']&&(_0x10898e['toVersion']=this['repository']['getRevision'](_0x10898e['id'])['toVersion']),void 0x0!==_0x10898e['toVersion']&&void 0x0===_0x10898e['fromVersion']&&(_0x10898e['fromVersion']=this['repository']['getRevision'](_0x10898e['id'])['fromVersion']);}const _0x17a124=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1e6008,_0x17a124)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4b2705=>{if(_0x4b2705){for(const _0x2e2a21 of _0x4b2705)this['setRevisionData']({'id':_0x2e2a21['id'],'createdAt':_0x2e2a21['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xe66abc=null,from:_0x5cd6c3=null,to:_0x4b70a3=null}){_0x5cd6c3=null!==_0x5cd6c3?_0x5cd6c3:_0xe66abc['fromVersion'],_0x4b70a3=null!==_0x4b70a3?_0x4b70a3:_0xe66abc['toVersion'];const _0x5545aa=this['_revisionDataBuilder']['getData'](_0x5cd6c3,_0x4b70a3),_0x335317={'diffData':_0x5545aa['diffData'],'authorsIds':_0x5545aa['authorsIds'],'fromVersion':_0x5cd6c3,'toVersion':_0x4b70a3};if(!_0xe66abc||_0x4b70a3!==_0xe66abc['toVersion']){const _0x66efe1=_0x4b70a3-0x1,_0x1a289d=this['_source']['history']['getOperation'](_0x66efe1);_0x335317['createdAt']=_0x1a289d&&_0x1a289d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5cd6c3===this['_loadedStateData']['fromVersion']){for(const _0x509e0c of this['_loadedStateData']['authors'])_0x335317['authorsIds']['includes'](_0x509e0c['id'])||_0x335317['authorsIds']['push'](_0x509e0c['id']);}return _0x335317;}['_bufferUpdate'](_0x17c362,_0x47f3a4,_0x258f16){if(this['_bufferedUpdates']['has'](_0x17c362)){const _0x50151d=this['_bufferedUpdates']['get'](_0x17c362);_0x47f3a4=_0x258f16?{..._0x50151d,..._0x47f3a4}:{..._0x47f3a4,..._0x50151d};}this['_bufferedUpdates']['set'](_0x17c362,_0x47f3a4);}['setRevisionData'](_0x31b814){const _0x371d95=this['repository']['getRevision'](_0x31b814['id']);if(_0x31b814['createdAt']&&(_0x31b814['createdAt']=new Date(_0x31b814['createdAt'])),_0x31b814['authorsIds']){const _0x1e134d=this['editor']['plugins']['get']('Users');_0x31b814['authors']=_0x31b814['authorsIds']['map'](_0x11fe3b=>_0x1e134d['getUser'](_0x11fe3b));}_0x371d95['_update'](_0x31b814,!0x0);}['_createInitialRevision'](_0x54f7a0){const _0x31e4ef=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x31e4ef)this['_initialRevisionId']=_0x31e4ef['id'];else{const _0x37c811=!this['editor']['model']['document']['roots']['find'](_0x3ff4c1=>this['editor']['model']['hasContent'](_0x3ff4c1)),_0x356380=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fad5b=R(this['editor']['locale'],_0x37c811?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x54f7a0,'to':_0x54f7a0,'id':this['_initialRevisionId'],'name':_0x1fad5b,'creatorId':_0x356380});}}['_createCurrentRevision'](_0x1c45c8){const _0x181fdd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x181fdd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c45c8,'to':_0x1c45c8,'id':_0x181fdd,'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'](_0x2d4863,_0x335120){let _0x443fe7=this['editor']['config']['get']('initialData'),_0x54035b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x443fe7){_0x443fe7={};for(const _0x326e63 of this['editor']['model']['document']['getRootNames']())_0x443fe7[_0x326e63]='';}if('string'==typeof _0x443fe7&&(_0x443fe7={'main':_0x443fe7}),void 0x0===_0x54035b){_0x54035b={};for(const _0x1f5757 of this['editor']['model']['document']['getRootNames']())_0x54035b[_0x1f5757]={};}let _0x4fd9f8=!0x1;const _0x36b109=Object['keys'](_0x443fe7),_0x1b8ad0=Object['keys'](_0x2d4863);for(const _0x8d617c of _0x36b109){if(_0x443fe7[_0x8d617c]!==_0x2d4863[_0x8d617c]&&''!==_0x443fe7[_0x8d617c]['trim']()){_0x4fd9f8=!0x0;break;}if(!_0x7fe971(_0x54035b[_0x8d617c],_0x335120[_0x8d617c])&&Object['keys'](_0x54035b[_0x8d617c])['length']>0x0){_0x4fd9f8=!0x0;break;}}_0x4fd9f8||(_0x4fd9f8=_0x1b8ad0['some'](_0x166afc=>!this['editor']['model']['document']['getRoot'](_0x166afc))),_0x4fd9f8&&_0x3c3309('editor-initial-data-replaced-with-revision-data',{'editorData':_0x443fe7,'editorRootsAttributes':_0x54035b,'revisionData':_0x2d4863,'revisionRootsAttributes':_0x335120}),this['editor']['config']['set']('initialData',_0x2d4863),this['editor']['config']['set']('rootsAttributes',_0x335120);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x18637f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x18637f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5a79cf){const _0x36ff61=this['repository']['getRevisions']();_0x36ff61['reverse']();let _0x3d58f0=0x0;for(;_0x3d58f0<_0x36ff61['length'];){const _0x45bc86=_0x36ff61[_0x3d58f0];if(_0x45bc86===this['currentRevision']){_0x3d58f0++;continue;}if(_0x45bc86['id']===this['_initialRevisionId'])break;const _0x5bde69=_0x5a79cf['toVersion']-_0x45bc86['toVersion']||_0x5a79cf['fromVersion']-_0x45bc86['fromVersion'];if(_0x5bde69>0x0)break;if(_0x5bde69<0x0)_0x3d58f0++;else{if(!_0x5a79cf['creator']&&_0x45bc86['creator'])break;if(_0x45bc86['creator']||!_0x5a79cf['creator']){if(_0x5a79cf['createdAt']>_0x45bc86['createdAt'])break;_0x3d58f0++;}else _0x3d58f0++;}}return _0x3d58f0;}['_getFromVersion'](_0xa9c62f){const _0x200332=this['repository']['getRevisions']();_0x200332['reverse'](),_0x200332['shift']();const _0x523f3c=_0x200332['find'](_0x19fd8e=>_0x19fd8e['toVersion']<=_0xa9c62f)['toVersion'];return _0x523f3c<this['_startingVersion']?this['_startingVersion']:_0x523f3c;}['_makeRevision']({name:_0x6023c6,from:_0x1517a7,to:_0x1b361a,creatorId:_0x22a242,id:_0x24b963}){const _0x38f949=this['buildRevisionData']({'from':_0x1517a7,'to':_0x1b361a});_0x38f949['name']=_0x6023c6,_0x38f949['creatorId']=_0x22a242,_0x38f949['id']=_0x24b963;const _0x3a28ae=this['addRevisionData'](_0x38f949);return this['adapter']&&this['_bufferUpdate'](_0x38f949['id'],_0x38f949,!0x0),_0x3a28ae;}['_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(_0x559f61){this['editor']=_0x559f61,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'](_0x1cdedf){this['source']=_0x1cdedf;const _0x10fddb=new Map(),_0xb94a55=new Map(),_0x2cb5fa=this['editor']['model']['document']['roots']['map'](_0x41cb9c=>_0x41cb9c['rootName']);for(const _0x46cd7f of _0x2cb5fa){const _0x70a16f=this['editor']['model']['document']['getRoot'](_0x46cd7f),_0x10c2cd=x(_0x70a16f);_0x10fddb['set'](_0x46cd7f,_0x10c2cd),_0xb94a55['set'](_0x46cd7f,Object['fromEntries'](_0x70a16f['getAttributes']()));}const _0x35f3d8=Array['from'](this['editor']['model']['markers'])['map'](_0x2ae89d=>[_0x2ae89d['name'],_0x2ae89d['getRange']()]),_0x5381e4=this['source']['version'];this['_saveMetaData'](_0x5381e4,_0x10fddb,_0x35f3d8,_0xb94a55),this['_startingRevisionId']=this['_revisionId'];const _0x5e29ae=new Map(),_0x3aeec0=new Map();for(const _0x12fcee of _0x2cb5fa){const _0x29a7a4=N(_0x12fcee);_0x5e29ae['set'](_0x12fcee,_0x29a7a4),_0x3aeec0['set'](_0x12fcee,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5e29ae,[],_0x3aeec0);}['getData'](_0x3ad8be,_0x9bb28b){if(this['_lastFrom']===_0x3ad8be&&this['_lastTo']<=_0x9bb28b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x9bb28b,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ad8be)){const _0x5763d8=this['_getPreviousFrom'](_0x3ad8be);this['_calculateMetaData'](_0x5763d8,_0x3ad8be,!0x1);}this['_calculateMetaData'](_0x3ad8be,_0x9bb28b,!0x0);}return this['_lastFrom']=_0x3ad8be,this['_lastTo']=_0x9bb28b,this['_getState']();}['loadState'](_0x5c40d7){const _0x36387d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5c40d7['fromVersion'],this['_lastTo']=_0x5c40d7['toVersion'];for(const _0x9f7636 in _0x5c40d7['diffData']){const _0x4d7d8a=_0x5c40d7['diffData'][_0x9f7636]['attachChange'],_0x1b205b=_0x16a120(_0x5c40d7['diffData'][_0x9f7636]['attributesBefore'])||{},_0x2f777d=_0x36387d['_makeModelFromViewString'](_0x5c40d7['diffData'][_0x9f7636]['deletions']);_0x2f777d['rootName']=_0x9f7636,_0x2f777d['_isAttached']=!_0x4d7d8a||!_0x4d7d8a['isAttached'],_0x2f777d['isAttached']=()=>_0x2f777d['_isAttached'],this['_baseRoots']['set'](_0x9f7636,_0x2f777d),this['_baseRootsAttributes']['set'](_0x9f7636,_0x1b205b),_0x4d7d8a&&this['_touchedRoots']['set'](_0x9f7636,_0x4d7d8a);const _0x3ca333=this['_makeIdsRoot'](_0x2f777d);this['_baseIdsRoots']['set'](_0x9f7636,_0x3ca333);for(const [_0x492a3a,_0x58ba50]of _0x2f777d['markers']){if(!_0x492a3a['startsWith']('revision:'))continue;const _0x5df5e7=_0x492a3a['split'](':')[0x2];for(const _0x12428c of _0x58ba50['getWalker']({'singleCharacters':!0x0})){const _0x48618e=this['_getVidAttributeName'](_0x12428c),_0x4ce734='elementEnd'==_0x12428c['type']?_0x12428c['previousPosition']['path']['slice'](0x0,-0x1):_0x12428c['previousPosition']['path'],_0x13f140=_0x3ca333['getNodeByPath'](_0x4ce734)['getAttribute'](_0x48618e);this['_touched']['set'](_0x13f140,{'userId':_0x5df5e7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1737dd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22d3a1=>!this['_touched']['has'](_0x22d3a1));let _0x5b7521=0x0;const _0x5a28ff=new Map();for(const _0x519dbb in _0x5c40d7['diffData']){const _0x5534ea=_0x5c40d7['diffData'][_0x519dbb]['attachChange'],_0x448e88=_0x16a120(_0x5c40d7['diffData'][_0x519dbb]['attributesAfter'])||{},_0x4a4d43=_0x36387d['_makeModelFromViewString'](_0x5c40d7['diffData'][_0x519dbb]['insertions']);_0x4a4d43['rootName']=_0x519dbb,_0x4a4d43['_isAttached']=!_0x5534ea||_0x5534ea['isAttached'],_0x4a4d43['isAttached']=()=>_0x4a4d43['_isAttached'],this['_diffRoots']['set'](_0x519dbb,_0x4a4d43),this['_diffRootsAttributes']['set'](_0x519dbb,_0x448e88);const _0x3a0005=this['_makeIdsRoot'](_0x4a4d43,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x519dbb,_0x3a0005),_0x5a28ff['set'](_0x519dbb,_0x4a4d43['isAttached']()?_0x448e88:{});for(const [_0xc9ef32,_0x235ec8]of _0x4a4d43['markers']){if(!_0xc9ef32['startsWith']('revision:'))continue;const _0xba6a42=_0xc9ef32['split'](':')[0x2];for(const _0x9400a1 of _0x235ec8['getWalker']({'singleCharacters':!0x0})){const _0x157cb0=this['_getVidAttributeName'](_0x9400a1),_0x5e0718=this['_revisionId']++,_0x441f42='elementEnd'==_0x9400a1['type']?_0x9400a1['previousPosition']['path']['slice'](0x0,-0x1):_0x9400a1['previousPosition']['path'];_0x3a0005['getNodeByPath'](_0x441f42)['_setAttribute'](_0x157cb0,_0x5e0718),this['_touched']['set'](_0x5e0718,{'userId':_0xba6a42});}}for(const _0x3efe20 of this['editor']['model']['createRangeIn'](_0x4a4d43)['getWalker']({'singleCharacters':!0x0})){const _0x1ced50=this['_getVidAttributeName'](_0x3efe20),_0x384d08='elementEnd'==_0x3efe20['type']?_0x3efe20['previousPosition']['path']['slice'](0x0,-0x1):_0x3efe20['previousPosition']['path'],_0x355a4c=_0x3a0005['getNodeByPath'](_0x384d08);_0x355a4c['getAttribute'](_0x1ced50)>0x0||_0x355a4c['_setAttribute'](_0x1ced50,_0x1737dd[_0x5b7521++]);}for(const [_0x5b4de3,_0x14fe72]of _0x4a4d43['markers'])_0x5b4de3['startsWith']('revision:')||this['_markers']['set'](_0x5b4de3,_0x14fe72);}const _0x592633=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x592633),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x592633,0x1));const _0x5bfd6e=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5bfd6e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5bfd6e,0x1));const _0x53109d=Array['from'](this['_diffRoots'])['map'](([_0xd9d30f,_0x57724d])=>[_0xd9d30f,x(_0x57724d)]);this['_saveMetaData'](this['_lastTo'],_0x53109d,this['_markers'],_0x5a28ff);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x31107c,_0x48927e,_0x2da805,_0x4229c7){const _0xc284cc=new Map(_0x48927e),_0x33bff3=new Map(_0x16a120(_0x4229c7)),_0x304ea1=new Map();for(const [_0x11d057,_0x2b05e2]of _0x2da805)_0x304ea1['set'](_0x11d057,{'start':_0x2b05e2['start']['clone'](),'end':_0x2b05e2['end']['clone'](),'rootName':_0x2b05e2['root']['rootName']});this['_savedMetaData']['set'](_0x31107c,{'roots':_0xc284cc,'markers':_0x304ea1,'rootsAttributes':_0x33bff3});}['_removeMetaData'](_0x5acb7e){this['_savedMetaData']['delete'](_0x5acb7e);}['_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'](_0x646e0f,_0x38ba45=null){let _0x15ee63=null;_0x646e0f['is']('documentFragment')||(_0x15ee63=new _0x4d1ea2(_0x646e0f['name'],{'vid_start':null===_0x38ba45?this['_revisionId']++:_0x38ba45++}));const _0x4b8e16=[];for(const _0x514335 of _0x646e0f['getChildren']())if(_0x514335['is']('element')){_0x4b8e16['push'](this['_makeIdsRoot'](_0x514335,_0x38ba45));const _0x4d2c58=_0x4b8e16[_0x4b8e16['length']-0x1];null!==_0x38ba45&&(_0x38ba45=_0x4d2c58['is']('element','$text')?_0x4d2c58['getAttribute']('vid')+0x1:_0x4d2c58['getAttribute']('vid_end')+0x1);}else{for(let _0x26aee4=0x0;_0x26aee4<_0x514335['offsetSize'];_0x26aee4++)_0x4b8e16['push'](new _0x4d1ea2('$text',{'vid':null===_0x38ba45?this['_revisionId']++:_0x38ba45++}));}if(_0x646e0f['is']('documentFragment')){const _0x10dc58=N(_0x646e0f['rootName']);return _0x10dc58['_insertChild'](0x0,_0x4b8e16),_0x10dc58;}return _0x15ee63['_setAttribute']('vid_end',null===_0x38ba45?this['_revisionId']++:_0x38ba45++),_0x15ee63['_insertChild'](0x0,_0x4b8e16),_0x15ee63;}['_calculateMetaData'](_0x4034ce,_0x1f5494,_0x576555){this['_reset']();const {roots:_0x11d01f,markers:_0x1cf197,rootsAttributes:_0x3888b4}=this['_savedMetaData']['get'](_0x4034ce);this['_baseRoots']=new Map(_0x11d01f),this['_baseRootsAttributes']=new Map(_0x16a120(_0x3888b4));for(const [_0x406720,_0x4f2484]of this['_baseRoots'])if('$graveyard'!==_0x406720&&(this['_diffRoots']['set'](_0x406720,x(_0x4f2484)),this['_diffRootsAttributes']=new Map(_0x16a120(_0x3888b4)),_0x576555)){const _0x4a8bfd=this['_revisionId'];this['_idsRoots']['set'](_0x406720,this['_makeIdsRoot'](_0x4f2484)),this['_baseIdsRoots']['set'](_0x406720,this['_makeIdsRoot'](_0x4f2484,_0x4a8bfd));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x576555&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2afe5f,_0x45d949]of _0x1cf197){const _0x2a9005=this['_baseRoots']['get'](_0x45d949['rootName']),_0x51e7c4=this['_diffRoots']['get'](_0x45d949['rootName']),_0x3ab430=new _0x4be064(this['_fixPosition'](_0x45d949['start'],_0x2a9005),this['_fixPosition'](_0x45d949['end'],_0x2a9005)),_0x2854b2=this['_fixRange'](_0x3ab430,_0x51e7c4);_0x2a9005['markers']['set'](_0x2afe5f,_0x3ab430),this['_markers']['set'](_0x2afe5f,_0x2854b2);}this['_applyOperations'](_0x4034ce,_0x1f5494,_0x576555);}['_applyOperations'](_0x411a77,_0x5793b4,_0x368602){for(const _0x1c64f4 of this['source']['getOperations'](_0x411a77,_0x5793b4))this['_handleOperation'](_0x1c64f4,_0x368602);for(const _0x353f9a of this['_diffRoots']['values']())_0x353f9a['markers']['clear']();for(const [_0x2da245,_0x44c0f2]of this['_markers']){this['_diffRoots']['get'](_0x44c0f2['root']['rootName'])['markers']['set'](_0x2da245,_0x44c0f2['clone']());}const _0x15c39e=new Map(),_0x4e0920=new Map();for(const [_0x2e9d2e,_0x13f2fb]of this['_diffRoots'])_0x15c39e['set'](_0x2e9d2e,x(_0x13f2fb)),_0x4e0920['set'](_0x2e9d2e,this['_diffRootsAttributes']['get'](_0x2e9d2e));this['_saveMetaData'](_0x5793b4,_0x15c39e,this['_markers'],_0x4e0920);}['_getPreviousFrom'](_0x5d41eb){const _0x2f898e=Array['from'](this['_savedMetaData']['keys']());_0x2f898e['sort']((_0x4c1eb6,_0x32b582)=>_0x4c1eb6-_0x32b582),_0x2f898e['reverse']();for(const _0x7bb217 of _0x2f898e)if(_0x7bb217<_0x5d41eb)return _0x7bb217;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf79b6e,_0x79b961){const _0x29d68b=Array['from'](_0x79b961['markers'])['map'](([_0x4633d9,_0x1c483a])=>[_0x4633d9,this['_fixRange'](_0x1c483a,_0xf79b6e)]);_0xf79b6e['markers']=new Map(_0x29d68b);}['_transformMarkers'](_0x22f3ea){for(const _0x265597 of this['_markers']['values']()){const _0x4d75de=_0x265597['getTransformedByOperation'](_0x22f3ea),_0x1af600=_0x4be064['_createFromRanges'](_0x4d75de);_0x265597['start']=_0x1af600['start'],_0x265597['end']=_0x1af600['end'];}}['_handleOperation'](_0x17ccdf,_0x21901b){if('addRoot'!=_0x17ccdf['type']&&'detachRoot'!=_0x17ccdf['type']){if('insert'==_0x17ccdf['type']){const _0x5878ef=_0x17ccdf['position']['root']['rootName'];this['_diffRoots']['has'](_0x5878ef)||(this['_diffRoots']['set'](_0x5878ef,N(_0x5878ef,!0x0)),this['_diffRootsAttributes']['set'](_0x5878ef,{}),_0x21901b&&this['_idsRoots']['set'](_0x5878ef,N(_0x5878ef,!0x0)));}else{if('addRootAttribute'==_0x17ccdf['type']||'removeRootAttribute'==_0x17ccdf['type']||'changeRootAttribute'==_0x17ccdf['type'])return void this['_handleRootAttributeOperation'](_0x17ccdf);'marker'==_0x17ccdf['type']&&this['_handleMarkerOperation'](_0x17ccdf);}if('marker'!==_0x17ccdf['type']){const _0x4a349e=this['_cloneOperation'](_0x17ccdf,this['_diffRoots']);_0x4a349e['_execute'](),this['_transformMarkers'](_0x4a349e);}if(_0x21901b)switch(_0x17ccdf['type']){case'insert':this['_handleInsertOperation'](_0x17ccdf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x17ccdf);break;case'merge':this['_handleMergeOperation'](_0x17ccdf);break;case'split':this['_handleSplitOperation'](_0x17ccdf);}}else this['_handleRootOperation'](_0x17ccdf,_0x21901b);}['_cloneOperation'](_0xba6e8a,_0x349d69){const _0x4ec7df=_0xba6e8a['clone']();return _0x4ec7df['_authorId']=_0xba6e8a['_authorId'],this['_fixOperation'](_0x4ec7df,_0x349d69),_0x4ec7df;}['_getBaseVids'](_0x54f613){return _0x54f613['map'](_0x12a98d=>{const _0x22ddb3=this['_getVidAttributeName'](_0x12a98d);return Number(_0x12a98d['item']['getAttribute'](_0x22ddb3));});}['_generateTape'](_0x39e047,_0x639af0){if(_0x39e047['is']('element','$text'))_0x639af0['push']({'item':_0x39e047,'type':'text'});else{_0x39e047['is']('element')&&_0x639af0['push']({'item':_0x39e047,'type':'elementStart'});for(const _0x253e06 of _0x39e047['getChildren']())this['_generateTape'](_0x253e06,_0x639af0);_0x39e047['is']('element')&&_0x639af0['push']({'item':_0x39e047,'type':'elementEnd'});}return _0x639af0;}['_getState'](){const _0x2b3cd1=new Map(this['_touched']),_0x2a2a16=new Map(_0x2b3cd1),_0x1efedd=new Map(),_0x187dcb={'insertions':{},'deletions':{}},_0x58c1b7={'insertions':{},'deletions':{}},_0x58c5b6=new Map(),_0x109ada=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x109ada['delete']('$graveyard');for(const _0x29a915 of _0x109ada){const _0x4e8566=this['_diffRoots']['get'](_0x29a915)||N(_0x29a915,!0x1),_0x1424b8=this['_baseRoots']['get'](_0x29a915)||N(_0x29a915,!0x1);_0x4e8566['isAttached']()||_0x1424b8['isAttached']()?(_0x187dcb['insertions'][_0x29a915]=x(_0x4e8566),_0x187dcb['deletions'][_0x29a915]=x(_0x1424b8),this['_copyMarkers'](_0x187dcb['deletions'][_0x29a915],_0x1424b8),this['_copyMarkers'](_0x187dcb['insertions'][_0x29a915],_0x4e8566),_0x58c1b7['insertions'][_0x29a915]=this['_generateTape'](this['_idsRoots']['get'](_0x29a915),[]),_0x58c1b7['deletions'][_0x29a915]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x29a915)||N(_0x29a915,!0x1),[])):_0x109ada['delete'](_0x29a915);}for(const _0x486021 of _0x109ada){const _0xff4a38=_0x58c1b7['insertions'][_0x486021];for(const _0x5af5ec of _0xff4a38){const _0xa2a038=this['_getVidAttributeName'](_0x5af5ec),_0x3d264d=_0x5af5ec['item']['getAttribute'](_0xa2a038);_0x2a2a16['delete'](_0x3d264d),_0x3d264d>=this['_startingRevisionId']&&_0x1efedd['set'](_0x3d264d,_0x2b3cd1['get'](_0x3d264d));}}for(const _0x3f4602 of _0x109ada){const _0x424d1e=_0x58c1b7['insertions'][_0x3f4602],_0x301043=this['_getBaseVids'](_0x58c1b7['deletions'][_0x3f4602]);let _0x11a92e=0x0;for(const _0x21b56d of _0x424d1e){const _0x455cb2=this['_getVidAttributeName'](_0x21b56d),_0x5bddb3=_0x21b56d['item']['getAttribute'](_0x455cb2);if(!_0x1efedd['has'](_0x5bddb3)&&!_0x58c5b6['has'](_0x5bddb3)){if(_0x2a2a16['has'](_0x5bddb3))_0x11a92e++;else{if(_0x5bddb3!=_0x301043[_0x11a92e]){const _0x7c5be6=_0x2b3cd1['get'](_0x5bddb3)||_0x2b3cd1['get'](_0x301043[_0x11a92e]);for(;_0x5bddb3!=_0x301043[_0x11a92e];)_0x2a2a16['has'](_0x301043[_0x11a92e])||(_0x58c5b6['set'](_0x301043[_0x11a92e],_0x7c5be6),_0x2b3cd1['set'](_0x301043[_0x11a92e],_0x7c5be6)),_0x11a92e++;}_0x11a92e++;}}}}for(const _0x61c280 of _0x109ada){const _0x290883=_0x58c1b7['insertions'][_0x61c280];for(const _0x5106c0 of _0x290883){const _0x3c2e6c=this['_getVidAttributeName'](_0x5106c0),_0x3a2b5d=_0x5106c0['item']['getAttribute'](_0x3c2e6c);if(_0x58c5b6['has'](_0x3a2b5d)){const _0x577e17=_0x58c5b6['get'](_0x3a2b5d);_0x2a2a16['has'](_0x3a2b5d)||_0x2a2a16['set'](_0x3a2b5d,{..._0x577e17}),_0x1efedd['set'](_0x3a2b5d,{..._0x577e17});}}}for(const _0x14c264 of _0x2a2a16['keys']())_0x14c264>=this['_startingRevisionId']&&_0x2a2a16['delete'](_0x14c264);const _0x3e9154=new Map();for(const _0x3c7e80 of _0x109ada){let _0x16af4b=_0x58c1b7['insertions'][_0x3c7e80];for(const _0x7b4a5 of _0x16af4b)if(_0x7b4a5['item']['is']('element','tableCell')){const _0x41af68=this['_getVidAttributeName'](_0x7b4a5),_0x5a6679=_0x7b4a5['item']['getAttribute'](_0x41af68);if(_0x1efedd['has'](_0x5a6679)){const _0x5e0f42=_0x7b4a5['item']['parent']['parent']['getAttribute']('vid_start'),_0x14a8d8=_0x3e9154['get'](_0x5e0f42)||new Set();_0x14a8d8['add'](_0x1efedd['get'](_0x5a6679)['userId']),_0x3e9154['set'](_0x5e0f42,_0x14a8d8);}}_0x16af4b=_0x58c1b7['deletions'][_0x3c7e80];for(const _0x2ba6c5 of _0x16af4b)if(_0x2ba6c5['item']['is']('element','tableCell')){const _0x473c36=this['_getVidAttributeName'](_0x2ba6c5),_0x1e8b56=_0x2ba6c5['item']['getAttribute'](_0x473c36);if(_0x2a2a16['has'](_0x1e8b56)){const _0x493449=_0x2ba6c5['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a4ba9=_0x3e9154['get'](_0x493449)||new Set();_0x3a4ba9['add'](_0x2a2a16['get'](_0x1e8b56)['userId']),_0x3e9154['set'](_0x493449,_0x3a4ba9);}}for(const _0x519017 of _0x3e9154['keys']())(_0x1efedd['has'](_0x519017)||_0x2a2a16['has'](_0x519017))&&_0x3e9154['delete'](_0x519017);}for(const _0x441cae of _0x109ada){const _0x263b2e=_0x58c1b7['insertions'][_0x441cae];let _0x3b7447=null,_0x2fd59e=null;for(const _0x39b575 of _0x263b2e){const _0x41f7ea=this['_getVidAttributeName'](_0x39b575),_0x4824a9=_0x39b575['item']['getAttribute'](_0x41f7ea),_0x38fecb=_0x3e9154['get'](_0x4824a9);_0x38fecb&&'elementStart'==_0x39b575['type']&&(_0x3b7447=Array['from'](_0x38fecb)[0x0],_0x2fd59e=_0x39b575['item']['getAttribute']('vid_end')),_0x3b7447&&(_0x2a2a16['set'](_0x4824a9,{'userId':_0x3b7447}),_0x1efedd['set'](_0x4824a9,{'userId':_0x3b7447})),_0x4824a9==_0x2fd59e&&(_0x3b7447=null,_0x2fd59e=null);}}const _0x14c750={},_0x2e6628=new Set();for(const _0x244b0a of _0x109ada){const _0x1b4a97=_0x187dcb['deletions'][_0x244b0a],_0x200b42=_0x187dcb['insertions'][_0x244b0a];for(const {userId:_0x419485}of this['_touchedMarkers']['values']())null!==_0x419485&&_0x2e6628['add'](_0x419485);for(const {userId:_0x56d683}of this['_touchedRoots']['values']())null!==_0x56d683&&_0x2e6628['add'](_0x56d683);this['_markChanges'](_0x200b42,_0x58c1b7['insertions'][_0x244b0a],_0x1efedd,'insertion',_0x2e6628),this['_markChanges'](_0x1b4a97,_0x58c1b7['deletions'][_0x244b0a],_0x2a2a16,'deletion',_0x2e6628),_0x14c750[_0x244b0a]={'insertions':this['_prepareViewToSave'](_0x200b42),'deletions':this['_prepareViewToSave'](_0x1b4a97),'attachChange':this['_touchedRoots']['get'](_0x244b0a)||null,'attributesBefore':_0x16a120(this['_baseRootsAttributes']['get'](_0x244b0a))||{},'attributesAfter':_0x16a120(this['_diffRootsAttributes']['get'](_0x244b0a))};}return{'diffData':_0x14c750,'authorsIds':Array['from'](_0x2e6628)};}['_processRootBeforeSave'](_0x213086){for(const [,_0x5371e4]of _0x213086['markers']){const _0xe88b63=_0x5371e4['start']['getAncestors']()['filter'](_0x5dc345=>'tableCell'==_0x5dc345['name']);for(const _0x513f4a of _0xe88b63)0x1==_0x513f4a['childCount']&&_0x513f4a['getChild'](0x0)['is']('element','paragraph')&&_0x513f4a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xaae815){this['_processRootBeforeSave'](_0xaae815);const _0x3f8d61=this['editor']['data']['toView'](_0xaae815,{}),_0x44b26e=Array['from'](_0x3f8d61['getChildren']())['map'](_0x23e736=>this['_getViewJson'](_0x23e736));return JSON['stringify'](_0x44b26e);}['_getViewJson'](_0x25100c){if(_0x25100c['is']('$text'))return _0x25100c['data'];{const _0x1bdc8e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5e8e4b=_0x25100c,_0x7f2c68=this['editor']['data']['htmlProcessor']['domConverter'],_0x4b1b8b={'type':_0x1bdc8e['_getTypeCharForViewElement'](_0x5e8e4b),'name':_0x5e8e4b['name'],'attributes':Array['from'](_0x5e8e4b['getAttributes']()),'children':Array['from'](_0x5e8e4b['getChildren']())['map'](_0x320da3=>this['_getViewJson'](_0x320da3))};if(_0x25100c['is']('uiElement')&&'$comment'!=_0x25100c['name']){const _0x11b2f6=_0x25100c['render'](_0x7f2c68['domDocument'],_0x7f2c68);_0x4b1b8b['children']['push'](_0x11b2f6['outerHTML']);}else{if(_0x25100c['is']('rawElement')){const _0x44f1ef=_0x7f2c68['domDocument']['createElement'](_0x5e8e4b['name']);_0x25100c['render'](_0x44f1ef,_0x7f2c68),_0x4b1b8b['children']['push'](_0x44f1ef['innerHTML']);}}const _0x3555ff=Array['from'](_0x5e8e4b['getCustomProperties']());_0x3555ff['length']>0x0&&(_0x4b1b8b['customProperties']=_0x3555ff);const _0x10404f=_0x5e8e4b['getFillerOffset']();return null!==_0x10404f&&(_0x4b1b8b['fillerOffset']=_0x10404f),_0x4b1b8b;}}['_markChanges'](_0x5e3515,_0x41c4c8,_0x1be408,_0x546ec4,_0x1316d6){let _0x57f467=null,_0x2ffb71=null,_0x4d12fc=0x0;const _0x15c3e4=this['editor']['model'];for(let _0x272e3b=0x0;_0x272e3b<_0x41c4c8['length'];_0x272e3b++){const _0x24467d=this['_getVidAttributeName'](_0x41c4c8[_0x272e3b]),_0x497338=_0x41c4c8[_0x272e3b]['item']['getAttribute'](_0x24467d),_0x34f578=_0x1be408['get'](_0x497338),_0x5436cb=_0x272e3b==_0x41c4c8['length']-0x1;(!_0x57f467&&_0x34f578&&(_0x57f467=_0x34f578,_0x2ffb71=_0x41c4c8[_0x272e3b]),_0x57f467&&(!_0x34f578||_0x34f578['userId']!=_0x57f467['userId']))&&(_0x51e736(_0x34f578,P(_0x2ffb71,_0x5e3515,_0x15c3e4),P(_0x41c4c8[_0x272e3b],_0x5e3515,_0x15c3e4)),_0x57f467=_0x34f578||null,_0x2ffb71=_0x34f578?_0x41c4c8[_0x272e3b]:null),_0x57f467&&_0x5436cb&&_0x51e736(_0x34f578,P(_0x2ffb71,_0x5e3515,_0x15c3e4),V(_0x41c4c8[_0x272e3b],_0x5e3515,_0x15c3e4));}function _0x51e736(_0x1eee8d,_0x4b6614,_0x574391){const _0x2db864=_0x57f467['userId'],_0x30e2d3='revision:'+_0x546ec4+':'+_0x2db864+':'+_0x4d12fc++,_0x5eb72a=_0x15c3e4['createRange'](_0x4b6614,_0x574391);_0x5e3515['markers']['set'](_0x30e2d3,_0x5eb72a),null!==_0x2db864&&_0x1316d6['add'](_0x2db864);}}['_getVidAttributeName'](_0x3f092f){switch(_0x3f092f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x145a71,_0x1f974f){_0x145a71['baseVersion']=null;for(const _0x5acf2c in _0x145a71){const _0x2e0abe=_0x145a71[_0x5acf2c];if(_0x2e0abe instanceof _0x15ef30){const _0x23c416=_0x1f974f['get'](_0x2e0abe['root']['rootName']);_0x145a71[_0x5acf2c]=this['_fixPosition'](_0x2e0abe,_0x23c416);}if(_0x2e0abe instanceof _0x4be064){const _0x149008=_0x1f974f['get'](_0x2e0abe['root']['rootName']);_0x145a71[_0x5acf2c]=this['_fixRange'](_0x2e0abe,_0x149008);}'root'===_0x5acf2c&&(_0x145a71['root']=_0x1f974f['get'](_0x145a71['root']['rootName']));}}['_fixRange'](_0x386472,_0x5b4bad){return this['editor']['model']['createRange'](this['_fixPosition'](_0x386472['start'],_0x5b4bad),this['_fixPosition'](_0x386472['end'],_0x5b4bad));}['_fixPosition'](_0x4979da,_0xf5a508){return this['editor']['model']['createPositionFromPath'](_0xf5a508,_0x4979da['path'],_0x4979da['stickiness']);}['_handleInsertOperation'](_0x5c44ed){const _0x55a0aa=this['_idsRoots']['get'](_0x5c44ed['position']['root']['rootName']),_0x415f5a=this['_fixPosition'](_0x5c44ed['position'],_0x55a0aa),_0x46eb16=null===_0x5c44ed['_authorId']?null:_0x5c44ed['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x345573=_0x415f5a['parent'],_0x3baba2=this['_revisionId'],_0x25316e=[];for(const _0x251f82 of _0x5c44ed['nodes'])if(_0x251f82['is']('element'))_0x25316e['push'](this['_makeIdsRoot'](_0x251f82));else{for(let _0x21aa46=0x0;_0x21aa46<_0x251f82['offsetSize'];_0x21aa46++)_0x25316e['push'](new _0x4d1ea2('$text',{'vid':this['_revisionId']++}));}const _0x32cfcc=this['_revisionId'];for(let _0x5550cc=_0x3baba2;_0x5550cc<_0x32cfcc;_0x5550cc++)this['_touched']['set'](_0x5550cc,{'userId':_0x46eb16});_0x345573['_insertChild'](_0x415f5a['offset'],_0x25316e);}['_handleMoveOperation'](_0x44f14e){(_0x44f14e=this['_cloneOperation'](_0x44f14e,this['_idsRoots']))['_execute']();const _0x9d252a=null===_0x44f14e['_authorId']?null:_0x44f14e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4aa2c8=_0x44f14e['getMovedRangeStart'](),_0x16532a=_0x4aa2c8['parent'],_0x11f4e7=_0x4aa2c8['offset'];!function _0x1e1a1d(_0x3d4ef2,_0x2a75bf,_0x3ee326,_0x464a27){for(let _0x141651=_0x3ee326;_0x141651<_0x464a27;_0x141651++){const _0x282226=_0x2a75bf['getChild'](_0x141651);_0x282226['is']('element','$text')?_0x3d4ef2['set'](_0x282226['getAttribute']('vid'),{'userId':_0x9d252a}):(_0x3d4ef2['set'](_0x282226['getAttribute']('vid_start'),{'userId':_0x9d252a}),_0x1e1a1d(_0x3d4ef2,_0x282226,0x0,_0x282226['childCount']),_0x3d4ef2['set'](_0x282226['getAttribute']('vid_end'),{'userId':_0x9d252a}));}}(this['_touched'],_0x16532a,_0x11f4e7,_0x11f4e7+_0x44f14e['howMany']);}['_handleMergeOperation'](_0x1d68a3){const _0x428665=null===(_0x1d68a3=this['_cloneOperation'](_0x1d68a3,this['_idsRoots']))['_authorId']?null:_0x1d68a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47864f=_0x1d68a3['targetPosition']['parent'],_0x31e3c6=_0x1d68a3['sourcePosition']['parent'],_0x530319=_0x47864f['getAttribute']('vid_end'),_0x542c6c=_0x31e3c6['getAttribute']('vid_start');_0x47864f['_setAttribute']('vid_end',_0x31e3c6['getAttribute']('vid_end')),_0x31e3c6['_setAttribute']('vid_end',_0x530319),this['_touched']['set'](_0x542c6c,{'userId':_0x428665}),this['_touched']['set'](_0x530319,{'userId':_0x428665}),_0x1d68a3['_execute']();}['_handleSplitOperation'](_0x43bf0d){const _0x290c7c=null===(_0x43bf0d=this['_cloneOperation'](_0x43bf0d,this['_idsRoots']))['_authorId']?null:_0x43bf0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e25b9=_0x43bf0d['graveyardPosition'],_0x387de5=_0x43bf0d['splitPosition']['parent'];_0x43bf0d['_execute']();const _0x57637d=_0x387de5['getAttribute']('vid_end'),_0x167779=_0x43bf0d['insertionPosition']['nodeAfter'];if(_0x3e25b9){const _0x155f45=_0x167779['getAttribute']('vid_end'),_0xc630fa=_0x387de5['getAttribute']('vid_end');_0x387de5['_setAttribute']('vid_end',_0x155f45),_0x167779['_setAttribute']('vid_end',_0xc630fa),this['_touched']['set'](_0x387de5['getAttribute']('vid_end'),{'userId':_0x290c7c}),this['_touched']['set'](_0x167779['getAttribute']('vid_start'),{'userId':_0x290c7c});}else{const _0x5c6c5d=this['_revisionId']++,_0x411420=this['_revisionId']++;_0x387de5['_setAttribute']('vid_end',_0x5c6c5d),_0x167779['_setAttribute']('vid_start',_0x411420),_0x167779['_setAttribute']('vid_end',_0x57637d),this['_touched']['set'](_0x5c6c5d,{'userId':_0x290c7c}),this['_touched']['set'](_0x411420,{'userId':_0x290c7c});}}['_handleMarkerOperation'](_0x1d3d1){if(!_0x1d3d1['affectsData'])return;const _0x4b695b=(_0x1d3d1=this['_cloneOperation'](_0x1d3d1,this['_diffRoots']))['oldRange']?_0x1d3d1['oldRange']['root']:null,_0x1fb39d=_0x1d3d1['newRange']?_0x1d3d1['newRange']['root']:null;_0x4b695b&&this['_markers']['delete'](_0x1d3d1['name']),_0x1fb39d&&this['_markers']['set'](_0x1d3d1['name'],_0x1d3d1['newRange']['clone']());const _0x5992f3=null===_0x1d3d1['_authorId']?null:_0x1d3d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3cfc47=_0x1d3d1['name'];if(!this['_touchedMarkers']['has'](_0x3cfc47))return void this['_touchedMarkers']['set'](_0x3cfc47,{'range':_0x1d3d1['oldRange'],'userId':_0x5992f3});const _0x56b477=this['_touchedMarkers']['get'](_0x3cfc47),_0x58d573=_0x56b477['range'],_0x368d61=_0x1d3d1['newRange'];null==_0x58d573&&null==_0x368d61||_0x58d573&&_0x368d61&&_0x58d573['isEqual'](_0x368d61)?this['_touchedMarkers']['delete'](_0x1d3d1['name']):_0x56b477['userId']=_0x5992f3;}['_handleRootOperation'](_0x470c9f,_0x49a96f){this['_diffRoots']['has'](_0x470c9f['rootName'])?this['_diffRoots']['get'](_0x470c9f['rootName'])['_isAttached']=_0x470c9f['isAdd']:(this['_diffRoots']['set'](_0x470c9f['rootName'],N(_0x470c9f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x470c9f['rootName'],{}),_0x49a96f&&this['_idsRoots']['set'](_0x470c9f['rootName'],N(_0x470c9f['rootName'],!0x0)));const _0x17a6de=null===_0x470c9f['_authorId']?null:_0x470c9f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x281705=this['_touchedRoots']['get'](_0x470c9f['rootName']);_0x281705&&_0x281705['userId']===_0x17a6de?this['_touchedRoots']['delete'](_0x470c9f['rootName']):this['_touchedRoots']['set'](_0x470c9f['rootName'],{'userId':_0x17a6de,'isAttached':_0x470c9f['isAdd']});}['_handleRootAttributeOperation'](_0x1a285e){const _0x462b90=this['_diffRootsAttributes']['get'](_0x1a285e['root']['rootName']);null===_0x1a285e['newValue']?delete _0x462b90[_0x1a285e['key']]:_0x462b90[_0x1a285e['key']]=_0x1a285e['newValue'];}}function x(_0x27565f){const _0x2f5c3c=N(_0x27565f['rootName'],_0x27565f['isAttached']());for(const _0x20e7b6 of _0x27565f['getChildren']()){const _0xa7665f=_0x20e7b6['_clone'](!0x0);_0x2f5c3c['_appendChild'](_0xa7665f);}return _0x2f5c3c;}function N(_0x821bcb,_0x441e26=!0x0){const _0x285fdc=new _0x705efd();return _0x285fdc['rootName']=_0x821bcb,_0x285fdc['_isAttached']=_0x441e26,_0x285fdc['isAttached']=()=>_0x285fdc['_isAttached'],_0x285fdc;}function P(_0x1fbdfe,_0x420d3b,_0x66543e){const _0x80d9f='elementEnd'==_0x1fbdfe['type']?_0x66543e['createPositionAt'](_0x1fbdfe['item'],'end'):_0x66543e['createPositionBefore'](_0x1fbdfe['item']);return _0x66543e['createPositionFromPath'](_0x420d3b,_0x80d9f['path'],_0x80d9f['stickiness']);}function V(_0x139b13,_0x16c67c,_0x28d910){const _0x3dfbf9='elementStart'==_0x139b13['type']?_0x28d910['createPositionAt'](_0x139b13['item'],0x0):_0x28d910['createPositionAfter'](_0x139b13['item']);return _0x28d910['createPositionFromPath'](_0x16c67c,_0x3dfbf9['path'],_0x3dfbf9['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x598ba2(_0x54ee3c){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c6287,_0x2a9e57){super(_0x1c6287),this['focusTracker']=new _0x32e82f(),this['keystrokes']=new _0x2ae060(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2a9e57),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'](),_0x2738e4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14c712=_0x3de169=>_0x3de169['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14c712),this['keystrokes']['set']('arrowleft',_0x14c712),this['keystrokes']['set']('arrowup',_0x14c712),this['keystrokes']['set']('arrowdown',_0x14c712);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x17ac13){this['revisionNameInputView']['fieldView']['element']['value']=_0x17ac13['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x21cb88){const _0x155f51=new et(this['locale'],ti),_0x49e077=_0x155f51['fieldView'];_0x49e077['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x41eb60=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x21cb88&&(_0x41eb60+='\x20('+R(this['locale'],'optional')+')'),(_0x155f51['label']=_0x41eb60,_0x49e077['on']('input',()=>{this['revisionNameInputValue']=_0x49e077['element']['value']['trim']();}),_0x155f51);}}class v extends _0x449360{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3785c4=this['editor'],_0x2c2af4=_0x3785c4['plugins']['get']('RevisionTracker');_0x3785c4['ui']['componentFactory']['add']('revisionHistory',_0x3300a6=>{const _0x1f64c2=_0x3b7ce8(_0x3300a6),_0x4fe7d4=_0x1f64c2['panelView']['children'],_0x5c86f6=new _0x171f64(_0x3300a6),_0x28bd8d=new _0x5d7c86(_0x3300a6),_0x3ac53f=new _0x29e09a(_0x3300a6),_0x709315=new _0x5d7c86(_0x3300a6),_0xdaf64a=new _0x29e09a(_0x3300a6);return _0x1f64c2['bind']('isEnabled')['to'](_0x2c2af4,'isReady',_0x2c2af4,'isEnabled',_0x3785c4,'isReadOnly',(_0x580e2c,_0x20fb47,_0x222a09)=>_0x580e2c&&_0x20fb47&&!_0x222a09),_0x1f64c2['buttonView']['set']({'icon':_0x507409,'label':R(_0x3300a6,'Revision\x20history'),'tooltip':!0x0}),_0x3ac53f['set']({'label':R(_0x3300a6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3ac53f['bind']('isEnabled')['to'](_0x2c2af4,'isReady',_0x2c2af4,'isEnabled',_0x3785c4,'isReadOnly',(_0x3c3278,_0x34b443,_0x582f14)=>_0x3c3278&&_0x34b443&&!_0x582f14),_0x3ac53f['on']('execute',()=>this['_showDialog']()),_0xdaf64a['set']({'label':R(_0x3300a6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xdaf64a['bind']('isEnabled')['to'](_0x2c2af4,'isReady',_0x3785c4,'isReadOnly',(_0x481c80,_0x3f653c)=>_0x481c80&&!_0x3f653c),_0xdaf64a['on']('execute',()=>{_0x3785c4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1f64c2['isOpen']=!0x1,_0x3785c4['editing']['view']['focus']();}),_0x28bd8d['children']['add'](_0x3ac53f),_0x709315['children']['add'](_0xdaf64a),_0x5c86f6['role']='menu',_0x5c86f6['items']['addMany']([_0x28bd8d,_0x709315]),_0x4fe7d4['add'](_0x5c86f6),_0x1f64c2;}),_0x3785c4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3bed65=this['editor'],_0x3bad1c=_0x3bed65['locale'],_0x5968cc=new _0x51e6c0(_0x3bad1c),_0x1dd084=new _0x338638(_0x3bad1c);_0x5968cc['buttonView']['set']({'icon':_0x507409,'label':R(_0x3bad1c,'Revision\x20history')});const _0xf711a0=new _0x517569(_0x3bad1c,_0x5968cc),_0xad6e1=new _0xcd3c27(_0x3bad1c);_0xad6e1['set']({'label':R(_0x3bad1c,'Save\x20current\x20revision')}),_0xad6e1['delegate']('execute')['to'](_0x5968cc),_0xad6e1['on']('execute',()=>{this['_showDialog']();}),_0xf711a0['children']['add'](_0xad6e1),_0x1dd084['items']['add'](_0xf711a0);const _0x59f0a0=new _0x517569(_0x3bad1c,_0x5968cc),_0x5e6221=new _0xcd3c27(_0x3bad1c);return _0x5e6221['set']({'label':R(_0x3bad1c,'Open\x20revision\x20history')}),_0x5e6221['delegate']('execute')['to'](_0x5968cc),_0x5e6221['on']('execute',()=>{_0x3bed65['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59f0a0['children']['add'](_0x5e6221),_0x1dd084['items']['add'](_0x59f0a0),_0x5968cc['panelView']['children']['add'](_0x1dd084),_0x5968cc;}['_showDialog'](){const _0x1d43de=this['editor'],_0x82199=_0x1d43de['locale'],_0x2d2407=_0x1d43de['plugins']['get']('Dialog'),_0x1e3fff=_0x1d43de['plugins']['get']('RevisionTracker');function _0x4bc563(_0x390485){_0x1d43de['config']['get']('revisionHistory.requireRevisionName')&&''===_0x390485['revisionName']?_0x390485['revisionNameInputView']['errorText']=R(_0x82199,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d43de['plugins']['get'](h)['saveRevision']({'name':_0x390485['revisionName']}),_0x2d2407['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4bc563(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2d2407['show']({'id':'revisionSave','title':R(_0x82199,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1d43de['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2d2407['hide']()},{'label':R(_0x1d43de['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4fd90e){_0x4fd90e['bind']('isEnabled')['to'](_0x1e3fff,'isReady',_0x1e3fff,'isEnabled',_0x1d43de,'isReadOnly',(_0x3fd1cc,_0x14f05d,_0x268f5e)=>_0x3fd1cc&&_0x14f05d&&!_0x268f5e);},'onExecute':()=>_0x4bc563(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x16da49=this['editor'],_0x16d7d8=_0x16da49['locale'];this['_saveRevisionFormView']=new me(_0x16d7d8,_0x16da49['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x54ee3c{['changeId'];['_model'];constructor(_0x278f8e,_0x22c88b){super(_0x278f8e),this['_model']=_0x22c88b,this['changeId']=_0x22c88b['id'];const _0x21b63a=this['bindTemplate'],_0x182041=R(_0x278f8e,_0x22c88b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x22c88b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x22c88b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x21b63a['to']('type',_0x2da43c=>'ck-revision-change__'+_0x2da43c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x182041}]},{'text':'\x20'+_0x22c88b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x289903(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x39c491){super(),this['id']=_0x39c491['id']||_0x20586a(),this['author']=_0x39c491['author'],this['type']=_0x39c491['type'],this['data']=_0x39c491['data']||{},this['rootName']=_0x39c491['rootName'],this['set']('createdAt',_0x39c491['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(_0x299895,_0x4001e4){this['newRevisionId']=_0x299895,this['oldRevisionId']=_0x4001e4,this['changes']=new _0x59f5e7();}['_setChanges'](_0x4e6db1){for(const _0x3dc21c of _0x4e6db1)this['changes']['add'](_0x3dc21c);}}class l extends _0x449360{['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[_0x3b5410,_0x330ba8,S,$];}constructor(_0x595279){super(_0x595279),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',(_0x4535d5,_0x1259a7,_0x4a7670)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5a6c2d=>{for(const _0x414d9a of this['editor']['editing']['view']['document']['roots'])_0x4a7670?_0x5a6c2d['removeClass']('ck-editor__editable__overlay',_0x414d9a):_0x5a6c2d['addClass']('ck-editor__editable__overlay',_0x414d9a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x552fa6=>null!==_0x552fa6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xda9998,_0x583bf1,_0x59df36)=>_0xda9998&&_0x59df36?_0x583bf1['changes']['getIndex'](_0x59df36):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4dea43,_0x2c26b9)=>_0x4dea43?_0x2c26b9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x330ba8);}['init'](){const _0xd5ce69=this['editor'],_0x4ab9c9=new rt(_0xd5ce69,{'direction':'backward'}),_0x4e374d=new rt(_0xd5ce69,{'direction':'forward'});(_0xd5ce69['commands']['add']('showPreviousChange',_0x4ab9c9),_0xd5ce69['commands']['add']('showNextChange',_0x4e374d),_0xd5ce69['commands']['add']('restoreRevision',new nt(_0xd5ce69)),this['on']('change:numberOfChanges',()=>{_0x4ab9c9['refresh'](),_0x4e374d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xd5ce69['enableReadOnlyMode']('revision-viewer'),_0xd5ce69['plugins']['has']('WidgetToolbarRepository'))&&_0xd5ce69['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x46d294){return await this['_utils']['loadRevisionData'](_0x46d294,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x46d294);}async['getRevisionRootsAttributes'](_0x56547d){return await this['_utils']['loadRevisionData'](_0x56547d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56547d);}async['compare'](_0x527782,_0x2b8034,_0x3b6886=!0x1){if(!this['isEnabled'])return;const _0xd89e9=this['diff'],_0x46e985=this['repository'],_0x392c71='string'==typeof _0x527782?_0x46e985['getRevision'](_0x527782):_0x527782,_0x37c443='string'==typeof _0x2b8034?_0x46e985['getRevision'](_0x2b8034):_0x2b8034,_0x5f3376=_0x392c71['id'],_0xfb3a9=_0x37c443?_0x37c443['id']:null;if(!_0x3b6886&&this['diff']&&this['diff']['newRevisionId']===_0x5f3376&&this['diff']['oldRevisionId']===_0xfb3a9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5f3376,_0xfb3a9);const _0x9e92c4=this['_getRevisionsRange'](_0x392c71,_0x37c443,!0x0)['map'](_0x323309=>this['_utils']['loadRevisionData'](_0x323309,this['adapter']));return _0x9e92c4['push'](new Promise(_0x3343c5=>{setTimeout(_0x3343c5,0x14);})),Promise['all'](_0x9e92c4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xad3c0b=this['_getDiff'](_0x5f3376,_0xfb3a9);for(const _0x10f190 of _0xad3c0b['changes'])this['_changeIdToChange']['set'](_0x10f190['id'],_0x10f190);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x189206=>{for(const _0x3cbca3 of this['editor']['model']['document']['getRootNames']())_0x189206['detachRoot'](_0x3cbca3);for(const _0x133d6f of Object['keys'](_0xad3c0b['model'])){const _0x3c4ba0=_0x189206['addRoot'](_0x133d6f);for(const _0x2eaa9c of Object['keys'](_0xad3c0b['attributes'][_0x133d6f]))_0x189206['setAttribute'](_0x2eaa9c,_0xad3c0b['attributes'][_0x133d6f][_0x2eaa9c],_0x3c4ba0);_0x189206['insert'](_0xad3c0b['model'][_0x133d6f],_0x3c4ba0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xad3c0b['changes'])),this['isReady']=!0x0;})['catch'](_0x550ed7=>{console['error'](_0x550ed7),this['_cleanUp'](),_0xd89e9&&(this['diff']=_0xd89e9),this['isReady']=!0x0;});}['addRevisionData'](_0x3f7674,_0x4ed717){const _0x54dfee=this['repository']['createRevision'](_0x3f7674);return _0x54dfee['on']('_update',(_0x5407a4,_0x378fc0,_0x572a49)=>_0x4ed717(_0x378fc0,_0x572a49,_0x54dfee)),this['repository']['addRevision'](_0x54dfee),_0x54dfee;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x417b2c=>{for(const _0x4e731d of this['editor']['model']['document']['getRootNames']())_0x417b2c['detachRoot'](_0x4e731d);});}['_sortAndFilterDiffChanges'](_0x345634){const _0x4494a5=[],_0x80bd8d=new Map();for(const _0xd7f468 of this['editor']['model']['document']['getRootNames']()){const _0x2ab7da=this['editor']['editing']['view']['getDomRoot'](_0xd7f468);if(!_0x2ab7da)continue;const _0x2fcee4=_0x2ab7da['getClientRects']()['item'](0x0);_0x2fcee4&&(_0x4494a5['push'](_0xd7f468),_0x80bd8d['set'](_0xd7f468,_0x2fcee4));}return _0x4494a5['sort']((_0x333a49,_0x2a22c0)=>{const _0x23d2bb=_0x80bd8d['get'](_0x333a49),_0x4ef9c1=_0x80bd8d['get'](_0x2a22c0);return _0x23d2bb['y']-_0x4ef9c1['y']||_0x23d2bb['x']-_0x4ef9c1['x'];}),(_0x345634=_0x345634['filter'](_0x4c85e4=>_0x4494a5['includes'](_0x4c85e4['rootName'])))['sort']((_0x9ca032,_0x251efc)=>_0x4494a5['indexOf'](_0x9ca032['rootName'])-_0x4494a5['indexOf'](_0x251efc['rootName'])),_0x345634;}['_makeTape'](_0x3460ab){const _0x140658=Array['from'](_0x3460ab['markers'])['filter'](([_0x1ed99a,_0x1906ed])=>_0x1ed99a['startsWith']('revision:')&&!_0x1906ed['isCollapsed']),_0x53a06e=Array['from'](this['editor']['model']['createRangeIn'](_0x3460ab)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x140658['length'])for(const _0x2bb9a0 of _0x53a06e){const [_0x389677,_0x56edd2]=_0x140658[0x0],[,_0x248d70,_0x245866]=_0x389677['split'](':');if(_0x56edd2['end']['isEqual'](_0x2bb9a0['nextPosition'])&&_0x140658['shift'](),(_0x2bb9a0['previousPosition']['isEqual'](_0x56edd2['start'])||_0x2bb9a0['previousPosition']['isAfter'](_0x56edd2['start']))&&('insertion'==_0x248d70?_0x2bb9a0['isAdded']={'userId':_0x245866}:'deletion'==_0x248d70&&(_0x2bb9a0['isRemoved']={'userId':_0x245866})),0x0==_0x140658['length'])break;}return _0x53a06e;}['_refreshStartEndIndex'](_0x857279){const _0x5d687c=new Map();for(let _0x35f72d=0x0;_0x35f72d<_0x857279['length'];_0x35f72d++)'text'===_0x857279[_0x35f72d]['type']?(_0x857279[_0x35f72d]['item']['startIndex']=_0x35f72d,_0x857279[_0x35f72d]['item']['endIndex']=_0x35f72d):('elementStart'===_0x857279[_0x35f72d]['type']?_0x857279[_0x35f72d]['item']['startIndex']=_0x35f72d:'elementEnd'===_0x857279[_0x35f72d]['type']&&(_0x857279[_0x35f72d]['item']['endIndex']=_0x35f72d),_0x5d687c['set'](_0x857279[_0x35f72d]['id'],_0x35f72d));for(const _0x37a2f8 of _0x5d687c['values']())'elementStart'===_0x857279[_0x37a2f8]['type']?_0x857279[_0x37a2f8]['item']['endIndex']=_0x5d687c['get'](_0x857279[_0x37a2f8]['pairId']):'elementEnd'===_0x857279[_0x37a2f8]['type']&&(_0x857279[_0x37a2f8]['item']['startIndex']=_0x5d687c['get'](_0x857279[_0x37a2f8]['pairId']));}['_processTape'](_0x3eb857){for(let _0x3cac25=0x0;_0x3cac25<_0x3eb857['length'];_0x3cac25++){if('elementStart'===_0x3eb857[_0x3cac25]['type'])_0x3eb857[_0x3cac25]['item']['startIndex']=_0x3cac25;else{if('elementEnd'===_0x3eb857[_0x3cac25]['type']){_0x3eb857[_0x3cac25]['item']['endIndex']=_0x3cac25;const _0x3364de=_0x3eb857[_0x3cac25]['item']['startIndex'];_0x3eb857[_0x3364de]['pairId']=_0x3eb857[_0x3cac25]['id'],_0x3eb857[_0x3cac25]['pairId']=_0x3eb857[_0x3364de]['id'];}else _0x3eb857[_0x3cac25]['item']['startIndex']=_0x3cac25,_0x3eb857[_0x3cac25]['item']['endIndex']=_0x3cac25,_0x3eb857[_0x3cac25]['pairId']=null;}_0x3eb857[_0x3cac25]['markersStart']||(_0x3eb857[_0x3cac25]['markersStart']=[],_0x3eb857[_0x3cac25]['markersEnd']=[]);}}['_markInsertions'](_0x45fbd5,_0x70642a){const _0x109a04=_0x45fbd5['filter'](_0x43b5ad=>!_0x43b5ad['isAdded']);for(let _0x32a7d6=0x0;_0x32a7d6<_0x70642a['length'];_0x32a7d6++)_0x70642a[_0x32a7d6]['isAdded']&&(_0x109a04[_0x32a7d6]['isAdded']=_0x70642a[_0x32a7d6]['isAdded']);}['_getDiff'](_0x31f50a,_0x47cfd4=null){const _0x2b2adc=this['repository']['getRevision'](_0x31f50a),_0x2710f0=_0x47cfd4?this['repository']['getRevision'](_0x47cfd4):null,_0x3d7fe6=this['_getRevisionsRange'](_0x2b2adc,_0x2710f0),_0x3ab4d8=_0x3d7fe6[_0x3d7fe6['length']-0x1],_0x5ab07e=new Map(),_0x27bcf4={'model':{},'attributes':{},'changes':[]},_0x41dc4f=new Set(),_0x876c33=new Map();for(let _0xf0eab1=_0x3d7fe6['length']-0x1;_0xf0eab1>=0x0;_0xf0eab1--){const _0x3c6f60=_0x3d7fe6[_0xf0eab1];for(const _0x3405c0 of Object['keys'](_0x3c6f60['diffData']))if(_0x3c6f60['diffData'][_0x3405c0]['attachChange']){const _0x1b7dd5=_0x3c6f60['diffData'][_0x3405c0]['attachChange'];_0x1b7dd5['isAttached']?(_0x41dc4f['add'](_0x3405c0),_0x876c33['has'](_0x3405c0)&&_0x876c33['get'](_0x3405c0)['userId']==_0x1b7dd5['userId']?_0x876c33['delete'](_0x3405c0):_0x876c33['set'](_0x3405c0,_0x1b7dd5)):_0x876c33['has'](_0x3405c0)?(_0x41dc4f['delete'](_0x3405c0),_0x876c33['delete'](_0x3405c0)):(_0x41dc4f['add'](_0x3405c0),_0x876c33['set'](_0x3405c0,_0x1b7dd5));}else _0x41dc4f['add'](_0x3405c0);}for(const _0x419bd4 of _0x41dc4f){const _0x2c9a32=_0x876c33['has'](_0x419bd4)&&!_0x876c33['get'](_0x419bd4)['isAttached'];let _0x584de5=_0x2c9a32?_0x3d7fe6['length']-0x1:0x0;const _0x2d46b6=_0x2c9a32?-0x1:0x1;for(;_0x3d7fe6[_0x584de5];){const _0x23a34a=_0x3d7fe6[_0x584de5];if(_0x23a34a['diffData'][_0x419bd4]){const _0xddde14=_0x2c9a32?_0x23a34a['diffData'][_0x419bd4]['attributesBefore']:_0x23a34a['diffData'][_0x419bd4]['attributesAfter'];_0x27bcf4['attributes'][_0x419bd4]=_0xddde14?_0x16a120(_0xddde14):{};break;}_0x584de5+=_0x2d46b6;}}for(const _0x21812b of _0x3d7fe6){_0x21812b['model']={};for(const _0x336c41 of _0x21812b['authors'])_0x5ab07e['set'](_0x336c41['id'],_0x336c41);for(const _0xea867d of _0x41dc4f){const _0x455354=_0x21812b['diffData'][_0xea867d]?_0x21812b['diffData'][_0xea867d]['insertions']:'[]',_0xc5b32d=_0x21812b['diffData'][_0xea867d]?_0x21812b['diffData'][_0xea867d]['deletions']:'[]';_0x21812b['model'][_0xea867d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x455354),'deletions':this['_utils']['_makeModelFromViewString'](_0xc5b32d)};}}for(const _0x4afe6b of _0x41dc4f){let _0x5c451c=null,_0xe14514=0x0;const _0x59d09e=new Map(Array['from'](_0x2b2adc['model'][_0x4afe6b]['insertions']['markers'])['filter'](([_0x46581f])=>!_0x46581f['startsWith']('revision:')));let _0x43a1e2=0x0;for(const _0x5c05df of _0x3d7fe6){const _0x7bf391=this['_makeTape'](_0x5c05df['model'][_0x4afe6b]['insertions']);_0x5c05df==_0x2b2adc?(_0x5c451c=_0x7bf391,_0xe14514=_0x5c451c['length'],_0x5c451c['forEach'](_0x2fb990=>{_0x2fb990['id']=_0x43a1e2++;}),this['_processTape'](_0x5c451c)):this['_markInsertions'](_0x5c451c,_0x7bf391);const _0xb438ad=_0x5c451c['filter'](_0x47ca5d=>!_0x47ca5d['isAdded'])['map'](_0xad2624=>_0xad2624['id']);let _0x12aa60=0x0;const _0x11a3cd=this['_makeTape'](_0x5c05df['model'][_0x4afe6b]['deletions']);_0x11a3cd['forEach'](_0x498e08=>{_0x498e08['isRemoved']?_0x498e08['id']=_0xe14514++:_0x498e08['id']=_0xb438ad[_0x12aa60++];}),this['_processTape'](_0x11a3cd),this['_setDistance'](_0x5c451c,'isAdded'),this['_setDistance'](_0x11a3cd,'isRemoved'),_0x5c05df==_0x2b2adc&&this['_markMarkers'](_0x5c451c,_0x59d09e),_0x5c451c=this['_joinTapes'](_0x5c451c,_0x11a3cd),this['_refreshStartEndIndex'](_0x5c451c),this['_setDistance'](_0x5c451c,'isRemoved');}_0x5c451c=_0x5c451c['filter'](_0x1bda6c=>!(_0x1bda6c['isAdded']&&_0x1bda6c['isRemoved']));const _0x638b39=new Map(_0x3ab4d8['model'][_0x4afe6b]['deletions']['markers']),_0x2ad6c2=new Set(_0x59d09e['keys']());for(const _0x444a10 of _0x638b39['keys']())_0x2ad6c2['delete'](_0x444a10);this['_markSuggestions'](_0x5c451c,_0x2ad6c2),this['_fixObsoleteTags'](_0x5c451c),_0x5c451c=this['_removeMissingPairs'](_0x5c451c),_0x5c451c=this['_markMismatchedRemovedTags'](_0x5c451c),_0x5c451c=this['_removeUnsupportedChanges'](_0x5c451c);const {root:_0x188902,changes:_0x17f88c}=this['_makeModelFromTape'](_0x5c451c,_0x5ab07e,_0x4afe6b);_0x27bcf4['model'][_0x4afe6b]=_0x188902;const _0x1ebc40=_0x876c33['get'](_0x4afe6b);if(_0x1ebc40){const _0x4d2b99=_0x5ab07e['get'](_0x1ebc40['userId']),_0x1d2aea=new G({'author':_0x4d2b99,'type':_0x1ebc40['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4afe6b});_0x17f88c['unshift'](_0x1d2aea),_0x27bcf4['attributes'][_0x4afe6b]['revisionHistoryAttachChange']=_0x1d2aea['id'];}_0x27bcf4['changes']=_0x27bcf4['changes']['concat'](_0x17f88c);}return _0x27bcf4;}['_markMarkers'](_0x42177b,_0x447643){for(let _0x160b99=0x0;_0x160b99<_0x42177b['length'];_0x160b99++)for(const [_0x375aad,_0x6285d8]of _0x447643)!_0x6285d8['isCollapsed']&&_0x6285d8['start']['isEqual'](_0x42177b[_0x160b99]['previousPosition'])&&_0x42177b[_0x160b99]['markersStart']['push'](_0x375aad),_0x6285d8['end']['isEqual'](_0x42177b[_0x160b99]['nextPosition'])&&_0x42177b[_0x160b99]['markersEnd']['push'](_0x375aad);}['_joinTapes'](_0x1ea75c,_0xde5a7f){let _0x214bd7=[],_0x4ee342=0x0,_0x50ec9f=0x0;for(;_0x4ee342<_0x1ea75c['length']||_0x50ec9f<_0xde5a7f['length'];){const _0x4d0fdf=_0x1ea75c[_0x4ee342]||{},_0x396e4a=_0xde5a7f[_0x50ec9f]||{};if(_0x4d0fdf['id']==_0x396e4a['id'])_0x4ee342++,_0x50ec9f++,_0x214bd7['push'](_0x4d0fdf);else{if(_0x396e4a['isRemoved']&&_0x4d0fdf['isAdded']){const {commonTape:_0x506223,iEnd:_0xb8f4,jEnd:_0x2b0405}=this['_threeWayMerge'](_0x1ea75c,_0x4ee342,_0xde5a7f,_0x50ec9f);_0x214bd7=_0x214bd7['concat'](_0x506223),_0x4ee342=_0xb8f4,_0x50ec9f=_0x2b0405;}else _0x396e4a['isRemoved']?(_0x50ec9f++,_0x214bd7['push'](_0x396e4a)):(_0x4ee342++,_0x214bd7['push'](_0x4d0fdf));}}return _0x214bd7;}['_markSuggestions'](_0x12bed6,_0x42c213){const _0x311375=[];for(let _0x531e00=0x0;_0x531e00<_0x12bed6['length'];_0x531e00++){for(let _0x1ce4ce=0x0;_0x1ce4ce<_0x12bed6[_0x531e00]['markersStart']['length'];_0x1ce4ce++){const _0x1c87bc=_0x12bed6[_0x531e00]['markersStart'][_0x1ce4ce];if(!_0x42c213['has'](_0x1c87bc))continue;const {group:_0x2829d0,type:_0x1c41f0,authorId:_0xf3f558}=_0x28a9bf(_0x1c87bc);'revision-suggestion'!=_0x2829d0||'insertion'!=_0x1c41f0&&'deletion'!=_0x1c41f0||(_0x311375['unshift']({'type':_0x1c41f0,'name':_0x1c87bc,'userId':_0xf3f558}),_0x12bed6[_0x531e00]['markersStart']['splice'](_0x1ce4ce,0x1),_0x1ce4ce--);}_0x2914ea(_0x12bed6[_0x531e00]);for(let _0x508cff=0x0;_0x508cff<_0x12bed6[_0x531e00]['markersEnd']['length'];_0x508cff++){const _0x1f1c4d=_0x12bed6[_0x531e00]['markersEnd'][_0x508cff];if(!_0x42c213['has'](_0x1f1c4d))continue;const {group:_0x3e09a9,type:_0x152dd3}=_0x28a9bf(_0x1f1c4d);if('revision-suggestion'!=_0x3e09a9||'insertion'!=_0x152dd3&&'deletion'!=_0x152dd3)continue;_0x12bed6[_0x531e00]['markersEnd']['splice'](_0x508cff,0x1),_0x508cff--;const _0x1b0e3f=_0x311375['findIndex'](_0x3d23b7=>_0x3d23b7['name']==_0x1f1c4d);_0x1b0e3f>-0x1&&_0x311375['splice'](_0x1b0e3f,0x1);}}function _0x28a9bf(_0xe72127){const _0xf67830=_0xe72127['split'](':');return{'group':_0xf67830[0x0],'type':_0xf67830[0x1],'subType':_0xf67830['length']>=0x5?_0xf67830[0x2]:null,'id':_0xf67830['length']<0x5?_0xf67830[0x2]:_0xf67830[0x3],'authorId':_0xf67830['length']<0x5?_0xf67830[0x3]:_0xf67830[0x4],'markerCount':0x6==_0xf67830['length']?_0xf67830[0x5]:null};}function _0x2914ea(_0x4cc650){for(let _0x1f4f78=0x0;_0x1f4f78<_0x311375['length'];_0x1f4f78++){if(_0x4cc650['isAdded']&&'insertion'==_0x311375[_0x1f4f78]['type']&&_0x4cc650['isAdded']['userId']==_0x311375[_0x1f4f78]['userId'])return _0x4cc650['isAddSuggestion']=_0x311375[_0x1f4f78],void delete _0x4cc650['isAdded'];if(!_0x4cc650['isAdded']&&!_0x4cc650['isRemoved']&&'deletion'==_0x311375[_0x1f4f78]['type'])return void(_0x4cc650['isRemoveSuggestion']=_0x311375[_0x1f4f78]);}}}['_setDistance'](_0x5865d7,_0x1a904d){let _0x538ac8=0x0,_0xe9b4=!0x1;const _0x356fc0=new Map();for(const _0x29d1a7 of _0x5865d7)_0x29d1a7[_0x1a904d]?_0xe9b4&&(_0x538ac8++,_0xe9b4=!0x1):(_0x538ac8++,_0xe9b4=!0x0),_0x356fc0['set'](_0x29d1a7['id'],_0x538ac8);for(let _0x4f37f8=0x0;_0x4f37f8<_0x5865d7['length'];_0x4f37f8++){if('isRemoved'==_0x1a904d&&_0x5865d7[_0x4f37f8]['isAdded']||'isAdded'==_0x1a904d&&_0x5865d7[_0x4f37f8]['isRemoved'])continue;if('text'==_0x5865d7[_0x4f37f8]['type']){_0x5865d7[_0x4f37f8]['distance']=0x0;continue;}const _0x4ad5cf=_0x356fc0['get'](_0x5865d7[_0x4f37f8]['pairId']),_0x3efc93=_0x356fc0['get'](_0x5865d7[_0x4f37f8]['id']);_0x5865d7[_0x4f37f8]['distance']=_0x4ad5cf-_0x3efc93;}}['_getRevisionsRange'](_0x298e8e,_0x2df6ed,_0x44a110=!0x1){const _0x558750=[];let _0x57afe7=this['repository']['getIndex'](_0x298e8e),_0x4b614d=this['repository']['getIndex'](_0x2df6ed);for(-0x1==_0x4b614d&&(_0x4b614d=this['repository']['_revisions']['length'],_0x44a110=!0x1);_0x57afe7<_0x4b614d;)_0x558750['push'](this['repository']['getRevision'](_0x57afe7)),_0x57afe7++;return _0x44a110&&_0x558750['push'](this['repository']['getRevision'](_0x57afe7)),_0x558750;}['_threeWayMerge'](_0x462426,_0x227cea,_0xb65a47,_0x23c652){const _0x3d25fb=this['editor']['model']['schema'];let _0x39da1d=_0x227cea;for(;_0x462426[_0x39da1d]&&_0x462426[_0x39da1d]['isAdded'];)_0x39da1d++;let _0x5511c9=_0x23c652;for(;_0xb65a47[_0x5511c9]&&_0xb65a47[_0x5511c9]['isRemoved'];)_0x5511c9++;_0x404502(_0x462426,_0x227cea,_0x39da1d),_0x404502(_0xb65a47,_0x23c652,_0x5511c9);const _0x22e777=_0xb65a47['slice'](_0x23c652,_0x5511c9)['concat'](_0x462426['slice'](_0x227cea,_0x39da1d));return _0x22e777['sort']((_0x39c747,_0x4972f0)=>_0x39c747['side']!=_0x4972f0['side']?_0x39c747['side']-_0x4972f0['side']:_0x39c747['level']!=_0x4972f0['level']?_0x39c747['level']-_0x4972f0['level']:_0x39c747['distance']!=_0x4972f0['distance']?_0x4972f0['distance']-_0x39c747['distance']:!!_0x39c747['isAdded']!=!!_0x4972f0['isAdded']?-0x1==_0x39c747['side']||0x0==_0x39c747['side']?_0x39c747['isAdded']?-0x1:0x1:_0x39c747['isAdded']?0x1:-0x1:_0x39c747['index']-_0x4972f0['index']),{'commonTape':_0x22e777,'iEnd':_0x39da1d,'jEnd':_0x5511c9};function _0x404502(_0x1c1a77,_0x225919,_0x38c775){let _0x26cd05=-0x1,_0x449bcb=Number['POSITIVE_INFINITY'],_0x19b6b8=!0x0;for(let _0x4641f8=_0x225919;_0x4641f8<_0x38c775;_0x4641f8++)if(_0x3d25fb['isInline'](_0x1c1a77[_0x4641f8]['item'])||(_0x19b6b8=!0x1),_0x1c1a77[_0x4641f8]['item']['startIndex']<_0x225919&&(_0x26cd05=_0x4641f8),_0x1c1a77[_0x4641f8]['item']['endIndex']>=_0x38c775){_0x449bcb=_0x4641f8;break;}_0x19b6b8&&(_0x26cd05=_0x38c775-0x1);for(let _0x38cfd3=_0x225919;_0x38cfd3<_0x38c775;_0x38cfd3++)_0x1c1a77[_0x38cfd3]['side']=_0x38cfd3<=_0x26cd05?-0x1:_0x38cfd3<_0x449bcb?0x0:0x1,_0x1c1a77[_0x38cfd3]['index']=_0x38cfd3;let _0x5df775=0x0;for(let _0x10469b=_0x225919;_0x10469b<=_0x26cd05;_0x10469b++)0x0==_0x1c1a77[_0x10469b]['distance']?_0x1c1a77[_0x10469b]['level']=_0x5df775:(_0x5df775++,_0x1c1a77[_0x10469b]['level']=_0x5df775,_0x5df775++);for(let _0x2944ac=_0x225919;_0x2944ac<_0x38c775;_0x2944ac++)0x0==_0x1c1a77[_0x2944ac]['side']&&(_0x1c1a77[_0x2944ac]['level']=_0x5df775);_0x5df775=0x0;for(let _0x5eaae9=_0x38c775-0x1;_0x5eaae9>=_0x449bcb;_0x5eaae9--)0x0==_0x1c1a77[_0x5eaae9]['distance']?_0x1c1a77[_0x5eaae9]['level']=_0x5df775:(_0x5df775--,_0x1c1a77[_0x5eaae9]['level']=_0x5df775,_0x5df775--);}}['_fixObsoleteTags'](_0x17a2ed){const _0x909db8=new Map(),_0x4cad9c=this['editor']['model']['schema'];for(let _0x16787e=0x1;_0x16787e<_0x17a2ed['length'];_0x16787e++){let _0x416cd0,_0x30bda3,_0x5cb983;const _0x300144=_0x17a2ed[_0x16787e],_0x31ebfb=_0x17a2ed[_0x16787e-0x1];if('text'==_0x300144['type'])continue;if(_0x300144['type']!=_0x31ebfb['type'])continue;if(!_0x4cad9c['isBlock'](_0x31ebfb['item'])||_0x4cad9c['isLimit'](_0x31ebfb['item']))continue;if(!_0x4cad9c['isBlock'](_0x300144['item'])||_0x4cad9c['isLimit'](_0x300144['item']))continue;if((_0x17a2ed[_0x16787e]['isAdded']||_0x17a2ed[_0x16787e]['isAddSuggestion'])&&_0x17a2ed[_0x16787e-0x1]['isRemoved'])_0x416cd0=_0x17a2ed[_0x16787e],_0x30bda3=_0x17a2ed[_0x16787e-0x1],_0x5cb983=_0x16787e-0x1;else{if(!_0x17a2ed[_0x16787e]['isRemoved']||!_0x17a2ed[_0x16787e-0x1]['isAdded']&&!_0x17a2ed[_0x16787e-0x1]['isAddSuggestion'])continue;_0x416cd0=_0x17a2ed[_0x16787e-0x1],_0x30bda3=_0x17a2ed[_0x16787e],_0x5cb983=_0x16787e;}const _0x2731ec=_0x416cd0['level']==_0x30bda3['level'],_0x1dc43e=Math['abs'](_0x416cd0['level'])<Math['abs'](_0x30bda3['level'])&&0x0==_0x30bda3['distance'];(_0x2731ec||_0x1dc43e)&&(_0x909db8['set'](_0x30bda3['id'],_0x416cd0['id']),_0x17a2ed['splice'](_0x5cb983,0x1),_0x16787e--,_0x416cd0['isAdded']=!0x1);}for(let _0x2b379f=0x0;_0x2b379f<_0x17a2ed['length'];_0x2b379f++)_0x909db8['has'](_0x17a2ed[_0x2b379f]['pairId'])&&(_0x17a2ed[_0x2b379f]['pairId']=_0x909db8['get'](_0x17a2ed[_0x2b379f]['pairId']));}['_removeMissingPairs'](_0x48c23e){const _0x29605c=new Set(_0x48c23e['map'](_0x14f521=>_0x14f521['id']));for(let _0x218488=0x0;_0x218488<_0x48c23e['length'];_0x218488++)_0x29605c['has'](_0x48c23e[_0x218488]['pairId'])||0x0==_0x48c23e[_0x218488]['distance']||(_0x48c23e[_0x218488]['isIncorrect']=!0x0);return _0x48c23e['filter'](_0x571d34=>!_0x571d34['isIncorrect']);}['_markMismatchedRemovedTags'](_0x19eac4){const _0x557257=new Set();for(let _0x57b644=0x0;_0x57b644<_0x19eac4['length'];_0x57b644++){if(_0x557257['has'](_0x19eac4[_0x57b644]['id'])&&_0x19eac4[_0x57b644]['isRemoved']&&(_0x19eac4[_0x57b644]['isIncorrect']=!0x0),_0x19eac4[_0x57b644]['isIncorrect'])continue;if(0x0==_0x19eac4[_0x57b644]['distance'])continue;if('elementStart'!=_0x19eac4[_0x57b644]['type'])continue;if(null==_0x19eac4[_0x57b644]['pairId'])continue;let _0x55b1d6=_0x57b644+0x1,_0xf33b04=0x0;for(;_0x19eac4[_0x55b1d6]['id']!=_0x19eac4[_0x57b644]['pairId'];)'elementStart'==_0x19eac4[_0x55b1d6]['type']?_0xf33b04++:'elementEnd'==_0x19eac4[_0x55b1d6]['type']&&_0xf33b04--,_0x55b1d6++;if(0x0!=_0xf33b04){if(_0x19eac4[_0x57b644]['isRemoved'])_0x19eac4[_0x57b644]['isIncorrect']=!0x0;else{for(;_0x55b1d6!=_0x57b644;)_0x19eac4[_0x55b1d6]['isRemoved']&&0x0!=_0x19eac4[_0x55b1d6]['distance']&&(_0x19eac4[_0x55b1d6]['isIncorrect']=!0x0,_0x557257['add'](_0x19eac4[_0x55b1d6]['pairId'])),_0x55b1d6--;}}}return _0x19eac4['filter'](_0xf5899c=>!_0xf5899c['isIncorrect']);}['_removeUnsupportedChanges'](_0x51d54b){const _0xba62d6=this['editor']['model']['schema'];for(let _0x43c555=0x0;_0x43c555<_0x51d54b['length'];_0x43c555++){if(!(_0x51d54b[_0x43c555]['isAdded']||_0x51d54b[_0x43c555]['isAddSuggestion']||_0x51d54b[_0x43c555]['isRemoved']||_0x51d54b[_0x43c555]['isRemoveSuggestion']))continue;if(0x0==_0x51d54b[_0x43c555]['distance'])continue;const _0x111a9a=_0x51d54b[_0x43c555]['item'];_0xba62d6['isBlock'](_0x111a9a)||_0xba62d6['isLimit'](_0x111a9a)||(_0x51d54b[_0x43c555]['isAdded']&&delete _0x51d54b[_0x43c555]['isAdded'],_0x51d54b[_0x43c555]['isAddSuggestion']&&delete _0x51d54b[_0x43c555]['isAddSuggestion'],_0x51d54b[_0x43c555]['isRemoveSuggestion']&&delete _0x51d54b[_0x43c555]['isRemoveSuggestion'],_0x51d54b[_0x43c555]['isRemoved']&&(_0x51d54b[_0x43c555]['isIncorrect']=!0x0));}return _0x51d54b['filter'](_0x8c5ccd=>!_0x8c5ccd['isIncorrect']);}['_makeModelFromTape'](_0x3ba466,_0x5f41f1,_0x445057){const _0x2775fb=new _0x705efd(),_0x3a3b0b=[],_0x13a26a=new Map(),_0x787fef=this['editor']['model'],_0x3fecf7=_0x787fef['schema'],_0x266fec=[_0x2775fb],_0x11b43c={},_0x553add={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x54888d=null;const _0x655395=[0x0];for(let _0x4c601f=0x0;_0x4c601f<_0x3ba466['length'];_0x4c601f++)if('elementStart'===_0x3ba466[_0x4c601f]['type']){_0x3ba466[_0x4c601f]['previousPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395);const _0x5b820d=new _0x4d1ea2(_0x3ba466[_0x4c601f]['item']['name'],_0x3ba466[_0x4c601f]['item']['getAttributes']());_0x266fec[0x0]['_appendChild'](_0x5b820d),_0x655395['push'](0x0),_0x266fec['unshift'](_0x5b820d),_0x3ba466[_0x4c601f]['nextPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395);}else'elementEnd'===_0x3ba466[_0x4c601f]['type']?(_0x266fec['shift'](),_0x3ba466[_0x4c601f]['previousPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395),_0x655395['pop'](),_0x655395[_0x655395['length']-0x1]++,_0x3ba466[_0x4c601f]['nextPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395)):(_0x3ba466[_0x4c601f]['previousPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395),_0x54888d?_0x54888d['_data']+=_0x3ba466[_0x4c601f]['item']['data']:_0x54888d=new _0x2f22b4(_0x3ba466[_0x4c601f]['item']['data'],_0x3ba466[_0x4c601f]['item']['getAttributes']()),_0x3ba466[_0x4c601f+0x1]&&'text'===_0x3ba466[_0x4c601f+0x1]['type']&&_0x4178ac(_0x54888d,_0x3ba466[_0x4c601f+0x1]['item'])||(_0x266fec[0x0]['_appendChild'](_0x54888d),_0x54888d=null),_0x655395[_0x655395['length']-0x1]+=_0x3ba466[_0x4c601f]['item']['offsetSize'],_0x3ba466[_0x4c601f]['nextPosition']=_0x787fef['createPositionFromPath'](_0x2775fb,_0x655395));for(let _0x22e902=0x0;_0x22e902<_0x3ba466['length'];_0x22e902++){const _0x1125bc=_0x3ba466[_0x22e902]['previousPosition'],_0x1e09b3=_0x3ba466[_0x22e902]['nextPosition'];for(const _0x473134 of _0x3ba466[_0x22e902]['markersStart'])_0x13a26a['set'](_0x473134,{'start':_0x1125bc,'end':null});_0x5ae63c('isRemoveSuggestion',_0x22e902,_0x1125bc,_0x1e09b3),_0x5ae63c('isAddSuggestion',_0x22e902,_0x1125bc,_0x1e09b3),_0x5ae63c('isRemoved',_0x22e902,_0x1125bc,_0x1e09b3),_0x5ae63c('isAdded',_0x22e902,_0x1125bc,_0x1e09b3);for(const _0x4840df of _0x3ba466[_0x22e902]['markersEnd']){const _0x41b0ad=_0x13a26a['get'](_0x4840df);_0x41b0ad?_0x41b0ad['end']=_0x1e09b3:_0x13a26a['set'](_0x4840df,{'start':_0x1e09b3,'end':_0x1e09b3});}}for(const [_0x195096,_0x541450]of _0x13a26a){const _0x408130=this['editor']['model']['createRange'](_0x541450['start'],_0x541450['end']);_0x2775fb['markers']['set'](_0x195096,_0x408130);}return _0x3a3b0b['sort']((_0x48877d,_0x135680)=>{const _0x449560=_0x2775fb['markers']['get']('revision:'+_0x48877d['id']),_0x2188bb=_0x2775fb['markers']['get']('revision:'+_0x135680['id']);return _0x449560['start']['isBefore'](_0x2188bb['start'])?-0x1:_0x449560['start']['isAfter'](_0x2188bb['start'])?0x1:_0x449560['end']['isBefore'](_0x2188bb['end'])?-0x1:_0x449560['end']['isAfter'](_0x2188bb['end'])?0x1:'add'===_0x48877d['type']?-0x1:0x1;}),{'root':_0x2775fb,'changes':_0x3a3b0b};function _0x5ae63c(_0x4e2ffe,_0x3903fa,_0xcd1370,_0xe54cfc){const _0x1f95bb=!!_0x3ba466[_0x3903fa][_0x4e2ffe],_0x16d460=_0x1f95bb?_0x3ba466[_0x3903fa][_0x4e2ffe]['userId']:null,_0x11428c=_0x3903fa===_0x3ba466['length']-0x1,_0xec7107=_0x553add[_0x4e2ffe][0x0],_0x4a867a=_0x3fecf7['isObject'](_0x3ba466[_0x3903fa]['item']);!_0x11b43c[_0x4e2ffe]&&_0x1f95bb?_0x11b43c[_0x4e2ffe]={'start':_0xcd1370,'tapeItem':_0x3ba466[_0x3903fa],'userId':_0x16d460,'type':_0x4e2ffe}:_0x11b43c[_0x4e2ffe]&&!_0x1f95bb?(_0x11b43c[_0x4e2ffe]['end']=_0xcd1370,_0x247259(_0x11b43c[_0x4e2ffe]),_0x11b43c[_0x4e2ffe]=null):_0x11b43c[_0x4e2ffe]&&_0x1f95bb&&_0x11b43c[_0x4e2ffe]['userId']!==_0x16d460&&(_0x11b43c[_0x4e2ffe]['end']=_0xcd1370,_0xec7107&&_0xec7107['userId']===_0x11b43c[_0x4e2ffe]['userId']||_0x247259(_0x11b43c[_0x4e2ffe]),_0x11b43c[_0x4e2ffe]={'start':_0xcd1370,'tapeItem':_0x3ba466[_0x3903fa],'userId':_0x16d460,'type':_0x4e2ffe}),_0x11b43c[_0x4e2ffe]&&_0x4a867a&&('elementStart'!==_0x3ba466[_0x3903fa]['type']||_0xec7107&&_0xec7107['userId']===_0x16d460||_0x553add[_0x4e2ffe]['unshift']({'userId':_0x16d460,'object':_0x3ba466[_0x3903fa]['item'],'change':_0x11b43c[_0x4e2ffe]}),'elementEnd'===_0x3ba466[_0x3903fa]['type']&&_0xec7107&&_0xec7107['object']===_0x3ba466[_0x3903fa]['item']&&(_0x553add[_0x4e2ffe]['shift'](),_0x11b43c[_0x4e2ffe]=_0xec7107['change'])),_0x11b43c[_0x4e2ffe]&&_0x11428c&&(_0x11b43c[_0x4e2ffe]['end']=_0xe54cfc,_0x247259(_0x11b43c[_0x4e2ffe]),_0x11b43c[_0x4e2ffe]=null);}function _0x247259({start:_0x51205e,end:_0x249153,tapeItem:_0x24cec8,userId:_0x1a47c7,type:_0x438747}){const _0x2d890c=_0x24cec8['item'],_0x491c87=_0x787fef['schema']['isBlock'](_0x2d890c)&&!_0x787fef['schema']['isLimit'](_0x2d890c),_0x1a6c93=_0x51205e['nodeAfter']==_0x249153['parent']&&_0x249153['isAtStart'];if(_0x491c87&&_0x1a6c93)return;const _0x2b0a19=_0x787fef['createRange'](_0x51205e,_0x249153),_0x3fd1e8=_0x5f41f1['get'](_0x1a47c7),_0x471fb9=new G({'author':_0x3fd1e8,'type':'isAdded'==_0x438747||'isAddSuggestion'==_0x438747?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x438747||'isRemoveSuggestion'==_0x438747},'createdAt':new Date(),'rootName':_0x445057});_0x3a3b0b['push'](_0x471fb9),_0x2775fb['markers']['set']('revision:'+_0x471fb9['id'],_0x2b0a19);}function _0x4178ac(_0x4d4761,_0x5c0640){const _0x260fe1=_0x4d4761['getAttributes'](),_0x34ba3c=_0x5c0640['getAttributes']();for(const _0x2dfa36 of _0x260fe1){if(_0x2dfa36[0x1]!==_0x5c0640['getAttribute'](_0x2dfa36[0x0]))return!0x1;_0x34ba3c['next']();}return _0x34ba3c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2d952c=>{const _0x21908b=_0x2d952c['markerName']['split'](':')[0x1],_0x1bcb1a=this['_getChangeFromId'](_0x21908b);if(!_0x1bcb1a)return null;const _0x2341ee='add'==_0x1bcb1a['type']?'insertion':'deletion',_0x5bc5ad=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2341ee];return _0x1bcb1a['data']['isSuggestion']&&_0x5bc5ad['push']('ck-suggestion-marker-'+_0x2341ee+'-new'),this['activeChange']==_0x1bcb1a&&_0x5bc5ad['push']('ck-suggestion-marker--active'),{'classes':_0x5bc5ad,'attributes':{'data-change-id':_0x21908b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xe0bd69=>{_0xe0bd69['on']('element:pre',(_0x26a4d0,_0x2a1e6b,_0x5a39f1)=>{const _0x27c935=_0x2a1e6b['viewItem']['getChild'](0x0);if(!_0x27c935||!_0x27c935['is']('element','code'))return;if(!_0x5a39f1['consumable']['consume'](_0x27c935,{'attributes':['vid_start','vid_end']}))return;const _0x480d4b=_0x2a1e6b['modelRange']['start']['nodeAfter'];_0x5a39f1['writer']['setAttribute']('vid_start',_0x27c935['getAttribute']('vid_start'),_0x480d4b),_0x5a39f1['writer']['setAttribute']('vid_end',_0x27c935['getAttribute']('vid_end'),_0x480d4b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2679a6=>{_0x2679a6['on']('element',(_0x359cf8,_0x5b71b8,_0x18efe8)=>{if(!_0x18efe8['consumable']['consume'](_0x5b71b8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b71b8['modelRange']['isCollapsed'])return;const _0x53769c=_0x5b71b8['modelRange']['start']['nodeAfter'];_0x53769c['hasAttribute']('vid_start')||_0x53769c['hasAttribute']('vid')||(_0x18efe8['writer']['setAttribute']('vid_start',_0x5b71b8['viewItem']['getAttribute']('vid_start'),_0x53769c),_0x18efe8['writer']['setAttribute']('vid_end',_0x5b71b8['viewItem']['getAttribute']('vid_end'),_0x53769c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x518fc5=>_0x518fc5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x115c67,[,_0x198494])=>{['vid_start','vid_end','vid']['includes'](_0x198494)&&(_0x115c67['return']=!0x0,_0x115c67['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1aa6bf=>{_0x1aa6bf['on']('attribute:vid',(_0x56979c,_0x5ab996,_0x4d4396)=>{if('\x20'!=_0x5ab996['item']['data']||_0x5ab996['item']['parent']['maxOffset']>0x1)return;if(!_0x4d4396['consumable']['consume'](_0x5ab996['item'],_0x56979c['name']))return;const _0x13cca5=_0x4d4396['writer'],_0x413566=_0x4d4396['mapper']['toViewRange'](_0x5ab996['range']);_0x13cca5['wrap'](_0x413566,_0x13cca5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x26d5af){const _0x1b3f9a=_0x26d5af['plugins']['get']('RevisionViewer');return(_0x52ba84,_0x2af9eb,_0x194e49)=>{const _0x2c5993=_0x2af9eb['markerName']['split'](':')[0x1],_0x15d1e7=_0x1b3f9a['_getChangeFromId'](_0x2c5993);if(!_0x15d1e7)return null;const _0x416438='add'==_0x15d1e7['type']?'split':'merge';if(!_0x194e49['consumable']['test'](_0x2af9eb['markerRange'],_0x52ba84['name']))return;const _0x46e89d=_0x2af9eb['markerRange']['getWalker'](),_0x48e1bf=_0x2af9eb['markerRange']['start'],_0x172fbe=_0x26d5af['model']['schema'];let _0x2fbddb=null,_0x17ccf1=null,_0x2fbb51=!0x1,_0x35496c=!0x1;for(const _0x47674a of _0x46e89d){const _0x587b29=_0x47674a['item'];_0x2fbb51=_0x2fbb51||_0x172fbe['isContent'](_0x587b29);const _0x1aa194=_0x194e49['mapper']['toViewElement'](_0x587b29);if(_0x1aa194&&_0x1aa194['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47674a['type']&&(_0x172fbe['isBlock'](_0x587b29)&&!_0x172fbe['isLimit'](_0x587b29)&&(_0x587b29['nextSibling']||_0x48e1bf['isAtEnd']?_0x2fbddb&&_0x2fbddb['parent']==_0x587b29||(_0x2fbddb=_0x587b29,_0x5e0000(_0x47674a['previousPosition']),_0x35496c=!0x0):_0x17ccf1=_0x17ccf1||_0x47674a['previousPosition']));}function _0x5e0000(_0x22769a){const _0x43a94c=_0x194e49['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x416438}),_0x211429=_0x194e49['mapper']['toViewPosition'](_0x22769a);_0x15d1e7['data']['isSuggestion']&&_0x194e49['writer']['addClass']('ck-suggestion-marker-'+_0x416438+'-new',_0x43a94c),_0x1b3f9a['activeChange']==_0x15d1e7&&_0x194e49['writer']['addClass']('ck-suggestion-marker--active',_0x43a94c),_0x194e49['writer']['insert'](_0x211429,_0x43a94c),_0x194e49['mapper']['bindElementToMarker'](_0x43a94c,_0x2af9eb['markerName']);}_0x2fbb51||_0x35496c||!_0x17ccf1||_0x5e0000(_0x17ccf1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x10769c,_0x328ff0,_0x308130)=>{const _0x4c2be9=_0x308130['mapper']['markerNameToElements'](_0x328ff0['markerName']);if(_0x4c2be9){for(const _0x29ab11 of _0x4c2be9)(_0x29ab11['hasClass']('ck-suggestion-marker-split')||_0x29ab11['hasClass']('ck-suggestion-marker-merge'))&&(_0x308130['mapper']['unbindElementFromMarkerName'](_0x29ab11,_0x328ff0['markerName']),_0x308130['writer']['remove'](_0x29ab11));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5a8cc4,_0x3c151a,_0x49a3b6)=>{const _0x5ad183=_0x3c151a['markerName']['split'](':')[0x1],_0x17caa1=this['_getChangeFromId'](_0x5ad183);if(!_0x17caa1)return null;const _0x5713f7='add'==_0x17caa1['type']?'split':'merge';if(_0x49a3b6['consumable']['test'](_0x3c151a['markerRange'],_0x5a8cc4['name']))for(const _0x32f20f of _0x3c151a['markerRange']['getItems']()){if(!_0x32f20f['is']('element','softBreak'))continue;const _0x2834dd=_0x49a3b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5713f7}),_0x5e5b4b=_0x49a3b6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x32f20f));_0x17caa1['data']['isSuggestion']&&_0x49a3b6['writer']['addClass']('ck-suggestion-marker-'+_0x5713f7+'-new',_0x2834dd),this['activeChange']==_0x17caa1&&_0x49a3b6['writer']['addClass']('ck-suggestion-marker--active',_0x2834dd),_0x49a3b6['writer']['insert'](_0x5e5b4b,_0x2834dd),_0x49a3b6['mapper']['bindElementToMarker'](_0x2834dd,_0x3c151a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x34f701=>{for(const _0x23c05e of this['editor']['model']['document']['getRootNames']()){const _0x436339=this['editor']['model']['document']['getRoot'](_0x23c05e),_0x5481df=this['editor']['editing']['view']['document']['getRoot'](_0x23c05e);if(_0x5481df){const _0x325c13=_0x436339['getAttribute']('revisionHistoryAttachChange');if(_0x34f701['removeAttribute']('data-change-id',_0x5481df),_0x34f701['removeClass']('ck-revision-history-root-add',_0x5481df),_0x34f701['removeClass']('ck-revision-history-root-remove',_0x5481df),_0x34f701['removeClass']('ck-revision-history-root--active',_0x5481df),_0x325c13){const _0x54832d=this['_getChangeFromId'](_0x325c13);if(!_0x54832d)return null;_0x34f701['setAttribute']('data-change-id',_0x325c13,_0x5481df),_0x34f701['addClass']('ck-revision-history-root-'+_0x54832d['type'],_0x5481df),this['activeChange']==_0x54832d&&_0x34f701['addClass']('ck-revision-history-root--active',_0x5481df);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3a7388=>'revision-comment:'+_0x3a7388,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x11b227=>'revision-suggestion:'+_0x11b227,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9dc9db=>({'name':'suggestion:'+_0x9dc9db,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x25e262=>{const _0x1514ad=_0x25e262['markerName']['split'](':')[0x1];return'insertion'!=_0x1514ad&&'deletion'!=_0x1514ad?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1514ad]};}}),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',(_0x44128e,_0x4b8d51,_0x370d4e)=>{const _0x43a269=_0x370d4e['mapper']['markerNameToElements'](_0x4b8d51['markerName']);if(_0x43a269){for(const _0x21bc75 of _0x43a269)_0x21bc75['is']('uiElement')&&(_0x370d4e['mapper']['unbindElementFromMarkerName'](_0x21bc75,_0x4b8d51['markerName']),_0x370d4e['writer']['remove'](_0x21bc75));}},{'priority':'high'});}['_getChangeFromId'](_0x3434c6){return this['_changeIdToChange']['get'](_0x3434c6);}['_getViewForChange'](_0x1d301c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1d301c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3dff99,_0x25e0ce,_0x98ad2f,_0x4aaba8)=>{_0x4aaba8&&this['_balloon']['remove'](_0x4aaba8),_0x98ad2f&&(this['_balloon']['add']({'view':_0x98ad2f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x317a83=this['editor']['editing'],_0x278dc5=this['_getChangeFromId'](_0x98ad2f['changeId']);let _0x41e0d9;if(_0x278dc5['data']['isOnRoot']){const _0x1d7da9=_0x317a83['view']['getDomRoot'](_0x278dc5['rootName']);_0x41e0d9=Array['from'](_0x1d7da9['getClientRects']());}else{const _0x41d8d9=this['editor']['model']['markers']['get']('revision:'+_0x98ad2f['changeId']);_0x41e0d9=Array['from'](_0x317a83['mapper']['markerNameToElements'](_0x41d8d9['name']))['map'](_0x1b9436=>_0x317a83['view']['domConverter']['mapViewToDom'](_0x1b9436))['map'](_0x402bc7=>Array['from'](_0x402bc7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x41e0d9[0x0];return _0x41e0d9['find'](_0x9fb6c5=>_0x9fb6c5['top']-0x3<=this['_activeViewTarget']['y']&&_0x9fb6c5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x9fb6c5['left']-0x3<=this['_activeViewTarget']['x']&&_0x9fb6c5['right']+0x3>=this['_activeViewTarget']['x'])||_0x41e0d9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x144578,_0x14e9e9,_0x569872,_0x2584d6)=>{this['activeView']=_0x569872?this['_getViewForChange'](_0x569872):null,this['editor']['model']['change'](()=>{const _0x1bddc4=this['editor']['editing'];_0x2584d6&&(_0x2584d6['data']['isOnRoot']?_0x1bddc4['view']['change'](_0x5317fe=>{_0x5317fe['removeClass']('ck-revision-history-root--active',_0x1bddc4['view']['document']['getRoot'](_0x2584d6['rootName']));}):_0x1bddc4['reconvertMarker']('revision:'+_0x2584d6['id'])),_0x569872&&(_0x569872['data']['isOnRoot']?_0x1bddc4['view']['change'](_0x1d8a21=>{_0x1d8a21['addClass']('ck-revision-history-root--active',_0x1bddc4['view']['document']['getRoot'](_0x569872['rootName']));}):_0x1bddc4['reconvertMarker']('revision:'+_0x569872['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x175009,_0x176c21)=>{if(this['activeChange'])return;const _0x3ec190=this['_findChangeIdFromDomTarget'](_0x176c21['target']),_0x49c4f2=this['_changeIdToChange']['get'](_0x3ec190);_0x49c4f2?(this['_activeViewTarget']={'x':_0x176c21['domEvent']['x'],'y':_0x176c21['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x49c4f2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x155476,_0xa0877c)=>{const _0x5ca3a2=this['_findChangeIdFromDomTarget'](_0xa0877c['target']),_0x1c3d07=this['_changeIdToChange']['get'](_0x5ca3a2);_0x1c3d07?(this['_activeViewTarget']={'x':_0xa0877c['domEvent']['x'],'y':_0xa0877c['domEvent']['y']},_0x1c3d07===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1c3d07):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x36bb97){do{const _0x4feec4=_0x36bb97['getAttribute']('data-change-id');if(_0x4feec4)return _0x4feec4;_0x36bb97=_0x36bb97['parent'];}while(_0x36bb97);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x360a1a=>{for(const _0x4fae7e of this['editor']['model']['markers'])_0x360a1a['removeMarker'](_0x4fae7e);});}}function Q(_0x30da57,_0x4a380e){return(_0x142df4,_0xbe9e86,_0x286768)=>{if(!_0x286768['consumable']['test'](_0xbe9e86['markerRange'],_0x142df4['name']))return;const _0x167789=_0xbe9e86['markerRange']['getWalker'](),_0x52975d=_0xbe9e86['markerRange']['start'],_0x290bd0=_0x30da57['model']['schema'];let _0x1bf7d9=null,_0x2f5a51=null,_0x372637=!0x1,_0x3bd32d=!0x1;for(const _0x19b24f of _0x167789){const _0x45e35e=_0x19b24f['item'];_0x372637=_0x372637||_0x290bd0['isContent'](_0x45e35e);const _0x58b7b2=_0x286768['mapper']['toViewElement'](_0x45e35e);if(_0x58b7b2&&_0x58b7b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19b24f['type']&&(_0x290bd0['isBlock'](_0x45e35e)&&!_0x290bd0['isLimit'](_0x45e35e)&&(_0x45e35e['nextSibling']||_0x52975d['isAtEnd']?_0x1bf7d9&&_0x1bf7d9['parent']==_0x45e35e||(_0x1bf7d9=_0x45e35e,_0x1ef4ab(_0x19b24f['previousPosition']),_0x3bd32d=!0x0):_0x2f5a51=_0x2f5a51||_0x19b24f['previousPosition']));}function _0x1ef4ab(_0x23635f){const _0x1cbbe4=_0x286768['mapper']['toViewPosition'](_0x23635f),_0x430af8=_0x286768['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4a380e});_0x286768['writer']['insert'](_0x1cbbe4,_0x430af8),_0x286768['mapper']['bindElementToMarker'](_0x430af8,_0xbe9e86['markerName']);}_0x372637||_0x3bd32d||!_0x2f5a51||_0x1ef4ab(_0x2f5a51);};}class nt extends _0x23ffae{constructor(_0x27cd62){super(_0x27cd62);const _0x4ce37e=_0x27cd62['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4ce37e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ce37e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5f399d=this['editor'],_0x5bf26f=_0x5f399d['plugins']['get'](l),_0x4ed91c=_0x5bf26f['isReady']?_0x5bf26f['diff']['newRevisionId']:null;_0x5f399d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4ed91c);}['refresh'](){const {isReady:_0x2504f6,isEnabled:_0x46ce1f,repository:_0xc34405,diff:_0x3b5137}=this['editor']['plugins']['get'](l),_0x5479fa=_0x3b5137&&_0xc34405['getLaterVisibleRevision'](_0x3b5137['newRevisionId']);this['isEnabled']=_0x2504f6&&_0x46ce1f&&Boolean(_0x5479fa);}}class rt extends _0x23ffae{['_step'];constructor(_0x30fea4,{direction:_0x1a9f51}){super(_0x30fea4);const _0x2d3e3b=_0x30fea4['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x1a9f51?0x1:-0x1,this['listenTo'](_0x2d3e3b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d3e3b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d3e3b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x34318c=this['editor'],_0x5a350e=_0x34318c['plugins']['get'](l),{isNavigationMode:_0x919155,currentChangeNumber:_0x75b485}=_0x5a350e;let _0x5a54b2;if(_0x5a350e['activeChange']=_0x919155?_0x5a350e['diff']['changes']['get'](_0x75b485+this['_step']):_0x5a350e['diff']['changes']['first'],_0x5a350e['activeChange']['data']['isOnRoot'])_0x5a54b2=_0x34318c['editing']['view']['getDomRoot'](_0x5a350e['activeChange']['rootName']);else{const _0x48cc30=_0x34318c['model']['markers']['get']('revision:'+_0x5a350e['activeChange']['id']);_0x5a54b2=_0x2c7553(_0x34318c['editing'],_0x48cc30);}_0x2169a9({'target':_0x5a54b2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2438e3,currentChangeNumber:_0x51ae84,numberOfChanges:_0x2f5d15,isReady:_0x3010ff,isEnabled:_0x6bb69b}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x6bb69b&&_0x3010ff&&_0x2f5d15)&&(!_0x2438e3||(0x1===this['_step']?_0x51ae84<_0x2f5d15-0x1:_0x51ae84>0x0));}}class Ri extends _0x54ee3c{constructor(_0x2487b0){super(_0x2487b0);const _0x5399eb=this['bindTemplate'],_0x506ea1=new _0x29e09a(_0x2487b0),_0x1afee7=new _0x29e09a(_0x2487b0);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',(_0x148d86,_0x4a12c2)=>_0x148d86&&_0x4a12c2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a2393,_0x4e62c0,_0x12f2d7,_0x319916)=>{if(!_0x3a2393)return R(_0x2487b0,'Loading...');if(!_0x12f2d7)return R(_0x2487b0,'No\x20changes');const _0x4cdeb7=R(_0x2487b0,'NUMBER_OF_CHANGES',_0x12f2d7);return _0x319916?R(_0x2487b0,'X_OF_Y_CHANGES',[_0x4e62c0+0x1,_0x12f2d7]):_0x4cdeb7;}),_0x506ea1['set']({'label':R(_0x2487b0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x72b043}),_0x1afee7['set']({'label':R(_0x2487b0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x365fad}),_0x506ea1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1afee7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x506ea1['on']('execute',()=>this['fire']('execute','backward')),_0x1afee7['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',_0x5399eb['if']('_isStatusLabelVisible','ck-hidden',_0x46661a=>!_0x46661a)]},'children':[{'text':_0x5399eb['to']('isNavigationMode',_0x2e6ff8=>_0x2e6ff8?R(_0x2487b0,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2487b0,'Total')+':\x20')}]},{'text':_0x5399eb['to']('_statusText')}]},new _0x27cc40(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x506ea1,_0x1afee7]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x449360{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f6905=this['editor']['editing']['view'];_0x4f6905['change'](_0x57a0fd=>{for(const _0x377d89 of _0x4f6905['document']['roots'])_0x57a0fd['addClass'](ge,_0x377d89);});}['hide'](){const _0x3de517=this['editor']['editing']['view'];_0x3de517['change'](_0x27ca1e=>{for(const _0xa18b8d of _0x3de517['document']['roots'])_0x27ca1e['removeClass'](ge,_0xa18b8d);});}}class u extends _0x449360{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x8a8841=this['editor'],_0xc90d26=_0x8a8841['plugins']['get'](l),_0x1e1e0f=_0x8a8841['plugins']['get'](ji);_0x8a8841['ui']['componentFactory']['add']('exitToEditing',_0x276a3c=>{const _0x52720c=new _0x29e09a(_0x276a3c);return _0x52720c['set']({'label':R(_0x276a3c,'Back\x20to\x20editing'),'icon':_0x46ae4d,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x52720c,'execute',()=>{_0x8a8841['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x52720c;}),_0x8a8841['ui']['componentFactory']['add']('restoreRevision',_0x17bf6f=>{const _0x236abe=new _0x29e09a(_0x17bf6f);return _0x236abe['set']({'label':R(_0x17bf6f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x236abe['bind']('isEnabled')['to'](_0x8a8841['commands']['get']('restoreRevision')),this['listenTo'](_0x236abe,'execute',()=>_0x8a8841['execute']('restoreRevision')),_0x236abe;}),_0x8a8841['ui']['componentFactory']['add']('changesNavigation',_0xb40644=>{const _0x1ede69=new Ri(_0xb40644),_0x1ebf7f=_0x8a8841['commands']['get']('showPreviousChange'),_0x28767d=_0x8a8841['commands']['get']('showNextChange');return _0x1ede69['bind']('isBackwardNavigationEnabled')['to'](_0x1ebf7f,'isEnabled'),_0x1ede69['bind']('isForwardNavigationEnabled')['to'](_0x28767d,'isEnabled'),_0x1ede69['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xc90d26),this['listenTo'](_0x1ede69,'execute',(_0xe4f343,_0x2d11f1)=>{_0x8a8841['execute']('forward'===_0x2d11f1?'showNextChange':'showPreviousChange');}),_0x1ede69;}),_0x1e1e0f['show'](),_0xc90d26['on']('change:isReady',(_0x3a3b3f,_0x490008,_0x57a57a)=>{_0x57a57a?_0x1e1e0f['hide']():_0x1e1e0f['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x58cf5f,_0x32d047){super(_0x58cf5f,_0x32d047);const _0x3811a3=this['bindTemplate'];this['set']({'label':R(_0x58cf5f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x58cf5f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3811a3['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 _0x2b3d3a=this['fieldView']['element'];this['_tooltipString']=_0x2b3d3a['scrollWidth']>_0x2b3d3a['clientWidth']&&_0x2b3d3a['value']||'';}}class ni extends _0x54ee3c{constructor(_0x52d7f4,_0x303c7f,_0x53f811){super(_0x52d7f4);const _0x85491d=new _0x5f31d5();_0x85491d['set']({'content':_0x4ca76a,'viewBox':'0\x200\x2011\x2010'});const _0x5262ce=['ck','ck-revision-history-sidebar__revision-author'];_0x53f811&&_0x5262ce['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2fd227=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x52d7f4,_0x53f811?'Revision\x20creator':'Revision\x20author')},'children':[_0x85491d,_0x303c7f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5262ce},'children':_0x2fd227});}}function ci(_0x254a8a,_0x2f5c85){const _0x44706d=_0x254a8a['bindTemplate'],_0x7e00c5=_0x254a8a['locale'],_0x7189ca=_0x3b7ce8(_0x7e00c5);_0x7189ca['panelPosition']='sw';const _0x2899ce=function(_0x2102b8,_0x1fa198){const _0x54bc0c=function(_0x2ddc43,_0x360beb){const _0x5d6dd6=_0x2ddc43['locale'],_0x35c23f={'Compare\x20against\x20selected':R(_0x5d6dd6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5d6dd6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5d6dd6,'Restore\x20this\x20revision')};return _0x360beb['map'](_0x3f3897=>{const _0x150fc9=_0x35c23f[_0x3f3897['name']];return _0x150fc9&&_0x150fc9!==_0x3f3897['name']&&(_0x3f3897['name']=_0x150fc9),_0x3f3897;});}(_0x2102b8,_0x1fa198),_0x10ce91=new _0x59f5e7();for(const _0x388d3c of _0x54bc0c){const _0x533e8e={'type':'button','model':new to({'label':_0x388d3c['name'],'class':_0x388d3c['class'],'withText':!0x0,'role':'menuitem','_action':_0x388d3c['action']})};_0x533e8e['model']['bind']('isEnabled')['to'](_0x2102b8,'isActionsDropdownOpen',_0x5a3daf=>'function'!=typeof _0x388d3c['isEnabled']||(!_0x5a3daf||_0x388d3c['isEnabled'](_0x2102b8))),_0x10ce91['add'](_0x533e8e);}return _0x10ce91;}(_0x254a8a,_0x2f5c85);return _0x254a8a['bind']('isActionsDropdownOpen')['to'](_0x7189ca,'isOpen'),_0x7189ca['buttonView']['set']({'label':R(_0x7e00c5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x58a09d}),_0x7189ca['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x44706d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x44706d['to'](_0x2311bf=>_0x2311bf['stopPropagation']())}}),_0x7189ca['on']('execute',_0x1a0b8a=>{_0x254a8a['isReady']&&'function'==typeof _0x1a0b8a['source']['_action']&&_0x1a0b8a['source']['_action'](_0x254a8a);}),_0x928c1c(_0x7189ca,_0x2899ce,{'role':'menu'}),_0x7189ca['listenTo'](_0x254a8a,'change:isActionsDropdownOpen',(_0x1e64b4,_0x32e7a8,_0x2da77b)=>{if(_0x2da77b)for(const _0x5f1480 of _0x7189ca['listView']['items']){const _0x4df534=_0x5f1480['children']['first'],_0x2c56d0=_0x2f5c85['find'](_0xba20c4=>_0xba20c4['action']===_0x4df534['_action'])['isVisible'];_0x5f1480['isVisible']=void 0x0===_0x2c56d0||_0x2c56d0(_0x254a8a);}}),_0x7189ca;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x273059(_0x54ee3c){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x438edc,_0x24807e,_0x4976f6,_0x33a49d){super(_0x438edc);const _0x50460f=this['bindTemplate'],_0x4fd322=function(_0x24ec30,_0x396e52){const _0x812806=Array['from'](_0x396e52['authors'])['filter'](_0x4e02ee=>_0x4e02ee!=_0x396e52['creator']);return _0x396e52['creator']&&_0x812806['unshift'](_0x396e52['creator']),_0x812806['map'](_0x4a79be=>new ni(_0x24ec30,_0x4a79be,_0x4a79be==_0x396e52['creator']));}(_0x438edc,_0x24807e);this['id']=_0x24807e['id'],this['_revision']=_0x24807e,this['_requireRevisionName']=_0x33a49d,this['bind']('name','createdAt')['to'](_0x24807e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x134bd6=>{return _0x59af03=_0x438edc['uiLanguage'],(_0x3a97d6=_0x134bd6)['toLocaleDateString'](_0x59af03,{'month':'long','day':'numeric'})+',\x20'+_0x3a97d6['toLocaleTimeString'](_0x59af03,{'hour':'numeric','minute':'numeric'});var _0x59af03,_0x3a97d6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x438edc,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x44de35=>_0x44de35||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x6b54e3,_0x9f8787)=>_0x6b54e3&&_0x9f8787),this['revisionActionsView']=_0x4976f6&&_0x4976f6['length']?ci(this,_0x4976f6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x50460f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x50460f['if']('isEnabled','ck-disabled',_0x4f1ba1=>!_0x4f1ba1),_0x50460f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x50460f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x50460f['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':_0x50460f['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':_0x4fd322}]},this['revisionActionsView']],'on':{'click':_0x50460f['to'](_0xd55e8=>{_0xd55e8['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x451b10=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x451b10,'change',()=>{this['_requireRevisionName']&&!_0x451b10['value']||this['fire']('setName',{'id':this['id'],'name':_0x451b10['value']}),_0x451b10['value']||(_0x451b10['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x1a9605,_0x5577ce){const _0x457152=_0x53eb6e['fromJSDate'](_0x1a9605)['setLocale'](_0x5577ce),_0x55960e=_0x53eb6e['local'](),_0x22a895=_0x55960e['minus']({'days':0x1})['startOf']('day');let _0x4ab4d8,_0x18f9fd;return _0x457152['hasSame'](_0x55960e,'day')?(_0x4ab4d8=_0x457152['startOf']('day')['toJSDate'](),_0x18f9fd=_0x457152['toRelativeCalendar']()):_0x457152['hasSame'](_0x22a895,'day')?(_0x4ab4d8=_0x22a895['toJSDate'](),_0x18f9fd=_0x457152['toRelativeCalendar']()):_0x457152['hasSame'](_0x55960e,'week')?(_0x4ab4d8=_0x457152['startOf']('week')['toJSDate'](),_0x18f9fd=_0x457152['weekdayLong']||''):_0x457152['hasSame'](_0x55960e,'year')?(_0x4ab4d8=_0x457152['startOf']('month')['toJSDate'](),_0x18f9fd=_0x457152['monthLong']||''):(_0x4ab4d8=_0x457152['startOf']('year')['toJSDate'](),_0x18f9fd=String(_0x457152['year'])),{'startDate':_0x4ab4d8,'localizedPeriodName':_0x18f9fd};}class bi extends _0x54ee3c{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x17e3a8,_0x14e9f6,_0x522b3e,_0x199536){super(_0x17e3a8);const _0x256f58=li(_0x14e9f6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14e9f6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x522b3e,this['_requireRevisionName']=_0x199536,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':_0x256f58}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x52e99a){const _0x44602d=new _i(this['locale'],_0x52e99a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x44602d);}['removeRevision'](_0x2954f1){const _0xe1850=this['revisionViews']['find'](_0x47e4fd=>_0x47e4fd['id']===_0x2954f1['id']);this['revisionViews']['remove'](_0xe1850);}}class fi extends _0x54ee3c{constructor(_0x2c36fe){super(_0x2c36fe);const _0x222ee4=new _0x5f31d5();_0x222ee4['content']=_0x507409,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x222ee4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2c36fe,'Revision\x20history')]}]});}}class di extends _0x54ee3c{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x86dd72,_0x262a9c,_0x2467e4,_0x2fe7c9){super(_0x86dd72);const _0x90e6b3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x262a9c,this['_revisionActions']=_0x2467e4,this['_requireRevisionName']=_0x2fe7c9,this['on']('select',(_0x356a83,_0x3dfb50)=>{this['fire']('revisionSelected',_0x3dfb50);}),this['on']('setName',(_0x303b1a,_0x22c020)=>{this['fire']('revisionSetName',_0x22c020);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x86dd72),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x90e6b3['if']('isEnabled','ck-disabled',_0x1fe7bc=>!_0x1fe7bc)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x55f17d of this['_revisions'])this['_addRevision'](_0x55f17d);this['_revisions']['on']('add',(_0x162739,_0x1a4574)=>{this['_addRevision'](_0x1a4574);}),this['_revisions']['on']('remove',(_0x4f2aff,_0x412b5a)=>{this['_removeRevision'](_0x412b5a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1e4654=>_0x1e4654['revisionViews']['map'](_0xadf4bc=>_0xadf4bc))['flat']();}['selectRevision'](_0x5606cb){for(const _0x598cc4 of this['revisionViews'])_0x5606cb&&_0x5606cb['id']===_0x598cc4['id']?_0x598cc4['select']():_0x598cc4['deselect']();}['highlightRevisions'](_0x43b005){for(const _0x522c57 of this['revisionViews'])_0x43b005['some'](({id:_0x595025})=>_0x595025===_0x522c57['id'])?_0x522c57['highlight']():_0x522c57['unhighlight']();}['_addRevision'](_0x374467){const _0x302b15=li(_0x374467['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3d0565=this['timePeriodViews']['get'](0x0);_0x3d0565&&_0x3d0565['startDate']['getTime']()===_0x302b15['getTime']()||(_0x3d0565=new bi(this['locale'],_0x302b15,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3d0565)),_0x3d0565['addRevision'](_0x374467);}['_removeRevision'](_0x4a03a8){const _0x35abf7=li(_0x4a03a8['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x35abf7)['removeRevision'](_0x4a03a8);}['_getTimePeriodViewByStartDate'](_0x1efaa9){return this['timePeriodViews']['find'](_0x5c3556=>_0x5c3556['startDate']['getTime']()===_0x1efaa9['getTime']());}}class f extends _0x449360{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x396607(_0x39e5da){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xd58209,_0xce90ea){super(_0xce90ea),this['sourceElement']=_0xd58209,this['model']['document']['createRoot']();const _0x4b49a3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4b49a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53d127,_0x1d8c5f){const _0x4f26bb=new this(_0x53d127,_0x1d8c5f);return await _0x4f26bb['initPlugins'](),await _0x4f26bb['ui']['init'](_0x53d127),await _0x4f26bb['data']['init'](_0x4f26bb['config']['get']('initialData')||''),_0x4f26bb['fire']('ready'),_0x4f26bb;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x40d69e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19964b){function _0x15e96d(_0x3e0e3a){return _0x3e0e3a['map'](_0xea1a02=>String['fromCharCode'](_0xea1a02))['join']('');}super(_0x19964b),this['result']='end',_0x19964b[_0x15e96d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e96d([0x76,0x69,0x65,0x77])][_0x15e96d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e96d([0x61,0x75,0x74,0x6f]),_0x19964b[_0x15e96d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15e96d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e96d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15e96d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15e96d([0x6f,0x6b])});}}class ct extends _0x40d69e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x2eca3d){if(super(_0x2eca3d),!this['editor']['config']['get']('revisionHistory'))throw new _0x27bd41('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x455a31=>this['_showRevisionViewer']({..._0x455a31,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xee11ab=>this['_closeRevisionViewer'](_0xee11ab)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x510a4a=>this['_restoreRevision'](_0x510a4a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1f9c5e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1f9c5e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1dd018){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1dd018);}['getRevision'](_0x49a341){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x49a341);}['getRevisions'](_0x180b42){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x180b42||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1ca8bf=this['editor'],_0x2e24f2=_0xe8ae6a(_0x1ca8bf,d),_0x38d314=_0x1ca8bf['plugins']['get']('RevisionTracker'),_0x7c775=_0x1ca8bf['plugins']['get']('Users')['users'];return _0x2e24f2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2e24f2['lazyRoots'],(_0x2e24f2['plugins']['push'](ht,l,u,class extends _0x40d69e{static get['requires'](){return[l,'Users'];}['init'](){const _0x14fcc1=this['editor']['plugins']['get']('Users');for(const _0x2c34fd of _0x7c775)_0x2c34fd['isAnonymous']||_0x14fcc1['getUser'](_0x2c34fd['id'])||_0x14fcc1['addUser'](_0x2c34fd);const _0xd4b272=_0x38d314['repository']['getRevisions']();let _0xb0a333=null;const _0x17c46f=this['editor']['plugins']['get']('RevisionViewer');_0x17c46f['adapter']=_0x38d314['adapter'],_0x17c46f['bind']('isEnabled')['to'](_0x38d314),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1ca8bf,'isReadOnly',_0x576b46=>!_0x576b46);for(const _0x5e04cc of _0xd4b272){const _0xfa6201=null===_0x5e04cc['creator'];if(_0xfa6201&&_0x5e04cc['toVersion']===_0x5e04cc['fromVersion'])continue;const _0x112c0c=_0x5e04cc['toJSON']();_0x17c46f['addRevisionData'](_0x112c0c,(_0x524ee6,_0x9a4b03,_0x42358)=>{if(_0xfa6201){if(_0xb0a333)_0xb0a333['_update'](_0x524ee6,_0x9a4b03);else{if(!_0x9a4b03){const _0x1e85a3=_0x42358['toJSON']();_0x1e85a3['id']=_0x58edc7(),_0x38d314['saveRevision'](_0x1e85a3,_0x42358['toVersion'])['then'](_0x26802e=>{_0xb0a333=_0x26802e;});}}}else _0x5e04cc['_update'](_0x524ee6,_0x9a4b03);});}}},f),_0x2e24f2);}['_enhanceShowRevisionViewerCallback'](){const _0x435f37=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3d2ac4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x443863=this['editor']['plugins']['get']('Autosave');await _0x443863['save']();}else await _0x3d2ac4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x537d43=this['editor']['plugins']['get']('Dialog');_0x537d43['isOpen']&&_0x537d43['hide']();}const _0x483b5a=this['_getRevisionViewerEditorConfig']();return _0x435f37(_0x483b5a)['then'](_0x24835f=>{return(this['_viewerEditor']=_0x24835f,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'),_0x24835f);})['catch'](_0x354a6f=>(console['error'](_0x354a6f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x50074f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x50074f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x336754=this['editor']['plugins']['get']('Annotations');_0x336754['refreshVisibility'](),_0x336754['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10600e){const _0x32e307=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x279b14=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x21fd48=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x21fd48,_0x10600e)['then'](_0x59276c=>(_0x279b14['style']['display']='block',_0x32e307['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59276c));}['_closeRevisionViewer'](_0x579611){const _0x3b90fe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b90fe['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x579611['destroy']();}async['_restoreRevision'](_0x2ce237){const _0x31a6fc=this['editor'],_0x2603ff=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4adaa9=_0x31a6fc['plugins']['get']('RevisionTracker'),_0x482546=_0x31a6fc['plugins']['get']('RevisionHistoryUtils'),_0x2d99fa=_0x2603ff['repository']['getRevision'](_0x2ce237);let _0x1e75e5,_0xe3b0,_0x1c1b70;try{await _0x482546['loadRevisionData'](_0x2d99fa,this['adapter']),_0x1e75e5=_0x482546['getRevisionDocumentData'](_0x2d99fa),_0xe3b0=_0x482546['getRevisionRootsAttributes'](_0x2d99fa);}catch(_0x58e9c0){return void console['error'](_0x58e9c0);}_0x31a6fc['model']['change'](_0x4ae802=>{for(const _0x111755 of Array['from'](_0x31a6fc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4ae802['removeMarker'](_0x111755);}),_0x2603ff['isReady']=!0x1,_0x31a6fc['model']['enqueueChange'](_0x538e88=>{_0x538e88['setSelection'](null),_0x538e88['removeSelectionAttribute'](_0x31a6fc['model']['document']['selection']['getAttributeKeys']());const _0x4e5b89=Object['keys'](_0x1e75e5);for(const _0xf4c51d of _0x31a6fc['model']['document']['roots'])'$graveyard'!=_0xf4c51d['rootName']&&_0xf4c51d['isAttached']()&&!_0x4e5b89['includes'](_0xf4c51d['rootName'])&&_0x538e88['detachRoot'](_0xf4c51d);for(const _0x1d14ca of _0x4e5b89){let _0x1a4f8f=_0x31a6fc['model']['document']['getRoot'](_0x1d14ca);_0x1a4f8f&&_0x1a4f8f['isAttached']()||(_0x1a4f8f=_0x538e88['addRoot'](_0x1d14ca));const _0x127a5a=_0xe3b0[_0x1d14ca],_0x42f4b6=Object['keys'](_0x127a5a),_0x53b6cb=_0x1e75e5[_0x1d14ca];for(const _0x1c1fd2 of _0x1a4f8f['getAttributeKeys']())_0x42f4b6['includes'](_0x1c1fd2)||_0x538e88['removeAttribute'](_0x1c1fd2,_0x1a4f8f);for(const _0x3b56c3 of _0x42f4b6)_0x538e88['setAttribute'](_0x3b56c3,_0xe3b0[_0x1d14ca][_0x3b56c3],_0x1a4f8f);_0x538e88['remove'](_0x538e88['createRangeIn'](_0x1a4f8f)),_0x538e88['insert'](_0x31a6fc['data']['parse'](_0x53b6cb,_0x1a4f8f),_0x1a4f8f,0x0);}});const _0x417d3f=R(_0x31a6fc['locale'],'Restored');if(_0x2d99fa['name'])_0x1c1b70=-0x1==_0x2d99fa['name']['indexOf'](_0x417d3f)?_0x417d3f+':\x20'+_0x2d99fa['name']:_0x2d99fa['name'];else _0x1c1b70=_0x417d3f+':\x20'+(_0x2d99fa['createdAt']['toLocaleDateString'](_0x31a6fc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2d99fa['createdAt']['toLocaleTimeString'](_0x31a6fc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4adaa9['saveRevision']({'name':_0x1c1b70}),_0x2603ff['isReady']=!0x0,_0x31a6fc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,wi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3d9ce7){super(_0x3d9ce7),this['_revisionViewer']=_0x3d9ce7['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x546ab6=this['_revisionsRepository']['_revisions'],_0x41e24d=this['_createRevisionActions'](),_0x4f6587=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x546ab6,_0x41e24d,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',(_0x5ede98,_0x220d7c)=>{_0x220d7c['revisionViews']['on']('add',(_0x5ef715,_0x57bf3e)=>{_0x57bf3e['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)),_0x4f6587['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x154ccc=this['_revisionsRepository']['getRevision'](0x0);if(_0x154ccc){const _0x35ce23=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x154ccc['id']);this['_revisionViewer']['compare'](_0x154ccc,_0x35ce23);}}['_handleRevisionSelected'](_0x322c63,_0x3c1624){const _0x16ca6c=this['_revisionsRepository']['getRevision'](_0x3c1624['id']),_0x4aafa9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x16ca6c['id']);this['_revisionViewer']['compare'](_0x16ca6c,_0x4aafa9);}['_handleRevisionSetName'](_0x195724,_0x1029b8){this['_revisionsRepository']['getRevision'](_0x1029b8['id'])['setName'](_0x1029b8['name']);}['_handleDiffChange'](_0x3a0995,_0x466d28,_0x3ef2a5){const _0x235e79=this['_revisionsRepository']['getRevisionsInDiff'](_0x3ef2a5);_0x235e79['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x235e79),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x235e79[0x0]));}['_createRevisionActions'](){const _0x5e260c=this['editor'],_0x31219d=f['availableRevisionActions'],_0x3b2091=_0x5e260c['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3b2091['length'])return _0x3b2091['map'](_0x2fb319=>{const _0x4e997a='string'==typeof _0x2fb319?Object['assign']({},_0x31219d[_0x2fb319]):_0x2fb319;return _0x4e997a['action']=_0x4e997a['action']['bind'](this,_0x5e260c),_0x4e997a['isVisible']&&(_0x4e997a['isVisible']=_0x4e997a['isVisible']['bind'](this,_0x5e260c)),_0x4e997a;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1503e4},_0x4cd45d)=>{const _0x426220=_0x1503e4['get'](l),_0x416ea7=_0x426220['repository'];let _0x1e8af3=_0x426220['diff']['newRevisionId'],_0x2646d6=_0x4cd45d['id'];_0x416ea7['getIndex'](_0x1e8af3)>_0x416ea7['getIndex'](_0x2646d6)&&([_0x1e8af3,_0x2646d6]=[_0x2646d6,_0x1e8af3]),_0x426220['compare'](_0x1e8af3,_0x2646d6);},'isVisible':({plugins:_0xf9d8},_0x3efb04)=>{const _0x35375c=_0xf9d8['get'](l);return!(_0x35375c['repository']['getRevisionsInDiff'](_0x35375c['diff'])['length']>0x2)&&!_0x3efb04['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fc9b2,{id:_0x181712})=>{_0x4fc9b2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x181712);},'isVisible':({plugins:_0x2d28ce},_0x553e02)=>!!_0x2d28ce['get'](l)['repository']['getLaterVisibleRevision'](_0x553e02['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x50dd43},{id:_0x493f6e,revisionNameView:_0x5dacf3})=>{const _0x150825=_0x50dd43['get'](l),_0xd10720=_0x150825['repository']['getEarlierVisibleRevision'](_0x493f6e);_0x150825['compare'](_0x493f6e,_0xd10720),_0x5dacf3['focus'](),_0x5dacf3['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4fe18f,_0x45aa1f){super(_0x4fe18f),this['_view']=_0x45aa1f,this['_toolbarConfig']=st(_0x4fe18f['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x52d14c){const _0x376a78=this['editor'],_0x1a4fef=this['view'],_0x4cd127=_0x376a78['editing']['view'],_0x14f9e6=_0x1a4fef['editable'],_0x554245=_0x4cd127['document']['getRoot']();_0x14f9e6['name']=_0x554245['rootName'],_0x1a4fef['render']();const _0x26f010=_0x14f9e6['element'];this['setEditableElement'](_0x14f9e6['name'],_0x26f010),_0x1a4fef['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4cd127['attachDomRoot'](_0x26f010),this['_elementReplacer']['replace'](_0x52d14c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x26f995=this['view'],_0x14f4d9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x14f4d9['detachDomRoot'](_0x26f995['editable']['name']),_0x26f995['destroy']();}['_initToolbar'](){const _0x54aae2=this['view'];_0x54aae2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x54aae2['stickyPanel']['limiterElement']=_0x54aae2['element'],_0x54aae2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d8a6a})=>_0x2d8a6a),_0x54aae2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x54aae2['toolbar']);}}class ii extends _0x3f26bf{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xeac3e5,_0x12f50a,_0x3f87ec={}){super(_0xeac3e5),this['stickyPanel']=new _0x872989(_0xeac3e5),this['toolbar']=new _0x1972ec(_0xeac3e5,{'shouldGroupWhenFull':_0x3f87ec['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0xeac3e5,_0x12f50a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x4ce360(_0x3c7537){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xd71e74,_0x241155){super(_0x241155),this['sourceElement']=_0xd71e74,this['model']['document']['createRoot']();const _0x373203=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x373203);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1ac949,_0x11266b){const _0xc44cf1=new this(_0x1ac949,_0x11266b);return await _0xc44cf1['initPlugins'](),await _0xc44cf1['ui']['init'](_0x1ac949),await _0xc44cf1['data']['init'](_0xc44cf1['config']['get']('initialData')||''),_0xc44cf1['fire']('ready'),_0xc44cf1;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x449360{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d4cd3){function _0xd8ebd7(_0x3092ff){return _0x3092ff['map'](_0x44ec6b=>String['fromCharCode'](_0x44ec6b))['join']('');}super(_0x2d4cd3),this['result']='end',_0x2d4cd3[_0xd8ebd7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd8ebd7([0x76,0x69,0x65,0x77])][_0xd8ebd7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd8ebd7([0x61,0x75,0x74,0x6f]),_0x2d4cd3[_0xd8ebd7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xd8ebd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd8ebd7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xd8ebd7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xd8ebd7([0x6f,0x6b])});}}class ct extends _0x449360{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x224718){if(super(_0x224718),!this['editor']['config']['get']('revisionHistory'))throw new _0x58ad15('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x9a7fad=>this['_showRevisionViewer']({..._0x9a7fad,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1f9a01=>this['_closeRevisionViewer'](_0x1f9a01)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3a4a96=>this['_restoreRevision'](_0x3a4a96)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d5819){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d5819;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xbc273a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xbc273a);}['getRevision'](_0x313b48){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x313b48);}['getRevisions'](_0x46c019){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x46c019||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4ef9d6=this['editor'],_0x33a860=_0x2b58ff(_0x4ef9d6,d),_0x36bb6b=_0x4ef9d6['plugins']['get']('RevisionTracker'),_0xff543f=_0x4ef9d6['plugins']['get']('Users')['users'];return _0x33a860['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33a860['lazyRoots'],(_0x33a860['plugins']['push'](ht,l,u,class extends _0x449360{static get['requires'](){return[l,'Users'];}['init'](){const _0x501a5a=this['editor']['plugins']['get']('Users');for(const _0xab5c70 of _0xff543f)_0xab5c70['isAnonymous']||_0x501a5a['getUser'](_0xab5c70['id'])||_0x501a5a['addUser'](_0xab5c70);const _0x5456f2=_0x36bb6b['repository']['getRevisions']();let _0x55f07a=null;const _0x2b1809=this['editor']['plugins']['get']('RevisionViewer');_0x2b1809['adapter']=_0x36bb6b['adapter'],_0x2b1809['bind']('isEnabled')['to'](_0x36bb6b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4ef9d6,'isReadOnly',_0x1b2d61=>!_0x1b2d61);for(const _0x4c0c89 of _0x5456f2){const _0x153159=null===_0x4c0c89['creator'];if(_0x153159&&_0x4c0c89['toVersion']===_0x4c0c89['fromVersion'])continue;const _0x2e833b=_0x4c0c89['toJSON']();_0x2b1809['addRevisionData'](_0x2e833b,(_0xb447d1,_0x399a7e,_0x4a3344)=>{if(_0x153159){if(_0x55f07a)_0x55f07a['_update'](_0xb447d1,_0x399a7e);else{if(!_0x399a7e){const _0xf60a64=_0x4a3344['toJSON']();_0xf60a64['id']=_0x20586a(),_0x36bb6b['saveRevision'](_0xf60a64,_0x4a3344['toVersion'])['then'](_0x587ccf=>{_0x55f07a=_0x587ccf;});}}}else _0x4c0c89['_update'](_0xb447d1,_0x399a7e);});}}},f),_0x33a860);}['_enhanceShowRevisionViewerCallback'](){const _0x4ac55b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x37e8dd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xa77b2d=this['editor']['plugins']['get']('Autosave');await _0xa77b2d['save']();}else await _0x37e8dd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x208a68=this['editor']['plugins']['get']('Dialog');_0x208a68['isOpen']&&_0x208a68['hide']();}const _0x211220=this['_getRevisionViewerEditorConfig']();return _0x4ac55b(_0x211220)['then'](_0x4cab0f=>{return(this['_viewerEditor']=_0x4cab0f,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'),_0x4cab0f);})['catch'](_0x580487=>(console['error'](_0x580487),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x27b42d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x27b42d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x54da90=this['editor']['plugins']['get']('Annotations');_0x54da90['refreshVisibility'](),_0x54da90['refreshPositioning']();}})));}['_showRevisionViewer'](_0x329392){const _0x491eb1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xf976d7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1206c2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1206c2,_0x329392)['then'](_0x383299=>(_0xf976d7['style']['display']='block',_0x491eb1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x383299));}['_closeRevisionViewer'](_0x41b21c){const _0x102620=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x102620['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x41b21c['destroy']();}async['_restoreRevision'](_0x559d52){const _0x412ebc=this['editor'],_0x3b4305=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ca1a6=_0x412ebc['plugins']['get']('RevisionTracker'),_0x2159d9=_0x412ebc['plugins']['get']('RevisionHistoryUtils'),_0x415080=_0x3b4305['repository']['getRevision'](_0x559d52);let _0x35e8bf,_0x2c4b11,_0x22b445;try{await _0x2159d9['loadRevisionData'](_0x415080,this['adapter']),_0x35e8bf=_0x2159d9['getRevisionDocumentData'](_0x415080),_0x2c4b11=_0x2159d9['getRevisionRootsAttributes'](_0x415080);}catch(_0x2b145a){return void console['error'](_0x2b145a);}_0x412ebc['model']['change'](_0x34c39d=>{for(const _0x971424 of Array['from'](_0x412ebc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34c39d['removeMarker'](_0x971424);}),_0x3b4305['isReady']=!0x1,_0x412ebc['model']['enqueueChange'](_0x513163=>{_0x513163['setSelection'](null),_0x513163['removeSelectionAttribute'](_0x412ebc['model']['document']['selection']['getAttributeKeys']());const _0x1fe166=Object['keys'](_0x35e8bf);for(const _0x3c58aa of _0x412ebc['model']['document']['roots'])'$graveyard'!=_0x3c58aa['rootName']&&_0x3c58aa['isAttached']()&&!_0x1fe166['includes'](_0x3c58aa['rootName'])&&_0x513163['detachRoot'](_0x3c58aa);for(const _0x41cb53 of _0x1fe166){let _0x3a8d63=_0x412ebc['model']['document']['getRoot'](_0x41cb53);_0x3a8d63&&_0x3a8d63['isAttached']()||(_0x3a8d63=_0x513163['addRoot'](_0x41cb53));const _0x4a9daf=_0x2c4b11[_0x41cb53],_0x238383=Object['keys'](_0x4a9daf),_0xd2b8df=_0x35e8bf[_0x41cb53];for(const _0x41be1d of _0x3a8d63['getAttributeKeys']())_0x238383['includes'](_0x41be1d)||_0x513163['removeAttribute'](_0x41be1d,_0x3a8d63);for(const _0x864b6 of _0x238383)_0x513163['setAttribute'](_0x864b6,_0x2c4b11[_0x41cb53][_0x864b6],_0x3a8d63);_0x513163['remove'](_0x513163['createRangeIn'](_0x3a8d63)),_0x513163['insert'](_0x412ebc['data']['parse'](_0xd2b8df,_0x3a8d63),_0x3a8d63,0x0);}});const _0x38a737=R(_0x412ebc['locale'],'Restored');if(_0x415080['name'])_0x22b445=-0x1==_0x415080['name']['indexOf'](_0x38a737)?_0x38a737+':\x20'+_0x415080['name']:_0x415080['name'];else _0x22b445=_0x38a737+':\x20'+(_0x415080['createdAt']['toLocaleDateString'](_0x412ebc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x415080['createdAt']['toLocaleTimeString'](_0x412ebc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ca1a6['saveRevision']({'name':_0x22b445}),_0x3b4305['isReady']=!0x0,_0x412ebc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|