@ckeditor/ckeditor5-revision-history 47.5.0-alpha.0 → 47.5.0-alpha.1
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 +12 -12
- 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
|
-
_0x31b636(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1b783e){super(),this['id']=_0x1b783e['id']||_0x3b18bf(),this['creator']=_0x1b783e['creator']||null,this['authors']=_0x1b783e['authors']||[],this['diffData']=_0x1b783e['diffData']||null,this['toVersion']=_0x1b783e['toVersion']||0x0,this['fromVersion']=_0x1b783e['fromVersion']||0x0,this['set']('name',_0x1b783e['name']||''),this['set']('createdAt',_0x1b783e['createdAt']||new Date()),this['set']('attributes',_0x1b783e['attributes']||{});}['setName'](_0x487221){this['_update']({'name':_0x487221});}['setAttribute'](_0x107bf1,_0x3b74b9){const _0x2f4362=_0x1318b9(this['attributes']);_0x28d3f7(_0x2f4362,_0x107bf1,_0x3b74b9),this['_update']({'attributes':_0x2f4362});}['removeAttribute'](_0xda0044){const _0x175703=_0x1318b9(this['attributes']);_0x203e73(_0x175703,_0xda0044),this['_update']({'attributes':_0x175703});}['_update'](_0xa2c747,_0x202656=!0x1){let _0x404588=!0x1;const _0xb926bf={'id':this['id']},_0x199b8b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5acd63 of _0x199b8b){const _0x59ca4=_0xa2c747[_0x5acd63];void 0x0!==_0x59ca4&&_0x59ca4!==this[_0x5acd63]&&(this[_0x5acd63]=_0x59ca4,_0xb926bf[_0x5acd63]=_0x59ca4,_0x404588=!0x0);}_0x404588&&(_0xb926bf['authors']&&(_0xb926bf['authorsIds']=_0xb926bf['authors']['map'](_0x132344=>_0x132344['id']),delete _0xb926bf['authors']),this['fire']('_update',_0xb926bf,_0x202656));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1483f0=>_0x1483f0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x460205{['_revisions'];static get['requires'](){return[_0x437785];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4fb9b3){super(_0x4fb9b3),this['_revisions']=new _0x2be9e4();}['afterInit'](){!async function(_0xdc24ae){const _0x240031=_0x23e773([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x525855=0xeb829,_0x24feea=0x359e09b0,_0x1c1f24=0x35998970^_0x24feea,_0x7d97f8=window[_0x23e773([0x44,0x61,0x74,0x65])][_0x23e773([0x6e,0x6f,0x77])](),_0x5a95a5=_0xdc24ae[_0x23e773([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f39f2=new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x463c71=>{_0x5a95a5[_0x23e773([0x6f,0x6e,0x63,0x65])](_0x23e773([0x72,0x65,0x61,0x64,0x79]),_0x463c71);}),_0x1be04e={[_0x23e773([0x6b,0x74,0x79])]:_0x23e773([0x45,0x43]),[_0x23e773([0x75,0x73,0x65])]:_0x23e773([0x73,0x69,0x67]),[_0x23e773([0x63,0x72,0x76])]:_0x23e773([0x50,0x2d,0x32,0x35,0x36]),[_0x23e773([0x78])]:_0x23e773([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]),[_0x23e773([0x79])]:_0x23e773([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]),[_0x23e773([0x61,0x6c,0x67])]:_0x23e773([0x45,0x53,0x32,0x35,0x36])},_0x36e515=_0x5a95a5[_0x23e773([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23e773([0x67,0x65,0x74])](_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f011d(){let _0x14c480,_0x5c4b0e=null,_0x5c7e03=null;try{if(_0x36e515==_0x23e773([0x47,0x50,0x4c]))return _0x23e773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14c480=_0x3b91c4(),!_0x14c480)return _0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14c480[_0x23e773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c7e03=_0x366791(_0x14c480[_0x23e773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14c480[_0x23e773([0x6a,0x74,0x69])])),await _0x27dad5()?_0x17bf2d()?_0x5f44f0()?_0x23e773([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44e70e()?(_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23e773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c4b0e=_0x55f36f(_0x23e773([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b5969()):_0x23e773([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23e773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f44f0(){const _0x5c6248=[_0x23e773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23e773([0x74,0x72,0x69,0x61,0x6c])][_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d97f8/0x3e8:0xe10*_0x1c1f24;return _0x14c480[_0x23e773([0x65,0x78,0x70])]<_0x5c6248;}function _0x17bf2d(){const _0x585004=_0x14c480[_0x23e773([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x585004)return!0x1;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x2a])))return!0x0;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x52,0x48])))return!0x0;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x52,0x52,0x48]))){if(_0x549cf8())return!0x0;if(_0x3e912f()||_0x1e29d5())return!0x0;}return!0x1;}function _0x44e70e(){const _0x3c2d1f=_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c2d1f||0x0==_0x3c2d1f[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360de1}=new URL(window[_0x23e773([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c2d1f[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360de1))return!0x0;const _0x239b4d=_0x360de1[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e]));return _0x3c2d1f[_0x23e773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13014c=>_0x13014c[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x2a])))[_0x23e773([0x6d,0x61,0x70])](_0x9e697d=>_0x9e697d[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e])))[_0x23e773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16af00=>_0x16af00[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239b4d[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e773([0x6d,0x61,0x70])](_0x5d0cc9=>Array(_0x239b4d[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d0cc9[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e773([0x66,0x69,0x6c,0x6c])](_0x5d0cc9[0x0]===_0x23e773([0x2a])?_0x23e773([0x2a]):'')[_0x23e773([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d0cc9))[_0x23e773([0x73,0x6f,0x6d,0x65])](_0x15d00c=>_0x239b4d[_0x23e773([0x65,0x76,0x65,0x72,0x79])]((_0x38dd2b,_0x51344a)=>_0x15d00c[_0x51344a]===_0x38dd2b||_0x15d00c[_0x51344a]===_0x23e773([0x2a])));}function _0x1b5969(){return _0x5c4b0e&&_0x5c7e03?new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9a4f,_0x32c52b)=>{_0x5c4b0e[_0x23e773([0x74,0x68,0x65,0x6e])](_0x4d9a4f,_0x32c52b),_0x5c7e03[_0x23e773([0x74,0x68,0x65,0x6e])](_0x3c307e=>{_0x3c307e!=_0x23e773([0x56,0x61,0x6c,0x69,0x64])&&_0x4d9a4f(_0x3c307e);},_0x32c52b);}):_0x5c4b0e||_0x5c7e03||_0x23e773([0x56,0x61,0x6c,0x69,0x64]);}}function _0x366791(_0x227480,_0x1d3651){return new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341ca2=>{if(_0x5c0785())return _0x341ca2(_0x23e773([0x56,0x61,0x6c,0x69,0x64]));_0x28e6d1(),_0x5a95a5[_0x23e773([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48afd6=!0x1;const _0x362e30=_0x3b18bf();function _0x5cf80e(_0x4c00ef){return!!_0x4c00ef&&(typeof _0x4c00ef===_0x23e773([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c00ef===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c00ef[_0x23e773([0x74,0x68,0x65,0x6e])]===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c00ef[_0x23e773([0x63,0x61,0x74,0x63,0x68])]===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5748b4(_0x218f2a){_0x26201(_0x218f2a)[_0x23e773([0x74,0x68,0x65,0x6e])](_0x3d3001=>{if(!_0x3d3001||_0x3d3001[_0x23e773([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23e773([0x6f,0x6b]))return _0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20f047(_0x5c8d5f(_0x362e30+_0x1d3651))!=_0x3d3001[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23e773([0x56,0x61,0x6c,0x69,0x64]);})[_0x23e773([0x74,0x68,0x65,0x6e])](_0x184c04=>(_0x7e0ee(),_0x184c04),()=>{const _0x4887d1=_0x53ef41();return null==_0x4887d1?(_0x7e0ee(),_0x23e773([0x56,0x61,0x6c,0x69,0x64])):_0x23e773(_0x7d97f8-_0x4887d1>(0x11928db0^_0x24feea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23e773([0x74,0x68,0x65,0x6e])](_0x341ca2)[_0x23e773([0x63,0x61,0x74,0x63,0x68])](()=>{_0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5847e0=0x35a8e730^_0x24feea;function _0x7e0ee(){const _0x274dc2=_0x23e773([0x6c,0x6c,0x63,0x74,0x2d])+_0x20f047(_0x5c8d5f(_0x227480)),_0xd9be3b=_0x4cd042(_0x20f047(window[_0x23e773([0x4d,0x61,0x74,0x68])][_0x23e773([0x63,0x65,0x69,0x6c])](_0x7d97f8/_0x5847e0)));window[_0x23e773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e773([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274dc2,_0xd9be3b);}function _0x53ef41(){const _0x986ef0=_0x23e773([0x6c,0x6c,0x63,0x74,0x2d])+_0x20f047(_0x5c8d5f(_0x227480)),_0x510728=window[_0x23e773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e773([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x986ef0);return _0x510728?window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd042(_0x510728),0x10)*_0x5847e0:null;}function _0x26201(_0x17ea30){return new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45bab6,_0x23638e)=>{_0x17ea30[_0x23e773([0x74,0x68,0x65,0x6e])](_0x45bab6,_0x23638e),window[_0x23e773([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23638e,0x359fdd70^_0x24feea);});}}_0x5a95a5[_0x23e773([0x6f,0x6e])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ae3a5,_0x498c9e)=>{if(_0x498c9e[0x0]!=_0x227480)return _0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x498c9e[0x1]={..._0x498c9e[0x1],[_0x23e773([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x362e30};},{[_0x23e773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e773([0x68,0x69,0x67,0x68])}),_0x5a95a5[_0x23e773([0x6f,0x6e])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2675d6=>{_0x5cf80e(_0x2675d6[_0x23e773([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48afd6=!0x0,_0x5748b4(_0x2675d6[_0x23e773([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23e773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e773([0x6c,0x6f,0x77])}),_0x1f39f2[_0x23e773([0x74,0x68,0x65,0x6e])](()=>{_0x48afd6||_0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0785(){return _0x5a95a5[_0x23e773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e773([0x76,0x69,0x65,0x77])][_0x23e773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23e773([0x61,0x75,0x74,0x6f]);}function _0x28e6d1(){_0x5a95a5[_0x23e773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e773([0x76,0x69,0x65,0x77])][_0x23e773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23e773([0x61,0x75,0x74,0x6f]);}}function _0x55f36f(_0x5f0bff){const _0x4e28f6=[new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133c4=>setTimeout(_0x4133c4,0x3597377c^_0x24feea)),_0x1f39f2[_0x23e773([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0904=>{const _0x3fd884=0x359e09b7^_0x24feea,_0x47d651=_0xdc24ae[_0x23e773([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4f0a68(){_0x47d651[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3fd884&&_0x3d0904();}_0x4f0a68(),_0x47d651[_0x23e773([0x6f,0x6e])](_0x23e773([0x61,0x64,0x64]),_0x4f0a68);})),new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b55ec=>{function _0x4aef1f(){for(const _0x14b32e in window)if(window[_0x23e773([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23e773([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x14b32e))&&window[_0x14b32e]==_0x525855)return _0x3b55ec();_0x5a95a5[_0x23e773([0x73,0x74,0x61,0x74,0x65])]!=_0x23e773([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23e773([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4aef1f,0x359e1a38^_0x24feea);}_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4aef1f();})];return window[_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23e773([0x72,0x61,0x63,0x65])](_0x4e28f6)[_0x23e773([0x74,0x68,0x65,0x6e])](()=>_0x5f0bff);}async function _0x74881a(){if(await _0x1f39f2,_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2bd398=_0xdc24ae[_0x23e773([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5257f1=_0xdc24ae[_0x23e773([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])](_0x2bd398[_0x23e773([0x69,0x64])]),_0x3be453=_0x14b1f7(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3be453[_0x23e773([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2bd398['id'],_0x5257f1?_0x5257f1['id']:null,!0x0),_0x3be453[_0x23e773([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3be453[_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3be453[_0x23e773([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x7c3fd1,void(_0x3be453[_0x23e773([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x7c3fd1);}if(_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2b9bdc=_0x14b1f7(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2b9bdc[_0x23e773([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b9bdc[_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b9bdc[_0x23e773([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x7c3fd1,_0x2b9bdc[_0x23e773([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x7c3fd1;}_0x5a95a5[_0x23e773([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e773([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3fd1,_0x5a95a5[_0x23e773([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e773([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3fd1,_0x5a95a5[_0x23e773([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23e773([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x549cf8(){return _0x56b422(_0x23e773([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x14b1f7(_0x23e773([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23e773([0x73,0x74,0x61,0x74,0x65])]==_0x23e773([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e912f(){return _0x56b422(_0x23e773([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 _0x1e29d5(){return _0x56b422(_0x23e773([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3711bc(_0x4d7e50){const _0x32c25f=_0x2d0aa0();_0x5a95a5[_0x32c25f]=_0x23e773([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])+_0x4d7e50,_0x4d7e50[_0x23e773([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23e773([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d0aa0()]=_0x525855),_0x4d7e50!=_0x23e773([0x56,0x61,0x6c,0x69,0x64])&&_0x74881a();}function _0x2d0aa0(){const _0x59cfb4=window[_0x23e773([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23e773([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23e773([0x6e,0x6f,0x77])]())[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23e773([0x2e]),'');let _0x2c48b1=_0x23e773([0x76]);for(let _0x3e2471=0x0;_0x3e2471<_0x59cfb4[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2471+=0x2){let _0x279876=window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59cfb4[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2471,_0x3e2471+0x2));_0x279876>=_0x240031[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x279876-=_0x240031[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c48b1+=_0x240031[_0x279876];}return _0x2c48b1;}function _0x3b91c4(){const _0x31eacc=_0x36e515[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e]));if(0x3!=_0x31eacc[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a0fe2(_0x31eacc[0x1]);function _0x1a0fe2(_0x2687db){const _0x1aa5d6=_0x3c7397(_0x2687db);return _0x1aa5d6&&_0x1d40e5()?_0x1aa5d6:null;function _0x1d40e5(){const _0x3dd09a=_0x1aa5d6[_0x23e773([0x6a,0x74,0x69])],_0x21b9d2=window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd09a[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dd09a[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13f6e7={..._0x1aa5d6,[_0x23e773([0x6a,0x74,0x69])]:_0x3dd09a[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3dd09a[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13f6e7[_0x23e773([0x76,0x63])],_0x5c8d5f(_0x13f6e7)==_0x21b9d2;}}}async function _0x27dad5(){let _0x4a96c5=!0x0;try{const _0x4aa38e=_0x36e515[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e])),[_0x2db977,_0x518a41,_0x37d149]=_0x4aa38e;return _0x4319aa(_0x2db977),await _0x31bcb3(_0x2db977,_0x518a41,_0x37d149),_0x4a96c5;}catch{return!0x1;}function _0x4319aa(_0x3947a0){const _0x48e543=_0x3c7397(_0x3947a0);_0x48e543&&_0x48e543[_0x23e773([0x61,0x6c,0x67])]==_0x23e773([0x45,0x53,0x32,0x35,0x36])||(_0x4a96c5=!0x1);}async function _0x31bcb3(_0x5c8d91,_0x5488f8,_0x13c8e1){const _0x568e38=window[_0x23e773([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23e773([0x66,0x72,0x6f,0x6d])](_0x8550b5(_0x13c8e1),_0x1d7cbf=>_0x1d7cbf[_0x23e773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1eb771=new window[(_0x23e773([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23e773([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c8d91+_0x23e773([0x2e])+_0x5488f8),_0x2b078c=window[_0x23e773([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23e773([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b078c)return;const _0x10283e=await _0x2b078c[_0x23e773([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23e773([0x6a,0x77,0x6b]),_0x1be04e,{[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x45,0x43,0x44,0x53,0x41]),[_0x23e773([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23e773([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b078c[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x45,0x43,0x44,0x53,0x41]),[_0x23e773([0x68,0x61,0x73,0x68])]:{[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10283e,_0x568e38,_0x1eb771)||(_0x4a96c5=!0x1);}}function _0x3c7397(_0x5f13c7){return _0x5f13c7[_0x23e773([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23e773([0x65,0x79]))?JSON[_0x23e773([0x70,0x61,0x72,0x73,0x65])](_0x8550b5(_0x5f13c7)):null;}function _0x8550b5(_0x5abcbd){return window[_0x23e773([0x61,0x74,0x6f,0x62])](_0x5abcbd[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23e773([0x2b]))[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23e773([0x2f])));}function _0x5c8d5f(_0x5d1c3f){let _0x53cc03=0x1505;function _0x218f4f(_0x5d5806){for(let _0x4910d1=0x0;_0x4910d1<_0x5d5806[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4910d1++){const _0x2b9460=_0x5d5806[_0x23e773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4910d1);_0x53cc03=(_0x53cc03<<0x5)+_0x53cc03+_0x2b9460,_0x53cc03&=_0x53cc03;}}function _0x5ef068(_0x22264e){Array[_0x23e773([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22264e)?_0x22264e[_0x23e773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef068):_0x22264e&&typeof _0x22264e==_0x23e773([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23e773([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22264e)[_0x23e773([0x73,0x6f,0x72,0x74])]()[_0x23e773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23976a,_0x49be41])=>{_0x218f4f(_0x23976a),_0x5ef068(_0x49be41);}):_0x218f4f(window[_0x23e773([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22264e));}return _0x5ef068(_0x5d1c3f),_0x53cc03>>>0x0;}function _0x20f047(_0xa4b804){return _0xa4b804[_0x23e773([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23e773([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23e773([0x30]));}function _0x4cd042(_0x239d5e){return _0x239d5e[_0x23e773([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23e773([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23e773([0x6a,0x6f,0x69,0x6e])]('');}function _0x56b422(_0x125b58){return _0x5a95a5[_0x23e773([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23e773([0x68,0x61,0x73])](_0x125b58);}function _0x14b1f7(_0x1f00be){return _0x5a95a5[_0x23e773([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23e773([0x67,0x65,0x74])](_0x1f00be);}function _0x7c3fd1(){}function _0x23e773(_0x330c5d){return _0x330c5d['map'](_0xecd08e=>String['fromCharCode'](_0xecd08e))['join']('');}_0x3711bc(await _0x3f011d());}(this);}['createRevision'](_0x1883b6){const _0x4810ca=this['editor']['plugins']['get']('Users');return new I({'id':_0x1883b6['id'],'name':_0x1883b6['name'],'creator':_0x1883b6['creatorId']?_0x4810ca['getUser'](_0x1883b6['creatorId']):null,'diffData':_0x1883b6['diffData']||_0x1883b6['data'],'authors':_0x1883b6['authorsIds']['map'](_0x2c103d=>_0x4810ca['getUser'](_0x2c103d)),'createdAt':new Date(_0x1883b6['createdAt']),'attributes':_0x1883b6['attributes'],'fromVersion':_0x1883b6['fromVersion'],'toVersion':_0x1883b6['toVersion']});}['addRevision'](_0x78009b,_0x447ebe=0x0){this['_revisions']['add'](_0x78009b,_0x447ebe);}['getRevision'](_0x4ced9e){return this['_revisions']['get'](_0x4ced9e);}['getRevisions'](_0xbfcaa7={'toJSON':!0x1}){const _0x135aa6=Array['from'](this['_revisions']);return _0x135aa6['reverse'](),_0xbfcaa7['toJSON']?_0x135aa6['map'](_0x163582=>_0x163582['toJSON']()):_0x135aa6;}['getIndex'](_0xd65815){return this['_revisions']['getIndex'](_0xd65815);}['getEarlierVisibleRevision'](_0x464670){const [,_0x46d4ba]=this['getRevisionsIterator'](_0x464670,{'direction':'earlier'});return _0x46d4ba;}['getLaterVisibleRevision'](_0x1d62bc){const [,_0x18df8e]=this['getRevisionsIterator'](_0x1d62bc,{'direction':'later'});return _0x18df8e;}['getRevisionsInDiff'](_0x508ff3){const _0x43eabb=[];for(const _0x5ccfb8 of this['getRevisionsIterator'](_0x508ff3['newRevisionId']))if(_0x43eabb['push'](_0x5ccfb8),_0x5ccfb8['id']===_0x508ff3['oldRevisionId'])break;return _0x43eabb;}*['getRevisionsIterator'](_0x11ebe5,{direction:_0x2a4b25='earlier',filter:_0x249239=()=>!0x0}={}){const _0x2d6003='earlier'===_0x2a4b25?0x1:-0x1;let _0x24aba5=this['_revisions']['get'](_0x11ebe5),_0x5926cb=this['getIndex'](_0x24aba5);for(yield _0x24aba5;_0x24aba5;){if(_0x5926cb+=_0x2d6003,_0x24aba5=this['getRevision'](_0x5926cb),!_0x24aba5)return;_0x249239(_0x24aba5)&&(yield _0x24aba5);}}}class $ extends _0x460205{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x6b6d84,'c'],[_0xf33d81,'a'],[_0x4579d9,'e'],[_0x507579,'r'],[_0xf2c865,'u']]);['_typeCharToViewClass']=new Map([['c',_0x6b6d84],['a',_0xf33d81],['e',_0x4579d9],['r',_0x507579],['u',_0xf2c865]]);async['loadRevisionData'](_0x11a81b,_0x7cedbc){if(_0x11a81b['diffData']||!_0x7cedbc)return;const _0x11f3e4=this['editor']['config']['get']('collaboration.channelId'),_0x40b531=await _0x7cedbc['getRevision']({'channelId':_0x11f3e4,'revisionId':_0x11a81b['id']});_0x11a81b['diffData']=_0x40b531['diffData'];}['getRevisionDocumentData'](_0x406493){const _0x96eb59={};for(const _0x361c58 in _0x406493['diffData']){if(_0x406493['diffData'][_0x361c58]['attachChange']&&!_0x406493['diffData'][_0x361c58]['attachChange']['isAttached'])continue;const _0x3e75eb=this['_removeRevisionMarkers'](JSON['parse'](_0x406493['diffData'][_0x361c58]['insertions'])),_0x1d5589=this['editor']['editing']['view']['document'],_0x4b5e5b=new _0x4f781a(_0x1d5589,_0x3e75eb['map'](_0x25bd8c=>this['_getViewFromDiffObj'](_0x25bd8c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x96eb59[_0x361c58]=this['editor']['data']['processor']['toData'](_0x4b5e5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x96eb59;}['getRevisionRootsAttributes'](_0x3ffe4f){const _0x818eef={};for(const _0x265687 in _0x3ffe4f['diffData'])_0x3ffe4f['diffData'][_0x265687]['attachChange']&&!_0x3ffe4f['diffData'][_0x265687]['attachChange']['isAttached']||(_0x818eef[_0x265687]=_0x3ffe4f['diffData'][_0x265687]['attributesAfter']||{});return _0x818eef;}['_getTypeCharForViewElement'](_0x2d7c77){return this['_viewClassToTypeChar']['get'](_0x2d7c77['constructor']);}['_getViewFromDiffObj'](_0x254bda,_0x27896b){const _0x1861fb=this['editor']['editing']['view']['document'];if('string'==typeof _0x254bda)return new _0x1af8c0(_0x1861fb,_0x254bda);{let _0x55bfaf,_0x334f5c;_0x334f5c='u'==_0x254bda['type']||'r'==_0x254bda['type']?[]:_0x254bda['children']['map'](_0xb5ad43=>this['_getViewFromDiffObj'](_0xb5ad43,_0x27896b));const _0x4d1119=this['_typeCharToViewClass']['get'](_0x254bda['type'])||_0x43d538,_0x5d83f8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x55bfaf=new _0x4d1119(_0x1861fb,_0x254bda['name'],_0x254bda['attributes'],_0x334f5c),'u'==_0x254bda['type']&&_0x254bda['children'][0x0]){const _0x2204c2=_0x254bda['children'][0x0];if(_0x55bfaf['render']=function(_0x9cecc0){const _0x1639e1=_0x9cecc0['createElement']('div');return _0x1639e1['innerHTML']=_0x2204c2,_0x1639e1['childNodes'][0x0];},_0x27896b){const _0x275752=new _0x4f781a(_0x1861fb);_0x275752['_appendChild'](_0x55bfaf);const _0x5d17cb=Array['from'](_0x5d83f8['viewChildrenToDom'](_0x275752,{'bind':!0x1})),_0x1fe2f3=_0x5d83f8['domDocument']['createElement']('div');_0x1fe2f3['append'](..._0x5d17cb),_0x55bfaf=Array['from'](_0x5d83f8['domChildrenToView'](_0x1fe2f3))[0x0];}}else{if('r'==_0x254bda['type']&&_0x254bda['children'][0x0]){const _0x452fae=_0x254bda['children'][0x0];if(_0x55bfaf['render']=function(_0x4c1445){_0x4c1445['innerHTML']=_0x452fae;},_0x27896b){const _0x5853f1=new _0x4f781a(_0x1861fb);_0x5853f1['_appendChild'](_0x55bfaf);const _0x1a119e=Array['from'](_0x5d83f8['viewChildrenToDom'](_0x5853f1,{'bind':!0x1})),_0x3bc167=_0x5d83f8['domDocument']['createElement']('div');_0x3bc167['append'](..._0x1a119e);const _0x1eec46=Array['from'](_0x5d83f8['domChildrenToView'](_0x3bc167));_0x1eec46['length']>0x1?_0x55bfaf['_appendChild'](_0x1eec46):_0x55bfaf=_0x1eec46[0x0];}}}if(_0x254bda['customProperties']){for(const [_0x2c6413,_0x4c5a96]of _0x254bda['customProperties'])_0x55bfaf['_setCustomProperty'](_0x2c6413,_0x4c5a96);}const _0x2a92ca=void 0x0===_0x254bda['fillerOffset']?null:_0x254bda['fillerOffset'];return null!==_0x2a92ca&&(_0x55bfaf['getFillerOffset']=()=>_0x2a92ca),_0x55bfaf;}}['_makeModelFromViewString'](_0x2eb6f7){const _0x1355a5=JSON['parse'](_0x2eb6f7),_0x555ecc=this['editor']['editing']['view']['document'],_0x536496=new _0x4f781a(_0x555ecc,_0x1355a5['map'](_0x2686f4=>this['_getViewFromDiffObj'](_0x2686f4,!0x0)));return this['editor']['data']['toModel'](_0x536496);}['_removeRevisionMarkers'](_0x16ea4c){return(_0x16ea4c=_0x16ea4c['filter'](_0x196f83=>!_0x196f83['name']||'revision-start'!==_0x196f83['name']&&'revision-end'!==_0x196f83['name']))['forEach'](_0x48d9bb=>{'string'!=typeof _0x48d9bb&&(_0x48d9bb['children']=this['_removeRevisionMarkers'](_0x48d9bb['children']),_0x48d9bb['attributes']=_0x48d9bb['attributes']['filter'](_0x1f1521=>!_0x1f1521[0x0]['startsWith']('data-revision-')));}),_0x16ea4c;}}function m(_0xa5cd28,_0x5df411,_0x344245){const t=_0xa5cd28['t'];switch(_0x5df411){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'},_0x344245);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x344245);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 _0x460205{['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[_0x437785,S,$,_0x21b7d5];}constructor(_0x16b647){super(_0x16b647),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x7cc931=_0x3b18bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7cc931},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 _0x2dc962=this['repository']['getRevision'](0x0),_0x44816d=_0x2dc962&&null===_0x2dc962['creator']?_0x2dc962:null;if(this['_continueCurrentRevision']=!!_0x44816d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3e2c0f=this['_source']['getCurrentRevisionId'](),_0xf2cd53=this['repository']['getRevision'](_0x3e2c0f);if(_0xf2cd53)this['_startingVersion']=_0xf2cd53['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x17cd7e=this['_source']['history']['_operations']['find'](_0x23aaec=>!_0x23aaec['_isInit']),_0xa713e2=_0x17cd7e?_0x17cd7e['baseVersion']:this['_source']['history']['version'];_0x2dc962?(_0x2dc962['toVersion']<_0xa713e2&&_0x2dc962['_update']({'toVersion':_0xa713e2}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id'],this['_startingVersion']=_0x44816d['fromVersion']):(this['_startingVersion']=_0x2dc962['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xa713e2,this['_continueCurrentRevision']=!0x1);}}else _0x44816d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x44816d['toVersion'],this['editor']['model']['document']['history']['version']),_0x44816d['fromVersion']===_0x44816d['toVersion']?(0x0!==_0x44816d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id'],this['_startingVersion']=_0x44816d['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',_0x204308=>!_0x204308),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d800e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b27fc;for(const _0x37615b in _0x2d800e){const _0x17b054=_0x37615b,_0x26d0f3=_0x2d800e[_0x17b054];if('revisionHistoryLicenseKeyValid'==_0x26d0f3||'revisionHistoryLicenseKeyInvalid'==_0x26d0f3||'revisionHistoryLicenseKeyExpired'==_0x26d0f3||'revisionHistoryLicenseKeyDomainLimit'==_0x26d0f3||'revisionHistoryLicenseKeyNotAllowed'==_0x26d0f3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x26d0f3||'revisionHistoryLicenseKeyUsageLimit'==_0x26d0f3){delete _0x2d800e[_0x17b054],_0x4b27fc=_0x26d0f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4b27fc&&_0x2d800e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4b27fc&&_0x2d800e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4b27fc&&_0x2d800e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x393eeb=this['repository']['getRevision'](0x0),_0x3d1bef=await this['getRevisionDocumentData'](_0x393eeb),_0x535ea1=await this['getRevisionRootsAttributes'](_0x393eeb);this['_replaceEditorDataWithRevisionData'](_0x3d1bef,_0x535ea1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4ad34b){this['_source']=_0x4ad34b;}async['update'](){const _0x3d596c=await this['_source']['getLatestVersion']();if(_0x3d596c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x27efd1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d596c});_0x27efd1['authors']=_0x27efd1['authorsIds']['map'](_0x5df685=>this['editor']['plugins']['get']('Users')['getUser'](_0x5df685)),this['currentRevision']['_update'](_0x27efd1);}}async['saveRevision'](_0x46333c={},_0x2374c5=null){const _0x34fb70=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2374c5>this['currentRevision']['toVersion']&&(_0x2374c5=null),null===_0x2374c5&&(_0x2374c5=await this['_source']['getLatestVersion']());const _0x39e63f=this['_getFromVersion'](_0x2374c5),_0x38c35b=this['buildRevisionData']({'from':_0x39e63f,'to':_0x2374c5});if(this['currentRevision']['toVersion']<_0x2374c5){const _0x289e65=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2374c5,'to':_0x2374c5});_0x289e65['authors']=[],_0x289e65['authorsIds']=[],_0x289e65['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x289e65,!0x0),delete _0x289e65['authors'],_0x34fb70['push'](_0x289e65);}_0x46333c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x46333c['name']=_0x46333c['name']||null,_0x46333c['id']=_0x46333c['id']||_0x3b18bf(),_0x46333c={..._0x46333c,..._0x38c35b};const _0x2680c8=this['addRevisionData'](_0x46333c);_0x34fb70['push'](_0x46333c);const _0x12a38a=this['repository']['getIndex'](_0x2680c8);if(0x0!==_0x12a38a){const _0x278e38=this['repository']['getRevision'](_0x12a38a-0x1);if(_0x278e38['fromVersion']!==_0x2374c5){const _0x11fa56=this['_revisionDataBuilder']['getData'](_0x2374c5,_0x278e38['toVersion']),_0x505cdb={'id':_0x278e38['id'],'diffData':_0x11fa56['diffData'],'authorsIds':_0x11fa56['authorsIds'],'authors':_0x11fa56['authorsIds']['map'](_0x3b47e1=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b47e1)),'fromVersion':_0x2374c5};_0x278e38===this['currentRevision']&&(_0x505cdb['createdAt']=new Date(_0x46333c['createdAt']['getTime']()+0xa)),_0x278e38['_update'](_0x505cdb,!0x0),delete _0x505cdb['authors'],_0x34fb70['push'](_0x505cdb);}}if(this['adapter']){for(const _0x2c2237 of _0x34fb70)this['_bufferUpdate'](_0x2c2237['id'],_0x2c2237,!0x0);this['sendBufferedUpdates']();}return _0x2680c8;}['addRevisionData'](_0x1327f5){const _0xfea93e=this['repository']['createRevision'](_0x1327f5);return this['adapter']&&_0xfea93e['on']('_update',(_0x1dba7f,_0x2c9ed2,_0x5c4cf4)=>{_0x5c4cf4||(this['_bufferUpdate'](_0x2c9ed2['id'],_0x2c9ed2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xfea93e,this['_findInsertionIndex'](_0xfea93e)),_0xfea93e;}async['getRevisionDocumentData'](_0x3b5c8a){return await this['_utils']['loadRevisionData'](_0x3b5c8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b5c8a);}async['getRevisionRootsAttributes'](_0x3a67b4){return await this['_utils']['loadRevisionData'](_0x3a67b4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3a67b4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x487a67=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x192702=0x0;_0x192702<_0x487a67['length'];_0x192702++){const _0x3d437a=_0x487a67[_0x192702];let _0x14bb01=!0x1;for(const _0x443f8d of Object['keys'](_0x3d437a))void 0x0===_0x3d437a[_0x443f8d]?delete _0x3d437a[_0x443f8d]:'id'!==_0x443f8d&&(_0x14bb01=!0x0);_0x14bb01||(_0x487a67[_0x192702]=null);}if(_0x487a67=_0x487a67['filter'](_0x31ec90=>null!==_0x31ec90),!_0x487a67['length'])return;for(let _0x15ce68=0x0;_0x15ce68<_0x487a67['length'];_0x15ce68++){const _0xddd78c=_0x487a67[_0x15ce68];void 0x0!==_0xddd78c['fromVersion']&&void 0x0===_0xddd78c['toVersion']&&(_0xddd78c['toVersion']=this['repository']['getRevision'](_0xddd78c['id'])['toVersion']),void 0x0!==_0xddd78c['toVersion']&&void 0x0===_0xddd78c['fromVersion']&&(_0xddd78c['fromVersion']=this['repository']['getRevision'](_0xddd78c['id'])['fromVersion']);}const _0x10d906=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x487a67,_0x10d906)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d22f3=>{if(_0x5d22f3){for(const _0x1e5f89 of _0x5d22f3)this['setRevisionData']({'id':_0x1e5f89['id'],'createdAt':_0x1e5f89['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x215aeb=null,from:_0x25c405=null,to:_0x1f2d97=null}){_0x25c405=null!==_0x25c405?_0x25c405:_0x215aeb['fromVersion'],_0x1f2d97=null!==_0x1f2d97?_0x1f2d97:_0x215aeb['toVersion'];const _0x438004=this['_revisionDataBuilder']['getData'](_0x25c405,_0x1f2d97),_0x4321b0={'diffData':_0x438004['diffData'],'authorsIds':_0x438004['authorsIds'],'fromVersion':_0x25c405,'toVersion':_0x1f2d97};if(!_0x215aeb||_0x1f2d97!==_0x215aeb['toVersion']){const _0x1454a9=_0x1f2d97-0x1,_0x3c8bfb=this['_source']['history']['getOperation'](_0x1454a9);_0x4321b0['createdAt']=_0x3c8bfb&&_0x3c8bfb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x25c405===this['_loadedStateData']['fromVersion']){for(const _0x1066ac of this['_loadedStateData']['authors'])_0x4321b0['authorsIds']['includes'](_0x1066ac['id'])||_0x4321b0['authorsIds']['push'](_0x1066ac['id']);}return _0x4321b0;}['_bufferUpdate'](_0x41a520,_0x37faf2,_0x279fad){if(this['_bufferedUpdates']['has'](_0x41a520)){const _0x598deb=this['_bufferedUpdates']['get'](_0x41a520);_0x37faf2=_0x279fad?{..._0x598deb,..._0x37faf2}:{..._0x37faf2,..._0x598deb};}this['_bufferedUpdates']['set'](_0x41a520,_0x37faf2);}['setRevisionData'](_0x346731){const _0x505f49=this['repository']['getRevision'](_0x346731['id']);if(_0x346731['createdAt']&&(_0x346731['createdAt']=new Date(_0x346731['createdAt'])),_0x346731['authorsIds']){const _0x33b3e8=this['editor']['plugins']['get']('Users');_0x346731['authors']=_0x346731['authorsIds']['map'](_0x40c485=>_0x33b3e8['getUser'](_0x40c485));}_0x505f49['_update'](_0x346731,!0x0);}['_createInitialRevision'](_0x342a0b){const _0x138820=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x138820)this['_initialRevisionId']=_0x138820['id'];else{const _0x54bc56=!this['editor']['model']['document']['roots']['find'](_0x1c9759=>this['editor']['model']['hasContent'](_0x1c9759)),_0x42c49f=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c9d1b=m(this['editor']['locale'],_0x54bc56?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x342a0b,'to':_0x342a0b,'id':this['_initialRevisionId'],'name':_0x5c9d1b,'creatorId':_0x42c49f});}}['_createCurrentRevision'](_0x2311da){const _0x253216=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x253216),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2311da,'to':_0x2311da,'id':_0x253216,'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'](_0x25b9a4,_0x2c3124){let _0x27fb9d=this['editor']['config']['get']('initialData'),_0x3066a3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x27fb9d){_0x27fb9d={};for(const _0x11620e of this['editor']['model']['document']['getRootNames']())_0x27fb9d[_0x11620e]='';}if('string'==typeof _0x27fb9d&&(_0x27fb9d={'main':_0x27fb9d}),void 0x0===_0x3066a3){_0x3066a3={};for(const _0x8a0cf4 of this['editor']['model']['document']['getRootNames']())_0x3066a3[_0x8a0cf4]={};}let _0x3c9bf8=!0x1;const _0x3c3ab2=Object['keys'](_0x27fb9d),_0x4cfd6f=Object['keys'](_0x25b9a4);for(const _0x318a6a of _0x3c3ab2){if(_0x27fb9d[_0x318a6a]!==_0x25b9a4[_0x318a6a]&&''!==_0x27fb9d[_0x318a6a]['trim']()){_0x3c9bf8=!0x0;break;}if(!_0x42361d(_0x3066a3[_0x318a6a],_0x2c3124[_0x318a6a])&&Object['keys'](_0x3066a3[_0x318a6a])['length']>0x0){_0x3c9bf8=!0x0;break;}}_0x3c9bf8||(_0x3c9bf8=_0x4cfd6f['some'](_0x3148dd=>!this['editor']['model']['document']['getRoot'](_0x3148dd))),_0x3c9bf8&&_0x553d19('editor-initial-data-replaced-with-revision-data',{'editorData':_0x27fb9d,'editorRootsAttributes':_0x3066a3,'revisionData':_0x25b9a4,'revisionRootsAttributes':_0x2c3124}),this['editor']['config']['set']('initialData',_0x25b9a4),this['editor']['config']['set']('rootsAttributes',_0x2c3124);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c5f27=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c5f27['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3d36ca){const _0x1688c4=this['repository']['getRevisions']();_0x1688c4['reverse']();let _0x1b31a3=0x0;for(;_0x1b31a3<_0x1688c4['length'];){const _0x150a6c=_0x1688c4[_0x1b31a3];if(_0x150a6c===this['currentRevision']){_0x1b31a3++;continue;}if(_0x150a6c['id']===this['_initialRevisionId'])break;const _0xd3c90c=_0x3d36ca['toVersion']-_0x150a6c['toVersion']||_0x3d36ca['fromVersion']-_0x150a6c['fromVersion'];if(_0xd3c90c>0x0)break;if(_0xd3c90c<0x0)_0x1b31a3++;else{if(!_0x3d36ca['creator']&&_0x150a6c['creator'])break;if(_0x150a6c['creator']||!_0x3d36ca['creator']){if(_0x3d36ca['createdAt']>_0x150a6c['createdAt'])break;_0x1b31a3++;}else _0x1b31a3++;}}return _0x1b31a3;}['_getFromVersion'](_0xb11bee){const _0x58f8e9=this['repository']['getRevisions']();_0x58f8e9['reverse'](),_0x58f8e9['shift']();const _0x333c63=_0x58f8e9['find'](_0x2dd389=>_0x2dd389['toVersion']<=_0xb11bee)['toVersion'];return _0x333c63<this['_startingVersion']?this['_startingVersion']:_0x333c63;}['_makeRevision']({name:_0x11ea8f,from:_0x128e85,to:_0x11609b,creatorId:_0x20edae,id:_0x2a9501}){const _0x338497=this['buildRevisionData']({'from':_0x128e85,'to':_0x11609b});_0x338497['name']=_0x11ea8f,_0x338497['creatorId']=_0x20edae,_0x338497['id']=_0x2a9501;const _0x2562d5=this['addRevisionData'](_0x338497);return this['adapter']&&this['_bufferUpdate'](_0x338497['id'],_0x338497,!0x0),_0x2562d5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x18d30f){this['editor']=_0x18d30f,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'](_0x250728){this['source']=_0x250728;const _0x2a5e19=new Map(),_0x1cea54=new Map(),_0x3d0860=this['editor']['model']['document']['roots']['map'](_0x5dffa1=>_0x5dffa1['rootName']);for(const _0x2ce614 of _0x3d0860){const _0x3c5c27=this['editor']['model']['document']['getRoot'](_0x2ce614),_0x3e6475=K(_0x3c5c27);_0x2a5e19['set'](_0x2ce614,_0x3e6475),_0x1cea54['set'](_0x2ce614,Object['fromEntries'](_0x3c5c27['getAttributes']()));}const _0x4889bf=Array['from'](this['editor']['model']['markers'])['map'](_0x4a6d49=>[_0x4a6d49['name'],_0x4a6d49['getRange']()]),_0x213f05=this['source']['version'];this['_saveMetaData'](_0x213f05,_0x2a5e19,_0x4889bf,_0x1cea54),this['_startingRevisionId']=this['_revisionId'];const _0x493aa1=new Map(),_0x4125c6=new Map();for(const _0xd485a8 of _0x3d0860){const _0x4a1802=N(_0xd485a8);_0x493aa1['set'](_0xd485a8,_0x4a1802),_0x4125c6['set'](_0xd485a8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x493aa1,[],_0x4125c6);}['getData'](_0x2a3cce,_0x1dd343){if(this['_lastFrom']===_0x2a3cce&&this['_lastTo']<=_0x1dd343)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1dd343,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a3cce)){const _0x5173e3=this['_getPreviousFrom'](_0x2a3cce);this['_calculateMetaData'](_0x5173e3,_0x2a3cce,!0x1);}this['_calculateMetaData'](_0x2a3cce,_0x1dd343,!0x0);}return this['_lastFrom']=_0x2a3cce,this['_lastTo']=_0x1dd343,this['_getState']();}['loadState'](_0x2cabb8){if(!this['_savedMetaData']['has'](_0x2cabb8['fromVersion'])){const _0x4208dc=this['_getPreviousFrom'](_0x2cabb8['fromVersion']);this['_calculateMetaData'](_0x4208dc,_0x2cabb8['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2cabb8['fromVersion'],_0x2cabb8['toVersion'],!0x1);const _0x49083f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2cabb8['fromVersion'],this['_lastTo']=_0x2cabb8['toVersion'];for(const _0x3af8c5 in _0x2cabb8['diffData']){const _0x566194=_0x2cabb8['diffData'][_0x3af8c5]['attachChange'],_0x5b1735=_0x1318b9(_0x2cabb8['diffData'][_0x3af8c5]['attributesBefore'])||{},_0x4389a2=_0x49083f['_makeModelFromViewString'](_0x2cabb8['diffData'][_0x3af8c5]['deletions']);_0x4389a2['rootName']=_0x3af8c5,_0x4389a2['_isAttached']=!_0x566194||!_0x566194['isAttached'],_0x4389a2['isAttached']=()=>_0x4389a2['_isAttached'],this['_baseRoots']['set'](_0x3af8c5,_0x4389a2),this['_baseRootsAttributes']['set'](_0x3af8c5,_0x5b1735),_0x566194&&this['_touchedRoots']['set'](_0x3af8c5,_0x566194);const _0x13d8dd=this['_makeIdsRoot'](_0x4389a2);this['_baseIdsRoots']['set'](_0x3af8c5,_0x13d8dd);for(const [_0x362fae,_0x45fc90]of _0x4389a2['markers']){if(!_0x362fae['startsWith']('revision:'))continue;const _0x194af4=_0x362fae['split'](':')[0x2];for(const _0x39a163 of _0x45fc90['getWalker']({'singleCharacters':!0x0})){const _0x58be54=this['_getVidAttributeName'](_0x39a163),_0x36f989='elementEnd'==_0x39a163['type']?_0x39a163['previousPosition']['path']['slice'](0x0,-0x1):_0x39a163['previousPosition']['path'],_0x4fcdbf=_0x13d8dd['getNodeByPath'](_0x36f989)['getAttribute'](_0x58be54);this['_touched']['set'](_0x4fcdbf,{'userId':_0x194af4});}_0x4389a2['markers']['delete'](_0x362fae);}}this['_startingRevisionId']=this['_revisionId'];const _0x5b6800=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x18454a=>!this['_touched']['has'](_0x18454a));let _0x20fa24=0x0;const _0x40e819=new Map();for(const _0x4a7d90 in _0x2cabb8['diffData']){const _0x488d58=_0x2cabb8['diffData'][_0x4a7d90]['attachChange'],_0x1ce901=_0x1318b9(_0x2cabb8['diffData'][_0x4a7d90]['attributesAfter'])||{},_0x211247=_0x49083f['_makeModelFromViewString'](_0x2cabb8['diffData'][_0x4a7d90]['insertions']);_0x211247['rootName']=_0x4a7d90,_0x211247['_isAttached']=!_0x488d58||_0x488d58['isAttached'],_0x211247['isAttached']=()=>_0x211247['_isAttached'],this['_diffRoots']['set'](_0x4a7d90,_0x211247),this['_diffRootsAttributes']['set'](_0x4a7d90,_0x1ce901);const _0x28ec51=this['_makeIdsRoot'](_0x211247,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a7d90,_0x28ec51),_0x40e819['set'](_0x4a7d90,_0x211247['isAttached']()?_0x1ce901:{});for(const [_0x2fee8a,_0x3a19d0]of _0x211247['markers']){if(!_0x2fee8a['startsWith']('revision:'))continue;const _0x55f95a=_0x2fee8a['split'](':')[0x2];for(const _0xb41b7b of _0x3a19d0['getWalker']({'singleCharacters':!0x0})){const _0x3cfcb0=this['_getVidAttributeName'](_0xb41b7b),_0x541f27=this['_revisionId']++,_0x504d4='elementEnd'==_0xb41b7b['type']?_0xb41b7b['previousPosition']['path']['slice'](0x0,-0x1):_0xb41b7b['previousPosition']['path'];_0x28ec51['getNodeByPath'](_0x504d4)['_setAttribute'](_0x3cfcb0,_0x541f27),this['_touched']['set'](_0x541f27,{'userId':_0x55f95a});}_0x211247['markers']['delete'](_0x2fee8a);}for(const _0x397fbd of this['editor']['model']['createRangeIn'](_0x211247)['getWalker']({'singleCharacters':!0x0})){const _0xd0a3d6=this['_getVidAttributeName'](_0x397fbd),_0x56e10d='elementEnd'==_0x397fbd['type']?_0x397fbd['previousPosition']['path']['slice'](0x0,-0x1):_0x397fbd['previousPosition']['path'],_0x325620=_0x28ec51['getNodeByPath'](_0x56e10d);_0x325620['getAttribute'](_0xd0a3d6)>0x0||_0x325620['_setAttribute'](_0xd0a3d6,_0x5b6800[_0x20fa24++]);}for(const [_0x84c18e,_0x3814a4]of _0x211247['markers'])_0x84c18e['startsWith']('revision:')||this['_markers']['set'](_0x84c18e,_0x3814a4);}const {roots:_0x53458d}=this['_savedMetaData']['get'](_0x2cabb8['fromVersion']),{roots:_0x4c3d57}=this['_savedMetaData']['get'](_0x2cabb8['toVersion']),_0x103b43=K(_0x53458d['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x103b43),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x103b43,Number['NEGATIVE_INFINITY']));const _0x507914=K(_0x4c3d57['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x507914),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x507914));const _0x7849a3=Array['from'](this['_diffRoots'])['map'](([_0x2a5158,_0x282b59])=>[_0x2a5158,K(_0x282b59)]);this['_saveMetaData'](this['_lastTo'],_0x7849a3,this['_markers'],_0x40e819);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x28cb5d,_0x22f8bf,_0x3aa360,_0x43a5c1){const _0xc76129=new Map(_0x22f8bf),_0x377a85=new Map(_0x1318b9(_0x43a5c1)),_0x15e1aa=new Map();for(const [_0x5674d8,_0x551d1b]of _0x3aa360)_0x15e1aa['set'](_0x5674d8,{'start':_0x551d1b['start']['clone'](),'end':_0x551d1b['end']['clone'](),'rootName':_0x551d1b['root']['rootName']});this['_savedMetaData']['set'](_0x28cb5d,{'roots':_0xc76129,'markers':_0x15e1aa,'rootsAttributes':_0x377a85});}['_removeMetaData'](_0x10e36e){this['_savedMetaData']['delete'](_0x10e36e);}['_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'](_0x53e68c,_0x263837=null){let _0x26136d=null;_0x53e68c['is']('documentFragment')||(_0x26136d=new _0x10eef6(_0x53e68c['name'],{'vid_start':null===_0x263837?this['_revisionId']++:_0x263837++}));const _0x348e15=[];for(const _0x231b6c of _0x53e68c['getChildren']())if(_0x231b6c['is']('element')){_0x348e15['push'](this['_makeIdsRoot'](_0x231b6c,_0x263837));const _0x30d3fa=_0x348e15[_0x348e15['length']-0x1];null!==_0x263837&&(_0x263837=_0x30d3fa['is']('element','$text')?_0x30d3fa['getAttribute']('vid')+0x1:_0x30d3fa['getAttribute']('vid_end')+0x1);}else{for(let _0x29fab2=0x0;_0x29fab2<_0x231b6c['offsetSize'];_0x29fab2++)_0x348e15['push'](new _0x10eef6('$text',{'vid':null===_0x263837?this['_revisionId']++:_0x263837++}));}if(_0x53e68c['is']('documentFragment')){const _0x7f9818=N(_0x53e68c['rootName']);return _0x7f9818['_insertChild'](0x0,_0x348e15),_0x7f9818;}return _0x26136d['_setAttribute']('vid_end',null===_0x263837?this['_revisionId']++:_0x263837++),_0x26136d['_insertChild'](0x0,_0x348e15),_0x26136d;}['_calculateMetaData'](_0x33e648,_0x3add46,_0x615961){this['_reset']();const {roots:_0x19c649,markers:_0x41955d,rootsAttributes:_0x18e77c}=this['_savedMetaData']['get'](_0x33e648);this['_baseRoots']=new Map(_0x19c649),this['_baseRootsAttributes']=new Map(_0x1318b9(_0x18e77c));for(const [_0x342b76,_0x5a84ad]of this['_baseRoots'])if('$graveyard'!==_0x342b76&&(this['_diffRoots']['set'](_0x342b76,K(_0x5a84ad)),this['_diffRootsAttributes']=new Map(_0x1318b9(_0x18e77c)),_0x615961)){const _0xbf3390=this['_revisionId'];this['_idsRoots']['set'](_0x342b76,this['_makeIdsRoot'](_0x5a84ad)),this['_baseIdsRoots']['set'](_0x342b76,this['_makeIdsRoot'](_0x5a84ad,_0xbf3390));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x615961&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3d8875,_0x134869]of _0x41955d){const _0x909390=this['_baseRoots']['get'](_0x134869['rootName']),_0x220d80=this['_diffRoots']['get'](_0x134869['rootName']),_0x38730f=new _0x2e34c5(this['_fixPosition'](_0x134869['start'],_0x909390),this['_fixPosition'](_0x134869['end'],_0x909390)),_0x388cb3=this['_fixRange'](_0x38730f,_0x220d80);_0x909390['markers']['set'](_0x3d8875,_0x38730f),this['_markers']['set'](_0x3d8875,_0x388cb3);}this['_applyOperations'](_0x33e648,_0x3add46,_0x615961);}['_applyOperations'](_0x4be29f,_0x293357,_0x219b8c){for(const _0xb4c80e of this['source']['getOperations'](_0x4be29f,_0x293357))this['_handleOperation'](_0xb4c80e,_0x219b8c);for(const _0x39caa6 of this['_diffRoots']['values']())_0x39caa6['markers']['clear']();for(const [_0x2d3c0c,_0x476c1f]of this['_markers']){this['_diffRoots']['get'](_0x476c1f['root']['rootName'])['markers']['set'](_0x2d3c0c,_0x476c1f['clone']());}const _0x3d8266=new Map(),_0x4d1be0=new Map();for(const [_0xc60fd2,_0x51d7cd]of this['_diffRoots'])_0x3d8266['set'](_0xc60fd2,K(_0x51d7cd)),_0x4d1be0['set'](_0xc60fd2,this['_diffRootsAttributes']['get'](_0xc60fd2));this['_saveMetaData'](_0x293357,_0x3d8266,this['_markers'],_0x4d1be0);}['_getPreviousFrom'](_0x16bb23){const _0x15f7df=Array['from'](this['_savedMetaData']['keys']());_0x15f7df['sort']((_0x2321a7,_0x5dc267)=>_0x2321a7-_0x5dc267),_0x15f7df['reverse']();for(const _0x21f7b7 of _0x15f7df)if(_0x21f7b7<_0x16bb23)return _0x21f7b7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12261b,_0x1306ea){const _0x3f338a=Array['from'](_0x1306ea['markers'])['map'](([_0x11dabe,_0x42935e])=>[_0x11dabe,this['_fixRange'](_0x42935e,_0x12261b)]);_0x12261b['markers']=new Map(_0x3f338a);}['_transformMarkers'](_0x10713e){for(const _0x6774e7 of this['_markers']['values']()){const _0x17d1c4=_0x6774e7['getTransformedByOperation'](_0x10713e),_0x1fcb19=_0x2e34c5['_createFromRanges'](_0x17d1c4);_0x6774e7['start']=_0x1fcb19['start'],_0x6774e7['end']=_0x1fcb19['end'];}}['_handleOperation'](_0x2add9b,_0x7e9db4){if('addRoot'!=_0x2add9b['type']&&'detachRoot'!=_0x2add9b['type']){if('insert'==_0x2add9b['type']){const _0x138483=_0x2add9b['position']['root']['rootName'];this['_diffRoots']['has'](_0x138483)||(this['_diffRoots']['set'](_0x138483,N(_0x138483,!0x0)),this['_diffRootsAttributes']['set'](_0x138483,{}),_0x7e9db4&&this['_idsRoots']['set'](_0x138483,N(_0x138483,!0x0)));}else{if('addRootAttribute'==_0x2add9b['type']||'removeRootAttribute'==_0x2add9b['type']||'changeRootAttribute'==_0x2add9b['type'])return void this['_handleRootAttributeOperation'](_0x2add9b);'marker'==_0x2add9b['type']&&this['_handleMarkerOperation'](_0x2add9b);}if('marker'!==_0x2add9b['type']){const _0x37b685=this['_cloneOperation'](_0x2add9b,this['_diffRoots']);_0x37b685['_execute'](),this['_transformMarkers'](_0x37b685);}if(_0x7e9db4)switch(_0x2add9b['type']){case'insert':this['_handleInsertOperation'](_0x2add9b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2add9b);break;case'merge':this['_handleMergeOperation'](_0x2add9b);break;case'split':this['_handleSplitOperation'](_0x2add9b);}}else this['_handleRootOperation'](_0x2add9b,_0x7e9db4);}['_cloneOperation'](_0x108cbf,_0x3ebb8b){const _0x58bbad=_0x108cbf['clone']();return _0x58bbad['_authorId']=_0x108cbf['_authorId'],this['_fixOperation'](_0x58bbad,_0x3ebb8b),_0x58bbad;}['_getBaseVids'](_0x31ea21){return _0x31ea21['map'](_0x3f406d=>{const _0x36156d=this['_getVidAttributeName'](_0x3f406d);return Number(_0x3f406d['item']['getAttribute'](_0x36156d));});}['_generateTape'](_0x91420,_0x29d914){if(_0x91420['is']('element','$text'))_0x29d914['push']({'item':_0x91420,'type':'text'});else{_0x91420['is']('element')&&_0x29d914['push']({'item':_0x91420,'type':'elementStart'});for(const _0xf1201d of _0x91420['getChildren']())this['_generateTape'](_0xf1201d,_0x29d914);_0x91420['is']('element')&&_0x29d914['push']({'item':_0x91420,'type':'elementEnd'});}return _0x29d914;}['_getState'](){const _0x11295c=new Map(this['_touched']),_0x50f2ba=new Map(_0x11295c),_0x987eb3=new Map(),_0x22dbb5={'insertions':{},'deletions':{}},_0x36e4f5={'insertions':{},'deletions':{}},_0x36ed89=new Map(),_0x2ee88e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2ee88e['delete']('$graveyard');for(const _0x34bbcd of _0x2ee88e){const _0x141c9f=this['_diffRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1),_0x130a5c=this['_baseRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1);_0x141c9f['isAttached']()||_0x130a5c['isAttached']()?(_0x22dbb5['insertions'][_0x34bbcd]=K(_0x141c9f),_0x22dbb5['deletions'][_0x34bbcd]=K(_0x130a5c),this['_copyMarkers'](_0x22dbb5['deletions'][_0x34bbcd],_0x130a5c),this['_copyMarkers'](_0x22dbb5['insertions'][_0x34bbcd],_0x141c9f),_0x36e4f5['insertions'][_0x34bbcd]=this['_generateTape'](this['_idsRoots']['get'](_0x34bbcd),[]),_0x36e4f5['deletions'][_0x34bbcd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1),[])):_0x2ee88e['delete'](_0x34bbcd);}for(const _0x3ea6ee of _0x2ee88e){const _0x4dfeba=_0x36e4f5['insertions'][_0x3ea6ee];for(const _0x840e14 of _0x4dfeba){const _0x3e5ee5=this['_getVidAttributeName'](_0x840e14),_0xf24477=_0x840e14['item']['getAttribute'](_0x3e5ee5);_0x50f2ba['delete'](_0xf24477),_0xf24477>=this['_startingRevisionId']&&_0x987eb3['set'](_0xf24477,_0x11295c['get'](_0xf24477));}}for(const _0x173ecc of _0x2ee88e){const _0x1286ff=_0x36e4f5['insertions'][_0x173ecc],_0x4c8304=this['_getBaseVids'](_0x36e4f5['deletions'][_0x173ecc]);let _0x12b25c=0x0;for(const _0x119515 of _0x1286ff){const _0x11b68c=this['_getVidAttributeName'](_0x119515),_0x525ee2=_0x119515['item']['getAttribute'](_0x11b68c);if(!_0x987eb3['has'](_0x525ee2)&&!_0x36ed89['has'](_0x525ee2)){if(_0x50f2ba['has'](_0x525ee2))_0x12b25c++;else{if(_0x525ee2!=_0x4c8304[_0x12b25c]){const _0x2b2b55=_0x11295c['get'](_0x525ee2)||_0x11295c['get'](_0x4c8304[_0x12b25c]);for(;_0x525ee2!=_0x4c8304[_0x12b25c];)_0x50f2ba['has'](_0x4c8304[_0x12b25c])||(_0x36ed89['set'](_0x4c8304[_0x12b25c],_0x2b2b55),_0x11295c['set'](_0x4c8304[_0x12b25c],_0x2b2b55)),_0x12b25c++;}_0x12b25c++;}}}}for(const _0x58349f of _0x2ee88e){const _0x42f587=_0x36e4f5['insertions'][_0x58349f];for(const _0xb4879 of _0x42f587){const _0xab0962=this['_getVidAttributeName'](_0xb4879),_0x1763f6=_0xb4879['item']['getAttribute'](_0xab0962);if(_0x36ed89['has'](_0x1763f6)){const _0x188595=_0x36ed89['get'](_0x1763f6);_0x50f2ba['has'](_0x1763f6)||_0x50f2ba['set'](_0x1763f6,{..._0x188595}),_0x987eb3['set'](_0x1763f6,{..._0x188595});}}}for(const _0x46379d of _0x50f2ba['keys']())_0x46379d>=this['_startingRevisionId']&&_0x50f2ba['delete'](_0x46379d);const _0x49bd23=new Map();for(const _0x45b305 of _0x2ee88e){let _0xd2b4d9=_0x36e4f5['insertions'][_0x45b305];for(const _0x57e01b of _0xd2b4d9)if(_0x57e01b['item']['is']('element','tableCell')){const _0x139e3c=this['_getVidAttributeName'](_0x57e01b),_0x11c841=_0x57e01b['item']['getAttribute'](_0x139e3c);if(_0x987eb3['has'](_0x11c841)){const _0x2b0931=_0x57e01b['item']['parent']['parent']['getAttribute']('vid_start'),_0x58fdc6=_0x49bd23['get'](_0x2b0931)||new Set();_0x58fdc6['add'](_0x987eb3['get'](_0x11c841)['userId']),_0x49bd23['set'](_0x2b0931,_0x58fdc6);}}_0xd2b4d9=_0x36e4f5['deletions'][_0x45b305];for(const _0x309a43 of _0xd2b4d9)if(_0x309a43['item']['is']('element','tableCell')){const _0x407e46=this['_getVidAttributeName'](_0x309a43),_0x28ceb7=_0x309a43['item']['getAttribute'](_0x407e46);if(_0x50f2ba['has'](_0x28ceb7)){const _0x236ab2=_0x309a43['item']['parent']['parent']['getAttribute']('vid_start'),_0x1035de=_0x49bd23['get'](_0x236ab2)||new Set();_0x1035de['add'](_0x50f2ba['get'](_0x28ceb7)['userId']),_0x49bd23['set'](_0x236ab2,_0x1035de);}}for(const _0x1d1722 of _0x49bd23['keys']())(_0x987eb3['has'](_0x1d1722)||_0x50f2ba['has'](_0x1d1722))&&_0x49bd23['delete'](_0x1d1722);}for(const _0xf96651 of _0x2ee88e){const _0x125c39=_0x36e4f5['insertions'][_0xf96651];let _0xfa6c81=null,_0x3b916c=null;for(const _0x5b8684 of _0x125c39){const _0x488e15=this['_getVidAttributeName'](_0x5b8684),_0x37ed00=_0x5b8684['item']['getAttribute'](_0x488e15),_0x37138e=_0x49bd23['get'](_0x37ed00);_0x37138e&&'elementStart'==_0x5b8684['type']&&(_0xfa6c81=Array['from'](_0x37138e)[0x0],_0x3b916c=_0x5b8684['item']['getAttribute']('vid_end')),_0xfa6c81&&(_0x50f2ba['set'](_0x37ed00,{'userId':_0xfa6c81}),_0x987eb3['set'](_0x37ed00,{'userId':_0xfa6c81})),_0x37ed00==_0x3b916c&&(_0xfa6c81=null,_0x3b916c=null);}}const _0x4284a1={},_0x3a49a8=new Set();for(const _0x3b74ea of _0x2ee88e){const _0xe8547=_0x22dbb5['deletions'][_0x3b74ea],_0x44e932=_0x22dbb5['insertions'][_0x3b74ea];for(const {userId:_0x449cd7}of this['_touchedMarkers']['values']())null!==_0x449cd7&&_0x3a49a8['add'](_0x449cd7);for(const {userId:_0x30af5d}of this['_touchedRoots']['values']())null!==_0x30af5d&&_0x3a49a8['add'](_0x30af5d);this['_markChanges'](_0x44e932,_0x36e4f5['insertions'][_0x3b74ea],_0x987eb3,'insertion',_0x3a49a8),this['_markChanges'](_0xe8547,_0x36e4f5['deletions'][_0x3b74ea],_0x50f2ba,'deletion',_0x3a49a8),_0x4284a1[_0x3b74ea]={'insertions':this['_prepareViewToSave'](_0x44e932),'deletions':this['_prepareViewToSave'](_0xe8547),'attachChange':this['_touchedRoots']['get'](_0x3b74ea)||null,'attributesBefore':_0x1318b9(this['_baseRootsAttributes']['get'](_0x3b74ea))||{},'attributesAfter':_0x1318b9(this['_diffRootsAttributes']['get'](_0x3b74ea))};}return{'diffData':_0x4284a1,'authorsIds':Array['from'](_0x3a49a8)};}['_processRootBeforeSave'](_0x59a9e0){for(const [,_0x49e354]of _0x59a9e0['markers']){const _0x3959fe=_0x49e354['start']['getAncestors']()['filter'](_0x20acde=>'tableCell'==_0x20acde['name']);for(const _0x58c130 of _0x3959fe)0x1==_0x58c130['childCount']&&_0x58c130['getChild'](0x0)['is']('element','paragraph')&&_0x58c130['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x959348){this['_processRootBeforeSave'](_0x959348);const _0xa0be60=this['editor']['data']['toView'](_0x959348,{}),_0x2aae25=Array['from'](_0xa0be60['getChildren']())['map'](_0x47cc0a=>this['_getViewJson'](_0x47cc0a));return JSON['stringify'](_0x2aae25);}['_getViewJson'](_0x2e9dfe){if(_0x2e9dfe['is']('$text'))return _0x2e9dfe['data'];{const _0x73d1b6=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5d0139=_0x2e9dfe,_0x56a398=this['editor']['data']['htmlProcessor']['domConverter'],_0x1bfec3={'type':_0x73d1b6['_getTypeCharForViewElement'](_0x5d0139),'name':_0x5d0139['name'],'attributes':Array['from'](_0x5d0139['getAttributes']()),'children':Array['from'](_0x5d0139['getChildren']())['map'](_0x1f62c0=>this['_getViewJson'](_0x1f62c0))};if(_0x2e9dfe['is']('uiElement')&&'$comment'!=_0x2e9dfe['name']){const _0x52f60b=_0x2e9dfe['render'](_0x56a398['domDocument'],_0x56a398);_0x1bfec3['children']['push'](_0x52f60b['outerHTML']);}else{if(_0x2e9dfe['is']('rawElement')){const _0x23a329=_0x56a398['domDocument']['createElement'](_0x5d0139['name']);_0x2e9dfe['render'](_0x23a329,_0x56a398),_0x1bfec3['children']['push'](_0x23a329['innerHTML']);}}const _0x3bba24=Array['from'](_0x5d0139['getCustomProperties']());_0x3bba24['length']>0x0&&(_0x1bfec3['customProperties']=_0x3bba24);const _0x218a4f=_0x5d0139['getFillerOffset']();return null!==_0x218a4f&&(_0x1bfec3['fillerOffset']=_0x218a4f),_0x1bfec3;}}['_markChanges'](_0x2e7bd7,_0x4c0184,_0x3ad7ff,_0x5b0df0,_0x5290ac){let _0x3e64d0=null,_0x260f77=null,_0x26c0c9=0x0;const _0x4638e6=this['editor']['model'];for(let _0x471e85=0x0;_0x471e85<_0x4c0184['length'];_0x471e85++){const _0x4535f8=this['_getVidAttributeName'](_0x4c0184[_0x471e85]),_0x51524c=_0x4c0184[_0x471e85]['item']['getAttribute'](_0x4535f8),_0x30f54e=_0x3ad7ff['get'](_0x51524c),_0x58b629=_0x471e85==_0x4c0184['length']-0x1;(!_0x3e64d0&&_0x30f54e&&(_0x3e64d0=_0x30f54e,_0x260f77=_0x4c0184[_0x471e85]),_0x3e64d0&&(!_0x30f54e||_0x30f54e['userId']!=_0x3e64d0['userId']))&&(_0x263dde(_0x30f54e,P(_0x260f77,_0x2e7bd7,_0x4638e6),P(_0x4c0184[_0x471e85],_0x2e7bd7,_0x4638e6)),_0x3e64d0=_0x30f54e||null,_0x260f77=_0x30f54e?_0x4c0184[_0x471e85]:null),_0x3e64d0&&_0x58b629&&_0x263dde(_0x30f54e,P(_0x260f77,_0x2e7bd7,_0x4638e6),V(_0x4c0184[_0x471e85],_0x2e7bd7,_0x4638e6));}function _0x263dde(_0x4dadd1,_0x459fa9,_0x33c8c1){const _0x12b416=_0x3e64d0['userId'],_0x2dde4a='revision:'+_0x5b0df0+':'+_0x12b416+':'+_0x26c0c9++,_0x84cba8=_0x4638e6['createRange'](_0x459fa9,_0x33c8c1);_0x2e7bd7['markers']['set'](_0x2dde4a,_0x84cba8),null!==_0x12b416&&_0x5290ac['add'](_0x12b416);}}['_getVidAttributeName'](_0x59b452){switch(_0x59b452['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa8f5f7,_0x31a661){_0xa8f5f7['baseVersion']=null;for(const _0x41b65a in _0xa8f5f7){const _0x3d37ff=_0xa8f5f7[_0x41b65a];if(_0x3d37ff instanceof _0x178c47){const _0x5e6ef3=_0x31a661['get'](_0x3d37ff['root']['rootName']);_0xa8f5f7[_0x41b65a]=this['_fixPosition'](_0x3d37ff,_0x5e6ef3);}if(_0x3d37ff instanceof _0x2e34c5){const _0x126779=_0x31a661['get'](_0x3d37ff['root']['rootName']);_0xa8f5f7[_0x41b65a]=this['_fixRange'](_0x3d37ff,_0x126779);}'root'===_0x41b65a&&(_0xa8f5f7['root']=_0x31a661['get'](_0xa8f5f7['root']['rootName']));}}['_fixRange'](_0x281aa1,_0x26cfb5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x281aa1['start'],_0x26cfb5),this['_fixPosition'](_0x281aa1['end'],_0x26cfb5));}['_fixPosition'](_0x52c1bb,_0xa747f3){return this['editor']['model']['createPositionFromPath'](_0xa747f3,_0x52c1bb['path'],_0x52c1bb['stickiness']);}['_handleInsertOperation'](_0x5dc080){const _0x3c69a8=this['_idsRoots']['get'](_0x5dc080['position']['root']['rootName']),_0x29726a=this['_fixPosition'](_0x5dc080['position'],_0x3c69a8),_0xf8761e=null===_0x5dc080['_authorId']?null:_0x5dc080['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ea5af=_0x29726a['parent'],_0x101d6f=this['_revisionId'],_0x57f4d1=[];for(const _0x22ad2b of _0x5dc080['nodes'])if(_0x22ad2b['is']('element'))_0x57f4d1['push'](this['_makeIdsRoot'](_0x22ad2b));else{for(let _0x513707=0x0;_0x513707<_0x22ad2b['offsetSize'];_0x513707++)_0x57f4d1['push'](new _0x10eef6('$text',{'vid':this['_revisionId']++}));}const _0x1f2633=this['_revisionId'];for(let _0x558f02=_0x101d6f;_0x558f02<_0x1f2633;_0x558f02++)this['_touched']['set'](_0x558f02,{'userId':_0xf8761e});_0x2ea5af['_insertChild'](_0x29726a['offset'],_0x57f4d1);}['_handleMoveOperation'](_0x52506f){(_0x52506f=this['_cloneOperation'](_0x52506f,this['_idsRoots']))['_execute']();const _0x3db134=null===_0x52506f['_authorId']?null:_0x52506f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c81ec=_0x52506f['getMovedRangeStart'](),_0x4142a7=_0x3c81ec['parent'],_0x2e4c19=_0x3c81ec['offset'];!function _0x151961(_0x460968,_0xcb7119,_0x1084d9,_0x4cc027){for(let _0x1bc6b9=_0x1084d9;_0x1bc6b9<_0x4cc027;_0x1bc6b9++){const _0x1e8270=_0xcb7119['getChild'](_0x1bc6b9);_0x1e8270['is']('element','$text')?_0x460968['set'](_0x1e8270['getAttribute']('vid'),{'userId':_0x3db134}):(_0x460968['set'](_0x1e8270['getAttribute']('vid_start'),{'userId':_0x3db134}),_0x151961(_0x460968,_0x1e8270,0x0,_0x1e8270['childCount']),_0x460968['set'](_0x1e8270['getAttribute']('vid_end'),{'userId':_0x3db134}));}}(this['_touched'],_0x4142a7,_0x2e4c19,_0x2e4c19+_0x52506f['howMany']);}['_handleMergeOperation'](_0x540ce9){const _0x17296e=null===(_0x540ce9=this['_cloneOperation'](_0x540ce9,this['_idsRoots']))['_authorId']?null:_0x540ce9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4adb1d=_0x540ce9['targetPosition']['parent'],_0x1db89d=_0x540ce9['sourcePosition']['parent'],_0xa39369=_0x4adb1d['getAttribute']('vid_end'),_0x3d0d6d=_0x1db89d['getAttribute']('vid_start');_0x4adb1d['_setAttribute']('vid_end',_0x1db89d['getAttribute']('vid_end')),_0x1db89d['_setAttribute']('vid_end',_0xa39369),this['_touched']['set'](_0x3d0d6d,{'userId':_0x17296e}),this['_touched']['set'](_0xa39369,{'userId':_0x17296e}),_0x540ce9['_execute']();}['_handleSplitOperation'](_0x40903a){const _0xcda1d9=null===(_0x40903a=this['_cloneOperation'](_0x40903a,this['_idsRoots']))['_authorId']?null:_0x40903a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x324007=_0x40903a['graveyardPosition'],_0x5b8bd7=_0x40903a['splitPosition']['parent'];_0x40903a['_execute']();const _0x36452c=_0x5b8bd7['getAttribute']('vid_end'),_0x1ada83=_0x40903a['insertionPosition']['nodeAfter'];if(_0x324007){const _0x324c3d=_0x1ada83['getAttribute']('vid_end'),_0x53f722=_0x5b8bd7['getAttribute']('vid_end');_0x5b8bd7['_setAttribute']('vid_end',_0x324c3d),_0x1ada83['_setAttribute']('vid_end',_0x53f722),this['_touched']['set'](_0x5b8bd7['getAttribute']('vid_end'),{'userId':_0xcda1d9}),this['_touched']['set'](_0x1ada83['getAttribute']('vid_start'),{'userId':_0xcda1d9});}else{const _0x3f00a7=this['_revisionId']++,_0x368f40=this['_revisionId']++;_0x5b8bd7['_setAttribute']('vid_end',_0x3f00a7),_0x1ada83['_setAttribute']('vid_start',_0x368f40),_0x1ada83['_setAttribute']('vid_end',_0x36452c),this['_touched']['set'](_0x3f00a7,{'userId':_0xcda1d9}),this['_touched']['set'](_0x368f40,{'userId':_0xcda1d9});}}['_handleMarkerOperation'](_0x3d3dcb){if(!_0x3d3dcb['affectsData'])return;const _0x598609=(_0x3d3dcb=this['_cloneOperation'](_0x3d3dcb,this['_diffRoots']))['oldRange']?_0x3d3dcb['oldRange']['root']:null,_0x126259=_0x3d3dcb['newRange']?_0x3d3dcb['newRange']['root']:null;_0x598609&&this['_markers']['delete'](_0x3d3dcb['name']),_0x126259&&this['_markers']['set'](_0x3d3dcb['name'],_0x3d3dcb['newRange']['clone']());const _0x2d188f=null===_0x3d3dcb['_authorId']?null:_0x3d3dcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d1bad=_0x3d3dcb['name'];if(!this['_touchedMarkers']['has'](_0x5d1bad))return void this['_touchedMarkers']['set'](_0x5d1bad,{'range':_0x3d3dcb['oldRange'],'userId':_0x2d188f});const _0x377944=this['_touchedMarkers']['get'](_0x5d1bad),_0x40e6f0=_0x377944['range'],_0x4e72d7=_0x3d3dcb['newRange'];null==_0x40e6f0&&null==_0x4e72d7||_0x40e6f0&&_0x4e72d7&&_0x40e6f0['isEqual'](_0x4e72d7)?this['_touchedMarkers']['delete'](_0x3d3dcb['name']):_0x377944['userId']=_0x2d188f;}['_handleRootOperation'](_0x21515b,_0x2fbffe){this['_diffRoots']['has'](_0x21515b['rootName'])?this['_diffRoots']['get'](_0x21515b['rootName'])['_isAttached']=_0x21515b['isAdd']:(this['_diffRoots']['set'](_0x21515b['rootName'],N(_0x21515b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x21515b['rootName'],{}),_0x2fbffe&&this['_idsRoots']['set'](_0x21515b['rootName'],N(_0x21515b['rootName'],!0x0)));const _0x4fae48=null===_0x21515b['_authorId']?null:_0x21515b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48a6b3=this['_touchedRoots']['get'](_0x21515b['rootName']);_0x48a6b3&&_0x48a6b3['userId']===_0x4fae48?this['_touchedRoots']['delete'](_0x21515b['rootName']):this['_touchedRoots']['set'](_0x21515b['rootName'],{'userId':_0x4fae48,'isAttached':_0x21515b['isAdd']});}['_handleRootAttributeOperation'](_0x3614ba){const _0x11cf6f=this['_diffRootsAttributes']['get'](_0x3614ba['root']['rootName']);null===_0x3614ba['newValue']?delete _0x11cf6f[_0x3614ba['key']]:_0x11cf6f[_0x3614ba['key']]=_0x3614ba['newValue'];}}function K(_0x74f6e7){const _0x413d98=N(_0x74f6e7['rootName'],_0x74f6e7['isAttached']());for(const _0x2e7b33 of _0x74f6e7['getChildren']()){const _0x374312=_0x2e7b33['_clone'](!0x0);_0x413d98['_appendChild'](_0x374312);}return _0x413d98;}function N(_0x4280f5,_0x4fcd5f=!0x0){const _0x22f810=new _0x1af8e3();return _0x22f810['rootName']=_0x4280f5,_0x22f810['_isAttached']=_0x4fcd5f,_0x22f810['isAttached']=()=>_0x22f810['_isAttached'],_0x22f810;}function P(_0x2de89b,_0x1189b1,_0x31a5af){const _0x3ba5ac='elementEnd'==_0x2de89b['type']?_0x31a5af['createPositionAt'](_0x2de89b['item'],'end'):_0x31a5af['createPositionBefore'](_0x2de89b['item']);return _0x31a5af['createPositionFromPath'](_0x1189b1,_0x3ba5ac['path'],_0x3ba5ac['stickiness']);}function V(_0x35612e,_0x27c7d4,_0x468e63){const _0x5d0b02='elementStart'==_0x35612e['type']?_0x468e63['createPositionAt'](_0x35612e['item'],0x0):_0x468e63['createPositionAfter'](_0x35612e['item']);return _0x468e63['createPositionFromPath'](_0x27c7d4,_0x5d0b02['path'],_0x5d0b02['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x31b636(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2f1d93){super(),this['id']=_0x2f1d93['id']||_0x3b18bf(),this['author']=_0x2f1d93['author'],this['type']=_0x2f1d93['type'],this['data']=_0x2f1d93['data']||{},this['rootName']=_0x2f1d93['rootName'],this['set']('createdAt',_0x2f1d93['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(_0x1629ca,_0x17c855){this['newRevisionId']=_0x1629ca,this['oldRevisionId']=_0x17c855,this['changes']=new _0x2be9e4();}['_setChanges'](_0x42a00a){for(const _0x1d0fd5 of _0x42a00a)this['changes']['add'](_0x1d0fd5);}}class u extends _0x460205{['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[_0x437785,_0x5f030d,S,$];}constructor(_0x3ecb63){super(_0x3ecb63),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',(_0xd66ef1,_0x352e04,_0x15e581)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2c4358=>{for(const _0x3f1faf of this['editor']['editing']['view']['document']['roots'])_0x15e581?_0x2c4358['removeClass']('ck-editor__editable__overlay',_0x3f1faf):_0x2c4358['addClass']('ck-editor__editable__overlay',_0x3f1faf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x464541=>null!==_0x464541),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3f57b9,_0x2e7918,_0x59f7a8)=>_0x3f57b9&&_0x59f7a8?_0x2e7918['changes']['getIndex'](_0x59f7a8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30b944,_0x19c85e)=>_0x30b944?_0x19c85e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5f030d);}['init'](){const _0x29357b=this['editor'],_0xf324d8=new rt(_0x29357b,{'direction':'backward'}),_0x5508fa=new rt(_0x29357b,{'direction':'forward'});(_0x29357b['commands']['add']('showPreviousChange',_0xf324d8),_0x29357b['commands']['add']('showNextChange',_0x5508fa),_0x29357b['commands']['add']('restoreRevision',new nt(_0x29357b)),this['on']('change:numberOfChanges',()=>{_0xf324d8['refresh'](),_0x5508fa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x29357b['enableReadOnlyMode']('revision-viewer'),_0x29357b['plugins']['has']('WidgetToolbarRepository'))&&_0x29357b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x117086){return await this['_utils']['loadRevisionData'](_0x117086,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x117086);}async['getRevisionRootsAttributes'](_0x4045e4){return await this['_utils']['loadRevisionData'](_0x4045e4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4045e4);}async['compare'](_0xb27163,_0x24a77a,_0x482828=!0x1){if(!this['isEnabled'])return;const _0x3534e3=this['diff'],_0x380632=this['repository'],_0x2c3e77='string'==typeof _0xb27163?_0x380632['getRevision'](_0xb27163):_0xb27163,_0x272155='string'==typeof _0x24a77a?_0x380632['getRevision'](_0x24a77a):_0x24a77a,_0x33f4d1=_0x2c3e77['id'],_0x3bfa57=_0x272155?_0x272155['id']:null;if(!_0x482828&&this['diff']&&this['diff']['newRevisionId']===_0x33f4d1&&this['diff']['oldRevisionId']===_0x3bfa57)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x33f4d1,_0x3bfa57);const _0x5d96ad=this['_getRevisionsRange'](_0x2c3e77,_0x272155,!0x0)['map'](_0x1158be=>this['_utils']['loadRevisionData'](_0x1158be,this['adapter']));return _0x5d96ad['push'](new Promise(_0x3e8b74=>{setTimeout(_0x3e8b74,0x14);})),Promise['all'](_0x5d96ad)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f0904=this['_getDiff'](_0x33f4d1,_0x3bfa57);for(const _0x35891b of _0x5f0904['changes'])this['_changeIdToChange']['set'](_0x35891b['id'],_0x35891b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x35134b=>{for(const _0xe8435f of this['editor']['model']['document']['getRootNames']())_0x35134b['detachRoot'](_0xe8435f);for(const _0x31e9b2 of Object['keys'](_0x5f0904['model'])){const _0x2c0337=_0x35134b['addRoot'](_0x31e9b2);for(const _0x4e3a65 of Object['keys'](_0x5f0904['attributes'][_0x31e9b2]))_0x35134b['setAttribute'](_0x4e3a65,_0x5f0904['attributes'][_0x31e9b2][_0x4e3a65],_0x2c0337);_0x35134b['insert'](_0x5f0904['model'][_0x31e9b2],_0x2c0337,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5f0904['changes'])),this['isReady']=!0x0;})['catch'](_0x339832=>{console['error'](_0x339832),this['_cleanUp'](),_0x3534e3&&(this['diff']=_0x3534e3),this['isReady']=!0x0;});}['addRevisionData'](_0x1f1183,_0x491f01){const _0x429dd0=this['repository']['createRevision'](_0x1f1183);return _0x429dd0['on']('_update',(_0x5111a1,_0x46ae2b,_0x431ee7)=>_0x491f01(_0x46ae2b,_0x431ee7,_0x429dd0)),this['repository']['addRevision'](_0x429dd0),_0x429dd0;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x52a471=>{for(const _0x5af8dd of this['editor']['model']['document']['getRootNames']())_0x52a471['detachRoot'](_0x5af8dd);});}['_sortAndFilterDiffChanges'](_0x5ee0b6){const _0x53df67=[],_0x2cdc2d=new Map();for(const _0x8727cb of this['editor']['model']['document']['getRootNames']()){const _0x3861fb=this['editor']['editing']['view']['getDomRoot'](_0x8727cb);if(!_0x3861fb)continue;const _0x444526=_0x3861fb['getClientRects']()['item'](0x0);_0x444526&&(_0x53df67['push'](_0x8727cb),_0x2cdc2d['set'](_0x8727cb,_0x444526));}return _0x53df67['sort']((_0x500cb4,_0x33dda7)=>{const _0x174972=_0x2cdc2d['get'](_0x500cb4),_0x429d8a=_0x2cdc2d['get'](_0x33dda7);return _0x174972['y']-_0x429d8a['y']||_0x174972['x']-_0x429d8a['x'];}),(_0x5ee0b6=_0x5ee0b6['filter'](_0x34a876=>_0x53df67['includes'](_0x34a876['rootName'])))['sort']((_0x266a22,_0x4f190f)=>_0x53df67['indexOf'](_0x266a22['rootName'])-_0x53df67['indexOf'](_0x4f190f['rootName'])),_0x5ee0b6;}['_makeTape'](_0x349c05){const _0x3871b3=Array['from'](_0x349c05['markers'])['filter'](([_0x48e1d2,_0x5ee9de])=>_0x48e1d2['startsWith']('revision:')&&!_0x5ee9de['isCollapsed']),_0x520500=Array['from'](this['editor']['model']['createRangeIn'](_0x349c05)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3871b3['length'])for(const _0x54d513 of _0x520500){const [_0xbe9ec6,_0x3b1db0]=_0x3871b3[0x0],[,_0x2eb811,_0x425cd1]=_0xbe9ec6['split'](':');if(_0x3b1db0['end']['isEqual'](_0x54d513['nextPosition'])&&_0x3871b3['shift'](),(_0x54d513['previousPosition']['isEqual'](_0x3b1db0['start'])||_0x54d513['previousPosition']['isAfter'](_0x3b1db0['start']))&&('insertion'==_0x2eb811?_0x54d513['isAdded']={'userId':_0x425cd1}:'deletion'==_0x2eb811&&(_0x54d513['isRemoved']={'userId':_0x425cd1})),0x0==_0x3871b3['length'])break;}return _0x520500;}['_refreshStartEndIndex'](_0x39572d){const _0x45c0d2=new Map();for(let _0x15b1f1=0x0;_0x15b1f1<_0x39572d['length'];_0x15b1f1++)'text'===_0x39572d[_0x15b1f1]['type']?(_0x39572d[_0x15b1f1]['item']['startIndex']=_0x15b1f1,_0x39572d[_0x15b1f1]['item']['endIndex']=_0x15b1f1):('elementStart'===_0x39572d[_0x15b1f1]['type']?_0x39572d[_0x15b1f1]['item']['startIndex']=_0x15b1f1:'elementEnd'===_0x39572d[_0x15b1f1]['type']&&(_0x39572d[_0x15b1f1]['item']['endIndex']=_0x15b1f1),_0x45c0d2['set'](_0x39572d[_0x15b1f1]['id'],_0x15b1f1));for(const _0x463bb5 of _0x45c0d2['values']())'elementStart'===_0x39572d[_0x463bb5]['type']?_0x39572d[_0x463bb5]['item']['endIndex']=_0x45c0d2['get'](_0x39572d[_0x463bb5]['pairId']):'elementEnd'===_0x39572d[_0x463bb5]['type']&&(_0x39572d[_0x463bb5]['item']['startIndex']=_0x45c0d2['get'](_0x39572d[_0x463bb5]['pairId']));}['_processTape'](_0x58975b){for(let _0xcda1cd=0x0;_0xcda1cd<_0x58975b['length'];_0xcda1cd++){if('elementStart'===_0x58975b[_0xcda1cd]['type'])_0x58975b[_0xcda1cd]['item']['startIndex']=_0xcda1cd;else{if('elementEnd'===_0x58975b[_0xcda1cd]['type']){_0x58975b[_0xcda1cd]['item']['endIndex']=_0xcda1cd;const _0x39ffae=_0x58975b[_0xcda1cd]['item']['startIndex'];_0x58975b[_0x39ffae]['pairId']=_0x58975b[_0xcda1cd]['id'],_0x58975b[_0xcda1cd]['pairId']=_0x58975b[_0x39ffae]['id'];}else _0x58975b[_0xcda1cd]['item']['startIndex']=_0xcda1cd,_0x58975b[_0xcda1cd]['item']['endIndex']=_0xcda1cd,_0x58975b[_0xcda1cd]['pairId']=null;}_0x58975b[_0xcda1cd]['markersStart']||(_0x58975b[_0xcda1cd]['markersStart']=[],_0x58975b[_0xcda1cd]['markersEnd']=[]);}}['_markInsertions'](_0x1bbcb8,_0x25fc77){const _0x927d51=_0x1bbcb8['filter'](_0x30f962=>!_0x30f962['isAdded']);for(let _0x1a8b10=0x0;_0x1a8b10<_0x25fc77['length'];_0x1a8b10++)_0x25fc77[_0x1a8b10]['isAdded']&&(_0x927d51[_0x1a8b10]['isAdded']=_0x25fc77[_0x1a8b10]['isAdded']);}['_getDiff'](_0x2f4a7f,_0x3a4bea=null){const _0x5c206e=this['repository']['getRevision'](_0x2f4a7f),_0x2d36ec=_0x3a4bea?this['repository']['getRevision'](_0x3a4bea):null,_0x33f64d=this['_getRevisionsRange'](_0x5c206e,_0x2d36ec),_0x3482e0=_0x33f64d[_0x33f64d['length']-0x1],_0x228236=new Map(),_0x23a371={'model':{},'attributes':{},'changes':[]},_0x17c459=new Set(),_0x316ad0=new Map();for(let _0x10e6fd=_0x33f64d['length']-0x1;_0x10e6fd>=0x0;_0x10e6fd--){const _0x462d0c=_0x33f64d[_0x10e6fd];for(const _0x44b178 of Object['keys'](_0x462d0c['diffData']))if(_0x462d0c['diffData'][_0x44b178]['attachChange']){const _0x3e5d3e=_0x462d0c['diffData'][_0x44b178]['attachChange'];_0x3e5d3e['isAttached']?(_0x17c459['add'](_0x44b178),_0x316ad0['has'](_0x44b178)&&_0x316ad0['get'](_0x44b178)['userId']==_0x3e5d3e['userId']?_0x316ad0['delete'](_0x44b178):_0x316ad0['set'](_0x44b178,_0x3e5d3e)):_0x316ad0['has'](_0x44b178)?(_0x17c459['delete'](_0x44b178),_0x316ad0['delete'](_0x44b178)):(_0x17c459['add'](_0x44b178),_0x316ad0['set'](_0x44b178,_0x3e5d3e));}else _0x17c459['add'](_0x44b178);}for(const _0x1eec13 of _0x17c459){const _0x3a3669=_0x316ad0['has'](_0x1eec13)&&!_0x316ad0['get'](_0x1eec13)['isAttached'];let _0x3064b8=_0x3a3669?_0x33f64d['length']-0x1:0x0;const _0x34992e=_0x3a3669?-0x1:0x1;for(;_0x33f64d[_0x3064b8];){const _0x44244b=_0x33f64d[_0x3064b8];if(_0x44244b['diffData'][_0x1eec13]){const _0x30adda=_0x3a3669?_0x44244b['diffData'][_0x1eec13]['attributesBefore']:_0x44244b['diffData'][_0x1eec13]['attributesAfter'];_0x23a371['attributes'][_0x1eec13]=_0x30adda?_0x1318b9(_0x30adda):{};break;}_0x3064b8+=_0x34992e;}}for(const _0x4ccc2b of _0x33f64d){_0x4ccc2b['model']={};for(const _0x509e97 of _0x4ccc2b['authors'])_0x228236['set'](_0x509e97['id'],_0x509e97);for(const _0x57c0b7 of _0x17c459){const _0xd817fa=_0x4ccc2b['diffData'][_0x57c0b7]?_0x4ccc2b['diffData'][_0x57c0b7]['insertions']:'[]',_0x2ae166=_0x4ccc2b['diffData'][_0x57c0b7]?_0x4ccc2b['diffData'][_0x57c0b7]['deletions']:'[]';_0x4ccc2b['model'][_0x57c0b7]={'insertions':this['_utils']['_makeModelFromViewString'](_0xd817fa),'deletions':this['_utils']['_makeModelFromViewString'](_0x2ae166)};}}for(const _0x3a26fb of _0x17c459){let _0x373ccb=null,_0x356bf8=0x0;const _0x3c33c6=new Map(Array['from'](_0x5c206e['model'][_0x3a26fb]['insertions']['markers'])['filter'](([_0xf27a30])=>!_0xf27a30['startsWith']('revision:')));let _0x2c90d9=0x0;for(const _0x5a37fe of _0x33f64d){const _0x1bd323=this['_makeTape'](_0x5a37fe['model'][_0x3a26fb]['insertions']);_0x5a37fe==_0x5c206e?(_0x373ccb=_0x1bd323,_0x356bf8=_0x373ccb['length'],_0x373ccb['forEach'](_0x2497f1=>{_0x2497f1['id']=_0x2c90d9++;}),this['_processTape'](_0x373ccb)):this['_markInsertions'](_0x373ccb,_0x1bd323);const _0x494fc1=_0x373ccb['filter'](_0x3f56bd=>!_0x3f56bd['isAdded'])['map'](_0x17f420=>_0x17f420['id']);let _0x5df528=0x0;const _0x119331=this['_makeTape'](_0x5a37fe['model'][_0x3a26fb]['deletions']);_0x119331['forEach'](_0x127f32=>{_0x127f32['isRemoved']?_0x127f32['id']=_0x356bf8++:_0x127f32['id']=_0x494fc1[_0x5df528++];}),this['_processTape'](_0x119331),this['_setDistance'](_0x373ccb,'isAdded'),this['_setDistance'](_0x119331,'isRemoved'),_0x5a37fe==_0x5c206e&&this['_markMarkers'](_0x373ccb,_0x3c33c6),_0x373ccb=this['_joinTapes'](_0x373ccb,_0x119331),this['_refreshStartEndIndex'](_0x373ccb),this['_setDistance'](_0x373ccb,'isRemoved');}_0x373ccb=_0x373ccb['filter'](_0x13c60a=>!(_0x13c60a['isAdded']&&_0x13c60a['isRemoved']));const _0x22126e=new Map(_0x3482e0['model'][_0x3a26fb]['deletions']['markers']),_0x4220e0=new Set(_0x3c33c6['keys']());for(const _0x3929c2 of _0x22126e['keys']())_0x4220e0['delete'](_0x3929c2);this['_markSuggestions'](_0x373ccb,_0x4220e0),this['_fixObsoleteTags'](_0x373ccb),_0x373ccb=this['_removeMissingPairs'](_0x373ccb),_0x373ccb=this['_markMismatchedRemovedTags'](_0x373ccb),_0x373ccb=this['_removeUnsupportedChanges'](_0x373ccb);const {root:_0x959694,changes:_0x58ccc0}=this['_makeModelFromTape'](_0x373ccb,_0x228236,_0x3a26fb);_0x23a371['model'][_0x3a26fb]=_0x959694;const _0x56c012=_0x316ad0['get'](_0x3a26fb);if(_0x56c012){const _0x4ae47d=_0x228236['get'](_0x56c012['userId']),_0x3b55cf=new G({'author':_0x4ae47d,'type':_0x56c012['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a26fb});_0x58ccc0['unshift'](_0x3b55cf),_0x23a371['attributes'][_0x3a26fb]['revisionHistoryAttachChange']=_0x3b55cf['id'];}_0x23a371['changes']=_0x23a371['changes']['concat'](_0x58ccc0);}return _0x23a371;}['_markMarkers'](_0x11619c,_0x484689){for(let _0x21e3fc=0x0;_0x21e3fc<_0x11619c['length'];_0x21e3fc++)for(const [_0x488797,_0x463313]of _0x484689)!_0x463313['isCollapsed']&&_0x463313['start']['isEqual'](_0x11619c[_0x21e3fc]['previousPosition'])&&_0x11619c[_0x21e3fc]['markersStart']['push'](_0x488797),_0x463313['end']['isEqual'](_0x11619c[_0x21e3fc]['nextPosition'])&&_0x11619c[_0x21e3fc]['markersEnd']['push'](_0x488797);}['_joinTapes'](_0x5e0818,_0x5ad06d){let _0x379d76=[],_0x319b02=0x0,_0x5c8738=0x0;for(;_0x319b02<_0x5e0818['length']||_0x5c8738<_0x5ad06d['length'];){const _0x9613d3=_0x5e0818[_0x319b02]||{},_0x4a32f7=_0x5ad06d[_0x5c8738]||{};if(_0x9613d3['id']==_0x4a32f7['id'])_0x319b02++,_0x5c8738++,_0x379d76['push'](_0x9613d3);else{if(_0x4a32f7['isRemoved']&&_0x9613d3['isAdded']){const {commonTape:_0x518a78,iEnd:_0x258fe2,jEnd:_0x1ebec4}=this['_threeWayMerge'](_0x5e0818,_0x319b02,_0x5ad06d,_0x5c8738);_0x379d76=_0x379d76['concat'](_0x518a78),_0x319b02=_0x258fe2,_0x5c8738=_0x1ebec4;}else _0x4a32f7['isRemoved']?(_0x5c8738++,_0x379d76['push'](_0x4a32f7)):(_0x319b02++,_0x379d76['push'](_0x9613d3));}}return _0x379d76;}['_markSuggestions'](_0x1001fb,_0xd5f54f){const _0x3d5f39=[];for(let _0x5e1558=0x0;_0x5e1558<_0x1001fb['length'];_0x5e1558++){for(let _0x29d551=0x0;_0x29d551<_0x1001fb[_0x5e1558]['markersStart']['length'];_0x29d551++){const _0x3bcd8a=_0x1001fb[_0x5e1558]['markersStart'][_0x29d551];if(!_0xd5f54f['has'](_0x3bcd8a))continue;const {group:_0x806f36,type:_0x460b6e,authorId:_0x2ef17d}=_0x38c1da(_0x3bcd8a);'revision-suggestion'!=_0x806f36||'insertion'!=_0x460b6e&&'deletion'!=_0x460b6e||(_0x3d5f39['unshift']({'type':_0x460b6e,'name':_0x3bcd8a,'userId':_0x2ef17d}),_0x1001fb[_0x5e1558]['markersStart']['splice'](_0x29d551,0x1),_0x29d551--);}_0x29f289(_0x1001fb[_0x5e1558]);for(let _0x19d74d=0x0;_0x19d74d<_0x1001fb[_0x5e1558]['markersEnd']['length'];_0x19d74d++){const _0x36e835=_0x1001fb[_0x5e1558]['markersEnd'][_0x19d74d];if(!_0xd5f54f['has'](_0x36e835))continue;const {group:_0x212370,type:_0x2b3ed0}=_0x38c1da(_0x36e835);if('revision-suggestion'!=_0x212370||'insertion'!=_0x2b3ed0&&'deletion'!=_0x2b3ed0)continue;_0x1001fb[_0x5e1558]['markersEnd']['splice'](_0x19d74d,0x1),_0x19d74d--;const _0x59959a=_0x3d5f39['findIndex'](_0x274bed=>_0x274bed['name']==_0x36e835);_0x59959a>-0x1&&_0x3d5f39['splice'](_0x59959a,0x1);}}function _0x38c1da(_0x2fa29d){const _0x5a3077=_0x2fa29d['split'](':');return{'group':_0x5a3077[0x0],'type':_0x5a3077[0x1],'subType':_0x5a3077['length']>=0x5?_0x5a3077[0x2]:null,'id':_0x5a3077['length']<0x5?_0x5a3077[0x2]:_0x5a3077[0x3],'authorId':_0x5a3077['length']<0x5?_0x5a3077[0x3]:_0x5a3077[0x4],'markerCount':0x6==_0x5a3077['length']?_0x5a3077[0x5]:null};}function _0x29f289(_0x361cca){for(let _0x2219fe=0x0;_0x2219fe<_0x3d5f39['length'];_0x2219fe++){if(_0x361cca['isAdded']&&'insertion'==_0x3d5f39[_0x2219fe]['type']&&_0x361cca['isAdded']['userId']==_0x3d5f39[_0x2219fe]['userId'])return _0x361cca['isAddSuggestion']=_0x3d5f39[_0x2219fe],void delete _0x361cca['isAdded'];if(!_0x361cca['isAdded']&&!_0x361cca['isRemoved']&&'deletion'==_0x3d5f39[_0x2219fe]['type'])return void(_0x361cca['isRemoveSuggestion']=_0x3d5f39[_0x2219fe]);}}}['_setDistance'](_0x4ef6fd,_0x1f768d){let _0x30892c=0x0,_0x57a664=!0x1;const _0x7f5add=new Map();for(const _0x332028 of _0x4ef6fd)_0x332028[_0x1f768d]?_0x57a664&&(_0x30892c++,_0x57a664=!0x1):(_0x30892c++,_0x57a664=!0x0),_0x7f5add['set'](_0x332028['id'],_0x30892c);for(let _0x62b0f3=0x0;_0x62b0f3<_0x4ef6fd['length'];_0x62b0f3++){if('isRemoved'==_0x1f768d&&_0x4ef6fd[_0x62b0f3]['isAdded']||'isAdded'==_0x1f768d&&_0x4ef6fd[_0x62b0f3]['isRemoved'])continue;if('text'==_0x4ef6fd[_0x62b0f3]['type']){_0x4ef6fd[_0x62b0f3]['distance']=0x0;continue;}const _0x1a21a0=_0x7f5add['get'](_0x4ef6fd[_0x62b0f3]['pairId']),_0xa92ecd=_0x7f5add['get'](_0x4ef6fd[_0x62b0f3]['id']);_0x4ef6fd[_0x62b0f3]['distance']=_0x1a21a0-_0xa92ecd;}}['_getRevisionsRange'](_0x3fca95,_0x591e18,_0x1bb6a0=!0x1){const _0xff1629=[];let _0x162b97=this['repository']['getIndex'](_0x3fca95),_0x1b2c86=this['repository']['getIndex'](_0x591e18);for(-0x1==_0x1b2c86&&(_0x1b2c86=this['repository']['_revisions']['length'],_0x1bb6a0=!0x1);_0x162b97<_0x1b2c86;)_0xff1629['push'](this['repository']['getRevision'](_0x162b97)),_0x162b97++;return _0x1bb6a0&&_0xff1629['push'](this['repository']['getRevision'](_0x162b97)),_0xff1629;}['_threeWayMerge'](_0x38820f,_0x535b9d,_0x55f5ff,_0x34a706){const _0x59ff65=this['editor']['model']['schema'];let _0x5b3a20=_0x535b9d;for(;_0x38820f[_0x5b3a20]&&_0x38820f[_0x5b3a20]['isAdded'];)_0x5b3a20++;let _0x390e3b=_0x34a706;for(;_0x55f5ff[_0x390e3b]&&_0x55f5ff[_0x390e3b]['isRemoved'];)_0x390e3b++;_0x515c7f(_0x38820f,_0x535b9d,_0x5b3a20),_0x515c7f(_0x55f5ff,_0x34a706,_0x390e3b);const _0x127c79=_0x55f5ff['slice'](_0x34a706,_0x390e3b)['concat'](_0x38820f['slice'](_0x535b9d,_0x5b3a20));return _0x127c79['sort']((_0x429353,_0x251a9e)=>_0x429353['side']!=_0x251a9e['side']?_0x429353['side']-_0x251a9e['side']:_0x429353['level']!=_0x251a9e['level']?_0x429353['level']-_0x251a9e['level']:_0x429353['distance']!=_0x251a9e['distance']?_0x251a9e['distance']-_0x429353['distance']:!!_0x429353['isAdded']!=!!_0x251a9e['isAdded']?-0x1==_0x429353['side']||0x0==_0x429353['side']?_0x429353['isAdded']?-0x1:0x1:_0x429353['isAdded']?0x1:-0x1:_0x429353['index']-_0x251a9e['index']),{'commonTape':_0x127c79,'iEnd':_0x5b3a20,'jEnd':_0x390e3b};function _0x515c7f(_0x15cea3,_0x58e7cf,_0x28fab2){let _0x281a2c=-0x1,_0x58196a=Number['POSITIVE_INFINITY'],_0x5347d2=!0x0;for(let _0x52c7c8=_0x58e7cf;_0x52c7c8<_0x28fab2;_0x52c7c8++)if(_0x59ff65['isInline'](_0x15cea3[_0x52c7c8]['item'])||(_0x5347d2=!0x1),_0x15cea3[_0x52c7c8]['item']['startIndex']<_0x58e7cf&&(_0x281a2c=_0x52c7c8),_0x15cea3[_0x52c7c8]['item']['endIndex']>=_0x28fab2){_0x58196a=_0x52c7c8;break;}_0x5347d2&&(_0x281a2c=_0x28fab2-0x1);for(let _0x491b12=_0x58e7cf;_0x491b12<_0x28fab2;_0x491b12++)_0x15cea3[_0x491b12]['side']=_0x491b12<=_0x281a2c?-0x1:_0x491b12<_0x58196a?0x0:0x1,_0x15cea3[_0x491b12]['index']=_0x491b12;let _0x1401bf=0x0;for(let _0xdbcd28=_0x58e7cf;_0xdbcd28<=_0x281a2c;_0xdbcd28++)0x0==_0x15cea3[_0xdbcd28]['distance']?_0x15cea3[_0xdbcd28]['level']=_0x1401bf:(_0x1401bf++,_0x15cea3[_0xdbcd28]['level']=_0x1401bf,_0x1401bf++);for(let _0x519e52=_0x58e7cf;_0x519e52<_0x28fab2;_0x519e52++)0x0==_0x15cea3[_0x519e52]['side']&&(_0x15cea3[_0x519e52]['level']=_0x1401bf);_0x1401bf=0x0;for(let _0x5b95fe=_0x28fab2-0x1;_0x5b95fe>=_0x58196a;_0x5b95fe--)0x0==_0x15cea3[_0x5b95fe]['distance']?_0x15cea3[_0x5b95fe]['level']=_0x1401bf:(_0x1401bf--,_0x15cea3[_0x5b95fe]['level']=_0x1401bf,_0x1401bf--);}}['_fixObsoleteTags'](_0x38a601){const _0x55dec9=new Map(),_0x4f15ca=this['editor']['model']['schema'];for(let _0x570416=0x1;_0x570416<_0x38a601['length'];_0x570416++){let _0x18a9b4,_0x59e535,_0x258071;const _0x334948=_0x38a601[_0x570416],_0x5d586d=_0x38a601[_0x570416-0x1];if('text'==_0x334948['type'])continue;if(_0x334948['type']!=_0x5d586d['type'])continue;if(!_0x4f15ca['isBlock'](_0x5d586d['item'])||_0x4f15ca['isLimit'](_0x5d586d['item']))continue;if(!_0x4f15ca['isBlock'](_0x334948['item'])||_0x4f15ca['isLimit'](_0x334948['item']))continue;if((_0x38a601[_0x570416]['isAdded']||_0x38a601[_0x570416]['isAddSuggestion'])&&_0x38a601[_0x570416-0x1]['isRemoved'])_0x18a9b4=_0x38a601[_0x570416],_0x59e535=_0x38a601[_0x570416-0x1],_0x258071=_0x570416-0x1;else{if(!_0x38a601[_0x570416]['isRemoved']||!_0x38a601[_0x570416-0x1]['isAdded']&&!_0x38a601[_0x570416-0x1]['isAddSuggestion'])continue;_0x18a9b4=_0x38a601[_0x570416-0x1],_0x59e535=_0x38a601[_0x570416],_0x258071=_0x570416;}const _0x54f293=_0x18a9b4['level']==_0x59e535['level'],_0x379e1e=Math['abs'](_0x18a9b4['level'])<Math['abs'](_0x59e535['level'])&&0x0==_0x59e535['distance'];(_0x54f293||_0x379e1e)&&(_0x55dec9['set'](_0x59e535['id'],_0x18a9b4['id']),_0x38a601['splice'](_0x258071,0x1),_0x570416--,_0x18a9b4['isAdded']=!0x1);}for(let _0x4dcd8f=0x0;_0x4dcd8f<_0x38a601['length'];_0x4dcd8f++)_0x55dec9['has'](_0x38a601[_0x4dcd8f]['pairId'])&&(_0x38a601[_0x4dcd8f]['pairId']=_0x55dec9['get'](_0x38a601[_0x4dcd8f]['pairId']));}['_removeMissingPairs'](_0x44aca1){const _0x2e64a8=new Set(_0x44aca1['map'](_0x57fbac=>_0x57fbac['id']));for(let _0x227b1c=0x0;_0x227b1c<_0x44aca1['length'];_0x227b1c++)_0x2e64a8['has'](_0x44aca1[_0x227b1c]['pairId'])||0x0==_0x44aca1[_0x227b1c]['distance']||(_0x44aca1[_0x227b1c]['isIncorrect']=!0x0);return _0x44aca1['filter'](_0x211428=>!_0x211428['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1755ca){const _0x1c2697=new Set();for(let _0x36e46c=0x0;_0x36e46c<_0x1755ca['length'];_0x36e46c++){if(_0x1c2697['has'](_0x1755ca[_0x36e46c]['id'])&&_0x1755ca[_0x36e46c]['isRemoved']&&(_0x1755ca[_0x36e46c]['isIncorrect']=!0x0),_0x1755ca[_0x36e46c]['isIncorrect'])continue;if(0x0==_0x1755ca[_0x36e46c]['distance'])continue;if('elementStart'!=_0x1755ca[_0x36e46c]['type'])continue;if(null==_0x1755ca[_0x36e46c]['pairId'])continue;let _0x33e598=_0x36e46c+0x1,_0x5d54f6=0x0;for(;_0x1755ca[_0x33e598]['id']!=_0x1755ca[_0x36e46c]['pairId'];)'elementStart'==_0x1755ca[_0x33e598]['type']?_0x5d54f6++:'elementEnd'==_0x1755ca[_0x33e598]['type']&&_0x5d54f6--,_0x33e598++;if(0x0!=_0x5d54f6){if(_0x1755ca[_0x36e46c]['isRemoved'])_0x1755ca[_0x36e46c]['isIncorrect']=!0x0;else{for(;_0x33e598!=_0x36e46c;)_0x1755ca[_0x33e598]['isRemoved']&&0x0!=_0x1755ca[_0x33e598]['distance']&&(_0x1755ca[_0x33e598]['isIncorrect']=!0x0,_0x1c2697['add'](_0x1755ca[_0x33e598]['pairId'])),_0x33e598--;}}}return _0x1755ca['filter'](_0x1c8498=>!_0x1c8498['isIncorrect']);}['_removeUnsupportedChanges'](_0x263a4f){const _0x34185e=this['editor']['model']['schema'];for(let _0xff4654=0x0;_0xff4654<_0x263a4f['length'];_0xff4654++){if(!(_0x263a4f[_0xff4654]['isAdded']||_0x263a4f[_0xff4654]['isAddSuggestion']||_0x263a4f[_0xff4654]['isRemoved']||_0x263a4f[_0xff4654]['isRemoveSuggestion']))continue;if(0x0==_0x263a4f[_0xff4654]['distance'])continue;const _0x12fd66=_0x263a4f[_0xff4654]['item'];_0x34185e['isBlock'](_0x12fd66)||_0x34185e['isLimit'](_0x12fd66)||(_0x263a4f[_0xff4654]['isAdded']&&delete _0x263a4f[_0xff4654]['isAdded'],_0x263a4f[_0xff4654]['isAddSuggestion']&&delete _0x263a4f[_0xff4654]['isAddSuggestion'],_0x263a4f[_0xff4654]['isRemoveSuggestion']&&delete _0x263a4f[_0xff4654]['isRemoveSuggestion'],_0x263a4f[_0xff4654]['isRemoved']&&(_0x263a4f[_0xff4654]['isIncorrect']=!0x0));}return _0x263a4f['filter'](_0x2cda21=>!_0x2cda21['isIncorrect']);}['_makeModelFromTape'](_0x35150b,_0xd6a67a,_0x140e3b){const _0x5bd26b=new _0x1af8e3(),_0x520694=[],_0x4020bc=new Map(),_0x557ee7=this['editor']['model'],_0x3f15d2=_0x557ee7['schema'],_0x4d1384=[_0x5bd26b],_0x322b22={},_0x36bacc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1c05ba=null;const _0x3cb4c2=[0x0];for(let _0x281d0e=0x0;_0x281d0e<_0x35150b['length'];_0x281d0e++)if('elementStart'===_0x35150b[_0x281d0e]['type']){_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2);const _0x5b223a=new _0x10eef6(_0x35150b[_0x281d0e]['item']['name'],_0x35150b[_0x281d0e]['item']['getAttributes']());_0x4d1384[0x0]['_appendChild'](_0x5b223a),_0x3cb4c2['push'](0x0),_0x4d1384['unshift'](_0x5b223a),_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2);}else'elementEnd'===_0x35150b[_0x281d0e]['type']?(_0x4d1384['shift'](),_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2),_0x3cb4c2['pop'](),_0x3cb4c2[_0x3cb4c2['length']-0x1]++,_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2)):(_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2),_0x1c05ba?_0x1c05ba['_data']+=_0x35150b[_0x281d0e]['item']['data']:_0x1c05ba=new _0xb02ee8(_0x35150b[_0x281d0e]['item']['data'],_0x35150b[_0x281d0e]['item']['getAttributes']()),_0x35150b[_0x281d0e+0x1]&&'text'===_0x35150b[_0x281d0e+0x1]['type']&&_0x499013(_0x1c05ba,_0x35150b[_0x281d0e+0x1]['item'])||(_0x4d1384[0x0]['_appendChild'](_0x1c05ba),_0x1c05ba=null),_0x3cb4c2[_0x3cb4c2['length']-0x1]+=_0x35150b[_0x281d0e]['item']['offsetSize'],_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2));for(let _0x2f233c=0x0;_0x2f233c<_0x35150b['length'];_0x2f233c++){const _0x399419=_0x35150b[_0x2f233c]['previousPosition'],_0x457a2a=_0x35150b[_0x2f233c]['nextPosition'];for(const _0x12e892 of _0x35150b[_0x2f233c]['markersStart'])_0x4020bc['set'](_0x12e892,{'start':_0x399419,'end':null});_0x30aff8('isRemoveSuggestion',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isAddSuggestion',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isRemoved',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isAdded',_0x2f233c,_0x399419,_0x457a2a);for(const _0x2d27ca of _0x35150b[_0x2f233c]['markersEnd']){const _0x4e155f=_0x4020bc['get'](_0x2d27ca);_0x4e155f?_0x4e155f['end']=_0x457a2a:_0x4020bc['set'](_0x2d27ca,{'start':_0x457a2a,'end':_0x457a2a});}}for(const [_0x2ca141,_0x5746e8]of _0x4020bc){const _0x8a5632=this['editor']['model']['createRange'](_0x5746e8['start'],_0x5746e8['end']);_0x5bd26b['markers']['set'](_0x2ca141,_0x8a5632);}return _0x520694['sort']((_0x838cef,_0x451b82)=>{const _0xbdd040=_0x5bd26b['markers']['get']('revision:'+_0x838cef['id']),_0x186a56=_0x5bd26b['markers']['get']('revision:'+_0x451b82['id']);return _0xbdd040['start']['isBefore'](_0x186a56['start'])?-0x1:_0xbdd040['start']['isAfter'](_0x186a56['start'])?0x1:_0xbdd040['end']['isBefore'](_0x186a56['end'])?-0x1:_0xbdd040['end']['isAfter'](_0x186a56['end'])?0x1:'add'===_0x838cef['type']?-0x1:0x1;}),{'root':_0x5bd26b,'changes':_0x520694};function _0x30aff8(_0x30db4e,_0x48017a,_0x557748,_0x1c150e){const _0x57eef0=!!_0x35150b[_0x48017a][_0x30db4e],_0x90f1f1=_0x57eef0?_0x35150b[_0x48017a][_0x30db4e]['userId']:null,_0x18068b=_0x48017a===_0x35150b['length']-0x1,_0x24838f=_0x36bacc[_0x30db4e][0x0],_0x5c6dbf=_0x3f15d2['isObject'](_0x35150b[_0x48017a]['item']);!_0x322b22[_0x30db4e]&&_0x57eef0?_0x322b22[_0x30db4e]={'start':_0x557748,'tapeItem':_0x35150b[_0x48017a],'userId':_0x90f1f1,'type':_0x30db4e}:_0x322b22[_0x30db4e]&&!_0x57eef0?(_0x322b22[_0x30db4e]['end']=_0x557748,_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]=null):_0x322b22[_0x30db4e]&&_0x57eef0&&_0x322b22[_0x30db4e]['userId']!==_0x90f1f1&&(_0x322b22[_0x30db4e]['end']=_0x557748,_0x24838f&&_0x24838f['userId']===_0x322b22[_0x30db4e]['userId']||_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]={'start':_0x557748,'tapeItem':_0x35150b[_0x48017a],'userId':_0x90f1f1,'type':_0x30db4e}),_0x322b22[_0x30db4e]&&_0x5c6dbf&&('elementStart'!==_0x35150b[_0x48017a]['type']||_0x24838f&&_0x24838f['userId']===_0x90f1f1||_0x36bacc[_0x30db4e]['unshift']({'userId':_0x90f1f1,'object':_0x35150b[_0x48017a]['item'],'change':_0x322b22[_0x30db4e]}),'elementEnd'===_0x35150b[_0x48017a]['type']&&_0x24838f&&_0x24838f['object']===_0x35150b[_0x48017a]['item']&&(_0x36bacc[_0x30db4e]['shift'](),_0x322b22[_0x30db4e]=_0x24838f['change'])),_0x322b22[_0x30db4e]&&_0x18068b&&(_0x322b22[_0x30db4e]['end']=_0x1c150e,_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]=null);}function _0x79e31e({start:_0x6635ca,end:_0x2ef0a0,tapeItem:_0x149d3a,userId:_0x4ecfd0,type:_0x5e2e6c}){const _0x5c35fb=_0x149d3a['item'],_0x15fc26=_0x557ee7['schema']['isBlock'](_0x5c35fb)&&!_0x557ee7['schema']['isLimit'](_0x5c35fb),_0x43232e=_0x6635ca['nodeAfter']==_0x2ef0a0['parent']&&_0x2ef0a0['isAtStart'];if(_0x15fc26&&_0x43232e)return;const _0x5030a4=_0x557ee7['createRange'](_0x6635ca,_0x2ef0a0),_0x4ad3fc=_0xd6a67a['get'](_0x4ecfd0),_0x2932da=new G({'author':_0x4ad3fc,'type':'isAdded'==_0x5e2e6c||'isAddSuggestion'==_0x5e2e6c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5e2e6c||'isRemoveSuggestion'==_0x5e2e6c},'createdAt':new Date(),'rootName':_0x140e3b});_0x520694['push'](_0x2932da),_0x5bd26b['markers']['set']('revision:'+_0x2932da['id'],_0x5030a4);}function _0x499013(_0x146414,_0x35d130){const _0x423ce8=_0x146414['getAttributes'](),_0x4fee65=_0x35d130['getAttributes']();for(const _0x48bacb of _0x423ce8){if(_0x48bacb[0x1]!==_0x35d130['getAttribute'](_0x48bacb[0x0]))return!0x1;_0x4fee65['next']();}return _0x4fee65['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x188676=>{const _0x2c97fe=_0x188676['markerName']['split'](':')[0x1],_0x4fa4ee=this['_getChangeFromId'](_0x2c97fe);if(!_0x4fa4ee)return null;const _0xa8d523='add'==_0x4fa4ee['type']?'insertion':'deletion',_0x447c8d=['ck-suggestion-marker','ck-suggestion-marker-'+_0xa8d523];return _0x4fa4ee['data']['isSuggestion']&&_0x447c8d['push']('ck-suggestion-marker-'+_0xa8d523+'-new'),this['activeChange']==_0x4fa4ee&&_0x447c8d['push']('ck-suggestion-marker--active'),{'classes':_0x447c8d,'attributes':{'data-change-id':_0x2c97fe}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x319794=>{_0x319794['on']('element:pre',(_0x2f0089,_0x2479fe,_0x39d471)=>{const _0x2eb7c0=_0x2479fe['viewItem']['getChild'](0x0);if(!_0x2eb7c0||!_0x2eb7c0['is']('element','code'))return;if(!_0x39d471['consumable']['consume'](_0x2eb7c0,{'attributes':['vid_start','vid_end']}))return;const _0x1c0031=_0x2479fe['modelRange']['start']['nodeAfter'];_0x39d471['writer']['setAttribute']('vid_start',_0x2eb7c0['getAttribute']('vid_start'),_0x1c0031),_0x39d471['writer']['setAttribute']('vid_end',_0x2eb7c0['getAttribute']('vid_end'),_0x1c0031);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1202c1=>{_0x1202c1['on']('element',(_0x2240a8,_0xed2906,_0x3d8070)=>{if(!_0x3d8070['consumable']['consume'](_0xed2906['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xed2906['modelRange']['isCollapsed'])return;const _0x4faef8=_0xed2906['modelRange']['start']['nodeAfter'];_0x4faef8['hasAttribute']('vid_start')||_0x4faef8['hasAttribute']('vid')||(_0x3d8070['writer']['setAttribute']('vid_start',_0xed2906['viewItem']['getAttribute']('vid_start'),_0x4faef8),_0x3d8070['writer']['setAttribute']('vid_end',_0xed2906['viewItem']['getAttribute']('vid_end'),_0x4faef8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ec05c=>_0x2ec05c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3898ad,[,_0x4b93e4])=>{['vid_start','vid_end','vid']['includes'](_0x4b93e4)&&(_0x3898ad['return']=!0x0,_0x3898ad['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x162c72=>{_0x162c72['on']('attribute:vid',(_0x3ae369,_0x3631ea,_0x289b0d)=>{if('\x20'!=_0x3631ea['item']['data']||_0x3631ea['item']['parent']['maxOffset']>0x1)return;if(!_0x289b0d['consumable']['consume'](_0x3631ea['item'],_0x3ae369['name']))return;const _0x65409c=_0x289b0d['writer'],_0x50f688=_0x289b0d['mapper']['toViewRange'](_0x3631ea['range']);_0x65409c['wrap'](_0x50f688,_0x65409c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1e2db3){const _0x165514=_0x1e2db3['plugins']['get']('RevisionViewer');return(_0x357fe5,_0x10fe4e,_0x233a6a)=>{const _0x491df8=_0x10fe4e['markerName']['split'](':')[0x1],_0x45a739=_0x165514['_getChangeFromId'](_0x491df8);if(!_0x45a739)return null;const _0x25d82e='add'==_0x45a739['type']?'split':'merge';if(!_0x233a6a['consumable']['test'](_0x10fe4e['markerRange'],_0x357fe5['name']))return;const _0x236e52=_0x10fe4e['markerRange']['getWalker'](),_0x4ace1f=_0x10fe4e['markerRange']['start'],_0x3f4a57=_0x1e2db3['model']['schema'];let _0x3d914e=null,_0x371e05=null,_0x45755b=!0x1,_0x34fdd9=!0x1;for(const _0x2f2220 of _0x236e52){const _0x190662=_0x2f2220['item'];_0x45755b=_0x45755b||_0x3f4a57['isContent'](_0x190662);const _0x10078b=_0x233a6a['mapper']['toViewElement'](_0x190662);if(_0x10078b&&_0x10078b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f2220['type']&&(_0x3f4a57['isBlock'](_0x190662)&&!_0x3f4a57['isLimit'](_0x190662)&&(_0x190662['nextSibling']||_0x4ace1f['isAtEnd']?_0x3d914e&&_0x3d914e['parent']==_0x190662||(_0x3d914e=_0x190662,_0x320a4e(_0x2f2220['previousPosition']),_0x34fdd9=!0x0):_0x371e05=_0x371e05||_0x2f2220['previousPosition']));}function _0x320a4e(_0x44bc94){const _0x2501ef=_0x233a6a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25d82e}),_0x385afe=_0x233a6a['mapper']['toViewPosition'](_0x44bc94);_0x45a739['data']['isSuggestion']&&_0x233a6a['writer']['addClass']('ck-suggestion-marker-'+_0x25d82e+'-new',_0x2501ef),_0x165514['activeChange']==_0x45a739&&_0x233a6a['writer']['addClass']('ck-suggestion-marker--active',_0x2501ef),_0x233a6a['writer']['insert'](_0x385afe,_0x2501ef),_0x233a6a['mapper']['bindElementToMarker'](_0x2501ef,_0x10fe4e['markerName']);}_0x45755b||_0x34fdd9||!_0x371e05||_0x320a4e(_0x371e05);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x128957,_0x3e2780,_0x6f6d4c)=>{const _0x26ceed=_0x6f6d4c['mapper']['markerNameToElements'](_0x3e2780['markerName']);if(_0x26ceed){for(const _0xad2067 of _0x26ceed)(_0xad2067['hasClass']('ck-suggestion-marker-split')||_0xad2067['hasClass']('ck-suggestion-marker-merge'))&&(_0x6f6d4c['mapper']['unbindElementFromMarkerName'](_0xad2067,_0x3e2780['markerName']),_0x6f6d4c['writer']['remove'](_0xad2067));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47eaeb,_0x44db70,_0x50be6d)=>{const _0x1d2a26=_0x44db70['markerName']['split'](':')[0x1],_0x6a0a71=this['_getChangeFromId'](_0x1d2a26);if(!_0x6a0a71)return null;const _0x292c95='add'==_0x6a0a71['type']?'split':'merge';if(_0x50be6d['consumable']['test'](_0x44db70['markerRange'],_0x47eaeb['name']))for(const _0xb5a2fc of _0x44db70['markerRange']['getItems']()){if(!_0xb5a2fc['is']('element','softBreak'))continue;const _0x381bc9=_0x50be6d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x292c95}),_0x21e895=_0x50be6d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xb5a2fc));_0x6a0a71['data']['isSuggestion']&&_0x50be6d['writer']['addClass']('ck-suggestion-marker-'+_0x292c95+'-new',_0x381bc9),this['activeChange']==_0x6a0a71&&_0x50be6d['writer']['addClass']('ck-suggestion-marker--active',_0x381bc9),_0x50be6d['writer']['insert'](_0x21e895,_0x381bc9),_0x50be6d['mapper']['bindElementToMarker'](_0x381bc9,_0x44db70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x529d5b=>{for(const _0x3fc598 of this['editor']['model']['document']['getRootNames']()){const _0xe56f10=this['editor']['model']['document']['getRoot'](_0x3fc598),_0x40f434=this['editor']['editing']['view']['document']['getRoot'](_0x3fc598);if(_0x40f434){const _0x531f25=_0xe56f10['getAttribute']('revisionHistoryAttachChange');if(_0x529d5b['removeAttribute']('data-change-id',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root-add',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root-remove',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root--active',_0x40f434),_0x531f25){const _0x1db0b5=this['_getChangeFromId'](_0x531f25);if(!_0x1db0b5)return null;_0x529d5b['setAttribute']('data-change-id',_0x531f25,_0x40f434),_0x529d5b['addClass']('ck-revision-history-root-'+_0x1db0b5['type'],_0x40f434),this['activeChange']==_0x1db0b5&&_0x529d5b['addClass']('ck-revision-history-root--active',_0x40f434);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e9f0b=>'revision-comment:'+_0x1e9f0b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3f99a5=>'revision-suggestion:'+_0x3f99a5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1abc67=>({'name':'suggestion:'+_0x1abc67,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x574945=>{const _0x13ff24=_0x574945['markerName']['split'](':')[0x1];return'insertion'!=_0x13ff24&&'deletion'!=_0x13ff24?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13ff24]};}}),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',(_0x22f52e,_0x32a0f9,_0x5e0b28)=>{const _0x1dcdc0=_0x5e0b28['mapper']['markerNameToElements'](_0x32a0f9['markerName']);if(_0x1dcdc0){for(const _0x5b5318 of _0x1dcdc0)_0x5b5318['is']('uiElement')&&(_0x5e0b28['mapper']['unbindElementFromMarkerName'](_0x5b5318,_0x32a0f9['markerName']),_0x5e0b28['writer']['remove'](_0x5b5318));}},{'priority':'high'});}['_getChangeFromId'](_0x355051){return this['_changeIdToChange']['get'](_0x355051);}['_getViewForChange'](_0x490602){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x490602),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a09c6,_0x2d64ff,_0x46d843,_0x21284a)=>{_0x21284a&&this['_balloon']['remove'](_0x21284a),_0x46d843&&(this['_balloon']['add']({'view':_0x46d843,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2b3051=this['editor']['editing'],_0x58f0ea=this['_getChangeFromId'](_0x46d843['changeId']);let _0x2346ed;if(_0x58f0ea['data']['isOnRoot']){const _0x490da0=_0x2b3051['view']['getDomRoot'](_0x58f0ea['rootName']);_0x2346ed=Array['from'](_0x490da0['getClientRects']());}else{const _0x11bcbf=this['editor']['model']['markers']['get']('revision:'+_0x46d843['changeId']);_0x2346ed=Array['from'](_0x2b3051['mapper']['markerNameToElements'](_0x11bcbf['name']))['map'](_0x4c7248=>_0x2b3051['view']['domConverter']['mapViewToDom'](_0x4c7248))['map'](_0x1973e7=>Array['from'](_0x1973e7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2346ed[0x0];return _0x2346ed['find'](_0x41c736=>_0x41c736['top']-0x3<=this['_activeViewTarget']['y']&&_0x41c736['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x41c736['left']-0x3<=this['_activeViewTarget']['x']&&_0x41c736['right']+0x3>=this['_activeViewTarget']['x'])||_0x2346ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5cd09c,_0x44dc74,_0x4bd4ec,_0x4e00fa)=>{this['activeView']=_0x4bd4ec?this['_getViewForChange'](_0x4bd4ec):null,this['editor']['model']['change'](()=>{const _0x833f6a=this['editor']['editing'];_0x4e00fa&&(_0x4e00fa['data']['isOnRoot']?_0x833f6a['view']['change'](_0x30609b=>{_0x30609b['removeClass']('ck-revision-history-root--active',_0x833f6a['view']['document']['getRoot'](_0x4e00fa['rootName']));}):_0x833f6a['reconvertMarker']('revision:'+_0x4e00fa['id'])),_0x4bd4ec&&(_0x4bd4ec['data']['isOnRoot']?_0x833f6a['view']['change'](_0x988696=>{_0x988696['addClass']('ck-revision-history-root--active',_0x833f6a['view']['document']['getRoot'](_0x4bd4ec['rootName']));}):_0x833f6a['reconvertMarker']('revision:'+_0x4bd4ec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2159eb,_0x1ce4c2)=>{if(this['activeChange'])return;const _0x29dc30=this['_findChangeIdFromDomTarget'](_0x1ce4c2['target']),_0x112303=this['_changeIdToChange']['get'](_0x29dc30);_0x112303?(this['_activeViewTarget']={'x':_0x1ce4c2['domEvent']['x'],'y':_0x1ce4c2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x112303)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ed479,_0x25f8a7)=>{const _0xbe8415=this['_findChangeIdFromDomTarget'](_0x25f8a7['target']),_0x355a4f=this['_changeIdToChange']['get'](_0xbe8415);_0x355a4f?(this['_activeViewTarget']={'x':_0x25f8a7['domEvent']['x'],'y':_0x25f8a7['domEvent']['y']},_0x355a4f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x355a4f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f9c43){do{const _0x4faebc=_0x2f9c43['getAttribute']('data-change-id');if(_0x4faebc)return _0x4faebc;_0x2f9c43=_0x2f9c43['parent'];}while(_0x2f9c43);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5a18e5=>{for(const _0x289a61 of this['editor']['model']['markers'])_0x5a18e5['removeMarker'](_0x289a61);});}}function Q(_0x503bd6,_0x530493){return(_0x3ff6a5,_0x3f08bc,_0x554a09)=>{if(!_0x554a09['consumable']['test'](_0x3f08bc['markerRange'],_0x3ff6a5['name']))return;const _0x169104=_0x3f08bc['markerRange']['getWalker'](),_0x427a97=_0x3f08bc['markerRange']['start'],_0x48d787=_0x503bd6['model']['schema'];let _0x25fa9a=null,_0x2d1977=null,_0x3c1521=!0x1,_0x24ea92=!0x1;for(const _0xe06976 of _0x169104){const _0xeaf540=_0xe06976['item'];_0x3c1521=_0x3c1521||_0x48d787['isContent'](_0xeaf540);const _0x3c7174=_0x554a09['mapper']['toViewElement'](_0xeaf540);if(_0x3c7174&&_0x3c7174['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe06976['type']&&(_0x48d787['isBlock'](_0xeaf540)&&!_0x48d787['isLimit'](_0xeaf540)&&(_0xeaf540['nextSibling']||_0x427a97['isAtEnd']?_0x25fa9a&&_0x25fa9a['parent']==_0xeaf540||(_0x25fa9a=_0xeaf540,_0x816c3b(_0xe06976['previousPosition']),_0x24ea92=!0x0):_0x2d1977=_0x2d1977||_0xe06976['previousPosition']));}function _0x816c3b(_0x1949fa){const _0x53b440=_0x554a09['mapper']['toViewPosition'](_0x1949fa),_0x5ced55=_0x554a09['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x530493});_0x554a09['writer']['insert'](_0x53b440,_0x5ced55),_0x554a09['mapper']['bindElementToMarker'](_0x5ced55,_0x3f08bc['markerName']);}_0x3c1521||_0x24ea92||!_0x2d1977||_0x816c3b(_0x2d1977);};}class nt extends _0x49200a{constructor(_0x5e372d){super(_0x5e372d);const _0x1fb5fc=_0x5e372d['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1fb5fc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1fb5fc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1af36d=this['editor'],_0x3c7a26=_0x1af36d['plugins']['get'](u),_0x5722ec=_0x3c7a26['isReady']?_0x3c7a26['diff']['newRevisionId']:null;_0x1af36d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5722ec);}['refresh'](){const {isReady:_0x1159b0,isEnabled:_0x1e6211,repository:_0x15257f,diff:_0x3eddd9}=this['editor']['plugins']['get'](u),_0x42bd21=_0x3eddd9&&_0x15257f['getLaterVisibleRevision'](_0x3eddd9['newRevisionId']);this['isEnabled']=_0x1159b0&&_0x1e6211&&Boolean(_0x42bd21);}}class rt extends _0x49200a{['_step'];constructor(_0x28e45d,{direction:_0x1d40e2}){super(_0x28e45d);const _0x58e4b5=_0x28e45d['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1d40e2?0x1:-0x1,this['listenTo'](_0x58e4b5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58e4b5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58e4b5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x55eb1a=this['editor'],_0x1cb1d6=_0x55eb1a['plugins']['get'](u),{isNavigationMode:_0x28c97e,currentChangeNumber:_0x1986cf}=_0x1cb1d6;let _0x224525;if(_0x1cb1d6['activeChange']=_0x28c97e?_0x1cb1d6['diff']['changes']['get'](_0x1986cf+this['_step']):_0x1cb1d6['diff']['changes']['first'],_0x1cb1d6['activeChange']['data']['isOnRoot'])_0x224525=_0x55eb1a['editing']['view']['getDomRoot'](_0x1cb1d6['activeChange']['rootName']);else{const _0x5ade4e=_0x55eb1a['model']['markers']['get']('revision:'+_0x1cb1d6['activeChange']['id']);_0x224525=_0x12cf46(_0x55eb1a['editing'],_0x5ade4e);}_0x22e24a({'target':_0x224525,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa2f6b2,currentChangeNumber:_0xecbfa1,numberOfChanges:_0x2caeff,isReady:_0x48bb7c,isEnabled:_0x17309d}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x17309d&&_0x48bb7c&&_0x2caeff)&&(!_0xa2f6b2||(0x1===this['_step']?_0xecbfa1<_0x2caeff-0x1:_0xecbfa1>0x0));}}class pi extends _0x2046bb{constructor(_0x28d850){super(_0x28d850);const _0x21ee33=this['bindTemplate'],_0x1c1631=new _0x2f12ca(_0x28d850),_0x3c0479=new _0x2f12ca(_0x28d850);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',(_0x3e5eeb,_0x64a9b7)=>_0x3e5eeb&&_0x64a9b7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xeb6f81,_0x41734a,_0x2c7775,_0x2fc292)=>{if(!_0xeb6f81)return m(_0x28d850,'Loading...');if(!_0x2c7775)return m(_0x28d850,'No\x20changes');const _0x4569b7=m(_0x28d850,'NUMBER_OF_CHANGES',_0x2c7775);return _0x2fc292?m(_0x28d850,'X_OF_Y_CHANGES',[_0x41734a+0x1,_0x2c7775]):_0x4569b7;}),_0x1c1631['set']({'label':m(_0x28d850,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5ea3b4}),_0x3c0479['set']({'label':m(_0x28d850,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5205e2}),_0x1c1631['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c0479['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1c1631['on']('execute',()=>this['fire']('execute','backward')),_0x3c0479['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',_0x21ee33['if']('_isStatusLabelVisible','ck-hidden',_0x3e530a=>!_0x3e530a)]},'children':[{'text':_0x21ee33['to']('isNavigationMode',_0x53f0e0=>_0x53f0e0?m(_0x28d850,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x28d850,'Total')+':\x20')}]},{'text':_0x21ee33['to']('_statusText')}]},new _0x9c8625(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1c1631,_0x3c0479]}]});}}const oe='ck-editor__editable__loading-overlay';class fi extends _0x460205{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1fecd7=this['editor']['editing']['view'];_0x1fecd7['change'](_0x4b3949=>{for(const _0x373783 of _0x1fecd7['document']['roots'])_0x4b3949['addClass'](oe,_0x373783);});}['hide'](){const _0x435b9e=this['editor']['editing']['view'];_0x435b9e['change'](_0x21da68=>{for(const _0x56848a of _0x435b9e['document']['roots'])_0x21da68['removeClass'](oe,_0x56848a);});}}class v extends _0x460205{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0xb9bc0d=this['editor'],_0x1975ea=_0xb9bc0d['plugins']['get'](u),_0xb7a5f1=_0xb9bc0d['plugins']['get'](fi);_0xb9bc0d['ui']['componentFactory']['add']('exitToEditing',_0x2abda3=>{const _0x490433=new _0x2f12ca(_0x2abda3);return _0x490433['set']({'label':m(_0x2abda3,'Back\x20to\x20editing'),'icon':_0x4e6330,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x490433,'execute',()=>{_0xb9bc0d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x490433;}),_0xb9bc0d['ui']['componentFactory']['add']('restoreRevision',_0x32d3b1=>{const _0x50ec05=new _0x2f12ca(_0x32d3b1);return _0x50ec05['set']({'label':m(_0x32d3b1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50ec05['bind']('isEnabled')['to'](_0xb9bc0d['commands']['get']('restoreRevision')),this['listenTo'](_0x50ec05,'execute',()=>_0xb9bc0d['execute']('restoreRevision')),_0x50ec05;}),_0xb9bc0d['ui']['componentFactory']['add']('changesNavigation',_0x1b952f=>{const _0x52a005=new pi(_0x1b952f),_0x5195b3=_0xb9bc0d['commands']['get']('showPreviousChange'),_0x2ef108=_0xb9bc0d['commands']['get']('showNextChange');return _0x52a005['bind']('isBackwardNavigationEnabled')['to'](_0x5195b3,'isEnabled'),_0x52a005['bind']('isForwardNavigationEnabled')['to'](_0x2ef108,'isEnabled'),_0x52a005['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1975ea),this['listenTo'](_0x52a005,'execute',(_0x4c391f,_0x48bbe4)=>{_0xb9bc0d['execute']('forward'===_0x48bbe4?'showNextChange':'showPreviousChange');}),_0x52a005;}),_0xb7a5f1['show'](),_0x1975ea['on']('change:isReady',(_0x464ca5,_0x2a733e,_0x1f8964)=>{_0x1f8964?_0xb7a5f1['hide']():_0xb7a5f1['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x512f16,_0x4e37ca){super(_0x512f16,_0x4e37ca);const _0x713e6d=this['bindTemplate'];this['set']({'label':m(_0x512f16,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x512f16,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x713e6d['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 _0x5f4821=this['fieldView']['element'];this['_tooltipString']=_0x5f4821['scrollWidth']>_0x5f4821['clientWidth']&&_0x5f4821['value']||'';}}class ni extends _0x2046bb{constructor(_0x207242,_0x1b02b5,_0x3428cf){super(_0x207242);const _0x116383=new _0x2d02b5();_0x116383['set']({'content':_0x438e33,'viewBox':'0\x200\x2011\x2010'});const _0x495037=['ck','ck-revision-history-sidebar__revision-author'];_0x3428cf&&_0x495037['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a1e1f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x207242,_0x3428cf?'Revision\x20creator':'Revision\x20author')},'children':[_0x116383,_0x1b02b5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x495037},'children':_0x4a1e1f});}}function ai(_0x428aa2,_0x93563d){const _0x4eb8e2=_0x428aa2['bindTemplate'],_0x5c587b=_0x428aa2['locale'],_0x240f05=_0x25c92f(_0x5c587b);_0x240f05['panelPosition']='sw';const _0x5701d6=function(_0x2da1d7,_0x5bb03b){const _0x18cdd1=function(_0x535f70,_0x2abb6d){const _0x7b115d=_0x535f70['locale'],_0xaef49f={'Compare\x20against\x20selected':m(_0x7b115d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x7b115d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x7b115d,'Restore\x20this\x20revision')};return _0x2abb6d['map'](_0x59ac37=>{const _0x271ca8=_0xaef49f[_0x59ac37['name']];return _0x271ca8&&_0x271ca8!==_0x59ac37['name']&&(_0x59ac37['name']=_0x271ca8),_0x59ac37;});}(_0x2da1d7,_0x5bb03b),_0x2c4d72=new _0x2be9e4();for(const _0xb5ff4f of _0x18cdd1){const _0x31eaf9={'type':'button','model':new to({'label':_0xb5ff4f['name'],'class':_0xb5ff4f['class'],'withText':!0x0,'role':'menuitem','_action':_0xb5ff4f['action']})};_0x31eaf9['model']['bind']('isEnabled')['to'](_0x2da1d7,'isActionsDropdownOpen',_0x13bfbe=>'function'!=typeof _0xb5ff4f['isEnabled']||(!_0x13bfbe||_0xb5ff4f['isEnabled'](_0x2da1d7))),_0x2c4d72['add'](_0x31eaf9);}return _0x2c4d72;}(_0x428aa2,_0x93563d);return _0x428aa2['bind']('isActionsDropdownOpen')['to'](_0x240f05,'isOpen'),_0x240f05['buttonView']['set']({'label':m(_0x5c587b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3dac6a}),_0x240f05['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4eb8e2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4eb8e2['to'](_0x4965d4=>_0x4965d4['stopPropagation']())}}),_0x240f05['on']('execute',_0x52b7b9=>{_0x428aa2['isReady']&&'function'==typeof _0x52b7b9['source']['_action']&&_0x52b7b9['source']['_action'](_0x428aa2);}),_0x1bbcfb(_0x240f05,_0x5701d6,{'role':'menu'}),_0x240f05['listenTo'](_0x428aa2,'change:isActionsDropdownOpen',(_0x3736be,_0x11c34a,_0x1f4c84)=>{if(_0x1f4c84)for(const _0x315167 of _0x240f05['listView']['items']){const _0xac4bb=_0x315167['children']['first'],_0x4472ae=_0x93563d['find'](_0x382340=>_0x382340['action']===_0xac4bb['_action'])['isVisible'];_0x315167['isVisible']=void 0x0===_0x4472ae||_0x4472ae(_0x428aa2);}}),_0x240f05;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x55f3c4,uid as _0x32fb3d,Collection as _0xb9f14f,logWarning as _0x2bfbdf,FocusTracker as _0x45cd95,KeystrokeHandler as _0x4840ec,scrollViewportToShowTarget as _0x31208c,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x2d4ef5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2f730e,set as _0x3fbd3b,unset as _0x1cb60f,isEqual as _0x578ff5}from'es-toolkit/compat';import{Plugin as _0x694cb,PendingActions as _0xaad136,Command as _0x55cc81,ElementApiMixin as _0x241a35,Editor as _0xeea441}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x15e944,getMarkerDomElement as _0x45bde4,ConfirmMixin as _0x4bd5c9,sanitizeEditorConfig as _0x2802f6}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x46d1d9,ViewAttributeElement as _0x178a7e,ViewEmptyElement as _0x592690,ViewRawElement as _0xeb8ea4,ViewUIElement as _0x482129,ViewDocumentFragment as _0x86300e,ViewText as _0x36ba02,ViewElement as _0x5b2198,ModelElement as _0x3dce0a,ModelRange as _0x560abb,ModelPosition as _0x5c2d08,ModelDocumentFragment as _0x22dcf7,ModelText as _0x3ce810}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1e8d69,IconChevronUp as _0x11f797,IconChevronDown as _0x48dfa2,IconUndo as _0x3c6c73,IconUser as _0x28a2e1,IconThreeVerticalDots as _0x749d18}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x29923f,View as _0x2f41d6,submitHandler as _0x21b648,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x3712c9,ListView as _0x5ea3f3,ListItemView as _0x364167,ButtonView as _0x22b97e,MenuBarMenuView as _0x4866c8,MenuBarMenuListView as _0x53d609,MenuBarMenuListItemView as _0x27f4f3,MenuBarMenuListItemButtonView as _0x291a30,ContextualBalloon as _0x421015,ToolbarSeparatorView as _0x1f6c28,IconView as _0x5d5bfc,addListToDropdown as _0x3bfd43,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0xb22772,StickyPanelView as _0x36fc62,ToolbarView as _0x4c68be,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x506ceb}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55f3c4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x50cca0){super(),this['id']=_0x50cca0['id']||_0x32fb3d(),this['creator']=_0x50cca0['creator']||null,this['authors']=_0x50cca0['authors']||[],this['diffData']=_0x50cca0['diffData']||null,this['toVersion']=_0x50cca0['toVersion']||0x0,this['fromVersion']=_0x50cca0['fromVersion']||0x0,this['set']('name',_0x50cca0['name']||''),this['set']('createdAt',_0x50cca0['createdAt']||new Date()),this['set']('attributes',_0x50cca0['attributes']||{});}['setName'](_0x583834){this['_update']({'name':_0x583834});}['setAttribute'](_0x4538d5,_0x39362f){const _0x147b02=_0x2f730e(this['attributes']);_0x3fbd3b(_0x147b02,_0x4538d5,_0x39362f),this['_update']({'attributes':_0x147b02});}['removeAttribute'](_0x1ed976){const _0x355ec7=_0x2f730e(this['attributes']);_0x1cb60f(_0x355ec7,_0x1ed976),this['_update']({'attributes':_0x355ec7});}['_update'](_0x529a16,_0x1e8581=!0x1){let _0x4de588=!0x1;const _0x23d684={'id':this['id']},_0x413dc3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x41345a of _0x413dc3){const _0x55c104=_0x529a16[_0x41345a];void 0x0!==_0x55c104&&_0x55c104!==this[_0x41345a]&&(this[_0x41345a]=_0x55c104,_0x23d684[_0x41345a]=_0x55c104,_0x4de588=!0x0);}_0x4de588&&(_0x23d684['authors']&&(_0x23d684['authorsIds']=_0x23d684['authors']['map'](_0xd8d24a=>_0xd8d24a['id']),delete _0x23d684['authors']),this['fire']('_update',_0x23d684,_0x1e8581));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3cf7b7=>_0x3cf7b7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x694cb{['_revisions'];static get['requires'](){return[_0x15e944];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x18281b){super(_0x18281b),this['_revisions']=new _0xb9f14f();}['afterInit'](){!async function(_0x54c1b5){const _0x42fec2=_0x333753([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1a1291=0xeb829,_0x487e7a=0x359e09b0,_0x5ddeab=0x35998968^_0x487e7a,_0x1fbb23=window[_0x333753([0x44,0x61,0x74,0x65])][_0x333753([0x6e,0x6f,0x77])](),_0x82fa2=_0x54c1b5[_0x333753([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x286005=new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11535d=>{_0x82fa2[_0x333753([0x6f,0x6e,0x63,0x65])](_0x333753([0x72,0x65,0x61,0x64,0x79]),_0x11535d);}),_0xe22915={[_0x333753([0x6b,0x74,0x79])]:_0x333753([0x45,0x43]),[_0x333753([0x75,0x73,0x65])]:_0x333753([0x73,0x69,0x67]),[_0x333753([0x63,0x72,0x76])]:_0x333753([0x50,0x2d,0x32,0x35,0x36]),[_0x333753([0x78])]:_0x333753([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]),[_0x333753([0x79])]:_0x333753([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]),[_0x333753([0x61,0x6c,0x67])]:_0x333753([0x45,0x53,0x32,0x35,0x36])},_0x2ffddb=_0x82fa2[_0x333753([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x333753([0x67,0x65,0x74])](_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d6240(){let _0x566a46,_0x1d1c98=null,_0x4eb18b=null;try{if(_0x2ffddb==_0x333753([0x47,0x50,0x4c]))return _0x333753([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x566a46=_0x237c82(),!_0x566a46)return _0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x566a46[_0x333753([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4eb18b=_0x563a5(_0x566a46[_0x333753([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x566a46[_0x333753([0x6a,0x74,0x69])])),await _0x4db036()?_0xebc0ce()?_0x6166bb()?_0x333753([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x71799c()?(_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x333753([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d1c98=_0x3ee140(_0x333753([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x586975()):_0x333753([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x333753([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6166bb(){const _0x3c43ad=[_0x333753([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x333753([0x74,0x72,0x69,0x61,0x6c])][_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fbb23/0x3e8:0xe10*_0x5ddeab;return _0x566a46[_0x333753([0x65,0x78,0x70])]<_0x3c43ad;}function _0xebc0ce(){const _0x33adf1=_0x566a46[_0x333753([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33adf1)return!0x1;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x2a])))return!0x0;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x52,0x48])))return!0x0;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x52,0x52,0x48]))){if(_0x6a096e())return!0x0;if(_0x225283()||_0x518e57())return!0x0;}return!0x1;}function _0x71799c(){const _0x1e8b06=_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e8b06||0x0==_0x1e8b06[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18d116}=new URL(window[_0x333753([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e8b06[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d116))return!0x0;const _0x4656f1=_0x18d116[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e]));return _0x1e8b06[_0x333753([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45365d=>_0x45365d[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x2a])))[_0x333753([0x6d,0x61,0x70])](_0x5834c4=>_0x5834c4[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e])))[_0x333753([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x154ecb=>_0x154ecb[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4656f1[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333753([0x6d,0x61,0x70])](_0x6b1f14=>Array(_0x4656f1[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6b1f14[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333753([0x66,0x69,0x6c,0x6c])](_0x6b1f14[0x0]===_0x333753([0x2a])?_0x333753([0x2a]):'')[_0x333753([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6b1f14))[_0x333753([0x73,0x6f,0x6d,0x65])](_0x5261a1=>_0x4656f1[_0x333753([0x65,0x76,0x65,0x72,0x79])]((_0x479cc5,_0x59b1ec)=>_0x5261a1[_0x59b1ec]===_0x479cc5||_0x5261a1[_0x59b1ec]===_0x333753([0x2a])));}function _0x586975(){return _0x1d1c98&&_0x4eb18b?new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b963,_0x2b8e40)=>{_0x1d1c98[_0x333753([0x74,0x68,0x65,0x6e])](_0x26b963,_0x2b8e40),_0x4eb18b[_0x333753([0x74,0x68,0x65,0x6e])](_0x5b4ba2=>{_0x5b4ba2!=_0x333753([0x56,0x61,0x6c,0x69,0x64])&&_0x26b963(_0x5b4ba2);},_0x2b8e40);}):_0x1d1c98||_0x4eb18b||_0x333753([0x56,0x61,0x6c,0x69,0x64]);}}function _0x563a5(_0x34ff4b,_0x7c7ce0){return new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d672c=>{if(_0x2d410d())return _0x1d672c(_0x333753([0x56,0x61,0x6c,0x69,0x64]));_0x2a89ab(),_0x82fa2[_0x333753([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d580b=!0x1;const _0xc28fbe=_0x32fb3d();function _0x4fbdcb(_0x2ec29e){return!!_0x2ec29e&&(typeof _0x2ec29e===_0x333753([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ec29e===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ec29e[_0x333753([0x74,0x68,0x65,0x6e])]===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ec29e[_0x333753([0x63,0x61,0x74,0x63,0x68])]===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x136d73(_0x35f75a){_0x4b3e28(_0x35f75a)[_0x333753([0x74,0x68,0x65,0x6e])](_0x26d0a8=>{if(!_0x26d0a8||_0x26d0a8[_0x333753([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x333753([0x6f,0x6b]))return _0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cedcb(_0x411fcc(_0xc28fbe+_0x7c7ce0))!=_0x26d0a8[_0x333753([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x333753([0x56,0x61,0x6c,0x69,0x64]);})[_0x333753([0x74,0x68,0x65,0x6e])](_0x43855b=>(_0x1e57d0(),_0x43855b),()=>{const _0x5d9e89=_0x39da7c();return null==_0x5d9e89?(_0x1e57d0(),_0x333753([0x56,0x61,0x6c,0x69,0x64])):_0x333753(_0x1fbb23-_0x5d9e89>(0x11928db0^_0x487e7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x333753([0x74,0x68,0x65,0x6e])](_0x1d672c)[_0x333753([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x549e20=0x35a8e730^_0x487e7a;function _0x1e57d0(){const _0x420ba1=_0x333753([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cedcb(_0x411fcc(_0x34ff4b)),_0x28b159=_0x5cd44d(_0x5cedcb(window[_0x333753([0x4d,0x61,0x74,0x68])][_0x333753([0x63,0x65,0x69,0x6c])](_0x1fbb23/_0x549e20)));window[_0x333753([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333753([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x420ba1,_0x28b159);}function _0x39da7c(){const _0x21da77=_0x333753([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cedcb(_0x411fcc(_0x34ff4b)),_0x74c88c=window[_0x333753([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333753([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da77);return _0x74c88c?window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cd44d(_0x74c88c),0x10)*_0x549e20:null;}function _0x4b3e28(_0x2603f3){return new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3190dd,_0x3b02c8)=>{_0x2603f3[_0x333753([0x74,0x68,0x65,0x6e])](_0x3190dd,_0x3b02c8),window[_0x333753([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b02c8,0x359fdd70^_0x487e7a);});}}_0x82fa2[_0x333753([0x6f,0x6e])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e2dff,_0x2e0b13)=>{if(_0x2e0b13[0x0]!=_0x34ff4b)return _0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e0b13[0x1]={..._0x2e0b13[0x1],[_0x333753([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc28fbe};},{[_0x333753([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333753([0x68,0x69,0x67,0x68])}),_0x82fa2[_0x333753([0x6f,0x6e])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53a065=>{_0x4fbdcb(_0x53a065[_0x333753([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d580b=!0x0,_0x136d73(_0x53a065[_0x333753([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x333753([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333753([0x6c,0x6f,0x77])}),_0x286005[_0x333753([0x74,0x68,0x65,0x6e])](()=>{_0x4d580b||_0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d410d(){return _0x82fa2[_0x333753([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333753([0x76,0x69,0x65,0x77])][_0x333753([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x333753([0x61,0x75,0x74,0x6f]);}function _0x2a89ab(){_0x82fa2[_0x333753([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333753([0x76,0x69,0x65,0x77])][_0x333753([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x333753([0x61,0x75,0x74,0x6f]);}}function _0x3ee140(_0x237dfe){const _0x24f694=[new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x164696=>setTimeout(_0x164696,0x3597377c^_0x487e7a)),_0x286005[_0x333753([0x74,0x68,0x65,0x6e])](()=>new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e68f3=>{const _0x209663=0x359e09b7^_0x487e7a,_0x457088=_0x54c1b5[_0x333753([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x556f43(){_0x457088[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x209663&&_0x3e68f3();}_0x556f43(),_0x457088[_0x333753([0x6f,0x6e])](_0x333753([0x61,0x64,0x64]),_0x556f43);})),new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a27f8=>{function _0x26d823(){for(const _0x66e1ea in window)if(window[_0x333753([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x333753([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x66e1ea))&&window[_0x66e1ea]==_0x1a1291)return _0x5a27f8();_0x82fa2[_0x333753([0x73,0x74,0x61,0x74,0x65])]!=_0x333753([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x333753([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26d823,0x359e1a38^_0x487e7a);}_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x26d823();})];return window[_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x333753([0x72,0x61,0x63,0x65])](_0x24f694)[_0x333753([0x74,0x68,0x65,0x6e])](()=>_0x237dfe);}async function _0x29ffe5(){if(await _0x286005,_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x41d8f1=_0x54c1b5[_0x333753([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x87bc2c=_0x54c1b5[_0x333753([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])](_0x41d8f1[_0x333753([0x69,0x64])]),_0x5650a6=_0x34928f(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5650a6[_0x333753([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x41d8f1['id'],_0x87bc2c?_0x87bc2c['id']:null,!0x0),_0x5650a6[_0x333753([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5650a6[_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5650a6[_0x333753([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x357a9f,void(_0x5650a6[_0x333753([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x357a9f);}if(_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xfec454=_0x34928f(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xfec454[_0x333753([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfec454[_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfec454[_0x333753([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x357a9f,_0xfec454[_0x333753([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x357a9f;}_0x82fa2[_0x333753([0x6d,0x6f,0x64,0x65,0x6c])][_0x333753([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x357a9f,_0x82fa2[_0x333753([0x6d,0x6f,0x64,0x65,0x6c])][_0x333753([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x357a9f,_0x82fa2[_0x333753([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x333753([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x6a096e(){return _0x1b6c09(_0x333753([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34928f(_0x333753([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x333753([0x73,0x74,0x61,0x74,0x65])]==_0x333753([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x225283(){return _0x1b6c09(_0x333753([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 _0x518e57(){return _0x1b6c09(_0x333753([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3f51a3(_0x2bf463){const _0x6a41ce=_0x4a8136();_0x82fa2[_0x6a41ce]=_0x333753([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])+_0x2bf463,_0x2bf463[_0x333753([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x333753([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a8136()]=_0x1a1291),_0x2bf463!=_0x333753([0x56,0x61,0x6c,0x69,0x64])&&_0x29ffe5();}function _0x4a8136(){const _0x1207ee=window[_0x333753([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x333753([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x333753([0x6e,0x6f,0x77])]())[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x333753([0x2e]),'');let _0x457c4e=_0x333753([0x76]);for(let _0x5347bb=0x0;_0x5347bb<_0x1207ee[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5347bb+=0x2){let _0x4b2151=window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1207ee[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5347bb,_0x5347bb+0x2));_0x4b2151>=_0x42fec2[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b2151-=_0x42fec2[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x457c4e+=_0x42fec2[_0x4b2151];}return _0x457c4e;}function _0x237c82(){const _0x4e514d=_0x2ffddb[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e]));if(0x3!=_0x4e514d[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380845(_0x4e514d[0x1]);function _0x380845(_0x4556e4){const _0x5547d3=_0x53b6e6(_0x4556e4);return _0x5547d3&&_0x5682bd()?_0x5547d3:null;function _0x5682bd(){const _0x14f0f6=_0x5547d3[_0x333753([0x6a,0x74,0x69])],_0x2d7d7c=window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14f0f6[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14f0f6[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38a9c1={..._0x5547d3,[_0x333753([0x6a,0x74,0x69])]:_0x14f0f6[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14f0f6[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38a9c1[_0x333753([0x76,0x63])],_0x411fcc(_0x38a9c1)==_0x2d7d7c;}}}async function _0x4db036(){let _0x1b91e4=!0x0;try{const _0x134874=_0x2ffddb[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e])),[_0x5d5fa5,_0x4fad06,_0x1d554b]=_0x134874;return _0x2b2ccd(_0x5d5fa5),await _0x5e2ded(_0x5d5fa5,_0x4fad06,_0x1d554b),_0x1b91e4;}catch{return!0x1;}function _0x2b2ccd(_0x1c1795){const _0xe625f0=_0x53b6e6(_0x1c1795);_0xe625f0&&_0xe625f0[_0x333753([0x61,0x6c,0x67])]==_0x333753([0x45,0x53,0x32,0x35,0x36])||(_0x1b91e4=!0x1);}async function _0x5e2ded(_0x5ec310,_0x2dfcb2,_0x31e9d0){const _0x2e9260=window[_0x333753([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x333753([0x66,0x72,0x6f,0x6d])](_0xce4646(_0x31e9d0),_0x5a0bd5=>_0x5a0bd5[_0x333753([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x430c5b=new window[(_0x333753([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x333753([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ec310+_0x333753([0x2e])+_0x2dfcb2),_0x17ca7b=window[_0x333753([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x333753([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17ca7b)return;const _0x34b46d=await _0x17ca7b[_0x333753([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x333753([0x6a,0x77,0x6b]),_0xe22915,{[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x45,0x43,0x44,0x53,0x41]),[_0x333753([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x333753([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x333753([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17ca7b[_0x333753([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x45,0x43,0x44,0x53,0x41]),[_0x333753([0x68,0x61,0x73,0x68])]:{[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34b46d,_0x2e9260,_0x430c5b)||(_0x1b91e4=!0x1);}}function _0x53b6e6(_0x5025bc){return _0x5025bc[_0x333753([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x333753([0x65,0x79]))?JSON[_0x333753([0x70,0x61,0x72,0x73,0x65])](_0xce4646(_0x5025bc)):null;}function _0xce4646(_0xd203d0){return window[_0x333753([0x61,0x74,0x6f,0x62])](_0xd203d0[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x333753([0x2b]))[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x333753([0x2f])));}function _0x411fcc(_0x45f3a2){let _0x328a77=0x1505;function _0x25328a(_0xec3f62){for(let _0x55b1c8=0x0;_0x55b1c8<_0xec3f62[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55b1c8++){const _0xa53851=_0xec3f62[_0x333753([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55b1c8);_0x328a77=(_0x328a77<<0x5)+_0x328a77+_0xa53851,_0x328a77&=_0x328a77;}}function _0x3ad6b1(_0x2a1401){Array[_0x333753([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a1401)?_0x2a1401[_0x333753([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ad6b1):_0x2a1401&&typeof _0x2a1401==_0x333753([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x333753([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a1401)[_0x333753([0x73,0x6f,0x72,0x74])]()[_0x333753([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e7eff,_0x330727])=>{_0x25328a(_0x3e7eff),_0x3ad6b1(_0x330727);}):_0x25328a(window[_0x333753([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a1401));}return _0x3ad6b1(_0x45f3a2),_0x328a77>>>0x0;}function _0x5cedcb(_0x38460b){return _0x38460b[_0x333753([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x333753([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x333753([0x30]));}function _0x5cd44d(_0x2f6b59){return _0x2f6b59[_0x333753([0x73,0x70,0x6c,0x69,0x74])]('')[_0x333753([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x333753([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b6c09(_0x9d8a54){return _0x82fa2[_0x333753([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333753([0x68,0x61,0x73])](_0x9d8a54);}function _0x34928f(_0x308a20){return _0x82fa2[_0x333753([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333753([0x67,0x65,0x74])](_0x308a20);}function _0x357a9f(){}function _0x333753(_0x35457d){return _0x35457d['map'](_0x1520b1=>String['fromCharCode'](_0x1520b1))['join']('');}_0x3f51a3(await _0x5d6240());}(this);}['createRevision'](_0x4ad99d){const _0x4a57c0=this['editor']['plugins']['get']('Users');return new I({'id':_0x4ad99d['id'],'name':_0x4ad99d['name'],'creator':_0x4ad99d['creatorId']?_0x4a57c0['getUser'](_0x4ad99d['creatorId']):null,'diffData':_0x4ad99d['diffData']||_0x4ad99d['data'],'authors':_0x4ad99d['authorsIds']['map'](_0xd7190=>_0x4a57c0['getUser'](_0xd7190)),'createdAt':new Date(_0x4ad99d['createdAt']),'attributes':_0x4ad99d['attributes'],'fromVersion':_0x4ad99d['fromVersion'],'toVersion':_0x4ad99d['toVersion']});}['addRevision'](_0x56a61f,_0xd73c4f=0x0){this['_revisions']['add'](_0x56a61f,_0xd73c4f);}['getRevision'](_0x4c7321){return this['_revisions']['get'](_0x4c7321);}['getRevisions'](_0x315339={'toJSON':!0x1}){const _0x28af4a=Array['from'](this['_revisions']);return _0x28af4a['reverse'](),_0x315339['toJSON']?_0x28af4a['map'](_0x8bf0de=>_0x8bf0de['toJSON']()):_0x28af4a;}['getIndex'](_0x3a2485){return this['_revisions']['getIndex'](_0x3a2485);}['getEarlierVisibleRevision'](_0x3ab2ed){const [,_0x1fba4b]=this['getRevisionsIterator'](_0x3ab2ed,{'direction':'earlier'});return _0x1fba4b;}['getLaterVisibleRevision'](_0x307f60){const [,_0x247560]=this['getRevisionsIterator'](_0x307f60,{'direction':'later'});return _0x247560;}['getRevisionsInDiff'](_0x2291ea){const _0x1c2069=[];for(const _0x3ed16e of this['getRevisionsIterator'](_0x2291ea['newRevisionId']))if(_0x1c2069['push'](_0x3ed16e),_0x3ed16e['id']===_0x2291ea['oldRevisionId'])break;return _0x1c2069;}*['getRevisionsIterator'](_0x15c2e5,{direction:_0xa6f2d3='earlier',filter:_0x4fbde4=()=>!0x0}={}){const _0x48c65a='earlier'===_0xa6f2d3?0x1:-0x1;let _0x27dde8=this['_revisions']['get'](_0x15c2e5),_0x3203af=this['getIndex'](_0x27dde8);for(yield _0x27dde8;_0x27dde8;){if(_0x3203af+=_0x48c65a,_0x27dde8=this['getRevision'](_0x3203af),!_0x27dde8)return;_0x4fbde4(_0x27dde8)&&(yield _0x27dde8);}}}class $ extends _0x694cb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x46d1d9,'c'],[_0x178a7e,'a'],[_0x592690,'e'],[_0xeb8ea4,'r'],[_0x482129,'u']]);['_typeCharToViewClass']=new Map([['c',_0x46d1d9],['a',_0x178a7e],['e',_0x592690],['r',_0xeb8ea4],['u',_0x482129]]);async['loadRevisionData'](_0x2249a7,_0x509daa){if(_0x2249a7['diffData']||!_0x509daa)return;const _0x27c269=this['editor']['config']['get']('collaboration.channelId'),_0x2ec6d3=await _0x509daa['getRevision']({'channelId':_0x27c269,'revisionId':_0x2249a7['id']});_0x2249a7['diffData']=_0x2ec6d3['diffData'];}['getRevisionDocumentData'](_0x2b5bab){const _0x5b21e0={};for(const _0x2ee896 in _0x2b5bab['diffData']){if(_0x2b5bab['diffData'][_0x2ee896]['attachChange']&&!_0x2b5bab['diffData'][_0x2ee896]['attachChange']['isAttached'])continue;const _0x17aec8=this['_removeRevisionMarkers'](JSON['parse'](_0x2b5bab['diffData'][_0x2ee896]['insertions'])),_0x4b200e=this['editor']['editing']['view']['document'],_0x32d55d=new _0x86300e(_0x4b200e,_0x17aec8['map'](_0x389bf0=>this['_getViewFromDiffObj'](_0x389bf0,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5b21e0[_0x2ee896]=this['editor']['data']['processor']['toData'](_0x32d55d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5b21e0;}['getRevisionRootsAttributes'](_0x3bd78b){const _0x384ac8={};for(const _0x389b58 in _0x3bd78b['diffData'])_0x3bd78b['diffData'][_0x389b58]['attachChange']&&!_0x3bd78b['diffData'][_0x389b58]['attachChange']['isAttached']||(_0x384ac8[_0x389b58]=_0x3bd78b['diffData'][_0x389b58]['attributesAfter']||{});return _0x384ac8;}['_getTypeCharForViewElement'](_0x49cd28){return this['_viewClassToTypeChar']['get'](_0x49cd28['constructor']);}['_getViewFromDiffObj'](_0x261944,_0x4c1895){const _0x138662=this['editor']['editing']['view']['document'];if('string'==typeof _0x261944)return new _0x36ba02(_0x138662,_0x261944);{let _0x424117,_0x4ef0bb;_0x4ef0bb='u'==_0x261944['type']||'r'==_0x261944['type']?[]:_0x261944['children']['map'](_0x1d38bd=>this['_getViewFromDiffObj'](_0x1d38bd,_0x4c1895));const _0x2faf00=this['_typeCharToViewClass']['get'](_0x261944['type'])||_0x5b2198,_0x1629cf=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x424117=new _0x2faf00(_0x138662,_0x261944['name'],_0x261944['attributes'],_0x4ef0bb),'u'==_0x261944['type']&&_0x261944['children'][0x0]){const _0x182b6c=_0x261944['children'][0x0];if(_0x424117['render']=function(_0x3c9557){const _0x33e38d=_0x3c9557['createElement']('div');return _0x33e38d['innerHTML']=_0x182b6c,_0x33e38d['childNodes'][0x0];},_0x4c1895){const _0x24d7ef=new _0x86300e(_0x138662);_0x24d7ef['_appendChild'](_0x424117);const _0x685cd8=Array['from'](_0x1629cf['viewChildrenToDom'](_0x24d7ef,{'bind':!0x1})),_0xb9afcf=_0x1629cf['domDocument']['createElement']('div');_0xb9afcf['append'](..._0x685cd8),_0x424117=Array['from'](_0x1629cf['domChildrenToView'](_0xb9afcf))[0x0];}}else{if('r'==_0x261944['type']&&_0x261944['children'][0x0]){const _0x1d93c6=_0x261944['children'][0x0];if(_0x424117['render']=function(_0x234307){_0x234307['innerHTML']=_0x1d93c6;},_0x4c1895){const _0x226a58=new _0x86300e(_0x138662);_0x226a58['_appendChild'](_0x424117);const _0x43c1f6=Array['from'](_0x1629cf['viewChildrenToDom'](_0x226a58,{'bind':!0x1})),_0x45568d=_0x1629cf['domDocument']['createElement']('div');_0x45568d['append'](..._0x43c1f6);const _0x161e77=Array['from'](_0x1629cf['domChildrenToView'](_0x45568d));_0x161e77['length']>0x1?_0x424117['_appendChild'](_0x161e77):_0x424117=_0x161e77[0x0];}}}if(_0x261944['customProperties']){for(const [_0x3f2c38,_0x1188ec]of _0x261944['customProperties'])_0x424117['_setCustomProperty'](_0x3f2c38,_0x1188ec);}const _0x5e47e1=void 0x0===_0x261944['fillerOffset']?null:_0x261944['fillerOffset'];return null!==_0x5e47e1&&(_0x424117['getFillerOffset']=()=>_0x5e47e1),_0x424117;}}['_makeModelFromViewString'](_0x10b28f){const _0x32978b=JSON['parse'](_0x10b28f),_0x19c0de=this['editor']['editing']['view']['document'],_0x2cf6ba=new _0x86300e(_0x19c0de,_0x32978b['map'](_0x5c46d1=>this['_getViewFromDiffObj'](_0x5c46d1,!0x0)));return this['editor']['data']['toModel'](_0x2cf6ba);}['_removeRevisionMarkers'](_0x26ea5c){return(_0x26ea5c=_0x26ea5c['filter'](_0x73e131=>!_0x73e131['name']||'revision-start'!==_0x73e131['name']&&'revision-end'!==_0x73e131['name']))['forEach'](_0x31e31f=>{'string'!=typeof _0x31e31f&&(_0x31e31f['children']=this['_removeRevisionMarkers'](_0x31e31f['children']),_0x31e31f['attributes']=_0x31e31f['attributes']['filter'](_0x546fc6=>!_0x546fc6[0x0]['startsWith']('data-revision-')));}),_0x26ea5c;}}function m(_0xf5f409,_0x4a5244,_0x3c944f){const t=_0xf5f409['t'];switch(_0x4a5244){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'},_0x3c944f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c944f);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 _0x694cb{['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[_0x15e944,S,$,_0xaad136];}constructor(_0x121c8b){super(_0x121c8b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x43d2fd=_0x32fb3d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x43d2fd},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 _0x16f375=this['repository']['getRevision'](0x0),_0x891092=_0x16f375&&null===_0x16f375['creator']?_0x16f375:null;if(this['_continueCurrentRevision']=!!_0x891092&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x51beb0=this['_source']['getCurrentRevisionId'](),_0x455d6c=this['repository']['getRevision'](_0x51beb0);if(_0x455d6c)this['_startingVersion']=_0x455d6c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x48d9ea=this['_source']['history']['_operations']['find'](_0x442441=>!_0x442441['_isInit']),_0x3a9cfe=_0x48d9ea?_0x48d9ea['baseVersion']:this['_source']['history']['version'];_0x16f375?(_0x16f375['toVersion']<_0x3a9cfe&&_0x16f375['_update']({'toVersion':_0x3a9cfe}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x891092['id'],this['_startingVersion']=_0x891092['fromVersion']):(this['_startingVersion']=_0x16f375['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a9cfe,this['_continueCurrentRevision']=!0x1);}}else _0x891092&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x891092['toVersion'],this['editor']['model']['document']['history']['version']),_0x891092['fromVersion']===_0x891092['toVersion']?(0x0!==_0x891092['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x891092['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x891092['id'],this['_startingVersion']=_0x891092['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',_0x2751f2=>!_0x2751f2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe807fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x161da2;for(const _0x4b94b8 in _0xe807fa){const _0x53b6d1=_0x4b94b8,_0x363ee3=_0xe807fa[_0x53b6d1];if('revisionHistoryLicenseKeyValid'==_0x363ee3||'revisionHistoryLicenseKeyInvalid'==_0x363ee3||'revisionHistoryLicenseKeyExpired'==_0x363ee3||'revisionHistoryLicenseKeyDomainLimit'==_0x363ee3||'revisionHistoryLicenseKeyNotAllowed'==_0x363ee3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x363ee3||'revisionHistoryLicenseKeyUsageLimit'==_0x363ee3){delete _0xe807fa[_0x53b6d1],_0x161da2=_0x363ee3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x161da2&&_0xe807fa['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x161da2&&_0xe807fa['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x161da2&&_0xe807fa['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x11aac9=this['repository']['getRevision'](0x0),_0x5d26df=await this['getRevisionDocumentData'](_0x11aac9),_0x377154=await this['getRevisionRootsAttributes'](_0x11aac9);this['_replaceEditorDataWithRevisionData'](_0x5d26df,_0x377154);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xc6604e){this['_source']=_0xc6604e;}async['update'](){const _0x20b5e1=await this['_source']['getLatestVersion']();if(_0x20b5e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3728e0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x20b5e1});_0x3728e0['authors']=_0x3728e0['authorsIds']['map'](_0x17e8c0=>this['editor']['plugins']['get']('Users')['getUser'](_0x17e8c0)),this['currentRevision']['_update'](_0x3728e0);}}async['saveRevision'](_0x12ca9f={},_0x3c553e=null){const _0x38a2f5=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c553e>this['currentRevision']['toVersion']&&(_0x3c553e=null),null===_0x3c553e&&(_0x3c553e=await this['_source']['getLatestVersion']());const _0x4e866a=this['_getFromVersion'](_0x3c553e),_0xc9e76=this['buildRevisionData']({'from':_0x4e866a,'to':_0x3c553e});if(this['currentRevision']['toVersion']<_0x3c553e){const _0x9c2f44=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c553e,'to':_0x3c553e});_0x9c2f44['authors']=[],_0x9c2f44['authorsIds']=[],_0x9c2f44['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x9c2f44,!0x0),delete _0x9c2f44['authors'],_0x38a2f5['push'](_0x9c2f44);}_0x12ca9f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x12ca9f['name']=_0x12ca9f['name']||null,_0x12ca9f['id']=_0x12ca9f['id']||_0x32fb3d(),_0x12ca9f={..._0x12ca9f,..._0xc9e76};const _0x1e44cd=this['addRevisionData'](_0x12ca9f);_0x38a2f5['push'](_0x12ca9f);const _0x2c484a=this['repository']['getIndex'](_0x1e44cd);if(0x0!==_0x2c484a){const _0x2370c7=this['repository']['getRevision'](_0x2c484a-0x1);if(_0x2370c7['fromVersion']!==_0x3c553e){const _0x41db51=this['_revisionDataBuilder']['getData'](_0x3c553e,_0x2370c7['toVersion']),_0x205995={'id':_0x2370c7['id'],'diffData':_0x41db51['diffData'],'authorsIds':_0x41db51['authorsIds'],'authors':_0x41db51['authorsIds']['map'](_0x2ac01f=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ac01f)),'fromVersion':_0x3c553e};_0x2370c7===this['currentRevision']&&(_0x205995['createdAt']=new Date(_0x12ca9f['createdAt']['getTime']()+0xa)),_0x2370c7['_update'](_0x205995,!0x0),delete _0x205995['authors'],_0x38a2f5['push'](_0x205995);}}if(this['adapter']){for(const _0x4895c0 of _0x38a2f5)this['_bufferUpdate'](_0x4895c0['id'],_0x4895c0,!0x0);this['sendBufferedUpdates']();}return _0x1e44cd;}['addRevisionData'](_0x4c8bc5){const _0x49401f=this['repository']['createRevision'](_0x4c8bc5);return this['adapter']&&_0x49401f['on']('_update',(_0x9bb8d0,_0xf2f481,_0x3249a0)=>{_0x3249a0||(this['_bufferUpdate'](_0xf2f481['id'],_0xf2f481,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49401f,this['_findInsertionIndex'](_0x49401f)),_0x49401f;}async['getRevisionDocumentData'](_0x5b375a){return await this['_utils']['loadRevisionData'](_0x5b375a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5b375a);}async['getRevisionRootsAttributes'](_0x4d79fe){return await this['_utils']['loadRevisionData'](_0x4d79fe,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4d79fe);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x268cae=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8d26f2=0x0;_0x8d26f2<_0x268cae['length'];_0x8d26f2++){const _0x5acb23=_0x268cae[_0x8d26f2];let _0x1d5ed7=!0x1;for(const _0x495819 of Object['keys'](_0x5acb23))void 0x0===_0x5acb23[_0x495819]?delete _0x5acb23[_0x495819]:'id'!==_0x495819&&(_0x1d5ed7=!0x0);_0x1d5ed7||(_0x268cae[_0x8d26f2]=null);}if(_0x268cae=_0x268cae['filter'](_0x203b20=>null!==_0x203b20),!_0x268cae['length'])return;for(let _0x2d84de=0x0;_0x2d84de<_0x268cae['length'];_0x2d84de++){const _0x5f3526=_0x268cae[_0x2d84de];void 0x0!==_0x5f3526['fromVersion']&&void 0x0===_0x5f3526['toVersion']&&(_0x5f3526['toVersion']=this['repository']['getRevision'](_0x5f3526['id'])['toVersion']),void 0x0!==_0x5f3526['toVersion']&&void 0x0===_0x5f3526['fromVersion']&&(_0x5f3526['fromVersion']=this['repository']['getRevision'](_0x5f3526['id'])['fromVersion']);}const _0x200d6e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x268cae,_0x200d6e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38e52b=>{if(_0x38e52b){for(const _0x5b1ad2 of _0x38e52b)this['setRevisionData']({'id':_0x5b1ad2['id'],'createdAt':_0x5b1ad2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52a951=null,from:_0x177d9b=null,to:_0x59f89e=null}){_0x177d9b=null!==_0x177d9b?_0x177d9b:_0x52a951['fromVersion'],_0x59f89e=null!==_0x59f89e?_0x59f89e:_0x52a951['toVersion'];const _0x4b83f2=this['_revisionDataBuilder']['getData'](_0x177d9b,_0x59f89e),_0x47e7ac={'diffData':_0x4b83f2['diffData'],'authorsIds':_0x4b83f2['authorsIds'],'fromVersion':_0x177d9b,'toVersion':_0x59f89e};if(!_0x52a951||_0x59f89e!==_0x52a951['toVersion']){const _0x10bb08=_0x59f89e-0x1,_0x5738dc=this['_source']['history']['getOperation'](_0x10bb08);_0x47e7ac['createdAt']=_0x5738dc&&_0x5738dc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x177d9b===this['_loadedStateData']['fromVersion']){for(const _0xc68695 of this['_loadedStateData']['authors'])_0x47e7ac['authorsIds']['includes'](_0xc68695['id'])||_0x47e7ac['authorsIds']['push'](_0xc68695['id']);}return _0x47e7ac;}['_bufferUpdate'](_0x143f37,_0x18d61c,_0x5f0445){if(this['_bufferedUpdates']['has'](_0x143f37)){const _0x572c18=this['_bufferedUpdates']['get'](_0x143f37);_0x18d61c=_0x5f0445?{..._0x572c18,..._0x18d61c}:{..._0x18d61c,..._0x572c18};}this['_bufferedUpdates']['set'](_0x143f37,_0x18d61c);}['setRevisionData'](_0x289d9f){const _0xa31630=this['repository']['getRevision'](_0x289d9f['id']);if(_0x289d9f['createdAt']&&(_0x289d9f['createdAt']=new Date(_0x289d9f['createdAt'])),_0x289d9f['authorsIds']){const _0x18f435=this['editor']['plugins']['get']('Users');_0x289d9f['authors']=_0x289d9f['authorsIds']['map'](_0x151e13=>_0x18f435['getUser'](_0x151e13));}_0xa31630['_update'](_0x289d9f,!0x0);}['_createInitialRevision'](_0x54037c){const _0x709e34=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x709e34)this['_initialRevisionId']=_0x709e34['id'];else{const _0x18d6f0=!this['editor']['model']['document']['roots']['find'](_0x5ea82b=>this['editor']['model']['hasContent'](_0x5ea82b)),_0x3db629=this['editor']['plugins']['get']('Users')['me']['id'],_0x481f2d=m(this['editor']['locale'],_0x18d6f0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x54037c,'to':_0x54037c,'id':this['_initialRevisionId'],'name':_0x481f2d,'creatorId':_0x3db629});}}['_createCurrentRevision'](_0x7493c2){const _0x185d44=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x185d44),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x7493c2,'to':_0x7493c2,'id':_0x185d44,'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'](_0x247366,_0x1140d0){let _0x18e0cb=this['editor']['config']['get']('initialData'),_0x39eb54=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x18e0cb){_0x18e0cb={};for(const _0x2db327 of this['editor']['model']['document']['getRootNames']())_0x18e0cb[_0x2db327]='';}if('string'==typeof _0x18e0cb&&(_0x18e0cb={'main':_0x18e0cb}),void 0x0===_0x39eb54){_0x39eb54={};for(const _0x2cb30f of this['editor']['model']['document']['getRootNames']())_0x39eb54[_0x2cb30f]={};}let _0x3af0ff=!0x1;const _0x4468bd=Object['keys'](_0x18e0cb),_0x501743=Object['keys'](_0x247366);for(const _0x34eb38 of _0x4468bd){if(_0x18e0cb[_0x34eb38]!==_0x247366[_0x34eb38]&&''!==_0x18e0cb[_0x34eb38]['trim']()){_0x3af0ff=!0x0;break;}if(!_0x578ff5(_0x39eb54[_0x34eb38],_0x1140d0[_0x34eb38])&&Object['keys'](_0x39eb54[_0x34eb38])['length']>0x0){_0x3af0ff=!0x0;break;}}_0x3af0ff||(_0x3af0ff=_0x501743['some'](_0x1303ab=>!this['editor']['model']['document']['getRoot'](_0x1303ab))),_0x3af0ff&&_0x2bfbdf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x18e0cb,'editorRootsAttributes':_0x39eb54,'revisionData':_0x247366,'revisionRootsAttributes':_0x1140d0}),this['editor']['config']['set']('initialData',_0x247366),this['editor']['config']['set']('rootsAttributes',_0x1140d0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ed54c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ed54c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4425a1){const _0x5c2eaa=this['repository']['getRevisions']();_0x5c2eaa['reverse']();let _0x567561=0x0;for(;_0x567561<_0x5c2eaa['length'];){const _0x357503=_0x5c2eaa[_0x567561];if(_0x357503===this['currentRevision']){_0x567561++;continue;}if(_0x357503['id']===this['_initialRevisionId'])break;const _0x1ae672=_0x4425a1['toVersion']-_0x357503['toVersion']||_0x4425a1['fromVersion']-_0x357503['fromVersion'];if(_0x1ae672>0x0)break;if(_0x1ae672<0x0)_0x567561++;else{if(!_0x4425a1['creator']&&_0x357503['creator'])break;if(_0x357503['creator']||!_0x4425a1['creator']){if(_0x4425a1['createdAt']>_0x357503['createdAt'])break;_0x567561++;}else _0x567561++;}}return _0x567561;}['_getFromVersion'](_0x15dadc){const _0x5f5687=this['repository']['getRevisions']();_0x5f5687['reverse'](),_0x5f5687['shift']();const _0x2c7dc0=_0x5f5687['find'](_0x2e602b=>_0x2e602b['toVersion']<=_0x15dadc)['toVersion'];return _0x2c7dc0<this['_startingVersion']?this['_startingVersion']:_0x2c7dc0;}['_makeRevision']({name:_0x38c64d,from:_0x2a8f7d,to:_0x56302f,creatorId:_0x4416c1,id:_0x28c64e}){const _0x29cee5=this['buildRevisionData']({'from':_0x2a8f7d,'to':_0x56302f});_0x29cee5['name']=_0x38c64d,_0x29cee5['creatorId']=_0x4416c1,_0x29cee5['id']=_0x28c64e;const _0x2249c1=this['addRevisionData'](_0x29cee5);return this['adapter']&&this['_bufferUpdate'](_0x29cee5['id'],_0x29cee5,!0x0),_0x2249c1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5c7d88){this['editor']=_0x5c7d88,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'](_0x444830){this['source']=_0x444830;const _0x3a4763=new Map(),_0x1c600b=new Map(),_0x200ba6=this['editor']['model']['document']['roots']['map'](_0x5c78e9=>_0x5c78e9['rootName']);for(const _0x303393 of _0x200ba6){const _0x371ffe=this['editor']['model']['document']['getRoot'](_0x303393),_0x54f4db=K(_0x371ffe);_0x3a4763['set'](_0x303393,_0x54f4db),_0x1c600b['set'](_0x303393,Object['fromEntries'](_0x371ffe['getAttributes']()));}const _0x1d8dfb=Array['from'](this['editor']['model']['markers'])['map'](_0x1b815d=>[_0x1b815d['name'],_0x1b815d['getRange']()]),_0x23b4f7=this['source']['version'];this['_saveMetaData'](_0x23b4f7,_0x3a4763,_0x1d8dfb,_0x1c600b),this['_startingRevisionId']=this['_revisionId'];const _0x5aaef0=new Map(),_0x496a2c=new Map();for(const _0x470b69 of _0x200ba6){const _0x4d33f9=N(_0x470b69);_0x5aaef0['set'](_0x470b69,_0x4d33f9),_0x496a2c['set'](_0x470b69,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5aaef0,[],_0x496a2c);}['getData'](_0x335094,_0x47ce15){if(this['_lastFrom']===_0x335094&&this['_lastTo']<=_0x47ce15)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x47ce15,!0x0);else{if(!this['_savedMetaData']['has'](_0x335094)){const _0x2c3675=this['_getPreviousFrom'](_0x335094);this['_calculateMetaData'](_0x2c3675,_0x335094,!0x1);}this['_calculateMetaData'](_0x335094,_0x47ce15,!0x0);}return this['_lastFrom']=_0x335094,this['_lastTo']=_0x47ce15,this['_getState']();}['loadState'](_0x376def){if(!this['_savedMetaData']['has'](_0x376def['fromVersion'])){const _0x458a8d=this['_getPreviousFrom'](_0x376def['fromVersion']);this['_calculateMetaData'](_0x458a8d,_0x376def['fromVersion'],!0x1);}this['_calculateMetaData'](_0x376def['fromVersion'],_0x376def['toVersion'],!0x1);const _0x261252=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x376def['fromVersion'],this['_lastTo']=_0x376def['toVersion'];for(const _0x4c2f14 in _0x376def['diffData']){const _0x233a93=_0x376def['diffData'][_0x4c2f14]['attachChange'],_0x813c9b=_0x2f730e(_0x376def['diffData'][_0x4c2f14]['attributesBefore'])||{},_0x2861b7=_0x261252['_makeModelFromViewString'](_0x376def['diffData'][_0x4c2f14]['deletions']);_0x2861b7['rootName']=_0x4c2f14,_0x2861b7['_isAttached']=!_0x233a93||!_0x233a93['isAttached'],_0x2861b7['isAttached']=()=>_0x2861b7['_isAttached'],this['_baseRoots']['set'](_0x4c2f14,_0x2861b7),this['_baseRootsAttributes']['set'](_0x4c2f14,_0x813c9b),_0x233a93&&this['_touchedRoots']['set'](_0x4c2f14,_0x233a93);const _0x5185fd=this['_makeIdsRoot'](_0x2861b7);this['_baseIdsRoots']['set'](_0x4c2f14,_0x5185fd);for(const [_0x1c6b17,_0x6f913b]of _0x2861b7['markers']){if(!_0x1c6b17['startsWith']('revision:'))continue;const _0x146758=_0x1c6b17['split'](':')[0x2];for(const _0x5c0bb3 of _0x6f913b['getWalker']({'singleCharacters':!0x0})){const _0xc47385=this['_getVidAttributeName'](_0x5c0bb3),_0x5680ae='elementEnd'==_0x5c0bb3['type']?_0x5c0bb3['previousPosition']['path']['slice'](0x0,-0x1):_0x5c0bb3['previousPosition']['path'],_0x5d4dd7=_0x5185fd['getNodeByPath'](_0x5680ae)['getAttribute'](_0xc47385);this['_touched']['set'](_0x5d4dd7,{'userId':_0x146758});}_0x2861b7['markers']['delete'](_0x1c6b17);}}this['_startingRevisionId']=this['_revisionId'];const _0xcde7e4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x304aec=>!this['_touched']['has'](_0x304aec));let _0x5c9766=0x0;const _0x387e67=new Map();for(const _0x59abaa in _0x376def['diffData']){const _0x393efd=_0x376def['diffData'][_0x59abaa]['attachChange'],_0x464ae1=_0x2f730e(_0x376def['diffData'][_0x59abaa]['attributesAfter'])||{},_0x139011=_0x261252['_makeModelFromViewString'](_0x376def['diffData'][_0x59abaa]['insertions']);_0x139011['rootName']=_0x59abaa,_0x139011['_isAttached']=!_0x393efd||_0x393efd['isAttached'],_0x139011['isAttached']=()=>_0x139011['_isAttached'],this['_diffRoots']['set'](_0x59abaa,_0x139011),this['_diffRootsAttributes']['set'](_0x59abaa,_0x464ae1);const _0x4e15cc=this['_makeIdsRoot'](_0x139011,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x59abaa,_0x4e15cc),_0x387e67['set'](_0x59abaa,_0x139011['isAttached']()?_0x464ae1:{});for(const [_0x1e21d5,_0xb24862]of _0x139011['markers']){if(!_0x1e21d5['startsWith']('revision:'))continue;const _0x3d8b99=_0x1e21d5['split'](':')[0x2];for(const _0x5dfb96 of _0xb24862['getWalker']({'singleCharacters':!0x0})){const _0x3bd95a=this['_getVidAttributeName'](_0x5dfb96),_0x24b9ec=this['_revisionId']++,_0x332891='elementEnd'==_0x5dfb96['type']?_0x5dfb96['previousPosition']['path']['slice'](0x0,-0x1):_0x5dfb96['previousPosition']['path'];_0x4e15cc['getNodeByPath'](_0x332891)['_setAttribute'](_0x3bd95a,_0x24b9ec),this['_touched']['set'](_0x24b9ec,{'userId':_0x3d8b99});}_0x139011['markers']['delete'](_0x1e21d5);}for(const _0x2c82c5 of this['editor']['model']['createRangeIn'](_0x139011)['getWalker']({'singleCharacters':!0x0})){const _0x34c42f=this['_getVidAttributeName'](_0x2c82c5),_0x27ce43='elementEnd'==_0x2c82c5['type']?_0x2c82c5['previousPosition']['path']['slice'](0x0,-0x1):_0x2c82c5['previousPosition']['path'],_0x273b02=_0x4e15cc['getNodeByPath'](_0x27ce43);_0x273b02['getAttribute'](_0x34c42f)>0x0||_0x273b02['_setAttribute'](_0x34c42f,_0xcde7e4[_0x5c9766++]);}for(const [_0x2bfeff,_0x2850a9]of _0x139011['markers'])_0x2bfeff['startsWith']('revision:')||this['_markers']['set'](_0x2bfeff,_0x2850a9);}const {roots:_0x949b01}=this['_savedMetaData']['get'](_0x376def['fromVersion']),{roots:_0x39fbd9}=this['_savedMetaData']['get'](_0x376def['toVersion']),_0x46df9b=K(_0x949b01['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x46df9b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x46df9b,Number['NEGATIVE_INFINITY']));const _0x59fdda=K(_0x39fbd9['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x59fdda),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59fdda));const _0x2579d9=Array['from'](this['_diffRoots'])['map'](([_0x27c4be,_0xe2e82c])=>[_0x27c4be,K(_0xe2e82c)]);this['_saveMetaData'](this['_lastTo'],_0x2579d9,this['_markers'],_0x387e67);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1fed8a,_0x2621be,_0x46d9c6,_0x102e3f){const _0x50bf80=new Map(_0x2621be),_0x25a4b3=new Map(_0x2f730e(_0x102e3f)),_0xe74aa=new Map();for(const [_0x34d83e,_0x33ffcc]of _0x46d9c6)_0xe74aa['set'](_0x34d83e,{'start':_0x33ffcc['start']['clone'](),'end':_0x33ffcc['end']['clone'](),'rootName':_0x33ffcc['root']['rootName']});this['_savedMetaData']['set'](_0x1fed8a,{'roots':_0x50bf80,'markers':_0xe74aa,'rootsAttributes':_0x25a4b3});}['_removeMetaData'](_0x47c865){this['_savedMetaData']['delete'](_0x47c865);}['_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'](_0x40685c,_0x1e4337=null){let _0x9ae34c=null;_0x40685c['is']('documentFragment')||(_0x9ae34c=new _0x3dce0a(_0x40685c['name'],{'vid_start':null===_0x1e4337?this['_revisionId']++:_0x1e4337++}));const _0x4609f5=[];for(const _0x2db2b3 of _0x40685c['getChildren']())if(_0x2db2b3['is']('element')){_0x4609f5['push'](this['_makeIdsRoot'](_0x2db2b3,_0x1e4337));const _0x3562c6=_0x4609f5[_0x4609f5['length']-0x1];null!==_0x1e4337&&(_0x1e4337=_0x3562c6['is']('element','$text')?_0x3562c6['getAttribute']('vid')+0x1:_0x3562c6['getAttribute']('vid_end')+0x1);}else{for(let _0x5e1ac0=0x0;_0x5e1ac0<_0x2db2b3['offsetSize'];_0x5e1ac0++)_0x4609f5['push'](new _0x3dce0a('$text',{'vid':null===_0x1e4337?this['_revisionId']++:_0x1e4337++}));}if(_0x40685c['is']('documentFragment')){const _0xe983e3=N(_0x40685c['rootName']);return _0xe983e3['_insertChild'](0x0,_0x4609f5),_0xe983e3;}return _0x9ae34c['_setAttribute']('vid_end',null===_0x1e4337?this['_revisionId']++:_0x1e4337++),_0x9ae34c['_insertChild'](0x0,_0x4609f5),_0x9ae34c;}['_calculateMetaData'](_0x32b06f,_0x3e3453,_0x376778){this['_reset']();const {roots:_0x3cd99c,markers:_0x1ffd9d,rootsAttributes:_0x2b8985}=this['_savedMetaData']['get'](_0x32b06f);this['_baseRoots']=new Map(_0x3cd99c),this['_baseRootsAttributes']=new Map(_0x2f730e(_0x2b8985));for(const [_0x440099,_0x4b7090]of this['_baseRoots'])if('$graveyard'!==_0x440099&&(this['_diffRoots']['set'](_0x440099,K(_0x4b7090)),this['_diffRootsAttributes']=new Map(_0x2f730e(_0x2b8985)),_0x376778)){const _0x5b7462=this['_revisionId'];this['_idsRoots']['set'](_0x440099,this['_makeIdsRoot'](_0x4b7090)),this['_baseIdsRoots']['set'](_0x440099,this['_makeIdsRoot'](_0x4b7090,_0x5b7462));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x376778&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x22c563,_0xcf7d3e]of _0x1ffd9d){const _0xdb0731=this['_baseRoots']['get'](_0xcf7d3e['rootName']),_0x50b478=this['_diffRoots']['get'](_0xcf7d3e['rootName']),_0x1b7356=new _0x560abb(this['_fixPosition'](_0xcf7d3e['start'],_0xdb0731),this['_fixPosition'](_0xcf7d3e['end'],_0xdb0731)),_0x4d6583=this['_fixRange'](_0x1b7356,_0x50b478);_0xdb0731['markers']['set'](_0x22c563,_0x1b7356),this['_markers']['set'](_0x22c563,_0x4d6583);}this['_applyOperations'](_0x32b06f,_0x3e3453,_0x376778);}['_applyOperations'](_0x461a77,_0x148502,_0x5bfec4){for(const _0x485ff5 of this['source']['getOperations'](_0x461a77,_0x148502))this['_handleOperation'](_0x485ff5,_0x5bfec4);for(const _0x377e4c of this['_diffRoots']['values']())_0x377e4c['markers']['clear']();for(const [_0xadc256,_0x581059]of this['_markers']){this['_diffRoots']['get'](_0x581059['root']['rootName'])['markers']['set'](_0xadc256,_0x581059['clone']());}const _0x515a5f=new Map(),_0x5f1e07=new Map();for(const [_0x2d8942,_0x5525f8]of this['_diffRoots'])_0x515a5f['set'](_0x2d8942,K(_0x5525f8)),_0x5f1e07['set'](_0x2d8942,this['_diffRootsAttributes']['get'](_0x2d8942));this['_saveMetaData'](_0x148502,_0x515a5f,this['_markers'],_0x5f1e07);}['_getPreviousFrom'](_0x1c2cef){const _0x72d9fd=Array['from'](this['_savedMetaData']['keys']());_0x72d9fd['sort']((_0x1fcf3b,_0x2d09d3)=>_0x1fcf3b-_0x2d09d3),_0x72d9fd['reverse']();for(const _0x1cbdab of _0x72d9fd)if(_0x1cbdab<_0x1c2cef)return _0x1cbdab;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a15a7,_0x3d247d){const _0x137c6b=Array['from'](_0x3d247d['markers'])['map'](([_0xc2215e,_0x332373])=>[_0xc2215e,this['_fixRange'](_0x332373,_0x5a15a7)]);_0x5a15a7['markers']=new Map(_0x137c6b);}['_transformMarkers'](_0x105b6f){for(const _0x19b014 of this['_markers']['values']()){const _0x29a805=_0x19b014['getTransformedByOperation'](_0x105b6f),_0x49e6f2=_0x560abb['_createFromRanges'](_0x29a805);_0x19b014['start']=_0x49e6f2['start'],_0x19b014['end']=_0x49e6f2['end'];}}['_handleOperation'](_0x4c6d56,_0x20c140){if('addRoot'!=_0x4c6d56['type']&&'detachRoot'!=_0x4c6d56['type']){if('insert'==_0x4c6d56['type']){const _0x4e861f=_0x4c6d56['position']['root']['rootName'];this['_diffRoots']['has'](_0x4e861f)||(this['_diffRoots']['set'](_0x4e861f,N(_0x4e861f,!0x0)),this['_diffRootsAttributes']['set'](_0x4e861f,{}),_0x20c140&&this['_idsRoots']['set'](_0x4e861f,N(_0x4e861f,!0x0)));}else{if('addRootAttribute'==_0x4c6d56['type']||'removeRootAttribute'==_0x4c6d56['type']||'changeRootAttribute'==_0x4c6d56['type'])return void this['_handleRootAttributeOperation'](_0x4c6d56);'marker'==_0x4c6d56['type']&&this['_handleMarkerOperation'](_0x4c6d56);}if('marker'!==_0x4c6d56['type']){const _0x33c57b=this['_cloneOperation'](_0x4c6d56,this['_diffRoots']);_0x33c57b['_execute'](),this['_transformMarkers'](_0x33c57b);}if(_0x20c140)switch(_0x4c6d56['type']){case'insert':this['_handleInsertOperation'](_0x4c6d56);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c6d56);break;case'merge':this['_handleMergeOperation'](_0x4c6d56);break;case'split':this['_handleSplitOperation'](_0x4c6d56);}}else this['_handleRootOperation'](_0x4c6d56,_0x20c140);}['_cloneOperation'](_0x4c8efa,_0x1ed5b9){const _0x474d0c=_0x4c8efa['clone']();return _0x474d0c['_authorId']=_0x4c8efa['_authorId'],this['_fixOperation'](_0x474d0c,_0x1ed5b9),_0x474d0c;}['_getBaseVids'](_0x56ac55){return _0x56ac55['map'](_0x3af0b9=>{const _0x435e9a=this['_getVidAttributeName'](_0x3af0b9);return Number(_0x3af0b9['item']['getAttribute'](_0x435e9a));});}['_generateTape'](_0x57613d,_0x55ab14){if(_0x57613d['is']('element','$text'))_0x55ab14['push']({'item':_0x57613d,'type':'text'});else{_0x57613d['is']('element')&&_0x55ab14['push']({'item':_0x57613d,'type':'elementStart'});for(const _0xa1d7c7 of _0x57613d['getChildren']())this['_generateTape'](_0xa1d7c7,_0x55ab14);_0x57613d['is']('element')&&_0x55ab14['push']({'item':_0x57613d,'type':'elementEnd'});}return _0x55ab14;}['_getState'](){const _0x1a6382=new Map(this['_touched']),_0x269611=new Map(_0x1a6382),_0x2eff5b=new Map(),_0xd2e1fd={'insertions':{},'deletions':{}},_0x1de0fc={'insertions':{},'deletions':{}},_0x5aac6f=new Map(),_0x3a6a4b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a6a4b['delete']('$graveyard');for(const _0x853b8f of _0x3a6a4b){const _0x4145a9=this['_diffRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1),_0x53a194=this['_baseRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1);_0x4145a9['isAttached']()||_0x53a194['isAttached']()?(_0xd2e1fd['insertions'][_0x853b8f]=K(_0x4145a9),_0xd2e1fd['deletions'][_0x853b8f]=K(_0x53a194),this['_copyMarkers'](_0xd2e1fd['deletions'][_0x853b8f],_0x53a194),this['_copyMarkers'](_0xd2e1fd['insertions'][_0x853b8f],_0x4145a9),_0x1de0fc['insertions'][_0x853b8f]=this['_generateTape'](this['_idsRoots']['get'](_0x853b8f),[]),_0x1de0fc['deletions'][_0x853b8f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1),[])):_0x3a6a4b['delete'](_0x853b8f);}for(const _0xa9cf2c of _0x3a6a4b){const _0x562d92=_0x1de0fc['insertions'][_0xa9cf2c];for(const _0x40c1a1 of _0x562d92){const _0x3fd686=this['_getVidAttributeName'](_0x40c1a1),_0xf9cead=_0x40c1a1['item']['getAttribute'](_0x3fd686);_0x269611['delete'](_0xf9cead),_0xf9cead>=this['_startingRevisionId']&&_0x2eff5b['set'](_0xf9cead,_0x1a6382['get'](_0xf9cead));}}for(const _0x2de024 of _0x3a6a4b){const _0x217803=_0x1de0fc['insertions'][_0x2de024],_0x3eacdf=this['_getBaseVids'](_0x1de0fc['deletions'][_0x2de024]);let _0x4d7715=0x0;for(const _0x1dc11b of _0x217803){const _0x158f26=this['_getVidAttributeName'](_0x1dc11b),_0x5b0e43=_0x1dc11b['item']['getAttribute'](_0x158f26);if(!_0x2eff5b['has'](_0x5b0e43)&&!_0x5aac6f['has'](_0x5b0e43)){if(_0x269611['has'](_0x5b0e43))_0x4d7715++;else{if(_0x5b0e43!=_0x3eacdf[_0x4d7715]){const _0x359731=_0x1a6382['get'](_0x5b0e43)||_0x1a6382['get'](_0x3eacdf[_0x4d7715]);for(;_0x5b0e43!=_0x3eacdf[_0x4d7715];)_0x269611['has'](_0x3eacdf[_0x4d7715])||(_0x5aac6f['set'](_0x3eacdf[_0x4d7715],_0x359731),_0x1a6382['set'](_0x3eacdf[_0x4d7715],_0x359731)),_0x4d7715++;}_0x4d7715++;}}}}for(const _0x3c9281 of _0x3a6a4b){const _0xd815a2=_0x1de0fc['insertions'][_0x3c9281];for(const _0x26076d of _0xd815a2){const _0x561325=this['_getVidAttributeName'](_0x26076d),_0x480914=_0x26076d['item']['getAttribute'](_0x561325);if(_0x5aac6f['has'](_0x480914)){const _0x3fd9cc=_0x5aac6f['get'](_0x480914);_0x269611['has'](_0x480914)||_0x269611['set'](_0x480914,{..._0x3fd9cc}),_0x2eff5b['set'](_0x480914,{..._0x3fd9cc});}}}for(const _0x56fc25 of _0x269611['keys']())_0x56fc25>=this['_startingRevisionId']&&_0x269611['delete'](_0x56fc25);const _0x4f9cca=new Map();for(const _0x2d0f2d of _0x3a6a4b){let _0x553d92=_0x1de0fc['insertions'][_0x2d0f2d];for(const _0x3df3d5 of _0x553d92)if(_0x3df3d5['item']['is']('element','tableCell')){const _0x29dfee=this['_getVidAttributeName'](_0x3df3d5),_0x5a9530=_0x3df3d5['item']['getAttribute'](_0x29dfee);if(_0x2eff5b['has'](_0x5a9530)){const _0x42b118=_0x3df3d5['item']['parent']['parent']['getAttribute']('vid_start'),_0x34dbf5=_0x4f9cca['get'](_0x42b118)||new Set();_0x34dbf5['add'](_0x2eff5b['get'](_0x5a9530)['userId']),_0x4f9cca['set'](_0x42b118,_0x34dbf5);}}_0x553d92=_0x1de0fc['deletions'][_0x2d0f2d];for(const _0x639150 of _0x553d92)if(_0x639150['item']['is']('element','tableCell')){const _0x189bfc=this['_getVidAttributeName'](_0x639150),_0x1485c8=_0x639150['item']['getAttribute'](_0x189bfc);if(_0x269611['has'](_0x1485c8)){const _0x5868e8=_0x639150['item']['parent']['parent']['getAttribute']('vid_start'),_0x276302=_0x4f9cca['get'](_0x5868e8)||new Set();_0x276302['add'](_0x269611['get'](_0x1485c8)['userId']),_0x4f9cca['set'](_0x5868e8,_0x276302);}}for(const _0x24d40d of _0x4f9cca['keys']())(_0x2eff5b['has'](_0x24d40d)||_0x269611['has'](_0x24d40d))&&_0x4f9cca['delete'](_0x24d40d);}for(const _0x2fe760 of _0x3a6a4b){const _0x230009=_0x1de0fc['insertions'][_0x2fe760];let _0x1d7a3e=null,_0x149978=null;for(const _0x4b6d1a of _0x230009){const _0x1999b9=this['_getVidAttributeName'](_0x4b6d1a),_0x2b360f=_0x4b6d1a['item']['getAttribute'](_0x1999b9),_0x26e70=_0x4f9cca['get'](_0x2b360f);_0x26e70&&'elementStart'==_0x4b6d1a['type']&&(_0x1d7a3e=Array['from'](_0x26e70)[0x0],_0x149978=_0x4b6d1a['item']['getAttribute']('vid_end')),_0x1d7a3e&&(_0x269611['set'](_0x2b360f,{'userId':_0x1d7a3e}),_0x2eff5b['set'](_0x2b360f,{'userId':_0x1d7a3e})),_0x2b360f==_0x149978&&(_0x1d7a3e=null,_0x149978=null);}}const _0x12eb5e={},_0x3bf903=new Set();for(const _0x25fa9c of _0x3a6a4b){const _0x2ec22e=_0xd2e1fd['deletions'][_0x25fa9c],_0x5ed116=_0xd2e1fd['insertions'][_0x25fa9c];for(const {userId:_0x8660a6}of this['_touchedMarkers']['values']())null!==_0x8660a6&&_0x3bf903['add'](_0x8660a6);for(const {userId:_0x33e651}of this['_touchedRoots']['values']())null!==_0x33e651&&_0x3bf903['add'](_0x33e651);this['_markChanges'](_0x5ed116,_0x1de0fc['insertions'][_0x25fa9c],_0x2eff5b,'insertion',_0x3bf903),this['_markChanges'](_0x2ec22e,_0x1de0fc['deletions'][_0x25fa9c],_0x269611,'deletion',_0x3bf903),_0x12eb5e[_0x25fa9c]={'insertions':this['_prepareViewToSave'](_0x5ed116),'deletions':this['_prepareViewToSave'](_0x2ec22e),'attachChange':this['_touchedRoots']['get'](_0x25fa9c)||null,'attributesBefore':_0x2f730e(this['_baseRootsAttributes']['get'](_0x25fa9c))||{},'attributesAfter':_0x2f730e(this['_diffRootsAttributes']['get'](_0x25fa9c))};}return{'diffData':_0x12eb5e,'authorsIds':Array['from'](_0x3bf903)};}['_processRootBeforeSave'](_0x5326e5){for(const [,_0x14f6eb]of _0x5326e5['markers']){const _0x24f557=_0x14f6eb['start']['getAncestors']()['filter'](_0x2d51ab=>'tableCell'==_0x2d51ab['name']);for(const _0x456033 of _0x24f557)0x1==_0x456033['childCount']&&_0x456033['getChild'](0x0)['is']('element','paragraph')&&_0x456033['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x57a5c0){this['_processRootBeforeSave'](_0x57a5c0);const _0x42a0a1=this['editor']['data']['toView'](_0x57a5c0,{}),_0x2f9b25=Array['from'](_0x42a0a1['getChildren']())['map'](_0x21d77f=>this['_getViewJson'](_0x21d77f));return JSON['stringify'](_0x2f9b25);}['_getViewJson'](_0x2c6deb){if(_0x2c6deb['is']('$text'))return _0x2c6deb['data'];{const _0x55c007=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1f37ad=_0x2c6deb,_0x569327=this['editor']['data']['htmlProcessor']['domConverter'],_0x533d81={'type':_0x55c007['_getTypeCharForViewElement'](_0x1f37ad),'name':_0x1f37ad['name'],'attributes':Array['from'](_0x1f37ad['getAttributes']()),'children':Array['from'](_0x1f37ad['getChildren']())['map'](_0x16855d=>this['_getViewJson'](_0x16855d))};if(_0x2c6deb['is']('uiElement')&&'$comment'!=_0x2c6deb['name']){const _0x3805ab=_0x2c6deb['render'](_0x569327['domDocument'],_0x569327);_0x533d81['children']['push'](_0x3805ab['outerHTML']);}else{if(_0x2c6deb['is']('rawElement')){const _0x2800e8=_0x569327['domDocument']['createElement'](_0x1f37ad['name']);_0x2c6deb['render'](_0x2800e8,_0x569327),_0x533d81['children']['push'](_0x2800e8['innerHTML']);}}const _0x146d0b=Array['from'](_0x1f37ad['getCustomProperties']());_0x146d0b['length']>0x0&&(_0x533d81['customProperties']=_0x146d0b);const _0x3131cb=_0x1f37ad['getFillerOffset']();return null!==_0x3131cb&&(_0x533d81['fillerOffset']=_0x3131cb),_0x533d81;}}['_markChanges'](_0x33ccd7,_0x8e47dd,_0xb0163e,_0x2af57d,_0x3003ba){let _0xe4ef67=null,_0x49f591=null,_0x18dc69=0x0;const _0x4911c5=this['editor']['model'];for(let _0x4248ea=0x0;_0x4248ea<_0x8e47dd['length'];_0x4248ea++){const _0x1505c6=this['_getVidAttributeName'](_0x8e47dd[_0x4248ea]),_0x2ad190=_0x8e47dd[_0x4248ea]['item']['getAttribute'](_0x1505c6),_0xb3cabf=_0xb0163e['get'](_0x2ad190),_0x17f2ce=_0x4248ea==_0x8e47dd['length']-0x1;(!_0xe4ef67&&_0xb3cabf&&(_0xe4ef67=_0xb3cabf,_0x49f591=_0x8e47dd[_0x4248ea]),_0xe4ef67&&(!_0xb3cabf||_0xb3cabf['userId']!=_0xe4ef67['userId']))&&(_0x13c445(_0xb3cabf,P(_0x49f591,_0x33ccd7,_0x4911c5),P(_0x8e47dd[_0x4248ea],_0x33ccd7,_0x4911c5)),_0xe4ef67=_0xb3cabf||null,_0x49f591=_0xb3cabf?_0x8e47dd[_0x4248ea]:null),_0xe4ef67&&_0x17f2ce&&_0x13c445(_0xb3cabf,P(_0x49f591,_0x33ccd7,_0x4911c5),V(_0x8e47dd[_0x4248ea],_0x33ccd7,_0x4911c5));}function _0x13c445(_0x2fdd0f,_0x2a85b9,_0x55920f){const _0x432054=_0xe4ef67['userId'],_0x26ece3='revision:'+_0x2af57d+':'+_0x432054+':'+_0x18dc69++,_0x109455=_0x4911c5['createRange'](_0x2a85b9,_0x55920f);_0x33ccd7['markers']['set'](_0x26ece3,_0x109455),null!==_0x432054&&_0x3003ba['add'](_0x432054);}}['_getVidAttributeName'](_0x5d3732){switch(_0x5d3732['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x166eae,_0x1431fe){_0x166eae['baseVersion']=null;for(const _0x3a0448 in _0x166eae){const _0x261ac4=_0x166eae[_0x3a0448];if(_0x261ac4 instanceof _0x5c2d08){const _0x53aafe=_0x1431fe['get'](_0x261ac4['root']['rootName']);_0x166eae[_0x3a0448]=this['_fixPosition'](_0x261ac4,_0x53aafe);}if(_0x261ac4 instanceof _0x560abb){const _0x91be23=_0x1431fe['get'](_0x261ac4['root']['rootName']);_0x166eae[_0x3a0448]=this['_fixRange'](_0x261ac4,_0x91be23);}'root'===_0x3a0448&&(_0x166eae['root']=_0x1431fe['get'](_0x166eae['root']['rootName']));}}['_fixRange'](_0x33b701,_0x59b913){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33b701['start'],_0x59b913),this['_fixPosition'](_0x33b701['end'],_0x59b913));}['_fixPosition'](_0x534075,_0x9f3deb){return this['editor']['model']['createPositionFromPath'](_0x9f3deb,_0x534075['path'],_0x534075['stickiness']);}['_handleInsertOperation'](_0x3c272e){const _0x5b1613=this['_idsRoots']['get'](_0x3c272e['position']['root']['rootName']),_0x16ef66=this['_fixPosition'](_0x3c272e['position'],_0x5b1613),_0x3067db=null===_0x3c272e['_authorId']?null:_0x3c272e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a586=_0x16ef66['parent'],_0x149ae5=this['_revisionId'],_0x4cd20d=[];for(const _0x1b4726 of _0x3c272e['nodes'])if(_0x1b4726['is']('element'))_0x4cd20d['push'](this['_makeIdsRoot'](_0x1b4726));else{for(let _0x483d37=0x0;_0x483d37<_0x1b4726['offsetSize'];_0x483d37++)_0x4cd20d['push'](new _0x3dce0a('$text',{'vid':this['_revisionId']++}));}const _0x5d4bf9=this['_revisionId'];for(let _0x3e0def=_0x149ae5;_0x3e0def<_0x5d4bf9;_0x3e0def++)this['_touched']['set'](_0x3e0def,{'userId':_0x3067db});_0x28a586['_insertChild'](_0x16ef66['offset'],_0x4cd20d);}['_handleMoveOperation'](_0x39653c){(_0x39653c=this['_cloneOperation'](_0x39653c,this['_idsRoots']))['_execute']();const _0x1679b8=null===_0x39653c['_authorId']?null:_0x39653c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46891f=_0x39653c['getMovedRangeStart'](),_0x272b81=_0x46891f['parent'],_0x5a7e30=_0x46891f['offset'];!function _0x16ff26(_0x1779bf,_0x462140,_0x28e198,_0x4f8590){for(let _0x308a7d=_0x28e198;_0x308a7d<_0x4f8590;_0x308a7d++){const _0x2added=_0x462140['getChild'](_0x308a7d);_0x2added['is']('element','$text')?_0x1779bf['set'](_0x2added['getAttribute']('vid'),{'userId':_0x1679b8}):(_0x1779bf['set'](_0x2added['getAttribute']('vid_start'),{'userId':_0x1679b8}),_0x16ff26(_0x1779bf,_0x2added,0x0,_0x2added['childCount']),_0x1779bf['set'](_0x2added['getAttribute']('vid_end'),{'userId':_0x1679b8}));}}(this['_touched'],_0x272b81,_0x5a7e30,_0x5a7e30+_0x39653c['howMany']);}['_handleMergeOperation'](_0x1cdd61){const _0x6b669d=null===(_0x1cdd61=this['_cloneOperation'](_0x1cdd61,this['_idsRoots']))['_authorId']?null:_0x1cdd61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ca04f=_0x1cdd61['targetPosition']['parent'],_0x5d271c=_0x1cdd61['sourcePosition']['parent'],_0x46f04f=_0x5ca04f['getAttribute']('vid_end'),_0x1db321=_0x5d271c['getAttribute']('vid_start');_0x5ca04f['_setAttribute']('vid_end',_0x5d271c['getAttribute']('vid_end')),_0x5d271c['_setAttribute']('vid_end',_0x46f04f),this['_touched']['set'](_0x1db321,{'userId':_0x6b669d}),this['_touched']['set'](_0x46f04f,{'userId':_0x6b669d}),_0x1cdd61['_execute']();}['_handleSplitOperation'](_0x4f3694){const _0x25bc6b=null===(_0x4f3694=this['_cloneOperation'](_0x4f3694,this['_idsRoots']))['_authorId']?null:_0x4f3694['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x185215=_0x4f3694['graveyardPosition'],_0x547c67=_0x4f3694['splitPosition']['parent'];_0x4f3694['_execute']();const _0x13dc76=_0x547c67['getAttribute']('vid_end'),_0x2062a8=_0x4f3694['insertionPosition']['nodeAfter'];if(_0x185215){const _0x592b06=_0x2062a8['getAttribute']('vid_end'),_0x538ed3=_0x547c67['getAttribute']('vid_end');_0x547c67['_setAttribute']('vid_end',_0x592b06),_0x2062a8['_setAttribute']('vid_end',_0x538ed3),this['_touched']['set'](_0x547c67['getAttribute']('vid_end'),{'userId':_0x25bc6b}),this['_touched']['set'](_0x2062a8['getAttribute']('vid_start'),{'userId':_0x25bc6b});}else{const _0xe2ee3a=this['_revisionId']++,_0x435d93=this['_revisionId']++;_0x547c67['_setAttribute']('vid_end',_0xe2ee3a),_0x2062a8['_setAttribute']('vid_start',_0x435d93),_0x2062a8['_setAttribute']('vid_end',_0x13dc76),this['_touched']['set'](_0xe2ee3a,{'userId':_0x25bc6b}),this['_touched']['set'](_0x435d93,{'userId':_0x25bc6b});}}['_handleMarkerOperation'](_0x232edc){if(!_0x232edc['affectsData'])return;const _0xea4572=(_0x232edc=this['_cloneOperation'](_0x232edc,this['_diffRoots']))['oldRange']?_0x232edc['oldRange']['root']:null,_0x55bb1f=_0x232edc['newRange']?_0x232edc['newRange']['root']:null;_0xea4572&&this['_markers']['delete'](_0x232edc['name']),_0x55bb1f&&this['_markers']['set'](_0x232edc['name'],_0x232edc['newRange']['clone']());const _0x5bf210=null===_0x232edc['_authorId']?null:_0x232edc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x482de7=_0x232edc['name'];if(!this['_touchedMarkers']['has'](_0x482de7))return void this['_touchedMarkers']['set'](_0x482de7,{'range':_0x232edc['oldRange'],'userId':_0x5bf210});const _0x4a7376=this['_touchedMarkers']['get'](_0x482de7),_0x241608=_0x4a7376['range'],_0x566661=_0x232edc['newRange'];null==_0x241608&&null==_0x566661||_0x241608&&_0x566661&&_0x241608['isEqual'](_0x566661)?this['_touchedMarkers']['delete'](_0x232edc['name']):_0x4a7376['userId']=_0x5bf210;}['_handleRootOperation'](_0x4bda87,_0x5bea2f){this['_diffRoots']['has'](_0x4bda87['rootName'])?this['_diffRoots']['get'](_0x4bda87['rootName'])['_isAttached']=_0x4bda87['isAdd']:(this['_diffRoots']['set'](_0x4bda87['rootName'],N(_0x4bda87['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4bda87['rootName'],{}),_0x5bea2f&&this['_idsRoots']['set'](_0x4bda87['rootName'],N(_0x4bda87['rootName'],!0x0)));const _0x51abe1=null===_0x4bda87['_authorId']?null:_0x4bda87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4b33=this['_touchedRoots']['get'](_0x4bda87['rootName']);_0x1e4b33&&_0x1e4b33['userId']===_0x51abe1?this['_touchedRoots']['delete'](_0x4bda87['rootName']):this['_touchedRoots']['set'](_0x4bda87['rootName'],{'userId':_0x51abe1,'isAttached':_0x4bda87['isAdd']});}['_handleRootAttributeOperation'](_0x14a687){const _0x574c47=this['_diffRootsAttributes']['get'](_0x14a687['root']['rootName']);null===_0x14a687['newValue']?delete _0x574c47[_0x14a687['key']]:_0x574c47[_0x14a687['key']]=_0x14a687['newValue'];}}function K(_0x300a28){const _0x4d31f0=N(_0x300a28['rootName'],_0x300a28['isAttached']());for(const _0x302b7b of _0x300a28['getChildren']()){const _0x2e57e7=_0x302b7b['_clone'](!0x0);_0x4d31f0['_appendChild'](_0x2e57e7);}return _0x4d31f0;}function N(_0x188927,_0x357680=!0x0){const _0x4b3e7c=new _0x22dcf7();return _0x4b3e7c['rootName']=_0x188927,_0x4b3e7c['_isAttached']=_0x357680,_0x4b3e7c['isAttached']=()=>_0x4b3e7c['_isAttached'],_0x4b3e7c;}function P(_0x27a1a2,_0x420ccb,_0x18a8af){const _0x2f206a='elementEnd'==_0x27a1a2['type']?_0x18a8af['createPositionAt'](_0x27a1a2['item'],'end'):_0x18a8af['createPositionBefore'](_0x27a1a2['item']);return _0x18a8af['createPositionFromPath'](_0x420ccb,_0x2f206a['path'],_0x2f206a['stickiness']);}function V(_0x255ff0,_0x9b41d9,_0x629fba){const _0x378457='elementStart'==_0x255ff0['type']?_0x629fba['createPositionAt'](_0x255ff0['item'],0x0):_0x629fba['createPositionAfter'](_0x255ff0['item']);return _0x629fba['createPositionFromPath'](_0x9b41d9,_0x378457['path'],_0x378457['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x29923f(_0x2f41d6){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4aa599,_0x2778ab){super(_0x4aa599),this['focusTracker']=new _0x45cd95(),this['keystrokes']=new _0x4840ec(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2778ab),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'](),_0x21b648({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x50ae9d=_0x277a81=>_0x277a81['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50ae9d),this['keystrokes']['set']('arrowleft',_0x50ae9d),this['keystrokes']['set']('arrowup',_0x50ae9d),this['keystrokes']['set']('arrowdown',_0x50ae9d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x252942){this['revisionNameInputView']['fieldView']['element']['value']=_0x252942['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4b4912){const _0x4d2924=new et(this['locale'],ti),_0x5ca37c=_0x4d2924['fieldView'];_0x5ca37c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfdea18=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4b4912&&(_0xfdea18+='\x20('+m(this['locale'],'optional')+')'),(_0x4d2924['label']=_0xfdea18,_0x5ca37c['on']('input',()=>{this['revisionNameInputValue']=_0x5ca37c['element']['value']['trim']();}),_0x4d2924);}}class l extends _0x694cb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1d15f4=this['editor'],_0xa04daa=_0x1d15f4['plugins']['get']('RevisionTracker');_0x1d15f4['ui']['componentFactory']['add']('revisionHistory',_0x446cd2=>{const _0xb91541=_0x3712c9(_0x446cd2),_0x1fcf9b=_0xb91541['panelView']['children'],_0x4615d8=new _0x5ea3f3(_0x446cd2),_0x30eafc=new _0x364167(_0x446cd2),_0x336553=this['_createSaveRevisionButton'](_0x22b97e),_0x140bdb=new _0x364167(_0x446cd2),_0x1bec02=this['_createOpenRevisionButton'](_0x22b97e);return _0xb91541['bind']('isEnabled')['to'](_0xa04daa,'isReady',_0xa04daa,'isEnabled',_0x1d15f4,'isReadOnly',(_0x228602,_0x57ca52,_0x2434a6)=>_0x228602&&_0x57ca52&&!_0x2434a6),_0xb91541['buttonView']['set']({'icon':_0x1e8d69,'label':m(_0x446cd2,'Revision\x20history'),'tooltip':!0x0}),_0x336553['set']({'withText':!0x0,'role':'menuitem'}),_0x1bec02['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x1bec02,'execute',()=>{_0xb91541['isOpen']=!0x1,_0x1d15f4['editing']['view']['focus']();},{'priority':'low'}),_0x30eafc['children']['add'](_0x336553),_0x140bdb['children']['add'](_0x1bec02),_0x4615d8['role']='menu',_0x4615d8['items']['addMany']([_0x30eafc,_0x140bdb]),_0x1fcf9b['add'](_0x4615d8),_0xb91541;}),_0x1d15f4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49e96b=this['editor'],_0x5def30=_0x49e96b['locale'],_0x33c2b2=_0x49e96b['plugins']['get']('RevisionTracker'),_0x20d672=new _0x4866c8(_0x5def30),_0x34106b=new _0x53d609(_0x5def30);_0x20d672['bind']('isEnabled')['to'](_0x33c2b2,'isReady',_0x33c2b2,'isEnabled',_0x49e96b,'isReadOnly',(_0x3179e1,_0x32fd1c,_0x2d792f)=>_0x3179e1&&_0x32fd1c&&!_0x2d792f),_0x20d672['buttonView']['set']({'icon':_0x1e8d69,'label':m(_0x5def30,'Revision\x20history')});const _0x5be2c1=new _0x27f4f3(_0x5def30,_0x20d672),_0x14d4d4=this['_createSaveRevisionButton'](_0x291a30);_0x14d4d4['delegate']('execute')['to'](_0x20d672),_0x5be2c1['children']['add'](_0x14d4d4),_0x34106b['items']['add'](_0x5be2c1);const _0x598bd5=new _0x27f4f3(_0x5def30,_0x20d672),_0x26134e=this['_createOpenRevisionButton'](_0x291a30);return _0x26134e['delegate']('execute')['to'](_0x20d672),_0x598bd5['children']['add'](_0x26134e),_0x34106b['items']['add'](_0x598bd5),_0x20d672['panelView']['children']['add'](_0x34106b),_0x20d672;}['_createSaveRevisionButton'](_0x3a6952){const _0x775e50=this['editor'],_0x55df2e=_0x775e50['plugins']['get']('RevisionTracker'),_0x39f578=new _0x3a6952(_0x775e50['locale']);return _0x39f578['set']({'label':m(_0x775e50['locale'],'Save\x20current\x20revision')}),_0x39f578['bind']('isEnabled')['to'](_0x55df2e,'isReady',_0x55df2e,'isEnabled',_0x775e50,'isReadOnly',(_0x3ba4c4,_0x44f734,_0x5ee9dd)=>_0x3ba4c4&&_0x44f734&&!_0x5ee9dd),this['listenTo'](_0x39f578,'execute',()=>{this['_showDialog']();}),_0x39f578;}['_createOpenRevisionButton'](_0x4dc42b){const _0x3ccecd=this['editor'],_0x1991ed=_0x3ccecd['plugins']['get']('RevisionTracker'),_0x675b19=new _0x4dc42b(_0x3ccecd['locale']);return _0x675b19['set']({'label':m(_0x3ccecd['locale'],'Open\x20revision\x20history')}),_0x675b19['bind']('isEnabled')['to'](_0x1991ed,'isReady',_0x3ccecd,'isReadOnly',(_0x123c0c,_0x466b09)=>_0x123c0c&&!_0x466b09),this['listenTo'](_0x675b19,'execute',()=>{_0x3ccecd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x675b19;}['_showDialog'](){const _0x26a968=this['editor'],_0x345e59=_0x26a968['locale'],_0x14ee7d=_0x26a968['plugins']['get']('Dialog'),_0x59c386=_0x26a968['plugins']['get']('RevisionTracker');function _0x8f786b(_0x25b875){_0x26a968['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25b875['revisionName']?_0x25b875['revisionNameInputView']['errorText']=m(_0x345e59,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x26a968['plugins']['get'](h)['saveRevision']({'name':_0x25b875['revisionName']}),_0x14ee7d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x8f786b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x14ee7d['show']({'id':'revisionSave','title':m(_0x345e59,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x26a968['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x14ee7d['hide']()},{'label':m(_0x26a968['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d01af){_0x4d01af['bind']('isEnabled')['to'](_0x59c386,'isReady',_0x59c386,'isEnabled',_0x26a968,'isReadOnly',(_0x477749,_0x223585,_0x306ebd)=>_0x477749&&_0x223585&&!_0x306ebd);},'onExecute':()=>_0x8f786b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x269f21=this['editor'],_0x2e5f4c=_0x269f21['locale'];this['_saveRevisionFormView']=new he(_0x2e5f4c,_0x269f21['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2f41d6{['changeId'];['_model'];constructor(_0x4d0781,_0x5f4496){super(_0x4d0781),this['_model']=_0x5f4496,this['changeId']=_0x5f4496['id'];const _0xc6c2c6=this['bindTemplate'],_0x374c1f=m(_0x4d0781,_0x5f4496['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5f4496['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5f4496['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xc6c2c6['to']('type',_0x42b4cb=>'ck-revision-change__'+_0x42b4cb)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x374c1f}]},{'text':'\x20'+_0x5f4496['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x55f3c4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x403513){super(),this['id']=_0x403513['id']||_0x32fb3d(),this['author']=_0x403513['author'],this['type']=_0x403513['type'],this['data']=_0x403513['data']||{},this['rootName']=_0x403513['rootName'],this['set']('createdAt',_0x403513['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(_0x2633ba,_0x485c33){this['newRevisionId']=_0x2633ba,this['oldRevisionId']=_0x485c33,this['changes']=new _0xb9f14f();}['_setChanges'](_0x4836c0){for(const _0x2865a7 of _0x4836c0)this['changes']['add'](_0x2865a7);}}class u extends _0x694cb{['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[_0x15e944,_0x421015,S,$];}constructor(_0x530b50){super(_0x530b50),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',(_0x4ea737,_0x54a45d,_0x50bf5c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3cb2ea=>{for(const _0x5dfd83 of this['editor']['editing']['view']['document']['roots'])_0x50bf5c?_0x3cb2ea['removeClass']('ck-editor__editable__overlay',_0x5dfd83):_0x3cb2ea['addClass']('ck-editor__editable__overlay',_0x5dfd83);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x212800=>null!==_0x212800),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2464d1,_0x5c468c,_0x2b20b2)=>_0x2464d1&&_0x2b20b2?_0x5c468c['changes']['getIndex'](_0x2b20b2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1b7552,_0x43c227)=>_0x1b7552?_0x43c227['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x421015);}['init'](){const _0x5da537=this['editor'],_0x2ab9b4=new rt(_0x5da537,{'direction':'backward'}),_0x4ea481=new rt(_0x5da537,{'direction':'forward'});(_0x5da537['commands']['add']('showPreviousChange',_0x2ab9b4),_0x5da537['commands']['add']('showNextChange',_0x4ea481),_0x5da537['commands']['add']('restoreRevision',new nt(_0x5da537)),this['on']('change:numberOfChanges',()=>{_0x2ab9b4['refresh'](),_0x4ea481['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5da537['enableReadOnlyMode']('revision-viewer'),_0x5da537['plugins']['has']('WidgetToolbarRepository'))&&_0x5da537['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5429b0){return await this['_utils']['loadRevisionData'](_0x5429b0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5429b0);}async['getRevisionRootsAttributes'](_0x20401d){return await this['_utils']['loadRevisionData'](_0x20401d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20401d);}async['compare'](_0x50b105,_0x3b3fb5,_0x2a5d6e=!0x1){if(!this['isEnabled'])return;const _0x594b87=this['diff'],_0x1a91a7=this['repository'],_0x24b448='string'==typeof _0x50b105?_0x1a91a7['getRevision'](_0x50b105):_0x50b105,_0x301620='string'==typeof _0x3b3fb5?_0x1a91a7['getRevision'](_0x3b3fb5):_0x3b3fb5,_0x210c28=_0x24b448['id'],_0x282f0f=_0x301620?_0x301620['id']:null;if(!_0x2a5d6e&&this['diff']&&this['diff']['newRevisionId']===_0x210c28&&this['diff']['oldRevisionId']===_0x282f0f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x210c28,_0x282f0f);const _0x3aba6e=this['_getRevisionsRange'](_0x24b448,_0x301620,!0x0)['map'](_0x1ea0f9=>this['_utils']['loadRevisionData'](_0x1ea0f9,this['adapter']));return _0x3aba6e['push'](new Promise(_0x3a41ad=>{setTimeout(_0x3a41ad,0x14);})),Promise['all'](_0x3aba6e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde8cc4=this['_getDiff'](_0x210c28,_0x282f0f);for(const _0x3b8a22 of _0xde8cc4['changes'])this['_changeIdToChange']['set'](_0x3b8a22['id'],_0x3b8a22);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x42d305=>{for(const _0x3fc754 of this['editor']['model']['document']['getRootNames']())_0x42d305['detachRoot'](_0x3fc754);for(const _0x11ec42 of Object['keys'](_0xde8cc4['model'])){const _0x263e30=_0x42d305['addRoot'](_0x11ec42);for(const _0x2bc262 of Object['keys'](_0xde8cc4['attributes'][_0x11ec42]))_0x42d305['setAttribute'](_0x2bc262,_0xde8cc4['attributes'][_0x11ec42][_0x2bc262],_0x263e30);_0x42d305['insert'](_0xde8cc4['model'][_0x11ec42],_0x263e30,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde8cc4['changes'])),this['isReady']=!0x0;})['catch'](_0x313c17=>{console['error'](_0x313c17),this['_cleanUp'](),_0x594b87&&(this['diff']=_0x594b87),this['isReady']=!0x0;});}['addRevisionData'](_0x1fb8db,_0x5008f1){const _0x43b98f=this['repository']['createRevision'](_0x1fb8db);return _0x43b98f['on']('_update',(_0x332d6b,_0x219fed,_0x302c6d)=>_0x5008f1(_0x219fed,_0x302c6d,_0x43b98f)),this['repository']['addRevision'](_0x43b98f),_0x43b98f;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3aa238=>{for(const _0x539b76 of this['editor']['model']['document']['getRootNames']())_0x3aa238['detachRoot'](_0x539b76);});}['_sortAndFilterDiffChanges'](_0x28540d){const _0x314c96=[],_0x265da2=new Map();for(const _0x47eadf of this['editor']['model']['document']['getRootNames']()){const _0x2f06ea=this['editor']['editing']['view']['getDomRoot'](_0x47eadf);if(!_0x2f06ea)continue;const _0x33ca91=_0x2f06ea['getClientRects']()['item'](0x0);_0x33ca91&&(_0x314c96['push'](_0x47eadf),_0x265da2['set'](_0x47eadf,_0x33ca91));}return _0x314c96['sort']((_0x50d67f,_0x334b39)=>{const _0x125ce5=_0x265da2['get'](_0x50d67f),_0x3db3b5=_0x265da2['get'](_0x334b39);return _0x125ce5['y']-_0x3db3b5['y']||_0x125ce5['x']-_0x3db3b5['x'];}),(_0x28540d=_0x28540d['filter'](_0x2eace6=>_0x314c96['includes'](_0x2eace6['rootName'])))['sort']((_0x318b4e,_0x1c8c54)=>_0x314c96['indexOf'](_0x318b4e['rootName'])-_0x314c96['indexOf'](_0x1c8c54['rootName'])),_0x28540d;}['_makeTape'](_0x155fd0){const _0x18737c=Array['from'](_0x155fd0['markers'])['filter'](([_0x5d68ba,_0x537bd5])=>_0x5d68ba['startsWith']('revision:')&&!_0x537bd5['isCollapsed']),_0x33187f=Array['from'](this['editor']['model']['createRangeIn'](_0x155fd0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x18737c['length'])for(const _0x5452d6 of _0x33187f){const [_0x5e2a56,_0x5d1d74]=_0x18737c[0x0],[,_0x568a82,_0x1626b4]=_0x5e2a56['split'](':');if(_0x5d1d74['end']['isEqual'](_0x5452d6['nextPosition'])&&_0x18737c['shift'](),(_0x5452d6['previousPosition']['isEqual'](_0x5d1d74['start'])||_0x5452d6['previousPosition']['isAfter'](_0x5d1d74['start']))&&('insertion'==_0x568a82?_0x5452d6['isAdded']={'userId':_0x1626b4}:'deletion'==_0x568a82&&(_0x5452d6['isRemoved']={'userId':_0x1626b4})),0x0==_0x18737c['length'])break;}return _0x33187f;}['_refreshStartEndIndex'](_0x38713c){const _0x1b6739=new Map();for(let _0x4817b7=0x0;_0x4817b7<_0x38713c['length'];_0x4817b7++)'text'===_0x38713c[_0x4817b7]['type']?(_0x38713c[_0x4817b7]['item']['startIndex']=_0x4817b7,_0x38713c[_0x4817b7]['item']['endIndex']=_0x4817b7):('elementStart'===_0x38713c[_0x4817b7]['type']?_0x38713c[_0x4817b7]['item']['startIndex']=_0x4817b7:'elementEnd'===_0x38713c[_0x4817b7]['type']&&(_0x38713c[_0x4817b7]['item']['endIndex']=_0x4817b7),_0x1b6739['set'](_0x38713c[_0x4817b7]['id'],_0x4817b7));for(const _0x73c9dc of _0x1b6739['values']())'elementStart'===_0x38713c[_0x73c9dc]['type']?_0x38713c[_0x73c9dc]['item']['endIndex']=_0x1b6739['get'](_0x38713c[_0x73c9dc]['pairId']):'elementEnd'===_0x38713c[_0x73c9dc]['type']&&(_0x38713c[_0x73c9dc]['item']['startIndex']=_0x1b6739['get'](_0x38713c[_0x73c9dc]['pairId']));}['_processTape'](_0x121be9){for(let _0x20e3ac=0x0;_0x20e3ac<_0x121be9['length'];_0x20e3ac++){if('elementStart'===_0x121be9[_0x20e3ac]['type'])_0x121be9[_0x20e3ac]['item']['startIndex']=_0x20e3ac;else{if('elementEnd'===_0x121be9[_0x20e3ac]['type']){_0x121be9[_0x20e3ac]['item']['endIndex']=_0x20e3ac;const _0x396c64=_0x121be9[_0x20e3ac]['item']['startIndex'];_0x121be9[_0x396c64]['pairId']=_0x121be9[_0x20e3ac]['id'],_0x121be9[_0x20e3ac]['pairId']=_0x121be9[_0x396c64]['id'];}else _0x121be9[_0x20e3ac]['item']['startIndex']=_0x20e3ac,_0x121be9[_0x20e3ac]['item']['endIndex']=_0x20e3ac,_0x121be9[_0x20e3ac]['pairId']=null;}_0x121be9[_0x20e3ac]['markersStart']||(_0x121be9[_0x20e3ac]['markersStart']=[],_0x121be9[_0x20e3ac]['markersEnd']=[]);}}['_markInsertions'](_0x23eefe,_0x4c3b1a){const _0x25617b=_0x23eefe['filter'](_0x4baef2=>!_0x4baef2['isAdded']);for(let _0x2380bf=0x0;_0x2380bf<_0x4c3b1a['length'];_0x2380bf++)_0x4c3b1a[_0x2380bf]['isAdded']&&(_0x25617b[_0x2380bf]['isAdded']=_0x4c3b1a[_0x2380bf]['isAdded']);}['_getDiff'](_0x57a829,_0x154156=null){const _0x20108a=this['repository']['getRevision'](_0x57a829),_0x17313b=_0x154156?this['repository']['getRevision'](_0x154156):null,_0xeca8be=this['_getRevisionsRange'](_0x20108a,_0x17313b),_0x2d2e79=_0xeca8be[_0xeca8be['length']-0x1],_0x511d10=new Map(),_0xa0ea09={'model':{},'attributes':{},'changes':[]},_0x21fd89=new Set(),_0x1fe41d=new Map();for(let _0x4b2580=_0xeca8be['length']-0x1;_0x4b2580>=0x0;_0x4b2580--){const _0x29f17c=_0xeca8be[_0x4b2580];for(const _0x144722 of Object['keys'](_0x29f17c['diffData']))if(_0x29f17c['diffData'][_0x144722]['attachChange']){const _0x1a3f8c=_0x29f17c['diffData'][_0x144722]['attachChange'];_0x1a3f8c['isAttached']?(_0x21fd89['add'](_0x144722),_0x1fe41d['has'](_0x144722)&&_0x1fe41d['get'](_0x144722)['userId']==_0x1a3f8c['userId']?_0x1fe41d['delete'](_0x144722):_0x1fe41d['set'](_0x144722,_0x1a3f8c)):_0x1fe41d['has'](_0x144722)?(_0x21fd89['delete'](_0x144722),_0x1fe41d['delete'](_0x144722)):(_0x21fd89['add'](_0x144722),_0x1fe41d['set'](_0x144722,_0x1a3f8c));}else _0x21fd89['add'](_0x144722);}for(const _0x443b0a of _0x21fd89){const _0x325ab6=_0x1fe41d['has'](_0x443b0a)&&!_0x1fe41d['get'](_0x443b0a)['isAttached'];let _0x1a5c05=_0x325ab6?_0xeca8be['length']-0x1:0x0;const _0xfe55dc=_0x325ab6?-0x1:0x1;for(;_0xeca8be[_0x1a5c05];){const _0x1bbe1c=_0xeca8be[_0x1a5c05];if(_0x1bbe1c['diffData'][_0x443b0a]){const _0x469ad9=_0x325ab6?_0x1bbe1c['diffData'][_0x443b0a]['attributesBefore']:_0x1bbe1c['diffData'][_0x443b0a]['attributesAfter'];_0xa0ea09['attributes'][_0x443b0a]=_0x469ad9?_0x2f730e(_0x469ad9):{};break;}_0x1a5c05+=_0xfe55dc;}}for(const _0x4d0338 of _0xeca8be){_0x4d0338['model']={};for(const _0x263ac0 of _0x4d0338['authors'])_0x511d10['set'](_0x263ac0['id'],_0x263ac0);for(const _0x4dfbc7 of _0x21fd89){const _0x259248=_0x4d0338['diffData'][_0x4dfbc7]?_0x4d0338['diffData'][_0x4dfbc7]['insertions']:'[]',_0x480143=_0x4d0338['diffData'][_0x4dfbc7]?_0x4d0338['diffData'][_0x4dfbc7]['deletions']:'[]';_0x4d0338['model'][_0x4dfbc7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x259248),'deletions':this['_utils']['_makeModelFromViewString'](_0x480143)};}}for(const _0x5c5937 of _0x21fd89){let _0x57911e=null,_0xf624ce=0x0;const _0x1964ba=new Map(Array['from'](_0x20108a['model'][_0x5c5937]['insertions']['markers'])['filter'](([_0x1c4d1c])=>!_0x1c4d1c['startsWith']('revision:')));let _0x3b66e2=0x0;for(const _0xa73e07 of _0xeca8be){const _0x52d027=this['_makeTape'](_0xa73e07['model'][_0x5c5937]['insertions']);_0xa73e07==_0x20108a?(_0x57911e=_0x52d027,_0xf624ce=_0x57911e['length'],_0x57911e['forEach'](_0x17e1a8=>{_0x17e1a8['id']=_0x3b66e2++;}),this['_processTape'](_0x57911e)):this['_markInsertions'](_0x57911e,_0x52d027);const _0x1edd7c=_0x57911e['filter'](_0x506544=>!_0x506544['isAdded'])['map'](_0x1b589f=>_0x1b589f['id']);let _0xd55c98=0x0;const _0x402f2c=this['_makeTape'](_0xa73e07['model'][_0x5c5937]['deletions']);_0x402f2c['forEach'](_0x7ad3e3=>{_0x7ad3e3['isRemoved']?_0x7ad3e3['id']=_0xf624ce++:_0x7ad3e3['id']=_0x1edd7c[_0xd55c98++];}),this['_processTape'](_0x402f2c),this['_setDistance'](_0x57911e,'isAdded'),this['_setDistance'](_0x402f2c,'isRemoved'),_0xa73e07==_0x20108a&&this['_markMarkers'](_0x57911e,_0x1964ba),_0x57911e=this['_joinTapes'](_0x57911e,_0x402f2c),this['_refreshStartEndIndex'](_0x57911e),this['_setDistance'](_0x57911e,'isRemoved');}_0x57911e=_0x57911e['filter'](_0x44cda8=>!(_0x44cda8['isAdded']&&_0x44cda8['isRemoved']));const _0x585df6=new Map(_0x2d2e79['model'][_0x5c5937]['deletions']['markers']),_0x1bff84=new Set(_0x1964ba['keys']());for(const _0x43ad89 of _0x585df6['keys']())_0x1bff84['delete'](_0x43ad89);this['_markSuggestions'](_0x57911e,_0x1bff84),this['_fixObsoleteTags'](_0x57911e),_0x57911e=this['_removeMissingPairs'](_0x57911e),_0x57911e=this['_markMismatchedRemovedTags'](_0x57911e),_0x57911e=this['_removeUnsupportedChanges'](_0x57911e);const {root:_0x56dd2a,changes:_0x556449}=this['_makeModelFromTape'](_0x57911e,_0x511d10,_0x5c5937);_0xa0ea09['model'][_0x5c5937]=_0x56dd2a;const _0x414f0d=_0x1fe41d['get'](_0x5c5937);if(_0x414f0d){const _0x1db8d2=_0x511d10['get'](_0x414f0d['userId']),_0x3f2401=new G({'author':_0x1db8d2,'type':_0x414f0d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5c5937});_0x556449['unshift'](_0x3f2401),_0xa0ea09['attributes'][_0x5c5937]['revisionHistoryAttachChange']=_0x3f2401['id'];}_0xa0ea09['changes']=_0xa0ea09['changes']['concat'](_0x556449);}return _0xa0ea09;}['_markMarkers'](_0x2fc624,_0x591b8a){for(let _0x5f527f=0x0;_0x5f527f<_0x2fc624['length'];_0x5f527f++)for(const [_0x5da770,_0x1e36ad]of _0x591b8a)!_0x1e36ad['isCollapsed']&&_0x1e36ad['start']['isEqual'](_0x2fc624[_0x5f527f]['previousPosition'])&&_0x2fc624[_0x5f527f]['markersStart']['push'](_0x5da770),_0x1e36ad['end']['isEqual'](_0x2fc624[_0x5f527f]['nextPosition'])&&_0x2fc624[_0x5f527f]['markersEnd']['push'](_0x5da770);}['_joinTapes'](_0x5b90ff,_0x339715){let _0x9863c=[],_0x1e405b=0x0,_0x506491=0x0;for(;_0x1e405b<_0x5b90ff['length']||_0x506491<_0x339715['length'];){const _0x339fb4=_0x5b90ff[_0x1e405b]||{},_0x5b8da1=_0x339715[_0x506491]||{};if(_0x339fb4['id']==_0x5b8da1['id'])_0x1e405b++,_0x506491++,_0x9863c['push'](_0x339fb4);else{if(_0x5b8da1['isRemoved']&&_0x339fb4['isAdded']){const {commonTape:_0x353dd7,iEnd:_0x2edfea,jEnd:_0x2212fd}=this['_threeWayMerge'](_0x5b90ff,_0x1e405b,_0x339715,_0x506491);_0x9863c=_0x9863c['concat'](_0x353dd7),_0x1e405b=_0x2edfea,_0x506491=_0x2212fd;}else _0x5b8da1['isRemoved']?(_0x506491++,_0x9863c['push'](_0x5b8da1)):(_0x1e405b++,_0x9863c['push'](_0x339fb4));}}return _0x9863c;}['_markSuggestions'](_0xd4036d,_0x3f0d6f){const _0x25acb1=[];for(let _0x1da3e3=0x0;_0x1da3e3<_0xd4036d['length'];_0x1da3e3++){for(let _0x330ff3=0x0;_0x330ff3<_0xd4036d[_0x1da3e3]['markersStart']['length'];_0x330ff3++){const _0x405d0b=_0xd4036d[_0x1da3e3]['markersStart'][_0x330ff3];if(!_0x3f0d6f['has'](_0x405d0b))continue;const {group:_0xb7dca0,type:_0xca944,authorId:_0x13dfb8}=_0x3f6759(_0x405d0b);'revision-suggestion'!=_0xb7dca0||'insertion'!=_0xca944&&'deletion'!=_0xca944||(_0x25acb1['unshift']({'type':_0xca944,'name':_0x405d0b,'userId':_0x13dfb8}),_0xd4036d[_0x1da3e3]['markersStart']['splice'](_0x330ff3,0x1),_0x330ff3--);}_0x180b64(_0xd4036d[_0x1da3e3]);for(let _0x155600=0x0;_0x155600<_0xd4036d[_0x1da3e3]['markersEnd']['length'];_0x155600++){const _0x4e6dd6=_0xd4036d[_0x1da3e3]['markersEnd'][_0x155600];if(!_0x3f0d6f['has'](_0x4e6dd6))continue;const {group:_0x3a1099,type:_0x4a6d28}=_0x3f6759(_0x4e6dd6);if('revision-suggestion'!=_0x3a1099||'insertion'!=_0x4a6d28&&'deletion'!=_0x4a6d28)continue;_0xd4036d[_0x1da3e3]['markersEnd']['splice'](_0x155600,0x1),_0x155600--;const _0x42f6ec=_0x25acb1['findIndex'](_0x4bb422=>_0x4bb422['name']==_0x4e6dd6);_0x42f6ec>-0x1&&_0x25acb1['splice'](_0x42f6ec,0x1);}}function _0x3f6759(_0x2d6d2e){const _0xb55f9b=_0x2d6d2e['split'](':');return{'group':_0xb55f9b[0x0],'type':_0xb55f9b[0x1],'subType':_0xb55f9b['length']>=0x5?_0xb55f9b[0x2]:null,'id':_0xb55f9b['length']<0x5?_0xb55f9b[0x2]:_0xb55f9b[0x3],'authorId':_0xb55f9b['length']<0x5?_0xb55f9b[0x3]:_0xb55f9b[0x4],'markerCount':0x6==_0xb55f9b['length']?_0xb55f9b[0x5]:null};}function _0x180b64(_0x56c9b8){for(let _0x16583d=0x0;_0x16583d<_0x25acb1['length'];_0x16583d++){if(_0x56c9b8['isAdded']&&'insertion'==_0x25acb1[_0x16583d]['type']&&_0x56c9b8['isAdded']['userId']==_0x25acb1[_0x16583d]['userId'])return _0x56c9b8['isAddSuggestion']=_0x25acb1[_0x16583d],void delete _0x56c9b8['isAdded'];if(!_0x56c9b8['isAdded']&&!_0x56c9b8['isRemoved']&&'deletion'==_0x25acb1[_0x16583d]['type'])return void(_0x56c9b8['isRemoveSuggestion']=_0x25acb1[_0x16583d]);}}}['_setDistance'](_0x27f2b4,_0x4a1be0){let _0x1b1661=0x0,_0x1d9b54=!0x1;const _0x49e9df=new Map();for(const _0x15cd5c of _0x27f2b4)_0x15cd5c[_0x4a1be0]?_0x1d9b54&&(_0x1b1661++,_0x1d9b54=!0x1):(_0x1b1661++,_0x1d9b54=!0x0),_0x49e9df['set'](_0x15cd5c['id'],_0x1b1661);for(let _0x4e42c0=0x0;_0x4e42c0<_0x27f2b4['length'];_0x4e42c0++){if('isRemoved'==_0x4a1be0&&_0x27f2b4[_0x4e42c0]['isAdded']||'isAdded'==_0x4a1be0&&_0x27f2b4[_0x4e42c0]['isRemoved'])continue;if('text'==_0x27f2b4[_0x4e42c0]['type']){_0x27f2b4[_0x4e42c0]['distance']=0x0;continue;}const _0x376e2b=_0x49e9df['get'](_0x27f2b4[_0x4e42c0]['pairId']),_0x4d6bdd=_0x49e9df['get'](_0x27f2b4[_0x4e42c0]['id']);_0x27f2b4[_0x4e42c0]['distance']=_0x376e2b-_0x4d6bdd;}}['_getRevisionsRange'](_0x17a9b5,_0x271d2c,_0x965785=!0x1){const _0x228316=[];let _0x2eed8c=this['repository']['getIndex'](_0x17a9b5),_0x475fad=this['repository']['getIndex'](_0x271d2c);for(-0x1==_0x475fad&&(_0x475fad=this['repository']['_revisions']['length'],_0x965785=!0x1);_0x2eed8c<_0x475fad;)_0x228316['push'](this['repository']['getRevision'](_0x2eed8c)),_0x2eed8c++;return _0x965785&&_0x228316['push'](this['repository']['getRevision'](_0x2eed8c)),_0x228316;}['_threeWayMerge'](_0x4022bb,_0x534287,_0x1fc5c5,_0x13eb5f){const _0x5d50bb=this['editor']['model']['schema'];let _0x438116=_0x534287;for(;_0x4022bb[_0x438116]&&_0x4022bb[_0x438116]['isAdded'];)_0x438116++;let _0x2edac4=_0x13eb5f;for(;_0x1fc5c5[_0x2edac4]&&_0x1fc5c5[_0x2edac4]['isRemoved'];)_0x2edac4++;_0x23d380(_0x4022bb,_0x534287,_0x438116),_0x23d380(_0x1fc5c5,_0x13eb5f,_0x2edac4);const _0x92a7a9=_0x1fc5c5['slice'](_0x13eb5f,_0x2edac4)['concat'](_0x4022bb['slice'](_0x534287,_0x438116));return _0x92a7a9['sort']((_0x2d2976,_0x1d6e43)=>_0x2d2976['side']!=_0x1d6e43['side']?_0x2d2976['side']-_0x1d6e43['side']:_0x2d2976['level']!=_0x1d6e43['level']?_0x2d2976['level']-_0x1d6e43['level']:_0x2d2976['distance']!=_0x1d6e43['distance']?_0x1d6e43['distance']-_0x2d2976['distance']:!!_0x2d2976['isAdded']!=!!_0x1d6e43['isAdded']?-0x1==_0x2d2976['side']||0x0==_0x2d2976['side']?_0x2d2976['isAdded']?-0x1:0x1:_0x2d2976['isAdded']?0x1:-0x1:_0x2d2976['index']-_0x1d6e43['index']),{'commonTape':_0x92a7a9,'iEnd':_0x438116,'jEnd':_0x2edac4};function _0x23d380(_0x291513,_0x113ce6,_0x1fdeef){let _0x1ef6e4=-0x1,_0x254d02=Number['POSITIVE_INFINITY'],_0x31f42c=!0x0;for(let _0x55b257=_0x113ce6;_0x55b257<_0x1fdeef;_0x55b257++)if(_0x5d50bb['isInline'](_0x291513[_0x55b257]['item'])||(_0x31f42c=!0x1),_0x291513[_0x55b257]['item']['startIndex']<_0x113ce6&&(_0x1ef6e4=_0x55b257),_0x291513[_0x55b257]['item']['endIndex']>=_0x1fdeef){_0x254d02=_0x55b257;break;}_0x31f42c&&(_0x1ef6e4=_0x1fdeef-0x1);for(let _0x448cb8=_0x113ce6;_0x448cb8<_0x1fdeef;_0x448cb8++)_0x291513[_0x448cb8]['side']=_0x448cb8<=_0x1ef6e4?-0x1:_0x448cb8<_0x254d02?0x0:0x1,_0x291513[_0x448cb8]['index']=_0x448cb8;let _0x1091ae=0x0;for(let _0xe307bc=_0x113ce6;_0xe307bc<=_0x1ef6e4;_0xe307bc++)0x0==_0x291513[_0xe307bc]['distance']?_0x291513[_0xe307bc]['level']=_0x1091ae:(_0x1091ae++,_0x291513[_0xe307bc]['level']=_0x1091ae,_0x1091ae++);for(let _0x161d2a=_0x113ce6;_0x161d2a<_0x1fdeef;_0x161d2a++)0x0==_0x291513[_0x161d2a]['side']&&(_0x291513[_0x161d2a]['level']=_0x1091ae);_0x1091ae=0x0;for(let _0x19bd7d=_0x1fdeef-0x1;_0x19bd7d>=_0x254d02;_0x19bd7d--)0x0==_0x291513[_0x19bd7d]['distance']?_0x291513[_0x19bd7d]['level']=_0x1091ae:(_0x1091ae--,_0x291513[_0x19bd7d]['level']=_0x1091ae,_0x1091ae--);}}['_fixObsoleteTags'](_0x2b6c87){const _0x1b622d=new Map(),_0x4a23e7=this['editor']['model']['schema'];for(let _0x1affe6=0x1;_0x1affe6<_0x2b6c87['length'];_0x1affe6++){let _0x3bc04b,_0x1155ac,_0x2972c8;const _0xd054de=_0x2b6c87[_0x1affe6],_0x224ecf=_0x2b6c87[_0x1affe6-0x1];if('text'==_0xd054de['type'])continue;if(_0xd054de['type']!=_0x224ecf['type'])continue;if(!_0x4a23e7['isBlock'](_0x224ecf['item'])||_0x4a23e7['isLimit'](_0x224ecf['item']))continue;if(!_0x4a23e7['isBlock'](_0xd054de['item'])||_0x4a23e7['isLimit'](_0xd054de['item']))continue;if((_0x2b6c87[_0x1affe6]['isAdded']||_0x2b6c87[_0x1affe6]['isAddSuggestion'])&&_0x2b6c87[_0x1affe6-0x1]['isRemoved'])_0x3bc04b=_0x2b6c87[_0x1affe6],_0x1155ac=_0x2b6c87[_0x1affe6-0x1],_0x2972c8=_0x1affe6-0x1;else{if(!_0x2b6c87[_0x1affe6]['isRemoved']||!_0x2b6c87[_0x1affe6-0x1]['isAdded']&&!_0x2b6c87[_0x1affe6-0x1]['isAddSuggestion'])continue;_0x3bc04b=_0x2b6c87[_0x1affe6-0x1],_0x1155ac=_0x2b6c87[_0x1affe6],_0x2972c8=_0x1affe6;}const _0x442cf5=_0x3bc04b['level']==_0x1155ac['level'],_0x2a8deb=Math['abs'](_0x3bc04b['level'])<Math['abs'](_0x1155ac['level'])&&0x0==_0x1155ac['distance'];(_0x442cf5||_0x2a8deb)&&(_0x1b622d['set'](_0x1155ac['id'],_0x3bc04b['id']),_0x2b6c87['splice'](_0x2972c8,0x1),_0x1affe6--,_0x3bc04b['isAdded']=!0x1);}for(let _0x19a42f=0x0;_0x19a42f<_0x2b6c87['length'];_0x19a42f++)_0x1b622d['has'](_0x2b6c87[_0x19a42f]['pairId'])&&(_0x2b6c87[_0x19a42f]['pairId']=_0x1b622d['get'](_0x2b6c87[_0x19a42f]['pairId']));}['_removeMissingPairs'](_0x3e7714){const _0x193a13=new Set(_0x3e7714['map'](_0x5e3d79=>_0x5e3d79['id']));for(let _0xcaf84f=0x0;_0xcaf84f<_0x3e7714['length'];_0xcaf84f++)_0x193a13['has'](_0x3e7714[_0xcaf84f]['pairId'])||0x0==_0x3e7714[_0xcaf84f]['distance']||(_0x3e7714[_0xcaf84f]['isIncorrect']=!0x0);return _0x3e7714['filter'](_0x2a5b29=>!_0x2a5b29['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4b8e7c){const _0x10785f=new Set();for(let _0x3633b8=0x0;_0x3633b8<_0x4b8e7c['length'];_0x3633b8++){if(_0x10785f['has'](_0x4b8e7c[_0x3633b8]['id'])&&_0x4b8e7c[_0x3633b8]['isRemoved']&&(_0x4b8e7c[_0x3633b8]['isIncorrect']=!0x0),_0x4b8e7c[_0x3633b8]['isIncorrect'])continue;if(0x0==_0x4b8e7c[_0x3633b8]['distance'])continue;if('elementStart'!=_0x4b8e7c[_0x3633b8]['type'])continue;if(null==_0x4b8e7c[_0x3633b8]['pairId'])continue;let _0x11ebe2=_0x3633b8+0x1,_0x2c3ea2=0x0;for(;_0x4b8e7c[_0x11ebe2]['id']!=_0x4b8e7c[_0x3633b8]['pairId'];)'elementStart'==_0x4b8e7c[_0x11ebe2]['type']?_0x2c3ea2++:'elementEnd'==_0x4b8e7c[_0x11ebe2]['type']&&_0x2c3ea2--,_0x11ebe2++;if(0x0!=_0x2c3ea2){if(_0x4b8e7c[_0x3633b8]['isRemoved'])_0x4b8e7c[_0x3633b8]['isIncorrect']=!0x0;else{for(;_0x11ebe2!=_0x3633b8;)_0x4b8e7c[_0x11ebe2]['isRemoved']&&0x0!=_0x4b8e7c[_0x11ebe2]['distance']&&(_0x4b8e7c[_0x11ebe2]['isIncorrect']=!0x0,_0x10785f['add'](_0x4b8e7c[_0x11ebe2]['pairId'])),_0x11ebe2--;}}}return _0x4b8e7c['filter'](_0x24956f=>!_0x24956f['isIncorrect']);}['_removeUnsupportedChanges'](_0x29a697){const _0x1042c7=this['editor']['model']['schema'];for(let _0x3e4f2e=0x0;_0x3e4f2e<_0x29a697['length'];_0x3e4f2e++){if(!(_0x29a697[_0x3e4f2e]['isAdded']||_0x29a697[_0x3e4f2e]['isAddSuggestion']||_0x29a697[_0x3e4f2e]['isRemoved']||_0x29a697[_0x3e4f2e]['isRemoveSuggestion']))continue;if(0x0==_0x29a697[_0x3e4f2e]['distance'])continue;const _0x3778a2=_0x29a697[_0x3e4f2e]['item'];_0x1042c7['isBlock'](_0x3778a2)||_0x1042c7['isLimit'](_0x3778a2)||(_0x29a697[_0x3e4f2e]['isAdded']&&delete _0x29a697[_0x3e4f2e]['isAdded'],_0x29a697[_0x3e4f2e]['isAddSuggestion']&&delete _0x29a697[_0x3e4f2e]['isAddSuggestion'],_0x29a697[_0x3e4f2e]['isRemoveSuggestion']&&delete _0x29a697[_0x3e4f2e]['isRemoveSuggestion'],_0x29a697[_0x3e4f2e]['isRemoved']&&(_0x29a697[_0x3e4f2e]['isIncorrect']=!0x0));}return _0x29a697['filter'](_0x1bb926=>!_0x1bb926['isIncorrect']);}['_makeModelFromTape'](_0x40e734,_0x2bca98,_0x4d4626){const _0x58c3f3=new _0x22dcf7(),_0x57940f=[],_0x519264=new Map(),_0x306928=this['editor']['model'],_0x5705fb=_0x306928['schema'],_0x530dd8=[_0x58c3f3],_0x24c189={},_0x59c203={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x31d4c5=null;const _0x31126d=[0x0];for(let _0x4b3e51=0x0;_0x4b3e51<_0x40e734['length'];_0x4b3e51++)if('elementStart'===_0x40e734[_0x4b3e51]['type']){_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d);const _0x3b8ede=new _0x3dce0a(_0x40e734[_0x4b3e51]['item']['name'],_0x40e734[_0x4b3e51]['item']['getAttributes']());_0x530dd8[0x0]['_appendChild'](_0x3b8ede),_0x31126d['push'](0x0),_0x530dd8['unshift'](_0x3b8ede),_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d);}else'elementEnd'===_0x40e734[_0x4b3e51]['type']?(_0x530dd8['shift'](),_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d),_0x31126d['pop'](),_0x31126d[_0x31126d['length']-0x1]++,_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d)):(_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d),_0x31d4c5?_0x31d4c5['_data']+=_0x40e734[_0x4b3e51]['item']['data']:_0x31d4c5=new _0x3ce810(_0x40e734[_0x4b3e51]['item']['data'],_0x40e734[_0x4b3e51]['item']['getAttributes']()),_0x40e734[_0x4b3e51+0x1]&&'text'===_0x40e734[_0x4b3e51+0x1]['type']&&_0x154616(_0x31d4c5,_0x40e734[_0x4b3e51+0x1]['item'])||(_0x530dd8[0x0]['_appendChild'](_0x31d4c5),_0x31d4c5=null),_0x31126d[_0x31126d['length']-0x1]+=_0x40e734[_0x4b3e51]['item']['offsetSize'],_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d));for(let _0x56e187=0x0;_0x56e187<_0x40e734['length'];_0x56e187++){const _0x47a77b=_0x40e734[_0x56e187]['previousPosition'],_0x475230=_0x40e734[_0x56e187]['nextPosition'];for(const _0x9269af of _0x40e734[_0x56e187]['markersStart'])_0x519264['set'](_0x9269af,{'start':_0x47a77b,'end':null});_0x4d8b52('isRemoveSuggestion',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isAddSuggestion',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isRemoved',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isAdded',_0x56e187,_0x47a77b,_0x475230);for(const _0x12044d of _0x40e734[_0x56e187]['markersEnd']){const _0x4ffa44=_0x519264['get'](_0x12044d);_0x4ffa44?_0x4ffa44['end']=_0x475230:_0x519264['set'](_0x12044d,{'start':_0x475230,'end':_0x475230});}}for(const [_0x56ce45,_0x5d5c65]of _0x519264){const _0x225f0a=this['editor']['model']['createRange'](_0x5d5c65['start'],_0x5d5c65['end']);_0x58c3f3['markers']['set'](_0x56ce45,_0x225f0a);}return _0x57940f['sort']((_0x4c0075,_0x37db7d)=>{const _0x1a4929=_0x58c3f3['markers']['get']('revision:'+_0x4c0075['id']),_0x2e0b0f=_0x58c3f3['markers']['get']('revision:'+_0x37db7d['id']);return _0x1a4929['start']['isBefore'](_0x2e0b0f['start'])?-0x1:_0x1a4929['start']['isAfter'](_0x2e0b0f['start'])?0x1:_0x1a4929['end']['isBefore'](_0x2e0b0f['end'])?-0x1:_0x1a4929['end']['isAfter'](_0x2e0b0f['end'])?0x1:'add'===_0x4c0075['type']?-0x1:0x1;}),{'root':_0x58c3f3,'changes':_0x57940f};function _0x4d8b52(_0x4f005f,_0xbc399,_0x325e44,_0x8c98a){const _0x3d4c9c=!!_0x40e734[_0xbc399][_0x4f005f],_0x1b6498=_0x3d4c9c?_0x40e734[_0xbc399][_0x4f005f]['userId']:null,_0x538d73=_0xbc399===_0x40e734['length']-0x1,_0x56570f=_0x59c203[_0x4f005f][0x0],_0x5ded8c=_0x5705fb['isObject'](_0x40e734[_0xbc399]['item']);!_0x24c189[_0x4f005f]&&_0x3d4c9c?_0x24c189[_0x4f005f]={'start':_0x325e44,'tapeItem':_0x40e734[_0xbc399],'userId':_0x1b6498,'type':_0x4f005f}:_0x24c189[_0x4f005f]&&!_0x3d4c9c?(_0x24c189[_0x4f005f]['end']=_0x325e44,_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]=null):_0x24c189[_0x4f005f]&&_0x3d4c9c&&_0x24c189[_0x4f005f]['userId']!==_0x1b6498&&(_0x24c189[_0x4f005f]['end']=_0x325e44,_0x56570f&&_0x56570f['userId']===_0x24c189[_0x4f005f]['userId']||_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]={'start':_0x325e44,'tapeItem':_0x40e734[_0xbc399],'userId':_0x1b6498,'type':_0x4f005f}),_0x24c189[_0x4f005f]&&_0x5ded8c&&('elementStart'!==_0x40e734[_0xbc399]['type']||_0x56570f&&_0x56570f['userId']===_0x1b6498||_0x59c203[_0x4f005f]['unshift']({'userId':_0x1b6498,'object':_0x40e734[_0xbc399]['item'],'change':_0x24c189[_0x4f005f]}),'elementEnd'===_0x40e734[_0xbc399]['type']&&_0x56570f&&_0x56570f['object']===_0x40e734[_0xbc399]['item']&&(_0x59c203[_0x4f005f]['shift'](),_0x24c189[_0x4f005f]=_0x56570f['change'])),_0x24c189[_0x4f005f]&&_0x538d73&&(_0x24c189[_0x4f005f]['end']=_0x8c98a,_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]=null);}function _0x57bbc5({start:_0x5bcce2,end:_0x292db0,tapeItem:_0x7703fb,userId:_0x5244b1,type:_0x202869}){const _0x4a48e5=_0x7703fb['item'],_0x217da0=_0x306928['schema']['isBlock'](_0x4a48e5)&&!_0x306928['schema']['isLimit'](_0x4a48e5),_0xb7b80=_0x5bcce2['nodeAfter']==_0x292db0['parent']&&_0x292db0['isAtStart'];if(_0x217da0&&_0xb7b80)return;const _0x21de94=_0x306928['createRange'](_0x5bcce2,_0x292db0),_0x5be102=_0x2bca98['get'](_0x5244b1),_0x1c9fc3=new G({'author':_0x5be102,'type':'isAdded'==_0x202869||'isAddSuggestion'==_0x202869?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x202869||'isRemoveSuggestion'==_0x202869},'createdAt':new Date(),'rootName':_0x4d4626});_0x57940f['push'](_0x1c9fc3),_0x58c3f3['markers']['set']('revision:'+_0x1c9fc3['id'],_0x21de94);}function _0x154616(_0x162328,_0x47c056){const _0x3fa1c7=_0x162328['getAttributes'](),_0x4054b1=_0x47c056['getAttributes']();for(const _0x2fa9b5 of _0x3fa1c7){if(_0x2fa9b5[0x1]!==_0x47c056['getAttribute'](_0x2fa9b5[0x0]))return!0x1;_0x4054b1['next']();}return _0x4054b1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb6dbd6=>{const _0x3fee9b=_0xb6dbd6['markerName']['split'](':')[0x1],_0x173ba8=this['_getChangeFromId'](_0x3fee9b);if(!_0x173ba8)return null;const _0x53c233='add'==_0x173ba8['type']?'insertion':'deletion',_0xb3a999=['ck-suggestion-marker','ck-suggestion-marker-'+_0x53c233];return _0x173ba8['data']['isSuggestion']&&_0xb3a999['push']('ck-suggestion-marker-'+_0x53c233+'-new'),this['activeChange']==_0x173ba8&&_0xb3a999['push']('ck-suggestion-marker--active'),{'classes':_0xb3a999,'attributes':{'data-change-id':_0x3fee9b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4aa358=>{_0x4aa358['on']('element:pre',(_0x117da0,_0x565203,_0x50b293)=>{const _0xa5bd5=_0x565203['viewItem']['getChild'](0x0);if(!_0xa5bd5||!_0xa5bd5['is']('element','code'))return;if(!_0x50b293['consumable']['consume'](_0xa5bd5,{'attributes':['vid_start','vid_end']}))return;const _0x36ba9c=_0x565203['modelRange']['start']['nodeAfter'];_0x50b293['writer']['setAttribute']('vid_start',_0xa5bd5['getAttribute']('vid_start'),_0x36ba9c),_0x50b293['writer']['setAttribute']('vid_end',_0xa5bd5['getAttribute']('vid_end'),_0x36ba9c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4469da=>{_0x4469da['on']('element',(_0x487a46,_0x14b23c,_0x37ed8f)=>{if(!_0x37ed8f['consumable']['consume'](_0x14b23c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x14b23c['modelRange']['isCollapsed'])return;const _0x3de4b1=_0x14b23c['modelRange']['start']['nodeAfter'];_0x3de4b1['hasAttribute']('vid_start')||_0x3de4b1['hasAttribute']('vid')||(_0x37ed8f['writer']['setAttribute']('vid_start',_0x14b23c['viewItem']['getAttribute']('vid_start'),_0x3de4b1),_0x37ed8f['writer']['setAttribute']('vid_end',_0x14b23c['viewItem']['getAttribute']('vid_end'),_0x3de4b1));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x489370=>_0x489370['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40c915,[,_0x32e033])=>{['vid_start','vid_end','vid']['includes'](_0x32e033)&&(_0x40c915['return']=!0x0,_0x40c915['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4ffbc6=>{_0x4ffbc6['on']('attribute:vid',(_0x18605b,_0x4039a3,_0x401dba)=>{if('\x20'!=_0x4039a3['item']['data']||_0x4039a3['item']['parent']['maxOffset']>0x1)return;if(!_0x401dba['consumable']['consume'](_0x4039a3['item'],_0x18605b['name']))return;const _0x327049=_0x401dba['writer'],_0x14ac8b=_0x401dba['mapper']['toViewRange'](_0x4039a3['range']);_0x327049['wrap'](_0x14ac8b,_0x327049['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x29cb37){const _0x296090=_0x29cb37['plugins']['get']('RevisionViewer');return(_0x425785,_0x4a0e28,_0x151411)=>{const _0xc64047=_0x4a0e28['markerName']['split'](':')[0x1],_0x5d2f1d=_0x296090['_getChangeFromId'](_0xc64047);if(!_0x5d2f1d)return null;const _0x59d153='add'==_0x5d2f1d['type']?'split':'merge';if(!_0x151411['consumable']['test'](_0x4a0e28['markerRange'],_0x425785['name']))return;const _0x55af45=_0x4a0e28['markerRange']['getWalker'](),_0x2120d6=_0x4a0e28['markerRange']['start'],_0x5b8e95=_0x29cb37['model']['schema'];let _0x2ea063=null,_0xfe3767=null,_0x564bbf=!0x1,_0x67db53=!0x1;for(const _0x370655 of _0x55af45){const _0x5a7260=_0x370655['item'];_0x564bbf=_0x564bbf||_0x5b8e95['isContent'](_0x5a7260);const _0x162060=_0x151411['mapper']['toViewElement'](_0x5a7260);if(_0x162060&&_0x162060['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x370655['type']&&(_0x5b8e95['isBlock'](_0x5a7260)&&!_0x5b8e95['isLimit'](_0x5a7260)&&(_0x5a7260['nextSibling']||_0x2120d6['isAtEnd']?_0x2ea063&&_0x2ea063['parent']==_0x5a7260||(_0x2ea063=_0x5a7260,_0xdf60ec(_0x370655['previousPosition']),_0x67db53=!0x0):_0xfe3767=_0xfe3767||_0x370655['previousPosition']));}function _0xdf60ec(_0x5090ad){const _0x5bcac7=_0x151411['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59d153}),_0x12be4f=_0x151411['mapper']['toViewPosition'](_0x5090ad);_0x5d2f1d['data']['isSuggestion']&&_0x151411['writer']['addClass']('ck-suggestion-marker-'+_0x59d153+'-new',_0x5bcac7),_0x296090['activeChange']==_0x5d2f1d&&_0x151411['writer']['addClass']('ck-suggestion-marker--active',_0x5bcac7),_0x151411['writer']['insert'](_0x12be4f,_0x5bcac7),_0x151411['mapper']['bindElementToMarker'](_0x5bcac7,_0x4a0e28['markerName']);}_0x564bbf||_0x67db53||!_0xfe3767||_0xdf60ec(_0xfe3767);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x277638,_0x16e7b5,_0x364e70)=>{const _0x5238bf=_0x364e70['mapper']['markerNameToElements'](_0x16e7b5['markerName']);if(_0x5238bf){for(const _0x1c614c of _0x5238bf)(_0x1c614c['hasClass']('ck-suggestion-marker-split')||_0x1c614c['hasClass']('ck-suggestion-marker-merge'))&&(_0x364e70['mapper']['unbindElementFromMarkerName'](_0x1c614c,_0x16e7b5['markerName']),_0x364e70['writer']['remove'](_0x1c614c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x195e59,_0x117e84,_0x2a9503)=>{const _0x348c99=_0x117e84['markerName']['split'](':')[0x1],_0x54920b=this['_getChangeFromId'](_0x348c99);if(!_0x54920b)return null;const _0x47064c='add'==_0x54920b['type']?'split':'merge';if(_0x2a9503['consumable']['test'](_0x117e84['markerRange'],_0x195e59['name']))for(const _0xfd9f24 of _0x117e84['markerRange']['getItems']()){if(!_0xfd9f24['is']('element','softBreak'))continue;const _0x8b51c1=_0x2a9503['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47064c}),_0x3a14a6=_0x2a9503['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xfd9f24));_0x54920b['data']['isSuggestion']&&_0x2a9503['writer']['addClass']('ck-suggestion-marker-'+_0x47064c+'-new',_0x8b51c1),this['activeChange']==_0x54920b&&_0x2a9503['writer']['addClass']('ck-suggestion-marker--active',_0x8b51c1),_0x2a9503['writer']['insert'](_0x3a14a6,_0x8b51c1),_0x2a9503['mapper']['bindElementToMarker'](_0x8b51c1,_0x117e84['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2e2fd7=>{for(const _0x2d8b30 of this['editor']['model']['document']['getRootNames']()){const _0x313a0a=this['editor']['model']['document']['getRoot'](_0x2d8b30),_0x29798e=this['editor']['editing']['view']['document']['getRoot'](_0x2d8b30);if(_0x29798e){const _0x1140a0=_0x313a0a['getAttribute']('revisionHistoryAttachChange');if(_0x2e2fd7['removeAttribute']('data-change-id',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root-add',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root-remove',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root--active',_0x29798e),_0x1140a0){const _0x12ac1b=this['_getChangeFromId'](_0x1140a0);if(!_0x12ac1b)return null;_0x2e2fd7['setAttribute']('data-change-id',_0x1140a0,_0x29798e),_0x2e2fd7['addClass']('ck-revision-history-root-'+_0x12ac1b['type'],_0x29798e),this['activeChange']==_0x12ac1b&&_0x2e2fd7['addClass']('ck-revision-history-root--active',_0x29798e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5a9602=>'revision-comment:'+_0x5a9602,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2f0014=>'revision-suggestion:'+_0x2f0014,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ed3d8=>({'name':'suggestion:'+_0x2ed3d8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e52e1=>{const _0x1bc65f=_0x4e52e1['markerName']['split'](':')[0x1];return'insertion'!=_0x1bc65f&&'deletion'!=_0x1bc65f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1bc65f]};}}),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',(_0x34046e,_0x778fac,_0x25bfdb)=>{const _0x31863=_0x25bfdb['mapper']['markerNameToElements'](_0x778fac['markerName']);if(_0x31863){for(const _0x49e9fa of _0x31863)_0x49e9fa['is']('uiElement')&&(_0x25bfdb['mapper']['unbindElementFromMarkerName'](_0x49e9fa,_0x778fac['markerName']),_0x25bfdb['writer']['remove'](_0x49e9fa));}},{'priority':'high'});}['_getChangeFromId'](_0x102a33){return this['_changeIdToChange']['get'](_0x102a33);}['_getViewForChange'](_0x48a417){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x48a417),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x30abb7,_0x43a8ad,_0x2e59b7,_0x2cff24)=>{_0x2cff24&&this['_balloon']['remove'](_0x2cff24),_0x2e59b7&&(this['_balloon']['add']({'view':_0x2e59b7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1de775=this['editor']['editing'],_0x3bae8d=this['_getChangeFromId'](_0x2e59b7['changeId']);let _0x331e2e;if(_0x3bae8d['data']['isOnRoot']){const _0x42ca68=_0x1de775['view']['getDomRoot'](_0x3bae8d['rootName']);_0x331e2e=Array['from'](_0x42ca68['getClientRects']());}else{const _0x275ed7=this['editor']['model']['markers']['get']('revision:'+_0x2e59b7['changeId']);_0x331e2e=Array['from'](_0x1de775['mapper']['markerNameToElements'](_0x275ed7['name']))['map'](_0x431c7b=>_0x1de775['view']['domConverter']['mapViewToDom'](_0x431c7b))['map'](_0xadffdc=>Array['from'](_0xadffdc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x331e2e[0x0];return _0x331e2e['find'](_0x1302db=>_0x1302db['top']-0x3<=this['_activeViewTarget']['y']&&_0x1302db['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1302db['left']-0x3<=this['_activeViewTarget']['x']&&_0x1302db['right']+0x3>=this['_activeViewTarget']['x'])||_0x331e2e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x110b8c,_0x51714d,_0x46f926,_0x2c1de6)=>{this['activeView']=_0x46f926?this['_getViewForChange'](_0x46f926):null,this['editor']['model']['change'](()=>{const _0x5f5c17=this['editor']['editing'];_0x2c1de6&&(_0x2c1de6['data']['isOnRoot']?_0x5f5c17['view']['change'](_0x442b3c=>{_0x442b3c['removeClass']('ck-revision-history-root--active',_0x5f5c17['view']['document']['getRoot'](_0x2c1de6['rootName']));}):_0x5f5c17['reconvertMarker']('revision:'+_0x2c1de6['id'])),_0x46f926&&(_0x46f926['data']['isOnRoot']?_0x5f5c17['view']['change'](_0x525cb2=>{_0x525cb2['addClass']('ck-revision-history-root--active',_0x5f5c17['view']['document']['getRoot'](_0x46f926['rootName']));}):_0x5f5c17['reconvertMarker']('revision:'+_0x46f926['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x391432,_0x29b4c4)=>{if(this['activeChange'])return;const _0x2f7ffd=this['_findChangeIdFromDomTarget'](_0x29b4c4['target']),_0x7ae257=this['_changeIdToChange']['get'](_0x2f7ffd);_0x7ae257?(this['_activeViewTarget']={'x':_0x29b4c4['domEvent']['x'],'y':_0x29b4c4['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x7ae257)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x106897,_0x2164e8)=>{const _0x1f018b=this['_findChangeIdFromDomTarget'](_0x2164e8['target']),_0x3c0292=this['_changeIdToChange']['get'](_0x1f018b);_0x3c0292?(this['_activeViewTarget']={'x':_0x2164e8['domEvent']['x'],'y':_0x2164e8['domEvent']['y']},_0x3c0292===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3c0292):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x361593){do{const _0x5d515c=_0x361593['getAttribute']('data-change-id');if(_0x5d515c)return _0x5d515c;_0x361593=_0x361593['parent'];}while(_0x361593);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2aa805=>{for(const _0x15bd6d of this['editor']['model']['markers'])_0x2aa805['removeMarker'](_0x15bd6d);});}}function Q(_0x2f21cd,_0x2b0a75){return(_0xc08676,_0x14bd65,_0x568c68)=>{if(!_0x568c68['consumable']['test'](_0x14bd65['markerRange'],_0xc08676['name']))return;const _0x2e2bab=_0x14bd65['markerRange']['getWalker'](),_0x2330fa=_0x14bd65['markerRange']['start'],_0xa2bfa7=_0x2f21cd['model']['schema'];let _0x223344=null,_0x235d39=null,_0x32d00d=!0x1,_0x582bbb=!0x1;for(const _0x509a92 of _0x2e2bab){const _0x3c56a7=_0x509a92['item'];_0x32d00d=_0x32d00d||_0xa2bfa7['isContent'](_0x3c56a7);const _0xceafc9=_0x568c68['mapper']['toViewElement'](_0x3c56a7);if(_0xceafc9&&_0xceafc9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x509a92['type']&&(_0xa2bfa7['isBlock'](_0x3c56a7)&&!_0xa2bfa7['isLimit'](_0x3c56a7)&&(_0x3c56a7['nextSibling']||_0x2330fa['isAtEnd']?_0x223344&&_0x223344['parent']==_0x3c56a7||(_0x223344=_0x3c56a7,_0x1ca7fa(_0x509a92['previousPosition']),_0x582bbb=!0x0):_0x235d39=_0x235d39||_0x509a92['previousPosition']));}function _0x1ca7fa(_0x1af655){const _0x1fb574=_0x568c68['mapper']['toViewPosition'](_0x1af655),_0x15fe22=_0x568c68['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b0a75});_0x568c68['writer']['insert'](_0x1fb574,_0x15fe22),_0x568c68['mapper']['bindElementToMarker'](_0x15fe22,_0x14bd65['markerName']);}_0x32d00d||_0x582bbb||!_0x235d39||_0x1ca7fa(_0x235d39);};}class nt extends _0x55cc81{constructor(_0x34e19e){super(_0x34e19e);const _0x125328=_0x34e19e['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x125328,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x125328,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x17874e=this['editor'],_0x4779f3=_0x17874e['plugins']['get'](u),_0x564d31=_0x4779f3['isReady']?_0x4779f3['diff']['newRevisionId']:null;_0x17874e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x564d31);}['refresh'](){const {isReady:_0x4d7b64,isEnabled:_0x52f94a,repository:_0xf3fc71,diff:_0x18cab1}=this['editor']['plugins']['get'](u),_0x35dd87=_0x18cab1&&_0xf3fc71['getLaterVisibleRevision'](_0x18cab1['newRevisionId']);this['isEnabled']=_0x4d7b64&&_0x52f94a&&Boolean(_0x35dd87);}}class rt extends _0x55cc81{['_step'];constructor(_0x3cda4d,{direction:_0x4c5e43}){super(_0x3cda4d);const _0x1b9457=_0x3cda4d['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x4c5e43?0x1:-0x1,this['listenTo'](_0x1b9457,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1b9457,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1b9457,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18bbd3=this['editor'],_0x24be6a=_0x18bbd3['plugins']['get'](u),{isNavigationMode:_0x163b9a,currentChangeNumber:_0x26d7c6}=_0x24be6a;let _0x195631;if(_0x24be6a['activeChange']=_0x163b9a?_0x24be6a['diff']['changes']['get'](_0x26d7c6+this['_step']):_0x24be6a['diff']['changes']['first'],_0x24be6a['activeChange']['data']['isOnRoot'])_0x195631=_0x18bbd3['editing']['view']['getDomRoot'](_0x24be6a['activeChange']['rootName']);else{const _0x450dee=_0x18bbd3['model']['markers']['get']('revision:'+_0x24be6a['activeChange']['id']);_0x195631=_0x45bde4(_0x18bbd3['editing'],_0x450dee);}_0x31208c({'target':_0x195631,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa08a01,currentChangeNumber:_0x4307cf,numberOfChanges:_0x59bfef,isReady:_0x33da74,isEnabled:_0xbdf2fc}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0xbdf2fc&&_0x33da74&&_0x59bfef)&&(!_0xa08a01||(0x1===this['_step']?_0x4307cf<_0x59bfef-0x1:_0x4307cf>0x0));}}class Ri extends _0x2f41d6{constructor(_0x4b3ee9){super(_0x4b3ee9);const _0x5eaf07=this['bindTemplate'],_0x4349ea=new _0x22b97e(_0x4b3ee9),_0x106c01=new _0x22b97e(_0x4b3ee9);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',(_0x5081dd,_0x4020be)=>_0x5081dd&&_0x4020be>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4f879b,_0x298f71,_0x4de288,_0x153eed)=>{if(!_0x4f879b)return m(_0x4b3ee9,'Loading...');if(!_0x4de288)return m(_0x4b3ee9,'No\x20changes');const _0x5d6a0a=m(_0x4b3ee9,'NUMBER_OF_CHANGES',_0x4de288);return _0x153eed?m(_0x4b3ee9,'X_OF_Y_CHANGES',[_0x298f71+0x1,_0x4de288]):_0x5d6a0a;}),_0x4349ea['set']({'label':m(_0x4b3ee9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x11f797}),_0x106c01['set']({'label':m(_0x4b3ee9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x48dfa2}),_0x4349ea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x106c01['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4349ea['on']('execute',()=>this['fire']('execute','backward')),_0x106c01['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',_0x5eaf07['if']('_isStatusLabelVisible','ck-hidden',_0x33b239=>!_0x33b239)]},'children':[{'text':_0x5eaf07['to']('isNavigationMode',_0x29f95a=>_0x29f95a?m(_0x4b3ee9,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4b3ee9,'Total')+':\x20')}]},{'text':_0x5eaf07['to']('_statusText')}]},new _0x1f6c28(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4349ea,_0x106c01]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x694cb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47f3e6=this['editor']['editing']['view'];_0x47f3e6['change'](_0x19dace=>{for(const _0x37e690 of _0x47f3e6['document']['roots'])_0x19dace['addClass'](ge,_0x37e690);});}['hide'](){const _0x17ae54=this['editor']['editing']['view'];_0x17ae54['change'](_0x2cb4c3=>{for(const _0x46a906 of _0x17ae54['document']['roots'])_0x2cb4c3['removeClass'](ge,_0x46a906);});}}class v extends _0x694cb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x533ba8=this['editor'],_0x33ac30=_0x533ba8['plugins']['get'](u),_0x38f09b=_0x533ba8['plugins']['get'](ji);_0x533ba8['ui']['componentFactory']['add']('exitToEditing',_0x706ba1=>{const _0x39c37a=new _0x22b97e(_0x706ba1);return _0x39c37a['set']({'label':m(_0x706ba1,'Back\x20to\x20editing'),'icon':_0x3c6c73,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39c37a,'execute',()=>{_0x533ba8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39c37a;}),_0x533ba8['ui']['componentFactory']['add']('restoreRevision',_0x1a98fc=>{const _0x13b7cb=new _0x22b97e(_0x1a98fc);return _0x13b7cb['set']({'label':m(_0x1a98fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13b7cb['bind']('isEnabled')['to'](_0x533ba8['commands']['get']('restoreRevision')),this['listenTo'](_0x13b7cb,'execute',()=>_0x533ba8['execute']('restoreRevision')),_0x13b7cb;}),_0x533ba8['ui']['componentFactory']['add']('changesNavigation',_0x37992f=>{const _0x9020ee=new Ri(_0x37992f),_0xf4c58b=_0x533ba8['commands']['get']('showPreviousChange'),_0x599c15=_0x533ba8['commands']['get']('showNextChange');return _0x9020ee['bind']('isBackwardNavigationEnabled')['to'](_0xf4c58b,'isEnabled'),_0x9020ee['bind']('isForwardNavigationEnabled')['to'](_0x599c15,'isEnabled'),_0x9020ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x33ac30),this['listenTo'](_0x9020ee,'execute',(_0x5b1b7d,_0x442ca7)=>{_0x533ba8['execute']('forward'===_0x442ca7?'showNextChange':'showPreviousChange');}),_0x9020ee;}),_0x38f09b['show'](),_0x33ac30['on']('change:isReady',(_0x54009c,_0x517e1b,_0x3d381a)=>{_0x3d381a?_0x38f09b['hide']():_0x38f09b['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4918a5,_0x39abdd){super(_0x4918a5,_0x39abdd);const _0x430961=this['bindTemplate'];this['set']({'label':m(_0x4918a5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4918a5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x430961['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 _0x5b9615=this['fieldView']['element'];this['_tooltipString']=_0x5b9615['scrollWidth']>_0x5b9615['clientWidth']&&_0x5b9615['value']||'';}}class ni extends _0x2f41d6{constructor(_0x4ed494,_0x398621,_0x574ed9){super(_0x4ed494);const _0x5352fb=new _0x5d5bfc();_0x5352fb['set']({'content':_0x28a2e1,'viewBox':'0\x200\x2011\x2010'});const _0x4a533a=['ck','ck-revision-history-sidebar__revision-author'];_0x574ed9&&_0x4a533a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x559156=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4ed494,_0x574ed9?'Revision\x20creator':'Revision\x20author')},'children':[_0x5352fb,_0x398621['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4a533a},'children':_0x559156});}}function ai(_0x294987,_0x6746cb){const _0x4124d2=_0x294987['bindTemplate'],_0x539e33=_0x294987['locale'],_0x1bfc9d=_0x3712c9(_0x539e33);_0x1bfc9d['panelPosition']='sw';const _0x53f097=function(_0x1596e6,_0xc33e25){const _0x1cd0fe=function(_0xb330a9,_0x1f8702){const _0x4b8f76=_0xb330a9['locale'],_0x1b0484={'Compare\x20against\x20selected':m(_0x4b8f76,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4b8f76,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4b8f76,'Restore\x20this\x20revision')};return _0x1f8702['map'](_0x5af411=>{const _0x2fb881=_0x1b0484[_0x5af411['name']];return _0x2fb881&&_0x2fb881!==_0x5af411['name']&&(_0x5af411['name']=_0x2fb881),_0x5af411;});}(_0x1596e6,_0xc33e25),_0x4b6037=new _0xb9f14f();for(const _0x16d5ce of _0x1cd0fe){const _0x2643dc={'type':'button','model':new to({'label':_0x16d5ce['name'],'class':_0x16d5ce['class'],'withText':!0x0,'role':'menuitem','_action':_0x16d5ce['action']})};_0x2643dc['model']['bind']('isEnabled')['to'](_0x1596e6,'isActionsDropdownOpen',_0xb1db4e=>'function'!=typeof _0x16d5ce['isEnabled']||(!_0xb1db4e||_0x16d5ce['isEnabled'](_0x1596e6))),_0x4b6037['add'](_0x2643dc);}return _0x4b6037;}(_0x294987,_0x6746cb);return _0x294987['bind']('isActionsDropdownOpen')['to'](_0x1bfc9d,'isOpen'),_0x1bfc9d['buttonView']['set']({'label':m(_0x539e33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x749d18}),_0x1bfc9d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4124d2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4124d2['to'](_0x46c4c8=>_0x46c4c8['stopPropagation']())}}),_0x1bfc9d['on']('execute',_0x59d300=>{_0x294987['isReady']&&'function'==typeof _0x59d300['source']['_action']&&_0x59d300['source']['_action'](_0x294987);}),_0x3bfd43(_0x1bfc9d,_0x53f097,{'role':'menu'}),_0x1bfc9d['listenTo'](_0x294987,'change:isActionsDropdownOpen',(_0x308d2e,_0x236717,_0x569c83)=>{if(_0x569c83)for(const _0x22f23c of _0x1bfc9d['listView']['items']){const _0x15c1bc=_0x22f23c['children']['first'],_0x19dfa7=_0x6746cb['find'](_0x52f66d=>_0x52f66d['action']===_0x15c1bc['_action'])['isVisible'];_0x22f23c['isVisible']=void 0x0===_0x19dfa7||_0x19dfa7(_0x294987);}}),_0x1bfc9d;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4bd5c9(_0x2f41d6){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x15a2b1,_0x3d5db8,_0xfb7ae6,_0x3b1d49){super(_0x15a2b1);const _0xea3d46=this['bindTemplate'],_0x52b1d2=function(_0x432759,_0x102809){const _0x2e6315=Array['from'](_0x102809['authors'])['filter'](_0x318fc6=>_0x318fc6!=_0x102809['creator']);return _0x102809['creator']&&_0x2e6315['unshift'](_0x102809['creator']),_0x2e6315['map'](_0x40e1a4=>new ni(_0x432759,_0x40e1a4,_0x40e1a4==_0x102809['creator']));}(_0x15a2b1,_0x3d5db8);this['id']=_0x3d5db8['id'],this['_revision']=_0x3d5db8,this['_requireRevisionName']=_0x3b1d49,this['bind']('name','createdAt')['to'](_0x3d5db8),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5e3b98=>{return _0x437c4f=_0x15a2b1['uiLanguage'],(_0x26be48=_0x5e3b98)['toLocaleDateString'](_0x437c4f,{'month':'long','day':'numeric'})+',\x20'+_0x26be48['toLocaleTimeString'](_0x437c4f,{'hour':'numeric','minute':'numeric'});var _0x437c4f,_0x26be48;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x15a2b1,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x49e8f1=>_0x49e8f1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59bff1,_0x3249ed)=>_0x59bff1&&_0x3249ed),this['revisionActionsView']=_0xfb7ae6&&_0xfb7ae6['length']?ai(this,_0xfb7ae6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xea3d46['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xea3d46['if']('isEnabled','ck-disabled',_0x4fca36=>!_0x4fca36),_0xea3d46['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xea3d46['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xea3d46['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':_0xea3d46['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':_0x52b1d2}]},this['revisionActionsView']],'on':{'click':_0xea3d46['to'](_0x1c30c0=>{_0x1c30c0['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3ffdc1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3ffdc1,'change',()=>{this['_requireRevisionName']&&!_0x3ffdc1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3ffdc1['value']}),_0x3ffdc1['value']||(_0x3ffdc1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x12d668,_0x48d37c){const _0x5c80f8=_0x506ceb['fromJSDate'](_0x12d668)['setLocale'](_0x48d37c),_0x18eb5d=_0x506ceb['local'](),_0x2fe9e7=_0x18eb5d['minus']({'days':0x1})['startOf']('day');let _0x7c6c54,_0x3c476b;return _0x5c80f8['hasSame'](_0x18eb5d,'day')?(_0x7c6c54=_0x5c80f8['startOf']('day')['toJSDate'](),_0x3c476b=_0x5c80f8['toRelativeCalendar']()):_0x5c80f8['hasSame'](_0x2fe9e7,'day')?(_0x7c6c54=_0x2fe9e7['toJSDate'](),_0x3c476b=_0x5c80f8['toRelativeCalendar']()):_0x5c80f8['hasSame'](_0x18eb5d,'week')?(_0x7c6c54=_0x5c80f8['startOf']('week')['toJSDate'](),_0x3c476b=_0x5c80f8['weekdayLong']||''):_0x5c80f8['hasSame'](_0x18eb5d,'year')?(_0x7c6c54=_0x5c80f8['startOf']('month')['toJSDate'](),_0x3c476b=_0x5c80f8['monthLong']||''):(_0x7c6c54=_0x5c80f8['startOf']('year')['toJSDate'](),_0x3c476b=String(_0x5c80f8['year'])),{'startDate':_0x7c6c54,'localizedPeriodName':_0x3c476b};}class bi extends _0x2f41d6{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x488b06,_0x3e6d49,_0x4ee806,_0x3e8aef){super(_0x488b06);const _0x405cbf=li(_0x3e6d49,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3e6d49,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4ee806,this['_requireRevisionName']=_0x3e8aef,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':_0x405cbf}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3001b5){const _0x415127=new _i(this['locale'],_0x3001b5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x415127);}['removeRevision'](_0x2e902b){const _0x33eaa6=this['revisionViews']['find'](_0x4b942c=>_0x4b942c['id']===_0x2e902b['id']);this['revisionViews']['remove'](_0x33eaa6);}}class fi extends _0x2f41d6{constructor(_0x196533){super(_0x196533);const _0x3e5276=new _0x5d5bfc();_0x3e5276['content']=_0x1e8d69,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3e5276,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x196533,'Revision\x20history')]}]});}}class di extends _0x2f41d6{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x599d9a,_0x22b7ac,_0x4d6a85,_0x34cbd7){super(_0x599d9a);const _0x5af4ff=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22b7ac,this['_revisionActions']=_0x4d6a85,this['_requireRevisionName']=_0x34cbd7,this['on']('select',(_0x2d3124,_0x34d978)=>{this['fire']('revisionSelected',_0x34d978);}),this['on']('setName',(_0x10e428,_0x1b2512)=>{this['fire']('revisionSetName',_0x1b2512);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x599d9a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5af4ff['if']('isEnabled','ck-disabled',_0x4c541a=>!_0x4c541a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x49955b of this['_revisions'])this['_addRevision'](_0x49955b);this['_revisions']['on']('add',(_0x13dcb0,_0x31f436)=>{this['_addRevision'](_0x31f436);}),this['_revisions']['on']('remove',(_0x2e5fa9,_0x5ab5aa)=>{this['_removeRevision'](_0x5ab5aa);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1d32fe=>_0x1d32fe['revisionViews']['map'](_0x1c6952=>_0x1c6952))['flat']();}['selectRevision'](_0x4ed978){for(const _0x21d41c of this['revisionViews'])_0x4ed978&&_0x4ed978['id']===_0x21d41c['id']?_0x21d41c['select']():_0x21d41c['deselect']();}['highlightRevisions'](_0x388856){for(const _0x106b31 of this['revisionViews'])_0x388856['some'](({id:_0x892366})=>_0x892366===_0x106b31['id'])?_0x106b31['highlight']():_0x106b31['unhighlight']();}['_addRevision'](_0x2522dd){const _0xa5cfdc=li(_0x2522dd['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x19afc4=this['timePeriodViews']['get'](0x0);_0x19afc4&&_0x19afc4['startDate']['getTime']()===_0xa5cfdc['getTime']()||(_0x19afc4=new bi(this['locale'],_0xa5cfdc,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x19afc4)),_0x19afc4['addRevision'](_0x2522dd);}['_removeRevision'](_0x1639e4){const _0xf66064=li(_0x1639e4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xf66064)['removeRevision'](_0x1639e4);}['_getTimePeriodViewByStartDate'](_0x31425d){return this['timePeriodViews']['find'](_0x43b150=>_0x43b150['startDate']['getTime']()===_0x31425d['getTime']());}}class d extends _0x694cb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x5ca314(_0xcc8484){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x47c5f6,_0x363ac2){super(_0x363ac2),this['sourceElement']=_0x47c5f6,this['model']['document']['createRoot']();const _0x40ac67=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x40ac67);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1fe070,_0x593dc1){const _0x11d934=new this(_0x1fe070,_0x593dc1);return await _0x11d934['initPlugins'](),await _0x11d934['ui']['init'](_0x1fe070),await _0x11d934['data']['init'](_0x11d934['config']['get']('initialData')||''),_0x11d934['fire']('ready'),_0x11d934;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x460205{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14761c){function _0x31e3bd(_0x4f5ff4){return _0x4f5ff4['map'](_0x5cbd97=>String['fromCharCode'](_0x5cbd97))['join']('');}super(_0x14761c),this['result']='end',_0x14761c[_0x31e3bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31e3bd([0x76,0x69,0x65,0x77])][_0x31e3bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31e3bd([0x61,0x75,0x74,0x6f]),_0x14761c[_0x31e3bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31e3bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31e3bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31e3bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31e3bd([0x6f,0x6b])});}}class ct extends _0x460205{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2d8c0f){if(super(_0x2d8c0f),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ae15c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x362354=>this['_showRevisionViewer']({..._0x362354,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xbe1367=>this['_closeRevisionViewer'](_0xbe1367)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b6ad3=>this['_restoreRevision'](_0x3b6ad3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x225668){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x225668;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xed1b68){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xed1b68);}['getRevision'](_0x1bf850){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1bf850);}['getRevisions'](_0x5a3ce9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5a3ce9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e17db=this['editor'],_0x297281=_0x1d3f9f(_0x3e17db,p),_0x33ff44=_0x3e17db['plugins']['get']('RevisionTracker'),_0x35b92b=_0x3e17db['plugins']['get']('Users')['users'];return _0x297281['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x297281['lazyRoots'],(_0x297281['plugins']['push'](ht,u,v,class extends _0x460205{static get['requires'](){return[u,'Users'];}['init'](){const _0x2a6099=this['editor']['plugins']['get']('Users');for(const _0x3fc393 of _0x35b92b)_0x3fc393['isAnonymous']||_0x2a6099['getUser'](_0x3fc393['id'])||_0x2a6099['addUser'](_0x3fc393);const _0x2ee8ed=_0x33ff44['repository']['getRevisions']();let _0x3cbc22=null;const _0x1cc5b3=this['editor']['plugins']['get']('RevisionViewer');_0x1cc5b3['adapter']=_0x33ff44['adapter'],_0x1cc5b3['bind']('isEnabled')['to'](_0x33ff44),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e17db,'isReadOnly',_0x38040a=>!_0x38040a);for(const _0x2bd242 of _0x2ee8ed){const _0x5edfee=null===_0x2bd242['creator'];if(_0x5edfee&&_0x2bd242['toVersion']===_0x2bd242['fromVersion'])continue;const _0x6114e1=_0x2bd242['toJSON']();_0x1cc5b3['addRevisionData'](_0x6114e1,(_0x278650,_0x43b946,_0x4746da)=>{if(_0x5edfee){if(_0x3cbc22)_0x3cbc22['_update'](_0x278650,_0x43b946);else{if(!_0x43b946){const _0x2e4aef=_0x4746da['toJSON']();_0x2e4aef['id']=_0x3b18bf(),_0x33ff44['saveRevision'](_0x2e4aef,_0x4746da['toVersion'])['then'](_0x3d8d53=>{_0x3cbc22=_0x3d8d53;});}}}else _0x2bd242['_update'](_0x278650,_0x43b946);});}}},d),_0x297281);}['_enhanceShowRevisionViewerCallback'](){const _0x3e6660=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4f982e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4fe795=this['editor']['plugins']['get']('Autosave');await _0x4fe795['save']();}else await _0x4f982e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x51ebda=this['editor']['plugins']['get']('Dialog');_0x51ebda['isOpen']&&_0x51ebda['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x21c312=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3f5b22 of _0x21c312)_0x3f5b22['class']=_0x3f5b22['class']?_0x3f5b22['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1d7a91=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1d7a91&&_0x1d7a91['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1ee74b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1ee74b&&_0x1ee74b['setAttribute']('tabindex','-1');}}const _0x224108=this['_getRevisionViewerEditorConfig']();return _0x3e6660(_0x224108)['then'](_0x46f67f=>{return(this['_viewerEditor']=_0x46f67f,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'),_0x46f67f);})['catch'](_0x2e00c4=>(console['error'](_0x2e00c4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xfc1e4f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x4f4721=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x494a97 of _0x4f4721)_0x494a97['class']='ck-tab-panel_disabled'===_0x494a97['class']?'':_0x494a97['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0xdc582f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xdc582f&&_0xdc582f['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x37e500=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x37e500&&_0x37e500['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xfc1e4f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x245868=this['editor']['plugins']['get']('Annotations');_0x245868['refreshVisibility'](),_0x245868['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1cc720){const _0x295385=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23e7fc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x505e89=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x505e89,_0x1cc720)['then'](_0x1d67a7=>(_0x23e7fc['style']['display']='block',_0x295385['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1d67a7));}['_closeRevisionViewer'](_0x17efec){const _0x33e944=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x33e944['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x17efec['destroy']();}async['_restoreRevision'](_0x47b24c){const _0x3cc57b=this['editor'],_0x195d89=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2303fd=_0x3cc57b['plugins']['get']('RevisionTracker'),_0x13042c=_0x3cc57b['plugins']['get']('RevisionHistoryUtils'),_0x49bec9=_0x195d89['repository']['getRevision'](_0x47b24c);let _0x2b90e7,_0x2b11ea,_0x2e46b4;try{await _0x13042c['loadRevisionData'](_0x49bec9,this['adapter']),_0x2b90e7=_0x13042c['getRevisionDocumentData'](_0x49bec9),_0x2b11ea=_0x13042c['getRevisionRootsAttributes'](_0x49bec9);}catch(_0x4dd19d){return void console['error'](_0x4dd19d);}_0x3cc57b['model']['change'](_0x5cfae9=>{for(const _0x1de3ec of Array['from'](_0x3cc57b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5cfae9['removeMarker'](_0x1de3ec);}),_0x195d89['isReady']=!0x1,_0x3cc57b['model']['enqueueChange'](_0x58d7ab=>{_0x58d7ab['setSelection'](null),_0x58d7ab['removeSelectionAttribute'](_0x3cc57b['model']['document']['selection']['getAttributeKeys']());const _0xfcc4ea=Object['keys'](_0x2b90e7);for(const _0x275653 of _0x3cc57b['model']['document']['roots'])'$graveyard'!=_0x275653['rootName']&&_0x275653['isAttached']()&&!_0xfcc4ea['includes'](_0x275653['rootName'])&&_0x58d7ab['detachRoot'](_0x275653);for(const _0x48a696 of _0xfcc4ea){let _0x34cfc5=_0x3cc57b['model']['document']['getRoot'](_0x48a696);_0x34cfc5&&_0x34cfc5['isAttached']()||(_0x34cfc5=_0x58d7ab['addRoot'](_0x48a696));const _0xf5b533=_0x2b11ea[_0x48a696],_0x386e77=Object['keys'](_0xf5b533),_0x21f2b1=_0x2b90e7[_0x48a696];for(const _0x44bb4c of _0x34cfc5['getAttributeKeys']())_0x386e77['includes'](_0x44bb4c)||_0x58d7ab['removeAttribute'](_0x44bb4c,_0x34cfc5);for(const _0x3a084b of _0x386e77)_0x58d7ab['setAttribute'](_0x3a084b,_0x2b11ea[_0x48a696][_0x3a084b],_0x34cfc5);_0x58d7ab['remove'](_0x58d7ab['createRangeIn'](_0x34cfc5)),_0x58d7ab['insert'](_0x3cc57b['data']['parse'](_0x21f2b1,_0x34cfc5),_0x34cfc5,0x0);}});const _0x10c9b3=m(_0x3cc57b['locale'],'Restored');if(_0x49bec9['name'])_0x2e46b4=-0x1==_0x49bec9['name']['indexOf'](_0x10c9b3)?_0x10c9b3+':\x20'+_0x49bec9['name']:_0x49bec9['name'];else _0x2e46b4=_0x10c9b3+':\x20'+(_0x49bec9['createdAt']['toLocaleDateString'](_0x3cc57b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x49bec9['createdAt']['toLocaleTimeString'](_0x3cc57b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2303fd['saveRevision']({'name':_0x2e46b4}),_0x195d89['isReady']=!0x0,_0x3cc57b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x520bd1){super(_0x520bd1),this['_revisionViewer']=_0x520bd1['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x34d787=this['_revisionsRepository']['_revisions'],_0x14d04b=this['_createRevisionActions'](),_0xbdf54d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x34d787,_0x14d04b,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',(_0x240600,_0x4e17f2)=>{_0x4e17f2['revisionViews']['on']('add',(_0x1c689d,_0x2eac95)=>{_0x2eac95['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)),_0xbdf54d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x51b81f=this['_revisionsRepository']['getRevision'](0x0);if(_0x51b81f){const _0x69e1dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x51b81f['id']);this['_revisionViewer']['compare'](_0x51b81f,_0x69e1dc);}}['_handleRevisionSelected'](_0xfd7ad5,_0x371479){const _0x552846=this['_revisionsRepository']['getRevision'](_0x371479['id']),_0x410478=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x552846['id']);this['_revisionViewer']['compare'](_0x552846,_0x410478);}['_handleRevisionSetName'](_0x3c9885,_0x5ce367){this['_revisionsRepository']['getRevision'](_0x5ce367['id'])['setName'](_0x5ce367['name']);}['_handleDiffChange'](_0x43f250,_0x15c3bf,_0x12c210){const _0x2d6afd=this['_revisionsRepository']['getRevisionsInDiff'](_0x12c210);_0x2d6afd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d6afd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d6afd[0x0]));}['_createRevisionActions'](){const _0x3a41c3=this['editor'],_0x37e17f=d['availableRevisionActions'],_0x45b9f6=_0x3a41c3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x45b9f6['length'])return _0x45b9f6['map'](_0x1b7989=>{const _0x1c4d6a='string'==typeof _0x1b7989?Object['assign']({},_0x37e17f[_0x1b7989]):_0x1b7989;return _0x1c4d6a['action']=_0x1c4d6a['action']['bind'](this,_0x3a41c3),_0x1c4d6a['isVisible']&&(_0x1c4d6a['isVisible']=_0x1c4d6a['isVisible']['bind'](this,_0x3a41c3)),_0x1c4d6a;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ac488},_0x3642f6)=>{const _0x855dad=_0x5ac488['get'](u),_0x5568ac=_0x855dad['repository'];let _0x443d13=_0x855dad['diff']['newRevisionId'],_0x17c515=_0x3642f6['id'];_0x5568ac['getIndex'](_0x443d13)>_0x5568ac['getIndex'](_0x17c515)&&([_0x443d13,_0x17c515]=[_0x17c515,_0x443d13]),_0x855dad['compare'](_0x443d13,_0x17c515);},'isVisible':({plugins:_0x1a9ace},_0x4ce08a)=>{const _0x44fd15=_0x1a9ace['get'](u);return!(_0x44fd15['repository']['getRevisionsInDiff'](_0x44fd15['diff'])['length']>0x2)&&!_0x4ce08a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x35598f,{id:_0x16d604})=>{_0x35598f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x16d604);},'isVisible':({plugins:_0x28834c},_0x1ac5bb)=>!!_0x28834c['get'](u)['repository']['getLaterVisibleRevision'](_0x1ac5bb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x45d680},{id:_0x31b57c,revisionNameView:_0xbe939d})=>{const _0x1fa845=_0x45d680['get'](u),_0x3d8f45=_0x1fa845['repository']['getEarlierVisibleRevision'](_0x31b57c);_0x1fa845['compare'](_0x31b57c,_0x3d8f45),_0xbe939d['focus'](),_0xbe939d['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x47ecae,_0x52a740){super(_0x47ecae),this['_view']=_0x52a740,this['_toolbarConfig']=st(_0x47ecae['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x557fc8){const _0x7e7654=this['editor'],_0x1c2f2a=this['view'],_0x38e9ab=_0x7e7654['editing']['view'],_0x5a2292=_0x1c2f2a['editable'],_0xe2cd9a=_0x38e9ab['document']['getRoot']();_0x5a2292['name']=_0xe2cd9a['rootName'],_0x1c2f2a['render']();const _0x1aaf9f=_0x5a2292['element'];this['setEditableElement'](_0x5a2292['name'],_0x1aaf9f),_0x1c2f2a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38e9ab['attachDomRoot'](_0x1aaf9f),this['_elementReplacer']['replace'](_0x557fc8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x276ec5=this['view'],_0x2ba717=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2ba717['detachDomRoot'](_0x276ec5['editable']['name']),_0x276ec5['destroy']();}['_initToolbar'](){const _0x2318b0=this['view'];_0x2318b0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2318b0['stickyPanel']['limiterElement']=_0x2318b0['element'],_0x2318b0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x275000})=>_0x275000),_0x2318b0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2318b0['toolbar']);}}class ii extends _0xb22772{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x40e8b7,_0xbb83c6,_0x3b0e04={}){super(_0x40e8b7),this['stickyPanel']=new _0x36fc62(_0x40e8b7),this['toolbar']=new _0x4c68be(_0x40e8b7,{'shouldGroupWhenFull':_0x3b0e04['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x40e8b7,_0xbb83c6);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x241a35(_0xeea441){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x308c6a,_0x447dd5){super(_0x447dd5),this['sourceElement']=_0x308c6a,this['model']['document']['createRoot']();const _0x364f5d=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x364f5d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xede94b,_0x248442){const _0x363c11=new this(_0xede94b,_0x248442);return await _0x363c11['initPlugins'](),await _0x363c11['ui']['init'](_0xede94b),await _0x363c11['data']['init'](_0x363c11['config']['get']('initialData')||''),_0x363c11['fire']('ready'),_0x363c11;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x694cb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221df9){function _0x1e2261(_0x48fc96){return _0x48fc96['map'](_0x50ba0b=>String['fromCharCode'](_0x50ba0b))['join']('');}super(_0x221df9),this['result']='end',_0x221df9[_0x1e2261([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e2261([0x76,0x69,0x65,0x77])][_0x1e2261([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e2261([0x61,0x75,0x74,0x6f]),_0x221df9[_0x1e2261([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e2261([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e2261([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e2261([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e2261([0x6f,0x6b])});}}class ct extends _0x694cb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x1751a0){if(super(_0x1751a0),!this['editor']['config']['get']('revisionHistory'))throw new _0x2d4ef5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x183bdb=>this['_showRevisionViewer']({..._0x183bdb,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5c91ce=>this['_closeRevisionViewer'](_0x5c91ce)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44f1e2=>this['_restoreRevision'](_0x44f1e2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5cfcc9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5cfcc9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x51dad6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x51dad6);}['getRevision'](_0x164665){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x164665);}['getRevisions'](_0x5efd66){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5efd66||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x236cf3=this['editor'],_0xd0ebef=_0x2802f6(_0x236cf3,p),_0x47c9a0=_0x236cf3['plugins']['get']('RevisionTracker'),_0x4369c4=_0x236cf3['plugins']['get']('Users')['users'];return _0xd0ebef['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xd0ebef['lazyRoots'],(_0xd0ebef['plugins']['push'](ht,u,v,class extends _0x694cb{static get['requires'](){return[u,'Users'];}['init'](){const _0x4b9262=this['editor']['plugins']['get']('Users');for(const _0x433aed of _0x4369c4)_0x433aed['isAnonymous']||_0x4b9262['getUser'](_0x433aed['id'])||_0x4b9262['addUser'](_0x433aed);const _0x24a0e5=_0x47c9a0['repository']['getRevisions']();let _0x41ec9b=null;const _0x49304a=this['editor']['plugins']['get']('RevisionViewer');_0x49304a['adapter']=_0x47c9a0['adapter'],_0x49304a['bind']('isEnabled')['to'](_0x47c9a0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x236cf3,'isReadOnly',_0x24e9bd=>!_0x24e9bd);for(const _0x3a068a of _0x24a0e5){const _0x5ce422=null===_0x3a068a['creator'];if(_0x5ce422&&_0x3a068a['toVersion']===_0x3a068a['fromVersion'])continue;const _0x1c2b45=_0x3a068a['toJSON']();_0x49304a['addRevisionData'](_0x1c2b45,(_0x259ec6,_0x22c63e,_0x36cdef)=>{if(_0x5ce422){if(_0x41ec9b)_0x41ec9b['_update'](_0x259ec6,_0x22c63e);else{if(!_0x22c63e){const _0x5ea2b8=_0x36cdef['toJSON']();_0x5ea2b8['id']=_0x32fb3d(),_0x47c9a0['saveRevision'](_0x5ea2b8,_0x36cdef['toVersion'])['then'](_0x5c32be=>{_0x41ec9b=_0x5c32be;});}}}else _0x3a068a['_update'](_0x259ec6,_0x22c63e);});}}},d),_0xd0ebef);}['_enhanceShowRevisionViewerCallback'](){const _0x4ee7cf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x304691=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4aa5a2=this['editor']['plugins']['get']('Autosave');await _0x4aa5a2['save']();}else await _0x304691['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x361c90=this['editor']['plugins']['get']('Dialog');_0x361c90['isOpen']&&_0x361c90['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x414b9b=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12c835 of _0x414b9b)_0x12c835['class']=_0x12c835['class']?_0x12c835['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x41903a=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x41903a&&_0x41903a['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2d333c=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2d333c&&_0x2d333c['setAttribute']('tabindex','-1');}}const _0x1c8af2=this['_getRevisionViewerEditorConfig']();return _0x4ee7cf(_0x1c8af2)['then'](_0x5e306c=>{return(this['_viewerEditor']=_0x5e306c,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'),_0x5e306c);})['catch'](_0x5cc4b1=>(console['error'](_0x5cc4b1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xaae919=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x355f00=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12fe89 of _0x355f00)_0x12fe89['class']='ck-tab-panel_disabled'===_0x12fe89['class']?'':_0x12fe89['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x43b414=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x43b414&&_0x43b414['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x53ec5a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x53ec5a&&_0x53ec5a['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xaae919(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2103f0=this['editor']['plugins']['get']('Annotations');_0x2103f0['refreshVisibility'](),_0x2103f0['refreshPositioning']();}});});}['_showRevisionViewer'](_0x2f5899){const _0x584fb2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e8c55=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fdde9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1fdde9,_0x2f5899)['then'](_0x18404f=>(_0x5e8c55['style']['display']='block',_0x584fb2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x18404f));}['_closeRevisionViewer'](_0x4a5829){const _0x427b68=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x427b68['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4a5829['destroy']();}async['_restoreRevision'](_0x4a21a4){const _0x3506df=this['editor'],_0x97ccaf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2c90f4=_0x3506df['plugins']['get']('RevisionTracker'),_0x14f350=_0x3506df['plugins']['get']('RevisionHistoryUtils'),_0x4967d2=_0x97ccaf['repository']['getRevision'](_0x4a21a4);let _0x5552af,_0x2b31ff,_0x433980;try{await _0x14f350['loadRevisionData'](_0x4967d2,this['adapter']),_0x5552af=_0x14f350['getRevisionDocumentData'](_0x4967d2),_0x2b31ff=_0x14f350['getRevisionRootsAttributes'](_0x4967d2);}catch(_0x5b8cdd){return void console['error'](_0x5b8cdd);}_0x3506df['model']['change'](_0x307f46=>{for(const _0x5d23a9 of Array['from'](_0x3506df['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x307f46['removeMarker'](_0x5d23a9);}),_0x97ccaf['isReady']=!0x1,_0x3506df['model']['enqueueChange'](_0x5f3a7b=>{_0x5f3a7b['setSelection'](null),_0x5f3a7b['removeSelectionAttribute'](_0x3506df['model']['document']['selection']['getAttributeKeys']());const _0x54f9b7=Object['keys'](_0x5552af);for(const _0x470611 of _0x3506df['model']['document']['roots'])'$graveyard'!=_0x470611['rootName']&&_0x470611['isAttached']()&&!_0x54f9b7['includes'](_0x470611['rootName'])&&_0x5f3a7b['detachRoot'](_0x470611);for(const _0x30c27b of _0x54f9b7){let _0x2f2a81=_0x3506df['model']['document']['getRoot'](_0x30c27b);_0x2f2a81&&_0x2f2a81['isAttached']()||(_0x2f2a81=_0x5f3a7b['addRoot'](_0x30c27b));const _0x1a3783=_0x2b31ff[_0x30c27b],_0x2bb7fb=Object['keys'](_0x1a3783),_0x3d70dc=_0x5552af[_0x30c27b];for(const _0x368b49 of _0x2f2a81['getAttributeKeys']())_0x2bb7fb['includes'](_0x368b49)||_0x5f3a7b['removeAttribute'](_0x368b49,_0x2f2a81);for(const _0x432a4b of _0x2bb7fb)_0x5f3a7b['setAttribute'](_0x432a4b,_0x2b31ff[_0x30c27b][_0x432a4b],_0x2f2a81);_0x5f3a7b['remove'](_0x5f3a7b['createRangeIn'](_0x2f2a81)),_0x5f3a7b['insert'](_0x3506df['data']['parse'](_0x3d70dc,_0x2f2a81),_0x2f2a81,0x0);}});const _0x3f8791=m(_0x3506df['locale'],'Restored');if(_0x4967d2['name'])_0x433980=-0x1==_0x4967d2['name']['indexOf'](_0x3f8791)?_0x3f8791+':\x20'+_0x4967d2['name']:_0x4967d2['name'];else _0x433980=_0x3f8791+':\x20'+(_0x4967d2['createdAt']['toLocaleDateString'](_0x3506df['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4967d2['createdAt']['toLocaleTimeString'](_0x3506df['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2c90f4['saveRevision']({'name':_0x433980}),_0x97ccaf['isReady']=!0x0,_0x3506df['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|