@ckeditor/ckeditor5-revision-history 47.0.0-alpha.6 → 47.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x5dfdee(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52f3a6){super(),this['id']=_0x52f3a6['id']||_0x5c7d64(),this['creator']=_0x52f3a6['creator']||null,this['authors']=_0x52f3a6['authors']||[],this['diffData']=_0x52f3a6['diffData']||null,this['toVersion']=_0x52f3a6['toVersion']||0x0,this['fromVersion']=_0x52f3a6['fromVersion']||0x0,this['set']('name',_0x52f3a6['name']||''),this['set']('createdAt',_0x52f3a6['createdAt']||new Date()),this['set']('attributes',_0x52f3a6['attributes']||{});}['setName'](_0x3bb129){this['_update']({'name':_0x3bb129});}['setAttribute'](_0x446e19,_0x48f637){const _0x18abb0=_0x558200(this['attributes']);_0x4aecf7(_0x18abb0,_0x446e19,_0x48f637),this['_update']({'attributes':_0x18abb0});}['removeAttribute'](_0x3c841c){const _0x50b8ec=_0x558200(this['attributes']);_0x1ec5a2(_0x50b8ec,_0x3c841c),this['_update']({'attributes':_0x50b8ec});}['_update'](_0x4a6bb7,_0x14acfa=!0x1){let _0x31c706=!0x1;const _0xb572dc={'id':this['id']},_0x1b5b71=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d54c5 of _0x1b5b71){const _0x422e88=_0x4a6bb7[_0x5d54c5];void 0x0!==_0x422e88&&_0x422e88!==this[_0x5d54c5]&&(this[_0x5d54c5]=_0x422e88,_0xb572dc[_0x5d54c5]=_0x422e88,_0x31c706=!0x0);}_0x31c706&&(_0xb572dc['authors']&&(_0xb572dc['authorsIds']=_0xb572dc['authors']['map'](_0xdb0ecb=>_0xdb0ecb['id']),delete _0xb572dc['authors']),this['fire']('_update',_0xb572dc,_0x14acfa));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55bfd4=>_0x55bfd4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x225e65{['_revisions'];static get['requires'](){return[_0x19dc8a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x201faf){super(_0x201faf),this['_revisions']=new _0x56bfbf();}['afterInit'](){!async function(_0x5434a1){const _0x5eb2e6=_0x39f422([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x19e0e8=0xeb829,_0x29dccf=0x7374585f,_0x14f859=0x73732c9f^_0x29dccf,_0x4f2929=window[_0x39f422([0x44,0x61,0x74,0x65])][_0x39f422([0x6e,0x6f,0x77])](),_0x26e12d=_0x5434a1[_0x39f422([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30c930=new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591146=>{_0x26e12d[_0x39f422([0x6f,0x6e,0x63,0x65])](_0x39f422([0x72,0x65,0x61,0x64,0x79]),_0x591146);}),_0x16a586={[_0x39f422([0x6b,0x74,0x79])]:_0x39f422([0x45,0x43]),[_0x39f422([0x75,0x73,0x65])]:_0x39f422([0x73,0x69,0x67]),[_0x39f422([0x63,0x72,0x76])]:_0x39f422([0x50,0x2d,0x32,0x35,0x36]),[_0x39f422([0x78])]:_0x39f422([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]),[_0x39f422([0x79])]:_0x39f422([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]),[_0x39f422([0x61,0x6c,0x67])]:_0x39f422([0x45,0x53,0x32,0x35,0x36])},_0x56c76e=_0x26e12d[_0x39f422([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39f422([0x67,0x65,0x74])](_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbca603(){let _0x1736c6,_0x2927a0=null,_0x198336=null;try{if(_0x56c76e==_0x39f422([0x47,0x50,0x4c]))return _0x39f422([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1736c6=_0xd096b0(),!_0x1736c6)return _0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1736c6[_0x39f422([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198336=_0x4f5ee3(_0x1736c6[_0x39f422([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1736c6[_0x39f422([0x6a,0x74,0x69])])),await _0x2f9e0f()?_0x466cfd()?_0x448e1c()?_0x39f422([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d9d98()?(_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f422([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2927a0=_0x482a3b(_0x39f422([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f422([0x74,0x72,0x69,0x61,0x6c])&&(_0x2927a0=_0x482a3b(_0x39f422([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13c190()):_0x39f422([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39f422([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39f422([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x448e1c(){const _0x1d81ce=[_0x39f422([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39f422([0x74,0x72,0x69,0x61,0x6c])][_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f2929/0x3e8:0xe10*_0x14f859;return _0x1736c6[_0x39f422([0x65,0x78,0x70])]<_0x1d81ce;}function _0x466cfd(){const _0x1d2ec7=_0x1736c6[_0x39f422([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d2ec7)return!0x1;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x2a])))return!0x0;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x52,0x48])))return!0x0;if(_0x1d2ec7[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x52,0x52,0x48]))){if(_0x56bd0a())return!0x0;if(_0xb93c03()||_0x117e22())return!0x0;}return!0x1;}function _0x1d9d98(){const _0x50a40a=_0x1736c6[_0x39f422([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50a40a||0x0==_0x50a40a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37c482}=new URL(window[_0x39f422([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50a40a[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37c482))return!0x0;const _0x41999d=_0x37c482[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e]));return _0x50a40a[_0x39f422([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32c628=>_0x32c628[_0x39f422([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f422([0x2a])))[_0x39f422([0x6d,0x61,0x70])](_0x2f81bb=>_0x2f81bb[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e])))[_0x39f422([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43f0ab=>_0x43f0ab[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x41999d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39f422([0x6d,0x61,0x70])](_0xcf60ea=>Array(_0x41999d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcf60ea[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39f422([0x66,0x69,0x6c,0x6c])](_0xcf60ea[0x0]===_0x39f422([0x2a])?_0x39f422([0x2a]):'')[_0x39f422([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcf60ea))[_0x39f422([0x73,0x6f,0x6d,0x65])](_0x766239=>_0x41999d[_0x39f422([0x65,0x76,0x65,0x72,0x79])]((_0x10c648,_0x255a7a)=>_0x766239[_0x255a7a]===_0x10c648||_0x766239[_0x255a7a]===_0x39f422([0x2a])));}function _0x13c190(){return _0x2927a0&&_0x198336?new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eb806,_0x29d818)=>{_0x2927a0[_0x39f422([0x74,0x68,0x65,0x6e])](_0x1eb806,_0x29d818),_0x198336[_0x39f422([0x74,0x68,0x65,0x6e])](_0x53b67b=>{_0x53b67b!=_0x39f422([0x56,0x61,0x6c,0x69,0x64])&&_0x1eb806(_0x53b67b);},_0x29d818);}):_0x2927a0||_0x198336||_0x39f422([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f5ee3(_0x100945,_0x171260){return new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d10fb=>{if(_0x3628c0())return _0x4d10fb(_0x39f422([0x56,0x61,0x6c,0x69,0x64]));_0x20600b(),_0x26e12d[_0x39f422([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a33d1=!0x1;const _0x415234=_0x5c7d64();function _0x2567a7(_0x53acf9){return!!_0x53acf9&&(typeof _0x53acf9===_0x39f422([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53acf9===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53acf9[_0x39f422([0x74,0x68,0x65,0x6e])]===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53acf9[_0x39f422([0x63,0x61,0x74,0x63,0x68])]===_0x39f422([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c159b(_0x7113b4){_0x50341b(_0x7113b4)[_0x39f422([0x74,0x68,0x65,0x6e])](_0x3053cc=>{if(!_0x3053cc||_0x3053cc[_0x39f422([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39f422([0x6f,0x6b]))return _0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5edae7(_0x33faf6(_0x415234+_0x171260))!=_0x3053cc[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39f422([0x56,0x61,0x6c,0x69,0x64]);})[_0x39f422([0x74,0x68,0x65,0x6e])](_0x39346a=>(_0x2265b9(),_0x39346a),()=>{const _0x598090=_0x59958e();return null==_0x598090?(_0x2265b9(),_0x39f422([0x56,0x61,0x6c,0x69,0x64])):_0x39f422(_0x4f2929-_0x598090>(0x5778dc5f^_0x29dccf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39f422([0x74,0x68,0x65,0x6e])](_0x4d10fb)[_0x39f422([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22546c=0x7342b6df^_0x29dccf;function _0x2265b9(){const _0x4ca2cf=_0x39f422([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edae7(_0x33faf6(_0x100945)),_0x3882cf=_0x4e2c00(_0x5edae7(window[_0x39f422([0x4d,0x61,0x74,0x68])][_0x39f422([0x63,0x65,0x69,0x6c])](_0x4f2929/_0x22546c)));window[_0x39f422([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f422([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca2cf,_0x3882cf);}function _0x59958e(){const _0x5ca319=_0x39f422([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edae7(_0x33faf6(_0x100945)),_0x305326=window[_0x39f422([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f422([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ca319);return _0x305326?window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2c00(_0x305326),0x10)*_0x22546c:null;}function _0x50341b(_0x24d0b8){return new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c8ea9,_0x489a31)=>{_0x24d0b8[_0x39f422([0x74,0x68,0x65,0x6e])](_0x2c8ea9,_0x489a31),window[_0x39f422([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x489a31,0x73758c9f^_0x29dccf);});}}_0x26e12d[_0x39f422([0x6f,0x6e])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47202c,_0x5ef0cc)=>{if(_0x5ef0cc[0x0]!=_0x100945)return _0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ef0cc[0x1]={..._0x5ef0cc[0x1],[_0x39f422([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x415234};},{[_0x39f422([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f422([0x68,0x69,0x67,0x68])}),_0x26e12d[_0x39f422([0x6f,0x6e])](_0x39f422([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58b613=>{_0x2567a7(_0x58b613[_0x39f422([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a33d1=!0x0,_0x1c159b(_0x58b613[_0x39f422([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39f422([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f422([0x6c,0x6f,0x77])}),_0x30c930[_0x39f422([0x74,0x68,0x65,0x6e])](()=>{_0x4a33d1||_0x4d10fb(_0x39f422([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3628c0(){return _0x26e12d[_0x39f422([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f422([0x76,0x69,0x65,0x77])][_0x39f422([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39f422([0x61,0x75,0x74,0x6f]);}function _0x20600b(){_0x26e12d[_0x39f422([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f422([0x76,0x69,0x65,0x77])][_0x39f422([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f422([0x61,0x75,0x74,0x6f]);}}function _0x482a3b(_0x30af64){const _0x295dc3=[new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1038da=>setTimeout(_0x1038da,0x737d6693^_0x29dccf)),_0x30c930[_0x39f422([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdbd800=>{const _0x35df6e=0x73745858^_0x29dccf,_0x5c0c6d=_0x5434a1[_0x39f422([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b4eed(){_0x5c0c6d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35df6e&&_0xdbd800();}_0x3b4eed(),_0x5c0c6d[_0x39f422([0x6f,0x6e])](_0x39f422([0x61,0x64,0x64]),_0x3b4eed);})),new window[(_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x531dbb=>{function _0x5591de(){for(const _0x7da7b5 in window)if(window[_0x39f422([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39f422([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x7da7b5))&&window[_0x7da7b5]==_0x19e0e8)return _0x531dbb();_0x26e12d[_0x39f422([0x73,0x74,0x61,0x74,0x65])]!=_0x39f422([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39f422([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5591de,0x73744bd7^_0x29dccf);}_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5591de();})];return window[_0x39f422([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f422([0x72,0x61,0x63,0x65])](_0x295dc3)[_0x39f422([0x74,0x68,0x65,0x6e])](()=>_0x30af64);}async function _0x20b9de(){if(await _0x30c930,_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11ed03=_0x5434a1[_0x39f422([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2bf59c=_0x5434a1[_0x39f422([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])](_0x11ed03[_0x39f422([0x69,0x64])]),_0x156e49=_0x493164(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x156e49[_0x39f422([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11ed03['id'],_0x2bf59c?_0x2bf59c['id']:null,!0x0),_0x156e49[_0x39f422([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x156e49[_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x156e49[_0x39f422([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5b6d01,void(_0x156e49[_0x39f422([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5b6d01);}if(_0x15d0f0(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28b774=_0x493164(_0x39f422([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28b774[_0x39f422([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28b774[_0x39f422([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28b774[_0x39f422([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5b6d01,_0x28b774[_0x39f422([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5b6d01;}_0x26e12d[_0x39f422([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f422([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6d01,_0x26e12d[_0x39f422([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f422([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6d01,_0x26e12d[_0x39f422([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39f422([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56bd0a(){return _0x15d0f0(_0x39f422([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x493164(_0x39f422([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39f422([0x73,0x74,0x61,0x74,0x65])]==_0x39f422([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb93c03(){return _0x15d0f0(_0x39f422([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 _0x117e22(){return _0x15d0f0(_0x39f422([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c241e(_0x47fcdd){const _0x1fa6b6=_0x349150();_0x26e12d[_0x1fa6b6]=_0x39f422([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])+_0x47fcdd,_0x47fcdd[_0x39f422([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39f422([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x349150()]=_0x19e0e8),_0x47fcdd!=_0x39f422([0x56,0x61,0x6c,0x69,0x64])&&_0x20b9de();}function _0x349150(){const _0x5ca75d=window[_0x39f422([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39f422([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39f422([0x6e,0x6f,0x77])]())[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39f422([0x2e]),'');let _0xdd7011=_0x39f422([0x73]);for(let _0x1849db=0x0;_0x1849db<_0x5ca75d[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1849db+=0x2){let _0x27c539=window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ca75d[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1849db,_0x1849db+0x2));_0x27c539>=_0x5eb2e6[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c539-=_0x5eb2e6[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdd7011+=_0x5eb2e6[_0x27c539];}return _0xdd7011;}function _0xd096b0(){const _0x355e2a=_0x56c76e[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e]));if(0x3!=_0x355e2a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9e3381(_0x355e2a[0x1]);function _0x9e3381(_0xd673cc){const _0x44a7bc=_0x5bf8d8(_0xd673cc);return _0x44a7bc&&_0x282a96()?_0x44a7bc:null;function _0x282a96(){const _0x1b4b00=_0x44a7bc[_0x39f422([0x6a,0x74,0x69])],_0x376db5=window[_0x39f422([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4b00[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b4b00[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xafa2ad={..._0x44a7bc,[_0x39f422([0x6a,0x74,0x69])]:_0x1b4b00[_0x39f422([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b4b00[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xafa2ad[_0x39f422([0x76,0x63])],_0x33faf6(_0xafa2ad)==_0x376db5;}}}async function _0x2f9e0f(){let _0x4a672a=!0x0;try{const _0x6373e4=_0x56c76e[_0x39f422([0x73,0x70,0x6c,0x69,0x74])](_0x39f422([0x2e])),[_0x309e7b,_0x4f2e95,_0x3305a1]=_0x6373e4;return _0x5d7c22(_0x309e7b),await _0x536a7d(_0x309e7b,_0x4f2e95,_0x3305a1),_0x4a672a;}catch{return!0x1;}function _0x5d7c22(_0x1fdd47){const _0x4cd1a4=_0x5bf8d8(_0x1fdd47);_0x4cd1a4&&_0x4cd1a4[_0x39f422([0x61,0x6c,0x67])]==_0x39f422([0x45,0x53,0x32,0x35,0x36])||(_0x4a672a=!0x1);}async function _0x536a7d(_0x59e254,_0x5c353b,_0x460b8e){const _0xe0762f=window[_0x39f422([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39f422([0x66,0x72,0x6f,0x6d])](_0x373f59(_0x460b8e),_0x765dbe=>_0x765dbe[_0x39f422([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x472f93=new window[(_0x39f422([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39f422([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e254+_0x39f422([0x2e])+_0x5c353b),_0x5cdf53=window[_0x39f422([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39f422([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cdf53)return;const _0x900c1f=await _0x5cdf53[_0x39f422([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39f422([0x6a,0x77,0x6b]),_0x16a586,{[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x45,0x43,0x44,0x53,0x41]),[_0x39f422([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39f422([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cdf53[_0x39f422([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x45,0x43,0x44,0x53,0x41]),[_0x39f422([0x68,0x61,0x73,0x68])]:{[_0x39f422([0x6e,0x61,0x6d,0x65])]:_0x39f422([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x900c1f,_0xe0762f,_0x472f93)||(_0x4a672a=!0x1);}}function _0x5bf8d8(_0x14f45e){return _0x14f45e[_0x39f422([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39f422([0x65,0x79]))?JSON[_0x39f422([0x70,0x61,0x72,0x73,0x65])](_0x373f59(_0x14f45e)):null;}function _0x373f59(_0x208966){return window[_0x39f422([0x61,0x74,0x6f,0x62])](_0x208966[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39f422([0x2b]))[_0x39f422([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39f422([0x2f])));}function _0x33faf6(_0x46927c){let _0x37abb3=0x1505;function _0x3bccb5(_0x12154a){for(let _0x24a26c=0x0;_0x24a26c<_0x12154a[_0x39f422([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a26c++){const _0x32038a=_0x12154a[_0x39f422([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24a26c);_0x37abb3=(_0x37abb3<<0x5)+_0x37abb3+_0x32038a,_0x37abb3&=_0x37abb3;}}function _0x390132(_0x3122c8){Array[_0x39f422([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3122c8)?_0x3122c8[_0x39f422([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x390132):_0x3122c8&&typeof _0x3122c8==_0x39f422([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39f422([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3122c8)[_0x39f422([0x73,0x6f,0x72,0x74])]()[_0x39f422([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x119236,_0x596061])=>{_0x3bccb5(_0x119236),_0x390132(_0x596061);}):_0x3bccb5(window[_0x39f422([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3122c8));}return _0x390132(_0x46927c),_0x37abb3>>>0x0;}function _0x5edae7(_0x46094f){return _0x46094f[_0x39f422([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39f422([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39f422([0x30]));}function _0x4e2c00(_0x322d4d){return _0x322d4d[_0x39f422([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39f422([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39f422([0x6a,0x6f,0x69,0x6e])]('');}function _0x15d0f0(_0x19882e){return _0x26e12d[_0x39f422([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f422([0x68,0x61,0x73])](_0x19882e);}function _0x493164(_0x3fabec){return _0x26e12d[_0x39f422([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f422([0x67,0x65,0x74])](_0x3fabec);}function _0x5b6d01(){}function _0x39f422(_0x27289d){return _0x27289d['map'](_0x16a6e0=>String['fromCharCode'](_0x16a6e0))['join']('');}_0x4c241e(await _0xbca603());}(this);}['createRevision'](_0x2f3abe){const _0x5efb3b=this['editor']['plugins']['get']('Users');return new I({'id':_0x2f3abe['id'],'name':_0x2f3abe['name'],'creator':_0x2f3abe['creatorId']?_0x5efb3b['getUser'](_0x2f3abe['creatorId']):null,'diffData':_0x2f3abe['diffData']||_0x2f3abe['data'],'authors':_0x2f3abe['authorsIds']['map'](_0x36b4ff=>_0x5efb3b['getUser'](_0x36b4ff)),'createdAt':new Date(_0x2f3abe['createdAt']),'attributes':_0x2f3abe['attributes'],'fromVersion':_0x2f3abe['fromVersion'],'toVersion':_0x2f3abe['toVersion']});}['addRevision'](_0x30720e,_0x123914=0x0){this['_revisions']['add'](_0x30720e,_0x123914);}['getRevision'](_0x1aad04){return this['_revisions']['get'](_0x1aad04);}['getRevisions'](_0x2932b0={'toJSON':!0x1}){const _0x375178=Array['from'](this['_revisions']);return _0x375178['reverse'](),_0x2932b0['toJSON']?_0x375178['map'](_0x3b02dc=>_0x3b02dc['toJSON']()):_0x375178;}['getIndex'](_0x45f7b6){return this['_revisions']['getIndex'](_0x45f7b6);}['getEarlierVisibleRevision'](_0x89b683){const [,_0x1c961a]=this['getRevisionsIterator'](_0x89b683,{'direction':'earlier'});return _0x1c961a;}['getLaterVisibleRevision'](_0x254f2d){const [,_0x31fcdf]=this['getRevisionsIterator'](_0x254f2d,{'direction':'later'});return _0x31fcdf;}['getRevisionsInDiff'](_0x50fbd6){const _0x194369=[];for(const _0x5e2980 of this['getRevisionsIterator'](_0x50fbd6['newRevisionId']))if(_0x194369['push'](_0x5e2980),_0x5e2980['id']===_0x50fbd6['oldRevisionId'])break;return _0x194369;}*['getRevisionsIterator'](_0x14ef9d,{direction:_0x4fb3a0='earlier',filter:_0x287b9c=()=>!0x0}={}){const _0x131590='earlier'===_0x4fb3a0?0x1:-0x1;let _0x1601ea=this['_revisions']['get'](_0x14ef9d),_0xdb629d=this['getIndex'](_0x1601ea);for(yield _0x1601ea;_0x1601ea;){if(_0xdb629d+=_0x131590,_0x1601ea=this['getRevision'](_0xdb629d),!_0x1601ea)return;_0x287b9c(_0x1601ea)&&(yield _0x1601ea);}}}class $ extends _0x225e65{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x34b395,'c'],[_0x39405c,'a'],[_0x4d2903,'e'],[_0x20f72c,'r'],[_0xe510b1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x34b395],['a',_0x39405c],['e',_0x4d2903],['r',_0x20f72c],['u',_0xe510b1]]);async['loadRevisionData'](_0x57b68a,_0x324372){if(_0x57b68a['diffData']||!_0x324372)return;const _0x52c8de=this['editor']['config']['get']('collaboration.channelId'),_0x57bbb8=await _0x324372['getRevision']({'channelId':_0x52c8de,'revisionId':_0x57b68a['id']});_0x57b68a['diffData']=_0x57bbb8['diffData'];}['getRevisionDocumentData'](_0x3c4e70){const _0x5955bc={};for(const _0x2ef066 in _0x3c4e70['diffData']){if(_0x3c4e70['diffData'][_0x2ef066]['attachChange']&&!_0x3c4e70['diffData'][_0x2ef066]['attachChange']['isAttached'])continue;const _0x303133=this['_removeRevisionMarkers'](JSON['parse'](_0x3c4e70['diffData'][_0x2ef066]['insertions'])),_0x2df251=this['editor']['editing']['view']['document'],_0x200142=new _0x1ec763(_0x2df251,_0x303133['map'](_0x4d7797=>this['_getViewFromDiffObj'](_0x4d7797,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5955bc[_0x2ef066]=this['editor']['data']['processor']['toData'](_0x200142),this['editor']['data']['processor']['useFillerType']('default');}return _0x5955bc;}['getRevisionRootsAttributes'](_0x25050b){const _0x499acf={};for(const _0x388f21 in _0x25050b['diffData'])_0x25050b['diffData'][_0x388f21]['attachChange']&&!_0x25050b['diffData'][_0x388f21]['attachChange']['isAttached']||(_0x499acf[_0x388f21]=_0x25050b['diffData'][_0x388f21]['attributesAfter']||{});return _0x499acf;}['_getTypeCharForViewElement'](_0x55fd77){return this['_viewClassToTypeChar']['get'](_0x55fd77['constructor']);}['_getViewFromDiffObj'](_0x4f4ffc,_0x1326b7){const _0x4d33ce=this['editor']['editing']['view']['document'];if('string'==typeof _0x4f4ffc)return new _0x2584c6(_0x4d33ce,_0x4f4ffc);{let _0x5baafa,_0x566901;_0x566901='u'==_0x4f4ffc['type']||'r'==_0x4f4ffc['type']?[]:_0x4f4ffc['children']['map'](_0x4dc8c0=>this['_getViewFromDiffObj'](_0x4dc8c0,_0x1326b7));const _0x29cfea=this['_typeCharToViewClass']['get'](_0x4f4ffc['type'])||_0x2057e0,_0x39e1ae=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5baafa=new _0x29cfea(_0x4d33ce,_0x4f4ffc['name'],_0x4f4ffc['attributes'],_0x566901),'u'==_0x4f4ffc['type']&&_0x4f4ffc['children'][0x0]){const _0x4433b2=_0x4f4ffc['children'][0x0];if(_0x5baafa['render']=function(_0x16dccf){const _0x2a80e0=_0x16dccf['createElement']('div');return _0x2a80e0['innerHTML']=_0x4433b2,_0x2a80e0['childNodes'][0x0];},_0x1326b7){const _0x402177=new _0x1ec763(_0x4d33ce);_0x402177['_appendChild'](_0x5baafa);const _0x487416=Array['from'](_0x39e1ae['viewChildrenToDom'](_0x402177,{'bind':!0x1})),_0x39716f=_0x39e1ae['domDocument']['createElement']('div');_0x39716f['append'](..._0x487416),_0x5baafa=Array['from'](_0x39e1ae['domChildrenToView'](_0x39716f))[0x0];}}else{if('r'==_0x4f4ffc['type']&&_0x4f4ffc['children'][0x0]){const _0x2e71d0=_0x4f4ffc['children'][0x0];if(_0x5baafa['render']=function(_0x891d65){_0x891d65['innerHTML']=_0x2e71d0;},_0x1326b7){const _0x15a85d=new _0x1ec763(_0x4d33ce);_0x15a85d['_appendChild'](_0x5baafa);const _0x25e733=Array['from'](_0x39e1ae['viewChildrenToDom'](_0x15a85d,{'bind':!0x1})),_0x800f8=_0x39e1ae['domDocument']['createElement']('div');_0x800f8['append'](..._0x25e733);const _0x12a3f3=Array['from'](_0x39e1ae['domChildrenToView'](_0x800f8));_0x12a3f3['length']>0x1?_0x5baafa['_appendChild'](_0x12a3f3):_0x5baafa=_0x12a3f3[0x0];}}}if(_0x4f4ffc['customProperties']){for(const [_0x58e13f,_0x1462ae]of _0x4f4ffc['customProperties'])_0x5baafa['_setCustomProperty'](_0x58e13f,_0x1462ae);}const _0x57f20d=void 0x0===_0x4f4ffc['fillerOffset']?null:_0x4f4ffc['fillerOffset'];return null!==_0x57f20d&&(_0x5baafa['getFillerOffset']=()=>_0x57f20d),_0x5baafa;}}['_makeModelFromViewString'](_0x553e6e){const _0x44b3b8=JSON['parse'](_0x553e6e),_0x35d03c=this['editor']['editing']['view']['document'],_0x8f1e45=new _0x1ec763(_0x35d03c,_0x44b3b8['map'](_0x3e1a90=>this['_getViewFromDiffObj'](_0x3e1a90,!0x0)));return this['editor']['data']['toModel'](_0x8f1e45);}['_removeRevisionMarkers'](_0x47a7d6){return(_0x47a7d6=_0x47a7d6['filter'](_0x49911d=>!_0x49911d['name']||'revision-start'!==_0x49911d['name']&&'revision-end'!==_0x49911d['name']))['forEach'](_0x4771f2=>{'string'!=typeof _0x4771f2&&(_0x4771f2['children']=this['_removeRevisionMarkers'](_0x4771f2['children']),_0x4771f2['attributes']=_0x4771f2['attributes']['filter'](_0x5a7e24=>!_0x5a7e24[0x0]['startsWith']('data-revision-')));}),_0x47a7d6;}}function R(_0x1921b0,_0x1b8dc1,_0x3e1565){const t=_0x1921b0['t'];switch(_0x1b8dc1){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'},_0x3e1565);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3e1565);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 _0x225e65{['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[_0x19dc8a,S,$,_0x520f90];}constructor(_0x2f6f67){super(_0x2f6f67),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 _0x546bd6=_0x5c7d64();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x546bd6},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 _0x4ec444=this['repository']['getRevision'](0x0),_0x2469dc=_0x4ec444&&null===_0x4ec444['creator']?_0x4ec444:null;if(this['_continueCurrentRevision']=!!_0x2469dc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5da0bf=this['_source']['getCurrentRevisionId'](),_0x5a7f2a=this['repository']['getRevision'](_0x5da0bf);if(_0x5a7f2a)this['_startingVersion']=_0x5a7f2a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x44bf39=this['_source']['history']['_operations']['find'](_0x26aa75=>!_0x26aa75['_isInit']),_0x4c6b69=_0x44bf39?_0x44bf39['baseVersion']:this['_source']['history']['version'];_0x4ec444?(_0x4ec444['toVersion']<_0x4c6b69&&_0x4ec444['_update']({'toVersion':_0x4c6b69}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id'],this['_startingVersion']=_0x2469dc['fromVersion']):(this['_startingVersion']=_0x4ec444['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4c6b69,this['_continueCurrentRevision']=!0x1);}}else _0x2469dc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2469dc['toVersion'],this['editor']['model']['document']['history']['version']),_0x2469dc['fromVersion']===_0x2469dc['toVersion']?(0x0!==_0x2469dc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2469dc['id'],this['_startingVersion']=_0x2469dc['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',_0x5ad9b6=>!_0x5ad9b6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ac2fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x306506;for(const _0x311392 in _0x1ac2fd){const _0x148714=_0x311392,_0x21a969=_0x1ac2fd[_0x148714];if('revisionHistoryLicenseKeyValid'==_0x21a969||'revisionHistoryLicenseKeyInvalid'==_0x21a969||'revisionHistoryLicenseKeyExpired'==_0x21a969||'revisionHistoryLicenseKeyDomainLimit'==_0x21a969||'revisionHistoryLicenseKeyNotAllowed'==_0x21a969||'revisionHistoryLicenseKeyEvaluationLimit'==_0x21a969||'revisionHistoryLicenseKeyTrialLimit'==_0x21a969||'revisionHistoryLicenseKeyUsageLimit'==_0x21a969){delete _0x1ac2fd[_0x148714],_0x306506=_0x21a969,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x306506&&_0x1ac2fd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x306506&&_0x1ac2fd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x306506&&_0x1ac2fd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x306506&&_0x1ac2fd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x51f2c1=this['repository']['getRevision'](0x0),_0x23a98e=await this['getRevisionDocumentData'](_0x51f2c1),_0x3ce92b=await this['getRevisionRootsAttributes'](_0x51f2c1);this['_replaceEditorDataWithRevisionData'](_0x23a98e,_0x3ce92b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x44b8a2){this['_source']=_0x44b8a2;}async['update'](){const _0x3f3763=await this['_source']['getLatestVersion']();if(_0x3f3763>this['currentRevision']['toVersion']){await this['_loadState']();const _0x480d7e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f3763});_0x480d7e['authors']=_0x480d7e['authorsIds']['map'](_0x388d30=>this['editor']['plugins']['get']('Users')['getUser'](_0x388d30)),this['currentRevision']['_update'](_0x480d7e);}}async['saveRevision'](_0x6092e4={},_0x13a309=null){const _0x43718e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x13a309>this['currentRevision']['toVersion']&&(_0x13a309=null),null===_0x13a309&&(_0x13a309=await this['_source']['getLatestVersion']());const _0x3e62a6=this['_getFromVersion'](_0x13a309),_0x3657f6=this['buildRevisionData']({'from':_0x3e62a6,'to':_0x13a309});if(this['currentRevision']['toVersion']<_0x13a309){const _0x6a3174=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x13a309,'to':_0x13a309});_0x6a3174['authors']=[],_0x6a3174['authorsIds']=[],_0x6a3174['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x6a3174,!0x0),delete _0x6a3174['authors'],_0x43718e['push'](_0x6a3174);}_0x6092e4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6092e4['name']=_0x6092e4['name']||null,_0x6092e4['id']=_0x6092e4['id']||_0x5c7d64(),_0x6092e4={..._0x6092e4,..._0x3657f6};const _0x581900=this['addRevisionData'](_0x6092e4);_0x43718e['push'](_0x6092e4);const _0x217cf4=this['repository']['getIndex'](_0x581900);if(0x0!==_0x217cf4){const _0xb5617b=this['repository']['getRevision'](_0x217cf4-0x1);if(_0xb5617b['fromVersion']!==_0x13a309){const _0x29fdbe=this['_revisionDataBuilder']['getData'](_0x13a309,_0xb5617b['toVersion']),_0x3f7d79={'id':_0xb5617b['id'],'diffData':_0x29fdbe['diffData'],'authorsIds':_0x29fdbe['authorsIds'],'authors':_0x29fdbe['authorsIds']['map'](_0x5da2f3=>this['editor']['plugins']['get']('Users')['getUser'](_0x5da2f3)),'fromVersion':_0x13a309};_0xb5617b===this['currentRevision']&&(_0x3f7d79['createdAt']=new Date(_0x6092e4['createdAt']['getTime']()+0xa)),_0xb5617b['_update'](_0x3f7d79,!0x0),delete _0x3f7d79['authors'],_0x43718e['push'](_0x3f7d79);}}if(this['adapter']){for(const _0x15244c of _0x43718e)this['_bufferUpdate'](_0x15244c['id'],_0x15244c,!0x0);this['sendBufferedUpdates']();}return _0x581900;}['addRevisionData'](_0x428e09){const _0x5559f8=this['repository']['createRevision'](_0x428e09);return this['adapter']&&_0x5559f8['on']('_update',(_0x34b3fa,_0xd346fa,_0x3d60c1)=>{_0x3d60c1||(this['_bufferUpdate'](_0xd346fa['id'],_0xd346fa,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5559f8,this['_findInsertionIndex'](_0x5559f8)),_0x5559f8;}async['getRevisionDocumentData'](_0x479fb0){return await this['_utils']['loadRevisionData'](_0x479fb0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x479fb0);}async['getRevisionRootsAttributes'](_0x627187){return await this['_utils']['loadRevisionData'](_0x627187,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x627187);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x59795a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3c5349=0x0;_0x3c5349<_0x59795a['length'];_0x3c5349++){const _0x143781=_0x59795a[_0x3c5349];let _0x11be2a=!0x1;for(const _0x2d94e6 of Object['keys'](_0x143781))void 0x0===_0x143781[_0x2d94e6]?delete _0x143781[_0x2d94e6]:'id'!==_0x2d94e6&&(_0x11be2a=!0x0);_0x11be2a||(_0x59795a[_0x3c5349]=null);}if(_0x59795a=_0x59795a['filter'](_0x35e3de=>null!==_0x35e3de),!_0x59795a['length'])return;for(let _0x263941=0x0;_0x263941<_0x59795a['length'];_0x263941++){const _0x56516d=_0x59795a[_0x263941];void 0x0!==_0x56516d['fromVersion']&&void 0x0===_0x56516d['toVersion']&&(_0x56516d['toVersion']=this['repository']['getRevision'](_0x56516d['id'])['toVersion']),void 0x0!==_0x56516d['toVersion']&&void 0x0===_0x56516d['fromVersion']&&(_0x56516d['fromVersion']=this['repository']['getRevision'](_0x56516d['id'])['fromVersion']);}const _0x2c2916=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x59795a,_0x2c2916)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1932a5=>{if(_0x1932a5){for(const _0x37d87b of _0x1932a5)this['setRevisionData']({'id':_0x37d87b['id'],'createdAt':_0x37d87b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xd12c70=null,from:_0x51cfcc=null,to:_0x5939cf=null}){_0x51cfcc=null!==_0x51cfcc?_0x51cfcc:_0xd12c70['fromVersion'],_0x5939cf=null!==_0x5939cf?_0x5939cf:_0xd12c70['toVersion'];const _0x431f4f=this['_revisionDataBuilder']['getData'](_0x51cfcc,_0x5939cf),_0x5ccf17={'diffData':_0x431f4f['diffData'],'authorsIds':_0x431f4f['authorsIds'],'fromVersion':_0x51cfcc,'toVersion':_0x5939cf};if(!_0xd12c70||_0x5939cf!==_0xd12c70['toVersion']){const _0x418065=_0x5939cf-0x1,_0x2c8d02=this['_source']['history']['getOperation'](_0x418065);_0x5ccf17['createdAt']=_0x2c8d02&&_0x2c8d02['createdAt']||new Date();}if(this['_loadedStateData']&&_0x51cfcc===this['_loadedStateData']['fromVersion']){for(const _0x4d1fbb of this['_loadedStateData']['authors'])_0x5ccf17['authorsIds']['includes'](_0x4d1fbb['id'])||_0x5ccf17['authorsIds']['push'](_0x4d1fbb['id']);}return _0x5ccf17;}['_bufferUpdate'](_0x5f174c,_0x1ee54c,_0x516507){if(this['_bufferedUpdates']['has'](_0x5f174c)){const _0x185b55=this['_bufferedUpdates']['get'](_0x5f174c);_0x1ee54c=_0x516507?{..._0x185b55,..._0x1ee54c}:{..._0x1ee54c,..._0x185b55};}this['_bufferedUpdates']['set'](_0x5f174c,_0x1ee54c);}['setRevisionData'](_0x38873c){const _0x1ede03=this['repository']['getRevision'](_0x38873c['id']);if(_0x38873c['createdAt']&&(_0x38873c['createdAt']=new Date(_0x38873c['createdAt'])),_0x38873c['authorsIds']){const _0x273895=this['editor']['plugins']['get']('Users');_0x38873c['authors']=_0x38873c['authorsIds']['map'](_0x18139e=>_0x273895['getUser'](_0x18139e));}_0x1ede03['_update'](_0x38873c,!0x0);}['_createInitialRevision'](_0x43a0ba){const _0xa8731=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa8731)this['_initialRevisionId']=_0xa8731['id'];else{const _0x3b6b19=!this['editor']['model']['document']['roots']['find'](_0x2a1bfd=>this['editor']['model']['hasContent'](_0x2a1bfd)),_0x2fae49=this['editor']['plugins']['get']('Users')['me']['id'],_0x132da7=R(this['editor']['locale'],_0x3b6b19?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43a0ba,'to':_0x43a0ba,'id':this['_initialRevisionId'],'name':_0x132da7,'creatorId':_0x2fae49});}}['_createCurrentRevision'](_0x439edb){const _0x201fbd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x201fbd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x439edb,'to':_0x439edb,'id':_0x201fbd,'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'](_0x3f6e48,_0x4b73ca){let _0x4c12c2=this['editor']['config']['get']('initialData'),_0x5dbcdf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4c12c2){_0x4c12c2={};for(const _0x2d8acc of this['editor']['model']['document']['getRootNames']())_0x4c12c2[_0x2d8acc]='';}if('string'==typeof _0x4c12c2&&(_0x4c12c2={'main':_0x4c12c2}),void 0x0===_0x5dbcdf){_0x5dbcdf={};for(const _0x511273 of this['editor']['model']['document']['getRootNames']())_0x5dbcdf[_0x511273]={};}let _0x20b367=!0x1;const _0x4d7f10=Object['keys'](_0x4c12c2),_0x3a0595=Object['keys'](_0x3f6e48);for(const _0xbc1def of _0x4d7f10){if(_0x4c12c2[_0xbc1def]!==_0x3f6e48[_0xbc1def]&&''!==_0x4c12c2[_0xbc1def]['trim']()){_0x20b367=!0x0;break;}if(!_0x1fb6a3(_0x5dbcdf[_0xbc1def],_0x4b73ca[_0xbc1def])&&Object['keys'](_0x5dbcdf[_0xbc1def])['length']>0x0){_0x20b367=!0x0;break;}}_0x20b367||(_0x20b367=_0x3a0595['some'](_0x9d063=>!this['editor']['model']['document']['getRoot'](_0x9d063))),_0x20b367&&_0x1cc307('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4c12c2,'editorRootsAttributes':_0x5dbcdf,'revisionData':_0x3f6e48,'revisionRootsAttributes':_0x4b73ca}),this['editor']['config']['set']('initialData',_0x3f6e48),this['editor']['config']['set']('rootsAttributes',_0x4b73ca);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x15d182=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x15d182['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cdde3){const _0x4e4da7=this['repository']['getRevisions']();_0x4e4da7['reverse']();let _0xe4235d=0x0;for(;_0xe4235d<_0x4e4da7['length'];){const _0x2ac157=_0x4e4da7[_0xe4235d];if(_0x2ac157===this['currentRevision']){_0xe4235d++;continue;}if(_0x2ac157['id']===this['_initialRevisionId'])break;const _0x5d1873=_0x5cdde3['toVersion']-_0x2ac157['toVersion']||_0x5cdde3['fromVersion']-_0x2ac157['fromVersion'];if(_0x5d1873>0x0)break;if(_0x5d1873<0x0)_0xe4235d++;else{if(!_0x5cdde3['creator']&&_0x2ac157['creator'])break;if(_0x2ac157['creator']||!_0x5cdde3['creator']){if(_0x5cdde3['createdAt']>_0x2ac157['createdAt'])break;_0xe4235d++;}else _0xe4235d++;}}return _0xe4235d;}['_getFromVersion'](_0x18a57b){const _0x3811b7=this['repository']['getRevisions']();_0x3811b7['reverse'](),_0x3811b7['shift']();const _0x53633d=_0x3811b7['find'](_0x5f2379=>_0x5f2379['toVersion']<=_0x18a57b)['toVersion'];return _0x53633d<this['_startingVersion']?this['_startingVersion']:_0x53633d;}['_makeRevision']({name:_0x3d0219,from:_0x1d23fb,to:_0x20ec65,creatorId:_0x79f93c,id:_0x1e3358}){const _0x5618a2=this['buildRevisionData']({'from':_0x1d23fb,'to':_0x20ec65});_0x5618a2['name']=_0x3d0219,_0x5618a2['creatorId']=_0x79f93c,_0x5618a2['id']=_0x1e3358;const _0x4a3589=this['addRevisionData'](_0x5618a2);return this['adapter']&&this['_bufferUpdate'](_0x5618a2['id'],_0x5618a2,!0x0),_0x4a3589;}['_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(_0x27f4ac){this['editor']=_0x27f4ac,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'](_0x4e2a48){this['source']=_0x4e2a48;const _0x9daa5e=new Map(),_0x56665a=new Map(),_0x5eb051=this['editor']['model']['document']['roots']['map'](_0x2c5560=>_0x2c5560['rootName']);for(const _0x78b387 of _0x5eb051){const _0x1c5aca=this['editor']['model']['document']['getRoot'](_0x78b387),_0x5ee6b6=x(_0x1c5aca);_0x9daa5e['set'](_0x78b387,_0x5ee6b6),_0x56665a['set'](_0x78b387,Object['fromEntries'](_0x1c5aca['getAttributes']()));}const _0x7d5200=Array['from'](this['editor']['model']['markers'])['map'](_0xf9c7ce=>[_0xf9c7ce['name'],_0xf9c7ce['getRange']()]),_0x2c887f=this['source']['version'];this['_saveMetaData'](_0x2c887f,_0x9daa5e,_0x7d5200,_0x56665a),this['_startingRevisionId']=this['_revisionId'];const _0xb19175=new Map(),_0x2058ca=new Map();for(const _0x3b6b31 of _0x5eb051){const _0x170c57=N(_0x3b6b31);_0xb19175['set'](_0x3b6b31,_0x170c57),_0x2058ca['set'](_0x3b6b31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb19175,[],_0x2058ca);}['getData'](_0x1767ec,_0x4ac87f){if(this['_lastFrom']===_0x1767ec&&this['_lastTo']<=_0x4ac87f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4ac87f,!0x0);else{if(!this['_savedMetaData']['has'](_0x1767ec)){const _0x5ba619=this['_getPreviousFrom'](_0x1767ec);this['_calculateMetaData'](_0x5ba619,_0x1767ec,!0x1);}this['_calculateMetaData'](_0x1767ec,_0x4ac87f,!0x0);}return this['_lastFrom']=_0x1767ec,this['_lastTo']=_0x4ac87f,this['_getState']();}['loadState'](_0x375243){if(!this['_savedMetaData']['has'](_0x375243['fromVersion'])){const _0x29a719=this['_getPreviousFrom'](_0x375243['fromVersion']);this['_calculateMetaData'](_0x29a719,_0x375243['fromVersion'],!0x1);}this['_calculateMetaData'](_0x375243['fromVersion'],_0x375243['toVersion'],!0x1);const _0x2158ff=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x375243['fromVersion'],this['_lastTo']=_0x375243['toVersion'];for(const _0x171811 in _0x375243['diffData']){const _0x141907=_0x375243['diffData'][_0x171811]['attachChange'],_0x4b6b40=_0x558200(_0x375243['diffData'][_0x171811]['attributesBefore'])||{},_0x5c0f4f=_0x2158ff['_makeModelFromViewString'](_0x375243['diffData'][_0x171811]['deletions']);_0x5c0f4f['rootName']=_0x171811,_0x5c0f4f['_isAttached']=!_0x141907||!_0x141907['isAttached'],_0x5c0f4f['isAttached']=()=>_0x5c0f4f['_isAttached'],this['_baseRoots']['set'](_0x171811,_0x5c0f4f),this['_baseRootsAttributes']['set'](_0x171811,_0x4b6b40),_0x141907&&this['_touchedRoots']['set'](_0x171811,_0x141907);const _0x310157=this['_makeIdsRoot'](_0x5c0f4f);this['_baseIdsRoots']['set'](_0x171811,_0x310157);for(const [_0x33b0ac,_0x5a2350]of _0x5c0f4f['markers']){if(!_0x33b0ac['startsWith']('revision:'))continue;const _0x30e4b1=_0x33b0ac['split'](':')[0x2];for(const _0xba58e3 of _0x5a2350['getWalker']({'singleCharacters':!0x0})){const _0x4faf92=this['_getVidAttributeName'](_0xba58e3),_0x25bcba='elementEnd'==_0xba58e3['type']?_0xba58e3['previousPosition']['path']['slice'](0x0,-0x1):_0xba58e3['previousPosition']['path'],_0x4cabe6=_0x310157['getNodeByPath'](_0x25bcba)['getAttribute'](_0x4faf92);this['_touched']['set'](_0x4cabe6,{'userId':_0x30e4b1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x162bb9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4636fa=>!this['_touched']['has'](_0x4636fa));let _0x4017c8=0x0;const _0x1ec5c3=new Map();for(const _0x189f35 in _0x375243['diffData']){const _0x48e23d=_0x375243['diffData'][_0x189f35]['attachChange'],_0x11bd1e=_0x558200(_0x375243['diffData'][_0x189f35]['attributesAfter'])||{},_0x2d9588=_0x2158ff['_makeModelFromViewString'](_0x375243['diffData'][_0x189f35]['insertions']);_0x2d9588['rootName']=_0x189f35,_0x2d9588['_isAttached']=!_0x48e23d||_0x48e23d['isAttached'],_0x2d9588['isAttached']=()=>_0x2d9588['_isAttached'],this['_diffRoots']['set'](_0x189f35,_0x2d9588),this['_diffRootsAttributes']['set'](_0x189f35,_0x11bd1e);const _0x4c3818=this['_makeIdsRoot'](_0x2d9588,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x189f35,_0x4c3818),_0x1ec5c3['set'](_0x189f35,_0x2d9588['isAttached']()?_0x11bd1e:{});for(const [_0x3377b8,_0x165baa]of _0x2d9588['markers']){if(!_0x3377b8['startsWith']('revision:'))continue;const _0x416498=_0x3377b8['split'](':')[0x2];for(const _0x1e0d07 of _0x165baa['getWalker']({'singleCharacters':!0x0})){const _0x5b3214=this['_getVidAttributeName'](_0x1e0d07),_0xf6cd73=this['_revisionId']++,_0x196ceb='elementEnd'==_0x1e0d07['type']?_0x1e0d07['previousPosition']['path']['slice'](0x0,-0x1):_0x1e0d07['previousPosition']['path'];_0x4c3818['getNodeByPath'](_0x196ceb)['_setAttribute'](_0x5b3214,_0xf6cd73),this['_touched']['set'](_0xf6cd73,{'userId':_0x416498});}}for(const _0x53b6b6 of this['editor']['model']['createRangeIn'](_0x2d9588)['getWalker']({'singleCharacters':!0x0})){const _0x58d144=this['_getVidAttributeName'](_0x53b6b6),_0x315b8b='elementEnd'==_0x53b6b6['type']?_0x53b6b6['previousPosition']['path']['slice'](0x0,-0x1):_0x53b6b6['previousPosition']['path'],_0x30e0fa=_0x4c3818['getNodeByPath'](_0x315b8b);_0x30e0fa['getAttribute'](_0x58d144)>0x0||_0x30e0fa['_setAttribute'](_0x58d144,_0x162bb9[_0x4017c8++]);}for(const [_0x59a222,_0x273657]of _0x2d9588['markers'])_0x59a222['startsWith']('revision:')||this['_markers']['set'](_0x59a222,_0x273657);}const {roots:_0x2d2a57}=this['_savedMetaData']['get'](_0x375243['fromVersion']),{roots:_0x1a5883}=this['_savedMetaData']['get'](_0x375243['toVersion']),_0x13c60b=x(_0x2d2a57['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x13c60b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13c60b,Number['NEGATIVE_INFINITY']));const _0x450e70=x(_0x1a5883['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x450e70),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x450e70));const _0x5c307b=Array['from'](this['_diffRoots'])['map'](([_0x5c0310,_0x57f540])=>[_0x5c0310,x(_0x57f540)]);this['_saveMetaData'](this['_lastTo'],_0x5c307b,this['_markers'],_0x1ec5c3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d9d59,_0x3ea036,_0x567a5b,_0x1120de){const _0x53c633=new Map(_0x3ea036),_0x3803a9=new Map(_0x558200(_0x1120de)),_0x4b0eeb=new Map();for(const [_0x5c2b4c,_0x187b3c]of _0x567a5b)_0x4b0eeb['set'](_0x5c2b4c,{'start':_0x187b3c['start']['clone'](),'end':_0x187b3c['end']['clone'](),'rootName':_0x187b3c['root']['rootName']});this['_savedMetaData']['set'](_0x5d9d59,{'roots':_0x53c633,'markers':_0x4b0eeb,'rootsAttributes':_0x3803a9});}['_removeMetaData'](_0x49bd22){this['_savedMetaData']['delete'](_0x49bd22);}['_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'](_0x1d9557,_0x2792ef=null){let _0x25d1ea=null;_0x1d9557['is']('documentFragment')||(_0x25d1ea=new _0x36dcff(_0x1d9557['name'],{'vid_start':null===_0x2792ef?this['_revisionId']++:_0x2792ef++}));const _0x3992c=[];for(const _0x262e74 of _0x1d9557['getChildren']())if(_0x262e74['is']('element')){_0x3992c['push'](this['_makeIdsRoot'](_0x262e74,_0x2792ef));const _0x2acfd5=_0x3992c[_0x3992c['length']-0x1];null!==_0x2792ef&&(_0x2792ef=_0x2acfd5['is']('element','$text')?_0x2acfd5['getAttribute']('vid')+0x1:_0x2acfd5['getAttribute']('vid_end')+0x1);}else{for(let _0x1272d1=0x0;_0x1272d1<_0x262e74['offsetSize'];_0x1272d1++)_0x3992c['push'](new _0x36dcff('$text',{'vid':null===_0x2792ef?this['_revisionId']++:_0x2792ef++}));}if(_0x1d9557['is']('documentFragment')){const _0x2bafef=N(_0x1d9557['rootName']);return _0x2bafef['_insertChild'](0x0,_0x3992c),_0x2bafef;}return _0x25d1ea['_setAttribute']('vid_end',null===_0x2792ef?this['_revisionId']++:_0x2792ef++),_0x25d1ea['_insertChild'](0x0,_0x3992c),_0x25d1ea;}['_calculateMetaData'](_0x3c6f98,_0x45499d,_0x204e9a){this['_reset']();const {roots:_0x5e12f2,markers:_0x79abf6,rootsAttributes:_0x4b384f}=this['_savedMetaData']['get'](_0x3c6f98);this['_baseRoots']=new Map(_0x5e12f2),this['_baseRootsAttributes']=new Map(_0x558200(_0x4b384f));for(const [_0x12a1ff,_0x6a4ed0]of this['_baseRoots'])if('$graveyard'!==_0x12a1ff&&(this['_diffRoots']['set'](_0x12a1ff,x(_0x6a4ed0)),this['_diffRootsAttributes']=new Map(_0x558200(_0x4b384f)),_0x204e9a)){const _0x501a31=this['_revisionId'];this['_idsRoots']['set'](_0x12a1ff,this['_makeIdsRoot'](_0x6a4ed0)),this['_baseIdsRoots']['set'](_0x12a1ff,this['_makeIdsRoot'](_0x6a4ed0,_0x501a31));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x204e9a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x20202b,_0x44cff6]of _0x79abf6){const _0x764db6=this['_baseRoots']['get'](_0x44cff6['rootName']),_0x4682b6=this['_diffRoots']['get'](_0x44cff6['rootName']),_0x59a7b0=new _0x387fd5(this['_fixPosition'](_0x44cff6['start'],_0x764db6),this['_fixPosition'](_0x44cff6['end'],_0x764db6)),_0x1920f0=this['_fixRange'](_0x59a7b0,_0x4682b6);_0x764db6['markers']['set'](_0x20202b,_0x59a7b0),this['_markers']['set'](_0x20202b,_0x1920f0);}this['_applyOperations'](_0x3c6f98,_0x45499d,_0x204e9a);}['_applyOperations'](_0x5abbbf,_0x34eda4,_0x5cc8ee){for(const _0x1450f4 of this['source']['getOperations'](_0x5abbbf,_0x34eda4))this['_handleOperation'](_0x1450f4,_0x5cc8ee);for(const _0x23f33a of this['_diffRoots']['values']())_0x23f33a['markers']['clear']();for(const [_0x3e0b91,_0x1de566]of this['_markers']){this['_diffRoots']['get'](_0x1de566['root']['rootName'])['markers']['set'](_0x3e0b91,_0x1de566['clone']());}const _0x3c8450=new Map(),_0xaea94e=new Map();for(const [_0x23635d,_0x46da9a]of this['_diffRoots'])_0x3c8450['set'](_0x23635d,x(_0x46da9a)),_0xaea94e['set'](_0x23635d,this['_diffRootsAttributes']['get'](_0x23635d));this['_saveMetaData'](_0x34eda4,_0x3c8450,this['_markers'],_0xaea94e);}['_getPreviousFrom'](_0x3baf38){const _0x1cf097=Array['from'](this['_savedMetaData']['keys']());_0x1cf097['sort']((_0x44b720,_0x2ba50f)=>_0x44b720-_0x2ba50f),_0x1cf097['reverse']();for(const _0x1f0cd1 of _0x1cf097)if(_0x1f0cd1<_0x3baf38)return _0x1f0cd1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x14688d,_0x1388cc){const _0xc0ad29=Array['from'](_0x1388cc['markers'])['map'](([_0xb5c265,_0x5795b6])=>[_0xb5c265,this['_fixRange'](_0x5795b6,_0x14688d)]);_0x14688d['markers']=new Map(_0xc0ad29);}['_transformMarkers'](_0x2c2b13){for(const _0x4f256b of this['_markers']['values']()){const _0x42ec07=_0x4f256b['getTransformedByOperation'](_0x2c2b13),_0x51f90b=_0x387fd5['_createFromRanges'](_0x42ec07);_0x4f256b['start']=_0x51f90b['start'],_0x4f256b['end']=_0x51f90b['end'];}}['_handleOperation'](_0x2d4866,_0x1cc2d0){if('addRoot'!=_0x2d4866['type']&&'detachRoot'!=_0x2d4866['type']){if('insert'==_0x2d4866['type']){const _0x5a8a5c=_0x2d4866['position']['root']['rootName'];this['_diffRoots']['has'](_0x5a8a5c)||(this['_diffRoots']['set'](_0x5a8a5c,N(_0x5a8a5c,!0x0)),this['_diffRootsAttributes']['set'](_0x5a8a5c,{}),_0x1cc2d0&&this['_idsRoots']['set'](_0x5a8a5c,N(_0x5a8a5c,!0x0)));}else{if('addRootAttribute'==_0x2d4866['type']||'removeRootAttribute'==_0x2d4866['type']||'changeRootAttribute'==_0x2d4866['type'])return void this['_handleRootAttributeOperation'](_0x2d4866);'marker'==_0x2d4866['type']&&this['_handleMarkerOperation'](_0x2d4866);}if('marker'!==_0x2d4866['type']){const _0xabd5f2=this['_cloneOperation'](_0x2d4866,this['_diffRoots']);_0xabd5f2['_execute'](),this['_transformMarkers'](_0xabd5f2);}if(_0x1cc2d0)switch(_0x2d4866['type']){case'insert':this['_handleInsertOperation'](_0x2d4866);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d4866);break;case'merge':this['_handleMergeOperation'](_0x2d4866);break;case'split':this['_handleSplitOperation'](_0x2d4866);}}else this['_handleRootOperation'](_0x2d4866,_0x1cc2d0);}['_cloneOperation'](_0x24c6bc,_0x2b0622){const _0x13cfb8=_0x24c6bc['clone']();return _0x13cfb8['_authorId']=_0x24c6bc['_authorId'],this['_fixOperation'](_0x13cfb8,_0x2b0622),_0x13cfb8;}['_getBaseVids'](_0x55ad67){return _0x55ad67['map'](_0xd45905=>{const _0x1d7f1c=this['_getVidAttributeName'](_0xd45905);return Number(_0xd45905['item']['getAttribute'](_0x1d7f1c));});}['_generateTape'](_0x2c50c9,_0x90be9e){if(_0x2c50c9['is']('element','$text'))_0x90be9e['push']({'item':_0x2c50c9,'type':'text'});else{_0x2c50c9['is']('element')&&_0x90be9e['push']({'item':_0x2c50c9,'type':'elementStart'});for(const _0x2c6c9e of _0x2c50c9['getChildren']())this['_generateTape'](_0x2c6c9e,_0x90be9e);_0x2c50c9['is']('element')&&_0x90be9e['push']({'item':_0x2c50c9,'type':'elementEnd'});}return _0x90be9e;}['_getState'](){const _0x4a9829=new Map(this['_touched']),_0x401951=new Map(_0x4a9829),_0x729433=new Map(),_0x4712d9={'insertions':{},'deletions':{}},_0x4b789f={'insertions':{},'deletions':{}},_0x51ae17=new Map(),_0x3a0fbc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a0fbc['delete']('$graveyard');for(const _0x91fb of _0x3a0fbc){const _0x34c885=this['_diffRoots']['get'](_0x91fb)||N(_0x91fb,!0x1),_0x1c5c9f=this['_baseRoots']['get'](_0x91fb)||N(_0x91fb,!0x1);_0x34c885['isAttached']()||_0x1c5c9f['isAttached']()?(_0x4712d9['insertions'][_0x91fb]=x(_0x34c885),_0x4712d9['deletions'][_0x91fb]=x(_0x1c5c9f),this['_copyMarkers'](_0x4712d9['deletions'][_0x91fb],_0x1c5c9f),this['_copyMarkers'](_0x4712d9['insertions'][_0x91fb],_0x34c885),_0x4b789f['insertions'][_0x91fb]=this['_generateTape'](this['_idsRoots']['get'](_0x91fb),[]),_0x4b789f['deletions'][_0x91fb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x91fb)||N(_0x91fb,!0x1),[])):_0x3a0fbc['delete'](_0x91fb);}for(const _0x1cdcb7 of _0x3a0fbc){const _0x1296b2=_0x4b789f['insertions'][_0x1cdcb7];for(const _0x248bd6 of _0x1296b2){const _0x393be2=this['_getVidAttributeName'](_0x248bd6),_0x551f4c=_0x248bd6['item']['getAttribute'](_0x393be2);_0x401951['delete'](_0x551f4c),_0x551f4c>=this['_startingRevisionId']&&_0x729433['set'](_0x551f4c,_0x4a9829['get'](_0x551f4c));}}for(const _0x461b27 of _0x3a0fbc){const _0xa5efea=_0x4b789f['insertions'][_0x461b27],_0x123d5a=this['_getBaseVids'](_0x4b789f['deletions'][_0x461b27]);let _0x717538=0x0;for(const _0x10cc0f of _0xa5efea){const _0x18346d=this['_getVidAttributeName'](_0x10cc0f),_0x3331e6=_0x10cc0f['item']['getAttribute'](_0x18346d);if(!_0x729433['has'](_0x3331e6)&&!_0x51ae17['has'](_0x3331e6)){if(_0x401951['has'](_0x3331e6))_0x717538++;else{if(_0x3331e6!=_0x123d5a[_0x717538]){const _0x35ba4f=_0x4a9829['get'](_0x3331e6)||_0x4a9829['get'](_0x123d5a[_0x717538]);for(;_0x3331e6!=_0x123d5a[_0x717538];)_0x401951['has'](_0x123d5a[_0x717538])||(_0x51ae17['set'](_0x123d5a[_0x717538],_0x35ba4f),_0x4a9829['set'](_0x123d5a[_0x717538],_0x35ba4f)),_0x717538++;}_0x717538++;}}}}for(const _0x591eb5 of _0x3a0fbc){const _0x255b71=_0x4b789f['insertions'][_0x591eb5];for(const _0x166998 of _0x255b71){const _0x4fd706=this['_getVidAttributeName'](_0x166998),_0x45e15f=_0x166998['item']['getAttribute'](_0x4fd706);if(_0x51ae17['has'](_0x45e15f)){const _0x4de577=_0x51ae17['get'](_0x45e15f);_0x401951['has'](_0x45e15f)||_0x401951['set'](_0x45e15f,{..._0x4de577}),_0x729433['set'](_0x45e15f,{..._0x4de577});}}}for(const _0x4629c5 of _0x401951['keys']())_0x4629c5>=this['_startingRevisionId']&&_0x401951['delete'](_0x4629c5);const _0x47b9b0=new Map();for(const _0x26448d of _0x3a0fbc){let _0xa15ef1=_0x4b789f['insertions'][_0x26448d];for(const _0x1929d9 of _0xa15ef1)if(_0x1929d9['item']['is']('element','tableCell')){const _0x5972a3=this['_getVidAttributeName'](_0x1929d9),_0x5c7cdc=_0x1929d9['item']['getAttribute'](_0x5972a3);if(_0x729433['has'](_0x5c7cdc)){const _0x526634=_0x1929d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x4756bc=_0x47b9b0['get'](_0x526634)||new Set();_0x4756bc['add'](_0x729433['get'](_0x5c7cdc)['userId']),_0x47b9b0['set'](_0x526634,_0x4756bc);}}_0xa15ef1=_0x4b789f['deletions'][_0x26448d];for(const _0x57c529 of _0xa15ef1)if(_0x57c529['item']['is']('element','tableCell')){const _0x56bd7b=this['_getVidAttributeName'](_0x57c529),_0x97708c=_0x57c529['item']['getAttribute'](_0x56bd7b);if(_0x401951['has'](_0x97708c)){const _0x4a931e=_0x57c529['item']['parent']['parent']['getAttribute']('vid_start'),_0xfa1dba=_0x47b9b0['get'](_0x4a931e)||new Set();_0xfa1dba['add'](_0x401951['get'](_0x97708c)['userId']),_0x47b9b0['set'](_0x4a931e,_0xfa1dba);}}for(const _0x5ac651 of _0x47b9b0['keys']())(_0x729433['has'](_0x5ac651)||_0x401951['has'](_0x5ac651))&&_0x47b9b0['delete'](_0x5ac651);}for(const _0x13ee5d of _0x3a0fbc){const _0x3146ff=_0x4b789f['insertions'][_0x13ee5d];let _0x4caa02=null,_0x10e66b=null;for(const _0x1c4c2c of _0x3146ff){const _0x43caee=this['_getVidAttributeName'](_0x1c4c2c),_0x4f0ec4=_0x1c4c2c['item']['getAttribute'](_0x43caee),_0x2d527c=_0x47b9b0['get'](_0x4f0ec4);_0x2d527c&&'elementStart'==_0x1c4c2c['type']&&(_0x4caa02=Array['from'](_0x2d527c)[0x0],_0x10e66b=_0x1c4c2c['item']['getAttribute']('vid_end')),_0x4caa02&&(_0x401951['set'](_0x4f0ec4,{'userId':_0x4caa02}),_0x729433['set'](_0x4f0ec4,{'userId':_0x4caa02})),_0x4f0ec4==_0x10e66b&&(_0x4caa02=null,_0x10e66b=null);}}const _0x3ee884={},_0x438f18=new Set();for(const _0x823f50 of _0x3a0fbc){const _0x2a4650=_0x4712d9['deletions'][_0x823f50],_0x205ee9=_0x4712d9['insertions'][_0x823f50];for(const {userId:_0x418485}of this['_touchedMarkers']['values']())null!==_0x418485&&_0x438f18['add'](_0x418485);for(const {userId:_0x194117}of this['_touchedRoots']['values']())null!==_0x194117&&_0x438f18['add'](_0x194117);this['_markChanges'](_0x205ee9,_0x4b789f['insertions'][_0x823f50],_0x729433,'insertion',_0x438f18),this['_markChanges'](_0x2a4650,_0x4b789f['deletions'][_0x823f50],_0x401951,'deletion',_0x438f18),_0x3ee884[_0x823f50]={'insertions':this['_prepareViewToSave'](_0x205ee9),'deletions':this['_prepareViewToSave'](_0x2a4650),'attachChange':this['_touchedRoots']['get'](_0x823f50)||null,'attributesBefore':_0x558200(this['_baseRootsAttributes']['get'](_0x823f50))||{},'attributesAfter':_0x558200(this['_diffRootsAttributes']['get'](_0x823f50))};}return{'diffData':_0x3ee884,'authorsIds':Array['from'](_0x438f18)};}['_processRootBeforeSave'](_0x4f9d5d){for(const [,_0x3864e9]of _0x4f9d5d['markers']){const _0x1127dc=_0x3864e9['start']['getAncestors']()['filter'](_0x5192e6=>'tableCell'==_0x5192e6['name']);for(const _0x549edb of _0x1127dc)0x1==_0x549edb['childCount']&&_0x549edb['getChild'](0x0)['is']('element','paragraph')&&_0x549edb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x16bed6){this['_processRootBeforeSave'](_0x16bed6);const _0x39f583=this['editor']['data']['toView'](_0x16bed6,{}),_0x2bb6bc=Array['from'](_0x39f583['getChildren']())['map'](_0x4c2551=>this['_getViewJson'](_0x4c2551));return JSON['stringify'](_0x2bb6bc);}['_getViewJson'](_0x252c06){if(_0x252c06['is']('$text'))return _0x252c06['data'];{const _0x422ceb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x18b571=_0x252c06,_0x34cf00=this['editor']['data']['htmlProcessor']['domConverter'],_0x5dec54={'type':_0x422ceb['_getTypeCharForViewElement'](_0x18b571),'name':_0x18b571['name'],'attributes':Array['from'](_0x18b571['getAttributes']()),'children':Array['from'](_0x18b571['getChildren']())['map'](_0x547266=>this['_getViewJson'](_0x547266))};if(_0x252c06['is']('uiElement')&&'$comment'!=_0x252c06['name']){const _0xc6057b=_0x252c06['render'](_0x34cf00['domDocument'],_0x34cf00);_0x5dec54['children']['push'](_0xc6057b['outerHTML']);}else{if(_0x252c06['is']('rawElement')){const _0x5002d7=_0x34cf00['domDocument']['createElement'](_0x18b571['name']);_0x252c06['render'](_0x5002d7,_0x34cf00),_0x5dec54['children']['push'](_0x5002d7['innerHTML']);}}const _0x1c76d4=Array['from'](_0x18b571['getCustomProperties']());_0x1c76d4['length']>0x0&&(_0x5dec54['customProperties']=_0x1c76d4);const _0x1ca2ed=_0x18b571['getFillerOffset']();return null!==_0x1ca2ed&&(_0x5dec54['fillerOffset']=_0x1ca2ed),_0x5dec54;}}['_markChanges'](_0x3f1cf7,_0x2471b9,_0x3d4960,_0xfe562f,_0x357be2){let _0x57dd49=null,_0xe9ea07=null,_0x5e3f08=0x0;const _0x310417=this['editor']['model'];for(let _0x5d2c93=0x0;_0x5d2c93<_0x2471b9['length'];_0x5d2c93++){const _0xa0629b=this['_getVidAttributeName'](_0x2471b9[_0x5d2c93]),_0x36226b=_0x2471b9[_0x5d2c93]['item']['getAttribute'](_0xa0629b),_0x5954a3=_0x3d4960['get'](_0x36226b),_0x4018ea=_0x5d2c93==_0x2471b9['length']-0x1;(!_0x57dd49&&_0x5954a3&&(_0x57dd49=_0x5954a3,_0xe9ea07=_0x2471b9[_0x5d2c93]),_0x57dd49&&(!_0x5954a3||_0x5954a3['userId']!=_0x57dd49['userId']))&&(_0x5a7590(_0x5954a3,P(_0xe9ea07,_0x3f1cf7,_0x310417),P(_0x2471b9[_0x5d2c93],_0x3f1cf7,_0x310417)),_0x57dd49=_0x5954a3||null,_0xe9ea07=_0x5954a3?_0x2471b9[_0x5d2c93]:null),_0x57dd49&&_0x4018ea&&_0x5a7590(_0x5954a3,P(_0xe9ea07,_0x3f1cf7,_0x310417),V(_0x2471b9[_0x5d2c93],_0x3f1cf7,_0x310417));}function _0x5a7590(_0xe23c0c,_0x2ab4cb,_0x2c30dc){const _0x594341=_0x57dd49['userId'],_0x2674ed='revision:'+_0xfe562f+':'+_0x594341+':'+_0x5e3f08++,_0x2e380e=_0x310417['createRange'](_0x2ab4cb,_0x2c30dc);_0x3f1cf7['markers']['set'](_0x2674ed,_0x2e380e),null!==_0x594341&&_0x357be2['add'](_0x594341);}}['_getVidAttributeName'](_0x50738d){switch(_0x50738d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xd73c51,_0x38f1ab){_0xd73c51['baseVersion']=null;for(const _0x1db48f in _0xd73c51){const _0x10892a=_0xd73c51[_0x1db48f];if(_0x10892a instanceof _0x1717c5){const _0x3a3df5=_0x38f1ab['get'](_0x10892a['root']['rootName']);_0xd73c51[_0x1db48f]=this['_fixPosition'](_0x10892a,_0x3a3df5);}if(_0x10892a instanceof _0x387fd5){const _0x119357=_0x38f1ab['get'](_0x10892a['root']['rootName']);_0xd73c51[_0x1db48f]=this['_fixRange'](_0x10892a,_0x119357);}'root'===_0x1db48f&&(_0xd73c51['root']=_0x38f1ab['get'](_0xd73c51['root']['rootName']));}}['_fixRange'](_0xf10375,_0x30ed07){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf10375['start'],_0x30ed07),this['_fixPosition'](_0xf10375['end'],_0x30ed07));}['_fixPosition'](_0x3a4484,_0x406c75){return this['editor']['model']['createPositionFromPath'](_0x406c75,_0x3a4484['path'],_0x3a4484['stickiness']);}['_handleInsertOperation'](_0x47a809){const _0x43d11b=this['_idsRoots']['get'](_0x47a809['position']['root']['rootName']),_0x2edef9=this['_fixPosition'](_0x47a809['position'],_0x43d11b),_0x3b334c=null===_0x47a809['_authorId']?null:_0x47a809['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21d293=_0x2edef9['parent'],_0x444f28=this['_revisionId'],_0x44d74e=[];for(const _0x5001ad of _0x47a809['nodes'])if(_0x5001ad['is']('element'))_0x44d74e['push'](this['_makeIdsRoot'](_0x5001ad));else{for(let _0x4e35c1=0x0;_0x4e35c1<_0x5001ad['offsetSize'];_0x4e35c1++)_0x44d74e['push'](new _0x36dcff('$text',{'vid':this['_revisionId']++}));}const _0x551339=this['_revisionId'];for(let _0x3f1dd1=_0x444f28;_0x3f1dd1<_0x551339;_0x3f1dd1++)this['_touched']['set'](_0x3f1dd1,{'userId':_0x3b334c});_0x21d293['_insertChild'](_0x2edef9['offset'],_0x44d74e);}['_handleMoveOperation'](_0x3b425e){(_0x3b425e=this['_cloneOperation'](_0x3b425e,this['_idsRoots']))['_execute']();const _0x139491=null===_0x3b425e['_authorId']?null:_0x3b425e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x317f8d=_0x3b425e['getMovedRangeStart'](),_0x23a3a0=_0x317f8d['parent'],_0x5972ac=_0x317f8d['offset'];!function _0x21bb64(_0x22cce4,_0x5545f2,_0x290e41,_0x938e89){for(let _0x79b9a2=_0x290e41;_0x79b9a2<_0x938e89;_0x79b9a2++){const _0x1c8a8a=_0x5545f2['getChild'](_0x79b9a2);_0x1c8a8a['is']('element','$text')?_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid'),{'userId':_0x139491}):(_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid_start'),{'userId':_0x139491}),_0x21bb64(_0x22cce4,_0x1c8a8a,0x0,_0x1c8a8a['childCount']),_0x22cce4['set'](_0x1c8a8a['getAttribute']('vid_end'),{'userId':_0x139491}));}}(this['_touched'],_0x23a3a0,_0x5972ac,_0x5972ac+_0x3b425e['howMany']);}['_handleMergeOperation'](_0x58d468){const _0x2a21c7=null===(_0x58d468=this['_cloneOperation'](_0x58d468,this['_idsRoots']))['_authorId']?null:_0x58d468['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2c5e=_0x58d468['targetPosition']['parent'],_0x503c75=_0x58d468['sourcePosition']['parent'],_0x1a4f7a=_0x4b2c5e['getAttribute']('vid_end'),_0x2154a4=_0x503c75['getAttribute']('vid_start');_0x4b2c5e['_setAttribute']('vid_end',_0x503c75['getAttribute']('vid_end')),_0x503c75['_setAttribute']('vid_end',_0x1a4f7a),this['_touched']['set'](_0x2154a4,{'userId':_0x2a21c7}),this['_touched']['set'](_0x1a4f7a,{'userId':_0x2a21c7}),_0x58d468['_execute']();}['_handleSplitOperation'](_0x36e8d4){const _0x2d0023=null===(_0x36e8d4=this['_cloneOperation'](_0x36e8d4,this['_idsRoots']))['_authorId']?null:_0x36e8d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b22f4=_0x36e8d4['graveyardPosition'],_0x988dea=_0x36e8d4['splitPosition']['parent'];_0x36e8d4['_execute']();const _0x442e7b=_0x988dea['getAttribute']('vid_end'),_0x139a72=_0x36e8d4['insertionPosition']['nodeAfter'];if(_0x4b22f4){const _0x161ea4=_0x139a72['getAttribute']('vid_end'),_0x135943=_0x988dea['getAttribute']('vid_end');_0x988dea['_setAttribute']('vid_end',_0x161ea4),_0x139a72['_setAttribute']('vid_end',_0x135943),this['_touched']['set'](_0x988dea['getAttribute']('vid_end'),{'userId':_0x2d0023}),this['_touched']['set'](_0x139a72['getAttribute']('vid_start'),{'userId':_0x2d0023});}else{const _0x124746=this['_revisionId']++,_0x345e29=this['_revisionId']++;_0x988dea['_setAttribute']('vid_end',_0x124746),_0x139a72['_setAttribute']('vid_start',_0x345e29),_0x139a72['_setAttribute']('vid_end',_0x442e7b),this['_touched']['set'](_0x124746,{'userId':_0x2d0023}),this['_touched']['set'](_0x345e29,{'userId':_0x2d0023});}}['_handleMarkerOperation'](_0x4303ae){if(!_0x4303ae['affectsData'])return;const _0x4035f0=(_0x4303ae=this['_cloneOperation'](_0x4303ae,this['_diffRoots']))['oldRange']?_0x4303ae['oldRange']['root']:null,_0x1d9af8=_0x4303ae['newRange']?_0x4303ae['newRange']['root']:null;_0x4035f0&&this['_markers']['delete'](_0x4303ae['name']),_0x1d9af8&&this['_markers']['set'](_0x4303ae['name'],_0x4303ae['newRange']['clone']());const _0x56dde3=null===_0x4303ae['_authorId']?null:_0x4303ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38ac6d=_0x4303ae['name'];if(!this['_touchedMarkers']['has'](_0x38ac6d))return void this['_touchedMarkers']['set'](_0x38ac6d,{'range':_0x4303ae['oldRange'],'userId':_0x56dde3});const _0x5b2fd9=this['_touchedMarkers']['get'](_0x38ac6d),_0x40ee8d=_0x5b2fd9['range'],_0x424218=_0x4303ae['newRange'];null==_0x40ee8d&&null==_0x424218||_0x40ee8d&&_0x424218&&_0x40ee8d['isEqual'](_0x424218)?this['_touchedMarkers']['delete'](_0x4303ae['name']):_0x5b2fd9['userId']=_0x56dde3;}['_handleRootOperation'](_0x4f546b,_0x376e32){this['_diffRoots']['has'](_0x4f546b['rootName'])?this['_diffRoots']['get'](_0x4f546b['rootName'])['_isAttached']=_0x4f546b['isAdd']:(this['_diffRoots']['set'](_0x4f546b['rootName'],N(_0x4f546b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4f546b['rootName'],{}),_0x376e32&&this['_idsRoots']['set'](_0x4f546b['rootName'],N(_0x4f546b['rootName'],!0x0)));const _0x513af7=null===_0x4f546b['_authorId']?null:_0x4f546b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b536a=this['_touchedRoots']['get'](_0x4f546b['rootName']);_0x1b536a&&_0x1b536a['userId']===_0x513af7?this['_touchedRoots']['delete'](_0x4f546b['rootName']):this['_touchedRoots']['set'](_0x4f546b['rootName'],{'userId':_0x513af7,'isAttached':_0x4f546b['isAdd']});}['_handleRootAttributeOperation'](_0x13ffbf){const _0x22c1ac=this['_diffRootsAttributes']['get'](_0x13ffbf['root']['rootName']);null===_0x13ffbf['newValue']?delete _0x22c1ac[_0x13ffbf['key']]:_0x22c1ac[_0x13ffbf['key']]=_0x13ffbf['newValue'];}}function x(_0x6842fd){const _0x44ba56=N(_0x6842fd['rootName'],_0x6842fd['isAttached']());for(const _0x2abbc0 of _0x6842fd['getChildren']()){const _0x4cc169=_0x2abbc0['_clone'](!0x0);_0x44ba56['_appendChild'](_0x4cc169);}return _0x44ba56;}function N(_0x33a8b1,_0x3f61af=!0x0){const _0x15a146=new _0x3247af();return _0x15a146['rootName']=_0x33a8b1,_0x15a146['_isAttached']=_0x3f61af,_0x15a146['isAttached']=()=>_0x15a146['_isAttached'],_0x15a146;}function P(_0x37ef99,_0xef7c3a,_0x34ef26){const _0x3612b7='elementEnd'==_0x37ef99['type']?_0x34ef26['createPositionAt'](_0x37ef99['item'],'end'):_0x34ef26['createPositionBefore'](_0x37ef99['item']);return _0x34ef26['createPositionFromPath'](_0xef7c3a,_0x3612b7['path'],_0x3612b7['stickiness']);}function V(_0x41ad96,_0x4a8e4f,_0x175886){const _0x2af03d='elementStart'==_0x41ad96['type']?_0x175886['createPositionAt'](_0x41ad96['item'],0x0):_0x175886['createPositionAfter'](_0x41ad96['item']);return _0x175886['createPositionFromPath'](_0x4a8e4f,_0x2af03d['path'],_0x2af03d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x5dfdee(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x20bacc){super(),this['id']=_0x20bacc['id']||_0x5c7d64(),this['author']=_0x20bacc['author'],this['type']=_0x20bacc['type'],this['data']=_0x20bacc['data']||{},this['rootName']=_0x20bacc['rootName'],this['set']('createdAt',_0x20bacc['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(_0x5c7855,_0x3c0555){this['newRevisionId']=_0x5c7855,this['oldRevisionId']=_0x3c0555,this['changes']=new _0x56bfbf();}['_setChanges'](_0x4fd028){for(const _0x545350 of _0x4fd028)this['changes']['add'](_0x545350);}}class l extends _0x225e65{['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[_0x19dc8a,_0x2b89fa,S,$];}constructor(_0x2f31b8){super(_0x2f31b8),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',(_0x51b3fa,_0x5eddd8,_0x22a418)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xf00734=>{for(const _0x2ba70b of this['editor']['editing']['view']['document']['roots'])_0x22a418?_0xf00734['removeClass']('ck-editor__editable__overlay',_0x2ba70b):_0xf00734['addClass']('ck-editor__editable__overlay',_0x2ba70b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1fc8fe=>null!==_0x1fc8fe),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4c6f40,_0x56f0c6,_0x37c7a5)=>_0x4c6f40&&_0x37c7a5?_0x56f0c6['changes']['getIndex'](_0x37c7a5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x444678,_0x20c3ce)=>_0x444678?_0x20c3ce['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2b89fa);}['init'](){const _0x438ed0=this['editor'],_0x4e336f=new rt(_0x438ed0,{'direction':'backward'}),_0x165765=new rt(_0x438ed0,{'direction':'forward'});(_0x438ed0['commands']['add']('showPreviousChange',_0x4e336f),_0x438ed0['commands']['add']('showNextChange',_0x165765),_0x438ed0['commands']['add']('restoreRevision',new nt(_0x438ed0)),this['on']('change:numberOfChanges',()=>{_0x4e336f['refresh'](),_0x165765['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x438ed0['enableReadOnlyMode']('revision-viewer'),_0x438ed0['plugins']['has']('WidgetToolbarRepository'))&&_0x438ed0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x306f0a){return await this['_utils']['loadRevisionData'](_0x306f0a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x306f0a);}async['getRevisionRootsAttributes'](_0x2cfa14){return await this['_utils']['loadRevisionData'](_0x2cfa14,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2cfa14);}async['compare'](_0x55e756,_0x4dcba7,_0x21e030=!0x1){if(!this['isEnabled'])return;const _0x3c6b5b=this['diff'],_0x426bec=this['repository'],_0x3efbaf='string'==typeof _0x55e756?_0x426bec['getRevision'](_0x55e756):_0x55e756,_0xa8403c='string'==typeof _0x4dcba7?_0x426bec['getRevision'](_0x4dcba7):_0x4dcba7,_0x2eb4b4=_0x3efbaf['id'],_0x311ff0=_0xa8403c?_0xa8403c['id']:null;if(!_0x21e030&&this['diff']&&this['diff']['newRevisionId']===_0x2eb4b4&&this['diff']['oldRevisionId']===_0x311ff0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2eb4b4,_0x311ff0);const _0x1a7780=this['_getRevisionsRange'](_0x3efbaf,_0xa8403c,!0x0)['map'](_0x49e419=>this['_utils']['loadRevisionData'](_0x49e419,this['adapter']));return _0x1a7780['push'](new Promise(_0x3b2643=>{setTimeout(_0x3b2643,0x14);})),Promise['all'](_0x1a7780)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1ed0d6=this['_getDiff'](_0x2eb4b4,_0x311ff0);for(const _0xf6536f of _0x1ed0d6['changes'])this['_changeIdToChange']['set'](_0xf6536f['id'],_0xf6536f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21ff24=>{for(const _0x20babc of this['editor']['model']['document']['getRootNames']())_0x21ff24['detachRoot'](_0x20babc);for(const _0x5537b2 of Object['keys'](_0x1ed0d6['model'])){const _0x2d4cf4=_0x21ff24['addRoot'](_0x5537b2);for(const _0x263024 of Object['keys'](_0x1ed0d6['attributes'][_0x5537b2]))_0x21ff24['setAttribute'](_0x263024,_0x1ed0d6['attributes'][_0x5537b2][_0x263024],_0x2d4cf4);_0x21ff24['insert'](_0x1ed0d6['model'][_0x5537b2],_0x2d4cf4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1ed0d6['changes'])),this['isReady']=!0x0;})['catch'](_0x514545=>{console['error'](_0x514545),this['_cleanUp'](),_0x3c6b5b&&(this['diff']=_0x3c6b5b),this['isReady']=!0x0;});}['addRevisionData'](_0x3bd56a,_0x1cb3a8){const _0x4e0f73=this['repository']['createRevision'](_0x3bd56a);return _0x4e0f73['on']('_update',(_0x1aa3cc,_0x4a6931,_0x2a4003)=>_0x1cb3a8(_0x4a6931,_0x2a4003,_0x4e0f73)),this['repository']['addRevision'](_0x4e0f73),_0x4e0f73;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15a449=>{for(const _0x468c21 of this['editor']['model']['document']['getRootNames']())_0x15a449['detachRoot'](_0x468c21);});}['_sortAndFilterDiffChanges'](_0x335901){const _0x3a8095=[],_0x51f137=new Map();for(const _0x16c1e8 of this['editor']['model']['document']['getRootNames']()){const _0x3fa8c0=this['editor']['editing']['view']['getDomRoot'](_0x16c1e8);if(!_0x3fa8c0)continue;const _0x2000e9=_0x3fa8c0['getClientRects']()['item'](0x0);_0x2000e9&&(_0x3a8095['push'](_0x16c1e8),_0x51f137['set'](_0x16c1e8,_0x2000e9));}return _0x3a8095['sort']((_0x1e48c1,_0x5432e7)=>{const _0x595921=_0x51f137['get'](_0x1e48c1),_0x339348=_0x51f137['get'](_0x5432e7);return _0x595921['y']-_0x339348['y']||_0x595921['x']-_0x339348['x'];}),(_0x335901=_0x335901['filter'](_0xa1adef=>_0x3a8095['includes'](_0xa1adef['rootName'])))['sort']((_0x397f77,_0x27c4a0)=>_0x3a8095['indexOf'](_0x397f77['rootName'])-_0x3a8095['indexOf'](_0x27c4a0['rootName'])),_0x335901;}['_makeTape'](_0x30ceb3){const _0x177613=Array['from'](_0x30ceb3['markers'])['filter'](([_0x3aa8ce,_0x672eea])=>_0x3aa8ce['startsWith']('revision:')&&!_0x672eea['isCollapsed']),_0x3677c0=Array['from'](this['editor']['model']['createRangeIn'](_0x30ceb3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x177613['length'])for(const _0x4a91b3 of _0x3677c0){const [_0x30380e,_0x171f2b]=_0x177613[0x0],[,_0x450f84,_0x5b5070]=_0x30380e['split'](':');if(_0x171f2b['end']['isEqual'](_0x4a91b3['nextPosition'])&&_0x177613['shift'](),(_0x4a91b3['previousPosition']['isEqual'](_0x171f2b['start'])||_0x4a91b3['previousPosition']['isAfter'](_0x171f2b['start']))&&('insertion'==_0x450f84?_0x4a91b3['isAdded']={'userId':_0x5b5070}:'deletion'==_0x450f84&&(_0x4a91b3['isRemoved']={'userId':_0x5b5070})),0x0==_0x177613['length'])break;}return _0x3677c0;}['_refreshStartEndIndex'](_0x4a260e){const _0x51c4fc=new Map();for(let _0x34e91a=0x0;_0x34e91a<_0x4a260e['length'];_0x34e91a++)'text'===_0x4a260e[_0x34e91a]['type']?(_0x4a260e[_0x34e91a]['item']['startIndex']=_0x34e91a,_0x4a260e[_0x34e91a]['item']['endIndex']=_0x34e91a):('elementStart'===_0x4a260e[_0x34e91a]['type']?_0x4a260e[_0x34e91a]['item']['startIndex']=_0x34e91a:'elementEnd'===_0x4a260e[_0x34e91a]['type']&&(_0x4a260e[_0x34e91a]['item']['endIndex']=_0x34e91a),_0x51c4fc['set'](_0x4a260e[_0x34e91a]['id'],_0x34e91a));for(const _0x123396 of _0x51c4fc['values']())'elementStart'===_0x4a260e[_0x123396]['type']?_0x4a260e[_0x123396]['item']['endIndex']=_0x51c4fc['get'](_0x4a260e[_0x123396]['pairId']):'elementEnd'===_0x4a260e[_0x123396]['type']&&(_0x4a260e[_0x123396]['item']['startIndex']=_0x51c4fc['get'](_0x4a260e[_0x123396]['pairId']));}['_processTape'](_0x288500){for(let _0x14eb20=0x0;_0x14eb20<_0x288500['length'];_0x14eb20++){if('elementStart'===_0x288500[_0x14eb20]['type'])_0x288500[_0x14eb20]['item']['startIndex']=_0x14eb20;else{if('elementEnd'===_0x288500[_0x14eb20]['type']){_0x288500[_0x14eb20]['item']['endIndex']=_0x14eb20;const _0x4ce50d=_0x288500[_0x14eb20]['item']['startIndex'];_0x288500[_0x4ce50d]['pairId']=_0x288500[_0x14eb20]['id'],_0x288500[_0x14eb20]['pairId']=_0x288500[_0x4ce50d]['id'];}else _0x288500[_0x14eb20]['item']['startIndex']=_0x14eb20,_0x288500[_0x14eb20]['item']['endIndex']=_0x14eb20,_0x288500[_0x14eb20]['pairId']=null;}_0x288500[_0x14eb20]['markersStart']||(_0x288500[_0x14eb20]['markersStart']=[],_0x288500[_0x14eb20]['markersEnd']=[]);}}['_markInsertions'](_0x22cdab,_0x5d7c35){const _0x4638c2=_0x22cdab['filter'](_0x2f0a6a=>!_0x2f0a6a['isAdded']);for(let _0x5e9b8d=0x0;_0x5e9b8d<_0x5d7c35['length'];_0x5e9b8d++)_0x5d7c35[_0x5e9b8d]['isAdded']&&(_0x4638c2[_0x5e9b8d]['isAdded']=_0x5d7c35[_0x5e9b8d]['isAdded']);}['_getDiff'](_0x1ef16b,_0x1fc415=null){const _0x2e5ab7=this['repository']['getRevision'](_0x1ef16b),_0x198982=_0x1fc415?this['repository']['getRevision'](_0x1fc415):null,_0x4ee09f=this['_getRevisionsRange'](_0x2e5ab7,_0x198982),_0x3b2584=_0x4ee09f[_0x4ee09f['length']-0x1],_0x4faa3=new Map(),_0x873c01={'model':{},'attributes':{},'changes':[]},_0x11123c=new Set(),_0x360000=new Map();for(let _0x1c57bb=_0x4ee09f['length']-0x1;_0x1c57bb>=0x0;_0x1c57bb--){const _0x549500=_0x4ee09f[_0x1c57bb];for(const _0x521710 of Object['keys'](_0x549500['diffData']))if(_0x549500['diffData'][_0x521710]['attachChange']){const _0x5ef99f=_0x549500['diffData'][_0x521710]['attachChange'];_0x5ef99f['isAttached']?(_0x11123c['add'](_0x521710),_0x360000['has'](_0x521710)&&_0x360000['get'](_0x521710)['userId']==_0x5ef99f['userId']?_0x360000['delete'](_0x521710):_0x360000['set'](_0x521710,_0x5ef99f)):_0x360000['has'](_0x521710)?(_0x11123c['delete'](_0x521710),_0x360000['delete'](_0x521710)):(_0x11123c['add'](_0x521710),_0x360000['set'](_0x521710,_0x5ef99f));}else _0x11123c['add'](_0x521710);}for(const _0x7a01ee of _0x11123c){const _0x1b115e=_0x360000['has'](_0x7a01ee)&&!_0x360000['get'](_0x7a01ee)['isAttached'];let _0x11c507=_0x1b115e?_0x4ee09f['length']-0x1:0x0;const _0x4f5e84=_0x1b115e?-0x1:0x1;for(;_0x4ee09f[_0x11c507];){const _0x1728a6=_0x4ee09f[_0x11c507];if(_0x1728a6['diffData'][_0x7a01ee]){const _0x1a8e0a=_0x1b115e?_0x1728a6['diffData'][_0x7a01ee]['attributesBefore']:_0x1728a6['diffData'][_0x7a01ee]['attributesAfter'];_0x873c01['attributes'][_0x7a01ee]=_0x1a8e0a?_0x558200(_0x1a8e0a):{};break;}_0x11c507+=_0x4f5e84;}}for(const _0x10b6ce of _0x4ee09f){_0x10b6ce['model']={};for(const _0x4748c4 of _0x10b6ce['authors'])_0x4faa3['set'](_0x4748c4['id'],_0x4748c4);for(const _0x45b258 of _0x11123c){const _0x3c1d8d=_0x10b6ce['diffData'][_0x45b258]?_0x10b6ce['diffData'][_0x45b258]['insertions']:'[]',_0x1224f2=_0x10b6ce['diffData'][_0x45b258]?_0x10b6ce['diffData'][_0x45b258]['deletions']:'[]';_0x10b6ce['model'][_0x45b258]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3c1d8d),'deletions':this['_utils']['_makeModelFromViewString'](_0x1224f2)};}}for(const _0x2e700b of _0x11123c){let _0x22348a=null,_0x360407=0x0;const _0xd8ee65=new Map(Array['from'](_0x2e5ab7['model'][_0x2e700b]['insertions']['markers'])['filter'](([_0xc1d787])=>!_0xc1d787['startsWith']('revision:')));let _0x37a635=0x0;for(const _0x6d26df of _0x4ee09f){const _0x16600d=this['_makeTape'](_0x6d26df['model'][_0x2e700b]['insertions']);_0x6d26df==_0x2e5ab7?(_0x22348a=_0x16600d,_0x360407=_0x22348a['length'],_0x22348a['forEach'](_0x5eb788=>{_0x5eb788['id']=_0x37a635++;}),this['_processTape'](_0x22348a)):this['_markInsertions'](_0x22348a,_0x16600d);const _0x4843fb=_0x22348a['filter'](_0x468a01=>!_0x468a01['isAdded'])['map'](_0x5215fc=>_0x5215fc['id']);let _0x322cdb=0x0;const _0x9bf50e=this['_makeTape'](_0x6d26df['model'][_0x2e700b]['deletions']);_0x9bf50e['forEach'](_0x7c4254=>{_0x7c4254['isRemoved']?_0x7c4254['id']=_0x360407++:_0x7c4254['id']=_0x4843fb[_0x322cdb++];}),this['_processTape'](_0x9bf50e),this['_setDistance'](_0x22348a,'isAdded'),this['_setDistance'](_0x9bf50e,'isRemoved'),_0x6d26df==_0x2e5ab7&&this['_markMarkers'](_0x22348a,_0xd8ee65),_0x22348a=this['_joinTapes'](_0x22348a,_0x9bf50e),this['_refreshStartEndIndex'](_0x22348a),this['_setDistance'](_0x22348a,'isRemoved');}_0x22348a=_0x22348a['filter'](_0x493586=>!(_0x493586['isAdded']&&_0x493586['isRemoved']));const _0x85f9c8=new Map(_0x3b2584['model'][_0x2e700b]['deletions']['markers']),_0x4f9339=new Set(_0xd8ee65['keys']());for(const _0x1e4f7f of _0x85f9c8['keys']())_0x4f9339['delete'](_0x1e4f7f);this['_markSuggestions'](_0x22348a,_0x4f9339),this['_fixObsoleteTags'](_0x22348a),_0x22348a=this['_removeMissingPairs'](_0x22348a),_0x22348a=this['_markMismatchedRemovedTags'](_0x22348a),_0x22348a=this['_removeUnsupportedChanges'](_0x22348a);const {root:_0x41d2a8,changes:_0x2727ac}=this['_makeModelFromTape'](_0x22348a,_0x4faa3,_0x2e700b);_0x873c01['model'][_0x2e700b]=_0x41d2a8;const _0x3f924d=_0x360000['get'](_0x2e700b);if(_0x3f924d){const _0x5e3974=_0x4faa3['get'](_0x3f924d['userId']),_0x118f01=new G({'author':_0x5e3974,'type':_0x3f924d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e700b});_0x2727ac['unshift'](_0x118f01),_0x873c01['attributes'][_0x2e700b]['revisionHistoryAttachChange']=_0x118f01['id'];}_0x873c01['changes']=_0x873c01['changes']['concat'](_0x2727ac);}return _0x873c01;}['_markMarkers'](_0x31e5c9,_0x184cf8){for(let _0x236559=0x0;_0x236559<_0x31e5c9['length'];_0x236559++)for(const [_0xe9b4b6,_0x569a1a]of _0x184cf8)!_0x569a1a['isCollapsed']&&_0x569a1a['start']['isEqual'](_0x31e5c9[_0x236559]['previousPosition'])&&_0x31e5c9[_0x236559]['markersStart']['push'](_0xe9b4b6),_0x569a1a['end']['isEqual'](_0x31e5c9[_0x236559]['nextPosition'])&&_0x31e5c9[_0x236559]['markersEnd']['push'](_0xe9b4b6);}['_joinTapes'](_0x54782f,_0x351c30){let _0x2db97c=[],_0x42c0ce=0x0,_0x425e75=0x0;for(;_0x42c0ce<_0x54782f['length']||_0x425e75<_0x351c30['length'];){const _0xa028b9=_0x54782f[_0x42c0ce]||{},_0x502de1=_0x351c30[_0x425e75]||{};if(_0xa028b9['id']==_0x502de1['id'])_0x42c0ce++,_0x425e75++,_0x2db97c['push'](_0xa028b9);else{if(_0x502de1['isRemoved']&&_0xa028b9['isAdded']){const {commonTape:_0x355a09,iEnd:_0x4791c5,jEnd:_0x2def0b}=this['_threeWayMerge'](_0x54782f,_0x42c0ce,_0x351c30,_0x425e75);_0x2db97c=_0x2db97c['concat'](_0x355a09),_0x42c0ce=_0x4791c5,_0x425e75=_0x2def0b;}else _0x502de1['isRemoved']?(_0x425e75++,_0x2db97c['push'](_0x502de1)):(_0x42c0ce++,_0x2db97c['push'](_0xa028b9));}}return _0x2db97c;}['_markSuggestions'](_0xd4d1ac,_0x4de917){const _0x19add2=[];for(let _0x59722b=0x0;_0x59722b<_0xd4d1ac['length'];_0x59722b++){for(let _0x52af3f=0x0;_0x52af3f<_0xd4d1ac[_0x59722b]['markersStart']['length'];_0x52af3f++){const _0x4959b5=_0xd4d1ac[_0x59722b]['markersStart'][_0x52af3f];if(!_0x4de917['has'](_0x4959b5))continue;const {group:_0x59480f,type:_0x275df1,authorId:_0x33cde0}=_0x1578e0(_0x4959b5);'revision-suggestion'!=_0x59480f||'insertion'!=_0x275df1&&'deletion'!=_0x275df1||(_0x19add2['unshift']({'type':_0x275df1,'name':_0x4959b5,'userId':_0x33cde0}),_0xd4d1ac[_0x59722b]['markersStart']['splice'](_0x52af3f,0x1),_0x52af3f--);}_0x8ac479(_0xd4d1ac[_0x59722b]);for(let _0x5db418=0x0;_0x5db418<_0xd4d1ac[_0x59722b]['markersEnd']['length'];_0x5db418++){const _0x107314=_0xd4d1ac[_0x59722b]['markersEnd'][_0x5db418];if(!_0x4de917['has'](_0x107314))continue;const {group:_0x5eee95,type:_0x4aedd5}=_0x1578e0(_0x107314);if('revision-suggestion'!=_0x5eee95||'insertion'!=_0x4aedd5&&'deletion'!=_0x4aedd5)continue;_0xd4d1ac[_0x59722b]['markersEnd']['splice'](_0x5db418,0x1),_0x5db418--;const _0x19acd8=_0x19add2['findIndex'](_0x11fe3e=>_0x11fe3e['name']==_0x107314);_0x19acd8>-0x1&&_0x19add2['splice'](_0x19acd8,0x1);}}function _0x1578e0(_0x5d90bd){const _0x97210e=_0x5d90bd['split'](':');return{'group':_0x97210e[0x0],'type':_0x97210e[0x1],'subType':_0x97210e['length']>=0x5?_0x97210e[0x2]:null,'id':_0x97210e['length']<0x5?_0x97210e[0x2]:_0x97210e[0x3],'authorId':_0x97210e['length']<0x5?_0x97210e[0x3]:_0x97210e[0x4],'markerCount':0x6==_0x97210e['length']?_0x97210e[0x5]:null};}function _0x8ac479(_0x3cb248){for(let _0x170e9d=0x0;_0x170e9d<_0x19add2['length'];_0x170e9d++){if(_0x3cb248['isAdded']&&'insertion'==_0x19add2[_0x170e9d]['type']&&_0x3cb248['isAdded']['userId']==_0x19add2[_0x170e9d]['userId'])return _0x3cb248['isAddSuggestion']=_0x19add2[_0x170e9d],void delete _0x3cb248['isAdded'];if(!_0x3cb248['isAdded']&&!_0x3cb248['isRemoved']&&'deletion'==_0x19add2[_0x170e9d]['type'])return void(_0x3cb248['isRemoveSuggestion']=_0x19add2[_0x170e9d]);}}}['_setDistance'](_0x1063f6,_0x13127d){let _0x2f0e0a=0x0,_0x323d16=!0x1;const _0x399ebb=new Map();for(const _0xced44b of _0x1063f6)_0xced44b[_0x13127d]?_0x323d16&&(_0x2f0e0a++,_0x323d16=!0x1):(_0x2f0e0a++,_0x323d16=!0x0),_0x399ebb['set'](_0xced44b['id'],_0x2f0e0a);for(let _0x216767=0x0;_0x216767<_0x1063f6['length'];_0x216767++){if('isRemoved'==_0x13127d&&_0x1063f6[_0x216767]['isAdded']||'isAdded'==_0x13127d&&_0x1063f6[_0x216767]['isRemoved'])continue;if('text'==_0x1063f6[_0x216767]['type']){_0x1063f6[_0x216767]['distance']=0x0;continue;}const _0x11cc94=_0x399ebb['get'](_0x1063f6[_0x216767]['pairId']),_0x296566=_0x399ebb['get'](_0x1063f6[_0x216767]['id']);_0x1063f6[_0x216767]['distance']=_0x11cc94-_0x296566;}}['_getRevisionsRange'](_0x5b9c1c,_0x1dfda3,_0x663567=!0x1){const _0x17cc43=[];let _0x2cc331=this['repository']['getIndex'](_0x5b9c1c),_0x3e295a=this['repository']['getIndex'](_0x1dfda3);for(-0x1==_0x3e295a&&(_0x3e295a=this['repository']['_revisions']['length'],_0x663567=!0x1);_0x2cc331<_0x3e295a;)_0x17cc43['push'](this['repository']['getRevision'](_0x2cc331)),_0x2cc331++;return _0x663567&&_0x17cc43['push'](this['repository']['getRevision'](_0x2cc331)),_0x17cc43;}['_threeWayMerge'](_0x4fe9f2,_0x202bdf,_0x4a8979,_0x574ee7){const _0x5de259=this['editor']['model']['schema'];let _0x5d9896=_0x202bdf;for(;_0x4fe9f2[_0x5d9896]&&_0x4fe9f2[_0x5d9896]['isAdded'];)_0x5d9896++;let _0x158ff6=_0x574ee7;for(;_0x4a8979[_0x158ff6]&&_0x4a8979[_0x158ff6]['isRemoved'];)_0x158ff6++;_0x466e00(_0x4fe9f2,_0x202bdf,_0x5d9896),_0x466e00(_0x4a8979,_0x574ee7,_0x158ff6);const _0x30fb5b=_0x4a8979['slice'](_0x574ee7,_0x158ff6)['concat'](_0x4fe9f2['slice'](_0x202bdf,_0x5d9896));return _0x30fb5b['sort']((_0x5da10e,_0x4967c4)=>_0x5da10e['side']!=_0x4967c4['side']?_0x5da10e['side']-_0x4967c4['side']:_0x5da10e['level']!=_0x4967c4['level']?_0x5da10e['level']-_0x4967c4['level']:_0x5da10e['distance']!=_0x4967c4['distance']?_0x4967c4['distance']-_0x5da10e['distance']:!!_0x5da10e['isAdded']!=!!_0x4967c4['isAdded']?-0x1==_0x5da10e['side']||0x0==_0x5da10e['side']?_0x5da10e['isAdded']?-0x1:0x1:_0x5da10e['isAdded']?0x1:-0x1:_0x5da10e['index']-_0x4967c4['index']),{'commonTape':_0x30fb5b,'iEnd':_0x5d9896,'jEnd':_0x158ff6};function _0x466e00(_0x418d80,_0x27f6d1,_0x464f2f){let _0x832fb4=-0x1,_0x13fb4c=Number['POSITIVE_INFINITY'],_0xcf6654=!0x0;for(let _0x98f062=_0x27f6d1;_0x98f062<_0x464f2f;_0x98f062++)if(_0x5de259['isInline'](_0x418d80[_0x98f062]['item'])||(_0xcf6654=!0x1),_0x418d80[_0x98f062]['item']['startIndex']<_0x27f6d1&&(_0x832fb4=_0x98f062),_0x418d80[_0x98f062]['item']['endIndex']>=_0x464f2f){_0x13fb4c=_0x98f062;break;}_0xcf6654&&(_0x832fb4=_0x464f2f-0x1);for(let _0x2030cd=_0x27f6d1;_0x2030cd<_0x464f2f;_0x2030cd++)_0x418d80[_0x2030cd]['side']=_0x2030cd<=_0x832fb4?-0x1:_0x2030cd<_0x13fb4c?0x0:0x1,_0x418d80[_0x2030cd]['index']=_0x2030cd;let _0x1d21b8=0x0;for(let _0x13aca7=_0x27f6d1;_0x13aca7<=_0x832fb4;_0x13aca7++)0x0==_0x418d80[_0x13aca7]['distance']?_0x418d80[_0x13aca7]['level']=_0x1d21b8:(_0x1d21b8++,_0x418d80[_0x13aca7]['level']=_0x1d21b8,_0x1d21b8++);for(let _0x40d682=_0x27f6d1;_0x40d682<_0x464f2f;_0x40d682++)0x0==_0x418d80[_0x40d682]['side']&&(_0x418d80[_0x40d682]['level']=_0x1d21b8);_0x1d21b8=0x0;for(let _0x5329f2=_0x464f2f-0x1;_0x5329f2>=_0x13fb4c;_0x5329f2--)0x0==_0x418d80[_0x5329f2]['distance']?_0x418d80[_0x5329f2]['level']=_0x1d21b8:(_0x1d21b8--,_0x418d80[_0x5329f2]['level']=_0x1d21b8,_0x1d21b8--);}}['_fixObsoleteTags'](_0x1d1bd2){const _0x43b73d=new Map(),_0x4fb3eb=this['editor']['model']['schema'];for(let _0x14916c=0x1;_0x14916c<_0x1d1bd2['length'];_0x14916c++){let _0x5ac229,_0x15c5c1,_0x48ea62;const _0xe8ee84=_0x1d1bd2[_0x14916c],_0x489634=_0x1d1bd2[_0x14916c-0x1];if('text'==_0xe8ee84['type'])continue;if(_0xe8ee84['type']!=_0x489634['type'])continue;if(!_0x4fb3eb['isBlock'](_0x489634['item'])||_0x4fb3eb['isLimit'](_0x489634['item']))continue;if(!_0x4fb3eb['isBlock'](_0xe8ee84['item'])||_0x4fb3eb['isLimit'](_0xe8ee84['item']))continue;if((_0x1d1bd2[_0x14916c]['isAdded']||_0x1d1bd2[_0x14916c]['isAddSuggestion'])&&_0x1d1bd2[_0x14916c-0x1]['isRemoved'])_0x5ac229=_0x1d1bd2[_0x14916c],_0x15c5c1=_0x1d1bd2[_0x14916c-0x1],_0x48ea62=_0x14916c-0x1;else{if(!_0x1d1bd2[_0x14916c]['isRemoved']||!_0x1d1bd2[_0x14916c-0x1]['isAdded']&&!_0x1d1bd2[_0x14916c-0x1]['isAddSuggestion'])continue;_0x5ac229=_0x1d1bd2[_0x14916c-0x1],_0x15c5c1=_0x1d1bd2[_0x14916c],_0x48ea62=_0x14916c;}const _0xc2a40e=_0x5ac229['level']==_0x15c5c1['level'],_0x3c854a=Math['abs'](_0x5ac229['level'])<Math['abs'](_0x15c5c1['level'])&&0x0==_0x15c5c1['distance'];(_0xc2a40e||_0x3c854a)&&(_0x43b73d['set'](_0x15c5c1['id'],_0x5ac229['id']),_0x1d1bd2['splice'](_0x48ea62,0x1),_0x14916c--,_0x5ac229['isAdded']=!0x1);}for(let _0x21e7e7=0x0;_0x21e7e7<_0x1d1bd2['length'];_0x21e7e7++)_0x43b73d['has'](_0x1d1bd2[_0x21e7e7]['pairId'])&&(_0x1d1bd2[_0x21e7e7]['pairId']=_0x43b73d['get'](_0x1d1bd2[_0x21e7e7]['pairId']));}['_removeMissingPairs'](_0x24c9ff){const _0x3db45c=new Set(_0x24c9ff['map'](_0x20dbce=>_0x20dbce['id']));for(let _0x45337b=0x0;_0x45337b<_0x24c9ff['length'];_0x45337b++)_0x3db45c['has'](_0x24c9ff[_0x45337b]['pairId'])||0x0==_0x24c9ff[_0x45337b]['distance']||(_0x24c9ff[_0x45337b]['isIncorrect']=!0x0);return _0x24c9ff['filter'](_0x1e915c=>!_0x1e915c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5429c3){const _0x44db41=new Set();for(let _0x1d5d3a=0x0;_0x1d5d3a<_0x5429c3['length'];_0x1d5d3a++){if(_0x44db41['has'](_0x5429c3[_0x1d5d3a]['id'])&&_0x5429c3[_0x1d5d3a]['isRemoved']&&(_0x5429c3[_0x1d5d3a]['isIncorrect']=!0x0),_0x5429c3[_0x1d5d3a]['isIncorrect'])continue;if(0x0==_0x5429c3[_0x1d5d3a]['distance'])continue;if('elementStart'!=_0x5429c3[_0x1d5d3a]['type'])continue;if(null==_0x5429c3[_0x1d5d3a]['pairId'])continue;let _0xe01149=_0x1d5d3a+0x1,_0x2bad0b=0x0;for(;_0x5429c3[_0xe01149]['id']!=_0x5429c3[_0x1d5d3a]['pairId'];)'elementStart'==_0x5429c3[_0xe01149]['type']?_0x2bad0b++:'elementEnd'==_0x5429c3[_0xe01149]['type']&&_0x2bad0b--,_0xe01149++;if(0x0!=_0x2bad0b){if(_0x5429c3[_0x1d5d3a]['isRemoved'])_0x5429c3[_0x1d5d3a]['isIncorrect']=!0x0;else{for(;_0xe01149!=_0x1d5d3a;)_0x5429c3[_0xe01149]['isRemoved']&&0x0!=_0x5429c3[_0xe01149]['distance']&&(_0x5429c3[_0xe01149]['isIncorrect']=!0x0,_0x44db41['add'](_0x5429c3[_0xe01149]['pairId'])),_0xe01149--;}}}return _0x5429c3['filter'](_0xc73483=>!_0xc73483['isIncorrect']);}['_removeUnsupportedChanges'](_0x61e95){const _0x5307ae=this['editor']['model']['schema'];for(let _0x4f4844=0x0;_0x4f4844<_0x61e95['length'];_0x4f4844++){if(!(_0x61e95[_0x4f4844]['isAdded']||_0x61e95[_0x4f4844]['isAddSuggestion']||_0x61e95[_0x4f4844]['isRemoved']||_0x61e95[_0x4f4844]['isRemoveSuggestion']))continue;if(0x0==_0x61e95[_0x4f4844]['distance'])continue;const _0x3746ef=_0x61e95[_0x4f4844]['item'];_0x5307ae['isBlock'](_0x3746ef)||_0x5307ae['isLimit'](_0x3746ef)||(_0x61e95[_0x4f4844]['isAdded']&&delete _0x61e95[_0x4f4844]['isAdded'],_0x61e95[_0x4f4844]['isAddSuggestion']&&delete _0x61e95[_0x4f4844]['isAddSuggestion'],_0x61e95[_0x4f4844]['isRemoveSuggestion']&&delete _0x61e95[_0x4f4844]['isRemoveSuggestion'],_0x61e95[_0x4f4844]['isRemoved']&&(_0x61e95[_0x4f4844]['isIncorrect']=!0x0));}return _0x61e95['filter'](_0x300a01=>!_0x300a01['isIncorrect']);}['_makeModelFromTape'](_0x470a94,_0x2e60c6,_0x27786a){const _0x336762=new _0x3247af(),_0x19b24e=[],_0x51b7b8=new Map(),_0x594381=this['editor']['model'],_0x1e7ff4=_0x594381['schema'],_0x41bdbc=[_0x336762],_0x1d33b6={},_0xd18341={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x46dd7a=null;const _0x2f4a3c=[0x0];for(let _0x5087d7=0x0;_0x5087d7<_0x470a94['length'];_0x5087d7++)if('elementStart'===_0x470a94[_0x5087d7]['type']){_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c);const _0x59929e=new _0x36dcff(_0x470a94[_0x5087d7]['item']['name'],_0x470a94[_0x5087d7]['item']['getAttributes']());_0x41bdbc[0x0]['_appendChild'](_0x59929e),_0x2f4a3c['push'](0x0),_0x41bdbc['unshift'](_0x59929e),_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c);}else'elementEnd'===_0x470a94[_0x5087d7]['type']?(_0x41bdbc['shift'](),_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c),_0x2f4a3c['pop'](),_0x2f4a3c[_0x2f4a3c['length']-0x1]++,_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c)):(_0x470a94[_0x5087d7]['previousPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c),_0x46dd7a?_0x46dd7a['_data']+=_0x470a94[_0x5087d7]['item']['data']:_0x46dd7a=new _0x5e058b(_0x470a94[_0x5087d7]['item']['data'],_0x470a94[_0x5087d7]['item']['getAttributes']()),_0x470a94[_0x5087d7+0x1]&&'text'===_0x470a94[_0x5087d7+0x1]['type']&&_0x4fdb21(_0x46dd7a,_0x470a94[_0x5087d7+0x1]['item'])||(_0x41bdbc[0x0]['_appendChild'](_0x46dd7a),_0x46dd7a=null),_0x2f4a3c[_0x2f4a3c['length']-0x1]+=_0x470a94[_0x5087d7]['item']['offsetSize'],_0x470a94[_0x5087d7]['nextPosition']=_0x594381['createPositionFromPath'](_0x336762,_0x2f4a3c));for(let _0x257c44=0x0;_0x257c44<_0x470a94['length'];_0x257c44++){const _0xffadec=_0x470a94[_0x257c44]['previousPosition'],_0x2c7cd1=_0x470a94[_0x257c44]['nextPosition'];for(const _0x1c2d15 of _0x470a94[_0x257c44]['markersStart'])_0x51b7b8['set'](_0x1c2d15,{'start':_0xffadec,'end':null});_0x7fab0c('isRemoveSuggestion',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isAddSuggestion',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isRemoved',_0x257c44,_0xffadec,_0x2c7cd1),_0x7fab0c('isAdded',_0x257c44,_0xffadec,_0x2c7cd1);for(const _0x20c1f7 of _0x470a94[_0x257c44]['markersEnd']){const _0x447c33=_0x51b7b8['get'](_0x20c1f7);_0x447c33?_0x447c33['end']=_0x2c7cd1:_0x51b7b8['set'](_0x20c1f7,{'start':_0x2c7cd1,'end':_0x2c7cd1});}}for(const [_0x439c79,_0x3e7fe6]of _0x51b7b8){const _0x3c4f41=this['editor']['model']['createRange'](_0x3e7fe6['start'],_0x3e7fe6['end']);_0x336762['markers']['set'](_0x439c79,_0x3c4f41);}return _0x19b24e['sort']((_0x46b2f6,_0x32056e)=>{const _0x286863=_0x336762['markers']['get']('revision:'+_0x46b2f6['id']),_0x29ef7c=_0x336762['markers']['get']('revision:'+_0x32056e['id']);return _0x286863['start']['isBefore'](_0x29ef7c['start'])?-0x1:_0x286863['start']['isAfter'](_0x29ef7c['start'])?0x1:_0x286863['end']['isBefore'](_0x29ef7c['end'])?-0x1:_0x286863['end']['isAfter'](_0x29ef7c['end'])?0x1:'add'===_0x46b2f6['type']?-0x1:0x1;}),{'root':_0x336762,'changes':_0x19b24e};function _0x7fab0c(_0x1d0bed,_0x1fbbf0,_0x48a36c,_0x27b038){const _0x4609ec=!!_0x470a94[_0x1fbbf0][_0x1d0bed],_0x190631=_0x4609ec?_0x470a94[_0x1fbbf0][_0x1d0bed]['userId']:null,_0x206b93=_0x1fbbf0===_0x470a94['length']-0x1,_0x27ec58=_0xd18341[_0x1d0bed][0x0],_0x2dab28=_0x1e7ff4['isObject'](_0x470a94[_0x1fbbf0]['item']);!_0x1d33b6[_0x1d0bed]&&_0x4609ec?_0x1d33b6[_0x1d0bed]={'start':_0x48a36c,'tapeItem':_0x470a94[_0x1fbbf0],'userId':_0x190631,'type':_0x1d0bed}:_0x1d33b6[_0x1d0bed]&&!_0x4609ec?(_0x1d33b6[_0x1d0bed]['end']=_0x48a36c,_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]=null):_0x1d33b6[_0x1d0bed]&&_0x4609ec&&_0x1d33b6[_0x1d0bed]['userId']!==_0x190631&&(_0x1d33b6[_0x1d0bed]['end']=_0x48a36c,_0x27ec58&&_0x27ec58['userId']===_0x1d33b6[_0x1d0bed]['userId']||_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]={'start':_0x48a36c,'tapeItem':_0x470a94[_0x1fbbf0],'userId':_0x190631,'type':_0x1d0bed}),_0x1d33b6[_0x1d0bed]&&_0x2dab28&&('elementStart'!==_0x470a94[_0x1fbbf0]['type']||_0x27ec58&&_0x27ec58['userId']===_0x190631||_0xd18341[_0x1d0bed]['unshift']({'userId':_0x190631,'object':_0x470a94[_0x1fbbf0]['item'],'change':_0x1d33b6[_0x1d0bed]}),'elementEnd'===_0x470a94[_0x1fbbf0]['type']&&_0x27ec58&&_0x27ec58['object']===_0x470a94[_0x1fbbf0]['item']&&(_0xd18341[_0x1d0bed]['shift'](),_0x1d33b6[_0x1d0bed]=_0x27ec58['change'])),_0x1d33b6[_0x1d0bed]&&_0x206b93&&(_0x1d33b6[_0x1d0bed]['end']=_0x27b038,_0x4f9c1f(_0x1d33b6[_0x1d0bed]),_0x1d33b6[_0x1d0bed]=null);}function _0x4f9c1f({start:_0x22479b,end:_0x23f01d,tapeItem:_0x258bed,userId:_0x380d5a,type:_0x12991d}){const _0x4fc80d=_0x258bed['item'],_0x3d66f7=_0x594381['schema']['isBlock'](_0x4fc80d)&&!_0x594381['schema']['isLimit'](_0x4fc80d),_0x339246=_0x22479b['nodeAfter']==_0x23f01d['parent']&&_0x23f01d['isAtStart'];if(_0x3d66f7&&_0x339246)return;const _0x23b729=_0x594381['createRange'](_0x22479b,_0x23f01d),_0x21d1a4=_0x2e60c6['get'](_0x380d5a),_0x1feaa4=new G({'author':_0x21d1a4,'type':'isAdded'==_0x12991d||'isAddSuggestion'==_0x12991d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12991d||'isRemoveSuggestion'==_0x12991d},'createdAt':new Date(),'rootName':_0x27786a});_0x19b24e['push'](_0x1feaa4),_0x336762['markers']['set']('revision:'+_0x1feaa4['id'],_0x23b729);}function _0x4fdb21(_0x5e6f49,_0x254ba8){const _0x22bd3c=_0x5e6f49['getAttributes'](),_0x315aff=_0x254ba8['getAttributes']();for(const _0x4efad9 of _0x22bd3c){if(_0x4efad9[0x1]!==_0x254ba8['getAttribute'](_0x4efad9[0x0]))return!0x1;_0x315aff['next']();}return _0x315aff['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb3da6d=>{const _0x955631=_0xb3da6d['markerName']['split'](':')[0x1],_0xb0960e=this['_getChangeFromId'](_0x955631);if(!_0xb0960e)return null;const _0x44a566='add'==_0xb0960e['type']?'insertion':'deletion',_0x21c4f1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x44a566];return _0xb0960e['data']['isSuggestion']&&_0x21c4f1['push']('ck-suggestion-marker-'+_0x44a566+'-new'),this['activeChange']==_0xb0960e&&_0x21c4f1['push']('ck-suggestion-marker--active'),{'classes':_0x21c4f1,'attributes':{'data-change-id':_0x955631}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x35f524=>{_0x35f524['on']('element:pre',(_0x1ba7d5,_0x19c839,_0x22b847)=>{const _0x293c8d=_0x19c839['viewItem']['getChild'](0x0);if(!_0x293c8d||!_0x293c8d['is']('element','code'))return;if(!_0x22b847['consumable']['consume'](_0x293c8d,{'attributes':['vid_start','vid_end']}))return;const _0x2791f0=_0x19c839['modelRange']['start']['nodeAfter'];_0x22b847['writer']['setAttribute']('vid_start',_0x293c8d['getAttribute']('vid_start'),_0x2791f0),_0x22b847['writer']['setAttribute']('vid_end',_0x293c8d['getAttribute']('vid_end'),_0x2791f0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xc530c0=>{_0xc530c0['on']('element',(_0x4057ca,_0x1656ae,_0x2f57bf)=>{if(!_0x2f57bf['consumable']['consume'](_0x1656ae['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1656ae['modelRange']['isCollapsed'])return;const _0x1c66e4=_0x1656ae['modelRange']['start']['nodeAfter'];_0x1c66e4['hasAttribute']('vid_start')||_0x1c66e4['hasAttribute']('vid')||(_0x2f57bf['writer']['setAttribute']('vid_start',_0x1656ae['viewItem']['getAttribute']('vid_start'),_0x1c66e4),_0x2f57bf['writer']['setAttribute']('vid_end',_0x1656ae['viewItem']['getAttribute']('vid_end'),_0x1c66e4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x819051=>_0x819051['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2996d9,[,_0x3a3762])=>{['vid_start','vid_end','vid']['includes'](_0x3a3762)&&(_0x2996d9['return']=!0x0,_0x2996d9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x907ed2=>{_0x907ed2['on']('attribute:vid',(_0xc96f5d,_0xf5823d,_0x5007c9)=>{if('\x20'!=_0xf5823d['item']['data']||_0xf5823d['item']['parent']['maxOffset']>0x1)return;if(!_0x5007c9['consumable']['consume'](_0xf5823d['item'],_0xc96f5d['name']))return;const _0x4cbca6=_0x5007c9['writer'],_0xb00a02=_0x5007c9['mapper']['toViewRange'](_0xf5823d['range']);_0x4cbca6['wrap'](_0xb00a02,_0x4cbca6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5eb19d){const _0x23a296=_0x5eb19d['plugins']['get']('RevisionViewer');return(_0xdbc1e9,_0x2560b5,_0x89dc04)=>{const _0x577195=_0x2560b5['markerName']['split'](':')[0x1],_0x50cda7=_0x23a296['_getChangeFromId'](_0x577195);if(!_0x50cda7)return null;const _0x43a08f='add'==_0x50cda7['type']?'split':'merge';if(!_0x89dc04['consumable']['test'](_0x2560b5['markerRange'],_0xdbc1e9['name']))return;const _0x33dccb=_0x2560b5['markerRange']['getWalker'](),_0xde64fd=_0x2560b5['markerRange']['start'],_0x125bb7=_0x5eb19d['model']['schema'];let _0x432d7c=null,_0x38fd6e=null,_0x575c48=!0x1,_0x39b3b8=!0x1;for(const _0x46158e of _0x33dccb){const _0x308d8a=_0x46158e['item'];_0x575c48=_0x575c48||_0x125bb7['isContent'](_0x308d8a);const _0x278a2f=_0x89dc04['mapper']['toViewElement'](_0x308d8a);if(_0x278a2f&&_0x278a2f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46158e['type']&&(_0x125bb7['isBlock'](_0x308d8a)&&!_0x125bb7['isLimit'](_0x308d8a)&&(_0x308d8a['nextSibling']||_0xde64fd['isAtEnd']?_0x432d7c&&_0x432d7c['parent']==_0x308d8a||(_0x432d7c=_0x308d8a,_0x3631a6(_0x46158e['previousPosition']),_0x39b3b8=!0x0):_0x38fd6e=_0x38fd6e||_0x46158e['previousPosition']));}function _0x3631a6(_0x193fac){const _0x16395b=_0x89dc04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x43a08f}),_0x2735be=_0x89dc04['mapper']['toViewPosition'](_0x193fac);_0x50cda7['data']['isSuggestion']&&_0x89dc04['writer']['addClass']('ck-suggestion-marker-'+_0x43a08f+'-new',_0x16395b),_0x23a296['activeChange']==_0x50cda7&&_0x89dc04['writer']['addClass']('ck-suggestion-marker--active',_0x16395b),_0x89dc04['writer']['insert'](_0x2735be,_0x16395b),_0x89dc04['mapper']['bindElementToMarker'](_0x16395b,_0x2560b5['markerName']);}_0x575c48||_0x39b3b8||!_0x38fd6e||_0x3631a6(_0x38fd6e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2d76f4,_0x3f2114,_0x3ecb4f)=>{const _0x438576=_0x3ecb4f['mapper']['markerNameToElements'](_0x3f2114['markerName']);if(_0x438576){for(const _0x2842b3 of _0x438576)(_0x2842b3['hasClass']('ck-suggestion-marker-split')||_0x2842b3['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ecb4f['mapper']['unbindElementFromMarkerName'](_0x2842b3,_0x3f2114['markerName']),_0x3ecb4f['writer']['remove'](_0x2842b3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x11bf9e,_0x4c2f70,_0x50f586)=>{const _0x2864ad=_0x4c2f70['markerName']['split'](':')[0x1],_0x469bf9=this['_getChangeFromId'](_0x2864ad);if(!_0x469bf9)return null;const _0x50f0d7='add'==_0x469bf9['type']?'split':'merge';if(_0x50f586['consumable']['test'](_0x4c2f70['markerRange'],_0x11bf9e['name']))for(const _0x12e9f7 of _0x4c2f70['markerRange']['getItems']()){if(!_0x12e9f7['is']('element','softBreak'))continue;const _0x33e294=_0x50f586['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50f0d7}),_0x3994da=_0x50f586['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x12e9f7));_0x469bf9['data']['isSuggestion']&&_0x50f586['writer']['addClass']('ck-suggestion-marker-'+_0x50f0d7+'-new',_0x33e294),this['activeChange']==_0x469bf9&&_0x50f586['writer']['addClass']('ck-suggestion-marker--active',_0x33e294),_0x50f586['writer']['insert'](_0x3994da,_0x33e294),_0x50f586['mapper']['bindElementToMarker'](_0x33e294,_0x4c2f70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xd90fe6=>{for(const _0x3d95d2 of this['editor']['model']['document']['getRootNames']()){const _0x4630be=this['editor']['model']['document']['getRoot'](_0x3d95d2),_0x4b23d8=this['editor']['editing']['view']['document']['getRoot'](_0x3d95d2);if(_0x4b23d8){const _0xa6907e=_0x4630be['getAttribute']('revisionHistoryAttachChange');if(_0xd90fe6['removeAttribute']('data-change-id',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root-add',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root-remove',_0x4b23d8),_0xd90fe6['removeClass']('ck-revision-history-root--active',_0x4b23d8),_0xa6907e){const _0x4b23a5=this['_getChangeFromId'](_0xa6907e);if(!_0x4b23a5)return null;_0xd90fe6['setAttribute']('data-change-id',_0xa6907e,_0x4b23d8),_0xd90fe6['addClass']('ck-revision-history-root-'+_0x4b23a5['type'],_0x4b23d8),this['activeChange']==_0x4b23a5&&_0xd90fe6['addClass']('ck-revision-history-root--active',_0x4b23d8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x935b41=>'revision-comment:'+_0x935b41,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x42f42c=>'revision-suggestion:'+_0x42f42c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x596382=>({'name':'suggestion:'+_0x596382,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x30976d=>{const _0x1e9d52=_0x30976d['markerName']['split'](':')[0x1];return'insertion'!=_0x1e9d52&&'deletion'!=_0x1e9d52?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1e9d52]};}}),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',(_0x1321ac,_0x5c5103,_0x55eb8d)=>{const _0x3b37e1=_0x55eb8d['mapper']['markerNameToElements'](_0x5c5103['markerName']);if(_0x3b37e1){for(const _0x5c068a of _0x3b37e1)_0x5c068a['is']('uiElement')&&(_0x55eb8d['mapper']['unbindElementFromMarkerName'](_0x5c068a,_0x5c5103['markerName']),_0x55eb8d['writer']['remove'](_0x5c068a));}},{'priority':'high'});}['_getChangeFromId'](_0x45dc0a){return this['_changeIdToChange']['get'](_0x45dc0a);}['_getViewForChange'](_0x46e8e8){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x46e8e8),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x46e591,_0x448f4a,_0x125c36,_0x458862)=>{_0x458862&&this['_balloon']['remove'](_0x458862),_0x125c36&&(this['_balloon']['add']({'view':_0x125c36,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3a1862=this['editor']['editing'],_0x1844bb=this['_getChangeFromId'](_0x125c36['changeId']);let _0x18b6d2;if(_0x1844bb['data']['isOnRoot']){const _0x23e008=_0x3a1862['view']['getDomRoot'](_0x1844bb['rootName']);_0x18b6d2=Array['from'](_0x23e008['getClientRects']());}else{const _0x1e3e8c=this['editor']['model']['markers']['get']('revision:'+_0x125c36['changeId']);_0x18b6d2=Array['from'](_0x3a1862['mapper']['markerNameToElements'](_0x1e3e8c['name']))['map'](_0x49eada=>_0x3a1862['view']['domConverter']['mapViewToDom'](_0x49eada))['map'](_0x2d1e0d=>Array['from'](_0x2d1e0d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18b6d2[0x0];return _0x18b6d2['find'](_0x519468=>_0x519468['top']-0x3<=this['_activeViewTarget']['y']&&_0x519468['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x519468['left']-0x3<=this['_activeViewTarget']['x']&&_0x519468['right']+0x3>=this['_activeViewTarget']['x'])||_0x18b6d2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x16755d,_0x50087b,_0x35309a,_0x462007)=>{this['activeView']=_0x35309a?this['_getViewForChange'](_0x35309a):null,this['editor']['model']['change'](()=>{const _0x11ab86=this['editor']['editing'];_0x462007&&(_0x462007['data']['isOnRoot']?_0x11ab86['view']['change'](_0x1e48bc=>{_0x1e48bc['removeClass']('ck-revision-history-root--active',_0x11ab86['view']['document']['getRoot'](_0x462007['rootName']));}):_0x11ab86['reconvertMarker']('revision:'+_0x462007['id'])),_0x35309a&&(_0x35309a['data']['isOnRoot']?_0x11ab86['view']['change'](_0x45bc5b=>{_0x45bc5b['addClass']('ck-revision-history-root--active',_0x11ab86['view']['document']['getRoot'](_0x35309a['rootName']));}):_0x11ab86['reconvertMarker']('revision:'+_0x35309a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x48ec83,_0xefc922)=>{if(this['activeChange'])return;const _0x32bcb2=this['_findChangeIdFromDomTarget'](_0xefc922['target']),_0x241e4b=this['_changeIdToChange']['get'](_0x32bcb2);_0x241e4b?(this['_activeViewTarget']={'x':_0xefc922['domEvent']['x'],'y':_0xefc922['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x241e4b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26a731,_0x1a6b09)=>{const _0x34a04=this['_findChangeIdFromDomTarget'](_0x1a6b09['target']),_0x309ae9=this['_changeIdToChange']['get'](_0x34a04);_0x309ae9?(this['_activeViewTarget']={'x':_0x1a6b09['domEvent']['x'],'y':_0x1a6b09['domEvent']['y']},_0x309ae9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x309ae9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x306a6b){do{const _0x2bf725=_0x306a6b['getAttribute']('data-change-id');if(_0x2bf725)return _0x2bf725;_0x306a6b=_0x306a6b['parent'];}while(_0x306a6b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b747a=>{for(const _0xc011ab of this['editor']['model']['markers'])_0x4b747a['removeMarker'](_0xc011ab);});}}function Q(_0x1e2950,_0x8b58d5){return(_0x4674d2,_0x5e381c,_0x3cb7f0)=>{if(!_0x3cb7f0['consumable']['test'](_0x5e381c['markerRange'],_0x4674d2['name']))return;const _0x513b84=_0x5e381c['markerRange']['getWalker'](),_0x3eae65=_0x5e381c['markerRange']['start'],_0x1313d0=_0x1e2950['model']['schema'];let _0x958a2a=null,_0x1b2111=null,_0x49e2f4=!0x1,_0x358da3=!0x1;for(const _0x5826e8 of _0x513b84){const _0x304072=_0x5826e8['item'];_0x49e2f4=_0x49e2f4||_0x1313d0['isContent'](_0x304072);const _0x3c1589=_0x3cb7f0['mapper']['toViewElement'](_0x304072);if(_0x3c1589&&_0x3c1589['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5826e8['type']&&(_0x1313d0['isBlock'](_0x304072)&&!_0x1313d0['isLimit'](_0x304072)&&(_0x304072['nextSibling']||_0x3eae65['isAtEnd']?_0x958a2a&&_0x958a2a['parent']==_0x304072||(_0x958a2a=_0x304072,_0x366a15(_0x5826e8['previousPosition']),_0x358da3=!0x0):_0x1b2111=_0x1b2111||_0x5826e8['previousPosition']));}function _0x366a15(_0x5a29a6){const _0x21004a=_0x3cb7f0['mapper']['toViewPosition'](_0x5a29a6),_0x5cc7c6=_0x3cb7f0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x8b58d5});_0x3cb7f0['writer']['insert'](_0x21004a,_0x5cc7c6),_0x3cb7f0['mapper']['bindElementToMarker'](_0x5cc7c6,_0x5e381c['markerName']);}_0x49e2f4||_0x358da3||!_0x1b2111||_0x366a15(_0x1b2111);};}class nt extends _0x2d4843{constructor(_0x101b55){super(_0x101b55);const _0x20f90a=_0x101b55['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x20f90a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20f90a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x574c15=this['editor'],_0x58f595=_0x574c15['plugins']['get'](l),_0x3ce870=_0x58f595['isReady']?_0x58f595['diff']['newRevisionId']:null;_0x574c15['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ce870);}['refresh'](){const {isReady:_0x8f37ce,isEnabled:_0x21c1e8,repository:_0x5394db,diff:_0x4a7d7c}=this['editor']['plugins']['get'](l),_0x21ef86=_0x4a7d7c&&_0x5394db['getLaterVisibleRevision'](_0x4a7d7c['newRevisionId']);this['isEnabled']=_0x8f37ce&&_0x21c1e8&&Boolean(_0x21ef86);}}class rt extends _0x2d4843{['_step'];constructor(_0x54cdab,{direction:_0x519f7a}){super(_0x54cdab);const _0x4348d6=_0x54cdab['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x519f7a?0x1:-0x1,this['listenTo'](_0x4348d6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4348d6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4348d6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21090e=this['editor'],_0x43db5e=_0x21090e['plugins']['get'](l),{isNavigationMode:_0x54594c,currentChangeNumber:_0x187f43}=_0x43db5e;let _0x4194f0;if(_0x43db5e['activeChange']=_0x54594c?_0x43db5e['diff']['changes']['get'](_0x187f43+this['_step']):_0x43db5e['diff']['changes']['first'],_0x43db5e['activeChange']['data']['isOnRoot'])_0x4194f0=_0x21090e['editing']['view']['getDomRoot'](_0x43db5e['activeChange']['rootName']);else{const _0x3e6075=_0x21090e['model']['markers']['get']('revision:'+_0x43db5e['activeChange']['id']);_0x4194f0=_0x38d135(_0x21090e['editing'],_0x3e6075);}_0x15df81({'target':_0x4194f0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ddc12,currentChangeNumber:_0x207cdc,numberOfChanges:_0x145efd,isReady:_0x25bb73,isEnabled:_0x3408a1}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3408a1&&_0x25bb73&&_0x145efd)&&(!_0x4ddc12||(0x1===this['_step']?_0x207cdc<_0x145efd-0x1:_0x207cdc>0x0));}}class vi extends _0x34055f{constructor(_0x8845b1){super(_0x8845b1);const _0x3f1ef3=this['bindTemplate'],_0x1e204f=new _0x9e686(_0x8845b1),_0x341aef=new _0x9e686(_0x8845b1);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',(_0x1f4969,_0x541583)=>_0x1f4969&&_0x541583>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2cf9bf,_0x3f9b19,_0x419289,_0x12f8e1)=>{if(!_0x2cf9bf)return R(_0x8845b1,'Loading...');if(!_0x419289)return R(_0x8845b1,'No\x20changes');const _0x19f0cc=R(_0x8845b1,'NUMBER_OF_CHANGES',_0x419289);return _0x12f8e1?R(_0x8845b1,'X_OF_Y_CHANGES',[_0x3f9b19+0x1,_0x419289]):_0x19f0cc;}),_0x1e204f['set']({'label':R(_0x8845b1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x554da9}),_0x341aef['set']({'label':R(_0x8845b1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3c5a6f}),_0x1e204f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x341aef['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1e204f['on']('execute',()=>this['fire']('execute','backward')),_0x341aef['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',_0x3f1ef3['if']('_isStatusLabelVisible','ck-hidden',_0x1b3da1=>!_0x1b3da1)]},'children':[{'text':_0x3f1ef3['to']('isNavigationMode',_0x3154e2=>_0x3154e2?R(_0x8845b1,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x8845b1,'Total')+':\x20')}]},{'text':_0x3f1ef3['to']('_statusText')}]},new _0x11ff8f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1e204f,_0x341aef]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x225e65{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3b65f0=this['editor']['editing']['view'];_0x3b65f0['change'](_0x39dc80=>{for(const _0x18afed of _0x3b65f0['document']['roots'])_0x39dc80['addClass'](oe,_0x18afed);});}['hide'](){const _0x8d9a18=this['editor']['editing']['view'];_0x8d9a18['change'](_0x80f908=>{for(const _0x30e772 of _0x8d9a18['document']['roots'])_0x80f908['removeClass'](oe,_0x30e772);});}}class u extends _0x225e65{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,wi];}['init'](){const _0x4eddf3=this['editor'],_0x22480b=_0x4eddf3['plugins']['get'](l),_0x3203c8=_0x4eddf3['plugins']['get'](wi);_0x4eddf3['ui']['componentFactory']['add']('exitToEditing',_0x27db9e=>{const _0xf1c6a6=new _0x9e686(_0x27db9e);return _0xf1c6a6['set']({'label':R(_0x27db9e,'Back\x20to\x20editing'),'icon':_0x1c0ecc,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf1c6a6,'execute',()=>{_0x4eddf3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf1c6a6;}),_0x4eddf3['ui']['componentFactory']['add']('restoreRevision',_0x2b8e18=>{const _0x29de59=new _0x9e686(_0x2b8e18);return _0x29de59['set']({'label':R(_0x2b8e18,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29de59['bind']('isEnabled')['to'](_0x4eddf3['commands']['get']('restoreRevision')),this['listenTo'](_0x29de59,'execute',()=>_0x4eddf3['execute']('restoreRevision')),_0x29de59;}),_0x4eddf3['ui']['componentFactory']['add']('changesNavigation',_0x13f2ff=>{const _0xcddacc=new vi(_0x13f2ff),_0x283924=_0x4eddf3['commands']['get']('showPreviousChange'),_0x54b6ac=_0x4eddf3['commands']['get']('showNextChange');return _0xcddacc['bind']('isBackwardNavigationEnabled')['to'](_0x283924,'isEnabled'),_0xcddacc['bind']('isForwardNavigationEnabled')['to'](_0x54b6ac,'isEnabled'),_0xcddacc['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22480b),this['listenTo'](_0xcddacc,'execute',(_0x19575d,_0x4569a9)=>{_0x4eddf3['execute']('forward'===_0x4569a9?'showNextChange':'showPreviousChange');}),_0xcddacc;}),_0x3203c8['show'](),_0x22480b['on']('change:isReady',(_0x524274,_0x428a01,_0x1d9304)=>{_0x1d9304?_0x3203c8['hide']():_0x3203c8['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4c950d,_0x24ae95){super(_0x4c950d,_0x24ae95);const _0x5c3e2d=this['bindTemplate'];this['set']({'label':R(_0x4c950d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4c950d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5c3e2d['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 _0xa5c0a2=this['fieldView']['element'];this['_tooltipString']=_0xa5c0a2['scrollWidth']>_0xa5c0a2['clientWidth']&&_0xa5c0a2['value']||'';}}class ni extends _0x34055f{constructor(_0x314c1c,_0x28bc0e,_0x35607c){super(_0x314c1c);const _0x285e8e=new _0x1614e9();_0x285e8e['set']({'content':_0x40b050,'viewBox':'0\x200\x2011\x2010'});const _0x527197=['ck','ck-revision-history-sidebar__revision-author'];_0x35607c&&_0x527197['push']('ck-revision-history-sidebar__revision-author_creator');const _0x267ad3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x314c1c,_0x35607c?'Revision\x20creator':'Revision\x20author')},'children':[_0x285e8e,_0x28bc0e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x527197},'children':_0x267ad3});}}function ai(_0x1c5436,_0x4505fc){const _0x3c7eac=_0x1c5436['bindTemplate'],_0x32c3af=_0x1c5436['locale'],_0x3b9211=_0x474189(_0x32c3af);_0x3b9211['panelPosition']='sw';const _0x2faa31=function(_0x2c7e14,_0x51c63a){const _0x4b4b6f=function(_0x973667,_0x30745f){const _0x29deed=_0x973667['locale'],_0x30c765={'Compare\x20against\x20selected':R(_0x29deed,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x29deed,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x29deed,'Restore\x20this\x20revision')};return _0x30745f['map'](_0x17e261=>{const _0x280017=_0x30c765[_0x17e261['name']];return _0x280017&&_0x280017!==_0x17e261['name']&&(_0x17e261['name']=_0x280017),_0x17e261;});}(_0x2c7e14,_0x51c63a),_0x4d18b9=new _0x56bfbf();for(const _0x36e0c0 of _0x4b4b6f){const _0x4e1dcf={'type':'button','model':new to({'label':_0x36e0c0['name'],'class':_0x36e0c0['class'],'withText':!0x0,'role':'menuitem','_action':_0x36e0c0['action']})};_0x4e1dcf['model']['bind']('isEnabled')['to'](_0x2c7e14,'isActionsDropdownOpen',_0x2930da=>'function'!=typeof _0x36e0c0['isEnabled']||(!_0x2930da||_0x36e0c0['isEnabled'](_0x2c7e14))),_0x4d18b9['add'](_0x4e1dcf);}return _0x4d18b9;}(_0x1c5436,_0x4505fc);return _0x1c5436['bind']('isActionsDropdownOpen')['to'](_0x3b9211,'isOpen'),_0x3b9211['buttonView']['set']({'label':R(_0x32c3af,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x416f2e}),_0x3b9211['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c7eac['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c7eac['to'](_0x22dcaa=>_0x22dcaa['stopPropagation']())}}),_0x3b9211['on']('execute',_0x32e898=>{_0x1c5436['isReady']&&'function'==typeof _0x32e898['source']['_action']&&_0x32e898['source']['_action'](_0x1c5436);}),_0x2b7003(_0x3b9211,_0x2faa31,{'role':'menu'}),_0x3b9211['listenTo'](_0x1c5436,'change:isActionsDropdownOpen',(_0x5b1650,_0x319fa2,_0x2c925a)=>{if(_0x2c925a)for(const _0x3ebfe9 of _0x3b9211['listView']['items']){const _0x96e12=_0x3ebfe9['children']['first'],_0x468848=_0x4505fc['find'](_0x4f71a5=>_0x4f71a5['action']===_0x96e12['_action'])['isVisible'];_0x3ebfe9['isVisible']=void 0x0===_0x468848||_0x468848(_0x1c5436);}}),_0x3b9211;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x37be83,uid as _0x40f93b,Collection as _0x150ee0,logWarning as _0x307535,FocusTracker as _0x4c82ae,KeystrokeHandler as _0x46d254,scrollViewportToShowTarget as _0xffbfb2,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0xd34d2c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x378b0e,set as _0x12de3c,unset as _0x19e1c2,isEqual as _0x66705b}from'es-toolkit/compat';import{Plugin as _0xb302f2,PendingActions as _0x3f7589,Command as _0x1bb13c,ElementApiMixin as _0x4e63f0,Editor as _0x168dde}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5232bd,getMarkerDomElement as _0x1eaada,ConfirmMixin as _0x15af86,sanitizeEditorConfig as _0x3acf91}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x413d32,ViewAttributeElement as _0x1322a8,ViewEmptyElement as _0x1292f2,ViewRawElement as _0x25a4e0,ViewUIElement as _0x15435f,ViewDocumentFragment as _0x4ef338,ViewText as _0x2dc6c5,ViewElement as _0x45fb3d,ModelElement as _0x82277c,ModelRange as _0x5c8fff,ModelPosition as _0x57a6ba,ModelDocumentFragment as _0x3324d4,ModelText as _0x4e8ebd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xec2b1e,IconChevronUp as _0x5453e5,IconChevronDown as _0x5c4b72,IconUndo as _0x77d497,IconUser as _0x34dedb,IconThreeVerticalDots as _0x20126f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x56db31,View as _0x28ff5a,submitHandler as _0x4e8a74,LabeledFieldView as ti,createLabeledInputText as _0x2ed296,createDropdown as _0x1f74c9,ListView as _0x29a3c2,ListItemView as _0x469347,ButtonView as _0x22df11,MenuBarMenuView as _0xaf0e4e,MenuBarMenuListView as _0x4d3894,MenuBarMenuListItemView as _0x337c49,MenuBarMenuListItemButtonView as _0x235b82,ContextualBalloon as _0x98707b,ToolbarSeparatorView as _0x2d4abe,IconView as _0xb2dc1d,addListToDropdown as _0x32b313,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x7f6b95,StickyPanelView as _0x7b8335,ToolbarView as _0x18ca8b,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x38564c}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x37be83(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x475f5e){super(),this['id']=_0x475f5e['id']||_0x40f93b(),this['creator']=_0x475f5e['creator']||null,this['authors']=_0x475f5e['authors']||[],this['diffData']=_0x475f5e['diffData']||null,this['toVersion']=_0x475f5e['toVersion']||0x0,this['fromVersion']=_0x475f5e['fromVersion']||0x0,this['set']('name',_0x475f5e['name']||''),this['set']('createdAt',_0x475f5e['createdAt']||new Date()),this['set']('attributes',_0x475f5e['attributes']||{});}['setName'](_0x505c2b){this['_update']({'name':_0x505c2b});}['setAttribute'](_0x4ae9ab,_0x3ddca5){const _0xb40e3f=_0x378b0e(this['attributes']);_0x12de3c(_0xb40e3f,_0x4ae9ab,_0x3ddca5),this['_update']({'attributes':_0xb40e3f});}['removeAttribute'](_0x5c38c5){const _0x3d4bfd=_0x378b0e(this['attributes']);_0x19e1c2(_0x3d4bfd,_0x5c38c5),this['_update']({'attributes':_0x3d4bfd});}['_update'](_0x2af827,_0x4a7fca=!0x1){let _0x47d317=!0x1;const _0x16bdfa={'id':this['id']},_0x5ca32f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x17df78 of _0x5ca32f){const _0x593fc9=_0x2af827[_0x17df78];void 0x0!==_0x593fc9&&_0x593fc9!==this[_0x17df78]&&(this[_0x17df78]=_0x593fc9,_0x16bdfa[_0x17df78]=_0x593fc9,_0x47d317=!0x0);}_0x47d317&&(_0x16bdfa['authors']&&(_0x16bdfa['authorsIds']=_0x16bdfa['authors']['map'](_0x596868=>_0x596868['id']),delete _0x16bdfa['authors']),this['fire']('_update',_0x16bdfa,_0x4a7fca));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xbdfcdd=>_0xbdfcdd['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xb302f2{['_revisions'];static get['requires'](){return[_0x5232bd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4cda02){super(_0x4cda02),this['_revisions']=new _0x150ee0();}['afterInit'](){!async function(_0x3a4db4){const _0x2ee23a=_0x539569([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x54447b=0xeb829,_0x42ae38=0x7374585f,_0x91043=0x73732caf^_0x42ae38,_0x5ef47a=window[_0x539569([0x44,0x61,0x74,0x65])][_0x539569([0x6e,0x6f,0x77])](),_0x5de29f=_0x3a4db4[_0x539569([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f830a=new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50921e=>{_0x5de29f[_0x539569([0x6f,0x6e,0x63,0x65])](_0x539569([0x72,0x65,0x61,0x64,0x79]),_0x50921e);}),_0x4dcd5c={[_0x539569([0x6b,0x74,0x79])]:_0x539569([0x45,0x43]),[_0x539569([0x75,0x73,0x65])]:_0x539569([0x73,0x69,0x67]),[_0x539569([0x63,0x72,0x76])]:_0x539569([0x50,0x2d,0x32,0x35,0x36]),[_0x539569([0x78])]:_0x539569([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]),[_0x539569([0x79])]:_0x539569([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]),[_0x539569([0x61,0x6c,0x67])]:_0x539569([0x45,0x53,0x32,0x35,0x36])},_0x3edcaf=_0x5de29f[_0x539569([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x539569([0x67,0x65,0x74])](_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a4628(){let _0x250851,_0xdbfa9=null,_0x2ff764=null;try{if(_0x3edcaf==_0x539569([0x47,0x50,0x4c]))return _0x539569([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x250851=_0x485e93(),!_0x250851)return _0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x250851[_0x539569([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ff764=_0x1f0726(_0x250851[_0x539569([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x250851[_0x539569([0x6a,0x74,0x69])])),await _0x38b2d0()?_0x43901d()?_0x5be38f()?_0x539569([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa96fb()?(_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539569([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xdbfa9=_0x46dd2d(_0x539569([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539569([0x74,0x72,0x69,0x61,0x6c])&&(_0xdbfa9=_0x46dd2d(_0x539569([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ce0df()):_0x539569([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x539569([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5be38f(){const _0x124389=[_0x539569([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x539569([0x74,0x72,0x69,0x61,0x6c])][_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ef47a/0x3e8:0xe10*_0x91043;return _0x250851[_0x539569([0x65,0x78,0x70])]<_0x124389;}function _0x43901d(){const _0xe2632d=_0x250851[_0x539569([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe2632d)return!0x1;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x2a])))return!0x0;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x52,0x48])))return!0x0;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x52,0x52,0x48]))){if(_0x50a6ba())return!0x0;if(_0x2c3f2e()||_0x42f944())return!0x0;}return!0x1;}function _0xa96fb(){const _0x2b271f=_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b271f||0x0==_0x2b271f[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37fdb0}=new URL(window[_0x539569([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b271f[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37fdb0))return!0x0;const _0x39b187=_0x37fdb0[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e]));return _0x2b271f[_0x539569([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ecc47=>_0x4ecc47[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x2a])))[_0x539569([0x6d,0x61,0x70])](_0x27679d=>_0x27679d[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e])))[_0x539569([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc2440d=>_0xc2440d[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39b187[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539569([0x6d,0x61,0x70])](_0x252da9=>Array(_0x39b187[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x252da9[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539569([0x66,0x69,0x6c,0x6c])](_0x252da9[0x0]===_0x539569([0x2a])?_0x539569([0x2a]):'')[_0x539569([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x252da9))[_0x539569([0x73,0x6f,0x6d,0x65])](_0x35aa24=>_0x39b187[_0x539569([0x65,0x76,0x65,0x72,0x79])]((_0x1218c9,_0xc77c65)=>_0x35aa24[_0xc77c65]===_0x1218c9||_0x35aa24[_0xc77c65]===_0x539569([0x2a])));}function _0x4ce0df(){return _0xdbfa9&&_0x2ff764?new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x514e72,_0x26f55b)=>{_0xdbfa9[_0x539569([0x74,0x68,0x65,0x6e])](_0x514e72,_0x26f55b),_0x2ff764[_0x539569([0x74,0x68,0x65,0x6e])](_0x3535dc=>{_0x3535dc!=_0x539569([0x56,0x61,0x6c,0x69,0x64])&&_0x514e72(_0x3535dc);},_0x26f55b);}):_0xdbfa9||_0x2ff764||_0x539569([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f0726(_0x33bd05,_0x117d9e){return new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108062=>{if(_0x2c968c())return _0x108062(_0x539569([0x56,0x61,0x6c,0x69,0x64]));_0x469cf3(),_0x5de29f[_0x539569([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1582a1=!0x1;const _0x314787=_0x40f93b();function _0x299129(_0x3166f1){return!!_0x3166f1&&(typeof _0x3166f1===_0x539569([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3166f1===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3166f1[_0x539569([0x74,0x68,0x65,0x6e])]===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3166f1[_0x539569([0x63,0x61,0x74,0x63,0x68])]===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bbc9f(_0x118ea1){_0x299b0d(_0x118ea1)[_0x539569([0x74,0x68,0x65,0x6e])](_0x43cfa9=>{if(!_0x43cfa9||_0x43cfa9[_0x539569([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x539569([0x6f,0x6b]))return _0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bd447(_0x541781(_0x314787+_0x117d9e))!=_0x43cfa9[_0x539569([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x539569([0x56,0x61,0x6c,0x69,0x64]);})[_0x539569([0x74,0x68,0x65,0x6e])](_0x10ec3b=>(_0x31c102(),_0x10ec3b),()=>{const _0x3e66b2=_0x55e735();return null==_0x3e66b2?(_0x31c102(),_0x539569([0x56,0x61,0x6c,0x69,0x64])):_0x539569(_0x5ef47a-_0x3e66b2>(0x5778dc5f^_0x42ae38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x539569([0x74,0x68,0x65,0x6e])](_0x108062)[_0x539569([0x63,0x61,0x74,0x63,0x68])](()=>{_0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9d3fe=0x7342b6df^_0x42ae38;function _0x31c102(){const _0x4eae64=_0x539569([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd447(_0x541781(_0x33bd05)),_0x3c72fa=_0x4fa537(_0x1bd447(window[_0x539569([0x4d,0x61,0x74,0x68])][_0x539569([0x63,0x65,0x69,0x6c])](_0x5ef47a/_0xb9d3fe)));window[_0x539569([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539569([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eae64,_0x3c72fa);}function _0x55e735(){const _0x59d31c=_0x539569([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd447(_0x541781(_0x33bd05)),_0x55ec06=window[_0x539569([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539569([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59d31c);return _0x55ec06?window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fa537(_0x55ec06),0x10)*_0xb9d3fe:null;}function _0x299b0d(_0x5e23de){return new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x290510,_0x5ba178)=>{_0x5e23de[_0x539569([0x74,0x68,0x65,0x6e])](_0x290510,_0x5ba178),window[_0x539569([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ba178,0x73758c9f^_0x42ae38);});}}_0x5de29f[_0x539569([0x6f,0x6e])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbcb04,_0x3ec8d0)=>{if(_0x3ec8d0[0x0]!=_0x33bd05)return _0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ec8d0[0x1]={..._0x3ec8d0[0x1],[_0x539569([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x314787};},{[_0x539569([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539569([0x68,0x69,0x67,0x68])}),_0x5de29f[_0x539569([0x6f,0x6e])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c6ec=>{_0x299129(_0x40c6ec[_0x539569([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1582a1=!0x0,_0x2bbc9f(_0x40c6ec[_0x539569([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x539569([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539569([0x6c,0x6f,0x77])}),_0x3f830a[_0x539569([0x74,0x68,0x65,0x6e])](()=>{_0x1582a1||_0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c968c(){return _0x5de29f[_0x539569([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539569([0x76,0x69,0x65,0x77])][_0x539569([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x539569([0x61,0x75,0x74,0x6f]);}function _0x469cf3(){_0x5de29f[_0x539569([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539569([0x76,0x69,0x65,0x77])][_0x539569([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x539569([0x61,0x75,0x74,0x6f]);}}function _0x46dd2d(_0x1ba7f5){const _0x5c98ca=[new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45fbee=>setTimeout(_0x45fbee,0x737d6693^_0x42ae38)),_0x3f830a[_0x539569([0x74,0x68,0x65,0x6e])](()=>new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528767=>{const _0x349e95=0x73745858^_0x42ae38,_0x59afa4=_0x3a4db4[_0x539569([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x53ff8a(){_0x59afa4[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x349e95&&_0x528767();}_0x53ff8a(),_0x59afa4[_0x539569([0x6f,0x6e])](_0x539569([0x61,0x64,0x64]),_0x53ff8a);})),new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462dad=>{function _0x3f4cb2(){for(const _0x596613 in window)if(window[_0x539569([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x539569([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x596613))&&window[_0x596613]==_0x54447b)return _0x462dad();_0x5de29f[_0x539569([0x73,0x74,0x61,0x74,0x65])]!=_0x539569([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x539569([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f4cb2,0x73744bd7^_0x42ae38);}_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3f4cb2();})];return window[_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x539569([0x72,0x61,0x63,0x65])](_0x5c98ca)[_0x539569([0x74,0x68,0x65,0x6e])](()=>_0x1ba7f5);}async function _0xc5f6a3(){if(await _0x3f830a,_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x15377c=_0x3a4db4[_0x539569([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3816f=_0x3a4db4[_0x539569([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])](_0x15377c[_0x539569([0x69,0x64])]),_0xa54bc4=_0x4520c7(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa54bc4[_0x539569([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x15377c['id'],_0x3816f?_0x3816f['id']:null,!0x0),_0xa54bc4[_0x539569([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa54bc4[_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa54bc4[_0x539569([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x22002d,void(_0xa54bc4[_0x539569([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x22002d);}if(_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x26ba8a=_0x4520c7(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x26ba8a[_0x539569([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26ba8a[_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26ba8a[_0x539569([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x22002d,_0x26ba8a[_0x539569([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x22002d;}_0x5de29f[_0x539569([0x6d,0x6f,0x64,0x65,0x6c])][_0x539569([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22002d,_0x5de29f[_0x539569([0x6d,0x6f,0x64,0x65,0x6c])][_0x539569([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22002d,_0x5de29f[_0x539569([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x539569([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50a6ba(){return _0x261d99(_0x539569([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4520c7(_0x539569([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x539569([0x73,0x74,0x61,0x74,0x65])]==_0x539569([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2c3f2e(){return _0x261d99(_0x539569([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 _0x42f944(){return _0x261d99(_0x539569([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21e678(_0x4fd10e){const _0x5833d9=_0x4c9069();_0x5de29f[_0x5833d9]=_0x539569([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])+_0x4fd10e,_0x4fd10e[_0x539569([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x539569([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4c9069()]=_0x54447b),_0x4fd10e!=_0x539569([0x56,0x61,0x6c,0x69,0x64])&&_0xc5f6a3();}function _0x4c9069(){const _0x3351d2=window[_0x539569([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x539569([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x539569([0x6e,0x6f,0x77])]())[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x539569([0x2e]),'');let _0x558c01=_0x539569([0x73]);for(let _0x51b3b5=0x0;_0x51b3b5<_0x3351d2[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51b3b5+=0x2){let _0x35b508=window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3351d2[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51b3b5,_0x51b3b5+0x2));_0x35b508>=_0x2ee23a[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35b508-=_0x2ee23a[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x558c01+=_0x2ee23a[_0x35b508];}return _0x558c01;}function _0x485e93(){const _0x27df46=_0x3edcaf[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e]));if(0x3!=_0x27df46[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d4f4f(_0x27df46[0x1]);function _0x1d4f4f(_0x4308b5){const _0x32ddba=_0x3a83f7(_0x4308b5);return _0x32ddba&&_0x5b045b()?_0x32ddba:null;function _0x5b045b(){const _0xcb2a45=_0x32ddba[_0x539569([0x6a,0x74,0x69])],_0x2fde84=window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb2a45[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcb2a45[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1250cb={..._0x32ddba,[_0x539569([0x6a,0x74,0x69])]:_0xcb2a45[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcb2a45[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1250cb[_0x539569([0x76,0x63])],_0x541781(_0x1250cb)==_0x2fde84;}}}async function _0x38b2d0(){let _0x1d020d=!0x0;try{const _0x5ee7b5=_0x3edcaf[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e])),[_0x514039,_0x35b769,_0x56f319]=_0x5ee7b5;return _0x173076(_0x514039),await _0x542775(_0x514039,_0x35b769,_0x56f319),_0x1d020d;}catch{return!0x1;}function _0x173076(_0x1b4309){const _0x136bf3=_0x3a83f7(_0x1b4309);_0x136bf3&&_0x136bf3[_0x539569([0x61,0x6c,0x67])]==_0x539569([0x45,0x53,0x32,0x35,0x36])||(_0x1d020d=!0x1);}async function _0x542775(_0x1e6be,_0x49f755,_0x115b46){const _0x387f42=window[_0x539569([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x539569([0x66,0x72,0x6f,0x6d])](_0xc1eb6e(_0x115b46),_0x10c9a5=>_0x10c9a5[_0x539569([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54eaaa=new window[(_0x539569([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x539569([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e6be+_0x539569([0x2e])+_0x49f755),_0x1db9c0=window[_0x539569([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x539569([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1db9c0)return;const _0x340cdb=await _0x1db9c0[_0x539569([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x539569([0x6a,0x77,0x6b]),_0x4dcd5c,{[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x45,0x43,0x44,0x53,0x41]),[_0x539569([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x539569([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x539569([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1db9c0[_0x539569([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x45,0x43,0x44,0x53,0x41]),[_0x539569([0x68,0x61,0x73,0x68])]:{[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x340cdb,_0x387f42,_0x54eaaa)||(_0x1d020d=!0x1);}}function _0x3a83f7(_0x191fda){return _0x191fda[_0x539569([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x539569([0x65,0x79]))?JSON[_0x539569([0x70,0x61,0x72,0x73,0x65])](_0xc1eb6e(_0x191fda)):null;}function _0xc1eb6e(_0x5efea9){return window[_0x539569([0x61,0x74,0x6f,0x62])](_0x5efea9[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x539569([0x2b]))[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x539569([0x2f])));}function _0x541781(_0x379d7c){let _0x26883c=0x1505;function _0x1650ec(_0x5922de){for(let _0x18f4e1=0x0;_0x18f4e1<_0x5922de[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f4e1++){const _0x2d17b4=_0x5922de[_0x539569([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18f4e1);_0x26883c=(_0x26883c<<0x5)+_0x26883c+_0x2d17b4,_0x26883c&=_0x26883c;}}function _0x468874(_0x1f4f54){Array[_0x539569([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f4f54)?_0x1f4f54[_0x539569([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x468874):_0x1f4f54&&typeof _0x1f4f54==_0x539569([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x539569([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f4f54)[_0x539569([0x73,0x6f,0x72,0x74])]()[_0x539569([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fa06b,_0xd6ef4a])=>{_0x1650ec(_0x3fa06b),_0x468874(_0xd6ef4a);}):_0x1650ec(window[_0x539569([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f4f54));}return _0x468874(_0x379d7c),_0x26883c>>>0x0;}function _0x1bd447(_0x4c56a0){return _0x4c56a0[_0x539569([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x539569([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x539569([0x30]));}function _0x4fa537(_0x379f1c){return _0x379f1c[_0x539569([0x73,0x70,0x6c,0x69,0x74])]('')[_0x539569([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x539569([0x6a,0x6f,0x69,0x6e])]('');}function _0x261d99(_0x1a8434){return _0x5de29f[_0x539569([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x539569([0x68,0x61,0x73])](_0x1a8434);}function _0x4520c7(_0x356ece){return _0x5de29f[_0x539569([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x539569([0x67,0x65,0x74])](_0x356ece);}function _0x22002d(){}function _0x539569(_0xb56e5){return _0xb56e5['map'](_0x5b6114=>String['fromCharCode'](_0x5b6114))['join']('');}_0x21e678(await _0x5a4628());}(this);}['createRevision'](_0x5bc3c4){const _0x23a8ff=this['editor']['plugins']['get']('Users');return new I({'id':_0x5bc3c4['id'],'name':_0x5bc3c4['name'],'creator':_0x5bc3c4['creatorId']?_0x23a8ff['getUser'](_0x5bc3c4['creatorId']):null,'diffData':_0x5bc3c4['diffData']||_0x5bc3c4['data'],'authors':_0x5bc3c4['authorsIds']['map'](_0x3541eb=>_0x23a8ff['getUser'](_0x3541eb)),'createdAt':new Date(_0x5bc3c4['createdAt']),'attributes':_0x5bc3c4['attributes'],'fromVersion':_0x5bc3c4['fromVersion'],'toVersion':_0x5bc3c4['toVersion']});}['addRevision'](_0x1f6f73,_0x5b2edc=0x0){this['_revisions']['add'](_0x1f6f73,_0x5b2edc);}['getRevision'](_0x11af37){return this['_revisions']['get'](_0x11af37);}['getRevisions'](_0x49b417={'toJSON':!0x1}){const _0x379b4f=Array['from'](this['_revisions']);return _0x379b4f['reverse'](),_0x49b417['toJSON']?_0x379b4f['map'](_0x4e7ceb=>_0x4e7ceb['toJSON']()):_0x379b4f;}['getIndex'](_0x4a404b){return this['_revisions']['getIndex'](_0x4a404b);}['getEarlierVisibleRevision'](_0x2d13ff){const [,_0x11660c]=this['getRevisionsIterator'](_0x2d13ff,{'direction':'earlier'});return _0x11660c;}['getLaterVisibleRevision'](_0x3b2117){const [,_0x3693b4]=this['getRevisionsIterator'](_0x3b2117,{'direction':'later'});return _0x3693b4;}['getRevisionsInDiff'](_0x3f22bc){const _0x2d4446=[];for(const _0x330720 of this['getRevisionsIterator'](_0x3f22bc['newRevisionId']))if(_0x2d4446['push'](_0x330720),_0x330720['id']===_0x3f22bc['oldRevisionId'])break;return _0x2d4446;}*['getRevisionsIterator'](_0x5d576f,{direction:_0x53f1b8='earlier',filter:_0x312e6e=()=>!0x0}={}){const _0x26f5cf='earlier'===_0x53f1b8?0x1:-0x1;let _0xaaa0a2=this['_revisions']['get'](_0x5d576f),_0x223643=this['getIndex'](_0xaaa0a2);for(yield _0xaaa0a2;_0xaaa0a2;){if(_0x223643+=_0x26f5cf,_0xaaa0a2=this['getRevision'](_0x223643),!_0xaaa0a2)return;_0x312e6e(_0xaaa0a2)&&(yield _0xaaa0a2);}}}class $ extends _0xb302f2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x413d32,'c'],[_0x1322a8,'a'],[_0x1292f2,'e'],[_0x25a4e0,'r'],[_0x15435f,'u']]);['_typeCharToViewClass']=new Map([['c',_0x413d32],['a',_0x1322a8],['e',_0x1292f2],['r',_0x25a4e0],['u',_0x15435f]]);async['loadRevisionData'](_0x3514c4,_0x1a9f14){if(_0x3514c4['diffData']||!_0x1a9f14)return;const _0x39a65f=this['editor']['config']['get']('collaboration.channelId'),_0xb559cb=await _0x1a9f14['getRevision']({'channelId':_0x39a65f,'revisionId':_0x3514c4['id']});_0x3514c4['diffData']=_0xb559cb['diffData'];}['getRevisionDocumentData'](_0x24181c){const _0x1b9e23={};for(const _0x3583cc in _0x24181c['diffData']){if(_0x24181c['diffData'][_0x3583cc]['attachChange']&&!_0x24181c['diffData'][_0x3583cc]['attachChange']['isAttached'])continue;const _0x56f9a5=this['_removeRevisionMarkers'](JSON['parse'](_0x24181c['diffData'][_0x3583cc]['insertions'])),_0x5d9768=this['editor']['editing']['view']['document'],_0xe9af84=new _0x4ef338(_0x5d9768,_0x56f9a5['map'](_0x201005=>this['_getViewFromDiffObj'](_0x201005,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b9e23[_0x3583cc]=this['editor']['data']['processor']['toData'](_0xe9af84),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b9e23;}['getRevisionRootsAttributes'](_0x524e98){const _0x5f2c02={};for(const _0x500427 in _0x524e98['diffData'])_0x524e98['diffData'][_0x500427]['attachChange']&&!_0x524e98['diffData'][_0x500427]['attachChange']['isAttached']||(_0x5f2c02[_0x500427]=_0x524e98['diffData'][_0x500427]['attributesAfter']||{});return _0x5f2c02;}['_getTypeCharForViewElement'](_0x4a9386){return this['_viewClassToTypeChar']['get'](_0x4a9386['constructor']);}['_getViewFromDiffObj'](_0x383808,_0x173b70){const _0x464f3f=this['editor']['editing']['view']['document'];if('string'==typeof _0x383808)return new _0x2dc6c5(_0x464f3f,_0x383808);{let _0x3d3236,_0x1d2268;_0x1d2268='u'==_0x383808['type']||'r'==_0x383808['type']?[]:_0x383808['children']['map'](_0x519eed=>this['_getViewFromDiffObj'](_0x519eed,_0x173b70));const _0x556ff2=this['_typeCharToViewClass']['get'](_0x383808['type'])||_0x45fb3d,_0x392dd0=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3d3236=new _0x556ff2(_0x464f3f,_0x383808['name'],_0x383808['attributes'],_0x1d2268),'u'==_0x383808['type']&&_0x383808['children'][0x0]){const _0x193da7=_0x383808['children'][0x0];if(_0x3d3236['render']=function(_0x31361f){const _0x4a076e=_0x31361f['createElement']('div');return _0x4a076e['innerHTML']=_0x193da7,_0x4a076e['childNodes'][0x0];},_0x173b70){const _0x436a14=new _0x4ef338(_0x464f3f);_0x436a14['_appendChild'](_0x3d3236);const _0x3769be=Array['from'](_0x392dd0['viewChildrenToDom'](_0x436a14,{'bind':!0x1})),_0xceab8f=_0x392dd0['domDocument']['createElement']('div');_0xceab8f['append'](..._0x3769be),_0x3d3236=Array['from'](_0x392dd0['domChildrenToView'](_0xceab8f))[0x0];}}else{if('r'==_0x383808['type']&&_0x383808['children'][0x0]){const _0x2d7793=_0x383808['children'][0x0];if(_0x3d3236['render']=function(_0x512c8b){_0x512c8b['innerHTML']=_0x2d7793;},_0x173b70){const _0x3b5108=new _0x4ef338(_0x464f3f);_0x3b5108['_appendChild'](_0x3d3236);const _0x100956=Array['from'](_0x392dd0['viewChildrenToDom'](_0x3b5108,{'bind':!0x1})),_0x84330c=_0x392dd0['domDocument']['createElement']('div');_0x84330c['append'](..._0x100956);const _0x4358dc=Array['from'](_0x392dd0['domChildrenToView'](_0x84330c));_0x4358dc['length']>0x1?_0x3d3236['_appendChild'](_0x4358dc):_0x3d3236=_0x4358dc[0x0];}}}if(_0x383808['customProperties']){for(const [_0x50c5b2,_0x2f2052]of _0x383808['customProperties'])_0x3d3236['_setCustomProperty'](_0x50c5b2,_0x2f2052);}const _0x590355=void 0x0===_0x383808['fillerOffset']?null:_0x383808['fillerOffset'];return null!==_0x590355&&(_0x3d3236['getFillerOffset']=()=>_0x590355),_0x3d3236;}}['_makeModelFromViewString'](_0x3e622c){const _0xa0ac22=JSON['parse'](_0x3e622c),_0x1f7c86=this['editor']['editing']['view']['document'],_0xd4935f=new _0x4ef338(_0x1f7c86,_0xa0ac22['map'](_0x31855d=>this['_getViewFromDiffObj'](_0x31855d,!0x0)));return this['editor']['data']['toModel'](_0xd4935f);}['_removeRevisionMarkers'](_0x25f50b){return(_0x25f50b=_0x25f50b['filter'](_0x5f59c9=>!_0x5f59c9['name']||'revision-start'!==_0x5f59c9['name']&&'revision-end'!==_0x5f59c9['name']))['forEach'](_0x265dac=>{'string'!=typeof _0x265dac&&(_0x265dac['children']=this['_removeRevisionMarkers'](_0x265dac['children']),_0x265dac['attributes']=_0x265dac['attributes']['filter'](_0x42f787=>!_0x42f787[0x0]['startsWith']('data-revision-')));}),_0x25f50b;}}function m(_0x2cffc3,_0x3c47b,_0x3b27d1){const t=_0x2cffc3['t'];switch(_0x3c47b){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'},_0x3b27d1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b27d1);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 _0xb302f2{['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[_0x5232bd,S,$,_0x3f7589];}constructor(_0x2e917f){super(_0x2e917f),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 _0x437317=_0x40f93b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x437317},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 _0x22c8cb=this['repository']['getRevision'](0x0),_0x1df626=_0x22c8cb&&null===_0x22c8cb['creator']?_0x22c8cb:null;if(this['_continueCurrentRevision']=!!_0x1df626&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3dd784=this['_source']['getCurrentRevisionId'](),_0x5caa96=this['repository']['getRevision'](_0x3dd784);if(_0x5caa96)this['_startingVersion']=_0x5caa96['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x14e414=this['_source']['history']['_operations']['find'](_0x372993=>!_0x372993['_isInit']),_0x1e8a29=_0x14e414?_0x14e414['baseVersion']:this['_source']['history']['version'];_0x22c8cb?(_0x22c8cb['toVersion']<_0x1e8a29&&_0x22c8cb['_update']({'toVersion':_0x1e8a29}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id'],this['_startingVersion']=_0x1df626['fromVersion']):(this['_startingVersion']=_0x22c8cb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1e8a29,this['_continueCurrentRevision']=!0x1);}}else _0x1df626&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1df626['toVersion'],this['editor']['model']['document']['history']['version']),_0x1df626['fromVersion']===_0x1df626['toVersion']?(0x0!==_0x1df626['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id'],this['_startingVersion']=_0x1df626['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',_0x28f210=>!_0x28f210),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b63c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f8840;for(const _0x1ec10d in _0x4b63c0){const _0x40e5a9=_0x1ec10d,_0x2c6156=_0x4b63c0[_0x40e5a9];if('revisionHistoryLicenseKeyValid'==_0x2c6156||'revisionHistoryLicenseKeyInvalid'==_0x2c6156||'revisionHistoryLicenseKeyExpired'==_0x2c6156||'revisionHistoryLicenseKeyDomainLimit'==_0x2c6156||'revisionHistoryLicenseKeyNotAllowed'==_0x2c6156||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c6156||'revisionHistoryLicenseKeyTrialLimit'==_0x2c6156||'revisionHistoryLicenseKeyUsageLimit'==_0x2c6156){delete _0x4b63c0[_0x40e5a9],_0x4f8840=_0x2c6156,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4f8840&&_0x4b63c0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4f8840&&_0x4b63c0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4f8840&&_0x4b63c0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x38df2a=this['repository']['getRevision'](0x0),_0x3f9029=await this['getRevisionDocumentData'](_0x38df2a),_0x545172=await this['getRevisionRootsAttributes'](_0x38df2a);this['_replaceEditorDataWithRevisionData'](_0x3f9029,_0x545172);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1ec066){this['_source']=_0x1ec066;}async['update'](){const _0x5bf090=await this['_source']['getLatestVersion']();if(_0x5bf090>this['currentRevision']['toVersion']){await this['_loadState']();const _0xabb86d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5bf090});_0xabb86d['authors']=_0xabb86d['authorsIds']['map'](_0x319abc=>this['editor']['plugins']['get']('Users')['getUser'](_0x319abc)),this['currentRevision']['_update'](_0xabb86d);}}async['saveRevision'](_0x2fecc5={},_0x5a54bb=null){const _0x1d85d7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5a54bb>this['currentRevision']['toVersion']&&(_0x5a54bb=null),null===_0x5a54bb&&(_0x5a54bb=await this['_source']['getLatestVersion']());const _0xa6e734=this['_getFromVersion'](_0x5a54bb),_0x27adb1=this['buildRevisionData']({'from':_0xa6e734,'to':_0x5a54bb});if(this['currentRevision']['toVersion']<_0x5a54bb){const _0x5974db=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5a54bb,'to':_0x5a54bb});_0x5974db['authors']=[],_0x5974db['authorsIds']=[],_0x5974db['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5974db,!0x0),delete _0x5974db['authors'],_0x1d85d7['push'](_0x5974db);}_0x2fecc5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fecc5['name']=_0x2fecc5['name']||null,_0x2fecc5['id']=_0x2fecc5['id']||_0x40f93b(),_0x2fecc5={..._0x2fecc5,..._0x27adb1};const _0x359401=this['addRevisionData'](_0x2fecc5);_0x1d85d7['push'](_0x2fecc5);const _0x282b3d=this['repository']['getIndex'](_0x359401);if(0x0!==_0x282b3d){const _0x208d1f=this['repository']['getRevision'](_0x282b3d-0x1);if(_0x208d1f['fromVersion']!==_0x5a54bb){const _0x19f313=this['_revisionDataBuilder']['getData'](_0x5a54bb,_0x208d1f['toVersion']),_0x4dd2f6={'id':_0x208d1f['id'],'diffData':_0x19f313['diffData'],'authorsIds':_0x19f313['authorsIds'],'authors':_0x19f313['authorsIds']['map'](_0x2c3ae8=>this['editor']['plugins']['get']('Users')['getUser'](_0x2c3ae8)),'fromVersion':_0x5a54bb};_0x208d1f===this['currentRevision']&&(_0x4dd2f6['createdAt']=new Date(_0x2fecc5['createdAt']['getTime']()+0xa)),_0x208d1f['_update'](_0x4dd2f6,!0x0),delete _0x4dd2f6['authors'],_0x1d85d7['push'](_0x4dd2f6);}}if(this['adapter']){for(const _0x754cc7 of _0x1d85d7)this['_bufferUpdate'](_0x754cc7['id'],_0x754cc7,!0x0);this['sendBufferedUpdates']();}return _0x359401;}['addRevisionData'](_0x135041){const _0x5c2935=this['repository']['createRevision'](_0x135041);return this['adapter']&&_0x5c2935['on']('_update',(_0x3fb8eb,_0x3a9869,_0x205d49)=>{_0x205d49||(this['_bufferUpdate'](_0x3a9869['id'],_0x3a9869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c2935,this['_findInsertionIndex'](_0x5c2935)),_0x5c2935;}async['getRevisionDocumentData'](_0x5a7bb7){return await this['_utils']['loadRevisionData'](_0x5a7bb7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5a7bb7);}async['getRevisionRootsAttributes'](_0x1f2a3a){return await this['_utils']['loadRevisionData'](_0x1f2a3a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1f2a3a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7b87d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x58b169=0x0;_0x58b169<_0x7b87d['length'];_0x58b169++){const _0x220a27=_0x7b87d[_0x58b169];let _0x4736d2=!0x1;for(const _0x349f31 of Object['keys'](_0x220a27))void 0x0===_0x220a27[_0x349f31]?delete _0x220a27[_0x349f31]:'id'!==_0x349f31&&(_0x4736d2=!0x0);_0x4736d2||(_0x7b87d[_0x58b169]=null);}if(_0x7b87d=_0x7b87d['filter'](_0x4fca08=>null!==_0x4fca08),!_0x7b87d['length'])return;for(let _0x416130=0x0;_0x416130<_0x7b87d['length'];_0x416130++){const _0x10520e=_0x7b87d[_0x416130];void 0x0!==_0x10520e['fromVersion']&&void 0x0===_0x10520e['toVersion']&&(_0x10520e['toVersion']=this['repository']['getRevision'](_0x10520e['id'])['toVersion']),void 0x0!==_0x10520e['toVersion']&&void 0x0===_0x10520e['fromVersion']&&(_0x10520e['fromVersion']=this['repository']['getRevision'](_0x10520e['id'])['fromVersion']);}const _0x19cd19=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7b87d,_0x19cd19)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x28c5ef=>{if(_0x28c5ef){for(const _0x2604d1 of _0x28c5ef)this['setRevisionData']({'id':_0x2604d1['id'],'createdAt':_0x2604d1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x31d383=null,from:_0x3ad600=null,to:_0x4855db=null}){_0x3ad600=null!==_0x3ad600?_0x3ad600:_0x31d383['fromVersion'],_0x4855db=null!==_0x4855db?_0x4855db:_0x31d383['toVersion'];const _0x31518b=this['_revisionDataBuilder']['getData'](_0x3ad600,_0x4855db),_0x5150b4={'diffData':_0x31518b['diffData'],'authorsIds':_0x31518b['authorsIds'],'fromVersion':_0x3ad600,'toVersion':_0x4855db};if(!_0x31d383||_0x4855db!==_0x31d383['toVersion']){const _0x50717a=_0x4855db-0x1,_0x2b88a9=this['_source']['history']['getOperation'](_0x50717a);_0x5150b4['createdAt']=_0x2b88a9&&_0x2b88a9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3ad600===this['_loadedStateData']['fromVersion']){for(const _0x40e373 of this['_loadedStateData']['authors'])_0x5150b4['authorsIds']['includes'](_0x40e373['id'])||_0x5150b4['authorsIds']['push'](_0x40e373['id']);}return _0x5150b4;}['_bufferUpdate'](_0x4d0ebc,_0xcd408a,_0x32fa72){if(this['_bufferedUpdates']['has'](_0x4d0ebc)){const _0x5a904d=this['_bufferedUpdates']['get'](_0x4d0ebc);_0xcd408a=_0x32fa72?{..._0x5a904d,..._0xcd408a}:{..._0xcd408a,..._0x5a904d};}this['_bufferedUpdates']['set'](_0x4d0ebc,_0xcd408a);}['setRevisionData'](_0x23f432){const _0x570027=this['repository']['getRevision'](_0x23f432['id']);if(_0x23f432['createdAt']&&(_0x23f432['createdAt']=new Date(_0x23f432['createdAt'])),_0x23f432['authorsIds']){const _0x398cd3=this['editor']['plugins']['get']('Users');_0x23f432['authors']=_0x23f432['authorsIds']['map'](_0x2ddf21=>_0x398cd3['getUser'](_0x2ddf21));}_0x570027['_update'](_0x23f432,!0x0);}['_createInitialRevision'](_0x8d0958){const _0x12c31e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x12c31e)this['_initialRevisionId']=_0x12c31e['id'];else{const _0x1f28bc=!this['editor']['model']['document']['roots']['find'](_0x3bdce2=>this['editor']['model']['hasContent'](_0x3bdce2)),_0x42416c=this['editor']['plugins']['get']('Users')['me']['id'],_0x4484db=m(this['editor']['locale'],_0x1f28bc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x8d0958,'to':_0x8d0958,'id':this['_initialRevisionId'],'name':_0x4484db,'creatorId':_0x42416c});}}['_createCurrentRevision'](_0x4b5a4c){const _0x4dbabb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4dbabb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4b5a4c,'to':_0x4b5a4c,'id':_0x4dbabb,'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'](_0x412a00,_0x443c5e){let _0x40194a=this['editor']['config']['get']('initialData'),_0x13eb06=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x40194a){_0x40194a={};for(const _0x3021ce of this['editor']['model']['document']['getRootNames']())_0x40194a[_0x3021ce]='';}if('string'==typeof _0x40194a&&(_0x40194a={'main':_0x40194a}),void 0x0===_0x13eb06){_0x13eb06={};for(const _0x10828d of this['editor']['model']['document']['getRootNames']())_0x13eb06[_0x10828d]={};}let _0x4c0bc7=!0x1;const _0x6281ff=Object['keys'](_0x40194a),_0x47ce30=Object['keys'](_0x412a00);for(const _0x71273c of _0x6281ff){if(_0x40194a[_0x71273c]!==_0x412a00[_0x71273c]&&''!==_0x40194a[_0x71273c]['trim']()){_0x4c0bc7=!0x0;break;}if(!_0x66705b(_0x13eb06[_0x71273c],_0x443c5e[_0x71273c])&&Object['keys'](_0x13eb06[_0x71273c])['length']>0x0){_0x4c0bc7=!0x0;break;}}_0x4c0bc7||(_0x4c0bc7=_0x47ce30['some'](_0x5ca446=>!this['editor']['model']['document']['getRoot'](_0x5ca446))),_0x4c0bc7&&_0x307535('editor-initial-data-replaced-with-revision-data',{'editorData':_0x40194a,'editorRootsAttributes':_0x13eb06,'revisionData':_0x412a00,'revisionRootsAttributes':_0x443c5e}),this['editor']['config']['set']('initialData',_0x412a00),this['editor']['config']['set']('rootsAttributes',_0x443c5e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x570552=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x570552['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2805fc){const _0x10dd47=this['repository']['getRevisions']();_0x10dd47['reverse']();let _0x17e2e9=0x0;for(;_0x17e2e9<_0x10dd47['length'];){const _0x1fa87e=_0x10dd47[_0x17e2e9];if(_0x1fa87e===this['currentRevision']){_0x17e2e9++;continue;}if(_0x1fa87e['id']===this['_initialRevisionId'])break;const _0x282bec=_0x2805fc['toVersion']-_0x1fa87e['toVersion']||_0x2805fc['fromVersion']-_0x1fa87e['fromVersion'];if(_0x282bec>0x0)break;if(_0x282bec<0x0)_0x17e2e9++;else{if(!_0x2805fc['creator']&&_0x1fa87e['creator'])break;if(_0x1fa87e['creator']||!_0x2805fc['creator']){if(_0x2805fc['createdAt']>_0x1fa87e['createdAt'])break;_0x17e2e9++;}else _0x17e2e9++;}}return _0x17e2e9;}['_getFromVersion'](_0x280a41){const _0x4eebca=this['repository']['getRevisions']();_0x4eebca['reverse'](),_0x4eebca['shift']();const _0x263f1e=_0x4eebca['find'](_0x360dc0=>_0x360dc0['toVersion']<=_0x280a41)['toVersion'];return _0x263f1e<this['_startingVersion']?this['_startingVersion']:_0x263f1e;}['_makeRevision']({name:_0x189474,from:_0x3ad467,to:_0x58e1e4,creatorId:_0x30997e,id:_0x590eac}){const _0x29fab1=this['buildRevisionData']({'from':_0x3ad467,'to':_0x58e1e4});_0x29fab1['name']=_0x189474,_0x29fab1['creatorId']=_0x30997e,_0x29fab1['id']=_0x590eac;const _0x21862b=this['addRevisionData'](_0x29fab1);return this['adapter']&&this['_bufferUpdate'](_0x29fab1['id'],_0x29fab1,!0x0),_0x21862b;}['_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(_0x2ba826){this['editor']=_0x2ba826,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'](_0x2c0a0c){this['source']=_0x2c0a0c;const _0x21f1e6=new Map(),_0x48e064=new Map(),_0x7d3997=this['editor']['model']['document']['roots']['map'](_0x1388fa=>_0x1388fa['rootName']);for(const _0x332646 of _0x7d3997){const _0x253ed7=this['editor']['model']['document']['getRoot'](_0x332646),_0x147f99=x(_0x253ed7);_0x21f1e6['set'](_0x332646,_0x147f99),_0x48e064['set'](_0x332646,Object['fromEntries'](_0x253ed7['getAttributes']()));}const _0x2cb4b3=Array['from'](this['editor']['model']['markers'])['map'](_0x494b64=>[_0x494b64['name'],_0x494b64['getRange']()]),_0x2614de=this['source']['version'];this['_saveMetaData'](_0x2614de,_0x21f1e6,_0x2cb4b3,_0x48e064),this['_startingRevisionId']=this['_revisionId'];const _0xc124da=new Map(),_0x44e080=new Map();for(const _0x353482 of _0x7d3997){const _0x509736=N(_0x353482);_0xc124da['set'](_0x353482,_0x509736),_0x44e080['set'](_0x353482,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc124da,[],_0x44e080);}['getData'](_0x51d3c4,_0x3cf15e){if(this['_lastFrom']===_0x51d3c4&&this['_lastTo']<=_0x3cf15e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3cf15e,!0x0);else{if(!this['_savedMetaData']['has'](_0x51d3c4)){const _0x43b8ce=this['_getPreviousFrom'](_0x51d3c4);this['_calculateMetaData'](_0x43b8ce,_0x51d3c4,!0x1);}this['_calculateMetaData'](_0x51d3c4,_0x3cf15e,!0x0);}return this['_lastFrom']=_0x51d3c4,this['_lastTo']=_0x3cf15e,this['_getState']();}['loadState'](_0x3c21b8){if(!this['_savedMetaData']['has'](_0x3c21b8['fromVersion'])){const _0x1ac8ed=this['_getPreviousFrom'](_0x3c21b8['fromVersion']);this['_calculateMetaData'](_0x1ac8ed,_0x3c21b8['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3c21b8['fromVersion'],_0x3c21b8['toVersion'],!0x1);const _0x4e2689=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3c21b8['fromVersion'],this['_lastTo']=_0x3c21b8['toVersion'];for(const _0x5173a8 in _0x3c21b8['diffData']){const _0x3b03f7=_0x3c21b8['diffData'][_0x5173a8]['attachChange'],_0x43dc20=_0x378b0e(_0x3c21b8['diffData'][_0x5173a8]['attributesBefore'])||{},_0xc98035=_0x4e2689['_makeModelFromViewString'](_0x3c21b8['diffData'][_0x5173a8]['deletions']);_0xc98035['rootName']=_0x5173a8,_0xc98035['_isAttached']=!_0x3b03f7||!_0x3b03f7['isAttached'],_0xc98035['isAttached']=()=>_0xc98035['_isAttached'],this['_baseRoots']['set'](_0x5173a8,_0xc98035),this['_baseRootsAttributes']['set'](_0x5173a8,_0x43dc20),_0x3b03f7&&this['_touchedRoots']['set'](_0x5173a8,_0x3b03f7);const _0x29f276=this['_makeIdsRoot'](_0xc98035);this['_baseIdsRoots']['set'](_0x5173a8,_0x29f276);for(const [_0x5c36a2,_0x2ee9b6]of _0xc98035['markers']){if(!_0x5c36a2['startsWith']('revision:'))continue;const _0x9f2771=_0x5c36a2['split'](':')[0x2];for(const _0x5c0be6 of _0x2ee9b6['getWalker']({'singleCharacters':!0x0})){const _0x2846e9=this['_getVidAttributeName'](_0x5c0be6),_0x275385='elementEnd'==_0x5c0be6['type']?_0x5c0be6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c0be6['previousPosition']['path'],_0x4c061f=_0x29f276['getNodeByPath'](_0x275385)['getAttribute'](_0x2846e9);this['_touched']['set'](_0x4c061f,{'userId':_0x9f2771});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1e153b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1071d5=>!this['_touched']['has'](_0x1071d5));let _0xde5c65=0x0;const _0x3d4cd9=new Map();for(const _0x4e1187 in _0x3c21b8['diffData']){const _0x16390a=_0x3c21b8['diffData'][_0x4e1187]['attachChange'],_0x33c284=_0x378b0e(_0x3c21b8['diffData'][_0x4e1187]['attributesAfter'])||{},_0x512eca=_0x4e2689['_makeModelFromViewString'](_0x3c21b8['diffData'][_0x4e1187]['insertions']);_0x512eca['rootName']=_0x4e1187,_0x512eca['_isAttached']=!_0x16390a||_0x16390a['isAttached'],_0x512eca['isAttached']=()=>_0x512eca['_isAttached'],this['_diffRoots']['set'](_0x4e1187,_0x512eca),this['_diffRootsAttributes']['set'](_0x4e1187,_0x33c284);const _0x461f6c=this['_makeIdsRoot'](_0x512eca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e1187,_0x461f6c),_0x3d4cd9['set'](_0x4e1187,_0x512eca['isAttached']()?_0x33c284:{});for(const [_0x40e8ce,_0x5e25bf]of _0x512eca['markers']){if(!_0x40e8ce['startsWith']('revision:'))continue;const _0x59eafc=_0x40e8ce['split'](':')[0x2];for(const _0x39333b of _0x5e25bf['getWalker']({'singleCharacters':!0x0})){const _0x2574ad=this['_getVidAttributeName'](_0x39333b),_0x3fde15=this['_revisionId']++,_0x187f7a='elementEnd'==_0x39333b['type']?_0x39333b['previousPosition']['path']['slice'](0x0,-0x1):_0x39333b['previousPosition']['path'];_0x461f6c['getNodeByPath'](_0x187f7a)['_setAttribute'](_0x2574ad,_0x3fde15),this['_touched']['set'](_0x3fde15,{'userId':_0x59eafc});}}for(const _0x14a6a7 of this['editor']['model']['createRangeIn'](_0x512eca)['getWalker']({'singleCharacters':!0x0})){const _0x59912=this['_getVidAttributeName'](_0x14a6a7),_0x1cec8d='elementEnd'==_0x14a6a7['type']?_0x14a6a7['previousPosition']['path']['slice'](0x0,-0x1):_0x14a6a7['previousPosition']['path'],_0x4d2dca=_0x461f6c['getNodeByPath'](_0x1cec8d);_0x4d2dca['getAttribute'](_0x59912)>0x0||_0x4d2dca['_setAttribute'](_0x59912,_0x1e153b[_0xde5c65++]);}for(const [_0x4d851d,_0x2e7a62]of _0x512eca['markers'])_0x4d851d['startsWith']('revision:')||this['_markers']['set'](_0x4d851d,_0x2e7a62);}const {roots:_0x3a8593}=this['_savedMetaData']['get'](_0x3c21b8['fromVersion']),{roots:_0x83a72c}=this['_savedMetaData']['get'](_0x3c21b8['toVersion']),_0x2d7cc7=x(_0x3a8593['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2d7cc7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d7cc7,Number['NEGATIVE_INFINITY']));const _0x414be4=x(_0x83a72c['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x414be4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x414be4));const _0x33f475=Array['from'](this['_diffRoots'])['map'](([_0x45d648,_0x30b036])=>[_0x45d648,x(_0x30b036)]);this['_saveMetaData'](this['_lastTo'],_0x33f475,this['_markers'],_0x3d4cd9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x41e43f,_0x5c3cc1,_0x44720f,_0x4d0750){const _0x24c668=new Map(_0x5c3cc1),_0xb51996=new Map(_0x378b0e(_0x4d0750)),_0x59a8e2=new Map();for(const [_0x15dc4d,_0x5eb1da]of _0x44720f)_0x59a8e2['set'](_0x15dc4d,{'start':_0x5eb1da['start']['clone'](),'end':_0x5eb1da['end']['clone'](),'rootName':_0x5eb1da['root']['rootName']});this['_savedMetaData']['set'](_0x41e43f,{'roots':_0x24c668,'markers':_0x59a8e2,'rootsAttributes':_0xb51996});}['_removeMetaData'](_0xc4ea23){this['_savedMetaData']['delete'](_0xc4ea23);}['_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'](_0x328812,_0x12ca57=null){let _0x5b4554=null;_0x328812['is']('documentFragment')||(_0x5b4554=new _0x82277c(_0x328812['name'],{'vid_start':null===_0x12ca57?this['_revisionId']++:_0x12ca57++}));const _0x4e5497=[];for(const _0x34f46d of _0x328812['getChildren']())if(_0x34f46d['is']('element')){_0x4e5497['push'](this['_makeIdsRoot'](_0x34f46d,_0x12ca57));const _0x3086b8=_0x4e5497[_0x4e5497['length']-0x1];null!==_0x12ca57&&(_0x12ca57=_0x3086b8['is']('element','$text')?_0x3086b8['getAttribute']('vid')+0x1:_0x3086b8['getAttribute']('vid_end')+0x1);}else{for(let _0x361eef=0x0;_0x361eef<_0x34f46d['offsetSize'];_0x361eef++)_0x4e5497['push'](new _0x82277c('$text',{'vid':null===_0x12ca57?this['_revisionId']++:_0x12ca57++}));}if(_0x328812['is']('documentFragment')){const _0x4dec25=N(_0x328812['rootName']);return _0x4dec25['_insertChild'](0x0,_0x4e5497),_0x4dec25;}return _0x5b4554['_setAttribute']('vid_end',null===_0x12ca57?this['_revisionId']++:_0x12ca57++),_0x5b4554['_insertChild'](0x0,_0x4e5497),_0x5b4554;}['_calculateMetaData'](_0x28c114,_0x4b5bf2,_0x4ecde8){this['_reset']();const {roots:_0xae3b39,markers:_0x35f85e,rootsAttributes:_0x381d98}=this['_savedMetaData']['get'](_0x28c114);this['_baseRoots']=new Map(_0xae3b39),this['_baseRootsAttributes']=new Map(_0x378b0e(_0x381d98));for(const [_0x7fb253,_0xb316f9]of this['_baseRoots'])if('$graveyard'!==_0x7fb253&&(this['_diffRoots']['set'](_0x7fb253,x(_0xb316f9)),this['_diffRootsAttributes']=new Map(_0x378b0e(_0x381d98)),_0x4ecde8)){const _0x1ee3fc=this['_revisionId'];this['_idsRoots']['set'](_0x7fb253,this['_makeIdsRoot'](_0xb316f9)),this['_baseIdsRoots']['set'](_0x7fb253,this['_makeIdsRoot'](_0xb316f9,_0x1ee3fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4ecde8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c846f,_0x4c8c6b]of _0x35f85e){const _0x2a3d17=this['_baseRoots']['get'](_0x4c8c6b['rootName']),_0xb7a01a=this['_diffRoots']['get'](_0x4c8c6b['rootName']),_0x27050d=new _0x5c8fff(this['_fixPosition'](_0x4c8c6b['start'],_0x2a3d17),this['_fixPosition'](_0x4c8c6b['end'],_0x2a3d17)),_0x305e5b=this['_fixRange'](_0x27050d,_0xb7a01a);_0x2a3d17['markers']['set'](_0x4c846f,_0x27050d),this['_markers']['set'](_0x4c846f,_0x305e5b);}this['_applyOperations'](_0x28c114,_0x4b5bf2,_0x4ecde8);}['_applyOperations'](_0x49f293,_0x27a8fd,_0x56c8ac){for(const _0x5ea952 of this['source']['getOperations'](_0x49f293,_0x27a8fd))this['_handleOperation'](_0x5ea952,_0x56c8ac);for(const _0x1ead45 of this['_diffRoots']['values']())_0x1ead45['markers']['clear']();for(const [_0x5e40ef,_0x18ec01]of this['_markers']){this['_diffRoots']['get'](_0x18ec01['root']['rootName'])['markers']['set'](_0x5e40ef,_0x18ec01['clone']());}const _0x12cdfb=new Map(),_0x25e294=new Map();for(const [_0x61f9e3,_0x2291c1]of this['_diffRoots'])_0x12cdfb['set'](_0x61f9e3,x(_0x2291c1)),_0x25e294['set'](_0x61f9e3,this['_diffRootsAttributes']['get'](_0x61f9e3));this['_saveMetaData'](_0x27a8fd,_0x12cdfb,this['_markers'],_0x25e294);}['_getPreviousFrom'](_0x380724){const _0x4b63b3=Array['from'](this['_savedMetaData']['keys']());_0x4b63b3['sort']((_0x3b25d3,_0x3400ca)=>_0x3b25d3-_0x3400ca),_0x4b63b3['reverse']();for(const _0x267e27 of _0x4b63b3)if(_0x267e27<_0x380724)return _0x267e27;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x614e64,_0x3985bd){const _0x28ff07=Array['from'](_0x3985bd['markers'])['map'](([_0x43ef6c,_0x49af5c])=>[_0x43ef6c,this['_fixRange'](_0x49af5c,_0x614e64)]);_0x614e64['markers']=new Map(_0x28ff07);}['_transformMarkers'](_0x45f225){for(const _0x1e2338 of this['_markers']['values']()){const _0x5050cc=_0x1e2338['getTransformedByOperation'](_0x45f225),_0x43f26f=_0x5c8fff['_createFromRanges'](_0x5050cc);_0x1e2338['start']=_0x43f26f['start'],_0x1e2338['end']=_0x43f26f['end'];}}['_handleOperation'](_0x518761,_0x40b4d9){if('addRoot'!=_0x518761['type']&&'detachRoot'!=_0x518761['type']){if('insert'==_0x518761['type']){const _0x206f04=_0x518761['position']['root']['rootName'];this['_diffRoots']['has'](_0x206f04)||(this['_diffRoots']['set'](_0x206f04,N(_0x206f04,!0x0)),this['_diffRootsAttributes']['set'](_0x206f04,{}),_0x40b4d9&&this['_idsRoots']['set'](_0x206f04,N(_0x206f04,!0x0)));}else{if('addRootAttribute'==_0x518761['type']||'removeRootAttribute'==_0x518761['type']||'changeRootAttribute'==_0x518761['type'])return void this['_handleRootAttributeOperation'](_0x518761);'marker'==_0x518761['type']&&this['_handleMarkerOperation'](_0x518761);}if('marker'!==_0x518761['type']){const _0x2b47ea=this['_cloneOperation'](_0x518761,this['_diffRoots']);_0x2b47ea['_execute'](),this['_transformMarkers'](_0x2b47ea);}if(_0x40b4d9)switch(_0x518761['type']){case'insert':this['_handleInsertOperation'](_0x518761);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x518761);break;case'merge':this['_handleMergeOperation'](_0x518761);break;case'split':this['_handleSplitOperation'](_0x518761);}}else this['_handleRootOperation'](_0x518761,_0x40b4d9);}['_cloneOperation'](_0x5587e4,_0x1182f1){const _0xe543a6=_0x5587e4['clone']();return _0xe543a6['_authorId']=_0x5587e4['_authorId'],this['_fixOperation'](_0xe543a6,_0x1182f1),_0xe543a6;}['_getBaseVids'](_0x5c137d){return _0x5c137d['map'](_0x7a2e8f=>{const _0x95a9e5=this['_getVidAttributeName'](_0x7a2e8f);return Number(_0x7a2e8f['item']['getAttribute'](_0x95a9e5));});}['_generateTape'](_0x15bf58,_0x3de550){if(_0x15bf58['is']('element','$text'))_0x3de550['push']({'item':_0x15bf58,'type':'text'});else{_0x15bf58['is']('element')&&_0x3de550['push']({'item':_0x15bf58,'type':'elementStart'});for(const _0x59fefe of _0x15bf58['getChildren']())this['_generateTape'](_0x59fefe,_0x3de550);_0x15bf58['is']('element')&&_0x3de550['push']({'item':_0x15bf58,'type':'elementEnd'});}return _0x3de550;}['_getState'](){const _0x3be6ee=new Map(this['_touched']),_0x5a14cc=new Map(_0x3be6ee),_0x1b021d=new Map(),_0x1fc661={'insertions':{},'deletions':{}},_0x2cb73b={'insertions':{},'deletions':{}},_0x5b95ae=new Map(),_0x3032a8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3032a8['delete']('$graveyard');for(const _0x45ab98 of _0x3032a8){const _0x5011d5=this['_diffRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1),_0x255fac=this['_baseRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1);_0x5011d5['isAttached']()||_0x255fac['isAttached']()?(_0x1fc661['insertions'][_0x45ab98]=x(_0x5011d5),_0x1fc661['deletions'][_0x45ab98]=x(_0x255fac),this['_copyMarkers'](_0x1fc661['deletions'][_0x45ab98],_0x255fac),this['_copyMarkers'](_0x1fc661['insertions'][_0x45ab98],_0x5011d5),_0x2cb73b['insertions'][_0x45ab98]=this['_generateTape'](this['_idsRoots']['get'](_0x45ab98),[]),_0x2cb73b['deletions'][_0x45ab98]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1),[])):_0x3032a8['delete'](_0x45ab98);}for(const _0x121ae2 of _0x3032a8){const _0x3b453e=_0x2cb73b['insertions'][_0x121ae2];for(const _0xa6805e of _0x3b453e){const _0x3b14e6=this['_getVidAttributeName'](_0xa6805e),_0x34c151=_0xa6805e['item']['getAttribute'](_0x3b14e6);_0x5a14cc['delete'](_0x34c151),_0x34c151>=this['_startingRevisionId']&&_0x1b021d['set'](_0x34c151,_0x3be6ee['get'](_0x34c151));}}for(const _0x1bf10d of _0x3032a8){const _0x2140bb=_0x2cb73b['insertions'][_0x1bf10d],_0x16f69e=this['_getBaseVids'](_0x2cb73b['deletions'][_0x1bf10d]);let _0x14143b=0x0;for(const _0x434603 of _0x2140bb){const _0x55dd95=this['_getVidAttributeName'](_0x434603),_0xcc5f0f=_0x434603['item']['getAttribute'](_0x55dd95);if(!_0x1b021d['has'](_0xcc5f0f)&&!_0x5b95ae['has'](_0xcc5f0f)){if(_0x5a14cc['has'](_0xcc5f0f))_0x14143b++;else{if(_0xcc5f0f!=_0x16f69e[_0x14143b]){const _0x4cdcb6=_0x3be6ee['get'](_0xcc5f0f)||_0x3be6ee['get'](_0x16f69e[_0x14143b]);for(;_0xcc5f0f!=_0x16f69e[_0x14143b];)_0x5a14cc['has'](_0x16f69e[_0x14143b])||(_0x5b95ae['set'](_0x16f69e[_0x14143b],_0x4cdcb6),_0x3be6ee['set'](_0x16f69e[_0x14143b],_0x4cdcb6)),_0x14143b++;}_0x14143b++;}}}}for(const _0x3f4ac0 of _0x3032a8){const _0x45a98c=_0x2cb73b['insertions'][_0x3f4ac0];for(const _0x421949 of _0x45a98c){const _0x3fb83d=this['_getVidAttributeName'](_0x421949),_0x529844=_0x421949['item']['getAttribute'](_0x3fb83d);if(_0x5b95ae['has'](_0x529844)){const _0x457d0d=_0x5b95ae['get'](_0x529844);_0x5a14cc['has'](_0x529844)||_0x5a14cc['set'](_0x529844,{..._0x457d0d}),_0x1b021d['set'](_0x529844,{..._0x457d0d});}}}for(const _0x340363 of _0x5a14cc['keys']())_0x340363>=this['_startingRevisionId']&&_0x5a14cc['delete'](_0x340363);const _0x2fefb5=new Map();for(const _0x5e71ac of _0x3032a8){let _0x287e60=_0x2cb73b['insertions'][_0x5e71ac];for(const _0x18ff5c of _0x287e60)if(_0x18ff5c['item']['is']('element','tableCell')){const _0x5c2771=this['_getVidAttributeName'](_0x18ff5c),_0x2506ac=_0x18ff5c['item']['getAttribute'](_0x5c2771);if(_0x1b021d['has'](_0x2506ac)){const _0x3f1e5a=_0x18ff5c['item']['parent']['parent']['getAttribute']('vid_start'),_0x81ae50=_0x2fefb5['get'](_0x3f1e5a)||new Set();_0x81ae50['add'](_0x1b021d['get'](_0x2506ac)['userId']),_0x2fefb5['set'](_0x3f1e5a,_0x81ae50);}}_0x287e60=_0x2cb73b['deletions'][_0x5e71ac];for(const _0x3df64d of _0x287e60)if(_0x3df64d['item']['is']('element','tableCell')){const _0x2490ec=this['_getVidAttributeName'](_0x3df64d),_0x1defb3=_0x3df64d['item']['getAttribute'](_0x2490ec);if(_0x5a14cc['has'](_0x1defb3)){const _0x2cae1c=_0x3df64d['item']['parent']['parent']['getAttribute']('vid_start'),_0x14047f=_0x2fefb5['get'](_0x2cae1c)||new Set();_0x14047f['add'](_0x5a14cc['get'](_0x1defb3)['userId']),_0x2fefb5['set'](_0x2cae1c,_0x14047f);}}for(const _0x2e6a75 of _0x2fefb5['keys']())(_0x1b021d['has'](_0x2e6a75)||_0x5a14cc['has'](_0x2e6a75))&&_0x2fefb5['delete'](_0x2e6a75);}for(const _0x26d622 of _0x3032a8){const _0x20d42a=_0x2cb73b['insertions'][_0x26d622];let _0x3af482=null,_0x3e73ff=null;for(const _0x441315 of _0x20d42a){const _0x5045af=this['_getVidAttributeName'](_0x441315),_0x2ef5d9=_0x441315['item']['getAttribute'](_0x5045af),_0x3f1a22=_0x2fefb5['get'](_0x2ef5d9);_0x3f1a22&&'elementStart'==_0x441315['type']&&(_0x3af482=Array['from'](_0x3f1a22)[0x0],_0x3e73ff=_0x441315['item']['getAttribute']('vid_end')),_0x3af482&&(_0x5a14cc['set'](_0x2ef5d9,{'userId':_0x3af482}),_0x1b021d['set'](_0x2ef5d9,{'userId':_0x3af482})),_0x2ef5d9==_0x3e73ff&&(_0x3af482=null,_0x3e73ff=null);}}const _0x33b032={},_0x186276=new Set();for(const _0x41bc83 of _0x3032a8){const _0x16a3bd=_0x1fc661['deletions'][_0x41bc83],_0x17e775=_0x1fc661['insertions'][_0x41bc83];for(const {userId:_0x1517f1}of this['_touchedMarkers']['values']())null!==_0x1517f1&&_0x186276['add'](_0x1517f1);for(const {userId:_0x37f833}of this['_touchedRoots']['values']())null!==_0x37f833&&_0x186276['add'](_0x37f833);this['_markChanges'](_0x17e775,_0x2cb73b['insertions'][_0x41bc83],_0x1b021d,'insertion',_0x186276),this['_markChanges'](_0x16a3bd,_0x2cb73b['deletions'][_0x41bc83],_0x5a14cc,'deletion',_0x186276),_0x33b032[_0x41bc83]={'insertions':this['_prepareViewToSave'](_0x17e775),'deletions':this['_prepareViewToSave'](_0x16a3bd),'attachChange':this['_touchedRoots']['get'](_0x41bc83)||null,'attributesBefore':_0x378b0e(this['_baseRootsAttributes']['get'](_0x41bc83))||{},'attributesAfter':_0x378b0e(this['_diffRootsAttributes']['get'](_0x41bc83))};}return{'diffData':_0x33b032,'authorsIds':Array['from'](_0x186276)};}['_processRootBeforeSave'](_0x3e8457){for(const [,_0x3ba6e3]of _0x3e8457['markers']){const _0xe19c28=_0x3ba6e3['start']['getAncestors']()['filter'](_0x3fb9f6=>'tableCell'==_0x3fb9f6['name']);for(const _0x346e1d of _0xe19c28)0x1==_0x346e1d['childCount']&&_0x346e1d['getChild'](0x0)['is']('element','paragraph')&&_0x346e1d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x56ec3e){this['_processRootBeforeSave'](_0x56ec3e);const _0x4e2760=this['editor']['data']['toView'](_0x56ec3e,{}),_0xd61b5f=Array['from'](_0x4e2760['getChildren']())['map'](_0x50cbcf=>this['_getViewJson'](_0x50cbcf));return JSON['stringify'](_0xd61b5f);}['_getViewJson'](_0x10a081){if(_0x10a081['is']('$text'))return _0x10a081['data'];{const _0x3cb7aa=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x12e48a=_0x10a081,_0x5d0afc=this['editor']['data']['htmlProcessor']['domConverter'],_0x502c3d={'type':_0x3cb7aa['_getTypeCharForViewElement'](_0x12e48a),'name':_0x12e48a['name'],'attributes':Array['from'](_0x12e48a['getAttributes']()),'children':Array['from'](_0x12e48a['getChildren']())['map'](_0x3c37ed=>this['_getViewJson'](_0x3c37ed))};if(_0x10a081['is']('uiElement')&&'$comment'!=_0x10a081['name']){const _0x1dfcd1=_0x10a081['render'](_0x5d0afc['domDocument'],_0x5d0afc);_0x502c3d['children']['push'](_0x1dfcd1['outerHTML']);}else{if(_0x10a081['is']('rawElement')){const _0xeebe9b=_0x5d0afc['domDocument']['createElement'](_0x12e48a['name']);_0x10a081['render'](_0xeebe9b,_0x5d0afc),_0x502c3d['children']['push'](_0xeebe9b['innerHTML']);}}const _0x16f023=Array['from'](_0x12e48a['getCustomProperties']());_0x16f023['length']>0x0&&(_0x502c3d['customProperties']=_0x16f023);const _0x2358ae=_0x12e48a['getFillerOffset']();return null!==_0x2358ae&&(_0x502c3d['fillerOffset']=_0x2358ae),_0x502c3d;}}['_markChanges'](_0x56f983,_0x19054f,_0x131c61,_0x38dae2,_0x1667fb){let _0x24e285=null,_0x5e621c=null,_0x2fb312=0x0;const _0x45c11a=this['editor']['model'];for(let _0x2d4772=0x0;_0x2d4772<_0x19054f['length'];_0x2d4772++){const _0x5d395c=this['_getVidAttributeName'](_0x19054f[_0x2d4772]),_0x5865c3=_0x19054f[_0x2d4772]['item']['getAttribute'](_0x5d395c),_0x457bf6=_0x131c61['get'](_0x5865c3),_0x4400e5=_0x2d4772==_0x19054f['length']-0x1;(!_0x24e285&&_0x457bf6&&(_0x24e285=_0x457bf6,_0x5e621c=_0x19054f[_0x2d4772]),_0x24e285&&(!_0x457bf6||_0x457bf6['userId']!=_0x24e285['userId']))&&(_0x22bd9f(_0x457bf6,P(_0x5e621c,_0x56f983,_0x45c11a),P(_0x19054f[_0x2d4772],_0x56f983,_0x45c11a)),_0x24e285=_0x457bf6||null,_0x5e621c=_0x457bf6?_0x19054f[_0x2d4772]:null),_0x24e285&&_0x4400e5&&_0x22bd9f(_0x457bf6,P(_0x5e621c,_0x56f983,_0x45c11a),V(_0x19054f[_0x2d4772],_0x56f983,_0x45c11a));}function _0x22bd9f(_0x44a1b5,_0x58c7c5,_0x488bdd){const _0x56dcc4=_0x24e285['userId'],_0xfe9226='revision:'+_0x38dae2+':'+_0x56dcc4+':'+_0x2fb312++,_0x72698f=_0x45c11a['createRange'](_0x58c7c5,_0x488bdd);_0x56f983['markers']['set'](_0xfe9226,_0x72698f),null!==_0x56dcc4&&_0x1667fb['add'](_0x56dcc4);}}['_getVidAttributeName'](_0x185994){switch(_0x185994['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xfa6252,_0x4c911f){_0xfa6252['baseVersion']=null;for(const _0x56c1c4 in _0xfa6252){const _0x13f029=_0xfa6252[_0x56c1c4];if(_0x13f029 instanceof _0x57a6ba){const _0x54a746=_0x4c911f['get'](_0x13f029['root']['rootName']);_0xfa6252[_0x56c1c4]=this['_fixPosition'](_0x13f029,_0x54a746);}if(_0x13f029 instanceof _0x5c8fff){const _0x3caf3b=_0x4c911f['get'](_0x13f029['root']['rootName']);_0xfa6252[_0x56c1c4]=this['_fixRange'](_0x13f029,_0x3caf3b);}'root'===_0x56c1c4&&(_0xfa6252['root']=_0x4c911f['get'](_0xfa6252['root']['rootName']));}}['_fixRange'](_0x2503cb,_0x4e86ae){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2503cb['start'],_0x4e86ae),this['_fixPosition'](_0x2503cb['end'],_0x4e86ae));}['_fixPosition'](_0x1853be,_0x2b01fe){return this['editor']['model']['createPositionFromPath'](_0x2b01fe,_0x1853be['path'],_0x1853be['stickiness']);}['_handleInsertOperation'](_0x104d27){const _0x3e3fb6=this['_idsRoots']['get'](_0x104d27['position']['root']['rootName']),_0x4d3370=this['_fixPosition'](_0x104d27['position'],_0x3e3fb6),_0x13f638=null===_0x104d27['_authorId']?null:_0x104d27['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cbd2a=_0x4d3370['parent'],_0x15bf67=this['_revisionId'],_0x4ac75c=[];for(const _0x3592f8 of _0x104d27['nodes'])if(_0x3592f8['is']('element'))_0x4ac75c['push'](this['_makeIdsRoot'](_0x3592f8));else{for(let _0x47dcd7=0x0;_0x47dcd7<_0x3592f8['offsetSize'];_0x47dcd7++)_0x4ac75c['push'](new _0x82277c('$text',{'vid':this['_revisionId']++}));}const _0x16f5c4=this['_revisionId'];for(let _0x5bcc07=_0x15bf67;_0x5bcc07<_0x16f5c4;_0x5bcc07++)this['_touched']['set'](_0x5bcc07,{'userId':_0x13f638});_0x5cbd2a['_insertChild'](_0x4d3370['offset'],_0x4ac75c);}['_handleMoveOperation'](_0x568543){(_0x568543=this['_cloneOperation'](_0x568543,this['_idsRoots']))['_execute']();const _0x16bb01=null===_0x568543['_authorId']?null:_0x568543['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x390a55=_0x568543['getMovedRangeStart'](),_0x433339=_0x390a55['parent'],_0x4f3bdc=_0x390a55['offset'];!function _0x404ef9(_0x46ac40,_0x1ad81f,_0x129ab3,_0x2fff0e){for(let _0xd1599=_0x129ab3;_0xd1599<_0x2fff0e;_0xd1599++){const _0x5ad3d6=_0x1ad81f['getChild'](_0xd1599);_0x5ad3d6['is']('element','$text')?_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid'),{'userId':_0x16bb01}):(_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid_start'),{'userId':_0x16bb01}),_0x404ef9(_0x46ac40,_0x5ad3d6,0x0,_0x5ad3d6['childCount']),_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid_end'),{'userId':_0x16bb01}));}}(this['_touched'],_0x433339,_0x4f3bdc,_0x4f3bdc+_0x568543['howMany']);}['_handleMergeOperation'](_0x32217a){const _0x98b01f=null===(_0x32217a=this['_cloneOperation'](_0x32217a,this['_idsRoots']))['_authorId']?null:_0x32217a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3de740=_0x32217a['targetPosition']['parent'],_0x4c78be=_0x32217a['sourcePosition']['parent'],_0x1c5a5a=_0x3de740['getAttribute']('vid_end'),_0xcd9591=_0x4c78be['getAttribute']('vid_start');_0x3de740['_setAttribute']('vid_end',_0x4c78be['getAttribute']('vid_end')),_0x4c78be['_setAttribute']('vid_end',_0x1c5a5a),this['_touched']['set'](_0xcd9591,{'userId':_0x98b01f}),this['_touched']['set'](_0x1c5a5a,{'userId':_0x98b01f}),_0x32217a['_execute']();}['_handleSplitOperation'](_0x39695c){const _0x5da3a4=null===(_0x39695c=this['_cloneOperation'](_0x39695c,this['_idsRoots']))['_authorId']?null:_0x39695c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ee660=_0x39695c['graveyardPosition'],_0x5f0402=_0x39695c['splitPosition']['parent'];_0x39695c['_execute']();const _0xb1202b=_0x5f0402['getAttribute']('vid_end'),_0x59c7b1=_0x39695c['insertionPosition']['nodeAfter'];if(_0x4ee660){const _0x227bf8=_0x59c7b1['getAttribute']('vid_end'),_0x90d225=_0x5f0402['getAttribute']('vid_end');_0x5f0402['_setAttribute']('vid_end',_0x227bf8),_0x59c7b1['_setAttribute']('vid_end',_0x90d225),this['_touched']['set'](_0x5f0402['getAttribute']('vid_end'),{'userId':_0x5da3a4}),this['_touched']['set'](_0x59c7b1['getAttribute']('vid_start'),{'userId':_0x5da3a4});}else{const _0x4f99cc=this['_revisionId']++,_0x26590d=this['_revisionId']++;_0x5f0402['_setAttribute']('vid_end',_0x4f99cc),_0x59c7b1['_setAttribute']('vid_start',_0x26590d),_0x59c7b1['_setAttribute']('vid_end',_0xb1202b),this['_touched']['set'](_0x4f99cc,{'userId':_0x5da3a4}),this['_touched']['set'](_0x26590d,{'userId':_0x5da3a4});}}['_handleMarkerOperation'](_0x126776){if(!_0x126776['affectsData'])return;const _0xb94a62=(_0x126776=this['_cloneOperation'](_0x126776,this['_diffRoots']))['oldRange']?_0x126776['oldRange']['root']:null,_0x9f560=_0x126776['newRange']?_0x126776['newRange']['root']:null;_0xb94a62&&this['_markers']['delete'](_0x126776['name']),_0x9f560&&this['_markers']['set'](_0x126776['name'],_0x126776['newRange']['clone']());const _0x4ba4b6=null===_0x126776['_authorId']?null:_0x126776['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x123dee=_0x126776['name'];if(!this['_touchedMarkers']['has'](_0x123dee))return void this['_touchedMarkers']['set'](_0x123dee,{'range':_0x126776['oldRange'],'userId':_0x4ba4b6});const _0x548dbc=this['_touchedMarkers']['get'](_0x123dee),_0x16bf40=_0x548dbc['range'],_0x21101=_0x126776['newRange'];null==_0x16bf40&&null==_0x21101||_0x16bf40&&_0x21101&&_0x16bf40['isEqual'](_0x21101)?this['_touchedMarkers']['delete'](_0x126776['name']):_0x548dbc['userId']=_0x4ba4b6;}['_handleRootOperation'](_0x2d96b3,_0x2dddb4){this['_diffRoots']['has'](_0x2d96b3['rootName'])?this['_diffRoots']['get'](_0x2d96b3['rootName'])['_isAttached']=_0x2d96b3['isAdd']:(this['_diffRoots']['set'](_0x2d96b3['rootName'],N(_0x2d96b3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d96b3['rootName'],{}),_0x2dddb4&&this['_idsRoots']['set'](_0x2d96b3['rootName'],N(_0x2d96b3['rootName'],!0x0)));const _0x373962=null===_0x2d96b3['_authorId']?null:_0x2d96b3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e4db=this['_touchedRoots']['get'](_0x2d96b3['rootName']);_0x29e4db&&_0x29e4db['userId']===_0x373962?this['_touchedRoots']['delete'](_0x2d96b3['rootName']):this['_touchedRoots']['set'](_0x2d96b3['rootName'],{'userId':_0x373962,'isAttached':_0x2d96b3['isAdd']});}['_handleRootAttributeOperation'](_0x27b498){const _0x4d0043=this['_diffRootsAttributes']['get'](_0x27b498['root']['rootName']);null===_0x27b498['newValue']?delete _0x4d0043[_0x27b498['key']]:_0x4d0043[_0x27b498['key']]=_0x27b498['newValue'];}}function x(_0x423f45){const _0x5ef5f1=N(_0x423f45['rootName'],_0x423f45['isAttached']());for(const _0x5e15f4 of _0x423f45['getChildren']()){const _0x53d358=_0x5e15f4['_clone'](!0x0);_0x5ef5f1['_appendChild'](_0x53d358);}return _0x5ef5f1;}function N(_0x41cdfb,_0x1af2ae=!0x0){const _0x20174f=new _0x3324d4();return _0x20174f['rootName']=_0x41cdfb,_0x20174f['_isAttached']=_0x1af2ae,_0x20174f['isAttached']=()=>_0x20174f['_isAttached'],_0x20174f;}function P(_0x39b3f0,_0x212987,_0x2189a3){const _0x4fad12='elementEnd'==_0x39b3f0['type']?_0x2189a3['createPositionAt'](_0x39b3f0['item'],'end'):_0x2189a3['createPositionBefore'](_0x39b3f0['item']);return _0x2189a3['createPositionFromPath'](_0x212987,_0x4fad12['path'],_0x4fad12['stickiness']);}function V(_0xdb2ec9,_0x7c0da,_0x7f5dd0){const _0x950d07='elementStart'==_0xdb2ec9['type']?_0x7f5dd0['createPositionAt'](_0xdb2ec9['item'],0x0):_0x7f5dd0['createPositionAfter'](_0xdb2ec9['item']);return _0x7f5dd0['createPositionFromPath'](_0x7c0da,_0x950d07['path'],_0x950d07['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x56db31(_0x28ff5a){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf955a6,_0x4973e){super(_0xf955a6),this['focusTracker']=new _0x4c82ae(),this['keystrokes']=new _0x46d254(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4973e),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'](),_0x4e8a74({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x49632f=_0x3b9faa=>_0x3b9faa['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49632f),this['keystrokes']['set']('arrowleft',_0x49632f),this['keystrokes']['set']('arrowup',_0x49632f),this['keystrokes']['set']('arrowdown',_0x49632f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x332c29){this['revisionNameInputView']['fieldView']['element']['value']=_0x332c29['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4ac319){const _0x11f7bc=new ti(this['locale'],_0x2ed296),_0xea6053=_0x11f7bc['fieldView'];_0xea6053['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2dc301=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4ac319&&(_0x2dc301+='\x20('+m(this['locale'],'optional')+')'),(_0x11f7bc['label']=_0x2dc301,_0xea6053['on']('input',()=>{this['revisionNameInputValue']=_0xea6053['element']['value']['trim']();}),_0x11f7bc);}}class l extends _0xb302f2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x242e23=this['editor'],_0x1b9d4c=_0x242e23['plugins']['get']('RevisionTracker');_0x242e23['ui']['componentFactory']['add']('revisionHistory',_0x21dca3=>{const _0x14d338=_0x1f74c9(_0x21dca3),_0x50a441=_0x14d338['panelView']['children'],_0x7873a7=new _0x29a3c2(_0x21dca3),_0x344d4e=new _0x469347(_0x21dca3),_0x1a99a4=new _0x22df11(_0x21dca3),_0x1cbabd=new _0x469347(_0x21dca3),_0x3cede2=new _0x22df11(_0x21dca3);return _0x14d338['bind']('isEnabled')['to'](_0x1b9d4c,'isReady',_0x1b9d4c,'isEnabled',_0x242e23,'isReadOnly',(_0xae53ca,_0x14a10b,_0x3f5541)=>_0xae53ca&&_0x14a10b&&!_0x3f5541),_0x14d338['buttonView']['set']({'icon':_0xec2b1e,'label':m(_0x21dca3,'Revision\x20history'),'tooltip':!0x0}),_0x1a99a4['set']({'label':m(_0x21dca3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1a99a4['bind']('isEnabled')['to'](_0x1b9d4c,'isReady',_0x1b9d4c,'isEnabled',_0x242e23,'isReadOnly',(_0x1520e8,_0x145494,_0x35e5fa)=>_0x1520e8&&_0x145494&&!_0x35e5fa),_0x1a99a4['on']('execute',()=>this['_showDialog']()),_0x3cede2['set']({'label':m(_0x21dca3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3cede2['bind']('isEnabled')['to'](_0x1b9d4c,'isReady',_0x242e23,'isReadOnly',(_0x443648,_0x48c4ba)=>_0x443648&&!_0x48c4ba),_0x3cede2['on']('execute',()=>{_0x242e23['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x14d338['isOpen']=!0x1,_0x242e23['editing']['view']['focus']();}),_0x344d4e['children']['add'](_0x1a99a4),_0x1cbabd['children']['add'](_0x3cede2),_0x7873a7['role']='menu',_0x7873a7['items']['addMany']([_0x344d4e,_0x1cbabd]),_0x50a441['add'](_0x7873a7),_0x14d338;}),_0x242e23['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x7e80b8=this['editor'],_0x3e016a=_0x7e80b8['locale'],_0x1894da=new _0xaf0e4e(_0x3e016a),_0x119330=new _0x4d3894(_0x3e016a);_0x1894da['buttonView']['set']({'icon':_0xec2b1e,'label':m(_0x3e016a,'Revision\x20history')});const _0x4e4719=new _0x337c49(_0x3e016a,_0x1894da),_0x219828=new _0x235b82(_0x3e016a);_0x219828['set']({'label':m(_0x3e016a,'Save\x20current\x20revision')}),_0x219828['delegate']('execute')['to'](_0x1894da),_0x219828['on']('execute',()=>{this['_showDialog']();}),_0x4e4719['children']['add'](_0x219828),_0x119330['items']['add'](_0x4e4719);const _0x12dd45=new _0x337c49(_0x3e016a,_0x1894da),_0x16399d=new _0x235b82(_0x3e016a);return _0x16399d['set']({'label':m(_0x3e016a,'Open\x20revision\x20history')}),_0x16399d['delegate']('execute')['to'](_0x1894da),_0x16399d['on']('execute',()=>{_0x7e80b8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x12dd45['children']['add'](_0x16399d),_0x119330['items']['add'](_0x12dd45),_0x1894da['panelView']['children']['add'](_0x119330),_0x1894da;}['_showDialog'](){const _0x53d6e9=this['editor'],_0x49d508=_0x53d6e9['locale'],_0x2626d2=_0x53d6e9['plugins']['get']('Dialog'),_0x55eed7=_0x53d6e9['plugins']['get']('RevisionTracker');function _0xf11f0d(_0x50091f){_0x53d6e9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x50091f['revisionName']?_0x50091f['revisionNameInputView']['errorText']=m(_0x49d508,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x53d6e9['plugins']['get'](h)['saveRevision']({'name':_0x50091f['revisionName']}),_0x2626d2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf11f0d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2626d2['show']({'id':'revisionSave','title':m(_0x49d508,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x53d6e9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2626d2['hide']()},{'label':m(_0x53d6e9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xd1a0d1){_0xd1a0d1['bind']('isEnabled')['to'](_0x55eed7,'isReady',_0x55eed7,'isEnabled',_0x53d6e9,'isReadOnly',(_0x529a0d,_0x209263,_0x3976f1)=>_0x529a0d&&_0x209263&&!_0x3976f1);},'onExecute':()=>_0xf11f0d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5bdc16=this['editor'],_0x4a7a8a=_0x5bdc16['locale'];this['_saveRevisionFormView']=new he(_0x4a7a8a,_0x5bdc16['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x28ff5a{['changeId'];['_model'];constructor(_0x4b27d9,_0x10fe1b){super(_0x4b27d9),this['_model']=_0x10fe1b,this['changeId']=_0x10fe1b['id'];const _0x23a594=this['bindTemplate'],_0x164bd6=m(_0x4b27d9,_0x10fe1b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x10fe1b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x10fe1b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x23a594['to']('type',_0x571055=>'ck-revision-change__'+_0x571055)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x164bd6}]},{'text':'\x20'+_0x10fe1b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x37be83(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x18214f){super(),this['id']=_0x18214f['id']||_0x40f93b(),this['author']=_0x18214f['author'],this['type']=_0x18214f['type'],this['data']=_0x18214f['data']||{},this['rootName']=_0x18214f['rootName'],this['set']('createdAt',_0x18214f['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(_0x38946c,_0x973068){this['newRevisionId']=_0x38946c,this['oldRevisionId']=_0x973068,this['changes']=new _0x150ee0();}['_setChanges'](_0x4d5d71){for(const _0x119e66 of _0x4d5d71)this['changes']['add'](_0x119e66);}}class u extends _0xb302f2{['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[_0x5232bd,_0x98707b,S,$];}constructor(_0x29d01e){super(_0x29d01e),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',(_0x15e9de,_0x123f60,_0x84458e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1f2c25=>{for(const _0x4947d4 of this['editor']['editing']['view']['document']['roots'])_0x84458e?_0x1f2c25['removeClass']('ck-editor__editable__overlay',_0x4947d4):_0x1f2c25['addClass']('ck-editor__editable__overlay',_0x4947d4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x141aae=>null!==_0x141aae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27ca73,_0x4d663a,_0x51223a)=>_0x27ca73&&_0x51223a?_0x4d663a['changes']['getIndex'](_0x51223a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2c9ab6,_0x578b1a)=>_0x2c9ab6?_0x578b1a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x98707b);}['init'](){const _0x5b0731=this['editor'],_0x144ff8=new ot(_0x5b0731,{'direction':'backward'}),_0x1ea305=new ot(_0x5b0731,{'direction':'forward'});(_0x5b0731['commands']['add']('showPreviousChange',_0x144ff8),_0x5b0731['commands']['add']('showNextChange',_0x1ea305),_0x5b0731['commands']['add']('restoreRevision',new nt(_0x5b0731)),this['on']('change:numberOfChanges',()=>{_0x144ff8['refresh'](),_0x1ea305['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b0731['enableReadOnlyMode']('revision-viewer'),_0x5b0731['plugins']['has']('WidgetToolbarRepository'))&&_0x5b0731['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31a5d9){return await this['_utils']['loadRevisionData'](_0x31a5d9,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31a5d9);}async['getRevisionRootsAttributes'](_0x2b2860){return await this['_utils']['loadRevisionData'](_0x2b2860,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2b2860);}async['compare'](_0x488026,_0x3c2f35,_0x38e013=!0x1){if(!this['isEnabled'])return;const _0x7eca16=this['diff'],_0x2fecd8=this['repository'],_0x46236e='string'==typeof _0x488026?_0x2fecd8['getRevision'](_0x488026):_0x488026,_0x457e3c='string'==typeof _0x3c2f35?_0x2fecd8['getRevision'](_0x3c2f35):_0x3c2f35,_0x160815=_0x46236e['id'],_0xdedeb3=_0x457e3c?_0x457e3c['id']:null;if(!_0x38e013&&this['diff']&&this['diff']['newRevisionId']===_0x160815&&this['diff']['oldRevisionId']===_0xdedeb3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x160815,_0xdedeb3);const _0x2695a4=this['_getRevisionsRange'](_0x46236e,_0x457e3c,!0x0)['map'](_0x1a9c63=>this['_utils']['loadRevisionData'](_0x1a9c63,this['adapter']));return _0x2695a4['push'](new Promise(_0x4d682d=>{setTimeout(_0x4d682d,0x14);})),Promise['all'](_0x2695a4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf05cf3=this['_getDiff'](_0x160815,_0xdedeb3);for(const _0x1346ad of _0xf05cf3['changes'])this['_changeIdToChange']['set'](_0x1346ad['id'],_0x1346ad);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x461f4e=>{for(const _0x47666a of this['editor']['model']['document']['getRootNames']())_0x461f4e['detachRoot'](_0x47666a);for(const _0x1c43c4 of Object['keys'](_0xf05cf3['model'])){const _0x217e8f=_0x461f4e['addRoot'](_0x1c43c4);for(const _0xb3460 of Object['keys'](_0xf05cf3['attributes'][_0x1c43c4]))_0x461f4e['setAttribute'](_0xb3460,_0xf05cf3['attributes'][_0x1c43c4][_0xb3460],_0x217e8f);_0x461f4e['insert'](_0xf05cf3['model'][_0x1c43c4],_0x217e8f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf05cf3['changes'])),this['isReady']=!0x0;})['catch'](_0x99af96=>{console['error'](_0x99af96),this['_cleanUp'](),_0x7eca16&&(this['diff']=_0x7eca16),this['isReady']=!0x0;});}['addRevisionData'](_0xf2a289,_0x8a3c67){const _0x4bd9c8=this['repository']['createRevision'](_0xf2a289);return _0x4bd9c8['on']('_update',(_0x489995,_0x24dabd,_0x174ee9)=>_0x8a3c67(_0x24dabd,_0x174ee9,_0x4bd9c8)),this['repository']['addRevision'](_0x4bd9c8),_0x4bd9c8;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdb7763=>{for(const _0x266bf8 of this['editor']['model']['document']['getRootNames']())_0xdb7763['detachRoot'](_0x266bf8);});}['_sortAndFilterDiffChanges'](_0x2f006a){const _0x57174f=[],_0x5142ce=new Map();for(const _0x14c3c1 of this['editor']['model']['document']['getRootNames']()){const _0x11ca3a=this['editor']['editing']['view']['getDomRoot'](_0x14c3c1);if(!_0x11ca3a)continue;const _0x5a0df2=_0x11ca3a['getClientRects']()['item'](0x0);_0x5a0df2&&(_0x57174f['push'](_0x14c3c1),_0x5142ce['set'](_0x14c3c1,_0x5a0df2));}return _0x57174f['sort']((_0x153bab,_0x52132d)=>{const _0x43dba1=_0x5142ce['get'](_0x153bab),_0x136adf=_0x5142ce['get'](_0x52132d);return _0x43dba1['y']-_0x136adf['y']||_0x43dba1['x']-_0x136adf['x'];}),(_0x2f006a=_0x2f006a['filter'](_0x2b060f=>_0x57174f['includes'](_0x2b060f['rootName'])))['sort']((_0x586ab1,_0xddfd30)=>_0x57174f['indexOf'](_0x586ab1['rootName'])-_0x57174f['indexOf'](_0xddfd30['rootName'])),_0x2f006a;}['_makeTape'](_0x219b70){const _0x8d1b76=Array['from'](_0x219b70['markers'])['filter'](([_0xd553c1,_0x200124])=>_0xd553c1['startsWith']('revision:')&&!_0x200124['isCollapsed']),_0x5bf397=Array['from'](this['editor']['model']['createRangeIn'](_0x219b70)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8d1b76['length'])for(const _0x18987e of _0x5bf397){const [_0x5e6019,_0xee400b]=_0x8d1b76[0x0],[,_0x4c2eff,_0x4735ec]=_0x5e6019['split'](':');if(_0xee400b['end']['isEqual'](_0x18987e['nextPosition'])&&_0x8d1b76['shift'](),(_0x18987e['previousPosition']['isEqual'](_0xee400b['start'])||_0x18987e['previousPosition']['isAfter'](_0xee400b['start']))&&('insertion'==_0x4c2eff?_0x18987e['isAdded']={'userId':_0x4735ec}:'deletion'==_0x4c2eff&&(_0x18987e['isRemoved']={'userId':_0x4735ec})),0x0==_0x8d1b76['length'])break;}return _0x5bf397;}['_refreshStartEndIndex'](_0x8cecbd){const _0x2c2a7c=new Map();for(let _0x4ff2ad=0x0;_0x4ff2ad<_0x8cecbd['length'];_0x4ff2ad++)'text'===_0x8cecbd[_0x4ff2ad]['type']?(_0x8cecbd[_0x4ff2ad]['item']['startIndex']=_0x4ff2ad,_0x8cecbd[_0x4ff2ad]['item']['endIndex']=_0x4ff2ad):('elementStart'===_0x8cecbd[_0x4ff2ad]['type']?_0x8cecbd[_0x4ff2ad]['item']['startIndex']=_0x4ff2ad:'elementEnd'===_0x8cecbd[_0x4ff2ad]['type']&&(_0x8cecbd[_0x4ff2ad]['item']['endIndex']=_0x4ff2ad),_0x2c2a7c['set'](_0x8cecbd[_0x4ff2ad]['id'],_0x4ff2ad));for(const _0x117ae7 of _0x2c2a7c['values']())'elementStart'===_0x8cecbd[_0x117ae7]['type']?_0x8cecbd[_0x117ae7]['item']['endIndex']=_0x2c2a7c['get'](_0x8cecbd[_0x117ae7]['pairId']):'elementEnd'===_0x8cecbd[_0x117ae7]['type']&&(_0x8cecbd[_0x117ae7]['item']['startIndex']=_0x2c2a7c['get'](_0x8cecbd[_0x117ae7]['pairId']));}['_processTape'](_0x4f4b8d){for(let _0x1b89ab=0x0;_0x1b89ab<_0x4f4b8d['length'];_0x1b89ab++){if('elementStart'===_0x4f4b8d[_0x1b89ab]['type'])_0x4f4b8d[_0x1b89ab]['item']['startIndex']=_0x1b89ab;else{if('elementEnd'===_0x4f4b8d[_0x1b89ab]['type']){_0x4f4b8d[_0x1b89ab]['item']['endIndex']=_0x1b89ab;const _0x16e1e3=_0x4f4b8d[_0x1b89ab]['item']['startIndex'];_0x4f4b8d[_0x16e1e3]['pairId']=_0x4f4b8d[_0x1b89ab]['id'],_0x4f4b8d[_0x1b89ab]['pairId']=_0x4f4b8d[_0x16e1e3]['id'];}else _0x4f4b8d[_0x1b89ab]['item']['startIndex']=_0x1b89ab,_0x4f4b8d[_0x1b89ab]['item']['endIndex']=_0x1b89ab,_0x4f4b8d[_0x1b89ab]['pairId']=null;}_0x4f4b8d[_0x1b89ab]['markersStart']||(_0x4f4b8d[_0x1b89ab]['markersStart']=[],_0x4f4b8d[_0x1b89ab]['markersEnd']=[]);}}['_markInsertions'](_0x1effec,_0x39a554){const _0x221267=_0x1effec['filter'](_0x1ac8fe=>!_0x1ac8fe['isAdded']);for(let _0xc6d888=0x0;_0xc6d888<_0x39a554['length'];_0xc6d888++)_0x39a554[_0xc6d888]['isAdded']&&(_0x221267[_0xc6d888]['isAdded']=_0x39a554[_0xc6d888]['isAdded']);}['_getDiff'](_0x5371e1,_0x49c0f2=null){const _0x4ebf34=this['repository']['getRevision'](_0x5371e1),_0x487a24=_0x49c0f2?this['repository']['getRevision'](_0x49c0f2):null,_0x3d5bb5=this['_getRevisionsRange'](_0x4ebf34,_0x487a24),_0x5de8cb=_0x3d5bb5[_0x3d5bb5['length']-0x1],_0x30f2e6=new Map(),_0x3aaed1={'model':{},'attributes':{},'changes':[]},_0x49ff9b=new Set(),_0x48bc5b=new Map();for(let _0x1e133b=_0x3d5bb5['length']-0x1;_0x1e133b>=0x0;_0x1e133b--){const _0x386f38=_0x3d5bb5[_0x1e133b];for(const _0x192b8b of Object['keys'](_0x386f38['diffData']))if(_0x386f38['diffData'][_0x192b8b]['attachChange']){const _0x3a2d67=_0x386f38['diffData'][_0x192b8b]['attachChange'];_0x3a2d67['isAttached']?(_0x49ff9b['add'](_0x192b8b),_0x48bc5b['has'](_0x192b8b)&&_0x48bc5b['get'](_0x192b8b)['userId']==_0x3a2d67['userId']?_0x48bc5b['delete'](_0x192b8b):_0x48bc5b['set'](_0x192b8b,_0x3a2d67)):_0x48bc5b['has'](_0x192b8b)?(_0x49ff9b['delete'](_0x192b8b),_0x48bc5b['delete'](_0x192b8b)):(_0x49ff9b['add'](_0x192b8b),_0x48bc5b['set'](_0x192b8b,_0x3a2d67));}else _0x49ff9b['add'](_0x192b8b);}for(const _0x324706 of _0x49ff9b){const _0x373bbd=_0x48bc5b['has'](_0x324706)&&!_0x48bc5b['get'](_0x324706)['isAttached'];let _0x5e1438=_0x373bbd?_0x3d5bb5['length']-0x1:0x0;const _0x20912c=_0x373bbd?-0x1:0x1;for(;_0x3d5bb5[_0x5e1438];){const _0x2d2582=_0x3d5bb5[_0x5e1438];if(_0x2d2582['diffData'][_0x324706]){const _0xaf37c7=_0x373bbd?_0x2d2582['diffData'][_0x324706]['attributesBefore']:_0x2d2582['diffData'][_0x324706]['attributesAfter'];_0x3aaed1['attributes'][_0x324706]=_0xaf37c7?_0x378b0e(_0xaf37c7):{};break;}_0x5e1438+=_0x20912c;}}for(const _0x52e74c of _0x3d5bb5){_0x52e74c['model']={};for(const _0x319b1c of _0x52e74c['authors'])_0x30f2e6['set'](_0x319b1c['id'],_0x319b1c);for(const _0x5e98f0 of _0x49ff9b){const _0xe50c42=_0x52e74c['diffData'][_0x5e98f0]?_0x52e74c['diffData'][_0x5e98f0]['insertions']:'[]',_0x500366=_0x52e74c['diffData'][_0x5e98f0]?_0x52e74c['diffData'][_0x5e98f0]['deletions']:'[]';_0x52e74c['model'][_0x5e98f0]={'insertions':this['_utils']['_makeModelFromViewString'](_0xe50c42),'deletions':this['_utils']['_makeModelFromViewString'](_0x500366)};}}for(const _0x2cc28d of _0x49ff9b){let _0x42bd33=null,_0x455632=0x0;const _0x256864=new Map(Array['from'](_0x4ebf34['model'][_0x2cc28d]['insertions']['markers'])['filter'](([_0x5b3740])=>!_0x5b3740['startsWith']('revision:')));let _0x410f76=0x0;for(const _0x325aa8 of _0x3d5bb5){const _0x13fb77=this['_makeTape'](_0x325aa8['model'][_0x2cc28d]['insertions']);_0x325aa8==_0x4ebf34?(_0x42bd33=_0x13fb77,_0x455632=_0x42bd33['length'],_0x42bd33['forEach'](_0x51eb51=>{_0x51eb51['id']=_0x410f76++;}),this['_processTape'](_0x42bd33)):this['_markInsertions'](_0x42bd33,_0x13fb77);const _0x23e507=_0x42bd33['filter'](_0xce0d64=>!_0xce0d64['isAdded'])['map'](_0x235ac6=>_0x235ac6['id']);let _0x529bf6=0x0;const _0x3083b7=this['_makeTape'](_0x325aa8['model'][_0x2cc28d]['deletions']);_0x3083b7['forEach'](_0x367806=>{_0x367806['isRemoved']?_0x367806['id']=_0x455632++:_0x367806['id']=_0x23e507[_0x529bf6++];}),this['_processTape'](_0x3083b7),this['_setDistance'](_0x42bd33,'isAdded'),this['_setDistance'](_0x3083b7,'isRemoved'),_0x325aa8==_0x4ebf34&&this['_markMarkers'](_0x42bd33,_0x256864),_0x42bd33=this['_joinTapes'](_0x42bd33,_0x3083b7),this['_refreshStartEndIndex'](_0x42bd33),this['_setDistance'](_0x42bd33,'isRemoved');}_0x42bd33=_0x42bd33['filter'](_0x1dde7e=>!(_0x1dde7e['isAdded']&&_0x1dde7e['isRemoved']));const _0x334411=new Map(_0x5de8cb['model'][_0x2cc28d]['deletions']['markers']),_0xcbe0a3=new Set(_0x256864['keys']());for(const _0xa102a7 of _0x334411['keys']())_0xcbe0a3['delete'](_0xa102a7);this['_markSuggestions'](_0x42bd33,_0xcbe0a3),this['_fixObsoleteTags'](_0x42bd33),_0x42bd33=this['_removeMissingPairs'](_0x42bd33),_0x42bd33=this['_markMismatchedRemovedTags'](_0x42bd33),_0x42bd33=this['_removeUnsupportedChanges'](_0x42bd33);const {root:_0x5316f2,changes:_0x478bae}=this['_makeModelFromTape'](_0x42bd33,_0x30f2e6,_0x2cc28d);_0x3aaed1['model'][_0x2cc28d]=_0x5316f2;const _0x3e872c=_0x48bc5b['get'](_0x2cc28d);if(_0x3e872c){const _0x1340e1=_0x30f2e6['get'](_0x3e872c['userId']),_0x5e56ba=new G({'author':_0x1340e1,'type':_0x3e872c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2cc28d});_0x478bae['unshift'](_0x5e56ba),_0x3aaed1['attributes'][_0x2cc28d]['revisionHistoryAttachChange']=_0x5e56ba['id'];}_0x3aaed1['changes']=_0x3aaed1['changes']['concat'](_0x478bae);}return _0x3aaed1;}['_markMarkers'](_0x3d23e2,_0x585ac4){for(let _0x112c43=0x0;_0x112c43<_0x3d23e2['length'];_0x112c43++)for(const [_0x283029,_0xb956fc]of _0x585ac4)!_0xb956fc['isCollapsed']&&_0xb956fc['start']['isEqual'](_0x3d23e2[_0x112c43]['previousPosition'])&&_0x3d23e2[_0x112c43]['markersStart']['push'](_0x283029),_0xb956fc['end']['isEqual'](_0x3d23e2[_0x112c43]['nextPosition'])&&_0x3d23e2[_0x112c43]['markersEnd']['push'](_0x283029);}['_joinTapes'](_0x7eac3e,_0x15c9bb){let _0x2ddd76=[],_0x332972=0x0,_0x317267=0x0;for(;_0x332972<_0x7eac3e['length']||_0x317267<_0x15c9bb['length'];){const _0x1d4543=_0x7eac3e[_0x332972]||{},_0x4ac9b7=_0x15c9bb[_0x317267]||{};if(_0x1d4543['id']==_0x4ac9b7['id'])_0x332972++,_0x317267++,_0x2ddd76['push'](_0x1d4543);else{if(_0x4ac9b7['isRemoved']&&_0x1d4543['isAdded']){const {commonTape:_0x2158d3,iEnd:_0x392b26,jEnd:_0x3142ec}=this['_threeWayMerge'](_0x7eac3e,_0x332972,_0x15c9bb,_0x317267);_0x2ddd76=_0x2ddd76['concat'](_0x2158d3),_0x332972=_0x392b26,_0x317267=_0x3142ec;}else _0x4ac9b7['isRemoved']?(_0x317267++,_0x2ddd76['push'](_0x4ac9b7)):(_0x332972++,_0x2ddd76['push'](_0x1d4543));}}return _0x2ddd76;}['_markSuggestions'](_0x4e7fb7,_0x5674d7){const _0x4bb1f4=[];for(let _0x470b5a=0x0;_0x470b5a<_0x4e7fb7['length'];_0x470b5a++){for(let _0x26cbbb=0x0;_0x26cbbb<_0x4e7fb7[_0x470b5a]['markersStart']['length'];_0x26cbbb++){const _0x3cbd1c=_0x4e7fb7[_0x470b5a]['markersStart'][_0x26cbbb];if(!_0x5674d7['has'](_0x3cbd1c))continue;const {group:_0x430b3e,type:_0x481538,authorId:_0x2815e1}=_0x3b5ee8(_0x3cbd1c);'revision-suggestion'!=_0x430b3e||'insertion'!=_0x481538&&'deletion'!=_0x481538||(_0x4bb1f4['unshift']({'type':_0x481538,'name':_0x3cbd1c,'userId':_0x2815e1}),_0x4e7fb7[_0x470b5a]['markersStart']['splice'](_0x26cbbb,0x1),_0x26cbbb--);}_0x33ac1d(_0x4e7fb7[_0x470b5a]);for(let _0x2ed5ce=0x0;_0x2ed5ce<_0x4e7fb7[_0x470b5a]['markersEnd']['length'];_0x2ed5ce++){const _0x182975=_0x4e7fb7[_0x470b5a]['markersEnd'][_0x2ed5ce];if(!_0x5674d7['has'](_0x182975))continue;const {group:_0x33457e,type:_0x46d090}=_0x3b5ee8(_0x182975);if('revision-suggestion'!=_0x33457e||'insertion'!=_0x46d090&&'deletion'!=_0x46d090)continue;_0x4e7fb7[_0x470b5a]['markersEnd']['splice'](_0x2ed5ce,0x1),_0x2ed5ce--;const _0x2bd32c=_0x4bb1f4['findIndex'](_0x3e59a9=>_0x3e59a9['name']==_0x182975);_0x2bd32c>-0x1&&_0x4bb1f4['splice'](_0x2bd32c,0x1);}}function _0x3b5ee8(_0x449157){const _0x2a0fe0=_0x449157['split'](':');return{'group':_0x2a0fe0[0x0],'type':_0x2a0fe0[0x1],'subType':_0x2a0fe0['length']>=0x5?_0x2a0fe0[0x2]:null,'id':_0x2a0fe0['length']<0x5?_0x2a0fe0[0x2]:_0x2a0fe0[0x3],'authorId':_0x2a0fe0['length']<0x5?_0x2a0fe0[0x3]:_0x2a0fe0[0x4],'markerCount':0x6==_0x2a0fe0['length']?_0x2a0fe0[0x5]:null};}function _0x33ac1d(_0x42ae6a){for(let _0x305bad=0x0;_0x305bad<_0x4bb1f4['length'];_0x305bad++){if(_0x42ae6a['isAdded']&&'insertion'==_0x4bb1f4[_0x305bad]['type']&&_0x42ae6a['isAdded']['userId']==_0x4bb1f4[_0x305bad]['userId'])return _0x42ae6a['isAddSuggestion']=_0x4bb1f4[_0x305bad],void delete _0x42ae6a['isAdded'];if(!_0x42ae6a['isAdded']&&!_0x42ae6a['isRemoved']&&'deletion'==_0x4bb1f4[_0x305bad]['type'])return void(_0x42ae6a['isRemoveSuggestion']=_0x4bb1f4[_0x305bad]);}}}['_setDistance'](_0x4401cd,_0x126204){let _0x28c393=0x0,_0x3d1e75=!0x1;const _0x2f3d4e=new Map();for(const _0x178ad7 of _0x4401cd)_0x178ad7[_0x126204]?_0x3d1e75&&(_0x28c393++,_0x3d1e75=!0x1):(_0x28c393++,_0x3d1e75=!0x0),_0x2f3d4e['set'](_0x178ad7['id'],_0x28c393);for(let _0x3e9062=0x0;_0x3e9062<_0x4401cd['length'];_0x3e9062++){if('isRemoved'==_0x126204&&_0x4401cd[_0x3e9062]['isAdded']||'isAdded'==_0x126204&&_0x4401cd[_0x3e9062]['isRemoved'])continue;if('text'==_0x4401cd[_0x3e9062]['type']){_0x4401cd[_0x3e9062]['distance']=0x0;continue;}const _0x53672f=_0x2f3d4e['get'](_0x4401cd[_0x3e9062]['pairId']),_0x52f9c1=_0x2f3d4e['get'](_0x4401cd[_0x3e9062]['id']);_0x4401cd[_0x3e9062]['distance']=_0x53672f-_0x52f9c1;}}['_getRevisionsRange'](_0x64ff73,_0x354ef9,_0x9a40cc=!0x1){const _0x4eab76=[];let _0x121aa8=this['repository']['getIndex'](_0x64ff73),_0x4500a1=this['repository']['getIndex'](_0x354ef9);for(-0x1==_0x4500a1&&(_0x4500a1=this['repository']['_revisions']['length'],_0x9a40cc=!0x1);_0x121aa8<_0x4500a1;)_0x4eab76['push'](this['repository']['getRevision'](_0x121aa8)),_0x121aa8++;return _0x9a40cc&&_0x4eab76['push'](this['repository']['getRevision'](_0x121aa8)),_0x4eab76;}['_threeWayMerge'](_0x252829,_0x2b00c7,_0x7dd451,_0x31ea97){const _0x21ed9d=this['editor']['model']['schema'];let _0x1e032f=_0x2b00c7;for(;_0x252829[_0x1e032f]&&_0x252829[_0x1e032f]['isAdded'];)_0x1e032f++;let _0x352036=_0x31ea97;for(;_0x7dd451[_0x352036]&&_0x7dd451[_0x352036]['isRemoved'];)_0x352036++;_0x304bf2(_0x252829,_0x2b00c7,_0x1e032f),_0x304bf2(_0x7dd451,_0x31ea97,_0x352036);const _0xa85a98=_0x7dd451['slice'](_0x31ea97,_0x352036)['concat'](_0x252829['slice'](_0x2b00c7,_0x1e032f));return _0xa85a98['sort']((_0x44041a,_0x383968)=>_0x44041a['side']!=_0x383968['side']?_0x44041a['side']-_0x383968['side']:_0x44041a['level']!=_0x383968['level']?_0x44041a['level']-_0x383968['level']:_0x44041a['distance']!=_0x383968['distance']?_0x383968['distance']-_0x44041a['distance']:!!_0x44041a['isAdded']!=!!_0x383968['isAdded']?-0x1==_0x44041a['side']||0x0==_0x44041a['side']?_0x44041a['isAdded']?-0x1:0x1:_0x44041a['isAdded']?0x1:-0x1:_0x44041a['index']-_0x383968['index']),{'commonTape':_0xa85a98,'iEnd':_0x1e032f,'jEnd':_0x352036};function _0x304bf2(_0x44300d,_0x251853,_0x190dcf){let _0x76267e=-0x1,_0x462f3e=Number['POSITIVE_INFINITY'],_0xa2b83f=!0x0;for(let _0x1ac62b=_0x251853;_0x1ac62b<_0x190dcf;_0x1ac62b++)if(_0x21ed9d['isInline'](_0x44300d[_0x1ac62b]['item'])||(_0xa2b83f=!0x1),_0x44300d[_0x1ac62b]['item']['startIndex']<_0x251853&&(_0x76267e=_0x1ac62b),_0x44300d[_0x1ac62b]['item']['endIndex']>=_0x190dcf){_0x462f3e=_0x1ac62b;break;}_0xa2b83f&&(_0x76267e=_0x190dcf-0x1);for(let _0x3dd1a5=_0x251853;_0x3dd1a5<_0x190dcf;_0x3dd1a5++)_0x44300d[_0x3dd1a5]['side']=_0x3dd1a5<=_0x76267e?-0x1:_0x3dd1a5<_0x462f3e?0x0:0x1,_0x44300d[_0x3dd1a5]['index']=_0x3dd1a5;let _0x5c5d0d=0x0;for(let _0x29366e=_0x251853;_0x29366e<=_0x76267e;_0x29366e++)0x0==_0x44300d[_0x29366e]['distance']?_0x44300d[_0x29366e]['level']=_0x5c5d0d:(_0x5c5d0d++,_0x44300d[_0x29366e]['level']=_0x5c5d0d,_0x5c5d0d++);for(let _0x5f2c4d=_0x251853;_0x5f2c4d<_0x190dcf;_0x5f2c4d++)0x0==_0x44300d[_0x5f2c4d]['side']&&(_0x44300d[_0x5f2c4d]['level']=_0x5c5d0d);_0x5c5d0d=0x0;for(let _0x8fe13a=_0x190dcf-0x1;_0x8fe13a>=_0x462f3e;_0x8fe13a--)0x0==_0x44300d[_0x8fe13a]['distance']?_0x44300d[_0x8fe13a]['level']=_0x5c5d0d:(_0x5c5d0d--,_0x44300d[_0x8fe13a]['level']=_0x5c5d0d,_0x5c5d0d--);}}['_fixObsoleteTags'](_0x2dd76b){const _0x138ca0=new Map(),_0x591f73=this['editor']['model']['schema'];for(let _0x5ca50c=0x1;_0x5ca50c<_0x2dd76b['length'];_0x5ca50c++){let _0x5d0532,_0x8609b5,_0x31c9d6;const _0x1b2053=_0x2dd76b[_0x5ca50c],_0x437ae7=_0x2dd76b[_0x5ca50c-0x1];if('text'==_0x1b2053['type'])continue;if(_0x1b2053['type']!=_0x437ae7['type'])continue;if(!_0x591f73['isBlock'](_0x437ae7['item'])||_0x591f73['isLimit'](_0x437ae7['item']))continue;if(!_0x591f73['isBlock'](_0x1b2053['item'])||_0x591f73['isLimit'](_0x1b2053['item']))continue;if((_0x2dd76b[_0x5ca50c]['isAdded']||_0x2dd76b[_0x5ca50c]['isAddSuggestion'])&&_0x2dd76b[_0x5ca50c-0x1]['isRemoved'])_0x5d0532=_0x2dd76b[_0x5ca50c],_0x8609b5=_0x2dd76b[_0x5ca50c-0x1],_0x31c9d6=_0x5ca50c-0x1;else{if(!_0x2dd76b[_0x5ca50c]['isRemoved']||!_0x2dd76b[_0x5ca50c-0x1]['isAdded']&&!_0x2dd76b[_0x5ca50c-0x1]['isAddSuggestion'])continue;_0x5d0532=_0x2dd76b[_0x5ca50c-0x1],_0x8609b5=_0x2dd76b[_0x5ca50c],_0x31c9d6=_0x5ca50c;}const _0x5ae8d7=_0x5d0532['level']==_0x8609b5['level'],_0x4bbbf1=Math['abs'](_0x5d0532['level'])<Math['abs'](_0x8609b5['level'])&&0x0==_0x8609b5['distance'];(_0x5ae8d7||_0x4bbbf1)&&(_0x138ca0['set'](_0x8609b5['id'],_0x5d0532['id']),_0x2dd76b['splice'](_0x31c9d6,0x1),_0x5ca50c--,_0x5d0532['isAdded']=!0x1);}for(let _0x44403f=0x0;_0x44403f<_0x2dd76b['length'];_0x44403f++)_0x138ca0['has'](_0x2dd76b[_0x44403f]['pairId'])&&(_0x2dd76b[_0x44403f]['pairId']=_0x138ca0['get'](_0x2dd76b[_0x44403f]['pairId']));}['_removeMissingPairs'](_0x99c305){const _0x36ba60=new Set(_0x99c305['map'](_0x3a3167=>_0x3a3167['id']));for(let _0xb1caab=0x0;_0xb1caab<_0x99c305['length'];_0xb1caab++)_0x36ba60['has'](_0x99c305[_0xb1caab]['pairId'])||0x0==_0x99c305[_0xb1caab]['distance']||(_0x99c305[_0xb1caab]['isIncorrect']=!0x0);return _0x99c305['filter'](_0xf486ef=>!_0xf486ef['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3ea0e9){const _0x109052=new Set();for(let _0x48bd2b=0x0;_0x48bd2b<_0x3ea0e9['length'];_0x48bd2b++){if(_0x109052['has'](_0x3ea0e9[_0x48bd2b]['id'])&&_0x3ea0e9[_0x48bd2b]['isRemoved']&&(_0x3ea0e9[_0x48bd2b]['isIncorrect']=!0x0),_0x3ea0e9[_0x48bd2b]['isIncorrect'])continue;if(0x0==_0x3ea0e9[_0x48bd2b]['distance'])continue;if('elementStart'!=_0x3ea0e9[_0x48bd2b]['type'])continue;if(null==_0x3ea0e9[_0x48bd2b]['pairId'])continue;let _0x161180=_0x48bd2b+0x1,_0x472961=0x0;for(;_0x3ea0e9[_0x161180]['id']!=_0x3ea0e9[_0x48bd2b]['pairId'];)'elementStart'==_0x3ea0e9[_0x161180]['type']?_0x472961++:'elementEnd'==_0x3ea0e9[_0x161180]['type']&&_0x472961--,_0x161180++;if(0x0!=_0x472961){if(_0x3ea0e9[_0x48bd2b]['isRemoved'])_0x3ea0e9[_0x48bd2b]['isIncorrect']=!0x0;else{for(;_0x161180!=_0x48bd2b;)_0x3ea0e9[_0x161180]['isRemoved']&&0x0!=_0x3ea0e9[_0x161180]['distance']&&(_0x3ea0e9[_0x161180]['isIncorrect']=!0x0,_0x109052['add'](_0x3ea0e9[_0x161180]['pairId'])),_0x161180--;}}}return _0x3ea0e9['filter'](_0x33200e=>!_0x33200e['isIncorrect']);}['_removeUnsupportedChanges'](_0x186b7a){const _0x16d1a=this['editor']['model']['schema'];for(let _0xd731c9=0x0;_0xd731c9<_0x186b7a['length'];_0xd731c9++){if(!(_0x186b7a[_0xd731c9]['isAdded']||_0x186b7a[_0xd731c9]['isAddSuggestion']||_0x186b7a[_0xd731c9]['isRemoved']||_0x186b7a[_0xd731c9]['isRemoveSuggestion']))continue;if(0x0==_0x186b7a[_0xd731c9]['distance'])continue;const _0x5be68c=_0x186b7a[_0xd731c9]['item'];_0x16d1a['isBlock'](_0x5be68c)||_0x16d1a['isLimit'](_0x5be68c)||(_0x186b7a[_0xd731c9]['isAdded']&&delete _0x186b7a[_0xd731c9]['isAdded'],_0x186b7a[_0xd731c9]['isAddSuggestion']&&delete _0x186b7a[_0xd731c9]['isAddSuggestion'],_0x186b7a[_0xd731c9]['isRemoveSuggestion']&&delete _0x186b7a[_0xd731c9]['isRemoveSuggestion'],_0x186b7a[_0xd731c9]['isRemoved']&&(_0x186b7a[_0xd731c9]['isIncorrect']=!0x0));}return _0x186b7a['filter'](_0x2d0102=>!_0x2d0102['isIncorrect']);}['_makeModelFromTape'](_0x3313bb,_0x53c631,_0x566459){const _0x5d549c=new _0x3324d4(),_0x378e72=[],_0x10d4c6=new Map(),_0x8b2fe3=this['editor']['model'],_0xf51a7d=_0x8b2fe3['schema'],_0x34c189=[_0x5d549c],_0x24b060={},_0x46cd54={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x67b83b=null;const _0x4b4265=[0x0];for(let _0xc16af3=0x0;_0xc16af3<_0x3313bb['length'];_0xc16af3++)if('elementStart'===_0x3313bb[_0xc16af3]['type']){_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265);const _0xc7b51e=new _0x82277c(_0x3313bb[_0xc16af3]['item']['name'],_0x3313bb[_0xc16af3]['item']['getAttributes']());_0x34c189[0x0]['_appendChild'](_0xc7b51e),_0x4b4265['push'](0x0),_0x34c189['unshift'](_0xc7b51e),_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265);}else'elementEnd'===_0x3313bb[_0xc16af3]['type']?(_0x34c189['shift'](),_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265),_0x4b4265['pop'](),_0x4b4265[_0x4b4265['length']-0x1]++,_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265)):(_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265),_0x67b83b?_0x67b83b['_data']+=_0x3313bb[_0xc16af3]['item']['data']:_0x67b83b=new _0x4e8ebd(_0x3313bb[_0xc16af3]['item']['data'],_0x3313bb[_0xc16af3]['item']['getAttributes']()),_0x3313bb[_0xc16af3+0x1]&&'text'===_0x3313bb[_0xc16af3+0x1]['type']&&_0x555ab3(_0x67b83b,_0x3313bb[_0xc16af3+0x1]['item'])||(_0x34c189[0x0]['_appendChild'](_0x67b83b),_0x67b83b=null),_0x4b4265[_0x4b4265['length']-0x1]+=_0x3313bb[_0xc16af3]['item']['offsetSize'],_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265));for(let _0x3909e6=0x0;_0x3909e6<_0x3313bb['length'];_0x3909e6++){const _0xe77ec5=_0x3313bb[_0x3909e6]['previousPosition'],_0x5e1ea8=_0x3313bb[_0x3909e6]['nextPosition'];for(const _0x2de248 of _0x3313bb[_0x3909e6]['markersStart'])_0x10d4c6['set'](_0x2de248,{'start':_0xe77ec5,'end':null});_0x30077c('isRemoveSuggestion',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isAddSuggestion',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isRemoved',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isAdded',_0x3909e6,_0xe77ec5,_0x5e1ea8);for(const _0xc1d91b of _0x3313bb[_0x3909e6]['markersEnd']){const _0x58336a=_0x10d4c6['get'](_0xc1d91b);_0x58336a?_0x58336a['end']=_0x5e1ea8:_0x10d4c6['set'](_0xc1d91b,{'start':_0x5e1ea8,'end':_0x5e1ea8});}}for(const [_0x28b558,_0x12fd63]of _0x10d4c6){const _0x5011d3=this['editor']['model']['createRange'](_0x12fd63['start'],_0x12fd63['end']);_0x5d549c['markers']['set'](_0x28b558,_0x5011d3);}return _0x378e72['sort']((_0x4c8d30,_0x4c09c6)=>{const _0x436d32=_0x5d549c['markers']['get']('revision:'+_0x4c8d30['id']),_0x2dd7e5=_0x5d549c['markers']['get']('revision:'+_0x4c09c6['id']);return _0x436d32['start']['isBefore'](_0x2dd7e5['start'])?-0x1:_0x436d32['start']['isAfter'](_0x2dd7e5['start'])?0x1:_0x436d32['end']['isBefore'](_0x2dd7e5['end'])?-0x1:_0x436d32['end']['isAfter'](_0x2dd7e5['end'])?0x1:'add'===_0x4c8d30['type']?-0x1:0x1;}),{'root':_0x5d549c,'changes':_0x378e72};function _0x30077c(_0x5dc23c,_0x42ddc6,_0x4475ac,_0x307d33){const _0x465a15=!!_0x3313bb[_0x42ddc6][_0x5dc23c],_0x54bd46=_0x465a15?_0x3313bb[_0x42ddc6][_0x5dc23c]['userId']:null,_0x589e89=_0x42ddc6===_0x3313bb['length']-0x1,_0x5e3d0b=_0x46cd54[_0x5dc23c][0x0],_0x1a7f34=_0xf51a7d['isObject'](_0x3313bb[_0x42ddc6]['item']);!_0x24b060[_0x5dc23c]&&_0x465a15?_0x24b060[_0x5dc23c]={'start':_0x4475ac,'tapeItem':_0x3313bb[_0x42ddc6],'userId':_0x54bd46,'type':_0x5dc23c}:_0x24b060[_0x5dc23c]&&!_0x465a15?(_0x24b060[_0x5dc23c]['end']=_0x4475ac,_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]=null):_0x24b060[_0x5dc23c]&&_0x465a15&&_0x24b060[_0x5dc23c]['userId']!==_0x54bd46&&(_0x24b060[_0x5dc23c]['end']=_0x4475ac,_0x5e3d0b&&_0x5e3d0b['userId']===_0x24b060[_0x5dc23c]['userId']||_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]={'start':_0x4475ac,'tapeItem':_0x3313bb[_0x42ddc6],'userId':_0x54bd46,'type':_0x5dc23c}),_0x24b060[_0x5dc23c]&&_0x1a7f34&&('elementStart'!==_0x3313bb[_0x42ddc6]['type']||_0x5e3d0b&&_0x5e3d0b['userId']===_0x54bd46||_0x46cd54[_0x5dc23c]['unshift']({'userId':_0x54bd46,'object':_0x3313bb[_0x42ddc6]['item'],'change':_0x24b060[_0x5dc23c]}),'elementEnd'===_0x3313bb[_0x42ddc6]['type']&&_0x5e3d0b&&_0x5e3d0b['object']===_0x3313bb[_0x42ddc6]['item']&&(_0x46cd54[_0x5dc23c]['shift'](),_0x24b060[_0x5dc23c]=_0x5e3d0b['change'])),_0x24b060[_0x5dc23c]&&_0x589e89&&(_0x24b060[_0x5dc23c]['end']=_0x307d33,_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]=null);}function _0x269d5c({start:_0x3d37c8,end:_0x3acc1c,tapeItem:_0xbe1787,userId:_0x46a7aa,type:_0x4cc221}){const _0xf79b33=_0xbe1787['item'],_0x28d52e=_0x8b2fe3['schema']['isBlock'](_0xf79b33)&&!_0x8b2fe3['schema']['isLimit'](_0xf79b33),_0x42a92e=_0x3d37c8['nodeAfter']==_0x3acc1c['parent']&&_0x3acc1c['isAtStart'];if(_0x28d52e&&_0x42a92e)return;const _0x21b118=_0x8b2fe3['createRange'](_0x3d37c8,_0x3acc1c),_0x3ecd74=_0x53c631['get'](_0x46a7aa),_0x535bba=new G({'author':_0x3ecd74,'type':'isAdded'==_0x4cc221||'isAddSuggestion'==_0x4cc221?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4cc221||'isRemoveSuggestion'==_0x4cc221},'createdAt':new Date(),'rootName':_0x566459});_0x378e72['push'](_0x535bba),_0x5d549c['markers']['set']('revision:'+_0x535bba['id'],_0x21b118);}function _0x555ab3(_0x5bf8b9,_0x5bbeb4){const _0x154b74=_0x5bf8b9['getAttributes'](),_0x377ffb=_0x5bbeb4['getAttributes']();for(const _0x3981e9 of _0x154b74){if(_0x3981e9[0x1]!==_0x5bbeb4['getAttribute'](_0x3981e9[0x0]))return!0x1;_0x377ffb['next']();}return _0x377ffb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x51f2e1=>{const _0x345b4b=_0x51f2e1['markerName']['split'](':')[0x1],_0x133d1a=this['_getChangeFromId'](_0x345b4b);if(!_0x133d1a)return null;const _0x1fb3c5='add'==_0x133d1a['type']?'insertion':'deletion',_0x2c6bfd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fb3c5];return _0x133d1a['data']['isSuggestion']&&_0x2c6bfd['push']('ck-suggestion-marker-'+_0x1fb3c5+'-new'),this['activeChange']==_0x133d1a&&_0x2c6bfd['push']('ck-suggestion-marker--active'),{'classes':_0x2c6bfd,'attributes':{'data-change-id':_0x345b4b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28272e=>{_0x28272e['on']('element:pre',(_0x118629,_0x18fb36,_0x494805)=>{const _0x16603c=_0x18fb36['viewItem']['getChild'](0x0);if(!_0x16603c||!_0x16603c['is']('element','code'))return;if(!_0x494805['consumable']['consume'](_0x16603c,{'attributes':['vid_start','vid_end']}))return;const _0x7e4798=_0x18fb36['modelRange']['start']['nodeAfter'];_0x494805['writer']['setAttribute']('vid_start',_0x16603c['getAttribute']('vid_start'),_0x7e4798),_0x494805['writer']['setAttribute']('vid_end',_0x16603c['getAttribute']('vid_end'),_0x7e4798);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41c939=>{_0x41c939['on']('element',(_0x5765d7,_0x2ef7e8,_0x24df94)=>{if(!_0x24df94['consumable']['consume'](_0x2ef7e8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2ef7e8['modelRange']['isCollapsed'])return;const _0xd85dff=_0x2ef7e8['modelRange']['start']['nodeAfter'];_0xd85dff['hasAttribute']('vid_start')||_0xd85dff['hasAttribute']('vid')||(_0x24df94['writer']['setAttribute']('vid_start',_0x2ef7e8['viewItem']['getAttribute']('vid_start'),_0xd85dff),_0x24df94['writer']['setAttribute']('vid_end',_0x2ef7e8['viewItem']['getAttribute']('vid_end'),_0xd85dff));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x442555=>_0x442555['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xfccf92,[,_0x52cc34])=>{['vid_start','vid_end','vid']['includes'](_0x52cc34)&&(_0xfccf92['return']=!0x0,_0xfccf92['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x41ad4a=>{_0x41ad4a['on']('attribute:vid',(_0xce7c0,_0x569fb5,_0x9b23c9)=>{if('\x20'!=_0x569fb5['item']['data']||_0x569fb5['item']['parent']['maxOffset']>0x1)return;if(!_0x9b23c9['consumable']['consume'](_0x569fb5['item'],_0xce7c0['name']))return;const _0x182b91=_0x9b23c9['writer'],_0x2b8167=_0x9b23c9['mapper']['toViewRange'](_0x569fb5['range']);_0x182b91['wrap'](_0x2b8167,_0x182b91['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4ca396){const _0x5d5d2e=_0x4ca396['plugins']['get']('RevisionViewer');return(_0x460555,_0x2ec341,_0x1939f2)=>{const _0x261e35=_0x2ec341['markerName']['split'](':')[0x1],_0xa385df=_0x5d5d2e['_getChangeFromId'](_0x261e35);if(!_0xa385df)return null;const _0x25ab7f='add'==_0xa385df['type']?'split':'merge';if(!_0x1939f2['consumable']['test'](_0x2ec341['markerRange'],_0x460555['name']))return;const _0x9b8653=_0x2ec341['markerRange']['getWalker'](),_0x1c08eb=_0x2ec341['markerRange']['start'],_0xef03e6=_0x4ca396['model']['schema'];let _0x2e10fa=null,_0x3a3ab3=null,_0x4f8717=!0x1,_0x2d17be=!0x1;for(const _0x597473 of _0x9b8653){const _0x17f706=_0x597473['item'];_0x4f8717=_0x4f8717||_0xef03e6['isContent'](_0x17f706);const _0x504449=_0x1939f2['mapper']['toViewElement'](_0x17f706);if(_0x504449&&_0x504449['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x597473['type']&&(_0xef03e6['isBlock'](_0x17f706)&&!_0xef03e6['isLimit'](_0x17f706)&&(_0x17f706['nextSibling']||_0x1c08eb['isAtEnd']?_0x2e10fa&&_0x2e10fa['parent']==_0x17f706||(_0x2e10fa=_0x17f706,_0x5a815c(_0x597473['previousPosition']),_0x2d17be=!0x0):_0x3a3ab3=_0x3a3ab3||_0x597473['previousPosition']));}function _0x5a815c(_0x247c5b){const _0x5d1161=_0x1939f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25ab7f}),_0x4dc68b=_0x1939f2['mapper']['toViewPosition'](_0x247c5b);_0xa385df['data']['isSuggestion']&&_0x1939f2['writer']['addClass']('ck-suggestion-marker-'+_0x25ab7f+'-new',_0x5d1161),_0x5d5d2e['activeChange']==_0xa385df&&_0x1939f2['writer']['addClass']('ck-suggestion-marker--active',_0x5d1161),_0x1939f2['writer']['insert'](_0x4dc68b,_0x5d1161),_0x1939f2['mapper']['bindElementToMarker'](_0x5d1161,_0x2ec341['markerName']);}_0x4f8717||_0x2d17be||!_0x3a3ab3||_0x5a815c(_0x3a3ab3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5e4d0a,_0x59cc3f,_0x578e4f)=>{const _0x2ab1aa=_0x578e4f['mapper']['markerNameToElements'](_0x59cc3f['markerName']);if(_0x2ab1aa){for(const _0x39c6ef of _0x2ab1aa)(_0x39c6ef['hasClass']('ck-suggestion-marker-split')||_0x39c6ef['hasClass']('ck-suggestion-marker-merge'))&&(_0x578e4f['mapper']['unbindElementFromMarkerName'](_0x39c6ef,_0x59cc3f['markerName']),_0x578e4f['writer']['remove'](_0x39c6ef));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3d8f9f,_0x43ee3e,_0x44c6b2)=>{const _0x4a543b=_0x43ee3e['markerName']['split'](':')[0x1],_0x19e67d=this['_getChangeFromId'](_0x4a543b);if(!_0x19e67d)return null;const _0x22c910='add'==_0x19e67d['type']?'split':'merge';if(_0x44c6b2['consumable']['test'](_0x43ee3e['markerRange'],_0x3d8f9f['name']))for(const _0x171cdb of _0x43ee3e['markerRange']['getItems']()){if(!_0x171cdb['is']('element','softBreak'))continue;const _0x4b6c80=_0x44c6b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22c910}),_0xb70e91=_0x44c6b2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x171cdb));_0x19e67d['data']['isSuggestion']&&_0x44c6b2['writer']['addClass']('ck-suggestion-marker-'+_0x22c910+'-new',_0x4b6c80),this['activeChange']==_0x19e67d&&_0x44c6b2['writer']['addClass']('ck-suggestion-marker--active',_0x4b6c80),_0x44c6b2['writer']['insert'](_0xb70e91,_0x4b6c80),_0x44c6b2['mapper']['bindElementToMarker'](_0x4b6c80,_0x43ee3e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x340785=>{for(const _0x3eddf6 of this['editor']['model']['document']['getRootNames']()){const _0x14c6e0=this['editor']['model']['document']['getRoot'](_0x3eddf6),_0x357602=this['editor']['editing']['view']['document']['getRoot'](_0x3eddf6);if(_0x357602){const _0x36be08=_0x14c6e0['getAttribute']('revisionHistoryAttachChange');if(_0x340785['removeAttribute']('data-change-id',_0x357602),_0x340785['removeClass']('ck-revision-history-root-add',_0x357602),_0x340785['removeClass']('ck-revision-history-root-remove',_0x357602),_0x340785['removeClass']('ck-revision-history-root--active',_0x357602),_0x36be08){const _0x3a4b15=this['_getChangeFromId'](_0x36be08);if(!_0x3a4b15)return null;_0x340785['setAttribute']('data-change-id',_0x36be08,_0x357602),_0x340785['addClass']('ck-revision-history-root-'+_0x3a4b15['type'],_0x357602),this['activeChange']==_0x3a4b15&&_0x340785['addClass']('ck-revision-history-root--active',_0x357602);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x592e53=>'revision-comment:'+_0x592e53,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x43dc56=>'revision-suggestion:'+_0x43dc56,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5a2889=>({'name':'suggestion:'+_0x5a2889,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x27c873=>{const _0x9af84=_0x27c873['markerName']['split'](':')[0x1];return'insertion'!=_0x9af84&&'deletion'!=_0x9af84?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x9af84]};}}),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',(_0x5ae29b,_0x4c253e,_0x589f01)=>{const _0x30cf35=_0x589f01['mapper']['markerNameToElements'](_0x4c253e['markerName']);if(_0x30cf35){for(const _0x79776e of _0x30cf35)_0x79776e['is']('uiElement')&&(_0x589f01['mapper']['unbindElementFromMarkerName'](_0x79776e,_0x4c253e['markerName']),_0x589f01['writer']['remove'](_0x79776e));}},{'priority':'high'});}['_getChangeFromId'](_0x348c0e){return this['_changeIdToChange']['get'](_0x348c0e);}['_getViewForChange'](_0x3dd294){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3dd294),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb74560,_0x5717a9,_0x2aedfc,_0x1b6955)=>{_0x1b6955&&this['_balloon']['remove'](_0x1b6955),_0x2aedfc&&(this['_balloon']['add']({'view':_0x2aedfc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x527e5e=this['editor']['editing'],_0x3110b3=this['_getChangeFromId'](_0x2aedfc['changeId']);let _0x1f3957;if(_0x3110b3['data']['isOnRoot']){const _0x43367e=_0x527e5e['view']['getDomRoot'](_0x3110b3['rootName']);_0x1f3957=Array['from'](_0x43367e['getClientRects']());}else{const _0x4cf945=this['editor']['model']['markers']['get']('revision:'+_0x2aedfc['changeId']);_0x1f3957=Array['from'](_0x527e5e['mapper']['markerNameToElements'](_0x4cf945['name']))['map'](_0x3bdfaf=>_0x527e5e['view']['domConverter']['mapViewToDom'](_0x3bdfaf))['map'](_0x50493c=>Array['from'](_0x50493c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1f3957[0x0];return _0x1f3957['find'](_0x2cda6a=>_0x2cda6a['top']-0x3<=this['_activeViewTarget']['y']&&_0x2cda6a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2cda6a['left']-0x3<=this['_activeViewTarget']['x']&&_0x2cda6a['right']+0x3>=this['_activeViewTarget']['x'])||_0x1f3957[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x44c488,_0x2fc60f,_0x46b5fb,_0x5528b5)=>{this['activeView']=_0x46b5fb?this['_getViewForChange'](_0x46b5fb):null,this['editor']['model']['change'](()=>{const _0x139c44=this['editor']['editing'];_0x5528b5&&(_0x5528b5['data']['isOnRoot']?_0x139c44['view']['change'](_0x320bdc=>{_0x320bdc['removeClass']('ck-revision-history-root--active',_0x139c44['view']['document']['getRoot'](_0x5528b5['rootName']));}):_0x139c44['reconvertMarker']('revision:'+_0x5528b5['id'])),_0x46b5fb&&(_0x46b5fb['data']['isOnRoot']?_0x139c44['view']['change'](_0x4d4ff3=>{_0x4d4ff3['addClass']('ck-revision-history-root--active',_0x139c44['view']['document']['getRoot'](_0x46b5fb['rootName']));}):_0x139c44['reconvertMarker']('revision:'+_0x46b5fb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2137c9,_0x81e42e)=>{if(this['activeChange'])return;const _0x4ac322=this['_findChangeIdFromDomTarget'](_0x81e42e['target']),_0x453de6=this['_changeIdToChange']['get'](_0x4ac322);_0x453de6?(this['_activeViewTarget']={'x':_0x81e42e['domEvent']['x'],'y':_0x81e42e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x453de6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26d85b,_0x5826ab)=>{const _0x1d010f=this['_findChangeIdFromDomTarget'](_0x5826ab['target']),_0x37d957=this['_changeIdToChange']['get'](_0x1d010f);_0x37d957?(this['_activeViewTarget']={'x':_0x5826ab['domEvent']['x'],'y':_0x5826ab['domEvent']['y']},_0x37d957===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x37d957):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x20561c){do{const _0x42738d=_0x20561c['getAttribute']('data-change-id');if(_0x42738d)return _0x42738d;_0x20561c=_0x20561c['parent'];}while(_0x20561c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21d62e=>{for(const _0x279f5c of this['editor']['model']['markers'])_0x21d62e['removeMarker'](_0x279f5c);});}}function Q(_0x3168ee,_0x2667da){return(_0x3916f1,_0x1e8771,_0x235ecf)=>{if(!_0x235ecf['consumable']['test'](_0x1e8771['markerRange'],_0x3916f1['name']))return;const _0xc65cde=_0x1e8771['markerRange']['getWalker'](),_0x353b1f=_0x1e8771['markerRange']['start'],_0x5ec111=_0x3168ee['model']['schema'];let _0x31f25f=null,_0x2e74b7=null,_0x59c93a=!0x1,_0xb62167=!0x1;for(const _0x391b45 of _0xc65cde){const _0x46acbf=_0x391b45['item'];_0x59c93a=_0x59c93a||_0x5ec111['isContent'](_0x46acbf);const _0x4efdd3=_0x235ecf['mapper']['toViewElement'](_0x46acbf);if(_0x4efdd3&&_0x4efdd3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x391b45['type']&&(_0x5ec111['isBlock'](_0x46acbf)&&!_0x5ec111['isLimit'](_0x46acbf)&&(_0x46acbf['nextSibling']||_0x353b1f['isAtEnd']?_0x31f25f&&_0x31f25f['parent']==_0x46acbf||(_0x31f25f=_0x46acbf,_0x3d8d6a(_0x391b45['previousPosition']),_0xb62167=!0x0):_0x2e74b7=_0x2e74b7||_0x391b45['previousPosition']));}function _0x3d8d6a(_0xb7a712){const _0x17a3d0=_0x235ecf['mapper']['toViewPosition'](_0xb7a712),_0x2ef0e5=_0x235ecf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2667da});_0x235ecf['writer']['insert'](_0x17a3d0,_0x2ef0e5),_0x235ecf['mapper']['bindElementToMarker'](_0x2ef0e5,_0x1e8771['markerName']);}_0x59c93a||_0xb62167||!_0x2e74b7||_0x3d8d6a(_0x2e74b7);};}class nt extends _0x1bb13c{constructor(_0x401561){super(_0x401561);const _0x348c34=_0x401561['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x348c34,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x348c34,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4f093e=this['editor'],_0x242123=_0x4f093e['plugins']['get'](u),_0x5df279=_0x242123['isReady']?_0x242123['diff']['newRevisionId']:null;_0x4f093e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5df279);}['refresh'](){const {isReady:_0x26d0c0,isEnabled:_0x456cd8,repository:_0x18c621,diff:_0x25d726}=this['editor']['plugins']['get'](u),_0x33dbd4=_0x25d726&&_0x18c621['getLaterVisibleRevision'](_0x25d726['newRevisionId']);this['isEnabled']=_0x26d0c0&&_0x456cd8&&Boolean(_0x33dbd4);}}class ot extends _0x1bb13c{['_step'];constructor(_0x4dd1bc,{direction:_0x10fe5d}){super(_0x4dd1bc);const _0x37ca69=_0x4dd1bc['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x10fe5d?0x1:-0x1,this['listenTo'](_0x37ca69,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37ca69,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37ca69,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18ce15=this['editor'],_0x4978ba=_0x18ce15['plugins']['get'](u),{isNavigationMode:_0x33584f,currentChangeNumber:_0xdba9}=_0x4978ba;let _0x101d89;if(_0x4978ba['activeChange']=_0x33584f?_0x4978ba['diff']['changes']['get'](_0xdba9+this['_step']):_0x4978ba['diff']['changes']['first'],_0x4978ba['activeChange']['data']['isOnRoot'])_0x101d89=_0x18ce15['editing']['view']['getDomRoot'](_0x4978ba['activeChange']['rootName']);else{const _0x1b6448=_0x18ce15['model']['markers']['get']('revision:'+_0x4978ba['activeChange']['id']);_0x101d89=_0x1eaada(_0x18ce15['editing'],_0x1b6448);}_0xffbfb2({'target':_0x101d89,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x58da56,currentChangeNumber:_0x46e69c,numberOfChanges:_0x51b9c1,isReady:_0x43d85d,isEnabled:_0x5ce4dd}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x5ce4dd&&_0x43d85d&&_0x51b9c1)&&(!_0x58da56||(0x1===this['_step']?_0x46e69c<_0x51b9c1-0x1:_0x46e69c>0x0));}}class ui extends _0x28ff5a{constructor(_0x581a6e){super(_0x581a6e);const _0x38c712=this['bindTemplate'],_0x35fb00=new _0x22df11(_0x581a6e),_0x72ab80=new _0x22df11(_0x581a6e);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',(_0x7fef84,_0x1c3cbc)=>_0x7fef84&&_0x1c3cbc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4514f9,_0x2ed46c,_0x3da09a,_0x34f387)=>{if(!_0x4514f9)return m(_0x581a6e,'Loading...');if(!_0x3da09a)return m(_0x581a6e,'No\x20changes');const _0x580684=m(_0x581a6e,'NUMBER_OF_CHANGES',_0x3da09a);return _0x34f387?m(_0x581a6e,'X_OF_Y_CHANGES',[_0x2ed46c+0x1,_0x3da09a]):_0x580684;}),_0x35fb00['set']({'label':m(_0x581a6e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5453e5}),_0x72ab80['set']({'label':m(_0x581a6e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c4b72}),_0x35fb00['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x72ab80['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x35fb00['on']('execute',()=>this['fire']('execute','backward')),_0x72ab80['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',_0x38c712['if']('_isStatusLabelVisible','ck-hidden',_0x57d3af=>!_0x57d3af)]},'children':[{'text':_0x38c712['to']('isNavigationMode',_0x3e9202=>_0x3e9202?m(_0x581a6e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x581a6e,'Total')+':\x20')}]},{'text':_0x38c712['to']('_statusText')}]},new _0x2d4abe(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x35fb00,_0x72ab80]}]});}}const ge='ck-editor__editable__loading-overlay';class vi extends _0xb302f2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3144b1=this['editor']['editing']['view'];_0x3144b1['change'](_0x8a3f2d=>{for(const _0x98faee of _0x3144b1['document']['roots'])_0x8a3f2d['addClass'](ge,_0x98faee);});}['hide'](){const _0x41f516=this['editor']['editing']['view'];_0x41f516['change'](_0x3ee099=>{for(const _0x318eef of _0x41f516['document']['roots'])_0x3ee099['removeClass'](ge,_0x318eef);});}}class v extends _0xb302f2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,vi];}['init'](){const _0x4249f7=this['editor'],_0x291c01=_0x4249f7['plugins']['get'](u),_0x32a9a1=_0x4249f7['plugins']['get'](vi);_0x4249f7['ui']['componentFactory']['add']('exitToEditing',_0x3ab4ef=>{const _0x3fe0b1=new _0x22df11(_0x3ab4ef);return _0x3fe0b1['set']({'label':m(_0x3ab4ef,'Back\x20to\x20editing'),'icon':_0x77d497,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3fe0b1,'execute',()=>{_0x4249f7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3fe0b1;}),_0x4249f7['ui']['componentFactory']['add']('restoreRevision',_0x490cad=>{const _0x5a131=new _0x22df11(_0x490cad);return _0x5a131['set']({'label':m(_0x490cad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5a131['bind']('isEnabled')['to'](_0x4249f7['commands']['get']('restoreRevision')),this['listenTo'](_0x5a131,'execute',()=>_0x4249f7['execute']('restoreRevision')),_0x5a131;}),_0x4249f7['ui']['componentFactory']['add']('changesNavigation',_0x34ef5b=>{const _0xc37825=new ui(_0x34ef5b),_0x35bf8c=_0x4249f7['commands']['get']('showPreviousChange'),_0x525b94=_0x4249f7['commands']['get']('showNextChange');return _0xc37825['bind']('isBackwardNavigationEnabled')['to'](_0x35bf8c,'isEnabled'),_0xc37825['bind']('isForwardNavigationEnabled')['to'](_0x525b94,'isEnabled'),_0xc37825['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x291c01),this['listenTo'](_0xc37825,'execute',(_0x5b9452,_0x10a5e7)=>{_0x4249f7['execute']('forward'===_0x10a5e7?'showNextChange':'showPreviousChange');}),_0xc37825;}),_0x32a9a1['show'](),_0x291c01['on']('change:isReady',(_0x3c04ab,_0x2ce03e,_0x2050fd)=>{_0x2050fd?_0x32a9a1['hide']():_0x32a9a1['show']();});}}class wi extends ti{['_resizeObserver']=null;constructor(_0xc11f74,_0x444df7){super(_0xc11f74,_0x444df7);const _0x5aa14d=this['bindTemplate'];this['set']({'label':m(_0xc11f74,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xc11f74,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5aa14d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x47828a=this['fieldView']['element'];this['_tooltipString']=_0x47828a['scrollWidth']>_0x47828a['clientWidth']&&_0x47828a['value']||'';}}class yi extends _0x28ff5a{constructor(_0x28b1ff,_0x56528e,_0x266056){super(_0x28b1ff);const _0x2a5e25=new _0xb2dc1d();_0x2a5e25['set']({'content':_0x34dedb,'viewBox':'0\x200\x2011\x2010'});const _0x1b9a98=['ck','ck-revision-history-sidebar__revision-author'];_0x266056&&_0x1b9a98['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c0328=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x28b1ff,_0x266056?'Revision\x20creator':'Revision\x20author')},'children':[_0x2a5e25,_0x56528e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1b9a98},'children':_0x2c0328});}}function ji(_0x323ee5,_0x39314c){const _0x2a83c2=_0x323ee5['bindTemplate'],_0x1a1446=_0x323ee5['locale'],_0x46510e=_0x1f74c9(_0x1a1446);_0x46510e['panelPosition']='sw';const _0x20cdec=function(_0x3ab732,_0x269d2a){const _0x875c0b=function(_0x58869a,_0x3f649a){const _0x32df7c=_0x58869a['locale'],_0x549978={'Compare\x20against\x20selected':m(_0x32df7c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x32df7c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x32df7c,'Restore\x20this\x20revision')};return _0x3f649a['map'](_0x1c40c9=>{const _0x5d5a23=_0x549978[_0x1c40c9['name']];return _0x5d5a23&&_0x5d5a23!==_0x1c40c9['name']&&(_0x1c40c9['name']=_0x5d5a23),_0x1c40c9;});}(_0x3ab732,_0x269d2a),_0x52dced=new _0x150ee0();for(const _0x42bf28 of _0x875c0b){const _0x38b5c3={'type':'button','model':new to({'label':_0x42bf28['name'],'class':_0x42bf28['class'],'withText':!0x0,'role':'menuitem','_action':_0x42bf28['action']})};_0x38b5c3['model']['bind']('isEnabled')['to'](_0x3ab732,'isActionsDropdownOpen',_0x18accc=>'function'!=typeof _0x42bf28['isEnabled']||(!_0x18accc||_0x42bf28['isEnabled'](_0x3ab732))),_0x52dced['add'](_0x38b5c3);}return _0x52dced;}(_0x323ee5,_0x39314c);return _0x323ee5['bind']('isActionsDropdownOpen')['to'](_0x46510e,'isOpen'),_0x46510e['buttonView']['set']({'label':m(_0x1a1446,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x20126f}),_0x46510e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2a83c2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2a83c2['to'](_0x2b8723=>_0x2b8723['stopPropagation']())}}),_0x46510e['on']('execute',_0x52a8e3=>{_0x323ee5['isReady']&&'function'==typeof _0x52a8e3['source']['_action']&&_0x52a8e3['source']['_action'](_0x323ee5);}),_0x32b313(_0x46510e,_0x20cdec,{'role':'menu'}),_0x46510e['listenTo'](_0x323ee5,'change:isActionsDropdownOpen',(_0x3bd609,_0x2d2705,_0x2b5e89)=>{if(_0x2b5e89)for(const _0x2fd7ae of _0x46510e['listView']['items']){const _0x571390=_0x2fd7ae['children']['first'],_0x2ec7b1=_0x39314c['find'](_0xfbc6e=>_0xfbc6e['action']===_0x571390['_action'])['isVisible'];_0x2fd7ae['isVisible']=void 0x0===_0x2ec7b1||_0x2ec7b1(_0x323ee5);}}),_0x46510e;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x15af86(_0x28ff5a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x455c9f,_0x4703ba,_0x3de4ce,_0x3effb7){super(_0x455c9f);const _0x379d87=this['bindTemplate'],_0x322f8c=function(_0x347690,_0x3cee57){const _0x58fe50=Array['from'](_0x3cee57['authors'])['filter'](_0x30fb0a=>_0x30fb0a!=_0x3cee57['creator']);return _0x3cee57['creator']&&_0x58fe50['unshift'](_0x3cee57['creator']),_0x58fe50['map'](_0xa893b5=>new yi(_0x347690,_0xa893b5,_0xa893b5==_0x3cee57['creator']));}(_0x455c9f,_0x4703ba);this['id']=_0x4703ba['id'],this['_revision']=_0x4703ba,this['_requireRevisionName']=_0x3effb7,this['bind']('name','createdAt')['to'](_0x4703ba),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5ac41c=>{return _0x56c477=_0x455c9f['uiLanguage'],(_0x54d537=_0x5ac41c)['toLocaleDateString'](_0x56c477,{'month':'long','day':'numeric'})+',\x20'+_0x54d537['toLocaleTimeString'](_0x56c477,{'hour':'numeric','minute':'numeric'});var _0x56c477,_0x54d537;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new wi(_0x455c9f,_0x2ed296),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xa2a5ed=>_0xa2a5ed||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4af2f0,_0x3b3a75)=>_0x4af2f0&&_0x3b3a75),this['revisionActionsView']=_0x3de4ce&&_0x3de4ce['length']?ji(this,_0x3de4ce):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x379d87['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x379d87['if']('isEnabled','ck-disabled',_0x3bd916=>!_0x3bd916),_0x379d87['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x379d87['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x379d87['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':_0x379d87['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':_0x322f8c}]},this['revisionActionsView']],'on':{'click':_0x379d87['to'](_0x10f0e9=>{_0x10f0e9['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5ee53b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5ee53b,'change',()=>{this['_requireRevisionName']&&!_0x5ee53b['value']||this['fire']('setName',{'id':this['id'],'name':_0x5ee53b['value']}),_0x5ee53b['value']||(_0x5ee53b['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(_0x3af4ed,_0x38b3fe){const _0xbf7750=_0x38564c['fromJSDate'](_0x3af4ed)['setLocale'](_0x38b3fe),_0x173bcf=_0x38564c['local'](),_0x2eb29d=_0x173bcf['minus']({'days':0x1})['startOf']('day');let _0x48864c,_0x2ad183;return _0xbf7750['hasSame'](_0x173bcf,'day')?(_0x48864c=_0xbf7750['startOf']('day')['toJSDate'](),_0x2ad183=_0xbf7750['toRelativeCalendar']()):_0xbf7750['hasSame'](_0x2eb29d,'day')?(_0x48864c=_0x2eb29d['toJSDate'](),_0x2ad183=_0xbf7750['toRelativeCalendar']()):_0xbf7750['hasSame'](_0x173bcf,'week')?(_0x48864c=_0xbf7750['startOf']('week')['toJSDate'](),_0x2ad183=_0xbf7750['weekdayLong']||''):_0xbf7750['hasSame'](_0x173bcf,'year')?(_0x48864c=_0xbf7750['startOf']('month')['toJSDate'](),_0x2ad183=_0xbf7750['monthLong']||''):(_0x48864c=_0xbf7750['startOf']('year')['toJSDate'](),_0x2ad183=String(_0xbf7750['year'])),{'startDate':_0x48864c,'localizedPeriodName':_0x2ad183};}class bi extends _0x28ff5a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x324db1,_0x2f86c3,_0x975f29,_0x28479c){super(_0x324db1);const _0xd4777c=li(_0x2f86c3,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2f86c3,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x975f29,this['_requireRevisionName']=_0x28479c,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':_0xd4777c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x219210){const _0x3fac08=new _i(this['locale'],_0x219210,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3fac08);}['removeRevision'](_0x52275a){const _0x563fdb=this['revisionViews']['find'](_0x307720=>_0x307720['id']===_0x52275a['id']);this['revisionViews']['remove'](_0x563fdb);}}class fi extends _0x28ff5a{constructor(_0x1527cd){super(_0x1527cd);const _0xe4a748=new _0xb2dc1d();_0xe4a748['content']=_0xec2b1e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xe4a748,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1527cd,'Revision\x20history')]}]});}}class di extends _0x28ff5a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xde5cd2,_0x2cf74e,_0x1c1a27,_0x1d82b7){super(_0xde5cd2);const _0x4036c8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2cf74e,this['_revisionActions']=_0x1c1a27,this['_requireRevisionName']=_0x1d82b7,this['on']('select',(_0x1f9237,_0x3b4896)=>{this['fire']('revisionSelected',_0x3b4896);}),this['on']('setName',(_0x685acf,_0x1daf82)=>{this['fire']('revisionSetName',_0x1daf82);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0xde5cd2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4036c8['if']('isEnabled','ck-disabled',_0x568a63=>!_0x568a63)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x16dfd0 of this['_revisions'])this['_addRevision'](_0x16dfd0);this['_revisions']['on']('add',(_0x309b4d,_0x44999)=>{this['_addRevision'](_0x44999);}),this['_revisions']['on']('remove',(_0x3ff220,_0x54bf13)=>{this['_removeRevision'](_0x54bf13);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1331d6=>_0x1331d6['revisionViews']['map'](_0x364e00=>_0x364e00))['flat']();}['selectRevision'](_0x59b66a){for(const _0x4009cf of this['revisionViews'])_0x59b66a&&_0x59b66a['id']===_0x4009cf['id']?_0x4009cf['select']():_0x4009cf['deselect']();}['highlightRevisions'](_0x3cca83){for(const _0x28c597 of this['revisionViews'])_0x3cca83['some'](({id:_0x553985})=>_0x553985===_0x28c597['id'])?_0x28c597['highlight']():_0x28c597['unhighlight']();}['_addRevision'](_0x25f2a6){const _0x14af46=li(_0x25f2a6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x45477d=this['timePeriodViews']['get'](0x0);_0x45477d&&_0x45477d['startDate']['getTime']()===_0x14af46['getTime']()||(_0x45477d=new bi(this['locale'],_0x14af46,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x45477d)),_0x45477d['addRevision'](_0x25f2a6);}['_removeRevision'](_0x5d0443){const _0x476c88=li(_0x5d0443['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x476c88)['removeRevision'](_0x5d0443);}['_getTimePeriodViewByStartDate'](_0x1f43d7){return this['timePeriodViews']['find'](_0x228103=>_0x228103['startDate']['getTime']()===_0x1f43d7['getTime']());}}class d extends _0xb302f2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x262591(_0x15f11c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d945e,_0x1147e2){super(_0x1147e2),this['sourceElement']=_0x2d945e,this['model']['document']['createRoot']();const _0x1e82c8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1e82c8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xae7903,_0x2e4796){const _0x2b0001=new this(_0xae7903,_0x2e4796);return await _0x2b0001['initPlugins'](),await _0x2b0001['ui']['init'](_0xae7903),await _0x2b0001['data']['init'](_0x2b0001['config']['get']('initialData')||''),_0x2b0001['fire']('ready'),_0x2b0001;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x225e65{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bb7b9){function _0x431867(_0x5acdca){return _0x5acdca['map'](_0x2f1cc7=>String['fromCharCode'](_0x2f1cc7))['join']('');}super(_0x5bb7b9),this['result']='end',_0x5bb7b9[_0x431867([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431867([0x76,0x69,0x65,0x77])][_0x431867([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431867([0x61,0x75,0x74,0x6f]),_0x5bb7b9[_0x431867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x431867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431867([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x431867([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x431867([0x6f,0x6b])});}}class ct extends _0x225e65{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3470f3){if(super(_0x3470f3),!this['editor']['config']['get']('revisionHistory'))throw new _0x3880d2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x341bd0=>this['_showRevisionViewer']({..._0x341bd0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34db90=>this['_closeRevisionViewer'](_0x34db90)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b45c5=>this['_restoreRevision'](_0x3b45c5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4ff53e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4ff53e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2354e1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2354e1);}['getRevision'](_0x14b235){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14b235);}['getRevisions'](_0x20074e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x20074e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x269f34=this['editor'],_0x3bdd33=_0x15d8ee(_0x269f34,d),_0x20c2ab=_0x269f34['plugins']['get']('RevisionTracker'),_0x356eb2=_0x269f34['plugins']['get']('Users')['users'];return _0x3bdd33['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3bdd33['lazyRoots'],(_0x3bdd33['plugins']['push'](ht,l,u,class extends _0x225e65{static get['requires'](){return[l,'Users'];}['init'](){const _0x4c8f8c=this['editor']['plugins']['get']('Users');for(const _0x4be87d of _0x356eb2)_0x4be87d['isAnonymous']||_0x4c8f8c['getUser'](_0x4be87d['id'])||_0x4c8f8c['addUser'](_0x4be87d);const _0x25a3e7=_0x20c2ab['repository']['getRevisions']();let _0x579f0f=null;const _0x58f118=this['editor']['plugins']['get']('RevisionViewer');_0x58f118['adapter']=_0x20c2ab['adapter'],_0x58f118['bind']('isEnabled')['to'](_0x20c2ab),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x269f34,'isReadOnly',_0x11200e=>!_0x11200e);for(const _0x4aee4b of _0x25a3e7){const _0x50ea08=null===_0x4aee4b['creator'];if(_0x50ea08&&_0x4aee4b['toVersion']===_0x4aee4b['fromVersion'])continue;const _0x2c6120=_0x4aee4b['toJSON']();_0x58f118['addRevisionData'](_0x2c6120,(_0x45c146,_0x3c0429,_0x626e92)=>{if(_0x50ea08){if(_0x579f0f)_0x579f0f['_update'](_0x45c146,_0x3c0429);else{if(!_0x3c0429){const _0x497bb2=_0x626e92['toJSON']();_0x497bb2['id']=_0x5c7d64(),_0x20c2ab['saveRevision'](_0x497bb2,_0x626e92['toVersion'])['then'](_0x5d94ac=>{_0x579f0f=_0x5d94ac;});}}}else _0x4aee4b['_update'](_0x45c146,_0x3c0429);});}}},f),_0x3bdd33);}['_enhanceShowRevisionViewerCallback'](){const _0x12482c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x23a545=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3094a0=this['editor']['plugins']['get']('Autosave');await _0x3094a0['save']();}else await _0x23a545['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x38d95e=this['editor']['plugins']['get']('Dialog');_0x38d95e['isOpen']&&_0x38d95e['hide']();}const _0x1be270=this['_getRevisionViewerEditorConfig']();return _0x12482c(_0x1be270)['then'](_0x4559f9=>{return(this['_viewerEditor']=_0x4559f9,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'),_0x4559f9);})['catch'](_0x3f6630=>(console['error'](_0x3f6630),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x440fa3=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'](),_0x440fa3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4bf4b3=this['editor']['plugins']['get']('Annotations');_0x4bf4b3['refreshVisibility'](),_0x4bf4b3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x56df05){const _0x570352=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xf27688=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x39a9f7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x39a9f7,_0x56df05)['then'](_0x3791a8=>(_0xf27688['style']['display']='block',_0x570352['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3791a8));}['_closeRevisionViewer'](_0x2acac9){const _0x3551a4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3551a4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2acac9['destroy']();}async['_restoreRevision'](_0x4ac3ce){const _0x1d9a29=this['editor'],_0x1b9dfe=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x10b32b=_0x1d9a29['plugins']['get']('RevisionTracker'),_0x520766=_0x1d9a29['plugins']['get']('RevisionHistoryUtils'),_0x2779d7=_0x1b9dfe['repository']['getRevision'](_0x4ac3ce);let _0x20dfe3,_0x2c88b0,_0x485177;try{await _0x520766['loadRevisionData'](_0x2779d7,this['adapter']),_0x20dfe3=_0x520766['getRevisionDocumentData'](_0x2779d7),_0x2c88b0=_0x520766['getRevisionRootsAttributes'](_0x2779d7);}catch(_0x535d74){return void console['error'](_0x535d74);}_0x1d9a29['model']['change'](_0xea6666=>{for(const _0x54d3a8 of Array['from'](_0x1d9a29['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xea6666['removeMarker'](_0x54d3a8);}),_0x1b9dfe['isReady']=!0x1,_0x1d9a29['model']['enqueueChange'](_0x2a664f=>{_0x2a664f['setSelection'](null),_0x2a664f['removeSelectionAttribute'](_0x1d9a29['model']['document']['selection']['getAttributeKeys']());const _0xe23fca=Object['keys'](_0x20dfe3);for(const _0x592617 of _0x1d9a29['model']['document']['roots'])'$graveyard'!=_0x592617['rootName']&&_0x592617['isAttached']()&&!_0xe23fca['includes'](_0x592617['rootName'])&&_0x2a664f['detachRoot'](_0x592617);for(const _0xfabfe4 of _0xe23fca){let _0x24fc61=_0x1d9a29['model']['document']['getRoot'](_0xfabfe4);_0x24fc61&&_0x24fc61['isAttached']()||(_0x24fc61=_0x2a664f['addRoot'](_0xfabfe4));const _0x1b86b7=_0x2c88b0[_0xfabfe4],_0x3e01e4=Object['keys'](_0x1b86b7),_0x895694=_0x20dfe3[_0xfabfe4];for(const _0x3d613b of _0x24fc61['getAttributeKeys']())_0x3e01e4['includes'](_0x3d613b)||_0x2a664f['removeAttribute'](_0x3d613b,_0x24fc61);for(const _0xeecc9c of _0x3e01e4)_0x2a664f['setAttribute'](_0xeecc9c,_0x2c88b0[_0xfabfe4][_0xeecc9c],_0x24fc61);_0x2a664f['remove'](_0x2a664f['createRangeIn'](_0x24fc61)),_0x2a664f['insert'](_0x1d9a29['data']['parse'](_0x895694,_0x24fc61),_0x24fc61,0x0);}});const _0x4616c7=R(_0x1d9a29['locale'],'Restored');if(_0x2779d7['name'])_0x485177=-0x1==_0x2779d7['name']['indexOf'](_0x4616c7)?_0x4616c7+':\x20'+_0x2779d7['name']:_0x2779d7['name'];else _0x485177=_0x4616c7+':\x20'+(_0x2779d7['createdAt']['toLocaleDateString'](_0x1d9a29['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2779d7['createdAt']['toLocaleTimeString'](_0x1d9a29['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x10b32b['saveRevision']({'name':_0x485177}),_0x1b9dfe['isReady']=!0x0,_0x1d9a29['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
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x210a7b){super(_0x210a7b),this['_revisionViewer']=_0x210a7b['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xe837b5=this['_revisionsRepository']['_revisions'],_0x5c277c=this['_createRevisionActions'](),_0x1eb303=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xe837b5,_0x5c277c,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',(_0x2435ee,_0x27229f)=>{_0x27229f['revisionViews']['on']('add',(_0xa85d02,_0x6546c1)=>{_0x6546c1['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)),_0x1eb303['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xcd9f90=this['_revisionsRepository']['getRevision'](0x0);if(_0xcd9f90){const _0x5f4835=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xcd9f90['id']);this['_revisionViewer']['compare'](_0xcd9f90,_0x5f4835);}}['_handleRevisionSelected'](_0x37be15,_0x5f5bfc){const _0x1c4d23=this['_revisionsRepository']['getRevision'](_0x5f5bfc['id']),_0x4038b2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c4d23['id']);this['_revisionViewer']['compare'](_0x1c4d23,_0x4038b2);}['_handleRevisionSetName'](_0x16fe07,_0x218c5b){this['_revisionsRepository']['getRevision'](_0x218c5b['id'])['setName'](_0x218c5b['name']);}['_handleDiffChange'](_0x3166df,_0x580a7d,_0x5f9a7a){const _0x4a463b=this['_revisionsRepository']['getRevisionsInDiff'](_0x5f9a7a);_0x4a463b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4a463b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4a463b[0x0]));}['_createRevisionActions'](){const _0x189d17=this['editor'],_0xbbff25=d['availableRevisionActions'],_0x413cb4=_0x189d17['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x413cb4['length'])return _0x413cb4['map'](_0x175e74=>{const _0x3c9a93='string'==typeof _0x175e74?Object['assign']({},_0xbbff25[_0x175e74]):_0x175e74;return _0x3c9a93['action']=_0x3c9a93['action']['bind'](this,_0x189d17),_0x3c9a93['isVisible']&&(_0x3c9a93['isVisible']=_0x3c9a93['isVisible']['bind'](this,_0x189d17)),_0x3c9a93;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x59acd6},_0x598eec)=>{const _0xae03cc=_0x59acd6['get'](u),_0x430496=_0xae03cc['repository'];let _0x1cbecb=_0xae03cc['diff']['newRevisionId'],_0x4b227a=_0x598eec['id'];_0x430496['getIndex'](_0x1cbecb)>_0x430496['getIndex'](_0x4b227a)&&([_0x1cbecb,_0x4b227a]=[_0x4b227a,_0x1cbecb]),_0xae03cc['compare'](_0x1cbecb,_0x4b227a);},'isVisible':({plugins:_0x3d2f46},_0x378e21)=>{const _0x4f3911=_0x3d2f46['get'](u);return!(_0x4f3911['repository']['getRevisionsInDiff'](_0x4f3911['diff'])['length']>0x2)&&!_0x378e21['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x13505c,{id:_0x529ed4})=>{_0x13505c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x529ed4);},'isVisible':({plugins:_0x5b890e},_0x1409e9)=>!!_0x5b890e['get'](u)['repository']['getLaterVisibleRevision'](_0x1409e9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2d18e8},{id:_0x32520c,revisionNameView:_0x5e17db})=>{const _0x27b55c=_0x2d18e8['get'](u),_0x52d829=_0x27b55c['repository']['getEarlierVisibleRevision'](_0x32520c);_0x27b55c['compare'](_0x32520c,_0x52d829),_0x5e17db['focus'](),_0x5e17db['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x41b4cb,_0x36e3bb){super(_0x41b4cb),this['_view']=_0x36e3bb,this['_toolbarConfig']=st(_0x41b4cb['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xd4dd77){const _0x550eea=this['editor'],_0x45cf36=this['view'],_0x3d8f1c=_0x550eea['editing']['view'],_0x3cad71=_0x45cf36['editable'],_0x335174=_0x3d8f1c['document']['getRoot']();_0x3cad71['name']=_0x335174['rootName'],_0x45cf36['render']();const _0x4f1f7a=_0x3cad71['element'];this['setEditableElement'](_0x3cad71['name'],_0x4f1f7a),_0x45cf36['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3d8f1c['attachDomRoot'](_0x4f1f7a),this['_elementReplacer']['replace'](_0xd4dd77,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x113bd8=this['view'],_0x52e368=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x52e368['detachDomRoot'](_0x113bd8['editable']['name']),_0x113bd8['destroy']();}['_initToolbar'](){const _0x55c676=this['view'];_0x55c676['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x55c676['stickyPanel']['limiterElement']=_0x55c676['element'],_0x55c676['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x460741})=>_0x460741),_0x55c676['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x55c676['toolbar']);}}class ii extends _0x7f6b95{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x511093,_0x5d72b8,_0x276cf6={}){super(_0x511093),this['stickyPanel']=new _0x7b8335(_0x511093),this['toolbar']=new _0x18ca8b(_0x511093,{'shouldGroupWhenFull':_0x276cf6['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x511093,_0x5d72b8);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x4e63f0(_0x168dde){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xa11d04,_0x31b86a){super(_0x31b86a),this['sourceElement']=_0xa11d04,this['model']['document']['createRoot']();const _0x1423a8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1423a8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41215c,_0x1c3d8f){const _0x595e58=new this(_0x41215c,_0x1c3d8f);return await _0x595e58['initPlugins'](),await _0x595e58['ui']['init'](_0x41215c),await _0x595e58['data']['init'](_0x595e58['config']['get']('initialData')||''),_0x595e58['fire']('ready'),_0x595e58;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0xb302f2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bff40){function _0x1a0183(_0x4f69df){return _0x4f69df['map'](_0x505a6b=>String['fromCharCode'](_0x505a6b))['join']('');}super(_0x1bff40),this['result']='end',_0x1bff40[_0x1a0183([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a0183([0x76,0x69,0x65,0x77])][_0x1a0183([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a0183([0x61,0x75,0x74,0x6f]),_0x1bff40[_0x1a0183([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a0183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a0183([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a0183([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a0183([0x6f,0x6b])});}}class ht extends _0xb302f2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x3026a6){if(super(_0x3026a6),!this['editor']['config']['get']('revisionHistory'))throw new _0xd34d2c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x30ee4c=>this['_showRevisionViewer']({..._0x30ee4c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4f99b1=>this['_closeRevisionViewer'](_0x4f99b1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b2c60=>this['_restoreRevision'](_0x3b2c60)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40598b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40598b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f5376){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f5376);}['getRevision'](_0x126d22){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x126d22);}['getRevisions'](_0x3f5cdd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f5cdd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x6ebfed=this['editor'],_0x5c7ade=_0x3acf91(_0x6ebfed,p),_0x3a3a8b=_0x6ebfed['plugins']['get']('RevisionTracker'),_0x45baad=_0x6ebfed['plugins']['get']('Users')['users'];return _0x5c7ade['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5c7ade['lazyRoots'],(_0x5c7ade['plugins']['push'](at,u,v,class extends _0xb302f2{static get['requires'](){return[u,'Users'];}['init'](){const _0x47d8e7=this['editor']['plugins']['get']('Users');for(const _0x3b5de1 of _0x45baad)_0x3b5de1['isAnonymous']||_0x47d8e7['getUser'](_0x3b5de1['id'])||_0x47d8e7['addUser'](_0x3b5de1);const _0x4d14ff=_0x3a3a8b['repository']['getRevisions']();let _0x5e1ddc=null;const _0x4c9465=this['editor']['plugins']['get']('RevisionViewer');_0x4c9465['adapter']=_0x3a3a8b['adapter'],_0x4c9465['bind']('isEnabled')['to'](_0x3a3a8b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x6ebfed,'isReadOnly',_0x4a2bd4=>!_0x4a2bd4);for(const _0x37135d of _0x4d14ff){const _0x56c497=null===_0x37135d['creator'];if(_0x56c497&&_0x37135d['toVersion']===_0x37135d['fromVersion'])continue;const _0x3694bd=_0x37135d['toJSON']();_0x4c9465['addRevisionData'](_0x3694bd,(_0x2deb37,_0xed72c6,_0x2d71fc)=>{if(_0x56c497){if(_0x5e1ddc)_0x5e1ddc['_update'](_0x2deb37,_0xed72c6);else{if(!_0xed72c6){const _0x52408e=_0x2d71fc['toJSON']();_0x52408e['id']=_0x40f93b(),_0x3a3a8b['saveRevision'](_0x52408e,_0x2d71fc['toVersion'])['then'](_0x226946=>{_0x5e1ddc=_0x226946;});}}}else _0x37135d['_update'](_0x2deb37,_0xed72c6);});}}},d),_0x5c7ade);}['_enhanceShowRevisionViewerCallback'](){const _0x4e5b39=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x457afb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x153dfa=this['editor']['plugins']['get']('Autosave');await _0x153dfa['save']();}else await _0x457afb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5840d2=this['editor']['plugins']['get']('Dialog');_0x5840d2['isOpen']&&_0x5840d2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x11e19e=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1e51a1 of _0x11e19e)_0x1e51a1['class']=_0x1e51a1['class']?_0x1e51a1['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x121741=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x121741&&_0x121741['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x546956=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x546956&&_0x546956['setAttribute']('tabindex','-1');}}const _0x4319eb=this['_getRevisionViewerEditorConfig']();return _0x4e5b39(_0x4319eb)['then'](_0x1cd04c=>{return(this['_viewerEditor']=_0x1cd04c,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'),_0x1cd04c);})['catch'](_0xcfec51=>(console['error'](_0xcfec51),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x187b6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x17ca7a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1fef3b of _0x17ca7a)_0x1fef3b['class']='ck-tab-panel_disabled'===_0x1fef3b['class']?'':_0x1fef3b['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1f06d3=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1f06d3&&_0x1f06d3['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x335f68=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x335f68&&_0x335f68['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x187b6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3215d3=this['editor']['plugins']['get']('Annotations');_0x3215d3['refreshVisibility'](),_0x3215d3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x155a78){const _0x59dd5e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5dea0a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1316e8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1316e8,_0x155a78)['then'](_0x12a8e6=>(_0x5dea0a['style']['display']='block',_0x59dd5e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x12a8e6));}['_closeRevisionViewer'](_0x2ab375){const _0x8eeeb3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x8eeeb3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ab375['destroy']();}async['_restoreRevision'](_0x255dfc){const _0x56472c=this['editor'],_0x46a9fd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4fa0ce=_0x56472c['plugins']['get']('RevisionTracker'),_0x3722e3=_0x56472c['plugins']['get']('RevisionHistoryUtils'),_0x5cd14c=_0x46a9fd['repository']['getRevision'](_0x255dfc);let _0x40a804,_0x24ee1f,_0x2b543b;try{await _0x3722e3['loadRevisionData'](_0x5cd14c,this['adapter']),_0x40a804=_0x3722e3['getRevisionDocumentData'](_0x5cd14c),_0x24ee1f=_0x3722e3['getRevisionRootsAttributes'](_0x5cd14c);}catch(_0x37922b){return void console['error'](_0x37922b);}_0x56472c['model']['change'](_0x51b3e8=>{for(const _0x3bd2e9 of Array['from'](_0x56472c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x51b3e8['removeMarker'](_0x3bd2e9);}),_0x46a9fd['isReady']=!0x1,_0x56472c['model']['enqueueChange'](_0x331d89=>{_0x331d89['setSelection'](null),_0x331d89['removeSelectionAttribute'](_0x56472c['model']['document']['selection']['getAttributeKeys']());const _0x3bdf25=Object['keys'](_0x40a804);for(const _0x37ce3b of _0x56472c['model']['document']['roots'])'$graveyard'!=_0x37ce3b['rootName']&&_0x37ce3b['isAttached']()&&!_0x3bdf25['includes'](_0x37ce3b['rootName'])&&_0x331d89['detachRoot'](_0x37ce3b);for(const _0xed5811 of _0x3bdf25){let _0x5ca8f6=_0x56472c['model']['document']['getRoot'](_0xed5811);_0x5ca8f6&&_0x5ca8f6['isAttached']()||(_0x5ca8f6=_0x331d89['addRoot'](_0xed5811));const _0x370865=_0x24ee1f[_0xed5811],_0x3a11fc=Object['keys'](_0x370865),_0xb54894=_0x40a804[_0xed5811];for(const _0x12cfba of _0x5ca8f6['getAttributeKeys']())_0x3a11fc['includes'](_0x12cfba)||_0x331d89['removeAttribute'](_0x12cfba,_0x5ca8f6);for(const _0x502585 of _0x3a11fc)_0x331d89['setAttribute'](_0x502585,_0x24ee1f[_0xed5811][_0x502585],_0x5ca8f6);_0x331d89['remove'](_0x331d89['createRangeIn'](_0x5ca8f6)),_0x331d89['insert'](_0x56472c['data']['parse'](_0xb54894,_0x5ca8f6),_0x5ca8f6,0x0);}});const _0x130586=m(_0x56472c['locale'],'Restored');if(_0x5cd14c['name'])_0x2b543b=-0x1==_0x5cd14c['name']['indexOf'](_0x130586)?_0x130586+':\x20'+_0x5cd14c['name']:_0x5cd14c['name'];else _0x2b543b=_0x130586+':\x20'+(_0x5cd14c['createdAt']['toLocaleDateString'](_0x56472c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5cd14c['createdAt']['toLocaleTimeString'](_0x56472c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4fa0ce['saveRevision']({'name':_0x2b543b}),_0x46a9fd['isReady']=!0x0,_0x56472c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,vi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|