@ckeditor/ckeditor5-revision-history 46.0.1-alpha.6 → 46.0.1-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x1ab161(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1b0873){super(),this['id']=_0x1b0873['id']||_0x4c4d5d(),this['creator']=_0x1b0873['creator']||null,this['authors']=_0x1b0873['authors']||[],this['diffData']=_0x1b0873['diffData']||null,this['toVersion']=_0x1b0873['toVersion']||0x0,this['fromVersion']=_0x1b0873['fromVersion']||0x0,this['set']('name',_0x1b0873['name']||''),this['set']('createdAt',_0x1b0873['createdAt']||new Date()),this['set']('attributes',_0x1b0873['attributes']||{});}['setName'](_0x4d834c){this['_update']({'name':_0x4d834c});}['setAttribute'](_0x3f2702,_0x49dbe4){const _0x35ec1c=_0x137baa(this['attributes']);_0x44c170(_0x35ec1c,_0x3f2702,_0x49dbe4),this['_update']({'attributes':_0x35ec1c});}['removeAttribute'](_0x4e9375){const _0x31c52d=_0x137baa(this['attributes']);_0x6e5799(_0x31c52d,_0x4e9375),this['_update']({'attributes':_0x31c52d});}['_update'](_0x443d04,_0x2ff180=!0x1){let _0x34ab05=!0x1;const _0x2b41be={'id':this['id']},_0xf92caf=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x57b75e of _0xf92caf){const _0x58049e=_0x443d04[_0x57b75e];void 0x0!==_0x58049e&&_0x58049e!==this[_0x57b75e]&&(this[_0x57b75e]=_0x58049e,_0x2b41be[_0x57b75e]=_0x58049e,_0x34ab05=!0x0);}_0x34ab05&&(_0x2b41be['authors']&&(_0x2b41be['authorsIds']=_0x2b41be['authors']['map'](_0x33293e=>_0x33293e['id']),delete _0x2b41be['authors']),this['fire']('_update',_0x2b41be,_0x2ff180));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x544822=>_0x544822['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x47aa5e{['_revisions'];static get['requires'](){return[_0x3337df];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c8d3a){super(_0x1c8d3a),this['_revisions']=new _0x49a21d();}['afterInit'](){!async function(_0xa34ccf){const _0xca324e=_0x5fe81f([0x79,0x32,0x70,0x4f,0x4a,0x73,0x7a,0x5a,0x77,0x51,0x6b,0x57,0x61,0x78,0x67,0x74,0x48,0x72,0x59,0x33,0x44,0x4b,0x38,0x71,0x55,0x54,0x50,0x6f,0x30,0x63,0x75,0x53,0x56,0x6c,0x37,0x4c,0x65,0x34,0x62,0x49,0x31,0x4d,0x39,0x52,0x35,0x6a,0x47,0x6d,0x43,0x42,0x68,0x45,0x41,0x66,0x69,0x64,0x58,0x4e,0x6e,0x76,0x46,0x36]),_0x24df88=0xeb829,_0x44d67b=0x4485a43,_0x4d49dc=0x44f35db^_0x44d67b,_0x32e717=window[_0x5fe81f([0x44,0x61,0x74,0x65])][_0x5fe81f([0x6e,0x6f,0x77])](),_0x247f29=_0xa34ccf[_0x5fe81f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ec317=new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc139=>{_0x247f29[_0x5fe81f([0x6f,0x6e,0x63,0x65])](_0x5fe81f([0x72,0x65,0x61,0x64,0x79]),_0x4dc139);}),_0x1ffa80={[_0x5fe81f([0x6b,0x74,0x79])]:_0x5fe81f([0x45,0x43]),[_0x5fe81f([0x75,0x73,0x65])]:_0x5fe81f([0x73,0x69,0x67]),[_0x5fe81f([0x63,0x72,0x76])]:_0x5fe81f([0x50,0x2d,0x32,0x35,0x36]),[_0x5fe81f([0x78])]:_0x5fe81f([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]),[_0x5fe81f([0x79])]:_0x5fe81f([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]),[_0x5fe81f([0x61,0x6c,0x67])]:_0x5fe81f([0x45,0x53,0x32,0x35,0x36])},_0x17b40c=_0x247f29[_0x5fe81f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5fe81f([0x67,0x65,0x74])](_0x5fe81f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a3927(){let _0x25b0e5,_0x2fd2c3=null,_0x26eb15=null;try{if(_0x17b40c==_0x5fe81f([0x47,0x50,0x4c]))return _0x5fe81f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25b0e5=_0x5d44f9(),!_0x25b0e5)return _0x5fe81f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25b0e5[_0x5fe81f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26eb15=_0x37d59d(_0x25b0e5[_0x5fe81f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25b0e5[_0x5fe81f([0x6a,0x74,0x69])])),await _0x4c5131()?_0x1971cd()?_0x49ec45()?_0x5fe81f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x108899()?(_0x25b0e5[_0x5fe81f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5fe81f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fd2c3=_0x296633(_0x5fe81f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25b0e5[_0x5fe81f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5fe81f([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fd2c3=_0x296633(_0x5fe81f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b0cf1()):_0x5fe81f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5fe81f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5fe81f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5fe81f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49ec45(){const _0x4e0e29=[_0x5fe81f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5fe81f([0x74,0x72,0x69,0x61,0x6c])][_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25b0e5[_0x5fe81f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32e717/0x3e8:0xe10*_0x4d49dc;return _0x25b0e5[_0x5fe81f([0x65,0x78,0x70])]<_0x4e0e29;}function _0x1971cd(){const _0x21dfc0=_0x25b0e5[_0x5fe81f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x21dfc0)return!0x1;if(_0x21dfc0[_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5fe81f([0x2a])))return!0x0;if(_0x21dfc0[_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5fe81f([0x52,0x48])))return!0x0;if(_0x21dfc0[_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5fe81f([0x52,0x52,0x48]))){if(_0x33edcf())return!0x0;if(_0x330a74()||_0x12ae78())return!0x0;}return!0x1;}function _0x108899(){const _0x1abe02=_0x25b0e5[_0x5fe81f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1abe02||0x0==_0x1abe02[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d854e}=new URL(window[_0x5fe81f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1abe02[_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d854e))return!0x0;const _0x5ca4b9=_0x3d854e[_0x5fe81f([0x73,0x70,0x6c,0x69,0x74])](_0x5fe81f([0x2e]));return _0x1abe02[_0x5fe81f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c1845=>_0x2c1845[_0x5fe81f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5fe81f([0x2a])))[_0x5fe81f([0x6d,0x61,0x70])](_0x1dc548=>_0x1dc548[_0x5fe81f([0x73,0x70,0x6c,0x69,0x74])](_0x5fe81f([0x2e])))[_0x5fe81f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x75eea5=>_0x75eea5[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ca4b9[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5fe81f([0x6d,0x61,0x70])](_0x272419=>Array(_0x5ca4b9[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x272419[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5fe81f([0x66,0x69,0x6c,0x6c])](_0x272419[0x0]===_0x5fe81f([0x2a])?_0x5fe81f([0x2a]):'')[_0x5fe81f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x272419))[_0x5fe81f([0x73,0x6f,0x6d,0x65])](_0x1ece36=>_0x5ca4b9[_0x5fe81f([0x65,0x76,0x65,0x72,0x79])]((_0x38d892,_0x58b112)=>_0x1ece36[_0x58b112]===_0x38d892||_0x1ece36[_0x58b112]===_0x5fe81f([0x2a])));}function _0x4b0cf1(){return _0x2fd2c3&&_0x26eb15?new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7339ad,_0x38e55d)=>{_0x2fd2c3[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x7339ad,_0x38e55d),_0x26eb15[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x1456cf=>{_0x1456cf!=_0x5fe81f([0x56,0x61,0x6c,0x69,0x64])&&_0x7339ad(_0x1456cf);},_0x38e55d);}):_0x2fd2c3||_0x26eb15||_0x5fe81f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37d59d(_0x3100d9,_0xe0a71d){return new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434dbb=>{if(_0x181240())return _0x434dbb(_0x5fe81f([0x56,0x61,0x6c,0x69,0x64]));_0x584c8d(),_0x247f29[_0x5fe81f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5fe81f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x453725=!0x1;const _0x58315e=_0x4c4d5d();function _0x54f739(_0x582a86){return!!_0x582a86&&(typeof _0x582a86===_0x5fe81f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x582a86===_0x5fe81f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x582a86[_0x5fe81f([0x74,0x68,0x65,0x6e])]===_0x5fe81f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x582a86[_0x5fe81f([0x63,0x61,0x74,0x63,0x68])]===_0x5fe81f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f99a6(_0x28953f){_0x588acf(_0x28953f)[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x2bcd95=>{if(!_0x2bcd95||_0x2bcd95[_0x5fe81f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5fe81f([0x6f,0x6b]))return _0x5fe81f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x574ec2(_0x72c2e0(_0x58315e+_0xe0a71d))!=_0x2bcd95[_0x5fe81f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5fe81f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5fe81f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x297c97=>(_0x352f51(),_0x297c97),()=>{const _0x26ed38=_0x3d2957();return null==_0x26ed38?(_0x352f51(),_0x5fe81f([0x56,0x61,0x6c,0x69,0x64])):_0x5fe81f(_0x32e717-_0x26ed38>(0x2044de43^_0x44d67b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x434dbb)[_0x5fe81f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x434dbb(_0x5fe81f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x484e23=0x47eb4c3^_0x44d67b;function _0x352f51(){const _0x15ff4f=_0x5fe81f([0x6c,0x6c,0x63,0x74,0x2d])+_0x574ec2(_0x72c2e0(_0x3100d9)),_0x4b73bd=_0x2c304e(_0x574ec2(window[_0x5fe81f([0x4d,0x61,0x74,0x68])][_0x5fe81f([0x63,0x65,0x69,0x6c])](_0x32e717/_0x484e23)));window[_0x5fe81f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5fe81f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15ff4f,_0x4b73bd);}function _0x3d2957(){const _0x3fe21c=_0x5fe81f([0x6c,0x6c,0x63,0x74,0x2d])+_0x574ec2(_0x72c2e0(_0x3100d9)),_0x11aaa6=window[_0x5fe81f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5fe81f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fe21c);return _0x11aaa6?window[_0x5fe81f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c304e(_0x11aaa6),0x10)*_0x484e23:null;}function _0x588acf(_0x1b108a){return new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x393015,_0x2898f3)=>{_0x1b108a[_0x5fe81f([0x74,0x68,0x65,0x6e])](_0x393015,_0x2898f3),window[_0x5fe81f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2898f3,0x4498e83^_0x44d67b);});}}_0x247f29[_0x5fe81f([0x6f,0x6e])](_0x5fe81f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x558343,_0x255387)=>{if(_0x255387[0x0]!=_0x3100d9)return _0x434dbb(_0x5fe81f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x255387[0x1]={..._0x255387[0x1],[_0x5fe81f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58315e};},{[_0x5fe81f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5fe81f([0x68,0x69,0x67,0x68])}),_0x247f29[_0x5fe81f([0x6f,0x6e])](_0x5fe81f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x146c80=>{_0x54f739(_0x146c80[_0x5fe81f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x453725=!0x0,_0x2f99a6(_0x146c80[_0x5fe81f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5fe81f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5fe81f([0x6c,0x6f,0x77])}),_0x4ec317[_0x5fe81f([0x74,0x68,0x65,0x6e])](()=>{_0x453725||_0x434dbb(_0x5fe81f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x181240(){return _0x247f29[_0x5fe81f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5fe81f([0x76,0x69,0x65,0x77])][_0x5fe81f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5fe81f([0x61,0x75,0x74,0x6f]);}function _0x584c8d(){_0x247f29[_0x5fe81f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5fe81f([0x76,0x69,0x65,0x77])][_0x5fe81f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5fe81f([0x61,0x75,0x74,0x6f]);}}function _0x296633(_0x50f395){const _0x184bfd=[new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e71b6=>setTimeout(_0x1e71b6,0x441648f^_0x44d67b)),_0x4ec317[_0x5fe81f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5887bb=>{const _0x47651a=0x4485a44^_0x44d67b,_0x540c25=_0xa34ccf[_0x5fe81f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x86b7ff(){_0x540c25[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x47651a&&_0x5887bb();}_0x86b7ff(),_0x540c25[_0x5fe81f([0x6f,0x6e])](_0x5fe81f([0x61,0x64,0x64]),_0x86b7ff);})),new window[(_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26859e=>{function _0x36908e(){for(const _0x4d6f27 in window)if(window[_0x5fe81f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5fe81f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4d6f27))&&window[_0x4d6f27]==_0x24df88)return _0x26859e();_0x247f29[_0x5fe81f([0x73,0x74,0x61,0x74,0x65])]!=_0x5fe81f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5fe81f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36908e,0x44849cb^_0x44d67b);}_0xb684a6(_0x5fe81f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x36908e();})];return window[_0x5fe81f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5fe81f([0x72,0x61,0x63,0x65])](_0x184bfd)[_0x5fe81f([0x74,0x68,0x65,0x6e])](()=>_0x50f395);}async function _0x15eb74(){if(await _0x4ec317,_0xb684a6(_0x5fe81f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4077e5=_0xa34ccf[_0x5fe81f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f0de4=_0xa34ccf[_0x5fe81f([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])](_0x4077e5[_0x5fe81f([0x69,0x64])]),_0x3446cb=_0x13e1f3(_0x5fe81f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3446cb[_0x5fe81f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4077e5['id'],_0x1f0de4?_0x1f0de4['id']:null,!0x0),_0x3446cb[_0x5fe81f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5fe81f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3446cb[_0x5fe81f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3446cb[_0x5fe81f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2736a6,void(_0x3446cb[_0x5fe81f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2736a6);}if(_0xb684a6(_0x5fe81f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x728f91=_0x13e1f3(_0x5fe81f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x728f91[_0x5fe81f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5fe81f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x728f91[_0x5fe81f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x728f91[_0x5fe81f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2736a6,_0x728f91[_0x5fe81f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2736a6;}_0x247f29[_0x5fe81f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5fe81f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2736a6,_0x247f29[_0x5fe81f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5fe81f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2736a6,_0x247f29[_0x5fe81f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5fe81f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33edcf(){return _0xb684a6(_0x5fe81f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x13e1f3(_0x5fe81f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5fe81f([0x73,0x74,0x61,0x74,0x65])]==_0x5fe81f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x330a74(){return _0xb684a6(_0x5fe81f([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 _0x12ae78(){return _0xb684a6(_0x5fe81f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x8feca0(_0x170959){const _0x2ff32b=_0x172ae3();_0x247f29[_0x2ff32b]=_0x5fe81f([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])+_0x170959,_0x170959[_0x5fe81f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5fe81f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x172ae3()]=_0x24df88),_0x170959!=_0x5fe81f([0x56,0x61,0x6c,0x69,0x64])&&_0x15eb74();}function _0x172ae3(){const _0x898ff9=window[_0x5fe81f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5fe81f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5fe81f([0x6e,0x6f,0x77])]())[_0x5fe81f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5fe81f([0x2e]),'');let _0x465dd3=_0x5fe81f([0x79]);for(let _0x1ecb02=0x0;_0x1ecb02<_0x898ff9[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ecb02+=0x2){let _0x2b4497=window[_0x5fe81f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x898ff9[_0x5fe81f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ecb02,_0x1ecb02+0x2));_0x2b4497>=_0xca324e[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b4497-=_0xca324e[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x465dd3+=_0xca324e[_0x2b4497];}return _0x465dd3;}function _0x5d44f9(){const _0xf2f645=_0x17b40c[_0x5fe81f([0x73,0x70,0x6c,0x69,0x74])](_0x5fe81f([0x2e]));if(0x3!=_0xf2f645[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a8a7f(_0xf2f645[0x1]);function _0x1a8a7f(_0x3b7ff4){const _0x142b6f=_0x450111(_0x3b7ff4);return _0x142b6f&&_0x278413()?_0x142b6f:null;function _0x278413(){const _0x30a5b2=_0x142b6f[_0x5fe81f([0x6a,0x74,0x69])],_0x2a5e35=window[_0x5fe81f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30a5b2[_0x5fe81f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30a5b2[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x403e84={..._0x142b6f,[_0x5fe81f([0x6a,0x74,0x69])]:_0x30a5b2[_0x5fe81f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30a5b2[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x403e84[_0x5fe81f([0x76,0x63])],_0x72c2e0(_0x403e84)==_0x2a5e35;}}}async function _0x4c5131(){let _0x33cf24=!0x0;try{const _0x42c5b8=_0x17b40c[_0x5fe81f([0x73,0x70,0x6c,0x69,0x74])](_0x5fe81f([0x2e])),[_0x5b7e88,_0x5c9ff0,_0x5c104b]=_0x42c5b8;return _0x22251c(_0x5b7e88),await _0x1261c8(_0x5b7e88,_0x5c9ff0,_0x5c104b),_0x33cf24;}catch{return!0x1;}function _0x22251c(_0xff73d4){const _0x29ceda=_0x450111(_0xff73d4);_0x29ceda&&_0x29ceda[_0x5fe81f([0x61,0x6c,0x67])]==_0x5fe81f([0x45,0x53,0x32,0x35,0x36])||(_0x33cf24=!0x1);}async function _0x1261c8(_0x53b6a4,_0x430e2f,_0x356249){const _0x3d81bd=window[_0x5fe81f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5fe81f([0x66,0x72,0x6f,0x6d])](_0x2174ba(_0x356249),_0x13744b=>_0x13744b[_0x5fe81f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2be1d5=new window[(_0x5fe81f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5fe81f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53b6a4+_0x5fe81f([0x2e])+_0x430e2f),_0xbaa86a=window[_0x5fe81f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5fe81f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbaa86a)return;const _0x168998=await _0xbaa86a[_0x5fe81f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5fe81f([0x6a,0x77,0x6b]),_0x1ffa80,{[_0x5fe81f([0x6e,0x61,0x6d,0x65])]:_0x5fe81f([0x45,0x43,0x44,0x53,0x41]),[_0x5fe81f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5fe81f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5fe81f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbaa86a[_0x5fe81f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5fe81f([0x6e,0x61,0x6d,0x65])]:_0x5fe81f([0x45,0x43,0x44,0x53,0x41]),[_0x5fe81f([0x68,0x61,0x73,0x68])]:{[_0x5fe81f([0x6e,0x61,0x6d,0x65])]:_0x5fe81f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x168998,_0x3d81bd,_0x2be1d5)||(_0x33cf24=!0x1);}}function _0x450111(_0xae4382){return _0xae4382[_0x5fe81f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5fe81f([0x65,0x79]))?JSON[_0x5fe81f([0x70,0x61,0x72,0x73,0x65])](_0x2174ba(_0xae4382)):null;}function _0x2174ba(_0x5a2793){return window[_0x5fe81f([0x61,0x74,0x6f,0x62])](_0x5a2793[_0x5fe81f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5fe81f([0x2b]))[_0x5fe81f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5fe81f([0x2f])));}function _0x72c2e0(_0x382078){let _0x528620=0x1505;function _0x74e829(_0x5556a8){for(let _0x3ae726=0x0;_0x3ae726<_0x5556a8[_0x5fe81f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae726++){const _0x116111=_0x5556a8[_0x5fe81f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ae726);_0x528620=(_0x528620<<0x5)+_0x528620+_0x116111,_0x528620&=_0x528620;}}function _0x1d52fd(_0x3dab05){Array[_0x5fe81f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dab05)?_0x3dab05[_0x5fe81f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d52fd):_0x3dab05&&typeof _0x3dab05==_0x5fe81f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5fe81f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dab05)[_0x5fe81f([0x73,0x6f,0x72,0x74])]()[_0x5fe81f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59d761,_0x16c21a])=>{_0x74e829(_0x59d761),_0x1d52fd(_0x16c21a);}):_0x74e829(window[_0x5fe81f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dab05));}return _0x1d52fd(_0x382078),_0x528620>>>0x0;}function _0x574ec2(_0x51d0cf){return _0x51d0cf[_0x5fe81f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5fe81f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5fe81f([0x30]));}function _0x2c304e(_0x1c8518){return _0x1c8518[_0x5fe81f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5fe81f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5fe81f([0x6a,0x6f,0x69,0x6e])]('');}function _0xb684a6(_0x2123fe){return _0x247f29[_0x5fe81f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5fe81f([0x68,0x61,0x73])](_0x2123fe);}function _0x13e1f3(_0x1d2070){return _0x247f29[_0x5fe81f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5fe81f([0x67,0x65,0x74])](_0x1d2070);}function _0x2736a6(){}function _0x5fe81f(_0x373102){return _0x373102['map'](_0x3d0063=>String['fromCharCode'](_0x3d0063))['join']('');}_0x8feca0(await _0x3a3927());}(this);}['createRevision'](_0x54f6b5){const _0x3914ae=this['editor']['plugins']['get']('Users');return new I({'id':_0x54f6b5['id'],'name':_0x54f6b5['name'],'creator':_0x54f6b5['creatorId']?_0x3914ae['getUser'](_0x54f6b5['creatorId']):null,'diffData':_0x54f6b5['diffData']||_0x54f6b5['data'],'authors':_0x54f6b5['authorsIds']['map'](_0x2cd4af=>_0x3914ae['getUser'](_0x2cd4af)),'createdAt':new Date(_0x54f6b5['createdAt']),'attributes':_0x54f6b5['attributes'],'fromVersion':_0x54f6b5['fromVersion'],'toVersion':_0x54f6b5['toVersion']});}['addRevision'](_0x1be3e8,_0x362c2e=0x0){this['_revisions']['add'](_0x1be3e8,_0x362c2e);}['getRevision'](_0x2448f4){return this['_revisions']['get'](_0x2448f4);}['getRevisions'](_0x20c171={'toJSON':!0x1}){const _0x24d4ca=Array['from'](this['_revisions']);return _0x24d4ca['reverse'](),_0x20c171['toJSON']?_0x24d4ca['map'](_0xe29b7c=>_0xe29b7c['toJSON']()):_0x24d4ca;}['getIndex'](_0x143e43){return this['_revisions']['getIndex'](_0x143e43);}['getEarlierVisibleRevision'](_0x522865){const [,_0xa72bc1]=this['getRevisionsIterator'](_0x522865,{'direction':'earlier'});return _0xa72bc1;}['getLaterVisibleRevision'](_0x38ca73){const [,_0x31e7e9]=this['getRevisionsIterator'](_0x38ca73,{'direction':'later'});return _0x31e7e9;}['getRevisionsInDiff'](_0x1de340){const _0x5ea519=[];for(const _0x2e15b8 of this['getRevisionsIterator'](_0x1de340['newRevisionId']))if(_0x5ea519['push'](_0x2e15b8),_0x2e15b8['id']===_0x1de340['oldRevisionId'])break;return _0x5ea519;}*['getRevisionsIterator'](_0xe30368,{direction:_0x308c6f='earlier',filter:_0x270bd1=()=>!0x0}={}){const _0x265f6f='earlier'===_0x308c6f?0x1:-0x1;let _0x25a7bf=this['_revisions']['get'](_0xe30368),_0x28e302=this['getIndex'](_0x25a7bf);for(yield _0x25a7bf;_0x25a7bf;){if(_0x28e302+=_0x265f6f,_0x25a7bf=this['getRevision'](_0x28e302),!_0x25a7bf)return;_0x270bd1(_0x25a7bf)&&(yield _0x25a7bf);}}}class $ extends _0x47aa5e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4b562f,'c'],[_0x285081,'a'],[_0xcf479a,'e'],[_0x21176f,'r'],[_0x302936,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4b562f],['a',_0x285081],['e',_0xcf479a],['r',_0x21176f],['u',_0x302936]]);async['loadRevisionData'](_0x20fcf9,_0x487e11){if(_0x20fcf9['diffData']||!_0x487e11)return;const _0x2507fa=this['editor']['config']['get']('collaboration.channelId'),_0x5f50aa=await _0x487e11['getRevision']({'channelId':_0x2507fa,'revisionId':_0x20fcf9['id']});_0x20fcf9['diffData']=_0x5f50aa['diffData'];}['getRevisionDocumentData'](_0x2a9bc8){const _0x102bb6={};for(const _0x4b6a83 in _0x2a9bc8['diffData']){if(_0x2a9bc8['diffData'][_0x4b6a83]['attachChange']&&!_0x2a9bc8['diffData'][_0x4b6a83]['attachChange']['isAttached'])continue;const _0x11a369=this['_removeRevisionMarkers'](JSON['parse'](_0x2a9bc8['diffData'][_0x4b6a83]['insertions'])),_0xd593b5=this['editor']['editing']['view']['document'],_0x46f4ab=new _0x5eef4e(_0xd593b5,_0x11a369['map'](_0x2132c9=>this['_getViewFromDiffObj'](_0x2132c9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x102bb6[_0x4b6a83]=this['editor']['data']['processor']['toData'](_0x46f4ab),this['editor']['data']['processor']['useFillerType']('default');}return _0x102bb6;}['getRevisionRootsAttributes'](_0x5c3ce2){const _0x4bc0ea={};for(const _0x169382 in _0x5c3ce2['diffData'])_0x5c3ce2['diffData'][_0x169382]['attachChange']&&!_0x5c3ce2['diffData'][_0x169382]['attachChange']['isAttached']||(_0x4bc0ea[_0x169382]=_0x5c3ce2['diffData'][_0x169382]['attributesAfter']||{});return _0x4bc0ea;}['_getTypeCharForViewElement'](_0x51b9aa){return this['_viewClassToTypeChar']['get'](_0x51b9aa['constructor']);}['_getViewFromDiffObj'](_0x53970e,_0x2f2536){const _0x6dce35=this['editor']['editing']['view']['document'];if('string'==typeof _0x53970e)return new _0x4376e3(_0x6dce35,_0x53970e);{let _0x40605c,_0x1568e7;_0x1568e7='u'==_0x53970e['type']||'r'==_0x53970e['type']?[]:_0x53970e['children']['map'](_0xeb5a0=>this['_getViewFromDiffObj'](_0xeb5a0,_0x2f2536));const _0x2f6192=this['_typeCharToViewClass']['get'](_0x53970e['type'])||_0x463bc4,_0xa84d0b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x40605c=new _0x2f6192(_0x6dce35,_0x53970e['name'],_0x53970e['attributes'],_0x1568e7),'u'==_0x53970e['type']&&_0x53970e['children'][0x0]){const _0x293e6f=_0x53970e['children'][0x0];if(_0x40605c['render']=function(_0x5a3db2){const _0x3bea4e=_0x5a3db2['createElement']('div');return _0x3bea4e['innerHTML']=_0x293e6f,_0x3bea4e['childNodes'][0x0];},_0x2f2536){const _0xcb8028=new _0x5eef4e(_0x6dce35);_0xcb8028['_appendChild'](_0x40605c);const _0x338c04=Array['from'](_0xa84d0b['viewChildrenToDom'](_0xcb8028,{'bind':!0x1})),_0x4aa552=_0xa84d0b['domDocument']['createElement']('div');_0x4aa552['append'](..._0x338c04),_0x40605c=Array['from'](_0xa84d0b['domChildrenToView'](_0x4aa552))[0x0];}}else{if('r'==_0x53970e['type']&&_0x53970e['children'][0x0]){const _0x2e768c=_0x53970e['children'][0x0];if(_0x40605c['render']=function(_0xeec03d){_0xeec03d['innerHTML']=_0x2e768c;},_0x2f2536){const _0x381747=new _0x5eef4e(_0x6dce35);_0x381747['_appendChild'](_0x40605c);const _0x1aa4ea=Array['from'](_0xa84d0b['viewChildrenToDom'](_0x381747,{'bind':!0x1})),_0x23747e=_0xa84d0b['domDocument']['createElement']('div');_0x23747e['append'](..._0x1aa4ea);const _0x417160=Array['from'](_0xa84d0b['domChildrenToView'](_0x23747e));_0x417160['length']>0x1?_0x40605c['_appendChild'](_0x417160):_0x40605c=_0x417160[0x0];}}}if(_0x53970e['customProperties']){for(const [_0x44d5a9,_0x3be864]of _0x53970e['customProperties'])_0x40605c['_setCustomProperty'](_0x44d5a9,_0x3be864);}const _0x4b4ad2=void 0x0===_0x53970e['fillerOffset']?null:_0x53970e['fillerOffset'];return null!==_0x4b4ad2&&(_0x40605c['getFillerOffset']=()=>_0x4b4ad2),_0x40605c;}}['_makeModelFromViewString'](_0x4c8f92){const _0x2577f6=JSON['parse'](_0x4c8f92),_0x52d7aa=this['editor']['editing']['view']['document'],_0x1c3471=new _0x5eef4e(_0x52d7aa,_0x2577f6['map'](_0x54dad0=>this['_getViewFromDiffObj'](_0x54dad0,!0x0)));return this['editor']['data']['toModel'](_0x1c3471);}['_removeRevisionMarkers'](_0x12ea4c){return(_0x12ea4c=_0x12ea4c['filter'](_0x22b00f=>!_0x22b00f['name']||'revision-start'!==_0x22b00f['name']&&'revision-end'!==_0x22b00f['name']))['forEach'](_0x29b867=>{'string'!=typeof _0x29b867&&(_0x29b867['children']=this['_removeRevisionMarkers'](_0x29b867['children']),_0x29b867['attributes']=_0x29b867['attributes']['filter'](_0x1921d9=>!_0x1921d9[0x0]['startsWith']('data-revision-')));}),_0x12ea4c;}}function R(_0x53b27f,_0x5b5e9f,_0x5ed1ab){const t=_0x53b27f['t'];switch(_0x5b5e9f){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'},_0x5ed1ab);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5ed1ab);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x47aa5e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3337df,S,$,_0x532fab];}constructor(_0x2729ac){super(_0x2729ac),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x175972=_0x4c4d5d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x175972},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x27d7c9=this['repository']['getRevision'](0x0),_0x485913=_0x27d7c9&&null===_0x27d7c9['creator']?_0x27d7c9:null;if(this['_continueCurrentRevision']=!!_0x485913&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x429115=this['_source']['getCurrentRevisionId'](),_0x2e5a7f=this['repository']['getRevision'](_0x429115);if(_0x2e5a7f)this['_startingVersion']=_0x2e5a7f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5d506f=this['_source']['history']['_operations']['find'](_0x2cb2bf=>!_0x2cb2bf['_isInit']),_0x3011de=_0x5d506f?_0x5d506f['baseVersion']:this['_source']['history']['version'];_0x27d7c9?(_0x27d7c9['toVersion']<_0x3011de&&_0x27d7c9['_update']({'toVersion':_0x3011de}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x485913['id'],this['_startingVersion']=_0x485913['fromVersion']):(this['_startingVersion']=_0x27d7c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3011de,this['_continueCurrentRevision']=!0x1);}}else _0x485913&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x485913['toVersion'],this['editor']['model']['document']['history']['version']),_0x485913['fromVersion']===_0x485913['toVersion']?(0x0!==_0x485913['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x485913['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x485913['id'],this['_startingVersion']=_0x485913['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',_0x19ad30=>!_0x19ad30),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd4283=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560ee3;for(const _0x3a426c in _0xd4283){const _0x4a34b0=_0x3a426c,_0x2a9248=_0xd4283[_0x4a34b0];if('revisionHistoryLicenseKeyValid'==_0x2a9248||'revisionHistoryLicenseKeyInvalid'==_0x2a9248||'revisionHistoryLicenseKeyExpired'==_0x2a9248||'revisionHistoryLicenseKeyDomainLimit'==_0x2a9248||'revisionHistoryLicenseKeyNotAllowed'==_0x2a9248||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a9248||'revisionHistoryLicenseKeyTrialLimit'==_0x2a9248||'revisionHistoryLicenseKeyUsageLimit'==_0x2a9248){delete _0xd4283[_0x4a34b0],_0x560ee3=_0x2a9248,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x560ee3&&_0xd4283['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x560ee3&&_0xd4283['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x560ee3&&_0xd4283['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x560ee3&&_0xd4283['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x560ee3&&_0xd4283['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x560ee3&&_0xd4283['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x560ee3&&_0xd4283['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4b28f8=this['repository']['getRevision'](0x0),_0x2fef70=await this['getRevisionDocumentData'](_0x4b28f8),_0x85a5bc=await this['getRevisionRootsAttributes'](_0x4b28f8);this['_replaceEditorDataWithRevisionData'](_0x2fef70,_0x85a5bc);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3f4e36){this['_source']=_0x3f4e36;}async['update'](){const _0x107fe8=await this['_source']['getLatestVersion']();if(_0x107fe8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x41136f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x107fe8});_0x41136f['authors']=_0x41136f['authorsIds']['map'](_0x461470=>this['editor']['plugins']['get']('Users')['getUser'](_0x461470)),this['currentRevision']['_update'](_0x41136f);}}async['saveRevision'](_0x179f96={},_0x1e3bda=null){const _0x3a6a14=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e3bda>this['currentRevision']['toVersion']&&(_0x1e3bda=null),null===_0x1e3bda&&(_0x1e3bda=await this['_source']['getLatestVersion']());const _0x50e804=this['_getFromVersion'](_0x1e3bda),_0x3b9c18=this['buildRevisionData']({'from':_0x50e804,'to':_0x1e3bda});if(this['currentRevision']['toVersion']<_0x1e3bda){const _0x445b05=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e3bda,'to':_0x1e3bda});_0x445b05['authors']=[],_0x445b05['authorsIds']=[],_0x445b05['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x445b05,!0x0),delete _0x445b05['authors'],_0x3a6a14['push'](_0x445b05);}_0x179f96['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x179f96['name']=_0x179f96['name']||null,_0x179f96['id']=_0x179f96['id']||_0x4c4d5d(),_0x179f96={..._0x179f96,..._0x3b9c18};const _0xf76a65=this['addRevisionData'](_0x179f96);_0x3a6a14['push'](_0x179f96);const _0x4859c0=this['repository']['getIndex'](_0xf76a65);if(0x0!==_0x4859c0){const _0x4f96dd=this['repository']['getRevision'](_0x4859c0-0x1);if(_0x4f96dd['fromVersion']!==_0x1e3bda){const _0x113ecf=this['_revisionDataBuilder']['getData'](_0x1e3bda,_0x4f96dd['toVersion']),_0x3d0468={'id':_0x4f96dd['id'],'diffData':_0x113ecf['diffData'],'authorsIds':_0x113ecf['authorsIds'],'authors':_0x113ecf['authorsIds']['map'](_0x248ee2=>this['editor']['plugins']['get']('Users')['getUser'](_0x248ee2)),'fromVersion':_0x1e3bda};_0x4f96dd===this['currentRevision']&&(_0x3d0468['createdAt']=new Date(_0x179f96['createdAt']['getTime']()+0xa)),_0x4f96dd['_update'](_0x3d0468,!0x0),delete _0x3d0468['authors'],_0x3a6a14['push'](_0x3d0468);}}if(this['adapter']){for(const _0x523cdc of _0x3a6a14)this['_bufferUpdate'](_0x523cdc['id'],_0x523cdc,!0x0);this['sendBufferedUpdates']();}return _0xf76a65;}['addRevisionData'](_0xf718e8){const _0x59b477=this['repository']['createRevision'](_0xf718e8);return this['adapter']&&_0x59b477['on']('_update',(_0x3b11ee,_0x5d582d,_0x1226b0)=>{_0x1226b0||(this['_bufferUpdate'](_0x5d582d['id'],_0x5d582d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59b477,this['_findInsertionIndex'](_0x59b477)),_0x59b477;}async['getRevisionDocumentData'](_0x545897){return await this['_utils']['loadRevisionData'](_0x545897,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x545897);}async['getRevisionRootsAttributes'](_0x5483e7){return await this['_utils']['loadRevisionData'](_0x5483e7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5483e7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x192872=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x127f27=0x0;_0x127f27<_0x192872['length'];_0x127f27++){const _0x1b9909=_0x192872[_0x127f27];let _0x142b5d=!0x1;for(const _0x6a804 of Object['keys'](_0x1b9909))void 0x0===_0x1b9909[_0x6a804]?delete _0x1b9909[_0x6a804]:'id'!==_0x6a804&&(_0x142b5d=!0x0);_0x142b5d||(_0x192872[_0x127f27]=null);}if(_0x192872=_0x192872['filter'](_0x43d2cc=>null!==_0x43d2cc),!_0x192872['length'])return;for(let _0x4cb5a6=0x0;_0x4cb5a6<_0x192872['length'];_0x4cb5a6++){const _0x326740=_0x192872[_0x4cb5a6];void 0x0!==_0x326740['fromVersion']&&void 0x0===_0x326740['toVersion']&&(_0x326740['toVersion']=this['repository']['getRevision'](_0x326740['id'])['toVersion']),void 0x0!==_0x326740['toVersion']&&void 0x0===_0x326740['fromVersion']&&(_0x326740['fromVersion']=this['repository']['getRevision'](_0x326740['id'])['fromVersion']);}const _0x104d65=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x192872,_0x104d65)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xde98f5=>{if(_0xde98f5){for(const _0x8cf62a of _0xde98f5)this['setRevisionData']({'id':_0x8cf62a['id'],'createdAt':_0x8cf62a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5ab850=null,from:_0x5e08c4=null,to:_0x22f728=null}){_0x5e08c4=null!==_0x5e08c4?_0x5e08c4:_0x5ab850['fromVersion'],_0x22f728=null!==_0x22f728?_0x22f728:_0x5ab850['toVersion'];const _0x50f9d4=this['_revisionDataBuilder']['getData'](_0x5e08c4,_0x22f728),_0x42af54={'diffData':_0x50f9d4['diffData'],'authorsIds':_0x50f9d4['authorsIds'],'fromVersion':_0x5e08c4,'toVersion':_0x22f728};if(!_0x5ab850||_0x22f728!==_0x5ab850['toVersion']){const _0x252879=_0x22f728-0x1,_0xf9a43b=this['_source']['history']['getOperation'](_0x252879);_0x42af54['createdAt']=_0xf9a43b&&_0xf9a43b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5e08c4===this['_loadedStateData']['fromVersion']){for(const _0x412ac1 of this['_loadedStateData']['authors'])_0x42af54['authorsIds']['includes'](_0x412ac1['id'])||_0x42af54['authorsIds']['push'](_0x412ac1['id']);}return _0x42af54;}['_bufferUpdate'](_0x3157f3,_0x3438bb,_0x431015){if(this['_bufferedUpdates']['has'](_0x3157f3)){const _0x4bd6aa=this['_bufferedUpdates']['get'](_0x3157f3);_0x3438bb=_0x431015?{..._0x4bd6aa,..._0x3438bb}:{..._0x3438bb,..._0x4bd6aa};}this['_bufferedUpdates']['set'](_0x3157f3,_0x3438bb);}['setRevisionData'](_0x176e9b){const _0x28030b=this['repository']['getRevision'](_0x176e9b['id']);if(_0x176e9b['createdAt']&&(_0x176e9b['createdAt']=new Date(_0x176e9b['createdAt'])),_0x176e9b['authorsIds']){const _0x4fdc96=this['editor']['plugins']['get']('Users');_0x176e9b['authors']=_0x176e9b['authorsIds']['map'](_0x2b1934=>_0x4fdc96['getUser'](_0x2b1934));}_0x28030b['_update'](_0x176e9b,!0x0);}['_createInitialRevision'](_0x5521f4){const _0x29bb7b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x29bb7b)this['_initialRevisionId']=_0x29bb7b['id'];else{const _0xcca6b2=!this['editor']['model']['document']['roots']['find'](_0x338b8b=>this['editor']['model']['hasContent'](_0x338b8b)),_0x3be55=this['editor']['plugins']['get']('Users')['me']['id'],_0x56cd07=R(this['editor']['locale'],_0xcca6b2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5521f4,'to':_0x5521f4,'id':this['_initialRevisionId'],'name':_0x56cd07,'creatorId':_0x3be55});}}['_createCurrentRevision'](_0x246937){const _0x52099c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x52099c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x246937,'to':_0x246937,'id':_0x52099c,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x55b8fb,_0x1ebb15){let _0x3ecbd8=this['editor']['config']['get']('initialData'),_0x37cb35=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ecbd8){_0x3ecbd8={};for(const _0x297253 of this['editor']['model']['document']['getRootNames']())_0x3ecbd8[_0x297253]='';}if('string'==typeof _0x3ecbd8&&(_0x3ecbd8={'main':_0x3ecbd8}),void 0x0===_0x37cb35){_0x37cb35={};for(const _0xd37d54 of this['editor']['model']['document']['getRootNames']())_0x37cb35[_0xd37d54]={};}let _0x353de0=!0x1;const _0x128780=Object['keys'](_0x3ecbd8),_0x49eddd=Object['keys'](_0x55b8fb);for(const _0xedb3e2 of _0x128780){if(_0x3ecbd8[_0xedb3e2]!==_0x55b8fb[_0xedb3e2]&&''!==_0x3ecbd8[_0xedb3e2]['trim']()){_0x353de0=!0x0;break;}if(!_0x265802(_0x37cb35[_0xedb3e2],_0x1ebb15[_0xedb3e2])&&Object['keys'](_0x37cb35[_0xedb3e2])['length']>0x0){_0x353de0=!0x0;break;}}_0x353de0||(_0x353de0=_0x49eddd['some'](_0x388ed3=>!this['editor']['model']['document']['getRoot'](_0x388ed3))),_0x353de0&&_0x3310fb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ecbd8,'editorRootsAttributes':_0x37cb35,'revisionData':_0x55b8fb,'revisionRootsAttributes':_0x1ebb15}),this['editor']['config']['set']('initialData',_0x55b8fb),this['editor']['config']['set']('rootsAttributes',_0x1ebb15);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x593f6a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x593f6a['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x474af3){const _0xc6161e=this['repository']['getRevisions']();_0xc6161e['reverse']();let _0x136350=0x0;for(;_0x136350<_0xc6161e['length'];){const _0x1f9223=_0xc6161e[_0x136350];if(_0x1f9223===this['currentRevision']){_0x136350++;continue;}if(_0x1f9223['id']===this['_initialRevisionId'])break;const _0x1b5ce9=_0x474af3['toVersion']-_0x1f9223['toVersion']||_0x474af3['fromVersion']-_0x1f9223['fromVersion'];if(_0x1b5ce9>0x0)break;if(_0x1b5ce9<0x0)_0x136350++;else{if(!_0x474af3['creator']&&_0x1f9223['creator'])break;if(_0x1f9223['creator']||!_0x474af3['creator']){if(_0x474af3['createdAt']>_0x1f9223['createdAt'])break;_0x136350++;}else _0x136350++;}}return _0x136350;}['_getFromVersion'](_0x34939e){const _0x16cf71=this['repository']['getRevisions']();_0x16cf71['reverse'](),_0x16cf71['shift']();const _0x3df36b=_0x16cf71['find'](_0x8fa3a6=>_0x8fa3a6['toVersion']<=_0x34939e)['toVersion'];return _0x3df36b<this['_startingVersion']?this['_startingVersion']:_0x3df36b;}['_makeRevision']({name:_0x58d1d6,from:_0x3996b8,to:_0x18a4f,creatorId:_0x5c55e9,id:_0x1256c4}){const _0x59691d=this['buildRevisionData']({'from':_0x3996b8,'to':_0x18a4f});_0x59691d['name']=_0x58d1d6,_0x59691d['creatorId']=_0x5c55e9,_0x59691d['id']=_0x1256c4;const _0x559849=this['addRevisionData'](_0x59691d);return this['adapter']&&this['_bufferUpdate'](_0x59691d['id'],_0x59691d,!0x0),_0x559849;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3294a5){this['editor']=_0x3294a5,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'](_0x20c50e){this['source']=_0x20c50e;const _0x42ddc8=new Map(),_0x5495ec=new Map(),_0x319582=this['editor']['model']['document']['roots']['map'](_0x3a194a=>_0x3a194a['rootName']);for(const _0x3a9c1f of _0x319582){const _0x41cb20=this['editor']['model']['document']['getRoot'](_0x3a9c1f),_0xc1cfae=x(_0x41cb20);_0x42ddc8['set'](_0x3a9c1f,_0xc1cfae),_0x5495ec['set'](_0x3a9c1f,Object['fromEntries'](_0x41cb20['getAttributes']()));}const _0x55ccdc=Array['from'](this['editor']['model']['markers'])['map'](_0x22ce1d=>[_0x22ce1d['name'],_0x22ce1d['getRange']()]),_0x467efa=this['source']['version'];this['_saveMetaData'](_0x467efa,_0x42ddc8,_0x55ccdc,_0x5495ec),this['_startingRevisionId']=this['_revisionId'];const _0x48e00d=new Map(),_0x34fe13=new Map();for(const _0x2f6202 of _0x319582){const _0x2ac0ee=N(_0x2f6202);_0x48e00d['set'](_0x2f6202,_0x2ac0ee),_0x34fe13['set'](_0x2f6202,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x48e00d,[],_0x34fe13);}['getData'](_0x4741b7,_0x26e4a5){if(this['_lastFrom']===_0x4741b7&&this['_lastTo']<=_0x26e4a5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x26e4a5,!0x0);else{if(!this['_savedMetaData']['has'](_0x4741b7)){const _0x352fbc=this['_getPreviousFrom'](_0x4741b7);this['_calculateMetaData'](_0x352fbc,_0x4741b7,!0x1);}this['_calculateMetaData'](_0x4741b7,_0x26e4a5,!0x0);}return this['_lastFrom']=_0x4741b7,this['_lastTo']=_0x26e4a5,this['_getState']();}['loadState'](_0x30efce){const _0x51664f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x30efce['fromVersion'],this['_lastTo']=_0x30efce['toVersion'];for(const _0x25f9fd in _0x30efce['diffData']){const _0x57b230=_0x30efce['diffData'][_0x25f9fd]['attachChange'],_0x13f3e6=_0x137baa(_0x30efce['diffData'][_0x25f9fd]['attributesBefore'])||{},_0xb59936=_0x51664f['_makeModelFromViewString'](_0x30efce['diffData'][_0x25f9fd]['deletions']);_0xb59936['rootName']=_0x25f9fd,_0xb59936['_isAttached']=!_0x57b230||!_0x57b230['isAttached'],_0xb59936['isAttached']=()=>_0xb59936['_isAttached'],this['_baseRoots']['set'](_0x25f9fd,_0xb59936),this['_baseRootsAttributes']['set'](_0x25f9fd,_0x13f3e6),_0x57b230&&this['_touchedRoots']['set'](_0x25f9fd,_0x57b230);const _0x42d2fe=this['_makeIdsRoot'](_0xb59936);this['_baseIdsRoots']['set'](_0x25f9fd,_0x42d2fe);for(const [_0x1b26f6,_0x264428]of _0xb59936['markers']){if(!_0x1b26f6['startsWith']('revision:'))continue;const _0x5208ef=_0x1b26f6['split'](':')[0x2];for(const _0x4b349b of _0x264428['getWalker']({'singleCharacters':!0x0})){const _0x5c5401=this['_getVidAttributeName'](_0x4b349b),_0x14a1e5='elementEnd'==_0x4b349b['type']?_0x4b349b['previousPosition']['path']['slice'](0x0,-0x1):_0x4b349b['previousPosition']['path'],_0x9b34c2=_0x42d2fe['getNodeByPath'](_0x14a1e5)['getAttribute'](_0x5c5401);this['_touched']['set'](_0x9b34c2,{'userId':_0x5208ef});}}}this['_startingRevisionId']=this['_revisionId'];const _0xf4b20c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b2b82=>!this['_touched']['has'](_0x2b2b82));let _0x55b33b=0x0;const _0x4bd568=new Map();for(const _0x17cdeb in _0x30efce['diffData']){const _0x46c650=_0x30efce['diffData'][_0x17cdeb]['attachChange'],_0x433f20=_0x137baa(_0x30efce['diffData'][_0x17cdeb]['attributesAfter'])||{},_0x112067=_0x51664f['_makeModelFromViewString'](_0x30efce['diffData'][_0x17cdeb]['insertions']);_0x112067['rootName']=_0x17cdeb,_0x112067['_isAttached']=!_0x46c650||_0x46c650['isAttached'],_0x112067['isAttached']=()=>_0x112067['_isAttached'],this['_diffRoots']['set'](_0x17cdeb,_0x112067),this['_diffRootsAttributes']['set'](_0x17cdeb,_0x433f20);const _0x340624=this['_makeIdsRoot'](_0x112067,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x17cdeb,_0x340624),_0x4bd568['set'](_0x17cdeb,_0x112067['isAttached']()?_0x433f20:{});for(const [_0x4f1f85,_0x16e3fc]of _0x112067['markers']){if(!_0x4f1f85['startsWith']('revision:'))continue;const _0x535b21=_0x4f1f85['split'](':')[0x2];for(const _0x212d4e of _0x16e3fc['getWalker']({'singleCharacters':!0x0})){const _0x2ea76c=this['_getVidAttributeName'](_0x212d4e),_0x11d00c=this['_revisionId']++,_0x15c3de='elementEnd'==_0x212d4e['type']?_0x212d4e['previousPosition']['path']['slice'](0x0,-0x1):_0x212d4e['previousPosition']['path'];_0x340624['getNodeByPath'](_0x15c3de)['_setAttribute'](_0x2ea76c,_0x11d00c),this['_touched']['set'](_0x11d00c,{'userId':_0x535b21});}}for(const _0x56f2d3 of this['editor']['model']['createRangeIn'](_0x112067)['getWalker']({'singleCharacters':!0x0})){const _0x4b2cec=this['_getVidAttributeName'](_0x56f2d3),_0x554573='elementEnd'==_0x56f2d3['type']?_0x56f2d3['previousPosition']['path']['slice'](0x0,-0x1):_0x56f2d3['previousPosition']['path'],_0x447b66=_0x340624['getNodeByPath'](_0x554573);_0x447b66['getAttribute'](_0x4b2cec)>0x0||_0x447b66['_setAttribute'](_0x4b2cec,_0xf4b20c[_0x55b33b++]);}for(const [_0xfb1cf5,_0x5eb66c]of _0x112067['markers'])_0xfb1cf5['startsWith']('revision:')||this['_markers']['set'](_0xfb1cf5,_0x5eb66c);}const _0x158f51=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x158f51),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x158f51,0x1));const _0x57c2cc=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x57c2cc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57c2cc,0x1));const _0x534556=Array['from'](this['_diffRoots'])['map'](([_0x5bc99f,_0x21b300])=>[_0x5bc99f,x(_0x21b300)]);this['_saveMetaData'](this['_lastTo'],_0x534556,this['_markers'],_0x4bd568);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x178abd,_0x52aaa0,_0x58b1ac,_0x157f29){const _0x427559=new Map(_0x52aaa0),_0x4afaf7=new Map(_0x137baa(_0x157f29)),_0x576bd9=new Map();for(const [_0x4489fd,_0x442880]of _0x58b1ac)_0x576bd9['set'](_0x4489fd,{'start':_0x442880['start']['clone'](),'end':_0x442880['end']['clone'](),'rootName':_0x442880['root']['rootName']});this['_savedMetaData']['set'](_0x178abd,{'roots':_0x427559,'markers':_0x576bd9,'rootsAttributes':_0x4afaf7});}['_removeMetaData'](_0x5779dd){this['_savedMetaData']['delete'](_0x5779dd);}['_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'](_0x4e1bdf,_0x528898=null){let _0x54c159=null;_0x4e1bdf['is']('documentFragment')||(_0x54c159=new _0x166fba(_0x4e1bdf['name'],{'vid_start':null===_0x528898?this['_revisionId']++:_0x528898++}));const _0xa9509d=[];for(const _0x4c9154 of _0x4e1bdf['getChildren']())if(_0x4c9154['is']('element')){_0xa9509d['push'](this['_makeIdsRoot'](_0x4c9154,_0x528898));const _0x32d967=_0xa9509d[_0xa9509d['length']-0x1];null!==_0x528898&&(_0x528898=_0x32d967['is']('element','$text')?_0x32d967['getAttribute']('vid')+0x1:_0x32d967['getAttribute']('vid_end')+0x1);}else{for(let _0x4147df=0x0;_0x4147df<_0x4c9154['offsetSize'];_0x4147df++)_0xa9509d['push'](new _0x166fba('$text',{'vid':null===_0x528898?this['_revisionId']++:_0x528898++}));}if(_0x4e1bdf['is']('documentFragment')){const _0x169171=N(_0x4e1bdf['rootName']);return _0x169171['_insertChild'](0x0,_0xa9509d),_0x169171;}return _0x54c159['_setAttribute']('vid_end',null===_0x528898?this['_revisionId']++:_0x528898++),_0x54c159['_insertChild'](0x0,_0xa9509d),_0x54c159;}['_calculateMetaData'](_0xf9b27d,_0x225cc3,_0x8bd2d5){this['_reset']();const {roots:_0x5a47c1,markers:_0x28cc94,rootsAttributes:_0x3428f2}=this['_savedMetaData']['get'](_0xf9b27d);this['_baseRoots']=new Map(_0x5a47c1),this['_baseRootsAttributes']=new Map(_0x137baa(_0x3428f2));for(const [_0x57c9b7,_0x306f32]of this['_baseRoots'])if('$graveyard'!==_0x57c9b7&&(this['_diffRoots']['set'](_0x57c9b7,x(_0x306f32)),this['_diffRootsAttributes']=new Map(_0x137baa(_0x3428f2)),_0x8bd2d5)){const _0x491e7f=this['_revisionId'];this['_idsRoots']['set'](_0x57c9b7,this['_makeIdsRoot'](_0x306f32)),this['_baseIdsRoots']['set'](_0x57c9b7,this['_makeIdsRoot'](_0x306f32,_0x491e7f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x8bd2d5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x219a4f,_0xc4a3ed]of _0x28cc94){const _0x2f32bf=this['_baseRoots']['get'](_0xc4a3ed['rootName']),_0x3bc67b=this['_diffRoots']['get'](_0xc4a3ed['rootName']),_0x3c8bf3=new _0x218771(this['_fixPosition'](_0xc4a3ed['start'],_0x2f32bf),this['_fixPosition'](_0xc4a3ed['end'],_0x2f32bf)),_0x9654f0=this['_fixRange'](_0x3c8bf3,_0x3bc67b);_0x2f32bf['markers']['set'](_0x219a4f,_0x3c8bf3),this['_markers']['set'](_0x219a4f,_0x9654f0);}this['_applyOperations'](_0xf9b27d,_0x225cc3,_0x8bd2d5);}['_applyOperations'](_0x359694,_0x3ee28f,_0x51d8a2){for(const _0x3c9838 of this['source']['getOperations'](_0x359694,_0x3ee28f))this['_handleOperation'](_0x3c9838,_0x51d8a2);for(const _0x3ec9b4 of this['_diffRoots']['values']())_0x3ec9b4['markers']['clear']();for(const [_0x191817,_0x2c43e0]of this['_markers']){this['_diffRoots']['get'](_0x2c43e0['root']['rootName'])['markers']['set'](_0x191817,_0x2c43e0['clone']());}const _0xd5d4e6=new Map(),_0x152335=new Map();for(const [_0x13440b,_0x576cc5]of this['_diffRoots'])_0xd5d4e6['set'](_0x13440b,x(_0x576cc5)),_0x152335['set'](_0x13440b,this['_diffRootsAttributes']['get'](_0x13440b));this['_saveMetaData'](_0x3ee28f,_0xd5d4e6,this['_markers'],_0x152335);}['_getPreviousFrom'](_0xc9ecab){const _0x12302d=Array['from'](this['_savedMetaData']['keys']());_0x12302d['sort']((_0x51f65d,_0x249884)=>_0x51f65d-_0x249884),_0x12302d['reverse']();for(const _0x58bb10 of _0x12302d)if(_0x58bb10<_0xc9ecab)return _0x58bb10;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xd2bfa7,_0x25c148){const _0x4cf2d6=Array['from'](_0x25c148['markers'])['map'](([_0x3981af,_0x42e7b9])=>[_0x3981af,this['_fixRange'](_0x42e7b9,_0xd2bfa7)]);_0xd2bfa7['markers']=new Map(_0x4cf2d6);}['_transformMarkers'](_0x45ce22){for(const _0x33223a of this['_markers']['values']()){const _0x1b8009=_0x33223a['getTransformedByOperation'](_0x45ce22),_0xd08a3c=_0x218771['_createFromRanges'](_0x1b8009);_0x33223a['start']=_0xd08a3c['start'],_0x33223a['end']=_0xd08a3c['end'];}}['_handleOperation'](_0x45cfa1,_0x59cb51){if('addRoot'!=_0x45cfa1['type']&&'detachRoot'!=_0x45cfa1['type']){if('insert'==_0x45cfa1['type']){const _0x712f28=_0x45cfa1['position']['root']['rootName'];this['_diffRoots']['has'](_0x712f28)||(this['_diffRoots']['set'](_0x712f28,N(_0x712f28,!0x0)),this['_diffRootsAttributes']['set'](_0x712f28,{}),_0x59cb51&&this['_idsRoots']['set'](_0x712f28,N(_0x712f28,!0x0)));}else{if('addRootAttribute'==_0x45cfa1['type']||'removeRootAttribute'==_0x45cfa1['type']||'changeRootAttribute'==_0x45cfa1['type'])return void this['_handleRootAttributeOperation'](_0x45cfa1);'marker'==_0x45cfa1['type']&&this['_handleMarkerOperation'](_0x45cfa1);}if('marker'!==_0x45cfa1['type']){const _0x33d706=this['_cloneOperation'](_0x45cfa1,this['_diffRoots']);_0x33d706['_execute'](),this['_transformMarkers'](_0x33d706);}if(_0x59cb51)switch(_0x45cfa1['type']){case'insert':this['_handleInsertOperation'](_0x45cfa1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45cfa1);break;case'merge':this['_handleMergeOperation'](_0x45cfa1);break;case'split':this['_handleSplitOperation'](_0x45cfa1);}}else this['_handleRootOperation'](_0x45cfa1,_0x59cb51);}['_cloneOperation'](_0x18709e,_0x37427a){const _0x42f3b4=_0x18709e['clone']();return _0x42f3b4['_authorId']=_0x18709e['_authorId'],this['_fixOperation'](_0x42f3b4,_0x37427a),_0x42f3b4;}['_getBaseVids'](_0x1c8f4e){return _0x1c8f4e['map'](_0x54f070=>{const _0x275920=this['_getVidAttributeName'](_0x54f070);return Number(_0x54f070['item']['getAttribute'](_0x275920));});}['_generateTape'](_0x68f669,_0x36409c){if(_0x68f669['is']('element','$text'))_0x36409c['push']({'item':_0x68f669,'type':'text'});else{_0x68f669['is']('element')&&_0x36409c['push']({'item':_0x68f669,'type':'elementStart'});for(const _0x191e8f of _0x68f669['getChildren']())this['_generateTape'](_0x191e8f,_0x36409c);_0x68f669['is']('element')&&_0x36409c['push']({'item':_0x68f669,'type':'elementEnd'});}return _0x36409c;}['_getState'](){const _0xed2d64=new Map(this['_touched']),_0x491f2b=new Map(_0xed2d64),_0x2ea791=new Map(),_0x295dff={'insertions':{},'deletions':{}},_0x5c86ae={'insertions':{},'deletions':{}},_0x342688=new Map(),_0x2cebdd=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2cebdd['delete']('$graveyard');for(const _0x518442 of _0x2cebdd){const _0x4390ae=this['_diffRoots']['get'](_0x518442)||N(_0x518442,!0x1),_0x48c492=this['_baseRoots']['get'](_0x518442)||N(_0x518442,!0x1);_0x4390ae['isAttached']()||_0x48c492['isAttached']()?(_0x295dff['insertions'][_0x518442]=x(_0x4390ae),_0x295dff['deletions'][_0x518442]=x(_0x48c492),this['_copyMarkers'](_0x295dff['deletions'][_0x518442],_0x48c492),this['_copyMarkers'](_0x295dff['insertions'][_0x518442],_0x4390ae),_0x5c86ae['insertions'][_0x518442]=this['_generateTape'](this['_idsRoots']['get'](_0x518442),[]),_0x5c86ae['deletions'][_0x518442]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x518442)||N(_0x518442,!0x1),[])):_0x2cebdd['delete'](_0x518442);}for(const _0x580f1b of _0x2cebdd){const _0x1202c1=_0x5c86ae['insertions'][_0x580f1b];for(const _0x27897e of _0x1202c1){const _0x5d7268=this['_getVidAttributeName'](_0x27897e),_0x4233ca=_0x27897e['item']['getAttribute'](_0x5d7268);_0x491f2b['delete'](_0x4233ca),_0x4233ca>=this['_startingRevisionId']&&_0x2ea791['set'](_0x4233ca,_0xed2d64['get'](_0x4233ca));}}for(const _0x254e8e of _0x2cebdd){const _0x3de75d=_0x5c86ae['insertions'][_0x254e8e],_0x3adbb4=this['_getBaseVids'](_0x5c86ae['deletions'][_0x254e8e]);let _0x2267ab=0x0;for(const _0x28d9fe of _0x3de75d){const _0x488ff6=this['_getVidAttributeName'](_0x28d9fe),_0x217e7b=_0x28d9fe['item']['getAttribute'](_0x488ff6);if(!_0x2ea791['has'](_0x217e7b)&&!_0x342688['has'](_0x217e7b)){if(_0x491f2b['has'](_0x217e7b))_0x2267ab++;else{if(_0x217e7b!=_0x3adbb4[_0x2267ab]){const _0x4abb0a=_0xed2d64['get'](_0x217e7b)||_0xed2d64['get'](_0x3adbb4[_0x2267ab]);for(;_0x217e7b!=_0x3adbb4[_0x2267ab];)_0x491f2b['has'](_0x3adbb4[_0x2267ab])||(_0x342688['set'](_0x3adbb4[_0x2267ab],_0x4abb0a),_0xed2d64['set'](_0x3adbb4[_0x2267ab],_0x4abb0a)),_0x2267ab++;}_0x2267ab++;}}}}for(const _0x4b0a83 of _0x2cebdd){const _0x13dc7c=_0x5c86ae['insertions'][_0x4b0a83];for(const _0x1bc447 of _0x13dc7c){const _0x44f7cd=this['_getVidAttributeName'](_0x1bc447),_0x2e4a8a=_0x1bc447['item']['getAttribute'](_0x44f7cd);if(_0x342688['has'](_0x2e4a8a)){const _0x1e2247=_0x342688['get'](_0x2e4a8a);_0x491f2b['has'](_0x2e4a8a)||_0x491f2b['set'](_0x2e4a8a,{..._0x1e2247}),_0x2ea791['set'](_0x2e4a8a,{..._0x1e2247});}}}for(const _0x32f8a8 of _0x491f2b['keys']())_0x32f8a8>=this['_startingRevisionId']&&_0x491f2b['delete'](_0x32f8a8);const _0x1c99cc=new Map();for(const _0x5719e5 of _0x2cebdd){let _0x1bb87f=_0x5c86ae['insertions'][_0x5719e5];for(const _0x41f9c3 of _0x1bb87f)if(_0x41f9c3['item']['is']('element','tableCell')){const _0x15aeb1=this['_getVidAttributeName'](_0x41f9c3),_0x3ed4b4=_0x41f9c3['item']['getAttribute'](_0x15aeb1);if(_0x2ea791['has'](_0x3ed4b4)){const _0xfbec74=_0x41f9c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x48803a=_0x1c99cc['get'](_0xfbec74)||new Set();_0x48803a['add'](_0x2ea791['get'](_0x3ed4b4)['userId']),_0x1c99cc['set'](_0xfbec74,_0x48803a);}}_0x1bb87f=_0x5c86ae['deletions'][_0x5719e5];for(const _0x18fda4 of _0x1bb87f)if(_0x18fda4['item']['is']('element','tableCell')){const _0x5d9195=this['_getVidAttributeName'](_0x18fda4),_0xffdbe2=_0x18fda4['item']['getAttribute'](_0x5d9195);if(_0x491f2b['has'](_0xffdbe2)){const _0x402689=_0x18fda4['item']['parent']['parent']['getAttribute']('vid_start'),_0x5ef23a=_0x1c99cc['get'](_0x402689)||new Set();_0x5ef23a['add'](_0x491f2b['get'](_0xffdbe2)['userId']),_0x1c99cc['set'](_0x402689,_0x5ef23a);}}for(const _0x637e11 of _0x1c99cc['keys']())(_0x2ea791['has'](_0x637e11)||_0x491f2b['has'](_0x637e11))&&_0x1c99cc['delete'](_0x637e11);}for(const _0x1fa968 of _0x2cebdd){const _0x33fd39=_0x5c86ae['insertions'][_0x1fa968];let _0x59d398=null,_0x19e47f=null;for(const _0x3e52a6 of _0x33fd39){const _0x200a38=this['_getVidAttributeName'](_0x3e52a6),_0x304958=_0x3e52a6['item']['getAttribute'](_0x200a38),_0x5675ab=_0x1c99cc['get'](_0x304958);_0x5675ab&&'elementStart'==_0x3e52a6['type']&&(_0x59d398=Array['from'](_0x5675ab)[0x0],_0x19e47f=_0x3e52a6['item']['getAttribute']('vid_end')),_0x59d398&&(_0x491f2b['set'](_0x304958,{'userId':_0x59d398}),_0x2ea791['set'](_0x304958,{'userId':_0x59d398})),_0x304958==_0x19e47f&&(_0x59d398=null,_0x19e47f=null);}}const _0x2654c1={},_0x11a549=new Set();for(const _0x1bda65 of _0x2cebdd){const _0x5b3ee0=_0x295dff['deletions'][_0x1bda65],_0x3e00db=_0x295dff['insertions'][_0x1bda65];for(const {userId:_0xbcf9e4}of this['_touchedMarkers']['values']())null!==_0xbcf9e4&&_0x11a549['add'](_0xbcf9e4);for(const {userId:_0x50de72}of this['_touchedRoots']['values']())null!==_0x50de72&&_0x11a549['add'](_0x50de72);this['_markChanges'](_0x3e00db,_0x5c86ae['insertions'][_0x1bda65],_0x2ea791,'insertion',_0x11a549),this['_markChanges'](_0x5b3ee0,_0x5c86ae['deletions'][_0x1bda65],_0x491f2b,'deletion',_0x11a549),_0x2654c1[_0x1bda65]={'insertions':this['_prepareViewToSave'](_0x3e00db),'deletions':this['_prepareViewToSave'](_0x5b3ee0),'attachChange':this['_touchedRoots']['get'](_0x1bda65)||null,'attributesBefore':_0x137baa(this['_baseRootsAttributes']['get'](_0x1bda65))||{},'attributesAfter':_0x137baa(this['_diffRootsAttributes']['get'](_0x1bda65))};}return{'diffData':_0x2654c1,'authorsIds':Array['from'](_0x11a549)};}['_processRootBeforeSave'](_0x27d9f1){for(const [,_0x166c5c]of _0x27d9f1['markers']){const _0x159a14=_0x166c5c['start']['getAncestors']()['filter'](_0x3dd98b=>'tableCell'==_0x3dd98b['name']);for(const _0x7abc90 of _0x159a14)0x1==_0x7abc90['childCount']&&_0x7abc90['getChild'](0x0)['is']('element','paragraph')&&_0x7abc90['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3700f3){this['_processRootBeforeSave'](_0x3700f3);const _0xdc1dbf=this['editor']['data']['toView'](_0x3700f3,{}),_0x4bdcc0=Array['from'](_0xdc1dbf['getChildren']())['map'](_0x492896=>this['_getViewJson'](_0x492896));return JSON['stringify'](_0x4bdcc0);}['_getViewJson'](_0x237c62){if(_0x237c62['is']('$text'))return _0x237c62['data'];{const _0x185650=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xd5edca=_0x237c62,_0x371134=this['editor']['data']['htmlProcessor']['domConverter'],_0x43d274={'type':_0x185650['_getTypeCharForViewElement'](_0xd5edca),'name':_0xd5edca['name'],'attributes':Array['from'](_0xd5edca['getAttributes']()),'children':Array['from'](_0xd5edca['getChildren']())['map'](_0x2e3436=>this['_getViewJson'](_0x2e3436))};if(_0x237c62['is']('uiElement')&&'$comment'!=_0x237c62['name']){const _0x5c2863=_0x237c62['render'](_0x371134['domDocument'],_0x371134);_0x43d274['children']['push'](_0x5c2863['outerHTML']);}else{if(_0x237c62['is']('rawElement')){const _0x2877ab=_0x371134['domDocument']['createElement'](_0xd5edca['name']);_0x237c62['render'](_0x2877ab,_0x371134),_0x43d274['children']['push'](_0x2877ab['innerHTML']);}}const _0x28ad84=Array['from'](_0xd5edca['getCustomProperties']());_0x28ad84['length']>0x0&&(_0x43d274['customProperties']=_0x28ad84);const _0x19e67d=_0xd5edca['getFillerOffset']();return null!==_0x19e67d&&(_0x43d274['fillerOffset']=_0x19e67d),_0x43d274;}}['_markChanges'](_0x34c338,_0xbbc851,_0x439553,_0x47168a,_0x6906a2){let _0x301b52=null,_0x5b63f4=null,_0xf25fa6=0x0;const _0x32124a=this['editor']['model'];for(let _0x2f9ad1=0x0;_0x2f9ad1<_0xbbc851['length'];_0x2f9ad1++){const _0x580d29=this['_getVidAttributeName'](_0xbbc851[_0x2f9ad1]),_0xe5b21e=_0xbbc851[_0x2f9ad1]['item']['getAttribute'](_0x580d29),_0x5294d7=_0x439553['get'](_0xe5b21e),_0xdd5dad=_0x2f9ad1==_0xbbc851['length']-0x1;(!_0x301b52&&_0x5294d7&&(_0x301b52=_0x5294d7,_0x5b63f4=_0xbbc851[_0x2f9ad1]),_0x301b52&&(!_0x5294d7||_0x5294d7['userId']!=_0x301b52['userId']))&&(_0x5b336f(_0x5294d7,P(_0x5b63f4,_0x34c338,_0x32124a),P(_0xbbc851[_0x2f9ad1],_0x34c338,_0x32124a)),_0x301b52=_0x5294d7||null,_0x5b63f4=_0x5294d7?_0xbbc851[_0x2f9ad1]:null),_0x301b52&&_0xdd5dad&&_0x5b336f(_0x5294d7,P(_0x5b63f4,_0x34c338,_0x32124a),V(_0xbbc851[_0x2f9ad1],_0x34c338,_0x32124a));}function _0x5b336f(_0x30dd7f,_0x5597e3,_0x2f04e6){const _0x337b0d=_0x301b52['userId'],_0xe56d52='revision:'+_0x47168a+':'+_0x337b0d+':'+_0xf25fa6++,_0x7f5840=_0x32124a['createRange'](_0x5597e3,_0x2f04e6);_0x34c338['markers']['set'](_0xe56d52,_0x7f5840),null!==_0x337b0d&&_0x6906a2['add'](_0x337b0d);}}['_getVidAttributeName'](_0x56ab16){switch(_0x56ab16['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3fd9e0,_0x255506){_0x3fd9e0['baseVersion']=null;for(const _0x17e589 in _0x3fd9e0){const _0x5e7a94=_0x3fd9e0[_0x17e589];if(_0x5e7a94 instanceof _0x3c89f2){const _0x571bfa=_0x255506['get'](_0x5e7a94['root']['rootName']);_0x3fd9e0[_0x17e589]=this['_fixPosition'](_0x5e7a94,_0x571bfa);}if(_0x5e7a94 instanceof _0x218771){const _0x2d953a=_0x255506['get'](_0x5e7a94['root']['rootName']);_0x3fd9e0[_0x17e589]=this['_fixRange'](_0x5e7a94,_0x2d953a);}'root'===_0x17e589&&(_0x3fd9e0['root']=_0x255506['get'](_0x3fd9e0['root']['rootName']));}}['_fixRange'](_0x3ea656,_0x15725c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3ea656['start'],_0x15725c),this['_fixPosition'](_0x3ea656['end'],_0x15725c));}['_fixPosition'](_0x20bb3d,_0x5b03b8){return this['editor']['model']['createPositionFromPath'](_0x5b03b8,_0x20bb3d['path'],_0x20bb3d['stickiness']);}['_handleInsertOperation'](_0x2114e3){const _0x4b6f94=this['_idsRoots']['get'](_0x2114e3['position']['root']['rootName']),_0x882b7f=this['_fixPosition'](_0x2114e3['position'],_0x4b6f94),_0x46bd6e=null===_0x2114e3['_authorId']?null:_0x2114e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x63bb5f=_0x882b7f['parent'],_0x2627ba=this['_revisionId'],_0x45561b=[];for(const _0x1d68d7 of _0x2114e3['nodes'])if(_0x1d68d7['is']('element'))_0x45561b['push'](this['_makeIdsRoot'](_0x1d68d7));else{for(let _0x1ba30d=0x0;_0x1ba30d<_0x1d68d7['offsetSize'];_0x1ba30d++)_0x45561b['push'](new _0x166fba('$text',{'vid':this['_revisionId']++}));}const _0x1194c5=this['_revisionId'];for(let _0x4b8b00=_0x2627ba;_0x4b8b00<_0x1194c5;_0x4b8b00++)this['_touched']['set'](_0x4b8b00,{'userId':_0x46bd6e});_0x63bb5f['_insertChild'](_0x882b7f['offset'],_0x45561b);}['_handleMoveOperation'](_0x5a8ec7){(_0x5a8ec7=this['_cloneOperation'](_0x5a8ec7,this['_idsRoots']))['_execute']();const _0x405eb6=null===_0x5a8ec7['_authorId']?null:_0x5a8ec7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ffcd4=_0x5a8ec7['getMovedRangeStart'](),_0x42c3a3=_0x2ffcd4['parent'],_0x108f13=_0x2ffcd4['offset'];!function _0x534229(_0x5431ad,_0x11380c,_0x190932,_0x27d063){for(let _0x189cf6=_0x190932;_0x189cf6<_0x27d063;_0x189cf6++){const _0x13d56a=_0x11380c['getChild'](_0x189cf6);_0x13d56a['is']('element','$text')?_0x5431ad['set'](_0x13d56a['getAttribute']('vid'),{'userId':_0x405eb6}):(_0x5431ad['set'](_0x13d56a['getAttribute']('vid_start'),{'userId':_0x405eb6}),_0x534229(_0x5431ad,_0x13d56a,0x0,_0x13d56a['childCount']),_0x5431ad['set'](_0x13d56a['getAttribute']('vid_end'),{'userId':_0x405eb6}));}}(this['_touched'],_0x42c3a3,_0x108f13,_0x108f13+_0x5a8ec7['howMany']);}['_handleMergeOperation'](_0x302bc2){const _0x291d4a=null===(_0x302bc2=this['_cloneOperation'](_0x302bc2,this['_idsRoots']))['_authorId']?null:_0x302bc2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x423116=_0x302bc2['targetPosition']['parent'],_0x5226e7=_0x302bc2['sourcePosition']['parent'],_0xb9ce18=_0x423116['getAttribute']('vid_end'),_0x4832aa=_0x5226e7['getAttribute']('vid_start');_0x423116['_setAttribute']('vid_end',_0x5226e7['getAttribute']('vid_end')),_0x5226e7['_setAttribute']('vid_end',_0xb9ce18),this['_touched']['set'](_0x4832aa,{'userId':_0x291d4a}),this['_touched']['set'](_0xb9ce18,{'userId':_0x291d4a}),_0x302bc2['_execute']();}['_handleSplitOperation'](_0x46513a){const _0x5025c7=null===(_0x46513a=this['_cloneOperation'](_0x46513a,this['_idsRoots']))['_authorId']?null:_0x46513a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25a575=_0x46513a['graveyardPosition'],_0x5e122c=_0x46513a['splitPosition']['parent'];_0x46513a['_execute']();const _0x1a4016=_0x5e122c['getAttribute']('vid_end'),_0x3b3d2d=_0x46513a['insertionPosition']['nodeAfter'];if(_0x25a575){const _0x3ce2cc=_0x3b3d2d['getAttribute']('vid_end'),_0x159ac6=_0x5e122c['getAttribute']('vid_end');_0x5e122c['_setAttribute']('vid_end',_0x3ce2cc),_0x3b3d2d['_setAttribute']('vid_end',_0x159ac6),this['_touched']['set'](_0x5e122c['getAttribute']('vid_end'),{'userId':_0x5025c7}),this['_touched']['set'](_0x3b3d2d['getAttribute']('vid_start'),{'userId':_0x5025c7});}else{const _0xfc2d02=this['_revisionId']++,_0x280f9b=this['_revisionId']++;_0x5e122c['_setAttribute']('vid_end',_0xfc2d02),_0x3b3d2d['_setAttribute']('vid_start',_0x280f9b),_0x3b3d2d['_setAttribute']('vid_end',_0x1a4016),this['_touched']['set'](_0xfc2d02,{'userId':_0x5025c7}),this['_touched']['set'](_0x280f9b,{'userId':_0x5025c7});}}['_handleMarkerOperation'](_0x469402){if(!_0x469402['affectsData'])return;const _0x5afa39=(_0x469402=this['_cloneOperation'](_0x469402,this['_diffRoots']))['oldRange']?_0x469402['oldRange']['root']:null,_0x589593=_0x469402['newRange']?_0x469402['newRange']['root']:null;_0x5afa39&&this['_markers']['delete'](_0x469402['name']),_0x589593&&this['_markers']['set'](_0x469402['name'],_0x469402['newRange']['clone']());const _0x35e396=null===_0x469402['_authorId']?null:_0x469402['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x593a98=_0x469402['name'];if(!this['_touchedMarkers']['has'](_0x593a98))return void this['_touchedMarkers']['set'](_0x593a98,{'range':_0x469402['oldRange'],'userId':_0x35e396});const _0xa3b43e=this['_touchedMarkers']['get'](_0x593a98),_0x406398=_0xa3b43e['range'],_0x34cf45=_0x469402['newRange'];null==_0x406398&&null==_0x34cf45||_0x406398&&_0x34cf45&&_0x406398['isEqual'](_0x34cf45)?this['_touchedMarkers']['delete'](_0x469402['name']):_0xa3b43e['userId']=_0x35e396;}['_handleRootOperation'](_0x4db19c,_0xfdfc2e){this['_diffRoots']['has'](_0x4db19c['rootName'])?this['_diffRoots']['get'](_0x4db19c['rootName'])['_isAttached']=_0x4db19c['isAdd']:(this['_diffRoots']['set'](_0x4db19c['rootName'],N(_0x4db19c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4db19c['rootName'],{}),_0xfdfc2e&&this['_idsRoots']['set'](_0x4db19c['rootName'],N(_0x4db19c['rootName'],!0x0)));const _0x1dace6=null===_0x4db19c['_authorId']?null:_0x4db19c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac58a=this['_touchedRoots']['get'](_0x4db19c['rootName']);_0x1ac58a&&_0x1ac58a['userId']===_0x1dace6?this['_touchedRoots']['delete'](_0x4db19c['rootName']):this['_touchedRoots']['set'](_0x4db19c['rootName'],{'userId':_0x1dace6,'isAttached':_0x4db19c['isAdd']});}['_handleRootAttributeOperation'](_0x9a75fa){const _0x2d0d95=this['_diffRootsAttributes']['get'](_0x9a75fa['root']['rootName']);null===_0x9a75fa['newValue']?delete _0x2d0d95[_0x9a75fa['key']]:_0x2d0d95[_0x9a75fa['key']]=_0x9a75fa['newValue'];}}function x(_0x35b944){const _0x5a1924=N(_0x35b944['rootName'],_0x35b944['isAttached']());for(const _0x1f912e of _0x35b944['getChildren']()){const _0x3858c6=_0x1f912e['_clone'](!0x0);_0x5a1924['_appendChild'](_0x3858c6);}return _0x5a1924;}function N(_0x1f42b4,_0x548c60=!0x0){const _0x25efbe=new _0x46c173();return _0x25efbe['rootName']=_0x1f42b4,_0x25efbe['_isAttached']=_0x548c60,_0x25efbe['isAttached']=()=>_0x25efbe['_isAttached'],_0x25efbe;}function P(_0x2b3c4c,_0x36073a,_0x1debf4){const _0x34ca7e='elementEnd'==_0x2b3c4c['type']?_0x1debf4['createPositionAt'](_0x2b3c4c['item'],'end'):_0x1debf4['createPositionBefore'](_0x2b3c4c['item']);return _0x1debf4['createPositionFromPath'](_0x36073a,_0x34ca7e['path'],_0x34ca7e['stickiness']);}function V(_0x15e33d,_0x4e6339,_0x1eef47){const _0x408cce='elementStart'==_0x15e33d['type']?_0x1eef47['createPositionAt'](_0x15e33d['item'],0x0):_0x1eef47['createPositionAfter'](_0x15e33d['item']);return _0x1eef47['createPositionFromPath'](_0x4e6339,_0x408cce['path'],_0x408cce['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x1ab161(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4e5483){super(),this['id']=_0x4e5483['id']||_0x4c4d5d(),this['author']=_0x4e5483['author'],this['type']=_0x4e5483['type'],this['data']=_0x4e5483['data']||{},this['rootName']=_0x4e5483['rootName'],this['set']('createdAt',_0x4e5483['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x168f2c,_0x2763b5){this['newRevisionId']=_0x168f2c,this['oldRevisionId']=_0x2763b5,this['changes']=new _0x49a21d();}['_setChanges'](_0x4347f7){for(const _0x27757c of _0x4347f7)this['changes']['add'](_0x27757c);}}class l extends _0x47aa5e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3337df,_0x396f94,S,$];}constructor(_0x52a8b8){super(_0x52a8b8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x231f84,_0x2d0f84,_0x49649d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4c246b=>{for(const _0x482825 of this['editor']['editing']['view']['document']['roots'])_0x49649d?_0x4c246b['removeClass']('ck-editor__editable__overlay',_0x482825):_0x4c246b['addClass']('ck-editor__editable__overlay',_0x482825);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1f338c=>null!==_0x1f338c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x72057f,_0x5b3ba3,_0x307ac0)=>_0x72057f&&_0x307ac0?_0x5b3ba3['changes']['getIndex'](_0x307ac0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x286118,_0x4a3970)=>_0x286118?_0x4a3970['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x396f94);}['init'](){const _0x2ea876=this['editor'],_0x3b0a88=new rt(_0x2ea876,{'direction':'backward'}),_0x5ddbc9=new rt(_0x2ea876,{'direction':'forward'});(_0x2ea876['commands']['add']('showPreviousChange',_0x3b0a88),_0x2ea876['commands']['add']('showNextChange',_0x5ddbc9),_0x2ea876['commands']['add']('restoreRevision',new nt(_0x2ea876)),this['on']('change:numberOfChanges',()=>{_0x3b0a88['refresh'](),_0x5ddbc9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2ea876['enableReadOnlyMode']('revision-viewer'),_0x2ea876['plugins']['has']('WidgetToolbarRepository'))&&_0x2ea876['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x28ae2a){return await this['_utils']['loadRevisionData'](_0x28ae2a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x28ae2a);}async['getRevisionRootsAttributes'](_0x325d2f){return await this['_utils']['loadRevisionData'](_0x325d2f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x325d2f);}async['compare'](_0x55651d,_0xa06750,_0x323560=!0x1){if(!this['isEnabled'])return;const _0x4a0159=this['diff'],_0x57abb2=this['repository'],_0x7ff4b='string'==typeof _0x55651d?_0x57abb2['getRevision'](_0x55651d):_0x55651d,_0x2e494a='string'==typeof _0xa06750?_0x57abb2['getRevision'](_0xa06750):_0xa06750,_0x47eabf=_0x7ff4b['id'],_0x5a8435=_0x2e494a?_0x2e494a['id']:null;if(!_0x323560&&this['diff']&&this['diff']['newRevisionId']===_0x47eabf&&this['diff']['oldRevisionId']===_0x5a8435)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x47eabf,_0x5a8435);const _0x58f225=this['_getRevisionsRange'](_0x7ff4b,_0x2e494a,!0x0)['map'](_0x36a126=>this['_utils']['loadRevisionData'](_0x36a126,this['adapter']));return _0x58f225['push'](new Promise(_0x50c9e6=>{setTimeout(_0x50c9e6,0x14);})),Promise['all'](_0x58f225)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xa6e1c6=this['_getDiff'](_0x47eabf,_0x5a8435);for(const _0x5f30c1 of _0xa6e1c6['changes'])this['_changeIdToChange']['set'](_0x5f30c1['id'],_0x5f30c1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5adfa1=>{for(const _0x245c21 of this['editor']['model']['document']['getRootNames']())_0x5adfa1['detachRoot'](_0x245c21);for(const _0x38f5af of Object['keys'](_0xa6e1c6['model'])){const _0x21cd07=_0x5adfa1['addRoot'](_0x38f5af);for(const _0x2dc782 of Object['keys'](_0xa6e1c6['attributes'][_0x38f5af]))_0x5adfa1['setAttribute'](_0x2dc782,_0xa6e1c6['attributes'][_0x38f5af][_0x2dc782],_0x21cd07);_0x5adfa1['insert'](_0xa6e1c6['model'][_0x38f5af],_0x21cd07,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xa6e1c6['changes'])),this['isReady']=!0x0;})['catch'](_0x303213=>{console['error'](_0x303213),this['_cleanUp'](),_0x4a0159&&(this['diff']=_0x4a0159),this['isReady']=!0x0;});}['addRevisionData'](_0x24cb1d,_0x4a2f45){const _0x433860=this['repository']['createRevision'](_0x24cb1d);return _0x433860['on']('_update',(_0x70009a,_0x56d4fe,_0xb58362)=>_0x4a2f45(_0x56d4fe,_0xb58362,_0x433860)),this['repository']['addRevision'](_0x433860),_0x433860;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5dd546=>{for(const _0x63e286 of this['editor']['model']['document']['getRootNames']())_0x5dd546['detachRoot'](_0x63e286);});}['_sortAndFilterDiffChanges'](_0x557ae5){const _0x22b968=[],_0x2507db=new Map();for(const _0x4aa1ab of this['editor']['model']['document']['getRootNames']()){const _0x3a1fe9=this['editor']['editing']['view']['getDomRoot'](_0x4aa1ab);if(!_0x3a1fe9)continue;const _0x3856ad=_0x3a1fe9['getClientRects']()['item'](0x0);_0x3856ad&&(_0x22b968['push'](_0x4aa1ab),_0x2507db['set'](_0x4aa1ab,_0x3856ad));}return _0x22b968['sort']((_0x5ecae8,_0x4af14e)=>{const _0x7c68a9=_0x2507db['get'](_0x5ecae8),_0x3a5d4a=_0x2507db['get'](_0x4af14e);return _0x7c68a9['y']-_0x3a5d4a['y']||_0x7c68a9['x']-_0x3a5d4a['x'];}),(_0x557ae5=_0x557ae5['filter'](_0x445b93=>_0x22b968['includes'](_0x445b93['rootName'])))['sort']((_0x5dd922,_0x17c9e3)=>_0x22b968['indexOf'](_0x5dd922['rootName'])-_0x22b968['indexOf'](_0x17c9e3['rootName'])),_0x557ae5;}['_makeTape'](_0x3f3d26){const _0x16a3ce=Array['from'](_0x3f3d26['markers'])['filter'](([_0x220bcc,_0x247694])=>_0x220bcc['startsWith']('revision:')&&!_0x247694['isCollapsed']),_0x366794=Array['from'](this['editor']['model']['createRangeIn'](_0x3f3d26)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x16a3ce['length'])for(const _0x26cb8b of _0x366794){const [_0x20ee16,_0x5b40a7]=_0x16a3ce[0x0],[,_0x441942,_0x1a7437]=_0x20ee16['split'](':');if(_0x5b40a7['end']['isEqual'](_0x26cb8b['nextPosition'])&&_0x16a3ce['shift'](),(_0x26cb8b['previousPosition']['isEqual'](_0x5b40a7['start'])||_0x26cb8b['previousPosition']['isAfter'](_0x5b40a7['start']))&&('insertion'==_0x441942?_0x26cb8b['isAdded']={'userId':_0x1a7437}:'deletion'==_0x441942&&(_0x26cb8b['isRemoved']={'userId':_0x1a7437})),0x0==_0x16a3ce['length'])break;}return _0x366794;}['_refreshStartEndIndex'](_0x28a211){const _0x311a6=new Map();for(let _0x5e80b0=0x0;_0x5e80b0<_0x28a211['length'];_0x5e80b0++)'text'===_0x28a211[_0x5e80b0]['type']?(_0x28a211[_0x5e80b0]['item']['startIndex']=_0x5e80b0,_0x28a211[_0x5e80b0]['item']['endIndex']=_0x5e80b0):('elementStart'===_0x28a211[_0x5e80b0]['type']?_0x28a211[_0x5e80b0]['item']['startIndex']=_0x5e80b0:'elementEnd'===_0x28a211[_0x5e80b0]['type']&&(_0x28a211[_0x5e80b0]['item']['endIndex']=_0x5e80b0),_0x311a6['set'](_0x28a211[_0x5e80b0]['id'],_0x5e80b0));for(const _0x4fd19f of _0x311a6['values']())'elementStart'===_0x28a211[_0x4fd19f]['type']?_0x28a211[_0x4fd19f]['item']['endIndex']=_0x311a6['get'](_0x28a211[_0x4fd19f]['pairId']):'elementEnd'===_0x28a211[_0x4fd19f]['type']&&(_0x28a211[_0x4fd19f]['item']['startIndex']=_0x311a6['get'](_0x28a211[_0x4fd19f]['pairId']));}['_processTape'](_0x5494c7){for(let _0x5bab51=0x0;_0x5bab51<_0x5494c7['length'];_0x5bab51++){if('elementStart'===_0x5494c7[_0x5bab51]['type'])_0x5494c7[_0x5bab51]['item']['startIndex']=_0x5bab51;else{if('elementEnd'===_0x5494c7[_0x5bab51]['type']){_0x5494c7[_0x5bab51]['item']['endIndex']=_0x5bab51;const _0x288e56=_0x5494c7[_0x5bab51]['item']['startIndex'];_0x5494c7[_0x288e56]['pairId']=_0x5494c7[_0x5bab51]['id'],_0x5494c7[_0x5bab51]['pairId']=_0x5494c7[_0x288e56]['id'];}else _0x5494c7[_0x5bab51]['item']['startIndex']=_0x5bab51,_0x5494c7[_0x5bab51]['item']['endIndex']=_0x5bab51,_0x5494c7[_0x5bab51]['pairId']=null;}_0x5494c7[_0x5bab51]['markersStart']||(_0x5494c7[_0x5bab51]['markersStart']=[],_0x5494c7[_0x5bab51]['markersEnd']=[]);}}['_markInsertions'](_0xc230c,_0x5609b4){const _0x5a2f14=_0xc230c['filter'](_0x5390f8=>!_0x5390f8['isAdded']);for(let _0x4bd9f6=0x0;_0x4bd9f6<_0x5609b4['length'];_0x4bd9f6++)_0x5609b4[_0x4bd9f6]['isAdded']&&(_0x5a2f14[_0x4bd9f6]['isAdded']=_0x5609b4[_0x4bd9f6]['isAdded']);}['_getDiff'](_0x2d841c,_0x3d5443=null){const _0x14c7c6=this['repository']['getRevision'](_0x2d841c),_0x9b43a0=_0x3d5443?this['repository']['getRevision'](_0x3d5443):null,_0x1a9db4=this['_getRevisionsRange'](_0x14c7c6,_0x9b43a0),_0xfe6846=_0x1a9db4[_0x1a9db4['length']-0x1],_0x4ab58=new Map(),_0x1f4425={'model':{},'attributes':{},'changes':[]},_0x4be0a8=new Set(),_0x21b7d3=new Map();for(let _0x5aac3a=_0x1a9db4['length']-0x1;_0x5aac3a>=0x0;_0x5aac3a--){const _0x2776f8=_0x1a9db4[_0x5aac3a];for(const _0x45b303 of Object['keys'](_0x2776f8['diffData']))if(_0x2776f8['diffData'][_0x45b303]['attachChange']){const _0x58a7d5=_0x2776f8['diffData'][_0x45b303]['attachChange'];_0x58a7d5['isAttached']?(_0x4be0a8['add'](_0x45b303),_0x21b7d3['has'](_0x45b303)&&_0x21b7d3['get'](_0x45b303)['userId']==_0x58a7d5['userId']?_0x21b7d3['delete'](_0x45b303):_0x21b7d3['set'](_0x45b303,_0x58a7d5)):_0x21b7d3['has'](_0x45b303)?(_0x4be0a8['delete'](_0x45b303),_0x21b7d3['delete'](_0x45b303)):(_0x4be0a8['add'](_0x45b303),_0x21b7d3['set'](_0x45b303,_0x58a7d5));}else _0x4be0a8['add'](_0x45b303);}for(const _0x523eb0 of _0x4be0a8){const _0x40b0f8=_0x21b7d3['has'](_0x523eb0)&&!_0x21b7d3['get'](_0x523eb0)['isAttached'];let _0xcd647=_0x40b0f8?_0x1a9db4['length']-0x1:0x0;const _0x50adc5=_0x40b0f8?-0x1:0x1;for(;_0x1a9db4[_0xcd647];){const _0x17c0a7=_0x1a9db4[_0xcd647];if(_0x17c0a7['diffData'][_0x523eb0]){const _0x3ae245=_0x40b0f8?_0x17c0a7['diffData'][_0x523eb0]['attributesBefore']:_0x17c0a7['diffData'][_0x523eb0]['attributesAfter'];_0x1f4425['attributes'][_0x523eb0]=_0x3ae245?_0x137baa(_0x3ae245):{};break;}_0xcd647+=_0x50adc5;}}for(const _0x2dce6e of _0x1a9db4){_0x2dce6e['model']={};for(const _0x26bab2 of _0x2dce6e['authors'])_0x4ab58['set'](_0x26bab2['id'],_0x26bab2);for(const _0x4215b7 of _0x4be0a8){const _0x4637a1=_0x2dce6e['diffData'][_0x4215b7]?_0x2dce6e['diffData'][_0x4215b7]['insertions']:'[]',_0x2041e5=_0x2dce6e['diffData'][_0x4215b7]?_0x2dce6e['diffData'][_0x4215b7]['deletions']:'[]';_0x2dce6e['model'][_0x4215b7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4637a1),'deletions':this['_utils']['_makeModelFromViewString'](_0x2041e5)};}}for(const _0x264bb0 of _0x4be0a8){let _0x4243d6=null,_0x5c3aff=0x0;const _0x341c5a=new Map(Array['from'](_0x14c7c6['model'][_0x264bb0]['insertions']['markers'])['filter'](([_0x5d6b98])=>!_0x5d6b98['startsWith']('revision:')));let _0x63d8b8=0x0;for(const _0xb0ff38 of _0x1a9db4){const _0x1875fe=this['_makeTape'](_0xb0ff38['model'][_0x264bb0]['insertions']);_0xb0ff38==_0x14c7c6?(_0x4243d6=_0x1875fe,_0x5c3aff=_0x4243d6['length'],_0x4243d6['forEach'](_0x4c47f7=>{_0x4c47f7['id']=_0x63d8b8++;}),this['_processTape'](_0x4243d6)):this['_markInsertions'](_0x4243d6,_0x1875fe);const _0x147ad9=_0x4243d6['filter'](_0x281337=>!_0x281337['isAdded'])['map'](_0x27e562=>_0x27e562['id']);let _0x44c0d1=0x0;const _0x541826=this['_makeTape'](_0xb0ff38['model'][_0x264bb0]['deletions']);_0x541826['forEach'](_0xbee548=>{_0xbee548['isRemoved']?_0xbee548['id']=_0x5c3aff++:_0xbee548['id']=_0x147ad9[_0x44c0d1++];}),this['_processTape'](_0x541826),this['_setDistance'](_0x4243d6,'isAdded'),this['_setDistance'](_0x541826,'isRemoved'),_0xb0ff38==_0x14c7c6&&this['_markMarkers'](_0x4243d6,_0x341c5a),_0x4243d6=this['_joinTapes'](_0x4243d6,_0x541826),this['_refreshStartEndIndex'](_0x4243d6),this['_setDistance'](_0x4243d6,'isRemoved');}_0x4243d6=_0x4243d6['filter'](_0x4bcc74=>!(_0x4bcc74['isAdded']&&_0x4bcc74['isRemoved']));const _0xd25ff1=new Map(_0xfe6846['model'][_0x264bb0]['deletions']['markers']),_0x2d9dc1=new Set(_0x341c5a['keys']());for(const _0x19b3c1 of _0xd25ff1['keys']())_0x2d9dc1['delete'](_0x19b3c1);this['_markSuggestions'](_0x4243d6,_0x2d9dc1),this['_fixObsoleteTags'](_0x4243d6),_0x4243d6=this['_removeMissingPairs'](_0x4243d6),_0x4243d6=this['_markMismatchedRemovedTags'](_0x4243d6),_0x4243d6=this['_removeUnsupportedChanges'](_0x4243d6);const {root:_0x2fbfb9,changes:_0x4417ca}=this['_makeModelFromTape'](_0x4243d6,_0x4ab58,_0x264bb0);_0x1f4425['model'][_0x264bb0]=_0x2fbfb9;const _0x314678=_0x21b7d3['get'](_0x264bb0);if(_0x314678){const _0x2be4a5=_0x4ab58['get'](_0x314678['userId']),_0x57a645=new G({'author':_0x2be4a5,'type':_0x314678['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x264bb0});_0x4417ca['unshift'](_0x57a645),_0x1f4425['attributes'][_0x264bb0]['revisionHistoryAttachChange']=_0x57a645['id'];}_0x1f4425['changes']=_0x1f4425['changes']['concat'](_0x4417ca);}return _0x1f4425;}['_markMarkers'](_0x45651b,_0x46ef8c){for(let _0x2b1281=0x0;_0x2b1281<_0x45651b['length'];_0x2b1281++)for(const [_0x25da75,_0x2d465a]of _0x46ef8c)!_0x2d465a['isCollapsed']&&_0x2d465a['start']['isEqual'](_0x45651b[_0x2b1281]['previousPosition'])&&_0x45651b[_0x2b1281]['markersStart']['push'](_0x25da75),_0x2d465a['end']['isEqual'](_0x45651b[_0x2b1281]['nextPosition'])&&_0x45651b[_0x2b1281]['markersEnd']['push'](_0x25da75);}['_joinTapes'](_0x3409e1,_0x8f8fa4){let _0x30bf99=[],_0x5ae6a3=0x0,_0x3bef4a=0x0;for(;_0x5ae6a3<_0x3409e1['length']||_0x3bef4a<_0x8f8fa4['length'];){const _0x2c746e=_0x3409e1[_0x5ae6a3]||{},_0x6d0970=_0x8f8fa4[_0x3bef4a]||{};if(_0x2c746e['id']==_0x6d0970['id'])_0x5ae6a3++,_0x3bef4a++,_0x30bf99['push'](_0x2c746e);else{if(_0x6d0970['isRemoved']&&_0x2c746e['isAdded']){const {commonTape:_0x17264c,iEnd:_0x39ccaf,jEnd:_0x33f037}=this['_threeWayMerge'](_0x3409e1,_0x5ae6a3,_0x8f8fa4,_0x3bef4a);_0x30bf99=_0x30bf99['concat'](_0x17264c),_0x5ae6a3=_0x39ccaf,_0x3bef4a=_0x33f037;}else _0x6d0970['isRemoved']?(_0x3bef4a++,_0x30bf99['push'](_0x6d0970)):(_0x5ae6a3++,_0x30bf99['push'](_0x2c746e));}}return _0x30bf99;}['_markSuggestions'](_0x33c203,_0x3fce5e){const _0x108be6=[];for(let _0x4accf1=0x0;_0x4accf1<_0x33c203['length'];_0x4accf1++){for(let _0x1ff6ef=0x0;_0x1ff6ef<_0x33c203[_0x4accf1]['markersStart']['length'];_0x1ff6ef++){const _0xd4c342=_0x33c203[_0x4accf1]['markersStart'][_0x1ff6ef];if(!_0x3fce5e['has'](_0xd4c342))continue;const {group:_0x4be386,type:_0x36c4b8,authorId:_0x28fa4b}=_0x502c76(_0xd4c342);'revision-suggestion'!=_0x4be386||'insertion'!=_0x36c4b8&&'deletion'!=_0x36c4b8||(_0x108be6['unshift']({'type':_0x36c4b8,'name':_0xd4c342,'userId':_0x28fa4b}),_0x33c203[_0x4accf1]['markersStart']['splice'](_0x1ff6ef,0x1),_0x1ff6ef--);}_0x461fba(_0x33c203[_0x4accf1]);for(let _0x212c86=0x0;_0x212c86<_0x33c203[_0x4accf1]['markersEnd']['length'];_0x212c86++){const _0x1d8e10=_0x33c203[_0x4accf1]['markersEnd'][_0x212c86];if(!_0x3fce5e['has'](_0x1d8e10))continue;const {group:_0xf82496,type:_0xe74e50}=_0x502c76(_0x1d8e10);if('revision-suggestion'!=_0xf82496||'insertion'!=_0xe74e50&&'deletion'!=_0xe74e50)continue;_0x33c203[_0x4accf1]['markersEnd']['splice'](_0x212c86,0x1),_0x212c86--;const _0x53468e=_0x108be6['findIndex'](_0x3b9d30=>_0x3b9d30['name']==_0x1d8e10);_0x53468e>-0x1&&_0x108be6['splice'](_0x53468e,0x1);}}function _0x502c76(_0x55993f){const _0x3f10f3=_0x55993f['split'](':');return{'group':_0x3f10f3[0x0],'type':_0x3f10f3[0x1],'subType':_0x3f10f3['length']>=0x5?_0x3f10f3[0x2]:null,'id':_0x3f10f3['length']<0x5?_0x3f10f3[0x2]:_0x3f10f3[0x3],'authorId':_0x3f10f3['length']<0x5?_0x3f10f3[0x3]:_0x3f10f3[0x4],'markerCount':0x6==_0x3f10f3['length']?_0x3f10f3[0x5]:null};}function _0x461fba(_0x34ab14){for(let _0x679707=0x0;_0x679707<_0x108be6['length'];_0x679707++){if(_0x34ab14['isAdded']&&'insertion'==_0x108be6[_0x679707]['type']&&_0x34ab14['isAdded']['userId']==_0x108be6[_0x679707]['userId'])return _0x34ab14['isAddSuggestion']=_0x108be6[_0x679707],void delete _0x34ab14['isAdded'];if(!_0x34ab14['isAdded']&&!_0x34ab14['isRemoved']&&'deletion'==_0x108be6[_0x679707]['type'])return void(_0x34ab14['isRemoveSuggestion']=_0x108be6[_0x679707]);}}}['_setDistance'](_0x475f05,_0x3b9277){let _0x1a04cc=0x0,_0x21fbe9=!0x1;const _0x4e6a37=new Map();for(const _0x1e4e40 of _0x475f05)_0x1e4e40[_0x3b9277]?_0x21fbe9&&(_0x1a04cc++,_0x21fbe9=!0x1):(_0x1a04cc++,_0x21fbe9=!0x0),_0x4e6a37['set'](_0x1e4e40['id'],_0x1a04cc);for(let _0x4e111c=0x0;_0x4e111c<_0x475f05['length'];_0x4e111c++){if('isRemoved'==_0x3b9277&&_0x475f05[_0x4e111c]['isAdded']||'isAdded'==_0x3b9277&&_0x475f05[_0x4e111c]['isRemoved'])continue;if('text'==_0x475f05[_0x4e111c]['type']){_0x475f05[_0x4e111c]['distance']=0x0;continue;}const _0x2ad999=_0x4e6a37['get'](_0x475f05[_0x4e111c]['pairId']),_0x297b0d=_0x4e6a37['get'](_0x475f05[_0x4e111c]['id']);_0x475f05[_0x4e111c]['distance']=_0x2ad999-_0x297b0d;}}['_getRevisionsRange'](_0x541e8c,_0xafb096,_0x52b137=!0x1){const _0x4f3135=[];let _0x55b9a4=this['repository']['getIndex'](_0x541e8c),_0x29a91f=this['repository']['getIndex'](_0xafb096);for(-0x1==_0x29a91f&&(_0x29a91f=this['repository']['_revisions']['length'],_0x52b137=!0x1);_0x55b9a4<_0x29a91f;)_0x4f3135['push'](this['repository']['getRevision'](_0x55b9a4)),_0x55b9a4++;return _0x52b137&&_0x4f3135['push'](this['repository']['getRevision'](_0x55b9a4)),_0x4f3135;}['_threeWayMerge'](_0x5e14f7,_0x379b0c,_0x22f2fd,_0x423c5b){const _0x3807cf=this['editor']['model']['schema'];let _0x122c67=_0x379b0c;for(;_0x5e14f7[_0x122c67]&&_0x5e14f7[_0x122c67]['isAdded'];)_0x122c67++;let _0x7e16e3=_0x423c5b;for(;_0x22f2fd[_0x7e16e3]&&_0x22f2fd[_0x7e16e3]['isRemoved'];)_0x7e16e3++;_0x4aae70(_0x5e14f7,_0x379b0c,_0x122c67),_0x4aae70(_0x22f2fd,_0x423c5b,_0x7e16e3);const _0x3f56ab=_0x22f2fd['slice'](_0x423c5b,_0x7e16e3)['concat'](_0x5e14f7['slice'](_0x379b0c,_0x122c67));return _0x3f56ab['sort']((_0x121c30,_0x14d55a)=>_0x121c30['side']!=_0x14d55a['side']?_0x121c30['side']-_0x14d55a['side']:_0x121c30['level']!=_0x14d55a['level']?_0x121c30['level']-_0x14d55a['level']:_0x121c30['distance']!=_0x14d55a['distance']?_0x14d55a['distance']-_0x121c30['distance']:!!_0x121c30['isAdded']!=!!_0x14d55a['isAdded']?-0x1==_0x121c30['side']||0x0==_0x121c30['side']?_0x121c30['isAdded']?-0x1:0x1:_0x121c30['isAdded']?0x1:-0x1:_0x121c30['index']-_0x14d55a['index']),{'commonTape':_0x3f56ab,'iEnd':_0x122c67,'jEnd':_0x7e16e3};function _0x4aae70(_0x89e2af,_0x4fbc41,_0x31951b){let _0x1484f1=-0x1,_0x10c349=Number['POSITIVE_INFINITY'],_0x31cfac=!0x0;for(let _0x53b765=_0x4fbc41;_0x53b765<_0x31951b;_0x53b765++)if(_0x3807cf['isInline'](_0x89e2af[_0x53b765]['item'])||(_0x31cfac=!0x1),_0x89e2af[_0x53b765]['item']['startIndex']<_0x4fbc41&&(_0x1484f1=_0x53b765),_0x89e2af[_0x53b765]['item']['endIndex']>=_0x31951b){_0x10c349=_0x53b765;break;}_0x31cfac&&(_0x1484f1=_0x31951b-0x1);for(let _0x1442fd=_0x4fbc41;_0x1442fd<_0x31951b;_0x1442fd++)_0x89e2af[_0x1442fd]['side']=_0x1442fd<=_0x1484f1?-0x1:_0x1442fd<_0x10c349?0x0:0x1,_0x89e2af[_0x1442fd]['index']=_0x1442fd;let _0x144e91=0x0;for(let _0x1fc907=_0x4fbc41;_0x1fc907<=_0x1484f1;_0x1fc907++)0x0==_0x89e2af[_0x1fc907]['distance']?_0x89e2af[_0x1fc907]['level']=_0x144e91:(_0x144e91++,_0x89e2af[_0x1fc907]['level']=_0x144e91,_0x144e91++);for(let _0x1fa00c=_0x4fbc41;_0x1fa00c<_0x31951b;_0x1fa00c++)0x0==_0x89e2af[_0x1fa00c]['side']&&(_0x89e2af[_0x1fa00c]['level']=_0x144e91);_0x144e91=0x0;for(let _0x8d3ddd=_0x31951b-0x1;_0x8d3ddd>=_0x10c349;_0x8d3ddd--)0x0==_0x89e2af[_0x8d3ddd]['distance']?_0x89e2af[_0x8d3ddd]['level']=_0x144e91:(_0x144e91--,_0x89e2af[_0x8d3ddd]['level']=_0x144e91,_0x144e91--);}}['_fixObsoleteTags'](_0x15751f){const _0x24f8e4=new Map(),_0x41fce2=this['editor']['model']['schema'];for(let _0x57149a=0x1;_0x57149a<_0x15751f['length'];_0x57149a++){let _0x3fcc52,_0x2c0d22,_0x5b1eb3;const _0x1f02bc=_0x15751f[_0x57149a],_0x5ae162=_0x15751f[_0x57149a-0x1];if('text'==_0x1f02bc['type'])continue;if(_0x1f02bc['type']!=_0x5ae162['type'])continue;if(!_0x41fce2['isBlock'](_0x5ae162['item'])||_0x41fce2['isLimit'](_0x5ae162['item']))continue;if(!_0x41fce2['isBlock'](_0x1f02bc['item'])||_0x41fce2['isLimit'](_0x1f02bc['item']))continue;if((_0x15751f[_0x57149a]['isAdded']||_0x15751f[_0x57149a]['isAddSuggestion'])&&_0x15751f[_0x57149a-0x1]['isRemoved'])_0x3fcc52=_0x15751f[_0x57149a],_0x2c0d22=_0x15751f[_0x57149a-0x1],_0x5b1eb3=_0x57149a-0x1;else{if(!_0x15751f[_0x57149a]['isRemoved']||!_0x15751f[_0x57149a-0x1]['isAdded']&&!_0x15751f[_0x57149a-0x1]['isAddSuggestion'])continue;_0x3fcc52=_0x15751f[_0x57149a-0x1],_0x2c0d22=_0x15751f[_0x57149a],_0x5b1eb3=_0x57149a;}const _0x41ca79=_0x3fcc52['level']==_0x2c0d22['level'],_0x4a22ff=Math['abs'](_0x3fcc52['level'])<Math['abs'](_0x2c0d22['level'])&&0x0==_0x2c0d22['distance'];(_0x41ca79||_0x4a22ff)&&(_0x24f8e4['set'](_0x2c0d22['id'],_0x3fcc52['id']),_0x15751f['splice'](_0x5b1eb3,0x1),_0x57149a--,_0x3fcc52['isAdded']=!0x1);}for(let _0x2e39f0=0x0;_0x2e39f0<_0x15751f['length'];_0x2e39f0++)_0x24f8e4['has'](_0x15751f[_0x2e39f0]['pairId'])&&(_0x15751f[_0x2e39f0]['pairId']=_0x24f8e4['get'](_0x15751f[_0x2e39f0]['pairId']));}['_removeMissingPairs'](_0x55c4f5){const _0xf9f99a=new Set(_0x55c4f5['map'](_0x140b9a=>_0x140b9a['id']));for(let _0x1b8808=0x0;_0x1b8808<_0x55c4f5['length'];_0x1b8808++)_0xf9f99a['has'](_0x55c4f5[_0x1b8808]['pairId'])||0x0==_0x55c4f5[_0x1b8808]['distance']||(_0x55c4f5[_0x1b8808]['isIncorrect']=!0x0);return _0x55c4f5['filter'](_0x128aec=>!_0x128aec['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3472aa){const _0x2ac0b4=new Set();for(let _0x76887b=0x0;_0x76887b<_0x3472aa['length'];_0x76887b++){if(_0x2ac0b4['has'](_0x3472aa[_0x76887b]['id'])&&_0x3472aa[_0x76887b]['isRemoved']&&(_0x3472aa[_0x76887b]['isIncorrect']=!0x0),_0x3472aa[_0x76887b]['isIncorrect'])continue;if(0x0==_0x3472aa[_0x76887b]['distance'])continue;if('elementStart'!=_0x3472aa[_0x76887b]['type'])continue;if(null==_0x3472aa[_0x76887b]['pairId'])continue;let _0x9fae8b=_0x76887b+0x1,_0x1f2ddd=0x0;for(;_0x3472aa[_0x9fae8b]['id']!=_0x3472aa[_0x76887b]['pairId'];)'elementStart'==_0x3472aa[_0x9fae8b]['type']?_0x1f2ddd++:'elementEnd'==_0x3472aa[_0x9fae8b]['type']&&_0x1f2ddd--,_0x9fae8b++;if(0x0!=_0x1f2ddd){if(_0x3472aa[_0x76887b]['isRemoved'])_0x3472aa[_0x76887b]['isIncorrect']=!0x0;else{for(;_0x9fae8b!=_0x76887b;)_0x3472aa[_0x9fae8b]['isRemoved']&&0x0!=_0x3472aa[_0x9fae8b]['distance']&&(_0x3472aa[_0x9fae8b]['isIncorrect']=!0x0,_0x2ac0b4['add'](_0x3472aa[_0x9fae8b]['pairId'])),_0x9fae8b--;}}}return _0x3472aa['filter'](_0x2ffc70=>!_0x2ffc70['isIncorrect']);}['_removeUnsupportedChanges'](_0x44074c){const _0x35d4fc=this['editor']['model']['schema'];for(let _0x56e88b=0x0;_0x56e88b<_0x44074c['length'];_0x56e88b++){if(!(_0x44074c[_0x56e88b]['isAdded']||_0x44074c[_0x56e88b]['isAddSuggestion']||_0x44074c[_0x56e88b]['isRemoved']||_0x44074c[_0x56e88b]['isRemoveSuggestion']))continue;if(0x0==_0x44074c[_0x56e88b]['distance'])continue;const _0x12344e=_0x44074c[_0x56e88b]['item'];_0x35d4fc['isBlock'](_0x12344e)||_0x35d4fc['isLimit'](_0x12344e)||(_0x44074c[_0x56e88b]['isAdded']&&delete _0x44074c[_0x56e88b]['isAdded'],_0x44074c[_0x56e88b]['isAddSuggestion']&&delete _0x44074c[_0x56e88b]['isAddSuggestion'],_0x44074c[_0x56e88b]['isRemoveSuggestion']&&delete _0x44074c[_0x56e88b]['isRemoveSuggestion'],_0x44074c[_0x56e88b]['isRemoved']&&(_0x44074c[_0x56e88b]['isIncorrect']=!0x0));}return _0x44074c['filter'](_0x1c7dbc=>!_0x1c7dbc['isIncorrect']);}['_makeModelFromTape'](_0x17b8de,_0x2cf662,_0x5f134d){const _0x5487c7=new _0x46c173(),_0x24bdbc=[],_0x54044b=new Map(),_0x47d339=this['editor']['model'],_0x5274bc=_0x47d339['schema'],_0x323501=[_0x5487c7],_0x5aa9b7={},_0x5beb40={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4dce38=null;const _0x29c205=[0x0];for(let _0x1a9908=0x0;_0x1a9908<_0x17b8de['length'];_0x1a9908++)if('elementStart'===_0x17b8de[_0x1a9908]['type']){_0x17b8de[_0x1a9908]['previousPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205);const _0xca6ca8=new _0x166fba(_0x17b8de[_0x1a9908]['item']['name'],_0x17b8de[_0x1a9908]['item']['getAttributes']());_0x323501[0x0]['_appendChild'](_0xca6ca8),_0x29c205['push'](0x0),_0x323501['unshift'](_0xca6ca8),_0x17b8de[_0x1a9908]['nextPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205);}else'elementEnd'===_0x17b8de[_0x1a9908]['type']?(_0x323501['shift'](),_0x17b8de[_0x1a9908]['previousPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205),_0x29c205['pop'](),_0x29c205[_0x29c205['length']-0x1]++,_0x17b8de[_0x1a9908]['nextPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205)):(_0x17b8de[_0x1a9908]['previousPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205),_0x4dce38?_0x4dce38['_data']+=_0x17b8de[_0x1a9908]['item']['data']:_0x4dce38=new _0x3d9bed(_0x17b8de[_0x1a9908]['item']['data'],_0x17b8de[_0x1a9908]['item']['getAttributes']()),_0x17b8de[_0x1a9908+0x1]&&'text'===_0x17b8de[_0x1a9908+0x1]['type']&&_0x4ac410(_0x4dce38,_0x17b8de[_0x1a9908+0x1]['item'])||(_0x323501[0x0]['_appendChild'](_0x4dce38),_0x4dce38=null),_0x29c205[_0x29c205['length']-0x1]+=_0x17b8de[_0x1a9908]['item']['offsetSize'],_0x17b8de[_0x1a9908]['nextPosition']=_0x47d339['createPositionFromPath'](_0x5487c7,_0x29c205));for(let _0xeea267=0x0;_0xeea267<_0x17b8de['length'];_0xeea267++){const _0x54e8ea=_0x17b8de[_0xeea267]['previousPosition'],_0x4a0477=_0x17b8de[_0xeea267]['nextPosition'];for(const _0x50826b of _0x17b8de[_0xeea267]['markersStart'])_0x54044b['set'](_0x50826b,{'start':_0x54e8ea,'end':null});_0x47a58e('isRemoveSuggestion',_0xeea267,_0x54e8ea,_0x4a0477),_0x47a58e('isAddSuggestion',_0xeea267,_0x54e8ea,_0x4a0477),_0x47a58e('isRemoved',_0xeea267,_0x54e8ea,_0x4a0477),_0x47a58e('isAdded',_0xeea267,_0x54e8ea,_0x4a0477);for(const _0x4403bf of _0x17b8de[_0xeea267]['markersEnd']){const _0x556123=_0x54044b['get'](_0x4403bf);_0x556123?_0x556123['end']=_0x4a0477:_0x54044b['set'](_0x4403bf,{'start':_0x4a0477,'end':_0x4a0477});}}for(const [_0xadd258,_0x53f8a2]of _0x54044b){const _0x3953ef=this['editor']['model']['createRange'](_0x53f8a2['start'],_0x53f8a2['end']);_0x5487c7['markers']['set'](_0xadd258,_0x3953ef);}return _0x24bdbc['sort']((_0x59ac59,_0x507743)=>{const _0xfb0ee2=_0x5487c7['markers']['get']('revision:'+_0x59ac59['id']),_0x220c53=_0x5487c7['markers']['get']('revision:'+_0x507743['id']);return _0xfb0ee2['start']['isBefore'](_0x220c53['start'])?-0x1:_0xfb0ee2['start']['isAfter'](_0x220c53['start'])?0x1:_0xfb0ee2['end']['isBefore'](_0x220c53['end'])?-0x1:_0xfb0ee2['end']['isAfter'](_0x220c53['end'])?0x1:'add'===_0x59ac59['type']?-0x1:0x1;}),{'root':_0x5487c7,'changes':_0x24bdbc};function _0x47a58e(_0x1f51cd,_0x30c226,_0x2f5eed,_0x4dd33c){const _0x3b3772=!!_0x17b8de[_0x30c226][_0x1f51cd],_0x5e4be7=_0x3b3772?_0x17b8de[_0x30c226][_0x1f51cd]['userId']:null,_0x5a5128=_0x30c226===_0x17b8de['length']-0x1,_0x2a2261=_0x5beb40[_0x1f51cd][0x0],_0x5a9b4a=_0x5274bc['isObject'](_0x17b8de[_0x30c226]['item']);!_0x5aa9b7[_0x1f51cd]&&_0x3b3772?_0x5aa9b7[_0x1f51cd]={'start':_0x2f5eed,'tapeItem':_0x17b8de[_0x30c226],'userId':_0x5e4be7,'type':_0x1f51cd}:_0x5aa9b7[_0x1f51cd]&&!_0x3b3772?(_0x5aa9b7[_0x1f51cd]['end']=_0x2f5eed,_0x30438f(_0x5aa9b7[_0x1f51cd]),_0x5aa9b7[_0x1f51cd]=null):_0x5aa9b7[_0x1f51cd]&&_0x3b3772&&_0x5aa9b7[_0x1f51cd]['userId']!==_0x5e4be7&&(_0x5aa9b7[_0x1f51cd]['end']=_0x2f5eed,_0x2a2261&&_0x2a2261['userId']===_0x5aa9b7[_0x1f51cd]['userId']||_0x30438f(_0x5aa9b7[_0x1f51cd]),_0x5aa9b7[_0x1f51cd]={'start':_0x2f5eed,'tapeItem':_0x17b8de[_0x30c226],'userId':_0x5e4be7,'type':_0x1f51cd}),_0x5aa9b7[_0x1f51cd]&&_0x5a9b4a&&('elementStart'!==_0x17b8de[_0x30c226]['type']||_0x2a2261&&_0x2a2261['userId']===_0x5e4be7||_0x5beb40[_0x1f51cd]['unshift']({'userId':_0x5e4be7,'object':_0x17b8de[_0x30c226]['item'],'change':_0x5aa9b7[_0x1f51cd]}),'elementEnd'===_0x17b8de[_0x30c226]['type']&&_0x2a2261&&_0x2a2261['object']===_0x17b8de[_0x30c226]['item']&&(_0x5beb40[_0x1f51cd]['shift'](),_0x5aa9b7[_0x1f51cd]=_0x2a2261['change'])),_0x5aa9b7[_0x1f51cd]&&_0x5a5128&&(_0x5aa9b7[_0x1f51cd]['end']=_0x4dd33c,_0x30438f(_0x5aa9b7[_0x1f51cd]),_0x5aa9b7[_0x1f51cd]=null);}function _0x30438f({start:_0xbe59ce,end:_0x49959f,tapeItem:_0x2e5403,userId:_0x47616b,type:_0x556a00}){const _0x2f825e=_0x2e5403['item'],_0x3aba6a=_0x47d339['schema']['isBlock'](_0x2f825e)&&!_0x47d339['schema']['isLimit'](_0x2f825e),_0x2aae77=_0xbe59ce['nodeAfter']==_0x49959f['parent']&&_0x49959f['isAtStart'];if(_0x3aba6a&&_0x2aae77)return;const _0x127234=_0x47d339['createRange'](_0xbe59ce,_0x49959f),_0x19b29f=_0x2cf662['get'](_0x47616b),_0xd7fc53=new G({'author':_0x19b29f,'type':'isAdded'==_0x556a00||'isAddSuggestion'==_0x556a00?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x556a00||'isRemoveSuggestion'==_0x556a00},'createdAt':new Date(),'rootName':_0x5f134d});_0x24bdbc['push'](_0xd7fc53),_0x5487c7['markers']['set']('revision:'+_0xd7fc53['id'],_0x127234);}function _0x4ac410(_0x32d5c7,_0x1f9da5){const _0x1eaf61=_0x32d5c7['getAttributes'](),_0x42865a=_0x1f9da5['getAttributes']();for(const _0x5a874f of _0x1eaf61){if(_0x5a874f[0x1]!==_0x1f9da5['getAttribute'](_0x5a874f[0x0]))return!0x1;_0x42865a['next']();}return _0x42865a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xd2041a=>{const _0x27c2a4=_0xd2041a['markerName']['split'](':')[0x1],_0x15304f=this['_getChangeFromId'](_0x27c2a4);if(!_0x15304f)return null;const _0x3b8466='add'==_0x15304f['type']?'insertion':'deletion',_0x1b802e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b8466];return _0x15304f['data']['isSuggestion']&&_0x1b802e['push']('ck-suggestion-marker-'+_0x3b8466+'-new'),this['activeChange']==_0x15304f&&_0x1b802e['push']('ck-suggestion-marker--active'),{'classes':_0x1b802e,'attributes':{'data-change-id':_0x27c2a4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x272a6d=>{_0x272a6d['on']('element:pre',(_0x3e0036,_0x4f7290,_0x2d07e7)=>{const _0x343f6a=_0x4f7290['viewItem']['getChild'](0x0);if(!_0x343f6a||!_0x343f6a['is']('element','code'))return;if(!_0x2d07e7['consumable']['consume'](_0x343f6a,{'attributes':['vid_start','vid_end']}))return;const _0x60f4bf=_0x4f7290['modelRange']['start']['nodeAfter'];_0x2d07e7['writer']['setAttribute']('vid_start',_0x343f6a['getAttribute']('vid_start'),_0x60f4bf),_0x2d07e7['writer']['setAttribute']('vid_end',_0x343f6a['getAttribute']('vid_end'),_0x60f4bf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x26731a=>{_0x26731a['on']('element',(_0x270230,_0xde6dee,_0x450f86)=>{if(!_0x450f86['consumable']['consume'](_0xde6dee['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xde6dee['modelRange']['isCollapsed'])return;const _0x120686=_0xde6dee['modelRange']['start']['nodeAfter'];_0x120686['hasAttribute']('vid_start')||_0x120686['hasAttribute']('vid')||(_0x450f86['writer']['setAttribute']('vid_start',_0xde6dee['viewItem']['getAttribute']('vid_start'),_0x120686),_0x450f86['writer']['setAttribute']('vid_end',_0xde6dee['viewItem']['getAttribute']('vid_end'),_0x120686));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1c6370=>_0x1c6370['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5e1970,[,_0x59fa06])=>{['vid_start','vid_end','vid']['includes'](_0x59fa06)&&(_0x5e1970['return']=!0x0,_0x5e1970['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4d2a62=>{_0x4d2a62['on']('attribute:vid',(_0x47a3a3,_0x19c393,_0x38c352)=>{if('\x20'!=_0x19c393['item']['data']||_0x19c393['item']['parent']['maxOffset']>0x1)return;if(!_0x38c352['consumable']['consume'](_0x19c393['item'],_0x47a3a3['name']))return;const _0x36445f=_0x38c352['writer'],_0x226675=_0x38c352['mapper']['toViewRange'](_0x19c393['range']);_0x36445f['wrap'](_0x226675,_0x36445f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xaf8401){const _0xc21bba=_0xaf8401['plugins']['get']('RevisionViewer');return(_0x2966ad,_0x31db0c,_0xfd5058)=>{const _0xae04b9=_0x31db0c['markerName']['split'](':')[0x1],_0x3acbbd=_0xc21bba['_getChangeFromId'](_0xae04b9);if(!_0x3acbbd)return null;const _0x4b6e27='add'==_0x3acbbd['type']?'split':'merge';if(!_0xfd5058['consumable']['test'](_0x31db0c['markerRange'],_0x2966ad['name']))return;const _0x3134ea=_0x31db0c['markerRange']['getWalker'](),_0x4a6689=_0x31db0c['markerRange']['start'],_0x4c0692=_0xaf8401['model']['schema'];let _0x4f3aae=null,_0x401e4f=null,_0x37c7a8=!0x1,_0x5e3f3e=!0x1;for(const _0x1187e1 of _0x3134ea){const _0x3ab63b=_0x1187e1['item'];_0x37c7a8=_0x37c7a8||_0x4c0692['isContent'](_0x3ab63b);const _0x25f1bd=_0xfd5058['mapper']['toViewElement'](_0x3ab63b);if(_0x25f1bd&&_0x25f1bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1187e1['type']&&(_0x4c0692['isBlock'](_0x3ab63b)&&!_0x4c0692['isLimit'](_0x3ab63b)&&(_0x3ab63b['nextSibling']||_0x4a6689['isAtEnd']?_0x4f3aae&&_0x4f3aae['parent']==_0x3ab63b||(_0x4f3aae=_0x3ab63b,_0x530e76(_0x1187e1['previousPosition']),_0x5e3f3e=!0x0):_0x401e4f=_0x401e4f||_0x1187e1['previousPosition']));}function _0x530e76(_0x3805d5){const _0x3eb5ea=_0xfd5058['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b6e27}),_0x18dd4e=_0xfd5058['mapper']['toViewPosition'](_0x3805d5);_0x3acbbd['data']['isSuggestion']&&_0xfd5058['writer']['addClass']('ck-suggestion-marker-'+_0x4b6e27+'-new',_0x3eb5ea),_0xc21bba['activeChange']==_0x3acbbd&&_0xfd5058['writer']['addClass']('ck-suggestion-marker--active',_0x3eb5ea),_0xfd5058['writer']['insert'](_0x18dd4e,_0x3eb5ea),_0xfd5058['mapper']['bindElementToMarker'](_0x3eb5ea,_0x31db0c['markerName']);}_0x37c7a8||_0x5e3f3e||!_0x401e4f||_0x530e76(_0x401e4f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3e0d41,_0x181fce,_0x3909d6)=>{const _0x3841f0=_0x3909d6['mapper']['markerNameToElements'](_0x181fce['markerName']);if(_0x3841f0){for(const _0x5c89db of _0x3841f0)(_0x5c89db['hasClass']('ck-suggestion-marker-split')||_0x5c89db['hasClass']('ck-suggestion-marker-merge'))&&(_0x3909d6['mapper']['unbindElementFromMarkerName'](_0x5c89db,_0x181fce['markerName']),_0x3909d6['writer']['remove'](_0x5c89db));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2269fc,_0x5dfb56,_0x2bb695)=>{const _0x3456ac=_0x5dfb56['markerName']['split'](':')[0x1],_0x1efa30=this['_getChangeFromId'](_0x3456ac);if(!_0x1efa30)return null;const _0x372c48='add'==_0x1efa30['type']?'split':'merge';if(_0x2bb695['consumable']['test'](_0x5dfb56['markerRange'],_0x2269fc['name']))for(const _0xf1da46 of _0x5dfb56['markerRange']['getItems']()){if(!_0xf1da46['is']('element','softBreak'))continue;const _0x211db8=_0x2bb695['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372c48}),_0x49a20f=_0x2bb695['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xf1da46));_0x1efa30['data']['isSuggestion']&&_0x2bb695['writer']['addClass']('ck-suggestion-marker-'+_0x372c48+'-new',_0x211db8),this['activeChange']==_0x1efa30&&_0x2bb695['writer']['addClass']('ck-suggestion-marker--active',_0x211db8),_0x2bb695['writer']['insert'](_0x49a20f,_0x211db8),_0x2bb695['mapper']['bindElementToMarker'](_0x211db8,_0x5dfb56['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52ea31=>{for(const _0x234954 of this['editor']['model']['document']['getRootNames']()){const _0x12e6a8=this['editor']['model']['document']['getRoot'](_0x234954),_0x1b0f3c=this['editor']['editing']['view']['document']['getRoot'](_0x234954);if(_0x1b0f3c){const _0x3d90e4=_0x12e6a8['getAttribute']('revisionHistoryAttachChange');if(_0x52ea31['removeAttribute']('data-change-id',_0x1b0f3c),_0x52ea31['removeClass']('ck-revision-history-root-add',_0x1b0f3c),_0x52ea31['removeClass']('ck-revision-history-root-remove',_0x1b0f3c),_0x52ea31['removeClass']('ck-revision-history-root--active',_0x1b0f3c),_0x3d90e4){const _0x106265=this['_getChangeFromId'](_0x3d90e4);if(!_0x106265)return null;_0x52ea31['setAttribute']('data-change-id',_0x3d90e4,_0x1b0f3c),_0x52ea31['addClass']('ck-revision-history-root-'+_0x106265['type'],_0x1b0f3c),this['activeChange']==_0x106265&&_0x52ea31['addClass']('ck-revision-history-root--active',_0x1b0f3c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x29df21=>'revision-comment:'+_0x29df21,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xdfbcb9=>'revision-suggestion:'+_0xdfbcb9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x46cc68=>({'name':'suggestion:'+_0x46cc68,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1f249f=>{const _0x42b25e=_0x1f249f['markerName']['split'](':')[0x1];return'insertion'!=_0x42b25e&&'deletion'!=_0x42b25e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x42b25e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x267fad,_0x34ca10,_0x4cec88)=>{const _0x4d7da4=_0x4cec88['mapper']['markerNameToElements'](_0x34ca10['markerName']);if(_0x4d7da4){for(const _0x3f754f of _0x4d7da4)_0x3f754f['is']('uiElement')&&(_0x4cec88['mapper']['unbindElementFromMarkerName'](_0x3f754f,_0x34ca10['markerName']),_0x4cec88['writer']['remove'](_0x3f754f));}},{'priority':'high'});}['_getChangeFromId'](_0x5952f2){return this['_changeIdToChange']['get'](_0x5952f2);}['_getViewForChange'](_0x20df2c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x20df2c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d2dcf,_0x44cddc,_0x45dc5f,_0x9e94c0)=>{_0x9e94c0&&this['_balloon']['remove'](_0x9e94c0),_0x45dc5f&&(this['_balloon']['add']({'view':_0x45dc5f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x365128=this['editor']['editing'],_0x38cd68=this['_getChangeFromId'](_0x45dc5f['changeId']);let _0x451b74;if(_0x38cd68['data']['isOnRoot']){const _0x315829=_0x365128['view']['getDomRoot'](_0x38cd68['rootName']);_0x451b74=Array['from'](_0x315829['getClientRects']());}else{const _0xafff70=this['editor']['model']['markers']['get']('revision:'+_0x45dc5f['changeId']);_0x451b74=Array['from'](_0x365128['mapper']['markerNameToElements'](_0xafff70['name']))['map'](_0x52ea12=>_0x365128['view']['domConverter']['mapViewToDom'](_0x52ea12))['map'](_0x195759=>Array['from'](_0x195759['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x451b74[0x0];return _0x451b74['find'](_0x289081=>_0x289081['top']-0x3<=this['_activeViewTarget']['y']&&_0x289081['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x289081['left']-0x3<=this['_activeViewTarget']['x']&&_0x289081['right']+0x3>=this['_activeViewTarget']['x'])||_0x451b74[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2b407f,_0x2e4137,_0x43d838,_0x322638)=>{this['activeView']=_0x43d838?this['_getViewForChange'](_0x43d838):null,this['editor']['model']['change'](()=>{const _0x4b7d49=this['editor']['editing'];_0x322638&&(_0x322638['data']['isOnRoot']?_0x4b7d49['view']['change'](_0x3cee0c=>{_0x3cee0c['removeClass']('ck-revision-history-root--active',_0x4b7d49['view']['document']['getRoot'](_0x322638['rootName']));}):_0x4b7d49['reconvertMarker']('revision:'+_0x322638['id'])),_0x43d838&&(_0x43d838['data']['isOnRoot']?_0x4b7d49['view']['change'](_0x289f25=>{_0x289f25['addClass']('ck-revision-history-root--active',_0x4b7d49['view']['document']['getRoot'](_0x43d838['rootName']));}):_0x4b7d49['reconvertMarker']('revision:'+_0x43d838['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x45ea01,_0x2fc9c7)=>{if(this['activeChange'])return;const _0x49d10c=this['_findChangeIdFromDomTarget'](_0x2fc9c7['target']),_0x32dc56=this['_changeIdToChange']['get'](_0x49d10c);_0x32dc56?(this['_activeViewTarget']={'x':_0x2fc9c7['domEvent']['x'],'y':_0x2fc9c7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x32dc56)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e7aa6,_0x3ac324)=>{const _0x95a110=this['_findChangeIdFromDomTarget'](_0x3ac324['target']),_0x157a44=this['_changeIdToChange']['get'](_0x95a110);_0x157a44?(this['_activeViewTarget']={'x':_0x3ac324['domEvent']['x'],'y':_0x3ac324['domEvent']['y']},_0x157a44===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x157a44):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x28bd1a){do{const _0x3776ce=_0x28bd1a['getAttribute']('data-change-id');if(_0x3776ce)return _0x3776ce;_0x28bd1a=_0x28bd1a['parent'];}while(_0x28bd1a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5b3d57=>{for(const _0x52ca01 of this['editor']['model']['markers'])_0x5b3d57['removeMarker'](_0x52ca01);});}}function Q(_0x1855ff,_0x30efa1){return(_0x55477e,_0x1c8c62,_0x23c644)=>{if(!_0x23c644['consumable']['test'](_0x1c8c62['markerRange'],_0x55477e['name']))return;const _0x40c0e0=_0x1c8c62['markerRange']['getWalker'](),_0xfcd901=_0x1c8c62['markerRange']['start'],_0x434eb9=_0x1855ff['model']['schema'];let _0x34f5a8=null,_0x4f86ed=null,_0x2522b3=!0x1,_0x27b409=!0x1;for(const _0x4dede1 of _0x40c0e0){const _0x1c8391=_0x4dede1['item'];_0x2522b3=_0x2522b3||_0x434eb9['isContent'](_0x1c8391);const _0x31c9fb=_0x23c644['mapper']['toViewElement'](_0x1c8391);if(_0x31c9fb&&_0x31c9fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4dede1['type']&&(_0x434eb9['isBlock'](_0x1c8391)&&!_0x434eb9['isLimit'](_0x1c8391)&&(_0x1c8391['nextSibling']||_0xfcd901['isAtEnd']?_0x34f5a8&&_0x34f5a8['parent']==_0x1c8391||(_0x34f5a8=_0x1c8391,_0x3bca78(_0x4dede1['previousPosition']),_0x27b409=!0x0):_0x4f86ed=_0x4f86ed||_0x4dede1['previousPosition']));}function _0x3bca78(_0x43b6a6){const _0xb916a3=_0x23c644['mapper']['toViewPosition'](_0x43b6a6),_0x1e6b4a=_0x23c644['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30efa1});_0x23c644['writer']['insert'](_0xb916a3,_0x1e6b4a),_0x23c644['mapper']['bindElementToMarker'](_0x1e6b4a,_0x1c8c62['markerName']);}_0x2522b3||_0x27b409||!_0x4f86ed||_0x3bca78(_0x4f86ed);};}class nt extends _0x16e576{constructor(_0x1b83f7){super(_0x1b83f7);const _0xe3367=_0x1b83f7['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0xe3367,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe3367,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x12b15b=this['editor'],_0x46c0b1=_0x12b15b['plugins']['get'](l),_0x3cda23=_0x46c0b1['isReady']?_0x46c0b1['diff']['newRevisionId']:null;_0x12b15b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3cda23);}['refresh'](){const {isReady:_0xf8cad0,isEnabled:_0x5dbbbe,repository:_0x30b57d,diff:_0x244151}=this['editor']['plugins']['get'](l),_0x2da98e=_0x244151&&_0x30b57d['getLaterVisibleRevision'](_0x244151['newRevisionId']);this['isEnabled']=_0xf8cad0&&_0x5dbbbe&&Boolean(_0x2da98e);}}class rt extends _0x16e576{['_step'];constructor(_0x11c8ca,{direction:_0x1c1162}){super(_0x11c8ca);const _0x5c64c7=_0x11c8ca['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x1c1162?0x1:-0x1,this['listenTo'](_0x5c64c7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5c64c7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5c64c7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2d47a8=this['editor'],_0x10f50e=_0x2d47a8['plugins']['get'](l),{isNavigationMode:_0xc6a38f,currentChangeNumber:_0x34b7ab}=_0x10f50e;let _0x4b94ea;if(_0x10f50e['activeChange']=_0xc6a38f?_0x10f50e['diff']['changes']['get'](_0x34b7ab+this['_step']):_0x10f50e['diff']['changes']['first'],_0x10f50e['activeChange']['data']['isOnRoot'])_0x4b94ea=_0x2d47a8['editing']['view']['getDomRoot'](_0x10f50e['activeChange']['rootName']);else{const _0x3bde55=_0x2d47a8['model']['markers']['get']('revision:'+_0x10f50e['activeChange']['id']);_0x4b94ea=_0x827d55(_0x2d47a8['editing'],_0x3bde55);}_0x136051({'target':_0x4b94ea,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xb2ef5e,currentChangeNumber:_0x2fbf13,numberOfChanges:_0xdbb387,isReady:_0x452118,isEnabled:_0x2cdd91}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2cdd91&&_0x452118&&_0xdbb387)&&(!_0xb2ef5e||(0x1===this['_step']?_0x2fbf13<_0xdbb387-0x1:_0x2fbf13>0x0));}}class pi extends _0x4e3ed5{constructor(_0xf27373){super(_0xf27373);const _0x3a6d92=this['bindTemplate'],_0x1997c4=new _0x9c2d04(_0xf27373),_0x17c5cf=new _0x9c2d04(_0xf27373);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',(_0xf698c0,_0x20e4cc)=>_0xf698c0&&_0x20e4cc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x315f29,_0x253a1b,_0x69a7f,_0x247e66)=>{if(!_0x315f29)return R(_0xf27373,'Loading...');if(!_0x69a7f)return R(_0xf27373,'No\x20changes');const _0x195bd3=R(_0xf27373,'NUMBER_OF_CHANGES',_0x69a7f);return _0x247e66?R(_0xf27373,'X_OF_Y_CHANGES',[_0x253a1b+0x1,_0x69a7f]):_0x195bd3;}),_0x1997c4['set']({'label':R(_0xf27373,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5d5bc1}),_0x17c5cf['set']({'label':R(_0xf27373,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x6fb56a}),_0x1997c4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x17c5cf['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1997c4['on']('execute',()=>this['fire']('execute','backward')),_0x17c5cf['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',_0x3a6d92['if']('_isStatusLabelVisible','ck-hidden',_0x51bd36=>!_0x51bd36)]},'children':[{'text':_0x3a6d92['to']('isNavigationMode',_0x302e09=>_0x302e09?R(_0xf27373,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xf27373,'Total')+':\x20')}]},{'text':_0x3a6d92['to']('_statusText')}]},new _0x166061(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1997c4,_0x17c5cf]}]});}}const oe='ck-editor__editable__loading-overlay';class fi extends _0x47aa5e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x36d4db=this['editor']['editing']['view'];_0x36d4db['change'](_0x3f5129=>{for(const _0x5f55b0 of _0x36d4db['document']['roots'])_0x3f5129['addClass'](oe,_0x5f55b0);});}['hide'](){const _0x1bf1d6=this['editor']['editing']['view'];_0x1bf1d6['change'](_0x2539d8=>{for(const _0x50f80f of _0x1bf1d6['document']['roots'])_0x2539d8['removeClass'](oe,_0x50f80f);});}}class u extends _0x47aa5e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,fi];}['init'](){const _0x468117=this['editor'],_0x46b063=_0x468117['plugins']['get'](l),_0x5215b6=_0x468117['plugins']['get'](fi);_0x468117['ui']['componentFactory']['add']('exitToEditing',_0x34dc85=>{const _0x2055d4=new _0x9c2d04(_0x34dc85);return _0x2055d4['set']({'label':R(_0x34dc85,'Back\x20to\x20editing'),'icon':_0x58aef7,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2055d4,'execute',()=>{_0x468117['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2055d4;}),_0x468117['ui']['componentFactory']['add']('restoreRevision',_0x5d0ef2=>{const _0x2508a5=new _0x9c2d04(_0x5d0ef2);return _0x2508a5['set']({'label':R(_0x5d0ef2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2508a5['bind']('isEnabled')['to'](_0x468117['commands']['get']('restoreRevision')),this['listenTo'](_0x2508a5,'execute',()=>_0x468117['execute']('restoreRevision')),_0x2508a5;}),_0x468117['ui']['componentFactory']['add']('changesNavigation',_0x280c1f=>{const _0x1e9de0=new pi(_0x280c1f),_0x7d841f=_0x468117['commands']['get']('showPreviousChange'),_0x3188ba=_0x468117['commands']['get']('showNextChange');return _0x1e9de0['bind']('isBackwardNavigationEnabled')['to'](_0x7d841f,'isEnabled'),_0x1e9de0['bind']('isForwardNavigationEnabled')['to'](_0x3188ba,'isEnabled'),_0x1e9de0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x46b063),this['listenTo'](_0x1e9de0,'execute',(_0x44ed72,_0x5a5807)=>{_0x468117['execute']('forward'===_0x5a5807?'showNextChange':'showPreviousChange');}),_0x1e9de0;}),_0x5215b6['show'](),_0x46b063['on']('change:isReady',(_0x72b050,_0x1f26a1,_0x2b040f)=>{_0x2b040f?_0x5215b6['hide']():_0x5215b6['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5f5188,_0x19ea4a){super(_0x5f5188,_0x19ea4a);const _0x1572ee=this['bindTemplate'];this['set']({'label':R(_0x5f5188,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5f5188,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1572ee['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x48a2df=this['fieldView']['element'];this['_tooltipString']=_0x48a2df['scrollWidth']>_0x48a2df['clientWidth']&&_0x48a2df['value']||'';}}class ni extends _0x4e3ed5{constructor(_0x13c211,_0xea7141,_0x10eefd){super(_0x13c211);const _0x4153cc=new _0x18ac17();_0x4153cc['set']({'content':_0xbff5dd,'viewBox':'0\x200\x2011\x2010'});const _0xe74486=['ck','ck-revision-history-sidebar__revision-author'];_0x10eefd&&_0xe74486['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1188ec=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13c211,_0x10eefd?'Revision\x20creator':'Revision\x20author')},'children':[_0x4153cc,_0xea7141['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xe74486},'children':_0x1188ec});}}function ci(_0x213bb5,_0x5b32fb){const _0x10cfce=_0x213bb5['bindTemplate'],_0x4649f3=_0x213bb5['locale'],_0x43bd90=_0x1930bc(_0x4649f3);_0x43bd90['panelPosition']='sw';const _0x285be8=function(_0x3c4e4f,_0x427494){const _0x11f03d=function(_0x257feb,_0x1d2666){const _0x34aa97=_0x257feb['locale'],_0x39c27c={'Compare\x20against\x20selected':R(_0x34aa97,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x34aa97,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x34aa97,'Restore\x20this\x20revision')};return _0x1d2666['map'](_0x3da6bd=>{const _0x29f750=_0x39c27c[_0x3da6bd['name']];return _0x29f750&&_0x29f750!==_0x3da6bd['name']&&(_0x3da6bd['name']=_0x29f750),_0x3da6bd;});}(_0x3c4e4f,_0x427494),_0x329f74=new _0x49a21d();for(const _0x5c51e7 of _0x11f03d){const _0x30f3c6={'type':'button','model':new to({'label':_0x5c51e7['name'],'class':_0x5c51e7['class'],'withText':!0x0,'role':'menuitem','_action':_0x5c51e7['action']})};_0x30f3c6['model']['bind']('isEnabled')['to'](_0x3c4e4f,'isActionsDropdownOpen',_0x171071=>'function'!=typeof _0x5c51e7['isEnabled']||(!_0x171071||_0x5c51e7['isEnabled'](_0x3c4e4f))),_0x329f74['add'](_0x30f3c6);}return _0x329f74;}(_0x213bb5,_0x5b32fb);return _0x213bb5['bind']('isActionsDropdownOpen')['to'](_0x43bd90,'isOpen'),_0x43bd90['buttonView']['set']({'label':R(_0x4649f3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2999fe}),_0x43bd90['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x10cfce['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x10cfce['to'](_0x533fbc=>_0x533fbc['stopPropagation']())}}),_0x43bd90['on']('execute',_0x8b7519=>{_0x213bb5['isReady']&&'function'==typeof _0x8b7519['source']['_action']&&_0x8b7519['source']['_action'](_0x213bb5);}),_0x57f6ee(_0x43bd90,_0x285be8,{'role':'menu'}),_0x43bd90['listenTo'](_0x213bb5,'change:isActionsDropdownOpen',(_0x1c3d07,_0x17ac8a,_0x133f8a)=>{if(_0x133f8a)for(const _0x1421d1 of _0x43bd90['listView']['items']){const _0x51bf8c=_0x1421d1['children']['first'],_0x27984e=_0x5b32fb['find'](_0x5b2252=>_0x5b2252['action']===_0x51bf8c['_action'])['isVisible'];_0x1421d1['isVisible']=void 0x0===_0x27984e||_0x27984e(_0x213bb5);}}),_0x43bd90;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5ed703,uid as _0x2bd58b,Collection as _0x5d0537,logWarning as _0x392114,FocusTracker as _0x5ad870,KeystrokeHandler as _0x380150,scrollViewportToShowTarget as _0x5ede0c,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x13b40b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x20f484,set as _0x1c71ae,unset as _0x20caac,isEqual as _0x5c2b50}from'es-toolkit/compat';import{Plugin as _0x4b6c22,PendingActions as _0x24ed16,Command as _0x3005ae,ElementApiMixin as _0x54c108,Editor as _0x34b6db}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x14b7c6,getMarkerDomElement as _0x444498,ConfirmMixin as _0xf82478,sanitizeEditorConfig as _0x539216}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x45a9dc,ViewAttributeElement as _0x241726,ViewEmptyElement as _0x4328bf,ViewRawElement as _0x15798c,ViewUIElement as _0x5cd230,ViewDocumentFragment as _0xbc62d3,ViewText as _0x369968,ViewElement as _0x607f5e,ModelElement as _0x24e097,ModelRange as _0x47f923,ModelPosition as _0x5d8173,ModelDocumentFragment as _0xdf8818,ModelText as _0xa4be3c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x255ec9,IconChevronUp as _0x2929a1,IconChevronDown as _0x69ef5d,IconUndo as _0x52a6c2,IconUser as _0x277b2d,IconThreeVerticalDots as _0x1c4fb7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x42afb7,View as _0x3ecb12,submitHandler as _0x507135,LabeledFieldView as ti,createLabeledInputText as _0x5b55e3,createDropdown as _0x195a39,ListView as _0xcfb5d2,ListItemView as _0x276d1b,ButtonView as _0x5c81a4,MenuBarMenuView as _0x6d116d,MenuBarMenuListView as _0x1dc46d,MenuBarMenuListItemView as _0x41dcbf,MenuBarMenuListItemButtonView as _0x33b590,ContextualBalloon as _0x4232c8,ToolbarSeparatorView as _0x19f4e5,IconView as _0x32fa98,addListToDropdown as _0x1a4bab,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3498aa,StickyPanelView as _0x885ae8,ToolbarView as _0x529c76,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3505de}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ed703(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18ca66){super(),this['id']=_0x18ca66['id']||_0x2bd58b(),this['creator']=_0x18ca66['creator']||null,this['authors']=_0x18ca66['authors']||[],this['diffData']=_0x18ca66['diffData']||null,this['toVersion']=_0x18ca66['toVersion']||0x0,this['fromVersion']=_0x18ca66['fromVersion']||0x0,this['set']('name',_0x18ca66['name']||''),this['set']('createdAt',_0x18ca66['createdAt']||new Date()),this['set']('attributes',_0x18ca66['attributes']||{});}['setName'](_0x3a9f28){this['_update']({'name':_0x3a9f28});}['setAttribute'](_0x4d3034,_0x4b88f8){const _0x1bd8a6=_0x20f484(this['attributes']);_0x1c71ae(_0x1bd8a6,_0x4d3034,_0x4b88f8),this['_update']({'attributes':_0x1bd8a6});}['removeAttribute'](_0x320a4b){const _0x4414f2=_0x20f484(this['attributes']);_0x20caac(_0x4414f2,_0x320a4b),this['_update']({'attributes':_0x4414f2});}['_update'](_0x55466c,_0x2aaf8d=!0x1){let _0x1c54d4=!0x1;const _0x535524={'id':this['id']},_0x1dec01=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ad0a0 of _0x1dec01){const _0x4a532d=_0x55466c[_0x1ad0a0];void 0x0!==_0x4a532d&&_0x4a532d!==this[_0x1ad0a0]&&(this[_0x1ad0a0]=_0x4a532d,_0x535524[_0x1ad0a0]=_0x4a532d,_0x1c54d4=!0x0);}_0x1c54d4&&(_0x535524['authors']&&(_0x535524['authorsIds']=_0x535524['authors']['map'](_0x34113a=>_0x34113a['id']),delete _0x535524['authors']),this['fire']('_update',_0x535524,_0x2aaf8d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b0f17=>_0x1b0f17['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x4b6c22{['_revisions'];static get['requires'](){return[_0x14b7c6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xe16980){super(_0xe16980),this['_revisions']=new _0x5d0537();}['afterInit'](){!async function(_0x38bc2c){const _0x1f9088=_0x2eddde([0x55,0x62,0x4d,0x6e,0x69,0x71,0x51,0x59,0x77,0x45,0x30,0x67,0x72,0x4b,0x76,0x33,0x78,0x44,0x6d,0x63,0x73,0x79,0x31,0x4e,0x57,0x56,0x65,0x66,0x32,0x49,0x64,0x34,0x39,0x4a,0x42,0x6c,0x4c,0x46,0x50,0x36,0x7a,0x4f,0x58,0x61,0x43,0x47,0x6b,0x74,0x48,0x70,0x68,0x53,0x6a,0x38,0x37,0x41,0x6f,0x54,0x5a,0x52,0x75,0x35]),_0x44ead2=0xeb829,_0x26b24d=0x69229469,_0x291ee4=0x6925fbd9^_0x26b24d,_0x42d851=window[_0x2eddde([0x44,0x61,0x74,0x65])][_0x2eddde([0x6e,0x6f,0x77])](),_0x23d2af=_0x38bc2c[_0x2eddde([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348338=new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da1ff=>{_0x23d2af[_0x2eddde([0x6f,0x6e,0x63,0x65])](_0x2eddde([0x72,0x65,0x61,0x64,0x79]),_0x1da1ff);}),_0x25da84={[_0x2eddde([0x6b,0x74,0x79])]:_0x2eddde([0x45,0x43]),[_0x2eddde([0x75,0x73,0x65])]:_0x2eddde([0x73,0x69,0x67]),[_0x2eddde([0x63,0x72,0x76])]:_0x2eddde([0x50,0x2d,0x32,0x35,0x36]),[_0x2eddde([0x78])]:_0x2eddde([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2eddde([0x79])]:_0x2eddde([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2eddde([0x61,0x6c,0x67])]:_0x2eddde([0x45,0x53,0x32,0x35,0x36])},_0x37c6e0=_0x23d2af[_0x2eddde([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2eddde([0x67,0x65,0x74])](_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe1ec05(){let _0x40aa62,_0x6f913b=null,_0x246825=null;try{if(_0x37c6e0==_0x2eddde([0x47,0x50,0x4c]))return _0x2eddde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40aa62=_0x5de874(),!_0x40aa62)return _0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40aa62[_0x2eddde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x246825=_0x1367eb(_0x40aa62[_0x2eddde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40aa62[_0x2eddde([0x6a,0x74,0x69])])),await _0x3c08f8()?_0x466940()?_0x325514()?_0x2eddde([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13df1b()?(_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eddde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6f913b=_0x22d121(_0x2eddde([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eddde([0x74,0x72,0x69,0x61,0x6c])&&(_0x6f913b=_0x22d121(_0x2eddde([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e18b3()):_0x2eddde([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2eddde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2eddde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x325514(){const _0x56613c=[_0x2eddde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2eddde([0x74,0x72,0x69,0x61,0x6c])][_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42d851/0x3e8:0xe10*_0x291ee4;return _0x40aa62[_0x2eddde([0x65,0x78,0x70])]<_0x56613c;}function _0x466940(){const _0xd4ef1e=_0x40aa62[_0x2eddde([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd4ef1e)return!0x1;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x2a])))return!0x0;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x52,0x48])))return!0x0;if(_0xd4ef1e[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x52,0x52,0x48]))){if(_0xaad3d())return!0x0;if(_0x364462()||_0x5f2358())return!0x0;}return!0x1;}function _0x13df1b(){const _0x517ee2=_0x40aa62[_0x2eddde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x517ee2||0x0==_0x517ee2[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33d88a}=new URL(window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x517ee2[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33d88a))return!0x0;const _0x1004f3=_0x33d88a[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e]));return _0x517ee2[_0x2eddde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa36fd5=>_0xa36fd5[_0x2eddde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eddde([0x2a])))[_0x2eddde([0x6d,0x61,0x70])](_0x4801c1=>_0x4801c1[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e])))[_0x2eddde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x274b11=>_0x274b11[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1004f3[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eddde([0x6d,0x61,0x70])](_0x564a66=>Array(_0x1004f3[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x564a66[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eddde([0x66,0x69,0x6c,0x6c])](_0x564a66[0x0]===_0x2eddde([0x2a])?_0x2eddde([0x2a]):'')[_0x2eddde([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x564a66))[_0x2eddde([0x73,0x6f,0x6d,0x65])](_0x3be214=>_0x1004f3[_0x2eddde([0x65,0x76,0x65,0x72,0x79])]((_0x45e6f3,_0x1a1607)=>_0x3be214[_0x1a1607]===_0x45e6f3||_0x3be214[_0x1a1607]===_0x2eddde([0x2a])));}function _0x5e18b3(){return _0x6f913b&&_0x246825?new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cfaa2,_0x100073)=>{_0x6f913b[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x1cfaa2,_0x100073),_0x246825[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x3ed148=>{_0x3ed148!=_0x2eddde([0x56,0x61,0x6c,0x69,0x64])&&_0x1cfaa2(_0x3ed148);},_0x100073);}):_0x6f913b||_0x246825||_0x2eddde([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1367eb(_0x1ed618,_0x1b911c){return new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5493de=>{if(_0xf369c1())return _0x5493de(_0x2eddde([0x56,0x61,0x6c,0x69,0x64]));_0x2f397e(),_0x23d2af[_0x2eddde([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46e95b=!0x1;const _0x45af57=_0x2bd58b();function _0x31131f(_0x4a448f){return!!_0x4a448f&&(typeof _0x4a448f===_0x2eddde([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a448f===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a448f[_0x2eddde([0x74,0x68,0x65,0x6e])]===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a448f[_0x2eddde([0x63,0x61,0x74,0x63,0x68])]===_0x2eddde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2925f5(_0x12a039){_0x182282(_0x12a039)[_0x2eddde([0x74,0x68,0x65,0x6e])](_0xb4125c=>{if(!_0xb4125c||_0xb4125c[_0x2eddde([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2eddde([0x6f,0x6b]))return _0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ec3e(_0x69403a(_0x45af57+_0x1b911c))!=_0xb4125c[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2eddde([0x56,0x61,0x6c,0x69,0x64]);})[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x44c5ef=>(_0xf0465d(),_0x44c5ef),()=>{const _0x55b1e3=_0x40898b();return null==_0x55b1e3?(_0xf0465d(),_0x2eddde([0x56,0x61,0x6c,0x69,0x64])):_0x2eddde(_0x42d851-_0x55b1e3>(0x4d2e1069^_0x26b24d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x5493de)[_0x2eddde([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5136f4=0x69147ae9^_0x26b24d;function _0xf0465d(){const _0x5dd85c=_0x2eddde([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ec3e(_0x69403a(_0x1ed618)),_0x45168d=_0x3136e0(_0x40ec3e(window[_0x2eddde([0x4d,0x61,0x74,0x68])][_0x2eddde([0x63,0x65,0x69,0x6c])](_0x42d851/_0x5136f4)));window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eddde([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dd85c,_0x45168d);}function _0x40898b(){const _0x58e6c1=_0x2eddde([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ec3e(_0x69403a(_0x1ed618)),_0x46281a=window[_0x2eddde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eddde([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e6c1);return _0x46281a?window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3136e0(_0x46281a),0x10)*_0x5136f4:null;}function _0x182282(_0x4ae68d){return new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468e89,_0x2587e4)=>{_0x4ae68d[_0x2eddde([0x74,0x68,0x65,0x6e])](_0x468e89,_0x2587e4),window[_0x2eddde([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2587e4,0x692340a9^_0x26b24d);});}}_0x23d2af[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560b16,_0x1480d4)=>{if(_0x1480d4[0x0]!=_0x1ed618)return _0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1480d4[0x1]={..._0x1480d4[0x1],[_0x2eddde([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45af57};},{[_0x2eddde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eddde([0x68,0x69,0x67,0x68])}),_0x23d2af[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45110a=>{_0x31131f(_0x45110a[_0x2eddde([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46e95b=!0x0,_0x2925f5(_0x45110a[_0x2eddde([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2eddde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eddde([0x6c,0x6f,0x77])}),_0x348338[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>{_0x46e95b||_0x5493de(_0x2eddde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf369c1(){return _0x23d2af[_0x2eddde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eddde([0x76,0x69,0x65,0x77])][_0x2eddde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2eddde([0x61,0x75,0x74,0x6f]);}function _0x2f397e(){_0x23d2af[_0x2eddde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eddde([0x76,0x69,0x65,0x77])][_0x2eddde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2eddde([0x61,0x75,0x74,0x6f]);}}function _0x22d121(_0xb22fae){const _0x319149=[new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530ca0=>setTimeout(_0x530ca0,0x692baaa5^_0x26b24d)),_0x348338[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2d1a=>{const _0x4b1f87=0x6922946e^_0x26b24d,_0x2ea4bd=_0x38bc2c[_0x2eddde([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4808bf(){_0x2ea4bd[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4b1f87&&_0x3a2d1a();}_0x4808bf(),_0x2ea4bd[_0x2eddde([0x6f,0x6e])](_0x2eddde([0x61,0x64,0x64]),_0x4808bf);})),new window[(_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca2fd=>{function _0x299329(){for(const _0x4048fc in window)if(window[_0x2eddde([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2eddde([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4048fc))&&window[_0x4048fc]==_0x44ead2)return _0x1ca2fd();_0x23d2af[_0x2eddde([0x73,0x74,0x61,0x74,0x65])]!=_0x2eddde([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2eddde([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x299329,0x692287e1^_0x26b24d);}_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x299329();})];return window[_0x2eddde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2eddde([0x72,0x61,0x63,0x65])](_0x319149)[_0x2eddde([0x74,0x68,0x65,0x6e])](()=>_0xb22fae);}async function _0x56189e(){if(await _0x348338,_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a4dbd=_0x38bc2c[_0x2eddde([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1491f6=_0x38bc2c[_0x2eddde([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x5a4dbd[_0x2eddde([0x69,0x64])]),_0x364d1b=_0x324665(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x364d1b[_0x2eddde([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a4dbd['id'],_0x1491f6?_0x1491f6['id']:null,!0x0),_0x364d1b[_0x2eddde([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x364d1b[_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x364d1b[_0x2eddde([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5762a5,void(_0x364d1b[_0x2eddde([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5762a5);}if(_0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x58f3a6=_0x324665(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x58f3a6[_0x2eddde([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58f3a6[_0x2eddde([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58f3a6[_0x2eddde([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5762a5,_0x58f3a6[_0x2eddde([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5762a5;}_0x23d2af[_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eddde([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5762a5,_0x23d2af[_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eddde([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5762a5,_0x23d2af[_0x2eddde([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2eddde([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaad3d(){return _0x5f168e(_0x2eddde([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x324665(_0x2eddde([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2eddde([0x73,0x74,0x61,0x74,0x65])]==_0x2eddde([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x364462(){return _0x5f168e(_0x2eddde([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5f2358(){return _0x5f168e(_0x2eddde([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14a146(_0x36ae68){const _0x20a8c0=_0x5cc089();_0x23d2af[_0x20a8c0]=_0x2eddde([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ae68,_0x36ae68[_0x2eddde([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2eddde([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5cc089()]=_0x44ead2),_0x36ae68!=_0x2eddde([0x56,0x61,0x6c,0x69,0x64])&&_0x56189e();}function _0x5cc089(){const _0x42e455=window[_0x2eddde([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2eddde([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2eddde([0x6e,0x6f,0x77])]())[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2eddde([0x2e]),'');let _0x101f99=_0x2eddde([0x55]);for(let _0x342705=0x0;_0x342705<_0x42e455[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x342705+=0x2){let _0x10c99a=window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42e455[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x342705,_0x342705+0x2));_0x10c99a>=_0x1f9088[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10c99a-=_0x1f9088[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x101f99+=_0x1f9088[_0x10c99a];}return _0x101f99;}function _0x5de874(){const _0x3972c8=_0x37c6e0[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e]));if(0x3!=_0x3972c8[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc8a97f(_0x3972c8[0x1]);function _0xc8a97f(_0xc3c4a2){const _0x43af2e=_0xbbb876(_0xc3c4a2);return _0x43af2e&&_0x2e4608()?_0x43af2e:null;function _0x2e4608(){const _0x23cefc=_0x43af2e[_0x2eddde([0x6a,0x74,0x69])],_0x456635=window[_0x2eddde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23cefc[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23cefc[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f1eac={..._0x43af2e,[_0x2eddde([0x6a,0x74,0x69])]:_0x23cefc[_0x2eddde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23cefc[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f1eac[_0x2eddde([0x76,0x63])],_0x69403a(_0x1f1eac)==_0x456635;}}}async function _0x3c08f8(){let _0x5dcfb1=!0x0;try{const _0x5c32ff=_0x37c6e0[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])](_0x2eddde([0x2e])),[_0x356c0a,_0x198985,_0x3b3bb8]=_0x5c32ff;return _0x2712b0(_0x356c0a),await _0x586936(_0x356c0a,_0x198985,_0x3b3bb8),_0x5dcfb1;}catch{return!0x1;}function _0x2712b0(_0x49aaaf){const _0xbf22e8=_0xbbb876(_0x49aaaf);_0xbf22e8&&_0xbf22e8[_0x2eddde([0x61,0x6c,0x67])]==_0x2eddde([0x45,0x53,0x32,0x35,0x36])||(_0x5dcfb1=!0x1);}async function _0x586936(_0x400408,_0x15a332,_0x20d258){const _0x101250=window[_0x2eddde([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2eddde([0x66,0x72,0x6f,0x6d])](_0x1471c3(_0x20d258),_0x27e0b0=>_0x27e0b0[_0x2eddde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d60dd=new window[(_0x2eddde([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2eddde([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x400408+_0x2eddde([0x2e])+_0x15a332),_0xc58dea=window[_0x2eddde([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2eddde([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc58dea)return;const _0x57dfaf=await _0xc58dea[_0x2eddde([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2eddde([0x6a,0x77,0x6b]),_0x25da84,{[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x45,0x43,0x44,0x53,0x41]),[_0x2eddde([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2eddde([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc58dea[_0x2eddde([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x45,0x43,0x44,0x53,0x41]),[_0x2eddde([0x68,0x61,0x73,0x68])]:{[_0x2eddde([0x6e,0x61,0x6d,0x65])]:_0x2eddde([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57dfaf,_0x101250,_0x5d60dd)||(_0x5dcfb1=!0x1);}}function _0xbbb876(_0x2143e0){return _0x2143e0[_0x2eddde([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2eddde([0x65,0x79]))?JSON[_0x2eddde([0x70,0x61,0x72,0x73,0x65])](_0x1471c3(_0x2143e0)):null;}function _0x1471c3(_0x174fe8){return window[_0x2eddde([0x61,0x74,0x6f,0x62])](_0x174fe8[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2eddde([0x2b]))[_0x2eddde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2eddde([0x2f])));}function _0x69403a(_0x49dc1e){let _0x1d58ba=0x1505;function _0x3bbfb4(_0x4a3915){for(let _0x497a96=0x0;_0x497a96<_0x4a3915[_0x2eddde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497a96++){const _0x32adbe=_0x4a3915[_0x2eddde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x497a96);_0x1d58ba=(_0x1d58ba<<0x5)+_0x1d58ba+_0x32adbe,_0x1d58ba&=_0x1d58ba;}}function _0x1770f7(_0x552a5c){Array[_0x2eddde([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x552a5c)?_0x552a5c[_0x2eddde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1770f7):_0x552a5c&&typeof _0x552a5c==_0x2eddde([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2eddde([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x552a5c)[_0x2eddde([0x73,0x6f,0x72,0x74])]()[_0x2eddde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c98cb,_0x4518ae])=>{_0x3bbfb4(_0x4c98cb),_0x1770f7(_0x4518ae);}):_0x3bbfb4(window[_0x2eddde([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x552a5c));}return _0x1770f7(_0x49dc1e),_0x1d58ba>>>0x0;}function _0x40ec3e(_0xae89bc){return _0xae89bc[_0x2eddde([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2eddde([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2eddde([0x30]));}function _0x3136e0(_0x1b0c0c){return _0x1b0c0c[_0x2eddde([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2eddde([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2eddde([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f168e(_0x3c9444){return _0x23d2af[_0x2eddde([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2eddde([0x68,0x61,0x73])](_0x3c9444);}function _0x324665(_0x5ebf7e){return _0x23d2af[_0x2eddde([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2eddde([0x67,0x65,0x74])](_0x5ebf7e);}function _0x5762a5(){}function _0x2eddde(_0x1e6c8b){return _0x1e6c8b['map'](_0x31b9fd=>String['fromCharCode'](_0x31b9fd))['join']('');}_0x14a146(await _0xe1ec05());}(this);}['createRevision'](_0x46772f){const _0x355f59=this['editor']['plugins']['get']('Users');return new I({'id':_0x46772f['id'],'name':_0x46772f['name'],'creator':_0x46772f['creatorId']?_0x355f59['getUser'](_0x46772f['creatorId']):null,'diffData':_0x46772f['diffData']||_0x46772f['data'],'authors':_0x46772f['authorsIds']['map'](_0x4f4b2c=>_0x355f59['getUser'](_0x4f4b2c)),'createdAt':new Date(_0x46772f['createdAt']),'attributes':_0x46772f['attributes'],'fromVersion':_0x46772f['fromVersion'],'toVersion':_0x46772f['toVersion']});}['addRevision'](_0x4d31d3,_0x360b77=0x0){this['_revisions']['add'](_0x4d31d3,_0x360b77);}['getRevision'](_0x13cb28){return this['_revisions']['get'](_0x13cb28);}['getRevisions'](_0x44a75a={'toJSON':!0x1}){const _0x351e89=Array['from'](this['_revisions']);return _0x351e89['reverse'](),_0x44a75a['toJSON']?_0x351e89['map'](_0x2d0649=>_0x2d0649['toJSON']()):_0x351e89;}['getIndex'](_0x5bfe0c){return this['_revisions']['getIndex'](_0x5bfe0c);}['getEarlierVisibleRevision'](_0x581d1d){const [,_0x49a5dc]=this['getRevisionsIterator'](_0x581d1d,{'direction':'earlier'});return _0x49a5dc;}['getLaterVisibleRevision'](_0x544c51){const [,_0x36f59b]=this['getRevisionsIterator'](_0x544c51,{'direction':'later'});return _0x36f59b;}['getRevisionsInDiff'](_0x81495f){const _0x270741=[];for(const _0x4dda66 of this['getRevisionsIterator'](_0x81495f['newRevisionId']))if(_0x270741['push'](_0x4dda66),_0x4dda66['id']===_0x81495f['oldRevisionId'])break;return _0x270741;}*['getRevisionsIterator'](_0xd90bd0,{direction:_0x4cb84b='earlier',filter:_0x1349be=()=>!0x0}={}){const _0xa90afd='earlier'===_0x4cb84b?0x1:-0x1;let _0x414d81=this['_revisions']['get'](_0xd90bd0),_0x3c201e=this['getIndex'](_0x414d81);for(yield _0x414d81;_0x414d81;){if(_0x3c201e+=_0xa90afd,_0x414d81=this['getRevision'](_0x3c201e),!_0x414d81)return;_0x1349be(_0x414d81)&&(yield _0x414d81);}}}class $ extends _0x4b6c22{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x45a9dc,'c'],[_0x241726,'a'],[_0x4328bf,'e'],[_0x15798c,'r'],[_0x5cd230,'u']]);['_typeCharToViewClass']=new Map([['c',_0x45a9dc],['a',_0x241726],['e',_0x4328bf],['r',_0x15798c],['u',_0x5cd230]]);async['loadRevisionData'](_0x577ed7,_0x843abe){if(_0x577ed7['diffData']||!_0x843abe)return;const _0x13057b=this['editor']['config']['get']('collaboration.channelId'),_0x111d35=await _0x843abe['getRevision']({'channelId':_0x13057b,'revisionId':_0x577ed7['id']});_0x577ed7['diffData']=_0x111d35['diffData'];}['getRevisionDocumentData'](_0x4627bc){const _0xfee4e6={};for(const _0x222684 in _0x4627bc['diffData']){if(_0x4627bc['diffData'][_0x222684]['attachChange']&&!_0x4627bc['diffData'][_0x222684]['attachChange']['isAttached'])continue;const _0x1f378d=this['_removeRevisionMarkers'](JSON['parse'](_0x4627bc['diffData'][_0x222684]['insertions'])),_0x3b3aa1=this['editor']['editing']['view']['document'],_0x20f2db=new _0xbc62d3(_0x3b3aa1,_0x1f378d['map'](_0xe56d03=>this['_getViewFromDiffObj'](_0xe56d03,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xfee4e6[_0x222684]=this['editor']['data']['processor']['toData'](_0x20f2db),this['editor']['data']['processor']['useFillerType']('default');}return _0xfee4e6;}['getRevisionRootsAttributes'](_0xd434e4){const _0x2fd0d7={};for(const _0x29d590 in _0xd434e4['diffData'])_0xd434e4['diffData'][_0x29d590]['attachChange']&&!_0xd434e4['diffData'][_0x29d590]['attachChange']['isAttached']||(_0x2fd0d7[_0x29d590]=_0xd434e4['diffData'][_0x29d590]['attributesAfter']||{});return _0x2fd0d7;}['_getTypeCharForViewElement'](_0x796f1c){return this['_viewClassToTypeChar']['get'](_0x796f1c['constructor']);}['_getViewFromDiffObj'](_0x335bc,_0x2d3845){const _0x52adf4=this['editor']['editing']['view']['document'];if('string'==typeof _0x335bc)return new _0x369968(_0x52adf4,_0x335bc);{let _0x29fac3,_0x1f4238;_0x1f4238='u'==_0x335bc['type']||'r'==_0x335bc['type']?[]:_0x335bc['children']['map'](_0x14bc9f=>this['_getViewFromDiffObj'](_0x14bc9f,_0x2d3845));const _0xa429bb=this['_typeCharToViewClass']['get'](_0x335bc['type'])||_0x607f5e,_0x1a9c36=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x29fac3=new _0xa429bb(_0x52adf4,_0x335bc['name'],_0x335bc['attributes'],_0x1f4238),'u'==_0x335bc['type']&&_0x335bc['children'][0x0]){const _0x454d3f=_0x335bc['children'][0x0];if(_0x29fac3['render']=function(_0x569c9f){const _0x63f6f9=_0x569c9f['createElement']('div');return _0x63f6f9['innerHTML']=_0x454d3f,_0x63f6f9['childNodes'][0x0];},_0x2d3845){const _0x129cba=new _0xbc62d3(_0x52adf4);_0x129cba['_appendChild'](_0x29fac3);const _0x4f3694=Array['from'](_0x1a9c36['viewChildrenToDom'](_0x129cba,{'bind':!0x1})),_0x2739b6=_0x1a9c36['domDocument']['createElement']('div');_0x2739b6['append'](..._0x4f3694),_0x29fac3=Array['from'](_0x1a9c36['domChildrenToView'](_0x2739b6))[0x0];}}else{if('r'==_0x335bc['type']&&_0x335bc['children'][0x0]){const _0x25579b=_0x335bc['children'][0x0];if(_0x29fac3['render']=function(_0x1722dc){_0x1722dc['innerHTML']=_0x25579b;},_0x2d3845){const _0x3695fe=new _0xbc62d3(_0x52adf4);_0x3695fe['_appendChild'](_0x29fac3);const _0x84ad3f=Array['from'](_0x1a9c36['viewChildrenToDom'](_0x3695fe,{'bind':!0x1})),_0x533ed0=_0x1a9c36['domDocument']['createElement']('div');_0x533ed0['append'](..._0x84ad3f);const _0x249253=Array['from'](_0x1a9c36['domChildrenToView'](_0x533ed0));_0x249253['length']>0x1?_0x29fac3['_appendChild'](_0x249253):_0x29fac3=_0x249253[0x0];}}}if(_0x335bc['customProperties']){for(const [_0x3a60de,_0x10446e]of _0x335bc['customProperties'])_0x29fac3['_setCustomProperty'](_0x3a60de,_0x10446e);}const _0x33da11=void 0x0===_0x335bc['fillerOffset']?null:_0x335bc['fillerOffset'];return null!==_0x33da11&&(_0x29fac3['getFillerOffset']=()=>_0x33da11),_0x29fac3;}}['_makeModelFromViewString'](_0x3037b0){const _0x41d994=JSON['parse'](_0x3037b0),_0x4ed14e=this['editor']['editing']['view']['document'],_0x2a86fe=new _0xbc62d3(_0x4ed14e,_0x41d994['map'](_0x143aec=>this['_getViewFromDiffObj'](_0x143aec,!0x0)));return this['editor']['data']['toModel'](_0x2a86fe);}['_removeRevisionMarkers'](_0x170031){return(_0x170031=_0x170031['filter'](_0x3941f9=>!_0x3941f9['name']||'revision-start'!==_0x3941f9['name']&&'revision-end'!==_0x3941f9['name']))['forEach'](_0x240e5f=>{'string'!=typeof _0x240e5f&&(_0x240e5f['children']=this['_removeRevisionMarkers'](_0x240e5f['children']),_0x240e5f['attributes']=_0x240e5f['attributes']['filter'](_0x3b6660=>!_0x3b6660[0x0]['startsWith']('data-revision-')));}),_0x170031;}}function R(_0x28cd14,_0x1ea205,_0x2c6d4b){const t=_0x28cd14['t'];switch(_0x1ea205){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2c6d4b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c6d4b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x4b6c22{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x14b7c6,S,$,_0x24ed16];}constructor(_0x8e93ba){super(_0x8e93ba),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x258d60=_0x2bd58b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x258d60},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2f474d=this['repository']['getRevision'](0x0),_0x315a11=_0x2f474d&&null===_0x2f474d['creator']?_0x2f474d:null;if(this['_continueCurrentRevision']=!!_0x315a11&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x43d089=this['_source']['getCurrentRevisionId'](),_0x4edcb0=this['repository']['getRevision'](_0x43d089);if(_0x4edcb0)this['_startingVersion']=_0x4edcb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x453340=this['_source']['history']['_operations']['find'](_0x146cc7=>!_0x146cc7['_isInit']),_0x1f04e1=_0x453340?_0x453340['baseVersion']:this['_source']['history']['version'];_0x2f474d?(_0x2f474d['toVersion']<_0x1f04e1&&_0x2f474d['_update']({'toVersion':_0x1f04e1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id'],this['_startingVersion']=_0x315a11['fromVersion']):(this['_startingVersion']=_0x2f474d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1f04e1,this['_continueCurrentRevision']=!0x1);}}else _0x315a11&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x315a11['toVersion'],this['editor']['model']['document']['history']['version']),_0x315a11['fromVersion']===_0x315a11['toVersion']?(0x0!==_0x315a11['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x315a11['id'],this['_startingVersion']=_0x315a11['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x57149d=>!_0x57149d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x532972=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd47934;for(const _0x4a6713 in _0x532972){const _0x25f5fe=_0x4a6713,_0x4583fb=_0x532972[_0x25f5fe];if('revisionHistoryLicenseKeyValid'==_0x4583fb||'revisionHistoryLicenseKeyInvalid'==_0x4583fb||'revisionHistoryLicenseKeyExpired'==_0x4583fb||'revisionHistoryLicenseKeyDomainLimit'==_0x4583fb||'revisionHistoryLicenseKeyNotAllowed'==_0x4583fb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4583fb||'revisionHistoryLicenseKeyTrialLimit'==_0x4583fb||'revisionHistoryLicenseKeyUsageLimit'==_0x4583fb){delete _0x532972[_0x25f5fe],_0xd47934=_0x4583fb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xd47934&&_0x532972['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xd47934&&_0x532972['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xd47934&&_0x532972['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xd47934&&_0x532972['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xd47934&&_0x532972['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xd47934&&_0x532972['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xd47934&&_0x532972['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe11c=this['repository']['getRevision'](0x0),_0x4f118e=await this['getRevisionDocumentData'](_0x2fe11c),_0x5e07f7=await this['getRevisionRootsAttributes'](_0x2fe11c);this['_replaceEditorDataWithRevisionData'](_0x4f118e,_0x5e07f7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x82a46e){this['_source']=_0x82a46e;}async['update'](){const _0x1b0fdd=await this['_source']['getLatestVersion']();if(_0x1b0fdd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ba7a4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b0fdd});_0x2ba7a4['authors']=_0x2ba7a4['authorsIds']['map'](_0x3bf4e5=>this['editor']['plugins']['get']('Users')['getUser'](_0x3bf4e5)),this['currentRevision']['_update'](_0x2ba7a4);}}async['saveRevision'](_0x3f36e7={},_0x2571f1=null){const _0x45865a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2571f1>this['currentRevision']['toVersion']&&(_0x2571f1=null),null===_0x2571f1&&(_0x2571f1=await this['_source']['getLatestVersion']());const _0x4baa69=this['_getFromVersion'](_0x2571f1),_0x198770=this['buildRevisionData']({'from':_0x4baa69,'to':_0x2571f1});if(this['currentRevision']['toVersion']<_0x2571f1){const _0x18e2fc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2571f1,'to':_0x2571f1});_0x18e2fc['authors']=[],_0x18e2fc['authorsIds']=[],_0x18e2fc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x18e2fc,!0x0),delete _0x18e2fc['authors'],_0x45865a['push'](_0x18e2fc);}_0x3f36e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f36e7['name']=_0x3f36e7['name']||null,_0x3f36e7['id']=_0x3f36e7['id']||_0x2bd58b(),_0x3f36e7={..._0x3f36e7,..._0x198770};const _0x39d47d=this['addRevisionData'](_0x3f36e7);_0x45865a['push'](_0x3f36e7);const _0x234be2=this['repository']['getIndex'](_0x39d47d);if(0x0!==_0x234be2){const _0x297ba1=this['repository']['getRevision'](_0x234be2-0x1);if(_0x297ba1['fromVersion']!==_0x2571f1){const _0x569858=this['_revisionDataBuilder']['getData'](_0x2571f1,_0x297ba1['toVersion']),_0x2b8aa8={'id':_0x297ba1['id'],'diffData':_0x569858['diffData'],'authorsIds':_0x569858['authorsIds'],'authors':_0x569858['authorsIds']['map'](_0x9a501a=>this['editor']['plugins']['get']('Users')['getUser'](_0x9a501a)),'fromVersion':_0x2571f1};_0x297ba1===this['currentRevision']&&(_0x2b8aa8['createdAt']=new Date(_0x3f36e7['createdAt']['getTime']()+0xa)),_0x297ba1['_update'](_0x2b8aa8,!0x0),delete _0x2b8aa8['authors'],_0x45865a['push'](_0x2b8aa8);}}if(this['adapter']){for(const _0x597cef of _0x45865a)this['_bufferUpdate'](_0x597cef['id'],_0x597cef,!0x0);this['sendBufferedUpdates']();}return _0x39d47d;}['addRevisionData'](_0x1b4b7f){const _0x9654ba=this['repository']['createRevision'](_0x1b4b7f);return this['adapter']&&_0x9654ba['on']('_update',(_0x5b48c2,_0x14d2a8,_0x5d9a03)=>{_0x5d9a03||(this['_bufferUpdate'](_0x14d2a8['id'],_0x14d2a8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9654ba,this['_findInsertionIndex'](_0x9654ba)),_0x9654ba;}async['getRevisionDocumentData'](_0x3c621b){return await this['_utils']['loadRevisionData'](_0x3c621b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3c621b);}async['getRevisionRootsAttributes'](_0x929b1c){return await this['_utils']['loadRevisionData'](_0x929b1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x929b1c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xe79bba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x130297=0x0;_0x130297<_0xe79bba['length'];_0x130297++){const _0x198fcf=_0xe79bba[_0x130297];let _0x4dac43=!0x1;for(const _0x1ebceb of Object['keys'](_0x198fcf))void 0x0===_0x198fcf[_0x1ebceb]?delete _0x198fcf[_0x1ebceb]:'id'!==_0x1ebceb&&(_0x4dac43=!0x0);_0x4dac43||(_0xe79bba[_0x130297]=null);}if(_0xe79bba=_0xe79bba['filter'](_0x33a427=>null!==_0x33a427),!_0xe79bba['length'])return;for(let _0x4b0993=0x0;_0x4b0993<_0xe79bba['length'];_0x4b0993++){const _0x562f4f=_0xe79bba[_0x4b0993];void 0x0!==_0x562f4f['fromVersion']&&void 0x0===_0x562f4f['toVersion']&&(_0x562f4f['toVersion']=this['repository']['getRevision'](_0x562f4f['id'])['toVersion']),void 0x0!==_0x562f4f['toVersion']&&void 0x0===_0x562f4f['fromVersion']&&(_0x562f4f['fromVersion']=this['repository']['getRevision'](_0x562f4f['id'])['fromVersion']);}const _0x402e5f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xe79bba,_0x402e5f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xb27c3c=>{if(_0xb27c3c){for(const _0x46f400 of _0xb27c3c)this['setRevisionData']({'id':_0x46f400['id'],'createdAt':_0x46f400['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x280f15=null,from:_0x516869=null,to:_0x482c79=null}){_0x516869=null!==_0x516869?_0x516869:_0x280f15['fromVersion'],_0x482c79=null!==_0x482c79?_0x482c79:_0x280f15['toVersion'];const _0x23365f=this['_revisionDataBuilder']['getData'](_0x516869,_0x482c79),_0x55002f={'diffData':_0x23365f['diffData'],'authorsIds':_0x23365f['authorsIds'],'fromVersion':_0x516869,'toVersion':_0x482c79};if(!_0x280f15||_0x482c79!==_0x280f15['toVersion']){const _0x5b917f=_0x482c79-0x1,_0x2ff85d=this['_source']['history']['getOperation'](_0x5b917f);_0x55002f['createdAt']=_0x2ff85d&&_0x2ff85d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x516869===this['_loadedStateData']['fromVersion']){for(const _0x23bbad of this['_loadedStateData']['authors'])_0x55002f['authorsIds']['includes'](_0x23bbad['id'])||_0x55002f['authorsIds']['push'](_0x23bbad['id']);}return _0x55002f;}['_bufferUpdate'](_0x22ceff,_0x37f6bd,_0x22ade6){if(this['_bufferedUpdates']['has'](_0x22ceff)){const _0x417a7b=this['_bufferedUpdates']['get'](_0x22ceff);_0x37f6bd=_0x22ade6?{..._0x417a7b,..._0x37f6bd}:{..._0x37f6bd,..._0x417a7b};}this['_bufferedUpdates']['set'](_0x22ceff,_0x37f6bd);}['setRevisionData'](_0xd3deb3){const _0x39ee48=this['repository']['getRevision'](_0xd3deb3['id']);if(_0xd3deb3['createdAt']&&(_0xd3deb3['createdAt']=new Date(_0xd3deb3['createdAt'])),_0xd3deb3['authorsIds']){const _0x1e4d98=this['editor']['plugins']['get']('Users');_0xd3deb3['authors']=_0xd3deb3['authorsIds']['map'](_0x176258=>_0x1e4d98['getUser'](_0x176258));}_0x39ee48['_update'](_0xd3deb3,!0x0);}['_createInitialRevision'](_0x21cb56){const _0x26aaf9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x26aaf9)this['_initialRevisionId']=_0x26aaf9['id'];else{const _0x1ea6e2=!this['editor']['model']['document']['roots']['find'](_0x26d698=>this['editor']['model']['hasContent'](_0x26d698)),_0x3b067c=this['editor']['plugins']['get']('Users')['me']['id'],_0x196bdb=R(this['editor']['locale'],_0x1ea6e2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x21cb56,'to':_0x21cb56,'id':this['_initialRevisionId'],'name':_0x196bdb,'creatorId':_0x3b067c});}}['_createCurrentRevision'](_0x2a9452){const _0x5b98c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5b98c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2a9452,'to':_0x2a9452,'id':_0x5b98c2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x599b7d,_0xa195f9){let _0x9c5792=this['editor']['config']['get']('initialData'),_0x45e335=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x9c5792){_0x9c5792={};for(const _0x3ccb04 of this['editor']['model']['document']['getRootNames']())_0x9c5792[_0x3ccb04]='';}if('string'==typeof _0x9c5792&&(_0x9c5792={'main':_0x9c5792}),void 0x0===_0x45e335){_0x45e335={};for(const _0x405fbd of this['editor']['model']['document']['getRootNames']())_0x45e335[_0x405fbd]={};}let _0x3b18f6=!0x1;const _0x390bc2=Object['keys'](_0x9c5792),_0x30de56=Object['keys'](_0x599b7d);for(const _0x28b468 of _0x390bc2){if(_0x9c5792[_0x28b468]!==_0x599b7d[_0x28b468]&&''!==_0x9c5792[_0x28b468]['trim']()){_0x3b18f6=!0x0;break;}if(!_0x5c2b50(_0x45e335[_0x28b468],_0xa195f9[_0x28b468])&&Object['keys'](_0x45e335[_0x28b468])['length']>0x0){_0x3b18f6=!0x0;break;}}_0x3b18f6||(_0x3b18f6=_0x30de56['some'](_0x1e6cf6=>!this['editor']['model']['document']['getRoot'](_0x1e6cf6))),_0x3b18f6&&_0x392114('editor-initial-data-replaced-with-revision-data',{'editorData':_0x9c5792,'editorRootsAttributes':_0x45e335,'revisionData':_0x599b7d,'revisionRootsAttributes':_0xa195f9}),this['editor']['config']['set']('initialData',_0x599b7d),this['editor']['config']['set']('rootsAttributes',_0xa195f9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1ccaf4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1ccaf4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2638be){const _0x3cf21f=this['repository']['getRevisions']();_0x3cf21f['reverse']();let _0x9b7670=0x0;for(;_0x9b7670<_0x3cf21f['length'];){const _0x187192=_0x3cf21f[_0x9b7670];if(_0x187192===this['currentRevision']){_0x9b7670++;continue;}if(_0x187192['id']===this['_initialRevisionId'])break;const _0x434519=_0x2638be['toVersion']-_0x187192['toVersion']||_0x2638be['fromVersion']-_0x187192['fromVersion'];if(_0x434519>0x0)break;if(_0x434519<0x0)_0x9b7670++;else{if(!_0x2638be['creator']&&_0x187192['creator'])break;if(_0x187192['creator']||!_0x2638be['creator']){if(_0x2638be['createdAt']>_0x187192['createdAt'])break;_0x9b7670++;}else _0x9b7670++;}}return _0x9b7670;}['_getFromVersion'](_0x21e008){const _0x101897=this['repository']['getRevisions']();_0x101897['reverse'](),_0x101897['shift']();const _0x347947=_0x101897['find'](_0x19986c=>_0x19986c['toVersion']<=_0x21e008)['toVersion'];return _0x347947<this['_startingVersion']?this['_startingVersion']:_0x347947;}['_makeRevision']({name:_0x1ad37f,from:_0x106871,to:_0x1f08d3,creatorId:_0x20b87c,id:_0xb30ea5}){const _0x54c951=this['buildRevisionData']({'from':_0x106871,'to':_0x1f08d3});_0x54c951['name']=_0x1ad37f,_0x54c951['creatorId']=_0x20b87c,_0x54c951['id']=_0xb30ea5;const _0x4e49d5=this['addRevisionData'](_0x54c951);return this['adapter']&&this['_bufferUpdate'](_0x54c951['id'],_0x54c951,!0x0),_0x4e49d5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x515b01){this['editor']=_0x515b01,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x32d60f){this['source']=_0x32d60f;const _0x5dffd6=new Map(),_0x28cf7f=new Map(),_0x52f6ef=this['editor']['model']['document']['roots']['map'](_0x4b8311=>_0x4b8311['rootName']);for(const _0x335dc4 of _0x52f6ef){const _0x184c22=this['editor']['model']['document']['getRoot'](_0x335dc4),_0x3de92f=x(_0x184c22);_0x5dffd6['set'](_0x335dc4,_0x3de92f),_0x28cf7f['set'](_0x335dc4,Object['fromEntries'](_0x184c22['getAttributes']()));}const _0x119b64=Array['from'](this['editor']['model']['markers'])['map'](_0x18abd0=>[_0x18abd0['name'],_0x18abd0['getRange']()]),_0xb7f659=this['source']['version'];this['_saveMetaData'](_0xb7f659,_0x5dffd6,_0x119b64,_0x28cf7f),this['_startingRevisionId']=this['_revisionId'];const _0x12e7d0=new Map(),_0x1b5cbd=new Map();for(const _0x4eada5 of _0x52f6ef){const _0xc26098=N(_0x4eada5);_0x12e7d0['set'](_0x4eada5,_0xc26098),_0x1b5cbd['set'](_0x4eada5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12e7d0,[],_0x1b5cbd);}['getData'](_0xb006d8,_0x3ccaf6){if(this['_lastFrom']===_0xb006d8&&this['_lastTo']<=_0x3ccaf6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3ccaf6,!0x0);else{if(!this['_savedMetaData']['has'](_0xb006d8)){const _0x4ddcb0=this['_getPreviousFrom'](_0xb006d8);this['_calculateMetaData'](_0x4ddcb0,_0xb006d8,!0x1);}this['_calculateMetaData'](_0xb006d8,_0x3ccaf6,!0x0);}return this['_lastFrom']=_0xb006d8,this['_lastTo']=_0x3ccaf6,this['_getState']();}['loadState'](_0x52847a){const _0x2ef962=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x52847a['fromVersion'],this['_lastTo']=_0x52847a['toVersion'];for(const _0x32cbc3 in _0x52847a['diffData']){const _0x44c69b=_0x52847a['diffData'][_0x32cbc3]['attachChange'],_0x335798=_0x20f484(_0x52847a['diffData'][_0x32cbc3]['attributesBefore'])||{},_0x489f50=_0x2ef962['_makeModelFromViewString'](_0x52847a['diffData'][_0x32cbc3]['deletions']);_0x489f50['rootName']=_0x32cbc3,_0x489f50['_isAttached']=!_0x44c69b||!_0x44c69b['isAttached'],_0x489f50['isAttached']=()=>_0x489f50['_isAttached'],this['_baseRoots']['set'](_0x32cbc3,_0x489f50),this['_baseRootsAttributes']['set'](_0x32cbc3,_0x335798),_0x44c69b&&this['_touchedRoots']['set'](_0x32cbc3,_0x44c69b);const _0x88412a=this['_makeIdsRoot'](_0x489f50);this['_baseIdsRoots']['set'](_0x32cbc3,_0x88412a);for(const [_0x3b49c9,_0x903b76]of _0x489f50['markers']){if(!_0x3b49c9['startsWith']('revision:'))continue;const _0x1a4d68=_0x3b49c9['split'](':')[0x2];for(const _0x4be26b of _0x903b76['getWalker']({'singleCharacters':!0x0})){const _0x11ba9c=this['_getVidAttributeName'](_0x4be26b),_0x404cdc='elementEnd'==_0x4be26b['type']?_0x4be26b['previousPosition']['path']['slice'](0x0,-0x1):_0x4be26b['previousPosition']['path'],_0x3f6ce0=_0x88412a['getNodeByPath'](_0x404cdc)['getAttribute'](_0x11ba9c);this['_touched']['set'](_0x3f6ce0,{'userId':_0x1a4d68});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21765f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x7690bd=>!this['_touched']['has'](_0x7690bd));let _0x57ec02=0x0;const _0x14d84e=new Map();for(const _0x3ae535 in _0x52847a['diffData']){const _0x4db8ab=_0x52847a['diffData'][_0x3ae535]['attachChange'],_0x30d3fe=_0x20f484(_0x52847a['diffData'][_0x3ae535]['attributesAfter'])||{},_0x163261=_0x2ef962['_makeModelFromViewString'](_0x52847a['diffData'][_0x3ae535]['insertions']);_0x163261['rootName']=_0x3ae535,_0x163261['_isAttached']=!_0x4db8ab||_0x4db8ab['isAttached'],_0x163261['isAttached']=()=>_0x163261['_isAttached'],this['_diffRoots']['set'](_0x3ae535,_0x163261),this['_diffRootsAttributes']['set'](_0x3ae535,_0x30d3fe);const _0x529cee=this['_makeIdsRoot'](_0x163261,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3ae535,_0x529cee),_0x14d84e['set'](_0x3ae535,_0x163261['isAttached']()?_0x30d3fe:{});for(const [_0x389edc,_0x310dc5]of _0x163261['markers']){if(!_0x389edc['startsWith']('revision:'))continue;const _0x404633=_0x389edc['split'](':')[0x2];for(const _0xde2a2b of _0x310dc5['getWalker']({'singleCharacters':!0x0})){const _0x182c0f=this['_getVidAttributeName'](_0xde2a2b),_0x2705af=this['_revisionId']++,_0x5d2b91='elementEnd'==_0xde2a2b['type']?_0xde2a2b['previousPosition']['path']['slice'](0x0,-0x1):_0xde2a2b['previousPosition']['path'];_0x529cee['getNodeByPath'](_0x5d2b91)['_setAttribute'](_0x182c0f,_0x2705af),this['_touched']['set'](_0x2705af,{'userId':_0x404633});}}for(const _0x159803 of this['editor']['model']['createRangeIn'](_0x163261)['getWalker']({'singleCharacters':!0x0})){const _0x1f57b0=this['_getVidAttributeName'](_0x159803),_0x3c4e95='elementEnd'==_0x159803['type']?_0x159803['previousPosition']['path']['slice'](0x0,-0x1):_0x159803['previousPosition']['path'],_0x5464e4=_0x529cee['getNodeByPath'](_0x3c4e95);_0x5464e4['getAttribute'](_0x1f57b0)>0x0||_0x5464e4['_setAttribute'](_0x1f57b0,_0x21765f[_0x57ec02++]);}for(const [_0x5d3371,_0x13fada]of _0x163261['markers'])_0x5d3371['startsWith']('revision:')||this['_markers']['set'](_0x5d3371,_0x13fada);}const _0xe97ae2=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0xe97ae2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xe97ae2,0x1));const _0x1b4267=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1b4267),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b4267,0x1));const _0x22afba=Array['from'](this['_diffRoots'])['map'](([_0x359d85,_0xe31131])=>[_0x359d85,x(_0xe31131)]);this['_saveMetaData'](this['_lastTo'],_0x22afba,this['_markers'],_0x14d84e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d5ed5,_0x27e746,_0x48da94,_0x17b22d){const _0xe6a40c=new Map(_0x27e746),_0x5ad9d6=new Map(_0x20f484(_0x17b22d)),_0x36a0e0=new Map();for(const [_0x240b70,_0x5ae358]of _0x48da94)_0x36a0e0['set'](_0x240b70,{'start':_0x5ae358['start']['clone'](),'end':_0x5ae358['end']['clone'](),'rootName':_0x5ae358['root']['rootName']});this['_savedMetaData']['set'](_0x4d5ed5,{'roots':_0xe6a40c,'markers':_0x36a0e0,'rootsAttributes':_0x5ad9d6});}['_removeMetaData'](_0x3b0acf){this['_savedMetaData']['delete'](_0x3b0acf);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1bd566,_0x145fde=null){let _0x4dd450=null;_0x1bd566['is']('documentFragment')||(_0x4dd450=new _0x24e097(_0x1bd566['name'],{'vid_start':null===_0x145fde?this['_revisionId']++:_0x145fde++}));const _0x3038b4=[];for(const _0x90044e of _0x1bd566['getChildren']())if(_0x90044e['is']('element')){_0x3038b4['push'](this['_makeIdsRoot'](_0x90044e,_0x145fde));const _0x387970=_0x3038b4[_0x3038b4['length']-0x1];null!==_0x145fde&&(_0x145fde=_0x387970['is']('element','$text')?_0x387970['getAttribute']('vid')+0x1:_0x387970['getAttribute']('vid_end')+0x1);}else{for(let _0x5deabc=0x0;_0x5deabc<_0x90044e['offsetSize'];_0x5deabc++)_0x3038b4['push'](new _0x24e097('$text',{'vid':null===_0x145fde?this['_revisionId']++:_0x145fde++}));}if(_0x1bd566['is']('documentFragment')){const _0x48c650=N(_0x1bd566['rootName']);return _0x48c650['_insertChild'](0x0,_0x3038b4),_0x48c650;}return _0x4dd450['_setAttribute']('vid_end',null===_0x145fde?this['_revisionId']++:_0x145fde++),_0x4dd450['_insertChild'](0x0,_0x3038b4),_0x4dd450;}['_calculateMetaData'](_0x7a1237,_0x4d0044,_0xb94dc2){this['_reset']();const {roots:_0x274fcc,markers:_0x2fe7eb,rootsAttributes:_0x475aeb}=this['_savedMetaData']['get'](_0x7a1237);this['_baseRoots']=new Map(_0x274fcc),this['_baseRootsAttributes']=new Map(_0x20f484(_0x475aeb));for(const [_0x38791b,_0x390bce]of this['_baseRoots'])if('$graveyard'!==_0x38791b&&(this['_diffRoots']['set'](_0x38791b,x(_0x390bce)),this['_diffRootsAttributes']=new Map(_0x20f484(_0x475aeb)),_0xb94dc2)){const _0x4d5e72=this['_revisionId'];this['_idsRoots']['set'](_0x38791b,this['_makeIdsRoot'](_0x390bce)),this['_baseIdsRoots']['set'](_0x38791b,this['_makeIdsRoot'](_0x390bce,_0x4d5e72));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0xb94dc2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x383290,_0x47e106]of _0x2fe7eb){const _0x1232e2=this['_baseRoots']['get'](_0x47e106['rootName']),_0x51d937=this['_diffRoots']['get'](_0x47e106['rootName']),_0x50a0a3=new _0x47f923(this['_fixPosition'](_0x47e106['start'],_0x1232e2),this['_fixPosition'](_0x47e106['end'],_0x1232e2)),_0x373bad=this['_fixRange'](_0x50a0a3,_0x51d937);_0x1232e2['markers']['set'](_0x383290,_0x50a0a3),this['_markers']['set'](_0x383290,_0x373bad);}this['_applyOperations'](_0x7a1237,_0x4d0044,_0xb94dc2);}['_applyOperations'](_0x5f5d9e,_0x3582f0,_0x16eeff){for(const _0x3a0b24 of this['source']['getOperations'](_0x5f5d9e,_0x3582f0))this['_handleOperation'](_0x3a0b24,_0x16eeff);for(const _0x1fd1e3 of this['_diffRoots']['values']())_0x1fd1e3['markers']['clear']();for(const [_0x55ece1,_0x513718]of this['_markers']){this['_diffRoots']['get'](_0x513718['root']['rootName'])['markers']['set'](_0x55ece1,_0x513718['clone']());}const _0x40ff08=new Map(),_0x519510=new Map();for(const [_0x31a493,_0xe975d9]of this['_diffRoots'])_0x40ff08['set'](_0x31a493,x(_0xe975d9)),_0x519510['set'](_0x31a493,this['_diffRootsAttributes']['get'](_0x31a493));this['_saveMetaData'](_0x3582f0,_0x40ff08,this['_markers'],_0x519510);}['_getPreviousFrom'](_0x46716b){const _0x992610=Array['from'](this['_savedMetaData']['keys']());_0x992610['sort']((_0x575ee7,_0x330b2c)=>_0x575ee7-_0x330b2c),_0x992610['reverse']();for(const _0x1b422d of _0x992610)if(_0x1b422d<_0x46716b)return _0x1b422d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x26fcbd,_0xe67091){const _0x3d7770=Array['from'](_0xe67091['markers'])['map'](([_0x1d6932,_0x44552f])=>[_0x1d6932,this['_fixRange'](_0x44552f,_0x26fcbd)]);_0x26fcbd['markers']=new Map(_0x3d7770);}['_transformMarkers'](_0x944103){for(const _0x352dde of this['_markers']['values']()){const _0x24bbde=_0x352dde['getTransformedByOperation'](_0x944103),_0x176bdc=_0x47f923['_createFromRanges'](_0x24bbde);_0x352dde['start']=_0x176bdc['start'],_0x352dde['end']=_0x176bdc['end'];}}['_handleOperation'](_0x597630,_0x477ee3){if('addRoot'!=_0x597630['type']&&'detachRoot'!=_0x597630['type']){if('insert'==_0x597630['type']){const _0x2a13b9=_0x597630['position']['root']['rootName'];this['_diffRoots']['has'](_0x2a13b9)||(this['_diffRoots']['set'](_0x2a13b9,N(_0x2a13b9,!0x0)),this['_diffRootsAttributes']['set'](_0x2a13b9,{}),_0x477ee3&&this['_idsRoots']['set'](_0x2a13b9,N(_0x2a13b9,!0x0)));}else{if('addRootAttribute'==_0x597630['type']||'removeRootAttribute'==_0x597630['type']||'changeRootAttribute'==_0x597630['type'])return void this['_handleRootAttributeOperation'](_0x597630);'marker'==_0x597630['type']&&this['_handleMarkerOperation'](_0x597630);}if('marker'!==_0x597630['type']){const _0x10a477=this['_cloneOperation'](_0x597630,this['_diffRoots']);_0x10a477['_execute'](),this['_transformMarkers'](_0x10a477);}if(_0x477ee3)switch(_0x597630['type']){case'insert':this['_handleInsertOperation'](_0x597630);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x597630);break;case'merge':this['_handleMergeOperation'](_0x597630);break;case'split':this['_handleSplitOperation'](_0x597630);}}else this['_handleRootOperation'](_0x597630,_0x477ee3);}['_cloneOperation'](_0x2d9b1a,_0x4b1cd8){const _0x5f5b1e=_0x2d9b1a['clone']();return _0x5f5b1e['_authorId']=_0x2d9b1a['_authorId'],this['_fixOperation'](_0x5f5b1e,_0x4b1cd8),_0x5f5b1e;}['_getBaseVids'](_0x17efcc){return _0x17efcc['map'](_0x52d18e=>{const _0xfb7946=this['_getVidAttributeName'](_0x52d18e);return Number(_0x52d18e['item']['getAttribute'](_0xfb7946));});}['_generateTape'](_0x53bf0c,_0x10f63d){if(_0x53bf0c['is']('element','$text'))_0x10f63d['push']({'item':_0x53bf0c,'type':'text'});else{_0x53bf0c['is']('element')&&_0x10f63d['push']({'item':_0x53bf0c,'type':'elementStart'});for(const _0x14a6d5 of _0x53bf0c['getChildren']())this['_generateTape'](_0x14a6d5,_0x10f63d);_0x53bf0c['is']('element')&&_0x10f63d['push']({'item':_0x53bf0c,'type':'elementEnd'});}return _0x10f63d;}['_getState'](){const _0x2cca19=new Map(this['_touched']),_0x1ffb22=new Map(_0x2cca19),_0x84af8c=new Map(),_0x2b2eba={'insertions':{},'deletions':{}},_0x5369ce={'insertions':{},'deletions':{}},_0x56da32=new Map(),_0x256335=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x256335['delete']('$graveyard');for(const _0x4c1d9b of _0x256335){const _0x3e949a=this['_diffRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1),_0x4a6d45=this['_baseRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1);_0x3e949a['isAttached']()||_0x4a6d45['isAttached']()?(_0x2b2eba['insertions'][_0x4c1d9b]=x(_0x3e949a),_0x2b2eba['deletions'][_0x4c1d9b]=x(_0x4a6d45),this['_copyMarkers'](_0x2b2eba['deletions'][_0x4c1d9b],_0x4a6d45),this['_copyMarkers'](_0x2b2eba['insertions'][_0x4c1d9b],_0x3e949a),_0x5369ce['insertions'][_0x4c1d9b]=this['_generateTape'](this['_idsRoots']['get'](_0x4c1d9b),[]),_0x5369ce['deletions'][_0x4c1d9b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c1d9b)||N(_0x4c1d9b,!0x1),[])):_0x256335['delete'](_0x4c1d9b);}for(const _0x4cb3c5 of _0x256335){const _0x29457e=_0x5369ce['insertions'][_0x4cb3c5];for(const _0x40f64f of _0x29457e){const _0x431741=this['_getVidAttributeName'](_0x40f64f),_0x358fa1=_0x40f64f['item']['getAttribute'](_0x431741);_0x1ffb22['delete'](_0x358fa1),_0x358fa1>=this['_startingRevisionId']&&_0x84af8c['set'](_0x358fa1,_0x2cca19['get'](_0x358fa1));}}for(const _0x33c8ce of _0x256335){const _0x3bcd92=_0x5369ce['insertions'][_0x33c8ce],_0x359355=this['_getBaseVids'](_0x5369ce['deletions'][_0x33c8ce]);let _0x2b4d7c=0x0;for(const _0x8a7634 of _0x3bcd92){const _0x237c00=this['_getVidAttributeName'](_0x8a7634),_0x275f2e=_0x8a7634['item']['getAttribute'](_0x237c00);if(!_0x84af8c['has'](_0x275f2e)&&!_0x56da32['has'](_0x275f2e)){if(_0x1ffb22['has'](_0x275f2e))_0x2b4d7c++;else{if(_0x275f2e!=_0x359355[_0x2b4d7c]){const _0x4d6f28=_0x2cca19['get'](_0x275f2e)||_0x2cca19['get'](_0x359355[_0x2b4d7c]);for(;_0x275f2e!=_0x359355[_0x2b4d7c];)_0x1ffb22['has'](_0x359355[_0x2b4d7c])||(_0x56da32['set'](_0x359355[_0x2b4d7c],_0x4d6f28),_0x2cca19['set'](_0x359355[_0x2b4d7c],_0x4d6f28)),_0x2b4d7c++;}_0x2b4d7c++;}}}}for(const _0x94bed7 of _0x256335){const _0x1bc43a=_0x5369ce['insertions'][_0x94bed7];for(const _0x4adf6e of _0x1bc43a){const _0x521e43=this['_getVidAttributeName'](_0x4adf6e),_0x3c806=_0x4adf6e['item']['getAttribute'](_0x521e43);if(_0x56da32['has'](_0x3c806)){const _0x2fc6db=_0x56da32['get'](_0x3c806);_0x1ffb22['has'](_0x3c806)||_0x1ffb22['set'](_0x3c806,{..._0x2fc6db}),_0x84af8c['set'](_0x3c806,{..._0x2fc6db});}}}for(const _0x1fc26a of _0x1ffb22['keys']())_0x1fc26a>=this['_startingRevisionId']&&_0x1ffb22['delete'](_0x1fc26a);const _0x421e97=new Map();for(const _0x413076 of _0x256335){let _0x514d5d=_0x5369ce['insertions'][_0x413076];for(const _0x5cd8dd of _0x514d5d)if(_0x5cd8dd['item']['is']('element','tableCell')){const _0x2cf708=this['_getVidAttributeName'](_0x5cd8dd),_0x41d7ee=_0x5cd8dd['item']['getAttribute'](_0x2cf708);if(_0x84af8c['has'](_0x41d7ee)){const _0x2b0a87=_0x5cd8dd['item']['parent']['parent']['getAttribute']('vid_start'),_0x1248b1=_0x421e97['get'](_0x2b0a87)||new Set();_0x1248b1['add'](_0x84af8c['get'](_0x41d7ee)['userId']),_0x421e97['set'](_0x2b0a87,_0x1248b1);}}_0x514d5d=_0x5369ce['deletions'][_0x413076];for(const _0x314802 of _0x514d5d)if(_0x314802['item']['is']('element','tableCell')){const _0x5d2b8c=this['_getVidAttributeName'](_0x314802),_0x582910=_0x314802['item']['getAttribute'](_0x5d2b8c);if(_0x1ffb22['has'](_0x582910)){const _0xff64d3=_0x314802['item']['parent']['parent']['getAttribute']('vid_start'),_0x224bdd=_0x421e97['get'](_0xff64d3)||new Set();_0x224bdd['add'](_0x1ffb22['get'](_0x582910)['userId']),_0x421e97['set'](_0xff64d3,_0x224bdd);}}for(const _0x20f602 of _0x421e97['keys']())(_0x84af8c['has'](_0x20f602)||_0x1ffb22['has'](_0x20f602))&&_0x421e97['delete'](_0x20f602);}for(const _0x4d8387 of _0x256335){const _0x2d3490=_0x5369ce['insertions'][_0x4d8387];let _0x2bd70d=null,_0x2fef05=null;for(const _0x5209e7 of _0x2d3490){const _0x336d4b=this['_getVidAttributeName'](_0x5209e7),_0x3aea95=_0x5209e7['item']['getAttribute'](_0x336d4b),_0x3f41f7=_0x421e97['get'](_0x3aea95);_0x3f41f7&&'elementStart'==_0x5209e7['type']&&(_0x2bd70d=Array['from'](_0x3f41f7)[0x0],_0x2fef05=_0x5209e7['item']['getAttribute']('vid_end')),_0x2bd70d&&(_0x1ffb22['set'](_0x3aea95,{'userId':_0x2bd70d}),_0x84af8c['set'](_0x3aea95,{'userId':_0x2bd70d})),_0x3aea95==_0x2fef05&&(_0x2bd70d=null,_0x2fef05=null);}}const _0x36a72a={},_0x12dfd7=new Set();for(const _0x296bf6 of _0x256335){const _0x3b5f2e=_0x2b2eba['deletions'][_0x296bf6],_0x4d91c6=_0x2b2eba['insertions'][_0x296bf6];for(const {userId:_0x5cf8fc}of this['_touchedMarkers']['values']())null!==_0x5cf8fc&&_0x12dfd7['add'](_0x5cf8fc);for(const {userId:_0x35f6d9}of this['_touchedRoots']['values']())null!==_0x35f6d9&&_0x12dfd7['add'](_0x35f6d9);this['_markChanges'](_0x4d91c6,_0x5369ce['insertions'][_0x296bf6],_0x84af8c,'insertion',_0x12dfd7),this['_markChanges'](_0x3b5f2e,_0x5369ce['deletions'][_0x296bf6],_0x1ffb22,'deletion',_0x12dfd7),_0x36a72a[_0x296bf6]={'insertions':this['_prepareViewToSave'](_0x4d91c6),'deletions':this['_prepareViewToSave'](_0x3b5f2e),'attachChange':this['_touchedRoots']['get'](_0x296bf6)||null,'attributesBefore':_0x20f484(this['_baseRootsAttributes']['get'](_0x296bf6))||{},'attributesAfter':_0x20f484(this['_diffRootsAttributes']['get'](_0x296bf6))};}return{'diffData':_0x36a72a,'authorsIds':Array['from'](_0x12dfd7)};}['_processRootBeforeSave'](_0x1af8c0){for(const [,_0x4198b8]of _0x1af8c0['markers']){const _0x4b05f2=_0x4198b8['start']['getAncestors']()['filter'](_0x4ccf56=>'tableCell'==_0x4ccf56['name']);for(const _0x338d62 of _0x4b05f2)0x1==_0x338d62['childCount']&&_0x338d62['getChild'](0x0)['is']('element','paragraph')&&_0x338d62['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x47a10b){this['_processRootBeforeSave'](_0x47a10b);const _0xf519b2=this['editor']['data']['toView'](_0x47a10b,{}),_0x32a86f=Array['from'](_0xf519b2['getChildren']())['map'](_0x4021fb=>this['_getViewJson'](_0x4021fb));return JSON['stringify'](_0x32a86f);}['_getViewJson'](_0x1f2f92){if(_0x1f2f92['is']('$text'))return _0x1f2f92['data'];{const _0x1e0bf4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fa11b=_0x1f2f92,_0x4067e9=this['editor']['data']['htmlProcessor']['domConverter'],_0xde8907={'type':_0x1e0bf4['_getTypeCharForViewElement'](_0x4fa11b),'name':_0x4fa11b['name'],'attributes':Array['from'](_0x4fa11b['getAttributes']()),'children':Array['from'](_0x4fa11b['getChildren']())['map'](_0x468152=>this['_getViewJson'](_0x468152))};if(_0x1f2f92['is']('uiElement')&&'$comment'!=_0x1f2f92['name']){const _0x178ea4=_0x1f2f92['render'](_0x4067e9['domDocument'],_0x4067e9);_0xde8907['children']['push'](_0x178ea4['outerHTML']);}else{if(_0x1f2f92['is']('rawElement')){const _0x4bdef5=_0x4067e9['domDocument']['createElement'](_0x4fa11b['name']);_0x1f2f92['render'](_0x4bdef5,_0x4067e9),_0xde8907['children']['push'](_0x4bdef5['innerHTML']);}}const _0x2d0571=Array['from'](_0x4fa11b['getCustomProperties']());_0x2d0571['length']>0x0&&(_0xde8907['customProperties']=_0x2d0571);const _0x25d218=_0x4fa11b['getFillerOffset']();return null!==_0x25d218&&(_0xde8907['fillerOffset']=_0x25d218),_0xde8907;}}['_markChanges'](_0x1e25bc,_0x53efcd,_0x45cb10,_0x456d7a,_0x68c19){let _0x1984af=null,_0x168eff=null,_0x58ccb5=0x0;const _0x2fc3cc=this['editor']['model'];for(let _0x5950a7=0x0;_0x5950a7<_0x53efcd['length'];_0x5950a7++){const _0x50d861=this['_getVidAttributeName'](_0x53efcd[_0x5950a7]),_0x8d2c2=_0x53efcd[_0x5950a7]['item']['getAttribute'](_0x50d861),_0x2769d3=_0x45cb10['get'](_0x8d2c2),_0x28568a=_0x5950a7==_0x53efcd['length']-0x1;(!_0x1984af&&_0x2769d3&&(_0x1984af=_0x2769d3,_0x168eff=_0x53efcd[_0x5950a7]),_0x1984af&&(!_0x2769d3||_0x2769d3['userId']!=_0x1984af['userId']))&&(_0x17c318(_0x2769d3,P(_0x168eff,_0x1e25bc,_0x2fc3cc),P(_0x53efcd[_0x5950a7],_0x1e25bc,_0x2fc3cc)),_0x1984af=_0x2769d3||null,_0x168eff=_0x2769d3?_0x53efcd[_0x5950a7]:null),_0x1984af&&_0x28568a&&_0x17c318(_0x2769d3,P(_0x168eff,_0x1e25bc,_0x2fc3cc),V(_0x53efcd[_0x5950a7],_0x1e25bc,_0x2fc3cc));}function _0x17c318(_0x321f03,_0x4ff24b,_0x3b4733){const _0x4ae499=_0x1984af['userId'],_0x5aa60c='revision:'+_0x456d7a+':'+_0x4ae499+':'+_0x58ccb5++,_0x21cbe0=_0x2fc3cc['createRange'](_0x4ff24b,_0x3b4733);_0x1e25bc['markers']['set'](_0x5aa60c,_0x21cbe0),null!==_0x4ae499&&_0x68c19['add'](_0x4ae499);}}['_getVidAttributeName'](_0x43d8ae){switch(_0x43d8ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x41b469,_0x2db3eb){_0x41b469['baseVersion']=null;for(const _0x1306b0 in _0x41b469){const _0x5e3d18=_0x41b469[_0x1306b0];if(_0x5e3d18 instanceof _0x5d8173){const _0x356fd6=_0x2db3eb['get'](_0x5e3d18['root']['rootName']);_0x41b469[_0x1306b0]=this['_fixPosition'](_0x5e3d18,_0x356fd6);}if(_0x5e3d18 instanceof _0x47f923){const _0x3f1aa0=_0x2db3eb['get'](_0x5e3d18['root']['rootName']);_0x41b469[_0x1306b0]=this['_fixRange'](_0x5e3d18,_0x3f1aa0);}'root'===_0x1306b0&&(_0x41b469['root']=_0x2db3eb['get'](_0x41b469['root']['rootName']));}}['_fixRange'](_0x274367,_0x1cee7f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x274367['start'],_0x1cee7f),this['_fixPosition'](_0x274367['end'],_0x1cee7f));}['_fixPosition'](_0x54a742,_0x190539){return this['editor']['model']['createPositionFromPath'](_0x190539,_0x54a742['path'],_0x54a742['stickiness']);}['_handleInsertOperation'](_0xa2277c){const _0x1827f9=this['_idsRoots']['get'](_0xa2277c['position']['root']['rootName']),_0x5c3b2e=this['_fixPosition'](_0xa2277c['position'],_0x1827f9),_0x1e0ce2=null===_0xa2277c['_authorId']?null:_0xa2277c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35f81c=_0x5c3b2e['parent'],_0x45076c=this['_revisionId'],_0x4e4720=[];for(const _0x1ab2e4 of _0xa2277c['nodes'])if(_0x1ab2e4['is']('element'))_0x4e4720['push'](this['_makeIdsRoot'](_0x1ab2e4));else{for(let _0x2167e8=0x0;_0x2167e8<_0x1ab2e4['offsetSize'];_0x2167e8++)_0x4e4720['push'](new _0x24e097('$text',{'vid':this['_revisionId']++}));}const _0x37621b=this['_revisionId'];for(let _0x41538b=_0x45076c;_0x41538b<_0x37621b;_0x41538b++)this['_touched']['set'](_0x41538b,{'userId':_0x1e0ce2});_0x35f81c['_insertChild'](_0x5c3b2e['offset'],_0x4e4720);}['_handleMoveOperation'](_0x3b3f7d){(_0x3b3f7d=this['_cloneOperation'](_0x3b3f7d,this['_idsRoots']))['_execute']();const _0x2e6653=null===_0x3b3f7d['_authorId']?null:_0x3b3f7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x196886=_0x3b3f7d['getMovedRangeStart'](),_0x1fc8c3=_0x196886['parent'],_0xc9405b=_0x196886['offset'];!function _0xaec0ae(_0x25a717,_0x233e4d,_0x5e89b4,_0x95d955){for(let _0x362e77=_0x5e89b4;_0x362e77<_0x95d955;_0x362e77++){const _0x485710=_0x233e4d['getChild'](_0x362e77);_0x485710['is']('element','$text')?_0x25a717['set'](_0x485710['getAttribute']('vid'),{'userId':_0x2e6653}):(_0x25a717['set'](_0x485710['getAttribute']('vid_start'),{'userId':_0x2e6653}),_0xaec0ae(_0x25a717,_0x485710,0x0,_0x485710['childCount']),_0x25a717['set'](_0x485710['getAttribute']('vid_end'),{'userId':_0x2e6653}));}}(this['_touched'],_0x1fc8c3,_0xc9405b,_0xc9405b+_0x3b3f7d['howMany']);}['_handleMergeOperation'](_0x25f585){const _0x3134de=null===(_0x25f585=this['_cloneOperation'](_0x25f585,this['_idsRoots']))['_authorId']?null:_0x25f585['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7edcf1=_0x25f585['targetPosition']['parent'],_0x287532=_0x25f585['sourcePosition']['parent'],_0xd7e726=_0x7edcf1['getAttribute']('vid_end'),_0x752d02=_0x287532['getAttribute']('vid_start');_0x7edcf1['_setAttribute']('vid_end',_0x287532['getAttribute']('vid_end')),_0x287532['_setAttribute']('vid_end',_0xd7e726),this['_touched']['set'](_0x752d02,{'userId':_0x3134de}),this['_touched']['set'](_0xd7e726,{'userId':_0x3134de}),_0x25f585['_execute']();}['_handleSplitOperation'](_0x598911){const _0x381c31=null===(_0x598911=this['_cloneOperation'](_0x598911,this['_idsRoots']))['_authorId']?null:_0x598911['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2505ab=_0x598911['graveyardPosition'],_0x4c91ba=_0x598911['splitPosition']['parent'];_0x598911['_execute']();const _0x2188e7=_0x4c91ba['getAttribute']('vid_end'),_0x406ac8=_0x598911['insertionPosition']['nodeAfter'];if(_0x2505ab){const _0x4a7cbb=_0x406ac8['getAttribute']('vid_end'),_0x183a85=_0x4c91ba['getAttribute']('vid_end');_0x4c91ba['_setAttribute']('vid_end',_0x4a7cbb),_0x406ac8['_setAttribute']('vid_end',_0x183a85),this['_touched']['set'](_0x4c91ba['getAttribute']('vid_end'),{'userId':_0x381c31}),this['_touched']['set'](_0x406ac8['getAttribute']('vid_start'),{'userId':_0x381c31});}else{const _0x2e7b49=this['_revisionId']++,_0x5040b1=this['_revisionId']++;_0x4c91ba['_setAttribute']('vid_end',_0x2e7b49),_0x406ac8['_setAttribute']('vid_start',_0x5040b1),_0x406ac8['_setAttribute']('vid_end',_0x2188e7),this['_touched']['set'](_0x2e7b49,{'userId':_0x381c31}),this['_touched']['set'](_0x5040b1,{'userId':_0x381c31});}}['_handleMarkerOperation'](_0x35dc4c){if(!_0x35dc4c['affectsData'])return;const _0x566582=(_0x35dc4c=this['_cloneOperation'](_0x35dc4c,this['_diffRoots']))['oldRange']?_0x35dc4c['oldRange']['root']:null,_0x584ae5=_0x35dc4c['newRange']?_0x35dc4c['newRange']['root']:null;_0x566582&&this['_markers']['delete'](_0x35dc4c['name']),_0x584ae5&&this['_markers']['set'](_0x35dc4c['name'],_0x35dc4c['newRange']['clone']());const _0x2a7f0a=null===_0x35dc4c['_authorId']?null:_0x35dc4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52d407=_0x35dc4c['name'];if(!this['_touchedMarkers']['has'](_0x52d407))return void this['_touchedMarkers']['set'](_0x52d407,{'range':_0x35dc4c['oldRange'],'userId':_0x2a7f0a});const _0x4f2695=this['_touchedMarkers']['get'](_0x52d407),_0x28576b=_0x4f2695['range'],_0x86f1be=_0x35dc4c['newRange'];null==_0x28576b&&null==_0x86f1be||_0x28576b&&_0x86f1be&&_0x28576b['isEqual'](_0x86f1be)?this['_touchedMarkers']['delete'](_0x35dc4c['name']):_0x4f2695['userId']=_0x2a7f0a;}['_handleRootOperation'](_0x32274a,_0x4f8bac){this['_diffRoots']['has'](_0x32274a['rootName'])?this['_diffRoots']['get'](_0x32274a['rootName'])['_isAttached']=_0x32274a['isAdd']:(this['_diffRoots']['set'](_0x32274a['rootName'],N(_0x32274a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x32274a['rootName'],{}),_0x4f8bac&&this['_idsRoots']['set'](_0x32274a['rootName'],N(_0x32274a['rootName'],!0x0)));const _0x2f8d82=null===_0x32274a['_authorId']?null:_0x32274a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c4275=this['_touchedRoots']['get'](_0x32274a['rootName']);_0x2c4275&&_0x2c4275['userId']===_0x2f8d82?this['_touchedRoots']['delete'](_0x32274a['rootName']):this['_touchedRoots']['set'](_0x32274a['rootName'],{'userId':_0x2f8d82,'isAttached':_0x32274a['isAdd']});}['_handleRootAttributeOperation'](_0x28e9bb){const _0x4d6f1d=this['_diffRootsAttributes']['get'](_0x28e9bb['root']['rootName']);null===_0x28e9bb['newValue']?delete _0x4d6f1d[_0x28e9bb['key']]:_0x4d6f1d[_0x28e9bb['key']]=_0x28e9bb['newValue'];}}function x(_0x499161){const _0x576f3f=N(_0x499161['rootName'],_0x499161['isAttached']());for(const _0x90ed43 of _0x499161['getChildren']()){const _0x3b6468=_0x90ed43['_clone'](!0x0);_0x576f3f['_appendChild'](_0x3b6468);}return _0x576f3f;}function N(_0x541a9c,_0x24a00b=!0x0){const _0x12c792=new _0xdf8818();return _0x12c792['rootName']=_0x541a9c,_0x12c792['_isAttached']=_0x24a00b,_0x12c792['isAttached']=()=>_0x12c792['_isAttached'],_0x12c792;}function P(_0x33bb4d,_0x1845d2,_0x28bfd4){const _0x17b475='elementEnd'==_0x33bb4d['type']?_0x28bfd4['createPositionAt'](_0x33bb4d['item'],'end'):_0x28bfd4['createPositionBefore'](_0x33bb4d['item']);return _0x28bfd4['createPositionFromPath'](_0x1845d2,_0x17b475['path'],_0x17b475['stickiness']);}function V(_0x195048,_0xe6839a,_0x305c98){const _0xcf895a='elementStart'==_0x195048['type']?_0x305c98['createPositionAt'](_0x195048['item'],0x0):_0x305c98['createPositionAfter'](_0x195048['item']);return _0x305c98['createPositionFromPath'](_0xe6839a,_0xcf895a['path'],_0xcf895a['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x42afb7(_0x3ecb12){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49f0e8,_0x4886bb){super(_0x49f0e8),this['focusTracker']=new _0x5ad870(),this['keystrokes']=new _0x380150(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4886bb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x507135({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x57b3b8=_0x55531b=>_0x55531b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x57b3b8),this['keystrokes']['set']('arrowleft',_0x57b3b8),this['keystrokes']['set']('arrowup',_0x57b3b8),this['keystrokes']['set']('arrowdown',_0x57b3b8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x511d51){this['revisionNameInputView']['fieldView']['element']['value']=_0x511d51['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x353f3c){const _0x101aa3=new ti(this['locale'],_0x5b55e3),_0x541795=_0x101aa3['fieldView'];_0x541795['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x10531d=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x353f3c&&(_0x10531d+='\x20('+R(this['locale'],'optional')+')'),(_0x101aa3['label']=_0x10531d,_0x541795['on']('input',()=>{this['revisionNameInputValue']=_0x541795['element']['value']['trim']();}),_0x101aa3);}}class v extends _0x4b6c22{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x10ac2d=this['editor'],_0x216015=_0x10ac2d['plugins']['get']('RevisionTracker');_0x10ac2d['ui']['componentFactory']['add']('revisionHistory',_0x118487=>{const _0xce3a09=_0x195a39(_0x118487),_0x2b9c07=_0xce3a09['panelView']['children'],_0x4ca4dc=new _0xcfb5d2(_0x118487),_0x14117b=new _0x276d1b(_0x118487),_0x52b2dc=new _0x5c81a4(_0x118487),_0xe1defc=new _0x276d1b(_0x118487),_0xa60a0b=new _0x5c81a4(_0x118487);return _0xce3a09['bind']('isEnabled')['to'](_0x216015,'isReady',_0x216015,'isEnabled',_0x10ac2d,'isReadOnly',(_0x285c0d,_0x30dccf,_0x4cfd43)=>_0x285c0d&&_0x30dccf&&!_0x4cfd43),_0xce3a09['buttonView']['set']({'icon':_0x255ec9,'label':R(_0x118487,'Revision\x20history'),'tooltip':!0x0}),_0x52b2dc['set']({'label':R(_0x118487,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x52b2dc['bind']('isEnabled')['to'](_0x216015,'isReady',_0x216015,'isEnabled',_0x10ac2d,'isReadOnly',(_0x487063,_0x1b0689,_0x42a2d5)=>_0x487063&&_0x1b0689&&!_0x42a2d5),_0x52b2dc['on']('execute',()=>this['_showDialog']()),_0xa60a0b['set']({'label':R(_0x118487,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xa60a0b['bind']('isEnabled')['to'](_0x216015,'isReady',_0x10ac2d,'isReadOnly',(_0x14ef7d,_0x471575)=>_0x14ef7d&&!_0x471575),_0xa60a0b['on']('execute',()=>{_0x10ac2d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xce3a09['isOpen']=!0x1,_0x10ac2d['editing']['view']['focus']();}),_0x14117b['children']['add'](_0x52b2dc),_0xe1defc['children']['add'](_0xa60a0b),_0x4ca4dc['role']='menu',_0x4ca4dc['items']['addMany']([_0x14117b,_0xe1defc]),_0x2b9c07['add'](_0x4ca4dc),_0xce3a09;}),_0x10ac2d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x7ed6ae=this['editor'],_0x13864e=_0x7ed6ae['locale'],_0x34bdd4=new _0x6d116d(_0x13864e),_0x2fc1f4=new _0x1dc46d(_0x13864e);_0x34bdd4['buttonView']['set']({'icon':_0x255ec9,'label':R(_0x13864e,'Revision\x20history')});const _0x5a08a1=new _0x41dcbf(_0x13864e,_0x34bdd4),_0x495a0f=new _0x33b590(_0x13864e);_0x495a0f['set']({'label':R(_0x13864e,'Save\x20current\x20revision')}),_0x495a0f['delegate']('execute')['to'](_0x34bdd4),_0x495a0f['on']('execute',()=>{this['_showDialog']();}),_0x5a08a1['children']['add'](_0x495a0f),_0x2fc1f4['items']['add'](_0x5a08a1);const _0x3c6851=new _0x41dcbf(_0x13864e,_0x34bdd4),_0xe014b7=new _0x33b590(_0x13864e);return _0xe014b7['set']({'label':R(_0x13864e,'Open\x20revision\x20history')}),_0xe014b7['delegate']('execute')['to'](_0x34bdd4),_0xe014b7['on']('execute',()=>{_0x7ed6ae['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3c6851['children']['add'](_0xe014b7),_0x2fc1f4['items']['add'](_0x3c6851),_0x34bdd4['panelView']['children']['add'](_0x2fc1f4),_0x34bdd4;}['_showDialog'](){const _0x502eee=this['editor'],_0x52b17a=_0x502eee['locale'],_0xd56b26=_0x502eee['plugins']['get']('Dialog'),_0x2e9bd4=_0x502eee['plugins']['get']('RevisionTracker');function _0x1bcafd(_0x199d76){_0x502eee['config']['get']('revisionHistory.requireRevisionName')&&''===_0x199d76['revisionName']?_0x199d76['revisionNameInputView']['errorText']=R(_0x52b17a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x502eee['plugins']['get'](h)['saveRevision']({'name':_0x199d76['revisionName']}),_0xd56b26['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1bcafd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xd56b26['show']({'id':'revisionSave','title':R(_0x52b17a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x502eee['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xd56b26['hide']()},{'label':R(_0x502eee['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xc1ad87){_0xc1ad87['bind']('isEnabled')['to'](_0x2e9bd4,'isReady',_0x2e9bd4,'isEnabled',_0x502eee,'isReadOnly',(_0xd43e2f,_0x5b5d9e,_0x2dba55)=>_0xd43e2f&&_0x5b5d9e&&!_0x2dba55);},'onExecute':()=>_0x1bcafd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xd70dd9=this['editor'],_0x18807c=_0xd70dd9['locale'];this['_saveRevisionFormView']=new he(_0x18807c,_0xd70dd9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3ecb12{['changeId'];['_model'];constructor(_0x4336f6,_0x5dff48){super(_0x4336f6),this['_model']=_0x5dff48,this['changeId']=_0x5dff48['id'];const _0x3aff5e=this['bindTemplate'],_0x1b3140=R(_0x4336f6,_0x5dff48['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5dff48['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5dff48['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3aff5e['to']('type',_0x134293=>'ck-revision-change__'+_0x134293)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b3140}]},{'text':'\x20'+_0x5dff48['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5ed703(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2ae273){super(),this['id']=_0x2ae273['id']||_0x2bd58b(),this['author']=_0x2ae273['author'],this['type']=_0x2ae273['type'],this['data']=_0x2ae273['data']||{},this['rootName']=_0x2ae273['rootName'],this['set']('createdAt',_0x2ae273['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5cd2b3,_0x4a8b9b){this['newRevisionId']=_0x5cd2b3,this['oldRevisionId']=_0x4a8b9b,this['changes']=new _0x5d0537();}['_setChanges'](_0x2b6e12){for(const _0x10ea7f of _0x2b6e12)this['changes']['add'](_0x10ea7f);}}class l extends _0x4b6c22{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x14b7c6,_0x4232c8,S,$];}constructor(_0x5036b3){super(_0x5036b3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x46e4e5,_0x4313a3,_0xae2907)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2f5d53=>{for(const _0x2ecad6 of this['editor']['editing']['view']['document']['roots'])_0xae2907?_0x2f5d53['removeClass']('ck-editor__editable__overlay',_0x2ecad6):_0x2f5d53['addClass']('ck-editor__editable__overlay',_0x2ecad6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x404f82=>null!==_0x404f82),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1bcdbd,_0x8489f4,_0x5ba345)=>_0x1bcdbd&&_0x5ba345?_0x8489f4['changes']['getIndex'](_0x5ba345):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x13ab47,_0x1a8dc1)=>_0x13ab47?_0x1a8dc1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4232c8);}['init'](){const _0x599280=this['editor'],_0x30144c=new ot(_0x599280,{'direction':'backward'}),_0x52a89c=new ot(_0x599280,{'direction':'forward'});(_0x599280['commands']['add']('showPreviousChange',_0x30144c),_0x599280['commands']['add']('showNextChange',_0x52a89c),_0x599280['commands']['add']('restoreRevision',new nt(_0x599280)),this['on']('change:numberOfChanges',()=>{_0x30144c['refresh'](),_0x52a89c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x599280['enableReadOnlyMode']('revision-viewer'),_0x599280['plugins']['has']('WidgetToolbarRepository'))&&_0x599280['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x236581){return await this['_utils']['loadRevisionData'](_0x236581,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x236581);}async['getRevisionRootsAttributes'](_0x518af0){return await this['_utils']['loadRevisionData'](_0x518af0,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x518af0);}async['compare'](_0x4e24b9,_0x240315,_0x47f018=!0x1){if(!this['isEnabled'])return;const _0x20934c=this['diff'],_0xa4189=this['repository'],_0x4c84d6='string'==typeof _0x4e24b9?_0xa4189['getRevision'](_0x4e24b9):_0x4e24b9,_0x142688='string'==typeof _0x240315?_0xa4189['getRevision'](_0x240315):_0x240315,_0x4cc956=_0x4c84d6['id'],_0x3b97b5=_0x142688?_0x142688['id']:null;if(!_0x47f018&&this['diff']&&this['diff']['newRevisionId']===_0x4cc956&&this['diff']['oldRevisionId']===_0x3b97b5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4cc956,_0x3b97b5);const _0x2b83c9=this['_getRevisionsRange'](_0x4c84d6,_0x142688,!0x0)['map'](_0x2e47f3=>this['_utils']['loadRevisionData'](_0x2e47f3,this['adapter']));return _0x2b83c9['push'](new Promise(_0x1a4e57=>{setTimeout(_0x1a4e57,0x14);})),Promise['all'](_0x2b83c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x160ad6=this['_getDiff'](_0x4cc956,_0x3b97b5);for(const _0x236351 of _0x160ad6['changes'])this['_changeIdToChange']['set'](_0x236351['id'],_0x236351);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3277c3=>{for(const _0x38670a of this['editor']['model']['document']['getRootNames']())_0x3277c3['detachRoot'](_0x38670a);for(const _0x5f4604 of Object['keys'](_0x160ad6['model'])){const _0x146bc8=_0x3277c3['addRoot'](_0x5f4604);for(const _0xe25f05 of Object['keys'](_0x160ad6['attributes'][_0x5f4604]))_0x3277c3['setAttribute'](_0xe25f05,_0x160ad6['attributes'][_0x5f4604][_0xe25f05],_0x146bc8);_0x3277c3['insert'](_0x160ad6['model'][_0x5f4604],_0x146bc8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x160ad6['changes'])),this['isReady']=!0x0;})['catch'](_0x52ad79=>{console['error'](_0x52ad79),this['_cleanUp'](),_0x20934c&&(this['diff']=_0x20934c),this['isReady']=!0x0;});}['addRevisionData'](_0x13b67b,_0x44fc14){const _0x338f16=this['repository']['createRevision'](_0x13b67b);return _0x338f16['on']('_update',(_0xd49d4c,_0x2f4dcb,_0x4b77e2)=>_0x44fc14(_0x2f4dcb,_0x4b77e2,_0x338f16)),this['repository']['addRevision'](_0x338f16),_0x338f16;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26528e=>{for(const _0x43e27a of this['editor']['model']['document']['getRootNames']())_0x26528e['detachRoot'](_0x43e27a);});}['_sortAndFilterDiffChanges'](_0xb2820c){const _0x4bf866=[],_0x1ed267=new Map();for(const _0x130e49 of this['editor']['model']['document']['getRootNames']()){const _0x55506c=this['editor']['editing']['view']['getDomRoot'](_0x130e49);if(!_0x55506c)continue;const _0x43dab6=_0x55506c['getClientRects']()['item'](0x0);_0x43dab6&&(_0x4bf866['push'](_0x130e49),_0x1ed267['set'](_0x130e49,_0x43dab6));}return _0x4bf866['sort']((_0x496b53,_0x183caf)=>{const _0x284e04=_0x1ed267['get'](_0x496b53),_0x1efebe=_0x1ed267['get'](_0x183caf);return _0x284e04['y']-_0x1efebe['y']||_0x284e04['x']-_0x1efebe['x'];}),(_0xb2820c=_0xb2820c['filter'](_0x332dc7=>_0x4bf866['includes'](_0x332dc7['rootName'])))['sort']((_0x5bc6e2,_0x9afbfd)=>_0x4bf866['indexOf'](_0x5bc6e2['rootName'])-_0x4bf866['indexOf'](_0x9afbfd['rootName'])),_0xb2820c;}['_makeTape'](_0x3b309a){const _0x210b3e=Array['from'](_0x3b309a['markers'])['filter'](([_0x35f5f6,_0x33cec9])=>_0x35f5f6['startsWith']('revision:')&&!_0x33cec9['isCollapsed']),_0x32c5ba=Array['from'](this['editor']['model']['createRangeIn'](_0x3b309a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x210b3e['length'])for(const _0x42f96d of _0x32c5ba){const [_0x2479bb,_0x55fd82]=_0x210b3e[0x0],[,_0x7b0e2e,_0x20281e]=_0x2479bb['split'](':');if(_0x55fd82['end']['isEqual'](_0x42f96d['nextPosition'])&&_0x210b3e['shift'](),(_0x42f96d['previousPosition']['isEqual'](_0x55fd82['start'])||_0x42f96d['previousPosition']['isAfter'](_0x55fd82['start']))&&('insertion'==_0x7b0e2e?_0x42f96d['isAdded']={'userId':_0x20281e}:'deletion'==_0x7b0e2e&&(_0x42f96d['isRemoved']={'userId':_0x20281e})),0x0==_0x210b3e['length'])break;}return _0x32c5ba;}['_refreshStartEndIndex'](_0x23241e){const _0x253221=new Map();for(let _0x1654ed=0x0;_0x1654ed<_0x23241e['length'];_0x1654ed++)'text'===_0x23241e[_0x1654ed]['type']?(_0x23241e[_0x1654ed]['item']['startIndex']=_0x1654ed,_0x23241e[_0x1654ed]['item']['endIndex']=_0x1654ed):('elementStart'===_0x23241e[_0x1654ed]['type']?_0x23241e[_0x1654ed]['item']['startIndex']=_0x1654ed:'elementEnd'===_0x23241e[_0x1654ed]['type']&&(_0x23241e[_0x1654ed]['item']['endIndex']=_0x1654ed),_0x253221['set'](_0x23241e[_0x1654ed]['id'],_0x1654ed));for(const _0x150073 of _0x253221['values']())'elementStart'===_0x23241e[_0x150073]['type']?_0x23241e[_0x150073]['item']['endIndex']=_0x253221['get'](_0x23241e[_0x150073]['pairId']):'elementEnd'===_0x23241e[_0x150073]['type']&&(_0x23241e[_0x150073]['item']['startIndex']=_0x253221['get'](_0x23241e[_0x150073]['pairId']));}['_processTape'](_0x4242e5){for(let _0x293a58=0x0;_0x293a58<_0x4242e5['length'];_0x293a58++){if('elementStart'===_0x4242e5[_0x293a58]['type'])_0x4242e5[_0x293a58]['item']['startIndex']=_0x293a58;else{if('elementEnd'===_0x4242e5[_0x293a58]['type']){_0x4242e5[_0x293a58]['item']['endIndex']=_0x293a58;const _0x595830=_0x4242e5[_0x293a58]['item']['startIndex'];_0x4242e5[_0x595830]['pairId']=_0x4242e5[_0x293a58]['id'],_0x4242e5[_0x293a58]['pairId']=_0x4242e5[_0x595830]['id'];}else _0x4242e5[_0x293a58]['item']['startIndex']=_0x293a58,_0x4242e5[_0x293a58]['item']['endIndex']=_0x293a58,_0x4242e5[_0x293a58]['pairId']=null;}_0x4242e5[_0x293a58]['markersStart']||(_0x4242e5[_0x293a58]['markersStart']=[],_0x4242e5[_0x293a58]['markersEnd']=[]);}}['_markInsertions'](_0x563e86,_0x178ef0){const _0x1b0686=_0x563e86['filter'](_0x328bfa=>!_0x328bfa['isAdded']);for(let _0x2f214f=0x0;_0x2f214f<_0x178ef0['length'];_0x2f214f++)_0x178ef0[_0x2f214f]['isAdded']&&(_0x1b0686[_0x2f214f]['isAdded']=_0x178ef0[_0x2f214f]['isAdded']);}['_getDiff'](_0x343b5e,_0x95f923=null){const _0x171885=this['repository']['getRevision'](_0x343b5e),_0x140f17=_0x95f923?this['repository']['getRevision'](_0x95f923):null,_0x58b9c3=this['_getRevisionsRange'](_0x171885,_0x140f17),_0x5ae5ef=_0x58b9c3[_0x58b9c3['length']-0x1],_0x3cd529=new Map(),_0x1ff6d8={'model':{},'attributes':{},'changes':[]},_0x22fe81=new Set(),_0x3acc24=new Map();for(let _0x39571a=_0x58b9c3['length']-0x1;_0x39571a>=0x0;_0x39571a--){const _0x47136a=_0x58b9c3[_0x39571a];for(const _0x24c4d0 of Object['keys'](_0x47136a['diffData']))if(_0x47136a['diffData'][_0x24c4d0]['attachChange']){const _0x2c661e=_0x47136a['diffData'][_0x24c4d0]['attachChange'];_0x2c661e['isAttached']?(_0x22fe81['add'](_0x24c4d0),_0x3acc24['has'](_0x24c4d0)&&_0x3acc24['get'](_0x24c4d0)['userId']==_0x2c661e['userId']?_0x3acc24['delete'](_0x24c4d0):_0x3acc24['set'](_0x24c4d0,_0x2c661e)):_0x3acc24['has'](_0x24c4d0)?(_0x22fe81['delete'](_0x24c4d0),_0x3acc24['delete'](_0x24c4d0)):(_0x22fe81['add'](_0x24c4d0),_0x3acc24['set'](_0x24c4d0,_0x2c661e));}else _0x22fe81['add'](_0x24c4d0);}for(const _0x3019f1 of _0x22fe81){const _0x19e7b3=_0x3acc24['has'](_0x3019f1)&&!_0x3acc24['get'](_0x3019f1)['isAttached'];let _0x1faeae=_0x19e7b3?_0x58b9c3['length']-0x1:0x0;const _0x17deda=_0x19e7b3?-0x1:0x1;for(;_0x58b9c3[_0x1faeae];){const _0x268068=_0x58b9c3[_0x1faeae];if(_0x268068['diffData'][_0x3019f1]){const _0x482a55=_0x19e7b3?_0x268068['diffData'][_0x3019f1]['attributesBefore']:_0x268068['diffData'][_0x3019f1]['attributesAfter'];_0x1ff6d8['attributes'][_0x3019f1]=_0x482a55?_0x20f484(_0x482a55):{};break;}_0x1faeae+=_0x17deda;}}for(const _0x22a4f3 of _0x58b9c3){_0x22a4f3['model']={};for(const _0x2067cf of _0x22a4f3['authors'])_0x3cd529['set'](_0x2067cf['id'],_0x2067cf);for(const _0x3350a8 of _0x22fe81){const _0x5c256c=_0x22a4f3['diffData'][_0x3350a8]?_0x22a4f3['diffData'][_0x3350a8]['insertions']:'[]',_0x530d0f=_0x22a4f3['diffData'][_0x3350a8]?_0x22a4f3['diffData'][_0x3350a8]['deletions']:'[]';_0x22a4f3['model'][_0x3350a8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5c256c),'deletions':this['_utils']['_makeModelFromViewString'](_0x530d0f)};}}for(const _0x885866 of _0x22fe81){let _0x364c0f=null,_0x5bfcf7=0x0;const _0x1937d8=new Map(Array['from'](_0x171885['model'][_0x885866]['insertions']['markers'])['filter'](([_0x344c04])=>!_0x344c04['startsWith']('revision:')));let _0x4baa38=0x0;for(const _0x57eb12 of _0x58b9c3){const _0x4dbc6b=this['_makeTape'](_0x57eb12['model'][_0x885866]['insertions']);_0x57eb12==_0x171885?(_0x364c0f=_0x4dbc6b,_0x5bfcf7=_0x364c0f['length'],_0x364c0f['forEach'](_0x1127bc=>{_0x1127bc['id']=_0x4baa38++;}),this['_processTape'](_0x364c0f)):this['_markInsertions'](_0x364c0f,_0x4dbc6b);const _0x5ae1ef=_0x364c0f['filter'](_0x10bfce=>!_0x10bfce['isAdded'])['map'](_0x294829=>_0x294829['id']);let _0x5b09aa=0x0;const _0x574657=this['_makeTape'](_0x57eb12['model'][_0x885866]['deletions']);_0x574657['forEach'](_0xb43db6=>{_0xb43db6['isRemoved']?_0xb43db6['id']=_0x5bfcf7++:_0xb43db6['id']=_0x5ae1ef[_0x5b09aa++];}),this['_processTape'](_0x574657),this['_setDistance'](_0x364c0f,'isAdded'),this['_setDistance'](_0x574657,'isRemoved'),_0x57eb12==_0x171885&&this['_markMarkers'](_0x364c0f,_0x1937d8),_0x364c0f=this['_joinTapes'](_0x364c0f,_0x574657),this['_refreshStartEndIndex'](_0x364c0f),this['_setDistance'](_0x364c0f,'isRemoved');}_0x364c0f=_0x364c0f['filter'](_0xf3fee4=>!(_0xf3fee4['isAdded']&&_0xf3fee4['isRemoved']));const _0x4193d2=new Map(_0x5ae5ef['model'][_0x885866]['deletions']['markers']),_0x1c1e84=new Set(_0x1937d8['keys']());for(const _0x278474 of _0x4193d2['keys']())_0x1c1e84['delete'](_0x278474);this['_markSuggestions'](_0x364c0f,_0x1c1e84),this['_fixObsoleteTags'](_0x364c0f),_0x364c0f=this['_removeMissingPairs'](_0x364c0f),_0x364c0f=this['_markMismatchedRemovedTags'](_0x364c0f),_0x364c0f=this['_removeUnsupportedChanges'](_0x364c0f);const {root:_0x5961c6,changes:_0x31ad43}=this['_makeModelFromTape'](_0x364c0f,_0x3cd529,_0x885866);_0x1ff6d8['model'][_0x885866]=_0x5961c6;const _0x48dbca=_0x3acc24['get'](_0x885866);if(_0x48dbca){const _0x42d0ac=_0x3cd529['get'](_0x48dbca['userId']),_0x262d1e=new G({'author':_0x42d0ac,'type':_0x48dbca['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x885866});_0x31ad43['unshift'](_0x262d1e),_0x1ff6d8['attributes'][_0x885866]['revisionHistoryAttachChange']=_0x262d1e['id'];}_0x1ff6d8['changes']=_0x1ff6d8['changes']['concat'](_0x31ad43);}return _0x1ff6d8;}['_markMarkers'](_0x1ee918,_0x345992){for(let _0x3fcf67=0x0;_0x3fcf67<_0x1ee918['length'];_0x3fcf67++)for(const [_0x13ddf3,_0x582852]of _0x345992)!_0x582852['isCollapsed']&&_0x582852['start']['isEqual'](_0x1ee918[_0x3fcf67]['previousPosition'])&&_0x1ee918[_0x3fcf67]['markersStart']['push'](_0x13ddf3),_0x582852['end']['isEqual'](_0x1ee918[_0x3fcf67]['nextPosition'])&&_0x1ee918[_0x3fcf67]['markersEnd']['push'](_0x13ddf3);}['_joinTapes'](_0x2a402d,_0x130d8c){let _0x44621a=[],_0x499a8b=0x0,_0x337ab5=0x0;for(;_0x499a8b<_0x2a402d['length']||_0x337ab5<_0x130d8c['length'];){const _0x257045=_0x2a402d[_0x499a8b]||{},_0x4eedaf=_0x130d8c[_0x337ab5]||{};if(_0x257045['id']==_0x4eedaf['id'])_0x499a8b++,_0x337ab5++,_0x44621a['push'](_0x257045);else{if(_0x4eedaf['isRemoved']&&_0x257045['isAdded']){const {commonTape:_0x3dbbd5,iEnd:_0x2628b4,jEnd:_0x40b857}=this['_threeWayMerge'](_0x2a402d,_0x499a8b,_0x130d8c,_0x337ab5);_0x44621a=_0x44621a['concat'](_0x3dbbd5),_0x499a8b=_0x2628b4,_0x337ab5=_0x40b857;}else _0x4eedaf['isRemoved']?(_0x337ab5++,_0x44621a['push'](_0x4eedaf)):(_0x499a8b++,_0x44621a['push'](_0x257045));}}return _0x44621a;}['_markSuggestions'](_0x27a94d,_0x17503b){const _0x5d5db5=[];for(let _0x1eb213=0x0;_0x1eb213<_0x27a94d['length'];_0x1eb213++){for(let _0x24aedb=0x0;_0x24aedb<_0x27a94d[_0x1eb213]['markersStart']['length'];_0x24aedb++){const _0x40c78b=_0x27a94d[_0x1eb213]['markersStart'][_0x24aedb];if(!_0x17503b['has'](_0x40c78b))continue;const {group:_0x303e33,type:_0x2cc8d7,authorId:_0x15090e}=_0x44c920(_0x40c78b);'revision-suggestion'!=_0x303e33||'insertion'!=_0x2cc8d7&&'deletion'!=_0x2cc8d7||(_0x5d5db5['unshift']({'type':_0x2cc8d7,'name':_0x40c78b,'userId':_0x15090e}),_0x27a94d[_0x1eb213]['markersStart']['splice'](_0x24aedb,0x1),_0x24aedb--);}_0x5e49a9(_0x27a94d[_0x1eb213]);for(let _0x190d55=0x0;_0x190d55<_0x27a94d[_0x1eb213]['markersEnd']['length'];_0x190d55++){const _0xabb35=_0x27a94d[_0x1eb213]['markersEnd'][_0x190d55];if(!_0x17503b['has'](_0xabb35))continue;const {group:_0x5b0e06,type:_0x265a2}=_0x44c920(_0xabb35);if('revision-suggestion'!=_0x5b0e06||'insertion'!=_0x265a2&&'deletion'!=_0x265a2)continue;_0x27a94d[_0x1eb213]['markersEnd']['splice'](_0x190d55,0x1),_0x190d55--;const _0x4b6fd8=_0x5d5db5['findIndex'](_0x450c19=>_0x450c19['name']==_0xabb35);_0x4b6fd8>-0x1&&_0x5d5db5['splice'](_0x4b6fd8,0x1);}}function _0x44c920(_0x10d04c){const _0x2c6241=_0x10d04c['split'](':');return{'group':_0x2c6241[0x0],'type':_0x2c6241[0x1],'subType':_0x2c6241['length']>=0x5?_0x2c6241[0x2]:null,'id':_0x2c6241['length']<0x5?_0x2c6241[0x2]:_0x2c6241[0x3],'authorId':_0x2c6241['length']<0x5?_0x2c6241[0x3]:_0x2c6241[0x4],'markerCount':0x6==_0x2c6241['length']?_0x2c6241[0x5]:null};}function _0x5e49a9(_0x40a949){for(let _0x3cd4c1=0x0;_0x3cd4c1<_0x5d5db5['length'];_0x3cd4c1++){if(_0x40a949['isAdded']&&'insertion'==_0x5d5db5[_0x3cd4c1]['type']&&_0x40a949['isAdded']['userId']==_0x5d5db5[_0x3cd4c1]['userId'])return _0x40a949['isAddSuggestion']=_0x5d5db5[_0x3cd4c1],void delete _0x40a949['isAdded'];if(!_0x40a949['isAdded']&&!_0x40a949['isRemoved']&&'deletion'==_0x5d5db5[_0x3cd4c1]['type'])return void(_0x40a949['isRemoveSuggestion']=_0x5d5db5[_0x3cd4c1]);}}}['_setDistance'](_0x5f1931,_0x30e522){let _0x48ef24=0x0,_0x302090=!0x1;const _0x5001a7=new Map();for(const _0x512a44 of _0x5f1931)_0x512a44[_0x30e522]?_0x302090&&(_0x48ef24++,_0x302090=!0x1):(_0x48ef24++,_0x302090=!0x0),_0x5001a7['set'](_0x512a44['id'],_0x48ef24);for(let _0x32f289=0x0;_0x32f289<_0x5f1931['length'];_0x32f289++){if('isRemoved'==_0x30e522&&_0x5f1931[_0x32f289]['isAdded']||'isAdded'==_0x30e522&&_0x5f1931[_0x32f289]['isRemoved'])continue;if('text'==_0x5f1931[_0x32f289]['type']){_0x5f1931[_0x32f289]['distance']=0x0;continue;}const _0x4c2f83=_0x5001a7['get'](_0x5f1931[_0x32f289]['pairId']),_0x252dc0=_0x5001a7['get'](_0x5f1931[_0x32f289]['id']);_0x5f1931[_0x32f289]['distance']=_0x4c2f83-_0x252dc0;}}['_getRevisionsRange'](_0x507e6e,_0x26e193,_0x2868ac=!0x1){const _0x3dfc5a=[];let _0x2d027d=this['repository']['getIndex'](_0x507e6e),_0x482d14=this['repository']['getIndex'](_0x26e193);for(-0x1==_0x482d14&&(_0x482d14=this['repository']['_revisions']['length'],_0x2868ac=!0x1);_0x2d027d<_0x482d14;)_0x3dfc5a['push'](this['repository']['getRevision'](_0x2d027d)),_0x2d027d++;return _0x2868ac&&_0x3dfc5a['push'](this['repository']['getRevision'](_0x2d027d)),_0x3dfc5a;}['_threeWayMerge'](_0x287fbc,_0x1d0e96,_0x1b7f97,_0x31353d){const _0x1da3c0=this['editor']['model']['schema'];let _0x5c5344=_0x1d0e96;for(;_0x287fbc[_0x5c5344]&&_0x287fbc[_0x5c5344]['isAdded'];)_0x5c5344++;let _0xf43136=_0x31353d;for(;_0x1b7f97[_0xf43136]&&_0x1b7f97[_0xf43136]['isRemoved'];)_0xf43136++;_0x16081c(_0x287fbc,_0x1d0e96,_0x5c5344),_0x16081c(_0x1b7f97,_0x31353d,_0xf43136);const _0x3493a4=_0x1b7f97['slice'](_0x31353d,_0xf43136)['concat'](_0x287fbc['slice'](_0x1d0e96,_0x5c5344));return _0x3493a4['sort']((_0x5721fd,_0x19b89d)=>_0x5721fd['side']!=_0x19b89d['side']?_0x5721fd['side']-_0x19b89d['side']:_0x5721fd['level']!=_0x19b89d['level']?_0x5721fd['level']-_0x19b89d['level']:_0x5721fd['distance']!=_0x19b89d['distance']?_0x19b89d['distance']-_0x5721fd['distance']:!!_0x5721fd['isAdded']!=!!_0x19b89d['isAdded']?-0x1==_0x5721fd['side']||0x0==_0x5721fd['side']?_0x5721fd['isAdded']?-0x1:0x1:_0x5721fd['isAdded']?0x1:-0x1:_0x5721fd['index']-_0x19b89d['index']),{'commonTape':_0x3493a4,'iEnd':_0x5c5344,'jEnd':_0xf43136};function _0x16081c(_0x14d443,_0x37f836,_0x1a22cf){let _0x5e63ca=-0x1,_0xc91b7e=Number['POSITIVE_INFINITY'],_0x24b2dc=!0x0;for(let _0x2eaf1a=_0x37f836;_0x2eaf1a<_0x1a22cf;_0x2eaf1a++)if(_0x1da3c0['isInline'](_0x14d443[_0x2eaf1a]['item'])||(_0x24b2dc=!0x1),_0x14d443[_0x2eaf1a]['item']['startIndex']<_0x37f836&&(_0x5e63ca=_0x2eaf1a),_0x14d443[_0x2eaf1a]['item']['endIndex']>=_0x1a22cf){_0xc91b7e=_0x2eaf1a;break;}_0x24b2dc&&(_0x5e63ca=_0x1a22cf-0x1);for(let _0x4cd64c=_0x37f836;_0x4cd64c<_0x1a22cf;_0x4cd64c++)_0x14d443[_0x4cd64c]['side']=_0x4cd64c<=_0x5e63ca?-0x1:_0x4cd64c<_0xc91b7e?0x0:0x1,_0x14d443[_0x4cd64c]['index']=_0x4cd64c;let _0x42cbe9=0x0;for(let _0x55787d=_0x37f836;_0x55787d<=_0x5e63ca;_0x55787d++)0x0==_0x14d443[_0x55787d]['distance']?_0x14d443[_0x55787d]['level']=_0x42cbe9:(_0x42cbe9++,_0x14d443[_0x55787d]['level']=_0x42cbe9,_0x42cbe9++);for(let _0x4a69e1=_0x37f836;_0x4a69e1<_0x1a22cf;_0x4a69e1++)0x0==_0x14d443[_0x4a69e1]['side']&&(_0x14d443[_0x4a69e1]['level']=_0x42cbe9);_0x42cbe9=0x0;for(let _0x2b729c=_0x1a22cf-0x1;_0x2b729c>=_0xc91b7e;_0x2b729c--)0x0==_0x14d443[_0x2b729c]['distance']?_0x14d443[_0x2b729c]['level']=_0x42cbe9:(_0x42cbe9--,_0x14d443[_0x2b729c]['level']=_0x42cbe9,_0x42cbe9--);}}['_fixObsoleteTags'](_0x35f641){const _0x339df4=new Map(),_0x12159c=this['editor']['model']['schema'];for(let _0x23fd0f=0x1;_0x23fd0f<_0x35f641['length'];_0x23fd0f++){let _0x11ca38,_0x33e2b3,_0x58c270;const _0x33ad84=_0x35f641[_0x23fd0f],_0x3b07ff=_0x35f641[_0x23fd0f-0x1];if('text'==_0x33ad84['type'])continue;if(_0x33ad84['type']!=_0x3b07ff['type'])continue;if(!_0x12159c['isBlock'](_0x3b07ff['item'])||_0x12159c['isLimit'](_0x3b07ff['item']))continue;if(!_0x12159c['isBlock'](_0x33ad84['item'])||_0x12159c['isLimit'](_0x33ad84['item']))continue;if((_0x35f641[_0x23fd0f]['isAdded']||_0x35f641[_0x23fd0f]['isAddSuggestion'])&&_0x35f641[_0x23fd0f-0x1]['isRemoved'])_0x11ca38=_0x35f641[_0x23fd0f],_0x33e2b3=_0x35f641[_0x23fd0f-0x1],_0x58c270=_0x23fd0f-0x1;else{if(!_0x35f641[_0x23fd0f]['isRemoved']||!_0x35f641[_0x23fd0f-0x1]['isAdded']&&!_0x35f641[_0x23fd0f-0x1]['isAddSuggestion'])continue;_0x11ca38=_0x35f641[_0x23fd0f-0x1],_0x33e2b3=_0x35f641[_0x23fd0f],_0x58c270=_0x23fd0f;}const _0x5d7471=_0x11ca38['level']==_0x33e2b3['level'],_0x55dc36=Math['abs'](_0x11ca38['level'])<Math['abs'](_0x33e2b3['level'])&&0x0==_0x33e2b3['distance'];(_0x5d7471||_0x55dc36)&&(_0x339df4['set'](_0x33e2b3['id'],_0x11ca38['id']),_0x35f641['splice'](_0x58c270,0x1),_0x23fd0f--,_0x11ca38['isAdded']=!0x1);}for(let _0x19b00d=0x0;_0x19b00d<_0x35f641['length'];_0x19b00d++)_0x339df4['has'](_0x35f641[_0x19b00d]['pairId'])&&(_0x35f641[_0x19b00d]['pairId']=_0x339df4['get'](_0x35f641[_0x19b00d]['pairId']));}['_removeMissingPairs'](_0x75a9ba){const _0x1fb106=new Set(_0x75a9ba['map'](_0x1097d3=>_0x1097d3['id']));for(let _0x157383=0x0;_0x157383<_0x75a9ba['length'];_0x157383++)_0x1fb106['has'](_0x75a9ba[_0x157383]['pairId'])||0x0==_0x75a9ba[_0x157383]['distance']||(_0x75a9ba[_0x157383]['isIncorrect']=!0x0);return _0x75a9ba['filter'](_0x2c2089=>!_0x2c2089['isIncorrect']);}['_markMismatchedRemovedTags'](_0x190038){const _0x55ef45=new Set();for(let _0x14a2e8=0x0;_0x14a2e8<_0x190038['length'];_0x14a2e8++){if(_0x55ef45['has'](_0x190038[_0x14a2e8]['id'])&&_0x190038[_0x14a2e8]['isRemoved']&&(_0x190038[_0x14a2e8]['isIncorrect']=!0x0),_0x190038[_0x14a2e8]['isIncorrect'])continue;if(0x0==_0x190038[_0x14a2e8]['distance'])continue;if('elementStart'!=_0x190038[_0x14a2e8]['type'])continue;if(null==_0x190038[_0x14a2e8]['pairId'])continue;let _0x570dbe=_0x14a2e8+0x1,_0x5bbdbd=0x0;for(;_0x190038[_0x570dbe]['id']!=_0x190038[_0x14a2e8]['pairId'];)'elementStart'==_0x190038[_0x570dbe]['type']?_0x5bbdbd++:'elementEnd'==_0x190038[_0x570dbe]['type']&&_0x5bbdbd--,_0x570dbe++;if(0x0!=_0x5bbdbd){if(_0x190038[_0x14a2e8]['isRemoved'])_0x190038[_0x14a2e8]['isIncorrect']=!0x0;else{for(;_0x570dbe!=_0x14a2e8;)_0x190038[_0x570dbe]['isRemoved']&&0x0!=_0x190038[_0x570dbe]['distance']&&(_0x190038[_0x570dbe]['isIncorrect']=!0x0,_0x55ef45['add'](_0x190038[_0x570dbe]['pairId'])),_0x570dbe--;}}}return _0x190038['filter'](_0x3ede1d=>!_0x3ede1d['isIncorrect']);}['_removeUnsupportedChanges'](_0x54690a){const _0x884675=this['editor']['model']['schema'];for(let _0x49d019=0x0;_0x49d019<_0x54690a['length'];_0x49d019++){if(!(_0x54690a[_0x49d019]['isAdded']||_0x54690a[_0x49d019]['isAddSuggestion']||_0x54690a[_0x49d019]['isRemoved']||_0x54690a[_0x49d019]['isRemoveSuggestion']))continue;if(0x0==_0x54690a[_0x49d019]['distance'])continue;const _0x91fd30=_0x54690a[_0x49d019]['item'];_0x884675['isBlock'](_0x91fd30)||_0x884675['isLimit'](_0x91fd30)||(_0x54690a[_0x49d019]['isAdded']&&delete _0x54690a[_0x49d019]['isAdded'],_0x54690a[_0x49d019]['isAddSuggestion']&&delete _0x54690a[_0x49d019]['isAddSuggestion'],_0x54690a[_0x49d019]['isRemoveSuggestion']&&delete _0x54690a[_0x49d019]['isRemoveSuggestion'],_0x54690a[_0x49d019]['isRemoved']&&(_0x54690a[_0x49d019]['isIncorrect']=!0x0));}return _0x54690a['filter'](_0x26fd02=>!_0x26fd02['isIncorrect']);}['_makeModelFromTape'](_0x48e0ac,_0x16fac2,_0x1eab2b){const _0x2398ff=new _0xdf8818(),_0x32db29=[],_0xdde649=new Map(),_0x2dc8f5=this['editor']['model'],_0x4f4c69=_0x2dc8f5['schema'],_0x4d167a=[_0x2398ff],_0x3df780={},_0x8b0390={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x8e1848=null;const _0x1a7e63=[0x0];for(let _0x257084=0x0;_0x257084<_0x48e0ac['length'];_0x257084++)if('elementStart'===_0x48e0ac[_0x257084]['type']){_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63);const _0x371a0a=new _0x24e097(_0x48e0ac[_0x257084]['item']['name'],_0x48e0ac[_0x257084]['item']['getAttributes']());_0x4d167a[0x0]['_appendChild'](_0x371a0a),_0x1a7e63['push'](0x0),_0x4d167a['unshift'](_0x371a0a),_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63);}else'elementEnd'===_0x48e0ac[_0x257084]['type']?(_0x4d167a['shift'](),_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63),_0x1a7e63['pop'](),_0x1a7e63[_0x1a7e63['length']-0x1]++,_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63)):(_0x48e0ac[_0x257084]['previousPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63),_0x8e1848?_0x8e1848['_data']+=_0x48e0ac[_0x257084]['item']['data']:_0x8e1848=new _0xa4be3c(_0x48e0ac[_0x257084]['item']['data'],_0x48e0ac[_0x257084]['item']['getAttributes']()),_0x48e0ac[_0x257084+0x1]&&'text'===_0x48e0ac[_0x257084+0x1]['type']&&_0x53623a(_0x8e1848,_0x48e0ac[_0x257084+0x1]['item'])||(_0x4d167a[0x0]['_appendChild'](_0x8e1848),_0x8e1848=null),_0x1a7e63[_0x1a7e63['length']-0x1]+=_0x48e0ac[_0x257084]['item']['offsetSize'],_0x48e0ac[_0x257084]['nextPosition']=_0x2dc8f5['createPositionFromPath'](_0x2398ff,_0x1a7e63));for(let _0x32d9c3=0x0;_0x32d9c3<_0x48e0ac['length'];_0x32d9c3++){const _0x5c524e=_0x48e0ac[_0x32d9c3]['previousPosition'],_0x2718c9=_0x48e0ac[_0x32d9c3]['nextPosition'];for(const _0x294b18 of _0x48e0ac[_0x32d9c3]['markersStart'])_0xdde649['set'](_0x294b18,{'start':_0x5c524e,'end':null});_0x5e2993('isRemoveSuggestion',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isAddSuggestion',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isRemoved',_0x32d9c3,_0x5c524e,_0x2718c9),_0x5e2993('isAdded',_0x32d9c3,_0x5c524e,_0x2718c9);for(const _0x1cfc4d of _0x48e0ac[_0x32d9c3]['markersEnd']){const _0x20e864=_0xdde649['get'](_0x1cfc4d);_0x20e864?_0x20e864['end']=_0x2718c9:_0xdde649['set'](_0x1cfc4d,{'start':_0x2718c9,'end':_0x2718c9});}}for(const [_0x15c0d3,_0x30c65b]of _0xdde649){const _0x3ac262=this['editor']['model']['createRange'](_0x30c65b['start'],_0x30c65b['end']);_0x2398ff['markers']['set'](_0x15c0d3,_0x3ac262);}return _0x32db29['sort']((_0x489b4f,_0x2f37a8)=>{const _0x10b6bc=_0x2398ff['markers']['get']('revision:'+_0x489b4f['id']),_0x4e18c6=_0x2398ff['markers']['get']('revision:'+_0x2f37a8['id']);return _0x10b6bc['start']['isBefore'](_0x4e18c6['start'])?-0x1:_0x10b6bc['start']['isAfter'](_0x4e18c6['start'])?0x1:_0x10b6bc['end']['isBefore'](_0x4e18c6['end'])?-0x1:_0x10b6bc['end']['isAfter'](_0x4e18c6['end'])?0x1:'add'===_0x489b4f['type']?-0x1:0x1;}),{'root':_0x2398ff,'changes':_0x32db29};function _0x5e2993(_0x2c5528,_0xdc1ee3,_0x21343c,_0x49c24c){const _0x32479b=!!_0x48e0ac[_0xdc1ee3][_0x2c5528],_0x217a2d=_0x32479b?_0x48e0ac[_0xdc1ee3][_0x2c5528]['userId']:null,_0x484a1a=_0xdc1ee3===_0x48e0ac['length']-0x1,_0x57524a=_0x8b0390[_0x2c5528][0x0],_0x1fe520=_0x4f4c69['isObject'](_0x48e0ac[_0xdc1ee3]['item']);!_0x3df780[_0x2c5528]&&_0x32479b?_0x3df780[_0x2c5528]={'start':_0x21343c,'tapeItem':_0x48e0ac[_0xdc1ee3],'userId':_0x217a2d,'type':_0x2c5528}:_0x3df780[_0x2c5528]&&!_0x32479b?(_0x3df780[_0x2c5528]['end']=_0x21343c,_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]=null):_0x3df780[_0x2c5528]&&_0x32479b&&_0x3df780[_0x2c5528]['userId']!==_0x217a2d&&(_0x3df780[_0x2c5528]['end']=_0x21343c,_0x57524a&&_0x57524a['userId']===_0x3df780[_0x2c5528]['userId']||_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]={'start':_0x21343c,'tapeItem':_0x48e0ac[_0xdc1ee3],'userId':_0x217a2d,'type':_0x2c5528}),_0x3df780[_0x2c5528]&&_0x1fe520&&('elementStart'!==_0x48e0ac[_0xdc1ee3]['type']||_0x57524a&&_0x57524a['userId']===_0x217a2d||_0x8b0390[_0x2c5528]['unshift']({'userId':_0x217a2d,'object':_0x48e0ac[_0xdc1ee3]['item'],'change':_0x3df780[_0x2c5528]}),'elementEnd'===_0x48e0ac[_0xdc1ee3]['type']&&_0x57524a&&_0x57524a['object']===_0x48e0ac[_0xdc1ee3]['item']&&(_0x8b0390[_0x2c5528]['shift'](),_0x3df780[_0x2c5528]=_0x57524a['change'])),_0x3df780[_0x2c5528]&&_0x484a1a&&(_0x3df780[_0x2c5528]['end']=_0x49c24c,_0x48abff(_0x3df780[_0x2c5528]),_0x3df780[_0x2c5528]=null);}function _0x48abff({start:_0xb1c891,end:_0x122317,tapeItem:_0x2a83d1,userId:_0x5d17f1,type:_0x20fc78}){const _0x5ccb65=_0x2a83d1['item'],_0x3028e9=_0x2dc8f5['schema']['isBlock'](_0x5ccb65)&&!_0x2dc8f5['schema']['isLimit'](_0x5ccb65),_0xd1398c=_0xb1c891['nodeAfter']==_0x122317['parent']&&_0x122317['isAtStart'];if(_0x3028e9&&_0xd1398c)return;const _0x4721fb=_0x2dc8f5['createRange'](_0xb1c891,_0x122317),_0x1cf619=_0x16fac2['get'](_0x5d17f1),_0xe925e5=new G({'author':_0x1cf619,'type':'isAdded'==_0x20fc78||'isAddSuggestion'==_0x20fc78?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x20fc78||'isRemoveSuggestion'==_0x20fc78},'createdAt':new Date(),'rootName':_0x1eab2b});_0x32db29['push'](_0xe925e5),_0x2398ff['markers']['set']('revision:'+_0xe925e5['id'],_0x4721fb);}function _0x53623a(_0x5e4f7a,_0x4083cb){const _0xc8128c=_0x5e4f7a['getAttributes'](),_0x407fa6=_0x4083cb['getAttributes']();for(const _0x14b5db of _0xc8128c){if(_0x14b5db[0x1]!==_0x4083cb['getAttribute'](_0x14b5db[0x0]))return!0x1;_0x407fa6['next']();}return _0x407fa6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x389e3d=>{const _0x293ee2=_0x389e3d['markerName']['split'](':')[0x1],_0x30b0de=this['_getChangeFromId'](_0x293ee2);if(!_0x30b0de)return null;const _0x355e30='add'==_0x30b0de['type']?'insertion':'deletion',_0x4ee7f5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x355e30];return _0x30b0de['data']['isSuggestion']&&_0x4ee7f5['push']('ck-suggestion-marker-'+_0x355e30+'-new'),this['activeChange']==_0x30b0de&&_0x4ee7f5['push']('ck-suggestion-marker--active'),{'classes':_0x4ee7f5,'attributes':{'data-change-id':_0x293ee2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4b5be9=>{_0x4b5be9['on']('element:pre',(_0x1332de,_0x48ac28,_0x4abeba)=>{const _0x29b932=_0x48ac28['viewItem']['getChild'](0x0);if(!_0x29b932||!_0x29b932['is']('element','code'))return;if(!_0x4abeba['consumable']['consume'](_0x29b932,{'attributes':['vid_start','vid_end']}))return;const _0x2874e3=_0x48ac28['modelRange']['start']['nodeAfter'];_0x4abeba['writer']['setAttribute']('vid_start',_0x29b932['getAttribute']('vid_start'),_0x2874e3),_0x4abeba['writer']['setAttribute']('vid_end',_0x29b932['getAttribute']('vid_end'),_0x2874e3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8d7f20=>{_0x8d7f20['on']('element',(_0x4f5d0a,_0x5159f8,_0x30c3cb)=>{if(!_0x30c3cb['consumable']['consume'](_0x5159f8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5159f8['modelRange']['isCollapsed'])return;const _0x73f383=_0x5159f8['modelRange']['start']['nodeAfter'];_0x73f383['hasAttribute']('vid_start')||_0x73f383['hasAttribute']('vid')||(_0x30c3cb['writer']['setAttribute']('vid_start',_0x5159f8['viewItem']['getAttribute']('vid_start'),_0x73f383),_0x30c3cb['writer']['setAttribute']('vid_end',_0x5159f8['viewItem']['getAttribute']('vid_end'),_0x73f383));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13f80f=>_0x13f80f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe80d17,[,_0x20278d])=>{['vid_start','vid_end','vid']['includes'](_0x20278d)&&(_0xe80d17['return']=!0x0,_0xe80d17['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x41b6f5=>{_0x41b6f5['on']('attribute:vid',(_0x231c86,_0x5b080f,_0x334666)=>{if('\x20'!=_0x5b080f['item']['data']||_0x5b080f['item']['parent']['maxOffset']>0x1)return;if(!_0x334666['consumable']['consume'](_0x5b080f['item'],_0x231c86['name']))return;const _0x4aa0bc=_0x334666['writer'],_0x128dee=_0x334666['mapper']['toViewRange'](_0x5b080f['range']);_0x4aa0bc['wrap'](_0x128dee,_0x4aa0bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5d21cf){const _0x7e324a=_0x5d21cf['plugins']['get']('RevisionViewer');return(_0x16e008,_0x1e3046,_0x5aa9b5)=>{const _0x51c9c3=_0x1e3046['markerName']['split'](':')[0x1],_0x320b11=_0x7e324a['_getChangeFromId'](_0x51c9c3);if(!_0x320b11)return null;const _0x127d34='add'==_0x320b11['type']?'split':'merge';if(!_0x5aa9b5['consumable']['test'](_0x1e3046['markerRange'],_0x16e008['name']))return;const _0x5d72fe=_0x1e3046['markerRange']['getWalker'](),_0x256973=_0x1e3046['markerRange']['start'],_0x3cdccf=_0x5d21cf['model']['schema'];let _0x5a0f46=null,_0x17758f=null,_0x1c2dd2=!0x1,_0x543998=!0x1;for(const _0x5eb9c7 of _0x5d72fe){const _0x38c91e=_0x5eb9c7['item'];_0x1c2dd2=_0x1c2dd2||_0x3cdccf['isContent'](_0x38c91e);const _0x252b9f=_0x5aa9b5['mapper']['toViewElement'](_0x38c91e);if(_0x252b9f&&_0x252b9f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5eb9c7['type']&&(_0x3cdccf['isBlock'](_0x38c91e)&&!_0x3cdccf['isLimit'](_0x38c91e)&&(_0x38c91e['nextSibling']||_0x256973['isAtEnd']?_0x5a0f46&&_0x5a0f46['parent']==_0x38c91e||(_0x5a0f46=_0x38c91e,_0x2dc568(_0x5eb9c7['previousPosition']),_0x543998=!0x0):_0x17758f=_0x17758f||_0x5eb9c7['previousPosition']));}function _0x2dc568(_0x2fdf29){const _0x2fb211=_0x5aa9b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x127d34}),_0x250443=_0x5aa9b5['mapper']['toViewPosition'](_0x2fdf29);_0x320b11['data']['isSuggestion']&&_0x5aa9b5['writer']['addClass']('ck-suggestion-marker-'+_0x127d34+'-new',_0x2fb211),_0x7e324a['activeChange']==_0x320b11&&_0x5aa9b5['writer']['addClass']('ck-suggestion-marker--active',_0x2fb211),_0x5aa9b5['writer']['insert'](_0x250443,_0x2fb211),_0x5aa9b5['mapper']['bindElementToMarker'](_0x2fb211,_0x1e3046['markerName']);}_0x1c2dd2||_0x543998||!_0x17758f||_0x2dc568(_0x17758f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x40f5ae,_0x3ea56a,_0x3d6b8c)=>{const _0x26d97a=_0x3d6b8c['mapper']['markerNameToElements'](_0x3ea56a['markerName']);if(_0x26d97a){for(const _0x3d32d7 of _0x26d97a)(_0x3d32d7['hasClass']('ck-suggestion-marker-split')||_0x3d32d7['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d6b8c['mapper']['unbindElementFromMarkerName'](_0x3d32d7,_0x3ea56a['markerName']),_0x3d6b8c['writer']['remove'](_0x3d32d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x526ed8,_0x376fc2,_0x185ef9)=>{const _0x20bef4=_0x376fc2['markerName']['split'](':')[0x1],_0x2caace=this['_getChangeFromId'](_0x20bef4);if(!_0x2caace)return null;const _0x480805='add'==_0x2caace['type']?'split':'merge';if(_0x185ef9['consumable']['test'](_0x376fc2['markerRange'],_0x526ed8['name']))for(const _0x3b6611 of _0x376fc2['markerRange']['getItems']()){if(!_0x3b6611['is']('element','softBreak'))continue;const _0x4bcb1e=_0x185ef9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x480805}),_0x2ed529=_0x185ef9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b6611));_0x2caace['data']['isSuggestion']&&_0x185ef9['writer']['addClass']('ck-suggestion-marker-'+_0x480805+'-new',_0x4bcb1e),this['activeChange']==_0x2caace&&_0x185ef9['writer']['addClass']('ck-suggestion-marker--active',_0x4bcb1e),_0x185ef9['writer']['insert'](_0x2ed529,_0x4bcb1e),_0x185ef9['mapper']['bindElementToMarker'](_0x4bcb1e,_0x376fc2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4a414f=>{for(const _0xf98d37 of this['editor']['model']['document']['getRootNames']()){const _0x2aee44=this['editor']['model']['document']['getRoot'](_0xf98d37),_0x4a8efc=this['editor']['editing']['view']['document']['getRoot'](_0xf98d37);if(_0x4a8efc){const _0x41319f=_0x2aee44['getAttribute']('revisionHistoryAttachChange');if(_0x4a414f['removeAttribute']('data-change-id',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root-add',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root-remove',_0x4a8efc),_0x4a414f['removeClass']('ck-revision-history-root--active',_0x4a8efc),_0x41319f){const _0x24e0c1=this['_getChangeFromId'](_0x41319f);if(!_0x24e0c1)return null;_0x4a414f['setAttribute']('data-change-id',_0x41319f,_0x4a8efc),_0x4a414f['addClass']('ck-revision-history-root-'+_0x24e0c1['type'],_0x4a8efc),this['activeChange']==_0x24e0c1&&_0x4a414f['addClass']('ck-revision-history-root--active',_0x4a8efc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x50d755=>'revision-comment:'+_0x50d755,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x21259a=>'revision-suggestion:'+_0x21259a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x252c0f=>({'name':'suggestion:'+_0x252c0f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4632ac=>{const _0x38c9e5=_0x4632ac['markerName']['split'](':')[0x1];return'insertion'!=_0x38c9e5&&'deletion'!=_0x38c9e5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x38c9e5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2aea3e,_0x386665,_0x39f59a)=>{const _0x3eef49=_0x39f59a['mapper']['markerNameToElements'](_0x386665['markerName']);if(_0x3eef49){for(const _0x5aed90 of _0x3eef49)_0x5aed90['is']('uiElement')&&(_0x39f59a['mapper']['unbindElementFromMarkerName'](_0x5aed90,_0x386665['markerName']),_0x39f59a['writer']['remove'](_0x5aed90));}},{'priority':'high'});}['_getChangeFromId'](_0x30829e){return this['_changeIdToChange']['get'](_0x30829e);}['_getViewForChange'](_0x5a056b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5a056b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x56cd1d,_0x3416ec,_0xaa0e06,_0x4d6863)=>{_0x4d6863&&this['_balloon']['remove'](_0x4d6863),_0xaa0e06&&(this['_balloon']['add']({'view':_0xaa0e06,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x220abc=this['editor']['editing'],_0x2dc3a1=this['_getChangeFromId'](_0xaa0e06['changeId']);let _0x31dbf6;if(_0x2dc3a1['data']['isOnRoot']){const _0x538270=_0x220abc['view']['getDomRoot'](_0x2dc3a1['rootName']);_0x31dbf6=Array['from'](_0x538270['getClientRects']());}else{const _0x3145a6=this['editor']['model']['markers']['get']('revision:'+_0xaa0e06['changeId']);_0x31dbf6=Array['from'](_0x220abc['mapper']['markerNameToElements'](_0x3145a6['name']))['map'](_0x575260=>_0x220abc['view']['domConverter']['mapViewToDom'](_0x575260))['map'](_0x22652d=>Array['from'](_0x22652d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31dbf6[0x0];return _0x31dbf6['find'](_0x355b32=>_0x355b32['top']-0x3<=this['_activeViewTarget']['y']&&_0x355b32['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x355b32['left']-0x3<=this['_activeViewTarget']['x']&&_0x355b32['right']+0x3>=this['_activeViewTarget']['x'])||_0x31dbf6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2a4ea3,_0x28c035,_0x3e929f,_0x50824e)=>{this['activeView']=_0x3e929f?this['_getViewForChange'](_0x3e929f):null,this['editor']['model']['change'](()=>{const _0x19e5f5=this['editor']['editing'];_0x50824e&&(_0x50824e['data']['isOnRoot']?_0x19e5f5['view']['change'](_0x23f401=>{_0x23f401['removeClass']('ck-revision-history-root--active',_0x19e5f5['view']['document']['getRoot'](_0x50824e['rootName']));}):_0x19e5f5['reconvertMarker']('revision:'+_0x50824e['id'])),_0x3e929f&&(_0x3e929f['data']['isOnRoot']?_0x19e5f5['view']['change'](_0x30c772=>{_0x30c772['addClass']('ck-revision-history-root--active',_0x19e5f5['view']['document']['getRoot'](_0x3e929f['rootName']));}):_0x19e5f5['reconvertMarker']('revision:'+_0x3e929f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x192c88,_0x4e4258)=>{if(this['activeChange'])return;const _0x514646=this['_findChangeIdFromDomTarget'](_0x4e4258['target']),_0xf0ed83=this['_changeIdToChange']['get'](_0x514646);_0xf0ed83?(this['_activeViewTarget']={'x':_0x4e4258['domEvent']['x'],'y':_0x4e4258['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf0ed83)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x188c40,_0x53d14d)=>{const _0x544b46=this['_findChangeIdFromDomTarget'](_0x53d14d['target']),_0x39d5ea=this['_changeIdToChange']['get'](_0x544b46);_0x39d5ea?(this['_activeViewTarget']={'x':_0x53d14d['domEvent']['x'],'y':_0x53d14d['domEvent']['y']},_0x39d5ea===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x39d5ea):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x34716d){do{const _0x25bf55=_0x34716d['getAttribute']('data-change-id');if(_0x25bf55)return _0x25bf55;_0x34716d=_0x34716d['parent'];}while(_0x34716d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x36c5de=>{for(const _0x2209e3 of this['editor']['model']['markers'])_0x36c5de['removeMarker'](_0x2209e3);});}}function Q(_0x21b483,_0x3c1d64){return(_0x87992e,_0x471523,_0x297cbb)=>{if(!_0x297cbb['consumable']['test'](_0x471523['markerRange'],_0x87992e['name']))return;const _0x2c0fc2=_0x471523['markerRange']['getWalker'](),_0x17cbd4=_0x471523['markerRange']['start'],_0x416cab=_0x21b483['model']['schema'];let _0x49dc1b=null,_0x4af057=null,_0x4d5e1b=!0x1,_0x4fdb53=!0x1;for(const _0x29323c of _0x2c0fc2){const _0x330bae=_0x29323c['item'];_0x4d5e1b=_0x4d5e1b||_0x416cab['isContent'](_0x330bae);const _0x5b9863=_0x297cbb['mapper']['toViewElement'](_0x330bae);if(_0x5b9863&&_0x5b9863['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29323c['type']&&(_0x416cab['isBlock'](_0x330bae)&&!_0x416cab['isLimit'](_0x330bae)&&(_0x330bae['nextSibling']||_0x17cbd4['isAtEnd']?_0x49dc1b&&_0x49dc1b['parent']==_0x330bae||(_0x49dc1b=_0x330bae,_0x470142(_0x29323c['previousPosition']),_0x4fdb53=!0x0):_0x4af057=_0x4af057||_0x29323c['previousPosition']));}function _0x470142(_0x5efc2f){const _0x2e5857=_0x297cbb['mapper']['toViewPosition'](_0x5efc2f),_0xbf189e=_0x297cbb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3c1d64});_0x297cbb['writer']['insert'](_0x2e5857,_0xbf189e),_0x297cbb['mapper']['bindElementToMarker'](_0xbf189e,_0x471523['markerName']);}_0x4d5e1b||_0x4fdb53||!_0x4af057||_0x470142(_0x4af057);};}class nt extends _0x3005ae{constructor(_0x47b6f0){super(_0x47b6f0);const _0x21395a=_0x47b6f0['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x21395a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21395a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41ccbf=this['editor'],_0x30e7ea=_0x41ccbf['plugins']['get'](l),_0x4c37c3=_0x30e7ea['isReady']?_0x30e7ea['diff']['newRevisionId']:null;_0x41ccbf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4c37c3);}['refresh'](){const {isReady:_0x28ae53,isEnabled:_0x27bab4,repository:_0x5b67b0,diff:_0x31d685}=this['editor']['plugins']['get'](l),_0x47ef3b=_0x31d685&&_0x5b67b0['getLaterVisibleRevision'](_0x31d685['newRevisionId']);this['isEnabled']=_0x28ae53&&_0x27bab4&&Boolean(_0x47ef3b);}}class ot extends _0x3005ae{['_step'];constructor(_0x2ef336,{direction:_0x47f27c}){super(_0x2ef336);const _0x921ff9=_0x2ef336['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x47f27c?0x1:-0x1,this['listenTo'](_0x921ff9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x921ff9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x921ff9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x435167=this['editor'],_0x18c180=_0x435167['plugins']['get'](l),{isNavigationMode:_0x4a0a57,currentChangeNumber:_0x38fc74}=_0x18c180;let _0x43533c;if(_0x18c180['activeChange']=_0x4a0a57?_0x18c180['diff']['changes']['get'](_0x38fc74+this['_step']):_0x18c180['diff']['changes']['first'],_0x18c180['activeChange']['data']['isOnRoot'])_0x43533c=_0x435167['editing']['view']['getDomRoot'](_0x18c180['activeChange']['rootName']);else{const _0x415f7a=_0x435167['model']['markers']['get']('revision:'+_0x18c180['activeChange']['id']);_0x43533c=_0x444498(_0x435167['editing'],_0x415f7a);}_0x5ede0c({'target':_0x43533c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cbe3d,currentChangeNumber:_0x183062,numberOfChanges:_0x39c895,isReady:_0x157e87,isEnabled:_0x23eac3}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x23eac3&&_0x157e87&&_0x39c895)&&(!_0x2cbe3d||(0x1===this['_step']?_0x183062<_0x39c895-0x1:_0x183062>0x0));}}class xi extends _0x3ecb12{constructor(_0x3caf91){super(_0x3caf91);const _0xf32b3d=this['bindTemplate'],_0x3fa51c=new _0x5c81a4(_0x3caf91),_0x7251ad=new _0x5c81a4(_0x3caf91);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x435db8,_0x4bd796)=>_0x435db8&&_0x4bd796>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x517297,_0x11ea79,_0x2cf47f,_0x497c5e)=>{if(!_0x517297)return R(_0x3caf91,'Loading...');if(!_0x2cf47f)return R(_0x3caf91,'No\x20changes');const _0xe29316=R(_0x3caf91,'NUMBER_OF_CHANGES',_0x2cf47f);return _0x497c5e?R(_0x3caf91,'X_OF_Y_CHANGES',[_0x11ea79+0x1,_0x2cf47f]):_0xe29316;}),_0x3fa51c['set']({'label':R(_0x3caf91,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2929a1}),_0x7251ad['set']({'label':R(_0x3caf91,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x69ef5d}),_0x3fa51c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x7251ad['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3fa51c['on']('execute',()=>this['fire']('execute','backward')),_0x7251ad['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0xf32b3d['if']('_isStatusLabelVisible','ck-hidden',_0x341a37=>!_0x341a37)]},'children':[{'text':_0xf32b3d['to']('isNavigationMode',_0x3d5ca7=>_0x3d5ca7?R(_0x3caf91,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3caf91,'Total')+':\x20')}]},{'text':_0xf32b3d['to']('_statusText')}]},new _0x19f4e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3fa51c,_0x7251ad]}]});}}const ge='ck-editor__editable__loading-overlay';class Ri extends _0x4b6c22{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x25993b=this['editor']['editing']['view'];_0x25993b['change'](_0x4da46c=>{for(const _0x2dad6d of _0x25993b['document']['roots'])_0x4da46c['addClass'](ge,_0x2dad6d);});}['hide'](){const _0x41b5c2=this['editor']['editing']['view'];_0x41b5c2['change'](_0x489668=>{for(const _0x3b47f8 of _0x41b5c2['document']['roots'])_0x489668['removeClass'](ge,_0x3b47f8);});}}class u extends _0x4b6c22{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,Ri];}['init'](){const _0x5a1e57=this['editor'],_0x204a9e=_0x5a1e57['plugins']['get'](l),_0x2fbd74=_0x5a1e57['plugins']['get'](Ri);_0x5a1e57['ui']['componentFactory']['add']('exitToEditing',_0x399f81=>{const _0xc57f8=new _0x5c81a4(_0x399f81);return _0xc57f8['set']({'label':R(_0x399f81,'Back\x20to\x20editing'),'icon':_0x52a6c2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xc57f8,'execute',()=>{_0x5a1e57['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xc57f8;}),_0x5a1e57['ui']['componentFactory']['add']('restoreRevision',_0x2926d8=>{const _0x30892a=new _0x5c81a4(_0x2926d8);return _0x30892a['set']({'label':R(_0x2926d8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x30892a['bind']('isEnabled')['to'](_0x5a1e57['commands']['get']('restoreRevision')),this['listenTo'](_0x30892a,'execute',()=>_0x5a1e57['execute']('restoreRevision')),_0x30892a;}),_0x5a1e57['ui']['componentFactory']['add']('changesNavigation',_0x35e604=>{const _0x45a7c4=new xi(_0x35e604),_0x2dcbf3=_0x5a1e57['commands']['get']('showPreviousChange'),_0x51b2cb=_0x5a1e57['commands']['get']('showNextChange');return _0x45a7c4['bind']('isBackwardNavigationEnabled')['to'](_0x2dcbf3,'isEnabled'),_0x45a7c4['bind']('isForwardNavigationEnabled')['to'](_0x51b2cb,'isEnabled'),_0x45a7c4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x204a9e),this['listenTo'](_0x45a7c4,'execute',(_0x3bd5f5,_0x10713f)=>{_0x5a1e57['execute']('forward'===_0x10713f?'showNextChange':'showPreviousChange');}),_0x45a7c4;}),_0x2fbd74['show'](),_0x204a9e['on']('change:isReady',(_0x114a15,_0x412822,_0x1813fa)=>{_0x1813fa?_0x2fbd74['hide']():_0x2fbd74['show']();});}}class _i extends ti{['_resizeObserver']=null;constructor(_0x1a1c7f,_0xf04268){super(_0x1a1c7f,_0xf04268);const _0x3fb147=this['bindTemplate'];this['set']({'label':R(_0x1a1c7f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1a1c7f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3fb147['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x353a4c=this['fieldView']['element'];this['_tooltipString']=_0x353a4c['scrollWidth']>_0x353a4c['clientWidth']&&_0x353a4c['value']||'';}}class bi extends _0x3ecb12{constructor(_0x5b94dd,_0x4223b5,_0x3f3bfc){super(_0x5b94dd);const _0x269efb=new _0x32fa98();_0x269efb['set']({'content':_0x277b2d,'viewBox':'0\x200\x2011\x2010'});const _0x13dd66=['ck','ck-revision-history-sidebar__revision-author'];_0x3f3bfc&&_0x13dd66['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1c081a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5b94dd,_0x3f3bfc?'Revision\x20creator':'Revision\x20author')},'children':[_0x269efb,_0x4223b5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x13dd66},'children':_0x1c081a});}}function ki(_0x2b4ab4,_0x1350a5){const _0x23ce34=_0x2b4ab4['bindTemplate'],_0x289422=_0x2b4ab4['locale'],_0x59bd8d=_0x195a39(_0x289422);_0x59bd8d['panelPosition']='sw';const _0x48fa0e=function(_0x314e15,_0x5dcb01){const _0x5ee1a9=function(_0x2ce95f,_0x974130){const _0x15fc29=_0x2ce95f['locale'],_0x334f94={'Compare\x20against\x20selected':R(_0x15fc29,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x15fc29,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x15fc29,'Restore\x20this\x20revision')};return _0x974130['map'](_0x46f2b1=>{const _0x42fd5f=_0x334f94[_0x46f2b1['name']];return _0x42fd5f&&_0x42fd5f!==_0x46f2b1['name']&&(_0x46f2b1['name']=_0x42fd5f),_0x46f2b1;});}(_0x314e15,_0x5dcb01),_0x4933e4=new _0x5d0537();for(const _0x2fb655 of _0x5ee1a9){const _0x418a90={'type':'button','model':new to({'label':_0x2fb655['name'],'class':_0x2fb655['class'],'withText':!0x0,'role':'menuitem','_action':_0x2fb655['action']})};_0x418a90['model']['bind']('isEnabled')['to'](_0x314e15,'isActionsDropdownOpen',_0x24ad1c=>'function'!=typeof _0x2fb655['isEnabled']||(!_0x24ad1c||_0x2fb655['isEnabled'](_0x314e15))),_0x4933e4['add'](_0x418a90);}return _0x4933e4;}(_0x2b4ab4,_0x1350a5);return _0x2b4ab4['bind']('isActionsDropdownOpen')['to'](_0x59bd8d,'isOpen'),_0x59bd8d['buttonView']['set']({'label':R(_0x289422,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c4fb7}),_0x59bd8d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23ce34['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23ce34['to'](_0x40a7b6=>_0x40a7b6['stopPropagation']())}}),_0x59bd8d['on']('execute',_0x1a1f5c=>{_0x2b4ab4['isReady']&&'function'==typeof _0x1a1f5c['source']['_action']&&_0x1a1f5c['source']['_action'](_0x2b4ab4);}),_0x1a4bab(_0x59bd8d,_0x48fa0e,{'role':'menu'}),_0x59bd8d['listenTo'](_0x2b4ab4,'change:isActionsDropdownOpen',(_0x2f400b,_0x43a142,_0x362214)=>{if(_0x362214)for(const _0x23ace7 of _0x59bd8d['listView']['items']){const _0x2dd330=_0x23ace7['children']['first'],_0x377958=_0x1350a5['find'](_0x76620a=>_0x76620a['action']===_0x2dd330['_action'])['isVisible'];_0x23ace7['isVisible']=void 0x0===_0x377958||_0x377958(_0x2b4ab4);}}),_0x59bd8d;}class ci extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xf82478(_0x3ecb12){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2dc219,_0xc3fb70,_0x1c8ead,_0x213b9c){super(_0x2dc219);const _0x4c3491=this['bindTemplate'],_0x3a43e8=function(_0x55defb,_0x5bf217){const _0x2fe854=Array['from'](_0x5bf217['authors'])['filter'](_0x3b7e2b=>_0x3b7e2b!=_0x5bf217['creator']);return _0x5bf217['creator']&&_0x2fe854['unshift'](_0x5bf217['creator']),_0x2fe854['map'](_0x529f9a=>new bi(_0x55defb,_0x529f9a,_0x529f9a==_0x5bf217['creator']));}(_0x2dc219,_0xc3fb70);this['id']=_0xc3fb70['id'],this['_revision']=_0xc3fb70,this['_requireRevisionName']=_0x213b9c,this['bind']('name','createdAt')['to'](_0xc3fb70),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x363fd9=>{return _0x4f5213=_0x2dc219['uiLanguage'],(_0x5544f4=_0x363fd9)['toLocaleDateString'](_0x4f5213,{'month':'long','day':'numeric'})+',\x20'+_0x5544f4['toLocaleTimeString'](_0x4f5213,{'hour':'numeric','minute':'numeric'});var _0x4f5213,_0x5544f4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new _i(_0x2dc219,_0x5b55e3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33716f=>_0x33716f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3e2f8c,_0x4c6e4a)=>_0x3e2f8c&&_0x4c6e4a),this['revisionActionsView']=_0x1c8ead&&_0x1c8ead['length']?ki(this,_0x1c8ead):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4c3491['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4c3491['if']('isEnabled','ck-disabled',_0x50211c=>!_0x50211c),_0x4c3491['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4c3491['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4c3491['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4c3491['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3a43e8}]},this['revisionActionsView']],'on':{'click':_0x4c3491['to'](_0x4885ca=>{_0x4885ca['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x20aef4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x20aef4,'change',()=>{this['_requireRevisionName']&&!_0x20aef4['value']||this['fire']('setName',{'id':this['id'],'name':_0x20aef4['value']}),_0x20aef4['value']||(_0x20aef4['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x43e672,_0x4defce){const _0x510e3f=_0x3505de['fromJSDate'](_0x43e672)['setLocale'](_0x4defce),_0x2b067b=_0x3505de['local'](),_0x3281e3=_0x2b067b['minus']({'days':0x1})['startOf']('day');let _0x42dfce,_0x191238;return _0x510e3f['hasSame'](_0x2b067b,'day')?(_0x42dfce=_0x510e3f['startOf']('day')['toJSDate'](),_0x191238=_0x510e3f['toRelativeCalendar']()):_0x510e3f['hasSame'](_0x3281e3,'day')?(_0x42dfce=_0x3281e3['toJSDate'](),_0x191238=_0x510e3f['toRelativeCalendar']()):_0x510e3f['hasSame'](_0x2b067b,'week')?(_0x42dfce=_0x510e3f['startOf']('week')['toJSDate'](),_0x191238=_0x510e3f['weekdayLong']||''):_0x510e3f['hasSame'](_0x2b067b,'year')?(_0x42dfce=_0x510e3f['startOf']('month')['toJSDate'](),_0x191238=_0x510e3f['monthLong']||''):(_0x42dfce=_0x510e3f['startOf']('year')['toJSDate'](),_0x191238=String(_0x510e3f['year'])),{'startDate':_0x42dfce,'localizedPeriodName':_0x191238};}class vi extends _0x3ecb12{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d971f,_0x266b31,_0x480acf,_0x30e28e){super(_0x2d971f);const _0x5cf6fc=di(_0x266b31,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x266b31,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x480acf,this['_requireRevisionName']=_0x30e28e,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5cf6fc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xadfbd5){const _0x57d7e6=new ci(this['locale'],_0xadfbd5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x57d7e6);}['removeRevision'](_0x279087){const _0x3bd855=this['revisionViews']['find'](_0x1a8239=>_0x1a8239['id']===_0x279087['id']);this['revisionViews']['remove'](_0x3bd855);}}class mi extends _0x3ecb12{constructor(_0x55cb62){super(_0x55cb62);const _0x4eb7f6=new _0x32fa98();_0x4eb7f6['content']=_0x255ec9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4eb7f6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x55cb62,'Revision\x20history')]}]});}}class ai extends _0x3ecb12{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f2e0b,_0x5051a7,_0x397860,_0x2d222c){super(_0x2f2e0b);const _0x3439a9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5051a7,this['_revisionActions']=_0x397860,this['_requireRevisionName']=_0x2d222c,this['on']('select',(_0x29828a,_0x2bf986)=>{this['fire']('revisionSelected',_0x2bf986);}),this['on']('setName',(_0x17f619,_0x1a175e)=>{this['fire']('revisionSetName',_0x1a175e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new mi(_0x2f2e0b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3439a9['if']('isEnabled','ck-disabled',_0x46cffa=>!_0x46cffa)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x440661 of this['_revisions'])this['_addRevision'](_0x440661);this['_revisions']['on']('add',(_0x1c120e,_0x3986e2)=>{this['_addRevision'](_0x3986e2);}),this['_revisions']['on']('remove',(_0x39efa6,_0x453203)=>{this['_removeRevision'](_0x453203);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x507a96=>_0x507a96['revisionViews']['map'](_0x478498=>_0x478498))['flat']();}['selectRevision'](_0x5d6774){for(const _0x43928d of this['revisionViews'])_0x5d6774&&_0x5d6774['id']===_0x43928d['id']?_0x43928d['select']():_0x43928d['deselect']();}['highlightRevisions'](_0x5dc212){for(const _0x1339cb of this['revisionViews'])_0x5dc212['some'](({id:_0xaec3d4})=>_0xaec3d4===_0x1339cb['id'])?_0x1339cb['highlight']():_0x1339cb['unhighlight']();}['_addRevision'](_0x579406){const _0x462ef0=di(_0x579406['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x29c045=this['timePeriodViews']['get'](0x0);_0x29c045&&_0x29c045['startDate']['getTime']()===_0x462ef0['getTime']()||(_0x29c045=new vi(this['locale'],_0x462ef0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x29c045)),_0x29c045['addRevision'](_0x579406);}['_removeRevision'](_0x1aca1d){const _0x71009a=di(_0x1aca1d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x71009a)['removeRevision'](_0x1aca1d);}['_getTimePeriodViewByStartDate'](_0x2d3442){return this['timePeriodViews']['find'](_0xc327da=>_0xc327da['startDate']['getTime']()===_0x2d3442['getTime']());}}class f extends _0x4b6c22{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x5a997d(_0x339c46){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x26655a,_0x2f525f){super(_0x2f525f),this['sourceElement']=_0x26655a,this['model']['document']['createRoot']();const _0x1abbb0=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1abbb0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2bee8b,_0x4df2a3){const _0x450470=new this(_0x2bee8b,_0x4df2a3);return await _0x450470['initPlugins'](),await _0x450470['ui']['init'](_0x2bee8b),await _0x450470['data']['init'](_0x450470['config']['get']('initialData')||''),_0x450470['fire']('ready'),_0x450470;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x47aa5e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15750e){function _0x832ca8(_0x57888a){return _0x57888a['map'](_0x4820a0=>String['fromCharCode'](_0x4820a0))['join']('');}super(_0x15750e),this['result']='end',_0x15750e[_0x832ca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x832ca8([0x76,0x69,0x65,0x77])][_0x832ca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x832ca8([0x61,0x75,0x74,0x6f]),_0x15750e[_0x832ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x832ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x832ca8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x832ca8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x832ca8([0x6f,0x6b])});}}class ct extends _0x47aa5e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x4afa0e){if(super(_0x4afa0e),!this['editor']['config']['get']('revisionHistory'))throw new _0xd78202('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2e273e=>this['_showRevisionViewer']({..._0x2e273e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2b137e=>this['_closeRevisionViewer'](_0x2b137e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x25a6de=>this['_restoreRevision'](_0x25a6de)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x148d88){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x148d88;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x7d9746){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x7d9746);}['getRevision'](_0x29c3a0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x29c3a0);}['getRevisions'](_0x3258b4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3258b4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x7e181f=this['editor'],_0x29c2cd=_0x364126(_0x7e181f,d),_0x3a51e0=_0x7e181f['plugins']['get']('RevisionTracker'),_0x17fd2b=_0x7e181f['plugins']['get']('Users')['users'];return _0x29c2cd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x29c2cd['lazyRoots'],(_0x29c2cd['plugins']['push'](ht,l,u,class extends _0x47aa5e{static get['requires'](){return[l,'Users'];}['init'](){const _0x3b52ad=this['editor']['plugins']['get']('Users');for(const _0x44ce07 of _0x17fd2b)_0x44ce07['isAnonymous']||_0x3b52ad['getUser'](_0x44ce07['id'])||_0x3b52ad['addUser'](_0x44ce07);const _0x1f5aa0=_0x3a51e0['repository']['getRevisions']();let _0x4a4a02=null;const _0x3e67fb=this['editor']['plugins']['get']('RevisionViewer');_0x3e67fb['adapter']=_0x3a51e0['adapter'],_0x3e67fb['bind']('isEnabled')['to'](_0x3a51e0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x7e181f,'isReadOnly',_0x41e9a4=>!_0x41e9a4);for(const _0x1eaadb of _0x1f5aa0){const _0x1874ae=null===_0x1eaadb['creator'];if(_0x1874ae&&_0x1eaadb['toVersion']===_0x1eaadb['fromVersion'])continue;const _0x4bab20=_0x1eaadb['toJSON']();_0x3e67fb['addRevisionData'](_0x4bab20,(_0x12d4c0,_0x51e6e7,_0x15ea1e)=>{if(_0x1874ae){if(_0x4a4a02)_0x4a4a02['_update'](_0x12d4c0,_0x51e6e7);else{if(!_0x51e6e7){const _0x435023=_0x15ea1e['toJSON']();_0x435023['id']=_0x4c4d5d(),_0x3a51e0['saveRevision'](_0x435023,_0x15ea1e['toVersion'])['then'](_0x39d24e=>{_0x4a4a02=_0x39d24e;});}}}else _0x1eaadb['_update'](_0x12d4c0,_0x51e6e7);});}}},f),_0x29c2cd);}['_enhanceShowRevisionViewerCallback'](){const _0x3c83ed=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17b176=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a9278=this['editor']['plugins']['get']('Autosave');await _0x4a9278['save']();}else await _0x17b176['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2ca001=this['editor']['plugins']['get']('Dialog');_0x2ca001['isOpen']&&_0x2ca001['hide']();}const _0x450311=this['_getRevisionViewerEditorConfig']();return _0x3c83ed(_0x450311)['then'](_0x32785c=>{return(this['_viewerEditor']=_0x32785c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x32785c);})['catch'](_0xc2b5ae=>(console['error'](_0xc2b5ae),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x498993=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x498993(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3c7ea4=this['editor']['plugins']['get']('Annotations');_0x3c7ea4['refreshVisibility'](),_0x3c7ea4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4ec2dd){const _0x212a19=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x185d62=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc89509=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0xc89509,_0x4ec2dd)['then'](_0x4f6f7c=>(_0x185d62['style']['display']='block',_0x212a19['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4f6f7c));}['_closeRevisionViewer'](_0x1f333){const _0x453204=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x453204['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1f333['destroy']();}async['_restoreRevision'](_0x168b2c){const _0x12a6ea=this['editor'],_0xf172ec=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x11242c=_0x12a6ea['plugins']['get']('RevisionTracker'),_0x421281=_0x12a6ea['plugins']['get']('RevisionHistoryUtils'),_0x3c7185=_0xf172ec['repository']['getRevision'](_0x168b2c);let _0x4440ea,_0x351e1b,_0x336732;try{await _0x421281['loadRevisionData'](_0x3c7185,this['adapter']),_0x4440ea=_0x421281['getRevisionDocumentData'](_0x3c7185),_0x351e1b=_0x421281['getRevisionRootsAttributes'](_0x3c7185);}catch(_0x2cc098){return void console['error'](_0x2cc098);}_0x12a6ea['model']['change'](_0x12f0e5=>{for(const _0x272e99 of Array['from'](_0x12a6ea['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x12f0e5['removeMarker'](_0x272e99);}),_0xf172ec['isReady']=!0x1,_0x12a6ea['model']['enqueueChange'](_0x1ef116=>{_0x1ef116['setSelection'](null),_0x1ef116['removeSelectionAttribute'](_0x12a6ea['model']['document']['selection']['getAttributeKeys']());const _0x11d1c6=Object['keys'](_0x4440ea);for(const _0x176c4b of _0x12a6ea['model']['document']['roots'])'$graveyard'!=_0x176c4b['rootName']&&_0x176c4b['isAttached']()&&!_0x11d1c6['includes'](_0x176c4b['rootName'])&&_0x1ef116['detachRoot'](_0x176c4b);for(const _0x51aa31 of _0x11d1c6){let _0x3c8b1c=_0x12a6ea['model']['document']['getRoot'](_0x51aa31);_0x3c8b1c&&_0x3c8b1c['isAttached']()||(_0x3c8b1c=_0x1ef116['addRoot'](_0x51aa31));const _0x25d821=_0x351e1b[_0x51aa31],_0x49094b=Object['keys'](_0x25d821),_0x72cf57=_0x4440ea[_0x51aa31];for(const _0x323e69 of _0x3c8b1c['getAttributeKeys']())_0x49094b['includes'](_0x323e69)||_0x1ef116['removeAttribute'](_0x323e69,_0x3c8b1c);for(const _0x2f7ff6 of _0x49094b)_0x1ef116['setAttribute'](_0x2f7ff6,_0x351e1b[_0x51aa31][_0x2f7ff6],_0x3c8b1c);_0x1ef116['remove'](_0x1ef116['createRangeIn'](_0x3c8b1c)),_0x1ef116['insert'](_0x12a6ea['data']['parse'](_0x72cf57,_0x3c8b1c),_0x3c8b1c,0x0);}});const _0x2b0fed=R(_0x12a6ea['locale'],'Restored');if(_0x3c7185['name'])_0x336732=-0x1==_0x3c7185['name']['indexOf'](_0x2b0fed)?_0x2b0fed+':\x20'+_0x3c7185['name']:_0x3c7185['name'];else _0x336732=_0x2b0fed+':\x20'+(_0x3c7185['createdAt']['toLocaleDateString'](_0x12a6ea['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c7185['createdAt']['toLocaleTimeString'](_0x12a6ea['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x11242c['saveRevision']({'name':_0x336732}),_0xf172ec['isReady']=!0x0,_0x12a6ea['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x4d87c8){super(_0x4d87c8),this['_revisionViewer']=_0x4d87c8['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5b9e1c=this['_revisionsRepository']['_revisions'],_0x2c6a59=this['_createRevisionActions'](),_0x549291=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ai(this['editor']['locale'],_0x5b9e1c,_0x2c6a59,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x575c4d,_0xb4a55c)=>{_0xb4a55c['revisionViews']['on']('add',(_0x2166fd,_0x2ccf9f)=>{_0x2ccf9f['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x549291['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4e969b=this['_revisionsRepository']['getRevision'](0x0);if(_0x4e969b){const _0x45acb4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e969b['id']);this['_revisionViewer']['compare'](_0x4e969b,_0x45acb4);}}['_handleRevisionSelected'](_0x252e15,_0x472737){const _0x304c77=this['_revisionsRepository']['getRevision'](_0x472737['id']),_0xfb155e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x304c77['id']);this['_revisionViewer']['compare'](_0x304c77,_0xfb155e);}['_handleRevisionSetName'](_0x35ec40,_0x4a00e9){this['_revisionsRepository']['getRevision'](_0x4a00e9['id'])['setName'](_0x4a00e9['name']);}['_handleDiffChange'](_0x54ce71,_0x4b6a8c,_0x48d1b9){const _0x3178e5=this['_revisionsRepository']['getRevisionsInDiff'](_0x48d1b9);_0x3178e5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3178e5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3178e5[0x0]));}['_createRevisionActions'](){const _0x54d35a=this['editor'],_0x2ef5c3=f['availableRevisionActions'],_0x3140e1=_0x54d35a['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3140e1['length'])return _0x3140e1['map'](_0x10b8fe=>{const _0x36780b='string'==typeof _0x10b8fe?Object['assign']({},_0x2ef5c3[_0x10b8fe]):_0x10b8fe;return _0x36780b['action']=_0x36780b['action']['bind'](this,_0x54d35a),_0x36780b['isVisible']&&(_0x36780b['isVisible']=_0x36780b['isVisible']['bind'](this,_0x54d35a)),_0x36780b;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x33bcf7},_0x1ae049)=>{const _0x4d0ce1=_0x33bcf7['get'](l),_0x200f68=_0x4d0ce1['repository'];let _0x3f845a=_0x4d0ce1['diff']['newRevisionId'],_0x1727ba=_0x1ae049['id'];_0x200f68['getIndex'](_0x3f845a)>_0x200f68['getIndex'](_0x1727ba)&&([_0x3f845a,_0x1727ba]=[_0x1727ba,_0x3f845a]),_0x4d0ce1['compare'](_0x3f845a,_0x1727ba);},'isVisible':({plugins:_0x54af1a},_0x553e2b)=>{const _0xf329b2=_0x54af1a['get'](l);return!(_0xf329b2['repository']['getRevisionsInDiff'](_0xf329b2['diff'])['length']>0x2)&&!_0x553e2b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12fcde,{id:_0x29a1b3})=>{_0x12fcde['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29a1b3);},'isVisible':({plugins:_0x35b905},_0x11048d)=>!!_0x35b905['get'](l)['repository']['getLaterVisibleRevision'](_0x11048d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x279f8b},{id:_0x531ac0,revisionNameView:_0x44e588})=>{const _0xa0a30f=_0x279f8b['get'](l),_0x38fb60=_0xa0a30f['repository']['getEarlierVisibleRevision'](_0x531ac0);_0xa0a30f['compare'](_0x531ac0,_0x38fb60),_0x44e588['focus'](),_0x44e588['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3f2e67,_0x1ff6ee){super(_0x3f2e67),this['_view']=_0x1ff6ee,this['_toolbarConfig']=st(_0x3f2e67['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x497be6){const _0x13ed4a=this['editor'],_0x3bd535=this['view'],_0x33e196=_0x13ed4a['editing']['view'],_0x4e366d=_0x3bd535['editable'],_0x3b5a59=_0x33e196['document']['getRoot']();_0x4e366d['name']=_0x3b5a59['rootName'],_0x3bd535['render']();const _0x390bc8=_0x4e366d['element'];this['setEditableElement'](_0x4e366d['name'],_0x390bc8),_0x3bd535['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x33e196['attachDomRoot'](_0x390bc8),this['_elementReplacer']['replace'](_0x497be6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e6588=this['view'],_0x132b24=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x132b24['detachDomRoot'](_0x3e6588['editable']['name']),_0x3e6588['destroy']();}['_initToolbar'](){const _0x2d645d=this['view'];_0x2d645d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2d645d['stickyPanel']['limiterElement']=_0x2d645d['element'],_0x2d645d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x27720b})=>_0x27720b),_0x2d645d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2d645d['toolbar']);}}class ii extends _0x3498aa{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5993f4,_0x448711,_0x52ecbe={}){super(_0x5993f4),this['stickyPanel']=new _0x885ae8(_0x5993f4),this['toolbar']=new _0x529c76(_0x5993f4,{'shouldGroupWhenFull':_0x52ecbe['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5993f4,_0x448711);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x54c108(_0x34b6db){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x28c9be,_0x9e836c){super(_0x9e836c),this['sourceElement']=_0x28c9be,this['model']['document']['createRoot']();const _0x2183e8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2183e8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x56984e,_0x4f4426){const _0x22ba47=new this(_0x56984e,_0x4f4426);return await _0x22ba47['initPlugins'](),await _0x22ba47['ui']['init'](_0x56984e),await _0x22ba47['data']['init'](_0x22ba47['config']['get']('initialData')||''),_0x22ba47['fire']('ready'),_0x22ba47;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x4b6c22{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xecbd12){function _0x58c945(_0xefebbe){return _0xefebbe['map'](_0x49d9aa=>String['fromCharCode'](_0x49d9aa))['join']('');}super(_0xecbd12),this['result']='end',_0xecbd12[_0x58c945([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58c945([0x76,0x69,0x65,0x77])][_0x58c945([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58c945([0x61,0x75,0x74,0x6f]),_0xecbd12[_0x58c945([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58c945([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58c945([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58c945([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58c945([0x6f,0x6b])});}}class ht extends _0x4b6c22{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x575e9d){if(super(_0x575e9d),!this['editor']['config']['get']('revisionHistory'))throw new _0x13b40b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xbabf7c=>this['_showRevisionViewer']({..._0xbabf7c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3dd464=>this['_closeRevisionViewer'](_0x3dd464)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xcf2326=>this['_restoreRevision'](_0xcf2326)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1bbd4d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1bbd4d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x67a960){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x67a960);}['getRevision'](_0x361f4a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x361f4a);}['getRevisions'](_0x550209){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x550209||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3992a4=this['editor'],_0x14984e=_0x539216(_0x3992a4,d),_0x5a0e5e=_0x3992a4['plugins']['get']('RevisionTracker'),_0x59141b=_0x3992a4['plugins']['get']('Users')['users'];return _0x14984e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x14984e['lazyRoots'],(_0x14984e['plugins']['push'](at,l,u,class extends _0x4b6c22{static get['requires'](){return[l,'Users'];}['init'](){const _0x173086=this['editor']['plugins']['get']('Users');for(const _0x49a3b7 of _0x59141b)_0x49a3b7['isAnonymous']||_0x173086['getUser'](_0x49a3b7['id'])||_0x173086['addUser'](_0x49a3b7);const _0x5e7a60=_0x5a0e5e['repository']['getRevisions']();let _0x4614d6=null;const _0x7ec89e=this['editor']['plugins']['get']('RevisionViewer');_0x7ec89e['adapter']=_0x5a0e5e['adapter'],_0x7ec89e['bind']('isEnabled')['to'](_0x5a0e5e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3992a4,'isReadOnly',_0x10f58e=>!_0x10f58e);for(const _0x46114b of _0x5e7a60){const _0x343ee0=null===_0x46114b['creator'];if(_0x343ee0&&_0x46114b['toVersion']===_0x46114b['fromVersion'])continue;const _0x4c3302=_0x46114b['toJSON']();_0x7ec89e['addRevisionData'](_0x4c3302,(_0x4f5a36,_0x25daf8,_0x3eb91a)=>{if(_0x343ee0){if(_0x4614d6)_0x4614d6['_update'](_0x4f5a36,_0x25daf8);else{if(!_0x25daf8){const _0x319444=_0x3eb91a['toJSON']();_0x319444['id']=_0x2bd58b(),_0x5a0e5e['saveRevision'](_0x319444,_0x3eb91a['toVersion'])['then'](_0xbcee29=>{_0x4614d6=_0xbcee29;});}}}else _0x46114b['_update'](_0x4f5a36,_0x25daf8);});}}},f),_0x14984e);}['_enhanceShowRevisionViewerCallback'](){const _0xdeba9b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2de5d0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38b175=this['editor']['plugins']['get']('Autosave');await _0x38b175['save']();}else await _0x2de5d0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xd70b75=this['editor']['plugins']['get']('Dialog');_0xd70b75['isOpen']&&_0xd70b75['hide']();}const _0x5e8454=this['_getRevisionViewerEditorConfig']();return _0xdeba9b(_0x5e8454)['then'](_0xf85dde=>{return(this['_viewerEditor']=_0xf85dde,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xf85dde);})['catch'](_0x58a4dc=>(console['error'](_0x58a4dc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x239e06=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x239e06(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x158f81=this['editor']['plugins']['get']('Annotations');_0x158f81['refreshVisibility'](),_0x158f81['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5a8e2b){const _0xfaa1f2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x500236=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc6b6c8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0xc6b6c8,_0x5a8e2b)['then'](_0x743dfc=>(_0x500236['style']['display']='block',_0xfaa1f2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x743dfc));}['_closeRevisionViewer'](_0x5f4bdf){const _0x5a1c16=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5a1c16['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5f4bdf['destroy']();}async['_restoreRevision'](_0x17c4b2){const _0x55df62=this['editor'],_0x227ecb=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x83f87e=_0x55df62['plugins']['get']('RevisionTracker'),_0x176563=_0x55df62['plugins']['get']('RevisionHistoryUtils'),_0x1657fc=_0x227ecb['repository']['getRevision'](_0x17c4b2);let _0x2e7c12,_0x1f39a0,_0x9f23b;try{await _0x176563['loadRevisionData'](_0x1657fc,this['adapter']),_0x2e7c12=_0x176563['getRevisionDocumentData'](_0x1657fc),_0x1f39a0=_0x176563['getRevisionRootsAttributes'](_0x1657fc);}catch(_0x5a5acb){return void console['error'](_0x5a5acb);}_0x55df62['model']['change'](_0x33f1ea=>{for(const _0x4fceae of Array['from'](_0x55df62['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33f1ea['removeMarker'](_0x4fceae);}),_0x227ecb['isReady']=!0x1,_0x55df62['model']['enqueueChange'](_0x5e8b9e=>{_0x5e8b9e['setSelection'](null),_0x5e8b9e['removeSelectionAttribute'](_0x55df62['model']['document']['selection']['getAttributeKeys']());const _0x1f44b6=Object['keys'](_0x2e7c12);for(const _0x749d91 of _0x55df62['model']['document']['roots'])'$graveyard'!=_0x749d91['rootName']&&_0x749d91['isAttached']()&&!_0x1f44b6['includes'](_0x749d91['rootName'])&&_0x5e8b9e['detachRoot'](_0x749d91);for(const _0x2c1772 of _0x1f44b6){let _0x42c2b5=_0x55df62['model']['document']['getRoot'](_0x2c1772);_0x42c2b5&&_0x42c2b5['isAttached']()||(_0x42c2b5=_0x5e8b9e['addRoot'](_0x2c1772));const _0x2d5dac=_0x1f39a0[_0x2c1772],_0x550d9c=Object['keys'](_0x2d5dac),_0x258420=_0x2e7c12[_0x2c1772];for(const _0x21601c of _0x42c2b5['getAttributeKeys']())_0x550d9c['includes'](_0x21601c)||_0x5e8b9e['removeAttribute'](_0x21601c,_0x42c2b5);for(const _0x4886f6 of _0x550d9c)_0x5e8b9e['setAttribute'](_0x4886f6,_0x1f39a0[_0x2c1772][_0x4886f6],_0x42c2b5);_0x5e8b9e['remove'](_0x5e8b9e['createRangeIn'](_0x42c2b5)),_0x5e8b9e['insert'](_0x55df62['data']['parse'](_0x258420,_0x42c2b5),_0x42c2b5,0x0);}});const _0x5af4e1=R(_0x55df62['locale'],'Restored');if(_0x1657fc['name'])_0x9f23b=-0x1==_0x1657fc['name']['indexOf'](_0x5af4e1)?_0x5af4e1+':\x20'+_0x1657fc['name']:_0x1657fc['name'];else _0x9f23b=_0x5af4e1+':\x20'+(_0x1657fc['createdAt']['toLocaleDateString'](_0x55df62['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1657fc['createdAt']['toLocaleTimeString'](_0x55df62['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x83f87e['saveRevision']({'name':_0x9f23b}),_0x227ecb['isReady']=!0x0,_0x55df62['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,Ri as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|