@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250215.0 → 0.0.0-nightly-next-20250216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- 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
|
-
_0x1128d5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xd048ec){super(),this['id']=_0xd048ec['id']||_0x5e10e6(),this['creator']=_0xd048ec['creator']||null,this['authors']=_0xd048ec['authors']||[],this['diffData']=_0xd048ec['diffData']||null,this['toVersion']=_0xd048ec['toVersion']||0x0,this['fromVersion']=_0xd048ec['fromVersion']||0x0,this['set']('name',_0xd048ec['name']||''),this['set']('createdAt',_0xd048ec['createdAt']||new Date()),this['set']('attributes',_0xd048ec['attributes']||{});}['setName'](_0x3b4d8e){this['_update']({'name':_0x3b4d8e});}['setAttribute'](_0x4f9ace,_0x4f2dea){const _0xa33fa9=_0x2810e6(this['attributes']);_0x4b7950(_0xa33fa9,_0x4f9ace,_0x4f2dea),this['_update']({'attributes':_0xa33fa9});}['removeAttribute'](_0x31c04b){const _0x45df53=_0x2810e6(this['attributes']);_0x403090(_0x45df53,_0x31c04b),this['_update']({'attributes':_0x45df53});}['_update'](_0x1779ec,_0x1e8447=!0x1){let _0x31ecd6=!0x1;const _0x4010c6={'id':this['id']},_0xfdd92=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2dc2c3 of _0xfdd92){const _0x5439a7=_0x1779ec[_0x2dc2c3];void 0x0!==_0x5439a7&&_0x5439a7!==this[_0x2dc2c3]&&(this[_0x2dc2c3]=_0x5439a7,_0x4010c6[_0x2dc2c3]=_0x5439a7,_0x31ecd6=!0x0);}_0x31ecd6&&(_0x4010c6['authors']&&(_0x4010c6['authorsIds']=_0x4010c6['authors']['map'](_0x20c667=>_0x20c667['id']),delete _0x4010c6['authors']),this['fire']('_update',_0x4010c6,_0x1e8447));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x71d230=>_0x71d230['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3cb746{['_revisions'];static get['requires'](){return[_0x5d288c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1ffd78){super(_0x1ffd78),this['_revisions']=new _0x2818bf();}['afterInit'](){!async function(_0x4ef321){const _0x2a562c=_0x1fcd07([0x34,0x41,0x45,0x74,0x72,0x37,0x51,0x75,0x47,0x6a,0x6c,0x38,0x35,0x49,0x30,0x79,0x31,0x54,0x70,0x73,0x5a,0x77,0x33,0x50,0x59,0x6e,0x64,0x62,0x58,0x32,0x55,0x6b,0x43,0x56,0x52,0x4f,0x6d,0x78,0x39,0x76,0x67,0x65,0x4d,0x63,0x42,0x7a,0x57,0x44,0x53,0x36,0x46,0x69,0x4a,0x4c,0x48,0x71,0x66,0x6f,0x61,0x68,0x4b,0x4e]),_0x4ef71d=0xeb829,_0x2ef756=0x27c8b32,_0x30d059=0x27bd4a2^_0x2ef756,_0x269f5f=window[_0x1fcd07([0x44,0x61,0x74,0x65])][_0x1fcd07([0x6e,0x6f,0x77])](),_0x5403c6=_0x4ef321[_0x1fcd07([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19a3e2=new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410260=>{_0x5403c6[_0x1fcd07([0x6f,0x6e,0x63,0x65])](_0x1fcd07([0x72,0x65,0x61,0x64,0x79]),_0x410260);}),_0x55bdab={[_0x1fcd07([0x6b,0x74,0x79])]:_0x1fcd07([0x45,0x43]),[_0x1fcd07([0x75,0x73,0x65])]:_0x1fcd07([0x73,0x69,0x67]),[_0x1fcd07([0x63,0x72,0x76])]:_0x1fcd07([0x50,0x2d,0x32,0x35,0x36]),[_0x1fcd07([0x78])]:_0x1fcd07([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]),[_0x1fcd07([0x79])]:_0x1fcd07([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]),[_0x1fcd07([0x61,0x6c,0x67])]:_0x1fcd07([0x45,0x53,0x32,0x35,0x36])},_0x108cbf=_0x5403c6[_0x1fcd07([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1fcd07([0x67,0x65,0x74])](_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bfe45(){let _0x41d365,_0x5444b6=null,_0x117236=null;try{if(_0x108cbf==_0x1fcd07([0x47,0x50,0x4c]))return _0x1fcd07([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41d365=_0x123357(),!_0x41d365)return _0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41d365[_0x1fcd07([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x117236=_0x42a620(_0x41d365[_0x1fcd07([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41d365[_0x1fcd07([0x6a,0x74,0x69])])),await _0x56035c()?_0x3dd631()?_0x319895()?_0x1fcd07([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26754f()?(_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fcd07([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5444b6=_0x1ed4ee(_0x1fcd07([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fcd07([0x74,0x72,0x69,0x61,0x6c])&&(_0x5444b6=_0x1ed4ee(_0x1fcd07([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d86bc()):_0x1fcd07([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1fcd07([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a6898){return _0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x319895(){const _0x27fbd5=[_0x1fcd07([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1fcd07([0x74,0x72,0x69,0x61,0x6c])][_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x269f5f/0x3e8:0xe10*_0x30d059;return _0x41d365[_0x1fcd07([0x65,0x78,0x70])]<_0x27fbd5;}function _0x3dd631(){const _0x4a410d=_0x41d365[_0x1fcd07([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a410d)return!0x1;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x2a])))return!0x0;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x52,0x48])))return!0x0;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x52,0x52,0x48]))){if(_0x28babc())return!0x0;if(_0x8c1f22()||_0x4bb3e7())return!0x0;}return!0x1;}function _0x26754f(){const _0x2cbff0=_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cbff0||0x0==_0x2cbff0[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x149c8e}=new URL(window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cbff0[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149c8e))return!0x0;const _0x2fa43a=_0x149c8e[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e]));return _0x2cbff0[_0x1fcd07([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b41c=>_0x20b41c[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x2a])))[_0x1fcd07([0x6d,0x61,0x70])](_0x409248=>_0x409248[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e])))[_0x1fcd07([0x73,0x6f,0x6d,0x65])](_0x2c4c92=>_0x2fa43a[_0x1fcd07([0x65,0x76,0x65,0x72,0x79])]((_0x3b0399,_0xa5654d)=>_0x2c4c92[_0xa5654d]===_0x3b0399||_0x2c4c92[_0xa5654d]===_0x1fcd07([0x2a])));}function _0x2d86bc(){return _0x5444b6&&_0x117236?new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a1413,_0x50a1a9)=>{_0x5444b6[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x3a1413,_0x50a1a9),_0x117236[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x28be2a=>{_0x28be2a!=_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])&&_0x3a1413(_0x28be2a);},_0x50a1a9);}):_0x5444b6||_0x117236||_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42a620(_0x2acc8d,_0x34ef6b){return new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b291c=>{if(_0x566712())return _0x3b291c(_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]));_0xfe0b11(),_0x5403c6[_0x1fcd07([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x435025=!0x1;const _0x569cfb=_0x5e10e6();function _0x2c5e9e(_0x4de186){return!!_0x4de186&&(typeof _0x4de186===_0x1fcd07([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4de186===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4de186[_0x1fcd07([0x74,0x68,0x65,0x6e])]===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4de186[_0x1fcd07([0x63,0x61,0x74,0x63,0x68])]===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12fdae(_0x35c7d4){_0xb97070(_0x35c7d4)[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x56cc8a=>{if(!_0x56cc8a||_0x56cc8a[_0x1fcd07([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1fcd07([0x6f,0x6b]))return _0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x253a8a(_0x19d736(_0x569cfb+_0x34ef6b))!=_0x56cc8a[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]);})[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x1d7d96=>(_0x53f110(),_0x1d7d96),()=>{const _0xa79881=_0x1f0188();return null==_0xa79881?(_0x53f110(),_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])):_0x1fcd07(_0x269f5f-_0xa79881>(0x26700f32^_0x2ef756)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x3b291c)[_0x1fcd07([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6f736f=0x24a65b2^_0x2ef756;function _0x53f110(){const _0x514138=_0x1fcd07([0x6c,0x6c,0x63,0x74,0x2d])+_0x253a8a(_0x19d736(_0x2acc8d)),_0x3d3026=_0x53cb56(_0x253a8a(window[_0x1fcd07([0x4d,0x61,0x74,0x68])][_0x1fcd07([0x63,0x65,0x69,0x6c])](_0x269f5f/_0x6f736f)));window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fcd07([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x514138,_0x3d3026);}function _0x1f0188(){const _0x479e2a=_0x1fcd07([0x6c,0x6c,0x63,0x74,0x2d])+_0x253a8a(_0x19d736(_0x2acc8d)),_0xef89a1=window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fcd07([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x479e2a);return _0xef89a1?window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cb56(_0xef89a1),0x10)*_0x6f736f:null;}function _0xb97070(_0x4173c6){return new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ac418,_0x260a7f)=>{_0x4173c6[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x4ac418,_0x260a7f),window[_0x1fcd07([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x260a7f,0x27d5ff2^_0x2ef756);});}}_0x5403c6[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e26d2,_0x4248b5)=>{if(_0x4248b5[0x0]!=_0x2acc8d)return _0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4248b5[0x1]={..._0x4248b5[0x1],[_0x1fcd07([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x569cfb};},{[_0x1fcd07([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fcd07([0x68,0x69,0x67,0x68])}),_0x5403c6[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x196e67=>{_0x2c5e9e(_0x196e67[_0x1fcd07([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x435025=!0x0,_0x12fdae(_0x196e67[_0x1fcd07([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1fcd07([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fcd07([0x6c,0x6f,0x77])}),_0x19a3e2[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>{_0x435025||_0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x566712(){return _0x5403c6[_0x1fcd07([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fcd07([0x76,0x69,0x65,0x77])][_0x1fcd07([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1fcd07([0x61,0x75,0x74,0x6f]);}function _0xfe0b11(){_0x5403c6[_0x1fcd07([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fcd07([0x76,0x69,0x65,0x77])][_0x1fcd07([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fcd07([0x61,0x75,0x74,0x6f]);}}function _0x1ed4ee(_0x592410){const _0x3bcf2c=[new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582079=>setTimeout(_0x582079,0x275b5fe^_0x2ef756)),_0x19a3e2[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf8cccb=>{const _0x39b99b=0x27c8b35^_0x2ef756,_0x2f9937=_0x4ef321[_0x1fcd07([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x454ab8(){_0x2f9937[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x39b99b&&_0xf8cccb();}_0x454ab8(),_0x2f9937[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x61,0x64,0x64]),_0x454ab8);})),new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abc10=>{function _0x1906ee(){for(const _0x23a54f in window)if(window[_0x1fcd07([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1fcd07([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x23a54f))&&window[_0x23a54f]==_0x4ef71d)return _0x5abc10();_0x5403c6[_0x1fcd07([0x73,0x74,0x61,0x74,0x65])]!=_0x1fcd07([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1fcd07([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1906ee,0x27c98ba^_0x2ef756);}_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1906ee();})];return window[_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fcd07([0x72,0x61,0x63,0x65])](_0x3bcf2c)[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>_0x592410);}async function _0x4e8e5f(){if(await _0x19a3e2,_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x77d9d6=_0x4ef321[_0x1fcd07([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x495803=_0x4ef321[_0x1fcd07([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])](_0x77d9d6[_0x1fcd07([0x69,0x64])]),_0x32eb4c=_0xeed6eb(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32eb4c[_0x1fcd07([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x77d9d6['id'],_0x495803?_0x495803['id']:null,!0x0),_0x32eb4c[_0x1fcd07([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32eb4c[_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32eb4c[_0x1fcd07([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x16e3f4,void(_0x32eb4c[_0x1fcd07([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x16e3f4);}if(_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bac4c=_0xeed6eb(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bac4c[_0x1fcd07([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bac4c[_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bac4c[_0x1fcd07([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x16e3f4,_0x5bac4c[_0x1fcd07([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x16e3f4;}_0x5403c6[_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fcd07([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16e3f4,_0x5403c6[_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fcd07([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16e3f4,_0x5403c6[_0x1fcd07([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28babc(){return _0x1e672f(_0x1fcd07([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xeed6eb(_0x1fcd07([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1fcd07([0x73,0x74,0x61,0x74,0x65])]==_0x1fcd07([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x8c1f22(){return _0x1e672f(_0x1fcd07([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 _0x4bb3e7(){return _0x1e672f(_0x1fcd07([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c693a(_0x2662f2){const _0x4bcaa6=_0x4f10c9();_0x5403c6[_0x4bcaa6]=_0x1fcd07([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])+_0x2662f2,_0x2662f2[_0x1fcd07([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1fcd07([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4f10c9()]=_0x4ef71d),_0x2662f2!=_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])&&_0x4e8e5f();}function _0x4f10c9(){const _0x199134=window[_0x1fcd07([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1fcd07([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1fcd07([0x6e,0x6f,0x77])]())[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1fcd07([0x2e]),'');let _0x3345f9=_0x1fcd07([0x41]);for(let _0x4f4faa=0x0;_0x4f4faa<_0x199134[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4faa+=0x2){let _0x1eed0c=window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x199134[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4faa,_0x4f4faa+0x2));_0x1eed0c>=_0x2a562c[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1eed0c-=_0x2a562c[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3345f9+=_0x2a562c[_0x1eed0c];}return _0x3345f9;}function _0x123357(){const _0xc7451f=_0x108cbf[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e]));if(0x3!=_0xc7451f[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e723d(_0xc7451f[0x1]);function _0x5e723d(_0x5abbf4){const _0x3375c0=_0xb8f539(_0x5abbf4);return _0x3375c0&&_0x2957af()?_0x3375c0:null;function _0x2957af(){const _0x2aa2=_0x3375c0[_0x1fcd07([0x6a,0x74,0x69])],_0x4c3386=window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa2[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aa2[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18b21c={..._0x3375c0,[_0x1fcd07([0x6a,0x74,0x69])]:_0x2aa2[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2aa2[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18b21c[_0x1fcd07([0x76,0x63])],_0x19d736(_0x18b21c)==_0x4c3386;}}}async function _0x56035c(){let _0x43015c=!0x0;try{const _0x379a6a=_0x108cbf[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e])),[_0x5eac84,_0x21a1f7,_0x184dc2]=_0x379a6a;return _0x2f7c33(_0x5eac84),await _0x399270(_0x5eac84,_0x21a1f7,_0x184dc2),_0x43015c;}catch(_0x3c5922){return!0x1;}function _0x2f7c33(_0x803ea0){const _0x4ed049=_0xb8f539(_0x803ea0);_0x4ed049&&_0x4ed049[_0x1fcd07([0x61,0x6c,0x67])]==_0x1fcd07([0x45,0x53,0x32,0x35,0x36])||(_0x43015c=!0x1);}async function _0x399270(_0x2b5936,_0x4031fa,_0x20d87b){const _0x2c4212=window[_0x1fcd07([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1fcd07([0x66,0x72,0x6f,0x6d])](_0x36e4d2(_0x20d87b),_0x2a872c=>_0x2a872c[_0x1fcd07([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40b524=new window[(_0x1fcd07([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1fcd07([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b5936+_0x1fcd07([0x2e])+_0x4031fa),_0x34d728=window[_0x1fcd07([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1fcd07([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d728)return;const _0x44bf37=await _0x34d728[_0x1fcd07([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1fcd07([0x6a,0x77,0x6b]),_0x55bdab,{[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x45,0x43,0x44,0x53,0x41]),[_0x1fcd07([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1fcd07([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d728[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x45,0x43,0x44,0x53,0x41]),[_0x1fcd07([0x68,0x61,0x73,0x68])]:{[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44bf37,_0x2c4212,_0x40b524)||(_0x43015c=!0x1);}}function _0xb8f539(_0x251b54){return _0x251b54[_0x1fcd07([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1fcd07([0x65,0x79]))?JSON[_0x1fcd07([0x70,0x61,0x72,0x73,0x65])](_0x36e4d2(_0x251b54)):null;}function _0x36e4d2(_0x4ea771){return window[_0x1fcd07([0x61,0x74,0x6f,0x62])](_0x4ea771[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1fcd07([0x2b]))[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1fcd07([0x2f])));}function _0x19d736(_0x12da3b){let _0x35cf24=0x1505;function _0x225a7d(_0x4f7844){for(let _0x126b76=0x0;_0x126b76<_0x4f7844[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x126b76++){const _0x3bb909=_0x4f7844[_0x1fcd07([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x126b76);_0x35cf24=(_0x35cf24<<0x5)+_0x35cf24+_0x3bb909,_0x35cf24&=_0x35cf24;}}function _0x2d5e23(_0x5ab5f4){Array[_0x1fcd07([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ab5f4)?_0x5ab5f4[_0x1fcd07([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d5e23):_0x5ab5f4&&typeof _0x5ab5f4==_0x1fcd07([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1fcd07([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ab5f4)[_0x1fcd07([0x73,0x6f,0x72,0x74])]()[_0x1fcd07([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x464b55,_0x445d3f])=>{_0x225a7d(_0x464b55),_0x2d5e23(_0x445d3f);}):_0x225a7d(window[_0x1fcd07([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ab5f4));}return _0x2d5e23(_0x12da3b),_0x35cf24>>>0x0;}function _0x253a8a(_0xb74e41){return _0xb74e41[_0x1fcd07([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1fcd07([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1fcd07([0x30]));}function _0x53cb56(_0xddd819){return _0xddd819[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1fcd07([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1fcd07([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e672f(_0x33123c){return _0x5403c6[_0x1fcd07([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fcd07([0x68,0x61,0x73])](_0x33123c);}function _0xeed6eb(_0x5d3265){return _0x5403c6[_0x1fcd07([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fcd07([0x67,0x65,0x74])](_0x5d3265);}function _0x16e3f4(){}function _0x1fcd07(_0x692c06){return _0x692c06['map'](_0x252236=>String['fromCharCode'](_0x252236))['join']('');}_0x4c693a(await _0x4bfe45());}(this);}['createRevision'](_0x3799f6){const _0x307c6a=this['editor']['plugins']['get']('Users');return new h({'id':_0x3799f6['id'],'name':_0x3799f6['name'],'creator':_0x3799f6['creatorId']?_0x307c6a['getUser'](_0x3799f6['creatorId']):null,'diffData':_0x3799f6['diffData']||_0x3799f6['data'],'authors':_0x3799f6['authorsIds']['map'](_0x1a1ade=>_0x307c6a['getUser'](_0x1a1ade)),'createdAt':new Date(_0x3799f6['createdAt']),'attributes':_0x3799f6['attributes'],'fromVersion':_0x3799f6['fromVersion'],'toVersion':_0x3799f6['toVersion']});}['addRevision'](_0x232f5f,_0x24ede0=0x0){this['_revisions']['add'](_0x232f5f,_0x24ede0);}['getRevision'](_0x4a5e1a){return this['_revisions']['get'](_0x4a5e1a);}['getRevisions'](_0x2c5f2f={'toJSON':!0x1}){const _0xd6894b=Array['from'](this['_revisions']);return _0xd6894b['reverse'](),_0x2c5f2f['toJSON']?_0xd6894b['map'](_0x575e16=>_0x575e16['toJSON']()):_0xd6894b;}['getIndex'](_0x1d49d1){return this['_revisions']['getIndex'](_0x1d49d1);}['getEarlierVisibleRevision'](_0x15de17){const [,_0x51343d]=this['getRevisionsIterator'](_0x15de17,{'direction':'earlier'});return _0x51343d;}['getLaterVisibleRevision'](_0x3c24c6){const [,_0x4ab0bc]=this['getRevisionsIterator'](_0x3c24c6,{'direction':'later'});return _0x4ab0bc;}['getRevisionsInDiff'](_0x473fd8){const _0x5415f2=[];for(const _0x560305 of this['getRevisionsIterator'](_0x473fd8['newRevisionId']))if(_0x5415f2['push'](_0x560305),_0x560305['id']===_0x473fd8['oldRevisionId'])break;return _0x5415f2;}*['getRevisionsIterator'](_0x235abe,{direction:_0x23b7b4='earlier',filter:_0x425ced=()=>!0x0}={}){const _0x4fdc7d='earlier'===_0x23b7b4?0x1:-0x1;let _0x1f52c7=this['_revisions']['get'](_0x235abe),_0x2d1540=this['getIndex'](_0x1f52c7);for(yield _0x1f52c7;_0x1f52c7;){if(_0x2d1540+=_0x4fdc7d,_0x1f52c7=this['getRevision'](_0x2d1540),!_0x1f52c7)return;_0x425ced(_0x1f52c7)&&(yield _0x1f52c7);}}}function m(_0x1908a5,_0x32fce7,_0x13f64d){const t=_0x1908a5['t'];switch(_0x32fce7){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'},_0x13f64d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13f64d);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 E={'c':_0xc94dac,'a':_0x42d014,'e':_0x499499,'r':_0x2a65a8,'u':_0x33d900};class u extends _0x3cb746{['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[_0x5d288c,j,_0x41f7d1];}constructor(_0x206c55){super(_0x206c55),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4f4f4e=_0x5e10e6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f4f4e},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 _0x5fa4d9=this['repository']['getRevision'](0x0),_0x2226f4=_0x5fa4d9&&null===_0x5fa4d9['creator']?_0x5fa4d9:null;if(this['_continueCurrentRevision']=!!_0x2226f4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b7068=this['_source']['getCurrentRevisionId'](),_0x43024f=this['repository']['getRevision'](_0x1b7068);if(_0x43024f)this['_startingVersion']=_0x43024f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xba23ef=this['_source']['history']['_operations']['find'](_0x3f34d0=>!_0x3f34d0['_isInit']),_0x3a9f5f=_0xba23ef?_0xba23ef['baseVersion']:this['_source']['history']['version'];_0x5fa4d9?(_0x5fa4d9['toVersion']<_0x3a9f5f&&_0x5fa4d9['_update']({'toVersion':_0x3a9f5f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id'],this['_startingVersion']=_0x2226f4['fromVersion']):(this['_startingVersion']=_0x5fa4d9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a9f5f,this['_continueCurrentRevision']=!0x1);}}else _0x2226f4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2226f4['toVersion'],this['editor']['model']['document']['history']['version']),_0x2226f4['fromVersion']===_0x2226f4['toVersion']?(0x0!==_0x2226f4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id'],this['_startingVersion']=_0x2226f4['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',_0x9ce7ca=>!_0x9ce7ca),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cc691=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe7517a;for(const _0x3ea81a in _0x1cc691){const _0x356c65=_0x3ea81a,_0x27c993=_0x1cc691[_0x356c65];if('revisionHistoryLicenseKeyValid'==_0x27c993||'revisionHistoryLicenseKeyInvalid'==_0x27c993||'revisionHistoryLicenseKeyExpired'==_0x27c993||'revisionHistoryLicenseKeyDomainLimit'==_0x27c993||'revisionHistoryLicenseKeyNotAllowed'==_0x27c993||'revisionHistoryLicenseKeyEvaluationLimit'==_0x27c993||'revisionHistoryLicenseKeyTrialLimit'==_0x27c993||'revisionHistoryLicenseKeyUsageLimit'==_0x27c993){delete _0x1cc691[_0x356c65],_0xe7517a=_0x27c993,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xe7517a&&_0x1cc691['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xe7517a&&_0x1cc691['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xe7517a&&_0x1cc691['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x282328=this['repository']['getRevision'](0x0),_0x332167=await this['getRevisionDocumentData'](_0x282328),_0x56a297=await this['getRevisionRootsAttributes'](_0x282328);this['_replaceEditorDataWithRevisionData'](_0x332167,_0x56a297);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xfdc8ac){this['_source']=_0xfdc8ac;}async['update'](){const _0x52603a=await this['_source']['getLatestVersion']();if(_0x52603a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x54384d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x52603a});_0x54384d['authors']=_0x54384d['authorsIds']['map'](_0x5892fa=>this['editor']['plugins']['get']('Users')['getUser'](_0x5892fa)),this['currentRevision']['_update'](_0x54384d);}}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'](_0x3112e1={},_0x4316a6=null){const _0x4b4202=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4316a6>this['currentRevision']['toVersion']&&(_0x4316a6=null),null===_0x4316a6&&(_0x4316a6=await this['_source']['getLatestVersion']());const _0x24856f=this['_getFromVersion'](_0x4316a6),_0x5505ee=this['buildRevisionData']({'from':_0x24856f,'to':_0x4316a6});if(this['currentRevision']['toVersion']<_0x4316a6){const _0x1e2711=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4316a6,'to':_0x4316a6});_0x1e2711['authors']=[],_0x1e2711['authorsIds']=[],_0x1e2711['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1e2711,!0x0),delete _0x1e2711['authors'],_0x4b4202['push'](_0x1e2711);}_0x3112e1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3112e1['name']=_0x3112e1['name']||null,_0x3112e1['id']=_0x3112e1['id']||_0x5e10e6(),_0x3112e1={..._0x3112e1,..._0x5505ee};const _0x3e6d84=this['addRevisionData'](_0x3112e1);_0x4b4202['push'](_0x3112e1);const _0x3f18a6=this['repository']['getIndex'](_0x3e6d84);if(0x0!==_0x3f18a6){const _0x5438a2=this['repository']['getRevision'](_0x3f18a6-0x1);if(_0x5438a2['fromVersion']!==_0x4316a6){const _0x5e8666=this['_revisionDataBuilder']['getData'](_0x4316a6,_0x5438a2['toVersion']),_0x36baee={'id':_0x5438a2['id'],'diffData':_0x5e8666['diffData'],'authorsIds':_0x5e8666['authorsIds'],'authors':_0x5e8666['authorsIds']['map'](_0x12b3de=>this['editor']['plugins']['get']('Users')['getUser'](_0x12b3de)),'fromVersion':_0x4316a6};_0x5438a2===this['currentRevision']&&(_0x36baee['createdAt']=new Date(_0x3112e1['createdAt']['getTime']()+0xa)),_0x5438a2['_update'](_0x36baee,!0x0),delete _0x36baee['authors'],_0x4b4202['push'](_0x36baee);}}if(this['adapter']){for(const _0x40b07f of _0x4b4202)this['_bufferUpdate'](_0x40b07f['id'],_0x40b07f,!0x0);this['sendBufferedUpdates']();}return _0x3e6d84;}['addRevisionData'](_0x324429){const _0x15f93a=this['repository']['createRevision'](_0x324429);return this['adapter']&&_0x15f93a['on']('_update',(_0x5600cb,_0x9577de,_0x229eb0)=>{_0x229eb0||(this['_bufferUpdate'](_0x9577de['id'],_0x9577de,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15f93a,this['_findInsertionIndex'](_0x15f93a)),_0x15f93a;}async['getRevisionDocumentData'](_0x59727c){await this['_loadRevisionData'](_0x59727c);const _0x45ff71={};for(const _0x4e2b89 in _0x59727c['diffData']){if(_0x59727c['diffData'][_0x4e2b89]['attachChange']&&!_0x59727c['diffData'][_0x4e2b89]['attachChange']['isAttached'])continue;const _0x256609=this['_removeRevisionMarkers'](JSON['parse'](_0x59727c['diffData'][_0x4e2b89]['insertions'])),_0x5d7baf=this['editor']['editing']['view']['document'],_0x8039f3=new _0x413e02(_0x5d7baf,_0x256609['map'](_0x455c69=>P(_0x455c69,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x45ff71[_0x4e2b89]=this['editor']['data']['processor']['toData'](_0x8039f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x45ff71;}async['getRevisionRootsAttributes'](_0x43408c){await this['_loadRevisionData'](_0x43408c);const _0x563126={};for(const _0x2373c5 in _0x43408c['diffData'])_0x43408c['diffData'][_0x2373c5]['attachChange']&&!_0x43408c['diffData'][_0x2373c5]['attachChange']['isAttached']||(_0x563126[_0x2373c5]=_0x43408c['diffData'][_0x2373c5]['attributesAfter']||{});return _0x563126;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x518e9a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1908aa=0x0;_0x1908aa<_0x518e9a['length'];_0x1908aa++){const _0x3886db=_0x518e9a[_0x1908aa];let _0x4512d3=!0x1;for(const _0x164790 of Object['keys'](_0x3886db))void 0x0===_0x3886db[_0x164790]?delete _0x3886db[_0x164790]:'id'!==_0x164790&&(_0x4512d3=!0x0);_0x4512d3||(_0x518e9a[_0x1908aa]=null);}if(_0x518e9a=_0x518e9a['filter'](_0x3c052e=>null!==_0x3c052e),!_0x518e9a['length'])return;for(let _0x329947=0x0;_0x329947<_0x518e9a['length'];_0x329947++){const _0xd0e492=_0x518e9a[_0x329947];void 0x0!==_0xd0e492['fromVersion']&&void 0x0===_0xd0e492['toVersion']&&(_0xd0e492['toVersion']=this['repository']['getRevision'](_0xd0e492['id'])['toVersion']),void 0x0!==_0xd0e492['toVersion']&&void 0x0===_0xd0e492['fromVersion']&&(_0xd0e492['fromVersion']=this['repository']['getRevision'](_0xd0e492['id'])['fromVersion']);}const _0x28a729=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x518e9a,_0x28a729)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f8197=>{if(_0x1f8197){for(const _0x12153d of _0x1f8197)this['setRevisionData']({'id':_0x12153d['id'],'createdAt':_0x12153d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1d73d7,_0x1da784){let _0x5dacb9=this['editor']['config']['get']('initialData'),_0x2991ed=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5dacb9){_0x5dacb9={};for(const _0x399d12 of this['editor']['model']['document']['getRootNames']())_0x5dacb9[_0x399d12]='';}if('string'==typeof _0x5dacb9&&(_0x5dacb9={'main':_0x5dacb9}),void 0x0===_0x2991ed){_0x2991ed={};for(const _0x3fd922 of this['editor']['model']['document']['getRootNames']())_0x2991ed[_0x3fd922]={};}let _0xb2f715=!0x1;const _0xf02745=Object['keys'](_0x5dacb9),_0x99c321=Object['keys'](_0x1d73d7);for(const _0x42dea8 of _0xf02745){if(_0x5dacb9[_0x42dea8]!==_0x1d73d7[_0x42dea8]&&''!==_0x5dacb9[_0x42dea8]['trim']()){_0xb2f715=!0x0;break;}if(!_0x4cd24f(_0x2991ed[_0x42dea8],_0x1da784[_0x42dea8])&&Object['keys'](_0x2991ed[_0x42dea8])['length']>0x0){_0xb2f715=!0x0;break;}}_0xb2f715||(_0xb2f715=_0x99c321['some'](_0x2e0aa1=>!this['editor']['model']['document']['getRoot'](_0x2e0aa1))),_0xb2f715&&_0x55b76a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dacb9,'editorRootsAttributes':_0x2991ed,'revisionData':_0x1d73d7,'revisionRootsAttributes':_0x1da784}),this['editor']['config']['set']('initialData',_0x1d73d7),this['editor']['config']['set']('rootsAttributes',_0x1da784);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x59fe31=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x59fe31['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5e5ba8){const _0x1756d5=this['repository']['getRevisions']();_0x1756d5['reverse']();let _0x3cd244=0x0;for(;_0x3cd244<_0x1756d5['length'];){const _0x501153=_0x1756d5[_0x3cd244];if(_0x501153===this['currentRevision']){_0x3cd244++;continue;}if(_0x501153['id']===this['_initialRevisionId'])break;const _0x18a43f=_0x5e5ba8['toVersion']-_0x501153['toVersion']||_0x5e5ba8['fromVersion']-_0x501153['fromVersion'];if(_0x18a43f>0x0)break;if(_0x18a43f<0x0)_0x3cd244++;else{if(!_0x5e5ba8['creator']&&_0x501153['creator'])break;if(_0x501153['creator']||!_0x5e5ba8['creator']){if(_0x5e5ba8['createdAt']>_0x501153['createdAt'])break;_0x3cd244++;}else _0x3cd244++;}}return _0x3cd244;}['setRevisionData'](_0x5df879){const _0x1e6431=this['repository']['getRevision'](_0x5df879['id']);if(_0x5df879['createdAt']&&(_0x5df879['createdAt']=new Date(_0x5df879['createdAt'])),_0x5df879['authorsIds']){const _0x14f225=this['editor']['plugins']['get']('Users');_0x5df879['authors']=_0x5df879['authorsIds']['map'](_0x3be518=>_0x14f225['getUser'](_0x3be518));}_0x1e6431['_update'](_0x5df879,!0x0);}['buildRevisionData']({revision:_0x4d6683=null,from:_0x515187=null,to:_0x189a5a=null}){_0x515187=null!==_0x515187?_0x515187:_0x4d6683['fromVersion'],_0x189a5a=null!==_0x189a5a?_0x189a5a:_0x4d6683['toVersion'];const _0x12c83a=this['_revisionDataBuilder']['getData'](_0x515187,_0x189a5a),_0x20ed8e={'diffData':_0x12c83a['diffData'],'authorsIds':_0x12c83a['authorsIds'],'fromVersion':_0x515187,'toVersion':_0x189a5a};if(!_0x4d6683||_0x189a5a!==_0x4d6683['toVersion']){const _0x4911a9=_0x189a5a-0x1,_0x15f559=this['_source']['history']['getOperation'](_0x4911a9);_0x20ed8e['createdAt']=_0x15f559&&_0x15f559['createdAt']||new Date();}if(this['_loadedStateData']&&_0x515187===this['_loadedStateData']['fromVersion']){for(const _0x1bcec8 of this['_loadedStateData']['authors'])_0x20ed8e['authorsIds']['includes'](_0x1bcec8['id'])||_0x20ed8e['authorsIds']['push'](_0x1bcec8['id']);}return _0x20ed8e;}['_loadRevisionData'](_0x4581b0){if(!_0x4581b0||_0x4581b0['diffData'])return Promise['resolve']();{const _0x1d2944=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1d2944,'revisionId':_0x4581b0['id']})['then'](_0xb6ddca=>{_0x4581b0['diffData']=_0xb6ddca['diffData'];});}}['_bufferUpdate'](_0x5ca72e,_0x5e0238,_0x4c524d){if(this['_bufferedUpdates']['has'](_0x5ca72e)){const _0x372050=this['_bufferedUpdates']['get'](_0x5ca72e);_0x5e0238=_0x4c524d?{..._0x372050,..._0x5e0238}:{..._0x5e0238,..._0x372050};}this['_bufferedUpdates']['set'](_0x5ca72e,_0x5e0238);}['_getFromVersion'](_0x462e0b){const _0xc352fc=this['repository']['getRevisions']();_0xc352fc['reverse'](),_0xc352fc['shift']();const _0x432b81=_0xc352fc['find'](_0x18b9ab=>_0x18b9ab['toVersion']<=_0x462e0b)['toVersion'];return _0x432b81<this['_startingVersion']?this['_startingVersion']:_0x432b81;}['_createInitialRevision'](_0x39e114){const _0x38419e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x38419e)this['_initialRevisionId']=_0x38419e['id'];else{const _0x2c1b5=!this['editor']['model']['document']['roots']['find'](_0x4572b3=>this['editor']['model']['hasContent'](_0x4572b3)),_0x27251f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b2949=m(this['editor']['locale'],_0x2c1b5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x39e114,'to':_0x39e114,'id':this['_initialRevisionId'],'name':_0x1b2949,'creatorId':_0x27251f});}}['_createCurrentRevision'](_0x5ec497){const _0x5565a0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5565a0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5ec497,'to':_0x5ec497,'id':_0x5565a0,'name':'','creatorId':null}));}['_makeRevision']({name:_0xc75d23,from:_0x3f62d9,to:_0x2474c7,creatorId:_0x302b9c,id:_0x1b0e70}){const _0x5c589d=this['buildRevisionData']({'from':_0x3f62d9,'to':_0x2474c7});_0x5c589d['name']=_0xc75d23,_0x5c589d['creatorId']=_0x302b9c,_0x5c589d['id']=_0x1b0e70;const _0x15fef6=this['addRevisionData'](_0x5c589d);return this['adapter']&&this['_bufferUpdate'](_0x5c589d['id'],_0x5c589d,!0x0),_0x15fef6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5999c9){return(_0x5999c9=_0x5999c9['filter'](_0x38b1d8=>!_0x38b1d8['name']||'revision-start'!==_0x38b1d8['name']&&'revision-end'!==_0x38b1d8['name']))['forEach'](_0x351ea1=>{'string'!=typeof _0x351ea1&&(_0x351ea1['children']=this['_removeRevisionMarkers'](_0x351ea1['children']),_0x351ea1['attributes']=_0x351ea1['attributes']['filter'](_0x2057da=>!_0x2057da[0x0]['startsWith']('data-revision-')));}),_0x5999c9;}}function P(_0x5a65c7,_0xf68032){const _0x1d19f7=_0xf68032['editing']['view']['document'];if('string'==typeof _0x5a65c7)return new _0xff6857(_0x1d19f7,_0x5a65c7);{const _0x5b595e=_0x5a65c7['children']['map'](_0x35c0fe=>P(_0x35c0fe,_0xf68032));return new(E[_0x5a65c7['type']]||_0x363a6e)(_0x1d19f7,_0x5a65c7['name'],_0x5a65c7['attributes'],_0x5b595e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x26bd05){this['editor']=_0x26bd05,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'](_0x1f6bdf){this['source']=_0x1f6bdf;const _0x471d26=new Map(),_0x373c3a=new Map(),_0x12b1fa=this['editor']['model']['document']['roots']['map'](_0x1483d0=>_0x1483d0['rootName']);for(const _0x3f01d2 of _0x12b1fa){const _0x356f1b=this['editor']['model']['document']['getRoot'](_0x3f01d2),_0xd2bc51=T(_0x356f1b);_0x471d26['set'](_0x3f01d2,_0xd2bc51),_0x373c3a['set'](_0x3f01d2,Object['fromEntries'](_0x356f1b['getAttributes']()));}const _0x3e1a52=Array['from'](this['editor']['model']['markers'])['map'](_0x380715=>[_0x380715['name'],_0x380715['getRange']()]),_0x371e07=this['source']['version'];this['_saveMetaData'](_0x371e07,_0x471d26,_0x3e1a52,_0x373c3a),this['_startingRevisionId']=this['_revisionId'];const _0x2fb890=new Map(),_0x58b83a=new Map();for(const _0x38245f of _0x12b1fa){const _0x5d00de=F(_0x38245f);_0x2fb890['set'](_0x38245f,_0x5d00de),_0x58b83a['set'](_0x38245f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2fb890,[],_0x58b83a);}['getData'](_0x39bc0e,_0x3d32c6){if(this['_lastFrom']===_0x39bc0e&&this['_lastTo']<=_0x3d32c6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3d32c6,!0x0);else{if(!this['_savedMetaData']['has'](_0x39bc0e)){const _0x15c2d5=this['_getPreviousFrom'](_0x39bc0e);this['_calculateMetaData'](_0x15c2d5,_0x39bc0e,!0x1);}this['_calculateMetaData'](_0x39bc0e,_0x3d32c6,!0x0);}return this['_lastFrom']=_0x39bc0e,this['_lastTo']=_0x3d32c6,this['_getState']();}['loadState'](_0x5affc5){this['_reset'](),this['_lastFrom']=_0x5affc5['fromVersion'],this['_lastTo']=_0x5affc5['toVersion'];for(const _0x5d2ecb in _0x5affc5['diffData']){const _0x3e72f4=_0x5affc5['diffData'][_0x5d2ecb]['attachChange'],_0x356c35=_0x2810e6(_0x5affc5['diffData'][_0x5d2ecb]['attributesBefore'])||{},_0x42b371=this['_makeModelFromViewString'](_0x5affc5['diffData'][_0x5d2ecb]['deletions']);_0x42b371['rootName']=_0x5d2ecb,_0x42b371['_isAttached']=!_0x3e72f4||!_0x3e72f4['isAttached'],_0x42b371['isAttached']=()=>_0x42b371['_isAttached'],this['_baseRoots']['set'](_0x5d2ecb,_0x42b371),this['_baseRootsAttributes']['set'](_0x5d2ecb,_0x356c35),_0x3e72f4&&this['_touchedRoots']['set'](_0x5d2ecb,_0x3e72f4);const _0x187f20=this['_makeIdsRoot'](_0x42b371);this['_baseIdsRoots']['set'](_0x5d2ecb,_0x187f20);for(const [_0x3084f9,_0xb93c02]of _0x42b371['markers']){if(!_0x3084f9['startsWith']('revision:'))continue;const _0x54993a=_0x3084f9['split'](':')[0x2];for(const _0x258b1e of _0xb93c02['getWalker']({'singleCharacters':!0x0})){const _0x3e3748=this['_getVidAttributeName'](_0x258b1e),_0x3b1794='elementEnd'==_0x258b1e['type']?_0x258b1e['previousPosition']['path']['slice'](0x0,-0x1):_0x258b1e['previousPosition']['path'],_0x2369fc=_0x187f20['getNodeByPath'](_0x3b1794)['getAttribute'](_0x3e3748);this['_touched']['set'](_0x2369fc,{'userId':_0x54993a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x28216c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x14e6b3=>!this['_touched']['has'](_0x14e6b3));let _0x5b66df=0x0;const _0x41fe89=new Map();for(const _0x34d682 in _0x5affc5['diffData']){const _0x220b34=_0x5affc5['diffData'][_0x34d682]['attachChange'],_0x5149fc=_0x2810e6(_0x5affc5['diffData'][_0x34d682]['attributesAfter'])||{},_0x600dec=this['_makeModelFromViewString'](_0x5affc5['diffData'][_0x34d682]['insertions']);_0x600dec['rootName']=_0x34d682,_0x600dec['_isAttached']=!_0x220b34||_0x220b34['isAttached'],_0x600dec['isAttached']=()=>_0x600dec['_isAttached'],this['_diffRoots']['set'](_0x34d682,_0x600dec),this['_diffRootsAttributes']['set'](_0x34d682,_0x5149fc);const _0x2ed2ca=this['_makeIdsRoot'](_0x600dec,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x34d682,_0x2ed2ca),_0x41fe89['set'](_0x34d682,_0x600dec['isAttached']()?_0x5149fc:{});for(const [_0xbb6a68,_0x4b34ff]of _0x600dec['markers']){if(!_0xbb6a68['startsWith']('revision:'))continue;const _0x48deb7=_0xbb6a68['split'](':')[0x2];for(const _0x40b7b7 of _0x4b34ff['getWalker']({'singleCharacters':!0x0})){const _0x3b386b=this['_getVidAttributeName'](_0x40b7b7),_0x3a47f1=this['_revisionId']++,_0x483b3a='elementEnd'==_0x40b7b7['type']?_0x40b7b7['previousPosition']['path']['slice'](0x0,-0x1):_0x40b7b7['previousPosition']['path'];_0x2ed2ca['getNodeByPath'](_0x483b3a)['_setAttribute'](_0x3b386b,_0x3a47f1),this['_touched']['set'](_0x3a47f1,{'userId':_0x48deb7});}}for(const _0x2d8d42 of this['editor']['model']['createRangeIn'](_0x600dec)['getWalker']({'singleCharacters':!0x0})){const _0x396835=this['_getVidAttributeName'](_0x2d8d42),_0x5c46b9='elementEnd'==_0x2d8d42['type']?_0x2d8d42['previousPosition']['path']['slice'](0x0,-0x1):_0x2d8d42['previousPosition']['path'],_0x354950=_0x2ed2ca['getNodeByPath'](_0x5c46b9);_0x354950['getAttribute'](_0x396835)>0x0||_0x354950['_setAttribute'](_0x396835,_0x28216c[_0x5b66df++]);}for(const [_0x21bf4e,_0x233d7a]of _0x600dec['markers'])_0x21bf4e['startsWith']('revision:')||this['_markers']['set'](_0x21bf4e,_0x233d7a);}const _0x58578c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x58578c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x58578c,0x1));const _0xba4487=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xba4487),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xba4487,0x1));const _0xaaae54=Array['from'](this['_diffRoots'])['map'](([_0x258613,_0x618cf8])=>[_0x258613,T(_0x618cf8)]);this['_saveMetaData'](this['_lastTo'],_0xaaae54,this['_markers'],_0x41fe89);}['_makeModelFromViewString'](_0x2e33a5){const _0x46a6dd=JSON['parse'](_0x2e33a5),_0x44d966=this['editor']['editing']['view']['document'],_0x7a6f93=new _0x413e02(_0x44d966,_0x46a6dd['map'](_0x1ca0fe=>P(_0x1ca0fe,this['editor'])));return this['editor']['data']['toModel'](_0x7a6f93);}['_saveMetaData'](_0x3a33a8,_0x585110,_0x3474e5,_0xf3ec4a){const _0x172045=new Map(_0x585110),_0x5438c3=new Map(_0x2810e6(_0xf3ec4a)),_0x3b8fda=new Map();for(const [_0x6a5a21,_0x3bec49]of _0x3474e5)_0x3b8fda['set'](_0x6a5a21,{'start':_0x3bec49['start']['clone'](),'end':_0x3bec49['end']['clone'](),'rootName':_0x3bec49['root']['rootName']});this['_savedMetaData']['set'](_0x3a33a8,{'roots':_0x172045,'markers':_0x3b8fda,'rootsAttributes':_0x5438c3});}['_removeMetaData'](_0x5f0b7a){this['_savedMetaData']['delete'](_0x5f0b7a);}['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'](_0x2ba10d,_0x45fb93=null){let _0x22345f=null;_0x2ba10d['is']('documentFragment')||(_0x22345f=new ut(_0x2ba10d['name'],{'vid_start':null===_0x45fb93?this['_revisionId']++:_0x45fb93++}));const _0x4fdfe0=[];for(const _0x36aa89 of _0x2ba10d['getChildren']())if(_0x36aa89['is']('element')){_0x4fdfe0['push'](this['_makeIdsRoot'](_0x36aa89,_0x45fb93));const _0x25bca0=_0x4fdfe0[_0x4fdfe0['length']-0x1];null!==_0x45fb93&&(_0x45fb93=_0x25bca0['is']('element','$text')?_0x25bca0['getAttribute']('vid')+0x1:_0x25bca0['getAttribute']('vid_end')+0x1);}else{for(let _0x71ff82=0x0;_0x71ff82<_0x36aa89['offsetSize'];_0x71ff82++)_0x4fdfe0['push'](new ut('$text',{'vid':null===_0x45fb93?this['_revisionId']++:_0x45fb93++}));}if(_0x2ba10d['is']('documentFragment')){const _0x5ec32a=F(_0x2ba10d['rootName']);return _0x5ec32a['_insertChild'](0x0,_0x4fdfe0),_0x5ec32a;}return _0x22345f['_setAttribute']('vid_end',null===_0x45fb93?this['_revisionId']++:_0x45fb93++),_0x22345f['_insertChild'](0x0,_0x4fdfe0),_0x22345f;}['_calculateMetaData'](_0x1d7b37,_0x325175,_0x904d7b){this['_reset']();const {roots:_0x2a908f,markers:_0x4e1f50,rootsAttributes:_0x1684e0}=this['_savedMetaData']['get'](_0x1d7b37);this['_baseRoots']=new Map(_0x2a908f),this['_baseRootsAttributes']=new Map(_0x2810e6(_0x1684e0));for(const [_0x193396,_0x58be47]of this['_baseRoots'])if('$graveyard'!==_0x193396&&(this['_diffRoots']['set'](_0x193396,T(_0x58be47)),this['_diffRootsAttributes']=new Map(_0x2810e6(_0x1684e0)),_0x904d7b)){const _0x415374=this['_revisionId'];this['_idsRoots']['set'](_0x193396,this['_makeIdsRoot'](_0x58be47)),this['_baseIdsRoots']['set'](_0x193396,this['_makeIdsRoot'](_0x58be47,_0x415374));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x904d7b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x54aa76,_0x3f5b62]of _0x4e1f50){const _0x8a8db1=this['_baseRoots']['get'](_0x3f5b62['rootName']),_0x23ec5d=this['_diffRoots']['get'](_0x3f5b62['rootName']),_0xc323fd=new ft(this['_fixPosition'](_0x3f5b62['start'],_0x8a8db1),this['_fixPosition'](_0x3f5b62['end'],_0x8a8db1)),_0x19e1fd=this['_fixRange'](_0xc323fd,_0x23ec5d);_0x8a8db1['markers']['set'](_0x54aa76,_0xc323fd),this['_markers']['set'](_0x54aa76,_0x19e1fd);}this['_applyOperations'](_0x1d7b37,_0x325175,_0x904d7b);}['_applyOperations'](_0x26348e,_0x25f5c0,_0x4389b6){for(const _0x290af8 of this['source']['getOperations'](_0x26348e,_0x25f5c0))this['_handleOperation'](_0x290af8,_0x4389b6);for(const _0x1bf438 of this['_diffRoots']['values']())_0x1bf438['markers']['clear']();for(const [_0x58be78,_0x3af29e]of this['_markers']){this['_diffRoots']['get'](_0x3af29e['root']['rootName'])['markers']['set'](_0x58be78,_0x3af29e['clone']());}const _0x28675a=new Map(),_0x4e0af0=new Map();for(const [_0x2321b9,_0x2980bd]of this['_diffRoots'])_0x28675a['set'](_0x2321b9,T(_0x2980bd)),_0x4e0af0['set'](_0x2321b9,this['_diffRootsAttributes']['get'](_0x2321b9));this['_saveMetaData'](_0x25f5c0,_0x28675a,this['_markers'],_0x4e0af0);}['_getPreviousFrom'](_0xffaea){const _0x18a525=Array['from'](this['_savedMetaData']['keys']());_0x18a525['sort']((_0x27ca1e,_0x20cbe8)=>_0x27ca1e-_0x20cbe8),_0x18a525['reverse']();for(const _0x9110fb of _0x18a525)if(_0x9110fb<_0xffaea)return _0x9110fb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x16491e,_0x13b959){const _0x187a1a=Array['from'](_0x13b959['markers'])['map'](([_0x32831a,_0x2a6192])=>[_0x32831a,this['_fixRange'](_0x2a6192,_0x16491e)]);_0x16491e['markers']=new Map(_0x187a1a);}['_transformMarkers'](_0x538b6e){for(const _0x2f69a3 of this['_markers']['values']()){const _0x34d551=_0x2f69a3['getTransformedByOperation'](_0x538b6e),_0x17ef46=ft['_createFromRanges'](_0x34d551);_0x2f69a3['start']=_0x17ef46['start'],_0x2f69a3['end']=_0x17ef46['end'];}}['_handleOperation'](_0x9a01cd,_0x40ccb6){if('addRoot'!=_0x9a01cd['type']&&'detachRoot'!=_0x9a01cd['type']){if('insert'==_0x9a01cd['type']){const _0x422fd8=_0x9a01cd['position']['root']['rootName'];this['_diffRoots']['has'](_0x422fd8)||(this['_diffRoots']['set'](_0x422fd8,F(_0x422fd8,!0x0)),this['_diffRootsAttributes']['set'](_0x422fd8,{}),_0x40ccb6&&this['_idsRoots']['set'](_0x422fd8,F(_0x422fd8,!0x0)));}else{if('addRootAttribute'==_0x9a01cd['type']||'removeRootAttribute'==_0x9a01cd['type']||'changeRootAttribute'==_0x9a01cd['type'])return void this['_handleRootAttributeOperation'](_0x9a01cd);'marker'==_0x9a01cd['type']&&this['_handleMarkerOperation'](_0x9a01cd);}if('marker'!==_0x9a01cd['type']){const _0x8e5e6b=this['_cloneOperation'](_0x9a01cd,this['_diffRoots']);_0x8e5e6b['_execute'](),this['_transformMarkers'](_0x8e5e6b);}if(_0x40ccb6)switch(_0x9a01cd['type']){case'insert':this['_handleInsertOperation'](_0x9a01cd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9a01cd);break;case'merge':this['_handleMergeOperation'](_0x9a01cd);break;case'split':this['_handleSplitOperation'](_0x9a01cd);}}else this['_handleRootOperation'](_0x9a01cd,_0x40ccb6);}['_cloneOperation'](_0x1d95da,_0x1b63a4){const _0x18aedd=_0x1d95da['clone']();return _0x18aedd['_authorId']=_0x1d95da['_authorId'],this['_fixOperation'](_0x18aedd,_0x1b63a4),_0x18aedd;}['_getBaseVids'](_0x26e6d9){return _0x26e6d9['map'](_0x1f1e65=>{const _0x4b73d1=this['_getVidAttributeName'](_0x1f1e65);return Number(_0x1f1e65['item']['getAttribute'](_0x4b73d1));});}['_generateTape'](_0x3212ec,_0x428345){if(_0x3212ec['is']('element','$text'))_0x428345['push']({'item':_0x3212ec,'type':'text'});else{_0x3212ec['is']('element')&&_0x428345['push']({'item':_0x3212ec,'type':'elementStart'});for(const _0x200fae of _0x3212ec['getChildren']())this['_generateTape'](_0x200fae,_0x428345);_0x3212ec['is']('element')&&_0x428345['push']({'item':_0x3212ec,'type':'elementEnd'});}return _0x428345;}['_getState'](){const _0x3bc845=new Map(this['_touched']),_0x3c8f1b=new Map(_0x3bc845),_0x93f4f8=new Map(),_0x3f3539={'insertions':{},'deletions':{}},_0x551c43={'insertions':{},'deletions':{}},_0x541339=new Map(),_0x3d3582=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d3582['delete']('$graveyard');for(const _0x3dfed5 of _0x3d3582){const _0x48fd93=this['_diffRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1),_0x4c2a1a=this['_baseRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1);_0x48fd93['isAttached']()||_0x4c2a1a['isAttached']()?(_0x3f3539['insertions'][_0x3dfed5]=T(_0x48fd93),_0x3f3539['deletions'][_0x3dfed5]=T(_0x4c2a1a),this['_copyMarkers'](_0x3f3539['deletions'][_0x3dfed5],_0x4c2a1a),this['_copyMarkers'](_0x3f3539['insertions'][_0x3dfed5],_0x48fd93),_0x551c43['insertions'][_0x3dfed5]=this['_generateTape'](this['_idsRoots']['get'](_0x3dfed5),[]),_0x551c43['deletions'][_0x3dfed5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1),[])):_0x3d3582['delete'](_0x3dfed5);}for(const _0x2fce98 of _0x3d3582){const _0x300a60=_0x551c43['insertions'][_0x2fce98];for(const _0x130f9f of _0x300a60){const _0x4e8163=this['_getVidAttributeName'](_0x130f9f),_0x3aa94d=_0x130f9f['item']['getAttribute'](_0x4e8163);_0x3c8f1b['delete'](_0x3aa94d),_0x3aa94d>=this['_startingRevisionId']&&_0x93f4f8['set'](_0x3aa94d,_0x3bc845['get'](_0x3aa94d));}}for(const _0x4f011b of _0x3d3582){const _0x4ba2ca=_0x551c43['insertions'][_0x4f011b],_0x30d887=this['_getBaseVids'](_0x551c43['deletions'][_0x4f011b]);let _0x3969dd=0x0;for(const _0x4029b7 of _0x4ba2ca){const _0x37d17e=this['_getVidAttributeName'](_0x4029b7),_0x195fe4=_0x4029b7['item']['getAttribute'](_0x37d17e);if(!_0x93f4f8['has'](_0x195fe4)&&!_0x541339['has'](_0x195fe4)){if(_0x3c8f1b['has'](_0x195fe4))_0x3969dd++;else{if(_0x195fe4!=_0x30d887[_0x3969dd]){const _0x1b42e0=_0x3bc845['get'](_0x195fe4)||_0x3bc845['get'](_0x30d887[_0x3969dd]);for(;_0x195fe4!=_0x30d887[_0x3969dd];)_0x3c8f1b['has'](_0x30d887[_0x3969dd])||(_0x541339['set'](_0x30d887[_0x3969dd],_0x1b42e0),_0x3bc845['set'](_0x30d887[_0x3969dd],_0x1b42e0)),_0x3969dd++;}_0x3969dd++;}}}}for(const _0xbb9fbc of _0x3d3582){const _0x3e4895=_0x551c43['insertions'][_0xbb9fbc];for(const _0x551190 of _0x3e4895){const _0xcd533=this['_getVidAttributeName'](_0x551190),_0x5a21cd=_0x551190['item']['getAttribute'](_0xcd533);if(_0x541339['has'](_0x5a21cd)){const _0x2b2ba1=_0x541339['get'](_0x5a21cd);_0x3c8f1b['has'](_0x5a21cd)||_0x3c8f1b['set'](_0x5a21cd,{..._0x2b2ba1}),_0x93f4f8['set'](_0x5a21cd,{..._0x2b2ba1});}}}for(const _0x689416 of _0x3c8f1b['keys']())_0x689416>=this['_startingRevisionId']&&_0x3c8f1b['delete'](_0x689416);const _0x2e0e42=new Map();for(const _0x4410dd of _0x3d3582){let _0x23e8c9=_0x551c43['insertions'][_0x4410dd];for(const _0x1cd4b5 of _0x23e8c9)if(_0x1cd4b5['item']['is']('element','tableCell')){const _0x24a8cb=this['_getVidAttributeName'](_0x1cd4b5),_0x349171=_0x1cd4b5['item']['getAttribute'](_0x24a8cb);if(_0x93f4f8['has'](_0x349171)){const _0x3b20a4=_0x1cd4b5['item']['parent']['parent']['getAttribute']('vid_start'),_0x51d4d4=_0x2e0e42['get'](_0x3b20a4)||new Set();_0x51d4d4['add'](_0x93f4f8['get'](_0x349171)['userId']),_0x2e0e42['set'](_0x3b20a4,_0x51d4d4);}}_0x23e8c9=_0x551c43['deletions'][_0x4410dd];for(const _0x550f8a of _0x23e8c9)if(_0x550f8a['item']['is']('element','tableCell')){const _0x2cde0f=this['_getVidAttributeName'](_0x550f8a),_0x15f045=_0x550f8a['item']['getAttribute'](_0x2cde0f);if(_0x3c8f1b['has'](_0x15f045)){const _0x5f2c76=_0x550f8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c80d4=_0x2e0e42['get'](_0x5f2c76)||new Set();_0x4c80d4['add'](_0x3c8f1b['get'](_0x15f045)['userId']),_0x2e0e42['set'](_0x5f2c76,_0x4c80d4);}}for(const _0x21b6e7 of _0x2e0e42['keys']())(_0x93f4f8['has'](_0x21b6e7)||_0x3c8f1b['has'](_0x21b6e7))&&_0x2e0e42['delete'](_0x21b6e7);}for(const _0x67aca5 of _0x3d3582){const _0x17ba97=_0x551c43['insertions'][_0x67aca5];let _0x22566a=null,_0x58b45c=null;for(const _0x1d9e30 of _0x17ba97){const _0x4947a7=this['_getVidAttributeName'](_0x1d9e30),_0xf372d9=_0x1d9e30['item']['getAttribute'](_0x4947a7),_0x5053df=_0x2e0e42['get'](_0xf372d9);_0x5053df&&'elementStart'==_0x1d9e30['type']&&(_0x22566a=Array['from'](_0x5053df)[0x0],_0x58b45c=_0x1d9e30['item']['getAttribute']('vid_end')),_0x22566a&&(_0x3c8f1b['set'](_0xf372d9,{'userId':_0x22566a}),_0x93f4f8['set'](_0xf372d9,{'userId':_0x22566a})),_0xf372d9==_0x58b45c&&(_0x22566a=null,_0x58b45c=null);}}const _0x2c2150={},_0x2d5418=new Set();for(const _0x18ac21 of _0x3d3582){const _0x27308b=_0x3f3539['deletions'][_0x18ac21],_0x4cb58d=_0x3f3539['insertions'][_0x18ac21];for(const {userId:_0x53f50f}of this['_touchedMarkers']['values']())null!==_0x53f50f&&_0x2d5418['add'](_0x53f50f);for(const {userId:_0x193e86}of this['_touchedRoots']['values']())null!==_0x193e86&&_0x2d5418['add'](_0x193e86);this['_markChanges'](_0x4cb58d,_0x551c43['insertions'][_0x18ac21],_0x93f4f8,'insertion',_0x2d5418),this['_markChanges'](_0x27308b,_0x551c43['deletions'][_0x18ac21],_0x3c8f1b,'deletion',_0x2d5418),_0x2c2150[_0x18ac21]={'insertions':this['_prepareViewToSave'](_0x4cb58d),'deletions':this['_prepareViewToSave'](_0x27308b),'attachChange':this['_touchedRoots']['get'](_0x18ac21)||null,'attributesBefore':_0x2810e6(this['_baseRootsAttributes']['get'](_0x18ac21))||{},'attributesAfter':_0x2810e6(this['_diffRootsAttributes']['get'](_0x18ac21))};}return{'diffData':_0x2c2150,'authorsIds':Array['from'](_0x2d5418)};}['_processRootBeforeSave'](_0x11d8de){for(const [,_0x15d3e0]of _0x11d8de['markers']){const _0x5a69c7=_0x15d3e0['start']['getAncestors']()['filter'](_0x591335=>'tableCell'==_0x591335['name']);for(const _0x3fd500 of _0x5a69c7)0x1==_0x3fd500['childCount']&&_0x3fd500['getChild'](0x0)['is']('element','paragraph')&&_0x3fd500['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x136fd0){this['_processRootBeforeSave'](_0x136fd0);const _0x59621e=this['editor']['data']['toView'](_0x136fd0,{}),_0x1becaa=Array['from'](_0x59621e['getChildren']())['map'](_0x59d102=>this['_getViewJson'](_0x59d102));return JSON['stringify'](_0x1becaa);}['_getViewJson'](_0xf52c86){if(_0xf52c86['is']('$text'))return _0xf52c86['data'];{const _0x555d9f=_0xf52c86;return{'type':Object['keys'](E)['find'](_0x3aadea=>_0xf52c86 instanceof E[_0x3aadea]),'name':_0x555d9f['name'],'attributes':Array['from'](_0x555d9f['getAttributes']()),'children':Array['from'](_0x555d9f['getChildren']())['map'](_0x38ce0e=>this['_getViewJson'](_0x38ce0e))};}}['_markChanges'](_0x341b1a,_0x4d8bcb,_0x2bde14,_0x7e1567,_0x448797){let _0x348c41=null,_0x377d4a=null,_0x542192=0x0;const _0x7519ed=this['editor']['model'];for(let _0x1d9904=0x0;_0x1d9904<_0x4d8bcb['length'];_0x1d9904++){const _0x1ef7d8=this['_getVidAttributeName'](_0x4d8bcb[_0x1d9904]),_0x20d1bb=_0x4d8bcb[_0x1d9904]['item']['getAttribute'](_0x1ef7d8),_0x62092d=_0x2bde14['get'](_0x20d1bb),_0x1445ab=_0x1d9904==_0x4d8bcb['length']-0x1;(!_0x348c41&&_0x62092d&&(_0x348c41=_0x62092d,_0x377d4a=_0x4d8bcb[_0x1d9904]),_0x348c41&&(!_0x62092d||_0x62092d['userId']!=_0x348c41['userId']))&&(_0x155806(_0x62092d,B(_0x377d4a,_0x341b1a,_0x7519ed),B(_0x4d8bcb[_0x1d9904],_0x341b1a,_0x7519ed)),_0x348c41=_0x62092d||null,_0x377d4a=_0x62092d?_0x4d8bcb[_0x1d9904]:null),_0x348c41&&_0x1445ab&&_0x155806(_0x62092d,B(_0x377d4a,_0x341b1a,_0x7519ed),J(_0x4d8bcb[_0x1d9904],_0x341b1a,_0x7519ed));}function _0x155806(_0xbc858d,_0x353d96,_0x1060e6){const _0x1c7a22=_0x348c41['userId'],_0x553dab='revision:'+_0x7e1567+':'+_0x1c7a22+':'+_0x542192++,_0x4dda40=_0x7519ed['createRange'](_0x353d96,_0x1060e6);_0x341b1a['markers']['set'](_0x553dab,_0x4dda40),null!==_0x1c7a22&&_0x448797['add'](_0x1c7a22);}}['_getVidAttributeName'](_0x9258c5){switch(_0x9258c5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x11677b,_0x17e493){_0x11677b['baseVersion']=null;for(const _0x2c3502 in _0x11677b){const _0x2b0390=_0x11677b[_0x2c3502];if(_0x2b0390 instanceof vt){const _0x2030e8=_0x17e493['get'](_0x2b0390['root']['rootName']);_0x11677b[_0x2c3502]=this['_fixPosition'](_0x2b0390,_0x2030e8);}if(_0x2b0390 instanceof ft){const _0x51d63e=_0x17e493['get'](_0x2b0390['root']['rootName']);_0x11677b[_0x2c3502]=this['_fixRange'](_0x2b0390,_0x51d63e);}'root'===_0x2c3502&&(_0x11677b['root']=_0x17e493['get'](_0x11677b['root']['rootName']));}}['_fixRange'](_0x23665f,_0x16d230){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23665f['start'],_0x16d230),this['_fixPosition'](_0x23665f['end'],_0x16d230));}['_fixPosition'](_0x35b2c2,_0x31a990){return this['editor']['model']['createPositionFromPath'](_0x31a990,_0x35b2c2['path'],_0x35b2c2['stickiness']);}['_handleInsertOperation'](_0x4311c9){const _0x2094a1=this['_idsRoots']['get'](_0x4311c9['position']['root']['rootName']),_0x1ebc99=this['_fixPosition'](_0x4311c9['position'],_0x2094a1),_0x558fe5=null===_0x4311c9['_authorId']?null:_0x4311c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58d0bc=_0x1ebc99['parent'],_0x5ac5e0=this['_revisionId'],_0x224e13=[];for(const _0x4df6cf of _0x4311c9['nodes'])if(_0x4df6cf['is']('element'))_0x224e13['push'](this['_makeIdsRoot'](_0x4df6cf));else{for(let _0x526613=0x0;_0x526613<_0x4df6cf['offsetSize'];_0x526613++)_0x224e13['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x12e9dd=this['_revisionId'];for(let _0x7ccdaa=_0x5ac5e0;_0x7ccdaa<_0x12e9dd;_0x7ccdaa++)this['_touched']['set'](_0x7ccdaa,{'userId':_0x558fe5});_0x58d0bc['_insertChild'](_0x1ebc99['offset'],_0x224e13);}['_handleMoveOperation'](_0x405c35){(_0x405c35=this['_cloneOperation'](_0x405c35,this['_idsRoots']))['_execute']();const _0x4e9c5b=null===_0x405c35['_authorId']?null:_0x405c35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x433908=_0x405c35['getMovedRangeStart'](),_0x5c5a20=_0x433908['parent'],_0x5d9683=_0x433908['offset'];!function _0x416181(_0x322696,_0x410bb2,_0x7e7ea9,_0x32dbc4){for(let _0x5b5f3b=_0x7e7ea9;_0x5b5f3b<_0x32dbc4;_0x5b5f3b++){const _0x1371d6=_0x410bb2['getChild'](_0x5b5f3b);_0x1371d6['is']('element','$text')?_0x322696['set'](_0x1371d6['getAttribute']('vid'),{'userId':_0x4e9c5b}):(_0x322696['set'](_0x1371d6['getAttribute']('vid_start'),{'userId':_0x4e9c5b}),_0x416181(_0x322696,_0x1371d6,0x0,_0x1371d6['childCount']),_0x322696['set'](_0x1371d6['getAttribute']('vid_end'),{'userId':_0x4e9c5b}));}}(this['_touched'],_0x5c5a20,_0x5d9683,_0x5d9683+_0x405c35['howMany']);}['_handleMergeOperation'](_0x3382ad){const _0x1f84db=null===(_0x3382ad=this['_cloneOperation'](_0x3382ad,this['_idsRoots']))['_authorId']?null:_0x3382ad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4074b6=_0x3382ad['targetPosition']['parent'],_0x2cf33a=_0x3382ad['sourcePosition']['parent'],_0x501e42=_0x4074b6['getAttribute']('vid_end'),_0x2bd936=_0x2cf33a['getAttribute']('vid_start');_0x4074b6['_setAttribute']('vid_end',_0x2cf33a['getAttribute']('vid_end')),_0x2cf33a['_setAttribute']('vid_end',_0x501e42),this['_touched']['set'](_0x2bd936,{'userId':_0x1f84db}),this['_touched']['set'](_0x501e42,{'userId':_0x1f84db}),_0x3382ad['_execute']();}['_handleSplitOperation'](_0x39ff00){const _0x51c38b=null===(_0x39ff00=this['_cloneOperation'](_0x39ff00,this['_idsRoots']))['_authorId']?null:_0x39ff00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27aaa4=_0x39ff00['graveyardPosition'],_0x5be6b4=_0x39ff00['splitPosition']['parent'];_0x39ff00['_execute']();const _0x2d5ba6=_0x5be6b4['getAttribute']('vid_end'),_0x4d0f22=_0x39ff00['insertionPosition']['nodeAfter'];if(_0x27aaa4){const _0x56c5be=_0x4d0f22['getAttribute']('vid_end'),_0x293820=_0x5be6b4['getAttribute']('vid_end');_0x5be6b4['_setAttribute']('vid_end',_0x56c5be),_0x4d0f22['_setAttribute']('vid_end',_0x293820),this['_touched']['set'](_0x5be6b4['getAttribute']('vid_end'),{'userId':_0x51c38b}),this['_touched']['set'](_0x4d0f22['getAttribute']('vid_start'),{'userId':_0x51c38b});}else{const _0x3b2a67=this['_revisionId']++,_0x4c2f31=this['_revisionId']++;_0x5be6b4['_setAttribute']('vid_end',_0x3b2a67),_0x4d0f22['_setAttribute']('vid_start',_0x4c2f31),_0x4d0f22['_setAttribute']('vid_end',_0x2d5ba6),this['_touched']['set'](_0x3b2a67,{'userId':_0x51c38b}),this['_touched']['set'](_0x4c2f31,{'userId':_0x51c38b});}}['_handleMarkerOperation'](_0x340271){if(!_0x340271['affectsData'])return;const _0x4127ca=(_0x340271=this['_cloneOperation'](_0x340271,this['_diffRoots']))['oldRange']?_0x340271['oldRange']['root']:null,_0x3af0de=_0x340271['newRange']?_0x340271['newRange']['root']:null;_0x4127ca&&this['_markers']['delete'](_0x340271['name']),_0x3af0de&&this['_markers']['set'](_0x340271['name'],_0x340271['newRange']['clone']());const _0x4275eb=null===_0x340271['_authorId']?null:_0x340271['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d63ad=_0x340271['name'];if(!this['_touchedMarkers']['has'](_0x5d63ad))return void this['_touchedMarkers']['set'](_0x5d63ad,{'range':_0x340271['oldRange'],'userId':_0x4275eb});const _0x5d6ed2=this['_touchedMarkers']['get'](_0x5d63ad),_0x3db24f=_0x5d6ed2['range'],_0x5a459c=_0x340271['newRange'];null==_0x3db24f&&null==_0x5a459c||_0x3db24f&&_0x5a459c&&_0x3db24f['isEqual'](_0x5a459c)?this['_touchedMarkers']['delete'](_0x340271['name']):_0x5d6ed2['userId']=_0x4275eb;}['_handleRootOperation'](_0xeaa963,_0x3c30de){this['_diffRoots']['has'](_0xeaa963['rootName'])?this['_diffRoots']['get'](_0xeaa963['rootName'])['_isAttached']=_0xeaa963['isAdd']:(this['_diffRoots']['set'](_0xeaa963['rootName'],F(_0xeaa963['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xeaa963['rootName'],{}),_0x3c30de&&this['_idsRoots']['set'](_0xeaa963['rootName'],F(_0xeaa963['rootName'],!0x0)));const _0x5e763a=null===_0xeaa963['_authorId']?null:_0xeaa963['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x70c007=this['_touchedRoots']['get'](_0xeaa963['rootName']);_0x70c007&&_0x70c007['userId']===_0x5e763a?this['_touchedRoots']['delete'](_0xeaa963['rootName']):this['_touchedRoots']['set'](_0xeaa963['rootName'],{'userId':_0x5e763a,'isAttached':_0xeaa963['isAdd']});}['_handleRootAttributeOperation'](_0x301115){const _0x2e114e=this['_diffRootsAttributes']['get'](_0x301115['root']['rootName']);null===_0x301115['newValue']?delete _0x2e114e[_0x301115['key']]:_0x2e114e[_0x301115['key']]=_0x301115['newValue'];}}function T(_0x57fba4){const _0x4dd1ac=F(_0x57fba4['rootName'],_0x57fba4['isAttached']());for(const _0x4c16b8 of _0x57fba4['getChildren']()){const _0x4aad6d=_0x4c16b8['_clone'](!0x0);_0x4dd1ac['_appendChild'](_0x4aad6d);}return _0x4dd1ac;}function F(_0xd82f01,_0x5cdb44=!0x0){const _0x18a933=new gt();return _0x18a933['rootName']=_0xd82f01,_0x18a933['_isAttached']=_0x5cdb44,_0x18a933['isAttached']=()=>_0x18a933['_isAttached'],_0x18a933;}function B(_0x26112d,_0x4c08b0,_0x2e35ac){const _0x4b1371='elementEnd'==_0x26112d['type']?_0x2e35ac['createPositionAt'](_0x26112d['item'],'end'):_0x2e35ac['createPositionBefore'](_0x26112d['item']);return _0x2e35ac['createPositionFromPath'](_0x4c08b0,_0x4b1371['path'],_0x4b1371['stickiness']);}function J(_0xd79be6,_0xccb18c,_0x38a4fa){const _0x1c0006='elementStart'==_0xd79be6['type']?_0x38a4fa['createPositionAt'](_0xd79be6['item'],0x0):_0x38a4fa['createPositionAfter'](_0xd79be6['item']);return _0x38a4fa['createPositionFromPath'](_0xccb18c,_0x1c0006['path'],_0x1c0006['stickiness']);}class os extends _0x4d48fa{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x514553,_0x194991){super(_0x514553),this['focusTracker']=new _0x5ac7ad(),this['keystrokes']=new _0x1734cf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x194991),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'](),_0x27229c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x320466=_0x2c9bc8=>_0x2c9bc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x320466),this['keystrokes']['set']('arrowleft',_0x320466),this['keystrokes']['set']('arrowup',_0x320466),this['keystrokes']['set']('arrowdown',_0x320466);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe5108b){this['revisionNameInputView']['fieldView']['element']['value']=_0xe5108b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a91d4){const _0x541cf6=new at(this['locale'],ti),_0x44793f=_0x541cf6['fieldView'];_0x44793f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5d2fc0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a91d4&&(_0x5d2fc0+='\x20('+m(this['locale'],'optional')+')'),(_0x541cf6['label']=_0x5d2fc0,_0x44793f['on']('input',()=>{this['revisionNameInputValue']=_0x44793f['element']['value']['trim']();}),_0x541cf6);}}class f extends _0x3cb746{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2d8cb8=this['editor'],_0x123d2a=_0x2d8cb8['plugins']['get']('RevisionTracker');_0x2d8cb8['ui']['componentFactory']['add']('revisionHistory',_0x55cad6=>{const _0x16170a=_0x5bcb54(_0x55cad6),_0x408dd1=_0x16170a['panelView']['children'],_0x2d6cb5=new _0xdfe4e(_0x55cad6),_0x4d6749=new te(_0x55cad6),_0x372475=new _0x1bfe84(_0x55cad6),_0x488b96=new te(_0x55cad6),_0x21ec8e=new _0x1bfe84(_0x55cad6);return _0x16170a['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x123d2a,'isEnabled',_0x2d8cb8,'isReadOnly',(_0x2cc30f,_0xd5b0b6,_0x34ef00)=>_0x2cc30f&&_0xd5b0b6&&!_0x34ef00),_0x16170a['buttonView']['set']({'icon':_0x51466b,'label':m(_0x55cad6,'Revision\x20history'),'tooltip':!0x0}),_0x372475['set']({'label':m(_0x55cad6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x372475['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x123d2a,'isEnabled',_0x2d8cb8,'isReadOnly',(_0x1bc2b6,_0x14ccbd,_0x287e0f)=>_0x1bc2b6&&_0x14ccbd&&!_0x287e0f),_0x372475['on']('execute',()=>this['_showDialog']()),_0x21ec8e['set']({'label':m(_0x55cad6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x21ec8e['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x2d8cb8,'isReadOnly',(_0x542f65,_0x2a2e4b)=>_0x542f65&&!_0x2a2e4b),_0x21ec8e['on']('execute',()=>{_0x2d8cb8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x16170a['isOpen']=!0x1,_0x2d8cb8['editing']['view']['focus']();}),_0x4d6749['children']['add'](_0x372475),_0x488b96['children']['add'](_0x21ec8e),_0x2d6cb5['role']='menu',_0x2d6cb5['items']['addMany']([_0x4d6749,_0x488b96]),_0x408dd1['add'](_0x2d6cb5),_0x16170a;}),_0x2d8cb8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2fbc6a=this['editor'],_0x38e46c=_0x2fbc6a['locale'],_0x4b6143=new _0x2a01f2(_0x38e46c),_0x5c2e8e=new _0x392da3(_0x38e46c);_0x4b6143['buttonView']['set']({'icon':_0x51466b,'label':m(_0x38e46c,'Revision\x20history')});const _0x54ec66=new _0x4c122f(_0x38e46c,_0x4b6143),_0x8928e3=new _0xf996a9(_0x38e46c);_0x8928e3['set']({'label':m(_0x38e46c,'Save\x20current\x20revision')}),_0x8928e3['delegate']('execute')['to'](_0x4b6143),_0x8928e3['on']('execute',()=>{this['_showDialog']();}),_0x54ec66['children']['add'](_0x8928e3),_0x5c2e8e['items']['add'](_0x54ec66);const _0x1b866c=new _0x4c122f(_0x38e46c,_0x4b6143),_0x59fb61=new _0xf996a9(_0x38e46c);return _0x59fb61['set']({'label':m(_0x38e46c,'Open\x20revision\x20history')}),_0x59fb61['delegate']('execute')['to'](_0x4b6143),_0x59fb61['on']('execute',()=>{_0x2fbc6a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1b866c['children']['add'](_0x59fb61),_0x5c2e8e['items']['add'](_0x1b866c),_0x4b6143['panelView']['children']['add'](_0x5c2e8e),_0x4b6143;}['_showDialog'](){const _0xff3bae=this['editor'],_0x918e98=_0xff3bae['locale'],_0xa293f4=_0xff3bae['plugins']['get']('Dialog'),_0x1b9e43=_0xff3bae['plugins']['get']('RevisionTracker');function _0x59f8b0(_0x41e6d0){_0xff3bae['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41e6d0['revisionName']?_0x41e6d0['revisionNameInputView']['errorText']=m(_0x918e98,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xff3bae['plugins']['get'](u)['saveRevision']({'name':_0x41e6d0['revisionName']}),_0xa293f4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x59f8b0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xa293f4['show']({'id':'revisionSave','title':m(_0x918e98,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xff3bae['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xa293f4['hide']()},{'label':m(_0xff3bae['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1e8541){_0x1e8541['bind']('isEnabled')['to'](_0x1b9e43,'isReady',_0x1b9e43,'isEnabled',_0xff3bae,'isReadOnly',(_0x14a368,_0x38f4a7,_0x151774)=>_0x14a368&&_0x38f4a7&&!_0x151774);},'onExecute':()=>_0x59f8b0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x48e3e5=this['editor'],_0x309ac9=_0x48e3e5['locale'];this['_saveRevisionFormView']=new os(_0x309ac9,_0x48e3e5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4d48fa{['changeId'];['_model'];constructor(_0x1cd5f8,_0x41fc57){super(_0x1cd5f8),this['_model']=_0x41fc57,this['changeId']=_0x41fc57['id'];const _0x2a7702=this['bindTemplate'],_0x1ba052=m(_0x1cd5f8,_0x41fc57['data']['isSuggestion']?'Suggested\x20by':'add'==_0x41fc57['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x41fc57['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a7702['to']('type',_0x3baca9=>'ck-revision-change__'+_0x3baca9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1ba052}]},{'text':'\x20'+_0x41fc57['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1128d5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x17431a){super(),this['id']=_0x17431a['id']||_0x5e10e6(),this['author']=_0x17431a['author'],this['type']=_0x17431a['type'],this['data']=_0x17431a['data']||{},this['rootName']=_0x17431a['rootName'],this['set']('createdAt',_0x17431a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5b0734,_0x11c94e){this['newRevisionId']=_0x5b0734,this['oldRevisionId']=_0x11c94e,this['changes']=new _0x2818bf();}['_setChanges'](_0x501570){for(const _0x56a1d7 of _0x501570)this['changes']['add'](_0x56a1d7);}}const Y={'c':_0xc94dac,'a':_0x42d014,'e':_0x499499,'r':_0x2a65a8,'u':_0x33d900};class d extends _0x3cb746{['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[_0x5d288c,_0x286896,j];}constructor(_0x41fc54){super(_0x41fc54),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',(_0x4b384f,_0x2f30ab,_0x1890f9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x363172=>{for(const _0x50435d of this['editor']['editing']['view']['document']['roots'])_0x1890f9?_0x363172['removeClass']('ck-editor__editable__overlay',_0x50435d):_0x363172['addClass']('ck-editor__editable__overlay',_0x50435d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x34acae=>null!==_0x34acae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57d996,_0x472b71,_0x41adde)=>_0x57d996&&_0x41adde?_0x472b71['changes']['getIndex'](_0x41adde):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2d2909,_0x291b91)=>_0x2d2909?_0x291b91['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x286896);}['init'](){const _0x3da1fc=this['editor'],_0x3cd352=new yt(_0x3da1fc,{'direction':'backward'}),_0x10031e=new yt(_0x3da1fc,{'direction':'forward'});(_0x3da1fc['commands']['add']('showPreviousChange',_0x3cd352),_0x3da1fc['commands']['add']('showNextChange',_0x10031e),_0x3da1fc['commands']['add']('restoreRevision',new _t(_0x3da1fc)),this['on']('change:numberOfChanges',()=>{_0x3cd352['refresh'](),_0x10031e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3da1fc['enableReadOnlyMode']('revision-viewer'),_0x3da1fc['plugins']['has']('WidgetToolbarRepository'))&&_0x3da1fc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x59348d){await this['loadRevisionData'](_0x59348d);const _0x55a61b={};for(const _0x2c8c6b in _0x59348d['diffData']){if(_0x59348d['diffData'][_0x2c8c6b]['attachChange']&&!_0x59348d['diffData'][_0x2c8c6b]['attachChange']['isAttached'])continue;const _0x58bc41=this['_removeRevisionMarkers'](JSON['parse'](_0x59348d['diffData'][_0x2c8c6b]['insertions'])),_0x854792=this['editor']['editing']['view']['document'],_0x2f6281=new _0x413e02(_0x854792,_0x58bc41['map'](_0x1bffaa=>this['_getViewObj'](_0x1bffaa)));this['editor']['data']['processor']['useFillerType']('marked'),_0x55a61b[_0x2c8c6b]=this['editor']['data']['processor']['toData'](_0x2f6281),this['editor']['data']['processor']['useFillerType']('default');}return _0x55a61b;}async['getRevisionRootsAttributes'](_0xa7b6f9){await this['loadRevisionData'](_0xa7b6f9);const _0x4f6890={};for(const _0x57c653 in _0xa7b6f9['diffData'])_0xa7b6f9['diffData'][_0x57c653]['attachChange']&&!_0xa7b6f9['diffData'][_0x57c653]['attachChange']['isAttached']||(_0x4f6890[_0x57c653]=_0xa7b6f9['diffData'][_0x57c653]['attributesAfter']||{});return _0x4f6890;}['_removeRevisionMarkers'](_0xaf371f){return(_0xaf371f=_0xaf371f['filter'](_0x107abb=>!_0x107abb['name']||'revision-start'!==_0x107abb['name']&&'revision-end'!==_0x107abb['name']))['forEach'](_0x2d6719=>{'string'!=typeof _0x2d6719&&(_0x2d6719['children']=this['_removeRevisionMarkers'](_0x2d6719['children']),_0x2d6719['attributes']=_0x2d6719['attributes']['filter'](_0x263080=>!_0x263080[0x0]['startsWith']('data-revision-')));}),_0xaf371f;}async['compare'](_0xfd2dba,_0x4bdd88,_0x4b535e=!0x1){if(!this['isEnabled'])return;const _0x3b49a6=this['diff'],_0x574326=this['repository'],_0x5d7eef='string'==typeof _0xfd2dba?_0x574326['getRevision'](_0xfd2dba):_0xfd2dba,_0x71b3a0='string'==typeof _0x4bdd88?_0x574326['getRevision'](_0x4bdd88):_0x4bdd88,_0x3b7f09=_0x5d7eef['id'],_0x4a1e23=_0x71b3a0?_0x71b3a0['id']:null;if(!_0x4b535e&&this['diff']&&this['diff']['newRevisionId']===_0x3b7f09&&this['diff']['oldRevisionId']===_0x4a1e23)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3b7f09,_0x4a1e23);const _0x5ef595=this['_getRevisionsRange'](_0x5d7eef,_0x71b3a0,!0x0)['map'](_0x596bab=>this['loadRevisionData'](_0x596bab));return _0x5ef595['push'](new Promise(_0x1e6051=>{setTimeout(_0x1e6051,0x14);})),Promise['all'](_0x5ef595)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x19f696=this['_getDiff'](_0x3b7f09,_0x4a1e23);for(const _0x1f8e7f of _0x19f696['changes'])this['_changeIdToChange']['set'](_0x1f8e7f['id'],_0x1f8e7f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xd4ca9e=>{for(const _0x2de631 of this['editor']['model']['document']['getRootNames']())_0xd4ca9e['detachRoot'](_0x2de631);for(const _0x24303f of Object['keys'](_0x19f696['model'])){const _0x469959=_0xd4ca9e['addRoot'](_0x24303f);for(const _0x8f30d7 of Object['keys'](_0x19f696['attributes'][_0x24303f]))_0xd4ca9e['setAttribute'](_0x8f30d7,_0x19f696['attributes'][_0x24303f][_0x8f30d7],_0x469959);_0xd4ca9e['insert'](_0x19f696['model'][_0x24303f],_0x469959,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x19f696['changes'])),this['isReady']=!0x0;})['catch'](_0xf3553=>{console['error'](_0xf3553),this['_cleanUp'](),_0x3b49a6&&(this['diff']=_0x3b49a6),this['isReady']=!0x0;});}['addRevisionData'](_0x3d9d31,_0x18b8cb){const _0x36fd2e=this['repository']['createRevision'](_0x3d9d31);return _0x36fd2e['on']('_update',(_0xc227f1,_0x4d5e0a,_0x2842f)=>_0x18b8cb(_0x4d5e0a,_0x2842f,_0x36fd2e)),this['repository']['addRevision'](_0x36fd2e),_0x36fd2e;}['loadRevisionData'](_0x2064ec){if(!_0x2064ec||_0x2064ec['diffData'])return Promise['resolve']();{const _0xfec697=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xfec697,'revisionId':_0x2064ec['id']})['then'](_0x52fa13=>{_0x2064ec['_update']({'diffData':_0x52fa13['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},_0x16a705=>{for(const _0x157c89 of this['editor']['model']['document']['getRootNames']())_0x16a705['detachRoot'](_0x157c89);});}['_sortAndFilterDiffChanges'](_0x528dc0){const _0x9a62f1=[],_0x194bd6=new Map();for(const _0x346ea5 of this['editor']['model']['document']['getRootNames']()){const _0x4ec018=this['editor']['editing']['view']['getDomRoot'](_0x346ea5);if(!_0x4ec018)continue;const _0x343081=_0x4ec018['getClientRects']()['item'](0x0);_0x343081&&(_0x9a62f1['push'](_0x346ea5),_0x194bd6['set'](_0x346ea5,_0x343081));}return _0x9a62f1['sort']((_0x3c9c36,_0x456cfb)=>{const _0xd46ede=_0x194bd6['get'](_0x3c9c36),_0x15d412=_0x194bd6['get'](_0x456cfb);return _0xd46ede['y']-_0x15d412['y']||_0xd46ede['x']-_0x15d412['x'];}),(_0x528dc0=_0x528dc0['filter'](_0x573417=>_0x9a62f1['includes'](_0x573417['rootName'])))['sort']((_0x2be78e,_0x1af13f)=>_0x9a62f1['indexOf'](_0x2be78e['rootName'])-_0x9a62f1['indexOf'](_0x1af13f['rootName'])),_0x528dc0;}['_makeTape'](_0xcf4832){const _0x5e2d05=Array['from'](_0xcf4832['markers'])['filter'](([_0x47ccd2,_0x4119b1])=>_0x47ccd2['startsWith']('revision:')&&!_0x4119b1['isCollapsed']),_0x38c156=Array['from'](this['editor']['model']['createRangeIn'](_0xcf4832)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e2d05['length'])for(const _0x5e09ff of _0x38c156){const [_0x55535d,_0xeef4e]=_0x5e2d05[0x0],[,_0x194002,_0x1654cc]=_0x55535d['split'](':');if(_0xeef4e['end']['isEqual'](_0x5e09ff['nextPosition'])&&_0x5e2d05['shift'](),(_0x5e09ff['previousPosition']['isEqual'](_0xeef4e['start'])||_0x5e09ff['previousPosition']['isAfter'](_0xeef4e['start']))&&('insertion'==_0x194002?_0x5e09ff['isAdded']={'userId':_0x1654cc}:'deletion'==_0x194002&&(_0x5e09ff['isRemoved']={'userId':_0x1654cc})),0x0==_0x5e2d05['length'])break;}return _0x38c156;}['_refreshStartEndIndex'](_0x32a22b){const _0xf7b33c=new Map();for(let _0x2126ff=0x0;_0x2126ff<_0x32a22b['length'];_0x2126ff++)'text'===_0x32a22b[_0x2126ff]['type']?(_0x32a22b[_0x2126ff]['item']['startIndex']=_0x2126ff,_0x32a22b[_0x2126ff]['item']['endIndex']=_0x2126ff):('elementStart'===_0x32a22b[_0x2126ff]['type']?_0x32a22b[_0x2126ff]['item']['startIndex']=_0x2126ff:'elementEnd'===_0x32a22b[_0x2126ff]['type']&&(_0x32a22b[_0x2126ff]['item']['endIndex']=_0x2126ff),_0xf7b33c['set'](_0x32a22b[_0x2126ff]['id'],_0x2126ff));for(const _0x39b901 of _0xf7b33c['values']())'elementStart'===_0x32a22b[_0x39b901]['type']?_0x32a22b[_0x39b901]['item']['endIndex']=_0xf7b33c['get'](_0x32a22b[_0x39b901]['pairId']):'elementEnd'===_0x32a22b[_0x39b901]['type']&&(_0x32a22b[_0x39b901]['item']['startIndex']=_0xf7b33c['get'](_0x32a22b[_0x39b901]['pairId']));}['_processTape'](_0x94cf12){for(let _0x2990dd=0x0;_0x2990dd<_0x94cf12['length'];_0x2990dd++){if('elementStart'===_0x94cf12[_0x2990dd]['type'])_0x94cf12[_0x2990dd]['item']['startIndex']=_0x2990dd;else{if('elementEnd'===_0x94cf12[_0x2990dd]['type']){_0x94cf12[_0x2990dd]['item']['endIndex']=_0x2990dd;const _0x2c6eb5=_0x94cf12[_0x2990dd]['item']['startIndex'];_0x94cf12[_0x2c6eb5]['pairId']=_0x94cf12[_0x2990dd]['id'],_0x94cf12[_0x2990dd]['pairId']=_0x94cf12[_0x2c6eb5]['id'];}else _0x94cf12[_0x2990dd]['item']['startIndex']=_0x2990dd,_0x94cf12[_0x2990dd]['item']['endIndex']=_0x2990dd,_0x94cf12[_0x2990dd]['pairId']=null;}_0x94cf12[_0x2990dd]['markersStart']||(_0x94cf12[_0x2990dd]['markersStart']=[],_0x94cf12[_0x2990dd]['markersEnd']=[]);}}['_markInsertions'](_0x1ee501,_0x38185b){const _0x28a30b=_0x1ee501['filter'](_0x5b92ac=>!_0x5b92ac['isAdded']);for(let _0x50ccd7=0x0;_0x50ccd7<_0x38185b['length'];_0x50ccd7++)_0x38185b[_0x50ccd7]['isAdded']&&(_0x28a30b[_0x50ccd7]['isAdded']=_0x38185b[_0x50ccd7]['isAdded']);}['_makeModelFromViewString'](_0x16105d){const _0x3c3965=JSON['parse'](_0x16105d),_0x4c01e4=this['editor']['editing']['view']['document'],_0x78a5ce=new _0x413e02(_0x4c01e4,_0x3c3965['map'](_0x297483=>this['_getViewObj'](_0x297483)));return this['editor']['data']['toModel'](_0x78a5ce);}['_getViewObj'](_0x2bd6e2){const _0x103429=this['editor']['editing']['view']['document'];if('string'==typeof _0x2bd6e2)return new _0xff6857(_0x103429,_0x2bd6e2);{const _0x9665cf=_0x2bd6e2['children']['map'](_0x295b84=>this['_getViewObj'](_0x295b84));return new(Y[_0x2bd6e2['type']]||_0x363a6e)(_0x103429,_0x2bd6e2['name'],_0x2bd6e2['attributes'],_0x9665cf);}}['_getDiff'](_0x42471a,_0x1b1225=null){const _0x3e2d23=this['repository']['getRevision'](_0x42471a),_0x18b92e=_0x1b1225?this['repository']['getRevision'](_0x1b1225):null,_0x3b456a=this['_getRevisionsRange'](_0x3e2d23,_0x18b92e),_0x49a426=_0x3b456a[_0x3b456a['length']-0x1],_0x45a2ac=new Map(),_0x10f61a={'model':{},'attributes':{},'changes':[]},_0x48a6ec=new Set(),_0x5725f8=new Map();for(let _0x107775=_0x3b456a['length']-0x1;_0x107775>=0x0;_0x107775--){const _0x1fe898=_0x3b456a[_0x107775];for(const _0x390e43 of Object['keys'](_0x1fe898['diffData']))if(_0x1fe898['diffData'][_0x390e43]['attachChange']){const _0x4e03f3=_0x1fe898['diffData'][_0x390e43]['attachChange'];_0x4e03f3['isAttached']?(_0x48a6ec['add'](_0x390e43),_0x5725f8['has'](_0x390e43)&&_0x5725f8['get'](_0x390e43)['userId']==_0x4e03f3['userId']?_0x5725f8['delete'](_0x390e43):_0x5725f8['set'](_0x390e43,_0x4e03f3)):_0x5725f8['has'](_0x390e43)?(_0x48a6ec['delete'](_0x390e43),_0x5725f8['delete'](_0x390e43)):(_0x48a6ec['add'](_0x390e43),_0x5725f8['set'](_0x390e43,_0x4e03f3));}else _0x48a6ec['add'](_0x390e43);}for(const _0x3e70c0 of _0x48a6ec){const _0xe79d42=_0x5725f8['has'](_0x3e70c0)&&!_0x5725f8['get'](_0x3e70c0)['isAttached'];let _0x4126fc=_0xe79d42?_0x3b456a['length']-0x1:0x0;const _0x5096b8=_0xe79d42?-0x1:0x1;for(;_0x3b456a[_0x4126fc];){const _0x5454f6=_0x3b456a[_0x4126fc];if(_0x5454f6['diffData'][_0x3e70c0]){const _0x59a42a=_0xe79d42?_0x5454f6['diffData'][_0x3e70c0]['attributesBefore']:_0x5454f6['diffData'][_0x3e70c0]['attributesAfter'];_0x10f61a['attributes'][_0x3e70c0]=_0x59a42a?_0x2810e6(_0x59a42a):{};break;}_0x4126fc+=_0x5096b8;}}for(const _0x33cf57 of _0x3b456a){_0x33cf57['model']={};for(const _0x5c6bde of _0x33cf57['authors'])_0x45a2ac['set'](_0x5c6bde['id'],_0x5c6bde);for(const _0x737e9c of _0x48a6ec){const _0x1de2af=_0x33cf57['diffData'][_0x737e9c]?_0x33cf57['diffData'][_0x737e9c]['insertions']:'[]',_0x2ae102=_0x33cf57['diffData'][_0x737e9c]?_0x33cf57['diffData'][_0x737e9c]['deletions']:'[]';_0x33cf57['model'][_0x737e9c]={'insertions':this['_makeModelFromViewString'](_0x1de2af),'deletions':this['_makeModelFromViewString'](_0x2ae102)};}}for(const _0x2879b0 of _0x48a6ec){let _0x3ede24=null,_0x503ddd=0x0;const _0x585659=new Map(Array['from'](_0x3e2d23['model'][_0x2879b0]['insertions']['markers'])['filter'](([_0x2a1eb3])=>!_0x2a1eb3['startsWith']('revision:')));let _0xedb78=0x0;for(const _0x9d747d of _0x3b456a){const _0x1aaffa=this['_makeTape'](_0x9d747d['model'][_0x2879b0]['insertions']);_0x9d747d==_0x3e2d23?(_0x3ede24=_0x1aaffa,_0x503ddd=_0x3ede24['length'],_0x3ede24['forEach'](_0x5e086b=>{_0x5e086b['id']=_0xedb78++;}),this['_processTape'](_0x3ede24)):this['_markInsertions'](_0x3ede24,_0x1aaffa);const _0x22f266=_0x3ede24['filter'](_0x2130bc=>!_0x2130bc['isAdded'])['map'](_0x4f09ee=>_0x4f09ee['id']);let _0x1d661b=0x0;const _0x3ee475=this['_makeTape'](_0x9d747d['model'][_0x2879b0]['deletions']);_0x3ee475['forEach'](_0x36fc34=>{_0x36fc34['isRemoved']?_0x36fc34['id']=_0x503ddd++:_0x36fc34['id']=_0x22f266[_0x1d661b++];}),this['_processTape'](_0x3ee475),this['_setDistance'](_0x3ede24,'isAdded'),this['_setDistance'](_0x3ee475,'isRemoved'),_0x9d747d==_0x3e2d23&&this['_markMarkers'](_0x3ede24,_0x585659),_0x3ede24=this['_joinTapes'](_0x3ede24,_0x3ee475),this['_refreshStartEndIndex'](_0x3ede24),this['_setDistance'](_0x3ede24,'isRemoved');}_0x3ede24=_0x3ede24['filter'](_0x5d1d26=>!(_0x5d1d26['isAdded']&&_0x5d1d26['isRemoved']));const _0x59c110=new Map(_0x49a426['model'][_0x2879b0]['deletions']['markers']),_0x452c1f=new Set(_0x585659['keys']());for(const _0x253357 of _0x59c110['keys']())_0x452c1f['delete'](_0x253357);this['_markSuggestions'](_0x3ede24,_0x452c1f),this['_fixObsoleteTags'](_0x3ede24),_0x3ede24=this['_removeMissingPairs'](_0x3ede24),_0x3ede24=this['_markMismatchedRemovedTags'](_0x3ede24),_0x3ede24=this['_removeUnsupportedChanges'](_0x3ede24);const {root:_0x23c376,changes:_0x52c6b5}=this['_makeModelFromTape'](_0x3ede24,_0x45a2ac,_0x2879b0);_0x10f61a['model'][_0x2879b0]=_0x23c376;const _0x2e6fa5=_0x5725f8['get'](_0x2879b0);if(_0x2e6fa5){const _0x3c9d9f=_0x45a2ac['get'](_0x2e6fa5['userId']),_0x164401=new r({'author':_0x3c9d9f,'type':_0x2e6fa5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2879b0});_0x52c6b5['unshift'](_0x164401),_0x10f61a['attributes'][_0x2879b0]['revisionHistoryAttachChange']=_0x164401['id'];}_0x10f61a['changes']=_0x10f61a['changes']['concat'](_0x52c6b5);}return _0x10f61a;}['_markMarkers'](_0x4f0bfe,_0x3fd227){for(let _0x2799ed=0x0;_0x2799ed<_0x4f0bfe['length'];_0x2799ed++)for(const [_0x504971,_0x3affa0]of _0x3fd227)_0x3affa0['start']['isEqual'](_0x4f0bfe[_0x2799ed]['previousPosition'])&&_0x4f0bfe[_0x2799ed]['markersStart']['push'](_0x504971),_0x3affa0['end']['isEqual'](_0x4f0bfe[_0x2799ed]['nextPosition'])&&_0x4f0bfe[_0x2799ed]['markersEnd']['push'](_0x504971);}['_joinTapes'](_0x1045db,_0x38269){let _0x3eabdb=[],_0x35c7d5=0x0,_0x306855=0x0;for(;_0x35c7d5<_0x1045db['length']||_0x306855<_0x38269['length'];){const _0x34b315=_0x1045db[_0x35c7d5]||{},_0x4023ee=_0x38269[_0x306855]||{};if(_0x34b315['id']==_0x4023ee['id'])_0x35c7d5++,_0x306855++,_0x3eabdb['push'](_0x34b315);else{if(_0x4023ee['isRemoved']&&_0x34b315['isAdded']){const {commonTape:_0x1a8228,iEnd:_0x439905,jEnd:_0x131be9}=this['_threeWayMerge'](_0x1045db,_0x35c7d5,_0x38269,_0x306855);_0x3eabdb=_0x3eabdb['concat'](_0x1a8228),_0x35c7d5=_0x439905,_0x306855=_0x131be9;}else _0x4023ee['isRemoved']?(_0x306855++,_0x3eabdb['push'](_0x4023ee)):(_0x35c7d5++,_0x3eabdb['push'](_0x34b315));}}return _0x3eabdb;}['_markSuggestions'](_0x655bb1,_0x3dbfb8){const _0x3986d3=[];for(let _0x4efbb0=0x0;_0x4efbb0<_0x655bb1['length'];_0x4efbb0++){for(let _0x12e894=0x0;_0x12e894<_0x655bb1[_0x4efbb0]['markersStart']['length'];_0x12e894++){const _0x4b2447=_0x655bb1[_0x4efbb0]['markersStart'][_0x12e894];if(!_0x3dbfb8['has'](_0x4b2447))continue;const {group:_0x6fe655,type:_0x46e64c,authorId:_0x48d1b0}=_0xca90ad(_0x4b2447);'revision-suggestion'!=_0x6fe655||'insertion'!=_0x46e64c&&'deletion'!=_0x46e64c||(_0x3986d3['unshift']({'type':_0x46e64c,'name':_0x4b2447,'userId':_0x48d1b0}),_0x655bb1[_0x4efbb0]['markersStart']['splice'](_0x12e894,0x1),_0x12e894--);}_0x41f842(_0x655bb1[_0x4efbb0]);for(let _0x3cfa7a=0x0;_0x3cfa7a<_0x655bb1[_0x4efbb0]['markersEnd']['length'];_0x3cfa7a++){const _0x4cb245=_0x655bb1[_0x4efbb0]['markersEnd'][_0x3cfa7a];if(!_0x3dbfb8['has'](_0x4cb245))continue;const {group:_0x23303a,type:_0x4c89a5}=_0xca90ad(_0x4cb245);if('revision-suggestion'!=_0x23303a||'insertion'!=_0x4c89a5&&'deletion'!=_0x4c89a5)continue;_0x655bb1[_0x4efbb0]['markersEnd']['splice'](_0x3cfa7a,0x1),_0x3cfa7a--;const _0x326c25=_0x3986d3['findIndex'](_0x2b989a=>_0x2b989a['name']==_0x4cb245);_0x326c25>-0x1&&_0x3986d3['splice'](_0x326c25,0x1);}}function _0xca90ad(_0xbc5acd){const _0x2a2d32=_0xbc5acd['split'](':');return{'group':_0x2a2d32[0x0],'type':_0x2a2d32[0x1],'subType':_0x2a2d32['length']>=0x5?_0x2a2d32[0x2]:null,'id':_0x2a2d32['length']<0x5?_0x2a2d32[0x2]:_0x2a2d32[0x3],'authorId':_0x2a2d32['length']<0x5?_0x2a2d32[0x3]:_0x2a2d32[0x4],'markerCount':0x6==_0x2a2d32['length']?_0x2a2d32[0x5]:null};}function _0x41f842(_0x37e45e){for(let _0x3fa14f=0x0;_0x3fa14f<_0x3986d3['length'];_0x3fa14f++){if(_0x37e45e['isAdded']&&'insertion'==_0x3986d3[_0x3fa14f]['type'])return _0x37e45e['isAddSuggestion']=_0x3986d3[_0x3fa14f],void delete _0x37e45e['isAdded'];if(!_0x37e45e['isAdded']&&!_0x37e45e['isRemoved']&&'deletion'==_0x3986d3[_0x3fa14f]['type'])return void(_0x37e45e['isRemoveSuggestion']=_0x3986d3[_0x3fa14f]);}}}['_setDistance'](_0x405ac1,_0x40fc7f){let _0x3fae07=0x0,_0x4c3744=!0x1;const _0x3968e1=new Map();for(const _0x57acf1 of _0x405ac1)_0x57acf1[_0x40fc7f]?_0x4c3744&&(_0x3fae07++,_0x4c3744=!0x1):(_0x3fae07++,_0x4c3744=!0x0),_0x3968e1['set'](_0x57acf1['id'],_0x3fae07);for(let _0x28e55d=0x0;_0x28e55d<_0x405ac1['length'];_0x28e55d++){if('isRemoved'==_0x40fc7f&&_0x405ac1[_0x28e55d]['isAdded']||'isAdded'==_0x40fc7f&&_0x405ac1[_0x28e55d]['isRemoved'])continue;if('text'==_0x405ac1[_0x28e55d]['type']){_0x405ac1[_0x28e55d]['distance']=0x0;continue;}const _0x16e75e=_0x3968e1['get'](_0x405ac1[_0x28e55d]['pairId']),_0x68026f=_0x3968e1['get'](_0x405ac1[_0x28e55d]['id']);_0x405ac1[_0x28e55d]['distance']=_0x16e75e-_0x68026f;}}['_getRevisionsRange'](_0x42342e,_0x1b81e0,_0x257fbe=!0x1){const _0x1afcb8=[];let _0x23db74=this['repository']['getIndex'](_0x42342e),_0x19bc3b=this['repository']['getIndex'](_0x1b81e0);for(-0x1==_0x19bc3b&&(_0x19bc3b=this['repository']['_revisions']['length'],_0x257fbe=!0x1);_0x23db74<_0x19bc3b;)_0x1afcb8['push'](this['repository']['getRevision'](_0x23db74)),_0x23db74++;return _0x257fbe&&_0x1afcb8['push'](this['repository']['getRevision'](_0x23db74)),_0x1afcb8;}['_threeWayMerge'](_0x3960e0,_0x211195,_0x38a294,_0x375ea3){const _0x384a21=this['editor']['model']['schema'];let _0x1d47c0=_0x211195;for(;_0x3960e0[_0x1d47c0]&&_0x3960e0[_0x1d47c0]['isAdded'];)_0x1d47c0++;let _0x545132=_0x375ea3;for(;_0x38a294[_0x545132]&&_0x38a294[_0x545132]['isRemoved'];)_0x545132++;_0x40c3a8(_0x3960e0,_0x211195,_0x1d47c0),_0x40c3a8(_0x38a294,_0x375ea3,_0x545132);const _0x27ae4a=_0x38a294['slice'](_0x375ea3,_0x545132)['concat'](_0x3960e0['slice'](_0x211195,_0x1d47c0));return _0x27ae4a['sort']((_0x4b5844,_0xa69398)=>_0x4b5844['side']!=_0xa69398['side']?_0x4b5844['side']-_0xa69398['side']:_0x4b5844['level']!=_0xa69398['level']?_0x4b5844['level']-_0xa69398['level']:_0x4b5844['distance']!=_0xa69398['distance']?_0xa69398['distance']-_0x4b5844['distance']:!!_0x4b5844['isAdded']!=!!_0xa69398['isAdded']?-0x1==_0x4b5844['side']||0x0==_0x4b5844['side']?_0x4b5844['isAdded']?-0x1:0x1:_0x4b5844['isAdded']?0x1:-0x1:_0x4b5844['index']-_0xa69398['index']),{'commonTape':_0x27ae4a,'iEnd':_0x1d47c0,'jEnd':_0x545132};function _0x40c3a8(_0x19ed2b,_0x5e8b76,_0x127785){let _0x39d0fa=-0x1,_0x17926c=Number['POSITIVE_INFINITY'],_0x3ba5b7=!0x0;for(let _0x7244ae=_0x5e8b76;_0x7244ae<_0x127785;_0x7244ae++)if(_0x384a21['isInline'](_0x19ed2b[_0x7244ae]['item'])||(_0x3ba5b7=!0x1),_0x19ed2b[_0x7244ae]['item']['startIndex']<_0x5e8b76&&(_0x39d0fa=_0x7244ae),_0x19ed2b[_0x7244ae]['item']['endIndex']>=_0x127785){_0x17926c=_0x7244ae;break;}_0x3ba5b7&&(_0x39d0fa=_0x127785-0x1);for(let _0x2de274=_0x5e8b76;_0x2de274<_0x127785;_0x2de274++)_0x19ed2b[_0x2de274]['side']=_0x2de274<=_0x39d0fa?-0x1:_0x2de274<_0x17926c?0x0:0x1,_0x19ed2b[_0x2de274]['index']=_0x2de274;let _0xf8c699=0x0;for(let _0x2d5041=_0x5e8b76;_0x2d5041<=_0x39d0fa;_0x2d5041++)0x0==_0x19ed2b[_0x2d5041]['distance']?_0x19ed2b[_0x2d5041]['level']=_0xf8c699:(_0xf8c699++,_0x19ed2b[_0x2d5041]['level']=_0xf8c699,_0xf8c699++);for(let _0x1a5d02=_0x5e8b76;_0x1a5d02<_0x127785;_0x1a5d02++)0x0==_0x19ed2b[_0x1a5d02]['side']&&(_0x19ed2b[_0x1a5d02]['level']=_0xf8c699);_0xf8c699=0x0;for(let _0x324b95=_0x127785-0x1;_0x324b95>=_0x17926c;_0x324b95--)0x0==_0x19ed2b[_0x324b95]['distance']?_0x19ed2b[_0x324b95]['level']=_0xf8c699:(_0xf8c699--,_0x19ed2b[_0x324b95]['level']=_0xf8c699,_0xf8c699--);}}['_fixObsoleteTags'](_0x471bd6){const _0x1197a7=new Map(),_0xb3267d=this['editor']['model']['schema'];for(let _0x3dcd2b=0x1;_0x3dcd2b<_0x471bd6['length'];_0x3dcd2b++){let _0x19a145,_0x3612b6,_0xef32de;const _0x93c5a5=_0x471bd6[_0x3dcd2b],_0xe13174=_0x471bd6[_0x3dcd2b-0x1];if('text'==_0x93c5a5['type'])continue;if(_0x93c5a5['type']!=_0xe13174['type'])continue;if(!_0xb3267d['isBlock'](_0xe13174['item'])||_0xb3267d['isLimit'](_0xe13174['item']))continue;if(!_0xb3267d['isBlock'](_0x93c5a5['item'])||_0xb3267d['isLimit'](_0x93c5a5['item']))continue;if((_0x471bd6[_0x3dcd2b]['isAdded']||_0x471bd6[_0x3dcd2b]['isAddSuggestion'])&&_0x471bd6[_0x3dcd2b-0x1]['isRemoved'])_0x19a145=_0x471bd6[_0x3dcd2b],_0x3612b6=_0x471bd6[_0x3dcd2b-0x1],_0xef32de=_0x3dcd2b-0x1;else{if(!_0x471bd6[_0x3dcd2b]['isRemoved']||!_0x471bd6[_0x3dcd2b-0x1]['isAdded']&&!_0x471bd6[_0x3dcd2b-0x1]['isAddSuggestion'])continue;_0x19a145=_0x471bd6[_0x3dcd2b-0x1],_0x3612b6=_0x471bd6[_0x3dcd2b],_0xef32de=_0x3dcd2b;}const _0x5621de=_0x19a145['level']==_0x3612b6['level'],_0x43d832=Math['abs'](_0x19a145['level'])<Math['abs'](_0x3612b6['level'])&&0x0==_0x3612b6['distance'];(_0x5621de||_0x43d832)&&(_0x1197a7['set'](_0x3612b6['id'],_0x19a145['id']),_0x471bd6['splice'](_0xef32de,0x1),_0x3dcd2b--,_0x19a145['isAdded']=!0x1);}for(let _0x176afe=0x0;_0x176afe<_0x471bd6['length'];_0x176afe++)_0x1197a7['has'](_0x471bd6[_0x176afe]['pairId'])&&(_0x471bd6[_0x176afe]['pairId']=_0x1197a7['get'](_0x471bd6[_0x176afe]['pairId']));}['_removeMissingPairs'](_0x4877b1){const _0x55c79e=new Set(_0x4877b1['map'](_0x44f0a5=>_0x44f0a5['id']));for(let _0x141146=0x0;_0x141146<_0x4877b1['length'];_0x141146++)_0x55c79e['has'](_0x4877b1[_0x141146]['pairId'])||0x0==_0x4877b1[_0x141146]['distance']||(_0x4877b1[_0x141146]['isIncorrect']=!0x0);return _0x4877b1['filter'](_0xfed910=>!_0xfed910['isIncorrect']);}['_markMismatchedRemovedTags'](_0x667c68){const _0x245991=new Set();for(let _0x383e18=0x0;_0x383e18<_0x667c68['length'];_0x383e18++){if(_0x245991['has'](_0x667c68[_0x383e18]['id'])&&_0x667c68[_0x383e18]['isRemoved']&&(_0x667c68[_0x383e18]['isIncorrect']=!0x0),_0x667c68[_0x383e18]['isIncorrect'])continue;if(0x0==_0x667c68[_0x383e18]['distance'])continue;if('elementStart'!=_0x667c68[_0x383e18]['type'])continue;if(null==_0x667c68[_0x383e18]['pairId'])continue;let _0x1c2bf3=_0x383e18+0x1,_0x553470=0x0;for(;_0x667c68[_0x1c2bf3]['id']!=_0x667c68[_0x383e18]['pairId'];)'elementStart'==_0x667c68[_0x1c2bf3]['type']?_0x553470++:'elementEnd'==_0x667c68[_0x1c2bf3]['type']&&_0x553470--,_0x1c2bf3++;if(0x0!=_0x553470){if(_0x667c68[_0x383e18]['isRemoved'])_0x667c68[_0x383e18]['isIncorrect']=!0x0;else{for(;_0x1c2bf3!=_0x383e18;)_0x667c68[_0x1c2bf3]['isRemoved']&&0x0!=_0x667c68[_0x1c2bf3]['distance']&&(_0x667c68[_0x1c2bf3]['isIncorrect']=!0x0,_0x245991['add'](_0x667c68[_0x1c2bf3]['pairId'])),_0x1c2bf3--;}}}return _0x667c68['filter'](_0x258f62=>!_0x258f62['isIncorrect']);}['_removeUnsupportedChanges'](_0x6ea771){const _0x5f3709=this['editor']['model']['schema'];for(let _0x39f993=0x0;_0x39f993<_0x6ea771['length'];_0x39f993++){if(!(_0x6ea771[_0x39f993]['isAdded']||_0x6ea771[_0x39f993]['isAddSuggestion']||_0x6ea771[_0x39f993]['isRemoved']||_0x6ea771[_0x39f993]['isRemoveSuggestion']))continue;if(0x0==_0x6ea771[_0x39f993]['distance'])continue;const _0x2da91c=_0x6ea771[_0x39f993]['item'];_0x5f3709['isBlock'](_0x2da91c)||_0x5f3709['isLimit'](_0x2da91c)||(_0x6ea771[_0x39f993]['isAdded']&&delete _0x6ea771[_0x39f993]['isAdded'],_0x6ea771[_0x39f993]['isAddSuggestion']&&delete _0x6ea771[_0x39f993]['isAddSuggestion'],_0x6ea771[_0x39f993]['isRemoveSuggestion']&&delete _0x6ea771[_0x39f993]['isRemoveSuggestion'],_0x6ea771[_0x39f993]['isRemoved']&&(_0x6ea771[_0x39f993]['isIncorrect']=!0x0));}return _0x6ea771['filter'](_0x266b68=>!_0x266b68['isIncorrect']);}['_makeModelFromTape'](_0x103cfa,_0x2afdf8,_0x1a534d){const _0x14bc21=new gt(),_0x45fe53=[],_0x3b6ef2=new Map(),_0x17c01d=this['editor']['model'],_0x560da5=_0x17c01d['schema'],_0x9f016d=[_0x14bc21],_0x2325d6={},_0x3a63c8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24279b=null;const _0x5ea19c=[0x0];for(let _0x289435=0x0;_0x289435<_0x103cfa['length'];_0x289435++)if('elementStart'===_0x103cfa[_0x289435]['type']){_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c);const _0x246999=new ut(_0x103cfa[_0x289435]['item']['name'],_0x103cfa[_0x289435]['item']['getAttributes']());_0x9f016d[0x0]['_appendChild'](_0x246999),_0x5ea19c['push'](0x0),_0x9f016d['unshift'](_0x246999),_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c);}else'elementEnd'===_0x103cfa[_0x289435]['type']?(_0x9f016d['shift'](),_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c),_0x5ea19c['pop'](),_0x5ea19c[_0x5ea19c['length']-0x1]++,_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c)):(_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c),_0x24279b?_0x24279b['_data']+=_0x103cfa[_0x289435]['item']['data']:_0x24279b=new wt(_0x103cfa[_0x289435]['item']['data'],_0x103cfa[_0x289435]['item']['getAttributes']()),_0x103cfa[_0x289435+0x1]&&'text'===_0x103cfa[_0x289435+0x1]['type']&&_0x332e50(_0x24279b,_0x103cfa[_0x289435+0x1]['item'])||(_0x9f016d[0x0]['_appendChild'](_0x24279b),_0x24279b=null),_0x5ea19c[_0x5ea19c['length']-0x1]+=_0x103cfa[_0x289435]['item']['offsetSize'],_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c));for(let _0x420b10=0x0;_0x420b10<_0x103cfa['length'];_0x420b10++){const _0x285f9f=_0x103cfa[_0x420b10]['previousPosition'],_0x471965=_0x103cfa[_0x420b10]['nextPosition'];for(const _0x4ce984 of _0x103cfa[_0x420b10]['markersStart'])_0x3b6ef2['set'](_0x4ce984,{'start':_0x285f9f,'end':null});_0x1cb2a9('isRemoveSuggestion',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isAddSuggestion',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isRemoved',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isAdded',_0x420b10,_0x285f9f,_0x471965);for(const _0x5a484b of _0x103cfa[_0x420b10]['markersEnd']){_0x3b6ef2['get'](_0x5a484b)['end']=_0x471965;}}for(const [_0x4d8aa3,_0x2c09fe]of _0x3b6ef2){const _0x479e5c=this['editor']['model']['createRange'](_0x2c09fe['start'],_0x2c09fe['end']);_0x14bc21['markers']['set'](_0x4d8aa3,_0x479e5c);}return _0x45fe53['sort']((_0x4209f2,_0x3081f3)=>{const _0x4a10d8=_0x14bc21['markers']['get']('revision:'+_0x4209f2['id']),_0x6638af=_0x14bc21['markers']['get']('revision:'+_0x3081f3['id']);return _0x4a10d8['start']['isBefore'](_0x6638af['start'])?-0x1:_0x4a10d8['start']['isAfter'](_0x6638af['start'])?0x1:_0x4a10d8['end']['isBefore'](_0x6638af['end'])?-0x1:_0x4a10d8['end']['isAfter'](_0x6638af['end'])?0x1:'add'===_0x4209f2['type']?-0x1:0x1;}),{'root':_0x14bc21,'changes':_0x45fe53};function _0x1cb2a9(_0x3c56a3,_0x1803b8,_0x1687fe,_0x5e4549){const _0x28268a=!!_0x103cfa[_0x1803b8][_0x3c56a3],_0x468963=_0x28268a?_0x103cfa[_0x1803b8][_0x3c56a3]['userId']:null,_0x1e29e4=_0x1803b8===_0x103cfa['length']-0x1,_0x18e51f=_0x3a63c8[_0x3c56a3][0x0],_0x3783db=_0x560da5['isObject'](_0x103cfa[_0x1803b8]['item']);!_0x2325d6[_0x3c56a3]&&_0x28268a?_0x2325d6[_0x3c56a3]={'start':_0x1687fe,'tapeItem':_0x103cfa[_0x1803b8],'userId':_0x468963,'type':_0x3c56a3}:_0x2325d6[_0x3c56a3]&&!_0x28268a?(_0x2325d6[_0x3c56a3]['end']=_0x1687fe,_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]=null):_0x2325d6[_0x3c56a3]&&_0x28268a&&_0x2325d6[_0x3c56a3]['userId']!==_0x468963&&(_0x2325d6[_0x3c56a3]['end']=_0x1687fe,_0x18e51f&&_0x18e51f['userId']===_0x2325d6[_0x3c56a3]['userId']||_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]={'start':_0x1687fe,'tapeItem':_0x103cfa[_0x1803b8],'userId':_0x468963,'type':_0x3c56a3}),_0x2325d6[_0x3c56a3]&&_0x3783db&&('elementStart'!==_0x103cfa[_0x1803b8]['type']||_0x18e51f&&_0x18e51f['userId']===_0x468963||_0x3a63c8[_0x3c56a3]['unshift']({'userId':_0x468963,'object':_0x103cfa[_0x1803b8]['item'],'change':_0x2325d6[_0x3c56a3]}),'elementEnd'===_0x103cfa[_0x1803b8]['type']&&_0x18e51f&&_0x18e51f['object']===_0x103cfa[_0x1803b8]['item']&&(_0x3a63c8[_0x3c56a3]['shift'](),_0x2325d6[_0x3c56a3]=_0x18e51f['change'])),_0x2325d6[_0x3c56a3]&&_0x1e29e4&&(_0x2325d6[_0x3c56a3]['end']=_0x5e4549,_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]=null);}function _0x4f69f6({start:_0x52a307,end:_0x3f4751,tapeItem:_0x475ea5,userId:_0x405409,type:_0x16c604}){const _0x4d7702=_0x475ea5['item'],_0x15a962=_0x17c01d['schema']['isBlock'](_0x4d7702)&&!_0x17c01d['schema']['isLimit'](_0x4d7702),_0xfc3d44=_0x52a307['nodeAfter']==_0x3f4751['parent']&&_0x3f4751['isAtStart'];if(_0x15a962&&_0xfc3d44)return;const _0x59ce0f=_0x17c01d['createRange'](_0x52a307,_0x3f4751),_0x3c1c95=_0x2afdf8['get'](_0x405409),_0x21eeb9=new r({'author':_0x3c1c95,'type':'isAdded'==_0x16c604||'isAddSuggestion'==_0x16c604?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x16c604||'isRemoveSuggestion'==_0x16c604},'createdAt':new Date(),'rootName':_0x1a534d});_0x45fe53['push'](_0x21eeb9),_0x14bc21['markers']['set']('revision:'+_0x21eeb9['id'],_0x59ce0f);}function _0x332e50(_0x41285d,_0x5d30d1){const _0x14cb73=_0x41285d['getAttributes'](),_0x3b29e1=_0x5d30d1['getAttributes']();for(const _0x2811c4 of _0x14cb73){if(_0x2811c4[0x1]!==_0x5d30d1['getAttribute'](_0x2811c4[0x0]))return!0x1;_0x3b29e1['next']();}return _0x3b29e1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4e0654=>{const _0x292506=_0x4e0654['markerName']['split'](':')[0x1],_0x3c0b41=this['_getChangeFromId'](_0x292506);if(!_0x3c0b41)return null;const _0x2c7083='add'==_0x3c0b41['type']?'insertion':'deletion',_0x3113be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c7083];return _0x3c0b41['data']['isSuggestion']&&_0x3113be['push']('ck-suggestion-marker-'+_0x2c7083+'-new'),this['activeChange']==_0x3c0b41&&_0x3113be['push']('ck-suggestion-marker--active'),{'classes':_0x3113be,'attributes':{'data-change-id':_0x292506}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4ca8fe=>{_0x4ca8fe['on']('element:pre',(_0x33de65,_0x56c7ab,_0x144eab)=>{const _0xcf079f=_0x56c7ab['viewItem']['getChild'](0x0);if(!_0xcf079f||!_0xcf079f['is']('element','code'))return;if(!_0x144eab['consumable']['consume'](_0xcf079f,{'attributes':['vid_start','vid_end']}))return;const _0x1e80d7=_0x56c7ab['modelRange']['start']['nodeAfter'];_0x144eab['writer']['setAttribute']('vid_start',_0xcf079f['getAttribute']('vid_start'),_0x1e80d7),_0x144eab['writer']['setAttribute']('vid_end',_0xcf079f['getAttribute']('vid_end'),_0x1e80d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x18f711=>{_0x18f711['on']('element',(_0x323f42,_0xec6237,_0x386952)=>{if(!_0x386952['consumable']['consume'](_0xec6237['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xec6237['modelRange']['isCollapsed'])return;const _0x447d2e=_0xec6237['modelRange']['start']['nodeAfter'];_0x447d2e['hasAttribute']('vid_start')||_0x447d2e['hasAttribute']('vid')||(_0x386952['writer']['setAttribute']('vid_start',_0xec6237['viewItem']['getAttribute']('vid_start'),_0x447d2e),_0x386952['writer']['setAttribute']('vid_end',_0xec6237['viewItem']['getAttribute']('vid_end'),_0x447d2e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5a83a7=>_0x5a83a7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x128733,[,_0x2f4784])=>{['vid_start','vid_end','vid']['includes'](_0x2f4784)&&(_0x128733['return']=!0x0,_0x128733['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x24a781=>{_0x24a781['on']('attribute:vid',(_0x117776,_0x4cef7a,_0x3f0130)=>{if('\x20'!=_0x4cef7a['item']['data']||_0x4cef7a['item']['parent']['maxOffset']>0x1)return;if(!_0x3f0130['consumable']['consume'](_0x4cef7a['item'],_0x117776['name']))return;const _0x20ec2a=_0x3f0130['writer'],_0x1938cc=_0x3f0130['mapper']['toViewRange'](_0x4cef7a['range']);_0x20ec2a['wrap'](_0x1938cc,_0x20ec2a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2e11cb){const _0x47b6c2=_0x2e11cb['plugins']['get']('RevisionViewer');return(_0xf05925,_0x3c6351,_0x7d84bf)=>{const _0xaa31a2=_0x3c6351['markerName']['split'](':')[0x1],_0x2d4756=_0x47b6c2['_getChangeFromId'](_0xaa31a2);if(!_0x2d4756)return null;const _0x35be04='add'==_0x2d4756['type']?'split':'merge';if(!_0x7d84bf['consumable']['test'](_0x3c6351['markerRange'],_0xf05925['name']))return;const _0x409df7=_0x3c6351['markerRange']['getWalker'](),_0x43825a=_0x3c6351['markerRange']['start'],_0x330046=_0x2e11cb['model']['schema'];let _0x11cabc=null,_0x18303c=null,_0x41f305=!0x1,_0x3f644e=!0x1;for(const _0xaa2270 of _0x409df7){const _0x12a783=_0xaa2270['item'];_0x41f305=_0x41f305||_0x330046['isContent'](_0x12a783);const _0x18da95=_0x7d84bf['mapper']['toViewElement'](_0x12a783);if(_0x18da95&&_0x18da95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xaa2270['type']&&(_0x330046['isBlock'](_0x12a783)&&!_0x330046['isLimit'](_0x12a783)&&(_0x12a783['nextSibling']||_0x43825a['isAtEnd']?_0x11cabc&&_0x11cabc['parent']==_0x12a783||(_0x11cabc=_0x12a783,_0x56304e(_0xaa2270['previousPosition']),_0x3f644e=!0x0):_0x18303c=_0x18303c||_0xaa2270['previousPosition']));}function _0x56304e(_0x4220fa){const _0x361930=_0x7d84bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35be04}),_0x239633=_0x7d84bf['mapper']['toViewPosition'](_0x4220fa);_0x2d4756['data']['isSuggestion']&&_0x7d84bf['writer']['addClass']('ck-suggestion-marker-'+_0x35be04+'-new',_0x361930),_0x47b6c2['activeChange']==_0x2d4756&&_0x7d84bf['writer']['addClass']('ck-suggestion-marker--active',_0x361930),_0x7d84bf['writer']['insert'](_0x239633,_0x361930),_0x7d84bf['mapper']['bindElementToMarker'](_0x361930,_0x3c6351['markerName']);}_0x41f305||_0x3f644e||!_0x18303c||_0x56304e(_0x18303c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4892a2,_0x20b473,_0x26d130)=>{const _0x2d96a9=_0x26d130['mapper']['markerNameToElements'](_0x20b473['markerName']);if(_0x2d96a9){for(const _0x550a18 of _0x2d96a9)(_0x550a18['hasClass']('ck-suggestion-marker-split')||_0x550a18['hasClass']('ck-suggestion-marker-merge'))&&(_0x26d130['mapper']['unbindElementFromMarkerName'](_0x550a18,_0x20b473['markerName']),_0x26d130['writer']['remove'](_0x550a18));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x21df97,_0x40cb25,_0xe674ed)=>{const _0x2c00ba=_0x40cb25['markerName']['split'](':')[0x1],_0x35f693=this['_getChangeFromId'](_0x2c00ba);if(!_0x35f693)return null;const _0x1be3cb='add'==_0x35f693['type']?'split':'merge';if(_0xe674ed['consumable']['test'](_0x40cb25['markerRange'],_0x21df97['name']))for(const _0x583fed of _0x40cb25['markerRange']['getItems']()){if(!_0x583fed['is']('element','softBreak'))continue;const _0x1224b3=_0xe674ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1be3cb}),_0x4aca02=_0xe674ed['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x583fed));_0x35f693['data']['isSuggestion']&&_0xe674ed['writer']['addClass']('ck-suggestion-marker-'+_0x1be3cb+'-new',_0x1224b3),this['activeChange']==_0x35f693&&_0xe674ed['writer']['addClass']('ck-suggestion-marker--active',_0x1224b3),_0xe674ed['writer']['insert'](_0x4aca02,_0x1224b3),_0xe674ed['mapper']['bindElementToMarker'](_0x1224b3,_0x40cb25['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xa7d50e=>{for(const _0x23674f of this['editor']['model']['document']['getRootNames']()){const _0x373271=this['editor']['model']['document']['getRoot'](_0x23674f),_0x52c1b5=this['editor']['editing']['view']['document']['getRoot'](_0x23674f);if(_0x52c1b5){const _0x1a5e40=_0x373271['getAttribute']('revisionHistoryAttachChange');if(_0xa7d50e['removeAttribute']('data-change-id',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root-add',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root-remove',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root--active',_0x52c1b5),_0x1a5e40){const _0xd75cac=this['_getChangeFromId'](_0x1a5e40);if(!_0xd75cac)return null;_0xa7d50e['setAttribute']('data-change-id',_0x1a5e40,_0x52c1b5),_0xa7d50e['addClass']('ck-revision-history-root-'+_0xd75cac['type'],_0x52c1b5),this['activeChange']==_0xd75cac&&_0xa7d50e['addClass']('ck-revision-history-root--active',_0x52c1b5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2cafee=>'revision-comment:'+_0x2cafee,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xcb3012=>'revision-suggestion:'+_0xcb3012,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x12d2ea=>({'name':'suggestion:'+_0x12d2ea,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x75fa85=>{const _0x248078=_0x75fa85['markerName']['split'](':')[0x1];return'insertion'!=_0x248078&&'deletion'!=_0x248078?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x248078]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x15035d,_0x57999a,_0x2a432b)=>{const _0x3e67c6=_0x2a432b['mapper']['markerNameToElements'](_0x57999a['markerName']);if(_0x3e67c6){for(const _0x4305c7 of _0x3e67c6)_0x4305c7['is']('uiElement')&&(_0x2a432b['mapper']['unbindElementFromMarkerName'](_0x4305c7,_0x57999a['markerName']),_0x2a432b['writer']['remove'](_0x4305c7));}},{'priority':'high'});}['_getChangeFromId'](_0x17c7b5){return this['_changeIdToChange']['get'](_0x17c7b5);}['_getViewForChange'](_0x5b3571){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5b3571),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8072dd,_0x4e36db,_0x48027d,_0xca5b75)=>{_0xca5b75&&this['_balloon']['remove'](_0xca5b75),_0x48027d&&(this['_balloon']['add']({'view':_0x48027d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f57c9=this['editor']['editing'],_0x498d23=this['_getChangeFromId'](_0x48027d['changeId']);let _0x10ee07;if(_0x498d23['data']['isOnRoot']){const _0xccedd3=_0x5f57c9['view']['getDomRoot'](_0x498d23['rootName']);_0x10ee07=Array['from'](_0xccedd3['getClientRects']());}else{const _0x1ab143=this['editor']['model']['markers']['get']('revision:'+_0x48027d['changeId']);_0x10ee07=Array['from'](_0x5f57c9['mapper']['markerNameToElements'](_0x1ab143['name']))['map'](_0x37e214=>_0x5f57c9['view']['domConverter']['mapViewToDom'](_0x37e214))['map'](_0xd87475=>Array['from'](_0xd87475['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x10ee07[0x0];return _0x10ee07['find'](_0x36111f=>_0x36111f['top']-0x3<=this['_activeViewTarget']['y']&&_0x36111f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36111f['left']-0x3<=this['_activeViewTarget']['x']&&_0x36111f['right']+0x3>=this['_activeViewTarget']['x'])||_0x10ee07[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4cefe6,_0x32cc81,_0x45ab43,_0x2bc7a5)=>{this['activeView']=_0x45ab43?this['_getViewForChange'](_0x45ab43):null,this['editor']['model']['change'](()=>{const _0x11370c=this['editor']['editing'];_0x2bc7a5&&(_0x2bc7a5['data']['isOnRoot']?_0x11370c['view']['change'](_0xd93728=>{_0xd93728['removeClass']('ck-revision-history-root--active',_0x11370c['view']['document']['getRoot'](_0x2bc7a5['rootName']));}):_0x11370c['reconvertMarker']('revision:'+_0x2bc7a5['id'])),_0x45ab43&&(_0x45ab43['data']['isOnRoot']?_0x11370c['view']['change'](_0x118f76=>{_0x118f76['addClass']('ck-revision-history-root--active',_0x11370c['view']['document']['getRoot'](_0x45ab43['rootName']));}):_0x11370c['reconvertMarker']('revision:'+_0x45ab43['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38be51,_0x1190ee)=>{if(this['activeChange'])return;const _0x346035=this['_findChangeIdFromDomTarget'](_0x1190ee['target']),_0xf45878=this['_changeIdToChange']['get'](_0x346035);_0xf45878?(this['_activeViewTarget']={'x':_0x1190ee['domEvent']['x'],'y':_0x1190ee['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf45878)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3aaf76,_0x22ac60)=>{const _0x29d922=this['_findChangeIdFromDomTarget'](_0x22ac60['target']),_0x548916=this['_changeIdToChange']['get'](_0x29d922);_0x548916?(this['_activeViewTarget']={'x':_0x22ac60['domEvent']['x'],'y':_0x22ac60['domEvent']['y']},_0x548916===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x548916):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5b9de3){do{const _0xfb3208=_0x5b9de3['getAttribute']('data-change-id');if(_0xfb3208)return _0xfb3208;_0x5b9de3=_0x5b9de3['parent'];}while(_0x5b9de3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x258f75=>{for(const _0xb3a901 of this['editor']['model']['markers'])_0x258f75['removeMarker'](_0xb3a901);});}}function Z(_0x4dd7b0,_0x2088e0){return(_0x3efe5a,_0x5f2f6b,_0xbcac41)=>{if(!_0xbcac41['consumable']['test'](_0x5f2f6b['markerRange'],_0x3efe5a['name']))return;const _0x1760e6=_0x5f2f6b['markerRange']['getWalker'](),_0x4c8930=_0x5f2f6b['markerRange']['start'],_0x37ac6f=_0x4dd7b0['model']['schema'];let _0xb15c80=null,_0x469e61=null,_0x16304f=!0x1,_0x1dcd1f=!0x1;for(const _0x2a36dd of _0x1760e6){const _0xd3af94=_0x2a36dd['item'];_0x16304f=_0x16304f||_0x37ac6f['isContent'](_0xd3af94);const _0x50958c=_0xbcac41['mapper']['toViewElement'](_0xd3af94);if(_0x50958c&&_0x50958c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a36dd['type']&&(_0x37ac6f['isBlock'](_0xd3af94)&&!_0x37ac6f['isLimit'](_0xd3af94)&&(_0xd3af94['nextSibling']||_0x4c8930['isAtEnd']?_0xb15c80&&_0xb15c80['parent']==_0xd3af94||(_0xb15c80=_0xd3af94,_0x4c0e2b(_0x2a36dd['previousPosition']),_0x1dcd1f=!0x0):_0x469e61=_0x469e61||_0x2a36dd['previousPosition']));}function _0x4c0e2b(_0xe3086a){const _0x6436b4=_0xbcac41['mapper']['toViewPosition'](_0xe3086a),_0x165abc=_0xbcac41['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2088e0});_0xbcac41['writer']['insert'](_0x6436b4,_0x165abc),_0xbcac41['mapper']['bindElementToMarker'](_0x165abc,_0x5f2f6b['markerName']);}_0x16304f||_0x1dcd1f||!_0x469e61||_0x4c0e2b(_0x469e61);};}class _t extends _0x1cd2f9{constructor(_0x4360c0){super(_0x4360c0);const _0x3910fa=_0x4360c0['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3910fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3910fa,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfff9d8=this['editor'],_0x35a277=_0xfff9d8['plugins']['get'](d),_0x36ee39=_0x35a277['isReady']?_0x35a277['diff']['newRevisionId']:null;_0xfff9d8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36ee39);}['refresh'](){const {isReady:_0x528733,isEnabled:_0x3a78b9,repository:_0x497fa7,diff:_0x592bb9}=this['editor']['plugins']['get'](d),_0x5d01bf=_0x592bb9&&_0x497fa7['getLaterVisibleRevision'](_0x592bb9['newRevisionId']);this['isEnabled']=_0x528733&&_0x3a78b9&&Boolean(_0x5d01bf);}}class yt extends _0x1cd2f9{['_step'];constructor(_0x188423,{direction:_0x49adf1}){super(_0x188423);const _0x57258c=_0x188423['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x49adf1?0x1:-0x1,this['listenTo'](_0x57258c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x57258c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x57258c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x20e2cd=this['editor'],_0x1f2174=_0x20e2cd['plugins']['get'](d),{isNavigationMode:_0x5230bb,currentChangeNumber:_0x370604}=_0x1f2174;let _0x2f5f53;if(_0x1f2174['activeChange']=_0x5230bb?_0x1f2174['diff']['changes']['get'](_0x370604+this['_step']):_0x1f2174['diff']['changes']['first'],_0x1f2174['activeChange']['data']['isOnRoot'])_0x2f5f53=_0x20e2cd['editing']['view']['getDomRoot'](_0x1f2174['activeChange']['rootName']);else{const _0x2c12d2=_0x20e2cd['model']['markers']['get']('revision:'+_0x1f2174['activeChange']['id']);_0x2f5f53=_0x4301f5(_0x20e2cd['editing'],_0x2c12d2);}_0x41b6f7({'target':_0x2f5f53,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x424ec5,currentChangeNumber:_0x398ce6,numberOfChanges:_0x2335e5,isReady:_0x997b65,isEnabled:_0x1cb5cf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1cb5cf&&_0x997b65&&_0x2335e5)&&(!_0x424ec5||(0x1===this['_step']?_0x398ce6<_0x2335e5-0x1:_0x398ce6>0x0));}}class _i extends _0x4d48fa{constructor(_0x326fe8){super(_0x326fe8);const _0x177fd6=this['bindTemplate'],_0x52c122=new _0x1bfe84(_0x326fe8),_0x5464ed=new _0x1bfe84(_0x326fe8);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',(_0x423bb3,_0x2f0209)=>_0x423bb3&&_0x2f0209>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x43e27c,_0xf34a87,_0x2f9096,_0x22cb7e)=>{if(!_0x43e27c)return m(_0x326fe8,'Loading...');if(!_0x2f9096)return m(_0x326fe8,'No\x20changes');const _0x49e163=m(_0x326fe8,'NUMBER_OF_CHANGES',_0x2f9096);return _0x22cb7e?m(_0x326fe8,'X_OF_Y_CHANGES',[_0xf34a87+0x1,_0x2f9096]):_0x49e163;}),_0x52c122['set']({'label':m(_0x326fe8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1b0d6d}),_0x5464ed['set']({'label':m(_0x326fe8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4dcd5b}),_0x52c122['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5464ed['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x52c122['on']('execute',()=>this['fire']('execute','backward')),_0x5464ed['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',_0x177fd6['if']('_isStatusLabelVisible','ck-hidden',_0x4ce8ba=>!_0x4ce8ba)]},'children':[{'text':_0x177fd6['to']('isNavigationMode',_0x1ff59d=>_0x1ff59d?m(_0x326fe8,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x326fe8,'Total')+':\x20')}]},{'text':_0x177fd6['to']('_statusText')}]},new _0x120b08(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x52c122,_0x5464ed]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3cb746{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x34915e=this['editor']['editing']['view'];_0x34915e['change'](_0x164665=>{for(const _0x2a9a9c of _0x34915e['document']['roots'])_0x164665['addClass'](ce,_0x2a9a9c);});}['hide'](){const _0x347992=this['editor']['editing']['view'];_0x347992['change'](_0x588a50=>{for(const _0x3ea789 of _0x347992['document']['roots'])_0x588a50['removeClass'](ce,_0x3ea789);});}}class w extends _0x3cb746{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4672a7=this['editor'],_0x5b5dd8=_0x4672a7['plugins']['get'](d),_0x3189f5=_0x4672a7['plugins']['get'](le);_0x4672a7['ui']['componentFactory']['add']('exitToEditing',_0xd80804=>{const _0x53ff45=new _0x1bfe84(_0xd80804);return _0x53ff45['set']({'label':m(_0xd80804,'Back\x20to\x20editing'),'icon':_0x113421,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x53ff45,'execute',()=>{_0x4672a7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x53ff45;}),_0x4672a7['ui']['componentFactory']['add']('restoreRevision',_0x3cf407=>{const _0x3af143=new _0x1bfe84(_0x3cf407);return _0x3af143['set']({'label':m(_0x3cf407,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3af143['bind']('isEnabled')['to'](_0x4672a7['commands']['get']('restoreRevision')),this['listenTo'](_0x3af143,'execute',()=>_0x4672a7['execute']('restoreRevision')),_0x3af143;}),_0x4672a7['ui']['componentFactory']['add']('changesNavigation',_0x19e049=>{const _0x4143b9=new _i(_0x19e049),_0x3a97a6=_0x4672a7['commands']['get']('showPreviousChange'),_0xf430b9=_0x4672a7['commands']['get']('showNextChange');return _0x4143b9['bind']('isBackwardNavigationEnabled')['to'](_0x3a97a6,'isEnabled'),_0x4143b9['bind']('isForwardNavigationEnabled')['to'](_0xf430b9,'isEnabled'),_0x4143b9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5b5dd8),this['listenTo'](_0x4143b9,'execute',(_0x434b08,_0xa5b727)=>{_0x4672a7['execute']('forward'===_0xa5b727?'showNextChange':'showPreviousChange');}),_0x4143b9;}),_0x3189f5['show'](),_0x5b5dd8['on']('change:isReady',(_0x3f5374,_0x3d5b44,_0x30617d)=>{_0x30617d?_0x3189f5['hide']():_0x3189f5['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1a0472,_0x2142a4){super(_0x1a0472,_0x2142a4);const _0x34c68f=this['bindTemplate'];this['set']({'label':m(_0x1a0472,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1a0472,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x34c68f['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 _0x51eb3a=this['fieldView']['element'];this['_tooltipString']=_0x51eb3a['scrollWidth']>_0x51eb3a['clientWidth']&&_0x51eb3a['value']||'';}}class oi extends _0x4d48fa{constructor(_0xaa4043,_0x1d0eee,_0x5678ba){super(_0xaa4043);const _0x2beb1e=new _0x6616f4();_0x2beb1e['set']({'content':_0x1ea804,'viewBox':'0\x200\x2011\x2010'});const _0x1f5d60=['ck','ck-revision-history-sidebar__revision-author'];_0x5678ba&&_0x1f5d60['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37ca66=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xaa4043,_0x5678ba?'Revision\x20creator':'Revision\x20author')},'children':[_0x2beb1e,_0x1d0eee['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1f5d60},'children':_0x37ca66});}}function ni(_0x2c405d,_0x3a1436){const _0x4ee37b=_0x2c405d['bindTemplate'],_0x4f6ee1=_0x2c405d['locale'],_0x3d9718=_0x5bcb54(_0x4f6ee1);_0x3d9718['panelPosition']='sw';const _0x4f04d7=function(_0x54e75c,_0x908aed){const _0x379f5d=function(_0x4f6b93,_0x50a057){const _0x3a1946=_0x4f6b93['locale'],_0x313669={'Compare\x20against\x20selected':m(_0x3a1946,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3a1946,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3a1946,'Restore\x20this\x20revision')};return _0x50a057['map'](_0x56f207=>{const _0x4383f2=_0x313669[_0x56f207['name']];return _0x4383f2&&_0x4383f2!==_0x56f207['name']&&(_0x56f207['name']=_0x4383f2),_0x56f207;});}(_0x54e75c,_0x908aed),_0x3047c0=new _0x2818bf();for(const _0x3ab824 of _0x379f5d){const _0x3b3811={'type':'button','model':new to({'label':_0x3ab824['name'],'class':_0x3ab824['class'],'withText':!0x0,'role':'menuitem','_action':_0x3ab824['action']})};_0x3b3811['model']['bind']('isEnabled')['to'](_0x54e75c,'isActionsDropdownOpen',_0x4e2229=>'function'!=typeof _0x3ab824['isEnabled']||(!_0x4e2229||_0x3ab824['isEnabled'](_0x54e75c))),_0x3047c0['add'](_0x3b3811);}return _0x3047c0;}(_0x2c405d,_0x3a1436);return _0x2c405d['bind']('isActionsDropdownOpen')['to'](_0x3d9718,'isOpen'),_0x3d9718['buttonView']['set']({'label':m(_0x4f6ee1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2786d8}),_0x3d9718['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ee37b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ee37b['to'](_0x290387=>_0x290387['stopPropagation']())}}),_0x3d9718['on']('execute',_0x14d338=>{_0x2c405d['isReady']&&'function'==typeof _0x14d338['source']['_action']&&_0x14d338['source']['_action'](_0x2c405d);}),_0x176f3a(_0x3d9718,_0x4f04d7,{'role':'menu'}),_0x3d9718['listenTo'](_0x2c405d,'change:isActionsDropdownOpen',(_0x48441b,_0x599481,_0x27507a)=>{if(_0x27507a)for(const _0x5aa4ac of _0x3d9718['listView']['items']){const _0x2d0b80=_0x5aa4ac['children']['first'],_0x231f35=_0x3a1436['find'](_0x533dfc=>_0x533dfc['action']===_0x2d0b80['_action'])['isVisible'];_0x5aa4ac['isVisible']=void 0x0===_0x231f35||_0x231f35(_0x2c405d);}}),_0x3d9718;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x174140,uid as _0x3bf3c3,Collection as _0xd7d3a9,logWarning as _0x3d231b,FocusTracker as _0x4f5e82,KeystrokeHandler as _0x45f22f,scrollViewportToShowTarget as _0x4bd188,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x306a38}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x52c51f,set as _0x125f5e,unset as _0x137a90,isEqual as _0x494fee}from'es-toolkit/compat';import{Plugin as _0x360162,PendingActions as _0x51a274,Command as _0x2d3133,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b41fe,getMarkerDomElement as _0x16fe57,ConfirmMixin as _0x4bf595,sanitizeEditorConfig as _0x59131f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2bfcd7,Element as ut,Range as ft,ViewUIElement as _0x440e76,ViewRawElement as _0x3b5238,ViewEmptyElement as _0x414ab6,ViewAttributeElement as _0x2d8842,ViewContainerElement as _0x462066,Position as vt,ViewText as _0x55faa7,ViewElement as _0x50bcf3,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x43ad56,IconChevronUp as _0x43dd58,IconChevronDown as _0x31dfb6,IconUndo as _0x14f32b,IconUser as _0x3f89ec,IconThreeVerticalDots as _0x2764f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xf43afc,injectCssTransitionDisabler as ts,submitHandler as _0x355721,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x36cbf8,ListView as _0x4be1b7,ListItemView as te,ButtonView as _0xac35f,MenuBarMenuView as _0x24bb11,MenuBarMenuListView as _0x5ef991,MenuBarMenuListItemView as _0x3f02b2,MenuBarMenuListItemButtonView as _0x1f1f2f,ContextualBalloon as _0x53624a,ToolbarSeparatorView as _0x715ea8,IconView as _0x82b58c,addListToDropdown as _0x4d676f,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x23f9e1}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x174140(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4128a3){super(),this['id']=_0x4128a3['id']||_0x3bf3c3(),this['creator']=_0x4128a3['creator']||null,this['authors']=_0x4128a3['authors']||[],this['diffData']=_0x4128a3['diffData']||null,this['toVersion']=_0x4128a3['toVersion']||0x0,this['fromVersion']=_0x4128a3['fromVersion']||0x0,this['set']('name',_0x4128a3['name']||''),this['set']('createdAt',_0x4128a3['createdAt']||new Date()),this['set']('attributes',_0x4128a3['attributes']||{});}['setName'](_0x5c2e07){this['_update']({'name':_0x5c2e07});}['setAttribute'](_0x53e716,_0x2689ba){const _0x5deac6=_0x52c51f(this['attributes']);_0x125f5e(_0x5deac6,_0x53e716,_0x2689ba),this['_update']({'attributes':_0x5deac6});}['removeAttribute'](_0x4baae0){const _0x5b88b1=_0x52c51f(this['attributes']);_0x137a90(_0x5b88b1,_0x4baae0),this['_update']({'attributes':_0x5b88b1});}['_update'](_0x379e76,_0x2aa012=!0x1){let _0x1ffefa=!0x1;const _0x57b584={'id':this['id']},_0x5277bf=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x211fec of _0x5277bf){const _0x14d9b3=_0x379e76[_0x211fec];void 0x0!==_0x14d9b3&&_0x14d9b3!==this[_0x211fec]&&(this[_0x211fec]=_0x14d9b3,_0x57b584[_0x211fec]=_0x14d9b3,_0x1ffefa=!0x0);}_0x1ffefa&&(_0x57b584['authors']&&(_0x57b584['authorsIds']=_0x57b584['authors']['map'](_0x58d028=>_0x58d028['id']),delete _0x57b584['authors']),this['fire']('_update',_0x57b584,_0x2aa012));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x380f4f=>_0x380f4f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x360162{['_revisions'];static get['requires'](){return[_0x1b41fe];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x50c6ef){super(_0x50c6ef),this['_revisions']=new _0xd7d3a9();}['afterInit'](){!async function(_0x54d54d){const _0x542008=_0x4d64d8([0x62,0x43,0x33,0x72,0x37,0x36,0x57,0x5a,0x34,0x41,0x7a,0x61,0x4b,0x76,0x6b,0x54,0x63,0x6a,0x6e,0x50,0x4e,0x6d,0x46,0x65,0x52,0x67,0x68,0x4a,0x69,0x49,0x30,0x4d,0x39,0x77,0x44,0x75,0x53,0x32,0x79,0x55,0x31,0x45,0x59,0x56,0x4c,0x47,0x66,0x38,0x51,0x42,0x4f,0x70,0x73,0x58,0x71,0x74,0x35,0x6f,0x64,0x6c,0x78,0x48]),_0x4176d4=0xeb829,_0x169313=0x561d9ced,_0x3c2b87=0x561ac345^_0x169313,_0x5abc87=window[_0x4d64d8([0x44,0x61,0x74,0x65])][_0x4d64d8([0x6e,0x6f,0x77])](),_0x2364e0=_0x54d54d[_0x4d64d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32bebf=new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x453d55=>{_0x2364e0[_0x4d64d8([0x6f,0x6e,0x63,0x65])](_0x4d64d8([0x72,0x65,0x61,0x64,0x79]),_0x453d55);}),_0x2e31ef={[_0x4d64d8([0x6b,0x74,0x79])]:_0x4d64d8([0x45,0x43]),[_0x4d64d8([0x75,0x73,0x65])]:_0x4d64d8([0x73,0x69,0x67]),[_0x4d64d8([0x63,0x72,0x76])]:_0x4d64d8([0x50,0x2d,0x32,0x35,0x36]),[_0x4d64d8([0x78])]:_0x4d64d8([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]),[_0x4d64d8([0x79])]:_0x4d64d8([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]),[_0x4d64d8([0x61,0x6c,0x67])]:_0x4d64d8([0x45,0x53,0x32,0x35,0x36])},_0x2c9e67=_0x2364e0[_0x4d64d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d64d8([0x67,0x65,0x74])](_0x4d64d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4674f6(){let _0x26c63e,_0x43c986=null,_0x3388c1=null;try{if(_0x2c9e67==_0x4d64d8([0x47,0x50,0x4c]))return _0x4d64d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26c63e=_0x358abb(),!_0x26c63e)return _0x4d64d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26c63e[_0x4d64d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3388c1=_0x37a059(_0x26c63e[_0x4d64d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26c63e[_0x4d64d8([0x6a,0x74,0x69])])),await _0x1615c1()?_0x9458f6()?_0x31b833()?_0x4d64d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59ffb3()?(_0x26c63e[_0x4d64d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d64d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43c986=_0x177800(_0x4d64d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26c63e[_0x4d64d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d64d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x43c986=_0x177800(_0x4d64d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x242bd0()):_0x4d64d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d64d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d64d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e7c35){return _0x4d64d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b833(){const _0x462de8=[_0x4d64d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d64d8([0x74,0x72,0x69,0x61,0x6c])][_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c63e[_0x4d64d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5abc87/0x3e8:0xe10*_0x3c2b87;return _0x26c63e[_0x4d64d8([0x65,0x78,0x70])]<_0x462de8;}function _0x9458f6(){const _0x2503c9=_0x26c63e[_0x4d64d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2503c9)return!0x1;if(_0x2503c9[_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d64d8([0x2a])))return!0x0;if(_0x2503c9[_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d64d8([0x52,0x48])))return!0x0;if(_0x2503c9[_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d64d8([0x52,0x52,0x48]))){if(_0x17f117())return!0x0;if(_0x3e35c8()||_0x4b3491())return!0x0;}return!0x1;}function _0x59ffb3(){const _0x3df268=_0x26c63e[_0x4d64d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3df268||0x0==_0x3df268[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3daba3}=new URL(window[_0x4d64d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3df268[_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daba3))return!0x0;const _0x5e3319=_0x3daba3[_0x4d64d8([0x73,0x70,0x6c,0x69,0x74])](_0x4d64d8([0x2e]));return _0x3df268[_0x4d64d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35f0ee=>_0x35f0ee[_0x4d64d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d64d8([0x2a])))[_0x4d64d8([0x6d,0x61,0x70])](_0x1645c7=>_0x1645c7[_0x4d64d8([0x73,0x70,0x6c,0x69,0x74])](_0x4d64d8([0x2e])))[_0x4d64d8([0x73,0x6f,0x6d,0x65])](_0x9e26a=>_0x5e3319[_0x4d64d8([0x65,0x76,0x65,0x72,0x79])]((_0x4ab3b5,_0x29538f)=>_0x9e26a[_0x29538f]===_0x4ab3b5||_0x9e26a[_0x29538f]===_0x4d64d8([0x2a])));}function _0x242bd0(){return _0x43c986&&_0x3388c1?new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548d43,_0x55a704)=>{_0x43c986[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0x548d43,_0x55a704),_0x3388c1[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0x499ba2=>{_0x499ba2!=_0x4d64d8([0x56,0x61,0x6c,0x69,0x64])&&_0x548d43(_0x499ba2);},_0x55a704);}):_0x43c986||_0x3388c1||_0x4d64d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37a059(_0x1e165d,_0xce19cb){return new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5ee0=>{if(_0x5b9811())return _0x3a5ee0(_0x4d64d8([0x56,0x61,0x6c,0x69,0x64]));_0x22f6ce(),_0x2364e0[_0x4d64d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d64d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58d9f2=!0x1;const _0x598efc=_0x3bf3c3();function _0x301693(_0x5861f4){return!!_0x5861f4&&(typeof _0x5861f4===_0x4d64d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5861f4===_0x4d64d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5861f4[_0x4d64d8([0x74,0x68,0x65,0x6e])]===_0x4d64d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5861f4[_0x4d64d8([0x63,0x61,0x74,0x63,0x68])]===_0x4d64d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16ee30(_0x595588){_0x24f682(_0x595588)[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0x39f2de=>{if(!_0x39f2de||_0x39f2de[_0x4d64d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d64d8([0x6f,0x6b]))return _0x4d64d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17e5d2(_0x4b3b50(_0x598efc+_0xce19cb))!=_0x39f2de[_0x4d64d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d64d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d64d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0x3a7222=>(_0x13c153(),_0x3a7222),()=>{const _0x2944fd=_0x50425e();return null==_0x2944fd?(_0x13c153(),_0x4d64d8([0x56,0x61,0x6c,0x69,0x64])):_0x4d64d8(_0x5abc87-_0x2944fd>(0x721118ed^_0x169313)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0x3a5ee0)[_0x4d64d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a5ee0(_0x4d64d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf5e5bc=0x562b726d^_0x169313;function _0x13c153(){const _0x34d640=_0x4d64d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x17e5d2(_0x4b3b50(_0x1e165d)),_0x2f86ac=_0x4f4145(_0x17e5d2(window[_0x4d64d8([0x4d,0x61,0x74,0x68])][_0x4d64d8([0x63,0x65,0x69,0x6c])](_0x5abc87/_0xf5e5bc)));window[_0x4d64d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d64d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34d640,_0x2f86ac);}function _0x50425e(){const _0x276a4b=_0x4d64d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x17e5d2(_0x4b3b50(_0x1e165d)),_0x177de2=window[_0x4d64d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d64d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x276a4b);return _0x177de2?window[_0x4d64d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4145(_0x177de2),0x10)*_0xf5e5bc:null;}function _0x24f682(_0x1c7d6a){return new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xac9242,_0x221bb2)=>{_0x1c7d6a[_0x4d64d8([0x74,0x68,0x65,0x6e])](_0xac9242,_0x221bb2),window[_0x4d64d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x221bb2,0x561c482d^_0x169313);});}}_0x2364e0[_0x4d64d8([0x6f,0x6e])](_0x4d64d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xff0796,_0x580b25)=>{if(_0x580b25[0x0]!=_0x1e165d)return _0x3a5ee0(_0x4d64d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x580b25[0x1]={..._0x580b25[0x1],[_0x4d64d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x598efc};},{[_0x4d64d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d64d8([0x68,0x69,0x67,0x68])}),_0x2364e0[_0x4d64d8([0x6f,0x6e])](_0x4d64d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35ae3e=>{_0x301693(_0x35ae3e[_0x4d64d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58d9f2=!0x0,_0x16ee30(_0x35ae3e[_0x4d64d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d64d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d64d8([0x6c,0x6f,0x77])}),_0x32bebf[_0x4d64d8([0x74,0x68,0x65,0x6e])](()=>{_0x58d9f2||_0x3a5ee0(_0x4d64d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b9811(){return _0x2364e0[_0x4d64d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d64d8([0x76,0x69,0x65,0x77])][_0x4d64d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d64d8([0x61,0x75,0x74,0x6f]);}function _0x22f6ce(){_0x2364e0[_0x4d64d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d64d8([0x76,0x69,0x65,0x77])][_0x4d64d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d64d8([0x61,0x75,0x74,0x6f]);}}function _0x177800(_0x5c6daf){const _0x1acaf5=[new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26fca1=>setTimeout(_0x26fca1,0x5614a221^_0x169313)),_0x32bebf[_0x4d64d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb988b5=>{const _0x5d6dd4=0x561d9cea^_0x169313,_0x3b70d4=_0x54d54d[_0x4d64d8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x326b8b(){_0x3b70d4[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5d6dd4&&_0xb988b5();}_0x326b8b(),_0x3b70d4[_0x4d64d8([0x6f,0x6e])](_0x4d64d8([0x61,0x64,0x64]),_0x326b8b);})),new window[(_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7e0f=>{function _0x1f52a6(){for(const _0x381239 in window)if(window[_0x4d64d8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d64d8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x381239))&&window[_0x381239]==_0x4176d4)return _0x1e7e0f();_0x2364e0[_0x4d64d8([0x73,0x74,0x61,0x74,0x65])]!=_0x4d64d8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d64d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f52a6,0x561d8f65^_0x169313);}_0x12fa49(_0x4d64d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1f52a6();})];return window[_0x4d64d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d64d8([0x72,0x61,0x63,0x65])](_0x1acaf5)[_0x4d64d8([0x74,0x68,0x65,0x6e])](()=>_0x5c6daf);}async function _0x4b7f02(){if(await _0x32bebf,_0x12fa49(_0x4d64d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5745d9=_0x54d54d[_0x4d64d8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5f22ee=_0x54d54d[_0x4d64d8([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])](_0x5745d9[_0x4d64d8([0x69,0x64])]),_0x219e0c=_0x5aaad4(_0x4d64d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x219e0c[_0x4d64d8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5745d9['id'],_0x5f22ee?_0x5f22ee['id']:null,!0x0),_0x219e0c[_0x4d64d8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d64d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x219e0c[_0x4d64d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x219e0c[_0x4d64d8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x21d30f,void(_0x219e0c[_0x4d64d8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x21d30f);}if(_0x12fa49(_0x4d64d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3cc8ca=_0x5aaad4(_0x4d64d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3cc8ca[_0x4d64d8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d64d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3cc8ca[_0x4d64d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3cc8ca[_0x4d64d8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x21d30f,_0x3cc8ca[_0x4d64d8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x21d30f;}_0x2364e0[_0x4d64d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d64d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21d30f,_0x2364e0[_0x4d64d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d64d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21d30f,_0x2364e0[_0x4d64d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d64d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17f117(){return _0x12fa49(_0x4d64d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5aaad4(_0x4d64d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d64d8([0x73,0x74,0x61,0x74,0x65])]==_0x4d64d8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e35c8(){return _0x12fa49(_0x4d64d8([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 _0x4b3491(){return _0x12fa49(_0x4d64d8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x298189(_0xce7585){const _0x3110c8=_0x4224b5();_0x2364e0[_0x3110c8]=_0x4d64d8([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])+_0xce7585,_0xce7585[_0x4d64d8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d64d8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4224b5()]=_0x4176d4),_0xce7585!=_0x4d64d8([0x56,0x61,0x6c,0x69,0x64])&&_0x4b7f02();}function _0x4224b5(){const _0x2b389a=window[_0x4d64d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d64d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d64d8([0x6e,0x6f,0x77])]())[_0x4d64d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d64d8([0x2e]),'');let _0x318a78=_0x4d64d8([0x62]);for(let _0x269f5b=0x0;_0x269f5b<_0x2b389a[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x269f5b+=0x2){let _0x11d0aa=window[_0x4d64d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b389a[_0x4d64d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269f5b,_0x269f5b+0x2));_0x11d0aa>=_0x542008[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11d0aa-=_0x542008[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x318a78+=_0x542008[_0x11d0aa];}return _0x318a78;}function _0x358abb(){const _0x54d897=_0x2c9e67[_0x4d64d8([0x73,0x70,0x6c,0x69,0x74])](_0x4d64d8([0x2e]));if(0x3!=_0x54d897[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5264e5(_0x54d897[0x1]);function _0x5264e5(_0x5b4d96){const _0x5f1821=_0x60141f(_0x5b4d96);return _0x5f1821&&_0x26307e()?_0x5f1821:null;function _0x26307e(){const _0x3366cd=_0x5f1821[_0x4d64d8([0x6a,0x74,0x69])],_0x55b669=window[_0x4d64d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3366cd[_0x4d64d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3366cd[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54030b={..._0x5f1821,[_0x4d64d8([0x6a,0x74,0x69])]:_0x3366cd[_0x4d64d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3366cd[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54030b[_0x4d64d8([0x76,0x63])],_0x4b3b50(_0x54030b)==_0x55b669;}}}async function _0x1615c1(){let _0x4554fd=!0x0;try{const _0x4d019b=_0x2c9e67[_0x4d64d8([0x73,0x70,0x6c,0x69,0x74])](_0x4d64d8([0x2e])),[_0x13d6b8,_0x20a704,_0x3f19d1]=_0x4d019b;return _0x56bfb5(_0x13d6b8),await _0x431d3f(_0x13d6b8,_0x20a704,_0x3f19d1),_0x4554fd;}catch(_0x236558){return!0x1;}function _0x56bfb5(_0x56169a){const _0x38f480=_0x60141f(_0x56169a);_0x38f480&&_0x38f480[_0x4d64d8([0x61,0x6c,0x67])]==_0x4d64d8([0x45,0x53,0x32,0x35,0x36])||(_0x4554fd=!0x1);}async function _0x431d3f(_0x3292dd,_0x4f69f0,_0x1d9ed7){const _0xda71c9=window[_0x4d64d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d64d8([0x66,0x72,0x6f,0x6d])](_0x5ebeef(_0x1d9ed7),_0x5b0a72=>_0x5b0a72[_0x4d64d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6562c5=new window[(_0x4d64d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d64d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3292dd+_0x4d64d8([0x2e])+_0x4f69f0),_0x2f6f76=window[_0x4d64d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d64d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f6f76)return;const _0x4bb101=await _0x2f6f76[_0x4d64d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d64d8([0x6a,0x77,0x6b]),_0x2e31ef,{[_0x4d64d8([0x6e,0x61,0x6d,0x65])]:_0x4d64d8([0x45,0x43,0x44,0x53,0x41]),[_0x4d64d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d64d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d64d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f6f76[_0x4d64d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d64d8([0x6e,0x61,0x6d,0x65])]:_0x4d64d8([0x45,0x43,0x44,0x53,0x41]),[_0x4d64d8([0x68,0x61,0x73,0x68])]:{[_0x4d64d8([0x6e,0x61,0x6d,0x65])]:_0x4d64d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bb101,_0xda71c9,_0x6562c5)||(_0x4554fd=!0x1);}}function _0x60141f(_0x2d6ea7){return _0x2d6ea7[_0x4d64d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d64d8([0x65,0x79]))?JSON[_0x4d64d8([0x70,0x61,0x72,0x73,0x65])](_0x5ebeef(_0x2d6ea7)):null;}function _0x5ebeef(_0x204d78){return window[_0x4d64d8([0x61,0x74,0x6f,0x62])](_0x204d78[_0x4d64d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d64d8([0x2b]))[_0x4d64d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d64d8([0x2f])));}function _0x4b3b50(_0x5f0bc4){let _0x1d791b=0x1505;function _0x51379e(_0x191b70){for(let _0x56d7f5=0x0;_0x56d7f5<_0x191b70[_0x4d64d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d7f5++){const _0x5341dc=_0x191b70[_0x4d64d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d7f5);_0x1d791b=(_0x1d791b<<0x5)+_0x1d791b+_0x5341dc,_0x1d791b&=_0x1d791b;}}function _0x825094(_0x2af2ae){Array[_0x4d64d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2af2ae)?_0x2af2ae[_0x4d64d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x825094):_0x2af2ae&&typeof _0x2af2ae==_0x4d64d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d64d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2af2ae)[_0x4d64d8([0x73,0x6f,0x72,0x74])]()[_0x4d64d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be23d,_0x4d3f1e])=>{_0x51379e(_0x2be23d),_0x825094(_0x4d3f1e);}):_0x51379e(window[_0x4d64d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2af2ae));}return _0x825094(_0x5f0bc4),_0x1d791b>>>0x0;}function _0x17e5d2(_0x5e08f8){return _0x5e08f8[_0x4d64d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d64d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d64d8([0x30]));}function _0x4f4145(_0x3a759d){return _0x3a759d[_0x4d64d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d64d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d64d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x12fa49(_0x360dc9){return _0x2364e0[_0x4d64d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d64d8([0x68,0x61,0x73])](_0x360dc9);}function _0x5aaad4(_0x376ad5){return _0x2364e0[_0x4d64d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d64d8([0x67,0x65,0x74])](_0x376ad5);}function _0x21d30f(){}function _0x4d64d8(_0x29dd6a){return _0x29dd6a['map'](_0x49a94e=>String['fromCharCode'](_0x49a94e))['join']('');}_0x298189(await _0x4674f6());}(this);}['createRevision'](_0x476a9d){const _0x152424=this['editor']['plugins']['get']('Users');return new h({'id':_0x476a9d['id'],'name':_0x476a9d['name'],'creator':_0x476a9d['creatorId']?_0x152424['getUser'](_0x476a9d['creatorId']):null,'diffData':_0x476a9d['diffData']||_0x476a9d['data'],'authors':_0x476a9d['authorsIds']['map'](_0x2cea10=>_0x152424['getUser'](_0x2cea10)),'createdAt':new Date(_0x476a9d['createdAt']),'attributes':_0x476a9d['attributes'],'fromVersion':_0x476a9d['fromVersion'],'toVersion':_0x476a9d['toVersion']});}['addRevision'](_0x2e83e5,_0x5200d9=0x0){this['_revisions']['add'](_0x2e83e5,_0x5200d9);}['getRevision'](_0x4bdcc9){return this['_revisions']['get'](_0x4bdcc9);}['getRevisions'](_0x2f8944={'toJSON':!0x1}){const _0x957a34=Array['from'](this['_revisions']);return _0x957a34['reverse'](),_0x2f8944['toJSON']?_0x957a34['map'](_0x421282=>_0x421282['toJSON']()):_0x957a34;}['getIndex'](_0x1eecd5){return this['_revisions']['getIndex'](_0x1eecd5);}['getEarlierVisibleRevision'](_0x33ea19){const [,_0xbefff9]=this['getRevisionsIterator'](_0x33ea19,{'direction':'earlier'});return _0xbefff9;}['getLaterVisibleRevision'](_0x520e09){const [,_0xac64ea]=this['getRevisionsIterator'](_0x520e09,{'direction':'later'});return _0xac64ea;}['getRevisionsInDiff'](_0x4f6d17){const _0x4fd25a=[];for(const _0x10b82a of this['getRevisionsIterator'](_0x4f6d17['newRevisionId']))if(_0x4fd25a['push'](_0x10b82a),_0x10b82a['id']===_0x4f6d17['oldRevisionId'])break;return _0x4fd25a;}*['getRevisionsIterator'](_0x30a0e1,{direction:_0x1af26a='earlier',filter:_0x280169=()=>!0x0}={}){const _0x1a3e48='earlier'===_0x1af26a?0x1:-0x1;let _0x5c7253=this['_revisions']['get'](_0x30a0e1),_0x1a22f6=this['getIndex'](_0x5c7253);for(yield _0x5c7253;_0x5c7253;){if(_0x1a22f6+=_0x1a3e48,_0x5c7253=this['getRevision'](_0x1a22f6),!_0x5c7253)return;_0x280169(_0x5c7253)&&(yield _0x5c7253);}}}function m(_0x3bf26d,_0x33465e,_0xd26615){const t=_0x3bf26d['t'];switch(_0x33465e){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'},_0xd26615);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xd26615);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 E={'c':_0x462066,'a':_0x2d8842,'e':_0x414ab6,'r':_0x3b5238,'u':_0x440e76};class u extends _0x360162{['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[_0x1b41fe,j,_0x51a274];}constructor(_0x4fefcf){super(_0x4fefcf),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1f9b6d=_0x3bf3c3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1f9b6d},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 _0x3732d6=this['repository']['getRevision'](0x0),_0x39afbb=_0x3732d6&&null===_0x3732d6['creator']?_0x3732d6:null;if(this['_continueCurrentRevision']=!!_0x39afbb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4af758=this['_source']['getCurrentRevisionId'](),_0x4a996c=this['repository']['getRevision'](_0x4af758);if(_0x4a996c)this['_startingVersion']=_0x4a996c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xb52fa0=this['_source']['history']['_operations']['find'](_0x4d079a=>!_0x4d079a['_isInit']),_0x151706=_0xb52fa0?_0xb52fa0['baseVersion']:this['_source']['history']['version'];_0x3732d6?(_0x3732d6['toVersion']<_0x151706&&_0x3732d6['_update']({'toVersion':_0x151706}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x39afbb['id'],this['_startingVersion']=_0x39afbb['fromVersion']):(this['_startingVersion']=_0x3732d6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x151706,this['_continueCurrentRevision']=!0x1);}}else _0x39afbb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x39afbb['toVersion'],this['editor']['model']['document']['history']['version']),_0x39afbb['fromVersion']===_0x39afbb['toVersion']?(0x0!==_0x39afbb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x39afbb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x39afbb['id'],this['_startingVersion']=_0x39afbb['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',_0x4ba753=>!_0x4ba753),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6d3bf9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12c770;for(const _0x4f5482 in _0x6d3bf9){const _0x367886=_0x4f5482,_0x4db263=_0x6d3bf9[_0x367886];if('revisionHistoryLicenseKeyValid'==_0x4db263||'revisionHistoryLicenseKeyInvalid'==_0x4db263||'revisionHistoryLicenseKeyExpired'==_0x4db263||'revisionHistoryLicenseKeyDomainLimit'==_0x4db263||'revisionHistoryLicenseKeyNotAllowed'==_0x4db263||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4db263||'revisionHistoryLicenseKeyTrialLimit'==_0x4db263||'revisionHistoryLicenseKeyUsageLimit'==_0x4db263){delete _0x6d3bf9[_0x367886],_0x12c770=_0x4db263,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x12c770&&_0x6d3bf9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x12c770&&_0x6d3bf9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x12c770&&_0x6d3bf9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x12c770&&_0x6d3bf9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x12c770&&_0x6d3bf9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x12c770&&_0x6d3bf9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x12c770&&_0x6d3bf9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x43644c=this['repository']['getRevision'](0x0),_0x2b5920=await this['getRevisionDocumentData'](_0x43644c),_0x26d5a7=await this['getRevisionRootsAttributes'](_0x43644c);this['_replaceEditorDataWithRevisionData'](_0x2b5920,_0x26d5a7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2f349c){this['_source']=_0x2f349c;}async['update'](){const _0x1023aa=await this['_source']['getLatestVersion']();if(_0x1023aa>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5064fb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1023aa});_0x5064fb['authors']=_0x5064fb['authorsIds']['map'](_0x258d29=>this['editor']['plugins']['get']('Users')['getUser'](_0x258d29)),this['currentRevision']['_update'](_0x5064fb);}}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'](_0x2c6078={},_0x4c55b1=null){const _0x1e1d3c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c55b1>this['currentRevision']['toVersion']&&(_0x4c55b1=null),null===_0x4c55b1&&(_0x4c55b1=await this['_source']['getLatestVersion']());const _0xe9f514=this['_getFromVersion'](_0x4c55b1),_0x4fb474=this['buildRevisionData']({'from':_0xe9f514,'to':_0x4c55b1});if(this['currentRevision']['toVersion']<_0x4c55b1){const _0x515a90=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c55b1,'to':_0x4c55b1});_0x515a90['authors']=[],_0x515a90['authorsIds']=[],_0x515a90['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x515a90,!0x0),delete _0x515a90['authors'],_0x1e1d3c['push'](_0x515a90);}_0x2c6078['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c6078['name']=_0x2c6078['name']||null,_0x2c6078['id']=_0x2c6078['id']||_0x3bf3c3(),_0x2c6078={..._0x2c6078,..._0x4fb474};const _0x2370db=this['addRevisionData'](_0x2c6078);_0x1e1d3c['push'](_0x2c6078);const _0x3ef7af=this['repository']['getIndex'](_0x2370db);if(0x0!==_0x3ef7af){const _0x54f426=this['repository']['getRevision'](_0x3ef7af-0x1);if(_0x54f426['fromVersion']!==_0x4c55b1){const _0xcb2278=this['_revisionDataBuilder']['getData'](_0x4c55b1,_0x54f426['toVersion']),_0x225148={'id':_0x54f426['id'],'diffData':_0xcb2278['diffData'],'authorsIds':_0xcb2278['authorsIds'],'authors':_0xcb2278['authorsIds']['map'](_0x3e6cb8=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e6cb8)),'fromVersion':_0x4c55b1};_0x54f426===this['currentRevision']&&(_0x225148['createdAt']=new Date(_0x2c6078['createdAt']['getTime']()+0xa)),_0x54f426['_update'](_0x225148,!0x0),delete _0x225148['authors'],_0x1e1d3c['push'](_0x225148);}}if(this['adapter']){for(const _0x216139 of _0x1e1d3c)this['_bufferUpdate'](_0x216139['id'],_0x216139,!0x0);this['sendBufferedUpdates']();}return _0x2370db;}['addRevisionData'](_0x375446){const _0x2346cc=this['repository']['createRevision'](_0x375446);return this['adapter']&&_0x2346cc['on']('_update',(_0x3ee662,_0x450703,_0x311eeb)=>{_0x311eeb||(this['_bufferUpdate'](_0x450703['id'],_0x450703,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2346cc,this['_findInsertionIndex'](_0x2346cc)),_0x2346cc;}async['getRevisionDocumentData'](_0x5af420){await this['_loadRevisionData'](_0x5af420);const _0x4cbd62={};for(const _0x33430f in _0x5af420['diffData']){if(_0x5af420['diffData'][_0x33430f]['attachChange']&&!_0x5af420['diffData'][_0x33430f]['attachChange']['isAttached'])continue;const _0x2022ca=this['_removeRevisionMarkers'](JSON['parse'](_0x5af420['diffData'][_0x33430f]['insertions'])),_0x487210=this['editor']['editing']['view']['document'],_0x30e409=new _0x2bfcd7(_0x487210,_0x2022ca['map'](_0x262bca=>P(_0x262bca,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4cbd62[_0x33430f]=this['editor']['data']['processor']['toData'](_0x30e409),this['editor']['data']['processor']['useFillerType']('default');}return _0x4cbd62;}async['getRevisionRootsAttributes'](_0x1ba4aa){await this['_loadRevisionData'](_0x1ba4aa);const _0x535a0b={};for(const _0x245a22 in _0x1ba4aa['diffData'])_0x1ba4aa['diffData'][_0x245a22]['attachChange']&&!_0x1ba4aa['diffData'][_0x245a22]['attachChange']['isAttached']||(_0x535a0b[_0x245a22]=_0x1ba4aa['diffData'][_0x245a22]['attributesAfter']||{});return _0x535a0b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x216b65=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xf64475=0x0;_0xf64475<_0x216b65['length'];_0xf64475++){const _0x29473d=_0x216b65[_0xf64475];let _0xd1671f=!0x1;for(const _0x1b82e7 of Object['keys'](_0x29473d))void 0x0===_0x29473d[_0x1b82e7]?delete _0x29473d[_0x1b82e7]:'id'!==_0x1b82e7&&(_0xd1671f=!0x0);_0xd1671f||(_0x216b65[_0xf64475]=null);}if(_0x216b65=_0x216b65['filter'](_0x5ed358=>null!==_0x5ed358),!_0x216b65['length'])return;for(let _0x2fad60=0x0;_0x2fad60<_0x216b65['length'];_0x2fad60++){const _0x2f9a0c=_0x216b65[_0x2fad60];void 0x0!==_0x2f9a0c['fromVersion']&&void 0x0===_0x2f9a0c['toVersion']&&(_0x2f9a0c['toVersion']=this['repository']['getRevision'](_0x2f9a0c['id'])['toVersion']),void 0x0!==_0x2f9a0c['toVersion']&&void 0x0===_0x2f9a0c['fromVersion']&&(_0x2f9a0c['fromVersion']=this['repository']['getRevision'](_0x2f9a0c['id'])['fromVersion']);}const _0x27da3a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x216b65,_0x27da3a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2013b8=>{if(_0x2013b8){for(const _0x274ff8 of _0x2013b8)this['setRevisionData']({'id':_0x274ff8['id'],'createdAt':_0x274ff8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4fff4b,_0x70e2bb){let _0x2d9562=this['editor']['config']['get']('initialData'),_0x2f0c6b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2d9562){_0x2d9562={};for(const _0x449664 of this['editor']['model']['document']['getRootNames']())_0x2d9562[_0x449664]='';}if('string'==typeof _0x2d9562&&(_0x2d9562={'main':_0x2d9562}),void 0x0===_0x2f0c6b){_0x2f0c6b={};for(const _0x3cc2e3 of this['editor']['model']['document']['getRootNames']())_0x2f0c6b[_0x3cc2e3]={};}let _0x4ea0ef=!0x1;const _0xd28089=Object['keys'](_0x2d9562),_0x33ee63=Object['keys'](_0x4fff4b);for(const _0x1c26b3 of _0xd28089){if(_0x2d9562[_0x1c26b3]!==_0x4fff4b[_0x1c26b3]&&''!==_0x2d9562[_0x1c26b3]['trim']()){_0x4ea0ef=!0x0;break;}if(!_0x494fee(_0x2f0c6b[_0x1c26b3],_0x70e2bb[_0x1c26b3])&&Object['keys'](_0x2f0c6b[_0x1c26b3])['length']>0x0){_0x4ea0ef=!0x0;break;}}_0x4ea0ef||(_0x4ea0ef=_0x33ee63['some'](_0x37b204=>!this['editor']['model']['document']['getRoot'](_0x37b204))),_0x4ea0ef&&_0x3d231b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2d9562,'editorRootsAttributes':_0x2f0c6b,'revisionData':_0x4fff4b,'revisionRootsAttributes':_0x70e2bb}),this['editor']['config']['set']('initialData',_0x4fff4b),this['editor']['config']['set']('rootsAttributes',_0x70e2bb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x8bae72=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x8bae72['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x35b276){const _0x429fab=this['repository']['getRevisions']();_0x429fab['reverse']();let _0x4ee652=0x0;for(;_0x4ee652<_0x429fab['length'];){const _0x5dd924=_0x429fab[_0x4ee652];if(_0x5dd924===this['currentRevision']){_0x4ee652++;continue;}if(_0x5dd924['id']===this['_initialRevisionId'])break;const _0x135924=_0x35b276['toVersion']-_0x5dd924['toVersion']||_0x35b276['fromVersion']-_0x5dd924['fromVersion'];if(_0x135924>0x0)break;if(_0x135924<0x0)_0x4ee652++;else{if(!_0x35b276['creator']&&_0x5dd924['creator'])break;if(_0x5dd924['creator']||!_0x35b276['creator']){if(_0x35b276['createdAt']>_0x5dd924['createdAt'])break;_0x4ee652++;}else _0x4ee652++;}}return _0x4ee652;}['setRevisionData'](_0x1ad2b4){const _0xc3bbfa=this['repository']['getRevision'](_0x1ad2b4['id']);if(_0x1ad2b4['createdAt']&&(_0x1ad2b4['createdAt']=new Date(_0x1ad2b4['createdAt'])),_0x1ad2b4['authorsIds']){const _0x1d9f46=this['editor']['plugins']['get']('Users');_0x1ad2b4['authors']=_0x1ad2b4['authorsIds']['map'](_0x17cebb=>_0x1d9f46['getUser'](_0x17cebb));}_0xc3bbfa['_update'](_0x1ad2b4,!0x0);}['buildRevisionData']({revision:_0x312c12=null,from:_0x30b1c9=null,to:_0x3a6735=null}){_0x30b1c9=null!==_0x30b1c9?_0x30b1c9:_0x312c12['fromVersion'],_0x3a6735=null!==_0x3a6735?_0x3a6735:_0x312c12['toVersion'];const _0x8dd6d1=this['_revisionDataBuilder']['getData'](_0x30b1c9,_0x3a6735),_0x5dcbba={'diffData':_0x8dd6d1['diffData'],'authorsIds':_0x8dd6d1['authorsIds'],'fromVersion':_0x30b1c9,'toVersion':_0x3a6735};if(!_0x312c12||_0x3a6735!==_0x312c12['toVersion']){const _0x5a951f=_0x3a6735-0x1,_0x539c3d=this['_source']['history']['getOperation'](_0x5a951f);_0x5dcbba['createdAt']=_0x539c3d&&_0x539c3d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x30b1c9===this['_loadedStateData']['fromVersion']){for(const _0x2a4bea of this['_loadedStateData']['authors'])_0x5dcbba['authorsIds']['includes'](_0x2a4bea['id'])||_0x5dcbba['authorsIds']['push'](_0x2a4bea['id']);}return _0x5dcbba;}['_loadRevisionData'](_0x321381){if(!_0x321381||_0x321381['diffData'])return Promise['resolve']();{const _0x28ba78=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28ba78,'revisionId':_0x321381['id']})['then'](_0x5583be=>{_0x321381['diffData']=_0x5583be['diffData'];});}}['_bufferUpdate'](_0x5ecef8,_0x4d64b1,_0x346af4){if(this['_bufferedUpdates']['has'](_0x5ecef8)){const _0x282ad9=this['_bufferedUpdates']['get'](_0x5ecef8);_0x4d64b1=_0x346af4?{..._0x282ad9,..._0x4d64b1}:{..._0x4d64b1,..._0x282ad9};}this['_bufferedUpdates']['set'](_0x5ecef8,_0x4d64b1);}['_getFromVersion'](_0xc59689){const _0x36057e=this['repository']['getRevisions']();_0x36057e['reverse'](),_0x36057e['shift']();const _0x5c2110=_0x36057e['find'](_0x14c365=>_0x14c365['toVersion']<=_0xc59689)['toVersion'];return _0x5c2110<this['_startingVersion']?this['_startingVersion']:_0x5c2110;}['_createInitialRevision'](_0x44aa3d){const _0xc33011=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xc33011)this['_initialRevisionId']=_0xc33011['id'];else{const _0x2817d3=!this['editor']['model']['document']['roots']['find'](_0xd84c36=>this['editor']['model']['hasContent'](_0xd84c36)),_0x1c067a=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d8673=m(this['editor']['locale'],_0x2817d3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x44aa3d,'to':_0x44aa3d,'id':this['_initialRevisionId'],'name':_0x2d8673,'creatorId':_0x1c067a});}}['_createCurrentRevision'](_0x27216d){const _0xc96daf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xc96daf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27216d,'to':_0x27216d,'id':_0xc96daf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2236f5,from:_0x32efe6,to:_0x2daeda,creatorId:_0x2cc065,id:_0x489f1c}){const _0x20ae84=this['buildRevisionData']({'from':_0x32efe6,'to':_0x2daeda});_0x20ae84['name']=_0x2236f5,_0x20ae84['creatorId']=_0x2cc065,_0x20ae84['id']=_0x489f1c;const _0x5c6b38=this['addRevisionData'](_0x20ae84);return this['adapter']&&this['_bufferUpdate'](_0x20ae84['id'],_0x20ae84,!0x0),_0x5c6b38;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x599165){return(_0x599165=_0x599165['filter'](_0x105408=>!_0x105408['name']||'revision-start'!==_0x105408['name']&&'revision-end'!==_0x105408['name']))['forEach'](_0x3ffe34=>{'string'!=typeof _0x3ffe34&&(_0x3ffe34['children']=this['_removeRevisionMarkers'](_0x3ffe34['children']),_0x3ffe34['attributes']=_0x3ffe34['attributes']['filter'](_0x4ccde8=>!_0x4ccde8[0x0]['startsWith']('data-revision-')));}),_0x599165;}}function P(_0xa7ccf,_0xbf0204){const _0x5733cc=_0xbf0204['editing']['view']['document'];if('string'==typeof _0xa7ccf)return new _0x55faa7(_0x5733cc,_0xa7ccf);{const _0x1b4c00=_0xa7ccf['children']['map'](_0x37a087=>P(_0x37a087,_0xbf0204));return new(E[_0xa7ccf['type']]||_0x50bcf3)(_0x5733cc,_0xa7ccf['name'],_0xa7ccf['attributes'],_0x1b4c00);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2c36e3){this['editor']=_0x2c36e3,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'](_0x27de22){this['source']=_0x27de22;const _0x5037a4=new Map(),_0x64e600=new Map(),_0x1a5845=this['editor']['model']['document']['roots']['map'](_0x3e4a2f=>_0x3e4a2f['rootName']);for(const _0x13f26b of _0x1a5845){const _0xad1ec5=this['editor']['model']['document']['getRoot'](_0x13f26b),_0x593626=T(_0xad1ec5);_0x5037a4['set'](_0x13f26b,_0x593626),_0x64e600['set'](_0x13f26b,Object['fromEntries'](_0xad1ec5['getAttributes']()));}const _0x4ef37f=Array['from'](this['editor']['model']['markers'])['map'](_0x38224d=>[_0x38224d['name'],_0x38224d['getRange']()]),_0x1dc37d=this['source']['version'];this['_saveMetaData'](_0x1dc37d,_0x5037a4,_0x4ef37f,_0x64e600),this['_startingRevisionId']=this['_revisionId'];const _0x4f7aca=new Map(),_0x35a052=new Map();for(const _0x25abae of _0x1a5845){const _0x18ac3b=F(_0x25abae);_0x4f7aca['set'](_0x25abae,_0x18ac3b),_0x35a052['set'](_0x25abae,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4f7aca,[],_0x35a052);}['getData'](_0x1775fa,_0x91555a){if(this['_lastFrom']===_0x1775fa&&this['_lastTo']<=_0x91555a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x91555a,!0x0);else{if(!this['_savedMetaData']['has'](_0x1775fa)){const _0x41e742=this['_getPreviousFrom'](_0x1775fa);this['_calculateMetaData'](_0x41e742,_0x1775fa,!0x1);}this['_calculateMetaData'](_0x1775fa,_0x91555a,!0x0);}return this['_lastFrom']=_0x1775fa,this['_lastTo']=_0x91555a,this['_getState']();}['loadState'](_0x12b381){this['_reset'](),this['_lastFrom']=_0x12b381['fromVersion'],this['_lastTo']=_0x12b381['toVersion'];for(const _0x21c7ca in _0x12b381['diffData']){const _0x43a79f=_0x12b381['diffData'][_0x21c7ca]['attachChange'],_0x59b930=_0x52c51f(_0x12b381['diffData'][_0x21c7ca]['attributesBefore'])||{},_0x45b6c6=this['_makeModelFromViewString'](_0x12b381['diffData'][_0x21c7ca]['deletions']);_0x45b6c6['rootName']=_0x21c7ca,_0x45b6c6['_isAttached']=!_0x43a79f||!_0x43a79f['isAttached'],_0x45b6c6['isAttached']=()=>_0x45b6c6['_isAttached'],this['_baseRoots']['set'](_0x21c7ca,_0x45b6c6),this['_baseRootsAttributes']['set'](_0x21c7ca,_0x59b930),_0x43a79f&&this['_touchedRoots']['set'](_0x21c7ca,_0x43a79f);const _0x2b298e=this['_makeIdsRoot'](_0x45b6c6);this['_baseIdsRoots']['set'](_0x21c7ca,_0x2b298e);for(const [_0x88d258,_0x303e25]of _0x45b6c6['markers']){if(!_0x88d258['startsWith']('revision:'))continue;const _0x454694=_0x88d258['split'](':')[0x2];for(const _0x382198 of _0x303e25['getWalker']({'singleCharacters':!0x0})){const _0x361559=this['_getVidAttributeName'](_0x382198),_0x5c47e5='elementEnd'==_0x382198['type']?_0x382198['previousPosition']['path']['slice'](0x0,-0x1):_0x382198['previousPosition']['path'],_0x1ca269=_0x2b298e['getNodeByPath'](_0x5c47e5)['getAttribute'](_0x361559);this['_touched']['set'](_0x1ca269,{'userId':_0x454694});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4b8254=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x98bebd=>!this['_touched']['has'](_0x98bebd));let _0x2514aa=0x0;const _0x268bd6=new Map();for(const _0x5c5564 in _0x12b381['diffData']){const _0x5c2c3b=_0x12b381['diffData'][_0x5c5564]['attachChange'],_0x4b4c81=_0x52c51f(_0x12b381['diffData'][_0x5c5564]['attributesAfter'])||{},_0x3f4257=this['_makeModelFromViewString'](_0x12b381['diffData'][_0x5c5564]['insertions']);_0x3f4257['rootName']=_0x5c5564,_0x3f4257['_isAttached']=!_0x5c2c3b||_0x5c2c3b['isAttached'],_0x3f4257['isAttached']=()=>_0x3f4257['_isAttached'],this['_diffRoots']['set'](_0x5c5564,_0x3f4257),this['_diffRootsAttributes']['set'](_0x5c5564,_0x4b4c81);const _0x46f921=this['_makeIdsRoot'](_0x3f4257,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5c5564,_0x46f921),_0x268bd6['set'](_0x5c5564,_0x3f4257['isAttached']()?_0x4b4c81:{});for(const [_0x592330,_0x236be5]of _0x3f4257['markers']){if(!_0x592330['startsWith']('revision:'))continue;const _0x391c67=_0x592330['split'](':')[0x2];for(const _0x113c3c of _0x236be5['getWalker']({'singleCharacters':!0x0})){const _0x36b243=this['_getVidAttributeName'](_0x113c3c),_0x5a180c=this['_revisionId']++,_0x53dcf6='elementEnd'==_0x113c3c['type']?_0x113c3c['previousPosition']['path']['slice'](0x0,-0x1):_0x113c3c['previousPosition']['path'];_0x46f921['getNodeByPath'](_0x53dcf6)['_setAttribute'](_0x36b243,_0x5a180c),this['_touched']['set'](_0x5a180c,{'userId':_0x391c67});}}for(const _0x291def of this['editor']['model']['createRangeIn'](_0x3f4257)['getWalker']({'singleCharacters':!0x0})){const _0x77f30e=this['_getVidAttributeName'](_0x291def),_0x1b134d='elementEnd'==_0x291def['type']?_0x291def['previousPosition']['path']['slice'](0x0,-0x1):_0x291def['previousPosition']['path'],_0xbe5bd7=_0x46f921['getNodeByPath'](_0x1b134d);_0xbe5bd7['getAttribute'](_0x77f30e)>0x0||_0xbe5bd7['_setAttribute'](_0x77f30e,_0x4b8254[_0x2514aa++]);}for(const [_0x16845c,_0x20f123]of _0x3f4257['markers'])_0x16845c['startsWith']('revision:')||this['_markers']['set'](_0x16845c,_0x20f123);}const _0x3fa4c6=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3fa4c6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3fa4c6,0x1));const _0x396cb8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x396cb8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x396cb8,0x1));const _0x47395e=Array['from'](this['_diffRoots'])['map'](([_0x1923fb,_0x210fed])=>[_0x1923fb,T(_0x210fed)]);this['_saveMetaData'](this['_lastTo'],_0x47395e,this['_markers'],_0x268bd6);}['_makeModelFromViewString'](_0xf4ab71){const _0x33df96=JSON['parse'](_0xf4ab71),_0x56f7f2=this['editor']['editing']['view']['document'],_0x373b92=new _0x2bfcd7(_0x56f7f2,_0x33df96['map'](_0x1f640d=>P(_0x1f640d,this['editor'])));return this['editor']['data']['toModel'](_0x373b92);}['_saveMetaData'](_0xf4fbb9,_0x2e9680,_0x12f2cb,_0x13f9c8){const _0x29109f=new Map(_0x2e9680),_0x438da6=new Map(_0x52c51f(_0x13f9c8)),_0x3ee044=new Map();for(const [_0x2d75ed,_0x37414c]of _0x12f2cb)_0x3ee044['set'](_0x2d75ed,{'start':_0x37414c['start']['clone'](),'end':_0x37414c['end']['clone'](),'rootName':_0x37414c['root']['rootName']});this['_savedMetaData']['set'](_0xf4fbb9,{'roots':_0x29109f,'markers':_0x3ee044,'rootsAttributes':_0x438da6});}['_removeMetaData'](_0x232510){this['_savedMetaData']['delete'](_0x232510);}['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'](_0x9e0702,_0x53365=null){let _0x9001c1=null;_0x9e0702['is']('documentFragment')||(_0x9001c1=new ut(_0x9e0702['name'],{'vid_start':null===_0x53365?this['_revisionId']++:_0x53365++}));const _0xaf5a23=[];for(const _0x224e73 of _0x9e0702['getChildren']())if(_0x224e73['is']('element')){_0xaf5a23['push'](this['_makeIdsRoot'](_0x224e73,_0x53365));const _0x78968c=_0xaf5a23[_0xaf5a23['length']-0x1];null!==_0x53365&&(_0x53365=_0x78968c['is']('element','$text')?_0x78968c['getAttribute']('vid')+0x1:_0x78968c['getAttribute']('vid_end')+0x1);}else{for(let _0x2bdf6f=0x0;_0x2bdf6f<_0x224e73['offsetSize'];_0x2bdf6f++)_0xaf5a23['push'](new ut('$text',{'vid':null===_0x53365?this['_revisionId']++:_0x53365++}));}if(_0x9e0702['is']('documentFragment')){const _0x2a366a=F(_0x9e0702['rootName']);return _0x2a366a['_insertChild'](0x0,_0xaf5a23),_0x2a366a;}return _0x9001c1['_setAttribute']('vid_end',null===_0x53365?this['_revisionId']++:_0x53365++),_0x9001c1['_insertChild'](0x0,_0xaf5a23),_0x9001c1;}['_calculateMetaData'](_0x1aa4c0,_0xb8f01f,_0x36358d){this['_reset']();const {roots:_0xe73b48,markers:_0x3643ae,rootsAttributes:_0x4d30f7}=this['_savedMetaData']['get'](_0x1aa4c0);this['_baseRoots']=new Map(_0xe73b48),this['_baseRootsAttributes']=new Map(_0x52c51f(_0x4d30f7));for(const [_0xda15b1,_0x3a3877]of this['_baseRoots'])if('$graveyard'!==_0xda15b1&&(this['_diffRoots']['set'](_0xda15b1,T(_0x3a3877)),this['_diffRootsAttributes']=new Map(_0x52c51f(_0x4d30f7)),_0x36358d)){const _0x38cc9e=this['_revisionId'];this['_idsRoots']['set'](_0xda15b1,this['_makeIdsRoot'](_0x3a3877)),this['_baseIdsRoots']['set'](_0xda15b1,this['_makeIdsRoot'](_0x3a3877,_0x38cc9e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x36358d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35b925,_0x3fd326]of _0x3643ae){const _0x24b2f3=this['_baseRoots']['get'](_0x3fd326['rootName']),_0x3d8fff=this['_diffRoots']['get'](_0x3fd326['rootName']),_0xe1c92=new ft(this['_fixPosition'](_0x3fd326['start'],_0x24b2f3),this['_fixPosition'](_0x3fd326['end'],_0x24b2f3)),_0x4072de=this['_fixRange'](_0xe1c92,_0x3d8fff);_0x24b2f3['markers']['set'](_0x35b925,_0xe1c92),this['_markers']['set'](_0x35b925,_0x4072de);}this['_applyOperations'](_0x1aa4c0,_0xb8f01f,_0x36358d);}['_applyOperations'](_0x1815f8,_0xa6e1ce,_0x2a42c3){for(const _0xb05f90 of this['source']['getOperations'](_0x1815f8,_0xa6e1ce))this['_handleOperation'](_0xb05f90,_0x2a42c3);for(const _0x522d42 of this['_diffRoots']['values']())_0x522d42['markers']['clear']();for(const [_0x6de6c9,_0x118ee8]of this['_markers']){this['_diffRoots']['get'](_0x118ee8['root']['rootName'])['markers']['set'](_0x6de6c9,_0x118ee8['clone']());}const _0x43a8bb=new Map(),_0x2fe4aa=new Map();for(const [_0x536664,_0x1d21a8]of this['_diffRoots'])_0x43a8bb['set'](_0x536664,T(_0x1d21a8)),_0x2fe4aa['set'](_0x536664,this['_diffRootsAttributes']['get'](_0x536664));this['_saveMetaData'](_0xa6e1ce,_0x43a8bb,this['_markers'],_0x2fe4aa);}['_getPreviousFrom'](_0x30c7ec){const _0x449e4c=Array['from'](this['_savedMetaData']['keys']());_0x449e4c['sort']((_0x71ef99,_0x5c59c9)=>_0x71ef99-_0x5c59c9),_0x449e4c['reverse']();for(const _0x337cf2 of _0x449e4c)if(_0x337cf2<_0x30c7ec)return _0x337cf2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x410f13,_0x2aa93c){const _0x1635ab=Array['from'](_0x2aa93c['markers'])['map'](([_0x2fc686,_0xfebcc4])=>[_0x2fc686,this['_fixRange'](_0xfebcc4,_0x410f13)]);_0x410f13['markers']=new Map(_0x1635ab);}['_transformMarkers'](_0x28a962){for(const _0x52d254 of this['_markers']['values']()){const _0xa9471b=_0x52d254['getTransformedByOperation'](_0x28a962),_0x5d6252=ft['_createFromRanges'](_0xa9471b);_0x52d254['start']=_0x5d6252['start'],_0x52d254['end']=_0x5d6252['end'];}}['_handleOperation'](_0x440672,_0x4e4d8c){if('addRoot'!=_0x440672['type']&&'detachRoot'!=_0x440672['type']){if('insert'==_0x440672['type']){const _0x25fe4b=_0x440672['position']['root']['rootName'];this['_diffRoots']['has'](_0x25fe4b)||(this['_diffRoots']['set'](_0x25fe4b,F(_0x25fe4b,!0x0)),this['_diffRootsAttributes']['set'](_0x25fe4b,{}),_0x4e4d8c&&this['_idsRoots']['set'](_0x25fe4b,F(_0x25fe4b,!0x0)));}else{if('addRootAttribute'==_0x440672['type']||'removeRootAttribute'==_0x440672['type']||'changeRootAttribute'==_0x440672['type'])return void this['_handleRootAttributeOperation'](_0x440672);'marker'==_0x440672['type']&&this['_handleMarkerOperation'](_0x440672);}if('marker'!==_0x440672['type']){const _0x45972a=this['_cloneOperation'](_0x440672,this['_diffRoots']);_0x45972a['_execute'](),this['_transformMarkers'](_0x45972a);}if(_0x4e4d8c)switch(_0x440672['type']){case'insert':this['_handleInsertOperation'](_0x440672);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x440672);break;case'merge':this['_handleMergeOperation'](_0x440672);break;case'split':this['_handleSplitOperation'](_0x440672);}}else this['_handleRootOperation'](_0x440672,_0x4e4d8c);}['_cloneOperation'](_0x544cee,_0xaa0217){const _0x428c57=_0x544cee['clone']();return _0x428c57['_authorId']=_0x544cee['_authorId'],this['_fixOperation'](_0x428c57,_0xaa0217),_0x428c57;}['_getBaseVids'](_0x1491c5){return _0x1491c5['map'](_0x3fc6d6=>{const _0x5865ef=this['_getVidAttributeName'](_0x3fc6d6);return Number(_0x3fc6d6['item']['getAttribute'](_0x5865ef));});}['_generateTape'](_0x512125,_0x4f9598){if(_0x512125['is']('element','$text'))_0x4f9598['push']({'item':_0x512125,'type':'text'});else{_0x512125['is']('element')&&_0x4f9598['push']({'item':_0x512125,'type':'elementStart'});for(const _0x41aa99 of _0x512125['getChildren']())this['_generateTape'](_0x41aa99,_0x4f9598);_0x512125['is']('element')&&_0x4f9598['push']({'item':_0x512125,'type':'elementEnd'});}return _0x4f9598;}['_getState'](){const _0x42d9b5=new Map(this['_touched']),_0x19a503=new Map(_0x42d9b5),_0x3c42df=new Map(),_0x15d4f0={'insertions':{},'deletions':{}},_0x2a485b={'insertions':{},'deletions':{}},_0x2824cf=new Map(),_0x1e9b4b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1e9b4b['delete']('$graveyard');for(const _0xed98d1 of _0x1e9b4b){const _0x2f6729=this['_diffRoots']['get'](_0xed98d1)||F(_0xed98d1,!0x1),_0xa99d0=this['_baseRoots']['get'](_0xed98d1)||F(_0xed98d1,!0x1);_0x2f6729['isAttached']()||_0xa99d0['isAttached']()?(_0x15d4f0['insertions'][_0xed98d1]=T(_0x2f6729),_0x15d4f0['deletions'][_0xed98d1]=T(_0xa99d0),this['_copyMarkers'](_0x15d4f0['deletions'][_0xed98d1],_0xa99d0),this['_copyMarkers'](_0x15d4f0['insertions'][_0xed98d1],_0x2f6729),_0x2a485b['insertions'][_0xed98d1]=this['_generateTape'](this['_idsRoots']['get'](_0xed98d1),[]),_0x2a485b['deletions'][_0xed98d1]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xed98d1)||F(_0xed98d1,!0x1),[])):_0x1e9b4b['delete'](_0xed98d1);}for(const _0x3b5d43 of _0x1e9b4b){const _0x44af60=_0x2a485b['insertions'][_0x3b5d43];for(const _0x54f0cf of _0x44af60){const _0x38d223=this['_getVidAttributeName'](_0x54f0cf),_0x4a6f89=_0x54f0cf['item']['getAttribute'](_0x38d223);_0x19a503['delete'](_0x4a6f89),_0x4a6f89>=this['_startingRevisionId']&&_0x3c42df['set'](_0x4a6f89,_0x42d9b5['get'](_0x4a6f89));}}for(const _0x4ff9e9 of _0x1e9b4b){const _0x2efa4a=_0x2a485b['insertions'][_0x4ff9e9],_0x5933e3=this['_getBaseVids'](_0x2a485b['deletions'][_0x4ff9e9]);let _0x102c58=0x0;for(const _0x268aab of _0x2efa4a){const _0x7ad3e=this['_getVidAttributeName'](_0x268aab),_0x3a9567=_0x268aab['item']['getAttribute'](_0x7ad3e);if(!_0x3c42df['has'](_0x3a9567)&&!_0x2824cf['has'](_0x3a9567)){if(_0x19a503['has'](_0x3a9567))_0x102c58++;else{if(_0x3a9567!=_0x5933e3[_0x102c58]){const _0x39512d=_0x42d9b5['get'](_0x3a9567)||_0x42d9b5['get'](_0x5933e3[_0x102c58]);for(;_0x3a9567!=_0x5933e3[_0x102c58];)_0x19a503['has'](_0x5933e3[_0x102c58])||(_0x2824cf['set'](_0x5933e3[_0x102c58],_0x39512d),_0x42d9b5['set'](_0x5933e3[_0x102c58],_0x39512d)),_0x102c58++;}_0x102c58++;}}}}for(const _0x68fdc2 of _0x1e9b4b){const _0x26c60f=_0x2a485b['insertions'][_0x68fdc2];for(const _0x41a991 of _0x26c60f){const _0x1b1fbb=this['_getVidAttributeName'](_0x41a991),_0x15b5a3=_0x41a991['item']['getAttribute'](_0x1b1fbb);if(_0x2824cf['has'](_0x15b5a3)){const _0x202f31=_0x2824cf['get'](_0x15b5a3);_0x19a503['has'](_0x15b5a3)||_0x19a503['set'](_0x15b5a3,{..._0x202f31}),_0x3c42df['set'](_0x15b5a3,{..._0x202f31});}}}for(const _0x5a4450 of _0x19a503['keys']())_0x5a4450>=this['_startingRevisionId']&&_0x19a503['delete'](_0x5a4450);const _0x1ef6f6=new Map();for(const _0x4366d2 of _0x1e9b4b){let _0x51ee68=_0x2a485b['insertions'][_0x4366d2];for(const _0x132803 of _0x51ee68)if(_0x132803['item']['is']('element','tableCell')){const _0x194e5a=this['_getVidAttributeName'](_0x132803),_0x3e192a=_0x132803['item']['getAttribute'](_0x194e5a);if(_0x3c42df['has'](_0x3e192a)){const _0x4d082c=_0x132803['item']['parent']['parent']['getAttribute']('vid_start'),_0x4a9441=_0x1ef6f6['get'](_0x4d082c)||new Set();_0x4a9441['add'](_0x3c42df['get'](_0x3e192a)['userId']),_0x1ef6f6['set'](_0x4d082c,_0x4a9441);}}_0x51ee68=_0x2a485b['deletions'][_0x4366d2];for(const _0x41e513 of _0x51ee68)if(_0x41e513['item']['is']('element','tableCell')){const _0x204fc9=this['_getVidAttributeName'](_0x41e513),_0x39ae20=_0x41e513['item']['getAttribute'](_0x204fc9);if(_0x19a503['has'](_0x39ae20)){const _0x49140c=_0x41e513['item']['parent']['parent']['getAttribute']('vid_start'),_0x5cde92=_0x1ef6f6['get'](_0x49140c)||new Set();_0x5cde92['add'](_0x19a503['get'](_0x39ae20)['userId']),_0x1ef6f6['set'](_0x49140c,_0x5cde92);}}for(const _0x1a231c of _0x1ef6f6['keys']())(_0x3c42df['has'](_0x1a231c)||_0x19a503['has'](_0x1a231c))&&_0x1ef6f6['delete'](_0x1a231c);}for(const _0x1f1a3c of _0x1e9b4b){const _0x1b5b8f=_0x2a485b['insertions'][_0x1f1a3c];let _0x3e6364=null,_0x17f97c=null;for(const _0x26024e of _0x1b5b8f){const _0x2d2b73=this['_getVidAttributeName'](_0x26024e),_0x17a4e7=_0x26024e['item']['getAttribute'](_0x2d2b73),_0x1ca87c=_0x1ef6f6['get'](_0x17a4e7);_0x1ca87c&&'elementStart'==_0x26024e['type']&&(_0x3e6364=Array['from'](_0x1ca87c)[0x0],_0x17f97c=_0x26024e['item']['getAttribute']('vid_end')),_0x3e6364&&(_0x19a503['set'](_0x17a4e7,{'userId':_0x3e6364}),_0x3c42df['set'](_0x17a4e7,{'userId':_0x3e6364})),_0x17a4e7==_0x17f97c&&(_0x3e6364=null,_0x17f97c=null);}}const _0xfbb80f={},_0x216d3a=new Set();for(const _0x38cedd of _0x1e9b4b){const _0x1156da=_0x15d4f0['deletions'][_0x38cedd],_0x2b8930=_0x15d4f0['insertions'][_0x38cedd];for(const {userId:_0x172520}of this['_touchedMarkers']['values']())null!==_0x172520&&_0x216d3a['add'](_0x172520);for(const {userId:_0x56a024}of this['_touchedRoots']['values']())null!==_0x56a024&&_0x216d3a['add'](_0x56a024);this['_markChanges'](_0x2b8930,_0x2a485b['insertions'][_0x38cedd],_0x3c42df,'insertion',_0x216d3a),this['_markChanges'](_0x1156da,_0x2a485b['deletions'][_0x38cedd],_0x19a503,'deletion',_0x216d3a),_0xfbb80f[_0x38cedd]={'insertions':this['_prepareViewToSave'](_0x2b8930),'deletions':this['_prepareViewToSave'](_0x1156da),'attachChange':this['_touchedRoots']['get'](_0x38cedd)||null,'attributesBefore':_0x52c51f(this['_baseRootsAttributes']['get'](_0x38cedd))||{},'attributesAfter':_0x52c51f(this['_diffRootsAttributes']['get'](_0x38cedd))};}return{'diffData':_0xfbb80f,'authorsIds':Array['from'](_0x216d3a)};}['_processRootBeforeSave'](_0x241585){for(const [,_0x4109ff]of _0x241585['markers']){const _0x41ceba=_0x4109ff['start']['getAncestors']()['filter'](_0x2abc81=>'tableCell'==_0x2abc81['name']);for(const _0x5bd3c4 of _0x41ceba)0x1==_0x5bd3c4['childCount']&&_0x5bd3c4['getChild'](0x0)['is']('element','paragraph')&&_0x5bd3c4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2cf8a6){this['_processRootBeforeSave'](_0x2cf8a6);const _0x5dee25=this['editor']['data']['toView'](_0x2cf8a6,{}),_0x1625f5=Array['from'](_0x5dee25['getChildren']())['map'](_0x30ea71=>this['_getViewJson'](_0x30ea71));return JSON['stringify'](_0x1625f5);}['_getViewJson'](_0x1d98f9){if(_0x1d98f9['is']('$text'))return _0x1d98f9['data'];{const _0x191bfa=_0x1d98f9;return{'type':Object['keys'](E)['find'](_0x9884c6=>_0x1d98f9 instanceof E[_0x9884c6]),'name':_0x191bfa['name'],'attributes':Array['from'](_0x191bfa['getAttributes']()),'children':Array['from'](_0x191bfa['getChildren']())['map'](_0x398ef2=>this['_getViewJson'](_0x398ef2))};}}['_markChanges'](_0x43b614,_0x242a03,_0x4efd06,_0x38e001,_0x51257a){let _0x1a7d74=null,_0x1c3d96=null,_0x152f09=0x0;const _0x475ebb=this['editor']['model'];for(let _0x188e75=0x0;_0x188e75<_0x242a03['length'];_0x188e75++){const _0x547ca9=this['_getVidAttributeName'](_0x242a03[_0x188e75]),_0x49abda=_0x242a03[_0x188e75]['item']['getAttribute'](_0x547ca9),_0xc3f28=_0x4efd06['get'](_0x49abda),_0x2a501f=_0x188e75==_0x242a03['length']-0x1;(!_0x1a7d74&&_0xc3f28&&(_0x1a7d74=_0xc3f28,_0x1c3d96=_0x242a03[_0x188e75]),_0x1a7d74&&(!_0xc3f28||_0xc3f28['userId']!=_0x1a7d74['userId']))&&(_0x570709(_0xc3f28,B(_0x1c3d96,_0x43b614,_0x475ebb),B(_0x242a03[_0x188e75],_0x43b614,_0x475ebb)),_0x1a7d74=_0xc3f28||null,_0x1c3d96=_0xc3f28?_0x242a03[_0x188e75]:null),_0x1a7d74&&_0x2a501f&&_0x570709(_0xc3f28,B(_0x1c3d96,_0x43b614,_0x475ebb),J(_0x242a03[_0x188e75],_0x43b614,_0x475ebb));}function _0x570709(_0x326297,_0x4dbc55,_0x2ceaa1){const _0x30b219=_0x1a7d74['userId'],_0x248870='revision:'+_0x38e001+':'+_0x30b219+':'+_0x152f09++,_0x1b2ac1=_0x475ebb['createRange'](_0x4dbc55,_0x2ceaa1);_0x43b614['markers']['set'](_0x248870,_0x1b2ac1),null!==_0x30b219&&_0x51257a['add'](_0x30b219);}}['_getVidAttributeName'](_0x3d1daf){switch(_0x3d1daf['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1cfcbe,_0x9c2750){_0x1cfcbe['baseVersion']=null;for(const _0x2408a5 in _0x1cfcbe){const _0x3e5732=_0x1cfcbe[_0x2408a5];if(_0x3e5732 instanceof vt){const _0x255983=_0x9c2750['get'](_0x3e5732['root']['rootName']);_0x1cfcbe[_0x2408a5]=this['_fixPosition'](_0x3e5732,_0x255983);}if(_0x3e5732 instanceof ft){const _0x544ebc=_0x9c2750['get'](_0x3e5732['root']['rootName']);_0x1cfcbe[_0x2408a5]=this['_fixRange'](_0x3e5732,_0x544ebc);}'root'===_0x2408a5&&(_0x1cfcbe['root']=_0x9c2750['get'](_0x1cfcbe['root']['rootName']));}}['_fixRange'](_0x37a0be,_0x4263b9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x37a0be['start'],_0x4263b9),this['_fixPosition'](_0x37a0be['end'],_0x4263b9));}['_fixPosition'](_0xa87ef1,_0x120844){return this['editor']['model']['createPositionFromPath'](_0x120844,_0xa87ef1['path'],_0xa87ef1['stickiness']);}['_handleInsertOperation'](_0x13fbad){const _0x9efc8b=this['_idsRoots']['get'](_0x13fbad['position']['root']['rootName']),_0x189f28=this['_fixPosition'](_0x13fbad['position'],_0x9efc8b),_0x38a6ff=null===_0x13fbad['_authorId']?null:_0x13fbad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2375d4=_0x189f28['parent'],_0x13e516=this['_revisionId'],_0x5b35f0=[];for(const _0x434d28 of _0x13fbad['nodes'])if(_0x434d28['is']('element'))_0x5b35f0['push'](this['_makeIdsRoot'](_0x434d28));else{for(let _0x4c3b0c=0x0;_0x4c3b0c<_0x434d28['offsetSize'];_0x4c3b0c++)_0x5b35f0['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3fd8ef=this['_revisionId'];for(let _0x59345a=_0x13e516;_0x59345a<_0x3fd8ef;_0x59345a++)this['_touched']['set'](_0x59345a,{'userId':_0x38a6ff});_0x2375d4['_insertChild'](_0x189f28['offset'],_0x5b35f0);}['_handleMoveOperation'](_0x6b142d){(_0x6b142d=this['_cloneOperation'](_0x6b142d,this['_idsRoots']))['_execute']();const _0x4ab65e=null===_0x6b142d['_authorId']?null:_0x6b142d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d9ad1=_0x6b142d['getMovedRangeStart'](),_0x237ea9=_0x4d9ad1['parent'],_0x3bd5a1=_0x4d9ad1['offset'];!function _0x460ce4(_0x35a55c,_0x491f8c,_0x5bc70d,_0x5f2e94){for(let _0x218f56=_0x5bc70d;_0x218f56<_0x5f2e94;_0x218f56++){const _0x433e8e=_0x491f8c['getChild'](_0x218f56);_0x433e8e['is']('element','$text')?_0x35a55c['set'](_0x433e8e['getAttribute']('vid'),{'userId':_0x4ab65e}):(_0x35a55c['set'](_0x433e8e['getAttribute']('vid_start'),{'userId':_0x4ab65e}),_0x460ce4(_0x35a55c,_0x433e8e,0x0,_0x433e8e['childCount']),_0x35a55c['set'](_0x433e8e['getAttribute']('vid_end'),{'userId':_0x4ab65e}));}}(this['_touched'],_0x237ea9,_0x3bd5a1,_0x3bd5a1+_0x6b142d['howMany']);}['_handleMergeOperation'](_0x4908bb){const _0x5c72f2=null===(_0x4908bb=this['_cloneOperation'](_0x4908bb,this['_idsRoots']))['_authorId']?null:_0x4908bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fe514=_0x4908bb['targetPosition']['parent'],_0x345581=_0x4908bb['sourcePosition']['parent'],_0x4be6f2=_0x1fe514['getAttribute']('vid_end'),_0xbb71dd=_0x345581['getAttribute']('vid_start');_0x1fe514['_setAttribute']('vid_end',_0x345581['getAttribute']('vid_end')),_0x345581['_setAttribute']('vid_end',_0x4be6f2),this['_touched']['set'](_0xbb71dd,{'userId':_0x5c72f2}),this['_touched']['set'](_0x4be6f2,{'userId':_0x5c72f2}),_0x4908bb['_execute']();}['_handleSplitOperation'](_0x5f45c7){const _0xc12218=null===(_0x5f45c7=this['_cloneOperation'](_0x5f45c7,this['_idsRoots']))['_authorId']?null:_0x5f45c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x241e3d=_0x5f45c7['graveyardPosition'],_0x113b36=_0x5f45c7['splitPosition']['parent'];_0x5f45c7['_execute']();const _0x935c81=_0x113b36['getAttribute']('vid_end'),_0x2cbc98=_0x5f45c7['insertionPosition']['nodeAfter'];if(_0x241e3d){const _0x3e47cf=_0x2cbc98['getAttribute']('vid_end'),_0xab061f=_0x113b36['getAttribute']('vid_end');_0x113b36['_setAttribute']('vid_end',_0x3e47cf),_0x2cbc98['_setAttribute']('vid_end',_0xab061f),this['_touched']['set'](_0x113b36['getAttribute']('vid_end'),{'userId':_0xc12218}),this['_touched']['set'](_0x2cbc98['getAttribute']('vid_start'),{'userId':_0xc12218});}else{const _0x19683f=this['_revisionId']++,_0x545a32=this['_revisionId']++;_0x113b36['_setAttribute']('vid_end',_0x19683f),_0x2cbc98['_setAttribute']('vid_start',_0x545a32),_0x2cbc98['_setAttribute']('vid_end',_0x935c81),this['_touched']['set'](_0x19683f,{'userId':_0xc12218}),this['_touched']['set'](_0x545a32,{'userId':_0xc12218});}}['_handleMarkerOperation'](_0x22e52c){if(!_0x22e52c['affectsData'])return;const _0xb46411=(_0x22e52c=this['_cloneOperation'](_0x22e52c,this['_diffRoots']))['oldRange']?_0x22e52c['oldRange']['root']:null,_0x187de9=_0x22e52c['newRange']?_0x22e52c['newRange']['root']:null;_0xb46411&&this['_markers']['delete'](_0x22e52c['name']),_0x187de9&&this['_markers']['set'](_0x22e52c['name'],_0x22e52c['newRange']['clone']());const _0x1f089d=null===_0x22e52c['_authorId']?null:_0x22e52c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5bbb84=_0x22e52c['name'];if(!this['_touchedMarkers']['has'](_0x5bbb84))return void this['_touchedMarkers']['set'](_0x5bbb84,{'range':_0x22e52c['oldRange'],'userId':_0x1f089d});const _0x3d7a75=this['_touchedMarkers']['get'](_0x5bbb84),_0x1fe9d0=_0x3d7a75['range'],_0x21b68b=_0x22e52c['newRange'];null==_0x1fe9d0&&null==_0x21b68b||_0x1fe9d0&&_0x21b68b&&_0x1fe9d0['isEqual'](_0x21b68b)?this['_touchedMarkers']['delete'](_0x22e52c['name']):_0x3d7a75['userId']=_0x1f089d;}['_handleRootOperation'](_0x43f684,_0x5c67dc){this['_diffRoots']['has'](_0x43f684['rootName'])?this['_diffRoots']['get'](_0x43f684['rootName'])['_isAttached']=_0x43f684['isAdd']:(this['_diffRoots']['set'](_0x43f684['rootName'],F(_0x43f684['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x43f684['rootName'],{}),_0x5c67dc&&this['_idsRoots']['set'](_0x43f684['rootName'],F(_0x43f684['rootName'],!0x0)));const _0x2880f5=null===_0x43f684['_authorId']?null:_0x43f684['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c252f=this['_touchedRoots']['get'](_0x43f684['rootName']);_0x5c252f&&_0x5c252f['userId']===_0x2880f5?this['_touchedRoots']['delete'](_0x43f684['rootName']):this['_touchedRoots']['set'](_0x43f684['rootName'],{'userId':_0x2880f5,'isAttached':_0x43f684['isAdd']});}['_handleRootAttributeOperation'](_0x2dfc0e){const _0x28c3af=this['_diffRootsAttributes']['get'](_0x2dfc0e['root']['rootName']);null===_0x2dfc0e['newValue']?delete _0x28c3af[_0x2dfc0e['key']]:_0x28c3af[_0x2dfc0e['key']]=_0x2dfc0e['newValue'];}}function T(_0x2a00e1){const _0x1094d0=F(_0x2a00e1['rootName'],_0x2a00e1['isAttached']());for(const _0x20aa54 of _0x2a00e1['getChildren']()){const _0x12c285=_0x20aa54['_clone'](!0x0);_0x1094d0['_appendChild'](_0x12c285);}return _0x1094d0;}function F(_0x96bf25,_0x54cedf=!0x0){const _0x517609=new gt();return _0x517609['rootName']=_0x96bf25,_0x517609['_isAttached']=_0x54cedf,_0x517609['isAttached']=()=>_0x517609['_isAttached'],_0x517609;}function B(_0xeada31,_0x3d39bb,_0x96839d){const _0x4723a3='elementEnd'==_0xeada31['type']?_0x96839d['createPositionAt'](_0xeada31['item'],'end'):_0x96839d['createPositionBefore'](_0xeada31['item']);return _0x96839d['createPositionFromPath'](_0x3d39bb,_0x4723a3['path'],_0x4723a3['stickiness']);}function J(_0x19b047,_0x25d263,_0xf02236){const _0x2fc0f2='elementStart'==_0x19b047['type']?_0xf02236['createPositionAt'](_0x19b047['item'],0x0):_0xf02236['createPositionAfter'](_0x19b047['item']);return _0xf02236['createPositionFromPath'](_0x25d263,_0x2fc0f2['path'],_0x2fc0f2['stickiness']);}class os extends _0xf43afc{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2ea9d4,_0x593ba1){super(_0x2ea9d4),this['focusTracker']=new _0x4f5e82(),this['keystrokes']=new _0x45f22f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x593ba1),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'](),_0x355721({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1610b6=_0x31eb08=>_0x31eb08['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1610b6),this['keystrokes']['set']('arrowleft',_0x1610b6),this['keystrokes']['set']('arrowup',_0x1610b6),this['keystrokes']['set']('arrowdown',_0x1610b6);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x49ecaa){this['revisionNameInputView']['fieldView']['element']['value']=_0x49ecaa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a183f){const _0x4dc87f=new at(this['locale'],ti),_0x31a9b4=_0x4dc87f['fieldView'];_0x31a9b4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x51fec4=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a183f&&(_0x51fec4+='\x20('+m(this['locale'],'optional')+')'),(_0x4dc87f['label']=_0x51fec4,_0x31a9b4['on']('input',()=>{this['revisionNameInputValue']=_0x31a9b4['element']['value']['trim']();}),_0x4dc87f);}}class f extends _0x360162{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x34261c=this['editor'],_0x19a175=_0x34261c['plugins']['get']('RevisionTracker');_0x34261c['ui']['componentFactory']['add']('revisionHistory',_0x396428=>{const _0x526c6b=_0x36cbf8(_0x396428),_0x420ab6=_0x526c6b['panelView']['children'],_0x5e7853=new _0x4be1b7(_0x396428),_0x2e0a7c=new te(_0x396428),_0x58bcd2=new _0xac35f(_0x396428),_0x1fac1a=new te(_0x396428),_0x3dd10e=new _0xac35f(_0x396428);return _0x526c6b['bind']('isEnabled')['to'](_0x19a175,'isReady',_0x19a175,'isEnabled',_0x34261c,'isReadOnly',(_0x1aa954,_0x11b932,_0x4fb5c7)=>_0x1aa954&&_0x11b932&&!_0x4fb5c7),_0x526c6b['buttonView']['set']({'icon':_0x43ad56,'label':m(_0x396428,'Revision\x20history'),'tooltip':!0x0}),_0x58bcd2['set']({'label':m(_0x396428,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x58bcd2['bind']('isEnabled')['to'](_0x19a175,'isReady',_0x19a175,'isEnabled',_0x34261c,'isReadOnly',(_0x4de637,_0xe9d551,_0x50e2bd)=>_0x4de637&&_0xe9d551&&!_0x50e2bd),_0x58bcd2['on']('execute',()=>this['_showDialog']()),_0x3dd10e['set']({'label':m(_0x396428,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3dd10e['bind']('isEnabled')['to'](_0x19a175,'isReady',_0x34261c,'isReadOnly',(_0x4e8280,_0x278fc3)=>_0x4e8280&&!_0x278fc3),_0x3dd10e['on']('execute',()=>{_0x34261c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x526c6b['isOpen']=!0x1,_0x34261c['editing']['view']['focus']();}),_0x2e0a7c['children']['add'](_0x58bcd2),_0x1fac1a['children']['add'](_0x3dd10e),_0x5e7853['role']='menu',_0x5e7853['items']['addMany']([_0x2e0a7c,_0x1fac1a]),_0x420ab6['add'](_0x5e7853),_0x526c6b;}),_0x34261c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1ca00c=this['editor'],_0x2e517e=_0x1ca00c['locale'],_0x282f43=new _0x24bb11(_0x2e517e),_0x558563=new _0x5ef991(_0x2e517e);_0x282f43['buttonView']['set']({'icon':_0x43ad56,'label':m(_0x2e517e,'Revision\x20history')});const _0x13f274=new _0x3f02b2(_0x2e517e,_0x282f43),_0x2d5fb5=new _0x1f1f2f(_0x2e517e);_0x2d5fb5['set']({'label':m(_0x2e517e,'Save\x20current\x20revision')}),_0x2d5fb5['delegate']('execute')['to'](_0x282f43),_0x2d5fb5['on']('execute',()=>{this['_showDialog']();}),_0x13f274['children']['add'](_0x2d5fb5),_0x558563['items']['add'](_0x13f274);const _0x137b9a=new _0x3f02b2(_0x2e517e,_0x282f43),_0x3bc158=new _0x1f1f2f(_0x2e517e);return _0x3bc158['set']({'label':m(_0x2e517e,'Open\x20revision\x20history')}),_0x3bc158['delegate']('execute')['to'](_0x282f43),_0x3bc158['on']('execute',()=>{_0x1ca00c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x137b9a['children']['add'](_0x3bc158),_0x558563['items']['add'](_0x137b9a),_0x282f43['panelView']['children']['add'](_0x558563),_0x282f43;}['_showDialog'](){const _0x5d96c9=this['editor'],_0x11446b=_0x5d96c9['locale'],_0xe9c0e4=_0x5d96c9['plugins']['get']('Dialog'),_0x97d48c=_0x5d96c9['plugins']['get']('RevisionTracker');function _0x3d08cd(_0x128a0b){_0x5d96c9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x128a0b['revisionName']?_0x128a0b['revisionNameInputView']['errorText']=m(_0x11446b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5d96c9['plugins']['get'](u)['saveRevision']({'name':_0x128a0b['revisionName']}),_0xe9c0e4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3d08cd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xe9c0e4['show']({'id':'revisionSave','title':m(_0x11446b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5d96c9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xe9c0e4['hide']()},{'label':m(_0x5d96c9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x477f62){_0x477f62['bind']('isEnabled')['to'](_0x97d48c,'isReady',_0x97d48c,'isEnabled',_0x5d96c9,'isReadOnly',(_0x19fe5f,_0x4bb62a,_0x55af25)=>_0x19fe5f&&_0x4bb62a&&!_0x55af25);},'onExecute':()=>_0x3d08cd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2205f3=this['editor'],_0x597d88=_0x2205f3['locale'];this['_saveRevisionFormView']=new os(_0x597d88,_0x2205f3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xf43afc{['changeId'];['_model'];constructor(_0x1991c9,_0x3ceca3){super(_0x1991c9),this['_model']=_0x3ceca3,this['changeId']=_0x3ceca3['id'];const _0x26adfc=this['bindTemplate'],_0x17b62d=m(_0x1991c9,_0x3ceca3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3ceca3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3ceca3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x26adfc['to']('type',_0x1217e5=>'ck-revision-change__'+_0x1217e5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x17b62d}]},{'text':'\x20'+_0x3ceca3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x174140(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x203f29){super(),this['id']=_0x203f29['id']||_0x3bf3c3(),this['author']=_0x203f29['author'],this['type']=_0x203f29['type'],this['data']=_0x203f29['data']||{},this['rootName']=_0x203f29['rootName'],this['set']('createdAt',_0x203f29['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2acec9,_0x6819b1){this['newRevisionId']=_0x2acec9,this['oldRevisionId']=_0x6819b1,this['changes']=new _0xd7d3a9();}['_setChanges'](_0x3ed82a){for(const _0x4d23f4 of _0x3ed82a)this['changes']['add'](_0x4d23f4);}}const Y={'c':_0x462066,'a':_0x2d8842,'e':_0x414ab6,'r':_0x3b5238,'u':_0x440e76};class d extends _0x360162{['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[_0x1b41fe,_0x53624a,j];}constructor(_0x1eea13){super(_0x1eea13),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',(_0x32fc1b,_0xa76f16,_0x460e1b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x244902=>{for(const _0x51dd1d of this['editor']['editing']['view']['document']['roots'])_0x460e1b?_0x244902['removeClass']('ck-editor__editable__overlay',_0x51dd1d):_0x244902['addClass']('ck-editor__editable__overlay',_0x51dd1d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x414e58=>null!==_0x414e58),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xa69f1e,_0x396b3e,_0x1dfff3)=>_0xa69f1e&&_0x1dfff3?_0x396b3e['changes']['getIndex'](_0x1dfff3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1a2ba2,_0xc0841e)=>_0x1a2ba2?_0xc0841e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x53624a);}['init'](){const _0x294fd6=this['editor'],_0xd00d23=new yt(_0x294fd6,{'direction':'backward'}),_0x573d6b=new yt(_0x294fd6,{'direction':'forward'});(_0x294fd6['commands']['add']('showPreviousChange',_0xd00d23),_0x294fd6['commands']['add']('showNextChange',_0x573d6b),_0x294fd6['commands']['add']('restoreRevision',new _t(_0x294fd6)),this['on']('change:numberOfChanges',()=>{_0xd00d23['refresh'](),_0x573d6b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x294fd6['enableReadOnlyMode']('revision-viewer'),_0x294fd6['plugins']['has']('WidgetToolbarRepository'))&&_0x294fd6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4d510e){await this['loadRevisionData'](_0x4d510e);const _0x59c113={};for(const _0x5c966b in _0x4d510e['diffData']){if(_0x4d510e['diffData'][_0x5c966b]['attachChange']&&!_0x4d510e['diffData'][_0x5c966b]['attachChange']['isAttached'])continue;const _0x1133e4=this['_removeRevisionMarkers'](JSON['parse'](_0x4d510e['diffData'][_0x5c966b]['insertions'])),_0x43b565=this['editor']['editing']['view']['document'],_0x193c4d=new _0x2bfcd7(_0x43b565,_0x1133e4['map'](_0x21bd35=>this['_getViewObj'](_0x21bd35)));this['editor']['data']['processor']['useFillerType']('marked'),_0x59c113[_0x5c966b]=this['editor']['data']['processor']['toData'](_0x193c4d),this['editor']['data']['processor']['useFillerType']('default');}return _0x59c113;}async['getRevisionRootsAttributes'](_0x3e9cb8){await this['loadRevisionData'](_0x3e9cb8);const _0x4c2c01={};for(const _0x1fa408 in _0x3e9cb8['diffData'])_0x3e9cb8['diffData'][_0x1fa408]['attachChange']&&!_0x3e9cb8['diffData'][_0x1fa408]['attachChange']['isAttached']||(_0x4c2c01[_0x1fa408]=_0x3e9cb8['diffData'][_0x1fa408]['attributesAfter']||{});return _0x4c2c01;}['_removeRevisionMarkers'](_0x52414e){return(_0x52414e=_0x52414e['filter'](_0x4d37d9=>!_0x4d37d9['name']||'revision-start'!==_0x4d37d9['name']&&'revision-end'!==_0x4d37d9['name']))['forEach'](_0x151bf6=>{'string'!=typeof _0x151bf6&&(_0x151bf6['children']=this['_removeRevisionMarkers'](_0x151bf6['children']),_0x151bf6['attributes']=_0x151bf6['attributes']['filter'](_0x4c0df7=>!_0x4c0df7[0x0]['startsWith']('data-revision-')));}),_0x52414e;}async['compare'](_0x1c4778,_0x261934,_0xf488dc=!0x1){if(!this['isEnabled'])return;const _0x292cfc=this['diff'],_0x3ba482=this['repository'],_0x11cd56='string'==typeof _0x1c4778?_0x3ba482['getRevision'](_0x1c4778):_0x1c4778,_0x3023e3='string'==typeof _0x261934?_0x3ba482['getRevision'](_0x261934):_0x261934,_0x2be207=_0x11cd56['id'],_0x470a15=_0x3023e3?_0x3023e3['id']:null;if(!_0xf488dc&&this['diff']&&this['diff']['newRevisionId']===_0x2be207&&this['diff']['oldRevisionId']===_0x470a15)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2be207,_0x470a15);const _0x2c6594=this['_getRevisionsRange'](_0x11cd56,_0x3023e3,!0x0)['map'](_0x38cfcb=>this['loadRevisionData'](_0x38cfcb));return _0x2c6594['push'](new Promise(_0x19b02a=>{setTimeout(_0x19b02a,0x14);})),Promise['all'](_0x2c6594)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x206bfe=this['_getDiff'](_0x2be207,_0x470a15);for(const _0x3d2493 of _0x206bfe['changes'])this['_changeIdToChange']['set'](_0x3d2493['id'],_0x3d2493);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33eca8=>{for(const _0x7121b4 of this['editor']['model']['document']['getRootNames']())_0x33eca8['detachRoot'](_0x7121b4);for(const _0x372dbb of Object['keys'](_0x206bfe['model'])){const _0x10a413=_0x33eca8['addRoot'](_0x372dbb);for(const _0x290537 of Object['keys'](_0x206bfe['attributes'][_0x372dbb]))_0x33eca8['setAttribute'](_0x290537,_0x206bfe['attributes'][_0x372dbb][_0x290537],_0x10a413);_0x33eca8['insert'](_0x206bfe['model'][_0x372dbb],_0x10a413,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x206bfe['changes'])),this['isReady']=!0x0;})['catch'](_0x56e9c1=>{console['error'](_0x56e9c1),this['_cleanUp'](),_0x292cfc&&(this['diff']=_0x292cfc),this['isReady']=!0x0;});}['addRevisionData'](_0x36e078,_0x37f665){const _0x23f66f=this['repository']['createRevision'](_0x36e078);return _0x23f66f['on']('_update',(_0x27b8f8,_0x434d53,_0x122062)=>_0x37f665(_0x434d53,_0x122062,_0x23f66f)),this['repository']['addRevision'](_0x23f66f),_0x23f66f;}['loadRevisionData'](_0x524701){if(!_0x524701||_0x524701['diffData'])return Promise['resolve']();{const _0xde3cec=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xde3cec,'revisionId':_0x524701['id']})['then'](_0x3e7b63=>{_0x524701['_update']({'diffData':_0x3e7b63['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},_0x3396a2=>{for(const _0x10e7dc of this['editor']['model']['document']['getRootNames']())_0x3396a2['detachRoot'](_0x10e7dc);});}['_sortAndFilterDiffChanges'](_0x4c961d){const _0x43951e=[],_0x48e45e=new Map();for(const _0x40dd47 of this['editor']['model']['document']['getRootNames']()){const _0x7e867d=this['editor']['editing']['view']['getDomRoot'](_0x40dd47);if(!_0x7e867d)continue;const _0x23ce2f=_0x7e867d['getClientRects']()['item'](0x0);_0x23ce2f&&(_0x43951e['push'](_0x40dd47),_0x48e45e['set'](_0x40dd47,_0x23ce2f));}return _0x43951e['sort']((_0x458bd3,_0x435d86)=>{const _0x4df8f7=_0x48e45e['get'](_0x458bd3),_0x13eff7=_0x48e45e['get'](_0x435d86);return _0x4df8f7['y']-_0x13eff7['y']||_0x4df8f7['x']-_0x13eff7['x'];}),(_0x4c961d=_0x4c961d['filter'](_0x5e2939=>_0x43951e['includes'](_0x5e2939['rootName'])))['sort']((_0x3be5b6,_0x26728b)=>_0x43951e['indexOf'](_0x3be5b6['rootName'])-_0x43951e['indexOf'](_0x26728b['rootName'])),_0x4c961d;}['_makeTape'](_0x5b339c){const _0x41036f=Array['from'](_0x5b339c['markers'])['filter'](([_0x5bd3d6,_0x3e880c])=>_0x5bd3d6['startsWith']('revision:')&&!_0x3e880c['isCollapsed']),_0x4867b5=Array['from'](this['editor']['model']['createRangeIn'](_0x5b339c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x41036f['length'])for(const _0x3d89c8 of _0x4867b5){const [_0x1f2dfa,_0x4dd957]=_0x41036f[0x0],[,_0x428aa6,_0x2b091]=_0x1f2dfa['split'](':');if(_0x4dd957['end']['isEqual'](_0x3d89c8['nextPosition'])&&_0x41036f['shift'](),(_0x3d89c8['previousPosition']['isEqual'](_0x4dd957['start'])||_0x3d89c8['previousPosition']['isAfter'](_0x4dd957['start']))&&('insertion'==_0x428aa6?_0x3d89c8['isAdded']={'userId':_0x2b091}:'deletion'==_0x428aa6&&(_0x3d89c8['isRemoved']={'userId':_0x2b091})),0x0==_0x41036f['length'])break;}return _0x4867b5;}['_refreshStartEndIndex'](_0x1b44a1){const _0x18c38f=new Map();for(let _0xd36887=0x0;_0xd36887<_0x1b44a1['length'];_0xd36887++)'text'===_0x1b44a1[_0xd36887]['type']?(_0x1b44a1[_0xd36887]['item']['startIndex']=_0xd36887,_0x1b44a1[_0xd36887]['item']['endIndex']=_0xd36887):('elementStart'===_0x1b44a1[_0xd36887]['type']?_0x1b44a1[_0xd36887]['item']['startIndex']=_0xd36887:'elementEnd'===_0x1b44a1[_0xd36887]['type']&&(_0x1b44a1[_0xd36887]['item']['endIndex']=_0xd36887),_0x18c38f['set'](_0x1b44a1[_0xd36887]['id'],_0xd36887));for(const _0x34dc3f of _0x18c38f['values']())'elementStart'===_0x1b44a1[_0x34dc3f]['type']?_0x1b44a1[_0x34dc3f]['item']['endIndex']=_0x18c38f['get'](_0x1b44a1[_0x34dc3f]['pairId']):'elementEnd'===_0x1b44a1[_0x34dc3f]['type']&&(_0x1b44a1[_0x34dc3f]['item']['startIndex']=_0x18c38f['get'](_0x1b44a1[_0x34dc3f]['pairId']));}['_processTape'](_0x3d4969){for(let _0x37b089=0x0;_0x37b089<_0x3d4969['length'];_0x37b089++){if('elementStart'===_0x3d4969[_0x37b089]['type'])_0x3d4969[_0x37b089]['item']['startIndex']=_0x37b089;else{if('elementEnd'===_0x3d4969[_0x37b089]['type']){_0x3d4969[_0x37b089]['item']['endIndex']=_0x37b089;const _0x4e1e2e=_0x3d4969[_0x37b089]['item']['startIndex'];_0x3d4969[_0x4e1e2e]['pairId']=_0x3d4969[_0x37b089]['id'],_0x3d4969[_0x37b089]['pairId']=_0x3d4969[_0x4e1e2e]['id'];}else _0x3d4969[_0x37b089]['item']['startIndex']=_0x37b089,_0x3d4969[_0x37b089]['item']['endIndex']=_0x37b089,_0x3d4969[_0x37b089]['pairId']=null;}_0x3d4969[_0x37b089]['markersStart']||(_0x3d4969[_0x37b089]['markersStart']=[],_0x3d4969[_0x37b089]['markersEnd']=[]);}}['_markInsertions'](_0x55dab2,_0x11f850){const _0x3df095=_0x55dab2['filter'](_0x18be52=>!_0x18be52['isAdded']);for(let _0x6138c7=0x0;_0x6138c7<_0x11f850['length'];_0x6138c7++)_0x11f850[_0x6138c7]['isAdded']&&(_0x3df095[_0x6138c7]['isAdded']=_0x11f850[_0x6138c7]['isAdded']);}['_makeModelFromViewString'](_0x50c02e){const _0x11afdb=JSON['parse'](_0x50c02e),_0x2b0d2b=this['editor']['editing']['view']['document'],_0x401b9e=new _0x2bfcd7(_0x2b0d2b,_0x11afdb['map'](_0x22c4c9=>this['_getViewObj'](_0x22c4c9)));return this['editor']['data']['toModel'](_0x401b9e);}['_getViewObj'](_0x4b63da){const _0x14f480=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b63da)return new _0x55faa7(_0x14f480,_0x4b63da);{const _0x37a6cd=_0x4b63da['children']['map'](_0x4d4479=>this['_getViewObj'](_0x4d4479));return new(Y[_0x4b63da['type']]||_0x50bcf3)(_0x14f480,_0x4b63da['name'],_0x4b63da['attributes'],_0x37a6cd);}}['_getDiff'](_0x3bd2ab,_0x12e445=null){const _0x27648e=this['repository']['getRevision'](_0x3bd2ab),_0x44b9c0=_0x12e445?this['repository']['getRevision'](_0x12e445):null,_0x13fbe5=this['_getRevisionsRange'](_0x27648e,_0x44b9c0),_0x371cea=_0x13fbe5[_0x13fbe5['length']-0x1],_0x2aae9e=new Map(),_0x16406a={'model':{},'attributes':{},'changes':[]},_0x165dcd=new Set(),_0x4fb00a=new Map();for(let _0x25d535=_0x13fbe5['length']-0x1;_0x25d535>=0x0;_0x25d535--){const _0x536ffb=_0x13fbe5[_0x25d535];for(const _0x20106d of Object['keys'](_0x536ffb['diffData']))if(_0x536ffb['diffData'][_0x20106d]['attachChange']){const _0x53c841=_0x536ffb['diffData'][_0x20106d]['attachChange'];_0x53c841['isAttached']?(_0x165dcd['add'](_0x20106d),_0x4fb00a['has'](_0x20106d)&&_0x4fb00a['get'](_0x20106d)['userId']==_0x53c841['userId']?_0x4fb00a['delete'](_0x20106d):_0x4fb00a['set'](_0x20106d,_0x53c841)):_0x4fb00a['has'](_0x20106d)?(_0x165dcd['delete'](_0x20106d),_0x4fb00a['delete'](_0x20106d)):(_0x165dcd['add'](_0x20106d),_0x4fb00a['set'](_0x20106d,_0x53c841));}else _0x165dcd['add'](_0x20106d);}for(const _0x2c5d89 of _0x165dcd){const _0x8df1e4=_0x4fb00a['has'](_0x2c5d89)&&!_0x4fb00a['get'](_0x2c5d89)['isAttached'];let _0x2c3f58=_0x8df1e4?_0x13fbe5['length']-0x1:0x0;const _0x115a86=_0x8df1e4?-0x1:0x1;for(;_0x13fbe5[_0x2c3f58];){const _0x50f937=_0x13fbe5[_0x2c3f58];if(_0x50f937['diffData'][_0x2c5d89]){const _0x43a02f=_0x8df1e4?_0x50f937['diffData'][_0x2c5d89]['attributesBefore']:_0x50f937['diffData'][_0x2c5d89]['attributesAfter'];_0x16406a['attributes'][_0x2c5d89]=_0x43a02f?_0x52c51f(_0x43a02f):{};break;}_0x2c3f58+=_0x115a86;}}for(const _0x2d8fde of _0x13fbe5){_0x2d8fde['model']={};for(const _0x4d5e20 of _0x2d8fde['authors'])_0x2aae9e['set'](_0x4d5e20['id'],_0x4d5e20);for(const _0x1c357d of _0x165dcd){const _0x1509f1=_0x2d8fde['diffData'][_0x1c357d]?_0x2d8fde['diffData'][_0x1c357d]['insertions']:'[]',_0x17e023=_0x2d8fde['diffData'][_0x1c357d]?_0x2d8fde['diffData'][_0x1c357d]['deletions']:'[]';_0x2d8fde['model'][_0x1c357d]={'insertions':this['_makeModelFromViewString'](_0x1509f1),'deletions':this['_makeModelFromViewString'](_0x17e023)};}}for(const _0x516787 of _0x165dcd){let _0x5afd8c=null,_0x5a5ee0=0x0;const _0x37bacc=new Map(Array['from'](_0x27648e['model'][_0x516787]['insertions']['markers'])['filter'](([_0x2a60ab])=>!_0x2a60ab['startsWith']('revision:')));let _0x4dfa40=0x0;for(const _0x126899 of _0x13fbe5){const _0x28698b=this['_makeTape'](_0x126899['model'][_0x516787]['insertions']);_0x126899==_0x27648e?(_0x5afd8c=_0x28698b,_0x5a5ee0=_0x5afd8c['length'],_0x5afd8c['forEach'](_0x752ac=>{_0x752ac['id']=_0x4dfa40++;}),this['_processTape'](_0x5afd8c)):this['_markInsertions'](_0x5afd8c,_0x28698b);const _0x3b25b0=_0x5afd8c['filter'](_0x557711=>!_0x557711['isAdded'])['map'](_0x2c57e6=>_0x2c57e6['id']);let _0xa7cf39=0x0;const _0x26a098=this['_makeTape'](_0x126899['model'][_0x516787]['deletions']);_0x26a098['forEach'](_0x37974e=>{_0x37974e['isRemoved']?_0x37974e['id']=_0x5a5ee0++:_0x37974e['id']=_0x3b25b0[_0xa7cf39++];}),this['_processTape'](_0x26a098),this['_setDistance'](_0x5afd8c,'isAdded'),this['_setDistance'](_0x26a098,'isRemoved'),_0x126899==_0x27648e&&this['_markMarkers'](_0x5afd8c,_0x37bacc),_0x5afd8c=this['_joinTapes'](_0x5afd8c,_0x26a098),this['_refreshStartEndIndex'](_0x5afd8c),this['_setDistance'](_0x5afd8c,'isRemoved');}_0x5afd8c=_0x5afd8c['filter'](_0x2d7df8=>!(_0x2d7df8['isAdded']&&_0x2d7df8['isRemoved']));const _0x2cf0ac=new Map(_0x371cea['model'][_0x516787]['deletions']['markers']),_0x41c91d=new Set(_0x37bacc['keys']());for(const _0x30797d of _0x2cf0ac['keys']())_0x41c91d['delete'](_0x30797d);this['_markSuggestions'](_0x5afd8c,_0x41c91d),this['_fixObsoleteTags'](_0x5afd8c),_0x5afd8c=this['_removeMissingPairs'](_0x5afd8c),_0x5afd8c=this['_markMismatchedRemovedTags'](_0x5afd8c),_0x5afd8c=this['_removeUnsupportedChanges'](_0x5afd8c);const {root:_0x37321f,changes:_0x4e74f3}=this['_makeModelFromTape'](_0x5afd8c,_0x2aae9e,_0x516787);_0x16406a['model'][_0x516787]=_0x37321f;const _0x39cc01=_0x4fb00a['get'](_0x516787);if(_0x39cc01){const _0x3527c2=_0x2aae9e['get'](_0x39cc01['userId']),_0xa3c8a7=new r({'author':_0x3527c2,'type':_0x39cc01['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x516787});_0x4e74f3['unshift'](_0xa3c8a7),_0x16406a['attributes'][_0x516787]['revisionHistoryAttachChange']=_0xa3c8a7['id'];}_0x16406a['changes']=_0x16406a['changes']['concat'](_0x4e74f3);}return _0x16406a;}['_markMarkers'](_0x2d549e,_0x49d6c0){for(let _0x7fccda=0x0;_0x7fccda<_0x2d549e['length'];_0x7fccda++)for(const [_0x4304f5,_0xd1cae3]of _0x49d6c0)_0xd1cae3['start']['isEqual'](_0x2d549e[_0x7fccda]['previousPosition'])&&_0x2d549e[_0x7fccda]['markersStart']['push'](_0x4304f5),_0xd1cae3['end']['isEqual'](_0x2d549e[_0x7fccda]['nextPosition'])&&_0x2d549e[_0x7fccda]['markersEnd']['push'](_0x4304f5);}['_joinTapes'](_0x4e96ed,_0x37af6d){let _0x5ba089=[],_0x44f8c8=0x0,_0x3eb021=0x0;for(;_0x44f8c8<_0x4e96ed['length']||_0x3eb021<_0x37af6d['length'];){const _0x3e355f=_0x4e96ed[_0x44f8c8]||{},_0x30e740=_0x37af6d[_0x3eb021]||{};if(_0x3e355f['id']==_0x30e740['id'])_0x44f8c8++,_0x3eb021++,_0x5ba089['push'](_0x3e355f);else{if(_0x30e740['isRemoved']&&_0x3e355f['isAdded']){const {commonTape:_0x5e2b03,iEnd:_0x4da1e4,jEnd:_0x56fd40}=this['_threeWayMerge'](_0x4e96ed,_0x44f8c8,_0x37af6d,_0x3eb021);_0x5ba089=_0x5ba089['concat'](_0x5e2b03),_0x44f8c8=_0x4da1e4,_0x3eb021=_0x56fd40;}else _0x30e740['isRemoved']?(_0x3eb021++,_0x5ba089['push'](_0x30e740)):(_0x44f8c8++,_0x5ba089['push'](_0x3e355f));}}return _0x5ba089;}['_markSuggestions'](_0x568986,_0x21c5de){const _0x232d45=[];for(let _0x57742d=0x0;_0x57742d<_0x568986['length'];_0x57742d++){for(let _0x1f3ab5=0x0;_0x1f3ab5<_0x568986[_0x57742d]['markersStart']['length'];_0x1f3ab5++){const _0x569f92=_0x568986[_0x57742d]['markersStart'][_0x1f3ab5];if(!_0x21c5de['has'](_0x569f92))continue;const {group:_0x4b5bbf,type:_0x312461,authorId:_0x4fd9dd}=_0x179e08(_0x569f92);'revision-suggestion'!=_0x4b5bbf||'insertion'!=_0x312461&&'deletion'!=_0x312461||(_0x232d45['unshift']({'type':_0x312461,'name':_0x569f92,'userId':_0x4fd9dd}),_0x568986[_0x57742d]['markersStart']['splice'](_0x1f3ab5,0x1),_0x1f3ab5--);}_0x5a8aec(_0x568986[_0x57742d]);for(let _0x196370=0x0;_0x196370<_0x568986[_0x57742d]['markersEnd']['length'];_0x196370++){const _0x59d212=_0x568986[_0x57742d]['markersEnd'][_0x196370];if(!_0x21c5de['has'](_0x59d212))continue;const {group:_0x16dd95,type:_0x33eefa}=_0x179e08(_0x59d212);if('revision-suggestion'!=_0x16dd95||'insertion'!=_0x33eefa&&'deletion'!=_0x33eefa)continue;_0x568986[_0x57742d]['markersEnd']['splice'](_0x196370,0x1),_0x196370--;const _0x57bdab=_0x232d45['findIndex'](_0x3232dc=>_0x3232dc['name']==_0x59d212);_0x57bdab>-0x1&&_0x232d45['splice'](_0x57bdab,0x1);}}function _0x179e08(_0x1536c5){const _0x263279=_0x1536c5['split'](':');return{'group':_0x263279[0x0],'type':_0x263279[0x1],'subType':_0x263279['length']>=0x5?_0x263279[0x2]:null,'id':_0x263279['length']<0x5?_0x263279[0x2]:_0x263279[0x3],'authorId':_0x263279['length']<0x5?_0x263279[0x3]:_0x263279[0x4],'markerCount':0x6==_0x263279['length']?_0x263279[0x5]:null};}function _0x5a8aec(_0x233725){for(let _0x150a60=0x0;_0x150a60<_0x232d45['length'];_0x150a60++){if(_0x233725['isAdded']&&'insertion'==_0x232d45[_0x150a60]['type'])return _0x233725['isAddSuggestion']=_0x232d45[_0x150a60],void delete _0x233725['isAdded'];if(!_0x233725['isAdded']&&!_0x233725['isRemoved']&&'deletion'==_0x232d45[_0x150a60]['type'])return void(_0x233725['isRemoveSuggestion']=_0x232d45[_0x150a60]);}}}['_setDistance'](_0x5eda3d,_0x368e67){let _0x38d8f2=0x0,_0x59cfb=!0x1;const _0x458710=new Map();for(const _0x5634af of _0x5eda3d)_0x5634af[_0x368e67]?_0x59cfb&&(_0x38d8f2++,_0x59cfb=!0x1):(_0x38d8f2++,_0x59cfb=!0x0),_0x458710['set'](_0x5634af['id'],_0x38d8f2);for(let _0x21f55c=0x0;_0x21f55c<_0x5eda3d['length'];_0x21f55c++){if('isRemoved'==_0x368e67&&_0x5eda3d[_0x21f55c]['isAdded']||'isAdded'==_0x368e67&&_0x5eda3d[_0x21f55c]['isRemoved'])continue;if('text'==_0x5eda3d[_0x21f55c]['type']){_0x5eda3d[_0x21f55c]['distance']=0x0;continue;}const _0x5447bd=_0x458710['get'](_0x5eda3d[_0x21f55c]['pairId']),_0x305cb3=_0x458710['get'](_0x5eda3d[_0x21f55c]['id']);_0x5eda3d[_0x21f55c]['distance']=_0x5447bd-_0x305cb3;}}['_getRevisionsRange'](_0x1b14ef,_0x1e0001,_0x4a4f36=!0x1){const _0x2ed9f4=[];let _0x5085d3=this['repository']['getIndex'](_0x1b14ef),_0x5b5691=this['repository']['getIndex'](_0x1e0001);for(-0x1==_0x5b5691&&(_0x5b5691=this['repository']['_revisions']['length'],_0x4a4f36=!0x1);_0x5085d3<_0x5b5691;)_0x2ed9f4['push'](this['repository']['getRevision'](_0x5085d3)),_0x5085d3++;return _0x4a4f36&&_0x2ed9f4['push'](this['repository']['getRevision'](_0x5085d3)),_0x2ed9f4;}['_threeWayMerge'](_0x9976fe,_0x46a3f5,_0x2c9f0b,_0x29e253){const _0x50ee05=this['editor']['model']['schema'];let _0x3dd969=_0x46a3f5;for(;_0x9976fe[_0x3dd969]&&_0x9976fe[_0x3dd969]['isAdded'];)_0x3dd969++;let _0x200a06=_0x29e253;for(;_0x2c9f0b[_0x200a06]&&_0x2c9f0b[_0x200a06]['isRemoved'];)_0x200a06++;_0x5eb46b(_0x9976fe,_0x46a3f5,_0x3dd969),_0x5eb46b(_0x2c9f0b,_0x29e253,_0x200a06);const _0x1ccd20=_0x2c9f0b['slice'](_0x29e253,_0x200a06)['concat'](_0x9976fe['slice'](_0x46a3f5,_0x3dd969));return _0x1ccd20['sort']((_0x52835e,_0x5a831e)=>_0x52835e['side']!=_0x5a831e['side']?_0x52835e['side']-_0x5a831e['side']:_0x52835e['level']!=_0x5a831e['level']?_0x52835e['level']-_0x5a831e['level']:_0x52835e['distance']!=_0x5a831e['distance']?_0x5a831e['distance']-_0x52835e['distance']:!!_0x52835e['isAdded']!=!!_0x5a831e['isAdded']?-0x1==_0x52835e['side']||0x0==_0x52835e['side']?_0x52835e['isAdded']?-0x1:0x1:_0x52835e['isAdded']?0x1:-0x1:_0x52835e['index']-_0x5a831e['index']),{'commonTape':_0x1ccd20,'iEnd':_0x3dd969,'jEnd':_0x200a06};function _0x5eb46b(_0x149b0c,_0x4b66e5,_0x464fc3){let _0x537157=-0x1,_0x3b0dae=Number['POSITIVE_INFINITY'],_0x126f85=!0x0;for(let _0x37cc40=_0x4b66e5;_0x37cc40<_0x464fc3;_0x37cc40++)if(_0x50ee05['isInline'](_0x149b0c[_0x37cc40]['item'])||(_0x126f85=!0x1),_0x149b0c[_0x37cc40]['item']['startIndex']<_0x4b66e5&&(_0x537157=_0x37cc40),_0x149b0c[_0x37cc40]['item']['endIndex']>=_0x464fc3){_0x3b0dae=_0x37cc40;break;}_0x126f85&&(_0x537157=_0x464fc3-0x1);for(let _0x2b3d4c=_0x4b66e5;_0x2b3d4c<_0x464fc3;_0x2b3d4c++)_0x149b0c[_0x2b3d4c]['side']=_0x2b3d4c<=_0x537157?-0x1:_0x2b3d4c<_0x3b0dae?0x0:0x1,_0x149b0c[_0x2b3d4c]['index']=_0x2b3d4c;let _0x30e653=0x0;for(let _0x308fa2=_0x4b66e5;_0x308fa2<=_0x537157;_0x308fa2++)0x0==_0x149b0c[_0x308fa2]['distance']?_0x149b0c[_0x308fa2]['level']=_0x30e653:(_0x30e653++,_0x149b0c[_0x308fa2]['level']=_0x30e653,_0x30e653++);for(let _0xf5c520=_0x4b66e5;_0xf5c520<_0x464fc3;_0xf5c520++)0x0==_0x149b0c[_0xf5c520]['side']&&(_0x149b0c[_0xf5c520]['level']=_0x30e653);_0x30e653=0x0;for(let _0x4af2cf=_0x464fc3-0x1;_0x4af2cf>=_0x3b0dae;_0x4af2cf--)0x0==_0x149b0c[_0x4af2cf]['distance']?_0x149b0c[_0x4af2cf]['level']=_0x30e653:(_0x30e653--,_0x149b0c[_0x4af2cf]['level']=_0x30e653,_0x30e653--);}}['_fixObsoleteTags'](_0x3abec0){const _0x499ba6=new Map(),_0x40a15d=this['editor']['model']['schema'];for(let _0x117a04=0x1;_0x117a04<_0x3abec0['length'];_0x117a04++){let _0x117a09,_0x4a6631,_0x380d3e;const _0x3f1f5e=_0x3abec0[_0x117a04],_0x2b2e80=_0x3abec0[_0x117a04-0x1];if('text'==_0x3f1f5e['type'])continue;if(_0x3f1f5e['type']!=_0x2b2e80['type'])continue;if(!_0x40a15d['isBlock'](_0x2b2e80['item'])||_0x40a15d['isLimit'](_0x2b2e80['item']))continue;if(!_0x40a15d['isBlock'](_0x3f1f5e['item'])||_0x40a15d['isLimit'](_0x3f1f5e['item']))continue;if((_0x3abec0[_0x117a04]['isAdded']||_0x3abec0[_0x117a04]['isAddSuggestion'])&&_0x3abec0[_0x117a04-0x1]['isRemoved'])_0x117a09=_0x3abec0[_0x117a04],_0x4a6631=_0x3abec0[_0x117a04-0x1],_0x380d3e=_0x117a04-0x1;else{if(!_0x3abec0[_0x117a04]['isRemoved']||!_0x3abec0[_0x117a04-0x1]['isAdded']&&!_0x3abec0[_0x117a04-0x1]['isAddSuggestion'])continue;_0x117a09=_0x3abec0[_0x117a04-0x1],_0x4a6631=_0x3abec0[_0x117a04],_0x380d3e=_0x117a04;}const _0x21fd58=_0x117a09['level']==_0x4a6631['level'],_0x31ae7c=Math['abs'](_0x117a09['level'])<Math['abs'](_0x4a6631['level'])&&0x0==_0x4a6631['distance'];(_0x21fd58||_0x31ae7c)&&(_0x499ba6['set'](_0x4a6631['id'],_0x117a09['id']),_0x3abec0['splice'](_0x380d3e,0x1),_0x117a04--,_0x117a09['isAdded']=!0x1);}for(let _0x2c4677=0x0;_0x2c4677<_0x3abec0['length'];_0x2c4677++)_0x499ba6['has'](_0x3abec0[_0x2c4677]['pairId'])&&(_0x3abec0[_0x2c4677]['pairId']=_0x499ba6['get'](_0x3abec0[_0x2c4677]['pairId']));}['_removeMissingPairs'](_0xac3913){const _0x24e3dd=new Set(_0xac3913['map'](_0x2e9774=>_0x2e9774['id']));for(let _0x3dbf65=0x0;_0x3dbf65<_0xac3913['length'];_0x3dbf65++)_0x24e3dd['has'](_0xac3913[_0x3dbf65]['pairId'])||0x0==_0xac3913[_0x3dbf65]['distance']||(_0xac3913[_0x3dbf65]['isIncorrect']=!0x0);return _0xac3913['filter'](_0x23461e=>!_0x23461e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x20aa1d){const _0x32756c=new Set();for(let _0x11d1ff=0x0;_0x11d1ff<_0x20aa1d['length'];_0x11d1ff++){if(_0x32756c['has'](_0x20aa1d[_0x11d1ff]['id'])&&_0x20aa1d[_0x11d1ff]['isRemoved']&&(_0x20aa1d[_0x11d1ff]['isIncorrect']=!0x0),_0x20aa1d[_0x11d1ff]['isIncorrect'])continue;if(0x0==_0x20aa1d[_0x11d1ff]['distance'])continue;if('elementStart'!=_0x20aa1d[_0x11d1ff]['type'])continue;if(null==_0x20aa1d[_0x11d1ff]['pairId'])continue;let _0x15d66e=_0x11d1ff+0x1,_0x48877f=0x0;for(;_0x20aa1d[_0x15d66e]['id']!=_0x20aa1d[_0x11d1ff]['pairId'];)'elementStart'==_0x20aa1d[_0x15d66e]['type']?_0x48877f++:'elementEnd'==_0x20aa1d[_0x15d66e]['type']&&_0x48877f--,_0x15d66e++;if(0x0!=_0x48877f){if(_0x20aa1d[_0x11d1ff]['isRemoved'])_0x20aa1d[_0x11d1ff]['isIncorrect']=!0x0;else{for(;_0x15d66e!=_0x11d1ff;)_0x20aa1d[_0x15d66e]['isRemoved']&&0x0!=_0x20aa1d[_0x15d66e]['distance']&&(_0x20aa1d[_0x15d66e]['isIncorrect']=!0x0,_0x32756c['add'](_0x20aa1d[_0x15d66e]['pairId'])),_0x15d66e--;}}}return _0x20aa1d['filter'](_0x50c76b=>!_0x50c76b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1e4a25){const _0x355d48=this['editor']['model']['schema'];for(let _0x4aefde=0x0;_0x4aefde<_0x1e4a25['length'];_0x4aefde++){if(!(_0x1e4a25[_0x4aefde]['isAdded']||_0x1e4a25[_0x4aefde]['isAddSuggestion']||_0x1e4a25[_0x4aefde]['isRemoved']||_0x1e4a25[_0x4aefde]['isRemoveSuggestion']))continue;if(0x0==_0x1e4a25[_0x4aefde]['distance'])continue;const _0x271713=_0x1e4a25[_0x4aefde]['item'];_0x355d48['isBlock'](_0x271713)||_0x355d48['isLimit'](_0x271713)||(_0x1e4a25[_0x4aefde]['isAdded']&&delete _0x1e4a25[_0x4aefde]['isAdded'],_0x1e4a25[_0x4aefde]['isAddSuggestion']&&delete _0x1e4a25[_0x4aefde]['isAddSuggestion'],_0x1e4a25[_0x4aefde]['isRemoveSuggestion']&&delete _0x1e4a25[_0x4aefde]['isRemoveSuggestion'],_0x1e4a25[_0x4aefde]['isRemoved']&&(_0x1e4a25[_0x4aefde]['isIncorrect']=!0x0));}return _0x1e4a25['filter'](_0x4894b5=>!_0x4894b5['isIncorrect']);}['_makeModelFromTape'](_0x30ee03,_0x3776d7,_0x8636ae){const _0x145462=new gt(),_0x3941d0=[],_0x27d3d6=new Map(),_0x384a6d=this['editor']['model'],_0x39c507=_0x384a6d['schema'],_0x339dc5=[_0x145462],_0x43d8f7={},_0x5b3a98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x55bc1e=null;const _0x23f418=[0x0];for(let _0x1a6f27=0x0;_0x1a6f27<_0x30ee03['length'];_0x1a6f27++)if('elementStart'===_0x30ee03[_0x1a6f27]['type']){_0x30ee03[_0x1a6f27]['previousPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418);const _0x55cc8b=new ut(_0x30ee03[_0x1a6f27]['item']['name'],_0x30ee03[_0x1a6f27]['item']['getAttributes']());_0x339dc5[0x0]['_appendChild'](_0x55cc8b),_0x23f418['push'](0x0),_0x339dc5['unshift'](_0x55cc8b),_0x30ee03[_0x1a6f27]['nextPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418);}else'elementEnd'===_0x30ee03[_0x1a6f27]['type']?(_0x339dc5['shift'](),_0x30ee03[_0x1a6f27]['previousPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418),_0x23f418['pop'](),_0x23f418[_0x23f418['length']-0x1]++,_0x30ee03[_0x1a6f27]['nextPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418)):(_0x30ee03[_0x1a6f27]['previousPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418),_0x55bc1e?_0x55bc1e['_data']+=_0x30ee03[_0x1a6f27]['item']['data']:_0x55bc1e=new wt(_0x30ee03[_0x1a6f27]['item']['data'],_0x30ee03[_0x1a6f27]['item']['getAttributes']()),_0x30ee03[_0x1a6f27+0x1]&&'text'===_0x30ee03[_0x1a6f27+0x1]['type']&&_0x3129f0(_0x55bc1e,_0x30ee03[_0x1a6f27+0x1]['item'])||(_0x339dc5[0x0]['_appendChild'](_0x55bc1e),_0x55bc1e=null),_0x23f418[_0x23f418['length']-0x1]+=_0x30ee03[_0x1a6f27]['item']['offsetSize'],_0x30ee03[_0x1a6f27]['nextPosition']=_0x384a6d['createPositionFromPath'](_0x145462,_0x23f418));for(let _0x1b26bf=0x0;_0x1b26bf<_0x30ee03['length'];_0x1b26bf++){const _0x5beca8=_0x30ee03[_0x1b26bf]['previousPosition'],_0x24903d=_0x30ee03[_0x1b26bf]['nextPosition'];for(const _0x19ec7e of _0x30ee03[_0x1b26bf]['markersStart'])_0x27d3d6['set'](_0x19ec7e,{'start':_0x5beca8,'end':null});_0x312a5d('isRemoveSuggestion',_0x1b26bf,_0x5beca8,_0x24903d),_0x312a5d('isAddSuggestion',_0x1b26bf,_0x5beca8,_0x24903d),_0x312a5d('isRemoved',_0x1b26bf,_0x5beca8,_0x24903d),_0x312a5d('isAdded',_0x1b26bf,_0x5beca8,_0x24903d);for(const _0x417d01 of _0x30ee03[_0x1b26bf]['markersEnd']){_0x27d3d6['get'](_0x417d01)['end']=_0x24903d;}}for(const [_0x35712a,_0x3460ec]of _0x27d3d6){const _0x2f74af=this['editor']['model']['createRange'](_0x3460ec['start'],_0x3460ec['end']);_0x145462['markers']['set'](_0x35712a,_0x2f74af);}return _0x3941d0['sort']((_0x2d3350,_0x35013c)=>{const _0x283d3c=_0x145462['markers']['get']('revision:'+_0x2d3350['id']),_0x13c42c=_0x145462['markers']['get']('revision:'+_0x35013c['id']);return _0x283d3c['start']['isBefore'](_0x13c42c['start'])?-0x1:_0x283d3c['start']['isAfter'](_0x13c42c['start'])?0x1:_0x283d3c['end']['isBefore'](_0x13c42c['end'])?-0x1:_0x283d3c['end']['isAfter'](_0x13c42c['end'])?0x1:'add'===_0x2d3350['type']?-0x1:0x1;}),{'root':_0x145462,'changes':_0x3941d0};function _0x312a5d(_0x19afee,_0x48d38f,_0x54ed0d,_0x12376d){const _0x104017=!!_0x30ee03[_0x48d38f][_0x19afee],_0x597b3e=_0x104017?_0x30ee03[_0x48d38f][_0x19afee]['userId']:null,_0x3c3246=_0x48d38f===_0x30ee03['length']-0x1,_0x568bb9=_0x5b3a98[_0x19afee][0x0],_0x43d33b=_0x39c507['isObject'](_0x30ee03[_0x48d38f]['item']);!_0x43d8f7[_0x19afee]&&_0x104017?_0x43d8f7[_0x19afee]={'start':_0x54ed0d,'tapeItem':_0x30ee03[_0x48d38f],'userId':_0x597b3e,'type':_0x19afee}:_0x43d8f7[_0x19afee]&&!_0x104017?(_0x43d8f7[_0x19afee]['end']=_0x54ed0d,_0x127ba5(_0x43d8f7[_0x19afee]),_0x43d8f7[_0x19afee]=null):_0x43d8f7[_0x19afee]&&_0x104017&&_0x43d8f7[_0x19afee]['userId']!==_0x597b3e&&(_0x43d8f7[_0x19afee]['end']=_0x54ed0d,_0x568bb9&&_0x568bb9['userId']===_0x43d8f7[_0x19afee]['userId']||_0x127ba5(_0x43d8f7[_0x19afee]),_0x43d8f7[_0x19afee]={'start':_0x54ed0d,'tapeItem':_0x30ee03[_0x48d38f],'userId':_0x597b3e,'type':_0x19afee}),_0x43d8f7[_0x19afee]&&_0x43d33b&&('elementStart'!==_0x30ee03[_0x48d38f]['type']||_0x568bb9&&_0x568bb9['userId']===_0x597b3e||_0x5b3a98[_0x19afee]['unshift']({'userId':_0x597b3e,'object':_0x30ee03[_0x48d38f]['item'],'change':_0x43d8f7[_0x19afee]}),'elementEnd'===_0x30ee03[_0x48d38f]['type']&&_0x568bb9&&_0x568bb9['object']===_0x30ee03[_0x48d38f]['item']&&(_0x5b3a98[_0x19afee]['shift'](),_0x43d8f7[_0x19afee]=_0x568bb9['change'])),_0x43d8f7[_0x19afee]&&_0x3c3246&&(_0x43d8f7[_0x19afee]['end']=_0x12376d,_0x127ba5(_0x43d8f7[_0x19afee]),_0x43d8f7[_0x19afee]=null);}function _0x127ba5({start:_0x13f334,end:_0x4cac22,tapeItem:_0x97a5,userId:_0x22edc1,type:_0x4cc7af}){const _0x3d732d=_0x97a5['item'],_0x353d90=_0x384a6d['schema']['isBlock'](_0x3d732d)&&!_0x384a6d['schema']['isLimit'](_0x3d732d),_0x1b67ef=_0x13f334['nodeAfter']==_0x4cac22['parent']&&_0x4cac22['isAtStart'];if(_0x353d90&&_0x1b67ef)return;const _0x142528=_0x384a6d['createRange'](_0x13f334,_0x4cac22),_0x2847a6=_0x3776d7['get'](_0x22edc1),_0x52a8c2=new r({'author':_0x2847a6,'type':'isAdded'==_0x4cc7af||'isAddSuggestion'==_0x4cc7af?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4cc7af||'isRemoveSuggestion'==_0x4cc7af},'createdAt':new Date(),'rootName':_0x8636ae});_0x3941d0['push'](_0x52a8c2),_0x145462['markers']['set']('revision:'+_0x52a8c2['id'],_0x142528);}function _0x3129f0(_0xa7cad1,_0x5f0ff8){const _0x11ad7f=_0xa7cad1['getAttributes'](),_0x576a4b=_0x5f0ff8['getAttributes']();for(const _0x5b92aa of _0x11ad7f){if(_0x5b92aa[0x1]!==_0x5f0ff8['getAttribute'](_0x5b92aa[0x0]))return!0x1;_0x576a4b['next']();}return _0x576a4b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xd8d6b0=>{const _0x194045=_0xd8d6b0['markerName']['split'](':')[0x1],_0x4ee8fd=this['_getChangeFromId'](_0x194045);if(!_0x4ee8fd)return null;const _0x3edd0a='add'==_0x4ee8fd['type']?'insertion':'deletion',_0x1ca0d9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3edd0a];return _0x4ee8fd['data']['isSuggestion']&&_0x1ca0d9['push']('ck-suggestion-marker-'+_0x3edd0a+'-new'),this['activeChange']==_0x4ee8fd&&_0x1ca0d9['push']('ck-suggestion-marker--active'),{'classes':_0x1ca0d9,'attributes':{'data-change-id':_0x194045}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3aed6a=>{_0x3aed6a['on']('element:pre',(_0x2e60ce,_0x4e682d,_0x3fdbb4)=>{const _0x4486da=_0x4e682d['viewItem']['getChild'](0x0);if(!_0x4486da||!_0x4486da['is']('element','code'))return;if(!_0x3fdbb4['consumable']['consume'](_0x4486da,{'attributes':['vid_start','vid_end']}))return;const _0x503c9a=_0x4e682d['modelRange']['start']['nodeAfter'];_0x3fdbb4['writer']['setAttribute']('vid_start',_0x4486da['getAttribute']('vid_start'),_0x503c9a),_0x3fdbb4['writer']['setAttribute']('vid_end',_0x4486da['getAttribute']('vid_end'),_0x503c9a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x115de9=>{_0x115de9['on']('element',(_0x44ee93,_0x107ae9,_0x6dcfa1)=>{if(!_0x6dcfa1['consumable']['consume'](_0x107ae9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x107ae9['modelRange']['isCollapsed'])return;const _0x4a094d=_0x107ae9['modelRange']['start']['nodeAfter'];_0x4a094d['hasAttribute']('vid_start')||_0x4a094d['hasAttribute']('vid')||(_0x6dcfa1['writer']['setAttribute']('vid_start',_0x107ae9['viewItem']['getAttribute']('vid_start'),_0x4a094d),_0x6dcfa1['writer']['setAttribute']('vid_end',_0x107ae9['viewItem']['getAttribute']('vid_end'),_0x4a094d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xbf06e3=>_0xbf06e3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x34c66b,[,_0x25e9e8])=>{['vid_start','vid_end','vid']['includes'](_0x25e9e8)&&(_0x34c66b['return']=!0x0,_0x34c66b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5ac70a=>{_0x5ac70a['on']('attribute:vid',(_0x3a8d19,_0x251055,_0x56ec19)=>{if('\x20'!=_0x251055['item']['data']||_0x251055['item']['parent']['maxOffset']>0x1)return;if(!_0x56ec19['consumable']['consume'](_0x251055['item'],_0x3a8d19['name']))return;const _0xb71967=_0x56ec19['writer'],_0x3e57c1=_0x56ec19['mapper']['toViewRange'](_0x251055['range']);_0xb71967['wrap'](_0x3e57c1,_0xb71967['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x56f816){const _0x7ece9d=_0x56f816['plugins']['get']('RevisionViewer');return(_0x35c241,_0x1bb044,_0x4d7a36)=>{const _0x21c40b=_0x1bb044['markerName']['split'](':')[0x1],_0x528022=_0x7ece9d['_getChangeFromId'](_0x21c40b);if(!_0x528022)return null;const _0x19a254='add'==_0x528022['type']?'split':'merge';if(!_0x4d7a36['consumable']['test'](_0x1bb044['markerRange'],_0x35c241['name']))return;const _0x296e10=_0x1bb044['markerRange']['getWalker'](),_0x144067=_0x1bb044['markerRange']['start'],_0x222cad=_0x56f816['model']['schema'];let _0xcffb9a=null,_0xbcfa8b=null,_0x1e6dc2=!0x1,_0x4c78fe=!0x1;for(const _0x244280 of _0x296e10){const _0x286cb2=_0x244280['item'];_0x1e6dc2=_0x1e6dc2||_0x222cad['isContent'](_0x286cb2);const _0x1417d2=_0x4d7a36['mapper']['toViewElement'](_0x286cb2);if(_0x1417d2&&_0x1417d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x244280['type']&&(_0x222cad['isBlock'](_0x286cb2)&&!_0x222cad['isLimit'](_0x286cb2)&&(_0x286cb2['nextSibling']||_0x144067['isAtEnd']?_0xcffb9a&&_0xcffb9a['parent']==_0x286cb2||(_0xcffb9a=_0x286cb2,_0x24e5bc(_0x244280['previousPosition']),_0x4c78fe=!0x0):_0xbcfa8b=_0xbcfa8b||_0x244280['previousPosition']));}function _0x24e5bc(_0x3e0224){const _0x41b4a2=_0x4d7a36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19a254}),_0x2b61ac=_0x4d7a36['mapper']['toViewPosition'](_0x3e0224);_0x528022['data']['isSuggestion']&&_0x4d7a36['writer']['addClass']('ck-suggestion-marker-'+_0x19a254+'-new',_0x41b4a2),_0x7ece9d['activeChange']==_0x528022&&_0x4d7a36['writer']['addClass']('ck-suggestion-marker--active',_0x41b4a2),_0x4d7a36['writer']['insert'](_0x2b61ac,_0x41b4a2),_0x4d7a36['mapper']['bindElementToMarker'](_0x41b4a2,_0x1bb044['markerName']);}_0x1e6dc2||_0x4c78fe||!_0xbcfa8b||_0x24e5bc(_0xbcfa8b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3cc1d0,_0x493dc4,_0x2ea0fc)=>{const _0x312b3b=_0x2ea0fc['mapper']['markerNameToElements'](_0x493dc4['markerName']);if(_0x312b3b){for(const _0x5264e9 of _0x312b3b)(_0x5264e9['hasClass']('ck-suggestion-marker-split')||_0x5264e9['hasClass']('ck-suggestion-marker-merge'))&&(_0x2ea0fc['mapper']['unbindElementFromMarkerName'](_0x5264e9,_0x493dc4['markerName']),_0x2ea0fc['writer']['remove'](_0x5264e9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x57ecdd,_0x147fac,_0x5affcb)=>{const _0x18a1be=_0x147fac['markerName']['split'](':')[0x1],_0x165a56=this['_getChangeFromId'](_0x18a1be);if(!_0x165a56)return null;const _0x3afb62='add'==_0x165a56['type']?'split':'merge';if(_0x5affcb['consumable']['test'](_0x147fac['markerRange'],_0x57ecdd['name']))for(const _0x2b5348 of _0x147fac['markerRange']['getItems']()){if(!_0x2b5348['is']('element','softBreak'))continue;const _0x57424f=_0x5affcb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3afb62}),_0x32c3ec=_0x5affcb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2b5348));_0x165a56['data']['isSuggestion']&&_0x5affcb['writer']['addClass']('ck-suggestion-marker-'+_0x3afb62+'-new',_0x57424f),this['activeChange']==_0x165a56&&_0x5affcb['writer']['addClass']('ck-suggestion-marker--active',_0x57424f),_0x5affcb['writer']['insert'](_0x32c3ec,_0x57424f),_0x5affcb['mapper']['bindElementToMarker'](_0x57424f,_0x147fac['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1253cb=>{for(const _0x479813 of this['editor']['model']['document']['getRootNames']()){const _0x22d4d7=this['editor']['model']['document']['getRoot'](_0x479813),_0x4f6a30=this['editor']['editing']['view']['document']['getRoot'](_0x479813);if(_0x4f6a30){const _0x24b4e5=_0x22d4d7['getAttribute']('revisionHistoryAttachChange');if(_0x1253cb['removeAttribute']('data-change-id',_0x4f6a30),_0x1253cb['removeClass']('ck-revision-history-root-add',_0x4f6a30),_0x1253cb['removeClass']('ck-revision-history-root-remove',_0x4f6a30),_0x1253cb['removeClass']('ck-revision-history-root--active',_0x4f6a30),_0x24b4e5){const _0x5bbc0b=this['_getChangeFromId'](_0x24b4e5);if(!_0x5bbc0b)return null;_0x1253cb['setAttribute']('data-change-id',_0x24b4e5,_0x4f6a30),_0x1253cb['addClass']('ck-revision-history-root-'+_0x5bbc0b['type'],_0x4f6a30),this['activeChange']==_0x5bbc0b&&_0x1253cb['addClass']('ck-revision-history-root--active',_0x4f6a30);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x6802a5=>'revision-comment:'+_0x6802a5,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5ccde2=>'revision-suggestion:'+_0x5ccde2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2fa942=>({'name':'suggestion:'+_0x2fa942,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x23cabd=>{const _0x10f3c0=_0x23cabd['markerName']['split'](':')[0x1];return'insertion'!=_0x10f3c0&&'deletion'!=_0x10f3c0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x10f3c0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x16f402,_0x1881ee,_0x384aff)=>{const _0x23806f=_0x384aff['mapper']['markerNameToElements'](_0x1881ee['markerName']);if(_0x23806f){for(const _0x53c3ed of _0x23806f)_0x53c3ed['is']('uiElement')&&(_0x384aff['mapper']['unbindElementFromMarkerName'](_0x53c3ed,_0x1881ee['markerName']),_0x384aff['writer']['remove'](_0x53c3ed));}},{'priority':'high'});}['_getChangeFromId'](_0x5f3f66){return this['_changeIdToChange']['get'](_0x5f3f66);}['_getViewForChange'](_0x5bab4e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5bab4e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x58664b,_0xbbcee8,_0xc3552,_0x357111)=>{_0x357111&&this['_balloon']['remove'](_0x357111),_0xc3552&&(this['_balloon']['add']({'view':_0xc3552,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3881c6=this['editor']['editing'],_0x33715a=this['_getChangeFromId'](_0xc3552['changeId']);let _0x3556fd;if(_0x33715a['data']['isOnRoot']){const _0x114a41=_0x3881c6['view']['getDomRoot'](_0x33715a['rootName']);_0x3556fd=Array['from'](_0x114a41['getClientRects']());}else{const _0xe4a9ec=this['editor']['model']['markers']['get']('revision:'+_0xc3552['changeId']);_0x3556fd=Array['from'](_0x3881c6['mapper']['markerNameToElements'](_0xe4a9ec['name']))['map'](_0x287d33=>_0x3881c6['view']['domConverter']['mapViewToDom'](_0x287d33))['map'](_0x384e4f=>Array['from'](_0x384e4f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3556fd[0x0];return _0x3556fd['find'](_0x125cd5=>_0x125cd5['top']-0x3<=this['_activeViewTarget']['y']&&_0x125cd5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x125cd5['left']-0x3<=this['_activeViewTarget']['x']&&_0x125cd5['right']+0x3>=this['_activeViewTarget']['x'])||_0x3556fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2e3d78,_0x5c3d74,_0xef59e5,_0xe3cd15)=>{this['activeView']=_0xef59e5?this['_getViewForChange'](_0xef59e5):null,this['editor']['model']['change'](()=>{const _0x2d67ea=this['editor']['editing'];_0xe3cd15&&(_0xe3cd15['data']['isOnRoot']?_0x2d67ea['view']['change'](_0xf8e13d=>{_0xf8e13d['removeClass']('ck-revision-history-root--active',_0x2d67ea['view']['document']['getRoot'](_0xe3cd15['rootName']));}):_0x2d67ea['reconvertMarker']('revision:'+_0xe3cd15['id'])),_0xef59e5&&(_0xef59e5['data']['isOnRoot']?_0x2d67ea['view']['change'](_0x2a7274=>{_0x2a7274['addClass']('ck-revision-history-root--active',_0x2d67ea['view']['document']['getRoot'](_0xef59e5['rootName']));}):_0x2d67ea['reconvertMarker']('revision:'+_0xef59e5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x30b7b9,_0x1a22ca)=>{if(this['activeChange'])return;const _0x1215c8=this['_findChangeIdFromDomTarget'](_0x1a22ca['target']),_0x440ff0=this['_changeIdToChange']['get'](_0x1215c8);_0x440ff0?(this['_activeViewTarget']={'x':_0x1a22ca['domEvent']['x'],'y':_0x1a22ca['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x440ff0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x13a999,_0x58903e)=>{const _0x49ee7c=this['_findChangeIdFromDomTarget'](_0x58903e['target']),_0x583428=this['_changeIdToChange']['get'](_0x49ee7c);_0x583428?(this['_activeViewTarget']={'x':_0x58903e['domEvent']['x'],'y':_0x58903e['domEvent']['y']},_0x583428===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x583428):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f4f7a){do{const _0x2505f1=_0x2f4f7a['getAttribute']('data-change-id');if(_0x2505f1)return _0x2505f1;_0x2f4f7a=_0x2f4f7a['parent'];}while(_0x2f4f7a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x543d11=>{for(const _0x8c817c of this['editor']['model']['markers'])_0x543d11['removeMarker'](_0x8c817c);});}}function Z(_0x767ede,_0x1ec105){return(_0x229b39,_0x8b64b6,_0x47278b)=>{if(!_0x47278b['consumable']['test'](_0x8b64b6['markerRange'],_0x229b39['name']))return;const _0x1c026e=_0x8b64b6['markerRange']['getWalker'](),_0x5ba45c=_0x8b64b6['markerRange']['start'],_0x20543c=_0x767ede['model']['schema'];let _0x32fdcb=null,_0x319c92=null,_0x3b4ef8=!0x1,_0x37f2d8=!0x1;for(const _0x24fd3f of _0x1c026e){const _0x166bce=_0x24fd3f['item'];_0x3b4ef8=_0x3b4ef8||_0x20543c['isContent'](_0x166bce);const _0x4f68dc=_0x47278b['mapper']['toViewElement'](_0x166bce);if(_0x4f68dc&&_0x4f68dc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24fd3f['type']&&(_0x20543c['isBlock'](_0x166bce)&&!_0x20543c['isLimit'](_0x166bce)&&(_0x166bce['nextSibling']||_0x5ba45c['isAtEnd']?_0x32fdcb&&_0x32fdcb['parent']==_0x166bce||(_0x32fdcb=_0x166bce,_0x5904c8(_0x24fd3f['previousPosition']),_0x37f2d8=!0x0):_0x319c92=_0x319c92||_0x24fd3f['previousPosition']));}function _0x5904c8(_0x4492f7){const _0x203309=_0x47278b['mapper']['toViewPosition'](_0x4492f7),_0x531668=_0x47278b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ec105});_0x47278b['writer']['insert'](_0x203309,_0x531668),_0x47278b['mapper']['bindElementToMarker'](_0x531668,_0x8b64b6['markerName']);}_0x3b4ef8||_0x37f2d8||!_0x319c92||_0x5904c8(_0x319c92);};}class _t extends _0x2d3133{constructor(_0x2c4900){super(_0x2c4900);const _0x5cb8ec=_0x2c4900['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5cb8ec,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cb8ec,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x20a3d3=this['editor'],_0x29a383=_0x20a3d3['plugins']['get'](d),_0x254f3d=_0x29a383['isReady']?_0x29a383['diff']['newRevisionId']:null;_0x20a3d3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x254f3d);}['refresh'](){const {isReady:_0x5e06e5,isEnabled:_0x22f0df,repository:_0x5af01d,diff:_0x2728de}=this['editor']['plugins']['get'](d),_0x20a5ff=_0x2728de&&_0x5af01d['getLaterVisibleRevision'](_0x2728de['newRevisionId']);this['isEnabled']=_0x5e06e5&&_0x22f0df&&Boolean(_0x20a5ff);}}class yt extends _0x2d3133{['_step'];constructor(_0x3fb185,{direction:_0x185d8e}){super(_0x3fb185);const _0x267756=_0x3fb185['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x185d8e?0x1:-0x1,this['listenTo'](_0x267756,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x267756,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x267756,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x443904=this['editor'],_0x34f856=_0x443904['plugins']['get'](d),{isNavigationMode:_0x2cb8d1,currentChangeNumber:_0x2d6aa8}=_0x34f856;let _0x37c769;if(_0x34f856['activeChange']=_0x2cb8d1?_0x34f856['diff']['changes']['get'](_0x2d6aa8+this['_step']):_0x34f856['diff']['changes']['first'],_0x34f856['activeChange']['data']['isOnRoot'])_0x37c769=_0x443904['editing']['view']['getDomRoot'](_0x34f856['activeChange']['rootName']);else{const _0x271851=_0x443904['model']['markers']['get']('revision:'+_0x34f856['activeChange']['id']);_0x37c769=_0x16fe57(_0x443904['editing'],_0x271851);}_0x4bd188({'target':_0x37c769,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x21366d,currentChangeNumber:_0x705800,numberOfChanges:_0x58d29f,isReady:_0x706ace,isEnabled:_0x41ecf0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x41ecf0&&_0x706ace&&_0x58d29f)&&(!_0x21366d||(0x1===this['_step']?_0x705800<_0x58d29f-0x1:_0x705800>0x0));}}class _i extends _0xf43afc{constructor(_0x5c3c11){super(_0x5c3c11);const _0x4c5561=this['bindTemplate'],_0x466d62=new _0xac35f(_0x5c3c11),_0xf6b263=new _0xac35f(_0x5c3c11);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',(_0x583fb8,_0x2d6e78)=>_0x583fb8&&_0x2d6e78>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1fac00,_0x2d985b,_0x26a959,_0x393c9c)=>{if(!_0x1fac00)return m(_0x5c3c11,'Loading...');if(!_0x26a959)return m(_0x5c3c11,'No\x20changes');const _0x222685=m(_0x5c3c11,'NUMBER_OF_CHANGES',_0x26a959);return _0x393c9c?m(_0x5c3c11,'X_OF_Y_CHANGES',[_0x2d985b+0x1,_0x26a959]):_0x222685;}),_0x466d62['set']({'label':m(_0x5c3c11,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x43dd58}),_0xf6b263['set']({'label':m(_0x5c3c11,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x31dfb6}),_0x466d62['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xf6b263['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x466d62['on']('execute',()=>this['fire']('execute','backward')),_0xf6b263['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',_0x4c5561['if']('_isStatusLabelVisible','ck-hidden',_0x4d5943=>!_0x4d5943)]},'children':[{'text':_0x4c5561['to']('isNavigationMode',_0x22588f=>_0x22588f?m(_0x5c3c11,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5c3c11,'Total')+':\x20')}]},{'text':_0x4c5561['to']('_statusText')}]},new _0x715ea8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x466d62,_0xf6b263]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x360162{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x13aa5b=this['editor']['editing']['view'];_0x13aa5b['change'](_0x5bc721=>{for(const _0x40566e of _0x13aa5b['document']['roots'])_0x5bc721['addClass'](ce,_0x40566e);});}['hide'](){const _0x33d6ea=this['editor']['editing']['view'];_0x33d6ea['change'](_0x204352=>{for(const _0x41d0b3 of _0x33d6ea['document']['roots'])_0x204352['removeClass'](ce,_0x41d0b3);});}}class w extends _0x360162{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x41dcb0=this['editor'],_0x1506f9=_0x41dcb0['plugins']['get'](d),_0x18445c=_0x41dcb0['plugins']['get'](le);_0x41dcb0['ui']['componentFactory']['add']('exitToEditing',_0x314e5d=>{const _0x2e85f5=new _0xac35f(_0x314e5d);return _0x2e85f5['set']({'label':m(_0x314e5d,'Back\x20to\x20editing'),'icon':_0x14f32b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2e85f5,'execute',()=>{_0x41dcb0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2e85f5;}),_0x41dcb0['ui']['componentFactory']['add']('restoreRevision',_0x3eacd9=>{const _0x59bb31=new _0xac35f(_0x3eacd9);return _0x59bb31['set']({'label':m(_0x3eacd9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x59bb31['bind']('isEnabled')['to'](_0x41dcb0['commands']['get']('restoreRevision')),this['listenTo'](_0x59bb31,'execute',()=>_0x41dcb0['execute']('restoreRevision')),_0x59bb31;}),_0x41dcb0['ui']['componentFactory']['add']('changesNavigation',_0x2188a9=>{const _0x591da2=new _i(_0x2188a9),_0x18e353=_0x41dcb0['commands']['get']('showPreviousChange'),_0x53466c=_0x41dcb0['commands']['get']('showNextChange');return _0x591da2['bind']('isBackwardNavigationEnabled')['to'](_0x18e353,'isEnabled'),_0x591da2['bind']('isForwardNavigationEnabled')['to'](_0x53466c,'isEnabled'),_0x591da2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1506f9),this['listenTo'](_0x591da2,'execute',(_0xfe37e,_0xe4f15e)=>{_0x41dcb0['execute']('forward'===_0xe4f15e?'showNextChange':'showPreviousChange');}),_0x591da2;}),_0x18445c['show'](),_0x1506f9['on']('change:isReady',(_0x3a0988,_0x4938e5,_0x5ac98a)=>{_0x5ac98a?_0x18445c['hide']():_0x18445c['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x468eed,_0x324bee){super(_0x468eed,_0x324bee);const _0x101ead=this['bindTemplate'];this['set']({'label':m(_0x468eed,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x468eed,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x101ead['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 _0x3195e1=this['fieldView']['element'];this['_tooltipString']=_0x3195e1['scrollWidth']>_0x3195e1['clientWidth']&&_0x3195e1['value']||'';}}class oi extends _0xf43afc{constructor(_0x37e862,_0x3d0b38,_0x303d3e){super(_0x37e862);const _0x1f3602=new _0x82b58c();_0x1f3602['set']({'content':_0x3f89ec,'viewBox':'0\x200\x2011\x2010'});const _0x50786f=['ck','ck-revision-history-sidebar__revision-author'];_0x303d3e&&_0x50786f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x317c82=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x37e862,_0x303d3e?'Revision\x20creator':'Revision\x20author')},'children':[_0x1f3602,_0x3d0b38['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x50786f},'children':_0x317c82});}}function ni(_0xef3e0a,_0x4873ca){const _0x31b8ae=_0xef3e0a['bindTemplate'],_0x26a5e4=_0xef3e0a['locale'],_0x513cf6=_0x36cbf8(_0x26a5e4);_0x513cf6['panelPosition']='sw';const _0x1d8c6c=function(_0x1444af,_0x2bd284){const _0x1d91a2=function(_0x8cf3c5,_0x4e4832){const _0x53d73e=_0x8cf3c5['locale'],_0x418118={'Compare\x20against\x20selected':m(_0x53d73e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x53d73e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x53d73e,'Restore\x20this\x20revision')};return _0x4e4832['map'](_0x514bfb=>{const _0x4282e4=_0x418118[_0x514bfb['name']];return _0x4282e4&&_0x4282e4!==_0x514bfb['name']&&(_0x514bfb['name']=_0x4282e4),_0x514bfb;});}(_0x1444af,_0x2bd284),_0x459255=new _0xd7d3a9();for(const _0x24467a of _0x1d91a2){const _0x4757ee={'type':'button','model':new to({'label':_0x24467a['name'],'class':_0x24467a['class'],'withText':!0x0,'role':'menuitem','_action':_0x24467a['action']})};_0x4757ee['model']['bind']('isEnabled')['to'](_0x1444af,'isActionsDropdownOpen',_0x437426=>'function'!=typeof _0x24467a['isEnabled']||(!_0x437426||_0x24467a['isEnabled'](_0x1444af))),_0x459255['add'](_0x4757ee);}return _0x459255;}(_0xef3e0a,_0x4873ca);return _0xef3e0a['bind']('isActionsDropdownOpen')['to'](_0x513cf6,'isOpen'),_0x513cf6['buttonView']['set']({'label':m(_0x26a5e4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2764f3}),_0x513cf6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x31b8ae['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x31b8ae['to'](_0x33b483=>_0x33b483['stopPropagation']())}}),_0x513cf6['on']('execute',_0x51f129=>{_0xef3e0a['isReady']&&'function'==typeof _0x51f129['source']['_action']&&_0x51f129['source']['_action'](_0xef3e0a);}),_0x4d676f(_0x513cf6,_0x1d8c6c,{'role':'menu'}),_0x513cf6['listenTo'](_0xef3e0a,'change:isActionsDropdownOpen',(_0x112901,_0x58a330,_0x2b036d)=>{if(_0x2b036d)for(const _0x4c780d of _0x513cf6['listView']['items']){const _0x35feb5=_0x4c780d['children']['first'],_0x5dc185=_0x4873ca['find'](_0x4c23e5=>_0x4c23e5['action']===_0x35feb5['_action'])['isVisible'];_0x4c780d['isVisible']=void 0x0===_0x5dc185||_0x5dc185(_0xef3e0a);}}),_0x513cf6;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4bf595(_0xf43afc){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1670cb,_0x185cf0,_0x44e8fc,_0x4d8156){super(_0x1670cb);const _0x4e29d0=this['bindTemplate'],_0x3bb91e=function(_0x3c2191,_0x347a6d){const _0x376a47=Array['from'](_0x347a6d['authors'])['filter'](_0x44af05=>_0x44af05!=_0x347a6d['creator']);return _0x347a6d['creator']&&_0x376a47['unshift'](_0x347a6d['creator']),_0x376a47['map'](_0x226326=>new oi(_0x3c2191,_0x226326,_0x226326==_0x347a6d['creator']));}(_0x1670cb,_0x185cf0);this['id']=_0x185cf0['id'],this['_revision']=_0x185cf0,this['_requireRevisionName']=_0x4d8156,this['bind']('name','createdAt')['to'](_0x185cf0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x390f14=>{return _0x62df40=_0x1670cb['uiLanguage'],(_0x5585b3=_0x390f14)['toLocaleDateString'](_0x62df40,{'month':'long','day':'numeric'})+',\x20'+_0x5585b3['toLocaleTimeString'](_0x62df40,{'hour':'numeric','minute':'numeric'});var _0x62df40,_0x5585b3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1670cb,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x436bc9=>_0x436bc9||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x39088d,_0x4121af)=>_0x39088d&&_0x4121af),this['revisionActionsView']=_0x44e8fc&&_0x44e8fc['length']?ni(this,_0x44e8fc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4e29d0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4e29d0['if']('isEnabled','ck-disabled',_0x6d7af=>!_0x6d7af),_0x4e29d0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4e29d0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4e29d0['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':_0x4e29d0['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':_0x3bb91e}]},this['revisionActionsView']],'on':{'click':_0x4e29d0['to'](_0x3e6e5e=>{_0x3e6e5e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x40985a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x40985a,'change',()=>{this['_requireRevisionName']&&!_0x40985a['value']||this['fire']('setName',{'id':this['id'],'name':_0x40985a['value']}),_0x40985a['value']||(_0x40985a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x555982,_0x40d457){const _0x572db8=_0x23f9e1['fromJSDate'](_0x555982)['setLocale'](_0x40d457),_0x4a72e4=_0x23f9e1['local'](),_0x9c613a=_0x4a72e4['minus']({'days':0x1})['startOf']('day');let _0x58dc95,_0x4417fd;return _0x572db8['hasSame'](_0x4a72e4,'day')?(_0x58dc95=_0x572db8['startOf']('day')['toJSDate'](),_0x4417fd=_0x572db8['toRelativeCalendar']()):_0x572db8['hasSame'](_0x9c613a,'day')?(_0x58dc95=_0x9c613a['toJSDate'](),_0x4417fd=_0x572db8['toRelativeCalendar']()):_0x572db8['hasSame'](_0x4a72e4,'week')?(_0x58dc95=_0x572db8['startOf']('week')['toJSDate'](),_0x4417fd=_0x572db8['weekdayLong']||''):_0x572db8['hasSame'](_0x4a72e4,'year')?(_0x58dc95=_0x572db8['startOf']('month')['toJSDate'](),_0x4417fd=_0x572db8['monthLong']||''):(_0x58dc95=_0x572db8['startOf']('year')['toJSDate'](),_0x4417fd=String(_0x572db8['year'])),{'startDate':_0x58dc95,'localizedPeriodName':_0x4417fd};}class mi extends _0xf43afc{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e240f,_0x148efa,_0x2f34eb,_0x7b8e05){super(_0x2e240f);const _0x442323=vi(_0x148efa,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x148efa,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2f34eb,this['_requireRevisionName']=_0x7b8e05,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':_0x442323}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2cf5c5){const _0x4edd63=new ai(this['locale'],_0x2cf5c5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4edd63);}['removeRevision'](_0x2e40e9){const _0x5d86d8=this['revisionViews']['find'](_0x190789=>_0x190789['id']===_0x2e40e9['id']);this['revisionViews']['remove'](_0x5d86d8);}}class as extends _0xf43afc{constructor(_0x20a604){super(_0x20a604);const _0x7a1de0=new _0x82b58c();_0x7a1de0['content']=_0x43ad56,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x7a1de0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x20a604,'Revision\x20history')]}]});}}class di extends _0xf43afc{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x19c40,_0x2a75e0,_0xcde2b3,_0x27aa30){super(_0x19c40);const _0x4d36d6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2a75e0,this['_revisionActions']=_0xcde2b3,this['_requireRevisionName']=_0x27aa30,this['on']('select',(_0x10e166,_0x32841c)=>{this['fire']('revisionSelected',_0x32841c);}),this['on']('setName',(_0x4bb9c5,_0x38684f)=>{this['fire']('revisionSetName',_0x38684f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x19c40),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4d36d6['if']('isEnabled','ck-disabled',_0x2c0b22=>!_0x2c0b22)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x93f730 of this['_revisions'])this['_addRevision'](_0x93f730);this['_revisions']['on']('add',(_0x1558ea,_0x36816a)=>{this['_addRevision'](_0x36816a);}),this['_revisions']['on']('remove',(_0xdae601,_0x366a06)=>{this['_removeRevision'](_0x366a06);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x53c25b=>_0x53c25b['revisionViews']['map'](_0x150002=>_0x150002))['flat']();}['selectRevision'](_0x24f1cc){for(const _0xf9cf60 of this['revisionViews'])_0x24f1cc&&_0x24f1cc['id']===_0xf9cf60['id']?_0xf9cf60['select']():_0xf9cf60['deselect']();}['highlightRevisions'](_0x2f42a2){for(const _0x5db1fc of this['revisionViews'])_0x2f42a2['some'](({id:_0x16b6f1})=>_0x16b6f1===_0x5db1fc['id'])?_0x5db1fc['highlight']():_0x5db1fc['unhighlight']();}['_addRevision'](_0x15f00c){const _0x57e846=vi(_0x15f00c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x108644=this['timePeriodViews']['get'](0x0);_0x108644&&_0x108644['startDate']['getTime']()===_0x57e846['getTime']()||(_0x108644=new mi(this['locale'],_0x57e846,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x108644)),_0x108644['addRevision'](_0x15f00c);}['_removeRevision'](_0x46d04a){const _0x470201=vi(_0x46d04a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x470201)['removeRevision'](_0x46d04a);}['_getTimePeriodViewByStartDate'](_0x32a691){return this['timePeriodViews']['find'](_0xb76315=>_0xb76315['startDate']['getTime']()===_0x32a691['getTime']());}}class g extends _0x360162{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b7a72,_0x3e1527){super(_0x3e1527),this['sourceElement']=_0x4b7a72,this['model']['document']['createRoot']();const _0x509cc9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x509cc9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x381ab5,_0x2c1509){const _0x164173=new this(_0x381ab5,_0x2c1509);return await _0x164173['initPlugins'](),await _0x164173['ui']['init'](_0x381ab5),await _0x164173['data']['init'](_0x164173['config']['get']('initialData')||''),_0x164173['fire']('ready'),_0x164173;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3cb746{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xea5803){function _0x503937(_0x421c9e){return _0x421c9e['map'](_0x5913b6=>String['fromCharCode'](_0x5913b6))['join']('');}super(_0xea5803),this['result']='end',_0xea5803[_0x503937([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x503937([0x76,0x69,0x65,0x77])][_0x503937([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x503937([0x61,0x75,0x74,0x6f]),_0xea5803[_0x503937([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x503937([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x503937([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x503937([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x503937([0x6f,0x6b])});}}class k extends _0x3cb746{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x599ba5){if(super(_0x599ba5),!this['editor']['config']['get']('revisionHistory'))throw new _0x3923b7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x477f18=>this['_showRevisionViewer']({..._0x477f18,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xa40713=>this['_closeRevisionViewer'](_0xa40713)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3951ea=>this['_restoreRevision'](_0x3951ea)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e7fa6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e7fa6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x41f1f4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x41f1f4);}['getRevision'](_0x9dde86){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x9dde86);}['getRevisions'](_0x23f841){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x23f841||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x530f56=this['editor'],_0x210d62=_0x7c0588(_0x530f56,p),_0xd9528c=_0x530f56['plugins']['get']('RevisionTracker'),_0x379015=_0x530f56['plugins']['get']('Users')['users'];return _0x210d62['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x210d62['lazyRoots'],(_0x210d62['plugins']['push'](Rt,d,w,class extends _0x3cb746{static get['requires'](){return[d,'Users'];}['init'](){const _0x28137a=this['editor']['plugins']['get']('Users');for(const _0x599925 of _0x379015)_0x599925['isAnonymous']||_0x28137a['getUser'](_0x599925['id'])||_0x28137a['addUser'](_0x599925);const _0x3badb8=_0xd9528c['repository']['getRevisions']();let _0x471f1b=null;const _0x5d64f8=this['editor']['plugins']['get']('RevisionViewer');_0x5d64f8['adapter']=_0xd9528c['adapter'],_0x5d64f8['bind']('isEnabled')['to'](_0xd9528c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x530f56,'isReadOnly',_0x52779c=>!_0x52779c);for(const _0x2d82d9 of _0x3badb8){const _0x533254=null===_0x2d82d9['creator'];if(_0x533254&&_0x2d82d9['toVersion']===_0x2d82d9['fromVersion'])continue;const _0x8e72e3=_0x2d82d9['toJSON']();_0x5d64f8['addRevisionData'](_0x8e72e3,(_0x39cb16,_0x8518ef,_0x8f13db)=>{if(_0x533254){if(_0x471f1b)_0x471f1b['_update'](_0x39cb16,_0x8518ef);else{if(!_0x8518ef){const _0x5ace3e=_0x8f13db['toJSON']();_0x5ace3e['id']=_0x5e10e6(),_0xd9528c['saveRevision'](_0x5ace3e,_0x8f13db['toVersion'])['then'](_0x5af9e6=>{_0x471f1b=_0x5af9e6;});}}}else _0x2d82d9['_update'](_0x39cb16,_0x8518ef);});}}},g),_0x210d62);}['_enhanceShowRevisionViewerCallback'](){const _0x450a9d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e4273=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x327728=this['editor']['plugins']['get']('Autosave');await _0x327728['save']();}else await _0x1e4273['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2e4699=this['editor']['plugins']['get']('Dialog');_0x2e4699['isOpen']&&_0x2e4699['hide']();}const _0x5e94bf=this['_getRevisionViewerEditorConfig']();return _0x450a9d(_0x5e94bf)['then'](_0x1162b5=>{return(this['_viewerEditor']=_0x1162b5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1162b5;})['catch'](_0x18eb5a=>(console['error'](_0x18eb5a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d8229=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'](),_0x4d8229(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d5bce=this['editor']['plugins']['get']('Annotations');_0x5d5bce['refreshVisibility'](),_0x5d5bce['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2c9571){const _0xac37d2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x159693=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x458910=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x458910,_0x2c9571)['then'](_0x4e2e82=>(_0x159693['style']['display']='block',_0xac37d2['style']['display']='none',_0x4e2e82));}['_closeRevisionViewer'](_0x287c06){const _0x5aafb3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5aafb3['style']['display']='',_0x287c06['destroy']();}async['_restoreRevision'](_0x1b3a82){const _0x22d6b3=this['editor'],_0x5e9da2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40110c=_0x22d6b3['plugins']['get']('RevisionTracker'),_0x51bbe4=_0x5e9da2['repository']['getRevision'](_0x1b3a82);let _0x3f4354,_0x163475,_0x599d3c;try{_0x3f4354=await _0x5e9da2['getRevisionData'](_0x51bbe4),_0x163475=await _0x5e9da2['getRevisionRootsAttributes'](_0x51bbe4);}catch(_0x5b65b4){return void console['error'](_0x5b65b4);}_0x22d6b3['model']['change'](_0x5e490a=>{for(const _0x1cfd7d of Array['from'](_0x22d6b3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5e490a['removeMarker'](_0x1cfd7d);}),_0x5e9da2['isReady']=!0x1,_0x22d6b3['model']['enqueueChange'](_0x521d21=>{_0x521d21['setSelection'](null),_0x521d21['removeSelectionAttribute'](_0x22d6b3['model']['document']['selection']['getAttributeKeys']());const _0x5621c0=Object['keys'](_0x3f4354);for(const _0x1e41c2 of _0x22d6b3['model']['document']['roots'])'$graveyard'!=_0x1e41c2['rootName']&&_0x1e41c2['isAttached']()&&!_0x5621c0['includes'](_0x1e41c2['rootName'])&&_0x521d21['detachRoot'](_0x1e41c2);for(const _0x51d093 of _0x5621c0){let _0x472eeb=_0x22d6b3['model']['document']['getRoot'](_0x51d093);_0x472eeb&&_0x472eeb['isAttached']()||(_0x472eeb=_0x521d21['addRoot'](_0x51d093));const _0x724cd1=_0x163475[_0x51d093],_0x127141=Object['keys'](_0x724cd1),_0x2da24e=_0x3f4354[_0x51d093];for(const _0x1b169e of _0x472eeb['getAttributeKeys']())_0x127141['includes'](_0x1b169e)||_0x521d21['removeAttribute'](_0x1b169e,_0x472eeb);for(const _0x30ff4f of _0x127141)_0x521d21['setAttribute'](_0x30ff4f,_0x163475[_0x51d093][_0x30ff4f],_0x472eeb);_0x521d21['remove'](_0x521d21['createRangeIn'](_0x472eeb)),_0x521d21['insert'](_0x22d6b3['data']['parse'](_0x2da24e,_0x472eeb),_0x472eeb,0x0);}});const _0x22a7e5=m(_0x22d6b3['locale'],'Restored');if(_0x51bbe4['name'])_0x599d3c=-0x1==_0x51bbe4['name']['indexOf'](_0x22a7e5)?_0x22a7e5+':\x20'+_0x51bbe4['name']:_0x51bbe4['name'];else _0x599d3c=_0x22a7e5+':\x20'+(_0x51bbe4['createdAt']['toLocaleDateString'](_0x22d6b3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x51bbe4['createdAt']['toLocaleTimeString'](_0x22d6b3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40110c['saveRevision']({'name':_0x599d3c}),_0x5e9da2['isReady']=!0x0,_0x22d6b3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3a9560){super(_0x3a9560),this['_revisionViewer']=_0x3a9560['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15ca67=this['_revisionsRepository']['_revisions'],_0x5f50c8=this['_createRevisionActions'](),_0x3f7735=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x15ca67,_0x5f50c8,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',(_0x4bb81b,_0x196153)=>{_0x196153['revisionViews']['on']('add',(_0x81fee6,_0x507efe)=>{_0x507efe['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)),_0x3f7735['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x44b1a1=this['_revisionsRepository']['getRevision'](0x0);if(_0x44b1a1){const _0x576393=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x44b1a1['id']);this['_revisionViewer']['compare'](_0x44b1a1,_0x576393);}}['_handleRevisionSelected'](_0x2f28fd,_0x221cec){const _0x4164f9=this['_revisionsRepository']['getRevision'](_0x221cec['id']),_0x4b84eb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4164f9['id']);this['_revisionViewer']['compare'](_0x4164f9,_0x4b84eb);}['_handleRevisionSetName'](_0x12db7a,_0x2126a2){this['_revisionsRepository']['getRevision'](_0x2126a2['id'])['setName'](_0x2126a2['name']);}['_handleDiffChange'](_0x3e184c,_0x1698a0,_0x1e3679){const _0x5e7b8e=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e3679);_0x5e7b8e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5e7b8e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5e7b8e[0x0]));}['_createRevisionActions'](){const _0x1ae1d6=this['editor'],_0x9d366b=g['availableRevisionActions'],_0x5da7c2=_0x1ae1d6['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5da7c2['length'])return _0x5da7c2['map'](_0x46f5a7=>{const _0x110c79='string'==typeof _0x46f5a7?Object['assign']({},_0x9d366b[_0x46f5a7]):_0x46f5a7;return _0x110c79['action']=_0x110c79['action']['bind'](this,_0x1ae1d6),_0x110c79['isVisible']&&(_0x110c79['isVisible']=_0x110c79['isVisible']['bind'](this,_0x1ae1d6)),_0x110c79;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x730e81},_0x12c671)=>{const _0x37fc9e=_0x730e81['get'](d),_0x4047d5=_0x37fc9e['repository'];let _0x567492=_0x37fc9e['diff']['newRevisionId'],_0x142600=_0x12c671['id'];_0x4047d5['getIndex'](_0x567492)>_0x4047d5['getIndex'](_0x142600)&&([_0x567492,_0x142600]=[_0x142600,_0x567492]),_0x37fc9e['compare'](_0x567492,_0x142600);},'isVisible':({plugins:_0x5be81c},_0x5ddfcd)=>{const _0x2df5b4=_0x5be81c['get'](d);return!(_0x2df5b4['repository']['getRevisionsInDiff'](_0x2df5b4['diff'])['length']>0x2)&&!_0x5ddfcd['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x523d75,{id:_0x4d765d})=>{_0x523d75['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4d765d);},'isVisible':({plugins:_0x15ad91},_0x49c4c0)=>!!_0x15ad91['get'](d)['repository']['getLaterVisibleRevision'](_0x49c4c0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x483a0f},{id:_0x6e0091,revisionNameView:_0x45930a})=>{const _0x2df965=_0x483a0f['get'](d),_0x964b0c=_0x2df965['repository']['getEarlierVisibleRevision'](_0x6e0091);_0x2df965['compare'](_0x6e0091,_0x964b0c),_0x45930a['focus'](),_0x45930a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1bce19,_0x32f598){super(_0x1bce19),this['_view']=_0x32f598,this['_toolbarConfig']=ot(_0x1bce19['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1a6ddc){const _0x43205f=this['editor'],_0x359db0=this['view'],_0x344f73=_0x43205f['editing']['view'],_0x8a9ecb=_0x359db0['editable'],_0x4cb600=_0x344f73['document']['getRoot']();_0x8a9ecb['name']=_0x4cb600['rootName'],_0x359db0['render']();const _0x33aa99=_0x8a9ecb['element'];this['setEditableElement'](_0x8a9ecb['name'],_0x33aa99),_0x359db0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x344f73['attachDomRoot'](_0x33aa99),this['_elementReplacer']['replace'](_0x1a6ddc,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x418d59=this['view'],_0x4a62aa=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4a62aa['detachDomRoot'](_0x418d59['editable']['name']),_0x418d59['destroy']();}['_initToolbar'](){const _0x5af0d5=this['view'];_0x5af0d5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5af0d5['stickyPanel']['limiterElement']=_0x5af0d5['element'],_0x5af0d5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x8f0927})=>_0x8f0927),_0x5af0d5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5af0d5['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3083b5,_0x5e8548,_0xfe23a8={}){super(_0x3083b5),this['stickyPanel']=new lt(_0x3083b5),this['toolbar']=new nt(_0x3083b5,{'shouldGroupWhenFull':_0xfe23a8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3083b5,_0x5e8548);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x17506c,_0x37ab1b){super(_0x37ab1b),this['sourceElement']=_0x17506c,this['model']['document']['createRoot']();const _0x4ca242=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4ca242);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x27e601,_0x55858f){const _0x5b7bc5=new this(_0x27e601,_0x55858f);return await _0x5b7bc5['initPlugins'](),await _0x5b7bc5['ui']['init'](_0x27e601),await _0x5b7bc5['data']['init'](_0x5b7bc5['config']['get']('initialData')||''),_0x5b7bc5['fire']('ready'),_0x5b7bc5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x360162{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d43af){function _0x5cdbee(_0x410809){return _0x410809['map'](_0x1db1e0=>String['fromCharCode'](_0x1db1e0))['join']('');}super(_0x4d43af),this['result']='end',_0x4d43af[_0x5cdbee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cdbee([0x76,0x69,0x65,0x77])][_0x5cdbee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cdbee([0x61,0x75,0x74,0x6f]),_0x4d43af[_0x5cdbee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5cdbee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cdbee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5cdbee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5cdbee([0x6f,0x6b])});}}class k extends _0x360162{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3a2334){if(super(_0x3a2334),!this['editor']['config']['get']('revisionHistory'))throw new _0x306a38('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1ea3b9=>this['_showRevisionViewer']({..._0x1ea3b9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a64d1=>this['_closeRevisionViewer'](_0x2a64d1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x404e66=>this['_restoreRevision'](_0x404e66)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x114e84){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x114e84;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5cc1f9){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5cc1f9);}['getRevision'](_0x20f7fc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x20f7fc);}['getRevisions'](_0xeca734){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xeca734||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3631e6=this['editor'],_0x200808=_0x59131f(_0x3631e6,p),_0x47d5a3=_0x3631e6['plugins']['get']('RevisionTracker'),_0x268dc3=_0x3631e6['plugins']['get']('Users')['users'];return _0x200808['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x200808['lazyRoots'],(_0x200808['plugins']['push'](Rt,d,w,class extends _0x360162{static get['requires'](){return[d,'Users'];}['init'](){const _0x3bb99e=this['editor']['plugins']['get']('Users');for(const _0xc0303c of _0x268dc3)_0xc0303c['isAnonymous']||_0x3bb99e['getUser'](_0xc0303c['id'])||_0x3bb99e['addUser'](_0xc0303c);const _0x3067e4=_0x47d5a3['repository']['getRevisions']();let _0x597dbf=null;const _0x140721=this['editor']['plugins']['get']('RevisionViewer');_0x140721['adapter']=_0x47d5a3['adapter'],_0x140721['bind']('isEnabled')['to'](_0x47d5a3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3631e6,'isReadOnly',_0x287add=>!_0x287add);for(const _0x4e3c82 of _0x3067e4){const _0x4b518e=null===_0x4e3c82['creator'];if(_0x4b518e&&_0x4e3c82['toVersion']===_0x4e3c82['fromVersion'])continue;const _0x105f32=_0x4e3c82['toJSON']();_0x140721['addRevisionData'](_0x105f32,(_0x3883db,_0x3b968c,_0x18b061)=>{if(_0x4b518e){if(_0x597dbf)_0x597dbf['_update'](_0x3883db,_0x3b968c);else{if(!_0x3b968c){const _0x5911cd=_0x18b061['toJSON']();_0x5911cd['id']=_0x3bf3c3(),_0x47d5a3['saveRevision'](_0x5911cd,_0x18b061['toVersion'])['then'](_0x1a8fcd=>{_0x597dbf=_0x1a8fcd;});}}}else _0x4e3c82['_update'](_0x3883db,_0x3b968c);});}}},g),_0x200808);}['_enhanceShowRevisionViewerCallback'](){const _0x3c851f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x182252=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x405442=this['editor']['plugins']['get']('Autosave');await _0x405442['save']();}else await _0x182252['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5afaa2=this['editor']['plugins']['get']('Dialog');_0x5afaa2['isOpen']&&_0x5afaa2['hide']();}const _0x2ec308=this['_getRevisionViewerEditorConfig']();return _0x3c851f(_0x2ec308)['then'](_0x9f4451=>{return(this['_viewerEditor']=_0x9f4451,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x9f4451;})['catch'](_0x2e6998=>(console['error'](_0x2e6998),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x26b9ca=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'](),_0x26b9ca(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x215aa8=this['editor']['plugins']['get']('Annotations');_0x215aa8['refreshVisibility'](),_0x215aa8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x42551e){const _0x57543f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3e3135=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x432259=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x432259,_0x42551e)['then'](_0x2e63ee=>(_0x3e3135['style']['display']='block',_0x57543f['style']['display']='none',_0x2e63ee));}['_closeRevisionViewer'](_0x5b2ccb){const _0x10caf8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x10caf8['style']['display']='',_0x5b2ccb['destroy']();}async['_restoreRevision'](_0x547b6e){const _0x438b3c=this['editor'],_0x386378=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e380b=_0x438b3c['plugins']['get']('RevisionTracker'),_0xcc74e7=_0x386378['repository']['getRevision'](_0x547b6e);let _0x5617f3,_0x15fef0,_0x405af6;try{_0x5617f3=await _0x386378['getRevisionData'](_0xcc74e7),_0x15fef0=await _0x386378['getRevisionRootsAttributes'](_0xcc74e7);}catch(_0x2144ca){return void console['error'](_0x2144ca);}_0x438b3c['model']['change'](_0x5d5bf4=>{for(const _0x11dec9 of Array['from'](_0x438b3c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d5bf4['removeMarker'](_0x11dec9);}),_0x386378['isReady']=!0x1,_0x438b3c['model']['enqueueChange'](_0x204c49=>{_0x204c49['setSelection'](null),_0x204c49['removeSelectionAttribute'](_0x438b3c['model']['document']['selection']['getAttributeKeys']());const _0x192f83=Object['keys'](_0x5617f3);for(const _0x1db98f of _0x438b3c['model']['document']['roots'])'$graveyard'!=_0x1db98f['rootName']&&_0x1db98f['isAttached']()&&!_0x192f83['includes'](_0x1db98f['rootName'])&&_0x204c49['detachRoot'](_0x1db98f);for(const _0x13207e of _0x192f83){let _0x43d041=_0x438b3c['model']['document']['getRoot'](_0x13207e);_0x43d041&&_0x43d041['isAttached']()||(_0x43d041=_0x204c49['addRoot'](_0x13207e));const _0x251c6c=_0x15fef0[_0x13207e],_0x33662e=Object['keys'](_0x251c6c),_0xe665bb=_0x5617f3[_0x13207e];for(const _0xc7dfe9 of _0x43d041['getAttributeKeys']())_0x33662e['includes'](_0xc7dfe9)||_0x204c49['removeAttribute'](_0xc7dfe9,_0x43d041);for(const _0xc9c45c of _0x33662e)_0x204c49['setAttribute'](_0xc9c45c,_0x15fef0[_0x13207e][_0xc9c45c],_0x43d041);_0x204c49['remove'](_0x204c49['createRangeIn'](_0x43d041)),_0x204c49['insert'](_0x438b3c['data']['parse'](_0xe665bb,_0x43d041),_0x43d041,0x0);}});const _0x2a5aa9=m(_0x438b3c['locale'],'Restored');if(_0xcc74e7['name'])_0x405af6=-0x1==_0xcc74e7['name']['indexOf'](_0x2a5aa9)?_0x2a5aa9+':\x20'+_0xcc74e7['name']:_0xcc74e7['name'];else _0x405af6=_0x2a5aa9+':\x20'+(_0xcc74e7['createdAt']['toLocaleDateString'](_0x438b3c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xcc74e7['createdAt']['toLocaleTimeString'](_0x438b3c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e380b['saveRevision']({'name':_0x405af6}),_0x386378['isReady']=!0x0,_0x438b3c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|