@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250404.0 → 0.0.0-nightly-20250406.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/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x32ac1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x242b73){super(),this['id']=_0x242b73['id']||_0x3cce8a(),this['creator']=_0x242b73['creator']||null,this['authors']=_0x242b73['authors']||[],this['diffData']=_0x242b73['diffData']||null,this['toVersion']=_0x242b73['toVersion']||0x0,this['fromVersion']=_0x242b73['fromVersion']||0x0,this['set']('name',_0x242b73['name']||''),this['set']('createdAt',_0x242b73['createdAt']||new Date()),this['set']('attributes',_0x242b73['attributes']||{});}['setName'](_0x558e8c){this['_update']({'name':_0x558e8c});}['setAttribute'](_0x20df84,_0x5ef25d){const _0x23192f=_0x425cb6(this['attributes']);_0x57adba(_0x23192f,_0x20df84,_0x5ef25d),this['_update']({'attributes':_0x23192f});}['removeAttribute'](_0x4ec302){const _0x219ac0=_0x425cb6(this['attributes']);_0x17aa25(_0x219ac0,_0x4ec302),this['_update']({'attributes':_0x219ac0});}['_update'](_0x367977,_0x3a999f=!0x1){let _0x505320=!0x1;const _0x33ed43={'id':this['id']},_0x2f6b98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d560f of _0x2f6b98){const _0x51cad9=_0x367977[_0x5d560f];void 0x0!==_0x51cad9&&_0x51cad9!==this[_0x5d560f]&&(this[_0x5d560f]=_0x51cad9,_0x33ed43[_0x5d560f]=_0x51cad9,_0x505320=!0x0);}_0x505320&&(_0x33ed43['authors']&&(_0x33ed43['authorsIds']=_0x33ed43['authors']['map'](_0x310acf=>_0x310acf['id']),delete _0x33ed43['authors']),this['fire']('_update',_0x33ed43,_0x3a999f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x152d6a=>_0x152d6a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x432e21{['_revisions'];static get['requires'](){return[_0x3dc44b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x566325){super(_0x566325),this['_revisions']=new _0xce0641();}['afterInit'](){!async function(_0x35ea75){const _0x34e125=_0x586b0a([0x31,0x47,0x59,0x6f,0x58,0x57,0x42,0x73,0x49,0x76,0x36,0x61,0x39,0x69,0x64,0x74,0x38,0x56,0x4a,0x6b,0x66,0x41,0x7a,0x75,0x78,0x51,0x65,0x4c,0x77,0x6c,0x4e,0x45,0x44,0x67,0x43,0x33,0x5a,0x52,0x34,0x6e,0x4d,0x6d,0x54,0x4f,0x4b,0x48,0x30,0x71,0x63,0x62,0x55,0x46,0x72,0x37,0x35,0x50,0x68,0x6a,0x70,0x32,0x79,0x53]),_0x446c10=0xeb829,_0xf77bf=0x3045620b,_0x3765ee=0x3042061b^_0xf77bf,_0x507615=window[_0x586b0a([0x44,0x61,0x74,0x65])][_0x586b0a([0x6e,0x6f,0x77])](),_0x4d7946=_0x35ea75[_0x586b0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d8934=new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad7a2=>{_0x4d7946[_0x586b0a([0x6f,0x6e,0x63,0x65])](_0x586b0a([0x72,0x65,0x61,0x64,0x79]),_0x3ad7a2);}),_0x52564b={[_0x586b0a([0x6b,0x74,0x79])]:_0x586b0a([0x45,0x43]),[_0x586b0a([0x75,0x73,0x65])]:_0x586b0a([0x73,0x69,0x67]),[_0x586b0a([0x63,0x72,0x76])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36]),[_0x586b0a([0x78])]:_0x586b0a([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]),[_0x586b0a([0x79])]:_0x586b0a([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]),[_0x586b0a([0x61,0x6c,0x67])]:_0x586b0a([0x45,0x53,0x32,0x35,0x36])},_0x4c2bdb=_0x4d7946[_0x586b0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586b0a([0x67,0x65,0x74])](_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f88e7(){let _0x3a329f,_0x548f87=null,_0x490929=null;try{if(_0x4c2bdb==_0x586b0a([0x47,0x50,0x4c]))return _0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a329f=_0x473fdd(),!_0x3a329f)return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x490929=_0xe1e3da(_0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a329f[_0x586b0a([0x6a,0x74,0x69])])),await _0x330207()?_0x160d31()?_0x2d5606()?_0x586b0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa3190b()?(_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x548f87=_0x5b1317(_0x586b0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x548f87=_0x5b1317(_0x586b0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x170165()):_0x586b0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xcc3091){return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d5606(){const _0x4b2e84=[_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586b0a([0x74,0x72,0x69,0x61,0x6c])][_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x507615/0x3e8:0xe10*_0x3765ee;return _0x3a329f[_0x586b0a([0x65,0x78,0x70])]<_0x4b2e84;}function _0x160d31(){const _0x2e63cb=_0x3a329f[_0x586b0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e63cb)return!0x1;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x48])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x52,0x48]))){if(_0x5c38ef())return!0x0;if(_0x4aab5b()||_0x1eb3a8())return!0x0;}return!0x1;}function _0xa3190b(){const _0x88a12c=_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x88a12c||0x0==_0x88a12c[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x456b0d}=new URL(window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x88a12c[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x456b0d))return!0x0;const _0x316c53=_0x456b0d[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));return _0x88a12c[_0x586b0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c166b=>_0x1c166b[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))[_0x586b0a([0x6d,0x61,0x70])](_0x5e1743=>_0x5e1743[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])))[_0x586b0a([0x73,0x6f,0x6d,0x65])](_0x5e35c6=>_0x316c53[_0x586b0a([0x65,0x76,0x65,0x72,0x79])]((_0x3460fd,_0x2bf476)=>_0x5e35c6[_0x2bf476]===_0x3460fd||_0x5e35c6[_0x2bf476]===_0x586b0a([0x2a])));}function _0x170165(){return _0x548f87&&_0x490929?new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x738da8,_0x21f192)=>{_0x548f87[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x738da8,_0x21f192),_0x490929[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x14241e=>{_0x14241e!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x738da8(_0x14241e);},_0x21f192);}):_0x548f87||_0x490929||_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe1e3da(_0x59a386,_0x6368e2){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31848b=>{if(_0x4f086f())return _0x31848b(_0x586b0a([0x56,0x61,0x6c,0x69,0x64]));_0x260865(),_0x4d7946[_0x586b0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4df40c=!0x1;const _0x9d5888=_0x3cce8a();function _0x13c769(_0x1fad3e){return!!_0x1fad3e&&(typeof _0x1fad3e===_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fad3e===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fad3e[_0x586b0a([0x74,0x68,0x65,0x6e])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fad3e[_0x586b0a([0x63,0x61,0x74,0x63,0x68])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x544e92(_0x4dd172){_0x3fcb1c(_0x4dd172)[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x4ae90a=>{if(!_0x4ae90a||_0x4ae90a[_0x586b0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586b0a([0x6f,0x6b]))return _0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40863b(_0x4bfe5c(_0x9d5888+_0x6368e2))!=_0x4ae90a[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x389653=>(_0x367f13(),_0x389653),()=>{const _0x8702e8=_0x4e56ba();return null==_0x8702e8?(_0x367f13(),_0x586b0a([0x56,0x61,0x6c,0x69,0x64])):_0x586b0a(_0x507615-_0x8702e8>(0x1449e60b^_0xf77bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x31848b)[_0x586b0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b8ddc=0x30738c8b^_0xf77bf;function _0x367f13(){const _0x612bef=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x48ee08=_0x36d4bf(_0x40863b(window[_0x586b0a([0x4d,0x61,0x74,0x68])][_0x586b0a([0x63,0x65,0x69,0x6c])](_0x507615/_0x2b8ddc)));window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x612bef,_0x48ee08);}function _0x4e56ba(){const _0xbeec34=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x341c72=window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbeec34);return _0x341c72?window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d4bf(_0x341c72),0x10)*_0x2b8ddc:null;}function _0x3fcb1c(_0x28abb8){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc159,_0x337d91)=>{_0x28abb8[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x3cc159,_0x337d91),window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x337d91,0x3044b6cb^_0xf77bf);});}}_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc8854a,_0x12da6c)=>{if(_0x12da6c[0x0]!=_0x59a386)return _0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12da6c[0x1]={..._0x12da6c[0x1],[_0x586b0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9d5888};},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x68,0x69,0x67,0x68])}),_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20f03b=>{_0x13c769(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4df40c=!0x0,_0x544e92(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x6c,0x6f,0x77])}),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>{_0x4df40c||_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f086f(){return _0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586b0a([0x61,0x75,0x74,0x6f]);}function _0x260865(){_0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586b0a([0x61,0x75,0x74,0x6f]);}}function _0x5b1317(_0x421ec4){const _0x35f1c6=[new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28f4b1=>setTimeout(_0x28f4b1,0x304c5cc7^_0xf77bf)),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131bdd=>{const _0x2d77a8=0x3045620c^_0xf77bf,_0x201840=_0x35ea75[_0x586b0a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xe01963(){_0x201840[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d77a8&&_0x131bdd();}_0xe01963(),_0x201840[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x61,0x64,0x64]),_0xe01963);})),new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a9d8c=>{function _0x122ed8(){for(const _0x2941eb in window)if(window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2941eb))&&window[_0x2941eb]==_0x446c10)return _0x7a9d8c();_0x4d7946[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]!=_0x586b0a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x122ed8,0x30457183^_0xf77bf);}_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x122ed8();})];return window[_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586b0a([0x72,0x61,0x63,0x65])](_0x35f1c6)[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>_0x421ec4);}async function _0x1609ce(){if(await _0x4d8934,_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x425e5=_0x35ea75[_0x586b0a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5ea55d=_0x35ea75[_0x586b0a([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])](_0x425e5[_0x586b0a([0x69,0x64])]),_0x5f9010=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x425e5['id'],_0x5ea55d?_0x5ea55d['id']:null,!0x0),_0x5f9010[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f9010[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x161478,void(_0x5f9010[_0x586b0a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x161478);}if(_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4d7c04=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4d7c04[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d7c04[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d7c04[_0x586b0a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x161478,_0x4d7c04[_0x586b0a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x161478;}_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c38ef(){return _0x24e608(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d22fd(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]==_0x586b0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4aab5b(){return _0x24e608(_0x586b0a([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 _0x1eb3a8(){return _0x24e608(_0x586b0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58b1c9(_0x29057a){const _0x5906ef=_0x20e2ed();_0x4d7946[_0x5906ef]=_0x586b0a([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])+_0x29057a,_0x29057a[_0x586b0a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20e2ed()]=_0x446c10),_0x29057a!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x1609ce();}function _0x20e2ed(){const _0x297c2e=window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586b0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586b0a([0x6e,0x6f,0x77])]())[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586b0a([0x2e]),'');let _0x20e9c6=_0x586b0a([0x47]);for(let _0xdda36b=0x0;_0xdda36b<_0x297c2e[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdda36b+=0x2){let _0x4d202c=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x297c2e[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdda36b,_0xdda36b+0x2));_0x4d202c>=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d202c-=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20e9c6+=_0x34e125[_0x4d202c];}return _0x20e9c6;}function _0x473fdd(){const _0x52d733=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));if(0x3!=_0x52d733[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f20b(_0x52d733[0x1]);function _0x3f20b(_0x3ed752){const _0x1169d4=_0x49ec89(_0x3ed752);return _0x1169d4&&_0x5d6414()?_0x1169d4:null;function _0x5d6414(){const _0x4c4638=_0x1169d4[_0x586b0a([0x6a,0x74,0x69])],_0x2bb76b=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c9591={..._0x1169d4,[_0x586b0a([0x6a,0x74,0x69])]:_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c9591[_0x586b0a([0x76,0x63])],_0x4bfe5c(_0x5c9591)==_0x2bb76b;}}}async function _0x330207(){let _0x8818bf=!0x0;try{const _0x3e519c=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])),[_0x4697d9,_0x5410c3,_0x226f8d]=_0x3e519c;return _0x39f448(_0x4697d9),await _0x102a66(_0x4697d9,_0x5410c3,_0x226f8d),_0x8818bf;}catch(_0x2faee6){return!0x1;}function _0x39f448(_0x5a9e6c){const _0x421d8c=_0x49ec89(_0x5a9e6c);_0x421d8c&&_0x421d8c[_0x586b0a([0x61,0x6c,0x67])]==_0x586b0a([0x45,0x53,0x32,0x35,0x36])||(_0x8818bf=!0x1);}async function _0x102a66(_0x109151,_0x4fa9cb,_0x27c745){const _0x4fec97=window[_0x586b0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586b0a([0x66,0x72,0x6f,0x6d])](_0x4d7972(_0x27c745),_0x4b2f19=>_0x4b2f19[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cc5b6=new window[(_0x586b0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586b0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x109151+_0x586b0a([0x2e])+_0x4fa9cb),_0x39f353=window[_0x586b0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586b0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39f353)return;const _0x458c99=await _0x39f353[_0x586b0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586b0a([0x6a,0x77,0x6b]),_0x52564b,{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39f353[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x68,0x61,0x73,0x68])]:{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x458c99,_0x4fec97,_0x1cc5b6)||(_0x8818bf=!0x1);}}function _0x49ec89(_0x5e62c6){return _0x5e62c6[_0x586b0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x65,0x79]))?JSON[_0x586b0a([0x70,0x61,0x72,0x73,0x65])](_0x4d7972(_0x5e62c6)):null;}function _0x4d7972(_0x3e0618){return window[_0x586b0a([0x61,0x74,0x6f,0x62])](_0x3e0618[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586b0a([0x2b]))[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586b0a([0x2f])));}function _0x4bfe5c(_0x12743f){let _0x45b42e=0x1505;function _0xb4bdd6(_0x2cda28){for(let _0x30be49=0x0;_0x30be49<_0x2cda28[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30be49++){const _0x13e60c=_0x2cda28[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30be49);_0x45b42e=(_0x45b42e<<0x5)+_0x45b42e+_0x13e60c,_0x45b42e&=_0x45b42e;}}function _0x370d7a(_0x284fc7){Array[_0x586b0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x284fc7)?_0x284fc7[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370d7a):_0x284fc7&&typeof _0x284fc7==_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586b0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x284fc7)[_0x586b0a([0x73,0x6f,0x72,0x74])]()[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47a201,_0x5cfd6d])=>{_0xb4bdd6(_0x47a201),_0x370d7a(_0x5cfd6d);}):_0xb4bdd6(window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x284fc7));}return _0x370d7a(_0x12743f),_0x45b42e>>>0x0;}function _0x40863b(_0x557e58){return _0x557e58[_0x586b0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586b0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586b0a([0x30]));}function _0x36d4bf(_0x1c2f19){return _0x1c2f19[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586b0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586b0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x24e608(_0x1992f5){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x68,0x61,0x73])](_0x1992f5);}function _0x4d22fd(_0x2d71a3){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x67,0x65,0x74])](_0x2d71a3);}function _0x161478(){}function _0x586b0a(_0x153e05){return _0x153e05['map'](_0x4f6460=>String['fromCharCode'](_0x4f6460))['join']('');}_0x58b1c9(await _0x1f88e7());}(this);}['createRevision'](_0x247579){const _0x5f32ec=this['editor']['plugins']['get']('Users');return new h({'id':_0x247579['id'],'name':_0x247579['name'],'creator':_0x247579['creatorId']?_0x5f32ec['getUser'](_0x247579['creatorId']):null,'diffData':_0x247579['diffData']||_0x247579['data'],'authors':_0x247579['authorsIds']['map'](_0x39f138=>_0x5f32ec['getUser'](_0x39f138)),'createdAt':new Date(_0x247579['createdAt']),'attributes':_0x247579['attributes'],'fromVersion':_0x247579['fromVersion'],'toVersion':_0x247579['toVersion']});}['addRevision'](_0x1a8679,_0x1252f1=0x0){this['_revisions']['add'](_0x1a8679,_0x1252f1);}['getRevision'](_0x599f9a){return this['_revisions']['get'](_0x599f9a);}['getRevisions'](_0x5cb0d9={'toJSON':!0x1}){const _0x4297e3=Array['from'](this['_revisions']);return _0x4297e3['reverse'](),_0x5cb0d9['toJSON']?_0x4297e3['map'](_0x204373=>_0x204373['toJSON']()):_0x4297e3;}['getIndex'](_0x46d606){return this['_revisions']['getIndex'](_0x46d606);}['getEarlierVisibleRevision'](_0x1027c2){const [,_0x1c6d52]=this['getRevisionsIterator'](_0x1027c2,{'direction':'earlier'});return _0x1c6d52;}['getLaterVisibleRevision'](_0x208fc7){const [,_0x240e49]=this['getRevisionsIterator'](_0x208fc7,{'direction':'later'});return _0x240e49;}['getRevisionsInDiff'](_0x1f7b14){const _0x15d0a8=[];for(const _0x1b0921 of this['getRevisionsIterator'](_0x1f7b14['newRevisionId']))if(_0x15d0a8['push'](_0x1b0921),_0x1b0921['id']===_0x1f7b14['oldRevisionId'])break;return _0x15d0a8;}*['getRevisionsIterator'](_0x57415d,{direction:_0x1abb59='earlier',filter:_0x2a4a4b=()=>!0x0}={}){const _0x5cbf0a='earlier'===_0x1abb59?0x1:-0x1;let _0x3b7021=this['_revisions']['get'](_0x57415d),_0x1c6bab=this['getIndex'](_0x3b7021);for(yield _0x3b7021;_0x3b7021;){if(_0x1c6bab+=_0x5cbf0a,_0x3b7021=this['getRevision'](_0x1c6bab),!_0x3b7021)return;_0x2a4a4b(_0x3b7021)&&(yield _0x3b7021);}}}class V extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3750d4,'c'],[_0x24e0cf,'a'],[_0xb18752,'e'],[_0x22b748,'r'],[_0x47bfc5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3750d4],['a',_0x24e0cf],['e',_0xb18752],['r',_0x22b748],['u',_0x47bfc5]]);async['loadRevisionData'](_0x36b982,_0x46a9e0){if(_0x36b982['diffData']||!_0x46a9e0)return;const _0x1297ca=this['editor']['config']['get']('collaboration.channelId'),_0x518f5f=await _0x46a9e0['getRevision']({'channelId':_0x1297ca,'revisionId':_0x36b982['id']});_0x36b982['diffData']=_0x518f5f['diffData'];}['getRevisionDocumentData'](_0x3b7c1e){const _0x515ade={};for(const _0x28925c in _0x3b7c1e['diffData']){if(_0x3b7c1e['diffData'][_0x28925c]['attachChange']&&!_0x3b7c1e['diffData'][_0x28925c]['attachChange']['isAttached'])continue;const _0x35a028=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7c1e['diffData'][_0x28925c]['insertions'])),_0xce55fa=this['editor']['editing']['view']['document'],_0x25e6ee=new _0x72ffd8(_0xce55fa,_0x35a028['map'](_0x205190=>this['_getViewFromDiffObj'](_0x205190,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x515ade[_0x28925c]=this['editor']['data']['processor']['toData'](_0x25e6ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x515ade;}['getRevisionRootsAttributes'](_0x5a7978){const _0x437da1={};for(const _0x3f1377 in _0x5a7978['diffData'])_0x5a7978['diffData'][_0x3f1377]['attachChange']&&!_0x5a7978['diffData'][_0x3f1377]['attachChange']['isAttached']||(_0x437da1[_0x3f1377]=_0x5a7978['diffData'][_0x3f1377]['attributesAfter']||{});return _0x437da1;}['_getTypeCharForViewElement'](_0x1bf321){return this['_viewClassToTypeChar']['get'](_0x1bf321['constructor']);}['_getViewFromDiffObj'](_0xc692d3,_0x442d4e){const _0x2b1436=this['editor']['editing']['view']['document'];if('string'==typeof _0xc692d3)return new _0x565d05(_0x2b1436,_0xc692d3);{let _0x490cb0,_0x20703d;_0x20703d='u'==_0xc692d3['type']||'r'==_0xc692d3['type']?[]:_0xc692d3['children']['map'](_0x53f544=>this['_getViewFromDiffObj'](_0x53f544,_0x442d4e));const _0x30f477=this['_typeCharToViewClass']['get'](_0xc692d3['type'])||_0x194c36,_0x3eb901=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x490cb0=new _0x30f477(_0x2b1436,_0xc692d3['name'],_0xc692d3['attributes'],_0x20703d),'u'==_0xc692d3['type']){const _0x4252b6=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x3e3312){const _0x5bf7cb=_0x3e3312['createElement']('div');return _0x5bf7cb['innerHTML']=_0x4252b6,_0x5bf7cb['childNodes'][0x0];},_0x442d4e){const _0x40a750=new _0x72ffd8(_0x2b1436);_0x40a750['_appendChild'](_0x490cb0);const _0x26c472=Array['from'](_0x3eb901['viewChildrenToDom'](_0x40a750,{'bind':!0x1})),_0x18522b=_0x3eb901['domDocument']['createElement']('div');_0x18522b['append'](..._0x26c472),_0x490cb0=Array['from'](_0x3eb901['domChildrenToView'](_0x18522b))[0x0];}}else{if('r'==_0xc692d3['type']){const _0x19d2f7=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x26682c){_0x26682c['innerHTML']=_0x19d2f7;},_0x442d4e){const _0x4c1d18=new _0x72ffd8(_0x2b1436);_0x4c1d18['_appendChild'](_0x490cb0);const _0x3d9cc1=Array['from'](_0x3eb901['viewChildrenToDom'](_0x4c1d18,{'bind':!0x1})),_0x22c718=_0x3eb901['domDocument']['createElement']('div');_0x22c718['append'](..._0x3d9cc1);const _0x23f871=Array['from'](_0x3eb901['domChildrenToView'](_0x22c718));_0x23f871['length']>0x1?_0x490cb0['_appendChild'](_0x23f871):_0x490cb0=_0x23f871[0x0];}}}if(_0xc692d3['customProperties']){for(const [_0x32da38,_0x2d2073]of _0xc692d3['customProperties'])_0x490cb0['_setCustomProperty'](_0x32da38,_0x2d2073);}const _0x4c4455=_0xc692d3['fillerOffset']||null;return _0x490cb0['getFillerOffset']=()=>_0x4c4455,_0x490cb0;}}['_makeModelFromViewString'](_0x479f7e){const _0x51333f=JSON['parse'](_0x479f7e),_0xa17f8b=this['editor']['editing']['view']['document'],_0x343f8d=new _0x72ffd8(_0xa17f8b,_0x51333f['map'](_0x136b17=>this['_getViewFromDiffObj'](_0x136b17,!0x0)));return this['editor']['data']['toModel'](_0x343f8d);}['_removeRevisionMarkers'](_0x35c329){return(_0x35c329=_0x35c329['filter'](_0xdb3a17=>!_0xdb3a17['name']||'revision-start'!==_0xdb3a17['name']&&'revision-end'!==_0xdb3a17['name']))['forEach'](_0x39df5e=>{'string'!=typeof _0x39df5e&&(_0x39df5e['children']=this['_removeRevisionMarkers'](_0x39df5e['children']),_0x39df5e['attributes']=_0x39df5e['attributes']['filter'](_0x1c2824=>!_0x1c2824[0x0]['startsWith']('data-revision-')));}),_0x35c329;}}function g(_0x652f76,_0x399c91,_0xc00436){const t=_0x652f76['t'];switch(_0x399c91){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'},_0xc00436);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc00436);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x432e21{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3dc44b,I,V,_0x10e408];}constructor(_0x3a9383){super(_0x3a9383),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x109028=_0x3cce8a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x109028},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4a43b3=this['repository']['getRevision'](0x0),_0x5031cc=_0x4a43b3&&null===_0x4a43b3['creator']?_0x4a43b3:null;if(this['_continueCurrentRevision']=!!_0x5031cc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x540782=this['_source']['getCurrentRevisionId'](),_0x4b62c9=this['repository']['getRevision'](_0x540782);if(_0x4b62c9)this['_startingVersion']=_0x4b62c9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x59a25b=this['_source']['history']['_operations']['find'](_0x237998=>!_0x237998['_isInit']),_0x4f863b=_0x59a25b?_0x59a25b['baseVersion']:this['_source']['history']['version'];_0x4a43b3?(_0x4a43b3['toVersion']<_0x4f863b&&_0x4a43b3['_update']({'toVersion':_0x4f863b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['fromVersion']):(this['_startingVersion']=_0x4a43b3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f863b,this['_continueCurrentRevision']=!0x1);}}else _0x5031cc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5031cc['toVersion'],this['editor']['model']['document']['history']['version']),_0x5031cc['fromVersion']===_0x5031cc['toVersion']?(0x0!==_0x5031cc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['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',_0x14a7a6=>!_0x14a7a6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4577f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13e714;for(const _0xa6fa85 in _0x4577f0){const _0x5cb9f2=_0xa6fa85,_0x2a28f1=_0x4577f0[_0x5cb9f2];if('revisionHistoryLicenseKeyValid'==_0x2a28f1||'revisionHistoryLicenseKeyInvalid'==_0x2a28f1||'revisionHistoryLicenseKeyExpired'==_0x2a28f1||'revisionHistoryLicenseKeyDomainLimit'==_0x2a28f1||'revisionHistoryLicenseKeyNotAllowed'==_0x2a28f1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a28f1||'revisionHistoryLicenseKeyTrialLimit'==_0x2a28f1||'revisionHistoryLicenseKeyUsageLimit'==_0x2a28f1){delete _0x4577f0[_0x5cb9f2],_0x13e714=_0x2a28f1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x13e714&&_0x4577f0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x13e714&&_0x4577f0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x13e714&&_0x4577f0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x241cc7=this['repository']['getRevision'](0x0),_0x3d7135=await this['getRevisionDocumentData'](_0x241cc7),_0x5deab6=await this['getRevisionRootsAttributes'](_0x241cc7);this['_replaceEditorDataWithRevisionData'](_0x3d7135,_0x5deab6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3157dd){this['_source']=_0x3157dd;}async['update'](){const _0x340ebf=await this['_source']['getLatestVersion']();if(_0x340ebf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e40d0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x340ebf});_0x4e40d0['authors']=_0x4e40d0['authorsIds']['map'](_0x1f8091=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f8091)),this['currentRevision']['_update'](_0x4e40d0);}}async['saveRevision'](_0x3171a3={},_0x320ddf=null){const _0xd2f18e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x320ddf>this['currentRevision']['toVersion']&&(_0x320ddf=null),null===_0x320ddf&&(_0x320ddf=await this['_source']['getLatestVersion']());const _0x5543c4=this['_getFromVersion'](_0x320ddf),_0x3a87f1=this['buildRevisionData']({'from':_0x5543c4,'to':_0x320ddf});if(this['currentRevision']['toVersion']<_0x320ddf){const _0xc38b0f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x320ddf,'to':_0x320ddf});_0xc38b0f['authors']=[],_0xc38b0f['authorsIds']=[],_0xc38b0f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc38b0f,!0x0),delete _0xc38b0f['authors'],_0xd2f18e['push'](_0xc38b0f);}_0x3171a3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3171a3['name']=_0x3171a3['name']||null,_0x3171a3['id']=_0x3171a3['id']||_0x3cce8a(),_0x3171a3={..._0x3171a3,..._0x3a87f1};const _0x240471=this['addRevisionData'](_0x3171a3);_0xd2f18e['push'](_0x3171a3);const _0x4502a4=this['repository']['getIndex'](_0x240471);if(0x0!==_0x4502a4){const _0x24c38d=this['repository']['getRevision'](_0x4502a4-0x1);if(_0x24c38d['fromVersion']!==_0x320ddf){const _0x1f33e8=this['_revisionDataBuilder']['getData'](_0x320ddf,_0x24c38d['toVersion']),_0x38e2f9={'id':_0x24c38d['id'],'diffData':_0x1f33e8['diffData'],'authorsIds':_0x1f33e8['authorsIds'],'authors':_0x1f33e8['authorsIds']['map'](_0x57acc6=>this['editor']['plugins']['get']('Users')['getUser'](_0x57acc6)),'fromVersion':_0x320ddf};_0x24c38d===this['currentRevision']&&(_0x38e2f9['createdAt']=new Date(_0x3171a3['createdAt']['getTime']()+0xa)),_0x24c38d['_update'](_0x38e2f9,!0x0),delete _0x38e2f9['authors'],_0xd2f18e['push'](_0x38e2f9);}}if(this['adapter']){for(const _0x1a4ac2 of _0xd2f18e)this['_bufferUpdate'](_0x1a4ac2['id'],_0x1a4ac2,!0x0);this['sendBufferedUpdates']();}return _0x240471;}['addRevisionData'](_0x4a2abd){const _0x19e191=this['repository']['createRevision'](_0x4a2abd);return this['adapter']&&_0x19e191['on']('_update',(_0x4a764b,_0x4e64ab,_0x26dfcb)=>{_0x26dfcb||(this['_bufferUpdate'](_0x4e64ab['id'],_0x4e64ab,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x19e191,this['_findInsertionIndex'](_0x19e191)),_0x19e191;}async['getRevisionDocumentData'](_0x207c05){return await this['_utils']['loadRevisionData'](_0x207c05,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x207c05);}async['getRevisionRootsAttributes'](_0xfdfb9a){return await this['_utils']['loadRevisionData'](_0xfdfb9a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xfdfb9a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x287b16=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x411447=0x0;_0x411447<_0x287b16['length'];_0x411447++){const _0x4f8132=_0x287b16[_0x411447];let _0x176d97=!0x1;for(const _0x524311 of Object['keys'](_0x4f8132))void 0x0===_0x4f8132[_0x524311]?delete _0x4f8132[_0x524311]:'id'!==_0x524311&&(_0x176d97=!0x0);_0x176d97||(_0x287b16[_0x411447]=null);}if(_0x287b16=_0x287b16['filter'](_0x151a1c=>null!==_0x151a1c),!_0x287b16['length'])return;for(let _0x1f3dac=0x0;_0x1f3dac<_0x287b16['length'];_0x1f3dac++){const _0x285c56=_0x287b16[_0x1f3dac];void 0x0!==_0x285c56['fromVersion']&&void 0x0===_0x285c56['toVersion']&&(_0x285c56['toVersion']=this['repository']['getRevision'](_0x285c56['id'])['toVersion']),void 0x0!==_0x285c56['toVersion']&&void 0x0===_0x285c56['fromVersion']&&(_0x285c56['fromVersion']=this['repository']['getRevision'](_0x285c56['id'])['fromVersion']);}const _0x442901=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x287b16,_0x442901)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x59fc1c=>{if(_0x59fc1c){for(const _0xb41172 of _0x59fc1c)this['setRevisionData']({'id':_0xb41172['id'],'createdAt':_0xb41172['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5b5f2a=null,from:_0x57a4fb=null,to:_0x2efc0d=null}){_0x57a4fb=null!==_0x57a4fb?_0x57a4fb:_0x5b5f2a['fromVersion'],_0x2efc0d=null!==_0x2efc0d?_0x2efc0d:_0x5b5f2a['toVersion'];const _0x4ad924=this['_revisionDataBuilder']['getData'](_0x57a4fb,_0x2efc0d),_0x5415e1={'diffData':_0x4ad924['diffData'],'authorsIds':_0x4ad924['authorsIds'],'fromVersion':_0x57a4fb,'toVersion':_0x2efc0d};if(!_0x5b5f2a||_0x2efc0d!==_0x5b5f2a['toVersion']){const _0x1cf18f=_0x2efc0d-0x1,_0x5c0eef=this['_source']['history']['getOperation'](_0x1cf18f);_0x5415e1['createdAt']=_0x5c0eef&&_0x5c0eef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x57a4fb===this['_loadedStateData']['fromVersion']){for(const _0x45294f of this['_loadedStateData']['authors'])_0x5415e1['authorsIds']['includes'](_0x45294f['id'])||_0x5415e1['authorsIds']['push'](_0x45294f['id']);}return _0x5415e1;}['_bufferUpdate'](_0x306535,_0x42a304,_0xaad1b1){if(this['_bufferedUpdates']['has'](_0x306535)){const _0x17af2a=this['_bufferedUpdates']['get'](_0x306535);_0x42a304=_0xaad1b1?{..._0x17af2a,..._0x42a304}:{..._0x42a304,..._0x17af2a};}this['_bufferedUpdates']['set'](_0x306535,_0x42a304);}['setRevisionData'](_0x8276e0){const _0x310e0f=this['repository']['getRevision'](_0x8276e0['id']);if(_0x8276e0['createdAt']&&(_0x8276e0['createdAt']=new Date(_0x8276e0['createdAt'])),_0x8276e0['authorsIds']){const _0x497343=this['editor']['plugins']['get']('Users');_0x8276e0['authors']=_0x8276e0['authorsIds']['map'](_0x570427=>_0x497343['getUser'](_0x570427));}_0x310e0f['_update'](_0x8276e0,!0x0);}['_createInitialRevision'](_0x43e180){const _0x4002a4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4002a4)this['_initialRevisionId']=_0x4002a4['id'];else{const _0x4ebd86=!this['editor']['model']['document']['roots']['find'](_0x455fb4=>this['editor']['model']['hasContent'](_0x455fb4)),_0x20ab4b=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ed336=g(this['editor']['locale'],_0x4ebd86?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43e180,'to':_0x43e180,'id':this['_initialRevisionId'],'name':_0x2ed336,'creatorId':_0x20ab4b});}}['_createCurrentRevision'](_0x2b2090){const _0x36ff3f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x36ff3f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2b2090,'to':_0x2b2090,'id':_0x36ff3f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x100239,_0x27eb5e){let _0x2123af=this['editor']['config']['get']('initialData'),_0x3fd40c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2123af){_0x2123af={};for(const _0x2ce058 of this['editor']['model']['document']['getRootNames']())_0x2123af[_0x2ce058]='';}if('string'==typeof _0x2123af&&(_0x2123af={'main':_0x2123af}),void 0x0===_0x3fd40c){_0x3fd40c={};for(const _0xc390e2 of this['editor']['model']['document']['getRootNames']())_0x3fd40c[_0xc390e2]={};}let _0x2f10eb=!0x1;const _0x4abf65=Object['keys'](_0x2123af),_0x5e6068=Object['keys'](_0x100239);for(const _0x2ee0e2 of _0x4abf65){if(_0x2123af[_0x2ee0e2]!==_0x100239[_0x2ee0e2]&&''!==_0x2123af[_0x2ee0e2]['trim']()){_0x2f10eb=!0x0;break;}if(!_0x1aed24(_0x3fd40c[_0x2ee0e2],_0x27eb5e[_0x2ee0e2])&&Object['keys'](_0x3fd40c[_0x2ee0e2])['length']>0x0){_0x2f10eb=!0x0;break;}}_0x2f10eb||(_0x2f10eb=_0x5e6068['some'](_0x3377c8=>!this['editor']['model']['document']['getRoot'](_0x3377c8))),_0x2f10eb&&_0x611ad9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2123af,'editorRootsAttributes':_0x3fd40c,'revisionData':_0x100239,'revisionRootsAttributes':_0x27eb5e}),this['editor']['config']['set']('initialData',_0x100239),this['editor']['config']['set']('rootsAttributes',_0x27eb5e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1fa5a4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1fa5a4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37b8a7){const _0x4de234=this['repository']['getRevisions']();_0x4de234['reverse']();let _0x47e743=0x0;for(;_0x47e743<_0x4de234['length'];){const _0x78b2ed=_0x4de234[_0x47e743];if(_0x78b2ed===this['currentRevision']){_0x47e743++;continue;}if(_0x78b2ed['id']===this['_initialRevisionId'])break;const _0xb9da2a=_0x37b8a7['toVersion']-_0x78b2ed['toVersion']||_0x37b8a7['fromVersion']-_0x78b2ed['fromVersion'];if(_0xb9da2a>0x0)break;if(_0xb9da2a<0x0)_0x47e743++;else{if(!_0x37b8a7['creator']&&_0x78b2ed['creator'])break;if(_0x78b2ed['creator']||!_0x37b8a7['creator']){if(_0x37b8a7['createdAt']>_0x78b2ed['createdAt'])break;_0x47e743++;}else _0x47e743++;}}return _0x47e743;}['_getFromVersion'](_0x38ad21){const _0x19f24f=this['repository']['getRevisions']();_0x19f24f['reverse'](),_0x19f24f['shift']();const _0x57cd3b=_0x19f24f['find'](_0x29f50c=>_0x29f50c['toVersion']<=_0x38ad21)['toVersion'];return _0x57cd3b<this['_startingVersion']?this['_startingVersion']:_0x57cd3b;}['_makeRevision']({name:_0x1ea738,from:_0x1539fd,to:_0x5528f3,creatorId:_0x3c814a,id:_0x247945}){const _0x6360e8=this['buildRevisionData']({'from':_0x1539fd,'to':_0x5528f3});_0x6360e8['name']=_0x1ea738,_0x6360e8['creatorId']=_0x3c814a,_0x6360e8['id']=_0x247945;const _0x2511e3=this['addRevisionData'](_0x6360e8);return this['adapter']&&this['_bufferUpdate'](_0x6360e8['id'],_0x6360e8,!0x0),_0x2511e3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x27f5df){this['editor']=_0x27f5df,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'](_0x53d056){this['source']=_0x53d056;const _0x30dca0=new Map(),_0x546dc8=new Map(),_0x7d7df6=this['editor']['model']['document']['roots']['map'](_0x10642c=>_0x10642c['rootName']);for(const _0x3823ff of _0x7d7df6){const _0x556587=this['editor']['model']['document']['getRoot'](_0x3823ff),_0x3d434a=N(_0x556587);_0x30dca0['set'](_0x3823ff,_0x3d434a),_0x546dc8['set'](_0x3823ff,Object['fromEntries'](_0x556587['getAttributes']()));}const _0x2ade01=Array['from'](this['editor']['model']['markers'])['map'](_0x1a4bb5=>[_0x1a4bb5['name'],_0x1a4bb5['getRange']()]),_0x9de725=this['source']['version'];this['_saveMetaData'](_0x9de725,_0x30dca0,_0x2ade01,_0x546dc8),this['_startingRevisionId']=this['_revisionId'];const _0x4c8430=new Map(),_0x4fb199=new Map();for(const _0x1ae943 of _0x7d7df6){const _0x4f8030=P(_0x1ae943);_0x4c8430['set'](_0x1ae943,_0x4f8030),_0x4fb199['set'](_0x1ae943,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c8430,[],_0x4fb199);}['getData'](_0x6421fc,_0x1ecc39){if(this['_lastFrom']===_0x6421fc&&this['_lastTo']<=_0x1ecc39)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ecc39,!0x0);else{if(!this['_savedMetaData']['has'](_0x6421fc)){const _0x1b65c9=this['_getPreviousFrom'](_0x6421fc);this['_calculateMetaData'](_0x1b65c9,_0x6421fc,!0x1);}this['_calculateMetaData'](_0x6421fc,_0x1ecc39,!0x0);}return this['_lastFrom']=_0x6421fc,this['_lastTo']=_0x1ecc39,this['_getState']();}['loadState'](_0xfbf453){const _0x274bcb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xfbf453['fromVersion'],this['_lastTo']=_0xfbf453['toVersion'];for(const _0x585238 in _0xfbf453['diffData']){const _0x57e018=_0xfbf453['diffData'][_0x585238]['attachChange'],_0x1ea170=_0x425cb6(_0xfbf453['diffData'][_0x585238]['attributesBefore'])||{},_0x2ab06f=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x585238]['deletions']);_0x2ab06f['rootName']=_0x585238,_0x2ab06f['_isAttached']=!_0x57e018||!_0x57e018['isAttached'],_0x2ab06f['isAttached']=()=>_0x2ab06f['_isAttached'],this['_baseRoots']['set'](_0x585238,_0x2ab06f),this['_baseRootsAttributes']['set'](_0x585238,_0x1ea170),_0x57e018&&this['_touchedRoots']['set'](_0x585238,_0x57e018);const _0x4be361=this['_makeIdsRoot'](_0x2ab06f);this['_baseIdsRoots']['set'](_0x585238,_0x4be361);for(const [_0x386d35,_0x1c3c3e]of _0x2ab06f['markers']){if(!_0x386d35['startsWith']('revision:'))continue;const _0x5d4a19=_0x386d35['split'](':')[0x2];for(const _0x3c59f3 of _0x1c3c3e['getWalker']({'singleCharacters':!0x0})){const _0xfd78e9=this['_getVidAttributeName'](_0x3c59f3),_0x412f49='elementEnd'==_0x3c59f3['type']?_0x3c59f3['previousPosition']['path']['slice'](0x0,-0x1):_0x3c59f3['previousPosition']['path'],_0x416165=_0x4be361['getNodeByPath'](_0x412f49)['getAttribute'](_0xfd78e9);this['_touched']['set'](_0x416165,{'userId':_0x5d4a19});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2ec8f6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4033f4=>!this['_touched']['has'](_0x4033f4));let _0x1a3be2=0x0;const _0x13a9d8=new Map();for(const _0x1c8533 in _0xfbf453['diffData']){const _0x154da2=_0xfbf453['diffData'][_0x1c8533]['attachChange'],_0x5c3660=_0x425cb6(_0xfbf453['diffData'][_0x1c8533]['attributesAfter'])||{},_0x9fd6d1=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x1c8533]['insertions']);_0x9fd6d1['rootName']=_0x1c8533,_0x9fd6d1['_isAttached']=!_0x154da2||_0x154da2['isAttached'],_0x9fd6d1['isAttached']=()=>_0x9fd6d1['_isAttached'],this['_diffRoots']['set'](_0x1c8533,_0x9fd6d1),this['_diffRootsAttributes']['set'](_0x1c8533,_0x5c3660);const _0x2ac965=this['_makeIdsRoot'](_0x9fd6d1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1c8533,_0x2ac965),_0x13a9d8['set'](_0x1c8533,_0x9fd6d1['isAttached']()?_0x5c3660:{});for(const [_0xb7a9fd,_0x44265e]of _0x9fd6d1['markers']){if(!_0xb7a9fd['startsWith']('revision:'))continue;const _0x417e87=_0xb7a9fd['split'](':')[0x2];for(const _0x23917e of _0x44265e['getWalker']({'singleCharacters':!0x0})){const _0x50cb19=this['_getVidAttributeName'](_0x23917e),_0x35d0e9=this['_revisionId']++,_0x550380='elementEnd'==_0x23917e['type']?_0x23917e['previousPosition']['path']['slice'](0x0,-0x1):_0x23917e['previousPosition']['path'];_0x2ac965['getNodeByPath'](_0x550380)['_setAttribute'](_0x50cb19,_0x35d0e9),this['_touched']['set'](_0x35d0e9,{'userId':_0x417e87});}}for(const _0xc5131f of this['editor']['model']['createRangeIn'](_0x9fd6d1)['getWalker']({'singleCharacters':!0x0})){const _0x141dd2=this['_getVidAttributeName'](_0xc5131f),_0x3e25eb='elementEnd'==_0xc5131f['type']?_0xc5131f['previousPosition']['path']['slice'](0x0,-0x1):_0xc5131f['previousPosition']['path'],_0x9f142=_0x2ac965['getNodeByPath'](_0x3e25eb);_0x9f142['getAttribute'](_0x141dd2)>0x0||_0x9f142['_setAttribute'](_0x141dd2,_0x2ec8f6[_0x1a3be2++]);}for(const [_0x2eab8a,_0x486664]of _0x9fd6d1['markers'])_0x2eab8a['startsWith']('revision:')||this['_markers']['set'](_0x2eab8a,_0x486664);}const _0x4eb273=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4eb273),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4eb273,0x1));const _0x436ba3=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x436ba3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x436ba3,0x1));const _0x1248a9=Array['from'](this['_diffRoots'])['map'](([_0x17836d,_0x242426])=>[_0x17836d,N(_0x242426)]);this['_saveMetaData'](this['_lastTo'],_0x1248a9,this['_markers'],_0x13a9d8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x29e7e1,_0x376595,_0x1fda4c,_0x4b463e){const _0x244ca0=new Map(_0x376595),_0x504cb6=new Map(_0x425cb6(_0x4b463e)),_0x13bb6c=new Map();for(const [_0x39acac,_0x1f8bdf]of _0x1fda4c)_0x13bb6c['set'](_0x39acac,{'start':_0x1f8bdf['start']['clone'](),'end':_0x1f8bdf['end']['clone'](),'rootName':_0x1f8bdf['root']['rootName']});this['_savedMetaData']['set'](_0x29e7e1,{'roots':_0x244ca0,'markers':_0x13bb6c,'rootsAttributes':_0x504cb6});}['_removeMetaData'](_0x49cd11){this['_savedMetaData']['delete'](_0x49cd11);}['_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'](_0x358fbc,_0x53dfd1=null){let _0x402d20=null;_0x358fbc['is']('documentFragment')||(_0x402d20=new ut(_0x358fbc['name'],{'vid_start':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));const _0xf5ea45=[];for(const _0x4c56d6 of _0x358fbc['getChildren']())if(_0x4c56d6['is']('element')){_0xf5ea45['push'](this['_makeIdsRoot'](_0x4c56d6,_0x53dfd1));const _0x5566f3=_0xf5ea45[_0xf5ea45['length']-0x1];null!==_0x53dfd1&&(_0x53dfd1=_0x5566f3['is']('element','$text')?_0x5566f3['getAttribute']('vid')+0x1:_0x5566f3['getAttribute']('vid_end')+0x1);}else{for(let _0xe79ac7=0x0;_0xe79ac7<_0x4c56d6['offsetSize'];_0xe79ac7++)_0xf5ea45['push'](new ut('$text',{'vid':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));}if(_0x358fbc['is']('documentFragment')){const _0x32799b=P(_0x358fbc['rootName']);return _0x32799b['_insertChild'](0x0,_0xf5ea45),_0x32799b;}return _0x402d20['_setAttribute']('vid_end',null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++),_0x402d20['_insertChild'](0x0,_0xf5ea45),_0x402d20;}['_calculateMetaData'](_0x32543a,_0x2144db,_0x344596){this['_reset']();const {roots:_0x2c5586,markers:_0x48ecc6,rootsAttributes:_0x4b9326}=this['_savedMetaData']['get'](_0x32543a);this['_baseRoots']=new Map(_0x2c5586),this['_baseRootsAttributes']=new Map(_0x425cb6(_0x4b9326));for(const [_0x22adb6,_0x1d2eb3]of this['_baseRoots'])if('$graveyard'!==_0x22adb6&&(this['_diffRoots']['set'](_0x22adb6,N(_0x1d2eb3)),this['_diffRootsAttributes']=new Map(_0x425cb6(_0x4b9326)),_0x344596)){const _0xa9b33c=this['_revisionId'];this['_idsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3)),this['_baseIdsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3,_0xa9b33c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x344596&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e9a21,_0x24e755]of _0x48ecc6){const _0x1cb75d=this['_baseRoots']['get'](_0x24e755['rootName']),_0x29e1f8=this['_diffRoots']['get'](_0x24e755['rootName']),_0x2f81de=new lt(this['_fixPosition'](_0x24e755['start'],_0x1cb75d),this['_fixPosition'](_0x24e755['end'],_0x1cb75d)),_0x21af5a=this['_fixRange'](_0x2f81de,_0x29e1f8);_0x1cb75d['markers']['set'](_0x5e9a21,_0x2f81de),this['_markers']['set'](_0x5e9a21,_0x21af5a);}this['_applyOperations'](_0x32543a,_0x2144db,_0x344596);}['_applyOperations'](_0x237e14,_0x29d6a0,_0x376097){for(const _0x50ac00 of this['source']['getOperations'](_0x237e14,_0x29d6a0))this['_handleOperation'](_0x50ac00,_0x376097);for(const _0x79f5ab of this['_diffRoots']['values']())_0x79f5ab['markers']['clear']();for(const [_0xba9697,_0x55ea91]of this['_markers']){this['_diffRoots']['get'](_0x55ea91['root']['rootName'])['markers']['set'](_0xba9697,_0x55ea91['clone']());}const _0x4fa8cd=new Map(),_0x293727=new Map();for(const [_0x4af55f,_0x4c90ab]of this['_diffRoots'])_0x4fa8cd['set'](_0x4af55f,N(_0x4c90ab)),_0x293727['set'](_0x4af55f,this['_diffRootsAttributes']['get'](_0x4af55f));this['_saveMetaData'](_0x29d6a0,_0x4fa8cd,this['_markers'],_0x293727);}['_getPreviousFrom'](_0x25ae10){const _0x4ba130=Array['from'](this['_savedMetaData']['keys']());_0x4ba130['sort']((_0xcc4d43,_0x54097b)=>_0xcc4d43-_0x54097b),_0x4ba130['reverse']();for(const _0x41be98 of _0x4ba130)if(_0x41be98<_0x25ae10)return _0x41be98;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42b9f7,_0x1f281c){const _0x59f74e=Array['from'](_0x1f281c['markers'])['map'](([_0x3b6ed2,_0x1fde1e])=>[_0x3b6ed2,this['_fixRange'](_0x1fde1e,_0x42b9f7)]);_0x42b9f7['markers']=new Map(_0x59f74e);}['_transformMarkers'](_0x47e5c6){for(const _0x191314 of this['_markers']['values']()){const _0x4226ee=_0x191314['getTransformedByOperation'](_0x47e5c6),_0x214695=lt['_createFromRanges'](_0x4226ee);_0x191314['start']=_0x214695['start'],_0x191314['end']=_0x214695['end'];}}['_handleOperation'](_0x54cc2b,_0x47b8f8){if('addRoot'!=_0x54cc2b['type']&&'detachRoot'!=_0x54cc2b['type']){if('insert'==_0x54cc2b['type']){const _0x472a06=_0x54cc2b['position']['root']['rootName'];this['_diffRoots']['has'](_0x472a06)||(this['_diffRoots']['set'](_0x472a06,P(_0x472a06,!0x0)),this['_diffRootsAttributes']['set'](_0x472a06,{}),_0x47b8f8&&this['_idsRoots']['set'](_0x472a06,P(_0x472a06,!0x0)));}else{if('addRootAttribute'==_0x54cc2b['type']||'removeRootAttribute'==_0x54cc2b['type']||'changeRootAttribute'==_0x54cc2b['type'])return void this['_handleRootAttributeOperation'](_0x54cc2b);'marker'==_0x54cc2b['type']&&this['_handleMarkerOperation'](_0x54cc2b);}if('marker'!==_0x54cc2b['type']){const _0x468085=this['_cloneOperation'](_0x54cc2b,this['_diffRoots']);_0x468085['_execute'](),this['_transformMarkers'](_0x468085);}if(_0x47b8f8)switch(_0x54cc2b['type']){case'insert':this['_handleInsertOperation'](_0x54cc2b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x54cc2b);break;case'merge':this['_handleMergeOperation'](_0x54cc2b);break;case'split':this['_handleSplitOperation'](_0x54cc2b);}}else this['_handleRootOperation'](_0x54cc2b,_0x47b8f8);}['_cloneOperation'](_0x43c34f,_0x5d209f){const _0x1aa3d4=_0x43c34f['clone']();return _0x1aa3d4['_authorId']=_0x43c34f['_authorId'],this['_fixOperation'](_0x1aa3d4,_0x5d209f),_0x1aa3d4;}['_getBaseVids'](_0x22caf9){return _0x22caf9['map'](_0x376d9a=>{const _0x364f7d=this['_getVidAttributeName'](_0x376d9a);return Number(_0x376d9a['item']['getAttribute'](_0x364f7d));});}['_generateTape'](_0x34197,_0x3797cb){if(_0x34197['is']('element','$text'))_0x3797cb['push']({'item':_0x34197,'type':'text'});else{_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementStart'});for(const _0xbbfdf3 of _0x34197['getChildren']())this['_generateTape'](_0xbbfdf3,_0x3797cb);_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementEnd'});}return _0x3797cb;}['_getState'](){const _0x275767=new Map(this['_touched']),_0x263d72=new Map(_0x275767),_0x175816=new Map(),_0x3ea30e={'insertions':{},'deletions':{}},_0x10d98c={'insertions':{},'deletions':{}},_0x2407a7=new Map(),_0x39b730=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39b730['delete']('$graveyard');for(const _0x120783 of _0x39b730){const _0x4dc4f4=this['_diffRoots']['get'](_0x120783)||P(_0x120783,!0x1),_0x505d6a=this['_baseRoots']['get'](_0x120783)||P(_0x120783,!0x1);_0x4dc4f4['isAttached']()||_0x505d6a['isAttached']()?(_0x3ea30e['insertions'][_0x120783]=N(_0x4dc4f4),_0x3ea30e['deletions'][_0x120783]=N(_0x505d6a),this['_copyMarkers'](_0x3ea30e['deletions'][_0x120783],_0x505d6a),this['_copyMarkers'](_0x3ea30e['insertions'][_0x120783],_0x4dc4f4),_0x10d98c['insertions'][_0x120783]=this['_generateTape'](this['_idsRoots']['get'](_0x120783),[]),_0x10d98c['deletions'][_0x120783]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x120783)||P(_0x120783,!0x1),[])):_0x39b730['delete'](_0x120783);}for(const _0x373f7b of _0x39b730){const _0x1d1485=_0x10d98c['insertions'][_0x373f7b];for(const _0x245a07 of _0x1d1485){const _0x3e7cdc=this['_getVidAttributeName'](_0x245a07),_0x29ead9=_0x245a07['item']['getAttribute'](_0x3e7cdc);_0x263d72['delete'](_0x29ead9),_0x29ead9>=this['_startingRevisionId']&&_0x175816['set'](_0x29ead9,_0x275767['get'](_0x29ead9));}}for(const _0x3fe4ab of _0x39b730){const _0x3596a0=_0x10d98c['insertions'][_0x3fe4ab],_0x2c49ab=this['_getBaseVids'](_0x10d98c['deletions'][_0x3fe4ab]);let _0x160b8f=0x0;for(const _0x2cecd4 of _0x3596a0){const _0x187c06=this['_getVidAttributeName'](_0x2cecd4),_0x3743d8=_0x2cecd4['item']['getAttribute'](_0x187c06);if(!_0x175816['has'](_0x3743d8)&&!_0x2407a7['has'](_0x3743d8)){if(_0x263d72['has'](_0x3743d8))_0x160b8f++;else{if(_0x3743d8!=_0x2c49ab[_0x160b8f]){const _0x53f41a=_0x275767['get'](_0x3743d8)||_0x275767['get'](_0x2c49ab[_0x160b8f]);for(;_0x3743d8!=_0x2c49ab[_0x160b8f];)_0x263d72['has'](_0x2c49ab[_0x160b8f])||(_0x2407a7['set'](_0x2c49ab[_0x160b8f],_0x53f41a),_0x275767['set'](_0x2c49ab[_0x160b8f],_0x53f41a)),_0x160b8f++;}_0x160b8f++;}}}}for(const _0x3814ca of _0x39b730){const _0x3326b8=_0x10d98c['insertions'][_0x3814ca];for(const _0x3ec0cc of _0x3326b8){const _0x4b39cd=this['_getVidAttributeName'](_0x3ec0cc),_0x473932=_0x3ec0cc['item']['getAttribute'](_0x4b39cd);if(_0x2407a7['has'](_0x473932)){const _0x2abc8c=_0x2407a7['get'](_0x473932);_0x263d72['has'](_0x473932)||_0x263d72['set'](_0x473932,{..._0x2abc8c}),_0x175816['set'](_0x473932,{..._0x2abc8c});}}}for(const _0x4da8e6 of _0x263d72['keys']())_0x4da8e6>=this['_startingRevisionId']&&_0x263d72['delete'](_0x4da8e6);const _0x4474ab=new Map();for(const _0x2a4a3f of _0x39b730){let _0x45f173=_0x10d98c['insertions'][_0x2a4a3f];for(const _0x597c32 of _0x45f173)if(_0x597c32['item']['is']('element','tableCell')){const _0x2ea97c=this['_getVidAttributeName'](_0x597c32),_0x4fceea=_0x597c32['item']['getAttribute'](_0x2ea97c);if(_0x175816['has'](_0x4fceea)){const _0x5f2c72=_0x597c32['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c17b7=_0x4474ab['get'](_0x5f2c72)||new Set();_0x1c17b7['add'](_0x175816['get'](_0x4fceea)['userId']),_0x4474ab['set'](_0x5f2c72,_0x1c17b7);}}_0x45f173=_0x10d98c['deletions'][_0x2a4a3f];for(const _0x32e62c of _0x45f173)if(_0x32e62c['item']['is']('element','tableCell')){const _0x3b6bb3=this['_getVidAttributeName'](_0x32e62c),_0x2b0e8d=_0x32e62c['item']['getAttribute'](_0x3b6bb3);if(_0x263d72['has'](_0x2b0e8d)){const _0x37a7a1=_0x32e62c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2a319b=_0x4474ab['get'](_0x37a7a1)||new Set();_0x2a319b['add'](_0x263d72['get'](_0x2b0e8d)['userId']),_0x4474ab['set'](_0x37a7a1,_0x2a319b);}}for(const _0x4fff1e of _0x4474ab['keys']())(_0x175816['has'](_0x4fff1e)||_0x263d72['has'](_0x4fff1e))&&_0x4474ab['delete'](_0x4fff1e);}for(const _0x3d1c14 of _0x39b730){const _0x166262=_0x10d98c['insertions'][_0x3d1c14];let _0x596a48=null,_0x34334f=null;for(const _0x347ff3 of _0x166262){const _0x5cc3c2=this['_getVidAttributeName'](_0x347ff3),_0x17ea88=_0x347ff3['item']['getAttribute'](_0x5cc3c2),_0x182a31=_0x4474ab['get'](_0x17ea88);_0x182a31&&'elementStart'==_0x347ff3['type']&&(_0x596a48=Array['from'](_0x182a31)[0x0],_0x34334f=_0x347ff3['item']['getAttribute']('vid_end')),_0x596a48&&(_0x263d72['set'](_0x17ea88,{'userId':_0x596a48}),_0x175816['set'](_0x17ea88,{'userId':_0x596a48})),_0x17ea88==_0x34334f&&(_0x596a48=null,_0x34334f=null);}}const _0x2d3af5={},_0x4387f8=new Set();for(const _0x199c67 of _0x39b730){const _0x4f0f1b=_0x3ea30e['deletions'][_0x199c67],_0x8c5344=_0x3ea30e['insertions'][_0x199c67];for(const {userId:_0x24c7f8}of this['_touchedMarkers']['values']())null!==_0x24c7f8&&_0x4387f8['add'](_0x24c7f8);for(const {userId:_0x5389f9}of this['_touchedRoots']['values']())null!==_0x5389f9&&_0x4387f8['add'](_0x5389f9);this['_markChanges'](_0x8c5344,_0x10d98c['insertions'][_0x199c67],_0x175816,'insertion',_0x4387f8),this['_markChanges'](_0x4f0f1b,_0x10d98c['deletions'][_0x199c67],_0x263d72,'deletion',_0x4387f8),_0x2d3af5[_0x199c67]={'insertions':this['_prepareViewToSave'](_0x8c5344),'deletions':this['_prepareViewToSave'](_0x4f0f1b),'attachChange':this['_touchedRoots']['get'](_0x199c67)||null,'attributesBefore':_0x425cb6(this['_baseRootsAttributes']['get'](_0x199c67))||{},'attributesAfter':_0x425cb6(this['_diffRootsAttributes']['get'](_0x199c67))};}return{'diffData':_0x2d3af5,'authorsIds':Array['from'](_0x4387f8)};}['_processRootBeforeSave'](_0x100df5){for(const [,_0x120e40]of _0x100df5['markers']){const _0x589cd4=_0x120e40['start']['getAncestors']()['filter'](_0x5054fb=>'tableCell'==_0x5054fb['name']);for(const _0xc6db15 of _0x589cd4)0x1==_0xc6db15['childCount']&&_0xc6db15['getChild'](0x0)['is']('element','paragraph')&&_0xc6db15['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2408e0){this['_processRootBeforeSave'](_0x2408e0);const _0x362833=this['editor']['data']['toView'](_0x2408e0,{}),_0x436eb6=Array['from'](_0x362833['getChildren']())['map'](_0x38deea=>this['_getViewJson'](_0x38deea));return JSON['stringify'](_0x436eb6);}['_getViewJson'](_0xcbafd6){if(_0xcbafd6['is']('$text'))return _0xcbafd6['data'];{const _0x2898c3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x395ab8=_0xcbafd6,_0x500d2d=this['editor']['data']['htmlProcessor']['domConverter'],_0x510cfc={'type':_0x2898c3['_getTypeCharForViewElement'](_0x395ab8),'name':_0x395ab8['name'],'attributes':Array['from'](_0x395ab8['getAttributes']()),'children':Array['from'](_0x395ab8['getChildren']())['map'](_0x4b7f80=>this['_getViewJson'](_0x4b7f80))};if(_0xcbafd6['is']('uiElement')&&'$comment'!=_0xcbafd6['name']){const _0x27a757=_0xcbafd6['render'](_0x500d2d['domDocument'],_0x500d2d);_0x510cfc['children']['push'](_0x27a757['outerHTML']);}else{if(_0xcbafd6['is']('rawElement')){const _0x5a2676=_0x500d2d['domDocument']['createElement'](_0x395ab8['name']);_0xcbafd6['render'](_0x5a2676,_0x500d2d),_0x510cfc['children']['push'](_0x5a2676['innerHTML']);}}const _0x33dd5d=Array['from'](_0x395ab8['getCustomProperties']());_0x33dd5d['length']>0x0&&(_0x510cfc['customProperties']=_0x33dd5d);const _0x5b0bf4=_0x395ab8['getFillerOffset']();return null!==_0x5b0bf4&&(_0x510cfc['fillerOffset']=_0x5b0bf4),_0x510cfc;}}['_markChanges'](_0x5936f2,_0x4f51da,_0x4296b8,_0x5c47ad,_0x28acc9){let _0x4f7b3d=null,_0x3e518a=null,_0x25b138=0x0;const _0x9fefe0=this['editor']['model'];for(let _0x17d14c=0x0;_0x17d14c<_0x4f51da['length'];_0x17d14c++){const _0x4ef737=this['_getVidAttributeName'](_0x4f51da[_0x17d14c]),_0x4dca1c=_0x4f51da[_0x17d14c]['item']['getAttribute'](_0x4ef737),_0x5687de=_0x4296b8['get'](_0x4dca1c),_0x36aa96=_0x17d14c==_0x4f51da['length']-0x1;(!_0x4f7b3d&&_0x5687de&&(_0x4f7b3d=_0x5687de,_0x3e518a=_0x4f51da[_0x17d14c]),_0x4f7b3d&&(!_0x5687de||_0x5687de['userId']!=_0x4f7b3d['userId']))&&(_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),F(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0)),_0x4f7b3d=_0x5687de||null,_0x3e518a=_0x5687de?_0x4f51da[_0x17d14c]:null),_0x4f7b3d&&_0x36aa96&&_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),B(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0));}function _0x1b7647(_0x198a6f,_0xea05ae,_0xccbbad){const _0x1a6dac=_0x4f7b3d['userId'],_0x332125='revision:'+_0x5c47ad+':'+_0x1a6dac+':'+_0x25b138++,_0x17d55c=_0x9fefe0['createRange'](_0xea05ae,_0xccbbad);_0x5936f2['markers']['set'](_0x332125,_0x17d55c),null!==_0x1a6dac&&_0x28acc9['add'](_0x1a6dac);}}['_getVidAttributeName'](_0x529860){switch(_0x529860['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26820b,_0x11a9d2){_0x26820b['baseVersion']=null;for(const _0x4b1893 in _0x26820b){const _0x58264d=_0x26820b[_0x4b1893];if(_0x58264d instanceof ft){const _0x44f622=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixPosition'](_0x58264d,_0x44f622);}if(_0x58264d instanceof lt){const _0x4a2745=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixRange'](_0x58264d,_0x4a2745);}'root'===_0x4b1893&&(_0x26820b['root']=_0x11a9d2['get'](_0x26820b['root']['rootName']));}}['_fixRange'](_0xaba299,_0x3aed72){return this['editor']['model']['createRange'](this['_fixPosition'](_0xaba299['start'],_0x3aed72),this['_fixPosition'](_0xaba299['end'],_0x3aed72));}['_fixPosition'](_0x4566e1,_0xab0c8f){return this['editor']['model']['createPositionFromPath'](_0xab0c8f,_0x4566e1['path'],_0x4566e1['stickiness']);}['_handleInsertOperation'](_0x1f686f){const _0x4e8a9d=this['_idsRoots']['get'](_0x1f686f['position']['root']['rootName']),_0x481f29=this['_fixPosition'](_0x1f686f['position'],_0x4e8a9d),_0x5c7a6b=null===_0x1f686f['_authorId']?null:_0x1f686f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376cea=_0x481f29['parent'],_0x20e5d5=this['_revisionId'],_0x2af8bf=[];for(const _0x46ac6f of _0x1f686f['nodes'])if(_0x46ac6f['is']('element'))_0x2af8bf['push'](this['_makeIdsRoot'](_0x46ac6f));else{for(let _0x2ca702=0x0;_0x2ca702<_0x46ac6f['offsetSize'];_0x2ca702++)_0x2af8bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xe893d7=this['_revisionId'];for(let _0x44a1be=_0x20e5d5;_0x44a1be<_0xe893d7;_0x44a1be++)this['_touched']['set'](_0x44a1be,{'userId':_0x5c7a6b});_0x376cea['_insertChild'](_0x481f29['offset'],_0x2af8bf);}['_handleMoveOperation'](_0x18d12b){(_0x18d12b=this['_cloneOperation'](_0x18d12b,this['_idsRoots']))['_execute']();const _0x5858b7=null===_0x18d12b['_authorId']?null:_0x18d12b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe6b3d4=_0x18d12b['getMovedRangeStart'](),_0xad4ff9=_0xe6b3d4['parent'],_0x7a2b1=_0xe6b3d4['offset'];!function _0x2e4a06(_0x56631e,_0xf6edf7,_0x22e175,_0x2d8767){for(let _0x5da5e2=_0x22e175;_0x5da5e2<_0x2d8767;_0x5da5e2++){const _0xe1ff02=_0xf6edf7['getChild'](_0x5da5e2);_0xe1ff02['is']('element','$text')?_0x56631e['set'](_0xe1ff02['getAttribute']('vid'),{'userId':_0x5858b7}):(_0x56631e['set'](_0xe1ff02['getAttribute']('vid_start'),{'userId':_0x5858b7}),_0x2e4a06(_0x56631e,_0xe1ff02,0x0,_0xe1ff02['childCount']),_0x56631e['set'](_0xe1ff02['getAttribute']('vid_end'),{'userId':_0x5858b7}));}}(this['_touched'],_0xad4ff9,_0x7a2b1,_0x7a2b1+_0x18d12b['howMany']);}['_handleMergeOperation'](_0x5d6c46){const _0x6fa484=null===(_0x5d6c46=this['_cloneOperation'](_0x5d6c46,this['_idsRoots']))['_authorId']?null:_0x5d6c46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e4305=_0x5d6c46['targetPosition']['parent'],_0x367dbb=_0x5d6c46['sourcePosition']['parent'],_0x363ab0=_0x2e4305['getAttribute']('vid_end'),_0x25ffcd=_0x367dbb['getAttribute']('vid_start');_0x2e4305['_setAttribute']('vid_end',_0x367dbb['getAttribute']('vid_end')),_0x367dbb['_setAttribute']('vid_end',_0x363ab0),this['_touched']['set'](_0x25ffcd,{'userId':_0x6fa484}),this['_touched']['set'](_0x363ab0,{'userId':_0x6fa484}),_0x5d6c46['_execute']();}['_handleSplitOperation'](_0x1b154f){const _0x6dcdb2=null===(_0x1b154f=this['_cloneOperation'](_0x1b154f,this['_idsRoots']))['_authorId']?null:_0x1b154f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ee664=_0x1b154f['graveyardPosition'],_0x2f546c=_0x1b154f['splitPosition']['parent'];_0x1b154f['_execute']();const _0x3ac003=_0x2f546c['getAttribute']('vid_end'),_0x3c2346=_0x1b154f['insertionPosition']['nodeAfter'];if(_0x2ee664){const _0x3b1ea7=_0x3c2346['getAttribute']('vid_end'),_0x1895b1=_0x2f546c['getAttribute']('vid_end');_0x2f546c['_setAttribute']('vid_end',_0x3b1ea7),_0x3c2346['_setAttribute']('vid_end',_0x1895b1),this['_touched']['set'](_0x2f546c['getAttribute']('vid_end'),{'userId':_0x6dcdb2}),this['_touched']['set'](_0x3c2346['getAttribute']('vid_start'),{'userId':_0x6dcdb2});}else{const _0x4b7e18=this['_revisionId']++,_0x14ee3d=this['_revisionId']++;_0x2f546c['_setAttribute']('vid_end',_0x4b7e18),_0x3c2346['_setAttribute']('vid_start',_0x14ee3d),_0x3c2346['_setAttribute']('vid_end',_0x3ac003),this['_touched']['set'](_0x4b7e18,{'userId':_0x6dcdb2}),this['_touched']['set'](_0x14ee3d,{'userId':_0x6dcdb2});}}['_handleMarkerOperation'](_0x51c42d){if(!_0x51c42d['affectsData'])return;const _0x3725e6=(_0x51c42d=this['_cloneOperation'](_0x51c42d,this['_diffRoots']))['oldRange']?_0x51c42d['oldRange']['root']:null,_0x48dd50=_0x51c42d['newRange']?_0x51c42d['newRange']['root']:null;_0x3725e6&&this['_markers']['delete'](_0x51c42d['name']),_0x48dd50&&this['_markers']['set'](_0x51c42d['name'],_0x51c42d['newRange']['clone']());const _0xc1527a=null===_0x51c42d['_authorId']?null:_0x51c42d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17db1d=_0x51c42d['name'];if(!this['_touchedMarkers']['has'](_0x17db1d))return void this['_touchedMarkers']['set'](_0x17db1d,{'range':_0x51c42d['oldRange'],'userId':_0xc1527a});const _0x4a765d=this['_touchedMarkers']['get'](_0x17db1d),_0x375eb6=_0x4a765d['range'],_0x621f15=_0x51c42d['newRange'];null==_0x375eb6&&null==_0x621f15||_0x375eb6&&_0x621f15&&_0x375eb6['isEqual'](_0x621f15)?this['_touchedMarkers']['delete'](_0x51c42d['name']):_0x4a765d['userId']=_0xc1527a;}['_handleRootOperation'](_0x136bf0,_0x5140f2){this['_diffRoots']['has'](_0x136bf0['rootName'])?this['_diffRoots']['get'](_0x136bf0['rootName'])['_isAttached']=_0x136bf0['isAdd']:(this['_diffRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136bf0['rootName'],{}),_0x5140f2&&this['_idsRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)));const _0xb8d289=null===_0x136bf0['_authorId']?null:_0x136bf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28355d=this['_touchedRoots']['get'](_0x136bf0['rootName']);_0x28355d&&_0x28355d['userId']===_0xb8d289?this['_touchedRoots']['delete'](_0x136bf0['rootName']):this['_touchedRoots']['set'](_0x136bf0['rootName'],{'userId':_0xb8d289,'isAttached':_0x136bf0['isAdd']});}['_handleRootAttributeOperation'](_0x24df05){const _0x48a186=this['_diffRootsAttributes']['get'](_0x24df05['root']['rootName']);null===_0x24df05['newValue']?delete _0x48a186[_0x24df05['key']]:_0x48a186[_0x24df05['key']]=_0x24df05['newValue'];}}function N(_0x34f356){const _0x5aa994=P(_0x34f356['rootName'],_0x34f356['isAttached']());for(const _0x540ef7 of _0x34f356['getChildren']()){const _0x4d8ea7=_0x540ef7['_clone'](!0x0);_0x5aa994['_appendChild'](_0x4d8ea7);}return _0x5aa994;}function P(_0x5da987,_0x23bf92=!0x0){const _0x1f7273=new vt();return _0x1f7273['rootName']=_0x5da987,_0x1f7273['_isAttached']=_0x23bf92,_0x1f7273['isAttached']=()=>_0x1f7273['_isAttached'],_0x1f7273;}function F(_0x4b168e,_0x4ca2ab,_0x297c7e){const _0x3e4c4b='elementEnd'==_0x4b168e['type']?_0x297c7e['createPositionAt'](_0x4b168e['item'],'end'):_0x297c7e['createPositionBefore'](_0x4b168e['item']);return _0x297c7e['createPositionFromPath'](_0x4ca2ab,_0x3e4c4b['path'],_0x3e4c4b['stickiness']);}function B(_0x2b4752,_0x2037b6,_0xe95a72){const _0x2634e6='elementStart'==_0x2b4752['type']?_0xe95a72['createPositionAt'](_0x2b4752['item'],0x0):_0xe95a72['createPositionAfter'](_0x2b4752['item']);return _0xe95a72['createPositionFromPath'](_0x2037b6,_0x2634e6['path'],_0x2634e6['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c23a9,_0xd8d7e5){super(_0x5c23a9),this['focusTracker']=new _0x1d7358(),this['keystrokes']=new _0x2fbd22(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xd8d7e5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1b7731(this);}['render'](){super['render'](),_0x299d24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a68a4=_0x443618=>_0x443618['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a68a4),this['keystrokes']['set']('arrowleft',_0x3a68a4),this['keystrokes']['set']('arrowup',_0x3a68a4),this['keystrokes']['set']('arrowdown',_0x3a68a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53cfa9){this['revisionNameInputView']['fieldView']['element']['value']=_0x53cfa9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28d2c5){const _0x7d41a=new _0x5b84f9(this['locale'],_0x307c29),_0x3772ae=_0x7d41a['fieldView'];_0x3772ae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x314409=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28d2c5&&(_0x314409+='\x20('+g(this['locale'],'optional')+')'),(_0x7d41a['label']=_0x314409,_0x3772ae['on']('input',()=>{this['revisionNameInputValue']=_0x3772ae['element']['value']['trim']();}),_0x7d41a);}}class f extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x51f0f8=this['editor'],_0x2ef902=_0x51f0f8['plugins']['get']('RevisionTracker');_0x51f0f8['ui']['componentFactory']['add']('revisionHistory',_0x268151=>{const _0x19015b=_0x11b6e8(_0x268151),_0x23a141=_0x19015b['panelView']['children'],_0x49b84c=new _0x1d094f(_0x268151),_0x5771ee=new _0x46fcb4(_0x268151),_0x120e61=new te(_0x268151),_0x3945fd=new _0x46fcb4(_0x268151),_0x597e20=new te(_0x268151);return _0x19015b['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x3d0780,_0x772182,_0x1dd18c)=>_0x3d0780&&_0x772182&&!_0x1dd18c),_0x19015b['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x268151,'Revision\x20history'),'tooltip':!0x0}),_0x120e61['set']({'label':g(_0x268151,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x120e61['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x428f5e,_0x547697,_0x5b3d34)=>_0x428f5e&&_0x547697&&!_0x5b3d34),_0x120e61['on']('execute',()=>this['_showDialog']()),_0x597e20['set']({'label':g(_0x268151,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x597e20['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x51f0f8,'isReadOnly',(_0x27d609,_0xeb93a5)=>_0x27d609&&!_0xeb93a5),_0x597e20['on']('execute',()=>{_0x51f0f8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x19015b['isOpen']=!0x1,_0x51f0f8['editing']['view']['focus']();}),_0x5771ee['children']['add'](_0x120e61),_0x3945fd['children']['add'](_0x597e20),_0x49b84c['role']='menu',_0x49b84c['items']['addMany']([_0x5771ee,_0x3945fd]),_0x23a141['add'](_0x49b84c),_0x19015b;}),_0x51f0f8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xb964c=this['editor'],_0x5db422=_0xb964c['locale'],_0x47979a=new _0x44467d(_0x5db422),_0x260e83=new _0x1ff7c0(_0x5db422);_0x47979a['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x5db422,'Revision\x20history')});const _0x219bec=new _0x74afb2(_0x5db422,_0x47979a),_0x278b3d=new _0x50e74c(_0x5db422);_0x278b3d['set']({'label':g(_0x5db422,'Save\x20current\x20revision')}),_0x278b3d['delegate']('execute')['to'](_0x47979a),_0x278b3d['on']('execute',()=>{this['_showDialog']();}),_0x219bec['children']['add'](_0x278b3d),_0x260e83['items']['add'](_0x219bec);const _0x424e58=new _0x74afb2(_0x5db422,_0x47979a),_0x9c4176=new _0x50e74c(_0x5db422);return _0x9c4176['set']({'label':g(_0x5db422,'Open\x20revision\x20history')}),_0x9c4176['delegate']('execute')['to'](_0x47979a),_0x9c4176['on']('execute',()=>{_0xb964c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x424e58['children']['add'](_0x9c4176),_0x260e83['items']['add'](_0x424e58),_0x47979a['panelView']['children']['add'](_0x260e83),_0x47979a;}['_showDialog'](){const _0x2addc1=this['editor'],_0x12d1cb=_0x2addc1['locale'],_0x869ab8=_0x2addc1['plugins']['get']('Dialog'),_0x5e3ae4=_0x2addc1['plugins']['get']('RevisionTracker');function _0x5568f8(_0x334930){_0x2addc1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x334930['revisionName']?_0x334930['revisionNameInputView']['errorText']=g(_0x12d1cb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2addc1['plugins']['get'](u)['saveRevision']({'name':_0x334930['revisionName']}),_0x869ab8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5568f8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x869ab8['show']({'id':'revisionSave','title':g(_0x12d1cb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2addc1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x869ab8['hide']()},{'label':g(_0x2addc1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1f12f7){_0x1f12f7['bind']('isEnabled')['to'](_0x5e3ae4,'isReady',_0x5e3ae4,'isEnabled',_0x2addc1,'isReadOnly',(_0xeb103a,_0x4831a8,_0x457fd4)=>_0xeb103a&&_0x4831a8&&!_0x457fd4);},'onExecute':()=>_0x5568f8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5608b6=this['editor'],_0x5f3cbf=_0x5608b6['locale'];this['_saveRevisionFormView']=new hs(_0x5f3cbf,_0x5608b6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x588a8e,_0x1fa34){super(_0x588a8e),this['_model']=_0x1fa34,this['changeId']=_0x1fa34['id'];const _0x553d84=this['bindTemplate'],_0x1277fa=g(_0x588a8e,_0x1fa34['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1fa34['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1fa34['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x553d84['to']('type',_0x1d1c14=>'ck-revision-change__'+_0x1d1c14)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1277fa}]},{'text':'\x20'+_0x1fa34['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x32ac1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x868d59){super(),this['id']=_0x868d59['id']||_0x3cce8a(),this['author']=_0x868d59['author'],this['type']=_0x868d59['type'],this['data']=_0x868d59['data']||{},this['rootName']=_0x868d59['rootName'],this['set']('createdAt',_0x868d59['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(_0x57f656,_0x136b57){this['newRevisionId']=_0x57f656,this['oldRevisionId']=_0x136b57,this['changes']=new _0xce0641();}['_setChanges'](_0x9020d1){for(const _0x1f4514 of _0x9020d1)this['changes']['add'](_0x1f4514);}}class m extends _0x432e21{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3dc44b,_0x3d22b1,I,V];}constructor(_0x1bb9ce){super(_0x1bb9ce),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a6c3a,_0x429d6d,_0xef1199)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2482df=>{for(const _0x2fe232 of this['editor']['editing']['view']['document']['roots'])_0xef1199?_0x2482df['removeClass']('ck-editor__editable__overlay',_0x2fe232):_0x2482df['addClass']('ck-editor__editable__overlay',_0x2fe232);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5c445f=>null!==_0x5c445f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1962a5,_0x1eee8b,_0x5611bc)=>_0x1962a5&&_0x5611bc?_0x1eee8b['changes']['getIndex'](_0x5611bc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2aa786,_0x17b6ad)=>_0x2aa786?_0x17b6ad['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3d22b1);}['init'](){const _0x46b8b3=this['editor'],_0x44acf6=new wt(_0x46b8b3,{'direction':'backward'}),_0xb97c0d=new wt(_0x46b8b3,{'direction':'forward'});(_0x46b8b3['commands']['add']('showPreviousChange',_0x44acf6),_0x46b8b3['commands']['add']('showNextChange',_0xb97c0d),_0x46b8b3['commands']['add']('restoreRevision',new mt(_0x46b8b3)),this['on']('change:numberOfChanges',()=>{_0x44acf6['refresh'](),_0xb97c0d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x46b8b3['enableReadOnlyMode']('revision-viewer'),_0x46b8b3['plugins']['has']('WidgetToolbarRepository'))&&_0x46b8b3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x562a61){return await this['_utils']['loadRevisionData'](_0x562a61,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x562a61);}async['getRevisionRootsAttributes'](_0x2d6b72){return await this['_utils']['loadRevisionData'](_0x2d6b72,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d6b72);}async['compare'](_0x120a75,_0x1005d0,_0x435880=!0x1){if(!this['isEnabled'])return;const _0x35fd73=this['diff'],_0x338348=this['repository'],_0x4d5476='string'==typeof _0x120a75?_0x338348['getRevision'](_0x120a75):_0x120a75,_0x281d90='string'==typeof _0x1005d0?_0x338348['getRevision'](_0x1005d0):_0x1005d0,_0x5bf93d=_0x4d5476['id'],_0x55caba=_0x281d90?_0x281d90['id']:null;if(!_0x435880&&this['diff']&&this['diff']['newRevisionId']===_0x5bf93d&&this['diff']['oldRevisionId']===_0x55caba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5bf93d,_0x55caba);const _0x45a15e=this['_getRevisionsRange'](_0x4d5476,_0x281d90,!0x0)['map'](_0x525856=>this['_utils']['loadRevisionData'](_0x525856,this['adapter']));return _0x45a15e['push'](new Promise(_0x2d8348=>{setTimeout(_0x2d8348,0x14);})),Promise['all'](_0x45a15e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x335de1=this['_getDiff'](_0x5bf93d,_0x55caba);for(const _0x49d308 of _0x335de1['changes'])this['_changeIdToChange']['set'](_0x49d308['id'],_0x49d308);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5d8ef4=>{for(const _0xa59806 of this['editor']['model']['document']['getRootNames']())_0x5d8ef4['detachRoot'](_0xa59806);for(const _0x4a12f2 of Object['keys'](_0x335de1['model'])){const _0x2cc3c0=_0x5d8ef4['addRoot'](_0x4a12f2);for(const _0x4ddbcd of Object['keys'](_0x335de1['attributes'][_0x4a12f2]))_0x5d8ef4['setAttribute'](_0x4ddbcd,_0x335de1['attributes'][_0x4a12f2][_0x4ddbcd],_0x2cc3c0);_0x5d8ef4['insert'](_0x335de1['model'][_0x4a12f2],_0x2cc3c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x335de1['changes'])),this['isReady']=!0x0;})['catch'](_0x21c956=>{console['error'](_0x21c956),this['_cleanUp'](),_0x35fd73&&(this['diff']=_0x35fd73),this['isReady']=!0x0;});}['addRevisionData'](_0x14320e,_0x1e2d94){const _0x4e38aa=this['repository']['createRevision'](_0x14320e);return _0x4e38aa['on']('_update',(_0x268a9b,_0x57da3e,_0x32ad27)=>_0x1e2d94(_0x57da3e,_0x32ad27,_0x4e38aa)),this['repository']['addRevision'](_0x4e38aa),_0x4e38aa;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x351bc8=>{for(const _0x465c8e of this['editor']['model']['document']['getRootNames']())_0x351bc8['detachRoot'](_0x465c8e);});}['_sortAndFilterDiffChanges'](_0x3d6c31){const _0x2ecf35=[],_0x2990ed=new Map();for(const _0x695275 of this['editor']['model']['document']['getRootNames']()){const _0x730552=this['editor']['editing']['view']['getDomRoot'](_0x695275);if(!_0x730552)continue;const _0xedea72=_0x730552['getClientRects']()['item'](0x0);_0xedea72&&(_0x2ecf35['push'](_0x695275),_0x2990ed['set'](_0x695275,_0xedea72));}return _0x2ecf35['sort']((_0x2e8ad4,_0x318c5a)=>{const _0x4191f4=_0x2990ed['get'](_0x2e8ad4),_0x35fc2c=_0x2990ed['get'](_0x318c5a);return _0x4191f4['y']-_0x35fc2c['y']||_0x4191f4['x']-_0x35fc2c['x'];}),(_0x3d6c31=_0x3d6c31['filter'](_0x37e3c7=>_0x2ecf35['includes'](_0x37e3c7['rootName'])))['sort']((_0x4ac942,_0x239289)=>_0x2ecf35['indexOf'](_0x4ac942['rootName'])-_0x2ecf35['indexOf'](_0x239289['rootName'])),_0x3d6c31;}['_makeTape'](_0x2580c6){const _0x579c5=Array['from'](_0x2580c6['markers'])['filter'](([_0x18c7c4,_0x23adc8])=>_0x18c7c4['startsWith']('revision:')&&!_0x23adc8['isCollapsed']),_0x2bb87a=Array['from'](this['editor']['model']['createRangeIn'](_0x2580c6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x579c5['length'])for(const _0x189b5b of _0x2bb87a){const [_0x4afd04,_0x18a61c]=_0x579c5[0x0],[,_0x236509,_0x3511eb]=_0x4afd04['split'](':');if(_0x18a61c['end']['isEqual'](_0x189b5b['nextPosition'])&&_0x579c5['shift'](),(_0x189b5b['previousPosition']['isEqual'](_0x18a61c['start'])||_0x189b5b['previousPosition']['isAfter'](_0x18a61c['start']))&&('insertion'==_0x236509?_0x189b5b['isAdded']={'userId':_0x3511eb}:'deletion'==_0x236509&&(_0x189b5b['isRemoved']={'userId':_0x3511eb})),0x0==_0x579c5['length'])break;}return _0x2bb87a;}['_refreshStartEndIndex'](_0x233928){const _0x4fb5c2=new Map();for(let _0x5cdc72=0x0;_0x5cdc72<_0x233928['length'];_0x5cdc72++)'text'===_0x233928[_0x5cdc72]['type']?(_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72,_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72):('elementStart'===_0x233928[_0x5cdc72]['type']?_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72:'elementEnd'===_0x233928[_0x5cdc72]['type']&&(_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72),_0x4fb5c2['set'](_0x233928[_0x5cdc72]['id'],_0x5cdc72));for(const _0x2e79fd of _0x4fb5c2['values']())'elementStart'===_0x233928[_0x2e79fd]['type']?_0x233928[_0x2e79fd]['item']['endIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']):'elementEnd'===_0x233928[_0x2e79fd]['type']&&(_0x233928[_0x2e79fd]['item']['startIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']));}['_processTape'](_0xd2cfe2){for(let _0x51c1f9=0x0;_0x51c1f9<_0xd2cfe2['length'];_0x51c1f9++){if('elementStart'===_0xd2cfe2[_0x51c1f9]['type'])_0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9;else{if('elementEnd'===_0xd2cfe2[_0x51c1f9]['type']){_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9;const _0x261e71=_0xd2cfe2[_0x51c1f9]['item']['startIndex'];_0xd2cfe2[_0x261e71]['pairId']=_0xd2cfe2[_0x51c1f9]['id'],_0xd2cfe2[_0x51c1f9]['pairId']=_0xd2cfe2[_0x261e71]['id'];}else _0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['pairId']=null;}_0xd2cfe2[_0x51c1f9]['markersStart']||(_0xd2cfe2[_0x51c1f9]['markersStart']=[],_0xd2cfe2[_0x51c1f9]['markersEnd']=[]);}}['_markInsertions'](_0x1611d2,_0x4b7545){const _0x1d2efb=_0x1611d2['filter'](_0x4a95ca=>!_0x4a95ca['isAdded']);for(let _0x3acdde=0x0;_0x3acdde<_0x4b7545['length'];_0x3acdde++)_0x4b7545[_0x3acdde]['isAdded']&&(_0x1d2efb[_0x3acdde]['isAdded']=_0x4b7545[_0x3acdde]['isAdded']);}['_getDiff'](_0x327418,_0x527009=null){const _0x241364=this['repository']['getRevision'](_0x327418),_0x598609=_0x527009?this['repository']['getRevision'](_0x527009):null,_0x15fd50=this['_getRevisionsRange'](_0x241364,_0x598609),_0x26f9fa=_0x15fd50[_0x15fd50['length']-0x1],_0x6ada68=new Map(),_0x6125f8={'model':{},'attributes':{},'changes':[]},_0x544b22=new Set(),_0x32b50b=new Map();for(let _0x28d4f9=_0x15fd50['length']-0x1;_0x28d4f9>=0x0;_0x28d4f9--){const _0xce7156=_0x15fd50[_0x28d4f9];for(const _0x1d7a27 of Object['keys'](_0xce7156['diffData']))if(_0xce7156['diffData'][_0x1d7a27]['attachChange']){const _0x36e503=_0xce7156['diffData'][_0x1d7a27]['attachChange'];_0x36e503['isAttached']?(_0x544b22['add'](_0x1d7a27),_0x32b50b['has'](_0x1d7a27)&&_0x32b50b['get'](_0x1d7a27)['userId']==_0x36e503['userId']?_0x32b50b['delete'](_0x1d7a27):_0x32b50b['set'](_0x1d7a27,_0x36e503)):_0x32b50b['has'](_0x1d7a27)?(_0x544b22['delete'](_0x1d7a27),_0x32b50b['delete'](_0x1d7a27)):(_0x544b22['add'](_0x1d7a27),_0x32b50b['set'](_0x1d7a27,_0x36e503));}else _0x544b22['add'](_0x1d7a27);}for(const _0x39d7e4 of _0x544b22){const _0x34cf58=_0x32b50b['has'](_0x39d7e4)&&!_0x32b50b['get'](_0x39d7e4)['isAttached'];let _0x3197fb=_0x34cf58?_0x15fd50['length']-0x1:0x0;const _0x538f69=_0x34cf58?-0x1:0x1;for(;_0x15fd50[_0x3197fb];){const _0x494374=_0x15fd50[_0x3197fb];if(_0x494374['diffData'][_0x39d7e4]){const _0x2e8907=_0x34cf58?_0x494374['diffData'][_0x39d7e4]['attributesBefore']:_0x494374['diffData'][_0x39d7e4]['attributesAfter'];_0x6125f8['attributes'][_0x39d7e4]=_0x2e8907?_0x425cb6(_0x2e8907):{};break;}_0x3197fb+=_0x538f69;}}for(const _0x4d98d7 of _0x15fd50){_0x4d98d7['model']={};for(const _0x1343c3 of _0x4d98d7['authors'])_0x6ada68['set'](_0x1343c3['id'],_0x1343c3);for(const _0x5a4109 of _0x544b22){const _0x27c558=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['insertions']:'[]',_0x237abc=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['deletions']:'[]';_0x4d98d7['model'][_0x5a4109]={'insertions':this['_utils']['_makeModelFromViewString'](_0x27c558),'deletions':this['_utils']['_makeModelFromViewString'](_0x237abc)};}}for(const _0x492ef8 of _0x544b22){let _0x2c1701=null,_0x2f67b4=0x0;const _0x3611b6=new Map(Array['from'](_0x241364['model'][_0x492ef8]['insertions']['markers'])['filter'](([_0x91aaf9])=>!_0x91aaf9['startsWith']('revision:')));let _0x1747f1=0x0;for(const _0x4defda of _0x15fd50){const _0xddee95=this['_makeTape'](_0x4defda['model'][_0x492ef8]['insertions']);_0x4defda==_0x241364?(_0x2c1701=_0xddee95,_0x2f67b4=_0x2c1701['length'],_0x2c1701['forEach'](_0x34236d=>{_0x34236d['id']=_0x1747f1++;}),this['_processTape'](_0x2c1701)):this['_markInsertions'](_0x2c1701,_0xddee95);const _0xbd8cdf=_0x2c1701['filter'](_0x56f3e5=>!_0x56f3e5['isAdded'])['map'](_0x2102cd=>_0x2102cd['id']);let _0x551520=0x0;const _0x4ae0ce=this['_makeTape'](_0x4defda['model'][_0x492ef8]['deletions']);_0x4ae0ce['forEach'](_0x29ba7a=>{_0x29ba7a['isRemoved']?_0x29ba7a['id']=_0x2f67b4++:_0x29ba7a['id']=_0xbd8cdf[_0x551520++];}),this['_processTape'](_0x4ae0ce),this['_setDistance'](_0x2c1701,'isAdded'),this['_setDistance'](_0x4ae0ce,'isRemoved'),_0x4defda==_0x241364&&this['_markMarkers'](_0x2c1701,_0x3611b6),_0x2c1701=this['_joinTapes'](_0x2c1701,_0x4ae0ce),this['_refreshStartEndIndex'](_0x2c1701),this['_setDistance'](_0x2c1701,'isRemoved');}_0x2c1701=_0x2c1701['filter'](_0x23245b=>!(_0x23245b['isAdded']&&_0x23245b['isRemoved']));const _0x6b662e=new Map(_0x26f9fa['model'][_0x492ef8]['deletions']['markers']),_0x3e803e=new Set(_0x3611b6['keys']());for(const _0x501e92 of _0x6b662e['keys']())_0x3e803e['delete'](_0x501e92);this['_markSuggestions'](_0x2c1701,_0x3e803e),this['_fixObsoleteTags'](_0x2c1701),_0x2c1701=this['_removeMissingPairs'](_0x2c1701),_0x2c1701=this['_markMismatchedRemovedTags'](_0x2c1701),_0x2c1701=this['_removeUnsupportedChanges'](_0x2c1701);const {root:_0x1d0847,changes:_0x47d063}=this['_makeModelFromTape'](_0x2c1701,_0x6ada68,_0x492ef8);_0x6125f8['model'][_0x492ef8]=_0x1d0847;const _0x43bb20=_0x32b50b['get'](_0x492ef8);if(_0x43bb20){const _0x1a487c=_0x6ada68['get'](_0x43bb20['userId']),_0x31ede6=new r({'author':_0x1a487c,'type':_0x43bb20['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x492ef8});_0x47d063['unshift'](_0x31ede6),_0x6125f8['attributes'][_0x492ef8]['revisionHistoryAttachChange']=_0x31ede6['id'];}_0x6125f8['changes']=_0x6125f8['changes']['concat'](_0x47d063);}return _0x6125f8;}['_markMarkers'](_0x9a257e,_0x205f97){for(let _0x1db326=0x0;_0x1db326<_0x9a257e['length'];_0x1db326++)for(const [_0x1a6cb6,_0x350e9f]of _0x205f97)!_0x350e9f['isCollapsed']&&_0x350e9f['start']['isEqual'](_0x9a257e[_0x1db326]['previousPosition'])&&_0x9a257e[_0x1db326]['markersStart']['push'](_0x1a6cb6),_0x350e9f['end']['isEqual'](_0x9a257e[_0x1db326]['nextPosition'])&&_0x9a257e[_0x1db326]['markersEnd']['push'](_0x1a6cb6);}['_joinTapes'](_0x447cb0,_0x1ea2f7){let _0x18ef64=[],_0x5eea6d=0x0,_0xd64016=0x0;for(;_0x5eea6d<_0x447cb0['length']||_0xd64016<_0x1ea2f7['length'];){const _0x358dc1=_0x447cb0[_0x5eea6d]||{},_0x4a3421=_0x1ea2f7[_0xd64016]||{};if(_0x358dc1['id']==_0x4a3421['id'])_0x5eea6d++,_0xd64016++,_0x18ef64['push'](_0x358dc1);else{if(_0x4a3421['isRemoved']&&_0x358dc1['isAdded']){const {commonTape:_0x176068,iEnd:_0x2b5c04,jEnd:_0x361434}=this['_threeWayMerge'](_0x447cb0,_0x5eea6d,_0x1ea2f7,_0xd64016);_0x18ef64=_0x18ef64['concat'](_0x176068),_0x5eea6d=_0x2b5c04,_0xd64016=_0x361434;}else _0x4a3421['isRemoved']?(_0xd64016++,_0x18ef64['push'](_0x4a3421)):(_0x5eea6d++,_0x18ef64['push'](_0x358dc1));}}return _0x18ef64;}['_markSuggestions'](_0x301c41,_0x2b1358){const _0x402d1d=[];for(let _0x4da352=0x0;_0x4da352<_0x301c41['length'];_0x4da352++){for(let _0x474b91=0x0;_0x474b91<_0x301c41[_0x4da352]['markersStart']['length'];_0x474b91++){const _0x4acefd=_0x301c41[_0x4da352]['markersStart'][_0x474b91];if(!_0x2b1358['has'](_0x4acefd))continue;const {group:_0x56dcbb,type:_0x373672,authorId:_0x49c01e}=_0x698ede(_0x4acefd);'revision-suggestion'!=_0x56dcbb||'insertion'!=_0x373672&&'deletion'!=_0x373672||(_0x402d1d['unshift']({'type':_0x373672,'name':_0x4acefd,'userId':_0x49c01e}),_0x301c41[_0x4da352]['markersStart']['splice'](_0x474b91,0x1),_0x474b91--);}_0x19fabf(_0x301c41[_0x4da352]);for(let _0x4d9d9f=0x0;_0x4d9d9f<_0x301c41[_0x4da352]['markersEnd']['length'];_0x4d9d9f++){const _0x382a1e=_0x301c41[_0x4da352]['markersEnd'][_0x4d9d9f];if(!_0x2b1358['has'](_0x382a1e))continue;const {group:_0x46f839,type:_0x34e16f}=_0x698ede(_0x382a1e);if('revision-suggestion'!=_0x46f839||'insertion'!=_0x34e16f&&'deletion'!=_0x34e16f)continue;_0x301c41[_0x4da352]['markersEnd']['splice'](_0x4d9d9f,0x1),_0x4d9d9f--;const _0xff56c=_0x402d1d['findIndex'](_0x52577d=>_0x52577d['name']==_0x382a1e);_0xff56c>-0x1&&_0x402d1d['splice'](_0xff56c,0x1);}}function _0x698ede(_0x59d6e1){const _0x31c4ff=_0x59d6e1['split'](':');return{'group':_0x31c4ff[0x0],'type':_0x31c4ff[0x1],'subType':_0x31c4ff['length']>=0x5?_0x31c4ff[0x2]:null,'id':_0x31c4ff['length']<0x5?_0x31c4ff[0x2]:_0x31c4ff[0x3],'authorId':_0x31c4ff['length']<0x5?_0x31c4ff[0x3]:_0x31c4ff[0x4],'markerCount':0x6==_0x31c4ff['length']?_0x31c4ff[0x5]:null};}function _0x19fabf(_0x3c7136){for(let _0x231f86=0x0;_0x231f86<_0x402d1d['length'];_0x231f86++){if(_0x3c7136['isAdded']&&'insertion'==_0x402d1d[_0x231f86]['type'])return _0x3c7136['isAddSuggestion']=_0x402d1d[_0x231f86],void delete _0x3c7136['isAdded'];if(!_0x3c7136['isAdded']&&!_0x3c7136['isRemoved']&&'deletion'==_0x402d1d[_0x231f86]['type'])return void(_0x3c7136['isRemoveSuggestion']=_0x402d1d[_0x231f86]);}}}['_setDistance'](_0x506ad6,_0x148393){let _0x42c9b0=0x0,_0x49f71c=!0x1;const _0x2c5f2b=new Map();for(const _0x236b40 of _0x506ad6)_0x236b40[_0x148393]?_0x49f71c&&(_0x42c9b0++,_0x49f71c=!0x1):(_0x42c9b0++,_0x49f71c=!0x0),_0x2c5f2b['set'](_0x236b40['id'],_0x42c9b0);for(let _0x16a1bb=0x0;_0x16a1bb<_0x506ad6['length'];_0x16a1bb++){if('isRemoved'==_0x148393&&_0x506ad6[_0x16a1bb]['isAdded']||'isAdded'==_0x148393&&_0x506ad6[_0x16a1bb]['isRemoved'])continue;if('text'==_0x506ad6[_0x16a1bb]['type']){_0x506ad6[_0x16a1bb]['distance']=0x0;continue;}const _0x12fb2c=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['pairId']),_0x31a766=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['id']);_0x506ad6[_0x16a1bb]['distance']=_0x12fb2c-_0x31a766;}}['_getRevisionsRange'](_0x380d38,_0x223cbf,_0x549337=!0x1){const _0x42b75f=[];let _0x555a65=this['repository']['getIndex'](_0x380d38),_0x4b1b30=this['repository']['getIndex'](_0x223cbf);for(-0x1==_0x4b1b30&&(_0x4b1b30=this['repository']['_revisions']['length'],_0x549337=!0x1);_0x555a65<_0x4b1b30;)_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x555a65++;return _0x549337&&_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x42b75f;}['_threeWayMerge'](_0xfda82,_0x3dc860,_0x467fb7,_0x330fb6){const _0x2186fb=this['editor']['model']['schema'];let _0x2f1b93=_0x3dc860;for(;_0xfda82[_0x2f1b93]&&_0xfda82[_0x2f1b93]['isAdded'];)_0x2f1b93++;let _0x3c4897=_0x330fb6;for(;_0x467fb7[_0x3c4897]&&_0x467fb7[_0x3c4897]['isRemoved'];)_0x3c4897++;_0x5cf631(_0xfda82,_0x3dc860,_0x2f1b93),_0x5cf631(_0x467fb7,_0x330fb6,_0x3c4897);const _0x34b66a=_0x467fb7['slice'](_0x330fb6,_0x3c4897)['concat'](_0xfda82['slice'](_0x3dc860,_0x2f1b93));return _0x34b66a['sort']((_0x57351a,_0x11cf94)=>_0x57351a['side']!=_0x11cf94['side']?_0x57351a['side']-_0x11cf94['side']:_0x57351a['level']!=_0x11cf94['level']?_0x57351a['level']-_0x11cf94['level']:_0x57351a['distance']!=_0x11cf94['distance']?_0x11cf94['distance']-_0x57351a['distance']:!!_0x57351a['isAdded']!=!!_0x11cf94['isAdded']?-0x1==_0x57351a['side']||0x0==_0x57351a['side']?_0x57351a['isAdded']?-0x1:0x1:_0x57351a['isAdded']?0x1:-0x1:_0x57351a['index']-_0x11cf94['index']),{'commonTape':_0x34b66a,'iEnd':_0x2f1b93,'jEnd':_0x3c4897};function _0x5cf631(_0x35f965,_0x1bdffe,_0x562aed){let _0x15cdc1=-0x1,_0x1332d5=Number['POSITIVE_INFINITY'],_0x3990b4=!0x0;for(let _0x2948ad=_0x1bdffe;_0x2948ad<_0x562aed;_0x2948ad++)if(_0x2186fb['isInline'](_0x35f965[_0x2948ad]['item'])||(_0x3990b4=!0x1),_0x35f965[_0x2948ad]['item']['startIndex']<_0x1bdffe&&(_0x15cdc1=_0x2948ad),_0x35f965[_0x2948ad]['item']['endIndex']>=_0x562aed){_0x1332d5=_0x2948ad;break;}_0x3990b4&&(_0x15cdc1=_0x562aed-0x1);for(let _0x5cba70=_0x1bdffe;_0x5cba70<_0x562aed;_0x5cba70++)_0x35f965[_0x5cba70]['side']=_0x5cba70<=_0x15cdc1?-0x1:_0x5cba70<_0x1332d5?0x0:0x1,_0x35f965[_0x5cba70]['index']=_0x5cba70;let _0x25c3af=0x0;for(let _0x3cd6fd=_0x1bdffe;_0x3cd6fd<=_0x15cdc1;_0x3cd6fd++)0x0==_0x35f965[_0x3cd6fd]['distance']?_0x35f965[_0x3cd6fd]['level']=_0x25c3af:(_0x25c3af++,_0x35f965[_0x3cd6fd]['level']=_0x25c3af,_0x25c3af++);for(let _0x24d43c=_0x1bdffe;_0x24d43c<_0x562aed;_0x24d43c++)0x0==_0x35f965[_0x24d43c]['side']&&(_0x35f965[_0x24d43c]['level']=_0x25c3af);_0x25c3af=0x0;for(let _0x3cd17c=_0x562aed-0x1;_0x3cd17c>=_0x1332d5;_0x3cd17c--)0x0==_0x35f965[_0x3cd17c]['distance']?_0x35f965[_0x3cd17c]['level']=_0x25c3af:(_0x25c3af--,_0x35f965[_0x3cd17c]['level']=_0x25c3af,_0x25c3af--);}}['_fixObsoleteTags'](_0x444064){const _0x382f80=new Map(),_0x21c506=this['editor']['model']['schema'];for(let _0x190ed5=0x1;_0x190ed5<_0x444064['length'];_0x190ed5++){let _0x4ca9c7,_0x4387ba,_0x195675;const _0x30ac10=_0x444064[_0x190ed5],_0x42669b=_0x444064[_0x190ed5-0x1];if('text'==_0x30ac10['type'])continue;if(_0x30ac10['type']!=_0x42669b['type'])continue;if(!_0x21c506['isBlock'](_0x42669b['item'])||_0x21c506['isLimit'](_0x42669b['item']))continue;if(!_0x21c506['isBlock'](_0x30ac10['item'])||_0x21c506['isLimit'](_0x30ac10['item']))continue;if((_0x444064[_0x190ed5]['isAdded']||_0x444064[_0x190ed5]['isAddSuggestion'])&&_0x444064[_0x190ed5-0x1]['isRemoved'])_0x4ca9c7=_0x444064[_0x190ed5],_0x4387ba=_0x444064[_0x190ed5-0x1],_0x195675=_0x190ed5-0x1;else{if(!_0x444064[_0x190ed5]['isRemoved']||!_0x444064[_0x190ed5-0x1]['isAdded']&&!_0x444064[_0x190ed5-0x1]['isAddSuggestion'])continue;_0x4ca9c7=_0x444064[_0x190ed5-0x1],_0x4387ba=_0x444064[_0x190ed5],_0x195675=_0x190ed5;}const _0x56abe1=_0x4ca9c7['level']==_0x4387ba['level'],_0xdce170=Math['abs'](_0x4ca9c7['level'])<Math['abs'](_0x4387ba['level'])&&0x0==_0x4387ba['distance'];(_0x56abe1||_0xdce170)&&(_0x382f80['set'](_0x4387ba['id'],_0x4ca9c7['id']),_0x444064['splice'](_0x195675,0x1),_0x190ed5--,_0x4ca9c7['isAdded']=!0x1);}for(let _0x20e5be=0x0;_0x20e5be<_0x444064['length'];_0x20e5be++)_0x382f80['has'](_0x444064[_0x20e5be]['pairId'])&&(_0x444064[_0x20e5be]['pairId']=_0x382f80['get'](_0x444064[_0x20e5be]['pairId']));}['_removeMissingPairs'](_0x557751){const _0x5d48d4=new Set(_0x557751['map'](_0x34edc6=>_0x34edc6['id']));for(let _0x2463ee=0x0;_0x2463ee<_0x557751['length'];_0x2463ee++)_0x5d48d4['has'](_0x557751[_0x2463ee]['pairId'])||0x0==_0x557751[_0x2463ee]['distance']||(_0x557751[_0x2463ee]['isIncorrect']=!0x0);return _0x557751['filter'](_0x13e49b=>!_0x13e49b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e3a5a){const _0x4a8bab=new Set();for(let _0x2c19af=0x0;_0x2c19af<_0x5e3a5a['length'];_0x2c19af++){if(_0x4a8bab['has'](_0x5e3a5a[_0x2c19af]['id'])&&_0x5e3a5a[_0x2c19af]['isRemoved']&&(_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0),_0x5e3a5a[_0x2c19af]['isIncorrect'])continue;if(0x0==_0x5e3a5a[_0x2c19af]['distance'])continue;if('elementStart'!=_0x5e3a5a[_0x2c19af]['type'])continue;if(null==_0x5e3a5a[_0x2c19af]['pairId'])continue;let _0xf19f6d=_0x2c19af+0x1,_0x3741ed=0x0;for(;_0x5e3a5a[_0xf19f6d]['id']!=_0x5e3a5a[_0x2c19af]['pairId'];)'elementStart'==_0x5e3a5a[_0xf19f6d]['type']?_0x3741ed++:'elementEnd'==_0x5e3a5a[_0xf19f6d]['type']&&_0x3741ed--,_0xf19f6d++;if(0x0!=_0x3741ed){if(_0x5e3a5a[_0x2c19af]['isRemoved'])_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0;else{for(;_0xf19f6d!=_0x2c19af;)_0x5e3a5a[_0xf19f6d]['isRemoved']&&0x0!=_0x5e3a5a[_0xf19f6d]['distance']&&(_0x5e3a5a[_0xf19f6d]['isIncorrect']=!0x0,_0x4a8bab['add'](_0x5e3a5a[_0xf19f6d]['pairId'])),_0xf19f6d--;}}}return _0x5e3a5a['filter'](_0x1ec71e=>!_0x1ec71e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4bf99f){const _0x293907=this['editor']['model']['schema'];for(let _0x5b9322=0x0;_0x5b9322<_0x4bf99f['length'];_0x5b9322++){if(!(_0x4bf99f[_0x5b9322]['isAdded']||_0x4bf99f[_0x5b9322]['isAddSuggestion']||_0x4bf99f[_0x5b9322]['isRemoved']||_0x4bf99f[_0x5b9322]['isRemoveSuggestion']))continue;if(0x0==_0x4bf99f[_0x5b9322]['distance'])continue;const _0x513fc4=_0x4bf99f[_0x5b9322]['item'];_0x293907['isBlock'](_0x513fc4)||_0x293907['isLimit'](_0x513fc4)||(_0x4bf99f[_0x5b9322]['isAdded']&&delete _0x4bf99f[_0x5b9322]['isAdded'],_0x4bf99f[_0x5b9322]['isAddSuggestion']&&delete _0x4bf99f[_0x5b9322]['isAddSuggestion'],_0x4bf99f[_0x5b9322]['isRemoveSuggestion']&&delete _0x4bf99f[_0x5b9322]['isRemoveSuggestion'],_0x4bf99f[_0x5b9322]['isRemoved']&&(_0x4bf99f[_0x5b9322]['isIncorrect']=!0x0));}return _0x4bf99f['filter'](_0xc3a6dd=>!_0xc3a6dd['isIncorrect']);}['_makeModelFromTape'](_0x5a4c9e,_0x51c020,_0x4540b4){const _0x27e6e9=new vt(),_0x3423fb=[],_0xc5efff=new Map(),_0x206f02=this['editor']['model'],_0x1171ba=_0x206f02['schema'],_0x1a4281=[_0x27e6e9],_0x12c36e={},_0x30f530={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2b3059=null;const _0x910421=[0x0];for(let _0x5cd34e=0x0;_0x5cd34e<_0x5a4c9e['length'];_0x5cd34e++)if('elementStart'===_0x5a4c9e[_0x5cd34e]['type']){_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);const _0x54e381=new ut(_0x5a4c9e[_0x5cd34e]['item']['name'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']());_0x1a4281[0x0]['_appendChild'](_0x54e381),_0x910421['push'](0x0),_0x1a4281['unshift'](_0x54e381),_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);}else'elementEnd'===_0x5a4c9e[_0x5cd34e]['type']?(_0x1a4281['shift'](),_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x910421['pop'](),_0x910421[_0x910421['length']-0x1]++,_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421)):(_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x2b3059?_0x2b3059['_data']+=_0x5a4c9e[_0x5cd34e]['item']['data']:_0x2b3059=new gt(_0x5a4c9e[_0x5cd34e]['item']['data'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']()),_0x5a4c9e[_0x5cd34e+0x1]&&'text'===_0x5a4c9e[_0x5cd34e+0x1]['type']&&_0x5bf36e(_0x2b3059,_0x5a4c9e[_0x5cd34e+0x1]['item'])||(_0x1a4281[0x0]['_appendChild'](_0x2b3059),_0x2b3059=null),_0x910421[_0x910421['length']-0x1]+=_0x5a4c9e[_0x5cd34e]['item']['offsetSize'],_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421));for(let _0x5dd944=0x0;_0x5dd944<_0x5a4c9e['length'];_0x5dd944++){const _0x5e7c04=_0x5a4c9e[_0x5dd944]['previousPosition'],_0x1d03bf=_0x5a4c9e[_0x5dd944]['nextPosition'];for(const _0x29d5ca of _0x5a4c9e[_0x5dd944]['markersStart'])_0xc5efff['set'](_0x29d5ca,{'start':_0x5e7c04,'end':null});_0x4b9692('isRemoveSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAddSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isRemoved',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAdded',_0x5dd944,_0x5e7c04,_0x1d03bf);for(const _0x557dc1 of _0x5a4c9e[_0x5dd944]['markersEnd']){const _0x50b0e8=_0xc5efff['get'](_0x557dc1);_0x50b0e8?_0x50b0e8['end']=_0x1d03bf:_0xc5efff['set'](_0x557dc1,{'start':_0x1d03bf,'end':_0x1d03bf});}}for(const [_0x478586,_0x13398e]of _0xc5efff){const _0x236611=this['editor']['model']['createRange'](_0x13398e['start'],_0x13398e['end']);_0x27e6e9['markers']['set'](_0x478586,_0x236611);}return _0x3423fb['sort']((_0x2511af,_0x59c915)=>{const _0x3997d1=_0x27e6e9['markers']['get']('revision:'+_0x2511af['id']),_0x31733b=_0x27e6e9['markers']['get']('revision:'+_0x59c915['id']);return _0x3997d1['start']['isBefore'](_0x31733b['start'])?-0x1:_0x3997d1['start']['isAfter'](_0x31733b['start'])?0x1:_0x3997d1['end']['isBefore'](_0x31733b['end'])?-0x1:_0x3997d1['end']['isAfter'](_0x31733b['end'])?0x1:'add'===_0x2511af['type']?-0x1:0x1;}),{'root':_0x27e6e9,'changes':_0x3423fb};function _0x4b9692(_0xfb6cf1,_0x48d528,_0x158d53,_0x35cb8d){const _0x3f4cb4=!!_0x5a4c9e[_0x48d528][_0xfb6cf1],_0x4ce2f0=_0x3f4cb4?_0x5a4c9e[_0x48d528][_0xfb6cf1]['userId']:null,_0x4fda4f=_0x48d528===_0x5a4c9e['length']-0x1,_0x5e5804=_0x30f530[_0xfb6cf1][0x0],_0x34e22c=_0x1171ba['isObject'](_0x5a4c9e[_0x48d528]['item']);!_0x12c36e[_0xfb6cf1]&&_0x3f4cb4?_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}:_0x12c36e[_0xfb6cf1]&&!_0x3f4cb4?(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null):_0x12c36e[_0xfb6cf1]&&_0x3f4cb4&&_0x12c36e[_0xfb6cf1]['userId']!==_0x4ce2f0&&(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x5e5804&&_0x5e5804['userId']===_0x12c36e[_0xfb6cf1]['userId']||_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}),_0x12c36e[_0xfb6cf1]&&_0x34e22c&&('elementStart'!==_0x5a4c9e[_0x48d528]['type']||_0x5e5804&&_0x5e5804['userId']===_0x4ce2f0||_0x30f530[_0xfb6cf1]['unshift']({'userId':_0x4ce2f0,'object':_0x5a4c9e[_0x48d528]['item'],'change':_0x12c36e[_0xfb6cf1]}),'elementEnd'===_0x5a4c9e[_0x48d528]['type']&&_0x5e5804&&_0x5e5804['object']===_0x5a4c9e[_0x48d528]['item']&&(_0x30f530[_0xfb6cf1]['shift'](),_0x12c36e[_0xfb6cf1]=_0x5e5804['change'])),_0x12c36e[_0xfb6cf1]&&_0x4fda4f&&(_0x12c36e[_0xfb6cf1]['end']=_0x35cb8d,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null);}function _0x467bc0({start:_0x43d146,end:_0x1f1d54,tapeItem:_0x292b8a,userId:_0x5e0033,type:_0x23acb7}){const _0x67a500=_0x292b8a['item'],_0x3b1436=_0x206f02['schema']['isBlock'](_0x67a500)&&!_0x206f02['schema']['isLimit'](_0x67a500),_0x127015=_0x43d146['nodeAfter']==_0x1f1d54['parent']&&_0x1f1d54['isAtStart'];if(_0x3b1436&&_0x127015)return;const _0x52befa=_0x206f02['createRange'](_0x43d146,_0x1f1d54),_0x40d6ed=_0x51c020['get'](_0x5e0033),_0x4671c2=new r({'author':_0x40d6ed,'type':'isAdded'==_0x23acb7||'isAddSuggestion'==_0x23acb7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23acb7||'isRemoveSuggestion'==_0x23acb7},'createdAt':new Date(),'rootName':_0x4540b4});_0x3423fb['push'](_0x4671c2),_0x27e6e9['markers']['set']('revision:'+_0x4671c2['id'],_0x52befa);}function _0x5bf36e(_0x495318,_0x132bd2){const _0x24926b=_0x495318['getAttributes'](),_0x43f005=_0x132bd2['getAttributes']();for(const _0x24c027 of _0x24926b){if(_0x24c027[0x1]!==_0x132bd2['getAttribute'](_0x24c027[0x0]))return!0x1;_0x43f005['next']();}return _0x43f005['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e74e=>{const _0x50755b=_0x42e74e['markerName']['split'](':')[0x1],_0x8e5449=this['_getChangeFromId'](_0x50755b);if(!_0x8e5449)return null;const _0x11e849='add'==_0x8e5449['type']?'insertion':'deletion',_0x5003c0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e849];return _0x8e5449['data']['isSuggestion']&&_0x5003c0['push']('ck-suggestion-marker-'+_0x11e849+'-new'),this['activeChange']==_0x8e5449&&_0x5003c0['push']('ck-suggestion-marker--active'),{'classes':_0x5003c0,'attributes':{'data-change-id':_0x50755b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4a10cd=>{_0x4a10cd['on']('element:pre',(_0x295f26,_0x3b3ca4,_0x47f754)=>{const _0x12d9a7=_0x3b3ca4['viewItem']['getChild'](0x0);if(!_0x12d9a7||!_0x12d9a7['is']('element','code'))return;if(!_0x47f754['consumable']['consume'](_0x12d9a7,{'attributes':['vid_start','vid_end']}))return;const _0x1ee258=_0x3b3ca4['modelRange']['start']['nodeAfter'];_0x47f754['writer']['setAttribute']('vid_start',_0x12d9a7['getAttribute']('vid_start'),_0x1ee258),_0x47f754['writer']['setAttribute']('vid_end',_0x12d9a7['getAttribute']('vid_end'),_0x1ee258);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xd936ea=>{_0xd936ea['on']('element',(_0x3e42cd,_0x540c30,_0x433ccb)=>{if(!_0x433ccb['consumable']['consume'](_0x540c30['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x540c30['modelRange']['isCollapsed'])return;const _0x5e1a29=_0x540c30['modelRange']['start']['nodeAfter'];_0x5e1a29['hasAttribute']('vid_start')||_0x5e1a29['hasAttribute']('vid')||(_0x433ccb['writer']['setAttribute']('vid_start',_0x540c30['viewItem']['getAttribute']('vid_start'),_0x5e1a29),_0x433ccb['writer']['setAttribute']('vid_end',_0x540c30['viewItem']['getAttribute']('vid_end'),_0x5e1a29));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x24e20e=>_0x24e20e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x480a48,[,_0x41b94d])=>{['vid_start','vid_end','vid']['includes'](_0x41b94d)&&(_0x480a48['return']=!0x0,_0x480a48['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x130ad2=>{_0x130ad2['on']('attribute:vid',(_0x192ee3,_0x2f40ff,_0x49e7f1)=>{if('\x20'!=_0x2f40ff['item']['data']||_0x2f40ff['item']['parent']['maxOffset']>0x1)return;if(!_0x49e7f1['consumable']['consume'](_0x2f40ff['item'],_0x192ee3['name']))return;const _0x102080=_0x49e7f1['writer'],_0x29a816=_0x49e7f1['mapper']['toViewRange'](_0x2f40ff['range']);_0x102080['wrap'](_0x29a816,_0x102080['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x492b38){const _0x1c76a8=_0x492b38['plugins']['get']('RevisionViewer');return(_0x29189b,_0x9abae2,_0x564d35)=>{const _0x6a51eb=_0x9abae2['markerName']['split'](':')[0x1],_0x328ad0=_0x1c76a8['_getChangeFromId'](_0x6a51eb);if(!_0x328ad0)return null;const _0x47df1e='add'==_0x328ad0['type']?'split':'merge';if(!_0x564d35['consumable']['test'](_0x9abae2['markerRange'],_0x29189b['name']))return;const _0x3e34ac=_0x9abae2['markerRange']['getWalker'](),_0x31ac9b=_0x9abae2['markerRange']['start'],_0x489fb9=_0x492b38['model']['schema'];let _0x53c51d=null,_0x6fb43c=null,_0x290c20=!0x1,_0x4849bb=!0x1;for(const _0x50e645 of _0x3e34ac){const _0x494b6c=_0x50e645['item'];_0x290c20=_0x290c20||_0x489fb9['isContent'](_0x494b6c);const _0x4fd904=_0x564d35['mapper']['toViewElement'](_0x494b6c);if(_0x4fd904&&_0x4fd904['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50e645['type']&&(_0x489fb9['isBlock'](_0x494b6c)&&!_0x489fb9['isLimit'](_0x494b6c)&&(_0x494b6c['nextSibling']||_0x31ac9b['isAtEnd']?_0x53c51d&&_0x53c51d['parent']==_0x494b6c||(_0x53c51d=_0x494b6c,_0x4e9749(_0x50e645['previousPosition']),_0x4849bb=!0x0):_0x6fb43c=_0x6fb43c||_0x50e645['previousPosition']));}function _0x4e9749(_0x4f6a53){const _0xf4c007=_0x564d35['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47df1e}),_0x364981=_0x564d35['mapper']['toViewPosition'](_0x4f6a53);_0x328ad0['data']['isSuggestion']&&_0x564d35['writer']['addClass']('ck-suggestion-marker-'+_0x47df1e+'-new',_0xf4c007),_0x1c76a8['activeChange']==_0x328ad0&&_0x564d35['writer']['addClass']('ck-suggestion-marker--active',_0xf4c007),_0x564d35['writer']['insert'](_0x364981,_0xf4c007),_0x564d35['mapper']['bindElementToMarker'](_0xf4c007,_0x9abae2['markerName']);}_0x290c20||_0x4849bb||!_0x6fb43c||_0x4e9749(_0x6fb43c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b77e8,_0x4af6bb,_0x471e33)=>{const _0x2f747a=_0x471e33['mapper']['markerNameToElements'](_0x4af6bb['markerName']);if(_0x2f747a){for(const _0x2392aa of _0x2f747a)(_0x2392aa['hasClass']('ck-suggestion-marker-split')||_0x2392aa['hasClass']('ck-suggestion-marker-merge'))&&(_0x471e33['mapper']['unbindElementFromMarkerName'](_0x2392aa,_0x4af6bb['markerName']),_0x471e33['writer']['remove'](_0x2392aa));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2fe626,_0x376397,_0x44dc84)=>{const _0x1b10cd=_0x376397['markerName']['split'](':')[0x1],_0x5f2254=this['_getChangeFromId'](_0x1b10cd);if(!_0x5f2254)return null;const _0x41351b='add'==_0x5f2254['type']?'split':'merge';if(_0x44dc84['consumable']['test'](_0x376397['markerRange'],_0x2fe626['name']))for(const _0x2866e7 of _0x376397['markerRange']['getItems']()){if(!_0x2866e7['is']('element','softBreak'))continue;const _0x2de012=_0x44dc84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41351b}),_0x2bf2d7=_0x44dc84['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2866e7));_0x5f2254['data']['isSuggestion']&&_0x44dc84['writer']['addClass']('ck-suggestion-marker-'+_0x41351b+'-new',_0x2de012),this['activeChange']==_0x5f2254&&_0x44dc84['writer']['addClass']('ck-suggestion-marker--active',_0x2de012),_0x44dc84['writer']['insert'](_0x2bf2d7,_0x2de012),_0x44dc84['mapper']['bindElementToMarker'](_0x2de012,_0x376397['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x18527e=>{for(const _0x2c0a5f of this['editor']['model']['document']['getRootNames']()){const _0x3072d3=this['editor']['model']['document']['getRoot'](_0x2c0a5f),_0x39bdc3=this['editor']['editing']['view']['document']['getRoot'](_0x2c0a5f);if(_0x39bdc3){const _0x1176ad=_0x3072d3['getAttribute']('revisionHistoryAttachChange');if(_0x18527e['removeAttribute']('data-change-id',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-add',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-remove',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root--active',_0x39bdc3),_0x1176ad){const _0x280bf3=this['_getChangeFromId'](_0x1176ad);if(!_0x280bf3)return null;_0x18527e['setAttribute']('data-change-id',_0x1176ad,_0x39bdc3),_0x18527e['addClass']('ck-revision-history-root-'+_0x280bf3['type'],_0x39bdc3),this['activeChange']==_0x280bf3&&_0x18527e['addClass']('ck-revision-history-root--active',_0x39bdc3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xedfc30=>'revision-comment:'+_0xedfc30,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4af8a6=>'revision-suggestion:'+_0x4af8a6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5acfbc=>({'name':'suggestion:'+_0x5acfbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x55566b=>{const _0x1de12b=_0x55566b['markerName']['split'](':')[0x1];return'insertion'!=_0x1de12b&&'deletion'!=_0x1de12b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1de12b]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1ff845,_0xc4174d,_0x1198a8)=>{const _0x3240be=_0x1198a8['mapper']['markerNameToElements'](_0xc4174d['markerName']);if(_0x3240be){for(const _0x2a03e4 of _0x3240be)_0x2a03e4['is']('uiElement')&&(_0x1198a8['mapper']['unbindElementFromMarkerName'](_0x2a03e4,_0xc4174d['markerName']),_0x1198a8['writer']['remove'](_0x2a03e4));}},{'priority':'high'});}['_getChangeFromId'](_0x5acea1){return this['_changeIdToChange']['get'](_0x5acea1);}['_getViewForChange'](_0x5c1cf7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5c1cf7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e185e,_0x33e565,_0x29b8a5,_0x41929a)=>{_0x41929a&&this['_balloon']['remove'](_0x41929a),_0x29b8a5&&(this['_balloon']['add']({'view':_0x29b8a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4da630=this['editor']['editing'],_0xd86462=this['_getChangeFromId'](_0x29b8a5['changeId']);let _0x51daec;if(_0xd86462['data']['isOnRoot']){const _0x3179c1=_0x4da630['view']['getDomRoot'](_0xd86462['rootName']);_0x51daec=Array['from'](_0x3179c1['getClientRects']());}else{const _0x284566=this['editor']['model']['markers']['get']('revision:'+_0x29b8a5['changeId']);_0x51daec=Array['from'](_0x4da630['mapper']['markerNameToElements'](_0x284566['name']))['map'](_0x312202=>_0x4da630['view']['domConverter']['mapViewToDom'](_0x312202))['map'](_0x1e2cf8=>Array['from'](_0x1e2cf8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51daec[0x0];return _0x51daec['find'](_0x5bbaf4=>_0x5bbaf4['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bbaf4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bbaf4['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bbaf4['right']+0x3>=this['_activeViewTarget']['x'])||_0x51daec[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c0ddd,_0x40ef7b,_0x278c11,_0x277351)=>{this['activeView']=_0x278c11?this['_getViewForChange'](_0x278c11):null,this['editor']['model']['change'](()=>{const _0x14e3ae=this['editor']['editing'];_0x277351&&(_0x277351['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x2d2e56=>{_0x2d2e56['removeClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x277351['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x277351['id'])),_0x278c11&&(_0x278c11['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x23a080=>{_0x23a080['addClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x278c11['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x278c11['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x235aeb,_0x20b29e)=>{if(this['activeChange'])return;const _0xe5ff42=this['_findChangeIdFromDomTarget'](_0x20b29e['target']),_0x413ab1=this['_changeIdToChange']['get'](_0xe5ff42);_0x413ab1?(this['_activeViewTarget']={'x':_0x20b29e['domEvent']['x'],'y':_0x20b29e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x413ab1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2c30f9,_0x4398ca)=>{const _0x5366bf=this['_findChangeIdFromDomTarget'](_0x4398ca['target']),_0x771ed8=this['_changeIdToChange']['get'](_0x5366bf);_0x771ed8?(this['_activeViewTarget']={'x':_0x4398ca['domEvent']['x'],'y':_0x4398ca['domEvent']['y']},_0x771ed8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x771ed8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x287e4d){do{const _0x408566=_0x287e4d['getAttribute']('data-change-id');if(_0x408566)return _0x408566;_0x287e4d=_0x287e4d['parent'];}while(_0x287e4d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x570c6d=>{for(const _0x404771 of this['editor']['model']['markers'])_0x570c6d['removeMarker'](_0x404771);});}}function X(_0xad30fd,_0x4191c6){return(_0x2c25c1,_0x3eaeb4,_0x5c9ff2)=>{if(!_0x5c9ff2['consumable']['test'](_0x3eaeb4['markerRange'],_0x2c25c1['name']))return;const _0x42e900=_0x3eaeb4['markerRange']['getWalker'](),_0x4b4e98=_0x3eaeb4['markerRange']['start'],_0x131415=_0xad30fd['model']['schema'];let _0x45fd55=null,_0x323623=null,_0x4d6160=!0x1,_0x2382f0=!0x1;for(const _0x4e1b13 of _0x42e900){const _0x71d90f=_0x4e1b13['item'];_0x4d6160=_0x4d6160||_0x131415['isContent'](_0x71d90f);const _0x3044e5=_0x5c9ff2['mapper']['toViewElement'](_0x71d90f);if(_0x3044e5&&_0x3044e5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e1b13['type']&&(_0x131415['isBlock'](_0x71d90f)&&!_0x131415['isLimit'](_0x71d90f)&&(_0x71d90f['nextSibling']||_0x4b4e98['isAtEnd']?_0x45fd55&&_0x45fd55['parent']==_0x71d90f||(_0x45fd55=_0x71d90f,_0x15b52a(_0x4e1b13['previousPosition']),_0x2382f0=!0x0):_0x323623=_0x323623||_0x4e1b13['previousPosition']));}function _0x15b52a(_0x172385){const _0xedc7d8=_0x5c9ff2['mapper']['toViewPosition'](_0x172385),_0x517fcc=_0x5c9ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4191c6});_0x5c9ff2['writer']['insert'](_0xedc7d8,_0x517fcc),_0x5c9ff2['mapper']['bindElementToMarker'](_0x517fcc,_0x3eaeb4['markerName']);}_0x4d6160||_0x2382f0||!_0x323623||_0x15b52a(_0x323623);};}class mt extends _0x4bf53c{constructor(_0x2d0b40){super(_0x2d0b40);const _0x276d5c=_0x2d0b40['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x276d5c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276d5c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x28bdb5=this['editor'],_0x4bed8d=_0x28bdb5['plugins']['get'](m),_0x397e72=_0x4bed8d['isReady']?_0x4bed8d['diff']['newRevisionId']:null;_0x28bdb5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x397e72);}['refresh'](){const {isReady:_0x3be1e9,isEnabled:_0x462d26,repository:_0x531ffa,diff:_0x3c3135}=this['editor']['plugins']['get'](m),_0x149067=_0x3c3135&&_0x531ffa['getLaterVisibleRevision'](_0x3c3135['newRevisionId']);this['isEnabled']=_0x3be1e9&&_0x462d26&&Boolean(_0x149067);}}class wt extends _0x4bf53c{['_step'];constructor(_0x37f699,{direction:_0x21b010}){super(_0x37f699);const _0x518da3=_0x37f699['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x21b010?0x1:-0x1,this['listenTo'](_0x518da3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1425cd=this['editor'],_0x32cb17=_0x1425cd['plugins']['get'](m),{isNavigationMode:_0x45f7c1,currentChangeNumber:_0xc169ba}=_0x32cb17;let _0x2fe951;if(_0x32cb17['activeChange']=_0x45f7c1?_0x32cb17['diff']['changes']['get'](_0xc169ba+this['_step']):_0x32cb17['diff']['changes']['first'],_0x32cb17['activeChange']['data']['isOnRoot'])_0x2fe951=_0x1425cd['editing']['view']['getDomRoot'](_0x32cb17['activeChange']['rootName']);else{const _0xc7e26b=_0x1425cd['model']['markers']['get']('revision:'+_0x32cb17['activeChange']['id']);_0x2fe951=_0x3748cb(_0x1425cd['editing'],_0xc7e26b);}_0x3ccd89({'target':_0x2fe951,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5a8fa9,currentChangeNumber:_0x372294,numberOfChanges:_0x1292b6,isReady:_0x559603,isEnabled:_0x356c1d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x356c1d&&_0x559603&&_0x1292b6)&&(!_0x5a8fa9||(0x1===this['_step']?_0x372294<_0x1292b6-0x1:_0x372294>0x0));}}class _i extends ts{constructor(_0x28d47c){super(_0x28d47c);const _0x4bac7f=this['bindTemplate'],_0x1de506=new te(_0x28d47c),_0x25eeab=new te(_0x28d47c);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',(_0x5e8691,_0x111b4e)=>_0x5e8691&&_0x111b4e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20080d,_0x5bb29e,_0x22445d,_0x56073c)=>{if(!_0x20080d)return g(_0x28d47c,'Loading...');if(!_0x22445d)return g(_0x28d47c,'No\x20changes');const _0x1958f0=g(_0x28d47c,'NUMBER_OF_CHANGES',_0x22445d);return _0x56073c?g(_0x28d47c,'X_OF_Y_CHANGES',[_0x5bb29e+0x1,_0x22445d]):_0x1958f0;}),_0x1de506['set']({'label':g(_0x28d47c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x548b1c}),_0x25eeab['set']({'label':g(_0x28d47c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x235c62}),_0x1de506['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x25eeab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1de506['on']('execute',()=>this['fire']('execute','backward')),_0x25eeab['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',_0x4bac7f['if']('_isStatusLabelVisible','ck-hidden',_0x35ca4f=>!_0x35ca4f)]},'children':[{'text':_0x4bac7f['to']('isNavigationMode',_0x122f43=>_0x122f43?g(_0x28d47c,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x28d47c,'Total')+':\x20')}]},{'text':_0x4bac7f['to']('_statusText')}]},new _0x2ebcba(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1de506,_0x25eeab]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x432e21{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x197658=this['editor']['editing']['view'];_0x197658['change'](_0x1b552b=>{for(const _0x20fb72 of _0x197658['document']['roots'])_0x1b552b['addClass'](le,_0x20fb72);});}['hide'](){const _0x328a38=this['editor']['editing']['view'];_0x328a38['change'](_0x241337=>{for(const _0xe455a0 of _0x328a38['document']['roots'])_0x241337['removeClass'](le,_0xe455a0);});}}class R extends _0x432e21{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xee2b7a=this['editor'],_0x12a874=_0xee2b7a['plugins']['get'](m),_0x5c2dd2=_0xee2b7a['plugins']['get'](ge);_0xee2b7a['ui']['componentFactory']['add']('exitToEditing',_0x24c71a=>{const _0x1bede9=new te(_0x24c71a);return _0x1bede9['set']({'label':g(_0x24c71a,'Back\x20to\x20editing'),'icon':_0x483496,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1bede9,'execute',()=>{_0xee2b7a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1bede9;}),_0xee2b7a['ui']['componentFactory']['add']('restoreRevision',_0x1ec5f6=>{const _0x1e5084=new te(_0x1ec5f6);return _0x1e5084['set']({'label':g(_0x1ec5f6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1e5084['bind']('isEnabled')['to'](_0xee2b7a['commands']['get']('restoreRevision')),this['listenTo'](_0x1e5084,'execute',()=>_0xee2b7a['execute']('restoreRevision')),_0x1e5084;}),_0xee2b7a['ui']['componentFactory']['add']('changesNavigation',_0x2626b4=>{const _0x34868d=new _i(_0x2626b4),_0x58182b=_0xee2b7a['commands']['get']('showPreviousChange'),_0x152dbf=_0xee2b7a['commands']['get']('showNextChange');return _0x34868d['bind']('isBackwardNavigationEnabled')['to'](_0x58182b,'isEnabled'),_0x34868d['bind']('isForwardNavigationEnabled')['to'](_0x152dbf,'isEnabled'),_0x34868d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12a874),this['listenTo'](_0x34868d,'execute',(_0x25a589,_0x41e40e)=>{_0xee2b7a['execute']('forward'===_0x41e40e?'showNextChange':'showPreviousChange');}),_0x34868d;}),_0x5c2dd2['show'](),_0x12a874['on']('change:isReady',(_0x4d7789,_0xd0dedc,_0x26fc7c)=>{_0x26fc7c?_0x5c2dd2['hide']():_0x5c2dd2['show']();});}}class at extends _0x5b84f9{['_resizeObserver']=null;constructor(_0x5d00f4,_0x8a8ee3){super(_0x5d00f4,_0x8a8ee3);const _0x4a0bc1=this['bindTemplate'];this['set']({'label':g(_0x5d00f4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5d00f4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a0bc1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b13b4=this['fieldView']['element'];this['_tooltipString']=_0x4b13b4['scrollWidth']>_0x4b13b4['clientWidth']&&_0x4b13b4['value']||'';}}class si extends ts{constructor(_0x5f1729,_0x4a6a85,_0x3d3341){super(_0x5f1729);const _0x5ad432=new _0x4262a6();_0x5ad432['set']({'content':_0x512e1f,'viewBox':'0\x200\x2011\x2010'});const _0x4f7681=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3341&&_0x4f7681['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37be0b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5f1729,_0x3d3341?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ad432,_0x4a6a85['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4f7681},'children':_0x37be0b});}}function oi(_0x1dc901,_0xef48d2){const _0x5ee6df=_0x1dc901['bindTemplate'],_0x4e6670=_0x1dc901['locale'],_0x637257=_0x11b6e8(_0x4e6670);_0x637257['panelPosition']='sw';const _0x2e1db7=function(_0x61acab,_0x1bd527){const _0x1c40b8=function(_0x29276f,_0x2c167c){const _0x46ae82=_0x29276f['locale'],_0x6f1ff7={'Compare\x20against\x20selected':g(_0x46ae82,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x46ae82,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x46ae82,'Restore\x20this\x20revision')};return _0x2c167c['map'](_0x2a8938=>{const _0x1f13f8=_0x6f1ff7[_0x2a8938['name']];return _0x1f13f8&&_0x1f13f8!==_0x2a8938['name']&&(_0x2a8938['name']=_0x1f13f8),_0x2a8938;});}(_0x61acab,_0x1bd527),_0x29fc50=new _0xce0641();for(const _0x52c0bd of _0x1c40b8){const _0x23b50f={'type':'button','model':new to({'label':_0x52c0bd['name'],'class':_0x52c0bd['class'],'withText':!0x0,'role':'menuitem','_action':_0x52c0bd['action']})};_0x23b50f['model']['bind']('isEnabled')['to'](_0x61acab,'isActionsDropdownOpen',_0x50511a=>'function'!=typeof _0x52c0bd['isEnabled']||(!_0x50511a||_0x52c0bd['isEnabled'](_0x61acab))),_0x29fc50['add'](_0x23b50f);}return _0x29fc50;}(_0x1dc901,_0xef48d2);return _0x1dc901['bind']('isActionsDropdownOpen')['to'](_0x637257,'isOpen'),_0x637257['buttonView']['set']({'label':g(_0x4e6670,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2da73a}),_0x637257['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ee6df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ee6df['to'](_0x13fb67=>_0x13fb67['stopPropagation']())}}),_0x637257['on']('execute',_0x41422f=>{_0x1dc901['isReady']&&'function'==typeof _0x41422f['source']['_action']&&_0x41422f['source']['_action'](_0x1dc901);}),_0x25c378(_0x637257,_0x2e1db7,{'role':'menu'}),_0x637257['listenTo'](_0x1dc901,'change:isActionsDropdownOpen',(_0x3ca243,_0x2c9b27,_0x215c43)=>{if(_0x215c43)for(const _0x58c884 of _0x637257['listView']['items']){const _0x5159f8=_0x58c884['children']['first'],_0x16dc7b=_0xef48d2['find'](_0x93d84c=>_0x93d84c['action']===_0x5159f8['_action'])['isVisible'];_0x58c884['isVisible']=void 0x0===_0x16dc7b||_0x16dc7b(_0x1dc901);}}),_0x637257;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x23a707,uid as _0x1d6ae4,Collection as _0x20ed9a,logWarning as _0x21ae3d,FocusTracker as _0xc74c6,KeystrokeHandler as _0x3ba797,scrollViewportToShowTarget as _0x30f821,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5a71fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x980597,set as _0x29dc50,unset as _0x3bcf15,isEqual as _0x32942f}from'es-toolkit/compat';import{Plugin as _0x501960,PendingActions as _0x50707e,Command as _0x1cd17f,ElementApiMixin as _0x3625b4,Editor as _0x5b2865}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5916f6,getMarkerDomElement as _0x563781,ConfirmMixin as ti,sanitizeEditorConfig as _0x366bd7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x272f11,ViewAttributeElement as _0x255325,ViewEmptyElement as _0x40c9a6,ViewRawElement as _0x500888,ViewUIElement as _0x183300,ViewDocumentFragment as _0x5e62b6,ViewText as _0x11b39a,ViewElement as _0x4fe2ef,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x25fa61,IconChevronUp as _0x338ca2,IconChevronDown as _0x1edfec,IconUndo as _0x24c8de,IconUser as _0x5481c3,IconThreeVerticalDots as _0x41c7a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x505f3f,submitHandler as _0x5c1a28,LabeledFieldView as _0x5b135e,createLabeledInputText as _0x34358c,createDropdown as _0x26e46b,ListView as _0x322164,ListItemView as _0x2b8957,ButtonView as te,MenuBarMenuView as _0xa031ec,MenuBarMenuListView as _0x89fe1a,MenuBarMenuListItemView as _0x469118,MenuBarMenuListItemButtonView as _0x448748,ContextualBalloon as _0x4960c7,ToolbarSeparatorView as _0x3f634c,IconView as _0x4ceb1c,addListToDropdown as _0x5c8db3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x24252f}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23a707(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x6ad0ad){super(),this['id']=_0x6ad0ad['id']||_0x1d6ae4(),this['creator']=_0x6ad0ad['creator']||null,this['authors']=_0x6ad0ad['authors']||[],this['diffData']=_0x6ad0ad['diffData']||null,this['toVersion']=_0x6ad0ad['toVersion']||0x0,this['fromVersion']=_0x6ad0ad['fromVersion']||0x0,this['set']('name',_0x6ad0ad['name']||''),this['set']('createdAt',_0x6ad0ad['createdAt']||new Date()),this['set']('attributes',_0x6ad0ad['attributes']||{});}['setName'](_0x478e54){this['_update']({'name':_0x478e54});}['setAttribute'](_0x3a5d43,_0x4bc7bf){const _0x543f41=_0x980597(this['attributes']);_0x29dc50(_0x543f41,_0x3a5d43,_0x4bc7bf),this['_update']({'attributes':_0x543f41});}['removeAttribute'](_0xd8a815){const _0x25b059=_0x980597(this['attributes']);_0x3bcf15(_0x25b059,_0xd8a815),this['_update']({'attributes':_0x25b059});}['_update'](_0x498dd7,_0x231cfa=!0x1){let _0x2c23ff=!0x1;const _0x350253={'id':this['id']},_0x23994f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x56326d of _0x23994f){const _0xa3f50a=_0x498dd7[_0x56326d];void 0x0!==_0xa3f50a&&_0xa3f50a!==this[_0x56326d]&&(this[_0x56326d]=_0xa3f50a,_0x350253[_0x56326d]=_0xa3f50a,_0x2c23ff=!0x0);}_0x2c23ff&&(_0x350253['authors']&&(_0x350253['authorsIds']=_0x350253['authors']['map'](_0x210942=>_0x210942['id']),delete _0x350253['authors']),this['fire']('_update',_0x350253,_0x231cfa));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x445523=>_0x445523['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x501960{['_revisions'];static get['requires'](){return[_0x5916f6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x25f82){super(_0x25f82),this['_revisions']=new _0x20ed9a();}['afterInit'](){!async function(_0x1e7e9c){const _0x39ade1=_0x5429a7([0x4f,0x35,0x63,0x6c,0x5a,0x34,0x75,0x31,0x4c,0x56,0x32,0x43,0x68,0x73,0x30,0x6b,0x79,0x57,0x33,0x53,0x44,0x69,0x47,0x58,0x38,0x42,0x74,0x7a,0x77,0x48,0x61,0x4b,0x6a,0x67,0x4a,0x4e,0x6e,0x46,0x50,0x49,0x55,0x72,0x76,0x52,0x54,0x37,0x51,0x6f,0x65,0x41,0x36,0x66,0x78,0x39,0x45,0x4d,0x6d,0x71,0x70,0x64,0x62,0x59]),_0x5a502f=0xeb829,_0x2abbb2=0x331fbfc9,_0x51dff0=0x3318db89^_0x2abbb2,_0x4711f6=window[_0x5429a7([0x44,0x61,0x74,0x65])][_0x5429a7([0x6e,0x6f,0x77])](),_0x44f9c4=_0x1e7e9c[_0x5429a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fbbcc=new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403a46=>{_0x44f9c4[_0x5429a7([0x6f,0x6e,0x63,0x65])](_0x5429a7([0x72,0x65,0x61,0x64,0x79]),_0x403a46);}),_0x1e535e={[_0x5429a7([0x6b,0x74,0x79])]:_0x5429a7([0x45,0x43]),[_0x5429a7([0x75,0x73,0x65])]:_0x5429a7([0x73,0x69,0x67]),[_0x5429a7([0x63,0x72,0x76])]:_0x5429a7([0x50,0x2d,0x32,0x35,0x36]),[_0x5429a7([0x78])]:_0x5429a7([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]),[_0x5429a7([0x79])]:_0x5429a7([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]),[_0x5429a7([0x61,0x6c,0x67])]:_0x5429a7([0x45,0x53,0x32,0x35,0x36])},_0x229fb5=_0x44f9c4[_0x5429a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5429a7([0x67,0x65,0x74])](_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9bc175(){let _0x48789f,_0x589e18=null,_0xb640d7=null;try{if(_0x229fb5==_0x5429a7([0x47,0x50,0x4c]))return _0x5429a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48789f=_0x43ff65(),!_0x48789f)return _0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48789f[_0x5429a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb640d7=_0x509b0e(_0x48789f[_0x5429a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48789f[_0x5429a7([0x6a,0x74,0x69])])),await _0x4ef495()?_0x3b22f5()?_0x130fe0()?_0x5429a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55829c()?(_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5429a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x589e18=_0x3972ab(_0x5429a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5429a7([0x74,0x72,0x69,0x61,0x6c])&&(_0x589e18=_0x3972ab(_0x5429a7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54cf83()):_0x5429a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5429a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x47a07d){return _0x5429a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x130fe0(){const _0x320c12=[_0x5429a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5429a7([0x74,0x72,0x69,0x61,0x6c])][_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4711f6/0x3e8:0xe10*_0x51dff0;return _0x48789f[_0x5429a7([0x65,0x78,0x70])]<_0x320c12;}function _0x3b22f5(){const _0x42e9e8=_0x48789f[_0x5429a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x42e9e8)return!0x1;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x2a])))return!0x0;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x52,0x48])))return!0x0;if(_0x42e9e8[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x52,0x52,0x48]))){if(_0x304c6e())return!0x0;if(_0x1045c6()||_0x534834())return!0x0;}return!0x1;}function _0x55829c(){const _0x9c49d3=_0x48789f[_0x5429a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9c49d3||0x0==_0x9c49d3[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17acc5}=new URL(window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9c49d3[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17acc5))return!0x0;const _0x347190=_0x17acc5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e]));return _0x9c49d3[_0x5429a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3478=>_0x4a3478[_0x5429a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5429a7([0x2a])))[_0x5429a7([0x6d,0x61,0x70])](_0x59b286=>_0x59b286[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e])))[_0x5429a7([0x73,0x6f,0x6d,0x65])](_0x394691=>_0x347190[_0x5429a7([0x65,0x76,0x65,0x72,0x79])]((_0x3b8981,_0x2147ce)=>_0x394691[_0x2147ce]===_0x3b8981||_0x394691[_0x2147ce]===_0x5429a7([0x2a])));}function _0x54cf83(){return _0x589e18&&_0xb640d7?new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc25f10,_0x357769)=>{_0x589e18[_0x5429a7([0x74,0x68,0x65,0x6e])](_0xc25f10,_0x357769),_0xb640d7[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x3cc518=>{_0x3cc518!=_0x5429a7([0x56,0x61,0x6c,0x69,0x64])&&_0xc25f10(_0x3cc518);},_0x357769);}):_0x589e18||_0xb640d7||_0x5429a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x509b0e(_0x428214,_0x26807a){return new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17c78d=>{if(_0x234de9())return _0x17c78d(_0x5429a7([0x56,0x61,0x6c,0x69,0x64]));_0x1e7ea4(),_0x44f9c4[_0x5429a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f20e5=!0x1;const _0x1253cc=_0x1d6ae4();function _0x5470d5(_0x2e09e6){return!!_0x2e09e6&&(typeof _0x2e09e6===_0x5429a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e09e6===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e09e6[_0x5429a7([0x74,0x68,0x65,0x6e])]===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e09e6[_0x5429a7([0x63,0x61,0x74,0x63,0x68])]===_0x5429a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527eb2(_0x396200){_0x277c5d(_0x396200)[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x193b43=>{if(!_0x193b43||_0x193b43[_0x5429a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5429a7([0x6f,0x6b]))return _0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41ffd(_0x2c3e74(_0x1253cc+_0x26807a))!=_0x193b43[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5429a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5429a7([0x74,0x68,0x65,0x6e])](_0xf4686c=>(_0x59804e(),_0xf4686c),()=>{const _0x3dcd1f=_0x2fce15();return null==_0x3dcd1f?(_0x59804e(),_0x5429a7([0x56,0x61,0x6c,0x69,0x64])):_0x5429a7(_0x4711f6-_0x3dcd1f>(0x17133bc9^_0x2abbb2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x17c78d)[_0x5429a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3782d0=0x33295149^_0x2abbb2;function _0x59804e(){const _0x449647=_0x5429a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x41ffd(_0x2c3e74(_0x428214)),_0x1e195d=_0x275d17(_0x41ffd(window[_0x5429a7([0x4d,0x61,0x74,0x68])][_0x5429a7([0x63,0x65,0x69,0x6c])](_0x4711f6/_0x3782d0)));window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5429a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x449647,_0x1e195d);}function _0x2fce15(){const _0x245d2a=_0x5429a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x41ffd(_0x2c3e74(_0x428214)),_0x56c442=window[_0x5429a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5429a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x245d2a);return _0x56c442?window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275d17(_0x56c442),0x10)*_0x3782d0:null;}function _0x277c5d(_0x354a13){return new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x368a48,_0x3d5872)=>{_0x354a13[_0x5429a7([0x74,0x68,0x65,0x6e])](_0x368a48,_0x3d5872),window[_0x5429a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5872,0x331e6b09^_0x2abbb2);});}}_0x44f9c4[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a23c7,_0x301074)=>{if(_0x301074[0x0]!=_0x428214)return _0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301074[0x1]={..._0x301074[0x1],[_0x5429a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1253cc};},{[_0x5429a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5429a7([0x68,0x69,0x67,0x68])}),_0x44f9c4[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f2e21=>{_0x5470d5(_0x4f2e21[_0x5429a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f20e5=!0x0,_0x527eb2(_0x4f2e21[_0x5429a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5429a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5429a7([0x6c,0x6f,0x77])}),_0x3fbbcc[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>{_0x2f20e5||_0x17c78d(_0x5429a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x234de9(){return _0x44f9c4[_0x5429a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5429a7([0x76,0x69,0x65,0x77])][_0x5429a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5429a7([0x61,0x75,0x74,0x6f]);}function _0x1e7ea4(){_0x44f9c4[_0x5429a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5429a7([0x76,0x69,0x65,0x77])][_0x5429a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5429a7([0x61,0x75,0x74,0x6f]);}}function _0x3972ab(_0xef0238){const _0x50576a=[new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe3a4d3=>setTimeout(_0xe3a4d3,0x33168105^_0x2abbb2)),_0x3fbbcc[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x74503=>{const _0x4aaac7=0x331fbfce^_0x2abbb2,_0x2c1a9d=_0x1e7e9c[_0x5429a7([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d21c8(){_0x2c1a9d[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4aaac7&&_0x74503();}_0x3d21c8(),_0x2c1a9d[_0x5429a7([0x6f,0x6e])](_0x5429a7([0x61,0x64,0x64]),_0x3d21c8);})),new window[(_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ede25=>{function _0x19fa63(){for(const _0x2a4393 in window)if(window[_0x5429a7([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5429a7([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a4393))&&window[_0x2a4393]==_0x5a502f)return _0x3ede25();_0x44f9c4[_0x5429a7([0x73,0x74,0x61,0x74,0x65])]!=_0x5429a7([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5429a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19fa63,0x331fac41^_0x2abbb2);}_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x19fa63();})];return window[_0x5429a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5429a7([0x72,0x61,0x63,0x65])](_0x50576a)[_0x5429a7([0x74,0x68,0x65,0x6e])](()=>_0xef0238);}async function _0x3afa0d(){if(await _0x3fbbcc,_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57c679=_0x1e7e9c[_0x5429a7([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x51310c=_0x1e7e9c[_0x5429a7([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])](_0x57c679[_0x5429a7([0x69,0x64])]),_0x4dd3d4=_0x483699(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4dd3d4[_0x5429a7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57c679['id'],_0x51310c?_0x51310c['id']:null,!0x0),_0x4dd3d4[_0x5429a7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4dd3d4[_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4dd3d4[_0x5429a7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2c35df,void(_0x4dd3d4[_0x5429a7([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2c35df);}if(_0x2e2bfb(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2d3bbe=_0x483699(_0x5429a7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2d3bbe[_0x5429a7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d3bbe[_0x5429a7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d3bbe[_0x5429a7([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2c35df,_0x2d3bbe[_0x5429a7([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2c35df;}_0x44f9c4[_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5429a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c35df,_0x44f9c4[_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5429a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c35df,_0x44f9c4[_0x5429a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5429a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x304c6e(){return _0x2e2bfb(_0x5429a7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x483699(_0x5429a7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5429a7([0x73,0x74,0x61,0x74,0x65])]==_0x5429a7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1045c6(){return _0x2e2bfb(_0x5429a7([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 _0x534834(){return _0x2e2bfb(_0x5429a7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x184d59(_0xb3f30f){const _0x11a52c=_0x267293();_0x44f9c4[_0x11a52c]=_0x5429a7([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])+_0xb3f30f,_0xb3f30f[_0x5429a7([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5429a7([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x267293()]=_0x5a502f),_0xb3f30f!=_0x5429a7([0x56,0x61,0x6c,0x69,0x64])&&_0x3afa0d();}function _0x267293(){const _0x25e794=window[_0x5429a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5429a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5429a7([0x6e,0x6f,0x77])]())[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5429a7([0x2e]),'');let _0x1582e8=_0x5429a7([0x4f]);for(let _0x45f50f=0x0;_0x45f50f<_0x25e794[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45f50f+=0x2){let _0x694c47=window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25e794[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45f50f,_0x45f50f+0x2));_0x694c47>=_0x39ade1[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x694c47-=_0x39ade1[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1582e8+=_0x39ade1[_0x694c47];}return _0x1582e8;}function _0x43ff65(){const _0x3e8a94=_0x229fb5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e]));if(0x3!=_0x3e8a94[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x248786(_0x3e8a94[0x1]);function _0x248786(_0x1e1db3){const _0x10aff8=_0x399bec(_0x1e1db3);return _0x10aff8&&_0x4d0c57()?_0x10aff8:null;function _0x4d0c57(){const _0x2def7e=_0x10aff8[_0x5429a7([0x6a,0x74,0x69])],_0x489007=window[_0x5429a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2def7e[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2def7e[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556601={..._0x10aff8,[_0x5429a7([0x6a,0x74,0x69])]:_0x2def7e[_0x5429a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2def7e[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556601[_0x5429a7([0x76,0x63])],_0x2c3e74(_0x556601)==_0x489007;}}}async function _0x4ef495(){let _0x4404e2=!0x0;try{const _0x273b8a=_0x229fb5[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])](_0x5429a7([0x2e])),[_0x5d6fa6,_0x3f234e,_0x75530f]=_0x273b8a;return _0x5d1719(_0x5d6fa6),await _0x5a8c5f(_0x5d6fa6,_0x3f234e,_0x75530f),_0x4404e2;}catch(_0x368578){return!0x1;}function _0x5d1719(_0x32ffd2){const _0x1a0007=_0x399bec(_0x32ffd2);_0x1a0007&&_0x1a0007[_0x5429a7([0x61,0x6c,0x67])]==_0x5429a7([0x45,0x53,0x32,0x35,0x36])||(_0x4404e2=!0x1);}async function _0x5a8c5f(_0x17dbab,_0x28c610,_0x37568c){const _0x4484b4=window[_0x5429a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5429a7([0x66,0x72,0x6f,0x6d])](_0x3b226a(_0x37568c),_0x490f0f=>_0x490f0f[_0x5429a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2821ad=new window[(_0x5429a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5429a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17dbab+_0x5429a7([0x2e])+_0x28c610),_0x598fb2=window[_0x5429a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5429a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x598fb2)return;const _0x16a2d6=await _0x598fb2[_0x5429a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5429a7([0x6a,0x77,0x6b]),_0x1e535e,{[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x45,0x43,0x44,0x53,0x41]),[_0x5429a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5429a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x598fb2[_0x5429a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x45,0x43,0x44,0x53,0x41]),[_0x5429a7([0x68,0x61,0x73,0x68])]:{[_0x5429a7([0x6e,0x61,0x6d,0x65])]:_0x5429a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16a2d6,_0x4484b4,_0x2821ad)||(_0x4404e2=!0x1);}}function _0x399bec(_0x19f68c){return _0x19f68c[_0x5429a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5429a7([0x65,0x79]))?JSON[_0x5429a7([0x70,0x61,0x72,0x73,0x65])](_0x3b226a(_0x19f68c)):null;}function _0x3b226a(_0x1b2829){return window[_0x5429a7([0x61,0x74,0x6f,0x62])](_0x1b2829[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5429a7([0x2b]))[_0x5429a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5429a7([0x2f])));}function _0x2c3e74(_0x4125a2){let _0x1a2808=0x1505;function _0x3d6ffe(_0x36b0a6){for(let _0x36ec53=0x0;_0x36ec53<_0x36b0a6[_0x5429a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36ec53++){const _0x588895=_0x36b0a6[_0x5429a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36ec53);_0x1a2808=(_0x1a2808<<0x5)+_0x1a2808+_0x588895,_0x1a2808&=_0x1a2808;}}function _0x41d5e8(_0x467489){Array[_0x5429a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x467489)?_0x467489[_0x5429a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41d5e8):_0x467489&&typeof _0x467489==_0x5429a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5429a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x467489)[_0x5429a7([0x73,0x6f,0x72,0x74])]()[_0x5429a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4471db,_0x4d5132])=>{_0x3d6ffe(_0x4471db),_0x41d5e8(_0x4d5132);}):_0x3d6ffe(window[_0x5429a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x467489));}return _0x41d5e8(_0x4125a2),_0x1a2808>>>0x0;}function _0x41ffd(_0x47188a){return _0x47188a[_0x5429a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5429a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5429a7([0x30]));}function _0x275d17(_0x1b2841){return _0x1b2841[_0x5429a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5429a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5429a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e2bfb(_0x36e52d){return _0x44f9c4[_0x5429a7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5429a7([0x68,0x61,0x73])](_0x36e52d);}function _0x483699(_0x530c87){return _0x44f9c4[_0x5429a7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5429a7([0x67,0x65,0x74])](_0x530c87);}function _0x2c35df(){}function _0x5429a7(_0x3a9003){return _0x3a9003['map'](_0xa0f87e=>String['fromCharCode'](_0xa0f87e))['join']('');}_0x184d59(await _0x9bc175());}(this);}['createRevision'](_0x24cd0a){const _0x4ea7bd=this['editor']['plugins']['get']('Users');return new h({'id':_0x24cd0a['id'],'name':_0x24cd0a['name'],'creator':_0x24cd0a['creatorId']?_0x4ea7bd['getUser'](_0x24cd0a['creatorId']):null,'diffData':_0x24cd0a['diffData']||_0x24cd0a['data'],'authors':_0x24cd0a['authorsIds']['map'](_0x570ed1=>_0x4ea7bd['getUser'](_0x570ed1)),'createdAt':new Date(_0x24cd0a['createdAt']),'attributes':_0x24cd0a['attributes'],'fromVersion':_0x24cd0a['fromVersion'],'toVersion':_0x24cd0a['toVersion']});}['addRevision'](_0x4abacd,_0x59c5bd=0x0){this['_revisions']['add'](_0x4abacd,_0x59c5bd);}['getRevision'](_0xd35d8c){return this['_revisions']['get'](_0xd35d8c);}['getRevisions'](_0x57ae60={'toJSON':!0x1}){const _0x501bd9=Array['from'](this['_revisions']);return _0x501bd9['reverse'](),_0x57ae60['toJSON']?_0x501bd9['map'](_0x489a63=>_0x489a63['toJSON']()):_0x501bd9;}['getIndex'](_0x40f160){return this['_revisions']['getIndex'](_0x40f160);}['getEarlierVisibleRevision'](_0x3377a0){const [,_0x5d912d]=this['getRevisionsIterator'](_0x3377a0,{'direction':'earlier'});return _0x5d912d;}['getLaterVisibleRevision'](_0x37c4f){const [,_0x130235]=this['getRevisionsIterator'](_0x37c4f,{'direction':'later'});return _0x130235;}['getRevisionsInDiff'](_0x38b8ec){const _0x2cba6e=[];for(const _0x1b7639 of this['getRevisionsIterator'](_0x38b8ec['newRevisionId']))if(_0x2cba6e['push'](_0x1b7639),_0x1b7639['id']===_0x38b8ec['oldRevisionId'])break;return _0x2cba6e;}*['getRevisionsIterator'](_0x3e78fe,{direction:_0x355250='earlier',filter:_0x3ecbf0=()=>!0x0}={}){const _0x28d615='earlier'===_0x355250?0x1:-0x1;let _0x5c7127=this['_revisions']['get'](_0x3e78fe),_0x348f53=this['getIndex'](_0x5c7127);for(yield _0x5c7127;_0x5c7127;){if(_0x348f53+=_0x28d615,_0x5c7127=this['getRevision'](_0x348f53),!_0x5c7127)return;_0x3ecbf0(_0x5c7127)&&(yield _0x5c7127);}}}class V extends _0x501960{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x272f11,'c'],[_0x255325,'a'],[_0x40c9a6,'e'],[_0x500888,'r'],[_0x183300,'u']]);['_typeCharToViewClass']=new Map([['c',_0x272f11],['a',_0x255325],['e',_0x40c9a6],['r',_0x500888],['u',_0x183300]]);async['loadRevisionData'](_0xa56c15,_0x2d369b){if(_0xa56c15['diffData']||!_0x2d369b)return;const _0x544702=this['editor']['config']['get']('collaboration.channelId'),_0x440d1c=await _0x2d369b['getRevision']({'channelId':_0x544702,'revisionId':_0xa56c15['id']});_0xa56c15['diffData']=_0x440d1c['diffData'];}['getRevisionDocumentData'](_0x3e4e4f){const _0x3c14b3={};for(const _0xde2678 in _0x3e4e4f['diffData']){if(_0x3e4e4f['diffData'][_0xde2678]['attachChange']&&!_0x3e4e4f['diffData'][_0xde2678]['attachChange']['isAttached'])continue;const _0x288e20=this['_removeRevisionMarkers'](JSON['parse'](_0x3e4e4f['diffData'][_0xde2678]['insertions'])),_0x5cbdfd=this['editor']['editing']['view']['document'],_0x1551c4=new _0x5e62b6(_0x5cbdfd,_0x288e20['map'](_0x58141b=>this['_getViewFromDiffObj'](_0x58141b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c14b3[_0xde2678]=this['editor']['data']['processor']['toData'](_0x1551c4),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c14b3;}['getRevisionRootsAttributes'](_0x41439d){const _0x37c6b5={};for(const _0x5fc14f in _0x41439d['diffData'])_0x41439d['diffData'][_0x5fc14f]['attachChange']&&!_0x41439d['diffData'][_0x5fc14f]['attachChange']['isAttached']||(_0x37c6b5[_0x5fc14f]=_0x41439d['diffData'][_0x5fc14f]['attributesAfter']||{});return _0x37c6b5;}['_getTypeCharForViewElement'](_0x5d83dd){return this['_viewClassToTypeChar']['get'](_0x5d83dd['constructor']);}['_getViewFromDiffObj'](_0x192f09,_0x2d57e9){const _0x2d663a=this['editor']['editing']['view']['document'];if('string'==typeof _0x192f09)return new _0x11b39a(_0x2d663a,_0x192f09);{let _0x185ff1,_0x131055;_0x131055='u'==_0x192f09['type']||'r'==_0x192f09['type']?[]:_0x192f09['children']['map'](_0x5213d0=>this['_getViewFromDiffObj'](_0x5213d0,_0x2d57e9));const _0x2ddde4=this['_typeCharToViewClass']['get'](_0x192f09['type'])||_0x4fe2ef,_0x967792=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x185ff1=new _0x2ddde4(_0x2d663a,_0x192f09['name'],_0x192f09['attributes'],_0x131055),'u'==_0x192f09['type']){const _0x374499=_0x192f09['children'][0x0];if(_0x185ff1['render']=function(_0x51d98c){const _0x4f23bc=_0x51d98c['createElement']('div');return _0x4f23bc['innerHTML']=_0x374499,_0x4f23bc['childNodes'][0x0];},_0x2d57e9){const _0xde13de=new _0x5e62b6(_0x2d663a);_0xde13de['_appendChild'](_0x185ff1);const _0x25873e=Array['from'](_0x967792['viewChildrenToDom'](_0xde13de,{'bind':!0x1})),_0x43e3e1=_0x967792['domDocument']['createElement']('div');_0x43e3e1['append'](..._0x25873e),_0x185ff1=Array['from'](_0x967792['domChildrenToView'](_0x43e3e1))[0x0];}}else{if('r'==_0x192f09['type']){const _0x9b22cd=_0x192f09['children'][0x0];if(_0x185ff1['render']=function(_0x2ea2c2){_0x2ea2c2['innerHTML']=_0x9b22cd;},_0x2d57e9){const _0x3348e3=new _0x5e62b6(_0x2d663a);_0x3348e3['_appendChild'](_0x185ff1);const _0xe5f9a9=Array['from'](_0x967792['viewChildrenToDom'](_0x3348e3,{'bind':!0x1})),_0x4bbf24=_0x967792['domDocument']['createElement']('div');_0x4bbf24['append'](..._0xe5f9a9);const _0x571585=Array['from'](_0x967792['domChildrenToView'](_0x4bbf24));_0x571585['length']>0x1?_0x185ff1['_appendChild'](_0x571585):_0x185ff1=_0x571585[0x0];}}}if(_0x192f09['customProperties']){for(const [_0xa4458,_0x18fd4b]of _0x192f09['customProperties'])_0x185ff1['_setCustomProperty'](_0xa4458,_0x18fd4b);}const _0x2be96d=_0x192f09['fillerOffset']||null;return _0x185ff1['getFillerOffset']=()=>_0x2be96d,_0x185ff1;}}['_makeModelFromViewString'](_0xe861a3){const _0x59edea=JSON['parse'](_0xe861a3),_0x392232=this['editor']['editing']['view']['document'],_0x53e72b=new _0x5e62b6(_0x392232,_0x59edea['map'](_0x148a93=>this['_getViewFromDiffObj'](_0x148a93,!0x0)));return this['editor']['data']['toModel'](_0x53e72b);}['_removeRevisionMarkers'](_0x440d19){return(_0x440d19=_0x440d19['filter'](_0x5cdafd=>!_0x5cdafd['name']||'revision-start'!==_0x5cdafd['name']&&'revision-end'!==_0x5cdafd['name']))['forEach'](_0x231dd4=>{'string'!=typeof _0x231dd4&&(_0x231dd4['children']=this['_removeRevisionMarkers'](_0x231dd4['children']),_0x231dd4['attributes']=_0x231dd4['attributes']['filter'](_0x12b9f1=>!_0x12b9f1[0x0]['startsWith']('data-revision-')));}),_0x440d19;}}function g(_0x20cc21,_0x1d1868,_0x1af2a0){const t=_0x20cc21['t'];switch(_0x1d1868){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'},_0x1af2a0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1af2a0);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x501960{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5916f6,I,V,_0x50707e];}constructor(_0x54ec4d){super(_0x54ec4d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2fd3b8=_0x1d6ae4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2fd3b8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5a4f71=this['repository']['getRevision'](0x0),_0x22f690=_0x5a4f71&&null===_0x5a4f71['creator']?_0x5a4f71:null;if(this['_continueCurrentRevision']=!!_0x22f690&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13111e=this['_source']['getCurrentRevisionId'](),_0x53d1cd=this['repository']['getRevision'](_0x13111e);if(_0x53d1cd)this['_startingVersion']=_0x53d1cd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2230ab=this['_source']['history']['_operations']['find'](_0x495cda=>!_0x495cda['_isInit']),_0x2b280c=_0x2230ab?_0x2230ab['baseVersion']:this['_source']['history']['version'];_0x5a4f71?(_0x5a4f71['toVersion']<_0x2b280c&&_0x5a4f71['_update']({'toVersion':_0x2b280c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id'],this['_startingVersion']=_0x22f690['fromVersion']):(this['_startingVersion']=_0x5a4f71['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2b280c,this['_continueCurrentRevision']=!0x1);}}else _0x22f690&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x22f690['toVersion'],this['editor']['model']['document']['history']['version']),_0x22f690['fromVersion']===_0x22f690['toVersion']?(0x0!==_0x22f690['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x22f690['id'],this['_startingVersion']=_0x22f690['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',_0x3eb310=>!_0x3eb310),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14042d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x375211;for(const _0x40ac55 in _0x14042d){const _0x5c2813=_0x40ac55,_0x42a307=_0x14042d[_0x5c2813];if('revisionHistoryLicenseKeyValid'==_0x42a307||'revisionHistoryLicenseKeyInvalid'==_0x42a307||'revisionHistoryLicenseKeyExpired'==_0x42a307||'revisionHistoryLicenseKeyDomainLimit'==_0x42a307||'revisionHistoryLicenseKeyNotAllowed'==_0x42a307||'revisionHistoryLicenseKeyEvaluationLimit'==_0x42a307||'revisionHistoryLicenseKeyTrialLimit'==_0x42a307||'revisionHistoryLicenseKeyUsageLimit'==_0x42a307){delete _0x14042d[_0x5c2813],_0x375211=_0x42a307,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x375211&&_0x14042d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x375211&&_0x14042d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x375211&&_0x14042d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x375211&&_0x14042d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x375211&&_0x14042d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x375211&&_0x14042d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x375211&&_0x14042d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x48a9c1=this['repository']['getRevision'](0x0),_0x30057b=await this['getRevisionDocumentData'](_0x48a9c1),_0x47fc1f=await this['getRevisionRootsAttributes'](_0x48a9c1);this['_replaceEditorDataWithRevisionData'](_0x30057b,_0x47fc1f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x180bf8){this['_source']=_0x180bf8;}async['update'](){const _0x4f02f1=await this['_source']['getLatestVersion']();if(_0x4f02f1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2e1f2e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4f02f1});_0x2e1f2e['authors']=_0x2e1f2e['authorsIds']['map'](_0x4acc7d=>this['editor']['plugins']['get']('Users')['getUser'](_0x4acc7d)),this['currentRevision']['_update'](_0x2e1f2e);}}async['saveRevision'](_0x3b77c8={},_0x837f56=null){const _0x3e4749=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x837f56>this['currentRevision']['toVersion']&&(_0x837f56=null),null===_0x837f56&&(_0x837f56=await this['_source']['getLatestVersion']());const _0x5a9d88=this['_getFromVersion'](_0x837f56),_0x35e949=this['buildRevisionData']({'from':_0x5a9d88,'to':_0x837f56});if(this['currentRevision']['toVersion']<_0x837f56){const _0x53046e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x837f56,'to':_0x837f56});_0x53046e['authors']=[],_0x53046e['authorsIds']=[],_0x53046e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x53046e,!0x0),delete _0x53046e['authors'],_0x3e4749['push'](_0x53046e);}_0x3b77c8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b77c8['name']=_0x3b77c8['name']||null,_0x3b77c8['id']=_0x3b77c8['id']||_0x1d6ae4(),_0x3b77c8={..._0x3b77c8,..._0x35e949};const _0x31e0f2=this['addRevisionData'](_0x3b77c8);_0x3e4749['push'](_0x3b77c8);const _0x36dd04=this['repository']['getIndex'](_0x31e0f2);if(0x0!==_0x36dd04){const _0x540f71=this['repository']['getRevision'](_0x36dd04-0x1);if(_0x540f71['fromVersion']!==_0x837f56){const _0x73d79f=this['_revisionDataBuilder']['getData'](_0x837f56,_0x540f71['toVersion']),_0x187376={'id':_0x540f71['id'],'diffData':_0x73d79f['diffData'],'authorsIds':_0x73d79f['authorsIds'],'authors':_0x73d79f['authorsIds']['map'](_0x170f46=>this['editor']['plugins']['get']('Users')['getUser'](_0x170f46)),'fromVersion':_0x837f56};_0x540f71===this['currentRevision']&&(_0x187376['createdAt']=new Date(_0x3b77c8['createdAt']['getTime']()+0xa)),_0x540f71['_update'](_0x187376,!0x0),delete _0x187376['authors'],_0x3e4749['push'](_0x187376);}}if(this['adapter']){for(const _0x509ad2 of _0x3e4749)this['_bufferUpdate'](_0x509ad2['id'],_0x509ad2,!0x0);this['sendBufferedUpdates']();}return _0x31e0f2;}['addRevisionData'](_0xeed512){const _0x1b7034=this['repository']['createRevision'](_0xeed512);return this['adapter']&&_0x1b7034['on']('_update',(_0x12721e,_0x1adee2,_0x13804d)=>{_0x13804d||(this['_bufferUpdate'](_0x1adee2['id'],_0x1adee2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b7034,this['_findInsertionIndex'](_0x1b7034)),_0x1b7034;}async['getRevisionDocumentData'](_0x2f74e6){return await this['_utils']['loadRevisionData'](_0x2f74e6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f74e6);}async['getRevisionRootsAttributes'](_0x123204){return await this['_utils']['loadRevisionData'](_0x123204,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x123204);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4a8ee6=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x463f65=0x0;_0x463f65<_0x4a8ee6['length'];_0x463f65++){const _0x127ce4=_0x4a8ee6[_0x463f65];let _0x26c844=!0x1;for(const _0x1f4f21 of Object['keys'](_0x127ce4))void 0x0===_0x127ce4[_0x1f4f21]?delete _0x127ce4[_0x1f4f21]:'id'!==_0x1f4f21&&(_0x26c844=!0x0);_0x26c844||(_0x4a8ee6[_0x463f65]=null);}if(_0x4a8ee6=_0x4a8ee6['filter'](_0x26c45f=>null!==_0x26c45f),!_0x4a8ee6['length'])return;for(let _0x335c67=0x0;_0x335c67<_0x4a8ee6['length'];_0x335c67++){const _0x47b523=_0x4a8ee6[_0x335c67];void 0x0!==_0x47b523['fromVersion']&&void 0x0===_0x47b523['toVersion']&&(_0x47b523['toVersion']=this['repository']['getRevision'](_0x47b523['id'])['toVersion']),void 0x0!==_0x47b523['toVersion']&&void 0x0===_0x47b523['fromVersion']&&(_0x47b523['fromVersion']=this['repository']['getRevision'](_0x47b523['id'])['fromVersion']);}const _0x3f759c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4a8ee6,_0x3f759c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f2423=>{if(_0x3f2423){for(const _0x436f41 of _0x3f2423)this['setRevisionData']({'id':_0x436f41['id'],'createdAt':_0x436f41['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x343cc5=null,from:_0x374de3=null,to:_0x4d97be=null}){_0x374de3=null!==_0x374de3?_0x374de3:_0x343cc5['fromVersion'],_0x4d97be=null!==_0x4d97be?_0x4d97be:_0x343cc5['toVersion'];const _0x3b5194=this['_revisionDataBuilder']['getData'](_0x374de3,_0x4d97be),_0x46e6c3={'diffData':_0x3b5194['diffData'],'authorsIds':_0x3b5194['authorsIds'],'fromVersion':_0x374de3,'toVersion':_0x4d97be};if(!_0x343cc5||_0x4d97be!==_0x343cc5['toVersion']){const _0x198e31=_0x4d97be-0x1,_0x4a6aa1=this['_source']['history']['getOperation'](_0x198e31);_0x46e6c3['createdAt']=_0x4a6aa1&&_0x4a6aa1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x374de3===this['_loadedStateData']['fromVersion']){for(const _0x270c7f of this['_loadedStateData']['authors'])_0x46e6c3['authorsIds']['includes'](_0x270c7f['id'])||_0x46e6c3['authorsIds']['push'](_0x270c7f['id']);}return _0x46e6c3;}['_bufferUpdate'](_0x345125,_0x3f40e1,_0x44648f){if(this['_bufferedUpdates']['has'](_0x345125)){const _0x324600=this['_bufferedUpdates']['get'](_0x345125);_0x3f40e1=_0x44648f?{..._0x324600,..._0x3f40e1}:{..._0x3f40e1,..._0x324600};}this['_bufferedUpdates']['set'](_0x345125,_0x3f40e1);}['setRevisionData'](_0x172a16){const _0x450e9e=this['repository']['getRevision'](_0x172a16['id']);if(_0x172a16['createdAt']&&(_0x172a16['createdAt']=new Date(_0x172a16['createdAt'])),_0x172a16['authorsIds']){const _0x6569ab=this['editor']['plugins']['get']('Users');_0x172a16['authors']=_0x172a16['authorsIds']['map'](_0x3df364=>_0x6569ab['getUser'](_0x3df364));}_0x450e9e['_update'](_0x172a16,!0x0);}['_createInitialRevision'](_0x36a93c){const _0x458ce5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x458ce5)this['_initialRevisionId']=_0x458ce5['id'];else{const _0x2fb141=!this['editor']['model']['document']['roots']['find'](_0x4ee708=>this['editor']['model']['hasContent'](_0x4ee708)),_0x7763cb=this['editor']['plugins']['get']('Users')['me']['id'],_0x34c49b=g(this['editor']['locale'],_0x2fb141?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x36a93c,'to':_0x36a93c,'id':this['_initialRevisionId'],'name':_0x34c49b,'creatorId':_0x7763cb});}}['_createCurrentRevision'](_0xd33ec5){const _0x5a0e6c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5a0e6c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd33ec5,'to':_0xd33ec5,'id':_0x5a0e6c,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4a5fb5,_0x50eb51){let _0x4fc34b=this['editor']['config']['get']('initialData'),_0xd83c7d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4fc34b){_0x4fc34b={};for(const _0xea6f45 of this['editor']['model']['document']['getRootNames']())_0x4fc34b[_0xea6f45]='';}if('string'==typeof _0x4fc34b&&(_0x4fc34b={'main':_0x4fc34b}),void 0x0===_0xd83c7d){_0xd83c7d={};for(const _0x44d3d8 of this['editor']['model']['document']['getRootNames']())_0xd83c7d[_0x44d3d8]={};}let _0x4ee191=!0x1;const _0x406a98=Object['keys'](_0x4fc34b),_0x3337f9=Object['keys'](_0x4a5fb5);for(const _0x1eb917 of _0x406a98){if(_0x4fc34b[_0x1eb917]!==_0x4a5fb5[_0x1eb917]&&''!==_0x4fc34b[_0x1eb917]['trim']()){_0x4ee191=!0x0;break;}if(!_0x32942f(_0xd83c7d[_0x1eb917],_0x50eb51[_0x1eb917])&&Object['keys'](_0xd83c7d[_0x1eb917])['length']>0x0){_0x4ee191=!0x0;break;}}_0x4ee191||(_0x4ee191=_0x3337f9['some'](_0x5490e8=>!this['editor']['model']['document']['getRoot'](_0x5490e8))),_0x4ee191&&_0x21ae3d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4fc34b,'editorRootsAttributes':_0xd83c7d,'revisionData':_0x4a5fb5,'revisionRootsAttributes':_0x50eb51}),this['editor']['config']['set']('initialData',_0x4a5fb5),this['editor']['config']['set']('rootsAttributes',_0x50eb51);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4541cb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4541cb['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56a287){const _0x33958f=this['repository']['getRevisions']();_0x33958f['reverse']();let _0x300246=0x0;for(;_0x300246<_0x33958f['length'];){const _0x31e5a9=_0x33958f[_0x300246];if(_0x31e5a9===this['currentRevision']){_0x300246++;continue;}if(_0x31e5a9['id']===this['_initialRevisionId'])break;const _0x44a427=_0x56a287['toVersion']-_0x31e5a9['toVersion']||_0x56a287['fromVersion']-_0x31e5a9['fromVersion'];if(_0x44a427>0x0)break;if(_0x44a427<0x0)_0x300246++;else{if(!_0x56a287['creator']&&_0x31e5a9['creator'])break;if(_0x31e5a9['creator']||!_0x56a287['creator']){if(_0x56a287['createdAt']>_0x31e5a9['createdAt'])break;_0x300246++;}else _0x300246++;}}return _0x300246;}['_getFromVersion'](_0x10b7e8){const _0x33b92d=this['repository']['getRevisions']();_0x33b92d['reverse'](),_0x33b92d['shift']();const _0x173a81=_0x33b92d['find'](_0x152f2e=>_0x152f2e['toVersion']<=_0x10b7e8)['toVersion'];return _0x173a81<this['_startingVersion']?this['_startingVersion']:_0x173a81;}['_makeRevision']({name:_0x1cb8fc,from:_0x4464be,to:_0x541518,creatorId:_0x482cf6,id:_0x28b42e}){const _0x548ddb=this['buildRevisionData']({'from':_0x4464be,'to':_0x541518});_0x548ddb['name']=_0x1cb8fc,_0x548ddb['creatorId']=_0x482cf6,_0x548ddb['id']=_0x28b42e;const _0x29f42b=this['addRevisionData'](_0x548ddb);return this['adapter']&&this['_bufferUpdate'](_0x548ddb['id'],_0x548ddb,!0x0),_0x29f42b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x374521){this['editor']=_0x374521,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'](_0x172f89){this['source']=_0x172f89;const _0x451d4f=new Map(),_0xbdb8f7=new Map(),_0x282713=this['editor']['model']['document']['roots']['map'](_0x544934=>_0x544934['rootName']);for(const _0x50196c of _0x282713){const _0x2f1e21=this['editor']['model']['document']['getRoot'](_0x50196c),_0x1dd99b=N(_0x2f1e21);_0x451d4f['set'](_0x50196c,_0x1dd99b),_0xbdb8f7['set'](_0x50196c,Object['fromEntries'](_0x2f1e21['getAttributes']()));}const _0x2f1581=Array['from'](this['editor']['model']['markers'])['map'](_0x1ffde0=>[_0x1ffde0['name'],_0x1ffde0['getRange']()]),_0x14d0a2=this['source']['version'];this['_saveMetaData'](_0x14d0a2,_0x451d4f,_0x2f1581,_0xbdb8f7),this['_startingRevisionId']=this['_revisionId'];const _0x3322e3=new Map(),_0xdb82e8=new Map();for(const _0x110168 of _0x282713){const _0x5e0998=P(_0x110168);_0x3322e3['set'](_0x110168,_0x5e0998),_0xdb82e8['set'](_0x110168,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3322e3,[],_0xdb82e8);}['getData'](_0x4166cb,_0x39544f){if(this['_lastFrom']===_0x4166cb&&this['_lastTo']<=_0x39544f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39544f,!0x0);else{if(!this['_savedMetaData']['has'](_0x4166cb)){const _0x169ef0=this['_getPreviousFrom'](_0x4166cb);this['_calculateMetaData'](_0x169ef0,_0x4166cb,!0x1);}this['_calculateMetaData'](_0x4166cb,_0x39544f,!0x0);}return this['_lastFrom']=_0x4166cb,this['_lastTo']=_0x39544f,this['_getState']();}['loadState'](_0x1fe7fe){const _0x39e5de=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1fe7fe['fromVersion'],this['_lastTo']=_0x1fe7fe['toVersion'];for(const _0x2888d1 in _0x1fe7fe['diffData']){const _0x953921=_0x1fe7fe['diffData'][_0x2888d1]['attachChange'],_0x216766=_0x980597(_0x1fe7fe['diffData'][_0x2888d1]['attributesBefore'])||{},_0x12414f=_0x39e5de['_makeModelFromViewString'](_0x1fe7fe['diffData'][_0x2888d1]['deletions']);_0x12414f['rootName']=_0x2888d1,_0x12414f['_isAttached']=!_0x953921||!_0x953921['isAttached'],_0x12414f['isAttached']=()=>_0x12414f['_isAttached'],this['_baseRoots']['set'](_0x2888d1,_0x12414f),this['_baseRootsAttributes']['set'](_0x2888d1,_0x216766),_0x953921&&this['_touchedRoots']['set'](_0x2888d1,_0x953921);const _0x49fdda=this['_makeIdsRoot'](_0x12414f);this['_baseIdsRoots']['set'](_0x2888d1,_0x49fdda);for(const [_0x540b86,_0x207b6b]of _0x12414f['markers']){if(!_0x540b86['startsWith']('revision:'))continue;const _0x33cfcc=_0x540b86['split'](':')[0x2];for(const _0x2dfd0e of _0x207b6b['getWalker']({'singleCharacters':!0x0})){const _0x146c53=this['_getVidAttributeName'](_0x2dfd0e),_0x54f5b7='elementEnd'==_0x2dfd0e['type']?_0x2dfd0e['previousPosition']['path']['slice'](0x0,-0x1):_0x2dfd0e['previousPosition']['path'],_0x3345fb=_0x49fdda['getNodeByPath'](_0x54f5b7)['getAttribute'](_0x146c53);this['_touched']['set'](_0x3345fb,{'userId':_0x33cfcc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x701573=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x10e9ed=>!this['_touched']['has'](_0x10e9ed));let _0x13c0d2=0x0;const _0x1f644f=new Map();for(const _0x430744 in _0x1fe7fe['diffData']){const _0x4bf76d=_0x1fe7fe['diffData'][_0x430744]['attachChange'],_0x5deabf=_0x980597(_0x1fe7fe['diffData'][_0x430744]['attributesAfter'])||{},_0x498417=_0x39e5de['_makeModelFromViewString'](_0x1fe7fe['diffData'][_0x430744]['insertions']);_0x498417['rootName']=_0x430744,_0x498417['_isAttached']=!_0x4bf76d||_0x4bf76d['isAttached'],_0x498417['isAttached']=()=>_0x498417['_isAttached'],this['_diffRoots']['set'](_0x430744,_0x498417),this['_diffRootsAttributes']['set'](_0x430744,_0x5deabf);const _0x23f471=this['_makeIdsRoot'](_0x498417,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x430744,_0x23f471),_0x1f644f['set'](_0x430744,_0x498417['isAttached']()?_0x5deabf:{});for(const [_0x5ab8e0,_0x29923c]of _0x498417['markers']){if(!_0x5ab8e0['startsWith']('revision:'))continue;const _0x1d4d73=_0x5ab8e0['split'](':')[0x2];for(const _0x29fe71 of _0x29923c['getWalker']({'singleCharacters':!0x0})){const _0x584f71=this['_getVidAttributeName'](_0x29fe71),_0x1d3df7=this['_revisionId']++,_0xef1ed6='elementEnd'==_0x29fe71['type']?_0x29fe71['previousPosition']['path']['slice'](0x0,-0x1):_0x29fe71['previousPosition']['path'];_0x23f471['getNodeByPath'](_0xef1ed6)['_setAttribute'](_0x584f71,_0x1d3df7),this['_touched']['set'](_0x1d3df7,{'userId':_0x1d4d73});}}for(const _0x1adf9a of this['editor']['model']['createRangeIn'](_0x498417)['getWalker']({'singleCharacters':!0x0})){const _0x34c382=this['_getVidAttributeName'](_0x1adf9a),_0x473585='elementEnd'==_0x1adf9a['type']?_0x1adf9a['previousPosition']['path']['slice'](0x0,-0x1):_0x1adf9a['previousPosition']['path'],_0x1df004=_0x23f471['getNodeByPath'](_0x473585);_0x1df004['getAttribute'](_0x34c382)>0x0||_0x1df004['_setAttribute'](_0x34c382,_0x701573[_0x13c0d2++]);}for(const [_0x29c427,_0x5a3188]of _0x498417['markers'])_0x29c427['startsWith']('revision:')||this['_markers']['set'](_0x29c427,_0x5a3188);}const _0x282cca=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x282cca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x282cca,0x1));const _0xc9587a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc9587a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc9587a,0x1));const _0x79b916=Array['from'](this['_diffRoots'])['map'](([_0x1bdab0,_0xce029b])=>[_0x1bdab0,N(_0xce029b)]);this['_saveMetaData'](this['_lastTo'],_0x79b916,this['_markers'],_0x1f644f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x50c88a,_0x22bbe6,_0x4b8fa4,_0x3cd29d){const _0x553920=new Map(_0x22bbe6),_0x348ea1=new Map(_0x980597(_0x3cd29d)),_0xe2db8f=new Map();for(const [_0x2cba54,_0x19e6ab]of _0x4b8fa4)_0xe2db8f['set'](_0x2cba54,{'start':_0x19e6ab['start']['clone'](),'end':_0x19e6ab['end']['clone'](),'rootName':_0x19e6ab['root']['rootName']});this['_savedMetaData']['set'](_0x50c88a,{'roots':_0x553920,'markers':_0xe2db8f,'rootsAttributes':_0x348ea1});}['_removeMetaData'](_0x302c95){this['_savedMetaData']['delete'](_0x302c95);}['_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'](_0x41c631,_0x34d187=null){let _0x2211c0=null;_0x41c631['is']('documentFragment')||(_0x2211c0=new ut(_0x41c631['name'],{'vid_start':null===_0x34d187?this['_revisionId']++:_0x34d187++}));const _0x1569df=[];for(const _0x3a0b38 of _0x41c631['getChildren']())if(_0x3a0b38['is']('element')){_0x1569df['push'](this['_makeIdsRoot'](_0x3a0b38,_0x34d187));const _0x1c5f4e=_0x1569df[_0x1569df['length']-0x1];null!==_0x34d187&&(_0x34d187=_0x1c5f4e['is']('element','$text')?_0x1c5f4e['getAttribute']('vid')+0x1:_0x1c5f4e['getAttribute']('vid_end')+0x1);}else{for(let _0x2d179a=0x0;_0x2d179a<_0x3a0b38['offsetSize'];_0x2d179a++)_0x1569df['push'](new ut('$text',{'vid':null===_0x34d187?this['_revisionId']++:_0x34d187++}));}if(_0x41c631['is']('documentFragment')){const _0x1aafcc=P(_0x41c631['rootName']);return _0x1aafcc['_insertChild'](0x0,_0x1569df),_0x1aafcc;}return _0x2211c0['_setAttribute']('vid_end',null===_0x34d187?this['_revisionId']++:_0x34d187++),_0x2211c0['_insertChild'](0x0,_0x1569df),_0x2211c0;}['_calculateMetaData'](_0x37ff46,_0x3b217e,_0x274dcb){this['_reset']();const {roots:_0x4492f0,markers:_0x42817a,rootsAttributes:_0x4bef7c}=this['_savedMetaData']['get'](_0x37ff46);this['_baseRoots']=new Map(_0x4492f0),this['_baseRootsAttributes']=new Map(_0x980597(_0x4bef7c));for(const [_0x5ef86f,_0xa4e9f1]of this['_baseRoots'])if('$graveyard'!==_0x5ef86f&&(this['_diffRoots']['set'](_0x5ef86f,N(_0xa4e9f1)),this['_diffRootsAttributes']=new Map(_0x980597(_0x4bef7c)),_0x274dcb)){const _0x5c227b=this['_revisionId'];this['_idsRoots']['set'](_0x5ef86f,this['_makeIdsRoot'](_0xa4e9f1)),this['_baseIdsRoots']['set'](_0x5ef86f,this['_makeIdsRoot'](_0xa4e9f1,_0x5c227b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x274dcb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4932e4,_0x499a37]of _0x42817a){const _0xb82858=this['_baseRoots']['get'](_0x499a37['rootName']),_0x20e5f7=this['_diffRoots']['get'](_0x499a37['rootName']),_0x30ec8e=new lt(this['_fixPosition'](_0x499a37['start'],_0xb82858),this['_fixPosition'](_0x499a37['end'],_0xb82858)),_0x157fee=this['_fixRange'](_0x30ec8e,_0x20e5f7);_0xb82858['markers']['set'](_0x4932e4,_0x30ec8e),this['_markers']['set'](_0x4932e4,_0x157fee);}this['_applyOperations'](_0x37ff46,_0x3b217e,_0x274dcb);}['_applyOperations'](_0x352e4b,_0x9fd91d,_0x45749d){for(const _0xdf9b88 of this['source']['getOperations'](_0x352e4b,_0x9fd91d))this['_handleOperation'](_0xdf9b88,_0x45749d);for(const _0x202f94 of this['_diffRoots']['values']())_0x202f94['markers']['clear']();for(const [_0x4e0a4d,_0x5496b6]of this['_markers']){this['_diffRoots']['get'](_0x5496b6['root']['rootName'])['markers']['set'](_0x4e0a4d,_0x5496b6['clone']());}const _0x5423f9=new Map(),_0x365196=new Map();for(const [_0x4117c5,_0x2e624e]of this['_diffRoots'])_0x5423f9['set'](_0x4117c5,N(_0x2e624e)),_0x365196['set'](_0x4117c5,this['_diffRootsAttributes']['get'](_0x4117c5));this['_saveMetaData'](_0x9fd91d,_0x5423f9,this['_markers'],_0x365196);}['_getPreviousFrom'](_0x429675){const _0x1a972d=Array['from'](this['_savedMetaData']['keys']());_0x1a972d['sort']((_0x26ef04,_0x1192ae)=>_0x26ef04-_0x1192ae),_0x1a972d['reverse']();for(const _0x4aae9b of _0x1a972d)if(_0x4aae9b<_0x429675)return _0x4aae9b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x32473a,_0xb8a1b6){const _0x57e737=Array['from'](_0xb8a1b6['markers'])['map'](([_0x4f4f0e,_0x3f6d42])=>[_0x4f4f0e,this['_fixRange'](_0x3f6d42,_0x32473a)]);_0x32473a['markers']=new Map(_0x57e737);}['_transformMarkers'](_0x3ca6d1){for(const _0x8a7a43 of this['_markers']['values']()){const _0x3805f6=_0x8a7a43['getTransformedByOperation'](_0x3ca6d1),_0x318c96=lt['_createFromRanges'](_0x3805f6);_0x8a7a43['start']=_0x318c96['start'],_0x8a7a43['end']=_0x318c96['end'];}}['_handleOperation'](_0x37a9f0,_0x4e88a5){if('addRoot'!=_0x37a9f0['type']&&'detachRoot'!=_0x37a9f0['type']){if('insert'==_0x37a9f0['type']){const _0x411868=_0x37a9f0['position']['root']['rootName'];this['_diffRoots']['has'](_0x411868)||(this['_diffRoots']['set'](_0x411868,P(_0x411868,!0x0)),this['_diffRootsAttributes']['set'](_0x411868,{}),_0x4e88a5&&this['_idsRoots']['set'](_0x411868,P(_0x411868,!0x0)));}else{if('addRootAttribute'==_0x37a9f0['type']||'removeRootAttribute'==_0x37a9f0['type']||'changeRootAttribute'==_0x37a9f0['type'])return void this['_handleRootAttributeOperation'](_0x37a9f0);'marker'==_0x37a9f0['type']&&this['_handleMarkerOperation'](_0x37a9f0);}if('marker'!==_0x37a9f0['type']){const _0x44f6fa=this['_cloneOperation'](_0x37a9f0,this['_diffRoots']);_0x44f6fa['_execute'](),this['_transformMarkers'](_0x44f6fa);}if(_0x4e88a5)switch(_0x37a9f0['type']){case'insert':this['_handleInsertOperation'](_0x37a9f0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37a9f0);break;case'merge':this['_handleMergeOperation'](_0x37a9f0);break;case'split':this['_handleSplitOperation'](_0x37a9f0);}}else this['_handleRootOperation'](_0x37a9f0,_0x4e88a5);}['_cloneOperation'](_0x2677b4,_0xf0e92f){const _0x1b7079=_0x2677b4['clone']();return _0x1b7079['_authorId']=_0x2677b4['_authorId'],this['_fixOperation'](_0x1b7079,_0xf0e92f),_0x1b7079;}['_getBaseVids'](_0x3d2a05){return _0x3d2a05['map'](_0x315d22=>{const _0x3ce5de=this['_getVidAttributeName'](_0x315d22);return Number(_0x315d22['item']['getAttribute'](_0x3ce5de));});}['_generateTape'](_0x4015bb,_0x3bc2fe){if(_0x4015bb['is']('element','$text'))_0x3bc2fe['push']({'item':_0x4015bb,'type':'text'});else{_0x4015bb['is']('element')&&_0x3bc2fe['push']({'item':_0x4015bb,'type':'elementStart'});for(const _0x2177ef of _0x4015bb['getChildren']())this['_generateTape'](_0x2177ef,_0x3bc2fe);_0x4015bb['is']('element')&&_0x3bc2fe['push']({'item':_0x4015bb,'type':'elementEnd'});}return _0x3bc2fe;}['_getState'](){const _0x1d5b84=new Map(this['_touched']),_0x2cb1ec=new Map(_0x1d5b84),_0x38d61a=new Map(),_0x396859={'insertions':{},'deletions':{}},_0x3d6eef={'insertions':{},'deletions':{}},_0xedb505=new Map(),_0x535d29=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x535d29['delete']('$graveyard');for(const _0x3805a3 of _0x535d29){const _0x4e3049=this['_diffRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1),_0x3ba2b3=this['_baseRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1);_0x4e3049['isAttached']()||_0x3ba2b3['isAttached']()?(_0x396859['insertions'][_0x3805a3]=N(_0x4e3049),_0x396859['deletions'][_0x3805a3]=N(_0x3ba2b3),this['_copyMarkers'](_0x396859['deletions'][_0x3805a3],_0x3ba2b3),this['_copyMarkers'](_0x396859['insertions'][_0x3805a3],_0x4e3049),_0x3d6eef['insertions'][_0x3805a3]=this['_generateTape'](this['_idsRoots']['get'](_0x3805a3),[]),_0x3d6eef['deletions'][_0x3805a3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3805a3)||P(_0x3805a3,!0x1),[])):_0x535d29['delete'](_0x3805a3);}for(const _0x26cb1e of _0x535d29){const _0x269a39=_0x3d6eef['insertions'][_0x26cb1e];for(const _0x1f072e of _0x269a39){const _0x5375cb=this['_getVidAttributeName'](_0x1f072e),_0x15f915=_0x1f072e['item']['getAttribute'](_0x5375cb);_0x2cb1ec['delete'](_0x15f915),_0x15f915>=this['_startingRevisionId']&&_0x38d61a['set'](_0x15f915,_0x1d5b84['get'](_0x15f915));}}for(const _0x43dd11 of _0x535d29){const _0x3e89d0=_0x3d6eef['insertions'][_0x43dd11],_0xd67cd8=this['_getBaseVids'](_0x3d6eef['deletions'][_0x43dd11]);let _0x5d918d=0x0;for(const _0x3485d2 of _0x3e89d0){const _0x2e8ea0=this['_getVidAttributeName'](_0x3485d2),_0x27d95f=_0x3485d2['item']['getAttribute'](_0x2e8ea0);if(!_0x38d61a['has'](_0x27d95f)&&!_0xedb505['has'](_0x27d95f)){if(_0x2cb1ec['has'](_0x27d95f))_0x5d918d++;else{if(_0x27d95f!=_0xd67cd8[_0x5d918d]){const _0x2ea046=_0x1d5b84['get'](_0x27d95f)||_0x1d5b84['get'](_0xd67cd8[_0x5d918d]);for(;_0x27d95f!=_0xd67cd8[_0x5d918d];)_0x2cb1ec['has'](_0xd67cd8[_0x5d918d])||(_0xedb505['set'](_0xd67cd8[_0x5d918d],_0x2ea046),_0x1d5b84['set'](_0xd67cd8[_0x5d918d],_0x2ea046)),_0x5d918d++;}_0x5d918d++;}}}}for(const _0x4f30db of _0x535d29){const _0x432bd3=_0x3d6eef['insertions'][_0x4f30db];for(const _0x10fb06 of _0x432bd3){const _0x1a18db=this['_getVidAttributeName'](_0x10fb06),_0x237ecf=_0x10fb06['item']['getAttribute'](_0x1a18db);if(_0xedb505['has'](_0x237ecf)){const _0x170ab3=_0xedb505['get'](_0x237ecf);_0x2cb1ec['has'](_0x237ecf)||_0x2cb1ec['set'](_0x237ecf,{..._0x170ab3}),_0x38d61a['set'](_0x237ecf,{..._0x170ab3});}}}for(const _0x94dc3b of _0x2cb1ec['keys']())_0x94dc3b>=this['_startingRevisionId']&&_0x2cb1ec['delete'](_0x94dc3b);const _0x5b0e37=new Map();for(const _0x14779f of _0x535d29){let _0x21e2d9=_0x3d6eef['insertions'][_0x14779f];for(const _0x3f4559 of _0x21e2d9)if(_0x3f4559['item']['is']('element','tableCell')){const _0x5ccad9=this['_getVidAttributeName'](_0x3f4559),_0x405585=_0x3f4559['item']['getAttribute'](_0x5ccad9);if(_0x38d61a['has'](_0x405585)){const _0x28d3c2=_0x3f4559['item']['parent']['parent']['getAttribute']('vid_start'),_0x504d2e=_0x5b0e37['get'](_0x28d3c2)||new Set();_0x504d2e['add'](_0x38d61a['get'](_0x405585)['userId']),_0x5b0e37['set'](_0x28d3c2,_0x504d2e);}}_0x21e2d9=_0x3d6eef['deletions'][_0x14779f];for(const _0x4b26ba of _0x21e2d9)if(_0x4b26ba['item']['is']('element','tableCell')){const _0x28fc5a=this['_getVidAttributeName'](_0x4b26ba),_0x1ff3d4=_0x4b26ba['item']['getAttribute'](_0x28fc5a);if(_0x2cb1ec['has'](_0x1ff3d4)){const _0x444724=_0x4b26ba['item']['parent']['parent']['getAttribute']('vid_start'),_0x40a8e7=_0x5b0e37['get'](_0x444724)||new Set();_0x40a8e7['add'](_0x2cb1ec['get'](_0x1ff3d4)['userId']),_0x5b0e37['set'](_0x444724,_0x40a8e7);}}for(const _0x3bfef5 of _0x5b0e37['keys']())(_0x38d61a['has'](_0x3bfef5)||_0x2cb1ec['has'](_0x3bfef5))&&_0x5b0e37['delete'](_0x3bfef5);}for(const _0xec3745 of _0x535d29){const _0x385620=_0x3d6eef['insertions'][_0xec3745];let _0xf5dc25=null,_0x12a5d6=null;for(const _0x52407a of _0x385620){const _0x36a887=this['_getVidAttributeName'](_0x52407a),_0x2c6f8a=_0x52407a['item']['getAttribute'](_0x36a887),_0x5d62b4=_0x5b0e37['get'](_0x2c6f8a);_0x5d62b4&&'elementStart'==_0x52407a['type']&&(_0xf5dc25=Array['from'](_0x5d62b4)[0x0],_0x12a5d6=_0x52407a['item']['getAttribute']('vid_end')),_0xf5dc25&&(_0x2cb1ec['set'](_0x2c6f8a,{'userId':_0xf5dc25}),_0x38d61a['set'](_0x2c6f8a,{'userId':_0xf5dc25})),_0x2c6f8a==_0x12a5d6&&(_0xf5dc25=null,_0x12a5d6=null);}}const _0x459a10={},_0x3930d1=new Set();for(const _0x2aea62 of _0x535d29){const _0x2421b4=_0x396859['deletions'][_0x2aea62],_0x11c14e=_0x396859['insertions'][_0x2aea62];for(const {userId:_0x3b34b6}of this['_touchedMarkers']['values']())null!==_0x3b34b6&&_0x3930d1['add'](_0x3b34b6);for(const {userId:_0x4df55f}of this['_touchedRoots']['values']())null!==_0x4df55f&&_0x3930d1['add'](_0x4df55f);this['_markChanges'](_0x11c14e,_0x3d6eef['insertions'][_0x2aea62],_0x38d61a,'insertion',_0x3930d1),this['_markChanges'](_0x2421b4,_0x3d6eef['deletions'][_0x2aea62],_0x2cb1ec,'deletion',_0x3930d1),_0x459a10[_0x2aea62]={'insertions':this['_prepareViewToSave'](_0x11c14e),'deletions':this['_prepareViewToSave'](_0x2421b4),'attachChange':this['_touchedRoots']['get'](_0x2aea62)||null,'attributesBefore':_0x980597(this['_baseRootsAttributes']['get'](_0x2aea62))||{},'attributesAfter':_0x980597(this['_diffRootsAttributes']['get'](_0x2aea62))};}return{'diffData':_0x459a10,'authorsIds':Array['from'](_0x3930d1)};}['_processRootBeforeSave'](_0x55cbe9){for(const [,_0xf758ce]of _0x55cbe9['markers']){const _0x5235b6=_0xf758ce['start']['getAncestors']()['filter'](_0x707401=>'tableCell'==_0x707401['name']);for(const _0x13cfa1 of _0x5235b6)0x1==_0x13cfa1['childCount']&&_0x13cfa1['getChild'](0x0)['is']('element','paragraph')&&_0x13cfa1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1e21dc){this['_processRootBeforeSave'](_0x1e21dc);const _0x592434=this['editor']['data']['toView'](_0x1e21dc,{}),_0x12d685=Array['from'](_0x592434['getChildren']())['map'](_0x282472=>this['_getViewJson'](_0x282472));return JSON['stringify'](_0x12d685);}['_getViewJson'](_0x1a9a7d){if(_0x1a9a7d['is']('$text'))return _0x1a9a7d['data'];{const _0x37c5b3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xa1b763=_0x1a9a7d,_0x26905f=this['editor']['data']['htmlProcessor']['domConverter'],_0x3c65be={'type':_0x37c5b3['_getTypeCharForViewElement'](_0xa1b763),'name':_0xa1b763['name'],'attributes':Array['from'](_0xa1b763['getAttributes']()),'children':Array['from'](_0xa1b763['getChildren']())['map'](_0x24ff0c=>this['_getViewJson'](_0x24ff0c))};if(_0x1a9a7d['is']('uiElement')&&'$comment'!=_0x1a9a7d['name']){const _0x45b368=_0x1a9a7d['render'](_0x26905f['domDocument'],_0x26905f);_0x3c65be['children']['push'](_0x45b368['outerHTML']);}else{if(_0x1a9a7d['is']('rawElement')){const _0x3ba378=_0x26905f['domDocument']['createElement'](_0xa1b763['name']);_0x1a9a7d['render'](_0x3ba378,_0x26905f),_0x3c65be['children']['push'](_0x3ba378['innerHTML']);}}const _0x445261=Array['from'](_0xa1b763['getCustomProperties']());_0x445261['length']>0x0&&(_0x3c65be['customProperties']=_0x445261);const _0x4dc292=_0xa1b763['getFillerOffset']();return null!==_0x4dc292&&(_0x3c65be['fillerOffset']=_0x4dc292),_0x3c65be;}}['_markChanges'](_0x7150ca,_0x540bc2,_0x15ca27,_0x25af09,_0x3cc0d9){let _0x5c13d2=null,_0x343c30=null,_0x5bd993=0x0;const _0x401927=this['editor']['model'];for(let _0x1ae154=0x0;_0x1ae154<_0x540bc2['length'];_0x1ae154++){const _0x473168=this['_getVidAttributeName'](_0x540bc2[_0x1ae154]),_0x45d8a1=_0x540bc2[_0x1ae154]['item']['getAttribute'](_0x473168),_0x3888cf=_0x15ca27['get'](_0x45d8a1),_0x2c17e8=_0x1ae154==_0x540bc2['length']-0x1;(!_0x5c13d2&&_0x3888cf&&(_0x5c13d2=_0x3888cf,_0x343c30=_0x540bc2[_0x1ae154]),_0x5c13d2&&(!_0x3888cf||_0x3888cf['userId']!=_0x5c13d2['userId']))&&(_0x388b67(_0x3888cf,F(_0x343c30,_0x7150ca,_0x401927),F(_0x540bc2[_0x1ae154],_0x7150ca,_0x401927)),_0x5c13d2=_0x3888cf||null,_0x343c30=_0x3888cf?_0x540bc2[_0x1ae154]:null),_0x5c13d2&&_0x2c17e8&&_0x388b67(_0x3888cf,F(_0x343c30,_0x7150ca,_0x401927),B(_0x540bc2[_0x1ae154],_0x7150ca,_0x401927));}function _0x388b67(_0x3f4a54,_0x4ec5fe,_0x9f75ae){const _0x5187e6=_0x5c13d2['userId'],_0x183de9='revision:'+_0x25af09+':'+_0x5187e6+':'+_0x5bd993++,_0x246beb=_0x401927['createRange'](_0x4ec5fe,_0x9f75ae);_0x7150ca['markers']['set'](_0x183de9,_0x246beb),null!==_0x5187e6&&_0x3cc0d9['add'](_0x5187e6);}}['_getVidAttributeName'](_0x55ebc3){switch(_0x55ebc3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x47bb12,_0xa154bb){_0x47bb12['baseVersion']=null;for(const _0x501511 in _0x47bb12){const _0x1501e6=_0x47bb12[_0x501511];if(_0x1501e6 instanceof ft){const _0x208c28=_0xa154bb['get'](_0x1501e6['root']['rootName']);_0x47bb12[_0x501511]=this['_fixPosition'](_0x1501e6,_0x208c28);}if(_0x1501e6 instanceof lt){const _0x1e0bc1=_0xa154bb['get'](_0x1501e6['root']['rootName']);_0x47bb12[_0x501511]=this['_fixRange'](_0x1501e6,_0x1e0bc1);}'root'===_0x501511&&(_0x47bb12['root']=_0xa154bb['get'](_0x47bb12['root']['rootName']));}}['_fixRange'](_0x5ba6fd,_0x3d879b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ba6fd['start'],_0x3d879b),this['_fixPosition'](_0x5ba6fd['end'],_0x3d879b));}['_fixPosition'](_0x10e2b5,_0x20be98){return this['editor']['model']['createPositionFromPath'](_0x20be98,_0x10e2b5['path'],_0x10e2b5['stickiness']);}['_handleInsertOperation'](_0x3226f8){const _0x6d809d=this['_idsRoots']['get'](_0x3226f8['position']['root']['rootName']),_0x281957=this['_fixPosition'](_0x3226f8['position'],_0x6d809d),_0x1c754a=null===_0x3226f8['_authorId']?null:_0x3226f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36ff80=_0x281957['parent'],_0x5f0008=this['_revisionId'],_0x1ed69=[];for(const _0x41aea2 of _0x3226f8['nodes'])if(_0x41aea2['is']('element'))_0x1ed69['push'](this['_makeIdsRoot'](_0x41aea2));else{for(let _0x5846c5=0x0;_0x5846c5<_0x41aea2['offsetSize'];_0x5846c5++)_0x1ed69['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4bde50=this['_revisionId'];for(let _0x439df8=_0x5f0008;_0x439df8<_0x4bde50;_0x439df8++)this['_touched']['set'](_0x439df8,{'userId':_0x1c754a});_0x36ff80['_insertChild'](_0x281957['offset'],_0x1ed69);}['_handleMoveOperation'](_0x40d57c){(_0x40d57c=this['_cloneOperation'](_0x40d57c,this['_idsRoots']))['_execute']();const _0x40aea3=null===_0x40d57c['_authorId']?null:_0x40d57c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35df74=_0x40d57c['getMovedRangeStart'](),_0xcbd98f=_0x35df74['parent'],_0x1616de=_0x35df74['offset'];!function _0x2d6f16(_0x5a4e15,_0xb851b9,_0x525c2e,_0x1bc162){for(let _0x9f509=_0x525c2e;_0x9f509<_0x1bc162;_0x9f509++){const _0x432da4=_0xb851b9['getChild'](_0x9f509);_0x432da4['is']('element','$text')?_0x5a4e15['set'](_0x432da4['getAttribute']('vid'),{'userId':_0x40aea3}):(_0x5a4e15['set'](_0x432da4['getAttribute']('vid_start'),{'userId':_0x40aea3}),_0x2d6f16(_0x5a4e15,_0x432da4,0x0,_0x432da4['childCount']),_0x5a4e15['set'](_0x432da4['getAttribute']('vid_end'),{'userId':_0x40aea3}));}}(this['_touched'],_0xcbd98f,_0x1616de,_0x1616de+_0x40d57c['howMany']);}['_handleMergeOperation'](_0x2eb488){const _0x587751=null===(_0x2eb488=this['_cloneOperation'](_0x2eb488,this['_idsRoots']))['_authorId']?null:_0x2eb488['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d9765=_0x2eb488['targetPosition']['parent'],_0x422d9a=_0x2eb488['sourcePosition']['parent'],_0x14ee13=_0x2d9765['getAttribute']('vid_end'),_0x41705b=_0x422d9a['getAttribute']('vid_start');_0x2d9765['_setAttribute']('vid_end',_0x422d9a['getAttribute']('vid_end')),_0x422d9a['_setAttribute']('vid_end',_0x14ee13),this['_touched']['set'](_0x41705b,{'userId':_0x587751}),this['_touched']['set'](_0x14ee13,{'userId':_0x587751}),_0x2eb488['_execute']();}['_handleSplitOperation'](_0x42a946){const _0x1062a9=null===(_0x42a946=this['_cloneOperation'](_0x42a946,this['_idsRoots']))['_authorId']?null:_0x42a946['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dc357=_0x42a946['graveyardPosition'],_0x393e75=_0x42a946['splitPosition']['parent'];_0x42a946['_execute']();const _0x3d2702=_0x393e75['getAttribute']('vid_end'),_0x32186d=_0x42a946['insertionPosition']['nodeAfter'];if(_0x3dc357){const _0x3b948a=_0x32186d['getAttribute']('vid_end'),_0x33fa85=_0x393e75['getAttribute']('vid_end');_0x393e75['_setAttribute']('vid_end',_0x3b948a),_0x32186d['_setAttribute']('vid_end',_0x33fa85),this['_touched']['set'](_0x393e75['getAttribute']('vid_end'),{'userId':_0x1062a9}),this['_touched']['set'](_0x32186d['getAttribute']('vid_start'),{'userId':_0x1062a9});}else{const _0x3fd617=this['_revisionId']++,_0x39aee6=this['_revisionId']++;_0x393e75['_setAttribute']('vid_end',_0x3fd617),_0x32186d['_setAttribute']('vid_start',_0x39aee6),_0x32186d['_setAttribute']('vid_end',_0x3d2702),this['_touched']['set'](_0x3fd617,{'userId':_0x1062a9}),this['_touched']['set'](_0x39aee6,{'userId':_0x1062a9});}}['_handleMarkerOperation'](_0xb191ef){if(!_0xb191ef['affectsData'])return;const _0x4e5f34=(_0xb191ef=this['_cloneOperation'](_0xb191ef,this['_diffRoots']))['oldRange']?_0xb191ef['oldRange']['root']:null,_0x55c4a6=_0xb191ef['newRange']?_0xb191ef['newRange']['root']:null;_0x4e5f34&&this['_markers']['delete'](_0xb191ef['name']),_0x55c4a6&&this['_markers']['set'](_0xb191ef['name'],_0xb191ef['newRange']['clone']());const _0x1e6603=null===_0xb191ef['_authorId']?null:_0xb191ef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f48ef=_0xb191ef['name'];if(!this['_touchedMarkers']['has'](_0x3f48ef))return void this['_touchedMarkers']['set'](_0x3f48ef,{'range':_0xb191ef['oldRange'],'userId':_0x1e6603});const _0x3d44c7=this['_touchedMarkers']['get'](_0x3f48ef),_0x28e13=_0x3d44c7['range'],_0x30df7a=_0xb191ef['newRange'];null==_0x28e13&&null==_0x30df7a||_0x28e13&&_0x30df7a&&_0x28e13['isEqual'](_0x30df7a)?this['_touchedMarkers']['delete'](_0xb191ef['name']):_0x3d44c7['userId']=_0x1e6603;}['_handleRootOperation'](_0x786033,_0x426226){this['_diffRoots']['has'](_0x786033['rootName'])?this['_diffRoots']['get'](_0x786033['rootName'])['_isAttached']=_0x786033['isAdd']:(this['_diffRoots']['set'](_0x786033['rootName'],P(_0x786033['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x786033['rootName'],{}),_0x426226&&this['_idsRoots']['set'](_0x786033['rootName'],P(_0x786033['rootName'],!0x0)));const _0xee060b=null===_0x786033['_authorId']?null:_0x786033['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x477d15=this['_touchedRoots']['get'](_0x786033['rootName']);_0x477d15&&_0x477d15['userId']===_0xee060b?this['_touchedRoots']['delete'](_0x786033['rootName']):this['_touchedRoots']['set'](_0x786033['rootName'],{'userId':_0xee060b,'isAttached':_0x786033['isAdd']});}['_handleRootAttributeOperation'](_0x13e2de){const _0xf9ca2c=this['_diffRootsAttributes']['get'](_0x13e2de['root']['rootName']);null===_0x13e2de['newValue']?delete _0xf9ca2c[_0x13e2de['key']]:_0xf9ca2c[_0x13e2de['key']]=_0x13e2de['newValue'];}}function N(_0x1ec4da){const _0x3fed90=P(_0x1ec4da['rootName'],_0x1ec4da['isAttached']());for(const _0x24180c of _0x1ec4da['getChildren']()){const _0xa58657=_0x24180c['_clone'](!0x0);_0x3fed90['_appendChild'](_0xa58657);}return _0x3fed90;}function P(_0x468c0b,_0x33f043=!0x0){const _0x2099a1=new vt();return _0x2099a1['rootName']=_0x468c0b,_0x2099a1['_isAttached']=_0x33f043,_0x2099a1['isAttached']=()=>_0x2099a1['_isAttached'],_0x2099a1;}function F(_0x51d70b,_0x38f24c,_0x5cf08a){const _0x377490='elementEnd'==_0x51d70b['type']?_0x5cf08a['createPositionAt'](_0x51d70b['item'],'end'):_0x5cf08a['createPositionBefore'](_0x51d70b['item']);return _0x5cf08a['createPositionFromPath'](_0x38f24c,_0x377490['path'],_0x377490['stickiness']);}function B(_0x4d53dc,_0x317fca,_0x264bef){const _0x535b55='elementStart'==_0x4d53dc['type']?_0x264bef['createPositionAt'](_0x4d53dc['item'],0x0):_0x264bef['createPositionAfter'](_0x4d53dc['item']);return _0x264bef['createPositionFromPath'](_0x317fca,_0x535b55['path'],_0x535b55['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4eeb69,_0x5d789a){super(_0x4eeb69),this['focusTracker']=new _0xc74c6(),this['keystrokes']=new _0x3ba797(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5d789a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x505f3f(this);}['render'](){super['render'](),_0x5c1a28({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fcb20=_0x4cb984=>_0x4cb984['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fcb20),this['keystrokes']['set']('arrowleft',_0x3fcb20),this['keystrokes']['set']('arrowup',_0x3fcb20),this['keystrokes']['set']('arrowdown',_0x3fcb20);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x14c215){this['revisionNameInputView']['fieldView']['element']['value']=_0x14c215['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1787a9){const _0x5a3823=new _0x5b135e(this['locale'],_0x34358c),_0x3af2f3=_0x5a3823['fieldView'];_0x3af2f3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x194577=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1787a9&&(_0x194577+='\x20('+g(this['locale'],'optional')+')'),(_0x5a3823['label']=_0x194577,_0x3af2f3['on']('input',()=>{this['revisionNameInputValue']=_0x3af2f3['element']['value']['trim']();}),_0x5a3823);}}class f extends _0x501960{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xe5ddff=this['editor'],_0xb49383=_0xe5ddff['plugins']['get']('RevisionTracker');_0xe5ddff['ui']['componentFactory']['add']('revisionHistory',_0xdd1a7c=>{const _0x4a411c=_0x26e46b(_0xdd1a7c),_0x5f1bd6=_0x4a411c['panelView']['children'],_0x24139e=new _0x322164(_0xdd1a7c),_0x2fee1d=new _0x2b8957(_0xdd1a7c),_0x1480de=new te(_0xdd1a7c),_0x617549=new _0x2b8957(_0xdd1a7c),_0x393c9e=new te(_0xdd1a7c);return _0x4a411c['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xb49383,'isEnabled',_0xe5ddff,'isReadOnly',(_0x111e68,_0x5b8ee0,_0x181ec8)=>_0x111e68&&_0x5b8ee0&&!_0x181ec8),_0x4a411c['buttonView']['set']({'icon':_0x25fa61,'label':g(_0xdd1a7c,'Revision\x20history'),'tooltip':!0x0}),_0x1480de['set']({'label':g(_0xdd1a7c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1480de['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xb49383,'isEnabled',_0xe5ddff,'isReadOnly',(_0x2ad851,_0x183017,_0x5c5eb9)=>_0x2ad851&&_0x183017&&!_0x5c5eb9),_0x1480de['on']('execute',()=>this['_showDialog']()),_0x393c9e['set']({'label':g(_0xdd1a7c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x393c9e['bind']('isEnabled')['to'](_0xb49383,'isReady',_0xe5ddff,'isReadOnly',(_0x146fd6,_0x14f177)=>_0x146fd6&&!_0x14f177),_0x393c9e['on']('execute',()=>{_0xe5ddff['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4a411c['isOpen']=!0x1,_0xe5ddff['editing']['view']['focus']();}),_0x2fee1d['children']['add'](_0x1480de),_0x617549['children']['add'](_0x393c9e),_0x24139e['role']='menu',_0x24139e['items']['addMany']([_0x2fee1d,_0x617549]),_0x5f1bd6['add'](_0x24139e),_0x4a411c;}),_0xe5ddff['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4446c0=this['editor'],_0x1ab32e=_0x4446c0['locale'],_0x13c19d=new _0xa031ec(_0x1ab32e),_0x36ab73=new _0x89fe1a(_0x1ab32e);_0x13c19d['buttonView']['set']({'icon':_0x25fa61,'label':g(_0x1ab32e,'Revision\x20history')});const _0x3c021d=new _0x469118(_0x1ab32e,_0x13c19d),_0x53e81f=new _0x448748(_0x1ab32e);_0x53e81f['set']({'label':g(_0x1ab32e,'Save\x20current\x20revision')}),_0x53e81f['delegate']('execute')['to'](_0x13c19d),_0x53e81f['on']('execute',()=>{this['_showDialog']();}),_0x3c021d['children']['add'](_0x53e81f),_0x36ab73['items']['add'](_0x3c021d);const _0x3df24e=new _0x469118(_0x1ab32e,_0x13c19d),_0x44893f=new _0x448748(_0x1ab32e);return _0x44893f['set']({'label':g(_0x1ab32e,'Open\x20revision\x20history')}),_0x44893f['delegate']('execute')['to'](_0x13c19d),_0x44893f['on']('execute',()=>{_0x4446c0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3df24e['children']['add'](_0x44893f),_0x36ab73['items']['add'](_0x3df24e),_0x13c19d['panelView']['children']['add'](_0x36ab73),_0x13c19d;}['_showDialog'](){const _0x326650=this['editor'],_0x29b9ee=_0x326650['locale'],_0xc53b8b=_0x326650['plugins']['get']('Dialog'),_0x32df81=_0x326650['plugins']['get']('RevisionTracker');function _0x25b0dc(_0x353f31){_0x326650['config']['get']('revisionHistory.requireRevisionName')&&''===_0x353f31['revisionName']?_0x353f31['revisionNameInputView']['errorText']=g(_0x29b9ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x326650['plugins']['get'](u)['saveRevision']({'name':_0x353f31['revisionName']}),_0xc53b8b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x25b0dc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc53b8b['show']({'id':'revisionSave','title':g(_0x29b9ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x326650['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc53b8b['hide']()},{'label':g(_0x326650['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5976df){_0x5976df['bind']('isEnabled')['to'](_0x32df81,'isReady',_0x32df81,'isEnabled',_0x326650,'isReadOnly',(_0x3df4e9,_0x23d13e,_0x1e74ed)=>_0x3df4e9&&_0x23d13e&&!_0x1e74ed);},'onExecute':()=>_0x25b0dc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5898be=this['editor'],_0x3c3946=_0x5898be['locale'];this['_saveRevisionFormView']=new hs(_0x3c3946,_0x5898be['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0xc0b256,_0x1704f5){super(_0xc0b256),this['_model']=_0x1704f5,this['changeId']=_0x1704f5['id'];const _0x2b96e7=this['bindTemplate'],_0x59a54b=g(_0xc0b256,_0x1704f5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1704f5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1704f5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2b96e7['to']('type',_0x1d2488=>'ck-revision-change__'+_0x1d2488)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59a54b}]},{'text':'\x20'+_0x1704f5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23a707(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x38d058){super(),this['id']=_0x38d058['id']||_0x1d6ae4(),this['author']=_0x38d058['author'],this['type']=_0x38d058['type'],this['data']=_0x38d058['data']||{},this['rootName']=_0x38d058['rootName'],this['set']('createdAt',_0x38d058['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(_0x512d60,_0x44e498){this['newRevisionId']=_0x512d60,this['oldRevisionId']=_0x44e498,this['changes']=new _0x20ed9a();}['_setChanges'](_0xe7a599){for(const _0x1a54d5 of _0xe7a599)this['changes']['add'](_0x1a54d5);}}class m extends _0x501960{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5916f6,_0x4960c7,I,V];}constructor(_0x453690){super(_0x453690),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1569e4,_0x319d78,_0x58ff92)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x23d5bc=>{for(const _0x3bf1f8 of this['editor']['editing']['view']['document']['roots'])_0x58ff92?_0x23d5bc['removeClass']('ck-editor__editable__overlay',_0x3bf1f8):_0x23d5bc['addClass']('ck-editor__editable__overlay',_0x3bf1f8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xcd9967=>null!==_0xcd9967),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x443104,_0x2473e1,_0x331c91)=>_0x443104&&_0x331c91?_0x2473e1['changes']['getIndex'](_0x331c91):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e8bb6,_0x384f39)=>_0x5e8bb6?_0x384f39['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4960c7);}['init'](){const _0x5d9b4a=this['editor'],_0x1aa182=new wt(_0x5d9b4a,{'direction':'backward'}),_0x330bc5=new wt(_0x5d9b4a,{'direction':'forward'});(_0x5d9b4a['commands']['add']('showPreviousChange',_0x1aa182),_0x5d9b4a['commands']['add']('showNextChange',_0x330bc5),_0x5d9b4a['commands']['add']('restoreRevision',new mt(_0x5d9b4a)),this['on']('change:numberOfChanges',()=>{_0x1aa182['refresh'](),_0x330bc5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5d9b4a['enableReadOnlyMode']('revision-viewer'),_0x5d9b4a['plugins']['has']('WidgetToolbarRepository'))&&_0x5d9b4a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3cc843){return await this['_utils']['loadRevisionData'](_0x3cc843,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3cc843);}async['getRevisionRootsAttributes'](_0xed1bf7){return await this['_utils']['loadRevisionData'](_0xed1bf7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xed1bf7);}async['compare'](_0x2a0f25,_0x362ef1,_0x112d83=!0x1){if(!this['isEnabled'])return;const _0x2ef7ad=this['diff'],_0x593196=this['repository'],_0x2080fc='string'==typeof _0x2a0f25?_0x593196['getRevision'](_0x2a0f25):_0x2a0f25,_0xe6dc14='string'==typeof _0x362ef1?_0x593196['getRevision'](_0x362ef1):_0x362ef1,_0x48aaa2=_0x2080fc['id'],_0x473a1c=_0xe6dc14?_0xe6dc14['id']:null;if(!_0x112d83&&this['diff']&&this['diff']['newRevisionId']===_0x48aaa2&&this['diff']['oldRevisionId']===_0x473a1c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x48aaa2,_0x473a1c);const _0x58111a=this['_getRevisionsRange'](_0x2080fc,_0xe6dc14,!0x0)['map'](_0x108a07=>this['_utils']['loadRevisionData'](_0x108a07,this['adapter']));return _0x58111a['push'](new Promise(_0x28b6d5=>{setTimeout(_0x28b6d5,0x14);})),Promise['all'](_0x58111a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40fe30=this['_getDiff'](_0x48aaa2,_0x473a1c);for(const _0x208159 of _0x40fe30['changes'])this['_changeIdToChange']['set'](_0x208159['id'],_0x208159);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e2637=>{for(const _0x5ec309 of this['editor']['model']['document']['getRootNames']())_0x3e2637['detachRoot'](_0x5ec309);for(const _0x3e6c7d of Object['keys'](_0x40fe30['model'])){const _0xd72f1c=_0x3e2637['addRoot'](_0x3e6c7d);for(const _0x48c47a of Object['keys'](_0x40fe30['attributes'][_0x3e6c7d]))_0x3e2637['setAttribute'](_0x48c47a,_0x40fe30['attributes'][_0x3e6c7d][_0x48c47a],_0xd72f1c);_0x3e2637['insert'](_0x40fe30['model'][_0x3e6c7d],_0xd72f1c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40fe30['changes'])),this['isReady']=!0x0;})['catch'](_0x3a21d1=>{console['error'](_0x3a21d1),this['_cleanUp'](),_0x2ef7ad&&(this['diff']=_0x2ef7ad),this['isReady']=!0x0;});}['addRevisionData'](_0x42dc12,_0x2cd174){const _0x393129=this['repository']['createRevision'](_0x42dc12);return _0x393129['on']('_update',(_0x30a155,_0x3cfc51,_0x2ab9fc)=>_0x2cd174(_0x3cfc51,_0x2ab9fc,_0x393129)),this['repository']['addRevision'](_0x393129),_0x393129;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x417cbe=>{for(const _0x40fb53 of this['editor']['model']['document']['getRootNames']())_0x417cbe['detachRoot'](_0x40fb53);});}['_sortAndFilterDiffChanges'](_0x35979a){const _0x11a9eb=[],_0x574d4d=new Map();for(const _0x2c0713 of this['editor']['model']['document']['getRootNames']()){const _0x5bcfe9=this['editor']['editing']['view']['getDomRoot'](_0x2c0713);if(!_0x5bcfe9)continue;const _0x44b924=_0x5bcfe9['getClientRects']()['item'](0x0);_0x44b924&&(_0x11a9eb['push'](_0x2c0713),_0x574d4d['set'](_0x2c0713,_0x44b924));}return _0x11a9eb['sort']((_0x19be5e,_0x1274f5)=>{const _0x1a05dd=_0x574d4d['get'](_0x19be5e),_0x16a8af=_0x574d4d['get'](_0x1274f5);return _0x1a05dd['y']-_0x16a8af['y']||_0x1a05dd['x']-_0x16a8af['x'];}),(_0x35979a=_0x35979a['filter'](_0x23f82f=>_0x11a9eb['includes'](_0x23f82f['rootName'])))['sort']((_0x232dc2,_0x2be8d1)=>_0x11a9eb['indexOf'](_0x232dc2['rootName'])-_0x11a9eb['indexOf'](_0x2be8d1['rootName'])),_0x35979a;}['_makeTape'](_0x3b11d2){const _0x3de715=Array['from'](_0x3b11d2['markers'])['filter'](([_0x1f84a8,_0x47df45])=>_0x1f84a8['startsWith']('revision:')&&!_0x47df45['isCollapsed']),_0x1fee72=Array['from'](this['editor']['model']['createRangeIn'](_0x3b11d2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3de715['length'])for(const _0x2c0af3 of _0x1fee72){const [_0x348203,_0x5bc13f]=_0x3de715[0x0],[,_0xb235a7,_0x5861a3]=_0x348203['split'](':');if(_0x5bc13f['end']['isEqual'](_0x2c0af3['nextPosition'])&&_0x3de715['shift'](),(_0x2c0af3['previousPosition']['isEqual'](_0x5bc13f['start'])||_0x2c0af3['previousPosition']['isAfter'](_0x5bc13f['start']))&&('insertion'==_0xb235a7?_0x2c0af3['isAdded']={'userId':_0x5861a3}:'deletion'==_0xb235a7&&(_0x2c0af3['isRemoved']={'userId':_0x5861a3})),0x0==_0x3de715['length'])break;}return _0x1fee72;}['_refreshStartEndIndex'](_0x103d39){const _0x25bb58=new Map();for(let _0x103233=0x0;_0x103233<_0x103d39['length'];_0x103233++)'text'===_0x103d39[_0x103233]['type']?(_0x103d39[_0x103233]['item']['startIndex']=_0x103233,_0x103d39[_0x103233]['item']['endIndex']=_0x103233):('elementStart'===_0x103d39[_0x103233]['type']?_0x103d39[_0x103233]['item']['startIndex']=_0x103233:'elementEnd'===_0x103d39[_0x103233]['type']&&(_0x103d39[_0x103233]['item']['endIndex']=_0x103233),_0x25bb58['set'](_0x103d39[_0x103233]['id'],_0x103233));for(const _0x430352 of _0x25bb58['values']())'elementStart'===_0x103d39[_0x430352]['type']?_0x103d39[_0x430352]['item']['endIndex']=_0x25bb58['get'](_0x103d39[_0x430352]['pairId']):'elementEnd'===_0x103d39[_0x430352]['type']&&(_0x103d39[_0x430352]['item']['startIndex']=_0x25bb58['get'](_0x103d39[_0x430352]['pairId']));}['_processTape'](_0x403a43){for(let _0x53c5dd=0x0;_0x53c5dd<_0x403a43['length'];_0x53c5dd++){if('elementStart'===_0x403a43[_0x53c5dd]['type'])_0x403a43[_0x53c5dd]['item']['startIndex']=_0x53c5dd;else{if('elementEnd'===_0x403a43[_0x53c5dd]['type']){_0x403a43[_0x53c5dd]['item']['endIndex']=_0x53c5dd;const _0x109c7b=_0x403a43[_0x53c5dd]['item']['startIndex'];_0x403a43[_0x109c7b]['pairId']=_0x403a43[_0x53c5dd]['id'],_0x403a43[_0x53c5dd]['pairId']=_0x403a43[_0x109c7b]['id'];}else _0x403a43[_0x53c5dd]['item']['startIndex']=_0x53c5dd,_0x403a43[_0x53c5dd]['item']['endIndex']=_0x53c5dd,_0x403a43[_0x53c5dd]['pairId']=null;}_0x403a43[_0x53c5dd]['markersStart']||(_0x403a43[_0x53c5dd]['markersStart']=[],_0x403a43[_0x53c5dd]['markersEnd']=[]);}}['_markInsertions'](_0x196986,_0x4b88d7){const _0x387d0e=_0x196986['filter'](_0x497866=>!_0x497866['isAdded']);for(let _0x23344d=0x0;_0x23344d<_0x4b88d7['length'];_0x23344d++)_0x4b88d7[_0x23344d]['isAdded']&&(_0x387d0e[_0x23344d]['isAdded']=_0x4b88d7[_0x23344d]['isAdded']);}['_getDiff'](_0x4db55d,_0x3c1022=null){const _0x212b34=this['repository']['getRevision'](_0x4db55d),_0x1754f4=_0x3c1022?this['repository']['getRevision'](_0x3c1022):null,_0x137141=this['_getRevisionsRange'](_0x212b34,_0x1754f4),_0xcf451f=_0x137141[_0x137141['length']-0x1],_0x5424ea=new Map(),_0x39a4c8={'model':{},'attributes':{},'changes':[]},_0x4aacba=new Set(),_0x58c1e1=new Map();for(let _0x1221a9=_0x137141['length']-0x1;_0x1221a9>=0x0;_0x1221a9--){const _0x3b3b6c=_0x137141[_0x1221a9];for(const _0x11b40b of Object['keys'](_0x3b3b6c['diffData']))if(_0x3b3b6c['diffData'][_0x11b40b]['attachChange']){const _0x246ae0=_0x3b3b6c['diffData'][_0x11b40b]['attachChange'];_0x246ae0['isAttached']?(_0x4aacba['add'](_0x11b40b),_0x58c1e1['has'](_0x11b40b)&&_0x58c1e1['get'](_0x11b40b)['userId']==_0x246ae0['userId']?_0x58c1e1['delete'](_0x11b40b):_0x58c1e1['set'](_0x11b40b,_0x246ae0)):_0x58c1e1['has'](_0x11b40b)?(_0x4aacba['delete'](_0x11b40b),_0x58c1e1['delete'](_0x11b40b)):(_0x4aacba['add'](_0x11b40b),_0x58c1e1['set'](_0x11b40b,_0x246ae0));}else _0x4aacba['add'](_0x11b40b);}for(const _0x1790f7 of _0x4aacba){const _0x3344f1=_0x58c1e1['has'](_0x1790f7)&&!_0x58c1e1['get'](_0x1790f7)['isAttached'];let _0x3db956=_0x3344f1?_0x137141['length']-0x1:0x0;const _0x4f944f=_0x3344f1?-0x1:0x1;for(;_0x137141[_0x3db956];){const _0x4d622d=_0x137141[_0x3db956];if(_0x4d622d['diffData'][_0x1790f7]){const _0x436d21=_0x3344f1?_0x4d622d['diffData'][_0x1790f7]['attributesBefore']:_0x4d622d['diffData'][_0x1790f7]['attributesAfter'];_0x39a4c8['attributes'][_0x1790f7]=_0x436d21?_0x980597(_0x436d21):{};break;}_0x3db956+=_0x4f944f;}}for(const _0x2eb4a6 of _0x137141){_0x2eb4a6['model']={};for(const _0x41f5dc of _0x2eb4a6['authors'])_0x5424ea['set'](_0x41f5dc['id'],_0x41f5dc);for(const _0x44ed5e of _0x4aacba){const _0x437dfc=_0x2eb4a6['diffData'][_0x44ed5e]?_0x2eb4a6['diffData'][_0x44ed5e]['insertions']:'[]',_0x2cda0c=_0x2eb4a6['diffData'][_0x44ed5e]?_0x2eb4a6['diffData'][_0x44ed5e]['deletions']:'[]';_0x2eb4a6['model'][_0x44ed5e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x437dfc),'deletions':this['_utils']['_makeModelFromViewString'](_0x2cda0c)};}}for(const _0x2f8076 of _0x4aacba){let _0x335d6b=null,_0x36e658=0x0;const _0x306da5=new Map(Array['from'](_0x212b34['model'][_0x2f8076]['insertions']['markers'])['filter'](([_0x5608e0])=>!_0x5608e0['startsWith']('revision:')));let _0x14cda2=0x0;for(const _0x2371a8 of _0x137141){const _0xf574cd=this['_makeTape'](_0x2371a8['model'][_0x2f8076]['insertions']);_0x2371a8==_0x212b34?(_0x335d6b=_0xf574cd,_0x36e658=_0x335d6b['length'],_0x335d6b['forEach'](_0x583911=>{_0x583911['id']=_0x14cda2++;}),this['_processTape'](_0x335d6b)):this['_markInsertions'](_0x335d6b,_0xf574cd);const _0x37d2f2=_0x335d6b['filter'](_0x51ecf1=>!_0x51ecf1['isAdded'])['map'](_0x40c75a=>_0x40c75a['id']);let _0x47e156=0x0;const _0x1defa9=this['_makeTape'](_0x2371a8['model'][_0x2f8076]['deletions']);_0x1defa9['forEach'](_0x1e56bf=>{_0x1e56bf['isRemoved']?_0x1e56bf['id']=_0x36e658++:_0x1e56bf['id']=_0x37d2f2[_0x47e156++];}),this['_processTape'](_0x1defa9),this['_setDistance'](_0x335d6b,'isAdded'),this['_setDistance'](_0x1defa9,'isRemoved'),_0x2371a8==_0x212b34&&this['_markMarkers'](_0x335d6b,_0x306da5),_0x335d6b=this['_joinTapes'](_0x335d6b,_0x1defa9),this['_refreshStartEndIndex'](_0x335d6b),this['_setDistance'](_0x335d6b,'isRemoved');}_0x335d6b=_0x335d6b['filter'](_0x4d4b36=>!(_0x4d4b36['isAdded']&&_0x4d4b36['isRemoved']));const _0x1cb167=new Map(_0xcf451f['model'][_0x2f8076]['deletions']['markers']),_0x556338=new Set(_0x306da5['keys']());for(const _0x404ec8 of _0x1cb167['keys']())_0x556338['delete'](_0x404ec8);this['_markSuggestions'](_0x335d6b,_0x556338),this['_fixObsoleteTags'](_0x335d6b),_0x335d6b=this['_removeMissingPairs'](_0x335d6b),_0x335d6b=this['_markMismatchedRemovedTags'](_0x335d6b),_0x335d6b=this['_removeUnsupportedChanges'](_0x335d6b);const {root:_0x149c43,changes:_0x151afd}=this['_makeModelFromTape'](_0x335d6b,_0x5424ea,_0x2f8076);_0x39a4c8['model'][_0x2f8076]=_0x149c43;const _0x6e49e1=_0x58c1e1['get'](_0x2f8076);if(_0x6e49e1){const _0x4e8abc=_0x5424ea['get'](_0x6e49e1['userId']),_0x24a008=new r({'author':_0x4e8abc,'type':_0x6e49e1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f8076});_0x151afd['unshift'](_0x24a008),_0x39a4c8['attributes'][_0x2f8076]['revisionHistoryAttachChange']=_0x24a008['id'];}_0x39a4c8['changes']=_0x39a4c8['changes']['concat'](_0x151afd);}return _0x39a4c8;}['_markMarkers'](_0x2abbc7,_0x451f66){for(let _0x167987=0x0;_0x167987<_0x2abbc7['length'];_0x167987++)for(const [_0x1d795f,_0xe08a5c]of _0x451f66)!_0xe08a5c['isCollapsed']&&_0xe08a5c['start']['isEqual'](_0x2abbc7[_0x167987]['previousPosition'])&&_0x2abbc7[_0x167987]['markersStart']['push'](_0x1d795f),_0xe08a5c['end']['isEqual'](_0x2abbc7[_0x167987]['nextPosition'])&&_0x2abbc7[_0x167987]['markersEnd']['push'](_0x1d795f);}['_joinTapes'](_0xc4a28,_0x55e868){let _0x1e61ed=[],_0x3c169d=0x0,_0x3cadde=0x0;for(;_0x3c169d<_0xc4a28['length']||_0x3cadde<_0x55e868['length'];){const _0x2e5773=_0xc4a28[_0x3c169d]||{},_0x5286e6=_0x55e868[_0x3cadde]||{};if(_0x2e5773['id']==_0x5286e6['id'])_0x3c169d++,_0x3cadde++,_0x1e61ed['push'](_0x2e5773);else{if(_0x5286e6['isRemoved']&&_0x2e5773['isAdded']){const {commonTape:_0x3cbb55,iEnd:_0x57cdd4,jEnd:_0x5022d2}=this['_threeWayMerge'](_0xc4a28,_0x3c169d,_0x55e868,_0x3cadde);_0x1e61ed=_0x1e61ed['concat'](_0x3cbb55),_0x3c169d=_0x57cdd4,_0x3cadde=_0x5022d2;}else _0x5286e6['isRemoved']?(_0x3cadde++,_0x1e61ed['push'](_0x5286e6)):(_0x3c169d++,_0x1e61ed['push'](_0x2e5773));}}return _0x1e61ed;}['_markSuggestions'](_0xb5dab0,_0x3544df){const _0x474f58=[];for(let _0x4e516c=0x0;_0x4e516c<_0xb5dab0['length'];_0x4e516c++){for(let _0x1ecf0a=0x0;_0x1ecf0a<_0xb5dab0[_0x4e516c]['markersStart']['length'];_0x1ecf0a++){const _0x34d59=_0xb5dab0[_0x4e516c]['markersStart'][_0x1ecf0a];if(!_0x3544df['has'](_0x34d59))continue;const {group:_0x3590a6,type:_0x32a186,authorId:_0x3132ad}=_0x1d07c4(_0x34d59);'revision-suggestion'!=_0x3590a6||'insertion'!=_0x32a186&&'deletion'!=_0x32a186||(_0x474f58['unshift']({'type':_0x32a186,'name':_0x34d59,'userId':_0x3132ad}),_0xb5dab0[_0x4e516c]['markersStart']['splice'](_0x1ecf0a,0x1),_0x1ecf0a--);}_0x44a2cc(_0xb5dab0[_0x4e516c]);for(let _0x50e8dc=0x0;_0x50e8dc<_0xb5dab0[_0x4e516c]['markersEnd']['length'];_0x50e8dc++){const _0x254b8c=_0xb5dab0[_0x4e516c]['markersEnd'][_0x50e8dc];if(!_0x3544df['has'](_0x254b8c))continue;const {group:_0x169392,type:_0x28710d}=_0x1d07c4(_0x254b8c);if('revision-suggestion'!=_0x169392||'insertion'!=_0x28710d&&'deletion'!=_0x28710d)continue;_0xb5dab0[_0x4e516c]['markersEnd']['splice'](_0x50e8dc,0x1),_0x50e8dc--;const _0xa0d4f3=_0x474f58['findIndex'](_0x273a8b=>_0x273a8b['name']==_0x254b8c);_0xa0d4f3>-0x1&&_0x474f58['splice'](_0xa0d4f3,0x1);}}function _0x1d07c4(_0x5b68f5){const _0x1222bd=_0x5b68f5['split'](':');return{'group':_0x1222bd[0x0],'type':_0x1222bd[0x1],'subType':_0x1222bd['length']>=0x5?_0x1222bd[0x2]:null,'id':_0x1222bd['length']<0x5?_0x1222bd[0x2]:_0x1222bd[0x3],'authorId':_0x1222bd['length']<0x5?_0x1222bd[0x3]:_0x1222bd[0x4],'markerCount':0x6==_0x1222bd['length']?_0x1222bd[0x5]:null};}function _0x44a2cc(_0x1eee28){for(let _0x594c1c=0x0;_0x594c1c<_0x474f58['length'];_0x594c1c++){if(_0x1eee28['isAdded']&&'insertion'==_0x474f58[_0x594c1c]['type'])return _0x1eee28['isAddSuggestion']=_0x474f58[_0x594c1c],void delete _0x1eee28['isAdded'];if(!_0x1eee28['isAdded']&&!_0x1eee28['isRemoved']&&'deletion'==_0x474f58[_0x594c1c]['type'])return void(_0x1eee28['isRemoveSuggestion']=_0x474f58[_0x594c1c]);}}}['_setDistance'](_0x218fbe,_0x533d8c){let _0x534c11=0x0,_0x2a1283=!0x1;const _0x5afa56=new Map();for(const _0x42f1a4 of _0x218fbe)_0x42f1a4[_0x533d8c]?_0x2a1283&&(_0x534c11++,_0x2a1283=!0x1):(_0x534c11++,_0x2a1283=!0x0),_0x5afa56['set'](_0x42f1a4['id'],_0x534c11);for(let _0x4ed4f7=0x0;_0x4ed4f7<_0x218fbe['length'];_0x4ed4f7++){if('isRemoved'==_0x533d8c&&_0x218fbe[_0x4ed4f7]['isAdded']||'isAdded'==_0x533d8c&&_0x218fbe[_0x4ed4f7]['isRemoved'])continue;if('text'==_0x218fbe[_0x4ed4f7]['type']){_0x218fbe[_0x4ed4f7]['distance']=0x0;continue;}const _0x4ab6ad=_0x5afa56['get'](_0x218fbe[_0x4ed4f7]['pairId']),_0x5e56fa=_0x5afa56['get'](_0x218fbe[_0x4ed4f7]['id']);_0x218fbe[_0x4ed4f7]['distance']=_0x4ab6ad-_0x5e56fa;}}['_getRevisionsRange'](_0x4b9ec9,_0x362eb9,_0x303dce=!0x1){const _0x2cf772=[];let _0x24243d=this['repository']['getIndex'](_0x4b9ec9),_0x153cc4=this['repository']['getIndex'](_0x362eb9);for(-0x1==_0x153cc4&&(_0x153cc4=this['repository']['_revisions']['length'],_0x303dce=!0x1);_0x24243d<_0x153cc4;)_0x2cf772['push'](this['repository']['getRevision'](_0x24243d)),_0x24243d++;return _0x303dce&&_0x2cf772['push'](this['repository']['getRevision'](_0x24243d)),_0x2cf772;}['_threeWayMerge'](_0x2186c2,_0x1588e4,_0x234e74,_0x49f200){const _0xdf0baf=this['editor']['model']['schema'];let _0x1872c9=_0x1588e4;for(;_0x2186c2[_0x1872c9]&&_0x2186c2[_0x1872c9]['isAdded'];)_0x1872c9++;let _0x553e75=_0x49f200;for(;_0x234e74[_0x553e75]&&_0x234e74[_0x553e75]['isRemoved'];)_0x553e75++;_0x511d32(_0x2186c2,_0x1588e4,_0x1872c9),_0x511d32(_0x234e74,_0x49f200,_0x553e75);const _0x18f3bd=_0x234e74['slice'](_0x49f200,_0x553e75)['concat'](_0x2186c2['slice'](_0x1588e4,_0x1872c9));return _0x18f3bd['sort']((_0x36ae48,_0x493dcf)=>_0x36ae48['side']!=_0x493dcf['side']?_0x36ae48['side']-_0x493dcf['side']:_0x36ae48['level']!=_0x493dcf['level']?_0x36ae48['level']-_0x493dcf['level']:_0x36ae48['distance']!=_0x493dcf['distance']?_0x493dcf['distance']-_0x36ae48['distance']:!!_0x36ae48['isAdded']!=!!_0x493dcf['isAdded']?-0x1==_0x36ae48['side']||0x0==_0x36ae48['side']?_0x36ae48['isAdded']?-0x1:0x1:_0x36ae48['isAdded']?0x1:-0x1:_0x36ae48['index']-_0x493dcf['index']),{'commonTape':_0x18f3bd,'iEnd':_0x1872c9,'jEnd':_0x553e75};function _0x511d32(_0x87e1fe,_0x4cc689,_0x236628){let _0x4acb08=-0x1,_0x18f76c=Number['POSITIVE_INFINITY'],_0x388d31=!0x0;for(let _0x570dbf=_0x4cc689;_0x570dbf<_0x236628;_0x570dbf++)if(_0xdf0baf['isInline'](_0x87e1fe[_0x570dbf]['item'])||(_0x388d31=!0x1),_0x87e1fe[_0x570dbf]['item']['startIndex']<_0x4cc689&&(_0x4acb08=_0x570dbf),_0x87e1fe[_0x570dbf]['item']['endIndex']>=_0x236628){_0x18f76c=_0x570dbf;break;}_0x388d31&&(_0x4acb08=_0x236628-0x1);for(let _0x37f87e=_0x4cc689;_0x37f87e<_0x236628;_0x37f87e++)_0x87e1fe[_0x37f87e]['side']=_0x37f87e<=_0x4acb08?-0x1:_0x37f87e<_0x18f76c?0x0:0x1,_0x87e1fe[_0x37f87e]['index']=_0x37f87e;let _0x4a9428=0x0;for(let _0x5cb6dc=_0x4cc689;_0x5cb6dc<=_0x4acb08;_0x5cb6dc++)0x0==_0x87e1fe[_0x5cb6dc]['distance']?_0x87e1fe[_0x5cb6dc]['level']=_0x4a9428:(_0x4a9428++,_0x87e1fe[_0x5cb6dc]['level']=_0x4a9428,_0x4a9428++);for(let _0x149340=_0x4cc689;_0x149340<_0x236628;_0x149340++)0x0==_0x87e1fe[_0x149340]['side']&&(_0x87e1fe[_0x149340]['level']=_0x4a9428);_0x4a9428=0x0;for(let _0x42a672=_0x236628-0x1;_0x42a672>=_0x18f76c;_0x42a672--)0x0==_0x87e1fe[_0x42a672]['distance']?_0x87e1fe[_0x42a672]['level']=_0x4a9428:(_0x4a9428--,_0x87e1fe[_0x42a672]['level']=_0x4a9428,_0x4a9428--);}}['_fixObsoleteTags'](_0x3ca193){const _0x4ff5fb=new Map(),_0x3aaab0=this['editor']['model']['schema'];for(let _0x42a62c=0x1;_0x42a62c<_0x3ca193['length'];_0x42a62c++){let _0x197a4c,_0x120dd1,_0x70c9b;const _0x211b2b=_0x3ca193[_0x42a62c],_0x198090=_0x3ca193[_0x42a62c-0x1];if('text'==_0x211b2b['type'])continue;if(_0x211b2b['type']!=_0x198090['type'])continue;if(!_0x3aaab0['isBlock'](_0x198090['item'])||_0x3aaab0['isLimit'](_0x198090['item']))continue;if(!_0x3aaab0['isBlock'](_0x211b2b['item'])||_0x3aaab0['isLimit'](_0x211b2b['item']))continue;if((_0x3ca193[_0x42a62c]['isAdded']||_0x3ca193[_0x42a62c]['isAddSuggestion'])&&_0x3ca193[_0x42a62c-0x1]['isRemoved'])_0x197a4c=_0x3ca193[_0x42a62c],_0x120dd1=_0x3ca193[_0x42a62c-0x1],_0x70c9b=_0x42a62c-0x1;else{if(!_0x3ca193[_0x42a62c]['isRemoved']||!_0x3ca193[_0x42a62c-0x1]['isAdded']&&!_0x3ca193[_0x42a62c-0x1]['isAddSuggestion'])continue;_0x197a4c=_0x3ca193[_0x42a62c-0x1],_0x120dd1=_0x3ca193[_0x42a62c],_0x70c9b=_0x42a62c;}const _0x1eb055=_0x197a4c['level']==_0x120dd1['level'],_0x5399c5=Math['abs'](_0x197a4c['level'])<Math['abs'](_0x120dd1['level'])&&0x0==_0x120dd1['distance'];(_0x1eb055||_0x5399c5)&&(_0x4ff5fb['set'](_0x120dd1['id'],_0x197a4c['id']),_0x3ca193['splice'](_0x70c9b,0x1),_0x42a62c--,_0x197a4c['isAdded']=!0x1);}for(let _0x3116c2=0x0;_0x3116c2<_0x3ca193['length'];_0x3116c2++)_0x4ff5fb['has'](_0x3ca193[_0x3116c2]['pairId'])&&(_0x3ca193[_0x3116c2]['pairId']=_0x4ff5fb['get'](_0x3ca193[_0x3116c2]['pairId']));}['_removeMissingPairs'](_0xe1d772){const _0x30fd83=new Set(_0xe1d772['map'](_0x22b56c=>_0x22b56c['id']));for(let _0x3516ed=0x0;_0x3516ed<_0xe1d772['length'];_0x3516ed++)_0x30fd83['has'](_0xe1d772[_0x3516ed]['pairId'])||0x0==_0xe1d772[_0x3516ed]['distance']||(_0xe1d772[_0x3516ed]['isIncorrect']=!0x0);return _0xe1d772['filter'](_0x1d79bd=>!_0x1d79bd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x510cc6){const _0x4ff53e=new Set();for(let _0x32f569=0x0;_0x32f569<_0x510cc6['length'];_0x32f569++){if(_0x4ff53e['has'](_0x510cc6[_0x32f569]['id'])&&_0x510cc6[_0x32f569]['isRemoved']&&(_0x510cc6[_0x32f569]['isIncorrect']=!0x0),_0x510cc6[_0x32f569]['isIncorrect'])continue;if(0x0==_0x510cc6[_0x32f569]['distance'])continue;if('elementStart'!=_0x510cc6[_0x32f569]['type'])continue;if(null==_0x510cc6[_0x32f569]['pairId'])continue;let _0x5f06af=_0x32f569+0x1,_0x1e01fd=0x0;for(;_0x510cc6[_0x5f06af]['id']!=_0x510cc6[_0x32f569]['pairId'];)'elementStart'==_0x510cc6[_0x5f06af]['type']?_0x1e01fd++:'elementEnd'==_0x510cc6[_0x5f06af]['type']&&_0x1e01fd--,_0x5f06af++;if(0x0!=_0x1e01fd){if(_0x510cc6[_0x32f569]['isRemoved'])_0x510cc6[_0x32f569]['isIncorrect']=!0x0;else{for(;_0x5f06af!=_0x32f569;)_0x510cc6[_0x5f06af]['isRemoved']&&0x0!=_0x510cc6[_0x5f06af]['distance']&&(_0x510cc6[_0x5f06af]['isIncorrect']=!0x0,_0x4ff53e['add'](_0x510cc6[_0x5f06af]['pairId'])),_0x5f06af--;}}}return _0x510cc6['filter'](_0x2ed516=>!_0x2ed516['isIncorrect']);}['_removeUnsupportedChanges'](_0x5f027a){const _0x2b689b=this['editor']['model']['schema'];for(let _0x5805d4=0x0;_0x5805d4<_0x5f027a['length'];_0x5805d4++){if(!(_0x5f027a[_0x5805d4]['isAdded']||_0x5f027a[_0x5805d4]['isAddSuggestion']||_0x5f027a[_0x5805d4]['isRemoved']||_0x5f027a[_0x5805d4]['isRemoveSuggestion']))continue;if(0x0==_0x5f027a[_0x5805d4]['distance'])continue;const _0x38279b=_0x5f027a[_0x5805d4]['item'];_0x2b689b['isBlock'](_0x38279b)||_0x2b689b['isLimit'](_0x38279b)||(_0x5f027a[_0x5805d4]['isAdded']&&delete _0x5f027a[_0x5805d4]['isAdded'],_0x5f027a[_0x5805d4]['isAddSuggestion']&&delete _0x5f027a[_0x5805d4]['isAddSuggestion'],_0x5f027a[_0x5805d4]['isRemoveSuggestion']&&delete _0x5f027a[_0x5805d4]['isRemoveSuggestion'],_0x5f027a[_0x5805d4]['isRemoved']&&(_0x5f027a[_0x5805d4]['isIncorrect']=!0x0));}return _0x5f027a['filter'](_0x1d59fb=>!_0x1d59fb['isIncorrect']);}['_makeModelFromTape'](_0x377fb0,_0x6419fd,_0x536c63){const _0x4318e5=new vt(),_0x540b5a=[],_0x28874a=new Map(),_0x5cb871=this['editor']['model'],_0x26536d=_0x5cb871['schema'],_0x2be401=[_0x4318e5],_0x25321d={},_0x6eb5c1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3cbaf=null;const _0x2ffe49=[0x0];for(let _0x111031=0x0;_0x111031<_0x377fb0['length'];_0x111031++)if('elementStart'===_0x377fb0[_0x111031]['type']){_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49);const _0x4ac1cb=new ut(_0x377fb0[_0x111031]['item']['name'],_0x377fb0[_0x111031]['item']['getAttributes']());_0x2be401[0x0]['_appendChild'](_0x4ac1cb),_0x2ffe49['push'](0x0),_0x2be401['unshift'](_0x4ac1cb),_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49);}else'elementEnd'===_0x377fb0[_0x111031]['type']?(_0x2be401['shift'](),_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49),_0x2ffe49['pop'](),_0x2ffe49[_0x2ffe49['length']-0x1]++,_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49)):(_0x377fb0[_0x111031]['previousPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49),_0xa3cbaf?_0xa3cbaf['_data']+=_0x377fb0[_0x111031]['item']['data']:_0xa3cbaf=new gt(_0x377fb0[_0x111031]['item']['data'],_0x377fb0[_0x111031]['item']['getAttributes']()),_0x377fb0[_0x111031+0x1]&&'text'===_0x377fb0[_0x111031+0x1]['type']&&_0x409ae9(_0xa3cbaf,_0x377fb0[_0x111031+0x1]['item'])||(_0x2be401[0x0]['_appendChild'](_0xa3cbaf),_0xa3cbaf=null),_0x2ffe49[_0x2ffe49['length']-0x1]+=_0x377fb0[_0x111031]['item']['offsetSize'],_0x377fb0[_0x111031]['nextPosition']=_0x5cb871['createPositionFromPath'](_0x4318e5,_0x2ffe49));for(let _0x19b1fa=0x0;_0x19b1fa<_0x377fb0['length'];_0x19b1fa++){const _0x9fb73c=_0x377fb0[_0x19b1fa]['previousPosition'],_0x5e4da5=_0x377fb0[_0x19b1fa]['nextPosition'];for(const _0xc54a26 of _0x377fb0[_0x19b1fa]['markersStart'])_0x28874a['set'](_0xc54a26,{'start':_0x9fb73c,'end':null});_0x4652d8('isRemoveSuggestion',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isAddSuggestion',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isRemoved',_0x19b1fa,_0x9fb73c,_0x5e4da5),_0x4652d8('isAdded',_0x19b1fa,_0x9fb73c,_0x5e4da5);for(const _0x237679 of _0x377fb0[_0x19b1fa]['markersEnd']){const _0x1312f6=_0x28874a['get'](_0x237679);_0x1312f6?_0x1312f6['end']=_0x5e4da5:_0x28874a['set'](_0x237679,{'start':_0x5e4da5,'end':_0x5e4da5});}}for(const [_0x647b11,_0x16058f]of _0x28874a){const _0x598d0c=this['editor']['model']['createRange'](_0x16058f['start'],_0x16058f['end']);_0x4318e5['markers']['set'](_0x647b11,_0x598d0c);}return _0x540b5a['sort']((_0x248f5a,_0x5a7567)=>{const _0x58d96e=_0x4318e5['markers']['get']('revision:'+_0x248f5a['id']),_0x1c5485=_0x4318e5['markers']['get']('revision:'+_0x5a7567['id']);return _0x58d96e['start']['isBefore'](_0x1c5485['start'])?-0x1:_0x58d96e['start']['isAfter'](_0x1c5485['start'])?0x1:_0x58d96e['end']['isBefore'](_0x1c5485['end'])?-0x1:_0x58d96e['end']['isAfter'](_0x1c5485['end'])?0x1:'add'===_0x248f5a['type']?-0x1:0x1;}),{'root':_0x4318e5,'changes':_0x540b5a};function _0x4652d8(_0x4e1508,_0x14f44c,_0x47b5bf,_0x247d86){const _0x4b936f=!!_0x377fb0[_0x14f44c][_0x4e1508],_0x420e83=_0x4b936f?_0x377fb0[_0x14f44c][_0x4e1508]['userId']:null,_0x3560e1=_0x14f44c===_0x377fb0['length']-0x1,_0x478d46=_0x6eb5c1[_0x4e1508][0x0],_0x3408cc=_0x26536d['isObject'](_0x377fb0[_0x14f44c]['item']);!_0x25321d[_0x4e1508]&&_0x4b936f?_0x25321d[_0x4e1508]={'start':_0x47b5bf,'tapeItem':_0x377fb0[_0x14f44c],'userId':_0x420e83,'type':_0x4e1508}:_0x25321d[_0x4e1508]&&!_0x4b936f?(_0x25321d[_0x4e1508]['end']=_0x47b5bf,_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]=null):_0x25321d[_0x4e1508]&&_0x4b936f&&_0x25321d[_0x4e1508]['userId']!==_0x420e83&&(_0x25321d[_0x4e1508]['end']=_0x47b5bf,_0x478d46&&_0x478d46['userId']===_0x25321d[_0x4e1508]['userId']||_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]={'start':_0x47b5bf,'tapeItem':_0x377fb0[_0x14f44c],'userId':_0x420e83,'type':_0x4e1508}),_0x25321d[_0x4e1508]&&_0x3408cc&&('elementStart'!==_0x377fb0[_0x14f44c]['type']||_0x478d46&&_0x478d46['userId']===_0x420e83||_0x6eb5c1[_0x4e1508]['unshift']({'userId':_0x420e83,'object':_0x377fb0[_0x14f44c]['item'],'change':_0x25321d[_0x4e1508]}),'elementEnd'===_0x377fb0[_0x14f44c]['type']&&_0x478d46&&_0x478d46['object']===_0x377fb0[_0x14f44c]['item']&&(_0x6eb5c1[_0x4e1508]['shift'](),_0x25321d[_0x4e1508]=_0x478d46['change'])),_0x25321d[_0x4e1508]&&_0x3560e1&&(_0x25321d[_0x4e1508]['end']=_0x247d86,_0x19251f(_0x25321d[_0x4e1508]),_0x25321d[_0x4e1508]=null);}function _0x19251f({start:_0x54fcf2,end:_0x3e3bae,tapeItem:_0x396be1,userId:_0x4f9f0f,type:_0x3ac8ba}){const _0x2ba85c=_0x396be1['item'],_0x56ee9a=_0x5cb871['schema']['isBlock'](_0x2ba85c)&&!_0x5cb871['schema']['isLimit'](_0x2ba85c),_0x212a84=_0x54fcf2['nodeAfter']==_0x3e3bae['parent']&&_0x3e3bae['isAtStart'];if(_0x56ee9a&&_0x212a84)return;const _0x449aa4=_0x5cb871['createRange'](_0x54fcf2,_0x3e3bae),_0x592771=_0x6419fd['get'](_0x4f9f0f),_0x23e323=new r({'author':_0x592771,'type':'isAdded'==_0x3ac8ba||'isAddSuggestion'==_0x3ac8ba?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3ac8ba||'isRemoveSuggestion'==_0x3ac8ba},'createdAt':new Date(),'rootName':_0x536c63});_0x540b5a['push'](_0x23e323),_0x4318e5['markers']['set']('revision:'+_0x23e323['id'],_0x449aa4);}function _0x409ae9(_0x3fd4cc,_0x4c1a40){const _0x54e1b8=_0x3fd4cc['getAttributes'](),_0x3f15c8=_0x4c1a40['getAttributes']();for(const _0x1e5edb of _0x54e1b8){if(_0x1e5edb[0x1]!==_0x4c1a40['getAttribute'](_0x1e5edb[0x0]))return!0x1;_0x3f15c8['next']();}return _0x3f15c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xeb45a9=>{const _0x117abc=_0xeb45a9['markerName']['split'](':')[0x1],_0xd4e941=this['_getChangeFromId'](_0x117abc);if(!_0xd4e941)return null;const _0x155620='add'==_0xd4e941['type']?'insertion':'deletion',_0x3d11bf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x155620];return _0xd4e941['data']['isSuggestion']&&_0x3d11bf['push']('ck-suggestion-marker-'+_0x155620+'-new'),this['activeChange']==_0xd4e941&&_0x3d11bf['push']('ck-suggestion-marker--active'),{'classes':_0x3d11bf,'attributes':{'data-change-id':_0x117abc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e1faa=>{_0x5e1faa['on']('element:pre',(_0x1591f4,_0x4bd8ce,_0x25b2d2)=>{const _0xb1072d=_0x4bd8ce['viewItem']['getChild'](0x0);if(!_0xb1072d||!_0xb1072d['is']('element','code'))return;if(!_0x25b2d2['consumable']['consume'](_0xb1072d,{'attributes':['vid_start','vid_end']}))return;const _0x460965=_0x4bd8ce['modelRange']['start']['nodeAfter'];_0x25b2d2['writer']['setAttribute']('vid_start',_0xb1072d['getAttribute']('vid_start'),_0x460965),_0x25b2d2['writer']['setAttribute']('vid_end',_0xb1072d['getAttribute']('vid_end'),_0x460965);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2da356=>{_0x2da356['on']('element',(_0x2ad8ee,_0x6c3415,_0x2e8b77)=>{if(!_0x2e8b77['consumable']['consume'](_0x6c3415['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x6c3415['modelRange']['isCollapsed'])return;const _0x438ad5=_0x6c3415['modelRange']['start']['nodeAfter'];_0x438ad5['hasAttribute']('vid_start')||_0x438ad5['hasAttribute']('vid')||(_0x2e8b77['writer']['setAttribute']('vid_start',_0x6c3415['viewItem']['getAttribute']('vid_start'),_0x438ad5),_0x2e8b77['writer']['setAttribute']('vid_end',_0x6c3415['viewItem']['getAttribute']('vid_end'),_0x438ad5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x18d774=>_0x18d774['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2cff0e,[,_0x15aca5])=>{['vid_start','vid_end','vid']['includes'](_0x15aca5)&&(_0x2cff0e['return']=!0x0,_0x2cff0e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xb93c4=>{_0xb93c4['on']('attribute:vid',(_0x39f5bf,_0x44f6c1,_0xaace41)=>{if('\x20'!=_0x44f6c1['item']['data']||_0x44f6c1['item']['parent']['maxOffset']>0x1)return;if(!_0xaace41['consumable']['consume'](_0x44f6c1['item'],_0x39f5bf['name']))return;const _0x198ab8=_0xaace41['writer'],_0x32551b=_0xaace41['mapper']['toViewRange'](_0x44f6c1['range']);_0x198ab8['wrap'](_0x32551b,_0x198ab8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3f9138){const _0x295b5f=_0x3f9138['plugins']['get']('RevisionViewer');return(_0x4a3e3a,_0x38c710,_0x56407d)=>{const _0x52afbc=_0x38c710['markerName']['split'](':')[0x1],_0x578142=_0x295b5f['_getChangeFromId'](_0x52afbc);if(!_0x578142)return null;const _0x9e3b73='add'==_0x578142['type']?'split':'merge';if(!_0x56407d['consumable']['test'](_0x38c710['markerRange'],_0x4a3e3a['name']))return;const _0x2b0be6=_0x38c710['markerRange']['getWalker'](),_0x5252b9=_0x38c710['markerRange']['start'],_0x5633d0=_0x3f9138['model']['schema'];let _0x2262f9=null,_0x2447b6=null,_0x1ce7d0=!0x1,_0xf64b64=!0x1;for(const _0x23fbac of _0x2b0be6){const _0x85f910=_0x23fbac['item'];_0x1ce7d0=_0x1ce7d0||_0x5633d0['isContent'](_0x85f910);const _0x4b1a3e=_0x56407d['mapper']['toViewElement'](_0x85f910);if(_0x4b1a3e&&_0x4b1a3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23fbac['type']&&(_0x5633d0['isBlock'](_0x85f910)&&!_0x5633d0['isLimit'](_0x85f910)&&(_0x85f910['nextSibling']||_0x5252b9['isAtEnd']?_0x2262f9&&_0x2262f9['parent']==_0x85f910||(_0x2262f9=_0x85f910,_0x1ac1c9(_0x23fbac['previousPosition']),_0xf64b64=!0x0):_0x2447b6=_0x2447b6||_0x23fbac['previousPosition']));}function _0x1ac1c9(_0x4e82e5){const _0x4fdd46=_0x56407d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9e3b73}),_0x456bbb=_0x56407d['mapper']['toViewPosition'](_0x4e82e5);_0x578142['data']['isSuggestion']&&_0x56407d['writer']['addClass']('ck-suggestion-marker-'+_0x9e3b73+'-new',_0x4fdd46),_0x295b5f['activeChange']==_0x578142&&_0x56407d['writer']['addClass']('ck-suggestion-marker--active',_0x4fdd46),_0x56407d['writer']['insert'](_0x456bbb,_0x4fdd46),_0x56407d['mapper']['bindElementToMarker'](_0x4fdd46,_0x38c710['markerName']);}_0x1ce7d0||_0xf64b64||!_0x2447b6||_0x1ac1c9(_0x2447b6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3f1e38,_0x3dde9a,_0x3ced0a)=>{const _0x5684af=_0x3ced0a['mapper']['markerNameToElements'](_0x3dde9a['markerName']);if(_0x5684af){for(const _0x25e7c2 of _0x5684af)(_0x25e7c2['hasClass']('ck-suggestion-marker-split')||_0x25e7c2['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ced0a['mapper']['unbindElementFromMarkerName'](_0x25e7c2,_0x3dde9a['markerName']),_0x3ced0a['writer']['remove'](_0x25e7c2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3b7d26,_0xc8944,_0x25cc2e)=>{const _0x5a8a50=_0xc8944['markerName']['split'](':')[0x1],_0x1ec36d=this['_getChangeFromId'](_0x5a8a50);if(!_0x1ec36d)return null;const _0x983483='add'==_0x1ec36d['type']?'split':'merge';if(_0x25cc2e['consumable']['test'](_0xc8944['markerRange'],_0x3b7d26['name']))for(const _0x1cb968 of _0xc8944['markerRange']['getItems']()){if(!_0x1cb968['is']('element','softBreak'))continue;const _0x2d291f=_0x25cc2e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x983483}),_0x1ee82f=_0x25cc2e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1cb968));_0x1ec36d['data']['isSuggestion']&&_0x25cc2e['writer']['addClass']('ck-suggestion-marker-'+_0x983483+'-new',_0x2d291f),this['activeChange']==_0x1ec36d&&_0x25cc2e['writer']['addClass']('ck-suggestion-marker--active',_0x2d291f),_0x25cc2e['writer']['insert'](_0x1ee82f,_0x2d291f),_0x25cc2e['mapper']['bindElementToMarker'](_0x2d291f,_0xc8944['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12d8ab=>{for(const _0x2641f2 of this['editor']['model']['document']['getRootNames']()){const _0x4a68bd=this['editor']['model']['document']['getRoot'](_0x2641f2),_0x62c4b2=this['editor']['editing']['view']['document']['getRoot'](_0x2641f2);if(_0x62c4b2){const _0x31e163=_0x4a68bd['getAttribute']('revisionHistoryAttachChange');if(_0x12d8ab['removeAttribute']('data-change-id',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root-add',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root-remove',_0x62c4b2),_0x12d8ab['removeClass']('ck-revision-history-root--active',_0x62c4b2),_0x31e163){const _0x5873d9=this['_getChangeFromId'](_0x31e163);if(!_0x5873d9)return null;_0x12d8ab['setAttribute']('data-change-id',_0x31e163,_0x62c4b2),_0x12d8ab['addClass']('ck-revision-history-root-'+_0x5873d9['type'],_0x62c4b2),this['activeChange']==_0x5873d9&&_0x12d8ab['addClass']('ck-revision-history-root--active',_0x62c4b2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x146c71=>'revision-comment:'+_0x146c71,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4679ac=>'revision-suggestion:'+_0x4679ac,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f1853=>({'name':'suggestion:'+_0x2f1853,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e860a=>{const _0x5d1a17=_0x1e860a['markerName']['split'](':')[0x1];return'insertion'!=_0x5d1a17&&'deletion'!=_0x5d1a17?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d1a17]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3bfea2,_0x513454,_0x41606d)=>{const _0x4e0353=_0x41606d['mapper']['markerNameToElements'](_0x513454['markerName']);if(_0x4e0353){for(const _0x48a122 of _0x4e0353)_0x48a122['is']('uiElement')&&(_0x41606d['mapper']['unbindElementFromMarkerName'](_0x48a122,_0x513454['markerName']),_0x41606d['writer']['remove'](_0x48a122));}},{'priority':'high'});}['_getChangeFromId'](_0x2df24f){return this['_changeIdToChange']['get'](_0x2df24f);}['_getViewForChange'](_0xf88a08){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xf88a08),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xc9eae5,_0x1c5836,_0x2f8cc8,_0x1999ad)=>{_0x1999ad&&this['_balloon']['remove'](_0x1999ad),_0x2f8cc8&&(this['_balloon']['add']({'view':_0x2f8cc8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x253e72=this['editor']['editing'],_0xe5bcd1=this['_getChangeFromId'](_0x2f8cc8['changeId']);let _0x4bc239;if(_0xe5bcd1['data']['isOnRoot']){const _0x2078e7=_0x253e72['view']['getDomRoot'](_0xe5bcd1['rootName']);_0x4bc239=Array['from'](_0x2078e7['getClientRects']());}else{const _0x88d0de=this['editor']['model']['markers']['get']('revision:'+_0x2f8cc8['changeId']);_0x4bc239=Array['from'](_0x253e72['mapper']['markerNameToElements'](_0x88d0de['name']))['map'](_0x558505=>_0x253e72['view']['domConverter']['mapViewToDom'](_0x558505))['map'](_0x2b5148=>Array['from'](_0x2b5148['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4bc239[0x0];return _0x4bc239['find'](_0x36ab2b=>_0x36ab2b['top']-0x3<=this['_activeViewTarget']['y']&&_0x36ab2b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36ab2b['left']-0x3<=this['_activeViewTarget']['x']&&_0x36ab2b['right']+0x3>=this['_activeViewTarget']['x'])||_0x4bc239[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x461286,_0x381a9b,_0x329319,_0x38e3a3)=>{this['activeView']=_0x329319?this['_getViewForChange'](_0x329319):null,this['editor']['model']['change'](()=>{const _0xd08324=this['editor']['editing'];_0x38e3a3&&(_0x38e3a3['data']['isOnRoot']?_0xd08324['view']['change'](_0x1a0c1a=>{_0x1a0c1a['removeClass']('ck-revision-history-root--active',_0xd08324['view']['document']['getRoot'](_0x38e3a3['rootName']));}):_0xd08324['reconvertMarker']('revision:'+_0x38e3a3['id'])),_0x329319&&(_0x329319['data']['isOnRoot']?_0xd08324['view']['change'](_0x20b4c4=>{_0x20b4c4['addClass']('ck-revision-history-root--active',_0xd08324['view']['document']['getRoot'](_0x329319['rootName']));}):_0xd08324['reconvertMarker']('revision:'+_0x329319['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5bf889,_0xbcc1b5)=>{if(this['activeChange'])return;const _0x3dcf2c=this['_findChangeIdFromDomTarget'](_0xbcc1b5['target']),_0x3ae947=this['_changeIdToChange']['get'](_0x3dcf2c);_0x3ae947?(this['_activeViewTarget']={'x':_0xbcc1b5['domEvent']['x'],'y':_0xbcc1b5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3ae947)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ae9b3,_0x2de263)=>{const _0x514f9b=this['_findChangeIdFromDomTarget'](_0x2de263['target']),_0x8e66df=this['_changeIdToChange']['get'](_0x514f9b);_0x8e66df?(this['_activeViewTarget']={'x':_0x2de263['domEvent']['x'],'y':_0x2de263['domEvent']['y']},_0x8e66df===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8e66df):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x9f63b6){do{const _0x4fd4b2=_0x9f63b6['getAttribute']('data-change-id');if(_0x4fd4b2)return _0x4fd4b2;_0x9f63b6=_0x9f63b6['parent'];}while(_0x9f63b6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4108be=>{for(const _0xa11404 of this['editor']['model']['markers'])_0x4108be['removeMarker'](_0xa11404);});}}function X(_0xbc7654,_0x204530){return(_0x1cfb49,_0x364ab8,_0x2a0adb)=>{if(!_0x2a0adb['consumable']['test'](_0x364ab8['markerRange'],_0x1cfb49['name']))return;const _0x5111b4=_0x364ab8['markerRange']['getWalker'](),_0x2b026e=_0x364ab8['markerRange']['start'],_0x157af0=_0xbc7654['model']['schema'];let _0x3437a6=null,_0x134459=null,_0x323778=!0x1,_0x5f3407=!0x1;for(const _0x1a8b8f of _0x5111b4){const _0x3ea291=_0x1a8b8f['item'];_0x323778=_0x323778||_0x157af0['isContent'](_0x3ea291);const _0x27c93f=_0x2a0adb['mapper']['toViewElement'](_0x3ea291);if(_0x27c93f&&_0x27c93f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a8b8f['type']&&(_0x157af0['isBlock'](_0x3ea291)&&!_0x157af0['isLimit'](_0x3ea291)&&(_0x3ea291['nextSibling']||_0x2b026e['isAtEnd']?_0x3437a6&&_0x3437a6['parent']==_0x3ea291||(_0x3437a6=_0x3ea291,_0x1395d6(_0x1a8b8f['previousPosition']),_0x5f3407=!0x0):_0x134459=_0x134459||_0x1a8b8f['previousPosition']));}function _0x1395d6(_0x283f6f){const _0x16d1a0=_0x2a0adb['mapper']['toViewPosition'](_0x283f6f),_0x40ca9a=_0x2a0adb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x204530});_0x2a0adb['writer']['insert'](_0x16d1a0,_0x40ca9a),_0x2a0adb['mapper']['bindElementToMarker'](_0x40ca9a,_0x364ab8['markerName']);}_0x323778||_0x5f3407||!_0x134459||_0x1395d6(_0x134459);};}class mt extends _0x1cd17f{constructor(_0xca8245){super(_0xca8245);const _0x1662da=_0xca8245['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1662da,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1662da,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x338ecd=this['editor'],_0x2e43f7=_0x338ecd['plugins']['get'](m),_0x5f554b=_0x2e43f7['isReady']?_0x2e43f7['diff']['newRevisionId']:null;_0x338ecd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5f554b);}['refresh'](){const {isReady:_0x2ef9a0,isEnabled:_0xc3757e,repository:_0x523cda,diff:_0x71f78f}=this['editor']['plugins']['get'](m),_0x227d1e=_0x71f78f&&_0x523cda['getLaterVisibleRevision'](_0x71f78f['newRevisionId']);this['isEnabled']=_0x2ef9a0&&_0xc3757e&&Boolean(_0x227d1e);}}class wt extends _0x1cd17f{['_step'];constructor(_0x792a04,{direction:_0xedcb33}){super(_0x792a04);const _0x20aa0=_0x792a04['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0xedcb33?0x1:-0x1,this['listenTo'](_0x20aa0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20aa0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x20aa0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e3e6d=this['editor'],_0x43656a=_0x4e3e6d['plugins']['get'](m),{isNavigationMode:_0x53df24,currentChangeNumber:_0x33bb3f}=_0x43656a;let _0x7d8c61;if(_0x43656a['activeChange']=_0x53df24?_0x43656a['diff']['changes']['get'](_0x33bb3f+this['_step']):_0x43656a['diff']['changes']['first'],_0x43656a['activeChange']['data']['isOnRoot'])_0x7d8c61=_0x4e3e6d['editing']['view']['getDomRoot'](_0x43656a['activeChange']['rootName']);else{const _0xba7624=_0x4e3e6d['model']['markers']['get']('revision:'+_0x43656a['activeChange']['id']);_0x7d8c61=_0x563781(_0x4e3e6d['editing'],_0xba7624);}_0x30f821({'target':_0x7d8c61,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3e0b63,currentChangeNumber:_0x1211fc,numberOfChanges:_0x5e7771,isReady:_0x328c58,isEnabled:_0x31dc4b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x31dc4b&&_0x328c58&&_0x5e7771)&&(!_0x3e0b63||(0x1===this['_step']?_0x1211fc<_0x5e7771-0x1:_0x1211fc>0x0));}}class di extends ts{constructor(_0x3f4d43){super(_0x3f4d43);const _0xbb7a45=this['bindTemplate'],_0x1cb16f=new te(_0x3f4d43),_0x4661dc=new te(_0x3f4d43);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',(_0x51da0e,_0x5dea4c)=>_0x51da0e&&_0x5dea4c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xd854d,_0x3a165d,_0x44af00,_0x4971cc)=>{if(!_0xd854d)return g(_0x3f4d43,'Loading...');if(!_0x44af00)return g(_0x3f4d43,'No\x20changes');const _0x15b39e=g(_0x3f4d43,'NUMBER_OF_CHANGES',_0x44af00);return _0x4971cc?g(_0x3f4d43,'X_OF_Y_CHANGES',[_0x3a165d+0x1,_0x44af00]):_0x15b39e;}),_0x1cb16f['set']({'label':g(_0x3f4d43,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x338ca2}),_0x4661dc['set']({'label':g(_0x3f4d43,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1edfec}),_0x1cb16f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4661dc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1cb16f['on']('execute',()=>this['fire']('execute','backward')),_0x4661dc['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',_0xbb7a45['if']('_isStatusLabelVisible','ck-hidden',_0x1f1f36=>!_0x1f1f36)]},'children':[{'text':_0xbb7a45['to']('isNavigationMode',_0x3a7a51=>_0x3a7a51?g(_0x3f4d43,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3f4d43,'Total')+':\x20')}]},{'text':_0xbb7a45['to']('_statusText')}]},new _0x3f634c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1cb16f,_0x4661dc]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x501960{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b08ea=this['editor']['editing']['view'];_0x1b08ea['change'](_0x3cd4c1=>{for(const _0x490055 of _0x1b08ea['document']['roots'])_0x3cd4c1['addClass'](le,_0x490055);});}['hide'](){const _0x254aaa=this['editor']['editing']['view'];_0x254aaa['change'](_0x12d17b=>{for(const _0x57fdbd of _0x254aaa['document']['roots'])_0x12d17b['removeClass'](le,_0x57fdbd);});}}class R extends _0x501960{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x3a688f=this['editor'],_0x530d3f=_0x3a688f['plugins']['get'](m),_0x7fd56c=_0x3a688f['plugins']['get'](de);_0x3a688f['ui']['componentFactory']['add']('exitToEditing',_0x271394=>{const _0x51755b=new te(_0x271394);return _0x51755b['set']({'label':g(_0x271394,'Back\x20to\x20editing'),'icon':_0x24c8de,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x51755b,'execute',()=>{_0x3a688f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x51755b;}),_0x3a688f['ui']['componentFactory']['add']('restoreRevision',_0x68ac12=>{const _0x3e2f16=new te(_0x68ac12);return _0x3e2f16['set']({'label':g(_0x68ac12,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3e2f16['bind']('isEnabled')['to'](_0x3a688f['commands']['get']('restoreRevision')),this['listenTo'](_0x3e2f16,'execute',()=>_0x3a688f['execute']('restoreRevision')),_0x3e2f16;}),_0x3a688f['ui']['componentFactory']['add']('changesNavigation',_0x4461b4=>{const _0x4bffa5=new di(_0x4461b4),_0x1db544=_0x3a688f['commands']['get']('showPreviousChange'),_0x552c79=_0x3a688f['commands']['get']('showNextChange');return _0x4bffa5['bind']('isBackwardNavigationEnabled')['to'](_0x1db544,'isEnabled'),_0x4bffa5['bind']('isForwardNavigationEnabled')['to'](_0x552c79,'isEnabled'),_0x4bffa5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x530d3f),this['listenTo'](_0x4bffa5,'execute',(_0x26a0e3,_0x11996d)=>{_0x3a688f['execute']('forward'===_0x11996d?'showNextChange':'showPreviousChange');}),_0x4bffa5;}),_0x7fd56c['show'](),_0x530d3f['on']('change:isReady',(_0x5f29c6,_0x3757bd,_0x278401)=>{_0x278401?_0x7fd56c['hide']():_0x7fd56c['show']();});}}class at extends _0x5b135e{['_resizeObserver']=null;constructor(_0x3155be,_0x286e38){super(_0x3155be,_0x286e38);const _0x338a9f=this['bindTemplate'];this['set']({'label':g(_0x3155be,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3155be,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x338a9f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x37975f=this['fieldView']['element'];this['_tooltipString']=_0x37975f['scrollWidth']>_0x37975f['clientWidth']&&_0x37975f['value']||'';}}class si extends ts{constructor(_0x2c3f2a,_0x53c583,_0x51eee7){super(_0x2c3f2a);const _0x5b23ab=new _0x4ceb1c();_0x5b23ab['set']({'content':_0x5481c3,'viewBox':'0\x200\x2011\x2010'});const _0x3b6e4b=['ck','ck-revision-history-sidebar__revision-author'];_0x51eee7&&_0x3b6e4b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x13d5b8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2c3f2a,_0x51eee7?'Revision\x20creator':'Revision\x20author')},'children':[_0x5b23ab,_0x53c583['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b6e4b},'children':_0x13d5b8});}}function oi(_0xf9b4b0,_0x5013cf){const _0x5f5cc1=_0xf9b4b0['bindTemplate'],_0x435306=_0xf9b4b0['locale'],_0x3abb05=_0x26e46b(_0x435306);_0x3abb05['panelPosition']='sw';const _0x111507=function(_0x2df39e,_0x1edf51){const _0x50870c=function(_0x1615d3,_0x1e695c){const _0x2b8669=_0x1615d3['locale'],_0x337f8c={'Compare\x20against\x20selected':g(_0x2b8669,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2b8669,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2b8669,'Restore\x20this\x20revision')};return _0x1e695c['map'](_0x56d48e=>{const _0x25a359=_0x337f8c[_0x56d48e['name']];return _0x25a359&&_0x25a359!==_0x56d48e['name']&&(_0x56d48e['name']=_0x25a359),_0x56d48e;});}(_0x2df39e,_0x1edf51),_0x209d7c=new _0x20ed9a();for(const _0x1b1e7f of _0x50870c){const _0x15f69e={'type':'button','model':new to({'label':_0x1b1e7f['name'],'class':_0x1b1e7f['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b1e7f['action']})};_0x15f69e['model']['bind']('isEnabled')['to'](_0x2df39e,'isActionsDropdownOpen',_0x3078a8=>'function'!=typeof _0x1b1e7f['isEnabled']||(!_0x3078a8||_0x1b1e7f['isEnabled'](_0x2df39e))),_0x209d7c['add'](_0x15f69e);}return _0x209d7c;}(_0xf9b4b0,_0x5013cf);return _0xf9b4b0['bind']('isActionsDropdownOpen')['to'](_0x3abb05,'isOpen'),_0x3abb05['buttonView']['set']({'label':g(_0x435306,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41c7a5}),_0x3abb05['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5f5cc1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5f5cc1['to'](_0x4ca3d0=>_0x4ca3d0['stopPropagation']())}}),_0x3abb05['on']('execute',_0x42b0ec=>{_0xf9b4b0['isReady']&&'function'==typeof _0x42b0ec['source']['_action']&&_0x42b0ec['source']['_action'](_0xf9b4b0);}),_0x5c8db3(_0x3abb05,_0x111507,{'role':'menu'}),_0x3abb05['listenTo'](_0xf9b4b0,'change:isActionsDropdownOpen',(_0x1d48e2,_0x14602f,_0x54f0b6)=>{if(_0x54f0b6)for(const _0x3285b3 of _0x3abb05['listView']['items']){const _0x53717a=_0x3285b3['children']['first'],_0x1ef72f=_0x5013cf['find'](_0x2ba5fd=>_0x2ba5fd['action']===_0x53717a['_action'])['isVisible'];_0x3285b3['isVisible']=void 0x0===_0x1ef72f||_0x1ef72f(_0xf9b4b0);}}),_0x3abb05;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x34a06b,_0x360477,_0x50746c,_0x69957){super(_0x34a06b);const _0x2a7c18=this['bindTemplate'],_0x23101c=function(_0x788e6c,_0xf4d869){const _0x1a3a04=Array['from'](_0xf4d869['authors'])['filter'](_0x1cda90=>_0x1cda90!=_0xf4d869['creator']);return _0xf4d869['creator']&&_0x1a3a04['unshift'](_0xf4d869['creator']),_0x1a3a04['map'](_0x47caa6=>new si(_0x788e6c,_0x47caa6,_0x47caa6==_0xf4d869['creator']));}(_0x34a06b,_0x360477);this['id']=_0x360477['id'],this['_revision']=_0x360477,this['_requireRevisionName']=_0x69957,this['bind']('name','createdAt')['to'](_0x360477),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x587350=>{return _0xa34a2b=_0x34a06b['uiLanguage'],(_0x8dc060=_0x587350)['toLocaleDateString'](_0xa34a2b,{'month':'long','day':'numeric'})+',\x20'+_0x8dc060['toLocaleTimeString'](_0xa34a2b,{'hour':'numeric','minute':'numeric'});var _0xa34a2b,_0x8dc060;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x34a06b,_0x34358c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a7e9f=>_0x2a7e9f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x20870c,_0x3d04e0)=>_0x20870c&&_0x3d04e0),this['revisionActionsView']=_0x50746c&&_0x50746c['length']?oi(this,_0x50746c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2a7c18['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a7c18['if']('isEnabled','ck-disabled',_0x13545c=>!_0x13545c),_0x2a7c18['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2a7c18['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2a7c18['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':_0x2a7c18['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':_0x23101c}]},this['revisionActionsView']],'on':{'click':_0x2a7c18['to'](_0x4547d7=>{_0x4547d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x399bfa=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x399bfa,'change',()=>{this['_requireRevisionName']&&!_0x399bfa['value']||this['fire']('setName',{'id':this['id'],'name':_0x399bfa['value']}),_0x399bfa['value']||(_0x399bfa['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(_0x161c7e,_0x55478e){const _0x5c6f04=_0x24252f['fromJSDate'](_0x161c7e)['setLocale'](_0x55478e),_0x442c2d=_0x24252f['local'](),_0x31cf33=_0x442c2d['minus']({'days':0x1})['startOf']('day');let _0x1f7237,_0xcd04db;return _0x5c6f04['hasSame'](_0x442c2d,'day')?(_0x1f7237=_0x5c6f04['startOf']('day')['toJSDate'](),_0xcd04db=_0x5c6f04['toRelativeCalendar']()):_0x5c6f04['hasSame'](_0x31cf33,'day')?(_0x1f7237=_0x31cf33['toJSDate'](),_0xcd04db=_0x5c6f04['toRelativeCalendar']()):_0x5c6f04['hasSame'](_0x442c2d,'week')?(_0x1f7237=_0x5c6f04['startOf']('week')['toJSDate'](),_0xcd04db=_0x5c6f04['weekdayLong']||''):_0x5c6f04['hasSame'](_0x442c2d,'year')?(_0x1f7237=_0x5c6f04['startOf']('month')['toJSDate'](),_0xcd04db=_0x5c6f04['monthLong']||''):(_0x1f7237=_0x5c6f04['startOf']('year')['toJSDate'](),_0xcd04db=String(_0x5c6f04['year'])),{'startDate':_0x1f7237,'localizedPeriodName':_0xcd04db};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x27b60c,_0x5a7e76,_0x38430a,_0x57cb4b){super(_0x27b60c);const _0x1d6004=vi(_0x5a7e76,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a7e76,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x38430a,this['_requireRevisionName']=_0x57cb4b,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':_0x1d6004}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5ab544){const _0x176a26=new hi(this['locale'],_0x5ab544,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x176a26);}['removeRevision'](_0x1078ff){const _0x46e9fd=this['revisionViews']['find'](_0x30af1e=>_0x30af1e['id']===_0x1078ff['id']);this['revisionViews']['remove'](_0x46e9fd);}}class as extends ts{constructor(_0x1dc613){super(_0x1dc613);const _0x3c9db0=new _0x4ceb1c();_0x3c9db0['content']=_0x25fa61,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3c9db0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x1dc613,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33362d,_0x15f344,_0x29c7e0,_0x2efaaf){super(_0x33362d);const _0x8e73cf=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x15f344,this['_revisionActions']=_0x29c7e0,this['_requireRevisionName']=_0x2efaaf,this['on']('select',(_0x12b1ae,_0x18eb03)=>{this['fire']('revisionSelected',_0x18eb03);}),this['on']('setName',(_0x35013b,_0x2cca19)=>{this['fire']('revisionSetName',_0x2cca19);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x33362d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x8e73cf['if']('isEnabled','ck-disabled',_0x166657=>!_0x166657)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x551a89 of this['_revisions'])this['_addRevision'](_0x551a89);this['_revisions']['on']('add',(_0x5ed9bb,_0x1ee518)=>{this['_addRevision'](_0x1ee518);}),this['_revisions']['on']('remove',(_0x36e86a,_0x5e9de2)=>{this['_removeRevision'](_0x5e9de2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1af7eb=>_0x1af7eb['revisionViews']['map'](_0x24215c=>_0x24215c))['flat']();}['selectRevision'](_0x291639){for(const _0x110e08 of this['revisionViews'])_0x291639&&_0x291639['id']===_0x110e08['id']?_0x110e08['select']():_0x110e08['deselect']();}['highlightRevisions'](_0x3fe985){for(const _0x36a8bc of this['revisionViews'])_0x3fe985['some'](({id:_0x1be1b7})=>_0x1be1b7===_0x36a8bc['id'])?_0x36a8bc['highlight']():_0x36a8bc['unhighlight']();}['_addRevision'](_0x3ec6ea){const _0x597696=vi(_0x3ec6ea['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x349179=this['timePeriodViews']['get'](0x0);_0x349179&&_0x349179['startDate']['getTime']()===_0x597696['getTime']()||(_0x349179=new mi(this['locale'],_0x597696,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x349179)),_0x349179['addRevision'](_0x3ec6ea);}['_removeRevision'](_0xc66cf1){const _0x187a2d=vi(_0xc66cf1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x187a2d)['removeRevision'](_0xc66cf1);}['_getTimePeriodViewByStartDate'](_0x3da96e){return this['timePeriodViews']['find'](_0x1122c0=>_0x1122c0['startDate']['getTime']()===_0x3da96e['getTime']());}}class d extends _0x501960{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x54af36(_0x152331){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x29293d,_0x54813b){super(_0x54813b),this['sourceElement']=_0x29293d,this['model']['document']['createRoot']();const _0x41ffbd=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x41ffbd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x161db2,_0x49b0a6){const _0x502153=new this(_0x161db2,_0x49b0a6);return await _0x502153['initPlugins'](),await _0x502153['ui']['init'](_0x161db2),await _0x502153['data']['init'](_0x502153['config']['get']('initialData')||''),_0x502153['fire']('ready'),_0x502153;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x432e21{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419346){function _0x494881(_0x2c8d98){return _0x2c8d98['map'](_0x410310=>String['fromCharCode'](_0x410310))['join']('');}super(_0x419346),this['result']='end',_0x419346[_0x494881([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494881([0x76,0x69,0x65,0x77])][_0x494881([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x494881([0x61,0x75,0x74,0x6f]),_0x419346[_0x494881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x494881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x494881([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x494881([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x494881([0x6f,0x6b])});}}class k extends _0x432e21{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x46ed03){if(super(_0x46ed03),!this['editor']['config']['get']('revisionHistory'))throw new _0x585f88('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x520228=>this['_showRevisionViewer']({..._0x520228,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x989ae3=>this['_closeRevisionViewer'](_0x989ae3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4d3396=>this['_restoreRevision'](_0x4d3396)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4ea281){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4ea281;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2be9da){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2be9da);}['getRevision'](_0x541c1c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x541c1c);}['getRevisions'](_0x3f1a1f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f1a1f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x37d712=this['editor'],_0x4a09b7=_0x34620a(_0x37d712,p),_0x3d918e=_0x37d712['plugins']['get']('RevisionTracker'),_0x566650=_0x37d712['plugins']['get']('Users')['users'];return _0x4a09b7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a09b7['lazyRoots'],(_0x4a09b7['plugins']['push'](_t,m,R,class extends _0x432e21{static get['requires'](){return[m,'Users'];}['init'](){const _0x24e9a1=this['editor']['plugins']['get']('Users');for(const _0x110e40 of _0x566650)_0x110e40['isAnonymous']||_0x24e9a1['getUser'](_0x110e40['id'])||_0x24e9a1['addUser'](_0x110e40);const _0x2d01f3=_0x3d918e['repository']['getRevisions']();let _0x26fd19=null;const _0x1a4046=this['editor']['plugins']['get']('RevisionViewer');_0x1a4046['adapter']=_0x3d918e['adapter'],_0x1a4046['bind']('isEnabled')['to'](_0x3d918e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x37d712,'isReadOnly',_0x46f59b=>!_0x46f59b);for(const _0x47cfd5 of _0x2d01f3){const _0xdbc674=null===_0x47cfd5['creator'];if(_0xdbc674&&_0x47cfd5['toVersion']===_0x47cfd5['fromVersion'])continue;const _0x42d551=_0x47cfd5['toJSON']();_0x1a4046['addRevisionData'](_0x42d551,(_0x5a91e4,_0x267b53,_0x36d7f7)=>{if(_0xdbc674){if(_0x26fd19)_0x26fd19['_update'](_0x5a91e4,_0x267b53);else{if(!_0x267b53){const _0x99c3f6=_0x36d7f7['toJSON']();_0x99c3f6['id']=_0x3cce8a(),_0x3d918e['saveRevision'](_0x99c3f6,_0x36d7f7['toVersion'])['then'](_0x4fe373=>{_0x26fd19=_0x4fe373;});}}}else _0x47cfd5['_update'](_0x5a91e4,_0x267b53);});}}},d),_0x4a09b7);}['_enhanceShowRevisionViewerCallback'](){const _0x44b877=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3d5cfb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3a423c=this['editor']['plugins']['get']('Autosave');await _0x3a423c['save']();}else await _0x3d5cfb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x17bd0b=this['editor']['plugins']['get']('Dialog');_0x17bd0b['isOpen']&&_0x17bd0b['hide']();}const _0x4e3c73=this['_getRevisionViewerEditorConfig']();return _0x44b877(_0x4e3c73)['then'](_0x50cd89=>{return(this['_viewerEditor']=_0x50cd89,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x50cd89);})['catch'](_0x135984=>(console['error'](_0x135984),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x33d2fd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x33d2fd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x47f9e3=this['editor']['plugins']['get']('Annotations');_0x47f9e3['refreshVisibility'](),_0x47f9e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5af98b){const _0x5a163d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x288a72=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8e7d2e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x8e7d2e,_0x5af98b)['then'](_0x4a9579=>(_0x288a72['style']['display']='block',_0x5a163d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4a9579));}['_closeRevisionViewer'](_0x36fb0b){const _0x43fd5b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x43fd5b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x36fb0b['destroy']();}async['_restoreRevision'](_0x54da48){const _0x382ec0=this['editor'],_0x24a318=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xaf93cf=_0x382ec0['plugins']['get']('RevisionTracker'),_0x99130e=_0x382ec0['plugins']['get']('RevisionHistoryUtils'),_0x1ab978=_0x24a318['repository']['getRevision'](_0x54da48);let _0x3b4992,_0x4cfb5d,_0x5756e5;try{await _0x99130e['loadRevisionData'](_0x1ab978,this['adapter']),_0x3b4992=_0x99130e['getRevisionDocumentData'](_0x1ab978),_0x4cfb5d=_0x99130e['getRevisionRootsAttributes'](_0x1ab978);}catch(_0x27e456){return void console['error'](_0x27e456);}_0x382ec0['model']['change'](_0x2fd3e8=>{for(const _0x979094 of Array['from'](_0x382ec0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2fd3e8['removeMarker'](_0x979094);}),_0x24a318['isReady']=!0x1,_0x382ec0['model']['enqueueChange'](_0x16b76e=>{_0x16b76e['setSelection'](null),_0x16b76e['removeSelectionAttribute'](_0x382ec0['model']['document']['selection']['getAttributeKeys']());const _0x31ab94=Object['keys'](_0x3b4992);for(const _0x445fd6 of _0x382ec0['model']['document']['roots'])'$graveyard'!=_0x445fd6['rootName']&&_0x445fd6['isAttached']()&&!_0x31ab94['includes'](_0x445fd6['rootName'])&&_0x16b76e['detachRoot'](_0x445fd6);for(const _0x2997be of _0x31ab94){let _0x542f3e=_0x382ec0['model']['document']['getRoot'](_0x2997be);_0x542f3e&&_0x542f3e['isAttached']()||(_0x542f3e=_0x16b76e['addRoot'](_0x2997be));const _0x54bfe3=_0x4cfb5d[_0x2997be],_0x2273d5=Object['keys'](_0x54bfe3),_0x4394ce=_0x3b4992[_0x2997be];for(const _0x1c34e9 of _0x542f3e['getAttributeKeys']())_0x2273d5['includes'](_0x1c34e9)||_0x16b76e['removeAttribute'](_0x1c34e9,_0x542f3e);for(const _0x5ddbee of _0x2273d5)_0x16b76e['setAttribute'](_0x5ddbee,_0x4cfb5d[_0x2997be][_0x5ddbee],_0x542f3e);_0x16b76e['remove'](_0x16b76e['createRangeIn'](_0x542f3e)),_0x16b76e['insert'](_0x382ec0['data']['parse'](_0x4394ce,_0x542f3e),_0x542f3e,0x0);}});const _0x49841e=g(_0x382ec0['locale'],'Restored');if(_0x1ab978['name'])_0x5756e5=-0x1==_0x1ab978['name']['indexOf'](_0x49841e)?_0x49841e+':\x20'+_0x1ab978['name']:_0x1ab978['name'];else _0x5756e5=_0x49841e+':\x20'+(_0x1ab978['createdAt']['toLocaleDateString'](_0x382ec0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1ab978['createdAt']['toLocaleTimeString'](_0x382ec0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xaf93cf['saveRevision']({'name':_0x5756e5}),_0x24a318['isReady']=!0x0,_0x382ec0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2d6591){super(_0x2d6591),this['_revisionViewer']=_0x2d6591['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x371d44=this['_revisionsRepository']['_revisions'],_0x4de670=this['_createRevisionActions'](),_0x21cb69=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x371d44,_0x4de670,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',(_0x5cbcd4,_0x2e4280)=>{_0x2e4280['revisionViews']['on']('add',(_0x22e81c,_0xca0381)=>{_0xca0381['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)),_0x21cb69['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5b1da9=this['_revisionsRepository']['getRevision'](0x0);if(_0x5b1da9){const _0x33f29e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b1da9['id']);this['_revisionViewer']['compare'](_0x5b1da9,_0x33f29e);}}['_handleRevisionSelected'](_0x430859,_0x3032ab){const _0x768272=this['_revisionsRepository']['getRevision'](_0x3032ab['id']),_0x579fb6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x768272['id']);this['_revisionViewer']['compare'](_0x768272,_0x579fb6);}['_handleRevisionSetName'](_0x41337c,_0x4cc59a){this['_revisionsRepository']['getRevision'](_0x4cc59a['id'])['setName'](_0x4cc59a['name']);}['_handleDiffChange'](_0x352740,_0x27b197,_0x1768f9){const _0x403db1=this['_revisionsRepository']['getRevisionsInDiff'](_0x1768f9);_0x403db1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x403db1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x403db1[0x0]));}['_createRevisionActions'](){const _0x55b651=this['editor'],_0x236fa4=d['availableRevisionActions'],_0x31e2ed=_0x55b651['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x31e2ed['length'])return _0x31e2ed['map'](_0x1b1702=>{const _0x5da39f='string'==typeof _0x1b1702?Object['assign']({},_0x236fa4[_0x1b1702]):_0x1b1702;return _0x5da39f['action']=_0x5da39f['action']['bind'](this,_0x55b651),_0x5da39f['isVisible']&&(_0x5da39f['isVisible']=_0x5da39f['isVisible']['bind'](this,_0x55b651)),_0x5da39f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2136c1},_0x20b9e1)=>{const _0x2e3b74=_0x2136c1['get'](m),_0x1b8d74=_0x2e3b74['repository'];let _0x3c9b94=_0x2e3b74['diff']['newRevisionId'],_0x58d537=_0x20b9e1['id'];_0x1b8d74['getIndex'](_0x3c9b94)>_0x1b8d74['getIndex'](_0x58d537)&&([_0x3c9b94,_0x58d537]=[_0x58d537,_0x3c9b94]),_0x2e3b74['compare'](_0x3c9b94,_0x58d537);},'isVisible':({plugins:_0x37b76d},_0x3c166b)=>{const _0x118d60=_0x37b76d['get'](m);return!(_0x118d60['repository']['getRevisionsInDiff'](_0x118d60['diff'])['length']>0x2)&&!_0x3c166b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x112785,{id:_0x133099})=>{_0x112785['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x133099);},'isVisible':({plugins:_0x596de3},_0x32722c)=>!!_0x596de3['get'](m)['repository']['getLaterVisibleRevision'](_0x32722c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2df9f1},{id:_0x5e0b5b,revisionNameView:_0x2d86e7})=>{const _0x195111=_0x2df9f1['get'](m),_0x2cb41e=_0x195111['repository']['getEarlierVisibleRevision'](_0x5e0b5b);_0x195111['compare'](_0x5e0b5b,_0x2cb41e),_0x2d86e7['focus'](),_0x2d86e7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3a1124,_0x44387a){super(_0x3a1124),this['_view']=_0x44387a,this['_toolbarConfig']=et(_0x3a1124['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4e6106){const _0xa34923=this['editor'],_0x4c7057=this['view'],_0x1b3f00=_0xa34923['editing']['view'],_0x2e3073=_0x4c7057['editable'],_0x4d9147=_0x1b3f00['document']['getRoot']();_0x2e3073['name']=_0x4d9147['rootName'],_0x4c7057['render']();const _0x1058d6=_0x2e3073['element'];this['setEditableElement'](_0x2e3073['name'],_0x1058d6),_0x4c7057['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1b3f00['attachDomRoot'](_0x1058d6),this['_elementReplacer']['replace'](_0x4e6106,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x50d4fb=this['view'],_0x100ac1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x100ac1['detachDomRoot'](_0x50d4fb['editable']['name']),_0x50d4fb['destroy']();}['_initToolbar'](){const _0x49bd15=this['view'];_0x49bd15['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x49bd15['stickyPanel']['limiterElement']=_0x49bd15['element'],_0x49bd15['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e4571})=>_0x1e4571),_0x49bd15['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x49bd15['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x35f899,_0x5bbb5e,_0x12ced8={}){super(_0x35f899),this['stickyPanel']=new ht(_0x35f899),this['toolbar']=new dt(_0x35f899,{'shouldGroupWhenFull':_0x12ced8['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x35f899,_0x5bbb5e);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x3625b4(_0x5b2865){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xca1b3b,_0x7f7182){super(_0x7f7182),this['sourceElement']=_0xca1b3b,this['model']['document']['createRoot']();const _0xdb28c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0xdb28c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1bd313,_0x194d8c){const _0x5d47d4=new this(_0x1bd313,_0x194d8c);return await _0x5d47d4['initPlugins'](),await _0x5d47d4['ui']['init'](_0x1bd313),await _0x5d47d4['data']['init'](_0x5d47d4['config']['get']('initialData')||''),_0x5d47d4['fire']('ready'),_0x5d47d4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x501960{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e877c){function _0x387558(_0xdfdc31){return _0xdfdc31['map'](_0x1fd22d=>String['fromCharCode'](_0x1fd22d))['join']('');}super(_0x1e877c),this['result']='end',_0x1e877c[_0x387558([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x387558([0x76,0x69,0x65,0x77])][_0x387558([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x387558([0x61,0x75,0x74,0x6f]),_0x1e877c[_0x387558([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x387558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x387558([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x387558([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x387558([0x6f,0x6b])});}}class k extends _0x501960{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xa901f6){if(super(_0xa901f6),!this['editor']['config']['get']('revisionHistory'))throw new _0x5a71fc('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1c0dcd=>this['_showRevisionViewer']({..._0x1c0dcd,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xf9eabc=>this['_closeRevisionViewer'](_0xf9eabc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x38da39=>this['_restoreRevision'](_0x38da39)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2a4252){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2a4252;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x209f4c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x209f4c);}['getRevision'](_0x4cbe30){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4cbe30);}['getRevisions'](_0x3abb19){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3abb19||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2366ce=this['editor'],_0x490450=_0x366bd7(_0x2366ce,p),_0x12df00=_0x2366ce['plugins']['get']('RevisionTracker'),_0x24841b=_0x2366ce['plugins']['get']('Users')['users'];return _0x490450['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x490450['lazyRoots'],(_0x490450['plugins']['push'](_t,m,R,class extends _0x501960{static get['requires'](){return[m,'Users'];}['init'](){const _0x314d5a=this['editor']['plugins']['get']('Users');for(const _0x41abd0 of _0x24841b)_0x41abd0['isAnonymous']||_0x314d5a['getUser'](_0x41abd0['id'])||_0x314d5a['addUser'](_0x41abd0);const _0x3cf0da=_0x12df00['repository']['getRevisions']();let _0x46dac4=null;const _0x478649=this['editor']['plugins']['get']('RevisionViewer');_0x478649['adapter']=_0x12df00['adapter'],_0x478649['bind']('isEnabled')['to'](_0x12df00),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2366ce,'isReadOnly',_0x1249ee=>!_0x1249ee);for(const _0x1960f3 of _0x3cf0da){const _0x543e70=null===_0x1960f3['creator'];if(_0x543e70&&_0x1960f3['toVersion']===_0x1960f3['fromVersion'])continue;const _0x39d0ea=_0x1960f3['toJSON']();_0x478649['addRevisionData'](_0x39d0ea,(_0x36f5c0,_0x5bf8ca,_0x565a77)=>{if(_0x543e70){if(_0x46dac4)_0x46dac4['_update'](_0x36f5c0,_0x5bf8ca);else{if(!_0x5bf8ca){const _0x1208f0=_0x565a77['toJSON']();_0x1208f0['id']=_0x1d6ae4(),_0x12df00['saveRevision'](_0x1208f0,_0x565a77['toVersion'])['then'](_0x2d8b34=>{_0x46dac4=_0x2d8b34;});}}}else _0x1960f3['_update'](_0x36f5c0,_0x5bf8ca);});}}},d),_0x490450);}['_enhanceShowRevisionViewerCallback'](){const _0x1cd4e4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x154d60=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x436a54=this['editor']['plugins']['get']('Autosave');await _0x436a54['save']();}else await _0x154d60['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x42df8b=this['editor']['plugins']['get']('Dialog');_0x42df8b['isOpen']&&_0x42df8b['hide']();}const _0x55f9d4=this['_getRevisionViewerEditorConfig']();return _0x1cd4e4(_0x55f9d4)['then'](_0x4fb555=>{return(this['_viewerEditor']=_0x4fb555,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4fb555);})['catch'](_0x37bfc8=>(console['error'](_0x37bfc8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xb4c8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xb4c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51fa8c=this['editor']['plugins']['get']('Annotations');_0x51fa8c['refreshVisibility'](),_0x51fa8c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5db45a){const _0x9924f9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4c77e8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x232953=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x232953,_0x5db45a)['then'](_0x586a1a=>(_0x4c77e8['style']['display']='block',_0x9924f9['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x586a1a));}['_closeRevisionViewer'](_0x3078d2){const _0x5aa75a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5aa75a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3078d2['destroy']();}async['_restoreRevision'](_0x4a77fa){const _0x47fcd8=this['editor'],_0x5db9a6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x52748c=_0x47fcd8['plugins']['get']('RevisionTracker'),_0x278d1b=_0x47fcd8['plugins']['get']('RevisionHistoryUtils'),_0x2f317f=_0x5db9a6['repository']['getRevision'](_0x4a77fa);let _0x5625a8,_0x56ccdc,_0xf3f7cc;try{await _0x278d1b['loadRevisionData'](_0x2f317f,this['adapter']),_0x5625a8=_0x278d1b['getRevisionDocumentData'](_0x2f317f),_0x56ccdc=_0x278d1b['getRevisionRootsAttributes'](_0x2f317f);}catch(_0x2bf8bb){return void console['error'](_0x2bf8bb);}_0x47fcd8['model']['change'](_0x5bdb69=>{for(const _0x5d809c of Array['from'](_0x47fcd8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5bdb69['removeMarker'](_0x5d809c);}),_0x5db9a6['isReady']=!0x1,_0x47fcd8['model']['enqueueChange'](_0x4d9ff9=>{_0x4d9ff9['setSelection'](null),_0x4d9ff9['removeSelectionAttribute'](_0x47fcd8['model']['document']['selection']['getAttributeKeys']());const _0x4cec1a=Object['keys'](_0x5625a8);for(const _0x40d123 of _0x47fcd8['model']['document']['roots'])'$graveyard'!=_0x40d123['rootName']&&_0x40d123['isAttached']()&&!_0x4cec1a['includes'](_0x40d123['rootName'])&&_0x4d9ff9['detachRoot'](_0x40d123);for(const _0x1bb9a0 of _0x4cec1a){let _0x5ae32d=_0x47fcd8['model']['document']['getRoot'](_0x1bb9a0);_0x5ae32d&&_0x5ae32d['isAttached']()||(_0x5ae32d=_0x4d9ff9['addRoot'](_0x1bb9a0));const _0x326418=_0x56ccdc[_0x1bb9a0],_0x4f8648=Object['keys'](_0x326418),_0x4f9004=_0x5625a8[_0x1bb9a0];for(const _0x425fb2 of _0x5ae32d['getAttributeKeys']())_0x4f8648['includes'](_0x425fb2)||_0x4d9ff9['removeAttribute'](_0x425fb2,_0x5ae32d);for(const _0xdaf5fa of _0x4f8648)_0x4d9ff9['setAttribute'](_0xdaf5fa,_0x56ccdc[_0x1bb9a0][_0xdaf5fa],_0x5ae32d);_0x4d9ff9['remove'](_0x4d9ff9['createRangeIn'](_0x5ae32d)),_0x4d9ff9['insert'](_0x47fcd8['data']['parse'](_0x4f9004,_0x5ae32d),_0x5ae32d,0x0);}});const _0x5a3cb8=g(_0x47fcd8['locale'],'Restored');if(_0x2f317f['name'])_0xf3f7cc=-0x1==_0x2f317f['name']['indexOf'](_0x5a3cb8)?_0x5a3cb8+':\x20'+_0x2f317f['name']:_0x2f317f['name'];else _0xf3f7cc=_0x5a3cb8+':\x20'+(_0x2f317f['createdAt']['toLocaleDateString'](_0x47fcd8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2f317f['createdAt']['toLocaleTimeString'](_0x47fcd8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x52748c['saveRevision']({'name':_0xf3f7cc}),_0x5db9a6['isReady']=!0x0,_0x47fcd8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|