@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250122.0 → 0.0.0-nightly-20250124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -8
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2397cf(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5be490){super(),this['id']=_0x5be490['id']||_0x316b02(),this['creator']=_0x5be490['creator']||null,this['authors']=_0x5be490['authors']||[],this['diffData']=_0x5be490['diffData']||null,this['toVersion']=_0x5be490['toVersion']||0x0,this['fromVersion']=_0x5be490['fromVersion']||0x0,this['set']('name',_0x5be490['name']||''),this['set']('createdAt',_0x5be490['createdAt']||new Date()),this['set']('attributes',_0x5be490['attributes']||{});}['setName'](_0x3a7b42){this['_update']({'name':_0x3a7b42});}['setAttribute'](_0xda8efc,_0x4afd81){const _0x422916=_0x3bd5f8(this['attributes']);_0x43c483(_0x422916,_0xda8efc,_0x4afd81),this['_update']({'attributes':_0x422916});}['removeAttribute'](_0xc80b6e){const _0x43ad0b=_0x3bd5f8(this['attributes']);_0xd74934(_0x43ad0b,_0xc80b6e),this['_update']({'attributes':_0x43ad0b});}['_update'](_0x5633c4,_0x12b5ab=!0x1){let _0x16fab6=!0x1;const _0x3f75a5={'id':this['id']},_0x36d03b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x16cde1 of _0x36d03b){const _0xd2eb96=_0x5633c4[_0x16cde1];void 0x0!==_0xd2eb96&&_0xd2eb96!==this[_0x16cde1]&&(this[_0x16cde1]=_0xd2eb96,_0x3f75a5[_0x16cde1]=_0xd2eb96,_0x16fab6=!0x0);}_0x16fab6&&(_0x3f75a5['authors']&&(_0x3f75a5['authorsIds']=_0x3f75a5['authors']['map'](_0x16bfc4=>_0x16bfc4['id']),delete _0x3f75a5['authors']),this['fire']('_update',_0x3f75a5,_0x12b5ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4dcbdc=>_0x4dcbdc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4011e1{['_revisions'];static get['requires'](){return[_0x7d3fd1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x379c7b){super(_0x379c7b),this['_revisions']=new _0x177da0();}['afterInit'](){!async function(_0x58bd5a){const _0x8695bd=_0x49043d([0x68,0x45,0x54,0x79,0x31,0x4f,0x6b,0x73,0x39,0x33,0x5a,0x71,0x34,0x67,0x66,0x43,0x41,0x7a,0x42,0x35,0x44,0x58,0x4a,0x49,0x70,0x55,0x6c,0x57,0x63,0x32,0x78,0x76,0x6f,0x53,0x4d,0x62,0x46,0x6e,0x52,0x47,0x4c,0x6a,0x37,0x4e,0x38,0x6d,0x77,0x4b,0x65,0x69,0x72,0x51,0x56,0x59,0x74,0x75,0x64,0x50,0x48,0x30,0x36,0x61]),_0x2f4d99=0xeb829,_0x1acdae=0x9501ecd,_0x32d50d=0x957439d^_0x1acdae,_0x5f50e3=window[_0x49043d([0x44,0x61,0x74,0x65])][_0x49043d([0x6e,0x6f,0x77])](),_0xc39ce9=_0x58bd5a[_0x49043d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ed62f=new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b52a=>{_0xc39ce9[_0x49043d([0x6f,0x6e,0x63,0x65])](_0x49043d([0x72,0x65,0x61,0x64,0x79]),_0x17b52a);}),_0x2e3e06={[_0x49043d([0x6b,0x74,0x79])]:_0x49043d([0x45,0x43]),[_0x49043d([0x75,0x73,0x65])]:_0x49043d([0x73,0x69,0x67]),[_0x49043d([0x63,0x72,0x76])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36]),[_0x49043d([0x78])]:_0x49043d([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]),[_0x49043d([0x79])]:_0x49043d([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]),[_0x49043d([0x61,0x6c,0x67])]:_0x49043d([0x45,0x53,0x32,0x35,0x36])},_0x1ab99c=_0xc39ce9[_0x49043d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49043d([0x67,0x65,0x74])](_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2228bc(){let _0x582dc9,_0x14bd43=null,_0x4bf27a=null;try{if(_0x1ab99c==_0x49043d([0x47,0x50,0x4c]))return _0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x582dc9=_0x3a78ba(),!_0x582dc9)return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bf27a=_0x2b5195(_0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x582dc9[_0x49043d([0x6a,0x74,0x69])])),await _0x2c319a()?_0x161e1b()?_0x2f3f98()?_0x49043d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf8973c()?(_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14bd43=_0x19aa97(_0x49043d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x74,0x72,0x69,0x61,0x6c])&&(_0x14bd43=_0x19aa97(_0x49043d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x14bd43=_0x19aa97(_0x49043d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x592510()):_0x49043d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a986d){return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f3f98(){const _0x46dc86=[_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49043d([0x74,0x72,0x69,0x61,0x6c])][_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f50e3/0x3e8:0xe10*_0x32d50d;return _0x582dc9[_0x49043d([0x65,0x78,0x70])]<_0x46dc86;}function _0x161e1b(){const _0x2c315b=_0x582dc9[_0x49043d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c315b)return!0x1;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x48])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x52,0x48]))){if(_0xa9bbdf())return!0x0;if(_0x18caca()||_0x1ee42())return!0x0;}return!0x1;}function _0xf8973c(){const _0x3cd88b=_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd88b||0x0==_0x3cd88b[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e7d70}=new URL(window[_0x49043d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd88b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7d70))return!0x0;const _0x5546b2=_0x3e7d70[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));return _0x3cd88b[_0x49043d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x316777=>_0x316777[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))[_0x49043d([0x6d,0x61,0x70])](_0x29d424=>_0x29d424[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])))[_0x49043d([0x73,0x6f,0x6d,0x65])](_0x4376b0=>_0x5546b2[_0x49043d([0x65,0x76,0x65,0x72,0x79])]((_0x4f5b5f,_0x5b1812)=>_0x4376b0[_0x5b1812]===_0x4f5b5f||_0x4376b0[_0x5b1812]===_0x49043d([0x2a])));}function _0x592510(){return _0x14bd43&&_0x4bf27a?new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9830e0,_0x551a38)=>{_0x14bd43[_0x49043d([0x74,0x68,0x65,0x6e])](_0x9830e0,_0x551a38),_0x4bf27a[_0x49043d([0x74,0x68,0x65,0x6e])](_0x1c038e=>{_0x1c038e!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x9830e0(_0x1c038e);},_0x551a38);}):_0x14bd43||_0x4bf27a||_0x49043d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b5195(_0x536f99,_0x1c78a5){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508fcc=>{if(_0x145661())return _0x508fcc(_0x49043d([0x56,0x61,0x6c,0x69,0x64]));_0x4545da(),_0xc39ce9[_0x49043d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f128=!0x1;const _0x28740a=_0x316b02();function _0x3c6b5d(_0x2685b5){return!!_0x2685b5&&(typeof _0x2685b5===_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2685b5===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2685b5[_0x49043d([0x74,0x68,0x65,0x6e])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2685b5[_0x49043d([0x63,0x61,0x74,0x63,0x68])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe39d48(_0x5c6d9a){_0x2d8477(_0x5c6d9a)[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3b2fea=>{if(!_0x3b2fea||_0x3b2fea[_0x49043d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49043d([0x6f,0x6b]))return _0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5261e8(_0x2c7853(_0x28740a+_0x1c78a5))!=_0x3b2fea[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0xb223d1=>(_0x1cd5a9(),_0xb223d1),()=>{const _0x26b84a=_0x5eaf02();return null==_0x26b84a?(_0x1cd5a9(),_0x49043d([0x56,0x61,0x6c,0x69,0x64])):_0x49043d(_0x5f50e3-_0x26b84a>(0x2d5c9acd^_0x1acdae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0x508fcc)[_0x49043d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55f38a=0x966f04d^_0x1acdae;function _0x1cd5a9(){const _0x3970eb=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x2ecaf8=_0x2b263c(_0x5261e8(window[_0x49043d([0x4d,0x61,0x74,0x68])][_0x49043d([0x63,0x65,0x69,0x6c])](_0x5f50e3/_0x55f38a)));window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3970eb,_0x2ecaf8);}function _0x5eaf02(){const _0x4bc19d=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x27e178=window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bc19d);return _0x27e178?window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b263c(_0x27e178),0x10)*_0x55f38a:null;}function _0x2d8477(_0x2899bb){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3703c2,_0x307fdc)=>{_0x2899bb[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3703c2,_0x307fdc),window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x307fdc,0x951ca0d^_0x1acdae);});}}_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xae97e9,_0x4b409b)=>{if(_0x4b409b[0x0]!=_0x536f99)return _0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b409b[0x1]={..._0x4b409b[0x1],[_0x49043d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28740a};},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x68,0x69,0x67,0x68])}),_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25de74=>{_0x3c6b5d(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f128=!0x0,_0xe39d48(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x6c,0x6f,0x77])}),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>{_0x51f128||_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x145661(){return _0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49043d([0x61,0x75,0x74,0x6f]);}function _0x4545da(){_0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49043d([0x61,0x75,0x74,0x6f]);}}function _0x19aa97(_0x2e2060){const _0x1ae8bf=[new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1adacc=>setTimeout(_0x1adacc,0x9592001^_0x1acdae)),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44217d=>{const _0x22ac23=0x9501eca^_0x1acdae,_0x177ed6=_0x58bd5a[_0x49043d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x23ecfa(){_0x177ed6[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x22ac23&&_0x44217d();}_0x23ecfa(),_0x177ed6[_0x49043d([0x6f,0x6e])](_0x49043d([0x61,0x64,0x64]),_0x23ecfa);})),new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149950=>{function _0x46a145(){for(const _0x1146a6 in window)if(window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1146a6))&&window[_0x1146a6]==_0x2f4d99)return _0x149950();_0xc39ce9[_0x49043d([0x73,0x74,0x61,0x74,0x65])]!=_0x49043d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46a145,0x9500d45^_0x1acdae);}_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x46a145();})];return window[_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49043d([0x72,0x61,0x63,0x65])](_0x1ae8bf)[_0x49043d([0x74,0x68,0x65,0x6e])](()=>_0x2e2060);}async function _0x1c5fd5(){if(await _0x4ed62f,_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11521d=_0x58bd5a[_0x49043d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c49f2=_0x58bd5a[_0x49043d([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])](_0x11521d[_0x49043d([0x69,0x64])]),_0x2332c8=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11521d['id'],_0x2c49f2?_0x2c49f2['id']:null,!0x0),_0x2332c8[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2332c8[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28ccb2,void(_0x2332c8[_0x49043d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28ccb2);}if(_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17691b=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17691b[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17691b[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17691b[_0x49043d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28ccb2,_0x17691b[_0x49043d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28ccb2;}_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49043d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa9bbdf(){return _0x328fc9(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3fb37b(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49043d([0x73,0x74,0x61,0x74,0x65])]==_0x49043d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18caca(){return _0x328fc9(_0x49043d([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 _0x1ee42(){return _0x328fc9(_0x49043d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1935f3(_0x538a20){const _0x5703a9=_0x1d14f7();_0xc39ce9[_0x5703a9]=_0x49043d([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])+_0x538a20,_0x538a20[_0x49043d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1d14f7()]=_0x2f4d99),_0x538a20!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5fd5();}function _0x1d14f7(){const _0x39a672=window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49043d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49043d([0x6e,0x6f,0x77])]())[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49043d([0x2e]),'');let _0x1ea287=_0x49043d([0x68]);for(let _0x56bb21=0x0;_0x56bb21<_0x39a672[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56bb21+=0x2){let _0x3eb1cb=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a672[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56bb21,_0x56bb21+0x2));_0x3eb1cb>=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3eb1cb-=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea287+=_0x8695bd[_0x3eb1cb];}return _0x1ea287;}function _0x3a78ba(){const _0x22dc4c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));if(0x3!=_0x22dc4c[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348721(_0x22dc4c[0x1]);function _0x348721(_0x2c5ea5){const _0x37bd9b=_0x55397a(_0x2c5ea5);return _0x37bd9b&&_0xf013a2()?_0x37bd9b:null;function _0xf013a2(){const _0x516995=_0x37bd9b[_0x49043d([0x6a,0x74,0x69])],_0x96c8f3=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36c510={..._0x37bd9b,[_0x49043d([0x6a,0x74,0x69])]:_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36c510[_0x49043d([0x76,0x63])],_0x2c7853(_0x36c510)==_0x96c8f3;}}}async function _0x2c319a(){let _0x499ed0=!0x0;try{const _0x3a0e6c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])),[_0x51bcea,_0x1a4b79,_0x3465c3]=_0x3a0e6c;return _0x4a0ecb(_0x51bcea),await _0x288e30(_0x51bcea,_0x1a4b79,_0x3465c3),_0x499ed0;}catch(_0x442f73){return!0x1;}function _0x4a0ecb(_0x4b47e0){const _0x426233=_0x55397a(_0x4b47e0);_0x426233&&_0x426233[_0x49043d([0x61,0x6c,0x67])]==_0x49043d([0x45,0x53,0x32,0x35,0x36])||(_0x499ed0=!0x1);}async function _0x288e30(_0x4f3595,_0x9b33ed,_0x3b313e){const _0x559829=window[_0x49043d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49043d([0x66,0x72,0x6f,0x6d])](_0x27ee61(_0x3b313e),_0x1388e3=>_0x1388e3[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301471=new window[(_0x49043d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49043d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f3595+_0x49043d([0x2e])+_0x9b33ed),_0x19e646=window[_0x49043d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49043d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19e646)return;const _0x31f420=await _0x19e646[_0x49043d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49043d([0x6a,0x77,0x6b]),_0x2e3e06,{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19e646[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x68,0x61,0x73,0x68])]:{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31f420,_0x559829,_0x301471)||(_0x499ed0=!0x1);}}function _0x55397a(_0x264dbc){return _0x264dbc[_0x49043d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x65,0x79]))?JSON[_0x49043d([0x70,0x61,0x72,0x73,0x65])](_0x27ee61(_0x264dbc)):null;}function _0x27ee61(_0x33a59b){return window[_0x49043d([0x61,0x74,0x6f,0x62])](_0x33a59b[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49043d([0x2b]))[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49043d([0x2f])));}function _0x2c7853(_0x563f4f){let _0x2e6506=0x1505;function _0x3c02c2(_0x416232){for(let _0x5dd87e=0x0;_0x5dd87e<_0x416232[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd87e++){const _0x501752=_0x416232[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dd87e);_0x2e6506=(_0x2e6506<<0x5)+_0x2e6506+_0x501752,_0x2e6506&=_0x2e6506;}}function _0x2cdac5(_0x422f30){Array[_0x49043d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x422f30)?_0x422f30[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cdac5):_0x422f30&&typeof _0x422f30==_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49043d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x422f30)[_0x49043d([0x73,0x6f,0x72,0x74])]()[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x179511,_0x2fd295])=>{_0x3c02c2(_0x179511),_0x2cdac5(_0x2fd295);}):_0x3c02c2(window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x422f30));}return _0x2cdac5(_0x563f4f),_0x2e6506>>>0x0;}function _0x5261e8(_0x1a4eb5){return _0x1a4eb5[_0x49043d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49043d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49043d([0x30]));}function _0x2b263c(_0x4daff3){return _0x4daff3[_0x49043d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49043d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49043d([0x6a,0x6f,0x69,0x6e])]('');}function _0x328fc9(_0x237f12){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x68,0x61,0x73])](_0x237f12);}function _0x3fb37b(_0x35d41e){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x67,0x65,0x74])](_0x35d41e);}function _0x28ccb2(){}function _0x49043d(_0x4f1ed4){return _0x4f1ed4['map'](_0x2923c1=>String['fromCharCode'](_0x2923c1))['join']('');}_0x1935f3(await _0x2228bc());}(this);}['createRevision'](_0x59270d){const _0x4b7870=this['editor']['plugins']['get']('Users');return new a({'id':_0x59270d['id'],'name':_0x59270d['name'],'creator':_0x59270d['creatorId']?_0x4b7870['getUser'](_0x59270d['creatorId']):null,'diffData':_0x59270d['diffData']||_0x59270d['data'],'authors':_0x59270d['authorsIds']['map'](_0x33af71=>_0x4b7870['getUser'](_0x33af71)),'createdAt':new Date(_0x59270d['createdAt']),'attributes':_0x59270d['attributes'],'fromVersion':_0x59270d['fromVersion'],'toVersion':_0x59270d['toVersion']});}['addRevision'](_0x5177a7,_0x11de3c=0x0){this['_revisions']['add'](_0x5177a7,_0x11de3c);}['getRevision'](_0x1e5c08){return this['_revisions']['get'](_0x1e5c08);}['getRevisions'](_0x17e97d={'toJSON':!0x1}){const _0x171253=Array['from'](this['_revisions']);return _0x171253['reverse'](),_0x17e97d['toJSON']?_0x171253['map'](_0x294f44=>_0x294f44['toJSON']()):_0x171253;}['getIndex'](_0x40b616){return this['_revisions']['getIndex'](_0x40b616);}['getEarlierVisibleRevision'](_0x260528){const [,_0x33bb73]=this['getRevisionsIterator'](_0x260528,{'direction':'earlier'});return _0x33bb73;}['getLaterVisibleRevision'](_0xc2553b){const [,_0x6c6bf5]=this['getRevisionsIterator'](_0xc2553b,{'direction':'later'});return _0x6c6bf5;}['getRevisionsInDiff'](_0x4b772c){const _0x30aa00=[];for(const _0x3ff6f2 of this['getRevisionsIterator'](_0x4b772c['newRevisionId']))if(_0x30aa00['push'](_0x3ff6f2),_0x3ff6f2['id']===_0x4b772c['oldRevisionId'])break;return _0x30aa00;}*['getRevisionsIterator'](_0x4d3e22,{direction:_0x2f908e='earlier',filter:_0x43c480=()=>!0x0}={}){const _0x5b3486='earlier'===_0x2f908e?0x1:-0x1;let _0x308167=this['_revisions']['get'](_0x4d3e22),_0xaaf6d3=this['getIndex'](_0x308167);for(yield _0x308167;_0x308167;){if(_0xaaf6d3+=_0x5b3486,_0x308167=this['getRevision'](_0xaaf6d3),!_0x308167)return;_0x43c480(_0x308167)&&(yield _0x308167);}}}function m(_0x3f01ef,_0x30b729,_0x6c8713){const t=_0x3f01ef['t'];switch(_0x30b729){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'},_0x6c8713);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x6c8713);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class l extends _0x4011e1{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x7d3fd1,j,_0x3bf72f];}constructor(_0x5248bc){super(_0x5248bc),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4d2a71=_0x316b02();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d2a71},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x332053=this['repository']['getRevision'](0x0),_0x5c2e8f=_0x332053&&null===_0x332053['creator']?_0x332053:null;if(this['_continueCurrentRevision']=!!_0x5c2e8f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5df354=this['_source']['getCurrentRevisionId'](),_0x299a79=this['repository']['getRevision'](_0x5df354);if(_0x299a79)this['_startingVersion']=_0x299a79['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bbc7b=this['_source']['history']['_operations']['find'](_0x53b33f=>!_0x53b33f['_isInit']),_0x282440=_0x5bbc7b?_0x5bbc7b['baseVersion']:this['_source']['history']['version'];_0x332053?(_0x332053['toVersion']<_0x282440&&_0x332053['_update']({'toVersion':_0x282440}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['fromVersion']):(this['_startingVersion']=_0x332053['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x282440,this['_continueCurrentRevision']=!0x1);}}else _0x5c2e8f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5c2e8f['toVersion'],this['editor']['model']['document']['history']['version']),_0x5c2e8f['fromVersion']===_0x5c2e8f['toVersion']?(0x0!==_0x5c2e8f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['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',_0x24fb6a=>!_0x24fb6a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d0d33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eec86;for(const _0x4ac57f in _0x3d0d33){const _0x2d68f6=_0x4ac57f,_0xa85a55=_0x3d0d33[_0x2d68f6];if('revisionHistoryLicenseKeyValid'==_0xa85a55||'revisionHistoryLicenseKeyInvalid'==_0xa85a55||'revisionHistoryLicenseKeyExpired'==_0xa85a55||'revisionHistoryLicenseKeyDomainLimit'==_0xa85a55||'revisionHistoryLicenseKeyNotAllowed'==_0xa85a55||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa85a55||'revisionHistoryLicenseKeyTrialLimit'==_0xa85a55||'revisionHistoryLicenseKeyDevelopmentLimit'==_0xa85a55||'revisionHistoryLicenseKeyUsageLimit'==_0xa85a55){delete _0x3d0d33[_0x2d68f6],_0x2eec86=_0xa85a55,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2eec86&&_0x3d0d33['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2eec86&&_0x3d0d33['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2eec86&&_0x3d0d33['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe49b=this['repository']['getRevision'](0x0),_0x2a3d64=await this['getRevisionDocumentData'](_0x2fe49b),_0x578939=await this['getRevisionRootsAttributes'](_0x2fe49b);this['_replaceEditorDataWithRevisionData'](_0x2a3d64,_0x578939);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x582465){this['_source']=_0x582465;}async['update'](){const _0x2098da=await this['_source']['getLatestVersion']();if(_0x2098da>this['currentRevision']['toVersion']){await this['_loadState']();const _0x72a971=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2098da});_0x72a971['authors']=_0x72a971['authorsIds']['map'](_0x505d16=>this['editor']['plugins']['get']('Users')['getUser'](_0x505d16)),this['currentRevision']['_update'](_0x72a971);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x55298d={},_0x3cf13d=null){const _0x15ee4a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3cf13d>this['currentRevision']['toVersion']&&(_0x3cf13d=null),null===_0x3cf13d&&(_0x3cf13d=await this['_source']['getLatestVersion']());const _0x41f414=this['_getFromVersion'](_0x3cf13d),_0x52c563=this['buildRevisionData']({'from':_0x41f414,'to':_0x3cf13d});if(this['currentRevision']['toVersion']<_0x3cf13d){const _0x42f036=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3cf13d,'to':_0x3cf13d});_0x42f036['authors']=[],_0x42f036['authorsIds']=[],_0x42f036['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x42f036,!0x0),delete _0x42f036['authors'],_0x15ee4a['push'](_0x42f036);}_0x55298d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55298d['name']=_0x55298d['name']||null,_0x55298d['id']=_0x55298d['id']||_0x316b02(),_0x55298d={..._0x55298d,..._0x52c563};const _0x46de7b=this['addRevisionData'](_0x55298d);_0x15ee4a['push'](_0x55298d);const _0x135ed4=this['repository']['getIndex'](_0x46de7b);if(0x0!==_0x135ed4){const _0x2f0e06=this['repository']['getRevision'](_0x135ed4-0x1);if(_0x2f0e06['fromVersion']!==_0x3cf13d){const _0xabd258=this['_revisionDataBuilder']['getData'](_0x3cf13d,_0x2f0e06['toVersion']),_0x17c21a={'id':_0x2f0e06['id'],'diffData':_0xabd258['diffData'],'authorsIds':_0xabd258['authorsIds'],'authors':_0xabd258['authorsIds']['map'](_0x14d805=>this['editor']['plugins']['get']('Users')['getUser'](_0x14d805)),'fromVersion':_0x3cf13d};_0x2f0e06===this['currentRevision']&&(_0x17c21a['createdAt']=new Date(_0x55298d['createdAt']['getTime']()+0xa)),_0x2f0e06['_update'](_0x17c21a,!0x0),delete _0x17c21a['authors'],_0x15ee4a['push'](_0x17c21a);}}if(this['adapter']){for(const _0x1f6114 of _0x15ee4a)this['_bufferUpdate'](_0x1f6114['id'],_0x1f6114,!0x0);this['sendBufferedUpdates']();}return _0x46de7b;}['addRevisionData'](_0x5597af){const _0xbc6ef5=this['repository']['createRevision'](_0x5597af);return this['adapter']&&_0xbc6ef5['on']('_update',(_0x26d74e,_0x1046ca,_0x1acd5f)=>{_0x1acd5f||(this['_bufferUpdate'](_0x1046ca['id'],_0x1046ca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xbc6ef5,this['_findInsertionIndex'](_0xbc6ef5)),_0xbc6ef5;}async['getRevisionDocumentData'](_0x16a195){await this['_loadRevisionData'](_0x16a195);const _0x55ee29={};for(const _0x59719b in _0x16a195['diffData']){if(_0x16a195['diffData'][_0x59719b]['attachChange']&&!_0x16a195['diffData'][_0x59719b]['attachChange']['isAttached'])continue;const _0x394fba=this['_removeRevisionMarkers'](JSON['parse'](_0x16a195['diffData'][_0x59719b]['insertions'])),_0xeaf250=this['editor']['editing']['view']['document'],_0x1ea224=new _0x531090(_0xeaf250,_0x394fba['map'](_0x54a78d=>C(_0x54a78d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x55ee29[_0x59719b]=this['editor']['data']['processor']['toData'](_0x1ea224),this['editor']['data']['processor']['useFillerType']('default');}return _0x55ee29;}async['getRevisionRootsAttributes'](_0x58602d){await this['_loadRevisionData'](_0x58602d);const _0x13522c={};for(const _0x2968ec in _0x58602d['diffData'])_0x58602d['diffData'][_0x2968ec]['attachChange']&&!_0x58602d['diffData'][_0x2968ec]['attachChange']['isAttached']||(_0x13522c[_0x2968ec]=_0x58602d['diffData'][_0x2968ec]['attributesAfter']||{});return _0x13522c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x31b6c0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3eca5d=0x0;_0x3eca5d<_0x31b6c0['length'];_0x3eca5d++){const _0x3ef93f=_0x31b6c0[_0x3eca5d];let _0x5622b3=!0x1;for(const _0x52461c of Object['keys'](_0x3ef93f))void 0x0===_0x3ef93f[_0x52461c]?delete _0x3ef93f[_0x52461c]:'id'!==_0x52461c&&(_0x5622b3=!0x0);_0x5622b3||(_0x31b6c0[_0x3eca5d]=null);}if(_0x31b6c0=_0x31b6c0['filter'](_0x532fe9=>null!==_0x532fe9),!_0x31b6c0['length'])return;for(let _0x506b8e=0x0;_0x506b8e<_0x31b6c0['length'];_0x506b8e++){const _0x4178e7=_0x31b6c0[_0x506b8e];void 0x0!==_0x4178e7['fromVersion']&&void 0x0===_0x4178e7['toVersion']&&(_0x4178e7['toVersion']=this['repository']['getRevision'](_0x4178e7['id'])['toVersion']),void 0x0!==_0x4178e7['toVersion']&&void 0x0===_0x4178e7['fromVersion']&&(_0x4178e7['fromVersion']=this['repository']['getRevision'](_0x4178e7['id'])['fromVersion']);}const _0x1c2b55=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x31b6c0,_0x1c2b55)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xf768ca=>{if(_0xf768ca){for(const _0x2b26b7 of _0xf768ca)this['setRevisionData']({'id':_0x2b26b7['id'],'createdAt':_0x2b26b7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xef7345,_0xc0e1ed){let _0x135152=this['editor']['config']['get']('initialData'),_0x303c29=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x135152){_0x135152={};for(const _0x1136d3 of this['editor']['model']['document']['getRootNames']())_0x135152[_0x1136d3]='';}if('string'==typeof _0x135152&&(_0x135152={'main':_0x135152}),void 0x0===_0x303c29){_0x303c29={};for(const _0x5b5b39 of this['editor']['model']['document']['getRootNames']())_0x303c29[_0x5b5b39]={};}let _0x1baebf=!0x1;const _0x54275b=Object['keys'](_0x135152),_0x57aecd=Object['keys'](_0xef7345);for(const _0x2fe3e0 of _0x54275b){if(_0x135152[_0x2fe3e0]!==_0xef7345[_0x2fe3e0]&&''!==_0x135152[_0x2fe3e0]['trim']()){_0x1baebf=!0x0;break;}if(!_0x50711e(_0x303c29[_0x2fe3e0],_0xc0e1ed[_0x2fe3e0])&&Object['keys'](_0x303c29[_0x2fe3e0])['length']>0x0){_0x1baebf=!0x0;break;}}_0x1baebf||(_0x1baebf=_0x57aecd['some'](_0x2c8f6a=>!this['editor']['model']['document']['getRoot'](_0x2c8f6a))),_0x1baebf&&_0x4a53ea('editor-initial-data-replaced-with-revision-data',{'editorData':_0x135152,'editorRootsAttributes':_0x303c29,'revisionData':_0xef7345,'revisionRootsAttributes':_0xc0e1ed}),this['editor']['config']['set']('initialData',_0xef7345),this['editor']['config']['set']('rootsAttributes',_0xc0e1ed);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4c65d8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4c65d8['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x212ce9){const _0x4cc93b=this['repository']['getRevisions']();_0x4cc93b['reverse']();let _0x53c205=0x0;for(;_0x53c205<_0x4cc93b['length'];){const _0xb692b2=_0x4cc93b[_0x53c205];if(_0xb692b2===this['currentRevision']){_0x53c205++;continue;}if(_0xb692b2['id']===this['_initialRevisionId'])break;const _0x290766=_0x212ce9['toVersion']-_0xb692b2['toVersion']||_0x212ce9['fromVersion']-_0xb692b2['fromVersion'];if(_0x290766>0x0)break;if(_0x290766<0x0)_0x53c205++;else{if(!_0x212ce9['creator']&&_0xb692b2['creator'])break;if(_0xb692b2['creator']||!_0x212ce9['creator']){if(_0x212ce9['createdAt']>_0xb692b2['createdAt'])break;_0x53c205++;}else _0x53c205++;}}return _0x53c205;}['setRevisionData'](_0x24c6ec){const _0x18414d=this['repository']['getRevision'](_0x24c6ec['id']);if(_0x24c6ec['createdAt']&&(_0x24c6ec['createdAt']=new Date(_0x24c6ec['createdAt'])),_0x24c6ec['authorsIds']){const _0x4436dd=this['editor']['plugins']['get']('Users');_0x24c6ec['authors']=_0x24c6ec['authorsIds']['map'](_0x2ab625=>_0x4436dd['getUser'](_0x2ab625));}_0x18414d['_update'](_0x24c6ec,!0x0);}['buildRevisionData']({revision:_0x1e8b65=null,from:_0xae5550=null,to:_0x35db1a=null}){_0xae5550=null!==_0xae5550?_0xae5550:_0x1e8b65['fromVersion'],_0x35db1a=null!==_0x35db1a?_0x35db1a:_0x1e8b65['toVersion'];const _0x3efb1c=this['_revisionDataBuilder']['getData'](_0xae5550,_0x35db1a),_0x570f78={'diffData':_0x3efb1c['diffData'],'authorsIds':_0x3efb1c['authorsIds'],'fromVersion':_0xae5550,'toVersion':_0x35db1a};if(!_0x1e8b65||_0x35db1a!==_0x1e8b65['toVersion']){const _0x1e0eeb=_0x35db1a-0x1,_0x45a435=this['_source']['history']['getOperation'](_0x1e0eeb);_0x570f78['createdAt']=_0x45a435&&_0x45a435['createdAt']||new Date();}if(this['_loadedStateData']&&_0xae5550===this['_loadedStateData']['fromVersion']){for(const _0x38afd8 of this['_loadedStateData']['authors'])_0x570f78['authorsIds']['includes'](_0x38afd8['id'])||_0x570f78['authorsIds']['push'](_0x38afd8['id']);}return _0x570f78;}['_loadRevisionData'](_0x54cfb0){if(!_0x54cfb0||_0x54cfb0['diffData'])return Promise['resolve']();{const _0x586e79=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x586e79,'revisionId':_0x54cfb0['id']})['then'](_0x5d99d5=>{_0x54cfb0['diffData']=_0x5d99d5['diffData'];});}}['_bufferUpdate'](_0x36b381,_0x54a341,_0x20c8a2){if(this['_bufferedUpdates']['has'](_0x36b381)){const _0x1e88a1=this['_bufferedUpdates']['get'](_0x36b381);_0x54a341=_0x20c8a2?{..._0x1e88a1,..._0x54a341}:{..._0x54a341,..._0x1e88a1};}this['_bufferedUpdates']['set'](_0x36b381,_0x54a341);}['_getFromVersion'](_0x2495f5){const _0x52787a=this['repository']['getRevisions']();_0x52787a['reverse'](),_0x52787a['shift']();const _0x59e854=_0x52787a['find'](_0x26ce32=>_0x26ce32['toVersion']<=_0x2495f5)['toVersion'];return _0x59e854<this['_startingVersion']?this['_startingVersion']:_0x59e854;}['_createInitialRevision'](_0x150ccb){const _0x4e08f4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e08f4)this['_initialRevisionId']=_0x4e08f4['id'];else{const _0x3c73cc=!this['editor']['model']['document']['roots']['find'](_0x12fe74=>this['editor']['model']['hasContent'](_0x12fe74)),_0x26a2b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2c06=m(this['editor']['locale'],_0x3c73cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x150ccb,'to':_0x150ccb,'id':this['_initialRevisionId'],'name':_0x4b2c06,'creatorId':_0x26a2b8});}}['_createCurrentRevision'](_0x397f55){const _0x2cbff3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2cbff3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x397f55,'to':_0x397f55,'id':_0x2cbff3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5f44d4,from:_0x5a81ef,to:_0x355053,creatorId:_0x5b778b,id:_0x2b0e44}){const _0x58764a=this['buildRevisionData']({'from':_0x5a81ef,'to':_0x355053});_0x58764a['name']=_0x5f44d4,_0x58764a['creatorId']=_0x5b778b,_0x58764a['id']=_0x2b0e44;const _0x2231b6=this['addRevisionData'](_0x58764a);return this['adapter']&&this['_bufferUpdate'](_0x58764a['id'],_0x58764a,!0x0),_0x2231b6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2cd8dc){return(_0x2cd8dc=_0x2cd8dc['filter'](_0x79b15e=>!_0x79b15e['name']||'revision-start'!==_0x79b15e['name']&&'revision-end'!==_0x79b15e['name']))['forEach'](_0x286492=>{'string'!=typeof _0x286492&&(_0x286492['children']=this['_removeRevisionMarkers'](_0x286492['children']),_0x286492['attributes']=_0x286492['attributes']['filter'](_0x1dfcc2=>!_0x1dfcc2[0x0]['startsWith']('data-revision-')));}),_0x2cd8dc;}}function C(_0xd7302c,_0x8330c3){const _0x562a2d=_0x8330c3['editing']['view']['document'];if('string'==typeof _0xd7302c)return new _0x334ef4(_0x562a2d,_0xd7302c);{const _0x14b628=_0xd7302c['children']['map'](_0x2303c9=>C(_0x2303c9,_0x8330c3));return new(P[_0xd7302c['type']]||_0x3564d6)(_0x562a2d,_0xd7302c['name'],_0xd7302c['attributes'],_0x14b628);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b3335){this['editor']=_0x4b3335,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'](_0x173811){this['source']=_0x173811;const _0x4f0028=new Map(),_0x3c12e9=new Map(),_0x3f1fa9=this['editor']['model']['document']['roots']['map'](_0x1bfa6d=>_0x1bfa6d['rootName']);for(const _0x1364bc of _0x3f1fa9){const _0x4af53d=this['editor']['model']['document']['getRoot'](_0x1364bc),_0x2e3fdf=T(_0x4af53d);_0x4f0028['set'](_0x1364bc,_0x2e3fdf),_0x3c12e9['set'](_0x1364bc,Object['fromEntries'](_0x4af53d['getAttributes']()));}const _0x3e1ec3=Array['from'](this['editor']['model']['markers'])['map'](_0x33701e=>[_0x33701e['name'],_0x33701e['getRange']()]),_0x52702b=this['source']['version'];this['_saveMetaData'](_0x52702b,_0x4f0028,_0x3e1ec3,_0x3c12e9),this['_startingRevisionId']=this['_revisionId'];const _0xc6c9ac=new Map(),_0x266a75=new Map();for(const _0x45cfc6 of _0x3f1fa9){const _0x4974e3=F(_0x45cfc6);_0xc6c9ac['set'](_0x45cfc6,_0x4974e3),_0x266a75['set'](_0x45cfc6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc6c9ac,[],_0x266a75);}['getData'](_0x403e1c,_0x140cb2){if(this['_lastFrom']===_0x403e1c&&this['_lastTo']<=_0x140cb2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x140cb2,!0x0);else{if(!this['_savedMetaData']['has'](_0x403e1c)){const _0x2dbed7=this['_getPreviousFrom'](_0x403e1c);this['_calculateMetaData'](_0x2dbed7,_0x403e1c,!0x1);}this['_calculateMetaData'](_0x403e1c,_0x140cb2,!0x0);}return this['_lastFrom']=_0x403e1c,this['_lastTo']=_0x140cb2,this['_getState']();}['loadState'](_0x3f3c62){this['_reset'](),this['_lastFrom']=_0x3f3c62['fromVersion'],this['_lastTo']=_0x3f3c62['toVersion'];for(const _0x5f3926 in _0x3f3c62['diffData']){const _0x16f0a1=_0x3f3c62['diffData'][_0x5f3926]['attachChange'],_0x50c413=_0x3bd5f8(_0x3f3c62['diffData'][_0x5f3926]['attributesBefore'])||{},_0x5cb073=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x5f3926]['deletions']);_0x5cb073['rootName']=_0x5f3926,_0x5cb073['_isAttached']=!_0x16f0a1||!_0x16f0a1['isAttached'],_0x5cb073['isAttached']=()=>_0x5cb073['_isAttached'],this['_baseRoots']['set'](_0x5f3926,_0x5cb073),this['_baseRootsAttributes']['set'](_0x5f3926,_0x50c413),_0x16f0a1&&this['_touchedRoots']['set'](_0x5f3926,_0x16f0a1);const _0x253514=this['_makeIdsRoot'](_0x5cb073);this['_baseIdsRoots']['set'](_0x5f3926,_0x253514);for(const [_0x3e34f7,_0x5d00d6]of _0x5cb073['markers']){if(!_0x3e34f7['startsWith']('revision:'))continue;const _0x7f732e=_0x3e34f7['split'](':')[0x2];for(const _0x33a159 of _0x5d00d6['getWalker']({'singleCharacters':!0x0})){const _0x9c3c90=this['_getVidAttributeName'](_0x33a159),_0x2bb5b5='elementEnd'==_0x33a159['type']?_0x33a159['previousPosition']['path']['slice'](0x0,-0x1):_0x33a159['previousPosition']['path'],_0x2d5a39=_0x253514['getNodeByPath'](_0x2bb5b5)['getAttribute'](_0x9c3c90);this['_touched']['set'](_0x2d5a39,{'userId':_0x7f732e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x52f86a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4ba05a=>!this['_touched']['has'](_0x4ba05a));let _0xa11c0e=0x0;const _0x338961=new Map();for(const _0x4c404a in _0x3f3c62['diffData']){const _0x346575=_0x3f3c62['diffData'][_0x4c404a]['attachChange'],_0x1a4e11=_0x3bd5f8(_0x3f3c62['diffData'][_0x4c404a]['attributesAfter'])||{},_0x1d374c=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x4c404a]['insertions']);_0x1d374c['rootName']=_0x4c404a,_0x1d374c['_isAttached']=!_0x346575||_0x346575['isAttached'],_0x1d374c['isAttached']=()=>_0x1d374c['_isAttached'],this['_diffRoots']['set'](_0x4c404a,_0x1d374c),this['_diffRootsAttributes']['set'](_0x4c404a,_0x1a4e11);const _0x4c9429=this['_makeIdsRoot'](_0x1d374c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4c404a,_0x4c9429),_0x338961['set'](_0x4c404a,_0x1d374c['isAttached']()?_0x1a4e11:{});for(const [_0x3f42f9,_0x250213]of _0x1d374c['markers']){if(!_0x3f42f9['startsWith']('revision:'))continue;const _0x2a9bb8=_0x3f42f9['split'](':')[0x2];for(const _0x569430 of _0x250213['getWalker']({'singleCharacters':!0x0})){const _0x5013fb=this['_getVidAttributeName'](_0x569430),_0x4e0a20=this['_revisionId']++,_0x3469f4='elementEnd'==_0x569430['type']?_0x569430['previousPosition']['path']['slice'](0x0,-0x1):_0x569430['previousPosition']['path'];_0x4c9429['getNodeByPath'](_0x3469f4)['_setAttribute'](_0x5013fb,_0x4e0a20),this['_touched']['set'](_0x4e0a20,{'userId':_0x2a9bb8});}}for(const _0x3db3e6 of this['editor']['model']['createRangeIn'](_0x1d374c)['getWalker']({'singleCharacters':!0x0})){const _0x20525f=this['_getVidAttributeName'](_0x3db3e6),_0x2204dc='elementEnd'==_0x3db3e6['type']?_0x3db3e6['previousPosition']['path']['slice'](0x0,-0x1):_0x3db3e6['previousPosition']['path'],_0x2d0104=_0x4c9429['getNodeByPath'](_0x2204dc);_0x2d0104['getAttribute'](_0x20525f)>0x0||_0x2d0104['_setAttribute'](_0x20525f,_0x52f86a[_0xa11c0e++]);}for(const [_0x9d005a,_0x522c4d]of _0x1d374c['markers'])_0x9d005a['startsWith']('revision:')||this['_markers']['set'](_0x9d005a,_0x522c4d);}const _0x47a800=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x47a800),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47a800,0x1));const _0x4c1a17=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c1a17),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c1a17,0x1));const _0x1d2a31=Array['from'](this['_diffRoots'])['map'](([_0x2f9d4e,_0x3a0832])=>[_0x2f9d4e,T(_0x3a0832)]);this['_saveMetaData'](this['_lastTo'],_0x1d2a31,this['_markers'],_0x338961);}['_makeModelFromViewString'](_0x1e1771){const _0x43294a=JSON['parse'](_0x1e1771),_0x4ce08e=this['editor']['editing']['view']['document'],_0x12e73d=new _0x531090(_0x4ce08e,_0x43294a['map'](_0x3135f7=>C(_0x3135f7,this['editor'])));return this['editor']['data']['toModel'](_0x12e73d);}['_saveMetaData'](_0x6d1c57,_0x5b59a8,_0xa46c38,_0x5a1628){const _0x2f8738=new Map(_0x5b59a8),_0x4eebd0=new Map(_0x3bd5f8(_0x5a1628)),_0x4021c=new Map();for(const [_0x32cd40,_0x4538c7]of _0xa46c38)_0x4021c['set'](_0x32cd40,{'start':_0x4538c7['start']['clone'](),'end':_0x4538c7['end']['clone'](),'rootName':_0x4538c7['root']['rootName']});this['_savedMetaData']['set'](_0x6d1c57,{'roots':_0x2f8738,'markers':_0x4021c,'rootsAttributes':_0x4eebd0});}['_removeMetaData'](_0xdcb301){this['_savedMetaData']['delete'](_0xdcb301);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x41bf34,_0x4fcbd7=null){let _0x255d1f=null;_0x41bf34['is']('documentFragment')||(_0x255d1f=new ft(_0x41bf34['name'],{'vid_start':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));const _0x1b7ea3=[];for(const _0x21380c of _0x41bf34['getChildren']())if(_0x21380c['is']('element')){_0x1b7ea3['push'](this['_makeIdsRoot'](_0x21380c,_0x4fcbd7));const _0x36bedb=_0x1b7ea3[_0x1b7ea3['length']-0x1];null!==_0x4fcbd7&&(_0x4fcbd7=_0x36bedb['is']('element','$text')?_0x36bedb['getAttribute']('vid')+0x1:_0x36bedb['getAttribute']('vid_end')+0x1);}else{for(let _0x4528b4=0x0;_0x4528b4<_0x21380c['offsetSize'];_0x4528b4++)_0x1b7ea3['push'](new ft('$text',{'vid':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));}if(_0x41bf34['is']('documentFragment')){const _0x5611c8=F(_0x41bf34['rootName']);return _0x5611c8['_insertChild'](0x0,_0x1b7ea3),_0x5611c8;}return _0x255d1f['_setAttribute']('vid_end',null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++),_0x255d1f['_insertChild'](0x0,_0x1b7ea3),_0x255d1f;}['_calculateMetaData'](_0x488d63,_0x5a687e,_0x3e7794){this['_reset']();const {roots:_0x406975,markers:_0x2aa37f,rootsAttributes:_0x40c257}=this['_savedMetaData']['get'](_0x488d63);this['_baseRoots']=new Map(_0x406975),this['_baseRootsAttributes']=new Map(_0x3bd5f8(_0x40c257));for(const [_0x2f9c5c,_0x443c88]of this['_baseRoots'])if('$graveyard'!==_0x2f9c5c&&(this['_diffRoots']['set'](_0x2f9c5c,T(_0x443c88)),this['_diffRootsAttributes']=new Map(_0x3bd5f8(_0x40c257)),_0x3e7794)){const _0x4518a3=this['_revisionId'];this['_idsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88)),this['_baseIdsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88,_0x4518a3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3e7794&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x442b9d,_0x268693]of _0x2aa37f){const _0x46e0bf=this['_baseRoots']['get'](_0x268693['rootName']),_0x32313c=this['_diffRoots']['get'](_0x268693['rootName']),_0x373ac1=new vt(this['_fixPosition'](_0x268693['start'],_0x46e0bf),this['_fixPosition'](_0x268693['end'],_0x46e0bf)),_0x4f79b8=this['_fixRange'](_0x373ac1,_0x32313c);_0x46e0bf['markers']['set'](_0x442b9d,_0x373ac1),this['_markers']['set'](_0x442b9d,_0x4f79b8);}this['_applyOperations'](_0x488d63,_0x5a687e,_0x3e7794);}['_applyOperations'](_0x5336cf,_0x54bcc7,_0x59adda){for(const _0x56ac2e of this['source']['getOperations'](_0x5336cf,_0x54bcc7))this['_handleOperation'](_0x56ac2e,_0x59adda);for(const _0x245670 of this['_diffRoots']['values']())_0x245670['markers']['clear']();for(const [_0x506422,_0x1e1b51]of this['_markers']){this['_diffRoots']['get'](_0x1e1b51['root']['rootName'])['markers']['set'](_0x506422,_0x1e1b51['clone']());}const _0x43c461=new Map(),_0x590058=new Map();for(const [_0x2ab75b,_0x1302d1]of this['_diffRoots'])_0x43c461['set'](_0x2ab75b,T(_0x1302d1)),_0x590058['set'](_0x2ab75b,this['_diffRootsAttributes']['get'](_0x2ab75b));this['_saveMetaData'](_0x54bcc7,_0x43c461,this['_markers'],_0x590058);}['_getPreviousFrom'](_0xfd127b){const _0x3da10b=Array['from'](this['_savedMetaData']['keys']());_0x3da10b['sort']((_0x53d7e8,_0x49f271)=>_0x53d7e8-_0x49f271),_0x3da10b['reverse']();for(const _0x538556 of _0x3da10b)if(_0x538556<_0xfd127b)return _0x538556;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x390131,_0x5b369a){const _0x59ea31=Array['from'](_0x5b369a['markers'])['map'](([_0x5879ba,_0x43214e])=>[_0x5879ba,this['_fixRange'](_0x43214e,_0x390131)]);_0x390131['markers']=new Map(_0x59ea31);}['_transformMarkers'](_0x34504c){for(const _0x14daf3 of this['_markers']['values']()){const _0x8afa31=_0x14daf3['getTransformedByOperation'](_0x34504c),_0x1c92fa=vt['_createFromRanges'](_0x8afa31);_0x14daf3['start']=_0x1c92fa['start'],_0x14daf3['end']=_0x1c92fa['end'];}}['_handleOperation'](_0x126b4d,_0x33810c){if('addRoot'!=_0x126b4d['type']&&'detachRoot'!=_0x126b4d['type']){if('insert'==_0x126b4d['type']){const _0xf254b8=_0x126b4d['position']['root']['rootName'];this['_diffRoots']['has'](_0xf254b8)||(this['_diffRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)),this['_diffRootsAttributes']['set'](_0xf254b8,{}),_0x33810c&&this['_idsRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)));}else{if('addRootAttribute'==_0x126b4d['type']||'removeRootAttribute'==_0x126b4d['type']||'changeRootAttribute'==_0x126b4d['type'])return void this['_handleRootAttributeOperation'](_0x126b4d);'marker'==_0x126b4d['type']&&this['_handleMarkerOperation'](_0x126b4d);}if('marker'!==_0x126b4d['type']){const _0x1d837a=this['_cloneOperation'](_0x126b4d,this['_diffRoots']);_0x1d837a['_execute'](),this['_transformMarkers'](_0x1d837a);}if(_0x33810c)switch(_0x126b4d['type']){case'insert':this['_handleInsertOperation'](_0x126b4d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x126b4d);break;case'merge':this['_handleMergeOperation'](_0x126b4d);break;case'split':this['_handleSplitOperation'](_0x126b4d);}}else this['_handleRootOperation'](_0x126b4d,_0x33810c);}['_cloneOperation'](_0x303066,_0x3e1c33){const _0x2a6c68=_0x303066['clone']();return _0x2a6c68['_authorId']=_0x303066['_authorId'],this['_fixOperation'](_0x2a6c68,_0x3e1c33),_0x2a6c68;}['_getBaseVids'](_0x45e4ea){return _0x45e4ea['map'](_0x37c48d=>{const _0x5aa251=this['_getVidAttributeName'](_0x37c48d);return Number(_0x37c48d['item']['getAttribute'](_0x5aa251));});}['_generateTape'](_0x48fba2,_0x2cd454){if(_0x48fba2['is']('element','$text'))_0x2cd454['push']({'item':_0x48fba2,'type':'text'});else{_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementStart'});for(const _0x293d30 of _0x48fba2['getChildren']())this['_generateTape'](_0x293d30,_0x2cd454);_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementEnd'});}return _0x2cd454;}['_getState'](){const _0x2159b2=new Map(this['_touched']),_0x1cdd79=new Map(_0x2159b2),_0x3317bb=new Map(),_0x4d639a={'insertions':{},'deletions':{}},_0x1645f3={'insertions':{},'deletions':{}},_0xa23487=new Map(),_0xc7605a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xc7605a['delete']('$graveyard');for(const _0x106ca5 of _0xc7605a){const _0x1482b9=this['_diffRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),_0x4a9c67=this['_baseRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1);_0x1482b9['isAttached']()||_0x4a9c67['isAttached']()?(_0x4d639a['insertions'][_0x106ca5]=T(_0x1482b9),_0x4d639a['deletions'][_0x106ca5]=T(_0x4a9c67),this['_copyMarkers'](_0x4d639a['deletions'][_0x106ca5],_0x4a9c67),this['_copyMarkers'](_0x4d639a['insertions'][_0x106ca5],_0x1482b9),_0x1645f3['insertions'][_0x106ca5]=this['_generateTape'](this['_idsRoots']['get'](_0x106ca5),[]),_0x1645f3['deletions'][_0x106ca5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),[])):_0xc7605a['delete'](_0x106ca5);}for(const _0x221cee of _0xc7605a){const _0x1b0ee3=_0x1645f3['insertions'][_0x221cee];for(const _0x4ca790 of _0x1b0ee3){const _0xe50654=this['_getVidAttributeName'](_0x4ca790),_0x46ba18=_0x4ca790['item']['getAttribute'](_0xe50654);_0x1cdd79['delete'](_0x46ba18),_0x46ba18>=this['_startingRevisionId']&&_0x3317bb['set'](_0x46ba18,_0x2159b2['get'](_0x46ba18));}}for(const _0x559685 of _0xc7605a){const _0x53609e=_0x1645f3['insertions'][_0x559685],_0x2ee577=this['_getBaseVids'](_0x1645f3['deletions'][_0x559685]);let _0x493a05=0x0;for(const _0x333d40 of _0x53609e){const _0x359b43=this['_getVidAttributeName'](_0x333d40),_0x658fc1=_0x333d40['item']['getAttribute'](_0x359b43);if(!_0x3317bb['has'](_0x658fc1)&&!_0xa23487['has'](_0x658fc1)){if(_0x1cdd79['has'](_0x658fc1))_0x493a05++;else{if(_0x658fc1!=_0x2ee577[_0x493a05]){const _0x8b79d=_0x2159b2['get'](_0x658fc1)||_0x2159b2['get'](_0x2ee577[_0x493a05]);for(;_0x658fc1!=_0x2ee577[_0x493a05];)_0x1cdd79['has'](_0x2ee577[_0x493a05])||(_0xa23487['set'](_0x2ee577[_0x493a05],_0x8b79d),_0x2159b2['set'](_0x2ee577[_0x493a05],_0x8b79d)),_0x493a05++;}_0x493a05++;}}}}for(const _0x4617ec of _0xc7605a){const _0x263409=_0x1645f3['insertions'][_0x4617ec];for(const _0x3bf32c of _0x263409){const _0x444ed8=this['_getVidAttributeName'](_0x3bf32c),_0x4f9bb2=_0x3bf32c['item']['getAttribute'](_0x444ed8);if(_0xa23487['has'](_0x4f9bb2)){const _0x4f7dec=_0xa23487['get'](_0x4f9bb2);_0x1cdd79['has'](_0x4f9bb2)||_0x1cdd79['set'](_0x4f9bb2,{..._0x4f7dec}),_0x3317bb['set'](_0x4f9bb2,{..._0x4f7dec});}}}for(const _0x4c9793 of _0x1cdd79['keys']())_0x4c9793>=this['_startingRevisionId']&&_0x1cdd79['delete'](_0x4c9793);const _0x511981=new Map();for(const _0x592fd4 of _0xc7605a){let _0x53e5a6=_0x1645f3['insertions'][_0x592fd4];for(const _0x18dbba of _0x53e5a6)if(_0x18dbba['item']['is']('element','tableCell')){const _0x385da1=this['_getVidAttributeName'](_0x18dbba),_0x1dc8a2=_0x18dbba['item']['getAttribute'](_0x385da1);if(_0x3317bb['has'](_0x1dc8a2)){const _0xd80e3=_0x18dbba['item']['parent']['parent']['getAttribute']('vid_start'),_0x272600=_0x511981['get'](_0xd80e3)||new Set();_0x272600['add'](_0x3317bb['get'](_0x1dc8a2)['userId']),_0x511981['set'](_0xd80e3,_0x272600);}}_0x53e5a6=_0x1645f3['deletions'][_0x592fd4];for(const _0x4d070e of _0x53e5a6)if(_0x4d070e['item']['is']('element','tableCell')){const _0x4b8cb2=this['_getVidAttributeName'](_0x4d070e),_0x1dad88=_0x4d070e['item']['getAttribute'](_0x4b8cb2);if(_0x1cdd79['has'](_0x1dad88)){const _0x35dc49=_0x4d070e['item']['parent']['parent']['getAttribute']('vid_start'),_0x416f96=_0x511981['get'](_0x35dc49)||new Set();_0x416f96['add'](_0x1cdd79['get'](_0x1dad88)['userId']),_0x511981['set'](_0x35dc49,_0x416f96);}}for(const _0x45d2aa of _0x511981['keys']())(_0x3317bb['has'](_0x45d2aa)||_0x1cdd79['has'](_0x45d2aa))&&_0x511981['delete'](_0x45d2aa);}for(const _0x3816c4 of _0xc7605a){const _0x566f3e=_0x1645f3['insertions'][_0x3816c4];let _0x15635a=null,_0x34b0aa=null;for(const _0x1aa5cd of _0x566f3e){const _0x18050b=this['_getVidAttributeName'](_0x1aa5cd),_0xd63b86=_0x1aa5cd['item']['getAttribute'](_0x18050b),_0x2324e9=_0x511981['get'](_0xd63b86);_0x2324e9&&'elementStart'==_0x1aa5cd['type']&&(_0x15635a=Array['from'](_0x2324e9)[0x0],_0x34b0aa=_0x1aa5cd['item']['getAttribute']('vid_end')),_0x15635a&&(_0x1cdd79['set'](_0xd63b86,{'userId':_0x15635a}),_0x3317bb['set'](_0xd63b86,{'userId':_0x15635a})),_0xd63b86==_0x34b0aa&&(_0x15635a=null,_0x34b0aa=null);}}const _0x545df0={},_0x4b7bf0=new Set();for(const _0x54e81b of _0xc7605a){const _0x4654a8=_0x4d639a['deletions'][_0x54e81b],_0x493ef7=_0x4d639a['insertions'][_0x54e81b];for(const {userId:_0x146415}of this['_touchedMarkers']['values']())null!==_0x146415&&_0x4b7bf0['add'](_0x146415);for(const {userId:_0x3642fa}of this['_touchedRoots']['values']())null!==_0x3642fa&&_0x4b7bf0['add'](_0x3642fa);this['_markChanges'](_0x493ef7,_0x1645f3['insertions'][_0x54e81b],_0x3317bb,'insertion',_0x4b7bf0),this['_markChanges'](_0x4654a8,_0x1645f3['deletions'][_0x54e81b],_0x1cdd79,'deletion',_0x4b7bf0),_0x545df0[_0x54e81b]={'insertions':this['_prepareViewToSave'](_0x493ef7),'deletions':this['_prepareViewToSave'](_0x4654a8),'attachChange':this['_touchedRoots']['get'](_0x54e81b)||null,'attributesBefore':_0x3bd5f8(this['_baseRootsAttributes']['get'](_0x54e81b))||{},'attributesAfter':_0x3bd5f8(this['_diffRootsAttributes']['get'](_0x54e81b))};}return{'diffData':_0x545df0,'authorsIds':Array['from'](_0x4b7bf0)};}['_processRootBeforeSave'](_0x399275){for(const [,_0x11cafa]of _0x399275['markers']){const _0x14ba4a=_0x11cafa['start']['getAncestors']()['filter'](_0x23bc45=>'tableCell'==_0x23bc45['name']);for(const _0x259b99 of _0x14ba4a)0x1==_0x259b99['childCount']&&_0x259b99['getChild'](0x0)['is']('element','paragraph')&&_0x259b99['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307cf2){this['_processRootBeforeSave'](_0x307cf2);const _0x873775=this['editor']['data']['toView'](_0x307cf2,{}),_0x193d11=Array['from'](_0x873775['getChildren']())['map'](_0x2b85c4=>this['_getViewJson'](_0x2b85c4));return JSON['stringify'](_0x193d11);}['_getViewJson'](_0x2ff2e3){if(_0x2ff2e3['is']('$text'))return _0x2ff2e3['data'];{const _0x1d83a0=_0x2ff2e3;return{'type':Object['keys'](P)['find'](_0x238282=>_0x2ff2e3 instanceof P[_0x238282]),'name':_0x1d83a0['name'],'attributes':Array['from'](_0x1d83a0['getAttributes']()),'children':Array['from'](_0x1d83a0['getChildren']())['map'](_0x12faef=>this['_getViewJson'](_0x12faef))};}}['_markChanges'](_0x1c5690,_0x442db4,_0x4c27ba,_0x4610d5,_0x827bb){let _0x463aa9=null,_0x5521a6=null,_0x2ebf94=0x0;const _0x1115e4=this['editor']['model'];for(let _0xd1b339=0x0;_0xd1b339<_0x442db4['length'];_0xd1b339++){const _0x4385fa=this['_getVidAttributeName'](_0x442db4[_0xd1b339]),_0xf08a27=_0x442db4[_0xd1b339]['item']['getAttribute'](_0x4385fa),_0x1bf245=_0x4c27ba['get'](_0xf08a27),_0xf1b1b7=_0xd1b339==_0x442db4['length']-0x1;(!_0x463aa9&&_0x1bf245&&(_0x463aa9=_0x1bf245,_0x5521a6=_0x442db4[_0xd1b339]),_0x463aa9&&(!_0x1bf245||_0x1bf245['userId']!=_0x463aa9['userId']))&&(_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),B(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4)),_0x463aa9=_0x1bf245||null,_0x5521a6=_0x1bf245?_0x442db4[_0xd1b339]:null),_0x463aa9&&_0xf1b1b7&&_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),J(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4));}function _0x4134ae(_0x5dfb11,_0x2d9a23,_0x5e1b4b){const _0x111d08=_0x463aa9['userId'],_0x2c4ddd='revision:'+_0x4610d5+':'+_0x111d08+':'+_0x2ebf94++,_0xdabf97=_0x1115e4['createRange'](_0x2d9a23,_0x5e1b4b);_0x1c5690['markers']['set'](_0x2c4ddd,_0xdabf97),null!==_0x111d08&&_0x827bb['add'](_0x111d08);}}['_getVidAttributeName'](_0x1443f6){switch(_0x1443f6['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13d5f1,_0x2e8c1e){_0x13d5f1['baseVersion']=null;for(const _0x1dfaeb in _0x13d5f1){const _0x5cc091=_0x13d5f1[_0x1dfaeb];if(_0x5cc091 instanceof gt){const _0xd7a01b=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixPosition'](_0x5cc091,_0xd7a01b);}if(_0x5cc091 instanceof vt){const _0x27fbcb=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixRange'](_0x5cc091,_0x27fbcb);}'root'===_0x1dfaeb&&(_0x13d5f1['root']=_0x2e8c1e['get'](_0x13d5f1['root']['rootName']));}}['_fixRange'](_0x539c1b,_0x43e6a4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x539c1b['start'],_0x43e6a4),this['_fixPosition'](_0x539c1b['end'],_0x43e6a4));}['_fixPosition'](_0x4b1325,_0x2f43bf){return this['editor']['model']['createPositionFromPath'](_0x2f43bf,_0x4b1325['path'],_0x4b1325['stickiness']);}['_handleInsertOperation'](_0x46c94c){const _0x2b13ea=this['_idsRoots']['get'](_0x46c94c['position']['root']['rootName']),_0x15d75b=this['_fixPosition'](_0x46c94c['position'],_0x2b13ea),_0x531b33=null===_0x46c94c['_authorId']?null:_0x46c94c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5564b7=_0x15d75b['parent'],_0xa4e918=this['_revisionId'],_0x281c29=[];for(const _0x131546 of _0x46c94c['nodes'])if(_0x131546['is']('element'))_0x281c29['push'](this['_makeIdsRoot'](_0x131546));else{for(let _0x3473af=0x0;_0x3473af<_0x131546['offsetSize'];_0x3473af++)_0x281c29['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3c738b=this['_revisionId'];for(let _0x2396fa=_0xa4e918;_0x2396fa<_0x3c738b;_0x2396fa++)this['_touched']['set'](_0x2396fa,{'userId':_0x531b33});_0x5564b7['_insertChild'](_0x15d75b['offset'],_0x281c29);}['_handleMoveOperation'](_0x3f2d6a){(_0x3f2d6a=this['_cloneOperation'](_0x3f2d6a,this['_idsRoots']))['_execute']();const _0x586d16=null===_0x3f2d6a['_authorId']?null:_0x3f2d6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52230a=_0x3f2d6a['getMovedRangeStart'](),_0x50861a=_0x52230a['parent'],_0x379d6d=_0x52230a['offset'];!function _0x43d156(_0x72e5a5,_0x36474b,_0x32a470,_0x7c7073){for(let _0x2d618a=_0x32a470;_0x2d618a<_0x7c7073;_0x2d618a++){const _0x595125=_0x36474b['getChild'](_0x2d618a);_0x595125['is']('element','$text')?_0x72e5a5['set'](_0x595125['getAttribute']('vid'),{'userId':_0x586d16}):(_0x72e5a5['set'](_0x595125['getAttribute']('vid_start'),{'userId':_0x586d16}),_0x43d156(_0x72e5a5,_0x595125,0x0,_0x595125['childCount']),_0x72e5a5['set'](_0x595125['getAttribute']('vid_end'),{'userId':_0x586d16}));}}(this['_touched'],_0x50861a,_0x379d6d,_0x379d6d+_0x3f2d6a['howMany']);}['_handleMergeOperation'](_0x2688cd){const _0xe38972=null===(_0x2688cd=this['_cloneOperation'](_0x2688cd,this['_idsRoots']))['_authorId']?null:_0x2688cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34fde=_0x2688cd['targetPosition']['parent'],_0x562e7b=_0x2688cd['sourcePosition']['parent'],_0x109f38=_0x34fde['getAttribute']('vid_end'),_0x45d962=_0x562e7b['getAttribute']('vid_start');_0x34fde['_setAttribute']('vid_end',_0x562e7b['getAttribute']('vid_end')),_0x562e7b['_setAttribute']('vid_end',_0x109f38),this['_touched']['set'](_0x45d962,{'userId':_0xe38972}),this['_touched']['set'](_0x109f38,{'userId':_0xe38972}),_0x2688cd['_execute']();}['_handleSplitOperation'](_0x3c47f5){const _0x37bcf9=null===(_0x3c47f5=this['_cloneOperation'](_0x3c47f5,this['_idsRoots']))['_authorId']?null:_0x3c47f5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x581d34=_0x3c47f5['graveyardPosition'],_0x16f3fb=_0x3c47f5['splitPosition']['parent'];_0x3c47f5['_execute']();const _0x44a4ef=_0x16f3fb['getAttribute']('vid_end'),_0x526694=_0x3c47f5['insertionPosition']['nodeAfter'];if(_0x581d34){const _0x1d416b=_0x526694['getAttribute']('vid_end'),_0x1372c5=_0x16f3fb['getAttribute']('vid_end');_0x16f3fb['_setAttribute']('vid_end',_0x1d416b),_0x526694['_setAttribute']('vid_end',_0x1372c5),this['_touched']['set'](_0x16f3fb['getAttribute']('vid_end'),{'userId':_0x37bcf9}),this['_touched']['set'](_0x526694['getAttribute']('vid_start'),{'userId':_0x37bcf9});}else{const _0x443d73=this['_revisionId']++,_0xf04f02=this['_revisionId']++;_0x16f3fb['_setAttribute']('vid_end',_0x443d73),_0x526694['_setAttribute']('vid_start',_0xf04f02),_0x526694['_setAttribute']('vid_end',_0x44a4ef),this['_touched']['set'](_0x443d73,{'userId':_0x37bcf9}),this['_touched']['set'](_0xf04f02,{'userId':_0x37bcf9});}}['_handleMarkerOperation'](_0x550eca){if(!_0x550eca['affectsData'])return;const _0x18e5b6=(_0x550eca=this['_cloneOperation'](_0x550eca,this['_diffRoots']))['oldRange']?_0x550eca['oldRange']['root']:null,_0x1b0e41=_0x550eca['newRange']?_0x550eca['newRange']['root']:null;_0x18e5b6&&this['_markers']['delete'](_0x550eca['name']),_0x1b0e41&&this['_markers']['set'](_0x550eca['name'],_0x550eca['newRange']['clone']());const _0xc56588=null===_0x550eca['_authorId']?null:_0x550eca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a7526=_0x550eca['name'];if(!this['_touchedMarkers']['has'](_0x4a7526))return void this['_touchedMarkers']['set'](_0x4a7526,{'range':_0x550eca['oldRange'],'userId':_0xc56588});const _0x46596d=this['_touchedMarkers']['get'](_0x4a7526),_0x40fc7d=_0x46596d['range'],_0x4104ea=_0x550eca['newRange'];null==_0x40fc7d&&null==_0x4104ea||_0x40fc7d&&_0x4104ea&&_0x40fc7d['isEqual'](_0x4104ea)?this['_touchedMarkers']['delete'](_0x550eca['name']):_0x46596d['userId']=_0xc56588;}['_handleRootOperation'](_0x2b0d23,_0x121b12){this['_diffRoots']['has'](_0x2b0d23['rootName'])?this['_diffRoots']['get'](_0x2b0d23['rootName'])['_isAttached']=_0x2b0d23['isAdd']:(this['_diffRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2b0d23['rootName'],{}),_0x121b12&&this['_idsRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)));const _0x3b091f=null===_0x2b0d23['_authorId']?null:_0x2b0d23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x240c5e=this['_touchedRoots']['get'](_0x2b0d23['rootName']);_0x240c5e&&_0x240c5e['userId']===_0x3b091f?this['_touchedRoots']['delete'](_0x2b0d23['rootName']):this['_touchedRoots']['set'](_0x2b0d23['rootName'],{'userId':_0x3b091f,'isAttached':_0x2b0d23['isAdd']});}['_handleRootAttributeOperation'](_0x363b2c){const _0x5e52fc=this['_diffRootsAttributes']['get'](_0x363b2c['root']['rootName']);null===_0x363b2c['newValue']?delete _0x5e52fc[_0x363b2c['key']]:_0x5e52fc[_0x363b2c['key']]=_0x363b2c['newValue'];}}function T(_0x504c4c){const _0x5ada3f=F(_0x504c4c['rootName'],_0x504c4c['isAttached']());for(const _0x197c89 of _0x504c4c['getChildren']()){const _0x56aba6=_0x197c89['_clone'](!0x0);_0x5ada3f['_appendChild'](_0x56aba6);}return _0x5ada3f;}function F(_0x4b47dd,_0x4d3309=!0x0){const _0x33ed80=new mt();return _0x33ed80['rootName']=_0x4b47dd,_0x33ed80['_isAttached']=_0x4d3309,_0x33ed80['isAttached']=()=>_0x33ed80['_isAttached'],_0x33ed80;}function B(_0xabe03d,_0x103783,_0x1789cb){const _0xeb7af4='elementEnd'==_0xabe03d['type']?_0x1789cb['createPositionAt'](_0xabe03d['item'],'end'):_0x1789cb['createPositionBefore'](_0xabe03d['item']);return _0x1789cb['createPositionFromPath'](_0x103783,_0xeb7af4['path'],_0xeb7af4['stickiness']);}function J(_0x1d2a3c,_0xbe2669,_0xbe4175){const _0x19437c='elementStart'==_0x1d2a3c['type']?_0xbe4175['createPositionAt'](_0x1d2a3c['item'],0x0):_0xbe4175['createPositionAfter'](_0x1d2a3c['item']);return _0xbe4175['createPositionFromPath'](_0xbe2669,_0x19437c['path'],_0x19437c['stickiness']);}class hs extends _0x54bab1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x776c2,_0xb4fa3){super(_0x776c2),this['focusTracker']=new _0x4413f1(),this['keystrokes']=new _0x2b44d5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb4fa3),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x5b59ac({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e880d=_0x2aa256=>_0x2aa256['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e880d),this['keystrokes']['set']('arrowleft',_0x2e880d),this['keystrokes']['set']('arrowup',_0x2e880d),this['keystrokes']['set']('arrowdown',_0x2e880d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4100f4){this['revisionNameInputView']['fieldView']['element']['value']=_0x4100f4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x9581cf){const _0x46efdf=new nt(this['locale'],_0x42aec0),_0x414f81=_0x46efdf['fieldView'];_0x414f81['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b4fd3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x9581cf&&(_0x5b4fd3+='\x20('+m(this['locale'],'optional')+')'),(_0x46efdf['label']=_0x5b4fd3,_0x414f81['on']('input',()=>{this['revisionNameInputValue']=_0x414f81['element']['value']['trim']();}),_0x46efdf);}}class u extends _0x4011e1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x57521d=this['editor'],_0x2adb42=_0x57521d['plugins']['get']('RevisionTracker');_0x57521d['ui']['componentFactory']['add']('revisionHistory',_0x45c3f3=>{const _0x4b1a07=_0x46c6e4(_0x45c3f3),_0x4f3742=_0x4b1a07['panelView']['children'],_0x26fc29=new _0x1e14d0(_0x45c3f3),_0x140c40=new te(_0x45c3f3),_0x4dcf7c=new _0x412521(_0x45c3f3),_0x5a3b8d=new te(_0x45c3f3),_0x4dbb22=new _0x412521(_0x45c3f3);return _0x4b1a07['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x446dce,_0x5676ed,_0x3c8e8f)=>_0x446dce&&_0x5676ed&&!_0x3c8e8f),_0x4b1a07['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x45c3f3,'Revision\x20history'),'tooltip':!0x0}),_0x4dcf7c['set']({'label':m(_0x45c3f3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4dcf7c['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x208036,_0x383edd,_0x1c3f66)=>_0x208036&&_0x383edd&&!_0x1c3f66),_0x4dcf7c['on']('execute',()=>this['_showDialog']()),_0x4dbb22['set']({'label':m(_0x45c3f3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4dbb22['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x57521d,'isReadOnly',(_0x317889,_0x4f89c1)=>_0x317889&&!_0x4f89c1),_0x4dbb22['on']('execute',()=>{_0x57521d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4b1a07['isOpen']=!0x1,_0x57521d['editing']['view']['focus']();}),_0x140c40['children']['add'](_0x4dcf7c),_0x5a3b8d['children']['add'](_0x4dbb22),_0x26fc29['role']='menu',_0x26fc29['items']['addMany']([_0x140c40,_0x5a3b8d]),_0x4f3742['add'](_0x26fc29),_0x4b1a07;}),_0x57521d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3a202d=this['editor'],_0x2a7b2f=_0x3a202d['locale'],_0x5b886e=new _0x3e0dcb(_0x2a7b2f),_0x11deb9=new _0x367653(_0x2a7b2f);_0x5b886e['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x2a7b2f,'Revision\x20history')});const _0x2c59c4=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x3449bc=new _0x3449d1(_0x2a7b2f);_0x3449bc['set']({'label':m(_0x2a7b2f,'Save\x20current\x20revision')}),_0x3449bc['delegate']('execute')['to'](_0x5b886e),_0x3449bc['on']('execute',()=>{this['_showDialog']();}),_0x2c59c4['children']['add'](_0x3449bc),_0x11deb9['items']['add'](_0x2c59c4);const _0x2028cb=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x2cfb0a=new _0x3449d1(_0x2a7b2f);return _0x2cfb0a['set']({'label':m(_0x2a7b2f,'Open\x20revision\x20history')}),_0x2cfb0a['delegate']('execute')['to'](_0x5b886e),_0x2cfb0a['on']('execute',()=>{_0x3a202d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2028cb['children']['add'](_0x2cfb0a),_0x11deb9['items']['add'](_0x2028cb),_0x5b886e['panelView']['children']['add'](_0x11deb9),_0x5b886e;}['_showDialog'](){const _0x283d60=this['editor'],_0x498cac=_0x283d60['locale'],_0x82e783=_0x283d60['plugins']['get']('Dialog'),_0x46500f=_0x283d60['plugins']['get']('RevisionTracker');function _0x5bb6da(_0x40b8ba){_0x283d60['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40b8ba['revisionName']?_0x40b8ba['revisionNameInputView']['errorText']=m(_0x498cac,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x283d60['plugins']['get'](l)['saveRevision']({'name':_0x40b8ba['revisionName']}),_0x82e783['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5bb6da(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x82e783['show']({'id':'revisionSave','title':m(_0x498cac,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x283d60['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x82e783['hide']()},{'label':m(_0x283d60['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3eda47){_0x3eda47['bind']('isEnabled')['to'](_0x46500f,'isReady',_0x46500f,'isEnabled',_0x283d60,'isReadOnly',(_0xd19f0e,_0x3ac840,_0x2780e8)=>_0xd19f0e&&_0x3ac840&&!_0x2780e8);},'onExecute':()=>_0x5bb6da(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x83f5fa=this['editor'],_0x408ab0=_0x83f5fa['locale'];this['_saveRevisionFormView']=new hs(_0x408ab0,_0x83f5fa['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x54bab1{['changeId'];['_model'];constructor(_0x218039,_0x35fff8){super(_0x218039),this['_model']=_0x35fff8,this['changeId']=_0x35fff8['id'];const _0x518a12=this['bindTemplate'],_0x180e02=m(_0x218039,_0x35fff8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x35fff8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x35fff8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x518a12['to']('type',_0x4ae79e=>'ck-revision-change__'+_0x4ae79e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x180e02}]},{'text':'\x20'+_0x35fff8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2397cf(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d2977){super(),this['id']=_0x1d2977['id']||_0x316b02(),this['author']=_0x1d2977['author'],this['type']=_0x1d2977['type'],this['data']=_0x1d2977['data']||{},this['rootName']=_0x1d2977['rootName'],this['set']('createdAt',_0x1d2977['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x45f232,_0xae872b){this['newRevisionId']=_0x45f232,this['oldRevisionId']=_0xae872b,this['changes']=new _0x177da0();}['_setChanges'](_0x4acb8f){for(const _0x4a8785 of _0x4acb8f)this['changes']['add'](_0x4a8785);}}const Y={'c':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class d extends _0x4011e1{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x7d3fd1,_0x53c608,j];}constructor(_0x44500b){super(_0x44500b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5b1ae4,_0x364b4e,_0x315b83)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1919ef=>{for(const _0x1483f0 of this['editor']['editing']['view']['document']['roots'])_0x315b83?_0x1919ef['removeClass']('ck-editor__editable__overlay',_0x1483f0):_0x1919ef['addClass']('ck-editor__editable__overlay',_0x1483f0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16f008=>null!==_0x16f008),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5cb9df,_0x1cebaf,_0x517171)=>_0x5cb9df&&_0x517171?_0x1cebaf['changes']['getIndex'](_0x517171):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4decda,_0x306873)=>_0x4decda?_0x306873['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x53c608);}['init'](){const _0x28cb6c=this['editor'],_0x4c9b86=new yt(_0x28cb6c,{'direction':'backward'}),_0x37a7d1=new yt(_0x28cb6c,{'direction':'forward'});(_0x28cb6c['commands']['add']('showPreviousChange',_0x4c9b86),_0x28cb6c['commands']['add']('showNextChange',_0x37a7d1),_0x28cb6c['commands']['add']('restoreRevision',new _t(_0x28cb6c)),this['on']('change:numberOfChanges',()=>{_0x4c9b86['refresh'](),_0x37a7d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x28cb6c['enableReadOnlyMode']('revision-viewer'),_0x28cb6c['plugins']['has']('WidgetToolbarRepository'))&&_0x28cb6c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x53333a){await this['loadRevisionData'](_0x53333a);const _0x403525={};for(const _0x5f5341 in _0x53333a['diffData']){if(_0x53333a['diffData'][_0x5f5341]['attachChange']&&!_0x53333a['diffData'][_0x5f5341]['attachChange']['isAttached'])continue;const _0x503c08=this['_removeRevisionMarkers'](JSON['parse'](_0x53333a['diffData'][_0x5f5341]['insertions'])),_0x562635=this['editor']['editing']['view']['document'],_0x31adc6=new _0x531090(_0x562635,_0x503c08['map'](_0x2224da=>this['_getViewObj'](_0x2224da)));this['editor']['data']['processor']['useFillerType']('marked'),_0x403525[_0x5f5341]=this['editor']['data']['processor']['toData'](_0x31adc6),this['editor']['data']['processor']['useFillerType']('default');}return _0x403525;}async['getRevisionRootsAttributes'](_0x45d50c){await this['loadRevisionData'](_0x45d50c);const _0x2e8a99={};for(const _0x564429 in _0x45d50c['diffData'])_0x45d50c['diffData'][_0x564429]['attachChange']&&!_0x45d50c['diffData'][_0x564429]['attachChange']['isAttached']||(_0x2e8a99[_0x564429]=_0x45d50c['diffData'][_0x564429]['attributesAfter']||{});return _0x2e8a99;}['_removeRevisionMarkers'](_0x110bdd){return(_0x110bdd=_0x110bdd['filter'](_0x32b65c=>!_0x32b65c['name']||'revision-start'!==_0x32b65c['name']&&'revision-end'!==_0x32b65c['name']))['forEach'](_0x326d5d=>{'string'!=typeof _0x326d5d&&(_0x326d5d['children']=this['_removeRevisionMarkers'](_0x326d5d['children']),_0x326d5d['attributes']=_0x326d5d['attributes']['filter'](_0x5e7b2=>!_0x5e7b2[0x0]['startsWith']('data-revision-')));}),_0x110bdd;}async['compare'](_0x5588e2,_0x454d99,_0x2e87d4=!0x1){if(!this['isEnabled'])return;const _0x38c0bf=this['diff'],_0xf26f6a=this['repository'],_0xad05ed='string'==typeof _0x5588e2?_0xf26f6a['getRevision'](_0x5588e2):_0x5588e2,_0x3dfc2e='string'==typeof _0x454d99?_0xf26f6a['getRevision'](_0x454d99):_0x454d99,_0x32505c=_0xad05ed['id'],_0x3fbe9a=_0x3dfc2e?_0x3dfc2e['id']:null;if(!_0x2e87d4&&this['diff']&&this['diff']['newRevisionId']===_0x32505c&&this['diff']['oldRevisionId']===_0x3fbe9a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x32505c,_0x3fbe9a);const _0x29ef8c=this['_getRevisionsRange'](_0xad05ed,_0x3dfc2e,!0x0)['map'](_0x11e497=>this['loadRevisionData'](_0x11e497));return _0x29ef8c['push'](new Promise(_0x564350=>{setTimeout(_0x564350,0x14);})),Promise['all'](_0x29ef8c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x50b47d=this['_getDiff'](_0x32505c,_0x3fbe9a);for(const _0x31d719 of _0x50b47d['changes'])this['_changeIdToChange']['set'](_0x31d719['id'],_0x31d719);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x591064=>{for(const _0x538c4a of this['editor']['model']['document']['getRootNames']())_0x591064['detachRoot'](_0x538c4a);for(const _0x29dd63 of Object['keys'](_0x50b47d['model'])){const _0x58979a=_0x591064['addRoot'](_0x29dd63);for(const _0x202609 of Object['keys'](_0x50b47d['attributes'][_0x29dd63]))_0x591064['setAttribute'](_0x202609,_0x50b47d['attributes'][_0x29dd63][_0x202609],_0x58979a);_0x591064['insert'](_0x50b47d['model'][_0x29dd63],_0x58979a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x50b47d['changes'])),this['isReady']=!0x0;})['catch'](_0xa97234=>{console['error'](_0xa97234),this['_cleanUp'](),_0x38c0bf&&(this['diff']=_0x38c0bf),this['isReady']=!0x0;});}['addRevisionData'](_0x2619a1,_0x386c80){const _0xd444c5=this['repository']['createRevision'](_0x2619a1);return _0xd444c5['on']('_update',(_0x96f1ee,_0x4bd4d6,_0x5b8c68)=>_0x386c80(_0x4bd4d6,_0x5b8c68,_0xd444c5)),this['repository']['addRevision'](_0xd444c5),_0xd444c5;}['loadRevisionData'](_0x4ad994){if(!_0x4ad994||_0x4ad994['diffData'])return Promise['resolve']();{const _0x4b1de0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4b1de0,'revisionId':_0x4ad994['id']})['then'](_0x46b04d=>{_0x4ad994['_update']({'diffData':_0x46b04d['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ca5e3=>{for(const _0x6f4264 of this['editor']['model']['document']['getRootNames']())_0x4ca5e3['detachRoot'](_0x6f4264);});}['_sortAndFilterDiffChanges'](_0x159e7c){const _0x4d1527=[],_0xd7a79a=new Map();for(const _0x53bc87 of this['editor']['model']['document']['getRootNames']()){const _0x379436=this['editor']['editing']['view']['getDomRoot'](_0x53bc87);if(!_0x379436)continue;const _0x2bce71=_0x379436['getClientRects']()['item'](0x0);_0x2bce71&&(_0x4d1527['push'](_0x53bc87),_0xd7a79a['set'](_0x53bc87,_0x2bce71));}return _0x4d1527['sort']((_0x2db3fa,_0x26b52f)=>{const _0x49ae31=_0xd7a79a['get'](_0x2db3fa),_0x54c8f9=_0xd7a79a['get'](_0x26b52f);return _0x49ae31['y']-_0x54c8f9['y']||_0x49ae31['x']-_0x54c8f9['x'];}),(_0x159e7c=_0x159e7c['filter'](_0x3333db=>_0x4d1527['includes'](_0x3333db['rootName'])))['sort']((_0x561739,_0x13bd53)=>_0x4d1527['indexOf'](_0x561739['rootName'])-_0x4d1527['indexOf'](_0x13bd53['rootName'])),_0x159e7c;}['_makeTape'](_0x35c955){const _0x508d05=Array['from'](_0x35c955['markers'])['filter'](([_0x193d6e,_0x391f9e])=>_0x193d6e['startsWith']('revision:')&&!_0x391f9e['isCollapsed']),_0x227cac=Array['from'](this['editor']['model']['createRangeIn'](_0x35c955)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x508d05['length'])for(const _0x1518d1 of _0x227cac){const [_0x4dbffa,_0x5710ae]=_0x508d05[0x0],[,_0x1f8530,_0x1539f2]=_0x4dbffa['split'](':');if(_0x5710ae['end']['isEqual'](_0x1518d1['nextPosition'])&&_0x508d05['shift'](),(_0x1518d1['previousPosition']['isEqual'](_0x5710ae['start'])||_0x1518d1['previousPosition']['isAfter'](_0x5710ae['start']))&&('insertion'==_0x1f8530?_0x1518d1['isAdded']={'userId':_0x1539f2}:'deletion'==_0x1f8530&&(_0x1518d1['isRemoved']={'userId':_0x1539f2})),0x0==_0x508d05['length'])break;}return _0x227cac;}['_refreshStartEndIndex'](_0x1029e3){const _0x51666e=new Map();for(let _0x437613=0x0;_0x437613<_0x1029e3['length'];_0x437613++)'text'===_0x1029e3[_0x437613]['type']?(_0x1029e3[_0x437613]['item']['startIndex']=_0x437613,_0x1029e3[_0x437613]['item']['endIndex']=_0x437613):('elementStart'===_0x1029e3[_0x437613]['type']?_0x1029e3[_0x437613]['item']['startIndex']=_0x437613:'elementEnd'===_0x1029e3[_0x437613]['type']&&(_0x1029e3[_0x437613]['item']['endIndex']=_0x437613),_0x51666e['set'](_0x1029e3[_0x437613]['id'],_0x437613));for(const _0x2ef65e of _0x51666e['values']())'elementStart'===_0x1029e3[_0x2ef65e]['type']?_0x1029e3[_0x2ef65e]['item']['endIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']):'elementEnd'===_0x1029e3[_0x2ef65e]['type']&&(_0x1029e3[_0x2ef65e]['item']['startIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']));}['_processTape'](_0xf6eb94){for(let _0x45aa35=0x0;_0x45aa35<_0xf6eb94['length'];_0x45aa35++){if('elementStart'===_0xf6eb94[_0x45aa35]['type'])_0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35;else{if('elementEnd'===_0xf6eb94[_0x45aa35]['type']){_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35;const _0x25734f=_0xf6eb94[_0x45aa35]['item']['startIndex'];_0xf6eb94[_0x25734f]['pairId']=_0xf6eb94[_0x45aa35]['id'],_0xf6eb94[_0x45aa35]['pairId']=_0xf6eb94[_0x25734f]['id'];}else _0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['pairId']=null;}_0xf6eb94[_0x45aa35]['markersStart']||(_0xf6eb94[_0x45aa35]['markersStart']=[],_0xf6eb94[_0x45aa35]['markersEnd']=[]);}}['_markInsertions'](_0x2660fa,_0x2ae260){const _0x2722c0=_0x2660fa['filter'](_0x1ed4bb=>!_0x1ed4bb['isAdded']);for(let _0x563ae7=0x0;_0x563ae7<_0x2ae260['length'];_0x563ae7++)_0x2ae260[_0x563ae7]['isAdded']&&(_0x2722c0[_0x563ae7]['isAdded']=_0x2ae260[_0x563ae7]['isAdded']);}['_makeModelFromViewString'](_0x38ce80){const _0xe414b1=JSON['parse'](_0x38ce80),_0x2f504e=this['editor']['editing']['view']['document'],_0x15b54d=new _0x531090(_0x2f504e,_0xe414b1['map'](_0x2b4c58=>this['_getViewObj'](_0x2b4c58)));return this['editor']['data']['toModel'](_0x15b54d);}['_getViewObj'](_0x42f8f1){const _0x266707=this['editor']['editing']['view']['document'];if('string'==typeof _0x42f8f1)return new _0x334ef4(_0x266707,_0x42f8f1);{const _0x3fbe48=_0x42f8f1['children']['map'](_0x53b361=>this['_getViewObj'](_0x53b361));return new(Y[_0x42f8f1['type']]||_0x3564d6)(_0x266707,_0x42f8f1['name'],_0x42f8f1['attributes'],_0x3fbe48);}}['_getDiff'](_0xe57888,_0x1f1b69=null){const _0x4524be=this['repository']['getRevision'](_0xe57888),_0x200ee6=_0x1f1b69?this['repository']['getRevision'](_0x1f1b69):null,_0x12a13e=this['_getRevisionsRange'](_0x4524be,_0x200ee6),_0xff8675=_0x12a13e[_0x12a13e['length']-0x1],_0x511d5a=new Map(),_0x106ce8={'model':{},'attributes':{},'changes':[]},_0xe7488f=new Set(),_0x2ef960=new Map();for(let _0xcf6aa=_0x12a13e['length']-0x1;_0xcf6aa>=0x0;_0xcf6aa--){const _0xf77fcd=_0x12a13e[_0xcf6aa];for(const _0x284c3c of Object['keys'](_0xf77fcd['diffData']))if(_0xf77fcd['diffData'][_0x284c3c]['attachChange']){const _0x1f3783=_0xf77fcd['diffData'][_0x284c3c]['attachChange'];_0x1f3783['isAttached']?(_0xe7488f['add'](_0x284c3c),_0x2ef960['has'](_0x284c3c)&&_0x2ef960['get'](_0x284c3c)['userId']==_0x1f3783['userId']?_0x2ef960['delete'](_0x284c3c):_0x2ef960['set'](_0x284c3c,_0x1f3783)):_0x2ef960['has'](_0x284c3c)?(_0xe7488f['delete'](_0x284c3c),_0x2ef960['delete'](_0x284c3c)):(_0xe7488f['add'](_0x284c3c),_0x2ef960['set'](_0x284c3c,_0x1f3783));}else _0xe7488f['add'](_0x284c3c);}for(const _0x1ab937 of _0xe7488f){const _0x1451dd=_0x2ef960['has'](_0x1ab937)&&!_0x2ef960['get'](_0x1ab937)['isAttached'];let _0x338d8e=_0x1451dd?_0x12a13e['length']-0x1:0x0;const _0x1b3d64=_0x1451dd?-0x1:0x1;for(;_0x12a13e[_0x338d8e];){const _0x25b8e2=_0x12a13e[_0x338d8e];if(_0x25b8e2['diffData'][_0x1ab937]){const _0xe7f2a4=_0x1451dd?_0x25b8e2['diffData'][_0x1ab937]['attributesBefore']:_0x25b8e2['diffData'][_0x1ab937]['attributesAfter'];_0x106ce8['attributes'][_0x1ab937]=_0xe7f2a4?_0x3bd5f8(_0xe7f2a4):{};break;}_0x338d8e+=_0x1b3d64;}}for(const _0x354b3f of _0x12a13e){_0x354b3f['model']={};for(const _0x434106 of _0x354b3f['authors'])_0x511d5a['set'](_0x434106['id'],_0x434106);for(const _0x1b87b3 of _0xe7488f){const _0x44d378=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['insertions']:'[]',_0x3f5e28=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['deletions']:'[]';_0x354b3f['model'][_0x1b87b3]={'insertions':this['_makeModelFromViewString'](_0x44d378),'deletions':this['_makeModelFromViewString'](_0x3f5e28)};}}for(const _0x253a9e of _0xe7488f){let _0x3da266=null,_0x1fa62d=0x0;const _0x214ef8=new Map(Array['from'](_0x4524be['model'][_0x253a9e]['insertions']['markers'])['filter'](([_0x1d6621])=>!_0x1d6621['startsWith']('revision:')));let _0x4131c1=0x0;for(const _0x527f59 of _0x12a13e){const _0x10d116=this['_makeTape'](_0x527f59['model'][_0x253a9e]['insertions']);_0x527f59==_0x4524be?(_0x3da266=_0x10d116,_0x1fa62d=_0x3da266['length'],_0x3da266['forEach'](_0x345830=>{_0x345830['id']=_0x4131c1++;}),this['_processTape'](_0x3da266)):this['_markInsertions'](_0x3da266,_0x10d116);const _0x108805=_0x3da266['filter'](_0x12d326=>!_0x12d326['isAdded'])['map'](_0x401963=>_0x401963['id']);let _0xd426d3=0x0;const _0x209cb5=this['_makeTape'](_0x527f59['model'][_0x253a9e]['deletions']);_0x209cb5['forEach'](_0x167c58=>{_0x167c58['isRemoved']?_0x167c58['id']=_0x1fa62d++:_0x167c58['id']=_0x108805[_0xd426d3++];}),this['_processTape'](_0x209cb5),this['_setDistance'](_0x3da266,'isAdded'),this['_setDistance'](_0x209cb5,'isRemoved'),_0x527f59==_0x4524be&&this['_markMarkers'](_0x3da266,_0x214ef8),_0x3da266=this['_joinTapes'](_0x3da266,_0x209cb5),this['_refreshStartEndIndex'](_0x3da266),this['_setDistance'](_0x3da266,'isRemoved');}_0x3da266=_0x3da266['filter'](_0x3a2a12=>!(_0x3a2a12['isAdded']&&_0x3a2a12['isRemoved']));const _0x224060=new Map(_0xff8675['model'][_0x253a9e]['deletions']['markers']),_0x155110=new Set(_0x214ef8['keys']());for(const _0x575383 of _0x224060['keys']())_0x155110['delete'](_0x575383);this['_markSuggestions'](_0x3da266,_0x155110),this['_fixObsoleteTags'](_0x3da266),_0x3da266=this['_removeMissingPairs'](_0x3da266),_0x3da266=this['_markMismatchedRemovedTags'](_0x3da266),_0x3da266=this['_removeUnsupportedChanges'](_0x3da266);const {root:_0x1fc8cb,changes:_0xb775a9}=this['_makeModelFromTape'](_0x3da266,_0x511d5a,_0x253a9e);_0x106ce8['model'][_0x253a9e]=_0x1fc8cb;const _0x3fd72b=_0x2ef960['get'](_0x253a9e);if(_0x3fd72b){const _0x19e039=_0x511d5a['get'](_0x3fd72b['userId']),_0x4b447f=new r({'author':_0x19e039,'type':_0x3fd72b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x253a9e});_0xb775a9['unshift'](_0x4b447f),_0x106ce8['attributes'][_0x253a9e]['revisionHistoryAttachChange']=_0x4b447f['id'];}_0x106ce8['changes']=_0x106ce8['changes']['concat'](_0xb775a9);}return _0x106ce8;}['_markMarkers'](_0x1b41b5,_0x120f75){for(let _0x121c30=0x0;_0x121c30<_0x1b41b5['length'];_0x121c30++)for(const [_0x46b0f5,_0x39b313]of _0x120f75)_0x39b313['start']['isEqual'](_0x1b41b5[_0x121c30]['previousPosition'])&&_0x1b41b5[_0x121c30]['markersStart']['push'](_0x46b0f5),_0x39b313['end']['isEqual'](_0x1b41b5[_0x121c30]['nextPosition'])&&_0x1b41b5[_0x121c30]['markersEnd']['push'](_0x46b0f5);}['_joinTapes'](_0x17c35f,_0x9c7afb){let _0x295809=[],_0x12a114=0x0,_0x1bcb94=0x0;for(;_0x12a114<_0x17c35f['length']||_0x1bcb94<_0x9c7afb['length'];){const _0x3aa52b=_0x17c35f[_0x12a114]||{},_0x916f3b=_0x9c7afb[_0x1bcb94]||{};if(_0x3aa52b['id']==_0x916f3b['id'])_0x12a114++,_0x1bcb94++,_0x295809['push'](_0x3aa52b);else{if(_0x916f3b['isRemoved']&&_0x3aa52b['isAdded']){const {commonTape:_0x1d1e1e,iEnd:_0x5ac9d4,jEnd:_0xfd2263}=this['_threeWayMerge'](_0x17c35f,_0x12a114,_0x9c7afb,_0x1bcb94);_0x295809=_0x295809['concat'](_0x1d1e1e),_0x12a114=_0x5ac9d4,_0x1bcb94=_0xfd2263;}else _0x916f3b['isRemoved']?(_0x1bcb94++,_0x295809['push'](_0x916f3b)):(_0x12a114++,_0x295809['push'](_0x3aa52b));}}return _0x295809;}['_markSuggestions'](_0x3ab148,_0x435de4){const _0x438196=[];for(let _0x183188=0x0;_0x183188<_0x3ab148['length'];_0x183188++){for(let _0x2c7122=0x0;_0x2c7122<_0x3ab148[_0x183188]['markersStart']['length'];_0x2c7122++){const _0x59bee0=_0x3ab148[_0x183188]['markersStart'][_0x2c7122];if(!_0x435de4['has'](_0x59bee0))continue;const {group:_0x549da4,type:_0x11c97e,authorId:_0x183644}=_0xe26c88(_0x59bee0);'revision-suggestion'!=_0x549da4||'insertion'!=_0x11c97e&&'deletion'!=_0x11c97e||(_0x438196['unshift']({'type':_0x11c97e,'name':_0x59bee0,'userId':_0x183644}),_0x3ab148[_0x183188]['markersStart']['splice'](_0x2c7122,0x1),_0x2c7122--);}_0x34978b(_0x3ab148[_0x183188]);for(let _0x4ebbcf=0x0;_0x4ebbcf<_0x3ab148[_0x183188]['markersEnd']['length'];_0x4ebbcf++){const _0x9dd084=_0x3ab148[_0x183188]['markersEnd'][_0x4ebbcf];if(!_0x435de4['has'](_0x9dd084))continue;const {group:_0x544eba,type:_0x1ee22a}=_0xe26c88(_0x9dd084);if('revision-suggestion'!=_0x544eba||'insertion'!=_0x1ee22a&&'deletion'!=_0x1ee22a)continue;_0x3ab148[_0x183188]['markersEnd']['splice'](_0x4ebbcf,0x1),_0x4ebbcf--;const _0x16db0d=_0x438196['findIndex'](_0x5902e3=>_0x5902e3['name']==_0x9dd084);_0x16db0d>-0x1&&_0x438196['splice'](_0x16db0d,0x1);}}function _0xe26c88(_0x507e1a){const _0x46bc08=_0x507e1a['split'](':');return{'group':_0x46bc08[0x0],'type':_0x46bc08[0x1],'subType':_0x46bc08['length']>=0x5?_0x46bc08[0x2]:null,'id':_0x46bc08['length']<0x5?_0x46bc08[0x2]:_0x46bc08[0x3],'authorId':_0x46bc08['length']<0x5?_0x46bc08[0x3]:_0x46bc08[0x4],'markerCount':0x6==_0x46bc08['length']?_0x46bc08[0x5]:null};}function _0x34978b(_0x45148a){for(let _0x2ef168=0x0;_0x2ef168<_0x438196['length'];_0x2ef168++){if(_0x45148a['isAdded']&&'insertion'==_0x438196[_0x2ef168]['type'])return _0x45148a['isAddSuggestion']=_0x438196[_0x2ef168],void delete _0x45148a['isAdded'];if(!_0x45148a['isAdded']&&!_0x45148a['isRemoved']&&'deletion'==_0x438196[_0x2ef168]['type'])return void(_0x45148a['isRemoveSuggestion']=_0x438196[_0x2ef168]);}}}['_setDistance'](_0x2ce7fa,_0x161140){let _0xd88fcb=0x0,_0xf21b3a=!0x1;const _0x47a5e3=new Map();for(const _0x49444c of _0x2ce7fa)_0x49444c[_0x161140]?_0xf21b3a&&(_0xd88fcb++,_0xf21b3a=!0x1):(_0xd88fcb++,_0xf21b3a=!0x0),_0x47a5e3['set'](_0x49444c['id'],_0xd88fcb);for(let _0xd35ad2=0x0;_0xd35ad2<_0x2ce7fa['length'];_0xd35ad2++){if('isRemoved'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isAdded']||'isAdded'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isRemoved'])continue;if('text'==_0x2ce7fa[_0xd35ad2]['type']){_0x2ce7fa[_0xd35ad2]['distance']=0x0;continue;}const _0x3fe9ce=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['pairId']),_0xd2205d=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['id']);_0x2ce7fa[_0xd35ad2]['distance']=_0x3fe9ce-_0xd2205d;}}['_getRevisionsRange'](_0x53b514,_0x3d06f1,_0x339290=!0x1){const _0x1f0750=[];let _0x23f884=this['repository']['getIndex'](_0x53b514),_0x3adb35=this['repository']['getIndex'](_0x3d06f1);for(-0x1==_0x3adb35&&(_0x3adb35=this['repository']['_revisions']['length'],_0x339290=!0x1);_0x23f884<_0x3adb35;)_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x23f884++;return _0x339290&&_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x1f0750;}['_threeWayMerge'](_0x3d8fcc,_0x508ff0,_0x1f32cc,_0x190e10){const _0x18dbf0=this['editor']['model']['schema'];let _0x576480=_0x508ff0;for(;_0x3d8fcc[_0x576480]&&_0x3d8fcc[_0x576480]['isAdded'];)_0x576480++;let _0x330b0d=_0x190e10;for(;_0x1f32cc[_0x330b0d]&&_0x1f32cc[_0x330b0d]['isRemoved'];)_0x330b0d++;_0x33e3f3(_0x3d8fcc,_0x508ff0,_0x576480),_0x33e3f3(_0x1f32cc,_0x190e10,_0x330b0d);const _0x16963a=_0x1f32cc['slice'](_0x190e10,_0x330b0d)['concat'](_0x3d8fcc['slice'](_0x508ff0,_0x576480));return _0x16963a['sort']((_0x20553b,_0x4e0177)=>_0x20553b['side']!=_0x4e0177['side']?_0x20553b['side']-_0x4e0177['side']:_0x20553b['level']!=_0x4e0177['level']?_0x20553b['level']-_0x4e0177['level']:_0x20553b['distance']!=_0x4e0177['distance']?_0x4e0177['distance']-_0x20553b['distance']:!!_0x20553b['isAdded']!=!!_0x4e0177['isAdded']?-0x1==_0x20553b['side']||0x0==_0x20553b['side']?_0x20553b['isAdded']?-0x1:0x1:_0x20553b['isAdded']?0x1:-0x1:_0x20553b['index']-_0x4e0177['index']),{'commonTape':_0x16963a,'iEnd':_0x576480,'jEnd':_0x330b0d};function _0x33e3f3(_0x1f18fe,_0x2c555e,_0x924fcd){let _0x1c78ae=-0x1,_0x3b80ef=Number['POSITIVE_INFINITY'],_0xf52c00=!0x0;for(let _0x1547ea=_0x2c555e;_0x1547ea<_0x924fcd;_0x1547ea++)if(_0x18dbf0['isInline'](_0x1f18fe[_0x1547ea]['item'])||(_0xf52c00=!0x1),_0x1f18fe[_0x1547ea]['item']['startIndex']<_0x2c555e&&(_0x1c78ae=_0x1547ea),_0x1f18fe[_0x1547ea]['item']['endIndex']>=_0x924fcd){_0x3b80ef=_0x1547ea;break;}_0xf52c00&&(_0x1c78ae=_0x924fcd-0x1);for(let _0x4724bd=_0x2c555e;_0x4724bd<_0x924fcd;_0x4724bd++)_0x1f18fe[_0x4724bd]['side']=_0x4724bd<=_0x1c78ae?-0x1:_0x4724bd<_0x3b80ef?0x0:0x1,_0x1f18fe[_0x4724bd]['index']=_0x4724bd;let _0x326737=0x0;for(let _0x4527d7=_0x2c555e;_0x4527d7<=_0x1c78ae;_0x4527d7++)0x0==_0x1f18fe[_0x4527d7]['distance']?_0x1f18fe[_0x4527d7]['level']=_0x326737:(_0x326737++,_0x1f18fe[_0x4527d7]['level']=_0x326737,_0x326737++);for(let _0x2149e5=_0x2c555e;_0x2149e5<_0x924fcd;_0x2149e5++)0x0==_0x1f18fe[_0x2149e5]['side']&&(_0x1f18fe[_0x2149e5]['level']=_0x326737);_0x326737=0x0;for(let _0xe43971=_0x924fcd-0x1;_0xe43971>=_0x3b80ef;_0xe43971--)0x0==_0x1f18fe[_0xe43971]['distance']?_0x1f18fe[_0xe43971]['level']=_0x326737:(_0x326737--,_0x1f18fe[_0xe43971]['level']=_0x326737,_0x326737--);}}['_fixObsoleteTags'](_0x5cb984){const _0x39910c=new Map(),_0x4beecb=this['editor']['model']['schema'];for(let _0x51f165=0x1;_0x51f165<_0x5cb984['length'];_0x51f165++){let _0x402490,_0x24f351,_0x31aca0;const _0x220f9f=_0x5cb984[_0x51f165],_0x5ee196=_0x5cb984[_0x51f165-0x1];if('text'==_0x220f9f['type'])continue;if(_0x220f9f['type']!=_0x5ee196['type'])continue;if(!_0x4beecb['isBlock'](_0x5ee196['item'])||_0x4beecb['isLimit'](_0x5ee196['item']))continue;if(!_0x4beecb['isBlock'](_0x220f9f['item'])||_0x4beecb['isLimit'](_0x220f9f['item']))continue;if((_0x5cb984[_0x51f165]['isAdded']||_0x5cb984[_0x51f165]['isAddSuggestion'])&&_0x5cb984[_0x51f165-0x1]['isRemoved'])_0x402490=_0x5cb984[_0x51f165],_0x24f351=_0x5cb984[_0x51f165-0x1],_0x31aca0=_0x51f165-0x1;else{if(!_0x5cb984[_0x51f165]['isRemoved']||!_0x5cb984[_0x51f165-0x1]['isAdded']&&!_0x5cb984[_0x51f165-0x1]['isAddSuggestion'])continue;_0x402490=_0x5cb984[_0x51f165-0x1],_0x24f351=_0x5cb984[_0x51f165],_0x31aca0=_0x51f165;}const _0x2af218=_0x402490['level']==_0x24f351['level'],_0x1483f1=Math['abs'](_0x402490['level'])<Math['abs'](_0x24f351['level'])&&0x0==_0x24f351['distance'];(_0x2af218||_0x1483f1)&&(_0x39910c['set'](_0x24f351['id'],_0x402490['id']),_0x5cb984['splice'](_0x31aca0,0x1),_0x51f165--,_0x402490['isAdded']=!0x1);}for(let _0x49b87d=0x0;_0x49b87d<_0x5cb984['length'];_0x49b87d++)_0x39910c['has'](_0x5cb984[_0x49b87d]['pairId'])&&(_0x5cb984[_0x49b87d]['pairId']=_0x39910c['get'](_0x5cb984[_0x49b87d]['pairId']));}['_removeMissingPairs'](_0xb8b322){const _0x1cec44=new Set(_0xb8b322['map'](_0x56256f=>_0x56256f['id']));for(let _0x50c743=0x0;_0x50c743<_0xb8b322['length'];_0x50c743++)_0x1cec44['has'](_0xb8b322[_0x50c743]['pairId'])||0x0==_0xb8b322[_0x50c743]['distance']||(_0xb8b322[_0x50c743]['isIncorrect']=!0x0);return _0xb8b322['filter'](_0x5176e6=>!_0x5176e6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5d8cf6){const _0x10eca2=new Set();for(let _0x1de502=0x0;_0x1de502<_0x5d8cf6['length'];_0x1de502++){if(_0x10eca2['has'](_0x5d8cf6[_0x1de502]['id'])&&_0x5d8cf6[_0x1de502]['isRemoved']&&(_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0),_0x5d8cf6[_0x1de502]['isIncorrect'])continue;if(0x0==_0x5d8cf6[_0x1de502]['distance'])continue;if('elementStart'!=_0x5d8cf6[_0x1de502]['type'])continue;if(null==_0x5d8cf6[_0x1de502]['pairId'])continue;let _0x5b752b=_0x1de502+0x1,_0x15c7a2=0x0;for(;_0x5d8cf6[_0x5b752b]['id']!=_0x5d8cf6[_0x1de502]['pairId'];)'elementStart'==_0x5d8cf6[_0x5b752b]['type']?_0x15c7a2++:'elementEnd'==_0x5d8cf6[_0x5b752b]['type']&&_0x15c7a2--,_0x5b752b++;if(0x0!=_0x15c7a2){if(_0x5d8cf6[_0x1de502]['isRemoved'])_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0;else{for(;_0x5b752b!=_0x1de502;)_0x5d8cf6[_0x5b752b]['isRemoved']&&0x0!=_0x5d8cf6[_0x5b752b]['distance']&&(_0x5d8cf6[_0x5b752b]['isIncorrect']=!0x0,_0x10eca2['add'](_0x5d8cf6[_0x5b752b]['pairId'])),_0x5b752b--;}}}return _0x5d8cf6['filter'](_0xf9065e=>!_0xf9065e['isIncorrect']);}['_removeUnsupportedChanges'](_0x2148fd){const _0x5c3ed7=this['editor']['model']['schema'];for(let _0x499589=0x0;_0x499589<_0x2148fd['length'];_0x499589++){if(!(_0x2148fd[_0x499589]['isAdded']||_0x2148fd[_0x499589]['isAddSuggestion']||_0x2148fd[_0x499589]['isRemoved']||_0x2148fd[_0x499589]['isRemoveSuggestion']))continue;if(0x0==_0x2148fd[_0x499589]['distance'])continue;const _0x2e46e0=_0x2148fd[_0x499589]['item'];_0x5c3ed7['isBlock'](_0x2e46e0)||_0x5c3ed7['isLimit'](_0x2e46e0)||(_0x2148fd[_0x499589]['isAdded']&&delete _0x2148fd[_0x499589]['isAdded'],_0x2148fd[_0x499589]['isAddSuggestion']&&delete _0x2148fd[_0x499589]['isAddSuggestion'],_0x2148fd[_0x499589]['isRemoveSuggestion']&&delete _0x2148fd[_0x499589]['isRemoveSuggestion'],_0x2148fd[_0x499589]['isRemoved']&&(_0x2148fd[_0x499589]['isIncorrect']=!0x0));}return _0x2148fd['filter'](_0x4b57e5=>!_0x4b57e5['isIncorrect']);}['_makeModelFromTape'](_0x364f02,_0x5143fd,_0x2192aa){const _0x5b1013=new mt(),_0x283c51=[],_0x4a3ef5=new Map(),_0x4bb454=this['editor']['model'],_0x4e1be2=_0x4bb454['schema'],_0x368c7b=[_0x5b1013],_0x58f749={},_0x14a3e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x160343=null;const _0x2fdd09=[0x0];for(let _0x5737f3=0x0;_0x5737f3<_0x364f02['length'];_0x5737f3++)if('elementStart'===_0x364f02[_0x5737f3]['type']){_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);const _0x3d8811=new ft(_0x364f02[_0x5737f3]['item']['name'],_0x364f02[_0x5737f3]['item']['getAttributes']());_0x368c7b[0x0]['_appendChild'](_0x3d8811),_0x2fdd09['push'](0x0),_0x368c7b['unshift'](_0x3d8811),_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);}else'elementEnd'===_0x364f02[_0x5737f3]['type']?(_0x368c7b['shift'](),_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x2fdd09['pop'](),_0x2fdd09[_0x2fdd09['length']-0x1]++,_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09)):(_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x160343?_0x160343['_data']+=_0x364f02[_0x5737f3]['item']['data']:_0x160343=new wt(_0x364f02[_0x5737f3]['item']['data'],_0x364f02[_0x5737f3]['item']['getAttributes']()),_0x364f02[_0x5737f3+0x1]&&'text'===_0x364f02[_0x5737f3+0x1]['type']&&_0x2f420b(_0x160343,_0x364f02[_0x5737f3+0x1]['item'])||(_0x368c7b[0x0]['_appendChild'](_0x160343),_0x160343=null),_0x2fdd09[_0x2fdd09['length']-0x1]+=_0x364f02[_0x5737f3]['item']['offsetSize'],_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09));for(let _0x47a80e=0x0;_0x47a80e<_0x364f02['length'];_0x47a80e++){const _0x3e8a02=_0x364f02[_0x47a80e]['previousPosition'],_0x5cba3c=_0x364f02[_0x47a80e]['nextPosition'];for(const _0x2dc019 of _0x364f02[_0x47a80e]['markersStart'])_0x4a3ef5['set'](_0x2dc019,{'start':_0x3e8a02,'end':null});_0x1f5ae8('isRemoveSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAddSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isRemoved',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAdded',_0x47a80e,_0x3e8a02,_0x5cba3c);for(const _0x5d9335 of _0x364f02[_0x47a80e]['markersEnd']){_0x4a3ef5['get'](_0x5d9335)['end']=_0x5cba3c;}}for(const [_0x1eaf9b,_0x13bc51]of _0x4a3ef5){const _0x1ef754=this['editor']['model']['createRange'](_0x13bc51['start'],_0x13bc51['end']);_0x5b1013['markers']['set'](_0x1eaf9b,_0x1ef754);}return _0x283c51['sort']((_0x37ac07,_0x334984)=>{const _0xeeefc4=_0x5b1013['markers']['get']('revision:'+_0x37ac07['id']),_0x5a3ae=_0x5b1013['markers']['get']('revision:'+_0x334984['id']);return _0xeeefc4['start']['isBefore'](_0x5a3ae['start'])?-0x1:_0xeeefc4['start']['isAfter'](_0x5a3ae['start'])?0x1:_0xeeefc4['end']['isBefore'](_0x5a3ae['end'])?-0x1:_0xeeefc4['end']['isAfter'](_0x5a3ae['end'])?0x1:'add'===_0x37ac07['type']?-0x1:0x1;}),{'root':_0x5b1013,'changes':_0x283c51};function _0x1f5ae8(_0x1cf427,_0x4f595b,_0x395a2a,_0x4af66b){const _0x3b6281=!!_0x364f02[_0x4f595b][_0x1cf427],_0x1411cf=_0x3b6281?_0x364f02[_0x4f595b][_0x1cf427]['userId']:null,_0x2f6997=_0x4f595b===_0x364f02['length']-0x1,_0x3148ef=_0x14a3e4[_0x1cf427][0x0],_0x3263da=_0x4e1be2['isObject'](_0x364f02[_0x4f595b]['item']);!_0x58f749[_0x1cf427]&&_0x3b6281?_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}:_0x58f749[_0x1cf427]&&!_0x3b6281?(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null):_0x58f749[_0x1cf427]&&_0x3b6281&&_0x58f749[_0x1cf427]['userId']!==_0x1411cf&&(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x3148ef&&_0x3148ef['userId']===_0x58f749[_0x1cf427]['userId']||_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}),_0x58f749[_0x1cf427]&&_0x3263da&&('elementStart'!==_0x364f02[_0x4f595b]['type']||_0x3148ef&&_0x3148ef['userId']===_0x1411cf||_0x14a3e4[_0x1cf427]['unshift']({'userId':_0x1411cf,'object':_0x364f02[_0x4f595b]['item'],'change':_0x58f749[_0x1cf427]}),'elementEnd'===_0x364f02[_0x4f595b]['type']&&_0x3148ef&&_0x3148ef['object']===_0x364f02[_0x4f595b]['item']&&(_0x14a3e4[_0x1cf427]['shift'](),_0x58f749[_0x1cf427]=_0x3148ef['change'])),_0x58f749[_0x1cf427]&&_0x2f6997&&(_0x58f749[_0x1cf427]['end']=_0x4af66b,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null);}function _0x582816({start:_0x1c3ff9,end:_0x1c4c3d,tapeItem:_0x44cfc3,userId:_0x28c25b,type:_0x497031}){const _0x5f5759=_0x44cfc3['item'],_0x1d12e4=_0x4bb454['schema']['isBlock'](_0x5f5759)&&!_0x4bb454['schema']['isLimit'](_0x5f5759),_0x811254=_0x1c3ff9['nodeAfter']==_0x1c4c3d['parent']&&_0x1c4c3d['isAtStart'];if(_0x1d12e4&&_0x811254)return;const _0x4577c7=_0x4bb454['createRange'](_0x1c3ff9,_0x1c4c3d),_0xa534d6=_0x5143fd['get'](_0x28c25b),_0x25979a=new r({'author':_0xa534d6,'type':'isAdded'==_0x497031||'isAddSuggestion'==_0x497031?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x497031||'isRemoveSuggestion'==_0x497031},'createdAt':new Date(),'rootName':_0x2192aa});_0x283c51['push'](_0x25979a),_0x5b1013['markers']['set']('revision:'+_0x25979a['id'],_0x4577c7);}function _0x2f420b(_0x5c8e10,_0x145455){const _0x57e2e4=_0x5c8e10['getAttributes'](),_0x53ebc2=_0x145455['getAttributes']();for(const _0x1f5025 of _0x57e2e4){if(_0x1f5025[0x1]!==_0x145455['getAttribute'](_0x1f5025[0x0]))return!0x1;_0x53ebc2['next']();}return _0x53ebc2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x396d4a=>{const _0x45194a=_0x396d4a['markerName']['split'](':')[0x1],_0x52fadb=this['_getChangeFromId'](_0x45194a);if(!_0x52fadb)return null;const _0x123d68='add'==_0x52fadb['type']?'insertion':'deletion',_0x28f312=['ck-suggestion-marker','ck-suggestion-marker-'+_0x123d68];return _0x52fadb['data']['isSuggestion']&&_0x28f312['push']('ck-suggestion-marker-'+_0x123d68+'-new'),this['activeChange']==_0x52fadb&&_0x28f312['push']('ck-suggestion-marker--active'),{'classes':_0x28f312,'attributes':{'data-change-id':_0x45194a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57eacd=>{_0x57eacd['on']('element:pre',(_0x131f21,_0x1083a9,_0x695043)=>{const _0x2897ca=_0x1083a9['viewItem']['getChild'](0x0);if(!_0x2897ca||!_0x2897ca['is']('element','code'))return;if(!_0x695043['consumable']['consume'](_0x2897ca,{'attributes':['vid_start','vid_end']}))return;const _0x5268e3=_0x1083a9['modelRange']['start']['nodeAfter'];_0x695043['writer']['setAttribute']('vid_start',_0x2897ca['getAttribute']('vid_start'),_0x5268e3),_0x695043['writer']['setAttribute']('vid_end',_0x2897ca['getAttribute']('vid_end'),_0x5268e3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x358c24=>{_0x358c24['on']('element',(_0x22b4f9,_0x187423,_0x5bd7b7)=>{if(!_0x5bd7b7['consumable']['consume'](_0x187423['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x187423['modelRange']['isCollapsed'])return;const _0x572a3a=_0x187423['modelRange']['start']['nodeAfter'];_0x572a3a['hasAttribute']('vid_start')||_0x572a3a['hasAttribute']('vid')||(_0x5bd7b7['writer']['setAttribute']('vid_start',_0x187423['viewItem']['getAttribute']('vid_start'),_0x572a3a),_0x5bd7b7['writer']['setAttribute']('vid_end',_0x187423['viewItem']['getAttribute']('vid_end'),_0x572a3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4842aa=>_0x4842aa['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x514908,[,_0x414186])=>{['vid_start','vid_end','vid']['includes'](_0x414186)&&(_0x514908['return']=!0x0,_0x514908['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x236d6f=>{_0x236d6f['on']('attribute:vid',(_0x8e5929,_0x56bb4c,_0x50315f)=>{if('\x20'!=_0x56bb4c['item']['data']||_0x56bb4c['item']['parent']['maxOffset']>0x1)return;if(!_0x50315f['consumable']['consume'](_0x56bb4c['item'],_0x8e5929['name']))return;const _0x334f54=_0x50315f['writer'],_0x27d16b=_0x50315f['mapper']['toViewRange'](_0x56bb4c['range']);_0x334f54['wrap'](_0x27d16b,_0x334f54['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x266009){const _0x20ed8d=_0x266009['plugins']['get']('RevisionViewer');return(_0x5559c3,_0x103b63,_0x5b1080)=>{const _0x5235e6=_0x103b63['markerName']['split'](':')[0x1],_0x34cf6b=_0x20ed8d['_getChangeFromId'](_0x5235e6);if(!_0x34cf6b)return null;const _0x51e346='add'==_0x34cf6b['type']?'split':'merge';if(!_0x5b1080['consumable']['test'](_0x103b63['markerRange'],_0x5559c3['name']))return;const _0x37fd57=_0x103b63['markerRange']['getWalker'](),_0x26471e=_0x103b63['markerRange']['start'],_0x1bb3a1=_0x266009['model']['schema'];let _0x2f8c7a=null,_0x15cfe5=null,_0x26a348=!0x1,_0x1f0bb7=!0x1;for(const _0x4067af of _0x37fd57){const _0x219ef1=_0x4067af['item'];_0x26a348=_0x26a348||_0x1bb3a1['isContent'](_0x219ef1);const _0x4b600d=_0x5b1080['mapper']['toViewElement'](_0x219ef1);if(_0x4b600d&&_0x4b600d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4067af['type']&&(_0x1bb3a1['isBlock'](_0x219ef1)&&!_0x1bb3a1['isLimit'](_0x219ef1)&&(_0x219ef1['nextSibling']||_0x26471e['isAtEnd']?_0x2f8c7a&&_0x2f8c7a['parent']==_0x219ef1||(_0x2f8c7a=_0x219ef1,_0x1a772f(_0x4067af['previousPosition']),_0x1f0bb7=!0x0):_0x15cfe5=_0x15cfe5||_0x4067af['previousPosition']));}function _0x1a772f(_0x3120de){const _0x1d015e=_0x5b1080['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51e346}),_0x1ef11a=_0x5b1080['mapper']['toViewPosition'](_0x3120de);_0x34cf6b['data']['isSuggestion']&&_0x5b1080['writer']['addClass']('ck-suggestion-marker-'+_0x51e346+'-new',_0x1d015e),_0x20ed8d['activeChange']==_0x34cf6b&&_0x5b1080['writer']['addClass']('ck-suggestion-marker--active',_0x1d015e),_0x5b1080['writer']['insert'](_0x1ef11a,_0x1d015e),_0x5b1080['mapper']['bindElementToMarker'](_0x1d015e,_0x103b63['markerName']);}_0x26a348||_0x1f0bb7||!_0x15cfe5||_0x1a772f(_0x15cfe5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x568d20,_0x406a33,_0x5ef0b3)=>{const _0x2851cc=_0x5ef0b3['mapper']['markerNameToElements'](_0x406a33['markerName']);if(_0x2851cc){for(const _0x5a7f03 of _0x2851cc)(_0x5a7f03['hasClass']('ck-suggestion-marker-split')||_0x5a7f03['hasClass']('ck-suggestion-marker-merge'))&&(_0x5ef0b3['mapper']['unbindElementFromMarkerName'](_0x5a7f03,_0x406a33['markerName']),_0x5ef0b3['writer']['remove'](_0x5a7f03));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x41ce35,_0x5ed52f,_0x28ae05)=>{const _0x37b44a=_0x5ed52f['markerName']['split'](':')[0x1],_0x5a24a4=this['_getChangeFromId'](_0x37b44a);if(!_0x5a24a4)return null;const _0x317004='add'==_0x5a24a4['type']?'split':'merge';if(_0x28ae05['consumable']['test'](_0x5ed52f['markerRange'],_0x41ce35['name']))for(const _0x510b8e of _0x5ed52f['markerRange']['getItems']()){if(!_0x510b8e['is']('element','softBreak'))continue;const _0x165653=_0x28ae05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x317004}),_0x5c1fcb=_0x28ae05['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x510b8e));_0x5a24a4['data']['isSuggestion']&&_0x28ae05['writer']['addClass']('ck-suggestion-marker-'+_0x317004+'-new',_0x165653),this['activeChange']==_0x5a24a4&&_0x28ae05['writer']['addClass']('ck-suggestion-marker--active',_0x165653),_0x28ae05['writer']['insert'](_0x5c1fcb,_0x165653),_0x28ae05['mapper']['bindElementToMarker'](_0x165653,_0x5ed52f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x30bb79=>{for(const _0x5e4f2b of this['editor']['model']['document']['getRootNames']()){const _0x24f130=this['editor']['model']['document']['getRoot'](_0x5e4f2b),_0x24fa52=this['editor']['editing']['view']['document']['getRoot'](_0x5e4f2b);if(_0x24fa52){const _0x76a792=_0x24f130['getAttribute']('revisionHistoryAttachChange');if(_0x30bb79['removeAttribute']('data-change-id',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-add',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-remove',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root--active',_0x24fa52),_0x76a792){const _0x5c4966=this['_getChangeFromId'](_0x76a792);if(!_0x5c4966)return null;_0x30bb79['setAttribute']('data-change-id',_0x76a792,_0x24fa52),_0x30bb79['addClass']('ck-revision-history-root-'+_0x5c4966['type'],_0x24fa52),this['activeChange']==_0x5c4966&&_0x30bb79['addClass']('ck-revision-history-root--active',_0x24fa52);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1179d0=>'revision-comment:'+_0x1179d0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2db3ec=>'revision-suggestion:'+_0x2db3ec,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x32a6a9=>({'name':'suggestion:'+_0x32a6a9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3ceabf=>{const _0x13812c=_0x3ceabf['markerName']['split'](':')[0x1];return'insertion'!=_0x13812c&&'deletion'!=_0x13812c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13812c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4ba6a3,_0x513ad8,_0x2f5ee9)=>{const _0x20eae4=_0x2f5ee9['mapper']['markerNameToElements'](_0x513ad8['markerName']);if(_0x20eae4){for(const _0x14e534 of _0x20eae4)_0x14e534['is']('uiElement')&&(_0x2f5ee9['mapper']['unbindElementFromMarkerName'](_0x14e534,_0x513ad8['markerName']),_0x2f5ee9['writer']['remove'](_0x14e534));}},{'priority':'high'});}['_getChangeFromId'](_0x3a14f0){return this['_changeIdToChange']['get'](_0x3a14f0);}['_getViewForChange'](_0x3f8b25){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f8b25),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57404e,_0x3cea19,_0x3baebc,_0x22293e)=>{_0x22293e&&this['_balloon']['remove'](_0x22293e),_0x3baebc&&(this['_balloon']['add']({'view':_0x3baebc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f2b83=this['editor']['editing'],_0xd8bb3c=this['_getChangeFromId'](_0x3baebc['changeId']);let _0x1c32db;if(_0xd8bb3c['data']['isOnRoot']){const _0x5ce4fc=_0x5f2b83['view']['getDomRoot'](_0xd8bb3c['rootName']);_0x1c32db=Array['from'](_0x5ce4fc['getClientRects']());}else{const _0x25e9ac=this['editor']['model']['markers']['get']('revision:'+_0x3baebc['changeId']);_0x1c32db=Array['from'](_0x5f2b83['mapper']['markerNameToElements'](_0x25e9ac['name']))['map'](_0x39ddcd=>_0x5f2b83['view']['domConverter']['mapViewToDom'](_0x39ddcd))['map'](_0x55f167=>Array['from'](_0x55f167['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c32db[0x0];return _0x1c32db['find'](_0x3700f9=>_0x3700f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x3700f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3700f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x3700f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c32db[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d2dd1,_0x4b09d9,_0x514afe,_0x3a33b9)=>{this['activeView']=_0x514afe?this['_getViewForChange'](_0x514afe):null,this['editor']['model']['change'](()=>{const _0xb4e61=this['editor']['editing'];_0x3a33b9&&(_0x3a33b9['data']['isOnRoot']?_0xb4e61['view']['change'](_0x48a372=>{_0x48a372['removeClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x3a33b9['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x3a33b9['id'])),_0x514afe&&(_0x514afe['data']['isOnRoot']?_0xb4e61['view']['change'](_0x5eb4fb=>{_0x5eb4fb['addClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x514afe['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x514afe['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37613b,_0x2deec0)=>{if(this['activeChange'])return;const _0xa912e5=this['_findChangeIdFromDomTarget'](_0x2deec0['target']),_0xe5e91b=this['_changeIdToChange']['get'](_0xa912e5);_0xe5e91b?(this['_activeViewTarget']={'x':_0x2deec0['domEvent']['x'],'y':_0x2deec0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe5e91b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e5743,_0x356ff3)=>{const _0x5ab581=this['_findChangeIdFromDomTarget'](_0x356ff3['target']),_0x8e9f62=this['_changeIdToChange']['get'](_0x5ab581);_0x8e9f62?(this['_activeViewTarget']={'x':_0x356ff3['domEvent']['x'],'y':_0x356ff3['domEvent']['y']},_0x8e9f62===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8e9f62):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1632a9){do{const _0x18d69e=_0x1632a9['getAttribute']('data-change-id');if(_0x18d69e)return _0x18d69e;_0x1632a9=_0x1632a9['parent'];}while(_0x1632a9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x108128=>{for(const _0x487025 of this['editor']['model']['markers'])_0x108128['removeMarker'](_0x487025);});}}function Z(_0x58e9fa,_0x20e244){return(_0x262a5a,_0x100389,_0x5cbe0b)=>{if(!_0x5cbe0b['consumable']['test'](_0x100389['markerRange'],_0x262a5a['name']))return;const _0x3524d3=_0x100389['markerRange']['getWalker'](),_0x4fb4d2=_0x100389['markerRange']['start'],_0x2a758e=_0x58e9fa['model']['schema'];let _0x12f8d4=null,_0xf41f36=null,_0x57ccf6=!0x1,_0x358bff=!0x1;for(const _0x2d86ca of _0x3524d3){const _0xcfc5da=_0x2d86ca['item'];_0x57ccf6=_0x57ccf6||_0x2a758e['isContent'](_0xcfc5da);const _0x1c8338=_0x5cbe0b['mapper']['toViewElement'](_0xcfc5da);if(_0x1c8338&&_0x1c8338['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d86ca['type']&&(_0x2a758e['isBlock'](_0xcfc5da)&&!_0x2a758e['isLimit'](_0xcfc5da)&&(_0xcfc5da['nextSibling']||_0x4fb4d2['isAtEnd']?_0x12f8d4&&_0x12f8d4['parent']==_0xcfc5da||(_0x12f8d4=_0xcfc5da,_0x4d64fa(_0x2d86ca['previousPosition']),_0x358bff=!0x0):_0xf41f36=_0xf41f36||_0x2d86ca['previousPosition']));}function _0x4d64fa(_0x42ffa3){const _0x248753=_0x5cbe0b['mapper']['toViewPosition'](_0x42ffa3),_0x547737=_0x5cbe0b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x20e244});_0x5cbe0b['writer']['insert'](_0x248753,_0x547737),_0x5cbe0b['mapper']['bindElementToMarker'](_0x547737,_0x100389['markerName']);}_0x57ccf6||_0x358bff||!_0xf41f36||_0x4d64fa(_0xf41f36);};}class _t extends _0x451a85{constructor(_0x4c5bc3){super(_0x4c5bc3);const _0x26b259=_0x4c5bc3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x26b259,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x26b259,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x897b4b=this['editor'],_0x2146d9=_0x897b4b['plugins']['get'](d),_0x5ce5d2=_0x2146d9['isReady']?_0x2146d9['diff']['newRevisionId']:null;_0x897b4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5ce5d2);}['refresh'](){const {isReady:_0x13b68e,isEnabled:_0x2f241a,repository:_0x55830a,diff:_0x23da7c}=this['editor']['plugins']['get'](d),_0x31729f=_0x23da7c&&_0x55830a['getLaterVisibleRevision'](_0x23da7c['newRevisionId']);this['isEnabled']=_0x13b68e&&_0x2f241a&&Boolean(_0x31729f);}}class yt extends _0x451a85{['_step'];constructor(_0x51239b,{direction:_0x1f94f9}){super(_0x51239b);const _0x579604=_0x51239b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1f94f9?0x1:-0x1,this['listenTo'](_0x579604,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x579604,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x579604,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x46e20e=this['editor'],_0x486ce0=_0x46e20e['plugins']['get'](d),{isNavigationMode:_0x213d4d,currentChangeNumber:_0x2eaddf}=_0x486ce0;let _0x2b0a9b;if(_0x486ce0['activeChange']=_0x213d4d?_0x486ce0['diff']['changes']['get'](_0x2eaddf+this['_step']):_0x486ce0['diff']['changes']['first'],_0x486ce0['activeChange']['data']['isOnRoot'])_0x2b0a9b=_0x46e20e['editing']['view']['getDomRoot'](_0x486ce0['activeChange']['rootName']);else{const _0x366a08=_0x46e20e['model']['markers']['get']('revision:'+_0x486ce0['activeChange']['id']);_0x2b0a9b=_0x51754f(_0x46e20e['editing'],_0x366a08);}_0x221f1c({'target':_0x2b0a9b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19bf01,currentChangeNumber:_0x1d4efe,numberOfChanges:_0x148c07,isReady:_0x4668fb,isEnabled:_0x4ec9d8}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4ec9d8&&_0x4668fb&&_0x148c07)&&(!_0x19bf01||(0x1===this['_step']?_0x1d4efe<_0x148c07-0x1:_0x1d4efe>0x0));}}class _i extends _0x54bab1{constructor(_0x3c43f2){super(_0x3c43f2);const _0x16bfff=this['bindTemplate'],_0x5141d9=new _0x412521(_0x3c43f2),_0x278f2e=new _0x412521(_0x3c43f2);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',(_0x515fb0,_0x4720e5)=>_0x515fb0&&_0x4720e5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x459773,_0x25befd,_0x521c5e,_0x355f56)=>{if(!_0x459773)return m(_0x3c43f2,'Loading...');if(!_0x521c5e)return m(_0x3c43f2,'No\x20changes');const _0x399a4a=m(_0x3c43f2,'NUMBER_OF_CHANGES',_0x521c5e);return _0x355f56?m(_0x3c43f2,'X_OF_Y_CHANGES',[_0x25befd+0x1,_0x521c5e]):_0x399a4a;}),_0x5141d9['set']({'label':m(_0x3c43f2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x278f2e['set']({'label':m(_0x3c43f2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5141d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x278f2e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5141d9['on']('execute',()=>this['fire']('execute','backward')),_0x278f2e['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',_0x16bfff['if']('_isStatusLabelVisible','ck-hidden',_0x5b567c=>!_0x5b567c)]},'children':[{'text':_0x16bfff['to']('isNavigationMode',_0x305a3a=>_0x305a3a?m(_0x3c43f2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3c43f2,'Total')+':\x20')}]},{'text':_0x16bfff['to']('_statusText')}]},new _0x50d3fa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5141d9,_0x278f2e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4011e1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b1e36=this['editor']['editing']['view'];_0x2b1e36['change'](_0x566977=>{for(const _0x428ba1 of _0x2b1e36['document']['roots'])_0x566977['addClass'](ce,_0x428ba1);});}['hide'](){const _0x22172a=this['editor']['editing']['view'];_0x22172a['change'](_0x24a67e=>{for(const _0x530f3b of _0x22172a['document']['roots'])_0x24a67e['removeClass'](ce,_0x530f3b);});}}class g extends _0x4011e1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x29df54=this['editor'],_0x568f55=_0x29df54['plugins']['get'](d),_0x20fd9f=_0x29df54['plugins']['get'](le);_0x29df54['ui']['componentFactory']['add']('exitToEditing',_0x123113=>{const _0x7e5a90=new _0x412521(_0x123113);return _0x7e5a90['set']({'label':m(_0x123113,'Back\x20to\x20editing'),'icon':_0x5bb3f8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7e5a90,'execute',()=>{_0x29df54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7e5a90;}),_0x29df54['ui']['componentFactory']['add']('restoreRevision',_0x257396=>{const _0x1aa086=new _0x412521(_0x257396);return _0x1aa086['set']({'label':m(_0x257396,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1aa086['bind']('isEnabled')['to'](_0x29df54['commands']['get']('restoreRevision')),this['listenTo'](_0x1aa086,'execute',()=>_0x29df54['execute']('restoreRevision')),_0x1aa086;}),_0x29df54['ui']['componentFactory']['add']('changesNavigation',_0x1e9baa=>{const _0x58dd3a=new _i(_0x1e9baa),_0x6c9144=_0x29df54['commands']['get']('showPreviousChange'),_0x24cc87=_0x29df54['commands']['get']('showNextChange');return _0x58dd3a['bind']('isBackwardNavigationEnabled')['to'](_0x6c9144,'isEnabled'),_0x58dd3a['bind']('isForwardNavigationEnabled')['to'](_0x24cc87,'isEnabled'),_0x58dd3a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x568f55),this['listenTo'](_0x58dd3a,'execute',(_0x5e7730,_0x1e9a39)=>{_0x29df54['execute']('forward'===_0x1e9a39?'showNextChange':'showPreviousChange');}),_0x58dd3a;}),_0x20fd9f['show'](),_0x568f55['on']('change:isReady',(_0x283faf,_0x116ab9,_0x5bcf31)=>{_0x5bcf31?_0x20fd9f['hide']():_0x20fd9f['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x47412c,_0x8c707a){super(_0x47412c,_0x8c707a);const _0x549cd1=this['bindTemplate'];this['set']({'label':m(_0x47412c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x47412c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549cd1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x23a375=this['fieldView']['element'];this['_tooltipString']=_0x23a375['scrollWidth']>_0x23a375['clientWidth']&&_0x23a375['value']||'';}}class ti extends _0x54bab1{constructor(_0x1e88d9,_0x37ee0a,_0x40f0bc){super(_0x1e88d9);const _0x375337=new _0xe7dccb();_0x375337['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3d3dde=['ck','ck-revision-history-sidebar__revision-author'];_0x40f0bc&&_0x3d3dde['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fac3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1e88d9,_0x40f0bc?'Revision\x20creator':'Revision\x20author')},'children':[_0x375337,_0x37ee0a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d3dde},'children':_0x3fac3f});}}function ni(_0x56b5f5,_0x1a8009){const _0xea36e9=_0x56b5f5['bindTemplate'],_0x2c58f1=_0x56b5f5['locale'],_0x2f7e0a=_0x46c6e4(_0x2c58f1);_0x2f7e0a['panelPosition']='sw';const _0x5d2ea1=function(_0x240cda,_0x3a05c6){const _0x35c741=function(_0x54c068,_0x5c0d8a){const _0x288e19=_0x54c068['locale'],_0x5a762e={'Compare\x20against\x20selected':m(_0x288e19,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x288e19,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x288e19,'Restore\x20this\x20revision')};return _0x5c0d8a['map'](_0x5c3511=>{const _0x3be94f=_0x5a762e[_0x5c3511['name']];return _0x3be94f&&_0x3be94f!==_0x5c3511['name']&&(_0x5c3511['name']=_0x3be94f),_0x5c3511;});}(_0x240cda,_0x3a05c6),_0x3af440=new _0x177da0();for(const _0x511201 of _0x35c741){const _0x5688ae={'type':'button','model':new to({'label':_0x511201['name'],'class':_0x511201['class'],'withText':!0x0,'role':'menuitem','_action':_0x511201['action']})};_0x5688ae['model']['bind']('isEnabled')['to'](_0x240cda,'isActionsDropdownOpen',_0x36ad87=>'function'!=typeof _0x511201['isEnabled']||(!_0x36ad87||_0x511201['isEnabled'](_0x240cda))),_0x3af440['add'](_0x5688ae);}return _0x3af440;}(_0x56b5f5,_0x1a8009);return _0x56b5f5['bind']('isActionsDropdownOpen')['to'](_0x2f7e0a,'isOpen'),_0x2f7e0a['buttonView']['set']({'label':m(_0x2c58f1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5bb3f8['threeVerticalDots']}),_0x2f7e0a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xea36e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xea36e9['to'](_0x10e273=>_0x10e273['stopPropagation']())}}),_0x2f7e0a['on']('execute',_0x56a520=>{_0x56b5f5['isReady']&&'function'==typeof _0x56a520['source']['_action']&&_0x56a520['source']['_action'](_0x56b5f5);}),_0x8c893(_0x2f7e0a,_0x5d2ea1,{'role':'menu'}),_0x2f7e0a['listenTo'](_0x56b5f5,'change:isActionsDropdownOpen',(_0x35068f,_0x2c8504,_0x3a37e0)=>{if(_0x3a37e0)for(const _0x3d20de of _0x2f7e0a['listView']['items']){const _0x57b479=_0x3d20de['children']['first'],_0x49d51d=_0x1a8009['find'](_0x515554=>_0x515554['action']===_0x57b479['_action'])['isVisible'];_0x3d20de['isVisible']=void 0x0===_0x49d51d||_0x49d51d(_0x56b5f5);}}),_0x2f7e0a;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x472f62,uid as _0x56c913,Collection as _0x47b816,logWarning as _0x5462cb,FocusTracker as _0x3cb2ca,KeystrokeHandler as _0x114cb4,scrollViewportToShowTarget as _0x3f1c8e,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x332087}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xdad44a,set as _0x4b8824,unset as _0x2a026f,isEqual as _0xa1db8}from'lodash-es';import{Plugin as _0x32cb53,PendingActions as _0x59e7b1,icons as _0xfd812b,Command as _0x1bb048,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4db1fd,getMarkerDomElement as _0x5bfa7a,ConfirmMixin as _0x184c88,sanitizeEditorConfig as _0x530fd4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x34ea43,ViewText as _0x22ba6c,ViewElement as _0x422f3c,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x47a9b5,ViewAttributeElement as _0x28a10a,ViewEmptyElement as _0x34f328,ViewRawElement as _0x376497,ViewUIElement as _0x30d039,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1a289e,submitHandler as _0x427238,LabeledFieldView as _0x1c9501,createLabeledInputText as _0x2f53a3,createDropdown as _0x1e2d2c,ListView as _0x420742,ListItemView as _0x382b10,ButtonView as te,MenuBarMenuView as _0x59e4e3,MenuBarMenuListView as _0x50ce35,MenuBarMenuListItemView as _0x4c86f4,MenuBarMenuListItemButtonView as _0x53eb9b,ContextualBalloon as _0x37837f,ToolbarSeparatorView as _0x49f459,IconView as _0x247bb3,addListToDropdown as to,ViewModel as _0x58a8c5,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xa55a2d}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x472f62(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x16483c){super(),this['id']=_0x16483c['id']||_0x56c913(),this['creator']=_0x16483c['creator']||null,this['authors']=_0x16483c['authors']||[],this['diffData']=_0x16483c['diffData']||null,this['toVersion']=_0x16483c['toVersion']||0x0,this['fromVersion']=_0x16483c['fromVersion']||0x0,this['set']('name',_0x16483c['name']||''),this['set']('createdAt',_0x16483c['createdAt']||new Date()),this['set']('attributes',_0x16483c['attributes']||{});}['setName'](_0x158bac){this['_update']({'name':_0x158bac});}['setAttribute'](_0x56a7df,_0x2aa847){const _0x345804=_0xdad44a(this['attributes']);_0x4b8824(_0x345804,_0x56a7df,_0x2aa847),this['_update']({'attributes':_0x345804});}['removeAttribute'](_0x5bdf73){const _0x1edbee=_0xdad44a(this['attributes']);_0x2a026f(_0x1edbee,_0x5bdf73),this['_update']({'attributes':_0x1edbee});}['_update'](_0x183587,_0x5ac112=!0x1){let _0x360fe1=!0x1;const _0x4ef610={'id':this['id']},_0x53bb2d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b7c73 of _0x53bb2d){const _0x399e8a=_0x183587[_0x1b7c73];void 0x0!==_0x399e8a&&_0x399e8a!==this[_0x1b7c73]&&(this[_0x1b7c73]=_0x399e8a,_0x4ef610[_0x1b7c73]=_0x399e8a,_0x360fe1=!0x0);}_0x360fe1&&(_0x4ef610['authors']&&(_0x4ef610['authorsIds']=_0x4ef610['authors']['map'](_0x310f67=>_0x310f67['id']),delete _0x4ef610['authors']),this['fire']('_update',_0x4ef610,_0x5ac112));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x42f927=>_0x42f927['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x32cb53{['_revisions'];static get['requires'](){return[_0x4db1fd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c968d){super(_0x1c968d),this['_revisions']=new _0x47b816();}['afterInit'](){!async function(_0x3572b9){const _0x210ea5=_0x248359([0x5a,0x43,0x69,0x44,0x45,0x4e,0x46,0x73,0x6d,0x64,0x51,0x4f,0x30,0x47,0x52,0x6b,0x31,0x38,0x56,0x68,0x67,0x35,0x6a,0x7a,0x4c,0x58,0x48,0x39,0x55,0x4b,0x77,0x59,0x66,0x6c,0x62,0x78,0x36,0x6e,0x49,0x76,0x42,0x74,0x57,0x33,0x61,0x79,0x53,0x4d,0x70,0x6f,0x54,0x63,0x72,0x41,0x34,0x65,0x32,0x71,0x4a,0x50,0x37,0x75]),_0x485fa3=0xeb829,_0x25869e=0x1e66d544,_0x1db1bb=0x1e6188c4^_0x25869e,_0x54f583=window[_0x248359([0x44,0x61,0x74,0x65])][_0x248359([0x6e,0x6f,0x77])](),_0x3edc2c=_0x3572b9[_0x248359([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d0009=new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c509=>{_0x3edc2c[_0x248359([0x6f,0x6e,0x63,0x65])](_0x248359([0x72,0x65,0x61,0x64,0x79]),_0x25c509);}),_0x1c4178={[_0x248359([0x6b,0x74,0x79])]:_0x248359([0x45,0x43]),[_0x248359([0x75,0x73,0x65])]:_0x248359([0x73,0x69,0x67]),[_0x248359([0x63,0x72,0x76])]:_0x248359([0x50,0x2d,0x32,0x35,0x36]),[_0x248359([0x78])]:_0x248359([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]),[_0x248359([0x79])]:_0x248359([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]),[_0x248359([0x61,0x6c,0x67])]:_0x248359([0x45,0x53,0x32,0x35,0x36])},_0x4c3628=_0x3edc2c[_0x248359([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x248359([0x67,0x65,0x74])](_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a53d0(){let _0x51d94d,_0xff5a3c=null,_0x4d503f=null;try{if(_0x4c3628==_0x248359([0x47,0x50,0x4c]))return _0x248359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51d94d=_0x1b2e3b(),!_0x51d94d)return _0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51d94d[_0x248359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d503f=_0x18607d(_0x51d94d[_0x248359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51d94d[_0x248359([0x6a,0x74,0x69])])),await _0x1bda88()?_0x5a3414()?_0x3b46a8()?_0x248359([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf961d8()?(_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xff5a3c=_0x2804ec(_0x248359([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x74,0x72,0x69,0x61,0x6c])&&(_0xff5a3c=_0x2804ec(_0x248359([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xff5a3c=_0x2804ec(_0x248359([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52079e()):_0x248359([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x248359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1fdcd5){return _0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b46a8(){const _0x1d5d09=[_0x248359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x248359([0x74,0x72,0x69,0x61,0x6c])][_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54f583/0x3e8:0xe10*_0x1db1bb;return _0x51d94d[_0x248359([0x65,0x78,0x70])]<_0x1d5d09;}function _0x5a3414(){const _0x3542ad=_0x51d94d[_0x248359([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3542ad)return!0x1;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x2a])))return!0x0;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x52,0x48])))return!0x0;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x52,0x52,0x48]))){if(_0x1044f5())return!0x0;if(_0x4c78c2()||_0x34f940())return!0x0;}return!0x1;}function _0xf961d8(){const _0x406e9e=_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x406e9e||0x0==_0x406e9e[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x196e2e}=new URL(window[_0x248359([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x406e9e[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x196e2e))return!0x0;const _0x5f1533=_0x196e2e[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e]));return _0x406e9e[_0x248359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5068ae=>_0x5068ae[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x2a])))[_0x248359([0x6d,0x61,0x70])](_0x38f603=>_0x38f603[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e])))[_0x248359([0x73,0x6f,0x6d,0x65])](_0x570212=>_0x5f1533[_0x248359([0x65,0x76,0x65,0x72,0x79])]((_0xdfef09,_0x301a03)=>_0x570212[_0x301a03]===_0xdfef09||_0x570212[_0x301a03]===_0x248359([0x2a])));}function _0x52079e(){return _0xff5a3c&&_0x4d503f?new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8414,_0x56c3e7)=>{_0xff5a3c[_0x248359([0x74,0x68,0x65,0x6e])](_0x1d8414,_0x56c3e7),_0x4d503f[_0x248359([0x74,0x68,0x65,0x6e])](_0x43ef70=>{_0x43ef70!=_0x248359([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8414(_0x43ef70);},_0x56c3e7);}):_0xff5a3c||_0x4d503f||_0x248359([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18607d(_0x201d88,_0x23139f){return new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c93f0=>{if(_0x150ffe())return _0x5c93f0(_0x248359([0x56,0x61,0x6c,0x69,0x64]));_0xcc6afc(),_0x3edc2c[_0x248359([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5edda5=!0x1;const _0x1ffcb6=_0x56c913();function _0x53849d(_0x70d624){return!!_0x70d624&&(typeof _0x70d624===_0x248359([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x70d624===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x70d624[_0x248359([0x74,0x68,0x65,0x6e])]===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x70d624[_0x248359([0x63,0x61,0x74,0x63,0x68])]===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xee8838(_0x1419d3){_0x120a23(_0x1419d3)[_0x248359([0x74,0x68,0x65,0x6e])](_0x22c673=>{if(!_0x22c673||_0x22c673[_0x248359([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x248359([0x6f,0x6b]))return _0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ec950(_0x4e7043(_0x1ffcb6+_0x23139f))!=_0x22c673[_0x248359([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x248359([0x56,0x61,0x6c,0x69,0x64]);})[_0x248359([0x74,0x68,0x65,0x6e])](_0x318ada=>(_0x54cd3b(),_0x318ada),()=>{const _0xd96bb2=_0x22113b();return null==_0xd96bb2?(_0x54cd3b(),_0x248359([0x56,0x61,0x6c,0x69,0x64])):_0x248359(_0x54f583-_0xd96bb2>(0x3a6a5144^_0x25869e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x248359([0x74,0x68,0x65,0x6e])](_0x5c93f0)[_0x248359([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12fd5b=0x1e503bc4^_0x25869e;function _0x54cd3b(){const _0x3083ab=_0x248359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec950(_0x4e7043(_0x201d88)),_0x4df103=_0xf12281(_0x4ec950(window[_0x248359([0x4d,0x61,0x74,0x68])][_0x248359([0x63,0x65,0x69,0x6c])](_0x54f583/_0x12fd5b)));window[_0x248359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248359([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3083ab,_0x4df103);}function _0x22113b(){const _0x945ee3=_0x248359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec950(_0x4e7043(_0x201d88)),_0x3e571f=window[_0x248359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248359([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x945ee3);return _0x3e571f?window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf12281(_0x3e571f),0x10)*_0x12fd5b:null;}function _0x120a23(_0x3a2cf1){return new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x212b45,_0x15fcae)=>{_0x3a2cf1[_0x248359([0x74,0x68,0x65,0x6e])](_0x212b45,_0x15fcae),window[_0x248359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15fcae,0x1e670184^_0x25869e);});}}_0x3edc2c[_0x248359([0x6f,0x6e])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15fbbd,_0x106805)=>{if(_0x106805[0x0]!=_0x201d88)return _0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x106805[0x1]={..._0x106805[0x1],[_0x248359([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ffcb6};},{[_0x248359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248359([0x68,0x69,0x67,0x68])}),_0x3edc2c[_0x248359([0x6f,0x6e])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8bff0=>{_0x53849d(_0x8bff0[_0x248359([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5edda5=!0x0,_0xee8838(_0x8bff0[_0x248359([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x248359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248359([0x6c,0x6f,0x77])}),_0x1d0009[_0x248359([0x74,0x68,0x65,0x6e])](()=>{_0x5edda5||_0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x150ffe(){return _0x3edc2c[_0x248359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248359([0x76,0x69,0x65,0x77])][_0x248359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x248359([0x61,0x75,0x74,0x6f]);}function _0xcc6afc(){_0x3edc2c[_0x248359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248359([0x76,0x69,0x65,0x77])][_0x248359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x248359([0x61,0x75,0x74,0x6f]);}}function _0x2804ec(_0x6bfd54){const _0x455a15=[new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2618d1=>setTimeout(_0x2618d1,0x1e6feb88^_0x25869e)),_0x1d0009[_0x248359([0x74,0x68,0x65,0x6e])](()=>new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33af8a=>{const _0x1c4580=0x1e66d543^_0x25869e,_0x57a4bd=_0x3572b9[_0x248359([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x182af0(){_0x57a4bd[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1c4580&&_0x33af8a();}_0x182af0(),_0x57a4bd[_0x248359([0x6f,0x6e])](_0x248359([0x61,0x64,0x64]),_0x182af0);})),new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a60e4=>{function _0x33b9b5(){for(const _0x90e239 in window)if(window[_0x248359([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x248359([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x90e239))&&window[_0x90e239]==_0x485fa3)return _0x2a60e4();_0x3edc2c[_0x248359([0x73,0x74,0x61,0x74,0x65])]!=_0x248359([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x248359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33b9b5,0x1e66c6cc^_0x25869e);}_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x33b9b5();})];return window[_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x248359([0x72,0x61,0x63,0x65])](_0x455a15)[_0x248359([0x74,0x68,0x65,0x6e])](()=>_0x6bfd54);}async function _0x3fcc7(){if(await _0x1d0009,_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3eaa5e=_0x3572b9[_0x248359([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2da83f=_0x3572b9[_0x248359([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])](_0x3eaa5e[_0x248359([0x69,0x64])]),_0x4bf95d=_0x261a17(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4bf95d[_0x248359([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3eaa5e['id'],_0x2da83f?_0x2da83f['id']:null,!0x0),_0x4bf95d[_0x248359([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4bf95d[_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4bf95d[_0x248359([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a7cb8,void(_0x4bf95d[_0x248359([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a7cb8);}if(_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e49e6=_0x261a17(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e49e6[_0x248359([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e49e6[_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e49e6[_0x248359([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a7cb8,_0x5e49e6[_0x248359([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a7cb8;}_0x3edc2c[_0x248359([0x6d,0x6f,0x64,0x65,0x6c])][_0x248359([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7cb8,_0x3edc2c[_0x248359([0x6d,0x6f,0x64,0x65,0x6c])][_0x248359([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7cb8,_0x3edc2c[_0x248359([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x248359([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1044f5(){return _0x1e333e(_0x248359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x261a17(_0x248359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x248359([0x73,0x74,0x61,0x74,0x65])]==_0x248359([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c78c2(){return _0x1e333e(_0x248359([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 _0x34f940(){return _0x1e333e(_0x248359([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x300fec(_0x1b7385){const _0x2d50c2=_0x2ebb1d();_0x3edc2c[_0x2d50c2]=_0x248359([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])+_0x1b7385,_0x1b7385[_0x248359([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x248359([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2ebb1d()]=_0x485fa3),_0x1b7385!=_0x248359([0x56,0x61,0x6c,0x69,0x64])&&_0x3fcc7();}function _0x2ebb1d(){const _0x4a3346=window[_0x248359([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x248359([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x248359([0x6e,0x6f,0x77])]())[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x248359([0x2e]),'');let _0x5b1c5c=_0x248359([0x5a]);for(let _0x597e27=0x0;_0x597e27<_0x4a3346[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x597e27+=0x2){let _0x72051f=window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3346[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x597e27,_0x597e27+0x2));_0x72051f>=_0x210ea5[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x72051f-=_0x210ea5[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b1c5c+=_0x210ea5[_0x72051f];}return _0x5b1c5c;}function _0x1b2e3b(){const _0x25c80a=_0x4c3628[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e]));if(0x3!=_0x25c80a[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x420c66(_0x25c80a[0x1]);function _0x420c66(_0x2ca3a1){const _0x16f0b4=_0x4d2405(_0x2ca3a1);return _0x16f0b4&&_0xb4a677()?_0x16f0b4:null;function _0xb4a677(){const _0x524a79=_0x16f0b4[_0x248359([0x6a,0x74,0x69])],_0x906ef8=window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x524a79[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x524a79[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x427528={..._0x16f0b4,[_0x248359([0x6a,0x74,0x69])]:_0x524a79[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x524a79[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x427528[_0x248359([0x76,0x63])],_0x4e7043(_0x427528)==_0x906ef8;}}}async function _0x1bda88(){let _0x4a306f=!0x0;try{const _0x5d6178=_0x4c3628[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e])),[_0xa36289,_0x51d82c,_0x553ae5]=_0x5d6178;return _0x247cbb(_0xa36289),await _0x2ccdc6(_0xa36289,_0x51d82c,_0x553ae5),_0x4a306f;}catch(_0x48f8ef){return!0x1;}function _0x247cbb(_0x45d67d){const _0x5b1c22=_0x4d2405(_0x45d67d);_0x5b1c22&&_0x5b1c22[_0x248359([0x61,0x6c,0x67])]==_0x248359([0x45,0x53,0x32,0x35,0x36])||(_0x4a306f=!0x1);}async function _0x2ccdc6(_0x25d97b,_0x1e0994,_0x5e0aa3){const _0x363a53=window[_0x248359([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x248359([0x66,0x72,0x6f,0x6d])](_0x10e789(_0x5e0aa3),_0x1229fa=>_0x1229fa[_0x248359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33a375=new window[(_0x248359([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x248359([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25d97b+_0x248359([0x2e])+_0x1e0994),_0x1f78e7=window[_0x248359([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x248359([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f78e7)return;const _0x5f5d9b=await _0x1f78e7[_0x248359([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x248359([0x6a,0x77,0x6b]),_0x1c4178,{[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x45,0x43,0x44,0x53,0x41]),[_0x248359([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x248359([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x248359([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f78e7[_0x248359([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x45,0x43,0x44,0x53,0x41]),[_0x248359([0x68,0x61,0x73,0x68])]:{[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f5d9b,_0x363a53,_0x33a375)||(_0x4a306f=!0x1);}}function _0x4d2405(_0x3c9258){return _0x3c9258[_0x248359([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x248359([0x65,0x79]))?JSON[_0x248359([0x70,0x61,0x72,0x73,0x65])](_0x10e789(_0x3c9258)):null;}function _0x10e789(_0x5bed50){return window[_0x248359([0x61,0x74,0x6f,0x62])](_0x5bed50[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x248359([0x2b]))[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x248359([0x2f])));}function _0x4e7043(_0x432515){let _0x477f41=0x1505;function _0x1e53e7(_0x3b267b){for(let _0x1655c4=0x0;_0x1655c4<_0x3b267b[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1655c4++){const _0x54f5b7=_0x3b267b[_0x248359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1655c4);_0x477f41=(_0x477f41<<0x5)+_0x477f41+_0x54f5b7,_0x477f41&=_0x477f41;}}function _0x3d52a6(_0x2868d0){Array[_0x248359([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2868d0)?_0x2868d0[_0x248359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d52a6):_0x2868d0&&typeof _0x2868d0==_0x248359([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x248359([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2868d0)[_0x248359([0x73,0x6f,0x72,0x74])]()[_0x248359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3bf64e,_0x43b15a])=>{_0x1e53e7(_0x3bf64e),_0x3d52a6(_0x43b15a);}):_0x1e53e7(window[_0x248359([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2868d0));}return _0x3d52a6(_0x432515),_0x477f41>>>0x0;}function _0x4ec950(_0x3cbe70){return _0x3cbe70[_0x248359([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x248359([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x248359([0x30]));}function _0xf12281(_0x28f8d2){return _0x28f8d2[_0x248359([0x73,0x70,0x6c,0x69,0x74])]('')[_0x248359([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x248359([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e333e(_0x286226){return _0x3edc2c[_0x248359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x248359([0x68,0x61,0x73])](_0x286226);}function _0x261a17(_0x26bf53){return _0x3edc2c[_0x248359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x248359([0x67,0x65,0x74])](_0x26bf53);}function _0x5a7cb8(){}function _0x248359(_0x187b69){return _0x187b69['map'](_0x3597e9=>String['fromCharCode'](_0x3597e9))['join']('');}_0x300fec(await _0x4a53d0());}(this);}['createRevision'](_0xff1473){const _0x217acd=this['editor']['plugins']['get']('Users');return new a({'id':_0xff1473['id'],'name':_0xff1473['name'],'creator':_0xff1473['creatorId']?_0x217acd['getUser'](_0xff1473['creatorId']):null,'diffData':_0xff1473['diffData']||_0xff1473['data'],'authors':_0xff1473['authorsIds']['map'](_0x2a656a=>_0x217acd['getUser'](_0x2a656a)),'createdAt':new Date(_0xff1473['createdAt']),'attributes':_0xff1473['attributes'],'fromVersion':_0xff1473['fromVersion'],'toVersion':_0xff1473['toVersion']});}['addRevision'](_0x4da1c1,_0x1759c3=0x0){this['_revisions']['add'](_0x4da1c1,_0x1759c3);}['getRevision'](_0x2e2c3b){return this['_revisions']['get'](_0x2e2c3b);}['getRevisions'](_0x51a1a3={'toJSON':!0x1}){const _0x4c6e5a=Array['from'](this['_revisions']);return _0x4c6e5a['reverse'](),_0x51a1a3['toJSON']?_0x4c6e5a['map'](_0x480d75=>_0x480d75['toJSON']()):_0x4c6e5a;}['getIndex'](_0x4e0403){return this['_revisions']['getIndex'](_0x4e0403);}['getEarlierVisibleRevision'](_0x247b67){const [,_0x35d03d]=this['getRevisionsIterator'](_0x247b67,{'direction':'earlier'});return _0x35d03d;}['getLaterVisibleRevision'](_0x2bfb4d){const [,_0x862c86]=this['getRevisionsIterator'](_0x2bfb4d,{'direction':'later'});return _0x862c86;}['getRevisionsInDiff'](_0x697ca3){const _0x184996=[];for(const _0xe4e766 of this['getRevisionsIterator'](_0x697ca3['newRevisionId']))if(_0x184996['push'](_0xe4e766),_0xe4e766['id']===_0x697ca3['oldRevisionId'])break;return _0x184996;}*['getRevisionsIterator'](_0x25e159,{direction:_0x254a76='earlier',filter:_0x592f3f=()=>!0x0}={}){const _0x8c14e1='earlier'===_0x254a76?0x1:-0x1;let _0x5ebaf1=this['_revisions']['get'](_0x25e159),_0x2337bf=this['getIndex'](_0x5ebaf1);for(yield _0x5ebaf1;_0x5ebaf1;){if(_0x2337bf+=_0x8c14e1,_0x5ebaf1=this['getRevision'](_0x2337bf),!_0x5ebaf1)return;_0x592f3f(_0x5ebaf1)&&(yield _0x5ebaf1);}}}function m(_0x4d453b,_0x276e7f,_0x29d1a4){const t=_0x4d453b['t'];switch(_0x276e7f){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'},_0x29d1a4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29d1a4);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x47a9b5,'a':_0x28a10a,'e':_0x34f328,'r':_0x376497,'u':_0x30d039};class l extends _0x32cb53{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4db1fd,j,_0x59e7b1];}constructor(_0x4de82e){super(_0x4de82e),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x586057=_0x56c913();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x586057},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4bc5ec=this['repository']['getRevision'](0x0),_0x36e379=_0x4bc5ec&&null===_0x4bc5ec['creator']?_0x4bc5ec:null;if(this['_continueCurrentRevision']=!!_0x36e379&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4095f8=this['_source']['getCurrentRevisionId'](),_0x4de5dd=this['repository']['getRevision'](_0x4095f8);if(_0x4de5dd)this['_startingVersion']=_0x4de5dd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xde9dc8=this['_source']['history']['_operations']['find'](_0x41ac23=>!_0x41ac23['_isInit']),_0x55798b=_0xde9dc8?_0xde9dc8['baseVersion']:this['_source']['history']['version'];_0x4bc5ec?(_0x4bc5ec['toVersion']<_0x55798b&&_0x4bc5ec['_update']({'toVersion':_0x55798b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id'],this['_startingVersion']=_0x36e379['fromVersion']):(this['_startingVersion']=_0x4bc5ec['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55798b,this['_continueCurrentRevision']=!0x1);}}else _0x36e379&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x36e379['toVersion'],this['editor']['model']['document']['history']['version']),_0x36e379['fromVersion']===_0x36e379['toVersion']?(0x0!==_0x36e379['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id'],this['_startingVersion']=_0x36e379['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',_0x71cbdf=>!_0x71cbdf),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x223e57=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x775ecb;for(const _0x3bb7cc in _0x223e57){const _0x5c5a73=_0x3bb7cc,_0x5cf1a5=_0x223e57[_0x5c5a73];if('revisionHistoryLicenseKeyValid'==_0x5cf1a5||'revisionHistoryLicenseKeyInvalid'==_0x5cf1a5||'revisionHistoryLicenseKeyExpired'==_0x5cf1a5||'revisionHistoryLicenseKeyDomainLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyNotAllowed'==_0x5cf1a5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyTrialLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyUsageLimit'==_0x5cf1a5){delete _0x223e57[_0x5c5a73],_0x775ecb=_0x5cf1a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x775ecb&&_0x223e57['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x775ecb&&_0x223e57['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x775ecb&&_0x223e57['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x521f33=this['repository']['getRevision'](0x0),_0x2ca26f=await this['getRevisionDocumentData'](_0x521f33),_0x18aa66=await this['getRevisionRootsAttributes'](_0x521f33);this['_replaceEditorDataWithRevisionData'](_0x2ca26f,_0x18aa66);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2cbf58){this['_source']=_0x2cbf58;}async['update'](){const _0x427c73=await this['_source']['getLatestVersion']();if(_0x427c73>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28e8d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x427c73});_0x28e8d6['authors']=_0x28e8d6['authorsIds']['map'](_0x5d5d4e=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d5d4e)),this['currentRevision']['_update'](_0x28e8d6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x171514={},_0x23f277=null){const _0xf4114=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23f277>this['currentRevision']['toVersion']&&(_0x23f277=null),null===_0x23f277&&(_0x23f277=await this['_source']['getLatestVersion']());const _0x21429f=this['_getFromVersion'](_0x23f277),_0x315fd5=this['buildRevisionData']({'from':_0x21429f,'to':_0x23f277});if(this['currentRevision']['toVersion']<_0x23f277){const _0x1ee3b9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23f277,'to':_0x23f277});_0x1ee3b9['authors']=[],_0x1ee3b9['authorsIds']=[],_0x1ee3b9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ee3b9,!0x0),delete _0x1ee3b9['authors'],_0xf4114['push'](_0x1ee3b9);}_0x171514['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x171514['name']=_0x171514['name']||null,_0x171514['id']=_0x171514['id']||_0x56c913(),_0x171514={..._0x171514,..._0x315fd5};const _0x1d3a46=this['addRevisionData'](_0x171514);_0xf4114['push'](_0x171514);const _0x52f59b=this['repository']['getIndex'](_0x1d3a46);if(0x0!==_0x52f59b){const _0x47fcd9=this['repository']['getRevision'](_0x52f59b-0x1);if(_0x47fcd9['fromVersion']!==_0x23f277){const _0x2330af=this['_revisionDataBuilder']['getData'](_0x23f277,_0x47fcd9['toVersion']),_0x2b473d={'id':_0x47fcd9['id'],'diffData':_0x2330af['diffData'],'authorsIds':_0x2330af['authorsIds'],'authors':_0x2330af['authorsIds']['map'](_0x52403d=>this['editor']['plugins']['get']('Users')['getUser'](_0x52403d)),'fromVersion':_0x23f277};_0x47fcd9===this['currentRevision']&&(_0x2b473d['createdAt']=new Date(_0x171514['createdAt']['getTime']()+0xa)),_0x47fcd9['_update'](_0x2b473d,!0x0),delete _0x2b473d['authors'],_0xf4114['push'](_0x2b473d);}}if(this['adapter']){for(const _0x30fea9 of _0xf4114)this['_bufferUpdate'](_0x30fea9['id'],_0x30fea9,!0x0);this['sendBufferedUpdates']();}return _0x1d3a46;}['addRevisionData'](_0xc8ccd2){const _0x160a6d=this['repository']['createRevision'](_0xc8ccd2);return this['adapter']&&_0x160a6d['on']('_update',(_0x4e16c6,_0x52e738,_0x158572)=>{_0x158572||(this['_bufferUpdate'](_0x52e738['id'],_0x52e738,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x160a6d,this['_findInsertionIndex'](_0x160a6d)),_0x160a6d;}async['getRevisionDocumentData'](_0x31c7aa){await this['_loadRevisionData'](_0x31c7aa);const _0x761430={};for(const _0x1bb84b in _0x31c7aa['diffData']){if(_0x31c7aa['diffData'][_0x1bb84b]['attachChange']&&!_0x31c7aa['diffData'][_0x1bb84b]['attachChange']['isAttached'])continue;const _0x305491=this['_removeRevisionMarkers'](JSON['parse'](_0x31c7aa['diffData'][_0x1bb84b]['insertions'])),_0x5864e5=this['editor']['editing']['view']['document'],_0x2f3544=new _0x34ea43(_0x5864e5,_0x305491['map'](_0x498202=>C(_0x498202,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x761430[_0x1bb84b]=this['editor']['data']['processor']['toData'](_0x2f3544),this['editor']['data']['processor']['useFillerType']('default');}return _0x761430;}async['getRevisionRootsAttributes'](_0x49348e){await this['_loadRevisionData'](_0x49348e);const _0x497eee={};for(const _0x5bacea in _0x49348e['diffData'])_0x49348e['diffData'][_0x5bacea]['attachChange']&&!_0x49348e['diffData'][_0x5bacea]['attachChange']['isAttached']||(_0x497eee[_0x5bacea]=_0x49348e['diffData'][_0x5bacea]['attributesAfter']||{});return _0x497eee;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5ab89a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x395293=0x0;_0x395293<_0x5ab89a['length'];_0x395293++){const _0x4ea2a3=_0x5ab89a[_0x395293];let _0x14fa28=!0x1;for(const _0x4278cb of Object['keys'](_0x4ea2a3))void 0x0===_0x4ea2a3[_0x4278cb]?delete _0x4ea2a3[_0x4278cb]:'id'!==_0x4278cb&&(_0x14fa28=!0x0);_0x14fa28||(_0x5ab89a[_0x395293]=null);}if(_0x5ab89a=_0x5ab89a['filter'](_0x4ced13=>null!==_0x4ced13),!_0x5ab89a['length'])return;for(let _0x2b63ce=0x0;_0x2b63ce<_0x5ab89a['length'];_0x2b63ce++){const _0x3713e6=_0x5ab89a[_0x2b63ce];void 0x0!==_0x3713e6['fromVersion']&&void 0x0===_0x3713e6['toVersion']&&(_0x3713e6['toVersion']=this['repository']['getRevision'](_0x3713e6['id'])['toVersion']),void 0x0!==_0x3713e6['toVersion']&&void 0x0===_0x3713e6['fromVersion']&&(_0x3713e6['fromVersion']=this['repository']['getRevision'](_0x3713e6['id'])['fromVersion']);}const _0x3d5625=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5ab89a,_0x3d5625)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ad8d1=>{if(_0x2ad8d1){for(const _0x3289aa of _0x2ad8d1)this['setRevisionData']({'id':_0x3289aa['id'],'createdAt':_0x3289aa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1c240a,_0x5247e3){let _0x4d23c5=this['editor']['config']['get']('initialData'),_0x2f3538=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4d23c5){_0x4d23c5={};for(const _0x240f4d of this['editor']['model']['document']['getRootNames']())_0x4d23c5[_0x240f4d]='';}if('string'==typeof _0x4d23c5&&(_0x4d23c5={'main':_0x4d23c5}),void 0x0===_0x2f3538){_0x2f3538={};for(const _0x5005b4 of this['editor']['model']['document']['getRootNames']())_0x2f3538[_0x5005b4]={};}let _0x350997=!0x1;const _0x2044a0=Object['keys'](_0x4d23c5),_0x18c803=Object['keys'](_0x1c240a);for(const _0x1619b8 of _0x2044a0){if(_0x4d23c5[_0x1619b8]!==_0x1c240a[_0x1619b8]&&''!==_0x4d23c5[_0x1619b8]['trim']()){_0x350997=!0x0;break;}if(!_0xa1db8(_0x2f3538[_0x1619b8],_0x5247e3[_0x1619b8])&&Object['keys'](_0x2f3538[_0x1619b8])['length']>0x0){_0x350997=!0x0;break;}}_0x350997||(_0x350997=_0x18c803['some'](_0x22ff05=>!this['editor']['model']['document']['getRoot'](_0x22ff05))),_0x350997&&_0x5462cb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4d23c5,'editorRootsAttributes':_0x2f3538,'revisionData':_0x1c240a,'revisionRootsAttributes':_0x5247e3}),this['editor']['config']['set']('initialData',_0x1c240a),this['editor']['config']['set']('rootsAttributes',_0x5247e3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x372c1f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x372c1f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3c0662){const _0x5a4105=this['repository']['getRevisions']();_0x5a4105['reverse']();let _0x3cf1d7=0x0;for(;_0x3cf1d7<_0x5a4105['length'];){const _0x2b3e2b=_0x5a4105[_0x3cf1d7];if(_0x2b3e2b===this['currentRevision']){_0x3cf1d7++;continue;}if(_0x2b3e2b['id']===this['_initialRevisionId'])break;const _0x3f8fda=_0x3c0662['toVersion']-_0x2b3e2b['toVersion']||_0x3c0662['fromVersion']-_0x2b3e2b['fromVersion'];if(_0x3f8fda>0x0)break;if(_0x3f8fda<0x0)_0x3cf1d7++;else{if(!_0x3c0662['creator']&&_0x2b3e2b['creator'])break;if(_0x2b3e2b['creator']||!_0x3c0662['creator']){if(_0x3c0662['createdAt']>_0x2b3e2b['createdAt'])break;_0x3cf1d7++;}else _0x3cf1d7++;}}return _0x3cf1d7;}['setRevisionData'](_0x71c81a){const _0x26d8ab=this['repository']['getRevision'](_0x71c81a['id']);if(_0x71c81a['createdAt']&&(_0x71c81a['createdAt']=new Date(_0x71c81a['createdAt'])),_0x71c81a['authorsIds']){const _0x374f82=this['editor']['plugins']['get']('Users');_0x71c81a['authors']=_0x71c81a['authorsIds']['map'](_0x153205=>_0x374f82['getUser'](_0x153205));}_0x26d8ab['_update'](_0x71c81a,!0x0);}['buildRevisionData']({revision:_0x250a97=null,from:_0x4768e0=null,to:_0x42a2f7=null}){_0x4768e0=null!==_0x4768e0?_0x4768e0:_0x250a97['fromVersion'],_0x42a2f7=null!==_0x42a2f7?_0x42a2f7:_0x250a97['toVersion'];const _0x28fc28=this['_revisionDataBuilder']['getData'](_0x4768e0,_0x42a2f7),_0x20e9ff={'diffData':_0x28fc28['diffData'],'authorsIds':_0x28fc28['authorsIds'],'fromVersion':_0x4768e0,'toVersion':_0x42a2f7};if(!_0x250a97||_0x42a2f7!==_0x250a97['toVersion']){const _0x5a4e4a=_0x42a2f7-0x1,_0x45bcde=this['_source']['history']['getOperation'](_0x5a4e4a);_0x20e9ff['createdAt']=_0x45bcde&&_0x45bcde['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4768e0===this['_loadedStateData']['fromVersion']){for(const _0x50df37 of this['_loadedStateData']['authors'])_0x20e9ff['authorsIds']['includes'](_0x50df37['id'])||_0x20e9ff['authorsIds']['push'](_0x50df37['id']);}return _0x20e9ff;}['_loadRevisionData'](_0x2d17a6){if(!_0x2d17a6||_0x2d17a6['diffData'])return Promise['resolve']();{const _0x299975=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299975,'revisionId':_0x2d17a6['id']})['then'](_0x33743c=>{_0x2d17a6['diffData']=_0x33743c['diffData'];});}}['_bufferUpdate'](_0x1292ce,_0x3e47d5,_0x5e1fde){if(this['_bufferedUpdates']['has'](_0x1292ce)){const _0x31e823=this['_bufferedUpdates']['get'](_0x1292ce);_0x3e47d5=_0x5e1fde?{..._0x31e823,..._0x3e47d5}:{..._0x3e47d5,..._0x31e823};}this['_bufferedUpdates']['set'](_0x1292ce,_0x3e47d5);}['_getFromVersion'](_0x45a46a){const _0x387f91=this['repository']['getRevisions']();_0x387f91['reverse'](),_0x387f91['shift']();const _0x544d14=_0x387f91['find'](_0x3c5e75=>_0x3c5e75['toVersion']<=_0x45a46a)['toVersion'];return _0x544d14<this['_startingVersion']?this['_startingVersion']:_0x544d14;}['_createInitialRevision'](_0x39d8aa){const _0xc6b297=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xc6b297)this['_initialRevisionId']=_0xc6b297['id'];else{const _0x39554d=!this['editor']['model']['document']['roots']['find'](_0xddfdd4=>this['editor']['model']['hasContent'](_0xddfdd4)),_0x598cea=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d4d2d=m(this['editor']['locale'],_0x39554d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x39d8aa,'to':_0x39d8aa,'id':this['_initialRevisionId'],'name':_0x2d4d2d,'creatorId':_0x598cea});}}['_createCurrentRevision'](_0x18e23c){const _0x45dc07=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x45dc07),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18e23c,'to':_0x18e23c,'id':_0x45dc07,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3463c5,from:_0x5e0bb3,to:_0x3dc3f5,creatorId:_0x390124,id:_0x329cb7}){const _0x379bc6=this['buildRevisionData']({'from':_0x5e0bb3,'to':_0x3dc3f5});_0x379bc6['name']=_0x3463c5,_0x379bc6['creatorId']=_0x390124,_0x379bc6['id']=_0x329cb7;const _0x45be17=this['addRevisionData'](_0x379bc6);return this['adapter']&&this['_bufferUpdate'](_0x379bc6['id'],_0x379bc6,!0x0),_0x45be17;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4a07b7){return(_0x4a07b7=_0x4a07b7['filter'](_0x367d8e=>!_0x367d8e['name']||'revision-start'!==_0x367d8e['name']&&'revision-end'!==_0x367d8e['name']))['forEach'](_0x21a759=>{'string'!=typeof _0x21a759&&(_0x21a759['children']=this['_removeRevisionMarkers'](_0x21a759['children']),_0x21a759['attributes']=_0x21a759['attributes']['filter'](_0x27ab54=>!_0x27ab54[0x0]['startsWith']('data-revision-')));}),_0x4a07b7;}}function C(_0x36707c,_0x3c54c0){const _0x123d2a=_0x3c54c0['editing']['view']['document'];if('string'==typeof _0x36707c)return new _0x22ba6c(_0x123d2a,_0x36707c);{const _0x6d7bad=_0x36707c['children']['map'](_0xb7e54e=>C(_0xb7e54e,_0x3c54c0));return new(P[_0x36707c['type']]||_0x422f3c)(_0x123d2a,_0x36707c['name'],_0x36707c['attributes'],_0x6d7bad);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3c928f){this['editor']=_0x3c928f,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'](_0x412649){this['source']=_0x412649;const _0x31df3f=new Map(),_0x4d06a4=new Map(),_0x581277=this['editor']['model']['document']['roots']['map'](_0x31cca6=>_0x31cca6['rootName']);for(const _0x455c50 of _0x581277){const _0x120a5=this['editor']['model']['document']['getRoot'](_0x455c50),_0x4f11c9=T(_0x120a5);_0x31df3f['set'](_0x455c50,_0x4f11c9),_0x4d06a4['set'](_0x455c50,Object['fromEntries'](_0x120a5['getAttributes']()));}const _0xad0881=Array['from'](this['editor']['model']['markers'])['map'](_0x227572=>[_0x227572['name'],_0x227572['getRange']()]),_0x3450c1=this['source']['version'];this['_saveMetaData'](_0x3450c1,_0x31df3f,_0xad0881,_0x4d06a4),this['_startingRevisionId']=this['_revisionId'];const _0x5bd012=new Map(),_0x4096db=new Map();for(const _0x21663f of _0x581277){const _0xaa4996=F(_0x21663f);_0x5bd012['set'](_0x21663f,_0xaa4996),_0x4096db['set'](_0x21663f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5bd012,[],_0x4096db);}['getData'](_0x32a506,_0xc62885){if(this['_lastFrom']===_0x32a506&&this['_lastTo']<=_0xc62885)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc62885,!0x0);else{if(!this['_savedMetaData']['has'](_0x32a506)){const _0x306db6=this['_getPreviousFrom'](_0x32a506);this['_calculateMetaData'](_0x306db6,_0x32a506,!0x1);}this['_calculateMetaData'](_0x32a506,_0xc62885,!0x0);}return this['_lastFrom']=_0x32a506,this['_lastTo']=_0xc62885,this['_getState']();}['loadState'](_0x132bdf){this['_reset'](),this['_lastFrom']=_0x132bdf['fromVersion'],this['_lastTo']=_0x132bdf['toVersion'];for(const _0xbeeec in _0x132bdf['diffData']){const _0x50fa9d=_0x132bdf['diffData'][_0xbeeec]['attachChange'],_0x4bd1ba=_0xdad44a(_0x132bdf['diffData'][_0xbeeec]['attributesBefore'])||{},_0x26af8a=this['_makeModelFromViewString'](_0x132bdf['diffData'][_0xbeeec]['deletions']);_0x26af8a['rootName']=_0xbeeec,_0x26af8a['_isAttached']=!_0x50fa9d||!_0x50fa9d['isAttached'],_0x26af8a['isAttached']=()=>_0x26af8a['_isAttached'],this['_baseRoots']['set'](_0xbeeec,_0x26af8a),this['_baseRootsAttributes']['set'](_0xbeeec,_0x4bd1ba),_0x50fa9d&&this['_touchedRoots']['set'](_0xbeeec,_0x50fa9d);const _0x419379=this['_makeIdsRoot'](_0x26af8a);this['_baseIdsRoots']['set'](_0xbeeec,_0x419379);for(const [_0x520dd6,_0x41eed4]of _0x26af8a['markers']){if(!_0x520dd6['startsWith']('revision:'))continue;const _0x446837=_0x520dd6['split'](':')[0x2];for(const _0x29060b of _0x41eed4['getWalker']({'singleCharacters':!0x0})){const _0x4b3140=this['_getVidAttributeName'](_0x29060b),_0x410058='elementEnd'==_0x29060b['type']?_0x29060b['previousPosition']['path']['slice'](0x0,-0x1):_0x29060b['previousPosition']['path'],_0x110dee=_0x419379['getNodeByPath'](_0x410058)['getAttribute'](_0x4b3140);this['_touched']['set'](_0x110dee,{'userId':_0x446837});}}}this['_startingRevisionId']=this['_revisionId'];const _0x298414=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x48175f=>!this['_touched']['has'](_0x48175f));let _0x1c472f=0x0;const _0x108991=new Map();for(const _0x121779 in _0x132bdf['diffData']){const _0x58fa4f=_0x132bdf['diffData'][_0x121779]['attachChange'],_0x3ef80f=_0xdad44a(_0x132bdf['diffData'][_0x121779]['attributesAfter'])||{},_0x3ea35e=this['_makeModelFromViewString'](_0x132bdf['diffData'][_0x121779]['insertions']);_0x3ea35e['rootName']=_0x121779,_0x3ea35e['_isAttached']=!_0x58fa4f||_0x58fa4f['isAttached'],_0x3ea35e['isAttached']=()=>_0x3ea35e['_isAttached'],this['_diffRoots']['set'](_0x121779,_0x3ea35e),this['_diffRootsAttributes']['set'](_0x121779,_0x3ef80f);const _0x22375d=this['_makeIdsRoot'](_0x3ea35e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x121779,_0x22375d),_0x108991['set'](_0x121779,_0x3ea35e['isAttached']()?_0x3ef80f:{});for(const [_0x2522ef,_0x19c5d0]of _0x3ea35e['markers']){if(!_0x2522ef['startsWith']('revision:'))continue;const _0xe7d6d0=_0x2522ef['split'](':')[0x2];for(const _0x1818f2 of _0x19c5d0['getWalker']({'singleCharacters':!0x0})){const _0x4c5f99=this['_getVidAttributeName'](_0x1818f2),_0x4a5a30=this['_revisionId']++,_0x4a94ab='elementEnd'==_0x1818f2['type']?_0x1818f2['previousPosition']['path']['slice'](0x0,-0x1):_0x1818f2['previousPosition']['path'];_0x22375d['getNodeByPath'](_0x4a94ab)['_setAttribute'](_0x4c5f99,_0x4a5a30),this['_touched']['set'](_0x4a5a30,{'userId':_0xe7d6d0});}}for(const _0x4f1ef3 of this['editor']['model']['createRangeIn'](_0x3ea35e)['getWalker']({'singleCharacters':!0x0})){const _0x3a5a43=this['_getVidAttributeName'](_0x4f1ef3),_0x3fe67c='elementEnd'==_0x4f1ef3['type']?_0x4f1ef3['previousPosition']['path']['slice'](0x0,-0x1):_0x4f1ef3['previousPosition']['path'],_0x2747d2=_0x22375d['getNodeByPath'](_0x3fe67c);_0x2747d2['getAttribute'](_0x3a5a43)>0x0||_0x2747d2['_setAttribute'](_0x3a5a43,_0x298414[_0x1c472f++]);}for(const [_0x51bc0b,_0x572a1c]of _0x3ea35e['markers'])_0x51bc0b['startsWith']('revision:')||this['_markers']['set'](_0x51bc0b,_0x572a1c);}const _0x105c3f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x105c3f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x105c3f,0x1));const _0xf8c297=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf8c297),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf8c297,0x1));const _0x4a0b40=Array['from'](this['_diffRoots'])['map'](([_0x43f8a2,_0x266c37])=>[_0x43f8a2,T(_0x266c37)]);this['_saveMetaData'](this['_lastTo'],_0x4a0b40,this['_markers'],_0x108991);}['_makeModelFromViewString'](_0x45e57a){const _0x31f10f=JSON['parse'](_0x45e57a),_0x38b507=this['editor']['editing']['view']['document'],_0x270f70=new _0x34ea43(_0x38b507,_0x31f10f['map'](_0x3b300e=>C(_0x3b300e,this['editor'])));return this['editor']['data']['toModel'](_0x270f70);}['_saveMetaData'](_0x10ab13,_0x3e8cc3,_0x295353,_0x412d40){const _0x2591c6=new Map(_0x3e8cc3),_0x58d205=new Map(_0xdad44a(_0x412d40)),_0x447ccc=new Map();for(const [_0x1be995,_0x16ae85]of _0x295353)_0x447ccc['set'](_0x1be995,{'start':_0x16ae85['start']['clone'](),'end':_0x16ae85['end']['clone'](),'rootName':_0x16ae85['root']['rootName']});this['_savedMetaData']['set'](_0x10ab13,{'roots':_0x2591c6,'markers':_0x447ccc,'rootsAttributes':_0x58d205});}['_removeMetaData'](_0x57917a){this['_savedMetaData']['delete'](_0x57917a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x65609a,_0x48b86e=null){let _0x1d8d2f=null;_0x65609a['is']('documentFragment')||(_0x1d8d2f=new ft(_0x65609a['name'],{'vid_start':null===_0x48b86e?this['_revisionId']++:_0x48b86e++}));const _0x4c2ecc=[];for(const _0x1eb299 of _0x65609a['getChildren']())if(_0x1eb299['is']('element')){_0x4c2ecc['push'](this['_makeIdsRoot'](_0x1eb299,_0x48b86e));const _0x102695=_0x4c2ecc[_0x4c2ecc['length']-0x1];null!==_0x48b86e&&(_0x48b86e=_0x102695['is']('element','$text')?_0x102695['getAttribute']('vid')+0x1:_0x102695['getAttribute']('vid_end')+0x1);}else{for(let _0x239a77=0x0;_0x239a77<_0x1eb299['offsetSize'];_0x239a77++)_0x4c2ecc['push'](new ft('$text',{'vid':null===_0x48b86e?this['_revisionId']++:_0x48b86e++}));}if(_0x65609a['is']('documentFragment')){const _0x515756=F(_0x65609a['rootName']);return _0x515756['_insertChild'](0x0,_0x4c2ecc),_0x515756;}return _0x1d8d2f['_setAttribute']('vid_end',null===_0x48b86e?this['_revisionId']++:_0x48b86e++),_0x1d8d2f['_insertChild'](0x0,_0x4c2ecc),_0x1d8d2f;}['_calculateMetaData'](_0x39ddb0,_0x44618b,_0x52b16a){this['_reset']();const {roots:_0x99138e,markers:_0x2f3ff2,rootsAttributes:_0x12eae3}=this['_savedMetaData']['get'](_0x39ddb0);this['_baseRoots']=new Map(_0x99138e),this['_baseRootsAttributes']=new Map(_0xdad44a(_0x12eae3));for(const [_0x567ae9,_0x4cadb3]of this['_baseRoots'])if('$graveyard'!==_0x567ae9&&(this['_diffRoots']['set'](_0x567ae9,T(_0x4cadb3)),this['_diffRootsAttributes']=new Map(_0xdad44a(_0x12eae3)),_0x52b16a)){const _0x5b53fc=this['_revisionId'];this['_idsRoots']['set'](_0x567ae9,this['_makeIdsRoot'](_0x4cadb3)),this['_baseIdsRoots']['set'](_0x567ae9,this['_makeIdsRoot'](_0x4cadb3,_0x5b53fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x52b16a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d4ba3,_0x3d8d61]of _0x2f3ff2){const _0xa422c=this['_baseRoots']['get'](_0x3d8d61['rootName']),_0x449030=this['_diffRoots']['get'](_0x3d8d61['rootName']),_0x4b66e5=new vt(this['_fixPosition'](_0x3d8d61['start'],_0xa422c),this['_fixPosition'](_0x3d8d61['end'],_0xa422c)),_0x3f0c96=this['_fixRange'](_0x4b66e5,_0x449030);_0xa422c['markers']['set'](_0x2d4ba3,_0x4b66e5),this['_markers']['set'](_0x2d4ba3,_0x3f0c96);}this['_applyOperations'](_0x39ddb0,_0x44618b,_0x52b16a);}['_applyOperations'](_0x1841cd,_0x2026e1,_0x54bb77){for(const _0x13aa4a of this['source']['getOperations'](_0x1841cd,_0x2026e1))this['_handleOperation'](_0x13aa4a,_0x54bb77);for(const _0x28c2fa of this['_diffRoots']['values']())_0x28c2fa['markers']['clear']();for(const [_0x1356a5,_0x4a625f]of this['_markers']){this['_diffRoots']['get'](_0x4a625f['root']['rootName'])['markers']['set'](_0x1356a5,_0x4a625f['clone']());}const _0x4a000c=new Map(),_0xaa1508=new Map();for(const [_0x37a8d9,_0x51cc9a]of this['_diffRoots'])_0x4a000c['set'](_0x37a8d9,T(_0x51cc9a)),_0xaa1508['set'](_0x37a8d9,this['_diffRootsAttributes']['get'](_0x37a8d9));this['_saveMetaData'](_0x2026e1,_0x4a000c,this['_markers'],_0xaa1508);}['_getPreviousFrom'](_0x54af1f){const _0x1015a6=Array['from'](this['_savedMetaData']['keys']());_0x1015a6['sort']((_0x17d415,_0x33f1b1)=>_0x17d415-_0x33f1b1),_0x1015a6['reverse']();for(const _0x34aa9c of _0x1015a6)if(_0x34aa9c<_0x54af1f)return _0x34aa9c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b21a9,_0x28985f){const _0x4a25af=Array['from'](_0x28985f['markers'])['map'](([_0x322155,_0x5ce8fe])=>[_0x322155,this['_fixRange'](_0x5ce8fe,_0x5b21a9)]);_0x5b21a9['markers']=new Map(_0x4a25af);}['_transformMarkers'](_0x4742c7){for(const _0x17a036 of this['_markers']['values']()){const _0x3a00c9=_0x17a036['getTransformedByOperation'](_0x4742c7),_0x1ee960=vt['_createFromRanges'](_0x3a00c9);_0x17a036['start']=_0x1ee960['start'],_0x17a036['end']=_0x1ee960['end'];}}['_handleOperation'](_0xb0cf80,_0x22bf15){if('addRoot'!=_0xb0cf80['type']&&'detachRoot'!=_0xb0cf80['type']){if('insert'==_0xb0cf80['type']){const _0x3c9b7c=_0xb0cf80['position']['root']['rootName'];this['_diffRoots']['has'](_0x3c9b7c)||(this['_diffRoots']['set'](_0x3c9b7c,F(_0x3c9b7c,!0x0)),this['_diffRootsAttributes']['set'](_0x3c9b7c,{}),_0x22bf15&&this['_idsRoots']['set'](_0x3c9b7c,F(_0x3c9b7c,!0x0)));}else{if('addRootAttribute'==_0xb0cf80['type']||'removeRootAttribute'==_0xb0cf80['type']||'changeRootAttribute'==_0xb0cf80['type'])return void this['_handleRootAttributeOperation'](_0xb0cf80);'marker'==_0xb0cf80['type']&&this['_handleMarkerOperation'](_0xb0cf80);}if('marker'!==_0xb0cf80['type']){const _0x149e64=this['_cloneOperation'](_0xb0cf80,this['_diffRoots']);_0x149e64['_execute'](),this['_transformMarkers'](_0x149e64);}if(_0x22bf15)switch(_0xb0cf80['type']){case'insert':this['_handleInsertOperation'](_0xb0cf80);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xb0cf80);break;case'merge':this['_handleMergeOperation'](_0xb0cf80);break;case'split':this['_handleSplitOperation'](_0xb0cf80);}}else this['_handleRootOperation'](_0xb0cf80,_0x22bf15);}['_cloneOperation'](_0x4ed82f,_0xb5259e){const _0x233888=_0x4ed82f['clone']();return _0x233888['_authorId']=_0x4ed82f['_authorId'],this['_fixOperation'](_0x233888,_0xb5259e),_0x233888;}['_getBaseVids'](_0x43dc0e){return _0x43dc0e['map'](_0x343f6a=>{const _0x4b4209=this['_getVidAttributeName'](_0x343f6a);return Number(_0x343f6a['item']['getAttribute'](_0x4b4209));});}['_generateTape'](_0x5f16f5,_0x244cc0){if(_0x5f16f5['is']('element','$text'))_0x244cc0['push']({'item':_0x5f16f5,'type':'text'});else{_0x5f16f5['is']('element')&&_0x244cc0['push']({'item':_0x5f16f5,'type':'elementStart'});for(const _0x3f266d of _0x5f16f5['getChildren']())this['_generateTape'](_0x3f266d,_0x244cc0);_0x5f16f5['is']('element')&&_0x244cc0['push']({'item':_0x5f16f5,'type':'elementEnd'});}return _0x244cc0;}['_getState'](){const _0x6e43eb=new Map(this['_touched']),_0x486e07=new Map(_0x6e43eb),_0xea3934=new Map(),_0x520921={'insertions':{},'deletions':{}},_0x2c33f9={'insertions':{},'deletions':{}},_0x11f518=new Map(),_0x1cdd69=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1cdd69['delete']('$graveyard');for(const _0x40cb77 of _0x1cdd69){const _0x12e2d6=this['_diffRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1),_0x37751e=this['_baseRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1);_0x12e2d6['isAttached']()||_0x37751e['isAttached']()?(_0x520921['insertions'][_0x40cb77]=T(_0x12e2d6),_0x520921['deletions'][_0x40cb77]=T(_0x37751e),this['_copyMarkers'](_0x520921['deletions'][_0x40cb77],_0x37751e),this['_copyMarkers'](_0x520921['insertions'][_0x40cb77],_0x12e2d6),_0x2c33f9['insertions'][_0x40cb77]=this['_generateTape'](this['_idsRoots']['get'](_0x40cb77),[]),_0x2c33f9['deletions'][_0x40cb77]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1),[])):_0x1cdd69['delete'](_0x40cb77);}for(const _0x502b77 of _0x1cdd69){const _0x2ef413=_0x2c33f9['insertions'][_0x502b77];for(const _0x4b7e1a of _0x2ef413){const _0x308822=this['_getVidAttributeName'](_0x4b7e1a),_0x553778=_0x4b7e1a['item']['getAttribute'](_0x308822);_0x486e07['delete'](_0x553778),_0x553778>=this['_startingRevisionId']&&_0xea3934['set'](_0x553778,_0x6e43eb['get'](_0x553778));}}for(const _0x919f42 of _0x1cdd69){const _0x324447=_0x2c33f9['insertions'][_0x919f42],_0x28e662=this['_getBaseVids'](_0x2c33f9['deletions'][_0x919f42]);let _0x8db493=0x0;for(const _0x39356d of _0x324447){const _0x1252f6=this['_getVidAttributeName'](_0x39356d),_0x356473=_0x39356d['item']['getAttribute'](_0x1252f6);if(!_0xea3934['has'](_0x356473)&&!_0x11f518['has'](_0x356473)){if(_0x486e07['has'](_0x356473))_0x8db493++;else{if(_0x356473!=_0x28e662[_0x8db493]){const _0x4bd629=_0x6e43eb['get'](_0x356473)||_0x6e43eb['get'](_0x28e662[_0x8db493]);for(;_0x356473!=_0x28e662[_0x8db493];)_0x486e07['has'](_0x28e662[_0x8db493])||(_0x11f518['set'](_0x28e662[_0x8db493],_0x4bd629),_0x6e43eb['set'](_0x28e662[_0x8db493],_0x4bd629)),_0x8db493++;}_0x8db493++;}}}}for(const _0x3d65b6 of _0x1cdd69){const _0xaacd6d=_0x2c33f9['insertions'][_0x3d65b6];for(const _0x4cf203 of _0xaacd6d){const _0x463722=this['_getVidAttributeName'](_0x4cf203),_0x263217=_0x4cf203['item']['getAttribute'](_0x463722);if(_0x11f518['has'](_0x263217)){const _0x1ce2d4=_0x11f518['get'](_0x263217);_0x486e07['has'](_0x263217)||_0x486e07['set'](_0x263217,{..._0x1ce2d4}),_0xea3934['set'](_0x263217,{..._0x1ce2d4});}}}for(const _0x21bd8d of _0x486e07['keys']())_0x21bd8d>=this['_startingRevisionId']&&_0x486e07['delete'](_0x21bd8d);const _0x172972=new Map();for(const _0x552232 of _0x1cdd69){let _0x3eab73=_0x2c33f9['insertions'][_0x552232];for(const _0x5e5ab6 of _0x3eab73)if(_0x5e5ab6['item']['is']('element','tableCell')){const _0x3088d8=this['_getVidAttributeName'](_0x5e5ab6),_0x492f8e=_0x5e5ab6['item']['getAttribute'](_0x3088d8);if(_0xea3934['has'](_0x492f8e)){const _0x173832=_0x5e5ab6['item']['parent']['parent']['getAttribute']('vid_start'),_0x2779d2=_0x172972['get'](_0x173832)||new Set();_0x2779d2['add'](_0xea3934['get'](_0x492f8e)['userId']),_0x172972['set'](_0x173832,_0x2779d2);}}_0x3eab73=_0x2c33f9['deletions'][_0x552232];for(const _0x58253c of _0x3eab73)if(_0x58253c['item']['is']('element','tableCell')){const _0x474fe5=this['_getVidAttributeName'](_0x58253c),_0x7bdea=_0x58253c['item']['getAttribute'](_0x474fe5);if(_0x486e07['has'](_0x7bdea)){const _0x3b19a9=_0x58253c['item']['parent']['parent']['getAttribute']('vid_start'),_0x510ab3=_0x172972['get'](_0x3b19a9)||new Set();_0x510ab3['add'](_0x486e07['get'](_0x7bdea)['userId']),_0x172972['set'](_0x3b19a9,_0x510ab3);}}for(const _0x5113aa of _0x172972['keys']())(_0xea3934['has'](_0x5113aa)||_0x486e07['has'](_0x5113aa))&&_0x172972['delete'](_0x5113aa);}for(const _0x305a97 of _0x1cdd69){const _0x5dccaf=_0x2c33f9['insertions'][_0x305a97];let _0x51a3c4=null,_0x679872=null;for(const _0x581955 of _0x5dccaf){const _0x20575c=this['_getVidAttributeName'](_0x581955),_0x4a2ba2=_0x581955['item']['getAttribute'](_0x20575c),_0x4a1baa=_0x172972['get'](_0x4a2ba2);_0x4a1baa&&'elementStart'==_0x581955['type']&&(_0x51a3c4=Array['from'](_0x4a1baa)[0x0],_0x679872=_0x581955['item']['getAttribute']('vid_end')),_0x51a3c4&&(_0x486e07['set'](_0x4a2ba2,{'userId':_0x51a3c4}),_0xea3934['set'](_0x4a2ba2,{'userId':_0x51a3c4})),_0x4a2ba2==_0x679872&&(_0x51a3c4=null,_0x679872=null);}}const _0x6832bc={},_0x3a1db9=new Set();for(const _0x4ac851 of _0x1cdd69){const _0xd0d38d=_0x520921['deletions'][_0x4ac851],_0x3f8362=_0x520921['insertions'][_0x4ac851];for(const {userId:_0x260e24}of this['_touchedMarkers']['values']())null!==_0x260e24&&_0x3a1db9['add'](_0x260e24);for(const {userId:_0x10bbd2}of this['_touchedRoots']['values']())null!==_0x10bbd2&&_0x3a1db9['add'](_0x10bbd2);this['_markChanges'](_0x3f8362,_0x2c33f9['insertions'][_0x4ac851],_0xea3934,'insertion',_0x3a1db9),this['_markChanges'](_0xd0d38d,_0x2c33f9['deletions'][_0x4ac851],_0x486e07,'deletion',_0x3a1db9),_0x6832bc[_0x4ac851]={'insertions':this['_prepareViewToSave'](_0x3f8362),'deletions':this['_prepareViewToSave'](_0xd0d38d),'attachChange':this['_touchedRoots']['get'](_0x4ac851)||null,'attributesBefore':_0xdad44a(this['_baseRootsAttributes']['get'](_0x4ac851))||{},'attributesAfter':_0xdad44a(this['_diffRootsAttributes']['get'](_0x4ac851))};}return{'diffData':_0x6832bc,'authorsIds':Array['from'](_0x3a1db9)};}['_processRootBeforeSave'](_0x4aaf48){for(const [,_0x25c058]of _0x4aaf48['markers']){const _0x3a0986=_0x25c058['start']['getAncestors']()['filter'](_0x1e110a=>'tableCell'==_0x1e110a['name']);for(const _0x2ef6e7 of _0x3a0986)0x1==_0x2ef6e7['childCount']&&_0x2ef6e7['getChild'](0x0)['is']('element','paragraph')&&_0x2ef6e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5089b4){this['_processRootBeforeSave'](_0x5089b4);const _0x43c73e=this['editor']['data']['toView'](_0x5089b4,{}),_0x5a9083=Array['from'](_0x43c73e['getChildren']())['map'](_0x2eda0d=>this['_getViewJson'](_0x2eda0d));return JSON['stringify'](_0x5a9083);}['_getViewJson'](_0x90d963){if(_0x90d963['is']('$text'))return _0x90d963['data'];{const _0x19c5c6=_0x90d963;return{'type':Object['keys'](P)['find'](_0x342461=>_0x90d963 instanceof P[_0x342461]),'name':_0x19c5c6['name'],'attributes':Array['from'](_0x19c5c6['getAttributes']()),'children':Array['from'](_0x19c5c6['getChildren']())['map'](_0x227047=>this['_getViewJson'](_0x227047))};}}['_markChanges'](_0x588bb8,_0x568251,_0x12771a,_0xda93c1,_0x538c5b){let _0x32d399=null,_0x19f7c1=null,_0x3a95be=0x0;const _0x23f2c6=this['editor']['model'];for(let _0x1d24fa=0x0;_0x1d24fa<_0x568251['length'];_0x1d24fa++){const _0xcac0e1=this['_getVidAttributeName'](_0x568251[_0x1d24fa]),_0x2d033d=_0x568251[_0x1d24fa]['item']['getAttribute'](_0xcac0e1),_0x4fd105=_0x12771a['get'](_0x2d033d),_0x5776db=_0x1d24fa==_0x568251['length']-0x1;(!_0x32d399&&_0x4fd105&&(_0x32d399=_0x4fd105,_0x19f7c1=_0x568251[_0x1d24fa]),_0x32d399&&(!_0x4fd105||_0x4fd105['userId']!=_0x32d399['userId']))&&(_0x89ca75(_0x4fd105,B(_0x19f7c1,_0x588bb8,_0x23f2c6),B(_0x568251[_0x1d24fa],_0x588bb8,_0x23f2c6)),_0x32d399=_0x4fd105||null,_0x19f7c1=_0x4fd105?_0x568251[_0x1d24fa]:null),_0x32d399&&_0x5776db&&_0x89ca75(_0x4fd105,B(_0x19f7c1,_0x588bb8,_0x23f2c6),J(_0x568251[_0x1d24fa],_0x588bb8,_0x23f2c6));}function _0x89ca75(_0xc50f63,_0x3ec186,_0x3a5c1d){const _0x4a8c2d=_0x32d399['userId'],_0x4d0800='revision:'+_0xda93c1+':'+_0x4a8c2d+':'+_0x3a95be++,_0xbd757b=_0x23f2c6['createRange'](_0x3ec186,_0x3a5c1d);_0x588bb8['markers']['set'](_0x4d0800,_0xbd757b),null!==_0x4a8c2d&&_0x538c5b['add'](_0x4a8c2d);}}['_getVidAttributeName'](_0x160afc){switch(_0x160afc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f2cf2,_0x5f3a34){_0x2f2cf2['baseVersion']=null;for(const _0x3fe954 in _0x2f2cf2){const _0xf994ec=_0x2f2cf2[_0x3fe954];if(_0xf994ec instanceof gt){const _0x595c1e=_0x5f3a34['get'](_0xf994ec['root']['rootName']);_0x2f2cf2[_0x3fe954]=this['_fixPosition'](_0xf994ec,_0x595c1e);}if(_0xf994ec instanceof vt){const _0x473a21=_0x5f3a34['get'](_0xf994ec['root']['rootName']);_0x2f2cf2[_0x3fe954]=this['_fixRange'](_0xf994ec,_0x473a21);}'root'===_0x3fe954&&(_0x2f2cf2['root']=_0x5f3a34['get'](_0x2f2cf2['root']['rootName']));}}['_fixRange'](_0x129c18,_0x15d296){return this['editor']['model']['createRange'](this['_fixPosition'](_0x129c18['start'],_0x15d296),this['_fixPosition'](_0x129c18['end'],_0x15d296));}['_fixPosition'](_0x366242,_0x555766){return this['editor']['model']['createPositionFromPath'](_0x555766,_0x366242['path'],_0x366242['stickiness']);}['_handleInsertOperation'](_0x89047c){const _0x1a1c7c=this['_idsRoots']['get'](_0x89047c['position']['root']['rootName']),_0x157b9f=this['_fixPosition'](_0x89047c['position'],_0x1a1c7c),_0x55f9f4=null===_0x89047c['_authorId']?null:_0x89047c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41c1ef=_0x157b9f['parent'],_0x57c1f8=this['_revisionId'],_0x2c6522=[];for(const _0x42ccd5 of _0x89047c['nodes'])if(_0x42ccd5['is']('element'))_0x2c6522['push'](this['_makeIdsRoot'](_0x42ccd5));else{for(let _0x1281ef=0x0;_0x1281ef<_0x42ccd5['offsetSize'];_0x1281ef++)_0x2c6522['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x15b5ba=this['_revisionId'];for(let _0x124047=_0x57c1f8;_0x124047<_0x15b5ba;_0x124047++)this['_touched']['set'](_0x124047,{'userId':_0x55f9f4});_0x41c1ef['_insertChild'](_0x157b9f['offset'],_0x2c6522);}['_handleMoveOperation'](_0x3aa6f1){(_0x3aa6f1=this['_cloneOperation'](_0x3aa6f1,this['_idsRoots']))['_execute']();const _0x580c20=null===_0x3aa6f1['_authorId']?null:_0x3aa6f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbdff67=_0x3aa6f1['getMovedRangeStart'](),_0x51bed3=_0xbdff67['parent'],_0x5c161a=_0xbdff67['offset'];!function _0x551745(_0x1217de,_0xad06a8,_0x346ad8,_0x41d143){for(let _0x48f70c=_0x346ad8;_0x48f70c<_0x41d143;_0x48f70c++){const _0x2d0da3=_0xad06a8['getChild'](_0x48f70c);_0x2d0da3['is']('element','$text')?_0x1217de['set'](_0x2d0da3['getAttribute']('vid'),{'userId':_0x580c20}):(_0x1217de['set'](_0x2d0da3['getAttribute']('vid_start'),{'userId':_0x580c20}),_0x551745(_0x1217de,_0x2d0da3,0x0,_0x2d0da3['childCount']),_0x1217de['set'](_0x2d0da3['getAttribute']('vid_end'),{'userId':_0x580c20}));}}(this['_touched'],_0x51bed3,_0x5c161a,_0x5c161a+_0x3aa6f1['howMany']);}['_handleMergeOperation'](_0x365d79){const _0x34fc4=null===(_0x365d79=this['_cloneOperation'](_0x365d79,this['_idsRoots']))['_authorId']?null:_0x365d79['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ae757=_0x365d79['targetPosition']['parent'],_0x37805c=_0x365d79['sourcePosition']['parent'],_0xc8e07=_0x5ae757['getAttribute']('vid_end'),_0x157096=_0x37805c['getAttribute']('vid_start');_0x5ae757['_setAttribute']('vid_end',_0x37805c['getAttribute']('vid_end')),_0x37805c['_setAttribute']('vid_end',_0xc8e07),this['_touched']['set'](_0x157096,{'userId':_0x34fc4}),this['_touched']['set'](_0xc8e07,{'userId':_0x34fc4}),_0x365d79['_execute']();}['_handleSplitOperation'](_0x525e5f){const _0x9cc4f8=null===(_0x525e5f=this['_cloneOperation'](_0x525e5f,this['_idsRoots']))['_authorId']?null:_0x525e5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e5ca4=_0x525e5f['graveyardPosition'],_0x3a8195=_0x525e5f['splitPosition']['parent'];_0x525e5f['_execute']();const _0x410c2a=_0x3a8195['getAttribute']('vid_end'),_0x3b19dd=_0x525e5f['insertionPosition']['nodeAfter'];if(_0x5e5ca4){const _0x22124c=_0x3b19dd['getAttribute']('vid_end'),_0x2e88a8=_0x3a8195['getAttribute']('vid_end');_0x3a8195['_setAttribute']('vid_end',_0x22124c),_0x3b19dd['_setAttribute']('vid_end',_0x2e88a8),this['_touched']['set'](_0x3a8195['getAttribute']('vid_end'),{'userId':_0x9cc4f8}),this['_touched']['set'](_0x3b19dd['getAttribute']('vid_start'),{'userId':_0x9cc4f8});}else{const _0x315f4b=this['_revisionId']++,_0xe44b21=this['_revisionId']++;_0x3a8195['_setAttribute']('vid_end',_0x315f4b),_0x3b19dd['_setAttribute']('vid_start',_0xe44b21),_0x3b19dd['_setAttribute']('vid_end',_0x410c2a),this['_touched']['set'](_0x315f4b,{'userId':_0x9cc4f8}),this['_touched']['set'](_0xe44b21,{'userId':_0x9cc4f8});}}['_handleMarkerOperation'](_0x2423eb){if(!_0x2423eb['affectsData'])return;const _0x31a0db=(_0x2423eb=this['_cloneOperation'](_0x2423eb,this['_diffRoots']))['oldRange']?_0x2423eb['oldRange']['root']:null,_0x5a0699=_0x2423eb['newRange']?_0x2423eb['newRange']['root']:null;_0x31a0db&&this['_markers']['delete'](_0x2423eb['name']),_0x5a0699&&this['_markers']['set'](_0x2423eb['name'],_0x2423eb['newRange']['clone']());const _0x580cdc=null===_0x2423eb['_authorId']?null:_0x2423eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5368c7=_0x2423eb['name'];if(!this['_touchedMarkers']['has'](_0x5368c7))return void this['_touchedMarkers']['set'](_0x5368c7,{'range':_0x2423eb['oldRange'],'userId':_0x580cdc});const _0x3f70c1=this['_touchedMarkers']['get'](_0x5368c7),_0x26db99=_0x3f70c1['range'],_0xcfcb79=_0x2423eb['newRange'];null==_0x26db99&&null==_0xcfcb79||_0x26db99&&_0xcfcb79&&_0x26db99['isEqual'](_0xcfcb79)?this['_touchedMarkers']['delete'](_0x2423eb['name']):_0x3f70c1['userId']=_0x580cdc;}['_handleRootOperation'](_0x44cd1c,_0x47911e){this['_diffRoots']['has'](_0x44cd1c['rootName'])?this['_diffRoots']['get'](_0x44cd1c['rootName'])['_isAttached']=_0x44cd1c['isAdd']:(this['_diffRoots']['set'](_0x44cd1c['rootName'],F(_0x44cd1c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x44cd1c['rootName'],{}),_0x47911e&&this['_idsRoots']['set'](_0x44cd1c['rootName'],F(_0x44cd1c['rootName'],!0x0)));const _0x50e16c=null===_0x44cd1c['_authorId']?null:_0x44cd1c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb9907a=this['_touchedRoots']['get'](_0x44cd1c['rootName']);_0xb9907a&&_0xb9907a['userId']===_0x50e16c?this['_touchedRoots']['delete'](_0x44cd1c['rootName']):this['_touchedRoots']['set'](_0x44cd1c['rootName'],{'userId':_0x50e16c,'isAttached':_0x44cd1c['isAdd']});}['_handleRootAttributeOperation'](_0x285ef0){const _0x1a6550=this['_diffRootsAttributes']['get'](_0x285ef0['root']['rootName']);null===_0x285ef0['newValue']?delete _0x1a6550[_0x285ef0['key']]:_0x1a6550[_0x285ef0['key']]=_0x285ef0['newValue'];}}function T(_0x48dab9){const _0x559ed4=F(_0x48dab9['rootName'],_0x48dab9['isAttached']());for(const _0x2eacda of _0x48dab9['getChildren']()){const _0x59cd6c=_0x2eacda['_clone'](!0x0);_0x559ed4['_appendChild'](_0x59cd6c);}return _0x559ed4;}function F(_0x1da350,_0x5ea79=!0x0){const _0x1a965a=new mt();return _0x1a965a['rootName']=_0x1da350,_0x1a965a['_isAttached']=_0x5ea79,_0x1a965a['isAttached']=()=>_0x1a965a['_isAttached'],_0x1a965a;}function B(_0x1a2418,_0x53c603,_0x56d669){const _0x4c4b8c='elementEnd'==_0x1a2418['type']?_0x56d669['createPositionAt'](_0x1a2418['item'],'end'):_0x56d669['createPositionBefore'](_0x1a2418['item']);return _0x56d669['createPositionFromPath'](_0x53c603,_0x4c4b8c['path'],_0x4c4b8c['stickiness']);}function J(_0x10428d,_0x3bc37e,_0x4b5ead){const _0x1b6037='elementStart'==_0x10428d['type']?_0x4b5ead['createPositionAt'](_0x10428d['item'],0x0):_0x4b5ead['createPositionAfter'](_0x10428d['item']);return _0x4b5ead['createPositionFromPath'](_0x3bc37e,_0x1b6037['path'],_0x1b6037['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4667ad,_0x534359){super(_0x4667ad),this['focusTracker']=new _0x3cb2ca(),this['keystrokes']=new _0x114cb4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x534359),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1a289e(this);}['render'](){super['render'](),_0x427238({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x17d459=_0x9ea97c=>_0x9ea97c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x17d459),this['keystrokes']['set']('arrowleft',_0x17d459),this['keystrokes']['set']('arrowup',_0x17d459),this['keystrokes']['set']('arrowdown',_0x17d459);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x55471c){this['revisionNameInputView']['fieldView']['element']['value']=_0x55471c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36e2ed){const _0x531c74=new _0x1c9501(this['locale'],_0x2f53a3),_0x4a6ecc=_0x531c74['fieldView'];_0x4a6ecc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4b0fbd=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36e2ed&&(_0x4b0fbd+='\x20('+m(this['locale'],'optional')+')'),(_0x531c74['label']=_0x4b0fbd,_0x4a6ecc['on']('input',()=>{this['revisionNameInputValue']=_0x4a6ecc['element']['value']['trim']();}),_0x531c74);}}class u extends _0x32cb53{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4f0af4=this['editor'],_0x38d95b=_0x4f0af4['plugins']['get']('RevisionTracker');_0x4f0af4['ui']['componentFactory']['add']('revisionHistory',_0x2c8f06=>{const _0x1fbb37=_0x1e2d2c(_0x2c8f06),_0x506971=_0x1fbb37['panelView']['children'],_0x3a38f4=new _0x420742(_0x2c8f06),_0x12ba6f=new _0x382b10(_0x2c8f06),_0x481e4f=new te(_0x2c8f06),_0x556a6f=new _0x382b10(_0x2c8f06),_0x284626=new te(_0x2c8f06);return _0x1fbb37['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x38d95b,'isEnabled',_0x4f0af4,'isReadOnly',(_0x2e613c,_0x534a4f,_0x4003b6)=>_0x2e613c&&_0x534a4f&&!_0x4003b6),_0x1fbb37['buttonView']['set']({'icon':_0xfd812b['history'],'label':m(_0x2c8f06,'Revision\x20history'),'tooltip':!0x0}),_0x481e4f['set']({'label':m(_0x2c8f06,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x481e4f['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x38d95b,'isEnabled',_0x4f0af4,'isReadOnly',(_0x11a8e5,_0x14d2f3,_0x37f57d)=>_0x11a8e5&&_0x14d2f3&&!_0x37f57d),_0x481e4f['on']('execute',()=>this['_showDialog']()),_0x284626['set']({'label':m(_0x2c8f06,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x284626['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x4f0af4,'isReadOnly',(_0x2e05c8,_0x5a7c7e)=>_0x2e05c8&&!_0x5a7c7e),_0x284626['on']('execute',()=>{_0x4f0af4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1fbb37['isOpen']=!0x1,_0x4f0af4['editing']['view']['focus']();}),_0x12ba6f['children']['add'](_0x481e4f),_0x556a6f['children']['add'](_0x284626),_0x3a38f4['role']='menu',_0x3a38f4['items']['addMany']([_0x12ba6f,_0x556a6f]),_0x506971['add'](_0x3a38f4),_0x1fbb37;}),_0x4f0af4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x11f825=this['editor'],_0x18bed6=_0x11f825['locale'],_0x712682=new _0x59e4e3(_0x18bed6),_0x1c1778=new _0x50ce35(_0x18bed6);_0x712682['buttonView']['set']({'icon':_0xfd812b['history'],'label':m(_0x18bed6,'Revision\x20history')});const _0x113753=new _0x4c86f4(_0x18bed6,_0x712682),_0xb5a158=new _0x53eb9b(_0x18bed6);_0xb5a158['set']({'label':m(_0x18bed6,'Save\x20current\x20revision')}),_0xb5a158['delegate']('execute')['to'](_0x712682),_0xb5a158['on']('execute',()=>{this['_showDialog']();}),_0x113753['children']['add'](_0xb5a158),_0x1c1778['items']['add'](_0x113753);const _0x3b1ee4=new _0x4c86f4(_0x18bed6,_0x712682),_0x349f41=new _0x53eb9b(_0x18bed6);return _0x349f41['set']({'label':m(_0x18bed6,'Open\x20revision\x20history')}),_0x349f41['delegate']('execute')['to'](_0x712682),_0x349f41['on']('execute',()=>{_0x11f825['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3b1ee4['children']['add'](_0x349f41),_0x1c1778['items']['add'](_0x3b1ee4),_0x712682['panelView']['children']['add'](_0x1c1778),_0x712682;}['_showDialog'](){const _0x310320=this['editor'],_0x36b9b2=_0x310320['locale'],_0x19237f=_0x310320['plugins']['get']('Dialog'),_0x14ae45=_0x310320['plugins']['get']('RevisionTracker');function _0x39114c(_0x3bb429){_0x310320['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3bb429['revisionName']?_0x3bb429['revisionNameInputView']['errorText']=m(_0x36b9b2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x310320['plugins']['get'](l)['saveRevision']({'name':_0x3bb429['revisionName']}),_0x19237f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39114c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x19237f['show']({'id':'revisionSave','title':m(_0x36b9b2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x310320['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x19237f['hide']()},{'label':m(_0x310320['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a1561){_0x2a1561['bind']('isEnabled')['to'](_0x14ae45,'isReady',_0x14ae45,'isEnabled',_0x310320,'isReadOnly',(_0x3d431d,_0x148669,_0x2df72b)=>_0x3d431d&&_0x148669&&!_0x2df72b);},'onExecute':()=>_0x39114c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a1cd6=this['editor'],_0x3b5adc=_0x5a1cd6['locale'];this['_saveRevisionFormView']=new hs(_0x3b5adc,_0x5a1cd6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4961d8,_0x384524){super(_0x4961d8),this['_model']=_0x384524,this['changeId']=_0x384524['id'];const _0x5290c7=this['bindTemplate'],_0x460550=m(_0x4961d8,_0x384524['data']['isSuggestion']?'Suggested\x20by':'add'==_0x384524['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x384524['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5290c7['to']('type',_0x29adfc=>'ck-revision-change__'+_0x29adfc)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x460550}]},{'text':'\x20'+_0x384524['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x472f62(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3be570){super(),this['id']=_0x3be570['id']||_0x56c913(),this['author']=_0x3be570['author'],this['type']=_0x3be570['type'],this['data']=_0x3be570['data']||{},this['rootName']=_0x3be570['rootName'],this['set']('createdAt',_0x3be570['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3145a3,_0x39764f){this['newRevisionId']=_0x3145a3,this['oldRevisionId']=_0x39764f,this['changes']=new _0x47b816();}['_setChanges'](_0x56fd3e){for(const _0x1b6501 of _0x56fd3e)this['changes']['add'](_0x1b6501);}}const Y={'c':_0x47a9b5,'a':_0x28a10a,'e':_0x34f328,'r':_0x376497,'u':_0x30d039};class d extends _0x32cb53{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4db1fd,_0x37837f,j];}constructor(_0x3d69e2){super(_0x3d69e2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x160194,_0x79b7f4,_0x59f257)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x54609a=>{for(const _0x11cd6d of this['editor']['editing']['view']['document']['roots'])_0x59f257?_0x54609a['removeClass']('ck-editor__editable__overlay',_0x11cd6d):_0x54609a['addClass']('ck-editor__editable__overlay',_0x11cd6d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a276f=>null!==_0x3a276f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x189da3,_0x43eb40,_0x1b9e4f)=>_0x189da3&&_0x1b9e4f?_0x43eb40['changes']['getIndex'](_0x1b9e4f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x550161,_0x161872)=>_0x550161?_0x161872['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x37837f);}['init'](){const _0x2dd559=this['editor'],_0x1bc7b4=new _t(_0x2dd559,{'direction':'backward'}),_0x1966b8=new _t(_0x2dd559,{'direction':'forward'});(_0x2dd559['commands']['add']('showPreviousChange',_0x1bc7b4),_0x2dd559['commands']['add']('showNextChange',_0x1966b8),_0x2dd559['commands']['add']('restoreRevision',new pt(_0x2dd559)),this['on']('change:numberOfChanges',()=>{_0x1bc7b4['refresh'](),_0x1966b8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dd559['enableReadOnlyMode']('revision-viewer'),_0x2dd559['plugins']['has']('WidgetToolbarRepository'))&&_0x2dd559['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x59c78c){await this['loadRevisionData'](_0x59c78c);const _0x26037a={};for(const _0x4509ec in _0x59c78c['diffData']){if(_0x59c78c['diffData'][_0x4509ec]['attachChange']&&!_0x59c78c['diffData'][_0x4509ec]['attachChange']['isAttached'])continue;const _0x5e194c=this['_removeRevisionMarkers'](JSON['parse'](_0x59c78c['diffData'][_0x4509ec]['insertions'])),_0x1b721c=this['editor']['editing']['view']['document'],_0x53cdf5=new _0x34ea43(_0x1b721c,_0x5e194c['map'](_0x4b9ebc=>this['_getViewObj'](_0x4b9ebc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x26037a[_0x4509ec]=this['editor']['data']['processor']['toData'](_0x53cdf5),this['editor']['data']['processor']['useFillerType']('default');}return _0x26037a;}async['getRevisionRootsAttributes'](_0x18cf29){await this['loadRevisionData'](_0x18cf29);const _0x1c1840={};for(const _0x23d8bd in _0x18cf29['diffData'])_0x18cf29['diffData'][_0x23d8bd]['attachChange']&&!_0x18cf29['diffData'][_0x23d8bd]['attachChange']['isAttached']||(_0x1c1840[_0x23d8bd]=_0x18cf29['diffData'][_0x23d8bd]['attributesAfter']||{});return _0x1c1840;}['_removeRevisionMarkers'](_0x1c874d){return(_0x1c874d=_0x1c874d['filter'](_0x4f17bf=>!_0x4f17bf['name']||'revision-start'!==_0x4f17bf['name']&&'revision-end'!==_0x4f17bf['name']))['forEach'](_0xa58b5a=>{'string'!=typeof _0xa58b5a&&(_0xa58b5a['children']=this['_removeRevisionMarkers'](_0xa58b5a['children']),_0xa58b5a['attributes']=_0xa58b5a['attributes']['filter'](_0x3604cb=>!_0x3604cb[0x0]['startsWith']('data-revision-')));}),_0x1c874d;}async['compare'](_0x1e4196,_0x9b9c44,_0x511ed3=!0x1){if(!this['isEnabled'])return;const _0x4b610d=this['diff'],_0x1138f0=this['repository'],_0x4695e1='string'==typeof _0x1e4196?_0x1138f0['getRevision'](_0x1e4196):_0x1e4196,_0x4b6c50='string'==typeof _0x9b9c44?_0x1138f0['getRevision'](_0x9b9c44):_0x9b9c44,_0x3e44d7=_0x4695e1['id'],_0x1a266c=_0x4b6c50?_0x4b6c50['id']:null;if(!_0x511ed3&&this['diff']&&this['diff']['newRevisionId']===_0x3e44d7&&this['diff']['oldRevisionId']===_0x1a266c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3e44d7,_0x1a266c);const _0x579e99=this['_getRevisionsRange'](_0x4695e1,_0x4b6c50,!0x0)['map'](_0x47dec5=>this['loadRevisionData'](_0x47dec5));return _0x579e99['push'](new Promise(_0x21e99a=>{setTimeout(_0x21e99a,0x14);})),Promise['all'](_0x579e99)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4339fc=this['_getDiff'](_0x3e44d7,_0x1a266c);for(const _0x40baee of _0x4339fc['changes'])this['_changeIdToChange']['set'](_0x40baee['id'],_0x40baee);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51f540=>{for(const _0x2ef45b of this['editor']['model']['document']['getRootNames']())_0x51f540['detachRoot'](_0x2ef45b);for(const _0x449a10 of Object['keys'](_0x4339fc['model'])){const _0x1c8493=_0x51f540['addRoot'](_0x449a10);for(const _0x474b99 of Object['keys'](_0x4339fc['attributes'][_0x449a10]))_0x51f540['setAttribute'](_0x474b99,_0x4339fc['attributes'][_0x449a10][_0x474b99],_0x1c8493);_0x51f540['insert'](_0x4339fc['model'][_0x449a10],_0x1c8493,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4339fc['changes'])),this['isReady']=!0x0;})['catch'](_0x26b9b9=>{console['error'](_0x26b9b9),this['_cleanUp'](),_0x4b610d&&(this['diff']=_0x4b610d),this['isReady']=!0x0;});}['addRevisionData'](_0xe6b7cc,_0x3e877b){const _0x350490=this['repository']['createRevision'](_0xe6b7cc);return _0x350490['on']('_update',(_0x18b6cb,_0x535c8d,_0x164f38)=>_0x3e877b(_0x535c8d,_0x164f38,_0x350490)),this['repository']['addRevision'](_0x350490),_0x350490;}['loadRevisionData'](_0x1486b7){if(!_0x1486b7||_0x1486b7['diffData'])return Promise['resolve']();{const _0x87b06=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x87b06,'revisionId':_0x1486b7['id']})['then'](_0x4af671=>{_0x1486b7['_update']({'diffData':_0x4af671['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17cdb2=>{for(const _0x2a4753 of this['editor']['model']['document']['getRootNames']())_0x17cdb2['detachRoot'](_0x2a4753);});}['_sortAndFilterDiffChanges'](_0x47b147){const _0x2d84cc=[],_0x24ad8a=new Map();for(const _0x48d055 of this['editor']['model']['document']['getRootNames']()){const _0xd663ef=this['editor']['editing']['view']['getDomRoot'](_0x48d055);if(!_0xd663ef)continue;const _0x377c40=_0xd663ef['getClientRects']()['item'](0x0);_0x377c40&&(_0x2d84cc['push'](_0x48d055),_0x24ad8a['set'](_0x48d055,_0x377c40));}return _0x2d84cc['sort']((_0x5daf0d,_0x1c825f)=>{const _0x138751=_0x24ad8a['get'](_0x5daf0d),_0x8c4346=_0x24ad8a['get'](_0x1c825f);return _0x138751['y']-_0x8c4346['y']||_0x138751['x']-_0x8c4346['x'];}),(_0x47b147=_0x47b147['filter'](_0x46281d=>_0x2d84cc['includes'](_0x46281d['rootName'])))['sort']((_0x1a8d55,_0x33b7be)=>_0x2d84cc['indexOf'](_0x1a8d55['rootName'])-_0x2d84cc['indexOf'](_0x33b7be['rootName'])),_0x47b147;}['_makeTape'](_0x9eb389){const _0x56187a=Array['from'](_0x9eb389['markers'])['filter'](([_0x5272b9,_0x16a31f])=>_0x5272b9['startsWith']('revision:')&&!_0x16a31f['isCollapsed']),_0x4eec07=Array['from'](this['editor']['model']['createRangeIn'](_0x9eb389)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56187a['length'])for(const _0xbee056 of _0x4eec07){const [_0x243b8a,_0x31c77a]=_0x56187a[0x0],[,_0x48f5d4,_0x4b0b45]=_0x243b8a['split'](':');if(_0x31c77a['end']['isEqual'](_0xbee056['nextPosition'])&&_0x56187a['shift'](),(_0xbee056['previousPosition']['isEqual'](_0x31c77a['start'])||_0xbee056['previousPosition']['isAfter'](_0x31c77a['start']))&&('insertion'==_0x48f5d4?_0xbee056['isAdded']={'userId':_0x4b0b45}:'deletion'==_0x48f5d4&&(_0xbee056['isRemoved']={'userId':_0x4b0b45})),0x0==_0x56187a['length'])break;}return _0x4eec07;}['_refreshStartEndIndex'](_0x4f5124){const _0x4fa66f=new Map();for(let _0x2e152e=0x0;_0x2e152e<_0x4f5124['length'];_0x2e152e++)'text'===_0x4f5124[_0x2e152e]['type']?(_0x4f5124[_0x2e152e]['item']['startIndex']=_0x2e152e,_0x4f5124[_0x2e152e]['item']['endIndex']=_0x2e152e):('elementStart'===_0x4f5124[_0x2e152e]['type']?_0x4f5124[_0x2e152e]['item']['startIndex']=_0x2e152e:'elementEnd'===_0x4f5124[_0x2e152e]['type']&&(_0x4f5124[_0x2e152e]['item']['endIndex']=_0x2e152e),_0x4fa66f['set'](_0x4f5124[_0x2e152e]['id'],_0x2e152e));for(const _0x5cc921 of _0x4fa66f['values']())'elementStart'===_0x4f5124[_0x5cc921]['type']?_0x4f5124[_0x5cc921]['item']['endIndex']=_0x4fa66f['get'](_0x4f5124[_0x5cc921]['pairId']):'elementEnd'===_0x4f5124[_0x5cc921]['type']&&(_0x4f5124[_0x5cc921]['item']['startIndex']=_0x4fa66f['get'](_0x4f5124[_0x5cc921]['pairId']));}['_processTape'](_0x50c07a){for(let _0x3d9cc4=0x0;_0x3d9cc4<_0x50c07a['length'];_0x3d9cc4++){if('elementStart'===_0x50c07a[_0x3d9cc4]['type'])_0x50c07a[_0x3d9cc4]['item']['startIndex']=_0x3d9cc4;else{if('elementEnd'===_0x50c07a[_0x3d9cc4]['type']){_0x50c07a[_0x3d9cc4]['item']['endIndex']=_0x3d9cc4;const _0x18b934=_0x50c07a[_0x3d9cc4]['item']['startIndex'];_0x50c07a[_0x18b934]['pairId']=_0x50c07a[_0x3d9cc4]['id'],_0x50c07a[_0x3d9cc4]['pairId']=_0x50c07a[_0x18b934]['id'];}else _0x50c07a[_0x3d9cc4]['item']['startIndex']=_0x3d9cc4,_0x50c07a[_0x3d9cc4]['item']['endIndex']=_0x3d9cc4,_0x50c07a[_0x3d9cc4]['pairId']=null;}_0x50c07a[_0x3d9cc4]['markersStart']||(_0x50c07a[_0x3d9cc4]['markersStart']=[],_0x50c07a[_0x3d9cc4]['markersEnd']=[]);}}['_markInsertions'](_0x1ffcaf,_0x5b3db1){const _0x443323=_0x1ffcaf['filter'](_0x30f3f7=>!_0x30f3f7['isAdded']);for(let _0x1eeb86=0x0;_0x1eeb86<_0x5b3db1['length'];_0x1eeb86++)_0x5b3db1[_0x1eeb86]['isAdded']&&(_0x443323[_0x1eeb86]['isAdded']=_0x5b3db1[_0x1eeb86]['isAdded']);}['_makeModelFromViewString'](_0x1db146){const _0x597457=JSON['parse'](_0x1db146),_0xd01ff2=this['editor']['editing']['view']['document'],_0x5c5d04=new _0x34ea43(_0xd01ff2,_0x597457['map'](_0x3305d8=>this['_getViewObj'](_0x3305d8)));return this['editor']['data']['toModel'](_0x5c5d04);}['_getViewObj'](_0x4e816b){const _0x43d9ce=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e816b)return new _0x22ba6c(_0x43d9ce,_0x4e816b);{const _0x283ffc=_0x4e816b['children']['map'](_0x72fb28=>this['_getViewObj'](_0x72fb28));return new(Y[_0x4e816b['type']]||_0x422f3c)(_0x43d9ce,_0x4e816b['name'],_0x4e816b['attributes'],_0x283ffc);}}['_getDiff'](_0x42e614,_0x30d02d=null){const _0x1457f1=this['repository']['getRevision'](_0x42e614),_0x5e3a70=_0x30d02d?this['repository']['getRevision'](_0x30d02d):null,_0x543392=this['_getRevisionsRange'](_0x1457f1,_0x5e3a70),_0x754281=_0x543392[_0x543392['length']-0x1],_0xcc999f=new Map(),_0x543276={'model':{},'attributes':{},'changes':[]},_0x4956b4=new Set(),_0x5c43d5=new Map();for(let _0xf544b9=_0x543392['length']-0x1;_0xf544b9>=0x0;_0xf544b9--){const _0x15d6e0=_0x543392[_0xf544b9];for(const _0x1689a7 of Object['keys'](_0x15d6e0['diffData']))if(_0x15d6e0['diffData'][_0x1689a7]['attachChange']){const _0x3d583d=_0x15d6e0['diffData'][_0x1689a7]['attachChange'];_0x3d583d['isAttached']?(_0x4956b4['add'](_0x1689a7),_0x5c43d5['has'](_0x1689a7)&&_0x5c43d5['get'](_0x1689a7)['userId']==_0x3d583d['userId']?_0x5c43d5['delete'](_0x1689a7):_0x5c43d5['set'](_0x1689a7,_0x3d583d)):_0x5c43d5['has'](_0x1689a7)?(_0x4956b4['delete'](_0x1689a7),_0x5c43d5['delete'](_0x1689a7)):(_0x4956b4['add'](_0x1689a7),_0x5c43d5['set'](_0x1689a7,_0x3d583d));}else _0x4956b4['add'](_0x1689a7);}for(const _0x2679a8 of _0x4956b4){const _0x5d0951=_0x5c43d5['has'](_0x2679a8)&&!_0x5c43d5['get'](_0x2679a8)['isAttached'];let _0x4c15bb=_0x5d0951?_0x543392['length']-0x1:0x0;const _0x50ce6c=_0x5d0951?-0x1:0x1;for(;_0x543392[_0x4c15bb];){const _0x3d2fdd=_0x543392[_0x4c15bb];if(_0x3d2fdd['diffData'][_0x2679a8]){const _0x1d6064=_0x5d0951?_0x3d2fdd['diffData'][_0x2679a8]['attributesBefore']:_0x3d2fdd['diffData'][_0x2679a8]['attributesAfter'];_0x543276['attributes'][_0x2679a8]=_0x1d6064?_0xdad44a(_0x1d6064):{};break;}_0x4c15bb+=_0x50ce6c;}}for(const _0x474c24 of _0x543392){_0x474c24['model']={};for(const _0x5f2647 of _0x474c24['authors'])_0xcc999f['set'](_0x5f2647['id'],_0x5f2647);for(const _0x123836 of _0x4956b4){const _0x3e322f=_0x474c24['diffData'][_0x123836]?_0x474c24['diffData'][_0x123836]['insertions']:'[]',_0x4ed2c8=_0x474c24['diffData'][_0x123836]?_0x474c24['diffData'][_0x123836]['deletions']:'[]';_0x474c24['model'][_0x123836]={'insertions':this['_makeModelFromViewString'](_0x3e322f),'deletions':this['_makeModelFromViewString'](_0x4ed2c8)};}}for(const _0x421f08 of _0x4956b4){let _0x26135b=null,_0x58628a=0x0;const _0x354942=new Map(Array['from'](_0x1457f1['model'][_0x421f08]['insertions']['markers'])['filter'](([_0x1fb192])=>!_0x1fb192['startsWith']('revision:')));let _0x2850eb=0x0;for(const _0xd5aa4e of _0x543392){const _0x37d408=this['_makeTape'](_0xd5aa4e['model'][_0x421f08]['insertions']);_0xd5aa4e==_0x1457f1?(_0x26135b=_0x37d408,_0x58628a=_0x26135b['length'],_0x26135b['forEach'](_0x20c09b=>{_0x20c09b['id']=_0x2850eb++;}),this['_processTape'](_0x26135b)):this['_markInsertions'](_0x26135b,_0x37d408);const _0x20c0e7=_0x26135b['filter'](_0x4195b8=>!_0x4195b8['isAdded'])['map'](_0x3e6d2d=>_0x3e6d2d['id']);let _0x55af37=0x0;const _0x58062c=this['_makeTape'](_0xd5aa4e['model'][_0x421f08]['deletions']);_0x58062c['forEach'](_0x255238=>{_0x255238['isRemoved']?_0x255238['id']=_0x58628a++:_0x255238['id']=_0x20c0e7[_0x55af37++];}),this['_processTape'](_0x58062c),this['_setDistance'](_0x26135b,'isAdded'),this['_setDistance'](_0x58062c,'isRemoved'),_0xd5aa4e==_0x1457f1&&this['_markMarkers'](_0x26135b,_0x354942),_0x26135b=this['_joinTapes'](_0x26135b,_0x58062c),this['_refreshStartEndIndex'](_0x26135b),this['_setDistance'](_0x26135b,'isRemoved');}_0x26135b=_0x26135b['filter'](_0x37c707=>!(_0x37c707['isAdded']&&_0x37c707['isRemoved']));const _0x4c9dc2=new Map(_0x754281['model'][_0x421f08]['deletions']['markers']),_0x2bd638=new Set(_0x354942['keys']());for(const _0x4ff3 of _0x4c9dc2['keys']())_0x2bd638['delete'](_0x4ff3);this['_markSuggestions'](_0x26135b,_0x2bd638),this['_fixObsoleteTags'](_0x26135b),_0x26135b=this['_removeMissingPairs'](_0x26135b),_0x26135b=this['_markMismatchedRemovedTags'](_0x26135b),_0x26135b=this['_removeUnsupportedChanges'](_0x26135b);const {root:_0x3219f2,changes:_0x4e84b2}=this['_makeModelFromTape'](_0x26135b,_0xcc999f,_0x421f08);_0x543276['model'][_0x421f08]=_0x3219f2;const _0x3fedf1=_0x5c43d5['get'](_0x421f08);if(_0x3fedf1){const _0x28ecbf=_0xcc999f['get'](_0x3fedf1['userId']),_0x33eafa=new r({'author':_0x28ecbf,'type':_0x3fedf1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x421f08});_0x4e84b2['unshift'](_0x33eafa),_0x543276['attributes'][_0x421f08]['revisionHistoryAttachChange']=_0x33eafa['id'];}_0x543276['changes']=_0x543276['changes']['concat'](_0x4e84b2);}return _0x543276;}['_markMarkers'](_0x35f956,_0x42cec5){for(let _0x4d1254=0x0;_0x4d1254<_0x35f956['length'];_0x4d1254++)for(const [_0x1ed507,_0x4276f7]of _0x42cec5)_0x4276f7['start']['isEqual'](_0x35f956[_0x4d1254]['previousPosition'])&&_0x35f956[_0x4d1254]['markersStart']['push'](_0x1ed507),_0x4276f7['end']['isEqual'](_0x35f956[_0x4d1254]['nextPosition'])&&_0x35f956[_0x4d1254]['markersEnd']['push'](_0x1ed507);}['_joinTapes'](_0x34e5ba,_0x4bd621){let _0x557029=[],_0x455138=0x0,_0x3ba4ab=0x0;for(;_0x455138<_0x34e5ba['length']||_0x3ba4ab<_0x4bd621['length'];){const _0x41b15f=_0x34e5ba[_0x455138]||{},_0x2e3ece=_0x4bd621[_0x3ba4ab]||{};if(_0x41b15f['id']==_0x2e3ece['id'])_0x455138++,_0x3ba4ab++,_0x557029['push'](_0x41b15f);else{if(_0x2e3ece['isRemoved']&&_0x41b15f['isAdded']){const {commonTape:_0x2adaee,iEnd:_0x4b152f,jEnd:_0x168b58}=this['_threeWayMerge'](_0x34e5ba,_0x455138,_0x4bd621,_0x3ba4ab);_0x557029=_0x557029['concat'](_0x2adaee),_0x455138=_0x4b152f,_0x3ba4ab=_0x168b58;}else _0x2e3ece['isRemoved']?(_0x3ba4ab++,_0x557029['push'](_0x2e3ece)):(_0x455138++,_0x557029['push'](_0x41b15f));}}return _0x557029;}['_markSuggestions'](_0x539aa1,_0x1b47b1){const _0x18835b=[];for(let _0x336edd=0x0;_0x336edd<_0x539aa1['length'];_0x336edd++){for(let _0x32f063=0x0;_0x32f063<_0x539aa1[_0x336edd]['markersStart']['length'];_0x32f063++){const _0x4f4021=_0x539aa1[_0x336edd]['markersStart'][_0x32f063];if(!_0x1b47b1['has'](_0x4f4021))continue;const {group:_0x5b5d50,type:_0x31387a,authorId:_0x323c3a}=_0x1ee160(_0x4f4021);'revision-suggestion'!=_0x5b5d50||'insertion'!=_0x31387a&&'deletion'!=_0x31387a||(_0x18835b['unshift']({'type':_0x31387a,'name':_0x4f4021,'userId':_0x323c3a}),_0x539aa1[_0x336edd]['markersStart']['splice'](_0x32f063,0x1),_0x32f063--);}_0x50a478(_0x539aa1[_0x336edd]);for(let _0x5d1c80=0x0;_0x5d1c80<_0x539aa1[_0x336edd]['markersEnd']['length'];_0x5d1c80++){const _0x10446b=_0x539aa1[_0x336edd]['markersEnd'][_0x5d1c80];if(!_0x1b47b1['has'](_0x10446b))continue;const {group:_0x3bb7e7,type:_0x376b07}=_0x1ee160(_0x10446b);if('revision-suggestion'!=_0x3bb7e7||'insertion'!=_0x376b07&&'deletion'!=_0x376b07)continue;_0x539aa1[_0x336edd]['markersEnd']['splice'](_0x5d1c80,0x1),_0x5d1c80--;const _0x1d38d1=_0x18835b['findIndex'](_0x59d515=>_0x59d515['name']==_0x10446b);_0x1d38d1>-0x1&&_0x18835b['splice'](_0x1d38d1,0x1);}}function _0x1ee160(_0x4d50a2){const _0x5d1958=_0x4d50a2['split'](':');return{'group':_0x5d1958[0x0],'type':_0x5d1958[0x1],'subType':_0x5d1958['length']>=0x5?_0x5d1958[0x2]:null,'id':_0x5d1958['length']<0x5?_0x5d1958[0x2]:_0x5d1958[0x3],'authorId':_0x5d1958['length']<0x5?_0x5d1958[0x3]:_0x5d1958[0x4],'markerCount':0x6==_0x5d1958['length']?_0x5d1958[0x5]:null};}function _0x50a478(_0xeab03a){for(let _0x4e99ee=0x0;_0x4e99ee<_0x18835b['length'];_0x4e99ee++){if(_0xeab03a['isAdded']&&'insertion'==_0x18835b[_0x4e99ee]['type'])return _0xeab03a['isAddSuggestion']=_0x18835b[_0x4e99ee],void delete _0xeab03a['isAdded'];if(!_0xeab03a['isAdded']&&!_0xeab03a['isRemoved']&&'deletion'==_0x18835b[_0x4e99ee]['type'])return void(_0xeab03a['isRemoveSuggestion']=_0x18835b[_0x4e99ee]);}}}['_setDistance'](_0x4bd428,_0xb7d862){let _0x1afd92=0x0,_0x2ac8df=!0x1;const _0xbbd9f2=new Map();for(const _0x45934b of _0x4bd428)_0x45934b[_0xb7d862]?_0x2ac8df&&(_0x1afd92++,_0x2ac8df=!0x1):(_0x1afd92++,_0x2ac8df=!0x0),_0xbbd9f2['set'](_0x45934b['id'],_0x1afd92);for(let _0x6ead38=0x0;_0x6ead38<_0x4bd428['length'];_0x6ead38++){if('isRemoved'==_0xb7d862&&_0x4bd428[_0x6ead38]['isAdded']||'isAdded'==_0xb7d862&&_0x4bd428[_0x6ead38]['isRemoved'])continue;if('text'==_0x4bd428[_0x6ead38]['type']){_0x4bd428[_0x6ead38]['distance']=0x0;continue;}const _0x4d203f=_0xbbd9f2['get'](_0x4bd428[_0x6ead38]['pairId']),_0x3bc197=_0xbbd9f2['get'](_0x4bd428[_0x6ead38]['id']);_0x4bd428[_0x6ead38]['distance']=_0x4d203f-_0x3bc197;}}['_getRevisionsRange'](_0x33fe25,_0x3afbf4,_0x5e8596=!0x1){const _0x5c9802=[];let _0x355a18=this['repository']['getIndex'](_0x33fe25),_0x16c5fa=this['repository']['getIndex'](_0x3afbf4);for(-0x1==_0x16c5fa&&(_0x16c5fa=this['repository']['_revisions']['length'],_0x5e8596=!0x1);_0x355a18<_0x16c5fa;)_0x5c9802['push'](this['repository']['getRevision'](_0x355a18)),_0x355a18++;return _0x5e8596&&_0x5c9802['push'](this['repository']['getRevision'](_0x355a18)),_0x5c9802;}['_threeWayMerge'](_0x42b8cf,_0x176b01,_0x333588,_0xa915dd){const _0x44c056=this['editor']['model']['schema'];let _0x4ac5e5=_0x176b01;for(;_0x42b8cf[_0x4ac5e5]&&_0x42b8cf[_0x4ac5e5]['isAdded'];)_0x4ac5e5++;let _0x7c2848=_0xa915dd;for(;_0x333588[_0x7c2848]&&_0x333588[_0x7c2848]['isRemoved'];)_0x7c2848++;_0x4dafc5(_0x42b8cf,_0x176b01,_0x4ac5e5),_0x4dafc5(_0x333588,_0xa915dd,_0x7c2848);const _0x5dad97=_0x333588['slice'](_0xa915dd,_0x7c2848)['concat'](_0x42b8cf['slice'](_0x176b01,_0x4ac5e5));return _0x5dad97['sort']((_0x5a48e5,_0x2b540f)=>_0x5a48e5['side']!=_0x2b540f['side']?_0x5a48e5['side']-_0x2b540f['side']:_0x5a48e5['level']!=_0x2b540f['level']?_0x5a48e5['level']-_0x2b540f['level']:_0x5a48e5['distance']!=_0x2b540f['distance']?_0x2b540f['distance']-_0x5a48e5['distance']:!!_0x5a48e5['isAdded']!=!!_0x2b540f['isAdded']?-0x1==_0x5a48e5['side']||0x0==_0x5a48e5['side']?_0x5a48e5['isAdded']?-0x1:0x1:_0x5a48e5['isAdded']?0x1:-0x1:_0x5a48e5['index']-_0x2b540f['index']),{'commonTape':_0x5dad97,'iEnd':_0x4ac5e5,'jEnd':_0x7c2848};function _0x4dafc5(_0x216650,_0x204a55,_0x4b271c){let _0x2ce1c7=-0x1,_0x22d2b9=Number['POSITIVE_INFINITY'],_0x5241c7=!0x0;for(let _0x17213d=_0x204a55;_0x17213d<_0x4b271c;_0x17213d++)if(_0x44c056['isInline'](_0x216650[_0x17213d]['item'])||(_0x5241c7=!0x1),_0x216650[_0x17213d]['item']['startIndex']<_0x204a55&&(_0x2ce1c7=_0x17213d),_0x216650[_0x17213d]['item']['endIndex']>=_0x4b271c){_0x22d2b9=_0x17213d;break;}_0x5241c7&&(_0x2ce1c7=_0x4b271c-0x1);for(let _0x2c2b9a=_0x204a55;_0x2c2b9a<_0x4b271c;_0x2c2b9a++)_0x216650[_0x2c2b9a]['side']=_0x2c2b9a<=_0x2ce1c7?-0x1:_0x2c2b9a<_0x22d2b9?0x0:0x1,_0x216650[_0x2c2b9a]['index']=_0x2c2b9a;let _0x41d629=0x0;for(let _0x1013c8=_0x204a55;_0x1013c8<=_0x2ce1c7;_0x1013c8++)0x0==_0x216650[_0x1013c8]['distance']?_0x216650[_0x1013c8]['level']=_0x41d629:(_0x41d629++,_0x216650[_0x1013c8]['level']=_0x41d629,_0x41d629++);for(let _0x20f465=_0x204a55;_0x20f465<_0x4b271c;_0x20f465++)0x0==_0x216650[_0x20f465]['side']&&(_0x216650[_0x20f465]['level']=_0x41d629);_0x41d629=0x0;for(let _0x3d7381=_0x4b271c-0x1;_0x3d7381>=_0x22d2b9;_0x3d7381--)0x0==_0x216650[_0x3d7381]['distance']?_0x216650[_0x3d7381]['level']=_0x41d629:(_0x41d629--,_0x216650[_0x3d7381]['level']=_0x41d629,_0x41d629--);}}['_fixObsoleteTags'](_0x4c4708){const _0xa877eb=new Map(),_0x3beb02=this['editor']['model']['schema'];for(let _0x4c60f3=0x1;_0x4c60f3<_0x4c4708['length'];_0x4c60f3++){let _0x2b6d05,_0xb5703f,_0xa4ab9f;const _0x5394c5=_0x4c4708[_0x4c60f3],_0x3d8153=_0x4c4708[_0x4c60f3-0x1];if('text'==_0x5394c5['type'])continue;if(_0x5394c5['type']!=_0x3d8153['type'])continue;if(!_0x3beb02['isBlock'](_0x3d8153['item'])||_0x3beb02['isLimit'](_0x3d8153['item']))continue;if(!_0x3beb02['isBlock'](_0x5394c5['item'])||_0x3beb02['isLimit'](_0x5394c5['item']))continue;if((_0x4c4708[_0x4c60f3]['isAdded']||_0x4c4708[_0x4c60f3]['isAddSuggestion'])&&_0x4c4708[_0x4c60f3-0x1]['isRemoved'])_0x2b6d05=_0x4c4708[_0x4c60f3],_0xb5703f=_0x4c4708[_0x4c60f3-0x1],_0xa4ab9f=_0x4c60f3-0x1;else{if(!_0x4c4708[_0x4c60f3]['isRemoved']||!_0x4c4708[_0x4c60f3-0x1]['isAdded']&&!_0x4c4708[_0x4c60f3-0x1]['isAddSuggestion'])continue;_0x2b6d05=_0x4c4708[_0x4c60f3-0x1],_0xb5703f=_0x4c4708[_0x4c60f3],_0xa4ab9f=_0x4c60f3;}const _0x35e88a=_0x2b6d05['level']==_0xb5703f['level'],_0x3e0a5f=Math['abs'](_0x2b6d05['level'])<Math['abs'](_0xb5703f['level'])&&0x0==_0xb5703f['distance'];(_0x35e88a||_0x3e0a5f)&&(_0xa877eb['set'](_0xb5703f['id'],_0x2b6d05['id']),_0x4c4708['splice'](_0xa4ab9f,0x1),_0x4c60f3--,_0x2b6d05['isAdded']=!0x1);}for(let _0x1df120=0x0;_0x1df120<_0x4c4708['length'];_0x1df120++)_0xa877eb['has'](_0x4c4708[_0x1df120]['pairId'])&&(_0x4c4708[_0x1df120]['pairId']=_0xa877eb['get'](_0x4c4708[_0x1df120]['pairId']));}['_removeMissingPairs'](_0x234c7f){const _0x1abec3=new Set(_0x234c7f['map'](_0x2d07e4=>_0x2d07e4['id']));for(let _0x3af75b=0x0;_0x3af75b<_0x234c7f['length'];_0x3af75b++)_0x1abec3['has'](_0x234c7f[_0x3af75b]['pairId'])||0x0==_0x234c7f[_0x3af75b]['distance']||(_0x234c7f[_0x3af75b]['isIncorrect']=!0x0);return _0x234c7f['filter'](_0x31548e=>!_0x31548e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2a03d2){const _0x56c280=new Set();for(let _0x5774c5=0x0;_0x5774c5<_0x2a03d2['length'];_0x5774c5++){if(_0x56c280['has'](_0x2a03d2[_0x5774c5]['id'])&&_0x2a03d2[_0x5774c5]['isRemoved']&&(_0x2a03d2[_0x5774c5]['isIncorrect']=!0x0),_0x2a03d2[_0x5774c5]['isIncorrect'])continue;if(0x0==_0x2a03d2[_0x5774c5]['distance'])continue;if('elementStart'!=_0x2a03d2[_0x5774c5]['type'])continue;if(null==_0x2a03d2[_0x5774c5]['pairId'])continue;let _0x418596=_0x5774c5+0x1,_0x1dc374=0x0;for(;_0x2a03d2[_0x418596]['id']!=_0x2a03d2[_0x5774c5]['pairId'];)'elementStart'==_0x2a03d2[_0x418596]['type']?_0x1dc374++:'elementEnd'==_0x2a03d2[_0x418596]['type']&&_0x1dc374--,_0x418596++;if(0x0!=_0x1dc374){if(_0x2a03d2[_0x5774c5]['isRemoved'])_0x2a03d2[_0x5774c5]['isIncorrect']=!0x0;else{for(;_0x418596!=_0x5774c5;)_0x2a03d2[_0x418596]['isRemoved']&&0x0!=_0x2a03d2[_0x418596]['distance']&&(_0x2a03d2[_0x418596]['isIncorrect']=!0x0,_0x56c280['add'](_0x2a03d2[_0x418596]['pairId'])),_0x418596--;}}}return _0x2a03d2['filter'](_0x7c96b9=>!_0x7c96b9['isIncorrect']);}['_removeUnsupportedChanges'](_0x186b7d){const _0x2eb49a=this['editor']['model']['schema'];for(let _0x472100=0x0;_0x472100<_0x186b7d['length'];_0x472100++){if(!(_0x186b7d[_0x472100]['isAdded']||_0x186b7d[_0x472100]['isAddSuggestion']||_0x186b7d[_0x472100]['isRemoved']||_0x186b7d[_0x472100]['isRemoveSuggestion']))continue;if(0x0==_0x186b7d[_0x472100]['distance'])continue;const _0x1bc45e=_0x186b7d[_0x472100]['item'];_0x2eb49a['isBlock'](_0x1bc45e)||_0x2eb49a['isLimit'](_0x1bc45e)||(_0x186b7d[_0x472100]['isAdded']&&delete _0x186b7d[_0x472100]['isAdded'],_0x186b7d[_0x472100]['isAddSuggestion']&&delete _0x186b7d[_0x472100]['isAddSuggestion'],_0x186b7d[_0x472100]['isRemoveSuggestion']&&delete _0x186b7d[_0x472100]['isRemoveSuggestion'],_0x186b7d[_0x472100]['isRemoved']&&(_0x186b7d[_0x472100]['isIncorrect']=!0x0));}return _0x186b7d['filter'](_0x2c0d3b=>!_0x2c0d3b['isIncorrect']);}['_makeModelFromTape'](_0x4fad48,_0x189510,_0x214c84){const _0x4746d2=new mt(),_0x4a5d5b=[],_0x442421=new Map(),_0x5f322f=this['editor']['model'],_0x2a708d=_0x5f322f['schema'],_0xb1c5a=[_0x4746d2],_0x3cfb46={},_0x5e2b19={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x7f5eb4=null;const _0x321f27=[0x0];for(let _0x465bd9=0x0;_0x465bd9<_0x4fad48['length'];_0x465bd9++)if('elementStart'===_0x4fad48[_0x465bd9]['type']){_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27);const _0x3bda66=new ft(_0x4fad48[_0x465bd9]['item']['name'],_0x4fad48[_0x465bd9]['item']['getAttributes']());_0xb1c5a[0x0]['_appendChild'](_0x3bda66),_0x321f27['push'](0x0),_0xb1c5a['unshift'](_0x3bda66),_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27);}else'elementEnd'===_0x4fad48[_0x465bd9]['type']?(_0xb1c5a['shift'](),_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27),_0x321f27['pop'](),_0x321f27[_0x321f27['length']-0x1]++,_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27)):(_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27),_0x7f5eb4?_0x7f5eb4['_data']+=_0x4fad48[_0x465bd9]['item']['data']:_0x7f5eb4=new wt(_0x4fad48[_0x465bd9]['item']['data'],_0x4fad48[_0x465bd9]['item']['getAttributes']()),_0x4fad48[_0x465bd9+0x1]&&'text'===_0x4fad48[_0x465bd9+0x1]['type']&&_0x1f4eb4(_0x7f5eb4,_0x4fad48[_0x465bd9+0x1]['item'])||(_0xb1c5a[0x0]['_appendChild'](_0x7f5eb4),_0x7f5eb4=null),_0x321f27[_0x321f27['length']-0x1]+=_0x4fad48[_0x465bd9]['item']['offsetSize'],_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27));for(let _0x1fd868=0x0;_0x1fd868<_0x4fad48['length'];_0x1fd868++){const _0x5f409d=_0x4fad48[_0x1fd868]['previousPosition'],_0x565e7f=_0x4fad48[_0x1fd868]['nextPosition'];for(const _0x53b0a5 of _0x4fad48[_0x1fd868]['markersStart'])_0x442421['set'](_0x53b0a5,{'start':_0x5f409d,'end':null});_0x2e22de('isRemoveSuggestion',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isAddSuggestion',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isRemoved',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isAdded',_0x1fd868,_0x5f409d,_0x565e7f);for(const _0x456b06 of _0x4fad48[_0x1fd868]['markersEnd']){_0x442421['get'](_0x456b06)['end']=_0x565e7f;}}for(const [_0x37112d,_0x1a14d1]of _0x442421){const _0x52d971=this['editor']['model']['createRange'](_0x1a14d1['start'],_0x1a14d1['end']);_0x4746d2['markers']['set'](_0x37112d,_0x52d971);}return _0x4a5d5b['sort']((_0x5d971a,_0x41e0be)=>{const _0x1e51ca=_0x4746d2['markers']['get']('revision:'+_0x5d971a['id']),_0x1ecfec=_0x4746d2['markers']['get']('revision:'+_0x41e0be['id']);return _0x1e51ca['start']['isBefore'](_0x1ecfec['start'])?-0x1:_0x1e51ca['start']['isAfter'](_0x1ecfec['start'])?0x1:_0x1e51ca['end']['isBefore'](_0x1ecfec['end'])?-0x1:_0x1e51ca['end']['isAfter'](_0x1ecfec['end'])?0x1:'add'===_0x5d971a['type']?-0x1:0x1;}),{'root':_0x4746d2,'changes':_0x4a5d5b};function _0x2e22de(_0x130459,_0x26507d,_0x529cc2,_0x4dfb97){const _0x314f43=!!_0x4fad48[_0x26507d][_0x130459],_0x1bc931=_0x314f43?_0x4fad48[_0x26507d][_0x130459]['userId']:null,_0x5b50b5=_0x26507d===_0x4fad48['length']-0x1,_0x14b721=_0x5e2b19[_0x130459][0x0],_0x53bb48=_0x2a708d['isObject'](_0x4fad48[_0x26507d]['item']);!_0x3cfb46[_0x130459]&&_0x314f43?_0x3cfb46[_0x130459]={'start':_0x529cc2,'tapeItem':_0x4fad48[_0x26507d],'userId':_0x1bc931,'type':_0x130459}:_0x3cfb46[_0x130459]&&!_0x314f43?(_0x3cfb46[_0x130459]['end']=_0x529cc2,_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]=null):_0x3cfb46[_0x130459]&&_0x314f43&&_0x3cfb46[_0x130459]['userId']!==_0x1bc931&&(_0x3cfb46[_0x130459]['end']=_0x529cc2,_0x14b721&&_0x14b721['userId']===_0x3cfb46[_0x130459]['userId']||_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]={'start':_0x529cc2,'tapeItem':_0x4fad48[_0x26507d],'userId':_0x1bc931,'type':_0x130459}),_0x3cfb46[_0x130459]&&_0x53bb48&&('elementStart'!==_0x4fad48[_0x26507d]['type']||_0x14b721&&_0x14b721['userId']===_0x1bc931||_0x5e2b19[_0x130459]['unshift']({'userId':_0x1bc931,'object':_0x4fad48[_0x26507d]['item'],'change':_0x3cfb46[_0x130459]}),'elementEnd'===_0x4fad48[_0x26507d]['type']&&_0x14b721&&_0x14b721['object']===_0x4fad48[_0x26507d]['item']&&(_0x5e2b19[_0x130459]['shift'](),_0x3cfb46[_0x130459]=_0x14b721['change'])),_0x3cfb46[_0x130459]&&_0x5b50b5&&(_0x3cfb46[_0x130459]['end']=_0x4dfb97,_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]=null);}function _0x18b1b1({start:_0x183895,end:_0x3823ea,tapeItem:_0x5f55a3,userId:_0x50cebd,type:_0x26091d}){const _0x54617e=_0x5f55a3['item'],_0x198d36=_0x5f322f['schema']['isBlock'](_0x54617e)&&!_0x5f322f['schema']['isLimit'](_0x54617e),_0x41f856=_0x183895['nodeAfter']==_0x3823ea['parent']&&_0x3823ea['isAtStart'];if(_0x198d36&&_0x41f856)return;const _0x42d621=_0x5f322f['createRange'](_0x183895,_0x3823ea),_0xd8aeab=_0x189510['get'](_0x50cebd),_0x1bdcc0=new r({'author':_0xd8aeab,'type':'isAdded'==_0x26091d||'isAddSuggestion'==_0x26091d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x26091d||'isRemoveSuggestion'==_0x26091d},'createdAt':new Date(),'rootName':_0x214c84});_0x4a5d5b['push'](_0x1bdcc0),_0x4746d2['markers']['set']('revision:'+_0x1bdcc0['id'],_0x42d621);}function _0x1f4eb4(_0x251fc7,_0x5da2f8){const _0x2c5923=_0x251fc7['getAttributes'](),_0x7c4a66=_0x5da2f8['getAttributes']();for(const _0x27d6c8 of _0x2c5923){if(_0x27d6c8[0x1]!==_0x5da2f8['getAttribute'](_0x27d6c8[0x0]))return!0x1;_0x7c4a66['next']();}return _0x7c4a66['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x385a40=>{const _0x3bfeed=_0x385a40['markerName']['split'](':')[0x1],_0x28d7b0=this['_getChangeFromId'](_0x3bfeed);if(!_0x28d7b0)return null;const _0x1c550a='add'==_0x28d7b0['type']?'insertion':'deletion',_0x56f84d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1c550a];return _0x28d7b0['data']['isSuggestion']&&_0x56f84d['push']('ck-suggestion-marker-'+_0x1c550a+'-new'),this['activeChange']==_0x28d7b0&&_0x56f84d['push']('ck-suggestion-marker--active'),{'classes':_0x56f84d,'attributes':{'data-change-id':_0x3bfeed}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x268c8f=>{_0x268c8f['on']('element:pre',(_0x613961,_0xd3350e,_0x58024d)=>{const _0x239c9f=_0xd3350e['viewItem']['getChild'](0x0);if(!_0x239c9f||!_0x239c9f['is']('element','code'))return;if(!_0x58024d['consumable']['consume'](_0x239c9f,{'attributes':['vid_start','vid_end']}))return;const _0x2764d7=_0xd3350e['modelRange']['start']['nodeAfter'];_0x58024d['writer']['setAttribute']('vid_start',_0x239c9f['getAttribute']('vid_start'),_0x2764d7),_0x58024d['writer']['setAttribute']('vid_end',_0x239c9f['getAttribute']('vid_end'),_0x2764d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7eef6a=>{_0x7eef6a['on']('element',(_0x4683d1,_0x4a92cb,_0x89e25)=>{if(!_0x89e25['consumable']['consume'](_0x4a92cb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4a92cb['modelRange']['isCollapsed'])return;const _0xce0b3a=_0x4a92cb['modelRange']['start']['nodeAfter'];_0xce0b3a['hasAttribute']('vid_start')||_0xce0b3a['hasAttribute']('vid')||(_0x89e25['writer']['setAttribute']('vid_start',_0x4a92cb['viewItem']['getAttribute']('vid_start'),_0xce0b3a),_0x89e25['writer']['setAttribute']('vid_end',_0x4a92cb['viewItem']['getAttribute']('vid_end'),_0xce0b3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5669b0=>_0x5669b0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x501aee,[,_0x36dc9e])=>{['vid_start','vid_end','vid']['includes'](_0x36dc9e)&&(_0x501aee['return']=!0x0,_0x501aee['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x350adb=>{_0x350adb['on']('attribute:vid',(_0x15ea8d,_0x1b050c,_0x59405e)=>{if('\x20'!=_0x1b050c['item']['data']||_0x1b050c['item']['parent']['maxOffset']>0x1)return;if(!_0x59405e['consumable']['consume'](_0x1b050c['item'],_0x15ea8d['name']))return;const _0x1a132a=_0x59405e['writer'],_0xdd0ba3=_0x59405e['mapper']['toViewRange'](_0x1b050c['range']);_0x1a132a['wrap'](_0xdd0ba3,_0x1a132a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x127625){const _0x3995ba=_0x127625['plugins']['get']('RevisionViewer');return(_0x1c7f84,_0xe14a8a,_0x4a4bd9)=>{const _0x1bd416=_0xe14a8a['markerName']['split'](':')[0x1],_0x21b8bb=_0x3995ba['_getChangeFromId'](_0x1bd416);if(!_0x21b8bb)return null;const _0x3367c8='add'==_0x21b8bb['type']?'split':'merge';if(!_0x4a4bd9['consumable']['test'](_0xe14a8a['markerRange'],_0x1c7f84['name']))return;const _0x4b3a8d=_0xe14a8a['markerRange']['getWalker'](),_0x52c1e4=_0xe14a8a['markerRange']['start'],_0x54579c=_0x127625['model']['schema'];let _0x27090d=null,_0x4cc9f8=null,_0x1a4c4c=!0x1,_0x3bdcfb=!0x1;for(const _0x17f459 of _0x4b3a8d){const _0x1f9bcd=_0x17f459['item'];_0x1a4c4c=_0x1a4c4c||_0x54579c['isContent'](_0x1f9bcd);const _0x59d829=_0x4a4bd9['mapper']['toViewElement'](_0x1f9bcd);if(_0x59d829&&_0x59d829['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17f459['type']&&(_0x54579c['isBlock'](_0x1f9bcd)&&!_0x54579c['isLimit'](_0x1f9bcd)&&(_0x1f9bcd['nextSibling']||_0x52c1e4['isAtEnd']?_0x27090d&&_0x27090d['parent']==_0x1f9bcd||(_0x27090d=_0x1f9bcd,_0x2a1eac(_0x17f459['previousPosition']),_0x3bdcfb=!0x0):_0x4cc9f8=_0x4cc9f8||_0x17f459['previousPosition']));}function _0x2a1eac(_0x187513){const _0x21f600=_0x4a4bd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3367c8}),_0x2e5e5d=_0x4a4bd9['mapper']['toViewPosition'](_0x187513);_0x21b8bb['data']['isSuggestion']&&_0x4a4bd9['writer']['addClass']('ck-suggestion-marker-'+_0x3367c8+'-new',_0x21f600),_0x3995ba['activeChange']==_0x21b8bb&&_0x4a4bd9['writer']['addClass']('ck-suggestion-marker--active',_0x21f600),_0x4a4bd9['writer']['insert'](_0x2e5e5d,_0x21f600),_0x4a4bd9['mapper']['bindElementToMarker'](_0x21f600,_0xe14a8a['markerName']);}_0x1a4c4c||_0x3bdcfb||!_0x4cc9f8||_0x2a1eac(_0x4cc9f8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5ccc7e,_0x48cf22,_0x10f245)=>{const _0xa58f2=_0x10f245['mapper']['markerNameToElements'](_0x48cf22['markerName']);if(_0xa58f2){for(const _0x1f6345 of _0xa58f2)(_0x1f6345['hasClass']('ck-suggestion-marker-split')||_0x1f6345['hasClass']('ck-suggestion-marker-merge'))&&(_0x10f245['mapper']['unbindElementFromMarkerName'](_0x1f6345,_0x48cf22['markerName']),_0x10f245['writer']['remove'](_0x1f6345));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f9397,_0x3c08bb,_0x50a081)=>{const _0x29d630=_0x3c08bb['markerName']['split'](':')[0x1],_0x3d2923=this['_getChangeFromId'](_0x29d630);if(!_0x3d2923)return null;const _0x497ebc='add'==_0x3d2923['type']?'split':'merge';if(_0x50a081['consumable']['test'](_0x3c08bb['markerRange'],_0x2f9397['name']))for(const _0x2e7548 of _0x3c08bb['markerRange']['getItems']()){if(!_0x2e7548['is']('element','softBreak'))continue;const _0x332c81=_0x50a081['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497ebc}),_0x2bfb43=_0x50a081['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e7548));_0x3d2923['data']['isSuggestion']&&_0x50a081['writer']['addClass']('ck-suggestion-marker-'+_0x497ebc+'-new',_0x332c81),this['activeChange']==_0x3d2923&&_0x50a081['writer']['addClass']('ck-suggestion-marker--active',_0x332c81),_0x50a081['writer']['insert'](_0x2bfb43,_0x332c81),_0x50a081['mapper']['bindElementToMarker'](_0x332c81,_0x3c08bb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4389d2=>{for(const _0x5360ba of this['editor']['model']['document']['getRootNames']()){const _0x32e7ab=this['editor']['model']['document']['getRoot'](_0x5360ba),_0x2afebc=this['editor']['editing']['view']['document']['getRoot'](_0x5360ba);if(_0x2afebc){const _0x45e58e=_0x32e7ab['getAttribute']('revisionHistoryAttachChange');if(_0x4389d2['removeAttribute']('data-change-id',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root-add',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root-remove',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root--active',_0x2afebc),_0x45e58e){const _0x221f5c=this['_getChangeFromId'](_0x45e58e);if(!_0x221f5c)return null;_0x4389d2['setAttribute']('data-change-id',_0x45e58e,_0x2afebc),_0x4389d2['addClass']('ck-revision-history-root-'+_0x221f5c['type'],_0x2afebc),this['activeChange']==_0x221f5c&&_0x4389d2['addClass']('ck-revision-history-root--active',_0x2afebc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5dfb74=>'revision-comment:'+_0x5dfb74,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x26ea3a=>'revision-suggestion:'+_0x26ea3a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x325fad=>({'name':'suggestion:'+_0x325fad,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x38ae35=>{const _0x2cec7a=_0x38ae35['markerName']['split'](':')[0x1];return'insertion'!=_0x2cec7a&&'deletion'!=_0x2cec7a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2cec7a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x125376,_0x5f0dc5,_0x42f136)=>{const _0x4be927=_0x42f136['mapper']['markerNameToElements'](_0x5f0dc5['markerName']);if(_0x4be927){for(const _0x3e24e2 of _0x4be927)_0x3e24e2['is']('uiElement')&&(_0x42f136['mapper']['unbindElementFromMarkerName'](_0x3e24e2,_0x5f0dc5['markerName']),_0x42f136['writer']['remove'](_0x3e24e2));}},{'priority':'high'});}['_getChangeFromId'](_0x41de98){return this['_changeIdToChange']['get'](_0x41de98);}['_getViewForChange'](_0x35e8d7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x35e8d7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x294c58,_0xddcc55,_0x75df23,_0x2c8ad9)=>{_0x2c8ad9&&this['_balloon']['remove'](_0x2c8ad9),_0x75df23&&(this['_balloon']['add']({'view':_0x75df23,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1181c0=this['editor']['editing'],_0x5ab678=this['_getChangeFromId'](_0x75df23['changeId']);let _0x47ca88;if(_0x5ab678['data']['isOnRoot']){const _0x280d66=_0x1181c0['view']['getDomRoot'](_0x5ab678['rootName']);_0x47ca88=Array['from'](_0x280d66['getClientRects']());}else{const _0x207cf7=this['editor']['model']['markers']['get']('revision:'+_0x75df23['changeId']);_0x47ca88=Array['from'](_0x1181c0['mapper']['markerNameToElements'](_0x207cf7['name']))['map'](_0x10af39=>_0x1181c0['view']['domConverter']['mapViewToDom'](_0x10af39))['map'](_0x1f7694=>Array['from'](_0x1f7694['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x47ca88[0x0];return _0x47ca88['find'](_0x5dd31e=>_0x5dd31e['top']-0x3<=this['_activeViewTarget']['y']&&_0x5dd31e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5dd31e['left']-0x3<=this['_activeViewTarget']['x']&&_0x5dd31e['right']+0x3>=this['_activeViewTarget']['x'])||_0x47ca88[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x19ad12,_0x42022d,_0x3e2d37,_0x54ba8e)=>{this['activeView']=_0x3e2d37?this['_getViewForChange'](_0x3e2d37):null,this['editor']['model']['change'](()=>{const _0x39d036=this['editor']['editing'];_0x54ba8e&&(_0x54ba8e['data']['isOnRoot']?_0x39d036['view']['change'](_0x1489ef=>{_0x1489ef['removeClass']('ck-revision-history-root--active',_0x39d036['view']['document']['getRoot'](_0x54ba8e['rootName']));}):_0x39d036['reconvertMarker']('revision:'+_0x54ba8e['id'])),_0x3e2d37&&(_0x3e2d37['data']['isOnRoot']?_0x39d036['view']['change'](_0xe83570=>{_0xe83570['addClass']('ck-revision-history-root--active',_0x39d036['view']['document']['getRoot'](_0x3e2d37['rootName']));}):_0x39d036['reconvertMarker']('revision:'+_0x3e2d37['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f9c55,_0x488f0c)=>{if(this['activeChange'])return;const _0x52b10d=this['_findChangeIdFromDomTarget'](_0x488f0c['target']),_0x40d108=this['_changeIdToChange']['get'](_0x52b10d);_0x40d108?(this['_activeViewTarget']={'x':_0x488f0c['domEvent']['x'],'y':_0x488f0c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40d108)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2de423,_0x4572e3)=>{const _0x28978f=this['_findChangeIdFromDomTarget'](_0x4572e3['target']),_0x3285b9=this['_changeIdToChange']['get'](_0x28978f);_0x3285b9?(this['_activeViewTarget']={'x':_0x4572e3['domEvent']['x'],'y':_0x4572e3['domEvent']['y']},_0x3285b9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3285b9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x101c97){do{const _0x245302=_0x101c97['getAttribute']('data-change-id');if(_0x245302)return _0x245302;_0x101c97=_0x101c97['parent'];}while(_0x101c97);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x35bc91=>{for(const _0x5a82e0 of this['editor']['model']['markers'])_0x35bc91['removeMarker'](_0x5a82e0);});}}function Z(_0x5360d2,_0x128818){return(_0x1fceb5,_0x529629,_0xf34611)=>{if(!_0xf34611['consumable']['test'](_0x529629['markerRange'],_0x1fceb5['name']))return;const _0x582dc3=_0x529629['markerRange']['getWalker'](),_0x2963fa=_0x529629['markerRange']['start'],_0x520579=_0x5360d2['model']['schema'];let _0x571a44=null,_0x53f9b5=null,_0x510ace=!0x1,_0x3a7d00=!0x1;for(const _0x41be45 of _0x582dc3){const _0x485c05=_0x41be45['item'];_0x510ace=_0x510ace||_0x520579['isContent'](_0x485c05);const _0x477868=_0xf34611['mapper']['toViewElement'](_0x485c05);if(_0x477868&&_0x477868['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41be45['type']&&(_0x520579['isBlock'](_0x485c05)&&!_0x520579['isLimit'](_0x485c05)&&(_0x485c05['nextSibling']||_0x2963fa['isAtEnd']?_0x571a44&&_0x571a44['parent']==_0x485c05||(_0x571a44=_0x485c05,_0x2f9506(_0x41be45['previousPosition']),_0x3a7d00=!0x0):_0x53f9b5=_0x53f9b5||_0x41be45['previousPosition']));}function _0x2f9506(_0x39fc88){const _0x39653c=_0xf34611['mapper']['toViewPosition'](_0x39fc88),_0x3f47fe=_0xf34611['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x128818});_0xf34611['writer']['insert'](_0x39653c,_0x3f47fe),_0xf34611['mapper']['bindElementToMarker'](_0x3f47fe,_0x529629['markerName']);}_0x510ace||_0x3a7d00||!_0x53f9b5||_0x2f9506(_0x53f9b5);};}class pt extends _0x1bb048{constructor(_0x32da1b){super(_0x32da1b);const _0xe9adc9=_0x32da1b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xe9adc9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe9adc9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x476f23=this['editor'],_0x18cc11=_0x476f23['plugins']['get'](d),_0x1a1217=_0x18cc11['isReady']?_0x18cc11['diff']['newRevisionId']:null;_0x476f23['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a1217);}['refresh'](){const {isReady:_0x43cf85,isEnabled:_0x4ff7cf,repository:_0x5a2f10,diff:_0x461c92}=this['editor']['plugins']['get'](d),_0x1e9b55=_0x461c92&&_0x5a2f10['getLaterVisibleRevision'](_0x461c92['newRevisionId']);this['isEnabled']=_0x43cf85&&_0x4ff7cf&&Boolean(_0x1e9b55);}}class _t extends _0x1bb048{['_step'];constructor(_0x3c8040,{direction:_0x3050dd}){super(_0x3c8040);const _0x1e3c20=_0x3c8040['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3050dd?0x1:-0x1,this['listenTo'](_0x1e3c20,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e3c20,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1e3c20,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4ffbe7=this['editor'],_0x19dd96=_0x4ffbe7['plugins']['get'](d),{isNavigationMode:_0x39a073,currentChangeNumber:_0x4b7dc3}=_0x19dd96;let _0x1968f4;if(_0x19dd96['activeChange']=_0x39a073?_0x19dd96['diff']['changes']['get'](_0x4b7dc3+this['_step']):_0x19dd96['diff']['changes']['first'],_0x19dd96['activeChange']['data']['isOnRoot'])_0x1968f4=_0x4ffbe7['editing']['view']['getDomRoot'](_0x19dd96['activeChange']['rootName']);else{const _0x4b793f=_0x4ffbe7['model']['markers']['get']('revision:'+_0x19dd96['activeChange']['id']);_0x1968f4=_0x5bfa7a(_0x4ffbe7['editing'],_0x4b793f);}_0x3f1c8e({'target':_0x1968f4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x284644,currentChangeNumber:_0x3d4802,numberOfChanges:_0xd90182,isReady:_0x1997fa,isEnabled:_0x435b9b}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x435b9b&&_0x1997fa&&_0xd90182)&&(!_0x284644||(0x1===this['_step']?_0x3d4802<_0xd90182-0x1:_0x3d4802>0x0));}}class ei extends ts{constructor(_0xf8649f){super(_0xf8649f);const _0x4e0936=this['bindTemplate'],_0x535494=new te(_0xf8649f),_0x27464a=new te(_0xf8649f);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',(_0x59a9f1,_0x264f72)=>_0x59a9f1&&_0x264f72>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51ed59,_0x5228ac,_0x410534,_0x45c77f)=>{if(!_0x51ed59)return m(_0xf8649f,'Loading...');if(!_0x410534)return m(_0xf8649f,'No\x20changes');const _0x345925=m(_0xf8649f,'NUMBER_OF_CHANGES',_0x410534);return _0x45c77f?m(_0xf8649f,'X_OF_Y_CHANGES',[_0x5228ac+0x1,_0x410534]):_0x345925;}),_0x535494['set']({'label':m(_0xf8649f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x27464a['set']({'label':m(_0xf8649f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x535494['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x27464a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x535494['on']('execute',()=>this['fire']('execute','backward')),_0x27464a['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',_0x4e0936['if']('_isStatusLabelVisible','ck-hidden',_0x1d256b=>!_0x1d256b)]},'children':[{'text':_0x4e0936['to']('isNavigationMode',_0x46d253=>_0x46d253?m(_0xf8649f,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xf8649f,'Total')+':\x20')}]},{'text':_0x4e0936['to']('_statusText')}]},new _0x49f459(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x535494,_0x27464a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x32cb53{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5f4281=this['editor']['editing']['view'];_0x5f4281['change'](_0x21cbb5=>{for(const _0x2ea736 of _0x5f4281['document']['roots'])_0x21cbb5['addClass'](le,_0x2ea736);});}['hide'](){const _0x158a81=this['editor']['editing']['view'];_0x158a81['change'](_0x1ce7b3=>{for(const _0x2f05a5 of _0x158a81['document']['roots'])_0x1ce7b3['removeClass'](le,_0x2f05a5);});}}class g extends _0x32cb53{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x48050f=this['editor'],_0xdf2129=_0x48050f['plugins']['get'](d),_0x301d5e=_0x48050f['plugins']['get'](de);_0x48050f['ui']['componentFactory']['add']('exitToEditing',_0x207a8f=>{const _0x4e7438=new te(_0x207a8f);return _0x4e7438['set']({'label':m(_0x207a8f,'Back\x20to\x20editing'),'icon':_0xfd812b['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4e7438,'execute',()=>{_0x48050f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4e7438;}),_0x48050f['ui']['componentFactory']['add']('restoreRevision',_0x56e0d3=>{const _0x3337c6=new te(_0x56e0d3);return _0x3337c6['set']({'label':m(_0x56e0d3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3337c6['bind']('isEnabled')['to'](_0x48050f['commands']['get']('restoreRevision')),this['listenTo'](_0x3337c6,'execute',()=>_0x48050f['execute']('restoreRevision')),_0x3337c6;}),_0x48050f['ui']['componentFactory']['add']('changesNavigation',_0x1a9aca=>{const _0x393a8c=new ei(_0x1a9aca),_0x3f72b6=_0x48050f['commands']['get']('showPreviousChange'),_0x5adb0b=_0x48050f['commands']['get']('showNextChange');return _0x393a8c['bind']('isBackwardNavigationEnabled')['to'](_0x3f72b6,'isEnabled'),_0x393a8c['bind']('isForwardNavigationEnabled')['to'](_0x5adb0b,'isEnabled'),_0x393a8c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xdf2129),this['listenTo'](_0x393a8c,'execute',(_0x4cf4e5,_0x4b38e8)=>{_0x48050f['execute']('forward'===_0x4b38e8?'showNextChange':'showPreviousChange');}),_0x393a8c;}),_0x301d5e['show'](),_0xdf2129['on']('change:isReady',(_0x4872de,_0x1a9540,_0x848536)=>{_0x848536?_0x301d5e['hide']():_0x301d5e['show']();});}}class at extends _0x1c9501{['_resizeObserver']=null;constructor(_0x2c70c9,_0x5014da){super(_0x2c70c9,_0x5014da);const _0x16accb=this['bindTemplate'];this['set']({'label':m(_0x2c70c9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2c70c9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x16accb['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xfbf9cb=this['fieldView']['element'];this['_tooltipString']=_0xfbf9cb['scrollWidth']>_0xfbf9cb['clientWidth']&&_0xfbf9cb['value']||'';}}class ai extends ts{constructor(_0x1ac02e,_0x40e045,_0x580872){super(_0x1ac02e);const _0x501d63=new _0x247bb3();_0x501d63['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3e2bb7=['ck','ck-revision-history-sidebar__revision-author'];_0x580872&&_0x3e2bb7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2fee3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1ac02e,_0x580872?'Revision\x20creator':'Revision\x20author')},'children':[_0x501d63,_0x40e045['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e2bb7},'children':_0x2fee3f});}}function _i(_0x48ac31,_0x10cf3f){const _0x28f866=_0x48ac31['bindTemplate'],_0x3cda93=_0x48ac31['locale'],_0x2709c7=_0x1e2d2c(_0x3cda93);_0x2709c7['panelPosition']='sw';const _0x1c1ccb=function(_0x46195a,_0x65f5ce){const _0x2c035b=function(_0x74cedc,_0x5d0112){const _0x305445=_0x74cedc['locale'],_0x2b0d28={'Compare\x20against\x20selected':m(_0x305445,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x305445,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x305445,'Restore\x20this\x20revision')};return _0x5d0112['map'](_0x5e00b0=>{const _0x39dcf7=_0x2b0d28[_0x5e00b0['name']];return _0x39dcf7&&_0x39dcf7!==_0x5e00b0['name']&&(_0x5e00b0['name']=_0x39dcf7),_0x5e00b0;});}(_0x46195a,_0x65f5ce),_0x39d4c3=new _0x47b816();for(const _0x3f3cb2 of _0x2c035b){const _0x2027d0={'type':'button','model':new _0x58a8c5({'label':_0x3f3cb2['name'],'class':_0x3f3cb2['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f3cb2['action']})};_0x2027d0['model']['bind']('isEnabled')['to'](_0x46195a,'isActionsDropdownOpen',_0x28cd88=>'function'!=typeof _0x3f3cb2['isEnabled']||(!_0x28cd88||_0x3f3cb2['isEnabled'](_0x46195a))),_0x39d4c3['add'](_0x2027d0);}return _0x39d4c3;}(_0x48ac31,_0x10cf3f);return _0x48ac31['bind']('isActionsDropdownOpen')['to'](_0x2709c7,'isOpen'),_0x2709c7['buttonView']['set']({'label':m(_0x3cda93,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xfd812b['threeVerticalDots']}),_0x2709c7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x28f866['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x28f866['to'](_0x1e7f71=>_0x1e7f71['stopPropagation']())}}),_0x2709c7['on']('execute',_0x2595a1=>{_0x48ac31['isReady']&&'function'==typeof _0x2595a1['source']['_action']&&_0x2595a1['source']['_action'](_0x48ac31);}),to(_0x2709c7,_0x1c1ccb,{'role':'menu'}),_0x2709c7['listenTo'](_0x48ac31,'change:isActionsDropdownOpen',(_0x349a11,_0x567abb,_0x40487e)=>{if(_0x40487e)for(const _0x4fab91 of _0x2709c7['listView']['items']){const _0x5fe226=_0x4fab91['children']['first'],_0x5a97c8=_0x10cf3f['find'](_0x17441f=>_0x17441f['action']===_0x5fe226['_action'])['isVisible'];_0x4fab91['isVisible']=void 0x0===_0x5a97c8||_0x5a97c8(_0x48ac31);}}),_0x2709c7;}class ri extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x184c88(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1464b5,_0x38f00f,_0x4d0bdc,_0x1ba077){super(_0x1464b5);const _0x199df6=this['bindTemplate'],_0x992f48=function(_0x262570,_0x246fc8){const _0x89ecdc=Array['from'](_0x246fc8['authors'])['filter'](_0xa6b713=>_0xa6b713!=_0x246fc8['creator']);return _0x246fc8['creator']&&_0x89ecdc['unshift'](_0x246fc8['creator']),_0x89ecdc['map'](_0x336da3=>new ai(_0x262570,_0x336da3,_0x336da3==_0x246fc8['creator']));}(_0x1464b5,_0x38f00f);this['id']=_0x38f00f['id'],this['_revision']=_0x38f00f,this['_requireRevisionName']=_0x1ba077,this['bind']('name','createdAt')['to'](_0x38f00f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x468a06=>{return _0x57f621=_0x1464b5['uiLanguage'],(_0x2bf0ae=_0x468a06)['toLocaleDateString'](_0x57f621,{'month':'long','day':'numeric'})+',\x20'+_0x2bf0ae['toLocaleTimeString'](_0x57f621,{'hour':'numeric','minute':'numeric'});var _0x57f621,_0x2bf0ae;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1464b5,_0x2f53a3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x14dbe0=>_0x14dbe0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3307be,_0x14e8f6)=>_0x3307be&&_0x14e8f6),this['revisionActionsView']=_0x4d0bdc&&_0x4d0bdc['length']?_i(this,_0x4d0bdc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x199df6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x199df6['if']('isEnabled','ck-disabled',_0x242955=>!_0x242955),_0x199df6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x199df6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x199df6['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':_0x199df6['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':_0x992f48}]},this['revisionActionsView']],'on':{'click':_0x199df6['to'](_0x35550d=>{_0x35550d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x239786=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x239786,'change',()=>{this['_requireRevisionName']&&!_0x239786['value']||this['fire']('setName',{'id':this['id'],'name':_0x239786['value']}),_0x239786['value']||(_0x239786['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function oi(_0x1623de,_0x495386){const _0x597ad6=_0xa55a2d['fromJSDate'](_0x1623de)['setLocale'](_0x495386),_0x4c49ef=_0xa55a2d['local'](),_0x49ed0d=_0x4c49ef['minus']({'days':0x1})['startOf']('day');let _0x3edf7c,_0x5a279e;return _0x597ad6['hasSame'](_0x4c49ef,'day')?(_0x3edf7c=_0x597ad6['startOf']('day')['toJSDate'](),_0x5a279e=_0x597ad6['toRelativeCalendar']()):_0x597ad6['hasSame'](_0x49ed0d,'day')?(_0x3edf7c=_0x49ed0d['toJSDate'](),_0x5a279e=_0x597ad6['toRelativeCalendar']()):_0x597ad6['hasSame'](_0x4c49ef,'week')?(_0x3edf7c=_0x597ad6['startOf']('week')['toJSDate'](),_0x5a279e=_0x597ad6['weekdayLong']||''):_0x597ad6['hasSame'](_0x4c49ef,'year')?(_0x3edf7c=_0x597ad6['startOf']('month')['toJSDate'](),_0x5a279e=_0x597ad6['monthLong']||''):(_0x3edf7c=_0x597ad6['startOf']('year')['toJSDate'](),_0x5a279e=String(_0x597ad6['year'])),{'startDate':_0x3edf7c,'localizedPeriodName':_0x5a279e};}class hi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x928ddd,_0x597e58,_0x25ca66,_0x44b0c2){super(_0x928ddd);const _0x513a9a=oi(_0x597e58,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x597e58,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x25ca66,this['_requireRevisionName']=_0x44b0c2,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':_0x513a9a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3da916){const _0x24ef9c=new ri(this['locale'],_0x3da916,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x24ef9c);}['removeRevision'](_0x2723dc){const _0xfd9d2=this['revisionViews']['find'](_0x3a730f=>_0x3a730f['id']===_0x2723dc['id']);this['revisionViews']['remove'](_0xfd9d2);}}class cs extends ts{constructor(_0x28ae10){super(_0x28ae10);const _0x5bb422=new _0x247bb3();_0x5bb422['content']=_0xfd812b['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5bb422,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x28ae10,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x594b6c,_0x30b38f,_0x345479,_0x1a70f7){super(_0x594b6c);const _0x47e147=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x30b38f,this['_revisionActions']=_0x345479,this['_requireRevisionName']=_0x1a70f7,this['on']('select',(_0x3b8b21,_0x128eff)=>{this['fire']('revisionSelected',_0x128eff);}),this['on']('setName',(_0x46ce4f,_0x426e79)=>{this['fire']('revisionSetName',_0x426e79);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x594b6c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x47e147['if']('isEnabled','ck-disabled',_0xc7c1da=>!_0xc7c1da)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x507e96 of this['_revisions'])this['_addRevision'](_0x507e96);this['_revisions']['on']('add',(_0x5ac97b,_0x487ae4)=>{this['_addRevision'](_0x487ae4);}),this['_revisions']['on']('remove',(_0x45b851,_0x2f337f)=>{this['_removeRevision'](_0x2f337f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2942af=>_0x2942af['revisionViews']['map'](_0x9d49f5=>_0x9d49f5))['flat']();}['selectRevision'](_0x2829b9){for(const _0x4435ca of this['revisionViews'])_0x2829b9&&_0x2829b9['id']===_0x4435ca['id']?_0x4435ca['select']():_0x4435ca['deselect']();}['highlightRevisions'](_0x300bec){for(const _0x3ff969 of this['revisionViews'])_0x300bec['some'](({id:_0x552009})=>_0x552009===_0x3ff969['id'])?_0x3ff969['highlight']():_0x3ff969['unhighlight']();}['_addRevision'](_0x3130ab){const _0x3c9e09=oi(_0x3130ab['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xe35bf9=this['timePeriodViews']['get'](0x0);_0xe35bf9&&_0xe35bf9['startDate']['getTime']()===_0x3c9e09['getTime']()||(_0xe35bf9=new hi(this['locale'],_0x3c9e09,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xe35bf9)),_0xe35bf9['addRevision'](_0x3130ab);}['_removeRevision'](_0x150067){const _0x2530ed=oi(_0x150067['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2530ed)['removeRevision'](_0x150067);}['_getTimePeriodViewByStartDate'](_0x5e6a98){return this['timePeriodViews']['find'](_0x558701=>_0x558701['startDate']['getTime']()===_0x5e6a98['getTime']());}}class w extends _0x32cb53{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d7de5,_0x1204e5){super(_0x1204e5),this['sourceElement']=_0x5d7de5,this['model']['document']['createRoot']();const _0xf53737=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xf53737);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53719c,_0x52f13d){const _0x184582=new this(_0x53719c,_0x52f13d);return await _0x184582['initPlugins'](),await _0x184582['ui']['init'](_0x53719c),await _0x184582['data']['init'](_0x184582['config']['get']('initialData')||''),_0x184582['fire']('ready'),_0x184582;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4011e1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ebe32){function _0x177dbe(_0x247e44){return _0x247e44['map'](_0xefad7=>String['fromCharCode'](_0xefad7))['join']('');}super(_0x4ebe32),this['result']='end',_0x4ebe32[_0x177dbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x177dbe([0x76,0x69,0x65,0x77])][_0x177dbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x177dbe([0x61,0x75,0x74,0x6f]),_0x4ebe32[_0x177dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x177dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x177dbe([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x177dbe([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x177dbe([0x6f,0x6b])});}}class k extends _0x4011e1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xb60835){if(super(_0xb60835),!this['editor']['config']['get']('revisionHistory'))throw new _0x522924('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x25e8c4=>this['_showRevisionViewer']({..._0x25e8c4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3ffc49=>this['_closeRevisionViewer'](_0x3ffc49)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x6caf75=>this['_restoreRevision'](_0x6caf75)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x410eb7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x410eb7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb72ca4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb72ca4);}['getRevision'](_0x33d02f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33d02f);}['getRevisions'](_0x336d34){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x336d34||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x391490=this['editor'],_0x5ef077=_0x1d984c(_0x391490,p),_0x24cf4f=_0x391490['plugins']['get']('RevisionTracker'),_0x23e0ec=_0x391490['plugins']['get']('Users')['users'];return _0x5ef077['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5ef077['lazyRoots'],(_0x5ef077['plugins']['push'](Rt,d,g,class extends _0x4011e1{static get['requires'](){return[d,'Users'];}['init'](){const _0x30286d=this['editor']['plugins']['get']('Users');for(const _0x214ed0 of _0x23e0ec)_0x214ed0['isAnonymous']||_0x30286d['getUser'](_0x214ed0['id'])||_0x30286d['addUser'](_0x214ed0);const _0x11d2bf=_0x24cf4f['repository']['getRevisions']();let _0x52c36e=null;const _0x5696c1=this['editor']['plugins']['get']('RevisionViewer');_0x5696c1['adapter']=_0x24cf4f['adapter'],_0x5696c1['bind']('isEnabled')['to'](_0x24cf4f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x391490,'isReadOnly',_0x1c940e=>!_0x1c940e);for(const _0x5f0e8b of _0x11d2bf){const _0x3b3002=null===_0x5f0e8b['creator'];if(_0x3b3002&&_0x5f0e8b['toVersion']===_0x5f0e8b['fromVersion'])continue;const _0x290e45=_0x5f0e8b['toJSON']();_0x5696c1['addRevisionData'](_0x290e45,(_0x1e4baa,_0x4d230b,_0x33de0e)=>{if(_0x3b3002){if(_0x52c36e)_0x52c36e['_update'](_0x1e4baa,_0x4d230b);else{if(!_0x4d230b){const _0x42e081=_0x33de0e['toJSON']();_0x42e081['id']=_0x316b02(),_0x24cf4f['saveRevision'](_0x42e081,_0x33de0e['toVersion'])['then'](_0x2929a4=>{_0x52c36e=_0x2929a4;});}}}else _0x5f0e8b['_update'](_0x1e4baa,_0x4d230b);});}}},w),_0x5ef077);}['_enhanceShowRevisionViewerCallback'](){const _0x23773b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1b9805=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41f64a=this['editor']['plugins']['get']('Autosave');await _0x41f64a['save']();}else await _0x1b9805['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36b7bd=this['editor']['plugins']['get']('Dialog');_0x36b7bd['isOpen']&&_0x36b7bd['hide']();}const _0x1a6b8e=this['_getRevisionViewerEditorConfig']();return _0x23773b(_0x1a6b8e)['then'](_0xb3fc44=>{return(this['_viewerEditor']=_0xb3fc44,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xb3fc44;})['catch'](_0x600dcf=>(console['error'](_0x600dcf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5b99d2=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5b99d2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x29572a=this['editor']['plugins']['get']('Annotations');_0x29572a['refreshVisibility'](),_0x29572a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10f798){const _0x4cf4fb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22f191=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc9f8cf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xc9f8cf,_0x10f798)['then'](_0x24c4fb=>(_0x22f191['style']['display']='block',_0x4cf4fb['style']['display']='none',_0x24c4fb));}['_closeRevisionViewer'](_0x2c640f){const _0x54ce24=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x54ce24['style']['display']='',_0x2c640f['destroy']();}async['_restoreRevision'](_0x1160c5){const _0x492cb2=this['editor'],_0x2decb5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c6170=_0x492cb2['plugins']['get']('RevisionTracker'),_0x226c09=_0x2decb5['repository']['getRevision'](_0x1160c5);let _0x5cdd29,_0x45df3d,_0x6d86a2;try{_0x5cdd29=await _0x2decb5['getRevisionData'](_0x226c09),_0x45df3d=await _0x2decb5['getRevisionRootsAttributes'](_0x226c09);}catch(_0x32f89a){return void console['error'](_0x32f89a);}_0x492cb2['model']['change'](_0x5515d3=>{for(const _0x461516 of Array['from'](_0x492cb2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5515d3['removeMarker'](_0x461516);}),_0x2decb5['isReady']=!0x1,_0x492cb2['model']['enqueueChange'](_0x16c5bf=>{_0x16c5bf['setSelection'](null),_0x16c5bf['removeSelectionAttribute'](_0x492cb2['model']['document']['selection']['getAttributeKeys']());const _0x45571d=Object['keys'](_0x5cdd29);for(const _0x37d49e of _0x492cb2['model']['document']['roots'])'$graveyard'!=_0x37d49e['rootName']&&_0x37d49e['isAttached']()&&!_0x45571d['includes'](_0x37d49e['rootName'])&&_0x16c5bf['detachRoot'](_0x37d49e);for(const _0x3d0369 of _0x45571d){let _0x2dbd33=_0x492cb2['model']['document']['getRoot'](_0x3d0369);_0x2dbd33&&_0x2dbd33['isAttached']()||(_0x2dbd33=_0x16c5bf['addRoot'](_0x3d0369));const _0x2b6396=_0x45df3d[_0x3d0369],_0x52d594=Object['keys'](_0x2b6396),_0x58c377=_0x5cdd29[_0x3d0369];for(const _0x3f9f5f of _0x2dbd33['getAttributeKeys']())_0x52d594['includes'](_0x3f9f5f)||_0x16c5bf['removeAttribute'](_0x3f9f5f,_0x2dbd33);for(const _0x37e86c of _0x52d594)_0x16c5bf['setAttribute'](_0x37e86c,_0x45df3d[_0x3d0369][_0x37e86c],_0x2dbd33);_0x16c5bf['remove'](_0x16c5bf['createRangeIn'](_0x2dbd33)),_0x16c5bf['insert'](_0x492cb2['data']['parse'](_0x58c377,_0x2dbd33),_0x2dbd33,0x0);}});const _0x2f3f21=m(_0x492cb2['locale'],'Restored');if(_0x226c09['name'])_0x6d86a2=-0x1==_0x226c09['name']['indexOf'](_0x2f3f21)?_0x2f3f21+':\x20'+_0x226c09['name']:_0x226c09['name'];else _0x6d86a2=_0x2f3f21+':\x20'+(_0x226c09['createdAt']['toLocaleDateString'](_0x492cb2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x226c09['createdAt']['toLocaleTimeString'](_0x492cb2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c6170['saveRevision']({'name':_0x6d86a2}),_0x2decb5['isReady']=!0x0,_0x492cb2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x51b3a7){super(_0x51b3a7),this['_revisionViewer']=_0x51b3a7['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3dd27a=this['_revisionsRepository']['_revisions'],_0x3401cf=this['_createRevisionActions'](),_0x5ab1d7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3dd27a,_0x3401cf,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',(_0x5e4e32,_0x2c032c)=>{_0x2c032c['revisionViews']['on']('add',(_0x1795dd,_0x261d5d)=>{_0x261d5d['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)),_0x5ab1d7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1c24b2=this['_revisionsRepository']['getRevision'](0x0);if(_0x1c24b2){const _0xdeea1b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c24b2['id']);this['_revisionViewer']['compare'](_0x1c24b2,_0xdeea1b);}}['_handleRevisionSelected'](_0x469b16,_0x585f49){const _0x54c2e0=this['_revisionsRepository']['getRevision'](_0x585f49['id']),_0x25c8af=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x54c2e0['id']);this['_revisionViewer']['compare'](_0x54c2e0,_0x25c8af);}['_handleRevisionSetName'](_0x441305,_0x411222){this['_revisionsRepository']['getRevision'](_0x411222['id'])['setName'](_0x411222['name']);}['_handleDiffChange'](_0x225651,_0x342ba5,_0x158b06){const _0x99dc78=this['_revisionsRepository']['getRevisionsInDiff'](_0x158b06);_0x99dc78['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x99dc78),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x99dc78[0x0]));}['_createRevisionActions'](){const _0x17fd94=this['editor'],_0x22d2c0=w['availableRevisionActions'],_0x14c902=_0x17fd94['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x14c902['length'])return _0x14c902['map'](_0x1d055c=>{const _0x52aa4a='string'==typeof _0x1d055c?Object['assign']({},_0x22d2c0[_0x1d055c]):_0x1d055c;return _0x52aa4a['action']=_0x52aa4a['action']['bind'](this,_0x17fd94),_0x52aa4a['isVisible']&&(_0x52aa4a['isVisible']=_0x52aa4a['isVisible']['bind'](this,_0x17fd94)),_0x52aa4a;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x444cec},_0x27eb88)=>{const _0x334b9a=_0x444cec['get'](d),_0x21b870=_0x334b9a['repository'];let _0x20bb4b=_0x334b9a['diff']['newRevisionId'],_0x47f5dc=_0x27eb88['id'];_0x21b870['getIndex'](_0x20bb4b)>_0x21b870['getIndex'](_0x47f5dc)&&([_0x20bb4b,_0x47f5dc]=[_0x47f5dc,_0x20bb4b]),_0x334b9a['compare'](_0x20bb4b,_0x47f5dc);},'isVisible':({plugins:_0x17a498},_0x542b42)=>{const _0x4a6075=_0x17a498['get'](d);return!(_0x4a6075['repository']['getRevisionsInDiff'](_0x4a6075['diff'])['length']>0x2)&&!_0x542b42['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x52b6cb,{id:_0x5b58aa})=>{_0x52b6cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b58aa);},'isVisible':({plugins:_0x2066ce},_0x23e9b4)=>!!_0x2066ce['get'](d)['repository']['getLaterVisibleRevision'](_0x23e9b4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x529925},{id:_0x16267c,revisionNameView:_0x1f9c51})=>{const _0x24167e=_0x529925['get'](d),_0x162bdd=_0x24167e['repository']['getEarlierVisibleRevision'](_0x16267c);_0x24167e['compare'](_0x16267c,_0x162bdd),_0x1f9c51['focus'](),_0x1f9c51['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x50e609,_0x1aa144){super(_0x50e609),this['_view']=_0x1aa144,this['_toolbarConfig']=ot(_0x50e609['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x4d0f4c){const _0x3950db=this['editor'],_0x565c49=this['view'],_0xf6e2fe=_0x3950db['editing']['view'],_0x4294a9=_0x565c49['editable'],_0xd2810b=_0xf6e2fe['document']['getRoot']();_0x4294a9['name']=_0xd2810b['rootName'],_0x565c49['render']();const _0x215d1e=_0x4294a9['element'];this['setEditableElement'](_0x4294a9['name'],_0x215d1e),_0x565c49['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xf6e2fe['attachDomRoot'](_0x215d1e),this['_elementReplacer']['replace'](_0x4d0f4c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xe627a1=this['view'],_0x29d58d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x29d58d['detachDomRoot'](_0xe627a1['editable']['name']),_0xe627a1['destroy']();}['_initToolbar'](){const _0x2a82cc=this['view'];_0x2a82cc['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2a82cc['stickyPanel']['limiterElement']=_0x2a82cc['element'],_0x2a82cc['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x437bd5})=>_0x437bd5),_0x2a82cc['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2a82cc['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x128902,_0x4be904,_0x59c760={}){super(_0x128902),this['stickyPanel']=new ut(_0x128902),this['toolbar']=new lt(_0x128902,{'shouldGroupWhenFull':_0x59c760['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x128902,_0x4be904);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4410f6,_0x4bb1c6){super(_0x4bb1c6),this['sourceElement']=_0x4410f6,this['model']['document']['createRoot']();const _0x273095=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x273095);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x519088,_0x5b149c){const _0x50c50a=new this(_0x519088,_0x5b149c);return await _0x50c50a['initPlugins'](),await _0x50c50a['ui']['init'](_0x519088),await _0x50c50a['data']['init'](_0x50c50a['config']['get']('initialData')||''),_0x50c50a['fire']('ready'),_0x50c50a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x32cb53{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28be13){function _0x1c1488(_0x4795ee){return _0x4795ee['map'](_0x5804b1=>String['fromCharCode'](_0x5804b1))['join']('');}super(_0x28be13),this['result']='end',_0x28be13[_0x1c1488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c1488([0x76,0x69,0x65,0x77])][_0x1c1488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c1488([0x61,0x75,0x74,0x6f]),_0x28be13[_0x1c1488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c1488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c1488([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c1488([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c1488([0x6f,0x6b])});}}class k extends _0x32cb53{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x476a6e){if(super(_0x476a6e),!this['editor']['config']['get']('revisionHistory'))throw new _0x332087('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5d12f1=>this['_showRevisionViewer']({..._0x5d12f1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36fb4b=>this['_closeRevisionViewer'](_0x36fb4b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xd50b28=>this['_restoreRevision'](_0xd50b28)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5265ab){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5265ab;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x438ba6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x438ba6);}['getRevision'](_0x14bc70){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14bc70);}['getRevisions'](_0x5a2fae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5a2fae||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2de50b=this['editor'],_0x181fb0=_0x530fd4(_0x2de50b,p),_0x5447c6=_0x2de50b['plugins']['get']('RevisionTracker'),_0x203d59=_0x2de50b['plugins']['get']('Users')['users'];return _0x181fb0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x181fb0['lazyRoots'],(_0x181fb0['plugins']['push'](bt,d,g,class extends _0x32cb53{static get['requires'](){return[d,'Users'];}['init'](){const _0xd44fbb=this['editor']['plugins']['get']('Users');for(const _0x10d800 of _0x203d59)_0x10d800['isAnonymous']||_0xd44fbb['getUser'](_0x10d800['id'])||_0xd44fbb['addUser'](_0x10d800);const _0x548c1f=_0x5447c6['repository']['getRevisions']();let _0x2b4362=null;const _0x22d8eb=this['editor']['plugins']['get']('RevisionViewer');_0x22d8eb['adapter']=_0x5447c6['adapter'],_0x22d8eb['bind']('isEnabled')['to'](_0x5447c6),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2de50b,'isReadOnly',_0x26d5f6=>!_0x26d5f6);for(const _0x396a82 of _0x548c1f){const _0x169015=null===_0x396a82['creator'];if(_0x169015&&_0x396a82['toVersion']===_0x396a82['fromVersion'])continue;const _0xd40860=_0x396a82['toJSON']();_0x22d8eb['addRevisionData'](_0xd40860,(_0x3ca84c,_0x2ddf32,_0x4e3dd1)=>{if(_0x169015){if(_0x2b4362)_0x2b4362['_update'](_0x3ca84c,_0x2ddf32);else{if(!_0x2ddf32){const _0x4bc67e=_0x4e3dd1['toJSON']();_0x4bc67e['id']=_0x56c913(),_0x5447c6['saveRevision'](_0x4bc67e,_0x4e3dd1['toVersion'])['then'](_0x257b80=>{_0x2b4362=_0x257b80;});}}}else _0x396a82['_update'](_0x3ca84c,_0x2ddf32);});}}},w),_0x181fb0);}['_enhanceShowRevisionViewerCallback'](){const _0x580875=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4ef712=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1d1470=this['editor']['plugins']['get']('Autosave');await _0x1d1470['save']();}else await _0x4ef712['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x21accd=this['editor']['plugins']['get']('Dialog');_0x21accd['isOpen']&&_0x21accd['hide']();}const _0x22ed31=this['_getRevisionViewerEditorConfig']();return _0x580875(_0x22ed31)['then'](_0x25d89e=>{return(this['_viewerEditor']=_0x25d89e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x25d89e;})['catch'](_0x41a6e0=>(console['error'](_0x41a6e0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x13f84b=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x13f84b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4d7db4=this['editor']['plugins']['get']('Annotations');_0x4d7db4['refreshVisibility'](),_0x4d7db4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x245d01){const _0x2327fa=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2f8e25=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48e4ae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x48e4ae,_0x245d01)['then'](_0x14aaec=>(_0x2f8e25['style']['display']='block',_0x2327fa['style']['display']='none',_0x14aaec));}['_closeRevisionViewer'](_0x14d2e4){const _0x5ad408=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5ad408['style']['display']='',_0x14d2e4['destroy']();}async['_restoreRevision'](_0x3ef204){const _0xe0e206=this['editor'],_0x29f138=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43c87e=_0xe0e206['plugins']['get']('RevisionTracker'),_0x4e7680=_0x29f138['repository']['getRevision'](_0x3ef204);let _0x5dba44,_0x3d219d,_0x1ce094;try{_0x5dba44=await _0x29f138['getRevisionData'](_0x4e7680),_0x3d219d=await _0x29f138['getRevisionRootsAttributes'](_0x4e7680);}catch(_0x32b817){return void console['error'](_0x32b817);}_0xe0e206['model']['change'](_0x280313=>{for(const _0x3d67e3 of Array['from'](_0xe0e206['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x280313['removeMarker'](_0x3d67e3);}),_0x29f138['isReady']=!0x1,_0xe0e206['model']['enqueueChange'](_0x310db2=>{_0x310db2['setSelection'](null),_0x310db2['removeSelectionAttribute'](_0xe0e206['model']['document']['selection']['getAttributeKeys']());const _0x3b18eb=Object['keys'](_0x5dba44);for(const _0x29088e of _0xe0e206['model']['document']['roots'])'$graveyard'!=_0x29088e['rootName']&&_0x29088e['isAttached']()&&!_0x3b18eb['includes'](_0x29088e['rootName'])&&_0x310db2['detachRoot'](_0x29088e);for(const _0x49c579 of _0x3b18eb){let _0x54eb3f=_0xe0e206['model']['document']['getRoot'](_0x49c579);_0x54eb3f&&_0x54eb3f['isAttached']()||(_0x54eb3f=_0x310db2['addRoot'](_0x49c579));const _0x430450=_0x3d219d[_0x49c579],_0x315a12=Object['keys'](_0x430450),_0x279c1c=_0x5dba44[_0x49c579];for(const _0x3e0e3e of _0x54eb3f['getAttributeKeys']())_0x315a12['includes'](_0x3e0e3e)||_0x310db2['removeAttribute'](_0x3e0e3e,_0x54eb3f);for(const _0x7f84c6 of _0x315a12)_0x310db2['setAttribute'](_0x7f84c6,_0x3d219d[_0x49c579][_0x7f84c6],_0x54eb3f);_0x310db2['remove'](_0x310db2['createRangeIn'](_0x54eb3f)),_0x310db2['insert'](_0xe0e206['data']['parse'](_0x279c1c,_0x54eb3f),_0x54eb3f,0x0);}});const _0x568ae3=m(_0xe0e206['locale'],'Restored');if(_0x4e7680['name'])_0x1ce094=-0x1==_0x4e7680['name']['indexOf'](_0x568ae3)?_0x568ae3+':\x20'+_0x4e7680['name']:_0x4e7680['name'];else _0x1ce094=_0x568ae3+':\x20'+(_0x4e7680['createdAt']['toLocaleDateString'](_0xe0e206['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e7680['createdAt']['toLocaleTimeString'](_0xe0e206['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43c87e['saveRevision']({'name':_0x1ce094}),_0x29f138['isReady']=!0x0,_0xe0e206['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|