@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250106.0 → 0.0.0-nightly-20250108.0
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 +6 -6
- 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/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 +8 -8
- 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/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 +1 -1
- 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,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x88e50a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e6311){super(),this['id']=_0x4e6311['id']||_0x4c02ac(),this['creator']=_0x4e6311['creator']||null,this['authors']=_0x4e6311['authors']||[],this['diffData']=_0x4e6311['diffData']||null,this['toVersion']=_0x4e6311['toVersion']||0x0,this['fromVersion']=_0x4e6311['fromVersion']||0x0,this['set']('name',_0x4e6311['name']||''),this['set']('createdAt',_0x4e6311['createdAt']||new Date()),this['set']('attributes',_0x4e6311['attributes']||{});}['setName'](_0x35481f){this['_update']({'name':_0x35481f});}['setAttribute'](_0x42aaa4,_0x5460ba){const _0x4e95bd=_0x3e8ae0(this['attributes']);_0x21dd8f(_0x4e95bd,_0x42aaa4,_0x5460ba),this['_update']({'attributes':_0x4e95bd});}['removeAttribute'](_0x12e96c){const _0x5aedd5=_0x3e8ae0(this['attributes']);_0x1a05c4(_0x5aedd5,_0x12e96c),this['_update']({'attributes':_0x5aedd5});}['_update'](_0x4151f9,_0x3e1d3e=!0x1){let _0x46cb=!0x1;const _0x4b6241={'id':this['id']},_0x4592ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b90dc of _0x4592ca){const _0x5e330f=_0x4151f9[_0x5b90dc];void 0x0!==_0x5e330f&&_0x5e330f!==this[_0x5b90dc]&&(this[_0x5b90dc]=_0x5e330f,_0x4b6241[_0x5b90dc]=_0x5e330f,_0x46cb=!0x0);}_0x46cb&&(_0x4b6241['authors']&&(_0x4b6241['authorsIds']=_0x4b6241['authors']['map'](_0x150b35=>_0x150b35['id']),delete _0x4b6241['authors']),this['fire']('_update',_0x4b6241,_0x3e1d3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xa6058e=>_0xa6058e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x434fd7{['_revisions'];static get['requires'](){return[_0x1124cd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d8e56){super(_0x4d8e56),this['_revisions']=new _0x2d1bb4();}['afterInit'](){!async function(_0x4e9ffe){const _0x4848d9=_0x3b23c0([0x39,0x49,0x54,0x63,0x76,0x66,0x56,0x4b,0x68,0x52,0x55,0x71,0x58,0x38,0x57,0x50,0x69,0x30,0x42,0x4e,0x67,0x48,0x79,0x51,0x46,0x62,0x59,0x4f,0x37,0x6b,0x6f,0x74,0x32,0x5a,0x31,0x44,0x35,0x6c,0x6e,0x73,0x6a,0x61,0x7a,0x77,0x33,0x34,0x78,0x64,0x4d,0x75,0x65,0x36,0x6d,0x43,0x41,0x45,0x70,0x47,0x72,0x4a,0x4c,0x53]),_0x460ce=0xeb829,_0x2fd0ce=0x6e3c1333,_0x2014b7=0x6e3b48e3^_0x2fd0ce,_0x2f31e4=window[_0x3b23c0([0x44,0x61,0x74,0x65])][_0x3b23c0([0x6e,0x6f,0x77])](),_0x3f6d55=_0x4e9ffe[_0x3b23c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20236b=new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597cd9=>{_0x3f6d55[_0x3b23c0([0x6f,0x6e,0x63,0x65])](_0x3b23c0([0x72,0x65,0x61,0x64,0x79]),_0x597cd9);}),_0x33f7df={[_0x3b23c0([0x6b,0x74,0x79])]:_0x3b23c0([0x45,0x43]),[_0x3b23c0([0x75,0x73,0x65])]:_0x3b23c0([0x73,0x69,0x67]),[_0x3b23c0([0x63,0x72,0x76])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36]),[_0x3b23c0([0x78])]:_0x3b23c0([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]),[_0x3b23c0([0x79])]:_0x3b23c0([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]),[_0x3b23c0([0x61,0x6c,0x67])]:_0x3b23c0([0x45,0x53,0x32,0x35,0x36])},_0x47b3b4=_0x3f6d55[_0x3b23c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b23c0([0x67,0x65,0x74])](_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6ac4d4(){let _0xd9b950,_0x1f8fe4=null,_0x318de4=null;try{if(_0x47b3b4==_0x3b23c0([0x47,0x50,0x4c]))return _0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd9b950=_0x55496b(),!_0xd9b950)return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x318de4=_0x4d9974(_0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd9b950[_0x3b23c0([0x6a,0x74,0x69])])),await _0x44e4d0()?_0x1f190d()?_0x2f8ded()?_0x3b23c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3547()?(_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcbd909()):_0x3b23c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3da5bd){return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f8ded(){const _0x310b65=[_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])][_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f31e4/0x3e8:0xe10*_0x2014b7;return _0xd9b950[_0x3b23c0([0x65,0x78,0x70])]<_0x310b65;}function _0x1f190d(){const _0x4d8398=_0xd9b950[_0x3b23c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d8398)return!0x1;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x48])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x52,0x48]))){if(_0x1416c8())return!0x0;if(_0x263088()||_0x2fc2b8())return!0x0;}return!0x1;}function _0x5e3547(){const _0x58d6fd=_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58d6fd||0x0==_0x58d6fd[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bc7c0}=new URL(window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58d6fd[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bc7c0))return!0x0;const _0x435c3b=_0x5bc7c0[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));return _0x58d6fd[_0x3b23c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cc28b=>_0x3cc28b[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))[_0x3b23c0([0x6d,0x61,0x70])](_0x4a7c9f=>_0x4a7c9f[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])))[_0x3b23c0([0x73,0x6f,0x6d,0x65])](_0x8fa551=>_0x435c3b[_0x3b23c0([0x65,0x76,0x65,0x72,0x79])]((_0xb11cb1,_0x3b2dbc)=>_0x8fa551[_0x3b2dbc]===_0xb11cb1||_0x8fa551[_0x3b2dbc]===_0x3b23c0([0x2a])));}function _0xcbd909(){return _0x1f8fe4&&_0x318de4?new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x102508,_0x18e8e8)=>{_0x1f8fe4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x102508,_0x18e8e8),_0x318de4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4ae983=>{_0x4ae983!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0x102508(_0x4ae983);},_0x18e8e8);}):_0x1f8fe4||_0x318de4||_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d9974(_0x1a2491,_0x31a1d8){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5313a4=>{if(_0x228b2f())return _0x5313a4(_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]));_0x3737bb(),_0x3f6d55[_0x3b23c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cc262=!0x1;const _0x138274=_0x4c02ac();function _0x552929(_0x493995){return!!_0x493995&&(typeof _0x493995===_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x493995===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x493995[_0x3b23c0([0x74,0x68,0x65,0x6e])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x493995[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12c5fb(_0x486849){_0x49d7d2(_0x486849)[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4a83ea=>{if(!_0x4a83ea||_0x4a83ea[_0x3b23c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b23c0([0x6f,0x6b]))return _0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39b1bc(_0x2a92c2(_0x138274+_0x31a1d8))!=_0x4a83ea[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x1b8a20=>(_0x2ac150(),_0x1b8a20),()=>{const _0x2c65dc=_0x36b23c();return null==_0x2c65dc?(_0x2ac150(),_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])):_0x3b23c0(_0x2f31e4-_0x2c65dc>(0x4a309733^_0x2fd0ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x5313a4)[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe5aeb6=0x6e0afdb3^_0x2fd0ce;function _0x2ac150(){const _0x3ac1bc=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x49c4c8=_0x3670b9(_0x39b1bc(window[_0x3b23c0([0x4d,0x61,0x74,0x68])][_0x3b23c0([0x63,0x65,0x69,0x6c])](_0x2f31e4/_0xe5aeb6)));window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac1bc,_0x49c4c8);}function _0x36b23c(){const _0x500704=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x430684=window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x500704);return _0x430684?window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3670b9(_0x430684),0x10)*_0xe5aeb6:null;}function _0x49d7d2(_0x1e1bce){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d0f69,_0x431fdb)=>{_0x1e1bce[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4d0f69,_0x431fdb),window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x431fdb,0x6e3dc7f3^_0x2fd0ce);});}}_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f1098,_0x6a6ab8)=>{if(_0x6a6ab8[0x0]!=_0x1a2491)return _0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6a6ab8[0x1]={..._0x6a6ab8[0x1],[_0x3b23c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x138274};},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x68,0x69,0x67,0x68])}),_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7bf036=>{_0x552929(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cc262=!0x0,_0x12c5fb(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x6c,0x6f,0x77])}),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>{_0x5cc262||_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x228b2f(){return _0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b23c0([0x61,0x75,0x74,0x6f]);}function _0x3737bb(){_0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b23c0([0x61,0x75,0x74,0x6f]);}}function _0x5c20d8(_0x467bd8){const _0x5f252c=[new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20df12=>setTimeout(_0x20df12,0x6e352dff^_0x2fd0ce)),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461ad7=>{const _0x25e995=0x6e3c1334^_0x2fd0ce,_0x427cc8=_0x4e9ffe[_0x3b23c0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x594ba3(){_0x427cc8[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x25e995&&_0x461ad7();}_0x594ba3(),_0x427cc8[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x61,0x64,0x64]),_0x594ba3);})),new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8fbf=>{function _0x3df9c4(){for(const _0x218263 in window)if(window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x218263))&&window[_0x218263]==_0x460ce)return _0x3b8fbf();_0x3f6d55[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]!=_0x3b23c0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3df9c4,0x6e3c00bb^_0x2fd0ce);}_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3df9c4();})];return window[_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b23c0([0x72,0x61,0x63,0x65])](_0x5f252c)[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>_0x467bd8);}async function _0xf5d8bc(){if(await _0x20236b,_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x397dbd=_0x4e9ffe[_0x3b23c0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18a191=_0x4e9ffe[_0x3b23c0([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])](_0x397dbd[_0x3b23c0([0x69,0x64])]),_0x233e9e=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x397dbd['id'],_0x18a191?_0x18a191['id']:null,!0x0),_0x233e9e[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x233e9e[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x584110,void(_0x233e9e[_0x3b23c0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x584110);}if(_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ce983=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ce983[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ce983[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ce983[_0x3b23c0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x584110,_0x5ce983[_0x3b23c0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x584110;}_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1416c8(){return _0xd80222(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4df06e(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]==_0x3b23c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x263088(){return _0xd80222(_0x3b23c0([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 _0x2fc2b8(){return _0xd80222(_0x3b23c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10e647(_0x388f24){const _0xa99dcf=_0x5fc642();_0x3f6d55[_0xa99dcf]=_0x3b23c0([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])+_0x388f24,_0x388f24[_0x3b23c0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5fc642()]=_0x460ce),_0x388f24!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0xf5d8bc();}function _0x5fc642(){const _0x3368ff=window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b23c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b23c0([0x6e,0x6f,0x77])]())[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b23c0([0x2e]),'');let _0x2c640b=_0x3b23c0([0x49]);for(let _0x2f9d3c=0x0;_0x2f9d3c<_0x3368ff[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9d3c+=0x2){let _0x3aa684=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3368ff[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9d3c,_0x2f9d3c+0x2));_0x3aa684>=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa684-=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c640b+=_0x4848d9[_0x3aa684];}return _0x2c640b;}function _0x55496b(){const _0x29d14a=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));if(0x3!=_0x29d14a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x287e20(_0x29d14a[0x1]);function _0x287e20(_0xbfa891){const _0x45a395=_0x563964(_0xbfa891);return _0x45a395&&_0x5bf41e()?_0x45a395:null;function _0x5bf41e(){const _0x4a5758=_0x45a395[_0x3b23c0([0x6a,0x74,0x69])],_0x2ad41b=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18fbd3={..._0x45a395,[_0x3b23c0([0x6a,0x74,0x69])]:_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18fbd3[_0x3b23c0([0x76,0x63])],_0x2a92c2(_0x18fbd3)==_0x2ad41b;}}}async function _0x44e4d0(){let _0x59b600=!0x0;try{const _0x4dd0d8=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])),[_0x4d5144,_0x146281,_0x2a0c5b]=_0x4dd0d8;return _0x1174ea(_0x4d5144),await _0x3f2188(_0x4d5144,_0x146281,_0x2a0c5b),_0x59b600;}catch(_0x4d986c){return!0x1;}function _0x1174ea(_0x190bdd){const _0x32f105=_0x563964(_0x190bdd);_0x32f105&&_0x32f105[_0x3b23c0([0x61,0x6c,0x67])]==_0x3b23c0([0x45,0x53,0x32,0x35,0x36])||(_0x59b600=!0x1);}async function _0x3f2188(_0x439021,_0x4cf3ea,_0x6468b6){const _0x37ec4a=window[_0x3b23c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b23c0([0x66,0x72,0x6f,0x6d])](_0x5e75b8(_0x6468b6),_0x2a754c=>_0x2a754c[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19c7e8=new window[(_0x3b23c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b23c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x439021+_0x3b23c0([0x2e])+_0x4cf3ea),_0x56ede3=window[_0x3b23c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b23c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56ede3)return;const _0x192e06=await _0x56ede3[_0x3b23c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b23c0([0x6a,0x77,0x6b]),_0x33f7df,{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56ede3[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x68,0x61,0x73,0x68])]:{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x192e06,_0x37ec4a,_0x19c7e8)||(_0x59b600=!0x1);}}function _0x563964(_0x30dc9c){return _0x30dc9c[_0x3b23c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x65,0x79]))?JSON[_0x3b23c0([0x70,0x61,0x72,0x73,0x65])](_0x5e75b8(_0x30dc9c)):null;}function _0x5e75b8(_0x13361a){return window[_0x3b23c0([0x61,0x74,0x6f,0x62])](_0x13361a[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b23c0([0x2b]))[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b23c0([0x2f])));}function _0x2a92c2(_0x232b46){let _0x43aedf=0x1505;function _0x264bf1(_0x91f9a){for(let _0x5c0f44=0x0;_0x5c0f44<_0x91f9a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0f44++){const _0x51d3d5=_0x91f9a[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0f44);_0x43aedf=(_0x43aedf<<0x5)+_0x43aedf+_0x51d3d5,_0x43aedf&=_0x43aedf;}}function _0x9894b7(_0x166bfb){Array[_0x3b23c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x166bfb)?_0x166bfb[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9894b7):_0x166bfb&&typeof _0x166bfb==_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b23c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x166bfb)[_0x3b23c0([0x73,0x6f,0x72,0x74])]()[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x921540,_0x3d4076])=>{_0x264bf1(_0x921540),_0x9894b7(_0x3d4076);}):_0x264bf1(window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x166bfb));}return _0x9894b7(_0x232b46),_0x43aedf>>>0x0;}function _0x39b1bc(_0x528bcb){return _0x528bcb[_0x3b23c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b23c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b23c0([0x30]));}function _0x3670b9(_0x7089a3){return _0x7089a3[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b23c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b23c0([0x6a,0x6f,0x69,0x6e])]('');}function _0xd80222(_0x3c37f4){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x68,0x61,0x73])](_0x3c37f4);}function _0x4df06e(_0x5261f1){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x67,0x65,0x74])](_0x5261f1);}function _0x584110(){}function _0x3b23c0(_0x206d06){return _0x206d06['map'](_0x231233=>String['fromCharCode'](_0x231233))['join']('');}_0x10e647(await _0x6ac4d4());}(this);}['createRevision'](_0x404365){const _0x555b1c=this['editor']['plugins']['get']('Users');return new a({'id':_0x404365['id'],'name':_0x404365['name'],'creator':_0x404365['creatorId']?_0x555b1c['getUser'](_0x404365['creatorId']):null,'diffData':_0x404365['diffData']||_0x404365['data'],'authors':_0x404365['authorsIds']['map'](_0x4394e6=>_0x555b1c['getUser'](_0x4394e6)),'createdAt':new Date(_0x404365['createdAt']),'attributes':_0x404365['attributes'],'fromVersion':_0x404365['fromVersion'],'toVersion':_0x404365['toVersion']});}['addRevision'](_0x3a4bfd,_0x11919c=0x0){this['_revisions']['add'](_0x3a4bfd,_0x11919c);}['getRevision'](_0x2579c8){return this['_revisions']['get'](_0x2579c8);}['getRevisions'](_0x58459e={'toJSON':!0x1}){const _0x28b575=Array['from'](this['_revisions']);return _0x28b575['reverse'](),_0x58459e['toJSON']?_0x28b575['map'](_0x586470=>_0x586470['toJSON']()):_0x28b575;}['getIndex'](_0x4a4a69){return this['_revisions']['getIndex'](_0x4a4a69);}['getEarlierVisibleRevision'](_0x2b1606){const [,_0x447668]=this['getRevisionsIterator'](_0x2b1606,{'direction':'earlier'});return _0x447668;}['getLaterVisibleRevision'](_0x427510){const [,_0x4dd6c1]=this['getRevisionsIterator'](_0x427510,{'direction':'later'});return _0x4dd6c1;}['getRevisionsInDiff'](_0xd0cbfa){const _0x45fe3d=[];for(const _0x4f7fa8 of this['getRevisionsIterator'](_0xd0cbfa['newRevisionId']))if(_0x45fe3d['push'](_0x4f7fa8),_0x4f7fa8['id']===_0xd0cbfa['oldRevisionId'])break;return _0x45fe3d;}*['getRevisionsIterator'](_0x5097bf,{direction:_0x1f589e='earlier',filter:_0xc7b1f5=()=>!0x0}={}){const _0x3b0e16='earlier'===_0x1f589e?0x1:-0x1;let _0x115cae=this['_revisions']['get'](_0x5097bf),_0x42f550=this['getIndex'](_0x115cae);for(yield _0x115cae;_0x115cae;){if(_0x42f550+=_0x3b0e16,_0x115cae=this['getRevision'](_0x42f550),!_0x115cae)return;_0xc7b1f5(_0x115cae)&&(yield _0x115cae);}}}function R(_0x4d1b83,_0x49636b,_0x62fe99){const t=_0x4d1b83['t'];switch(_0x49636b){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'},_0x62fe99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x62fe99);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'';}}const C={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class l extends _0x434fd7{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1124cd,j,_0x1f874c];}constructor(_0xbfd529){super(_0xbfd529),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x727045=_0x4c02ac();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x727045},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x145908=this['repository']['getRevision'](0x0),_0x17993b=_0x145908&&null===_0x145908['creator']?_0x145908:null;if(this['_continueCurrentRevision']=!!_0x17993b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2b2a9f=this['_source']['getCurrentRevisionId'](),_0x3836bf=this['repository']['getRevision'](_0x2b2a9f);if(_0x3836bf)this['_startingVersion']=_0x3836bf['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5aa8e5=this['_source']['history']['_operations']['find'](_0x4e5fa1=>!_0x4e5fa1['_isInit']),_0x3d0a91=_0x5aa8e5?_0x5aa8e5['baseVersion']:this['_source']['history']['version'];_0x145908?(_0x145908['toVersion']<_0x3d0a91&&_0x145908['_update']({'toVersion':_0x3d0a91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['fromVersion']):(this['_startingVersion']=_0x145908['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3d0a91,this['_continueCurrentRevision']=!0x1);}}else _0x17993b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17993b['toVersion'],this['editor']['model']['document']['history']['version']),_0x17993b['fromVersion']===_0x17993b['toVersion']?(0x0!==_0x17993b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['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',_0x29646d=>!_0x29646d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2dbe9a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x337795;for(const _0x472953 in _0x2dbe9a){const _0x29feb2=_0x472953,_0x7d5dfa=_0x2dbe9a[_0x29feb2];if('revisionHistoryLicenseKeyValid'==_0x7d5dfa||'revisionHistoryLicenseKeyInvalid'==_0x7d5dfa||'revisionHistoryLicenseKeyExpired'==_0x7d5dfa||'revisionHistoryLicenseKeyDomainLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyNotAllowed'==_0x7d5dfa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyTrialLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyUsageLimit'==_0x7d5dfa){delete _0x2dbe9a[_0x29feb2],_0x337795=_0x7d5dfa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x337795&&_0x2dbe9a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x337795&&_0x2dbe9a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x337795&&_0x2dbe9a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x93c4ba=this['repository']['getRevision'](0x0),_0x31f24e=await this['getRevisionDocumentData'](_0x93c4ba),_0x397883=await this['getRevisionRootsAttributes'](_0x93c4ba);this['_replaceEditorDataWithRevisionData'](_0x31f24e,_0x397883);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x27b294){this['_source']=_0x27b294;}async['update'](){const _0x1ccf1e=await this['_source']['getLatestVersion']();if(_0x1ccf1e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f6920=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ccf1e});_0x4f6920['authors']=_0x4f6920['authorsIds']['map'](_0x320b1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x320b1d)),this['currentRevision']['_update'](_0x4f6920);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2d1be8={},_0xd0c952=null){const _0x428be4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd0c952>this['currentRevision']['toVersion']&&(_0xd0c952=null),null===_0xd0c952&&(_0xd0c952=await this['_source']['getLatestVersion']());const _0x5aa20e=this['_getFromVersion'](_0xd0c952),_0x5db9d3=this['buildRevisionData']({'from':_0x5aa20e,'to':_0xd0c952});if(this['currentRevision']['toVersion']<_0xd0c952){const _0x3ec29b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd0c952,'to':_0xd0c952});_0x3ec29b['authors']=[],_0x3ec29b['authorsIds']=[],_0x3ec29b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3ec29b,!0x0),delete _0x3ec29b['authors'],_0x428be4['push'](_0x3ec29b);}_0x2d1be8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d1be8['name']=_0x2d1be8['name']||null,_0x2d1be8['id']=_0x2d1be8['id']||_0x4c02ac(),_0x2d1be8={..._0x2d1be8,..._0x5db9d3};const _0x18009e=this['addRevisionData'](_0x2d1be8);_0x428be4['push'](_0x2d1be8);const _0x70585b=this['repository']['getIndex'](_0x18009e);if(0x0!==_0x70585b){const _0x1ae396=this['repository']['getRevision'](_0x70585b-0x1);if(_0x1ae396['fromVersion']!==_0xd0c952){const _0x1f2944=this['_revisionDataBuilder']['getData'](_0xd0c952,_0x1ae396['toVersion']),_0x5c0b03={'id':_0x1ae396['id'],'diffData':_0x1f2944['diffData'],'authorsIds':_0x1f2944['authorsIds'],'authors':_0x1f2944['authorsIds']['map'](_0x24991c=>this['editor']['plugins']['get']('Users')['getUser'](_0x24991c)),'fromVersion':_0xd0c952};_0x1ae396===this['currentRevision']&&(_0x5c0b03['createdAt']=new Date(_0x2d1be8['createdAt']['getTime']()+0xa)),_0x1ae396['_update'](_0x5c0b03,!0x0),delete _0x5c0b03['authors'],_0x428be4['push'](_0x5c0b03);}}if(this['adapter']){for(const _0x405f32 of _0x428be4)this['_bufferUpdate'](_0x405f32['id'],_0x405f32,!0x0);this['sendBufferedUpdates']();}return _0x18009e;}['addRevisionData'](_0x458de5){const _0x4940b4=this['repository']['createRevision'](_0x458de5);return this['adapter']&&_0x4940b4['on']('_update',(_0x1f5b8d,_0x10679d,_0x50d6cf)=>{_0x50d6cf||(this['_bufferUpdate'](_0x10679d['id'],_0x10679d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4940b4,this['_findInsertionIndex'](_0x4940b4)),_0x4940b4;}async['getRevisionDocumentData'](_0x30f59a){await this['_loadRevisionData'](_0x30f59a);const _0x43a3fd={};for(const _0x192dd5 in _0x30f59a['diffData']){if(_0x30f59a['diffData'][_0x192dd5]['attachChange']&&!_0x30f59a['diffData'][_0x192dd5]['attachChange']['isAttached'])continue;const _0x45a164=this['_removeRevisionMarkers'](JSON['parse'](_0x30f59a['diffData'][_0x192dd5]['insertions'])),_0xf4e751=this['editor']['editing']['view']['document'],_0x2fce44=new _0x5b1c52(_0xf4e751,_0x45a164['map'](_0x511dbe=>V(_0x511dbe,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x43a3fd[_0x192dd5]=this['editor']['data']['processor']['toData'](_0x2fce44),this['editor']['data']['processor']['useFillerType']('default');}return _0x43a3fd;}async['getRevisionRootsAttributes'](_0x2e3b85){await this['_loadRevisionData'](_0x2e3b85);const _0xe0bbe6={};for(const _0x36bb5c in _0x2e3b85['diffData'])_0x2e3b85['diffData'][_0x36bb5c]['attachChange']&&!_0x2e3b85['diffData'][_0x36bb5c]['attachChange']['isAttached']||(_0xe0bbe6[_0x36bb5c]=_0x2e3b85['diffData'][_0x36bb5c]['attributesAfter']||{});return _0xe0bbe6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x26ea02=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2519d0=0x0;_0x2519d0<_0x26ea02['length'];_0x2519d0++){const _0x25d5c0=_0x26ea02[_0x2519d0];let _0x2d7e67=!0x1;for(const _0x432275 of Object['keys'](_0x25d5c0))void 0x0===_0x25d5c0[_0x432275]?delete _0x25d5c0[_0x432275]:'id'!==_0x432275&&(_0x2d7e67=!0x0);_0x2d7e67||(_0x26ea02[_0x2519d0]=null);}if(_0x26ea02=_0x26ea02['filter'](_0x33b274=>null!==_0x33b274),!_0x26ea02['length'])return;for(let _0x2245d1=0x0;_0x2245d1<_0x26ea02['length'];_0x2245d1++){const _0x2f1f7e=_0x26ea02[_0x2245d1];void 0x0!==_0x2f1f7e['fromVersion']&&void 0x0===_0x2f1f7e['toVersion']&&(_0x2f1f7e['toVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['toVersion']),void 0x0!==_0x2f1f7e['toVersion']&&void 0x0===_0x2f1f7e['fromVersion']&&(_0x2f1f7e['fromVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['fromVersion']);}const _0x14647d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x26ea02,_0x14647d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x263788=>{if(_0x263788){for(const _0x13fc97 of _0x263788)this['setRevisionData']({'id':_0x13fc97['id'],'createdAt':_0x13fc97['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x47d251,_0x4ec78c){let _0x2d3ef5=this['editor']['config']['get']('initialData'),_0x76c1c4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2d3ef5){_0x2d3ef5={};for(const _0x2e354b of this['editor']['model']['document']['getRootNames']())_0x2d3ef5[_0x2e354b]='';}if('string'==typeof _0x2d3ef5&&(_0x2d3ef5={'main':_0x2d3ef5}),void 0x0===_0x76c1c4){_0x76c1c4={};for(const _0x567d73 of this['editor']['model']['document']['getRootNames']())_0x76c1c4[_0x567d73]={};}let _0x3b5c70=!0x1;const _0x59d73d=Object['keys'](_0x2d3ef5),_0x121b1a=Object['keys'](_0x47d251);for(const _0x927372 of _0x59d73d){if(_0x2d3ef5[_0x927372]!==_0x47d251[_0x927372]&&''!==_0x2d3ef5[_0x927372]['trim']()){_0x3b5c70=!0x0;break;}if(!_0x43de91(_0x76c1c4[_0x927372],_0x4ec78c[_0x927372])&&Object['keys'](_0x76c1c4[_0x927372])['length']>0x0){_0x3b5c70=!0x0;break;}}_0x3b5c70||(_0x3b5c70=_0x121b1a['some'](_0x5a7371=>!this['editor']['model']['document']['getRoot'](_0x5a7371))),_0x3b5c70&&_0x4b074b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2d3ef5,'editorRootsAttributes':_0x76c1c4,'revisionData':_0x47d251,'revisionRootsAttributes':_0x4ec78c}),this['editor']['config']['set']('initialData',_0x47d251),this['editor']['config']['set']('rootsAttributes',_0x4ec78c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1152b4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1152b4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x89306a){const _0x1e69ac=this['repository']['getRevisions']();_0x1e69ac['reverse']();let _0x3a9f08=0x0;for(;_0x3a9f08<_0x1e69ac['length'];){const _0x30fa02=_0x1e69ac[_0x3a9f08];if(_0x30fa02===this['currentRevision']){_0x3a9f08++;continue;}if(_0x30fa02['id']===this['_initialRevisionId'])break;const _0x2ebe98=_0x89306a['toVersion']-_0x30fa02['toVersion']||_0x89306a['fromVersion']-_0x30fa02['fromVersion'];if(_0x2ebe98>0x0)break;if(_0x2ebe98<0x0)_0x3a9f08++;else{if(!_0x89306a['creator']&&_0x30fa02['creator'])break;if(_0x30fa02['creator']||!_0x89306a['creator']){if(_0x89306a['createdAt']>_0x30fa02['createdAt'])break;_0x3a9f08++;}else _0x3a9f08++;}}return _0x3a9f08;}['setRevisionData'](_0x247e12){const _0x3675ee=this['repository']['getRevision'](_0x247e12['id']);if(_0x247e12['createdAt']&&(_0x247e12['createdAt']=new Date(_0x247e12['createdAt'])),_0x247e12['authorsIds']){const _0x198f0f=this['editor']['plugins']['get']('Users');_0x247e12['authors']=_0x247e12['authorsIds']['map'](_0x3da792=>_0x198f0f['getUser'](_0x3da792));}_0x3675ee['_update'](_0x247e12,!0x0);}['buildRevisionData']({revision:_0x3c4012=null,from:_0x3d8ba7=null,to:_0x5de6fe=null}){_0x3d8ba7=null!==_0x3d8ba7?_0x3d8ba7:_0x3c4012['fromVersion'],_0x5de6fe=null!==_0x5de6fe?_0x5de6fe:_0x3c4012['toVersion'];const _0xcafd55=this['_revisionDataBuilder']['getData'](_0x3d8ba7,_0x5de6fe),_0x2d718c={'diffData':_0xcafd55['diffData'],'authorsIds':_0xcafd55['authorsIds'],'fromVersion':_0x3d8ba7,'toVersion':_0x5de6fe};if(!_0x3c4012||_0x5de6fe!==_0x3c4012['toVersion']){const _0x1871a4=_0x5de6fe-0x1,_0x107d7e=this['_source']['history']['getOperation'](_0x1871a4);_0x2d718c['createdAt']=_0x107d7e&&_0x107d7e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d8ba7===this['_loadedStateData']['fromVersion']){for(const _0x414169 of this['_loadedStateData']['authors'])_0x2d718c['authorsIds']['includes'](_0x414169['id'])||_0x2d718c['authorsIds']['push'](_0x414169['id']);}return _0x2d718c;}['_loadRevisionData'](_0x248246){if(!_0x248246||_0x248246['diffData'])return Promise['resolve']();{const _0x23beac=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x23beac,'revisionId':_0x248246['id']})['then'](_0x5104c3=>{_0x248246['diffData']=_0x5104c3['diffData'];});}}['_bufferUpdate'](_0x2ffce9,_0xdcd260,_0x58f2a4){if(this['_bufferedUpdates']['has'](_0x2ffce9)){const _0x2e39c0=this['_bufferedUpdates']['get'](_0x2ffce9);_0xdcd260=_0x58f2a4?{..._0x2e39c0,..._0xdcd260}:{..._0xdcd260,..._0x2e39c0};}this['_bufferedUpdates']['set'](_0x2ffce9,_0xdcd260);}['_getFromVersion'](_0x3d874b){const _0x4e9843=this['repository']['getRevisions']();_0x4e9843['reverse'](),_0x4e9843['shift']();const _0x3dee0d=_0x4e9843['find'](_0x400d5e=>_0x400d5e['toVersion']<=_0x3d874b)['toVersion'];return _0x3dee0d<this['_startingVersion']?this['_startingVersion']:_0x3dee0d;}['_createInitialRevision'](_0x4385a4){const _0x415e16=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x415e16)this['_initialRevisionId']=_0x415e16['id'];else{const _0x352a80=!this['editor']['model']['document']['roots']['find'](_0x1b5fb4=>this['editor']['model']['hasContent'](_0x1b5fb4)),_0x38ed9e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a5229=R(this['editor']['locale'],_0x352a80?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4385a4,'to':_0x4385a4,'id':this['_initialRevisionId'],'name':_0x2a5229,'creatorId':_0x38ed9e});}}['_createCurrentRevision'](_0xabe33f){const _0x932987=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x932987),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xabe33f,'to':_0xabe33f,'id':_0x932987,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4844b0,from:_0x528a2d,to:_0x17cb45,creatorId:_0x47c104,id:_0x49f12b}){const _0xd98095=this['buildRevisionData']({'from':_0x528a2d,'to':_0x17cb45});_0xd98095['name']=_0x4844b0,_0xd98095['creatorId']=_0x47c104,_0xd98095['id']=_0x49f12b;const _0x183ed6=this['addRevisionData'](_0xd98095);return this['adapter']&&this['_bufferUpdate'](_0xd98095['id'],_0xd98095,!0x0),_0x183ed6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2e9dcf){return(_0x2e9dcf=_0x2e9dcf['filter'](_0x40b428=>!_0x40b428['name']||'revision-start'!==_0x40b428['name']&&'revision-end'!==_0x40b428['name']))['forEach'](_0x1b5c88=>{'string'!=typeof _0x1b5c88&&(_0x1b5c88['children']=this['_removeRevisionMarkers'](_0x1b5c88['children']),_0x1b5c88['attributes']=_0x1b5c88['attributes']['filter'](_0x4c947d=>!_0x4c947d[0x0]['startsWith']('data-revision-')));}),_0x2e9dcf;}}function V(_0x5bdf85,_0x18746a){const _0x48eacd=_0x18746a['editing']['view']['document'];if('string'==typeof _0x5bdf85)return new _0x441a0d(_0x48eacd,_0x5bdf85);{const _0x5303c1=_0x5bdf85['children']['map'](_0x2491d7=>V(_0x2491d7,_0x18746a));return new(C[_0x5bdf85['type']]||_0x4e6782)(_0x48eacd,_0x5bdf85['name'],_0x5bdf85['attributes'],_0x5303c1);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x226ca0){this['editor']=_0x226ca0,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'](_0xe696da){this['source']=_0xe696da;const _0x3e234b=new Map(),_0x4363c7=new Map(),_0x31b1a0=this['editor']['model']['document']['roots']['map'](_0x2e993b=>_0x2e993b['rootName']);for(const _0x33db7b of _0x31b1a0){const _0x39873a=this['editor']['model']['document']['getRoot'](_0x33db7b),_0xb1c162=F(_0x39873a);_0x3e234b['set'](_0x33db7b,_0xb1c162),_0x4363c7['set'](_0x33db7b,Object['fromEntries'](_0x39873a['getAttributes']()));}const _0x2019f4=Array['from'](this['editor']['model']['markers'])['map'](_0x1fd7e8=>[_0x1fd7e8['name'],_0x1fd7e8['getRange']()]),_0x4b6024=this['source']['version'];this['_saveMetaData'](_0x4b6024,_0x3e234b,_0x2019f4,_0x4363c7),this['_startingRevisionId']=this['_revisionId'];const _0x1a0863=new Map(),_0x5ec495=new Map();for(const _0x26b023 of _0x31b1a0){const _0x2f02fa=B(_0x26b023);_0x1a0863['set'](_0x26b023,_0x2f02fa),_0x5ec495['set'](_0x26b023,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a0863,[],_0x5ec495);}['getData'](_0x1253ca,_0x54a7c4){if(this['_lastFrom']===_0x1253ca&&this['_lastTo']<=_0x54a7c4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x54a7c4,!0x0);else{if(!this['_savedMetaData']['has'](_0x1253ca)){const _0x10900f=this['_getPreviousFrom'](_0x1253ca);this['_calculateMetaData'](_0x10900f,_0x1253ca,!0x1);}this['_calculateMetaData'](_0x1253ca,_0x54a7c4,!0x0);}return this['_lastFrom']=_0x1253ca,this['_lastTo']=_0x54a7c4,this['_getState']();}['loadState'](_0x351c56){this['_reset'](),this['_lastFrom']=_0x351c56['fromVersion'],this['_lastTo']=_0x351c56['toVersion'];for(const _0x971b18 in _0x351c56['diffData']){const _0xae03e9=_0x351c56['diffData'][_0x971b18]['attachChange'],_0x2fa2f7=_0x3e8ae0(_0x351c56['diffData'][_0x971b18]['attributesBefore'])||{},_0x26a725=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x971b18]['deletions']);_0x26a725['rootName']=_0x971b18,_0x26a725['_isAttached']=!_0xae03e9||!_0xae03e9['isAttached'],_0x26a725['isAttached']=()=>_0x26a725['_isAttached'],this['_baseRoots']['set'](_0x971b18,_0x26a725),this['_baseRootsAttributes']['set'](_0x971b18,_0x2fa2f7),_0xae03e9&&this['_touchedRoots']['set'](_0x971b18,_0xae03e9);const _0x28670f=this['_makeIdsRoot'](_0x26a725);this['_baseIdsRoots']['set'](_0x971b18,_0x28670f);for(const [_0x442dd0,_0x107084]of _0x26a725['markers']){if(!_0x442dd0['startsWith']('revision:'))continue;const _0x5f449e=_0x442dd0['split'](':')[0x2];for(const _0x563471 of _0x107084['getWalker']({'singleCharacters':!0x0})){const _0x4b7573=this['_getVidAttributeName'](_0x563471),_0x320242='elementEnd'==_0x563471['type']?_0x563471['previousPosition']['path']['slice'](0x0,-0x1):_0x563471['previousPosition']['path'],_0x21892c=_0x28670f['getNodeByPath'](_0x320242)['getAttribute'](_0x4b7573);this['_touched']['set'](_0x21892c,{'userId':_0x5f449e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4342fb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x566c4a=>!this['_touched']['has'](_0x566c4a));let _0x3b675e=0x0;const _0x583367=new Map();for(const _0x256b25 in _0x351c56['diffData']){const _0x2feada=_0x351c56['diffData'][_0x256b25]['attachChange'],_0xb40d8=_0x3e8ae0(_0x351c56['diffData'][_0x256b25]['attributesAfter'])||{},_0x54821d=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x256b25]['insertions']);_0x54821d['rootName']=_0x256b25,_0x54821d['_isAttached']=!_0x2feada||_0x2feada['isAttached'],_0x54821d['isAttached']=()=>_0x54821d['_isAttached'],this['_diffRoots']['set'](_0x256b25,_0x54821d),this['_diffRootsAttributes']['set'](_0x256b25,_0xb40d8);const _0x5c112b=this['_makeIdsRoot'](_0x54821d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x256b25,_0x5c112b),_0x583367['set'](_0x256b25,_0x54821d['isAttached']()?_0xb40d8:{});for(const [_0x252ea3,_0x3d27f8]of _0x54821d['markers']){if(!_0x252ea3['startsWith']('revision:'))continue;const _0xed658e=_0x252ea3['split'](':')[0x2];for(const _0x3596cc of _0x3d27f8['getWalker']({'singleCharacters':!0x0})){const _0x39a206=this['_getVidAttributeName'](_0x3596cc),_0x30efb7=this['_revisionId']++,_0x3ca442='elementEnd'==_0x3596cc['type']?_0x3596cc['previousPosition']['path']['slice'](0x0,-0x1):_0x3596cc['previousPosition']['path'];_0x5c112b['getNodeByPath'](_0x3ca442)['_setAttribute'](_0x39a206,_0x30efb7),this['_touched']['set'](_0x30efb7,{'userId':_0xed658e});}}for(const _0x59ff63 of this['editor']['model']['createRangeIn'](_0x54821d)['getWalker']({'singleCharacters':!0x0})){const _0x110ca3=this['_getVidAttributeName'](_0x59ff63),_0x4f9241='elementEnd'==_0x59ff63['type']?_0x59ff63['previousPosition']['path']['slice'](0x0,-0x1):_0x59ff63['previousPosition']['path'],_0x13a9a9=_0x5c112b['getNodeByPath'](_0x4f9241);_0x13a9a9['getAttribute'](_0x110ca3)>0x0||_0x13a9a9['_setAttribute'](_0x110ca3,_0x4342fb[_0x3b675e++]);}for(const [_0x4c9c7f,_0xdc3c3]of _0x54821d['markers'])_0x4c9c7f['startsWith']('revision:')||this['_markers']['set'](_0x4c9c7f,_0xdc3c3);}const _0x1cc8d2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1cc8d2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1cc8d2,0x1));const _0x54d75d=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54d75d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54d75d,0x1));const _0x3499e4=Array['from'](this['_diffRoots'])['map'](([_0x1fa675,_0x138084])=>[_0x1fa675,F(_0x138084)]);this['_saveMetaData'](this['_lastTo'],_0x3499e4,this['_markers'],_0x583367);}['_makeModelFromViewString'](_0x2ea85c){const _0xbb2f5a=JSON['parse'](_0x2ea85c),_0x4d2c5d=this['editor']['editing']['view']['document'],_0x10451d=new _0x5b1c52(_0x4d2c5d,_0xbb2f5a['map'](_0x5f5771=>V(_0x5f5771,this['editor'])));return this['editor']['data']['toModel'](_0x10451d);}['_saveMetaData'](_0x5f2495,_0x5d1a04,_0x2c19c8,_0x5d4f7f){const _0x201362=new Map(_0x5d1a04),_0x2cb78b=new Map(_0x3e8ae0(_0x5d4f7f)),_0xbed334=new Map();for(const [_0x4b4239,_0x2768d0]of _0x2c19c8)_0xbed334['set'](_0x4b4239,{'start':_0x2768d0['start']['clone'](),'end':_0x2768d0['end']['clone'](),'rootName':_0x2768d0['root']['rootName']});this['_savedMetaData']['set'](_0x5f2495,{'roots':_0x201362,'markers':_0xbed334,'rootsAttributes':_0x2cb78b});}['_removeMetaData'](_0x25a293){this['_savedMetaData']['delete'](_0x25a293);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x34acb0,_0x57f77d=null){let _0x555e6e=null;_0x34acb0['is']('documentFragment')||(_0x555e6e=new ft(_0x34acb0['name'],{'vid_start':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));const _0x86250e=[];for(const _0x5e1bea of _0x34acb0['getChildren']())if(_0x5e1bea['is']('element')){_0x86250e['push'](this['_makeIdsRoot'](_0x5e1bea,_0x57f77d));const _0x211a43=_0x86250e[_0x86250e['length']-0x1];null!==_0x57f77d&&(_0x57f77d=_0x211a43['is']('element','$text')?_0x211a43['getAttribute']('vid')+0x1:_0x211a43['getAttribute']('vid_end')+0x1);}else{for(let _0x41b208=0x0;_0x41b208<_0x5e1bea['offsetSize'];_0x41b208++)_0x86250e['push'](new ft('$text',{'vid':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));}if(_0x34acb0['is']('documentFragment')){const _0x20dab2=B(_0x34acb0['rootName']);return _0x20dab2['_insertChild'](0x0,_0x86250e),_0x20dab2;}return _0x555e6e['_setAttribute']('vid_end',null===_0x57f77d?this['_revisionId']++:_0x57f77d++),_0x555e6e['_insertChild'](0x0,_0x86250e),_0x555e6e;}['_calculateMetaData'](_0x2598fa,_0x470120,_0x299613){this['_reset']();const {roots:_0x55ac75,markers:_0x9e3d79,rootsAttributes:_0xd49404}=this['_savedMetaData']['get'](_0x2598fa);this['_baseRoots']=new Map(_0x55ac75),this['_baseRootsAttributes']=new Map(_0x3e8ae0(_0xd49404));for(const [_0x5befcb,_0x110ebd]of this['_baseRoots'])if('$graveyard'!==_0x5befcb&&(this['_diffRoots']['set'](_0x5befcb,F(_0x110ebd)),this['_diffRootsAttributes']=new Map(_0x3e8ae0(_0xd49404)),_0x299613)){const _0x2e2ffc=this['_revisionId'];this['_idsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd)),this['_baseIdsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd,_0x2e2ffc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x299613&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10275a,_0x49c2f3]of _0x9e3d79){const _0x565a98=this['_baseRoots']['get'](_0x49c2f3['rootName']),_0x437308=this['_diffRoots']['get'](_0x49c2f3['rootName']),_0x52fbf1=new vt(this['_fixPosition'](_0x49c2f3['start'],_0x565a98),this['_fixPosition'](_0x49c2f3['end'],_0x565a98)),_0x485564=this['_fixRange'](_0x52fbf1,_0x437308);_0x565a98['markers']['set'](_0x10275a,_0x52fbf1),this['_markers']['set'](_0x10275a,_0x485564);}this['_applyOperations'](_0x2598fa,_0x470120,_0x299613);}['_applyOperations'](_0x10f7b0,_0x2a6fde,_0x1f24b0){for(const _0x287055 of this['source']['getOperations'](_0x10f7b0,_0x2a6fde))this['_handleOperation'](_0x287055,_0x1f24b0);for(const _0xf10d23 of this['_diffRoots']['values']())_0xf10d23['markers']['clear']();for(const [_0x108b82,_0x5016ca]of this['_markers']){this['_diffRoots']['get'](_0x5016ca['root']['rootName'])['markers']['set'](_0x108b82,_0x5016ca['clone']());}const _0x2f9199=new Map(),_0x1a1356=new Map();for(const [_0x2260c0,_0x7ff75e]of this['_diffRoots'])_0x2f9199['set'](_0x2260c0,F(_0x7ff75e)),_0x1a1356['set'](_0x2260c0,this['_diffRootsAttributes']['get'](_0x2260c0));this['_saveMetaData'](_0x2a6fde,_0x2f9199,this['_markers'],_0x1a1356);}['_getPreviousFrom'](_0x751abf){const _0x2203fb=Array['from'](this['_savedMetaData']['keys']());_0x2203fb['sort']((_0x24a1ef,_0x170ee5)=>_0x24a1ef-_0x170ee5),_0x2203fb['reverse']();for(const _0x33e670 of _0x2203fb)if(_0x33e670<_0x751abf)return _0x33e670;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x183767,_0x3370d9){const _0x15ab7f=Array['from'](_0x3370d9['markers'])['map'](([_0x593fa9,_0x320042])=>[_0x593fa9,this['_fixRange'](_0x320042,_0x183767)]);_0x183767['markers']=new Map(_0x15ab7f);}['_transformMarkers'](_0x28eff2){for(const _0x48da71 of this['_markers']['values']()){const _0x52a39b=_0x48da71['getTransformedByOperation'](_0x28eff2),_0x1b5558=vt['_createFromRanges'](_0x52a39b);_0x48da71['start']=_0x1b5558['start'],_0x48da71['end']=_0x1b5558['end'];}}['_handleOperation'](_0x546fe5,_0xc867b1){if('addRoot'!=_0x546fe5['type']&&'detachRoot'!=_0x546fe5['type']){if('insert'==_0x546fe5['type']){const _0x58f526=_0x546fe5['position']['root']['rootName'];this['_diffRoots']['has'](_0x58f526)||(this['_diffRoots']['set'](_0x58f526,B(_0x58f526,!0x0)),this['_diffRootsAttributes']['set'](_0x58f526,{}),_0xc867b1&&this['_idsRoots']['set'](_0x58f526,B(_0x58f526,!0x0)));}else{if('addRootAttribute'==_0x546fe5['type']||'removeRootAttribute'==_0x546fe5['type']||'changeRootAttribute'==_0x546fe5['type'])return void this['_handleRootAttributeOperation'](_0x546fe5);'marker'==_0x546fe5['type']&&this['_handleMarkerOperation'](_0x546fe5);}if('marker'!==_0x546fe5['type']){const _0xe80f0f=this['_cloneOperation'](_0x546fe5,this['_diffRoots']);_0xe80f0f['_execute'](),this['_transformMarkers'](_0xe80f0f);}if(_0xc867b1)switch(_0x546fe5['type']){case'insert':this['_handleInsertOperation'](_0x546fe5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x546fe5);break;case'merge':this['_handleMergeOperation'](_0x546fe5);break;case'split':this['_handleSplitOperation'](_0x546fe5);}}else this['_handleRootOperation'](_0x546fe5,_0xc867b1);}['_cloneOperation'](_0x223108,_0x1b790a){const _0x5098f3=_0x223108['clone']();return _0x5098f3['_authorId']=_0x223108['_authorId'],this['_fixOperation'](_0x5098f3,_0x1b790a),_0x5098f3;}['_getBaseVids'](_0x32f6e5){return _0x32f6e5['map'](_0x26efa1=>{const _0x362462=this['_getVidAttributeName'](_0x26efa1);return Number(_0x26efa1['item']['getAttribute'](_0x362462));});}['_generateTape'](_0x4682ba,_0x570301){if(_0x4682ba['is']('element','$text'))_0x570301['push']({'item':_0x4682ba,'type':'text'});else{_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementStart'});for(const _0x3f0c68 of _0x4682ba['getChildren']())this['_generateTape'](_0x3f0c68,_0x570301);_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementEnd'});}return _0x570301;}['_getState'](){const _0x1ccd71=new Map(this['_touched']),_0x199e94=new Map(_0x1ccd71),_0x2454dc=new Map(),_0x111d89={'insertions':{},'deletions':{}},_0x3541fd={'insertions':{},'deletions':{}},_0x3b1060=new Map(),_0xcbfb76=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcbfb76['delete']('$graveyard');for(const _0x742201 of _0xcbfb76){const _0x3e69d8=this['_diffRoots']['get'](_0x742201)||B(_0x742201,!0x1),_0x2e307a=this['_baseRoots']['get'](_0x742201)||B(_0x742201,!0x1);_0x3e69d8['isAttached']()||_0x2e307a['isAttached']()?(_0x111d89['insertions'][_0x742201]=F(_0x3e69d8),_0x111d89['deletions'][_0x742201]=F(_0x2e307a),this['_copyMarkers'](_0x111d89['deletions'][_0x742201],_0x2e307a),this['_copyMarkers'](_0x111d89['insertions'][_0x742201],_0x3e69d8),_0x3541fd['insertions'][_0x742201]=this['_generateTape'](this['_idsRoots']['get'](_0x742201),[]),_0x3541fd['deletions'][_0x742201]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x742201)||B(_0x742201,!0x1),[])):_0xcbfb76['delete'](_0x742201);}for(const _0x18650a of _0xcbfb76){const _0x4fd25d=_0x3541fd['insertions'][_0x18650a];for(const _0xb9b478 of _0x4fd25d){const _0x4230f5=this['_getVidAttributeName'](_0xb9b478),_0x1ace95=_0xb9b478['item']['getAttribute'](_0x4230f5);_0x199e94['delete'](_0x1ace95),_0x1ace95>=this['_startingRevisionId']&&_0x2454dc['set'](_0x1ace95,_0x1ccd71['get'](_0x1ace95));}}for(const _0x1dd481 of _0xcbfb76){const _0x6d2acf=_0x3541fd['insertions'][_0x1dd481],_0x20de40=this['_getBaseVids'](_0x3541fd['deletions'][_0x1dd481]);let _0x2017d9=0x0;for(const _0x9ebbb0 of _0x6d2acf){const _0x565f6a=this['_getVidAttributeName'](_0x9ebbb0),_0x227248=_0x9ebbb0['item']['getAttribute'](_0x565f6a);if(!_0x2454dc['has'](_0x227248)&&!_0x3b1060['has'](_0x227248)){if(_0x199e94['has'](_0x227248))_0x2017d9++;else{if(_0x227248!=_0x20de40[_0x2017d9]){const _0x2e2018=_0x1ccd71['get'](_0x227248)||_0x1ccd71['get'](_0x20de40[_0x2017d9]);for(;_0x227248!=_0x20de40[_0x2017d9];)_0x199e94['has'](_0x20de40[_0x2017d9])||(_0x3b1060['set'](_0x20de40[_0x2017d9],_0x2e2018),_0x1ccd71['set'](_0x20de40[_0x2017d9],_0x2e2018)),_0x2017d9++;}_0x2017d9++;}}}}for(const _0x31e445 of _0xcbfb76){const _0x10e9f3=_0x3541fd['insertions'][_0x31e445];for(const _0x33cf1a of _0x10e9f3){const _0x26a7cd=this['_getVidAttributeName'](_0x33cf1a),_0x305e3c=_0x33cf1a['item']['getAttribute'](_0x26a7cd);if(_0x3b1060['has'](_0x305e3c)){const _0x4a4d86=_0x3b1060['get'](_0x305e3c);_0x199e94['has'](_0x305e3c)||_0x199e94['set'](_0x305e3c,{..._0x4a4d86}),_0x2454dc['set'](_0x305e3c,{..._0x4a4d86});}}}for(const _0x26e7ea of _0x199e94['keys']())_0x26e7ea>=this['_startingRevisionId']&&_0x199e94['delete'](_0x26e7ea);const _0x6a3108=new Map();for(const _0x4ad542 of _0xcbfb76){let _0x339ea8=_0x3541fd['insertions'][_0x4ad542];for(const _0x45aa6f of _0x339ea8)if(_0x45aa6f['item']['is']('element','tableCell')){const _0x3ef3ba=this['_getVidAttributeName'](_0x45aa6f),_0x2a8073=_0x45aa6f['item']['getAttribute'](_0x3ef3ba);if(_0x2454dc['has'](_0x2a8073)){const _0x5d1d5f=_0x45aa6f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5be903=_0x6a3108['get'](_0x5d1d5f)||new Set();_0x5be903['add'](_0x2454dc['get'](_0x2a8073)['userId']),_0x6a3108['set'](_0x5d1d5f,_0x5be903);}}_0x339ea8=_0x3541fd['deletions'][_0x4ad542];for(const _0x1f2fa1 of _0x339ea8)if(_0x1f2fa1['item']['is']('element','tableCell')){const _0x16e951=this['_getVidAttributeName'](_0x1f2fa1),_0x8e2527=_0x1f2fa1['item']['getAttribute'](_0x16e951);if(_0x199e94['has'](_0x8e2527)){const _0x303b6d=_0x1f2fa1['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d654d=_0x6a3108['get'](_0x303b6d)||new Set();_0x3d654d['add'](_0x199e94['get'](_0x8e2527)['userId']),_0x6a3108['set'](_0x303b6d,_0x3d654d);}}for(const _0x8c77b9 of _0x6a3108['keys']())(_0x2454dc['has'](_0x8c77b9)||_0x199e94['has'](_0x8c77b9))&&_0x6a3108['delete'](_0x8c77b9);}for(const _0x4abd11 of _0xcbfb76){const _0x5c45e9=_0x3541fd['insertions'][_0x4abd11];let _0x594ae0=null,_0x4f022d=null;for(const _0x5035c0 of _0x5c45e9){const _0x14f815=this['_getVidAttributeName'](_0x5035c0),_0x49323c=_0x5035c0['item']['getAttribute'](_0x14f815),_0x30ffc0=_0x6a3108['get'](_0x49323c);_0x30ffc0&&'elementStart'==_0x5035c0['type']&&(_0x594ae0=Array['from'](_0x30ffc0)[0x0],_0x4f022d=_0x5035c0['item']['getAttribute']('vid_end')),_0x594ae0&&(_0x199e94['set'](_0x49323c,{'userId':_0x594ae0}),_0x2454dc['set'](_0x49323c,{'userId':_0x594ae0})),_0x49323c==_0x4f022d&&(_0x594ae0=null,_0x4f022d=null);}}const _0x312ed1={},_0x416963=new Set();for(const _0x3e3268 of _0xcbfb76){const _0x21a259=_0x111d89['deletions'][_0x3e3268],_0x1a6d33=_0x111d89['insertions'][_0x3e3268];for(const {userId:_0x52df82}of this['_touchedMarkers']['values']())null!==_0x52df82&&_0x416963['add'](_0x52df82);for(const {userId:_0x115ea1}of this['_touchedRoots']['values']())null!==_0x115ea1&&_0x416963['add'](_0x115ea1);this['_markChanges'](_0x1a6d33,_0x3541fd['insertions'][_0x3e3268],_0x2454dc,'insertion',_0x416963),this['_markChanges'](_0x21a259,_0x3541fd['deletions'][_0x3e3268],_0x199e94,'deletion',_0x416963),_0x312ed1[_0x3e3268]={'insertions':this['_prepareViewToSave'](_0x1a6d33),'deletions':this['_prepareViewToSave'](_0x21a259),'attachChange':this['_touchedRoots']['get'](_0x3e3268)||null,'attributesBefore':_0x3e8ae0(this['_baseRootsAttributes']['get'](_0x3e3268))||{},'attributesAfter':_0x3e8ae0(this['_diffRootsAttributes']['get'](_0x3e3268))};}return{'diffData':_0x312ed1,'authorsIds':Array['from'](_0x416963)};}['_processRootBeforeSave'](_0x105b4f){for(const [,_0x2c4d9d]of _0x105b4f['markers']){const _0x4ee34e=_0x2c4d9d['start']['getAncestors']()['filter'](_0x5b5635=>'tableCell'==_0x5b5635['name']);for(const _0x326671 of _0x4ee34e)0x1==_0x326671['childCount']&&_0x326671['getChild'](0x0)['is']('element','paragraph')&&_0x326671['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24ae23){this['_processRootBeforeSave'](_0x24ae23);const _0x428d22=this['editor']['data']['toView'](_0x24ae23,{}),_0x45e75b=Array['from'](_0x428d22['getChildren']())['map'](_0x45089b=>this['_getViewJson'](_0x45089b));return JSON['stringify'](_0x45e75b);}['_getViewJson'](_0x4c5f19){if(_0x4c5f19['is']('$text'))return _0x4c5f19['data'];{const _0x124454=_0x4c5f19;return{'type':Object['keys'](C)['find'](_0x4980c8=>_0x4c5f19 instanceof C[_0x4980c8]),'name':_0x124454['name'],'attributes':Array['from'](_0x124454['getAttributes']()),'children':Array['from'](_0x124454['getChildren']())['map'](_0x3b9eec=>this['_getViewJson'](_0x3b9eec))};}}['_markChanges'](_0x566a38,_0x5090e2,_0x545829,_0x5386fb,_0x44cdbb){let _0x365ab4=null,_0x4dfbd3=null,_0x129d92=0x0;const _0x598e58=this['editor']['model'];for(let _0xbaefab=0x0;_0xbaefab<_0x5090e2['length'];_0xbaefab++){const _0x2e40a9=this['_getVidAttributeName'](_0x5090e2[_0xbaefab]),_0x4e15f5=_0x5090e2[_0xbaefab]['item']['getAttribute'](_0x2e40a9),_0x4197f8=_0x545829['get'](_0x4e15f5),_0x137227=_0xbaefab==_0x5090e2['length']-0x1;(!_0x365ab4&&_0x4197f8&&(_0x365ab4=_0x4197f8,_0x4dfbd3=_0x5090e2[_0xbaefab]),_0x365ab4&&(!_0x4197f8||_0x4197f8['userId']!=_0x365ab4['userId']))&&(_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),J(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58)),_0x365ab4=_0x4197f8||null,_0x4dfbd3=_0x4197f8?_0x5090e2[_0xbaefab]:null),_0x365ab4&&_0x137227&&_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),q(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58));}function _0x834818(_0x1809a3,_0x24f95f,_0x26ccaf){const _0x6bdc56=_0x365ab4['userId'],_0x447e4a='revision:'+_0x5386fb+':'+_0x6bdc56+':'+_0x129d92++,_0x122b1d=_0x598e58['createRange'](_0x24f95f,_0x26ccaf);_0x566a38['markers']['set'](_0x447e4a,_0x122b1d),null!==_0x6bdc56&&_0x44cdbb['add'](_0x6bdc56);}}['_getVidAttributeName'](_0x4fd3c2){switch(_0x4fd3c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa35736,_0x1f919f){_0xa35736['baseVersion']=null;for(const _0x100c20 in _0xa35736){const _0x40f74c=_0xa35736[_0x100c20];if(_0x40f74c instanceof gt){const _0x3ccc28=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixPosition'](_0x40f74c,_0x3ccc28);}if(_0x40f74c instanceof vt){const _0x522716=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixRange'](_0x40f74c,_0x522716);}'root'===_0x100c20&&(_0xa35736['root']=_0x1f919f['get'](_0xa35736['root']['rootName']));}}['_fixRange'](_0x3f484a,_0x19781b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3f484a['start'],_0x19781b),this['_fixPosition'](_0x3f484a['end'],_0x19781b));}['_fixPosition'](_0x3262eb,_0x4a8c3d){return this['editor']['model']['createPositionFromPath'](_0x4a8c3d,_0x3262eb['path'],_0x3262eb['stickiness']);}['_handleInsertOperation'](_0x3dc00e){const _0x423f49=this['_idsRoots']['get'](_0x3dc00e['position']['root']['rootName']),_0x3ef126=this['_fixPosition'](_0x3dc00e['position'],_0x423f49),_0x3266f2=null===_0x3dc00e['_authorId']?null:_0x3dc00e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b3ca7=_0x3ef126['parent'],_0x1d3f40=this['_revisionId'],_0x23083f=[];for(const _0x1fa0e0 of _0x3dc00e['nodes'])if(_0x1fa0e0['is']('element'))_0x23083f['push'](this['_makeIdsRoot'](_0x1fa0e0));else{for(let _0x5e1a12=0x0;_0x5e1a12<_0x1fa0e0['offsetSize'];_0x5e1a12++)_0x23083f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x40d003=this['_revisionId'];for(let _0x38b232=_0x1d3f40;_0x38b232<_0x40d003;_0x38b232++)this['_touched']['set'](_0x38b232,{'userId':_0x3266f2});_0x5b3ca7['_insertChild'](_0x3ef126['offset'],_0x23083f);}['_handleMoveOperation'](_0x4d43e1){(_0x4d43e1=this['_cloneOperation'](_0x4d43e1,this['_idsRoots']))['_execute']();const _0x2ab2e4=null===_0x4d43e1['_authorId']?null:_0x4d43e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4372cd=_0x4d43e1['getMovedRangeStart'](),_0x38e979=_0x4372cd['parent'],_0x235e6d=_0x4372cd['offset'];!function _0x55c175(_0x394813,_0x3c0ded,_0x1138e1,_0x362303){for(let _0x3b4c8d=_0x1138e1;_0x3b4c8d<_0x362303;_0x3b4c8d++){const _0xabc663=_0x3c0ded['getChild'](_0x3b4c8d);_0xabc663['is']('element','$text')?_0x394813['set'](_0xabc663['getAttribute']('vid'),{'userId':_0x2ab2e4}):(_0x394813['set'](_0xabc663['getAttribute']('vid_start'),{'userId':_0x2ab2e4}),_0x55c175(_0x394813,_0xabc663,0x0,_0xabc663['childCount']),_0x394813['set'](_0xabc663['getAttribute']('vid_end'),{'userId':_0x2ab2e4}));}}(this['_touched'],_0x38e979,_0x235e6d,_0x235e6d+_0x4d43e1['howMany']);}['_handleMergeOperation'](_0x5e5816){const _0x71f584=null===(_0x5e5816=this['_cloneOperation'](_0x5e5816,this['_idsRoots']))['_authorId']?null:_0x5e5816['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33ec93=_0x5e5816['targetPosition']['parent'],_0x5a1dbf=_0x5e5816['sourcePosition']['parent'],_0x322da3=_0x33ec93['getAttribute']('vid_end'),_0x57a509=_0x5a1dbf['getAttribute']('vid_start');_0x33ec93['_setAttribute']('vid_end',_0x5a1dbf['getAttribute']('vid_end')),_0x5a1dbf['_setAttribute']('vid_end',_0x322da3),this['_touched']['set'](_0x57a509,{'userId':_0x71f584}),this['_touched']['set'](_0x322da3,{'userId':_0x71f584}),_0x5e5816['_execute']();}['_handleSplitOperation'](_0x1b774f){const _0x499b5a=null===(_0x1b774f=this['_cloneOperation'](_0x1b774f,this['_idsRoots']))['_authorId']?null:_0x1b774f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x778dac=_0x1b774f['graveyardPosition'],_0x41cfc9=_0x1b774f['splitPosition']['parent'];_0x1b774f['_execute']();const _0x3683e0=_0x41cfc9['getAttribute']('vid_end'),_0x565353=_0x1b774f['insertionPosition']['nodeAfter'];if(_0x778dac){const _0x6c454b=_0x565353['getAttribute']('vid_end'),_0x17ef1c=_0x41cfc9['getAttribute']('vid_end');_0x41cfc9['_setAttribute']('vid_end',_0x6c454b),_0x565353['_setAttribute']('vid_end',_0x17ef1c),this['_touched']['set'](_0x41cfc9['getAttribute']('vid_end'),{'userId':_0x499b5a}),this['_touched']['set'](_0x565353['getAttribute']('vid_start'),{'userId':_0x499b5a});}else{const _0x32805d=this['_revisionId']++,_0x11dcf7=this['_revisionId']++;_0x41cfc9['_setAttribute']('vid_end',_0x32805d),_0x565353['_setAttribute']('vid_start',_0x11dcf7),_0x565353['_setAttribute']('vid_end',_0x3683e0),this['_touched']['set'](_0x32805d,{'userId':_0x499b5a}),this['_touched']['set'](_0x11dcf7,{'userId':_0x499b5a});}}['_handleMarkerOperation'](_0xdc3029){if(!_0xdc3029['affectsData'])return;const _0x511737=(_0xdc3029=this['_cloneOperation'](_0xdc3029,this['_diffRoots']))['oldRange']?_0xdc3029['oldRange']['root']:null,_0x306e60=_0xdc3029['newRange']?_0xdc3029['newRange']['root']:null;_0x511737&&this['_markers']['delete'](_0xdc3029['name']),_0x306e60&&this['_markers']['set'](_0xdc3029['name'],_0xdc3029['newRange']['clone']());const _0x3f51d5=null===_0xdc3029['_authorId']?null:_0xdc3029['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x149b0b=_0xdc3029['name'];if(!this['_touchedMarkers']['has'](_0x149b0b))return void this['_touchedMarkers']['set'](_0x149b0b,{'range':_0xdc3029['oldRange'],'userId':_0x3f51d5});const _0x23526e=this['_touchedMarkers']['get'](_0x149b0b),_0xf5ac37=_0x23526e['range'],_0x1f67a2=_0xdc3029['newRange'];null==_0xf5ac37&&null==_0x1f67a2||_0xf5ac37&&_0x1f67a2&&_0xf5ac37['isEqual'](_0x1f67a2)?this['_touchedMarkers']['delete'](_0xdc3029['name']):_0x23526e['userId']=_0x3f51d5;}['_handleRootOperation'](_0xc99a9a,_0x3a5c5d){this['_diffRoots']['has'](_0xc99a9a['rootName'])?this['_diffRoots']['get'](_0xc99a9a['rootName'])['_isAttached']=_0xc99a9a['isAdd']:(this['_diffRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xc99a9a['rootName'],{}),_0x3a5c5d&&this['_idsRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)));const _0x4c2353=null===_0xc99a9a['_authorId']?null:_0xc99a9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ca22a=this['_touchedRoots']['get'](_0xc99a9a['rootName']);_0x4ca22a&&_0x4ca22a['userId']===_0x4c2353?this['_touchedRoots']['delete'](_0xc99a9a['rootName']):this['_touchedRoots']['set'](_0xc99a9a['rootName'],{'userId':_0x4c2353,'isAttached':_0xc99a9a['isAdd']});}['_handleRootAttributeOperation'](_0x223d97){const _0x45cd2d=this['_diffRootsAttributes']['get'](_0x223d97['root']['rootName']);null===_0x223d97['newValue']?delete _0x45cd2d[_0x223d97['key']]:_0x45cd2d[_0x223d97['key']]=_0x223d97['newValue'];}}function F(_0x1d8bc7){const _0x5afdfb=B(_0x1d8bc7['rootName'],_0x1d8bc7['isAttached']());for(const _0x193313 of _0x1d8bc7['getChildren']()){const _0x1357de=_0x193313['_clone'](!0x0);_0x5afdfb['_appendChild'](_0x1357de);}return _0x5afdfb;}function B(_0xf06948,_0x273877=!0x0){const _0x22528c=new wt();return _0x22528c['rootName']=_0xf06948,_0x22528c['_isAttached']=_0x273877,_0x22528c['isAttached']=()=>_0x22528c['_isAttached'],_0x22528c;}function J(_0x30dc22,_0xc827cc,_0x1d9ec5){const _0x5e63a3='elementEnd'==_0x30dc22['type']?_0x1d9ec5['createPositionAt'](_0x30dc22['item'],'end'):_0x1d9ec5['createPositionBefore'](_0x30dc22['item']);return _0x1d9ec5['createPositionFromPath'](_0xc827cc,_0x5e63a3['path'],_0x5e63a3['stickiness']);}function q(_0x3cbbc6,_0x347f68,_0x4d40e0){const _0x45c51e='elementStart'==_0x3cbbc6['type']?_0x4d40e0['createPositionAt'](_0x3cbbc6['item'],0x0):_0x4d40e0['createPositionAfter'](_0x3cbbc6['item']);return _0x4d40e0['createPositionFromPath'](_0x347f68,_0x45c51e['path'],_0x45c51e['stickiness']);}class hs extends _0x297fcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x344213,_0x4ba9b4){super(_0x344213),this['focusTracker']=new _0x3704e2(),this['keystrokes']=new _0x179f65(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4ba9b4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4790e8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39b447=_0x5ddc5f=>_0x5ddc5f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39b447),this['keystrokes']['set']('arrowleft',_0x39b447),this['keystrokes']['set']('arrowup',_0x39b447),this['keystrokes']['set']('arrowdown',_0x39b447);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x33638a){this['revisionNameInputView']['fieldView']['element']['value']=_0x33638a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x13400d){const _0x1b2a26=new at(this['locale'],_0x2be08e),_0x7ed3c0=_0x1b2a26['fieldView'];_0x7ed3c0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4dc98e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x13400d&&(_0x4dc98e+='\x20('+R(this['locale'],'optional')+')'),(_0x1b2a26['label']=_0x4dc98e,_0x7ed3c0['on']('input',()=>{this['revisionNameInputValue']=_0x7ed3c0['element']['value']['trim']();}),_0x1b2a26);}}class u extends _0x434fd7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1e72e1=this['editor'],_0x42ca12=_0x1e72e1['plugins']['get']('RevisionTracker');_0x1e72e1['ui']['componentFactory']['add']('revisionHistory',_0x2f7398=>{const _0x5c6083=_0x327471(_0x2f7398),_0x16236a=_0x5c6083['panelView']['children'],_0x1969db=new _0x56690b(_0x2f7398),_0x431b18=new _0x902890(_0x2f7398),_0x1ac5fc=new _0x2456b5(_0x2f7398),_0x9edbc3=new _0x902890(_0x2f7398),_0x74df67=new _0x2456b5(_0x2f7398);return _0x5c6083['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x12d8fe,_0x2c23a4,_0x4f0cc0)=>_0x12d8fe&&_0x2c23a4&&!_0x4f0cc0),_0x5c6083['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2f7398,'Revision\x20history'),'tooltip':!0x0}),_0x1ac5fc['set']({'label':R(_0x2f7398,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ac5fc['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x47e6ae,_0x145861,_0x4098ae)=>_0x47e6ae&&_0x145861&&!_0x4098ae),_0x1ac5fc['on']('execute',()=>this['_showDialog']()),_0x74df67['set']({'label':R(_0x2f7398,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x74df67['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x1e72e1,'isReadOnly',(_0xbf02a4,_0x339d4f)=>_0xbf02a4&&!_0x339d4f),_0x74df67['on']('execute',()=>{_0x1e72e1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c6083['isOpen']=!0x1,_0x1e72e1['editing']['view']['focus']();}),_0x431b18['children']['add'](_0x1ac5fc),_0x9edbc3['children']['add'](_0x74df67),_0x1969db['role']='menu',_0x1969db['items']['addMany']([_0x431b18,_0x9edbc3]),_0x16236a['add'](_0x1969db),_0x5c6083;}),_0x1e72e1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3aaa7d=this['editor'],_0x2a4353=_0x3aaa7d['locale'],_0x366b6d=new _0x510d82(_0x2a4353),_0x176411=new _0x15361d(_0x2a4353);_0x366b6d['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2a4353,'Revision\x20history')});const _0x21bba2=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x8935bc=new _0x4c5f6c(_0x2a4353);_0x8935bc['set']({'label':R(_0x2a4353,'Save\x20current\x20revision')}),_0x8935bc['delegate']('execute')['to'](_0x366b6d),_0x8935bc['on']('execute',()=>{this['_showDialog']();}),_0x21bba2['children']['add'](_0x8935bc),_0x176411['items']['add'](_0x21bba2);const _0x16b168=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x5c6388=new _0x4c5f6c(_0x2a4353);return _0x5c6388['set']({'label':R(_0x2a4353,'Open\x20revision\x20history')}),_0x5c6388['delegate']('execute')['to'](_0x366b6d),_0x5c6388['on']('execute',()=>{_0x3aaa7d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16b168['children']['add'](_0x5c6388),_0x176411['items']['add'](_0x16b168),_0x366b6d['panelView']['children']['add'](_0x176411),_0x366b6d;}['_showDialog'](){const _0x138d82=this['editor'],_0x4a1163=_0x138d82['locale'],_0x1b89a6=_0x138d82['plugins']['get']('Dialog'),_0x161661=_0x138d82['plugins']['get']('RevisionTracker');function _0x5c5eea(_0x2bae41){_0x138d82['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2bae41['revisionName']?_0x2bae41['revisionNameInputView']['errorText']=R(_0x4a1163,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x138d82['plugins']['get'](l)['saveRevision']({'name':_0x2bae41['revisionName']}),_0x1b89a6['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5c5eea(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b89a6['show']({'id':'revisionSave','title':R(_0x4a1163,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x138d82['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b89a6['hide']()},{'label':R(_0x138d82['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3446e5){_0x3446e5['bind']('isEnabled')['to'](_0x161661,'isReady',_0x161661,'isEnabled',_0x138d82,'isReadOnly',(_0x12ed97,_0xd8d37b,_0x402489)=>_0x12ed97&&_0xd8d37b&&!_0x402489);},'onExecute':()=>_0x5c5eea(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5c6902=this['editor'],_0x473284=_0x5c6902['locale'];this['_saveRevisionFormView']=new hs(_0x473284,_0x5c6902['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x297fcf{['changeId'];['_model'];constructor(_0x522be7,_0x57f923){super(_0x522be7),this['_model']=_0x57f923,this['changeId']=_0x57f923['id'];const _0x201f30=this['bindTemplate'],_0x19df09=R(_0x522be7,_0x57f923['data']['isSuggestion']?'Suggested\x20by':'add'==_0x57f923['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x57f923['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x201f30['to']('type',_0x271306=>'ck-revision-change__'+_0x271306)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x19df09}]},{'text':'\x20'+_0x57f923['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x88e50a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf559b8){super(),this['id']=_0xf559b8['id']||_0x4c02ac(),this['author']=_0xf559b8['author'],this['type']=_0xf559b8['type'],this['data']=_0xf559b8['data']||{},this['rootName']=_0xf559b8['rootName'],this['set']('createdAt',_0xf559b8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3f8699,_0x1c5a47){this['newRevisionId']=_0x3f8699,this['oldRevisionId']=_0x1c5a47,this['changes']=new _0x2d1bb4();}['_setChanges'](_0x41ce32){for(const _0x25de89 of _0x41ce32)this['changes']['add'](_0x25de89);}}const Z={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class d extends _0x434fd7{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1124cd,_0x323519,j];}constructor(_0x3aae68){super(_0x3aae68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x130d18,_0x2e5005,_0x511f03)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b23db=>{for(const _0x38874b of this['editor']['editing']['view']['document']['roots'])_0x511f03?_0x4b23db['removeClass']('ck-editor__editable__overlay',_0x38874b):_0x4b23db['addClass']('ck-editor__editable__overlay',_0x38874b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x279192=>null!==_0x279192),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2e0d45,_0x10a81a,_0x208514)=>_0x2e0d45&&_0x208514?_0x10a81a['changes']['getIndex'](_0x208514):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x148179,_0x44dd11)=>_0x148179?_0x44dd11['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x323519);}['init'](){const _0x12b9d4=this['editor'],_0x102288=new bt(_0x12b9d4,{'direction':'backward'}),_0xa29139=new bt(_0x12b9d4,{'direction':'forward'});(_0x12b9d4['commands']['add']('showPreviousChange',_0x102288),_0x12b9d4['commands']['add']('showNextChange',_0xa29139),_0x12b9d4['commands']['add']('restoreRevision',new yt(_0x12b9d4)),this['on']('change:numberOfChanges',()=>{_0x102288['refresh'](),_0xa29139['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12b9d4['enableReadOnlyMode']('revision-viewer'),_0x12b9d4['plugins']['has']('WidgetToolbarRepository'))&&_0x12b9d4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x524dc8){await this['loadRevisionData'](_0x524dc8);const _0x39d90e={};for(const _0x49310e in _0x524dc8['diffData']){if(_0x524dc8['diffData'][_0x49310e]['attachChange']&&!_0x524dc8['diffData'][_0x49310e]['attachChange']['isAttached'])continue;const _0x58cfa4=this['_removeRevisionMarkers'](JSON['parse'](_0x524dc8['diffData'][_0x49310e]['insertions'])),_0x35665c=this['editor']['editing']['view']['document'],_0x6960fc=new _0x5b1c52(_0x35665c,_0x58cfa4['map'](_0x47de0f=>this['_getViewObj'](_0x47de0f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x39d90e[_0x49310e]=this['editor']['data']['processor']['toData'](_0x6960fc),this['editor']['data']['processor']['useFillerType']('default');}return _0x39d90e;}async['getRevisionRootsAttributes'](_0x3eaf6a){await this['loadRevisionData'](_0x3eaf6a);const _0x59d74b={};for(const _0x16b2c0 in _0x3eaf6a['diffData'])_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']&&!_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']['isAttached']||(_0x59d74b[_0x16b2c0]=_0x3eaf6a['diffData'][_0x16b2c0]['attributesAfter']||{});return _0x59d74b;}['_removeRevisionMarkers'](_0xfe127f){return(_0xfe127f=_0xfe127f['filter'](_0x28e83e=>!_0x28e83e['name']||'revision-start'!==_0x28e83e['name']&&'revision-end'!==_0x28e83e['name']))['forEach'](_0x139878=>{'string'!=typeof _0x139878&&(_0x139878['children']=this['_removeRevisionMarkers'](_0x139878['children']),_0x139878['attributes']=_0x139878['attributes']['filter'](_0x3c4af6=>!_0x3c4af6[0x0]['startsWith']('data-revision-')));}),_0xfe127f;}async['compare'](_0x26d334,_0x4a688f,_0x251c29=!0x1){if(!this['isEnabled'])return;const _0x56bf34=this['diff'],_0x471d59=this['repository'],_0x4b4c23='string'==typeof _0x26d334?_0x471d59['getRevision'](_0x26d334):_0x26d334,_0x21f2af='string'==typeof _0x4a688f?_0x471d59['getRevision'](_0x4a688f):_0x4a688f,_0x3ba124=_0x4b4c23['id'],_0x24228=_0x21f2af?_0x21f2af['id']:null;if(!_0x251c29&&this['diff']&&this['diff']['newRevisionId']===_0x3ba124&&this['diff']['oldRevisionId']===_0x24228)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3ba124,_0x24228);const _0x27a236=this['_getRevisionsRange'](_0x4b4c23,_0x21f2af,!0x0)['map'](_0x2ed5e5=>this['loadRevisionData'](_0x2ed5e5));return _0x27a236['push'](new Promise(_0x38702a=>{setTimeout(_0x38702a,0x14);})),Promise['all'](_0x27a236)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7f340a=this['_getDiff'](_0x3ba124,_0x24228);for(const _0x448ac6 of _0x7f340a['changes'])this['_changeIdToChange']['set'](_0x448ac6['id'],_0x448ac6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17fcc7=>{for(const _0x243690 of this['editor']['model']['document']['getRootNames']())_0x17fcc7['detachRoot'](_0x243690);for(const _0x3720cb of Object['keys'](_0x7f340a['model'])){const _0x56befb=_0x17fcc7['addRoot'](_0x3720cb);for(const _0x273a18 of Object['keys'](_0x7f340a['attributes'][_0x3720cb]))_0x17fcc7['setAttribute'](_0x273a18,_0x7f340a['attributes'][_0x3720cb][_0x273a18],_0x56befb);_0x17fcc7['insert'](_0x7f340a['model'][_0x3720cb],_0x56befb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7f340a['changes'])),this['isReady']=!0x0;})['catch'](_0x823edf=>{console['error'](_0x823edf),this['_cleanUp'](),_0x56bf34&&(this['diff']=_0x56bf34),this['isReady']=!0x0;});}['addRevisionData'](_0x45e79b,_0x3aea95){const _0x459fa8=this['repository']['createRevision'](_0x45e79b);return _0x459fa8['on']('_update',(_0xdc1d51,_0x593219,_0x59feb0)=>_0x3aea95(_0x593219,_0x59feb0,_0x459fa8)),this['repository']['addRevision'](_0x459fa8),_0x459fa8;}['loadRevisionData'](_0x1f30f1){if(!_0x1f30f1||_0x1f30f1['diffData'])return Promise['resolve']();{const _0x900d31=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x900d31,'revisionId':_0x1f30f1['id']})['then'](_0x5272f4=>{_0x1f30f1['_update']({'diffData':_0x5272f4['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x328493=>{for(const _0x477f1f of this['editor']['model']['document']['getRootNames']())_0x328493['detachRoot'](_0x477f1f);});}['_sortAndFilterDiffChanges'](_0x20db4e){const _0x32dbed=[],_0x288750=new Map();for(const _0x3269fd of this['editor']['model']['document']['getRootNames']()){const _0x5cf8bb=this['editor']['editing']['view']['getDomRoot'](_0x3269fd);if(!_0x5cf8bb)continue;const _0x186068=_0x5cf8bb['getClientRects']()['item'](0x0);_0x186068&&(_0x32dbed['push'](_0x3269fd),_0x288750['set'](_0x3269fd,_0x186068));}return _0x32dbed['sort']((_0x15fa43,_0x51896c)=>{const _0x4185f2=_0x288750['get'](_0x15fa43),_0x521cdc=_0x288750['get'](_0x51896c);return _0x4185f2['y']-_0x521cdc['y']||_0x4185f2['x']-_0x521cdc['x'];}),(_0x20db4e=_0x20db4e['filter'](_0xb07c5a=>_0x32dbed['includes'](_0xb07c5a['rootName'])))['sort']((_0x10b887,_0x4c882c)=>_0x32dbed['indexOf'](_0x10b887['rootName'])-_0x32dbed['indexOf'](_0x4c882c['rootName'])),_0x20db4e;}['_makeTape'](_0x26a9af){const _0x1363d5=Array['from'](_0x26a9af['markers'])['filter'](([_0x551589,_0x2b5130])=>_0x551589['startsWith']('revision:')&&!_0x2b5130['isCollapsed']),_0x5cf068=Array['from'](this['editor']['model']['createRangeIn'](_0x26a9af)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1363d5['length'])for(const _0x5c4054 of _0x5cf068){const [_0x3663d7,_0x17efc6]=_0x1363d5[0x0],[,_0x5f258e,_0x1b5921]=_0x3663d7['split'](':');if(_0x17efc6['end']['isEqual'](_0x5c4054['nextPosition'])&&_0x1363d5['shift'](),(_0x5c4054['previousPosition']['isEqual'](_0x17efc6['start'])||_0x5c4054['previousPosition']['isAfter'](_0x17efc6['start']))&&('insertion'==_0x5f258e?_0x5c4054['isAdded']={'userId':_0x1b5921}:'deletion'==_0x5f258e&&(_0x5c4054['isRemoved']={'userId':_0x1b5921})),0x0==_0x1363d5['length'])break;}return _0x5cf068;}['_refreshStartEndIndex'](_0x691a48){const _0x5cd4ed=new Map();for(let _0x52016f=0x0;_0x52016f<_0x691a48['length'];_0x52016f++)'text'===_0x691a48[_0x52016f]['type']?(_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f,_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f):('elementStart'===_0x691a48[_0x52016f]['type']?_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f:'elementEnd'===_0x691a48[_0x52016f]['type']&&(_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f),_0x5cd4ed['set'](_0x691a48[_0x52016f]['id'],_0x52016f));for(const _0x92315f of _0x5cd4ed['values']())'elementStart'===_0x691a48[_0x92315f]['type']?_0x691a48[_0x92315f]['item']['endIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']):'elementEnd'===_0x691a48[_0x92315f]['type']&&(_0x691a48[_0x92315f]['item']['startIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']));}['_processTape'](_0x557a55){for(let _0x40cd5f=0x0;_0x40cd5f<_0x557a55['length'];_0x40cd5f++){if('elementStart'===_0x557a55[_0x40cd5f]['type'])_0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f;else{if('elementEnd'===_0x557a55[_0x40cd5f]['type']){_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f;const _0x399c63=_0x557a55[_0x40cd5f]['item']['startIndex'];_0x557a55[_0x399c63]['pairId']=_0x557a55[_0x40cd5f]['id'],_0x557a55[_0x40cd5f]['pairId']=_0x557a55[_0x399c63]['id'];}else _0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['pairId']=null;}_0x557a55[_0x40cd5f]['markersStart']||(_0x557a55[_0x40cd5f]['markersStart']=[],_0x557a55[_0x40cd5f]['markersEnd']=[]);}}['_markInsertions'](_0x5f47a3,_0x5f4cba){const _0x17ec36=_0x5f47a3['filter'](_0x4bed9d=>!_0x4bed9d['isAdded']);for(let _0xf8b2df=0x0;_0xf8b2df<_0x5f4cba['length'];_0xf8b2df++)_0x5f4cba[_0xf8b2df]['isAdded']&&(_0x17ec36[_0xf8b2df]['isAdded']=_0x5f4cba[_0xf8b2df]['isAdded']);}['_makeModelFromViewString'](_0x35e045){const _0x3ef42b=JSON['parse'](_0x35e045),_0xbf2cdb=this['editor']['editing']['view']['document'],_0x1bb908=new _0x5b1c52(_0xbf2cdb,_0x3ef42b['map'](_0x2feb12=>this['_getViewObj'](_0x2feb12)));return this['editor']['data']['toModel'](_0x1bb908);}['_getViewObj'](_0x2455db){const _0x2da929=this['editor']['editing']['view']['document'];if('string'==typeof _0x2455db)return new _0x441a0d(_0x2da929,_0x2455db);{const _0x545a0d=_0x2455db['children']['map'](_0x586a58=>this['_getViewObj'](_0x586a58));return new(Z[_0x2455db['type']]||_0x4e6782)(_0x2da929,_0x2455db['name'],_0x2455db['attributes'],_0x545a0d);}}['_getDiff'](_0x2f4186,_0x61049=null){const _0x21d698=this['repository']['getRevision'](_0x2f4186),_0x4cb685=_0x61049?this['repository']['getRevision'](_0x61049):null,_0x2812b4=this['_getRevisionsRange'](_0x21d698,_0x4cb685),_0x284464=_0x2812b4[_0x2812b4['length']-0x1],_0x3560b1=new Map(),_0x24869d={'model':{},'attributes':{},'changes':[]},_0x8f03e=new Set(),_0x502e62=new Map();for(let _0x5edc02=_0x2812b4['length']-0x1;_0x5edc02>=0x0;_0x5edc02--){const _0x2175c3=_0x2812b4[_0x5edc02];for(const _0xda6a49 of Object['keys'](_0x2175c3['diffData']))if(_0x2175c3['diffData'][_0xda6a49]['attachChange']){const _0x54e449=_0x2175c3['diffData'][_0xda6a49]['attachChange'];_0x54e449['isAttached']?(_0x8f03e['add'](_0xda6a49),_0x502e62['has'](_0xda6a49)&&_0x502e62['get'](_0xda6a49)['userId']==_0x54e449['userId']?_0x502e62['delete'](_0xda6a49):_0x502e62['set'](_0xda6a49,_0x54e449)):_0x502e62['has'](_0xda6a49)?(_0x8f03e['delete'](_0xda6a49),_0x502e62['delete'](_0xda6a49)):(_0x8f03e['add'](_0xda6a49),_0x502e62['set'](_0xda6a49,_0x54e449));}else _0x8f03e['add'](_0xda6a49);}for(const _0x29dca0 of _0x8f03e){const _0x294093=_0x502e62['has'](_0x29dca0)&&!_0x502e62['get'](_0x29dca0)['isAttached'];let _0x3921b1=_0x294093?_0x2812b4['length']-0x1:0x0;const _0x128d67=_0x294093?-0x1:0x1;for(;_0x2812b4[_0x3921b1];){const _0x241629=_0x2812b4[_0x3921b1];if(_0x241629['diffData'][_0x29dca0]){const _0x5ded34=_0x294093?_0x241629['diffData'][_0x29dca0]['attributesBefore']:_0x241629['diffData'][_0x29dca0]['attributesAfter'];_0x24869d['attributes'][_0x29dca0]=_0x5ded34?_0x3e8ae0(_0x5ded34):{};break;}_0x3921b1+=_0x128d67;}}for(const _0x36e7f of _0x2812b4){_0x36e7f['model']={};for(const _0x1797e0 of _0x36e7f['authors'])_0x3560b1['set'](_0x1797e0['id'],_0x1797e0);for(const _0x2cb052 of _0x8f03e){const _0x27a69d=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['insertions']:'[]',_0x3c76b6=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['deletions']:'[]';_0x36e7f['model'][_0x2cb052]={'insertions':this['_makeModelFromViewString'](_0x27a69d),'deletions':this['_makeModelFromViewString'](_0x3c76b6)};}}for(const _0x5eea78 of _0x8f03e){let _0x37a6bd=null,_0x4b7e54=0x0;const _0x48de4c=new Map(Array['from'](_0x21d698['model'][_0x5eea78]['insertions']['markers'])['filter'](([_0xbfa303])=>!_0xbfa303['startsWith']('revision:')));let _0x3126f3=0x0;for(const _0x230452 of _0x2812b4){const _0xc20dde=this['_makeTape'](_0x230452['model'][_0x5eea78]['insertions']);_0x230452==_0x21d698?(_0x37a6bd=_0xc20dde,_0x4b7e54=_0x37a6bd['length'],_0x37a6bd['forEach'](_0x26f732=>{_0x26f732['id']=_0x3126f3++;}),this['_processTape'](_0x37a6bd)):this['_markInsertions'](_0x37a6bd,_0xc20dde);const _0x7dc280=_0x37a6bd['filter'](_0x784170=>!_0x784170['isAdded'])['map'](_0xb4c0c=>_0xb4c0c['id']);let _0x56560e=0x0;const _0x281e31=this['_makeTape'](_0x230452['model'][_0x5eea78]['deletions']);_0x281e31['forEach'](_0x57276b=>{_0x57276b['isRemoved']?_0x57276b['id']=_0x4b7e54++:_0x57276b['id']=_0x7dc280[_0x56560e++];}),this['_processTape'](_0x281e31),this['_setDistance'](_0x37a6bd,'isAdded'),this['_setDistance'](_0x281e31,'isRemoved'),_0x230452==_0x21d698&&this['_markMarkers'](_0x37a6bd,_0x48de4c),_0x37a6bd=this['_joinTapes'](_0x37a6bd,_0x281e31),this['_refreshStartEndIndex'](_0x37a6bd),this['_setDistance'](_0x37a6bd,'isRemoved');}_0x37a6bd=_0x37a6bd['filter'](_0x5ad525=>!(_0x5ad525['isAdded']&&_0x5ad525['isRemoved']));const _0x1d4106=new Map(_0x284464['model'][_0x5eea78]['deletions']['markers']),_0x491687=new Set(_0x48de4c['keys']());for(const _0x13728f of _0x1d4106['keys']())_0x491687['delete'](_0x13728f);this['_markSuggestions'](_0x37a6bd,_0x491687),this['_fixObsoleteTags'](_0x37a6bd),_0x37a6bd=this['_removeMissingPairs'](_0x37a6bd),_0x37a6bd=this['_markMismatchedRemovedTags'](_0x37a6bd),_0x37a6bd=this['_removeUnsupportedChanges'](_0x37a6bd);const {root:_0xc6f4c0,changes:_0x22d7aa}=this['_makeModelFromTape'](_0x37a6bd,_0x3560b1,_0x5eea78);_0x24869d['model'][_0x5eea78]=_0xc6f4c0;const _0x297285=_0x502e62['get'](_0x5eea78);if(_0x297285){const _0xb37235=_0x3560b1['get'](_0x297285['userId']),_0x3d5f48=new r({'author':_0xb37235,'type':_0x297285['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5eea78});_0x22d7aa['unshift'](_0x3d5f48),_0x24869d['attributes'][_0x5eea78]['revisionHistoryAttachChange']=_0x3d5f48['id'];}_0x24869d['changes']=_0x24869d['changes']['concat'](_0x22d7aa);}return _0x24869d;}['_markMarkers'](_0x265a63,_0x14f7dd){for(let _0x310dd0=0x0;_0x310dd0<_0x265a63['length'];_0x310dd0++)for(const [_0x4a1a8c,_0x56e8be]of _0x14f7dd)_0x56e8be['start']['isEqual'](_0x265a63[_0x310dd0]['previousPosition'])&&_0x265a63[_0x310dd0]['markersStart']['push'](_0x4a1a8c),_0x56e8be['end']['isEqual'](_0x265a63[_0x310dd0]['nextPosition'])&&_0x265a63[_0x310dd0]['markersEnd']['push'](_0x4a1a8c);}['_joinTapes'](_0x244ae8,_0x25cf80){let _0x3dfc5a=[],_0x4a699c=0x0,_0x19b689=0x0;for(;_0x4a699c<_0x244ae8['length']||_0x19b689<_0x25cf80['length'];){const _0x15b9d1=_0x244ae8[_0x4a699c]||{},_0x40b030=_0x25cf80[_0x19b689]||{};if(_0x15b9d1['id']==_0x40b030['id'])_0x4a699c++,_0x19b689++,_0x3dfc5a['push'](_0x15b9d1);else{if(_0x40b030['isRemoved']&&_0x15b9d1['isAdded']){const {commonTape:_0x3c4adf,iEnd:_0x2262e8,jEnd:_0x5c5796}=this['_threeWayMerge'](_0x244ae8,_0x4a699c,_0x25cf80,_0x19b689);_0x3dfc5a=_0x3dfc5a['concat'](_0x3c4adf),_0x4a699c=_0x2262e8,_0x19b689=_0x5c5796;}else _0x40b030['isRemoved']?(_0x19b689++,_0x3dfc5a['push'](_0x40b030)):(_0x4a699c++,_0x3dfc5a['push'](_0x15b9d1));}}return _0x3dfc5a;}['_markSuggestions'](_0x1f4e70,_0x16e88a){const _0x16b93d=[];for(let _0x114869=0x0;_0x114869<_0x1f4e70['length'];_0x114869++){for(let _0x365e6b=0x0;_0x365e6b<_0x1f4e70[_0x114869]['markersStart']['length'];_0x365e6b++){const _0x1d6cfe=_0x1f4e70[_0x114869]['markersStart'][_0x365e6b];if(!_0x16e88a['has'](_0x1d6cfe))continue;const {group:_0x283d1e,type:_0x1eeb9f,authorId:_0x41177a}=_0x36e27d(_0x1d6cfe);'revision-suggestion'!=_0x283d1e||'insertion'!=_0x1eeb9f&&'deletion'!=_0x1eeb9f||(_0x16b93d['unshift']({'type':_0x1eeb9f,'name':_0x1d6cfe,'userId':_0x41177a}),_0x1f4e70[_0x114869]['markersStart']['splice'](_0x365e6b,0x1),_0x365e6b--);}_0x36da83(_0x1f4e70[_0x114869]);for(let _0x1a0c0d=0x0;_0x1a0c0d<_0x1f4e70[_0x114869]['markersEnd']['length'];_0x1a0c0d++){const _0x537031=_0x1f4e70[_0x114869]['markersEnd'][_0x1a0c0d];if(!_0x16e88a['has'](_0x537031))continue;const {group:_0x139228,type:_0x8511e1}=_0x36e27d(_0x537031);if('revision-suggestion'!=_0x139228||'insertion'!=_0x8511e1&&'deletion'!=_0x8511e1)continue;_0x1f4e70[_0x114869]['markersEnd']['splice'](_0x1a0c0d,0x1),_0x1a0c0d--;const _0x3daebc=_0x16b93d['findIndex'](_0x4674fe=>_0x4674fe['name']==_0x537031);_0x3daebc>-0x1&&_0x16b93d['splice'](_0x3daebc,0x1);}}function _0x36e27d(_0x5495e2){const _0x3a7634=_0x5495e2['split'](':');return{'group':_0x3a7634[0x0],'type':_0x3a7634[0x1],'subType':_0x3a7634['length']>=0x5?_0x3a7634[0x2]:null,'id':_0x3a7634['length']<0x5?_0x3a7634[0x2]:_0x3a7634[0x3],'authorId':_0x3a7634['length']<0x5?_0x3a7634[0x3]:_0x3a7634[0x4],'markerCount':0x6==_0x3a7634['length']?_0x3a7634[0x5]:null};}function _0x36da83(_0x34f70d){for(let _0x2c4bec=0x0;_0x2c4bec<_0x16b93d['length'];_0x2c4bec++){if(_0x34f70d['isAdded']&&'insertion'==_0x16b93d[_0x2c4bec]['type'])return _0x34f70d['isAddSuggestion']=_0x16b93d[_0x2c4bec],void delete _0x34f70d['isAdded'];if(!_0x34f70d['isAdded']&&!_0x34f70d['isRemoved']&&'deletion'==_0x16b93d[_0x2c4bec]['type'])return void(_0x34f70d['isRemoveSuggestion']=_0x16b93d[_0x2c4bec]);}}}['_setDistance'](_0x504ba5,_0x48986b){let _0x3428e4=0x0,_0x3c7fd7=!0x1;const _0xa5727a=new Map();for(const _0x43594e of _0x504ba5)_0x43594e[_0x48986b]?_0x3c7fd7&&(_0x3428e4++,_0x3c7fd7=!0x1):(_0x3428e4++,_0x3c7fd7=!0x0),_0xa5727a['set'](_0x43594e['id'],_0x3428e4);for(let _0x391030=0x0;_0x391030<_0x504ba5['length'];_0x391030++){if('isRemoved'==_0x48986b&&_0x504ba5[_0x391030]['isAdded']||'isAdded'==_0x48986b&&_0x504ba5[_0x391030]['isRemoved'])continue;if('text'==_0x504ba5[_0x391030]['type']){_0x504ba5[_0x391030]['distance']=0x0;continue;}const _0xab83bf=_0xa5727a['get'](_0x504ba5[_0x391030]['pairId']),_0x376944=_0xa5727a['get'](_0x504ba5[_0x391030]['id']);_0x504ba5[_0x391030]['distance']=_0xab83bf-_0x376944;}}['_getRevisionsRange'](_0x549ffb,_0x1f4199,_0x1f328d=!0x1){const _0x4e31d0=[];let _0x238a59=this['repository']['getIndex'](_0x549ffb),_0x1ae725=this['repository']['getIndex'](_0x1f4199);for(-0x1==_0x1ae725&&(_0x1ae725=this['repository']['_revisions']['length'],_0x1f328d=!0x1);_0x238a59<_0x1ae725;)_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x238a59++;return _0x1f328d&&_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x4e31d0;}['_threeWayMerge'](_0x3e6615,_0x436b9f,_0x21eeff,_0x2154e1){const _0x2a5f8b=this['editor']['model']['schema'];let _0x1cc706=_0x436b9f;for(;_0x3e6615[_0x1cc706]&&_0x3e6615[_0x1cc706]['isAdded'];)_0x1cc706++;let _0x1123a1=_0x2154e1;for(;_0x21eeff[_0x1123a1]&&_0x21eeff[_0x1123a1]['isRemoved'];)_0x1123a1++;_0x1fc3f9(_0x3e6615,_0x436b9f,_0x1cc706),_0x1fc3f9(_0x21eeff,_0x2154e1,_0x1123a1);const _0x18d0b1=_0x21eeff['slice'](_0x2154e1,_0x1123a1)['concat'](_0x3e6615['slice'](_0x436b9f,_0x1cc706));return _0x18d0b1['sort']((_0x24dd96,_0x135447)=>_0x24dd96['side']!=_0x135447['side']?_0x24dd96['side']-_0x135447['side']:_0x24dd96['level']!=_0x135447['level']?_0x24dd96['level']-_0x135447['level']:_0x24dd96['distance']!=_0x135447['distance']?_0x135447['distance']-_0x24dd96['distance']:!!_0x24dd96['isAdded']!=!!_0x135447['isAdded']?-0x1==_0x24dd96['side']||0x0==_0x24dd96['side']?_0x24dd96['isAdded']?-0x1:0x1:_0x24dd96['isAdded']?0x1:-0x1:_0x24dd96['index']-_0x135447['index']),{'commonTape':_0x18d0b1,'iEnd':_0x1cc706,'jEnd':_0x1123a1};function _0x1fc3f9(_0x33f958,_0x13e954,_0x48633b){let _0x5e1728=-0x1,_0x5d7e1c=Number['POSITIVE_INFINITY'],_0x513e1a=!0x0;for(let _0x1b89fe=_0x13e954;_0x1b89fe<_0x48633b;_0x1b89fe++)if(_0x2a5f8b['isInline'](_0x33f958[_0x1b89fe]['item'])||(_0x513e1a=!0x1),_0x33f958[_0x1b89fe]['item']['startIndex']<_0x13e954&&(_0x5e1728=_0x1b89fe),_0x33f958[_0x1b89fe]['item']['endIndex']>=_0x48633b){_0x5d7e1c=_0x1b89fe;break;}_0x513e1a&&(_0x5e1728=_0x48633b-0x1);for(let _0x4148c3=_0x13e954;_0x4148c3<_0x48633b;_0x4148c3++)_0x33f958[_0x4148c3]['side']=_0x4148c3<=_0x5e1728?-0x1:_0x4148c3<_0x5d7e1c?0x0:0x1,_0x33f958[_0x4148c3]['index']=_0x4148c3;let _0x276177=0x0;for(let _0x25d75d=_0x13e954;_0x25d75d<=_0x5e1728;_0x25d75d++)0x0==_0x33f958[_0x25d75d]['distance']?_0x33f958[_0x25d75d]['level']=_0x276177:(_0x276177++,_0x33f958[_0x25d75d]['level']=_0x276177,_0x276177++);for(let _0x3aeef9=_0x13e954;_0x3aeef9<_0x48633b;_0x3aeef9++)0x0==_0x33f958[_0x3aeef9]['side']&&(_0x33f958[_0x3aeef9]['level']=_0x276177);_0x276177=0x0;for(let _0x2ee99e=_0x48633b-0x1;_0x2ee99e>=_0x5d7e1c;_0x2ee99e--)0x0==_0x33f958[_0x2ee99e]['distance']?_0x33f958[_0x2ee99e]['level']=_0x276177:(_0x276177--,_0x33f958[_0x2ee99e]['level']=_0x276177,_0x276177--);}}['_fixObsoleteTags'](_0x3a5690){const _0x5b29ad=new Map(),_0x28e258=this['editor']['model']['schema'];for(let _0x1ae32e=0x1;_0x1ae32e<_0x3a5690['length'];_0x1ae32e++){let _0x1dc22a,_0x4447f8,_0x46d4fc;const _0x1e8de0=_0x3a5690[_0x1ae32e],_0x5dfac9=_0x3a5690[_0x1ae32e-0x1];if('text'==_0x1e8de0['type'])continue;if(_0x1e8de0['type']!=_0x5dfac9['type'])continue;if(!_0x28e258['isBlock'](_0x5dfac9['item'])||_0x28e258['isLimit'](_0x5dfac9['item']))continue;if(!_0x28e258['isBlock'](_0x1e8de0['item'])||_0x28e258['isLimit'](_0x1e8de0['item']))continue;if((_0x3a5690[_0x1ae32e]['isAdded']||_0x3a5690[_0x1ae32e]['isAddSuggestion'])&&_0x3a5690[_0x1ae32e-0x1]['isRemoved'])_0x1dc22a=_0x3a5690[_0x1ae32e],_0x4447f8=_0x3a5690[_0x1ae32e-0x1],_0x46d4fc=_0x1ae32e-0x1;else{if(!_0x3a5690[_0x1ae32e]['isRemoved']||!_0x3a5690[_0x1ae32e-0x1]['isAdded']&&!_0x3a5690[_0x1ae32e-0x1]['isAddSuggestion'])continue;_0x1dc22a=_0x3a5690[_0x1ae32e-0x1],_0x4447f8=_0x3a5690[_0x1ae32e],_0x46d4fc=_0x1ae32e;}const _0x5ed1f2=_0x1dc22a['level']==_0x4447f8['level'],_0xde8dd8=Math['abs'](_0x1dc22a['level'])<Math['abs'](_0x4447f8['level'])&&0x0==_0x4447f8['distance'];(_0x5ed1f2||_0xde8dd8)&&(_0x5b29ad['set'](_0x4447f8['id'],_0x1dc22a['id']),_0x3a5690['splice'](_0x46d4fc,0x1),_0x1ae32e--,_0x1dc22a['isAdded']=!0x1);}for(let _0x5c0047=0x0;_0x5c0047<_0x3a5690['length'];_0x5c0047++)_0x5b29ad['has'](_0x3a5690[_0x5c0047]['pairId'])&&(_0x3a5690[_0x5c0047]['pairId']=_0x5b29ad['get'](_0x3a5690[_0x5c0047]['pairId']));}['_removeMissingPairs'](_0x35fc74){const _0x3220e4=new Set(_0x35fc74['map'](_0x7c882a=>_0x7c882a['id']));for(let _0x37c6fe=0x0;_0x37c6fe<_0x35fc74['length'];_0x37c6fe++)_0x3220e4['has'](_0x35fc74[_0x37c6fe]['pairId'])||0x0==_0x35fc74[_0x37c6fe]['distance']||(_0x35fc74[_0x37c6fe]['isIncorrect']=!0x0);return _0x35fc74['filter'](_0x5ddc1d=>!_0x5ddc1d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x440af2){const _0x266060=new Set();for(let _0x5ad2a1=0x0;_0x5ad2a1<_0x440af2['length'];_0x5ad2a1++){if(_0x266060['has'](_0x440af2[_0x5ad2a1]['id'])&&_0x440af2[_0x5ad2a1]['isRemoved']&&(_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0),_0x440af2[_0x5ad2a1]['isIncorrect'])continue;if(0x0==_0x440af2[_0x5ad2a1]['distance'])continue;if('elementStart'!=_0x440af2[_0x5ad2a1]['type'])continue;if(null==_0x440af2[_0x5ad2a1]['pairId'])continue;let _0x5e2d47=_0x5ad2a1+0x1,_0xe7317f=0x0;for(;_0x440af2[_0x5e2d47]['id']!=_0x440af2[_0x5ad2a1]['pairId'];)'elementStart'==_0x440af2[_0x5e2d47]['type']?_0xe7317f++:'elementEnd'==_0x440af2[_0x5e2d47]['type']&&_0xe7317f--,_0x5e2d47++;if(0x0!=_0xe7317f){if(_0x440af2[_0x5ad2a1]['isRemoved'])_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0;else{for(;_0x5e2d47!=_0x5ad2a1;)_0x440af2[_0x5e2d47]['isRemoved']&&0x0!=_0x440af2[_0x5e2d47]['distance']&&(_0x440af2[_0x5e2d47]['isIncorrect']=!0x0,_0x266060['add'](_0x440af2[_0x5e2d47]['pairId'])),_0x5e2d47--;}}}return _0x440af2['filter'](_0x39ed91=>!_0x39ed91['isIncorrect']);}['_removeUnsupportedChanges'](_0x4dbd45){const _0x31c6da=this['editor']['model']['schema'];for(let _0x50ee93=0x0;_0x50ee93<_0x4dbd45['length'];_0x50ee93++){if(!(_0x4dbd45[_0x50ee93]['isAdded']||_0x4dbd45[_0x50ee93]['isAddSuggestion']||_0x4dbd45[_0x50ee93]['isRemoved']||_0x4dbd45[_0x50ee93]['isRemoveSuggestion']))continue;if(0x0==_0x4dbd45[_0x50ee93]['distance'])continue;const _0x2dc76f=_0x4dbd45[_0x50ee93]['item'];_0x31c6da['isBlock'](_0x2dc76f)||_0x31c6da['isLimit'](_0x2dc76f)||(_0x4dbd45[_0x50ee93]['isAdded']&&delete _0x4dbd45[_0x50ee93]['isAdded'],_0x4dbd45[_0x50ee93]['isAddSuggestion']&&delete _0x4dbd45[_0x50ee93]['isAddSuggestion'],_0x4dbd45[_0x50ee93]['isRemoveSuggestion']&&delete _0x4dbd45[_0x50ee93]['isRemoveSuggestion'],_0x4dbd45[_0x50ee93]['isRemoved']&&(_0x4dbd45[_0x50ee93]['isIncorrect']=!0x0));}return _0x4dbd45['filter'](_0x5bbd46=>!_0x5bbd46['isIncorrect']);}['_makeModelFromTape'](_0x7271a,_0x4e964e,_0x7e77e1){const _0x3fb4e5=new wt(),_0xc87731=[],_0x2e5501=new Map(),_0x990852=this['editor']['model'],_0x2235ca=_0x990852['schema'],_0xee9b57=[_0x3fb4e5],_0x4f6d29={},_0x25c3f5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x495e04=null;const _0x144b68=[0x0];for(let _0x4933e2=0x0;_0x4933e2<_0x7271a['length'];_0x4933e2++)if('elementStart'===_0x7271a[_0x4933e2]['type']){_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);const _0x2c4dc9=new ft(_0x7271a[_0x4933e2]['item']['name'],_0x7271a[_0x4933e2]['item']['getAttributes']());_0xee9b57[0x0]['_appendChild'](_0x2c4dc9),_0x144b68['push'](0x0),_0xee9b57['unshift'](_0x2c4dc9),_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);}else'elementEnd'===_0x7271a[_0x4933e2]['type']?(_0xee9b57['shift'](),_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x144b68['pop'](),_0x144b68[_0x144b68['length']-0x1]++,_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68)):(_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x495e04?_0x495e04['_data']+=_0x7271a[_0x4933e2]['item']['data']:_0x495e04=new _t(_0x7271a[_0x4933e2]['item']['data'],_0x7271a[_0x4933e2]['item']['getAttributes']()),_0x7271a[_0x4933e2+0x1]&&'text'===_0x7271a[_0x4933e2+0x1]['type']&&_0x500bd3(_0x495e04,_0x7271a[_0x4933e2+0x1]['item'])||(_0xee9b57[0x0]['_appendChild'](_0x495e04),_0x495e04=null),_0x144b68[_0x144b68['length']-0x1]+=_0x7271a[_0x4933e2]['item']['offsetSize'],_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68));for(let _0x20ca1a=0x0;_0x20ca1a<_0x7271a['length'];_0x20ca1a++){const _0x478e07=_0x7271a[_0x20ca1a]['previousPosition'],_0x1979a8=_0x7271a[_0x20ca1a]['nextPosition'];for(const _0x2dda1c of _0x7271a[_0x20ca1a]['markersStart'])_0x2e5501['set'](_0x2dda1c,{'start':_0x478e07,'end':null});_0x3a30a5('isRemoveSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAddSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isRemoved',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAdded',_0x20ca1a,_0x478e07,_0x1979a8);for(const _0x3a57b3 of _0x7271a[_0x20ca1a]['markersEnd']){_0x2e5501['get'](_0x3a57b3)['end']=_0x1979a8;}}for(const [_0x547dea,_0x39d5e8]of _0x2e5501){const _0x491ef6=this['editor']['model']['createRange'](_0x39d5e8['start'],_0x39d5e8['end']);_0x3fb4e5['markers']['set'](_0x547dea,_0x491ef6);}return _0xc87731['sort']((_0x1f6a97,_0x4917a7)=>{const _0x4634a8=_0x3fb4e5['markers']['get']('revision:'+_0x1f6a97['id']),_0x4f539c=_0x3fb4e5['markers']['get']('revision:'+_0x4917a7['id']);return _0x4634a8['start']['isBefore'](_0x4f539c['start'])?-0x1:_0x4634a8['start']['isAfter'](_0x4f539c['start'])?0x1:_0x4634a8['end']['isBefore'](_0x4f539c['end'])?-0x1:_0x4634a8['end']['isAfter'](_0x4f539c['end'])?0x1:'add'===_0x1f6a97['type']?-0x1:0x1;}),{'root':_0x3fb4e5,'changes':_0xc87731};function _0x3a30a5(_0x184066,_0x586b33,_0x1ca8b1,_0x24e9c6){const _0x264b3c=!!_0x7271a[_0x586b33][_0x184066],_0x61efe8=_0x264b3c?_0x7271a[_0x586b33][_0x184066]['userId']:null,_0x18d909=_0x586b33===_0x7271a['length']-0x1,_0x1bdfe1=_0x25c3f5[_0x184066][0x0],_0x3508dd=_0x2235ca['isObject'](_0x7271a[_0x586b33]['item']);!_0x4f6d29[_0x184066]&&_0x264b3c?_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}:_0x4f6d29[_0x184066]&&!_0x264b3c?(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null):_0x4f6d29[_0x184066]&&_0x264b3c&&_0x4f6d29[_0x184066]['userId']!==_0x61efe8&&(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x1bdfe1&&_0x1bdfe1['userId']===_0x4f6d29[_0x184066]['userId']||_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}),_0x4f6d29[_0x184066]&&_0x3508dd&&('elementStart'!==_0x7271a[_0x586b33]['type']||_0x1bdfe1&&_0x1bdfe1['userId']===_0x61efe8||_0x25c3f5[_0x184066]['unshift']({'userId':_0x61efe8,'object':_0x7271a[_0x586b33]['item'],'change':_0x4f6d29[_0x184066]}),'elementEnd'===_0x7271a[_0x586b33]['type']&&_0x1bdfe1&&_0x1bdfe1['object']===_0x7271a[_0x586b33]['item']&&(_0x25c3f5[_0x184066]['shift'](),_0x4f6d29[_0x184066]=_0x1bdfe1['change'])),_0x4f6d29[_0x184066]&&_0x18d909&&(_0x4f6d29[_0x184066]['end']=_0x24e9c6,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null);}function _0x121ec6({start:_0x1782e4,end:_0x508b33,tapeItem:_0x2b7b3d,userId:_0x349936,type:_0x478a3c}){const _0x4599b8=_0x2b7b3d['item'],_0x1b9ce4=_0x990852['schema']['isBlock'](_0x4599b8)&&!_0x990852['schema']['isLimit'](_0x4599b8),_0x468e58=_0x1782e4['nodeAfter']==_0x508b33['parent']&&_0x508b33['isAtStart'];if(_0x1b9ce4&&_0x468e58)return;const _0x10d9e3=_0x990852['createRange'](_0x1782e4,_0x508b33),_0x531087=_0x4e964e['get'](_0x349936),_0x7b9734=new r({'author':_0x531087,'type':'isAdded'==_0x478a3c||'isAddSuggestion'==_0x478a3c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x478a3c||'isRemoveSuggestion'==_0x478a3c},'createdAt':new Date(),'rootName':_0x7e77e1});_0xc87731['push'](_0x7b9734),_0x3fb4e5['markers']['set']('revision:'+_0x7b9734['id'],_0x10d9e3);}function _0x500bd3(_0x1a3b16,_0x3a7998){const _0x515894=_0x1a3b16['getAttributes'](),_0x5bb901=_0x3a7998['getAttributes']();for(const _0x3745d8 of _0x515894){if(_0x3745d8[0x1]!==_0x3a7998['getAttribute'](_0x3745d8[0x0]))return!0x1;_0x5bb901['next']();}return _0x5bb901['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55fba4=>{const _0x1153dc=_0x55fba4['markerName']['split'](':')[0x1],_0x2966cc=this['_getChangeFromId'](_0x1153dc);if(!_0x2966cc)return null;const _0x4fe171='add'==_0x2966cc['type']?'insertion':'deletion',_0x1a4c74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4fe171];return _0x2966cc['data']['isSuggestion']&&_0x1a4c74['push']('ck-suggestion-marker-'+_0x4fe171+'-new'),this['activeChange']==_0x2966cc&&_0x1a4c74['push']('ck-suggestion-marker--active'),{'classes':_0x1a4c74,'attributes':{'data-change-id':_0x1153dc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x26ccd5=>{_0x26ccd5['on']('element:pre',(_0x54f148,_0x5b0ee2,_0x16475f)=>{const _0x3dd3d2=_0x5b0ee2['viewItem']['getChild'](0x0);if(!_0x3dd3d2||!_0x3dd3d2['is']('element','code'))return;if(!_0x16475f['consumable']['consume'](_0x3dd3d2,{'attributes':['vid_start','vid_end']}))return;const _0x1c4bd3=_0x5b0ee2['modelRange']['start']['nodeAfter'];_0x16475f['writer']['setAttribute']('vid_start',_0x3dd3d2['getAttribute']('vid_start'),_0x1c4bd3),_0x16475f['writer']['setAttribute']('vid_end',_0x3dd3d2['getAttribute']('vid_end'),_0x1c4bd3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21abcb=>{_0x21abcb['on']('element',(_0x48dd84,_0x3c56fe,_0x49d844)=>{if(!_0x49d844['consumable']['consume'](_0x3c56fe['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c56fe['modelRange']['isCollapsed'])return;const _0x3f0cb9=_0x3c56fe['modelRange']['start']['nodeAfter'];_0x3f0cb9['hasAttribute']('vid_start')||_0x3f0cb9['hasAttribute']('vid')||(_0x49d844['writer']['setAttribute']('vid_start',_0x3c56fe['viewItem']['getAttribute']('vid_start'),_0x3f0cb9),_0x49d844['writer']['setAttribute']('vid_end',_0x3c56fe['viewItem']['getAttribute']('vid_end'),_0x3f0cb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54871c=>_0x54871c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3d992f,[,_0x47c005])=>{['vid_start','vid_end','vid']['includes'](_0x47c005)&&(_0x3d992f['return']=!0x0,_0x3d992f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1e273c=>{_0x1e273c['on']('attribute:vid',(_0x37520a,_0x3e83ee,_0x423b27)=>{if('\x20'!=_0x3e83ee['item']['data']||_0x3e83ee['item']['parent']['maxOffset']>0x1)return;if(!_0x423b27['consumable']['consume'](_0x3e83ee['item'],_0x37520a['name']))return;const _0x55a5d1=_0x423b27['writer'],_0x141657=_0x423b27['mapper']['toViewRange'](_0x3e83ee['range']);_0x55a5d1['wrap'](_0x141657,_0x55a5d1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1213aa){const _0x5a3d4e=_0x1213aa['plugins']['get']('RevisionViewer');return(_0x50a034,_0x1b2e9c,_0x2c47d5)=>{const _0xda8b35=_0x1b2e9c['markerName']['split'](':')[0x1],_0x47c47d=_0x5a3d4e['_getChangeFromId'](_0xda8b35);if(!_0x47c47d)return null;const _0x3c2caf='add'==_0x47c47d['type']?'split':'merge';if(!_0x2c47d5['consumable']['test'](_0x1b2e9c['markerRange'],_0x50a034['name']))return;const _0x223e16=_0x1b2e9c['markerRange']['getWalker'](),_0x44521d=_0x1b2e9c['markerRange']['start'],_0x678722=_0x1213aa['model']['schema'];let _0xbaf8cc=null,_0x137d19=null,_0x5a2c43=!0x1,_0x5176d7=!0x1;for(const _0x285072 of _0x223e16){const _0x2852aa=_0x285072['item'];_0x5a2c43=_0x5a2c43||_0x678722['isContent'](_0x2852aa);const _0xfb8423=_0x2c47d5['mapper']['toViewElement'](_0x2852aa);if(_0xfb8423&&_0xfb8423['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x285072['type']&&(_0x678722['isBlock'](_0x2852aa)&&!_0x678722['isLimit'](_0x2852aa)&&(_0x2852aa['nextSibling']||_0x44521d['isAtEnd']?_0xbaf8cc&&_0xbaf8cc['parent']==_0x2852aa||(_0xbaf8cc=_0x2852aa,_0xd13e4b(_0x285072['previousPosition']),_0x5176d7=!0x0):_0x137d19=_0x137d19||_0x285072['previousPosition']));}function _0xd13e4b(_0x144af4){const _0xd970f6=_0x2c47d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c2caf}),_0x324ebf=_0x2c47d5['mapper']['toViewPosition'](_0x144af4);_0x47c47d['data']['isSuggestion']&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker-'+_0x3c2caf+'-new',_0xd970f6),_0x5a3d4e['activeChange']==_0x47c47d&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker--active',_0xd970f6),_0x2c47d5['writer']['insert'](_0x324ebf,_0xd970f6),_0x2c47d5['mapper']['bindElementToMarker'](_0xd970f6,_0x1b2e9c['markerName']);}_0x5a2c43||_0x5176d7||!_0x137d19||_0xd13e4b(_0x137d19);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x379f52,_0x83283f,_0x599553)=>{const _0xb4dabd=_0x599553['mapper']['markerNameToElements'](_0x83283f['markerName']);if(_0xb4dabd){for(const _0x360a0c of _0xb4dabd)(_0x360a0c['hasClass']('ck-suggestion-marker-split')||_0x360a0c['hasClass']('ck-suggestion-marker-merge'))&&(_0x599553['mapper']['unbindElementFromMarkerName'](_0x360a0c,_0x83283f['markerName']),_0x599553['writer']['remove'](_0x360a0c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x34e372,_0x3c2128,_0xfc35aa)=>{const _0x1152e9=_0x3c2128['markerName']['split'](':')[0x1],_0x2a77fe=this['_getChangeFromId'](_0x1152e9);if(!_0x2a77fe)return null;const _0x31231a='add'==_0x2a77fe['type']?'split':'merge';if(_0xfc35aa['consumable']['test'](_0x3c2128['markerRange'],_0x34e372['name']))for(const _0x5b422e of _0x3c2128['markerRange']['getItems']()){if(!_0x5b422e['is']('element','softBreak'))continue;const _0x176f94=_0xfc35aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31231a}),_0x4bbfea=_0xfc35aa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5b422e));_0x2a77fe['data']['isSuggestion']&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker-'+_0x31231a+'-new',_0x176f94),this['activeChange']==_0x2a77fe&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker--active',_0x176f94),_0xfc35aa['writer']['insert'](_0x4bbfea,_0x176f94),_0xfc35aa['mapper']['bindElementToMarker'](_0x176f94,_0x3c2128['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x280b16=>{for(const _0x200b22 of this['editor']['model']['document']['getRootNames']()){const _0xca03cb=this['editor']['model']['document']['getRoot'](_0x200b22),_0x286604=this['editor']['editing']['view']['document']['getRoot'](_0x200b22);if(_0x286604){const _0xfce669=_0xca03cb['getAttribute']('revisionHistoryAttachChange');if(_0x280b16['removeAttribute']('data-change-id',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-add',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-remove',_0x286604),_0x280b16['removeClass']('ck-revision-history-root--active',_0x286604),_0xfce669){const _0x46eb9b=this['_getChangeFromId'](_0xfce669);if(!_0x46eb9b)return null;_0x280b16['setAttribute']('data-change-id',_0xfce669,_0x286604),_0x280b16['addClass']('ck-revision-history-root-'+_0x46eb9b['type'],_0x286604),this['activeChange']==_0x46eb9b&&_0x280b16['addClass']('ck-revision-history-root--active',_0x286604);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x19d18c=>'revision-comment:'+_0x19d18c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x424e78=>'revision-suggestion:'+_0x424e78,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38d9d3=>({'name':'suggestion:'+_0x38d9d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x220aff=>{const _0x5d6300=_0x220aff['markerName']['split'](':')[0x1];return'insertion'!=_0x5d6300&&'deletion'!=_0x5d6300?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d6300]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a4f3b,_0x4948a6,_0x291a7a)=>{const _0x5a7399=_0x291a7a['mapper']['markerNameToElements'](_0x4948a6['markerName']);if(_0x5a7399){for(const _0xcea6c6 of _0x5a7399)_0xcea6c6['is']('uiElement')&&(_0x291a7a['mapper']['unbindElementFromMarkerName'](_0xcea6c6,_0x4948a6['markerName']),_0x291a7a['writer']['remove'](_0xcea6c6));}},{'priority':'high'});}['_getChangeFromId'](_0x15e134){return this['_changeIdToChange']['get'](_0x15e134);}['_getViewForChange'](_0xdc5251){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xdc5251),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5ae70f,_0x52c68d,_0x369df8,_0x483d6d)=>{_0x483d6d&&this['_balloon']['remove'](_0x483d6d),_0x369df8&&(this['_balloon']['add']({'view':_0x369df8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x36b043=this['editor']['editing'],_0x83f6af=this['_getChangeFromId'](_0x369df8['changeId']);let _0x32f69e;if(_0x83f6af['data']['isOnRoot']){const _0x12fdac=_0x36b043['view']['getDomRoot'](_0x83f6af['rootName']);_0x32f69e=Array['from'](_0x12fdac['getClientRects']());}else{const _0x4e5313=this['editor']['model']['markers']['get']('revision:'+_0x369df8['changeId']);_0x32f69e=Array['from'](_0x36b043['mapper']['markerNameToElements'](_0x4e5313['name']))['map'](_0x24b307=>_0x36b043['view']['domConverter']['mapViewToDom'](_0x24b307))['map'](_0x298673=>Array['from'](_0x298673['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x32f69e[0x0];return _0x32f69e['find'](_0x36ac0b=>_0x36ac0b['top']-0x3<=this['_activeViewTarget']['y']&&_0x36ac0b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36ac0b['left']-0x3<=this['_activeViewTarget']['x']&&_0x36ac0b['right']+0x3>=this['_activeViewTarget']['x'])||_0x32f69e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x424a3b,_0x185eb6,_0x244f4b,_0x2dfbf6)=>{this['activeView']=_0x244f4b?this['_getViewForChange'](_0x244f4b):null,this['editor']['model']['change'](()=>{const _0x334203=this['editor']['editing'];_0x2dfbf6&&(_0x2dfbf6['data']['isOnRoot']?_0x334203['view']['change'](_0x4ddbc1=>{_0x4ddbc1['removeClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x2dfbf6['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x2dfbf6['id'])),_0x244f4b&&(_0x244f4b['data']['isOnRoot']?_0x334203['view']['change'](_0x499ef7=>{_0x499ef7['addClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x244f4b['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x244f4b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x515bbd,_0x115e89)=>{if(this['activeChange'])return;const _0x34a368=this['_findChangeIdFromDomTarget'](_0x115e89['target']),_0x27f73a=this['_changeIdToChange']['get'](_0x34a368);_0x27f73a?(this['_activeViewTarget']={'x':_0x115e89['domEvent']['x'],'y':_0x115e89['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27f73a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x58532,_0x30dcfd)=>{const _0x466e33=this['_findChangeIdFromDomTarget'](_0x30dcfd['target']),_0x3295a=this['_changeIdToChange']['get'](_0x466e33);_0x3295a?(this['_activeViewTarget']={'x':_0x30dcfd['domEvent']['x'],'y':_0x30dcfd['domEvent']['y']},_0x3295a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3295a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x195f16){do{const _0x454c8a=_0x195f16['getAttribute']('data-change-id');if(_0x454c8a)return _0x454c8a;_0x195f16=_0x195f16['parent'];}while(_0x195f16);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x207062=>{for(const _0xe4aef0 of this['editor']['model']['markers'])_0x207062['removeMarker'](_0xe4aef0);});}}function tt(_0x38f98f,_0x1f07b0){return(_0x55aa40,_0x95ca41,_0x25c793)=>{if(!_0x25c793['consumable']['test'](_0x95ca41['markerRange'],_0x55aa40['name']))return;const _0x4e69bd=_0x95ca41['markerRange']['getWalker'](),_0x1bb0d6=_0x95ca41['markerRange']['start'],_0x45a548=_0x38f98f['model']['schema'];let _0x2a5ca5=null,_0x26b799=null,_0x3dc8cc=!0x1,_0x32ea3e=!0x1;for(const _0x3120c4 of _0x4e69bd){const _0x49d319=_0x3120c4['item'];_0x3dc8cc=_0x3dc8cc||_0x45a548['isContent'](_0x49d319);const _0x372aec=_0x25c793['mapper']['toViewElement'](_0x49d319);if(_0x372aec&&_0x372aec['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3120c4['type']&&(_0x45a548['isBlock'](_0x49d319)&&!_0x45a548['isLimit'](_0x49d319)&&(_0x49d319['nextSibling']||_0x1bb0d6['isAtEnd']?_0x2a5ca5&&_0x2a5ca5['parent']==_0x49d319||(_0x2a5ca5=_0x49d319,_0x582a11(_0x3120c4['previousPosition']),_0x32ea3e=!0x0):_0x26b799=_0x26b799||_0x3120c4['previousPosition']));}function _0x582a11(_0x5a87df){const _0x15eafc=_0x25c793['mapper']['toViewPosition'](_0x5a87df),_0x5131b4=_0x25c793['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1f07b0});_0x25c793['writer']['insert'](_0x15eafc,_0x5131b4),_0x25c793['mapper']['bindElementToMarker'](_0x5131b4,_0x95ca41['markerName']);}_0x3dc8cc||_0x32ea3e||!_0x26b799||_0x582a11(_0x26b799);};}class yt extends _0x18555e{constructor(_0x458aaa){super(_0x458aaa);const _0x476566=_0x458aaa['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x476566,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x476566,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x502344=this['editor'],_0x4e30b9=_0x502344['plugins']['get'](d),_0x547442=_0x4e30b9['isReady']?_0x4e30b9['diff']['newRevisionId']:null;_0x502344['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x547442);}['refresh'](){const {isReady:_0x5977cd,isEnabled:_0xf2468b,repository:_0x3af1a3,diff:_0x329c21}=this['editor']['plugins']['get'](d),_0x25c3cc=_0x329c21&&_0x3af1a3['getLaterVisibleRevision'](_0x329c21['newRevisionId']);this['isEnabled']=_0x5977cd&&_0xf2468b&&Boolean(_0x25c3cc);}}class bt extends _0x18555e{['_step'];constructor(_0x11fb64,{direction:_0x43ace0}){super(_0x11fb64);const _0xd5f4b0=_0x11fb64['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x43ace0?0x1:-0x1,this['listenTo'](_0xd5f4b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xeac587=this['editor'],_0x3b0b98=_0xeac587['plugins']['get'](d),{isNavigationMode:_0xe41eb4,currentChangeNumber:_0x569b27}=_0x3b0b98;let _0x4eedef;if(_0x3b0b98['activeChange']=_0xe41eb4?_0x3b0b98['diff']['changes']['get'](_0x569b27+this['_step']):_0x3b0b98['diff']['changes']['first'],_0x3b0b98['activeChange']['data']['isOnRoot'])_0x4eedef=_0xeac587['editing']['view']['getDomRoot'](_0x3b0b98['activeChange']['rootName']);else{const _0x4ec741=_0xeac587['model']['markers']['get']('revision:'+_0x3b0b98['activeChange']['id']);_0x4eedef=_0x3d0410(_0xeac587['editing'],_0x4ec741);}_0x489eea({'target':_0x4eedef,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x406b72,currentChangeNumber:_0x547483,numberOfChanges:_0x3bb9a5,isReady:_0x4d02b0,isEnabled:_0x56162c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x56162c&&_0x4d02b0&&_0x3bb9a5)&&(!_0x406b72||(0x1===this['_step']?_0x547483<_0x3bb9a5-0x1:_0x547483>0x0));}}class bi extends _0x297fcf{constructor(_0x15ee12){super(_0x15ee12);const _0x4ee2b3=this['bindTemplate'],_0x3f7d02=new _0x2456b5(_0x15ee12),_0xcdce5d=new _0x2456b5(_0x15ee12);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',(_0x1657bb,_0x5dd3cf)=>_0x1657bb&&_0x5dd3cf>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xc55966,_0x318708,_0x35d25f,_0x1aac72)=>{if(!_0xc55966)return R(_0x15ee12,'Loading...');if(!_0x35d25f)return R(_0x15ee12,'No\x20changes');const _0x184cbf=R(_0x15ee12,'NUMBER_OF_CHANGES',_0x35d25f);return _0x1aac72?R(_0x15ee12,'X_OF_Y_CHANGES',[_0x318708+0x1,_0x35d25f]):_0x184cbf;}),_0x3f7d02['set']({'label':R(_0x15ee12,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0xcdce5d['set']({'label':R(_0x15ee12,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3f7d02['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xcdce5d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7d02['on']('execute',()=>this['fire']('execute','backward')),_0xcdce5d['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',_0x4ee2b3['if']('_isStatusLabelVisible','ck-hidden',_0x48fbc2=>!_0x48fbc2)]},'children':[{'text':_0x4ee2b3['to']('isNavigationMode',_0x1c0b1a=>_0x1c0b1a?R(_0x15ee12,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x15ee12,'Total')+':\x20')}]},{'text':_0x4ee2b3['to']('_statusText')}]},new _0x43523c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7d02,_0xcdce5d]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x434fd7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xee8327=this['editor']['editing']['view'];_0xee8327['change'](_0x3af276=>{for(const _0x4de0fb of _0xee8327['document']['roots'])_0x3af276['addClass'](ie,_0x4de0fb);});}['hide'](){const _0x225621=this['editor']['editing']['view'];_0x225621['change'](_0x4ef944=>{for(const _0x3e05d5 of _0x225621['document']['roots'])_0x4ef944['removeClass'](ie,_0x3e05d5);});}}class m extends _0x434fd7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x37718b=this['editor'],_0x2a13aa=_0x37718b['plugins']['get'](d),_0x5535f2=_0x37718b['plugins']['get'](te);_0x37718b['ui']['componentFactory']['add']('exitToEditing',_0x496006=>{const _0x333a0a=new _0x2456b5(_0x496006);return _0x333a0a['set']({'label':R(_0x496006,'Back\x20to\x20editing'),'icon':_0x3495e1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x333a0a,'execute',()=>{_0x37718b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x333a0a;}),_0x37718b['ui']['componentFactory']['add']('restoreRevision',_0x216251=>{const _0x3701c1=new _0x2456b5(_0x216251);return _0x3701c1['set']({'label':R(_0x216251,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3701c1['bind']('isEnabled')['to'](_0x37718b['commands']['get']('restoreRevision')),this['listenTo'](_0x3701c1,'execute',()=>_0x37718b['execute']('restoreRevision')),_0x3701c1;}),_0x37718b['ui']['componentFactory']['add']('changesNavigation',_0xc83b43=>{const _0x3192b6=new bi(_0xc83b43),_0x4249d=_0x37718b['commands']['get']('showPreviousChange'),_0x34138c=_0x37718b['commands']['get']('showNextChange');return _0x3192b6['bind']('isBackwardNavigationEnabled')['to'](_0x4249d,'isEnabled'),_0x3192b6['bind']('isForwardNavigationEnabled')['to'](_0x34138c,'isEnabled'),_0x3192b6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a13aa),this['listenTo'](_0x3192b6,'execute',(_0x28247e,_0x35ca38)=>{_0x37718b['execute']('forward'===_0x35ca38?'showNextChange':'showPreviousChange');}),_0x3192b6;}),_0x5535f2['show'](),_0x2a13aa['on']('change:isReady',(_0x5379c6,_0x2a091c,_0x3eddda)=>{_0x3eddda?_0x5535f2['hide']():_0x5535f2['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x142145,_0x6d8e82){super(_0x142145,_0x6d8e82);const _0x5dd67a=this['bindTemplate'];this['set']({'label':R(_0x142145,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x142145,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5dd67a['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b1589=this['fieldView']['element'];this['_tooltipString']=_0x4b1589['scrollWidth']>_0x4b1589['clientWidth']&&_0x4b1589['value']||'';}}class ti extends _0x297fcf{constructor(_0x2bacf6,_0x1438d8,_0x4b975b){super(_0x2bacf6);const _0x15da73=new _0x21bca6();_0x15da73['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x59a141=['ck','ck-revision-history-sidebar__revision-author'];_0x4b975b&&_0x59a141['push']('ck-revision-history-sidebar__revision-author_creator');const _0x242fe3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2bacf6,_0x4b975b?'Revision\x20creator':'Revision\x20author')},'children':[_0x15da73,_0x1438d8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59a141},'children':_0x242fe3});}}function ni(_0x3edf92,_0x1dd92f){const _0x489f4c=_0x3edf92['bindTemplate'],_0x4aa1e4=_0x3edf92['locale'],_0x4171dd=_0x327471(_0x4aa1e4);_0x4171dd['panelPosition']='sw';const _0x560ebe=function(_0x124fda,_0xcff998){const _0xa8ddde=function(_0x3ca7d0,_0x10c35a){const _0x4af131=_0x3ca7d0['locale'],_0x4ed5a6={'Compare\x20against\x20selected':R(_0x4af131,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4af131,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4af131,'Restore\x20this\x20revision')};return _0x10c35a['map'](_0x50abeb=>{const _0x5752b0=_0x4ed5a6[_0x50abeb['name']];return _0x5752b0&&_0x5752b0!==_0x50abeb['name']&&(_0x50abeb['name']=_0x5752b0),_0x50abeb;});}(_0x124fda,_0xcff998),_0xe224ee=new _0x2d1bb4();for(const _0x44c67f of _0xa8ddde){const _0x315c0b={'type':'button','model':new to({'label':_0x44c67f['name'],'class':_0x44c67f['class'],'withText':!0x0,'role':'menuitem','_action':_0x44c67f['action']})};_0x315c0b['model']['bind']('isEnabled')['to'](_0x124fda,'isActionsDropdownOpen',_0xf94f9=>'function'!=typeof _0x44c67f['isEnabled']||(!_0xf94f9||_0x44c67f['isEnabled'](_0x124fda))),_0xe224ee['add'](_0x315c0b);}return _0xe224ee;}(_0x3edf92,_0x1dd92f);return _0x3edf92['bind']('isActionsDropdownOpen')['to'](_0x4171dd,'isOpen'),_0x4171dd['buttonView']['set']({'label':R(_0x4aa1e4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3495e1['threeVerticalDots']}),_0x4171dd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x489f4c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x489f4c['to'](_0x293114=>_0x293114['stopPropagation']())}}),_0x4171dd['on']('execute',_0x2276ac=>{_0x3edf92['isReady']&&'function'==typeof _0x2276ac['source']['_action']&&_0x2276ac['source']['_action'](_0x3edf92);}),_0x9954b6(_0x4171dd,_0x560ebe,{'role':'menu'}),_0x4171dd['listenTo'](_0x3edf92,'change:isActionsDropdownOpen',(_0x1e76b1,_0x2602ef,_0x505d24)=>{if(_0x505d24)for(const _0x3c4484 of _0x4171dd['listView']['items']){const _0x44e7ad=_0x3c4484['children']['first'],_0x410b66=_0x1dd92f['find'](_0x1d5be6=>_0x1d5be6['action']===_0x44e7ad['_action'])['isVisible'];_0x3c4484['isVisible']=void 0x0===_0x410b66||_0x410b66(_0x3edf92);}}),_0x4171dd;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x4854ea,uid as _0x2e1580,Collection as _0x431dca,logWarning as _0x2d3c2f,FocusTracker as _0x4174b2,KeystrokeHandler as _0x3fca35,scrollViewportToShowTarget as _0x203262,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x875336}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xc730b6,set as _0x23be20,unset as _0x5eb009,isEqual as _0x3ac5c2}from'lodash-es';import{Plugin as _0x28e165,PendingActions as _0x2e9993,icons as _0x22cef4,Command as _0x3e232a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3c6642,getMarkerDomElement as _0x4c9762,ConfirmMixin as ti,sanitizeEditorConfig as _0x16fc5f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3f8608,ViewText as _0x444cdc,ViewElement as _0x413445,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x509f44,ViewAttributeElement as _0x2af67f,ViewEmptyElement as _0x3172e5,ViewRawElement as _0x409a2d,ViewUIElement as _0x51e198,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5ec9ce,submitHandler as _0x3b7c97,LabeledFieldView as _0xce7eed,createLabeledInputText as _0x103ec4,createDropdown as _0x11dfdd,ListView as _0x55746c,ListItemView as _0x22def1,ButtonView as te,MenuBarMenuView as _0x1c53c1,MenuBarMenuListView as _0x5ea68e,MenuBarMenuListItemView as _0x136567,MenuBarMenuListItemButtonView as _0x476170,ContextualBalloon as _0x4b1f2e,ToolbarSeparatorView as _0x500304,IconView as _0x3afdff,addListToDropdown as to,ViewModel as _0xbc0d01,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2e64a2}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4854ea(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x45b89d){super(),this['id']=_0x45b89d['id']||_0x2e1580(),this['creator']=_0x45b89d['creator']||null,this['authors']=_0x45b89d['authors']||[],this['diffData']=_0x45b89d['diffData']||null,this['toVersion']=_0x45b89d['toVersion']||0x0,this['fromVersion']=_0x45b89d['fromVersion']||0x0,this['set']('name',_0x45b89d['name']||''),this['set']('createdAt',_0x45b89d['createdAt']||new Date()),this['set']('attributes',_0x45b89d['attributes']||{});}['setName'](_0x442c51){this['_update']({'name':_0x442c51});}['setAttribute'](_0x274429,_0x60e5ff){const _0x29a440=_0xc730b6(this['attributes']);_0x23be20(_0x29a440,_0x274429,_0x60e5ff),this['_update']({'attributes':_0x29a440});}['removeAttribute'](_0x5b276f){const _0x258459=_0xc730b6(this['attributes']);_0x5eb009(_0x258459,_0x5b276f),this['_update']({'attributes':_0x258459});}['_update'](_0x3d245e,_0x156744=!0x1){let _0x22aca0=!0x1;const _0x1a1afe={'id':this['id']},_0x2599bd=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5bf4a3 of _0x2599bd){const _0xe7799f=_0x3d245e[_0x5bf4a3];void 0x0!==_0xe7799f&&_0xe7799f!==this[_0x5bf4a3]&&(this[_0x5bf4a3]=_0xe7799f,_0x1a1afe[_0x5bf4a3]=_0xe7799f,_0x22aca0=!0x0);}_0x22aca0&&(_0x1a1afe['authors']&&(_0x1a1afe['authorsIds']=_0x1a1afe['authors']['map'](_0x10dbe6=>_0x10dbe6['id']),delete _0x1a1afe['authors']),this['fire']('_update',_0x1a1afe,_0x156744));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x50e122=>_0x50e122['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x28e165{['_revisions'];static get['requires'](){return[_0x3c6642];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ba666){super(_0x4ba666),this['_revisions']=new _0x431dca();}['afterInit'](){!async function(_0x62520f){const _0x1ff6b6=_0x37eab9([0x33,0x7a,0x74,0x76,0x59,0x72,0x64,0x6f,0x34,0x42,0x79,0x4b,0x53,0x4c,0x6e,0x68,0x56,0x66,0x62,0x6b,0x38,0x71,0x32,0x57,0x58,0x50,0x75,0x54,0x30,0x5a,0x48,0x65,0x4e,0x4d,0x61,0x4a,0x39,0x69,0x6d,0x46,0x4f,0x6a,0x47,0x6c,0x44,0x55,0x35,0x43,0x31,0x49,0x78,0x70,0x63,0x73,0x77,0x67,0x45,0x36,0x51,0x41,0x37,0x52]),_0x2706a6=0xeb829,_0x2047ee=0x3ed194e2,_0x412c81=0x3ed6c8e2^_0x2047ee,_0x5d7883=window[_0x37eab9([0x44,0x61,0x74,0x65])][_0x37eab9([0x6e,0x6f,0x77])](),_0x3f6893=_0x62520f[_0x37eab9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ff6aa=new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217206=>{_0x3f6893[_0x37eab9([0x6f,0x6e,0x63,0x65])](_0x37eab9([0x72,0x65,0x61,0x64,0x79]),_0x217206);}),_0x4bdfa8={[_0x37eab9([0x6b,0x74,0x79])]:_0x37eab9([0x45,0x43]),[_0x37eab9([0x75,0x73,0x65])]:_0x37eab9([0x73,0x69,0x67]),[_0x37eab9([0x63,0x72,0x76])]:_0x37eab9([0x50,0x2d,0x32,0x35,0x36]),[_0x37eab9([0x78])]:_0x37eab9([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]),[_0x37eab9([0x79])]:_0x37eab9([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]),[_0x37eab9([0x61,0x6c,0x67])]:_0x37eab9([0x45,0x53,0x32,0x35,0x36])},_0x29d5f0=_0x3f6893[_0x37eab9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37eab9([0x67,0x65,0x74])](_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bcbcf(){let _0x34d488,_0x3b086d=null,_0x42c9f5=null;try{if(_0x29d5f0==_0x37eab9([0x47,0x50,0x4c]))return _0x37eab9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34d488=_0x5c2e9b(),!_0x34d488)return _0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34d488[_0x37eab9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42c9f5=_0x65f393(_0x34d488[_0x37eab9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34d488[_0x37eab9([0x6a,0x74,0x69])])),await _0x3600b7()?_0x40f4fb()?_0x127f80()?_0x37eab9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2caa4b()?(_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2125fd()):_0x37eab9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37eab9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5dc2b2){return _0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127f80(){const _0x58437c=[_0x37eab9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37eab9([0x74,0x72,0x69,0x61,0x6c])][_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d7883/0x3e8:0xe10*_0x412c81;return _0x34d488[_0x37eab9([0x65,0x78,0x70])]<_0x58437c;}function _0x40f4fb(){const _0x287858=_0x34d488[_0x37eab9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x287858)return!0x1;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x2a])))return!0x0;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x52,0x48])))return!0x0;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x52,0x52,0x48]))){if(_0x20c83f())return!0x0;if(_0x364bb0()||_0x16c8d4())return!0x0;}return!0x1;}function _0x2caa4b(){const _0x14a832=_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14a832||0x0==_0x14a832[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28724c}=new URL(window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14a832[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28724c))return!0x0;const _0x4f68d6=_0x28724c[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e]));return _0x14a832[_0x37eab9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x396994=>_0x396994[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x2a])))[_0x37eab9([0x6d,0x61,0x70])](_0xad9435=>_0xad9435[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e])))[_0x37eab9([0x73,0x6f,0x6d,0x65])](_0x347cba=>_0x4f68d6[_0x37eab9([0x65,0x76,0x65,0x72,0x79])]((_0x452861,_0x226503)=>_0x347cba[_0x226503]===_0x452861||_0x347cba[_0x226503]===_0x37eab9([0x2a])));}function _0x2125fd(){return _0x3b086d&&_0x42c9f5?new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9c2d70,_0x26d68)=>{_0x3b086d[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x9c2d70,_0x26d68),_0x42c9f5[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x7fa5ca=>{_0x7fa5ca!=_0x37eab9([0x56,0x61,0x6c,0x69,0x64])&&_0x9c2d70(_0x7fa5ca);},_0x26d68);}):_0x3b086d||_0x42c9f5||_0x37eab9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x65f393(_0xe91e7,_0x598061){return new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x596045=>{if(_0x183bd6())return _0x596045(_0x37eab9([0x56,0x61,0x6c,0x69,0x64]));_0x7f1b4c(),_0x3f6893[_0x37eab9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48b8cc=!0x1;const _0x2933f0=_0x2e1580();function _0xf9c2ad(_0x40a5df){return!!_0x40a5df&&(typeof _0x40a5df===_0x37eab9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40a5df===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40a5df[_0x37eab9([0x74,0x68,0x65,0x6e])]===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40a5df[_0x37eab9([0x63,0x61,0x74,0x63,0x68])]===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x168633(_0x5bac68){_0x567853(_0x5bac68)[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x5524d5=>{if(!_0x5524d5||_0x5524d5[_0x37eab9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37eab9([0x6f,0x6b]))return _0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x544934(_0x297de5(_0x2933f0+_0x598061))!=_0x5524d5[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37eab9([0x56,0x61,0x6c,0x69,0x64]);})[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x4edcb8=>(_0x5b1da6(),_0x4edcb8),()=>{const _0x172b34=_0xd850a();return null==_0x172b34?(_0x5b1da6(),_0x37eab9([0x56,0x61,0x6c,0x69,0x64])):_0x37eab9(_0x5d7883-_0x172b34>(0x1add10e2^_0x2047ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x596045)[_0x37eab9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x196b44=0x3ee77a62^_0x2047ee;function _0x5b1da6(){const _0x40e5c7=_0x37eab9([0x6c,0x6c,0x63,0x74,0x2d])+_0x544934(_0x297de5(_0xe91e7)),_0x503b6d=_0x21212f(_0x544934(window[_0x37eab9([0x4d,0x61,0x74,0x68])][_0x37eab9([0x63,0x65,0x69,0x6c])](_0x5d7883/_0x196b44)));window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37eab9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40e5c7,_0x503b6d);}function _0xd850a(){const _0x41f7fd=_0x37eab9([0x6c,0x6c,0x63,0x74,0x2d])+_0x544934(_0x297de5(_0xe91e7)),_0x1b55c9=window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37eab9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41f7fd);return _0x1b55c9?window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21212f(_0x1b55c9),0x10)*_0x196b44:null;}function _0x567853(_0x4b38de){return new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ac418,_0x10b326)=>{_0x4b38de[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x4ac418,_0x10b326),window[_0x37eab9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10b326,0x3ed04022^_0x2047ee);});}}_0x3f6893[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46089a,_0x20e2d7)=>{if(_0x20e2d7[0x0]!=_0xe91e7)return _0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20e2d7[0x1]={..._0x20e2d7[0x1],[_0x37eab9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2933f0};},{[_0x37eab9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37eab9([0x68,0x69,0x67,0x68])}),_0x3f6893[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bd126=>{_0xf9c2ad(_0x4bd126[_0x37eab9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48b8cc=!0x0,_0x168633(_0x4bd126[_0x37eab9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37eab9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37eab9([0x6c,0x6f,0x77])}),_0x2ff6aa[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>{_0x48b8cc||_0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x183bd6(){return _0x3f6893[_0x37eab9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37eab9([0x76,0x69,0x65,0x77])][_0x37eab9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37eab9([0x61,0x75,0x74,0x6f]);}function _0x7f1b4c(){_0x3f6893[_0x37eab9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37eab9([0x76,0x69,0x65,0x77])][_0x37eab9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37eab9([0x61,0x75,0x74,0x6f]);}}function _0x2cd84e(_0x2baacd){const _0x245ef9=[new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f134b=>setTimeout(_0x1f134b,0x3ed8aa2e^_0x2047ee)),_0x2ff6aa[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5786eb=>{const _0x1ca8f3=0x3ed194e5^_0x2047ee,_0x12fd1e=_0x62520f[_0x37eab9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e9318(){_0x12fd1e[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1ca8f3&&_0x5786eb();}_0x4e9318(),_0x12fd1e[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x61,0x64,0x64]),_0x4e9318);})),new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246893=>{function _0x13cb67(){for(const _0xb1c22b in window)if(window[_0x37eab9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37eab9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb1c22b))&&window[_0xb1c22b]==_0x2706a6)return _0x246893();_0x3f6893[_0x37eab9([0x73,0x74,0x61,0x74,0x65])]!=_0x37eab9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37eab9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13cb67,0x3ed1876a^_0x2047ee);}_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x13cb67();})];return window[_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37eab9([0x72,0x61,0x63,0x65])](_0x245ef9)[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>_0x2baacd);}async function _0x313350(){if(await _0x2ff6aa,_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x137bee=_0x62520f[_0x37eab9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3eaea4=_0x62520f[_0x37eab9([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])](_0x137bee[_0x37eab9([0x69,0x64])]),_0x5b0439=_0x349566(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b0439[_0x37eab9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x137bee['id'],_0x3eaea4?_0x3eaea4['id']:null,!0x0),_0x5b0439[_0x37eab9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b0439[_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b0439[_0x37eab9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x18adce,void(_0x5b0439[_0x37eab9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x18adce);}if(_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x12522c=_0x349566(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x12522c[_0x37eab9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x12522c[_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x12522c[_0x37eab9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x18adce,_0x12522c[_0x37eab9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x18adce;}_0x3f6893[_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c])][_0x37eab9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18adce,_0x3f6893[_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c])][_0x37eab9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18adce,_0x3f6893[_0x37eab9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20c83f(){return _0x23cef7(_0x37eab9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x349566(_0x37eab9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37eab9([0x73,0x74,0x61,0x74,0x65])]==_0x37eab9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x364bb0(){return _0x23cef7(_0x37eab9([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 _0x16c8d4(){return _0x23cef7(_0x37eab9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x176bd6(_0x2670b4){const _0x348b53=_0x1e7aa9();_0x3f6893[_0x348b53]=_0x37eab9([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])+_0x2670b4,_0x2670b4[_0x37eab9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37eab9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e7aa9()]=_0x2706a6),_0x2670b4!=_0x37eab9([0x56,0x61,0x6c,0x69,0x64])&&_0x313350();}function _0x1e7aa9(){const _0x492973=window[_0x37eab9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37eab9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37eab9([0x6e,0x6f,0x77])]())[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37eab9([0x2e]),'');let _0x8e3fe8=_0x37eab9([0x7a]);for(let _0x1e7b3e=0x0;_0x1e7b3e<_0x492973[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e7b3e+=0x2){let _0x2a799a=window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492973[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e7b3e,_0x1e7b3e+0x2));_0x2a799a>=_0x1ff6b6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a799a-=_0x1ff6b6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8e3fe8+=_0x1ff6b6[_0x2a799a];}return _0x8e3fe8;}function _0x5c2e9b(){const _0x73239d=_0x29d5f0[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e]));if(0x3!=_0x73239d[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x960d9e(_0x73239d[0x1]);function _0x960d9e(_0x457aba){const _0x52ea7c=_0x552c29(_0x457aba);return _0x52ea7c&&_0x2d43bb()?_0x52ea7c:null;function _0x2d43bb(){const _0x34b7a6=_0x52ea7c[_0x37eab9([0x6a,0x74,0x69])],_0x479d2c=window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34b7a6[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34b7a6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17d2e3={..._0x52ea7c,[_0x37eab9([0x6a,0x74,0x69])]:_0x34b7a6[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34b7a6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17d2e3[_0x37eab9([0x76,0x63])],_0x297de5(_0x17d2e3)==_0x479d2c;}}}async function _0x3600b7(){let _0x1a1db7=!0x0;try{const _0x45155e=_0x29d5f0[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e])),[_0x1f7bee,_0x27c49d,_0x36fb6e]=_0x45155e;return _0x4f6a32(_0x1f7bee),await _0x2e5c7a(_0x1f7bee,_0x27c49d,_0x36fb6e),_0x1a1db7;}catch(_0x4c4b14){return!0x1;}function _0x4f6a32(_0x53fca9){const _0x4723f1=_0x552c29(_0x53fca9);_0x4723f1&&_0x4723f1[_0x37eab9([0x61,0x6c,0x67])]==_0x37eab9([0x45,0x53,0x32,0x35,0x36])||(_0x1a1db7=!0x1);}async function _0x2e5c7a(_0x3ad670,_0x4fd51e,_0x186bf3){const _0x1e2794=window[_0x37eab9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37eab9([0x66,0x72,0x6f,0x6d])](_0x47ff4a(_0x186bf3),_0x53e1bc=>_0x53e1bc[_0x37eab9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9620ad=new window[(_0x37eab9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37eab9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ad670+_0x37eab9([0x2e])+_0x4fd51e),_0x351eff=window[_0x37eab9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37eab9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x351eff)return;const _0xa1ccc0=await _0x351eff[_0x37eab9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37eab9([0x6a,0x77,0x6b]),_0x4bdfa8,{[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x45,0x43,0x44,0x53,0x41]),[_0x37eab9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37eab9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x351eff[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x45,0x43,0x44,0x53,0x41]),[_0x37eab9([0x68,0x61,0x73,0x68])]:{[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa1ccc0,_0x1e2794,_0x9620ad)||(_0x1a1db7=!0x1);}}function _0x552c29(_0x1d5386){return _0x1d5386[_0x37eab9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37eab9([0x65,0x79]))?JSON[_0x37eab9([0x70,0x61,0x72,0x73,0x65])](_0x47ff4a(_0x1d5386)):null;}function _0x47ff4a(_0x24727a){return window[_0x37eab9([0x61,0x74,0x6f,0x62])](_0x24727a[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37eab9([0x2b]))[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37eab9([0x2f])));}function _0x297de5(_0x4e5001){let _0x3356f4=0x1505;function _0x2ea86f(_0x5f1569){for(let _0x1613b9=0x0;_0x1613b9<_0x5f1569[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1613b9++){const _0x5c1308=_0x5f1569[_0x37eab9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1613b9);_0x3356f4=(_0x3356f4<<0x5)+_0x3356f4+_0x5c1308,_0x3356f4&=_0x3356f4;}}function _0x254f53(_0x38c999){Array[_0x37eab9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38c999)?_0x38c999[_0x37eab9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x254f53):_0x38c999&&typeof _0x38c999==_0x37eab9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37eab9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38c999)[_0x37eab9([0x73,0x6f,0x72,0x74])]()[_0x37eab9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x552037,_0x470691])=>{_0x2ea86f(_0x552037),_0x254f53(_0x470691);}):_0x2ea86f(window[_0x37eab9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38c999));}return _0x254f53(_0x4e5001),_0x3356f4>>>0x0;}function _0x544934(_0x5baf71){return _0x5baf71[_0x37eab9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37eab9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37eab9([0x30]));}function _0x21212f(_0x366373){return _0x366373[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37eab9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37eab9([0x6a,0x6f,0x69,0x6e])]('');}function _0x23cef7(_0x154f00){return _0x3f6893[_0x37eab9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37eab9([0x68,0x61,0x73])](_0x154f00);}function _0x349566(_0x5221bc){return _0x3f6893[_0x37eab9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37eab9([0x67,0x65,0x74])](_0x5221bc);}function _0x18adce(){}function _0x37eab9(_0x1341e6){return _0x1341e6['map'](_0x379283=>String['fromCharCode'](_0x379283))['join']('');}_0x176bd6(await _0x5bcbcf());}(this);}['createRevision'](_0xaaea57){const _0x3a916c=this['editor']['plugins']['get']('Users');return new a({'id':_0xaaea57['id'],'name':_0xaaea57['name'],'creator':_0xaaea57['creatorId']?_0x3a916c['getUser'](_0xaaea57['creatorId']):null,'diffData':_0xaaea57['diffData']||_0xaaea57['data'],'authors':_0xaaea57['authorsIds']['map'](_0xbe8b73=>_0x3a916c['getUser'](_0xbe8b73)),'createdAt':new Date(_0xaaea57['createdAt']),'attributes':_0xaaea57['attributes'],'fromVersion':_0xaaea57['fromVersion'],'toVersion':_0xaaea57['toVersion']});}['addRevision'](_0x5895cc,_0x24792f=0x0){this['_revisions']['add'](_0x5895cc,_0x24792f);}['getRevision'](_0x5208aa){return this['_revisions']['get'](_0x5208aa);}['getRevisions'](_0x34a9f7={'toJSON':!0x1}){const _0x45a433=Array['from'](this['_revisions']);return _0x45a433['reverse'](),_0x34a9f7['toJSON']?_0x45a433['map'](_0x4ef4a5=>_0x4ef4a5['toJSON']()):_0x45a433;}['getIndex'](_0x166f60){return this['_revisions']['getIndex'](_0x166f60);}['getEarlierVisibleRevision'](_0xb3a247){const [,_0x4f492a]=this['getRevisionsIterator'](_0xb3a247,{'direction':'earlier'});return _0x4f492a;}['getLaterVisibleRevision'](_0x1e3969){const [,_0x5e9522]=this['getRevisionsIterator'](_0x1e3969,{'direction':'later'});return _0x5e9522;}['getRevisionsInDiff'](_0x4718c4){const _0x2cb41b=[];for(const _0x47b35d of this['getRevisionsIterator'](_0x4718c4['newRevisionId']))if(_0x2cb41b['push'](_0x47b35d),_0x47b35d['id']===_0x4718c4['oldRevisionId'])break;return _0x2cb41b;}*['getRevisionsIterator'](_0x551788,{direction:_0x3f3897='earlier',filter:_0xf45f0b=()=>!0x0}={}){const _0x25bb1e='earlier'===_0x3f3897?0x1:-0x1;let _0x5b0924=this['_revisions']['get'](_0x551788),_0x5d0477=this['getIndex'](_0x5b0924);for(yield _0x5b0924;_0x5b0924;){if(_0x5d0477+=_0x25bb1e,_0x5b0924=this['getRevision'](_0x5d0477),!_0x5b0924)return;_0xf45f0b(_0x5b0924)&&(yield _0x5b0924);}}}function R(_0x548389,_0x4c4a4f,_0x19b7f4){const t=_0x548389['t'];switch(_0x4c4a4f){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'},_0x19b7f4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19b7f4);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'';}}const C={'c':_0x509f44,'a':_0x2af67f,'e':_0x3172e5,'r':_0x409a2d,'u':_0x51e198};class l extends _0x28e165{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c6642,j,_0x2e9993];}constructor(_0x59cedf){super(_0x59cedf),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x22dddb=_0x2e1580();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x22dddb},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x480dfd=this['repository']['getRevision'](0x0),_0x90a705=_0x480dfd&&null===_0x480dfd['creator']?_0x480dfd:null;if(this['_continueCurrentRevision']=!!_0x90a705&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x317bd4=this['_source']['getCurrentRevisionId'](),_0x31ac02=this['repository']['getRevision'](_0x317bd4);if(_0x31ac02)this['_startingVersion']=_0x31ac02['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1eda70=this['_source']['history']['_operations']['find'](_0x29b6b8=>!_0x29b6b8['_isInit']),_0x46de33=_0x1eda70?_0x1eda70['baseVersion']:this['_source']['history']['version'];_0x480dfd?(_0x480dfd['toVersion']<_0x46de33&&_0x480dfd['_update']({'toVersion':_0x46de33}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id'],this['_startingVersion']=_0x90a705['fromVersion']):(this['_startingVersion']=_0x480dfd['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x46de33,this['_continueCurrentRevision']=!0x1);}}else _0x90a705&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x90a705['toVersion'],this['editor']['model']['document']['history']['version']),_0x90a705['fromVersion']===_0x90a705['toVersion']?(0x0!==_0x90a705['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id'],this['_startingVersion']=_0x90a705['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',_0x214633=>!_0x214633),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x457fe3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x156804;for(const _0x4afb48 in _0x457fe3){const _0x14a5d1=_0x4afb48,_0x2f0951=_0x457fe3[_0x14a5d1];if('revisionHistoryLicenseKeyValid'==_0x2f0951||'revisionHistoryLicenseKeyInvalid'==_0x2f0951||'revisionHistoryLicenseKeyExpired'==_0x2f0951||'revisionHistoryLicenseKeyDomainLimit'==_0x2f0951||'revisionHistoryLicenseKeyNotAllowed'==_0x2f0951||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f0951||'revisionHistoryLicenseKeyTrialLimit'==_0x2f0951||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2f0951||'revisionHistoryLicenseKeyUsageLimit'==_0x2f0951){delete _0x457fe3[_0x14a5d1],_0x156804=_0x2f0951,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x156804&&_0x457fe3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x156804&&_0x457fe3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x156804&&_0x457fe3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x156804&&_0x457fe3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x156804&&_0x457fe3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x156804&&_0x457fe3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x156804&&_0x457fe3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x156804&&_0x457fe3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x61f3b=this['repository']['getRevision'](0x0),_0xa73f23=await this['getRevisionDocumentData'](_0x61f3b),_0x26264f=await this['getRevisionRootsAttributes'](_0x61f3b);this['_replaceEditorDataWithRevisionData'](_0xa73f23,_0x26264f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x51995f){this['_source']=_0x51995f;}async['update'](){const _0x3c26eb=await this['_source']['getLatestVersion']();if(_0x3c26eb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x36571e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3c26eb});_0x36571e['authors']=_0x36571e['authorsIds']['map'](_0x15fd7e=>this['editor']['plugins']['get']('Users')['getUser'](_0x15fd7e)),this['currentRevision']['_update'](_0x36571e);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x265650={},_0x1a7fc7=null){const _0x20477b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a7fc7>this['currentRevision']['toVersion']&&(_0x1a7fc7=null),null===_0x1a7fc7&&(_0x1a7fc7=await this['_source']['getLatestVersion']());const _0x1967bf=this['_getFromVersion'](_0x1a7fc7),_0x43c256=this['buildRevisionData']({'from':_0x1967bf,'to':_0x1a7fc7});if(this['currentRevision']['toVersion']<_0x1a7fc7){const _0x249f59=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a7fc7,'to':_0x1a7fc7});_0x249f59['authors']=[],_0x249f59['authorsIds']=[],_0x249f59['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x249f59,!0x0),delete _0x249f59['authors'],_0x20477b['push'](_0x249f59);}_0x265650['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x265650['name']=_0x265650['name']||null,_0x265650['id']=_0x265650['id']||_0x2e1580(),_0x265650={..._0x265650,..._0x43c256};const _0x592af3=this['addRevisionData'](_0x265650);_0x20477b['push'](_0x265650);const _0x20819d=this['repository']['getIndex'](_0x592af3);if(0x0!==_0x20819d){const _0x430504=this['repository']['getRevision'](_0x20819d-0x1);if(_0x430504['fromVersion']!==_0x1a7fc7){const _0x3ab935=this['_revisionDataBuilder']['getData'](_0x1a7fc7,_0x430504['toVersion']),_0x2f62ac={'id':_0x430504['id'],'diffData':_0x3ab935['diffData'],'authorsIds':_0x3ab935['authorsIds'],'authors':_0x3ab935['authorsIds']['map'](_0x1482c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x1482c4)),'fromVersion':_0x1a7fc7};_0x430504===this['currentRevision']&&(_0x2f62ac['createdAt']=new Date(_0x265650['createdAt']['getTime']()+0xa)),_0x430504['_update'](_0x2f62ac,!0x0),delete _0x2f62ac['authors'],_0x20477b['push'](_0x2f62ac);}}if(this['adapter']){for(const _0x2ad41a of _0x20477b)this['_bufferUpdate'](_0x2ad41a['id'],_0x2ad41a,!0x0);this['sendBufferedUpdates']();}return _0x592af3;}['addRevisionData'](_0x54fae7){const _0x229882=this['repository']['createRevision'](_0x54fae7);return this['adapter']&&_0x229882['on']('_update',(_0x5c9169,_0x2cdbc0,_0x125d7c)=>{_0x125d7c||(this['_bufferUpdate'](_0x2cdbc0['id'],_0x2cdbc0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x229882,this['_findInsertionIndex'](_0x229882)),_0x229882;}async['getRevisionDocumentData'](_0x546d41){await this['_loadRevisionData'](_0x546d41);const _0xd4d7b4={};for(const _0x44176d in _0x546d41['diffData']){if(_0x546d41['diffData'][_0x44176d]['attachChange']&&!_0x546d41['diffData'][_0x44176d]['attachChange']['isAttached'])continue;const _0xd147f4=this['_removeRevisionMarkers'](JSON['parse'](_0x546d41['diffData'][_0x44176d]['insertions'])),_0x437ca8=this['editor']['editing']['view']['document'],_0x2d750b=new _0x3f8608(_0x437ca8,_0xd147f4['map'](_0x2fa868=>V(_0x2fa868,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xd4d7b4[_0x44176d]=this['editor']['data']['processor']['toData'](_0x2d750b),this['editor']['data']['processor']['useFillerType']('default');}return _0xd4d7b4;}async['getRevisionRootsAttributes'](_0x1165e3){await this['_loadRevisionData'](_0x1165e3);const _0x3298b4={};for(const _0x5bb31e in _0x1165e3['diffData'])_0x1165e3['diffData'][_0x5bb31e]['attachChange']&&!_0x1165e3['diffData'][_0x5bb31e]['attachChange']['isAttached']||(_0x3298b4[_0x5bb31e]=_0x1165e3['diffData'][_0x5bb31e]['attributesAfter']||{});return _0x3298b4;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5544ac=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11b9f9=0x0;_0x11b9f9<_0x5544ac['length'];_0x11b9f9++){const _0x1967be=_0x5544ac[_0x11b9f9];let _0x15ec94=!0x1;for(const _0x3dfeeb of Object['keys'](_0x1967be))void 0x0===_0x1967be[_0x3dfeeb]?delete _0x1967be[_0x3dfeeb]:'id'!==_0x3dfeeb&&(_0x15ec94=!0x0);_0x15ec94||(_0x5544ac[_0x11b9f9]=null);}if(_0x5544ac=_0x5544ac['filter'](_0x31d2d1=>null!==_0x31d2d1),!_0x5544ac['length'])return;for(let _0x3ce09c=0x0;_0x3ce09c<_0x5544ac['length'];_0x3ce09c++){const _0x3a1d0d=_0x5544ac[_0x3ce09c];void 0x0!==_0x3a1d0d['fromVersion']&&void 0x0===_0x3a1d0d['toVersion']&&(_0x3a1d0d['toVersion']=this['repository']['getRevision'](_0x3a1d0d['id'])['toVersion']),void 0x0!==_0x3a1d0d['toVersion']&&void 0x0===_0x3a1d0d['fromVersion']&&(_0x3a1d0d['fromVersion']=this['repository']['getRevision'](_0x3a1d0d['id'])['fromVersion']);}const _0x430144=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5544ac,_0x430144)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x569a01=>{if(_0x569a01){for(const _0x11dd12 of _0x569a01)this['setRevisionData']({'id':_0x11dd12['id'],'createdAt':_0x11dd12['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x48df48,_0x1435b3){let _0x51e86e=this['editor']['config']['get']('initialData'),_0x189128=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51e86e){_0x51e86e={};for(const _0x48fff0 of this['editor']['model']['document']['getRootNames']())_0x51e86e[_0x48fff0]='';}if('string'==typeof _0x51e86e&&(_0x51e86e={'main':_0x51e86e}),void 0x0===_0x189128){_0x189128={};for(const _0x226ce8 of this['editor']['model']['document']['getRootNames']())_0x189128[_0x226ce8]={};}let _0x1dcdd8=!0x1;const _0x29d6ab=Object['keys'](_0x51e86e),_0x57cb14=Object['keys'](_0x48df48);for(const _0x190f3a of _0x29d6ab){if(_0x51e86e[_0x190f3a]!==_0x48df48[_0x190f3a]&&''!==_0x51e86e[_0x190f3a]['trim']()){_0x1dcdd8=!0x0;break;}if(!_0x3ac5c2(_0x189128[_0x190f3a],_0x1435b3[_0x190f3a])&&Object['keys'](_0x189128[_0x190f3a])['length']>0x0){_0x1dcdd8=!0x0;break;}}_0x1dcdd8||(_0x1dcdd8=_0x57cb14['some'](_0xec6ded=>!this['editor']['model']['document']['getRoot'](_0xec6ded))),_0x1dcdd8&&_0x2d3c2f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51e86e,'editorRootsAttributes':_0x189128,'revisionData':_0x48df48,'revisionRootsAttributes':_0x1435b3}),this['editor']['config']['set']('initialData',_0x48df48),this['editor']['config']['set']('rootsAttributes',_0x1435b3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3c13e2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3c13e2['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5bc5a7){const _0x15a4c0=this['repository']['getRevisions']();_0x15a4c0['reverse']();let _0x242873=0x0;for(;_0x242873<_0x15a4c0['length'];){const _0x31f4b1=_0x15a4c0[_0x242873];if(_0x31f4b1===this['currentRevision']){_0x242873++;continue;}if(_0x31f4b1['id']===this['_initialRevisionId'])break;const _0x46029f=_0x5bc5a7['toVersion']-_0x31f4b1['toVersion']||_0x5bc5a7['fromVersion']-_0x31f4b1['fromVersion'];if(_0x46029f>0x0)break;if(_0x46029f<0x0)_0x242873++;else{if(!_0x5bc5a7['creator']&&_0x31f4b1['creator'])break;if(_0x31f4b1['creator']||!_0x5bc5a7['creator']){if(_0x5bc5a7['createdAt']>_0x31f4b1['createdAt'])break;_0x242873++;}else _0x242873++;}}return _0x242873;}['setRevisionData'](_0x46335c){const _0x8b67ae=this['repository']['getRevision'](_0x46335c['id']);if(_0x46335c['createdAt']&&(_0x46335c['createdAt']=new Date(_0x46335c['createdAt'])),_0x46335c['authorsIds']){const _0x3f3baa=this['editor']['plugins']['get']('Users');_0x46335c['authors']=_0x46335c['authorsIds']['map'](_0x108873=>_0x3f3baa['getUser'](_0x108873));}_0x8b67ae['_update'](_0x46335c,!0x0);}['buildRevisionData']({revision:_0x2a1da8=null,from:_0xb692eb=null,to:_0x2ee3b9=null}){_0xb692eb=null!==_0xb692eb?_0xb692eb:_0x2a1da8['fromVersion'],_0x2ee3b9=null!==_0x2ee3b9?_0x2ee3b9:_0x2a1da8['toVersion'];const _0x4ff245=this['_revisionDataBuilder']['getData'](_0xb692eb,_0x2ee3b9),_0x5e5927={'diffData':_0x4ff245['diffData'],'authorsIds':_0x4ff245['authorsIds'],'fromVersion':_0xb692eb,'toVersion':_0x2ee3b9};if(!_0x2a1da8||_0x2ee3b9!==_0x2a1da8['toVersion']){const _0x5d8433=_0x2ee3b9-0x1,_0x309a0d=this['_source']['history']['getOperation'](_0x5d8433);_0x5e5927['createdAt']=_0x309a0d&&_0x309a0d['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb692eb===this['_loadedStateData']['fromVersion']){for(const _0x3051d2 of this['_loadedStateData']['authors'])_0x5e5927['authorsIds']['includes'](_0x3051d2['id'])||_0x5e5927['authorsIds']['push'](_0x3051d2['id']);}return _0x5e5927;}['_loadRevisionData'](_0x598e42){if(!_0x598e42||_0x598e42['diffData'])return Promise['resolve']();{const _0x2fe563=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2fe563,'revisionId':_0x598e42['id']})['then'](_0x73a557=>{_0x598e42['diffData']=_0x73a557['diffData'];});}}['_bufferUpdate'](_0x4f39ce,_0x4527fc,_0x304f67){if(this['_bufferedUpdates']['has'](_0x4f39ce)){const _0x574c93=this['_bufferedUpdates']['get'](_0x4f39ce);_0x4527fc=_0x304f67?{..._0x574c93,..._0x4527fc}:{..._0x4527fc,..._0x574c93};}this['_bufferedUpdates']['set'](_0x4f39ce,_0x4527fc);}['_getFromVersion'](_0x4be892){const _0x39d975=this['repository']['getRevisions']();_0x39d975['reverse'](),_0x39d975['shift']();const _0x4a39e4=_0x39d975['find'](_0x4efa20=>_0x4efa20['toVersion']<=_0x4be892)['toVersion'];return _0x4a39e4<this['_startingVersion']?this['_startingVersion']:_0x4a39e4;}['_createInitialRevision'](_0x1c3ee5){const _0x1125fb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1125fb)this['_initialRevisionId']=_0x1125fb['id'];else{const _0x34629f=!this['editor']['model']['document']['roots']['find'](_0x7b7bff=>this['editor']['model']['hasContent'](_0x7b7bff)),_0x3b3fbb=this['editor']['plugins']['get']('Users')['me']['id'],_0x221efb=R(this['editor']['locale'],_0x34629f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1c3ee5,'to':_0x1c3ee5,'id':this['_initialRevisionId'],'name':_0x221efb,'creatorId':_0x3b3fbb});}}['_createCurrentRevision'](_0x50c8b8){const _0x1f8886=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f8886),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x50c8b8,'to':_0x50c8b8,'id':_0x1f8886,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3d99dd,from:_0x34c1d8,to:_0x501538,creatorId:_0x3f7eab,id:_0x4ce324}){const _0x1a62a3=this['buildRevisionData']({'from':_0x34c1d8,'to':_0x501538});_0x1a62a3['name']=_0x3d99dd,_0x1a62a3['creatorId']=_0x3f7eab,_0x1a62a3['id']=_0x4ce324;const _0x190e6b=this['addRevisionData'](_0x1a62a3);return this['adapter']&&this['_bufferUpdate'](_0x1a62a3['id'],_0x1a62a3,!0x0),_0x190e6b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4e9a42){return(_0x4e9a42=_0x4e9a42['filter'](_0x322039=>!_0x322039['name']||'revision-start'!==_0x322039['name']&&'revision-end'!==_0x322039['name']))['forEach'](_0x11b95c=>{'string'!=typeof _0x11b95c&&(_0x11b95c['children']=this['_removeRevisionMarkers'](_0x11b95c['children']),_0x11b95c['attributes']=_0x11b95c['attributes']['filter'](_0x38e41c=>!_0x38e41c[0x0]['startsWith']('data-revision-')));}),_0x4e9a42;}}function V(_0x3acb67,_0x2f40e9){const _0x778449=_0x2f40e9['editing']['view']['document'];if('string'==typeof _0x3acb67)return new _0x444cdc(_0x778449,_0x3acb67);{const _0x3fcc51=_0x3acb67['children']['map'](_0x514f99=>V(_0x514f99,_0x2f40e9));return new(C[_0x3acb67['type']]||_0x413445)(_0x778449,_0x3acb67['name'],_0x3acb67['attributes'],_0x3fcc51);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2590e9){this['editor']=_0x2590e9,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'](_0x79a5bd){this['source']=_0x79a5bd;const _0x52856b=new Map(),_0x592eff=new Map(),_0x25b0ee=this['editor']['model']['document']['roots']['map'](_0x3d217d=>_0x3d217d['rootName']);for(const _0x3dcd99 of _0x25b0ee){const _0x992b37=this['editor']['model']['document']['getRoot'](_0x3dcd99),_0x51c4cb=F(_0x992b37);_0x52856b['set'](_0x3dcd99,_0x51c4cb),_0x592eff['set'](_0x3dcd99,Object['fromEntries'](_0x992b37['getAttributes']()));}const _0x2ff177=Array['from'](this['editor']['model']['markers'])['map'](_0x13ead8=>[_0x13ead8['name'],_0x13ead8['getRange']()]),_0xe0dce6=this['source']['version'];this['_saveMetaData'](_0xe0dce6,_0x52856b,_0x2ff177,_0x592eff),this['_startingRevisionId']=this['_revisionId'];const _0x1181d6=new Map(),_0x36d22c=new Map();for(const _0x5cb18e of _0x25b0ee){const _0x40b3f0=B(_0x5cb18e);_0x1181d6['set'](_0x5cb18e,_0x40b3f0),_0x36d22c['set'](_0x5cb18e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1181d6,[],_0x36d22c);}['getData'](_0x1fc500,_0x55c621){if(this['_lastFrom']===_0x1fc500&&this['_lastTo']<=_0x55c621)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x55c621,!0x0);else{if(!this['_savedMetaData']['has'](_0x1fc500)){const _0x45e325=this['_getPreviousFrom'](_0x1fc500);this['_calculateMetaData'](_0x45e325,_0x1fc500,!0x1);}this['_calculateMetaData'](_0x1fc500,_0x55c621,!0x0);}return this['_lastFrom']=_0x1fc500,this['_lastTo']=_0x55c621,this['_getState']();}['loadState'](_0x3802f2){this['_reset'](),this['_lastFrom']=_0x3802f2['fromVersion'],this['_lastTo']=_0x3802f2['toVersion'];for(const _0x3787d8 in _0x3802f2['diffData']){const _0x5e6ddb=_0x3802f2['diffData'][_0x3787d8]['attachChange'],_0x7e67e=_0xc730b6(_0x3802f2['diffData'][_0x3787d8]['attributesBefore'])||{},_0x207a9d=this['_makeModelFromViewString'](_0x3802f2['diffData'][_0x3787d8]['deletions']);_0x207a9d['rootName']=_0x3787d8,_0x207a9d['_isAttached']=!_0x5e6ddb||!_0x5e6ddb['isAttached'],_0x207a9d['isAttached']=()=>_0x207a9d['_isAttached'],this['_baseRoots']['set'](_0x3787d8,_0x207a9d),this['_baseRootsAttributes']['set'](_0x3787d8,_0x7e67e),_0x5e6ddb&&this['_touchedRoots']['set'](_0x3787d8,_0x5e6ddb);const _0x516b23=this['_makeIdsRoot'](_0x207a9d);this['_baseIdsRoots']['set'](_0x3787d8,_0x516b23);for(const [_0x3c51a5,_0x430faf]of _0x207a9d['markers']){if(!_0x3c51a5['startsWith']('revision:'))continue;const _0x470a63=_0x3c51a5['split'](':')[0x2];for(const _0x495833 of _0x430faf['getWalker']({'singleCharacters':!0x0})){const _0x806ff8=this['_getVidAttributeName'](_0x495833),_0x134d5f='elementEnd'==_0x495833['type']?_0x495833['previousPosition']['path']['slice'](0x0,-0x1):_0x495833['previousPosition']['path'],_0x52fd00=_0x516b23['getNodeByPath'](_0x134d5f)['getAttribute'](_0x806ff8);this['_touched']['set'](_0x52fd00,{'userId':_0x470a63});}}}this['_startingRevisionId']=this['_revisionId'];const _0x241396=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ee500=>!this['_touched']['has'](_0x3ee500));let _0x41df28=0x0;const _0x4c4a3a=new Map();for(const _0x3b8c0b in _0x3802f2['diffData']){const _0x1df0c1=_0x3802f2['diffData'][_0x3b8c0b]['attachChange'],_0x47212b=_0xc730b6(_0x3802f2['diffData'][_0x3b8c0b]['attributesAfter'])||{},_0x4993b7=this['_makeModelFromViewString'](_0x3802f2['diffData'][_0x3b8c0b]['insertions']);_0x4993b7['rootName']=_0x3b8c0b,_0x4993b7['_isAttached']=!_0x1df0c1||_0x1df0c1['isAttached'],_0x4993b7['isAttached']=()=>_0x4993b7['_isAttached'],this['_diffRoots']['set'](_0x3b8c0b,_0x4993b7),this['_diffRootsAttributes']['set'](_0x3b8c0b,_0x47212b);const _0x51a6c5=this['_makeIdsRoot'](_0x4993b7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3b8c0b,_0x51a6c5),_0x4c4a3a['set'](_0x3b8c0b,_0x4993b7['isAttached']()?_0x47212b:{});for(const [_0x3ab170,_0x4c9f5f]of _0x4993b7['markers']){if(!_0x3ab170['startsWith']('revision:'))continue;const _0x492630=_0x3ab170['split'](':')[0x2];for(const _0x15793d of _0x4c9f5f['getWalker']({'singleCharacters':!0x0})){const _0x1f9f2f=this['_getVidAttributeName'](_0x15793d),_0x550b00=this['_revisionId']++,_0x1c7b28='elementEnd'==_0x15793d['type']?_0x15793d['previousPosition']['path']['slice'](0x0,-0x1):_0x15793d['previousPosition']['path'];_0x51a6c5['getNodeByPath'](_0x1c7b28)['_setAttribute'](_0x1f9f2f,_0x550b00),this['_touched']['set'](_0x550b00,{'userId':_0x492630});}}for(const _0x4d797c of this['editor']['model']['createRangeIn'](_0x4993b7)['getWalker']({'singleCharacters':!0x0})){const _0x1d91a4=this['_getVidAttributeName'](_0x4d797c),_0xa8e0c1='elementEnd'==_0x4d797c['type']?_0x4d797c['previousPosition']['path']['slice'](0x0,-0x1):_0x4d797c['previousPosition']['path'],_0x1d7714=_0x51a6c5['getNodeByPath'](_0xa8e0c1);_0x1d7714['getAttribute'](_0x1d91a4)>0x0||_0x1d7714['_setAttribute'](_0x1d91a4,_0x241396[_0x41df28++]);}for(const [_0x24a309,_0x595a89]of _0x4993b7['markers'])_0x24a309['startsWith']('revision:')||this['_markers']['set'](_0x24a309,_0x595a89);}const _0x97a006=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x97a006),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x97a006,0x1));const _0x33b2f5=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x33b2f5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33b2f5,0x1));const _0xf43d18=Array['from'](this['_diffRoots'])['map'](([_0x3db44a,_0x248875])=>[_0x3db44a,F(_0x248875)]);this['_saveMetaData'](this['_lastTo'],_0xf43d18,this['_markers'],_0x4c4a3a);}['_makeModelFromViewString'](_0x586ae0){const _0x5e353b=JSON['parse'](_0x586ae0),_0x48f291=this['editor']['editing']['view']['document'],_0x398b20=new _0x3f8608(_0x48f291,_0x5e353b['map'](_0x5a898c=>V(_0x5a898c,this['editor'])));return this['editor']['data']['toModel'](_0x398b20);}['_saveMetaData'](_0x2ab028,_0x2b3284,_0x40d262,_0x46c398){const _0x7e7685=new Map(_0x2b3284),_0x223ec1=new Map(_0xc730b6(_0x46c398)),_0x4440d9=new Map();for(const [_0x558829,_0x1aab6c]of _0x40d262)_0x4440d9['set'](_0x558829,{'start':_0x1aab6c['start']['clone'](),'end':_0x1aab6c['end']['clone'](),'rootName':_0x1aab6c['root']['rootName']});this['_savedMetaData']['set'](_0x2ab028,{'roots':_0x7e7685,'markers':_0x4440d9,'rootsAttributes':_0x223ec1});}['_removeMetaData'](_0x30197d){this['_savedMetaData']['delete'](_0x30197d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x50d35e,_0x15a632=null){let _0x56d837=null;_0x50d35e['is']('documentFragment')||(_0x56d837=new ft(_0x50d35e['name'],{'vid_start':null===_0x15a632?this['_revisionId']++:_0x15a632++}));const _0x433838=[];for(const _0x4d78d1 of _0x50d35e['getChildren']())if(_0x4d78d1['is']('element')){_0x433838['push'](this['_makeIdsRoot'](_0x4d78d1,_0x15a632));const _0xc04c49=_0x433838[_0x433838['length']-0x1];null!==_0x15a632&&(_0x15a632=_0xc04c49['is']('element','$text')?_0xc04c49['getAttribute']('vid')+0x1:_0xc04c49['getAttribute']('vid_end')+0x1);}else{for(let _0x14ad69=0x0;_0x14ad69<_0x4d78d1['offsetSize'];_0x14ad69++)_0x433838['push'](new ft('$text',{'vid':null===_0x15a632?this['_revisionId']++:_0x15a632++}));}if(_0x50d35e['is']('documentFragment')){const _0x44a445=B(_0x50d35e['rootName']);return _0x44a445['_insertChild'](0x0,_0x433838),_0x44a445;}return _0x56d837['_setAttribute']('vid_end',null===_0x15a632?this['_revisionId']++:_0x15a632++),_0x56d837['_insertChild'](0x0,_0x433838),_0x56d837;}['_calculateMetaData'](_0x20771f,_0x235887,_0x1929a2){this['_reset']();const {roots:_0x5a55b0,markers:_0x2848f8,rootsAttributes:_0x57b410}=this['_savedMetaData']['get'](_0x20771f);this['_baseRoots']=new Map(_0x5a55b0),this['_baseRootsAttributes']=new Map(_0xc730b6(_0x57b410));for(const [_0xc6cc01,_0x1ccc20]of this['_baseRoots'])if('$graveyard'!==_0xc6cc01&&(this['_diffRoots']['set'](_0xc6cc01,F(_0x1ccc20)),this['_diffRootsAttributes']=new Map(_0xc730b6(_0x57b410)),_0x1929a2)){const _0x3df0ab=this['_revisionId'];this['_idsRoots']['set'](_0xc6cc01,this['_makeIdsRoot'](_0x1ccc20)),this['_baseIdsRoots']['set'](_0xc6cc01,this['_makeIdsRoot'](_0x1ccc20,_0x3df0ab));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1929a2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x330674,_0x127533]of _0x2848f8){const _0x5da79d=this['_baseRoots']['get'](_0x127533['rootName']),_0x2ca3f1=this['_diffRoots']['get'](_0x127533['rootName']),_0x5dd3f6=new vt(this['_fixPosition'](_0x127533['start'],_0x5da79d),this['_fixPosition'](_0x127533['end'],_0x5da79d)),_0x1cb4a4=this['_fixRange'](_0x5dd3f6,_0x2ca3f1);_0x5da79d['markers']['set'](_0x330674,_0x5dd3f6),this['_markers']['set'](_0x330674,_0x1cb4a4);}this['_applyOperations'](_0x20771f,_0x235887,_0x1929a2);}['_applyOperations'](_0x58d1c1,_0x3051d1,_0x344417){for(const _0x23816d of this['source']['getOperations'](_0x58d1c1,_0x3051d1))this['_handleOperation'](_0x23816d,_0x344417);for(const _0x469130 of this['_diffRoots']['values']())_0x469130['markers']['clear']();for(const [_0x222d41,_0x37c21b]of this['_markers']){this['_diffRoots']['get'](_0x37c21b['root']['rootName'])['markers']['set'](_0x222d41,_0x37c21b['clone']());}const _0x573b31=new Map(),_0xbbc890=new Map();for(const [_0x32f235,_0x5d91b2]of this['_diffRoots'])_0x573b31['set'](_0x32f235,F(_0x5d91b2)),_0xbbc890['set'](_0x32f235,this['_diffRootsAttributes']['get'](_0x32f235));this['_saveMetaData'](_0x3051d1,_0x573b31,this['_markers'],_0xbbc890);}['_getPreviousFrom'](_0xcfc64b){const _0x2d8bbf=Array['from'](this['_savedMetaData']['keys']());_0x2d8bbf['sort']((_0x4986b5,_0x173abf)=>_0x4986b5-_0x173abf),_0x2d8bbf['reverse']();for(const _0x18dfa9 of _0x2d8bbf)if(_0x18dfa9<_0xcfc64b)return _0x18dfa9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x68713f,_0xf9ed24){const _0x3c976b=Array['from'](_0xf9ed24['markers'])['map'](([_0x26c5d4,_0x5415bc])=>[_0x26c5d4,this['_fixRange'](_0x5415bc,_0x68713f)]);_0x68713f['markers']=new Map(_0x3c976b);}['_transformMarkers'](_0x2badcc){for(const _0x538586 of this['_markers']['values']()){const _0x2dee87=_0x538586['getTransformedByOperation'](_0x2badcc),_0x7dfd17=vt['_createFromRanges'](_0x2dee87);_0x538586['start']=_0x7dfd17['start'],_0x538586['end']=_0x7dfd17['end'];}}['_handleOperation'](_0x1496d9,_0x2bcccf){if('addRoot'!=_0x1496d9['type']&&'detachRoot'!=_0x1496d9['type']){if('insert'==_0x1496d9['type']){const _0x15e8c9=_0x1496d9['position']['root']['rootName'];this['_diffRoots']['has'](_0x15e8c9)||(this['_diffRoots']['set'](_0x15e8c9,B(_0x15e8c9,!0x0)),this['_diffRootsAttributes']['set'](_0x15e8c9,{}),_0x2bcccf&&this['_idsRoots']['set'](_0x15e8c9,B(_0x15e8c9,!0x0)));}else{if('addRootAttribute'==_0x1496d9['type']||'removeRootAttribute'==_0x1496d9['type']||'changeRootAttribute'==_0x1496d9['type'])return void this['_handleRootAttributeOperation'](_0x1496d9);'marker'==_0x1496d9['type']&&this['_handleMarkerOperation'](_0x1496d9);}if('marker'!==_0x1496d9['type']){const _0x2ff6b0=this['_cloneOperation'](_0x1496d9,this['_diffRoots']);_0x2ff6b0['_execute'](),this['_transformMarkers'](_0x2ff6b0);}if(_0x2bcccf)switch(_0x1496d9['type']){case'insert':this['_handleInsertOperation'](_0x1496d9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1496d9);break;case'merge':this['_handleMergeOperation'](_0x1496d9);break;case'split':this['_handleSplitOperation'](_0x1496d9);}}else this['_handleRootOperation'](_0x1496d9,_0x2bcccf);}['_cloneOperation'](_0x29fba3,_0x1c5808){const _0x4e7b22=_0x29fba3['clone']();return _0x4e7b22['_authorId']=_0x29fba3['_authorId'],this['_fixOperation'](_0x4e7b22,_0x1c5808),_0x4e7b22;}['_getBaseVids'](_0x5a6219){return _0x5a6219['map'](_0x478d19=>{const _0x2b671e=this['_getVidAttributeName'](_0x478d19);return Number(_0x478d19['item']['getAttribute'](_0x2b671e));});}['_generateTape'](_0x587d30,_0xd7a100){if(_0x587d30['is']('element','$text'))_0xd7a100['push']({'item':_0x587d30,'type':'text'});else{_0x587d30['is']('element')&&_0xd7a100['push']({'item':_0x587d30,'type':'elementStart'});for(const _0xf76e40 of _0x587d30['getChildren']())this['_generateTape'](_0xf76e40,_0xd7a100);_0x587d30['is']('element')&&_0xd7a100['push']({'item':_0x587d30,'type':'elementEnd'});}return _0xd7a100;}['_getState'](){const _0x2b1c1e=new Map(this['_touched']),_0x1881bb=new Map(_0x2b1c1e),_0x2a2bd5=new Map(),_0x3cdf69={'insertions':{},'deletions':{}},_0x27d8a8={'insertions':{},'deletions':{}},_0x41c2cf=new Map(),_0x419569=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x419569['delete']('$graveyard');for(const _0x37a5da of _0x419569){const _0xf3c89d=this['_diffRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1),_0xade9af=this['_baseRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1);_0xf3c89d['isAttached']()||_0xade9af['isAttached']()?(_0x3cdf69['insertions'][_0x37a5da]=F(_0xf3c89d),_0x3cdf69['deletions'][_0x37a5da]=F(_0xade9af),this['_copyMarkers'](_0x3cdf69['deletions'][_0x37a5da],_0xade9af),this['_copyMarkers'](_0x3cdf69['insertions'][_0x37a5da],_0xf3c89d),_0x27d8a8['insertions'][_0x37a5da]=this['_generateTape'](this['_idsRoots']['get'](_0x37a5da),[]),_0x27d8a8['deletions'][_0x37a5da]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1),[])):_0x419569['delete'](_0x37a5da);}for(const _0x557e0a of _0x419569){const _0x13f118=_0x27d8a8['insertions'][_0x557e0a];for(const _0x4b7c02 of _0x13f118){const _0x3e65ff=this['_getVidAttributeName'](_0x4b7c02),_0xd8f12c=_0x4b7c02['item']['getAttribute'](_0x3e65ff);_0x1881bb['delete'](_0xd8f12c),_0xd8f12c>=this['_startingRevisionId']&&_0x2a2bd5['set'](_0xd8f12c,_0x2b1c1e['get'](_0xd8f12c));}}for(const _0x56cb60 of _0x419569){const _0xa30cf5=_0x27d8a8['insertions'][_0x56cb60],_0x4cae32=this['_getBaseVids'](_0x27d8a8['deletions'][_0x56cb60]);let _0x17a882=0x0;for(const _0x45271d of _0xa30cf5){const _0x5b7e39=this['_getVidAttributeName'](_0x45271d),_0x1d3019=_0x45271d['item']['getAttribute'](_0x5b7e39);if(!_0x2a2bd5['has'](_0x1d3019)&&!_0x41c2cf['has'](_0x1d3019)){if(_0x1881bb['has'](_0x1d3019))_0x17a882++;else{if(_0x1d3019!=_0x4cae32[_0x17a882]){const _0x57d1a6=_0x2b1c1e['get'](_0x1d3019)||_0x2b1c1e['get'](_0x4cae32[_0x17a882]);for(;_0x1d3019!=_0x4cae32[_0x17a882];)_0x1881bb['has'](_0x4cae32[_0x17a882])||(_0x41c2cf['set'](_0x4cae32[_0x17a882],_0x57d1a6),_0x2b1c1e['set'](_0x4cae32[_0x17a882],_0x57d1a6)),_0x17a882++;}_0x17a882++;}}}}for(const _0xb341cf of _0x419569){const _0x1eec7c=_0x27d8a8['insertions'][_0xb341cf];for(const _0x1ad5c7 of _0x1eec7c){const _0x37f23f=this['_getVidAttributeName'](_0x1ad5c7),_0x1151aa=_0x1ad5c7['item']['getAttribute'](_0x37f23f);if(_0x41c2cf['has'](_0x1151aa)){const _0x30f071=_0x41c2cf['get'](_0x1151aa);_0x1881bb['has'](_0x1151aa)||_0x1881bb['set'](_0x1151aa,{..._0x30f071}),_0x2a2bd5['set'](_0x1151aa,{..._0x30f071});}}}for(const _0x4f0e7a of _0x1881bb['keys']())_0x4f0e7a>=this['_startingRevisionId']&&_0x1881bb['delete'](_0x4f0e7a);const _0x120ebf=new Map();for(const _0x40ea19 of _0x419569){let _0x15fff3=_0x27d8a8['insertions'][_0x40ea19];for(const _0x2ab6ca of _0x15fff3)if(_0x2ab6ca['item']['is']('element','tableCell')){const _0x5b5d24=this['_getVidAttributeName'](_0x2ab6ca),_0x533ad1=_0x2ab6ca['item']['getAttribute'](_0x5b5d24);if(_0x2a2bd5['has'](_0x533ad1)){const _0x58eb02=_0x2ab6ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x210531=_0x120ebf['get'](_0x58eb02)||new Set();_0x210531['add'](_0x2a2bd5['get'](_0x533ad1)['userId']),_0x120ebf['set'](_0x58eb02,_0x210531);}}_0x15fff3=_0x27d8a8['deletions'][_0x40ea19];for(const _0x5602a9 of _0x15fff3)if(_0x5602a9['item']['is']('element','tableCell')){const _0x254b6f=this['_getVidAttributeName'](_0x5602a9),_0x4d65e3=_0x5602a9['item']['getAttribute'](_0x254b6f);if(_0x1881bb['has'](_0x4d65e3)){const _0x39918a=_0x5602a9['item']['parent']['parent']['getAttribute']('vid_start'),_0x44501f=_0x120ebf['get'](_0x39918a)||new Set();_0x44501f['add'](_0x1881bb['get'](_0x4d65e3)['userId']),_0x120ebf['set'](_0x39918a,_0x44501f);}}for(const _0x48b2ed of _0x120ebf['keys']())(_0x2a2bd5['has'](_0x48b2ed)||_0x1881bb['has'](_0x48b2ed))&&_0x120ebf['delete'](_0x48b2ed);}for(const _0x15ce42 of _0x419569){const _0x18951d=_0x27d8a8['insertions'][_0x15ce42];let _0x1d406b=null,_0x23005f=null;for(const _0x561d79 of _0x18951d){const _0x4a687c=this['_getVidAttributeName'](_0x561d79),_0x2fa269=_0x561d79['item']['getAttribute'](_0x4a687c),_0x310de=_0x120ebf['get'](_0x2fa269);_0x310de&&'elementStart'==_0x561d79['type']&&(_0x1d406b=Array['from'](_0x310de)[0x0],_0x23005f=_0x561d79['item']['getAttribute']('vid_end')),_0x1d406b&&(_0x1881bb['set'](_0x2fa269,{'userId':_0x1d406b}),_0x2a2bd5['set'](_0x2fa269,{'userId':_0x1d406b})),_0x2fa269==_0x23005f&&(_0x1d406b=null,_0x23005f=null);}}const _0x2dc498={},_0xfccaac=new Set();for(const _0xa61815 of _0x419569){const _0x404b38=_0x3cdf69['deletions'][_0xa61815],_0x1a86c7=_0x3cdf69['insertions'][_0xa61815];for(const {userId:_0x4902da}of this['_touchedMarkers']['values']())null!==_0x4902da&&_0xfccaac['add'](_0x4902da);for(const {userId:_0x3231dd}of this['_touchedRoots']['values']())null!==_0x3231dd&&_0xfccaac['add'](_0x3231dd);this['_markChanges'](_0x1a86c7,_0x27d8a8['insertions'][_0xa61815],_0x2a2bd5,'insertion',_0xfccaac),this['_markChanges'](_0x404b38,_0x27d8a8['deletions'][_0xa61815],_0x1881bb,'deletion',_0xfccaac),_0x2dc498[_0xa61815]={'insertions':this['_prepareViewToSave'](_0x1a86c7),'deletions':this['_prepareViewToSave'](_0x404b38),'attachChange':this['_touchedRoots']['get'](_0xa61815)||null,'attributesBefore':_0xc730b6(this['_baseRootsAttributes']['get'](_0xa61815))||{},'attributesAfter':_0xc730b6(this['_diffRootsAttributes']['get'](_0xa61815))};}return{'diffData':_0x2dc498,'authorsIds':Array['from'](_0xfccaac)};}['_processRootBeforeSave'](_0x224aef){for(const [,_0x17b651]of _0x224aef['markers']){const _0x10bae2=_0x17b651['start']['getAncestors']()['filter'](_0x4fb3d1=>'tableCell'==_0x4fb3d1['name']);for(const _0x3241ed of _0x10bae2)0x1==_0x3241ed['childCount']&&_0x3241ed['getChild'](0x0)['is']('element','paragraph')&&_0x3241ed['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3db0b5){this['_processRootBeforeSave'](_0x3db0b5);const _0x9eaf44=this['editor']['data']['toView'](_0x3db0b5,{}),_0x43fbe7=Array['from'](_0x9eaf44['getChildren']())['map'](_0x227317=>this['_getViewJson'](_0x227317));return JSON['stringify'](_0x43fbe7);}['_getViewJson'](_0x3cf9e5){if(_0x3cf9e5['is']('$text'))return _0x3cf9e5['data'];{const _0x40775c=_0x3cf9e5;return{'type':Object['keys'](C)['find'](_0x14bbde=>_0x3cf9e5 instanceof C[_0x14bbde]),'name':_0x40775c['name'],'attributes':Array['from'](_0x40775c['getAttributes']()),'children':Array['from'](_0x40775c['getChildren']())['map'](_0x453335=>this['_getViewJson'](_0x453335))};}}['_markChanges'](_0xe111b9,_0x5cc636,_0x5513ed,_0x50fe98,_0x1aa705){let _0x49522a=null,_0xc9199c=null,_0x41dd4e=0x0;const _0x58617d=this['editor']['model'];for(let _0x5df2ea=0x0;_0x5df2ea<_0x5cc636['length'];_0x5df2ea++){const _0x491954=this['_getVidAttributeName'](_0x5cc636[_0x5df2ea]),_0x331793=_0x5cc636[_0x5df2ea]['item']['getAttribute'](_0x491954),_0x13cf9b=_0x5513ed['get'](_0x331793),_0x2179f1=_0x5df2ea==_0x5cc636['length']-0x1;(!_0x49522a&&_0x13cf9b&&(_0x49522a=_0x13cf9b,_0xc9199c=_0x5cc636[_0x5df2ea]),_0x49522a&&(!_0x13cf9b||_0x13cf9b['userId']!=_0x49522a['userId']))&&(_0x2b6657(_0x13cf9b,J(_0xc9199c,_0xe111b9,_0x58617d),J(_0x5cc636[_0x5df2ea],_0xe111b9,_0x58617d)),_0x49522a=_0x13cf9b||null,_0xc9199c=_0x13cf9b?_0x5cc636[_0x5df2ea]:null),_0x49522a&&_0x2179f1&&_0x2b6657(_0x13cf9b,J(_0xc9199c,_0xe111b9,_0x58617d),q(_0x5cc636[_0x5df2ea],_0xe111b9,_0x58617d));}function _0x2b6657(_0x8910ae,_0x55afe6,_0x3b7a4b){const _0x2021ab=_0x49522a['userId'],_0x2b3b53='revision:'+_0x50fe98+':'+_0x2021ab+':'+_0x41dd4e++,_0x563fce=_0x58617d['createRange'](_0x55afe6,_0x3b7a4b);_0xe111b9['markers']['set'](_0x2b3b53,_0x563fce),null!==_0x2021ab&&_0x1aa705['add'](_0x2021ab);}}['_getVidAttributeName'](_0x2f450b){switch(_0x2f450b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x52eb76,_0x5d9185){_0x52eb76['baseVersion']=null;for(const _0x19e70f in _0x52eb76){const _0x1ea5f3=_0x52eb76[_0x19e70f];if(_0x1ea5f3 instanceof gt){const _0x13a3ed=_0x5d9185['get'](_0x1ea5f3['root']['rootName']);_0x52eb76[_0x19e70f]=this['_fixPosition'](_0x1ea5f3,_0x13a3ed);}if(_0x1ea5f3 instanceof vt){const _0x2a1a66=_0x5d9185['get'](_0x1ea5f3['root']['rootName']);_0x52eb76[_0x19e70f]=this['_fixRange'](_0x1ea5f3,_0x2a1a66);}'root'===_0x19e70f&&(_0x52eb76['root']=_0x5d9185['get'](_0x52eb76['root']['rootName']));}}['_fixRange'](_0x8df0f5,_0x1e9e3d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x8df0f5['start'],_0x1e9e3d),this['_fixPosition'](_0x8df0f5['end'],_0x1e9e3d));}['_fixPosition'](_0x553b69,_0x3a4a14){return this['editor']['model']['createPositionFromPath'](_0x3a4a14,_0x553b69['path'],_0x553b69['stickiness']);}['_handleInsertOperation'](_0x45360d){const _0x595ed6=this['_idsRoots']['get'](_0x45360d['position']['root']['rootName']),_0x314e8d=this['_fixPosition'](_0x45360d['position'],_0x595ed6),_0x14982c=null===_0x45360d['_authorId']?null:_0x45360d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47f757=_0x314e8d['parent'],_0x55967d=this['_revisionId'],_0x22ef44=[];for(const _0x18eca4 of _0x45360d['nodes'])if(_0x18eca4['is']('element'))_0x22ef44['push'](this['_makeIdsRoot'](_0x18eca4));else{for(let _0x4b2662=0x0;_0x4b2662<_0x18eca4['offsetSize'];_0x4b2662++)_0x22ef44['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x476881=this['_revisionId'];for(let _0x5dd743=_0x55967d;_0x5dd743<_0x476881;_0x5dd743++)this['_touched']['set'](_0x5dd743,{'userId':_0x14982c});_0x47f757['_insertChild'](_0x314e8d['offset'],_0x22ef44);}['_handleMoveOperation'](_0x15a523){(_0x15a523=this['_cloneOperation'](_0x15a523,this['_idsRoots']))['_execute']();const _0x507f19=null===_0x15a523['_authorId']?null:_0x15a523['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x60442c=_0x15a523['getMovedRangeStart'](),_0x11a0de=_0x60442c['parent'],_0x517fee=_0x60442c['offset'];!function _0x1c4a09(_0x56a061,_0x51dba9,_0x279337,_0x9a0e63){for(let _0x3ed0ff=_0x279337;_0x3ed0ff<_0x9a0e63;_0x3ed0ff++){const _0x43a1a4=_0x51dba9['getChild'](_0x3ed0ff);_0x43a1a4['is']('element','$text')?_0x56a061['set'](_0x43a1a4['getAttribute']('vid'),{'userId':_0x507f19}):(_0x56a061['set'](_0x43a1a4['getAttribute']('vid_start'),{'userId':_0x507f19}),_0x1c4a09(_0x56a061,_0x43a1a4,0x0,_0x43a1a4['childCount']),_0x56a061['set'](_0x43a1a4['getAttribute']('vid_end'),{'userId':_0x507f19}));}}(this['_touched'],_0x11a0de,_0x517fee,_0x517fee+_0x15a523['howMany']);}['_handleMergeOperation'](_0x3e9990){const _0x4877d6=null===(_0x3e9990=this['_cloneOperation'](_0x3e9990,this['_idsRoots']))['_authorId']?null:_0x3e9990['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc3ab94=_0x3e9990['targetPosition']['parent'],_0x3dab40=_0x3e9990['sourcePosition']['parent'],_0x58ed01=_0xc3ab94['getAttribute']('vid_end'),_0x53b7d3=_0x3dab40['getAttribute']('vid_start');_0xc3ab94['_setAttribute']('vid_end',_0x3dab40['getAttribute']('vid_end')),_0x3dab40['_setAttribute']('vid_end',_0x58ed01),this['_touched']['set'](_0x53b7d3,{'userId':_0x4877d6}),this['_touched']['set'](_0x58ed01,{'userId':_0x4877d6}),_0x3e9990['_execute']();}['_handleSplitOperation'](_0x2aae4d){const _0xe6845c=null===(_0x2aae4d=this['_cloneOperation'](_0x2aae4d,this['_idsRoots']))['_authorId']?null:_0x2aae4d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x347dca=_0x2aae4d['graveyardPosition'],_0x433771=_0x2aae4d['splitPosition']['parent'];_0x2aae4d['_execute']();const _0x23462e=_0x433771['getAttribute']('vid_end'),_0x340821=_0x2aae4d['insertionPosition']['nodeAfter'];if(_0x347dca){const _0x41171e=_0x340821['getAttribute']('vid_end'),_0x57783f=_0x433771['getAttribute']('vid_end');_0x433771['_setAttribute']('vid_end',_0x41171e),_0x340821['_setAttribute']('vid_end',_0x57783f),this['_touched']['set'](_0x433771['getAttribute']('vid_end'),{'userId':_0xe6845c}),this['_touched']['set'](_0x340821['getAttribute']('vid_start'),{'userId':_0xe6845c});}else{const _0x5d9a68=this['_revisionId']++,_0xb83a19=this['_revisionId']++;_0x433771['_setAttribute']('vid_end',_0x5d9a68),_0x340821['_setAttribute']('vid_start',_0xb83a19),_0x340821['_setAttribute']('vid_end',_0x23462e),this['_touched']['set'](_0x5d9a68,{'userId':_0xe6845c}),this['_touched']['set'](_0xb83a19,{'userId':_0xe6845c});}}['_handleMarkerOperation'](_0x10a08c){if(!_0x10a08c['affectsData'])return;const _0x3aa370=(_0x10a08c=this['_cloneOperation'](_0x10a08c,this['_diffRoots']))['oldRange']?_0x10a08c['oldRange']['root']:null,_0x3fde16=_0x10a08c['newRange']?_0x10a08c['newRange']['root']:null;_0x3aa370&&this['_markers']['delete'](_0x10a08c['name']),_0x3fde16&&this['_markers']['set'](_0x10a08c['name'],_0x10a08c['newRange']['clone']());const _0x377a2e=null===_0x10a08c['_authorId']?null:_0x10a08c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1694ce=_0x10a08c['name'];if(!this['_touchedMarkers']['has'](_0x1694ce))return void this['_touchedMarkers']['set'](_0x1694ce,{'range':_0x10a08c['oldRange'],'userId':_0x377a2e});const _0x52b213=this['_touchedMarkers']['get'](_0x1694ce),_0x54edbe=_0x52b213['range'],_0x295a2f=_0x10a08c['newRange'];null==_0x54edbe&&null==_0x295a2f||_0x54edbe&&_0x295a2f&&_0x54edbe['isEqual'](_0x295a2f)?this['_touchedMarkers']['delete'](_0x10a08c['name']):_0x52b213['userId']=_0x377a2e;}['_handleRootOperation'](_0xba7601,_0x5efaec){this['_diffRoots']['has'](_0xba7601['rootName'])?this['_diffRoots']['get'](_0xba7601['rootName'])['_isAttached']=_0xba7601['isAdd']:(this['_diffRoots']['set'](_0xba7601['rootName'],B(_0xba7601['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xba7601['rootName'],{}),_0x5efaec&&this['_idsRoots']['set'](_0xba7601['rootName'],B(_0xba7601['rootName'],!0x0)));const _0x96403f=null===_0xba7601['_authorId']?null:_0xba7601['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d192d=this['_touchedRoots']['get'](_0xba7601['rootName']);_0x1d192d&&_0x1d192d['userId']===_0x96403f?this['_touchedRoots']['delete'](_0xba7601['rootName']):this['_touchedRoots']['set'](_0xba7601['rootName'],{'userId':_0x96403f,'isAttached':_0xba7601['isAdd']});}['_handleRootAttributeOperation'](_0x176d59){const _0x39b766=this['_diffRootsAttributes']['get'](_0x176d59['root']['rootName']);null===_0x176d59['newValue']?delete _0x39b766[_0x176d59['key']]:_0x39b766[_0x176d59['key']]=_0x176d59['newValue'];}}function F(_0x2627b3){const _0x1576bc=B(_0x2627b3['rootName'],_0x2627b3['isAttached']());for(const _0x57308a of _0x2627b3['getChildren']()){const _0x1690dc=_0x57308a['_clone'](!0x0);_0x1576bc['_appendChild'](_0x1690dc);}return _0x1576bc;}function B(_0x5f5dc7,_0x13456d=!0x0){const _0x2101d5=new mt();return _0x2101d5['rootName']=_0x5f5dc7,_0x2101d5['_isAttached']=_0x13456d,_0x2101d5['isAttached']=()=>_0x2101d5['_isAttached'],_0x2101d5;}function J(_0x3c4686,_0x3b8b41,_0x3d525f){const _0x4ea8b6='elementEnd'==_0x3c4686['type']?_0x3d525f['createPositionAt'](_0x3c4686['item'],'end'):_0x3d525f['createPositionBefore'](_0x3c4686['item']);return _0x3d525f['createPositionFromPath'](_0x3b8b41,_0x4ea8b6['path'],_0x4ea8b6['stickiness']);}function q(_0x186017,_0x5dbe4f,_0x5eee52){const _0x1b362f='elementStart'==_0x186017['type']?_0x5eee52['createPositionAt'](_0x186017['item'],0x0):_0x5eee52['createPositionAfter'](_0x186017['item']);return _0x5eee52['createPositionFromPath'](_0x5dbe4f,_0x1b362f['path'],_0x1b362f['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x250220,_0x85bf82){super(_0x250220),this['focusTracker']=new _0x4174b2(),this['keystrokes']=new _0x3fca35(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x85bf82),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5ec9ce(this);}['render'](){super['render'](),_0x3b7c97({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3673df=_0x3cc31b=>_0x3cc31b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3673df),this['keystrokes']['set']('arrowleft',_0x3673df),this['keystrokes']['set']('arrowup',_0x3673df),this['keystrokes']['set']('arrowdown',_0x3673df);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x590343){this['revisionNameInputView']['fieldView']['element']['value']=_0x590343['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xaf0870){const _0x3935bb=new _0xce7eed(this['locale'],_0x103ec4),_0x3bcdb4=_0x3935bb['fieldView'];_0x3bcdb4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2609b1=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xaf0870&&(_0x2609b1+='\x20('+R(this['locale'],'optional')+')'),(_0x3935bb['label']=_0x2609b1,_0x3bcdb4['on']('input',()=>{this['revisionNameInputValue']=_0x3bcdb4['element']['value']['trim']();}),_0x3935bb);}}class u extends _0x28e165{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xdc388=this['editor'],_0x506100=_0xdc388['plugins']['get']('RevisionTracker');_0xdc388['ui']['componentFactory']['add']('revisionHistory',_0x3972a3=>{const _0x545bba=_0x11dfdd(_0x3972a3),_0x425c80=_0x545bba['panelView']['children'],_0x3e2176=new _0x55746c(_0x3972a3),_0x23e1c7=new _0x22def1(_0x3972a3),_0x3258fb=new te(_0x3972a3),_0x590318=new _0x22def1(_0x3972a3),_0x168acf=new te(_0x3972a3);return _0x545bba['bind']('isEnabled')['to'](_0x506100,'isReady',_0x506100,'isEnabled',_0xdc388,'isReadOnly',(_0x1878ee,_0x30c7a1,_0x2c99cc)=>_0x1878ee&&_0x30c7a1&&!_0x2c99cc),_0x545bba['buttonView']['set']({'icon':_0x22cef4['history'],'label':R(_0x3972a3,'Revision\x20history'),'tooltip':!0x0}),_0x3258fb['set']({'label':R(_0x3972a3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3258fb['bind']('isEnabled')['to'](_0x506100,'isReady',_0x506100,'isEnabled',_0xdc388,'isReadOnly',(_0x32ead1,_0x248f71,_0x2665c3)=>_0x32ead1&&_0x248f71&&!_0x2665c3),_0x3258fb['on']('execute',()=>this['_showDialog']()),_0x168acf['set']({'label':R(_0x3972a3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x168acf['bind']('isEnabled')['to'](_0x506100,'isReady',_0xdc388,'isReadOnly',(_0x1139fd,_0x22b42d)=>_0x1139fd&&!_0x22b42d),_0x168acf['on']('execute',()=>{_0xdc388['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x545bba['isOpen']=!0x1,_0xdc388['editing']['view']['focus']();}),_0x23e1c7['children']['add'](_0x3258fb),_0x590318['children']['add'](_0x168acf),_0x3e2176['role']='menu',_0x3e2176['items']['addMany']([_0x23e1c7,_0x590318]),_0x425c80['add'](_0x3e2176),_0x545bba;}),_0xdc388['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xe45c5c=this['editor'],_0x202c23=_0xe45c5c['locale'],_0x5259ca=new _0x1c53c1(_0x202c23),_0x407813=new _0x5ea68e(_0x202c23);_0x5259ca['buttonView']['set']({'icon':_0x22cef4['history'],'label':R(_0x202c23,'Revision\x20history')});const _0x358f06=new _0x136567(_0x202c23,_0x5259ca),_0x209730=new _0x476170(_0x202c23);_0x209730['set']({'label':R(_0x202c23,'Save\x20current\x20revision')}),_0x209730['delegate']('execute')['to'](_0x5259ca),_0x209730['on']('execute',()=>{this['_showDialog']();}),_0x358f06['children']['add'](_0x209730),_0x407813['items']['add'](_0x358f06);const _0x17a132=new _0x136567(_0x202c23,_0x5259ca),_0x4dc0ee=new _0x476170(_0x202c23);return _0x4dc0ee['set']({'label':R(_0x202c23,'Open\x20revision\x20history')}),_0x4dc0ee['delegate']('execute')['to'](_0x5259ca),_0x4dc0ee['on']('execute',()=>{_0xe45c5c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x17a132['children']['add'](_0x4dc0ee),_0x407813['items']['add'](_0x17a132),_0x5259ca['panelView']['children']['add'](_0x407813),_0x5259ca;}['_showDialog'](){const _0x15da4a=this['editor'],_0x206fd9=_0x15da4a['locale'],_0x4f15c4=_0x15da4a['plugins']['get']('Dialog'),_0x66ca65=_0x15da4a['plugins']['get']('RevisionTracker');function _0x2ccffd(_0x628054){_0x15da4a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x628054['revisionName']?_0x628054['revisionNameInputView']['errorText']=R(_0x206fd9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x15da4a['plugins']['get'](l)['saveRevision']({'name':_0x628054['revisionName']}),_0x4f15c4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2ccffd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f15c4['show']({'id':'revisionSave','title':R(_0x206fd9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x15da4a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f15c4['hide']()},{'label':R(_0x15da4a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x40a5d4){_0x40a5d4['bind']('isEnabled')['to'](_0x66ca65,'isReady',_0x66ca65,'isEnabled',_0x15da4a,'isReadOnly',(_0x5974bc,_0x44130f,_0x129473)=>_0x5974bc&&_0x44130f&&!_0x129473);},'onExecute':()=>_0x2ccffd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x557594=this['editor'],_0x4bc019=_0x557594['locale'];this['_saveRevisionFormView']=new hs(_0x4bc019,_0x557594['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x24a9f5,_0x182cdb){super(_0x24a9f5),this['_model']=_0x182cdb,this['changeId']=_0x182cdb['id'];const _0x544c72=this['bindTemplate'],_0x294835=R(_0x24a9f5,_0x182cdb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x182cdb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x182cdb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x544c72['to']('type',_0x3b3695=>'ck-revision-change__'+_0x3b3695)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x294835}]},{'text':'\x20'+_0x182cdb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4854ea(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x426c9f){super(),this['id']=_0x426c9f['id']||_0x2e1580(),this['author']=_0x426c9f['author'],this['type']=_0x426c9f['type'],this['data']=_0x426c9f['data']||{},this['rootName']=_0x426c9f['rootName'],this['set']('createdAt',_0x426c9f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x524485,_0x5993f7){this['newRevisionId']=_0x524485,this['oldRevisionId']=_0x5993f7,this['changes']=new _0x431dca();}['_setChanges'](_0x4d6fdd){for(const _0x223dde of _0x4d6fdd)this['changes']['add'](_0x223dde);}}const Z={'c':_0x509f44,'a':_0x2af67f,'e':_0x3172e5,'r':_0x409a2d,'u':_0x51e198};class d extends _0x28e165{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c6642,_0x4b1f2e,j];}constructor(_0x14d080){super(_0x14d080),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x1c9011,_0x2ec237,_0x4c2b61)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x55415d=>{for(const _0x213f8a of this['editor']['editing']['view']['document']['roots'])_0x4c2b61?_0x55415d['removeClass']('ck-editor__editable__overlay',_0x213f8a):_0x55415d['addClass']('ck-editor__editable__overlay',_0x213f8a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4d5975=>null!==_0x4d5975),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x18093f,_0x6f1798,_0x408f0a)=>_0x18093f&&_0x408f0a?_0x6f1798['changes']['getIndex'](_0x408f0a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xc1451,_0x6887db)=>_0xc1451?_0x6887db['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4b1f2e);}['init'](){const _0x5a1683=this['editor'],_0xed3c4=new yt(_0x5a1683,{'direction':'backward'}),_0x2d66b1=new yt(_0x5a1683,{'direction':'forward'});(_0x5a1683['commands']['add']('showPreviousChange',_0xed3c4),_0x5a1683['commands']['add']('showNextChange',_0x2d66b1),_0x5a1683['commands']['add']('restoreRevision',new _t(_0x5a1683)),this['on']('change:numberOfChanges',()=>{_0xed3c4['refresh'](),_0x2d66b1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5a1683['enableReadOnlyMode']('revision-viewer'),_0x5a1683['plugins']['has']('WidgetToolbarRepository'))&&_0x5a1683['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5794f4){await this['loadRevisionData'](_0x5794f4);const _0x258d0d={};for(const _0x52763d in _0x5794f4['diffData']){if(_0x5794f4['diffData'][_0x52763d]['attachChange']&&!_0x5794f4['diffData'][_0x52763d]['attachChange']['isAttached'])continue;const _0x4066ee=this['_removeRevisionMarkers'](JSON['parse'](_0x5794f4['diffData'][_0x52763d]['insertions'])),_0x1102df=this['editor']['editing']['view']['document'],_0x3e3758=new _0x3f8608(_0x1102df,_0x4066ee['map'](_0x1b73dc=>this['_getViewObj'](_0x1b73dc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x258d0d[_0x52763d]=this['editor']['data']['processor']['toData'](_0x3e3758),this['editor']['data']['processor']['useFillerType']('default');}return _0x258d0d;}async['getRevisionRootsAttributes'](_0x58bed7){await this['loadRevisionData'](_0x58bed7);const _0x4f4f9f={};for(const _0x23f2dc in _0x58bed7['diffData'])_0x58bed7['diffData'][_0x23f2dc]['attachChange']&&!_0x58bed7['diffData'][_0x23f2dc]['attachChange']['isAttached']||(_0x4f4f9f[_0x23f2dc]=_0x58bed7['diffData'][_0x23f2dc]['attributesAfter']||{});return _0x4f4f9f;}['_removeRevisionMarkers'](_0x54c688){return(_0x54c688=_0x54c688['filter'](_0x222e8d=>!_0x222e8d['name']||'revision-start'!==_0x222e8d['name']&&'revision-end'!==_0x222e8d['name']))['forEach'](_0x470aae=>{'string'!=typeof _0x470aae&&(_0x470aae['children']=this['_removeRevisionMarkers'](_0x470aae['children']),_0x470aae['attributes']=_0x470aae['attributes']['filter'](_0x35dc9d=>!_0x35dc9d[0x0]['startsWith']('data-revision-')));}),_0x54c688;}async['compare'](_0x582323,_0x53673c,_0x343a6f=!0x1){if(!this['isEnabled'])return;const _0x4662c4=this['diff'],_0x3f03e8=this['repository'],_0x32615f='string'==typeof _0x582323?_0x3f03e8['getRevision'](_0x582323):_0x582323,_0x34301f='string'==typeof _0x53673c?_0x3f03e8['getRevision'](_0x53673c):_0x53673c,_0x44bdd7=_0x32615f['id'],_0x3a2fd5=_0x34301f?_0x34301f['id']:null;if(!_0x343a6f&&this['diff']&&this['diff']['newRevisionId']===_0x44bdd7&&this['diff']['oldRevisionId']===_0x3a2fd5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x44bdd7,_0x3a2fd5);const _0x908d38=this['_getRevisionsRange'](_0x32615f,_0x34301f,!0x0)['map'](_0xc249d0=>this['loadRevisionData'](_0xc249d0));return _0x908d38['push'](new Promise(_0x3ee30e=>{setTimeout(_0x3ee30e,0x14);})),Promise['all'](_0x908d38)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3f1726=this['_getDiff'](_0x44bdd7,_0x3a2fd5);for(const _0x575c2d of _0x3f1726['changes'])this['_changeIdToChange']['set'](_0x575c2d['id'],_0x575c2d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x306f78=>{for(const _0x438d71 of this['editor']['model']['document']['getRootNames']())_0x306f78['detachRoot'](_0x438d71);for(const _0x14cb7c of Object['keys'](_0x3f1726['model'])){const _0x215178=_0x306f78['addRoot'](_0x14cb7c);for(const _0x4da5e4 of Object['keys'](_0x3f1726['attributes'][_0x14cb7c]))_0x306f78['setAttribute'](_0x4da5e4,_0x3f1726['attributes'][_0x14cb7c][_0x4da5e4],_0x215178);_0x306f78['insert'](_0x3f1726['model'][_0x14cb7c],_0x215178,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3f1726['changes'])),this['isReady']=!0x0;})['catch'](_0x3ec62f=>{console['error'](_0x3ec62f),this['_cleanUp'](),_0x4662c4&&(this['diff']=_0x4662c4),this['isReady']=!0x0;});}['addRevisionData'](_0x33ff40,_0x3ec298){const _0xdef859=this['repository']['createRevision'](_0x33ff40);return _0xdef859['on']('_update',(_0x58ce3e,_0x4e5332,_0x33adcc)=>_0x3ec298(_0x4e5332,_0x33adcc,_0xdef859)),this['repository']['addRevision'](_0xdef859),_0xdef859;}['loadRevisionData'](_0x56158f){if(!_0x56158f||_0x56158f['diffData'])return Promise['resolve']();{const _0x48c8a6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48c8a6,'revisionId':_0x56158f['id']})['then'](_0x1fcb89=>{_0x56158f['_update']({'diffData':_0x1fcb89['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe135f1=>{for(const _0x45b109 of this['editor']['model']['document']['getRootNames']())_0xe135f1['detachRoot'](_0x45b109);});}['_sortAndFilterDiffChanges'](_0x13c290){const _0x107856=[],_0x22ef8c=new Map();for(const _0x3da5b0 of this['editor']['model']['document']['getRootNames']()){const _0x5627cf=this['editor']['editing']['view']['getDomRoot'](_0x3da5b0);if(!_0x5627cf)continue;const _0x520f2c=_0x5627cf['getClientRects']()['item'](0x0);_0x520f2c&&(_0x107856['push'](_0x3da5b0),_0x22ef8c['set'](_0x3da5b0,_0x520f2c));}return _0x107856['sort']((_0x17b5f9,_0x35ef36)=>{const _0x2e6c4b=_0x22ef8c['get'](_0x17b5f9),_0x90d61=_0x22ef8c['get'](_0x35ef36);return _0x2e6c4b['y']-_0x90d61['y']||_0x2e6c4b['x']-_0x90d61['x'];}),(_0x13c290=_0x13c290['filter'](_0x30818=>_0x107856['includes'](_0x30818['rootName'])))['sort']((_0x3095aa,_0x2856a1)=>_0x107856['indexOf'](_0x3095aa['rootName'])-_0x107856['indexOf'](_0x2856a1['rootName'])),_0x13c290;}['_makeTape'](_0x314f32){const _0x19e170=Array['from'](_0x314f32['markers'])['filter'](([_0x3b571e,_0x597e51])=>_0x3b571e['startsWith']('revision:')&&!_0x597e51['isCollapsed']),_0x2b2611=Array['from'](this['editor']['model']['createRangeIn'](_0x314f32)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19e170['length'])for(const _0x5754fa of _0x2b2611){const [_0x250987,_0x2565ae]=_0x19e170[0x0],[,_0x5b8271,_0x324311]=_0x250987['split'](':');if(_0x2565ae['end']['isEqual'](_0x5754fa['nextPosition'])&&_0x19e170['shift'](),(_0x5754fa['previousPosition']['isEqual'](_0x2565ae['start'])||_0x5754fa['previousPosition']['isAfter'](_0x2565ae['start']))&&('insertion'==_0x5b8271?_0x5754fa['isAdded']={'userId':_0x324311}:'deletion'==_0x5b8271&&(_0x5754fa['isRemoved']={'userId':_0x324311})),0x0==_0x19e170['length'])break;}return _0x2b2611;}['_refreshStartEndIndex'](_0x47dac0){const _0x5ab04d=new Map();for(let _0x23aefa=0x0;_0x23aefa<_0x47dac0['length'];_0x23aefa++)'text'===_0x47dac0[_0x23aefa]['type']?(_0x47dac0[_0x23aefa]['item']['startIndex']=_0x23aefa,_0x47dac0[_0x23aefa]['item']['endIndex']=_0x23aefa):('elementStart'===_0x47dac0[_0x23aefa]['type']?_0x47dac0[_0x23aefa]['item']['startIndex']=_0x23aefa:'elementEnd'===_0x47dac0[_0x23aefa]['type']&&(_0x47dac0[_0x23aefa]['item']['endIndex']=_0x23aefa),_0x5ab04d['set'](_0x47dac0[_0x23aefa]['id'],_0x23aefa));for(const _0xe33ce1 of _0x5ab04d['values']())'elementStart'===_0x47dac0[_0xe33ce1]['type']?_0x47dac0[_0xe33ce1]['item']['endIndex']=_0x5ab04d['get'](_0x47dac0[_0xe33ce1]['pairId']):'elementEnd'===_0x47dac0[_0xe33ce1]['type']&&(_0x47dac0[_0xe33ce1]['item']['startIndex']=_0x5ab04d['get'](_0x47dac0[_0xe33ce1]['pairId']));}['_processTape'](_0x1ff51f){for(let _0x25c65d=0x0;_0x25c65d<_0x1ff51f['length'];_0x25c65d++){if('elementStart'===_0x1ff51f[_0x25c65d]['type'])_0x1ff51f[_0x25c65d]['item']['startIndex']=_0x25c65d;else{if('elementEnd'===_0x1ff51f[_0x25c65d]['type']){_0x1ff51f[_0x25c65d]['item']['endIndex']=_0x25c65d;const _0x208a9e=_0x1ff51f[_0x25c65d]['item']['startIndex'];_0x1ff51f[_0x208a9e]['pairId']=_0x1ff51f[_0x25c65d]['id'],_0x1ff51f[_0x25c65d]['pairId']=_0x1ff51f[_0x208a9e]['id'];}else _0x1ff51f[_0x25c65d]['item']['startIndex']=_0x25c65d,_0x1ff51f[_0x25c65d]['item']['endIndex']=_0x25c65d,_0x1ff51f[_0x25c65d]['pairId']=null;}_0x1ff51f[_0x25c65d]['markersStart']||(_0x1ff51f[_0x25c65d]['markersStart']=[],_0x1ff51f[_0x25c65d]['markersEnd']=[]);}}['_markInsertions'](_0x19969e,_0x493ce7){const _0xa8b4d1=_0x19969e['filter'](_0x1cb56b=>!_0x1cb56b['isAdded']);for(let _0x249f01=0x0;_0x249f01<_0x493ce7['length'];_0x249f01++)_0x493ce7[_0x249f01]['isAdded']&&(_0xa8b4d1[_0x249f01]['isAdded']=_0x493ce7[_0x249f01]['isAdded']);}['_makeModelFromViewString'](_0x462d6d){const _0x14d5a0=JSON['parse'](_0x462d6d),_0x124f5f=this['editor']['editing']['view']['document'],_0x5c8cf4=new _0x3f8608(_0x124f5f,_0x14d5a0['map'](_0x2e4e4d=>this['_getViewObj'](_0x2e4e4d)));return this['editor']['data']['toModel'](_0x5c8cf4);}['_getViewObj'](_0x3f1d7d){const _0x1b4fe5=this['editor']['editing']['view']['document'];if('string'==typeof _0x3f1d7d)return new _0x444cdc(_0x1b4fe5,_0x3f1d7d);{const _0x7accf5=_0x3f1d7d['children']['map'](_0x54d17a=>this['_getViewObj'](_0x54d17a));return new(Z[_0x3f1d7d['type']]||_0x413445)(_0x1b4fe5,_0x3f1d7d['name'],_0x3f1d7d['attributes'],_0x7accf5);}}['_getDiff'](_0x430a5c,_0x55e9d5=null){const _0x53ea2c=this['repository']['getRevision'](_0x430a5c),_0x3863c6=_0x55e9d5?this['repository']['getRevision'](_0x55e9d5):null,_0x1b09a2=this['_getRevisionsRange'](_0x53ea2c,_0x3863c6),_0x51e697=_0x1b09a2[_0x1b09a2['length']-0x1],_0x451adf=new Map(),_0x4c9962={'model':{},'attributes':{},'changes':[]},_0x919535=new Set(),_0x51646a=new Map();for(let _0x4ff0b9=_0x1b09a2['length']-0x1;_0x4ff0b9>=0x0;_0x4ff0b9--){const _0x3ced0b=_0x1b09a2[_0x4ff0b9];for(const _0x2cb57f of Object['keys'](_0x3ced0b['diffData']))if(_0x3ced0b['diffData'][_0x2cb57f]['attachChange']){const _0x23701c=_0x3ced0b['diffData'][_0x2cb57f]['attachChange'];_0x23701c['isAttached']?(_0x919535['add'](_0x2cb57f),_0x51646a['has'](_0x2cb57f)&&_0x51646a['get'](_0x2cb57f)['userId']==_0x23701c['userId']?_0x51646a['delete'](_0x2cb57f):_0x51646a['set'](_0x2cb57f,_0x23701c)):_0x51646a['has'](_0x2cb57f)?(_0x919535['delete'](_0x2cb57f),_0x51646a['delete'](_0x2cb57f)):(_0x919535['add'](_0x2cb57f),_0x51646a['set'](_0x2cb57f,_0x23701c));}else _0x919535['add'](_0x2cb57f);}for(const _0x5d866a of _0x919535){const _0x1ac00e=_0x51646a['has'](_0x5d866a)&&!_0x51646a['get'](_0x5d866a)['isAttached'];let _0x45f0a3=_0x1ac00e?_0x1b09a2['length']-0x1:0x0;const _0x30c4e7=_0x1ac00e?-0x1:0x1;for(;_0x1b09a2[_0x45f0a3];){const _0xec00a=_0x1b09a2[_0x45f0a3];if(_0xec00a['diffData'][_0x5d866a]){const _0x1b79ad=_0x1ac00e?_0xec00a['diffData'][_0x5d866a]['attributesBefore']:_0xec00a['diffData'][_0x5d866a]['attributesAfter'];_0x4c9962['attributes'][_0x5d866a]=_0x1b79ad?_0xc730b6(_0x1b79ad):{};break;}_0x45f0a3+=_0x30c4e7;}}for(const _0x2b6d4d of _0x1b09a2){_0x2b6d4d['model']={};for(const _0x37954c of _0x2b6d4d['authors'])_0x451adf['set'](_0x37954c['id'],_0x37954c);for(const _0x4ec08a of _0x919535){const _0x2fa918=_0x2b6d4d['diffData'][_0x4ec08a]?_0x2b6d4d['diffData'][_0x4ec08a]['insertions']:'[]',_0x4a0870=_0x2b6d4d['diffData'][_0x4ec08a]?_0x2b6d4d['diffData'][_0x4ec08a]['deletions']:'[]';_0x2b6d4d['model'][_0x4ec08a]={'insertions':this['_makeModelFromViewString'](_0x2fa918),'deletions':this['_makeModelFromViewString'](_0x4a0870)};}}for(const _0x5b1421 of _0x919535){let _0xa1e600=null,_0xb77856=0x0;const _0x47c586=new Map(Array['from'](_0x53ea2c['model'][_0x5b1421]['insertions']['markers'])['filter'](([_0x4437f6])=>!_0x4437f6['startsWith']('revision:')));let _0x38d88a=0x0;for(const _0x164079 of _0x1b09a2){const _0xd1d57a=this['_makeTape'](_0x164079['model'][_0x5b1421]['insertions']);_0x164079==_0x53ea2c?(_0xa1e600=_0xd1d57a,_0xb77856=_0xa1e600['length'],_0xa1e600['forEach'](_0x4df2c0=>{_0x4df2c0['id']=_0x38d88a++;}),this['_processTape'](_0xa1e600)):this['_markInsertions'](_0xa1e600,_0xd1d57a);const _0x237e56=_0xa1e600['filter'](_0x36e7aa=>!_0x36e7aa['isAdded'])['map'](_0x2064b8=>_0x2064b8['id']);let _0x261885=0x0;const _0x200e54=this['_makeTape'](_0x164079['model'][_0x5b1421]['deletions']);_0x200e54['forEach'](_0x1750c6=>{_0x1750c6['isRemoved']?_0x1750c6['id']=_0xb77856++:_0x1750c6['id']=_0x237e56[_0x261885++];}),this['_processTape'](_0x200e54),this['_setDistance'](_0xa1e600,'isAdded'),this['_setDistance'](_0x200e54,'isRemoved'),_0x164079==_0x53ea2c&&this['_markMarkers'](_0xa1e600,_0x47c586),_0xa1e600=this['_joinTapes'](_0xa1e600,_0x200e54),this['_refreshStartEndIndex'](_0xa1e600),this['_setDistance'](_0xa1e600,'isRemoved');}_0xa1e600=_0xa1e600['filter'](_0x506de1=>!(_0x506de1['isAdded']&&_0x506de1['isRemoved']));const _0x50c9f4=new Map(_0x51e697['model'][_0x5b1421]['deletions']['markers']),_0xe2b2ce=new Set(_0x47c586['keys']());for(const _0x49a3f of _0x50c9f4['keys']())_0xe2b2ce['delete'](_0x49a3f);this['_markSuggestions'](_0xa1e600,_0xe2b2ce),this['_fixObsoleteTags'](_0xa1e600),_0xa1e600=this['_removeMissingPairs'](_0xa1e600),_0xa1e600=this['_markMismatchedRemovedTags'](_0xa1e600),_0xa1e600=this['_removeUnsupportedChanges'](_0xa1e600);const {root:_0x480e8e,changes:_0x450b53}=this['_makeModelFromTape'](_0xa1e600,_0x451adf,_0x5b1421);_0x4c9962['model'][_0x5b1421]=_0x480e8e;const _0x253b77=_0x51646a['get'](_0x5b1421);if(_0x253b77){const _0x3dd765=_0x451adf['get'](_0x253b77['userId']),_0x11f3fe=new r({'author':_0x3dd765,'type':_0x253b77['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5b1421});_0x450b53['unshift'](_0x11f3fe),_0x4c9962['attributes'][_0x5b1421]['revisionHistoryAttachChange']=_0x11f3fe['id'];}_0x4c9962['changes']=_0x4c9962['changes']['concat'](_0x450b53);}return _0x4c9962;}['_markMarkers'](_0x3f6a76,_0x4e6ea1){for(let _0x3f45a1=0x0;_0x3f45a1<_0x3f6a76['length'];_0x3f45a1++)for(const [_0x368bf4,_0x45e7d0]of _0x4e6ea1)_0x45e7d0['start']['isEqual'](_0x3f6a76[_0x3f45a1]['previousPosition'])&&_0x3f6a76[_0x3f45a1]['markersStart']['push'](_0x368bf4),_0x45e7d0['end']['isEqual'](_0x3f6a76[_0x3f45a1]['nextPosition'])&&_0x3f6a76[_0x3f45a1]['markersEnd']['push'](_0x368bf4);}['_joinTapes'](_0x77dfbe,_0x1a7cc7){let _0x2b33b5=[],_0x305dcf=0x0,_0x50adba=0x0;for(;_0x305dcf<_0x77dfbe['length']||_0x50adba<_0x1a7cc7['length'];){const _0x50344d=_0x77dfbe[_0x305dcf]||{},_0x3e3c38=_0x1a7cc7[_0x50adba]||{};if(_0x50344d['id']==_0x3e3c38['id'])_0x305dcf++,_0x50adba++,_0x2b33b5['push'](_0x50344d);else{if(_0x3e3c38['isRemoved']&&_0x50344d['isAdded']){const {commonTape:_0x4a67d7,iEnd:_0x12ab15,jEnd:_0x59a7f0}=this['_threeWayMerge'](_0x77dfbe,_0x305dcf,_0x1a7cc7,_0x50adba);_0x2b33b5=_0x2b33b5['concat'](_0x4a67d7),_0x305dcf=_0x12ab15,_0x50adba=_0x59a7f0;}else _0x3e3c38['isRemoved']?(_0x50adba++,_0x2b33b5['push'](_0x3e3c38)):(_0x305dcf++,_0x2b33b5['push'](_0x50344d));}}return _0x2b33b5;}['_markSuggestions'](_0x3bf352,_0xe52d7b){const _0x1998ef=[];for(let _0x2648e7=0x0;_0x2648e7<_0x3bf352['length'];_0x2648e7++){for(let _0x16fc50=0x0;_0x16fc50<_0x3bf352[_0x2648e7]['markersStart']['length'];_0x16fc50++){const _0x585004=_0x3bf352[_0x2648e7]['markersStart'][_0x16fc50];if(!_0xe52d7b['has'](_0x585004))continue;const {group:_0x524f08,type:_0x4ba34a,authorId:_0x43d1b7}=_0x191faf(_0x585004);'revision-suggestion'!=_0x524f08||'insertion'!=_0x4ba34a&&'deletion'!=_0x4ba34a||(_0x1998ef['unshift']({'type':_0x4ba34a,'name':_0x585004,'userId':_0x43d1b7}),_0x3bf352[_0x2648e7]['markersStart']['splice'](_0x16fc50,0x1),_0x16fc50--);}_0x3a304e(_0x3bf352[_0x2648e7]);for(let _0x5e8425=0x0;_0x5e8425<_0x3bf352[_0x2648e7]['markersEnd']['length'];_0x5e8425++){const _0x22e30b=_0x3bf352[_0x2648e7]['markersEnd'][_0x5e8425];if(!_0xe52d7b['has'](_0x22e30b))continue;const {group:_0x53a68f,type:_0x239723}=_0x191faf(_0x22e30b);if('revision-suggestion'!=_0x53a68f||'insertion'!=_0x239723&&'deletion'!=_0x239723)continue;_0x3bf352[_0x2648e7]['markersEnd']['splice'](_0x5e8425,0x1),_0x5e8425--;const _0x4b1264=_0x1998ef['findIndex'](_0x362449=>_0x362449['name']==_0x22e30b);_0x4b1264>-0x1&&_0x1998ef['splice'](_0x4b1264,0x1);}}function _0x191faf(_0x10a75d){const _0x2855bb=_0x10a75d['split'](':');return{'group':_0x2855bb[0x0],'type':_0x2855bb[0x1],'subType':_0x2855bb['length']>=0x5?_0x2855bb[0x2]:null,'id':_0x2855bb['length']<0x5?_0x2855bb[0x2]:_0x2855bb[0x3],'authorId':_0x2855bb['length']<0x5?_0x2855bb[0x3]:_0x2855bb[0x4],'markerCount':0x6==_0x2855bb['length']?_0x2855bb[0x5]:null};}function _0x3a304e(_0x103624){for(let _0x54577f=0x0;_0x54577f<_0x1998ef['length'];_0x54577f++){if(_0x103624['isAdded']&&'insertion'==_0x1998ef[_0x54577f]['type'])return _0x103624['isAddSuggestion']=_0x1998ef[_0x54577f],void delete _0x103624['isAdded'];if(!_0x103624['isAdded']&&!_0x103624['isRemoved']&&'deletion'==_0x1998ef[_0x54577f]['type'])return void(_0x103624['isRemoveSuggestion']=_0x1998ef[_0x54577f]);}}}['_setDistance'](_0x524973,_0x339a84){let _0x42aee3=0x0,_0x33c86d=!0x1;const _0x2605ce=new Map();for(const _0x5c39a0 of _0x524973)_0x5c39a0[_0x339a84]?_0x33c86d&&(_0x42aee3++,_0x33c86d=!0x1):(_0x42aee3++,_0x33c86d=!0x0),_0x2605ce['set'](_0x5c39a0['id'],_0x42aee3);for(let _0x54e115=0x0;_0x54e115<_0x524973['length'];_0x54e115++){if('isRemoved'==_0x339a84&&_0x524973[_0x54e115]['isAdded']||'isAdded'==_0x339a84&&_0x524973[_0x54e115]['isRemoved'])continue;if('text'==_0x524973[_0x54e115]['type']){_0x524973[_0x54e115]['distance']=0x0;continue;}const _0x3d38ff=_0x2605ce['get'](_0x524973[_0x54e115]['pairId']),_0x19a9b3=_0x2605ce['get'](_0x524973[_0x54e115]['id']);_0x524973[_0x54e115]['distance']=_0x3d38ff-_0x19a9b3;}}['_getRevisionsRange'](_0x284dfd,_0x4705ac,_0x230222=!0x1){const _0x12bb27=[];let _0x300d8b=this['repository']['getIndex'](_0x284dfd),_0x486779=this['repository']['getIndex'](_0x4705ac);for(-0x1==_0x486779&&(_0x486779=this['repository']['_revisions']['length'],_0x230222=!0x1);_0x300d8b<_0x486779;)_0x12bb27['push'](this['repository']['getRevision'](_0x300d8b)),_0x300d8b++;return _0x230222&&_0x12bb27['push'](this['repository']['getRevision'](_0x300d8b)),_0x12bb27;}['_threeWayMerge'](_0x10178f,_0x1afb4d,_0xd03c1,_0x4c22af){const _0x317305=this['editor']['model']['schema'];let _0x2b003e=_0x1afb4d;for(;_0x10178f[_0x2b003e]&&_0x10178f[_0x2b003e]['isAdded'];)_0x2b003e++;let _0xb105e9=_0x4c22af;for(;_0xd03c1[_0xb105e9]&&_0xd03c1[_0xb105e9]['isRemoved'];)_0xb105e9++;_0x2ce3f7(_0x10178f,_0x1afb4d,_0x2b003e),_0x2ce3f7(_0xd03c1,_0x4c22af,_0xb105e9);const _0x32e60f=_0xd03c1['slice'](_0x4c22af,_0xb105e9)['concat'](_0x10178f['slice'](_0x1afb4d,_0x2b003e));return _0x32e60f['sort']((_0x304658,_0x1c5dde)=>_0x304658['side']!=_0x1c5dde['side']?_0x304658['side']-_0x1c5dde['side']:_0x304658['level']!=_0x1c5dde['level']?_0x304658['level']-_0x1c5dde['level']:_0x304658['distance']!=_0x1c5dde['distance']?_0x1c5dde['distance']-_0x304658['distance']:!!_0x304658['isAdded']!=!!_0x1c5dde['isAdded']?-0x1==_0x304658['side']||0x0==_0x304658['side']?_0x304658['isAdded']?-0x1:0x1:_0x304658['isAdded']?0x1:-0x1:_0x304658['index']-_0x1c5dde['index']),{'commonTape':_0x32e60f,'iEnd':_0x2b003e,'jEnd':_0xb105e9};function _0x2ce3f7(_0x4e7853,_0x50233d,_0x4f3c1b){let _0x18bea1=-0x1,_0x27351d=Number['POSITIVE_INFINITY'],_0x456c0b=!0x0;for(let _0x994fc3=_0x50233d;_0x994fc3<_0x4f3c1b;_0x994fc3++)if(_0x317305['isInline'](_0x4e7853[_0x994fc3]['item'])||(_0x456c0b=!0x1),_0x4e7853[_0x994fc3]['item']['startIndex']<_0x50233d&&(_0x18bea1=_0x994fc3),_0x4e7853[_0x994fc3]['item']['endIndex']>=_0x4f3c1b){_0x27351d=_0x994fc3;break;}_0x456c0b&&(_0x18bea1=_0x4f3c1b-0x1);for(let _0x2266f0=_0x50233d;_0x2266f0<_0x4f3c1b;_0x2266f0++)_0x4e7853[_0x2266f0]['side']=_0x2266f0<=_0x18bea1?-0x1:_0x2266f0<_0x27351d?0x0:0x1,_0x4e7853[_0x2266f0]['index']=_0x2266f0;let _0x5530f4=0x0;for(let _0x5ba8d8=_0x50233d;_0x5ba8d8<=_0x18bea1;_0x5ba8d8++)0x0==_0x4e7853[_0x5ba8d8]['distance']?_0x4e7853[_0x5ba8d8]['level']=_0x5530f4:(_0x5530f4++,_0x4e7853[_0x5ba8d8]['level']=_0x5530f4,_0x5530f4++);for(let _0xdf7126=_0x50233d;_0xdf7126<_0x4f3c1b;_0xdf7126++)0x0==_0x4e7853[_0xdf7126]['side']&&(_0x4e7853[_0xdf7126]['level']=_0x5530f4);_0x5530f4=0x0;for(let _0x25066c=_0x4f3c1b-0x1;_0x25066c>=_0x27351d;_0x25066c--)0x0==_0x4e7853[_0x25066c]['distance']?_0x4e7853[_0x25066c]['level']=_0x5530f4:(_0x5530f4--,_0x4e7853[_0x25066c]['level']=_0x5530f4,_0x5530f4--);}}['_fixObsoleteTags'](_0x44bbad){const _0x2a4cc3=new Map(),_0x3fd9d2=this['editor']['model']['schema'];for(let _0x56a1d9=0x1;_0x56a1d9<_0x44bbad['length'];_0x56a1d9++){let _0xc50ee2,_0x81ad04,_0x40663a;const _0x10a239=_0x44bbad[_0x56a1d9],_0x3679e3=_0x44bbad[_0x56a1d9-0x1];if('text'==_0x10a239['type'])continue;if(_0x10a239['type']!=_0x3679e3['type'])continue;if(!_0x3fd9d2['isBlock'](_0x3679e3['item'])||_0x3fd9d2['isLimit'](_0x3679e3['item']))continue;if(!_0x3fd9d2['isBlock'](_0x10a239['item'])||_0x3fd9d2['isLimit'](_0x10a239['item']))continue;if((_0x44bbad[_0x56a1d9]['isAdded']||_0x44bbad[_0x56a1d9]['isAddSuggestion'])&&_0x44bbad[_0x56a1d9-0x1]['isRemoved'])_0xc50ee2=_0x44bbad[_0x56a1d9],_0x81ad04=_0x44bbad[_0x56a1d9-0x1],_0x40663a=_0x56a1d9-0x1;else{if(!_0x44bbad[_0x56a1d9]['isRemoved']||!_0x44bbad[_0x56a1d9-0x1]['isAdded']&&!_0x44bbad[_0x56a1d9-0x1]['isAddSuggestion'])continue;_0xc50ee2=_0x44bbad[_0x56a1d9-0x1],_0x81ad04=_0x44bbad[_0x56a1d9],_0x40663a=_0x56a1d9;}const _0x8dd335=_0xc50ee2['level']==_0x81ad04['level'],_0x18bdbe=Math['abs'](_0xc50ee2['level'])<Math['abs'](_0x81ad04['level'])&&0x0==_0x81ad04['distance'];(_0x8dd335||_0x18bdbe)&&(_0x2a4cc3['set'](_0x81ad04['id'],_0xc50ee2['id']),_0x44bbad['splice'](_0x40663a,0x1),_0x56a1d9--,_0xc50ee2['isAdded']=!0x1);}for(let _0x4e2027=0x0;_0x4e2027<_0x44bbad['length'];_0x4e2027++)_0x2a4cc3['has'](_0x44bbad[_0x4e2027]['pairId'])&&(_0x44bbad[_0x4e2027]['pairId']=_0x2a4cc3['get'](_0x44bbad[_0x4e2027]['pairId']));}['_removeMissingPairs'](_0x4c8942){const _0x4ad5d9=new Set(_0x4c8942['map'](_0x46066b=>_0x46066b['id']));for(let _0x13e948=0x0;_0x13e948<_0x4c8942['length'];_0x13e948++)_0x4ad5d9['has'](_0x4c8942[_0x13e948]['pairId'])||0x0==_0x4c8942[_0x13e948]['distance']||(_0x4c8942[_0x13e948]['isIncorrect']=!0x0);return _0x4c8942['filter'](_0x152824=>!_0x152824['isIncorrect']);}['_markMismatchedRemovedTags'](_0x31add0){const _0x32ad61=new Set();for(let _0x38fa44=0x0;_0x38fa44<_0x31add0['length'];_0x38fa44++){if(_0x32ad61['has'](_0x31add0[_0x38fa44]['id'])&&_0x31add0[_0x38fa44]['isRemoved']&&(_0x31add0[_0x38fa44]['isIncorrect']=!0x0),_0x31add0[_0x38fa44]['isIncorrect'])continue;if(0x0==_0x31add0[_0x38fa44]['distance'])continue;if('elementStart'!=_0x31add0[_0x38fa44]['type'])continue;if(null==_0x31add0[_0x38fa44]['pairId'])continue;let _0x170ada=_0x38fa44+0x1,_0x142327=0x0;for(;_0x31add0[_0x170ada]['id']!=_0x31add0[_0x38fa44]['pairId'];)'elementStart'==_0x31add0[_0x170ada]['type']?_0x142327++:'elementEnd'==_0x31add0[_0x170ada]['type']&&_0x142327--,_0x170ada++;if(0x0!=_0x142327){if(_0x31add0[_0x38fa44]['isRemoved'])_0x31add0[_0x38fa44]['isIncorrect']=!0x0;else{for(;_0x170ada!=_0x38fa44;)_0x31add0[_0x170ada]['isRemoved']&&0x0!=_0x31add0[_0x170ada]['distance']&&(_0x31add0[_0x170ada]['isIncorrect']=!0x0,_0x32ad61['add'](_0x31add0[_0x170ada]['pairId'])),_0x170ada--;}}}return _0x31add0['filter'](_0x13bafe=>!_0x13bafe['isIncorrect']);}['_removeUnsupportedChanges'](_0x421a32){const _0x2647c4=this['editor']['model']['schema'];for(let _0x28eec6=0x0;_0x28eec6<_0x421a32['length'];_0x28eec6++){if(!(_0x421a32[_0x28eec6]['isAdded']||_0x421a32[_0x28eec6]['isAddSuggestion']||_0x421a32[_0x28eec6]['isRemoved']||_0x421a32[_0x28eec6]['isRemoveSuggestion']))continue;if(0x0==_0x421a32[_0x28eec6]['distance'])continue;const _0x4f0d9f=_0x421a32[_0x28eec6]['item'];_0x2647c4['isBlock'](_0x4f0d9f)||_0x2647c4['isLimit'](_0x4f0d9f)||(_0x421a32[_0x28eec6]['isAdded']&&delete _0x421a32[_0x28eec6]['isAdded'],_0x421a32[_0x28eec6]['isAddSuggestion']&&delete _0x421a32[_0x28eec6]['isAddSuggestion'],_0x421a32[_0x28eec6]['isRemoveSuggestion']&&delete _0x421a32[_0x28eec6]['isRemoveSuggestion'],_0x421a32[_0x28eec6]['isRemoved']&&(_0x421a32[_0x28eec6]['isIncorrect']=!0x0));}return _0x421a32['filter'](_0x1c6de6=>!_0x1c6de6['isIncorrect']);}['_makeModelFromTape'](_0x43e66d,_0x4d3af7,_0xe986f9){const _0x108a08=new mt(),_0x4558af=[],_0x1ef49f=new Map(),_0x3e4e89=this['editor']['model'],_0x57f750=_0x3e4e89['schema'],_0x14cb49=[_0x108a08],_0x4efc20={},_0x4c5ea7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xb288ed=null;const _0x2aedb6=[0x0];for(let _0xfcf3be=0x0;_0xfcf3be<_0x43e66d['length'];_0xfcf3be++)if('elementStart'===_0x43e66d[_0xfcf3be]['type']){_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6);const _0x4a7d31=new ft(_0x43e66d[_0xfcf3be]['item']['name'],_0x43e66d[_0xfcf3be]['item']['getAttributes']());_0x14cb49[0x0]['_appendChild'](_0x4a7d31),_0x2aedb6['push'](0x0),_0x14cb49['unshift'](_0x4a7d31),_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6);}else'elementEnd'===_0x43e66d[_0xfcf3be]['type']?(_0x14cb49['shift'](),_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6),_0x2aedb6['pop'](),_0x2aedb6[_0x2aedb6['length']-0x1]++,_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6)):(_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6),_0xb288ed?_0xb288ed['_data']+=_0x43e66d[_0xfcf3be]['item']['data']:_0xb288ed=new wt(_0x43e66d[_0xfcf3be]['item']['data'],_0x43e66d[_0xfcf3be]['item']['getAttributes']()),_0x43e66d[_0xfcf3be+0x1]&&'text'===_0x43e66d[_0xfcf3be+0x1]['type']&&_0x302e05(_0xb288ed,_0x43e66d[_0xfcf3be+0x1]['item'])||(_0x14cb49[0x0]['_appendChild'](_0xb288ed),_0xb288ed=null),_0x2aedb6[_0x2aedb6['length']-0x1]+=_0x43e66d[_0xfcf3be]['item']['offsetSize'],_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6));for(let _0x32ba0d=0x0;_0x32ba0d<_0x43e66d['length'];_0x32ba0d++){const _0xdbbbe1=_0x43e66d[_0x32ba0d]['previousPosition'],_0x5bd6f6=_0x43e66d[_0x32ba0d]['nextPosition'];for(const _0x232d9c of _0x43e66d[_0x32ba0d]['markersStart'])_0x1ef49f['set'](_0x232d9c,{'start':_0xdbbbe1,'end':null});_0xe17d89('isRemoveSuggestion',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isAddSuggestion',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isRemoved',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isAdded',_0x32ba0d,_0xdbbbe1,_0x5bd6f6);for(const _0x4c6537 of _0x43e66d[_0x32ba0d]['markersEnd']){_0x1ef49f['get'](_0x4c6537)['end']=_0x5bd6f6;}}for(const [_0x2516bf,_0x29b371]of _0x1ef49f){const _0x1490c1=this['editor']['model']['createRange'](_0x29b371['start'],_0x29b371['end']);_0x108a08['markers']['set'](_0x2516bf,_0x1490c1);}return _0x4558af['sort']((_0x1e94da,_0x568425)=>{const _0x421327=_0x108a08['markers']['get']('revision:'+_0x1e94da['id']),_0x58bbff=_0x108a08['markers']['get']('revision:'+_0x568425['id']);return _0x421327['start']['isBefore'](_0x58bbff['start'])?-0x1:_0x421327['start']['isAfter'](_0x58bbff['start'])?0x1:_0x421327['end']['isBefore'](_0x58bbff['end'])?-0x1:_0x421327['end']['isAfter'](_0x58bbff['end'])?0x1:'add'===_0x1e94da['type']?-0x1:0x1;}),{'root':_0x108a08,'changes':_0x4558af};function _0xe17d89(_0xa0a690,_0x21d200,_0x329a26,_0x4ad42f){const _0x2f0a02=!!_0x43e66d[_0x21d200][_0xa0a690],_0x1f3785=_0x2f0a02?_0x43e66d[_0x21d200][_0xa0a690]['userId']:null,_0x49cdcb=_0x21d200===_0x43e66d['length']-0x1,_0x14f543=_0x4c5ea7[_0xa0a690][0x0],_0x5009ec=_0x57f750['isObject'](_0x43e66d[_0x21d200]['item']);!_0x4efc20[_0xa0a690]&&_0x2f0a02?_0x4efc20[_0xa0a690]={'start':_0x329a26,'tapeItem':_0x43e66d[_0x21d200],'userId':_0x1f3785,'type':_0xa0a690}:_0x4efc20[_0xa0a690]&&!_0x2f0a02?(_0x4efc20[_0xa0a690]['end']=_0x329a26,_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]=null):_0x4efc20[_0xa0a690]&&_0x2f0a02&&_0x4efc20[_0xa0a690]['userId']!==_0x1f3785&&(_0x4efc20[_0xa0a690]['end']=_0x329a26,_0x14f543&&_0x14f543['userId']===_0x4efc20[_0xa0a690]['userId']||_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]={'start':_0x329a26,'tapeItem':_0x43e66d[_0x21d200],'userId':_0x1f3785,'type':_0xa0a690}),_0x4efc20[_0xa0a690]&&_0x5009ec&&('elementStart'!==_0x43e66d[_0x21d200]['type']||_0x14f543&&_0x14f543['userId']===_0x1f3785||_0x4c5ea7[_0xa0a690]['unshift']({'userId':_0x1f3785,'object':_0x43e66d[_0x21d200]['item'],'change':_0x4efc20[_0xa0a690]}),'elementEnd'===_0x43e66d[_0x21d200]['type']&&_0x14f543&&_0x14f543['object']===_0x43e66d[_0x21d200]['item']&&(_0x4c5ea7[_0xa0a690]['shift'](),_0x4efc20[_0xa0a690]=_0x14f543['change'])),_0x4efc20[_0xa0a690]&&_0x49cdcb&&(_0x4efc20[_0xa0a690]['end']=_0x4ad42f,_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]=null);}function _0x504e13({start:_0x2a9912,end:_0x43635d,tapeItem:_0x6e3ffc,userId:_0x18ded4,type:_0x25946f}){const _0xccd84a=_0x6e3ffc['item'],_0x845f6d=_0x3e4e89['schema']['isBlock'](_0xccd84a)&&!_0x3e4e89['schema']['isLimit'](_0xccd84a),_0xb63056=_0x2a9912['nodeAfter']==_0x43635d['parent']&&_0x43635d['isAtStart'];if(_0x845f6d&&_0xb63056)return;const _0x204528=_0x3e4e89['createRange'](_0x2a9912,_0x43635d),_0x4c17cb=_0x4d3af7['get'](_0x18ded4),_0x332c01=new r({'author':_0x4c17cb,'type':'isAdded'==_0x25946f||'isAddSuggestion'==_0x25946f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x25946f||'isRemoveSuggestion'==_0x25946f},'createdAt':new Date(),'rootName':_0xe986f9});_0x4558af['push'](_0x332c01),_0x108a08['markers']['set']('revision:'+_0x332c01['id'],_0x204528);}function _0x302e05(_0x4ff0cb,_0x38a1ac){const _0x3d7b57=_0x4ff0cb['getAttributes'](),_0x25cbdc=_0x38a1ac['getAttributes']();for(const _0x11a74e of _0x3d7b57){if(_0x11a74e[0x1]!==_0x38a1ac['getAttribute'](_0x11a74e[0x0]))return!0x1;_0x25cbdc['next']();}return _0x25cbdc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x227f61=>{const _0x486100=_0x227f61['markerName']['split'](':')[0x1],_0x352b26=this['_getChangeFromId'](_0x486100);if(!_0x352b26)return null;const _0x1a3158='add'==_0x352b26['type']?'insertion':'deletion',_0x45974b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1a3158];return _0x352b26['data']['isSuggestion']&&_0x45974b['push']('ck-suggestion-marker-'+_0x1a3158+'-new'),this['activeChange']==_0x352b26&&_0x45974b['push']('ck-suggestion-marker--active'),{'classes':_0x45974b,'attributes':{'data-change-id':_0x486100}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x475fb5=>{_0x475fb5['on']('element:pre',(_0x577650,_0x28b648,_0xd934c2)=>{const _0x1986cf=_0x28b648['viewItem']['getChild'](0x0);if(!_0x1986cf||!_0x1986cf['is']('element','code'))return;if(!_0xd934c2['consumable']['consume'](_0x1986cf,{'attributes':['vid_start','vid_end']}))return;const _0x4dc45c=_0x28b648['modelRange']['start']['nodeAfter'];_0xd934c2['writer']['setAttribute']('vid_start',_0x1986cf['getAttribute']('vid_start'),_0x4dc45c),_0xd934c2['writer']['setAttribute']('vid_end',_0x1986cf['getAttribute']('vid_end'),_0x4dc45c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5f474d=>{_0x5f474d['on']('element',(_0x304c53,_0x516cd9,_0x1da379)=>{if(!_0x1da379['consumable']['consume'](_0x516cd9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x516cd9['modelRange']['isCollapsed'])return;const _0x55daf4=_0x516cd9['modelRange']['start']['nodeAfter'];_0x55daf4['hasAttribute']('vid_start')||_0x55daf4['hasAttribute']('vid')||(_0x1da379['writer']['setAttribute']('vid_start',_0x516cd9['viewItem']['getAttribute']('vid_start'),_0x55daf4),_0x1da379['writer']['setAttribute']('vid_end',_0x516cd9['viewItem']['getAttribute']('vid_end'),_0x55daf4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x375076=>_0x375076['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x154326,[,_0x4b0c6f])=>{['vid_start','vid_end','vid']['includes'](_0x4b0c6f)&&(_0x154326['return']=!0x0,_0x154326['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5175d5=>{_0x5175d5['on']('attribute:vid',(_0x37e396,_0x36491e,_0x3e9e8f)=>{if('\x20'!=_0x36491e['item']['data']||_0x36491e['item']['parent']['maxOffset']>0x1)return;if(!_0x3e9e8f['consumable']['consume'](_0x36491e['item'],_0x37e396['name']))return;const _0x3cb3d1=_0x3e9e8f['writer'],_0x2de415=_0x3e9e8f['mapper']['toViewRange'](_0x36491e['range']);_0x3cb3d1['wrap'](_0x2de415,_0x3cb3d1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5b6622){const _0x6e7f6d=_0x5b6622['plugins']['get']('RevisionViewer');return(_0x296fea,_0x4cdbd3,_0x305a04)=>{const _0x4cbbe4=_0x4cdbd3['markerName']['split'](':')[0x1],_0x2b2b45=_0x6e7f6d['_getChangeFromId'](_0x4cbbe4);if(!_0x2b2b45)return null;const _0x1d0599='add'==_0x2b2b45['type']?'split':'merge';if(!_0x305a04['consumable']['test'](_0x4cdbd3['markerRange'],_0x296fea['name']))return;const _0x3cec5d=_0x4cdbd3['markerRange']['getWalker'](),_0x5dccc6=_0x4cdbd3['markerRange']['start'],_0x15a2b9=_0x5b6622['model']['schema'];let _0x1bc3e4=null,_0x162c57=null,_0x4bc6ba=!0x1,_0x3bbdcd=!0x1;for(const _0x46e21c of _0x3cec5d){const _0x468cf2=_0x46e21c['item'];_0x4bc6ba=_0x4bc6ba||_0x15a2b9['isContent'](_0x468cf2);const _0x3fb04b=_0x305a04['mapper']['toViewElement'](_0x468cf2);if(_0x3fb04b&&_0x3fb04b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46e21c['type']&&(_0x15a2b9['isBlock'](_0x468cf2)&&!_0x15a2b9['isLimit'](_0x468cf2)&&(_0x468cf2['nextSibling']||_0x5dccc6['isAtEnd']?_0x1bc3e4&&_0x1bc3e4['parent']==_0x468cf2||(_0x1bc3e4=_0x468cf2,_0x1bb2a9(_0x46e21c['previousPosition']),_0x3bbdcd=!0x0):_0x162c57=_0x162c57||_0x46e21c['previousPosition']));}function _0x1bb2a9(_0x5e9834){const _0x25d011=_0x305a04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d0599}),_0x4b18b3=_0x305a04['mapper']['toViewPosition'](_0x5e9834);_0x2b2b45['data']['isSuggestion']&&_0x305a04['writer']['addClass']('ck-suggestion-marker-'+_0x1d0599+'-new',_0x25d011),_0x6e7f6d['activeChange']==_0x2b2b45&&_0x305a04['writer']['addClass']('ck-suggestion-marker--active',_0x25d011),_0x305a04['writer']['insert'](_0x4b18b3,_0x25d011),_0x305a04['mapper']['bindElementToMarker'](_0x25d011,_0x4cdbd3['markerName']);}_0x4bc6ba||_0x3bbdcd||!_0x162c57||_0x1bb2a9(_0x162c57);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1231e4,_0x8df413,_0x155249)=>{const _0x56f856=_0x155249['mapper']['markerNameToElements'](_0x8df413['markerName']);if(_0x56f856){for(const _0x29b381 of _0x56f856)(_0x29b381['hasClass']('ck-suggestion-marker-split')||_0x29b381['hasClass']('ck-suggestion-marker-merge'))&&(_0x155249['mapper']['unbindElementFromMarkerName'](_0x29b381,_0x8df413['markerName']),_0x155249['writer']['remove'](_0x29b381));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xb03fe0,_0x42bd36,_0x29bffe)=>{const _0x4a1681=_0x42bd36['markerName']['split'](':')[0x1],_0x171c42=this['_getChangeFromId'](_0x4a1681);if(!_0x171c42)return null;const _0x593692='add'==_0x171c42['type']?'split':'merge';if(_0x29bffe['consumable']['test'](_0x42bd36['markerRange'],_0xb03fe0['name']))for(const _0x21d1b3 of _0x42bd36['markerRange']['getItems']()){if(!_0x21d1b3['is']('element','softBreak'))continue;const _0xbabd4c=_0x29bffe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x593692}),_0xd1c490=_0x29bffe['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x21d1b3));_0x171c42['data']['isSuggestion']&&_0x29bffe['writer']['addClass']('ck-suggestion-marker-'+_0x593692+'-new',_0xbabd4c),this['activeChange']==_0x171c42&&_0x29bffe['writer']['addClass']('ck-suggestion-marker--active',_0xbabd4c),_0x29bffe['writer']['insert'](_0xd1c490,_0xbabd4c),_0x29bffe['mapper']['bindElementToMarker'](_0xbabd4c,_0x42bd36['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35fc97=>{for(const _0x365b66 of this['editor']['model']['document']['getRootNames']()){const _0x5a459d=this['editor']['model']['document']['getRoot'](_0x365b66),_0x58b9a2=this['editor']['editing']['view']['document']['getRoot'](_0x365b66);if(_0x58b9a2){const _0x241fd1=_0x5a459d['getAttribute']('revisionHistoryAttachChange');if(_0x35fc97['removeAttribute']('data-change-id',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root-add',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root-remove',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root--active',_0x58b9a2),_0x241fd1){const _0x3fc174=this['_getChangeFromId'](_0x241fd1);if(!_0x3fc174)return null;_0x35fc97['setAttribute']('data-change-id',_0x241fd1,_0x58b9a2),_0x35fc97['addClass']('ck-revision-history-root-'+_0x3fc174['type'],_0x58b9a2),this['activeChange']==_0x3fc174&&_0x35fc97['addClass']('ck-revision-history-root--active',_0x58b9a2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2791c8=>'revision-comment:'+_0x2791c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9fec=>'revision-suggestion:'+_0x2e9fec,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2dd9f2=>({'name':'suggestion:'+_0x2dd9f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1ca997=>{const _0x3ed743=_0x1ca997['markerName']['split'](':')[0x1];return'insertion'!=_0x3ed743&&'deletion'!=_0x3ed743?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3ed743]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x8b3384,_0x3eea26,_0x4ca578)=>{const _0x795aaf=_0x4ca578['mapper']['markerNameToElements'](_0x3eea26['markerName']);if(_0x795aaf){for(const _0x17df2f of _0x795aaf)_0x17df2f['is']('uiElement')&&(_0x4ca578['mapper']['unbindElementFromMarkerName'](_0x17df2f,_0x3eea26['markerName']),_0x4ca578['writer']['remove'](_0x17df2f));}},{'priority':'high'});}['_getChangeFromId'](_0x4efb04){return this['_changeIdToChange']['get'](_0x4efb04);}['_getViewForChange'](_0x3ed2ff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3ed2ff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x150db7,_0xc4316f,_0x1e6a08,_0x130c2d)=>{_0x130c2d&&this['_balloon']['remove'](_0x130c2d),_0x1e6a08&&(this['_balloon']['add']({'view':_0x1e6a08,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1fe178=this['editor']['editing'],_0x4cb9ec=this['_getChangeFromId'](_0x1e6a08['changeId']);let _0x5c42b7;if(_0x4cb9ec['data']['isOnRoot']){const _0xffa171=_0x1fe178['view']['getDomRoot'](_0x4cb9ec['rootName']);_0x5c42b7=Array['from'](_0xffa171['getClientRects']());}else{const _0x49aa9d=this['editor']['model']['markers']['get']('revision:'+_0x1e6a08['changeId']);_0x5c42b7=Array['from'](_0x1fe178['mapper']['markerNameToElements'](_0x49aa9d['name']))['map'](_0x3fe038=>_0x1fe178['view']['domConverter']['mapViewToDom'](_0x3fe038))['map'](_0x406be2=>Array['from'](_0x406be2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5c42b7[0x0];return _0x5c42b7['find'](_0xc6a189=>_0xc6a189['top']-0x3<=this['_activeViewTarget']['y']&&_0xc6a189['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xc6a189['left']-0x3<=this['_activeViewTarget']['x']&&_0xc6a189['right']+0x3>=this['_activeViewTarget']['x'])||_0x5c42b7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x134873,_0x529424,_0x552373,_0x5435c6)=>{this['activeView']=_0x552373?this['_getViewForChange'](_0x552373):null,this['editor']['model']['change'](()=>{const _0x53b95a=this['editor']['editing'];_0x5435c6&&(_0x5435c6['data']['isOnRoot']?_0x53b95a['view']['change'](_0x2aabed=>{_0x2aabed['removeClass']('ck-revision-history-root--active',_0x53b95a['view']['document']['getRoot'](_0x5435c6['rootName']));}):_0x53b95a['reconvertMarker']('revision:'+_0x5435c6['id'])),_0x552373&&(_0x552373['data']['isOnRoot']?_0x53b95a['view']['change'](_0x3599ef=>{_0x3599ef['addClass']('ck-revision-history-root--active',_0x53b95a['view']['document']['getRoot'](_0x552373['rootName']));}):_0x53b95a['reconvertMarker']('revision:'+_0x552373['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x34f690,_0x512df5)=>{if(this['activeChange'])return;const _0x2056cc=this['_findChangeIdFromDomTarget'](_0x512df5['target']),_0x1def36=this['_changeIdToChange']['get'](_0x2056cc);_0x1def36?(this['_activeViewTarget']={'x':_0x512df5['domEvent']['x'],'y':_0x512df5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1def36)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x579ebc,_0x4eb2f2)=>{const _0x129469=this['_findChangeIdFromDomTarget'](_0x4eb2f2['target']),_0x42a5da=this['_changeIdToChange']['get'](_0x129469);_0x42a5da?(this['_activeViewTarget']={'x':_0x4eb2f2['domEvent']['x'],'y':_0x4eb2f2['domEvent']['y']},_0x42a5da===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42a5da):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42ee1b){do{const _0x464176=_0x42ee1b['getAttribute']('data-change-id');if(_0x464176)return _0x464176;_0x42ee1b=_0x42ee1b['parent'];}while(_0x42ee1b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xad2919=>{for(const _0x593a26 of this['editor']['model']['markers'])_0xad2919['removeMarker'](_0x593a26);});}}function tt(_0x5498b8,_0x27af68){return(_0x555634,_0x1e4342,_0xd4f2bf)=>{if(!_0xd4f2bf['consumable']['test'](_0x1e4342['markerRange'],_0x555634['name']))return;const _0x335fdf=_0x1e4342['markerRange']['getWalker'](),_0x4203da=_0x1e4342['markerRange']['start'],_0x11a891=_0x5498b8['model']['schema'];let _0x561f16=null,_0xdd7e1f=null,_0x45b3de=!0x1,_0x5ca52e=!0x1;for(const _0x2f26c6 of _0x335fdf){const _0x4f2563=_0x2f26c6['item'];_0x45b3de=_0x45b3de||_0x11a891['isContent'](_0x4f2563);const _0x29ee34=_0xd4f2bf['mapper']['toViewElement'](_0x4f2563);if(_0x29ee34&&_0x29ee34['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f26c6['type']&&(_0x11a891['isBlock'](_0x4f2563)&&!_0x11a891['isLimit'](_0x4f2563)&&(_0x4f2563['nextSibling']||_0x4203da['isAtEnd']?_0x561f16&&_0x561f16['parent']==_0x4f2563||(_0x561f16=_0x4f2563,_0x112f88(_0x2f26c6['previousPosition']),_0x5ca52e=!0x0):_0xdd7e1f=_0xdd7e1f||_0x2f26c6['previousPosition']));}function _0x112f88(_0x4cd323){const _0x55d16f=_0xd4f2bf['mapper']['toViewPosition'](_0x4cd323),_0x1fe846=_0xd4f2bf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x27af68});_0xd4f2bf['writer']['insert'](_0x55d16f,_0x1fe846),_0xd4f2bf['mapper']['bindElementToMarker'](_0x1fe846,_0x1e4342['markerName']);}_0x45b3de||_0x5ca52e||!_0xdd7e1f||_0x112f88(_0xdd7e1f);};}class _t extends _0x3e232a{constructor(_0x5b4fd3){super(_0x5b4fd3);const _0x3ed3a6=_0x5b4fd3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3ed3a6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3ed3a6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x336294=this['editor'],_0x2e8a43=_0x336294['plugins']['get'](d),_0x30a4ce=_0x2e8a43['isReady']?_0x2e8a43['diff']['newRevisionId']:null;_0x336294['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x30a4ce);}['refresh'](){const {isReady:_0x3f2984,isEnabled:_0x3b060f,repository:_0x3db591,diff:_0x14070a}=this['editor']['plugins']['get'](d),_0x4dab98=_0x14070a&&_0x3db591['getLaterVisibleRevision'](_0x14070a['newRevisionId']);this['isEnabled']=_0x3f2984&&_0x3b060f&&Boolean(_0x4dab98);}}class yt extends _0x3e232a{['_step'];constructor(_0x4b531e,{direction:_0x3e70b7}){super(_0x4b531e);const _0x4b01d8=_0x4b531e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e70b7?0x1:-0x1,this['listenTo'](_0x4b01d8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b01d8,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b01d8,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x7c5bdc=this['editor'],_0x2dcf1f=_0x7c5bdc['plugins']['get'](d),{isNavigationMode:_0x2426eb,currentChangeNumber:_0x46a9cb}=_0x2dcf1f;let _0xfb4b9e;if(_0x2dcf1f['activeChange']=_0x2426eb?_0x2dcf1f['diff']['changes']['get'](_0x46a9cb+this['_step']):_0x2dcf1f['diff']['changes']['first'],_0x2dcf1f['activeChange']['data']['isOnRoot'])_0xfb4b9e=_0x7c5bdc['editing']['view']['getDomRoot'](_0x2dcf1f['activeChange']['rootName']);else{const _0xaab034=_0x7c5bdc['model']['markers']['get']('revision:'+_0x2dcf1f['activeChange']['id']);_0xfb4b9e=_0x4c9762(_0x7c5bdc['editing'],_0xaab034);}_0x203262({'target':_0xfb4b9e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2218d8,currentChangeNumber:_0x54f811,numberOfChanges:_0x48f646,isReady:_0x5ea593,isEnabled:_0x183791}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x183791&&_0x5ea593&&_0x48f646)&&(!_0x2218d8||(0x1===this['_step']?_0x54f811<_0x48f646-0x1:_0x54f811>0x0));}}class li extends ts{constructor(_0x2b1878){super(_0x2b1878);const _0x2e064a=this['bindTemplate'],_0x58ce95=new te(_0x2b1878),_0x13c28a=new te(_0x2b1878);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',(_0x5d563a,_0xf1dd45)=>_0x5d563a&&_0xf1dd45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x24c069,_0x3d837c,_0x5941bc,_0x4552d1)=>{if(!_0x24c069)return R(_0x2b1878,'Loading...');if(!_0x5941bc)return R(_0x2b1878,'No\x20changes');const _0x20985d=R(_0x2b1878,'NUMBER_OF_CHANGES',_0x5941bc);return _0x4552d1?R(_0x2b1878,'X_OF_Y_CHANGES',[_0x3d837c+0x1,_0x5941bc]):_0x20985d;}),_0x58ce95['set']({'label':R(_0x2b1878,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x13c28a['set']({'label':R(_0x2b1878,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x58ce95['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x13c28a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x58ce95['on']('execute',()=>this['fire']('execute','backward')),_0x13c28a['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',_0x2e064a['if']('_isStatusLabelVisible','ck-hidden',_0x35bb40=>!_0x35bb40)]},'children':[{'text':_0x2e064a['to']('isNavigationMode',_0x374454=>_0x374454?R(_0x2b1878,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2b1878,'Total')+':\x20')}]},{'text':_0x2e064a['to']('_statusText')}]},new _0x500304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x58ce95,_0x13c28a]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x28e165{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3e9024=this['editor']['editing']['view'];_0x3e9024['change'](_0x48e659=>{for(const _0x1d5592 of _0x3e9024['document']['roots'])_0x48e659['addClass'](le,_0x1d5592);});}['hide'](){const _0x17d6cb=this['editor']['editing']['view'];_0x17d6cb['change'](_0x37a6a5=>{for(const _0x1c981b of _0x17d6cb['document']['roots'])_0x37a6a5['removeClass'](le,_0x1c981b);});}}class m extends _0x28e165{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x44ce52=this['editor'],_0x32e0fc=_0x44ce52['plugins']['get'](d),_0x257e0d=_0x44ce52['plugins']['get'](ge);_0x44ce52['ui']['componentFactory']['add']('exitToEditing',_0x1a1916=>{const _0x4e065e=new te(_0x1a1916);return _0x4e065e['set']({'label':R(_0x1a1916,'Back\x20to\x20editing'),'icon':_0x22cef4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4e065e,'execute',()=>{_0x44ce52['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4e065e;}),_0x44ce52['ui']['componentFactory']['add']('restoreRevision',_0x334e99=>{const _0x3c8914=new te(_0x334e99);return _0x3c8914['set']({'label':R(_0x334e99,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c8914['bind']('isEnabled')['to'](_0x44ce52['commands']['get']('restoreRevision')),this['listenTo'](_0x3c8914,'execute',()=>_0x44ce52['execute']('restoreRevision')),_0x3c8914;}),_0x44ce52['ui']['componentFactory']['add']('changesNavigation',_0x1be48a=>{const _0x25775e=new li(_0x1be48a),_0x366640=_0x44ce52['commands']['get']('showPreviousChange'),_0x2969c2=_0x44ce52['commands']['get']('showNextChange');return _0x25775e['bind']('isBackwardNavigationEnabled')['to'](_0x366640,'isEnabled'),_0x25775e['bind']('isForwardNavigationEnabled')['to'](_0x2969c2,'isEnabled'),_0x25775e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x32e0fc),this['listenTo'](_0x25775e,'execute',(_0x194d30,_0x53ac6f)=>{_0x44ce52['execute']('forward'===_0x53ac6f?'showNextChange':'showPreviousChange');}),_0x25775e;}),_0x257e0d['show'](),_0x32e0fc['on']('change:isReady',(_0x218ac6,_0x23705c,_0x3fe6bf)=>{_0x3fe6bf?_0x257e0d['hide']():_0x257e0d['show']();});}}class pt extends _0xce7eed{['_resizeObserver']=null;constructor(_0x20ec3d,_0x2a184e){super(_0x20ec3d,_0x2a184e);const _0x96b0d6=this['bindTemplate'];this['set']({'label':R(_0x20ec3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x20ec3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x96b0d6['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x578561=this['fieldView']['element'];this['_tooltipString']=_0x578561['scrollWidth']>_0x578561['clientWidth']&&_0x578561['value']||'';}}class ri extends ts{constructor(_0x29f855,_0x57b14a,_0x577a57){super(_0x29f855);const _0x1ca6aa=new _0x3afdff();_0x1ca6aa['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2ef1ef=['ck','ck-revision-history-sidebar__revision-author'];_0x577a57&&_0x2ef1ef['push']('ck-revision-history-sidebar__revision-author_creator');const _0x437eb3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x29f855,_0x577a57?'Revision\x20creator':'Revision\x20author')},'children':[_0x1ca6aa,_0x57b14a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ef1ef},'children':_0x437eb3});}}function oi(_0x562980,_0x391f84){const _0x534fdd=_0x562980['bindTemplate'],_0x3c58db=_0x562980['locale'],_0x11e6a2=_0x11dfdd(_0x3c58db);_0x11e6a2['panelPosition']='sw';const _0xf3e365=function(_0x53ce73,_0x27cf93){const _0x59f51a=function(_0x36ff34,_0x15f0fa){const _0x1a7328=_0x36ff34['locale'],_0x324848={'Compare\x20against\x20selected':R(_0x1a7328,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1a7328,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1a7328,'Restore\x20this\x20revision')};return _0x15f0fa['map'](_0x2b471b=>{const _0x210dd7=_0x324848[_0x2b471b['name']];return _0x210dd7&&_0x210dd7!==_0x2b471b['name']&&(_0x2b471b['name']=_0x210dd7),_0x2b471b;});}(_0x53ce73,_0x27cf93),_0x467c2c=new _0x431dca();for(const _0x4d0c2d of _0x59f51a){const _0x565a22={'type':'button','model':new _0xbc0d01({'label':_0x4d0c2d['name'],'class':_0x4d0c2d['class'],'withText':!0x0,'role':'menuitem','_action':_0x4d0c2d['action']})};_0x565a22['model']['bind']('isEnabled')['to'](_0x53ce73,'isActionsDropdownOpen',_0x54fee9=>'function'!=typeof _0x4d0c2d['isEnabled']||(!_0x54fee9||_0x4d0c2d['isEnabled'](_0x53ce73))),_0x467c2c['add'](_0x565a22);}return _0x467c2c;}(_0x562980,_0x391f84);return _0x562980['bind']('isActionsDropdownOpen')['to'](_0x11e6a2,'isOpen'),_0x11e6a2['buttonView']['set']({'label':R(_0x3c58db,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x22cef4['threeVerticalDots']}),_0x11e6a2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x534fdd['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x534fdd['to'](_0x4098f0=>_0x4098f0['stopPropagation']())}}),_0x11e6a2['on']('execute',_0x35ce1b=>{_0x562980['isReady']&&'function'==typeof _0x35ce1b['source']['_action']&&_0x35ce1b['source']['_action'](_0x562980);}),to(_0x11e6a2,_0xf3e365,{'role':'menu'}),_0x11e6a2['listenTo'](_0x562980,'change:isActionsDropdownOpen',(_0x260ca5,_0x2eb4ad,_0x807862)=>{if(_0x807862)for(const _0x1eee96 of _0x11e6a2['listView']['items']){const _0x37a9a5=_0x1eee96['children']['first'],_0x4b71e9=_0x391f84['find'](_0x1309cb=>_0x1309cb['action']===_0x37a9a5['_action'])['isVisible'];_0x1eee96['isVisible']=void 0x0===_0x4b71e9||_0x4b71e9(_0x562980);}}),_0x11e6a2;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xe213c6,_0x1dfba2,_0x45b8b9,_0x33d11a){super(_0xe213c6);const _0x413aa2=this['bindTemplate'],_0x254302=function(_0x5d8041,_0x2b4899){const _0x297bc8=Array['from'](_0x2b4899['authors'])['filter'](_0x504979=>_0x504979!=_0x2b4899['creator']);return _0x2b4899['creator']&&_0x297bc8['unshift'](_0x2b4899['creator']),_0x297bc8['map'](_0x10657f=>new ri(_0x5d8041,_0x10657f,_0x10657f==_0x2b4899['creator']));}(_0xe213c6,_0x1dfba2);this['id']=_0x1dfba2['id'],this['_revision']=_0x1dfba2,this['_requireRevisionName']=_0x33d11a,this['bind']('name','createdAt')['to'](_0x1dfba2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1b2e24=>{return _0x4ca39a=_0xe213c6['uiLanguage'],(_0xdc3a75=_0x1b2e24)['toLocaleDateString'](_0x4ca39a,{'month':'long','day':'numeric'})+',\x20'+_0xdc3a75['toLocaleTimeString'](_0x4ca39a,{'hour':'numeric','minute':'numeric'});var _0x4ca39a,_0xdc3a75;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xe213c6,_0x103ec4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x296cf0=>_0x296cf0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4f7eef,_0x362f12)=>_0x4f7eef&&_0x362f12),this['revisionActionsView']=_0x45b8b9&&_0x45b8b9['length']?oi(this,_0x45b8b9):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x413aa2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x413aa2['if']('isEnabled','ck-disabled',_0x332eef=>!_0x332eef),_0x413aa2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x413aa2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x413aa2['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':_0x413aa2['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':_0x254302}]},this['revisionActionsView']],'on':{'click':_0x413aa2['to'](_0xc2d7e3=>{_0xc2d7e3['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xd8dfc9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xd8dfc9,'change',()=>{this['_requireRevisionName']&&!_0xd8dfc9['value']||this['fire']('setName',{'id':this['id'],'name':_0xd8dfc9['value']}),_0xd8dfc9['value']||(_0xd8dfc9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x4bdab6,_0x1d68da){const _0x145547=_0x2e64a2['fromJSDate'](_0x4bdab6)['setLocale'](_0x1d68da),_0x2e0ec2=_0x2e64a2['local'](),_0x282437=_0x2e0ec2['minus']({'days':0x1})['startOf']('day');let _0x6b68de,_0x2c4de9;return _0x145547['hasSame'](_0x2e0ec2,'day')?(_0x6b68de=_0x145547['startOf']('day')['toJSDate'](),_0x2c4de9=_0x145547['toRelativeCalendar']()):_0x145547['hasSame'](_0x282437,'day')?(_0x6b68de=_0x282437['toJSDate'](),_0x2c4de9=_0x145547['toRelativeCalendar']()):_0x145547['hasSame'](_0x2e0ec2,'week')?(_0x6b68de=_0x145547['startOf']('week')['toJSDate'](),_0x2c4de9=_0x145547['weekdayLong']||''):_0x145547['hasSame'](_0x2e0ec2,'year')?(_0x6b68de=_0x145547['startOf']('month')['toJSDate'](),_0x2c4de9=_0x145547['monthLong']||''):(_0x6b68de=_0x145547['startOf']('year')['toJSDate'](),_0x2c4de9=String(_0x145547['year'])),{'startDate':_0x6b68de,'localizedPeriodName':_0x2c4de9};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40f719,_0x25ff94,_0x29aa9c,_0x5a3eba){super(_0x40f719);const _0x23deb3=ci(_0x25ff94,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x25ff94,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x29aa9c,this['_requireRevisionName']=_0x5a3eba,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':_0x23deb3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54d3f8){const _0x5f32f8=new hi(this['locale'],_0x54d3f8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5f32f8);}['removeRevision'](_0x2bedad){const _0x36fa72=this['revisionViews']['find'](_0x3bb2f1=>_0x3bb2f1['id']===_0x2bedad['id']);this['revisionViews']['remove'](_0x36fa72);}}class as extends ts{constructor(_0x13b9ee){super(_0x13b9ee);const _0x2b7e5e=new _0x3afdff();_0x2b7e5e['content']=_0x22cef4['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2b7e5e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x13b9ee,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x17b898,_0x2394bd,_0x3de9d4,_0x5c717a){super(_0x17b898);const _0x59d0f3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2394bd,this['_revisionActions']=_0x3de9d4,this['_requireRevisionName']=_0x5c717a,this['on']('select',(_0x47a399,_0x18916c)=>{this['fire']('revisionSelected',_0x18916c);}),this['on']('setName',(_0x362222,_0x25a675)=>{this['fire']('revisionSetName',_0x25a675);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x17b898),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x59d0f3['if']('isEnabled','ck-disabled',_0x264a53=>!_0x264a53)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xdc6af0 of this['_revisions'])this['_addRevision'](_0xdc6af0);this['_revisions']['on']('add',(_0x10f49e,_0x523c68)=>{this['_addRevision'](_0x523c68);}),this['_revisions']['on']('remove',(_0xa78a5f,_0xf94e6a)=>{this['_removeRevision'](_0xf94e6a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1fde90=>_0x1fde90['revisionViews']['map'](_0x19251c=>_0x19251c))['flat']();}['selectRevision'](_0x369118){for(const _0x5eb48c of this['revisionViews'])_0x369118&&_0x369118['id']===_0x5eb48c['id']?_0x5eb48c['select']():_0x5eb48c['deselect']();}['highlightRevisions'](_0x27279d){for(const _0x57367c of this['revisionViews'])_0x27279d['some'](({id:_0x257ff1})=>_0x257ff1===_0x57367c['id'])?_0x57367c['highlight']():_0x57367c['unhighlight']();}['_addRevision'](_0x2c8762){const _0xb35374=ci(_0x2c8762['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1e6361=this['timePeriodViews']['get'](0x0);_0x1e6361&&_0x1e6361['startDate']['getTime']()===_0xb35374['getTime']()||(_0x1e6361=new ai(this['locale'],_0xb35374,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1e6361)),_0x1e6361['addRevision'](_0x2c8762);}['_removeRevision'](_0x8574cd){const _0x4770f9=ci(_0x8574cd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4770f9)['removeRevision'](_0x8574cd);}['_getTimePeriodViewByStartDate'](_0x574eaf){return this['timePeriodViews']['find'](_0xc54486=>_0xc54486['startDate']['getTime']()===_0x574eaf['getTime']());}}class g extends _0x28e165{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x181083,_0x3256a6){super(_0x3256a6),this['sourceElement']=_0x181083,this['model']['document']['createRoot']();const _0x588856=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x588856);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x81fced,_0x912a40){const _0x4d801a=new this(_0x81fced,_0x912a40);return await _0x4d801a['initPlugins'](),await _0x4d801a['ui']['init'](_0x81fced),await _0x4d801a['data']['init'](_0x4d801a['config']['get']('initialData')||''),_0x4d801a['fire']('ready'),_0x4d801a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x434fd7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196dca){function _0x2abd1e(_0xddff99){return _0xddff99['map'](_0x55c3a7=>String['fromCharCode'](_0x55c3a7))['join']('');}super(_0x196dca),this['result']='end',_0x196dca[_0x2abd1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2abd1e([0x76,0x69,0x65,0x77])][_0x2abd1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2abd1e([0x61,0x75,0x74,0x6f]),_0x196dca[_0x2abd1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2abd1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2abd1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2abd1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2abd1e([0x6f,0x6b])});}}class H extends _0x434fd7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e3279){if(super(_0x4e3279),!this['editor']['config']['get']('revisionHistory'))throw new _0x2d3871('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x355ae2=>this['_showRevisionViewer']({..._0x355ae2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8b3f69=>this['_closeRevisionViewer'](_0x8b3f69)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2851ff=>this['_restoreRevision'](_0x2851ff)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4af6c5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4af6c5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5831af){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5831af);}['getRevision'](_0x4da473){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4da473);}['getRevisions'](_0x271a77){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x271a77||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb06a13=this['editor'],_0x399d1f=_0x53a3aa(_0xb06a13,p),_0x2575bc=_0xb06a13['plugins']['get']('RevisionTracker'),_0x24ad0d=_0xb06a13['plugins']['get']('Users')['users'];return _0x399d1f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399d1f['lazyRoots'],(_0x399d1f['plugins']['push'](k,d,m,class extends _0x434fd7{static get['requires'](){return[d,'Users'];}['init'](){const _0x317e73=this['editor']['plugins']['get']('Users');for(const _0x2311b2 of _0x24ad0d)_0x2311b2['isAnonymous']||_0x317e73['getUser'](_0x2311b2['id'])||_0x317e73['addUser'](_0x2311b2);const _0x28137c=_0x2575bc['repository']['getRevisions']();let _0x3947ae=null;const _0x5dffff=this['editor']['plugins']['get']('RevisionViewer');_0x5dffff['adapter']=_0x2575bc['adapter'],_0x5dffff['bind']('isEnabled')['to'](_0x2575bc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb06a13,'isReadOnly',_0x50a1a6=>!_0x50a1a6);for(const _0x295d20 of _0x28137c){const _0x3f65bf=null===_0x295d20['creator'];if(_0x3f65bf&&_0x295d20['toVersion']===_0x295d20['fromVersion'])continue;const _0x470970=_0x295d20['toJSON']();_0x5dffff['addRevisionData'](_0x470970,(_0x1d480a,_0xd481c1,_0x7b3da2)=>{if(_0x3f65bf){if(_0x3947ae)_0x3947ae['_update'](_0x1d480a,_0xd481c1);else{if(!_0xd481c1){const _0xac54c8=_0x7b3da2['toJSON']();_0xac54c8['id']=_0x4c02ac(),_0x2575bc['saveRevision'](_0xac54c8,_0x7b3da2['toVersion'])['then'](_0x53a1bd=>{_0x3947ae=_0x53a1bd;});}}}else _0x295d20['_update'](_0x1d480a,_0xd481c1);});}}},g),_0x399d1f);}['_enhanceShowRevisionViewerCallback'](){const _0x2989f1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x176415=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xe2f835=this['editor']['plugins']['get']('Autosave');await _0xe2f835['save']();}else await _0x176415['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x506479=this['editor']['plugins']['get']('Dialog');_0x506479['isOpen']&&_0x506479['hide']();}const _0x2b4e9f=this['_getRevisionViewerEditorConfig']();return _0x2989f1(_0x2b4e9f)['then'](_0x2c4c33=>{return(this['_viewerEditor']=_0x2c4c33,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2c4c33;})['catch'](_0x406ee1=>(console['error'](_0x406ee1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1b82dd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1b82dd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x48f8c8=this['editor']['plugins']['get']('Annotations');_0x48f8c8['refreshVisibility'](),_0x48f8c8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x8743fe){const _0x290613=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4eb886=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x130d08=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x130d08,_0x8743fe)['then'](_0x18fa50=>(_0x4eb886['style']['display']='block',_0x290613['style']['display']='none',_0x18fa50));}['_closeRevisionViewer'](_0x1470f3){const _0x24f149=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x24f149['style']['display']='',_0x1470f3['destroy']();}async['_restoreRevision'](_0x12fe80){const _0x1d295d=this['editor'],_0x45e501=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2885d1=_0x1d295d['plugins']['get']('RevisionTracker'),_0x207d7e=_0x45e501['repository']['getRevision'](_0x12fe80);let _0x343b0c,_0x1704ea,_0x5b7cbf;try{_0x343b0c=await _0x45e501['getRevisionData'](_0x207d7e),_0x1704ea=await _0x45e501['getRevisionRootsAttributes'](_0x207d7e);}catch(_0x153179){return void console['error'](_0x153179);}_0x1d295d['model']['change'](_0x5cb962=>{for(const _0x15cb1c of Array['from'](_0x1d295d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5cb962['removeMarker'](_0x15cb1c);}),_0x45e501['isReady']=!0x1,_0x1d295d['model']['enqueueChange'](_0xf53901=>{_0xf53901['setSelection'](null),_0xf53901['removeSelectionAttribute'](_0x1d295d['model']['document']['selection']['getAttributeKeys']());const _0xe65221=Object['keys'](_0x343b0c);for(const _0x4a0a14 of _0x1d295d['model']['document']['roots'])'$graveyard'!=_0x4a0a14['rootName']&&_0x4a0a14['isAttached']()&&!_0xe65221['includes'](_0x4a0a14['rootName'])&&_0xf53901['detachRoot'](_0x4a0a14);for(const _0x5b5438 of _0xe65221){let _0x3002ea=_0x1d295d['model']['document']['getRoot'](_0x5b5438);_0x3002ea&&_0x3002ea['isAttached']()||(_0x3002ea=_0xf53901['addRoot'](_0x5b5438));const _0x2916f5=_0x1704ea[_0x5b5438],_0x570074=Object['keys'](_0x2916f5),_0x16aa5a=_0x343b0c[_0x5b5438];for(const _0x5cc03f of _0x3002ea['getAttributeKeys']())_0x570074['includes'](_0x5cc03f)||_0xf53901['removeAttribute'](_0x5cc03f,_0x3002ea);for(const _0x456975 of _0x570074)_0xf53901['setAttribute'](_0x456975,_0x1704ea[_0x5b5438][_0x456975],_0x3002ea);_0xf53901['remove'](_0xf53901['createRangeIn'](_0x3002ea)),_0xf53901['insert'](_0x1d295d['data']['parse'](_0x16aa5a,_0x3002ea),_0x3002ea,0x0);}});const _0x487b96=R(_0x1d295d['locale'],'Restored');if(_0x207d7e['name'])_0x5b7cbf=-0x1==_0x207d7e['name']['indexOf'](_0x487b96)?_0x487b96+':\x20'+_0x207d7e['name']:_0x207d7e['name'];else _0x5b7cbf=_0x487b96+':\x20'+(_0x207d7e['createdAt']['toLocaleDateString'](_0x1d295d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x207d7e['createdAt']['toLocaleTimeString'](_0x1d295d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2885d1['saveRevision']({'name':_0x5b7cbf}),_0x45e501['isReady']=!0x0,_0x1d295d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x24f2de){super(_0x24f2de),this['_revisionViewer']=_0x24f2de['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4d41a7=this['_revisionsRepository']['_revisions'],_0x97983a=this['_createRevisionActions'](),_0x3f60e0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4d41a7,_0x97983a,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',(_0x4b7dda,_0x30c490)=>{_0x30c490['revisionViews']['on']('add',(_0x4d94b3,_0x22cfc9)=>{_0x22cfc9['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)),_0x3f60e0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x162246=this['_revisionsRepository']['getRevision'](0x0);if(_0x162246){const _0x45be5d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x162246['id']);this['_revisionViewer']['compare'](_0x162246,_0x45be5d);}}['_handleRevisionSelected'](_0x2db091,_0x15926e){const _0x4ba827=this['_revisionsRepository']['getRevision'](_0x15926e['id']),_0x23f823=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4ba827['id']);this['_revisionViewer']['compare'](_0x4ba827,_0x23f823);}['_handleRevisionSetName'](_0x270ec5,_0x32dc4c){this['_revisionsRepository']['getRevision'](_0x32dc4c['id'])['setName'](_0x32dc4c['name']);}['_handleDiffChange'](_0x531167,_0x59c2b7,_0x32c8a9){const _0x45b430=this['_revisionsRepository']['getRevisionsInDiff'](_0x32c8a9);_0x45b430['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x45b430),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x45b430[0x0]));}['_createRevisionActions'](){const _0xc307ff=this['editor'],_0x24af3c=g['availableRevisionActions'],_0x4e69a5=_0xc307ff['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x4e69a5['length'])return _0x4e69a5['map'](_0x493198=>{const _0x5f4d74='string'==typeof _0x493198?Object['assign']({},_0x24af3c[_0x493198]):_0x493198;return _0x5f4d74['action']=_0x5f4d74['action']['bind'](this,_0xc307ff),_0x5f4d74['isVisible']&&(_0x5f4d74['isVisible']=_0x5f4d74['isVisible']['bind'](this,_0xc307ff)),_0x5f4d74;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3e8ea9},_0x49ded4)=>{const _0x1442ea=_0x3e8ea9['get'](d),_0x5547de=_0x1442ea['repository'];let _0x244b2c=_0x1442ea['diff']['newRevisionId'],_0x35f317=_0x49ded4['id'];_0x5547de['getIndex'](_0x244b2c)>_0x5547de['getIndex'](_0x35f317)&&([_0x244b2c,_0x35f317]=[_0x35f317,_0x244b2c]),_0x1442ea['compare'](_0x244b2c,_0x35f317);},'isVisible':({plugins:_0x137a13},_0xe5617b)=>{const _0xef663b=_0x137a13['get'](d);return!(_0xef663b['repository']['getRevisionsInDiff'](_0xef663b['diff'])['length']>0x2)&&!_0xe5617b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x19bec4,{id:_0x2c8598})=>{_0x19bec4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c8598);},'isVisible':({plugins:_0x35b8f2},_0x33960a)=>!!_0x35b8f2['get'](d)['repository']['getLaterVisibleRevision'](_0x33960a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb75b20},{id:_0x13295f,revisionNameView:_0x561624})=>{const _0x4905db=_0xb75b20['get'](d),_0x205c03=_0x4905db['repository']['getEarlierVisibleRevision'](_0x13295f);_0x4905db['compare'](_0x13295f,_0x205c03),_0x561624['focus'](),_0x561624['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x29c5f9,_0x4b3bfe){super(_0x29c5f9),this['_view']=_0x4b3bfe,this['_toolbarConfig']=ht(_0x29c5f9['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x33bdb3){const _0x10eaf9=this['editor'],_0x325008=this['view'],_0x2f3d5d=_0x10eaf9['editing']['view'],_0x560348=_0x325008['editable'],_0x2c541d=_0x2f3d5d['document']['getRoot']();_0x560348['name']=_0x2c541d['rootName'],_0x325008['render']();const _0x41f578=_0x560348['element'];this['setEditableElement'](_0x560348['name'],_0x41f578),_0x325008['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f3d5d['attachDomRoot'](_0x41f578),this['_elementReplacer']['replace'](_0x33bdb3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x15c991=this['view'],_0x2ead0c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2ead0c['detachDomRoot'](_0x15c991['editable']['name']),_0x15c991['destroy']();}['_initToolbar'](){const _0x9fa8f0=this['view'];_0x9fa8f0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x9fa8f0['stickyPanel']['limiterElement']=_0x9fa8f0['element'],_0x9fa8f0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x431237})=>_0x431237),_0x9fa8f0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x9fa8f0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x23058c,_0x30d169,_0x3b1180={}){super(_0x23058c),this['stickyPanel']=new lt(_0x23058c),this['toolbar']=new nt(_0x23058c,{'shouldGroupWhenFull':_0x3b1180['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x23058c,_0x30d169);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1b4b60,_0x34cf5e){super(_0x34cf5e),this['sourceElement']=_0x1b4b60,this['model']['document']['createRoot']();const _0x556a2f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x556a2f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x536162,_0x5678d9){const _0x456ee6=new this(_0x536162,_0x5678d9);return await _0x456ee6['initPlugins'](),await _0x456ee6['ui']['init'](_0x536162),await _0x456ee6['data']['init'](_0x456ee6['config']['get']('initialData')||''),_0x456ee6['fire']('ready'),_0x456ee6;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x28e165{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x598185){function _0x285f37(_0x408506){return _0x408506['map'](_0xac6d87=>String['fromCharCode'](_0xac6d87))['join']('');}super(_0x598185),this['result']='end',_0x598185[_0x285f37([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x285f37([0x76,0x69,0x65,0x77])][_0x285f37([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x285f37([0x61,0x75,0x74,0x6f]),_0x598185[_0x285f37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x285f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x285f37([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x285f37([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x285f37([0x6f,0x6b])});}}class H extends _0x28e165{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x471adb){if(super(_0x471adb),!this['editor']['config']['get']('revisionHistory'))throw new _0x875336('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2ca791=>this['_showRevisionViewer']({..._0x2ca791,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4745ee=>this['_closeRevisionViewer'](_0x4745ee)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37beef=>this['_restoreRevision'](_0x37beef)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x15b768){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x15b768;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3ea50a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3ea50a);}['getRevision'](_0x1d6f48){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d6f48);}['getRevisions'](_0x505360){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x505360||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1c8571=this['editor'],_0x480c8e=_0x16fc5f(_0x1c8571,p),_0x554095=_0x1c8571['plugins']['get']('RevisionTracker'),_0x22592f=_0x1c8571['plugins']['get']('Users')['users'];return _0x480c8e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x480c8e['lazyRoots'],(_0x480c8e['plugins']['push'](k,d,m,class extends _0x28e165{static get['requires'](){return[d,'Users'];}['init'](){const _0x19a127=this['editor']['plugins']['get']('Users');for(const _0x1f35b5 of _0x22592f)_0x1f35b5['isAnonymous']||_0x19a127['getUser'](_0x1f35b5['id'])||_0x19a127['addUser'](_0x1f35b5);const _0x56e06b=_0x554095['repository']['getRevisions']();let _0x4a38df=null;const _0x22ffac=this['editor']['plugins']['get']('RevisionViewer');_0x22ffac['adapter']=_0x554095['adapter'],_0x22ffac['bind']('isEnabled')['to'](_0x554095),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1c8571,'isReadOnly',_0x3db838=>!_0x3db838);for(const _0xc85be5 of _0x56e06b){const _0x23b96d=null===_0xc85be5['creator'];if(_0x23b96d&&_0xc85be5['toVersion']===_0xc85be5['fromVersion'])continue;const _0x51b85c=_0xc85be5['toJSON']();_0x22ffac['addRevisionData'](_0x51b85c,(_0x408ab5,_0x5331fe,_0x37ebb6)=>{if(_0x23b96d){if(_0x4a38df)_0x4a38df['_update'](_0x408ab5,_0x5331fe);else{if(!_0x5331fe){const _0xde2a03=_0x37ebb6['toJSON']();_0xde2a03['id']=_0x2e1580(),_0x554095['saveRevision'](_0xde2a03,_0x37ebb6['toVersion'])['then'](_0x2d63ac=>{_0x4a38df=_0x2d63ac;});}}}else _0xc85be5['_update'](_0x408ab5,_0x5331fe);});}}},g),_0x480c8e);}['_enhanceShowRevisionViewerCallback'](){const _0x29027d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x25fc98=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4b9c83=this['editor']['plugins']['get']('Autosave');await _0x4b9c83['save']();}else await _0x25fc98['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x354384=this['editor']['plugins']['get']('Dialog');_0x354384['isOpen']&&_0x354384['hide']();}const _0x32a2fd=this['_getRevisionViewerEditorConfig']();return _0x29027d(_0x32a2fd)['then'](_0x419a94=>{return(this['_viewerEditor']=_0x419a94,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x419a94;})['catch'](_0x9b6a3f=>(console['error'](_0x9b6a3f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5bd1d6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5bd1d6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x16525b=this['editor']['plugins']['get']('Annotations');_0x16525b['refreshVisibility'](),_0x16525b['refreshPositioning']();}})));}['_showRevisionViewer'](_0xf2527d){const _0x1e4b81=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x12050e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x386a9c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x386a9c,_0xf2527d)['then'](_0x11815b=>(_0x12050e['style']['display']='block',_0x1e4b81['style']['display']='none',_0x11815b));}['_closeRevisionViewer'](_0x5e534e){const _0x1d2421=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1d2421['style']['display']='',_0x5e534e['destroy']();}async['_restoreRevision'](_0x2a223a){const _0x1f0bbf=this['editor'],_0x1440c5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x220303=_0x1f0bbf['plugins']['get']('RevisionTracker'),_0x4c4ae0=_0x1440c5['repository']['getRevision'](_0x2a223a);let _0x50bd81,_0x5dab58,_0x221fc2;try{_0x50bd81=await _0x1440c5['getRevisionData'](_0x4c4ae0),_0x5dab58=await _0x1440c5['getRevisionRootsAttributes'](_0x4c4ae0);}catch(_0x5edc2b){return void console['error'](_0x5edc2b);}_0x1f0bbf['model']['change'](_0x41918b=>{for(const _0x2b85e7 of Array['from'](_0x1f0bbf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x41918b['removeMarker'](_0x2b85e7);}),_0x1440c5['isReady']=!0x1,_0x1f0bbf['model']['enqueueChange'](_0x101241=>{_0x101241['setSelection'](null),_0x101241['removeSelectionAttribute'](_0x1f0bbf['model']['document']['selection']['getAttributeKeys']());const _0x38a0e5=Object['keys'](_0x50bd81);for(const _0x224c1a of _0x1f0bbf['model']['document']['roots'])'$graveyard'!=_0x224c1a['rootName']&&_0x224c1a['isAttached']()&&!_0x38a0e5['includes'](_0x224c1a['rootName'])&&_0x101241['detachRoot'](_0x224c1a);for(const _0x369e7f of _0x38a0e5){let _0x34b33b=_0x1f0bbf['model']['document']['getRoot'](_0x369e7f);_0x34b33b&&_0x34b33b['isAttached']()||(_0x34b33b=_0x101241['addRoot'](_0x369e7f));const _0x1c2b36=_0x5dab58[_0x369e7f],_0x2f7826=Object['keys'](_0x1c2b36),_0x30cad2=_0x50bd81[_0x369e7f];for(const _0x1a8ea2 of _0x34b33b['getAttributeKeys']())_0x2f7826['includes'](_0x1a8ea2)||_0x101241['removeAttribute'](_0x1a8ea2,_0x34b33b);for(const _0x34fb1c of _0x2f7826)_0x101241['setAttribute'](_0x34fb1c,_0x5dab58[_0x369e7f][_0x34fb1c],_0x34b33b);_0x101241['remove'](_0x101241['createRangeIn'](_0x34b33b)),_0x101241['insert'](_0x1f0bbf['data']['parse'](_0x30cad2,_0x34b33b),_0x34b33b,0x0);}});const _0x1e9c09=R(_0x1f0bbf['locale'],'Restored');if(_0x4c4ae0['name'])_0x221fc2=-0x1==_0x4c4ae0['name']['indexOf'](_0x1e9c09)?_0x1e9c09+':\x20'+_0x4c4ae0['name']:_0x4c4ae0['name'];else _0x221fc2=_0x1e9c09+':\x20'+(_0x4c4ae0['createdAt']['toLocaleDateString'](_0x1f0bbf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c4ae0['createdAt']['toLocaleTimeString'](_0x1f0bbf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x220303['saveRevision']({'name':_0x221fc2}),_0x1440c5['isReady']=!0x0,_0x1f0bbf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|