@ckeditor/ckeditor5-revision-history 44.1.0-alpha.3 → 44.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x66ca88(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d9b3e){super(),this['id']=_0x4d9b3e['id']||_0xb3cc0b(),this['creator']=_0x4d9b3e['creator']||null,this['authors']=_0x4d9b3e['authors']||[],this['diffData']=_0x4d9b3e['diffData']||null,this['toVersion']=_0x4d9b3e['toVersion']||0x0,this['fromVersion']=_0x4d9b3e['fromVersion']||0x0,this['set']('name',_0x4d9b3e['name']||''),this['set']('createdAt',_0x4d9b3e['createdAt']||new Date()),this['set']('attributes',_0x4d9b3e['attributes']||{});}['setName'](_0x454313){this['_update']({'name':_0x454313});}['setAttribute'](_0x126786,_0x226093){const _0x505797=_0x3c49e8(this['attributes']);_0x42474c(_0x505797,_0x126786,_0x226093),this['_update']({'attributes':_0x505797});}['removeAttribute'](_0x553a6c){const _0x867594=_0x3c49e8(this['attributes']);_0x5baac4(_0x867594,_0x553a6c),this['_update']({'attributes':_0x867594});}['_update'](_0x4e152d,_0x5916f2=!0x1){let _0x17d570=!0x1;const _0x304a12={'id':this['id']},_0x46f103=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1072b1 of _0x46f103){const _0x54e277=_0x4e152d[_0x1072b1];void 0x0!==_0x54e277&&_0x54e277!==this[_0x1072b1]&&(this[_0x1072b1]=_0x54e277,_0x304a12[_0x1072b1]=_0x54e277,_0x17d570=!0x0);}_0x17d570&&(_0x304a12['authors']&&(_0x304a12['authorsIds']=_0x304a12['authors']['map'](_0xcfa73c=>_0xcfa73c['id']),delete _0x304a12['authors']),this['fire']('_update',_0x304a12,_0x5916f2));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x51c5f3=>_0x51c5f3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2ebc56{['_revisions'];static get['requires'](){return[_0x305d7f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a9d60){super(_0x3a9d60),this['_revisions']=new _0x199961();}['afterInit'](){!async function(_0x317649){const _0x57eeb0=_0x9f0913([0x74,0x4f,0x45,0x71,0x5a,0x37,0x38,0x53,0x33,0x50,0x57,0x59,0x78,0x4b,0x4a,0x6b,0x4e,0x6e,0x75,0x42,0x4c,0x36,0x6c,0x35,0x7a,0x54,0x62,0x41,0x55,0x63,0x56,0x49,0x79,0x64,0x65,0x58,0x47,0x73,0x77,0x68,0x39,0x72,0x51,0x67,0x44,0x6a,0x76,0x32,0x61,0x48,0x46,0x43,0x66,0x6f,0x52,0x34,0x6d,0x70,0x31,0x4d,0x30,0x69]),_0x320bd1=0xeb829,_0xace388=0x5e324e4a,_0x310cbb=0x5e3517e2^_0xace388,_0x23e624=window[_0x9f0913([0x44,0x61,0x74,0x65])][_0x9f0913([0x6e,0x6f,0x77])](),_0xa10223=_0x317649[_0x9f0913([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ca702=new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fa73d=>{_0xa10223[_0x9f0913([0x6f,0x6e,0x63,0x65])](_0x9f0913([0x72,0x65,0x61,0x64,0x79]),_0x4fa73d);}),_0x484a0a={[_0x9f0913([0x6b,0x74,0x79])]:_0x9f0913([0x45,0x43]),[_0x9f0913([0x75,0x73,0x65])]:_0x9f0913([0x73,0x69,0x67]),[_0x9f0913([0x63,0x72,0x76])]:_0x9f0913([0x50,0x2d,0x32,0x35,0x36]),[_0x9f0913([0x78])]:_0x9f0913([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]),[_0x9f0913([0x79])]:_0x9f0913([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]),[_0x9f0913([0x61,0x6c,0x67])]:_0x9f0913([0x45,0x53,0x32,0x35,0x36])},_0x369ecd=_0xa10223[_0x9f0913([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9f0913([0x67,0x65,0x74])](_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x507b85(){let _0x437e17,_0x30e93a=null,_0x5c5426=null;try{if(_0x369ecd==_0x9f0913([0x47,0x50,0x4c]))return _0x9f0913([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437e17=_0x6f4103(),!_0x437e17)return _0x9f0913([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437e17[_0x9f0913([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c5426=_0x250653(_0x437e17[_0x9f0913([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437e17[_0x9f0913([0x6a,0x74,0x69])])),await _0x1d1035()?_0x4cb021()?_0x180c72()?_0x9f0913([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39d439()?(_0x437e17[_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f0913([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30e93a=_0x5ce5cb(_0x9f0913([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437e17[_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f0913([0x74,0x72,0x69,0x61,0x6c])&&(_0x30e93a=_0x5ce5cb(_0x9f0913([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x437e17[_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f0913([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x30e93a=_0x5ce5cb(_0x9f0913([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf8c12d()):_0x9f0913([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9f0913([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9f0913([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x497072){return _0x9f0913([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x180c72(){const _0x27e050=[_0x9f0913([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9f0913([0x74,0x72,0x69,0x61,0x6c])][_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437e17[_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23e624/0x3e8:0xe10*_0x310cbb;return _0x437e17[_0x9f0913([0x65,0x78,0x70])]<_0x27e050;}function _0x4cb021(){const _0x3839ce=_0x437e17[_0x9f0913([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3839ce)return!0x1;if(_0x3839ce[_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f0913([0x2a])))return!0x0;if(_0x3839ce[_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f0913([0x52,0x48])))return!0x0;if(_0x3839ce[_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f0913([0x52,0x52,0x48]))){if(_0x1f6795())return!0x0;if(_0xa5e92b()||_0x2e37c0())return!0x0;}return!0x1;}function _0x39d439(){const _0x197015=_0x437e17[_0x9f0913([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x197015||0x0==_0x197015[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d142f}=new URL(window[_0x9f0913([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x197015[_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d142f))return!0x0;const _0x1ac386=_0x2d142f[_0x9f0913([0x73,0x70,0x6c,0x69,0x74])](_0x9f0913([0x2e]));return _0x197015[_0x9f0913([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x321125=>_0x321125[_0x9f0913([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f0913([0x2a])))[_0x9f0913([0x6d,0x61,0x70])](_0x55ac20=>_0x55ac20[_0x9f0913([0x73,0x70,0x6c,0x69,0x74])](_0x9f0913([0x2e])))[_0x9f0913([0x73,0x6f,0x6d,0x65])](_0x152a74=>_0x1ac386[_0x9f0913([0x65,0x76,0x65,0x72,0x79])]((_0x58acb1,_0x10ca40)=>_0x152a74[_0x10ca40]===_0x58acb1||_0x152a74[_0x10ca40]===_0x9f0913([0x2a])));}function _0xf8c12d(){return _0x30e93a&&_0x5c5426?new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4a8a,_0x5e0718)=>{_0x30e93a[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x4e4a8a,_0x5e0718),_0x5c5426[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x4577bd=>{_0x4577bd!=_0x9f0913([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4a8a(_0x4577bd);},_0x5e0718);}):_0x30e93a||_0x5c5426||_0x9f0913([0x56,0x61,0x6c,0x69,0x64]);}}function _0x250653(_0x38f559,_0x528aab){return new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e6c2=>{if(_0x1dbd95())return _0x18e6c2(_0x9f0913([0x56,0x61,0x6c,0x69,0x64]));_0x515f89(),_0xa10223[_0x9f0913([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9f0913([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x337871=!0x1;const _0x1aadbb=_0xb3cc0b();function _0xa6ea3c(_0x3ba9b7){return!!_0x3ba9b7&&(typeof _0x3ba9b7===_0x9f0913([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ba9b7===_0x9f0913([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ba9b7[_0x9f0913([0x74,0x68,0x65,0x6e])]===_0x9f0913([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ba9b7[_0x9f0913([0x63,0x61,0x74,0x63,0x68])]===_0x9f0913([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a48b6(_0x2091a1){_0x396e36(_0x2091a1)[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x26c93c=>{if(!_0x26c93c||_0x26c93c[_0x9f0913([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9f0913([0x6f,0x6b]))return _0x9f0913([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x561632(_0x418095(_0x1aadbb+_0x528aab))!=_0x26c93c[_0x9f0913([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9f0913([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9f0913([0x56,0x61,0x6c,0x69,0x64]);})[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x4e4bc1=>(_0x500f91(),_0x4e4bc1),()=>{const _0x2da9ad=_0x1a0d21();return null==_0x2da9ad?(_0x500f91(),_0x9f0913([0x56,0x61,0x6c,0x69,0x64])):_0x9f0913(_0x23e624-_0x2da9ad>(0x7a3eca4a^_0xace388)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x18e6c2)[_0x9f0913([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e6c2(_0x9f0913([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1974c7=0x5e04a0ca^_0xace388;function _0x500f91(){const _0x126c0b=_0x9f0913([0x6c,0x6c,0x63,0x74,0x2d])+_0x561632(_0x418095(_0x38f559)),_0x2dab3d=_0x3709b1(_0x561632(window[_0x9f0913([0x4d,0x61,0x74,0x68])][_0x9f0913([0x63,0x65,0x69,0x6c])](_0x23e624/_0x1974c7)));window[_0x9f0913([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f0913([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x126c0b,_0x2dab3d);}function _0x1a0d21(){const _0xd8a51a=_0x9f0913([0x6c,0x6c,0x63,0x74,0x2d])+_0x561632(_0x418095(_0x38f559)),_0x3f3a82=window[_0x9f0913([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f0913([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd8a51a);return _0x3f3a82?window[_0x9f0913([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3709b1(_0x3f3a82),0x10)*_0x1974c7:null;}function _0x396e36(_0x5d45ad){return new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2eb35f,_0x29c658)=>{_0x5d45ad[_0x9f0913([0x74,0x68,0x65,0x6e])](_0x2eb35f,_0x29c658),window[_0x9f0913([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c658,0x5e339a8a^_0xace388);});}}_0xa10223[_0x9f0913([0x6f,0x6e])](_0x9f0913([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf261a3,_0x43d7b0)=>{if(_0x43d7b0[0x0]!=_0x38f559)return _0x18e6c2(_0x9f0913([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43d7b0[0x1]={..._0x43d7b0[0x1],[_0x9f0913([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1aadbb};},{[_0x9f0913([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f0913([0x68,0x69,0x67,0x68])}),_0xa10223[_0x9f0913([0x6f,0x6e])](_0x9f0913([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35fc6f=>{_0xa6ea3c(_0x35fc6f[_0x9f0913([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x337871=!0x0,_0x2a48b6(_0x35fc6f[_0x9f0913([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9f0913([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f0913([0x6c,0x6f,0x77])}),_0x3ca702[_0x9f0913([0x74,0x68,0x65,0x6e])](()=>{_0x337871||_0x18e6c2(_0x9f0913([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dbd95(){return _0xa10223[_0x9f0913([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f0913([0x76,0x69,0x65,0x77])][_0x9f0913([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9f0913([0x61,0x75,0x74,0x6f]);}function _0x515f89(){_0xa10223[_0x9f0913([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f0913([0x76,0x69,0x65,0x77])][_0x9f0913([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9f0913([0x61,0x75,0x74,0x6f]);}}function _0x5ce5cb(_0x4e28a8){const _0x962d80=[new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50bfc5=>setTimeout(_0x50bfc5,0x5e3b7086^_0xace388)),_0x3ca702[_0x9f0913([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17e6e7=>{const _0x1e6bd0=0x5e324e4d^_0xace388,_0x487e29=_0x317649[_0x9f0913([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x27b73c(){_0x487e29[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1e6bd0&&_0x17e6e7();}_0x27b73c(),_0x487e29[_0x9f0913([0x6f,0x6e])](_0x9f0913([0x61,0x64,0x64]),_0x27b73c);})),new window[(_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59b584=>{function _0x4c54e1(){for(const _0x4e8553 in window)if(window[_0x9f0913([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x9f0913([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e8553))&&window[_0x4e8553]==_0x320bd1)return _0x59b584();_0xa10223[_0x9f0913([0x73,0x74,0x61,0x74,0x65])]!=_0x9f0913([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x9f0913([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c54e1,0x5e325dc2^_0xace388);}_0x1ad169(_0x9f0913([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4c54e1();})];return window[_0x9f0913([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9f0913([0x72,0x61,0x63,0x65])](_0x962d80)[_0x9f0913([0x74,0x68,0x65,0x6e])](()=>_0x4e28a8);}async function _0x4ffb50(){if(await _0x3ca702,_0x1ad169(_0x9f0913([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3941f9=_0x317649[_0x9f0913([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x471431=_0x317649[_0x9f0913([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])](_0x3941f9[_0x9f0913([0x69,0x64])]),_0x3f2987=_0x3b4df6(_0x9f0913([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3f2987[_0x9f0913([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3941f9['id'],_0x471431?_0x471431['id']:null,!0x0),_0x3f2987[_0x9f0913([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9f0913([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3f2987[_0x9f0913([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3f2987[_0x9f0913([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2b53ed,void(_0x3f2987[_0x9f0913([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2b53ed);}if(_0x1ad169(_0x9f0913([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3228e5=_0x3b4df6(_0x9f0913([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3228e5[_0x9f0913([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x9f0913([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3228e5[_0x9f0913([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3228e5[_0x9f0913([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2b53ed,_0x3228e5[_0x9f0913([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2b53ed;}_0xa10223[_0x9f0913([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f0913([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b53ed,_0xa10223[_0x9f0913([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f0913([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b53ed,_0xa10223[_0x9f0913([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9f0913([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f6795(){return _0x1ad169(_0x9f0913([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b4df6(_0x9f0913([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9f0913([0x73,0x74,0x61,0x74,0x65])]==_0x9f0913([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5e92b(){return _0x1ad169(_0x9f0913([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 _0x2e37c0(){return _0x1ad169(_0x9f0913([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x18a084(_0x5d3298){const _0x273533=_0x46a40b();_0xa10223[_0x273533]=_0x9f0913([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])+_0x5d3298,_0x5d3298[_0x9f0913([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x9f0913([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x46a40b()]=_0x320bd1),_0x5d3298!=_0x9f0913([0x56,0x61,0x6c,0x69,0x64])&&_0x4ffb50();}function _0x46a40b(){const _0x560f5b=window[_0x9f0913([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9f0913([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9f0913([0x6e,0x6f,0x77])]())[_0x9f0913([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9f0913([0x2e]),'');let _0x2c5b4e=_0x9f0913([0x74]);for(let _0x2d022e=0x0;_0x2d022e<_0x560f5b[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d022e+=0x2){let _0x59e00a=window[_0x9f0913([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x560f5b[_0x9f0913([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d022e,_0x2d022e+0x2));_0x59e00a>=_0x57eeb0[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59e00a-=_0x57eeb0[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c5b4e+=_0x57eeb0[_0x59e00a];}return _0x2c5b4e;}function _0x6f4103(){const _0x32565a=_0x369ecd[_0x9f0913([0x73,0x70,0x6c,0x69,0x74])](_0x9f0913([0x2e]));if(0x3!=_0x32565a[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fdbd4(_0x32565a[0x1]);function _0x2fdbd4(_0x1a3ea1){const _0x5a892d=_0x327b4a(_0x1a3ea1);return _0x5a892d&&_0x2fe15a()?_0x5a892d:null;function _0x2fe15a(){const _0x55acc8=_0x5a892d[_0x9f0913([0x6a,0x74,0x69])],_0x2b57dc=window[_0x9f0913([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55acc8[_0x9f0913([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55acc8[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b9a5f={..._0x5a892d,[_0x9f0913([0x6a,0x74,0x69])]:_0x55acc8[_0x9f0913([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55acc8[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b9a5f[_0x9f0913([0x76,0x63])],_0x418095(_0x1b9a5f)==_0x2b57dc;}}}async function _0x1d1035(){let _0x50ef09=!0x0;try{const _0x53d3ad=_0x369ecd[_0x9f0913([0x73,0x70,0x6c,0x69,0x74])](_0x9f0913([0x2e])),[_0x1a93f9,_0x4b21f1,_0x103aa8]=_0x53d3ad;return _0x4c21ef(_0x1a93f9),await _0x5b1a33(_0x1a93f9,_0x4b21f1,_0x103aa8),_0x50ef09;}catch(_0x250dee){return!0x1;}function _0x4c21ef(_0x4dcef5){const _0x204d78=_0x327b4a(_0x4dcef5);_0x204d78&&_0x204d78[_0x9f0913([0x61,0x6c,0x67])]==_0x9f0913([0x45,0x53,0x32,0x35,0x36])||(_0x50ef09=!0x1);}async function _0x5b1a33(_0x5a20d2,_0x5c3a66,_0x318441){const _0x3a399d=window[_0x9f0913([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9f0913([0x66,0x72,0x6f,0x6d])](_0x3595bb(_0x318441),_0x1af48f=>_0x1af48f[_0x9f0913([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17530b=new window[(_0x9f0913([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9f0913([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a20d2+_0x9f0913([0x2e])+_0x5c3a66),_0x377bac=window[_0x9f0913([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9f0913([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x377bac)return;const _0x584f6b=await _0x377bac[_0x9f0913([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9f0913([0x6a,0x77,0x6b]),_0x484a0a,{[_0x9f0913([0x6e,0x61,0x6d,0x65])]:_0x9f0913([0x45,0x43,0x44,0x53,0x41]),[_0x9f0913([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9f0913([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9f0913([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x377bac[_0x9f0913([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9f0913([0x6e,0x61,0x6d,0x65])]:_0x9f0913([0x45,0x43,0x44,0x53,0x41]),[_0x9f0913([0x68,0x61,0x73,0x68])]:{[_0x9f0913([0x6e,0x61,0x6d,0x65])]:_0x9f0913([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x584f6b,_0x3a399d,_0x17530b)||(_0x50ef09=!0x1);}}function _0x327b4a(_0x266a84){return _0x266a84[_0x9f0913([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9f0913([0x65,0x79]))?JSON[_0x9f0913([0x70,0x61,0x72,0x73,0x65])](_0x3595bb(_0x266a84)):null;}function _0x3595bb(_0x5dc445){return window[_0x9f0913([0x61,0x74,0x6f,0x62])](_0x5dc445[_0x9f0913([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9f0913([0x2b]))[_0x9f0913([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9f0913([0x2f])));}function _0x418095(_0x40baaa){let _0x41acda=0x1505;function _0x565741(_0x1d94c8){for(let _0x2cb2a1=0x0;_0x2cb2a1<_0x1d94c8[_0x9f0913([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cb2a1++){const _0x586c73=_0x1d94c8[_0x9f0913([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cb2a1);_0x41acda=(_0x41acda<<0x5)+_0x41acda+_0x586c73,_0x41acda&=_0x41acda;}}function _0x4fad7e(_0x238349){Array[_0x9f0913([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x238349)?_0x238349[_0x9f0913([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fad7e):_0x238349&&typeof _0x238349==_0x9f0913([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9f0913([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x238349)[_0x9f0913([0x73,0x6f,0x72,0x74])]()[_0x9f0913([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbe21cc,_0x2e3dd4])=>{_0x565741(_0xbe21cc),_0x4fad7e(_0x2e3dd4);}):_0x565741(window[_0x9f0913([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x238349));}return _0x4fad7e(_0x40baaa),_0x41acda>>>0x0;}function _0x561632(_0x41b0ff){return _0x41b0ff[_0x9f0913([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9f0913([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9f0913([0x30]));}function _0x3709b1(_0x29c854){return _0x29c854[_0x9f0913([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9f0913([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9f0913([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ad169(_0x13804e){return _0xa10223[_0x9f0913([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9f0913([0x68,0x61,0x73])](_0x13804e);}function _0x3b4df6(_0x2ab91a){return _0xa10223[_0x9f0913([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9f0913([0x67,0x65,0x74])](_0x2ab91a);}function _0x2b53ed(){}function _0x9f0913(_0x34c50d){return _0x34c50d['map'](_0xa308d7=>String['fromCharCode'](_0xa308d7))['join']('');}_0x18a084(await _0x507b85());}(this);}['createRevision'](_0xa363a8){const _0x554b55=this['editor']['plugins']['get']('Users');return new a({'id':_0xa363a8['id'],'name':_0xa363a8['name'],'creator':_0xa363a8['creatorId']?_0x554b55['getUser'](_0xa363a8['creatorId']):null,'diffData':_0xa363a8['diffData']||_0xa363a8['data'],'authors':_0xa363a8['authorsIds']['map'](_0x4f92b9=>_0x554b55['getUser'](_0x4f92b9)),'createdAt':new Date(_0xa363a8['createdAt']),'attributes':_0xa363a8['attributes'],'fromVersion':_0xa363a8['fromVersion'],'toVersion':_0xa363a8['toVersion']});}['addRevision'](_0x4e0200,_0x10b12f=0x0){this['_revisions']['add'](_0x4e0200,_0x10b12f);}['getRevision'](_0x27b52d){return this['_revisions']['get'](_0x27b52d);}['getRevisions'](_0x415d72={'toJSON':!0x1}){const _0x8ce33b=Array['from'](this['_revisions']);return _0x8ce33b['reverse'](),_0x415d72['toJSON']?_0x8ce33b['map'](_0x44dae8=>_0x44dae8['toJSON']()):_0x8ce33b;}['getIndex'](_0x2973f3){return this['_revisions']['getIndex'](_0x2973f3);}['getEarlierVisibleRevision'](_0x2dcdb3){const [,_0x39cae8]=this['getRevisionsIterator'](_0x2dcdb3,{'direction':'earlier'});return _0x39cae8;}['getLaterVisibleRevision'](_0x24be5d){const [,_0x33b324]=this['getRevisionsIterator'](_0x24be5d,{'direction':'later'});return _0x33b324;}['getRevisionsInDiff'](_0xc40973){const _0x11b109=[];for(const _0x1416b1 of this['getRevisionsIterator'](_0xc40973['newRevisionId']))if(_0x11b109['push'](_0x1416b1),_0x1416b1['id']===_0xc40973['oldRevisionId'])break;return _0x11b109;}*['getRevisionsIterator'](_0x45ae51,{direction:_0x374f85='earlier',filter:_0x336ad9=()=>!0x0}={}){const _0x21f2fd='earlier'===_0x374f85?0x1:-0x1;let _0x11531d=this['_revisions']['get'](_0x45ae51),_0x5d8f04=this['getIndex'](_0x11531d);for(yield _0x11531d;_0x11531d;){if(_0x5d8f04+=_0x21f2fd,_0x11531d=this['getRevision'](_0x5d8f04),!_0x11531d)return;_0x336ad9(_0x11531d)&&(yield _0x11531d);}}}function R(_0x35cbcf,_0x5b86e8,_0xe9723){const t=_0x35cbcf['t'];switch(_0x5b86e8){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'},_0xe9723);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe9723);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x26af22,'a':_0x505635,'e':_0x3ff6a6,'r':_0x4abad2,'u':_0x29510a};class l extends _0x2ebc56{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x305d7f,j,_0x364901];}constructor(_0x1494a){super(_0x1494a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1bec91=_0xb3cc0b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1bec91},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1fa98a=this['repository']['getRevision'](0x0),_0x479a24=_0x1fa98a&&null===_0x1fa98a['creator']?_0x1fa98a:null;if(this['_continueCurrentRevision']=!!_0x479a24&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x375231=this['_source']['getCurrentRevisionId'](),_0xb33bb0=this['repository']['getRevision'](_0x375231);if(_0xb33bb0)this['_startingVersion']=_0xb33bb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3e5818=this['_source']['history']['_operations']['find'](_0x5c7728=>!_0x5c7728['_isInit']),_0x59a1df=_0x3e5818?_0x3e5818['baseVersion']:this['_source']['history']['version'];_0x1fa98a?(_0x1fa98a['toVersion']<_0x59a1df&&_0x1fa98a['_update']({'toVersion':_0x59a1df}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x479a24['id'],this['_startingVersion']=_0x479a24['fromVersion']):(this['_startingVersion']=_0x1fa98a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x59a1df,this['_continueCurrentRevision']=!0x1);}}else _0x479a24&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x479a24['toVersion'],this['editor']['model']['document']['history']['version']),_0x479a24['fromVersion']===_0x479a24['toVersion']?(0x0!==_0x479a24['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x479a24['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x479a24['id'],this['_startingVersion']=_0x479a24['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',_0x1af9cb=>!_0x1af9cb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x429644=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x450343;for(const _0x31e208 in _0x429644){const _0x2e5019=_0x31e208,_0x10320a=_0x429644[_0x2e5019];if('revisionHistoryLicenseKeyValid'==_0x10320a||'revisionHistoryLicenseKeyInvalid'==_0x10320a||'revisionHistoryLicenseKeyExpired'==_0x10320a||'revisionHistoryLicenseKeyDomainLimit'==_0x10320a||'revisionHistoryLicenseKeyNotAllowed'==_0x10320a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x10320a||'revisionHistoryLicenseKeyTrialLimit'==_0x10320a||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x10320a||'revisionHistoryLicenseKeyUsageLimit'==_0x10320a){delete _0x429644[_0x2e5019],_0x450343=_0x10320a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x450343&&_0x429644['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x450343&&_0x429644['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x450343&&_0x429644['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x450343&&_0x429644['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x450343&&_0x429644['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x450343&&_0x429644['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x450343&&_0x429644['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x450343&&_0x429644['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4fe9fc=this['repository']['getRevision'](0x0),_0x4099f5=await this['getRevisionDocumentData'](_0x4fe9fc),_0x5c3680=await this['getRevisionRootsAttributes'](_0x4fe9fc);this['_replaceEditorDataWithRevisionData'](_0x4099f5,_0x5c3680);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4d646c){this['_source']=_0x4d646c;}async['update'](){const _0x41ab2f=await this['_source']['getLatestVersion']();if(_0x41ab2f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x565552=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x41ab2f});_0x565552['authors']=_0x565552['authorsIds']['map'](_0xe744d0=>this['editor']['plugins']['get']('Users')['getUser'](_0xe744d0)),this['currentRevision']['_update'](_0x565552);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x38afc5={},_0x569ef6=null){const _0x5ed53f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x569ef6>this['currentRevision']['toVersion']&&(_0x569ef6=null),null===_0x569ef6&&(_0x569ef6=await this['_source']['getLatestVersion']());const _0x1cc85e=this['_getFromVersion'](_0x569ef6),_0x2ddeed=this['buildRevisionData']({'from':_0x1cc85e,'to':_0x569ef6});if(this['currentRevision']['toVersion']<_0x569ef6){const _0x514502=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x569ef6,'to':_0x569ef6});_0x514502['authors']=[],_0x514502['authorsIds']=[],_0x514502['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x514502,!0x0),delete _0x514502['authors'],_0x5ed53f['push'](_0x514502);}_0x38afc5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x38afc5['name']=_0x38afc5['name']||null,_0x38afc5['id']=_0x38afc5['id']||_0xb3cc0b(),_0x38afc5={..._0x38afc5,..._0x2ddeed};const _0x5a894a=this['addRevisionData'](_0x38afc5);_0x5ed53f['push'](_0x38afc5);const _0x329398=this['repository']['getIndex'](_0x5a894a);if(0x0!==_0x329398){const _0x5dec2a=this['repository']['getRevision'](_0x329398-0x1);if(_0x5dec2a['fromVersion']!==_0x569ef6){const _0x381ac4=this['_revisionDataBuilder']['getData'](_0x569ef6,_0x5dec2a['toVersion']),_0x18d954={'id':_0x5dec2a['id'],'diffData':_0x381ac4['diffData'],'authorsIds':_0x381ac4['authorsIds'],'authors':_0x381ac4['authorsIds']['map'](_0x399547=>this['editor']['plugins']['get']('Users')['getUser'](_0x399547)),'fromVersion':_0x569ef6};_0x5dec2a===this['currentRevision']&&(_0x18d954['createdAt']=new Date(_0x38afc5['createdAt']['getTime']()+0xa)),_0x5dec2a['_update'](_0x18d954,!0x0),delete _0x18d954['authors'],_0x5ed53f['push'](_0x18d954);}}if(this['adapter']){for(const _0x43ad4f of _0x5ed53f)this['_bufferUpdate'](_0x43ad4f['id'],_0x43ad4f,!0x0);this['sendBufferedUpdates']();}return _0x5a894a;}['addRevisionData'](_0x1717d7){const _0x1d9536=this['repository']['createRevision'](_0x1717d7);return this['adapter']&&_0x1d9536['on']('_update',(_0x197203,_0x4d821c,_0x58d449)=>{_0x58d449||(this['_bufferUpdate'](_0x4d821c['id'],_0x4d821c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1d9536,this['_findInsertionIndex'](_0x1d9536)),_0x1d9536;}async['getRevisionDocumentData'](_0x570bb0){await this['_loadRevisionData'](_0x570bb0);const _0x9b5fe0={};for(const _0x36fa45 in _0x570bb0['diffData']){if(_0x570bb0['diffData'][_0x36fa45]['attachChange']&&!_0x570bb0['diffData'][_0x36fa45]['attachChange']['isAttached'])continue;const _0x39c8ba=this['_removeRevisionMarkers'](JSON['parse'](_0x570bb0['diffData'][_0x36fa45]['insertions'])),_0x2694b6=this['editor']['editing']['view']['document'],_0x134032=new _0x471757(_0x2694b6,_0x39c8ba['map'](_0x3f27df=>V(_0x3f27df,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x9b5fe0[_0x36fa45]=this['editor']['data']['processor']['toData'](_0x134032),this['editor']['data']['processor']['useFillerType']('default');}return _0x9b5fe0;}async['getRevisionRootsAttributes'](_0x2b4e31){await this['_loadRevisionData'](_0x2b4e31);const _0x58948d={};for(const _0x318ba3 in _0x2b4e31['diffData'])_0x2b4e31['diffData'][_0x318ba3]['attachChange']&&!_0x2b4e31['diffData'][_0x318ba3]['attachChange']['isAttached']||(_0x58948d[_0x318ba3]=_0x2b4e31['diffData'][_0x318ba3]['attributesAfter']||{});return _0x58948d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x79dd0d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3a2c12=0x0;_0x3a2c12<_0x79dd0d['length'];_0x3a2c12++){const _0x590f62=_0x79dd0d[_0x3a2c12];let _0x51c701=!0x1;for(const _0x53b7c5 of Object['keys'](_0x590f62))void 0x0===_0x590f62[_0x53b7c5]?delete _0x590f62[_0x53b7c5]:'id'!==_0x53b7c5&&(_0x51c701=!0x0);_0x51c701||(_0x79dd0d[_0x3a2c12]=null);}if(_0x79dd0d=_0x79dd0d['filter'](_0x4f968a=>null!==_0x4f968a),!_0x79dd0d['length'])return;for(let _0x40f873=0x0;_0x40f873<_0x79dd0d['length'];_0x40f873++){const _0x5e05f9=_0x79dd0d[_0x40f873];void 0x0!==_0x5e05f9['fromVersion']&&void 0x0===_0x5e05f9['toVersion']&&(_0x5e05f9['toVersion']=this['repository']['getRevision'](_0x5e05f9['id'])['toVersion']),void 0x0!==_0x5e05f9['toVersion']&&void 0x0===_0x5e05f9['fromVersion']&&(_0x5e05f9['fromVersion']=this['repository']['getRevision'](_0x5e05f9['id'])['fromVersion']);}const _0x267991=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x79dd0d,_0x267991)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4499ac=>{if(_0x4499ac){for(const _0x12c20b of _0x4499ac)this['setRevisionData']({'id':_0x12c20b['id'],'createdAt':_0x12c20b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x20f2f6,_0x540667){let _0x9cf4a8=this['editor']['config']['get']('initialData'),_0x1f5b03=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x9cf4a8){_0x9cf4a8={};for(const _0x37c794 of this['editor']['model']['document']['getRootNames']())_0x9cf4a8[_0x37c794]='';}if('string'==typeof _0x9cf4a8&&(_0x9cf4a8={'main':_0x9cf4a8}),void 0x0===_0x1f5b03){_0x1f5b03={};for(const _0x41cebf of this['editor']['model']['document']['getRootNames']())_0x1f5b03[_0x41cebf]={};}let _0x271bf8=!0x1;const _0x5c0442=Object['keys'](_0x9cf4a8),_0x76d3aa=Object['keys'](_0x20f2f6);for(const _0x140f5a of _0x5c0442){if(_0x9cf4a8[_0x140f5a]!==_0x20f2f6[_0x140f5a]&&''!==_0x9cf4a8[_0x140f5a]['trim']()){_0x271bf8=!0x0;break;}if(!_0x59f093(_0x1f5b03[_0x140f5a],_0x540667[_0x140f5a])&&Object['keys'](_0x1f5b03[_0x140f5a])['length']>0x0){_0x271bf8=!0x0;break;}}_0x271bf8||(_0x271bf8=_0x76d3aa['some'](_0x1e184c=>!this['editor']['model']['document']['getRoot'](_0x1e184c))),_0x271bf8&&_0x52977e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x9cf4a8,'editorRootsAttributes':_0x1f5b03,'revisionData':_0x20f2f6,'revisionRootsAttributes':_0x540667}),this['editor']['config']['set']('initialData',_0x20f2f6),this['editor']['config']['set']('rootsAttributes',_0x540667);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x176d44=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x176d44['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x34b998){const _0x4ba7db=this['repository']['getRevisions']();_0x4ba7db['reverse']();let _0x58bffb=0x0;for(;_0x58bffb<_0x4ba7db['length'];){const _0x27d93b=_0x4ba7db[_0x58bffb];if(_0x27d93b===this['currentRevision']){_0x58bffb++;continue;}if(_0x27d93b['id']===this['_initialRevisionId'])break;const _0x2155f2=_0x34b998['toVersion']-_0x27d93b['toVersion']||_0x34b998['fromVersion']-_0x27d93b['fromVersion'];if(_0x2155f2>0x0)break;if(_0x2155f2<0x0)_0x58bffb++;else{if(!_0x34b998['creator']&&_0x27d93b['creator'])break;if(_0x27d93b['creator']||!_0x34b998['creator']){if(_0x34b998['createdAt']>_0x27d93b['createdAt'])break;_0x58bffb++;}else _0x58bffb++;}}return _0x58bffb;}['setRevisionData'](_0x33a670){const _0x1a94c7=this['repository']['getRevision'](_0x33a670['id']);if(_0x33a670['createdAt']&&(_0x33a670['createdAt']=new Date(_0x33a670['createdAt'])),_0x33a670['authorsIds']){const _0x28eb4=this['editor']['plugins']['get']('Users');_0x33a670['authors']=_0x33a670['authorsIds']['map'](_0x5eaad7=>_0x28eb4['getUser'](_0x5eaad7));}_0x1a94c7['_update'](_0x33a670,!0x0);}['buildRevisionData']({revision:_0x50ec7d=null,from:_0x2843a2=null,to:_0x489915=null}){_0x2843a2=null!==_0x2843a2?_0x2843a2:_0x50ec7d['fromVersion'],_0x489915=null!==_0x489915?_0x489915:_0x50ec7d['toVersion'];const _0x585832=this['_revisionDataBuilder']['getData'](_0x2843a2,_0x489915),_0x2903c2={'diffData':_0x585832['diffData'],'authorsIds':_0x585832['authorsIds'],'fromVersion':_0x2843a2,'toVersion':_0x489915};if(!_0x50ec7d||_0x489915!==_0x50ec7d['toVersion']){const _0x456464=_0x489915-0x1,_0x429f12=this['_source']['history']['getOperation'](_0x456464);_0x2903c2['createdAt']=_0x429f12&&_0x429f12['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2843a2===this['_loadedStateData']['fromVersion']){for(const _0xd420cc of this['_loadedStateData']['authors'])_0x2903c2['authorsIds']['includes'](_0xd420cc['id'])||_0x2903c2['authorsIds']['push'](_0xd420cc['id']);}return _0x2903c2;}['_loadRevisionData'](_0x2d194e){if(!_0x2d194e||_0x2d194e['diffData'])return Promise['resolve']();{const _0x552f01=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x552f01,'revisionId':_0x2d194e['id']})['then'](_0x3dfc39=>{_0x2d194e['diffData']=_0x3dfc39['diffData'];});}}['_bufferUpdate'](_0x4afc00,_0x5a00c2,_0x2deb6a){if(this['_bufferedUpdates']['has'](_0x4afc00)){const _0x5826e8=this['_bufferedUpdates']['get'](_0x4afc00);_0x5a00c2=_0x2deb6a?{..._0x5826e8,..._0x5a00c2}:{..._0x5a00c2,..._0x5826e8};}this['_bufferedUpdates']['set'](_0x4afc00,_0x5a00c2);}['_getFromVersion'](_0x26724b){const _0x178d37=this['repository']['getRevisions']();_0x178d37['reverse'](),_0x178d37['shift']();const _0xee697a=_0x178d37['find'](_0x21f6de=>_0x21f6de['toVersion']<=_0x26724b)['toVersion'];return _0xee697a<this['_startingVersion']?this['_startingVersion']:_0xee697a;}['_createInitialRevision'](_0x355231){const _0x454984=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x454984)this['_initialRevisionId']=_0x454984['id'];else{const _0x4e2dd1=!this['editor']['model']['document']['roots']['find'](_0x4c6dcd=>this['editor']['model']['hasContent'](_0x4c6dcd)),_0x135bb4=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d70cf=R(this['editor']['locale'],_0x4e2dd1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x355231,'to':_0x355231,'id':this['_initialRevisionId'],'name':_0x3d70cf,'creatorId':_0x135bb4});}}['_createCurrentRevision'](_0x3f4f6f){const _0x455fe2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x455fe2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3f4f6f,'to':_0x3f4f6f,'id':_0x455fe2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5cfddc,from:_0x47bcab,to:_0x302733,creatorId:_0x45dbe9,id:_0x5f1051}){const _0x3e18fb=this['buildRevisionData']({'from':_0x47bcab,'to':_0x302733});_0x3e18fb['name']=_0x5cfddc,_0x3e18fb['creatorId']=_0x45dbe9,_0x3e18fb['id']=_0x5f1051;const _0x4e226b=this['addRevisionData'](_0x3e18fb);return this['adapter']&&this['_bufferUpdate'](_0x3e18fb['id'],_0x3e18fb,!0x0),_0x4e226b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3c48a8){return(_0x3c48a8=_0x3c48a8['filter'](_0x3086e2=>!_0x3086e2['name']||'revision-start'!==_0x3086e2['name']&&'revision-end'!==_0x3086e2['name']))['forEach'](_0x5d44c2=>{'string'!=typeof _0x5d44c2&&(_0x5d44c2['children']=this['_removeRevisionMarkers'](_0x5d44c2['children']),_0x5d44c2['attributes']=_0x5d44c2['attributes']['filter'](_0x2577b5=>!_0x2577b5[0x0]['startsWith']('data-revision-')));}),_0x3c48a8;}}function V(_0x41cae5,_0x5e8fa5){const _0x49cb84=_0x5e8fa5['editing']['view']['document'];if('string'==typeof _0x41cae5)return new _0x7c92df(_0x49cb84,_0x41cae5);{const _0x3d06fe=_0x41cae5['children']['map'](_0xec1911=>V(_0xec1911,_0x5e8fa5));return new(C[_0x41cae5['type']]||_0x3b6ead)(_0x49cb84,_0x41cae5['name'],_0x41cae5['attributes'],_0x3d06fe);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x599f0b){this['editor']=_0x599f0b,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'](_0x227050){this['source']=_0x227050;const _0x154cad=new Map(),_0x4eab91=new Map(),_0x1eb027=this['editor']['model']['document']['roots']['map'](_0xe1d529=>_0xe1d529['rootName']);for(const _0x183861 of _0x1eb027){const _0x431df7=this['editor']['model']['document']['getRoot'](_0x183861),_0x3f46a2=F(_0x431df7);_0x154cad['set'](_0x183861,_0x3f46a2),_0x4eab91['set'](_0x183861,Object['fromEntries'](_0x431df7['getAttributes']()));}const _0x36c535=Array['from'](this['editor']['model']['markers'])['map'](_0x3d9ba9=>[_0x3d9ba9['name'],_0x3d9ba9['getRange']()]),_0x4ff4c8=this['source']['version'];this['_saveMetaData'](_0x4ff4c8,_0x154cad,_0x36c535,_0x4eab91),this['_startingRevisionId']=this['_revisionId'];const _0x166777=new Map(),_0x36a835=new Map();for(const _0x124d59 of _0x1eb027){const _0x59d19a=B(_0x124d59);_0x166777['set'](_0x124d59,_0x59d19a),_0x36a835['set'](_0x124d59,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x166777,[],_0x36a835);}['getData'](_0x497e73,_0x27d756){if(this['_lastFrom']===_0x497e73&&this['_lastTo']<=_0x27d756)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x27d756,!0x0);else{if(!this['_savedMetaData']['has'](_0x497e73)){const _0x39f319=this['_getPreviousFrom'](_0x497e73);this['_calculateMetaData'](_0x39f319,_0x497e73,!0x1);}this['_calculateMetaData'](_0x497e73,_0x27d756,!0x0);}return this['_lastFrom']=_0x497e73,this['_lastTo']=_0x27d756,this['_getState']();}['loadState'](_0x3b81d4){this['_reset'](),this['_lastFrom']=_0x3b81d4['fromVersion'],this['_lastTo']=_0x3b81d4['toVersion'];for(const _0x347bfa in _0x3b81d4['diffData']){const _0x31166f=_0x3b81d4['diffData'][_0x347bfa]['attachChange'],_0x561004=_0x3c49e8(_0x3b81d4['diffData'][_0x347bfa]['attributesBefore'])||{},_0x2b0d0b=this['_makeModelFromViewString'](_0x3b81d4['diffData'][_0x347bfa]['deletions']);_0x2b0d0b['rootName']=_0x347bfa,_0x2b0d0b['_isAttached']=!_0x31166f||!_0x31166f['isAttached'],_0x2b0d0b['isAttached']=()=>_0x2b0d0b['_isAttached'],this['_baseRoots']['set'](_0x347bfa,_0x2b0d0b),this['_baseRootsAttributes']['set'](_0x347bfa,_0x561004),_0x31166f&&this['_touchedRoots']['set'](_0x347bfa,_0x31166f);const _0x51e1cf=this['_makeIdsRoot'](_0x2b0d0b);this['_baseIdsRoots']['set'](_0x347bfa,_0x51e1cf);for(const [_0xcaf39d,_0xc2f429]of _0x2b0d0b['markers']){if(!_0xcaf39d['startsWith']('revision:'))continue;const _0x3ff76c=_0xcaf39d['split'](':')[0x2];for(const _0x5deb74 of _0xc2f429['getWalker']({'singleCharacters':!0x0})){const _0x25077e=this['_getVidAttributeName'](_0x5deb74),_0x16f189='elementEnd'==_0x5deb74['type']?_0x5deb74['previousPosition']['path']['slice'](0x0,-0x1):_0x5deb74['previousPosition']['path'],_0x25c5df=_0x51e1cf['getNodeByPath'](_0x16f189)['getAttribute'](_0x25077e);this['_touched']['set'](_0x25c5df,{'userId':_0x3ff76c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x118515=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x569baf=>!this['_touched']['has'](_0x569baf));let _0x1b3c51=0x0;const _0x5aba10=new Map();for(const _0x35ebf6 in _0x3b81d4['diffData']){const _0x3f3dde=_0x3b81d4['diffData'][_0x35ebf6]['attachChange'],_0x55cae1=_0x3c49e8(_0x3b81d4['diffData'][_0x35ebf6]['attributesAfter'])||{},_0x5b250a=this['_makeModelFromViewString'](_0x3b81d4['diffData'][_0x35ebf6]['insertions']);_0x5b250a['rootName']=_0x35ebf6,_0x5b250a['_isAttached']=!_0x3f3dde||_0x3f3dde['isAttached'],_0x5b250a['isAttached']=()=>_0x5b250a['_isAttached'],this['_diffRoots']['set'](_0x35ebf6,_0x5b250a),this['_diffRootsAttributes']['set'](_0x35ebf6,_0x55cae1);const _0x46709e=this['_makeIdsRoot'](_0x5b250a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x35ebf6,_0x46709e),_0x5aba10['set'](_0x35ebf6,_0x5b250a['isAttached']()?_0x55cae1:{});for(const [_0x2effaf,_0x4ba8dd]of _0x5b250a['markers']){if(!_0x2effaf['startsWith']('revision:'))continue;const _0x9abce4=_0x2effaf['split'](':')[0x2];for(const _0x57489b of _0x4ba8dd['getWalker']({'singleCharacters':!0x0})){const _0x565c59=this['_getVidAttributeName'](_0x57489b),_0x3d325e=this['_revisionId']++,_0x563381='elementEnd'==_0x57489b['type']?_0x57489b['previousPosition']['path']['slice'](0x0,-0x1):_0x57489b['previousPosition']['path'];_0x46709e['getNodeByPath'](_0x563381)['_setAttribute'](_0x565c59,_0x3d325e),this['_touched']['set'](_0x3d325e,{'userId':_0x9abce4});}}for(const _0x20aa41 of this['editor']['model']['createRangeIn'](_0x5b250a)['getWalker']({'singleCharacters':!0x0})){const _0x3ad0f0=this['_getVidAttributeName'](_0x20aa41),_0x37c24a='elementEnd'==_0x20aa41['type']?_0x20aa41['previousPosition']['path']['slice'](0x0,-0x1):_0x20aa41['previousPosition']['path'],_0x48be19=_0x46709e['getNodeByPath'](_0x37c24a);_0x48be19['getAttribute'](_0x3ad0f0)>0x0||_0x48be19['_setAttribute'](_0x3ad0f0,_0x118515[_0x1b3c51++]);}for(const [_0x578f94,_0x58021d]of _0x5b250a['markers'])_0x578f94['startsWith']('revision:')||this['_markers']['set'](_0x578f94,_0x58021d);}const _0x27acd1=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x27acd1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x27acd1,0x1));const _0x2b7061=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2b7061),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b7061,0x1));const _0x5da614=Array['from'](this['_diffRoots'])['map'](([_0x4475b2,_0x277ec6])=>[_0x4475b2,F(_0x277ec6)]);this['_saveMetaData'](this['_lastTo'],_0x5da614,this['_markers'],_0x5aba10);}['_makeModelFromViewString'](_0x40f850){const _0xf0fa3=JSON['parse'](_0x40f850),_0x52dbbe=this['editor']['editing']['view']['document'],_0x3e6775=new _0x471757(_0x52dbbe,_0xf0fa3['map'](_0x53631f=>V(_0x53631f,this['editor'])));return this['editor']['data']['toModel'](_0x3e6775);}['_saveMetaData'](_0x1c2fa5,_0x1b29ef,_0x538663,_0x598c4d){const _0x2daa46=new Map(_0x1b29ef),_0x3f8614=new Map(_0x3c49e8(_0x598c4d)),_0x47695c=new Map();for(const [_0x4be1df,_0x53fd7e]of _0x538663)_0x47695c['set'](_0x4be1df,{'start':_0x53fd7e['start']['clone'](),'end':_0x53fd7e['end']['clone'](),'rootName':_0x53fd7e['root']['rootName']});this['_savedMetaData']['set'](_0x1c2fa5,{'roots':_0x2daa46,'markers':_0x47695c,'rootsAttributes':_0x3f8614});}['_removeMetaData'](_0x33e846){this['_savedMetaData']['delete'](_0x33e846);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x55be01,_0x30a252=null){let _0x4bea53=null;_0x55be01['is']('documentFragment')||(_0x4bea53=new ft(_0x55be01['name'],{'vid_start':null===_0x30a252?this['_revisionId']++:_0x30a252++}));const _0x31922e=[];for(const _0x37f350 of _0x55be01['getChildren']())if(_0x37f350['is']('element')){_0x31922e['push'](this['_makeIdsRoot'](_0x37f350,_0x30a252));const _0x1f8dba=_0x31922e[_0x31922e['length']-0x1];null!==_0x30a252&&(_0x30a252=_0x1f8dba['is']('element','$text')?_0x1f8dba['getAttribute']('vid')+0x1:_0x1f8dba['getAttribute']('vid_end')+0x1);}else{for(let _0xe5c635=0x0;_0xe5c635<_0x37f350['offsetSize'];_0xe5c635++)_0x31922e['push'](new ft('$text',{'vid':null===_0x30a252?this['_revisionId']++:_0x30a252++}));}if(_0x55be01['is']('documentFragment')){const _0x20bcef=B(_0x55be01['rootName']);return _0x20bcef['_insertChild'](0x0,_0x31922e),_0x20bcef;}return _0x4bea53['_setAttribute']('vid_end',null===_0x30a252?this['_revisionId']++:_0x30a252++),_0x4bea53['_insertChild'](0x0,_0x31922e),_0x4bea53;}['_calculateMetaData'](_0x224d41,_0x10fc0f,_0x17c957){this['_reset']();const {roots:_0x4c801e,markers:_0x1b8999,rootsAttributes:_0x1a4e54}=this['_savedMetaData']['get'](_0x224d41);this['_baseRoots']=new Map(_0x4c801e),this['_baseRootsAttributes']=new Map(_0x3c49e8(_0x1a4e54));for(const [_0x1f0522,_0x17c207]of this['_baseRoots'])if('$graveyard'!==_0x1f0522&&(this['_diffRoots']['set'](_0x1f0522,F(_0x17c207)),this['_diffRootsAttributes']=new Map(_0x3c49e8(_0x1a4e54)),_0x17c957)){const _0x7194bf=this['_revisionId'];this['_idsRoots']['set'](_0x1f0522,this['_makeIdsRoot'](_0x17c207)),this['_baseIdsRoots']['set'](_0x1f0522,this['_makeIdsRoot'](_0x17c207,_0x7194bf));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x17c957&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5ecec0,_0x5e3b90]of _0x1b8999){const _0x3ce60a=this['_baseRoots']['get'](_0x5e3b90['rootName']),_0x2f64cc=this['_diffRoots']['get'](_0x5e3b90['rootName']),_0x57039c=new vt(this['_fixPosition'](_0x5e3b90['start'],_0x3ce60a),this['_fixPosition'](_0x5e3b90['end'],_0x3ce60a)),_0x7100d6=this['_fixRange'](_0x57039c,_0x2f64cc);_0x3ce60a['markers']['set'](_0x5ecec0,_0x57039c),this['_markers']['set'](_0x5ecec0,_0x7100d6);}this['_applyOperations'](_0x224d41,_0x10fc0f,_0x17c957);}['_applyOperations'](_0x1d34c9,_0x20b023,_0x51b361){for(const _0x3116bb of this['source']['getOperations'](_0x1d34c9,_0x20b023))this['_handleOperation'](_0x3116bb,_0x51b361);for(const _0xb7b74f of this['_diffRoots']['values']())_0xb7b74f['markers']['clear']();for(const [_0x4b0158,_0x4a81f0]of this['_markers']){this['_diffRoots']['get'](_0x4a81f0['root']['rootName'])['markers']['set'](_0x4b0158,_0x4a81f0['clone']());}const _0x1b0728=new Map(),_0x2852cc=new Map();for(const [_0x2a6120,_0x5bce29]of this['_diffRoots'])_0x1b0728['set'](_0x2a6120,F(_0x5bce29)),_0x2852cc['set'](_0x2a6120,this['_diffRootsAttributes']['get'](_0x2a6120));this['_saveMetaData'](_0x20b023,_0x1b0728,this['_markers'],_0x2852cc);}['_getPreviousFrom'](_0x3bfba8){const _0x441afd=Array['from'](this['_savedMetaData']['keys']());_0x441afd['sort']((_0x65d3b3,_0x3f2db0)=>_0x65d3b3-_0x3f2db0),_0x441afd['reverse']();for(const _0x51e13a of _0x441afd)if(_0x51e13a<_0x3bfba8)return _0x51e13a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1564d9,_0x19e287){const _0x4c114a=Array['from'](_0x19e287['markers'])['map'](([_0x4b325b,_0x1e6c13])=>[_0x4b325b,this['_fixRange'](_0x1e6c13,_0x1564d9)]);_0x1564d9['markers']=new Map(_0x4c114a);}['_transformMarkers'](_0x34ebda){for(const _0x5b923f of this['_markers']['values']()){const _0x2c5b72=_0x5b923f['getTransformedByOperation'](_0x34ebda),_0x164fdf=vt['_createFromRanges'](_0x2c5b72);_0x5b923f['start']=_0x164fdf['start'],_0x5b923f['end']=_0x164fdf['end'];}}['_handleOperation'](_0xf9f5b7,_0x33ea0e){if('addRoot'!=_0xf9f5b7['type']&&'detachRoot'!=_0xf9f5b7['type']){if('insert'==_0xf9f5b7['type']){const _0x4c2c87=_0xf9f5b7['position']['root']['rootName'];this['_diffRoots']['has'](_0x4c2c87)||(this['_diffRoots']['set'](_0x4c2c87,B(_0x4c2c87,!0x0)),this['_diffRootsAttributes']['set'](_0x4c2c87,{}),_0x33ea0e&&this['_idsRoots']['set'](_0x4c2c87,B(_0x4c2c87,!0x0)));}else{if('addRootAttribute'==_0xf9f5b7['type']||'removeRootAttribute'==_0xf9f5b7['type']||'changeRootAttribute'==_0xf9f5b7['type'])return void this['_handleRootAttributeOperation'](_0xf9f5b7);'marker'==_0xf9f5b7['type']&&this['_handleMarkerOperation'](_0xf9f5b7);}if('marker'!==_0xf9f5b7['type']){const _0x33bd13=this['_cloneOperation'](_0xf9f5b7,this['_diffRoots']);_0x33bd13['_execute'](),this['_transformMarkers'](_0x33bd13);}if(_0x33ea0e)switch(_0xf9f5b7['type']){case'insert':this['_handleInsertOperation'](_0xf9f5b7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xf9f5b7);break;case'merge':this['_handleMergeOperation'](_0xf9f5b7);break;case'split':this['_handleSplitOperation'](_0xf9f5b7);}}else this['_handleRootOperation'](_0xf9f5b7,_0x33ea0e);}['_cloneOperation'](_0x367621,_0x563f06){const _0x115e20=_0x367621['clone']();return _0x115e20['_authorId']=_0x367621['_authorId'],this['_fixOperation'](_0x115e20,_0x563f06),_0x115e20;}['_getBaseVids'](_0x8f619){return _0x8f619['map'](_0x36ccc5=>{const _0x47ba25=this['_getVidAttributeName'](_0x36ccc5);return Number(_0x36ccc5['item']['getAttribute'](_0x47ba25));});}['_generateTape'](_0x44bbe5,_0x1f3284){if(_0x44bbe5['is']('element','$text'))_0x1f3284['push']({'item':_0x44bbe5,'type':'text'});else{_0x44bbe5['is']('element')&&_0x1f3284['push']({'item':_0x44bbe5,'type':'elementStart'});for(const _0x5170b5 of _0x44bbe5['getChildren']())this['_generateTape'](_0x5170b5,_0x1f3284);_0x44bbe5['is']('element')&&_0x1f3284['push']({'item':_0x44bbe5,'type':'elementEnd'});}return _0x1f3284;}['_getState'](){const _0x1223d6=new Map(this['_touched']),_0x485bed=new Map(_0x1223d6),_0x1718b9=new Map(),_0x52ae65={'insertions':{},'deletions':{}},_0x3a00b0={'insertions':{},'deletions':{}},_0x158793=new Map(),_0x29775c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x29775c['delete']('$graveyard');for(const _0x215b0b of _0x29775c){const _0x3e22bf=this['_diffRoots']['get'](_0x215b0b)||B(_0x215b0b,!0x1),_0x4907d7=this['_baseRoots']['get'](_0x215b0b)||B(_0x215b0b,!0x1);_0x3e22bf['isAttached']()||_0x4907d7['isAttached']()?(_0x52ae65['insertions'][_0x215b0b]=F(_0x3e22bf),_0x52ae65['deletions'][_0x215b0b]=F(_0x4907d7),this['_copyMarkers'](_0x52ae65['deletions'][_0x215b0b],_0x4907d7),this['_copyMarkers'](_0x52ae65['insertions'][_0x215b0b],_0x3e22bf),_0x3a00b0['insertions'][_0x215b0b]=this['_generateTape'](this['_idsRoots']['get'](_0x215b0b),[]),_0x3a00b0['deletions'][_0x215b0b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x215b0b)||B(_0x215b0b,!0x1),[])):_0x29775c['delete'](_0x215b0b);}for(const _0x2b05e4 of _0x29775c){const _0x38e2d2=_0x3a00b0['insertions'][_0x2b05e4];for(const _0x3689db of _0x38e2d2){const _0x1b3c6a=this['_getVidAttributeName'](_0x3689db),_0x2e3773=_0x3689db['item']['getAttribute'](_0x1b3c6a);_0x485bed['delete'](_0x2e3773),_0x2e3773>=this['_startingRevisionId']&&_0x1718b9['set'](_0x2e3773,_0x1223d6['get'](_0x2e3773));}}for(const _0x3d88d0 of _0x29775c){const _0x5ec876=_0x3a00b0['insertions'][_0x3d88d0],_0x5c9084=this['_getBaseVids'](_0x3a00b0['deletions'][_0x3d88d0]);let _0x2d20f7=0x0;for(const _0x2b0c55 of _0x5ec876){const _0xc9a955=this['_getVidAttributeName'](_0x2b0c55),_0x1d1817=_0x2b0c55['item']['getAttribute'](_0xc9a955);if(!_0x1718b9['has'](_0x1d1817)&&!_0x158793['has'](_0x1d1817)){if(_0x485bed['has'](_0x1d1817))_0x2d20f7++;else{if(_0x1d1817!=_0x5c9084[_0x2d20f7]){const _0x400f37=_0x1223d6['get'](_0x1d1817)||_0x1223d6['get'](_0x5c9084[_0x2d20f7]);for(;_0x1d1817!=_0x5c9084[_0x2d20f7];)_0x485bed['has'](_0x5c9084[_0x2d20f7])||(_0x158793['set'](_0x5c9084[_0x2d20f7],_0x400f37),_0x1223d6['set'](_0x5c9084[_0x2d20f7],_0x400f37)),_0x2d20f7++;}_0x2d20f7++;}}}}for(const _0xd398c5 of _0x29775c){const _0x2d0993=_0x3a00b0['insertions'][_0xd398c5];for(const _0x4dc580 of _0x2d0993){const _0xd14049=this['_getVidAttributeName'](_0x4dc580),_0x4fac07=_0x4dc580['item']['getAttribute'](_0xd14049);if(_0x158793['has'](_0x4fac07)){const _0x563606=_0x158793['get'](_0x4fac07);_0x485bed['has'](_0x4fac07)||_0x485bed['set'](_0x4fac07,{..._0x563606}),_0x1718b9['set'](_0x4fac07,{..._0x563606});}}}for(const _0x6a1ca0 of _0x485bed['keys']())_0x6a1ca0>=this['_startingRevisionId']&&_0x485bed['delete'](_0x6a1ca0);const _0x2188ba=new Map();for(const _0x403a5a of _0x29775c){let _0x5e0af5=_0x3a00b0['insertions'][_0x403a5a];for(const _0x16e4b7 of _0x5e0af5)if(_0x16e4b7['item']['is']('element','tableCell')){const _0x5965d2=this['_getVidAttributeName'](_0x16e4b7),_0x3af3b0=_0x16e4b7['item']['getAttribute'](_0x5965d2);if(_0x1718b9['has'](_0x3af3b0)){const _0x138389=_0x16e4b7['item']['parent']['parent']['getAttribute']('vid_start'),_0x26b582=_0x2188ba['get'](_0x138389)||new Set();_0x26b582['add'](_0x1718b9['get'](_0x3af3b0)['userId']),_0x2188ba['set'](_0x138389,_0x26b582);}}_0x5e0af5=_0x3a00b0['deletions'][_0x403a5a];for(const _0x4ae266 of _0x5e0af5)if(_0x4ae266['item']['is']('element','tableCell')){const _0x24f2bb=this['_getVidAttributeName'](_0x4ae266),_0x109c5f=_0x4ae266['item']['getAttribute'](_0x24f2bb);if(_0x485bed['has'](_0x109c5f)){const _0x1bea04=_0x4ae266['item']['parent']['parent']['getAttribute']('vid_start'),_0x4b4374=_0x2188ba['get'](_0x1bea04)||new Set();_0x4b4374['add'](_0x485bed['get'](_0x109c5f)['userId']),_0x2188ba['set'](_0x1bea04,_0x4b4374);}}for(const _0x1b0fc9 of _0x2188ba['keys']())(_0x1718b9['has'](_0x1b0fc9)||_0x485bed['has'](_0x1b0fc9))&&_0x2188ba['delete'](_0x1b0fc9);}for(const _0xf6a5a7 of _0x29775c){const _0x41f4f6=_0x3a00b0['insertions'][_0xf6a5a7];let _0x221c66=null,_0x12f0d7=null;for(const _0x5d1a39 of _0x41f4f6){const _0x3034fd=this['_getVidAttributeName'](_0x5d1a39),_0x514adf=_0x5d1a39['item']['getAttribute'](_0x3034fd),_0x536eef=_0x2188ba['get'](_0x514adf);_0x536eef&&'elementStart'==_0x5d1a39['type']&&(_0x221c66=Array['from'](_0x536eef)[0x0],_0x12f0d7=_0x5d1a39['item']['getAttribute']('vid_end')),_0x221c66&&(_0x485bed['set'](_0x514adf,{'userId':_0x221c66}),_0x1718b9['set'](_0x514adf,{'userId':_0x221c66})),_0x514adf==_0x12f0d7&&(_0x221c66=null,_0x12f0d7=null);}}const _0x51ada8={},_0x5ccd49=new Set();for(const _0x5f7fbb of _0x29775c){const _0x16c630=_0x52ae65['deletions'][_0x5f7fbb],_0x5f4853=_0x52ae65['insertions'][_0x5f7fbb];for(const {userId:_0x27cdb5}of this['_touchedMarkers']['values']())null!==_0x27cdb5&&_0x5ccd49['add'](_0x27cdb5);for(const {userId:_0x4900b2}of this['_touchedRoots']['values']())null!==_0x4900b2&&_0x5ccd49['add'](_0x4900b2);this['_markChanges'](_0x5f4853,_0x3a00b0['insertions'][_0x5f7fbb],_0x1718b9,'insertion',_0x5ccd49),this['_markChanges'](_0x16c630,_0x3a00b0['deletions'][_0x5f7fbb],_0x485bed,'deletion',_0x5ccd49),_0x51ada8[_0x5f7fbb]={'insertions':this['_prepareViewToSave'](_0x5f4853),'deletions':this['_prepareViewToSave'](_0x16c630),'attachChange':this['_touchedRoots']['get'](_0x5f7fbb)||null,'attributesBefore':_0x3c49e8(this['_baseRootsAttributes']['get'](_0x5f7fbb))||{},'attributesAfter':_0x3c49e8(this['_diffRootsAttributes']['get'](_0x5f7fbb))};}return{'diffData':_0x51ada8,'authorsIds':Array['from'](_0x5ccd49)};}['_processRootBeforeSave'](_0x23b01d){for(const [,_0x3fda5b]of _0x23b01d['markers']){const _0x3ff602=_0x3fda5b['start']['getAncestors']()['filter'](_0xe2c4ba=>'tableCell'==_0xe2c4ba['name']);for(const _0x36cffc of _0x3ff602)0x1==_0x36cffc['childCount']&&_0x36cffc['getChild'](0x0)['is']('element','paragraph')&&_0x36cffc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3288d2){this['_processRootBeforeSave'](_0x3288d2);const _0x68bea0=this['editor']['data']['toView'](_0x3288d2,{}),_0x5bdfed=Array['from'](_0x68bea0['getChildren']())['map'](_0x262a2b=>this['_getViewJson'](_0x262a2b));return JSON['stringify'](_0x5bdfed);}['_getViewJson'](_0x270266){if(_0x270266['is']('$text'))return _0x270266['data'];{const _0x232282=_0x270266;return{'type':Object['keys'](C)['find'](_0x244082=>_0x270266 instanceof C[_0x244082]),'name':_0x232282['name'],'attributes':Array['from'](_0x232282['getAttributes']()),'children':Array['from'](_0x232282['getChildren']())['map'](_0xb7b97e=>this['_getViewJson'](_0xb7b97e))};}}['_markChanges'](_0xbe4cbc,_0x5cb971,_0x4b53d1,_0x50e6bb,_0x4e05bd){let _0x42e339=null,_0x3bcf9c=null,_0x49442b=0x0;const _0x2baa4f=this['editor']['model'];for(let _0x3c4ee7=0x0;_0x3c4ee7<_0x5cb971['length'];_0x3c4ee7++){const _0x48a602=this['_getVidAttributeName'](_0x5cb971[_0x3c4ee7]),_0x463937=_0x5cb971[_0x3c4ee7]['item']['getAttribute'](_0x48a602),_0x46245c=_0x4b53d1['get'](_0x463937),_0x1925eb=_0x3c4ee7==_0x5cb971['length']-0x1;(!_0x42e339&&_0x46245c&&(_0x42e339=_0x46245c,_0x3bcf9c=_0x5cb971[_0x3c4ee7]),_0x42e339&&(!_0x46245c||_0x46245c['userId']!=_0x42e339['userId']))&&(_0x288444(_0x46245c,J(_0x3bcf9c,_0xbe4cbc,_0x2baa4f),J(_0x5cb971[_0x3c4ee7],_0xbe4cbc,_0x2baa4f)),_0x42e339=_0x46245c||null,_0x3bcf9c=_0x46245c?_0x5cb971[_0x3c4ee7]:null),_0x42e339&&_0x1925eb&&_0x288444(_0x46245c,J(_0x3bcf9c,_0xbe4cbc,_0x2baa4f),q(_0x5cb971[_0x3c4ee7],_0xbe4cbc,_0x2baa4f));}function _0x288444(_0x1a3a7e,_0x7191e,_0xd98aa3){const _0x23aaa3=_0x42e339['userId'],_0x3c7716='revision:'+_0x50e6bb+':'+_0x23aaa3+':'+_0x49442b++,_0x2eac6f=_0x2baa4f['createRange'](_0x7191e,_0xd98aa3);_0xbe4cbc['markers']['set'](_0x3c7716,_0x2eac6f),null!==_0x23aaa3&&_0x4e05bd['add'](_0x23aaa3);}}['_getVidAttributeName'](_0x4c4f04){switch(_0x4c4f04['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x244748,_0x234042){_0x244748['baseVersion']=null;for(const _0x119d5e in _0x244748){const _0x3499f7=_0x244748[_0x119d5e];if(_0x3499f7 instanceof gt){const _0x19740a=_0x234042['get'](_0x3499f7['root']['rootName']);_0x244748[_0x119d5e]=this['_fixPosition'](_0x3499f7,_0x19740a);}if(_0x3499f7 instanceof vt){const _0x2f4ef4=_0x234042['get'](_0x3499f7['root']['rootName']);_0x244748[_0x119d5e]=this['_fixRange'](_0x3499f7,_0x2f4ef4);}'root'===_0x119d5e&&(_0x244748['root']=_0x234042['get'](_0x244748['root']['rootName']));}}['_fixRange'](_0x2b915b,_0x3a67ea){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2b915b['start'],_0x3a67ea),this['_fixPosition'](_0x2b915b['end'],_0x3a67ea));}['_fixPosition'](_0x58bc90,_0xec1c8e){return this['editor']['model']['createPositionFromPath'](_0xec1c8e,_0x58bc90['path'],_0x58bc90['stickiness']);}['_handleInsertOperation'](_0x1d7280){const _0x10a4f6=this['_idsRoots']['get'](_0x1d7280['position']['root']['rootName']),_0x3df063=this['_fixPosition'](_0x1d7280['position'],_0x10a4f6),_0x20429b=null===_0x1d7280['_authorId']?null:_0x1d7280['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6ea76b=_0x3df063['parent'],_0x1b6e6d=this['_revisionId'],_0x5f5177=[];for(const _0x4e71fe of _0x1d7280['nodes'])if(_0x4e71fe['is']('element'))_0x5f5177['push'](this['_makeIdsRoot'](_0x4e71fe));else{for(let _0x8ea113=0x0;_0x8ea113<_0x4e71fe['offsetSize'];_0x8ea113++)_0x5f5177['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x233d08=this['_revisionId'];for(let _0x553888=_0x1b6e6d;_0x553888<_0x233d08;_0x553888++)this['_touched']['set'](_0x553888,{'userId':_0x20429b});_0x6ea76b['_insertChild'](_0x3df063['offset'],_0x5f5177);}['_handleMoveOperation'](_0x3b651c){(_0x3b651c=this['_cloneOperation'](_0x3b651c,this['_idsRoots']))['_execute']();const _0x3b7a35=null===_0x3b651c['_authorId']?null:_0x3b651c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cd14d=_0x3b651c['getMovedRangeStart'](),_0xb83730=_0x2cd14d['parent'],_0x5b62de=_0x2cd14d['offset'];!function _0x34a57f(_0x52b481,_0x49de91,_0x5be8a8,_0x3f951b){for(let _0x5df75d=_0x5be8a8;_0x5df75d<_0x3f951b;_0x5df75d++){const _0x4dca39=_0x49de91['getChild'](_0x5df75d);_0x4dca39['is']('element','$text')?_0x52b481['set'](_0x4dca39['getAttribute']('vid'),{'userId':_0x3b7a35}):(_0x52b481['set'](_0x4dca39['getAttribute']('vid_start'),{'userId':_0x3b7a35}),_0x34a57f(_0x52b481,_0x4dca39,0x0,_0x4dca39['childCount']),_0x52b481['set'](_0x4dca39['getAttribute']('vid_end'),{'userId':_0x3b7a35}));}}(this['_touched'],_0xb83730,_0x5b62de,_0x5b62de+_0x3b651c['howMany']);}['_handleMergeOperation'](_0x31e5d3){const _0x5b03db=null===(_0x31e5d3=this['_cloneOperation'](_0x31e5d3,this['_idsRoots']))['_authorId']?null:_0x31e5d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b052b=_0x31e5d3['targetPosition']['parent'],_0x12a266=_0x31e5d3['sourcePosition']['parent'],_0x154d40=_0x4b052b['getAttribute']('vid_end'),_0xb710fa=_0x12a266['getAttribute']('vid_start');_0x4b052b['_setAttribute']('vid_end',_0x12a266['getAttribute']('vid_end')),_0x12a266['_setAttribute']('vid_end',_0x154d40),this['_touched']['set'](_0xb710fa,{'userId':_0x5b03db}),this['_touched']['set'](_0x154d40,{'userId':_0x5b03db}),_0x31e5d3['_execute']();}['_handleSplitOperation'](_0x375650){const _0x484abb=null===(_0x375650=this['_cloneOperation'](_0x375650,this['_idsRoots']))['_authorId']?null:_0x375650['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47a428=_0x375650['graveyardPosition'],_0x2bdfed=_0x375650['splitPosition']['parent'];_0x375650['_execute']();const _0x80e1ff=_0x2bdfed['getAttribute']('vid_end'),_0x3e2d28=_0x375650['insertionPosition']['nodeAfter'];if(_0x47a428){const _0x2659ce=_0x3e2d28['getAttribute']('vid_end'),_0x3817eb=_0x2bdfed['getAttribute']('vid_end');_0x2bdfed['_setAttribute']('vid_end',_0x2659ce),_0x3e2d28['_setAttribute']('vid_end',_0x3817eb),this['_touched']['set'](_0x2bdfed['getAttribute']('vid_end'),{'userId':_0x484abb}),this['_touched']['set'](_0x3e2d28['getAttribute']('vid_start'),{'userId':_0x484abb});}else{const _0x4b62ad=this['_revisionId']++,_0x19ff98=this['_revisionId']++;_0x2bdfed['_setAttribute']('vid_end',_0x4b62ad),_0x3e2d28['_setAttribute']('vid_start',_0x19ff98),_0x3e2d28['_setAttribute']('vid_end',_0x80e1ff),this['_touched']['set'](_0x4b62ad,{'userId':_0x484abb}),this['_touched']['set'](_0x19ff98,{'userId':_0x484abb});}}['_handleMarkerOperation'](_0x1de9a){if(!_0x1de9a['affectsData'])return;const _0x1e6921=(_0x1de9a=this['_cloneOperation'](_0x1de9a,this['_diffRoots']))['oldRange']?_0x1de9a['oldRange']['root']:null,_0x2802a5=_0x1de9a['newRange']?_0x1de9a['newRange']['root']:null;_0x1e6921&&this['_markers']['delete'](_0x1de9a['name']),_0x2802a5&&this['_markers']['set'](_0x1de9a['name'],_0x1de9a['newRange']['clone']());const _0x3eb096=null===_0x1de9a['_authorId']?null:_0x1de9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x103930=_0x1de9a['name'];if(!this['_touchedMarkers']['has'](_0x103930))return void this['_touchedMarkers']['set'](_0x103930,{'range':_0x1de9a['oldRange'],'userId':_0x3eb096});const _0x13ee3e=this['_touchedMarkers']['get'](_0x103930),_0x3f9f90=_0x13ee3e['range'],_0x2a58fe=_0x1de9a['newRange'];null==_0x3f9f90&&null==_0x2a58fe||_0x3f9f90&&_0x2a58fe&&_0x3f9f90['isEqual'](_0x2a58fe)?this['_touchedMarkers']['delete'](_0x1de9a['name']):_0x13ee3e['userId']=_0x3eb096;}['_handleRootOperation'](_0x303c67,_0xac0f5f){this['_diffRoots']['has'](_0x303c67['rootName'])?this['_diffRoots']['get'](_0x303c67['rootName'])['_isAttached']=_0x303c67['isAdd']:(this['_diffRoots']['set'](_0x303c67['rootName'],B(_0x303c67['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x303c67['rootName'],{}),_0xac0f5f&&this['_idsRoots']['set'](_0x303c67['rootName'],B(_0x303c67['rootName'],!0x0)));const _0x5b1511=null===_0x303c67['_authorId']?null:_0x303c67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14b9de=this['_touchedRoots']['get'](_0x303c67['rootName']);_0x14b9de&&_0x14b9de['userId']===_0x5b1511?this['_touchedRoots']['delete'](_0x303c67['rootName']):this['_touchedRoots']['set'](_0x303c67['rootName'],{'userId':_0x5b1511,'isAttached':_0x303c67['isAdd']});}['_handleRootAttributeOperation'](_0xe074cb){const _0x2b8239=this['_diffRootsAttributes']['get'](_0xe074cb['root']['rootName']);null===_0xe074cb['newValue']?delete _0x2b8239[_0xe074cb['key']]:_0x2b8239[_0xe074cb['key']]=_0xe074cb['newValue'];}}function F(_0x261202){const _0x1ef347=B(_0x261202['rootName'],_0x261202['isAttached']());for(const _0x38a6a1 of _0x261202['getChildren']()){const _0x236c64=_0x38a6a1['_clone'](!0x0);_0x1ef347['_appendChild'](_0x236c64);}return _0x1ef347;}function B(_0xbdd29d,_0x25648d=!0x0){const _0x3f27c3=new wt();return _0x3f27c3['rootName']=_0xbdd29d,_0x3f27c3['_isAttached']=_0x25648d,_0x3f27c3['isAttached']=()=>_0x3f27c3['_isAttached'],_0x3f27c3;}function J(_0x260c76,_0x1af86c,_0x2b7ec9){const _0xcfe286='elementEnd'==_0x260c76['type']?_0x2b7ec9['createPositionAt'](_0x260c76['item'],'end'):_0x2b7ec9['createPositionBefore'](_0x260c76['item']);return _0x2b7ec9['createPositionFromPath'](_0x1af86c,_0xcfe286['path'],_0xcfe286['stickiness']);}function q(_0x1d0799,_0x14b4a0,_0x32e0f1){const _0x28e6d0='elementStart'==_0x1d0799['type']?_0x32e0f1['createPositionAt'](_0x1d0799['item'],0x0):_0x32e0f1['createPositionAfter'](_0x1d0799['item']);return _0x32e0f1['createPositionFromPath'](_0x14b4a0,_0x28e6d0['path'],_0x28e6d0['stickiness']);}class ns extends _0x4be5f7{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9f59f1,_0xb1c02f){super(_0x9f59f1),this['focusTracker']=new _0x452fb4(),this['keystrokes']=new _0x4535b7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb1c02f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1aed20({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x21a623=_0x2c70ce=>_0x2c70ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x21a623),this['keystrokes']['set']('arrowleft',_0x21a623),this['keystrokes']['set']('arrowup',_0x21a623),this['keystrokes']['set']('arrowdown',_0x21a623);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x229e1f){this['revisionNameInputView']['fieldView']['element']['value']=_0x229e1f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x58e704){const _0x26bff7=new at(this['locale'],_0xbf0be),_0x3ed156=_0x26bff7['fieldView'];_0x3ed156['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x20e6c5=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x58e704&&(_0x20e6c5+='\x20('+R(this['locale'],'optional')+')'),(_0x26bff7['label']=_0x20e6c5,_0x3ed156['on']('input',()=>{this['revisionNameInputValue']=_0x3ed156['element']['value']['trim']();}),_0x26bff7);}}class u extends _0x2ebc56{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x52b2cd=this['editor'],_0xdb6ac9=_0x52b2cd['plugins']['get']('RevisionTracker');_0x52b2cd['ui']['componentFactory']['add']('revisionHistory',_0x5643dc=>{const _0x54b211=_0x30f9aa(_0x5643dc),_0x3dccb0=_0x54b211['panelView']['children'],_0x51ee9e=new te(_0x5643dc),_0x39844e=new _0x5a8f54(_0x5643dc),_0x39bfaf=new _0x5ae3a4(_0x5643dc),_0x4c116d=new _0x5a8f54(_0x5643dc),_0x8e29d5=new _0x5ae3a4(_0x5643dc);return _0x54b211['bind']('isEnabled')['to'](_0xdb6ac9,'isReady',_0xdb6ac9,'isEnabled',_0x52b2cd,'isReadOnly',(_0x4d8a5f,_0x51a1e9,_0x24fd2e)=>_0x4d8a5f&&_0x51a1e9&&!_0x24fd2e),_0x54b211['buttonView']['set']({'icon':_0xaa90df['history'],'label':R(_0x5643dc,'Revision\x20history'),'tooltip':!0x0}),_0x39bfaf['set']({'label':R(_0x5643dc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x39bfaf['bind']('isEnabled')['to'](_0xdb6ac9,'isReady',_0xdb6ac9,'isEnabled',_0x52b2cd,'isReadOnly',(_0x3f1a9c,_0x103e93,_0x2760b0)=>_0x3f1a9c&&_0x103e93&&!_0x2760b0),_0x39bfaf['on']('execute',()=>this['_showDialog']()),_0x8e29d5['set']({'label':R(_0x5643dc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x8e29d5['bind']('isEnabled')['to'](_0xdb6ac9,'isReady',_0x52b2cd,'isReadOnly',(_0x31fe82,_0x3921bb)=>_0x31fe82&&!_0x3921bb),_0x8e29d5['on']('execute',()=>{_0x52b2cd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x54b211['isOpen']=!0x1,_0x52b2cd['editing']['view']['focus']();}),_0x39844e['children']['add'](_0x39bfaf),_0x4c116d['children']['add'](_0x8e29d5),_0x51ee9e['role']='menu',_0x51ee9e['items']['addMany']([_0x39844e,_0x4c116d]),_0x3dccb0['add'](_0x51ee9e),_0x54b211;}),_0x52b2cd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1aabdd=this['editor'],_0x1ad063=_0x1aabdd['locale'],_0x1679b8=new _0x249393(_0x1ad063),_0x362bb4=new _0x59a9bd(_0x1ad063);_0x1679b8['buttonView']['set']({'icon':_0xaa90df['history'],'label':R(_0x1ad063,'Revision\x20history')});const _0x560d7a=new _0x4d54e9(_0x1ad063,_0x1679b8),_0x450ed2=new _0x1548c1(_0x1ad063);_0x450ed2['set']({'label':R(_0x1ad063,'Save\x20current\x20revision')}),_0x450ed2['delegate']('execute')['to'](_0x1679b8),_0x450ed2['on']('execute',()=>{this['_showDialog']();}),_0x560d7a['children']['add'](_0x450ed2),_0x362bb4['items']['add'](_0x560d7a);const _0x33ab7d=new _0x4d54e9(_0x1ad063,_0x1679b8),_0x31a2e4=new _0x1548c1(_0x1ad063);return _0x31a2e4['set']({'label':R(_0x1ad063,'Open\x20revision\x20history')}),_0x31a2e4['delegate']('execute')['to'](_0x1679b8),_0x31a2e4['on']('execute',()=>{_0x1aabdd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x33ab7d['children']['add'](_0x31a2e4),_0x362bb4['items']['add'](_0x33ab7d),_0x1679b8['panelView']['children']['add'](_0x362bb4),_0x1679b8;}['_showDialog'](){const _0x4cc6ac=this['editor'],_0x47688a=_0x4cc6ac['locale'],_0x1ec053=_0x4cc6ac['plugins']['get']('Dialog'),_0x5c135e=_0x4cc6ac['plugins']['get']('RevisionTracker');function _0x26bb9a(_0x1bc317){_0x4cc6ac['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1bc317['revisionName']?_0x1bc317['revisionNameInputView']['errorText']=R(_0x47688a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4cc6ac['plugins']['get'](l)['saveRevision']({'name':_0x1bc317['revisionName']}),_0x1ec053['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26bb9a(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ec053['show']({'id':'revisionSave','title':R(_0x47688a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4cc6ac['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ec053['hide']()},{'label':R(_0x4cc6ac['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2b97e0){_0x2b97e0['bind']('isEnabled')['to'](_0x5c135e,'isReady',_0x5c135e,'isEnabled',_0x4cc6ac,'isReadOnly',(_0x180378,_0x57cb71,_0x1acba0)=>_0x180378&&_0x57cb71&&!_0x1acba0);},'onExecute':()=>_0x26bb9a(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x51e07b=this['editor'],_0x6675b6=_0x51e07b['locale'];this['_saveRevisionFormView']=new ns(_0x6675b6,_0x51e07b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x4be5f7{['changeId'];['_model'];constructor(_0x350ca8,_0x543244){super(_0x350ca8),this['_model']=_0x543244,this['changeId']=_0x543244['id'];const _0x34c128=this['bindTemplate'],_0x13adc7=R(_0x350ca8,_0x543244['data']['isSuggestion']?'Suggested\x20by':'add'==_0x543244['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x543244['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34c128['to']('type',_0x3c16f6=>'ck-revision-change__'+_0x3c16f6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x13adc7}]},{'text':'\x20'+_0x543244['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x66ca88(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x23ad11){super(),this['id']=_0x23ad11['id']||_0xb3cc0b(),this['author']=_0x23ad11['author'],this['type']=_0x23ad11['type'],this['data']=_0x23ad11['data']||{},this['rootName']=_0x23ad11['rootName'],this['set']('createdAt',_0x23ad11['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1eb7f6,_0x6c7cb5){this['newRevisionId']=_0x1eb7f6,this['oldRevisionId']=_0x6c7cb5,this['changes']=new _0x199961();}['_setChanges'](_0x539791){for(const _0x3137e2 of _0x539791)this['changes']['add'](_0x3137e2);}}const Z={'c':_0x26af22,'a':_0x505635,'e':_0x3ff6a6,'r':_0x4abad2,'u':_0x29510a};class d extends _0x2ebc56{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x305d7f,_0xfee5aa,j];}constructor(_0x1f36bf){super(_0x1f36bf),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x135542,_0x499a2c,_0xd459d0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1addd3=>{for(const _0x346e12 of this['editor']['editing']['view']['document']['roots'])_0xd459d0?_0x1addd3['removeClass']('ck-editor__editable__overlay',_0x346e12):_0x1addd3['addClass']('ck-editor__editable__overlay',_0x346e12);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32b9ad=>null!==_0x32b9ad),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7b5a01,_0x3c90a7,_0xbe6c98)=>_0x7b5a01&&_0xbe6c98?_0x3c90a7['changes']['getIndex'](_0xbe6c98):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5dae3f,_0x8fe0e2)=>_0x5dae3f?_0x8fe0e2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xfee5aa);}['init'](){const _0x2b5450=this['editor'],_0x352697=new bt(_0x2b5450,{'direction':'backward'}),_0x2cb34d=new bt(_0x2b5450,{'direction':'forward'});(_0x2b5450['commands']['add']('showPreviousChange',_0x352697),_0x2b5450['commands']['add']('showNextChange',_0x2cb34d),_0x2b5450['commands']['add']('restoreRevision',new yt(_0x2b5450)),this['on']('change:numberOfChanges',()=>{_0x352697['refresh'](),_0x2cb34d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2b5450['enableReadOnlyMode']('revision-viewer'),_0x2b5450['plugins']['has']('WidgetToolbarRepository'))&&_0x2b5450['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x6bf27){await this['loadRevisionData'](_0x6bf27);const _0x42d765={};for(const _0x2c23c0 in _0x6bf27['diffData']){if(_0x6bf27['diffData'][_0x2c23c0]['attachChange']&&!_0x6bf27['diffData'][_0x2c23c0]['attachChange']['isAttached'])continue;const _0x563885=this['_removeRevisionMarkers'](JSON['parse'](_0x6bf27['diffData'][_0x2c23c0]['insertions'])),_0x49c091=this['editor']['editing']['view']['document'],_0x546d89=new _0x471757(_0x49c091,_0x563885['map'](_0xd0045b=>this['_getViewObj'](_0xd0045b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x42d765[_0x2c23c0]=this['editor']['data']['processor']['toData'](_0x546d89),this['editor']['data']['processor']['useFillerType']('default');}return _0x42d765;}async['getRevisionRootsAttributes'](_0x10c1ab){await this['loadRevisionData'](_0x10c1ab);const _0x316b7a={};for(const _0x8a29f4 in _0x10c1ab['diffData'])_0x10c1ab['diffData'][_0x8a29f4]['attachChange']&&!_0x10c1ab['diffData'][_0x8a29f4]['attachChange']['isAttached']||(_0x316b7a[_0x8a29f4]=_0x10c1ab['diffData'][_0x8a29f4]['attributesAfter']||{});return _0x316b7a;}['_removeRevisionMarkers'](_0x317e65){return(_0x317e65=_0x317e65['filter'](_0x2f594c=>!_0x2f594c['name']||'revision-start'!==_0x2f594c['name']&&'revision-end'!==_0x2f594c['name']))['forEach'](_0x1ac753=>{'string'!=typeof _0x1ac753&&(_0x1ac753['children']=this['_removeRevisionMarkers'](_0x1ac753['children']),_0x1ac753['attributes']=_0x1ac753['attributes']['filter'](_0x8b14c=>!_0x8b14c[0x0]['startsWith']('data-revision-')));}),_0x317e65;}async['compare'](_0x5b8b68,_0x3cbbd7,_0x34c06c=!0x1){if(!this['isEnabled'])return;const _0x2f1dcb=this['diff'],_0x43f2ef=this['repository'],_0x491888='string'==typeof _0x5b8b68?_0x43f2ef['getRevision'](_0x5b8b68):_0x5b8b68,_0x3f9f8f='string'==typeof _0x3cbbd7?_0x43f2ef['getRevision'](_0x3cbbd7):_0x3cbbd7,_0x335bd4=_0x491888['id'],_0x3197c3=_0x3f9f8f?_0x3f9f8f['id']:null;if(!_0x34c06c&&this['diff']&&this['diff']['newRevisionId']===_0x335bd4&&this['diff']['oldRevisionId']===_0x3197c3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x335bd4,_0x3197c3);const _0x43b207=this['_getRevisionsRange'](_0x491888,_0x3f9f8f,!0x0)['map'](_0x19a50f=>this['loadRevisionData'](_0x19a50f));return _0x43b207['push'](new Promise(_0x3976da=>{setTimeout(_0x3976da,0x14);})),Promise['all'](_0x43b207)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x20fd36=this['_getDiff'](_0x335bd4,_0x3197c3);for(const _0x13193f of _0x20fd36['changes'])this['_changeIdToChange']['set'](_0x13193f['id'],_0x13193f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x460161=>{for(const _0x44a815 of this['editor']['model']['document']['getRootNames']())_0x460161['detachRoot'](_0x44a815);for(const _0x5088d7 of Object['keys'](_0x20fd36['model'])){const _0x554329=_0x460161['addRoot'](_0x5088d7);for(const _0x4cfe34 of Object['keys'](_0x20fd36['attributes'][_0x5088d7]))_0x460161['setAttribute'](_0x4cfe34,_0x20fd36['attributes'][_0x5088d7][_0x4cfe34],_0x554329);_0x460161['insert'](_0x20fd36['model'][_0x5088d7],_0x554329,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x20fd36['changes'])),this['isReady']=!0x0;})['catch'](_0x4a8919=>{console['error'](_0x4a8919),this['_cleanUp'](),_0x2f1dcb&&(this['diff']=_0x2f1dcb),this['isReady']=!0x0;});}['addRevisionData'](_0x568c25,_0x588b18){const _0x4d103e=this['repository']['createRevision'](_0x568c25);return _0x4d103e['on']('_update',(_0x817d12,_0x235d41,_0x54310f)=>_0x588b18(_0x235d41,_0x54310f,_0x4d103e)),this['repository']['addRevision'](_0x4d103e),_0x4d103e;}['loadRevisionData'](_0x2c71ee){if(!_0x2c71ee||_0x2c71ee['diffData'])return Promise['resolve']();{const _0x51cf1e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51cf1e,'revisionId':_0x2c71ee['id']})['then'](_0x5ab3df=>{_0x2c71ee['_update']({'diffData':_0x5ab3df['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x45616b=>{for(const _0x4384ac of this['editor']['model']['document']['getRootNames']())_0x45616b['detachRoot'](_0x4384ac);});}['_sortAndFilterDiffChanges'](_0x2cfdcb){const _0x1fa09e=[],_0x411343=new Map();for(const _0x372801 of this['editor']['model']['document']['getRootNames']()){const _0x2ddbab=this['editor']['editing']['view']['getDomRoot'](_0x372801);if(!_0x2ddbab)continue;const _0x4bd446=_0x2ddbab['getClientRects']()['item'](0x0);_0x4bd446&&(_0x1fa09e['push'](_0x372801),_0x411343['set'](_0x372801,_0x4bd446));}return _0x1fa09e['sort']((_0x39eff8,_0x4205f8)=>{const _0x398307=_0x411343['get'](_0x39eff8),_0x36fbf8=_0x411343['get'](_0x4205f8);return _0x398307['y']-_0x36fbf8['y']||_0x398307['x']-_0x36fbf8['x'];}),(_0x2cfdcb=_0x2cfdcb['filter'](_0x536a7d=>_0x1fa09e['includes'](_0x536a7d['rootName'])))['sort']((_0x3d668e,_0x22f747)=>_0x1fa09e['indexOf'](_0x3d668e['rootName'])-_0x1fa09e['indexOf'](_0x22f747['rootName'])),_0x2cfdcb;}['_makeTape'](_0x593eb5){const _0x151ed2=Array['from'](_0x593eb5['markers'])['filter'](([_0xc462a6,_0x2aaebc])=>_0xc462a6['startsWith']('revision:')&&!_0x2aaebc['isCollapsed']),_0x32f8fa=Array['from'](this['editor']['model']['createRangeIn'](_0x593eb5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x151ed2['length'])for(const _0x3172ed of _0x32f8fa){const [_0x8c0805,_0x58024b]=_0x151ed2[0x0],[,_0x26c956,_0x1f853a]=_0x8c0805['split'](':');if(_0x58024b['end']['isEqual'](_0x3172ed['nextPosition'])&&_0x151ed2['shift'](),(_0x3172ed['previousPosition']['isEqual'](_0x58024b['start'])||_0x3172ed['previousPosition']['isAfter'](_0x58024b['start']))&&('insertion'==_0x26c956?_0x3172ed['isAdded']={'userId':_0x1f853a}:'deletion'==_0x26c956&&(_0x3172ed['isRemoved']={'userId':_0x1f853a})),0x0==_0x151ed2['length'])break;}return _0x32f8fa;}['_refreshStartEndIndex'](_0x4ab988){const _0x2e0d93=new Map();for(let _0x10ba0f=0x0;_0x10ba0f<_0x4ab988['length'];_0x10ba0f++)'text'===_0x4ab988[_0x10ba0f]['type']?(_0x4ab988[_0x10ba0f]['item']['startIndex']=_0x10ba0f,_0x4ab988[_0x10ba0f]['item']['endIndex']=_0x10ba0f):('elementStart'===_0x4ab988[_0x10ba0f]['type']?_0x4ab988[_0x10ba0f]['item']['startIndex']=_0x10ba0f:'elementEnd'===_0x4ab988[_0x10ba0f]['type']&&(_0x4ab988[_0x10ba0f]['item']['endIndex']=_0x10ba0f),_0x2e0d93['set'](_0x4ab988[_0x10ba0f]['id'],_0x10ba0f));for(const _0x5a9732 of _0x2e0d93['values']())'elementStart'===_0x4ab988[_0x5a9732]['type']?_0x4ab988[_0x5a9732]['item']['endIndex']=_0x2e0d93['get'](_0x4ab988[_0x5a9732]['pairId']):'elementEnd'===_0x4ab988[_0x5a9732]['type']&&(_0x4ab988[_0x5a9732]['item']['startIndex']=_0x2e0d93['get'](_0x4ab988[_0x5a9732]['pairId']));}['_processTape'](_0x2c5b9a){for(let _0x31622d=0x0;_0x31622d<_0x2c5b9a['length'];_0x31622d++){if('elementStart'===_0x2c5b9a[_0x31622d]['type'])_0x2c5b9a[_0x31622d]['item']['startIndex']=_0x31622d;else{if('elementEnd'===_0x2c5b9a[_0x31622d]['type']){_0x2c5b9a[_0x31622d]['item']['endIndex']=_0x31622d;const _0x29d989=_0x2c5b9a[_0x31622d]['item']['startIndex'];_0x2c5b9a[_0x29d989]['pairId']=_0x2c5b9a[_0x31622d]['id'],_0x2c5b9a[_0x31622d]['pairId']=_0x2c5b9a[_0x29d989]['id'];}else _0x2c5b9a[_0x31622d]['item']['startIndex']=_0x31622d,_0x2c5b9a[_0x31622d]['item']['endIndex']=_0x31622d,_0x2c5b9a[_0x31622d]['pairId']=null;}_0x2c5b9a[_0x31622d]['markersStart']||(_0x2c5b9a[_0x31622d]['markersStart']=[],_0x2c5b9a[_0x31622d]['markersEnd']=[]);}}['_markInsertions'](_0x1f6957,_0x45d81d){const _0x3444b9=_0x1f6957['filter'](_0xea50c2=>!_0xea50c2['isAdded']);for(let _0x37c1da=0x0;_0x37c1da<_0x45d81d['length'];_0x37c1da++)_0x45d81d[_0x37c1da]['isAdded']&&(_0x3444b9[_0x37c1da]['isAdded']=_0x45d81d[_0x37c1da]['isAdded']);}['_makeModelFromViewString'](_0xfb3206){const _0x24b7f3=JSON['parse'](_0xfb3206),_0x18b4f1=this['editor']['editing']['view']['document'],_0x4828c5=new _0x471757(_0x18b4f1,_0x24b7f3['map'](_0x787371=>this['_getViewObj'](_0x787371)));return this['editor']['data']['toModel'](_0x4828c5);}['_getViewObj'](_0x18122e){const _0x5c0aad=this['editor']['editing']['view']['document'];if('string'==typeof _0x18122e)return new _0x7c92df(_0x5c0aad,_0x18122e);{const _0x3cf192=_0x18122e['children']['map'](_0x4b3182=>this['_getViewObj'](_0x4b3182));return new(Z[_0x18122e['type']]||_0x3b6ead)(_0x5c0aad,_0x18122e['name'],_0x18122e['attributes'],_0x3cf192);}}['_getDiff'](_0x28967b,_0x2d8e43=null){const _0x3e220f=this['repository']['getRevision'](_0x28967b),_0x4d51f3=_0x2d8e43?this['repository']['getRevision'](_0x2d8e43):null,_0x34f56c=this['_getRevisionsRange'](_0x3e220f,_0x4d51f3),_0x34f3e0=_0x34f56c[_0x34f56c['length']-0x1],_0x549eba=new Map(),_0xb0c0af={'model':{},'attributes':{},'changes':[]},_0x20ac42=new Set(),_0x47700c=new Map();for(let _0x9e3314=_0x34f56c['length']-0x1;_0x9e3314>=0x0;_0x9e3314--){const _0x23df2e=_0x34f56c[_0x9e3314];for(const _0x408b28 of Object['keys'](_0x23df2e['diffData']))if(_0x23df2e['diffData'][_0x408b28]['attachChange']){const _0x507eb2=_0x23df2e['diffData'][_0x408b28]['attachChange'];_0x507eb2['isAttached']?(_0x20ac42['add'](_0x408b28),_0x47700c['has'](_0x408b28)&&_0x47700c['get'](_0x408b28)['userId']==_0x507eb2['userId']?_0x47700c['delete'](_0x408b28):_0x47700c['set'](_0x408b28,_0x507eb2)):_0x47700c['has'](_0x408b28)?(_0x20ac42['delete'](_0x408b28),_0x47700c['delete'](_0x408b28)):(_0x20ac42['add'](_0x408b28),_0x47700c['set'](_0x408b28,_0x507eb2));}else _0x20ac42['add'](_0x408b28);}for(const _0x176af3 of _0x20ac42){const _0x4f0d55=_0x47700c['has'](_0x176af3)&&!_0x47700c['get'](_0x176af3)['isAttached'];let _0x34d8d2=_0x4f0d55?_0x34f56c['length']-0x1:0x0;const _0x3b9a3b=_0x4f0d55?-0x1:0x1;for(;_0x34f56c[_0x34d8d2];){const _0x170532=_0x34f56c[_0x34d8d2];if(_0x170532['diffData'][_0x176af3]){const _0x51244f=_0x4f0d55?_0x170532['diffData'][_0x176af3]['attributesBefore']:_0x170532['diffData'][_0x176af3]['attributesAfter'];_0xb0c0af['attributes'][_0x176af3]=_0x51244f?_0x3c49e8(_0x51244f):{};break;}_0x34d8d2+=_0x3b9a3b;}}for(const _0x1a38e1 of _0x34f56c){_0x1a38e1['model']={};for(const _0x5bb3bd of _0x1a38e1['authors'])_0x549eba['set'](_0x5bb3bd['id'],_0x5bb3bd);for(const _0x539d36 of _0x20ac42){const _0x499bfb=_0x1a38e1['diffData'][_0x539d36]?_0x1a38e1['diffData'][_0x539d36]['insertions']:'[]',_0x189fc4=_0x1a38e1['diffData'][_0x539d36]?_0x1a38e1['diffData'][_0x539d36]['deletions']:'[]';_0x1a38e1['model'][_0x539d36]={'insertions':this['_makeModelFromViewString'](_0x499bfb),'deletions':this['_makeModelFromViewString'](_0x189fc4)};}}for(const _0x4354cd of _0x20ac42){let _0x4431ae=null,_0x27e9de=0x0;const _0x4b3cc2=new Map(Array['from'](_0x3e220f['model'][_0x4354cd]['insertions']['markers'])['filter'](([_0x4dd37b])=>!_0x4dd37b['startsWith']('revision:')));let _0x40da63=0x0;for(const _0x8fd540 of _0x34f56c){const _0x410788=this['_makeTape'](_0x8fd540['model'][_0x4354cd]['insertions']);_0x8fd540==_0x3e220f?(_0x4431ae=_0x410788,_0x27e9de=_0x4431ae['length'],_0x4431ae['forEach'](_0x3d6a8e=>{_0x3d6a8e['id']=_0x40da63++;}),this['_processTape'](_0x4431ae)):this['_markInsertions'](_0x4431ae,_0x410788);const _0x219008=_0x4431ae['filter'](_0x487677=>!_0x487677['isAdded'])['map'](_0x2646eb=>_0x2646eb['id']);let _0x54dcc2=0x0;const _0x5385c4=this['_makeTape'](_0x8fd540['model'][_0x4354cd]['deletions']);_0x5385c4['forEach'](_0x5e3a04=>{_0x5e3a04['isRemoved']?_0x5e3a04['id']=_0x27e9de++:_0x5e3a04['id']=_0x219008[_0x54dcc2++];}),this['_processTape'](_0x5385c4),this['_setDistance'](_0x4431ae,'isAdded'),this['_setDistance'](_0x5385c4,'isRemoved'),_0x8fd540==_0x3e220f&&this['_markMarkers'](_0x4431ae,_0x4b3cc2),_0x4431ae=this['_joinTapes'](_0x4431ae,_0x5385c4),this['_refreshStartEndIndex'](_0x4431ae),this['_setDistance'](_0x4431ae,'isRemoved');}_0x4431ae=_0x4431ae['filter'](_0x218531=>!(_0x218531['isAdded']&&_0x218531['isRemoved']));const _0x4d4943=new Map(_0x34f3e0['model'][_0x4354cd]['deletions']['markers']),_0x22ea45=new Set(_0x4b3cc2['keys']());for(const _0x387655 of _0x4d4943['keys']())_0x22ea45['delete'](_0x387655);this['_markSuggestions'](_0x4431ae,_0x22ea45),this['_fixObsoleteTags'](_0x4431ae),_0x4431ae=this['_removeMissingPairs'](_0x4431ae),_0x4431ae=this['_markMismatchedRemovedTags'](_0x4431ae),_0x4431ae=this['_removeUnsupportedChanges'](_0x4431ae);const {root:_0x43c865,changes:_0x54d7e7}=this['_makeModelFromTape'](_0x4431ae,_0x549eba,_0x4354cd);_0xb0c0af['model'][_0x4354cd]=_0x43c865;const _0xa92eaf=_0x47700c['get'](_0x4354cd);if(_0xa92eaf){const _0x5d51f2=_0x549eba['get'](_0xa92eaf['userId']),_0x4211b5=new r({'author':_0x5d51f2,'type':_0xa92eaf['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4354cd});_0x54d7e7['unshift'](_0x4211b5),_0xb0c0af['attributes'][_0x4354cd]['revisionHistoryAttachChange']=_0x4211b5['id'];}_0xb0c0af['changes']=_0xb0c0af['changes']['concat'](_0x54d7e7);}return _0xb0c0af;}['_markMarkers'](_0x5d3d57,_0x44d165){for(let _0x4a24bb=0x0;_0x4a24bb<_0x5d3d57['length'];_0x4a24bb++)for(const [_0x24ae9e,_0x47caf9]of _0x44d165)_0x47caf9['start']['isEqual'](_0x5d3d57[_0x4a24bb]['previousPosition'])&&_0x5d3d57[_0x4a24bb]['markersStart']['push'](_0x24ae9e),_0x47caf9['end']['isEqual'](_0x5d3d57[_0x4a24bb]['nextPosition'])&&_0x5d3d57[_0x4a24bb]['markersEnd']['push'](_0x24ae9e);}['_joinTapes'](_0x593074,_0x5f2031){let _0x5a85f1=[],_0x4ab3f0=0x0,_0x349689=0x0;for(;_0x4ab3f0<_0x593074['length']||_0x349689<_0x5f2031['length'];){const _0x55cc36=_0x593074[_0x4ab3f0]||{},_0x40ae1c=_0x5f2031[_0x349689]||{};if(_0x55cc36['id']==_0x40ae1c['id'])_0x4ab3f0++,_0x349689++,_0x5a85f1['push'](_0x55cc36);else{if(_0x40ae1c['isRemoved']&&_0x55cc36['isAdded']){const {commonTape:_0x5f95af,iEnd:_0x13d8ee,jEnd:_0x20f4f2}=this['_threeWayMerge'](_0x593074,_0x4ab3f0,_0x5f2031,_0x349689);_0x5a85f1=_0x5a85f1['concat'](_0x5f95af),_0x4ab3f0=_0x13d8ee,_0x349689=_0x20f4f2;}else _0x40ae1c['isRemoved']?(_0x349689++,_0x5a85f1['push'](_0x40ae1c)):(_0x4ab3f0++,_0x5a85f1['push'](_0x55cc36));}}return _0x5a85f1;}['_markSuggestions'](_0x2d2489,_0x55ab8f){const _0x386168=[];for(let _0x510ca4=0x0;_0x510ca4<_0x2d2489['length'];_0x510ca4++){for(let _0x36708b=0x0;_0x36708b<_0x2d2489[_0x510ca4]['markersStart']['length'];_0x36708b++){const _0x28813c=_0x2d2489[_0x510ca4]['markersStart'][_0x36708b];if(!_0x55ab8f['has'](_0x28813c))continue;const {group:_0x1b8e3d,type:_0x5b99fd,authorId:_0x284884}=_0x2be2f0(_0x28813c);'revision-suggestion'!=_0x1b8e3d||'insertion'!=_0x5b99fd&&'deletion'!=_0x5b99fd||(_0x386168['unshift']({'type':_0x5b99fd,'name':_0x28813c,'userId':_0x284884}),_0x2d2489[_0x510ca4]['markersStart']['splice'](_0x36708b,0x1),_0x36708b--);}_0x5dcff4(_0x2d2489[_0x510ca4]);for(let _0x10ad90=0x0;_0x10ad90<_0x2d2489[_0x510ca4]['markersEnd']['length'];_0x10ad90++){const _0x475fb6=_0x2d2489[_0x510ca4]['markersEnd'][_0x10ad90];if(!_0x55ab8f['has'](_0x475fb6))continue;const {group:_0x3a3189,type:_0x50aa3b}=_0x2be2f0(_0x475fb6);if('revision-suggestion'!=_0x3a3189||'insertion'!=_0x50aa3b&&'deletion'!=_0x50aa3b)continue;_0x2d2489[_0x510ca4]['markersEnd']['splice'](_0x10ad90,0x1),_0x10ad90--;const _0x222185=_0x386168['findIndex'](_0x40b504=>_0x40b504['name']==_0x475fb6);_0x222185>-0x1&&_0x386168['splice'](_0x222185,0x1);}}function _0x2be2f0(_0x5f5b14){const _0x42cbcb=_0x5f5b14['split'](':');return{'group':_0x42cbcb[0x0],'type':_0x42cbcb[0x1],'subType':_0x42cbcb['length']>=0x5?_0x42cbcb[0x2]:null,'id':_0x42cbcb['length']<0x5?_0x42cbcb[0x2]:_0x42cbcb[0x3],'authorId':_0x42cbcb['length']<0x5?_0x42cbcb[0x3]:_0x42cbcb[0x4],'markerCount':0x6==_0x42cbcb['length']?_0x42cbcb[0x5]:null};}function _0x5dcff4(_0x2b16be){for(let _0x33c691=0x0;_0x33c691<_0x386168['length'];_0x33c691++){if(_0x2b16be['isAdded']&&'insertion'==_0x386168[_0x33c691]['type'])return _0x2b16be['isAddSuggestion']=_0x386168[_0x33c691],void delete _0x2b16be['isAdded'];if(!_0x2b16be['isAdded']&&!_0x2b16be['isRemoved']&&'deletion'==_0x386168[_0x33c691]['type'])return void(_0x2b16be['isRemoveSuggestion']=_0x386168[_0x33c691]);}}}['_setDistance'](_0x348e82,_0x305d78){let _0x31d2fd=0x0,_0xa09f30=!0x1;const _0x554073=new Map();for(const _0x432de9 of _0x348e82)_0x432de9[_0x305d78]?_0xa09f30&&(_0x31d2fd++,_0xa09f30=!0x1):(_0x31d2fd++,_0xa09f30=!0x0),_0x554073['set'](_0x432de9['id'],_0x31d2fd);for(let _0x4ca7cf=0x0;_0x4ca7cf<_0x348e82['length'];_0x4ca7cf++){if('isRemoved'==_0x305d78&&_0x348e82[_0x4ca7cf]['isAdded']||'isAdded'==_0x305d78&&_0x348e82[_0x4ca7cf]['isRemoved'])continue;if('text'==_0x348e82[_0x4ca7cf]['type']){_0x348e82[_0x4ca7cf]['distance']=0x0;continue;}const _0x358014=_0x554073['get'](_0x348e82[_0x4ca7cf]['pairId']),_0x5d06b8=_0x554073['get'](_0x348e82[_0x4ca7cf]['id']);_0x348e82[_0x4ca7cf]['distance']=_0x358014-_0x5d06b8;}}['_getRevisionsRange'](_0x47b35c,_0x563905,_0x5a57ab=!0x1){const _0x4f2701=[];let _0x1406dc=this['repository']['getIndex'](_0x47b35c),_0x8bc7bc=this['repository']['getIndex'](_0x563905);for(-0x1==_0x8bc7bc&&(_0x8bc7bc=this['repository']['_revisions']['length'],_0x5a57ab=!0x1);_0x1406dc<_0x8bc7bc;)_0x4f2701['push'](this['repository']['getRevision'](_0x1406dc)),_0x1406dc++;return _0x5a57ab&&_0x4f2701['push'](this['repository']['getRevision'](_0x1406dc)),_0x4f2701;}['_threeWayMerge'](_0xe92035,_0x3473e8,_0x26d933,_0x4e4f63){const _0x476aaf=this['editor']['model']['schema'];let _0x15b568=_0x3473e8;for(;_0xe92035[_0x15b568]&&_0xe92035[_0x15b568]['isAdded'];)_0x15b568++;let _0x4747bd=_0x4e4f63;for(;_0x26d933[_0x4747bd]&&_0x26d933[_0x4747bd]['isRemoved'];)_0x4747bd++;_0x56b982(_0xe92035,_0x3473e8,_0x15b568),_0x56b982(_0x26d933,_0x4e4f63,_0x4747bd);const _0x4acf16=_0x26d933['slice'](_0x4e4f63,_0x4747bd)['concat'](_0xe92035['slice'](_0x3473e8,_0x15b568));return _0x4acf16['sort']((_0x51a83b,_0x59fccf)=>_0x51a83b['side']!=_0x59fccf['side']?_0x51a83b['side']-_0x59fccf['side']:_0x51a83b['level']!=_0x59fccf['level']?_0x51a83b['level']-_0x59fccf['level']:_0x51a83b['distance']!=_0x59fccf['distance']?_0x59fccf['distance']-_0x51a83b['distance']:!!_0x51a83b['isAdded']!=!!_0x59fccf['isAdded']?-0x1==_0x51a83b['side']||0x0==_0x51a83b['side']?_0x51a83b['isAdded']?-0x1:0x1:_0x51a83b['isAdded']?0x1:-0x1:_0x51a83b['index']-_0x59fccf['index']),{'commonTape':_0x4acf16,'iEnd':_0x15b568,'jEnd':_0x4747bd};function _0x56b982(_0x44c585,_0x1dce12,_0x4acf3e){let _0x4cfb49=-0x1,_0x504653=Number['POSITIVE_INFINITY'],_0x488310=!0x0;for(let _0x546ea4=_0x1dce12;_0x546ea4<_0x4acf3e;_0x546ea4++)if(_0x476aaf['isInline'](_0x44c585[_0x546ea4]['item'])||(_0x488310=!0x1),_0x44c585[_0x546ea4]['item']['startIndex']<_0x1dce12&&(_0x4cfb49=_0x546ea4),_0x44c585[_0x546ea4]['item']['endIndex']>=_0x4acf3e){_0x504653=_0x546ea4;break;}_0x488310&&(_0x4cfb49=_0x4acf3e-0x1);for(let _0x461627=_0x1dce12;_0x461627<_0x4acf3e;_0x461627++)_0x44c585[_0x461627]['side']=_0x461627<=_0x4cfb49?-0x1:_0x461627<_0x504653?0x0:0x1,_0x44c585[_0x461627]['index']=_0x461627;let _0x3e449c=0x0;for(let _0x11258e=_0x1dce12;_0x11258e<=_0x4cfb49;_0x11258e++)0x0==_0x44c585[_0x11258e]['distance']?_0x44c585[_0x11258e]['level']=_0x3e449c:(_0x3e449c++,_0x44c585[_0x11258e]['level']=_0x3e449c,_0x3e449c++);for(let _0x29c844=_0x1dce12;_0x29c844<_0x4acf3e;_0x29c844++)0x0==_0x44c585[_0x29c844]['side']&&(_0x44c585[_0x29c844]['level']=_0x3e449c);_0x3e449c=0x0;for(let _0x54e85a=_0x4acf3e-0x1;_0x54e85a>=_0x504653;_0x54e85a--)0x0==_0x44c585[_0x54e85a]['distance']?_0x44c585[_0x54e85a]['level']=_0x3e449c:(_0x3e449c--,_0x44c585[_0x54e85a]['level']=_0x3e449c,_0x3e449c--);}}['_fixObsoleteTags'](_0x5cbe1c){const _0x13832f=new Map(),_0x26a2fd=this['editor']['model']['schema'];for(let _0x1b9d44=0x1;_0x1b9d44<_0x5cbe1c['length'];_0x1b9d44++){let _0x367053,_0x42f9af,_0x5e6e46;const _0x31b3b9=_0x5cbe1c[_0x1b9d44],_0x205283=_0x5cbe1c[_0x1b9d44-0x1];if('text'==_0x31b3b9['type'])continue;if(_0x31b3b9['type']!=_0x205283['type'])continue;if(!_0x26a2fd['isBlock'](_0x205283['item'])||_0x26a2fd['isLimit'](_0x205283['item']))continue;if(!_0x26a2fd['isBlock'](_0x31b3b9['item'])||_0x26a2fd['isLimit'](_0x31b3b9['item']))continue;if((_0x5cbe1c[_0x1b9d44]['isAdded']||_0x5cbe1c[_0x1b9d44]['isAddSuggestion'])&&_0x5cbe1c[_0x1b9d44-0x1]['isRemoved'])_0x367053=_0x5cbe1c[_0x1b9d44],_0x42f9af=_0x5cbe1c[_0x1b9d44-0x1],_0x5e6e46=_0x1b9d44-0x1;else{if(!_0x5cbe1c[_0x1b9d44]['isRemoved']||!_0x5cbe1c[_0x1b9d44-0x1]['isAdded']&&!_0x5cbe1c[_0x1b9d44-0x1]['isAddSuggestion'])continue;_0x367053=_0x5cbe1c[_0x1b9d44-0x1],_0x42f9af=_0x5cbe1c[_0x1b9d44],_0x5e6e46=_0x1b9d44;}const _0x57ac48=_0x367053['level']==_0x42f9af['level'],_0x80710b=Math['abs'](_0x367053['level'])<Math['abs'](_0x42f9af['level'])&&0x0==_0x42f9af['distance'];(_0x57ac48||_0x80710b)&&(_0x13832f['set'](_0x42f9af['id'],_0x367053['id']),_0x5cbe1c['splice'](_0x5e6e46,0x1),_0x1b9d44--,_0x367053['isAdded']=!0x1);}for(let _0x4d7243=0x0;_0x4d7243<_0x5cbe1c['length'];_0x4d7243++)_0x13832f['has'](_0x5cbe1c[_0x4d7243]['pairId'])&&(_0x5cbe1c[_0x4d7243]['pairId']=_0x13832f['get'](_0x5cbe1c[_0x4d7243]['pairId']));}['_removeMissingPairs'](_0x5c5185){const _0x3b31d7=new Set(_0x5c5185['map'](_0x43ba8f=>_0x43ba8f['id']));for(let _0x552011=0x0;_0x552011<_0x5c5185['length'];_0x552011++)_0x3b31d7['has'](_0x5c5185[_0x552011]['pairId'])||0x0==_0x5c5185[_0x552011]['distance']||(_0x5c5185[_0x552011]['isIncorrect']=!0x0);return _0x5c5185['filter'](_0x1a660a=>!_0x1a660a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x335e31){const _0x5eccf1=new Set();for(let _0x234e46=0x0;_0x234e46<_0x335e31['length'];_0x234e46++){if(_0x5eccf1['has'](_0x335e31[_0x234e46]['id'])&&_0x335e31[_0x234e46]['isRemoved']&&(_0x335e31[_0x234e46]['isIncorrect']=!0x0),_0x335e31[_0x234e46]['isIncorrect'])continue;if(0x0==_0x335e31[_0x234e46]['distance'])continue;if('elementStart'!=_0x335e31[_0x234e46]['type'])continue;if(null==_0x335e31[_0x234e46]['pairId'])continue;let _0x38961c=_0x234e46+0x1,_0x166c45=0x0;for(;_0x335e31[_0x38961c]['id']!=_0x335e31[_0x234e46]['pairId'];)'elementStart'==_0x335e31[_0x38961c]['type']?_0x166c45++:'elementEnd'==_0x335e31[_0x38961c]['type']&&_0x166c45--,_0x38961c++;if(0x0!=_0x166c45){if(_0x335e31[_0x234e46]['isRemoved'])_0x335e31[_0x234e46]['isIncorrect']=!0x0;else{for(;_0x38961c!=_0x234e46;)_0x335e31[_0x38961c]['isRemoved']&&0x0!=_0x335e31[_0x38961c]['distance']&&(_0x335e31[_0x38961c]['isIncorrect']=!0x0,_0x5eccf1['add'](_0x335e31[_0x38961c]['pairId'])),_0x38961c--;}}}return _0x335e31['filter'](_0x44bb85=>!_0x44bb85['isIncorrect']);}['_removeUnsupportedChanges'](_0x16c6b9){const _0x2e47c6=this['editor']['model']['schema'];for(let _0x5aea93=0x0;_0x5aea93<_0x16c6b9['length'];_0x5aea93++){if(!(_0x16c6b9[_0x5aea93]['isAdded']||_0x16c6b9[_0x5aea93]['isAddSuggestion']||_0x16c6b9[_0x5aea93]['isRemoved']||_0x16c6b9[_0x5aea93]['isRemoveSuggestion']))continue;if(0x0==_0x16c6b9[_0x5aea93]['distance'])continue;const _0x36d0b7=_0x16c6b9[_0x5aea93]['item'];_0x2e47c6['isBlock'](_0x36d0b7)||_0x2e47c6['isLimit'](_0x36d0b7)||(_0x16c6b9[_0x5aea93]['isAdded']&&delete _0x16c6b9[_0x5aea93]['isAdded'],_0x16c6b9[_0x5aea93]['isAddSuggestion']&&delete _0x16c6b9[_0x5aea93]['isAddSuggestion'],_0x16c6b9[_0x5aea93]['isRemoveSuggestion']&&delete _0x16c6b9[_0x5aea93]['isRemoveSuggestion'],_0x16c6b9[_0x5aea93]['isRemoved']&&(_0x16c6b9[_0x5aea93]['isIncorrect']=!0x0));}return _0x16c6b9['filter'](_0xdeb262=>!_0xdeb262['isIncorrect']);}['_makeModelFromTape'](_0x2e704a,_0x3bb6d7,_0x53c3a6){const _0x2a41c5=new wt(),_0x390f19=[],_0x495a45=new Map(),_0x19f0dd=this['editor']['model'],_0x5e4136=_0x19f0dd['schema'],_0x40d167=[_0x2a41c5],_0xa95118={},_0x4d592b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x38ddf7=null;const _0x2c839a=[0x0];for(let _0x585350=0x0;_0x585350<_0x2e704a['length'];_0x585350++)if('elementStart'===_0x2e704a[_0x585350]['type']){_0x2e704a[_0x585350]['previousPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a);const _0x3fb901=new ft(_0x2e704a[_0x585350]['item']['name'],_0x2e704a[_0x585350]['item']['getAttributes']());_0x40d167[0x0]['_appendChild'](_0x3fb901),_0x2c839a['push'](0x0),_0x40d167['unshift'](_0x3fb901),_0x2e704a[_0x585350]['nextPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a);}else'elementEnd'===_0x2e704a[_0x585350]['type']?(_0x40d167['shift'](),_0x2e704a[_0x585350]['previousPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a),_0x2c839a['pop'](),_0x2c839a[_0x2c839a['length']-0x1]++,_0x2e704a[_0x585350]['nextPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a)):(_0x2e704a[_0x585350]['previousPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a),_0x38ddf7?_0x38ddf7['_data']+=_0x2e704a[_0x585350]['item']['data']:_0x38ddf7=new _t(_0x2e704a[_0x585350]['item']['data'],_0x2e704a[_0x585350]['item']['getAttributes']()),_0x2e704a[_0x585350+0x1]&&'text'===_0x2e704a[_0x585350+0x1]['type']&&_0x4852e3(_0x38ddf7,_0x2e704a[_0x585350+0x1]['item'])||(_0x40d167[0x0]['_appendChild'](_0x38ddf7),_0x38ddf7=null),_0x2c839a[_0x2c839a['length']-0x1]+=_0x2e704a[_0x585350]['item']['offsetSize'],_0x2e704a[_0x585350]['nextPosition']=_0x19f0dd['createPositionFromPath'](_0x2a41c5,_0x2c839a));for(let _0x1efc74=0x0;_0x1efc74<_0x2e704a['length'];_0x1efc74++){const _0x27e12a=_0x2e704a[_0x1efc74]['previousPosition'],_0x289ffe=_0x2e704a[_0x1efc74]['nextPosition'];for(const _0x439a1c of _0x2e704a[_0x1efc74]['markersStart'])_0x495a45['set'](_0x439a1c,{'start':_0x27e12a,'end':null});_0x119bad('isRemoveSuggestion',_0x1efc74,_0x27e12a,_0x289ffe),_0x119bad('isAddSuggestion',_0x1efc74,_0x27e12a,_0x289ffe),_0x119bad('isRemoved',_0x1efc74,_0x27e12a,_0x289ffe),_0x119bad('isAdded',_0x1efc74,_0x27e12a,_0x289ffe);for(const _0xd46b65 of _0x2e704a[_0x1efc74]['markersEnd']){_0x495a45['get'](_0xd46b65)['end']=_0x289ffe;}}for(const [_0x5a5118,_0x25a40f]of _0x495a45){const _0x3f5553=this['editor']['model']['createRange'](_0x25a40f['start'],_0x25a40f['end']);_0x2a41c5['markers']['set'](_0x5a5118,_0x3f5553);}return _0x390f19['sort']((_0x5669df,_0x4833a2)=>{const _0x211059=_0x2a41c5['markers']['get']('revision:'+_0x5669df['id']),_0x381e6f=_0x2a41c5['markers']['get']('revision:'+_0x4833a2['id']);return _0x211059['start']['isBefore'](_0x381e6f['start'])?-0x1:_0x211059['start']['isAfter'](_0x381e6f['start'])?0x1:_0x211059['end']['isBefore'](_0x381e6f['end'])?-0x1:_0x211059['end']['isAfter'](_0x381e6f['end'])?0x1:'add'===_0x5669df['type']?-0x1:0x1;}),{'root':_0x2a41c5,'changes':_0x390f19};function _0x119bad(_0xdf0d11,_0x10215d,_0x504a7a,_0x46cf5f){const _0x5622b1=!!_0x2e704a[_0x10215d][_0xdf0d11],_0x3648bc=_0x5622b1?_0x2e704a[_0x10215d][_0xdf0d11]['userId']:null,_0x48cfd=_0x10215d===_0x2e704a['length']-0x1,_0x19637d=_0x4d592b[_0xdf0d11][0x0],_0x514fbe=_0x5e4136['isObject'](_0x2e704a[_0x10215d]['item']);!_0xa95118[_0xdf0d11]&&_0x5622b1?_0xa95118[_0xdf0d11]={'start':_0x504a7a,'tapeItem':_0x2e704a[_0x10215d],'userId':_0x3648bc,'type':_0xdf0d11}:_0xa95118[_0xdf0d11]&&!_0x5622b1?(_0xa95118[_0xdf0d11]['end']=_0x504a7a,_0x52387f(_0xa95118[_0xdf0d11]),_0xa95118[_0xdf0d11]=null):_0xa95118[_0xdf0d11]&&_0x5622b1&&_0xa95118[_0xdf0d11]['userId']!==_0x3648bc&&(_0xa95118[_0xdf0d11]['end']=_0x504a7a,_0x19637d&&_0x19637d['userId']===_0xa95118[_0xdf0d11]['userId']||_0x52387f(_0xa95118[_0xdf0d11]),_0xa95118[_0xdf0d11]={'start':_0x504a7a,'tapeItem':_0x2e704a[_0x10215d],'userId':_0x3648bc,'type':_0xdf0d11}),_0xa95118[_0xdf0d11]&&_0x514fbe&&('elementStart'!==_0x2e704a[_0x10215d]['type']||_0x19637d&&_0x19637d['userId']===_0x3648bc||_0x4d592b[_0xdf0d11]['unshift']({'userId':_0x3648bc,'object':_0x2e704a[_0x10215d]['item'],'change':_0xa95118[_0xdf0d11]}),'elementEnd'===_0x2e704a[_0x10215d]['type']&&_0x19637d&&_0x19637d['object']===_0x2e704a[_0x10215d]['item']&&(_0x4d592b[_0xdf0d11]['shift'](),_0xa95118[_0xdf0d11]=_0x19637d['change'])),_0xa95118[_0xdf0d11]&&_0x48cfd&&(_0xa95118[_0xdf0d11]['end']=_0x46cf5f,_0x52387f(_0xa95118[_0xdf0d11]),_0xa95118[_0xdf0d11]=null);}function _0x52387f({start:_0x1cd0bc,end:_0x47e381,tapeItem:_0x5dbfec,userId:_0x17f955,type:_0x454e56}){const _0x1257a8=_0x5dbfec['item'],_0x50468b=_0x19f0dd['schema']['isBlock'](_0x1257a8)&&!_0x19f0dd['schema']['isLimit'](_0x1257a8),_0x41c607=_0x1cd0bc['nodeAfter']==_0x47e381['parent']&&_0x47e381['isAtStart'];if(_0x50468b&&_0x41c607)return;const _0x2e15ae=_0x19f0dd['createRange'](_0x1cd0bc,_0x47e381),_0x2747f4=_0x3bb6d7['get'](_0x17f955),_0x56fb42=new r({'author':_0x2747f4,'type':'isAdded'==_0x454e56||'isAddSuggestion'==_0x454e56?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x454e56||'isRemoveSuggestion'==_0x454e56},'createdAt':new Date(),'rootName':_0x53c3a6});_0x390f19['push'](_0x56fb42),_0x2a41c5['markers']['set']('revision:'+_0x56fb42['id'],_0x2e15ae);}function _0x4852e3(_0x12603e,_0x5dc795){const _0x3c1c0b=_0x12603e['getAttributes'](),_0x2f47ff=_0x5dc795['getAttributes']();for(const _0x39c65e of _0x3c1c0b){if(_0x39c65e[0x1]!==_0x5dc795['getAttribute'](_0x39c65e[0x0]))return!0x1;_0x2f47ff['next']();}return _0x2f47ff['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5b027b=>{const _0x2b4fe7=_0x5b027b['markerName']['split'](':')[0x1],_0x23d58f=this['_getChangeFromId'](_0x2b4fe7);if(!_0x23d58f)return null;const _0x1c0f20='add'==_0x23d58f['type']?'insertion':'deletion',_0x4076a6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1c0f20];return _0x23d58f['data']['isSuggestion']&&_0x4076a6['push']('ck-suggestion-marker-'+_0x1c0f20+'-new'),this['activeChange']==_0x23d58f&&_0x4076a6['push']('ck-suggestion-marker--active'),{'classes':_0x4076a6,'attributes':{'data-change-id':_0x2b4fe7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4a6035=>{_0x4a6035['on']('element:pre',(_0xac7a83,_0x595e50,_0x29d2fe)=>{const _0x222cf4=_0x595e50['viewItem']['getChild'](0x0);if(!_0x222cf4||!_0x222cf4['is']('element','code'))return;if(!_0x29d2fe['consumable']['consume'](_0x222cf4,{'attributes':['vid_start','vid_end']}))return;const _0x41f690=_0x595e50['modelRange']['start']['nodeAfter'];_0x29d2fe['writer']['setAttribute']('vid_start',_0x222cf4['getAttribute']('vid_start'),_0x41f690),_0x29d2fe['writer']['setAttribute']('vid_end',_0x222cf4['getAttribute']('vid_end'),_0x41f690);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5c3b72=>{_0x5c3b72['on']('element',(_0x5a400e,_0x1aa5a7,_0x3a153e)=>{if(!_0x3a153e['consumable']['consume'](_0x1aa5a7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1aa5a7['modelRange']['isCollapsed'])return;const _0x50b904=_0x1aa5a7['modelRange']['start']['nodeAfter'];_0x50b904['hasAttribute']('vid_start')||_0x50b904['hasAttribute']('vid')||(_0x3a153e['writer']['setAttribute']('vid_start',_0x1aa5a7['viewItem']['getAttribute']('vid_start'),_0x50b904),_0x3a153e['writer']['setAttribute']('vid_end',_0x1aa5a7['viewItem']['getAttribute']('vid_end'),_0x50b904));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e29e5=>_0x5e29e5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x230bfc,[,_0x5175ee])=>{['vid_start','vid_end','vid']['includes'](_0x5175ee)&&(_0x230bfc['return']=!0x0,_0x230bfc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4a5233=>{_0x4a5233['on']('attribute:vid',(_0x2a94ef,_0x473f8f,_0x426a64)=>{if('\x20'!=_0x473f8f['item']['data']||_0x473f8f['item']['parent']['maxOffset']>0x1)return;if(!_0x426a64['consumable']['consume'](_0x473f8f['item'],_0x2a94ef['name']))return;const _0x421d20=_0x426a64['writer'],_0x1cc43a=_0x426a64['mapper']['toViewRange'](_0x473f8f['range']);_0x421d20['wrap'](_0x1cc43a,_0x421d20['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5d9608){const _0x44d3ee=_0x5d9608['plugins']['get']('RevisionViewer');return(_0x578697,_0x22f99a,_0x4f1c31)=>{const _0x6d1d48=_0x22f99a['markerName']['split'](':')[0x1],_0x40e217=_0x44d3ee['_getChangeFromId'](_0x6d1d48);if(!_0x40e217)return null;const _0x1108bb='add'==_0x40e217['type']?'split':'merge';if(!_0x4f1c31['consumable']['test'](_0x22f99a['markerRange'],_0x578697['name']))return;const _0x1aa0b4=_0x22f99a['markerRange']['getWalker'](),_0x313b0f=_0x22f99a['markerRange']['start'],_0x4cc3f0=_0x5d9608['model']['schema'];let _0x164160=null,_0x4040c0=null,_0x4a1b9e=!0x1,_0x38a1f7=!0x1;for(const _0x35584f of _0x1aa0b4){const _0xfdc684=_0x35584f['item'];_0x4a1b9e=_0x4a1b9e||_0x4cc3f0['isContent'](_0xfdc684);const _0xdad1ab=_0x4f1c31['mapper']['toViewElement'](_0xfdc684);if(_0xdad1ab&&_0xdad1ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35584f['type']&&(_0x4cc3f0['isBlock'](_0xfdc684)&&!_0x4cc3f0['isLimit'](_0xfdc684)&&(_0xfdc684['nextSibling']||_0x313b0f['isAtEnd']?_0x164160&&_0x164160['parent']==_0xfdc684||(_0x164160=_0xfdc684,_0x24acc8(_0x35584f['previousPosition']),_0x38a1f7=!0x0):_0x4040c0=_0x4040c0||_0x35584f['previousPosition']));}function _0x24acc8(_0x2b49fe){const _0x93e53c=_0x4f1c31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1108bb}),_0x36ccd0=_0x4f1c31['mapper']['toViewPosition'](_0x2b49fe);_0x40e217['data']['isSuggestion']&&_0x4f1c31['writer']['addClass']('ck-suggestion-marker-'+_0x1108bb+'-new',_0x93e53c),_0x44d3ee['activeChange']==_0x40e217&&_0x4f1c31['writer']['addClass']('ck-suggestion-marker--active',_0x93e53c),_0x4f1c31['writer']['insert'](_0x36ccd0,_0x93e53c),_0x4f1c31['mapper']['bindElementToMarker'](_0x93e53c,_0x22f99a['markerName']);}_0x4a1b9e||_0x38a1f7||!_0x4040c0||_0x24acc8(_0x4040c0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x50273c,_0x33744a,_0x2af188)=>{const _0x3d9fc1=_0x2af188['mapper']['markerNameToElements'](_0x33744a['markerName']);if(_0x3d9fc1){for(const _0x22e0cd of _0x3d9fc1)(_0x22e0cd['hasClass']('ck-suggestion-marker-split')||_0x22e0cd['hasClass']('ck-suggestion-marker-merge'))&&(_0x2af188['mapper']['unbindElementFromMarkerName'](_0x22e0cd,_0x33744a['markerName']),_0x2af188['writer']['remove'](_0x22e0cd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4fb5c3,_0x5b12a9,_0x41bac7)=>{const _0x38ba60=_0x5b12a9['markerName']['split'](':')[0x1],_0x4d44f5=this['_getChangeFromId'](_0x38ba60);if(!_0x4d44f5)return null;const _0x5f5556='add'==_0x4d44f5['type']?'split':'merge';if(_0x41bac7['consumable']['test'](_0x5b12a9['markerRange'],_0x4fb5c3['name']))for(const _0x5a8cd4 of _0x5b12a9['markerRange']['getItems']()){if(!_0x5a8cd4['is']('element','softBreak'))continue;const _0x50c3b5=_0x41bac7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f5556}),_0x9e82b0=_0x41bac7['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5a8cd4));_0x4d44f5['data']['isSuggestion']&&_0x41bac7['writer']['addClass']('ck-suggestion-marker-'+_0x5f5556+'-new',_0x50c3b5),this['activeChange']==_0x4d44f5&&_0x41bac7['writer']['addClass']('ck-suggestion-marker--active',_0x50c3b5),_0x41bac7['writer']['insert'](_0x9e82b0,_0x50c3b5),_0x41bac7['mapper']['bindElementToMarker'](_0x50c3b5,_0x5b12a9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x288df3=>{for(const _0x40cab1 of this['editor']['model']['document']['getRootNames']()){const _0x30616b=this['editor']['model']['document']['getRoot'](_0x40cab1),_0xf9a02d=this['editor']['editing']['view']['document']['getRoot'](_0x40cab1);if(_0xf9a02d){const _0x3d490a=_0x30616b['getAttribute']('revisionHistoryAttachChange');if(_0x288df3['removeAttribute']('data-change-id',_0xf9a02d),_0x288df3['removeClass']('ck-revision-history-root-add',_0xf9a02d),_0x288df3['removeClass']('ck-revision-history-root-remove',_0xf9a02d),_0x288df3['removeClass']('ck-revision-history-root--active',_0xf9a02d),_0x3d490a){const _0x5cc3af=this['_getChangeFromId'](_0x3d490a);if(!_0x5cc3af)return null;_0x288df3['setAttribute']('data-change-id',_0x3d490a,_0xf9a02d),_0x288df3['addClass']('ck-revision-history-root-'+_0x5cc3af['type'],_0xf9a02d),this['activeChange']==_0x5cc3af&&_0x288df3['addClass']('ck-revision-history-root--active',_0xf9a02d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x448747=>'revision-comment:'+_0x448747,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4a7b61=>'revision-suggestion:'+_0x4a7b61,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x509796=>({'name':'suggestion:'+_0x509796,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4ab7ea=>{const _0x300c4b=_0x4ab7ea['markerName']['split'](':')[0x1];return'insertion'!=_0x300c4b&&'deletion'!=_0x300c4b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x300c4b]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3b97a0,_0x1eafb8,_0x4f46b1)=>{const _0x56c533=_0x4f46b1['mapper']['markerNameToElements'](_0x1eafb8['markerName']);if(_0x56c533){for(const _0x3c8fee of _0x56c533)_0x3c8fee['is']('uiElement')&&(_0x4f46b1['mapper']['unbindElementFromMarkerName'](_0x3c8fee,_0x1eafb8['markerName']),_0x4f46b1['writer']['remove'](_0x3c8fee));}},{'priority':'high'});}['_getChangeFromId'](_0x442adc){return this['_changeIdToChange']['get'](_0x442adc);}['_getViewForChange'](_0xab806c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xab806c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x375698,_0x57fd95,_0x32ddf9,_0x270b87)=>{_0x270b87&&this['_balloon']['remove'](_0x270b87),_0x32ddf9&&(this['_balloon']['add']({'view':_0x32ddf9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x134a05=this['editor']['editing'],_0xc08673=this['_getChangeFromId'](_0x32ddf9['changeId']);let _0x513d3d;if(_0xc08673['data']['isOnRoot']){const _0x5e6d81=_0x134a05['view']['getDomRoot'](_0xc08673['rootName']);_0x513d3d=Array['from'](_0x5e6d81['getClientRects']());}else{const _0xa4774e=this['editor']['model']['markers']['get']('revision:'+_0x32ddf9['changeId']);_0x513d3d=Array['from'](_0x134a05['mapper']['markerNameToElements'](_0xa4774e['name']))['map'](_0x482f5f=>_0x134a05['view']['domConverter']['mapViewToDom'](_0x482f5f))['map'](_0x19c100=>Array['from'](_0x19c100['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x513d3d[0x0];return _0x513d3d['find'](_0x3c55b4=>_0x3c55b4['top']-0x3<=this['_activeViewTarget']['y']&&_0x3c55b4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3c55b4['left']-0x3<=this['_activeViewTarget']['x']&&_0x3c55b4['right']+0x3>=this['_activeViewTarget']['x'])||_0x513d3d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5efd62,_0x4ece5e,_0x1623af,_0x368ed7)=>{this['activeView']=_0x1623af?this['_getViewForChange'](_0x1623af):null,this['editor']['model']['change'](()=>{const _0x1643ec=this['editor']['editing'];_0x368ed7&&(_0x368ed7['data']['isOnRoot']?_0x1643ec['view']['change'](_0x1d1efb=>{_0x1d1efb['removeClass']('ck-revision-history-root--active',_0x1643ec['view']['document']['getRoot'](_0x368ed7['rootName']));}):_0x1643ec['reconvertMarker']('revision:'+_0x368ed7['id'])),_0x1623af&&(_0x1623af['data']['isOnRoot']?_0x1643ec['view']['change'](_0xd389d8=>{_0xd389d8['addClass']('ck-revision-history-root--active',_0x1643ec['view']['document']['getRoot'](_0x1623af['rootName']));}):_0x1643ec['reconvertMarker']('revision:'+_0x1623af['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2c054f,_0x514dff)=>{if(this['activeChange'])return;const _0x564d56=this['_findChangeIdFromDomTarget'](_0x514dff['target']),_0x38738a=this['_changeIdToChange']['get'](_0x564d56);_0x38738a?(this['_activeViewTarget']={'x':_0x514dff['domEvent']['x'],'y':_0x514dff['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x38738a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x863321,_0x275d1a)=>{const _0x171473=this['_findChangeIdFromDomTarget'](_0x275d1a['target']),_0x2d6659=this['_changeIdToChange']['get'](_0x171473);_0x2d6659?(this['_activeViewTarget']={'x':_0x275d1a['domEvent']['x'],'y':_0x275d1a['domEvent']['y']},_0x2d6659===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d6659):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x167abe){do{const _0x4fbdfe=_0x167abe['getAttribute']('data-change-id');if(_0x4fbdfe)return _0x4fbdfe;_0x167abe=_0x167abe['parent'];}while(_0x167abe);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x592371=>{for(const _0x344474 of this['editor']['model']['markers'])_0x592371['removeMarker'](_0x344474);});}}function tt(_0x383b5b,_0x8acedb){return(_0x199469,_0x56c7c7,_0xf2d931)=>{if(!_0xf2d931['consumable']['test'](_0x56c7c7['markerRange'],_0x199469['name']))return;const _0x397019=_0x56c7c7['markerRange']['getWalker'](),_0x5bcb10=_0x56c7c7['markerRange']['start'],_0x33cd86=_0x383b5b['model']['schema'];let _0xc69f8c=null,_0x402881=null,_0x3519aa=!0x1,_0x27c2d4=!0x1;for(const _0x12a3d7 of _0x397019){const _0x356c9d=_0x12a3d7['item'];_0x3519aa=_0x3519aa||_0x33cd86['isContent'](_0x356c9d);const _0x431a6a=_0xf2d931['mapper']['toViewElement'](_0x356c9d);if(_0x431a6a&&_0x431a6a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12a3d7['type']&&(_0x33cd86['isBlock'](_0x356c9d)&&!_0x33cd86['isLimit'](_0x356c9d)&&(_0x356c9d['nextSibling']||_0x5bcb10['isAtEnd']?_0xc69f8c&&_0xc69f8c['parent']==_0x356c9d||(_0xc69f8c=_0x356c9d,_0x547e29(_0x12a3d7['previousPosition']),_0x27c2d4=!0x0):_0x402881=_0x402881||_0x12a3d7['previousPosition']));}function _0x547e29(_0x5c0932){const _0x343bab=_0xf2d931['mapper']['toViewPosition'](_0x5c0932),_0xdb4ad4=_0xf2d931['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x8acedb});_0xf2d931['writer']['insert'](_0x343bab,_0xdb4ad4),_0xf2d931['mapper']['bindElementToMarker'](_0xdb4ad4,_0x56c7c7['markerName']);}_0x3519aa||_0x27c2d4||!_0x402881||_0x547e29(_0x402881);};}class yt extends _0x255895{constructor(_0x3e1975){super(_0x3e1975);const _0x37e8b4=_0x3e1975['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x37e8b4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37e8b4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1b5ec4=this['editor'],_0x5557de=_0x1b5ec4['plugins']['get'](d),_0x5b2a7e=_0x5557de['isReady']?_0x5557de['diff']['newRevisionId']:null;_0x1b5ec4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b2a7e);}['refresh'](){const {isReady:_0x30627e,isEnabled:_0x21d30a,repository:_0x2fd936,diff:_0x52407d}=this['editor']['plugins']['get'](d),_0x987f41=_0x52407d&&_0x2fd936['getLaterVisibleRevision'](_0x52407d['newRevisionId']);this['isEnabled']=_0x30627e&&_0x21d30a&&Boolean(_0x987f41);}}class bt extends _0x255895{['_step'];constructor(_0x20a33a,{direction:_0x3e8381}){super(_0x20a33a);const _0x1aa496=_0x20a33a['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e8381?0x1:-0x1,this['listenTo'](_0x1aa496,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1aa496,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1aa496,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3f6dd0=this['editor'],_0x21561c=_0x3f6dd0['plugins']['get'](d),{isNavigationMode:_0x52bc6e,currentChangeNumber:_0x501676}=_0x21561c;let _0x3c0298;if(_0x21561c['activeChange']=_0x52bc6e?_0x21561c['diff']['changes']['get'](_0x501676+this['_step']):_0x21561c['diff']['changes']['first'],_0x21561c['activeChange']['data']['isOnRoot'])_0x3c0298=_0x3f6dd0['editing']['view']['getDomRoot'](_0x21561c['activeChange']['rootName']);else{const _0x5e9f88=_0x3f6dd0['model']['markers']['get']('revision:'+_0x21561c['activeChange']['id']);_0x3c0298=_0x569c81(_0x3f6dd0['editing'],_0x5e9f88);}_0x511da0({'target':_0x3c0298,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x434b9d,currentChangeNumber:_0x562975,numberOfChanges:_0x42dfff,isReady:_0x598cd9,isEnabled:_0x17700c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x17700c&&_0x598cd9&&_0x42dfff)&&(!_0x434b9d||(0x1===this['_step']?_0x562975<_0x42dfff-0x1:_0x562975>0x0));}}class di extends _0x4be5f7{constructor(_0x5a309b){super(_0x5a309b);const _0x411815=this['bindTemplate'],_0x2ebe84=new _0x5ae3a4(_0x5a309b),_0x2f4da7=new _0x5ae3a4(_0x5a309b);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',(_0x44cdda,_0x379bd8)=>_0x44cdda&&_0x379bd8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x478ba0,_0x5c1973,_0x10fd59,_0x57bc43)=>{if(!_0x478ba0)return R(_0x5a309b,'Loading...');if(!_0x10fd59)return R(_0x5a309b,'No\x20changes');const _0x398e1e=R(_0x5a309b,'NUMBER_OF_CHANGES',_0x10fd59);return _0x57bc43?R(_0x5a309b,'X_OF_Y_CHANGES',[_0x5c1973+0x1,_0x10fd59]):_0x398e1e;}),_0x2ebe84['set']({'label':R(_0x5a309b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2f4da7['set']({'label':R(_0x5a309b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2ebe84['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2f4da7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ebe84['on']('execute',()=>this['fire']('execute','backward')),_0x2f4da7['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',_0x411815['if']('_isStatusLabelVisible','ck-hidden',_0x34dc7d=>!_0x34dc7d)]},'children':[{'text':_0x411815['to']('isNavigationMode',_0x24dc8b=>_0x24dc8b?R(_0x5a309b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5a309b,'Total')+':\x20')}]},{'text':_0x411815['to']('_statusText')}]},new _0x1bf43e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ebe84,_0x2f4da7]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x2ebc56{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f595e=this['editor']['editing']['view'];_0x1f595e['change'](_0x4d4d08=>{for(const _0x10b03a of _0x1f595e['document']['roots'])_0x4d4d08['addClass'](ce,_0x10b03a);});}['hide'](){const _0x22cb8e=this['editor']['editing']['view'];_0x22cb8e['change'](_0x27efb1=>{for(const _0x423c54 of _0x22cb8e['document']['roots'])_0x27efb1['removeClass'](ce,_0x423c54);});}}class m extends _0x2ebc56{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x5b8d0f=this['editor'],_0x4479e2=_0x5b8d0f['plugins']['get'](d),_0x2e2cb5=_0x5b8d0f['plugins']['get'](ae);_0x5b8d0f['ui']['componentFactory']['add']('exitToEditing',_0x54a4eb=>{const _0x2798df=new _0x5ae3a4(_0x54a4eb);return _0x2798df['set']({'label':R(_0x54a4eb,'Back\x20to\x20editing'),'icon':_0xaa90df['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2798df,'execute',()=>{_0x5b8d0f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2798df;}),_0x5b8d0f['ui']['componentFactory']['add']('restoreRevision',_0x27b282=>{const _0x1ce81b=new _0x5ae3a4(_0x27b282);return _0x1ce81b['set']({'label':R(_0x27b282,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1ce81b['bind']('isEnabled')['to'](_0x5b8d0f['commands']['get']('restoreRevision')),this['listenTo'](_0x1ce81b,'execute',()=>_0x5b8d0f['execute']('restoreRevision')),_0x1ce81b;}),_0x5b8d0f['ui']['componentFactory']['add']('changesNavigation',_0x290ed9=>{const _0x2edca1=new di(_0x290ed9),_0x1c7266=_0x5b8d0f['commands']['get']('showPreviousChange'),_0x15c298=_0x5b8d0f['commands']['get']('showNextChange');return _0x2edca1['bind']('isBackwardNavigationEnabled')['to'](_0x1c7266,'isEnabled'),_0x2edca1['bind']('isForwardNavigationEnabled')['to'](_0x15c298,'isEnabled'),_0x2edca1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4479e2),this['listenTo'](_0x2edca1,'execute',(_0x4eb922,_0x371d03)=>{_0x5b8d0f['execute']('forward'===_0x371d03?'showNextChange':'showPreviousChange');}),_0x2edca1;}),_0x2e2cb5['show'](),_0x4479e2['on']('change:isReady',(_0x832275,_0x23633d,_0x5c78b0)=>{_0x5c78b0?_0x2e2cb5['hide']():_0x2e2cb5['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x443672,_0x5b0b57){super(_0x443672,_0x5b0b57);const _0x583627=this['bindTemplate'];this['set']({'label':R(_0x443672,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x443672,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x583627['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x430f9b=this['fieldView']['element'];this['_tooltipString']=_0x430f9b['scrollWidth']>_0x430f9b['clientWidth']&&_0x430f9b['value']||'';}}class ti extends _0x4be5f7{constructor(_0x1ca7ff,_0x4cbbba,_0x586592){super(_0x1ca7ff);const _0x294083=new _0xb87865();_0x294083['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x37c96a=['ck','ck-revision-history-sidebar__revision-author'];_0x586592&&_0x37c96a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x38e97b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1ca7ff,_0x586592?'Revision\x20creator':'Revision\x20author')},'children':[_0x294083,_0x4cbbba['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x37c96a},'children':_0x38e97b});}}function ni(_0x30360b,_0x425b3b){const _0x4004a3=_0x30360b['bindTemplate'],_0x588e8b=_0x30360b['locale'],_0x343be0=_0x30f9aa(_0x588e8b);_0x343be0['panelPosition']='sw';const _0xf3287b=function(_0x3a9acd,_0x3c598f){const _0x212f1f=function(_0x47d41d,_0x2cde90){const _0x16bb0d=_0x47d41d['locale'],_0x2cb0df={'Compare\x20against\x20selected':R(_0x16bb0d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x16bb0d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x16bb0d,'Restore\x20this\x20revision')};return _0x2cde90['map'](_0x443293=>{const _0x3b48a7=_0x2cb0df[_0x443293['name']];return _0x3b48a7&&_0x3b48a7!==_0x443293['name']&&(_0x443293['name']=_0x3b48a7),_0x443293;});}(_0x3a9acd,_0x3c598f),_0x208b70=new _0x199961();for(const _0x3395bb of _0x212f1f){const _0x39cbd7={'type':'button','model':new to({'label':_0x3395bb['name'],'class':_0x3395bb['class'],'withText':!0x0,'role':'menuitem','_action':_0x3395bb['action']})};_0x39cbd7['model']['bind']('isEnabled')['to'](_0x3a9acd,'isActionsDropdownOpen',_0x1a7807=>'function'!=typeof _0x3395bb['isEnabled']||(!_0x1a7807||_0x3395bb['isEnabled'](_0x3a9acd))),_0x208b70['add'](_0x39cbd7);}return _0x208b70;}(_0x30360b,_0x425b3b);return _0x30360b['bind']('isActionsDropdownOpen')['to'](_0x343be0,'isOpen'),_0x343be0['buttonView']['set']({'label':R(_0x588e8b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xaa90df['threeVerticalDots']}),_0x343be0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4004a3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4004a3['to'](_0x5d6869=>_0x5d6869['stopPropagation']())}}),_0x343be0['on']('execute',_0x6ee475=>{_0x30360b['isReady']&&'function'==typeof _0x6ee475['source']['_action']&&_0x6ee475['source']['_action'](_0x30360b);}),_0x28484e(_0x343be0,_0xf3287b,{'role':'menu'}),_0x343be0['listenTo'](_0x30360b,'change:isActionsDropdownOpen',(_0xe98399,_0x574e72,_0x14f12d)=>{if(_0x14f12d)for(const _0x28dea6 of _0x343be0['listView']['items']){const _0x29c364=_0x28dea6['children']['first'],_0x2496c3=_0x425b3b['find'](_0x515e95=>_0x515e95['action']===_0x29c364['_action'])['isVisible'];_0x28dea6['isVisible']=void 0x0===_0x2496c3||_0x2496c3(_0x30360b);}}),_0x343be0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x587b1f,uid as _0xe2f24,Collection as _0xd8b86f,logWarning as _0x544a73,FocusTracker as _0x52b7bf,KeystrokeHandler as _0x2dbff8,scrollViewportToShowTarget as _0x524f31,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x49237c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x43b708,set as _0x2b25f6,unset as _0x3b7a0e,isEqual as _0x549ffe}from'lodash-es';import{Plugin as _0x5c4b81,PendingActions as _0x274928,icons as _0x3ea365,Command as _0x21dad9,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x280338,getMarkerDomElement as _0x1a708c,ConfirmMixin as _0x1c49e3,sanitizeEditorConfig as _0x50a836}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3525f2,ViewText as _0x3013b9,ViewElement as _0x4189fa,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x575e11,ViewAttributeElement as _0x92b50a,ViewEmptyElement as _0x206687,ViewRawElement as _0x42e784,ViewUIElement as _0x45836a,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2172d8,injectCssTransitionDisabler as ts,submitHandler as _0x320123,LabeledFieldView as at,createLabeledInputText as _0x326b64,createDropdown as _0x3f6297,ListView as te,ListItemView as _0x22847d,ButtonView as _0x1af197,MenuBarMenuView as _0x415284,MenuBarMenuListView as _0x2aac96,MenuBarMenuListItemView as _0x512e9b,MenuBarMenuListItemButtonView as _0x2c2ab0,ContextualBalloon as _0x5ba648,ToolbarSeparatorView as _0x4230d6,IconView as _0x2a9f71,addListToDropdown as _0x5e1bf1,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x24852f}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x587b1f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x38a493){super(),this['id']=_0x38a493['id']||_0xe2f24(),this['creator']=_0x38a493['creator']||null,this['authors']=_0x38a493['authors']||[],this['diffData']=_0x38a493['diffData']||null,this['toVersion']=_0x38a493['toVersion']||0x0,this['fromVersion']=_0x38a493['fromVersion']||0x0,this['set']('name',_0x38a493['name']||''),this['set']('createdAt',_0x38a493['createdAt']||new Date()),this['set']('attributes',_0x38a493['attributes']||{});}['setName'](_0x40dd8c){this['_update']({'name':_0x40dd8c});}['setAttribute'](_0x247bb0,_0x4a4602){const _0xdac991=_0x43b708(this['attributes']);_0x2b25f6(_0xdac991,_0x247bb0,_0x4a4602),this['_update']({'attributes':_0xdac991});}['removeAttribute'](_0x373079){const _0xf2732c=_0x43b708(this['attributes']);_0x3b7a0e(_0xf2732c,_0x373079),this['_update']({'attributes':_0xf2732c});}['_update'](_0x43ffc2,_0x9e9c1e=!0x1){let _0x4916bb=!0x1;const _0x23cf0c={'id':this['id']},_0x132320=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1e8ccc of _0x132320){const _0x5a8aa6=_0x43ffc2[_0x1e8ccc];void 0x0!==_0x5a8aa6&&_0x5a8aa6!==this[_0x1e8ccc]&&(this[_0x1e8ccc]=_0x5a8aa6,_0x23cf0c[_0x1e8ccc]=_0x5a8aa6,_0x4916bb=!0x0);}_0x4916bb&&(_0x23cf0c['authors']&&(_0x23cf0c['authorsIds']=_0x23cf0c['authors']['map'](_0x4af520=>_0x4af520['id']),delete _0x23cf0c['authors']),this['fire']('_update',_0x23cf0c,_0x9e9c1e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x204cba=>_0x204cba['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5c4b81{['_revisions'];static get['requires'](){return[_0x280338];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2cf4e3){super(_0x2cf4e3),this['_revisions']=new _0xd8b86f();}['afterInit'](){!async function(_0x287cd9){const _0x5b3d06=_0x498294([0x61,0x6d,0x48,0x38,0x31,0x73,0x54,0x4b,0x6e,0x79,0x56,0x4f,0x68,0x6a,0x34,0x49,0x46,0x63,0x65,0x32,0x7a,0x58,0x76,0x30,0x4a,0x53,0x74,0x70,0x67,0x47,0x72,0x4e,0x75,0x6b,0x45,0x78,0x33,0x36,0x6f,0x42,0x37,0x71,0x43,0x35,0x41,0x4c,0x77,0x52,0x4d,0x50,0x6c,0x5a,0x62,0x57,0x39,0x59,0x66,0x55,0x69,0x44,0x64,0x51]),_0x2485dd=0xeb829,_0x400e3b=0x1bcddcf8,_0x132e85=0x1bca8538^_0x400e3b,_0x4c1911=window[_0x498294([0x44,0x61,0x74,0x65])][_0x498294([0x6e,0x6f,0x77])](),_0x6c7059=_0x287cd9[_0x498294([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44a8e4=new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a988=>{_0x6c7059[_0x498294([0x6f,0x6e,0x63,0x65])](_0x498294([0x72,0x65,0x61,0x64,0x79]),_0x21a988);}),_0x54e03d={[_0x498294([0x6b,0x74,0x79])]:_0x498294([0x45,0x43]),[_0x498294([0x75,0x73,0x65])]:_0x498294([0x73,0x69,0x67]),[_0x498294([0x63,0x72,0x76])]:_0x498294([0x50,0x2d,0x32,0x35,0x36]),[_0x498294([0x78])]:_0x498294([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]),[_0x498294([0x79])]:_0x498294([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]),[_0x498294([0x61,0x6c,0x67])]:_0x498294([0x45,0x53,0x32,0x35,0x36])},_0x466433=_0x6c7059[_0x498294([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x498294([0x67,0x65,0x74])](_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3460cb(){let _0x368ea5,_0xb1a585=null,_0x2412b7=null;try{if(_0x466433==_0x498294([0x47,0x50,0x4c]))return _0x498294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x368ea5=_0x2849a6(),!_0x368ea5)return _0x498294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x368ea5[_0x498294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2412b7=_0x5dfd07(_0x368ea5[_0x498294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x368ea5[_0x498294([0x6a,0x74,0x69])])),await _0x146094()?_0x56b58d()?_0x2e9fae()?_0x498294([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8eb2d2()?(_0x368ea5[_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb1a585=_0xa1a005(_0x498294([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x368ea5[_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498294([0x74,0x72,0x69,0x61,0x6c])&&(_0xb1a585=_0xa1a005(_0x498294([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x368ea5[_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498294([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xb1a585=_0xa1a005(_0x498294([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ada82()):_0x498294([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x498294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x498294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x342bef){return _0x498294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e9fae(){const _0x50527d=[_0x498294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x498294([0x74,0x72,0x69,0x61,0x6c])][_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x368ea5[_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c1911/0x3e8:0xe10*_0x132e85;return _0x368ea5[_0x498294([0x65,0x78,0x70])]<_0x50527d;}function _0x56b58d(){const _0x458c28=_0x368ea5[_0x498294([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x458c28)return!0x1;if(_0x458c28[_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498294([0x2a])))return!0x0;if(_0x458c28[_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498294([0x52,0x48])))return!0x0;if(_0x458c28[_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498294([0x52,0x52,0x48]))){if(_0x4a7237())return!0x0;if(_0xd43a7a()||_0x1688ad())return!0x0;}return!0x1;}function _0x8eb2d2(){const _0xe37875=_0x368ea5[_0x498294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe37875||0x0==_0xe37875[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x475446}=new URL(window[_0x498294([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe37875[_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x475446))return!0x0;const _0x1bbb6e=_0x475446[_0x498294([0x73,0x70,0x6c,0x69,0x74])](_0x498294([0x2e]));return _0xe37875[_0x498294([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32c7e3=>_0x32c7e3[_0x498294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498294([0x2a])))[_0x498294([0x6d,0x61,0x70])](_0x55988e=>_0x55988e[_0x498294([0x73,0x70,0x6c,0x69,0x74])](_0x498294([0x2e])))[_0x498294([0x73,0x6f,0x6d,0x65])](_0x3f99eb=>_0x1bbb6e[_0x498294([0x65,0x76,0x65,0x72,0x79])]((_0x1a9566,_0xca67fc)=>_0x3f99eb[_0xca67fc]===_0x1a9566||_0x3f99eb[_0xca67fc]===_0x498294([0x2a])));}function _0x5ada82(){return _0xb1a585&&_0x2412b7?new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x448a8a,_0x50b8ca)=>{_0xb1a585[_0x498294([0x74,0x68,0x65,0x6e])](_0x448a8a,_0x50b8ca),_0x2412b7[_0x498294([0x74,0x68,0x65,0x6e])](_0x2bf0d3=>{_0x2bf0d3!=_0x498294([0x56,0x61,0x6c,0x69,0x64])&&_0x448a8a(_0x2bf0d3);},_0x50b8ca);}):_0xb1a585||_0x2412b7||_0x498294([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dfd07(_0x4687f0,_0x23f6c1){return new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22b661=>{if(_0x44dd6d())return _0x22b661(_0x498294([0x56,0x61,0x6c,0x69,0x64]));_0x59e01e(),_0x6c7059[_0x498294([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x498294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f3d38=!0x1;const _0x1a92b3=_0xe2f24();function _0x19ec36(_0x558886){return!!_0x558886&&(typeof _0x558886===_0x498294([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x558886===_0x498294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x558886[_0x498294([0x74,0x68,0x65,0x6e])]===_0x498294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x558886[_0x498294([0x63,0x61,0x74,0x63,0x68])]===_0x498294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x354785(_0x3efab6){_0xb24742(_0x3efab6)[_0x498294([0x74,0x68,0x65,0x6e])](_0x58abc6=>{if(!_0x58abc6||_0x58abc6[_0x498294([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x498294([0x6f,0x6b]))return _0x498294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb95eb(_0x4d9d64(_0x1a92b3+_0x23f6c1))!=_0x58abc6[_0x498294([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x498294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x498294([0x56,0x61,0x6c,0x69,0x64]);})[_0x498294([0x74,0x68,0x65,0x6e])](_0x219ae9=>(_0x557c10(),_0x219ae9),()=>{const _0x3fd7eb=_0x27ced7();return null==_0x3fd7eb?(_0x557c10(),_0x498294([0x56,0x61,0x6c,0x69,0x64])):_0x498294(_0x4c1911-_0x3fd7eb>(0x3fc158f8^_0x400e3b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x498294([0x74,0x68,0x65,0x6e])](_0x22b661)[_0x498294([0x63,0x61,0x74,0x63,0x68])](()=>{_0x22b661(_0x498294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b02ad=0x1bfb3278^_0x400e3b;function _0x557c10(){const _0x58450a=_0x498294([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb95eb(_0x4d9d64(_0x4687f0)),_0x2bc918=_0x519b9b(_0xbb95eb(window[_0x498294([0x4d,0x61,0x74,0x68])][_0x498294([0x63,0x65,0x69,0x6c])](_0x4c1911/_0x4b02ad)));window[_0x498294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498294([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58450a,_0x2bc918);}function _0x27ced7(){const _0x56926b=_0x498294([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb95eb(_0x4d9d64(_0x4687f0)),_0x435cb1=window[_0x498294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498294([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56926b);return _0x435cb1?window[_0x498294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x519b9b(_0x435cb1),0x10)*_0x4b02ad:null;}function _0xb24742(_0x49ae06){return new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x181a97,_0x3dcda4)=>{_0x49ae06[_0x498294([0x74,0x68,0x65,0x6e])](_0x181a97,_0x3dcda4),window[_0x498294([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dcda4,0x1bcc0838^_0x400e3b);});}}_0x6c7059[_0x498294([0x6f,0x6e])](_0x498294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43420e,_0x325cb1)=>{if(_0x325cb1[0x0]!=_0x4687f0)return _0x22b661(_0x498294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x325cb1[0x1]={..._0x325cb1[0x1],[_0x498294([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a92b3};},{[_0x498294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498294([0x68,0x69,0x67,0x68])}),_0x6c7059[_0x498294([0x6f,0x6e])](_0x498294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39db20=>{_0x19ec36(_0x39db20[_0x498294([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f3d38=!0x0,_0x354785(_0x39db20[_0x498294([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x498294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498294([0x6c,0x6f,0x77])}),_0x44a8e4[_0x498294([0x74,0x68,0x65,0x6e])](()=>{_0x2f3d38||_0x22b661(_0x498294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44dd6d(){return _0x6c7059[_0x498294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498294([0x76,0x69,0x65,0x77])][_0x498294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x498294([0x61,0x75,0x74,0x6f]);}function _0x59e01e(){_0x6c7059[_0x498294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498294([0x76,0x69,0x65,0x77])][_0x498294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x498294([0x61,0x75,0x74,0x6f]);}}function _0xa1a005(_0x44b134){const _0x2b87be=[new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b1f2d=>setTimeout(_0x2b1f2d,0x1bc4e234^_0x400e3b)),_0x44a8e4[_0x498294([0x74,0x68,0x65,0x6e])](()=>new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473175=>{const _0x3d01c5=0x1bcddcff^_0x400e3b,_0x1424ee=_0x287cd9[_0x498294([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1f25cf(){_0x1424ee[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3d01c5&&_0x473175();}_0x1f25cf(),_0x1424ee[_0x498294([0x6f,0x6e])](_0x498294([0x61,0x64,0x64]),_0x1f25cf);})),new window[(_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x422aa4=>{function _0x2c764b(){for(const _0x4cc80f in window)if(window[_0x498294([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x498294([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4cc80f))&&window[_0x4cc80f]==_0x2485dd)return _0x422aa4();_0x6c7059[_0x498294([0x73,0x74,0x61,0x74,0x65])]!=_0x498294([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x498294([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c764b,0x1bcdcf70^_0x400e3b);}_0x4c0584(_0x498294([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2c764b();})];return window[_0x498294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x498294([0x72,0x61,0x63,0x65])](_0x2b87be)[_0x498294([0x74,0x68,0x65,0x6e])](()=>_0x44b134);}async function _0x243fc6(){if(await _0x44a8e4,_0x4c0584(_0x498294([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x131a9c=_0x287cd9[_0x498294([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1dbaed=_0x287cd9[_0x498294([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])](_0x131a9c[_0x498294([0x69,0x64])]),_0x1939eb=_0x368513(_0x498294([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1939eb[_0x498294([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x131a9c['id'],_0x1dbaed?_0x1dbaed['id']:null,!0x0),_0x1939eb[_0x498294([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x498294([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1939eb[_0x498294([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1939eb[_0x498294([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1ad1d0,void(_0x1939eb[_0x498294([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1ad1d0);}if(_0x4c0584(_0x498294([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x47cc87=_0x368513(_0x498294([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x47cc87[_0x498294([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x498294([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x47cc87[_0x498294([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x47cc87[_0x498294([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1ad1d0,_0x47cc87[_0x498294([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1ad1d0;}_0x6c7059[_0x498294([0x6d,0x6f,0x64,0x65,0x6c])][_0x498294([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ad1d0,_0x6c7059[_0x498294([0x6d,0x6f,0x64,0x65,0x6c])][_0x498294([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ad1d0,_0x6c7059[_0x498294([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x498294([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a7237(){return _0x4c0584(_0x498294([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x368513(_0x498294([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x498294([0x73,0x74,0x61,0x74,0x65])]==_0x498294([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd43a7a(){return _0x4c0584(_0x498294([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 _0x1688ad(){return _0x4c0584(_0x498294([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b358b(_0x3037fb){const _0x4fd55d=_0x54f0b5();_0x6c7059[_0x4fd55d]=_0x498294([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])+_0x3037fb,_0x3037fb[_0x498294([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x498294([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54f0b5()]=_0x2485dd),_0x3037fb!=_0x498294([0x56,0x61,0x6c,0x69,0x64])&&_0x243fc6();}function _0x54f0b5(){const _0x3b768d=window[_0x498294([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x498294([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x498294([0x6e,0x6f,0x77])]())[_0x498294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x498294([0x2e]),'');let _0x42eca2=_0x498294([0x61]);for(let _0x488162=0x0;_0x488162<_0x3b768d[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x488162+=0x2){let _0x4803e3=window[_0x498294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b768d[_0x498294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x488162,_0x488162+0x2));_0x4803e3>=_0x5b3d06[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4803e3-=_0x5b3d06[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42eca2+=_0x5b3d06[_0x4803e3];}return _0x42eca2;}function _0x2849a6(){const _0x5701a5=_0x466433[_0x498294([0x73,0x70,0x6c,0x69,0x74])](_0x498294([0x2e]));if(0x3!=_0x5701a5[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fc743(_0x5701a5[0x1]);function _0x3fc743(_0x12e712){const _0x4e5b9a=_0x5b7db4(_0x12e712);return _0x4e5b9a&&_0x255187()?_0x4e5b9a:null;function _0x255187(){const _0x5eb310=_0x4e5b9a[_0x498294([0x6a,0x74,0x69])],_0x584534=window[_0x498294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb310[_0x498294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5eb310[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f53f2={..._0x4e5b9a,[_0x498294([0x6a,0x74,0x69])]:_0x5eb310[_0x498294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5eb310[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f53f2[_0x498294([0x76,0x63])],_0x4d9d64(_0x1f53f2)==_0x584534;}}}async function _0x146094(){let _0x16288f=!0x0;try{const _0x59fe22=_0x466433[_0x498294([0x73,0x70,0x6c,0x69,0x74])](_0x498294([0x2e])),[_0x554ba1,_0x4e14ab,_0xd87097]=_0x59fe22;return _0x3cca43(_0x554ba1),await _0x3f6707(_0x554ba1,_0x4e14ab,_0xd87097),_0x16288f;}catch(_0x3d8eb7){return!0x1;}function _0x3cca43(_0x2889a0){const _0x557dd0=_0x5b7db4(_0x2889a0);_0x557dd0&&_0x557dd0[_0x498294([0x61,0x6c,0x67])]==_0x498294([0x45,0x53,0x32,0x35,0x36])||(_0x16288f=!0x1);}async function _0x3f6707(_0x106620,_0x5dabea,_0xad82d){const _0xd0fc1e=window[_0x498294([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x498294([0x66,0x72,0x6f,0x6d])](_0x38b98c(_0xad82d),_0x4c82eb=>_0x4c82eb[_0x498294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x224bcc=new window[(_0x498294([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x498294([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x106620+_0x498294([0x2e])+_0x5dabea),_0x43acd7=window[_0x498294([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x498294([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43acd7)return;const _0x23f7a1=await _0x43acd7[_0x498294([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x498294([0x6a,0x77,0x6b]),_0x54e03d,{[_0x498294([0x6e,0x61,0x6d,0x65])]:_0x498294([0x45,0x43,0x44,0x53,0x41]),[_0x498294([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x498294([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x498294([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43acd7[_0x498294([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x498294([0x6e,0x61,0x6d,0x65])]:_0x498294([0x45,0x43,0x44,0x53,0x41]),[_0x498294([0x68,0x61,0x73,0x68])]:{[_0x498294([0x6e,0x61,0x6d,0x65])]:_0x498294([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23f7a1,_0xd0fc1e,_0x224bcc)||(_0x16288f=!0x1);}}function _0x5b7db4(_0x45f7b8){return _0x45f7b8[_0x498294([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x498294([0x65,0x79]))?JSON[_0x498294([0x70,0x61,0x72,0x73,0x65])](_0x38b98c(_0x45f7b8)):null;}function _0x38b98c(_0x324885){return window[_0x498294([0x61,0x74,0x6f,0x62])](_0x324885[_0x498294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x498294([0x2b]))[_0x498294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x498294([0x2f])));}function _0x4d9d64(_0x3bd207){let _0x7b6a61=0x1505;function _0x1cb748(_0x5d8e7e){for(let _0x26b890=0x0;_0x26b890<_0x5d8e7e[_0x498294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26b890++){const _0x3c8369=_0x5d8e7e[_0x498294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26b890);_0x7b6a61=(_0x7b6a61<<0x5)+_0x7b6a61+_0x3c8369,_0x7b6a61&=_0x7b6a61;}}function _0x3c9dd2(_0x2484d2){Array[_0x498294([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2484d2)?_0x2484d2[_0x498294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c9dd2):_0x2484d2&&typeof _0x2484d2==_0x498294([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x498294([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2484d2)[_0x498294([0x73,0x6f,0x72,0x74])]()[_0x498294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43704b,_0x5c5d0f])=>{_0x1cb748(_0x43704b),_0x3c9dd2(_0x5c5d0f);}):_0x1cb748(window[_0x498294([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2484d2));}return _0x3c9dd2(_0x3bd207),_0x7b6a61>>>0x0;}function _0xbb95eb(_0x4ab89b){return _0x4ab89b[_0x498294([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x498294([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x498294([0x30]));}function _0x519b9b(_0x1dfe51){return _0x1dfe51[_0x498294([0x73,0x70,0x6c,0x69,0x74])]('')[_0x498294([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x498294([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c0584(_0x50c453){return _0x6c7059[_0x498294([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498294([0x68,0x61,0x73])](_0x50c453);}function _0x368513(_0x28b73e){return _0x6c7059[_0x498294([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498294([0x67,0x65,0x74])](_0x28b73e);}function _0x1ad1d0(){}function _0x498294(_0x4f5a5b){return _0x4f5a5b['map'](_0x38e2b6=>String['fromCharCode'](_0x38e2b6))['join']('');}_0x1b358b(await _0x3460cb());}(this);}['createRevision'](_0x10d92f){const _0x4415e2=this['editor']['plugins']['get']('Users');return new a({'id':_0x10d92f['id'],'name':_0x10d92f['name'],'creator':_0x10d92f['creatorId']?_0x4415e2['getUser'](_0x10d92f['creatorId']):null,'diffData':_0x10d92f['diffData']||_0x10d92f['data'],'authors':_0x10d92f['authorsIds']['map'](_0x5f6a02=>_0x4415e2['getUser'](_0x5f6a02)),'createdAt':new Date(_0x10d92f['createdAt']),'attributes':_0x10d92f['attributes'],'fromVersion':_0x10d92f['fromVersion'],'toVersion':_0x10d92f['toVersion']});}['addRevision'](_0x437212,_0x1f808a=0x0){this['_revisions']['add'](_0x437212,_0x1f808a);}['getRevision'](_0x4e97a7){return this['_revisions']['get'](_0x4e97a7);}['getRevisions'](_0x6a6ccf={'toJSON':!0x1}){const _0x549b12=Array['from'](this['_revisions']);return _0x549b12['reverse'](),_0x6a6ccf['toJSON']?_0x549b12['map'](_0x49a518=>_0x49a518['toJSON']()):_0x549b12;}['getIndex'](_0x34cc22){return this['_revisions']['getIndex'](_0x34cc22);}['getEarlierVisibleRevision'](_0x329563){const [,_0x12b50e]=this['getRevisionsIterator'](_0x329563,{'direction':'earlier'});return _0x12b50e;}['getLaterVisibleRevision'](_0x43d851){const [,_0x1645de]=this['getRevisionsIterator'](_0x43d851,{'direction':'later'});return _0x1645de;}['getRevisionsInDiff'](_0x46b803){const _0xcb51f2=[];for(const _0x4cfc1e of this['getRevisionsIterator'](_0x46b803['newRevisionId']))if(_0xcb51f2['push'](_0x4cfc1e),_0x4cfc1e['id']===_0x46b803['oldRevisionId'])break;return _0xcb51f2;}*['getRevisionsIterator'](_0x5c57c4,{direction:_0x5af720='earlier',filter:_0x489f99=()=>!0x0}={}){const _0x3adf53='earlier'===_0x5af720?0x1:-0x1;let _0x5e56bc=this['_revisions']['get'](_0x5c57c4),_0x2df8b6=this['getIndex'](_0x5e56bc);for(yield _0x5e56bc;_0x5e56bc;){if(_0x2df8b6+=_0x3adf53,_0x5e56bc=this['getRevision'](_0x2df8b6),!_0x5e56bc)return;_0x489f99(_0x5e56bc)&&(yield _0x5e56bc);}}}function R(_0x516834,_0x5e7412,_0x9281f9){const t=_0x516834['t'];switch(_0x5e7412){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'},_0x9281f9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9281f9);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x575e11,'a':_0x92b50a,'e':_0x206687,'r':_0x42e784,'u':_0x45836a};class l extends _0x5c4b81{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x280338,j,_0x274928];}constructor(_0x145a01){super(_0x145a01),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3a5dc6=_0xe2f24();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3a5dc6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x24322c=this['repository']['getRevision'](0x0),_0x37f446=_0x24322c&&null===_0x24322c['creator']?_0x24322c:null;if(this['_continueCurrentRevision']=!!_0x37f446&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x320509=this['_source']['getCurrentRevisionId'](),_0x5b0180=this['repository']['getRevision'](_0x320509);if(_0x5b0180)this['_startingVersion']=_0x5b0180['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x28330d=this['_source']['history']['_operations']['find'](_0x1ecdee=>!_0x1ecdee['_isInit']),_0x2a6442=_0x28330d?_0x28330d['baseVersion']:this['_source']['history']['version'];_0x24322c?(_0x24322c['toVersion']<_0x2a6442&&_0x24322c['_update']({'toVersion':_0x2a6442}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x37f446['id'],this['_startingVersion']=_0x37f446['fromVersion']):(this['_startingVersion']=_0x24322c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2a6442,this['_continueCurrentRevision']=!0x1);}}else _0x37f446&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x37f446['toVersion'],this['editor']['model']['document']['history']['version']),_0x37f446['fromVersion']===_0x37f446['toVersion']?(0x0!==_0x37f446['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x37f446['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x37f446['id'],this['_startingVersion']=_0x37f446['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',_0x38ce00=>!_0x38ce00),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16f70d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x486021;for(const _0x22996a in _0x16f70d){const _0x31c175=_0x22996a,_0x21929d=_0x16f70d[_0x31c175];if('revisionHistoryLicenseKeyValid'==_0x21929d||'revisionHistoryLicenseKeyInvalid'==_0x21929d||'revisionHistoryLicenseKeyExpired'==_0x21929d||'revisionHistoryLicenseKeyDomainLimit'==_0x21929d||'revisionHistoryLicenseKeyNotAllowed'==_0x21929d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x21929d||'revisionHistoryLicenseKeyTrialLimit'==_0x21929d||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x21929d||'revisionHistoryLicenseKeyUsageLimit'==_0x21929d){delete _0x16f70d[_0x31c175],_0x486021=_0x21929d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x486021&&_0x16f70d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x486021&&_0x16f70d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x486021&&_0x16f70d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x486021&&_0x16f70d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x486021&&_0x16f70d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x486021&&_0x16f70d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x486021&&_0x16f70d['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x486021&&_0x16f70d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5aa1ed=this['repository']['getRevision'](0x0),_0xdf5686=await this['getRevisionDocumentData'](_0x5aa1ed),_0x2ba67b=await this['getRevisionRootsAttributes'](_0x5aa1ed);this['_replaceEditorDataWithRevisionData'](_0xdf5686,_0x2ba67b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2862ad){this['_source']=_0x2862ad;}async['update'](){const _0x322080=await this['_source']['getLatestVersion']();if(_0x322080>this['currentRevision']['toVersion']){await this['_loadState']();const _0xe3060e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x322080});_0xe3060e['authors']=_0xe3060e['authorsIds']['map'](_0x52f6b6=>this['editor']['plugins']['get']('Users')['getUser'](_0x52f6b6)),this['currentRevision']['_update'](_0xe3060e);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4190f4={},_0x570e22=null){const _0x25e9eb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x570e22>this['currentRevision']['toVersion']&&(_0x570e22=null),null===_0x570e22&&(_0x570e22=await this['_source']['getLatestVersion']());const _0x213639=this['_getFromVersion'](_0x570e22),_0x39113e=this['buildRevisionData']({'from':_0x213639,'to':_0x570e22});if(this['currentRevision']['toVersion']<_0x570e22){const _0x301006=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x570e22,'to':_0x570e22});_0x301006['authors']=[],_0x301006['authorsIds']=[],_0x301006['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x301006,!0x0),delete _0x301006['authors'],_0x25e9eb['push'](_0x301006);}_0x4190f4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4190f4['name']=_0x4190f4['name']||null,_0x4190f4['id']=_0x4190f4['id']||_0xe2f24(),_0x4190f4={..._0x4190f4,..._0x39113e};const _0x197e8e=this['addRevisionData'](_0x4190f4);_0x25e9eb['push'](_0x4190f4);const _0x9f0672=this['repository']['getIndex'](_0x197e8e);if(0x0!==_0x9f0672){const _0x5b3e39=this['repository']['getRevision'](_0x9f0672-0x1);if(_0x5b3e39['fromVersion']!==_0x570e22){const _0x3de975=this['_revisionDataBuilder']['getData'](_0x570e22,_0x5b3e39['toVersion']),_0x4ea915={'id':_0x5b3e39['id'],'diffData':_0x3de975['diffData'],'authorsIds':_0x3de975['authorsIds'],'authors':_0x3de975['authorsIds']['map'](_0x2b8c85=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b8c85)),'fromVersion':_0x570e22};_0x5b3e39===this['currentRevision']&&(_0x4ea915['createdAt']=new Date(_0x4190f4['createdAt']['getTime']()+0xa)),_0x5b3e39['_update'](_0x4ea915,!0x0),delete _0x4ea915['authors'],_0x25e9eb['push'](_0x4ea915);}}if(this['adapter']){for(const _0x2de783 of _0x25e9eb)this['_bufferUpdate'](_0x2de783['id'],_0x2de783,!0x0);this['sendBufferedUpdates']();}return _0x197e8e;}['addRevisionData'](_0x952cb6){const _0x4e11ec=this['repository']['createRevision'](_0x952cb6);return this['adapter']&&_0x4e11ec['on']('_update',(_0x1f0213,_0xfe4074,_0xe814b5)=>{_0xe814b5||(this['_bufferUpdate'](_0xfe4074['id'],_0xfe4074,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e11ec,this['_findInsertionIndex'](_0x4e11ec)),_0x4e11ec;}async['getRevisionDocumentData'](_0xc0999b){await this['_loadRevisionData'](_0xc0999b);const _0x143705={};for(const _0x2b7229 in _0xc0999b['diffData']){if(_0xc0999b['diffData'][_0x2b7229]['attachChange']&&!_0xc0999b['diffData'][_0x2b7229]['attachChange']['isAttached'])continue;const _0x1add8d=this['_removeRevisionMarkers'](JSON['parse'](_0xc0999b['diffData'][_0x2b7229]['insertions'])),_0x2d0c9e=this['editor']['editing']['view']['document'],_0x141785=new _0x3525f2(_0x2d0c9e,_0x1add8d['map'](_0x1bea03=>V(_0x1bea03,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x143705[_0x2b7229]=this['editor']['data']['processor']['toData'](_0x141785),this['editor']['data']['processor']['useFillerType']('default');}return _0x143705;}async['getRevisionRootsAttributes'](_0x5f452e){await this['_loadRevisionData'](_0x5f452e);const _0x4ba518={};for(const _0x142803 in _0x5f452e['diffData'])_0x5f452e['diffData'][_0x142803]['attachChange']&&!_0x5f452e['diffData'][_0x142803]['attachChange']['isAttached']||(_0x4ba518[_0x142803]=_0x5f452e['diffData'][_0x142803]['attributesAfter']||{});return _0x4ba518;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xf2ee40=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x551140=0x0;_0x551140<_0xf2ee40['length'];_0x551140++){const _0x154222=_0xf2ee40[_0x551140];let _0x399f7e=!0x1;for(const _0x2e570d of Object['keys'](_0x154222))void 0x0===_0x154222[_0x2e570d]?delete _0x154222[_0x2e570d]:'id'!==_0x2e570d&&(_0x399f7e=!0x0);_0x399f7e||(_0xf2ee40[_0x551140]=null);}if(_0xf2ee40=_0xf2ee40['filter'](_0x4482ca=>null!==_0x4482ca),!_0xf2ee40['length'])return;for(let _0x5da1db=0x0;_0x5da1db<_0xf2ee40['length'];_0x5da1db++){const _0x343130=_0xf2ee40[_0x5da1db];void 0x0!==_0x343130['fromVersion']&&void 0x0===_0x343130['toVersion']&&(_0x343130['toVersion']=this['repository']['getRevision'](_0x343130['id'])['toVersion']),void 0x0!==_0x343130['toVersion']&&void 0x0===_0x343130['fromVersion']&&(_0x343130['fromVersion']=this['repository']['getRevision'](_0x343130['id'])['fromVersion']);}const _0x57b6de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xf2ee40,_0x57b6de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x114a10=>{if(_0x114a10){for(const _0x1a74fc of _0x114a10)this['setRevisionData']({'id':_0x1a74fc['id'],'createdAt':_0x1a74fc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x488eed,_0x5b4666){let _0x580288=this['editor']['config']['get']('initialData'),_0x4768d1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x580288){_0x580288={};for(const _0x95ecc2 of this['editor']['model']['document']['getRootNames']())_0x580288[_0x95ecc2]='';}if('string'==typeof _0x580288&&(_0x580288={'main':_0x580288}),void 0x0===_0x4768d1){_0x4768d1={};for(const _0x745f62 of this['editor']['model']['document']['getRootNames']())_0x4768d1[_0x745f62]={};}let _0x1b9cb5=!0x1;const _0x40be72=Object['keys'](_0x580288),_0x20472d=Object['keys'](_0x488eed);for(const _0x4fec7e of _0x40be72){if(_0x580288[_0x4fec7e]!==_0x488eed[_0x4fec7e]&&''!==_0x580288[_0x4fec7e]['trim']()){_0x1b9cb5=!0x0;break;}if(!_0x549ffe(_0x4768d1[_0x4fec7e],_0x5b4666[_0x4fec7e])&&Object['keys'](_0x4768d1[_0x4fec7e])['length']>0x0){_0x1b9cb5=!0x0;break;}}_0x1b9cb5||(_0x1b9cb5=_0x20472d['some'](_0x59a750=>!this['editor']['model']['document']['getRoot'](_0x59a750))),_0x1b9cb5&&_0x544a73('editor-initial-data-replaced-with-revision-data',{'editorData':_0x580288,'editorRootsAttributes':_0x4768d1,'revisionData':_0x488eed,'revisionRootsAttributes':_0x5b4666}),this['editor']['config']['set']('initialData',_0x488eed),this['editor']['config']['set']('rootsAttributes',_0x5b4666);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51f195=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51f195['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5bdb45){const _0x411721=this['repository']['getRevisions']();_0x411721['reverse']();let _0x5acb32=0x0;for(;_0x5acb32<_0x411721['length'];){const _0x284c8a=_0x411721[_0x5acb32];if(_0x284c8a===this['currentRevision']){_0x5acb32++;continue;}if(_0x284c8a['id']===this['_initialRevisionId'])break;const _0x24606b=_0x5bdb45['toVersion']-_0x284c8a['toVersion']||_0x5bdb45['fromVersion']-_0x284c8a['fromVersion'];if(_0x24606b>0x0)break;if(_0x24606b<0x0)_0x5acb32++;else{if(!_0x5bdb45['creator']&&_0x284c8a['creator'])break;if(_0x284c8a['creator']||!_0x5bdb45['creator']){if(_0x5bdb45['createdAt']>_0x284c8a['createdAt'])break;_0x5acb32++;}else _0x5acb32++;}}return _0x5acb32;}['setRevisionData'](_0x30ae9a){const _0x47bde2=this['repository']['getRevision'](_0x30ae9a['id']);if(_0x30ae9a['createdAt']&&(_0x30ae9a['createdAt']=new Date(_0x30ae9a['createdAt'])),_0x30ae9a['authorsIds']){const _0x1f2bae=this['editor']['plugins']['get']('Users');_0x30ae9a['authors']=_0x30ae9a['authorsIds']['map'](_0x234f7a=>_0x1f2bae['getUser'](_0x234f7a));}_0x47bde2['_update'](_0x30ae9a,!0x0);}['buildRevisionData']({revision:_0x408d8f=null,from:_0x1d18a7=null,to:_0x47c43f=null}){_0x1d18a7=null!==_0x1d18a7?_0x1d18a7:_0x408d8f['fromVersion'],_0x47c43f=null!==_0x47c43f?_0x47c43f:_0x408d8f['toVersion'];const _0x3e439e=this['_revisionDataBuilder']['getData'](_0x1d18a7,_0x47c43f),_0x5bd0ca={'diffData':_0x3e439e['diffData'],'authorsIds':_0x3e439e['authorsIds'],'fromVersion':_0x1d18a7,'toVersion':_0x47c43f};if(!_0x408d8f||_0x47c43f!==_0x408d8f['toVersion']){const _0x44473e=_0x47c43f-0x1,_0x6e3ed3=this['_source']['history']['getOperation'](_0x44473e);_0x5bd0ca['createdAt']=_0x6e3ed3&&_0x6e3ed3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1d18a7===this['_loadedStateData']['fromVersion']){for(const _0x3e50fb of this['_loadedStateData']['authors'])_0x5bd0ca['authorsIds']['includes'](_0x3e50fb['id'])||_0x5bd0ca['authorsIds']['push'](_0x3e50fb['id']);}return _0x5bd0ca;}['_loadRevisionData'](_0x347d1c){if(!_0x347d1c||_0x347d1c['diffData'])return Promise['resolve']();{const _0x44d8f6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x44d8f6,'revisionId':_0x347d1c['id']})['then'](_0x1334ee=>{_0x347d1c['diffData']=_0x1334ee['diffData'];});}}['_bufferUpdate'](_0x437973,_0x54f9db,_0x3705c3){if(this['_bufferedUpdates']['has'](_0x437973)){const _0x2e9102=this['_bufferedUpdates']['get'](_0x437973);_0x54f9db=_0x3705c3?{..._0x2e9102,..._0x54f9db}:{..._0x54f9db,..._0x2e9102};}this['_bufferedUpdates']['set'](_0x437973,_0x54f9db);}['_getFromVersion'](_0x3c88d7){const _0x2bb780=this['repository']['getRevisions']();_0x2bb780['reverse'](),_0x2bb780['shift']();const _0x415f05=_0x2bb780['find'](_0x210c54=>_0x210c54['toVersion']<=_0x3c88d7)['toVersion'];return _0x415f05<this['_startingVersion']?this['_startingVersion']:_0x415f05;}['_createInitialRevision'](_0x79de){const _0x1d30bf=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1d30bf)this['_initialRevisionId']=_0x1d30bf['id'];else{const _0x234def=!this['editor']['model']['document']['roots']['find'](_0x2ca741=>this['editor']['model']['hasContent'](_0x2ca741)),_0x1f5e92=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bc854=R(this['editor']['locale'],_0x234def?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x79de,'to':_0x79de,'id':this['_initialRevisionId'],'name':_0x3bc854,'creatorId':_0x1f5e92});}}['_createCurrentRevision'](_0x50d41a){const _0x3ad4c8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3ad4c8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x50d41a,'to':_0x50d41a,'id':_0x3ad4c8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x11c503,from:_0x849c80,to:_0x3e7dd2,creatorId:_0x3c9b6c,id:_0x33a6a5}){const _0x3f73ce=this['buildRevisionData']({'from':_0x849c80,'to':_0x3e7dd2});_0x3f73ce['name']=_0x11c503,_0x3f73ce['creatorId']=_0x3c9b6c,_0x3f73ce['id']=_0x33a6a5;const _0x4bd26a=this['addRevisionData'](_0x3f73ce);return this['adapter']&&this['_bufferUpdate'](_0x3f73ce['id'],_0x3f73ce,!0x0),_0x4bd26a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3a052c){return(_0x3a052c=_0x3a052c['filter'](_0xda665a=>!_0xda665a['name']||'revision-start'!==_0xda665a['name']&&'revision-end'!==_0xda665a['name']))['forEach'](_0x7c82cf=>{'string'!=typeof _0x7c82cf&&(_0x7c82cf['children']=this['_removeRevisionMarkers'](_0x7c82cf['children']),_0x7c82cf['attributes']=_0x7c82cf['attributes']['filter'](_0x284007=>!_0x284007[0x0]['startsWith']('data-revision-')));}),_0x3a052c;}}function V(_0x3bf7ca,_0x48b4d9){const _0x3d060a=_0x48b4d9['editing']['view']['document'];if('string'==typeof _0x3bf7ca)return new _0x3013b9(_0x3d060a,_0x3bf7ca);{const _0x4c36a2=_0x3bf7ca['children']['map'](_0x194dc0=>V(_0x194dc0,_0x48b4d9));return new(C[_0x3bf7ca['type']]||_0x4189fa)(_0x3d060a,_0x3bf7ca['name'],_0x3bf7ca['attributes'],_0x4c36a2);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2ae412){this['editor']=_0x2ae412,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'](_0xe69ac6){this['source']=_0xe69ac6;const _0x3a620a=new Map(),_0x262c31=new Map(),_0x5cb63f=this['editor']['model']['document']['roots']['map'](_0x4ae441=>_0x4ae441['rootName']);for(const _0x5bf952 of _0x5cb63f){const _0x344d7d=this['editor']['model']['document']['getRoot'](_0x5bf952),_0x561c34=F(_0x344d7d);_0x3a620a['set'](_0x5bf952,_0x561c34),_0x262c31['set'](_0x5bf952,Object['fromEntries'](_0x344d7d['getAttributes']()));}const _0x5c1fc0=Array['from'](this['editor']['model']['markers'])['map'](_0x56c15b=>[_0x56c15b['name'],_0x56c15b['getRange']()]),_0x5cddfd=this['source']['version'];this['_saveMetaData'](_0x5cddfd,_0x3a620a,_0x5c1fc0,_0x262c31),this['_startingRevisionId']=this['_revisionId'];const _0x6edead=new Map(),_0x11934d=new Map();for(const _0x2ed872 of _0x5cb63f){const _0x760bcb=B(_0x2ed872);_0x6edead['set'](_0x2ed872,_0x760bcb),_0x11934d['set'](_0x2ed872,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6edead,[],_0x11934d);}['getData'](_0x33645d,_0x1de211){if(this['_lastFrom']===_0x33645d&&this['_lastTo']<=_0x1de211)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1de211,!0x0);else{if(!this['_savedMetaData']['has'](_0x33645d)){const _0x35b729=this['_getPreviousFrom'](_0x33645d);this['_calculateMetaData'](_0x35b729,_0x33645d,!0x1);}this['_calculateMetaData'](_0x33645d,_0x1de211,!0x0);}return this['_lastFrom']=_0x33645d,this['_lastTo']=_0x1de211,this['_getState']();}['loadState'](_0x4b0a02){this['_reset'](),this['_lastFrom']=_0x4b0a02['fromVersion'],this['_lastTo']=_0x4b0a02['toVersion'];for(const _0x4feee9 in _0x4b0a02['diffData']){const _0x28564b=_0x4b0a02['diffData'][_0x4feee9]['attachChange'],_0x7497ab=_0x43b708(_0x4b0a02['diffData'][_0x4feee9]['attributesBefore'])||{},_0x499f78=this['_makeModelFromViewString'](_0x4b0a02['diffData'][_0x4feee9]['deletions']);_0x499f78['rootName']=_0x4feee9,_0x499f78['_isAttached']=!_0x28564b||!_0x28564b['isAttached'],_0x499f78['isAttached']=()=>_0x499f78['_isAttached'],this['_baseRoots']['set'](_0x4feee9,_0x499f78),this['_baseRootsAttributes']['set'](_0x4feee9,_0x7497ab),_0x28564b&&this['_touchedRoots']['set'](_0x4feee9,_0x28564b);const _0x224992=this['_makeIdsRoot'](_0x499f78);this['_baseIdsRoots']['set'](_0x4feee9,_0x224992);for(const [_0x686dd1,_0x276604]of _0x499f78['markers']){if(!_0x686dd1['startsWith']('revision:'))continue;const _0x3e82f1=_0x686dd1['split'](':')[0x2];for(const _0x3078cf of _0x276604['getWalker']({'singleCharacters':!0x0})){const _0x261982=this['_getVidAttributeName'](_0x3078cf),_0x377316='elementEnd'==_0x3078cf['type']?_0x3078cf['previousPosition']['path']['slice'](0x0,-0x1):_0x3078cf['previousPosition']['path'],_0x87d29d=_0x224992['getNodeByPath'](_0x377316)['getAttribute'](_0x261982);this['_touched']['set'](_0x87d29d,{'userId':_0x3e82f1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x31b120=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x7d6649=>!this['_touched']['has'](_0x7d6649));let _0x271137=0x0;const _0x2066bd=new Map();for(const _0x26904c in _0x4b0a02['diffData']){const _0x2e3938=_0x4b0a02['diffData'][_0x26904c]['attachChange'],_0x58e2c8=_0x43b708(_0x4b0a02['diffData'][_0x26904c]['attributesAfter'])||{},_0x548c4d=this['_makeModelFromViewString'](_0x4b0a02['diffData'][_0x26904c]['insertions']);_0x548c4d['rootName']=_0x26904c,_0x548c4d['_isAttached']=!_0x2e3938||_0x2e3938['isAttached'],_0x548c4d['isAttached']=()=>_0x548c4d['_isAttached'],this['_diffRoots']['set'](_0x26904c,_0x548c4d),this['_diffRootsAttributes']['set'](_0x26904c,_0x58e2c8);const _0x31e2b1=this['_makeIdsRoot'](_0x548c4d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x26904c,_0x31e2b1),_0x2066bd['set'](_0x26904c,_0x548c4d['isAttached']()?_0x58e2c8:{});for(const [_0x37d19f,_0x1fdd77]of _0x548c4d['markers']){if(!_0x37d19f['startsWith']('revision:'))continue;const _0x8f626=_0x37d19f['split'](':')[0x2];for(const _0x4bdafe of _0x1fdd77['getWalker']({'singleCharacters':!0x0})){const _0x1a5d1c=this['_getVidAttributeName'](_0x4bdafe),_0x535d25=this['_revisionId']++,_0x3f2531='elementEnd'==_0x4bdafe['type']?_0x4bdafe['previousPosition']['path']['slice'](0x0,-0x1):_0x4bdafe['previousPosition']['path'];_0x31e2b1['getNodeByPath'](_0x3f2531)['_setAttribute'](_0x1a5d1c,_0x535d25),this['_touched']['set'](_0x535d25,{'userId':_0x8f626});}}for(const _0x3298fc of this['editor']['model']['createRangeIn'](_0x548c4d)['getWalker']({'singleCharacters':!0x0})){const _0x10a1a9=this['_getVidAttributeName'](_0x3298fc),_0x1b606b='elementEnd'==_0x3298fc['type']?_0x3298fc['previousPosition']['path']['slice'](0x0,-0x1):_0x3298fc['previousPosition']['path'],_0x47a90e=_0x31e2b1['getNodeByPath'](_0x1b606b);_0x47a90e['getAttribute'](_0x10a1a9)>0x0||_0x47a90e['_setAttribute'](_0x10a1a9,_0x31b120[_0x271137++]);}for(const [_0x3efc61,_0x13b192]of _0x548c4d['markers'])_0x3efc61['startsWith']('revision:')||this['_markers']['set'](_0x3efc61,_0x13b192);}const _0x542c97=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x542c97),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x542c97,0x1));const _0x351cf2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x351cf2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x351cf2,0x1));const _0x3b3be3=Array['from'](this['_diffRoots'])['map'](([_0x1eb98d,_0x1c0b17])=>[_0x1eb98d,F(_0x1c0b17)]);this['_saveMetaData'](this['_lastTo'],_0x3b3be3,this['_markers'],_0x2066bd);}['_makeModelFromViewString'](_0x4380e6){const _0x7bea6e=JSON['parse'](_0x4380e6),_0x59fce9=this['editor']['editing']['view']['document'],_0x8bf9ae=new _0x3525f2(_0x59fce9,_0x7bea6e['map'](_0x1aabd3=>V(_0x1aabd3,this['editor'])));return this['editor']['data']['toModel'](_0x8bf9ae);}['_saveMetaData'](_0x5e34b4,_0x230a5b,_0x374286,_0x2ddf09){const _0x2c3762=new Map(_0x230a5b),_0x165e3e=new Map(_0x43b708(_0x2ddf09)),_0x2994c2=new Map();for(const [_0x47d61e,_0xd73782]of _0x374286)_0x2994c2['set'](_0x47d61e,{'start':_0xd73782['start']['clone'](),'end':_0xd73782['end']['clone'](),'rootName':_0xd73782['root']['rootName']});this['_savedMetaData']['set'](_0x5e34b4,{'roots':_0x2c3762,'markers':_0x2994c2,'rootsAttributes':_0x165e3e});}['_removeMetaData'](_0x80ecec){this['_savedMetaData']['delete'](_0x80ecec);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x39dc42,_0x5c55d3=null){let _0xebbe21=null;_0x39dc42['is']('documentFragment')||(_0xebbe21=new ft(_0x39dc42['name'],{'vid_start':null===_0x5c55d3?this['_revisionId']++:_0x5c55d3++}));const _0x12061c=[];for(const _0x42728f of _0x39dc42['getChildren']())if(_0x42728f['is']('element')){_0x12061c['push'](this['_makeIdsRoot'](_0x42728f,_0x5c55d3));const _0x1fe173=_0x12061c[_0x12061c['length']-0x1];null!==_0x5c55d3&&(_0x5c55d3=_0x1fe173['is']('element','$text')?_0x1fe173['getAttribute']('vid')+0x1:_0x1fe173['getAttribute']('vid_end')+0x1);}else{for(let _0x40031b=0x0;_0x40031b<_0x42728f['offsetSize'];_0x40031b++)_0x12061c['push'](new ft('$text',{'vid':null===_0x5c55d3?this['_revisionId']++:_0x5c55d3++}));}if(_0x39dc42['is']('documentFragment')){const _0x5371f2=B(_0x39dc42['rootName']);return _0x5371f2['_insertChild'](0x0,_0x12061c),_0x5371f2;}return _0xebbe21['_setAttribute']('vid_end',null===_0x5c55d3?this['_revisionId']++:_0x5c55d3++),_0xebbe21['_insertChild'](0x0,_0x12061c),_0xebbe21;}['_calculateMetaData'](_0x2069b5,_0x48d44b,_0x14f9c9){this['_reset']();const {roots:_0x421e48,markers:_0xaec9d,rootsAttributes:_0x4ebb24}=this['_savedMetaData']['get'](_0x2069b5);this['_baseRoots']=new Map(_0x421e48),this['_baseRootsAttributes']=new Map(_0x43b708(_0x4ebb24));for(const [_0x485512,_0x5b90b5]of this['_baseRoots'])if('$graveyard'!==_0x485512&&(this['_diffRoots']['set'](_0x485512,F(_0x5b90b5)),this['_diffRootsAttributes']=new Map(_0x43b708(_0x4ebb24)),_0x14f9c9)){const _0x4ebbec=this['_revisionId'];this['_idsRoots']['set'](_0x485512,this['_makeIdsRoot'](_0x5b90b5)),this['_baseIdsRoots']['set'](_0x485512,this['_makeIdsRoot'](_0x5b90b5,_0x4ebbec));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x14f9c9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4ba6b9,_0x17c0c5]of _0xaec9d){const _0x519bdf=this['_baseRoots']['get'](_0x17c0c5['rootName']),_0x1b687b=this['_diffRoots']['get'](_0x17c0c5['rootName']),_0x76f77d=new vt(this['_fixPosition'](_0x17c0c5['start'],_0x519bdf),this['_fixPosition'](_0x17c0c5['end'],_0x519bdf)),_0x232d6f=this['_fixRange'](_0x76f77d,_0x1b687b);_0x519bdf['markers']['set'](_0x4ba6b9,_0x76f77d),this['_markers']['set'](_0x4ba6b9,_0x232d6f);}this['_applyOperations'](_0x2069b5,_0x48d44b,_0x14f9c9);}['_applyOperations'](_0x374659,_0x128a9c,_0x30e8fe){for(const _0x505eff of this['source']['getOperations'](_0x374659,_0x128a9c))this['_handleOperation'](_0x505eff,_0x30e8fe);for(const _0x669ae6 of this['_diffRoots']['values']())_0x669ae6['markers']['clear']();for(const [_0x70312,_0x54b72c]of this['_markers']){this['_diffRoots']['get'](_0x54b72c['root']['rootName'])['markers']['set'](_0x70312,_0x54b72c['clone']());}const _0xf60d40=new Map(),_0x1821e2=new Map();for(const [_0x323a3b,_0x3addc5]of this['_diffRoots'])_0xf60d40['set'](_0x323a3b,F(_0x3addc5)),_0x1821e2['set'](_0x323a3b,this['_diffRootsAttributes']['get'](_0x323a3b));this['_saveMetaData'](_0x128a9c,_0xf60d40,this['_markers'],_0x1821e2);}['_getPreviousFrom'](_0xfcd2a9){const _0x4d51f2=Array['from'](this['_savedMetaData']['keys']());_0x4d51f2['sort']((_0x2e45cd,_0x55b53f)=>_0x2e45cd-_0x55b53f),_0x4d51f2['reverse']();for(const _0xe56ff8 of _0x4d51f2)if(_0xe56ff8<_0xfcd2a9)return _0xe56ff8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xd40569,_0x554a76){const _0x3f44b2=Array['from'](_0x554a76['markers'])['map'](([_0x345ae2,_0x2784db])=>[_0x345ae2,this['_fixRange'](_0x2784db,_0xd40569)]);_0xd40569['markers']=new Map(_0x3f44b2);}['_transformMarkers'](_0x3670b3){for(const _0x1f38c6 of this['_markers']['values']()){const _0x44784b=_0x1f38c6['getTransformedByOperation'](_0x3670b3),_0x498aee=vt['_createFromRanges'](_0x44784b);_0x1f38c6['start']=_0x498aee['start'],_0x1f38c6['end']=_0x498aee['end'];}}['_handleOperation'](_0x2cfbfc,_0x420ddf){if('addRoot'!=_0x2cfbfc['type']&&'detachRoot'!=_0x2cfbfc['type']){if('insert'==_0x2cfbfc['type']){const _0x3e88b6=_0x2cfbfc['position']['root']['rootName'];this['_diffRoots']['has'](_0x3e88b6)||(this['_diffRoots']['set'](_0x3e88b6,B(_0x3e88b6,!0x0)),this['_diffRootsAttributes']['set'](_0x3e88b6,{}),_0x420ddf&&this['_idsRoots']['set'](_0x3e88b6,B(_0x3e88b6,!0x0)));}else{if('addRootAttribute'==_0x2cfbfc['type']||'removeRootAttribute'==_0x2cfbfc['type']||'changeRootAttribute'==_0x2cfbfc['type'])return void this['_handleRootAttributeOperation'](_0x2cfbfc);'marker'==_0x2cfbfc['type']&&this['_handleMarkerOperation'](_0x2cfbfc);}if('marker'!==_0x2cfbfc['type']){const _0x33354d=this['_cloneOperation'](_0x2cfbfc,this['_diffRoots']);_0x33354d['_execute'](),this['_transformMarkers'](_0x33354d);}if(_0x420ddf)switch(_0x2cfbfc['type']){case'insert':this['_handleInsertOperation'](_0x2cfbfc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2cfbfc);break;case'merge':this['_handleMergeOperation'](_0x2cfbfc);break;case'split':this['_handleSplitOperation'](_0x2cfbfc);}}else this['_handleRootOperation'](_0x2cfbfc,_0x420ddf);}['_cloneOperation'](_0x145c36,_0x46fd68){const _0x341a2a=_0x145c36['clone']();return _0x341a2a['_authorId']=_0x145c36['_authorId'],this['_fixOperation'](_0x341a2a,_0x46fd68),_0x341a2a;}['_getBaseVids'](_0x2c482d){return _0x2c482d['map'](_0x10f69b=>{const _0x54c296=this['_getVidAttributeName'](_0x10f69b);return Number(_0x10f69b['item']['getAttribute'](_0x54c296));});}['_generateTape'](_0x6f937b,_0x1d52da){if(_0x6f937b['is']('element','$text'))_0x1d52da['push']({'item':_0x6f937b,'type':'text'});else{_0x6f937b['is']('element')&&_0x1d52da['push']({'item':_0x6f937b,'type':'elementStart'});for(const _0xd3de1b of _0x6f937b['getChildren']())this['_generateTape'](_0xd3de1b,_0x1d52da);_0x6f937b['is']('element')&&_0x1d52da['push']({'item':_0x6f937b,'type':'elementEnd'});}return _0x1d52da;}['_getState'](){const _0x3af72b=new Map(this['_touched']),_0x49794e=new Map(_0x3af72b),_0x2a33d8=new Map(),_0x1ce0c2={'insertions':{},'deletions':{}},_0x50a24c={'insertions':{},'deletions':{}},_0x652815=new Map(),_0x222da7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x222da7['delete']('$graveyard');for(const _0x576556 of _0x222da7){const _0x4a82ab=this['_diffRoots']['get'](_0x576556)||B(_0x576556,!0x1),_0x12493c=this['_baseRoots']['get'](_0x576556)||B(_0x576556,!0x1);_0x4a82ab['isAttached']()||_0x12493c['isAttached']()?(_0x1ce0c2['insertions'][_0x576556]=F(_0x4a82ab),_0x1ce0c2['deletions'][_0x576556]=F(_0x12493c),this['_copyMarkers'](_0x1ce0c2['deletions'][_0x576556],_0x12493c),this['_copyMarkers'](_0x1ce0c2['insertions'][_0x576556],_0x4a82ab),_0x50a24c['insertions'][_0x576556]=this['_generateTape'](this['_idsRoots']['get'](_0x576556),[]),_0x50a24c['deletions'][_0x576556]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x576556)||B(_0x576556,!0x1),[])):_0x222da7['delete'](_0x576556);}for(const _0x2cd0e3 of _0x222da7){const _0x472944=_0x50a24c['insertions'][_0x2cd0e3];for(const _0x22bc7f of _0x472944){const _0x3d5513=this['_getVidAttributeName'](_0x22bc7f),_0x45941e=_0x22bc7f['item']['getAttribute'](_0x3d5513);_0x49794e['delete'](_0x45941e),_0x45941e>=this['_startingRevisionId']&&_0x2a33d8['set'](_0x45941e,_0x3af72b['get'](_0x45941e));}}for(const _0x2a1e46 of _0x222da7){const _0x39d07f=_0x50a24c['insertions'][_0x2a1e46],_0x5a2c61=this['_getBaseVids'](_0x50a24c['deletions'][_0x2a1e46]);let _0xc2383f=0x0;for(const _0x190207 of _0x39d07f){const _0x5b15d=this['_getVidAttributeName'](_0x190207),_0x259b84=_0x190207['item']['getAttribute'](_0x5b15d);if(!_0x2a33d8['has'](_0x259b84)&&!_0x652815['has'](_0x259b84)){if(_0x49794e['has'](_0x259b84))_0xc2383f++;else{if(_0x259b84!=_0x5a2c61[_0xc2383f]){const _0x21325c=_0x3af72b['get'](_0x259b84)||_0x3af72b['get'](_0x5a2c61[_0xc2383f]);for(;_0x259b84!=_0x5a2c61[_0xc2383f];)_0x49794e['has'](_0x5a2c61[_0xc2383f])||(_0x652815['set'](_0x5a2c61[_0xc2383f],_0x21325c),_0x3af72b['set'](_0x5a2c61[_0xc2383f],_0x21325c)),_0xc2383f++;}_0xc2383f++;}}}}for(const _0x38e7b2 of _0x222da7){const _0x190c84=_0x50a24c['insertions'][_0x38e7b2];for(const _0x39ca4d of _0x190c84){const _0x1f54aa=this['_getVidAttributeName'](_0x39ca4d),_0x142827=_0x39ca4d['item']['getAttribute'](_0x1f54aa);if(_0x652815['has'](_0x142827)){const _0x5c08d8=_0x652815['get'](_0x142827);_0x49794e['has'](_0x142827)||_0x49794e['set'](_0x142827,{..._0x5c08d8}),_0x2a33d8['set'](_0x142827,{..._0x5c08d8});}}}for(const _0xa3f183 of _0x49794e['keys']())_0xa3f183>=this['_startingRevisionId']&&_0x49794e['delete'](_0xa3f183);const _0x4eddd0=new Map();for(const _0x2b7fe6 of _0x222da7){let _0x4794b2=_0x50a24c['insertions'][_0x2b7fe6];for(const _0x1b0741 of _0x4794b2)if(_0x1b0741['item']['is']('element','tableCell')){const _0x251bab=this['_getVidAttributeName'](_0x1b0741),_0xcba4fc=_0x1b0741['item']['getAttribute'](_0x251bab);if(_0x2a33d8['has'](_0xcba4fc)){const _0x29ba37=_0x1b0741['item']['parent']['parent']['getAttribute']('vid_start'),_0xb976=_0x4eddd0['get'](_0x29ba37)||new Set();_0xb976['add'](_0x2a33d8['get'](_0xcba4fc)['userId']),_0x4eddd0['set'](_0x29ba37,_0xb976);}}_0x4794b2=_0x50a24c['deletions'][_0x2b7fe6];for(const _0x5d4031 of _0x4794b2)if(_0x5d4031['item']['is']('element','tableCell')){const _0xb16a0c=this['_getVidAttributeName'](_0x5d4031),_0x3efc6f=_0x5d4031['item']['getAttribute'](_0xb16a0c);if(_0x49794e['has'](_0x3efc6f)){const _0xddc91a=_0x5d4031['item']['parent']['parent']['getAttribute']('vid_start'),_0x182531=_0x4eddd0['get'](_0xddc91a)||new Set();_0x182531['add'](_0x49794e['get'](_0x3efc6f)['userId']),_0x4eddd0['set'](_0xddc91a,_0x182531);}}for(const _0x10b5f9 of _0x4eddd0['keys']())(_0x2a33d8['has'](_0x10b5f9)||_0x49794e['has'](_0x10b5f9))&&_0x4eddd0['delete'](_0x10b5f9);}for(const _0x56b43f of _0x222da7){const _0x326d67=_0x50a24c['insertions'][_0x56b43f];let _0x32a695=null,_0xa2abb2=null;for(const _0x2333a7 of _0x326d67){const _0x148a9d=this['_getVidAttributeName'](_0x2333a7),_0x22569f=_0x2333a7['item']['getAttribute'](_0x148a9d),_0xfb3ca6=_0x4eddd0['get'](_0x22569f);_0xfb3ca6&&'elementStart'==_0x2333a7['type']&&(_0x32a695=Array['from'](_0xfb3ca6)[0x0],_0xa2abb2=_0x2333a7['item']['getAttribute']('vid_end')),_0x32a695&&(_0x49794e['set'](_0x22569f,{'userId':_0x32a695}),_0x2a33d8['set'](_0x22569f,{'userId':_0x32a695})),_0x22569f==_0xa2abb2&&(_0x32a695=null,_0xa2abb2=null);}}const _0x2ee325={},_0x13c9ef=new Set();for(const _0x3d5c86 of _0x222da7){const _0xe70ca7=_0x1ce0c2['deletions'][_0x3d5c86],_0x118f70=_0x1ce0c2['insertions'][_0x3d5c86];for(const {userId:_0x1cc1bd}of this['_touchedMarkers']['values']())null!==_0x1cc1bd&&_0x13c9ef['add'](_0x1cc1bd);for(const {userId:_0x25b9a9}of this['_touchedRoots']['values']())null!==_0x25b9a9&&_0x13c9ef['add'](_0x25b9a9);this['_markChanges'](_0x118f70,_0x50a24c['insertions'][_0x3d5c86],_0x2a33d8,'insertion',_0x13c9ef),this['_markChanges'](_0xe70ca7,_0x50a24c['deletions'][_0x3d5c86],_0x49794e,'deletion',_0x13c9ef),_0x2ee325[_0x3d5c86]={'insertions':this['_prepareViewToSave'](_0x118f70),'deletions':this['_prepareViewToSave'](_0xe70ca7),'attachChange':this['_touchedRoots']['get'](_0x3d5c86)||null,'attributesBefore':_0x43b708(this['_baseRootsAttributes']['get'](_0x3d5c86))||{},'attributesAfter':_0x43b708(this['_diffRootsAttributes']['get'](_0x3d5c86))};}return{'diffData':_0x2ee325,'authorsIds':Array['from'](_0x13c9ef)};}['_processRootBeforeSave'](_0x5cad56){for(const [,_0x5a7490]of _0x5cad56['markers']){const _0x2687ca=_0x5a7490['start']['getAncestors']()['filter'](_0x3f8744=>'tableCell'==_0x3f8744['name']);for(const _0x38fffe of _0x2687ca)0x1==_0x38fffe['childCount']&&_0x38fffe['getChild'](0x0)['is']('element','paragraph')&&_0x38fffe['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x14bfa6){this['_processRootBeforeSave'](_0x14bfa6);const _0x285bf4=this['editor']['data']['toView'](_0x14bfa6,{}),_0x701c99=Array['from'](_0x285bf4['getChildren']())['map'](_0x4e87dc=>this['_getViewJson'](_0x4e87dc));return JSON['stringify'](_0x701c99);}['_getViewJson'](_0x40974b){if(_0x40974b['is']('$text'))return _0x40974b['data'];{const _0x1b6894=_0x40974b;return{'type':Object['keys'](C)['find'](_0x15ff49=>_0x40974b instanceof C[_0x15ff49]),'name':_0x1b6894['name'],'attributes':Array['from'](_0x1b6894['getAttributes']()),'children':Array['from'](_0x1b6894['getChildren']())['map'](_0x3bfaec=>this['_getViewJson'](_0x3bfaec))};}}['_markChanges'](_0x5dd870,_0x4dad3b,_0x422223,_0x48651d,_0x5eb9e9){let _0x4524cc=null,_0x15fdae=null,_0x1e4972=0x0;const _0x18160f=this['editor']['model'];for(let _0x125e7b=0x0;_0x125e7b<_0x4dad3b['length'];_0x125e7b++){const _0x35ab87=this['_getVidAttributeName'](_0x4dad3b[_0x125e7b]),_0x36ea7e=_0x4dad3b[_0x125e7b]['item']['getAttribute'](_0x35ab87),_0x53292c=_0x422223['get'](_0x36ea7e),_0x5c3cf4=_0x125e7b==_0x4dad3b['length']-0x1;(!_0x4524cc&&_0x53292c&&(_0x4524cc=_0x53292c,_0x15fdae=_0x4dad3b[_0x125e7b]),_0x4524cc&&(!_0x53292c||_0x53292c['userId']!=_0x4524cc['userId']))&&(_0x581277(_0x53292c,J(_0x15fdae,_0x5dd870,_0x18160f),J(_0x4dad3b[_0x125e7b],_0x5dd870,_0x18160f)),_0x4524cc=_0x53292c||null,_0x15fdae=_0x53292c?_0x4dad3b[_0x125e7b]:null),_0x4524cc&&_0x5c3cf4&&_0x581277(_0x53292c,J(_0x15fdae,_0x5dd870,_0x18160f),q(_0x4dad3b[_0x125e7b],_0x5dd870,_0x18160f));}function _0x581277(_0x16bb49,_0x430567,_0x524742){const _0x56e07c=_0x4524cc['userId'],_0x20ebc9='revision:'+_0x48651d+':'+_0x56e07c+':'+_0x1e4972++,_0x371eac=_0x18160f['createRange'](_0x430567,_0x524742);_0x5dd870['markers']['set'](_0x20ebc9,_0x371eac),null!==_0x56e07c&&_0x5eb9e9['add'](_0x56e07c);}}['_getVidAttributeName'](_0x1805b9){switch(_0x1805b9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3a6c80,_0x51efec){_0x3a6c80['baseVersion']=null;for(const _0x288cab in _0x3a6c80){const _0x11dc0b=_0x3a6c80[_0x288cab];if(_0x11dc0b instanceof gt){const _0x39bd94=_0x51efec['get'](_0x11dc0b['root']['rootName']);_0x3a6c80[_0x288cab]=this['_fixPosition'](_0x11dc0b,_0x39bd94);}if(_0x11dc0b instanceof vt){const _0x812c92=_0x51efec['get'](_0x11dc0b['root']['rootName']);_0x3a6c80[_0x288cab]=this['_fixRange'](_0x11dc0b,_0x812c92);}'root'===_0x288cab&&(_0x3a6c80['root']=_0x51efec['get'](_0x3a6c80['root']['rootName']));}}['_fixRange'](_0x2db4c7,_0x42b665){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2db4c7['start'],_0x42b665),this['_fixPosition'](_0x2db4c7['end'],_0x42b665));}['_fixPosition'](_0x201b27,_0x4cb675){return this['editor']['model']['createPositionFromPath'](_0x4cb675,_0x201b27['path'],_0x201b27['stickiness']);}['_handleInsertOperation'](_0x195e6a){const _0x35a593=this['_idsRoots']['get'](_0x195e6a['position']['root']['rootName']),_0xc5199a=this['_fixPosition'](_0x195e6a['position'],_0x35a593),_0x2edb8d=null===_0x195e6a['_authorId']?null:_0x195e6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4327b9=_0xc5199a['parent'],_0x525b7f=this['_revisionId'],_0x3e0f95=[];for(const _0x1d58a2 of _0x195e6a['nodes'])if(_0x1d58a2['is']('element'))_0x3e0f95['push'](this['_makeIdsRoot'](_0x1d58a2));else{for(let _0x3cd07a=0x0;_0x3cd07a<_0x1d58a2['offsetSize'];_0x3cd07a++)_0x3e0f95['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x443a4c=this['_revisionId'];for(let _0x7362f7=_0x525b7f;_0x7362f7<_0x443a4c;_0x7362f7++)this['_touched']['set'](_0x7362f7,{'userId':_0x2edb8d});_0x4327b9['_insertChild'](_0xc5199a['offset'],_0x3e0f95);}['_handleMoveOperation'](_0x309177){(_0x309177=this['_cloneOperation'](_0x309177,this['_idsRoots']))['_execute']();const _0x4066cd=null===_0x309177['_authorId']?null:_0x309177['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c9058=_0x309177['getMovedRangeStart'](),_0x3313ee=_0x5c9058['parent'],_0x162285=_0x5c9058['offset'];!function _0x1d99f5(_0x25c5a8,_0x8e2f45,_0x220a55,_0x569f5b){for(let _0x55eeec=_0x220a55;_0x55eeec<_0x569f5b;_0x55eeec++){const _0x2df9bc=_0x8e2f45['getChild'](_0x55eeec);_0x2df9bc['is']('element','$text')?_0x25c5a8['set'](_0x2df9bc['getAttribute']('vid'),{'userId':_0x4066cd}):(_0x25c5a8['set'](_0x2df9bc['getAttribute']('vid_start'),{'userId':_0x4066cd}),_0x1d99f5(_0x25c5a8,_0x2df9bc,0x0,_0x2df9bc['childCount']),_0x25c5a8['set'](_0x2df9bc['getAttribute']('vid_end'),{'userId':_0x4066cd}));}}(this['_touched'],_0x3313ee,_0x162285,_0x162285+_0x309177['howMany']);}['_handleMergeOperation'](_0x38634b){const _0xd8958a=null===(_0x38634b=this['_cloneOperation'](_0x38634b,this['_idsRoots']))['_authorId']?null:_0x38634b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e6351=_0x38634b['targetPosition']['parent'],_0x1212a0=_0x38634b['sourcePosition']['parent'],_0x516b32=_0x2e6351['getAttribute']('vid_end'),_0x3cc6a2=_0x1212a0['getAttribute']('vid_start');_0x2e6351['_setAttribute']('vid_end',_0x1212a0['getAttribute']('vid_end')),_0x1212a0['_setAttribute']('vid_end',_0x516b32),this['_touched']['set'](_0x3cc6a2,{'userId':_0xd8958a}),this['_touched']['set'](_0x516b32,{'userId':_0xd8958a}),_0x38634b['_execute']();}['_handleSplitOperation'](_0x3cfd15){const _0x203c3e=null===(_0x3cfd15=this['_cloneOperation'](_0x3cfd15,this['_idsRoots']))['_authorId']?null:_0x3cfd15['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x394600=_0x3cfd15['graveyardPosition'],_0x152bd3=_0x3cfd15['splitPosition']['parent'];_0x3cfd15['_execute']();const _0x122bb4=_0x152bd3['getAttribute']('vid_end'),_0x291715=_0x3cfd15['insertionPosition']['nodeAfter'];if(_0x394600){const _0x46b14f=_0x291715['getAttribute']('vid_end'),_0x5e07d4=_0x152bd3['getAttribute']('vid_end');_0x152bd3['_setAttribute']('vid_end',_0x46b14f),_0x291715['_setAttribute']('vid_end',_0x5e07d4),this['_touched']['set'](_0x152bd3['getAttribute']('vid_end'),{'userId':_0x203c3e}),this['_touched']['set'](_0x291715['getAttribute']('vid_start'),{'userId':_0x203c3e});}else{const _0xbc23a3=this['_revisionId']++,_0x1487cc=this['_revisionId']++;_0x152bd3['_setAttribute']('vid_end',_0xbc23a3),_0x291715['_setAttribute']('vid_start',_0x1487cc),_0x291715['_setAttribute']('vid_end',_0x122bb4),this['_touched']['set'](_0xbc23a3,{'userId':_0x203c3e}),this['_touched']['set'](_0x1487cc,{'userId':_0x203c3e});}}['_handleMarkerOperation'](_0x21e09f){if(!_0x21e09f['affectsData'])return;const _0x3fc344=(_0x21e09f=this['_cloneOperation'](_0x21e09f,this['_diffRoots']))['oldRange']?_0x21e09f['oldRange']['root']:null,_0x312299=_0x21e09f['newRange']?_0x21e09f['newRange']['root']:null;_0x3fc344&&this['_markers']['delete'](_0x21e09f['name']),_0x312299&&this['_markers']['set'](_0x21e09f['name'],_0x21e09f['newRange']['clone']());const _0x51a604=null===_0x21e09f['_authorId']?null:_0x21e09f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fb08b=_0x21e09f['name'];if(!this['_touchedMarkers']['has'](_0x1fb08b))return void this['_touchedMarkers']['set'](_0x1fb08b,{'range':_0x21e09f['oldRange'],'userId':_0x51a604});const _0x46e919=this['_touchedMarkers']['get'](_0x1fb08b),_0x319d65=_0x46e919['range'],_0x25b589=_0x21e09f['newRange'];null==_0x319d65&&null==_0x25b589||_0x319d65&&_0x25b589&&_0x319d65['isEqual'](_0x25b589)?this['_touchedMarkers']['delete'](_0x21e09f['name']):_0x46e919['userId']=_0x51a604;}['_handleRootOperation'](_0x51051e,_0x474b38){this['_diffRoots']['has'](_0x51051e['rootName'])?this['_diffRoots']['get'](_0x51051e['rootName'])['_isAttached']=_0x51051e['isAdd']:(this['_diffRoots']['set'](_0x51051e['rootName'],B(_0x51051e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x51051e['rootName'],{}),_0x474b38&&this['_idsRoots']['set'](_0x51051e['rootName'],B(_0x51051e['rootName'],!0x0)));const _0x2b79e1=null===_0x51051e['_authorId']?null:_0x51051e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ab213=this['_touchedRoots']['get'](_0x51051e['rootName']);_0x3ab213&&_0x3ab213['userId']===_0x2b79e1?this['_touchedRoots']['delete'](_0x51051e['rootName']):this['_touchedRoots']['set'](_0x51051e['rootName'],{'userId':_0x2b79e1,'isAttached':_0x51051e['isAdd']});}['_handleRootAttributeOperation'](_0x5eab75){const _0x31701d=this['_diffRootsAttributes']['get'](_0x5eab75['root']['rootName']);null===_0x5eab75['newValue']?delete _0x31701d[_0x5eab75['key']]:_0x31701d[_0x5eab75['key']]=_0x5eab75['newValue'];}}function F(_0x2788e0){const _0x38c227=B(_0x2788e0['rootName'],_0x2788e0['isAttached']());for(const _0x4c0d56 of _0x2788e0['getChildren']()){const _0x25a9ca=_0x4c0d56['_clone'](!0x0);_0x38c227['_appendChild'](_0x25a9ca);}return _0x38c227;}function B(_0x2eaad3,_0x247664=!0x0){const _0x350071=new wt();return _0x350071['rootName']=_0x2eaad3,_0x350071['_isAttached']=_0x247664,_0x350071['isAttached']=()=>_0x350071['_isAttached'],_0x350071;}function J(_0x3ebd24,_0x3ac6b2,_0x31956b){const _0xed3586='elementEnd'==_0x3ebd24['type']?_0x31956b['createPositionAt'](_0x3ebd24['item'],'end'):_0x31956b['createPositionBefore'](_0x3ebd24['item']);return _0x31956b['createPositionFromPath'](_0x3ac6b2,_0xed3586['path'],_0xed3586['stickiness']);}function q(_0x14b052,_0xb2bab,_0x4c5f41){const _0x18b250='elementStart'==_0x14b052['type']?_0x4c5f41['createPositionAt'](_0x14b052['item'],0x0):_0x4c5f41['createPositionAfter'](_0x14b052['item']);return _0x4c5f41['createPositionFromPath'](_0xb2bab,_0x18b250['path'],_0x18b250['stickiness']);}class ns extends _0x2172d8{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1e3f7,_0x271a15){super(_0x1e3f7),this['focusTracker']=new _0x52b7bf(),this['keystrokes']=new _0x2dbff8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x271a15),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x320123({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b9310=_0x5e41a4=>_0x5e41a4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b9310),this['keystrokes']['set']('arrowleft',_0x2b9310),this['keystrokes']['set']('arrowup',_0x2b9310),this['keystrokes']['set']('arrowdown',_0x2b9310);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c2d23){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c2d23['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a6080){const _0x35bc64=new at(this['locale'],_0x326b64),_0x4f1cbe=_0x35bc64['fieldView'];_0x4f1cbe['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x290e48=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a6080&&(_0x290e48+='\x20('+R(this['locale'],'optional')+')'),(_0x35bc64['label']=_0x290e48,_0x4f1cbe['on']('input',()=>{this['revisionNameInputValue']=_0x4f1cbe['element']['value']['trim']();}),_0x35bc64);}}class u extends _0x5c4b81{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x27b5d5=this['editor'],_0x44c1fd=_0x27b5d5['plugins']['get']('RevisionTracker');_0x27b5d5['ui']['componentFactory']['add']('revisionHistory',_0x11368f=>{const _0x5c0d9d=_0x3f6297(_0x11368f),_0xff7c7e=_0x5c0d9d['panelView']['children'],_0x14f11b=new te(_0x11368f),_0x53e856=new _0x22847d(_0x11368f),_0x467b32=new _0x1af197(_0x11368f),_0x28ea40=new _0x22847d(_0x11368f),_0x8eeb39=new _0x1af197(_0x11368f);return _0x5c0d9d['bind']('isEnabled')['to'](_0x44c1fd,'isReady',_0x44c1fd,'isEnabled',_0x27b5d5,'isReadOnly',(_0x36e513,_0x47b7ae,_0x4b328a)=>_0x36e513&&_0x47b7ae&&!_0x4b328a),_0x5c0d9d['buttonView']['set']({'icon':_0x3ea365['history'],'label':R(_0x11368f,'Revision\x20history'),'tooltip':!0x0}),_0x467b32['set']({'label':R(_0x11368f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x467b32['bind']('isEnabled')['to'](_0x44c1fd,'isReady',_0x44c1fd,'isEnabled',_0x27b5d5,'isReadOnly',(_0x53588c,_0x3cead8,_0x42ff08)=>_0x53588c&&_0x3cead8&&!_0x42ff08),_0x467b32['on']('execute',()=>this['_showDialog']()),_0x8eeb39['set']({'label':R(_0x11368f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x8eeb39['bind']('isEnabled')['to'](_0x44c1fd,'isReady',_0x27b5d5,'isReadOnly',(_0xd84a1c,_0x35724b)=>_0xd84a1c&&!_0x35724b),_0x8eeb39['on']('execute',()=>{_0x27b5d5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c0d9d['isOpen']=!0x1,_0x27b5d5['editing']['view']['focus']();}),_0x53e856['children']['add'](_0x467b32),_0x28ea40['children']['add'](_0x8eeb39),_0x14f11b['role']='menu',_0x14f11b['items']['addMany']([_0x53e856,_0x28ea40]),_0xff7c7e['add'](_0x14f11b),_0x5c0d9d;}),_0x27b5d5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5a7b92=this['editor'],_0x36339a=_0x5a7b92['locale'],_0x2891a1=new _0x415284(_0x36339a),_0x5b5828=new _0x2aac96(_0x36339a);_0x2891a1['buttonView']['set']({'icon':_0x3ea365['history'],'label':R(_0x36339a,'Revision\x20history')});const _0x4f6002=new _0x512e9b(_0x36339a,_0x2891a1),_0x22d7f3=new _0x2c2ab0(_0x36339a);_0x22d7f3['set']({'label':R(_0x36339a,'Save\x20current\x20revision')}),_0x22d7f3['delegate']('execute')['to'](_0x2891a1),_0x22d7f3['on']('execute',()=>{this['_showDialog']();}),_0x4f6002['children']['add'](_0x22d7f3),_0x5b5828['items']['add'](_0x4f6002);const _0xc3c476=new _0x512e9b(_0x36339a,_0x2891a1),_0x26503b=new _0x2c2ab0(_0x36339a);return _0x26503b['set']({'label':R(_0x36339a,'Open\x20revision\x20history')}),_0x26503b['delegate']('execute')['to'](_0x2891a1),_0x26503b['on']('execute',()=>{_0x5a7b92['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xc3c476['children']['add'](_0x26503b),_0x5b5828['items']['add'](_0xc3c476),_0x2891a1['panelView']['children']['add'](_0x5b5828),_0x2891a1;}['_showDialog'](){const _0x4f5191=this['editor'],_0x28a2c4=_0x4f5191['locale'],_0x4e41fb=_0x4f5191['plugins']['get']('Dialog'),_0x49455f=_0x4f5191['plugins']['get']('RevisionTracker');function _0x1ca083(_0x225415){_0x4f5191['config']['get']('revisionHistory.requireRevisionName')&&''===_0x225415['revisionName']?_0x225415['revisionNameInputView']['errorText']=R(_0x28a2c4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4f5191['plugins']['get'](l)['saveRevision']({'name':_0x225415['revisionName']}),_0x4e41fb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1ca083(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e41fb['show']({'id':'revisionSave','title':R(_0x28a2c4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4f5191['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e41fb['hide']()},{'label':R(_0x4f5191['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4b5e42){_0x4b5e42['bind']('isEnabled')['to'](_0x49455f,'isReady',_0x49455f,'isEnabled',_0x4f5191,'isReadOnly',(_0x5c92ba,_0x31329a,_0x3cf06f)=>_0x5c92ba&&_0x31329a&&!_0x3cf06f);},'onExecute':()=>_0x1ca083(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x357d6f=this['editor'],_0x5a5445=_0x357d6f['locale'];this['_saveRevisionFormView']=new ns(_0x5a5445,_0x357d6f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2172d8{['changeId'];['_model'];constructor(_0x11e513,_0x240851){super(_0x11e513),this['_model']=_0x240851,this['changeId']=_0x240851['id'];const _0x43ecfe=this['bindTemplate'],_0x4dba91=R(_0x11e513,_0x240851['data']['isSuggestion']?'Suggested\x20by':'add'==_0x240851['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x240851['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x43ecfe['to']('type',_0x13cf02=>'ck-revision-change__'+_0x13cf02)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4dba91}]},{'text':'\x20'+_0x240851['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x587b1f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xfc57f0){super(),this['id']=_0xfc57f0['id']||_0xe2f24(),this['author']=_0xfc57f0['author'],this['type']=_0xfc57f0['type'],this['data']=_0xfc57f0['data']||{},this['rootName']=_0xfc57f0['rootName'],this['set']('createdAt',_0xfc57f0['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xae33e,_0x26c618){this['newRevisionId']=_0xae33e,this['oldRevisionId']=_0x26c618,this['changes']=new _0xd8b86f();}['_setChanges'](_0x524548){for(const _0x22e4b1 of _0x524548)this['changes']['add'](_0x22e4b1);}}const Z={'c':_0x575e11,'a':_0x92b50a,'e':_0x206687,'r':_0x42e784,'u':_0x45836a};class d extends _0x5c4b81{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x280338,_0x5ba648,j];}constructor(_0x436f52){super(_0x436f52),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5cfe40,_0x1970bc,_0x3574a0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x6afd42=>{for(const _0x20b8f8 of this['editor']['editing']['view']['document']['roots'])_0x3574a0?_0x6afd42['removeClass']('ck-editor__editable__overlay',_0x20b8f8):_0x6afd42['addClass']('ck-editor__editable__overlay',_0x20b8f8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x33727b=>null!==_0x33727b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x283f2d,_0x3d3926,_0x176147)=>_0x283f2d&&_0x176147?_0x3d3926['changes']['getIndex'](_0x176147):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3c83bc,_0x243fbc)=>_0x3c83bc?_0x243fbc['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5ba648);}['init'](){const _0x4685cb=this['editor'],_0x54e78f=new bt(_0x4685cb,{'direction':'backward'}),_0x21d2ce=new bt(_0x4685cb,{'direction':'forward'});(_0x4685cb['commands']['add']('showPreviousChange',_0x54e78f),_0x4685cb['commands']['add']('showNextChange',_0x21d2ce),_0x4685cb['commands']['add']('restoreRevision',new yt(_0x4685cb)),this['on']('change:numberOfChanges',()=>{_0x54e78f['refresh'](),_0x21d2ce['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4685cb['enableReadOnlyMode']('revision-viewer'),_0x4685cb['plugins']['has']('WidgetToolbarRepository'))&&_0x4685cb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x48bbb3){await this['loadRevisionData'](_0x48bbb3);const _0x4679a8={};for(const _0x51ca1e in _0x48bbb3['diffData']){if(_0x48bbb3['diffData'][_0x51ca1e]['attachChange']&&!_0x48bbb3['diffData'][_0x51ca1e]['attachChange']['isAttached'])continue;const _0x44d6e1=this['_removeRevisionMarkers'](JSON['parse'](_0x48bbb3['diffData'][_0x51ca1e]['insertions'])),_0x500667=this['editor']['editing']['view']['document'],_0x44c3b6=new _0x3525f2(_0x500667,_0x44d6e1['map'](_0x373017=>this['_getViewObj'](_0x373017)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4679a8[_0x51ca1e]=this['editor']['data']['processor']['toData'](_0x44c3b6),this['editor']['data']['processor']['useFillerType']('default');}return _0x4679a8;}async['getRevisionRootsAttributes'](_0x5b42a3){await this['loadRevisionData'](_0x5b42a3);const _0x2f3d82={};for(const _0x108990 in _0x5b42a3['diffData'])_0x5b42a3['diffData'][_0x108990]['attachChange']&&!_0x5b42a3['diffData'][_0x108990]['attachChange']['isAttached']||(_0x2f3d82[_0x108990]=_0x5b42a3['diffData'][_0x108990]['attributesAfter']||{});return _0x2f3d82;}['_removeRevisionMarkers'](_0x4dc785){return(_0x4dc785=_0x4dc785['filter'](_0x1736a4=>!_0x1736a4['name']||'revision-start'!==_0x1736a4['name']&&'revision-end'!==_0x1736a4['name']))['forEach'](_0x3c3430=>{'string'!=typeof _0x3c3430&&(_0x3c3430['children']=this['_removeRevisionMarkers'](_0x3c3430['children']),_0x3c3430['attributes']=_0x3c3430['attributes']['filter'](_0x10bf1a=>!_0x10bf1a[0x0]['startsWith']('data-revision-')));}),_0x4dc785;}async['compare'](_0x5aaf73,_0x5c3afb,_0x26f7c1=!0x1){if(!this['isEnabled'])return;const _0x1be5a5=this['diff'],_0x4e3450=this['repository'],_0xa377ef='string'==typeof _0x5aaf73?_0x4e3450['getRevision'](_0x5aaf73):_0x5aaf73,_0x24ecd9='string'==typeof _0x5c3afb?_0x4e3450['getRevision'](_0x5c3afb):_0x5c3afb,_0x3f3af8=_0xa377ef['id'],_0x3fe8dc=_0x24ecd9?_0x24ecd9['id']:null;if(!_0x26f7c1&&this['diff']&&this['diff']['newRevisionId']===_0x3f3af8&&this['diff']['oldRevisionId']===_0x3fe8dc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3f3af8,_0x3fe8dc);const _0x52118d=this['_getRevisionsRange'](_0xa377ef,_0x24ecd9,!0x0)['map'](_0x68d457=>this['loadRevisionData'](_0x68d457));return _0x52118d['push'](new Promise(_0x2f56b8=>{setTimeout(_0x2f56b8,0x14);})),Promise['all'](_0x52118d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4af5db=this['_getDiff'](_0x3f3af8,_0x3fe8dc);for(const _0x88f62 of _0x4af5db['changes'])this['_changeIdToChange']['set'](_0x88f62['id'],_0x88f62);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x325588=>{for(const _0x4d38a9 of this['editor']['model']['document']['getRootNames']())_0x325588['detachRoot'](_0x4d38a9);for(const _0x110b01 of Object['keys'](_0x4af5db['model'])){const _0x14030c=_0x325588['addRoot'](_0x110b01);for(const _0x47bfcd of Object['keys'](_0x4af5db['attributes'][_0x110b01]))_0x325588['setAttribute'](_0x47bfcd,_0x4af5db['attributes'][_0x110b01][_0x47bfcd],_0x14030c);_0x325588['insert'](_0x4af5db['model'][_0x110b01],_0x14030c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4af5db['changes'])),this['isReady']=!0x0;})['catch'](_0x5693eb=>{console['error'](_0x5693eb),this['_cleanUp'](),_0x1be5a5&&(this['diff']=_0x1be5a5),this['isReady']=!0x0;});}['addRevisionData'](_0x549232,_0x34044e){const _0x98fa1e=this['repository']['createRevision'](_0x549232);return _0x98fa1e['on']('_update',(_0x14f710,_0x59fbf8,_0x4d8414)=>_0x34044e(_0x59fbf8,_0x4d8414,_0x98fa1e)),this['repository']['addRevision'](_0x98fa1e),_0x98fa1e;}['loadRevisionData'](_0x41b1a4){if(!_0x41b1a4||_0x41b1a4['diffData'])return Promise['resolve']();{const _0x1ca2f9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1ca2f9,'revisionId':_0x41b1a4['id']})['then'](_0x56582d=>{_0x41b1a4['_update']({'diffData':_0x56582d['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2314c1=>{for(const _0x3a2274 of this['editor']['model']['document']['getRootNames']())_0x2314c1['detachRoot'](_0x3a2274);});}['_sortAndFilterDiffChanges'](_0x5008a4){const _0x14d56d=[],_0x215e43=new Map();for(const _0x35006b of this['editor']['model']['document']['getRootNames']()){const _0x3b8e5c=this['editor']['editing']['view']['getDomRoot'](_0x35006b);if(!_0x3b8e5c)continue;const _0x2f1a30=_0x3b8e5c['getClientRects']()['item'](0x0);_0x2f1a30&&(_0x14d56d['push'](_0x35006b),_0x215e43['set'](_0x35006b,_0x2f1a30));}return _0x14d56d['sort']((_0x517915,_0x2e2fb4)=>{const _0x3cb9f6=_0x215e43['get'](_0x517915),_0x53aceb=_0x215e43['get'](_0x2e2fb4);return _0x3cb9f6['y']-_0x53aceb['y']||_0x3cb9f6['x']-_0x53aceb['x'];}),(_0x5008a4=_0x5008a4['filter'](_0x3831b7=>_0x14d56d['includes'](_0x3831b7['rootName'])))['sort']((_0x462258,_0x225325)=>_0x14d56d['indexOf'](_0x462258['rootName'])-_0x14d56d['indexOf'](_0x225325['rootName'])),_0x5008a4;}['_makeTape'](_0x1098af){const _0xc2ad30=Array['from'](_0x1098af['markers'])['filter'](([_0x2c2839,_0x39cc80])=>_0x2c2839['startsWith']('revision:')&&!_0x39cc80['isCollapsed']),_0x3a0038=Array['from'](this['editor']['model']['createRangeIn'](_0x1098af)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc2ad30['length'])for(const _0x24af51 of _0x3a0038){const [_0x4fc470,_0x2a80c0]=_0xc2ad30[0x0],[,_0x5613c6,_0x57f82b]=_0x4fc470['split'](':');if(_0x2a80c0['end']['isEqual'](_0x24af51['nextPosition'])&&_0xc2ad30['shift'](),(_0x24af51['previousPosition']['isEqual'](_0x2a80c0['start'])||_0x24af51['previousPosition']['isAfter'](_0x2a80c0['start']))&&('insertion'==_0x5613c6?_0x24af51['isAdded']={'userId':_0x57f82b}:'deletion'==_0x5613c6&&(_0x24af51['isRemoved']={'userId':_0x57f82b})),0x0==_0xc2ad30['length'])break;}return _0x3a0038;}['_refreshStartEndIndex'](_0x1f7f8f){const _0x5f1dc3=new Map();for(let _0x57a557=0x0;_0x57a557<_0x1f7f8f['length'];_0x57a557++)'text'===_0x1f7f8f[_0x57a557]['type']?(_0x1f7f8f[_0x57a557]['item']['startIndex']=_0x57a557,_0x1f7f8f[_0x57a557]['item']['endIndex']=_0x57a557):('elementStart'===_0x1f7f8f[_0x57a557]['type']?_0x1f7f8f[_0x57a557]['item']['startIndex']=_0x57a557:'elementEnd'===_0x1f7f8f[_0x57a557]['type']&&(_0x1f7f8f[_0x57a557]['item']['endIndex']=_0x57a557),_0x5f1dc3['set'](_0x1f7f8f[_0x57a557]['id'],_0x57a557));for(const _0x422252 of _0x5f1dc3['values']())'elementStart'===_0x1f7f8f[_0x422252]['type']?_0x1f7f8f[_0x422252]['item']['endIndex']=_0x5f1dc3['get'](_0x1f7f8f[_0x422252]['pairId']):'elementEnd'===_0x1f7f8f[_0x422252]['type']&&(_0x1f7f8f[_0x422252]['item']['startIndex']=_0x5f1dc3['get'](_0x1f7f8f[_0x422252]['pairId']));}['_processTape'](_0x20fe02){for(let _0x69c2a3=0x0;_0x69c2a3<_0x20fe02['length'];_0x69c2a3++){if('elementStart'===_0x20fe02[_0x69c2a3]['type'])_0x20fe02[_0x69c2a3]['item']['startIndex']=_0x69c2a3;else{if('elementEnd'===_0x20fe02[_0x69c2a3]['type']){_0x20fe02[_0x69c2a3]['item']['endIndex']=_0x69c2a3;const _0x5a9305=_0x20fe02[_0x69c2a3]['item']['startIndex'];_0x20fe02[_0x5a9305]['pairId']=_0x20fe02[_0x69c2a3]['id'],_0x20fe02[_0x69c2a3]['pairId']=_0x20fe02[_0x5a9305]['id'];}else _0x20fe02[_0x69c2a3]['item']['startIndex']=_0x69c2a3,_0x20fe02[_0x69c2a3]['item']['endIndex']=_0x69c2a3,_0x20fe02[_0x69c2a3]['pairId']=null;}_0x20fe02[_0x69c2a3]['markersStart']||(_0x20fe02[_0x69c2a3]['markersStart']=[],_0x20fe02[_0x69c2a3]['markersEnd']=[]);}}['_markInsertions'](_0x29481e,_0x851676){const _0x4158d0=_0x29481e['filter'](_0x19ff93=>!_0x19ff93['isAdded']);for(let _0x4521be=0x0;_0x4521be<_0x851676['length'];_0x4521be++)_0x851676[_0x4521be]['isAdded']&&(_0x4158d0[_0x4521be]['isAdded']=_0x851676[_0x4521be]['isAdded']);}['_makeModelFromViewString'](_0x20bf89){const _0x1bcbc7=JSON['parse'](_0x20bf89),_0x165f16=this['editor']['editing']['view']['document'],_0x1ba2db=new _0x3525f2(_0x165f16,_0x1bcbc7['map'](_0xbc2ef7=>this['_getViewObj'](_0xbc2ef7)));return this['editor']['data']['toModel'](_0x1ba2db);}['_getViewObj'](_0x45a6c8){const _0x563071=this['editor']['editing']['view']['document'];if('string'==typeof _0x45a6c8)return new _0x3013b9(_0x563071,_0x45a6c8);{const _0x17dcb6=_0x45a6c8['children']['map'](_0x324bc7=>this['_getViewObj'](_0x324bc7));return new(Z[_0x45a6c8['type']]||_0x4189fa)(_0x563071,_0x45a6c8['name'],_0x45a6c8['attributes'],_0x17dcb6);}}['_getDiff'](_0x15472c,_0x3196c7=null){const _0x4a08b5=this['repository']['getRevision'](_0x15472c),_0x591ec6=_0x3196c7?this['repository']['getRevision'](_0x3196c7):null,_0xf9ea0a=this['_getRevisionsRange'](_0x4a08b5,_0x591ec6),_0x3f5369=_0xf9ea0a[_0xf9ea0a['length']-0x1],_0x4bad46=new Map(),_0x436808={'model':{},'attributes':{},'changes':[]},_0x321a86=new Set(),_0xbb18a8=new Map();for(let _0x5b0fe3=_0xf9ea0a['length']-0x1;_0x5b0fe3>=0x0;_0x5b0fe3--){const _0x11d22e=_0xf9ea0a[_0x5b0fe3];for(const _0x3b8a28 of Object['keys'](_0x11d22e['diffData']))if(_0x11d22e['diffData'][_0x3b8a28]['attachChange']){const _0x2ddfe4=_0x11d22e['diffData'][_0x3b8a28]['attachChange'];_0x2ddfe4['isAttached']?(_0x321a86['add'](_0x3b8a28),_0xbb18a8['has'](_0x3b8a28)&&_0xbb18a8['get'](_0x3b8a28)['userId']==_0x2ddfe4['userId']?_0xbb18a8['delete'](_0x3b8a28):_0xbb18a8['set'](_0x3b8a28,_0x2ddfe4)):_0xbb18a8['has'](_0x3b8a28)?(_0x321a86['delete'](_0x3b8a28),_0xbb18a8['delete'](_0x3b8a28)):(_0x321a86['add'](_0x3b8a28),_0xbb18a8['set'](_0x3b8a28,_0x2ddfe4));}else _0x321a86['add'](_0x3b8a28);}for(const _0x11eee8 of _0x321a86){const _0x37f5e8=_0xbb18a8['has'](_0x11eee8)&&!_0xbb18a8['get'](_0x11eee8)['isAttached'];let _0x33ded2=_0x37f5e8?_0xf9ea0a['length']-0x1:0x0;const _0x1e6d1d=_0x37f5e8?-0x1:0x1;for(;_0xf9ea0a[_0x33ded2];){const _0xbc1dd=_0xf9ea0a[_0x33ded2];if(_0xbc1dd['diffData'][_0x11eee8]){const _0x49c5f6=_0x37f5e8?_0xbc1dd['diffData'][_0x11eee8]['attributesBefore']:_0xbc1dd['diffData'][_0x11eee8]['attributesAfter'];_0x436808['attributes'][_0x11eee8]=_0x49c5f6?_0x43b708(_0x49c5f6):{};break;}_0x33ded2+=_0x1e6d1d;}}for(const _0xb58a47 of _0xf9ea0a){_0xb58a47['model']={};for(const _0x4b3a73 of _0xb58a47['authors'])_0x4bad46['set'](_0x4b3a73['id'],_0x4b3a73);for(const _0x3de83e of _0x321a86){const _0x574bbd=_0xb58a47['diffData'][_0x3de83e]?_0xb58a47['diffData'][_0x3de83e]['insertions']:'[]',_0x445e27=_0xb58a47['diffData'][_0x3de83e]?_0xb58a47['diffData'][_0x3de83e]['deletions']:'[]';_0xb58a47['model'][_0x3de83e]={'insertions':this['_makeModelFromViewString'](_0x574bbd),'deletions':this['_makeModelFromViewString'](_0x445e27)};}}for(const _0x59b54b of _0x321a86){let _0x33690e=null,_0x2576d7=0x0;const _0x56375f=new Map(Array['from'](_0x4a08b5['model'][_0x59b54b]['insertions']['markers'])['filter'](([_0x36ab42])=>!_0x36ab42['startsWith']('revision:')));let _0x90c116=0x0;for(const _0x1a74f9 of _0xf9ea0a){const _0x3665c5=this['_makeTape'](_0x1a74f9['model'][_0x59b54b]['insertions']);_0x1a74f9==_0x4a08b5?(_0x33690e=_0x3665c5,_0x2576d7=_0x33690e['length'],_0x33690e['forEach'](_0x937eee=>{_0x937eee['id']=_0x90c116++;}),this['_processTape'](_0x33690e)):this['_markInsertions'](_0x33690e,_0x3665c5);const _0x4ffe58=_0x33690e['filter'](_0x1b9973=>!_0x1b9973['isAdded'])['map'](_0x550277=>_0x550277['id']);let _0x1952cd=0x0;const _0x3374fc=this['_makeTape'](_0x1a74f9['model'][_0x59b54b]['deletions']);_0x3374fc['forEach'](_0x41bd0=>{_0x41bd0['isRemoved']?_0x41bd0['id']=_0x2576d7++:_0x41bd0['id']=_0x4ffe58[_0x1952cd++];}),this['_processTape'](_0x3374fc),this['_setDistance'](_0x33690e,'isAdded'),this['_setDistance'](_0x3374fc,'isRemoved'),_0x1a74f9==_0x4a08b5&&this['_markMarkers'](_0x33690e,_0x56375f),_0x33690e=this['_joinTapes'](_0x33690e,_0x3374fc),this['_refreshStartEndIndex'](_0x33690e),this['_setDistance'](_0x33690e,'isRemoved');}_0x33690e=_0x33690e['filter'](_0x11f7ae=>!(_0x11f7ae['isAdded']&&_0x11f7ae['isRemoved']));const _0x468994=new Map(_0x3f5369['model'][_0x59b54b]['deletions']['markers']),_0x150ca8=new Set(_0x56375f['keys']());for(const _0x169890 of _0x468994['keys']())_0x150ca8['delete'](_0x169890);this['_markSuggestions'](_0x33690e,_0x150ca8),this['_fixObsoleteTags'](_0x33690e),_0x33690e=this['_removeMissingPairs'](_0x33690e),_0x33690e=this['_markMismatchedRemovedTags'](_0x33690e),_0x33690e=this['_removeUnsupportedChanges'](_0x33690e);const {root:_0x16547f,changes:_0x1962c3}=this['_makeModelFromTape'](_0x33690e,_0x4bad46,_0x59b54b);_0x436808['model'][_0x59b54b]=_0x16547f;const _0x57d542=_0xbb18a8['get'](_0x59b54b);if(_0x57d542){const _0x93bb09=_0x4bad46['get'](_0x57d542['userId']),_0x3d888b=new r({'author':_0x93bb09,'type':_0x57d542['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x59b54b});_0x1962c3['unshift'](_0x3d888b),_0x436808['attributes'][_0x59b54b]['revisionHistoryAttachChange']=_0x3d888b['id'];}_0x436808['changes']=_0x436808['changes']['concat'](_0x1962c3);}return _0x436808;}['_markMarkers'](_0x4df8ce,_0x4625ad){for(let _0x2d8862=0x0;_0x2d8862<_0x4df8ce['length'];_0x2d8862++)for(const [_0x558378,_0x45aa29]of _0x4625ad)_0x45aa29['start']['isEqual'](_0x4df8ce[_0x2d8862]['previousPosition'])&&_0x4df8ce[_0x2d8862]['markersStart']['push'](_0x558378),_0x45aa29['end']['isEqual'](_0x4df8ce[_0x2d8862]['nextPosition'])&&_0x4df8ce[_0x2d8862]['markersEnd']['push'](_0x558378);}['_joinTapes'](_0x292c2d,_0xb69915){let _0x27c4fa=[],_0x1e8219=0x0,_0x501f65=0x0;for(;_0x1e8219<_0x292c2d['length']||_0x501f65<_0xb69915['length'];){const _0x4bb64d=_0x292c2d[_0x1e8219]||{},_0xd52e2e=_0xb69915[_0x501f65]||{};if(_0x4bb64d['id']==_0xd52e2e['id'])_0x1e8219++,_0x501f65++,_0x27c4fa['push'](_0x4bb64d);else{if(_0xd52e2e['isRemoved']&&_0x4bb64d['isAdded']){const {commonTape:_0x323316,iEnd:_0x329b94,jEnd:_0x127f1e}=this['_threeWayMerge'](_0x292c2d,_0x1e8219,_0xb69915,_0x501f65);_0x27c4fa=_0x27c4fa['concat'](_0x323316),_0x1e8219=_0x329b94,_0x501f65=_0x127f1e;}else _0xd52e2e['isRemoved']?(_0x501f65++,_0x27c4fa['push'](_0xd52e2e)):(_0x1e8219++,_0x27c4fa['push'](_0x4bb64d));}}return _0x27c4fa;}['_markSuggestions'](_0x174543,_0xb6bd9c){const _0x2209b7=[];for(let _0x14be3a=0x0;_0x14be3a<_0x174543['length'];_0x14be3a++){for(let _0x2677f3=0x0;_0x2677f3<_0x174543[_0x14be3a]['markersStart']['length'];_0x2677f3++){const _0x520555=_0x174543[_0x14be3a]['markersStart'][_0x2677f3];if(!_0xb6bd9c['has'](_0x520555))continue;const {group:_0x3fd754,type:_0x33f7e7,authorId:_0x1eae3d}=_0x335575(_0x520555);'revision-suggestion'!=_0x3fd754||'insertion'!=_0x33f7e7&&'deletion'!=_0x33f7e7||(_0x2209b7['unshift']({'type':_0x33f7e7,'name':_0x520555,'userId':_0x1eae3d}),_0x174543[_0x14be3a]['markersStart']['splice'](_0x2677f3,0x1),_0x2677f3--);}_0x38b3af(_0x174543[_0x14be3a]);for(let _0x4be917=0x0;_0x4be917<_0x174543[_0x14be3a]['markersEnd']['length'];_0x4be917++){const _0x32cc6c=_0x174543[_0x14be3a]['markersEnd'][_0x4be917];if(!_0xb6bd9c['has'](_0x32cc6c))continue;const {group:_0x5e7c12,type:_0x366134}=_0x335575(_0x32cc6c);if('revision-suggestion'!=_0x5e7c12||'insertion'!=_0x366134&&'deletion'!=_0x366134)continue;_0x174543[_0x14be3a]['markersEnd']['splice'](_0x4be917,0x1),_0x4be917--;const _0x2ae171=_0x2209b7['findIndex'](_0x5d95bc=>_0x5d95bc['name']==_0x32cc6c);_0x2ae171>-0x1&&_0x2209b7['splice'](_0x2ae171,0x1);}}function _0x335575(_0xc50e92){const _0x262539=_0xc50e92['split'](':');return{'group':_0x262539[0x0],'type':_0x262539[0x1],'subType':_0x262539['length']>=0x5?_0x262539[0x2]:null,'id':_0x262539['length']<0x5?_0x262539[0x2]:_0x262539[0x3],'authorId':_0x262539['length']<0x5?_0x262539[0x3]:_0x262539[0x4],'markerCount':0x6==_0x262539['length']?_0x262539[0x5]:null};}function _0x38b3af(_0x30df6b){for(let _0x3f9db2=0x0;_0x3f9db2<_0x2209b7['length'];_0x3f9db2++){if(_0x30df6b['isAdded']&&'insertion'==_0x2209b7[_0x3f9db2]['type'])return _0x30df6b['isAddSuggestion']=_0x2209b7[_0x3f9db2],void delete _0x30df6b['isAdded'];if(!_0x30df6b['isAdded']&&!_0x30df6b['isRemoved']&&'deletion'==_0x2209b7[_0x3f9db2]['type'])return void(_0x30df6b['isRemoveSuggestion']=_0x2209b7[_0x3f9db2]);}}}['_setDistance'](_0x4f1253,_0x2cbdca){let _0x40e542=0x0,_0x2abf4d=!0x1;const _0x14dffd=new Map();for(const _0x3f53f6 of _0x4f1253)_0x3f53f6[_0x2cbdca]?_0x2abf4d&&(_0x40e542++,_0x2abf4d=!0x1):(_0x40e542++,_0x2abf4d=!0x0),_0x14dffd['set'](_0x3f53f6['id'],_0x40e542);for(let _0x30efd4=0x0;_0x30efd4<_0x4f1253['length'];_0x30efd4++){if('isRemoved'==_0x2cbdca&&_0x4f1253[_0x30efd4]['isAdded']||'isAdded'==_0x2cbdca&&_0x4f1253[_0x30efd4]['isRemoved'])continue;if('text'==_0x4f1253[_0x30efd4]['type']){_0x4f1253[_0x30efd4]['distance']=0x0;continue;}const _0x1e6b3a=_0x14dffd['get'](_0x4f1253[_0x30efd4]['pairId']),_0x1a767e=_0x14dffd['get'](_0x4f1253[_0x30efd4]['id']);_0x4f1253[_0x30efd4]['distance']=_0x1e6b3a-_0x1a767e;}}['_getRevisionsRange'](_0x257f96,_0xca9b5f,_0xc86943=!0x1){const _0x3f2c9e=[];let _0x1d8c9e=this['repository']['getIndex'](_0x257f96),_0x1ab648=this['repository']['getIndex'](_0xca9b5f);for(-0x1==_0x1ab648&&(_0x1ab648=this['repository']['_revisions']['length'],_0xc86943=!0x1);_0x1d8c9e<_0x1ab648;)_0x3f2c9e['push'](this['repository']['getRevision'](_0x1d8c9e)),_0x1d8c9e++;return _0xc86943&&_0x3f2c9e['push'](this['repository']['getRevision'](_0x1d8c9e)),_0x3f2c9e;}['_threeWayMerge'](_0x2fb4ac,_0x2780a5,_0x2e02c1,_0x45e9e8){const _0xdb9872=this['editor']['model']['schema'];let _0x2834a2=_0x2780a5;for(;_0x2fb4ac[_0x2834a2]&&_0x2fb4ac[_0x2834a2]['isAdded'];)_0x2834a2++;let _0x533cf0=_0x45e9e8;for(;_0x2e02c1[_0x533cf0]&&_0x2e02c1[_0x533cf0]['isRemoved'];)_0x533cf0++;_0x2f705b(_0x2fb4ac,_0x2780a5,_0x2834a2),_0x2f705b(_0x2e02c1,_0x45e9e8,_0x533cf0);const _0x299c2e=_0x2e02c1['slice'](_0x45e9e8,_0x533cf0)['concat'](_0x2fb4ac['slice'](_0x2780a5,_0x2834a2));return _0x299c2e['sort']((_0x22e31b,_0x4da041)=>_0x22e31b['side']!=_0x4da041['side']?_0x22e31b['side']-_0x4da041['side']:_0x22e31b['level']!=_0x4da041['level']?_0x22e31b['level']-_0x4da041['level']:_0x22e31b['distance']!=_0x4da041['distance']?_0x4da041['distance']-_0x22e31b['distance']:!!_0x22e31b['isAdded']!=!!_0x4da041['isAdded']?-0x1==_0x22e31b['side']||0x0==_0x22e31b['side']?_0x22e31b['isAdded']?-0x1:0x1:_0x22e31b['isAdded']?0x1:-0x1:_0x22e31b['index']-_0x4da041['index']),{'commonTape':_0x299c2e,'iEnd':_0x2834a2,'jEnd':_0x533cf0};function _0x2f705b(_0xa0c321,_0x127cd8,_0x4f1b97){let _0x279d5a=-0x1,_0x2b1604=Number['POSITIVE_INFINITY'],_0x4796ae=!0x0;for(let _0x27e52c=_0x127cd8;_0x27e52c<_0x4f1b97;_0x27e52c++)if(_0xdb9872['isInline'](_0xa0c321[_0x27e52c]['item'])||(_0x4796ae=!0x1),_0xa0c321[_0x27e52c]['item']['startIndex']<_0x127cd8&&(_0x279d5a=_0x27e52c),_0xa0c321[_0x27e52c]['item']['endIndex']>=_0x4f1b97){_0x2b1604=_0x27e52c;break;}_0x4796ae&&(_0x279d5a=_0x4f1b97-0x1);for(let _0x35ab15=_0x127cd8;_0x35ab15<_0x4f1b97;_0x35ab15++)_0xa0c321[_0x35ab15]['side']=_0x35ab15<=_0x279d5a?-0x1:_0x35ab15<_0x2b1604?0x0:0x1,_0xa0c321[_0x35ab15]['index']=_0x35ab15;let _0x2464eb=0x0;for(let _0x3c708b=_0x127cd8;_0x3c708b<=_0x279d5a;_0x3c708b++)0x0==_0xa0c321[_0x3c708b]['distance']?_0xa0c321[_0x3c708b]['level']=_0x2464eb:(_0x2464eb++,_0xa0c321[_0x3c708b]['level']=_0x2464eb,_0x2464eb++);for(let _0x45c3b7=_0x127cd8;_0x45c3b7<_0x4f1b97;_0x45c3b7++)0x0==_0xa0c321[_0x45c3b7]['side']&&(_0xa0c321[_0x45c3b7]['level']=_0x2464eb);_0x2464eb=0x0;for(let _0x329110=_0x4f1b97-0x1;_0x329110>=_0x2b1604;_0x329110--)0x0==_0xa0c321[_0x329110]['distance']?_0xa0c321[_0x329110]['level']=_0x2464eb:(_0x2464eb--,_0xa0c321[_0x329110]['level']=_0x2464eb,_0x2464eb--);}}['_fixObsoleteTags'](_0x5c8f6f){const _0x5b5718=new Map(),_0xae39bb=this['editor']['model']['schema'];for(let _0x4fdd63=0x1;_0x4fdd63<_0x5c8f6f['length'];_0x4fdd63++){let _0x1f2a0b,_0x55f4e6,_0x38a728;const _0x3fc238=_0x5c8f6f[_0x4fdd63],_0x1af842=_0x5c8f6f[_0x4fdd63-0x1];if('text'==_0x3fc238['type'])continue;if(_0x3fc238['type']!=_0x1af842['type'])continue;if(!_0xae39bb['isBlock'](_0x1af842['item'])||_0xae39bb['isLimit'](_0x1af842['item']))continue;if(!_0xae39bb['isBlock'](_0x3fc238['item'])||_0xae39bb['isLimit'](_0x3fc238['item']))continue;if((_0x5c8f6f[_0x4fdd63]['isAdded']||_0x5c8f6f[_0x4fdd63]['isAddSuggestion'])&&_0x5c8f6f[_0x4fdd63-0x1]['isRemoved'])_0x1f2a0b=_0x5c8f6f[_0x4fdd63],_0x55f4e6=_0x5c8f6f[_0x4fdd63-0x1],_0x38a728=_0x4fdd63-0x1;else{if(!_0x5c8f6f[_0x4fdd63]['isRemoved']||!_0x5c8f6f[_0x4fdd63-0x1]['isAdded']&&!_0x5c8f6f[_0x4fdd63-0x1]['isAddSuggestion'])continue;_0x1f2a0b=_0x5c8f6f[_0x4fdd63-0x1],_0x55f4e6=_0x5c8f6f[_0x4fdd63],_0x38a728=_0x4fdd63;}const _0x5f35e8=_0x1f2a0b['level']==_0x55f4e6['level'],_0x1bb7a5=Math['abs'](_0x1f2a0b['level'])<Math['abs'](_0x55f4e6['level'])&&0x0==_0x55f4e6['distance'];(_0x5f35e8||_0x1bb7a5)&&(_0x5b5718['set'](_0x55f4e6['id'],_0x1f2a0b['id']),_0x5c8f6f['splice'](_0x38a728,0x1),_0x4fdd63--,_0x1f2a0b['isAdded']=!0x1);}for(let _0xb36619=0x0;_0xb36619<_0x5c8f6f['length'];_0xb36619++)_0x5b5718['has'](_0x5c8f6f[_0xb36619]['pairId'])&&(_0x5c8f6f[_0xb36619]['pairId']=_0x5b5718['get'](_0x5c8f6f[_0xb36619]['pairId']));}['_removeMissingPairs'](_0xe7bf29){const _0x1f6d1c=new Set(_0xe7bf29['map'](_0x2c016c=>_0x2c016c['id']));for(let _0x4cb573=0x0;_0x4cb573<_0xe7bf29['length'];_0x4cb573++)_0x1f6d1c['has'](_0xe7bf29[_0x4cb573]['pairId'])||0x0==_0xe7bf29[_0x4cb573]['distance']||(_0xe7bf29[_0x4cb573]['isIncorrect']=!0x0);return _0xe7bf29['filter'](_0x46e6a0=>!_0x46e6a0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41eb30){const _0x4278e3=new Set();for(let _0x3779f9=0x0;_0x3779f9<_0x41eb30['length'];_0x3779f9++){if(_0x4278e3['has'](_0x41eb30[_0x3779f9]['id'])&&_0x41eb30[_0x3779f9]['isRemoved']&&(_0x41eb30[_0x3779f9]['isIncorrect']=!0x0),_0x41eb30[_0x3779f9]['isIncorrect'])continue;if(0x0==_0x41eb30[_0x3779f9]['distance'])continue;if('elementStart'!=_0x41eb30[_0x3779f9]['type'])continue;if(null==_0x41eb30[_0x3779f9]['pairId'])continue;let _0x49010e=_0x3779f9+0x1,_0xb16c1f=0x0;for(;_0x41eb30[_0x49010e]['id']!=_0x41eb30[_0x3779f9]['pairId'];)'elementStart'==_0x41eb30[_0x49010e]['type']?_0xb16c1f++:'elementEnd'==_0x41eb30[_0x49010e]['type']&&_0xb16c1f--,_0x49010e++;if(0x0!=_0xb16c1f){if(_0x41eb30[_0x3779f9]['isRemoved'])_0x41eb30[_0x3779f9]['isIncorrect']=!0x0;else{for(;_0x49010e!=_0x3779f9;)_0x41eb30[_0x49010e]['isRemoved']&&0x0!=_0x41eb30[_0x49010e]['distance']&&(_0x41eb30[_0x49010e]['isIncorrect']=!0x0,_0x4278e3['add'](_0x41eb30[_0x49010e]['pairId'])),_0x49010e--;}}}return _0x41eb30['filter'](_0x2746ec=>!_0x2746ec['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e895f){const _0x405e03=this['editor']['model']['schema'];for(let _0x8129cf=0x0;_0x8129cf<_0x5e895f['length'];_0x8129cf++){if(!(_0x5e895f[_0x8129cf]['isAdded']||_0x5e895f[_0x8129cf]['isAddSuggestion']||_0x5e895f[_0x8129cf]['isRemoved']||_0x5e895f[_0x8129cf]['isRemoveSuggestion']))continue;if(0x0==_0x5e895f[_0x8129cf]['distance'])continue;const _0x28a884=_0x5e895f[_0x8129cf]['item'];_0x405e03['isBlock'](_0x28a884)||_0x405e03['isLimit'](_0x28a884)||(_0x5e895f[_0x8129cf]['isAdded']&&delete _0x5e895f[_0x8129cf]['isAdded'],_0x5e895f[_0x8129cf]['isAddSuggestion']&&delete _0x5e895f[_0x8129cf]['isAddSuggestion'],_0x5e895f[_0x8129cf]['isRemoveSuggestion']&&delete _0x5e895f[_0x8129cf]['isRemoveSuggestion'],_0x5e895f[_0x8129cf]['isRemoved']&&(_0x5e895f[_0x8129cf]['isIncorrect']=!0x0));}return _0x5e895f['filter'](_0x36a41b=>!_0x36a41b['isIncorrect']);}['_makeModelFromTape'](_0x4b3349,_0x2efa0b,_0x3c5258){const _0xa66206=new wt(),_0x47c622=[],_0x8fe3da=new Map(),_0x504e20=this['editor']['model'],_0x4f7941=_0x504e20['schema'],_0x37479d=[_0xa66206],_0x3241df={},_0x3ba04c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x38c888=null;const _0x52a2ab=[0x0];for(let _0x2acb3f=0x0;_0x2acb3f<_0x4b3349['length'];_0x2acb3f++)if('elementStart'===_0x4b3349[_0x2acb3f]['type']){_0x4b3349[_0x2acb3f]['previousPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab);const _0x26ab11=new ft(_0x4b3349[_0x2acb3f]['item']['name'],_0x4b3349[_0x2acb3f]['item']['getAttributes']());_0x37479d[0x0]['_appendChild'](_0x26ab11),_0x52a2ab['push'](0x0),_0x37479d['unshift'](_0x26ab11),_0x4b3349[_0x2acb3f]['nextPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab);}else'elementEnd'===_0x4b3349[_0x2acb3f]['type']?(_0x37479d['shift'](),_0x4b3349[_0x2acb3f]['previousPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab),_0x52a2ab['pop'](),_0x52a2ab[_0x52a2ab['length']-0x1]++,_0x4b3349[_0x2acb3f]['nextPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab)):(_0x4b3349[_0x2acb3f]['previousPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab),_0x38c888?_0x38c888['_data']+=_0x4b3349[_0x2acb3f]['item']['data']:_0x38c888=new _t(_0x4b3349[_0x2acb3f]['item']['data'],_0x4b3349[_0x2acb3f]['item']['getAttributes']()),_0x4b3349[_0x2acb3f+0x1]&&'text'===_0x4b3349[_0x2acb3f+0x1]['type']&&_0x29a47d(_0x38c888,_0x4b3349[_0x2acb3f+0x1]['item'])||(_0x37479d[0x0]['_appendChild'](_0x38c888),_0x38c888=null),_0x52a2ab[_0x52a2ab['length']-0x1]+=_0x4b3349[_0x2acb3f]['item']['offsetSize'],_0x4b3349[_0x2acb3f]['nextPosition']=_0x504e20['createPositionFromPath'](_0xa66206,_0x52a2ab));for(let _0xe168e=0x0;_0xe168e<_0x4b3349['length'];_0xe168e++){const _0x381ff2=_0x4b3349[_0xe168e]['previousPosition'],_0x1c7ee0=_0x4b3349[_0xe168e]['nextPosition'];for(const _0x3ee948 of _0x4b3349[_0xe168e]['markersStart'])_0x8fe3da['set'](_0x3ee948,{'start':_0x381ff2,'end':null});_0x4fea88('isRemoveSuggestion',_0xe168e,_0x381ff2,_0x1c7ee0),_0x4fea88('isAddSuggestion',_0xe168e,_0x381ff2,_0x1c7ee0),_0x4fea88('isRemoved',_0xe168e,_0x381ff2,_0x1c7ee0),_0x4fea88('isAdded',_0xe168e,_0x381ff2,_0x1c7ee0);for(const _0x8baa22 of _0x4b3349[_0xe168e]['markersEnd']){_0x8fe3da['get'](_0x8baa22)['end']=_0x1c7ee0;}}for(const [_0x387133,_0xaf6bd6]of _0x8fe3da){const _0x32b363=this['editor']['model']['createRange'](_0xaf6bd6['start'],_0xaf6bd6['end']);_0xa66206['markers']['set'](_0x387133,_0x32b363);}return _0x47c622['sort']((_0x4adcac,_0x299cac)=>{const _0x3f7be6=_0xa66206['markers']['get']('revision:'+_0x4adcac['id']),_0x577071=_0xa66206['markers']['get']('revision:'+_0x299cac['id']);return _0x3f7be6['start']['isBefore'](_0x577071['start'])?-0x1:_0x3f7be6['start']['isAfter'](_0x577071['start'])?0x1:_0x3f7be6['end']['isBefore'](_0x577071['end'])?-0x1:_0x3f7be6['end']['isAfter'](_0x577071['end'])?0x1:'add'===_0x4adcac['type']?-0x1:0x1;}),{'root':_0xa66206,'changes':_0x47c622};function _0x4fea88(_0x4d0965,_0x4341de,_0x2e6496,_0x4ab5e9){const _0x35482e=!!_0x4b3349[_0x4341de][_0x4d0965],_0x1e191a=_0x35482e?_0x4b3349[_0x4341de][_0x4d0965]['userId']:null,_0x22cf95=_0x4341de===_0x4b3349['length']-0x1,_0x34ccef=_0x3ba04c[_0x4d0965][0x0],_0x5e47a8=_0x4f7941['isObject'](_0x4b3349[_0x4341de]['item']);!_0x3241df[_0x4d0965]&&_0x35482e?_0x3241df[_0x4d0965]={'start':_0x2e6496,'tapeItem':_0x4b3349[_0x4341de],'userId':_0x1e191a,'type':_0x4d0965}:_0x3241df[_0x4d0965]&&!_0x35482e?(_0x3241df[_0x4d0965]['end']=_0x2e6496,_0x84e1b6(_0x3241df[_0x4d0965]),_0x3241df[_0x4d0965]=null):_0x3241df[_0x4d0965]&&_0x35482e&&_0x3241df[_0x4d0965]['userId']!==_0x1e191a&&(_0x3241df[_0x4d0965]['end']=_0x2e6496,_0x34ccef&&_0x34ccef['userId']===_0x3241df[_0x4d0965]['userId']||_0x84e1b6(_0x3241df[_0x4d0965]),_0x3241df[_0x4d0965]={'start':_0x2e6496,'tapeItem':_0x4b3349[_0x4341de],'userId':_0x1e191a,'type':_0x4d0965}),_0x3241df[_0x4d0965]&&_0x5e47a8&&('elementStart'!==_0x4b3349[_0x4341de]['type']||_0x34ccef&&_0x34ccef['userId']===_0x1e191a||_0x3ba04c[_0x4d0965]['unshift']({'userId':_0x1e191a,'object':_0x4b3349[_0x4341de]['item'],'change':_0x3241df[_0x4d0965]}),'elementEnd'===_0x4b3349[_0x4341de]['type']&&_0x34ccef&&_0x34ccef['object']===_0x4b3349[_0x4341de]['item']&&(_0x3ba04c[_0x4d0965]['shift'](),_0x3241df[_0x4d0965]=_0x34ccef['change'])),_0x3241df[_0x4d0965]&&_0x22cf95&&(_0x3241df[_0x4d0965]['end']=_0x4ab5e9,_0x84e1b6(_0x3241df[_0x4d0965]),_0x3241df[_0x4d0965]=null);}function _0x84e1b6({start:_0x26b3c6,end:_0xe0877b,tapeItem:_0x14d584,userId:_0x5abcd9,type:_0x34c050}){const _0x421b4c=_0x14d584['item'],_0x33b168=_0x504e20['schema']['isBlock'](_0x421b4c)&&!_0x504e20['schema']['isLimit'](_0x421b4c),_0x1a9e37=_0x26b3c6['nodeAfter']==_0xe0877b['parent']&&_0xe0877b['isAtStart'];if(_0x33b168&&_0x1a9e37)return;const _0x2bc164=_0x504e20['createRange'](_0x26b3c6,_0xe0877b),_0x18d0f4=_0x2efa0b['get'](_0x5abcd9),_0x514733=new r({'author':_0x18d0f4,'type':'isAdded'==_0x34c050||'isAddSuggestion'==_0x34c050?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x34c050||'isRemoveSuggestion'==_0x34c050},'createdAt':new Date(),'rootName':_0x3c5258});_0x47c622['push'](_0x514733),_0xa66206['markers']['set']('revision:'+_0x514733['id'],_0x2bc164);}function _0x29a47d(_0x2ce93c,_0x4bb2b7){const _0x4f6e8d=_0x2ce93c['getAttributes'](),_0x1db841=_0x4bb2b7['getAttributes']();for(const _0x14cbab of _0x4f6e8d){if(_0x14cbab[0x1]!==_0x4bb2b7['getAttribute'](_0x14cbab[0x0]))return!0x1;_0x1db841['next']();}return _0x1db841['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xff4e33=>{const _0x35d266=_0xff4e33['markerName']['split'](':')[0x1],_0x55501c=this['_getChangeFromId'](_0x35d266);if(!_0x55501c)return null;const _0x39806e='add'==_0x55501c['type']?'insertion':'deletion',_0x114a2e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39806e];return _0x55501c['data']['isSuggestion']&&_0x114a2e['push']('ck-suggestion-marker-'+_0x39806e+'-new'),this['activeChange']==_0x55501c&&_0x114a2e['push']('ck-suggestion-marker--active'),{'classes':_0x114a2e,'attributes':{'data-change-id':_0x35d266}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1ca89d=>{_0x1ca89d['on']('element:pre',(_0x2d7485,_0x3caef6,_0x126b5c)=>{const _0x3e67e3=_0x3caef6['viewItem']['getChild'](0x0);if(!_0x3e67e3||!_0x3e67e3['is']('element','code'))return;if(!_0x126b5c['consumable']['consume'](_0x3e67e3,{'attributes':['vid_start','vid_end']}))return;const _0x49aacf=_0x3caef6['modelRange']['start']['nodeAfter'];_0x126b5c['writer']['setAttribute']('vid_start',_0x3e67e3['getAttribute']('vid_start'),_0x49aacf),_0x126b5c['writer']['setAttribute']('vid_end',_0x3e67e3['getAttribute']('vid_end'),_0x49aacf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xc37138=>{_0xc37138['on']('element',(_0x1cd082,_0x3177d8,_0x16fc35)=>{if(!_0x16fc35['consumable']['consume'](_0x3177d8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3177d8['modelRange']['isCollapsed'])return;const _0x5d0bb4=_0x3177d8['modelRange']['start']['nodeAfter'];_0x5d0bb4['hasAttribute']('vid_start')||_0x5d0bb4['hasAttribute']('vid')||(_0x16fc35['writer']['setAttribute']('vid_start',_0x3177d8['viewItem']['getAttribute']('vid_start'),_0x5d0bb4),_0x16fc35['writer']['setAttribute']('vid_end',_0x3177d8['viewItem']['getAttribute']('vid_end'),_0x5d0bb4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x109ed7=>_0x109ed7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1dbc5a,[,_0x2a13f5])=>{['vid_start','vid_end','vid']['includes'](_0x2a13f5)&&(_0x1dbc5a['return']=!0x0,_0x1dbc5a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4676a3=>{_0x4676a3['on']('attribute:vid',(_0x3e9633,_0x484a29,_0xe41117)=>{if('\x20'!=_0x484a29['item']['data']||_0x484a29['item']['parent']['maxOffset']>0x1)return;if(!_0xe41117['consumable']['consume'](_0x484a29['item'],_0x3e9633['name']))return;const _0xf6b6bc=_0xe41117['writer'],_0x36a20d=_0xe41117['mapper']['toViewRange'](_0x484a29['range']);_0xf6b6bc['wrap'](_0x36a20d,_0xf6b6bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x32b3d6){const _0x46dece=_0x32b3d6['plugins']['get']('RevisionViewer');return(_0x42925b,_0x1c02c3,_0xfe0f1b)=>{const _0x442ebd=_0x1c02c3['markerName']['split'](':')[0x1],_0x2690bb=_0x46dece['_getChangeFromId'](_0x442ebd);if(!_0x2690bb)return null;const _0x358d15='add'==_0x2690bb['type']?'split':'merge';if(!_0xfe0f1b['consumable']['test'](_0x1c02c3['markerRange'],_0x42925b['name']))return;const _0x2a4977=_0x1c02c3['markerRange']['getWalker'](),_0x1b5c1f=_0x1c02c3['markerRange']['start'],_0x50a558=_0x32b3d6['model']['schema'];let _0xff21=null,_0x2ef210=null,_0x279910=!0x1,_0x1b14a0=!0x1;for(const _0x591789 of _0x2a4977){const _0x4e518a=_0x591789['item'];_0x279910=_0x279910||_0x50a558['isContent'](_0x4e518a);const _0x3596ee=_0xfe0f1b['mapper']['toViewElement'](_0x4e518a);if(_0x3596ee&&_0x3596ee['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x591789['type']&&(_0x50a558['isBlock'](_0x4e518a)&&!_0x50a558['isLimit'](_0x4e518a)&&(_0x4e518a['nextSibling']||_0x1b5c1f['isAtEnd']?_0xff21&&_0xff21['parent']==_0x4e518a||(_0xff21=_0x4e518a,_0x1a8a98(_0x591789['previousPosition']),_0x1b14a0=!0x0):_0x2ef210=_0x2ef210||_0x591789['previousPosition']));}function _0x1a8a98(_0x2288cb){const _0x1d98ce=_0xfe0f1b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x358d15}),_0x27dd80=_0xfe0f1b['mapper']['toViewPosition'](_0x2288cb);_0x2690bb['data']['isSuggestion']&&_0xfe0f1b['writer']['addClass']('ck-suggestion-marker-'+_0x358d15+'-new',_0x1d98ce),_0x46dece['activeChange']==_0x2690bb&&_0xfe0f1b['writer']['addClass']('ck-suggestion-marker--active',_0x1d98ce),_0xfe0f1b['writer']['insert'](_0x27dd80,_0x1d98ce),_0xfe0f1b['mapper']['bindElementToMarker'](_0x1d98ce,_0x1c02c3['markerName']);}_0x279910||_0x1b14a0||!_0x2ef210||_0x1a8a98(_0x2ef210);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x58c097,_0x15b11b,_0x42c9e4)=>{const _0x37c2db=_0x42c9e4['mapper']['markerNameToElements'](_0x15b11b['markerName']);if(_0x37c2db){for(const _0x245b2b of _0x37c2db)(_0x245b2b['hasClass']('ck-suggestion-marker-split')||_0x245b2b['hasClass']('ck-suggestion-marker-merge'))&&(_0x42c9e4['mapper']['unbindElementFromMarkerName'](_0x245b2b,_0x15b11b['markerName']),_0x42c9e4['writer']['remove'](_0x245b2b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2d42a3,_0x2a8ff3,_0x36452b)=>{const _0x18bfbb=_0x2a8ff3['markerName']['split'](':')[0x1],_0x4709f3=this['_getChangeFromId'](_0x18bfbb);if(!_0x4709f3)return null;const _0x29c40e='add'==_0x4709f3['type']?'split':'merge';if(_0x36452b['consumable']['test'](_0x2a8ff3['markerRange'],_0x2d42a3['name']))for(const _0x2c43b of _0x2a8ff3['markerRange']['getItems']()){if(!_0x2c43b['is']('element','softBreak'))continue;const _0x41aae2=_0x36452b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29c40e}),_0x28591f=_0x36452b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2c43b));_0x4709f3['data']['isSuggestion']&&_0x36452b['writer']['addClass']('ck-suggestion-marker-'+_0x29c40e+'-new',_0x41aae2),this['activeChange']==_0x4709f3&&_0x36452b['writer']['addClass']('ck-suggestion-marker--active',_0x41aae2),_0x36452b['writer']['insert'](_0x28591f,_0x41aae2),_0x36452b['mapper']['bindElementToMarker'](_0x41aae2,_0x2a8ff3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x667bdb=>{for(const _0x25e3a3 of this['editor']['model']['document']['getRootNames']()){const _0x25b5d4=this['editor']['model']['document']['getRoot'](_0x25e3a3),_0x4b317c=this['editor']['editing']['view']['document']['getRoot'](_0x25e3a3);if(_0x4b317c){const _0x21c7e5=_0x25b5d4['getAttribute']('revisionHistoryAttachChange');if(_0x667bdb['removeAttribute']('data-change-id',_0x4b317c),_0x667bdb['removeClass']('ck-revision-history-root-add',_0x4b317c),_0x667bdb['removeClass']('ck-revision-history-root-remove',_0x4b317c),_0x667bdb['removeClass']('ck-revision-history-root--active',_0x4b317c),_0x21c7e5){const _0x4c5c85=this['_getChangeFromId'](_0x21c7e5);if(!_0x4c5c85)return null;_0x667bdb['setAttribute']('data-change-id',_0x21c7e5,_0x4b317c),_0x667bdb['addClass']('ck-revision-history-root-'+_0x4c5c85['type'],_0x4b317c),this['activeChange']==_0x4c5c85&&_0x667bdb['addClass']('ck-revision-history-root--active',_0x4b317c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x15919d=>'revision-comment:'+_0x15919d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x6c70ca=>'revision-suggestion:'+_0x6c70ca,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3a5a3a=>({'name':'suggestion:'+_0x3a5a3a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x29c283=>{const _0x39b4fc=_0x29c283['markerName']['split'](':')[0x1];return'insertion'!=_0x39b4fc&&'deletion'!=_0x39b4fc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x39b4fc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x543e6b,_0x4535fc,_0x146639)=>{const _0x57d08f=_0x146639['mapper']['markerNameToElements'](_0x4535fc['markerName']);if(_0x57d08f){for(const _0x253a12 of _0x57d08f)_0x253a12['is']('uiElement')&&(_0x146639['mapper']['unbindElementFromMarkerName'](_0x253a12,_0x4535fc['markerName']),_0x146639['writer']['remove'](_0x253a12));}},{'priority':'high'});}['_getChangeFromId'](_0x413b16){return this['_changeIdToChange']['get'](_0x413b16);}['_getViewForChange'](_0x203951){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x203951),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x193ff4,_0xa71d0d,_0x246c56,_0x150282)=>{_0x150282&&this['_balloon']['remove'](_0x150282),_0x246c56&&(this['_balloon']['add']({'view':_0x246c56,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x340611=this['editor']['editing'],_0x2c9d8c=this['_getChangeFromId'](_0x246c56['changeId']);let _0x2c2999;if(_0x2c9d8c['data']['isOnRoot']){const _0x22f1e6=_0x340611['view']['getDomRoot'](_0x2c9d8c['rootName']);_0x2c2999=Array['from'](_0x22f1e6['getClientRects']());}else{const _0x2f75c2=this['editor']['model']['markers']['get']('revision:'+_0x246c56['changeId']);_0x2c2999=Array['from'](_0x340611['mapper']['markerNameToElements'](_0x2f75c2['name']))['map'](_0x322e90=>_0x340611['view']['domConverter']['mapViewToDom'](_0x322e90))['map'](_0x482b87=>Array['from'](_0x482b87['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2c2999[0x0];return _0x2c2999['find'](_0x2554c6=>_0x2554c6['top']-0x3<=this['_activeViewTarget']['y']&&_0x2554c6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2554c6['left']-0x3<=this['_activeViewTarget']['x']&&_0x2554c6['right']+0x3>=this['_activeViewTarget']['x'])||_0x2c2999[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5c1173,_0x180b87,_0x532e22,_0x31d5c3)=>{this['activeView']=_0x532e22?this['_getViewForChange'](_0x532e22):null,this['editor']['model']['change'](()=>{const _0x1ff5a4=this['editor']['editing'];_0x31d5c3&&(_0x31d5c3['data']['isOnRoot']?_0x1ff5a4['view']['change'](_0x51570e=>{_0x51570e['removeClass']('ck-revision-history-root--active',_0x1ff5a4['view']['document']['getRoot'](_0x31d5c3['rootName']));}):_0x1ff5a4['reconvertMarker']('revision:'+_0x31d5c3['id'])),_0x532e22&&(_0x532e22['data']['isOnRoot']?_0x1ff5a4['view']['change'](_0xd33b2e=>{_0xd33b2e['addClass']('ck-revision-history-root--active',_0x1ff5a4['view']['document']['getRoot'](_0x532e22['rootName']));}):_0x1ff5a4['reconvertMarker']('revision:'+_0x532e22['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4465ab,_0x29c744)=>{if(this['activeChange'])return;const _0x112dc7=this['_findChangeIdFromDomTarget'](_0x29c744['target']),_0x52e582=this['_changeIdToChange']['get'](_0x112dc7);_0x52e582?(this['_activeViewTarget']={'x':_0x29c744['domEvent']['x'],'y':_0x29c744['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x52e582)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x286875,_0x5c0fb6)=>{const _0x17b4d8=this['_findChangeIdFromDomTarget'](_0x5c0fb6['target']),_0x93341f=this['_changeIdToChange']['get'](_0x17b4d8);_0x93341f?(this['_activeViewTarget']={'x':_0x5c0fb6['domEvent']['x'],'y':_0x5c0fb6['domEvent']['y']},_0x93341f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x93341f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x19e5d7){do{const _0x5c5df9=_0x19e5d7['getAttribute']('data-change-id');if(_0x5c5df9)return _0x5c5df9;_0x19e5d7=_0x19e5d7['parent'];}while(_0x19e5d7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xb028a8=>{for(const _0x271259 of this['editor']['model']['markers'])_0xb028a8['removeMarker'](_0x271259);});}}function tt(_0x21f9cf,_0x30cec2){return(_0x5680cd,_0x333ff1,_0x3f2d3a)=>{if(!_0x3f2d3a['consumable']['test'](_0x333ff1['markerRange'],_0x5680cd['name']))return;const _0x523b6c=_0x333ff1['markerRange']['getWalker'](),_0x54ffc2=_0x333ff1['markerRange']['start'],_0x498213=_0x21f9cf['model']['schema'];let _0x48fe35=null,_0x534299=null,_0x4aad36=!0x1,_0x4af08d=!0x1;for(const _0x444d92 of _0x523b6c){const _0x2085f9=_0x444d92['item'];_0x4aad36=_0x4aad36||_0x498213['isContent'](_0x2085f9);const _0x4e7ea5=_0x3f2d3a['mapper']['toViewElement'](_0x2085f9);if(_0x4e7ea5&&_0x4e7ea5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x444d92['type']&&(_0x498213['isBlock'](_0x2085f9)&&!_0x498213['isLimit'](_0x2085f9)&&(_0x2085f9['nextSibling']||_0x54ffc2['isAtEnd']?_0x48fe35&&_0x48fe35['parent']==_0x2085f9||(_0x48fe35=_0x2085f9,_0x230836(_0x444d92['previousPosition']),_0x4af08d=!0x0):_0x534299=_0x534299||_0x444d92['previousPosition']));}function _0x230836(_0x1da678){const _0x2464dc=_0x3f2d3a['mapper']['toViewPosition'](_0x1da678),_0x38d313=_0x3f2d3a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30cec2});_0x3f2d3a['writer']['insert'](_0x2464dc,_0x38d313),_0x3f2d3a['mapper']['bindElementToMarker'](_0x38d313,_0x333ff1['markerName']);}_0x4aad36||_0x4af08d||!_0x534299||_0x230836(_0x534299);};}class yt extends _0x21dad9{constructor(_0x77c851){super(_0x77c851);const _0xe15670=_0x77c851['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xe15670,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe15670,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x426482=this['editor'],_0x52f227=_0x426482['plugins']['get'](d),_0x3bad37=_0x52f227['isReady']?_0x52f227['diff']['newRevisionId']:null;_0x426482['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3bad37);}['refresh'](){const {isReady:_0x8f1f1a,isEnabled:_0xa8ba8a,repository:_0x5e5c07,diff:_0x2ae5cb}=this['editor']['plugins']['get'](d),_0x6fb0e=_0x2ae5cb&&_0x5e5c07['getLaterVisibleRevision'](_0x2ae5cb['newRevisionId']);this['isEnabled']=_0x8f1f1a&&_0xa8ba8a&&Boolean(_0x6fb0e);}}class bt extends _0x21dad9{['_step'];constructor(_0xe3c52e,{direction:_0x2fab72}){super(_0xe3c52e);const _0x3f9bcf=_0xe3c52e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2fab72?0x1:-0x1,this['listenTo'](_0x3f9bcf,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3f9bcf,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3f9bcf,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x41fcf8=this['editor'],_0x574621=_0x41fcf8['plugins']['get'](d),{isNavigationMode:_0x32f9dc,currentChangeNumber:_0x651dcb}=_0x574621;let _0x3b0d16;if(_0x574621['activeChange']=_0x32f9dc?_0x574621['diff']['changes']['get'](_0x651dcb+this['_step']):_0x574621['diff']['changes']['first'],_0x574621['activeChange']['data']['isOnRoot'])_0x3b0d16=_0x41fcf8['editing']['view']['getDomRoot'](_0x574621['activeChange']['rootName']);else{const _0x42fdda=_0x41fcf8['model']['markers']['get']('revision:'+_0x574621['activeChange']['id']);_0x3b0d16=_0x1a708c(_0x41fcf8['editing'],_0x42fdda);}_0x524f31({'target':_0x3b0d16,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x545cb9,currentChangeNumber:_0x3a5661,numberOfChanges:_0x17febf,isReady:_0x96327d,isEnabled:_0x133c01}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x133c01&&_0x96327d&&_0x17febf)&&(!_0x545cb9||(0x1===this['_step']?_0x3a5661<_0x17febf-0x1:_0x3a5661>0x0));}}class di extends _0x2172d8{constructor(_0x4f9783){super(_0x4f9783);const _0x2d5528=this['bindTemplate'],_0x7473b1=new _0x1af197(_0x4f9783),_0x1b364f=new _0x1af197(_0x4f9783);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',(_0x378a48,_0x260588)=>_0x378a48&&_0x260588>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x33feb4,_0x4dc688,_0x5122f8,_0x467d5b)=>{if(!_0x33feb4)return R(_0x4f9783,'Loading...');if(!_0x5122f8)return R(_0x4f9783,'No\x20changes');const _0x5b5e24=R(_0x4f9783,'NUMBER_OF_CHANGES',_0x5122f8);return _0x467d5b?R(_0x4f9783,'X_OF_Y_CHANGES',[_0x4dc688+0x1,_0x5122f8]):_0x5b5e24;}),_0x7473b1['set']({'label':R(_0x4f9783,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x1b364f['set']({'label':R(_0x4f9783,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x7473b1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b364f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x7473b1['on']('execute',()=>this['fire']('execute','backward')),_0x1b364f['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',_0x2d5528['if']('_isStatusLabelVisible','ck-hidden',_0xb6ffec=>!_0xb6ffec)]},'children':[{'text':_0x2d5528['to']('isNavigationMode',_0x5b3d4c=>_0x5b3d4c?R(_0x4f9783,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4f9783,'Total')+':\x20')}]},{'text':_0x2d5528['to']('_statusText')}]},new _0x4230d6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7473b1,_0x1b364f]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x5c4b81{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46adf4=this['editor']['editing']['view'];_0x46adf4['change'](_0x53ddfe=>{for(const _0x264b7f of _0x46adf4['document']['roots'])_0x53ddfe['addClass'](ce,_0x264b7f);});}['hide'](){const _0x1a4c75=this['editor']['editing']['view'];_0x1a4c75['change'](_0x1b731b=>{for(const _0x10d662 of _0x1a4c75['document']['roots'])_0x1b731b['removeClass'](ce,_0x10d662);});}}class m extends _0x5c4b81{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x15e393=this['editor'],_0x5c1416=_0x15e393['plugins']['get'](d),_0x6c87a7=_0x15e393['plugins']['get'](ae);_0x15e393['ui']['componentFactory']['add']('exitToEditing',_0x3b87e8=>{const _0x35fc4c=new _0x1af197(_0x3b87e8);return _0x35fc4c['set']({'label':R(_0x3b87e8,'Back\x20to\x20editing'),'icon':_0x3ea365['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x35fc4c,'execute',()=>{_0x15e393['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x35fc4c;}),_0x15e393['ui']['componentFactory']['add']('restoreRevision',_0x3d0063=>{const _0x2c2315=new _0x1af197(_0x3d0063);return _0x2c2315['set']({'label':R(_0x3d0063,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2c2315['bind']('isEnabled')['to'](_0x15e393['commands']['get']('restoreRevision')),this['listenTo'](_0x2c2315,'execute',()=>_0x15e393['execute']('restoreRevision')),_0x2c2315;}),_0x15e393['ui']['componentFactory']['add']('changesNavigation',_0x3c1443=>{const _0x1644fb=new di(_0x3c1443),_0x307444=_0x15e393['commands']['get']('showPreviousChange'),_0x12a44e=_0x15e393['commands']['get']('showNextChange');return _0x1644fb['bind']('isBackwardNavigationEnabled')['to'](_0x307444,'isEnabled'),_0x1644fb['bind']('isForwardNavigationEnabled')['to'](_0x12a44e,'isEnabled'),_0x1644fb['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5c1416),this['listenTo'](_0x1644fb,'execute',(_0x57c36f,_0x477a30)=>{_0x15e393['execute']('forward'===_0x477a30?'showNextChange':'showPreviousChange');}),_0x1644fb;}),_0x6c87a7['show'](),_0x5c1416['on']('change:isReady',(_0x60f5ef,_0x16a392,_0x3bf169)=>{_0x3bf169?_0x6c87a7['hide']():_0x6c87a7['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x196d6c,_0x47cef4){super(_0x196d6c,_0x47cef4);const _0xc348d2=this['bindTemplate'];this['set']({'label':R(_0x196d6c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x196d6c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc348d2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xdfc751=this['fieldView']['element'];this['_tooltipString']=_0xdfc751['scrollWidth']>_0xdfc751['clientWidth']&&_0xdfc751['value']||'';}}class ti extends _0x2172d8{constructor(_0x1b7403,_0x225b07,_0x21956e){super(_0x1b7403);const _0x3d4de8=new _0x2a9f71();_0x3d4de8['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4e9947=['ck','ck-revision-history-sidebar__revision-author'];_0x21956e&&_0x4e9947['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2ac18b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1b7403,_0x21956e?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d4de8,_0x225b07['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4e9947},'children':_0x2ac18b});}}function ni(_0x9d44a2,_0x4951a9){const _0x2e5c3f=_0x9d44a2['bindTemplate'],_0x5835bf=_0x9d44a2['locale'],_0x57b54d=_0x3f6297(_0x5835bf);_0x57b54d['panelPosition']='sw';const _0x401e1d=function(_0x386960,_0x2a10d2){const _0x387e5e=function(_0xb4032,_0x4619bb){const _0x146fea=_0xb4032['locale'],_0x136ff1={'Compare\x20against\x20selected':R(_0x146fea,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x146fea,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x146fea,'Restore\x20this\x20revision')};return _0x4619bb['map'](_0x5f2db9=>{const _0x48f3eb=_0x136ff1[_0x5f2db9['name']];return _0x48f3eb&&_0x48f3eb!==_0x5f2db9['name']&&(_0x5f2db9['name']=_0x48f3eb),_0x5f2db9;});}(_0x386960,_0x2a10d2),_0x3d2b49=new _0xd8b86f();for(const _0x483c22 of _0x387e5e){const _0x28a7b7={'type':'button','model':new to({'label':_0x483c22['name'],'class':_0x483c22['class'],'withText':!0x0,'role':'menuitem','_action':_0x483c22['action']})};_0x28a7b7['model']['bind']('isEnabled')['to'](_0x386960,'isActionsDropdownOpen',_0x2aef6f=>'function'!=typeof _0x483c22['isEnabled']||(!_0x2aef6f||_0x483c22['isEnabled'](_0x386960))),_0x3d2b49['add'](_0x28a7b7);}return _0x3d2b49;}(_0x9d44a2,_0x4951a9);return _0x9d44a2['bind']('isActionsDropdownOpen')['to'](_0x57b54d,'isOpen'),_0x57b54d['buttonView']['set']({'label':R(_0x5835bf,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3ea365['threeVerticalDots']}),_0x57b54d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e5c3f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e5c3f['to'](_0x2fed53=>_0x2fed53['stopPropagation']())}}),_0x57b54d['on']('execute',_0x3ee5d6=>{_0x9d44a2['isReady']&&'function'==typeof _0x3ee5d6['source']['_action']&&_0x3ee5d6['source']['_action'](_0x9d44a2);}),_0x5e1bf1(_0x57b54d,_0x401e1d,{'role':'menu'}),_0x57b54d['listenTo'](_0x9d44a2,'change:isActionsDropdownOpen',(_0x476ac5,_0x57d8e6,_0xd64f7)=>{if(_0xd64f7)for(const _0x7556fa of _0x57b54d['listView']['items']){const _0x294735=_0x7556fa['children']['first'],_0x420ed5=_0x4951a9['find'](_0x31de95=>_0x31de95['action']===_0x294735['_action'])['isVisible'];_0x7556fa['isVisible']=void 0x0===_0x420ed5||_0x420ed5(_0x9d44a2);}}),_0x57b54d;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1c49e3(_0x2172d8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x222076,_0x5e465a,_0x46f893,_0x3e9dfd){super(_0x222076);const _0x2e1e71=this['bindTemplate'],_0x5c5c8e=function(_0x4ef640,_0x35c4ca){const _0x55056b=Array['from'](_0x35c4ca['authors'])['filter'](_0x418131=>_0x418131!=_0x35c4ca['creator']);return _0x35c4ca['creator']&&_0x55056b['unshift'](_0x35c4ca['creator']),_0x55056b['map'](_0x36fe47=>new ti(_0x4ef640,_0x36fe47,_0x36fe47==_0x35c4ca['creator']));}(_0x222076,_0x5e465a);this['id']=_0x5e465a['id'],this['_revision']=_0x5e465a,this['_requireRevisionName']=_0x3e9dfd,this['bind']('name','createdAt')['to'](_0x5e465a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5d7f8b=>{return _0x49414b=_0x222076['uiLanguage'],(_0x102916=_0x5d7f8b)['toLocaleDateString'](_0x49414b,{'month':'long','day':'numeric'})+',\x20'+_0x102916['toLocaleTimeString'](_0x49414b,{'hour':'numeric','minute':'numeric'});var _0x49414b,_0x102916;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x222076,_0x326b64),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x10f97a=>_0x10f97a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5723af,_0x469df6)=>_0x5723af&&_0x469df6),this['revisionActionsView']=_0x46f893&&_0x46f893['length']?ni(this,_0x46f893):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2e1e71['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2e1e71['if']('isEnabled','ck-disabled',_0x3acf0b=>!_0x3acf0b),_0x2e1e71['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2e1e71['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e1e71['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':_0x2e1e71['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':_0x5c5c8e}]},this['revisionActionsView']],'on':{'click':_0x2e1e71['to'](_0x35b918=>{_0x35b918['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x39714c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x39714c,'change',()=>{this['_requireRevisionName']&&!_0x39714c['value']||this['fire']('setName',{'id':this['id'],'name':_0x39714c['value']}),_0x39714c['value']||(_0x39714c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x411939,_0x5c1608){const _0x4c6bcb=_0x24852f['fromJSDate'](_0x411939)['setLocale'](_0x5c1608),_0x14d15e=_0x24852f['local'](),_0x5bf638=_0x14d15e['minus']({'days':0x1})['startOf']('day');let _0x509072,_0x6ebef2;return _0x4c6bcb['hasSame'](_0x14d15e,'day')?(_0x509072=_0x4c6bcb['startOf']('day')['toJSDate'](),_0x6ebef2=_0x4c6bcb['toRelativeCalendar']()):_0x4c6bcb['hasSame'](_0x5bf638,'day')?(_0x509072=_0x5bf638['toJSDate'](),_0x6ebef2=_0x4c6bcb['toRelativeCalendar']()):_0x4c6bcb['hasSame'](_0x14d15e,'week')?(_0x509072=_0x4c6bcb['startOf']('week')['toJSDate'](),_0x6ebef2=_0x4c6bcb['weekdayLong']||''):_0x4c6bcb['hasSame'](_0x14d15e,'year')?(_0x509072=_0x4c6bcb['startOf']('month')['toJSDate'](),_0x6ebef2=_0x4c6bcb['monthLong']||''):(_0x509072=_0x4c6bcb['startOf']('year')['toJSDate'](),_0x6ebef2=String(_0x4c6bcb['year'])),{'startDate':_0x509072,'localizedPeriodName':_0x6ebef2};}class vi extends _0x2172d8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x453b30,_0x295aca,_0x2dcf65,_0x1aa9aa){super(_0x453b30);const _0x4d0b29=mi(_0x295aca,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x295aca,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2dcf65,this['_requireRevisionName']=_0x1aa9aa,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':_0x4d0b29}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2853b0){const _0x2f6c82=new ai(this['locale'],_0x2853b0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2f6c82);}['removeRevision'](_0x25d206){const _0x3dd017=this['revisionViews']['find'](_0x4b0483=>_0x4b0483['id']===_0x25d206['id']);this['revisionViews']['remove'](_0x3dd017);}}class as extends _0x2172d8{constructor(_0x885bd9){super(_0x885bd9);const _0x5c23d2=new _0x2a9f71();_0x5c23d2['content']=_0x3ea365['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5c23d2,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x885bd9,'Revision\x20history')]}]});}}class li extends _0x2172d8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2137ab,_0x52a1a0,_0x23532a,_0x15860c){super(_0x2137ab);const _0x101546=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x52a1a0,this['_revisionActions']=_0x23532a,this['_requireRevisionName']=_0x15860c,this['on']('select',(_0x12f50f,_0x1f0ccc)=>{this['fire']('revisionSelected',_0x1f0ccc);}),this['on']('setName',(_0x478ca2,_0x299c14)=>{this['fire']('revisionSetName',_0x299c14);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2137ab),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x101546['if']('isEnabled','ck-disabled',_0x180d0d=>!_0x180d0d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1788d7 of this['_revisions'])this['_addRevision'](_0x1788d7);this['_revisions']['on']('add',(_0x202c24,_0x5bb590)=>{this['_addRevision'](_0x5bb590);}),this['_revisions']['on']('remove',(_0x59e7ca,_0x5a3bd3)=>{this['_removeRevision'](_0x5a3bd3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x9ad6be=>_0x9ad6be['revisionViews']['map'](_0x4e9a98=>_0x4e9a98))['flat']();}['selectRevision'](_0x3887cf){for(const _0x57ca35 of this['revisionViews'])_0x3887cf&&_0x3887cf['id']===_0x57ca35['id']?_0x57ca35['select']():_0x57ca35['deselect']();}['highlightRevisions'](_0xdc61b0){for(const _0x1945cf of this['revisionViews'])_0xdc61b0['some'](({id:_0x3951f3})=>_0x3951f3===_0x1945cf['id'])?_0x1945cf['highlight']():_0x1945cf['unhighlight']();}['_addRevision'](_0x288890){const _0x1b656d=mi(_0x288890['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x39dd2a=this['timePeriodViews']['get'](0x0);_0x39dd2a&&_0x39dd2a['startDate']['getTime']()===_0x1b656d['getTime']()||(_0x39dd2a=new vi(this['locale'],_0x1b656d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x39dd2a)),_0x39dd2a['addRevision'](_0x288890);}['_removeRevision'](_0x35cfc3){const _0x5e4dcf=mi(_0x35cfc3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5e4dcf)['removeRevision'](_0x35cfc3);}['_getTimePeriodViewByStartDate'](_0x3fe4ba){return this['timePeriodViews']['find'](_0x3ea0fb=>_0x3ea0fb['startDate']['getTime']()===_0x3fe4ba['getTime']());}}class g extends _0x5c4b81{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x59a639,_0x3634f5){super(_0x3634f5),this['sourceElement']=_0x59a639,this['model']['document']['createRoot']();const _0x1d333a=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x1d333a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xdbd095,_0x53736a){const _0x17d761=new this(_0xdbd095,_0x53736a);return await _0x17d761['initPlugins'](),await _0x17d761['ui']['init'](_0xdbd095),await _0x17d761['data']['init'](_0x17d761['config']['get']('initialData')||''),_0x17d761['fire']('ready'),_0x17d761;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x2ebc56{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x176a79){function _0x5154cd(_0x264614){return _0x264614['map'](_0x41406d=>String['fromCharCode'](_0x41406d))['join']('');}super(_0x176a79),this['result']='end',_0x176a79[_0x5154cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5154cd([0x76,0x69,0x65,0x77])][_0x5154cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5154cd([0x61,0x75,0x74,0x6f]),_0x176a79[_0x5154cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5154cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5154cd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5154cd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5154cd([0x6f,0x6b])});}}class H extends _0x2ebc56{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1af358){if(super(_0x1af358),!this['editor']['config']['get']('revisionHistory'))throw new _0x41ec69('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x22aca8=>this['_showRevisionViewer']({..._0x22aca8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3febd8=>this['_closeRevisionViewer'](_0x3febd8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2d403d=>this['_restoreRevision'](_0x2d403d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x143e2b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x143e2b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xfa5bf3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xfa5bf3);}['getRevision'](_0xf22f98){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xf22f98);}['getRevisions'](_0x575782){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x575782||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x33ce01=this['editor'],_0x4fa156=_0x4ae533(_0x33ce01,p),_0x185faa=_0x33ce01['plugins']['get']('RevisionTracker'),_0x5be85d=_0x33ce01['plugins']['get']('Users')['users'];return _0x4fa156['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4fa156['lazyRoots'],(_0x4fa156['plugins']['push'](k,d,m,class extends _0x2ebc56{static get['requires'](){return[d,'Users'];}['init'](){const _0x36a225=this['editor']['plugins']['get']('Users');for(const _0x3aee3f of _0x5be85d)_0x3aee3f['isAnonymous']||_0x36a225['getUser'](_0x3aee3f['id'])||_0x36a225['addUser'](_0x3aee3f);const _0x3c3465=_0x185faa['repository']['getRevisions']();let _0x37fde8=null;const _0x1f064a=this['editor']['plugins']['get']('RevisionViewer');_0x1f064a['adapter']=_0x185faa['adapter'],_0x1f064a['bind']('isEnabled')['to'](_0x185faa),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x33ce01,'isReadOnly',_0x28ebd2=>!_0x28ebd2);for(const _0x5d1d7c of _0x3c3465){const _0x3867fd=null===_0x5d1d7c['creator'];if(_0x3867fd&&_0x5d1d7c['toVersion']===_0x5d1d7c['fromVersion'])continue;const _0x2ddb7e=_0x5d1d7c['toJSON']();_0x1f064a['addRevisionData'](_0x2ddb7e,(_0x2eb78e,_0x3d9f8f,_0x122d14)=>{if(_0x3867fd){if(_0x37fde8)_0x37fde8['_update'](_0x2eb78e,_0x3d9f8f);else{if(!_0x3d9f8f){const _0x18d4a3=_0x122d14['toJSON']();_0x18d4a3['id']=_0xb3cc0b(),_0x185faa['saveRevision'](_0x18d4a3,_0x122d14['toVersion'])['then'](_0x395d66=>{_0x37fde8=_0x395d66;});}}}else _0x5d1d7c['_update'](_0x2eb78e,_0x3d9f8f);});}}},g),_0x4fa156);}['_enhanceShowRevisionViewerCallback'](){const _0x1b2fcc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xc3f1ed=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x127575=this['editor']['plugins']['get']('Autosave');await _0x127575['save']();}else await _0xc3f1ed['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x47c350=this['editor']['plugins']['get']('Dialog');_0x47c350['isOpen']&&_0x47c350['hide']();}const _0x50246e=this['_getRevisionViewerEditorConfig']();return _0x1b2fcc(_0x50246e)['then'](_0xe45b70=>{return(this['_viewerEditor']=_0xe45b70,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xe45b70;})['catch'](_0x10a260=>(console['error'](_0x10a260),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x41869d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x41869d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x36415b=this['editor']['plugins']['get']('Annotations');_0x36415b['refreshVisibility'](),_0x36415b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x155962){const _0x47a417=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x301f07=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x54031c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x54031c,_0x155962)['then'](_0x3c5b95=>(_0x301f07['style']['display']='block',_0x47a417['style']['display']='none',_0x3c5b95));}['_closeRevisionViewer'](_0x31bc9e){const _0x1b87ab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1b87ab['style']['display']='',_0x31bc9e['destroy']();}async['_restoreRevision'](_0x440e53){const _0x747b6e=this['editor'],_0x6eefa8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x45a1dd=_0x747b6e['plugins']['get']('RevisionTracker'),_0x58f2a0=_0x6eefa8['repository']['getRevision'](_0x440e53);let _0x30d135,_0x7617b9,_0x42512f;try{_0x30d135=await _0x6eefa8['getRevisionData'](_0x58f2a0),_0x7617b9=await _0x6eefa8['getRevisionRootsAttributes'](_0x58f2a0);}catch(_0x512b84){return void console['error'](_0x512b84);}_0x747b6e['model']['change'](_0x25b607=>{for(const _0x398eac of Array['from'](_0x747b6e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x25b607['removeMarker'](_0x398eac);}),_0x6eefa8['isReady']=!0x1,_0x747b6e['model']['enqueueChange'](_0x1b8242=>{_0x1b8242['setSelection'](null),_0x1b8242['removeSelectionAttribute'](_0x747b6e['model']['document']['selection']['getAttributeKeys']());const _0x20d5bf=Object['keys'](_0x30d135);for(const _0x3f496b of _0x747b6e['model']['document']['roots'])'$graveyard'!=_0x3f496b['rootName']&&_0x3f496b['isAttached']()&&!_0x20d5bf['includes'](_0x3f496b['rootName'])&&_0x1b8242['detachRoot'](_0x3f496b);for(const _0x2de0f3 of _0x20d5bf){let _0x2bb866=_0x747b6e['model']['document']['getRoot'](_0x2de0f3);_0x2bb866&&_0x2bb866['isAttached']()||(_0x2bb866=_0x1b8242['addRoot'](_0x2de0f3));const _0x364fc5=_0x7617b9[_0x2de0f3],_0x1d19bd=Object['keys'](_0x364fc5),_0x3a0aa6=_0x30d135[_0x2de0f3];for(const _0x3c46b4 of _0x2bb866['getAttributeKeys']())_0x1d19bd['includes'](_0x3c46b4)||_0x1b8242['removeAttribute'](_0x3c46b4,_0x2bb866);for(const _0xb4ab58 of _0x1d19bd)_0x1b8242['setAttribute'](_0xb4ab58,_0x7617b9[_0x2de0f3][_0xb4ab58],_0x2bb866);_0x1b8242['remove'](_0x1b8242['createRangeIn'](_0x2bb866)),_0x1b8242['insert'](_0x747b6e['data']['parse'](_0x3a0aa6,_0x2bb866),_0x2bb866,0x0);}});const _0x572724=R(_0x747b6e['locale'],'Restored');if(_0x58f2a0['name'])_0x42512f=-0x1==_0x58f2a0['name']['indexOf'](_0x572724)?_0x572724+':\x20'+_0x58f2a0['name']:_0x58f2a0['name'];else _0x42512f=_0x572724+':\x20'+(_0x58f2a0['createdAt']['toLocaleDateString'](_0x747b6e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x58f2a0['createdAt']['toLocaleTimeString'](_0x747b6e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x45a1dd['saveRevision']({'name':_0x42512f}),_0x6eefa8['isReady']=!0x0,_0x747b6e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x76847){super(_0x76847),this['_revisionViewer']=_0x76847['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ee4a6=this['_revisionsRepository']['_revisions'],_0x195cef=this['_createRevisionActions'](),_0x30a900=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x4ee4a6,_0x195cef,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',(_0x1fbdaa,_0x12f9f2)=>{_0x12f9f2['revisionViews']['on']('add',(_0x746ed5,_0x18611e)=>{_0x18611e['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)),_0x30a900['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x18422b=this['_revisionsRepository']['getRevision'](0x0);if(_0x18422b){const _0x593391=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18422b['id']);this['_revisionViewer']['compare'](_0x18422b,_0x593391);}}['_handleRevisionSelected'](_0x125103,_0x3e985e){const _0x1cc97a=this['_revisionsRepository']['getRevision'](_0x3e985e['id']),_0x5bd7d7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1cc97a['id']);this['_revisionViewer']['compare'](_0x1cc97a,_0x5bd7d7);}['_handleRevisionSetName'](_0x2a2514,_0x50a522){this['_revisionsRepository']['getRevision'](_0x50a522['id'])['setName'](_0x50a522['name']);}['_handleDiffChange'](_0x2a8aeb,_0x54f6c0,_0x17a9b1){const _0x4c90ff=this['_revisionsRepository']['getRevisionsInDiff'](_0x17a9b1);_0x4c90ff['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4c90ff),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4c90ff[0x0]));}['_createRevisionActions'](){const _0x5a8ead=this['editor'],_0xd5e19=g['availableRevisionActions'],_0x8f9317=_0x5a8ead['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x8f9317['length'])return _0x8f9317['map'](_0x51e1db=>{const _0x1a3dff='string'==typeof _0x51e1db?Object['assign']({},_0xd5e19[_0x51e1db]):_0x51e1db;return _0x1a3dff['action']=_0x1a3dff['action']['bind'](this,_0x5a8ead),_0x1a3dff['isVisible']&&(_0x1a3dff['isVisible']=_0x1a3dff['isVisible']['bind'](this,_0x5a8ead)),_0x1a3dff;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x594fa9},_0x2a7258)=>{const _0x3c5327=_0x594fa9['get'](d),_0x1b1a8d=_0x3c5327['repository'];let _0xc74c12=_0x3c5327['diff']['newRevisionId'],_0x4d3faa=_0x2a7258['id'];_0x1b1a8d['getIndex'](_0xc74c12)>_0x1b1a8d['getIndex'](_0x4d3faa)&&([_0xc74c12,_0x4d3faa]=[_0x4d3faa,_0xc74c12]),_0x3c5327['compare'](_0xc74c12,_0x4d3faa);},'isVisible':({plugins:_0x1e694b},_0x57aebe)=>{const _0x102be9=_0x1e694b['get'](d);return!(_0x102be9['repository']['getRevisionsInDiff'](_0x102be9['diff'])['length']>0x2)&&!_0x57aebe['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x93b346,{id:_0x2b1856})=>{_0x93b346['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b1856);},'isVisible':({plugins:_0x402523},_0x1cc053)=>!!_0x402523['get'](d)['repository']['getLaterVisibleRevision'](_0x1cc053['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x234ca3},{id:_0x144f78,revisionNameView:_0x1ad19e})=>{const _0x55c6a1=_0x234ca3['get'](d),_0x11928c=_0x55c6a1['repository']['getEarlierVisibleRevision'](_0x144f78);_0x55c6a1['compare'](_0x144f78,_0x11928c),_0x1ad19e['focus'](),_0x1ad19e['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x28f208,_0x2dd55e){super(_0x28f208),this['_view']=_0x2dd55e,this['_toolbarConfig']=ht(_0x28f208['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x44a8c7){const _0x2e24a5=this['editor'],_0x2859cc=this['view'],_0x4e0973=_0x2e24a5['editing']['view'],_0x2decc7=_0x2859cc['editable'],_0x131bcf=_0x4e0973['document']['getRoot']();_0x2decc7['name']=_0x131bcf['rootName'],_0x2859cc['render']();const _0x4bd9d6=_0x2decc7['element'];this['setEditableElement'](_0x2decc7['name'],_0x4bd9d6),_0x2859cc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4e0973['attachDomRoot'](_0x4bd9d6),this['_elementReplacer']['replace'](_0x44a8c7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4ee45f=this['view'],_0x4e389d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4e389d['detachDomRoot'](_0x4ee45f['editable']['name']),_0x4ee45f['destroy']();}['_initToolbar'](){const _0x11cd59=this['view'];_0x11cd59['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x11cd59['stickyPanel']['limiterElement']=_0x11cd59['element'],_0x11cd59['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x439e74})=>_0x439e74),_0x11cd59['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x11cd59['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x454190,_0x5e4218,_0x325c8d={}){super(_0x454190),this['stickyPanel']=new lt(_0x454190),this['toolbar']=new nt(_0x454190,{'shouldGroupWhenFull':_0x325c8d['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x454190,_0x5e4218);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4997e9,_0x4aa236){super(_0x4aa236),this['sourceElement']=_0x4997e9,this['model']['document']['createRoot']();const _0x96b77f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x96b77f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x54046a,_0xfeae82){const _0x536fbb=new this(_0x54046a,_0xfeae82);return await _0x536fbb['initPlugins'](),await _0x536fbb['ui']['init'](_0x54046a),await _0x536fbb['data']['init'](_0x536fbb['config']['get']('initialData')||''),_0x536fbb['fire']('ready'),_0x536fbb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5c4b81{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24820c){function _0x53979f(_0x1159dd){return _0x1159dd['map'](_0x551e1a=>String['fromCharCode'](_0x551e1a))['join']('');}super(_0x24820c),this['result']='end',_0x24820c[_0x53979f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53979f([0x76,0x69,0x65,0x77])][_0x53979f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53979f([0x61,0x75,0x74,0x6f]),_0x24820c[_0x53979f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53979f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53979f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53979f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53979f([0x6f,0x6b])});}}class H extends _0x5c4b81{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x36e84b){if(super(_0x36e84b),!this['editor']['config']['get']('revisionHistory'))throw new _0x49237c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x195ff3=>this['_showRevisionViewer']({..._0x195ff3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x30723a=>this['_closeRevisionViewer'](_0x30723a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37aa1f=>this['_restoreRevision'](_0x37aa1f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x520fd1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x520fd1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xeebbae){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xeebbae);}['getRevision'](_0x1259d1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1259d1);}['getRevisions'](_0xc1c50f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xc1c50f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x9d1afc=this['editor'],_0xb19804=_0x50a836(_0x9d1afc,p),_0x5582b8=_0x9d1afc['plugins']['get']('RevisionTracker'),_0x4cff46=_0x9d1afc['plugins']['get']('Users')['users'];return _0xb19804['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xb19804['lazyRoots'],(_0xb19804['plugins']['push'](k,d,m,class extends _0x5c4b81{static get['requires'](){return[d,'Users'];}['init'](){const _0x39b968=this['editor']['plugins']['get']('Users');for(const _0x6ae1bf of _0x4cff46)_0x6ae1bf['isAnonymous']||_0x39b968['getUser'](_0x6ae1bf['id'])||_0x39b968['addUser'](_0x6ae1bf);const _0x361943=_0x5582b8['repository']['getRevisions']();let _0x58e53d=null;const _0x5d065a=this['editor']['plugins']['get']('RevisionViewer');_0x5d065a['adapter']=_0x5582b8['adapter'],_0x5d065a['bind']('isEnabled')['to'](_0x5582b8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x9d1afc,'isReadOnly',_0x230479=>!_0x230479);for(const _0x2ea9d8 of _0x361943){const _0x16e4ce=null===_0x2ea9d8['creator'];if(_0x16e4ce&&_0x2ea9d8['toVersion']===_0x2ea9d8['fromVersion'])continue;const _0x5be095=_0x2ea9d8['toJSON']();_0x5d065a['addRevisionData'](_0x5be095,(_0x5dc05a,_0x53b0ce,_0x13f475)=>{if(_0x16e4ce){if(_0x58e53d)_0x58e53d['_update'](_0x5dc05a,_0x53b0ce);else{if(!_0x53b0ce){const _0x518f14=_0x13f475['toJSON']();_0x518f14['id']=_0xe2f24(),_0x5582b8['saveRevision'](_0x518f14,_0x13f475['toVersion'])['then'](_0x1481aa=>{_0x58e53d=_0x1481aa;});}}}else _0x2ea9d8['_update'](_0x5dc05a,_0x53b0ce);});}}},g),_0xb19804);}['_enhanceShowRevisionViewerCallback'](){const _0x564138=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x29930f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x26e599=this['editor']['plugins']['get']('Autosave');await _0x26e599['save']();}else await _0x29930f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1adf29=this['editor']['plugins']['get']('Dialog');_0x1adf29['isOpen']&&_0x1adf29['hide']();}const _0x23f6ac=this['_getRevisionViewerEditorConfig']();return _0x564138(_0x23f6ac)['then'](_0x3fd786=>{return(this['_viewerEditor']=_0x3fd786,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3fd786;})['catch'](_0x5089f1=>(console['error'](_0x5089f1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x187232=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x187232(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3ab3c5=this['editor']['plugins']['get']('Annotations');_0x3ab3c5['refreshVisibility'](),_0x3ab3c5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x196b04){const _0x37be76=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x273062=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x405204=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x405204,_0x196b04)['then'](_0x451e82=>(_0x273062['style']['display']='block',_0x37be76['style']['display']='none',_0x451e82));}['_closeRevisionViewer'](_0x5166c7){const _0x5c1e28=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5c1e28['style']['display']='',_0x5166c7['destroy']();}async['_restoreRevision'](_0xb16b78){const _0x2f474f=this['editor'],_0x50b17e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2fc4f6=_0x2f474f['plugins']['get']('RevisionTracker'),_0x17085c=_0x50b17e['repository']['getRevision'](_0xb16b78);let _0x25eab4,_0xc63ae2,_0x3f33df;try{_0x25eab4=await _0x50b17e['getRevisionData'](_0x17085c),_0xc63ae2=await _0x50b17e['getRevisionRootsAttributes'](_0x17085c);}catch(_0x50c98b){return void console['error'](_0x50c98b);}_0x2f474f['model']['change'](_0x4bd06b=>{for(const _0x30df0e of Array['from'](_0x2f474f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4bd06b['removeMarker'](_0x30df0e);}),_0x50b17e['isReady']=!0x1,_0x2f474f['model']['enqueueChange'](_0x2c8033=>{_0x2c8033['setSelection'](null),_0x2c8033['removeSelectionAttribute'](_0x2f474f['model']['document']['selection']['getAttributeKeys']());const _0x58d006=Object['keys'](_0x25eab4);for(const _0x2c86ab of _0x2f474f['model']['document']['roots'])'$graveyard'!=_0x2c86ab['rootName']&&_0x2c86ab['isAttached']()&&!_0x58d006['includes'](_0x2c86ab['rootName'])&&_0x2c8033['detachRoot'](_0x2c86ab);for(const _0x152bfe of _0x58d006){let _0x223d1e=_0x2f474f['model']['document']['getRoot'](_0x152bfe);_0x223d1e&&_0x223d1e['isAttached']()||(_0x223d1e=_0x2c8033['addRoot'](_0x152bfe));const _0x2b6711=_0xc63ae2[_0x152bfe],_0x589f11=Object['keys'](_0x2b6711),_0x27b2f1=_0x25eab4[_0x152bfe];for(const _0x19134d of _0x223d1e['getAttributeKeys']())_0x589f11['includes'](_0x19134d)||_0x2c8033['removeAttribute'](_0x19134d,_0x223d1e);for(const _0x13544d of _0x589f11)_0x2c8033['setAttribute'](_0x13544d,_0xc63ae2[_0x152bfe][_0x13544d],_0x223d1e);_0x2c8033['remove'](_0x2c8033['createRangeIn'](_0x223d1e)),_0x2c8033['insert'](_0x2f474f['data']['parse'](_0x27b2f1,_0x223d1e),_0x223d1e,0x0);}});const _0x83ce7f=R(_0x2f474f['locale'],'Restored');if(_0x17085c['name'])_0x3f33df=-0x1==_0x17085c['name']['indexOf'](_0x83ce7f)?_0x83ce7f+':\x20'+_0x17085c['name']:_0x17085c['name'];else _0x3f33df=_0x83ce7f+':\x20'+(_0x17085c['createdAt']['toLocaleDateString'](_0x2f474f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x17085c['createdAt']['toLocaleTimeString'](_0x2f474f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2fc4f6['saveRevision']({'name':_0x3f33df}),_0x50b17e['isReady']=!0x0,_0x2f474f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|