@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250709.0 → 0.0.0-nightly-20250711.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x208296(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x19699d){super(),this['id']=_0x19699d['id']||_0x83b1c9(),this['creator']=_0x19699d['creator']||null,this['authors']=_0x19699d['authors']||[],this['diffData']=_0x19699d['diffData']||null,this['toVersion']=_0x19699d['toVersion']||0x0,this['fromVersion']=_0x19699d['fromVersion']||0x0,this['set']('name',_0x19699d['name']||''),this['set']('createdAt',_0x19699d['createdAt']||new Date()),this['set']('attributes',_0x19699d['attributes']||{});}['setName'](_0x1338c1){this['_update']({'name':_0x1338c1});}['setAttribute'](_0x11e4b3,_0x11f4b0){const _0x57b156=_0x29ca9e(this['attributes']);_0x71b26e(_0x57b156,_0x11e4b3,_0x11f4b0),this['_update']({'attributes':_0x57b156});}['removeAttribute'](_0x40ba20){const _0x1bcc7a=_0x29ca9e(this['attributes']);_0x102df9(_0x1bcc7a,_0x40ba20),this['_update']({'attributes':_0x1bcc7a});}['_update'](_0x3f4474,_0x5931a8=!0x1){let _0x3860bc=!0x1;const _0x2e9442={'id':this['id']},_0x5bc66e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x45d7ae of _0x5bc66e){const _0x483ee6=_0x3f4474[_0x45d7ae];void 0x0!==_0x483ee6&&_0x483ee6!==this[_0x45d7ae]&&(this[_0x45d7ae]=_0x483ee6,_0x2e9442[_0x45d7ae]=_0x483ee6,_0x3860bc=!0x0);}_0x3860bc&&(_0x2e9442['authors']&&(_0x2e9442['authorsIds']=_0x2e9442['authors']['map'](_0x3313d1=>_0x3313d1['id']),delete _0x2e9442['authors']),this['fire']('_update',_0x2e9442,_0x5931a8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17aced=>_0x17aced['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x55ca5c{['_revisions'];static get['requires'](){return[_0x39e2b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4b3eae){super(_0x4b3eae),this['_revisions']=new _0x390dd6();}['afterInit'](){!async function(_0x5c4925){const _0x4fc0a3=_0x23be3d([0x38,0x41,0x7a,0x32,0x52,0x57,0x48,0x62,0x34,0x64,0x76,0x4e,0x49,0x6b,0x69,0x35,0x46,0x4b,0x6f,0x77,0x6e,0x68,0x56,0x79,0x47,0x50,0x44,0x31,0x4d,0x55,0x71,0x51,0x4c,0x58,0x45,0x53,0x78,0x4a,0x65,0x6d,0x66,0x75,0x63,0x6a,0x42,0x37,0x4f,0x70,0x5a,0x59,0x73,0x39,0x6c,0x72,0x36,0x54,0x30,0x74,0x33,0x67,0x61,0x43]),_0xbf0f6d=0xeb829,_0x3b2799=0x5a1af934,_0x4d49ac=0x5a1d9424^_0x3b2799,_0x2aac2f=window[_0x23be3d([0x44,0x61,0x74,0x65])][_0x23be3d([0x6e,0x6f,0x77])](),_0x2b5e05=_0x5c4925[_0x23be3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d0d50=new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d047=>{_0x2b5e05[_0x23be3d([0x6f,0x6e,0x63,0x65])](_0x23be3d([0x72,0x65,0x61,0x64,0x79]),_0x54d047);}),_0x135822={[_0x23be3d([0x6b,0x74,0x79])]:_0x23be3d([0x45,0x43]),[_0x23be3d([0x75,0x73,0x65])]:_0x23be3d([0x73,0x69,0x67]),[_0x23be3d([0x63,0x72,0x76])]:_0x23be3d([0x50,0x2d,0x32,0x35,0x36]),[_0x23be3d([0x78])]:_0x23be3d([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]),[_0x23be3d([0x79])]:_0x23be3d([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]),[_0x23be3d([0x61,0x6c,0x67])]:_0x23be3d([0x45,0x53,0x32,0x35,0x36])},_0x54f22e=_0x2b5e05[_0x23be3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23be3d([0x67,0x65,0x74])](_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b8597(){let _0x364a33,_0x5e1949=null,_0x301df0=null;try{if(_0x54f22e==_0x23be3d([0x47,0x50,0x4c]))return _0x23be3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x364a33=_0x50156d(),!_0x364a33)return _0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x364a33[_0x23be3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x301df0=_0x40b071(_0x364a33[_0x23be3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x364a33[_0x23be3d([0x6a,0x74,0x69])])),await _0x165d7d()?_0x4d5402()?_0x96a799()?_0x23be3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15a932()?(_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23be3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e1949=_0x6c1b6f(_0x23be3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23be3d([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e1949=_0x6c1b6f(_0x23be3d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5407d2()):_0x23be3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23be3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23be3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96a799(){const _0xd6f8f1=[_0x23be3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23be3d([0x74,0x72,0x69,0x61,0x6c])][_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2aac2f/0x3e8:0xe10*_0x4d49ac;return _0x364a33[_0x23be3d([0x65,0x78,0x70])]<_0xd6f8f1;}function _0x4d5402(){const _0x3c14ff=_0x364a33[_0x23be3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c14ff)return!0x1;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x2a])))return!0x0;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x52,0x48])))return!0x0;if(_0x3c14ff[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x52,0x52,0x48]))){if(_0x3df18c())return!0x0;if(_0x140e0a()||_0xfa3a71())return!0x0;}return!0x1;}function _0x15a932(){const _0x124cde=_0x364a33[_0x23be3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x124cde||0x0==_0x124cde[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16a1e9}=new URL(window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x124cde[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1e9))return!0x0;const _0x3a574e=_0x16a1e9[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e]));return _0x124cde[_0x23be3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31ea9a=>_0x31ea9a[_0x23be3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23be3d([0x2a])))[_0x23be3d([0x6d,0x61,0x70])](_0x40560e=>_0x40560e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e])))[_0x23be3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58cd47=>_0x58cd47[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a574e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23be3d([0x6d,0x61,0x70])](_0x5f3813=>Array(_0x3a574e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f3813[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23be3d([0x66,0x69,0x6c,0x6c])](_0x5f3813[0x0]===_0x23be3d([0x2a])?_0x23be3d([0x2a]):'')[_0x23be3d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f3813))[_0x23be3d([0x73,0x6f,0x6d,0x65])](_0x33dd29=>_0x3a574e[_0x23be3d([0x65,0x76,0x65,0x72,0x79])]((_0xdaa203,_0x59135a)=>_0x33dd29[_0x59135a]===_0xdaa203||_0x33dd29[_0x59135a]===_0x23be3d([0x2a])));}function _0x5407d2(){return _0x5e1949&&_0x301df0?new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x466b4f,_0x7f0ba1)=>{_0x5e1949[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x466b4f,_0x7f0ba1),_0x301df0[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x41992f=>{_0x41992f!=_0x23be3d([0x56,0x61,0x6c,0x69,0x64])&&_0x466b4f(_0x41992f);},_0x7f0ba1);}):_0x5e1949||_0x301df0||_0x23be3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40b071(_0x507e1f,_0x4b9fec){return new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x324993=>{if(_0x4242e5())return _0x324993(_0x23be3d([0x56,0x61,0x6c,0x69,0x64]));_0x3659e7(),_0x2b5e05[_0x23be3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a5c3=!0x1;const _0x198796=_0x83b1c9();function _0x133287(_0x24fb51){return!!_0x24fb51&&(typeof _0x24fb51===_0x23be3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24fb51===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24fb51[_0x23be3d([0x74,0x68,0x65,0x6e])]===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24fb51[_0x23be3d([0x63,0x61,0x74,0x63,0x68])]===_0x23be3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d2eff(_0x2a8abf){_0x3f959e(_0x2a8abf)[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x5042b6=>{if(!_0x5042b6||_0x5042b6[_0x23be3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23be3d([0x6f,0x6b]))return _0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b9d72(_0x34f73a(_0x198796+_0x4b9fec))!=_0x5042b6[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23be3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x40a1a8=>(_0x2f6ded(),_0x40a1a8),()=>{const _0x3410cb=_0x2e666d();return null==_0x3410cb?(_0x2f6ded(),_0x23be3d([0x56,0x61,0x6c,0x69,0x64])):_0x23be3d(_0x2aac2f-_0x3410cb>(0x7e167d34^_0x3b2799)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x324993)[_0x23be3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d88bf=0x5a2c17b4^_0x3b2799;function _0x2f6ded(){const _0x5236ca=_0x23be3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9d72(_0x34f73a(_0x507e1f)),_0x252f20=_0x4fd0cc(_0x5b9d72(window[_0x23be3d([0x4d,0x61,0x74,0x68])][_0x23be3d([0x63,0x65,0x69,0x6c])](_0x2aac2f/_0x5d88bf)));window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23be3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5236ca,_0x252f20);}function _0x2e666d(){const _0x525665=_0x23be3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9d72(_0x34f73a(_0x507e1f)),_0x228362=window[_0x23be3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23be3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x525665);return _0x228362?window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fd0cc(_0x228362),0x10)*_0x5d88bf:null;}function _0x3f959e(_0xa5ef1e){return new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55f925,_0x161ab8)=>{_0xa5ef1e[_0x23be3d([0x74,0x68,0x65,0x6e])](_0x55f925,_0x161ab8),window[_0x23be3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x161ab8,0x5a1b2df4^_0x3b2799);});}}_0x2b5e05[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dbf69,_0x576452)=>{if(_0x576452[0x0]!=_0x507e1f)return _0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x576452[0x1]={..._0x576452[0x1],[_0x23be3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198796};},{[_0x23be3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23be3d([0x68,0x69,0x67,0x68])}),_0x2b5e05[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x159275=>{_0x133287(_0x159275[_0x23be3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a5c3=!0x0,_0x4d2eff(_0x159275[_0x23be3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23be3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23be3d([0x6c,0x6f,0x77])}),_0x1d0d50[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>{_0x43a5c3||_0x324993(_0x23be3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4242e5(){return _0x2b5e05[_0x23be3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23be3d([0x76,0x69,0x65,0x77])][_0x23be3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23be3d([0x61,0x75,0x74,0x6f]);}function _0x3659e7(){_0x2b5e05[_0x23be3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23be3d([0x76,0x69,0x65,0x77])][_0x23be3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23be3d([0x61,0x75,0x74,0x6f]);}}function _0x6c1b6f(_0x5282ad){const _0x196512=[new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb77b=>setTimeout(_0x4bb77b,0x5a13c7f8^_0x3b2799)),_0x1d0d50[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59d72b=>{const _0x594fe4=0x5a1af933^_0x3b2799,_0x151a7e=_0x5c4925[_0x23be3d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x604d36(){_0x151a7e[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x594fe4&&_0x59d72b();}_0x604d36(),_0x151a7e[_0x23be3d([0x6f,0x6e])](_0x23be3d([0x61,0x64,0x64]),_0x604d36);})),new window[(_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14fffc=>{function _0x233131(){for(const _0xb849ec in window)if(window[_0x23be3d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23be3d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb849ec))&&window[_0xb849ec]==_0xbf0f6d)return _0x14fffc();_0x2b5e05[_0x23be3d([0x73,0x74,0x61,0x74,0x65])]!=_0x23be3d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23be3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x233131,0x5a1aeabc^_0x3b2799);}_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x233131();})];return window[_0x23be3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23be3d([0x72,0x61,0x63,0x65])](_0x196512)[_0x23be3d([0x74,0x68,0x65,0x6e])](()=>_0x5282ad);}async function _0x4a966d(){if(await _0x1d0d50,_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x271c53=_0x5c4925[_0x23be3d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e6cda=_0x5c4925[_0x23be3d([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])](_0x271c53[_0x23be3d([0x69,0x64])]),_0x52be61=_0x1ac26e(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x52be61[_0x23be3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x271c53['id'],_0x3e6cda?_0x3e6cda['id']:null,!0x0),_0x52be61[_0x23be3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x52be61[_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x52be61[_0x23be3d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1ec059,void(_0x52be61[_0x23be3d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1ec059);}if(_0xe311e7(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x43200e=_0x1ac26e(_0x23be3d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x43200e[_0x23be3d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43200e[_0x23be3d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43200e[_0x23be3d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1ec059,_0x43200e[_0x23be3d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1ec059;}_0x2b5e05[_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23be3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ec059,_0x2b5e05[_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x23be3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ec059,_0x2b5e05[_0x23be3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23be3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df18c(){return _0xe311e7(_0x23be3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ac26e(_0x23be3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23be3d([0x73,0x74,0x61,0x74,0x65])]==_0x23be3d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x140e0a(){return _0xe311e7(_0x23be3d([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 _0xfa3a71(){return _0xe311e7(_0x23be3d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ed802(_0x3526d){const _0xb75c56=_0x20ab48();_0x2b5e05[_0xb75c56]=_0x23be3d([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])+_0x3526d,_0x3526d[_0x23be3d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23be3d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20ab48()]=_0xbf0f6d),_0x3526d!=_0x23be3d([0x56,0x61,0x6c,0x69,0x64])&&_0x4a966d();}function _0x20ab48(){const _0x3c66e1=window[_0x23be3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23be3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23be3d([0x6e,0x6f,0x77])]())[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23be3d([0x2e]),'');let _0x150ea4=_0x23be3d([0x41]);for(let _0x3f2ed3=0x0;_0x3f2ed3<_0x3c66e1[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2ed3+=0x2){let _0x1e7d4e=window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c66e1[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f2ed3,_0x3f2ed3+0x2));_0x1e7d4e>=_0x4fc0a3[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7d4e-=_0x4fc0a3[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x150ea4+=_0x4fc0a3[_0x1e7d4e];}return _0x150ea4;}function _0x50156d(){const _0x3a2a7b=_0x54f22e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e]));if(0x3!=_0x3a2a7b[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x381493(_0x3a2a7b[0x1]);function _0x381493(_0x1edfb7){const _0x360f3d=_0xff467e(_0x1edfb7);return _0x360f3d&&_0x15deb2()?_0x360f3d:null;function _0x15deb2(){const _0x535311=_0x360f3d[_0x23be3d([0x6a,0x74,0x69])],_0x3fccec=window[_0x23be3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x535311[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x535311[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x352324={..._0x360f3d,[_0x23be3d([0x6a,0x74,0x69])]:_0x535311[_0x23be3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x535311[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x352324[_0x23be3d([0x76,0x63])],_0x34f73a(_0x352324)==_0x3fccec;}}}async function _0x165d7d(){let _0x1c24bb=!0x0;try{const _0x82d7c=_0x54f22e[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])](_0x23be3d([0x2e])),[_0x3aa9de,_0x4e4c74,_0x53824a]=_0x82d7c;return _0x427dbd(_0x3aa9de),await _0x39f3a2(_0x3aa9de,_0x4e4c74,_0x53824a),_0x1c24bb;}catch{return!0x1;}function _0x427dbd(_0x2fe57e){const _0x25213b=_0xff467e(_0x2fe57e);_0x25213b&&_0x25213b[_0x23be3d([0x61,0x6c,0x67])]==_0x23be3d([0x45,0x53,0x32,0x35,0x36])||(_0x1c24bb=!0x1);}async function _0x39f3a2(_0x422959,_0xca0efa,_0x408315){const _0x2f5af8=window[_0x23be3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23be3d([0x66,0x72,0x6f,0x6d])](_0x448e83(_0x408315),_0x6c669e=>_0x6c669e[_0x23be3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f9230=new window[(_0x23be3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23be3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x422959+_0x23be3d([0x2e])+_0xca0efa),_0x108a83=window[_0x23be3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23be3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x108a83)return;const _0x4277e9=await _0x108a83[_0x23be3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23be3d([0x6a,0x77,0x6b]),_0x135822,{[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x45,0x43,0x44,0x53,0x41]),[_0x23be3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23be3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x108a83[_0x23be3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x45,0x43,0x44,0x53,0x41]),[_0x23be3d([0x68,0x61,0x73,0x68])]:{[_0x23be3d([0x6e,0x61,0x6d,0x65])]:_0x23be3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4277e9,_0x2f5af8,_0x4f9230)||(_0x1c24bb=!0x1);}}function _0xff467e(_0x261e30){return _0x261e30[_0x23be3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23be3d([0x65,0x79]))?JSON[_0x23be3d([0x70,0x61,0x72,0x73,0x65])](_0x448e83(_0x261e30)):null;}function _0x448e83(_0x4d723a){return window[_0x23be3d([0x61,0x74,0x6f,0x62])](_0x4d723a[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23be3d([0x2b]))[_0x23be3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23be3d([0x2f])));}function _0x34f73a(_0x5b9fd0){let _0x473753=0x1505;function _0x464316(_0x282351){for(let _0x2fc41d=0x0;_0x2fc41d<_0x282351[_0x23be3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fc41d++){const _0x35bdea=_0x282351[_0x23be3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2fc41d);_0x473753=(_0x473753<<0x5)+_0x473753+_0x35bdea,_0x473753&=_0x473753;}}function _0x58203c(_0xc7e65b){Array[_0x23be3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc7e65b)?_0xc7e65b[_0x23be3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58203c):_0xc7e65b&&typeof _0xc7e65b==_0x23be3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23be3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc7e65b)[_0x23be3d([0x73,0x6f,0x72,0x74])]()[_0x23be3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23cc45,_0x5e7807])=>{_0x464316(_0x23cc45),_0x58203c(_0x5e7807);}):_0x464316(window[_0x23be3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc7e65b));}return _0x58203c(_0x5b9fd0),_0x473753>>>0x0;}function _0x5b9d72(_0x4441ea){return _0x4441ea[_0x23be3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23be3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23be3d([0x30]));}function _0x4fd0cc(_0xbb31cf){return _0xbb31cf[_0x23be3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23be3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23be3d([0x6a,0x6f,0x69,0x6e])]('');}function _0xe311e7(_0x32f597){return _0x2b5e05[_0x23be3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23be3d([0x68,0x61,0x73])](_0x32f597);}function _0x1ac26e(_0x574807){return _0x2b5e05[_0x23be3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23be3d([0x67,0x65,0x74])](_0x574807);}function _0x1ec059(){}function _0x23be3d(_0x2a4276){return _0x2a4276['map'](_0x155661=>String['fromCharCode'](_0x155661))['join']('');}_0x1ed802(await _0x3b8597());}(this);}['createRevision'](_0x56b82e){const _0x4d2720=this['editor']['plugins']['get']('Users');return new I({'id':_0x56b82e['id'],'name':_0x56b82e['name'],'creator':_0x56b82e['creatorId']?_0x4d2720['getUser'](_0x56b82e['creatorId']):null,'diffData':_0x56b82e['diffData']||_0x56b82e['data'],'authors':_0x56b82e['authorsIds']['map'](_0x378ad7=>_0x4d2720['getUser'](_0x378ad7)),'createdAt':new Date(_0x56b82e['createdAt']),'attributes':_0x56b82e['attributes'],'fromVersion':_0x56b82e['fromVersion'],'toVersion':_0x56b82e['toVersion']});}['addRevision'](_0x51fde3,_0xc78543=0x0){this['_revisions']['add'](_0x51fde3,_0xc78543);}['getRevision'](_0xdf8a77){return this['_revisions']['get'](_0xdf8a77);}['getRevisions'](_0x212726={'toJSON':!0x1}){const _0xbc1ad0=Array['from'](this['_revisions']);return _0xbc1ad0['reverse'](),_0x212726['toJSON']?_0xbc1ad0['map'](_0x115d77=>_0x115d77['toJSON']()):_0xbc1ad0;}['getIndex'](_0x2ead90){return this['_revisions']['getIndex'](_0x2ead90);}['getEarlierVisibleRevision'](_0x3601ab){const [,_0x2f7292]=this['getRevisionsIterator'](_0x3601ab,{'direction':'earlier'});return _0x2f7292;}['getLaterVisibleRevision'](_0x24d003){const [,_0x46e70e]=this['getRevisionsIterator'](_0x24d003,{'direction':'later'});return _0x46e70e;}['getRevisionsInDiff'](_0xb6d063){const _0x30e66d=[];for(const _0x186386 of this['getRevisionsIterator'](_0xb6d063['newRevisionId']))if(_0x30e66d['push'](_0x186386),_0x186386['id']===_0xb6d063['oldRevisionId'])break;return _0x30e66d;}*['getRevisionsIterator'](_0x90545d,{direction:_0x2ca489='earlier',filter:_0x4961e6=()=>!0x0}={}){const _0x32a326='earlier'===_0x2ca489?0x1:-0x1;let _0x55e412=this['_revisions']['get'](_0x90545d),_0x29d240=this['getIndex'](_0x55e412);for(yield _0x55e412;_0x55e412;){if(_0x29d240+=_0x32a326,_0x55e412=this['getRevision'](_0x29d240),!_0x55e412)return;_0x4961e6(_0x55e412)&&(yield _0x55e412);}}}class $ extends _0x55ca5c{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x24c87c,'c'],[_0x2f6fd9,'a'],[_0x58c353,'e'],[_0x1b7f89,'r'],[_0x41f32f,'u']]);['_typeCharToViewClass']=new Map([['c',_0x24c87c],['a',_0x2f6fd9],['e',_0x58c353],['r',_0x1b7f89],['u',_0x41f32f]]);async['loadRevisionData'](_0x4cd297,_0x466e83){if(_0x4cd297['diffData']||!_0x466e83)return;const _0x5eecfc=this['editor']['config']['get']('collaboration.channelId'),_0x3a6b88=await _0x466e83['getRevision']({'channelId':_0x5eecfc,'revisionId':_0x4cd297['id']});_0x4cd297['diffData']=_0x3a6b88['diffData'];}['getRevisionDocumentData'](_0x5bc553){const _0x27b454={};for(const _0x5a990a in _0x5bc553['diffData']){if(_0x5bc553['diffData'][_0x5a990a]['attachChange']&&!_0x5bc553['diffData'][_0x5a990a]['attachChange']['isAttached'])continue;const _0x28f61a=this['_removeRevisionMarkers'](JSON['parse'](_0x5bc553['diffData'][_0x5a990a]['insertions'])),_0x7d75f4=this['editor']['editing']['view']['document'],_0x3b2347=new _0x2cc1dd(_0x7d75f4,_0x28f61a['map'](_0x1f806f=>this['_getViewFromDiffObj'](_0x1f806f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27b454[_0x5a990a]=this['editor']['data']['processor']['toData'](_0x3b2347),this['editor']['data']['processor']['useFillerType']('default');}return _0x27b454;}['getRevisionRootsAttributes'](_0x28b465){const _0x336123={};for(const _0x3ddc0a in _0x28b465['diffData'])_0x28b465['diffData'][_0x3ddc0a]['attachChange']&&!_0x28b465['diffData'][_0x3ddc0a]['attachChange']['isAttached']||(_0x336123[_0x3ddc0a]=_0x28b465['diffData'][_0x3ddc0a]['attributesAfter']||{});return _0x336123;}['_getTypeCharForViewElement'](_0x27724c){return this['_viewClassToTypeChar']['get'](_0x27724c['constructor']);}['_getViewFromDiffObj'](_0x45bf29,_0x420129){const _0x147f3a=this['editor']['editing']['view']['document'];if('string'==typeof _0x45bf29)return new _0x3e0cf(_0x147f3a,_0x45bf29);{let _0x304f9a,_0x2b3141;_0x2b3141='u'==_0x45bf29['type']||'r'==_0x45bf29['type']?[]:_0x45bf29['children']['map'](_0x519615=>this['_getViewFromDiffObj'](_0x519615,_0x420129));const _0x2d7c62=this['_typeCharToViewClass']['get'](_0x45bf29['type'])||_0x5585fc,_0x315d20=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x304f9a=new _0x2d7c62(_0x147f3a,_0x45bf29['name'],_0x45bf29['attributes'],_0x2b3141),'u'==_0x45bf29['type']&&_0x45bf29['children'][0x0]){const _0x40684b=_0x45bf29['children'][0x0];if(_0x304f9a['render']=function(_0x174d7c){const _0x5e50fc=_0x174d7c['createElement']('div');return _0x5e50fc['innerHTML']=_0x40684b,_0x5e50fc['childNodes'][0x0];},_0x420129){const _0xcbd867=new _0x2cc1dd(_0x147f3a);_0xcbd867['_appendChild'](_0x304f9a);const _0x36a41e=Array['from'](_0x315d20['viewChildrenToDom'](_0xcbd867,{'bind':!0x1})),_0x408fe5=_0x315d20['domDocument']['createElement']('div');_0x408fe5['append'](..._0x36a41e),_0x304f9a=Array['from'](_0x315d20['domChildrenToView'](_0x408fe5))[0x0];}}else{if('r'==_0x45bf29['type']&&_0x45bf29['children'][0x0]){const _0x266712=_0x45bf29['children'][0x0];if(_0x304f9a['render']=function(_0x4fc3bc){_0x4fc3bc['innerHTML']=_0x266712;},_0x420129){const _0x2cac6e=new _0x2cc1dd(_0x147f3a);_0x2cac6e['_appendChild'](_0x304f9a);const _0x101d54=Array['from'](_0x315d20['viewChildrenToDom'](_0x2cac6e,{'bind':!0x1})),_0x1f7625=_0x315d20['domDocument']['createElement']('div');_0x1f7625['append'](..._0x101d54);const _0x43e0e3=Array['from'](_0x315d20['domChildrenToView'](_0x1f7625));_0x43e0e3['length']>0x1?_0x304f9a['_appendChild'](_0x43e0e3):_0x304f9a=_0x43e0e3[0x0];}}}if(_0x45bf29['customProperties']){for(const [_0x431d70,_0x5edc19]of _0x45bf29['customProperties'])_0x304f9a['_setCustomProperty'](_0x431d70,_0x5edc19);}const _0x1fe2d7=void 0x0===_0x45bf29['fillerOffset']?null:_0x45bf29['fillerOffset'];return null!==_0x1fe2d7&&(_0x304f9a['getFillerOffset']=()=>_0x1fe2d7),_0x304f9a;}}['_makeModelFromViewString'](_0x5045b9){const _0x1daac2=JSON['parse'](_0x5045b9),_0x39384a=this['editor']['editing']['view']['document'],_0x31c8c9=new _0x2cc1dd(_0x39384a,_0x1daac2['map'](_0x2dc390=>this['_getViewFromDiffObj'](_0x2dc390,!0x0)));return this['editor']['data']['toModel'](_0x31c8c9);}['_removeRevisionMarkers'](_0x430200){return(_0x430200=_0x430200['filter'](_0x57f3eb=>!_0x57f3eb['name']||'revision-start'!==_0x57f3eb['name']&&'revision-end'!==_0x57f3eb['name']))['forEach'](_0xebb8ff=>{'string'!=typeof _0xebb8ff&&(_0xebb8ff['children']=this['_removeRevisionMarkers'](_0xebb8ff['children']),_0xebb8ff['attributes']=_0xebb8ff['attributes']['filter'](_0xdb1287=>!_0xdb1287[0x0]['startsWith']('data-revision-')));}),_0x430200;}}function R(_0x32bbf3,_0x408743,_0x13ee27){const t=_0x32bbf3['t'];switch(_0x408743){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'},_0x13ee27);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13ee27);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x55ca5c{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x39e2b4,S,$,_0x53387b];}constructor(_0x203cc2){super(_0x203cc2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1dba07=_0x83b1c9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1dba07},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2263b6=this['repository']['getRevision'](0x0),_0x49e3a8=_0x2263b6&&null===_0x2263b6['creator']?_0x2263b6:null;if(this['_continueCurrentRevision']=!!_0x49e3a8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x44c0f9=this['_source']['getCurrentRevisionId'](),_0x4e5803=this['repository']['getRevision'](_0x44c0f9);if(_0x4e5803)this['_startingVersion']=_0x4e5803['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3eb9d9=this['_source']['history']['_operations']['find'](_0x4aa460=>!_0x4aa460['_isInit']),_0x30f709=_0x3eb9d9?_0x3eb9d9['baseVersion']:this['_source']['history']['version'];_0x2263b6?(_0x2263b6['toVersion']<_0x30f709&&_0x2263b6['_update']({'toVersion':_0x30f709}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id'],this['_startingVersion']=_0x49e3a8['fromVersion']):(this['_startingVersion']=_0x2263b6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x30f709,this['_continueCurrentRevision']=!0x1);}}else _0x49e3a8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x49e3a8['toVersion'],this['editor']['model']['document']['history']['version']),_0x49e3a8['fromVersion']===_0x49e3a8['toVersion']?(0x0!==_0x49e3a8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x49e3a8['id'],this['_startingVersion']=_0x49e3a8['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',_0x34a227=>!_0x34a227),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x466338=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x100270;for(const _0x4dfd59 in _0x466338){const _0x3e1a57=_0x4dfd59,_0x5f5ac5=_0x466338[_0x3e1a57];if('revisionHistoryLicenseKeyValid'==_0x5f5ac5||'revisionHistoryLicenseKeyInvalid'==_0x5f5ac5||'revisionHistoryLicenseKeyExpired'==_0x5f5ac5||'revisionHistoryLicenseKeyDomainLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyNotAllowed'==_0x5f5ac5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyTrialLimit'==_0x5f5ac5||'revisionHistoryLicenseKeyUsageLimit'==_0x5f5ac5){delete _0x466338[_0x3e1a57],_0x100270=_0x5f5ac5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x100270&&_0x466338['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x100270&&_0x466338['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x100270&&_0x466338['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x100270&&_0x466338['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x100270&&_0x466338['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x100270&&_0x466338['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x100270&&_0x466338['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x575165=this['repository']['getRevision'](0x0),_0x3ae150=await this['getRevisionDocumentData'](_0x575165),_0x5a29ff=await this['getRevisionRootsAttributes'](_0x575165);this['_replaceEditorDataWithRevisionData'](_0x3ae150,_0x5a29ff);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x21c93d){this['_source']=_0x21c93d;}async['update'](){const _0x489c19=await this['_source']['getLatestVersion']();if(_0x489c19>this['currentRevision']['toVersion']){await this['_loadState']();const _0x965b0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x489c19});_0x965b0['authors']=_0x965b0['authorsIds']['map'](_0xcfa4e3=>this['editor']['plugins']['get']('Users')['getUser'](_0xcfa4e3)),this['currentRevision']['_update'](_0x965b0);}}async['saveRevision'](_0x13cfe5={},_0x2e3c82=null){const _0x26f7a4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e3c82>this['currentRevision']['toVersion']&&(_0x2e3c82=null),null===_0x2e3c82&&(_0x2e3c82=await this['_source']['getLatestVersion']());const _0x38674f=this['_getFromVersion'](_0x2e3c82),_0x59edd3=this['buildRevisionData']({'from':_0x38674f,'to':_0x2e3c82});if(this['currentRevision']['toVersion']<_0x2e3c82){const _0x392aed=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2e3c82,'to':_0x2e3c82});_0x392aed['authors']=[],_0x392aed['authorsIds']=[],_0x392aed['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x392aed,!0x0),delete _0x392aed['authors'],_0x26f7a4['push'](_0x392aed);}_0x13cfe5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x13cfe5['name']=_0x13cfe5['name']||null,_0x13cfe5['id']=_0x13cfe5['id']||_0x83b1c9(),_0x13cfe5={..._0x13cfe5,..._0x59edd3};const _0x1f9521=this['addRevisionData'](_0x13cfe5);_0x26f7a4['push'](_0x13cfe5);const _0x53644e=this['repository']['getIndex'](_0x1f9521);if(0x0!==_0x53644e){const _0x1a4e20=this['repository']['getRevision'](_0x53644e-0x1);if(_0x1a4e20['fromVersion']!==_0x2e3c82){const _0x107a4b=this['_revisionDataBuilder']['getData'](_0x2e3c82,_0x1a4e20['toVersion']),_0x5a6751={'id':_0x1a4e20['id'],'diffData':_0x107a4b['diffData'],'authorsIds':_0x107a4b['authorsIds'],'authors':_0x107a4b['authorsIds']['map'](_0x5d1347=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d1347)),'fromVersion':_0x2e3c82};_0x1a4e20===this['currentRevision']&&(_0x5a6751['createdAt']=new Date(_0x13cfe5['createdAt']['getTime']()+0xa)),_0x1a4e20['_update'](_0x5a6751,!0x0),delete _0x5a6751['authors'],_0x26f7a4['push'](_0x5a6751);}}if(this['adapter']){for(const _0x216f6d of _0x26f7a4)this['_bufferUpdate'](_0x216f6d['id'],_0x216f6d,!0x0);this['sendBufferedUpdates']();}return _0x1f9521;}['addRevisionData'](_0x3077b1){const _0x298cf4=this['repository']['createRevision'](_0x3077b1);return this['adapter']&&_0x298cf4['on']('_update',(_0x115bb3,_0x2351a5,_0x290b05)=>{_0x290b05||(this['_bufferUpdate'](_0x2351a5['id'],_0x2351a5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x298cf4,this['_findInsertionIndex'](_0x298cf4)),_0x298cf4;}async['getRevisionDocumentData'](_0x28dd13){return await this['_utils']['loadRevisionData'](_0x28dd13,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x28dd13);}async['getRevisionRootsAttributes'](_0x1dae92){return await this['_utils']['loadRevisionData'](_0x1dae92,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1dae92);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x227c00=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x453481=0x0;_0x453481<_0x227c00['length'];_0x453481++){const _0x4b1047=_0x227c00[_0x453481];let _0x8f5976=!0x1;for(const _0xd82166 of Object['keys'](_0x4b1047))void 0x0===_0x4b1047[_0xd82166]?delete _0x4b1047[_0xd82166]:'id'!==_0xd82166&&(_0x8f5976=!0x0);_0x8f5976||(_0x227c00[_0x453481]=null);}if(_0x227c00=_0x227c00['filter'](_0x5ccf8e=>null!==_0x5ccf8e),!_0x227c00['length'])return;for(let _0x97c22e=0x0;_0x97c22e<_0x227c00['length'];_0x97c22e++){const _0x8944b8=_0x227c00[_0x97c22e];void 0x0!==_0x8944b8['fromVersion']&&void 0x0===_0x8944b8['toVersion']&&(_0x8944b8['toVersion']=this['repository']['getRevision'](_0x8944b8['id'])['toVersion']),void 0x0!==_0x8944b8['toVersion']&&void 0x0===_0x8944b8['fromVersion']&&(_0x8944b8['fromVersion']=this['repository']['getRevision'](_0x8944b8['id'])['fromVersion']);}const _0x5e0f1f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x227c00,_0x5e0f1f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e85f3=>{if(_0x4e85f3){for(const _0x4b5f3a of _0x4e85f3)this['setRevisionData']({'id':_0x4b5f3a['id'],'createdAt':_0x4b5f3a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2201a1=null,from:_0x4f81e8=null,to:_0x2428a5=null}){_0x4f81e8=null!==_0x4f81e8?_0x4f81e8:_0x2201a1['fromVersion'],_0x2428a5=null!==_0x2428a5?_0x2428a5:_0x2201a1['toVersion'];const _0x512172=this['_revisionDataBuilder']['getData'](_0x4f81e8,_0x2428a5),_0x5ab42e={'diffData':_0x512172['diffData'],'authorsIds':_0x512172['authorsIds'],'fromVersion':_0x4f81e8,'toVersion':_0x2428a5};if(!_0x2201a1||_0x2428a5!==_0x2201a1['toVersion']){const _0x5e1365=_0x2428a5-0x1,_0x50c8da=this['_source']['history']['getOperation'](_0x5e1365);_0x5ab42e['createdAt']=_0x50c8da&&_0x50c8da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f81e8===this['_loadedStateData']['fromVersion']){for(const _0x32ea3f of this['_loadedStateData']['authors'])_0x5ab42e['authorsIds']['includes'](_0x32ea3f['id'])||_0x5ab42e['authorsIds']['push'](_0x32ea3f['id']);}return _0x5ab42e;}['_bufferUpdate'](_0x26eb99,_0x4e8328,_0x2e621){if(this['_bufferedUpdates']['has'](_0x26eb99)){const _0x99f89e=this['_bufferedUpdates']['get'](_0x26eb99);_0x4e8328=_0x2e621?{..._0x99f89e,..._0x4e8328}:{..._0x4e8328,..._0x99f89e};}this['_bufferedUpdates']['set'](_0x26eb99,_0x4e8328);}['setRevisionData'](_0x4fa3d8){const _0x5db21a=this['repository']['getRevision'](_0x4fa3d8['id']);if(_0x4fa3d8['createdAt']&&(_0x4fa3d8['createdAt']=new Date(_0x4fa3d8['createdAt'])),_0x4fa3d8['authorsIds']){const _0x5c78ab=this['editor']['plugins']['get']('Users');_0x4fa3d8['authors']=_0x4fa3d8['authorsIds']['map'](_0x57034b=>_0x5c78ab['getUser'](_0x57034b));}_0x5db21a['_update'](_0x4fa3d8,!0x0);}['_createInitialRevision'](_0x137125){const _0x39b34c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x39b34c)this['_initialRevisionId']=_0x39b34c['id'];else{const _0x52dac1=!this['editor']['model']['document']['roots']['find'](_0x2a91ac=>this['editor']['model']['hasContent'](_0x2a91ac)),_0x33bd3b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f651b=R(this['editor']['locale'],_0x52dac1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x137125,'to':_0x137125,'id':this['_initialRevisionId'],'name':_0x3f651b,'creatorId':_0x33bd3b});}}['_createCurrentRevision'](_0x576502){const _0x3e4214=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e4214),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x576502,'to':_0x576502,'id':_0x3e4214,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x50d55a,_0x4354e1){let _0x1fea12=this['editor']['config']['get']('initialData'),_0x2f05c6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1fea12){_0x1fea12={};for(const _0x55ff0f of this['editor']['model']['document']['getRootNames']())_0x1fea12[_0x55ff0f]='';}if('string'==typeof _0x1fea12&&(_0x1fea12={'main':_0x1fea12}),void 0x0===_0x2f05c6){_0x2f05c6={};for(const _0x3d86e3 of this['editor']['model']['document']['getRootNames']())_0x2f05c6[_0x3d86e3]={};}let _0x2dec57=!0x1;const _0x3c06aa=Object['keys'](_0x1fea12),_0x49455d=Object['keys'](_0x50d55a);for(const _0x8f726c of _0x3c06aa){if(_0x1fea12[_0x8f726c]!==_0x50d55a[_0x8f726c]&&''!==_0x1fea12[_0x8f726c]['trim']()){_0x2dec57=!0x0;break;}if(!_0x30d55f(_0x2f05c6[_0x8f726c],_0x4354e1[_0x8f726c])&&Object['keys'](_0x2f05c6[_0x8f726c])['length']>0x0){_0x2dec57=!0x0;break;}}_0x2dec57||(_0x2dec57=_0x49455d['some'](_0x4ad14e=>!this['editor']['model']['document']['getRoot'](_0x4ad14e))),_0x2dec57&&_0x5156f0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1fea12,'editorRootsAttributes':_0x2f05c6,'revisionData':_0x50d55a,'revisionRootsAttributes':_0x4354e1}),this['editor']['config']['set']('initialData',_0x50d55a),this['editor']['config']['set']('rootsAttributes',_0x4354e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c4853=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c4853['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x38ba87){const _0x3405b2=this['repository']['getRevisions']();_0x3405b2['reverse']();let _0x5f58ce=0x0;for(;_0x5f58ce<_0x3405b2['length'];){const _0x2a23bb=_0x3405b2[_0x5f58ce];if(_0x2a23bb===this['currentRevision']){_0x5f58ce++;continue;}if(_0x2a23bb['id']===this['_initialRevisionId'])break;const _0x2e3059=_0x38ba87['toVersion']-_0x2a23bb['toVersion']||_0x38ba87['fromVersion']-_0x2a23bb['fromVersion'];if(_0x2e3059>0x0)break;if(_0x2e3059<0x0)_0x5f58ce++;else{if(!_0x38ba87['creator']&&_0x2a23bb['creator'])break;if(_0x2a23bb['creator']||!_0x38ba87['creator']){if(_0x38ba87['createdAt']>_0x2a23bb['createdAt'])break;_0x5f58ce++;}else _0x5f58ce++;}}return _0x5f58ce;}['_getFromVersion'](_0x236a1c){const _0x814510=this['repository']['getRevisions']();_0x814510['reverse'](),_0x814510['shift']();const _0x2992a1=_0x814510['find'](_0x23433a=>_0x23433a['toVersion']<=_0x236a1c)['toVersion'];return _0x2992a1<this['_startingVersion']?this['_startingVersion']:_0x2992a1;}['_makeRevision']({name:_0x8f58f5,from:_0x1908fc,to:_0xf411dc,creatorId:_0x2a76d8,id:_0x3f33ca}){const _0x569759=this['buildRevisionData']({'from':_0x1908fc,'to':_0xf411dc});_0x569759['name']=_0x8f58f5,_0x569759['creatorId']=_0x2a76d8,_0x569759['id']=_0x3f33ca;const _0x4936d3=this['addRevisionData'](_0x569759);return this['adapter']&&this['_bufferUpdate'](_0x569759['id'],_0x569759,!0x0),_0x4936d3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3feea1){this['editor']=_0x3feea1,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'](_0x3c637b){this['source']=_0x3c637b;const _0xe35d38=new Map(),_0x11f0bd=new Map(),_0x7546c4=this['editor']['model']['document']['roots']['map'](_0x3a75c8=>_0x3a75c8['rootName']);for(const _0x52b4ce of _0x7546c4){const _0x350163=this['editor']['model']['document']['getRoot'](_0x52b4ce),_0x4d5db5=x(_0x350163);_0xe35d38['set'](_0x52b4ce,_0x4d5db5),_0x11f0bd['set'](_0x52b4ce,Object['fromEntries'](_0x350163['getAttributes']()));}const _0x505949=Array['from'](this['editor']['model']['markers'])['map'](_0xb041cf=>[_0xb041cf['name'],_0xb041cf['getRange']()]),_0x348939=this['source']['version'];this['_saveMetaData'](_0x348939,_0xe35d38,_0x505949,_0x11f0bd),this['_startingRevisionId']=this['_revisionId'];const _0x4b5736=new Map(),_0x4519ed=new Map();for(const _0x25808e of _0x7546c4){const _0x4f2544=N(_0x25808e);_0x4b5736['set'](_0x25808e,_0x4f2544),_0x4519ed['set'](_0x25808e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b5736,[],_0x4519ed);}['getData'](_0x2c340d,_0x5a34e3){if(this['_lastFrom']===_0x2c340d&&this['_lastTo']<=_0x5a34e3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5a34e3,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c340d)){const _0x43c58a=this['_getPreviousFrom'](_0x2c340d);this['_calculateMetaData'](_0x43c58a,_0x2c340d,!0x1);}this['_calculateMetaData'](_0x2c340d,_0x5a34e3,!0x0);}return this['_lastFrom']=_0x2c340d,this['_lastTo']=_0x5a34e3,this['_getState']();}['loadState'](_0x171661){const _0x47957c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x171661['fromVersion'],this['_lastTo']=_0x171661['toVersion'];for(const _0x4a6ac4 in _0x171661['diffData']){const _0x2bb7e9=_0x171661['diffData'][_0x4a6ac4]['attachChange'],_0xd3ec7=_0x29ca9e(_0x171661['diffData'][_0x4a6ac4]['attributesBefore'])||{},_0x88cdae=_0x47957c['_makeModelFromViewString'](_0x171661['diffData'][_0x4a6ac4]['deletions']);_0x88cdae['rootName']=_0x4a6ac4,_0x88cdae['_isAttached']=!_0x2bb7e9||!_0x2bb7e9['isAttached'],_0x88cdae['isAttached']=()=>_0x88cdae['_isAttached'],this['_baseRoots']['set'](_0x4a6ac4,_0x88cdae),this['_baseRootsAttributes']['set'](_0x4a6ac4,_0xd3ec7),_0x2bb7e9&&this['_touchedRoots']['set'](_0x4a6ac4,_0x2bb7e9);const _0x7077b9=this['_makeIdsRoot'](_0x88cdae);this['_baseIdsRoots']['set'](_0x4a6ac4,_0x7077b9);for(const [_0xff105c,_0xa70b00]of _0x88cdae['markers']){if(!_0xff105c['startsWith']('revision:'))continue;const _0x455e56=_0xff105c['split'](':')[0x2];for(const _0x5de64a of _0xa70b00['getWalker']({'singleCharacters':!0x0})){const _0x384429=this['_getVidAttributeName'](_0x5de64a),_0x11562b='elementEnd'==_0x5de64a['type']?_0x5de64a['previousPosition']['path']['slice'](0x0,-0x1):_0x5de64a['previousPosition']['path'],_0x5e227c=_0x7077b9['getNodeByPath'](_0x11562b)['getAttribute'](_0x384429);this['_touched']['set'](_0x5e227c,{'userId':_0x455e56});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21566d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e1d6a=>!this['_touched']['has'](_0x3e1d6a));let _0x54a47f=0x0;const _0x36daf5=new Map();for(const _0x5d2e9d in _0x171661['diffData']){const _0x35798f=_0x171661['diffData'][_0x5d2e9d]['attachChange'],_0x2381f2=_0x29ca9e(_0x171661['diffData'][_0x5d2e9d]['attributesAfter'])||{},_0x16cc4b=_0x47957c['_makeModelFromViewString'](_0x171661['diffData'][_0x5d2e9d]['insertions']);_0x16cc4b['rootName']=_0x5d2e9d,_0x16cc4b['_isAttached']=!_0x35798f||_0x35798f['isAttached'],_0x16cc4b['isAttached']=()=>_0x16cc4b['_isAttached'],this['_diffRoots']['set'](_0x5d2e9d,_0x16cc4b),this['_diffRootsAttributes']['set'](_0x5d2e9d,_0x2381f2);const _0x321ac3=this['_makeIdsRoot'](_0x16cc4b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5d2e9d,_0x321ac3),_0x36daf5['set'](_0x5d2e9d,_0x16cc4b['isAttached']()?_0x2381f2:{});for(const [_0x3c575d,_0x2d8f49]of _0x16cc4b['markers']){if(!_0x3c575d['startsWith']('revision:'))continue;const _0x5b785b=_0x3c575d['split'](':')[0x2];for(const _0x4117e3 of _0x2d8f49['getWalker']({'singleCharacters':!0x0})){const _0x253ec3=this['_getVidAttributeName'](_0x4117e3),_0x26d569=this['_revisionId']++,_0x54c500='elementEnd'==_0x4117e3['type']?_0x4117e3['previousPosition']['path']['slice'](0x0,-0x1):_0x4117e3['previousPosition']['path'];_0x321ac3['getNodeByPath'](_0x54c500)['_setAttribute'](_0x253ec3,_0x26d569),this['_touched']['set'](_0x26d569,{'userId':_0x5b785b});}}for(const _0x4c64eb of this['editor']['model']['createRangeIn'](_0x16cc4b)['getWalker']({'singleCharacters':!0x0})){const _0xa4d571=this['_getVidAttributeName'](_0x4c64eb),_0x30ac78='elementEnd'==_0x4c64eb['type']?_0x4c64eb['previousPosition']['path']['slice'](0x0,-0x1):_0x4c64eb['previousPosition']['path'],_0x42f391=_0x321ac3['getNodeByPath'](_0x30ac78);_0x42f391['getAttribute'](_0xa4d571)>0x0||_0x42f391['_setAttribute'](_0xa4d571,_0x21566d[_0x54a47f++]);}for(const [_0x31798a,_0x1863f3]of _0x16cc4b['markers'])_0x31798a['startsWith']('revision:')||this['_markers']['set'](_0x31798a,_0x1863f3);}const _0x592a7f=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x592a7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x592a7f,0x1));const _0x301c37=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x301c37),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x301c37,0x1));const _0x3a4b4f=Array['from'](this['_diffRoots'])['map'](([_0x10dd90,_0x379599])=>[_0x10dd90,x(_0x379599)]);this['_saveMetaData'](this['_lastTo'],_0x3a4b4f,this['_markers'],_0x36daf5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5ad23a,_0x528f97,_0xf0677a,_0x5422a4){const _0x32298f=new Map(_0x528f97),_0x5f0954=new Map(_0x29ca9e(_0x5422a4)),_0x4746d8=new Map();for(const [_0x484934,_0x224524]of _0xf0677a)_0x4746d8['set'](_0x484934,{'start':_0x224524['start']['clone'](),'end':_0x224524['end']['clone'](),'rootName':_0x224524['root']['rootName']});this['_savedMetaData']['set'](_0x5ad23a,{'roots':_0x32298f,'markers':_0x4746d8,'rootsAttributes':_0x5f0954});}['_removeMetaData'](_0xf19c59){this['_savedMetaData']['delete'](_0xf19c59);}['_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'](_0x4be65d,_0x4260d5=null){let _0x22a6bd=null;_0x4be65d['is']('documentFragment')||(_0x22a6bd=new _0x25cd9f(_0x4be65d['name'],{'vid_start':null===_0x4260d5?this['_revisionId']++:_0x4260d5++}));const _0x38a551=[];for(const _0x2bf092 of _0x4be65d['getChildren']())if(_0x2bf092['is']('element')){_0x38a551['push'](this['_makeIdsRoot'](_0x2bf092,_0x4260d5));const _0x337628=_0x38a551[_0x38a551['length']-0x1];null!==_0x4260d5&&(_0x4260d5=_0x337628['is']('element','$text')?_0x337628['getAttribute']('vid')+0x1:_0x337628['getAttribute']('vid_end')+0x1);}else{for(let _0xcd8d05=0x0;_0xcd8d05<_0x2bf092['offsetSize'];_0xcd8d05++)_0x38a551['push'](new _0x25cd9f('$text',{'vid':null===_0x4260d5?this['_revisionId']++:_0x4260d5++}));}if(_0x4be65d['is']('documentFragment')){const _0x1f7391=N(_0x4be65d['rootName']);return _0x1f7391['_insertChild'](0x0,_0x38a551),_0x1f7391;}return _0x22a6bd['_setAttribute']('vid_end',null===_0x4260d5?this['_revisionId']++:_0x4260d5++),_0x22a6bd['_insertChild'](0x0,_0x38a551),_0x22a6bd;}['_calculateMetaData'](_0x500bde,_0x196ab5,_0x5ece96){this['_reset']();const {roots:_0x58084c,markers:_0x104466,rootsAttributes:_0x3e0aaa}=this['_savedMetaData']['get'](_0x500bde);this['_baseRoots']=new Map(_0x58084c),this['_baseRootsAttributes']=new Map(_0x29ca9e(_0x3e0aaa));for(const [_0x484786,_0x4cb95e]of this['_baseRoots'])if('$graveyard'!==_0x484786&&(this['_diffRoots']['set'](_0x484786,x(_0x4cb95e)),this['_diffRootsAttributes']=new Map(_0x29ca9e(_0x3e0aaa)),_0x5ece96)){const _0x203576=this['_revisionId'];this['_idsRoots']['set'](_0x484786,this['_makeIdsRoot'](_0x4cb95e)),this['_baseIdsRoots']['set'](_0x484786,this['_makeIdsRoot'](_0x4cb95e,_0x203576));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5ece96&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2e0a30,_0x54c723]of _0x104466){const _0x4e0d70=this['_baseRoots']['get'](_0x54c723['rootName']),_0x554cd8=this['_diffRoots']['get'](_0x54c723['rootName']),_0xa2c4d=new _0x29e7cd(this['_fixPosition'](_0x54c723['start'],_0x4e0d70),this['_fixPosition'](_0x54c723['end'],_0x4e0d70)),_0x4f28a3=this['_fixRange'](_0xa2c4d,_0x554cd8);_0x4e0d70['markers']['set'](_0x2e0a30,_0xa2c4d),this['_markers']['set'](_0x2e0a30,_0x4f28a3);}this['_applyOperations'](_0x500bde,_0x196ab5,_0x5ece96);}['_applyOperations'](_0x484522,_0x2294ae,_0xee904c){for(const _0x57682d of this['source']['getOperations'](_0x484522,_0x2294ae))this['_handleOperation'](_0x57682d,_0xee904c);for(const _0x52d6f8 of this['_diffRoots']['values']())_0x52d6f8['markers']['clear']();for(const [_0x4bd01d,_0x24a713]of this['_markers']){this['_diffRoots']['get'](_0x24a713['root']['rootName'])['markers']['set'](_0x4bd01d,_0x24a713['clone']());}const _0x5c2cac=new Map(),_0x2ca88d=new Map();for(const [_0x41ff5e,_0xc5c8f4]of this['_diffRoots'])_0x5c2cac['set'](_0x41ff5e,x(_0xc5c8f4)),_0x2ca88d['set'](_0x41ff5e,this['_diffRootsAttributes']['get'](_0x41ff5e));this['_saveMetaData'](_0x2294ae,_0x5c2cac,this['_markers'],_0x2ca88d);}['_getPreviousFrom'](_0x314c96){const _0x444092=Array['from'](this['_savedMetaData']['keys']());_0x444092['sort']((_0x5c0783,_0x459eb3)=>_0x5c0783-_0x459eb3),_0x444092['reverse']();for(const _0x9e9c47 of _0x444092)if(_0x9e9c47<_0x314c96)return _0x9e9c47;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3cf914,_0x41f71b){const _0x195a42=Array['from'](_0x41f71b['markers'])['map'](([_0x3c459d,_0x11f95e])=>[_0x3c459d,this['_fixRange'](_0x11f95e,_0x3cf914)]);_0x3cf914['markers']=new Map(_0x195a42);}['_transformMarkers'](_0x2057cd){for(const _0x1c0f85 of this['_markers']['values']()){const _0x538e19=_0x1c0f85['getTransformedByOperation'](_0x2057cd),_0x3b07b2=_0x29e7cd['_createFromRanges'](_0x538e19);_0x1c0f85['start']=_0x3b07b2['start'],_0x1c0f85['end']=_0x3b07b2['end'];}}['_handleOperation'](_0x512e81,_0x382455){if('addRoot'!=_0x512e81['type']&&'detachRoot'!=_0x512e81['type']){if('insert'==_0x512e81['type']){const _0xcc4bf9=_0x512e81['position']['root']['rootName'];this['_diffRoots']['has'](_0xcc4bf9)||(this['_diffRoots']['set'](_0xcc4bf9,N(_0xcc4bf9,!0x0)),this['_diffRootsAttributes']['set'](_0xcc4bf9,{}),_0x382455&&this['_idsRoots']['set'](_0xcc4bf9,N(_0xcc4bf9,!0x0)));}else{if('addRootAttribute'==_0x512e81['type']||'removeRootAttribute'==_0x512e81['type']||'changeRootAttribute'==_0x512e81['type'])return void this['_handleRootAttributeOperation'](_0x512e81);'marker'==_0x512e81['type']&&this['_handleMarkerOperation'](_0x512e81);}if('marker'!==_0x512e81['type']){const _0x47274c=this['_cloneOperation'](_0x512e81,this['_diffRoots']);_0x47274c['_execute'](),this['_transformMarkers'](_0x47274c);}if(_0x382455)switch(_0x512e81['type']){case'insert':this['_handleInsertOperation'](_0x512e81);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x512e81);break;case'merge':this['_handleMergeOperation'](_0x512e81);break;case'split':this['_handleSplitOperation'](_0x512e81);}}else this['_handleRootOperation'](_0x512e81,_0x382455);}['_cloneOperation'](_0x5e65d0,_0x46c53f){const _0x55102a=_0x5e65d0['clone']();return _0x55102a['_authorId']=_0x5e65d0['_authorId'],this['_fixOperation'](_0x55102a,_0x46c53f),_0x55102a;}['_getBaseVids'](_0x19781e){return _0x19781e['map'](_0x2cae10=>{const _0x3fcb4b=this['_getVidAttributeName'](_0x2cae10);return Number(_0x2cae10['item']['getAttribute'](_0x3fcb4b));});}['_generateTape'](_0x353cc0,_0x322fcc){if(_0x353cc0['is']('element','$text'))_0x322fcc['push']({'item':_0x353cc0,'type':'text'});else{_0x353cc0['is']('element')&&_0x322fcc['push']({'item':_0x353cc0,'type':'elementStart'});for(const _0x2900d5 of _0x353cc0['getChildren']())this['_generateTape'](_0x2900d5,_0x322fcc);_0x353cc0['is']('element')&&_0x322fcc['push']({'item':_0x353cc0,'type':'elementEnd'});}return _0x322fcc;}['_getState'](){const _0x555eb0=new Map(this['_touched']),_0x7f72bc=new Map(_0x555eb0),_0x4db9d1=new Map(),_0x313756={'insertions':{},'deletions':{}},_0x2f1051={'insertions':{},'deletions':{}},_0x14a17b=new Map(),_0x29556a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29556a['delete']('$graveyard');for(const _0x95a52b of _0x29556a){const _0x353ac9=this['_diffRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1),_0x1f3b77=this['_baseRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1);_0x353ac9['isAttached']()||_0x1f3b77['isAttached']()?(_0x313756['insertions'][_0x95a52b]=x(_0x353ac9),_0x313756['deletions'][_0x95a52b]=x(_0x1f3b77),this['_copyMarkers'](_0x313756['deletions'][_0x95a52b],_0x1f3b77),this['_copyMarkers'](_0x313756['insertions'][_0x95a52b],_0x353ac9),_0x2f1051['insertions'][_0x95a52b]=this['_generateTape'](this['_idsRoots']['get'](_0x95a52b),[]),_0x2f1051['deletions'][_0x95a52b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x95a52b)||N(_0x95a52b,!0x1),[])):_0x29556a['delete'](_0x95a52b);}for(const _0x39de89 of _0x29556a){const _0x1940af=_0x2f1051['insertions'][_0x39de89];for(const _0x3ed63c of _0x1940af){const _0x403f0c=this['_getVidAttributeName'](_0x3ed63c),_0x56788e=_0x3ed63c['item']['getAttribute'](_0x403f0c);_0x7f72bc['delete'](_0x56788e),_0x56788e>=this['_startingRevisionId']&&_0x4db9d1['set'](_0x56788e,_0x555eb0['get'](_0x56788e));}}for(const _0x1fa667 of _0x29556a){const _0x4071e9=_0x2f1051['insertions'][_0x1fa667],_0x25e992=this['_getBaseVids'](_0x2f1051['deletions'][_0x1fa667]);let _0x3843a5=0x0;for(const _0x2a8097 of _0x4071e9){const _0x2e8ceb=this['_getVidAttributeName'](_0x2a8097),_0x441a43=_0x2a8097['item']['getAttribute'](_0x2e8ceb);if(!_0x4db9d1['has'](_0x441a43)&&!_0x14a17b['has'](_0x441a43)){if(_0x7f72bc['has'](_0x441a43))_0x3843a5++;else{if(_0x441a43!=_0x25e992[_0x3843a5]){const _0x3f18fc=_0x555eb0['get'](_0x441a43)||_0x555eb0['get'](_0x25e992[_0x3843a5]);for(;_0x441a43!=_0x25e992[_0x3843a5];)_0x7f72bc['has'](_0x25e992[_0x3843a5])||(_0x14a17b['set'](_0x25e992[_0x3843a5],_0x3f18fc),_0x555eb0['set'](_0x25e992[_0x3843a5],_0x3f18fc)),_0x3843a5++;}_0x3843a5++;}}}}for(const _0x5c5ee3 of _0x29556a){const _0x3ebf49=_0x2f1051['insertions'][_0x5c5ee3];for(const _0x3cb273 of _0x3ebf49){const _0x57d073=this['_getVidAttributeName'](_0x3cb273),_0x37dd37=_0x3cb273['item']['getAttribute'](_0x57d073);if(_0x14a17b['has'](_0x37dd37)){const _0x3bfdab=_0x14a17b['get'](_0x37dd37);_0x7f72bc['has'](_0x37dd37)||_0x7f72bc['set'](_0x37dd37,{..._0x3bfdab}),_0x4db9d1['set'](_0x37dd37,{..._0x3bfdab});}}}for(const _0x3d4aa5 of _0x7f72bc['keys']())_0x3d4aa5>=this['_startingRevisionId']&&_0x7f72bc['delete'](_0x3d4aa5);const _0x353ca9=new Map();for(const _0x147882 of _0x29556a){let _0x2c4677=_0x2f1051['insertions'][_0x147882];for(const _0x371ff6 of _0x2c4677)if(_0x371ff6['item']['is']('element','tableCell')){const _0x41f8bc=this['_getVidAttributeName'](_0x371ff6),_0x193369=_0x371ff6['item']['getAttribute'](_0x41f8bc);if(_0x4db9d1['has'](_0x193369)){const _0x35f6c8=_0x371ff6['item']['parent']['parent']['getAttribute']('vid_start'),_0x581b5a=_0x353ca9['get'](_0x35f6c8)||new Set();_0x581b5a['add'](_0x4db9d1['get'](_0x193369)['userId']),_0x353ca9['set'](_0x35f6c8,_0x581b5a);}}_0x2c4677=_0x2f1051['deletions'][_0x147882];for(const _0x442d29 of _0x2c4677)if(_0x442d29['item']['is']('element','tableCell')){const _0x4d84c1=this['_getVidAttributeName'](_0x442d29),_0x1e5aa1=_0x442d29['item']['getAttribute'](_0x4d84c1);if(_0x7f72bc['has'](_0x1e5aa1)){const _0x344ce3=_0x442d29['item']['parent']['parent']['getAttribute']('vid_start'),_0x21a52=_0x353ca9['get'](_0x344ce3)||new Set();_0x21a52['add'](_0x7f72bc['get'](_0x1e5aa1)['userId']),_0x353ca9['set'](_0x344ce3,_0x21a52);}}for(const _0xc89503 of _0x353ca9['keys']())(_0x4db9d1['has'](_0xc89503)||_0x7f72bc['has'](_0xc89503))&&_0x353ca9['delete'](_0xc89503);}for(const _0x33fef9 of _0x29556a){const _0xbbb1d1=_0x2f1051['insertions'][_0x33fef9];let _0x3ec3f1=null,_0x3908be=null;for(const _0xb2d962 of _0xbbb1d1){const _0x5a26ae=this['_getVidAttributeName'](_0xb2d962),_0xff6b6a=_0xb2d962['item']['getAttribute'](_0x5a26ae),_0x334ba0=_0x353ca9['get'](_0xff6b6a);_0x334ba0&&'elementStart'==_0xb2d962['type']&&(_0x3ec3f1=Array['from'](_0x334ba0)[0x0],_0x3908be=_0xb2d962['item']['getAttribute']('vid_end')),_0x3ec3f1&&(_0x7f72bc['set'](_0xff6b6a,{'userId':_0x3ec3f1}),_0x4db9d1['set'](_0xff6b6a,{'userId':_0x3ec3f1})),_0xff6b6a==_0x3908be&&(_0x3ec3f1=null,_0x3908be=null);}}const _0x1109c6={},_0x4c336c=new Set();for(const _0x25a4bb of _0x29556a){const _0x1d7d44=_0x313756['deletions'][_0x25a4bb],_0x2a0630=_0x313756['insertions'][_0x25a4bb];for(const {userId:_0x5844da}of this['_touchedMarkers']['values']())null!==_0x5844da&&_0x4c336c['add'](_0x5844da);for(const {userId:_0x12142b}of this['_touchedRoots']['values']())null!==_0x12142b&&_0x4c336c['add'](_0x12142b);this['_markChanges'](_0x2a0630,_0x2f1051['insertions'][_0x25a4bb],_0x4db9d1,'insertion',_0x4c336c),this['_markChanges'](_0x1d7d44,_0x2f1051['deletions'][_0x25a4bb],_0x7f72bc,'deletion',_0x4c336c),_0x1109c6[_0x25a4bb]={'insertions':this['_prepareViewToSave'](_0x2a0630),'deletions':this['_prepareViewToSave'](_0x1d7d44),'attachChange':this['_touchedRoots']['get'](_0x25a4bb)||null,'attributesBefore':_0x29ca9e(this['_baseRootsAttributes']['get'](_0x25a4bb))||{},'attributesAfter':_0x29ca9e(this['_diffRootsAttributes']['get'](_0x25a4bb))};}return{'diffData':_0x1109c6,'authorsIds':Array['from'](_0x4c336c)};}['_processRootBeforeSave'](_0x1648bb){for(const [,_0x940d01]of _0x1648bb['markers']){const _0x4fc05d=_0x940d01['start']['getAncestors']()['filter'](_0x4f286f=>'tableCell'==_0x4f286f['name']);for(const _0x13c2e7 of _0x4fc05d)0x1==_0x13c2e7['childCount']&&_0x13c2e7['getChild'](0x0)['is']('element','paragraph')&&_0x13c2e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x10aa5b){this['_processRootBeforeSave'](_0x10aa5b);const _0x3c027e=this['editor']['data']['toView'](_0x10aa5b,{}),_0x2ca590=Array['from'](_0x3c027e['getChildren']())['map'](_0x1f6cac=>this['_getViewJson'](_0x1f6cac));return JSON['stringify'](_0x2ca590);}['_getViewJson'](_0x2e49b2){if(_0x2e49b2['is']('$text'))return _0x2e49b2['data'];{const _0x1d070e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x531e72=_0x2e49b2,_0x1167b8=this['editor']['data']['htmlProcessor']['domConverter'],_0x142104={'type':_0x1d070e['_getTypeCharForViewElement'](_0x531e72),'name':_0x531e72['name'],'attributes':Array['from'](_0x531e72['getAttributes']()),'children':Array['from'](_0x531e72['getChildren']())['map'](_0x5242e9=>this['_getViewJson'](_0x5242e9))};if(_0x2e49b2['is']('uiElement')&&'$comment'!=_0x2e49b2['name']){const _0xc60b78=_0x2e49b2['render'](_0x1167b8['domDocument'],_0x1167b8);_0x142104['children']['push'](_0xc60b78['outerHTML']);}else{if(_0x2e49b2['is']('rawElement')){const _0x4c5291=_0x1167b8['domDocument']['createElement'](_0x531e72['name']);_0x2e49b2['render'](_0x4c5291,_0x1167b8),_0x142104['children']['push'](_0x4c5291['innerHTML']);}}const _0x35bf1d=Array['from'](_0x531e72['getCustomProperties']());_0x35bf1d['length']>0x0&&(_0x142104['customProperties']=_0x35bf1d);const _0x436f90=_0x531e72['getFillerOffset']();return null!==_0x436f90&&(_0x142104['fillerOffset']=_0x436f90),_0x142104;}}['_markChanges'](_0x23f570,_0x5068d5,_0x37ac22,_0x1c339,_0x14ec99){let _0x5acad6=null,_0x4341e3=null,_0x4f7963=0x0;const _0x13e36d=this['editor']['model'];for(let _0x16b80d=0x0;_0x16b80d<_0x5068d5['length'];_0x16b80d++){const _0x27a184=this['_getVidAttributeName'](_0x5068d5[_0x16b80d]),_0x5ab989=_0x5068d5[_0x16b80d]['item']['getAttribute'](_0x27a184),_0x361202=_0x37ac22['get'](_0x5ab989),_0x390e10=_0x16b80d==_0x5068d5['length']-0x1;(!_0x5acad6&&_0x361202&&(_0x5acad6=_0x361202,_0x4341e3=_0x5068d5[_0x16b80d]),_0x5acad6&&(!_0x361202||_0x361202['userId']!=_0x5acad6['userId']))&&(_0x217d17(_0x361202,P(_0x4341e3,_0x23f570,_0x13e36d),P(_0x5068d5[_0x16b80d],_0x23f570,_0x13e36d)),_0x5acad6=_0x361202||null,_0x4341e3=_0x361202?_0x5068d5[_0x16b80d]:null),_0x5acad6&&_0x390e10&&_0x217d17(_0x361202,P(_0x4341e3,_0x23f570,_0x13e36d),V(_0x5068d5[_0x16b80d],_0x23f570,_0x13e36d));}function _0x217d17(_0x3ea28f,_0x3e436a,_0x56c984){const _0x52d480=_0x5acad6['userId'],_0x28690c='revision:'+_0x1c339+':'+_0x52d480+':'+_0x4f7963++,_0x1f4dec=_0x13e36d['createRange'](_0x3e436a,_0x56c984);_0x23f570['markers']['set'](_0x28690c,_0x1f4dec),null!==_0x52d480&&_0x14ec99['add'](_0x52d480);}}['_getVidAttributeName'](_0x37cdc8){switch(_0x37cdc8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x479f40,_0x437a95){_0x479f40['baseVersion']=null;for(const _0x31e39d in _0x479f40){const _0x4c3ebf=_0x479f40[_0x31e39d];if(_0x4c3ebf instanceof _0x18cc82){const _0x59c558=_0x437a95['get'](_0x4c3ebf['root']['rootName']);_0x479f40[_0x31e39d]=this['_fixPosition'](_0x4c3ebf,_0x59c558);}if(_0x4c3ebf instanceof _0x29e7cd){const _0x17b8dc=_0x437a95['get'](_0x4c3ebf['root']['rootName']);_0x479f40[_0x31e39d]=this['_fixRange'](_0x4c3ebf,_0x17b8dc);}'root'===_0x31e39d&&(_0x479f40['root']=_0x437a95['get'](_0x479f40['root']['rootName']));}}['_fixRange'](_0x304a82,_0x22806d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x304a82['start'],_0x22806d),this['_fixPosition'](_0x304a82['end'],_0x22806d));}['_fixPosition'](_0x1f8c54,_0x18f2e5){return this['editor']['model']['createPositionFromPath'](_0x18f2e5,_0x1f8c54['path'],_0x1f8c54['stickiness']);}['_handleInsertOperation'](_0x1c06c6){const _0x51f316=this['_idsRoots']['get'](_0x1c06c6['position']['root']['rootName']),_0x1745fb=this['_fixPosition'](_0x1c06c6['position'],_0x51f316),_0x1f8ad8=null===_0x1c06c6['_authorId']?null:_0x1c06c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32b3dc=_0x1745fb['parent'],_0x56c40c=this['_revisionId'],_0x33afeb=[];for(const _0x11d40e of _0x1c06c6['nodes'])if(_0x11d40e['is']('element'))_0x33afeb['push'](this['_makeIdsRoot'](_0x11d40e));else{for(let _0x1f201c=0x0;_0x1f201c<_0x11d40e['offsetSize'];_0x1f201c++)_0x33afeb['push'](new _0x25cd9f('$text',{'vid':this['_revisionId']++}));}const _0x587cec=this['_revisionId'];for(let _0x5963be=_0x56c40c;_0x5963be<_0x587cec;_0x5963be++)this['_touched']['set'](_0x5963be,{'userId':_0x1f8ad8});_0x32b3dc['_insertChild'](_0x1745fb['offset'],_0x33afeb);}['_handleMoveOperation'](_0x414425){(_0x414425=this['_cloneOperation'](_0x414425,this['_idsRoots']))['_execute']();const _0x96909d=null===_0x414425['_authorId']?null:_0x414425['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe94f5f=_0x414425['getMovedRangeStart'](),_0x237122=_0xe94f5f['parent'],_0x3fa7dd=_0xe94f5f['offset'];!function _0x3f8fbc(_0x473441,_0x2fd8de,_0x4c2934,_0x5e7bed){for(let _0x2d88fe=_0x4c2934;_0x2d88fe<_0x5e7bed;_0x2d88fe++){const _0x2466e8=_0x2fd8de['getChild'](_0x2d88fe);_0x2466e8['is']('element','$text')?_0x473441['set'](_0x2466e8['getAttribute']('vid'),{'userId':_0x96909d}):(_0x473441['set'](_0x2466e8['getAttribute']('vid_start'),{'userId':_0x96909d}),_0x3f8fbc(_0x473441,_0x2466e8,0x0,_0x2466e8['childCount']),_0x473441['set'](_0x2466e8['getAttribute']('vid_end'),{'userId':_0x96909d}));}}(this['_touched'],_0x237122,_0x3fa7dd,_0x3fa7dd+_0x414425['howMany']);}['_handleMergeOperation'](_0x3c3d99){const _0x26e239=null===(_0x3c3d99=this['_cloneOperation'](_0x3c3d99,this['_idsRoots']))['_authorId']?null:_0x3c3d99['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b0fa2=_0x3c3d99['targetPosition']['parent'],_0xc467de=_0x3c3d99['sourcePosition']['parent'],_0x455312=_0x2b0fa2['getAttribute']('vid_end'),_0x394352=_0xc467de['getAttribute']('vid_start');_0x2b0fa2['_setAttribute']('vid_end',_0xc467de['getAttribute']('vid_end')),_0xc467de['_setAttribute']('vid_end',_0x455312),this['_touched']['set'](_0x394352,{'userId':_0x26e239}),this['_touched']['set'](_0x455312,{'userId':_0x26e239}),_0x3c3d99['_execute']();}['_handleSplitOperation'](_0xf0928a){const _0x1f6664=null===(_0xf0928a=this['_cloneOperation'](_0xf0928a,this['_idsRoots']))['_authorId']?null:_0xf0928a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a8a17=_0xf0928a['graveyardPosition'],_0x46649e=_0xf0928a['splitPosition']['parent'];_0xf0928a['_execute']();const _0x1dfd8b=_0x46649e['getAttribute']('vid_end'),_0x4781e4=_0xf0928a['insertionPosition']['nodeAfter'];if(_0x2a8a17){const _0x568ddd=_0x4781e4['getAttribute']('vid_end'),_0x199073=_0x46649e['getAttribute']('vid_end');_0x46649e['_setAttribute']('vid_end',_0x568ddd),_0x4781e4['_setAttribute']('vid_end',_0x199073),this['_touched']['set'](_0x46649e['getAttribute']('vid_end'),{'userId':_0x1f6664}),this['_touched']['set'](_0x4781e4['getAttribute']('vid_start'),{'userId':_0x1f6664});}else{const _0x251012=this['_revisionId']++,_0x2b1e0a=this['_revisionId']++;_0x46649e['_setAttribute']('vid_end',_0x251012),_0x4781e4['_setAttribute']('vid_start',_0x2b1e0a),_0x4781e4['_setAttribute']('vid_end',_0x1dfd8b),this['_touched']['set'](_0x251012,{'userId':_0x1f6664}),this['_touched']['set'](_0x2b1e0a,{'userId':_0x1f6664});}}['_handleMarkerOperation'](_0x1accac){if(!_0x1accac['affectsData'])return;const _0x9fbd6c=(_0x1accac=this['_cloneOperation'](_0x1accac,this['_diffRoots']))['oldRange']?_0x1accac['oldRange']['root']:null,_0x12e749=_0x1accac['newRange']?_0x1accac['newRange']['root']:null;_0x9fbd6c&&this['_markers']['delete'](_0x1accac['name']),_0x12e749&&this['_markers']['set'](_0x1accac['name'],_0x1accac['newRange']['clone']());const _0xf31f2=null===_0x1accac['_authorId']?null:_0x1accac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55e1f8=_0x1accac['name'];if(!this['_touchedMarkers']['has'](_0x55e1f8))return void this['_touchedMarkers']['set'](_0x55e1f8,{'range':_0x1accac['oldRange'],'userId':_0xf31f2});const _0x2eab07=this['_touchedMarkers']['get'](_0x55e1f8),_0x5cb560=_0x2eab07['range'],_0x1aa36d=_0x1accac['newRange'];null==_0x5cb560&&null==_0x1aa36d||_0x5cb560&&_0x1aa36d&&_0x5cb560['isEqual'](_0x1aa36d)?this['_touchedMarkers']['delete'](_0x1accac['name']):_0x2eab07['userId']=_0xf31f2;}['_handleRootOperation'](_0x347acf,_0x3cf8c4){this['_diffRoots']['has'](_0x347acf['rootName'])?this['_diffRoots']['get'](_0x347acf['rootName'])['_isAttached']=_0x347acf['isAdd']:(this['_diffRoots']['set'](_0x347acf['rootName'],N(_0x347acf['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x347acf['rootName'],{}),_0x3cf8c4&&this['_idsRoots']['set'](_0x347acf['rootName'],N(_0x347acf['rootName'],!0x0)));const _0x2c7890=null===_0x347acf['_authorId']?null:_0x347acf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2475cb=this['_touchedRoots']['get'](_0x347acf['rootName']);_0x2475cb&&_0x2475cb['userId']===_0x2c7890?this['_touchedRoots']['delete'](_0x347acf['rootName']):this['_touchedRoots']['set'](_0x347acf['rootName'],{'userId':_0x2c7890,'isAttached':_0x347acf['isAdd']});}['_handleRootAttributeOperation'](_0x1904b0){const _0x65ef4a=this['_diffRootsAttributes']['get'](_0x1904b0['root']['rootName']);null===_0x1904b0['newValue']?delete _0x65ef4a[_0x1904b0['key']]:_0x65ef4a[_0x1904b0['key']]=_0x1904b0['newValue'];}}function x(_0x1eb177){const _0x36b3a3=N(_0x1eb177['rootName'],_0x1eb177['isAttached']());for(const _0x157788 of _0x1eb177['getChildren']()){const _0x139373=_0x157788['_clone'](!0x0);_0x36b3a3['_appendChild'](_0x139373);}return _0x36b3a3;}function N(_0x126050,_0x3c7632=!0x0){const _0x7c1575=new _0x30066f();return _0x7c1575['rootName']=_0x126050,_0x7c1575['_isAttached']=_0x3c7632,_0x7c1575['isAttached']=()=>_0x7c1575['_isAttached'],_0x7c1575;}function P(_0x556f2a,_0x181e74,_0x16f154){const _0xfdefe8='elementEnd'==_0x556f2a['type']?_0x16f154['createPositionAt'](_0x556f2a['item'],'end'):_0x16f154['createPositionBefore'](_0x556f2a['item']);return _0x16f154['createPositionFromPath'](_0x181e74,_0xfdefe8['path'],_0xfdefe8['stickiness']);}function V(_0x3c704b,_0x363fd3,_0x53760d){const _0x1ad0be='elementStart'==_0x3c704b['type']?_0x53760d['createPositionAt'](_0x3c704b['item'],0x0):_0x53760d['createPositionAfter'](_0x3c704b['item']);return _0x53760d['createPositionFromPath'](_0x363fd3,_0x1ad0be['path'],_0x1ad0be['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x208296(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x397d9d){super(),this['id']=_0x397d9d['id']||_0x83b1c9(),this['author']=_0x397d9d['author'],this['type']=_0x397d9d['type'],this['data']=_0x397d9d['data']||{},this['rootName']=_0x397d9d['rootName'],this['set']('createdAt',_0x397d9d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x532f1a,_0x597bc0){this['newRevisionId']=_0x532f1a,this['oldRevisionId']=_0x597bc0,this['changes']=new _0x390dd6();}['_setChanges'](_0x1eb78f){for(const _0x453d8c of _0x1eb78f)this['changes']['add'](_0x453d8c);}}class l extends _0x55ca5c{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x39e2b4,_0x5b3cf1,S,$];}constructor(_0xaba064){super(_0xaba064),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3bff18,_0x225ffb,_0x131918)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb84144=>{for(const _0x3a6fcf of this['editor']['editing']['view']['document']['roots'])_0x131918?_0xb84144['removeClass']('ck-editor__editable__overlay',_0x3a6fcf):_0xb84144['addClass']('ck-editor__editable__overlay',_0x3a6fcf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x214af3=>null!==_0x214af3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5ccce2,_0x502f41,_0x4ea949)=>_0x5ccce2&&_0x4ea949?_0x502f41['changes']['getIndex'](_0x4ea949):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x27bc26,_0x2590df)=>_0x27bc26?_0x2590df['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5b3cf1);}['init'](){const _0x2e6cfc=this['editor'],_0x660cb2=new rt(_0x2e6cfc,{'direction':'backward'}),_0x5d3d79=new rt(_0x2e6cfc,{'direction':'forward'});(_0x2e6cfc['commands']['add']('showPreviousChange',_0x660cb2),_0x2e6cfc['commands']['add']('showNextChange',_0x5d3d79),_0x2e6cfc['commands']['add']('restoreRevision',new nt(_0x2e6cfc)),this['on']('change:numberOfChanges',()=>{_0x660cb2['refresh'](),_0x5d3d79['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2e6cfc['enableReadOnlyMode']('revision-viewer'),_0x2e6cfc['plugins']['has']('WidgetToolbarRepository'))&&_0x2e6cfc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3d3b57){return await this['_utils']['loadRevisionData'](_0x3d3b57,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3d3b57);}async['getRevisionRootsAttributes'](_0x5085b9){return await this['_utils']['loadRevisionData'](_0x5085b9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5085b9);}async['compare'](_0x4b04a6,_0x40bfdc,_0x178fb1=!0x1){if(!this['isEnabled'])return;const _0x4eed61=this['diff'],_0x4b4d98=this['repository'],_0x1fafce='string'==typeof _0x4b04a6?_0x4b4d98['getRevision'](_0x4b04a6):_0x4b04a6,_0x500089='string'==typeof _0x40bfdc?_0x4b4d98['getRevision'](_0x40bfdc):_0x40bfdc,_0x3a96f6=_0x1fafce['id'],_0x201f6c=_0x500089?_0x500089['id']:null;if(!_0x178fb1&&this['diff']&&this['diff']['newRevisionId']===_0x3a96f6&&this['diff']['oldRevisionId']===_0x201f6c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3a96f6,_0x201f6c);const _0x36885c=this['_getRevisionsRange'](_0x1fafce,_0x500089,!0x0)['map'](_0x13663e=>this['_utils']['loadRevisionData'](_0x13663e,this['adapter']));return _0x36885c['push'](new Promise(_0x5020b6=>{setTimeout(_0x5020b6,0x14);})),Promise['all'](_0x36885c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29e51d=this['_getDiff'](_0x3a96f6,_0x201f6c);for(const _0x441fc4 of _0x29e51d['changes'])this['_changeIdToChange']['set'](_0x441fc4['id'],_0x441fc4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57d066=>{for(const _0x21cde0 of this['editor']['model']['document']['getRootNames']())_0x57d066['detachRoot'](_0x21cde0);for(const _0x3e005e of Object['keys'](_0x29e51d['model'])){const _0x3a0e89=_0x57d066['addRoot'](_0x3e005e);for(const _0x1fa43c of Object['keys'](_0x29e51d['attributes'][_0x3e005e]))_0x57d066['setAttribute'](_0x1fa43c,_0x29e51d['attributes'][_0x3e005e][_0x1fa43c],_0x3a0e89);_0x57d066['insert'](_0x29e51d['model'][_0x3e005e],_0x3a0e89,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29e51d['changes'])),this['isReady']=!0x0;})['catch'](_0x1d1932=>{console['error'](_0x1d1932),this['_cleanUp'](),_0x4eed61&&(this['diff']=_0x4eed61),this['isReady']=!0x0;});}['addRevisionData'](_0x58542f,_0xa23ab5){const _0x30c113=this['repository']['createRevision'](_0x58542f);return _0x30c113['on']('_update',(_0x3f7b84,_0x2b2b38,_0x30f9ec)=>_0xa23ab5(_0x2b2b38,_0x30f9ec,_0x30c113)),this['repository']['addRevision'](_0x30c113),_0x30c113;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3c0d3e=>{for(const _0x8facb3 of this['editor']['model']['document']['getRootNames']())_0x3c0d3e['detachRoot'](_0x8facb3);});}['_sortAndFilterDiffChanges'](_0x43c5d1){const _0x1120a3=[],_0x360dbb=new Map();for(const _0x482d67 of this['editor']['model']['document']['getRootNames']()){const _0x384c6f=this['editor']['editing']['view']['getDomRoot'](_0x482d67);if(!_0x384c6f)continue;const _0x364020=_0x384c6f['getClientRects']()['item'](0x0);_0x364020&&(_0x1120a3['push'](_0x482d67),_0x360dbb['set'](_0x482d67,_0x364020));}return _0x1120a3['sort']((_0x36ab2f,_0x22bda6)=>{const _0xb20a00=_0x360dbb['get'](_0x36ab2f),_0x2c9a1b=_0x360dbb['get'](_0x22bda6);return _0xb20a00['y']-_0x2c9a1b['y']||_0xb20a00['x']-_0x2c9a1b['x'];}),(_0x43c5d1=_0x43c5d1['filter'](_0x3972d5=>_0x1120a3['includes'](_0x3972d5['rootName'])))['sort']((_0x4452be,_0x409979)=>_0x1120a3['indexOf'](_0x4452be['rootName'])-_0x1120a3['indexOf'](_0x409979['rootName'])),_0x43c5d1;}['_makeTape'](_0xf9fc2c){const _0x224fca=Array['from'](_0xf9fc2c['markers'])['filter'](([_0x28c409,_0x533989])=>_0x28c409['startsWith']('revision:')&&!_0x533989['isCollapsed']),_0x3211f7=Array['from'](this['editor']['model']['createRangeIn'](_0xf9fc2c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x224fca['length'])for(const _0x1c00ae of _0x3211f7){const [_0x38d7f4,_0x5c535d]=_0x224fca[0x0],[,_0x1c84c2,_0x2a3a6e]=_0x38d7f4['split'](':');if(_0x5c535d['end']['isEqual'](_0x1c00ae['nextPosition'])&&_0x224fca['shift'](),(_0x1c00ae['previousPosition']['isEqual'](_0x5c535d['start'])||_0x1c00ae['previousPosition']['isAfter'](_0x5c535d['start']))&&('insertion'==_0x1c84c2?_0x1c00ae['isAdded']={'userId':_0x2a3a6e}:'deletion'==_0x1c84c2&&(_0x1c00ae['isRemoved']={'userId':_0x2a3a6e})),0x0==_0x224fca['length'])break;}return _0x3211f7;}['_refreshStartEndIndex'](_0x5bb7c8){const _0x48458e=new Map();for(let _0x2236a7=0x0;_0x2236a7<_0x5bb7c8['length'];_0x2236a7++)'text'===_0x5bb7c8[_0x2236a7]['type']?(_0x5bb7c8[_0x2236a7]['item']['startIndex']=_0x2236a7,_0x5bb7c8[_0x2236a7]['item']['endIndex']=_0x2236a7):('elementStart'===_0x5bb7c8[_0x2236a7]['type']?_0x5bb7c8[_0x2236a7]['item']['startIndex']=_0x2236a7:'elementEnd'===_0x5bb7c8[_0x2236a7]['type']&&(_0x5bb7c8[_0x2236a7]['item']['endIndex']=_0x2236a7),_0x48458e['set'](_0x5bb7c8[_0x2236a7]['id'],_0x2236a7));for(const _0x2b5765 of _0x48458e['values']())'elementStart'===_0x5bb7c8[_0x2b5765]['type']?_0x5bb7c8[_0x2b5765]['item']['endIndex']=_0x48458e['get'](_0x5bb7c8[_0x2b5765]['pairId']):'elementEnd'===_0x5bb7c8[_0x2b5765]['type']&&(_0x5bb7c8[_0x2b5765]['item']['startIndex']=_0x48458e['get'](_0x5bb7c8[_0x2b5765]['pairId']));}['_processTape'](_0x181718){for(let _0x479dbe=0x0;_0x479dbe<_0x181718['length'];_0x479dbe++){if('elementStart'===_0x181718[_0x479dbe]['type'])_0x181718[_0x479dbe]['item']['startIndex']=_0x479dbe;else{if('elementEnd'===_0x181718[_0x479dbe]['type']){_0x181718[_0x479dbe]['item']['endIndex']=_0x479dbe;const _0x20328b=_0x181718[_0x479dbe]['item']['startIndex'];_0x181718[_0x20328b]['pairId']=_0x181718[_0x479dbe]['id'],_0x181718[_0x479dbe]['pairId']=_0x181718[_0x20328b]['id'];}else _0x181718[_0x479dbe]['item']['startIndex']=_0x479dbe,_0x181718[_0x479dbe]['item']['endIndex']=_0x479dbe,_0x181718[_0x479dbe]['pairId']=null;}_0x181718[_0x479dbe]['markersStart']||(_0x181718[_0x479dbe]['markersStart']=[],_0x181718[_0x479dbe]['markersEnd']=[]);}}['_markInsertions'](_0x40bad2,_0x818e3b){const _0x2f4cf1=_0x40bad2['filter'](_0x16552e=>!_0x16552e['isAdded']);for(let _0x51325c=0x0;_0x51325c<_0x818e3b['length'];_0x51325c++)_0x818e3b[_0x51325c]['isAdded']&&(_0x2f4cf1[_0x51325c]['isAdded']=_0x818e3b[_0x51325c]['isAdded']);}['_getDiff'](_0x5f3303,_0x1b94e1=null){const _0x4829af=this['repository']['getRevision'](_0x5f3303),_0x2cdf5b=_0x1b94e1?this['repository']['getRevision'](_0x1b94e1):null,_0x106127=this['_getRevisionsRange'](_0x4829af,_0x2cdf5b),_0x193fff=_0x106127[_0x106127['length']-0x1],_0x29233d=new Map(),_0x5069b1={'model':{},'attributes':{},'changes':[]},_0x2b115e=new Set(),_0x18d959=new Map();for(let _0x59324b=_0x106127['length']-0x1;_0x59324b>=0x0;_0x59324b--){const _0x10a5d4=_0x106127[_0x59324b];for(const _0x295d31 of Object['keys'](_0x10a5d4['diffData']))if(_0x10a5d4['diffData'][_0x295d31]['attachChange']){const _0x3a1750=_0x10a5d4['diffData'][_0x295d31]['attachChange'];_0x3a1750['isAttached']?(_0x2b115e['add'](_0x295d31),_0x18d959['has'](_0x295d31)&&_0x18d959['get'](_0x295d31)['userId']==_0x3a1750['userId']?_0x18d959['delete'](_0x295d31):_0x18d959['set'](_0x295d31,_0x3a1750)):_0x18d959['has'](_0x295d31)?(_0x2b115e['delete'](_0x295d31),_0x18d959['delete'](_0x295d31)):(_0x2b115e['add'](_0x295d31),_0x18d959['set'](_0x295d31,_0x3a1750));}else _0x2b115e['add'](_0x295d31);}for(const _0x4aa152 of _0x2b115e){const _0x9c4e90=_0x18d959['has'](_0x4aa152)&&!_0x18d959['get'](_0x4aa152)['isAttached'];let _0x2f1da7=_0x9c4e90?_0x106127['length']-0x1:0x0;const _0x55b6c2=_0x9c4e90?-0x1:0x1;for(;_0x106127[_0x2f1da7];){const _0x3c868b=_0x106127[_0x2f1da7];if(_0x3c868b['diffData'][_0x4aa152]){const _0xa5274b=_0x9c4e90?_0x3c868b['diffData'][_0x4aa152]['attributesBefore']:_0x3c868b['diffData'][_0x4aa152]['attributesAfter'];_0x5069b1['attributes'][_0x4aa152]=_0xa5274b?_0x29ca9e(_0xa5274b):{};break;}_0x2f1da7+=_0x55b6c2;}}for(const _0x3e83c4 of _0x106127){_0x3e83c4['model']={};for(const _0x5ad115 of _0x3e83c4['authors'])_0x29233d['set'](_0x5ad115['id'],_0x5ad115);for(const _0x475d91 of _0x2b115e){const _0x284954=_0x3e83c4['diffData'][_0x475d91]?_0x3e83c4['diffData'][_0x475d91]['insertions']:'[]',_0x2aa369=_0x3e83c4['diffData'][_0x475d91]?_0x3e83c4['diffData'][_0x475d91]['deletions']:'[]';_0x3e83c4['model'][_0x475d91]={'insertions':this['_utils']['_makeModelFromViewString'](_0x284954),'deletions':this['_utils']['_makeModelFromViewString'](_0x2aa369)};}}for(const _0x15611b of _0x2b115e){let _0xa4ce56=null,_0x15b744=0x0;const _0x5ac64b=new Map(Array['from'](_0x4829af['model'][_0x15611b]['insertions']['markers'])['filter'](([_0x301729])=>!_0x301729['startsWith']('revision:')));let _0xac19d8=0x0;for(const _0x5274de of _0x106127){const _0x19d1f4=this['_makeTape'](_0x5274de['model'][_0x15611b]['insertions']);_0x5274de==_0x4829af?(_0xa4ce56=_0x19d1f4,_0x15b744=_0xa4ce56['length'],_0xa4ce56['forEach'](_0x5c4dda=>{_0x5c4dda['id']=_0xac19d8++;}),this['_processTape'](_0xa4ce56)):this['_markInsertions'](_0xa4ce56,_0x19d1f4);const _0x8c4357=_0xa4ce56['filter'](_0xdd96c4=>!_0xdd96c4['isAdded'])['map'](_0x5413b6=>_0x5413b6['id']);let _0x5a47ca=0x0;const _0x2e5672=this['_makeTape'](_0x5274de['model'][_0x15611b]['deletions']);_0x2e5672['forEach'](_0x1cda3e=>{_0x1cda3e['isRemoved']?_0x1cda3e['id']=_0x15b744++:_0x1cda3e['id']=_0x8c4357[_0x5a47ca++];}),this['_processTape'](_0x2e5672),this['_setDistance'](_0xa4ce56,'isAdded'),this['_setDistance'](_0x2e5672,'isRemoved'),_0x5274de==_0x4829af&&this['_markMarkers'](_0xa4ce56,_0x5ac64b),_0xa4ce56=this['_joinTapes'](_0xa4ce56,_0x2e5672),this['_refreshStartEndIndex'](_0xa4ce56),this['_setDistance'](_0xa4ce56,'isRemoved');}_0xa4ce56=_0xa4ce56['filter'](_0x53cc78=>!(_0x53cc78['isAdded']&&_0x53cc78['isRemoved']));const _0x104b0e=new Map(_0x193fff['model'][_0x15611b]['deletions']['markers']),_0x424fc1=new Set(_0x5ac64b['keys']());for(const _0x1e794a of _0x104b0e['keys']())_0x424fc1['delete'](_0x1e794a);this['_markSuggestions'](_0xa4ce56,_0x424fc1),this['_fixObsoleteTags'](_0xa4ce56),_0xa4ce56=this['_removeMissingPairs'](_0xa4ce56),_0xa4ce56=this['_markMismatchedRemovedTags'](_0xa4ce56),_0xa4ce56=this['_removeUnsupportedChanges'](_0xa4ce56);const {root:_0xe337a2,changes:_0x17f848}=this['_makeModelFromTape'](_0xa4ce56,_0x29233d,_0x15611b);_0x5069b1['model'][_0x15611b]=_0xe337a2;const _0x1e56b9=_0x18d959['get'](_0x15611b);if(_0x1e56b9){const _0x4a10aa=_0x29233d['get'](_0x1e56b9['userId']),_0x59ae9d=new G({'author':_0x4a10aa,'type':_0x1e56b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x15611b});_0x17f848['unshift'](_0x59ae9d),_0x5069b1['attributes'][_0x15611b]['revisionHistoryAttachChange']=_0x59ae9d['id'];}_0x5069b1['changes']=_0x5069b1['changes']['concat'](_0x17f848);}return _0x5069b1;}['_markMarkers'](_0x41edce,_0xe751b5){for(let _0x1df798=0x0;_0x1df798<_0x41edce['length'];_0x1df798++)for(const [_0x3f230d,_0x5e1863]of _0xe751b5)!_0x5e1863['isCollapsed']&&_0x5e1863['start']['isEqual'](_0x41edce[_0x1df798]['previousPosition'])&&_0x41edce[_0x1df798]['markersStart']['push'](_0x3f230d),_0x5e1863['end']['isEqual'](_0x41edce[_0x1df798]['nextPosition'])&&_0x41edce[_0x1df798]['markersEnd']['push'](_0x3f230d);}['_joinTapes'](_0x5d2aef,_0x29f49b){let _0x5100bc=[],_0xf2370f=0x0,_0x2ee633=0x0;for(;_0xf2370f<_0x5d2aef['length']||_0x2ee633<_0x29f49b['length'];){const _0x52b656=_0x5d2aef[_0xf2370f]||{},_0x38be60=_0x29f49b[_0x2ee633]||{};if(_0x52b656['id']==_0x38be60['id'])_0xf2370f++,_0x2ee633++,_0x5100bc['push'](_0x52b656);else{if(_0x38be60['isRemoved']&&_0x52b656['isAdded']){const {commonTape:_0x240cab,iEnd:_0xdbb403,jEnd:_0x3729dd}=this['_threeWayMerge'](_0x5d2aef,_0xf2370f,_0x29f49b,_0x2ee633);_0x5100bc=_0x5100bc['concat'](_0x240cab),_0xf2370f=_0xdbb403,_0x2ee633=_0x3729dd;}else _0x38be60['isRemoved']?(_0x2ee633++,_0x5100bc['push'](_0x38be60)):(_0xf2370f++,_0x5100bc['push'](_0x52b656));}}return _0x5100bc;}['_markSuggestions'](_0x232dc9,_0x3ef2ad){const _0x1a1cf2=[];for(let _0x3f6ab5=0x0;_0x3f6ab5<_0x232dc9['length'];_0x3f6ab5++){for(let _0x39efc6=0x0;_0x39efc6<_0x232dc9[_0x3f6ab5]['markersStart']['length'];_0x39efc6++){const _0x4cf801=_0x232dc9[_0x3f6ab5]['markersStart'][_0x39efc6];if(!_0x3ef2ad['has'](_0x4cf801))continue;const {group:_0x498525,type:_0x1342f0,authorId:_0x2f0d12}=_0x4a1ce7(_0x4cf801);'revision-suggestion'!=_0x498525||'insertion'!=_0x1342f0&&'deletion'!=_0x1342f0||(_0x1a1cf2['unshift']({'type':_0x1342f0,'name':_0x4cf801,'userId':_0x2f0d12}),_0x232dc9[_0x3f6ab5]['markersStart']['splice'](_0x39efc6,0x1),_0x39efc6--);}_0x3c6815(_0x232dc9[_0x3f6ab5]);for(let _0x1d5b54=0x0;_0x1d5b54<_0x232dc9[_0x3f6ab5]['markersEnd']['length'];_0x1d5b54++){const _0x59efdd=_0x232dc9[_0x3f6ab5]['markersEnd'][_0x1d5b54];if(!_0x3ef2ad['has'](_0x59efdd))continue;const {group:_0x48c90d,type:_0x3ed62a}=_0x4a1ce7(_0x59efdd);if('revision-suggestion'!=_0x48c90d||'insertion'!=_0x3ed62a&&'deletion'!=_0x3ed62a)continue;_0x232dc9[_0x3f6ab5]['markersEnd']['splice'](_0x1d5b54,0x1),_0x1d5b54--;const _0x45c4b0=_0x1a1cf2['findIndex'](_0x23731c=>_0x23731c['name']==_0x59efdd);_0x45c4b0>-0x1&&_0x1a1cf2['splice'](_0x45c4b0,0x1);}}function _0x4a1ce7(_0xc23274){const _0x50dd34=_0xc23274['split'](':');return{'group':_0x50dd34[0x0],'type':_0x50dd34[0x1],'subType':_0x50dd34['length']>=0x5?_0x50dd34[0x2]:null,'id':_0x50dd34['length']<0x5?_0x50dd34[0x2]:_0x50dd34[0x3],'authorId':_0x50dd34['length']<0x5?_0x50dd34[0x3]:_0x50dd34[0x4],'markerCount':0x6==_0x50dd34['length']?_0x50dd34[0x5]:null};}function _0x3c6815(_0x152108){for(let _0x20bcbb=0x0;_0x20bcbb<_0x1a1cf2['length'];_0x20bcbb++){if(_0x152108['isAdded']&&'insertion'==_0x1a1cf2[_0x20bcbb]['type']&&_0x152108['isAdded']['userId']==_0x1a1cf2[_0x20bcbb]['userId'])return _0x152108['isAddSuggestion']=_0x1a1cf2[_0x20bcbb],void delete _0x152108['isAdded'];if(!_0x152108['isAdded']&&!_0x152108['isRemoved']&&'deletion'==_0x1a1cf2[_0x20bcbb]['type'])return void(_0x152108['isRemoveSuggestion']=_0x1a1cf2[_0x20bcbb]);}}}['_setDistance'](_0x588ce7,_0x49a651){let _0x9a4358=0x0,_0x51a3ad=!0x1;const _0x34acbe=new Map();for(const _0x229b16 of _0x588ce7)_0x229b16[_0x49a651]?_0x51a3ad&&(_0x9a4358++,_0x51a3ad=!0x1):(_0x9a4358++,_0x51a3ad=!0x0),_0x34acbe['set'](_0x229b16['id'],_0x9a4358);for(let _0x262798=0x0;_0x262798<_0x588ce7['length'];_0x262798++){if('isRemoved'==_0x49a651&&_0x588ce7[_0x262798]['isAdded']||'isAdded'==_0x49a651&&_0x588ce7[_0x262798]['isRemoved'])continue;if('text'==_0x588ce7[_0x262798]['type']){_0x588ce7[_0x262798]['distance']=0x0;continue;}const _0x5ca520=_0x34acbe['get'](_0x588ce7[_0x262798]['pairId']),_0x10d880=_0x34acbe['get'](_0x588ce7[_0x262798]['id']);_0x588ce7[_0x262798]['distance']=_0x5ca520-_0x10d880;}}['_getRevisionsRange'](_0x56fbcb,_0x499874,_0x2d6ec2=!0x1){const _0x488fcd=[];let _0x47bf4b=this['repository']['getIndex'](_0x56fbcb),_0x5dc45b=this['repository']['getIndex'](_0x499874);for(-0x1==_0x5dc45b&&(_0x5dc45b=this['repository']['_revisions']['length'],_0x2d6ec2=!0x1);_0x47bf4b<_0x5dc45b;)_0x488fcd['push'](this['repository']['getRevision'](_0x47bf4b)),_0x47bf4b++;return _0x2d6ec2&&_0x488fcd['push'](this['repository']['getRevision'](_0x47bf4b)),_0x488fcd;}['_threeWayMerge'](_0x46e1ad,_0x173bd4,_0x10ccdb,_0x4ab59c){const _0x2bf98b=this['editor']['model']['schema'];let _0x3854f2=_0x173bd4;for(;_0x46e1ad[_0x3854f2]&&_0x46e1ad[_0x3854f2]['isAdded'];)_0x3854f2++;let _0x4135f2=_0x4ab59c;for(;_0x10ccdb[_0x4135f2]&&_0x10ccdb[_0x4135f2]['isRemoved'];)_0x4135f2++;_0x2271db(_0x46e1ad,_0x173bd4,_0x3854f2),_0x2271db(_0x10ccdb,_0x4ab59c,_0x4135f2);const _0x504b07=_0x10ccdb['slice'](_0x4ab59c,_0x4135f2)['concat'](_0x46e1ad['slice'](_0x173bd4,_0x3854f2));return _0x504b07['sort']((_0x5a6845,_0x376173)=>_0x5a6845['side']!=_0x376173['side']?_0x5a6845['side']-_0x376173['side']:_0x5a6845['level']!=_0x376173['level']?_0x5a6845['level']-_0x376173['level']:_0x5a6845['distance']!=_0x376173['distance']?_0x376173['distance']-_0x5a6845['distance']:!!_0x5a6845['isAdded']!=!!_0x376173['isAdded']?-0x1==_0x5a6845['side']||0x0==_0x5a6845['side']?_0x5a6845['isAdded']?-0x1:0x1:_0x5a6845['isAdded']?0x1:-0x1:_0x5a6845['index']-_0x376173['index']),{'commonTape':_0x504b07,'iEnd':_0x3854f2,'jEnd':_0x4135f2};function _0x2271db(_0x47f4e7,_0x26b3e0,_0xc5e2be){let _0x3a637d=-0x1,_0x5475eb=Number['POSITIVE_INFINITY'],_0x10a8ba=!0x0;for(let _0x4b5cd2=_0x26b3e0;_0x4b5cd2<_0xc5e2be;_0x4b5cd2++)if(_0x2bf98b['isInline'](_0x47f4e7[_0x4b5cd2]['item'])||(_0x10a8ba=!0x1),_0x47f4e7[_0x4b5cd2]['item']['startIndex']<_0x26b3e0&&(_0x3a637d=_0x4b5cd2),_0x47f4e7[_0x4b5cd2]['item']['endIndex']>=_0xc5e2be){_0x5475eb=_0x4b5cd2;break;}_0x10a8ba&&(_0x3a637d=_0xc5e2be-0x1);for(let _0x210a23=_0x26b3e0;_0x210a23<_0xc5e2be;_0x210a23++)_0x47f4e7[_0x210a23]['side']=_0x210a23<=_0x3a637d?-0x1:_0x210a23<_0x5475eb?0x0:0x1,_0x47f4e7[_0x210a23]['index']=_0x210a23;let _0x587767=0x0;for(let _0x45c039=_0x26b3e0;_0x45c039<=_0x3a637d;_0x45c039++)0x0==_0x47f4e7[_0x45c039]['distance']?_0x47f4e7[_0x45c039]['level']=_0x587767:(_0x587767++,_0x47f4e7[_0x45c039]['level']=_0x587767,_0x587767++);for(let _0x3312b5=_0x26b3e0;_0x3312b5<_0xc5e2be;_0x3312b5++)0x0==_0x47f4e7[_0x3312b5]['side']&&(_0x47f4e7[_0x3312b5]['level']=_0x587767);_0x587767=0x0;for(let _0x4f42fb=_0xc5e2be-0x1;_0x4f42fb>=_0x5475eb;_0x4f42fb--)0x0==_0x47f4e7[_0x4f42fb]['distance']?_0x47f4e7[_0x4f42fb]['level']=_0x587767:(_0x587767--,_0x47f4e7[_0x4f42fb]['level']=_0x587767,_0x587767--);}}['_fixObsoleteTags'](_0x40905c){const _0x87584e=new Map(),_0x31e9c5=this['editor']['model']['schema'];for(let _0x263cfb=0x1;_0x263cfb<_0x40905c['length'];_0x263cfb++){let _0x4866e6,_0x2d652c,_0x3b4d13;const _0x119495=_0x40905c[_0x263cfb],_0x153aa2=_0x40905c[_0x263cfb-0x1];if('text'==_0x119495['type'])continue;if(_0x119495['type']!=_0x153aa2['type'])continue;if(!_0x31e9c5['isBlock'](_0x153aa2['item'])||_0x31e9c5['isLimit'](_0x153aa2['item']))continue;if(!_0x31e9c5['isBlock'](_0x119495['item'])||_0x31e9c5['isLimit'](_0x119495['item']))continue;if((_0x40905c[_0x263cfb]['isAdded']||_0x40905c[_0x263cfb]['isAddSuggestion'])&&_0x40905c[_0x263cfb-0x1]['isRemoved'])_0x4866e6=_0x40905c[_0x263cfb],_0x2d652c=_0x40905c[_0x263cfb-0x1],_0x3b4d13=_0x263cfb-0x1;else{if(!_0x40905c[_0x263cfb]['isRemoved']||!_0x40905c[_0x263cfb-0x1]['isAdded']&&!_0x40905c[_0x263cfb-0x1]['isAddSuggestion'])continue;_0x4866e6=_0x40905c[_0x263cfb-0x1],_0x2d652c=_0x40905c[_0x263cfb],_0x3b4d13=_0x263cfb;}const _0x1c8b0e=_0x4866e6['level']==_0x2d652c['level'],_0x27af05=Math['abs'](_0x4866e6['level'])<Math['abs'](_0x2d652c['level'])&&0x0==_0x2d652c['distance'];(_0x1c8b0e||_0x27af05)&&(_0x87584e['set'](_0x2d652c['id'],_0x4866e6['id']),_0x40905c['splice'](_0x3b4d13,0x1),_0x263cfb--,_0x4866e6['isAdded']=!0x1);}for(let _0x37c6f5=0x0;_0x37c6f5<_0x40905c['length'];_0x37c6f5++)_0x87584e['has'](_0x40905c[_0x37c6f5]['pairId'])&&(_0x40905c[_0x37c6f5]['pairId']=_0x87584e['get'](_0x40905c[_0x37c6f5]['pairId']));}['_removeMissingPairs'](_0x32b445){const _0x282650=new Set(_0x32b445['map'](_0x12ca87=>_0x12ca87['id']));for(let _0x439f36=0x0;_0x439f36<_0x32b445['length'];_0x439f36++)_0x282650['has'](_0x32b445[_0x439f36]['pairId'])||0x0==_0x32b445[_0x439f36]['distance']||(_0x32b445[_0x439f36]['isIncorrect']=!0x0);return _0x32b445['filter'](_0x128fda=>!_0x128fda['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b270f){const _0x1ee6b6=new Set();for(let _0x44599c=0x0;_0x44599c<_0x2b270f['length'];_0x44599c++){if(_0x1ee6b6['has'](_0x2b270f[_0x44599c]['id'])&&_0x2b270f[_0x44599c]['isRemoved']&&(_0x2b270f[_0x44599c]['isIncorrect']=!0x0),_0x2b270f[_0x44599c]['isIncorrect'])continue;if(0x0==_0x2b270f[_0x44599c]['distance'])continue;if('elementStart'!=_0x2b270f[_0x44599c]['type'])continue;if(null==_0x2b270f[_0x44599c]['pairId'])continue;let _0x238829=_0x44599c+0x1,_0x142b4a=0x0;for(;_0x2b270f[_0x238829]['id']!=_0x2b270f[_0x44599c]['pairId'];)'elementStart'==_0x2b270f[_0x238829]['type']?_0x142b4a++:'elementEnd'==_0x2b270f[_0x238829]['type']&&_0x142b4a--,_0x238829++;if(0x0!=_0x142b4a){if(_0x2b270f[_0x44599c]['isRemoved'])_0x2b270f[_0x44599c]['isIncorrect']=!0x0;else{for(;_0x238829!=_0x44599c;)_0x2b270f[_0x238829]['isRemoved']&&0x0!=_0x2b270f[_0x238829]['distance']&&(_0x2b270f[_0x238829]['isIncorrect']=!0x0,_0x1ee6b6['add'](_0x2b270f[_0x238829]['pairId'])),_0x238829--;}}}return _0x2b270f['filter'](_0x1fd9de=>!_0x1fd9de['isIncorrect']);}['_removeUnsupportedChanges'](_0x53436a){const _0x133665=this['editor']['model']['schema'];for(let _0x169c3d=0x0;_0x169c3d<_0x53436a['length'];_0x169c3d++){if(!(_0x53436a[_0x169c3d]['isAdded']||_0x53436a[_0x169c3d]['isAddSuggestion']||_0x53436a[_0x169c3d]['isRemoved']||_0x53436a[_0x169c3d]['isRemoveSuggestion']))continue;if(0x0==_0x53436a[_0x169c3d]['distance'])continue;const _0x30b45c=_0x53436a[_0x169c3d]['item'];_0x133665['isBlock'](_0x30b45c)||_0x133665['isLimit'](_0x30b45c)||(_0x53436a[_0x169c3d]['isAdded']&&delete _0x53436a[_0x169c3d]['isAdded'],_0x53436a[_0x169c3d]['isAddSuggestion']&&delete _0x53436a[_0x169c3d]['isAddSuggestion'],_0x53436a[_0x169c3d]['isRemoveSuggestion']&&delete _0x53436a[_0x169c3d]['isRemoveSuggestion'],_0x53436a[_0x169c3d]['isRemoved']&&(_0x53436a[_0x169c3d]['isIncorrect']=!0x0));}return _0x53436a['filter'](_0x58835a=>!_0x58835a['isIncorrect']);}['_makeModelFromTape'](_0x1f0a6d,_0x484d1f,_0xe69363){const _0xba1ddf=new _0x30066f(),_0x25ea74=[],_0x400cbf=new Map(),_0x58e905=this['editor']['model'],_0x3fc82c=_0x58e905['schema'],_0x334554=[_0xba1ddf],_0x57c012={},_0x5b0625={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a7519=null;const _0x354d4f=[0x0];for(let _0x29a89f=0x0;_0x29a89f<_0x1f0a6d['length'];_0x29a89f++)if('elementStart'===_0x1f0a6d[_0x29a89f]['type']){_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f);const _0x65e2e5=new _0x25cd9f(_0x1f0a6d[_0x29a89f]['item']['name'],_0x1f0a6d[_0x29a89f]['item']['getAttributes']());_0x334554[0x0]['_appendChild'](_0x65e2e5),_0x354d4f['push'](0x0),_0x334554['unshift'](_0x65e2e5),_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f);}else'elementEnd'===_0x1f0a6d[_0x29a89f]['type']?(_0x334554['shift'](),_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f),_0x354d4f['pop'](),_0x354d4f[_0x354d4f['length']-0x1]++,_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f)):(_0x1f0a6d[_0x29a89f]['previousPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f),_0x1a7519?_0x1a7519['_data']+=_0x1f0a6d[_0x29a89f]['item']['data']:_0x1a7519=new _0x321254(_0x1f0a6d[_0x29a89f]['item']['data'],_0x1f0a6d[_0x29a89f]['item']['getAttributes']()),_0x1f0a6d[_0x29a89f+0x1]&&'text'===_0x1f0a6d[_0x29a89f+0x1]['type']&&_0x47183c(_0x1a7519,_0x1f0a6d[_0x29a89f+0x1]['item'])||(_0x334554[0x0]['_appendChild'](_0x1a7519),_0x1a7519=null),_0x354d4f[_0x354d4f['length']-0x1]+=_0x1f0a6d[_0x29a89f]['item']['offsetSize'],_0x1f0a6d[_0x29a89f]['nextPosition']=_0x58e905['createPositionFromPath'](_0xba1ddf,_0x354d4f));for(let _0x2ca880=0x0;_0x2ca880<_0x1f0a6d['length'];_0x2ca880++){const _0xb4e6bf=_0x1f0a6d[_0x2ca880]['previousPosition'],_0x229fa7=_0x1f0a6d[_0x2ca880]['nextPosition'];for(const _0x518118 of _0x1f0a6d[_0x2ca880]['markersStart'])_0x400cbf['set'](_0x518118,{'start':_0xb4e6bf,'end':null});_0xecc1f9('isRemoveSuggestion',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isAddSuggestion',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isRemoved',_0x2ca880,_0xb4e6bf,_0x229fa7),_0xecc1f9('isAdded',_0x2ca880,_0xb4e6bf,_0x229fa7);for(const _0x598ccf of _0x1f0a6d[_0x2ca880]['markersEnd']){const _0x5d7a7d=_0x400cbf['get'](_0x598ccf);_0x5d7a7d?_0x5d7a7d['end']=_0x229fa7:_0x400cbf['set'](_0x598ccf,{'start':_0x229fa7,'end':_0x229fa7});}}for(const [_0x513dca,_0x2565fc]of _0x400cbf){const _0x800319=this['editor']['model']['createRange'](_0x2565fc['start'],_0x2565fc['end']);_0xba1ddf['markers']['set'](_0x513dca,_0x800319);}return _0x25ea74['sort']((_0x3e313e,_0x44eaa4)=>{const _0x445e67=_0xba1ddf['markers']['get']('revision:'+_0x3e313e['id']),_0x458c08=_0xba1ddf['markers']['get']('revision:'+_0x44eaa4['id']);return _0x445e67['start']['isBefore'](_0x458c08['start'])?-0x1:_0x445e67['start']['isAfter'](_0x458c08['start'])?0x1:_0x445e67['end']['isBefore'](_0x458c08['end'])?-0x1:_0x445e67['end']['isAfter'](_0x458c08['end'])?0x1:'add'===_0x3e313e['type']?-0x1:0x1;}),{'root':_0xba1ddf,'changes':_0x25ea74};function _0xecc1f9(_0x1cc064,_0x5b235d,_0x24a628,_0x2fb9f7){const _0x1173da=!!_0x1f0a6d[_0x5b235d][_0x1cc064],_0x163a1e=_0x1173da?_0x1f0a6d[_0x5b235d][_0x1cc064]['userId']:null,_0x4fee6e=_0x5b235d===_0x1f0a6d['length']-0x1,_0x2d3133=_0x5b0625[_0x1cc064][0x0],_0x28d9a4=_0x3fc82c['isObject'](_0x1f0a6d[_0x5b235d]['item']);!_0x57c012[_0x1cc064]&&_0x1173da?_0x57c012[_0x1cc064]={'start':_0x24a628,'tapeItem':_0x1f0a6d[_0x5b235d],'userId':_0x163a1e,'type':_0x1cc064}:_0x57c012[_0x1cc064]&&!_0x1173da?(_0x57c012[_0x1cc064]['end']=_0x24a628,_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]=null):_0x57c012[_0x1cc064]&&_0x1173da&&_0x57c012[_0x1cc064]['userId']!==_0x163a1e&&(_0x57c012[_0x1cc064]['end']=_0x24a628,_0x2d3133&&_0x2d3133['userId']===_0x57c012[_0x1cc064]['userId']||_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]={'start':_0x24a628,'tapeItem':_0x1f0a6d[_0x5b235d],'userId':_0x163a1e,'type':_0x1cc064}),_0x57c012[_0x1cc064]&&_0x28d9a4&&('elementStart'!==_0x1f0a6d[_0x5b235d]['type']||_0x2d3133&&_0x2d3133['userId']===_0x163a1e||_0x5b0625[_0x1cc064]['unshift']({'userId':_0x163a1e,'object':_0x1f0a6d[_0x5b235d]['item'],'change':_0x57c012[_0x1cc064]}),'elementEnd'===_0x1f0a6d[_0x5b235d]['type']&&_0x2d3133&&_0x2d3133['object']===_0x1f0a6d[_0x5b235d]['item']&&(_0x5b0625[_0x1cc064]['shift'](),_0x57c012[_0x1cc064]=_0x2d3133['change'])),_0x57c012[_0x1cc064]&&_0x4fee6e&&(_0x57c012[_0x1cc064]['end']=_0x2fb9f7,_0x3991e1(_0x57c012[_0x1cc064]),_0x57c012[_0x1cc064]=null);}function _0x3991e1({start:_0x4aede4,end:_0x2db9a1,tapeItem:_0x3e92b1,userId:_0x39ccb1,type:_0x36766d}){const _0x535ef2=_0x3e92b1['item'],_0x5af2b0=_0x58e905['schema']['isBlock'](_0x535ef2)&&!_0x58e905['schema']['isLimit'](_0x535ef2),_0x54ebfd=_0x4aede4['nodeAfter']==_0x2db9a1['parent']&&_0x2db9a1['isAtStart'];if(_0x5af2b0&&_0x54ebfd)return;const _0x78385a=_0x58e905['createRange'](_0x4aede4,_0x2db9a1),_0x5a3140=_0x484d1f['get'](_0x39ccb1),_0x16572e=new G({'author':_0x5a3140,'type':'isAdded'==_0x36766d||'isAddSuggestion'==_0x36766d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36766d||'isRemoveSuggestion'==_0x36766d},'createdAt':new Date(),'rootName':_0xe69363});_0x25ea74['push'](_0x16572e),_0xba1ddf['markers']['set']('revision:'+_0x16572e['id'],_0x78385a);}function _0x47183c(_0x161cf9,_0x587475){const _0x7fd3e4=_0x161cf9['getAttributes'](),_0x513c81=_0x587475['getAttributes']();for(const _0xd875e5 of _0x7fd3e4){if(_0xd875e5[0x1]!==_0x587475['getAttribute'](_0xd875e5[0x0]))return!0x1;_0x513c81['next']();}return _0x513c81['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdcd0da=>{const _0x11437a=_0xdcd0da['markerName']['split'](':')[0x1],_0x4c435c=this['_getChangeFromId'](_0x11437a);if(!_0x4c435c)return null;const _0x15662c='add'==_0x4c435c['type']?'insertion':'deletion',_0xb77e8c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15662c];return _0x4c435c['data']['isSuggestion']&&_0xb77e8c['push']('ck-suggestion-marker-'+_0x15662c+'-new'),this['activeChange']==_0x4c435c&&_0xb77e8c['push']('ck-suggestion-marker--active'),{'classes':_0xb77e8c,'attributes':{'data-change-id':_0x11437a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x31b0da=>{_0x31b0da['on']('element:pre',(_0x1284e2,_0x5d88b6,_0x322d86)=>{const _0x22d03f=_0x5d88b6['viewItem']['getChild'](0x0);if(!_0x22d03f||!_0x22d03f['is']('element','code'))return;if(!_0x322d86['consumable']['consume'](_0x22d03f,{'attributes':['vid_start','vid_end']}))return;const _0xa41a7b=_0x5d88b6['modelRange']['start']['nodeAfter'];_0x322d86['writer']['setAttribute']('vid_start',_0x22d03f['getAttribute']('vid_start'),_0xa41a7b),_0x322d86['writer']['setAttribute']('vid_end',_0x22d03f['getAttribute']('vid_end'),_0xa41a7b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33b065=>{_0x33b065['on']('element',(_0x35d41f,_0x2db281,_0x34ae41)=>{if(!_0x34ae41['consumable']['consume'](_0x2db281['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2db281['modelRange']['isCollapsed'])return;const _0x39d17e=_0x2db281['modelRange']['start']['nodeAfter'];_0x39d17e['hasAttribute']('vid_start')||_0x39d17e['hasAttribute']('vid')||(_0x34ae41['writer']['setAttribute']('vid_start',_0x2db281['viewItem']['getAttribute']('vid_start'),_0x39d17e),_0x34ae41['writer']['setAttribute']('vid_end',_0x2db281['viewItem']['getAttribute']('vid_end'),_0x39d17e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d6260=>_0x2d6260['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x488e48,[,_0x8949a7])=>{['vid_start','vid_end','vid']['includes'](_0x8949a7)&&(_0x488e48['return']=!0x0,_0x488e48['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9384a9=>{_0x9384a9['on']('attribute:vid',(_0x12a7e5,_0x54cf34,_0x3b2602)=>{if('\x20'!=_0x54cf34['item']['data']||_0x54cf34['item']['parent']['maxOffset']>0x1)return;if(!_0x3b2602['consumable']['consume'](_0x54cf34['item'],_0x12a7e5['name']))return;const _0x18b8e9=_0x3b2602['writer'],_0x545f3d=_0x3b2602['mapper']['toViewRange'](_0x54cf34['range']);_0x18b8e9['wrap'](_0x545f3d,_0x18b8e9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x46ea92){const _0x3e4877=_0x46ea92['plugins']['get']('RevisionViewer');return(_0x214ba2,_0x405d23,_0x481f5f)=>{const _0x45b377=_0x405d23['markerName']['split'](':')[0x1],_0x24c720=_0x3e4877['_getChangeFromId'](_0x45b377);if(!_0x24c720)return null;const _0x4ae591='add'==_0x24c720['type']?'split':'merge';if(!_0x481f5f['consumable']['test'](_0x405d23['markerRange'],_0x214ba2['name']))return;const _0x13d1af=_0x405d23['markerRange']['getWalker'](),_0x1cd51d=_0x405d23['markerRange']['start'],_0x516c8a=_0x46ea92['model']['schema'];let _0x53d515=null,_0x5e697e=null,_0x460c0c=!0x1,_0x428c68=!0x1;for(const _0x54c26e of _0x13d1af){const _0x284e83=_0x54c26e['item'];_0x460c0c=_0x460c0c||_0x516c8a['isContent'](_0x284e83);const _0x5a0051=_0x481f5f['mapper']['toViewElement'](_0x284e83);if(_0x5a0051&&_0x5a0051['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54c26e['type']&&(_0x516c8a['isBlock'](_0x284e83)&&!_0x516c8a['isLimit'](_0x284e83)&&(_0x284e83['nextSibling']||_0x1cd51d['isAtEnd']?_0x53d515&&_0x53d515['parent']==_0x284e83||(_0x53d515=_0x284e83,_0x42a932(_0x54c26e['previousPosition']),_0x428c68=!0x0):_0x5e697e=_0x5e697e||_0x54c26e['previousPosition']));}function _0x42a932(_0xe9eab5){const _0x13cdb6=_0x481f5f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ae591}),_0x474235=_0x481f5f['mapper']['toViewPosition'](_0xe9eab5);_0x24c720['data']['isSuggestion']&&_0x481f5f['writer']['addClass']('ck-suggestion-marker-'+_0x4ae591+'-new',_0x13cdb6),_0x3e4877['activeChange']==_0x24c720&&_0x481f5f['writer']['addClass']('ck-suggestion-marker--active',_0x13cdb6),_0x481f5f['writer']['insert'](_0x474235,_0x13cdb6),_0x481f5f['mapper']['bindElementToMarker'](_0x13cdb6,_0x405d23['markerName']);}_0x460c0c||_0x428c68||!_0x5e697e||_0x42a932(_0x5e697e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b3cc9,_0x273005,_0x5b974d)=>{const _0x3e12d3=_0x5b974d['mapper']['markerNameToElements'](_0x273005['markerName']);if(_0x3e12d3){for(const _0x47233d of _0x3e12d3)(_0x47233d['hasClass']('ck-suggestion-marker-split')||_0x47233d['hasClass']('ck-suggestion-marker-merge'))&&(_0x5b974d['mapper']['unbindElementFromMarkerName'](_0x47233d,_0x273005['markerName']),_0x5b974d['writer']['remove'](_0x47233d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26642b,_0x43f0ae,_0x3fcde9)=>{const _0x37bdd5=_0x43f0ae['markerName']['split'](':')[0x1],_0x36be77=this['_getChangeFromId'](_0x37bdd5);if(!_0x36be77)return null;const _0x5f5b2d='add'==_0x36be77['type']?'split':'merge';if(_0x3fcde9['consumable']['test'](_0x43f0ae['markerRange'],_0x26642b['name']))for(const _0x4657d6 of _0x43f0ae['markerRange']['getItems']()){if(!_0x4657d6['is']('element','softBreak'))continue;const _0x36133e=_0x3fcde9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f5b2d}),_0x30bf06=_0x3fcde9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4657d6));_0x36be77['data']['isSuggestion']&&_0x3fcde9['writer']['addClass']('ck-suggestion-marker-'+_0x5f5b2d+'-new',_0x36133e),this['activeChange']==_0x36be77&&_0x3fcde9['writer']['addClass']('ck-suggestion-marker--active',_0x36133e),_0x3fcde9['writer']['insert'](_0x30bf06,_0x36133e),_0x3fcde9['mapper']['bindElementToMarker'](_0x36133e,_0x43f0ae['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1b6f8f=>{for(const _0xa85c17 of this['editor']['model']['document']['getRootNames']()){const _0x4e1f5d=this['editor']['model']['document']['getRoot'](_0xa85c17),_0x137040=this['editor']['editing']['view']['document']['getRoot'](_0xa85c17);if(_0x137040){const _0x3e39f1=_0x4e1f5d['getAttribute']('revisionHistoryAttachChange');if(_0x1b6f8f['removeAttribute']('data-change-id',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root-add',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root-remove',_0x137040),_0x1b6f8f['removeClass']('ck-revision-history-root--active',_0x137040),_0x3e39f1){const _0x4564aa=this['_getChangeFromId'](_0x3e39f1);if(!_0x4564aa)return null;_0x1b6f8f['setAttribute']('data-change-id',_0x3e39f1,_0x137040),_0x1b6f8f['addClass']('ck-revision-history-root-'+_0x4564aa['type'],_0x137040),this['activeChange']==_0x4564aa&&_0x1b6f8f['addClass']('ck-revision-history-root--active',_0x137040);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x118092=>'revision-comment:'+_0x118092,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4d2832=>'revision-suggestion:'+_0x4d2832,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x31ea33=>({'name':'suggestion:'+_0x31ea33,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x422a1c=>{const _0x33fe6e=_0x422a1c['markerName']['split'](':')[0x1];return'insertion'!=_0x33fe6e&&'deletion'!=_0x33fe6e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x33fe6e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1711e3,_0x3d47a7,_0x29605a)=>{const _0x390fed=_0x29605a['mapper']['markerNameToElements'](_0x3d47a7['markerName']);if(_0x390fed){for(const _0x374ca6 of _0x390fed)_0x374ca6['is']('uiElement')&&(_0x29605a['mapper']['unbindElementFromMarkerName'](_0x374ca6,_0x3d47a7['markerName']),_0x29605a['writer']['remove'](_0x374ca6));}},{'priority':'high'});}['_getChangeFromId'](_0x42a580){return this['_changeIdToChange']['get'](_0x42a580);}['_getViewForChange'](_0x42f825){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x42f825),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x282a57,_0x342592,_0x1ef182,_0x2cc658)=>{_0x2cc658&&this['_balloon']['remove'](_0x2cc658),_0x1ef182&&(this['_balloon']['add']({'view':_0x1ef182,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x435d83=this['editor']['editing'],_0x1a8ac9=this['_getChangeFromId'](_0x1ef182['changeId']);let _0xcfb912;if(_0x1a8ac9['data']['isOnRoot']){const _0x2fcbbc=_0x435d83['view']['getDomRoot'](_0x1a8ac9['rootName']);_0xcfb912=Array['from'](_0x2fcbbc['getClientRects']());}else{const _0x53c4e9=this['editor']['model']['markers']['get']('revision:'+_0x1ef182['changeId']);_0xcfb912=Array['from'](_0x435d83['mapper']['markerNameToElements'](_0x53c4e9['name']))['map'](_0x3671c2=>_0x435d83['view']['domConverter']['mapViewToDom'](_0x3671c2))['map'](_0xafb488=>Array['from'](_0xafb488['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xcfb912[0x0];return _0xcfb912['find'](_0x12e485=>_0x12e485['top']-0x3<=this['_activeViewTarget']['y']&&_0x12e485['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x12e485['left']-0x3<=this['_activeViewTarget']['x']&&_0x12e485['right']+0x3>=this['_activeViewTarget']['x'])||_0xcfb912[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3e3eee,_0x2537e9,_0x51b22d,_0x50dbc7)=>{this['activeView']=_0x51b22d?this['_getViewForChange'](_0x51b22d):null,this['editor']['model']['change'](()=>{const _0x55cb8c=this['editor']['editing'];_0x50dbc7&&(_0x50dbc7['data']['isOnRoot']?_0x55cb8c['view']['change'](_0xf6acc5=>{_0xf6acc5['removeClass']('ck-revision-history-root--active',_0x55cb8c['view']['document']['getRoot'](_0x50dbc7['rootName']));}):_0x55cb8c['reconvertMarker']('revision:'+_0x50dbc7['id'])),_0x51b22d&&(_0x51b22d['data']['isOnRoot']?_0x55cb8c['view']['change'](_0x53a85d=>{_0x53a85d['addClass']('ck-revision-history-root--active',_0x55cb8c['view']['document']['getRoot'](_0x51b22d['rootName']));}):_0x55cb8c['reconvertMarker']('revision:'+_0x51b22d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x233601,_0xcf1842)=>{if(this['activeChange'])return;const _0x2d9f29=this['_findChangeIdFromDomTarget'](_0xcf1842['target']),_0x470d0e=this['_changeIdToChange']['get'](_0x2d9f29);_0x470d0e?(this['_activeViewTarget']={'x':_0xcf1842['domEvent']['x'],'y':_0xcf1842['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x470d0e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x39fad3,_0x526058)=>{const _0x6be2b1=this['_findChangeIdFromDomTarget'](_0x526058['target']),_0x15e637=this['_changeIdToChange']['get'](_0x6be2b1);_0x15e637?(this['_activeViewTarget']={'x':_0x526058['domEvent']['x'],'y':_0x526058['domEvent']['y']},_0x15e637===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x15e637):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x54d795){do{const _0x12a363=_0x54d795['getAttribute']('data-change-id');if(_0x12a363)return _0x12a363;_0x54d795=_0x54d795['parent'];}while(_0x54d795);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x10f347=>{for(const _0x3e6b12 of this['editor']['model']['markers'])_0x10f347['removeMarker'](_0x3e6b12);});}}function Q(_0x5856a3,_0x525e1c){return(_0x1c5d59,_0x55f384,_0x1d21d8)=>{if(!_0x1d21d8['consumable']['test'](_0x55f384['markerRange'],_0x1c5d59['name']))return;const _0x684fb9=_0x55f384['markerRange']['getWalker'](),_0x5c33df=_0x55f384['markerRange']['start'],_0x2ebad8=_0x5856a3['model']['schema'];let _0x4637ca=null,_0x291e56=null,_0x444c71=!0x1,_0x147087=!0x1;for(const _0x40519e of _0x684fb9){const _0x5b6c59=_0x40519e['item'];_0x444c71=_0x444c71||_0x2ebad8['isContent'](_0x5b6c59);const _0x41808e=_0x1d21d8['mapper']['toViewElement'](_0x5b6c59);if(_0x41808e&&_0x41808e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40519e['type']&&(_0x2ebad8['isBlock'](_0x5b6c59)&&!_0x2ebad8['isLimit'](_0x5b6c59)&&(_0x5b6c59['nextSibling']||_0x5c33df['isAtEnd']?_0x4637ca&&_0x4637ca['parent']==_0x5b6c59||(_0x4637ca=_0x5b6c59,_0x47aa58(_0x40519e['previousPosition']),_0x147087=!0x0):_0x291e56=_0x291e56||_0x40519e['previousPosition']));}function _0x47aa58(_0x538751){const _0x5265a3=_0x1d21d8['mapper']['toViewPosition'](_0x538751),_0x5d3925=_0x1d21d8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x525e1c});_0x1d21d8['writer']['insert'](_0x5265a3,_0x5d3925),_0x1d21d8['mapper']['bindElementToMarker'](_0x5d3925,_0x55f384['markerName']);}_0x444c71||_0x147087||!_0x291e56||_0x47aa58(_0x291e56);};}class nt extends _0xf9318a{constructor(_0x43645c){super(_0x43645c);const _0x37c8be=_0x43645c['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x37c8be,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37c8be,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1c9888=this['editor'],_0x3bcea5=_0x1c9888['plugins']['get'](l),_0x16b800=_0x3bcea5['isReady']?_0x3bcea5['diff']['newRevisionId']:null;_0x1c9888['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x16b800);}['refresh'](){const {isReady:_0x5a1b99,isEnabled:_0x1ef29e,repository:_0x359652,diff:_0x4b4a20}=this['editor']['plugins']['get'](l),_0xd088c3=_0x4b4a20&&_0x359652['getLaterVisibleRevision'](_0x4b4a20['newRevisionId']);this['isEnabled']=_0x5a1b99&&_0x1ef29e&&Boolean(_0xd088c3);}}class rt extends _0xf9318a{['_step'];constructor(_0x1cd3cc,{direction:_0x2a5fdd}){super(_0x1cd3cc);const _0x20979f=_0x1cd3cc['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2a5fdd?0x1:-0x1,this['listenTo'](_0x20979f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20979f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x20979f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x54df74=this['editor'],_0xce03ff=_0x54df74['plugins']['get'](l),{isNavigationMode:_0x462edc,currentChangeNumber:_0xeed3d0}=_0xce03ff;let _0xe6ff75;if(_0xce03ff['activeChange']=_0x462edc?_0xce03ff['diff']['changes']['get'](_0xeed3d0+this['_step']):_0xce03ff['diff']['changes']['first'],_0xce03ff['activeChange']['data']['isOnRoot'])_0xe6ff75=_0x54df74['editing']['view']['getDomRoot'](_0xce03ff['activeChange']['rootName']);else{const _0x49f5e8=_0x54df74['model']['markers']['get']('revision:'+_0xce03ff['activeChange']['id']);_0xe6ff75=_0x29a0c9(_0x54df74['editing'],_0x49f5e8);}_0x404324({'target':_0xe6ff75,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x303a5d,currentChangeNumber:_0xb20531,numberOfChanges:_0x10ad37,isReady:_0x1f1f69,isEnabled:_0x350d91}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x350d91&&_0x1f1f69&&_0x10ad37)&&(!_0x303a5d||(0x1===this['_step']?_0xb20531<_0x10ad37-0x1:_0xb20531>0x0));}}class pi extends _0x6da706{constructor(_0x308eeb){super(_0x308eeb);const _0x219c30=this['bindTemplate'],_0x6482b7=new _0x22eb10(_0x308eeb),_0x332bc5=new _0x22eb10(_0x308eeb);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',(_0x2e825b,_0x1ae07f)=>_0x2e825b&&_0x1ae07f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x352f7f,_0x55937e,_0x57b08b,_0x1918ab)=>{if(!_0x352f7f)return R(_0x308eeb,'Loading...');if(!_0x57b08b)return R(_0x308eeb,'No\x20changes');const _0x485254=R(_0x308eeb,'NUMBER_OF_CHANGES',_0x57b08b);return _0x1918ab?R(_0x308eeb,'X_OF_Y_CHANGES',[_0x55937e+0x1,_0x57b08b]):_0x485254;}),_0x6482b7['set']({'label':R(_0x308eeb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x14e1fd}),_0x332bc5['set']({'label':R(_0x308eeb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x21683d}),_0x6482b7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x332bc5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x6482b7['on']('execute',()=>this['fire']('execute','backward')),_0x332bc5['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',_0x219c30['if']('_isStatusLabelVisible','ck-hidden',_0x49b298=>!_0x49b298)]},'children':[{'text':_0x219c30['to']('isNavigationMode',_0x33f60a=>_0x33f60a?R(_0x308eeb,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x308eeb,'Total')+':\x20')}]},{'text':_0x219c30['to']('_statusText')}]},new _0x1d7201(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x6482b7,_0x332bc5]}]});}}const oe='ck-editor__editable__loading-overlay';class fi extends _0x55ca5c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x14c058=this['editor']['editing']['view'];_0x14c058['change'](_0x25058b=>{for(const _0x42b449 of _0x14c058['document']['roots'])_0x25058b['addClass'](oe,_0x42b449);});}['hide'](){const _0x44fc39=this['editor']['editing']['view'];_0x44fc39['change'](_0x235b81=>{for(const _0x421543 of _0x44fc39['document']['roots'])_0x235b81['removeClass'](oe,_0x421543);});}}class u extends _0x55ca5c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,fi];}['init'](){const _0x355312=this['editor'],_0x168850=_0x355312['plugins']['get'](l),_0x5c1992=_0x355312['plugins']['get'](fi);_0x355312['ui']['componentFactory']['add']('exitToEditing',_0x43da4a=>{const _0x3f9033=new _0x22eb10(_0x43da4a);return _0x3f9033['set']({'label':R(_0x43da4a,'Back\x20to\x20editing'),'icon':_0x40012c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3f9033,'execute',()=>{_0x355312['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3f9033;}),_0x355312['ui']['componentFactory']['add']('restoreRevision',_0x48f6da=>{const _0x584111=new _0x22eb10(_0x48f6da);return _0x584111['set']({'label':R(_0x48f6da,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x584111['bind']('isEnabled')['to'](_0x355312['commands']['get']('restoreRevision')),this['listenTo'](_0x584111,'execute',()=>_0x355312['execute']('restoreRevision')),_0x584111;}),_0x355312['ui']['componentFactory']['add']('changesNavigation',_0x5ea98c=>{const _0x1f6e21=new pi(_0x5ea98c),_0x27f0dd=_0x355312['commands']['get']('showPreviousChange'),_0x250a0d=_0x355312['commands']['get']('showNextChange');return _0x1f6e21['bind']('isBackwardNavigationEnabled')['to'](_0x27f0dd,'isEnabled'),_0x1f6e21['bind']('isForwardNavigationEnabled')['to'](_0x250a0d,'isEnabled'),_0x1f6e21['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x168850),this['listenTo'](_0x1f6e21,'execute',(_0x7eb79b,_0x9cf28f)=>{_0x355312['execute']('forward'===_0x9cf28f?'showNextChange':'showPreviousChange');}),_0x1f6e21;}),_0x5c1992['show'](),_0x168850['on']('change:isReady',(_0x13de6f,_0x10fbf2,_0x4f3002)=>{_0x4f3002?_0x5c1992['hide']():_0x5c1992['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5f2487,_0xff4d13){super(_0x5f2487,_0xff4d13);const _0x453940=this['bindTemplate'];this['set']({'label':R(_0x5f2487,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5f2487,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x453940['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1eea8b=this['fieldView']['element'];this['_tooltipString']=_0x1eea8b['scrollWidth']>_0x1eea8b['clientWidth']&&_0x1eea8b['value']||'';}}class ni extends _0x6da706{constructor(_0x206ae5,_0x4c6d90,_0x2b5b9f){super(_0x206ae5);const _0x25d9dd=new _0x4c1afd();_0x25d9dd['set']({'content':_0x5f4451,'viewBox':'0\x200\x2011\x2010'});const _0x32928e=['ck','ck-revision-history-sidebar__revision-author'];_0x2b5b9f&&_0x32928e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c068d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x206ae5,_0x2b5b9f?'Revision\x20creator':'Revision\x20author')},'children':[_0x25d9dd,_0x4c6d90['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x32928e},'children':_0x2c068d});}}function ci(_0x49ebfd,_0x819253){const _0x4893a0=_0x49ebfd['bindTemplate'],_0x54654b=_0x49ebfd['locale'],_0x11cff1=_0x1c3547(_0x54654b);_0x11cff1['panelPosition']='sw';const _0x10daeb=function(_0x2d2647,_0x12b651){const _0xed373d=function(_0x10f533,_0x512296){const _0x5438d1=_0x10f533['locale'],_0x4cbc17={'Compare\x20against\x20selected':R(_0x5438d1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5438d1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5438d1,'Restore\x20this\x20revision')};return _0x512296['map'](_0x4a37ff=>{const _0xf4cc4b=_0x4cbc17[_0x4a37ff['name']];return _0xf4cc4b&&_0xf4cc4b!==_0x4a37ff['name']&&(_0x4a37ff['name']=_0xf4cc4b),_0x4a37ff;});}(_0x2d2647,_0x12b651),_0x48f3c7=new _0x390dd6();for(const _0x14495a of _0xed373d){const _0x588f40={'type':'button','model':new to({'label':_0x14495a['name'],'class':_0x14495a['class'],'withText':!0x0,'role':'menuitem','_action':_0x14495a['action']})};_0x588f40['model']['bind']('isEnabled')['to'](_0x2d2647,'isActionsDropdownOpen',_0x5a73e0=>'function'!=typeof _0x14495a['isEnabled']||(!_0x5a73e0||_0x14495a['isEnabled'](_0x2d2647))),_0x48f3c7['add'](_0x588f40);}return _0x48f3c7;}(_0x49ebfd,_0x819253);return _0x49ebfd['bind']('isActionsDropdownOpen')['to'](_0x11cff1,'isOpen'),_0x11cff1['buttonView']['set']({'label':R(_0x54654b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x553f72}),_0x11cff1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4893a0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4893a0['to'](_0x533e3f=>_0x533e3f['stopPropagation']())}}),_0x11cff1['on']('execute',_0x2932fd=>{_0x49ebfd['isReady']&&'function'==typeof _0x2932fd['source']['_action']&&_0x2932fd['source']['_action'](_0x49ebfd);}),_0x52e59e(_0x11cff1,_0x10daeb,{'role':'menu'}),_0x11cff1['listenTo'](_0x49ebfd,'change:isActionsDropdownOpen',(_0x4e5a6d,_0x23a888,_0xb5ae6d)=>{if(_0xb5ae6d)for(const _0x1103e0 of _0x11cff1['listView']['items']){const _0x5e575d=_0x1103e0['children']['first'],_0x27d0c9=_0x819253['find'](_0x4663e2=>_0x4663e2['action']===_0x5e575d['_action'])['isVisible'];_0x1103e0['isVisible']=void 0x0===_0x27d0c9||_0x27d0c9(_0x49ebfd);}}),_0x11cff1;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x3d9fdb,uid as _0x30afc6,Collection as _0x33c442,logWarning as _0x304754,FocusTracker as _0x576123,KeystrokeHandler as _0x2c1f9d,scrollViewportToShowTarget as _0x1d532f,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x204e23}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x32f284,set as _0x158259,unset as _0x3ec9b5,isEqual as _0x16fd70}from'es-toolkit/compat';import{Plugin as _0x1d82bd,PendingActions as _0x3c3834,Command as _0x2e7909,ElementApiMixin as _0x1264df,Editor as _0x1739b3}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2d82c4,getMarkerDomElement as _0x297621,ConfirmMixin as _0x3a5a4b,sanitizeEditorConfig as _0x520b83}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x21a697,ViewAttributeElement as _0xf07d2d,ViewEmptyElement as _0x478ea6,ViewRawElement as _0x1d5d02,ViewUIElement as _0x220822,ViewDocumentFragment as _0x2b8bd6,ViewText as _0x289cd1,ViewElement as _0x489b9a,ModelElement as _0x5b2de1,ModelRange as _0x45b9a5,ModelPosition as _0x2be10f,ModelDocumentFragment as _0x2b70b9,ModelText as _0x1ea3a8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x59245b,IconChevronUp as _0x389874,IconChevronDown as _0x715628,IconUndo as _0x2c7774,IconUser as _0x1d2f9d,IconThreeVerticalDots as _0x19cac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x222912,View as _0x4d3a60,submitHandler as _0x49168b,LabeledFieldView as ti,createLabeledInputText as _0x128517,createDropdown as _0x403910,ListView as _0x120368,ListItemView as _0x5c71d3,ButtonView as _0x164f62,MenuBarMenuView as _0x67ee54,MenuBarMenuListView as _0x437570,MenuBarMenuListItemView as _0x67548c,MenuBarMenuListItemButtonView as _0x17957b,ContextualBalloon as _0x41b47d,ToolbarSeparatorView as _0x51fc4c,IconView as _0x389f13,addListToDropdown as _0x519f9e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x536193,StickyPanelView as _0xfb8230,ToolbarView as _0x3814f7,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1970ec}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d9fdb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2aa412){super(),this['id']=_0x2aa412['id']||_0x30afc6(),this['creator']=_0x2aa412['creator']||null,this['authors']=_0x2aa412['authors']||[],this['diffData']=_0x2aa412['diffData']||null,this['toVersion']=_0x2aa412['toVersion']||0x0,this['fromVersion']=_0x2aa412['fromVersion']||0x0,this['set']('name',_0x2aa412['name']||''),this['set']('createdAt',_0x2aa412['createdAt']||new Date()),this['set']('attributes',_0x2aa412['attributes']||{});}['setName'](_0x1a08c1){this['_update']({'name':_0x1a08c1});}['setAttribute'](_0x35ca9b,_0x5856cf){const _0x29dd55=_0x32f284(this['attributes']);_0x158259(_0x29dd55,_0x35ca9b,_0x5856cf),this['_update']({'attributes':_0x29dd55});}['removeAttribute'](_0x1150cd){const _0x1627ac=_0x32f284(this['attributes']);_0x3ec9b5(_0x1627ac,_0x1150cd),this['_update']({'attributes':_0x1627ac});}['_update'](_0x34ea99,_0x1d4150=!0x1){let _0x2541af=!0x1;const _0x597006={'id':this['id']},_0x423b01=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x251d95 of _0x423b01){const _0x45300d=_0x34ea99[_0x251d95];void 0x0!==_0x45300d&&_0x45300d!==this[_0x251d95]&&(this[_0x251d95]=_0x45300d,_0x597006[_0x251d95]=_0x45300d,_0x2541af=!0x0);}_0x2541af&&(_0x597006['authors']&&(_0x597006['authorsIds']=_0x597006['authors']['map'](_0x49d306=>_0x49d306['id']),delete _0x597006['authors']),this['fire']('_update',_0x597006,_0x1d4150));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5776de=>_0x5776de['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1d82bd{['_revisions'];static get['requires'](){return[_0x2d82c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x193d8c){super(_0x193d8c),this['_revisions']=new _0x33c442();}['afterInit'](){!async function(_0x46a220){const _0x3a6e36=_0x2ed822([0x6c,0x53,0x4f,0x56,0x30,0x42,0x77,0x74,0x44,0x49,0x50,0x72,0x75,0x63,0x33,0x43,0x64,0x59,0x73,0x47,0x6b,0x32,0x4e,0x41,0x52,0x35,0x6d,0x7a,0x6e,0x76,0x46,0x5a,0x34,0x4d,0x58,0x51,0x6a,0x37,0x69,0x45,0x79,0x61,0x62,0x4c,0x39,0x4a,0x38,0x65,0x54,0x31,0x48,0x36,0x66,0x55,0x70,0x4b,0x67,0x78,0x71,0x6f,0x68,0x57]),_0x570bf8=0xeb829,_0x110ef6=0x733af7a6,_0x1ef509=0x733d9ae6^_0x110ef6,_0x2f1392=window[_0x2ed822([0x44,0x61,0x74,0x65])][_0x2ed822([0x6e,0x6f,0x77])](),_0x46ebe9=_0x46a220[_0x2ed822([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a6379=new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x492534=>{_0x46ebe9[_0x2ed822([0x6f,0x6e,0x63,0x65])](_0x2ed822([0x72,0x65,0x61,0x64,0x79]),_0x492534);}),_0x492c55={[_0x2ed822([0x6b,0x74,0x79])]:_0x2ed822([0x45,0x43]),[_0x2ed822([0x75,0x73,0x65])]:_0x2ed822([0x73,0x69,0x67]),[_0x2ed822([0x63,0x72,0x76])]:_0x2ed822([0x50,0x2d,0x32,0x35,0x36]),[_0x2ed822([0x78])]:_0x2ed822([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]),[_0x2ed822([0x79])]:_0x2ed822([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]),[_0x2ed822([0x61,0x6c,0x67])]:_0x2ed822([0x45,0x53,0x32,0x35,0x36])},_0x353faf=_0x46ebe9[_0x2ed822([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ed822([0x67,0x65,0x74])](_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x297367(){let _0x8f1352,_0x175d23=null,_0x25260c=null;try{if(_0x353faf==_0x2ed822([0x47,0x50,0x4c]))return _0x2ed822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f1352=_0x3aebf7(),!_0x8f1352)return _0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8f1352[_0x2ed822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25260c=_0x342385(_0x8f1352[_0x2ed822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f1352[_0x2ed822([0x6a,0x74,0x69])])),await _0x30bc0b()?_0x15d40a()?_0x167d3e()?_0x2ed822([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x158f1d()?(_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ed822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x175d23=_0x44e587(_0x2ed822([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ed822([0x74,0x72,0x69,0x61,0x6c])&&(_0x175d23=_0x44e587(_0x2ed822([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x168b4c()):_0x2ed822([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ed822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x167d3e(){const _0x5b631e=[_0x2ed822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ed822([0x74,0x72,0x69,0x61,0x6c])][_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1392/0x3e8:0xe10*_0x1ef509;return _0x8f1352[_0x2ed822([0x65,0x78,0x70])]<_0x5b631e;}function _0x15d40a(){const _0x86ec45=_0x8f1352[_0x2ed822([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x86ec45)return!0x1;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x2a])))return!0x0;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x52,0x48])))return!0x0;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x52,0x52,0x48]))){if(_0x5db8ee())return!0x0;if(_0x305076()||_0x24d8f8())return!0x0;}return!0x1;}function _0x158f1d(){const _0x13017c=_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13017c||0x0==_0x13017c[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d15f9}=new URL(window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13017c[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d15f9))return!0x0;const _0xaff224=_0x1d15f9[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e]));return _0x13017c[_0x2ed822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x181ba2=>_0x181ba2[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x2a])))[_0x2ed822([0x6d,0x61,0x70])](_0x5b9a4f=>_0x5b9a4f[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e])))[_0x2ed822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8f4a=>_0x4c8f4a[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaff224[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ed822([0x6d,0x61,0x70])](_0xcaa4d0=>Array(_0xaff224[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcaa4d0[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ed822([0x66,0x69,0x6c,0x6c])](_0xcaa4d0[0x0]===_0x2ed822([0x2a])?_0x2ed822([0x2a]):'')[_0x2ed822([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcaa4d0))[_0x2ed822([0x73,0x6f,0x6d,0x65])](_0x32e878=>_0xaff224[_0x2ed822([0x65,0x76,0x65,0x72,0x79])]((_0x312e91,_0x56698d)=>_0x32e878[_0x56698d]===_0x312e91||_0x32e878[_0x56698d]===_0x2ed822([0x2a])));}function _0x168b4c(){return _0x175d23&&_0x25260c?new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3854c2,_0x54519b)=>{_0x175d23[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x3854c2,_0x54519b),_0x25260c[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x5e281f=>{_0x5e281f!=_0x2ed822([0x56,0x61,0x6c,0x69,0x64])&&_0x3854c2(_0x5e281f);},_0x54519b);}):_0x175d23||_0x25260c||_0x2ed822([0x56,0x61,0x6c,0x69,0x64]);}}function _0x342385(_0x147a87,_0x45d6f4){return new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x139759=>{if(_0xa48c7())return _0x139759(_0x2ed822([0x56,0x61,0x6c,0x69,0x64]));_0x47a4ce(),_0x46ebe9[_0x2ed822([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19a2da=!0x1;const _0x2384d9=_0x30afc6();function _0x4574d8(_0xb699e2){return!!_0xb699e2&&(typeof _0xb699e2===_0x2ed822([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb699e2===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb699e2[_0x2ed822([0x74,0x68,0x65,0x6e])]===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb699e2[_0x2ed822([0x63,0x61,0x74,0x63,0x68])]===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2125c1(_0x244385){_0x26ef1c(_0x244385)[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x43a03b=>{if(!_0x43a03b||_0x43a03b[_0x2ed822([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ed822([0x6f,0x6b]))return _0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1629d1(_0x5e2abe(_0x2384d9+_0x45d6f4))!=_0x43a03b[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ed822([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x1e6f78=>(_0x5e5bca(),_0x1e6f78),()=>{const _0x5a2675=_0x90e248();return null==_0x5a2675?(_0x5e5bca(),_0x2ed822([0x56,0x61,0x6c,0x69,0x64])):_0x2ed822(_0x2f1392-_0x5a2675>(0x573673a6^_0x110ef6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x139759)[_0x2ed822([0x63,0x61,0x74,0x63,0x68])](()=>{_0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4653a3=0x730c1926^_0x110ef6;function _0x5e5bca(){const _0x291d64=_0x2ed822([0x6c,0x6c,0x63,0x74,0x2d])+_0x1629d1(_0x5e2abe(_0x147a87)),_0x47e71d=_0x166228(_0x1629d1(window[_0x2ed822([0x4d,0x61,0x74,0x68])][_0x2ed822([0x63,0x65,0x69,0x6c])](_0x2f1392/_0x4653a3)));window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ed822([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291d64,_0x47e71d);}function _0x90e248(){const _0x296f91=_0x2ed822([0x6c,0x6c,0x63,0x74,0x2d])+_0x1629d1(_0x5e2abe(_0x147a87)),_0x1c9da0=window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ed822([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x296f91);return _0x1c9da0?window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166228(_0x1c9da0),0x10)*_0x4653a3:null;}function _0x26ef1c(_0x470bd6){return new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54f796,_0x28b8ec)=>{_0x470bd6[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x54f796,_0x28b8ec),window[_0x2ed822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28b8ec,0x733b2366^_0x110ef6);});}}_0x46ebe9[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376843,_0x423bb4)=>{if(_0x423bb4[0x0]!=_0x147a87)return _0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x423bb4[0x1]={..._0x423bb4[0x1],[_0x2ed822([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2384d9};},{[_0x2ed822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ed822([0x68,0x69,0x67,0x68])}),_0x46ebe9[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2566ae=>{_0x4574d8(_0x2566ae[_0x2ed822([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19a2da=!0x0,_0x2125c1(_0x2566ae[_0x2ed822([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ed822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ed822([0x6c,0x6f,0x77])}),_0x2a6379[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>{_0x19a2da||_0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa48c7(){return _0x46ebe9[_0x2ed822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ed822([0x76,0x69,0x65,0x77])][_0x2ed822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ed822([0x61,0x75,0x74,0x6f]);}function _0x47a4ce(){_0x46ebe9[_0x2ed822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ed822([0x76,0x69,0x65,0x77])][_0x2ed822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ed822([0x61,0x75,0x74,0x6f]);}}function _0x44e587(_0x12cf30){const _0xd9a30b=[new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3129d1=>setTimeout(_0x3129d1,0x7333c96a^_0x110ef6)),_0x2a6379[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576da8=>{const _0x51d348=0x733af7a1^_0x110ef6,_0x3aaf58=_0x46a220[_0x2ed822([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2ca558(){_0x3aaf58[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x51d348&&_0x576da8();}_0x2ca558(),_0x3aaf58[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x61,0x64,0x64]),_0x2ca558);})),new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb69ee0=>{function _0x35461d(){for(const _0x6696a4 in window)if(window[_0x2ed822([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2ed822([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6696a4))&&window[_0x6696a4]==_0x570bf8)return _0xb69ee0();_0x46ebe9[_0x2ed822([0x73,0x74,0x61,0x74,0x65])]!=_0x2ed822([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2ed822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35461d,0x733ae42e^_0x110ef6);}_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x35461d();})];return window[_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ed822([0x72,0x61,0x63,0x65])](_0xd9a30b)[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>_0x12cf30);}async function _0x224b4c(){if(await _0x2a6379,_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x321d65=_0x46a220[_0x2ed822([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3003b1=_0x46a220[_0x2ed822([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])](_0x321d65[_0x2ed822([0x69,0x64])]),_0x51fa51=_0x4355f2(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x51fa51[_0x2ed822([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x321d65['id'],_0x3003b1?_0x3003b1['id']:null,!0x0),_0x51fa51[_0x2ed822([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x51fa51[_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x51fa51[_0x2ed822([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x524b3b,void(_0x51fa51[_0x2ed822([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x524b3b);}if(_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x20e6a4=_0x4355f2(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x20e6a4[_0x2ed822([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x20e6a4[_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x20e6a4[_0x2ed822([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x524b3b,_0x20e6a4[_0x2ed822([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x524b3b;}_0x46ebe9[_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ed822([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x524b3b,_0x46ebe9[_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ed822([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x524b3b,_0x46ebe9[_0x2ed822([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5db8ee(){return _0x423b2b(_0x2ed822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4355f2(_0x2ed822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2ed822([0x73,0x74,0x61,0x74,0x65])]==_0x2ed822([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x305076(){return _0x423b2b(_0x2ed822([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 _0x24d8f8(){return _0x423b2b(_0x2ed822([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1dd665(_0x6d44a1){const _0x5803f0=_0x37724c();_0x46ebe9[_0x5803f0]=_0x2ed822([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])+_0x6d44a1,_0x6d44a1[_0x2ed822([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2ed822([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x37724c()]=_0x570bf8),_0x6d44a1!=_0x2ed822([0x56,0x61,0x6c,0x69,0x64])&&_0x224b4c();}function _0x37724c(){const _0x192228=window[_0x2ed822([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ed822([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ed822([0x6e,0x6f,0x77])]())[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ed822([0x2e]),'');let _0xee30a6=_0x2ed822([0x6c]);for(let _0x4e5f69=0x0;_0x4e5f69<_0x192228[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e5f69+=0x2){let _0x55b3ed=window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192228[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e5f69,_0x4e5f69+0x2));_0x55b3ed>=_0x3a6e36[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55b3ed-=_0x3a6e36[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xee30a6+=_0x3a6e36[_0x55b3ed];}return _0xee30a6;}function _0x3aebf7(){const _0x127eea=_0x353faf[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e]));if(0x3!=_0x127eea[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x113c16(_0x127eea[0x1]);function _0x113c16(_0x534d1d){const _0x1458b9=_0x2ab058(_0x534d1d);return _0x1458b9&&_0x334b49()?_0x1458b9:null;function _0x334b49(){const _0x5455c7=_0x1458b9[_0x2ed822([0x6a,0x74,0x69])],_0x109be9=window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5455c7[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5455c7[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x69d841={..._0x1458b9,[_0x2ed822([0x6a,0x74,0x69])]:_0x5455c7[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5455c7[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x69d841[_0x2ed822([0x76,0x63])],_0x5e2abe(_0x69d841)==_0x109be9;}}}async function _0x30bc0b(){let _0x1fa17b=!0x0;try{const _0xcf4650=_0x353faf[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e])),[_0x4cabaf,_0x53caf7,_0x581d2e]=_0xcf4650;return _0xd861a8(_0x4cabaf),await _0x52d0af(_0x4cabaf,_0x53caf7,_0x581d2e),_0x1fa17b;}catch{return!0x1;}function _0xd861a8(_0x3235e2){const _0x418c4e=_0x2ab058(_0x3235e2);_0x418c4e&&_0x418c4e[_0x2ed822([0x61,0x6c,0x67])]==_0x2ed822([0x45,0x53,0x32,0x35,0x36])||(_0x1fa17b=!0x1);}async function _0x52d0af(_0x31b744,_0x480234,_0x4d4671){const _0x58b708=window[_0x2ed822([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ed822([0x66,0x72,0x6f,0x6d])](_0x1d4d4a(_0x4d4671),_0xea7966=>_0xea7966[_0x2ed822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bac32=new window[(_0x2ed822([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ed822([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31b744+_0x2ed822([0x2e])+_0x480234),_0x458e00=window[_0x2ed822([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ed822([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x458e00)return;const _0x46373a=await _0x458e00[_0x2ed822([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ed822([0x6a,0x77,0x6b]),_0x492c55,{[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x45,0x43,0x44,0x53,0x41]),[_0x2ed822([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ed822([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x458e00[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x45,0x43,0x44,0x53,0x41]),[_0x2ed822([0x68,0x61,0x73,0x68])]:{[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46373a,_0x58b708,_0x5bac32)||(_0x1fa17b=!0x1);}}function _0x2ab058(_0x5792bb){return _0x5792bb[_0x2ed822([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ed822([0x65,0x79]))?JSON[_0x2ed822([0x70,0x61,0x72,0x73,0x65])](_0x1d4d4a(_0x5792bb)):null;}function _0x1d4d4a(_0x425825){return window[_0x2ed822([0x61,0x74,0x6f,0x62])](_0x425825[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ed822([0x2b]))[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ed822([0x2f])));}function _0x5e2abe(_0x47abf3){let _0x13d0bf=0x1505;function _0x45120c(_0x1b15fc){for(let _0x15067c=0x0;_0x15067c<_0x1b15fc[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15067c++){const _0x1eb904=_0x1b15fc[_0x2ed822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15067c);_0x13d0bf=(_0x13d0bf<<0x5)+_0x13d0bf+_0x1eb904,_0x13d0bf&=_0x13d0bf;}}function _0x407024(_0x4599fe){Array[_0x2ed822([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4599fe)?_0x4599fe[_0x2ed822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x407024):_0x4599fe&&typeof _0x4599fe==_0x2ed822([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ed822([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4599fe)[_0x2ed822([0x73,0x6f,0x72,0x74])]()[_0x2ed822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d8bd2,_0x4c8661])=>{_0x45120c(_0x3d8bd2),_0x407024(_0x4c8661);}):_0x45120c(window[_0x2ed822([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4599fe));}return _0x407024(_0x47abf3),_0x13d0bf>>>0x0;}function _0x1629d1(_0x577dd0){return _0x577dd0[_0x2ed822([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ed822([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ed822([0x30]));}function _0x166228(_0x79cf3e){return _0x79cf3e[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ed822([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ed822([0x6a,0x6f,0x69,0x6e])]('');}function _0x423b2b(_0xfb86a6){return _0x46ebe9[_0x2ed822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ed822([0x68,0x61,0x73])](_0xfb86a6);}function _0x4355f2(_0x400ede){return _0x46ebe9[_0x2ed822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ed822([0x67,0x65,0x74])](_0x400ede);}function _0x524b3b(){}function _0x2ed822(_0x28c8c7){return _0x28c8c7['map'](_0x50d43d=>String['fromCharCode'](_0x50d43d))['join']('');}_0x1dd665(await _0x297367());}(this);}['createRevision'](_0x35ee48){const _0x41aa60=this['editor']['plugins']['get']('Users');return new I({'id':_0x35ee48['id'],'name':_0x35ee48['name'],'creator':_0x35ee48['creatorId']?_0x41aa60['getUser'](_0x35ee48['creatorId']):null,'diffData':_0x35ee48['diffData']||_0x35ee48['data'],'authors':_0x35ee48['authorsIds']['map'](_0x117d75=>_0x41aa60['getUser'](_0x117d75)),'createdAt':new Date(_0x35ee48['createdAt']),'attributes':_0x35ee48['attributes'],'fromVersion':_0x35ee48['fromVersion'],'toVersion':_0x35ee48['toVersion']});}['addRevision'](_0x4e3d0a,_0x3a551b=0x0){this['_revisions']['add'](_0x4e3d0a,_0x3a551b);}['getRevision'](_0x220f9b){return this['_revisions']['get'](_0x220f9b);}['getRevisions'](_0x1f6631={'toJSON':!0x1}){const _0x1e2bf3=Array['from'](this['_revisions']);return _0x1e2bf3['reverse'](),_0x1f6631['toJSON']?_0x1e2bf3['map'](_0x585f5d=>_0x585f5d['toJSON']()):_0x1e2bf3;}['getIndex'](_0x34ff0b){return this['_revisions']['getIndex'](_0x34ff0b);}['getEarlierVisibleRevision'](_0x428b57){const [,_0x16ded6]=this['getRevisionsIterator'](_0x428b57,{'direction':'earlier'});return _0x16ded6;}['getLaterVisibleRevision'](_0x232295){const [,_0x58356a]=this['getRevisionsIterator'](_0x232295,{'direction':'later'});return _0x58356a;}['getRevisionsInDiff'](_0xa043e5){const _0xf265cd=[];for(const _0x4727e2 of this['getRevisionsIterator'](_0xa043e5['newRevisionId']))if(_0xf265cd['push'](_0x4727e2),_0x4727e2['id']===_0xa043e5['oldRevisionId'])break;return _0xf265cd;}*['getRevisionsIterator'](_0x1c1640,{direction:_0x1ee5fa='earlier',filter:_0x37da0a=()=>!0x0}={}){const _0x39f186='earlier'===_0x1ee5fa?0x1:-0x1;let _0x23c78c=this['_revisions']['get'](_0x1c1640),_0x43c987=this['getIndex'](_0x23c78c);for(yield _0x23c78c;_0x23c78c;){if(_0x43c987+=_0x39f186,_0x23c78c=this['getRevision'](_0x43c987),!_0x23c78c)return;_0x37da0a(_0x23c78c)&&(yield _0x23c78c);}}}class $ extends _0x1d82bd{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x21a697,'c'],[_0xf07d2d,'a'],[_0x478ea6,'e'],[_0x1d5d02,'r'],[_0x220822,'u']]);['_typeCharToViewClass']=new Map([['c',_0x21a697],['a',_0xf07d2d],['e',_0x478ea6],['r',_0x1d5d02],['u',_0x220822]]);async['loadRevisionData'](_0x5e4f0b,_0x3fea48){if(_0x5e4f0b['diffData']||!_0x3fea48)return;const _0x2fe86d=this['editor']['config']['get']('collaboration.channelId'),_0x465109=await _0x3fea48['getRevision']({'channelId':_0x2fe86d,'revisionId':_0x5e4f0b['id']});_0x5e4f0b['diffData']=_0x465109['diffData'];}['getRevisionDocumentData'](_0x36a6bb){const _0x169549={};for(const _0x711ad3 in _0x36a6bb['diffData']){if(_0x36a6bb['diffData'][_0x711ad3]['attachChange']&&!_0x36a6bb['diffData'][_0x711ad3]['attachChange']['isAttached'])continue;const _0x436a28=this['_removeRevisionMarkers'](JSON['parse'](_0x36a6bb['diffData'][_0x711ad3]['insertions'])),_0x52dfae=this['editor']['editing']['view']['document'],_0x20d678=new _0x2b8bd6(_0x52dfae,_0x436a28['map'](_0x5d3c9c=>this['_getViewFromDiffObj'](_0x5d3c9c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x169549[_0x711ad3]=this['editor']['data']['processor']['toData'](_0x20d678),this['editor']['data']['processor']['useFillerType']('default');}return _0x169549;}['getRevisionRootsAttributes'](_0x13a193){const _0x1cbac2={};for(const _0x4f2cb9 in _0x13a193['diffData'])_0x13a193['diffData'][_0x4f2cb9]['attachChange']&&!_0x13a193['diffData'][_0x4f2cb9]['attachChange']['isAttached']||(_0x1cbac2[_0x4f2cb9]=_0x13a193['diffData'][_0x4f2cb9]['attributesAfter']||{});return _0x1cbac2;}['_getTypeCharForViewElement'](_0x5c1586){return this['_viewClassToTypeChar']['get'](_0x5c1586['constructor']);}['_getViewFromDiffObj'](_0x5283b3,_0x4991fa){const _0x3848ad=this['editor']['editing']['view']['document'];if('string'==typeof _0x5283b3)return new _0x289cd1(_0x3848ad,_0x5283b3);{let _0x368070,_0x239f4d;_0x239f4d='u'==_0x5283b3['type']||'r'==_0x5283b3['type']?[]:_0x5283b3['children']['map'](_0x52cbe0=>this['_getViewFromDiffObj'](_0x52cbe0,_0x4991fa));const _0x1935bb=this['_typeCharToViewClass']['get'](_0x5283b3['type'])||_0x489b9a,_0x4dd3d9=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x368070=new _0x1935bb(_0x3848ad,_0x5283b3['name'],_0x5283b3['attributes'],_0x239f4d),'u'==_0x5283b3['type']&&_0x5283b3['children'][0x0]){const _0x25bdd1=_0x5283b3['children'][0x0];if(_0x368070['render']=function(_0x1ade46){const _0x748356=_0x1ade46['createElement']('div');return _0x748356['innerHTML']=_0x25bdd1,_0x748356['childNodes'][0x0];},_0x4991fa){const _0x55efbd=new _0x2b8bd6(_0x3848ad);_0x55efbd['_appendChild'](_0x368070);const _0x4d8562=Array['from'](_0x4dd3d9['viewChildrenToDom'](_0x55efbd,{'bind':!0x1})),_0x5a0814=_0x4dd3d9['domDocument']['createElement']('div');_0x5a0814['append'](..._0x4d8562),_0x368070=Array['from'](_0x4dd3d9['domChildrenToView'](_0x5a0814))[0x0];}}else{if('r'==_0x5283b3['type']&&_0x5283b3['children'][0x0]){const _0x5ca1e1=_0x5283b3['children'][0x0];if(_0x368070['render']=function(_0x449d24){_0x449d24['innerHTML']=_0x5ca1e1;},_0x4991fa){const _0x50dbc6=new _0x2b8bd6(_0x3848ad);_0x50dbc6['_appendChild'](_0x368070);const _0x361573=Array['from'](_0x4dd3d9['viewChildrenToDom'](_0x50dbc6,{'bind':!0x1})),_0x13f7f0=_0x4dd3d9['domDocument']['createElement']('div');_0x13f7f0['append'](..._0x361573);const _0x4d5c22=Array['from'](_0x4dd3d9['domChildrenToView'](_0x13f7f0));_0x4d5c22['length']>0x1?_0x368070['_appendChild'](_0x4d5c22):_0x368070=_0x4d5c22[0x0];}}}if(_0x5283b3['customProperties']){for(const [_0xbaf223,_0x473cbd]of _0x5283b3['customProperties'])_0x368070['_setCustomProperty'](_0xbaf223,_0x473cbd);}const _0x3dc738=void 0x0===_0x5283b3['fillerOffset']?null:_0x5283b3['fillerOffset'];return null!==_0x3dc738&&(_0x368070['getFillerOffset']=()=>_0x3dc738),_0x368070;}}['_makeModelFromViewString'](_0x2f5784){const _0x8a6eda=JSON['parse'](_0x2f5784),_0x27912a=this['editor']['editing']['view']['document'],_0x16d8e0=new _0x2b8bd6(_0x27912a,_0x8a6eda['map'](_0x39e7cd=>this['_getViewFromDiffObj'](_0x39e7cd,!0x0)));return this['editor']['data']['toModel'](_0x16d8e0);}['_removeRevisionMarkers'](_0x4b9552){return(_0x4b9552=_0x4b9552['filter'](_0x8887fa=>!_0x8887fa['name']||'revision-start'!==_0x8887fa['name']&&'revision-end'!==_0x8887fa['name']))['forEach'](_0x18d350=>{'string'!=typeof _0x18d350&&(_0x18d350['children']=this['_removeRevisionMarkers'](_0x18d350['children']),_0x18d350['attributes']=_0x18d350['attributes']['filter'](_0x56dc89=>!_0x56dc89[0x0]['startsWith']('data-revision-')));}),_0x4b9552;}}function R(_0x4b817d,_0x59044c,_0x5bc8e2){const t=_0x4b817d['t'];switch(_0x59044c){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'},_0x5bc8e2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bc8e2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x1d82bd{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d82c4,S,$,_0x3c3834];}constructor(_0x5b54a9){super(_0x5b54a9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x9c8877=_0x30afc6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x9c8877},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2c1e82=this['repository']['getRevision'](0x0),_0x5aa181=_0x2c1e82&&null===_0x2c1e82['creator']?_0x2c1e82:null;if(this['_continueCurrentRevision']=!!_0x5aa181&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x27b31a=this['_source']['getCurrentRevisionId'](),_0x32afa6=this['repository']['getRevision'](_0x27b31a);if(_0x32afa6)this['_startingVersion']=_0x32afa6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4f574f=this['_source']['history']['_operations']['find'](_0x3e1be9=>!_0x3e1be9['_isInit']),_0x462d45=_0x4f574f?_0x4f574f['baseVersion']:this['_source']['history']['version'];_0x2c1e82?(_0x2c1e82['toVersion']<_0x462d45&&_0x2c1e82['_update']({'toVersion':_0x462d45}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id'],this['_startingVersion']=_0x5aa181['fromVersion']):(this['_startingVersion']=_0x2c1e82['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x462d45,this['_continueCurrentRevision']=!0x1);}}else _0x5aa181&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5aa181['toVersion'],this['editor']['model']['document']['history']['version']),_0x5aa181['fromVersion']===_0x5aa181['toVersion']?(0x0!==_0x5aa181['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id'],this['_startingVersion']=_0x5aa181['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',_0x2b6d08=>!_0x2b6d08),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f3d5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x375f31;for(const _0x421acf in _0x4f3d5c){const _0x44d35e=_0x421acf,_0x4f075b=_0x4f3d5c[_0x44d35e];if('revisionHistoryLicenseKeyValid'==_0x4f075b||'revisionHistoryLicenseKeyInvalid'==_0x4f075b||'revisionHistoryLicenseKeyExpired'==_0x4f075b||'revisionHistoryLicenseKeyDomainLimit'==_0x4f075b||'revisionHistoryLicenseKeyNotAllowed'==_0x4f075b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f075b||'revisionHistoryLicenseKeyTrialLimit'==_0x4f075b||'revisionHistoryLicenseKeyUsageLimit'==_0x4f075b){delete _0x4f3d5c[_0x44d35e],_0x375f31=_0x4f075b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x375f31&&_0x4f3d5c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x375f31&&_0x4f3d5c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x375f31&&_0x4f3d5c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3bff0e=this['repository']['getRevision'](0x0),_0x3d0233=await this['getRevisionDocumentData'](_0x3bff0e),_0x1a8917=await this['getRevisionRootsAttributes'](_0x3bff0e);this['_replaceEditorDataWithRevisionData'](_0x3d0233,_0x1a8917);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23b9f7){this['_source']=_0x23b9f7;}async['update'](){const _0xc51786=await this['_source']['getLatestVersion']();if(_0xc51786>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1f9ec7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xc51786});_0x1f9ec7['authors']=_0x1f9ec7['authorsIds']['map'](_0x32119e=>this['editor']['plugins']['get']('Users')['getUser'](_0x32119e)),this['currentRevision']['_update'](_0x1f9ec7);}}async['saveRevision'](_0x579139={},_0x1e8daa=null){const _0x1a5838=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e8daa>this['currentRevision']['toVersion']&&(_0x1e8daa=null),null===_0x1e8daa&&(_0x1e8daa=await this['_source']['getLatestVersion']());const _0x1e1ed=this['_getFromVersion'](_0x1e8daa),_0x493578=this['buildRevisionData']({'from':_0x1e1ed,'to':_0x1e8daa});if(this['currentRevision']['toVersion']<_0x1e8daa){const _0x125c93=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e8daa,'to':_0x1e8daa});_0x125c93['authors']=[],_0x125c93['authorsIds']=[],_0x125c93['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x125c93,!0x0),delete _0x125c93['authors'],_0x1a5838['push'](_0x125c93);}_0x579139['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x579139['name']=_0x579139['name']||null,_0x579139['id']=_0x579139['id']||_0x30afc6(),_0x579139={..._0x579139,..._0x493578};const _0x20b979=this['addRevisionData'](_0x579139);_0x1a5838['push'](_0x579139);const _0x581375=this['repository']['getIndex'](_0x20b979);if(0x0!==_0x581375){const _0xfc7faa=this['repository']['getRevision'](_0x581375-0x1);if(_0xfc7faa['fromVersion']!==_0x1e8daa){const _0x33acc7=this['_revisionDataBuilder']['getData'](_0x1e8daa,_0xfc7faa['toVersion']),_0x11a6b5={'id':_0xfc7faa['id'],'diffData':_0x33acc7['diffData'],'authorsIds':_0x33acc7['authorsIds'],'authors':_0x33acc7['authorsIds']['map'](_0x5c5e50=>this['editor']['plugins']['get']('Users')['getUser'](_0x5c5e50)),'fromVersion':_0x1e8daa};_0xfc7faa===this['currentRevision']&&(_0x11a6b5['createdAt']=new Date(_0x579139['createdAt']['getTime']()+0xa)),_0xfc7faa['_update'](_0x11a6b5,!0x0),delete _0x11a6b5['authors'],_0x1a5838['push'](_0x11a6b5);}}if(this['adapter']){for(const _0x1684f7 of _0x1a5838)this['_bufferUpdate'](_0x1684f7['id'],_0x1684f7,!0x0);this['sendBufferedUpdates']();}return _0x20b979;}['addRevisionData'](_0x3e36a7){const _0x9b1d84=this['repository']['createRevision'](_0x3e36a7);return this['adapter']&&_0x9b1d84['on']('_update',(_0x4073db,_0x10a836,_0x44be83)=>{_0x44be83||(this['_bufferUpdate'](_0x10a836['id'],_0x10a836,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9b1d84,this['_findInsertionIndex'](_0x9b1d84)),_0x9b1d84;}async['getRevisionDocumentData'](_0x444746){return await this['_utils']['loadRevisionData'](_0x444746,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x444746);}async['getRevisionRootsAttributes'](_0x5cdb86){return await this['_utils']['loadRevisionData'](_0x5cdb86,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5cdb86);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1864d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31345f=0x0;_0x31345f<_0x1864d5['length'];_0x31345f++){const _0x327c75=_0x1864d5[_0x31345f];let _0x243f58=!0x1;for(const _0x493aa9 of Object['keys'](_0x327c75))void 0x0===_0x327c75[_0x493aa9]?delete _0x327c75[_0x493aa9]:'id'!==_0x493aa9&&(_0x243f58=!0x0);_0x243f58||(_0x1864d5[_0x31345f]=null);}if(_0x1864d5=_0x1864d5['filter'](_0x14d60c=>null!==_0x14d60c),!_0x1864d5['length'])return;for(let _0x8a1070=0x0;_0x8a1070<_0x1864d5['length'];_0x8a1070++){const _0x55825b=_0x1864d5[_0x8a1070];void 0x0!==_0x55825b['fromVersion']&&void 0x0===_0x55825b['toVersion']&&(_0x55825b['toVersion']=this['repository']['getRevision'](_0x55825b['id'])['toVersion']),void 0x0!==_0x55825b['toVersion']&&void 0x0===_0x55825b['fromVersion']&&(_0x55825b['fromVersion']=this['repository']['getRevision'](_0x55825b['id'])['fromVersion']);}const _0xd19a37=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1864d5,_0xd19a37)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xda07b1=>{if(_0xda07b1){for(const _0x128592 of _0xda07b1)this['setRevisionData']({'id':_0x128592['id'],'createdAt':_0x128592['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5c4750=null,from:_0x260334=null,to:_0x53e659=null}){_0x260334=null!==_0x260334?_0x260334:_0x5c4750['fromVersion'],_0x53e659=null!==_0x53e659?_0x53e659:_0x5c4750['toVersion'];const _0x3b0a57=this['_revisionDataBuilder']['getData'](_0x260334,_0x53e659),_0x179c01={'diffData':_0x3b0a57['diffData'],'authorsIds':_0x3b0a57['authorsIds'],'fromVersion':_0x260334,'toVersion':_0x53e659};if(!_0x5c4750||_0x53e659!==_0x5c4750['toVersion']){const _0x5eb134=_0x53e659-0x1,_0x2590fc=this['_source']['history']['getOperation'](_0x5eb134);_0x179c01['createdAt']=_0x2590fc&&_0x2590fc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x260334===this['_loadedStateData']['fromVersion']){for(const _0x3029ca of this['_loadedStateData']['authors'])_0x179c01['authorsIds']['includes'](_0x3029ca['id'])||_0x179c01['authorsIds']['push'](_0x3029ca['id']);}return _0x179c01;}['_bufferUpdate'](_0x19e808,_0xd440f,_0x482c91){if(this['_bufferedUpdates']['has'](_0x19e808)){const _0x59a77c=this['_bufferedUpdates']['get'](_0x19e808);_0xd440f=_0x482c91?{..._0x59a77c,..._0xd440f}:{..._0xd440f,..._0x59a77c};}this['_bufferedUpdates']['set'](_0x19e808,_0xd440f);}['setRevisionData'](_0x46ab01){const _0x4a0ee1=this['repository']['getRevision'](_0x46ab01['id']);if(_0x46ab01['createdAt']&&(_0x46ab01['createdAt']=new Date(_0x46ab01['createdAt'])),_0x46ab01['authorsIds']){const _0x25bc95=this['editor']['plugins']['get']('Users');_0x46ab01['authors']=_0x46ab01['authorsIds']['map'](_0x548b52=>_0x25bc95['getUser'](_0x548b52));}_0x4a0ee1['_update'](_0x46ab01,!0x0);}['_createInitialRevision'](_0x51b0c3){const _0x332c2e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x332c2e)this['_initialRevisionId']=_0x332c2e['id'];else{const _0x316ad6=!this['editor']['model']['document']['roots']['find'](_0x3197cb=>this['editor']['model']['hasContent'](_0x3197cb)),_0x53496f=this['editor']['plugins']['get']('Users')['me']['id'],_0x359008=R(this['editor']['locale'],_0x316ad6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x51b0c3,'to':_0x51b0c3,'id':this['_initialRevisionId'],'name':_0x359008,'creatorId':_0x53496f});}}['_createCurrentRevision'](_0x277757){const _0x4cf654=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4cf654),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x277757,'to':_0x277757,'id':_0x4cf654,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x168cfe,_0x4ce379){let _0x4862f3=this['editor']['config']['get']('initialData'),_0x28cf54=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4862f3){_0x4862f3={};for(const _0x1b4061 of this['editor']['model']['document']['getRootNames']())_0x4862f3[_0x1b4061]='';}if('string'==typeof _0x4862f3&&(_0x4862f3={'main':_0x4862f3}),void 0x0===_0x28cf54){_0x28cf54={};for(const _0x37daeb of this['editor']['model']['document']['getRootNames']())_0x28cf54[_0x37daeb]={};}let _0x20d4fd=!0x1;const _0x1b0add=Object['keys'](_0x4862f3),_0x2ef1c4=Object['keys'](_0x168cfe);for(const _0x3e5b32 of _0x1b0add){if(_0x4862f3[_0x3e5b32]!==_0x168cfe[_0x3e5b32]&&''!==_0x4862f3[_0x3e5b32]['trim']()){_0x20d4fd=!0x0;break;}if(!_0x16fd70(_0x28cf54[_0x3e5b32],_0x4ce379[_0x3e5b32])&&Object['keys'](_0x28cf54[_0x3e5b32])['length']>0x0){_0x20d4fd=!0x0;break;}}_0x20d4fd||(_0x20d4fd=_0x2ef1c4['some'](_0x4a0422=>!this['editor']['model']['document']['getRoot'](_0x4a0422))),_0x20d4fd&&_0x304754('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4862f3,'editorRootsAttributes':_0x28cf54,'revisionData':_0x168cfe,'revisionRootsAttributes':_0x4ce379}),this['editor']['config']['set']('initialData',_0x168cfe),this['editor']['config']['set']('rootsAttributes',_0x4ce379);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x33cafa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x33cafa['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2778be){const _0x861ad7=this['repository']['getRevisions']();_0x861ad7['reverse']();let _0x1bfdd5=0x0;for(;_0x1bfdd5<_0x861ad7['length'];){const _0x4f9537=_0x861ad7[_0x1bfdd5];if(_0x4f9537===this['currentRevision']){_0x1bfdd5++;continue;}if(_0x4f9537['id']===this['_initialRevisionId'])break;const _0x385d85=_0x2778be['toVersion']-_0x4f9537['toVersion']||_0x2778be['fromVersion']-_0x4f9537['fromVersion'];if(_0x385d85>0x0)break;if(_0x385d85<0x0)_0x1bfdd5++;else{if(!_0x2778be['creator']&&_0x4f9537['creator'])break;if(_0x4f9537['creator']||!_0x2778be['creator']){if(_0x2778be['createdAt']>_0x4f9537['createdAt'])break;_0x1bfdd5++;}else _0x1bfdd5++;}}return _0x1bfdd5;}['_getFromVersion'](_0x4ecf37){const _0x13ef4b=this['repository']['getRevisions']();_0x13ef4b['reverse'](),_0x13ef4b['shift']();const _0x7d1b49=_0x13ef4b['find'](_0x379987=>_0x379987['toVersion']<=_0x4ecf37)['toVersion'];return _0x7d1b49<this['_startingVersion']?this['_startingVersion']:_0x7d1b49;}['_makeRevision']({name:_0x32416d,from:_0x1ffbf4,to:_0x5ced68,creatorId:_0x395714,id:_0x28be01}){const _0x51e12e=this['buildRevisionData']({'from':_0x1ffbf4,'to':_0x5ced68});_0x51e12e['name']=_0x32416d,_0x51e12e['creatorId']=_0x395714,_0x51e12e['id']=_0x28be01;const _0x5925fa=this['addRevisionData'](_0x51e12e);return this['adapter']&&this['_bufferUpdate'](_0x51e12e['id'],_0x51e12e,!0x0),_0x5925fa;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2e30af){this['editor']=_0x2e30af,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'](_0x291bc4){this['source']=_0x291bc4;const _0x3dfbd1=new Map(),_0x2d9ef9=new Map(),_0x2d600a=this['editor']['model']['document']['roots']['map'](_0x4bf59d=>_0x4bf59d['rootName']);for(const _0x114d6c of _0x2d600a){const _0xb9360d=this['editor']['model']['document']['getRoot'](_0x114d6c),_0x220ee7=x(_0xb9360d);_0x3dfbd1['set'](_0x114d6c,_0x220ee7),_0x2d9ef9['set'](_0x114d6c,Object['fromEntries'](_0xb9360d['getAttributes']()));}const _0x1a7216=Array['from'](this['editor']['model']['markers'])['map'](_0x5e5098=>[_0x5e5098['name'],_0x5e5098['getRange']()]),_0x478747=this['source']['version'];this['_saveMetaData'](_0x478747,_0x3dfbd1,_0x1a7216,_0x2d9ef9),this['_startingRevisionId']=this['_revisionId'];const _0x3d6323=new Map(),_0x3668f2=new Map();for(const _0x4a2486 of _0x2d600a){const _0x3daa6f=N(_0x4a2486);_0x3d6323['set'](_0x4a2486,_0x3daa6f),_0x3668f2['set'](_0x4a2486,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3d6323,[],_0x3668f2);}['getData'](_0x5d132b,_0x4a11a9){if(this['_lastFrom']===_0x5d132b&&this['_lastTo']<=_0x4a11a9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4a11a9,!0x0);else{if(!this['_savedMetaData']['has'](_0x5d132b)){const _0x2efb32=this['_getPreviousFrom'](_0x5d132b);this['_calculateMetaData'](_0x2efb32,_0x5d132b,!0x1);}this['_calculateMetaData'](_0x5d132b,_0x4a11a9,!0x0);}return this['_lastFrom']=_0x5d132b,this['_lastTo']=_0x4a11a9,this['_getState']();}['loadState'](_0x532457){const _0x3d5d69=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x532457['fromVersion'],this['_lastTo']=_0x532457['toVersion'];for(const _0x5121dc in _0x532457['diffData']){const _0x1cd427=_0x532457['diffData'][_0x5121dc]['attachChange'],_0x35098e=_0x32f284(_0x532457['diffData'][_0x5121dc]['attributesBefore'])||{},_0x1f7ccc=_0x3d5d69['_makeModelFromViewString'](_0x532457['diffData'][_0x5121dc]['deletions']);_0x1f7ccc['rootName']=_0x5121dc,_0x1f7ccc['_isAttached']=!_0x1cd427||!_0x1cd427['isAttached'],_0x1f7ccc['isAttached']=()=>_0x1f7ccc['_isAttached'],this['_baseRoots']['set'](_0x5121dc,_0x1f7ccc),this['_baseRootsAttributes']['set'](_0x5121dc,_0x35098e),_0x1cd427&&this['_touchedRoots']['set'](_0x5121dc,_0x1cd427);const _0xbbacc4=this['_makeIdsRoot'](_0x1f7ccc);this['_baseIdsRoots']['set'](_0x5121dc,_0xbbacc4);for(const [_0x1930d0,_0x4218e9]of _0x1f7ccc['markers']){if(!_0x1930d0['startsWith']('revision:'))continue;const _0x386e9d=_0x1930d0['split'](':')[0x2];for(const _0x4f344a of _0x4218e9['getWalker']({'singleCharacters':!0x0})){const _0x12b41c=this['_getVidAttributeName'](_0x4f344a),_0x359a57='elementEnd'==_0x4f344a['type']?_0x4f344a['previousPosition']['path']['slice'](0x0,-0x1):_0x4f344a['previousPosition']['path'],_0x6eb562=_0xbbacc4['getNodeByPath'](_0x359a57)['getAttribute'](_0x12b41c);this['_touched']['set'](_0x6eb562,{'userId':_0x386e9d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2fbbe9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x50ac48=>!this['_touched']['has'](_0x50ac48));let _0x505793=0x0;const _0x4fa426=new Map();for(const _0x54b51a in _0x532457['diffData']){const _0x364b64=_0x532457['diffData'][_0x54b51a]['attachChange'],_0x55a697=_0x32f284(_0x532457['diffData'][_0x54b51a]['attributesAfter'])||{},_0x354ea9=_0x3d5d69['_makeModelFromViewString'](_0x532457['diffData'][_0x54b51a]['insertions']);_0x354ea9['rootName']=_0x54b51a,_0x354ea9['_isAttached']=!_0x364b64||_0x364b64['isAttached'],_0x354ea9['isAttached']=()=>_0x354ea9['_isAttached'],this['_diffRoots']['set'](_0x54b51a,_0x354ea9),this['_diffRootsAttributes']['set'](_0x54b51a,_0x55a697);const _0x1a836e=this['_makeIdsRoot'](_0x354ea9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x54b51a,_0x1a836e),_0x4fa426['set'](_0x54b51a,_0x354ea9['isAttached']()?_0x55a697:{});for(const [_0x47a82a,_0x542f04]of _0x354ea9['markers']){if(!_0x47a82a['startsWith']('revision:'))continue;const _0x573df5=_0x47a82a['split'](':')[0x2];for(const _0x3fcdc9 of _0x542f04['getWalker']({'singleCharacters':!0x0})){const _0x13c25c=this['_getVidAttributeName'](_0x3fcdc9),_0x5d750e=this['_revisionId']++,_0x5ab55f='elementEnd'==_0x3fcdc9['type']?_0x3fcdc9['previousPosition']['path']['slice'](0x0,-0x1):_0x3fcdc9['previousPosition']['path'];_0x1a836e['getNodeByPath'](_0x5ab55f)['_setAttribute'](_0x13c25c,_0x5d750e),this['_touched']['set'](_0x5d750e,{'userId':_0x573df5});}}for(const _0x519022 of this['editor']['model']['createRangeIn'](_0x354ea9)['getWalker']({'singleCharacters':!0x0})){const _0x43d7d7=this['_getVidAttributeName'](_0x519022),_0x4d9a10='elementEnd'==_0x519022['type']?_0x519022['previousPosition']['path']['slice'](0x0,-0x1):_0x519022['previousPosition']['path'],_0x3a7b26=_0x1a836e['getNodeByPath'](_0x4d9a10);_0x3a7b26['getAttribute'](_0x43d7d7)>0x0||_0x3a7b26['_setAttribute'](_0x43d7d7,_0x2fbbe9[_0x505793++]);}for(const [_0x205d1f,_0x819d1f]of _0x354ea9['markers'])_0x205d1f['startsWith']('revision:')||this['_markers']['set'](_0x205d1f,_0x819d1f);}const _0x2f55c5=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2f55c5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2f55c5,0x1));const _0x815f4c=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x815f4c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x815f4c,0x1));const _0x2d26cf=Array['from'](this['_diffRoots'])['map'](([_0x5a553e,_0x4ce6e2])=>[_0x5a553e,x(_0x4ce6e2)]);this['_saveMetaData'](this['_lastTo'],_0x2d26cf,this['_markers'],_0x4fa426);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x18e0b1,_0x437a40,_0x5789eb,_0x451c2a){const _0x4846dd=new Map(_0x437a40),_0x5d8200=new Map(_0x32f284(_0x451c2a)),_0x198426=new Map();for(const [_0x410138,_0x37fc18]of _0x5789eb)_0x198426['set'](_0x410138,{'start':_0x37fc18['start']['clone'](),'end':_0x37fc18['end']['clone'](),'rootName':_0x37fc18['root']['rootName']});this['_savedMetaData']['set'](_0x18e0b1,{'roots':_0x4846dd,'markers':_0x198426,'rootsAttributes':_0x5d8200});}['_removeMetaData'](_0x50f9d4){this['_savedMetaData']['delete'](_0x50f9d4);}['_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'](_0x206886,_0x544e4a=null){let _0x369843=null;_0x206886['is']('documentFragment')||(_0x369843=new _0x5b2de1(_0x206886['name'],{'vid_start':null===_0x544e4a?this['_revisionId']++:_0x544e4a++}));const _0x491245=[];for(const _0x2e6a79 of _0x206886['getChildren']())if(_0x2e6a79['is']('element')){_0x491245['push'](this['_makeIdsRoot'](_0x2e6a79,_0x544e4a));const _0x3197e9=_0x491245[_0x491245['length']-0x1];null!==_0x544e4a&&(_0x544e4a=_0x3197e9['is']('element','$text')?_0x3197e9['getAttribute']('vid')+0x1:_0x3197e9['getAttribute']('vid_end')+0x1);}else{for(let _0x294030=0x0;_0x294030<_0x2e6a79['offsetSize'];_0x294030++)_0x491245['push'](new _0x5b2de1('$text',{'vid':null===_0x544e4a?this['_revisionId']++:_0x544e4a++}));}if(_0x206886['is']('documentFragment')){const _0x5d88ad=N(_0x206886['rootName']);return _0x5d88ad['_insertChild'](0x0,_0x491245),_0x5d88ad;}return _0x369843['_setAttribute']('vid_end',null===_0x544e4a?this['_revisionId']++:_0x544e4a++),_0x369843['_insertChild'](0x0,_0x491245),_0x369843;}['_calculateMetaData'](_0x2a8d29,_0x23726c,_0x78ba44){this['_reset']();const {roots:_0x2c1e3f,markers:_0x2e11f1,rootsAttributes:_0x298ef6}=this['_savedMetaData']['get'](_0x2a8d29);this['_baseRoots']=new Map(_0x2c1e3f),this['_baseRootsAttributes']=new Map(_0x32f284(_0x298ef6));for(const [_0x5a173,_0x388eb7]of this['_baseRoots'])if('$graveyard'!==_0x5a173&&(this['_diffRoots']['set'](_0x5a173,x(_0x388eb7)),this['_diffRootsAttributes']=new Map(_0x32f284(_0x298ef6)),_0x78ba44)){const _0x5a2f1e=this['_revisionId'];this['_idsRoots']['set'](_0x5a173,this['_makeIdsRoot'](_0x388eb7)),this['_baseIdsRoots']['set'](_0x5a173,this['_makeIdsRoot'](_0x388eb7,_0x5a2f1e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x78ba44&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d2a04,_0x4b1afd]of _0x2e11f1){const _0x3a433d=this['_baseRoots']['get'](_0x4b1afd['rootName']),_0x335fff=this['_diffRoots']['get'](_0x4b1afd['rootName']),_0x3d7d76=new _0x45b9a5(this['_fixPosition'](_0x4b1afd['start'],_0x3a433d),this['_fixPosition'](_0x4b1afd['end'],_0x3a433d)),_0x33c43d=this['_fixRange'](_0x3d7d76,_0x335fff);_0x3a433d['markers']['set'](_0x1d2a04,_0x3d7d76),this['_markers']['set'](_0x1d2a04,_0x33c43d);}this['_applyOperations'](_0x2a8d29,_0x23726c,_0x78ba44);}['_applyOperations'](_0x2a424c,_0x15ed5e,_0x45d7ee){for(const _0x542699 of this['source']['getOperations'](_0x2a424c,_0x15ed5e))this['_handleOperation'](_0x542699,_0x45d7ee);for(const _0x3aed92 of this['_diffRoots']['values']())_0x3aed92['markers']['clear']();for(const [_0x2eb740,_0x3c879c]of this['_markers']){this['_diffRoots']['get'](_0x3c879c['root']['rootName'])['markers']['set'](_0x2eb740,_0x3c879c['clone']());}const _0x55fbdc=new Map(),_0x41c6ea=new Map();for(const [_0x4a2053,_0x3c6946]of this['_diffRoots'])_0x55fbdc['set'](_0x4a2053,x(_0x3c6946)),_0x41c6ea['set'](_0x4a2053,this['_diffRootsAttributes']['get'](_0x4a2053));this['_saveMetaData'](_0x15ed5e,_0x55fbdc,this['_markers'],_0x41c6ea);}['_getPreviousFrom'](_0x3d6b45){const _0x48616b=Array['from'](this['_savedMetaData']['keys']());_0x48616b['sort']((_0x3684e0,_0xda8ce9)=>_0x3684e0-_0xda8ce9),_0x48616b['reverse']();for(const _0x4d3c63 of _0x48616b)if(_0x4d3c63<_0x3d6b45)return _0x4d3c63;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4381e0,_0x20a014){const _0x4e433a=Array['from'](_0x20a014['markers'])['map'](([_0x42c11a,_0x308da4])=>[_0x42c11a,this['_fixRange'](_0x308da4,_0x4381e0)]);_0x4381e0['markers']=new Map(_0x4e433a);}['_transformMarkers'](_0x4099d9){for(const _0x5b357c of this['_markers']['values']()){const _0x5780e8=_0x5b357c['getTransformedByOperation'](_0x4099d9),_0x3705cb=_0x45b9a5['_createFromRanges'](_0x5780e8);_0x5b357c['start']=_0x3705cb['start'],_0x5b357c['end']=_0x3705cb['end'];}}['_handleOperation'](_0x448e29,_0x21c6fa){if('addRoot'!=_0x448e29['type']&&'detachRoot'!=_0x448e29['type']){if('insert'==_0x448e29['type']){const _0x3dbecf=_0x448e29['position']['root']['rootName'];this['_diffRoots']['has'](_0x3dbecf)||(this['_diffRoots']['set'](_0x3dbecf,N(_0x3dbecf,!0x0)),this['_diffRootsAttributes']['set'](_0x3dbecf,{}),_0x21c6fa&&this['_idsRoots']['set'](_0x3dbecf,N(_0x3dbecf,!0x0)));}else{if('addRootAttribute'==_0x448e29['type']||'removeRootAttribute'==_0x448e29['type']||'changeRootAttribute'==_0x448e29['type'])return void this['_handleRootAttributeOperation'](_0x448e29);'marker'==_0x448e29['type']&&this['_handleMarkerOperation'](_0x448e29);}if('marker'!==_0x448e29['type']){const _0x55db81=this['_cloneOperation'](_0x448e29,this['_diffRoots']);_0x55db81['_execute'](),this['_transformMarkers'](_0x55db81);}if(_0x21c6fa)switch(_0x448e29['type']){case'insert':this['_handleInsertOperation'](_0x448e29);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x448e29);break;case'merge':this['_handleMergeOperation'](_0x448e29);break;case'split':this['_handleSplitOperation'](_0x448e29);}}else this['_handleRootOperation'](_0x448e29,_0x21c6fa);}['_cloneOperation'](_0x569736,_0xdca2df){const _0x289bf6=_0x569736['clone']();return _0x289bf6['_authorId']=_0x569736['_authorId'],this['_fixOperation'](_0x289bf6,_0xdca2df),_0x289bf6;}['_getBaseVids'](_0x48ef37){return _0x48ef37['map'](_0x13be7d=>{const _0x38d612=this['_getVidAttributeName'](_0x13be7d);return Number(_0x13be7d['item']['getAttribute'](_0x38d612));});}['_generateTape'](_0x2bd78e,_0x4751c6){if(_0x2bd78e['is']('element','$text'))_0x4751c6['push']({'item':_0x2bd78e,'type':'text'});else{_0x2bd78e['is']('element')&&_0x4751c6['push']({'item':_0x2bd78e,'type':'elementStart'});for(const _0x401621 of _0x2bd78e['getChildren']())this['_generateTape'](_0x401621,_0x4751c6);_0x2bd78e['is']('element')&&_0x4751c6['push']({'item':_0x2bd78e,'type':'elementEnd'});}return _0x4751c6;}['_getState'](){const _0x580ac0=new Map(this['_touched']),_0x182457=new Map(_0x580ac0),_0x31bd1e=new Map(),_0x3b8ddc={'insertions':{},'deletions':{}},_0x4a03ad={'insertions':{},'deletions':{}},_0x552a5a=new Map(),_0xe2c37=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe2c37['delete']('$graveyard');for(const _0x1eed16 of _0xe2c37){const _0xb782bb=this['_diffRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1),_0x3fed7e=this['_baseRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1);_0xb782bb['isAttached']()||_0x3fed7e['isAttached']()?(_0x3b8ddc['insertions'][_0x1eed16]=x(_0xb782bb),_0x3b8ddc['deletions'][_0x1eed16]=x(_0x3fed7e),this['_copyMarkers'](_0x3b8ddc['deletions'][_0x1eed16],_0x3fed7e),this['_copyMarkers'](_0x3b8ddc['insertions'][_0x1eed16],_0xb782bb),_0x4a03ad['insertions'][_0x1eed16]=this['_generateTape'](this['_idsRoots']['get'](_0x1eed16),[]),_0x4a03ad['deletions'][_0x1eed16]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1),[])):_0xe2c37['delete'](_0x1eed16);}for(const _0x2bc29d of _0xe2c37){const _0x51a03f=_0x4a03ad['insertions'][_0x2bc29d];for(const _0x4a6fa7 of _0x51a03f){const _0x239e4b=this['_getVidAttributeName'](_0x4a6fa7),_0x5ee873=_0x4a6fa7['item']['getAttribute'](_0x239e4b);_0x182457['delete'](_0x5ee873),_0x5ee873>=this['_startingRevisionId']&&_0x31bd1e['set'](_0x5ee873,_0x580ac0['get'](_0x5ee873));}}for(const _0x316b42 of _0xe2c37){const _0x53f741=_0x4a03ad['insertions'][_0x316b42],_0xd18763=this['_getBaseVids'](_0x4a03ad['deletions'][_0x316b42]);let _0x2d4c8e=0x0;for(const _0x20957e of _0x53f741){const _0x1f97f8=this['_getVidAttributeName'](_0x20957e),_0x5e5b19=_0x20957e['item']['getAttribute'](_0x1f97f8);if(!_0x31bd1e['has'](_0x5e5b19)&&!_0x552a5a['has'](_0x5e5b19)){if(_0x182457['has'](_0x5e5b19))_0x2d4c8e++;else{if(_0x5e5b19!=_0xd18763[_0x2d4c8e]){const _0x37d87a=_0x580ac0['get'](_0x5e5b19)||_0x580ac0['get'](_0xd18763[_0x2d4c8e]);for(;_0x5e5b19!=_0xd18763[_0x2d4c8e];)_0x182457['has'](_0xd18763[_0x2d4c8e])||(_0x552a5a['set'](_0xd18763[_0x2d4c8e],_0x37d87a),_0x580ac0['set'](_0xd18763[_0x2d4c8e],_0x37d87a)),_0x2d4c8e++;}_0x2d4c8e++;}}}}for(const _0x28c20c of _0xe2c37){const _0x4aa19f=_0x4a03ad['insertions'][_0x28c20c];for(const _0x7b33e6 of _0x4aa19f){const _0x3f5c9a=this['_getVidAttributeName'](_0x7b33e6),_0x5c6a89=_0x7b33e6['item']['getAttribute'](_0x3f5c9a);if(_0x552a5a['has'](_0x5c6a89)){const _0x5b2ec9=_0x552a5a['get'](_0x5c6a89);_0x182457['has'](_0x5c6a89)||_0x182457['set'](_0x5c6a89,{..._0x5b2ec9}),_0x31bd1e['set'](_0x5c6a89,{..._0x5b2ec9});}}}for(const _0x3c8358 of _0x182457['keys']())_0x3c8358>=this['_startingRevisionId']&&_0x182457['delete'](_0x3c8358);const _0x1f5d81=new Map();for(const _0x5ee648 of _0xe2c37){let _0x12d716=_0x4a03ad['insertions'][_0x5ee648];for(const _0x48642b of _0x12d716)if(_0x48642b['item']['is']('element','tableCell')){const _0x223028=this['_getVidAttributeName'](_0x48642b),_0xbfd83e=_0x48642b['item']['getAttribute'](_0x223028);if(_0x31bd1e['has'](_0xbfd83e)){const _0x34c9f9=_0x48642b['item']['parent']['parent']['getAttribute']('vid_start'),_0x38cea0=_0x1f5d81['get'](_0x34c9f9)||new Set();_0x38cea0['add'](_0x31bd1e['get'](_0xbfd83e)['userId']),_0x1f5d81['set'](_0x34c9f9,_0x38cea0);}}_0x12d716=_0x4a03ad['deletions'][_0x5ee648];for(const _0x669785 of _0x12d716)if(_0x669785['item']['is']('element','tableCell')){const _0x3665a1=this['_getVidAttributeName'](_0x669785),_0x361ba6=_0x669785['item']['getAttribute'](_0x3665a1);if(_0x182457['has'](_0x361ba6)){const _0x57b1cd=_0x669785['item']['parent']['parent']['getAttribute']('vid_start'),_0x158860=_0x1f5d81['get'](_0x57b1cd)||new Set();_0x158860['add'](_0x182457['get'](_0x361ba6)['userId']),_0x1f5d81['set'](_0x57b1cd,_0x158860);}}for(const _0x6bf6ba of _0x1f5d81['keys']())(_0x31bd1e['has'](_0x6bf6ba)||_0x182457['has'](_0x6bf6ba))&&_0x1f5d81['delete'](_0x6bf6ba);}for(const _0x1e8c00 of _0xe2c37){const _0x2df00d=_0x4a03ad['insertions'][_0x1e8c00];let _0x4cae2f=null,_0x4937e7=null;for(const _0x8a7c54 of _0x2df00d){const _0x52a947=this['_getVidAttributeName'](_0x8a7c54),_0x275bac=_0x8a7c54['item']['getAttribute'](_0x52a947),_0x5d076a=_0x1f5d81['get'](_0x275bac);_0x5d076a&&'elementStart'==_0x8a7c54['type']&&(_0x4cae2f=Array['from'](_0x5d076a)[0x0],_0x4937e7=_0x8a7c54['item']['getAttribute']('vid_end')),_0x4cae2f&&(_0x182457['set'](_0x275bac,{'userId':_0x4cae2f}),_0x31bd1e['set'](_0x275bac,{'userId':_0x4cae2f})),_0x275bac==_0x4937e7&&(_0x4cae2f=null,_0x4937e7=null);}}const _0x3c899a={},_0x3dcdc9=new Set();for(const _0x11e885 of _0xe2c37){const _0xd4afae=_0x3b8ddc['deletions'][_0x11e885],_0x5a8c83=_0x3b8ddc['insertions'][_0x11e885];for(const {userId:_0xc0448}of this['_touchedMarkers']['values']())null!==_0xc0448&&_0x3dcdc9['add'](_0xc0448);for(const {userId:_0x691b85}of this['_touchedRoots']['values']())null!==_0x691b85&&_0x3dcdc9['add'](_0x691b85);this['_markChanges'](_0x5a8c83,_0x4a03ad['insertions'][_0x11e885],_0x31bd1e,'insertion',_0x3dcdc9),this['_markChanges'](_0xd4afae,_0x4a03ad['deletions'][_0x11e885],_0x182457,'deletion',_0x3dcdc9),_0x3c899a[_0x11e885]={'insertions':this['_prepareViewToSave'](_0x5a8c83),'deletions':this['_prepareViewToSave'](_0xd4afae),'attachChange':this['_touchedRoots']['get'](_0x11e885)||null,'attributesBefore':_0x32f284(this['_baseRootsAttributes']['get'](_0x11e885))||{},'attributesAfter':_0x32f284(this['_diffRootsAttributes']['get'](_0x11e885))};}return{'diffData':_0x3c899a,'authorsIds':Array['from'](_0x3dcdc9)};}['_processRootBeforeSave'](_0x2837ba){for(const [,_0x3bc8c7]of _0x2837ba['markers']){const _0x2d650d=_0x3bc8c7['start']['getAncestors']()['filter'](_0x598070=>'tableCell'==_0x598070['name']);for(const _0x1f3aee of _0x2d650d)0x1==_0x1f3aee['childCount']&&_0x1f3aee['getChild'](0x0)['is']('element','paragraph')&&_0x1f3aee['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3e0f41){this['_processRootBeforeSave'](_0x3e0f41);const _0x21b5b6=this['editor']['data']['toView'](_0x3e0f41,{}),_0x1e8bc6=Array['from'](_0x21b5b6['getChildren']())['map'](_0x3f931c=>this['_getViewJson'](_0x3f931c));return JSON['stringify'](_0x1e8bc6);}['_getViewJson'](_0x35833c){if(_0x35833c['is']('$text'))return _0x35833c['data'];{const _0x4312a7=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x308dd7=_0x35833c,_0x1d1488=this['editor']['data']['htmlProcessor']['domConverter'],_0x4c302e={'type':_0x4312a7['_getTypeCharForViewElement'](_0x308dd7),'name':_0x308dd7['name'],'attributes':Array['from'](_0x308dd7['getAttributes']()),'children':Array['from'](_0x308dd7['getChildren']())['map'](_0x1bcb36=>this['_getViewJson'](_0x1bcb36))};if(_0x35833c['is']('uiElement')&&'$comment'!=_0x35833c['name']){const _0x308418=_0x35833c['render'](_0x1d1488['domDocument'],_0x1d1488);_0x4c302e['children']['push'](_0x308418['outerHTML']);}else{if(_0x35833c['is']('rawElement')){const _0x2b4012=_0x1d1488['domDocument']['createElement'](_0x308dd7['name']);_0x35833c['render'](_0x2b4012,_0x1d1488),_0x4c302e['children']['push'](_0x2b4012['innerHTML']);}}const _0x2fa363=Array['from'](_0x308dd7['getCustomProperties']());_0x2fa363['length']>0x0&&(_0x4c302e['customProperties']=_0x2fa363);const _0x271624=_0x308dd7['getFillerOffset']();return null!==_0x271624&&(_0x4c302e['fillerOffset']=_0x271624),_0x4c302e;}}['_markChanges'](_0x75bbe5,_0x4c52c5,_0x2d23dd,_0xb5a9,_0xe9a1e4){let _0x2b1a50=null,_0x2a7a16=null,_0x398f61=0x0;const _0x43e745=this['editor']['model'];for(let _0x59acb4=0x0;_0x59acb4<_0x4c52c5['length'];_0x59acb4++){const _0x5c6a88=this['_getVidAttributeName'](_0x4c52c5[_0x59acb4]),_0x118dd1=_0x4c52c5[_0x59acb4]['item']['getAttribute'](_0x5c6a88),_0x3420a9=_0x2d23dd['get'](_0x118dd1),_0x15a0d0=_0x59acb4==_0x4c52c5['length']-0x1;(!_0x2b1a50&&_0x3420a9&&(_0x2b1a50=_0x3420a9,_0x2a7a16=_0x4c52c5[_0x59acb4]),_0x2b1a50&&(!_0x3420a9||_0x3420a9['userId']!=_0x2b1a50['userId']))&&(_0x2b92df(_0x3420a9,P(_0x2a7a16,_0x75bbe5,_0x43e745),P(_0x4c52c5[_0x59acb4],_0x75bbe5,_0x43e745)),_0x2b1a50=_0x3420a9||null,_0x2a7a16=_0x3420a9?_0x4c52c5[_0x59acb4]:null),_0x2b1a50&&_0x15a0d0&&_0x2b92df(_0x3420a9,P(_0x2a7a16,_0x75bbe5,_0x43e745),V(_0x4c52c5[_0x59acb4],_0x75bbe5,_0x43e745));}function _0x2b92df(_0x46ac0f,_0xe07c1,_0x4e2110){const _0x973dab=_0x2b1a50['userId'],_0x1b2b55='revision:'+_0xb5a9+':'+_0x973dab+':'+_0x398f61++,_0x588d93=_0x43e745['createRange'](_0xe07c1,_0x4e2110);_0x75bbe5['markers']['set'](_0x1b2b55,_0x588d93),null!==_0x973dab&&_0xe9a1e4['add'](_0x973dab);}}['_getVidAttributeName'](_0x21a00a){switch(_0x21a00a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22728d,_0x36ad0e){_0x22728d['baseVersion']=null;for(const _0x4c0cbf in _0x22728d){const _0x230dd3=_0x22728d[_0x4c0cbf];if(_0x230dd3 instanceof _0x2be10f){const _0x38b08e=_0x36ad0e['get'](_0x230dd3['root']['rootName']);_0x22728d[_0x4c0cbf]=this['_fixPosition'](_0x230dd3,_0x38b08e);}if(_0x230dd3 instanceof _0x45b9a5){const _0x516444=_0x36ad0e['get'](_0x230dd3['root']['rootName']);_0x22728d[_0x4c0cbf]=this['_fixRange'](_0x230dd3,_0x516444);}'root'===_0x4c0cbf&&(_0x22728d['root']=_0x36ad0e['get'](_0x22728d['root']['rootName']));}}['_fixRange'](_0x280733,_0x4a54ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x280733['start'],_0x4a54ac),this['_fixPosition'](_0x280733['end'],_0x4a54ac));}['_fixPosition'](_0x3d4d46,_0x36b83a){return this['editor']['model']['createPositionFromPath'](_0x36b83a,_0x3d4d46['path'],_0x3d4d46['stickiness']);}['_handleInsertOperation'](_0x5d6000){const _0x4d23ef=this['_idsRoots']['get'](_0x5d6000['position']['root']['rootName']),_0x3c96c3=this['_fixPosition'](_0x5d6000['position'],_0x4d23ef),_0x146db4=null===_0x5d6000['_authorId']?null:_0x5d6000['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ecc3c=_0x3c96c3['parent'],_0x4c72fe=this['_revisionId'],_0x29afbd=[];for(const _0x733e2b of _0x5d6000['nodes'])if(_0x733e2b['is']('element'))_0x29afbd['push'](this['_makeIdsRoot'](_0x733e2b));else{for(let _0x395e22=0x0;_0x395e22<_0x733e2b['offsetSize'];_0x395e22++)_0x29afbd['push'](new _0x5b2de1('$text',{'vid':this['_revisionId']++}));}const _0x1a743c=this['_revisionId'];for(let _0x2e78ef=_0x4c72fe;_0x2e78ef<_0x1a743c;_0x2e78ef++)this['_touched']['set'](_0x2e78ef,{'userId':_0x146db4});_0x5ecc3c['_insertChild'](_0x3c96c3['offset'],_0x29afbd);}['_handleMoveOperation'](_0xa5e148){(_0xa5e148=this['_cloneOperation'](_0xa5e148,this['_idsRoots']))['_execute']();const _0x515bf5=null===_0xa5e148['_authorId']?null:_0xa5e148['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4397ab=_0xa5e148['getMovedRangeStart'](),_0x483689=_0x4397ab['parent'],_0x1019e3=_0x4397ab['offset'];!function _0x2fc902(_0x5f0a11,_0x569bf8,_0x26aa5d,_0x1e8693){for(let _0x589461=_0x26aa5d;_0x589461<_0x1e8693;_0x589461++){const _0x1d5942=_0x569bf8['getChild'](_0x589461);_0x1d5942['is']('element','$text')?_0x5f0a11['set'](_0x1d5942['getAttribute']('vid'),{'userId':_0x515bf5}):(_0x5f0a11['set'](_0x1d5942['getAttribute']('vid_start'),{'userId':_0x515bf5}),_0x2fc902(_0x5f0a11,_0x1d5942,0x0,_0x1d5942['childCount']),_0x5f0a11['set'](_0x1d5942['getAttribute']('vid_end'),{'userId':_0x515bf5}));}}(this['_touched'],_0x483689,_0x1019e3,_0x1019e3+_0xa5e148['howMany']);}['_handleMergeOperation'](_0x5e3929){const _0x5b2e5b=null===(_0x5e3929=this['_cloneOperation'](_0x5e3929,this['_idsRoots']))['_authorId']?null:_0x5e3929['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46f628=_0x5e3929['targetPosition']['parent'],_0xc51523=_0x5e3929['sourcePosition']['parent'],_0x1416f4=_0x46f628['getAttribute']('vid_end'),_0x750499=_0xc51523['getAttribute']('vid_start');_0x46f628['_setAttribute']('vid_end',_0xc51523['getAttribute']('vid_end')),_0xc51523['_setAttribute']('vid_end',_0x1416f4),this['_touched']['set'](_0x750499,{'userId':_0x5b2e5b}),this['_touched']['set'](_0x1416f4,{'userId':_0x5b2e5b}),_0x5e3929['_execute']();}['_handleSplitOperation'](_0x13b60e){const _0x24a8f0=null===(_0x13b60e=this['_cloneOperation'](_0x13b60e,this['_idsRoots']))['_authorId']?null:_0x13b60e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38711b=_0x13b60e['graveyardPosition'],_0x573577=_0x13b60e['splitPosition']['parent'];_0x13b60e['_execute']();const _0x55d786=_0x573577['getAttribute']('vid_end'),_0x23b2ee=_0x13b60e['insertionPosition']['nodeAfter'];if(_0x38711b){const _0x39a681=_0x23b2ee['getAttribute']('vid_end'),_0x3761ad=_0x573577['getAttribute']('vid_end');_0x573577['_setAttribute']('vid_end',_0x39a681),_0x23b2ee['_setAttribute']('vid_end',_0x3761ad),this['_touched']['set'](_0x573577['getAttribute']('vid_end'),{'userId':_0x24a8f0}),this['_touched']['set'](_0x23b2ee['getAttribute']('vid_start'),{'userId':_0x24a8f0});}else{const _0x2871a5=this['_revisionId']++,_0x398b41=this['_revisionId']++;_0x573577['_setAttribute']('vid_end',_0x2871a5),_0x23b2ee['_setAttribute']('vid_start',_0x398b41),_0x23b2ee['_setAttribute']('vid_end',_0x55d786),this['_touched']['set'](_0x2871a5,{'userId':_0x24a8f0}),this['_touched']['set'](_0x398b41,{'userId':_0x24a8f0});}}['_handleMarkerOperation'](_0x425a29){if(!_0x425a29['affectsData'])return;const _0x430b77=(_0x425a29=this['_cloneOperation'](_0x425a29,this['_diffRoots']))['oldRange']?_0x425a29['oldRange']['root']:null,_0x141094=_0x425a29['newRange']?_0x425a29['newRange']['root']:null;_0x430b77&&this['_markers']['delete'](_0x425a29['name']),_0x141094&&this['_markers']['set'](_0x425a29['name'],_0x425a29['newRange']['clone']());const _0x5e37f1=null===_0x425a29['_authorId']?null:_0x425a29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11e430=_0x425a29['name'];if(!this['_touchedMarkers']['has'](_0x11e430))return void this['_touchedMarkers']['set'](_0x11e430,{'range':_0x425a29['oldRange'],'userId':_0x5e37f1});const _0x34a1a0=this['_touchedMarkers']['get'](_0x11e430),_0x6bde1f=_0x34a1a0['range'],_0x9dee46=_0x425a29['newRange'];null==_0x6bde1f&&null==_0x9dee46||_0x6bde1f&&_0x9dee46&&_0x6bde1f['isEqual'](_0x9dee46)?this['_touchedMarkers']['delete'](_0x425a29['name']):_0x34a1a0['userId']=_0x5e37f1;}['_handleRootOperation'](_0x8497f6,_0x46eb4f){this['_diffRoots']['has'](_0x8497f6['rootName'])?this['_diffRoots']['get'](_0x8497f6['rootName'])['_isAttached']=_0x8497f6['isAdd']:(this['_diffRoots']['set'](_0x8497f6['rootName'],N(_0x8497f6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8497f6['rootName'],{}),_0x46eb4f&&this['_idsRoots']['set'](_0x8497f6['rootName'],N(_0x8497f6['rootName'],!0x0)));const _0x43c4f4=null===_0x8497f6['_authorId']?null:_0x8497f6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25ffd8=this['_touchedRoots']['get'](_0x8497f6['rootName']);_0x25ffd8&&_0x25ffd8['userId']===_0x43c4f4?this['_touchedRoots']['delete'](_0x8497f6['rootName']):this['_touchedRoots']['set'](_0x8497f6['rootName'],{'userId':_0x43c4f4,'isAttached':_0x8497f6['isAdd']});}['_handleRootAttributeOperation'](_0x13a1e7){const _0x42344b=this['_diffRootsAttributes']['get'](_0x13a1e7['root']['rootName']);null===_0x13a1e7['newValue']?delete _0x42344b[_0x13a1e7['key']]:_0x42344b[_0x13a1e7['key']]=_0x13a1e7['newValue'];}}function x(_0x4508a9){const _0xa9c7d9=N(_0x4508a9['rootName'],_0x4508a9['isAttached']());for(const _0x52ede7 of _0x4508a9['getChildren']()){const _0x2ef808=_0x52ede7['_clone'](!0x0);_0xa9c7d9['_appendChild'](_0x2ef808);}return _0xa9c7d9;}function N(_0x47bd14,_0x1c4b5a=!0x0){const _0x4987e0=new _0x2b70b9();return _0x4987e0['rootName']=_0x47bd14,_0x4987e0['_isAttached']=_0x1c4b5a,_0x4987e0['isAttached']=()=>_0x4987e0['_isAttached'],_0x4987e0;}function P(_0x126522,_0x86a712,_0x57b848){const _0x1e0f38='elementEnd'==_0x126522['type']?_0x57b848['createPositionAt'](_0x126522['item'],'end'):_0x57b848['createPositionBefore'](_0x126522['item']);return _0x57b848['createPositionFromPath'](_0x86a712,_0x1e0f38['path'],_0x1e0f38['stickiness']);}function V(_0x4bc815,_0x4310a5,_0x515e47){const _0x414283='elementStart'==_0x4bc815['type']?_0x515e47['createPositionAt'](_0x4bc815['item'],0x0):_0x515e47['createPositionAfter'](_0x4bc815['item']);return _0x515e47['createPositionFromPath'](_0x4310a5,_0x414283['path'],_0x414283['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x222912(_0x4d3a60){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x553a8b,_0xe869bd){super(_0x553a8b),this['focusTracker']=new _0x576123(),this['keystrokes']=new _0x2c1f9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe869bd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x49168b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x45de44=_0x34d038=>_0x34d038['stopPropagation']();this['keystrokes']['set']('arrowright',_0x45de44),this['keystrokes']['set']('arrowleft',_0x45de44),this['keystrokes']['set']('arrowup',_0x45de44),this['keystrokes']['set']('arrowdown',_0x45de44);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x27beee){this['revisionNameInputView']['fieldView']['element']['value']=_0x27beee['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x43015b){const _0x57c828=new ti(this['locale'],_0x128517),_0xc6710=_0x57c828['fieldView'];_0xc6710['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ff285=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x43015b&&(_0x4ff285+='\x20('+R(this['locale'],'optional')+')'),(_0x57c828['label']=_0x4ff285,_0xc6710['on']('input',()=>{this['revisionNameInputValue']=_0xc6710['element']['value']['trim']();}),_0x57c828);}}class v extends _0x1d82bd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x26951b=this['editor'],_0x50b7cc=_0x26951b['plugins']['get']('RevisionTracker');_0x26951b['ui']['componentFactory']['add']('revisionHistory',_0x3e3203=>{const _0x333bdf=_0x403910(_0x3e3203),_0x5c786=_0x333bdf['panelView']['children'],_0x205065=new _0x120368(_0x3e3203),_0x5890ae=new _0x5c71d3(_0x3e3203),_0x3e6620=new _0x164f62(_0x3e3203),_0xb4b19a=new _0x5c71d3(_0x3e3203),_0x3d7079=new _0x164f62(_0x3e3203);return _0x333bdf['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x50b7cc,'isEnabled',_0x26951b,'isReadOnly',(_0x91564,_0x372a9f,_0x9fded4)=>_0x91564&&_0x372a9f&&!_0x9fded4),_0x333bdf['buttonView']['set']({'icon':_0x59245b,'label':R(_0x3e3203,'Revision\x20history'),'tooltip':!0x0}),_0x3e6620['set']({'label':R(_0x3e3203,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3e6620['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x50b7cc,'isEnabled',_0x26951b,'isReadOnly',(_0x49d8a8,_0x1fde6d,_0x451f92)=>_0x49d8a8&&_0x1fde6d&&!_0x451f92),_0x3e6620['on']('execute',()=>this['_showDialog']()),_0x3d7079['set']({'label':R(_0x3e3203,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3d7079['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x26951b,'isReadOnly',(_0x55e3a2,_0x546fe3)=>_0x55e3a2&&!_0x546fe3),_0x3d7079['on']('execute',()=>{_0x26951b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x333bdf['isOpen']=!0x1,_0x26951b['editing']['view']['focus']();}),_0x5890ae['children']['add'](_0x3e6620),_0xb4b19a['children']['add'](_0x3d7079),_0x205065['role']='menu',_0x205065['items']['addMany']([_0x5890ae,_0xb4b19a]),_0x5c786['add'](_0x205065),_0x333bdf;}),_0x26951b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x36fb36=this['editor'],_0xf351a6=_0x36fb36['locale'],_0x55246e=new _0x67ee54(_0xf351a6),_0x555e28=new _0x437570(_0xf351a6);_0x55246e['buttonView']['set']({'icon':_0x59245b,'label':R(_0xf351a6,'Revision\x20history')});const _0x52de5d=new _0x67548c(_0xf351a6,_0x55246e),_0x5bb55b=new _0x17957b(_0xf351a6);_0x5bb55b['set']({'label':R(_0xf351a6,'Save\x20current\x20revision')}),_0x5bb55b['delegate']('execute')['to'](_0x55246e),_0x5bb55b['on']('execute',()=>{this['_showDialog']();}),_0x52de5d['children']['add'](_0x5bb55b),_0x555e28['items']['add'](_0x52de5d);const _0x83f63b=new _0x67548c(_0xf351a6,_0x55246e),_0x4a1bcf=new _0x17957b(_0xf351a6);return _0x4a1bcf['set']({'label':R(_0xf351a6,'Open\x20revision\x20history')}),_0x4a1bcf['delegate']('execute')['to'](_0x55246e),_0x4a1bcf['on']('execute',()=>{_0x36fb36['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x83f63b['children']['add'](_0x4a1bcf),_0x555e28['items']['add'](_0x83f63b),_0x55246e['panelView']['children']['add'](_0x555e28),_0x55246e;}['_showDialog'](){const _0x51588b=this['editor'],_0x2ae7c5=_0x51588b['locale'],_0x58d474=_0x51588b['plugins']['get']('Dialog'),_0x564e13=_0x51588b['plugins']['get']('RevisionTracker');function _0x57a928(_0x4ad234){_0x51588b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ad234['revisionName']?_0x4ad234['revisionNameInputView']['errorText']=R(_0x2ae7c5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x51588b['plugins']['get'](h)['saveRevision']({'name':_0x4ad234['revisionName']}),_0x58d474['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x57a928(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x58d474['show']({'id':'revisionSave','title':R(_0x2ae7c5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x51588b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x58d474['hide']()},{'label':R(_0x51588b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1b6907){_0x1b6907['bind']('isEnabled')['to'](_0x564e13,'isReady',_0x564e13,'isEnabled',_0x51588b,'isReadOnly',(_0xad59c8,_0x17cb5f,_0x591fcd)=>_0xad59c8&&_0x17cb5f&&!_0x591fcd);},'onExecute':()=>_0x57a928(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xe619d=this['editor'],_0x3ee43e=_0xe619d['locale'];this['_saveRevisionFormView']=new he(_0x3ee43e,_0xe619d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4d3a60{['changeId'];['_model'];constructor(_0x2c7bb2,_0x1ff383){super(_0x2c7bb2),this['_model']=_0x1ff383,this['changeId']=_0x1ff383['id'];const _0x3416cd=this['bindTemplate'],_0x31fe1b=R(_0x2c7bb2,_0x1ff383['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1ff383['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1ff383['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3416cd['to']('type',_0x33b213=>'ck-revision-change__'+_0x33b213)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31fe1b}]},{'text':'\x20'+_0x1ff383['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3d9fdb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa77660){super(),this['id']=_0xa77660['id']||_0x30afc6(),this['author']=_0xa77660['author'],this['type']=_0xa77660['type'],this['data']=_0xa77660['data']||{},this['rootName']=_0xa77660['rootName'],this['set']('createdAt',_0xa77660['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3aa788,_0x4de0c1){this['newRevisionId']=_0x3aa788,this['oldRevisionId']=_0x4de0c1,this['changes']=new _0x33c442();}['_setChanges'](_0x3a307a){for(const _0x13c25f of _0x3a307a)this['changes']['add'](_0x13c25f);}}class l extends _0x1d82bd{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d82c4,_0x41b47d,S,$];}constructor(_0x17717d){super(_0x17717d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5390f5,_0x24a712,_0x419f4a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a36eb=>{for(const _0x1d1d74 of this['editor']['editing']['view']['document']['roots'])_0x419f4a?_0x3a36eb['removeClass']('ck-editor__editable__overlay',_0x1d1d74):_0x3a36eb['addClass']('ck-editor__editable__overlay',_0x1d1d74);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4368fd=>null!==_0x4368fd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x50d6fa,_0x292068,_0x44111a)=>_0x50d6fa&&_0x44111a?_0x292068['changes']['getIndex'](_0x44111a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5d2b0a,_0x47f3f7)=>_0x5d2b0a?_0x47f3f7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x41b47d);}['init'](){const _0x2c1a98=this['editor'],_0x2736e8=new ot(_0x2c1a98,{'direction':'backward'}),_0x5db50a=new ot(_0x2c1a98,{'direction':'forward'});(_0x2c1a98['commands']['add']('showPreviousChange',_0x2736e8),_0x2c1a98['commands']['add']('showNextChange',_0x5db50a),_0x2c1a98['commands']['add']('restoreRevision',new nt(_0x2c1a98)),this['on']('change:numberOfChanges',()=>{_0x2736e8['refresh'](),_0x5db50a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c1a98['enableReadOnlyMode']('revision-viewer'),_0x2c1a98['plugins']['has']('WidgetToolbarRepository'))&&_0x2c1a98['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x249809){return await this['_utils']['loadRevisionData'](_0x249809,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x249809);}async['getRevisionRootsAttributes'](_0x383f52){return await this['_utils']['loadRevisionData'](_0x383f52,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x383f52);}async['compare'](_0x299b16,_0x49fcee,_0x4b97a9=!0x1){if(!this['isEnabled'])return;const _0x5a5e5d=this['diff'],_0x4261e2=this['repository'],_0x20ea7f='string'==typeof _0x299b16?_0x4261e2['getRevision'](_0x299b16):_0x299b16,_0x1adbd7='string'==typeof _0x49fcee?_0x4261e2['getRevision'](_0x49fcee):_0x49fcee,_0x5d3ea1=_0x20ea7f['id'],_0xde3bca=_0x1adbd7?_0x1adbd7['id']:null;if(!_0x4b97a9&&this['diff']&&this['diff']['newRevisionId']===_0x5d3ea1&&this['diff']['oldRevisionId']===_0xde3bca)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5d3ea1,_0xde3bca);const _0x13d335=this['_getRevisionsRange'](_0x20ea7f,_0x1adbd7,!0x0)['map'](_0x1375e9=>this['_utils']['loadRevisionData'](_0x1375e9,this['adapter']));return _0x13d335['push'](new Promise(_0x36ebc9=>{setTimeout(_0x36ebc9,0x14);})),Promise['all'](_0x13d335)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3bc69f=this['_getDiff'](_0x5d3ea1,_0xde3bca);for(const _0x4f3df7 of _0x3bc69f['changes'])this['_changeIdToChange']['set'](_0x4f3df7['id'],_0x4f3df7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5047e2=>{for(const _0x21a2ca of this['editor']['model']['document']['getRootNames']())_0x5047e2['detachRoot'](_0x21a2ca);for(const _0x461c6e of Object['keys'](_0x3bc69f['model'])){const _0x5d9243=_0x5047e2['addRoot'](_0x461c6e);for(const _0x2bbed2 of Object['keys'](_0x3bc69f['attributes'][_0x461c6e]))_0x5047e2['setAttribute'](_0x2bbed2,_0x3bc69f['attributes'][_0x461c6e][_0x2bbed2],_0x5d9243);_0x5047e2['insert'](_0x3bc69f['model'][_0x461c6e],_0x5d9243,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3bc69f['changes'])),this['isReady']=!0x0;})['catch'](_0x5dc9e2=>{console['error'](_0x5dc9e2),this['_cleanUp'](),_0x5a5e5d&&(this['diff']=_0x5a5e5d),this['isReady']=!0x0;});}['addRevisionData'](_0x492b21,_0x1fd142){const _0x205c87=this['repository']['createRevision'](_0x492b21);return _0x205c87['on']('_update',(_0x38e209,_0x48435e,_0x19835)=>_0x1fd142(_0x48435e,_0x19835,_0x205c87)),this['repository']['addRevision'](_0x205c87),_0x205c87;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe8428=>{for(const _0x1a534e of this['editor']['model']['document']['getRootNames']())_0xe8428['detachRoot'](_0x1a534e);});}['_sortAndFilterDiffChanges'](_0x569449){const _0x23e342=[],_0x9e5991=new Map();for(const _0x3678fd of this['editor']['model']['document']['getRootNames']()){const _0x38957a=this['editor']['editing']['view']['getDomRoot'](_0x3678fd);if(!_0x38957a)continue;const _0x4f42d2=_0x38957a['getClientRects']()['item'](0x0);_0x4f42d2&&(_0x23e342['push'](_0x3678fd),_0x9e5991['set'](_0x3678fd,_0x4f42d2));}return _0x23e342['sort']((_0x5b9f55,_0x45d48a)=>{const _0x3ba4b0=_0x9e5991['get'](_0x5b9f55),_0x16df56=_0x9e5991['get'](_0x45d48a);return _0x3ba4b0['y']-_0x16df56['y']||_0x3ba4b0['x']-_0x16df56['x'];}),(_0x569449=_0x569449['filter'](_0x32c198=>_0x23e342['includes'](_0x32c198['rootName'])))['sort']((_0x2da1ae,_0x419dcc)=>_0x23e342['indexOf'](_0x2da1ae['rootName'])-_0x23e342['indexOf'](_0x419dcc['rootName'])),_0x569449;}['_makeTape'](_0x291180){const _0x5dee6f=Array['from'](_0x291180['markers'])['filter'](([_0x427254,_0x16cc19])=>_0x427254['startsWith']('revision:')&&!_0x16cc19['isCollapsed']),_0x6e4616=Array['from'](this['editor']['model']['createRangeIn'](_0x291180)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dee6f['length'])for(const _0x4fd1cf of _0x6e4616){const [_0x24627e,_0x339163]=_0x5dee6f[0x0],[,_0x532bfd,_0x43b885]=_0x24627e['split'](':');if(_0x339163['end']['isEqual'](_0x4fd1cf['nextPosition'])&&_0x5dee6f['shift'](),(_0x4fd1cf['previousPosition']['isEqual'](_0x339163['start'])||_0x4fd1cf['previousPosition']['isAfter'](_0x339163['start']))&&('insertion'==_0x532bfd?_0x4fd1cf['isAdded']={'userId':_0x43b885}:'deletion'==_0x532bfd&&(_0x4fd1cf['isRemoved']={'userId':_0x43b885})),0x0==_0x5dee6f['length'])break;}return _0x6e4616;}['_refreshStartEndIndex'](_0x1bf079){const _0x18f126=new Map();for(let _0x5e10f8=0x0;_0x5e10f8<_0x1bf079['length'];_0x5e10f8++)'text'===_0x1bf079[_0x5e10f8]['type']?(_0x1bf079[_0x5e10f8]['item']['startIndex']=_0x5e10f8,_0x1bf079[_0x5e10f8]['item']['endIndex']=_0x5e10f8):('elementStart'===_0x1bf079[_0x5e10f8]['type']?_0x1bf079[_0x5e10f8]['item']['startIndex']=_0x5e10f8:'elementEnd'===_0x1bf079[_0x5e10f8]['type']&&(_0x1bf079[_0x5e10f8]['item']['endIndex']=_0x5e10f8),_0x18f126['set'](_0x1bf079[_0x5e10f8]['id'],_0x5e10f8));for(const _0x27e035 of _0x18f126['values']())'elementStart'===_0x1bf079[_0x27e035]['type']?_0x1bf079[_0x27e035]['item']['endIndex']=_0x18f126['get'](_0x1bf079[_0x27e035]['pairId']):'elementEnd'===_0x1bf079[_0x27e035]['type']&&(_0x1bf079[_0x27e035]['item']['startIndex']=_0x18f126['get'](_0x1bf079[_0x27e035]['pairId']));}['_processTape'](_0x646181){for(let _0x381828=0x0;_0x381828<_0x646181['length'];_0x381828++){if('elementStart'===_0x646181[_0x381828]['type'])_0x646181[_0x381828]['item']['startIndex']=_0x381828;else{if('elementEnd'===_0x646181[_0x381828]['type']){_0x646181[_0x381828]['item']['endIndex']=_0x381828;const _0xe81772=_0x646181[_0x381828]['item']['startIndex'];_0x646181[_0xe81772]['pairId']=_0x646181[_0x381828]['id'],_0x646181[_0x381828]['pairId']=_0x646181[_0xe81772]['id'];}else _0x646181[_0x381828]['item']['startIndex']=_0x381828,_0x646181[_0x381828]['item']['endIndex']=_0x381828,_0x646181[_0x381828]['pairId']=null;}_0x646181[_0x381828]['markersStart']||(_0x646181[_0x381828]['markersStart']=[],_0x646181[_0x381828]['markersEnd']=[]);}}['_markInsertions'](_0x27ce67,_0x241490){const _0x1c2cfb=_0x27ce67['filter'](_0x118725=>!_0x118725['isAdded']);for(let _0x26de3f=0x0;_0x26de3f<_0x241490['length'];_0x26de3f++)_0x241490[_0x26de3f]['isAdded']&&(_0x1c2cfb[_0x26de3f]['isAdded']=_0x241490[_0x26de3f]['isAdded']);}['_getDiff'](_0x467312,_0xc28c22=null){const _0x57ba5c=this['repository']['getRevision'](_0x467312),_0x20cb37=_0xc28c22?this['repository']['getRevision'](_0xc28c22):null,_0x8590d1=this['_getRevisionsRange'](_0x57ba5c,_0x20cb37),_0x45cc72=_0x8590d1[_0x8590d1['length']-0x1],_0x3c2269=new Map(),_0x3d7fd5={'model':{},'attributes':{},'changes':[]},_0x105be2=new Set(),_0x285dd0=new Map();for(let _0x45fd83=_0x8590d1['length']-0x1;_0x45fd83>=0x0;_0x45fd83--){const _0x12bbf1=_0x8590d1[_0x45fd83];for(const _0x8127e2 of Object['keys'](_0x12bbf1['diffData']))if(_0x12bbf1['diffData'][_0x8127e2]['attachChange']){const _0xcfb6f5=_0x12bbf1['diffData'][_0x8127e2]['attachChange'];_0xcfb6f5['isAttached']?(_0x105be2['add'](_0x8127e2),_0x285dd0['has'](_0x8127e2)&&_0x285dd0['get'](_0x8127e2)['userId']==_0xcfb6f5['userId']?_0x285dd0['delete'](_0x8127e2):_0x285dd0['set'](_0x8127e2,_0xcfb6f5)):_0x285dd0['has'](_0x8127e2)?(_0x105be2['delete'](_0x8127e2),_0x285dd0['delete'](_0x8127e2)):(_0x105be2['add'](_0x8127e2),_0x285dd0['set'](_0x8127e2,_0xcfb6f5));}else _0x105be2['add'](_0x8127e2);}for(const _0x395a29 of _0x105be2){const _0x4f9eeb=_0x285dd0['has'](_0x395a29)&&!_0x285dd0['get'](_0x395a29)['isAttached'];let _0xa4d6ab=_0x4f9eeb?_0x8590d1['length']-0x1:0x0;const _0x25b991=_0x4f9eeb?-0x1:0x1;for(;_0x8590d1[_0xa4d6ab];){const _0xae0abf=_0x8590d1[_0xa4d6ab];if(_0xae0abf['diffData'][_0x395a29]){const _0x479680=_0x4f9eeb?_0xae0abf['diffData'][_0x395a29]['attributesBefore']:_0xae0abf['diffData'][_0x395a29]['attributesAfter'];_0x3d7fd5['attributes'][_0x395a29]=_0x479680?_0x32f284(_0x479680):{};break;}_0xa4d6ab+=_0x25b991;}}for(const _0x50a146 of _0x8590d1){_0x50a146['model']={};for(const _0x3fc715 of _0x50a146['authors'])_0x3c2269['set'](_0x3fc715['id'],_0x3fc715);for(const _0x3d56c8 of _0x105be2){const _0x4ee7b5=_0x50a146['diffData'][_0x3d56c8]?_0x50a146['diffData'][_0x3d56c8]['insertions']:'[]',_0x3b951c=_0x50a146['diffData'][_0x3d56c8]?_0x50a146['diffData'][_0x3d56c8]['deletions']:'[]';_0x50a146['model'][_0x3d56c8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ee7b5),'deletions':this['_utils']['_makeModelFromViewString'](_0x3b951c)};}}for(const _0x272fa5 of _0x105be2){let _0x3c6b99=null,_0x5e3431=0x0;const _0x30cb02=new Map(Array['from'](_0x57ba5c['model'][_0x272fa5]['insertions']['markers'])['filter'](([_0x59faa7])=>!_0x59faa7['startsWith']('revision:')));let _0x303d39=0x0;for(const _0xdb1136 of _0x8590d1){const _0x168f2c=this['_makeTape'](_0xdb1136['model'][_0x272fa5]['insertions']);_0xdb1136==_0x57ba5c?(_0x3c6b99=_0x168f2c,_0x5e3431=_0x3c6b99['length'],_0x3c6b99['forEach'](_0x1d0d30=>{_0x1d0d30['id']=_0x303d39++;}),this['_processTape'](_0x3c6b99)):this['_markInsertions'](_0x3c6b99,_0x168f2c);const _0x419c03=_0x3c6b99['filter'](_0x34e5de=>!_0x34e5de['isAdded'])['map'](_0x36afa9=>_0x36afa9['id']);let _0x4a1a04=0x0;const _0x18c8b6=this['_makeTape'](_0xdb1136['model'][_0x272fa5]['deletions']);_0x18c8b6['forEach'](_0x4f98ff=>{_0x4f98ff['isRemoved']?_0x4f98ff['id']=_0x5e3431++:_0x4f98ff['id']=_0x419c03[_0x4a1a04++];}),this['_processTape'](_0x18c8b6),this['_setDistance'](_0x3c6b99,'isAdded'),this['_setDistance'](_0x18c8b6,'isRemoved'),_0xdb1136==_0x57ba5c&&this['_markMarkers'](_0x3c6b99,_0x30cb02),_0x3c6b99=this['_joinTapes'](_0x3c6b99,_0x18c8b6),this['_refreshStartEndIndex'](_0x3c6b99),this['_setDistance'](_0x3c6b99,'isRemoved');}_0x3c6b99=_0x3c6b99['filter'](_0x4a175d=>!(_0x4a175d['isAdded']&&_0x4a175d['isRemoved']));const _0x2c477f=new Map(_0x45cc72['model'][_0x272fa5]['deletions']['markers']),_0x2d9aa2=new Set(_0x30cb02['keys']());for(const _0x5edfea of _0x2c477f['keys']())_0x2d9aa2['delete'](_0x5edfea);this['_markSuggestions'](_0x3c6b99,_0x2d9aa2),this['_fixObsoleteTags'](_0x3c6b99),_0x3c6b99=this['_removeMissingPairs'](_0x3c6b99),_0x3c6b99=this['_markMismatchedRemovedTags'](_0x3c6b99),_0x3c6b99=this['_removeUnsupportedChanges'](_0x3c6b99);const {root:_0x3e8b09,changes:_0xa7c386}=this['_makeModelFromTape'](_0x3c6b99,_0x3c2269,_0x272fa5);_0x3d7fd5['model'][_0x272fa5]=_0x3e8b09;const _0x482655=_0x285dd0['get'](_0x272fa5);if(_0x482655){const _0x3a24d5=_0x3c2269['get'](_0x482655['userId']),_0x4feaff=new G({'author':_0x3a24d5,'type':_0x482655['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x272fa5});_0xa7c386['unshift'](_0x4feaff),_0x3d7fd5['attributes'][_0x272fa5]['revisionHistoryAttachChange']=_0x4feaff['id'];}_0x3d7fd5['changes']=_0x3d7fd5['changes']['concat'](_0xa7c386);}return _0x3d7fd5;}['_markMarkers'](_0x43fab9,_0x37866c){for(let _0x325b8e=0x0;_0x325b8e<_0x43fab9['length'];_0x325b8e++)for(const [_0x503a64,_0x177085]of _0x37866c)!_0x177085['isCollapsed']&&_0x177085['start']['isEqual'](_0x43fab9[_0x325b8e]['previousPosition'])&&_0x43fab9[_0x325b8e]['markersStart']['push'](_0x503a64),_0x177085['end']['isEqual'](_0x43fab9[_0x325b8e]['nextPosition'])&&_0x43fab9[_0x325b8e]['markersEnd']['push'](_0x503a64);}['_joinTapes'](_0x38d414,_0x41a0a3){let _0x469b24=[],_0x41e033=0x0,_0x205a87=0x0;for(;_0x41e033<_0x38d414['length']||_0x205a87<_0x41a0a3['length'];){const _0x612627=_0x38d414[_0x41e033]||{},_0x5b0aa6=_0x41a0a3[_0x205a87]||{};if(_0x612627['id']==_0x5b0aa6['id'])_0x41e033++,_0x205a87++,_0x469b24['push'](_0x612627);else{if(_0x5b0aa6['isRemoved']&&_0x612627['isAdded']){const {commonTape:_0x24fd52,iEnd:_0x2679d9,jEnd:_0x37152d}=this['_threeWayMerge'](_0x38d414,_0x41e033,_0x41a0a3,_0x205a87);_0x469b24=_0x469b24['concat'](_0x24fd52),_0x41e033=_0x2679d9,_0x205a87=_0x37152d;}else _0x5b0aa6['isRemoved']?(_0x205a87++,_0x469b24['push'](_0x5b0aa6)):(_0x41e033++,_0x469b24['push'](_0x612627));}}return _0x469b24;}['_markSuggestions'](_0x1ea2ee,_0x5546f3){const _0x1fae5a=[];for(let _0x500bb0=0x0;_0x500bb0<_0x1ea2ee['length'];_0x500bb0++){for(let _0x26412d=0x0;_0x26412d<_0x1ea2ee[_0x500bb0]['markersStart']['length'];_0x26412d++){const _0x13b972=_0x1ea2ee[_0x500bb0]['markersStart'][_0x26412d];if(!_0x5546f3['has'](_0x13b972))continue;const {group:_0xc84c1f,type:_0x1e103c,authorId:_0x475c5d}=_0x23b7c3(_0x13b972);'revision-suggestion'!=_0xc84c1f||'insertion'!=_0x1e103c&&'deletion'!=_0x1e103c||(_0x1fae5a['unshift']({'type':_0x1e103c,'name':_0x13b972,'userId':_0x475c5d}),_0x1ea2ee[_0x500bb0]['markersStart']['splice'](_0x26412d,0x1),_0x26412d--);}_0x3c67d6(_0x1ea2ee[_0x500bb0]);for(let _0x4649bb=0x0;_0x4649bb<_0x1ea2ee[_0x500bb0]['markersEnd']['length'];_0x4649bb++){const _0x407f91=_0x1ea2ee[_0x500bb0]['markersEnd'][_0x4649bb];if(!_0x5546f3['has'](_0x407f91))continue;const {group:_0x512628,type:_0x1c0312}=_0x23b7c3(_0x407f91);if('revision-suggestion'!=_0x512628||'insertion'!=_0x1c0312&&'deletion'!=_0x1c0312)continue;_0x1ea2ee[_0x500bb0]['markersEnd']['splice'](_0x4649bb,0x1),_0x4649bb--;const _0xcb8cf=_0x1fae5a['findIndex'](_0x39b83e=>_0x39b83e['name']==_0x407f91);_0xcb8cf>-0x1&&_0x1fae5a['splice'](_0xcb8cf,0x1);}}function _0x23b7c3(_0x3b6828){const _0x2877d1=_0x3b6828['split'](':');return{'group':_0x2877d1[0x0],'type':_0x2877d1[0x1],'subType':_0x2877d1['length']>=0x5?_0x2877d1[0x2]:null,'id':_0x2877d1['length']<0x5?_0x2877d1[0x2]:_0x2877d1[0x3],'authorId':_0x2877d1['length']<0x5?_0x2877d1[0x3]:_0x2877d1[0x4],'markerCount':0x6==_0x2877d1['length']?_0x2877d1[0x5]:null};}function _0x3c67d6(_0x947b19){for(let _0x42cce3=0x0;_0x42cce3<_0x1fae5a['length'];_0x42cce3++){if(_0x947b19['isAdded']&&'insertion'==_0x1fae5a[_0x42cce3]['type']&&_0x947b19['isAdded']['userId']==_0x1fae5a[_0x42cce3]['userId'])return _0x947b19['isAddSuggestion']=_0x1fae5a[_0x42cce3],void delete _0x947b19['isAdded'];if(!_0x947b19['isAdded']&&!_0x947b19['isRemoved']&&'deletion'==_0x1fae5a[_0x42cce3]['type'])return void(_0x947b19['isRemoveSuggestion']=_0x1fae5a[_0x42cce3]);}}}['_setDistance'](_0x28c578,_0x5452a9){let _0x5ce347=0x0,_0x27812e=!0x1;const _0x4a3fb8=new Map();for(const _0x41931d of _0x28c578)_0x41931d[_0x5452a9]?_0x27812e&&(_0x5ce347++,_0x27812e=!0x1):(_0x5ce347++,_0x27812e=!0x0),_0x4a3fb8['set'](_0x41931d['id'],_0x5ce347);for(let _0x41a55d=0x0;_0x41a55d<_0x28c578['length'];_0x41a55d++){if('isRemoved'==_0x5452a9&&_0x28c578[_0x41a55d]['isAdded']||'isAdded'==_0x5452a9&&_0x28c578[_0x41a55d]['isRemoved'])continue;if('text'==_0x28c578[_0x41a55d]['type']){_0x28c578[_0x41a55d]['distance']=0x0;continue;}const _0x15518d=_0x4a3fb8['get'](_0x28c578[_0x41a55d]['pairId']),_0x1c92f4=_0x4a3fb8['get'](_0x28c578[_0x41a55d]['id']);_0x28c578[_0x41a55d]['distance']=_0x15518d-_0x1c92f4;}}['_getRevisionsRange'](_0x1052aa,_0x20492f,_0x3f8e8e=!0x1){const _0x555963=[];let _0x21218a=this['repository']['getIndex'](_0x1052aa),_0x196bd9=this['repository']['getIndex'](_0x20492f);for(-0x1==_0x196bd9&&(_0x196bd9=this['repository']['_revisions']['length'],_0x3f8e8e=!0x1);_0x21218a<_0x196bd9;)_0x555963['push'](this['repository']['getRevision'](_0x21218a)),_0x21218a++;return _0x3f8e8e&&_0x555963['push'](this['repository']['getRevision'](_0x21218a)),_0x555963;}['_threeWayMerge'](_0x3f3c34,_0x1ee6b2,_0x141254,_0x53dc16){const _0x1e4151=this['editor']['model']['schema'];let _0x39554d=_0x1ee6b2;for(;_0x3f3c34[_0x39554d]&&_0x3f3c34[_0x39554d]['isAdded'];)_0x39554d++;let _0x186d14=_0x53dc16;for(;_0x141254[_0x186d14]&&_0x141254[_0x186d14]['isRemoved'];)_0x186d14++;_0x5c0d7a(_0x3f3c34,_0x1ee6b2,_0x39554d),_0x5c0d7a(_0x141254,_0x53dc16,_0x186d14);const _0x56f765=_0x141254['slice'](_0x53dc16,_0x186d14)['concat'](_0x3f3c34['slice'](_0x1ee6b2,_0x39554d));return _0x56f765['sort']((_0x157342,_0x1fadb2)=>_0x157342['side']!=_0x1fadb2['side']?_0x157342['side']-_0x1fadb2['side']:_0x157342['level']!=_0x1fadb2['level']?_0x157342['level']-_0x1fadb2['level']:_0x157342['distance']!=_0x1fadb2['distance']?_0x1fadb2['distance']-_0x157342['distance']:!!_0x157342['isAdded']!=!!_0x1fadb2['isAdded']?-0x1==_0x157342['side']||0x0==_0x157342['side']?_0x157342['isAdded']?-0x1:0x1:_0x157342['isAdded']?0x1:-0x1:_0x157342['index']-_0x1fadb2['index']),{'commonTape':_0x56f765,'iEnd':_0x39554d,'jEnd':_0x186d14};function _0x5c0d7a(_0x485f8d,_0x252675,_0x3feb84){let _0x5a241f=-0x1,_0x2bdff9=Number['POSITIVE_INFINITY'],_0x1744f0=!0x0;for(let _0x212b69=_0x252675;_0x212b69<_0x3feb84;_0x212b69++)if(_0x1e4151['isInline'](_0x485f8d[_0x212b69]['item'])||(_0x1744f0=!0x1),_0x485f8d[_0x212b69]['item']['startIndex']<_0x252675&&(_0x5a241f=_0x212b69),_0x485f8d[_0x212b69]['item']['endIndex']>=_0x3feb84){_0x2bdff9=_0x212b69;break;}_0x1744f0&&(_0x5a241f=_0x3feb84-0x1);for(let _0x540874=_0x252675;_0x540874<_0x3feb84;_0x540874++)_0x485f8d[_0x540874]['side']=_0x540874<=_0x5a241f?-0x1:_0x540874<_0x2bdff9?0x0:0x1,_0x485f8d[_0x540874]['index']=_0x540874;let _0x316143=0x0;for(let _0x32b4c3=_0x252675;_0x32b4c3<=_0x5a241f;_0x32b4c3++)0x0==_0x485f8d[_0x32b4c3]['distance']?_0x485f8d[_0x32b4c3]['level']=_0x316143:(_0x316143++,_0x485f8d[_0x32b4c3]['level']=_0x316143,_0x316143++);for(let _0x243c87=_0x252675;_0x243c87<_0x3feb84;_0x243c87++)0x0==_0x485f8d[_0x243c87]['side']&&(_0x485f8d[_0x243c87]['level']=_0x316143);_0x316143=0x0;for(let _0x2f6441=_0x3feb84-0x1;_0x2f6441>=_0x2bdff9;_0x2f6441--)0x0==_0x485f8d[_0x2f6441]['distance']?_0x485f8d[_0x2f6441]['level']=_0x316143:(_0x316143--,_0x485f8d[_0x2f6441]['level']=_0x316143,_0x316143--);}}['_fixObsoleteTags'](_0x52890b){const _0xefaa39=new Map(),_0x3964d5=this['editor']['model']['schema'];for(let _0x111d14=0x1;_0x111d14<_0x52890b['length'];_0x111d14++){let _0x4e9867,_0x227dcb,_0xa27b95;const _0x70bee3=_0x52890b[_0x111d14],_0x119669=_0x52890b[_0x111d14-0x1];if('text'==_0x70bee3['type'])continue;if(_0x70bee3['type']!=_0x119669['type'])continue;if(!_0x3964d5['isBlock'](_0x119669['item'])||_0x3964d5['isLimit'](_0x119669['item']))continue;if(!_0x3964d5['isBlock'](_0x70bee3['item'])||_0x3964d5['isLimit'](_0x70bee3['item']))continue;if((_0x52890b[_0x111d14]['isAdded']||_0x52890b[_0x111d14]['isAddSuggestion'])&&_0x52890b[_0x111d14-0x1]['isRemoved'])_0x4e9867=_0x52890b[_0x111d14],_0x227dcb=_0x52890b[_0x111d14-0x1],_0xa27b95=_0x111d14-0x1;else{if(!_0x52890b[_0x111d14]['isRemoved']||!_0x52890b[_0x111d14-0x1]['isAdded']&&!_0x52890b[_0x111d14-0x1]['isAddSuggestion'])continue;_0x4e9867=_0x52890b[_0x111d14-0x1],_0x227dcb=_0x52890b[_0x111d14],_0xa27b95=_0x111d14;}const _0x2e492a=_0x4e9867['level']==_0x227dcb['level'],_0x10b01c=Math['abs'](_0x4e9867['level'])<Math['abs'](_0x227dcb['level'])&&0x0==_0x227dcb['distance'];(_0x2e492a||_0x10b01c)&&(_0xefaa39['set'](_0x227dcb['id'],_0x4e9867['id']),_0x52890b['splice'](_0xa27b95,0x1),_0x111d14--,_0x4e9867['isAdded']=!0x1);}for(let _0xc3d29d=0x0;_0xc3d29d<_0x52890b['length'];_0xc3d29d++)_0xefaa39['has'](_0x52890b[_0xc3d29d]['pairId'])&&(_0x52890b[_0xc3d29d]['pairId']=_0xefaa39['get'](_0x52890b[_0xc3d29d]['pairId']));}['_removeMissingPairs'](_0x1e41bd){const _0x339387=new Set(_0x1e41bd['map'](_0xea6c23=>_0xea6c23['id']));for(let _0x10b035=0x0;_0x10b035<_0x1e41bd['length'];_0x10b035++)_0x339387['has'](_0x1e41bd[_0x10b035]['pairId'])||0x0==_0x1e41bd[_0x10b035]['distance']||(_0x1e41bd[_0x10b035]['isIncorrect']=!0x0);return _0x1e41bd['filter'](_0x583083=>!_0x583083['isIncorrect']);}['_markMismatchedRemovedTags'](_0x50ee02){const _0x4b164c=new Set();for(let _0x58ff71=0x0;_0x58ff71<_0x50ee02['length'];_0x58ff71++){if(_0x4b164c['has'](_0x50ee02[_0x58ff71]['id'])&&_0x50ee02[_0x58ff71]['isRemoved']&&(_0x50ee02[_0x58ff71]['isIncorrect']=!0x0),_0x50ee02[_0x58ff71]['isIncorrect'])continue;if(0x0==_0x50ee02[_0x58ff71]['distance'])continue;if('elementStart'!=_0x50ee02[_0x58ff71]['type'])continue;if(null==_0x50ee02[_0x58ff71]['pairId'])continue;let _0x3bb9ff=_0x58ff71+0x1,_0x15def4=0x0;for(;_0x50ee02[_0x3bb9ff]['id']!=_0x50ee02[_0x58ff71]['pairId'];)'elementStart'==_0x50ee02[_0x3bb9ff]['type']?_0x15def4++:'elementEnd'==_0x50ee02[_0x3bb9ff]['type']&&_0x15def4--,_0x3bb9ff++;if(0x0!=_0x15def4){if(_0x50ee02[_0x58ff71]['isRemoved'])_0x50ee02[_0x58ff71]['isIncorrect']=!0x0;else{for(;_0x3bb9ff!=_0x58ff71;)_0x50ee02[_0x3bb9ff]['isRemoved']&&0x0!=_0x50ee02[_0x3bb9ff]['distance']&&(_0x50ee02[_0x3bb9ff]['isIncorrect']=!0x0,_0x4b164c['add'](_0x50ee02[_0x3bb9ff]['pairId'])),_0x3bb9ff--;}}}return _0x50ee02['filter'](_0x34997d=>!_0x34997d['isIncorrect']);}['_removeUnsupportedChanges'](_0x1bd19a){const _0x2eae0a=this['editor']['model']['schema'];for(let _0x1b7ef4=0x0;_0x1b7ef4<_0x1bd19a['length'];_0x1b7ef4++){if(!(_0x1bd19a[_0x1b7ef4]['isAdded']||_0x1bd19a[_0x1b7ef4]['isAddSuggestion']||_0x1bd19a[_0x1b7ef4]['isRemoved']||_0x1bd19a[_0x1b7ef4]['isRemoveSuggestion']))continue;if(0x0==_0x1bd19a[_0x1b7ef4]['distance'])continue;const _0x3ef386=_0x1bd19a[_0x1b7ef4]['item'];_0x2eae0a['isBlock'](_0x3ef386)||_0x2eae0a['isLimit'](_0x3ef386)||(_0x1bd19a[_0x1b7ef4]['isAdded']&&delete _0x1bd19a[_0x1b7ef4]['isAdded'],_0x1bd19a[_0x1b7ef4]['isAddSuggestion']&&delete _0x1bd19a[_0x1b7ef4]['isAddSuggestion'],_0x1bd19a[_0x1b7ef4]['isRemoveSuggestion']&&delete _0x1bd19a[_0x1b7ef4]['isRemoveSuggestion'],_0x1bd19a[_0x1b7ef4]['isRemoved']&&(_0x1bd19a[_0x1b7ef4]['isIncorrect']=!0x0));}return _0x1bd19a['filter'](_0x4f89f9=>!_0x4f89f9['isIncorrect']);}['_makeModelFromTape'](_0x55a6ae,_0x2fa714,_0xc6a9ae){const _0x35f3a9=new _0x2b70b9(),_0xe5bf13=[],_0x441b1d=new Map(),_0x2b9b22=this['editor']['model'],_0x3caf66=_0x2b9b22['schema'],_0x39d9af=[_0x35f3a9],_0xf262f={},_0x9420e5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xaefb8f=null;const _0x1717d8=[0x0];for(let _0x2a61d4=0x0;_0x2a61d4<_0x55a6ae['length'];_0x2a61d4++)if('elementStart'===_0x55a6ae[_0x2a61d4]['type']){_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8);const _0x452332=new _0x5b2de1(_0x55a6ae[_0x2a61d4]['item']['name'],_0x55a6ae[_0x2a61d4]['item']['getAttributes']());_0x39d9af[0x0]['_appendChild'](_0x452332),_0x1717d8['push'](0x0),_0x39d9af['unshift'](_0x452332),_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8);}else'elementEnd'===_0x55a6ae[_0x2a61d4]['type']?(_0x39d9af['shift'](),_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8),_0x1717d8['pop'](),_0x1717d8[_0x1717d8['length']-0x1]++,_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8)):(_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8),_0xaefb8f?_0xaefb8f['_data']+=_0x55a6ae[_0x2a61d4]['item']['data']:_0xaefb8f=new _0x1ea3a8(_0x55a6ae[_0x2a61d4]['item']['data'],_0x55a6ae[_0x2a61d4]['item']['getAttributes']()),_0x55a6ae[_0x2a61d4+0x1]&&'text'===_0x55a6ae[_0x2a61d4+0x1]['type']&&_0x588bc7(_0xaefb8f,_0x55a6ae[_0x2a61d4+0x1]['item'])||(_0x39d9af[0x0]['_appendChild'](_0xaefb8f),_0xaefb8f=null),_0x1717d8[_0x1717d8['length']-0x1]+=_0x55a6ae[_0x2a61d4]['item']['offsetSize'],_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8));for(let _0x1211e4=0x0;_0x1211e4<_0x55a6ae['length'];_0x1211e4++){const _0x489ecc=_0x55a6ae[_0x1211e4]['previousPosition'],_0x5276ab=_0x55a6ae[_0x1211e4]['nextPosition'];for(const _0x1170e7 of _0x55a6ae[_0x1211e4]['markersStart'])_0x441b1d['set'](_0x1170e7,{'start':_0x489ecc,'end':null});_0x261c05('isRemoveSuggestion',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isAddSuggestion',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isRemoved',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isAdded',_0x1211e4,_0x489ecc,_0x5276ab);for(const _0x3d066e of _0x55a6ae[_0x1211e4]['markersEnd']){const _0x8b595e=_0x441b1d['get'](_0x3d066e);_0x8b595e?_0x8b595e['end']=_0x5276ab:_0x441b1d['set'](_0x3d066e,{'start':_0x5276ab,'end':_0x5276ab});}}for(const [_0x46a927,_0x109293]of _0x441b1d){const _0x13a3f3=this['editor']['model']['createRange'](_0x109293['start'],_0x109293['end']);_0x35f3a9['markers']['set'](_0x46a927,_0x13a3f3);}return _0xe5bf13['sort']((_0x4e9a76,_0x25722e)=>{const _0x1bcc3f=_0x35f3a9['markers']['get']('revision:'+_0x4e9a76['id']),_0x4ef2f1=_0x35f3a9['markers']['get']('revision:'+_0x25722e['id']);return _0x1bcc3f['start']['isBefore'](_0x4ef2f1['start'])?-0x1:_0x1bcc3f['start']['isAfter'](_0x4ef2f1['start'])?0x1:_0x1bcc3f['end']['isBefore'](_0x4ef2f1['end'])?-0x1:_0x1bcc3f['end']['isAfter'](_0x4ef2f1['end'])?0x1:'add'===_0x4e9a76['type']?-0x1:0x1;}),{'root':_0x35f3a9,'changes':_0xe5bf13};function _0x261c05(_0x2af2ba,_0x2e2fbe,_0x3b8bbb,_0x154cc4){const _0x1a6975=!!_0x55a6ae[_0x2e2fbe][_0x2af2ba],_0x37ce8d=_0x1a6975?_0x55a6ae[_0x2e2fbe][_0x2af2ba]['userId']:null,_0xff7dd3=_0x2e2fbe===_0x55a6ae['length']-0x1,_0x110116=_0x9420e5[_0x2af2ba][0x0],_0x1e6169=_0x3caf66['isObject'](_0x55a6ae[_0x2e2fbe]['item']);!_0xf262f[_0x2af2ba]&&_0x1a6975?_0xf262f[_0x2af2ba]={'start':_0x3b8bbb,'tapeItem':_0x55a6ae[_0x2e2fbe],'userId':_0x37ce8d,'type':_0x2af2ba}:_0xf262f[_0x2af2ba]&&!_0x1a6975?(_0xf262f[_0x2af2ba]['end']=_0x3b8bbb,_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]=null):_0xf262f[_0x2af2ba]&&_0x1a6975&&_0xf262f[_0x2af2ba]['userId']!==_0x37ce8d&&(_0xf262f[_0x2af2ba]['end']=_0x3b8bbb,_0x110116&&_0x110116['userId']===_0xf262f[_0x2af2ba]['userId']||_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]={'start':_0x3b8bbb,'tapeItem':_0x55a6ae[_0x2e2fbe],'userId':_0x37ce8d,'type':_0x2af2ba}),_0xf262f[_0x2af2ba]&&_0x1e6169&&('elementStart'!==_0x55a6ae[_0x2e2fbe]['type']||_0x110116&&_0x110116['userId']===_0x37ce8d||_0x9420e5[_0x2af2ba]['unshift']({'userId':_0x37ce8d,'object':_0x55a6ae[_0x2e2fbe]['item'],'change':_0xf262f[_0x2af2ba]}),'elementEnd'===_0x55a6ae[_0x2e2fbe]['type']&&_0x110116&&_0x110116['object']===_0x55a6ae[_0x2e2fbe]['item']&&(_0x9420e5[_0x2af2ba]['shift'](),_0xf262f[_0x2af2ba]=_0x110116['change'])),_0xf262f[_0x2af2ba]&&_0xff7dd3&&(_0xf262f[_0x2af2ba]['end']=_0x154cc4,_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]=null);}function _0xfee5c4({start:_0x454dbe,end:_0x369006,tapeItem:_0x31c364,userId:_0x4dcbca,type:_0x675fbf}){const _0x49ed72=_0x31c364['item'],_0x186b99=_0x2b9b22['schema']['isBlock'](_0x49ed72)&&!_0x2b9b22['schema']['isLimit'](_0x49ed72),_0x29dc42=_0x454dbe['nodeAfter']==_0x369006['parent']&&_0x369006['isAtStart'];if(_0x186b99&&_0x29dc42)return;const _0x7a91b=_0x2b9b22['createRange'](_0x454dbe,_0x369006),_0x274248=_0x2fa714['get'](_0x4dcbca),_0x3c5dfb=new G({'author':_0x274248,'type':'isAdded'==_0x675fbf||'isAddSuggestion'==_0x675fbf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x675fbf||'isRemoveSuggestion'==_0x675fbf},'createdAt':new Date(),'rootName':_0xc6a9ae});_0xe5bf13['push'](_0x3c5dfb),_0x35f3a9['markers']['set']('revision:'+_0x3c5dfb['id'],_0x7a91b);}function _0x588bc7(_0xdab3ce,_0x21e2f0){const _0x15510c=_0xdab3ce['getAttributes'](),_0xf52b0c=_0x21e2f0['getAttributes']();for(const _0xbba765 of _0x15510c){if(_0xbba765[0x1]!==_0x21e2f0['getAttribute'](_0xbba765[0x0]))return!0x1;_0xf52b0c['next']();}return _0xf52b0c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x426f5f=>{const _0x34bd51=_0x426f5f['markerName']['split'](':')[0x1],_0x3e4f30=this['_getChangeFromId'](_0x34bd51);if(!_0x3e4f30)return null;const _0x27cea9='add'==_0x3e4f30['type']?'insertion':'deletion',_0x35af2d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x27cea9];return _0x3e4f30['data']['isSuggestion']&&_0x35af2d['push']('ck-suggestion-marker-'+_0x27cea9+'-new'),this['activeChange']==_0x3e4f30&&_0x35af2d['push']('ck-suggestion-marker--active'),{'classes':_0x35af2d,'attributes':{'data-change-id':_0x34bd51}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xf0d0cf=>{_0xf0d0cf['on']('element:pre',(_0x239b85,_0x20d2a2,_0x54e42e)=>{const _0x1990b8=_0x20d2a2['viewItem']['getChild'](0x0);if(!_0x1990b8||!_0x1990b8['is']('element','code'))return;if(!_0x54e42e['consumable']['consume'](_0x1990b8,{'attributes':['vid_start','vid_end']}))return;const _0x1f95c7=_0x20d2a2['modelRange']['start']['nodeAfter'];_0x54e42e['writer']['setAttribute']('vid_start',_0x1990b8['getAttribute']('vid_start'),_0x1f95c7),_0x54e42e['writer']['setAttribute']('vid_end',_0x1990b8['getAttribute']('vid_end'),_0x1f95c7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3b9787=>{_0x3b9787['on']('element',(_0x5cb7c9,_0x4df28a,_0x15edd1)=>{if(!_0x15edd1['consumable']['consume'](_0x4df28a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4df28a['modelRange']['isCollapsed'])return;const _0x2a08aa=_0x4df28a['modelRange']['start']['nodeAfter'];_0x2a08aa['hasAttribute']('vid_start')||_0x2a08aa['hasAttribute']('vid')||(_0x15edd1['writer']['setAttribute']('vid_start',_0x4df28a['viewItem']['getAttribute']('vid_start'),_0x2a08aa),_0x15edd1['writer']['setAttribute']('vid_end',_0x4df28a['viewItem']['getAttribute']('vid_end'),_0x2a08aa));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x40fbe5=>_0x40fbe5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x567390,[,_0x761aee])=>{['vid_start','vid_end','vid']['includes'](_0x761aee)&&(_0x567390['return']=!0x0,_0x567390['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x272a40=>{_0x272a40['on']('attribute:vid',(_0x1ff14d,_0x414d2c,_0x52e82b)=>{if('\x20'!=_0x414d2c['item']['data']||_0x414d2c['item']['parent']['maxOffset']>0x1)return;if(!_0x52e82b['consumable']['consume'](_0x414d2c['item'],_0x1ff14d['name']))return;const _0x243c1e=_0x52e82b['writer'],_0x4b6a4e=_0x52e82b['mapper']['toViewRange'](_0x414d2c['range']);_0x243c1e['wrap'](_0x4b6a4e,_0x243c1e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1140c1){const _0x2e5e9d=_0x1140c1['plugins']['get']('RevisionViewer');return(_0x34b14a,_0x33359a,_0x598393)=>{const _0x460467=_0x33359a['markerName']['split'](':')[0x1],_0x3b29b7=_0x2e5e9d['_getChangeFromId'](_0x460467);if(!_0x3b29b7)return null;const _0x4a7f56='add'==_0x3b29b7['type']?'split':'merge';if(!_0x598393['consumable']['test'](_0x33359a['markerRange'],_0x34b14a['name']))return;const _0x25e47b=_0x33359a['markerRange']['getWalker'](),_0x532f17=_0x33359a['markerRange']['start'],_0x53ad4d=_0x1140c1['model']['schema'];let _0x3a82c2=null,_0x538540=null,_0x305c83=!0x1,_0x17c392=!0x1;for(const _0x42e1a4 of _0x25e47b){const _0x3a6ea0=_0x42e1a4['item'];_0x305c83=_0x305c83||_0x53ad4d['isContent'](_0x3a6ea0);const _0x284962=_0x598393['mapper']['toViewElement'](_0x3a6ea0);if(_0x284962&&_0x284962['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42e1a4['type']&&(_0x53ad4d['isBlock'](_0x3a6ea0)&&!_0x53ad4d['isLimit'](_0x3a6ea0)&&(_0x3a6ea0['nextSibling']||_0x532f17['isAtEnd']?_0x3a82c2&&_0x3a82c2['parent']==_0x3a6ea0||(_0x3a82c2=_0x3a6ea0,_0x2952c2(_0x42e1a4['previousPosition']),_0x17c392=!0x0):_0x538540=_0x538540||_0x42e1a4['previousPosition']));}function _0x2952c2(_0x143e75){const _0x47345e=_0x598393['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a7f56}),_0x20d962=_0x598393['mapper']['toViewPosition'](_0x143e75);_0x3b29b7['data']['isSuggestion']&&_0x598393['writer']['addClass']('ck-suggestion-marker-'+_0x4a7f56+'-new',_0x47345e),_0x2e5e9d['activeChange']==_0x3b29b7&&_0x598393['writer']['addClass']('ck-suggestion-marker--active',_0x47345e),_0x598393['writer']['insert'](_0x20d962,_0x47345e),_0x598393['mapper']['bindElementToMarker'](_0x47345e,_0x33359a['markerName']);}_0x305c83||_0x17c392||!_0x538540||_0x2952c2(_0x538540);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x54a8b5,_0x1d1a30,_0x137946)=>{const _0x5a2fc5=_0x137946['mapper']['markerNameToElements'](_0x1d1a30['markerName']);if(_0x5a2fc5){for(const _0x2be290 of _0x5a2fc5)(_0x2be290['hasClass']('ck-suggestion-marker-split')||_0x2be290['hasClass']('ck-suggestion-marker-merge'))&&(_0x137946['mapper']['unbindElementFromMarkerName'](_0x2be290,_0x1d1a30['markerName']),_0x137946['writer']['remove'](_0x2be290));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x40f20e,_0x66f1b0,_0x1a17a9)=>{const _0x218f55=_0x66f1b0['markerName']['split'](':')[0x1],_0x3188d6=this['_getChangeFromId'](_0x218f55);if(!_0x3188d6)return null;const _0x275bed='add'==_0x3188d6['type']?'split':'merge';if(_0x1a17a9['consumable']['test'](_0x66f1b0['markerRange'],_0x40f20e['name']))for(const _0x503fe7 of _0x66f1b0['markerRange']['getItems']()){if(!_0x503fe7['is']('element','softBreak'))continue;const _0x564703=_0x1a17a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x275bed}),_0xa90a12=_0x1a17a9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x503fe7));_0x3188d6['data']['isSuggestion']&&_0x1a17a9['writer']['addClass']('ck-suggestion-marker-'+_0x275bed+'-new',_0x564703),this['activeChange']==_0x3188d6&&_0x1a17a9['writer']['addClass']('ck-suggestion-marker--active',_0x564703),_0x1a17a9['writer']['insert'](_0xa90a12,_0x564703),_0x1a17a9['mapper']['bindElementToMarker'](_0x564703,_0x66f1b0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3dc966=>{for(const _0x50a18d of this['editor']['model']['document']['getRootNames']()){const _0x2cd69d=this['editor']['model']['document']['getRoot'](_0x50a18d),_0x329cfb=this['editor']['editing']['view']['document']['getRoot'](_0x50a18d);if(_0x329cfb){const _0x46b384=_0x2cd69d['getAttribute']('revisionHistoryAttachChange');if(_0x3dc966['removeAttribute']('data-change-id',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root-add',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root-remove',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root--active',_0x329cfb),_0x46b384){const _0x5edbae=this['_getChangeFromId'](_0x46b384);if(!_0x5edbae)return null;_0x3dc966['setAttribute']('data-change-id',_0x46b384,_0x329cfb),_0x3dc966['addClass']('ck-revision-history-root-'+_0x5edbae['type'],_0x329cfb),this['activeChange']==_0x5edbae&&_0x3dc966['addClass']('ck-revision-history-root--active',_0x329cfb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x15c36f=>'revision-comment:'+_0x15c36f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c6e94=>'revision-suggestion:'+_0x3c6e94,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1c00d3=>({'name':'suggestion:'+_0x1c00d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x40ddee=>{const _0x4d2366=_0x40ddee['markerName']['split'](':')[0x1];return'insertion'!=_0x4d2366&&'deletion'!=_0x4d2366?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4d2366]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x9834ba,_0x309df8,_0x445d34)=>{const _0x283416=_0x445d34['mapper']['markerNameToElements'](_0x309df8['markerName']);if(_0x283416){for(const _0x494305 of _0x283416)_0x494305['is']('uiElement')&&(_0x445d34['mapper']['unbindElementFromMarkerName'](_0x494305,_0x309df8['markerName']),_0x445d34['writer']['remove'](_0x494305));}},{'priority':'high'});}['_getChangeFromId'](_0x5d67ad){return this['_changeIdToChange']['get'](_0x5d67ad);}['_getViewForChange'](_0x11fd05){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x11fd05),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x470fb2,_0x50ef99,_0x3a74eb,_0x107c2a)=>{_0x107c2a&&this['_balloon']['remove'](_0x107c2a),_0x3a74eb&&(this['_balloon']['add']({'view':_0x3a74eb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x330328=this['editor']['editing'],_0x3174d3=this['_getChangeFromId'](_0x3a74eb['changeId']);let _0x39acfe;if(_0x3174d3['data']['isOnRoot']){const _0x226f90=_0x330328['view']['getDomRoot'](_0x3174d3['rootName']);_0x39acfe=Array['from'](_0x226f90['getClientRects']());}else{const _0x2217f4=this['editor']['model']['markers']['get']('revision:'+_0x3a74eb['changeId']);_0x39acfe=Array['from'](_0x330328['mapper']['markerNameToElements'](_0x2217f4['name']))['map'](_0x4323fa=>_0x330328['view']['domConverter']['mapViewToDom'](_0x4323fa))['map'](_0x2c22ce=>Array['from'](_0x2c22ce['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39acfe[0x0];return _0x39acfe['find'](_0xd50560=>_0xd50560['top']-0x3<=this['_activeViewTarget']['y']&&_0xd50560['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xd50560['left']-0x3<=this['_activeViewTarget']['x']&&_0xd50560['right']+0x3>=this['_activeViewTarget']['x'])||_0x39acfe[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4bfdbf,_0x47a656,_0x145a5b,_0x4dc5c3)=>{this['activeView']=_0x145a5b?this['_getViewForChange'](_0x145a5b):null,this['editor']['model']['change'](()=>{const _0x1c4b2f=this['editor']['editing'];_0x4dc5c3&&(_0x4dc5c3['data']['isOnRoot']?_0x1c4b2f['view']['change'](_0x1ef3fd=>{_0x1ef3fd['removeClass']('ck-revision-history-root--active',_0x1c4b2f['view']['document']['getRoot'](_0x4dc5c3['rootName']));}):_0x1c4b2f['reconvertMarker']('revision:'+_0x4dc5c3['id'])),_0x145a5b&&(_0x145a5b['data']['isOnRoot']?_0x1c4b2f['view']['change'](_0x54dcf0=>{_0x54dcf0['addClass']('ck-revision-history-root--active',_0x1c4b2f['view']['document']['getRoot'](_0x145a5b['rootName']));}):_0x1c4b2f['reconvertMarker']('revision:'+_0x145a5b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x101129,_0x1ecb7b)=>{if(this['activeChange'])return;const _0x18a9b2=this['_findChangeIdFromDomTarget'](_0x1ecb7b['target']),_0x1955f7=this['_changeIdToChange']['get'](_0x18a9b2);_0x1955f7?(this['_activeViewTarget']={'x':_0x1ecb7b['domEvent']['x'],'y':_0x1ecb7b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1955f7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x48ff06,_0x1169fb)=>{const _0x57fb32=this['_findChangeIdFromDomTarget'](_0x1169fb['target']),_0x30cb98=this['_changeIdToChange']['get'](_0x57fb32);_0x30cb98?(this['_activeViewTarget']={'x':_0x1169fb['domEvent']['x'],'y':_0x1169fb['domEvent']['y']},_0x30cb98===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x30cb98):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x37d070){do{const _0x122c1e=_0x37d070['getAttribute']('data-change-id');if(_0x122c1e)return _0x122c1e;_0x37d070=_0x37d070['parent'];}while(_0x37d070);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ae615=>{for(const _0x12af95 of this['editor']['model']['markers'])_0x3ae615['removeMarker'](_0x12af95);});}}function Q(_0x65ddec,_0x311f55){return(_0x40a907,_0x5d2cd6,_0x1c0351)=>{if(!_0x1c0351['consumable']['test'](_0x5d2cd6['markerRange'],_0x40a907['name']))return;const _0x11915b=_0x5d2cd6['markerRange']['getWalker'](),_0x8684e8=_0x5d2cd6['markerRange']['start'],_0x7a13a2=_0x65ddec['model']['schema'];let _0x3feb14=null,_0x14b1bf=null,_0x5b5808=!0x1,_0x1b5423=!0x1;for(const _0x1b1924 of _0x11915b){const _0x3b6b59=_0x1b1924['item'];_0x5b5808=_0x5b5808||_0x7a13a2['isContent'](_0x3b6b59);const _0x3db15f=_0x1c0351['mapper']['toViewElement'](_0x3b6b59);if(_0x3db15f&&_0x3db15f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b1924['type']&&(_0x7a13a2['isBlock'](_0x3b6b59)&&!_0x7a13a2['isLimit'](_0x3b6b59)&&(_0x3b6b59['nextSibling']||_0x8684e8['isAtEnd']?_0x3feb14&&_0x3feb14['parent']==_0x3b6b59||(_0x3feb14=_0x3b6b59,_0x146f0d(_0x1b1924['previousPosition']),_0x1b5423=!0x0):_0x14b1bf=_0x14b1bf||_0x1b1924['previousPosition']));}function _0x146f0d(_0x44882f){const _0x30a204=_0x1c0351['mapper']['toViewPosition'](_0x44882f),_0x2acd9a=_0x1c0351['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x311f55});_0x1c0351['writer']['insert'](_0x30a204,_0x2acd9a),_0x1c0351['mapper']['bindElementToMarker'](_0x2acd9a,_0x5d2cd6['markerName']);}_0x5b5808||_0x1b5423||!_0x14b1bf||_0x146f0d(_0x14b1bf);};}class nt extends _0x2e7909{constructor(_0x1dc008){super(_0x1dc008);const _0x157456=_0x1dc008['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x157456,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x157456,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5e8550=this['editor'],_0x447682=_0x5e8550['plugins']['get'](l),_0x20b56f=_0x447682['isReady']?_0x447682['diff']['newRevisionId']:null;_0x5e8550['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x20b56f);}['refresh'](){const {isReady:_0x26c49a,isEnabled:_0x3382ca,repository:_0x39de47,diff:_0xa92ba6}=this['editor']['plugins']['get'](l),_0x1edae0=_0xa92ba6&&_0x39de47['getLaterVisibleRevision'](_0xa92ba6['newRevisionId']);this['isEnabled']=_0x26c49a&&_0x3382ca&&Boolean(_0x1edae0);}}class ot extends _0x2e7909{['_step'];constructor(_0x277181,{direction:_0x4ab045}){super(_0x277181);const _0x22875a=_0x277181['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4ab045?0x1:-0x1,this['listenTo'](_0x22875a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x22875a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x22875a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x411899=this['editor'],_0x39af81=_0x411899['plugins']['get'](l),{isNavigationMode:_0x3af6da,currentChangeNumber:_0x38bb27}=_0x39af81;let _0x1ba2ee;if(_0x39af81['activeChange']=_0x3af6da?_0x39af81['diff']['changes']['get'](_0x38bb27+this['_step']):_0x39af81['diff']['changes']['first'],_0x39af81['activeChange']['data']['isOnRoot'])_0x1ba2ee=_0x411899['editing']['view']['getDomRoot'](_0x39af81['activeChange']['rootName']);else{const _0x47bd7e=_0x411899['model']['markers']['get']('revision:'+_0x39af81['activeChange']['id']);_0x1ba2ee=_0x297621(_0x411899['editing'],_0x47bd7e);}_0x1d532f({'target':_0x1ba2ee,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xb9e6f,currentChangeNumber:_0x51383c,numberOfChanges:_0x182904,isReady:_0x211e05,isEnabled:_0x3def76}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3def76&&_0x211e05&&_0x182904)&&(!_0xb9e6f||(0x1===this['_step']?_0x51383c<_0x182904-0x1:_0x51383c>0x0));}}class Ri extends _0x4d3a60{constructor(_0x2524f9){super(_0x2524f9);const _0xfe26c0=this['bindTemplate'],_0x1f2ae4=new _0x164f62(_0x2524f9),_0x3938a2=new _0x164f62(_0x2524f9);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',(_0x4eb65d,_0x5505c7)=>_0x4eb65d&&_0x5505c7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x49d209,_0x1fde09,_0x5245dc,_0x167023)=>{if(!_0x49d209)return R(_0x2524f9,'Loading...');if(!_0x5245dc)return R(_0x2524f9,'No\x20changes');const _0x2aefb2=R(_0x2524f9,'NUMBER_OF_CHANGES',_0x5245dc);return _0x167023?R(_0x2524f9,'X_OF_Y_CHANGES',[_0x1fde09+0x1,_0x5245dc]):_0x2aefb2;}),_0x1f2ae4['set']({'label':R(_0x2524f9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x389874}),_0x3938a2['set']({'label':R(_0x2524f9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x715628}),_0x1f2ae4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3938a2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1f2ae4['on']('execute',()=>this['fire']('execute','backward')),_0x3938a2['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',_0xfe26c0['if']('_isStatusLabelVisible','ck-hidden',_0x193e5e=>!_0x193e5e)]},'children':[{'text':_0xfe26c0['to']('isNavigationMode',_0x446b7e=>_0x446b7e?R(_0x2524f9,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2524f9,'Total')+':\x20')}]},{'text':_0xfe26c0['to']('_statusText')}]},new _0x51fc4c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1f2ae4,_0x3938a2]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1d82bd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47decd=this['editor']['editing']['view'];_0x47decd['change'](_0x394e6d=>{for(const _0x39a58a of _0x47decd['document']['roots'])_0x394e6d['addClass'](ge,_0x39a58a);});}['hide'](){const _0x426e15=this['editor']['editing']['view'];_0x426e15['change'](_0x2cc19b=>{for(const _0x422d00 of _0x426e15['document']['roots'])_0x2cc19b['removeClass'](ge,_0x422d00);});}}class u extends _0x1d82bd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x2b73fd=this['editor'],_0x3a8589=_0x2b73fd['plugins']['get'](l),_0x3c0770=_0x2b73fd['plugins']['get'](ji);_0x2b73fd['ui']['componentFactory']['add']('exitToEditing',_0x5e29ea=>{const _0x147765=new _0x164f62(_0x5e29ea);return _0x147765['set']({'label':R(_0x5e29ea,'Back\x20to\x20editing'),'icon':_0x2c7774,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x147765,'execute',()=>{_0x2b73fd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x147765;}),_0x2b73fd['ui']['componentFactory']['add']('restoreRevision',_0x14b805=>{const _0x180329=new _0x164f62(_0x14b805);return _0x180329['set']({'label':R(_0x14b805,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x180329['bind']('isEnabled')['to'](_0x2b73fd['commands']['get']('restoreRevision')),this['listenTo'](_0x180329,'execute',()=>_0x2b73fd['execute']('restoreRevision')),_0x180329;}),_0x2b73fd['ui']['componentFactory']['add']('changesNavigation',_0x2a9c53=>{const _0x32dd1c=new Ri(_0x2a9c53),_0x196c6c=_0x2b73fd['commands']['get']('showPreviousChange'),_0x8c16d5=_0x2b73fd['commands']['get']('showNextChange');return _0x32dd1c['bind']('isBackwardNavigationEnabled')['to'](_0x196c6c,'isEnabled'),_0x32dd1c['bind']('isForwardNavigationEnabled')['to'](_0x8c16d5,'isEnabled'),_0x32dd1c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3a8589),this['listenTo'](_0x32dd1c,'execute',(_0x48b460,_0x12a341)=>{_0x2b73fd['execute']('forward'===_0x12a341?'showNextChange':'showPreviousChange');}),_0x32dd1c;}),_0x3c0770['show'](),_0x3a8589['on']('change:isReady',(_0x531302,_0x5ce263,_0x5ef3a1)=>{_0x5ef3a1?_0x3c0770['hide']():_0x3c0770['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2c73c0,_0x4935b3){super(_0x2c73c0,_0x4935b3);const _0x10c7b6=this['bindTemplate'];this['set']({'label':R(_0x2c73c0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2c73c0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x10c7b6['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x12af34=this['fieldView']['element'];this['_tooltipString']=_0x12af34['scrollWidth']>_0x12af34['clientWidth']&&_0x12af34['value']||'';}}class vi extends _0x4d3a60{constructor(_0x11bcfe,_0x9b177d,_0x4c067a){super(_0x11bcfe);const _0x2bead0=new _0x389f13();_0x2bead0['set']({'content':_0x1d2f9d,'viewBox':'0\x200\x2011\x2010'});const _0x12551a=['ck','ck-revision-history-sidebar__revision-author'];_0x4c067a&&_0x12551a['push']('ck-revision-history-sidebar__revision-author_creator');const _0xc9baf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x11bcfe,_0x4c067a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2bead0,_0x9b177d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x12551a},'children':_0xc9baf});}}function mi(_0x2bb3f8,_0x31a833){const _0x1ed806=_0x2bb3f8['bindTemplate'],_0x2036a3=_0x2bb3f8['locale'],_0x20c1e8=_0x403910(_0x2036a3);_0x20c1e8['panelPosition']='sw';const _0x42cb1b=function(_0x3d9942,_0x56935d){const _0x462560=function(_0x6809d1,_0x5401eb){const _0x3bc813=_0x6809d1['locale'],_0x12361f={'Compare\x20against\x20selected':R(_0x3bc813,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3bc813,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3bc813,'Restore\x20this\x20revision')};return _0x5401eb['map'](_0x4b1064=>{const _0x47f0d7=_0x12361f[_0x4b1064['name']];return _0x47f0d7&&_0x47f0d7!==_0x4b1064['name']&&(_0x4b1064['name']=_0x47f0d7),_0x4b1064;});}(_0x3d9942,_0x56935d),_0x7ab24f=new _0x33c442();for(const _0x38f58d of _0x462560){const _0xb4b66a={'type':'button','model':new to({'label':_0x38f58d['name'],'class':_0x38f58d['class'],'withText':!0x0,'role':'menuitem','_action':_0x38f58d['action']})};_0xb4b66a['model']['bind']('isEnabled')['to'](_0x3d9942,'isActionsDropdownOpen',_0x559ddf=>'function'!=typeof _0x38f58d['isEnabled']||(!_0x559ddf||_0x38f58d['isEnabled'](_0x3d9942))),_0x7ab24f['add'](_0xb4b66a);}return _0x7ab24f;}(_0x2bb3f8,_0x31a833);return _0x2bb3f8['bind']('isActionsDropdownOpen')['to'](_0x20c1e8,'isOpen'),_0x20c1e8['buttonView']['set']({'label':R(_0x2036a3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19cac3}),_0x20c1e8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1ed806['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1ed806['to'](_0xffcc78=>_0xffcc78['stopPropagation']())}}),_0x20c1e8['on']('execute',_0x3e6f65=>{_0x2bb3f8['isReady']&&'function'==typeof _0x3e6f65['source']['_action']&&_0x3e6f65['source']['_action'](_0x2bb3f8);}),_0x519f9e(_0x20c1e8,_0x42cb1b,{'role':'menu'}),_0x20c1e8['listenTo'](_0x2bb3f8,'change:isActionsDropdownOpen',(_0x1078be,_0x1417d4,_0x3a3e85)=>{if(_0x3a3e85)for(const _0x5ee194 of _0x20c1e8['listView']['items']){const _0x4128c4=_0x5ee194['children']['first'],_0x488c3b=_0x31a833['find'](_0x53ddac=>_0x53ddac['action']===_0x4128c4['_action'])['isVisible'];_0x5ee194['isVisible']=void 0x0===_0x488c3b||_0x488c3b(_0x2bb3f8);}}),_0x20c1e8;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x3a5a4b(_0x4d3a60){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2cb575,_0x7809e8,_0x568175,_0x33b544){super(_0x2cb575);const _0xd6e52b=this['bindTemplate'],_0x2050c7=function(_0x3e9be4,_0x4afaf2){const _0x3fe06e=Array['from'](_0x4afaf2['authors'])['filter'](_0x845ce2=>_0x845ce2!=_0x4afaf2['creator']);return _0x4afaf2['creator']&&_0x3fe06e['unshift'](_0x4afaf2['creator']),_0x3fe06e['map'](_0x4d1993=>new vi(_0x3e9be4,_0x4d1993,_0x4d1993==_0x4afaf2['creator']));}(_0x2cb575,_0x7809e8);this['id']=_0x7809e8['id'],this['_revision']=_0x7809e8,this['_requireRevisionName']=_0x33b544,this['bind']('name','createdAt')['to'](_0x7809e8),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5d2a1d=>{return _0x4e745b=_0x2cb575['uiLanguage'],(_0x38a852=_0x5d2a1d)['toLocaleDateString'](_0x4e745b,{'month':'long','day':'numeric'})+',\x20'+_0x38a852['toLocaleTimeString'](_0x4e745b,{'hour':'numeric','minute':'numeric'});var _0x4e745b,_0x38a852;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x2cb575,_0x128517),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2569f8=>_0x2569f8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bf8e3,_0x3fb1b0)=>_0x4bf8e3&&_0x3fb1b0),this['revisionActionsView']=_0x568175&&_0x568175['length']?mi(this,_0x568175):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xd6e52b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xd6e52b['if']('isEnabled','ck-disabled',_0x34e4c2=>!_0x34e4c2),_0xd6e52b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xd6e52b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xd6e52b['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':_0xd6e52b['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':_0x2050c7}]},this['revisionActionsView']],'on':{'click':_0xd6e52b['to'](_0x1b2e87=>{_0x1b2e87['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4b18ac=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4b18ac,'change',()=>{this['_requireRevisionName']&&!_0x4b18ac['value']||this['fire']('setName',{'id':this['id'],'name':_0x4b18ac['value']}),_0x4b18ac['value']||(_0x4b18ac['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x39cd0b,_0x5770bb){const _0x29c379=_0x1970ec['fromJSDate'](_0x39cd0b)['setLocale'](_0x5770bb),_0x238534=_0x1970ec['local'](),_0x11c21b=_0x238534['minus']({'days':0x1})['startOf']('day');let _0x33570a,_0x347885;return _0x29c379['hasSame'](_0x238534,'day')?(_0x33570a=_0x29c379['startOf']('day')['toJSDate'](),_0x347885=_0x29c379['toRelativeCalendar']()):_0x29c379['hasSame'](_0x11c21b,'day')?(_0x33570a=_0x11c21b['toJSDate'](),_0x347885=_0x29c379['toRelativeCalendar']()):_0x29c379['hasSame'](_0x238534,'week')?(_0x33570a=_0x29c379['startOf']('week')['toJSDate'](),_0x347885=_0x29c379['weekdayLong']||''):_0x29c379['hasSame'](_0x238534,'year')?(_0x33570a=_0x29c379['startOf']('month')['toJSDate'](),_0x347885=_0x29c379['monthLong']||''):(_0x33570a=_0x29c379['startOf']('year')['toJSDate'](),_0x347885=String(_0x29c379['year'])),{'startDate':_0x33570a,'localizedPeriodName':_0x347885};}class fi extends _0x4d3a60{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x57ffe7,_0x4004bf,_0x10403b,_0x2a4a6f){super(_0x57ffe7);const _0x54e304=bi(_0x4004bf,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4004bf,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x10403b,this['_requireRevisionName']=_0x2a4a6f,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':_0x54e304}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x42dc53){const _0x40b338=new pi(this['locale'],_0x42dc53,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x40b338);}['removeRevision'](_0x3169ae){const _0x136261=this['revisionViews']['find'](_0x29a495=>_0x29a495['id']===_0x3169ae['id']);this['revisionViews']['remove'](_0x136261);}}class ki extends _0x4d3a60{constructor(_0x3922d4){super(_0x3922d4);const _0x5f3eba=new _0x389f13();_0x5f3eba['content']=_0x59245b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5f3eba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3922d4,'Revision\x20history')]}]});}}class ui extends _0x4d3a60{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x8a2bbf,_0x18ba20,_0x43575b,_0x3b06d2){super(_0x8a2bbf);const _0xf3e772=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x18ba20,this['_revisionActions']=_0x43575b,this['_requireRevisionName']=_0x3b06d2,this['on']('select',(_0x4167ea,_0xf4fd37)=>{this['fire']('revisionSelected',_0xf4fd37);}),this['on']('setName',(_0x472d15,_0x9e2ee2)=>{this['fire']('revisionSetName',_0x9e2ee2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x8a2bbf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xf3e772['if']('isEnabled','ck-disabled',_0x176a34=>!_0x176a34)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x983f4 of this['_revisions'])this['_addRevision'](_0x983f4);this['_revisions']['on']('add',(_0x176866,_0x223225)=>{this['_addRevision'](_0x223225);}),this['_revisions']['on']('remove',(_0x422236,_0x5de8fd)=>{this['_removeRevision'](_0x5de8fd);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c75c5=>_0x3c75c5['revisionViews']['map'](_0x3a6aee=>_0x3a6aee))['flat']();}['selectRevision'](_0x31fa87){for(const _0x11c702 of this['revisionViews'])_0x31fa87&&_0x31fa87['id']===_0x11c702['id']?_0x11c702['select']():_0x11c702['deselect']();}['highlightRevisions'](_0x2b29f4){for(const _0x518908 of this['revisionViews'])_0x2b29f4['some'](({id:_0x1f736})=>_0x1f736===_0x518908['id'])?_0x518908['highlight']():_0x518908['unhighlight']();}['_addRevision'](_0x8f0158){const _0x23c31e=bi(_0x8f0158['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x32c24a=this['timePeriodViews']['get'](0x0);_0x32c24a&&_0x32c24a['startDate']['getTime']()===_0x23c31e['getTime']()||(_0x32c24a=new fi(this['locale'],_0x23c31e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x32c24a)),_0x32c24a['addRevision'](_0x8f0158);}['_removeRevision'](_0x179c1e){const _0xe4e8bb=bi(_0x179c1e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xe4e8bb)['removeRevision'](_0x179c1e);}['_getTimePeriodViewByStartDate'](_0x113592){return this['timePeriodViews']['find'](_0x548ae3=>_0x548ae3['startDate']['getTime']()===_0x113592['getTime']());}}class f extends _0x1d82bd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x22793d(_0x27b640){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x46d96f,_0x14b835){super(_0x14b835),this['sourceElement']=_0x46d96f,this['model']['document']['createRoot']();const _0x3df853=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3df853);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x12a88c,_0x112ae3){const _0x2e894c=new this(_0x12a88c,_0x112ae3);return await _0x2e894c['initPlugins'](),await _0x2e894c['ui']['init'](_0x12a88c),await _0x2e894c['data']['init'](_0x2e894c['config']['get']('initialData')||''),_0x2e894c['fire']('ready'),_0x2e894c;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x55ca5c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e54d3){function _0x3a2f00(_0x22ee5b){return _0x22ee5b['map'](_0x4823f0=>String['fromCharCode'](_0x4823f0))['join']('');}super(_0x5e54d3),this['result']='end',_0x5e54d3[_0x3a2f00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2f00([0x76,0x69,0x65,0x77])][_0x3a2f00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a2f00([0x61,0x75,0x74,0x6f]),_0x5e54d3[_0x3a2f00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a2f00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a2f00([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a2f00([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a2f00([0x6f,0x6b])});}}class ct extends _0x55ca5c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x5c8fa5){if(super(_0x5c8fa5),!this['editor']['config']['get']('revisionHistory'))throw new _0x368209('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x124921=>this['_showRevisionViewer']({..._0x124921,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35f903=>this['_closeRevisionViewer'](_0x35f903)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x22830f=>this['_restoreRevision'](_0x22830f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x20aaa1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x20aaa1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4fb730){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4fb730);}['getRevision'](_0x174705){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x174705);}['getRevisions'](_0x4c6f02){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c6f02||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b1a01=this['editor'],_0x32314a=_0x575c44(_0x1b1a01,d),_0x5da1d3=_0x1b1a01['plugins']['get']('RevisionTracker'),_0x82bd5=_0x1b1a01['plugins']['get']('Users')['users'];return _0x32314a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x32314a['lazyRoots'],(_0x32314a['plugins']['push'](ht,l,u,class extends _0x55ca5c{static get['requires'](){return[l,'Users'];}['init'](){const _0x27dfb1=this['editor']['plugins']['get']('Users');for(const _0x34040d of _0x82bd5)_0x34040d['isAnonymous']||_0x27dfb1['getUser'](_0x34040d['id'])||_0x27dfb1['addUser'](_0x34040d);const _0x208240=_0x5da1d3['repository']['getRevisions']();let _0x18212a=null;const _0x151975=this['editor']['plugins']['get']('RevisionViewer');_0x151975['adapter']=_0x5da1d3['adapter'],_0x151975['bind']('isEnabled')['to'](_0x5da1d3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b1a01,'isReadOnly',_0x8559af=>!_0x8559af);for(const _0x4ef9a2 of _0x208240){const _0x4df899=null===_0x4ef9a2['creator'];if(_0x4df899&&_0x4ef9a2['toVersion']===_0x4ef9a2['fromVersion'])continue;const _0x115787=_0x4ef9a2['toJSON']();_0x151975['addRevisionData'](_0x115787,(_0x3bb92c,_0x1916fc,_0x430fdb)=>{if(_0x4df899){if(_0x18212a)_0x18212a['_update'](_0x3bb92c,_0x1916fc);else{if(!_0x1916fc){const _0x348227=_0x430fdb['toJSON']();_0x348227['id']=_0x83b1c9(),_0x5da1d3['saveRevision'](_0x348227,_0x430fdb['toVersion'])['then'](_0x19b04e=>{_0x18212a=_0x19b04e;});}}}else _0x4ef9a2['_update'](_0x3bb92c,_0x1916fc);});}}},f),_0x32314a);}['_enhanceShowRevisionViewerCallback'](){const _0x45a0ea=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x10bb76=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2088e4=this['editor']['plugins']['get']('Autosave');await _0x2088e4['save']();}else await _0x10bb76['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3a0607=this['editor']['plugins']['get']('Dialog');_0x3a0607['isOpen']&&_0x3a0607['hide']();}const _0x21ff8e=this['_getRevisionViewerEditorConfig']();return _0x45a0ea(_0x21ff8e)['then'](_0x57ebed=>{return(this['_viewerEditor']=_0x57ebed,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x57ebed);})['catch'](_0x1d9842=>(console['error'](_0x1d9842),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x48fc63=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x48fc63(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x32d586=this['editor']['plugins']['get']('Annotations');_0x32d586['refreshVisibility'](),_0x32d586['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5e045a){const _0x459da7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3cf316=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x358670=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x358670,_0x5e045a)['then'](_0x2dfc64=>(_0x3cf316['style']['display']='block',_0x459da7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2dfc64));}['_closeRevisionViewer'](_0x331441){const _0x2616f2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2616f2['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x331441['destroy']();}async['_restoreRevision'](_0xc54bfe){const _0xa52604=this['editor'],_0x5dfea9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x485dc4=_0xa52604['plugins']['get']('RevisionTracker'),_0x29b564=_0xa52604['plugins']['get']('RevisionHistoryUtils'),_0x1c2863=_0x5dfea9['repository']['getRevision'](_0xc54bfe);let _0x2d4d65,_0x28efcf,_0xa07dd1;try{await _0x29b564['loadRevisionData'](_0x1c2863,this['adapter']),_0x2d4d65=_0x29b564['getRevisionDocumentData'](_0x1c2863),_0x28efcf=_0x29b564['getRevisionRootsAttributes'](_0x1c2863);}catch(_0x5b4b2d){return void console['error'](_0x5b4b2d);}_0xa52604['model']['change'](_0x36b29d=>{for(const _0x2704d0 of Array['from'](_0xa52604['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x36b29d['removeMarker'](_0x2704d0);}),_0x5dfea9['isReady']=!0x1,_0xa52604['model']['enqueueChange'](_0xb754c7=>{_0xb754c7['setSelection'](null),_0xb754c7['removeSelectionAttribute'](_0xa52604['model']['document']['selection']['getAttributeKeys']());const _0x282c03=Object['keys'](_0x2d4d65);for(const _0x44970e of _0xa52604['model']['document']['roots'])'$graveyard'!=_0x44970e['rootName']&&_0x44970e['isAttached']()&&!_0x282c03['includes'](_0x44970e['rootName'])&&_0xb754c7['detachRoot'](_0x44970e);for(const _0x1684f5 of _0x282c03){let _0x5908c6=_0xa52604['model']['document']['getRoot'](_0x1684f5);_0x5908c6&&_0x5908c6['isAttached']()||(_0x5908c6=_0xb754c7['addRoot'](_0x1684f5));const _0x395b10=_0x28efcf[_0x1684f5],_0x40b276=Object['keys'](_0x395b10),_0x20986f=_0x2d4d65[_0x1684f5];for(const _0x326175 of _0x5908c6['getAttributeKeys']())_0x40b276['includes'](_0x326175)||_0xb754c7['removeAttribute'](_0x326175,_0x5908c6);for(const _0xe250fd of _0x40b276)_0xb754c7['setAttribute'](_0xe250fd,_0x28efcf[_0x1684f5][_0xe250fd],_0x5908c6);_0xb754c7['remove'](_0xb754c7['createRangeIn'](_0x5908c6)),_0xb754c7['insert'](_0xa52604['data']['parse'](_0x20986f,_0x5908c6),_0x5908c6,0x0);}});const _0x27725e=R(_0xa52604['locale'],'Restored');if(_0x1c2863['name'])_0xa07dd1=-0x1==_0x1c2863['name']['indexOf'](_0x27725e)?_0x27725e+':\x20'+_0x1c2863['name']:_0x1c2863['name'];else _0xa07dd1=_0x27725e+':\x20'+(_0x1c2863['createdAt']['toLocaleDateString'](_0xa52604['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c2863['createdAt']['toLocaleTimeString'](_0xa52604['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x485dc4['saveRevision']({'name':_0xa07dd1}),_0x5dfea9['isReady']=!0x0,_0xa52604['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,fi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x1a8098){super(_0x1a8098),this['_revisionViewer']=_0x1a8098['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xe54502=this['_revisionsRepository']['_revisions'],_0x2b606b=this['_createRevisionActions'](),_0x229f93=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0xe54502,_0x2b606b,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',(_0x5973a0,_0x35501e)=>{_0x35501e['revisionViews']['on']('add',(_0x2aa069,_0xa058fa)=>{_0xa058fa['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)),_0x229f93['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x260d03=this['_revisionsRepository']['getRevision'](0x0);if(_0x260d03){const _0x14ca29=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x260d03['id']);this['_revisionViewer']['compare'](_0x260d03,_0x14ca29);}}['_handleRevisionSelected'](_0x3f18bb,_0xff9aae){const _0x120f59=this['_revisionsRepository']['getRevision'](_0xff9aae['id']),_0x19537e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x120f59['id']);this['_revisionViewer']['compare'](_0x120f59,_0x19537e);}['_handleRevisionSetName'](_0x22fe03,_0x15d999){this['_revisionsRepository']['getRevision'](_0x15d999['id'])['setName'](_0x15d999['name']);}['_handleDiffChange'](_0x3fd8ed,_0x213df9,_0x345f58){const _0x46ebdf=this['_revisionsRepository']['getRevisionsInDiff'](_0x345f58);_0x46ebdf['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x46ebdf),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x46ebdf[0x0]));}['_createRevisionActions'](){const _0xf8a51e=this['editor'],_0x399b82=f['availableRevisionActions'],_0x3b02e2=_0xf8a51e['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3b02e2['length'])return _0x3b02e2['map'](_0x29d238=>{const _0x58546d='string'==typeof _0x29d238?Object['assign']({},_0x399b82[_0x29d238]):_0x29d238;return _0x58546d['action']=_0x58546d['action']['bind'](this,_0xf8a51e),_0x58546d['isVisible']&&(_0x58546d['isVisible']=_0x58546d['isVisible']['bind'](this,_0xf8a51e)),_0x58546d;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3d14ba},_0x3ccc21)=>{const _0x1e8ae9=_0x3d14ba['get'](l),_0x378ec3=_0x1e8ae9['repository'];let _0x2ac34c=_0x1e8ae9['diff']['newRevisionId'],_0x7510dd=_0x3ccc21['id'];_0x378ec3['getIndex'](_0x2ac34c)>_0x378ec3['getIndex'](_0x7510dd)&&([_0x2ac34c,_0x7510dd]=[_0x7510dd,_0x2ac34c]),_0x1e8ae9['compare'](_0x2ac34c,_0x7510dd);},'isVisible':({plugins:_0x2c3ebd},_0x103844)=>{const _0x5baee0=_0x2c3ebd['get'](l);return!(_0x5baee0['repository']['getRevisionsInDiff'](_0x5baee0['diff'])['length']>0x2)&&!_0x103844['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d44d0,{id:_0x2e0bc5})=>{_0x2d44d0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e0bc5);},'isVisible':({plugins:_0x1b3752},_0x216f8e)=>!!_0x1b3752['get'](l)['repository']['getLaterVisibleRevision'](_0x216f8e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2e7404},{id:_0x5778f7,revisionNameView:_0xd60d5b})=>{const _0x98d2d4=_0x2e7404['get'](l),_0x7db665=_0x98d2d4['repository']['getEarlierVisibleRevision'](_0x5778f7);_0x98d2d4['compare'](_0x5778f7,_0x7db665),_0xd60d5b['focus'](),_0xd60d5b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xddc324,_0x31909b){super(_0xddc324),this['_view']=_0x31909b,this['_toolbarConfig']=st(_0xddc324['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x504471){const _0x227c3d=this['editor'],_0x344405=this['view'],_0x2cc4f4=_0x227c3d['editing']['view'],_0x4cc9c7=_0x344405['editable'],_0x44af2e=_0x2cc4f4['document']['getRoot']();_0x4cc9c7['name']=_0x44af2e['rootName'],_0x344405['render']();const _0x136821=_0x4cc9c7['element'];this['setEditableElement'](_0x4cc9c7['name'],_0x136821),_0x344405['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2cc4f4['attachDomRoot'](_0x136821),this['_elementReplacer']['replace'](_0x504471,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x363e39=this['view'],_0x87b682=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x87b682['detachDomRoot'](_0x363e39['editable']['name']),_0x363e39['destroy']();}['_initToolbar'](){const _0x2acb2c=this['view'];_0x2acb2c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2acb2c['stickyPanel']['limiterElement']=_0x2acb2c['element'],_0x2acb2c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5afbfd})=>_0x5afbfd),_0x2acb2c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2acb2c['toolbar']);}}class ii extends _0x536193{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x254f8d,_0x27164d,_0xa03744={}){super(_0x254f8d),this['stickyPanel']=new _0xfb8230(_0x254f8d),this['toolbar']=new _0x3814f7(_0x254f8d,{'shouldGroupWhenFull':_0xa03744['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x254f8d,_0x27164d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1264df(_0x1739b3){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x44aa00,_0x19dcf6){super(_0x19dcf6),this['sourceElement']=_0x44aa00,this['model']['document']['createRoot']();const _0x3126f2=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3126f2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x16bc13,_0x1ee6fc){const _0x3b1a7b=new this(_0x16bc13,_0x1ee6fc);return await _0x3b1a7b['initPlugins'](),await _0x3b1a7b['ui']['init'](_0x16bc13),await _0x3b1a7b['data']['init'](_0x3b1a7b['config']['get']('initialData')||''),_0x3b1a7b['fire']('ready'),_0x3b1a7b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x1d82bd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22c1a6){function _0x3c0818(_0x3d75a7){return _0x3d75a7['map'](_0x1d7737=>String['fromCharCode'](_0x1d7737))['join']('');}super(_0x22c1a6),this['result']='end',_0x22c1a6[_0x3c0818([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0818([0x76,0x69,0x65,0x77])][_0x3c0818([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0818([0x61,0x75,0x74,0x6f]),_0x22c1a6[_0x3c0818([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c0818([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0818([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c0818([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c0818([0x6f,0x6b])});}}class ht extends _0x1d82bd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x10ac83){if(super(_0x10ac83),!this['editor']['config']['get']('revisionHistory'))throw new _0x204e23('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x261df6=>this['_showRevisionViewer']({..._0x261df6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x457e42=>this['_closeRevisionViewer'](_0x457e42)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3878dc=>this['_restoreRevision'](_0x3878dc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x883b16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x883b16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f8345){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f8345);}['getRevision'](_0x412aae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x412aae);}['getRevisions'](_0x21eb01){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x21eb01||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x44f98d=this['editor'],_0x4a7e61=_0x520b83(_0x44f98d,d),_0x54a041=_0x44f98d['plugins']['get']('RevisionTracker'),_0xf8fbe8=_0x44f98d['plugins']['get']('Users')['users'];return _0x4a7e61['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a7e61['lazyRoots'],(_0x4a7e61['plugins']['push'](at,l,u,class extends _0x1d82bd{static get['requires'](){return[l,'Users'];}['init'](){const _0x25ad02=this['editor']['plugins']['get']('Users');for(const _0x5d0699 of _0xf8fbe8)_0x5d0699['isAnonymous']||_0x25ad02['getUser'](_0x5d0699['id'])||_0x25ad02['addUser'](_0x5d0699);const _0x3b2fc9=_0x54a041['repository']['getRevisions']();let _0x561c03=null;const _0x1796e8=this['editor']['plugins']['get']('RevisionViewer');_0x1796e8['adapter']=_0x54a041['adapter'],_0x1796e8['bind']('isEnabled')['to'](_0x54a041),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x44f98d,'isReadOnly',_0x2c08ba=>!_0x2c08ba);for(const _0x13e58a of _0x3b2fc9){const _0x2a8b4f=null===_0x13e58a['creator'];if(_0x2a8b4f&&_0x13e58a['toVersion']===_0x13e58a['fromVersion'])continue;const _0x4ae004=_0x13e58a['toJSON']();_0x1796e8['addRevisionData'](_0x4ae004,(_0x343e20,_0x4b7014,_0x128a4a)=>{if(_0x2a8b4f){if(_0x561c03)_0x561c03['_update'](_0x343e20,_0x4b7014);else{if(!_0x4b7014){const _0x20e66d=_0x128a4a['toJSON']();_0x20e66d['id']=_0x30afc6(),_0x54a041['saveRevision'](_0x20e66d,_0x128a4a['toVersion'])['then'](_0x29e0b2=>{_0x561c03=_0x29e0b2;});}}}else _0x13e58a['_update'](_0x343e20,_0x4b7014);});}}},f),_0x4a7e61);}['_enhanceShowRevisionViewerCallback'](){const _0x5bc629=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d5aa1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1746cd=this['editor']['plugins']['get']('Autosave');await _0x1746cd['save']();}else await _0x5d5aa1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5d5f9c=this['editor']['plugins']['get']('Dialog');_0x5d5f9c['isOpen']&&_0x5d5f9c['hide']();}const _0x4ef41e=this['_getRevisionViewerEditorConfig']();return _0x5bc629(_0x4ef41e)['then'](_0x73cca4=>{return(this['_viewerEditor']=_0x73cca4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x73cca4);})['catch'](_0x1eb681=>(console['error'](_0x1eb681),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4a29f5=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4a29f5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1a7cf6=this['editor']['plugins']['get']('Annotations');_0x1a7cf6['refreshVisibility'](),_0x1a7cf6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x36a98c){const _0x133cc3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202e95=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ee590=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4ee590,_0x36a98c)['then'](_0x511c95=>(_0x202e95['style']['display']='block',_0x133cc3['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x511c95));}['_closeRevisionViewer'](_0x4b6723){const _0x47b2c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x47b2c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4b6723['destroy']();}async['_restoreRevision'](_0x30df8c){const _0x21efe2=this['editor'],_0x2a2325=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x84eaa6=_0x21efe2['plugins']['get']('RevisionTracker'),_0xbb74f8=_0x21efe2['plugins']['get']('RevisionHistoryUtils'),_0x574be1=_0x2a2325['repository']['getRevision'](_0x30df8c);let _0x1acd5c,_0x4edea1,_0x3b8241;try{await _0xbb74f8['loadRevisionData'](_0x574be1,this['adapter']),_0x1acd5c=_0xbb74f8['getRevisionDocumentData'](_0x574be1),_0x4edea1=_0xbb74f8['getRevisionRootsAttributes'](_0x574be1);}catch(_0x2f341a){return void console['error'](_0x2f341a);}_0x21efe2['model']['change'](_0x42c0d1=>{for(const _0x1f230d of Array['from'](_0x21efe2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x42c0d1['removeMarker'](_0x1f230d);}),_0x2a2325['isReady']=!0x1,_0x21efe2['model']['enqueueChange'](_0x1a5d2c=>{_0x1a5d2c['setSelection'](null),_0x1a5d2c['removeSelectionAttribute'](_0x21efe2['model']['document']['selection']['getAttributeKeys']());const _0x4b11f7=Object['keys'](_0x1acd5c);for(const _0x3ca358 of _0x21efe2['model']['document']['roots'])'$graveyard'!=_0x3ca358['rootName']&&_0x3ca358['isAttached']()&&!_0x4b11f7['includes'](_0x3ca358['rootName'])&&_0x1a5d2c['detachRoot'](_0x3ca358);for(const _0x86367c of _0x4b11f7){let _0x445b0e=_0x21efe2['model']['document']['getRoot'](_0x86367c);_0x445b0e&&_0x445b0e['isAttached']()||(_0x445b0e=_0x1a5d2c['addRoot'](_0x86367c));const _0x39889c=_0x4edea1[_0x86367c],_0x4e3ae6=Object['keys'](_0x39889c),_0x1c8139=_0x1acd5c[_0x86367c];for(const _0x5d6055 of _0x445b0e['getAttributeKeys']())_0x4e3ae6['includes'](_0x5d6055)||_0x1a5d2c['removeAttribute'](_0x5d6055,_0x445b0e);for(const _0x284890 of _0x4e3ae6)_0x1a5d2c['setAttribute'](_0x284890,_0x4edea1[_0x86367c][_0x284890],_0x445b0e);_0x1a5d2c['remove'](_0x1a5d2c['createRangeIn'](_0x445b0e)),_0x1a5d2c['insert'](_0x21efe2['data']['parse'](_0x1c8139,_0x445b0e),_0x445b0e,0x0);}});const _0x2fe4b0=R(_0x21efe2['locale'],'Restored');if(_0x574be1['name'])_0x3b8241=-0x1==_0x574be1['name']['indexOf'](_0x2fe4b0)?_0x2fe4b0+':\x20'+_0x574be1['name']:_0x574be1['name'];else _0x3b8241=_0x2fe4b0+':\x20'+(_0x574be1['createdAt']['toLocaleDateString'](_0x21efe2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x574be1['createdAt']['toLocaleTimeString'](_0x21efe2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x84eaa6['saveRevision']({'name':_0x3b8241}),_0x2a2325['isReady']=!0x0,_0x21efe2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|