@ckeditor/ckeditor5-revision-history 46.0.1 → 46.0.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +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
|
-
_0x31c68b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52f22b){super(),this['id']=_0x52f22b['id']||_0xce68bc(),this['creator']=_0x52f22b['creator']||null,this['authors']=_0x52f22b['authors']||[],this['diffData']=_0x52f22b['diffData']||null,this['toVersion']=_0x52f22b['toVersion']||0x0,this['fromVersion']=_0x52f22b['fromVersion']||0x0,this['set']('name',_0x52f22b['name']||''),this['set']('createdAt',_0x52f22b['createdAt']||new Date()),this['set']('attributes',_0x52f22b['attributes']||{});}['setName'](_0x3fe374){this['_update']({'name':_0x3fe374});}['setAttribute'](_0x208911,_0x2247b5){const _0x25256a=_0x178dd2(this['attributes']);_0x2eac1c(_0x25256a,_0x208911,_0x2247b5),this['_update']({'attributes':_0x25256a});}['removeAttribute'](_0x2d1a27){const _0x2fcbef=_0x178dd2(this['attributes']);_0x8a7ca5(_0x2fcbef,_0x2d1a27),this['_update']({'attributes':_0x2fcbef});}['_update'](_0x3d6249,_0x31afeb=!0x1){let _0x67fb61=!0x1;const _0x29f3d7={'id':this['id']},_0x31a2c9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3e75d6 of _0x31a2c9){const _0x5dcf49=_0x3d6249[_0x3e75d6];void 0x0!==_0x5dcf49&&_0x5dcf49!==this[_0x3e75d6]&&(this[_0x3e75d6]=_0x5dcf49,_0x29f3d7[_0x3e75d6]=_0x5dcf49,_0x67fb61=!0x0);}_0x67fb61&&(_0x29f3d7['authors']&&(_0x29f3d7['authorsIds']=_0x29f3d7['authors']['map'](_0xc69988=>_0xc69988['id']),delete _0x29f3d7['authors']),this['fire']('_update',_0x29f3d7,_0x31afeb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x43e3d9=>_0x43e3d9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2f4856{['_revisions'];static get['requires'](){return[_0x540fc1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x485e8c){super(_0x485e8c),this['_revisions']=new _0x1219cc();}['afterInit'](){!async function(_0x38af3f){const _0x1b9cff=_0x3a9981([0x59,0x31,0x76,0x65,0x47,0x51,0x34,0x4c,0x77,0x37,0x6a,0x32,0x38,0x57,0x6d,0x5a,0x50,0x6f,0x4d,0x48,0x72,0x79,0x63,0x45,0x67,0x39,0x46,0x4b,0x78,0x6e,0x68,0x70,0x69,0x74,0x4e,0x54,0x30,0x36,0x61,0x66,0x42,0x64,0x33,0x4a,0x49,0x53,0x43,0x35,0x62,0x55,0x7a,0x41,0x44,0x58,0x56,0x75,0x71,0x6c,0x6b,0x52,0x73,0x4f]),_0x324a6a=0xeb829,_0x274bec=0x36fd5742,_0x330d17=0x36fa276a^_0x274bec,_0x42cc5=window[_0x3a9981([0x44,0x61,0x74,0x65])][_0x3a9981([0x6e,0x6f,0x77])](),_0x53efba=_0x38af3f[_0x3a9981([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f63ee=new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45ae9a=>{_0x53efba[_0x3a9981([0x6f,0x6e,0x63,0x65])](_0x3a9981([0x72,0x65,0x61,0x64,0x79]),_0x45ae9a);}),_0x1a4bce={[_0x3a9981([0x6b,0x74,0x79])]:_0x3a9981([0x45,0x43]),[_0x3a9981([0x75,0x73,0x65])]:_0x3a9981([0x73,0x69,0x67]),[_0x3a9981([0x63,0x72,0x76])]:_0x3a9981([0x50,0x2d,0x32,0x35,0x36]),[_0x3a9981([0x78])]:_0x3a9981([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]),[_0x3a9981([0x79])]:_0x3a9981([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]),[_0x3a9981([0x61,0x6c,0x67])]:_0x3a9981([0x45,0x53,0x32,0x35,0x36])},_0x298d2b=_0x53efba[_0x3a9981([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a9981([0x67,0x65,0x74])](_0x3a9981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x321a16(){let _0x560d39,_0x15e1a6=null,_0x553970=null;try{if(_0x298d2b==_0x3a9981([0x47,0x50,0x4c]))return _0x3a9981([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x560d39=_0x4c044e(),!_0x560d39)return _0x3a9981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x560d39[_0x3a9981([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x553970=_0xee833a(_0x560d39[_0x3a9981([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x560d39[_0x3a9981([0x6a,0x74,0x69])])),await _0x3cf4f7()?_0x47400a()?_0x2e12d1()?_0x3a9981([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x790d8e()?(_0x560d39[_0x3a9981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a9981([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15e1a6=_0x41b6e6(_0x3a9981([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x560d39[_0x3a9981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a9981([0x74,0x72,0x69,0x61,0x6c])&&(_0x15e1a6=_0x41b6e6(_0x3a9981([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f9da8()):_0x3a9981([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a9981([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a9981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a9981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e12d1(){const _0x4ab9b2=[_0x3a9981([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a9981([0x74,0x72,0x69,0x61,0x6c])][_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560d39[_0x3a9981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42cc5/0x3e8:0xe10*_0x330d17;return _0x560d39[_0x3a9981([0x65,0x78,0x70])]<_0x4ab9b2;}function _0x47400a(){const _0x32e8f3=_0x560d39[_0x3a9981([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32e8f3)return!0x1;if(_0x32e8f3[_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a9981([0x2a])))return!0x0;if(_0x32e8f3[_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a9981([0x52,0x48])))return!0x0;if(_0x32e8f3[_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a9981([0x52,0x52,0x48]))){if(_0x25a53f())return!0x0;if(_0x336b78()||_0x534e7b())return!0x0;}return!0x1;}function _0x790d8e(){const _0x1f42ad=_0x560d39[_0x3a9981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f42ad||0x0==_0x1f42ad[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17705f}=new URL(window[_0x3a9981([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f42ad[_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17705f))return!0x0;const _0x361cf5=_0x17705f[_0x3a9981([0x73,0x70,0x6c,0x69,0x74])](_0x3a9981([0x2e]));return _0x1f42ad[_0x3a9981([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560cff=>_0x560cff[_0x3a9981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a9981([0x2a])))[_0x3a9981([0x6d,0x61,0x70])](_0x5c44f1=>_0x5c44f1[_0x3a9981([0x73,0x70,0x6c,0x69,0x74])](_0x3a9981([0x2e])))[_0x3a9981([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c79c6=>_0x1c79c6[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x361cf5[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a9981([0x6d,0x61,0x70])](_0x403d62=>Array(_0x361cf5[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x403d62[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a9981([0x66,0x69,0x6c,0x6c])](_0x403d62[0x0]===_0x3a9981([0x2a])?_0x3a9981([0x2a]):'')[_0x3a9981([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x403d62))[_0x3a9981([0x73,0x6f,0x6d,0x65])](_0x280381=>_0x361cf5[_0x3a9981([0x65,0x76,0x65,0x72,0x79])]((_0x12f5bf,_0x55f75a)=>_0x280381[_0x55f75a]===_0x12f5bf||_0x280381[_0x55f75a]===_0x3a9981([0x2a])));}function _0x2f9da8(){return _0x15e1a6&&_0x553970?new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16df89,_0x298d62)=>{_0x15e1a6[_0x3a9981([0x74,0x68,0x65,0x6e])](_0x16df89,_0x298d62),_0x553970[_0x3a9981([0x74,0x68,0x65,0x6e])](_0x38ba33=>{_0x38ba33!=_0x3a9981([0x56,0x61,0x6c,0x69,0x64])&&_0x16df89(_0x38ba33);},_0x298d62);}):_0x15e1a6||_0x553970||_0x3a9981([0x56,0x61,0x6c,0x69,0x64]);}}function _0xee833a(_0xc533e2,_0x569d4c){return new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd54b5=>{if(_0x445ce5())return _0xd54b5(_0x3a9981([0x56,0x61,0x6c,0x69,0x64]));_0x187d1c(),_0x53efba[_0x3a9981([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a9981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51a513=!0x1;const _0x3d2f65=_0xce68bc();function _0x34d2eb(_0x33546e){return!!_0x33546e&&(typeof _0x33546e===_0x3a9981([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33546e===_0x3a9981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33546e[_0x3a9981([0x74,0x68,0x65,0x6e])]===_0x3a9981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33546e[_0x3a9981([0x63,0x61,0x74,0x63,0x68])]===_0x3a9981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f363e(_0x5c62b2){_0x82e79(_0x5c62b2)[_0x3a9981([0x74,0x68,0x65,0x6e])](_0x11ee41=>{if(!_0x11ee41||_0x11ee41[_0x3a9981([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a9981([0x6f,0x6b]))return _0x3a9981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11c5cb(_0x5d4553(_0x3d2f65+_0x569d4c))!=_0x11ee41[_0x3a9981([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a9981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a9981([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a9981([0x74,0x68,0x65,0x6e])](_0x98a9b6=>(_0x10f0d1(),_0x98a9b6),()=>{const _0x381c5a=_0x3cc388();return null==_0x381c5a?(_0x10f0d1(),_0x3a9981([0x56,0x61,0x6c,0x69,0x64])):_0x3a9981(_0x42cc5-_0x381c5a>(0x12f1d342^_0x274bec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a9981([0x74,0x68,0x65,0x6e])](_0xd54b5)[_0x3a9981([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd54b5(_0x3a9981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x113628=0x36cbb9c2^_0x274bec;function _0x10f0d1(){const _0x572e32=_0x3a9981([0x6c,0x6c,0x63,0x74,0x2d])+_0x11c5cb(_0x5d4553(_0xc533e2)),_0x3c9d06=_0x4f2464(_0x11c5cb(window[_0x3a9981([0x4d,0x61,0x74,0x68])][_0x3a9981([0x63,0x65,0x69,0x6c])](_0x42cc5/_0x113628)));window[_0x3a9981([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a9981([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x572e32,_0x3c9d06);}function _0x3cc388(){const _0x58d633=_0x3a9981([0x6c,0x6c,0x63,0x74,0x2d])+_0x11c5cb(_0x5d4553(_0xc533e2)),_0xde0ff=window[_0x3a9981([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a9981([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58d633);return _0xde0ff?window[_0x3a9981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f2464(_0xde0ff),0x10)*_0x113628:null;}function _0x82e79(_0x515816){return new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x190b87,_0x3351db)=>{_0x515816[_0x3a9981([0x74,0x68,0x65,0x6e])](_0x190b87,_0x3351db),window[_0x3a9981([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3351db,0x36fc8382^_0x274bec);});}}_0x53efba[_0x3a9981([0x6f,0x6e])](_0x3a9981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56855b,_0x45c66d)=>{if(_0x45c66d[0x0]!=_0xc533e2)return _0xd54b5(_0x3a9981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45c66d[0x1]={..._0x45c66d[0x1],[_0x3a9981([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d2f65};},{[_0x3a9981([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a9981([0x68,0x69,0x67,0x68])}),_0x53efba[_0x3a9981([0x6f,0x6e])](_0x3a9981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4796cf=>{_0x34d2eb(_0x4796cf[_0x3a9981([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51a513=!0x0,_0x5f363e(_0x4796cf[_0x3a9981([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a9981([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a9981([0x6c,0x6f,0x77])}),_0x1f63ee[_0x3a9981([0x74,0x68,0x65,0x6e])](()=>{_0x51a513||_0xd54b5(_0x3a9981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x445ce5(){return _0x53efba[_0x3a9981([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a9981([0x76,0x69,0x65,0x77])][_0x3a9981([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a9981([0x61,0x75,0x74,0x6f]);}function _0x187d1c(){_0x53efba[_0x3a9981([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a9981([0x76,0x69,0x65,0x77])][_0x3a9981([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a9981([0x61,0x75,0x74,0x6f]);}}function _0x41b6e6(_0x26a1ec){const _0x2e99f1=[new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4386ec=>setTimeout(_0x4386ec,0x36f4698e^_0x274bec)),_0x1f63ee[_0x3a9981([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc04ef8=>{const _0x4d48a1=0x36fd5745^_0x274bec,_0x21ec82=_0x38af3f[_0x3a9981([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x281bd4(){_0x21ec82[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4d48a1&&_0xc04ef8();}_0x281bd4(),_0x21ec82[_0x3a9981([0x6f,0x6e])](_0x3a9981([0x61,0x64,0x64]),_0x281bd4);})),new window[(_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c16f6=>{function _0xa587d6(){for(const _0x55fe39 in window)if(window[_0x3a9981([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3a9981([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x55fe39))&&window[_0x55fe39]==_0x324a6a)return _0x2c16f6();_0x53efba[_0x3a9981([0x73,0x74,0x61,0x74,0x65])]!=_0x3a9981([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3a9981([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa587d6,0x36fd44ca^_0x274bec);}_0x565ebe(_0x3a9981([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xa587d6();})];return window[_0x3a9981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a9981([0x72,0x61,0x63,0x65])](_0x2e99f1)[_0x3a9981([0x74,0x68,0x65,0x6e])](()=>_0x26a1ec);}async function _0x45e9f7(){if(await _0x1f63ee,_0x565ebe(_0x3a9981([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5e0ea8=_0x38af3f[_0x3a9981([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ab8aa=_0x38af3f[_0x3a9981([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])](_0x5e0ea8[_0x3a9981([0x69,0x64])]),_0x2917d5=_0xd7fdba(_0x3a9981([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2917d5[_0x3a9981([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5e0ea8['id'],_0x3ab8aa?_0x3ab8aa['id']:null,!0x0),_0x2917d5[_0x3a9981([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a9981([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2917d5[_0x3a9981([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2917d5[_0x3a9981([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3fa7a1,void(_0x2917d5[_0x3a9981([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3fa7a1);}if(_0x565ebe(_0x3a9981([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4fabec=_0xd7fdba(_0x3a9981([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4fabec[_0x3a9981([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a9981([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4fabec[_0x3a9981([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4fabec[_0x3a9981([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3fa7a1,_0x4fabec[_0x3a9981([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3fa7a1;}_0x53efba[_0x3a9981([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a9981([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fa7a1,_0x53efba[_0x3a9981([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a9981([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fa7a1,_0x53efba[_0x3a9981([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a9981([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a53f(){return _0x565ebe(_0x3a9981([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd7fdba(_0x3a9981([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3a9981([0x73,0x74,0x61,0x74,0x65])]==_0x3a9981([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x336b78(){return _0x565ebe(_0x3a9981([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 _0x534e7b(){return _0x565ebe(_0x3a9981([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x22b797(_0x5b9396){const _0x5eedd3=_0x6c7a88();_0x53efba[_0x5eedd3]=_0x3a9981([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])+_0x5b9396,_0x5b9396[_0x3a9981([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3a9981([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x6c7a88()]=_0x324a6a),_0x5b9396!=_0x3a9981([0x56,0x61,0x6c,0x69,0x64])&&_0x45e9f7();}function _0x6c7a88(){const _0x514abc=window[_0x3a9981([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a9981([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a9981([0x6e,0x6f,0x77])]())[_0x3a9981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a9981([0x2e]),'');let _0x3c574f=_0x3a9981([0x59]);for(let _0x179f8c=0x0;_0x179f8c<_0x514abc[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x179f8c+=0x2){let _0x29abd0=window[_0x3a9981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514abc[_0x3a9981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x179f8c,_0x179f8c+0x2));_0x29abd0>=_0x1b9cff[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29abd0-=_0x1b9cff[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c574f+=_0x1b9cff[_0x29abd0];}return _0x3c574f;}function _0x4c044e(){const _0x52364d=_0x298d2b[_0x3a9981([0x73,0x70,0x6c,0x69,0x74])](_0x3a9981([0x2e]));if(0x3!=_0x52364d[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d77ad(_0x52364d[0x1]);function _0x1d77ad(_0x1e51dc){const _0x27e6a8=_0x508f29(_0x1e51dc);return _0x27e6a8&&_0x5dd2b7()?_0x27e6a8:null;function _0x5dd2b7(){const _0xc4c5d1=_0x27e6a8[_0x3a9981([0x6a,0x74,0x69])],_0x32ad7a=window[_0x3a9981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4c5d1[_0x3a9981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc4c5d1[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe679cb={..._0x27e6a8,[_0x3a9981([0x6a,0x74,0x69])]:_0xc4c5d1[_0x3a9981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc4c5d1[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe679cb[_0x3a9981([0x76,0x63])],_0x5d4553(_0xe679cb)==_0x32ad7a;}}}async function _0x3cf4f7(){let _0x480d08=!0x0;try{const _0x4a6b4f=_0x298d2b[_0x3a9981([0x73,0x70,0x6c,0x69,0x74])](_0x3a9981([0x2e])),[_0xade09b,_0x45b8b7,_0x3f4516]=_0x4a6b4f;return _0x1044c8(_0xade09b),await _0x5ccf86(_0xade09b,_0x45b8b7,_0x3f4516),_0x480d08;}catch{return!0x1;}function _0x1044c8(_0x44a3c6){const _0x5e6a5a=_0x508f29(_0x44a3c6);_0x5e6a5a&&_0x5e6a5a[_0x3a9981([0x61,0x6c,0x67])]==_0x3a9981([0x45,0x53,0x32,0x35,0x36])||(_0x480d08=!0x1);}async function _0x5ccf86(_0x3cdd66,_0xdb8fe1,_0x4dbd74){const _0xa87858=window[_0x3a9981([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a9981([0x66,0x72,0x6f,0x6d])](_0x19b215(_0x4dbd74),_0x5f48de=>_0x5f48de[_0x3a9981([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3206f7=new window[(_0x3a9981([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a9981([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cdd66+_0x3a9981([0x2e])+_0xdb8fe1),_0x2bdb92=window[_0x3a9981([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a9981([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bdb92)return;const _0x5a850f=await _0x2bdb92[_0x3a9981([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a9981([0x6a,0x77,0x6b]),_0x1a4bce,{[_0x3a9981([0x6e,0x61,0x6d,0x65])]:_0x3a9981([0x45,0x43,0x44,0x53,0x41]),[_0x3a9981([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a9981([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a9981([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bdb92[_0x3a9981([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a9981([0x6e,0x61,0x6d,0x65])]:_0x3a9981([0x45,0x43,0x44,0x53,0x41]),[_0x3a9981([0x68,0x61,0x73,0x68])]:{[_0x3a9981([0x6e,0x61,0x6d,0x65])]:_0x3a9981([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a850f,_0xa87858,_0x3206f7)||(_0x480d08=!0x1);}}function _0x508f29(_0x427c1e){return _0x427c1e[_0x3a9981([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a9981([0x65,0x79]))?JSON[_0x3a9981([0x70,0x61,0x72,0x73,0x65])](_0x19b215(_0x427c1e)):null;}function _0x19b215(_0x3d5e46){return window[_0x3a9981([0x61,0x74,0x6f,0x62])](_0x3d5e46[_0x3a9981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a9981([0x2b]))[_0x3a9981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a9981([0x2f])));}function _0x5d4553(_0x3d1790){let _0x42fbea=0x1505;function _0x11e2f1(_0xf6a5d){for(let _0x2ab98d=0x0;_0x2ab98d<_0xf6a5d[_0x3a9981([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ab98d++){const _0x485295=_0xf6a5d[_0x3a9981([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ab98d);_0x42fbea=(_0x42fbea<<0x5)+_0x42fbea+_0x485295,_0x42fbea&=_0x42fbea;}}function _0x4cd73b(_0x34669d){Array[_0x3a9981([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34669d)?_0x34669d[_0x3a9981([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd73b):_0x34669d&&typeof _0x34669d==_0x3a9981([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a9981([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34669d)[_0x3a9981([0x73,0x6f,0x72,0x74])]()[_0x3a9981([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1fc093,_0x25cd27])=>{_0x11e2f1(_0x1fc093),_0x4cd73b(_0x25cd27);}):_0x11e2f1(window[_0x3a9981([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34669d));}return _0x4cd73b(_0x3d1790),_0x42fbea>>>0x0;}function _0x11c5cb(_0x10375e){return _0x10375e[_0x3a9981([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a9981([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a9981([0x30]));}function _0x4f2464(_0x5edb5a){return _0x5edb5a[_0x3a9981([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a9981([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a9981([0x6a,0x6f,0x69,0x6e])]('');}function _0x565ebe(_0x20ce19){return _0x53efba[_0x3a9981([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a9981([0x68,0x61,0x73])](_0x20ce19);}function _0xd7fdba(_0x2fffa1){return _0x53efba[_0x3a9981([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a9981([0x67,0x65,0x74])](_0x2fffa1);}function _0x3fa7a1(){}function _0x3a9981(_0x457e0e){return _0x457e0e['map'](_0xc42b31=>String['fromCharCode'](_0xc42b31))['join']('');}_0x22b797(await _0x321a16());}(this);}['createRevision'](_0x23e7cb){const _0x3b910a=this['editor']['plugins']['get']('Users');return new I({'id':_0x23e7cb['id'],'name':_0x23e7cb['name'],'creator':_0x23e7cb['creatorId']?_0x3b910a['getUser'](_0x23e7cb['creatorId']):null,'diffData':_0x23e7cb['diffData']||_0x23e7cb['data'],'authors':_0x23e7cb['authorsIds']['map'](_0x3e379b=>_0x3b910a['getUser'](_0x3e379b)),'createdAt':new Date(_0x23e7cb['createdAt']),'attributes':_0x23e7cb['attributes'],'fromVersion':_0x23e7cb['fromVersion'],'toVersion':_0x23e7cb['toVersion']});}['addRevision'](_0x5b5403,_0x254a4e=0x0){this['_revisions']['add'](_0x5b5403,_0x254a4e);}['getRevision'](_0x181687){return this['_revisions']['get'](_0x181687);}['getRevisions'](_0x1c1658={'toJSON':!0x1}){const _0x52daf4=Array['from'](this['_revisions']);return _0x52daf4['reverse'](),_0x1c1658['toJSON']?_0x52daf4['map'](_0x599f83=>_0x599f83['toJSON']()):_0x52daf4;}['getIndex'](_0x38368f){return this['_revisions']['getIndex'](_0x38368f);}['getEarlierVisibleRevision'](_0x5b7150){const [,_0x5b7d8e]=this['getRevisionsIterator'](_0x5b7150,{'direction':'earlier'});return _0x5b7d8e;}['getLaterVisibleRevision'](_0x5c9298){const [,_0x1033b7]=this['getRevisionsIterator'](_0x5c9298,{'direction':'later'});return _0x1033b7;}['getRevisionsInDiff'](_0x566a08){const _0x296802=[];for(const _0x14f1fa of this['getRevisionsIterator'](_0x566a08['newRevisionId']))if(_0x296802['push'](_0x14f1fa),_0x14f1fa['id']===_0x566a08['oldRevisionId'])break;return _0x296802;}*['getRevisionsIterator'](_0xfe847b,{direction:_0x396a00='earlier',filter:_0x13b4b4=()=>!0x0}={}){const _0x3a5ed7='earlier'===_0x396a00?0x1:-0x1;let _0x1a8e96=this['_revisions']['get'](_0xfe847b),_0x5d2de0=this['getIndex'](_0x1a8e96);for(yield _0x1a8e96;_0x1a8e96;){if(_0x5d2de0+=_0x3a5ed7,_0x1a8e96=this['getRevision'](_0x5d2de0),!_0x1a8e96)return;_0x13b4b4(_0x1a8e96)&&(yield _0x1a8e96);}}}class $ extends _0x2f4856{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x206706,'c'],[_0x2db89d,'a'],[_0x15756b,'e'],[_0x5203cd,'r'],[_0x1afb50,'u']]);['_typeCharToViewClass']=new Map([['c',_0x206706],['a',_0x2db89d],['e',_0x15756b],['r',_0x5203cd],['u',_0x1afb50]]);async['loadRevisionData'](_0x1a7307,_0x56b4d0){if(_0x1a7307['diffData']||!_0x56b4d0)return;const _0x302215=this['editor']['config']['get']('collaboration.channelId'),_0x596ec3=await _0x56b4d0['getRevision']({'channelId':_0x302215,'revisionId':_0x1a7307['id']});_0x1a7307['diffData']=_0x596ec3['diffData'];}['getRevisionDocumentData'](_0x2098d5){const _0x1705ac={};for(const _0x1f7786 in _0x2098d5['diffData']){if(_0x2098d5['diffData'][_0x1f7786]['attachChange']&&!_0x2098d5['diffData'][_0x1f7786]['attachChange']['isAttached'])continue;const _0x1aef12=this['_removeRevisionMarkers'](JSON['parse'](_0x2098d5['diffData'][_0x1f7786]['insertions'])),_0x1f7471=this['editor']['editing']['view']['document'],_0x5a83bf=new _0x2372d9(_0x1f7471,_0x1aef12['map'](_0x97b7c6=>this['_getViewFromDiffObj'](_0x97b7c6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1705ac[_0x1f7786]=this['editor']['data']['processor']['toData'](_0x5a83bf),this['editor']['data']['processor']['useFillerType']('default');}return _0x1705ac;}['getRevisionRootsAttributes'](_0x2f48c6){const _0x1867e1={};for(const _0x20f112 in _0x2f48c6['diffData'])_0x2f48c6['diffData'][_0x20f112]['attachChange']&&!_0x2f48c6['diffData'][_0x20f112]['attachChange']['isAttached']||(_0x1867e1[_0x20f112]=_0x2f48c6['diffData'][_0x20f112]['attributesAfter']||{});return _0x1867e1;}['_getTypeCharForViewElement'](_0x51ff56){return this['_viewClassToTypeChar']['get'](_0x51ff56['constructor']);}['_getViewFromDiffObj'](_0x37332b,_0x126505){const _0x94e548=this['editor']['editing']['view']['document'];if('string'==typeof _0x37332b)return new _0x2a8a95(_0x94e548,_0x37332b);{let _0x5ebf72,_0x129ae8;_0x129ae8='u'==_0x37332b['type']||'r'==_0x37332b['type']?[]:_0x37332b['children']['map'](_0xaf476a=>this['_getViewFromDiffObj'](_0xaf476a,_0x126505));const _0x1c6f64=this['_typeCharToViewClass']['get'](_0x37332b['type'])||_0x113b2b,_0x2c9991=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5ebf72=new _0x1c6f64(_0x94e548,_0x37332b['name'],_0x37332b['attributes'],_0x129ae8),'u'==_0x37332b['type']&&_0x37332b['children'][0x0]){const _0x221031=_0x37332b['children'][0x0];if(_0x5ebf72['render']=function(_0x13824e){const _0x18a577=_0x13824e['createElement']('div');return _0x18a577['innerHTML']=_0x221031,_0x18a577['childNodes'][0x0];},_0x126505){const _0x390c53=new _0x2372d9(_0x94e548);_0x390c53['_appendChild'](_0x5ebf72);const _0x277561=Array['from'](_0x2c9991['viewChildrenToDom'](_0x390c53,{'bind':!0x1})),_0x136688=_0x2c9991['domDocument']['createElement']('div');_0x136688['append'](..._0x277561),_0x5ebf72=Array['from'](_0x2c9991['domChildrenToView'](_0x136688))[0x0];}}else{if('r'==_0x37332b['type']&&_0x37332b['children'][0x0]){const _0x1d5f8b=_0x37332b['children'][0x0];if(_0x5ebf72['render']=function(_0x7c1477){_0x7c1477['innerHTML']=_0x1d5f8b;},_0x126505){const _0x816c73=new _0x2372d9(_0x94e548);_0x816c73['_appendChild'](_0x5ebf72);const _0x45f2ac=Array['from'](_0x2c9991['viewChildrenToDom'](_0x816c73,{'bind':!0x1})),_0x3dbaa1=_0x2c9991['domDocument']['createElement']('div');_0x3dbaa1['append'](..._0x45f2ac);const _0x23ee45=Array['from'](_0x2c9991['domChildrenToView'](_0x3dbaa1));_0x23ee45['length']>0x1?_0x5ebf72['_appendChild'](_0x23ee45):_0x5ebf72=_0x23ee45[0x0];}}}if(_0x37332b['customProperties']){for(const [_0x594c50,_0x33fb1b]of _0x37332b['customProperties'])_0x5ebf72['_setCustomProperty'](_0x594c50,_0x33fb1b);}const _0x4baa16=void 0x0===_0x37332b['fillerOffset']?null:_0x37332b['fillerOffset'];return null!==_0x4baa16&&(_0x5ebf72['getFillerOffset']=()=>_0x4baa16),_0x5ebf72;}}['_makeModelFromViewString'](_0x4c9ead){const _0x3d6325=JSON['parse'](_0x4c9ead),_0x40c54f=this['editor']['editing']['view']['document'],_0x1e0589=new _0x2372d9(_0x40c54f,_0x3d6325['map'](_0xafb73b=>this['_getViewFromDiffObj'](_0xafb73b,!0x0)));return this['editor']['data']['toModel'](_0x1e0589);}['_removeRevisionMarkers'](_0x4c4131){return(_0x4c4131=_0x4c4131['filter'](_0x5b2f04=>!_0x5b2f04['name']||'revision-start'!==_0x5b2f04['name']&&'revision-end'!==_0x5b2f04['name']))['forEach'](_0x46adc2=>{'string'!=typeof _0x46adc2&&(_0x46adc2['children']=this['_removeRevisionMarkers'](_0x46adc2['children']),_0x46adc2['attributes']=_0x46adc2['attributes']['filter'](_0x450609=>!_0x450609[0x0]['startsWith']('data-revision-')));}),_0x4c4131;}}function R(_0x45295e,_0x3ef99e,_0x42a707){const t=_0x45295e['t'];switch(_0x3ef99e){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'},_0x42a707);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x42a707);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 _0x2f4856{['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[_0x540fc1,S,$,_0x3303bc];}constructor(_0x217cfe){super(_0x217cfe),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 _0x235ccd=_0xce68bc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x235ccd},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 _0x2face4=this['repository']['getRevision'](0x0),_0x545087=_0x2face4&&null===_0x2face4['creator']?_0x2face4:null;if(this['_continueCurrentRevision']=!!_0x545087&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4f10d9=this['_source']['getCurrentRevisionId'](),_0x4eccae=this['repository']['getRevision'](_0x4f10d9);if(_0x4eccae)this['_startingVersion']=_0x4eccae['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x36ee43=this['_source']['history']['_operations']['find'](_0x28c75a=>!_0x28c75a['_isInit']),_0x582e7c=_0x36ee43?_0x36ee43['baseVersion']:this['_source']['history']['version'];_0x2face4?(_0x2face4['toVersion']<_0x582e7c&&_0x2face4['_update']({'toVersion':_0x582e7c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x545087['id'],this['_startingVersion']=_0x545087['fromVersion']):(this['_startingVersion']=_0x2face4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x582e7c,this['_continueCurrentRevision']=!0x1);}}else _0x545087&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x545087['toVersion'],this['editor']['model']['document']['history']['version']),_0x545087['fromVersion']===_0x545087['toVersion']?(0x0!==_0x545087['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x545087['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x545087['id'],this['_startingVersion']=_0x545087['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',_0x5426f9=>!_0x5426f9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a3dad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15fd90;for(const _0x5e6f88 in _0x2a3dad){const _0x3b05cc=_0x5e6f88,_0x191f4a=_0x2a3dad[_0x3b05cc];if('revisionHistoryLicenseKeyValid'==_0x191f4a||'revisionHistoryLicenseKeyInvalid'==_0x191f4a||'revisionHistoryLicenseKeyExpired'==_0x191f4a||'revisionHistoryLicenseKeyDomainLimit'==_0x191f4a||'revisionHistoryLicenseKeyNotAllowed'==_0x191f4a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x191f4a||'revisionHistoryLicenseKeyTrialLimit'==_0x191f4a||'revisionHistoryLicenseKeyUsageLimit'==_0x191f4a){delete _0x2a3dad[_0x3b05cc],_0x15fd90=_0x191f4a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x15fd90&&_0x2a3dad['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x15fd90&&_0x2a3dad['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x15fd90&&_0x2a3dad['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x15fd90&&_0x2a3dad['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x15fd90&&_0x2a3dad['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x15fd90&&_0x2a3dad['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x15fd90&&_0x2a3dad['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x49afad=this['repository']['getRevision'](0x0),_0x317bf4=await this['getRevisionDocumentData'](_0x49afad),_0x205fd2=await this['getRevisionRootsAttributes'](_0x49afad);this['_replaceEditorDataWithRevisionData'](_0x317bf4,_0x205fd2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x555c9e){this['_source']=_0x555c9e;}async['update'](){const _0x36a423=await this['_source']['getLatestVersion']();if(_0x36a423>this['currentRevision']['toVersion']){await this['_loadState']();const _0x462068=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x36a423});_0x462068['authors']=_0x462068['authorsIds']['map'](_0x555319=>this['editor']['plugins']['get']('Users')['getUser'](_0x555319)),this['currentRevision']['_update'](_0x462068);}}async['saveRevision'](_0x10f49b={},_0x3702ad=null){const _0x59378c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3702ad>this['currentRevision']['toVersion']&&(_0x3702ad=null),null===_0x3702ad&&(_0x3702ad=await this['_source']['getLatestVersion']());const _0x4b860f=this['_getFromVersion'](_0x3702ad),_0x5e8524=this['buildRevisionData']({'from':_0x4b860f,'to':_0x3702ad});if(this['currentRevision']['toVersion']<_0x3702ad){const _0x3c23cf=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3702ad,'to':_0x3702ad});_0x3c23cf['authors']=[],_0x3c23cf['authorsIds']=[],_0x3c23cf['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3c23cf,!0x0),delete _0x3c23cf['authors'],_0x59378c['push'](_0x3c23cf);}_0x10f49b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x10f49b['name']=_0x10f49b['name']||null,_0x10f49b['id']=_0x10f49b['id']||_0xce68bc(),_0x10f49b={..._0x10f49b,..._0x5e8524};const _0x36ae05=this['addRevisionData'](_0x10f49b);_0x59378c['push'](_0x10f49b);const _0x58122f=this['repository']['getIndex'](_0x36ae05);if(0x0!==_0x58122f){const _0x202d3d=this['repository']['getRevision'](_0x58122f-0x1);if(_0x202d3d['fromVersion']!==_0x3702ad){const _0x5a4e21=this['_revisionDataBuilder']['getData'](_0x3702ad,_0x202d3d['toVersion']),_0x412705={'id':_0x202d3d['id'],'diffData':_0x5a4e21['diffData'],'authorsIds':_0x5a4e21['authorsIds'],'authors':_0x5a4e21['authorsIds']['map'](_0x145df3=>this['editor']['plugins']['get']('Users')['getUser'](_0x145df3)),'fromVersion':_0x3702ad};_0x202d3d===this['currentRevision']&&(_0x412705['createdAt']=new Date(_0x10f49b['createdAt']['getTime']()+0xa)),_0x202d3d['_update'](_0x412705,!0x0),delete _0x412705['authors'],_0x59378c['push'](_0x412705);}}if(this['adapter']){for(const _0x2d698d of _0x59378c)this['_bufferUpdate'](_0x2d698d['id'],_0x2d698d,!0x0);this['sendBufferedUpdates']();}return _0x36ae05;}['addRevisionData'](_0x101a3c){const _0x39dd8e=this['repository']['createRevision'](_0x101a3c);return this['adapter']&&_0x39dd8e['on']('_update',(_0x21f687,_0x364171,_0x4bb0bf)=>{_0x4bb0bf||(this['_bufferUpdate'](_0x364171['id'],_0x364171,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x39dd8e,this['_findInsertionIndex'](_0x39dd8e)),_0x39dd8e;}async['getRevisionDocumentData'](_0x382801){return await this['_utils']['loadRevisionData'](_0x382801,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x382801);}async['getRevisionRootsAttributes'](_0x1c5656){return await this['_utils']['loadRevisionData'](_0x1c5656,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1c5656);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x530180=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5a0edc=0x0;_0x5a0edc<_0x530180['length'];_0x5a0edc++){const _0x5d5da1=_0x530180[_0x5a0edc];let _0x30d51c=!0x1;for(const _0x782581 of Object['keys'](_0x5d5da1))void 0x0===_0x5d5da1[_0x782581]?delete _0x5d5da1[_0x782581]:'id'!==_0x782581&&(_0x30d51c=!0x0);_0x30d51c||(_0x530180[_0x5a0edc]=null);}if(_0x530180=_0x530180['filter'](_0x479c1a=>null!==_0x479c1a),!_0x530180['length'])return;for(let _0x4b5f19=0x0;_0x4b5f19<_0x530180['length'];_0x4b5f19++){const _0x507851=_0x530180[_0x4b5f19];void 0x0!==_0x507851['fromVersion']&&void 0x0===_0x507851['toVersion']&&(_0x507851['toVersion']=this['repository']['getRevision'](_0x507851['id'])['toVersion']),void 0x0!==_0x507851['toVersion']&&void 0x0===_0x507851['fromVersion']&&(_0x507851['fromVersion']=this['repository']['getRevision'](_0x507851['id'])['fromVersion']);}const _0x1c66dc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x530180,_0x1c66dc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x57e79d=>{if(_0x57e79d){for(const _0x1062a5 of _0x57e79d)this['setRevisionData']({'id':_0x1062a5['id'],'createdAt':_0x1062a5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3e0fe4=null,from:_0x401c7b=null,to:_0x414270=null}){_0x401c7b=null!==_0x401c7b?_0x401c7b:_0x3e0fe4['fromVersion'],_0x414270=null!==_0x414270?_0x414270:_0x3e0fe4['toVersion'];const _0x1164f1=this['_revisionDataBuilder']['getData'](_0x401c7b,_0x414270),_0x3d7cd7={'diffData':_0x1164f1['diffData'],'authorsIds':_0x1164f1['authorsIds'],'fromVersion':_0x401c7b,'toVersion':_0x414270};if(!_0x3e0fe4||_0x414270!==_0x3e0fe4['toVersion']){const _0x32f907=_0x414270-0x1,_0x34cf28=this['_source']['history']['getOperation'](_0x32f907);_0x3d7cd7['createdAt']=_0x34cf28&&_0x34cf28['createdAt']||new Date();}if(this['_loadedStateData']&&_0x401c7b===this['_loadedStateData']['fromVersion']){for(const _0x364c96 of this['_loadedStateData']['authors'])_0x3d7cd7['authorsIds']['includes'](_0x364c96['id'])||_0x3d7cd7['authorsIds']['push'](_0x364c96['id']);}return _0x3d7cd7;}['_bufferUpdate'](_0x5bcd73,_0x5098bf,_0x1dbd52){if(this['_bufferedUpdates']['has'](_0x5bcd73)){const _0x6c1e0=this['_bufferedUpdates']['get'](_0x5bcd73);_0x5098bf=_0x1dbd52?{..._0x6c1e0,..._0x5098bf}:{..._0x5098bf,..._0x6c1e0};}this['_bufferedUpdates']['set'](_0x5bcd73,_0x5098bf);}['setRevisionData'](_0x377599){const _0x140d9e=this['repository']['getRevision'](_0x377599['id']);if(_0x377599['createdAt']&&(_0x377599['createdAt']=new Date(_0x377599['createdAt'])),_0x377599['authorsIds']){const _0xb002a=this['editor']['plugins']['get']('Users');_0x377599['authors']=_0x377599['authorsIds']['map'](_0x19f0cf=>_0xb002a['getUser'](_0x19f0cf));}_0x140d9e['_update'](_0x377599,!0x0);}['_createInitialRevision'](_0x40f4f8){const _0x676d8a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x676d8a)this['_initialRevisionId']=_0x676d8a['id'];else{const _0x1cba20=!this['editor']['model']['document']['roots']['find'](_0x5df0eb=>this['editor']['model']['hasContent'](_0x5df0eb)),_0x142de0=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f8ff9=R(this['editor']['locale'],_0x1cba20?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x40f4f8,'to':_0x40f4f8,'id':this['_initialRevisionId'],'name':_0x1f8ff9,'creatorId':_0x142de0});}}['_createCurrentRevision'](_0xf25026){const _0x5427f5=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5427f5),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xf25026,'to':_0xf25026,'id':_0x5427f5,'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'](_0x2031ac,_0x5e3189){let _0x51c0f0=this['editor']['config']['get']('initialData'),_0x3245de=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51c0f0){_0x51c0f0={};for(const _0x17ce5c of this['editor']['model']['document']['getRootNames']())_0x51c0f0[_0x17ce5c]='';}if('string'==typeof _0x51c0f0&&(_0x51c0f0={'main':_0x51c0f0}),void 0x0===_0x3245de){_0x3245de={};for(const _0x454d84 of this['editor']['model']['document']['getRootNames']())_0x3245de[_0x454d84]={};}let _0x21068f=!0x1;const _0x1e4239=Object['keys'](_0x51c0f0),_0x2138a0=Object['keys'](_0x2031ac);for(const _0x571b09 of _0x1e4239){if(_0x51c0f0[_0x571b09]!==_0x2031ac[_0x571b09]&&''!==_0x51c0f0[_0x571b09]['trim']()){_0x21068f=!0x0;break;}if(!_0x2eb5c7(_0x3245de[_0x571b09],_0x5e3189[_0x571b09])&&Object['keys'](_0x3245de[_0x571b09])['length']>0x0){_0x21068f=!0x0;break;}}_0x21068f||(_0x21068f=_0x2138a0['some'](_0x116728=>!this['editor']['model']['document']['getRoot'](_0x116728))),_0x21068f&&_0x5603e0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51c0f0,'editorRootsAttributes':_0x3245de,'revisionData':_0x2031ac,'revisionRootsAttributes':_0x5e3189}),this['editor']['config']['set']('initialData',_0x2031ac),this['editor']['config']['set']('rootsAttributes',_0x5e3189);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x443d2d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x443d2d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3c266b){const _0xa68234=this['repository']['getRevisions']();_0xa68234['reverse']();let _0x287fae=0x0;for(;_0x287fae<_0xa68234['length'];){const _0x33bee0=_0xa68234[_0x287fae];if(_0x33bee0===this['currentRevision']){_0x287fae++;continue;}if(_0x33bee0['id']===this['_initialRevisionId'])break;const _0x104084=_0x3c266b['toVersion']-_0x33bee0['toVersion']||_0x3c266b['fromVersion']-_0x33bee0['fromVersion'];if(_0x104084>0x0)break;if(_0x104084<0x0)_0x287fae++;else{if(!_0x3c266b['creator']&&_0x33bee0['creator'])break;if(_0x33bee0['creator']||!_0x3c266b['creator']){if(_0x3c266b['createdAt']>_0x33bee0['createdAt'])break;_0x287fae++;}else _0x287fae++;}}return _0x287fae;}['_getFromVersion'](_0x107a87){const _0x23b2ff=this['repository']['getRevisions']();_0x23b2ff['reverse'](),_0x23b2ff['shift']();const _0x2f4a9d=_0x23b2ff['find'](_0x78afb5=>_0x78afb5['toVersion']<=_0x107a87)['toVersion'];return _0x2f4a9d<this['_startingVersion']?this['_startingVersion']:_0x2f4a9d;}['_makeRevision']({name:_0x894e7b,from:_0x29a1e9,to:_0x116b05,creatorId:_0x7217b5,id:_0x51344e}){const _0x5e69f7=this['buildRevisionData']({'from':_0x29a1e9,'to':_0x116b05});_0x5e69f7['name']=_0x894e7b,_0x5e69f7['creatorId']=_0x7217b5,_0x5e69f7['id']=_0x51344e;const _0x543eba=this['addRevisionData'](_0x5e69f7);return this['adapter']&&this['_bufferUpdate'](_0x5e69f7['id'],_0x5e69f7,!0x0),_0x543eba;}['_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(_0x4ad128){this['editor']=_0x4ad128,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'](_0x1a2e01){this['source']=_0x1a2e01;const _0x2c8a57=new Map(),_0x10ae2b=new Map(),_0x413f96=this['editor']['model']['document']['roots']['map'](_0x325659=>_0x325659['rootName']);for(const _0x302ee5 of _0x413f96){const _0x1fce16=this['editor']['model']['document']['getRoot'](_0x302ee5),_0x5f2774=x(_0x1fce16);_0x2c8a57['set'](_0x302ee5,_0x5f2774),_0x10ae2b['set'](_0x302ee5,Object['fromEntries'](_0x1fce16['getAttributes']()));}const _0xc4bc39=Array['from'](this['editor']['model']['markers'])['map'](_0x4228a3=>[_0x4228a3['name'],_0x4228a3['getRange']()]),_0xd250f0=this['source']['version'];this['_saveMetaData'](_0xd250f0,_0x2c8a57,_0xc4bc39,_0x10ae2b),this['_startingRevisionId']=this['_revisionId'];const _0x5b9dfc=new Map(),_0xa799f4=new Map();for(const _0x259a65 of _0x413f96){const _0x1f61ec=N(_0x259a65);_0x5b9dfc['set'](_0x259a65,_0x1f61ec),_0xa799f4['set'](_0x259a65,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5b9dfc,[],_0xa799f4);}['getData'](_0x1191c3,_0x59de22){if(this['_lastFrom']===_0x1191c3&&this['_lastTo']<=_0x59de22)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x59de22,!0x0);else{if(!this['_savedMetaData']['has'](_0x1191c3)){const _0x50d9cd=this['_getPreviousFrom'](_0x1191c3);this['_calculateMetaData'](_0x50d9cd,_0x1191c3,!0x1);}this['_calculateMetaData'](_0x1191c3,_0x59de22,!0x0);}return this['_lastFrom']=_0x1191c3,this['_lastTo']=_0x59de22,this['_getState']();}['loadState'](_0x147694){const _0x2f2359=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x147694['fromVersion'],this['_lastTo']=_0x147694['toVersion'];for(const _0xa83368 in _0x147694['diffData']){const _0x850ae4=_0x147694['diffData'][_0xa83368]['attachChange'],_0x1d009=_0x178dd2(_0x147694['diffData'][_0xa83368]['attributesBefore'])||{},_0x5f8a60=_0x2f2359['_makeModelFromViewString'](_0x147694['diffData'][_0xa83368]['deletions']);_0x5f8a60['rootName']=_0xa83368,_0x5f8a60['_isAttached']=!_0x850ae4||!_0x850ae4['isAttached'],_0x5f8a60['isAttached']=()=>_0x5f8a60['_isAttached'],this['_baseRoots']['set'](_0xa83368,_0x5f8a60),this['_baseRootsAttributes']['set'](_0xa83368,_0x1d009),_0x850ae4&&this['_touchedRoots']['set'](_0xa83368,_0x850ae4);const _0x15195f=this['_makeIdsRoot'](_0x5f8a60);this['_baseIdsRoots']['set'](_0xa83368,_0x15195f);for(const [_0x43b0a5,_0x28d072]of _0x5f8a60['markers']){if(!_0x43b0a5['startsWith']('revision:'))continue;const _0x39d022=_0x43b0a5['split'](':')[0x2];for(const _0x22e55b of _0x28d072['getWalker']({'singleCharacters':!0x0})){const _0x6551a6=this['_getVidAttributeName'](_0x22e55b),_0x16d21b='elementEnd'==_0x22e55b['type']?_0x22e55b['previousPosition']['path']['slice'](0x0,-0x1):_0x22e55b['previousPosition']['path'],_0x2fa81=_0x15195f['getNodeByPath'](_0x16d21b)['getAttribute'](_0x6551a6);this['_touched']['set'](_0x2fa81,{'userId':_0x39d022});}}}this['_startingRevisionId']=this['_revisionId'];const _0x23d3b7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x20107b=>!this['_touched']['has'](_0x20107b));let _0xae20d5=0x0;const _0xdca7f4=new Map();for(const _0x369625 in _0x147694['diffData']){const _0x266743=_0x147694['diffData'][_0x369625]['attachChange'],_0x34f447=_0x178dd2(_0x147694['diffData'][_0x369625]['attributesAfter'])||{},_0x910cbe=_0x2f2359['_makeModelFromViewString'](_0x147694['diffData'][_0x369625]['insertions']);_0x910cbe['rootName']=_0x369625,_0x910cbe['_isAttached']=!_0x266743||_0x266743['isAttached'],_0x910cbe['isAttached']=()=>_0x910cbe['_isAttached'],this['_diffRoots']['set'](_0x369625,_0x910cbe),this['_diffRootsAttributes']['set'](_0x369625,_0x34f447);const _0x4a839d=this['_makeIdsRoot'](_0x910cbe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x369625,_0x4a839d),_0xdca7f4['set'](_0x369625,_0x910cbe['isAttached']()?_0x34f447:{});for(const [_0x5c6e6c,_0x50e0f4]of _0x910cbe['markers']){if(!_0x5c6e6c['startsWith']('revision:'))continue;const _0x11539c=_0x5c6e6c['split'](':')[0x2];for(const _0x9cd516 of _0x50e0f4['getWalker']({'singleCharacters':!0x0})){const _0x3b7557=this['_getVidAttributeName'](_0x9cd516),_0x683937=this['_revisionId']++,_0x2f392d='elementEnd'==_0x9cd516['type']?_0x9cd516['previousPosition']['path']['slice'](0x0,-0x1):_0x9cd516['previousPosition']['path'];_0x4a839d['getNodeByPath'](_0x2f392d)['_setAttribute'](_0x3b7557,_0x683937),this['_touched']['set'](_0x683937,{'userId':_0x11539c});}}for(const _0x530f70 of this['editor']['model']['createRangeIn'](_0x910cbe)['getWalker']({'singleCharacters':!0x0})){const _0x3a4b6d=this['_getVidAttributeName'](_0x530f70),_0x203153='elementEnd'==_0x530f70['type']?_0x530f70['previousPosition']['path']['slice'](0x0,-0x1):_0x530f70['previousPosition']['path'],_0x5af79d=_0x4a839d['getNodeByPath'](_0x203153);_0x5af79d['getAttribute'](_0x3a4b6d)>0x0||_0x5af79d['_setAttribute'](_0x3a4b6d,_0x23d3b7[_0xae20d5++]);}for(const [_0x425d42,_0x2bdbfe]of _0x910cbe['markers'])_0x425d42['startsWith']('revision:')||this['_markers']['set'](_0x425d42,_0x2bdbfe);}const _0x5ba4d3=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5ba4d3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5ba4d3,0x1));const _0x565d56=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x565d56),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x565d56,0x1));const _0x587c9f=Array['from'](this['_diffRoots'])['map'](([_0x8f05b4,_0x16dfc8])=>[_0x8f05b4,x(_0x16dfc8)]);this['_saveMetaData'](this['_lastTo'],_0x587c9f,this['_markers'],_0xdca7f4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d552d,_0xded65a,_0xc447fe,_0x24f639){const _0x320d0b=new Map(_0xded65a),_0x56c6f7=new Map(_0x178dd2(_0x24f639)),_0x490cf1=new Map();for(const [_0xcca398,_0x21a11a]of _0xc447fe)_0x490cf1['set'](_0xcca398,{'start':_0x21a11a['start']['clone'](),'end':_0x21a11a['end']['clone'](),'rootName':_0x21a11a['root']['rootName']});this['_savedMetaData']['set'](_0x5d552d,{'roots':_0x320d0b,'markers':_0x490cf1,'rootsAttributes':_0x56c6f7});}['_removeMetaData'](_0x1a221d){this['_savedMetaData']['delete'](_0x1a221d);}['_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'](_0xd7c5a,_0x4b4b56=null){let _0x2751bd=null;_0xd7c5a['is']('documentFragment')||(_0x2751bd=new _0x73e198(_0xd7c5a['name'],{'vid_start':null===_0x4b4b56?this['_revisionId']++:_0x4b4b56++}));const _0x1f2d29=[];for(const _0x54e676 of _0xd7c5a['getChildren']())if(_0x54e676['is']('element')){_0x1f2d29['push'](this['_makeIdsRoot'](_0x54e676,_0x4b4b56));const _0x4551c5=_0x1f2d29[_0x1f2d29['length']-0x1];null!==_0x4b4b56&&(_0x4b4b56=_0x4551c5['is']('element','$text')?_0x4551c5['getAttribute']('vid')+0x1:_0x4551c5['getAttribute']('vid_end')+0x1);}else{for(let _0x2c93da=0x0;_0x2c93da<_0x54e676['offsetSize'];_0x2c93da++)_0x1f2d29['push'](new _0x73e198('$text',{'vid':null===_0x4b4b56?this['_revisionId']++:_0x4b4b56++}));}if(_0xd7c5a['is']('documentFragment')){const _0x4670a8=N(_0xd7c5a['rootName']);return _0x4670a8['_insertChild'](0x0,_0x1f2d29),_0x4670a8;}return _0x2751bd['_setAttribute']('vid_end',null===_0x4b4b56?this['_revisionId']++:_0x4b4b56++),_0x2751bd['_insertChild'](0x0,_0x1f2d29),_0x2751bd;}['_calculateMetaData'](_0x4aaf0e,_0x8561a,_0x3dc7b2){this['_reset']();const {roots:_0xe24ed0,markers:_0x1ae469,rootsAttributes:_0x3db507}=this['_savedMetaData']['get'](_0x4aaf0e);this['_baseRoots']=new Map(_0xe24ed0),this['_baseRootsAttributes']=new Map(_0x178dd2(_0x3db507));for(const [_0x47a003,_0x30759a]of this['_baseRoots'])if('$graveyard'!==_0x47a003&&(this['_diffRoots']['set'](_0x47a003,x(_0x30759a)),this['_diffRootsAttributes']=new Map(_0x178dd2(_0x3db507)),_0x3dc7b2)){const _0x2efe2d=this['_revisionId'];this['_idsRoots']['set'](_0x47a003,this['_makeIdsRoot'](_0x30759a)),this['_baseIdsRoots']['set'](_0x47a003,this['_makeIdsRoot'](_0x30759a,_0x2efe2d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3dc7b2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24e526,_0x2afb6a]of _0x1ae469){const _0xbb6888=this['_baseRoots']['get'](_0x2afb6a['rootName']),_0x505bde=this['_diffRoots']['get'](_0x2afb6a['rootName']),_0x19c1c7=new _0x22d384(this['_fixPosition'](_0x2afb6a['start'],_0xbb6888),this['_fixPosition'](_0x2afb6a['end'],_0xbb6888)),_0xb5ad07=this['_fixRange'](_0x19c1c7,_0x505bde);_0xbb6888['markers']['set'](_0x24e526,_0x19c1c7),this['_markers']['set'](_0x24e526,_0xb5ad07);}this['_applyOperations'](_0x4aaf0e,_0x8561a,_0x3dc7b2);}['_applyOperations'](_0x117e42,_0x4dd7b4,_0xb23c76){for(const _0x2d3943 of this['source']['getOperations'](_0x117e42,_0x4dd7b4))this['_handleOperation'](_0x2d3943,_0xb23c76);for(const _0x23b641 of this['_diffRoots']['values']())_0x23b641['markers']['clear']();for(const [_0x5110b1,_0x3e3a1a]of this['_markers']){this['_diffRoots']['get'](_0x3e3a1a['root']['rootName'])['markers']['set'](_0x5110b1,_0x3e3a1a['clone']());}const _0x34f218=new Map(),_0x331b46=new Map();for(const [_0x505621,_0x1e1e58]of this['_diffRoots'])_0x34f218['set'](_0x505621,x(_0x1e1e58)),_0x331b46['set'](_0x505621,this['_diffRootsAttributes']['get'](_0x505621));this['_saveMetaData'](_0x4dd7b4,_0x34f218,this['_markers'],_0x331b46);}['_getPreviousFrom'](_0x5711d4){const _0x1bec6b=Array['from'](this['_savedMetaData']['keys']());_0x1bec6b['sort']((_0xccc345,_0x563f36)=>_0xccc345-_0x563f36),_0x1bec6b['reverse']();for(const _0x183c0a of _0x1bec6b)if(_0x183c0a<_0x5711d4)return _0x183c0a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x15ae23,_0x1badc4){const _0x46e953=Array['from'](_0x1badc4['markers'])['map'](([_0x573060,_0x46d14c])=>[_0x573060,this['_fixRange'](_0x46d14c,_0x15ae23)]);_0x15ae23['markers']=new Map(_0x46e953);}['_transformMarkers'](_0x335867){for(const _0x484f3f of this['_markers']['values']()){const _0x1b0f31=_0x484f3f['getTransformedByOperation'](_0x335867),_0x2744af=_0x22d384['_createFromRanges'](_0x1b0f31);_0x484f3f['start']=_0x2744af['start'],_0x484f3f['end']=_0x2744af['end'];}}['_handleOperation'](_0x4da1d9,_0x1872a0){if('addRoot'!=_0x4da1d9['type']&&'detachRoot'!=_0x4da1d9['type']){if('insert'==_0x4da1d9['type']){const _0x28545c=_0x4da1d9['position']['root']['rootName'];this['_diffRoots']['has'](_0x28545c)||(this['_diffRoots']['set'](_0x28545c,N(_0x28545c,!0x0)),this['_diffRootsAttributes']['set'](_0x28545c,{}),_0x1872a0&&this['_idsRoots']['set'](_0x28545c,N(_0x28545c,!0x0)));}else{if('addRootAttribute'==_0x4da1d9['type']||'removeRootAttribute'==_0x4da1d9['type']||'changeRootAttribute'==_0x4da1d9['type'])return void this['_handleRootAttributeOperation'](_0x4da1d9);'marker'==_0x4da1d9['type']&&this['_handleMarkerOperation'](_0x4da1d9);}if('marker'!==_0x4da1d9['type']){const _0x102830=this['_cloneOperation'](_0x4da1d9,this['_diffRoots']);_0x102830['_execute'](),this['_transformMarkers'](_0x102830);}if(_0x1872a0)switch(_0x4da1d9['type']){case'insert':this['_handleInsertOperation'](_0x4da1d9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4da1d9);break;case'merge':this['_handleMergeOperation'](_0x4da1d9);break;case'split':this['_handleSplitOperation'](_0x4da1d9);}}else this['_handleRootOperation'](_0x4da1d9,_0x1872a0);}['_cloneOperation'](_0x3fdf22,_0x45ee3e){const _0x521b3a=_0x3fdf22['clone']();return _0x521b3a['_authorId']=_0x3fdf22['_authorId'],this['_fixOperation'](_0x521b3a,_0x45ee3e),_0x521b3a;}['_getBaseVids'](_0x35a653){return _0x35a653['map'](_0x237a62=>{const _0x2ace31=this['_getVidAttributeName'](_0x237a62);return Number(_0x237a62['item']['getAttribute'](_0x2ace31));});}['_generateTape'](_0x5f105f,_0x47d250){if(_0x5f105f['is']('element','$text'))_0x47d250['push']({'item':_0x5f105f,'type':'text'});else{_0x5f105f['is']('element')&&_0x47d250['push']({'item':_0x5f105f,'type':'elementStart'});for(const _0xa30dd6 of _0x5f105f['getChildren']())this['_generateTape'](_0xa30dd6,_0x47d250);_0x5f105f['is']('element')&&_0x47d250['push']({'item':_0x5f105f,'type':'elementEnd'});}return _0x47d250;}['_getState'](){const _0x19ed30=new Map(this['_touched']),_0x12df62=new Map(_0x19ed30),_0x17cae6=new Map(),_0x3d6bb2={'insertions':{},'deletions':{}},_0x484e55={'insertions':{},'deletions':{}},_0x2596e9=new Map(),_0x28b712=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x28b712['delete']('$graveyard');for(const _0x1262a3 of _0x28b712){const _0x1debf7=this['_diffRoots']['get'](_0x1262a3)||N(_0x1262a3,!0x1),_0x31a7eb=this['_baseRoots']['get'](_0x1262a3)||N(_0x1262a3,!0x1);_0x1debf7['isAttached']()||_0x31a7eb['isAttached']()?(_0x3d6bb2['insertions'][_0x1262a3]=x(_0x1debf7),_0x3d6bb2['deletions'][_0x1262a3]=x(_0x31a7eb),this['_copyMarkers'](_0x3d6bb2['deletions'][_0x1262a3],_0x31a7eb),this['_copyMarkers'](_0x3d6bb2['insertions'][_0x1262a3],_0x1debf7),_0x484e55['insertions'][_0x1262a3]=this['_generateTape'](this['_idsRoots']['get'](_0x1262a3),[]),_0x484e55['deletions'][_0x1262a3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1262a3)||N(_0x1262a3,!0x1),[])):_0x28b712['delete'](_0x1262a3);}for(const _0x55a6dd of _0x28b712){const _0x4429d3=_0x484e55['insertions'][_0x55a6dd];for(const _0x5a9d99 of _0x4429d3){const _0x864384=this['_getVidAttributeName'](_0x5a9d99),_0x4f422c=_0x5a9d99['item']['getAttribute'](_0x864384);_0x12df62['delete'](_0x4f422c),_0x4f422c>=this['_startingRevisionId']&&_0x17cae6['set'](_0x4f422c,_0x19ed30['get'](_0x4f422c));}}for(const _0x5bdcca of _0x28b712){const _0x2d008d=_0x484e55['insertions'][_0x5bdcca],_0x296da0=this['_getBaseVids'](_0x484e55['deletions'][_0x5bdcca]);let _0x55128d=0x0;for(const _0x16f483 of _0x2d008d){const _0x1f2f9c=this['_getVidAttributeName'](_0x16f483),_0x4eccc9=_0x16f483['item']['getAttribute'](_0x1f2f9c);if(!_0x17cae6['has'](_0x4eccc9)&&!_0x2596e9['has'](_0x4eccc9)){if(_0x12df62['has'](_0x4eccc9))_0x55128d++;else{if(_0x4eccc9!=_0x296da0[_0x55128d]){const _0x4ba8ff=_0x19ed30['get'](_0x4eccc9)||_0x19ed30['get'](_0x296da0[_0x55128d]);for(;_0x4eccc9!=_0x296da0[_0x55128d];)_0x12df62['has'](_0x296da0[_0x55128d])||(_0x2596e9['set'](_0x296da0[_0x55128d],_0x4ba8ff),_0x19ed30['set'](_0x296da0[_0x55128d],_0x4ba8ff)),_0x55128d++;}_0x55128d++;}}}}for(const _0x12b693 of _0x28b712){const _0x59b56f=_0x484e55['insertions'][_0x12b693];for(const _0x2f3452 of _0x59b56f){const _0x1079ac=this['_getVidAttributeName'](_0x2f3452),_0x5d7597=_0x2f3452['item']['getAttribute'](_0x1079ac);if(_0x2596e9['has'](_0x5d7597)){const _0x3a096b=_0x2596e9['get'](_0x5d7597);_0x12df62['has'](_0x5d7597)||_0x12df62['set'](_0x5d7597,{..._0x3a096b}),_0x17cae6['set'](_0x5d7597,{..._0x3a096b});}}}for(const _0x4577b3 of _0x12df62['keys']())_0x4577b3>=this['_startingRevisionId']&&_0x12df62['delete'](_0x4577b3);const _0x255227=new Map();for(const _0x36a2d7 of _0x28b712){let _0x433b2a=_0x484e55['insertions'][_0x36a2d7];for(const _0x511409 of _0x433b2a)if(_0x511409['item']['is']('element','tableCell')){const _0x2eb1c6=this['_getVidAttributeName'](_0x511409),_0xca8b88=_0x511409['item']['getAttribute'](_0x2eb1c6);if(_0x17cae6['has'](_0xca8b88)){const _0x3fd9e1=_0x511409['item']['parent']['parent']['getAttribute']('vid_start'),_0x1afe46=_0x255227['get'](_0x3fd9e1)||new Set();_0x1afe46['add'](_0x17cae6['get'](_0xca8b88)['userId']),_0x255227['set'](_0x3fd9e1,_0x1afe46);}}_0x433b2a=_0x484e55['deletions'][_0x36a2d7];for(const _0x516037 of _0x433b2a)if(_0x516037['item']['is']('element','tableCell')){const _0x213f98=this['_getVidAttributeName'](_0x516037),_0x311102=_0x516037['item']['getAttribute'](_0x213f98);if(_0x12df62['has'](_0x311102)){const _0x2379f3=_0x516037['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c075c=_0x255227['get'](_0x2379f3)||new Set();_0x4c075c['add'](_0x12df62['get'](_0x311102)['userId']),_0x255227['set'](_0x2379f3,_0x4c075c);}}for(const _0x2ec59c of _0x255227['keys']())(_0x17cae6['has'](_0x2ec59c)||_0x12df62['has'](_0x2ec59c))&&_0x255227['delete'](_0x2ec59c);}for(const _0x42f8e5 of _0x28b712){const _0x3ff01e=_0x484e55['insertions'][_0x42f8e5];let _0x57fe1b=null,_0x345fec=null;for(const _0x1e0673 of _0x3ff01e){const _0x28bedc=this['_getVidAttributeName'](_0x1e0673),_0xda34ba=_0x1e0673['item']['getAttribute'](_0x28bedc),_0x255567=_0x255227['get'](_0xda34ba);_0x255567&&'elementStart'==_0x1e0673['type']&&(_0x57fe1b=Array['from'](_0x255567)[0x0],_0x345fec=_0x1e0673['item']['getAttribute']('vid_end')),_0x57fe1b&&(_0x12df62['set'](_0xda34ba,{'userId':_0x57fe1b}),_0x17cae6['set'](_0xda34ba,{'userId':_0x57fe1b})),_0xda34ba==_0x345fec&&(_0x57fe1b=null,_0x345fec=null);}}const _0x3feb89={},_0x250751=new Set();for(const _0x347d46 of _0x28b712){const _0x80c270=_0x3d6bb2['deletions'][_0x347d46],_0x3253a5=_0x3d6bb2['insertions'][_0x347d46];for(const {userId:_0x4429b6}of this['_touchedMarkers']['values']())null!==_0x4429b6&&_0x250751['add'](_0x4429b6);for(const {userId:_0x53ed77}of this['_touchedRoots']['values']())null!==_0x53ed77&&_0x250751['add'](_0x53ed77);this['_markChanges'](_0x3253a5,_0x484e55['insertions'][_0x347d46],_0x17cae6,'insertion',_0x250751),this['_markChanges'](_0x80c270,_0x484e55['deletions'][_0x347d46],_0x12df62,'deletion',_0x250751),_0x3feb89[_0x347d46]={'insertions':this['_prepareViewToSave'](_0x3253a5),'deletions':this['_prepareViewToSave'](_0x80c270),'attachChange':this['_touchedRoots']['get'](_0x347d46)||null,'attributesBefore':_0x178dd2(this['_baseRootsAttributes']['get'](_0x347d46))||{},'attributesAfter':_0x178dd2(this['_diffRootsAttributes']['get'](_0x347d46))};}return{'diffData':_0x3feb89,'authorsIds':Array['from'](_0x250751)};}['_processRootBeforeSave'](_0x2795ed){for(const [,_0x39c7a3]of _0x2795ed['markers']){const _0x50f5c9=_0x39c7a3['start']['getAncestors']()['filter'](_0x206acc=>'tableCell'==_0x206acc['name']);for(const _0x27ef81 of _0x50f5c9)0x1==_0x27ef81['childCount']&&_0x27ef81['getChild'](0x0)['is']('element','paragraph')&&_0x27ef81['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2a49a7){this['_processRootBeforeSave'](_0x2a49a7);const _0x1f2e4f=this['editor']['data']['toView'](_0x2a49a7,{}),_0x36a9f0=Array['from'](_0x1f2e4f['getChildren']())['map'](_0x1db2d7=>this['_getViewJson'](_0x1db2d7));return JSON['stringify'](_0x36a9f0);}['_getViewJson'](_0x3c50d1){if(_0x3c50d1['is']('$text'))return _0x3c50d1['data'];{const _0xbe72a8=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x408f54=_0x3c50d1,_0x11c8a5=this['editor']['data']['htmlProcessor']['domConverter'],_0x1d6051={'type':_0xbe72a8['_getTypeCharForViewElement'](_0x408f54),'name':_0x408f54['name'],'attributes':Array['from'](_0x408f54['getAttributes']()),'children':Array['from'](_0x408f54['getChildren']())['map'](_0x120cc8=>this['_getViewJson'](_0x120cc8))};if(_0x3c50d1['is']('uiElement')&&'$comment'!=_0x3c50d1['name']){const _0x2b3464=_0x3c50d1['render'](_0x11c8a5['domDocument'],_0x11c8a5);_0x1d6051['children']['push'](_0x2b3464['outerHTML']);}else{if(_0x3c50d1['is']('rawElement')){const _0x1f8233=_0x11c8a5['domDocument']['createElement'](_0x408f54['name']);_0x3c50d1['render'](_0x1f8233,_0x11c8a5),_0x1d6051['children']['push'](_0x1f8233['innerHTML']);}}const _0x3227f7=Array['from'](_0x408f54['getCustomProperties']());_0x3227f7['length']>0x0&&(_0x1d6051['customProperties']=_0x3227f7);const _0x240252=_0x408f54['getFillerOffset']();return null!==_0x240252&&(_0x1d6051['fillerOffset']=_0x240252),_0x1d6051;}}['_markChanges'](_0x5b331d,_0x8e59d3,_0x561970,_0x54eeda,_0x2cf50b){let _0x4b1405=null,_0x3c62ee=null,_0x46a6f5=0x0;const _0x5eaa97=this['editor']['model'];for(let _0x513d2d=0x0;_0x513d2d<_0x8e59d3['length'];_0x513d2d++){const _0x56eb00=this['_getVidAttributeName'](_0x8e59d3[_0x513d2d]),_0x12e9dd=_0x8e59d3[_0x513d2d]['item']['getAttribute'](_0x56eb00),_0xfac3a8=_0x561970['get'](_0x12e9dd),_0x5cf8a0=_0x513d2d==_0x8e59d3['length']-0x1;(!_0x4b1405&&_0xfac3a8&&(_0x4b1405=_0xfac3a8,_0x3c62ee=_0x8e59d3[_0x513d2d]),_0x4b1405&&(!_0xfac3a8||_0xfac3a8['userId']!=_0x4b1405['userId']))&&(_0x5c991e(_0xfac3a8,P(_0x3c62ee,_0x5b331d,_0x5eaa97),P(_0x8e59d3[_0x513d2d],_0x5b331d,_0x5eaa97)),_0x4b1405=_0xfac3a8||null,_0x3c62ee=_0xfac3a8?_0x8e59d3[_0x513d2d]:null),_0x4b1405&&_0x5cf8a0&&_0x5c991e(_0xfac3a8,P(_0x3c62ee,_0x5b331d,_0x5eaa97),V(_0x8e59d3[_0x513d2d],_0x5b331d,_0x5eaa97));}function _0x5c991e(_0x433b81,_0x3f0c2f,_0x11d039){const _0x20c2f5=_0x4b1405['userId'],_0x200cf4='revision:'+_0x54eeda+':'+_0x20c2f5+':'+_0x46a6f5++,_0x3d6782=_0x5eaa97['createRange'](_0x3f0c2f,_0x11d039);_0x5b331d['markers']['set'](_0x200cf4,_0x3d6782),null!==_0x20c2f5&&_0x2cf50b['add'](_0x20c2f5);}}['_getVidAttributeName'](_0x437a30){switch(_0x437a30['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x7fd16f,_0x175fe1){_0x7fd16f['baseVersion']=null;for(const _0x40c0d1 in _0x7fd16f){const _0x17bf29=_0x7fd16f[_0x40c0d1];if(_0x17bf29 instanceof _0x569a7d){const _0x2c5f75=_0x175fe1['get'](_0x17bf29['root']['rootName']);_0x7fd16f[_0x40c0d1]=this['_fixPosition'](_0x17bf29,_0x2c5f75);}if(_0x17bf29 instanceof _0x22d384){const _0x14e281=_0x175fe1['get'](_0x17bf29['root']['rootName']);_0x7fd16f[_0x40c0d1]=this['_fixRange'](_0x17bf29,_0x14e281);}'root'===_0x40c0d1&&(_0x7fd16f['root']=_0x175fe1['get'](_0x7fd16f['root']['rootName']));}}['_fixRange'](_0x294225,_0x1383dd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x294225['start'],_0x1383dd),this['_fixPosition'](_0x294225['end'],_0x1383dd));}['_fixPosition'](_0x42f530,_0x13d265){return this['editor']['model']['createPositionFromPath'](_0x13d265,_0x42f530['path'],_0x42f530['stickiness']);}['_handleInsertOperation'](_0x239a7f){const _0x252fcd=this['_idsRoots']['get'](_0x239a7f['position']['root']['rootName']),_0x415cf5=this['_fixPosition'](_0x239a7f['position'],_0x252fcd),_0x137c6f=null===_0x239a7f['_authorId']?null:_0x239a7f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22533f=_0x415cf5['parent'],_0x46be71=this['_revisionId'],_0x209648=[];for(const _0x386e24 of _0x239a7f['nodes'])if(_0x386e24['is']('element'))_0x209648['push'](this['_makeIdsRoot'](_0x386e24));else{for(let _0x358745=0x0;_0x358745<_0x386e24['offsetSize'];_0x358745++)_0x209648['push'](new _0x73e198('$text',{'vid':this['_revisionId']++}));}const _0xa73dc1=this['_revisionId'];for(let _0x4ade44=_0x46be71;_0x4ade44<_0xa73dc1;_0x4ade44++)this['_touched']['set'](_0x4ade44,{'userId':_0x137c6f});_0x22533f['_insertChild'](_0x415cf5['offset'],_0x209648);}['_handleMoveOperation'](_0x4684cc){(_0x4684cc=this['_cloneOperation'](_0x4684cc,this['_idsRoots']))['_execute']();const _0x2b4fd7=null===_0x4684cc['_authorId']?null:_0x4684cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49ecdb=_0x4684cc['getMovedRangeStart'](),_0x22bd22=_0x49ecdb['parent'],_0x553150=_0x49ecdb['offset'];!function _0x421140(_0x21b832,_0x32a5fb,_0x4a55bf,_0x52d633){for(let _0x510d58=_0x4a55bf;_0x510d58<_0x52d633;_0x510d58++){const _0x2625fd=_0x32a5fb['getChild'](_0x510d58);_0x2625fd['is']('element','$text')?_0x21b832['set'](_0x2625fd['getAttribute']('vid'),{'userId':_0x2b4fd7}):(_0x21b832['set'](_0x2625fd['getAttribute']('vid_start'),{'userId':_0x2b4fd7}),_0x421140(_0x21b832,_0x2625fd,0x0,_0x2625fd['childCount']),_0x21b832['set'](_0x2625fd['getAttribute']('vid_end'),{'userId':_0x2b4fd7}));}}(this['_touched'],_0x22bd22,_0x553150,_0x553150+_0x4684cc['howMany']);}['_handleMergeOperation'](_0x58f271){const _0x5a9491=null===(_0x58f271=this['_cloneOperation'](_0x58f271,this['_idsRoots']))['_authorId']?null:_0x58f271['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21b3ca=_0x58f271['targetPosition']['parent'],_0x2d0cda=_0x58f271['sourcePosition']['parent'],_0x29724a=_0x21b3ca['getAttribute']('vid_end'),_0x430f67=_0x2d0cda['getAttribute']('vid_start');_0x21b3ca['_setAttribute']('vid_end',_0x2d0cda['getAttribute']('vid_end')),_0x2d0cda['_setAttribute']('vid_end',_0x29724a),this['_touched']['set'](_0x430f67,{'userId':_0x5a9491}),this['_touched']['set'](_0x29724a,{'userId':_0x5a9491}),_0x58f271['_execute']();}['_handleSplitOperation'](_0x997b70){const _0x138ed3=null===(_0x997b70=this['_cloneOperation'](_0x997b70,this['_idsRoots']))['_authorId']?null:_0x997b70['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c77bc=_0x997b70['graveyardPosition'],_0x3eb9c8=_0x997b70['splitPosition']['parent'];_0x997b70['_execute']();const _0x339930=_0x3eb9c8['getAttribute']('vid_end'),_0xdf6a9a=_0x997b70['insertionPosition']['nodeAfter'];if(_0x3c77bc){const _0x25bec1=_0xdf6a9a['getAttribute']('vid_end'),_0xd67a27=_0x3eb9c8['getAttribute']('vid_end');_0x3eb9c8['_setAttribute']('vid_end',_0x25bec1),_0xdf6a9a['_setAttribute']('vid_end',_0xd67a27),this['_touched']['set'](_0x3eb9c8['getAttribute']('vid_end'),{'userId':_0x138ed3}),this['_touched']['set'](_0xdf6a9a['getAttribute']('vid_start'),{'userId':_0x138ed3});}else{const _0x388d7d=this['_revisionId']++,_0x3e1150=this['_revisionId']++;_0x3eb9c8['_setAttribute']('vid_end',_0x388d7d),_0xdf6a9a['_setAttribute']('vid_start',_0x3e1150),_0xdf6a9a['_setAttribute']('vid_end',_0x339930),this['_touched']['set'](_0x388d7d,{'userId':_0x138ed3}),this['_touched']['set'](_0x3e1150,{'userId':_0x138ed3});}}['_handleMarkerOperation'](_0x5e912a){if(!_0x5e912a['affectsData'])return;const _0x467477=(_0x5e912a=this['_cloneOperation'](_0x5e912a,this['_diffRoots']))['oldRange']?_0x5e912a['oldRange']['root']:null,_0x222eb9=_0x5e912a['newRange']?_0x5e912a['newRange']['root']:null;_0x467477&&this['_markers']['delete'](_0x5e912a['name']),_0x222eb9&&this['_markers']['set'](_0x5e912a['name'],_0x5e912a['newRange']['clone']());const _0x57687b=null===_0x5e912a['_authorId']?null:_0x5e912a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x490ad9=_0x5e912a['name'];if(!this['_touchedMarkers']['has'](_0x490ad9))return void this['_touchedMarkers']['set'](_0x490ad9,{'range':_0x5e912a['oldRange'],'userId':_0x57687b});const _0xa80c2=this['_touchedMarkers']['get'](_0x490ad9),_0x50e2d0=_0xa80c2['range'],_0x47a226=_0x5e912a['newRange'];null==_0x50e2d0&&null==_0x47a226||_0x50e2d0&&_0x47a226&&_0x50e2d0['isEqual'](_0x47a226)?this['_touchedMarkers']['delete'](_0x5e912a['name']):_0xa80c2['userId']=_0x57687b;}['_handleRootOperation'](_0x4e8960,_0xb5e978){this['_diffRoots']['has'](_0x4e8960['rootName'])?this['_diffRoots']['get'](_0x4e8960['rootName'])['_isAttached']=_0x4e8960['isAdd']:(this['_diffRoots']['set'](_0x4e8960['rootName'],N(_0x4e8960['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e8960['rootName'],{}),_0xb5e978&&this['_idsRoots']['set'](_0x4e8960['rootName'],N(_0x4e8960['rootName'],!0x0)));const _0x274939=null===_0x4e8960['_authorId']?null:_0x4e8960['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x524196=this['_touchedRoots']['get'](_0x4e8960['rootName']);_0x524196&&_0x524196['userId']===_0x274939?this['_touchedRoots']['delete'](_0x4e8960['rootName']):this['_touchedRoots']['set'](_0x4e8960['rootName'],{'userId':_0x274939,'isAttached':_0x4e8960['isAdd']});}['_handleRootAttributeOperation'](_0x14085c){const _0x33cf08=this['_diffRootsAttributes']['get'](_0x14085c['root']['rootName']);null===_0x14085c['newValue']?delete _0x33cf08[_0x14085c['key']]:_0x33cf08[_0x14085c['key']]=_0x14085c['newValue'];}}function x(_0x3abf89){const _0x5d59d4=N(_0x3abf89['rootName'],_0x3abf89['isAttached']());for(const _0x1f65fc of _0x3abf89['getChildren']()){const _0x3a6d5e=_0x1f65fc['_clone'](!0x0);_0x5d59d4['_appendChild'](_0x3a6d5e);}return _0x5d59d4;}function N(_0x1bfdd0,_0x5cc347=!0x0){const _0x52d7e8=new _0x4c26e8();return _0x52d7e8['rootName']=_0x1bfdd0,_0x52d7e8['_isAttached']=_0x5cc347,_0x52d7e8['isAttached']=()=>_0x52d7e8['_isAttached'],_0x52d7e8;}function P(_0x3e3afb,_0x253826,_0x18ec02){const _0x4bc231='elementEnd'==_0x3e3afb['type']?_0x18ec02['createPositionAt'](_0x3e3afb['item'],'end'):_0x18ec02['createPositionBefore'](_0x3e3afb['item']);return _0x18ec02['createPositionFromPath'](_0x253826,_0x4bc231['path'],_0x4bc231['stickiness']);}function V(_0x2acf82,_0x72b6da,_0x3d1bfa){const _0xbade0a='elementStart'==_0x2acf82['type']?_0x3d1bfa['createPositionAt'](_0x2acf82['item'],0x0):_0x3d1bfa['createPositionAfter'](_0x2acf82['item']);return _0x3d1bfa['createPositionFromPath'](_0x72b6da,_0xbade0a['path'],_0xbade0a['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x31c68b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x498dd7){super(),this['id']=_0x498dd7['id']||_0xce68bc(),this['author']=_0x498dd7['author'],this['type']=_0x498dd7['type'],this['data']=_0x498dd7['data']||{},this['rootName']=_0x498dd7['rootName'],this['set']('createdAt',_0x498dd7['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(_0x4f496c,_0x9ee36d){this['newRevisionId']=_0x4f496c,this['oldRevisionId']=_0x9ee36d,this['changes']=new _0x1219cc();}['_setChanges'](_0x5c77cb){for(const _0x31cfa5 of _0x5c77cb)this['changes']['add'](_0x31cfa5);}}class l extends _0x2f4856{['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[_0x540fc1,_0x56e4f9,S,$];}constructor(_0x9125d7){super(_0x9125d7),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',(_0x4ba350,_0x41c928,_0x2321ed)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5a1025=>{for(const _0x1ce05c of this['editor']['editing']['view']['document']['roots'])_0x2321ed?_0x5a1025['removeClass']('ck-editor__editable__overlay',_0x1ce05c):_0x5a1025['addClass']('ck-editor__editable__overlay',_0x1ce05c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x23247f=>null!==_0x23247f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7c4558,_0x49d059,_0x2a346)=>_0x7c4558&&_0x2a346?_0x49d059['changes']['getIndex'](_0x2a346):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x418bc8,_0x1d0156)=>_0x418bc8?_0x1d0156['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x56e4f9);}['init'](){const _0x45f6a9=this['editor'],_0x16bb9f=new ot(_0x45f6a9,{'direction':'backward'}),_0x491e9d=new ot(_0x45f6a9,{'direction':'forward'});(_0x45f6a9['commands']['add']('showPreviousChange',_0x16bb9f),_0x45f6a9['commands']['add']('showNextChange',_0x491e9d),_0x45f6a9['commands']['add']('restoreRevision',new nt(_0x45f6a9)),this['on']('change:numberOfChanges',()=>{_0x16bb9f['refresh'](),_0x491e9d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x45f6a9['enableReadOnlyMode']('revision-viewer'),_0x45f6a9['plugins']['has']('WidgetToolbarRepository'))&&_0x45f6a9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2a4eb1){return await this['_utils']['loadRevisionData'](_0x2a4eb1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a4eb1);}async['getRevisionRootsAttributes'](_0x5f4e97){return await this['_utils']['loadRevisionData'](_0x5f4e97,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5f4e97);}async['compare'](_0x322b4c,_0x57663c,_0x153b27=!0x1){if(!this['isEnabled'])return;const _0x2d5f89=this['diff'],_0x59072e=this['repository'],_0x5f55b0='string'==typeof _0x322b4c?_0x59072e['getRevision'](_0x322b4c):_0x322b4c,_0x167c13='string'==typeof _0x57663c?_0x59072e['getRevision'](_0x57663c):_0x57663c,_0x4c4986=_0x5f55b0['id'],_0x3e8896=_0x167c13?_0x167c13['id']:null;if(!_0x153b27&&this['diff']&&this['diff']['newRevisionId']===_0x4c4986&&this['diff']['oldRevisionId']===_0x3e8896)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4c4986,_0x3e8896);const _0x37e66b=this['_getRevisionsRange'](_0x5f55b0,_0x167c13,!0x0)['map'](_0x3d119b=>this['_utils']['loadRevisionData'](_0x3d119b,this['adapter']));return _0x37e66b['push'](new Promise(_0x155b19=>{setTimeout(_0x155b19,0x14);})),Promise['all'](_0x37e66b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d1bad=this['_getDiff'](_0x4c4986,_0x3e8896);for(const _0x55ad0a of _0x2d1bad['changes'])this['_changeIdToChange']['set'](_0x55ad0a['id'],_0x55ad0a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x12d41c=>{for(const _0x2e7d5e of this['editor']['model']['document']['getRootNames']())_0x12d41c['detachRoot'](_0x2e7d5e);for(const _0x12b21d of Object['keys'](_0x2d1bad['model'])){const _0x35a619=_0x12d41c['addRoot'](_0x12b21d);for(const _0x404224 of Object['keys'](_0x2d1bad['attributes'][_0x12b21d]))_0x12d41c['setAttribute'](_0x404224,_0x2d1bad['attributes'][_0x12b21d][_0x404224],_0x35a619);_0x12d41c['insert'](_0x2d1bad['model'][_0x12b21d],_0x35a619,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2d1bad['changes'])),this['isReady']=!0x0;})['catch'](_0x587bd9=>{console['error'](_0x587bd9),this['_cleanUp'](),_0x2d5f89&&(this['diff']=_0x2d5f89),this['isReady']=!0x0;});}['addRevisionData'](_0x1672f6,_0x15e047){const _0x30b4ce=this['repository']['createRevision'](_0x1672f6);return _0x30b4ce['on']('_update',(_0x548414,_0x15254d,_0x596528)=>_0x15e047(_0x15254d,_0x596528,_0x30b4ce)),this['repository']['addRevision'](_0x30b4ce),_0x30b4ce;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x43fcd3=>{for(const _0x3de2b8 of this['editor']['model']['document']['getRootNames']())_0x43fcd3['detachRoot'](_0x3de2b8);});}['_sortAndFilterDiffChanges'](_0x4140bb){const _0x13225d=[],_0x342cc7=new Map();for(const _0x5d707c of this['editor']['model']['document']['getRootNames']()){const _0xd6bb9=this['editor']['editing']['view']['getDomRoot'](_0x5d707c);if(!_0xd6bb9)continue;const _0x387d5d=_0xd6bb9['getClientRects']()['item'](0x0);_0x387d5d&&(_0x13225d['push'](_0x5d707c),_0x342cc7['set'](_0x5d707c,_0x387d5d));}return _0x13225d['sort']((_0x4adbf8,_0x4ed67c)=>{const _0x45ce09=_0x342cc7['get'](_0x4adbf8),_0x4a300c=_0x342cc7['get'](_0x4ed67c);return _0x45ce09['y']-_0x4a300c['y']||_0x45ce09['x']-_0x4a300c['x'];}),(_0x4140bb=_0x4140bb['filter'](_0x1ebb4f=>_0x13225d['includes'](_0x1ebb4f['rootName'])))['sort']((_0x1cb116,_0x5249b5)=>_0x13225d['indexOf'](_0x1cb116['rootName'])-_0x13225d['indexOf'](_0x5249b5['rootName'])),_0x4140bb;}['_makeTape'](_0x2ca160){const _0x534544=Array['from'](_0x2ca160['markers'])['filter'](([_0x12a6a6,_0x14ee77])=>_0x12a6a6['startsWith']('revision:')&&!_0x14ee77['isCollapsed']),_0x3ded9a=Array['from'](this['editor']['model']['createRangeIn'](_0x2ca160)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x534544['length'])for(const _0x2260ef of _0x3ded9a){const [_0x355f88,_0x1029e4]=_0x534544[0x0],[,_0x1182ee,_0x21fbf1]=_0x355f88['split'](':');if(_0x1029e4['end']['isEqual'](_0x2260ef['nextPosition'])&&_0x534544['shift'](),(_0x2260ef['previousPosition']['isEqual'](_0x1029e4['start'])||_0x2260ef['previousPosition']['isAfter'](_0x1029e4['start']))&&('insertion'==_0x1182ee?_0x2260ef['isAdded']={'userId':_0x21fbf1}:'deletion'==_0x1182ee&&(_0x2260ef['isRemoved']={'userId':_0x21fbf1})),0x0==_0x534544['length'])break;}return _0x3ded9a;}['_refreshStartEndIndex'](_0x272b04){const _0x46d40e=new Map();for(let _0x578ac2=0x0;_0x578ac2<_0x272b04['length'];_0x578ac2++)'text'===_0x272b04[_0x578ac2]['type']?(_0x272b04[_0x578ac2]['item']['startIndex']=_0x578ac2,_0x272b04[_0x578ac2]['item']['endIndex']=_0x578ac2):('elementStart'===_0x272b04[_0x578ac2]['type']?_0x272b04[_0x578ac2]['item']['startIndex']=_0x578ac2:'elementEnd'===_0x272b04[_0x578ac2]['type']&&(_0x272b04[_0x578ac2]['item']['endIndex']=_0x578ac2),_0x46d40e['set'](_0x272b04[_0x578ac2]['id'],_0x578ac2));for(const _0xbb12b7 of _0x46d40e['values']())'elementStart'===_0x272b04[_0xbb12b7]['type']?_0x272b04[_0xbb12b7]['item']['endIndex']=_0x46d40e['get'](_0x272b04[_0xbb12b7]['pairId']):'elementEnd'===_0x272b04[_0xbb12b7]['type']&&(_0x272b04[_0xbb12b7]['item']['startIndex']=_0x46d40e['get'](_0x272b04[_0xbb12b7]['pairId']));}['_processTape'](_0x348312){for(let _0x572c74=0x0;_0x572c74<_0x348312['length'];_0x572c74++){if('elementStart'===_0x348312[_0x572c74]['type'])_0x348312[_0x572c74]['item']['startIndex']=_0x572c74;else{if('elementEnd'===_0x348312[_0x572c74]['type']){_0x348312[_0x572c74]['item']['endIndex']=_0x572c74;const _0x24e9d2=_0x348312[_0x572c74]['item']['startIndex'];_0x348312[_0x24e9d2]['pairId']=_0x348312[_0x572c74]['id'],_0x348312[_0x572c74]['pairId']=_0x348312[_0x24e9d2]['id'];}else _0x348312[_0x572c74]['item']['startIndex']=_0x572c74,_0x348312[_0x572c74]['item']['endIndex']=_0x572c74,_0x348312[_0x572c74]['pairId']=null;}_0x348312[_0x572c74]['markersStart']||(_0x348312[_0x572c74]['markersStart']=[],_0x348312[_0x572c74]['markersEnd']=[]);}}['_markInsertions'](_0x5dd036,_0x5d1067){const _0x328ce3=_0x5dd036['filter'](_0x1271ac=>!_0x1271ac['isAdded']);for(let _0x36a1d9=0x0;_0x36a1d9<_0x5d1067['length'];_0x36a1d9++)_0x5d1067[_0x36a1d9]['isAdded']&&(_0x328ce3[_0x36a1d9]['isAdded']=_0x5d1067[_0x36a1d9]['isAdded']);}['_getDiff'](_0x26bf11,_0x3348b0=null){const _0x10b20e=this['repository']['getRevision'](_0x26bf11),_0x2cc409=_0x3348b0?this['repository']['getRevision'](_0x3348b0):null,_0x1b3ad5=this['_getRevisionsRange'](_0x10b20e,_0x2cc409),_0x531354=_0x1b3ad5[_0x1b3ad5['length']-0x1],_0x269a34=new Map(),_0x2162f4={'model':{},'attributes':{},'changes':[]},_0x40aca7=new Set(),_0x4e5c9a=new Map();for(let _0x2db054=_0x1b3ad5['length']-0x1;_0x2db054>=0x0;_0x2db054--){const _0x17c471=_0x1b3ad5[_0x2db054];for(const _0x208ab8 of Object['keys'](_0x17c471['diffData']))if(_0x17c471['diffData'][_0x208ab8]['attachChange']){const _0x557479=_0x17c471['diffData'][_0x208ab8]['attachChange'];_0x557479['isAttached']?(_0x40aca7['add'](_0x208ab8),_0x4e5c9a['has'](_0x208ab8)&&_0x4e5c9a['get'](_0x208ab8)['userId']==_0x557479['userId']?_0x4e5c9a['delete'](_0x208ab8):_0x4e5c9a['set'](_0x208ab8,_0x557479)):_0x4e5c9a['has'](_0x208ab8)?(_0x40aca7['delete'](_0x208ab8),_0x4e5c9a['delete'](_0x208ab8)):(_0x40aca7['add'](_0x208ab8),_0x4e5c9a['set'](_0x208ab8,_0x557479));}else _0x40aca7['add'](_0x208ab8);}for(const _0x26884d of _0x40aca7){const _0x365915=_0x4e5c9a['has'](_0x26884d)&&!_0x4e5c9a['get'](_0x26884d)['isAttached'];let _0xa9cbfc=_0x365915?_0x1b3ad5['length']-0x1:0x0;const _0x490dff=_0x365915?-0x1:0x1;for(;_0x1b3ad5[_0xa9cbfc];){const _0x4bff8b=_0x1b3ad5[_0xa9cbfc];if(_0x4bff8b['diffData'][_0x26884d]){const _0x3c9d92=_0x365915?_0x4bff8b['diffData'][_0x26884d]['attributesBefore']:_0x4bff8b['diffData'][_0x26884d]['attributesAfter'];_0x2162f4['attributes'][_0x26884d]=_0x3c9d92?_0x178dd2(_0x3c9d92):{};break;}_0xa9cbfc+=_0x490dff;}}for(const _0x1e6725 of _0x1b3ad5){_0x1e6725['model']={};for(const _0x34d370 of _0x1e6725['authors'])_0x269a34['set'](_0x34d370['id'],_0x34d370);for(const _0x54650b of _0x40aca7){const _0x412add=_0x1e6725['diffData'][_0x54650b]?_0x1e6725['diffData'][_0x54650b]['insertions']:'[]',_0x38d011=_0x1e6725['diffData'][_0x54650b]?_0x1e6725['diffData'][_0x54650b]['deletions']:'[]';_0x1e6725['model'][_0x54650b]={'insertions':this['_utils']['_makeModelFromViewString'](_0x412add),'deletions':this['_utils']['_makeModelFromViewString'](_0x38d011)};}}for(const _0x1967eb of _0x40aca7){let _0x4cb80f=null,_0x2f9801=0x0;const _0x4659bb=new Map(Array['from'](_0x10b20e['model'][_0x1967eb]['insertions']['markers'])['filter'](([_0x2cf962])=>!_0x2cf962['startsWith']('revision:')));let _0x35c091=0x0;for(const _0x1ab0bd of _0x1b3ad5){const _0x17c80e=this['_makeTape'](_0x1ab0bd['model'][_0x1967eb]['insertions']);_0x1ab0bd==_0x10b20e?(_0x4cb80f=_0x17c80e,_0x2f9801=_0x4cb80f['length'],_0x4cb80f['forEach'](_0x1a27c7=>{_0x1a27c7['id']=_0x35c091++;}),this['_processTape'](_0x4cb80f)):this['_markInsertions'](_0x4cb80f,_0x17c80e);const _0x1637f5=_0x4cb80f['filter'](_0x588815=>!_0x588815['isAdded'])['map'](_0xcd772a=>_0xcd772a['id']);let _0x4f800f=0x0;const _0xc2beed=this['_makeTape'](_0x1ab0bd['model'][_0x1967eb]['deletions']);_0xc2beed['forEach'](_0x40e87d=>{_0x40e87d['isRemoved']?_0x40e87d['id']=_0x2f9801++:_0x40e87d['id']=_0x1637f5[_0x4f800f++];}),this['_processTape'](_0xc2beed),this['_setDistance'](_0x4cb80f,'isAdded'),this['_setDistance'](_0xc2beed,'isRemoved'),_0x1ab0bd==_0x10b20e&&this['_markMarkers'](_0x4cb80f,_0x4659bb),_0x4cb80f=this['_joinTapes'](_0x4cb80f,_0xc2beed),this['_refreshStartEndIndex'](_0x4cb80f),this['_setDistance'](_0x4cb80f,'isRemoved');}_0x4cb80f=_0x4cb80f['filter'](_0xb585e0=>!(_0xb585e0['isAdded']&&_0xb585e0['isRemoved']));const _0x1ead47=new Map(_0x531354['model'][_0x1967eb]['deletions']['markers']),_0x31c63e=new Set(_0x4659bb['keys']());for(const _0x334bc8 of _0x1ead47['keys']())_0x31c63e['delete'](_0x334bc8);this['_markSuggestions'](_0x4cb80f,_0x31c63e),this['_fixObsoleteTags'](_0x4cb80f),_0x4cb80f=this['_removeMissingPairs'](_0x4cb80f),_0x4cb80f=this['_markMismatchedRemovedTags'](_0x4cb80f),_0x4cb80f=this['_removeUnsupportedChanges'](_0x4cb80f);const {root:_0xc5a16c,changes:_0x46ab1b}=this['_makeModelFromTape'](_0x4cb80f,_0x269a34,_0x1967eb);_0x2162f4['model'][_0x1967eb]=_0xc5a16c;const _0x14b0df=_0x4e5c9a['get'](_0x1967eb);if(_0x14b0df){const _0x12b32a=_0x269a34['get'](_0x14b0df['userId']),_0x443f55=new G({'author':_0x12b32a,'type':_0x14b0df['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1967eb});_0x46ab1b['unshift'](_0x443f55),_0x2162f4['attributes'][_0x1967eb]['revisionHistoryAttachChange']=_0x443f55['id'];}_0x2162f4['changes']=_0x2162f4['changes']['concat'](_0x46ab1b);}return _0x2162f4;}['_markMarkers'](_0xd269a6,_0x4e51d1){for(let _0x3dcc93=0x0;_0x3dcc93<_0xd269a6['length'];_0x3dcc93++)for(const [_0x29c4f4,_0x10767b]of _0x4e51d1)!_0x10767b['isCollapsed']&&_0x10767b['start']['isEqual'](_0xd269a6[_0x3dcc93]['previousPosition'])&&_0xd269a6[_0x3dcc93]['markersStart']['push'](_0x29c4f4),_0x10767b['end']['isEqual'](_0xd269a6[_0x3dcc93]['nextPosition'])&&_0xd269a6[_0x3dcc93]['markersEnd']['push'](_0x29c4f4);}['_joinTapes'](_0x1c9018,_0x609bdd){let _0x214d82=[],_0x4e3233=0x0,_0x67da7b=0x0;for(;_0x4e3233<_0x1c9018['length']||_0x67da7b<_0x609bdd['length'];){const _0x1044d5=_0x1c9018[_0x4e3233]||{},_0x105d6c=_0x609bdd[_0x67da7b]||{};if(_0x1044d5['id']==_0x105d6c['id'])_0x4e3233++,_0x67da7b++,_0x214d82['push'](_0x1044d5);else{if(_0x105d6c['isRemoved']&&_0x1044d5['isAdded']){const {commonTape:_0x51d310,iEnd:_0xe558f3,jEnd:_0x31b88b}=this['_threeWayMerge'](_0x1c9018,_0x4e3233,_0x609bdd,_0x67da7b);_0x214d82=_0x214d82['concat'](_0x51d310),_0x4e3233=_0xe558f3,_0x67da7b=_0x31b88b;}else _0x105d6c['isRemoved']?(_0x67da7b++,_0x214d82['push'](_0x105d6c)):(_0x4e3233++,_0x214d82['push'](_0x1044d5));}}return _0x214d82;}['_markSuggestions'](_0x5cb6ee,_0x1cd8be){const _0x340a92=[];for(let _0xcf4c8f=0x0;_0xcf4c8f<_0x5cb6ee['length'];_0xcf4c8f++){for(let _0x3122ba=0x0;_0x3122ba<_0x5cb6ee[_0xcf4c8f]['markersStart']['length'];_0x3122ba++){const _0x53b571=_0x5cb6ee[_0xcf4c8f]['markersStart'][_0x3122ba];if(!_0x1cd8be['has'](_0x53b571))continue;const {group:_0x5975da,type:_0xfe6d09,authorId:_0x25e302}=_0x5dad1d(_0x53b571);'revision-suggestion'!=_0x5975da||'insertion'!=_0xfe6d09&&'deletion'!=_0xfe6d09||(_0x340a92['unshift']({'type':_0xfe6d09,'name':_0x53b571,'userId':_0x25e302}),_0x5cb6ee[_0xcf4c8f]['markersStart']['splice'](_0x3122ba,0x1),_0x3122ba--);}_0x56fb25(_0x5cb6ee[_0xcf4c8f]);for(let _0x12b02e=0x0;_0x12b02e<_0x5cb6ee[_0xcf4c8f]['markersEnd']['length'];_0x12b02e++){const _0x571838=_0x5cb6ee[_0xcf4c8f]['markersEnd'][_0x12b02e];if(!_0x1cd8be['has'](_0x571838))continue;const {group:_0x59ed7e,type:_0x52cad5}=_0x5dad1d(_0x571838);if('revision-suggestion'!=_0x59ed7e||'insertion'!=_0x52cad5&&'deletion'!=_0x52cad5)continue;_0x5cb6ee[_0xcf4c8f]['markersEnd']['splice'](_0x12b02e,0x1),_0x12b02e--;const _0x539ccf=_0x340a92['findIndex'](_0x360ab0=>_0x360ab0['name']==_0x571838);_0x539ccf>-0x1&&_0x340a92['splice'](_0x539ccf,0x1);}}function _0x5dad1d(_0x5ca4a1){const _0xe482cf=_0x5ca4a1['split'](':');return{'group':_0xe482cf[0x0],'type':_0xe482cf[0x1],'subType':_0xe482cf['length']>=0x5?_0xe482cf[0x2]:null,'id':_0xe482cf['length']<0x5?_0xe482cf[0x2]:_0xe482cf[0x3],'authorId':_0xe482cf['length']<0x5?_0xe482cf[0x3]:_0xe482cf[0x4],'markerCount':0x6==_0xe482cf['length']?_0xe482cf[0x5]:null};}function _0x56fb25(_0x4843ff){for(let _0x26c672=0x0;_0x26c672<_0x340a92['length'];_0x26c672++){if(_0x4843ff['isAdded']&&'insertion'==_0x340a92[_0x26c672]['type']&&_0x4843ff['isAdded']['userId']==_0x340a92[_0x26c672]['userId'])return _0x4843ff['isAddSuggestion']=_0x340a92[_0x26c672],void delete _0x4843ff['isAdded'];if(!_0x4843ff['isAdded']&&!_0x4843ff['isRemoved']&&'deletion'==_0x340a92[_0x26c672]['type'])return void(_0x4843ff['isRemoveSuggestion']=_0x340a92[_0x26c672]);}}}['_setDistance'](_0x3f2a54,_0x54125a){let _0x523be4=0x0,_0x1a40d5=!0x1;const _0x12d4dd=new Map();for(const _0x450582 of _0x3f2a54)_0x450582[_0x54125a]?_0x1a40d5&&(_0x523be4++,_0x1a40d5=!0x1):(_0x523be4++,_0x1a40d5=!0x0),_0x12d4dd['set'](_0x450582['id'],_0x523be4);for(let _0x480eff=0x0;_0x480eff<_0x3f2a54['length'];_0x480eff++){if('isRemoved'==_0x54125a&&_0x3f2a54[_0x480eff]['isAdded']||'isAdded'==_0x54125a&&_0x3f2a54[_0x480eff]['isRemoved'])continue;if('text'==_0x3f2a54[_0x480eff]['type']){_0x3f2a54[_0x480eff]['distance']=0x0;continue;}const _0x361038=_0x12d4dd['get'](_0x3f2a54[_0x480eff]['pairId']),_0x485020=_0x12d4dd['get'](_0x3f2a54[_0x480eff]['id']);_0x3f2a54[_0x480eff]['distance']=_0x361038-_0x485020;}}['_getRevisionsRange'](_0x20433e,_0x498f0c,_0x3178e1=!0x1){const _0x1107ff=[];let _0xb406af=this['repository']['getIndex'](_0x20433e),_0x9c830f=this['repository']['getIndex'](_0x498f0c);for(-0x1==_0x9c830f&&(_0x9c830f=this['repository']['_revisions']['length'],_0x3178e1=!0x1);_0xb406af<_0x9c830f;)_0x1107ff['push'](this['repository']['getRevision'](_0xb406af)),_0xb406af++;return _0x3178e1&&_0x1107ff['push'](this['repository']['getRevision'](_0xb406af)),_0x1107ff;}['_threeWayMerge'](_0x4e8c68,_0x3f2d79,_0x4cdfcf,_0x235f6b){const _0x42ef12=this['editor']['model']['schema'];let _0x1e12e6=_0x3f2d79;for(;_0x4e8c68[_0x1e12e6]&&_0x4e8c68[_0x1e12e6]['isAdded'];)_0x1e12e6++;let _0x2692ed=_0x235f6b;for(;_0x4cdfcf[_0x2692ed]&&_0x4cdfcf[_0x2692ed]['isRemoved'];)_0x2692ed++;_0x4f0991(_0x4e8c68,_0x3f2d79,_0x1e12e6),_0x4f0991(_0x4cdfcf,_0x235f6b,_0x2692ed);const _0x1375c7=_0x4cdfcf['slice'](_0x235f6b,_0x2692ed)['concat'](_0x4e8c68['slice'](_0x3f2d79,_0x1e12e6));return _0x1375c7['sort']((_0x3586b1,_0x4df0ae)=>_0x3586b1['side']!=_0x4df0ae['side']?_0x3586b1['side']-_0x4df0ae['side']:_0x3586b1['level']!=_0x4df0ae['level']?_0x3586b1['level']-_0x4df0ae['level']:_0x3586b1['distance']!=_0x4df0ae['distance']?_0x4df0ae['distance']-_0x3586b1['distance']:!!_0x3586b1['isAdded']!=!!_0x4df0ae['isAdded']?-0x1==_0x3586b1['side']||0x0==_0x3586b1['side']?_0x3586b1['isAdded']?-0x1:0x1:_0x3586b1['isAdded']?0x1:-0x1:_0x3586b1['index']-_0x4df0ae['index']),{'commonTape':_0x1375c7,'iEnd':_0x1e12e6,'jEnd':_0x2692ed};function _0x4f0991(_0x211483,_0x9c04a2,_0x14f7e6){let _0xe7ce8c=-0x1,_0x566903=Number['POSITIVE_INFINITY'],_0x1d5360=!0x0;for(let _0x260bb6=_0x9c04a2;_0x260bb6<_0x14f7e6;_0x260bb6++)if(_0x42ef12['isInline'](_0x211483[_0x260bb6]['item'])||(_0x1d5360=!0x1),_0x211483[_0x260bb6]['item']['startIndex']<_0x9c04a2&&(_0xe7ce8c=_0x260bb6),_0x211483[_0x260bb6]['item']['endIndex']>=_0x14f7e6){_0x566903=_0x260bb6;break;}_0x1d5360&&(_0xe7ce8c=_0x14f7e6-0x1);for(let _0xb9111c=_0x9c04a2;_0xb9111c<_0x14f7e6;_0xb9111c++)_0x211483[_0xb9111c]['side']=_0xb9111c<=_0xe7ce8c?-0x1:_0xb9111c<_0x566903?0x0:0x1,_0x211483[_0xb9111c]['index']=_0xb9111c;let _0x5afbd2=0x0;for(let _0xaea84=_0x9c04a2;_0xaea84<=_0xe7ce8c;_0xaea84++)0x0==_0x211483[_0xaea84]['distance']?_0x211483[_0xaea84]['level']=_0x5afbd2:(_0x5afbd2++,_0x211483[_0xaea84]['level']=_0x5afbd2,_0x5afbd2++);for(let _0x1b0db0=_0x9c04a2;_0x1b0db0<_0x14f7e6;_0x1b0db0++)0x0==_0x211483[_0x1b0db0]['side']&&(_0x211483[_0x1b0db0]['level']=_0x5afbd2);_0x5afbd2=0x0;for(let _0x115aa3=_0x14f7e6-0x1;_0x115aa3>=_0x566903;_0x115aa3--)0x0==_0x211483[_0x115aa3]['distance']?_0x211483[_0x115aa3]['level']=_0x5afbd2:(_0x5afbd2--,_0x211483[_0x115aa3]['level']=_0x5afbd2,_0x5afbd2--);}}['_fixObsoleteTags'](_0x42ce8f){const _0x387085=new Map(),_0x37ddeb=this['editor']['model']['schema'];for(let _0x3a1e0f=0x1;_0x3a1e0f<_0x42ce8f['length'];_0x3a1e0f++){let _0x3a86ac,_0x2b6ea9,_0x15847c;const _0x1fab2f=_0x42ce8f[_0x3a1e0f],_0x35d05e=_0x42ce8f[_0x3a1e0f-0x1];if('text'==_0x1fab2f['type'])continue;if(_0x1fab2f['type']!=_0x35d05e['type'])continue;if(!_0x37ddeb['isBlock'](_0x35d05e['item'])||_0x37ddeb['isLimit'](_0x35d05e['item']))continue;if(!_0x37ddeb['isBlock'](_0x1fab2f['item'])||_0x37ddeb['isLimit'](_0x1fab2f['item']))continue;if((_0x42ce8f[_0x3a1e0f]['isAdded']||_0x42ce8f[_0x3a1e0f]['isAddSuggestion'])&&_0x42ce8f[_0x3a1e0f-0x1]['isRemoved'])_0x3a86ac=_0x42ce8f[_0x3a1e0f],_0x2b6ea9=_0x42ce8f[_0x3a1e0f-0x1],_0x15847c=_0x3a1e0f-0x1;else{if(!_0x42ce8f[_0x3a1e0f]['isRemoved']||!_0x42ce8f[_0x3a1e0f-0x1]['isAdded']&&!_0x42ce8f[_0x3a1e0f-0x1]['isAddSuggestion'])continue;_0x3a86ac=_0x42ce8f[_0x3a1e0f-0x1],_0x2b6ea9=_0x42ce8f[_0x3a1e0f],_0x15847c=_0x3a1e0f;}const _0x55abfa=_0x3a86ac['level']==_0x2b6ea9['level'],_0x23c3ac=Math['abs'](_0x3a86ac['level'])<Math['abs'](_0x2b6ea9['level'])&&0x0==_0x2b6ea9['distance'];(_0x55abfa||_0x23c3ac)&&(_0x387085['set'](_0x2b6ea9['id'],_0x3a86ac['id']),_0x42ce8f['splice'](_0x15847c,0x1),_0x3a1e0f--,_0x3a86ac['isAdded']=!0x1);}for(let _0x3f8958=0x0;_0x3f8958<_0x42ce8f['length'];_0x3f8958++)_0x387085['has'](_0x42ce8f[_0x3f8958]['pairId'])&&(_0x42ce8f[_0x3f8958]['pairId']=_0x387085['get'](_0x42ce8f[_0x3f8958]['pairId']));}['_removeMissingPairs'](_0x64d1cc){const _0x1aa06e=new Set(_0x64d1cc['map'](_0x1db488=>_0x1db488['id']));for(let _0x1c4511=0x0;_0x1c4511<_0x64d1cc['length'];_0x1c4511++)_0x1aa06e['has'](_0x64d1cc[_0x1c4511]['pairId'])||0x0==_0x64d1cc[_0x1c4511]['distance']||(_0x64d1cc[_0x1c4511]['isIncorrect']=!0x0);return _0x64d1cc['filter'](_0x5daba3=>!_0x5daba3['isIncorrect']);}['_markMismatchedRemovedTags'](_0xf98795){const _0x3986a1=new Set();for(let _0x554a33=0x0;_0x554a33<_0xf98795['length'];_0x554a33++){if(_0x3986a1['has'](_0xf98795[_0x554a33]['id'])&&_0xf98795[_0x554a33]['isRemoved']&&(_0xf98795[_0x554a33]['isIncorrect']=!0x0),_0xf98795[_0x554a33]['isIncorrect'])continue;if(0x0==_0xf98795[_0x554a33]['distance'])continue;if('elementStart'!=_0xf98795[_0x554a33]['type'])continue;if(null==_0xf98795[_0x554a33]['pairId'])continue;let _0x110c9a=_0x554a33+0x1,_0x285a09=0x0;for(;_0xf98795[_0x110c9a]['id']!=_0xf98795[_0x554a33]['pairId'];)'elementStart'==_0xf98795[_0x110c9a]['type']?_0x285a09++:'elementEnd'==_0xf98795[_0x110c9a]['type']&&_0x285a09--,_0x110c9a++;if(0x0!=_0x285a09){if(_0xf98795[_0x554a33]['isRemoved'])_0xf98795[_0x554a33]['isIncorrect']=!0x0;else{for(;_0x110c9a!=_0x554a33;)_0xf98795[_0x110c9a]['isRemoved']&&0x0!=_0xf98795[_0x110c9a]['distance']&&(_0xf98795[_0x110c9a]['isIncorrect']=!0x0,_0x3986a1['add'](_0xf98795[_0x110c9a]['pairId'])),_0x110c9a--;}}}return _0xf98795['filter'](_0x371b35=>!_0x371b35['isIncorrect']);}['_removeUnsupportedChanges'](_0x49a486){const _0x4f014b=this['editor']['model']['schema'];for(let _0x26861b=0x0;_0x26861b<_0x49a486['length'];_0x26861b++){if(!(_0x49a486[_0x26861b]['isAdded']||_0x49a486[_0x26861b]['isAddSuggestion']||_0x49a486[_0x26861b]['isRemoved']||_0x49a486[_0x26861b]['isRemoveSuggestion']))continue;if(0x0==_0x49a486[_0x26861b]['distance'])continue;const _0x2c02b0=_0x49a486[_0x26861b]['item'];_0x4f014b['isBlock'](_0x2c02b0)||_0x4f014b['isLimit'](_0x2c02b0)||(_0x49a486[_0x26861b]['isAdded']&&delete _0x49a486[_0x26861b]['isAdded'],_0x49a486[_0x26861b]['isAddSuggestion']&&delete _0x49a486[_0x26861b]['isAddSuggestion'],_0x49a486[_0x26861b]['isRemoveSuggestion']&&delete _0x49a486[_0x26861b]['isRemoveSuggestion'],_0x49a486[_0x26861b]['isRemoved']&&(_0x49a486[_0x26861b]['isIncorrect']=!0x0));}return _0x49a486['filter'](_0x576ffb=>!_0x576ffb['isIncorrect']);}['_makeModelFromTape'](_0x34b22b,_0x253e0d,_0x4d81fc){const _0x42154c=new _0x4c26e8(),_0x155d64=[],_0x28b255=new Map(),_0x35c25a=this['editor']['model'],_0x102d79=_0x35c25a['schema'],_0x1c66a9=[_0x42154c],_0x571613={},_0x5612ff={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x46b260=null;const _0x38251d=[0x0];for(let _0x1c6f4a=0x0;_0x1c6f4a<_0x34b22b['length'];_0x1c6f4a++)if('elementStart'===_0x34b22b[_0x1c6f4a]['type']){_0x34b22b[_0x1c6f4a]['previousPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d);const _0xc88e19=new _0x73e198(_0x34b22b[_0x1c6f4a]['item']['name'],_0x34b22b[_0x1c6f4a]['item']['getAttributes']());_0x1c66a9[0x0]['_appendChild'](_0xc88e19),_0x38251d['push'](0x0),_0x1c66a9['unshift'](_0xc88e19),_0x34b22b[_0x1c6f4a]['nextPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d);}else'elementEnd'===_0x34b22b[_0x1c6f4a]['type']?(_0x1c66a9['shift'](),_0x34b22b[_0x1c6f4a]['previousPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d),_0x38251d['pop'](),_0x38251d[_0x38251d['length']-0x1]++,_0x34b22b[_0x1c6f4a]['nextPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d)):(_0x34b22b[_0x1c6f4a]['previousPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d),_0x46b260?_0x46b260['_data']+=_0x34b22b[_0x1c6f4a]['item']['data']:_0x46b260=new _0x3e6344(_0x34b22b[_0x1c6f4a]['item']['data'],_0x34b22b[_0x1c6f4a]['item']['getAttributes']()),_0x34b22b[_0x1c6f4a+0x1]&&'text'===_0x34b22b[_0x1c6f4a+0x1]['type']&&_0x446f53(_0x46b260,_0x34b22b[_0x1c6f4a+0x1]['item'])||(_0x1c66a9[0x0]['_appendChild'](_0x46b260),_0x46b260=null),_0x38251d[_0x38251d['length']-0x1]+=_0x34b22b[_0x1c6f4a]['item']['offsetSize'],_0x34b22b[_0x1c6f4a]['nextPosition']=_0x35c25a['createPositionFromPath'](_0x42154c,_0x38251d));for(let _0x326b52=0x0;_0x326b52<_0x34b22b['length'];_0x326b52++){const _0x4ddde0=_0x34b22b[_0x326b52]['previousPosition'],_0x1fc8dd=_0x34b22b[_0x326b52]['nextPosition'];for(const _0x27f583 of _0x34b22b[_0x326b52]['markersStart'])_0x28b255['set'](_0x27f583,{'start':_0x4ddde0,'end':null});_0x4b6539('isRemoveSuggestion',_0x326b52,_0x4ddde0,_0x1fc8dd),_0x4b6539('isAddSuggestion',_0x326b52,_0x4ddde0,_0x1fc8dd),_0x4b6539('isRemoved',_0x326b52,_0x4ddde0,_0x1fc8dd),_0x4b6539('isAdded',_0x326b52,_0x4ddde0,_0x1fc8dd);for(const _0x1b703b of _0x34b22b[_0x326b52]['markersEnd']){const _0x247fa2=_0x28b255['get'](_0x1b703b);_0x247fa2?_0x247fa2['end']=_0x1fc8dd:_0x28b255['set'](_0x1b703b,{'start':_0x1fc8dd,'end':_0x1fc8dd});}}for(const [_0x37460c,_0x5423fa]of _0x28b255){const _0x175174=this['editor']['model']['createRange'](_0x5423fa['start'],_0x5423fa['end']);_0x42154c['markers']['set'](_0x37460c,_0x175174);}return _0x155d64['sort']((_0x366ff0,_0x1ba7ac)=>{const _0x4e3799=_0x42154c['markers']['get']('revision:'+_0x366ff0['id']),_0x2ce52d=_0x42154c['markers']['get']('revision:'+_0x1ba7ac['id']);return _0x4e3799['start']['isBefore'](_0x2ce52d['start'])?-0x1:_0x4e3799['start']['isAfter'](_0x2ce52d['start'])?0x1:_0x4e3799['end']['isBefore'](_0x2ce52d['end'])?-0x1:_0x4e3799['end']['isAfter'](_0x2ce52d['end'])?0x1:'add'===_0x366ff0['type']?-0x1:0x1;}),{'root':_0x42154c,'changes':_0x155d64};function _0x4b6539(_0x214203,_0x4fc37c,_0x33133f,_0x3432c3){const _0x48d9f2=!!_0x34b22b[_0x4fc37c][_0x214203],_0x38030c=_0x48d9f2?_0x34b22b[_0x4fc37c][_0x214203]['userId']:null,_0xfd5909=_0x4fc37c===_0x34b22b['length']-0x1,_0x1fbc3c=_0x5612ff[_0x214203][0x0],_0x35b26e=_0x102d79['isObject'](_0x34b22b[_0x4fc37c]['item']);!_0x571613[_0x214203]&&_0x48d9f2?_0x571613[_0x214203]={'start':_0x33133f,'tapeItem':_0x34b22b[_0x4fc37c],'userId':_0x38030c,'type':_0x214203}:_0x571613[_0x214203]&&!_0x48d9f2?(_0x571613[_0x214203]['end']=_0x33133f,_0x162910(_0x571613[_0x214203]),_0x571613[_0x214203]=null):_0x571613[_0x214203]&&_0x48d9f2&&_0x571613[_0x214203]['userId']!==_0x38030c&&(_0x571613[_0x214203]['end']=_0x33133f,_0x1fbc3c&&_0x1fbc3c['userId']===_0x571613[_0x214203]['userId']||_0x162910(_0x571613[_0x214203]),_0x571613[_0x214203]={'start':_0x33133f,'tapeItem':_0x34b22b[_0x4fc37c],'userId':_0x38030c,'type':_0x214203}),_0x571613[_0x214203]&&_0x35b26e&&('elementStart'!==_0x34b22b[_0x4fc37c]['type']||_0x1fbc3c&&_0x1fbc3c['userId']===_0x38030c||_0x5612ff[_0x214203]['unshift']({'userId':_0x38030c,'object':_0x34b22b[_0x4fc37c]['item'],'change':_0x571613[_0x214203]}),'elementEnd'===_0x34b22b[_0x4fc37c]['type']&&_0x1fbc3c&&_0x1fbc3c['object']===_0x34b22b[_0x4fc37c]['item']&&(_0x5612ff[_0x214203]['shift'](),_0x571613[_0x214203]=_0x1fbc3c['change'])),_0x571613[_0x214203]&&_0xfd5909&&(_0x571613[_0x214203]['end']=_0x3432c3,_0x162910(_0x571613[_0x214203]),_0x571613[_0x214203]=null);}function _0x162910({start:_0x254b25,end:_0x58d984,tapeItem:_0x4e5055,userId:_0x43589e,type:_0x4b4bb9}){const _0x309e23=_0x4e5055['item'],_0x1ec829=_0x35c25a['schema']['isBlock'](_0x309e23)&&!_0x35c25a['schema']['isLimit'](_0x309e23),_0x10dbcd=_0x254b25['nodeAfter']==_0x58d984['parent']&&_0x58d984['isAtStart'];if(_0x1ec829&&_0x10dbcd)return;const _0x1a7aa1=_0x35c25a['createRange'](_0x254b25,_0x58d984),_0x3d236b=_0x253e0d['get'](_0x43589e),_0x2e72fb=new G({'author':_0x3d236b,'type':'isAdded'==_0x4b4bb9||'isAddSuggestion'==_0x4b4bb9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4b4bb9||'isRemoveSuggestion'==_0x4b4bb9},'createdAt':new Date(),'rootName':_0x4d81fc});_0x155d64['push'](_0x2e72fb),_0x42154c['markers']['set']('revision:'+_0x2e72fb['id'],_0x1a7aa1);}function _0x446f53(_0x497b04,_0x5a2c7c){const _0x1496e1=_0x497b04['getAttributes'](),_0x4e66ce=_0x5a2c7c['getAttributes']();for(const _0x427f12 of _0x1496e1){if(_0x427f12[0x1]!==_0x5a2c7c['getAttribute'](_0x427f12[0x0]))return!0x1;_0x4e66ce['next']();}return _0x4e66ce['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5d0042=>{const _0x2ebc9c=_0x5d0042['markerName']['split'](':')[0x1],_0x3906fa=this['_getChangeFromId'](_0x2ebc9c);if(!_0x3906fa)return null;const _0x348a73='add'==_0x3906fa['type']?'insertion':'deletion',_0x116ec1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x348a73];return _0x3906fa['data']['isSuggestion']&&_0x116ec1['push']('ck-suggestion-marker-'+_0x348a73+'-new'),this['activeChange']==_0x3906fa&&_0x116ec1['push']('ck-suggestion-marker--active'),{'classes':_0x116ec1,'attributes':{'data-change-id':_0x2ebc9c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x42d0c2=>{_0x42d0c2['on']('element:pre',(_0x2efc46,_0x18def3,_0x3077be)=>{const _0x34e014=_0x18def3['viewItem']['getChild'](0x0);if(!_0x34e014||!_0x34e014['is']('element','code'))return;if(!_0x3077be['consumable']['consume'](_0x34e014,{'attributes':['vid_start','vid_end']}))return;const _0x23aad6=_0x18def3['modelRange']['start']['nodeAfter'];_0x3077be['writer']['setAttribute']('vid_start',_0x34e014['getAttribute']('vid_start'),_0x23aad6),_0x3077be['writer']['setAttribute']('vid_end',_0x34e014['getAttribute']('vid_end'),_0x23aad6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x260bab=>{_0x260bab['on']('element',(_0x141e6d,_0x1714c8,_0x25960a)=>{if(!_0x25960a['consumable']['consume'](_0x1714c8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1714c8['modelRange']['isCollapsed'])return;const _0x47b784=_0x1714c8['modelRange']['start']['nodeAfter'];_0x47b784['hasAttribute']('vid_start')||_0x47b784['hasAttribute']('vid')||(_0x25960a['writer']['setAttribute']('vid_start',_0x1714c8['viewItem']['getAttribute']('vid_start'),_0x47b784),_0x25960a['writer']['setAttribute']('vid_end',_0x1714c8['viewItem']['getAttribute']('vid_end'),_0x47b784));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x185260=>_0x185260['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e9041,[,_0x1dae00])=>{['vid_start','vid_end','vid']['includes'](_0x1dae00)&&(_0x1e9041['return']=!0x0,_0x1e9041['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4e9d76=>{_0x4e9d76['on']('attribute:vid',(_0x47d585,_0x1c8c44,_0x4380ce)=>{if('\x20'!=_0x1c8c44['item']['data']||_0x1c8c44['item']['parent']['maxOffset']>0x1)return;if(!_0x4380ce['consumable']['consume'](_0x1c8c44['item'],_0x47d585['name']))return;const _0xd683b9=_0x4380ce['writer'],_0x171c42=_0x4380ce['mapper']['toViewRange'](_0x1c8c44['range']);_0xd683b9['wrap'](_0x171c42,_0xd683b9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x94ebb6){const _0xa0e237=_0x94ebb6['plugins']['get']('RevisionViewer');return(_0x9238ca,_0x49bbe9,_0x456735)=>{const _0x1d6464=_0x49bbe9['markerName']['split'](':')[0x1],_0x350cf3=_0xa0e237['_getChangeFromId'](_0x1d6464);if(!_0x350cf3)return null;const _0x3a6e55='add'==_0x350cf3['type']?'split':'merge';if(!_0x456735['consumable']['test'](_0x49bbe9['markerRange'],_0x9238ca['name']))return;const _0x523764=_0x49bbe9['markerRange']['getWalker'](),_0x50d0ad=_0x49bbe9['markerRange']['start'],_0x365545=_0x94ebb6['model']['schema'];let _0x308624=null,_0x3596ce=null,_0x18d9d8=!0x1,_0x2eaa63=!0x1;for(const _0x564255 of _0x523764){const _0x1569b1=_0x564255['item'];_0x18d9d8=_0x18d9d8||_0x365545['isContent'](_0x1569b1);const _0x5909a7=_0x456735['mapper']['toViewElement'](_0x1569b1);if(_0x5909a7&&_0x5909a7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x564255['type']&&(_0x365545['isBlock'](_0x1569b1)&&!_0x365545['isLimit'](_0x1569b1)&&(_0x1569b1['nextSibling']||_0x50d0ad['isAtEnd']?_0x308624&&_0x308624['parent']==_0x1569b1||(_0x308624=_0x1569b1,_0x44c6ba(_0x564255['previousPosition']),_0x2eaa63=!0x0):_0x3596ce=_0x3596ce||_0x564255['previousPosition']));}function _0x44c6ba(_0x4c7329){const _0x5c8a74=_0x456735['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a6e55}),_0x27fca5=_0x456735['mapper']['toViewPosition'](_0x4c7329);_0x350cf3['data']['isSuggestion']&&_0x456735['writer']['addClass']('ck-suggestion-marker-'+_0x3a6e55+'-new',_0x5c8a74),_0xa0e237['activeChange']==_0x350cf3&&_0x456735['writer']['addClass']('ck-suggestion-marker--active',_0x5c8a74),_0x456735['writer']['insert'](_0x27fca5,_0x5c8a74),_0x456735['mapper']['bindElementToMarker'](_0x5c8a74,_0x49bbe9['markerName']);}_0x18d9d8||_0x2eaa63||!_0x3596ce||_0x44c6ba(_0x3596ce);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1266db,_0x158f89,_0x5b1f01)=>{const _0x4a96eb=_0x5b1f01['mapper']['markerNameToElements'](_0x158f89['markerName']);if(_0x4a96eb){for(const _0x33ba94 of _0x4a96eb)(_0x33ba94['hasClass']('ck-suggestion-marker-split')||_0x33ba94['hasClass']('ck-suggestion-marker-merge'))&&(_0x5b1f01['mapper']['unbindElementFromMarkerName'](_0x33ba94,_0x158f89['markerName']),_0x5b1f01['writer']['remove'](_0x33ba94));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x11b321,_0xe660fd,_0x2106b8)=>{const _0x39d7dc=_0xe660fd['markerName']['split'](':')[0x1],_0x4781db=this['_getChangeFromId'](_0x39d7dc);if(!_0x4781db)return null;const _0x11bb07='add'==_0x4781db['type']?'split':'merge';if(_0x2106b8['consumable']['test'](_0xe660fd['markerRange'],_0x11b321['name']))for(const _0x278b7a of _0xe660fd['markerRange']['getItems']()){if(!_0x278b7a['is']('element','softBreak'))continue;const _0x448d84=_0x2106b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11bb07}),_0x59449f=_0x2106b8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x278b7a));_0x4781db['data']['isSuggestion']&&_0x2106b8['writer']['addClass']('ck-suggestion-marker-'+_0x11bb07+'-new',_0x448d84),this['activeChange']==_0x4781db&&_0x2106b8['writer']['addClass']('ck-suggestion-marker--active',_0x448d84),_0x2106b8['writer']['insert'](_0x59449f,_0x448d84),_0x2106b8['mapper']['bindElementToMarker'](_0x448d84,_0xe660fd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x9be425=>{for(const _0x3f8f56 of this['editor']['model']['document']['getRootNames']()){const _0x266073=this['editor']['model']['document']['getRoot'](_0x3f8f56),_0x199d8e=this['editor']['editing']['view']['document']['getRoot'](_0x3f8f56);if(_0x199d8e){const _0x29e387=_0x266073['getAttribute']('revisionHistoryAttachChange');if(_0x9be425['removeAttribute']('data-change-id',_0x199d8e),_0x9be425['removeClass']('ck-revision-history-root-add',_0x199d8e),_0x9be425['removeClass']('ck-revision-history-root-remove',_0x199d8e),_0x9be425['removeClass']('ck-revision-history-root--active',_0x199d8e),_0x29e387){const _0x4720ff=this['_getChangeFromId'](_0x29e387);if(!_0x4720ff)return null;_0x9be425['setAttribute']('data-change-id',_0x29e387,_0x199d8e),_0x9be425['addClass']('ck-revision-history-root-'+_0x4720ff['type'],_0x199d8e),this['activeChange']==_0x4720ff&&_0x9be425['addClass']('ck-revision-history-root--active',_0x199d8e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4edd99=>'revision-comment:'+_0x4edd99,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c06d5=>'revision-suggestion:'+_0x5c06d5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x21c85a=>({'name':'suggestion:'+_0x21c85a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48cbcc=>{const _0x1290f3=_0x48cbcc['markerName']['split'](':')[0x1];return'insertion'!=_0x1290f3&&'deletion'!=_0x1290f3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1290f3]};}}),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',(_0x5f3ffb,_0xa5264,_0x4b1c33)=>{const _0x3d2cf8=_0x4b1c33['mapper']['markerNameToElements'](_0xa5264['markerName']);if(_0x3d2cf8){for(const _0x170cde of _0x3d2cf8)_0x170cde['is']('uiElement')&&(_0x4b1c33['mapper']['unbindElementFromMarkerName'](_0x170cde,_0xa5264['markerName']),_0x4b1c33['writer']['remove'](_0x170cde));}},{'priority':'high'});}['_getChangeFromId'](_0x430b2d){return this['_changeIdToChange']['get'](_0x430b2d);}['_getViewForChange'](_0x5e0722){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5e0722),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a9d8d,_0x23bdd8,_0x2d1d37,_0x1bd760)=>{_0x1bd760&&this['_balloon']['remove'](_0x1bd760),_0x2d1d37&&(this['_balloon']['add']({'view':_0x2d1d37,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x43974b=this['editor']['editing'],_0x15a4a9=this['_getChangeFromId'](_0x2d1d37['changeId']);let _0x2a65df;if(_0x15a4a9['data']['isOnRoot']){const _0x1b77cf=_0x43974b['view']['getDomRoot'](_0x15a4a9['rootName']);_0x2a65df=Array['from'](_0x1b77cf['getClientRects']());}else{const _0x33864d=this['editor']['model']['markers']['get']('revision:'+_0x2d1d37['changeId']);_0x2a65df=Array['from'](_0x43974b['mapper']['markerNameToElements'](_0x33864d['name']))['map'](_0x511537=>_0x43974b['view']['domConverter']['mapViewToDom'](_0x511537))['map'](_0x5826f5=>Array['from'](_0x5826f5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a65df[0x0];return _0x2a65df['find'](_0xac87be=>_0xac87be['top']-0x3<=this['_activeViewTarget']['y']&&_0xac87be['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xac87be['left']-0x3<=this['_activeViewTarget']['x']&&_0xac87be['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a65df[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x48f5ee,_0x244880,_0x4d94fe,_0x36991c)=>{this['activeView']=_0x4d94fe?this['_getViewForChange'](_0x4d94fe):null,this['editor']['model']['change'](()=>{const _0x54ad03=this['editor']['editing'];_0x36991c&&(_0x36991c['data']['isOnRoot']?_0x54ad03['view']['change'](_0x4be916=>{_0x4be916['removeClass']('ck-revision-history-root--active',_0x54ad03['view']['document']['getRoot'](_0x36991c['rootName']));}):_0x54ad03['reconvertMarker']('revision:'+_0x36991c['id'])),_0x4d94fe&&(_0x4d94fe['data']['isOnRoot']?_0x54ad03['view']['change'](_0x3d9b93=>{_0x3d9b93['addClass']('ck-revision-history-root--active',_0x54ad03['view']['document']['getRoot'](_0x4d94fe['rootName']));}):_0x54ad03['reconvertMarker']('revision:'+_0x4d94fe['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5beaff,_0x17b637)=>{if(this['activeChange'])return;const _0x4cef7b=this['_findChangeIdFromDomTarget'](_0x17b637['target']),_0x6ffb46=this['_changeIdToChange']['get'](_0x4cef7b);_0x6ffb46?(this['_activeViewTarget']={'x':_0x17b637['domEvent']['x'],'y':_0x17b637['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6ffb46)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2f29ac,_0x474cb3)=>{const _0x13c639=this['_findChangeIdFromDomTarget'](_0x474cb3['target']),_0x4f1371=this['_changeIdToChange']['get'](_0x13c639);_0x4f1371?(this['_activeViewTarget']={'x':_0x474cb3['domEvent']['x'],'y':_0x474cb3['domEvent']['y']},_0x4f1371===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f1371):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x31a1d1){do{const _0x43ba42=_0x31a1d1['getAttribute']('data-change-id');if(_0x43ba42)return _0x43ba42;_0x31a1d1=_0x31a1d1['parent'];}while(_0x31a1d1);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x536380=>{for(const _0x54be3c of this['editor']['model']['markers'])_0x536380['removeMarker'](_0x54be3c);});}}function Q(_0x42697d,_0x156313){return(_0x1e1260,_0xf90ccf,_0x59f01f)=>{if(!_0x59f01f['consumable']['test'](_0xf90ccf['markerRange'],_0x1e1260['name']))return;const _0x20ed08=_0xf90ccf['markerRange']['getWalker'](),_0x4422f0=_0xf90ccf['markerRange']['start'],_0x9c5a97=_0x42697d['model']['schema'];let _0x23315b=null,_0x2b3e7a=null,_0x1a51fc=!0x1,_0xb220fe=!0x1;for(const _0x3a9222 of _0x20ed08){const _0x287b6d=_0x3a9222['item'];_0x1a51fc=_0x1a51fc||_0x9c5a97['isContent'](_0x287b6d);const _0x159d7d=_0x59f01f['mapper']['toViewElement'](_0x287b6d);if(_0x159d7d&&_0x159d7d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a9222['type']&&(_0x9c5a97['isBlock'](_0x287b6d)&&!_0x9c5a97['isLimit'](_0x287b6d)&&(_0x287b6d['nextSibling']||_0x4422f0['isAtEnd']?_0x23315b&&_0x23315b['parent']==_0x287b6d||(_0x23315b=_0x287b6d,_0x26dd34(_0x3a9222['previousPosition']),_0xb220fe=!0x0):_0x2b3e7a=_0x2b3e7a||_0x3a9222['previousPosition']));}function _0x26dd34(_0x5cc47e){const _0x54f06d=_0x59f01f['mapper']['toViewPosition'](_0x5cc47e),_0x4423a1=_0x59f01f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x156313});_0x59f01f['writer']['insert'](_0x54f06d,_0x4423a1),_0x59f01f['mapper']['bindElementToMarker'](_0x4423a1,_0xf90ccf['markerName']);}_0x1a51fc||_0xb220fe||!_0x2b3e7a||_0x26dd34(_0x2b3e7a);};}class nt extends _0x53ec91{constructor(_0x92b140){super(_0x92b140);const _0x17f2d5=_0x92b140['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x17f2d5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x17f2d5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2f345d=this['editor'],_0x4a599c=_0x2f345d['plugins']['get'](l),_0x4f6eb2=_0x4a599c['isReady']?_0x4a599c['diff']['newRevisionId']:null;_0x2f345d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f6eb2);}['refresh'](){const {isReady:_0x5ab3a5,isEnabled:_0x185e9f,repository:_0x5bb0a3,diff:_0x4d5595}=this['editor']['plugins']['get'](l),_0x224b16=_0x4d5595&&_0x5bb0a3['getLaterVisibleRevision'](_0x4d5595['newRevisionId']);this['isEnabled']=_0x5ab3a5&&_0x185e9f&&Boolean(_0x224b16);}}class ot extends _0x53ec91{['_step'];constructor(_0x171eed,{direction:_0x31de49}){super(_0x171eed);const _0x812fe7=_0x171eed['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x31de49?0x1:-0x1,this['listenTo'](_0x812fe7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x812fe7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x812fe7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x19864e=this['editor'],_0x250332=_0x19864e['plugins']['get'](l),{isNavigationMode:_0x5b25d6,currentChangeNumber:_0x365036}=_0x250332;let _0x52b0dd;if(_0x250332['activeChange']=_0x5b25d6?_0x250332['diff']['changes']['get'](_0x365036+this['_step']):_0x250332['diff']['changes']['first'],_0x250332['activeChange']['data']['isOnRoot'])_0x52b0dd=_0x19864e['editing']['view']['getDomRoot'](_0x250332['activeChange']['rootName']);else{const _0xd2db9e=_0x19864e['model']['markers']['get']('revision:'+_0x250332['activeChange']['id']);_0x52b0dd=_0xe0af4c(_0x19864e['editing'],_0xd2db9e);}_0xd732f0({'target':_0x52b0dd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x23b27f,currentChangeNumber:_0x3b899b,numberOfChanges:_0x512fe1,isReady:_0x33e0db,isEnabled:_0x30556f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x30556f&&_0x33e0db&&_0x512fe1)&&(!_0x23b27f||(0x1===this['_step']?_0x3b899b<_0x512fe1-0x1:_0x3b899b>0x0));}}class Ri extends _0x136254{constructor(_0x1a6dbe){super(_0x1a6dbe);const _0x41af28=this['bindTemplate'],_0x144db8=new _0x4cc503(_0x1a6dbe),_0x44567c=new _0x4cc503(_0x1a6dbe);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',(_0x5e5229,_0x32dee8)=>_0x5e5229&&_0x32dee8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2354e4,_0x5b387a,_0x18d115,_0x538f02)=>{if(!_0x2354e4)return R(_0x1a6dbe,'Loading...');if(!_0x18d115)return R(_0x1a6dbe,'No\x20changes');const _0x3a0842=R(_0x1a6dbe,'NUMBER_OF_CHANGES',_0x18d115);return _0x538f02?R(_0x1a6dbe,'X_OF_Y_CHANGES',[_0x5b387a+0x1,_0x18d115]):_0x3a0842;}),_0x144db8['set']({'label':R(_0x1a6dbe,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a19ea}),_0x44567c['set']({'label':R(_0x1a6dbe,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x34198f}),_0x144db8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x44567c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x144db8['on']('execute',()=>this['fire']('execute','backward')),_0x44567c['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',_0x41af28['if']('_isStatusLabelVisible','ck-hidden',_0x3fb3d9=>!_0x3fb3d9)]},'children':[{'text':_0x41af28['to']('isNavigationMode',_0x59e7c0=>_0x59e7c0?R(_0x1a6dbe,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1a6dbe,'Total')+':\x20')}]},{'text':_0x41af28['to']('_statusText')}]},new _0x44af63(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x144db8,_0x44567c]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x2f4856{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3b6c46=this['editor']['editing']['view'];_0x3b6c46['change'](_0x425fcb=>{for(const _0x451054 of _0x3b6c46['document']['roots'])_0x425fcb['addClass'](ge,_0x451054);});}['hide'](){const _0x4caf3b=this['editor']['editing']['view'];_0x4caf3b['change'](_0xc03a2=>{for(const _0x425b3f of _0x4caf3b['document']['roots'])_0xc03a2['removeClass'](ge,_0x425b3f);});}}class u extends _0x2f4856{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x341fce=this['editor'],_0x1a304c=_0x341fce['plugins']['get'](l),_0x15839d=_0x341fce['plugins']['get'](ji);_0x341fce['ui']['componentFactory']['add']('exitToEditing',_0x562b54=>{const _0xad0740=new _0x4cc503(_0x562b54);return _0xad0740['set']({'label':R(_0x562b54,'Back\x20to\x20editing'),'icon':_0x51b027,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xad0740,'execute',()=>{_0x341fce['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xad0740;}),_0x341fce['ui']['componentFactory']['add']('restoreRevision',_0x210880=>{const _0x3178fc=new _0x4cc503(_0x210880);return _0x3178fc['set']({'label':R(_0x210880,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3178fc['bind']('isEnabled')['to'](_0x341fce['commands']['get']('restoreRevision')),this['listenTo'](_0x3178fc,'execute',()=>_0x341fce['execute']('restoreRevision')),_0x3178fc;}),_0x341fce['ui']['componentFactory']['add']('changesNavigation',_0x58db4b=>{const _0x13fe2b=new Ri(_0x58db4b),_0x37ac5d=_0x341fce['commands']['get']('showPreviousChange'),_0x580dd2=_0x341fce['commands']['get']('showNextChange');return _0x13fe2b['bind']('isBackwardNavigationEnabled')['to'](_0x37ac5d,'isEnabled'),_0x13fe2b['bind']('isForwardNavigationEnabled')['to'](_0x580dd2,'isEnabled'),_0x13fe2b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1a304c),this['listenTo'](_0x13fe2b,'execute',(_0x2a6f31,_0x25774a)=>{_0x341fce['execute']('forward'===_0x25774a?'showNextChange':'showPreviousChange');}),_0x13fe2b;}),_0x15839d['show'](),_0x1a304c['on']('change:isReady',(_0x11fb9f,_0x116d1b,_0x2d8c3b)=>{_0x2d8c3b?_0x15839d['hide']():_0x15839d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x1df229,_0x283574){super(_0x1df229,_0x283574);const _0x4863ca=this['bindTemplate'];this['set']({'label':R(_0x1df229,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1df229,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4863ca['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 _0x264b74=this['fieldView']['element'];this['_tooltipString']=_0x264b74['scrollWidth']>_0x264b74['clientWidth']&&_0x264b74['value']||'';}}class vi extends _0x136254{constructor(_0x196905,_0x4d19fe,_0x29bcbc){super(_0x196905);const _0x242f12=new _0x293375();_0x242f12['set']({'content':_0x5025a3,'viewBox':'0\x200\x2011\x2010'});const _0x12e28f=['ck','ck-revision-history-sidebar__revision-author'];_0x29bcbc&&_0x12e28f['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd0c74=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x196905,_0x29bcbc?'Revision\x20creator':'Revision\x20author')},'children':[_0x242f12,_0x4d19fe['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x12e28f},'children':_0xd0c74});}}function mi(_0x3b0696,_0x188963){const _0x23b268=_0x3b0696['bindTemplate'],_0x238e47=_0x3b0696['locale'],_0xa61f4b=_0x33cd9c(_0x238e47);_0xa61f4b['panelPosition']='sw';const _0x517827=function(_0x23084b,_0x2ae650){const _0x3bdd91=function(_0x5ef9a6,_0x390228){const _0x2d64c9=_0x5ef9a6['locale'],_0x2880a7={'Compare\x20against\x20selected':R(_0x2d64c9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2d64c9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2d64c9,'Restore\x20this\x20revision')};return _0x390228['map'](_0x1b6efa=>{const _0x18bad4=_0x2880a7[_0x1b6efa['name']];return _0x18bad4&&_0x18bad4!==_0x1b6efa['name']&&(_0x1b6efa['name']=_0x18bad4),_0x1b6efa;});}(_0x23084b,_0x2ae650),_0x45c265=new _0x1219cc();for(const _0x2d361c of _0x3bdd91){const _0xf52f29={'type':'button','model':new to({'label':_0x2d361c['name'],'class':_0x2d361c['class'],'withText':!0x0,'role':'menuitem','_action':_0x2d361c['action']})};_0xf52f29['model']['bind']('isEnabled')['to'](_0x23084b,'isActionsDropdownOpen',_0x5aa95d=>'function'!=typeof _0x2d361c['isEnabled']||(!_0x5aa95d||_0x2d361c['isEnabled'](_0x23084b))),_0x45c265['add'](_0xf52f29);}return _0x45c265;}(_0x3b0696,_0x188963);return _0x3b0696['bind']('isActionsDropdownOpen')['to'](_0xa61f4b,'isOpen'),_0xa61f4b['buttonView']['set']({'label':R(_0x238e47,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x445882}),_0xa61f4b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23b268['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23b268['to'](_0x977e12=>_0x977e12['stopPropagation']())}}),_0xa61f4b['on']('execute',_0x56f57c=>{_0x3b0696['isReady']&&'function'==typeof _0x56f57c['source']['_action']&&_0x56f57c['source']['_action'](_0x3b0696);}),_0xdc013(_0xa61f4b,_0x517827,{'role':'menu'}),_0xa61f4b['listenTo'](_0x3b0696,'change:isActionsDropdownOpen',(_0x293d67,_0x1fda02,_0xaef4c2)=>{if(_0xaef4c2)for(const _0x39112c of _0xa61f4b['listView']['items']){const _0x444c79=_0x39112c['children']['first'],_0x2a17e4=_0x188963['find'](_0x1ceff8=>_0x1ceff8['action']===_0x444c79['_action'])['isVisible'];_0x39112c['isVisible']=void 0x0===_0x2a17e4||_0x2a17e4(_0x3b0696);}}),_0xa61f4b;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x220e5e,uid as _0x58edc7,Collection as _0xbf5b7e,logWarning as _0x3c4dda,FocusTracker as _0x51224f,KeystrokeHandler as _0x5ba12a,scrollViewportToShowTarget as _0x278709,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x27bd41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x570b2f,set as _0x3d4dc9,unset as _0x30c73b,isEqual as _0x158881}from'es-toolkit/compat';import{Plugin as _0x40d69e,PendingActions as _0x371990,Command as _0x17f1c5,ElementApiMixin as _0x396607,Editor as _0x39e5da}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x31b528,getMarkerDomElement as _0x5ea7c3,ConfirmMixin as _0x310213,sanitizeEditorConfig as _0xe8ae6a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2ccec7,ViewAttributeElement as _0x3707a2,ViewEmptyElement as _0x78a4a0,ViewRawElement as _0x4740c3,ViewUIElement as _0x74385,ViewDocumentFragment as _0x103c9a,ViewText as _0x1ccf06,ViewElement as _0x530198,ModelElement as _0x149c78,ModelRange as _0x16968a,ModelPosition as _0x424c40,ModelDocumentFragment as _0x1017e4,ModelText as _0xfc39de}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5a259c,IconChevronUp as _0x561579,IconChevronDown as _0x41c34d,IconUndo as _0x2ee9fb,IconUser as _0x4023b9,IconThreeVerticalDots as _0x2717e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4930e8,View as _0x5372f9,submitHandler as _0x9dd0f8,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5bfde6,ListView as _0x41ec92,ListItemView as _0x22c231,ButtonView as _0x4c294d,MenuBarMenuView as _0x518481,MenuBarMenuListView as _0x1ec7f2,MenuBarMenuListItemView as _0x3e0b15,MenuBarMenuListItemButtonView as _0x398d58,ContextualBalloon as _0x59aed6,ToolbarSeparatorView as _0x268ae1,IconView as _0x2e6b9e,addListToDropdown as _0x57d04a,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3400fc,StickyPanelView as _0x11665a,ToolbarView as _0x375565,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x29909a}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x220e5e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3dc839){super(),this['id']=_0x3dc839['id']||_0x58edc7(),this['creator']=_0x3dc839['creator']||null,this['authors']=_0x3dc839['authors']||[],this['diffData']=_0x3dc839['diffData']||null,this['toVersion']=_0x3dc839['toVersion']||0x0,this['fromVersion']=_0x3dc839['fromVersion']||0x0,this['set']('name',_0x3dc839['name']||''),this['set']('createdAt',_0x3dc839['createdAt']||new Date()),this['set']('attributes',_0x3dc839['attributes']||{});}['setName'](_0x1b073a){this['_update']({'name':_0x1b073a});}['setAttribute'](_0x2186b9,_0x4a512e){const _0x497fb0=_0x570b2f(this['attributes']);_0x3d4dc9(_0x497fb0,_0x2186b9,_0x4a512e),this['_update']({'attributes':_0x497fb0});}['removeAttribute'](_0x5e80f2){const _0x2770c9=_0x570b2f(this['attributes']);_0x30c73b(_0x2770c9,_0x5e80f2),this['_update']({'attributes':_0x2770c9});}['_update'](_0xd281ba,_0x14187f=!0x1){let _0x1fa2e8=!0x1;const _0x3608da={'id':this['id']},_0x314f88=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x849b24 of _0x314f88){const _0x5bb891=_0xd281ba[_0x849b24];void 0x0!==_0x5bb891&&_0x5bb891!==this[_0x849b24]&&(this[_0x849b24]=_0x5bb891,_0x3608da[_0x849b24]=_0x5bb891,_0x1fa2e8=!0x0);}_0x1fa2e8&&(_0x3608da['authors']&&(_0x3608da['authorsIds']=_0x3608da['authors']['map'](_0x250f39=>_0x250f39['id']),delete _0x3608da['authors']),this['fire']('_update',_0x3608da,_0x14187f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x165fd8=>_0x165fd8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x40d69e{['_revisions'];static get['requires'](){return[_0x31b528];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x17961d){super(_0x17961d),this['_revisions']=new _0xbf5b7e();}['afterInit'](){!async function(_0x1c5bf9){const _0x55426d=_0x9a0efa([0x74,0x63,0x49,0x6a,0x4f,0x78,0x34,0x58,0x4b,0x54,0x62,0x41,0x5a,0x4e,0x59,0x65,0x51,0x66,0x32,0x69,0x4a,0x39,0x53,0x33,0x35,0x57,0x47,0x4c,0x6c,0x7a,0x43,0x64,0x72,0x31,0x30,0x67,0x75,0x37,0x36,0x79,0x6d,0x68,0x52,0x45,0x4d,0x56,0x70,0x38,0x46,0x76,0x77,0x55,0x6f,0x42,0x61,0x50,0x6e,0x71,0x44,0x48,0x73,0x6b]),_0x245ace=0xeb829,_0x24df09=0x72b9e60,_0x226e0e=0x72ceeb0^_0x24df09,_0xed50f9=window[_0x9a0efa([0x44,0x61,0x74,0x65])][_0x9a0efa([0x6e,0x6f,0x77])](),_0x5af653=_0x1c5bf9[_0x9a0efa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e38d8=new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca5bb=>{_0x5af653[_0x9a0efa([0x6f,0x6e,0x63,0x65])](_0x9a0efa([0x72,0x65,0x61,0x64,0x79]),_0x2ca5bb);}),_0x5ea9ba={[_0x9a0efa([0x6b,0x74,0x79])]:_0x9a0efa([0x45,0x43]),[_0x9a0efa([0x75,0x73,0x65])]:_0x9a0efa([0x73,0x69,0x67]),[_0x9a0efa([0x63,0x72,0x76])]:_0x9a0efa([0x50,0x2d,0x32,0x35,0x36]),[_0x9a0efa([0x78])]:_0x9a0efa([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x9a0efa([0x79])]:_0x9a0efa([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x9a0efa([0x61,0x6c,0x67])]:_0x9a0efa([0x45,0x53,0x32,0x35,0x36])},_0x3ded8b=_0x5af653[_0x9a0efa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9a0efa([0x67,0x65,0x74])](_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6ae52e(){let _0x650506,_0x111d6b=null,_0x2b59bc=null;try{if(_0x3ded8b==_0x9a0efa([0x47,0x50,0x4c]))return _0x9a0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x650506=_0xa3662c(),!_0x650506)return _0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x650506[_0x9a0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b59bc=_0x1bdc47(_0x650506[_0x9a0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x650506[_0x9a0efa([0x6a,0x74,0x69])])),await _0x54ba66()?_0x2017aa()?_0xd94edc()?_0x9a0efa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x399e99()?(_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x111d6b=_0x491a6a(_0x9a0efa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a0efa([0x74,0x72,0x69,0x61,0x6c])&&(_0x111d6b=_0x491a6a(_0x9a0efa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xab3a71()):_0x9a0efa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9a0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9a0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd94edc(){const _0x489595=[_0x9a0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9a0efa([0x74,0x72,0x69,0x61,0x6c])][_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xed50f9/0x3e8:0xe10*_0x226e0e;return _0x650506[_0x9a0efa([0x65,0x78,0x70])]<_0x489595;}function _0x2017aa(){const _0x26c250=_0x650506[_0x9a0efa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26c250)return!0x1;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x2a])))return!0x0;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x52,0x48])))return!0x0;if(_0x26c250[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x52,0x52,0x48]))){if(_0x46e2a())return!0x0;if(_0x45cdff()||_0x256f41())return!0x0;}return!0x1;}function _0x399e99(){const _0x1bbab3=_0x650506[_0x9a0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bbab3||0x0==_0x1bbab3[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f0b91}=new URL(window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bbab3[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0b91))return!0x0;const _0x5ded8e=_0x3f0b91[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e]));return _0x1bbab3[_0x9a0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27bc92=>_0x27bc92[_0x9a0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a0efa([0x2a])))[_0x9a0efa([0x6d,0x61,0x70])](_0x2c765b=>_0x2c765b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e])))[_0x9a0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c335d=>_0x1c335d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ded8e[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a0efa([0x6d,0x61,0x70])](_0x22a8d3=>Array(_0x5ded8e[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22a8d3[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a0efa([0x66,0x69,0x6c,0x6c])](_0x22a8d3[0x0]===_0x9a0efa([0x2a])?_0x9a0efa([0x2a]):'')[_0x9a0efa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22a8d3))[_0x9a0efa([0x73,0x6f,0x6d,0x65])](_0x1c7ae0=>_0x5ded8e[_0x9a0efa([0x65,0x76,0x65,0x72,0x79])]((_0x3bc30,_0x5a64d5)=>_0x1c7ae0[_0x5a64d5]===_0x3bc30||_0x1c7ae0[_0x5a64d5]===_0x9a0efa([0x2a])));}function _0xab3a71(){return _0x111d6b&&_0x2b59bc?new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x127be2,_0x3e3e85)=>{_0x111d6b[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x127be2,_0x3e3e85),_0x2b59bc[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x52e5eb=>{_0x52e5eb!=_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x127be2(_0x52e5eb);},_0x3e3e85);}):_0x111d6b||_0x2b59bc||_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bdc47(_0xef7e71,_0x227b6a){return new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b9b2=>{if(_0x1d5f40())return _0x45b9b2(_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]));_0xc4ee1a(),_0x5af653[_0x9a0efa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dfec2=!0x1;const _0x56ece3=_0x58edc7();function _0x1e97a8(_0x3af331){return!!_0x3af331&&(typeof _0x3af331===_0x9a0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3af331===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3af331[_0x9a0efa([0x74,0x68,0x65,0x6e])]===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3af331[_0x9a0efa([0x63,0x61,0x74,0x63,0x68])]===_0x9a0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524d95(_0x26bcc4){_0x517664(_0x26bcc4)[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x29f80c=>{if(!_0x29f80c||_0x29f80c[_0x9a0efa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9a0efa([0x6f,0x6b]))return _0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bb309(_0x3c9170(_0x56ece3+_0x227b6a))!=_0x29f80c[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9a0efa([0x56,0x61,0x6c,0x69,0x64]);})[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x486119=>(_0x469d17(),_0x486119),()=>{const _0x2fbd41=_0x69bafc();return null==_0x2fbd41?(_0x469d17(),_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])):_0x9a0efa(_0xed50f9-_0x2fbd41>(0x23271a60^_0x24df09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x45b9b2)[_0x9a0efa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379e56=0x71d70e0^_0x24df09;function _0x469d17(){const _0x6c777f=_0x9a0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bb309(_0x3c9170(_0xef7e71)),_0x45148e=_0x53f9ef(_0x1bb309(window[_0x9a0efa([0x4d,0x61,0x74,0x68])][_0x9a0efa([0x63,0x65,0x69,0x6c])](_0xed50f9/_0x379e56)));window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a0efa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c777f,_0x45148e);}function _0x69bafc(){const _0xe7e7d3=_0x9a0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bb309(_0x3c9170(_0xef7e71)),_0x537e60=window[_0x9a0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a0efa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7e7d3);return _0x537e60?window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53f9ef(_0x537e60),0x10)*_0x379e56:null;}function _0x517664(_0x11180f){return new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be784,_0x140c60)=>{_0x11180f[_0x9a0efa([0x74,0x68,0x65,0x6e])](_0x5be784,_0x140c60),window[_0x9a0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x140c60,0x72a4aa0^_0x24df09);});}}_0x5af653[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3accfc,_0x3caa27)=>{if(_0x3caa27[0x0]!=_0xef7e71)return _0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3caa27[0x1]={..._0x3caa27[0x1],[_0x9a0efa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56ece3};},{[_0x9a0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a0efa([0x68,0x69,0x67,0x68])}),_0x5af653[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50822d=>{_0x1e97a8(_0x50822d[_0x9a0efa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dfec2=!0x0,_0x524d95(_0x50822d[_0x9a0efa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9a0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a0efa([0x6c,0x6f,0x77])}),_0x2e38d8[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>{_0x4dfec2||_0x45b9b2(_0x9a0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d5f40(){return _0x5af653[_0x9a0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a0efa([0x76,0x69,0x65,0x77])][_0x9a0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9a0efa([0x61,0x75,0x74,0x6f]);}function _0xc4ee1a(){_0x5af653[_0x9a0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a0efa([0x76,0x69,0x65,0x77])][_0x9a0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9a0efa([0x61,0x75,0x74,0x6f]);}}function _0x491a6a(_0x216409){const _0x3bbdee=[new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c1a06=>setTimeout(_0x5c1a06,0x722a0ac^_0x24df09)),_0x2e38d8[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7156=>{const _0x252b94=0x72b9e67^_0x24df09,_0x4222e6=_0x1c5bf9[_0x9a0efa([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x175278(){_0x4222e6[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x252b94&&_0x3b7156();}_0x175278(),_0x4222e6[_0x9a0efa([0x6f,0x6e])](_0x9a0efa([0x61,0x64,0x64]),_0x175278);})),new window[(_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bafa=>{function _0x4bdf9e(){for(const _0xc704b0 in window)if(window[_0x9a0efa([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x9a0efa([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xc704b0))&&window[_0xc704b0]==_0x245ace)return _0x20bafa();_0x5af653[_0x9a0efa([0x73,0x74,0x61,0x74,0x65])]!=_0x9a0efa([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x9a0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bdf9e,0x72b8de8^_0x24df09);}_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4bdf9e();})];return window[_0x9a0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9a0efa([0x72,0x61,0x63,0x65])](_0x3bbdee)[_0x9a0efa([0x74,0x68,0x65,0x6e])](()=>_0x216409);}async function _0x1bc8a5(){if(await _0x2e38d8,_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5acb1b=_0x1c5bf9[_0x9a0efa([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4fd297=_0x1c5bf9[_0x9a0efa([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x5acb1b[_0x9a0efa([0x69,0x64])]),_0x2f1f0d=_0x4db482(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2f1f0d[_0x9a0efa([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5acb1b['id'],_0x4fd297?_0x4fd297['id']:null,!0x0),_0x2f1f0d[_0x9a0efa([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f1f0d[_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f1f0d[_0x9a0efa([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x49f779,void(_0x2f1f0d[_0x9a0efa([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x49f779);}if(_0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1326d7=_0x4db482(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1326d7[_0x9a0efa([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1326d7[_0x9a0efa([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1326d7[_0x9a0efa([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x49f779,_0x1326d7[_0x9a0efa([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x49f779;}_0x5af653[_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a0efa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49f779,_0x5af653[_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a0efa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49f779,_0x5af653[_0x9a0efa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9a0efa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46e2a(){return _0x80defc(_0x9a0efa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4db482(_0x9a0efa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9a0efa([0x73,0x74,0x61,0x74,0x65])]==_0x9a0efa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x45cdff(){return _0x80defc(_0x9a0efa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x256f41(){return _0x80defc(_0x9a0efa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x386bb3(_0x5b39e1){const _0x325326=_0x218be1();_0x5af653[_0x325326]=_0x9a0efa([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b39e1,_0x5b39e1[_0x9a0efa([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x9a0efa([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x218be1()]=_0x245ace),_0x5b39e1!=_0x9a0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x1bc8a5();}function _0x218be1(){const _0x1ca05d=window[_0x9a0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9a0efa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9a0efa([0x6e,0x6f,0x77])]())[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9a0efa([0x2e]),'');let _0x2a97a2=_0x9a0efa([0x74]);for(let _0x282d97=0x0;_0x282d97<_0x1ca05d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x282d97+=0x2){let _0x36f3a3=window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca05d[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x282d97,_0x282d97+0x2));_0x36f3a3>=_0x55426d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36f3a3-=_0x55426d[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a97a2+=_0x55426d[_0x36f3a3];}return _0x2a97a2;}function _0xa3662c(){const _0x17dd32=_0x3ded8b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e]));if(0x3!=_0x17dd32[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x468a81(_0x17dd32[0x1]);function _0x468a81(_0x5adf75){const _0x18b0fc=_0x170503(_0x5adf75);return _0x18b0fc&&_0x2658bd()?_0x18b0fc:null;function _0x2658bd(){const _0x139ed1=_0x18b0fc[_0x9a0efa([0x6a,0x74,0x69])],_0x24837e=window[_0x9a0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139ed1[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x139ed1[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9c78f7={..._0x18b0fc,[_0x9a0efa([0x6a,0x74,0x69])]:_0x139ed1[_0x9a0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x139ed1[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9c78f7[_0x9a0efa([0x76,0x63])],_0x3c9170(_0x9c78f7)==_0x24837e;}}}async function _0x54ba66(){let _0x140d4c=!0x0;try{const _0x4e1ae9=_0x3ded8b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])](_0x9a0efa([0x2e])),[_0x3e2990,_0x22f3c6,_0x226e27]=_0x4e1ae9;return _0x14c277(_0x3e2990),await _0x351bbc(_0x3e2990,_0x22f3c6,_0x226e27),_0x140d4c;}catch{return!0x1;}function _0x14c277(_0x4537a0){const _0x41f906=_0x170503(_0x4537a0);_0x41f906&&_0x41f906[_0x9a0efa([0x61,0x6c,0x67])]==_0x9a0efa([0x45,0x53,0x32,0x35,0x36])||(_0x140d4c=!0x1);}async function _0x351bbc(_0x901bbd,_0x2b3307,_0x2b91ca){const _0xe763ae=window[_0x9a0efa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9a0efa([0x66,0x72,0x6f,0x6d])](_0x533f9d(_0x2b91ca),_0x115a42=>_0x115a42[_0x9a0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4beeef=new window[(_0x9a0efa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9a0efa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x901bbd+_0x9a0efa([0x2e])+_0x2b3307),_0x1a85b2=window[_0x9a0efa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9a0efa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a85b2)return;const _0x381cae=await _0x1a85b2[_0x9a0efa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9a0efa([0x6a,0x77,0x6b]),_0x5ea9ba,{[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x45,0x43,0x44,0x53,0x41]),[_0x9a0efa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9a0efa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a85b2[_0x9a0efa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x45,0x43,0x44,0x53,0x41]),[_0x9a0efa([0x68,0x61,0x73,0x68])]:{[_0x9a0efa([0x6e,0x61,0x6d,0x65])]:_0x9a0efa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x381cae,_0xe763ae,_0x4beeef)||(_0x140d4c=!0x1);}}function _0x170503(_0x31011c){return _0x31011c[_0x9a0efa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9a0efa([0x65,0x79]))?JSON[_0x9a0efa([0x70,0x61,0x72,0x73,0x65])](_0x533f9d(_0x31011c)):null;}function _0x533f9d(_0x5c1ac8){return window[_0x9a0efa([0x61,0x74,0x6f,0x62])](_0x5c1ac8[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9a0efa([0x2b]))[_0x9a0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9a0efa([0x2f])));}function _0x3c9170(_0x5578ed){let _0x469d76=0x1505;function _0xd5238(_0x34ce14){for(let _0x43dcf1=0x0;_0x43dcf1<_0x34ce14[_0x9a0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43dcf1++){const _0x29d5eb=_0x34ce14[_0x9a0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43dcf1);_0x469d76=(_0x469d76<<0x5)+_0x469d76+_0x29d5eb,_0x469d76&=_0x469d76;}}function _0x395174(_0x49bde2){Array[_0x9a0efa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49bde2)?_0x49bde2[_0x9a0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x395174):_0x49bde2&&typeof _0x49bde2==_0x9a0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9a0efa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49bde2)[_0x9a0efa([0x73,0x6f,0x72,0x74])]()[_0x9a0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x142d95,_0x16e526])=>{_0xd5238(_0x142d95),_0x395174(_0x16e526);}):_0xd5238(window[_0x9a0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49bde2));}return _0x395174(_0x5578ed),_0x469d76>>>0x0;}function _0x1bb309(_0x4b2ec7){return _0x4b2ec7[_0x9a0efa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9a0efa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9a0efa([0x30]));}function _0x53f9ef(_0xbced7b){return _0xbced7b[_0x9a0efa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9a0efa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9a0efa([0x6a,0x6f,0x69,0x6e])]('');}function _0x80defc(_0x14d71a){return _0x5af653[_0x9a0efa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9a0efa([0x68,0x61,0x73])](_0x14d71a);}function _0x4db482(_0x391e0b){return _0x5af653[_0x9a0efa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9a0efa([0x67,0x65,0x74])](_0x391e0b);}function _0x49f779(){}function _0x9a0efa(_0x341269){return _0x341269['map'](_0x4f6bc5=>String['fromCharCode'](_0x4f6bc5))['join']('');}_0x386bb3(await _0x6ae52e());}(this);}['createRevision'](_0x14fcce){const _0x374152=this['editor']['plugins']['get']('Users');return new I({'id':_0x14fcce['id'],'name':_0x14fcce['name'],'creator':_0x14fcce['creatorId']?_0x374152['getUser'](_0x14fcce['creatorId']):null,'diffData':_0x14fcce['diffData']||_0x14fcce['data'],'authors':_0x14fcce['authorsIds']['map'](_0x3e4f54=>_0x374152['getUser'](_0x3e4f54)),'createdAt':new Date(_0x14fcce['createdAt']),'attributes':_0x14fcce['attributes'],'fromVersion':_0x14fcce['fromVersion'],'toVersion':_0x14fcce['toVersion']});}['addRevision'](_0x5014ff,_0x197a6c=0x0){this['_revisions']['add'](_0x5014ff,_0x197a6c);}['getRevision'](_0x211bcd){return this['_revisions']['get'](_0x211bcd);}['getRevisions'](_0xfb5fa7={'toJSON':!0x1}){const _0x5871f8=Array['from'](this['_revisions']);return _0x5871f8['reverse'](),_0xfb5fa7['toJSON']?_0x5871f8['map'](_0xb948f7=>_0xb948f7['toJSON']()):_0x5871f8;}['getIndex'](_0x3078ad){return this['_revisions']['getIndex'](_0x3078ad);}['getEarlierVisibleRevision'](_0x4ae1fa){const [,_0x51a978]=this['getRevisionsIterator'](_0x4ae1fa,{'direction':'earlier'});return _0x51a978;}['getLaterVisibleRevision'](_0x43ebea){const [,_0x176bdb]=this['getRevisionsIterator'](_0x43ebea,{'direction':'later'});return _0x176bdb;}['getRevisionsInDiff'](_0x4929af){const _0x37f709=[];for(const _0x59a786 of this['getRevisionsIterator'](_0x4929af['newRevisionId']))if(_0x37f709['push'](_0x59a786),_0x59a786['id']===_0x4929af['oldRevisionId'])break;return _0x37f709;}*['getRevisionsIterator'](_0x33ac70,{direction:_0x3c353c='earlier',filter:_0x22258f=()=>!0x0}={}){const _0x546d6f='earlier'===_0x3c353c?0x1:-0x1;let _0x340e59=this['_revisions']['get'](_0x33ac70),_0x28339e=this['getIndex'](_0x340e59);for(yield _0x340e59;_0x340e59;){if(_0x28339e+=_0x546d6f,_0x340e59=this['getRevision'](_0x28339e),!_0x340e59)return;_0x22258f(_0x340e59)&&(yield _0x340e59);}}}class $ extends _0x40d69e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2ccec7,'c'],[_0x3707a2,'a'],[_0x78a4a0,'e'],[_0x4740c3,'r'],[_0x74385,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2ccec7],['a',_0x3707a2],['e',_0x78a4a0],['r',_0x4740c3],['u',_0x74385]]);async['loadRevisionData'](_0x263699,_0x5e9e33){if(_0x263699['diffData']||!_0x5e9e33)return;const _0x53d8a9=this['editor']['config']['get']('collaboration.channelId'),_0x22af67=await _0x5e9e33['getRevision']({'channelId':_0x53d8a9,'revisionId':_0x263699['id']});_0x263699['diffData']=_0x22af67['diffData'];}['getRevisionDocumentData'](_0x5a8d1e){const _0x5571b7={};for(const _0x4e6150 in _0x5a8d1e['diffData']){if(_0x5a8d1e['diffData'][_0x4e6150]['attachChange']&&!_0x5a8d1e['diffData'][_0x4e6150]['attachChange']['isAttached'])continue;const _0x282c66=this['_removeRevisionMarkers'](JSON['parse'](_0x5a8d1e['diffData'][_0x4e6150]['insertions'])),_0x51f82c=this['editor']['editing']['view']['document'],_0x493e0e=new _0x103c9a(_0x51f82c,_0x282c66['map'](_0x391a0a=>this['_getViewFromDiffObj'](_0x391a0a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5571b7[_0x4e6150]=this['editor']['data']['processor']['toData'](_0x493e0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5571b7;}['getRevisionRootsAttributes'](_0xa82cb3){const _0x4e2961={};for(const _0x48846f in _0xa82cb3['diffData'])_0xa82cb3['diffData'][_0x48846f]['attachChange']&&!_0xa82cb3['diffData'][_0x48846f]['attachChange']['isAttached']||(_0x4e2961[_0x48846f]=_0xa82cb3['diffData'][_0x48846f]['attributesAfter']||{});return _0x4e2961;}['_getTypeCharForViewElement'](_0x3ed979){return this['_viewClassToTypeChar']['get'](_0x3ed979['constructor']);}['_getViewFromDiffObj'](_0x2cf743,_0x4b5b07){const _0x54c5bd=this['editor']['editing']['view']['document'];if('string'==typeof _0x2cf743)return new _0x1ccf06(_0x54c5bd,_0x2cf743);{let _0x58b7cc,_0x501797;_0x501797='u'==_0x2cf743['type']||'r'==_0x2cf743['type']?[]:_0x2cf743['children']['map'](_0x1b9243=>this['_getViewFromDiffObj'](_0x1b9243,_0x4b5b07));const _0x43a1c7=this['_typeCharToViewClass']['get'](_0x2cf743['type'])||_0x530198,_0x294677=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x58b7cc=new _0x43a1c7(_0x54c5bd,_0x2cf743['name'],_0x2cf743['attributes'],_0x501797),'u'==_0x2cf743['type']&&_0x2cf743['children'][0x0]){const _0x5323c0=_0x2cf743['children'][0x0];if(_0x58b7cc['render']=function(_0xb652f0){const _0x173edd=_0xb652f0['createElement']('div');return _0x173edd['innerHTML']=_0x5323c0,_0x173edd['childNodes'][0x0];},_0x4b5b07){const _0x9468ab=new _0x103c9a(_0x54c5bd);_0x9468ab['_appendChild'](_0x58b7cc);const _0x9bac4b=Array['from'](_0x294677['viewChildrenToDom'](_0x9468ab,{'bind':!0x1})),_0x6d74d=_0x294677['domDocument']['createElement']('div');_0x6d74d['append'](..._0x9bac4b),_0x58b7cc=Array['from'](_0x294677['domChildrenToView'](_0x6d74d))[0x0];}}else{if('r'==_0x2cf743['type']&&_0x2cf743['children'][0x0]){const _0x5a1703=_0x2cf743['children'][0x0];if(_0x58b7cc['render']=function(_0x360afb){_0x360afb['innerHTML']=_0x5a1703;},_0x4b5b07){const _0xc69f0d=new _0x103c9a(_0x54c5bd);_0xc69f0d['_appendChild'](_0x58b7cc);const _0x57e79e=Array['from'](_0x294677['viewChildrenToDom'](_0xc69f0d,{'bind':!0x1})),_0x1d8f4b=_0x294677['domDocument']['createElement']('div');_0x1d8f4b['append'](..._0x57e79e);const _0xa27eb5=Array['from'](_0x294677['domChildrenToView'](_0x1d8f4b));_0xa27eb5['length']>0x1?_0x58b7cc['_appendChild'](_0xa27eb5):_0x58b7cc=_0xa27eb5[0x0];}}}if(_0x2cf743['customProperties']){for(const [_0x57bd28,_0x3984fd]of _0x2cf743['customProperties'])_0x58b7cc['_setCustomProperty'](_0x57bd28,_0x3984fd);}const _0x29a7a8=void 0x0===_0x2cf743['fillerOffset']?null:_0x2cf743['fillerOffset'];return null!==_0x29a7a8&&(_0x58b7cc['getFillerOffset']=()=>_0x29a7a8),_0x58b7cc;}}['_makeModelFromViewString'](_0x373a12){const _0xd448a2=JSON['parse'](_0x373a12),_0x11ba96=this['editor']['editing']['view']['document'],_0x19be18=new _0x103c9a(_0x11ba96,_0xd448a2['map'](_0x288103=>this['_getViewFromDiffObj'](_0x288103,!0x0)));return this['editor']['data']['toModel'](_0x19be18);}['_removeRevisionMarkers'](_0x350838){return(_0x350838=_0x350838['filter'](_0x5e7ec9=>!_0x5e7ec9['name']||'revision-start'!==_0x5e7ec9['name']&&'revision-end'!==_0x5e7ec9['name']))['forEach'](_0x106651=>{'string'!=typeof _0x106651&&(_0x106651['children']=this['_removeRevisionMarkers'](_0x106651['children']),_0x106651['attributes']=_0x106651['attributes']['filter'](_0x1b755f=>!_0x1b755f[0x0]['startsWith']('data-revision-')));}),_0x350838;}}function R(_0x4cc3f7,_0xe9da72,_0xeb9a2c){const t=_0x4cc3f7['t'];switch(_0xe9da72){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0xeb9a2c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeb9a2c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x40d69e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x31b528,S,$,_0x371990];}constructor(_0x106af3){super(_0x106af3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1ef2bf=_0x58edc7();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1ef2bf},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5f35ba=this['repository']['getRevision'](0x0),_0x4cbc3f=_0x5f35ba&&null===_0x5f35ba['creator']?_0x5f35ba:null;if(this['_continueCurrentRevision']=!!_0x4cbc3f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x261e16=this['_source']['getCurrentRevisionId'](),_0x199248=this['repository']['getRevision'](_0x261e16);if(_0x199248)this['_startingVersion']=_0x199248['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e8dc4=this['_source']['history']['_operations']['find'](_0x3ecef5=>!_0x3ecef5['_isInit']),_0x1a551d=_0x5e8dc4?_0x5e8dc4['baseVersion']:this['_source']['history']['version'];_0x5f35ba?(_0x5f35ba['toVersion']<_0x1a551d&&_0x5f35ba['_update']({'toVersion':_0x1a551d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id'],this['_startingVersion']=_0x4cbc3f['fromVersion']):(this['_startingVersion']=_0x5f35ba['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a551d,this['_continueCurrentRevision']=!0x1);}}else _0x4cbc3f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cbc3f['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cbc3f['fromVersion']===_0x4cbc3f['toVersion']?(0x0!==_0x4cbc3f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cbc3f['id'],this['_startingVersion']=_0x4cbc3f['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x3f4419=>!_0x3f4419),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30e5d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2473b7;for(const _0x1e8df5 in _0x30e5d6){const _0x15c341=_0x1e8df5,_0x3db3a1=_0x30e5d6[_0x15c341];if('revisionHistoryLicenseKeyValid'==_0x3db3a1||'revisionHistoryLicenseKeyInvalid'==_0x3db3a1||'revisionHistoryLicenseKeyExpired'==_0x3db3a1||'revisionHistoryLicenseKeyDomainLimit'==_0x3db3a1||'revisionHistoryLicenseKeyNotAllowed'==_0x3db3a1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3db3a1||'revisionHistoryLicenseKeyTrialLimit'==_0x3db3a1||'revisionHistoryLicenseKeyUsageLimit'==_0x3db3a1){delete _0x30e5d6[_0x15c341],_0x2473b7=_0x3db3a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2473b7&&_0x30e5d6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2473b7&&_0x30e5d6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2473b7&&_0x30e5d6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2473b7&&_0x30e5d6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x420a5a=this['repository']['getRevision'](0x0),_0xd6ed85=await this['getRevisionDocumentData'](_0x420a5a),_0x3a1850=await this['getRevisionRootsAttributes'](_0x420a5a);this['_replaceEditorDataWithRevisionData'](_0xd6ed85,_0x3a1850);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5e3d9d){this['_source']=_0x5e3d9d;}async['update'](){const _0x25eda7=await this['_source']['getLatestVersion']();if(_0x25eda7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x290e84=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x25eda7});_0x290e84['authors']=_0x290e84['authorsIds']['map'](_0x38a097=>this['editor']['plugins']['get']('Users')['getUser'](_0x38a097)),this['currentRevision']['_update'](_0x290e84);}}async['saveRevision'](_0x2e2e42={},_0x4979b4=null){const _0x51c644=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4979b4>this['currentRevision']['toVersion']&&(_0x4979b4=null),null===_0x4979b4&&(_0x4979b4=await this['_source']['getLatestVersion']());const _0x46df2a=this['_getFromVersion'](_0x4979b4),_0x485963=this['buildRevisionData']({'from':_0x46df2a,'to':_0x4979b4});if(this['currentRevision']['toVersion']<_0x4979b4){const _0x1b8493=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4979b4,'to':_0x4979b4});_0x1b8493['authors']=[],_0x1b8493['authorsIds']=[],_0x1b8493['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1b8493,!0x0),delete _0x1b8493['authors'],_0x51c644['push'](_0x1b8493);}_0x2e2e42['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e2e42['name']=_0x2e2e42['name']||null,_0x2e2e42['id']=_0x2e2e42['id']||_0x58edc7(),_0x2e2e42={..._0x2e2e42,..._0x485963};const _0x11ddef=this['addRevisionData'](_0x2e2e42);_0x51c644['push'](_0x2e2e42);const _0x4ade19=this['repository']['getIndex'](_0x11ddef);if(0x0!==_0x4ade19){const _0x2b30f7=this['repository']['getRevision'](_0x4ade19-0x1);if(_0x2b30f7['fromVersion']!==_0x4979b4){const _0x257a00=this['_revisionDataBuilder']['getData'](_0x4979b4,_0x2b30f7['toVersion']),_0x5626c7={'id':_0x2b30f7['id'],'diffData':_0x257a00['diffData'],'authorsIds':_0x257a00['authorsIds'],'authors':_0x257a00['authorsIds']['map'](_0x90e49=>this['editor']['plugins']['get']('Users')['getUser'](_0x90e49)),'fromVersion':_0x4979b4};_0x2b30f7===this['currentRevision']&&(_0x5626c7['createdAt']=new Date(_0x2e2e42['createdAt']['getTime']()+0xa)),_0x2b30f7['_update'](_0x5626c7,!0x0),delete _0x5626c7['authors'],_0x51c644['push'](_0x5626c7);}}if(this['adapter']){for(const _0x4f5045 of _0x51c644)this['_bufferUpdate'](_0x4f5045['id'],_0x4f5045,!0x0);this['sendBufferedUpdates']();}return _0x11ddef;}['addRevisionData'](_0x939e3d){const _0x184a81=this['repository']['createRevision'](_0x939e3d);return this['adapter']&&_0x184a81['on']('_update',(_0x35f91a,_0x21ca4a,_0xc75411)=>{_0xc75411||(this['_bufferUpdate'](_0x21ca4a['id'],_0x21ca4a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x184a81,this['_findInsertionIndex'](_0x184a81)),_0x184a81;}async['getRevisionDocumentData'](_0x2ccc32){return await this['_utils']['loadRevisionData'](_0x2ccc32,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2ccc32);}async['getRevisionRootsAttributes'](_0x544b57){return await this['_utils']['loadRevisionData'](_0x544b57,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x544b57);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x48e455=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xb0ed1=0x0;_0xb0ed1<_0x48e455['length'];_0xb0ed1++){const _0x143bad=_0x48e455[_0xb0ed1];let _0xff412c=!0x1;for(const _0x5635ec of Object['keys'](_0x143bad))void 0x0===_0x143bad[_0x5635ec]?delete _0x143bad[_0x5635ec]:'id'!==_0x5635ec&&(_0xff412c=!0x0);_0xff412c||(_0x48e455[_0xb0ed1]=null);}if(_0x48e455=_0x48e455['filter'](_0xa53a5a=>null!==_0xa53a5a),!_0x48e455['length'])return;for(let _0x1911d8=0x0;_0x1911d8<_0x48e455['length'];_0x1911d8++){const _0x56e136=_0x48e455[_0x1911d8];void 0x0!==_0x56e136['fromVersion']&&void 0x0===_0x56e136['toVersion']&&(_0x56e136['toVersion']=this['repository']['getRevision'](_0x56e136['id'])['toVersion']),void 0x0!==_0x56e136['toVersion']&&void 0x0===_0x56e136['fromVersion']&&(_0x56e136['fromVersion']=this['repository']['getRevision'](_0x56e136['id'])['fromVersion']);}const _0x1d3cf3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x48e455,_0x1d3cf3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x53f56c=>{if(_0x53f56c){for(const _0x316d20 of _0x53f56c)this['setRevisionData']({'id':_0x316d20['id'],'createdAt':_0x316d20['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x15cb1f=null,from:_0x4e8ee1=null,to:_0x4a4a12=null}){_0x4e8ee1=null!==_0x4e8ee1?_0x4e8ee1:_0x15cb1f['fromVersion'],_0x4a4a12=null!==_0x4a4a12?_0x4a4a12:_0x15cb1f['toVersion'];const _0x518ae8=this['_revisionDataBuilder']['getData'](_0x4e8ee1,_0x4a4a12),_0x56edac={'diffData':_0x518ae8['diffData'],'authorsIds':_0x518ae8['authorsIds'],'fromVersion':_0x4e8ee1,'toVersion':_0x4a4a12};if(!_0x15cb1f||_0x4a4a12!==_0x15cb1f['toVersion']){const _0x2421f0=_0x4a4a12-0x1,_0x515085=this['_source']['history']['getOperation'](_0x2421f0);_0x56edac['createdAt']=_0x515085&&_0x515085['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e8ee1===this['_loadedStateData']['fromVersion']){for(const _0x4acab0 of this['_loadedStateData']['authors'])_0x56edac['authorsIds']['includes'](_0x4acab0['id'])||_0x56edac['authorsIds']['push'](_0x4acab0['id']);}return _0x56edac;}['_bufferUpdate'](_0x1b4dcc,_0x34809c,_0x5bde25){if(this['_bufferedUpdates']['has'](_0x1b4dcc)){const _0x7a3e55=this['_bufferedUpdates']['get'](_0x1b4dcc);_0x34809c=_0x5bde25?{..._0x7a3e55,..._0x34809c}:{..._0x34809c,..._0x7a3e55};}this['_bufferedUpdates']['set'](_0x1b4dcc,_0x34809c);}['setRevisionData'](_0x2bb20b){const _0x9ef52f=this['repository']['getRevision'](_0x2bb20b['id']);if(_0x2bb20b['createdAt']&&(_0x2bb20b['createdAt']=new Date(_0x2bb20b['createdAt'])),_0x2bb20b['authorsIds']){const _0x1844e4=this['editor']['plugins']['get']('Users');_0x2bb20b['authors']=_0x2bb20b['authorsIds']['map'](_0x1503c3=>_0x1844e4['getUser'](_0x1503c3));}_0x9ef52f['_update'](_0x2bb20b,!0x0);}['_createInitialRevision'](_0x69e4b2){const _0x130365=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x130365)this['_initialRevisionId']=_0x130365['id'];else{const _0x260444=!this['editor']['model']['document']['roots']['find'](_0x3255d9=>this['editor']['model']['hasContent'](_0x3255d9)),_0x4776bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x30624f=R(this['editor']['locale'],_0x260444?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x69e4b2,'to':_0x69e4b2,'id':this['_initialRevisionId'],'name':_0x30624f,'creatorId':_0x4776bf});}}['_createCurrentRevision'](_0x1e9062){const _0x14a71f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x14a71f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e9062,'to':_0x1e9062,'id':_0x14a71f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x160924,_0x3d57ab){let _0x36bb35=this['editor']['config']['get']('initialData'),_0x4f5e36=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x36bb35){_0x36bb35={};for(const _0x5ea0cf of this['editor']['model']['document']['getRootNames']())_0x36bb35[_0x5ea0cf]='';}if('string'==typeof _0x36bb35&&(_0x36bb35={'main':_0x36bb35}),void 0x0===_0x4f5e36){_0x4f5e36={};for(const _0x5b9477 of this['editor']['model']['document']['getRootNames']())_0x4f5e36[_0x5b9477]={};}let _0x3f0787=!0x1;const _0x54a4be=Object['keys'](_0x36bb35),_0x4a6945=Object['keys'](_0x160924);for(const _0x175928 of _0x54a4be){if(_0x36bb35[_0x175928]!==_0x160924[_0x175928]&&''!==_0x36bb35[_0x175928]['trim']()){_0x3f0787=!0x0;break;}if(!_0x158881(_0x4f5e36[_0x175928],_0x3d57ab[_0x175928])&&Object['keys'](_0x4f5e36[_0x175928])['length']>0x0){_0x3f0787=!0x0;break;}}_0x3f0787||(_0x3f0787=_0x4a6945['some'](_0x615800=>!this['editor']['model']['document']['getRoot'](_0x615800))),_0x3f0787&&_0x3c4dda('editor-initial-data-replaced-with-revision-data',{'editorData':_0x36bb35,'editorRootsAttributes':_0x4f5e36,'revisionData':_0x160924,'revisionRootsAttributes':_0x3d57ab}),this['editor']['config']['set']('initialData',_0x160924),this['editor']['config']['set']('rootsAttributes',_0x3d57ab);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x11a261=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x11a261['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x350a4b){const _0x1d19c3=this['repository']['getRevisions']();_0x1d19c3['reverse']();let _0x583971=0x0;for(;_0x583971<_0x1d19c3['length'];){const _0x1e01d0=_0x1d19c3[_0x583971];if(_0x1e01d0===this['currentRevision']){_0x583971++;continue;}if(_0x1e01d0['id']===this['_initialRevisionId'])break;const _0x35226e=_0x350a4b['toVersion']-_0x1e01d0['toVersion']||_0x350a4b['fromVersion']-_0x1e01d0['fromVersion'];if(_0x35226e>0x0)break;if(_0x35226e<0x0)_0x583971++;else{if(!_0x350a4b['creator']&&_0x1e01d0['creator'])break;if(_0x1e01d0['creator']||!_0x350a4b['creator']){if(_0x350a4b['createdAt']>_0x1e01d0['createdAt'])break;_0x583971++;}else _0x583971++;}}return _0x583971;}['_getFromVersion'](_0x140ab1){const _0x3fd6c2=this['repository']['getRevisions']();_0x3fd6c2['reverse'](),_0x3fd6c2['shift']();const _0x58b225=_0x3fd6c2['find'](_0xdb1c5e=>_0xdb1c5e['toVersion']<=_0x140ab1)['toVersion'];return _0x58b225<this['_startingVersion']?this['_startingVersion']:_0x58b225;}['_makeRevision']({name:_0x3b7bca,from:_0x3f8343,to:_0x1f69dc,creatorId:_0x423b14,id:_0x24bfd7}){const _0x33c033=this['buildRevisionData']({'from':_0x3f8343,'to':_0x1f69dc});_0x33c033['name']=_0x3b7bca,_0x33c033['creatorId']=_0x423b14,_0x33c033['id']=_0x24bfd7;const _0x27190a=this['addRevisionData'](_0x33c033);return this['adapter']&&this['_bufferUpdate'](_0x33c033['id'],_0x33c033,!0x0),_0x27190a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2e8879){this['editor']=_0x2e8879,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x1e6058){this['source']=_0x1e6058;const _0x1e62c5=new Map(),_0x15c5e6=new Map(),_0x4b6388=this['editor']['model']['document']['roots']['map'](_0x3704fd=>_0x3704fd['rootName']);for(const _0x3db005 of _0x4b6388){const _0x365041=this['editor']['model']['document']['getRoot'](_0x3db005),_0x18aa21=x(_0x365041);_0x1e62c5['set'](_0x3db005,_0x18aa21),_0x15c5e6['set'](_0x3db005,Object['fromEntries'](_0x365041['getAttributes']()));}const _0x134e47=Array['from'](this['editor']['model']['markers'])['map'](_0x166381=>[_0x166381['name'],_0x166381['getRange']()]),_0x33fc99=this['source']['version'];this['_saveMetaData'](_0x33fc99,_0x1e62c5,_0x134e47,_0x15c5e6),this['_startingRevisionId']=this['_revisionId'];const _0x1b0d18=new Map(),_0x487eb2=new Map();for(const _0x5e42ee of _0x4b6388){const _0x536a84=N(_0x5e42ee);_0x1b0d18['set'](_0x5e42ee,_0x536a84),_0x487eb2['set'](_0x5e42ee,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1b0d18,[],_0x487eb2);}['getData'](_0x18fced,_0x8c879c){if(this['_lastFrom']===_0x18fced&&this['_lastTo']<=_0x8c879c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8c879c,!0x0);else{if(!this['_savedMetaData']['has'](_0x18fced)){const _0x12d47b=this['_getPreviousFrom'](_0x18fced);this['_calculateMetaData'](_0x12d47b,_0x18fced,!0x1);}this['_calculateMetaData'](_0x18fced,_0x8c879c,!0x0);}return this['_lastFrom']=_0x18fced,this['_lastTo']=_0x8c879c,this['_getState']();}['loadState'](_0x277e21){const _0x27951d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x277e21['fromVersion'],this['_lastTo']=_0x277e21['toVersion'];for(const _0x2cf676 in _0x277e21['diffData']){const _0x27915b=_0x277e21['diffData'][_0x2cf676]['attachChange'],_0x5a0396=_0x570b2f(_0x277e21['diffData'][_0x2cf676]['attributesBefore'])||{},_0x252d19=_0x27951d['_makeModelFromViewString'](_0x277e21['diffData'][_0x2cf676]['deletions']);_0x252d19['rootName']=_0x2cf676,_0x252d19['_isAttached']=!_0x27915b||!_0x27915b['isAttached'],_0x252d19['isAttached']=()=>_0x252d19['_isAttached'],this['_baseRoots']['set'](_0x2cf676,_0x252d19),this['_baseRootsAttributes']['set'](_0x2cf676,_0x5a0396),_0x27915b&&this['_touchedRoots']['set'](_0x2cf676,_0x27915b);const _0x161627=this['_makeIdsRoot'](_0x252d19);this['_baseIdsRoots']['set'](_0x2cf676,_0x161627);for(const [_0x27978f,_0x401b70]of _0x252d19['markers']){if(!_0x27978f['startsWith']('revision:'))continue;const _0x2085e5=_0x27978f['split'](':')[0x2];for(const _0x33e0c2 of _0x401b70['getWalker']({'singleCharacters':!0x0})){const _0x25145e=this['_getVidAttributeName'](_0x33e0c2),_0x16a291='elementEnd'==_0x33e0c2['type']?_0x33e0c2['previousPosition']['path']['slice'](0x0,-0x1):_0x33e0c2['previousPosition']['path'],_0x112529=_0x161627['getNodeByPath'](_0x16a291)['getAttribute'](_0x25145e);this['_touched']['set'](_0x112529,{'userId':_0x2085e5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x20a533=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x18d3e2=>!this['_touched']['has'](_0x18d3e2));let _0xec8143=0x0;const _0x19d16c=new Map();for(const _0x54c5ba in _0x277e21['diffData']){const _0x188aec=_0x277e21['diffData'][_0x54c5ba]['attachChange'],_0x9f6552=_0x570b2f(_0x277e21['diffData'][_0x54c5ba]['attributesAfter'])||{},_0xd33806=_0x27951d['_makeModelFromViewString'](_0x277e21['diffData'][_0x54c5ba]['insertions']);_0xd33806['rootName']=_0x54c5ba,_0xd33806['_isAttached']=!_0x188aec||_0x188aec['isAttached'],_0xd33806['isAttached']=()=>_0xd33806['_isAttached'],this['_diffRoots']['set'](_0x54c5ba,_0xd33806),this['_diffRootsAttributes']['set'](_0x54c5ba,_0x9f6552);const _0x3d2c9d=this['_makeIdsRoot'](_0xd33806,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x54c5ba,_0x3d2c9d),_0x19d16c['set'](_0x54c5ba,_0xd33806['isAttached']()?_0x9f6552:{});for(const [_0x2c8997,_0x58647c]of _0xd33806['markers']){if(!_0x2c8997['startsWith']('revision:'))continue;const _0x259d44=_0x2c8997['split'](':')[0x2];for(const _0x45779c of _0x58647c['getWalker']({'singleCharacters':!0x0})){const _0x415abf=this['_getVidAttributeName'](_0x45779c),_0x4c63c2=this['_revisionId']++,_0xda1369='elementEnd'==_0x45779c['type']?_0x45779c['previousPosition']['path']['slice'](0x0,-0x1):_0x45779c['previousPosition']['path'];_0x3d2c9d['getNodeByPath'](_0xda1369)['_setAttribute'](_0x415abf,_0x4c63c2),this['_touched']['set'](_0x4c63c2,{'userId':_0x259d44});}}for(const _0x1eba96 of this['editor']['model']['createRangeIn'](_0xd33806)['getWalker']({'singleCharacters':!0x0})){const _0x57d613=this['_getVidAttributeName'](_0x1eba96),_0x10e48f='elementEnd'==_0x1eba96['type']?_0x1eba96['previousPosition']['path']['slice'](0x0,-0x1):_0x1eba96['previousPosition']['path'],_0x2b497d=_0x3d2c9d['getNodeByPath'](_0x10e48f);_0x2b497d['getAttribute'](_0x57d613)>0x0||_0x2b497d['_setAttribute'](_0x57d613,_0x20a533[_0xec8143++]);}for(const [_0x273d54,_0x4a466e]of _0xd33806['markers'])_0x273d54['startsWith']('revision:')||this['_markers']['set'](_0x273d54,_0x4a466e);}const _0x3b049a=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3b049a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b049a,0x1));const _0x3a842a=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3a842a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a842a,0x1));const _0x50bba2=Array['from'](this['_diffRoots'])['map'](([_0x38c71d,_0x1b18ef])=>[_0x38c71d,x(_0x1b18ef)]);this['_saveMetaData'](this['_lastTo'],_0x50bba2,this['_markers'],_0x19d16c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4c25db,_0x62ffdb,_0x37caef,_0x4b68e9){const _0x14a036=new Map(_0x62ffdb),_0x5519d0=new Map(_0x570b2f(_0x4b68e9)),_0x4ae15f=new Map();for(const [_0x30cf99,_0x462299]of _0x37caef)_0x4ae15f['set'](_0x30cf99,{'start':_0x462299['start']['clone'](),'end':_0x462299['end']['clone'](),'rootName':_0x462299['root']['rootName']});this['_savedMetaData']['set'](_0x4c25db,{'roots':_0x14a036,'markers':_0x4ae15f,'rootsAttributes':_0x5519d0});}['_removeMetaData'](_0x2f637f){this['_savedMetaData']['delete'](_0x2f637f);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x36d88b,_0x2e7154=null){let _0xed8ec0=null;_0x36d88b['is']('documentFragment')||(_0xed8ec0=new _0x149c78(_0x36d88b['name'],{'vid_start':null===_0x2e7154?this['_revisionId']++:_0x2e7154++}));const _0x125d29=[];for(const _0x307aae of _0x36d88b['getChildren']())if(_0x307aae['is']('element')){_0x125d29['push'](this['_makeIdsRoot'](_0x307aae,_0x2e7154));const _0x2017ff=_0x125d29[_0x125d29['length']-0x1];null!==_0x2e7154&&(_0x2e7154=_0x2017ff['is']('element','$text')?_0x2017ff['getAttribute']('vid')+0x1:_0x2017ff['getAttribute']('vid_end')+0x1);}else{for(let _0xfde36b=0x0;_0xfde36b<_0x307aae['offsetSize'];_0xfde36b++)_0x125d29['push'](new _0x149c78('$text',{'vid':null===_0x2e7154?this['_revisionId']++:_0x2e7154++}));}if(_0x36d88b['is']('documentFragment')){const _0x44d3e5=N(_0x36d88b['rootName']);return _0x44d3e5['_insertChild'](0x0,_0x125d29),_0x44d3e5;}return _0xed8ec0['_setAttribute']('vid_end',null===_0x2e7154?this['_revisionId']++:_0x2e7154++),_0xed8ec0['_insertChild'](0x0,_0x125d29),_0xed8ec0;}['_calculateMetaData'](_0x35b349,_0x535ced,_0x4fb822){this['_reset']();const {roots:_0x273fdd,markers:_0x4e07ff,rootsAttributes:_0x2fda2e}=this['_savedMetaData']['get'](_0x35b349);this['_baseRoots']=new Map(_0x273fdd),this['_baseRootsAttributes']=new Map(_0x570b2f(_0x2fda2e));for(const [_0xa87e3,_0x374a2a]of this['_baseRoots'])if('$graveyard'!==_0xa87e3&&(this['_diffRoots']['set'](_0xa87e3,x(_0x374a2a)),this['_diffRootsAttributes']=new Map(_0x570b2f(_0x2fda2e)),_0x4fb822)){const _0x368f1f=this['_revisionId'];this['_idsRoots']['set'](_0xa87e3,this['_makeIdsRoot'](_0x374a2a)),this['_baseIdsRoots']['set'](_0xa87e3,this['_makeIdsRoot'](_0x374a2a,_0x368f1f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4fb822&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x49f7c5,_0x51df03]of _0x4e07ff){const _0x345665=this['_baseRoots']['get'](_0x51df03['rootName']),_0x3f28e6=this['_diffRoots']['get'](_0x51df03['rootName']),_0x2f08dc=new _0x16968a(this['_fixPosition'](_0x51df03['start'],_0x345665),this['_fixPosition'](_0x51df03['end'],_0x345665)),_0x5bcf7e=this['_fixRange'](_0x2f08dc,_0x3f28e6);_0x345665['markers']['set'](_0x49f7c5,_0x2f08dc),this['_markers']['set'](_0x49f7c5,_0x5bcf7e);}this['_applyOperations'](_0x35b349,_0x535ced,_0x4fb822);}['_applyOperations'](_0x7b6188,_0x1421eb,_0x4416f0){for(const _0x39464e of this['source']['getOperations'](_0x7b6188,_0x1421eb))this['_handleOperation'](_0x39464e,_0x4416f0);for(const _0x4bbbdb of this['_diffRoots']['values']())_0x4bbbdb['markers']['clear']();for(const [_0x3efa6f,_0xce3163]of this['_markers']){this['_diffRoots']['get'](_0xce3163['root']['rootName'])['markers']['set'](_0x3efa6f,_0xce3163['clone']());}const _0x5be5b5=new Map(),_0x58deff=new Map();for(const [_0x3ec5ad,_0x301d51]of this['_diffRoots'])_0x5be5b5['set'](_0x3ec5ad,x(_0x301d51)),_0x58deff['set'](_0x3ec5ad,this['_diffRootsAttributes']['get'](_0x3ec5ad));this['_saveMetaData'](_0x1421eb,_0x5be5b5,this['_markers'],_0x58deff);}['_getPreviousFrom'](_0x1f84fd){const _0x279c06=Array['from'](this['_savedMetaData']['keys']());_0x279c06['sort']((_0x3d8bb2,_0x4c3606)=>_0x3d8bb2-_0x4c3606),_0x279c06['reverse']();for(const _0x365959 of _0x279c06)if(_0x365959<_0x1f84fd)return _0x365959;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4599b8,_0x53add2){const _0x2d32d0=Array['from'](_0x53add2['markers'])['map'](([_0x428c02,_0x190ad7])=>[_0x428c02,this['_fixRange'](_0x190ad7,_0x4599b8)]);_0x4599b8['markers']=new Map(_0x2d32d0);}['_transformMarkers'](_0x4a85f1){for(const _0x2fd12f of this['_markers']['values']()){const _0x28ee7c=_0x2fd12f['getTransformedByOperation'](_0x4a85f1),_0x32ebaf=_0x16968a['_createFromRanges'](_0x28ee7c);_0x2fd12f['start']=_0x32ebaf['start'],_0x2fd12f['end']=_0x32ebaf['end'];}}['_handleOperation'](_0x228ff3,_0x1e7b17){if('addRoot'!=_0x228ff3['type']&&'detachRoot'!=_0x228ff3['type']){if('insert'==_0x228ff3['type']){const _0x2614be=_0x228ff3['position']['root']['rootName'];this['_diffRoots']['has'](_0x2614be)||(this['_diffRoots']['set'](_0x2614be,N(_0x2614be,!0x0)),this['_diffRootsAttributes']['set'](_0x2614be,{}),_0x1e7b17&&this['_idsRoots']['set'](_0x2614be,N(_0x2614be,!0x0)));}else{if('addRootAttribute'==_0x228ff3['type']||'removeRootAttribute'==_0x228ff3['type']||'changeRootAttribute'==_0x228ff3['type'])return void this['_handleRootAttributeOperation'](_0x228ff3);'marker'==_0x228ff3['type']&&this['_handleMarkerOperation'](_0x228ff3);}if('marker'!==_0x228ff3['type']){const _0x2eb9e1=this['_cloneOperation'](_0x228ff3,this['_diffRoots']);_0x2eb9e1['_execute'](),this['_transformMarkers'](_0x2eb9e1);}if(_0x1e7b17)switch(_0x228ff3['type']){case'insert':this['_handleInsertOperation'](_0x228ff3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x228ff3);break;case'merge':this['_handleMergeOperation'](_0x228ff3);break;case'split':this['_handleSplitOperation'](_0x228ff3);}}else this['_handleRootOperation'](_0x228ff3,_0x1e7b17);}['_cloneOperation'](_0x2e41e4,_0x89e70b){const _0x3c03e0=_0x2e41e4['clone']();return _0x3c03e0['_authorId']=_0x2e41e4['_authorId'],this['_fixOperation'](_0x3c03e0,_0x89e70b),_0x3c03e0;}['_getBaseVids'](_0x250b4d){return _0x250b4d['map'](_0x51c371=>{const _0x2534d3=this['_getVidAttributeName'](_0x51c371);return Number(_0x51c371['item']['getAttribute'](_0x2534d3));});}['_generateTape'](_0x20f891,_0x6f3adf){if(_0x20f891['is']('element','$text'))_0x6f3adf['push']({'item':_0x20f891,'type':'text'});else{_0x20f891['is']('element')&&_0x6f3adf['push']({'item':_0x20f891,'type':'elementStart'});for(const _0x4477a1 of _0x20f891['getChildren']())this['_generateTape'](_0x4477a1,_0x6f3adf);_0x20f891['is']('element')&&_0x6f3adf['push']({'item':_0x20f891,'type':'elementEnd'});}return _0x6f3adf;}['_getState'](){const _0x5e9500=new Map(this['_touched']),_0x4ed646=new Map(_0x5e9500),_0x7eeeca=new Map(),_0x513bb3={'insertions':{},'deletions':{}},_0x25a591={'insertions':{},'deletions':{}},_0x43d991=new Map(),_0x17712b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x17712b['delete']('$graveyard');for(const _0x3b4854 of _0x17712b){const _0x113175=this['_diffRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1),_0x5d111b=this['_baseRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1);_0x113175['isAttached']()||_0x5d111b['isAttached']()?(_0x513bb3['insertions'][_0x3b4854]=x(_0x113175),_0x513bb3['deletions'][_0x3b4854]=x(_0x5d111b),this['_copyMarkers'](_0x513bb3['deletions'][_0x3b4854],_0x5d111b),this['_copyMarkers'](_0x513bb3['insertions'][_0x3b4854],_0x113175),_0x25a591['insertions'][_0x3b4854]=this['_generateTape'](this['_idsRoots']['get'](_0x3b4854),[]),_0x25a591['deletions'][_0x3b4854]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3b4854)||N(_0x3b4854,!0x1),[])):_0x17712b['delete'](_0x3b4854);}for(const _0x104e06 of _0x17712b){const _0xb9fade=_0x25a591['insertions'][_0x104e06];for(const _0x221fc5 of _0xb9fade){const _0x19244a=this['_getVidAttributeName'](_0x221fc5),_0x5102b8=_0x221fc5['item']['getAttribute'](_0x19244a);_0x4ed646['delete'](_0x5102b8),_0x5102b8>=this['_startingRevisionId']&&_0x7eeeca['set'](_0x5102b8,_0x5e9500['get'](_0x5102b8));}}for(const _0x1de46c of _0x17712b){const _0x248a8a=_0x25a591['insertions'][_0x1de46c],_0x571d36=this['_getBaseVids'](_0x25a591['deletions'][_0x1de46c]);let _0x1d04f3=0x0;for(const _0x116a60 of _0x248a8a){const _0x546ae7=this['_getVidAttributeName'](_0x116a60),_0x238f60=_0x116a60['item']['getAttribute'](_0x546ae7);if(!_0x7eeeca['has'](_0x238f60)&&!_0x43d991['has'](_0x238f60)){if(_0x4ed646['has'](_0x238f60))_0x1d04f3++;else{if(_0x238f60!=_0x571d36[_0x1d04f3]){const _0x3087fd=_0x5e9500['get'](_0x238f60)||_0x5e9500['get'](_0x571d36[_0x1d04f3]);for(;_0x238f60!=_0x571d36[_0x1d04f3];)_0x4ed646['has'](_0x571d36[_0x1d04f3])||(_0x43d991['set'](_0x571d36[_0x1d04f3],_0x3087fd),_0x5e9500['set'](_0x571d36[_0x1d04f3],_0x3087fd)),_0x1d04f3++;}_0x1d04f3++;}}}}for(const _0x517c2c of _0x17712b){const _0x34fd42=_0x25a591['insertions'][_0x517c2c];for(const _0x186947 of _0x34fd42){const _0x5297fa=this['_getVidAttributeName'](_0x186947),_0x2ebba6=_0x186947['item']['getAttribute'](_0x5297fa);if(_0x43d991['has'](_0x2ebba6)){const _0x2d43f9=_0x43d991['get'](_0x2ebba6);_0x4ed646['has'](_0x2ebba6)||_0x4ed646['set'](_0x2ebba6,{..._0x2d43f9}),_0x7eeeca['set'](_0x2ebba6,{..._0x2d43f9});}}}for(const _0x121938 of _0x4ed646['keys']())_0x121938>=this['_startingRevisionId']&&_0x4ed646['delete'](_0x121938);const _0x1391bc=new Map();for(const _0x55fdc0 of _0x17712b){let _0x10d900=_0x25a591['insertions'][_0x55fdc0];for(const _0x16b29d of _0x10d900)if(_0x16b29d['item']['is']('element','tableCell')){const _0x4f6285=this['_getVidAttributeName'](_0x16b29d),_0xc9bf21=_0x16b29d['item']['getAttribute'](_0x4f6285);if(_0x7eeeca['has'](_0xc9bf21)){const _0x3d0b40=_0x16b29d['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a842f=_0x1391bc['get'](_0x3d0b40)||new Set();_0x3a842f['add'](_0x7eeeca['get'](_0xc9bf21)['userId']),_0x1391bc['set'](_0x3d0b40,_0x3a842f);}}_0x10d900=_0x25a591['deletions'][_0x55fdc0];for(const _0x5f52ce of _0x10d900)if(_0x5f52ce['item']['is']('element','tableCell')){const _0x70f123=this['_getVidAttributeName'](_0x5f52ce),_0x4f891e=_0x5f52ce['item']['getAttribute'](_0x70f123);if(_0x4ed646['has'](_0x4f891e)){const _0x240548=_0x5f52ce['item']['parent']['parent']['getAttribute']('vid_start'),_0xa5f54c=_0x1391bc['get'](_0x240548)||new Set();_0xa5f54c['add'](_0x4ed646['get'](_0x4f891e)['userId']),_0x1391bc['set'](_0x240548,_0xa5f54c);}}for(const _0x59b2a8 of _0x1391bc['keys']())(_0x7eeeca['has'](_0x59b2a8)||_0x4ed646['has'](_0x59b2a8))&&_0x1391bc['delete'](_0x59b2a8);}for(const _0x704826 of _0x17712b){const _0x1778d1=_0x25a591['insertions'][_0x704826];let _0x27729a=null,_0x34b412=null;for(const _0x45a213 of _0x1778d1){const _0x4620d1=this['_getVidAttributeName'](_0x45a213),_0x4141c2=_0x45a213['item']['getAttribute'](_0x4620d1),_0x444a7f=_0x1391bc['get'](_0x4141c2);_0x444a7f&&'elementStart'==_0x45a213['type']&&(_0x27729a=Array['from'](_0x444a7f)[0x0],_0x34b412=_0x45a213['item']['getAttribute']('vid_end')),_0x27729a&&(_0x4ed646['set'](_0x4141c2,{'userId':_0x27729a}),_0x7eeeca['set'](_0x4141c2,{'userId':_0x27729a})),_0x4141c2==_0x34b412&&(_0x27729a=null,_0x34b412=null);}}const _0x29113d={},_0x3ce64a=new Set();for(const _0x7f60de of _0x17712b){const _0x47d888=_0x513bb3['deletions'][_0x7f60de],_0x3d4a67=_0x513bb3['insertions'][_0x7f60de];for(const {userId:_0x527cc4}of this['_touchedMarkers']['values']())null!==_0x527cc4&&_0x3ce64a['add'](_0x527cc4);for(const {userId:_0x4f6990}of this['_touchedRoots']['values']())null!==_0x4f6990&&_0x3ce64a['add'](_0x4f6990);this['_markChanges'](_0x3d4a67,_0x25a591['insertions'][_0x7f60de],_0x7eeeca,'insertion',_0x3ce64a),this['_markChanges'](_0x47d888,_0x25a591['deletions'][_0x7f60de],_0x4ed646,'deletion',_0x3ce64a),_0x29113d[_0x7f60de]={'insertions':this['_prepareViewToSave'](_0x3d4a67),'deletions':this['_prepareViewToSave'](_0x47d888),'attachChange':this['_touchedRoots']['get'](_0x7f60de)||null,'attributesBefore':_0x570b2f(this['_baseRootsAttributes']['get'](_0x7f60de))||{},'attributesAfter':_0x570b2f(this['_diffRootsAttributes']['get'](_0x7f60de))};}return{'diffData':_0x29113d,'authorsIds':Array['from'](_0x3ce64a)};}['_processRootBeforeSave'](_0x582519){for(const [,_0x4e6fb1]of _0x582519['markers']){const _0x26ff2e=_0x4e6fb1['start']['getAncestors']()['filter'](_0x32878b=>'tableCell'==_0x32878b['name']);for(const _0x58d814 of _0x26ff2e)0x1==_0x58d814['childCount']&&_0x58d814['getChild'](0x0)['is']('element','paragraph')&&_0x58d814['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3f8b96){this['_processRootBeforeSave'](_0x3f8b96);const _0x38d74f=this['editor']['data']['toView'](_0x3f8b96,{}),_0x272605=Array['from'](_0x38d74f['getChildren']())['map'](_0x18167a=>this['_getViewJson'](_0x18167a));return JSON['stringify'](_0x272605);}['_getViewJson'](_0x9dc480){if(_0x9dc480['is']('$text'))return _0x9dc480['data'];{const _0x22a281=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3c9a7f=_0x9dc480,_0x152a36=this['editor']['data']['htmlProcessor']['domConverter'],_0x153e2d={'type':_0x22a281['_getTypeCharForViewElement'](_0x3c9a7f),'name':_0x3c9a7f['name'],'attributes':Array['from'](_0x3c9a7f['getAttributes']()),'children':Array['from'](_0x3c9a7f['getChildren']())['map'](_0x11a963=>this['_getViewJson'](_0x11a963))};if(_0x9dc480['is']('uiElement')&&'$comment'!=_0x9dc480['name']){const _0xbe5695=_0x9dc480['render'](_0x152a36['domDocument'],_0x152a36);_0x153e2d['children']['push'](_0xbe5695['outerHTML']);}else{if(_0x9dc480['is']('rawElement')){const _0x50d410=_0x152a36['domDocument']['createElement'](_0x3c9a7f['name']);_0x9dc480['render'](_0x50d410,_0x152a36),_0x153e2d['children']['push'](_0x50d410['innerHTML']);}}const _0x3bda76=Array['from'](_0x3c9a7f['getCustomProperties']());_0x3bda76['length']>0x0&&(_0x153e2d['customProperties']=_0x3bda76);const _0x23f1c9=_0x3c9a7f['getFillerOffset']();return null!==_0x23f1c9&&(_0x153e2d['fillerOffset']=_0x23f1c9),_0x153e2d;}}['_markChanges'](_0x5e3b7a,_0x5e58d5,_0x3bd89e,_0x39bcb5,_0x5e9032){let _0x486e82=null,_0x163029=null,_0x418bec=0x0;const _0x53e8e0=this['editor']['model'];for(let _0x5e579b=0x0;_0x5e579b<_0x5e58d5['length'];_0x5e579b++){const _0x1959f3=this['_getVidAttributeName'](_0x5e58d5[_0x5e579b]),_0xd303e5=_0x5e58d5[_0x5e579b]['item']['getAttribute'](_0x1959f3),_0x15ea8a=_0x3bd89e['get'](_0xd303e5),_0xee2a3a=_0x5e579b==_0x5e58d5['length']-0x1;(!_0x486e82&&_0x15ea8a&&(_0x486e82=_0x15ea8a,_0x163029=_0x5e58d5[_0x5e579b]),_0x486e82&&(!_0x15ea8a||_0x15ea8a['userId']!=_0x486e82['userId']))&&(_0x39c1a6(_0x15ea8a,P(_0x163029,_0x5e3b7a,_0x53e8e0),P(_0x5e58d5[_0x5e579b],_0x5e3b7a,_0x53e8e0)),_0x486e82=_0x15ea8a||null,_0x163029=_0x15ea8a?_0x5e58d5[_0x5e579b]:null),_0x486e82&&_0xee2a3a&&_0x39c1a6(_0x15ea8a,P(_0x163029,_0x5e3b7a,_0x53e8e0),V(_0x5e58d5[_0x5e579b],_0x5e3b7a,_0x53e8e0));}function _0x39c1a6(_0x4c7455,_0x21c19c,_0xe7f6ad){const _0x5d4e31=_0x486e82['userId'],_0x2b6551='revision:'+_0x39bcb5+':'+_0x5d4e31+':'+_0x418bec++,_0x264c8f=_0x53e8e0['createRange'](_0x21c19c,_0xe7f6ad);_0x5e3b7a['markers']['set'](_0x2b6551,_0x264c8f),null!==_0x5d4e31&&_0x5e9032['add'](_0x5d4e31);}}['_getVidAttributeName'](_0x317a32){switch(_0x317a32['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb65c6e,_0x9cd09d){_0xb65c6e['baseVersion']=null;for(const _0x48ddc6 in _0xb65c6e){const _0x1f2c7a=_0xb65c6e[_0x48ddc6];if(_0x1f2c7a instanceof _0x424c40){const _0x12c3a7=_0x9cd09d['get'](_0x1f2c7a['root']['rootName']);_0xb65c6e[_0x48ddc6]=this['_fixPosition'](_0x1f2c7a,_0x12c3a7);}if(_0x1f2c7a instanceof _0x16968a){const _0x383280=_0x9cd09d['get'](_0x1f2c7a['root']['rootName']);_0xb65c6e[_0x48ddc6]=this['_fixRange'](_0x1f2c7a,_0x383280);}'root'===_0x48ddc6&&(_0xb65c6e['root']=_0x9cd09d['get'](_0xb65c6e['root']['rootName']));}}['_fixRange'](_0x4710e8,_0x3ee51c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4710e8['start'],_0x3ee51c),this['_fixPosition'](_0x4710e8['end'],_0x3ee51c));}['_fixPosition'](_0xf49c46,_0x1fc219){return this['editor']['model']['createPositionFromPath'](_0x1fc219,_0xf49c46['path'],_0xf49c46['stickiness']);}['_handleInsertOperation'](_0x226a90){const _0x14c0f8=this['_idsRoots']['get'](_0x226a90['position']['root']['rootName']),_0x24cfba=this['_fixPosition'](_0x226a90['position'],_0x14c0f8),_0x2cdca8=null===_0x226a90['_authorId']?null:_0x226a90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb3d501=_0x24cfba['parent'],_0x276994=this['_revisionId'],_0x1072ea=[];for(const _0x52b56c of _0x226a90['nodes'])if(_0x52b56c['is']('element'))_0x1072ea['push'](this['_makeIdsRoot'](_0x52b56c));else{for(let _0x380b44=0x0;_0x380b44<_0x52b56c['offsetSize'];_0x380b44++)_0x1072ea['push'](new _0x149c78('$text',{'vid':this['_revisionId']++}));}const _0x1de12d=this['_revisionId'];for(let _0x331e87=_0x276994;_0x331e87<_0x1de12d;_0x331e87++)this['_touched']['set'](_0x331e87,{'userId':_0x2cdca8});_0xb3d501['_insertChild'](_0x24cfba['offset'],_0x1072ea);}['_handleMoveOperation'](_0x5d7fb7){(_0x5d7fb7=this['_cloneOperation'](_0x5d7fb7,this['_idsRoots']))['_execute']();const _0x549a9b=null===_0x5d7fb7['_authorId']?null:_0x5d7fb7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d05c4=_0x5d7fb7['getMovedRangeStart'](),_0x41f004=_0x2d05c4['parent'],_0x30d294=_0x2d05c4['offset'];!function _0x2a354e(_0x8be612,_0x350575,_0x758be,_0x55b0f2){for(let _0x40c556=_0x758be;_0x40c556<_0x55b0f2;_0x40c556++){const _0x1b6c92=_0x350575['getChild'](_0x40c556);_0x1b6c92['is']('element','$text')?_0x8be612['set'](_0x1b6c92['getAttribute']('vid'),{'userId':_0x549a9b}):(_0x8be612['set'](_0x1b6c92['getAttribute']('vid_start'),{'userId':_0x549a9b}),_0x2a354e(_0x8be612,_0x1b6c92,0x0,_0x1b6c92['childCount']),_0x8be612['set'](_0x1b6c92['getAttribute']('vid_end'),{'userId':_0x549a9b}));}}(this['_touched'],_0x41f004,_0x30d294,_0x30d294+_0x5d7fb7['howMany']);}['_handleMergeOperation'](_0x254d76){const _0xa75d57=null===(_0x254d76=this['_cloneOperation'](_0x254d76,this['_idsRoots']))['_authorId']?null:_0x254d76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5758ac=_0x254d76['targetPosition']['parent'],_0x48a879=_0x254d76['sourcePosition']['parent'],_0x4dcf2b=_0x5758ac['getAttribute']('vid_end'),_0x5275fa=_0x48a879['getAttribute']('vid_start');_0x5758ac['_setAttribute']('vid_end',_0x48a879['getAttribute']('vid_end')),_0x48a879['_setAttribute']('vid_end',_0x4dcf2b),this['_touched']['set'](_0x5275fa,{'userId':_0xa75d57}),this['_touched']['set'](_0x4dcf2b,{'userId':_0xa75d57}),_0x254d76['_execute']();}['_handleSplitOperation'](_0x103b37){const _0x5c3b32=null===(_0x103b37=this['_cloneOperation'](_0x103b37,this['_idsRoots']))['_authorId']?null:_0x103b37['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a5144=_0x103b37['graveyardPosition'],_0x50f4bb=_0x103b37['splitPosition']['parent'];_0x103b37['_execute']();const _0x2f060d=_0x50f4bb['getAttribute']('vid_end'),_0x5b4271=_0x103b37['insertionPosition']['nodeAfter'];if(_0x4a5144){const _0x3d2bbe=_0x5b4271['getAttribute']('vid_end'),_0x1f1872=_0x50f4bb['getAttribute']('vid_end');_0x50f4bb['_setAttribute']('vid_end',_0x3d2bbe),_0x5b4271['_setAttribute']('vid_end',_0x1f1872),this['_touched']['set'](_0x50f4bb['getAttribute']('vid_end'),{'userId':_0x5c3b32}),this['_touched']['set'](_0x5b4271['getAttribute']('vid_start'),{'userId':_0x5c3b32});}else{const _0x1eef73=this['_revisionId']++,_0x9b2d1c=this['_revisionId']++;_0x50f4bb['_setAttribute']('vid_end',_0x1eef73),_0x5b4271['_setAttribute']('vid_start',_0x9b2d1c),_0x5b4271['_setAttribute']('vid_end',_0x2f060d),this['_touched']['set'](_0x1eef73,{'userId':_0x5c3b32}),this['_touched']['set'](_0x9b2d1c,{'userId':_0x5c3b32});}}['_handleMarkerOperation'](_0xd61c78){if(!_0xd61c78['affectsData'])return;const _0x51d871=(_0xd61c78=this['_cloneOperation'](_0xd61c78,this['_diffRoots']))['oldRange']?_0xd61c78['oldRange']['root']:null,_0x462fe1=_0xd61c78['newRange']?_0xd61c78['newRange']['root']:null;_0x51d871&&this['_markers']['delete'](_0xd61c78['name']),_0x462fe1&&this['_markers']['set'](_0xd61c78['name'],_0xd61c78['newRange']['clone']());const _0x2a54cd=null===_0xd61c78['_authorId']?null:_0xd61c78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x183af3=_0xd61c78['name'];if(!this['_touchedMarkers']['has'](_0x183af3))return void this['_touchedMarkers']['set'](_0x183af3,{'range':_0xd61c78['oldRange'],'userId':_0x2a54cd});const _0x4b9d8b=this['_touchedMarkers']['get'](_0x183af3),_0xbf032d=_0x4b9d8b['range'],_0x5009de=_0xd61c78['newRange'];null==_0xbf032d&&null==_0x5009de||_0xbf032d&&_0x5009de&&_0xbf032d['isEqual'](_0x5009de)?this['_touchedMarkers']['delete'](_0xd61c78['name']):_0x4b9d8b['userId']=_0x2a54cd;}['_handleRootOperation'](_0x1d3780,_0x46390e){this['_diffRoots']['has'](_0x1d3780['rootName'])?this['_diffRoots']['get'](_0x1d3780['rootName'])['_isAttached']=_0x1d3780['isAdd']:(this['_diffRoots']['set'](_0x1d3780['rootName'],N(_0x1d3780['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1d3780['rootName'],{}),_0x46390e&&this['_idsRoots']['set'](_0x1d3780['rootName'],N(_0x1d3780['rootName'],!0x0)));const _0x2d514f=null===_0x1d3780['_authorId']?null:_0x1d3780['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11b53e=this['_touchedRoots']['get'](_0x1d3780['rootName']);_0x11b53e&&_0x11b53e['userId']===_0x2d514f?this['_touchedRoots']['delete'](_0x1d3780['rootName']):this['_touchedRoots']['set'](_0x1d3780['rootName'],{'userId':_0x2d514f,'isAttached':_0x1d3780['isAdd']});}['_handleRootAttributeOperation'](_0x152729){const _0x867d63=this['_diffRootsAttributes']['get'](_0x152729['root']['rootName']);null===_0x152729['newValue']?delete _0x867d63[_0x152729['key']]:_0x867d63[_0x152729['key']]=_0x152729['newValue'];}}function x(_0x4637f8){const _0x3c06a4=N(_0x4637f8['rootName'],_0x4637f8['isAttached']());for(const _0x4f0799 of _0x4637f8['getChildren']()){const _0x320186=_0x4f0799['_clone'](!0x0);_0x3c06a4['_appendChild'](_0x320186);}return _0x3c06a4;}function N(_0x25890c,_0x4fe45f=!0x0){const _0x51bca7=new _0x1017e4();return _0x51bca7['rootName']=_0x25890c,_0x51bca7['_isAttached']=_0x4fe45f,_0x51bca7['isAttached']=()=>_0x51bca7['_isAttached'],_0x51bca7;}function P(_0x3b4da4,_0xd3acd,_0x426a53){const _0x23c43a='elementEnd'==_0x3b4da4['type']?_0x426a53['createPositionAt'](_0x3b4da4['item'],'end'):_0x426a53['createPositionBefore'](_0x3b4da4['item']);return _0x426a53['createPositionFromPath'](_0xd3acd,_0x23c43a['path'],_0x23c43a['stickiness']);}function V(_0x1c839e,_0x2b59c1,_0x513762){const _0x3c096='elementStart'==_0x1c839e['type']?_0x513762['createPositionAt'](_0x1c839e['item'],0x0):_0x513762['createPositionAfter'](_0x1c839e['item']);return _0x513762['createPositionFromPath'](_0x2b59c1,_0x3c096['path'],_0x3c096['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4930e8(_0x5372f9){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x598ce3,_0x296857){super(_0x598ce3),this['focusTracker']=new _0x51224f(),this['keystrokes']=new _0x5ba12a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x296857),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'](),_0x9dd0f8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x161c48=_0x536625=>_0x536625['stopPropagation']();this['keystrokes']['set']('arrowright',_0x161c48),this['keystrokes']['set']('arrowleft',_0x161c48),this['keystrokes']['set']('arrowup',_0x161c48),this['keystrokes']['set']('arrowdown',_0x161c48);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x57278b){this['revisionNameInputView']['fieldView']['element']['value']=_0x57278b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x7ce1ef){const _0x4120bd=new et(this['locale'],ti),_0x5efa53=_0x4120bd['fieldView'];_0x5efa53['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x342b91=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x7ce1ef&&(_0x342b91+='\x20('+R(this['locale'],'optional')+')'),(_0x4120bd['label']=_0x342b91,_0x5efa53['on']('input',()=>{this['revisionNameInputValue']=_0x5efa53['element']['value']['trim']();}),_0x4120bd);}}class v extends _0x40d69e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x2b821f=this['editor'],_0x1d9569=_0x2b821f['plugins']['get']('RevisionTracker');_0x2b821f['ui']['componentFactory']['add']('revisionHistory',_0x285a46=>{const _0x3d9baa=_0x5bfde6(_0x285a46),_0x8e7077=_0x3d9baa['panelView']['children'],_0x41f0bc=new _0x41ec92(_0x285a46),_0x28ded3=new _0x22c231(_0x285a46),_0x51814a=new _0x4c294d(_0x285a46),_0x2dc229=new _0x22c231(_0x285a46),_0x1e5090=new _0x4c294d(_0x285a46);return _0x3d9baa['bind']('isEnabled')['to'](_0x1d9569,'isReady',_0x1d9569,'isEnabled',_0x2b821f,'isReadOnly',(_0x25dd6f,_0x3271d8,_0x554d02)=>_0x25dd6f&&_0x3271d8&&!_0x554d02),_0x3d9baa['buttonView']['set']({'icon':_0x5a259c,'label':R(_0x285a46,'Revision\x20history'),'tooltip':!0x0}),_0x51814a['set']({'label':R(_0x285a46,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x51814a['bind']('isEnabled')['to'](_0x1d9569,'isReady',_0x1d9569,'isEnabled',_0x2b821f,'isReadOnly',(_0x2239a7,_0x327015,_0x482960)=>_0x2239a7&&_0x327015&&!_0x482960),_0x51814a['on']('execute',()=>this['_showDialog']()),_0x1e5090['set']({'label':R(_0x285a46,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e5090['bind']('isEnabled')['to'](_0x1d9569,'isReady',_0x2b821f,'isReadOnly',(_0x3ff1d2,_0x5a98b0)=>_0x3ff1d2&&!_0x5a98b0),_0x1e5090['on']('execute',()=>{_0x2b821f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d9baa['isOpen']=!0x1,_0x2b821f['editing']['view']['focus']();}),_0x28ded3['children']['add'](_0x51814a),_0x2dc229['children']['add'](_0x1e5090),_0x41f0bc['role']='menu',_0x41f0bc['items']['addMany']([_0x28ded3,_0x2dc229]),_0x8e7077['add'](_0x41f0bc),_0x3d9baa;}),_0x2b821f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x48578a=this['editor'],_0x461126=_0x48578a['locale'],_0x98b8d2=new _0x518481(_0x461126),_0x4ea201=new _0x1ec7f2(_0x461126);_0x98b8d2['buttonView']['set']({'icon':_0x5a259c,'label':R(_0x461126,'Revision\x20history')});const _0x1b6fc1=new _0x3e0b15(_0x461126,_0x98b8d2),_0x220860=new _0x398d58(_0x461126);_0x220860['set']({'label':R(_0x461126,'Save\x20current\x20revision')}),_0x220860['delegate']('execute')['to'](_0x98b8d2),_0x220860['on']('execute',()=>{this['_showDialog']();}),_0x1b6fc1['children']['add'](_0x220860),_0x4ea201['items']['add'](_0x1b6fc1);const _0x1c0326=new _0x3e0b15(_0x461126,_0x98b8d2),_0x1d56b8=new _0x398d58(_0x461126);return _0x1d56b8['set']({'label':R(_0x461126,'Open\x20revision\x20history')}),_0x1d56b8['delegate']('execute')['to'](_0x98b8d2),_0x1d56b8['on']('execute',()=>{_0x48578a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1c0326['children']['add'](_0x1d56b8),_0x4ea201['items']['add'](_0x1c0326),_0x98b8d2['panelView']['children']['add'](_0x4ea201),_0x98b8d2;}['_showDialog'](){const _0x2e5931=this['editor'],_0x31d6c3=_0x2e5931['locale'],_0x4e9501=_0x2e5931['plugins']['get']('Dialog'),_0x5dc3c6=_0x2e5931['plugins']['get']('RevisionTracker');function _0x4c9f92(_0x7b0a01){_0x2e5931['config']['get']('revisionHistory.requireRevisionName')&&''===_0x7b0a01['revisionName']?_0x7b0a01['revisionNameInputView']['errorText']=R(_0x31d6c3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2e5931['plugins']['get'](h)['saveRevision']({'name':_0x7b0a01['revisionName']}),_0x4e9501['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c9f92(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e9501['show']({'id':'revisionSave','title':R(_0x31d6c3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2e5931['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e9501['hide']()},{'label':R(_0x2e5931['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x14ab7f){_0x14ab7f['bind']('isEnabled')['to'](_0x5dc3c6,'isReady',_0x5dc3c6,'isEnabled',_0x2e5931,'isReadOnly',(_0x240ed,_0x5b63c5,_0xb6a11e)=>_0x240ed&&_0x5b63c5&&!_0xb6a11e);},'onExecute':()=>_0x4c9f92(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x269312=this['editor'],_0x22f407=_0x269312['locale'];this['_saveRevisionFormView']=new me(_0x22f407,_0x269312['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5372f9{['changeId'];['_model'];constructor(_0x1dbf64,_0x19e269){super(_0x1dbf64),this['_model']=_0x19e269,this['changeId']=_0x19e269['id'];const _0x3baa70=this['bindTemplate'],_0x3a0f90=R(_0x1dbf64,_0x19e269['data']['isSuggestion']?'Suggested\x20by':'add'==_0x19e269['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x19e269['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3baa70['to']('type',_0x5ec650=>'ck-revision-change__'+_0x5ec650)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3a0f90}]},{'text':'\x20'+_0x19e269['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x220e5e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1127bf){super(),this['id']=_0x1127bf['id']||_0x58edc7(),this['author']=_0x1127bf['author'],this['type']=_0x1127bf['type'],this['data']=_0x1127bf['data']||{},this['rootName']=_0x1127bf['rootName'],this['set']('createdAt',_0x1127bf['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x468761,_0x33e416){this['newRevisionId']=_0x468761,this['oldRevisionId']=_0x33e416,this['changes']=new _0xbf5b7e();}['_setChanges'](_0x53135a){for(const _0x387a0f of _0x53135a)this['changes']['add'](_0x387a0f);}}class l extends _0x40d69e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x31b528,_0x59aed6,S,$];}constructor(_0x3ac1a1){super(_0x3ac1a1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x36bbc7,_0x36ee89,_0x297e5c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb97cd=>{for(const _0x40f990 of this['editor']['editing']['view']['document']['roots'])_0x297e5c?_0xb97cd['removeClass']('ck-editor__editable__overlay',_0x40f990):_0xb97cd['addClass']('ck-editor__editable__overlay',_0x40f990);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5a85e3=>null!==_0x5a85e3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x20b5c3,_0x483e13,_0x71f366)=>_0x20b5c3&&_0x71f366?_0x483e13['changes']['getIndex'](_0x71f366):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x27f2f3,_0x1b1330)=>_0x27f2f3?_0x1b1330['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x59aed6);}['init'](){const _0x166da8=this['editor'],_0x389ab0=new rt(_0x166da8,{'direction':'backward'}),_0x1e7b45=new rt(_0x166da8,{'direction':'forward'});(_0x166da8['commands']['add']('showPreviousChange',_0x389ab0),_0x166da8['commands']['add']('showNextChange',_0x1e7b45),_0x166da8['commands']['add']('restoreRevision',new nt(_0x166da8)),this['on']('change:numberOfChanges',()=>{_0x389ab0['refresh'](),_0x1e7b45['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x166da8['enableReadOnlyMode']('revision-viewer'),_0x166da8['plugins']['has']('WidgetToolbarRepository'))&&_0x166da8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3eb461){return await this['_utils']['loadRevisionData'](_0x3eb461,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3eb461);}async['getRevisionRootsAttributes'](_0x4e50ad){return await this['_utils']['loadRevisionData'](_0x4e50ad,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4e50ad);}async['compare'](_0x1cd41f,_0x3211ac,_0x5a7476=!0x1){if(!this['isEnabled'])return;const _0x1b8a9e=this['diff'],_0xc2e6e3=this['repository'],_0x5080fb='string'==typeof _0x1cd41f?_0xc2e6e3['getRevision'](_0x1cd41f):_0x1cd41f,_0x20f889='string'==typeof _0x3211ac?_0xc2e6e3['getRevision'](_0x3211ac):_0x3211ac,_0x263340=_0x5080fb['id'],_0x526a7a=_0x20f889?_0x20f889['id']:null;if(!_0x5a7476&&this['diff']&&this['diff']['newRevisionId']===_0x263340&&this['diff']['oldRevisionId']===_0x526a7a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x263340,_0x526a7a);const _0x5cb0d8=this['_getRevisionsRange'](_0x5080fb,_0x20f889,!0x0)['map'](_0x5ec572=>this['_utils']['loadRevisionData'](_0x5ec572,this['adapter']));return _0x5cb0d8['push'](new Promise(_0x1a8dec=>{setTimeout(_0x1a8dec,0x14);})),Promise['all'](_0x5cb0d8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5755fe=this['_getDiff'](_0x263340,_0x526a7a);for(const _0x570c37 of _0x5755fe['changes'])this['_changeIdToChange']['set'](_0x570c37['id'],_0x570c37);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xefd549=>{for(const _0x5874a8 of this['editor']['model']['document']['getRootNames']())_0xefd549['detachRoot'](_0x5874a8);for(const _0x50d1a4 of Object['keys'](_0x5755fe['model'])){const _0x1cce80=_0xefd549['addRoot'](_0x50d1a4);for(const _0x59727e of Object['keys'](_0x5755fe['attributes'][_0x50d1a4]))_0xefd549['setAttribute'](_0x59727e,_0x5755fe['attributes'][_0x50d1a4][_0x59727e],_0x1cce80);_0xefd549['insert'](_0x5755fe['model'][_0x50d1a4],_0x1cce80,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5755fe['changes'])),this['isReady']=!0x0;})['catch'](_0xf88c2b=>{console['error'](_0xf88c2b),this['_cleanUp'](),_0x1b8a9e&&(this['diff']=_0x1b8a9e),this['isReady']=!0x0;});}['addRevisionData'](_0x33f836,_0x13e1b9){const _0x188e0d=this['repository']['createRevision'](_0x33f836);return _0x188e0d['on']('_update',(_0x13620b,_0x2de32f,_0x451bbb)=>_0x13e1b9(_0x2de32f,_0x451bbb,_0x188e0d)),this['repository']['addRevision'](_0x188e0d),_0x188e0d;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x285e47=>{for(const _0x2872aa of this['editor']['model']['document']['getRootNames']())_0x285e47['detachRoot'](_0x2872aa);});}['_sortAndFilterDiffChanges'](_0x286fc2){const _0x4d0741=[],_0x276679=new Map();for(const _0x5b7a34 of this['editor']['model']['document']['getRootNames']()){const _0x3c55e5=this['editor']['editing']['view']['getDomRoot'](_0x5b7a34);if(!_0x3c55e5)continue;const _0x3cbe10=_0x3c55e5['getClientRects']()['item'](0x0);_0x3cbe10&&(_0x4d0741['push'](_0x5b7a34),_0x276679['set'](_0x5b7a34,_0x3cbe10));}return _0x4d0741['sort']((_0x2dc65f,_0x507d84)=>{const _0x2e75dd=_0x276679['get'](_0x2dc65f),_0x2b9bf1=_0x276679['get'](_0x507d84);return _0x2e75dd['y']-_0x2b9bf1['y']||_0x2e75dd['x']-_0x2b9bf1['x'];}),(_0x286fc2=_0x286fc2['filter'](_0x4a6895=>_0x4d0741['includes'](_0x4a6895['rootName'])))['sort']((_0x4efa69,_0x577a61)=>_0x4d0741['indexOf'](_0x4efa69['rootName'])-_0x4d0741['indexOf'](_0x577a61['rootName'])),_0x286fc2;}['_makeTape'](_0x40a1d3){const _0x2ca36c=Array['from'](_0x40a1d3['markers'])['filter'](([_0x5bc186,_0x56b842])=>_0x5bc186['startsWith']('revision:')&&!_0x56b842['isCollapsed']),_0x1769f7=Array['from'](this['editor']['model']['createRangeIn'](_0x40a1d3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2ca36c['length'])for(const _0x4d9179 of _0x1769f7){const [_0x2cc2cf,_0x1e5139]=_0x2ca36c[0x0],[,_0x2a13ae,_0x38f9b8]=_0x2cc2cf['split'](':');if(_0x1e5139['end']['isEqual'](_0x4d9179['nextPosition'])&&_0x2ca36c['shift'](),(_0x4d9179['previousPosition']['isEqual'](_0x1e5139['start'])||_0x4d9179['previousPosition']['isAfter'](_0x1e5139['start']))&&('insertion'==_0x2a13ae?_0x4d9179['isAdded']={'userId':_0x38f9b8}:'deletion'==_0x2a13ae&&(_0x4d9179['isRemoved']={'userId':_0x38f9b8})),0x0==_0x2ca36c['length'])break;}return _0x1769f7;}['_refreshStartEndIndex'](_0x60ad5d){const _0x3555d2=new Map();for(let _0x4bcf00=0x0;_0x4bcf00<_0x60ad5d['length'];_0x4bcf00++)'text'===_0x60ad5d[_0x4bcf00]['type']?(_0x60ad5d[_0x4bcf00]['item']['startIndex']=_0x4bcf00,_0x60ad5d[_0x4bcf00]['item']['endIndex']=_0x4bcf00):('elementStart'===_0x60ad5d[_0x4bcf00]['type']?_0x60ad5d[_0x4bcf00]['item']['startIndex']=_0x4bcf00:'elementEnd'===_0x60ad5d[_0x4bcf00]['type']&&(_0x60ad5d[_0x4bcf00]['item']['endIndex']=_0x4bcf00),_0x3555d2['set'](_0x60ad5d[_0x4bcf00]['id'],_0x4bcf00));for(const _0x2d3c4c of _0x3555d2['values']())'elementStart'===_0x60ad5d[_0x2d3c4c]['type']?_0x60ad5d[_0x2d3c4c]['item']['endIndex']=_0x3555d2['get'](_0x60ad5d[_0x2d3c4c]['pairId']):'elementEnd'===_0x60ad5d[_0x2d3c4c]['type']&&(_0x60ad5d[_0x2d3c4c]['item']['startIndex']=_0x3555d2['get'](_0x60ad5d[_0x2d3c4c]['pairId']));}['_processTape'](_0x4bf293){for(let _0x24a94f=0x0;_0x24a94f<_0x4bf293['length'];_0x24a94f++){if('elementStart'===_0x4bf293[_0x24a94f]['type'])_0x4bf293[_0x24a94f]['item']['startIndex']=_0x24a94f;else{if('elementEnd'===_0x4bf293[_0x24a94f]['type']){_0x4bf293[_0x24a94f]['item']['endIndex']=_0x24a94f;const _0x1fdf96=_0x4bf293[_0x24a94f]['item']['startIndex'];_0x4bf293[_0x1fdf96]['pairId']=_0x4bf293[_0x24a94f]['id'],_0x4bf293[_0x24a94f]['pairId']=_0x4bf293[_0x1fdf96]['id'];}else _0x4bf293[_0x24a94f]['item']['startIndex']=_0x24a94f,_0x4bf293[_0x24a94f]['item']['endIndex']=_0x24a94f,_0x4bf293[_0x24a94f]['pairId']=null;}_0x4bf293[_0x24a94f]['markersStart']||(_0x4bf293[_0x24a94f]['markersStart']=[],_0x4bf293[_0x24a94f]['markersEnd']=[]);}}['_markInsertions'](_0x399bf8,_0x30737a){const _0x244a8d=_0x399bf8['filter'](_0x29087f=>!_0x29087f['isAdded']);for(let _0x365ffc=0x0;_0x365ffc<_0x30737a['length'];_0x365ffc++)_0x30737a[_0x365ffc]['isAdded']&&(_0x244a8d[_0x365ffc]['isAdded']=_0x30737a[_0x365ffc]['isAdded']);}['_getDiff'](_0x20e1d8,_0x288694=null){const _0x5306fe=this['repository']['getRevision'](_0x20e1d8),_0x187d35=_0x288694?this['repository']['getRevision'](_0x288694):null,_0x45f04b=this['_getRevisionsRange'](_0x5306fe,_0x187d35),_0x5e275c=_0x45f04b[_0x45f04b['length']-0x1],_0x25a9e0=new Map(),_0x1eac78={'model':{},'attributes':{},'changes':[]},_0xc261ff=new Set(),_0x8bafff=new Map();for(let _0x5aaf58=_0x45f04b['length']-0x1;_0x5aaf58>=0x0;_0x5aaf58--){const _0x6c171c=_0x45f04b[_0x5aaf58];for(const _0x203354 of Object['keys'](_0x6c171c['diffData']))if(_0x6c171c['diffData'][_0x203354]['attachChange']){const _0x3a5c07=_0x6c171c['diffData'][_0x203354]['attachChange'];_0x3a5c07['isAttached']?(_0xc261ff['add'](_0x203354),_0x8bafff['has'](_0x203354)&&_0x8bafff['get'](_0x203354)['userId']==_0x3a5c07['userId']?_0x8bafff['delete'](_0x203354):_0x8bafff['set'](_0x203354,_0x3a5c07)):_0x8bafff['has'](_0x203354)?(_0xc261ff['delete'](_0x203354),_0x8bafff['delete'](_0x203354)):(_0xc261ff['add'](_0x203354),_0x8bafff['set'](_0x203354,_0x3a5c07));}else _0xc261ff['add'](_0x203354);}for(const _0xcf8775 of _0xc261ff){const _0x55843e=_0x8bafff['has'](_0xcf8775)&&!_0x8bafff['get'](_0xcf8775)['isAttached'];let _0x3e417c=_0x55843e?_0x45f04b['length']-0x1:0x0;const _0x3bdf8d=_0x55843e?-0x1:0x1;for(;_0x45f04b[_0x3e417c];){const _0x260dc0=_0x45f04b[_0x3e417c];if(_0x260dc0['diffData'][_0xcf8775]){const _0x28aacc=_0x55843e?_0x260dc0['diffData'][_0xcf8775]['attributesBefore']:_0x260dc0['diffData'][_0xcf8775]['attributesAfter'];_0x1eac78['attributes'][_0xcf8775]=_0x28aacc?_0x570b2f(_0x28aacc):{};break;}_0x3e417c+=_0x3bdf8d;}}for(const _0x2affc6 of _0x45f04b){_0x2affc6['model']={};for(const _0x4e6eb8 of _0x2affc6['authors'])_0x25a9e0['set'](_0x4e6eb8['id'],_0x4e6eb8);for(const _0x2e21a1 of _0xc261ff){const _0xf0e9f=_0x2affc6['diffData'][_0x2e21a1]?_0x2affc6['diffData'][_0x2e21a1]['insertions']:'[]',_0x5b408e=_0x2affc6['diffData'][_0x2e21a1]?_0x2affc6['diffData'][_0x2e21a1]['deletions']:'[]';_0x2affc6['model'][_0x2e21a1]={'insertions':this['_utils']['_makeModelFromViewString'](_0xf0e9f),'deletions':this['_utils']['_makeModelFromViewString'](_0x5b408e)};}}for(const _0x2e7111 of _0xc261ff){let _0x437725=null,_0x27a3c6=0x0;const _0x1f1b97=new Map(Array['from'](_0x5306fe['model'][_0x2e7111]['insertions']['markers'])['filter'](([_0x551a40])=>!_0x551a40['startsWith']('revision:')));let _0x222920=0x0;for(const _0x299b1e of _0x45f04b){const _0x16b463=this['_makeTape'](_0x299b1e['model'][_0x2e7111]['insertions']);_0x299b1e==_0x5306fe?(_0x437725=_0x16b463,_0x27a3c6=_0x437725['length'],_0x437725['forEach'](_0x462acc=>{_0x462acc['id']=_0x222920++;}),this['_processTape'](_0x437725)):this['_markInsertions'](_0x437725,_0x16b463);const _0x50d3bc=_0x437725['filter'](_0x3595a0=>!_0x3595a0['isAdded'])['map'](_0xeaf72a=>_0xeaf72a['id']);let _0x5a7912=0x0;const _0x566a92=this['_makeTape'](_0x299b1e['model'][_0x2e7111]['deletions']);_0x566a92['forEach'](_0x308e3b=>{_0x308e3b['isRemoved']?_0x308e3b['id']=_0x27a3c6++:_0x308e3b['id']=_0x50d3bc[_0x5a7912++];}),this['_processTape'](_0x566a92),this['_setDistance'](_0x437725,'isAdded'),this['_setDistance'](_0x566a92,'isRemoved'),_0x299b1e==_0x5306fe&&this['_markMarkers'](_0x437725,_0x1f1b97),_0x437725=this['_joinTapes'](_0x437725,_0x566a92),this['_refreshStartEndIndex'](_0x437725),this['_setDistance'](_0x437725,'isRemoved');}_0x437725=_0x437725['filter'](_0x35b30d=>!(_0x35b30d['isAdded']&&_0x35b30d['isRemoved']));const _0x53557b=new Map(_0x5e275c['model'][_0x2e7111]['deletions']['markers']),_0x4cdf95=new Set(_0x1f1b97['keys']());for(const _0x1ce28f of _0x53557b['keys']())_0x4cdf95['delete'](_0x1ce28f);this['_markSuggestions'](_0x437725,_0x4cdf95),this['_fixObsoleteTags'](_0x437725),_0x437725=this['_removeMissingPairs'](_0x437725),_0x437725=this['_markMismatchedRemovedTags'](_0x437725),_0x437725=this['_removeUnsupportedChanges'](_0x437725);const {root:_0x468721,changes:_0x70f9ad}=this['_makeModelFromTape'](_0x437725,_0x25a9e0,_0x2e7111);_0x1eac78['model'][_0x2e7111]=_0x468721;const _0x5725d2=_0x8bafff['get'](_0x2e7111);if(_0x5725d2){const _0x29db4f=_0x25a9e0['get'](_0x5725d2['userId']),_0x310f07=new G({'author':_0x29db4f,'type':_0x5725d2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e7111});_0x70f9ad['unshift'](_0x310f07),_0x1eac78['attributes'][_0x2e7111]['revisionHistoryAttachChange']=_0x310f07['id'];}_0x1eac78['changes']=_0x1eac78['changes']['concat'](_0x70f9ad);}return _0x1eac78;}['_markMarkers'](_0x2e5ecb,_0x2d5366){for(let _0x31849b=0x0;_0x31849b<_0x2e5ecb['length'];_0x31849b++)for(const [_0x10ba70,_0x4060d9]of _0x2d5366)!_0x4060d9['isCollapsed']&&_0x4060d9['start']['isEqual'](_0x2e5ecb[_0x31849b]['previousPosition'])&&_0x2e5ecb[_0x31849b]['markersStart']['push'](_0x10ba70),_0x4060d9['end']['isEqual'](_0x2e5ecb[_0x31849b]['nextPosition'])&&_0x2e5ecb[_0x31849b]['markersEnd']['push'](_0x10ba70);}['_joinTapes'](_0x13c589,_0x4d830a){let _0x242b91=[],_0x4203bd=0x0,_0x3b0e85=0x0;for(;_0x4203bd<_0x13c589['length']||_0x3b0e85<_0x4d830a['length'];){const _0x584ca8=_0x13c589[_0x4203bd]||{},_0x835fee=_0x4d830a[_0x3b0e85]||{};if(_0x584ca8['id']==_0x835fee['id'])_0x4203bd++,_0x3b0e85++,_0x242b91['push'](_0x584ca8);else{if(_0x835fee['isRemoved']&&_0x584ca8['isAdded']){const {commonTape:_0x499d38,iEnd:_0x2dcae4,jEnd:_0x304010}=this['_threeWayMerge'](_0x13c589,_0x4203bd,_0x4d830a,_0x3b0e85);_0x242b91=_0x242b91['concat'](_0x499d38),_0x4203bd=_0x2dcae4,_0x3b0e85=_0x304010;}else _0x835fee['isRemoved']?(_0x3b0e85++,_0x242b91['push'](_0x835fee)):(_0x4203bd++,_0x242b91['push'](_0x584ca8));}}return _0x242b91;}['_markSuggestions'](_0x5be4e5,_0x4975d4){const _0x3fcc35=[];for(let _0x1dbcaa=0x0;_0x1dbcaa<_0x5be4e5['length'];_0x1dbcaa++){for(let _0x1bed65=0x0;_0x1bed65<_0x5be4e5[_0x1dbcaa]['markersStart']['length'];_0x1bed65++){const _0x52a43c=_0x5be4e5[_0x1dbcaa]['markersStart'][_0x1bed65];if(!_0x4975d4['has'](_0x52a43c))continue;const {group:_0x277925,type:_0x5e5508,authorId:_0x463433}=_0x168966(_0x52a43c);'revision-suggestion'!=_0x277925||'insertion'!=_0x5e5508&&'deletion'!=_0x5e5508||(_0x3fcc35['unshift']({'type':_0x5e5508,'name':_0x52a43c,'userId':_0x463433}),_0x5be4e5[_0x1dbcaa]['markersStart']['splice'](_0x1bed65,0x1),_0x1bed65--);}_0xef28b4(_0x5be4e5[_0x1dbcaa]);for(let _0x32f088=0x0;_0x32f088<_0x5be4e5[_0x1dbcaa]['markersEnd']['length'];_0x32f088++){const _0x1e406b=_0x5be4e5[_0x1dbcaa]['markersEnd'][_0x32f088];if(!_0x4975d4['has'](_0x1e406b))continue;const {group:_0x4ddc98,type:_0x2db2d8}=_0x168966(_0x1e406b);if('revision-suggestion'!=_0x4ddc98||'insertion'!=_0x2db2d8&&'deletion'!=_0x2db2d8)continue;_0x5be4e5[_0x1dbcaa]['markersEnd']['splice'](_0x32f088,0x1),_0x32f088--;const _0x1cb954=_0x3fcc35['findIndex'](_0x25f3e4=>_0x25f3e4['name']==_0x1e406b);_0x1cb954>-0x1&&_0x3fcc35['splice'](_0x1cb954,0x1);}}function _0x168966(_0x585cfc){const _0x21501d=_0x585cfc['split'](':');return{'group':_0x21501d[0x0],'type':_0x21501d[0x1],'subType':_0x21501d['length']>=0x5?_0x21501d[0x2]:null,'id':_0x21501d['length']<0x5?_0x21501d[0x2]:_0x21501d[0x3],'authorId':_0x21501d['length']<0x5?_0x21501d[0x3]:_0x21501d[0x4],'markerCount':0x6==_0x21501d['length']?_0x21501d[0x5]:null};}function _0xef28b4(_0x3b76d8){for(let _0x4e5334=0x0;_0x4e5334<_0x3fcc35['length'];_0x4e5334++){if(_0x3b76d8['isAdded']&&'insertion'==_0x3fcc35[_0x4e5334]['type']&&_0x3b76d8['isAdded']['userId']==_0x3fcc35[_0x4e5334]['userId'])return _0x3b76d8['isAddSuggestion']=_0x3fcc35[_0x4e5334],void delete _0x3b76d8['isAdded'];if(!_0x3b76d8['isAdded']&&!_0x3b76d8['isRemoved']&&'deletion'==_0x3fcc35[_0x4e5334]['type'])return void(_0x3b76d8['isRemoveSuggestion']=_0x3fcc35[_0x4e5334]);}}}['_setDistance'](_0x260842,_0x4105e6){let _0x4a2a2a=0x0,_0x10eb5f=!0x1;const _0x942084=new Map();for(const _0x5ed210 of _0x260842)_0x5ed210[_0x4105e6]?_0x10eb5f&&(_0x4a2a2a++,_0x10eb5f=!0x1):(_0x4a2a2a++,_0x10eb5f=!0x0),_0x942084['set'](_0x5ed210['id'],_0x4a2a2a);for(let _0x1ea5f7=0x0;_0x1ea5f7<_0x260842['length'];_0x1ea5f7++){if('isRemoved'==_0x4105e6&&_0x260842[_0x1ea5f7]['isAdded']||'isAdded'==_0x4105e6&&_0x260842[_0x1ea5f7]['isRemoved'])continue;if('text'==_0x260842[_0x1ea5f7]['type']){_0x260842[_0x1ea5f7]['distance']=0x0;continue;}const _0x208656=_0x942084['get'](_0x260842[_0x1ea5f7]['pairId']),_0x5232ae=_0x942084['get'](_0x260842[_0x1ea5f7]['id']);_0x260842[_0x1ea5f7]['distance']=_0x208656-_0x5232ae;}}['_getRevisionsRange'](_0x136651,_0x562ef8,_0xfbf697=!0x1){const _0x43a889=[];let _0x4b4f6c=this['repository']['getIndex'](_0x136651),_0x26683a=this['repository']['getIndex'](_0x562ef8);for(-0x1==_0x26683a&&(_0x26683a=this['repository']['_revisions']['length'],_0xfbf697=!0x1);_0x4b4f6c<_0x26683a;)_0x43a889['push'](this['repository']['getRevision'](_0x4b4f6c)),_0x4b4f6c++;return _0xfbf697&&_0x43a889['push'](this['repository']['getRevision'](_0x4b4f6c)),_0x43a889;}['_threeWayMerge'](_0x1c6b86,_0x44b8af,_0x1cad40,_0x1b193b){const _0x40b57c=this['editor']['model']['schema'];let _0x3765db=_0x44b8af;for(;_0x1c6b86[_0x3765db]&&_0x1c6b86[_0x3765db]['isAdded'];)_0x3765db++;let _0xddd89e=_0x1b193b;for(;_0x1cad40[_0xddd89e]&&_0x1cad40[_0xddd89e]['isRemoved'];)_0xddd89e++;_0x379fcc(_0x1c6b86,_0x44b8af,_0x3765db),_0x379fcc(_0x1cad40,_0x1b193b,_0xddd89e);const _0xddcd30=_0x1cad40['slice'](_0x1b193b,_0xddd89e)['concat'](_0x1c6b86['slice'](_0x44b8af,_0x3765db));return _0xddcd30['sort']((_0x598038,_0x3c12a5)=>_0x598038['side']!=_0x3c12a5['side']?_0x598038['side']-_0x3c12a5['side']:_0x598038['level']!=_0x3c12a5['level']?_0x598038['level']-_0x3c12a5['level']:_0x598038['distance']!=_0x3c12a5['distance']?_0x3c12a5['distance']-_0x598038['distance']:!!_0x598038['isAdded']!=!!_0x3c12a5['isAdded']?-0x1==_0x598038['side']||0x0==_0x598038['side']?_0x598038['isAdded']?-0x1:0x1:_0x598038['isAdded']?0x1:-0x1:_0x598038['index']-_0x3c12a5['index']),{'commonTape':_0xddcd30,'iEnd':_0x3765db,'jEnd':_0xddd89e};function _0x379fcc(_0x482e8d,_0x497441,_0x42e281){let _0x53ca68=-0x1,_0x3fb738=Number['POSITIVE_INFINITY'],_0x4f6825=!0x0;for(let _0x5b688f=_0x497441;_0x5b688f<_0x42e281;_0x5b688f++)if(_0x40b57c['isInline'](_0x482e8d[_0x5b688f]['item'])||(_0x4f6825=!0x1),_0x482e8d[_0x5b688f]['item']['startIndex']<_0x497441&&(_0x53ca68=_0x5b688f),_0x482e8d[_0x5b688f]['item']['endIndex']>=_0x42e281){_0x3fb738=_0x5b688f;break;}_0x4f6825&&(_0x53ca68=_0x42e281-0x1);for(let _0x7b62fa=_0x497441;_0x7b62fa<_0x42e281;_0x7b62fa++)_0x482e8d[_0x7b62fa]['side']=_0x7b62fa<=_0x53ca68?-0x1:_0x7b62fa<_0x3fb738?0x0:0x1,_0x482e8d[_0x7b62fa]['index']=_0x7b62fa;let _0x4d996c=0x0;for(let _0x342b6c=_0x497441;_0x342b6c<=_0x53ca68;_0x342b6c++)0x0==_0x482e8d[_0x342b6c]['distance']?_0x482e8d[_0x342b6c]['level']=_0x4d996c:(_0x4d996c++,_0x482e8d[_0x342b6c]['level']=_0x4d996c,_0x4d996c++);for(let _0x2c6f3b=_0x497441;_0x2c6f3b<_0x42e281;_0x2c6f3b++)0x0==_0x482e8d[_0x2c6f3b]['side']&&(_0x482e8d[_0x2c6f3b]['level']=_0x4d996c);_0x4d996c=0x0;for(let _0x3ebaec=_0x42e281-0x1;_0x3ebaec>=_0x3fb738;_0x3ebaec--)0x0==_0x482e8d[_0x3ebaec]['distance']?_0x482e8d[_0x3ebaec]['level']=_0x4d996c:(_0x4d996c--,_0x482e8d[_0x3ebaec]['level']=_0x4d996c,_0x4d996c--);}}['_fixObsoleteTags'](_0x3f6ef6){const _0x1398fd=new Map(),_0x33412f=this['editor']['model']['schema'];for(let _0x58e27f=0x1;_0x58e27f<_0x3f6ef6['length'];_0x58e27f++){let _0x262313,_0x19ca8c,_0x269fd6;const _0x72dbef=_0x3f6ef6[_0x58e27f],_0x58ef48=_0x3f6ef6[_0x58e27f-0x1];if('text'==_0x72dbef['type'])continue;if(_0x72dbef['type']!=_0x58ef48['type'])continue;if(!_0x33412f['isBlock'](_0x58ef48['item'])||_0x33412f['isLimit'](_0x58ef48['item']))continue;if(!_0x33412f['isBlock'](_0x72dbef['item'])||_0x33412f['isLimit'](_0x72dbef['item']))continue;if((_0x3f6ef6[_0x58e27f]['isAdded']||_0x3f6ef6[_0x58e27f]['isAddSuggestion'])&&_0x3f6ef6[_0x58e27f-0x1]['isRemoved'])_0x262313=_0x3f6ef6[_0x58e27f],_0x19ca8c=_0x3f6ef6[_0x58e27f-0x1],_0x269fd6=_0x58e27f-0x1;else{if(!_0x3f6ef6[_0x58e27f]['isRemoved']||!_0x3f6ef6[_0x58e27f-0x1]['isAdded']&&!_0x3f6ef6[_0x58e27f-0x1]['isAddSuggestion'])continue;_0x262313=_0x3f6ef6[_0x58e27f-0x1],_0x19ca8c=_0x3f6ef6[_0x58e27f],_0x269fd6=_0x58e27f;}const _0x30f530=_0x262313['level']==_0x19ca8c['level'],_0x47dc5d=Math['abs'](_0x262313['level'])<Math['abs'](_0x19ca8c['level'])&&0x0==_0x19ca8c['distance'];(_0x30f530||_0x47dc5d)&&(_0x1398fd['set'](_0x19ca8c['id'],_0x262313['id']),_0x3f6ef6['splice'](_0x269fd6,0x1),_0x58e27f--,_0x262313['isAdded']=!0x1);}for(let _0x5ebf59=0x0;_0x5ebf59<_0x3f6ef6['length'];_0x5ebf59++)_0x1398fd['has'](_0x3f6ef6[_0x5ebf59]['pairId'])&&(_0x3f6ef6[_0x5ebf59]['pairId']=_0x1398fd['get'](_0x3f6ef6[_0x5ebf59]['pairId']));}['_removeMissingPairs'](_0x4c50e5){const _0x440c16=new Set(_0x4c50e5['map'](_0x1afb01=>_0x1afb01['id']));for(let _0x12c73c=0x0;_0x12c73c<_0x4c50e5['length'];_0x12c73c++)_0x440c16['has'](_0x4c50e5[_0x12c73c]['pairId'])||0x0==_0x4c50e5[_0x12c73c]['distance']||(_0x4c50e5[_0x12c73c]['isIncorrect']=!0x0);return _0x4c50e5['filter'](_0x1779df=>!_0x1779df['isIncorrect']);}['_markMismatchedRemovedTags'](_0x586172){const _0x51fc22=new Set();for(let _0x19ee99=0x0;_0x19ee99<_0x586172['length'];_0x19ee99++){if(_0x51fc22['has'](_0x586172[_0x19ee99]['id'])&&_0x586172[_0x19ee99]['isRemoved']&&(_0x586172[_0x19ee99]['isIncorrect']=!0x0),_0x586172[_0x19ee99]['isIncorrect'])continue;if(0x0==_0x586172[_0x19ee99]['distance'])continue;if('elementStart'!=_0x586172[_0x19ee99]['type'])continue;if(null==_0x586172[_0x19ee99]['pairId'])continue;let _0x2977f5=_0x19ee99+0x1,_0x3c0de8=0x0;for(;_0x586172[_0x2977f5]['id']!=_0x586172[_0x19ee99]['pairId'];)'elementStart'==_0x586172[_0x2977f5]['type']?_0x3c0de8++:'elementEnd'==_0x586172[_0x2977f5]['type']&&_0x3c0de8--,_0x2977f5++;if(0x0!=_0x3c0de8){if(_0x586172[_0x19ee99]['isRemoved'])_0x586172[_0x19ee99]['isIncorrect']=!0x0;else{for(;_0x2977f5!=_0x19ee99;)_0x586172[_0x2977f5]['isRemoved']&&0x0!=_0x586172[_0x2977f5]['distance']&&(_0x586172[_0x2977f5]['isIncorrect']=!0x0,_0x51fc22['add'](_0x586172[_0x2977f5]['pairId'])),_0x2977f5--;}}}return _0x586172['filter'](_0x1cff32=>!_0x1cff32['isIncorrect']);}['_removeUnsupportedChanges'](_0x362926){const _0x5201b4=this['editor']['model']['schema'];for(let _0x3da337=0x0;_0x3da337<_0x362926['length'];_0x3da337++){if(!(_0x362926[_0x3da337]['isAdded']||_0x362926[_0x3da337]['isAddSuggestion']||_0x362926[_0x3da337]['isRemoved']||_0x362926[_0x3da337]['isRemoveSuggestion']))continue;if(0x0==_0x362926[_0x3da337]['distance'])continue;const _0x418c74=_0x362926[_0x3da337]['item'];_0x5201b4['isBlock'](_0x418c74)||_0x5201b4['isLimit'](_0x418c74)||(_0x362926[_0x3da337]['isAdded']&&delete _0x362926[_0x3da337]['isAdded'],_0x362926[_0x3da337]['isAddSuggestion']&&delete _0x362926[_0x3da337]['isAddSuggestion'],_0x362926[_0x3da337]['isRemoveSuggestion']&&delete _0x362926[_0x3da337]['isRemoveSuggestion'],_0x362926[_0x3da337]['isRemoved']&&(_0x362926[_0x3da337]['isIncorrect']=!0x0));}return _0x362926['filter'](_0x19afc3=>!_0x19afc3['isIncorrect']);}['_makeModelFromTape'](_0x593f67,_0x42dba8,_0x811d2a){const _0x43f570=new _0x1017e4(),_0x362d72=[],_0x564114=new Map(),_0x467411=this['editor']['model'],_0x5084b5=_0x467411['schema'],_0x33d430=[_0x43f570],_0x46a4fa={},_0x14208e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x81162a=null;const _0x1fd6bb=[0x0];for(let _0x49bddd=0x0;_0x49bddd<_0x593f67['length'];_0x49bddd++)if('elementStart'===_0x593f67[_0x49bddd]['type']){_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb);const _0x3d9375=new _0x149c78(_0x593f67[_0x49bddd]['item']['name'],_0x593f67[_0x49bddd]['item']['getAttributes']());_0x33d430[0x0]['_appendChild'](_0x3d9375),_0x1fd6bb['push'](0x0),_0x33d430['unshift'](_0x3d9375),_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb);}else'elementEnd'===_0x593f67[_0x49bddd]['type']?(_0x33d430['shift'](),_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb),_0x1fd6bb['pop'](),_0x1fd6bb[_0x1fd6bb['length']-0x1]++,_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb)):(_0x593f67[_0x49bddd]['previousPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb),_0x81162a?_0x81162a['_data']+=_0x593f67[_0x49bddd]['item']['data']:_0x81162a=new _0xfc39de(_0x593f67[_0x49bddd]['item']['data'],_0x593f67[_0x49bddd]['item']['getAttributes']()),_0x593f67[_0x49bddd+0x1]&&'text'===_0x593f67[_0x49bddd+0x1]['type']&&_0x15e957(_0x81162a,_0x593f67[_0x49bddd+0x1]['item'])||(_0x33d430[0x0]['_appendChild'](_0x81162a),_0x81162a=null),_0x1fd6bb[_0x1fd6bb['length']-0x1]+=_0x593f67[_0x49bddd]['item']['offsetSize'],_0x593f67[_0x49bddd]['nextPosition']=_0x467411['createPositionFromPath'](_0x43f570,_0x1fd6bb));for(let _0x2093b8=0x0;_0x2093b8<_0x593f67['length'];_0x2093b8++){const _0x54004a=_0x593f67[_0x2093b8]['previousPosition'],_0x2c1aac=_0x593f67[_0x2093b8]['nextPosition'];for(const _0xcd8a70 of _0x593f67[_0x2093b8]['markersStart'])_0x564114['set'](_0xcd8a70,{'start':_0x54004a,'end':null});_0x6ec5e6('isRemoveSuggestion',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isAddSuggestion',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isRemoved',_0x2093b8,_0x54004a,_0x2c1aac),_0x6ec5e6('isAdded',_0x2093b8,_0x54004a,_0x2c1aac);for(const _0x4be0bc of _0x593f67[_0x2093b8]['markersEnd']){const _0x4bdb5e=_0x564114['get'](_0x4be0bc);_0x4bdb5e?_0x4bdb5e['end']=_0x2c1aac:_0x564114['set'](_0x4be0bc,{'start':_0x2c1aac,'end':_0x2c1aac});}}for(const [_0x5b8212,_0x2b1d78]of _0x564114){const _0x169b78=this['editor']['model']['createRange'](_0x2b1d78['start'],_0x2b1d78['end']);_0x43f570['markers']['set'](_0x5b8212,_0x169b78);}return _0x362d72['sort']((_0xc3ded1,_0x52d5bc)=>{const _0x175e46=_0x43f570['markers']['get']('revision:'+_0xc3ded1['id']),_0x5e81f2=_0x43f570['markers']['get']('revision:'+_0x52d5bc['id']);return _0x175e46['start']['isBefore'](_0x5e81f2['start'])?-0x1:_0x175e46['start']['isAfter'](_0x5e81f2['start'])?0x1:_0x175e46['end']['isBefore'](_0x5e81f2['end'])?-0x1:_0x175e46['end']['isAfter'](_0x5e81f2['end'])?0x1:'add'===_0xc3ded1['type']?-0x1:0x1;}),{'root':_0x43f570,'changes':_0x362d72};function _0x6ec5e6(_0x2ba88a,_0x13f3a6,_0x485002,_0x41d654){const _0x3af572=!!_0x593f67[_0x13f3a6][_0x2ba88a],_0x6fdc3f=_0x3af572?_0x593f67[_0x13f3a6][_0x2ba88a]['userId']:null,_0x152161=_0x13f3a6===_0x593f67['length']-0x1,_0x3f682d=_0x14208e[_0x2ba88a][0x0],_0x3bf967=_0x5084b5['isObject'](_0x593f67[_0x13f3a6]['item']);!_0x46a4fa[_0x2ba88a]&&_0x3af572?_0x46a4fa[_0x2ba88a]={'start':_0x485002,'tapeItem':_0x593f67[_0x13f3a6],'userId':_0x6fdc3f,'type':_0x2ba88a}:_0x46a4fa[_0x2ba88a]&&!_0x3af572?(_0x46a4fa[_0x2ba88a]['end']=_0x485002,_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]=null):_0x46a4fa[_0x2ba88a]&&_0x3af572&&_0x46a4fa[_0x2ba88a]['userId']!==_0x6fdc3f&&(_0x46a4fa[_0x2ba88a]['end']=_0x485002,_0x3f682d&&_0x3f682d['userId']===_0x46a4fa[_0x2ba88a]['userId']||_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]={'start':_0x485002,'tapeItem':_0x593f67[_0x13f3a6],'userId':_0x6fdc3f,'type':_0x2ba88a}),_0x46a4fa[_0x2ba88a]&&_0x3bf967&&('elementStart'!==_0x593f67[_0x13f3a6]['type']||_0x3f682d&&_0x3f682d['userId']===_0x6fdc3f||_0x14208e[_0x2ba88a]['unshift']({'userId':_0x6fdc3f,'object':_0x593f67[_0x13f3a6]['item'],'change':_0x46a4fa[_0x2ba88a]}),'elementEnd'===_0x593f67[_0x13f3a6]['type']&&_0x3f682d&&_0x3f682d['object']===_0x593f67[_0x13f3a6]['item']&&(_0x14208e[_0x2ba88a]['shift'](),_0x46a4fa[_0x2ba88a]=_0x3f682d['change'])),_0x46a4fa[_0x2ba88a]&&_0x152161&&(_0x46a4fa[_0x2ba88a]['end']=_0x41d654,_0x338799(_0x46a4fa[_0x2ba88a]),_0x46a4fa[_0x2ba88a]=null);}function _0x338799({start:_0x1c4b0b,end:_0x518bba,tapeItem:_0x235e03,userId:_0x3b790c,type:_0x556388}){const _0x12ccb0=_0x235e03['item'],_0x51db59=_0x467411['schema']['isBlock'](_0x12ccb0)&&!_0x467411['schema']['isLimit'](_0x12ccb0),_0x4a8b1f=_0x1c4b0b['nodeAfter']==_0x518bba['parent']&&_0x518bba['isAtStart'];if(_0x51db59&&_0x4a8b1f)return;const _0x74c009=_0x467411['createRange'](_0x1c4b0b,_0x518bba),_0x27b617=_0x42dba8['get'](_0x3b790c),_0x4fb2ca=new G({'author':_0x27b617,'type':'isAdded'==_0x556388||'isAddSuggestion'==_0x556388?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x556388||'isRemoveSuggestion'==_0x556388},'createdAt':new Date(),'rootName':_0x811d2a});_0x362d72['push'](_0x4fb2ca),_0x43f570['markers']['set']('revision:'+_0x4fb2ca['id'],_0x74c009);}function _0x15e957(_0x568734,_0x3e43c9){const _0x31ea40=_0x568734['getAttributes'](),_0x55d58a=_0x3e43c9['getAttributes']();for(const _0x13f4ac of _0x31ea40){if(_0x13f4ac[0x1]!==_0x3e43c9['getAttribute'](_0x13f4ac[0x0]))return!0x1;_0x55d58a['next']();}return _0x55d58a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x31849f=>{const _0x2c29e4=_0x31849f['markerName']['split'](':')[0x1],_0x59b8d0=this['_getChangeFromId'](_0x2c29e4);if(!_0x59b8d0)return null;const _0x2e9fc2='add'==_0x59b8d0['type']?'insertion':'deletion',_0x229273=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2e9fc2];return _0x59b8d0['data']['isSuggestion']&&_0x229273['push']('ck-suggestion-marker-'+_0x2e9fc2+'-new'),this['activeChange']==_0x59b8d0&&_0x229273['push']('ck-suggestion-marker--active'),{'classes':_0x229273,'attributes':{'data-change-id':_0x2c29e4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x390fc2=>{_0x390fc2['on']('element:pre',(_0x820632,_0x8f9445,_0x429fb6)=>{const _0x542a49=_0x8f9445['viewItem']['getChild'](0x0);if(!_0x542a49||!_0x542a49['is']('element','code'))return;if(!_0x429fb6['consumable']['consume'](_0x542a49,{'attributes':['vid_start','vid_end']}))return;const _0x37c9eb=_0x8f9445['modelRange']['start']['nodeAfter'];_0x429fb6['writer']['setAttribute']('vid_start',_0x542a49['getAttribute']('vid_start'),_0x37c9eb),_0x429fb6['writer']['setAttribute']('vid_end',_0x542a49['getAttribute']('vid_end'),_0x37c9eb);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xcae4e1=>{_0xcae4e1['on']('element',(_0x5a2863,_0x2b033f,_0x377010)=>{if(!_0x377010['consumable']['consume'](_0x2b033f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b033f['modelRange']['isCollapsed'])return;const _0x224546=_0x2b033f['modelRange']['start']['nodeAfter'];_0x224546['hasAttribute']('vid_start')||_0x224546['hasAttribute']('vid')||(_0x377010['writer']['setAttribute']('vid_start',_0x2b033f['viewItem']['getAttribute']('vid_start'),_0x224546),_0x377010['writer']['setAttribute']('vid_end',_0x2b033f['viewItem']['getAttribute']('vid_end'),_0x224546));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x22dbb4=>_0x22dbb4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x39d7e8,[,_0x3e9776])=>{['vid_start','vid_end','vid']['includes'](_0x3e9776)&&(_0x39d7e8['return']=!0x0,_0x39d7e8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x446d18=>{_0x446d18['on']('attribute:vid',(_0x4f976c,_0x5a62b9,_0x1a5e4d)=>{if('\x20'!=_0x5a62b9['item']['data']||_0x5a62b9['item']['parent']['maxOffset']>0x1)return;if(!_0x1a5e4d['consumable']['consume'](_0x5a62b9['item'],_0x4f976c['name']))return;const _0x35e0ec=_0x1a5e4d['writer'],_0x52909c=_0x1a5e4d['mapper']['toViewRange'](_0x5a62b9['range']);_0x35e0ec['wrap'](_0x52909c,_0x35e0ec['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x175a31){const _0x525100=_0x175a31['plugins']['get']('RevisionViewer');return(_0x259e0b,_0x129ae4,_0x31b884)=>{const _0x249adc=_0x129ae4['markerName']['split'](':')[0x1],_0xc1965c=_0x525100['_getChangeFromId'](_0x249adc);if(!_0xc1965c)return null;const _0x5db56e='add'==_0xc1965c['type']?'split':'merge';if(!_0x31b884['consumable']['test'](_0x129ae4['markerRange'],_0x259e0b['name']))return;const _0x223459=_0x129ae4['markerRange']['getWalker'](),_0x3a1c0a=_0x129ae4['markerRange']['start'],_0x572ba1=_0x175a31['model']['schema'];let _0x5036db=null,_0x3765ab=null,_0x214c9f=!0x1,_0x49fdf2=!0x1;for(const _0x43dc69 of _0x223459){const _0x1a2b7d=_0x43dc69['item'];_0x214c9f=_0x214c9f||_0x572ba1['isContent'](_0x1a2b7d);const _0x290866=_0x31b884['mapper']['toViewElement'](_0x1a2b7d);if(_0x290866&&_0x290866['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43dc69['type']&&(_0x572ba1['isBlock'](_0x1a2b7d)&&!_0x572ba1['isLimit'](_0x1a2b7d)&&(_0x1a2b7d['nextSibling']||_0x3a1c0a['isAtEnd']?_0x5036db&&_0x5036db['parent']==_0x1a2b7d||(_0x5036db=_0x1a2b7d,_0x5a619a(_0x43dc69['previousPosition']),_0x49fdf2=!0x0):_0x3765ab=_0x3765ab||_0x43dc69['previousPosition']));}function _0x5a619a(_0x366942){const _0x298978=_0x31b884['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5db56e}),_0x49f9a8=_0x31b884['mapper']['toViewPosition'](_0x366942);_0xc1965c['data']['isSuggestion']&&_0x31b884['writer']['addClass']('ck-suggestion-marker-'+_0x5db56e+'-new',_0x298978),_0x525100['activeChange']==_0xc1965c&&_0x31b884['writer']['addClass']('ck-suggestion-marker--active',_0x298978),_0x31b884['writer']['insert'](_0x49f9a8,_0x298978),_0x31b884['mapper']['bindElementToMarker'](_0x298978,_0x129ae4['markerName']);}_0x214c9f||_0x49fdf2||!_0x3765ab||_0x5a619a(_0x3765ab);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x43f77a,_0x398991,_0x861f16)=>{const _0xfa226=_0x861f16['mapper']['markerNameToElements'](_0x398991['markerName']);if(_0xfa226){for(const _0x54cc7c of _0xfa226)(_0x54cc7c['hasClass']('ck-suggestion-marker-split')||_0x54cc7c['hasClass']('ck-suggestion-marker-merge'))&&(_0x861f16['mapper']['unbindElementFromMarkerName'](_0x54cc7c,_0x398991['markerName']),_0x861f16['writer']['remove'](_0x54cc7c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26d410,_0x23c80b,_0x57dc32)=>{const _0x319e38=_0x23c80b['markerName']['split'](':')[0x1],_0x8ba4fb=this['_getChangeFromId'](_0x319e38);if(!_0x8ba4fb)return null;const _0x56a0c4='add'==_0x8ba4fb['type']?'split':'merge';if(_0x57dc32['consumable']['test'](_0x23c80b['markerRange'],_0x26d410['name']))for(const _0x2e3669 of _0x23c80b['markerRange']['getItems']()){if(!_0x2e3669['is']('element','softBreak'))continue;const _0x3d1409=_0x57dc32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56a0c4}),_0x5372bd=_0x57dc32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e3669));_0x8ba4fb['data']['isSuggestion']&&_0x57dc32['writer']['addClass']('ck-suggestion-marker-'+_0x56a0c4+'-new',_0x3d1409),this['activeChange']==_0x8ba4fb&&_0x57dc32['writer']['addClass']('ck-suggestion-marker--active',_0x3d1409),_0x57dc32['writer']['insert'](_0x5372bd,_0x3d1409),_0x57dc32['mapper']['bindElementToMarker'](_0x3d1409,_0x23c80b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5bb0f5=>{for(const _0x280c2e of this['editor']['model']['document']['getRootNames']()){const _0x44d37e=this['editor']['model']['document']['getRoot'](_0x280c2e),_0x2ddc25=this['editor']['editing']['view']['document']['getRoot'](_0x280c2e);if(_0x2ddc25){const _0x4bf2b3=_0x44d37e['getAttribute']('revisionHistoryAttachChange');if(_0x5bb0f5['removeAttribute']('data-change-id',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root-add',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root-remove',_0x2ddc25),_0x5bb0f5['removeClass']('ck-revision-history-root--active',_0x2ddc25),_0x4bf2b3){const _0x4669a8=this['_getChangeFromId'](_0x4bf2b3);if(!_0x4669a8)return null;_0x5bb0f5['setAttribute']('data-change-id',_0x4bf2b3,_0x2ddc25),_0x5bb0f5['addClass']('ck-revision-history-root-'+_0x4669a8['type'],_0x2ddc25),this['activeChange']==_0x4669a8&&_0x5bb0f5['addClass']('ck-revision-history-root--active',_0x2ddc25);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39c392=>'revision-comment:'+_0x39c392,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3d53b5=>'revision-suggestion:'+_0x3d53b5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x57393d=>({'name':'suggestion:'+_0x57393d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x506f24=>{const _0x2753c3=_0x506f24['markerName']['split'](':')[0x1];return'insertion'!=_0x2753c3&&'deletion'!=_0x2753c3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2753c3]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x13a809,_0x3c6acf,_0x211fa3)=>{const _0x4bf985=_0x211fa3['mapper']['markerNameToElements'](_0x3c6acf['markerName']);if(_0x4bf985){for(const _0xc8d888 of _0x4bf985)_0xc8d888['is']('uiElement')&&(_0x211fa3['mapper']['unbindElementFromMarkerName'](_0xc8d888,_0x3c6acf['markerName']),_0x211fa3['writer']['remove'](_0xc8d888));}},{'priority':'high'});}['_getChangeFromId'](_0xb0b473){return this['_changeIdToChange']['get'](_0xb0b473);}['_getViewForChange'](_0x350ab6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x350ab6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x271259,_0x581916,_0x55aabb,_0x581b91)=>{_0x581b91&&this['_balloon']['remove'](_0x581b91),_0x55aabb&&(this['_balloon']['add']({'view':_0x55aabb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4f2480=this['editor']['editing'],_0x332043=this['_getChangeFromId'](_0x55aabb['changeId']);let _0x4a27ef;if(_0x332043['data']['isOnRoot']){const _0x4422f8=_0x4f2480['view']['getDomRoot'](_0x332043['rootName']);_0x4a27ef=Array['from'](_0x4422f8['getClientRects']());}else{const _0x5c9f30=this['editor']['model']['markers']['get']('revision:'+_0x55aabb['changeId']);_0x4a27ef=Array['from'](_0x4f2480['mapper']['markerNameToElements'](_0x5c9f30['name']))['map'](_0x45090e=>_0x4f2480['view']['domConverter']['mapViewToDom'](_0x45090e))['map'](_0x295dda=>Array['from'](_0x295dda['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4a27ef[0x0];return _0x4a27ef['find'](_0x585fca=>_0x585fca['top']-0x3<=this['_activeViewTarget']['y']&&_0x585fca['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x585fca['left']-0x3<=this['_activeViewTarget']['x']&&_0x585fca['right']+0x3>=this['_activeViewTarget']['x'])||_0x4a27ef[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c51ca,_0x376bf5,_0x385e82,_0x86e14e)=>{this['activeView']=_0x385e82?this['_getViewForChange'](_0x385e82):null,this['editor']['model']['change'](()=>{const _0x83a60f=this['editor']['editing'];_0x86e14e&&(_0x86e14e['data']['isOnRoot']?_0x83a60f['view']['change'](_0x28d6db=>{_0x28d6db['removeClass']('ck-revision-history-root--active',_0x83a60f['view']['document']['getRoot'](_0x86e14e['rootName']));}):_0x83a60f['reconvertMarker']('revision:'+_0x86e14e['id'])),_0x385e82&&(_0x385e82['data']['isOnRoot']?_0x83a60f['view']['change'](_0x116cbb=>{_0x116cbb['addClass']('ck-revision-history-root--active',_0x83a60f['view']['document']['getRoot'](_0x385e82['rootName']));}):_0x83a60f['reconvertMarker']('revision:'+_0x385e82['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x11576c,_0x450684)=>{if(this['activeChange'])return;const _0x4398e5=this['_findChangeIdFromDomTarget'](_0x450684['target']),_0x57528c=this['_changeIdToChange']['get'](_0x4398e5);_0x57528c?(this['_activeViewTarget']={'x':_0x450684['domEvent']['x'],'y':_0x450684['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x57528c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x35056b,_0x36ae2b)=>{const _0x1426cd=this['_findChangeIdFromDomTarget'](_0x36ae2b['target']),_0x41e3d7=this['_changeIdToChange']['get'](_0x1426cd);_0x41e3d7?(this['_activeViewTarget']={'x':_0x36ae2b['domEvent']['x'],'y':_0x36ae2b['domEvent']['y']},_0x41e3d7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x41e3d7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c6d52){do{const _0x31c4d9=_0x4c6d52['getAttribute']('data-change-id');if(_0x31c4d9)return _0x31c4d9;_0x4c6d52=_0x4c6d52['parent'];}while(_0x4c6d52);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3269fd=>{for(const _0x138911 of this['editor']['model']['markers'])_0x3269fd['removeMarker'](_0x138911);});}}function Q(_0x5cd8e8,_0x422353){return(_0x1e4964,_0x2fb666,_0x42bde8)=>{if(!_0x42bde8['consumable']['test'](_0x2fb666['markerRange'],_0x1e4964['name']))return;const _0x6e86a4=_0x2fb666['markerRange']['getWalker'](),_0x4e643b=_0x2fb666['markerRange']['start'],_0x78224e=_0x5cd8e8['model']['schema'];let _0x166a2d=null,_0x1f256e=null,_0xfb04bd=!0x1,_0x5a0e7c=!0x1;for(const _0x4da050 of _0x6e86a4){const _0x2b9d17=_0x4da050['item'];_0xfb04bd=_0xfb04bd||_0x78224e['isContent'](_0x2b9d17);const _0x2005ed=_0x42bde8['mapper']['toViewElement'](_0x2b9d17);if(_0x2005ed&&_0x2005ed['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4da050['type']&&(_0x78224e['isBlock'](_0x2b9d17)&&!_0x78224e['isLimit'](_0x2b9d17)&&(_0x2b9d17['nextSibling']||_0x4e643b['isAtEnd']?_0x166a2d&&_0x166a2d['parent']==_0x2b9d17||(_0x166a2d=_0x2b9d17,_0x336cd4(_0x4da050['previousPosition']),_0x5a0e7c=!0x0):_0x1f256e=_0x1f256e||_0x4da050['previousPosition']));}function _0x336cd4(_0x27fe0c){const _0x701cde=_0x42bde8['mapper']['toViewPosition'](_0x27fe0c),_0x4f6948=_0x42bde8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x422353});_0x42bde8['writer']['insert'](_0x701cde,_0x4f6948),_0x42bde8['mapper']['bindElementToMarker'](_0x4f6948,_0x2fb666['markerName']);}_0xfb04bd||_0x5a0e7c||!_0x1f256e||_0x336cd4(_0x1f256e);};}class nt extends _0x17f1c5{constructor(_0x4e8a6c){super(_0x4e8a6c);const _0x4a1fad=_0x4e8a6c['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4a1fad,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a1fad,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xf66660=this['editor'],_0x4bfbe0=_0xf66660['plugins']['get'](l),_0x4076bb=_0x4bfbe0['isReady']?_0x4bfbe0['diff']['newRevisionId']:null;_0xf66660['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4076bb);}['refresh'](){const {isReady:_0x4a301a,isEnabled:_0x1f610b,repository:_0x2d8f3f,diff:_0x1ba88f}=this['editor']['plugins']['get'](l),_0x18a74e=_0x1ba88f&&_0x2d8f3f['getLaterVisibleRevision'](_0x1ba88f['newRevisionId']);this['isEnabled']=_0x4a301a&&_0x1f610b&&Boolean(_0x18a74e);}}class rt extends _0x17f1c5{['_step'];constructor(_0x3abfa7,{direction:_0x408d42}){super(_0x3abfa7);const _0x360038=_0x3abfa7['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x408d42?0x1:-0x1,this['listenTo'](_0x360038,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x360038,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x360038,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ae124=this['editor'],_0x2cf73a=_0x2ae124['plugins']['get'](l),{isNavigationMode:_0x5ef789,currentChangeNumber:_0x43cf21}=_0x2cf73a;let _0x2341a4;if(_0x2cf73a['activeChange']=_0x5ef789?_0x2cf73a['diff']['changes']['get'](_0x43cf21+this['_step']):_0x2cf73a['diff']['changes']['first'],_0x2cf73a['activeChange']['data']['isOnRoot'])_0x2341a4=_0x2ae124['editing']['view']['getDomRoot'](_0x2cf73a['activeChange']['rootName']);else{const _0x25109e=_0x2ae124['model']['markers']['get']('revision:'+_0x2cf73a['activeChange']['id']);_0x2341a4=_0x5ea7c3(_0x2ae124['editing'],_0x25109e);}_0x278709({'target':_0x2341a4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5002d3,currentChangeNumber:_0x3c8fdb,numberOfChanges:_0xfde6bc,isReady:_0x458633,isEnabled:_0x28b8ae}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x28b8ae&&_0x458633&&_0xfde6bc)&&(!_0x5002d3||(0x1===this['_step']?_0x3c8fdb<_0xfde6bc-0x1:_0x3c8fdb>0x0));}}class vi extends _0x5372f9{constructor(_0x23711b){super(_0x23711b);const _0x39a5cb=this['bindTemplate'],_0x522922=new _0x4c294d(_0x23711b),_0x49f4a1=new _0x4c294d(_0x23711b);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x15415f,_0x515127)=>_0x15415f&&_0x515127>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b23a9,_0x1d10d8,_0x2808ba,_0x9a328e)=>{if(!_0x4b23a9)return R(_0x23711b,'Loading...');if(!_0x2808ba)return R(_0x23711b,'No\x20changes');const _0x3092a5=R(_0x23711b,'NUMBER_OF_CHANGES',_0x2808ba);return _0x9a328e?R(_0x23711b,'X_OF_Y_CHANGES',[_0x1d10d8+0x1,_0x2808ba]):_0x3092a5;}),_0x522922['set']({'label':R(_0x23711b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x561579}),_0x49f4a1['set']({'label':R(_0x23711b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x41c34d}),_0x522922['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x49f4a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x522922['on']('execute',()=>this['fire']('execute','backward')),_0x49f4a1['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x39a5cb['if']('_isStatusLabelVisible','ck-hidden',_0x5c23bd=>!_0x5c23bd)]},'children':[{'text':_0x39a5cb['to']('isNavigationMode',_0x232dce=>_0x232dce?R(_0x23711b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x23711b,'Total')+':\x20')}]},{'text':_0x39a5cb['to']('_statusText')}]},new _0x268ae1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x522922,_0x49f4a1]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x40d69e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x911044=this['editor']['editing']['view'];_0x911044['change'](_0x2d3759=>{for(const _0x593f2c of _0x911044['document']['roots'])_0x2d3759['addClass'](oe,_0x593f2c);});}['hide'](){const _0x1889a8=this['editor']['editing']['view'];_0x1889a8['change'](_0x40d980=>{for(const _0x28bdde of _0x1889a8['document']['roots'])_0x40d980['removeClass'](oe,_0x28bdde);});}}class u extends _0x40d69e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,wi];}['init'](){const _0x1b4622=this['editor'],_0x1114d9=_0x1b4622['plugins']['get'](l),_0x488229=_0x1b4622['plugins']['get'](wi);_0x1b4622['ui']['componentFactory']['add']('exitToEditing',_0x4a31c5=>{const _0x3be821=new _0x4c294d(_0x4a31c5);return _0x3be821['set']({'label':R(_0x4a31c5,'Back\x20to\x20editing'),'icon':_0x2ee9fb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3be821,'execute',()=>{_0x1b4622['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3be821;}),_0x1b4622['ui']['componentFactory']['add']('restoreRevision',_0x544b21=>{const _0xde0dfb=new _0x4c294d(_0x544b21);return _0xde0dfb['set']({'label':R(_0x544b21,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xde0dfb['bind']('isEnabled')['to'](_0x1b4622['commands']['get']('restoreRevision')),this['listenTo'](_0xde0dfb,'execute',()=>_0x1b4622['execute']('restoreRevision')),_0xde0dfb;}),_0x1b4622['ui']['componentFactory']['add']('changesNavigation',_0x4ce24e=>{const _0x35aade=new vi(_0x4ce24e),_0x437e07=_0x1b4622['commands']['get']('showPreviousChange'),_0x5a71e0=_0x1b4622['commands']['get']('showNextChange');return _0x35aade['bind']('isBackwardNavigationEnabled')['to'](_0x437e07,'isEnabled'),_0x35aade['bind']('isForwardNavigationEnabled')['to'](_0x5a71e0,'isEnabled'),_0x35aade['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1114d9),this['listenTo'](_0x35aade,'execute',(_0x13f1fe,_0x3ab782)=>{_0x1b4622['execute']('forward'===_0x3ab782?'showNextChange':'showPreviousChange');}),_0x35aade;}),_0x488229['show'](),_0x1114d9['on']('change:isReady',(_0x324d1c,_0x1c9639,_0x33217d)=>{_0x33217d?_0x488229['hide']():_0x488229['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5b23b6,_0x5d9089){super(_0x5b23b6,_0x5d9089);const _0x3575c5=this['bindTemplate'];this['set']({'label':R(_0x5b23b6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5b23b6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3575c5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x40447e=this['fieldView']['element'];this['_tooltipString']=_0x40447e['scrollWidth']>_0x40447e['clientWidth']&&_0x40447e['value']||'';}}class ni extends _0x5372f9{constructor(_0x434764,_0x92ab74,_0x5c2856){super(_0x434764);const _0x354f3e=new _0x2e6b9e();_0x354f3e['set']({'content':_0x4023b9,'viewBox':'0\x200\x2011\x2010'});const _0x195993=['ck','ck-revision-history-sidebar__revision-author'];_0x5c2856&&_0x195993['push']('ck-revision-history-sidebar__revision-author_creator');const _0x589b85=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x434764,_0x5c2856?'Revision\x20creator':'Revision\x20author')},'children':[_0x354f3e,_0x92ab74['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x195993},'children':_0x589b85});}}function ci(_0x199b65,_0x15a688){const _0x416db4=_0x199b65['bindTemplate'],_0x455175=_0x199b65['locale'],_0x15a00a=_0x5bfde6(_0x455175);_0x15a00a['panelPosition']='sw';const _0x1452d8=function(_0xbb67e5,_0x21a110){const _0x523d98=function(_0x1ba6a6,_0x2e4279){const _0x13c57a=_0x1ba6a6['locale'],_0x5283e3={'Compare\x20against\x20selected':R(_0x13c57a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x13c57a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x13c57a,'Restore\x20this\x20revision')};return _0x2e4279['map'](_0xc3e847=>{const _0x4d6bca=_0x5283e3[_0xc3e847['name']];return _0x4d6bca&&_0x4d6bca!==_0xc3e847['name']&&(_0xc3e847['name']=_0x4d6bca),_0xc3e847;});}(_0xbb67e5,_0x21a110),_0x1022e8=new _0xbf5b7e();for(const _0x4b0fc7 of _0x523d98){const _0x17ebd0={'type':'button','model':new to({'label':_0x4b0fc7['name'],'class':_0x4b0fc7['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b0fc7['action']})};_0x17ebd0['model']['bind']('isEnabled')['to'](_0xbb67e5,'isActionsDropdownOpen',_0x18993f=>'function'!=typeof _0x4b0fc7['isEnabled']||(!_0x18993f||_0x4b0fc7['isEnabled'](_0xbb67e5))),_0x1022e8['add'](_0x17ebd0);}return _0x1022e8;}(_0x199b65,_0x15a688);return _0x199b65['bind']('isActionsDropdownOpen')['to'](_0x15a00a,'isOpen'),_0x15a00a['buttonView']['set']({'label':R(_0x455175,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2717e7}),_0x15a00a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x416db4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x416db4['to'](_0x2573f3=>_0x2573f3['stopPropagation']())}}),_0x15a00a['on']('execute',_0x4bee4a=>{_0x199b65['isReady']&&'function'==typeof _0x4bee4a['source']['_action']&&_0x4bee4a['source']['_action'](_0x199b65);}),_0x57d04a(_0x15a00a,_0x1452d8,{'role':'menu'}),_0x15a00a['listenTo'](_0x199b65,'change:isActionsDropdownOpen',(_0x314b5d,_0x1aa691,_0xe6ba6d)=>{if(_0xe6ba6d)for(const _0x521969 of _0x15a00a['listView']['items']){const _0xfbbe77=_0x521969['children']['first'],_0x1edf12=_0x15a688['find'](_0x199d30=>_0x199d30['action']===_0xfbbe77['_action'])['isVisible'];_0x521969['isVisible']=void 0x0===_0x1edf12||_0x1edf12(_0x199b65);}}),_0x15a00a;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x310213(_0x5372f9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4b09fc,_0x107669,_0x4c4a87,_0x5b6a02){super(_0x4b09fc);const _0x456c4d=this['bindTemplate'],_0x717410=function(_0x19cf33,_0x20524e){const _0x34be25=Array['from'](_0x20524e['authors'])['filter'](_0x41a4ff=>_0x41a4ff!=_0x20524e['creator']);return _0x20524e['creator']&&_0x34be25['unshift'](_0x20524e['creator']),_0x34be25['map'](_0x45a671=>new ni(_0x19cf33,_0x45a671,_0x45a671==_0x20524e['creator']));}(_0x4b09fc,_0x107669);this['id']=_0x107669['id'],this['_revision']=_0x107669,this['_requireRevisionName']=_0x5b6a02,this['bind']('name','createdAt')['to'](_0x107669),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3fa67b=>{return _0x29530a=_0x4b09fc['uiLanguage'],(_0x7e8534=_0x3fa67b)['toLocaleDateString'](_0x29530a,{'month':'long','day':'numeric'})+',\x20'+_0x7e8534['toLocaleTimeString'](_0x29530a,{'hour':'numeric','minute':'numeric'});var _0x29530a,_0x7e8534;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x4b09fc,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x43af77=>_0x43af77||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x381fc3,_0x17a1d2)=>_0x381fc3&&_0x17a1d2),this['revisionActionsView']=_0x4c4a87&&_0x4c4a87['length']?ci(this,_0x4c4a87):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x456c4d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x456c4d['if']('isEnabled','ck-disabled',_0x2299c0=>!_0x2299c0),_0x456c4d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x456c4d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x456c4d['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':_0x456c4d['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':_0x717410}]},this['revisionActionsView']],'on':{'click':_0x456c4d['to'](_0x3555a2=>{_0x3555a2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c0010=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c0010,'change',()=>{this['_requireRevisionName']&&!_0x5c0010['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c0010['value']}),_0x5c0010['value']||(_0x5c0010['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x43c352,_0xa3e704){const _0x44786e=_0x29909a['fromJSDate'](_0x43c352)['setLocale'](_0xa3e704),_0xe95107=_0x29909a['local'](),_0x33e4f5=_0xe95107['minus']({'days':0x1})['startOf']('day');let _0x3c4dc7,_0xad2c6c;return _0x44786e['hasSame'](_0xe95107,'day')?(_0x3c4dc7=_0x44786e['startOf']('day')['toJSDate'](),_0xad2c6c=_0x44786e['toRelativeCalendar']()):_0x44786e['hasSame'](_0x33e4f5,'day')?(_0x3c4dc7=_0x33e4f5['toJSDate'](),_0xad2c6c=_0x44786e['toRelativeCalendar']()):_0x44786e['hasSame'](_0xe95107,'week')?(_0x3c4dc7=_0x44786e['startOf']('week')['toJSDate'](),_0xad2c6c=_0x44786e['weekdayLong']||''):_0x44786e['hasSame'](_0xe95107,'year')?(_0x3c4dc7=_0x44786e['startOf']('month')['toJSDate'](),_0xad2c6c=_0x44786e['monthLong']||''):(_0x3c4dc7=_0x44786e['startOf']('year')['toJSDate'](),_0xad2c6c=String(_0x44786e['year'])),{'startDate':_0x3c4dc7,'localizedPeriodName':_0xad2c6c};}class fi extends _0x5372f9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f970c,_0x1fda00,_0x49578d,_0xb35321){super(_0x3f970c);const _0x53a299=bi(_0x1fda00,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1fda00,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x49578d,this['_requireRevisionName']=_0xb35321,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':_0x53a299}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2bf4aa){const _0x3196aa=new _i(this['locale'],_0x2bf4aa,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3196aa);}['removeRevision'](_0x9687de){const _0x2d686a=this['revisionViews']['find'](_0x35857f=>_0x35857f['id']===_0x9687de['id']);this['revisionViews']['remove'](_0x2d686a);}}class ki extends _0x5372f9{constructor(_0x2309f4){super(_0x2309f4);const _0x33da87=new _0x2e6b9e();_0x33da87['content']=_0x5a259c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x33da87,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2309f4,'Revision\x20history')]}]});}}class pi extends _0x5372f9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x132b1f,_0x21af25,_0x2e10a9,_0x260808){super(_0x132b1f);const _0x7e936b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x21af25,this['_revisionActions']=_0x2e10a9,this['_requireRevisionName']=_0x260808,this['on']('select',(_0x4c51c2,_0x35b9d7)=>{this['fire']('revisionSelected',_0x35b9d7);}),this['on']('setName',(_0x544e48,_0x5244a0)=>{this['fire']('revisionSetName',_0x5244a0);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x132b1f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x7e936b['if']('isEnabled','ck-disabled',_0x4db8cf=>!_0x4db8cf)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x51d20f of this['_revisions'])this['_addRevision'](_0x51d20f);this['_revisions']['on']('add',(_0xce0678,_0x1203fe)=>{this['_addRevision'](_0x1203fe);}),this['_revisions']['on']('remove',(_0x30ed7f,_0xef8d7b)=>{this['_removeRevision'](_0xef8d7b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x463dd1=>_0x463dd1['revisionViews']['map'](_0x230a51=>_0x230a51))['flat']();}['selectRevision'](_0x1119aa){for(const _0xe1046d of this['revisionViews'])_0x1119aa&&_0x1119aa['id']===_0xe1046d['id']?_0xe1046d['select']():_0xe1046d['deselect']();}['highlightRevisions'](_0x3aee02){for(const _0x295948 of this['revisionViews'])_0x3aee02['some'](({id:_0x16ab6b})=>_0x16ab6b===_0x295948['id'])?_0x295948['highlight']():_0x295948['unhighlight']();}['_addRevision'](_0x1c50c6){const _0x28fb54=bi(_0x1c50c6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x227159=this['timePeriodViews']['get'](0x0);_0x227159&&_0x227159['startDate']['getTime']()===_0x28fb54['getTime']()||(_0x227159=new fi(this['locale'],_0x28fb54,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x227159)),_0x227159['addRevision'](_0x1c50c6);}['_removeRevision'](_0x5128e9){const _0x111892=bi(_0x5128e9['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x111892)['removeRevision'](_0x5128e9);}['_getTimePeriodViewByStartDate'](_0x2ae0b6){return this['timePeriodViews']['find'](_0x5408da=>_0x5408da['startDate']['getTime']()===_0x2ae0b6['getTime']());}}class f extends _0x40d69e{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x945c66(_0x53f26c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xf3b6b,_0x5a5660){super(_0x5a5660),this['sourceElement']=_0xf3b6b,this['model']['document']['createRoot']();const _0x5edb38=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5edb38);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x387784,_0x240d88){const _0x55ec25=new this(_0x387784,_0x240d88);return await _0x55ec25['initPlugins'](),await _0x55ec25['ui']['init'](_0x387784),await _0x55ec25['data']['init'](_0x55ec25['config']['get']('initialData')||''),_0x55ec25['fire']('ready'),_0x55ec25;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x2f4856{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d3c8e){function _0x39aff6(_0xb69f4b){return _0xb69f4b['map'](_0x413080=>String['fromCharCode'](_0x413080))['join']('');}super(_0x2d3c8e),this['result']='end',_0x2d3c8e[_0x39aff6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39aff6([0x76,0x69,0x65,0x77])][_0x39aff6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39aff6([0x61,0x75,0x74,0x6f]),_0x2d3c8e[_0x39aff6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39aff6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39aff6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39aff6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39aff6([0x6f,0x6b])});}}class ht extends _0x2f4856{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1bd7d9){if(super(_0x1bd7d9),!this['editor']['config']['get']('revisionHistory'))throw new _0x41470c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x245c13=>this['_showRevisionViewer']({..._0x245c13,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x87030a=>this['_closeRevisionViewer'](_0x87030a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e8179=>this['_restoreRevision'](_0x5e8179)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xfae64e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xfae64e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5df273){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5df273);}['getRevision'](_0x2acd50){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2acd50);}['getRevisions'](_0x2aaa0a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2aaa0a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x573c86=this['editor'],_0x33398d=_0x180232(_0x573c86,d),_0x4577be=_0x573c86['plugins']['get']('RevisionTracker'),_0x48fc27=_0x573c86['plugins']['get']('Users')['users'];return _0x33398d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33398d['lazyRoots'],(_0x33398d['plugins']['push'](at,l,u,class extends _0x2f4856{static get['requires'](){return[l,'Users'];}['init'](){const _0x19fd4a=this['editor']['plugins']['get']('Users');for(const _0x35718d of _0x48fc27)_0x35718d['isAnonymous']||_0x19fd4a['getUser'](_0x35718d['id'])||_0x19fd4a['addUser'](_0x35718d);const _0x2be267=_0x4577be['repository']['getRevisions']();let _0x39d77=null;const _0x123a4b=this['editor']['plugins']['get']('RevisionViewer');_0x123a4b['adapter']=_0x4577be['adapter'],_0x123a4b['bind']('isEnabled')['to'](_0x4577be),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x573c86,'isReadOnly',_0x2bc028=>!_0x2bc028);for(const _0x33da6f of _0x2be267){const _0x359df8=null===_0x33da6f['creator'];if(_0x359df8&&_0x33da6f['toVersion']===_0x33da6f['fromVersion'])continue;const _0x24443f=_0x33da6f['toJSON']();_0x123a4b['addRevisionData'](_0x24443f,(_0x4a1661,_0x34a107,_0x4f705e)=>{if(_0x359df8){if(_0x39d77)_0x39d77['_update'](_0x4a1661,_0x34a107);else{if(!_0x34a107){const _0x1690aa=_0x4f705e['toJSON']();_0x1690aa['id']=_0xce68bc(),_0x4577be['saveRevision'](_0x1690aa,_0x4f705e['toVersion'])['then'](_0x324321=>{_0x39d77=_0x324321;});}}}else _0x33da6f['_update'](_0x4a1661,_0x34a107);});}}},f),_0x33398d);}['_enhanceShowRevisionViewerCallback'](){const _0x59f895=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x28c74d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x19110d=this['editor']['plugins']['get']('Autosave');await _0x19110d['save']();}else await _0x28c74d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x18ddb3=this['editor']['plugins']['get']('Dialog');_0x18ddb3['isOpen']&&_0x18ddb3['hide']();}const _0x2b56b6=this['_getRevisionViewerEditorConfig']();return _0x59f895(_0x2b56b6)['then'](_0x95cd43=>{return(this['_viewerEditor']=_0x95cd43,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'),_0x95cd43);})['catch'](_0x13091c=>(console['error'](_0x13091c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x239674=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'](),_0x239674(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x499fa8=this['editor']['plugins']['get']('Annotations');_0x499fa8['refreshVisibility'](),_0x499fa8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x50bfac){const _0x2b0192=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2a814b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3c6a58=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x3c6a58,_0x50bfac)['then'](_0x4b8702=>(_0x2a814b['style']['display']='block',_0x2b0192['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4b8702));}['_closeRevisionViewer'](_0x43c77b){const _0x499518=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x499518['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x43c77b['destroy']();}async['_restoreRevision'](_0x50882f){const _0x225ad6=this['editor'],_0x54aa83=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1dfee0=_0x225ad6['plugins']['get']('RevisionTracker'),_0x24fd2e=_0x225ad6['plugins']['get']('RevisionHistoryUtils'),_0x40d6d7=_0x54aa83['repository']['getRevision'](_0x50882f);let _0x659d9c,_0x4f1cb2,_0x283bf8;try{await _0x24fd2e['loadRevisionData'](_0x40d6d7,this['adapter']),_0x659d9c=_0x24fd2e['getRevisionDocumentData'](_0x40d6d7),_0x4f1cb2=_0x24fd2e['getRevisionRootsAttributes'](_0x40d6d7);}catch(_0x39e0fe){return void console['error'](_0x39e0fe);}_0x225ad6['model']['change'](_0x14cae0=>{for(const _0x5d279d of Array['from'](_0x225ad6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x14cae0['removeMarker'](_0x5d279d);}),_0x54aa83['isReady']=!0x1,_0x225ad6['model']['enqueueChange'](_0x1895f7=>{_0x1895f7['setSelection'](null),_0x1895f7['removeSelectionAttribute'](_0x225ad6['model']['document']['selection']['getAttributeKeys']());const _0x239d9c=Object['keys'](_0x659d9c);for(const _0x16e84 of _0x225ad6['model']['document']['roots'])'$graveyard'!=_0x16e84['rootName']&&_0x16e84['isAttached']()&&!_0x239d9c['includes'](_0x16e84['rootName'])&&_0x1895f7['detachRoot'](_0x16e84);for(const _0x21420a of _0x239d9c){let _0x3af12f=_0x225ad6['model']['document']['getRoot'](_0x21420a);_0x3af12f&&_0x3af12f['isAttached']()||(_0x3af12f=_0x1895f7['addRoot'](_0x21420a));const _0x39d9ad=_0x4f1cb2[_0x21420a],_0x1ca594=Object['keys'](_0x39d9ad),_0x19f72a=_0x659d9c[_0x21420a];for(const _0x412b02 of _0x3af12f['getAttributeKeys']())_0x1ca594['includes'](_0x412b02)||_0x1895f7['removeAttribute'](_0x412b02,_0x3af12f);for(const _0x454962 of _0x1ca594)_0x1895f7['setAttribute'](_0x454962,_0x4f1cb2[_0x21420a][_0x454962],_0x3af12f);_0x1895f7['remove'](_0x1895f7['createRangeIn'](_0x3af12f)),_0x1895f7['insert'](_0x225ad6['data']['parse'](_0x19f72a,_0x3af12f),_0x3af12f,0x0);}});const _0x26477d=R(_0x225ad6['locale'],'Restored');if(_0x40d6d7['name'])_0x283bf8=-0x1==_0x40d6d7['name']['indexOf'](_0x26477d)?_0x26477d+':\x20'+_0x40d6d7['name']:_0x40d6d7['name'];else _0x283bf8=_0x26477d+':\x20'+(_0x40d6d7['createdAt']['toLocaleDateString'](_0x225ad6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x40d6d7['createdAt']['toLocaleTimeString'](_0x225ad6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1dfee0['saveRevision']({'name':_0x283bf8}),_0x54aa83['isReady']=!0x0,_0x225ad6['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,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x1040d0){super(_0x1040d0),this['_revisionViewer']=_0x1040d0['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2d7c9d=this['_revisionsRepository']['_revisions'],_0x4f7a09=this['_createRevisionActions'](),_0x4fcde2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new pi(this['editor']['locale'],_0x2d7c9d,_0x4f7a09,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',(_0x5d71ab,_0x32c3cf)=>{_0x32c3cf['revisionViews']['on']('add',(_0x444de1,_0x4b953d)=>{_0x4b953d['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)),_0x4fcde2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x18683c=this['_revisionsRepository']['getRevision'](0x0);if(_0x18683c){const _0x3bf4d1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18683c['id']);this['_revisionViewer']['compare'](_0x18683c,_0x3bf4d1);}}['_handleRevisionSelected'](_0x5b2358,_0x233c0e){const _0xa51147=this['_revisionsRepository']['getRevision'](_0x233c0e['id']),_0x27ceaf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa51147['id']);this['_revisionViewer']['compare'](_0xa51147,_0x27ceaf);}['_handleRevisionSetName'](_0x35043b,_0x16afec){this['_revisionsRepository']['getRevision'](_0x16afec['id'])['setName'](_0x16afec['name']);}['_handleDiffChange'](_0x5094d5,_0x230e24,_0x237a7b){const _0x1b9f27=this['_revisionsRepository']['getRevisionsInDiff'](_0x237a7b);_0x1b9f27['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1b9f27),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1b9f27[0x0]));}['_createRevisionActions'](){const _0x1204c1=this['editor'],_0xc339b5=f['availableRevisionActions'],_0x5cf464=_0x1204c1['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x5cf464['length'])return _0x5cf464['map'](_0x3f830e=>{const _0x2875f4='string'==typeof _0x3f830e?Object['assign']({},_0xc339b5[_0x3f830e]):_0x3f830e;return _0x2875f4['action']=_0x2875f4['action']['bind'](this,_0x1204c1),_0x2875f4['isVisible']&&(_0x2875f4['isVisible']=_0x2875f4['isVisible']['bind'](this,_0x1204c1)),_0x2875f4;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x592888},_0x474f49)=>{const _0x3d44e6=_0x592888['get'](l),_0x346834=_0x3d44e6['repository'];let _0x281bb4=_0x3d44e6['diff']['newRevisionId'],_0x5618c4=_0x474f49['id'];_0x346834['getIndex'](_0x281bb4)>_0x346834['getIndex'](_0x5618c4)&&([_0x281bb4,_0x5618c4]=[_0x5618c4,_0x281bb4]),_0x3d44e6['compare'](_0x281bb4,_0x5618c4);},'isVisible':({plugins:_0x5c988c},_0x10490a)=>{const _0x4d003b=_0x5c988c['get'](l);return!(_0x4d003b['repository']['getRevisionsInDiff'](_0x4d003b['diff'])['length']>0x2)&&!_0x10490a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4752d5,{id:_0x4afe83})=>{_0x4752d5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4afe83);},'isVisible':({plugins:_0x34e84c},_0x90424b)=>!!_0x34e84c['get'](l)['repository']['getLaterVisibleRevision'](_0x90424b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x27a79a},{id:_0x19b42f,revisionNameView:_0x2350ac})=>{const _0x2e7a5f=_0x27a79a['get'](l),_0x5dd4f0=_0x2e7a5f['repository']['getEarlierVisibleRevision'](_0x19b42f);_0x2e7a5f['compare'](_0x19b42f,_0x5dd4f0),_0x2350ac['focus'](),_0x2350ac['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x365752,_0x3365b0){super(_0x365752),this['_view']=_0x3365b0,this['_toolbarConfig']=st(_0x365752['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x4648a3){const _0x3c48d6=this['editor'],_0x58696b=this['view'],_0x5d75bd=_0x3c48d6['editing']['view'],_0x57fd47=_0x58696b['editable'],_0x13882a=_0x5d75bd['document']['getRoot']();_0x57fd47['name']=_0x13882a['rootName'],_0x58696b['render']();const _0x3d3d2e=_0x57fd47['element'];this['setEditableElement'](_0x57fd47['name'],_0x3d3d2e),_0x58696b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5d75bd['attachDomRoot'](_0x3d3d2e),this['_elementReplacer']['replace'](_0x4648a3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x28b4c2=this['view'],_0x36f6fa=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x36f6fa['detachDomRoot'](_0x28b4c2['editable']['name']),_0x28b4c2['destroy']();}['_initToolbar'](){const _0x3bddc0=this['view'];_0x3bddc0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3bddc0['stickyPanel']['limiterElement']=_0x3bddc0['element'],_0x3bddc0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4ff8c0})=>_0x4ff8c0),_0x3bddc0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3bddc0['toolbar']);}}class ii extends _0x3400fc{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x39cbbc,_0x33b001,_0x4f457d={}){super(_0x39cbbc),this['stickyPanel']=new _0x11665a(_0x39cbbc),this['toolbar']=new _0x375565(_0x39cbbc,{'shouldGroupWhenFull':_0x4f457d['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x39cbbc,_0x33b001);}['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
|
+
_0x396607(_0x39e5da){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xd58209,_0xce90ea){super(_0xce90ea),this['sourceElement']=_0xd58209,this['model']['document']['createRoot']();const _0x4b49a3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4b49a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53d127,_0x1d8c5f){const _0x4f26bb=new this(_0x53d127,_0x1d8c5f);return await _0x4f26bb['initPlugins'](),await _0x4f26bb['ui']['init'](_0x53d127),await _0x4f26bb['data']['init'](_0x4f26bb['config']['get']('initialData')||''),_0x4f26bb['fire']('ready'),_0x4f26bb;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x40d69e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19964b){function _0x15e96d(_0x3e0e3a){return _0x3e0e3a['map'](_0xea1a02=>String['fromCharCode'](_0xea1a02))['join']('');}super(_0x19964b),this['result']='end',_0x19964b[_0x15e96d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e96d([0x76,0x69,0x65,0x77])][_0x15e96d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e96d([0x61,0x75,0x74,0x6f]),_0x19964b[_0x15e96d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15e96d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e96d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15e96d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15e96d([0x6f,0x6b])});}}class ct extends _0x40d69e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x2eca3d){if(super(_0x2eca3d),!this['editor']['config']['get']('revisionHistory'))throw new _0x27bd41('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x455a31=>this['_showRevisionViewer']({..._0x455a31,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xee11ab=>this['_closeRevisionViewer'](_0xee11ab)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x510a4a=>this['_restoreRevision'](_0x510a4a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1f9c5e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1f9c5e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1dd018){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1dd018);}['getRevision'](_0x49a341){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x49a341);}['getRevisions'](_0x180b42){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x180b42||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1ca8bf=this['editor'],_0x2e24f2=_0xe8ae6a(_0x1ca8bf,d),_0x38d314=_0x1ca8bf['plugins']['get']('RevisionTracker'),_0x7c775=_0x1ca8bf['plugins']['get']('Users')['users'];return _0x2e24f2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2e24f2['lazyRoots'],(_0x2e24f2['plugins']['push'](ht,l,u,class extends _0x40d69e{static get['requires'](){return[l,'Users'];}['init'](){const _0x14fcc1=this['editor']['plugins']['get']('Users');for(const _0x2c34fd of _0x7c775)_0x2c34fd['isAnonymous']||_0x14fcc1['getUser'](_0x2c34fd['id'])||_0x14fcc1['addUser'](_0x2c34fd);const _0xd4b272=_0x38d314['repository']['getRevisions']();let _0xb0a333=null;const _0x17c46f=this['editor']['plugins']['get']('RevisionViewer');_0x17c46f['adapter']=_0x38d314['adapter'],_0x17c46f['bind']('isEnabled')['to'](_0x38d314),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1ca8bf,'isReadOnly',_0x576b46=>!_0x576b46);for(const _0x5e04cc of _0xd4b272){const _0xfa6201=null===_0x5e04cc['creator'];if(_0xfa6201&&_0x5e04cc['toVersion']===_0x5e04cc['fromVersion'])continue;const _0x112c0c=_0x5e04cc['toJSON']();_0x17c46f['addRevisionData'](_0x112c0c,(_0x524ee6,_0x9a4b03,_0x42358)=>{if(_0xfa6201){if(_0xb0a333)_0xb0a333['_update'](_0x524ee6,_0x9a4b03);else{if(!_0x9a4b03){const _0x1e85a3=_0x42358['toJSON']();_0x1e85a3['id']=_0x58edc7(),_0x38d314['saveRevision'](_0x1e85a3,_0x42358['toVersion'])['then'](_0x26802e=>{_0xb0a333=_0x26802e;});}}}else _0x5e04cc['_update'](_0x524ee6,_0x9a4b03);});}}},f),_0x2e24f2);}['_enhanceShowRevisionViewerCallback'](){const _0x435f37=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3d2ac4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x443863=this['editor']['plugins']['get']('Autosave');await _0x443863['save']();}else await _0x3d2ac4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x537d43=this['editor']['plugins']['get']('Dialog');_0x537d43['isOpen']&&_0x537d43['hide']();}const _0x483b5a=this['_getRevisionViewerEditorConfig']();return _0x435f37(_0x483b5a)['then'](_0x24835f=>{return(this['_viewerEditor']=_0x24835f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x24835f);})['catch'](_0x354a6f=>(console['error'](_0x354a6f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x50074f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x50074f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x336754=this['editor']['plugins']['get']('Annotations');_0x336754['refreshVisibility'](),_0x336754['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10600e){const _0x32e307=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x279b14=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x21fd48=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x21fd48,_0x10600e)['then'](_0x59276c=>(_0x279b14['style']['display']='block',_0x32e307['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59276c));}['_closeRevisionViewer'](_0x579611){const _0x3b90fe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b90fe['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x579611['destroy']();}async['_restoreRevision'](_0x2ce237){const _0x31a6fc=this['editor'],_0x2603ff=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4adaa9=_0x31a6fc['plugins']['get']('RevisionTracker'),_0x482546=_0x31a6fc['plugins']['get']('RevisionHistoryUtils'),_0x2d99fa=_0x2603ff['repository']['getRevision'](_0x2ce237);let _0x1e75e5,_0xe3b0,_0x1c1b70;try{await _0x482546['loadRevisionData'](_0x2d99fa,this['adapter']),_0x1e75e5=_0x482546['getRevisionDocumentData'](_0x2d99fa),_0xe3b0=_0x482546['getRevisionRootsAttributes'](_0x2d99fa);}catch(_0x58e9c0){return void console['error'](_0x58e9c0);}_0x31a6fc['model']['change'](_0x4ae802=>{for(const _0x111755 of Array['from'](_0x31a6fc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4ae802['removeMarker'](_0x111755);}),_0x2603ff['isReady']=!0x1,_0x31a6fc['model']['enqueueChange'](_0x538e88=>{_0x538e88['setSelection'](null),_0x538e88['removeSelectionAttribute'](_0x31a6fc['model']['document']['selection']['getAttributeKeys']());const _0x4e5b89=Object['keys'](_0x1e75e5);for(const _0xf4c51d of _0x31a6fc['model']['document']['roots'])'$graveyard'!=_0xf4c51d['rootName']&&_0xf4c51d['isAttached']()&&!_0x4e5b89['includes'](_0xf4c51d['rootName'])&&_0x538e88['detachRoot'](_0xf4c51d);for(const _0x1d14ca of _0x4e5b89){let _0x1a4f8f=_0x31a6fc['model']['document']['getRoot'](_0x1d14ca);_0x1a4f8f&&_0x1a4f8f['isAttached']()||(_0x1a4f8f=_0x538e88['addRoot'](_0x1d14ca));const _0x127a5a=_0xe3b0[_0x1d14ca],_0x42f4b6=Object['keys'](_0x127a5a),_0x53b6cb=_0x1e75e5[_0x1d14ca];for(const _0x1c1fd2 of _0x1a4f8f['getAttributeKeys']())_0x42f4b6['includes'](_0x1c1fd2)||_0x538e88['removeAttribute'](_0x1c1fd2,_0x1a4f8f);for(const _0x3b56c3 of _0x42f4b6)_0x538e88['setAttribute'](_0x3b56c3,_0xe3b0[_0x1d14ca][_0x3b56c3],_0x1a4f8f);_0x538e88['remove'](_0x538e88['createRangeIn'](_0x1a4f8f)),_0x538e88['insert'](_0x31a6fc['data']['parse'](_0x53b6cb,_0x1a4f8f),_0x1a4f8f,0x0);}});const _0x417d3f=R(_0x31a6fc['locale'],'Restored');if(_0x2d99fa['name'])_0x1c1b70=-0x1==_0x2d99fa['name']['indexOf'](_0x417d3f)?_0x417d3f+':\x20'+_0x2d99fa['name']:_0x2d99fa['name'];else _0x1c1b70=_0x417d3f+':\x20'+(_0x2d99fa['createdAt']['toLocaleDateString'](_0x31a6fc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2d99fa['createdAt']['toLocaleTimeString'](_0x31a6fc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4adaa9['saveRevision']({'name':_0x1c1b70}),_0x2603ff['isReady']=!0x0,_0x31a6fc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,wi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|