@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250301.0 → 0.0.0-nightly-20250302.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 +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4fd89f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x9ebe99){super(),this['id']=_0x9ebe99['id']||_0x578618(),this['creator']=_0x9ebe99['creator']||null,this['authors']=_0x9ebe99['authors']||[],this['diffData']=_0x9ebe99['diffData']||null,this['toVersion']=_0x9ebe99['toVersion']||0x0,this['fromVersion']=_0x9ebe99['fromVersion']||0x0,this['set']('name',_0x9ebe99['name']||''),this['set']('createdAt',_0x9ebe99['createdAt']||new Date()),this['set']('attributes',_0x9ebe99['attributes']||{});}['setName'](_0x218950){this['_update']({'name':_0x218950});}['setAttribute'](_0x4b1463,_0x486f97){const _0x309d5e=_0x2124ff(this['attributes']);_0x345578(_0x309d5e,_0x4b1463,_0x486f97),this['_update']({'attributes':_0x309d5e});}['removeAttribute'](_0x3ccaae){const _0x9dca22=_0x2124ff(this['attributes']);_0x5e11f0(_0x9dca22,_0x3ccaae),this['_update']({'attributes':_0x9dca22});}['_update'](_0x54cb42,_0x480a48=!0x1){let _0x38504e=!0x1;const _0x1228e3={'id':this['id']},_0x5f1a24=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x59ada1 of _0x5f1a24){const _0x1c0eb5=_0x54cb42[_0x59ada1];void 0x0!==_0x1c0eb5&&_0x1c0eb5!==this[_0x59ada1]&&(this[_0x59ada1]=_0x1c0eb5,_0x1228e3[_0x59ada1]=_0x1c0eb5,_0x38504e=!0x0);}_0x38504e&&(_0x1228e3['authors']&&(_0x1228e3['authorsIds']=_0x1228e3['authors']['map'](_0x8bdaae=>_0x8bdaae['id']),delete _0x1228e3['authors']),this['fire']('_update',_0x1228e3,_0x480a48));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c9eab=>_0x3c9eab['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xa208af{['_revisions'];static get['requires'](){return[_0xe25c4c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b819e){super(_0x2b819e),this['_revisions']=new _0x161991();}['afterInit'](){!async function(_0x1bcba6){const _0x16ac95=_0x44860f([0x4d,0x35,0x44,0x76,0x64,0x6f,0x67,0x4e,0x47,0x5a,0x66,0x43,0x4b,0x57,0x37,0x30,0x36,0x77,0x4c,0x79,0x46,0x41,0x55,0x6b,0x53,0x6e,0x59,0x34,0x73,0x68,0x7a,0x65,0x50,0x6d,0x31,0x72,0x45,0x71,0x74,0x4f,0x48,0x62,0x58,0x52,0x39,0x49,0x61,0x32,0x69,0x56,0x33,0x70,0x6a,0x6c,0x42,0x51,0x38,0x4a,0x78,0x54,0x75,0x63]),_0x8842b9=0xeb829,_0xf82170=0x6155191,_0xc298dd=0x6123171^_0xf82170,_0x261a01=window[_0x44860f([0x44,0x61,0x74,0x65])][_0x44860f([0x6e,0x6f,0x77])](),_0x8e233c=_0x1bcba6[_0x44860f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cf7e8=new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508c9e=>{_0x8e233c[_0x44860f([0x6f,0x6e,0x63,0x65])](_0x44860f([0x72,0x65,0x61,0x64,0x79]),_0x508c9e);}),_0x222268={[_0x44860f([0x6b,0x74,0x79])]:_0x44860f([0x45,0x43]),[_0x44860f([0x75,0x73,0x65])]:_0x44860f([0x73,0x69,0x67]),[_0x44860f([0x63,0x72,0x76])]:_0x44860f([0x50,0x2d,0x32,0x35,0x36]),[_0x44860f([0x78])]:_0x44860f([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]),[_0x44860f([0x79])]:_0x44860f([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]),[_0x44860f([0x61,0x6c,0x67])]:_0x44860f([0x45,0x53,0x32,0x35,0x36])},_0x4e3b9e=_0x8e233c[_0x44860f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44860f([0x67,0x65,0x74])](_0x44860f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x328bb2(){let _0x28be92,_0x35e836=null,_0x7dd226=null;try{if(_0x4e3b9e==_0x44860f([0x47,0x50,0x4c]))return _0x44860f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28be92=_0x21c6dd(),!_0x28be92)return _0x44860f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28be92[_0x44860f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7dd226=_0x48bb2e(_0x28be92[_0x44860f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28be92[_0x44860f([0x6a,0x74,0x69])])),await _0x6b4835()?_0x5908a8()?_0x3ce254()?_0x44860f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b67c1()?(_0x28be92[_0x44860f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44860f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35e836=_0x31f62f(_0x44860f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28be92[_0x44860f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44860f([0x74,0x72,0x69,0x61,0x6c])&&(_0x35e836=_0x31f62f(_0x44860f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f84d6()):_0x44860f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44860f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44860f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x263f5d){return _0x44860f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ce254(){const _0x230441=[_0x44860f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44860f([0x74,0x72,0x69,0x61,0x6c])][_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28be92[_0x44860f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x261a01/0x3e8:0xe10*_0xc298dd;return _0x28be92[_0x44860f([0x65,0x78,0x70])]<_0x230441;}function _0x5908a8(){const _0x20b69d=_0x28be92[_0x44860f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20b69d)return!0x1;if(_0x20b69d[_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44860f([0x2a])))return!0x0;if(_0x20b69d[_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44860f([0x52,0x48])))return!0x0;if(_0x20b69d[_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44860f([0x52,0x52,0x48]))){if(_0x303f77())return!0x0;if(_0x3b6f2c()||_0x3269dc())return!0x0;}return!0x1;}function _0x1b67c1(){const _0xe641c6=_0x28be92[_0x44860f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe641c6||0x0==_0xe641c6[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf452ca}=new URL(window[_0x44860f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe641c6[_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf452ca))return!0x0;const _0x1affff=_0xf452ca[_0x44860f([0x73,0x70,0x6c,0x69,0x74])](_0x44860f([0x2e]));return _0xe641c6[_0x44860f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf5154b=>_0xf5154b[_0x44860f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44860f([0x2a])))[_0x44860f([0x6d,0x61,0x70])](_0x12ff84=>_0x12ff84[_0x44860f([0x73,0x70,0x6c,0x69,0x74])](_0x44860f([0x2e])))[_0x44860f([0x73,0x6f,0x6d,0x65])](_0x33a8f1=>_0x1affff[_0x44860f([0x65,0x76,0x65,0x72,0x79])]((_0x369c8e,_0x3f05dd)=>_0x33a8f1[_0x3f05dd]===_0x369c8e||_0x33a8f1[_0x3f05dd]===_0x44860f([0x2a])));}function _0x3f84d6(){return _0x35e836&&_0x7dd226?new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f9fd0,_0x21da31)=>{_0x35e836[_0x44860f([0x74,0x68,0x65,0x6e])](_0x3f9fd0,_0x21da31),_0x7dd226[_0x44860f([0x74,0x68,0x65,0x6e])](_0x350624=>{_0x350624!=_0x44860f([0x56,0x61,0x6c,0x69,0x64])&&_0x3f9fd0(_0x350624);},_0x21da31);}):_0x35e836||_0x7dd226||_0x44860f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48bb2e(_0x164767,_0x26a7cb){return new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7d3833=>{if(_0x5a08a9())return _0x7d3833(_0x44860f([0x56,0x61,0x6c,0x69,0x64]));_0x307a93(),_0x8e233c[_0x44860f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44860f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x384354=!0x1;const _0x2efa49=_0x578618();function _0x5880eb(_0x5ae0a2){return!!_0x5ae0a2&&(typeof _0x5ae0a2===_0x44860f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ae0a2===_0x44860f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ae0a2[_0x44860f([0x74,0x68,0x65,0x6e])]===_0x44860f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ae0a2[_0x44860f([0x63,0x61,0x74,0x63,0x68])]===_0x44860f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58b498(_0x8b8eda){_0x501911(_0x8b8eda)[_0x44860f([0x74,0x68,0x65,0x6e])](_0x11a861=>{if(!_0x11a861||_0x11a861[_0x44860f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44860f([0x6f,0x6b]))return _0x44860f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31a8d5(_0x2addbd(_0x2efa49+_0x26a7cb))!=_0x11a861[_0x44860f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44860f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44860f([0x56,0x61,0x6c,0x69,0x64]);})[_0x44860f([0x74,0x68,0x65,0x6e])](_0x401285=>(_0x50e51b(),_0x401285),()=>{const _0x42494f=_0x2544d3();return null==_0x42494f?(_0x50e51b(),_0x44860f([0x56,0x61,0x6c,0x69,0x64])):_0x44860f(_0x261a01-_0x42494f>(0x2219d591^_0xf82170)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44860f([0x74,0x68,0x65,0x6e])](_0x7d3833)[_0x44860f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7d3833(_0x44860f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe1dce8=0x623bf11^_0xf82170;function _0x50e51b(){const _0x547ce9=_0x44860f([0x6c,0x6c,0x63,0x74,0x2d])+_0x31a8d5(_0x2addbd(_0x164767)),_0x1c03e6=_0x2e721e(_0x31a8d5(window[_0x44860f([0x4d,0x61,0x74,0x68])][_0x44860f([0x63,0x65,0x69,0x6c])](_0x261a01/_0xe1dce8)));window[_0x44860f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44860f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x547ce9,_0x1c03e6);}function _0x2544d3(){const _0x162e90=_0x44860f([0x6c,0x6c,0x63,0x74,0x2d])+_0x31a8d5(_0x2addbd(_0x164767)),_0x2c3e1c=window[_0x44860f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44860f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x162e90);return _0x2c3e1c?window[_0x44860f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e721e(_0x2c3e1c),0x10)*_0xe1dce8:null;}function _0x501911(_0x65bbd5){return new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27bfae,_0x164bce)=>{_0x65bbd5[_0x44860f([0x74,0x68,0x65,0x6e])](_0x27bfae,_0x164bce),window[_0x44860f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164bce,0x6148551^_0xf82170);});}}_0x8e233c[_0x44860f([0x6f,0x6e])](_0x44860f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26ca84,_0x2222c6)=>{if(_0x2222c6[0x0]!=_0x164767)return _0x7d3833(_0x44860f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2222c6[0x1]={..._0x2222c6[0x1],[_0x44860f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2efa49};},{[_0x44860f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44860f([0x68,0x69,0x67,0x68])}),_0x8e233c[_0x44860f([0x6f,0x6e])](_0x44860f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e039e=>{_0x5880eb(_0x2e039e[_0x44860f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x384354=!0x0,_0x58b498(_0x2e039e[_0x44860f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44860f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44860f([0x6c,0x6f,0x77])}),_0x1cf7e8[_0x44860f([0x74,0x68,0x65,0x6e])](()=>{_0x384354||_0x7d3833(_0x44860f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a08a9(){return _0x8e233c[_0x44860f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44860f([0x76,0x69,0x65,0x77])][_0x44860f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44860f([0x61,0x75,0x74,0x6f]);}function _0x307a93(){_0x8e233c[_0x44860f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44860f([0x76,0x69,0x65,0x77])][_0x44860f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44860f([0x61,0x75,0x74,0x6f]);}}function _0x31f62f(_0x3e640c){const _0x1471dc=[new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1370a4=>setTimeout(_0x1370a4,0x61c6f5d^_0xf82170)),_0x1cf7e8[_0x44860f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4154ce=>{const _0x142743=0x6155196^_0xf82170,_0x41d66a=_0x1bcba6[_0x44860f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1d69a4(){_0x41d66a[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x142743&&_0x4154ce();}_0x1d69a4(),_0x41d66a[_0x44860f([0x6f,0x6e])](_0x44860f([0x61,0x64,0x64]),_0x1d69a4);})),new window[(_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1356b6=>{function _0x3aed86(){for(const _0x231b18 in window)if(window[_0x44860f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x44860f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x231b18))&&window[_0x231b18]==_0x8842b9)return _0x1356b6();_0x8e233c[_0x44860f([0x73,0x74,0x61,0x74,0x65])]!=_0x44860f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x44860f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3aed86,0x6154219^_0xf82170);}_0x4e5d6c(_0x44860f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3aed86();})];return window[_0x44860f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44860f([0x72,0x61,0x63,0x65])](_0x1471dc)[_0x44860f([0x74,0x68,0x65,0x6e])](()=>_0x3e640c);}async function _0x18f0ef(){if(await _0x1cf7e8,_0x4e5d6c(_0x44860f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xb14ceb=_0x1bcba6[_0x44860f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16f281=_0x1bcba6[_0x44860f([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])](_0xb14ceb[_0x44860f([0x69,0x64])]),_0x279a20=_0xe66db4(_0x44860f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x279a20[_0x44860f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xb14ceb['id'],_0x16f281?_0x16f281['id']:null,!0x0),_0x279a20[_0x44860f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x44860f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x279a20[_0x44860f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x279a20[_0x44860f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4f5268,void(_0x279a20[_0x44860f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4f5268);}if(_0x4e5d6c(_0x44860f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xfddd0f=_0xe66db4(_0x44860f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xfddd0f[_0x44860f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x44860f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfddd0f[_0x44860f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfddd0f[_0x44860f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4f5268,_0xfddd0f[_0x44860f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4f5268;}_0x8e233c[_0x44860f([0x6d,0x6f,0x64,0x65,0x6c])][_0x44860f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5268,_0x8e233c[_0x44860f([0x6d,0x6f,0x64,0x65,0x6c])][_0x44860f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5268,_0x8e233c[_0x44860f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44860f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x303f77(){return _0x4e5d6c(_0x44860f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xe66db4(_0x44860f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44860f([0x73,0x74,0x61,0x74,0x65])]==_0x44860f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b6f2c(){return _0x4e5d6c(_0x44860f([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 _0x3269dc(){return _0x4e5d6c(_0x44860f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x555b8d(_0x1250c5){const _0x330393=_0x5340f2();_0x8e233c[_0x330393]=_0x44860f([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])+_0x1250c5,_0x1250c5[_0x44860f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x44860f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5340f2()]=_0x8842b9),_0x1250c5!=_0x44860f([0x56,0x61,0x6c,0x69,0x64])&&_0x18f0ef();}function _0x5340f2(){const _0x4b4910=window[_0x44860f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44860f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44860f([0x6e,0x6f,0x77])]())[_0x44860f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44860f([0x2e]),'');let _0x473be5=_0x44860f([0x4d]);for(let _0x3aac9c=0x0;_0x3aac9c<_0x4b4910[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3aac9c+=0x2){let _0x56f588=window[_0x44860f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4910[_0x44860f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aac9c,_0x3aac9c+0x2));_0x56f588>=_0x16ac95[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56f588-=_0x16ac95[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x473be5+=_0x16ac95[_0x56f588];}return _0x473be5;}function _0x21c6dd(){const _0x3ecece=_0x4e3b9e[_0x44860f([0x73,0x70,0x6c,0x69,0x74])](_0x44860f([0x2e]));if(0x3!=_0x3ecece[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12683f(_0x3ecece[0x1]);function _0x12683f(_0x1ce383){const _0x29fd6d=_0x5cd65a(_0x1ce383);return _0x29fd6d&&_0x5ef6cd()?_0x29fd6d:null;function _0x5ef6cd(){const _0x1f0524=_0x29fd6d[_0x44860f([0x6a,0x74,0x69])],_0x16ab13=window[_0x44860f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f0524[_0x44860f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f0524[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3520c1={..._0x29fd6d,[_0x44860f([0x6a,0x74,0x69])]:_0x1f0524[_0x44860f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f0524[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3520c1[_0x44860f([0x76,0x63])],_0x2addbd(_0x3520c1)==_0x16ab13;}}}async function _0x6b4835(){let _0x5ad5e5=!0x0;try{const _0x4de7db=_0x4e3b9e[_0x44860f([0x73,0x70,0x6c,0x69,0x74])](_0x44860f([0x2e])),[_0x59f2e0,_0x422be9,_0x453392]=_0x4de7db;return _0x59fe7d(_0x59f2e0),await _0x4ce63c(_0x59f2e0,_0x422be9,_0x453392),_0x5ad5e5;}catch(_0x4e4f3a){return!0x1;}function _0x59fe7d(_0x334406){const _0xfac5a5=_0x5cd65a(_0x334406);_0xfac5a5&&_0xfac5a5[_0x44860f([0x61,0x6c,0x67])]==_0x44860f([0x45,0x53,0x32,0x35,0x36])||(_0x5ad5e5=!0x1);}async function _0x4ce63c(_0x3498a5,_0x2fb10a,_0x22260b){const _0x4a2f7b=window[_0x44860f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44860f([0x66,0x72,0x6f,0x6d])](_0x41e919(_0x22260b),_0x5f0ce5=>_0x5f0ce5[_0x44860f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc369e7=new window[(_0x44860f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44860f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3498a5+_0x44860f([0x2e])+_0x2fb10a),_0x36be1f=window[_0x44860f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44860f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36be1f)return;const _0x5163f9=await _0x36be1f[_0x44860f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44860f([0x6a,0x77,0x6b]),_0x222268,{[_0x44860f([0x6e,0x61,0x6d,0x65])]:_0x44860f([0x45,0x43,0x44,0x53,0x41]),[_0x44860f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44860f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44860f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36be1f[_0x44860f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44860f([0x6e,0x61,0x6d,0x65])]:_0x44860f([0x45,0x43,0x44,0x53,0x41]),[_0x44860f([0x68,0x61,0x73,0x68])]:{[_0x44860f([0x6e,0x61,0x6d,0x65])]:_0x44860f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5163f9,_0x4a2f7b,_0xc369e7)||(_0x5ad5e5=!0x1);}}function _0x5cd65a(_0x8c4577){return _0x8c4577[_0x44860f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44860f([0x65,0x79]))?JSON[_0x44860f([0x70,0x61,0x72,0x73,0x65])](_0x41e919(_0x8c4577)):null;}function _0x41e919(_0x2e447d){return window[_0x44860f([0x61,0x74,0x6f,0x62])](_0x2e447d[_0x44860f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44860f([0x2b]))[_0x44860f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44860f([0x2f])));}function _0x2addbd(_0x1f8b76){let _0x597d6a=0x1505;function _0x42e98e(_0x47d9f2){for(let _0x53c16f=0x0;_0x53c16f<_0x47d9f2[_0x44860f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53c16f++){const _0x3f61f3=_0x47d9f2[_0x44860f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53c16f);_0x597d6a=(_0x597d6a<<0x5)+_0x597d6a+_0x3f61f3,_0x597d6a&=_0x597d6a;}}function _0x267ba6(_0x3e23f5){Array[_0x44860f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e23f5)?_0x3e23f5[_0x44860f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x267ba6):_0x3e23f5&&typeof _0x3e23f5==_0x44860f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44860f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e23f5)[_0x44860f([0x73,0x6f,0x72,0x74])]()[_0x44860f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c4a5c,_0x3aeba0])=>{_0x42e98e(_0x4c4a5c),_0x267ba6(_0x3aeba0);}):_0x42e98e(window[_0x44860f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e23f5));}return _0x267ba6(_0x1f8b76),_0x597d6a>>>0x0;}function _0x31a8d5(_0x6f7786){return _0x6f7786[_0x44860f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44860f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44860f([0x30]));}function _0x2e721e(_0x580295){return _0x580295[_0x44860f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44860f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44860f([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e5d6c(_0x5abe85){return _0x8e233c[_0x44860f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44860f([0x68,0x61,0x73])](_0x5abe85);}function _0xe66db4(_0x37e4b6){return _0x8e233c[_0x44860f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44860f([0x67,0x65,0x74])](_0x37e4b6);}function _0x4f5268(){}function _0x44860f(_0x2006bc){return _0x2006bc['map'](_0x3ba1bd=>String['fromCharCode'](_0x3ba1bd))['join']('');}_0x555b8d(await _0x328bb2());}(this);}['createRevision'](_0x552688){const _0x3d910c=this['editor']['plugins']['get']('Users');return new a({'id':_0x552688['id'],'name':_0x552688['name'],'creator':_0x552688['creatorId']?_0x3d910c['getUser'](_0x552688['creatorId']):null,'diffData':_0x552688['diffData']||_0x552688['data'],'authors':_0x552688['authorsIds']['map'](_0x3f6552=>_0x3d910c['getUser'](_0x3f6552)),'createdAt':new Date(_0x552688['createdAt']),'attributes':_0x552688['attributes'],'fromVersion':_0x552688['fromVersion'],'toVersion':_0x552688['toVersion']});}['addRevision'](_0x4f7c00,_0x56ea77=0x0){this['_revisions']['add'](_0x4f7c00,_0x56ea77);}['getRevision'](_0x3d188b){return this['_revisions']['get'](_0x3d188b);}['getRevisions'](_0x40bfcb={'toJSON':!0x1}){const _0x38bfe0=Array['from'](this['_revisions']);return _0x38bfe0['reverse'](),_0x40bfcb['toJSON']?_0x38bfe0['map'](_0x55364f=>_0x55364f['toJSON']()):_0x38bfe0;}['getIndex'](_0x13e65a){return this['_revisions']['getIndex'](_0x13e65a);}['getEarlierVisibleRevision'](_0x456fe5){const [,_0x4a5a92]=this['getRevisionsIterator'](_0x456fe5,{'direction':'earlier'});return _0x4a5a92;}['getLaterVisibleRevision'](_0x4f2947){const [,_0xd0f956]=this['getRevisionsIterator'](_0x4f2947,{'direction':'later'});return _0xd0f956;}['getRevisionsInDiff'](_0x4aa760){const _0x481147=[];for(const _0x3766c0 of this['getRevisionsIterator'](_0x4aa760['newRevisionId']))if(_0x481147['push'](_0x3766c0),_0x3766c0['id']===_0x4aa760['oldRevisionId'])break;return _0x481147;}*['getRevisionsIterator'](_0x553419,{direction:_0x26d2f6='earlier',filter:_0x69e281=()=>!0x0}={}){const _0x53b31d='earlier'===_0x26d2f6?0x1:-0x1;let _0x5e7cad=this['_revisions']['get'](_0x553419),_0x1506a1=this['getIndex'](_0x5e7cad);for(yield _0x5e7cad;_0x5e7cad;){if(_0x1506a1+=_0x53b31d,_0x5e7cad=this['getRevision'](_0x1506a1),!_0x5e7cad)return;_0x69e281(_0x5e7cad)&&(yield _0x5e7cad);}}}function m(_0x3cdcf1,_0x20c058,_0x3ee609){const t=_0x3cdcf1['t'];switch(_0x20c058){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'},_0x3ee609);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ee609);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0xec8fe4,'a':_0x3da424,'e':_0x1342ac,'r':_0x296252,'u':_0x199ea4};class l extends _0xa208af{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xe25c4c,j,_0x4ab9ff];}constructor(_0x504964){super(_0x504964),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x21b93c=_0x578618();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x21b93c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xeab449=this['repository']['getRevision'](0x0),_0x1cd041=_0xeab449&&null===_0xeab449['creator']?_0xeab449:null;if(this['_continueCurrentRevision']=!!_0x1cd041&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50be6e=this['_source']['getCurrentRevisionId'](),_0x15aada=this['repository']['getRevision'](_0x50be6e);if(_0x15aada)this['_startingVersion']=_0x15aada['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2394eb=this['_source']['history']['_operations']['find'](_0x538801=>!_0x538801['_isInit']),_0x355525=_0x2394eb?_0x2394eb['baseVersion']:this['_source']['history']['version'];_0xeab449?(_0xeab449['toVersion']<_0x355525&&_0xeab449['_update']({'toVersion':_0x355525}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1cd041['id'],this['_startingVersion']=_0x1cd041['fromVersion']):(this['_startingVersion']=_0xeab449['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x355525,this['_continueCurrentRevision']=!0x1);}}else _0x1cd041&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1cd041['toVersion'],this['editor']['model']['document']['history']['version']),_0x1cd041['fromVersion']===_0x1cd041['toVersion']?(0x0!==_0x1cd041['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1cd041['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1cd041['id'],this['_startingVersion']=_0x1cd041['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',_0x2efb2b=>!_0x2efb2b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x362a61=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4baf24;for(const _0x8b230b in _0x362a61){const _0x5ae635=_0x8b230b,_0x48e80c=_0x362a61[_0x5ae635];if('revisionHistoryLicenseKeyValid'==_0x48e80c||'revisionHistoryLicenseKeyInvalid'==_0x48e80c||'revisionHistoryLicenseKeyExpired'==_0x48e80c||'revisionHistoryLicenseKeyDomainLimit'==_0x48e80c||'revisionHistoryLicenseKeyNotAllowed'==_0x48e80c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48e80c||'revisionHistoryLicenseKeyTrialLimit'==_0x48e80c||'revisionHistoryLicenseKeyUsageLimit'==_0x48e80c){delete _0x362a61[_0x5ae635],_0x4baf24=_0x48e80c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4baf24&&_0x362a61['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4baf24&&_0x362a61['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4baf24&&_0x362a61['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4baf24&&_0x362a61['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4baf24&&_0x362a61['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4baf24&&_0x362a61['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4baf24&&_0x362a61['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x265326=this['repository']['getRevision'](0x0),_0x5b6f4e=await this['getRevisionDocumentData'](_0x265326),_0x178330=await this['getRevisionRootsAttributes'](_0x265326);this['_replaceEditorDataWithRevisionData'](_0x5b6f4e,_0x178330);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1d4dd9){this['_source']=_0x1d4dd9;}async['update'](){const _0x51b00a=await this['_source']['getLatestVersion']();if(_0x51b00a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x149694=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x51b00a});_0x149694['authors']=_0x149694['authorsIds']['map'](_0x5a6226=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a6226)),this['currentRevision']['_update'](_0x149694);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x12a8ef={},_0x61fd79=null){const _0x1d4a47=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x61fd79>this['currentRevision']['toVersion']&&(_0x61fd79=null),null===_0x61fd79&&(_0x61fd79=await this['_source']['getLatestVersion']());const _0xfb534e=this['_getFromVersion'](_0x61fd79),_0x3d2e7e=this['buildRevisionData']({'from':_0xfb534e,'to':_0x61fd79});if(this['currentRevision']['toVersion']<_0x61fd79){const _0x1e4f66=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x61fd79,'to':_0x61fd79});_0x1e4f66['authors']=[],_0x1e4f66['authorsIds']=[],_0x1e4f66['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1e4f66,!0x0),delete _0x1e4f66['authors'],_0x1d4a47['push'](_0x1e4f66);}_0x12a8ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x12a8ef['name']=_0x12a8ef['name']||null,_0x12a8ef['id']=_0x12a8ef['id']||_0x578618(),_0x12a8ef={..._0x12a8ef,..._0x3d2e7e};const _0x4514c2=this['addRevisionData'](_0x12a8ef);_0x1d4a47['push'](_0x12a8ef);const _0x21fe26=this['repository']['getIndex'](_0x4514c2);if(0x0!==_0x21fe26){const _0x5d83b1=this['repository']['getRevision'](_0x21fe26-0x1);if(_0x5d83b1['fromVersion']!==_0x61fd79){const _0x333c06=this['_revisionDataBuilder']['getData'](_0x61fd79,_0x5d83b1['toVersion']),_0x44a5ff={'id':_0x5d83b1['id'],'diffData':_0x333c06['diffData'],'authorsIds':_0x333c06['authorsIds'],'authors':_0x333c06['authorsIds']['map'](_0x56ef51=>this['editor']['plugins']['get']('Users')['getUser'](_0x56ef51)),'fromVersion':_0x61fd79};_0x5d83b1===this['currentRevision']&&(_0x44a5ff['createdAt']=new Date(_0x12a8ef['createdAt']['getTime']()+0xa)),_0x5d83b1['_update'](_0x44a5ff,!0x0),delete _0x44a5ff['authors'],_0x1d4a47['push'](_0x44a5ff);}}if(this['adapter']){for(const _0x37ef86 of _0x1d4a47)this['_bufferUpdate'](_0x37ef86['id'],_0x37ef86,!0x0);this['sendBufferedUpdates']();}return _0x4514c2;}['addRevisionData'](_0x4ea956){const _0x39c1cb=this['repository']['createRevision'](_0x4ea956);return this['adapter']&&_0x39c1cb['on']('_update',(_0x56a463,_0x4756a9,_0x2d79d0)=>{_0x2d79d0||(this['_bufferUpdate'](_0x4756a9['id'],_0x4756a9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x39c1cb,this['_findInsertionIndex'](_0x39c1cb)),_0x39c1cb;}async['getRevisionDocumentData'](_0x285bea){await this['_loadRevisionData'](_0x285bea);const _0x4df135={};for(const _0x193036 in _0x285bea['diffData']){if(_0x285bea['diffData'][_0x193036]['attachChange']&&!_0x285bea['diffData'][_0x193036]['attachChange']['isAttached'])continue;const _0xf164e4=this['_removeRevisionMarkers'](JSON['parse'](_0x285bea['diffData'][_0x193036]['insertions'])),_0xe88fe1=this['editor']['editing']['view']['document'],_0x1b9167=new _0x5cccec(_0xe88fe1,_0xf164e4['map'](_0x596366=>C(_0x596366,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4df135[_0x193036]=this['editor']['data']['processor']['toData'](_0x1b9167),this['editor']['data']['processor']['useFillerType']('default');}return _0x4df135;}async['getRevisionRootsAttributes'](_0x24fb95){await this['_loadRevisionData'](_0x24fb95);const _0x162017={};for(const _0x430756 in _0x24fb95['diffData'])_0x24fb95['diffData'][_0x430756]['attachChange']&&!_0x24fb95['diffData'][_0x430756]['attachChange']['isAttached']||(_0x162017[_0x430756]=_0x24fb95['diffData'][_0x430756]['attributesAfter']||{});return _0x162017;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x11090e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1eab3a=0x0;_0x1eab3a<_0x11090e['length'];_0x1eab3a++){const _0x4717c1=_0x11090e[_0x1eab3a];let _0x103c1e=!0x1;for(const _0x3ce085 of Object['keys'](_0x4717c1))void 0x0===_0x4717c1[_0x3ce085]?delete _0x4717c1[_0x3ce085]:'id'!==_0x3ce085&&(_0x103c1e=!0x0);_0x103c1e||(_0x11090e[_0x1eab3a]=null);}if(_0x11090e=_0x11090e['filter'](_0x18c10c=>null!==_0x18c10c),!_0x11090e['length'])return;for(let _0x2eb7b4=0x0;_0x2eb7b4<_0x11090e['length'];_0x2eb7b4++){const _0x2d63cc=_0x11090e[_0x2eb7b4];void 0x0!==_0x2d63cc['fromVersion']&&void 0x0===_0x2d63cc['toVersion']&&(_0x2d63cc['toVersion']=this['repository']['getRevision'](_0x2d63cc['id'])['toVersion']),void 0x0!==_0x2d63cc['toVersion']&&void 0x0===_0x2d63cc['fromVersion']&&(_0x2d63cc['fromVersion']=this['repository']['getRevision'](_0x2d63cc['id'])['fromVersion']);}const _0x487816=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x11090e,_0x487816)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5f0736=>{if(_0x5f0736){for(const _0x50dc1e of _0x5f0736)this['setRevisionData']({'id':_0x50dc1e['id'],'createdAt':_0x50dc1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x59d966,_0x6c0742){let _0x14b207=this['editor']['config']['get']('initialData'),_0x170319=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x14b207){_0x14b207={};for(const _0x1366b3 of this['editor']['model']['document']['getRootNames']())_0x14b207[_0x1366b3]='';}if('string'==typeof _0x14b207&&(_0x14b207={'main':_0x14b207}),void 0x0===_0x170319){_0x170319={};for(const _0x564db0 of this['editor']['model']['document']['getRootNames']())_0x170319[_0x564db0]={};}let _0x42ae1c=!0x1;const _0x141fac=Object['keys'](_0x14b207),_0x996345=Object['keys'](_0x59d966);for(const _0x1c0527 of _0x141fac){if(_0x14b207[_0x1c0527]!==_0x59d966[_0x1c0527]&&''!==_0x14b207[_0x1c0527]['trim']()){_0x42ae1c=!0x0;break;}if(!_0x293332(_0x170319[_0x1c0527],_0x6c0742[_0x1c0527])&&Object['keys'](_0x170319[_0x1c0527])['length']>0x0){_0x42ae1c=!0x0;break;}}_0x42ae1c||(_0x42ae1c=_0x996345['some'](_0xf6494d=>!this['editor']['model']['document']['getRoot'](_0xf6494d))),_0x42ae1c&&_0x2b673f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x14b207,'editorRootsAttributes':_0x170319,'revisionData':_0x59d966,'revisionRootsAttributes':_0x6c0742}),this['editor']['config']['set']('initialData',_0x59d966),this['editor']['config']['set']('rootsAttributes',_0x6c0742);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x53bd82=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x53bd82['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x29a05d){const _0x291f73=this['repository']['getRevisions']();_0x291f73['reverse']();let _0x12696e=0x0;for(;_0x12696e<_0x291f73['length'];){const _0x2b9640=_0x291f73[_0x12696e];if(_0x2b9640===this['currentRevision']){_0x12696e++;continue;}if(_0x2b9640['id']===this['_initialRevisionId'])break;const _0x257a6e=_0x29a05d['toVersion']-_0x2b9640['toVersion']||_0x29a05d['fromVersion']-_0x2b9640['fromVersion'];if(_0x257a6e>0x0)break;if(_0x257a6e<0x0)_0x12696e++;else{if(!_0x29a05d['creator']&&_0x2b9640['creator'])break;if(_0x2b9640['creator']||!_0x29a05d['creator']){if(_0x29a05d['createdAt']>_0x2b9640['createdAt'])break;_0x12696e++;}else _0x12696e++;}}return _0x12696e;}['setRevisionData'](_0x2d0a71){const _0xe1fcae=this['repository']['getRevision'](_0x2d0a71['id']);if(_0x2d0a71['createdAt']&&(_0x2d0a71['createdAt']=new Date(_0x2d0a71['createdAt'])),_0x2d0a71['authorsIds']){const _0x5236a4=this['editor']['plugins']['get']('Users');_0x2d0a71['authors']=_0x2d0a71['authorsIds']['map'](_0x241360=>_0x5236a4['getUser'](_0x241360));}_0xe1fcae['_update'](_0x2d0a71,!0x0);}['buildRevisionData']({revision:_0x4680b5=null,from:_0xef10c5=null,to:_0x19d28e=null}){_0xef10c5=null!==_0xef10c5?_0xef10c5:_0x4680b5['fromVersion'],_0x19d28e=null!==_0x19d28e?_0x19d28e:_0x4680b5['toVersion'];const _0x3d96f5=this['_revisionDataBuilder']['getData'](_0xef10c5,_0x19d28e),_0xf5ed8c={'diffData':_0x3d96f5['diffData'],'authorsIds':_0x3d96f5['authorsIds'],'fromVersion':_0xef10c5,'toVersion':_0x19d28e};if(!_0x4680b5||_0x19d28e!==_0x4680b5['toVersion']){const _0x160b85=_0x19d28e-0x1,_0x541f17=this['_source']['history']['getOperation'](_0x160b85);_0xf5ed8c['createdAt']=_0x541f17&&_0x541f17['createdAt']||new Date();}if(this['_loadedStateData']&&_0xef10c5===this['_loadedStateData']['fromVersion']){for(const _0x41ae97 of this['_loadedStateData']['authors'])_0xf5ed8c['authorsIds']['includes'](_0x41ae97['id'])||_0xf5ed8c['authorsIds']['push'](_0x41ae97['id']);}return _0xf5ed8c;}['_loadRevisionData'](_0x35fc5a){if(!_0x35fc5a||_0x35fc5a['diffData'])return Promise['resolve']();{const _0x8ef33e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x8ef33e,'revisionId':_0x35fc5a['id']})['then'](_0x15fc12=>{_0x35fc5a['diffData']=_0x15fc12['diffData'];});}}['_bufferUpdate'](_0x5df575,_0xc8d6d,_0xbc9412){if(this['_bufferedUpdates']['has'](_0x5df575)){const _0x1061b8=this['_bufferedUpdates']['get'](_0x5df575);_0xc8d6d=_0xbc9412?{..._0x1061b8,..._0xc8d6d}:{..._0xc8d6d,..._0x1061b8};}this['_bufferedUpdates']['set'](_0x5df575,_0xc8d6d);}['_getFromVersion'](_0x5a1948){const _0x36be11=this['repository']['getRevisions']();_0x36be11['reverse'](),_0x36be11['shift']();const _0x3b67f9=_0x36be11['find'](_0x2de80b=>_0x2de80b['toVersion']<=_0x5a1948)['toVersion'];return _0x3b67f9<this['_startingVersion']?this['_startingVersion']:_0x3b67f9;}['_createInitialRevision'](_0x5ca74f){const _0x2ec9cd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2ec9cd)this['_initialRevisionId']=_0x2ec9cd['id'];else{const _0xe69e8d=!this['editor']['model']['document']['roots']['find'](_0x219401=>this['editor']['model']['hasContent'](_0x219401)),_0x57f363=this['editor']['plugins']['get']('Users')['me']['id'],_0x96dc9f=m(this['editor']['locale'],_0xe69e8d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5ca74f,'to':_0x5ca74f,'id':this['_initialRevisionId'],'name':_0x96dc9f,'creatorId':_0x57f363});}}['_createCurrentRevision'](_0x59ab5a){const _0x30f411=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x30f411),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x59ab5a,'to':_0x59ab5a,'id':_0x30f411,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4417f2,from:_0x49d5ae,to:_0x2aff27,creatorId:_0x1da86f,id:_0x3bf877}){const _0xfe7a7b=this['buildRevisionData']({'from':_0x49d5ae,'to':_0x2aff27});_0xfe7a7b['name']=_0x4417f2,_0xfe7a7b['creatorId']=_0x1da86f,_0xfe7a7b['id']=_0x3bf877;const _0x3f1100=this['addRevisionData'](_0xfe7a7b);return this['adapter']&&this['_bufferUpdate'](_0xfe7a7b['id'],_0xfe7a7b,!0x0),_0x3f1100;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5f0c06){return(_0x5f0c06=_0x5f0c06['filter'](_0x547c04=>!_0x547c04['name']||'revision-start'!==_0x547c04['name']&&'revision-end'!==_0x547c04['name']))['forEach'](_0x5967f5=>{'string'!=typeof _0x5967f5&&(_0x5967f5['children']=this['_removeRevisionMarkers'](_0x5967f5['children']),_0x5967f5['attributes']=_0x5967f5['attributes']['filter'](_0x4856dd=>!_0x4856dd[0x0]['startsWith']('data-revision-')));}),_0x5f0c06;}}function C(_0x42b333,_0x3ea3f4){const _0x5912b0=_0x3ea3f4['editing']['view']['document'];if('string'==typeof _0x42b333)return new _0x5f3898(_0x5912b0,_0x42b333);{const _0x52518f=_0x42b333['children']['map'](_0x1519a1=>C(_0x1519a1,_0x3ea3f4));return new(P[_0x42b333['type']]||_0x352ec7)(_0x5912b0,_0x42b333['name'],_0x42b333['attributes'],_0x52518f);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x190f1f){this['editor']=_0x190f1f,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'](_0x3f60a7){this['source']=_0x3f60a7;const _0x400206=new Map(),_0x1f1c55=new Map(),_0x5ad4e0=this['editor']['model']['document']['roots']['map'](_0x520723=>_0x520723['rootName']);for(const _0x12c492 of _0x5ad4e0){const _0x230fc9=this['editor']['model']['document']['getRoot'](_0x12c492),_0x2538c7=T(_0x230fc9);_0x400206['set'](_0x12c492,_0x2538c7),_0x1f1c55['set'](_0x12c492,Object['fromEntries'](_0x230fc9['getAttributes']()));}const _0x5b7109=Array['from'](this['editor']['model']['markers'])['map'](_0x520605=>[_0x520605['name'],_0x520605['getRange']()]),_0x43f5bd=this['source']['version'];this['_saveMetaData'](_0x43f5bd,_0x400206,_0x5b7109,_0x1f1c55),this['_startingRevisionId']=this['_revisionId'];const _0x4d2c22=new Map(),_0x3a203b=new Map();for(const _0x246f5d of _0x5ad4e0){const _0x457d73=F(_0x246f5d);_0x4d2c22['set'](_0x246f5d,_0x457d73),_0x3a203b['set'](_0x246f5d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4d2c22,[],_0x3a203b);}['getData'](_0x2c4c8b,_0x81679a){if(this['_lastFrom']===_0x2c4c8b&&this['_lastTo']<=_0x81679a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x81679a,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c4c8b)){const _0x43e8b6=this['_getPreviousFrom'](_0x2c4c8b);this['_calculateMetaData'](_0x43e8b6,_0x2c4c8b,!0x1);}this['_calculateMetaData'](_0x2c4c8b,_0x81679a,!0x0);}return this['_lastFrom']=_0x2c4c8b,this['_lastTo']=_0x81679a,this['_getState']();}['loadState'](_0xe2e56){this['_reset'](),this['_lastFrom']=_0xe2e56['fromVersion'],this['_lastTo']=_0xe2e56['toVersion'];for(const _0x1a6d1d in _0xe2e56['diffData']){const _0xe8d2e4=_0xe2e56['diffData'][_0x1a6d1d]['attachChange'],_0x327c36=_0x2124ff(_0xe2e56['diffData'][_0x1a6d1d]['attributesBefore'])||{},_0xe1ee83=this['_makeModelFromViewString'](_0xe2e56['diffData'][_0x1a6d1d]['deletions']);_0xe1ee83['rootName']=_0x1a6d1d,_0xe1ee83['_isAttached']=!_0xe8d2e4||!_0xe8d2e4['isAttached'],_0xe1ee83['isAttached']=()=>_0xe1ee83['_isAttached'],this['_baseRoots']['set'](_0x1a6d1d,_0xe1ee83),this['_baseRootsAttributes']['set'](_0x1a6d1d,_0x327c36),_0xe8d2e4&&this['_touchedRoots']['set'](_0x1a6d1d,_0xe8d2e4);const _0x2b633d=this['_makeIdsRoot'](_0xe1ee83);this['_baseIdsRoots']['set'](_0x1a6d1d,_0x2b633d);for(const [_0x3a79a3,_0x1843fa]of _0xe1ee83['markers']){if(!_0x3a79a3['startsWith']('revision:'))continue;const _0x2ca64c=_0x3a79a3['split'](':')[0x2];for(const _0x184dff of _0x1843fa['getWalker']({'singleCharacters':!0x0})){const _0x3058ee=this['_getVidAttributeName'](_0x184dff),_0x3fdbbf='elementEnd'==_0x184dff['type']?_0x184dff['previousPosition']['path']['slice'](0x0,-0x1):_0x184dff['previousPosition']['path'],_0x478c62=_0x2b633d['getNodeByPath'](_0x3fdbbf)['getAttribute'](_0x3058ee);this['_touched']['set'](_0x478c62,{'userId':_0x2ca64c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5031de=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x462562=>!this['_touched']['has'](_0x462562));let _0x5dd385=0x0;const _0xae37f9=new Map();for(const _0x514561 in _0xe2e56['diffData']){const _0x32c10b=_0xe2e56['diffData'][_0x514561]['attachChange'],_0x4ae5b9=_0x2124ff(_0xe2e56['diffData'][_0x514561]['attributesAfter'])||{},_0x452668=this['_makeModelFromViewString'](_0xe2e56['diffData'][_0x514561]['insertions']);_0x452668['rootName']=_0x514561,_0x452668['_isAttached']=!_0x32c10b||_0x32c10b['isAttached'],_0x452668['isAttached']=()=>_0x452668['_isAttached'],this['_diffRoots']['set'](_0x514561,_0x452668),this['_diffRootsAttributes']['set'](_0x514561,_0x4ae5b9);const _0x20840c=this['_makeIdsRoot'](_0x452668,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x514561,_0x20840c),_0xae37f9['set'](_0x514561,_0x452668['isAttached']()?_0x4ae5b9:{});for(const [_0x2bc65a,_0x1b1d30]of _0x452668['markers']){if(!_0x2bc65a['startsWith']('revision:'))continue;const _0x3479ab=_0x2bc65a['split'](':')[0x2];for(const _0x56eb30 of _0x1b1d30['getWalker']({'singleCharacters':!0x0})){const _0x458205=this['_getVidAttributeName'](_0x56eb30),_0x16f7b6=this['_revisionId']++,_0x4fd094='elementEnd'==_0x56eb30['type']?_0x56eb30['previousPosition']['path']['slice'](0x0,-0x1):_0x56eb30['previousPosition']['path'];_0x20840c['getNodeByPath'](_0x4fd094)['_setAttribute'](_0x458205,_0x16f7b6),this['_touched']['set'](_0x16f7b6,{'userId':_0x3479ab});}}for(const _0x3b3922 of this['editor']['model']['createRangeIn'](_0x452668)['getWalker']({'singleCharacters':!0x0})){const _0x496b67=this['_getVidAttributeName'](_0x3b3922),_0xfecc87='elementEnd'==_0x3b3922['type']?_0x3b3922['previousPosition']['path']['slice'](0x0,-0x1):_0x3b3922['previousPosition']['path'],_0x4d462a=_0x20840c['getNodeByPath'](_0xfecc87);_0x4d462a['getAttribute'](_0x496b67)>0x0||_0x4d462a['_setAttribute'](_0x496b67,_0x5031de[_0x5dd385++]);}for(const [_0x8a17bd,_0x5f40e5]of _0x452668['markers'])_0x8a17bd['startsWith']('revision:')||this['_markers']['set'](_0x8a17bd,_0x5f40e5);}const _0x4c987c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4c987c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c987c,0x1));const _0x8d3714=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x8d3714),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x8d3714,0x1));const _0x30e388=Array['from'](this['_diffRoots'])['map'](([_0x5c5f43,_0x245991])=>[_0x5c5f43,T(_0x245991)]);this['_saveMetaData'](this['_lastTo'],_0x30e388,this['_markers'],_0xae37f9);}['_makeModelFromViewString'](_0x5d01f6){const _0x5e50d5=JSON['parse'](_0x5d01f6),_0x4258b6=this['editor']['editing']['view']['document'],_0x214366=new _0x5cccec(_0x4258b6,_0x5e50d5['map'](_0x456fb3=>C(_0x456fb3,this['editor'])));return this['editor']['data']['toModel'](_0x214366);}['_saveMetaData'](_0x476500,_0x285081,_0x5d250a,_0x4dc110){const _0x2ac6c1=new Map(_0x285081),_0x59de81=new Map(_0x2124ff(_0x4dc110)),_0xaf847c=new Map();for(const [_0x5734af,_0x28cd31]of _0x5d250a)_0xaf847c['set'](_0x5734af,{'start':_0x28cd31['start']['clone'](),'end':_0x28cd31['end']['clone'](),'rootName':_0x28cd31['root']['rootName']});this['_savedMetaData']['set'](_0x476500,{'roots':_0x2ac6c1,'markers':_0xaf847c,'rootsAttributes':_0x59de81});}['_removeMetaData'](_0x54cc37){this['_savedMetaData']['delete'](_0x54cc37);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4fb00f,_0xf78dae=null){let _0x41df3f=null;_0x4fb00f['is']('documentFragment')||(_0x41df3f=new ft(_0x4fb00f['name'],{'vid_start':null===_0xf78dae?this['_revisionId']++:_0xf78dae++}));const _0x25b6cd=[];for(const _0x5361ee of _0x4fb00f['getChildren']())if(_0x5361ee['is']('element')){_0x25b6cd['push'](this['_makeIdsRoot'](_0x5361ee,_0xf78dae));const _0x36d8b4=_0x25b6cd[_0x25b6cd['length']-0x1];null!==_0xf78dae&&(_0xf78dae=_0x36d8b4['is']('element','$text')?_0x36d8b4['getAttribute']('vid')+0x1:_0x36d8b4['getAttribute']('vid_end')+0x1);}else{for(let _0x597186=0x0;_0x597186<_0x5361ee['offsetSize'];_0x597186++)_0x25b6cd['push'](new ft('$text',{'vid':null===_0xf78dae?this['_revisionId']++:_0xf78dae++}));}if(_0x4fb00f['is']('documentFragment')){const _0x56f456=F(_0x4fb00f['rootName']);return _0x56f456['_insertChild'](0x0,_0x25b6cd),_0x56f456;}return _0x41df3f['_setAttribute']('vid_end',null===_0xf78dae?this['_revisionId']++:_0xf78dae++),_0x41df3f['_insertChild'](0x0,_0x25b6cd),_0x41df3f;}['_calculateMetaData'](_0x58f973,_0x24dfe1,_0x188eb3){this['_reset']();const {roots:_0x298def,markers:_0x2e5906,rootsAttributes:_0x3b8ea5}=this['_savedMetaData']['get'](_0x58f973);this['_baseRoots']=new Map(_0x298def),this['_baseRootsAttributes']=new Map(_0x2124ff(_0x3b8ea5));for(const [_0x44f301,_0x9c8c1d]of this['_baseRoots'])if('$graveyard'!==_0x44f301&&(this['_diffRoots']['set'](_0x44f301,T(_0x9c8c1d)),this['_diffRootsAttributes']=new Map(_0x2124ff(_0x3b8ea5)),_0x188eb3)){const _0xd0bf92=this['_revisionId'];this['_idsRoots']['set'](_0x44f301,this['_makeIdsRoot'](_0x9c8c1d)),this['_baseIdsRoots']['set'](_0x44f301,this['_makeIdsRoot'](_0x9c8c1d,_0xd0bf92));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x188eb3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1b8723,_0x230c48]of _0x2e5906){const _0x544688=this['_baseRoots']['get'](_0x230c48['rootName']),_0x487da9=this['_diffRoots']['get'](_0x230c48['rootName']),_0x42a271=new vt(this['_fixPosition'](_0x230c48['start'],_0x544688),this['_fixPosition'](_0x230c48['end'],_0x544688)),_0xd1fcd8=this['_fixRange'](_0x42a271,_0x487da9);_0x544688['markers']['set'](_0x1b8723,_0x42a271),this['_markers']['set'](_0x1b8723,_0xd1fcd8);}this['_applyOperations'](_0x58f973,_0x24dfe1,_0x188eb3);}['_applyOperations'](_0x18a9ce,_0x1ed85f,_0x2c8736){for(const _0x1695fc of this['source']['getOperations'](_0x18a9ce,_0x1ed85f))this['_handleOperation'](_0x1695fc,_0x2c8736);for(const _0x2e3449 of this['_diffRoots']['values']())_0x2e3449['markers']['clear']();for(const [_0x429850,_0x2e8366]of this['_markers']){this['_diffRoots']['get'](_0x2e8366['root']['rootName'])['markers']['set'](_0x429850,_0x2e8366['clone']());}const _0x1d0adf=new Map(),_0x1f2445=new Map();for(const [_0x550481,_0xfd4712]of this['_diffRoots'])_0x1d0adf['set'](_0x550481,T(_0xfd4712)),_0x1f2445['set'](_0x550481,this['_diffRootsAttributes']['get'](_0x550481));this['_saveMetaData'](_0x1ed85f,_0x1d0adf,this['_markers'],_0x1f2445);}['_getPreviousFrom'](_0x5f3817){const _0x3322c7=Array['from'](this['_savedMetaData']['keys']());_0x3322c7['sort']((_0x52f968,_0x37cc4a)=>_0x52f968-_0x37cc4a),_0x3322c7['reverse']();for(const _0x625ef4 of _0x3322c7)if(_0x625ef4<_0x5f3817)return _0x625ef4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4cf705,_0x3f71fa){const _0xec742e=Array['from'](_0x3f71fa['markers'])['map'](([_0x3b4859,_0x35297a])=>[_0x3b4859,this['_fixRange'](_0x35297a,_0x4cf705)]);_0x4cf705['markers']=new Map(_0xec742e);}['_transformMarkers'](_0x29f298){for(const _0x533b1b of this['_markers']['values']()){const _0x3c27a1=_0x533b1b['getTransformedByOperation'](_0x29f298),_0xf61379=vt['_createFromRanges'](_0x3c27a1);_0x533b1b['start']=_0xf61379['start'],_0x533b1b['end']=_0xf61379['end'];}}['_handleOperation'](_0x14beae,_0x149808){if('addRoot'!=_0x14beae['type']&&'detachRoot'!=_0x14beae['type']){if('insert'==_0x14beae['type']){const _0x11ad40=_0x14beae['position']['root']['rootName'];this['_diffRoots']['has'](_0x11ad40)||(this['_diffRoots']['set'](_0x11ad40,F(_0x11ad40,!0x0)),this['_diffRootsAttributes']['set'](_0x11ad40,{}),_0x149808&&this['_idsRoots']['set'](_0x11ad40,F(_0x11ad40,!0x0)));}else{if('addRootAttribute'==_0x14beae['type']||'removeRootAttribute'==_0x14beae['type']||'changeRootAttribute'==_0x14beae['type'])return void this['_handleRootAttributeOperation'](_0x14beae);'marker'==_0x14beae['type']&&this['_handleMarkerOperation'](_0x14beae);}if('marker'!==_0x14beae['type']){const _0x2bea9c=this['_cloneOperation'](_0x14beae,this['_diffRoots']);_0x2bea9c['_execute'](),this['_transformMarkers'](_0x2bea9c);}if(_0x149808)switch(_0x14beae['type']){case'insert':this['_handleInsertOperation'](_0x14beae);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x14beae);break;case'merge':this['_handleMergeOperation'](_0x14beae);break;case'split':this['_handleSplitOperation'](_0x14beae);}}else this['_handleRootOperation'](_0x14beae,_0x149808);}['_cloneOperation'](_0x2bcc0b,_0x48836a){const _0x46fd61=_0x2bcc0b['clone']();return _0x46fd61['_authorId']=_0x2bcc0b['_authorId'],this['_fixOperation'](_0x46fd61,_0x48836a),_0x46fd61;}['_getBaseVids'](_0x20cc9c){return _0x20cc9c['map'](_0x396fc4=>{const _0x25884c=this['_getVidAttributeName'](_0x396fc4);return Number(_0x396fc4['item']['getAttribute'](_0x25884c));});}['_generateTape'](_0x52fe07,_0x3ad6fc){if(_0x52fe07['is']('element','$text'))_0x3ad6fc['push']({'item':_0x52fe07,'type':'text'});else{_0x52fe07['is']('element')&&_0x3ad6fc['push']({'item':_0x52fe07,'type':'elementStart'});for(const _0x5c179f of _0x52fe07['getChildren']())this['_generateTape'](_0x5c179f,_0x3ad6fc);_0x52fe07['is']('element')&&_0x3ad6fc['push']({'item':_0x52fe07,'type':'elementEnd'});}return _0x3ad6fc;}['_getState'](){const _0x4b900f=new Map(this['_touched']),_0x3c2d36=new Map(_0x4b900f),_0x38fe58=new Map(),_0x396abe={'insertions':{},'deletions':{}},_0xf3461a={'insertions':{},'deletions':{}},_0x3f1f2e=new Map(),_0x4c9526=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c9526['delete']('$graveyard');for(const _0x47781b of _0x4c9526){const _0x17cb42=this['_diffRoots']['get'](_0x47781b)||F(_0x47781b,!0x1),_0x951385=this['_baseRoots']['get'](_0x47781b)||F(_0x47781b,!0x1);_0x17cb42['isAttached']()||_0x951385['isAttached']()?(_0x396abe['insertions'][_0x47781b]=T(_0x17cb42),_0x396abe['deletions'][_0x47781b]=T(_0x951385),this['_copyMarkers'](_0x396abe['deletions'][_0x47781b],_0x951385),this['_copyMarkers'](_0x396abe['insertions'][_0x47781b],_0x17cb42),_0xf3461a['insertions'][_0x47781b]=this['_generateTape'](this['_idsRoots']['get'](_0x47781b),[]),_0xf3461a['deletions'][_0x47781b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x47781b)||F(_0x47781b,!0x1),[])):_0x4c9526['delete'](_0x47781b);}for(const _0x296b75 of _0x4c9526){const _0x2aa18b=_0xf3461a['insertions'][_0x296b75];for(const _0x11166e of _0x2aa18b){const _0x545e20=this['_getVidAttributeName'](_0x11166e),_0x37b423=_0x11166e['item']['getAttribute'](_0x545e20);_0x3c2d36['delete'](_0x37b423),_0x37b423>=this['_startingRevisionId']&&_0x38fe58['set'](_0x37b423,_0x4b900f['get'](_0x37b423));}}for(const _0xdf4aff of _0x4c9526){const _0x288ca3=_0xf3461a['insertions'][_0xdf4aff],_0x16a964=this['_getBaseVids'](_0xf3461a['deletions'][_0xdf4aff]);let _0x3fbc83=0x0;for(const _0x51cf1f of _0x288ca3){const _0x396cb8=this['_getVidAttributeName'](_0x51cf1f),_0xed80ed=_0x51cf1f['item']['getAttribute'](_0x396cb8);if(!_0x38fe58['has'](_0xed80ed)&&!_0x3f1f2e['has'](_0xed80ed)){if(_0x3c2d36['has'](_0xed80ed))_0x3fbc83++;else{if(_0xed80ed!=_0x16a964[_0x3fbc83]){const _0x4aac17=_0x4b900f['get'](_0xed80ed)||_0x4b900f['get'](_0x16a964[_0x3fbc83]);for(;_0xed80ed!=_0x16a964[_0x3fbc83];)_0x3c2d36['has'](_0x16a964[_0x3fbc83])||(_0x3f1f2e['set'](_0x16a964[_0x3fbc83],_0x4aac17),_0x4b900f['set'](_0x16a964[_0x3fbc83],_0x4aac17)),_0x3fbc83++;}_0x3fbc83++;}}}}for(const _0x1307df of _0x4c9526){const _0x58b657=_0xf3461a['insertions'][_0x1307df];for(const _0x16844f of _0x58b657){const _0x44a1b7=this['_getVidAttributeName'](_0x16844f),_0x509544=_0x16844f['item']['getAttribute'](_0x44a1b7);if(_0x3f1f2e['has'](_0x509544)){const _0x21f9e3=_0x3f1f2e['get'](_0x509544);_0x3c2d36['has'](_0x509544)||_0x3c2d36['set'](_0x509544,{..._0x21f9e3}),_0x38fe58['set'](_0x509544,{..._0x21f9e3});}}}for(const _0x556854 of _0x3c2d36['keys']())_0x556854>=this['_startingRevisionId']&&_0x3c2d36['delete'](_0x556854);const _0x3abac0=new Map();for(const _0x22637d of _0x4c9526){let _0x50736f=_0xf3461a['insertions'][_0x22637d];for(const _0x419aee of _0x50736f)if(_0x419aee['item']['is']('element','tableCell')){const _0x51b59c=this['_getVidAttributeName'](_0x419aee),_0x41247e=_0x419aee['item']['getAttribute'](_0x51b59c);if(_0x38fe58['has'](_0x41247e)){const _0x2244ac=_0x419aee['item']['parent']['parent']['getAttribute']('vid_start'),_0x41fd02=_0x3abac0['get'](_0x2244ac)||new Set();_0x41fd02['add'](_0x38fe58['get'](_0x41247e)['userId']),_0x3abac0['set'](_0x2244ac,_0x41fd02);}}_0x50736f=_0xf3461a['deletions'][_0x22637d];for(const _0x2f5714 of _0x50736f)if(_0x2f5714['item']['is']('element','tableCell')){const _0x3f97fe=this['_getVidAttributeName'](_0x2f5714),_0x530d93=_0x2f5714['item']['getAttribute'](_0x3f97fe);if(_0x3c2d36['has'](_0x530d93)){const _0x446ecf=_0x2f5714['item']['parent']['parent']['getAttribute']('vid_start'),_0x823043=_0x3abac0['get'](_0x446ecf)||new Set();_0x823043['add'](_0x3c2d36['get'](_0x530d93)['userId']),_0x3abac0['set'](_0x446ecf,_0x823043);}}for(const _0x4d2371 of _0x3abac0['keys']())(_0x38fe58['has'](_0x4d2371)||_0x3c2d36['has'](_0x4d2371))&&_0x3abac0['delete'](_0x4d2371);}for(const _0x4f59cd of _0x4c9526){const _0x6256bf=_0xf3461a['insertions'][_0x4f59cd];let _0x58ac2d=null,_0x1957e2=null;for(const _0xb2ac72 of _0x6256bf){const _0x2abb54=this['_getVidAttributeName'](_0xb2ac72),_0x28fb51=_0xb2ac72['item']['getAttribute'](_0x2abb54),_0x249840=_0x3abac0['get'](_0x28fb51);_0x249840&&'elementStart'==_0xb2ac72['type']&&(_0x58ac2d=Array['from'](_0x249840)[0x0],_0x1957e2=_0xb2ac72['item']['getAttribute']('vid_end')),_0x58ac2d&&(_0x3c2d36['set'](_0x28fb51,{'userId':_0x58ac2d}),_0x38fe58['set'](_0x28fb51,{'userId':_0x58ac2d})),_0x28fb51==_0x1957e2&&(_0x58ac2d=null,_0x1957e2=null);}}const _0x533ec2={},_0x45b666=new Set();for(const _0x5cf0ce of _0x4c9526){const _0x507aa3=_0x396abe['deletions'][_0x5cf0ce],_0x427548=_0x396abe['insertions'][_0x5cf0ce];for(const {userId:_0x15b0b2}of this['_touchedMarkers']['values']())null!==_0x15b0b2&&_0x45b666['add'](_0x15b0b2);for(const {userId:_0x4ab18f}of this['_touchedRoots']['values']())null!==_0x4ab18f&&_0x45b666['add'](_0x4ab18f);this['_markChanges'](_0x427548,_0xf3461a['insertions'][_0x5cf0ce],_0x38fe58,'insertion',_0x45b666),this['_markChanges'](_0x507aa3,_0xf3461a['deletions'][_0x5cf0ce],_0x3c2d36,'deletion',_0x45b666),_0x533ec2[_0x5cf0ce]={'insertions':this['_prepareViewToSave'](_0x427548),'deletions':this['_prepareViewToSave'](_0x507aa3),'attachChange':this['_touchedRoots']['get'](_0x5cf0ce)||null,'attributesBefore':_0x2124ff(this['_baseRootsAttributes']['get'](_0x5cf0ce))||{},'attributesAfter':_0x2124ff(this['_diffRootsAttributes']['get'](_0x5cf0ce))};}return{'diffData':_0x533ec2,'authorsIds':Array['from'](_0x45b666)};}['_processRootBeforeSave'](_0x4727e7){for(const [,_0x244854]of _0x4727e7['markers']){const _0x16c397=_0x244854['start']['getAncestors']()['filter'](_0x48a200=>'tableCell'==_0x48a200['name']);for(const _0x5426b6 of _0x16c397)0x1==_0x5426b6['childCount']&&_0x5426b6['getChild'](0x0)['is']('element','paragraph')&&_0x5426b6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3fc7a8){this['_processRootBeforeSave'](_0x3fc7a8);const _0x5a573a=this['editor']['data']['toView'](_0x3fc7a8,{}),_0x3f9cab=Array['from'](_0x5a573a['getChildren']())['map'](_0x59ad61=>this['_getViewJson'](_0x59ad61));return JSON['stringify'](_0x3f9cab);}['_getViewJson'](_0x567919){if(_0x567919['is']('$text'))return _0x567919['data'];{const _0x38d4ae=_0x567919;return{'type':Object['keys'](P)['find'](_0x41f523=>_0x567919 instanceof P[_0x41f523]),'name':_0x38d4ae['name'],'attributes':Array['from'](_0x38d4ae['getAttributes']()),'children':Array['from'](_0x38d4ae['getChildren']())['map'](_0x15fa1d=>this['_getViewJson'](_0x15fa1d))};}}['_markChanges'](_0x59171e,_0x44aed2,_0x4eafb9,_0x4866ce,_0x2243bd){let _0x2c60b5=null,_0x3a1cd1=null,_0x359ea0=0x0;const _0x5d6390=this['editor']['model'];for(let _0x38da9a=0x0;_0x38da9a<_0x44aed2['length'];_0x38da9a++){const _0x4c49a4=this['_getVidAttributeName'](_0x44aed2[_0x38da9a]),_0x3bf8ac=_0x44aed2[_0x38da9a]['item']['getAttribute'](_0x4c49a4),_0x3b36ea=_0x4eafb9['get'](_0x3bf8ac),_0x108b2c=_0x38da9a==_0x44aed2['length']-0x1;(!_0x2c60b5&&_0x3b36ea&&(_0x2c60b5=_0x3b36ea,_0x3a1cd1=_0x44aed2[_0x38da9a]),_0x2c60b5&&(!_0x3b36ea||_0x3b36ea['userId']!=_0x2c60b5['userId']))&&(_0x4ba434(_0x3b36ea,B(_0x3a1cd1,_0x59171e,_0x5d6390),B(_0x44aed2[_0x38da9a],_0x59171e,_0x5d6390)),_0x2c60b5=_0x3b36ea||null,_0x3a1cd1=_0x3b36ea?_0x44aed2[_0x38da9a]:null),_0x2c60b5&&_0x108b2c&&_0x4ba434(_0x3b36ea,B(_0x3a1cd1,_0x59171e,_0x5d6390),J(_0x44aed2[_0x38da9a],_0x59171e,_0x5d6390));}function _0x4ba434(_0x4f5b0e,_0x55f9d8,_0x1e25b1){const _0x1c9caf=_0x2c60b5['userId'],_0x38ea5c='revision:'+_0x4866ce+':'+_0x1c9caf+':'+_0x359ea0++,_0x924aa9=_0x5d6390['createRange'](_0x55f9d8,_0x1e25b1);_0x59171e['markers']['set'](_0x38ea5c,_0x924aa9),null!==_0x1c9caf&&_0x2243bd['add'](_0x1c9caf);}}['_getVidAttributeName'](_0x4db42c){switch(_0x4db42c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3b7f14,_0x39509a){_0x3b7f14['baseVersion']=null;for(const _0xe2a058 in _0x3b7f14){const _0x9b5bef=_0x3b7f14[_0xe2a058];if(_0x9b5bef instanceof gt){const _0x125976=_0x39509a['get'](_0x9b5bef['root']['rootName']);_0x3b7f14[_0xe2a058]=this['_fixPosition'](_0x9b5bef,_0x125976);}if(_0x9b5bef instanceof vt){const _0x49f301=_0x39509a['get'](_0x9b5bef['root']['rootName']);_0x3b7f14[_0xe2a058]=this['_fixRange'](_0x9b5bef,_0x49f301);}'root'===_0xe2a058&&(_0x3b7f14['root']=_0x39509a['get'](_0x3b7f14['root']['rootName']));}}['_fixRange'](_0x4b390a,_0x36c8f3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b390a['start'],_0x36c8f3),this['_fixPosition'](_0x4b390a['end'],_0x36c8f3));}['_fixPosition'](_0x1e7a45,_0x5688e0){return this['editor']['model']['createPositionFromPath'](_0x5688e0,_0x1e7a45['path'],_0x1e7a45['stickiness']);}['_handleInsertOperation'](_0x2d3296){const _0x1bc285=this['_idsRoots']['get'](_0x2d3296['position']['root']['rootName']),_0x2031c5=this['_fixPosition'](_0x2d3296['position'],_0x1bc285),_0x443ea7=null===_0x2d3296['_authorId']?null:_0x2d3296['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7229eb=_0x2031c5['parent'],_0x2f6b53=this['_revisionId'],_0x498426=[];for(const _0x1c0372 of _0x2d3296['nodes'])if(_0x1c0372['is']('element'))_0x498426['push'](this['_makeIdsRoot'](_0x1c0372));else{for(let _0x3ebc4b=0x0;_0x3ebc4b<_0x1c0372['offsetSize'];_0x3ebc4b++)_0x498426['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2c1575=this['_revisionId'];for(let _0x3df687=_0x2f6b53;_0x3df687<_0x2c1575;_0x3df687++)this['_touched']['set'](_0x3df687,{'userId':_0x443ea7});_0x7229eb['_insertChild'](_0x2031c5['offset'],_0x498426);}['_handleMoveOperation'](_0x221ffe){(_0x221ffe=this['_cloneOperation'](_0x221ffe,this['_idsRoots']))['_execute']();const _0xe21694=null===_0x221ffe['_authorId']?null:_0x221ffe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16b084=_0x221ffe['getMovedRangeStart'](),_0x530f30=_0x16b084['parent'],_0x2559c0=_0x16b084['offset'];!function _0x1aab0e(_0x1fba2a,_0x86a1ba,_0x281873,_0x518c0c){for(let _0x453370=_0x281873;_0x453370<_0x518c0c;_0x453370++){const _0x6282fa=_0x86a1ba['getChild'](_0x453370);_0x6282fa['is']('element','$text')?_0x1fba2a['set'](_0x6282fa['getAttribute']('vid'),{'userId':_0xe21694}):(_0x1fba2a['set'](_0x6282fa['getAttribute']('vid_start'),{'userId':_0xe21694}),_0x1aab0e(_0x1fba2a,_0x6282fa,0x0,_0x6282fa['childCount']),_0x1fba2a['set'](_0x6282fa['getAttribute']('vid_end'),{'userId':_0xe21694}));}}(this['_touched'],_0x530f30,_0x2559c0,_0x2559c0+_0x221ffe['howMany']);}['_handleMergeOperation'](_0xb05741){const _0x32e5a5=null===(_0xb05741=this['_cloneOperation'](_0xb05741,this['_idsRoots']))['_authorId']?null:_0xb05741['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ff63f=_0xb05741['targetPosition']['parent'],_0x28d043=_0xb05741['sourcePosition']['parent'],_0xad3a07=_0x4ff63f['getAttribute']('vid_end'),_0x408644=_0x28d043['getAttribute']('vid_start');_0x4ff63f['_setAttribute']('vid_end',_0x28d043['getAttribute']('vid_end')),_0x28d043['_setAttribute']('vid_end',_0xad3a07),this['_touched']['set'](_0x408644,{'userId':_0x32e5a5}),this['_touched']['set'](_0xad3a07,{'userId':_0x32e5a5}),_0xb05741['_execute']();}['_handleSplitOperation'](_0x1d8c3d){const _0x3f0f30=null===(_0x1d8c3d=this['_cloneOperation'](_0x1d8c3d,this['_idsRoots']))['_authorId']?null:_0x1d8c3d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e154f=_0x1d8c3d['graveyardPosition'],_0x5b35f8=_0x1d8c3d['splitPosition']['parent'];_0x1d8c3d['_execute']();const _0x1b9811=_0x5b35f8['getAttribute']('vid_end'),_0x1521dd=_0x1d8c3d['insertionPosition']['nodeAfter'];if(_0x2e154f){const _0x54021d=_0x1521dd['getAttribute']('vid_end'),_0x4deadf=_0x5b35f8['getAttribute']('vid_end');_0x5b35f8['_setAttribute']('vid_end',_0x54021d),_0x1521dd['_setAttribute']('vid_end',_0x4deadf),this['_touched']['set'](_0x5b35f8['getAttribute']('vid_end'),{'userId':_0x3f0f30}),this['_touched']['set'](_0x1521dd['getAttribute']('vid_start'),{'userId':_0x3f0f30});}else{const _0x66bfa2=this['_revisionId']++,_0x5581e9=this['_revisionId']++;_0x5b35f8['_setAttribute']('vid_end',_0x66bfa2),_0x1521dd['_setAttribute']('vid_start',_0x5581e9),_0x1521dd['_setAttribute']('vid_end',_0x1b9811),this['_touched']['set'](_0x66bfa2,{'userId':_0x3f0f30}),this['_touched']['set'](_0x5581e9,{'userId':_0x3f0f30});}}['_handleMarkerOperation'](_0x4c708e){if(!_0x4c708e['affectsData'])return;const _0x3f8e3b=(_0x4c708e=this['_cloneOperation'](_0x4c708e,this['_diffRoots']))['oldRange']?_0x4c708e['oldRange']['root']:null,_0x3a0e67=_0x4c708e['newRange']?_0x4c708e['newRange']['root']:null;_0x3f8e3b&&this['_markers']['delete'](_0x4c708e['name']),_0x3a0e67&&this['_markers']['set'](_0x4c708e['name'],_0x4c708e['newRange']['clone']());const _0x2d6f4a=null===_0x4c708e['_authorId']?null:_0x4c708e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf67670=_0x4c708e['name'];if(!this['_touchedMarkers']['has'](_0xf67670))return void this['_touchedMarkers']['set'](_0xf67670,{'range':_0x4c708e['oldRange'],'userId':_0x2d6f4a});const _0x230f8a=this['_touchedMarkers']['get'](_0xf67670),_0x26c30a=_0x230f8a['range'],_0x42f7b1=_0x4c708e['newRange'];null==_0x26c30a&&null==_0x42f7b1||_0x26c30a&&_0x42f7b1&&_0x26c30a['isEqual'](_0x42f7b1)?this['_touchedMarkers']['delete'](_0x4c708e['name']):_0x230f8a['userId']=_0x2d6f4a;}['_handleRootOperation'](_0x273ce4,_0x146cf2){this['_diffRoots']['has'](_0x273ce4['rootName'])?this['_diffRoots']['get'](_0x273ce4['rootName'])['_isAttached']=_0x273ce4['isAdd']:(this['_diffRoots']['set'](_0x273ce4['rootName'],F(_0x273ce4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x273ce4['rootName'],{}),_0x146cf2&&this['_idsRoots']['set'](_0x273ce4['rootName'],F(_0x273ce4['rootName'],!0x0)));const _0xf361e8=null===_0x273ce4['_authorId']?null:_0x273ce4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d10c6=this['_touchedRoots']['get'](_0x273ce4['rootName']);_0x5d10c6&&_0x5d10c6['userId']===_0xf361e8?this['_touchedRoots']['delete'](_0x273ce4['rootName']):this['_touchedRoots']['set'](_0x273ce4['rootName'],{'userId':_0xf361e8,'isAttached':_0x273ce4['isAdd']});}['_handleRootAttributeOperation'](_0x5c44a1){const _0x40e191=this['_diffRootsAttributes']['get'](_0x5c44a1['root']['rootName']);null===_0x5c44a1['newValue']?delete _0x40e191[_0x5c44a1['key']]:_0x40e191[_0x5c44a1['key']]=_0x5c44a1['newValue'];}}function T(_0x34bb80){const _0x1983b=F(_0x34bb80['rootName'],_0x34bb80['isAttached']());for(const _0x243ff4 of _0x34bb80['getChildren']()){const _0x1ffc3a=_0x243ff4['_clone'](!0x0);_0x1983b['_appendChild'](_0x1ffc3a);}return _0x1983b;}function F(_0x3dd4e4,_0x2b5e8d=!0x0){const _0x571afa=new mt();return _0x571afa['rootName']=_0x3dd4e4,_0x571afa['_isAttached']=_0x2b5e8d,_0x571afa['isAttached']=()=>_0x571afa['_isAttached'],_0x571afa;}function B(_0x5f74ef,_0x334292,_0x15f74c){const _0x466ac9='elementEnd'==_0x5f74ef['type']?_0x15f74c['createPositionAt'](_0x5f74ef['item'],'end'):_0x15f74c['createPositionBefore'](_0x5f74ef['item']);return _0x15f74c['createPositionFromPath'](_0x334292,_0x466ac9['path'],_0x466ac9['stickiness']);}function J(_0x7f5f16,_0x359995,_0x22158a){const _0x147e01='elementStart'==_0x7f5f16['type']?_0x22158a['createPositionAt'](_0x7f5f16['item'],0x0):_0x22158a['createPositionAfter'](_0x7f5f16['item']);return _0x22158a['createPositionFromPath'](_0x359995,_0x147e01['path'],_0x147e01['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2c3b5e,_0x308f71){super(_0x2c3b5e),this['focusTracker']=new _0xb98201(),this['keystrokes']=new _0x4cae9b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x308f71),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x35f8cb(this);}['render'](){super['render'](),_0x41529c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39cfb2=_0x2b2439=>_0x2b2439['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39cfb2),this['keystrokes']['set']('arrowleft',_0x39cfb2),this['keystrokes']['set']('arrowup',_0x39cfb2),this['keystrokes']['set']('arrowdown',_0x39cfb2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2f9d7c){this['revisionNameInputView']['fieldView']['element']['value']=_0x2f9d7c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3a2684){const _0x40294b=new _0x4a2ae2(this['locale'],_0x32c084),_0x283bf3=_0x40294b['fieldView'];_0x283bf3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x21b2fd=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3a2684&&(_0x21b2fd+='\x20('+m(this['locale'],'optional')+')'),(_0x40294b['label']=_0x21b2fd,_0x283bf3['on']('input',()=>{this['revisionNameInputValue']=_0x283bf3['element']['value']['trim']();}),_0x40294b);}}class u extends _0xa208af{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x52cd2b=this['editor'],_0x34b169=_0x52cd2b['plugins']['get']('RevisionTracker');_0x52cd2b['ui']['componentFactory']['add']('revisionHistory',_0x6a20d5=>{const _0x542333=_0x9de182(_0x6a20d5),_0x485553=_0x542333['panelView']['children'],_0x4d37b1=new _0x345e42(_0x6a20d5),_0x5c5b56=new _0x182569(_0x6a20d5),_0x2a250a=new te(_0x6a20d5),_0x16b295=new _0x182569(_0x6a20d5),_0x369243=new te(_0x6a20d5);return _0x542333['bind']('isEnabled')['to'](_0x34b169,'isReady',_0x34b169,'isEnabled',_0x52cd2b,'isReadOnly',(_0x19724a,_0x434f87,_0x5de0bc)=>_0x19724a&&_0x434f87&&!_0x5de0bc),_0x542333['buttonView']['set']({'icon':_0x21a730['history'],'label':m(_0x6a20d5,'Revision\x20history'),'tooltip':!0x0}),_0x2a250a['set']({'label':m(_0x6a20d5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2a250a['bind']('isEnabled')['to'](_0x34b169,'isReady',_0x34b169,'isEnabled',_0x52cd2b,'isReadOnly',(_0x35f898,_0x1a1b7b,_0x223949)=>_0x35f898&&_0x1a1b7b&&!_0x223949),_0x2a250a['on']('execute',()=>this['_showDialog']()),_0x369243['set']({'label':m(_0x6a20d5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x369243['bind']('isEnabled')['to'](_0x34b169,'isReady',_0x52cd2b,'isReadOnly',(_0x22c290,_0x310d00)=>_0x22c290&&!_0x310d00),_0x369243['on']('execute',()=>{_0x52cd2b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x542333['isOpen']=!0x1,_0x52cd2b['editing']['view']['focus']();}),_0x5c5b56['children']['add'](_0x2a250a),_0x16b295['children']['add'](_0x369243),_0x4d37b1['role']='menu',_0x4d37b1['items']['addMany']([_0x5c5b56,_0x16b295]),_0x485553['add'](_0x4d37b1),_0x542333;}),_0x52cd2b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1df017=this['editor'],_0x3cdddd=_0x1df017['locale'],_0x4eb5c1=new _0x4b182a(_0x3cdddd),_0x24ab13=new _0x4114ac(_0x3cdddd);_0x4eb5c1['buttonView']['set']({'icon':_0x21a730['history'],'label':m(_0x3cdddd,'Revision\x20history')});const _0xd3812d=new _0x1552f0(_0x3cdddd,_0x4eb5c1),_0x3207f1=new _0x192462(_0x3cdddd);_0x3207f1['set']({'label':m(_0x3cdddd,'Save\x20current\x20revision')}),_0x3207f1['delegate']('execute')['to'](_0x4eb5c1),_0x3207f1['on']('execute',()=>{this['_showDialog']();}),_0xd3812d['children']['add'](_0x3207f1),_0x24ab13['items']['add'](_0xd3812d);const _0x1bc3be=new _0x1552f0(_0x3cdddd,_0x4eb5c1),_0x4a9f07=new _0x192462(_0x3cdddd);return _0x4a9f07['set']({'label':m(_0x3cdddd,'Open\x20revision\x20history')}),_0x4a9f07['delegate']('execute')['to'](_0x4eb5c1),_0x4a9f07['on']('execute',()=>{_0x1df017['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1bc3be['children']['add'](_0x4a9f07),_0x24ab13['items']['add'](_0x1bc3be),_0x4eb5c1['panelView']['children']['add'](_0x24ab13),_0x4eb5c1;}['_showDialog'](){const _0x29533e=this['editor'],_0x46f341=_0x29533e['locale'],_0x16baaf=_0x29533e['plugins']['get']('Dialog'),_0x5e3e34=_0x29533e['plugins']['get']('RevisionTracker');function _0x1cdf79(_0x5551eb){_0x29533e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5551eb['revisionName']?_0x5551eb['revisionNameInputView']['errorText']=m(_0x46f341,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29533e['plugins']['get'](l)['saveRevision']({'name':_0x5551eb['revisionName']}),_0x16baaf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1cdf79(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x16baaf['show']({'id':'revisionSave','title':m(_0x46f341,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29533e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x16baaf['hide']()},{'label':m(_0x29533e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x117dc4){_0x117dc4['bind']('isEnabled')['to'](_0x5e3e34,'isReady',_0x5e3e34,'isEnabled',_0x29533e,'isReadOnly',(_0x26caeb,_0xa49649,_0x507516)=>_0x26caeb&&_0xa49649&&!_0x507516);},'onExecute':()=>_0x1cdf79(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x390a48=this['editor'],_0x12a528=_0x390a48['locale'];this['_saveRevisionFormView']=new hs(_0x12a528,_0x390a48['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x89c509,_0x5ae20f){super(_0x89c509),this['_model']=_0x5ae20f,this['changeId']=_0x5ae20f['id'];const _0x59c708=this['bindTemplate'],_0x306637=m(_0x89c509,_0x5ae20f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ae20f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ae20f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x59c708['to']('type',_0x11bbf0=>'ck-revision-change__'+_0x11bbf0)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x306637}]},{'text':'\x20'+_0x5ae20f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4fd89f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x296442){super(),this['id']=_0x296442['id']||_0x578618(),this['author']=_0x296442['author'],this['type']=_0x296442['type'],this['data']=_0x296442['data']||{},this['rootName']=_0x296442['rootName'],this['set']('createdAt',_0x296442['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x25dbd4,_0x1cbeda){this['newRevisionId']=_0x25dbd4,this['oldRevisionId']=_0x1cbeda,this['changes']=new _0x161991();}['_setChanges'](_0x186242){for(const _0x53fe19 of _0x186242)this['changes']['add'](_0x53fe19);}}const Y={'c':_0xec8fe4,'a':_0x3da424,'e':_0x1342ac,'r':_0x296252,'u':_0x199ea4};class d extends _0xa208af{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xe25c4c,_0x3cbc4d,j];}constructor(_0x312274){super(_0x312274),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x578aaf,_0x2a0389,_0x6b1f64)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xf4c61c=>{for(const _0x4a32a1 of this['editor']['editing']['view']['document']['roots'])_0x6b1f64?_0xf4c61c['removeClass']('ck-editor__editable__overlay',_0x4a32a1):_0xf4c61c['addClass']('ck-editor__editable__overlay',_0x4a32a1);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4837d9=>null!==_0x4837d9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x142617,_0x54dfd4,_0x2be68f)=>_0x142617&&_0x2be68f?_0x54dfd4['changes']['getIndex'](_0x2be68f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2b4720,_0x36bb59)=>_0x2b4720?_0x36bb59['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3cbc4d);}['init'](){const _0x56dc40=this['editor'],_0xd735f0=new _t(_0x56dc40,{'direction':'backward'}),_0x4c177c=new _t(_0x56dc40,{'direction':'forward'});(_0x56dc40['commands']['add']('showPreviousChange',_0xd735f0),_0x56dc40['commands']['add']('showNextChange',_0x4c177c),_0x56dc40['commands']['add']('restoreRevision',new pt(_0x56dc40)),this['on']('change:numberOfChanges',()=>{_0xd735f0['refresh'](),_0x4c177c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x56dc40['enableReadOnlyMode']('revision-viewer'),_0x56dc40['plugins']['has']('WidgetToolbarRepository'))&&_0x56dc40['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x14f9f1){await this['loadRevisionData'](_0x14f9f1);const _0x3cba20={};for(const _0x550e1d in _0x14f9f1['diffData']){if(_0x14f9f1['diffData'][_0x550e1d]['attachChange']&&!_0x14f9f1['diffData'][_0x550e1d]['attachChange']['isAttached'])continue;const _0x4905d1=this['_removeRevisionMarkers'](JSON['parse'](_0x14f9f1['diffData'][_0x550e1d]['insertions'])),_0x22eb55=this['editor']['editing']['view']['document'],_0x495d30=new _0x5cccec(_0x22eb55,_0x4905d1['map'](_0x15198f=>this['_getViewObj'](_0x15198f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3cba20[_0x550e1d]=this['editor']['data']['processor']['toData'](_0x495d30),this['editor']['data']['processor']['useFillerType']('default');}return _0x3cba20;}async['getRevisionRootsAttributes'](_0x2dc103){await this['loadRevisionData'](_0x2dc103);const _0x5c6c66={};for(const _0x527445 in _0x2dc103['diffData'])_0x2dc103['diffData'][_0x527445]['attachChange']&&!_0x2dc103['diffData'][_0x527445]['attachChange']['isAttached']||(_0x5c6c66[_0x527445]=_0x2dc103['diffData'][_0x527445]['attributesAfter']||{});return _0x5c6c66;}['_removeRevisionMarkers'](_0x199471){return(_0x199471=_0x199471['filter'](_0x28a918=>!_0x28a918['name']||'revision-start'!==_0x28a918['name']&&'revision-end'!==_0x28a918['name']))['forEach'](_0x3f07d3=>{'string'!=typeof _0x3f07d3&&(_0x3f07d3['children']=this['_removeRevisionMarkers'](_0x3f07d3['children']),_0x3f07d3['attributes']=_0x3f07d3['attributes']['filter'](_0x236f3f=>!_0x236f3f[0x0]['startsWith']('data-revision-')));}),_0x199471;}async['compare'](_0x5c922a,_0x50dd50,_0x4c59d6=!0x1){if(!this['isEnabled'])return;const _0x3957a8=this['diff'],_0xb6cc2=this['repository'],_0x3d2d86='string'==typeof _0x5c922a?_0xb6cc2['getRevision'](_0x5c922a):_0x5c922a,_0x1ff906='string'==typeof _0x50dd50?_0xb6cc2['getRevision'](_0x50dd50):_0x50dd50,_0x4b3112=_0x3d2d86['id'],_0x1e52cf=_0x1ff906?_0x1ff906['id']:null;if(!_0x4c59d6&&this['diff']&&this['diff']['newRevisionId']===_0x4b3112&&this['diff']['oldRevisionId']===_0x1e52cf)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4b3112,_0x1e52cf);const _0x106b1e=this['_getRevisionsRange'](_0x3d2d86,_0x1ff906,!0x0)['map'](_0x1e1175=>this['loadRevisionData'](_0x1e1175));return _0x106b1e['push'](new Promise(_0x895d65=>{setTimeout(_0x895d65,0x14);})),Promise['all'](_0x106b1e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x20914b=this['_getDiff'](_0x4b3112,_0x1e52cf);for(const _0x204a5c of _0x20914b['changes'])this['_changeIdToChange']['set'](_0x204a5c['id'],_0x204a5c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb99c5c=>{for(const _0x3af6cc of this['editor']['model']['document']['getRootNames']())_0xb99c5c['detachRoot'](_0x3af6cc);for(const _0x197217 of Object['keys'](_0x20914b['model'])){const _0x4fd3a9=_0xb99c5c['addRoot'](_0x197217);for(const _0xd1466c of Object['keys'](_0x20914b['attributes'][_0x197217]))_0xb99c5c['setAttribute'](_0xd1466c,_0x20914b['attributes'][_0x197217][_0xd1466c],_0x4fd3a9);_0xb99c5c['insert'](_0x20914b['model'][_0x197217],_0x4fd3a9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x20914b['changes'])),this['isReady']=!0x0;})['catch'](_0x2e46dd=>{console['error'](_0x2e46dd),this['_cleanUp'](),_0x3957a8&&(this['diff']=_0x3957a8),this['isReady']=!0x0;});}['addRevisionData'](_0x271bf5,_0x5bb923){const _0x6b134c=this['repository']['createRevision'](_0x271bf5);return _0x6b134c['on']('_update',(_0x410a76,_0x189459,_0x56e240)=>_0x5bb923(_0x189459,_0x56e240,_0x6b134c)),this['repository']['addRevision'](_0x6b134c),_0x6b134c;}['loadRevisionData'](_0x63b40b){if(!_0x63b40b||_0x63b40b['diffData'])return Promise['resolve']();{const _0x496a68=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x496a68,'revisionId':_0x63b40b['id']})['then'](_0x53431b=>{_0x63b40b['_update']({'diffData':_0x53431b['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5dc72f=>{for(const _0x3e57af of this['editor']['model']['document']['getRootNames']())_0x5dc72f['detachRoot'](_0x3e57af);});}['_sortAndFilterDiffChanges'](_0x2282f7){const _0x5ad919=[],_0x21c48b=new Map();for(const _0x46e08b of this['editor']['model']['document']['getRootNames']()){const _0x316ef2=this['editor']['editing']['view']['getDomRoot'](_0x46e08b);if(!_0x316ef2)continue;const _0x5743d7=_0x316ef2['getClientRects']()['item'](0x0);_0x5743d7&&(_0x5ad919['push'](_0x46e08b),_0x21c48b['set'](_0x46e08b,_0x5743d7));}return _0x5ad919['sort']((_0x16d5f8,_0x4bf26e)=>{const _0x3f2e6b=_0x21c48b['get'](_0x16d5f8),_0x35701e=_0x21c48b['get'](_0x4bf26e);return _0x3f2e6b['y']-_0x35701e['y']||_0x3f2e6b['x']-_0x35701e['x'];}),(_0x2282f7=_0x2282f7['filter'](_0x415af2=>_0x5ad919['includes'](_0x415af2['rootName'])))['sort']((_0x1ac4e3,_0x123848)=>_0x5ad919['indexOf'](_0x1ac4e3['rootName'])-_0x5ad919['indexOf'](_0x123848['rootName'])),_0x2282f7;}['_makeTape'](_0x1cc493){const _0x24bb0a=Array['from'](_0x1cc493['markers'])['filter'](([_0x5cac85,_0x422628])=>_0x5cac85['startsWith']('revision:')&&!_0x422628['isCollapsed']),_0x3cef58=Array['from'](this['editor']['model']['createRangeIn'](_0x1cc493)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x24bb0a['length'])for(const _0x49909f of _0x3cef58){const [_0x1e8eee,_0x43d721]=_0x24bb0a[0x0],[,_0x5ab7f0,_0x24afc5]=_0x1e8eee['split'](':');if(_0x43d721['end']['isEqual'](_0x49909f['nextPosition'])&&_0x24bb0a['shift'](),(_0x49909f['previousPosition']['isEqual'](_0x43d721['start'])||_0x49909f['previousPosition']['isAfter'](_0x43d721['start']))&&('insertion'==_0x5ab7f0?_0x49909f['isAdded']={'userId':_0x24afc5}:'deletion'==_0x5ab7f0&&(_0x49909f['isRemoved']={'userId':_0x24afc5})),0x0==_0x24bb0a['length'])break;}return _0x3cef58;}['_refreshStartEndIndex'](_0x5cadf8){const _0x10246f=new Map();for(let _0x52467d=0x0;_0x52467d<_0x5cadf8['length'];_0x52467d++)'text'===_0x5cadf8[_0x52467d]['type']?(_0x5cadf8[_0x52467d]['item']['startIndex']=_0x52467d,_0x5cadf8[_0x52467d]['item']['endIndex']=_0x52467d):('elementStart'===_0x5cadf8[_0x52467d]['type']?_0x5cadf8[_0x52467d]['item']['startIndex']=_0x52467d:'elementEnd'===_0x5cadf8[_0x52467d]['type']&&(_0x5cadf8[_0x52467d]['item']['endIndex']=_0x52467d),_0x10246f['set'](_0x5cadf8[_0x52467d]['id'],_0x52467d));for(const _0x2a5cd5 of _0x10246f['values']())'elementStart'===_0x5cadf8[_0x2a5cd5]['type']?_0x5cadf8[_0x2a5cd5]['item']['endIndex']=_0x10246f['get'](_0x5cadf8[_0x2a5cd5]['pairId']):'elementEnd'===_0x5cadf8[_0x2a5cd5]['type']&&(_0x5cadf8[_0x2a5cd5]['item']['startIndex']=_0x10246f['get'](_0x5cadf8[_0x2a5cd5]['pairId']));}['_processTape'](_0x101874){for(let _0x29e6a7=0x0;_0x29e6a7<_0x101874['length'];_0x29e6a7++){if('elementStart'===_0x101874[_0x29e6a7]['type'])_0x101874[_0x29e6a7]['item']['startIndex']=_0x29e6a7;else{if('elementEnd'===_0x101874[_0x29e6a7]['type']){_0x101874[_0x29e6a7]['item']['endIndex']=_0x29e6a7;const _0x2e50ec=_0x101874[_0x29e6a7]['item']['startIndex'];_0x101874[_0x2e50ec]['pairId']=_0x101874[_0x29e6a7]['id'],_0x101874[_0x29e6a7]['pairId']=_0x101874[_0x2e50ec]['id'];}else _0x101874[_0x29e6a7]['item']['startIndex']=_0x29e6a7,_0x101874[_0x29e6a7]['item']['endIndex']=_0x29e6a7,_0x101874[_0x29e6a7]['pairId']=null;}_0x101874[_0x29e6a7]['markersStart']||(_0x101874[_0x29e6a7]['markersStart']=[],_0x101874[_0x29e6a7]['markersEnd']=[]);}}['_markInsertions'](_0x3ae7af,_0x2920c0){const _0x524d0e=_0x3ae7af['filter'](_0xf53591=>!_0xf53591['isAdded']);for(let _0x432e06=0x0;_0x432e06<_0x2920c0['length'];_0x432e06++)_0x2920c0[_0x432e06]['isAdded']&&(_0x524d0e[_0x432e06]['isAdded']=_0x2920c0[_0x432e06]['isAdded']);}['_makeModelFromViewString'](_0x1d157d){const _0xbf0fc=JSON['parse'](_0x1d157d),_0x55776a=this['editor']['editing']['view']['document'],_0x279b1b=new _0x5cccec(_0x55776a,_0xbf0fc['map'](_0x38fcbc=>this['_getViewObj'](_0x38fcbc)));return this['editor']['data']['toModel'](_0x279b1b);}['_getViewObj'](_0x3613ca){const _0x5cfcac=this['editor']['editing']['view']['document'];if('string'==typeof _0x3613ca)return new _0x5f3898(_0x5cfcac,_0x3613ca);{const _0x49c07f=_0x3613ca['children']['map'](_0x3a27f3=>this['_getViewObj'](_0x3a27f3));return new(Y[_0x3613ca['type']]||_0x352ec7)(_0x5cfcac,_0x3613ca['name'],_0x3613ca['attributes'],_0x49c07f);}}['_getDiff'](_0x4f88bf,_0x44eae1=null){const _0xb4a5f2=this['repository']['getRevision'](_0x4f88bf),_0x57c2da=_0x44eae1?this['repository']['getRevision'](_0x44eae1):null,_0x134189=this['_getRevisionsRange'](_0xb4a5f2,_0x57c2da),_0x54bc39=_0x134189[_0x134189['length']-0x1],_0x7709d5=new Map(),_0x3c36ad={'model':{},'attributes':{},'changes':[]},_0x2ca578=new Set(),_0x30e8b3=new Map();for(let _0x263dff=_0x134189['length']-0x1;_0x263dff>=0x0;_0x263dff--){const _0x5a403b=_0x134189[_0x263dff];for(const _0x3da345 of Object['keys'](_0x5a403b['diffData']))if(_0x5a403b['diffData'][_0x3da345]['attachChange']){const _0xef5ea3=_0x5a403b['diffData'][_0x3da345]['attachChange'];_0xef5ea3['isAttached']?(_0x2ca578['add'](_0x3da345),_0x30e8b3['has'](_0x3da345)&&_0x30e8b3['get'](_0x3da345)['userId']==_0xef5ea3['userId']?_0x30e8b3['delete'](_0x3da345):_0x30e8b3['set'](_0x3da345,_0xef5ea3)):_0x30e8b3['has'](_0x3da345)?(_0x2ca578['delete'](_0x3da345),_0x30e8b3['delete'](_0x3da345)):(_0x2ca578['add'](_0x3da345),_0x30e8b3['set'](_0x3da345,_0xef5ea3));}else _0x2ca578['add'](_0x3da345);}for(const _0x2053b5 of _0x2ca578){const _0x72947b=_0x30e8b3['has'](_0x2053b5)&&!_0x30e8b3['get'](_0x2053b5)['isAttached'];let _0x111df7=_0x72947b?_0x134189['length']-0x1:0x0;const _0x4db426=_0x72947b?-0x1:0x1;for(;_0x134189[_0x111df7];){const _0x468f91=_0x134189[_0x111df7];if(_0x468f91['diffData'][_0x2053b5]){const _0x6dc3f6=_0x72947b?_0x468f91['diffData'][_0x2053b5]['attributesBefore']:_0x468f91['diffData'][_0x2053b5]['attributesAfter'];_0x3c36ad['attributes'][_0x2053b5]=_0x6dc3f6?_0x2124ff(_0x6dc3f6):{};break;}_0x111df7+=_0x4db426;}}for(const _0x5477a7 of _0x134189){_0x5477a7['model']={};for(const _0x6b7ea8 of _0x5477a7['authors'])_0x7709d5['set'](_0x6b7ea8['id'],_0x6b7ea8);for(const _0x236f03 of _0x2ca578){const _0x4e4051=_0x5477a7['diffData'][_0x236f03]?_0x5477a7['diffData'][_0x236f03]['insertions']:'[]',_0x2281b5=_0x5477a7['diffData'][_0x236f03]?_0x5477a7['diffData'][_0x236f03]['deletions']:'[]';_0x5477a7['model'][_0x236f03]={'insertions':this['_makeModelFromViewString'](_0x4e4051),'deletions':this['_makeModelFromViewString'](_0x2281b5)};}}for(const _0x99a295 of _0x2ca578){let _0x3554c3=null,_0x22b876=0x0;const _0x24b072=new Map(Array['from'](_0xb4a5f2['model'][_0x99a295]['insertions']['markers'])['filter'](([_0x1859f6])=>!_0x1859f6['startsWith']('revision:')));let _0x1b45af=0x0;for(const _0x33b54e of _0x134189){const _0x3632b2=this['_makeTape'](_0x33b54e['model'][_0x99a295]['insertions']);_0x33b54e==_0xb4a5f2?(_0x3554c3=_0x3632b2,_0x22b876=_0x3554c3['length'],_0x3554c3['forEach'](_0x2a470b=>{_0x2a470b['id']=_0x1b45af++;}),this['_processTape'](_0x3554c3)):this['_markInsertions'](_0x3554c3,_0x3632b2);const _0x364447=_0x3554c3['filter'](_0x1b749c=>!_0x1b749c['isAdded'])['map'](_0x250bcc=>_0x250bcc['id']);let _0x227800=0x0;const _0x3b014e=this['_makeTape'](_0x33b54e['model'][_0x99a295]['deletions']);_0x3b014e['forEach'](_0x5effa6=>{_0x5effa6['isRemoved']?_0x5effa6['id']=_0x22b876++:_0x5effa6['id']=_0x364447[_0x227800++];}),this['_processTape'](_0x3b014e),this['_setDistance'](_0x3554c3,'isAdded'),this['_setDistance'](_0x3b014e,'isRemoved'),_0x33b54e==_0xb4a5f2&&this['_markMarkers'](_0x3554c3,_0x24b072),_0x3554c3=this['_joinTapes'](_0x3554c3,_0x3b014e),this['_refreshStartEndIndex'](_0x3554c3),this['_setDistance'](_0x3554c3,'isRemoved');}_0x3554c3=_0x3554c3['filter'](_0x4005ab=>!(_0x4005ab['isAdded']&&_0x4005ab['isRemoved']));const _0x30428b=new Map(_0x54bc39['model'][_0x99a295]['deletions']['markers']),_0xf5d9d8=new Set(_0x24b072['keys']());for(const _0x530cf1 of _0x30428b['keys']())_0xf5d9d8['delete'](_0x530cf1);this['_markSuggestions'](_0x3554c3,_0xf5d9d8),this['_fixObsoleteTags'](_0x3554c3),_0x3554c3=this['_removeMissingPairs'](_0x3554c3),_0x3554c3=this['_markMismatchedRemovedTags'](_0x3554c3),_0x3554c3=this['_removeUnsupportedChanges'](_0x3554c3);const {root:_0x348797,changes:_0x80949e}=this['_makeModelFromTape'](_0x3554c3,_0x7709d5,_0x99a295);_0x3c36ad['model'][_0x99a295]=_0x348797;const _0x82707c=_0x30e8b3['get'](_0x99a295);if(_0x82707c){const _0x246a28=_0x7709d5['get'](_0x82707c['userId']),_0x5e73d6=new r({'author':_0x246a28,'type':_0x82707c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x99a295});_0x80949e['unshift'](_0x5e73d6),_0x3c36ad['attributes'][_0x99a295]['revisionHistoryAttachChange']=_0x5e73d6['id'];}_0x3c36ad['changes']=_0x3c36ad['changes']['concat'](_0x80949e);}return _0x3c36ad;}['_markMarkers'](_0x5b31a7,_0x4cffd6){for(let _0x1b13e9=0x0;_0x1b13e9<_0x5b31a7['length'];_0x1b13e9++)for(const [_0x4e1ce4,_0xdc02b7]of _0x4cffd6)_0xdc02b7['start']['isEqual'](_0x5b31a7[_0x1b13e9]['previousPosition'])&&_0x5b31a7[_0x1b13e9]['markersStart']['push'](_0x4e1ce4),_0xdc02b7['end']['isEqual'](_0x5b31a7[_0x1b13e9]['nextPosition'])&&_0x5b31a7[_0x1b13e9]['markersEnd']['push'](_0x4e1ce4);}['_joinTapes'](_0x22f00,_0x3bd6b3){let _0x51ccde=[],_0x58f3b2=0x0,_0xdbdad7=0x0;for(;_0x58f3b2<_0x22f00['length']||_0xdbdad7<_0x3bd6b3['length'];){const _0x12373e=_0x22f00[_0x58f3b2]||{},_0x393d44=_0x3bd6b3[_0xdbdad7]||{};if(_0x12373e['id']==_0x393d44['id'])_0x58f3b2++,_0xdbdad7++,_0x51ccde['push'](_0x12373e);else{if(_0x393d44['isRemoved']&&_0x12373e['isAdded']){const {commonTape:_0x50ad1e,iEnd:_0x1049da,jEnd:_0x474b6b}=this['_threeWayMerge'](_0x22f00,_0x58f3b2,_0x3bd6b3,_0xdbdad7);_0x51ccde=_0x51ccde['concat'](_0x50ad1e),_0x58f3b2=_0x1049da,_0xdbdad7=_0x474b6b;}else _0x393d44['isRemoved']?(_0xdbdad7++,_0x51ccde['push'](_0x393d44)):(_0x58f3b2++,_0x51ccde['push'](_0x12373e));}}return _0x51ccde;}['_markSuggestions'](_0x4e1cfe,_0x12cfee){const _0x5b0c2b=[];for(let _0x4df6f5=0x0;_0x4df6f5<_0x4e1cfe['length'];_0x4df6f5++){for(let _0x452fe2=0x0;_0x452fe2<_0x4e1cfe[_0x4df6f5]['markersStart']['length'];_0x452fe2++){const _0x3842e3=_0x4e1cfe[_0x4df6f5]['markersStart'][_0x452fe2];if(!_0x12cfee['has'](_0x3842e3))continue;const {group:_0x45b04b,type:_0x5e8321,authorId:_0x46fdeb}=_0xb2932d(_0x3842e3);'revision-suggestion'!=_0x45b04b||'insertion'!=_0x5e8321&&'deletion'!=_0x5e8321||(_0x5b0c2b['unshift']({'type':_0x5e8321,'name':_0x3842e3,'userId':_0x46fdeb}),_0x4e1cfe[_0x4df6f5]['markersStart']['splice'](_0x452fe2,0x1),_0x452fe2--);}_0x15d8b2(_0x4e1cfe[_0x4df6f5]);for(let _0x2fd907=0x0;_0x2fd907<_0x4e1cfe[_0x4df6f5]['markersEnd']['length'];_0x2fd907++){const _0x1341fa=_0x4e1cfe[_0x4df6f5]['markersEnd'][_0x2fd907];if(!_0x12cfee['has'](_0x1341fa))continue;const {group:_0x152fc1,type:_0x2d9a4f}=_0xb2932d(_0x1341fa);if('revision-suggestion'!=_0x152fc1||'insertion'!=_0x2d9a4f&&'deletion'!=_0x2d9a4f)continue;_0x4e1cfe[_0x4df6f5]['markersEnd']['splice'](_0x2fd907,0x1),_0x2fd907--;const _0x114658=_0x5b0c2b['findIndex'](_0x7e8ef8=>_0x7e8ef8['name']==_0x1341fa);_0x114658>-0x1&&_0x5b0c2b['splice'](_0x114658,0x1);}}function _0xb2932d(_0xbbea78){const _0x266c0e=_0xbbea78['split'](':');return{'group':_0x266c0e[0x0],'type':_0x266c0e[0x1],'subType':_0x266c0e['length']>=0x5?_0x266c0e[0x2]:null,'id':_0x266c0e['length']<0x5?_0x266c0e[0x2]:_0x266c0e[0x3],'authorId':_0x266c0e['length']<0x5?_0x266c0e[0x3]:_0x266c0e[0x4],'markerCount':0x6==_0x266c0e['length']?_0x266c0e[0x5]:null};}function _0x15d8b2(_0x342211){for(let _0x5b42f0=0x0;_0x5b42f0<_0x5b0c2b['length'];_0x5b42f0++){if(_0x342211['isAdded']&&'insertion'==_0x5b0c2b[_0x5b42f0]['type'])return _0x342211['isAddSuggestion']=_0x5b0c2b[_0x5b42f0],void delete _0x342211['isAdded'];if(!_0x342211['isAdded']&&!_0x342211['isRemoved']&&'deletion'==_0x5b0c2b[_0x5b42f0]['type'])return void(_0x342211['isRemoveSuggestion']=_0x5b0c2b[_0x5b42f0]);}}}['_setDistance'](_0xfcc2c1,_0xb0406d){let _0x156ebb=0x0,_0x59fbf0=!0x1;const _0x360350=new Map();for(const _0x459632 of _0xfcc2c1)_0x459632[_0xb0406d]?_0x59fbf0&&(_0x156ebb++,_0x59fbf0=!0x1):(_0x156ebb++,_0x59fbf0=!0x0),_0x360350['set'](_0x459632['id'],_0x156ebb);for(let _0x21cffe=0x0;_0x21cffe<_0xfcc2c1['length'];_0x21cffe++){if('isRemoved'==_0xb0406d&&_0xfcc2c1[_0x21cffe]['isAdded']||'isAdded'==_0xb0406d&&_0xfcc2c1[_0x21cffe]['isRemoved'])continue;if('text'==_0xfcc2c1[_0x21cffe]['type']){_0xfcc2c1[_0x21cffe]['distance']=0x0;continue;}const _0x1966d0=_0x360350['get'](_0xfcc2c1[_0x21cffe]['pairId']),_0x2545a7=_0x360350['get'](_0xfcc2c1[_0x21cffe]['id']);_0xfcc2c1[_0x21cffe]['distance']=_0x1966d0-_0x2545a7;}}['_getRevisionsRange'](_0x487496,_0x234349,_0x930e99=!0x1){const _0x5f5a48=[];let _0x43b68b=this['repository']['getIndex'](_0x487496),_0x7bcc02=this['repository']['getIndex'](_0x234349);for(-0x1==_0x7bcc02&&(_0x7bcc02=this['repository']['_revisions']['length'],_0x930e99=!0x1);_0x43b68b<_0x7bcc02;)_0x5f5a48['push'](this['repository']['getRevision'](_0x43b68b)),_0x43b68b++;return _0x930e99&&_0x5f5a48['push'](this['repository']['getRevision'](_0x43b68b)),_0x5f5a48;}['_threeWayMerge'](_0x2ef2de,_0x3213d2,_0x3ee9d6,_0x396fa2){const _0xc117fd=this['editor']['model']['schema'];let _0x18973c=_0x3213d2;for(;_0x2ef2de[_0x18973c]&&_0x2ef2de[_0x18973c]['isAdded'];)_0x18973c++;let _0x52118=_0x396fa2;for(;_0x3ee9d6[_0x52118]&&_0x3ee9d6[_0x52118]['isRemoved'];)_0x52118++;_0x22980f(_0x2ef2de,_0x3213d2,_0x18973c),_0x22980f(_0x3ee9d6,_0x396fa2,_0x52118);const _0x353e2c=_0x3ee9d6['slice'](_0x396fa2,_0x52118)['concat'](_0x2ef2de['slice'](_0x3213d2,_0x18973c));return _0x353e2c['sort']((_0x3b7949,_0xcc76a)=>_0x3b7949['side']!=_0xcc76a['side']?_0x3b7949['side']-_0xcc76a['side']:_0x3b7949['level']!=_0xcc76a['level']?_0x3b7949['level']-_0xcc76a['level']:_0x3b7949['distance']!=_0xcc76a['distance']?_0xcc76a['distance']-_0x3b7949['distance']:!!_0x3b7949['isAdded']!=!!_0xcc76a['isAdded']?-0x1==_0x3b7949['side']||0x0==_0x3b7949['side']?_0x3b7949['isAdded']?-0x1:0x1:_0x3b7949['isAdded']?0x1:-0x1:_0x3b7949['index']-_0xcc76a['index']),{'commonTape':_0x353e2c,'iEnd':_0x18973c,'jEnd':_0x52118};function _0x22980f(_0x5a7f81,_0x16d393,_0x56d79c){let _0x41d0b0=-0x1,_0x3975fe=Number['POSITIVE_INFINITY'],_0x14b45b=!0x0;for(let _0x52b679=_0x16d393;_0x52b679<_0x56d79c;_0x52b679++)if(_0xc117fd['isInline'](_0x5a7f81[_0x52b679]['item'])||(_0x14b45b=!0x1),_0x5a7f81[_0x52b679]['item']['startIndex']<_0x16d393&&(_0x41d0b0=_0x52b679),_0x5a7f81[_0x52b679]['item']['endIndex']>=_0x56d79c){_0x3975fe=_0x52b679;break;}_0x14b45b&&(_0x41d0b0=_0x56d79c-0x1);for(let _0x2ca013=_0x16d393;_0x2ca013<_0x56d79c;_0x2ca013++)_0x5a7f81[_0x2ca013]['side']=_0x2ca013<=_0x41d0b0?-0x1:_0x2ca013<_0x3975fe?0x0:0x1,_0x5a7f81[_0x2ca013]['index']=_0x2ca013;let _0x290011=0x0;for(let _0xfc5514=_0x16d393;_0xfc5514<=_0x41d0b0;_0xfc5514++)0x0==_0x5a7f81[_0xfc5514]['distance']?_0x5a7f81[_0xfc5514]['level']=_0x290011:(_0x290011++,_0x5a7f81[_0xfc5514]['level']=_0x290011,_0x290011++);for(let _0x4bd99b=_0x16d393;_0x4bd99b<_0x56d79c;_0x4bd99b++)0x0==_0x5a7f81[_0x4bd99b]['side']&&(_0x5a7f81[_0x4bd99b]['level']=_0x290011);_0x290011=0x0;for(let _0x594cf7=_0x56d79c-0x1;_0x594cf7>=_0x3975fe;_0x594cf7--)0x0==_0x5a7f81[_0x594cf7]['distance']?_0x5a7f81[_0x594cf7]['level']=_0x290011:(_0x290011--,_0x5a7f81[_0x594cf7]['level']=_0x290011,_0x290011--);}}['_fixObsoleteTags'](_0x5b2eff){const _0x1c2238=new Map(),_0x5708e8=this['editor']['model']['schema'];for(let _0x2eea85=0x1;_0x2eea85<_0x5b2eff['length'];_0x2eea85++){let _0x76fcef,_0x1561f0,_0x523029;const _0x3c66ba=_0x5b2eff[_0x2eea85],_0xab3b76=_0x5b2eff[_0x2eea85-0x1];if('text'==_0x3c66ba['type'])continue;if(_0x3c66ba['type']!=_0xab3b76['type'])continue;if(!_0x5708e8['isBlock'](_0xab3b76['item'])||_0x5708e8['isLimit'](_0xab3b76['item']))continue;if(!_0x5708e8['isBlock'](_0x3c66ba['item'])||_0x5708e8['isLimit'](_0x3c66ba['item']))continue;if((_0x5b2eff[_0x2eea85]['isAdded']||_0x5b2eff[_0x2eea85]['isAddSuggestion'])&&_0x5b2eff[_0x2eea85-0x1]['isRemoved'])_0x76fcef=_0x5b2eff[_0x2eea85],_0x1561f0=_0x5b2eff[_0x2eea85-0x1],_0x523029=_0x2eea85-0x1;else{if(!_0x5b2eff[_0x2eea85]['isRemoved']||!_0x5b2eff[_0x2eea85-0x1]['isAdded']&&!_0x5b2eff[_0x2eea85-0x1]['isAddSuggestion'])continue;_0x76fcef=_0x5b2eff[_0x2eea85-0x1],_0x1561f0=_0x5b2eff[_0x2eea85],_0x523029=_0x2eea85;}const _0xfd154f=_0x76fcef['level']==_0x1561f0['level'],_0x444fd2=Math['abs'](_0x76fcef['level'])<Math['abs'](_0x1561f0['level'])&&0x0==_0x1561f0['distance'];(_0xfd154f||_0x444fd2)&&(_0x1c2238['set'](_0x1561f0['id'],_0x76fcef['id']),_0x5b2eff['splice'](_0x523029,0x1),_0x2eea85--,_0x76fcef['isAdded']=!0x1);}for(let _0x41580e=0x0;_0x41580e<_0x5b2eff['length'];_0x41580e++)_0x1c2238['has'](_0x5b2eff[_0x41580e]['pairId'])&&(_0x5b2eff[_0x41580e]['pairId']=_0x1c2238['get'](_0x5b2eff[_0x41580e]['pairId']));}['_removeMissingPairs'](_0x3cca91){const _0x2ca073=new Set(_0x3cca91['map'](_0x4de978=>_0x4de978['id']));for(let _0x4dfa69=0x0;_0x4dfa69<_0x3cca91['length'];_0x4dfa69++)_0x2ca073['has'](_0x3cca91[_0x4dfa69]['pairId'])||0x0==_0x3cca91[_0x4dfa69]['distance']||(_0x3cca91[_0x4dfa69]['isIncorrect']=!0x0);return _0x3cca91['filter'](_0x56940e=>!_0x56940e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1aeafc){const _0x40f1dc=new Set();for(let _0x4001f1=0x0;_0x4001f1<_0x1aeafc['length'];_0x4001f1++){if(_0x40f1dc['has'](_0x1aeafc[_0x4001f1]['id'])&&_0x1aeafc[_0x4001f1]['isRemoved']&&(_0x1aeafc[_0x4001f1]['isIncorrect']=!0x0),_0x1aeafc[_0x4001f1]['isIncorrect'])continue;if(0x0==_0x1aeafc[_0x4001f1]['distance'])continue;if('elementStart'!=_0x1aeafc[_0x4001f1]['type'])continue;if(null==_0x1aeafc[_0x4001f1]['pairId'])continue;let _0x20b06b=_0x4001f1+0x1,_0x84b868=0x0;for(;_0x1aeafc[_0x20b06b]['id']!=_0x1aeafc[_0x4001f1]['pairId'];)'elementStart'==_0x1aeafc[_0x20b06b]['type']?_0x84b868++:'elementEnd'==_0x1aeafc[_0x20b06b]['type']&&_0x84b868--,_0x20b06b++;if(0x0!=_0x84b868){if(_0x1aeafc[_0x4001f1]['isRemoved'])_0x1aeafc[_0x4001f1]['isIncorrect']=!0x0;else{for(;_0x20b06b!=_0x4001f1;)_0x1aeafc[_0x20b06b]['isRemoved']&&0x0!=_0x1aeafc[_0x20b06b]['distance']&&(_0x1aeafc[_0x20b06b]['isIncorrect']=!0x0,_0x40f1dc['add'](_0x1aeafc[_0x20b06b]['pairId'])),_0x20b06b--;}}}return _0x1aeafc['filter'](_0x2b8dd2=>!_0x2b8dd2['isIncorrect']);}['_removeUnsupportedChanges'](_0x4e6d14){const _0x563d92=this['editor']['model']['schema'];for(let _0x343bec=0x0;_0x343bec<_0x4e6d14['length'];_0x343bec++){if(!(_0x4e6d14[_0x343bec]['isAdded']||_0x4e6d14[_0x343bec]['isAddSuggestion']||_0x4e6d14[_0x343bec]['isRemoved']||_0x4e6d14[_0x343bec]['isRemoveSuggestion']))continue;if(0x0==_0x4e6d14[_0x343bec]['distance'])continue;const _0x2d9b59=_0x4e6d14[_0x343bec]['item'];_0x563d92['isBlock'](_0x2d9b59)||_0x563d92['isLimit'](_0x2d9b59)||(_0x4e6d14[_0x343bec]['isAdded']&&delete _0x4e6d14[_0x343bec]['isAdded'],_0x4e6d14[_0x343bec]['isAddSuggestion']&&delete _0x4e6d14[_0x343bec]['isAddSuggestion'],_0x4e6d14[_0x343bec]['isRemoveSuggestion']&&delete _0x4e6d14[_0x343bec]['isRemoveSuggestion'],_0x4e6d14[_0x343bec]['isRemoved']&&(_0x4e6d14[_0x343bec]['isIncorrect']=!0x0));}return _0x4e6d14['filter'](_0x5c7d5f=>!_0x5c7d5f['isIncorrect']);}['_makeModelFromTape'](_0x33f772,_0x379e0b,_0x504242){const _0x503be4=new mt(),_0x51e54b=[],_0x57325f=new Map(),_0x3ee0ab=this['editor']['model'],_0x1f4a57=_0x3ee0ab['schema'],_0x5b2ccf=[_0x503be4],_0x93c140={},_0x41733b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2d7a7e=null;const _0x5d9747=[0x0];for(let _0x43c3be=0x0;_0x43c3be<_0x33f772['length'];_0x43c3be++)if('elementStart'===_0x33f772[_0x43c3be]['type']){_0x33f772[_0x43c3be]['previousPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747);const _0x1181d0=new ft(_0x33f772[_0x43c3be]['item']['name'],_0x33f772[_0x43c3be]['item']['getAttributes']());_0x5b2ccf[0x0]['_appendChild'](_0x1181d0),_0x5d9747['push'](0x0),_0x5b2ccf['unshift'](_0x1181d0),_0x33f772[_0x43c3be]['nextPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747);}else'elementEnd'===_0x33f772[_0x43c3be]['type']?(_0x5b2ccf['shift'](),_0x33f772[_0x43c3be]['previousPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747),_0x5d9747['pop'](),_0x5d9747[_0x5d9747['length']-0x1]++,_0x33f772[_0x43c3be]['nextPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747)):(_0x33f772[_0x43c3be]['previousPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747),_0x2d7a7e?_0x2d7a7e['_data']+=_0x33f772[_0x43c3be]['item']['data']:_0x2d7a7e=new wt(_0x33f772[_0x43c3be]['item']['data'],_0x33f772[_0x43c3be]['item']['getAttributes']()),_0x33f772[_0x43c3be+0x1]&&'text'===_0x33f772[_0x43c3be+0x1]['type']&&_0x782f89(_0x2d7a7e,_0x33f772[_0x43c3be+0x1]['item'])||(_0x5b2ccf[0x0]['_appendChild'](_0x2d7a7e),_0x2d7a7e=null),_0x5d9747[_0x5d9747['length']-0x1]+=_0x33f772[_0x43c3be]['item']['offsetSize'],_0x33f772[_0x43c3be]['nextPosition']=_0x3ee0ab['createPositionFromPath'](_0x503be4,_0x5d9747));for(let _0x23054c=0x0;_0x23054c<_0x33f772['length'];_0x23054c++){const _0x33f961=_0x33f772[_0x23054c]['previousPosition'],_0x38f4e4=_0x33f772[_0x23054c]['nextPosition'];for(const _0x4f4c5f of _0x33f772[_0x23054c]['markersStart'])_0x57325f['set'](_0x4f4c5f,{'start':_0x33f961,'end':null});_0x7c7f15('isRemoveSuggestion',_0x23054c,_0x33f961,_0x38f4e4),_0x7c7f15('isAddSuggestion',_0x23054c,_0x33f961,_0x38f4e4),_0x7c7f15('isRemoved',_0x23054c,_0x33f961,_0x38f4e4),_0x7c7f15('isAdded',_0x23054c,_0x33f961,_0x38f4e4);for(const _0x159d2a of _0x33f772[_0x23054c]['markersEnd']){_0x57325f['get'](_0x159d2a)['end']=_0x38f4e4;}}for(const [_0xd1b924,_0x2fc49a]of _0x57325f){const _0x29d7a6=this['editor']['model']['createRange'](_0x2fc49a['start'],_0x2fc49a['end']);_0x503be4['markers']['set'](_0xd1b924,_0x29d7a6);}return _0x51e54b['sort']((_0x543942,_0x5ca1e5)=>{const _0x407568=_0x503be4['markers']['get']('revision:'+_0x543942['id']),_0x95afa4=_0x503be4['markers']['get']('revision:'+_0x5ca1e5['id']);return _0x407568['start']['isBefore'](_0x95afa4['start'])?-0x1:_0x407568['start']['isAfter'](_0x95afa4['start'])?0x1:_0x407568['end']['isBefore'](_0x95afa4['end'])?-0x1:_0x407568['end']['isAfter'](_0x95afa4['end'])?0x1:'add'===_0x543942['type']?-0x1:0x1;}),{'root':_0x503be4,'changes':_0x51e54b};function _0x7c7f15(_0x1020a0,_0x3903b0,_0x577738,_0x2992a0){const _0x46a08c=!!_0x33f772[_0x3903b0][_0x1020a0],_0x3a5239=_0x46a08c?_0x33f772[_0x3903b0][_0x1020a0]['userId']:null,_0x11b3c2=_0x3903b0===_0x33f772['length']-0x1,_0x31b895=_0x41733b[_0x1020a0][0x0],_0x3f7ff5=_0x1f4a57['isObject'](_0x33f772[_0x3903b0]['item']);!_0x93c140[_0x1020a0]&&_0x46a08c?_0x93c140[_0x1020a0]={'start':_0x577738,'tapeItem':_0x33f772[_0x3903b0],'userId':_0x3a5239,'type':_0x1020a0}:_0x93c140[_0x1020a0]&&!_0x46a08c?(_0x93c140[_0x1020a0]['end']=_0x577738,_0x4edebe(_0x93c140[_0x1020a0]),_0x93c140[_0x1020a0]=null):_0x93c140[_0x1020a0]&&_0x46a08c&&_0x93c140[_0x1020a0]['userId']!==_0x3a5239&&(_0x93c140[_0x1020a0]['end']=_0x577738,_0x31b895&&_0x31b895['userId']===_0x93c140[_0x1020a0]['userId']||_0x4edebe(_0x93c140[_0x1020a0]),_0x93c140[_0x1020a0]={'start':_0x577738,'tapeItem':_0x33f772[_0x3903b0],'userId':_0x3a5239,'type':_0x1020a0}),_0x93c140[_0x1020a0]&&_0x3f7ff5&&('elementStart'!==_0x33f772[_0x3903b0]['type']||_0x31b895&&_0x31b895['userId']===_0x3a5239||_0x41733b[_0x1020a0]['unshift']({'userId':_0x3a5239,'object':_0x33f772[_0x3903b0]['item'],'change':_0x93c140[_0x1020a0]}),'elementEnd'===_0x33f772[_0x3903b0]['type']&&_0x31b895&&_0x31b895['object']===_0x33f772[_0x3903b0]['item']&&(_0x41733b[_0x1020a0]['shift'](),_0x93c140[_0x1020a0]=_0x31b895['change'])),_0x93c140[_0x1020a0]&&_0x11b3c2&&(_0x93c140[_0x1020a0]['end']=_0x2992a0,_0x4edebe(_0x93c140[_0x1020a0]),_0x93c140[_0x1020a0]=null);}function _0x4edebe({start:_0x46f5eb,end:_0x463ca0,tapeItem:_0x3c6597,userId:_0x35f600,type:_0x8b59a8}){const _0x4c57b5=_0x3c6597['item'],_0x26fd0a=_0x3ee0ab['schema']['isBlock'](_0x4c57b5)&&!_0x3ee0ab['schema']['isLimit'](_0x4c57b5),_0x307300=_0x46f5eb['nodeAfter']==_0x463ca0['parent']&&_0x463ca0['isAtStart'];if(_0x26fd0a&&_0x307300)return;const _0x1a4784=_0x3ee0ab['createRange'](_0x46f5eb,_0x463ca0),_0x5f3a1e=_0x379e0b['get'](_0x35f600),_0x591e2a=new r({'author':_0x5f3a1e,'type':'isAdded'==_0x8b59a8||'isAddSuggestion'==_0x8b59a8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x8b59a8||'isRemoveSuggestion'==_0x8b59a8},'createdAt':new Date(),'rootName':_0x504242});_0x51e54b['push'](_0x591e2a),_0x503be4['markers']['set']('revision:'+_0x591e2a['id'],_0x1a4784);}function _0x782f89(_0x345e15,_0x35f071){const _0xac2ccf=_0x345e15['getAttributes'](),_0x4bfdda=_0x35f071['getAttributes']();for(const _0x10e33e of _0xac2ccf){if(_0x10e33e[0x1]!==_0x35f071['getAttribute'](_0x10e33e[0x0]))return!0x1;_0x4bfdda['next']();}return _0x4bfdda['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x291f32=>{const _0x410448=_0x291f32['markerName']['split'](':')[0x1],_0x58a7f3=this['_getChangeFromId'](_0x410448);if(!_0x58a7f3)return null;const _0x5f46ef='add'==_0x58a7f3['type']?'insertion':'deletion',_0x112412=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5f46ef];return _0x58a7f3['data']['isSuggestion']&&_0x112412['push']('ck-suggestion-marker-'+_0x5f46ef+'-new'),this['activeChange']==_0x58a7f3&&_0x112412['push']('ck-suggestion-marker--active'),{'classes':_0x112412,'attributes':{'data-change-id':_0x410448}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x14877c=>{_0x14877c['on']('element:pre',(_0x1df689,_0x9b03d2,_0x468cfb)=>{const _0x16bb3c=_0x9b03d2['viewItem']['getChild'](0x0);if(!_0x16bb3c||!_0x16bb3c['is']('element','code'))return;if(!_0x468cfb['consumable']['consume'](_0x16bb3c,{'attributes':['vid_start','vid_end']}))return;const _0x478927=_0x9b03d2['modelRange']['start']['nodeAfter'];_0x468cfb['writer']['setAttribute']('vid_start',_0x16bb3c['getAttribute']('vid_start'),_0x478927),_0x468cfb['writer']['setAttribute']('vid_end',_0x16bb3c['getAttribute']('vid_end'),_0x478927);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2632f8=>{_0x2632f8['on']('element',(_0x5a0ece,_0x21ac0c,_0x198880)=>{if(!_0x198880['consumable']['consume'](_0x21ac0c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x21ac0c['modelRange']['isCollapsed'])return;const _0x398486=_0x21ac0c['modelRange']['start']['nodeAfter'];_0x398486['hasAttribute']('vid_start')||_0x398486['hasAttribute']('vid')||(_0x198880['writer']['setAttribute']('vid_start',_0x21ac0c['viewItem']['getAttribute']('vid_start'),_0x398486),_0x198880['writer']['setAttribute']('vid_end',_0x21ac0c['viewItem']['getAttribute']('vid_end'),_0x398486));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x53d90c=>_0x53d90c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x542107,[,_0x1160f8])=>{['vid_start','vid_end','vid']['includes'](_0x1160f8)&&(_0x542107['return']=!0x0,_0x542107['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1066a9=>{_0x1066a9['on']('attribute:vid',(_0x15c15f,_0x1c2423,_0x2d6734)=>{if('\x20'!=_0x1c2423['item']['data']||_0x1c2423['item']['parent']['maxOffset']>0x1)return;if(!_0x2d6734['consumable']['consume'](_0x1c2423['item'],_0x15c15f['name']))return;const _0x4d984a=_0x2d6734['writer'],_0xd3e492=_0x2d6734['mapper']['toViewRange'](_0x1c2423['range']);_0x4d984a['wrap'](_0xd3e492,_0x4d984a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x515c6f){const _0x5adaec=_0x515c6f['plugins']['get']('RevisionViewer');return(_0x4d7000,_0x462194,_0x5cd053)=>{const _0x303fae=_0x462194['markerName']['split'](':')[0x1],_0x4bccca=_0x5adaec['_getChangeFromId'](_0x303fae);if(!_0x4bccca)return null;const _0x297f2c='add'==_0x4bccca['type']?'split':'merge';if(!_0x5cd053['consumable']['test'](_0x462194['markerRange'],_0x4d7000['name']))return;const _0x51933f=_0x462194['markerRange']['getWalker'](),_0x24815e=_0x462194['markerRange']['start'],_0x57a9a8=_0x515c6f['model']['schema'];let _0x45ec02=null,_0x1b467d=null,_0x336f06=!0x1,_0x4c428f=!0x1;for(const _0x441442 of _0x51933f){const _0x11c45b=_0x441442['item'];_0x336f06=_0x336f06||_0x57a9a8['isContent'](_0x11c45b);const _0x4e5736=_0x5cd053['mapper']['toViewElement'](_0x11c45b);if(_0x4e5736&&_0x4e5736['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x441442['type']&&(_0x57a9a8['isBlock'](_0x11c45b)&&!_0x57a9a8['isLimit'](_0x11c45b)&&(_0x11c45b['nextSibling']||_0x24815e['isAtEnd']?_0x45ec02&&_0x45ec02['parent']==_0x11c45b||(_0x45ec02=_0x11c45b,_0x384e04(_0x441442['previousPosition']),_0x4c428f=!0x0):_0x1b467d=_0x1b467d||_0x441442['previousPosition']));}function _0x384e04(_0x37acc9){const _0xa58deb=_0x5cd053['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x297f2c}),_0x7b04bd=_0x5cd053['mapper']['toViewPosition'](_0x37acc9);_0x4bccca['data']['isSuggestion']&&_0x5cd053['writer']['addClass']('ck-suggestion-marker-'+_0x297f2c+'-new',_0xa58deb),_0x5adaec['activeChange']==_0x4bccca&&_0x5cd053['writer']['addClass']('ck-suggestion-marker--active',_0xa58deb),_0x5cd053['writer']['insert'](_0x7b04bd,_0xa58deb),_0x5cd053['mapper']['bindElementToMarker'](_0xa58deb,_0x462194['markerName']);}_0x336f06||_0x4c428f||!_0x1b467d||_0x384e04(_0x1b467d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4cab33,_0x1e61c7,_0x3bcb81)=>{const _0x40e571=_0x3bcb81['mapper']['markerNameToElements'](_0x1e61c7['markerName']);if(_0x40e571){for(const _0x17ce0f of _0x40e571)(_0x17ce0f['hasClass']('ck-suggestion-marker-split')||_0x17ce0f['hasClass']('ck-suggestion-marker-merge'))&&(_0x3bcb81['mapper']['unbindElementFromMarkerName'](_0x17ce0f,_0x1e61c7['markerName']),_0x3bcb81['writer']['remove'](_0x17ce0f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x372267,_0x1fde85,_0xcb7be3)=>{const _0x54890c=_0x1fde85['markerName']['split'](':')[0x1],_0xf08339=this['_getChangeFromId'](_0x54890c);if(!_0xf08339)return null;const _0x169106='add'==_0xf08339['type']?'split':'merge';if(_0xcb7be3['consumable']['test'](_0x1fde85['markerRange'],_0x372267['name']))for(const _0x542d42 of _0x1fde85['markerRange']['getItems']()){if(!_0x542d42['is']('element','softBreak'))continue;const _0x3f7a60=_0xcb7be3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x169106}),_0x5b5430=_0xcb7be3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x542d42));_0xf08339['data']['isSuggestion']&&_0xcb7be3['writer']['addClass']('ck-suggestion-marker-'+_0x169106+'-new',_0x3f7a60),this['activeChange']==_0xf08339&&_0xcb7be3['writer']['addClass']('ck-suggestion-marker--active',_0x3f7a60),_0xcb7be3['writer']['insert'](_0x5b5430,_0x3f7a60),_0xcb7be3['mapper']['bindElementToMarker'](_0x3f7a60,_0x1fde85['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x109840=>{for(const _0x27128d of this['editor']['model']['document']['getRootNames']()){const _0x13a4a5=this['editor']['model']['document']['getRoot'](_0x27128d),_0xbc379e=this['editor']['editing']['view']['document']['getRoot'](_0x27128d);if(_0xbc379e){const _0x2bb8b4=_0x13a4a5['getAttribute']('revisionHistoryAttachChange');if(_0x109840['removeAttribute']('data-change-id',_0xbc379e),_0x109840['removeClass']('ck-revision-history-root-add',_0xbc379e),_0x109840['removeClass']('ck-revision-history-root-remove',_0xbc379e),_0x109840['removeClass']('ck-revision-history-root--active',_0xbc379e),_0x2bb8b4){const _0x5ea839=this['_getChangeFromId'](_0x2bb8b4);if(!_0x5ea839)return null;_0x109840['setAttribute']('data-change-id',_0x2bb8b4,_0xbc379e),_0x109840['addClass']('ck-revision-history-root-'+_0x5ea839['type'],_0xbc379e),this['activeChange']==_0x5ea839&&_0x109840['addClass']('ck-revision-history-root--active',_0xbc379e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x48c738=>'revision-comment:'+_0x48c738,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x201f99=>'revision-suggestion:'+_0x201f99,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1f8377=>({'name':'suggestion:'+_0x1f8377,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x52ee78=>{const _0x51815c=_0x52ee78['markerName']['split'](':')[0x1];return'insertion'!=_0x51815c&&'deletion'!=_0x51815c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x51815c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x829466,_0x3cb9e0,_0x40b505)=>{const _0x3da135=_0x40b505['mapper']['markerNameToElements'](_0x3cb9e0['markerName']);if(_0x3da135){for(const _0xed17be of _0x3da135)_0xed17be['is']('uiElement')&&(_0x40b505['mapper']['unbindElementFromMarkerName'](_0xed17be,_0x3cb9e0['markerName']),_0x40b505['writer']['remove'](_0xed17be));}},{'priority':'high'});}['_getChangeFromId'](_0x31cc20){return this['_changeIdToChange']['get'](_0x31cc20);}['_getViewForChange'](_0x4e5161){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4e5161),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3ba9d0,_0x9070fd,_0x3771e6,_0x14f48e)=>{_0x14f48e&&this['_balloon']['remove'](_0x14f48e),_0x3771e6&&(this['_balloon']['add']({'view':_0x3771e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xdcdbba=this['editor']['editing'],_0x444b03=this['_getChangeFromId'](_0x3771e6['changeId']);let _0x6183fe;if(_0x444b03['data']['isOnRoot']){const _0x585fa1=_0xdcdbba['view']['getDomRoot'](_0x444b03['rootName']);_0x6183fe=Array['from'](_0x585fa1['getClientRects']());}else{const _0x515670=this['editor']['model']['markers']['get']('revision:'+_0x3771e6['changeId']);_0x6183fe=Array['from'](_0xdcdbba['mapper']['markerNameToElements'](_0x515670['name']))['map'](_0x3cc792=>_0xdcdbba['view']['domConverter']['mapViewToDom'](_0x3cc792))['map'](_0xacfab6=>Array['from'](_0xacfab6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x6183fe[0x0];return _0x6183fe['find'](_0x15b261=>_0x15b261['top']-0x3<=this['_activeViewTarget']['y']&&_0x15b261['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15b261['left']-0x3<=this['_activeViewTarget']['x']&&_0x15b261['right']+0x3>=this['_activeViewTarget']['x'])||_0x6183fe[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x328d3a,_0x4a60d3,_0x1d05ca,_0x3c7fb2)=>{this['activeView']=_0x1d05ca?this['_getViewForChange'](_0x1d05ca):null,this['editor']['model']['change'](()=>{const _0x56a421=this['editor']['editing'];_0x3c7fb2&&(_0x3c7fb2['data']['isOnRoot']?_0x56a421['view']['change'](_0x6b6f11=>{_0x6b6f11['removeClass']('ck-revision-history-root--active',_0x56a421['view']['document']['getRoot'](_0x3c7fb2['rootName']));}):_0x56a421['reconvertMarker']('revision:'+_0x3c7fb2['id'])),_0x1d05ca&&(_0x1d05ca['data']['isOnRoot']?_0x56a421['view']['change'](_0x26ae48=>{_0x26ae48['addClass']('ck-revision-history-root--active',_0x56a421['view']['document']['getRoot'](_0x1d05ca['rootName']));}):_0x56a421['reconvertMarker']('revision:'+_0x1d05ca['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xe16157,_0x1251c3)=>{if(this['activeChange'])return;const _0x213ca5=this['_findChangeIdFromDomTarget'](_0x1251c3['target']),_0x469ade=this['_changeIdToChange']['get'](_0x213ca5);_0x469ade?(this['_activeViewTarget']={'x':_0x1251c3['domEvent']['x'],'y':_0x1251c3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x469ade)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4ec295,_0xdacbd8)=>{const _0x3569f0=this['_findChangeIdFromDomTarget'](_0xdacbd8['target']),_0x139c52=this['_changeIdToChange']['get'](_0x3569f0);_0x139c52?(this['_activeViewTarget']={'x':_0xdacbd8['domEvent']['x'],'y':_0xdacbd8['domEvent']['y']},_0x139c52===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x139c52):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x14ac64){do{const _0x39ce13=_0x14ac64['getAttribute']('data-change-id');if(_0x39ce13)return _0x39ce13;_0x14ac64=_0x14ac64['parent'];}while(_0x14ac64);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x276f15=>{for(const _0x5e2fb8 of this['editor']['model']['markers'])_0x276f15['removeMarker'](_0x5e2fb8);});}}function Z(_0x136d2d,_0x3fb52e){return(_0x3e0698,_0x3e6c86,_0xe42050)=>{if(!_0xe42050['consumable']['test'](_0x3e6c86['markerRange'],_0x3e0698['name']))return;const _0xaaed67=_0x3e6c86['markerRange']['getWalker'](),_0x8deaae=_0x3e6c86['markerRange']['start'],_0x4e5d1f=_0x136d2d['model']['schema'];let _0x53893a=null,_0xeac8bf=null,_0x25edf6=!0x1,_0x21c0fb=!0x1;for(const _0x52be30 of _0xaaed67){const _0xe73e43=_0x52be30['item'];_0x25edf6=_0x25edf6||_0x4e5d1f['isContent'](_0xe73e43);const _0xc1860=_0xe42050['mapper']['toViewElement'](_0xe73e43);if(_0xc1860&&_0xc1860['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52be30['type']&&(_0x4e5d1f['isBlock'](_0xe73e43)&&!_0x4e5d1f['isLimit'](_0xe73e43)&&(_0xe73e43['nextSibling']||_0x8deaae['isAtEnd']?_0x53893a&&_0x53893a['parent']==_0xe73e43||(_0x53893a=_0xe73e43,_0x4b3b11(_0x52be30['previousPosition']),_0x21c0fb=!0x0):_0xeac8bf=_0xeac8bf||_0x52be30['previousPosition']));}function _0x4b3b11(_0x5df04b){const _0x5e6290=_0xe42050['mapper']['toViewPosition'](_0x5df04b),_0x1df6ce=_0xe42050['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3fb52e});_0xe42050['writer']['insert'](_0x5e6290,_0x1df6ce),_0xe42050['mapper']['bindElementToMarker'](_0x1df6ce,_0x3e6c86['markerName']);}_0x25edf6||_0x21c0fb||!_0xeac8bf||_0x4b3b11(_0xeac8bf);};}class pt extends _0x2f9c5b{constructor(_0x23fa83){super(_0x23fa83);const _0x75f8ae=_0x23fa83['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x75f8ae,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x75f8ae,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4e39ea=this['editor'],_0x31bae0=_0x4e39ea['plugins']['get'](d),_0x36fa36=_0x31bae0['isReady']?_0x31bae0['diff']['newRevisionId']:null;_0x4e39ea['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36fa36);}['refresh'](){const {isReady:_0x1fb185,isEnabled:_0x3ad31b,repository:_0x4d7907,diff:_0x48397b}=this['editor']['plugins']['get'](d),_0xaa1b9b=_0x48397b&&_0x4d7907['getLaterVisibleRevision'](_0x48397b['newRevisionId']);this['isEnabled']=_0x1fb185&&_0x3ad31b&&Boolean(_0xaa1b9b);}}class _t extends _0x2f9c5b{['_step'];constructor(_0x2fb8cc,{direction:_0x5d64cc}){super(_0x2fb8cc);const _0x2b0e19=_0x2fb8cc['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d64cc?0x1:-0x1,this['listenTo'](_0x2b0e19,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2b0e19,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2b0e19,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x59c28e=this['editor'],_0x1d866a=_0x59c28e['plugins']['get'](d),{isNavigationMode:_0x12077b,currentChangeNumber:_0x575c87}=_0x1d866a;let _0x3f63f2;if(_0x1d866a['activeChange']=_0x12077b?_0x1d866a['diff']['changes']['get'](_0x575c87+this['_step']):_0x1d866a['diff']['changes']['first'],_0x1d866a['activeChange']['data']['isOnRoot'])_0x3f63f2=_0x59c28e['editing']['view']['getDomRoot'](_0x1d866a['activeChange']['rootName']);else{const _0x44aea7=_0x59c28e['model']['markers']['get']('revision:'+_0x1d866a['activeChange']['id']);_0x3f63f2=_0x4fe253(_0x59c28e['editing'],_0x44aea7);}_0x4cf1dc({'target':_0x3f63f2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1be9b1,currentChangeNumber:_0x43dbbf,numberOfChanges:_0x6be30c,isReady:_0x452cf3,isEnabled:_0x3af4ef}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3af4ef&&_0x452cf3&&_0x6be30c)&&(!_0x1be9b1||(0x1===this['_step']?_0x43dbbf<_0x6be30c-0x1:_0x43dbbf>0x0));}}class li extends ts{constructor(_0x1804b6){super(_0x1804b6);const _0x655914=this['bindTemplate'],_0x323490=new te(_0x1804b6),_0x2b7e38=new te(_0x1804b6);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',(_0x27d441,_0x17f432)=>_0x27d441&&_0x17f432>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1bb7cc,_0x2fbb42,_0x4a2a59,_0x509ba)=>{if(!_0x1bb7cc)return m(_0x1804b6,'Loading...');if(!_0x4a2a59)return m(_0x1804b6,'No\x20changes');const _0x333954=m(_0x1804b6,'NUMBER_OF_CHANGES',_0x4a2a59);return _0x509ba?m(_0x1804b6,'X_OF_Y_CHANGES',[_0x2fbb42+0x1,_0x4a2a59]):_0x333954;}),_0x323490['set']({'label':m(_0x1804b6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2b7e38['set']({'label':m(_0x1804b6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x323490['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b7e38['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x323490['on']('execute',()=>this['fire']('execute','backward')),_0x2b7e38['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',_0x655914['if']('_isStatusLabelVisible','ck-hidden',_0x35f1a0=>!_0x35f1a0)]},'children':[{'text':_0x655914['to']('isNavigationMode',_0x3d111a=>_0x3d111a?m(_0x1804b6,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1804b6,'Total')+':\x20')}]},{'text':_0x655914['to']('_statusText')}]},new _0x27a7d8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x323490,_0x2b7e38]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xa208af{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x56d218=this['editor']['editing']['view'];_0x56d218['change'](_0x13dd3e=>{for(const _0x454452 of _0x56d218['document']['roots'])_0x13dd3e['addClass'](le,_0x454452);});}['hide'](){const _0x11f984=this['editor']['editing']['view'];_0x11f984['change'](_0x972db2=>{for(const _0xb40ef1 of _0x11f984['document']['roots'])_0x972db2['removeClass'](le,_0xb40ef1);});}}class g extends _0xa208af{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x455686=this['editor'],_0x5962ac=_0x455686['plugins']['get'](d),_0x45bdd7=_0x455686['plugins']['get'](ge);_0x455686['ui']['componentFactory']['add']('exitToEditing',_0x1ed6f1=>{const _0x371d0c=new te(_0x1ed6f1);return _0x371d0c['set']({'label':m(_0x1ed6f1,'Back\x20to\x20editing'),'icon':_0x21a730['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x371d0c,'execute',()=>{_0x455686['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x371d0c;}),_0x455686['ui']['componentFactory']['add']('restoreRevision',_0x35ed42=>{const _0x4ff921=new te(_0x35ed42);return _0x4ff921['set']({'label':m(_0x35ed42,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ff921['bind']('isEnabled')['to'](_0x455686['commands']['get']('restoreRevision')),this['listenTo'](_0x4ff921,'execute',()=>_0x455686['execute']('restoreRevision')),_0x4ff921;}),_0x455686['ui']['componentFactory']['add']('changesNavigation',_0x3f2696=>{const _0x11fa9f=new li(_0x3f2696),_0xd52991=_0x455686['commands']['get']('showPreviousChange'),_0xc1fe7b=_0x455686['commands']['get']('showNextChange');return _0x11fa9f['bind']('isBackwardNavigationEnabled')['to'](_0xd52991,'isEnabled'),_0x11fa9f['bind']('isForwardNavigationEnabled')['to'](_0xc1fe7b,'isEnabled'),_0x11fa9f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5962ac),this['listenTo'](_0x11fa9f,'execute',(_0xdf48b4,_0x385a4c)=>{_0x455686['execute']('forward'===_0x385a4c?'showNextChange':'showPreviousChange');}),_0x11fa9f;}),_0x45bdd7['show'](),_0x5962ac['on']('change:isReady',(_0x99879f,_0x44da90,_0x3bf022)=>{_0x3bf022?_0x45bdd7['hide']():_0x45bdd7['show']();});}}class at extends _0x4a2ae2{['_resizeObserver']=null;constructor(_0x7cfceb,_0x2dd7ee){super(_0x7cfceb,_0x2dd7ee);const _0x1e35e5=this['bindTemplate'];this['set']({'label':m(_0x7cfceb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x7cfceb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1e35e5['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 _0xb2a8c0=this['fieldView']['element'];this['_tooltipString']=_0xb2a8c0['scrollWidth']>_0xb2a8c0['clientWidth']&&_0xb2a8c0['value']||'';}}class ri extends ts{constructor(_0x7461f4,_0x18a515,_0x18b2ec){super(_0x7461f4);const _0x11660b=new _0x3d73e5();_0x11660b['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5dda4d=['ck','ck-revision-history-sidebar__revision-author'];_0x18b2ec&&_0x5dda4d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x44712e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x7461f4,_0x18b2ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x11660b,_0x18a515['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5dda4d},'children':_0x44712e});}}function oi(_0x38fa42,_0x27f684){const _0x1b1128=_0x38fa42['bindTemplate'],_0xf35112=_0x38fa42['locale'],_0x24c39f=_0x9de182(_0xf35112);_0x24c39f['panelPosition']='sw';const _0x45c492=function(_0x25add5,_0x256018){const _0x212fad=function(_0x47f5f8,_0x5b96a7){const _0x1ad788=_0x47f5f8['locale'],_0x15d648={'Compare\x20against\x20selected':m(_0x1ad788,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1ad788,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1ad788,'Restore\x20this\x20revision')};return _0x5b96a7['map'](_0x29ca08=>{const _0x313ec6=_0x15d648[_0x29ca08['name']];return _0x313ec6&&_0x313ec6!==_0x29ca08['name']&&(_0x29ca08['name']=_0x313ec6),_0x29ca08;});}(_0x25add5,_0x256018),_0x17b7e8=new _0x161991();for(const _0x36492b of _0x212fad){const _0x47b4ae={'type':'button','model':new _0x33dc9c({'label':_0x36492b['name'],'class':_0x36492b['class'],'withText':!0x0,'role':'menuitem','_action':_0x36492b['action']})};_0x47b4ae['model']['bind']('isEnabled')['to'](_0x25add5,'isActionsDropdownOpen',_0x234a75=>'function'!=typeof _0x36492b['isEnabled']||(!_0x234a75||_0x36492b['isEnabled'](_0x25add5))),_0x17b7e8['add'](_0x47b4ae);}return _0x17b7e8;}(_0x38fa42,_0x27f684);return _0x38fa42['bind']('isActionsDropdownOpen')['to'](_0x24c39f,'isOpen'),_0x24c39f['buttonView']['set']({'label':m(_0xf35112,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21a730['threeVerticalDots']}),_0x24c39f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b1128['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b1128['to'](_0x4fd5de=>_0x4fd5de['stopPropagation']())}}),_0x24c39f['on']('execute',_0x6972ad=>{_0x38fa42['isReady']&&'function'==typeof _0x6972ad['source']['_action']&&_0x6972ad['source']['_action'](_0x38fa42);}),to(_0x24c39f,_0x45c492,{'role':'menu'}),_0x24c39f['listenTo'](_0x38fa42,'change:isActionsDropdownOpen',(_0x73603c,_0xcbe3ee,_0x5d07b4)=>{if(_0x5d07b4)for(const _0x8e6ab5 of _0x24c39f['listView']['items']){const _0x30a175=_0x8e6ab5['children']['first'],_0x4c222b=_0x27f684['find'](_0x20de26=>_0x20de26['action']===_0x30a175['_action'])['isVisible'];_0x8e6ab5['isVisible']=void 0x0===_0x4c222b||_0x4c222b(_0x38fa42);}}),_0x24c39f;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x167bf9,uid as _0x41fc2a,Collection as _0x53ab85,logWarning as _0x286457,FocusTracker as _0x1839c5,KeystrokeHandler as _0x1b4f1b,scrollViewportToShowTarget as _0x4a98c9,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x479dc4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1e8d51,set as _0x295a3b,unset as _0x12cf5a,isEqual as _0x2827e5}from'lodash-es';import{Plugin as _0x15974b,PendingActions as _0x2b30d8,icons as _0x470fce,Command as _0x2c1871,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x569660,getMarkerDomElement as _0x48dfde,ConfirmMixin as _0x29c051,sanitizeEditorConfig as _0x1e0a56}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1a018e,Element as ft,Range as vt,ViewUIElement as _0x3bc906,ViewRawElement as _0x87c2e2,ViewEmptyElement as _0xbfca74,ViewAttributeElement as _0x31818f,ViewContainerElement as _0x281cbc,Position as gt,ViewText as _0xf6e769,ViewElement as _0xf7d26d,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1d6e15,injectCssTransitionDisabler as ts,submitHandler as _0x1a3f56,LabeledFieldView as nt,createLabeledInputText as _0x5d5d36,createDropdown as _0x3ccc2a,ListView as te,ListItemView as _0x5e7b7c,ButtonView as _0x3cc15e,MenuBarMenuView as _0x461892,MenuBarMenuListView as _0xe5be03,MenuBarMenuListItemView as _0x3139e6,MenuBarMenuListItemButtonView as _0x2df223,ContextualBalloon as _0x2e7606,ToolbarSeparatorView as _0x2cc299,IconView as _0x228ef3,addListToDropdown as _0x22175d,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x343446}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x167bf9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x394a80){super(),this['id']=_0x394a80['id']||_0x41fc2a(),this['creator']=_0x394a80['creator']||null,this['authors']=_0x394a80['authors']||[],this['diffData']=_0x394a80['diffData']||null,this['toVersion']=_0x394a80['toVersion']||0x0,this['fromVersion']=_0x394a80['fromVersion']||0x0,this['set']('name',_0x394a80['name']||''),this['set']('createdAt',_0x394a80['createdAt']||new Date()),this['set']('attributes',_0x394a80['attributes']||{});}['setName'](_0x482a8b){this['_update']({'name':_0x482a8b});}['setAttribute'](_0x5dbcb4,_0x41e2a4){const _0x480a83=_0x1e8d51(this['attributes']);_0x295a3b(_0x480a83,_0x5dbcb4,_0x41e2a4),this['_update']({'attributes':_0x480a83});}['removeAttribute'](_0x54bb34){const _0x1d9a9f=_0x1e8d51(this['attributes']);_0x12cf5a(_0x1d9a9f,_0x54bb34),this['_update']({'attributes':_0x1d9a9f});}['_update'](_0x56ebdf,_0x489865=!0x1){let _0x2b0ffe=!0x1;const _0x34b1d0={'id':this['id']},_0x246328=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x59936d of _0x246328){const _0x48385a=_0x56ebdf[_0x59936d];void 0x0!==_0x48385a&&_0x48385a!==this[_0x59936d]&&(this[_0x59936d]=_0x48385a,_0x34b1d0[_0x59936d]=_0x48385a,_0x2b0ffe=!0x0);}_0x2b0ffe&&(_0x34b1d0['authors']&&(_0x34b1d0['authorsIds']=_0x34b1d0['authors']['map'](_0x10aacf=>_0x10aacf['id']),delete _0x34b1d0['authors']),this['fire']('_update',_0x34b1d0,_0x489865));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc213c7=>_0xc213c7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x15974b{['_revisions'];static get['requires'](){return[_0x569660];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x380a9f){super(_0x380a9f),this['_revisions']=new _0x53ab85();}['afterInit'](){!async function(_0x56f8af){const _0x538604=_0x7f7a87([0x50,0x30,0x4a,0x48,0x57,0x75,0x64,0x7a,0x72,0x42,0x34,0x51,0x58,0x31,0x77,0x32,0x56,0x5a,0x43,0x55,0x37,0x4d,0x63,0x4e,0x76,0x6b,0x33,0x45,0x39,0x78,0x73,0x61,0x41,0x71,0x46,0x52,0x70,0x44,0x62,0x79,0x74,0x65,0x68,0x38,0x35,0x54,0x36,0x4f,0x6f,0x4b,0x66,0x59,0x6a,0x49,0x6c,0x6e,0x6d,0x4c,0x47,0x69,0x53,0x67]),_0xf2d84b=0xeb829,_0x511ab2=0x173448d9,_0x5c5dbb=0x17332821^_0x511ab2,_0x472b8d=window[_0x7f7a87([0x44,0x61,0x74,0x65])][_0x7f7a87([0x6e,0x6f,0x77])](),_0x5ebb96=_0x56f8af[_0x7f7a87([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43ac34=new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52633e=>{_0x5ebb96[_0x7f7a87([0x6f,0x6e,0x63,0x65])](_0x7f7a87([0x72,0x65,0x61,0x64,0x79]),_0x52633e);}),_0x3f226b={[_0x7f7a87([0x6b,0x74,0x79])]:_0x7f7a87([0x45,0x43]),[_0x7f7a87([0x75,0x73,0x65])]:_0x7f7a87([0x73,0x69,0x67]),[_0x7f7a87([0x63,0x72,0x76])]:_0x7f7a87([0x50,0x2d,0x32,0x35,0x36]),[_0x7f7a87([0x78])]:_0x7f7a87([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]),[_0x7f7a87([0x79])]:_0x7f7a87([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]),[_0x7f7a87([0x61,0x6c,0x67])]:_0x7f7a87([0x45,0x53,0x32,0x35,0x36])},_0x5199f0=_0x5ebb96[_0x7f7a87([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7f7a87([0x67,0x65,0x74])](_0x7f7a87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c5377(){let _0x3ec5fb,_0x14212d=null,_0x3ad822=null;try{if(_0x5199f0==_0x7f7a87([0x47,0x50,0x4c]))return _0x7f7a87([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ec5fb=_0x16862f(),!_0x3ec5fb)return _0x7f7a87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ec5fb[_0x7f7a87([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ad822=_0x95ae06(_0x3ec5fb[_0x7f7a87([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ec5fb[_0x7f7a87([0x6a,0x74,0x69])])),await _0x50571f()?_0x2f4c54()?_0x48c837()?_0x7f7a87([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7fd20()?(_0x3ec5fb[_0x7f7a87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7f7a87([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14212d=_0xe6b0ac(_0x7f7a87([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ec5fb[_0x7f7a87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7f7a87([0x74,0x72,0x69,0x61,0x6c])&&(_0x14212d=_0xe6b0ac(_0x7f7a87([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x349cfa()):_0x7f7a87([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7f7a87([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7f7a87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x172dfa){return _0x7f7a87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48c837(){const _0x4cadf0=[_0x7f7a87([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7f7a87([0x74,0x72,0x69,0x61,0x6c])][_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec5fb[_0x7f7a87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x472b8d/0x3e8:0xe10*_0x5c5dbb;return _0x3ec5fb[_0x7f7a87([0x65,0x78,0x70])]<_0x4cadf0;}function _0x2f4c54(){const _0x403243=_0x3ec5fb[_0x7f7a87([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x403243)return!0x1;if(_0x403243[_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f7a87([0x2a])))return!0x0;if(_0x403243[_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f7a87([0x52,0x48])))return!0x0;if(_0x403243[_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f7a87([0x52,0x52,0x48]))){if(_0x1bb5a2())return!0x0;if(_0x410393()||_0x5ccf74())return!0x0;}return!0x1;}function _0x7fd20(){const _0x20644e=_0x3ec5fb[_0x7f7a87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20644e||0x0==_0x20644e[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c0936}=new URL(window[_0x7f7a87([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20644e[_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c0936))return!0x0;const _0x590dbf=_0x1c0936[_0x7f7a87([0x73,0x70,0x6c,0x69,0x74])](_0x7f7a87([0x2e]));return _0x20644e[_0x7f7a87([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x374855=>_0x374855[_0x7f7a87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f7a87([0x2a])))[_0x7f7a87([0x6d,0x61,0x70])](_0x18e620=>_0x18e620[_0x7f7a87([0x73,0x70,0x6c,0x69,0x74])](_0x7f7a87([0x2e])))[_0x7f7a87([0x73,0x6f,0x6d,0x65])](_0x51a2d5=>_0x590dbf[_0x7f7a87([0x65,0x76,0x65,0x72,0x79])]((_0x345277,_0x1d571f)=>_0x51a2d5[_0x1d571f]===_0x345277||_0x51a2d5[_0x1d571f]===_0x7f7a87([0x2a])));}function _0x349cfa(){return _0x14212d&&_0x3ad822?new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x160ac2,_0x363138)=>{_0x14212d[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0x160ac2,_0x363138),_0x3ad822[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0x24ec94=>{_0x24ec94!=_0x7f7a87([0x56,0x61,0x6c,0x69,0x64])&&_0x160ac2(_0x24ec94);},_0x363138);}):_0x14212d||_0x3ad822||_0x7f7a87([0x56,0x61,0x6c,0x69,0x64]);}}function _0x95ae06(_0x208928,_0x2a1c07){return new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2916b3=>{if(_0x4732aa())return _0x2916b3(_0x7f7a87([0x56,0x61,0x6c,0x69,0x64]));_0x204863(),_0x5ebb96[_0x7f7a87([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7f7a87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b3fcc=!0x1;const _0x1a9070=_0x41fc2a();function _0x256602(_0x1216b3){return!!_0x1216b3&&(typeof _0x1216b3===_0x7f7a87([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1216b3===_0x7f7a87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1216b3[_0x7f7a87([0x74,0x68,0x65,0x6e])]===_0x7f7a87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1216b3[_0x7f7a87([0x63,0x61,0x74,0x63,0x68])]===_0x7f7a87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46cf81(_0x2bf59){_0x3f7419(_0x2bf59)[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0x172b5a=>{if(!_0x172b5a||_0x172b5a[_0x7f7a87([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7f7a87([0x6f,0x6b]))return _0x7f7a87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a7126(_0x185de4(_0x1a9070+_0x2a1c07))!=_0x172b5a[_0x7f7a87([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7f7a87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7f7a87([0x56,0x61,0x6c,0x69,0x64]);})[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0x2b375f=>(_0x39b874(),_0x2b375f),()=>{const _0x18d75b=_0x5ea983();return null==_0x18d75b?(_0x39b874(),_0x7f7a87([0x56,0x61,0x6c,0x69,0x64])):_0x7f7a87(_0x472b8d-_0x18d75b>(0x3338ccd9^_0x511ab2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0x2916b3)[_0x7f7a87([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2916b3(_0x7f7a87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bf19c=0x1702a659^_0x511ab2;function _0x39b874(){const _0xa92c2e=_0x7f7a87([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a7126(_0x185de4(_0x208928)),_0x2d2fab=_0x8521a2(_0x1a7126(window[_0x7f7a87([0x4d,0x61,0x74,0x68])][_0x7f7a87([0x63,0x65,0x69,0x6c])](_0x472b8d/_0x1bf19c)));window[_0x7f7a87([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7f7a87([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa92c2e,_0x2d2fab);}function _0x5ea983(){const _0x644ee4=_0x7f7a87([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a7126(_0x185de4(_0x208928)),_0x3f31db=window[_0x7f7a87([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7f7a87([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x644ee4);return _0x3f31db?window[_0x7f7a87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8521a2(_0x3f31db),0x10)*_0x1bf19c:null;}function _0x3f7419(_0x28a89c){return new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xde5ab0,_0x4df026)=>{_0x28a89c[_0x7f7a87([0x74,0x68,0x65,0x6e])](_0xde5ab0,_0x4df026),window[_0x7f7a87([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4df026,0x17359c19^_0x511ab2);});}}_0x5ebb96[_0x7f7a87([0x6f,0x6e])](_0x7f7a87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x525be8,_0x5a5b88)=>{if(_0x5a5b88[0x0]!=_0x208928)return _0x2916b3(_0x7f7a87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a5b88[0x1]={..._0x5a5b88[0x1],[_0x7f7a87([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a9070};},{[_0x7f7a87([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7f7a87([0x68,0x69,0x67,0x68])}),_0x5ebb96[_0x7f7a87([0x6f,0x6e])](_0x7f7a87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f697b=>{_0x256602(_0x3f697b[_0x7f7a87([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b3fcc=!0x0,_0x46cf81(_0x3f697b[_0x7f7a87([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7f7a87([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7f7a87([0x6c,0x6f,0x77])}),_0x43ac34[_0x7f7a87([0x74,0x68,0x65,0x6e])](()=>{_0x5b3fcc||_0x2916b3(_0x7f7a87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4732aa(){return _0x5ebb96[_0x7f7a87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7f7a87([0x76,0x69,0x65,0x77])][_0x7f7a87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7f7a87([0x61,0x75,0x74,0x6f]);}function _0x204863(){_0x5ebb96[_0x7f7a87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7f7a87([0x76,0x69,0x65,0x77])][_0x7f7a87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7f7a87([0x61,0x75,0x74,0x6f]);}}function _0xe6b0ac(_0x27eb01){const _0x38ee96=[new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451db5=>setTimeout(_0x451db5,0x173d7615^_0x511ab2)),_0x43ac34[_0x7f7a87([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x439724=>{const _0x533718=0x173448de^_0x511ab2,_0x223020=_0x56f8af[_0x7f7a87([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3115cd(){_0x223020[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x533718&&_0x439724();}_0x3115cd(),_0x223020[_0x7f7a87([0x6f,0x6e])](_0x7f7a87([0x61,0x64,0x64]),_0x3115cd);})),new window[(_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eae88=>{function _0x21ce7d(){for(const _0x48b39d in window)if(window[_0x7f7a87([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x7f7a87([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x48b39d))&&window[_0x48b39d]==_0xf2d84b)return _0x2eae88();_0x5ebb96[_0x7f7a87([0x73,0x74,0x61,0x74,0x65])]!=_0x7f7a87([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x7f7a87([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21ce7d,0x17345b51^_0x511ab2);}_0x35f508(_0x7f7a87([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21ce7d();})];return window[_0x7f7a87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7f7a87([0x72,0x61,0x63,0x65])](_0x38ee96)[_0x7f7a87([0x74,0x68,0x65,0x6e])](()=>_0x27eb01);}async function _0x4abcab(){if(await _0x43ac34,_0x35f508(_0x7f7a87([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x158739=_0x56f8af[_0x7f7a87([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f51d6=_0x56f8af[_0x7f7a87([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])](_0x158739[_0x7f7a87([0x69,0x64])]),_0xd129fc=_0x903479(_0x7f7a87([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xd129fc[_0x7f7a87([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x158739['id'],_0x1f51d6?_0x1f51d6['id']:null,!0x0),_0xd129fc[_0x7f7a87([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x7f7a87([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xd129fc[_0x7f7a87([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xd129fc[_0x7f7a87([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x557cf0,void(_0xd129fc[_0x7f7a87([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x557cf0);}if(_0x35f508(_0x7f7a87([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x38a79f=_0x903479(_0x7f7a87([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x38a79f[_0x7f7a87([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x7f7a87([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x38a79f[_0x7f7a87([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x38a79f[_0x7f7a87([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x557cf0,_0x38a79f[_0x7f7a87([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x557cf0;}_0x5ebb96[_0x7f7a87([0x6d,0x6f,0x64,0x65,0x6c])][_0x7f7a87([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x557cf0,_0x5ebb96[_0x7f7a87([0x6d,0x6f,0x64,0x65,0x6c])][_0x7f7a87([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x557cf0,_0x5ebb96[_0x7f7a87([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7f7a87([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1bb5a2(){return _0x35f508(_0x7f7a87([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x903479(_0x7f7a87([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x7f7a87([0x73,0x74,0x61,0x74,0x65])]==_0x7f7a87([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x410393(){return _0x35f508(_0x7f7a87([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 _0x5ccf74(){return _0x35f508(_0x7f7a87([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28f128(_0x35dba7){const _0x52fd9b=_0x299098();_0x5ebb96[_0x52fd9b]=_0x7f7a87([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])+_0x35dba7,_0x35dba7[_0x7f7a87([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x7f7a87([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x299098()]=_0xf2d84b),_0x35dba7!=_0x7f7a87([0x56,0x61,0x6c,0x69,0x64])&&_0x4abcab();}function _0x299098(){const _0xb89b01=window[_0x7f7a87([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7f7a87([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7f7a87([0x6e,0x6f,0x77])]())[_0x7f7a87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7f7a87([0x2e]),'');let _0x3e4a38=_0x7f7a87([0x50]);for(let _0x2f28ba=0x0;_0x2f28ba<_0xb89b01[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f28ba+=0x2){let _0x47e71d=window[_0x7f7a87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb89b01[_0x7f7a87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f28ba,_0x2f28ba+0x2));_0x47e71d>=_0x538604[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47e71d-=_0x538604[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e4a38+=_0x538604[_0x47e71d];}return _0x3e4a38;}function _0x16862f(){const _0x17df55=_0x5199f0[_0x7f7a87([0x73,0x70,0x6c,0x69,0x74])](_0x7f7a87([0x2e]));if(0x3!=_0x17df55[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d04bc(_0x17df55[0x1]);function _0x3d04bc(_0x123d60){const _0x14cf8e=_0x3a38eb(_0x123d60);return _0x14cf8e&&_0x229bb4()?_0x14cf8e:null;function _0x229bb4(){const _0x4470e4=_0x14cf8e[_0x7f7a87([0x6a,0x74,0x69])],_0x4ce905=window[_0x7f7a87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4470e4[_0x7f7a87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4470e4[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d8a4={..._0x14cf8e,[_0x7f7a87([0x6a,0x74,0x69])]:_0x4470e4[_0x7f7a87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4470e4[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d8a4[_0x7f7a87([0x76,0x63])],_0x185de4(_0x39d8a4)==_0x4ce905;}}}async function _0x50571f(){let _0x41278f=!0x0;try{const _0x180499=_0x5199f0[_0x7f7a87([0x73,0x70,0x6c,0x69,0x74])](_0x7f7a87([0x2e])),[_0xf48617,_0x196c20,_0x397bd5]=_0x180499;return _0xfa0b17(_0xf48617),await _0x21bd09(_0xf48617,_0x196c20,_0x397bd5),_0x41278f;}catch(_0x144110){return!0x1;}function _0xfa0b17(_0x116587){const _0x5c2b58=_0x3a38eb(_0x116587);_0x5c2b58&&_0x5c2b58[_0x7f7a87([0x61,0x6c,0x67])]==_0x7f7a87([0x45,0x53,0x32,0x35,0x36])||(_0x41278f=!0x1);}async function _0x21bd09(_0x572061,_0x1828c6,_0x470e5e){const _0x35c8fa=window[_0x7f7a87([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7f7a87([0x66,0x72,0x6f,0x6d])](_0x202688(_0x470e5e),_0x1fbc1c=>_0x1fbc1c[_0x7f7a87([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2da2ff=new window[(_0x7f7a87([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7f7a87([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x572061+_0x7f7a87([0x2e])+_0x1828c6),_0x38b579=window[_0x7f7a87([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7f7a87([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38b579)return;const _0x46e8b4=await _0x38b579[_0x7f7a87([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7f7a87([0x6a,0x77,0x6b]),_0x3f226b,{[_0x7f7a87([0x6e,0x61,0x6d,0x65])]:_0x7f7a87([0x45,0x43,0x44,0x53,0x41]),[_0x7f7a87([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7f7a87([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7f7a87([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38b579[_0x7f7a87([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7f7a87([0x6e,0x61,0x6d,0x65])]:_0x7f7a87([0x45,0x43,0x44,0x53,0x41]),[_0x7f7a87([0x68,0x61,0x73,0x68])]:{[_0x7f7a87([0x6e,0x61,0x6d,0x65])]:_0x7f7a87([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46e8b4,_0x35c8fa,_0x2da2ff)||(_0x41278f=!0x1);}}function _0x3a38eb(_0x4cc1e9){return _0x4cc1e9[_0x7f7a87([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7f7a87([0x65,0x79]))?JSON[_0x7f7a87([0x70,0x61,0x72,0x73,0x65])](_0x202688(_0x4cc1e9)):null;}function _0x202688(_0x193105){return window[_0x7f7a87([0x61,0x74,0x6f,0x62])](_0x193105[_0x7f7a87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7f7a87([0x2b]))[_0x7f7a87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7f7a87([0x2f])));}function _0x185de4(_0x46dcb8){let _0x5d68fe=0x1505;function _0x19533c(_0x30bd82){for(let _0x2b8c8e=0x0;_0x2b8c8e<_0x30bd82[_0x7f7a87([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8c8e++){const _0x1f0f53=_0x30bd82[_0x7f7a87([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b8c8e);_0x5d68fe=(_0x5d68fe<<0x5)+_0x5d68fe+_0x1f0f53,_0x5d68fe&=_0x5d68fe;}}function _0x1a5048(_0x521c4b){Array[_0x7f7a87([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x521c4b)?_0x521c4b[_0x7f7a87([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a5048):_0x521c4b&&typeof _0x521c4b==_0x7f7a87([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7f7a87([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x521c4b)[_0x7f7a87([0x73,0x6f,0x72,0x74])]()[_0x7f7a87([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaa52e4,_0xde2102])=>{_0x19533c(_0xaa52e4),_0x1a5048(_0xde2102);}):_0x19533c(window[_0x7f7a87([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x521c4b));}return _0x1a5048(_0x46dcb8),_0x5d68fe>>>0x0;}function _0x1a7126(_0x3115fa){return _0x3115fa[_0x7f7a87([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7f7a87([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7f7a87([0x30]));}function _0x8521a2(_0x4154a3){return _0x4154a3[_0x7f7a87([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7f7a87([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7f7a87([0x6a,0x6f,0x69,0x6e])]('');}function _0x35f508(_0xf597a2){return _0x5ebb96[_0x7f7a87([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7f7a87([0x68,0x61,0x73])](_0xf597a2);}function _0x903479(_0x5639ac){return _0x5ebb96[_0x7f7a87([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7f7a87([0x67,0x65,0x74])](_0x5639ac);}function _0x557cf0(){}function _0x7f7a87(_0x50fdae){return _0x50fdae['map'](_0x23ba94=>String['fromCharCode'](_0x23ba94))['join']('');}_0x28f128(await _0x1c5377());}(this);}['createRevision'](_0x4894b6){const _0x480df4=this['editor']['plugins']['get']('Users');return new a({'id':_0x4894b6['id'],'name':_0x4894b6['name'],'creator':_0x4894b6['creatorId']?_0x480df4['getUser'](_0x4894b6['creatorId']):null,'diffData':_0x4894b6['diffData']||_0x4894b6['data'],'authors':_0x4894b6['authorsIds']['map'](_0x5c9294=>_0x480df4['getUser'](_0x5c9294)),'createdAt':new Date(_0x4894b6['createdAt']),'attributes':_0x4894b6['attributes'],'fromVersion':_0x4894b6['fromVersion'],'toVersion':_0x4894b6['toVersion']});}['addRevision'](_0x2450ec,_0x5d4562=0x0){this['_revisions']['add'](_0x2450ec,_0x5d4562);}['getRevision'](_0x4be9d9){return this['_revisions']['get'](_0x4be9d9);}['getRevisions'](_0x39cbee={'toJSON':!0x1}){const _0x250038=Array['from'](this['_revisions']);return _0x250038['reverse'](),_0x39cbee['toJSON']?_0x250038['map'](_0x226714=>_0x226714['toJSON']()):_0x250038;}['getIndex'](_0x51d079){return this['_revisions']['getIndex'](_0x51d079);}['getEarlierVisibleRevision'](_0x17eebd){const [,_0x20d59f]=this['getRevisionsIterator'](_0x17eebd,{'direction':'earlier'});return _0x20d59f;}['getLaterVisibleRevision'](_0x2f4f80){const [,_0xa361dc]=this['getRevisionsIterator'](_0x2f4f80,{'direction':'later'});return _0xa361dc;}['getRevisionsInDiff'](_0x762290){const _0x49e6ef=[];for(const _0x453dd3 of this['getRevisionsIterator'](_0x762290['newRevisionId']))if(_0x49e6ef['push'](_0x453dd3),_0x453dd3['id']===_0x762290['oldRevisionId'])break;return _0x49e6ef;}*['getRevisionsIterator'](_0x2a7610,{direction:_0x4b46bc='earlier',filter:_0x55c92a=()=>!0x0}={}){const _0x562382='earlier'===_0x4b46bc?0x1:-0x1;let _0x1c4bd3=this['_revisions']['get'](_0x2a7610),_0x6d0430=this['getIndex'](_0x1c4bd3);for(yield _0x1c4bd3;_0x1c4bd3;){if(_0x6d0430+=_0x562382,_0x1c4bd3=this['getRevision'](_0x6d0430),!_0x1c4bd3)return;_0x55c92a(_0x1c4bd3)&&(yield _0x1c4bd3);}}}function m(_0x30f36e,_0x2c14f3,_0x56bba8){const t=_0x30f36e['t'];switch(_0x2c14f3){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'},_0x56bba8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56bba8);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x281cbc,'a':_0x31818f,'e':_0xbfca74,'r':_0x87c2e2,'u':_0x3bc906};class l extends _0x15974b{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x569660,j,_0x2b30d8];}constructor(_0x570d52){super(_0x570d52),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1fdfc6=_0x41fc2a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1fdfc6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x37e379=this['repository']['getRevision'](0x0),_0x44ca6c=_0x37e379&&null===_0x37e379['creator']?_0x37e379:null;if(this['_continueCurrentRevision']=!!_0x44ca6c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50ed4e=this['_source']['getCurrentRevisionId'](),_0x3d6ea8=this['repository']['getRevision'](_0x50ed4e);if(_0x3d6ea8)this['_startingVersion']=_0x3d6ea8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x40094b=this['_source']['history']['_operations']['find'](_0x4cd1dd=>!_0x4cd1dd['_isInit']),_0x5a6dc8=_0x40094b?_0x40094b['baseVersion']:this['_source']['history']['version'];_0x37e379?(_0x37e379['toVersion']<_0x5a6dc8&&_0x37e379['_update']({'toVersion':_0x5a6dc8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x44ca6c['id'],this['_startingVersion']=_0x44ca6c['fromVersion']):(this['_startingVersion']=_0x37e379['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5a6dc8,this['_continueCurrentRevision']=!0x1);}}else _0x44ca6c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x44ca6c['toVersion'],this['editor']['model']['document']['history']['version']),_0x44ca6c['fromVersion']===_0x44ca6c['toVersion']?(0x0!==_0x44ca6c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x44ca6c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x44ca6c['id'],this['_startingVersion']=_0x44ca6c['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',_0x4f4bab=>!_0x4f4bab),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ca90a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e2ef5;for(const _0x1ba21b in _0x1ca90a){const _0x35cdef=_0x1ba21b,_0x57addf=_0x1ca90a[_0x35cdef];if('revisionHistoryLicenseKeyValid'==_0x57addf||'revisionHistoryLicenseKeyInvalid'==_0x57addf||'revisionHistoryLicenseKeyExpired'==_0x57addf||'revisionHistoryLicenseKeyDomainLimit'==_0x57addf||'revisionHistoryLicenseKeyNotAllowed'==_0x57addf||'revisionHistoryLicenseKeyEvaluationLimit'==_0x57addf||'revisionHistoryLicenseKeyTrialLimit'==_0x57addf||'revisionHistoryLicenseKeyUsageLimit'==_0x57addf){delete _0x1ca90a[_0x35cdef],_0x2e2ef5=_0x57addf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2e2ef5&&_0x1ca90a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x520c24=this['repository']['getRevision'](0x0),_0x1dcbc3=await this['getRevisionDocumentData'](_0x520c24),_0x3c1533=await this['getRevisionRootsAttributes'](_0x520c24);this['_replaceEditorDataWithRevisionData'](_0x1dcbc3,_0x3c1533);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x13a3cc){this['_source']=_0x13a3cc;}async['update'](){const _0x15e809=await this['_source']['getLatestVersion']();if(_0x15e809>this['currentRevision']['toVersion']){await this['_loadState']();const _0x44f1c6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x15e809});_0x44f1c6['authors']=_0x44f1c6['authorsIds']['map'](_0x3d9480=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d9480)),this['currentRevision']['_update'](_0x44f1c6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5de3af={},_0x344929=null){const _0x26d883=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x344929>this['currentRevision']['toVersion']&&(_0x344929=null),null===_0x344929&&(_0x344929=await this['_source']['getLatestVersion']());const _0x33bb26=this['_getFromVersion'](_0x344929),_0x385876=this['buildRevisionData']({'from':_0x33bb26,'to':_0x344929});if(this['currentRevision']['toVersion']<_0x344929){const _0x48e796=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x344929,'to':_0x344929});_0x48e796['authors']=[],_0x48e796['authorsIds']=[],_0x48e796['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48e796,!0x0),delete _0x48e796['authors'],_0x26d883['push'](_0x48e796);}_0x5de3af['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5de3af['name']=_0x5de3af['name']||null,_0x5de3af['id']=_0x5de3af['id']||_0x41fc2a(),_0x5de3af={..._0x5de3af,..._0x385876};const _0x20fe4e=this['addRevisionData'](_0x5de3af);_0x26d883['push'](_0x5de3af);const _0x2e0819=this['repository']['getIndex'](_0x20fe4e);if(0x0!==_0x2e0819){const _0x2c3610=this['repository']['getRevision'](_0x2e0819-0x1);if(_0x2c3610['fromVersion']!==_0x344929){const _0x5efb90=this['_revisionDataBuilder']['getData'](_0x344929,_0x2c3610['toVersion']),_0x1452b0={'id':_0x2c3610['id'],'diffData':_0x5efb90['diffData'],'authorsIds':_0x5efb90['authorsIds'],'authors':_0x5efb90['authorsIds']['map'](_0x552df1=>this['editor']['plugins']['get']('Users')['getUser'](_0x552df1)),'fromVersion':_0x344929};_0x2c3610===this['currentRevision']&&(_0x1452b0['createdAt']=new Date(_0x5de3af['createdAt']['getTime']()+0xa)),_0x2c3610['_update'](_0x1452b0,!0x0),delete _0x1452b0['authors'],_0x26d883['push'](_0x1452b0);}}if(this['adapter']){for(const _0xea3b94 of _0x26d883)this['_bufferUpdate'](_0xea3b94['id'],_0xea3b94,!0x0);this['sendBufferedUpdates']();}return _0x20fe4e;}['addRevisionData'](_0x2b281e){const _0xf30c91=this['repository']['createRevision'](_0x2b281e);return this['adapter']&&_0xf30c91['on']('_update',(_0x3999de,_0x526abc,_0x158697)=>{_0x158697||(this['_bufferUpdate'](_0x526abc['id'],_0x526abc,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xf30c91,this['_findInsertionIndex'](_0xf30c91)),_0xf30c91;}async['getRevisionDocumentData'](_0x36d3ff){await this['_loadRevisionData'](_0x36d3ff);const _0x40c5a8={};for(const _0x47ec05 in _0x36d3ff['diffData']){if(_0x36d3ff['diffData'][_0x47ec05]['attachChange']&&!_0x36d3ff['diffData'][_0x47ec05]['attachChange']['isAttached'])continue;const _0x31818d=this['_removeRevisionMarkers'](JSON['parse'](_0x36d3ff['diffData'][_0x47ec05]['insertions'])),_0x2e74da=this['editor']['editing']['view']['document'],_0x1c5094=new _0x1a018e(_0x2e74da,_0x31818d['map'](_0x309692=>C(_0x309692,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x40c5a8[_0x47ec05]=this['editor']['data']['processor']['toData'](_0x1c5094),this['editor']['data']['processor']['useFillerType']('default');}return _0x40c5a8;}async['getRevisionRootsAttributes'](_0x539a94){await this['_loadRevisionData'](_0x539a94);const _0x4c5212={};for(const _0x2bde91 in _0x539a94['diffData'])_0x539a94['diffData'][_0x2bde91]['attachChange']&&!_0x539a94['diffData'][_0x2bde91]['attachChange']['isAttached']||(_0x4c5212[_0x2bde91]=_0x539a94['diffData'][_0x2bde91]['attributesAfter']||{});return _0x4c5212;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x253fa7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4ce3d5=0x0;_0x4ce3d5<_0x253fa7['length'];_0x4ce3d5++){const _0x96e9a3=_0x253fa7[_0x4ce3d5];let _0x559d5a=!0x1;for(const _0x3786d5 of Object['keys'](_0x96e9a3))void 0x0===_0x96e9a3[_0x3786d5]?delete _0x96e9a3[_0x3786d5]:'id'!==_0x3786d5&&(_0x559d5a=!0x0);_0x559d5a||(_0x253fa7[_0x4ce3d5]=null);}if(_0x253fa7=_0x253fa7['filter'](_0x5ec790=>null!==_0x5ec790),!_0x253fa7['length'])return;for(let _0x35dbd4=0x0;_0x35dbd4<_0x253fa7['length'];_0x35dbd4++){const _0x386d55=_0x253fa7[_0x35dbd4];void 0x0!==_0x386d55['fromVersion']&&void 0x0===_0x386d55['toVersion']&&(_0x386d55['toVersion']=this['repository']['getRevision'](_0x386d55['id'])['toVersion']),void 0x0!==_0x386d55['toVersion']&&void 0x0===_0x386d55['fromVersion']&&(_0x386d55['fromVersion']=this['repository']['getRevision'](_0x386d55['id'])['fromVersion']);}const _0x560268=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x253fa7,_0x560268)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5aa27f=>{if(_0x5aa27f){for(const _0x218310 of _0x5aa27f)this['setRevisionData']({'id':_0x218310['id'],'createdAt':_0x218310['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2924cd,_0x4071f7){let _0x42ae04=this['editor']['config']['get']('initialData'),_0x241960=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x42ae04){_0x42ae04={};for(const _0x5e7925 of this['editor']['model']['document']['getRootNames']())_0x42ae04[_0x5e7925]='';}if('string'==typeof _0x42ae04&&(_0x42ae04={'main':_0x42ae04}),void 0x0===_0x241960){_0x241960={};for(const _0x4ee1fb of this['editor']['model']['document']['getRootNames']())_0x241960[_0x4ee1fb]={};}let _0x7953f3=!0x1;const _0x49548e=Object['keys'](_0x42ae04),_0x189626=Object['keys'](_0x2924cd);for(const _0xa3177b of _0x49548e){if(_0x42ae04[_0xa3177b]!==_0x2924cd[_0xa3177b]&&''!==_0x42ae04[_0xa3177b]['trim']()){_0x7953f3=!0x0;break;}if(!_0x2827e5(_0x241960[_0xa3177b],_0x4071f7[_0xa3177b])&&Object['keys'](_0x241960[_0xa3177b])['length']>0x0){_0x7953f3=!0x0;break;}}_0x7953f3||(_0x7953f3=_0x189626['some'](_0x14a4f9=>!this['editor']['model']['document']['getRoot'](_0x14a4f9))),_0x7953f3&&_0x286457('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42ae04,'editorRootsAttributes':_0x241960,'revisionData':_0x2924cd,'revisionRootsAttributes':_0x4071f7}),this['editor']['config']['set']('initialData',_0x2924cd),this['editor']['config']['set']('rootsAttributes',_0x4071f7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xa36546=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xa36546['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x515a5a){const _0x4dc941=this['repository']['getRevisions']();_0x4dc941['reverse']();let _0x22d38d=0x0;for(;_0x22d38d<_0x4dc941['length'];){const _0x2b023a=_0x4dc941[_0x22d38d];if(_0x2b023a===this['currentRevision']){_0x22d38d++;continue;}if(_0x2b023a['id']===this['_initialRevisionId'])break;const _0x1ecafb=_0x515a5a['toVersion']-_0x2b023a['toVersion']||_0x515a5a['fromVersion']-_0x2b023a['fromVersion'];if(_0x1ecafb>0x0)break;if(_0x1ecafb<0x0)_0x22d38d++;else{if(!_0x515a5a['creator']&&_0x2b023a['creator'])break;if(_0x2b023a['creator']||!_0x515a5a['creator']){if(_0x515a5a['createdAt']>_0x2b023a['createdAt'])break;_0x22d38d++;}else _0x22d38d++;}}return _0x22d38d;}['setRevisionData'](_0x356bb4){const _0x258d65=this['repository']['getRevision'](_0x356bb4['id']);if(_0x356bb4['createdAt']&&(_0x356bb4['createdAt']=new Date(_0x356bb4['createdAt'])),_0x356bb4['authorsIds']){const _0x86a8a5=this['editor']['plugins']['get']('Users');_0x356bb4['authors']=_0x356bb4['authorsIds']['map'](_0x417010=>_0x86a8a5['getUser'](_0x417010));}_0x258d65['_update'](_0x356bb4,!0x0);}['buildRevisionData']({revision:_0x440247=null,from:_0x12ac41=null,to:_0x1372c5=null}){_0x12ac41=null!==_0x12ac41?_0x12ac41:_0x440247['fromVersion'],_0x1372c5=null!==_0x1372c5?_0x1372c5:_0x440247['toVersion'];const _0x4fbd46=this['_revisionDataBuilder']['getData'](_0x12ac41,_0x1372c5),_0x373fb8={'diffData':_0x4fbd46['diffData'],'authorsIds':_0x4fbd46['authorsIds'],'fromVersion':_0x12ac41,'toVersion':_0x1372c5};if(!_0x440247||_0x1372c5!==_0x440247['toVersion']){const _0x264276=_0x1372c5-0x1,_0x11535d=this['_source']['history']['getOperation'](_0x264276);_0x373fb8['createdAt']=_0x11535d&&_0x11535d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x12ac41===this['_loadedStateData']['fromVersion']){for(const _0x595384 of this['_loadedStateData']['authors'])_0x373fb8['authorsIds']['includes'](_0x595384['id'])||_0x373fb8['authorsIds']['push'](_0x595384['id']);}return _0x373fb8;}['_loadRevisionData'](_0x53c09c){if(!_0x53c09c||_0x53c09c['diffData'])return Promise['resolve']();{const _0x599495=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x599495,'revisionId':_0x53c09c['id']})['then'](_0x4dd65d=>{_0x53c09c['diffData']=_0x4dd65d['diffData'];});}}['_bufferUpdate'](_0x4bb569,_0x5f116a,_0x18ef86){if(this['_bufferedUpdates']['has'](_0x4bb569)){const _0x1b58ae=this['_bufferedUpdates']['get'](_0x4bb569);_0x5f116a=_0x18ef86?{..._0x1b58ae,..._0x5f116a}:{..._0x5f116a,..._0x1b58ae};}this['_bufferedUpdates']['set'](_0x4bb569,_0x5f116a);}['_getFromVersion'](_0x2f310d){const _0x334c76=this['repository']['getRevisions']();_0x334c76['reverse'](),_0x334c76['shift']();const _0x221226=_0x334c76['find'](_0xe6c149=>_0xe6c149['toVersion']<=_0x2f310d)['toVersion'];return _0x221226<this['_startingVersion']?this['_startingVersion']:_0x221226;}['_createInitialRevision'](_0x39587e){const _0x5bb147=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5bb147)this['_initialRevisionId']=_0x5bb147['id'];else{const _0x2cb954=!this['editor']['model']['document']['roots']['find'](_0x57dc48=>this['editor']['model']['hasContent'](_0x57dc48)),_0x4f1f08=this['editor']['plugins']['get']('Users')['me']['id'],_0x2524e1=m(this['editor']['locale'],_0x2cb954?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x39587e,'to':_0x39587e,'id':this['_initialRevisionId'],'name':_0x2524e1,'creatorId':_0x4f1f08});}}['_createCurrentRevision'](_0x50b696){const _0x4c126b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4c126b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x50b696,'to':_0x50b696,'id':_0x4c126b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3f03f0,from:_0x4d4974,to:_0x589e5c,creatorId:_0x4d98ac,id:_0x448fa5}){const _0xfb6546=this['buildRevisionData']({'from':_0x4d4974,'to':_0x589e5c});_0xfb6546['name']=_0x3f03f0,_0xfb6546['creatorId']=_0x4d98ac,_0xfb6546['id']=_0x448fa5;const _0x3e44ef=this['addRevisionData'](_0xfb6546);return this['adapter']&&this['_bufferUpdate'](_0xfb6546['id'],_0xfb6546,!0x0),_0x3e44ef;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xb9a60c){return(_0xb9a60c=_0xb9a60c['filter'](_0x3fccb0=>!_0x3fccb0['name']||'revision-start'!==_0x3fccb0['name']&&'revision-end'!==_0x3fccb0['name']))['forEach'](_0x205639=>{'string'!=typeof _0x205639&&(_0x205639['children']=this['_removeRevisionMarkers'](_0x205639['children']),_0x205639['attributes']=_0x205639['attributes']['filter'](_0x2d2935=>!_0x2d2935[0x0]['startsWith']('data-revision-')));}),_0xb9a60c;}}function C(_0x5a3f63,_0xc4b3ab){const _0x28b0cf=_0xc4b3ab['editing']['view']['document'];if('string'==typeof _0x5a3f63)return new _0xf6e769(_0x28b0cf,_0x5a3f63);{const _0x339cab=_0x5a3f63['children']['map'](_0x3734c2=>C(_0x3734c2,_0xc4b3ab));return new(P[_0x5a3f63['type']]||_0xf7d26d)(_0x28b0cf,_0x5a3f63['name'],_0x5a3f63['attributes'],_0x339cab);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x18f0ef){this['editor']=_0x18f0ef,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'](_0x37deb0){this['source']=_0x37deb0;const _0x7824ef=new Map(),_0x1503f2=new Map(),_0x4f5bfa=this['editor']['model']['document']['roots']['map'](_0x3c4f04=>_0x3c4f04['rootName']);for(const _0x573bac of _0x4f5bfa){const _0x3a22d4=this['editor']['model']['document']['getRoot'](_0x573bac),_0x47c4ce=T(_0x3a22d4);_0x7824ef['set'](_0x573bac,_0x47c4ce),_0x1503f2['set'](_0x573bac,Object['fromEntries'](_0x3a22d4['getAttributes']()));}const _0x2e3fa5=Array['from'](this['editor']['model']['markers'])['map'](_0x489315=>[_0x489315['name'],_0x489315['getRange']()]),_0x486dc1=this['source']['version'];this['_saveMetaData'](_0x486dc1,_0x7824ef,_0x2e3fa5,_0x1503f2),this['_startingRevisionId']=this['_revisionId'];const _0x6ef9f9=new Map(),_0x49786f=new Map();for(const _0x525631 of _0x4f5bfa){const _0x2ed81e=F(_0x525631);_0x6ef9f9['set'](_0x525631,_0x2ed81e),_0x49786f['set'](_0x525631,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6ef9f9,[],_0x49786f);}['getData'](_0x51c686,_0x2b4852){if(this['_lastFrom']===_0x51c686&&this['_lastTo']<=_0x2b4852)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b4852,!0x0);else{if(!this['_savedMetaData']['has'](_0x51c686)){const _0xc17a31=this['_getPreviousFrom'](_0x51c686);this['_calculateMetaData'](_0xc17a31,_0x51c686,!0x1);}this['_calculateMetaData'](_0x51c686,_0x2b4852,!0x0);}return this['_lastFrom']=_0x51c686,this['_lastTo']=_0x2b4852,this['_getState']();}['loadState'](_0xc16dc6){this['_reset'](),this['_lastFrom']=_0xc16dc6['fromVersion'],this['_lastTo']=_0xc16dc6['toVersion'];for(const _0x142c6f in _0xc16dc6['diffData']){const _0x3073c2=_0xc16dc6['diffData'][_0x142c6f]['attachChange'],_0xe70f28=_0x1e8d51(_0xc16dc6['diffData'][_0x142c6f]['attributesBefore'])||{},_0xc65197=this['_makeModelFromViewString'](_0xc16dc6['diffData'][_0x142c6f]['deletions']);_0xc65197['rootName']=_0x142c6f,_0xc65197['_isAttached']=!_0x3073c2||!_0x3073c2['isAttached'],_0xc65197['isAttached']=()=>_0xc65197['_isAttached'],this['_baseRoots']['set'](_0x142c6f,_0xc65197),this['_baseRootsAttributes']['set'](_0x142c6f,_0xe70f28),_0x3073c2&&this['_touchedRoots']['set'](_0x142c6f,_0x3073c2);const _0x3c10ff=this['_makeIdsRoot'](_0xc65197);this['_baseIdsRoots']['set'](_0x142c6f,_0x3c10ff);for(const [_0x16b6d0,_0x4d739e]of _0xc65197['markers']){if(!_0x16b6d0['startsWith']('revision:'))continue;const _0x4b0b5c=_0x16b6d0['split'](':')[0x2];for(const _0x4226ef of _0x4d739e['getWalker']({'singleCharacters':!0x0})){const _0x461591=this['_getVidAttributeName'](_0x4226ef),_0x43f6da='elementEnd'==_0x4226ef['type']?_0x4226ef['previousPosition']['path']['slice'](0x0,-0x1):_0x4226ef['previousPosition']['path'],_0x5c1a12=_0x3c10ff['getNodeByPath'](_0x43f6da)['getAttribute'](_0x461591);this['_touched']['set'](_0x5c1a12,{'userId':_0x4b0b5c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x578717=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x420bda=>!this['_touched']['has'](_0x420bda));let _0x52c0c1=0x0;const _0x475f9a=new Map();for(const _0x2e7baa in _0xc16dc6['diffData']){const _0x40ba38=_0xc16dc6['diffData'][_0x2e7baa]['attachChange'],_0x8976fd=_0x1e8d51(_0xc16dc6['diffData'][_0x2e7baa]['attributesAfter'])||{},_0x3934e7=this['_makeModelFromViewString'](_0xc16dc6['diffData'][_0x2e7baa]['insertions']);_0x3934e7['rootName']=_0x2e7baa,_0x3934e7['_isAttached']=!_0x40ba38||_0x40ba38['isAttached'],_0x3934e7['isAttached']=()=>_0x3934e7['_isAttached'],this['_diffRoots']['set'](_0x2e7baa,_0x3934e7),this['_diffRootsAttributes']['set'](_0x2e7baa,_0x8976fd);const _0x4c3491=this['_makeIdsRoot'](_0x3934e7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2e7baa,_0x4c3491),_0x475f9a['set'](_0x2e7baa,_0x3934e7['isAttached']()?_0x8976fd:{});for(const [_0x45d55d,_0x512051]of _0x3934e7['markers']){if(!_0x45d55d['startsWith']('revision:'))continue;const _0x357cd0=_0x45d55d['split'](':')[0x2];for(const _0x14ef73 of _0x512051['getWalker']({'singleCharacters':!0x0})){const _0x32c5c5=this['_getVidAttributeName'](_0x14ef73),_0x31ff6e=this['_revisionId']++,_0x584927='elementEnd'==_0x14ef73['type']?_0x14ef73['previousPosition']['path']['slice'](0x0,-0x1):_0x14ef73['previousPosition']['path'];_0x4c3491['getNodeByPath'](_0x584927)['_setAttribute'](_0x32c5c5,_0x31ff6e),this['_touched']['set'](_0x31ff6e,{'userId':_0x357cd0});}}for(const _0x23ff85 of this['editor']['model']['createRangeIn'](_0x3934e7)['getWalker']({'singleCharacters':!0x0})){const _0x114c25=this['_getVidAttributeName'](_0x23ff85),_0x4b14e3='elementEnd'==_0x23ff85['type']?_0x23ff85['previousPosition']['path']['slice'](0x0,-0x1):_0x23ff85['previousPosition']['path'],_0xf2b1e1=_0x4c3491['getNodeByPath'](_0x4b14e3);_0xf2b1e1['getAttribute'](_0x114c25)>0x0||_0xf2b1e1['_setAttribute'](_0x114c25,_0x578717[_0x52c0c1++]);}for(const [_0x2f4d50,_0x2feeab]of _0x3934e7['markers'])_0x2f4d50['startsWith']('revision:')||this['_markers']['set'](_0x2f4d50,_0x2feeab);}const _0x2ccf52=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2ccf52),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ccf52,0x1));const _0xe12d0=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xe12d0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xe12d0,0x1));const _0x149c7a=Array['from'](this['_diffRoots'])['map'](([_0xdccecb,_0x5713af])=>[_0xdccecb,T(_0x5713af)]);this['_saveMetaData'](this['_lastTo'],_0x149c7a,this['_markers'],_0x475f9a);}['_makeModelFromViewString'](_0x371997){const _0x2518a9=JSON['parse'](_0x371997),_0x3d8462=this['editor']['editing']['view']['document'],_0x3d88aa=new _0x1a018e(_0x3d8462,_0x2518a9['map'](_0x3623a0=>C(_0x3623a0,this['editor'])));return this['editor']['data']['toModel'](_0x3d88aa);}['_saveMetaData'](_0x2fdd50,_0x3456e3,_0x584db8,_0x2aa074){const _0x2ae179=new Map(_0x3456e3),_0x4d290d=new Map(_0x1e8d51(_0x2aa074)),_0x3f4d00=new Map();for(const [_0x2e6f06,_0x27adf0]of _0x584db8)_0x3f4d00['set'](_0x2e6f06,{'start':_0x27adf0['start']['clone'](),'end':_0x27adf0['end']['clone'](),'rootName':_0x27adf0['root']['rootName']});this['_savedMetaData']['set'](_0x2fdd50,{'roots':_0x2ae179,'markers':_0x3f4d00,'rootsAttributes':_0x4d290d});}['_removeMetaData'](_0x23dc5c){this['_savedMetaData']['delete'](_0x23dc5c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x3e98e3,_0x8c6eee=null){let _0x442172=null;_0x3e98e3['is']('documentFragment')||(_0x442172=new ft(_0x3e98e3['name'],{'vid_start':null===_0x8c6eee?this['_revisionId']++:_0x8c6eee++}));const _0x589d33=[];for(const _0x197e84 of _0x3e98e3['getChildren']())if(_0x197e84['is']('element')){_0x589d33['push'](this['_makeIdsRoot'](_0x197e84,_0x8c6eee));const _0x4cf384=_0x589d33[_0x589d33['length']-0x1];null!==_0x8c6eee&&(_0x8c6eee=_0x4cf384['is']('element','$text')?_0x4cf384['getAttribute']('vid')+0x1:_0x4cf384['getAttribute']('vid_end')+0x1);}else{for(let _0x342433=0x0;_0x342433<_0x197e84['offsetSize'];_0x342433++)_0x589d33['push'](new ft('$text',{'vid':null===_0x8c6eee?this['_revisionId']++:_0x8c6eee++}));}if(_0x3e98e3['is']('documentFragment')){const _0xee0eea=F(_0x3e98e3['rootName']);return _0xee0eea['_insertChild'](0x0,_0x589d33),_0xee0eea;}return _0x442172['_setAttribute']('vid_end',null===_0x8c6eee?this['_revisionId']++:_0x8c6eee++),_0x442172['_insertChild'](0x0,_0x589d33),_0x442172;}['_calculateMetaData'](_0xc1dd8b,_0x459a51,_0x4497bd){this['_reset']();const {roots:_0x1d76d0,markers:_0x108da4,rootsAttributes:_0x392558}=this['_savedMetaData']['get'](_0xc1dd8b);this['_baseRoots']=new Map(_0x1d76d0),this['_baseRootsAttributes']=new Map(_0x1e8d51(_0x392558));for(const [_0xd9d8d1,_0x174166]of this['_baseRoots'])if('$graveyard'!==_0xd9d8d1&&(this['_diffRoots']['set'](_0xd9d8d1,T(_0x174166)),this['_diffRootsAttributes']=new Map(_0x1e8d51(_0x392558)),_0x4497bd)){const _0x25f2c9=this['_revisionId'];this['_idsRoots']['set'](_0xd9d8d1,this['_makeIdsRoot'](_0x174166)),this['_baseIdsRoots']['set'](_0xd9d8d1,this['_makeIdsRoot'](_0x174166,_0x25f2c9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4497bd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5ae931,_0x4dd38f]of _0x108da4){const _0x1e36ea=this['_baseRoots']['get'](_0x4dd38f['rootName']),_0x2ac020=this['_diffRoots']['get'](_0x4dd38f['rootName']),_0x1cffa1=new vt(this['_fixPosition'](_0x4dd38f['start'],_0x1e36ea),this['_fixPosition'](_0x4dd38f['end'],_0x1e36ea)),_0x3a3c46=this['_fixRange'](_0x1cffa1,_0x2ac020);_0x1e36ea['markers']['set'](_0x5ae931,_0x1cffa1),this['_markers']['set'](_0x5ae931,_0x3a3c46);}this['_applyOperations'](_0xc1dd8b,_0x459a51,_0x4497bd);}['_applyOperations'](_0x46029d,_0x1cadcd,_0x390a15){for(const _0x38d51e of this['source']['getOperations'](_0x46029d,_0x1cadcd))this['_handleOperation'](_0x38d51e,_0x390a15);for(const _0x51a530 of this['_diffRoots']['values']())_0x51a530['markers']['clear']();for(const [_0x12be0a,_0x375c71]of this['_markers']){this['_diffRoots']['get'](_0x375c71['root']['rootName'])['markers']['set'](_0x12be0a,_0x375c71['clone']());}const _0x37f8b0=new Map(),_0x572c59=new Map();for(const [_0x5d4f4e,_0x47a52f]of this['_diffRoots'])_0x37f8b0['set'](_0x5d4f4e,T(_0x47a52f)),_0x572c59['set'](_0x5d4f4e,this['_diffRootsAttributes']['get'](_0x5d4f4e));this['_saveMetaData'](_0x1cadcd,_0x37f8b0,this['_markers'],_0x572c59);}['_getPreviousFrom'](_0x497c75){const _0x58e4b7=Array['from'](this['_savedMetaData']['keys']());_0x58e4b7['sort']((_0x4c14f6,_0x247f2b)=>_0x4c14f6-_0x247f2b),_0x58e4b7['reverse']();for(const _0x2ab780 of _0x58e4b7)if(_0x2ab780<_0x497c75)return _0x2ab780;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3536e9,_0x25d28f){const _0x32c0ae=Array['from'](_0x25d28f['markers'])['map'](([_0x565e1b,_0x4399ce])=>[_0x565e1b,this['_fixRange'](_0x4399ce,_0x3536e9)]);_0x3536e9['markers']=new Map(_0x32c0ae);}['_transformMarkers'](_0x5ed463){for(const _0x15ca35 of this['_markers']['values']()){const _0x14477f=_0x15ca35['getTransformedByOperation'](_0x5ed463),_0x5ed703=vt['_createFromRanges'](_0x14477f);_0x15ca35['start']=_0x5ed703['start'],_0x15ca35['end']=_0x5ed703['end'];}}['_handleOperation'](_0x1b4374,_0x58b2a){if('addRoot'!=_0x1b4374['type']&&'detachRoot'!=_0x1b4374['type']){if('insert'==_0x1b4374['type']){const _0x4779d2=_0x1b4374['position']['root']['rootName'];this['_diffRoots']['has'](_0x4779d2)||(this['_diffRoots']['set'](_0x4779d2,F(_0x4779d2,!0x0)),this['_diffRootsAttributes']['set'](_0x4779d2,{}),_0x58b2a&&this['_idsRoots']['set'](_0x4779d2,F(_0x4779d2,!0x0)));}else{if('addRootAttribute'==_0x1b4374['type']||'removeRootAttribute'==_0x1b4374['type']||'changeRootAttribute'==_0x1b4374['type'])return void this['_handleRootAttributeOperation'](_0x1b4374);'marker'==_0x1b4374['type']&&this['_handleMarkerOperation'](_0x1b4374);}if('marker'!==_0x1b4374['type']){const _0x337298=this['_cloneOperation'](_0x1b4374,this['_diffRoots']);_0x337298['_execute'](),this['_transformMarkers'](_0x337298);}if(_0x58b2a)switch(_0x1b4374['type']){case'insert':this['_handleInsertOperation'](_0x1b4374);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1b4374);break;case'merge':this['_handleMergeOperation'](_0x1b4374);break;case'split':this['_handleSplitOperation'](_0x1b4374);}}else this['_handleRootOperation'](_0x1b4374,_0x58b2a);}['_cloneOperation'](_0x5e5387,_0x10b929){const _0x25bd5a=_0x5e5387['clone']();return _0x25bd5a['_authorId']=_0x5e5387['_authorId'],this['_fixOperation'](_0x25bd5a,_0x10b929),_0x25bd5a;}['_getBaseVids'](_0x121c98){return _0x121c98['map'](_0x192e3d=>{const _0x5bd005=this['_getVidAttributeName'](_0x192e3d);return Number(_0x192e3d['item']['getAttribute'](_0x5bd005));});}['_generateTape'](_0x1e1236,_0xb05fca){if(_0x1e1236['is']('element','$text'))_0xb05fca['push']({'item':_0x1e1236,'type':'text'});else{_0x1e1236['is']('element')&&_0xb05fca['push']({'item':_0x1e1236,'type':'elementStart'});for(const _0x26fee0 of _0x1e1236['getChildren']())this['_generateTape'](_0x26fee0,_0xb05fca);_0x1e1236['is']('element')&&_0xb05fca['push']({'item':_0x1e1236,'type':'elementEnd'});}return _0xb05fca;}['_getState'](){const _0x2c62ec=new Map(this['_touched']),_0x2558bd=new Map(_0x2c62ec),_0xd475a0=new Map(),_0x5fbb04={'insertions':{},'deletions':{}},_0x4e2d15={'insertions':{},'deletions':{}},_0x435fd9=new Map(),_0x23dd36=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x23dd36['delete']('$graveyard');for(const _0x3f16b0 of _0x23dd36){const _0x1d455f=this['_diffRoots']['get'](_0x3f16b0)||F(_0x3f16b0,!0x1),_0x2477eb=this['_baseRoots']['get'](_0x3f16b0)||F(_0x3f16b0,!0x1);_0x1d455f['isAttached']()||_0x2477eb['isAttached']()?(_0x5fbb04['insertions'][_0x3f16b0]=T(_0x1d455f),_0x5fbb04['deletions'][_0x3f16b0]=T(_0x2477eb),this['_copyMarkers'](_0x5fbb04['deletions'][_0x3f16b0],_0x2477eb),this['_copyMarkers'](_0x5fbb04['insertions'][_0x3f16b0],_0x1d455f),_0x4e2d15['insertions'][_0x3f16b0]=this['_generateTape'](this['_idsRoots']['get'](_0x3f16b0),[]),_0x4e2d15['deletions'][_0x3f16b0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3f16b0)||F(_0x3f16b0,!0x1),[])):_0x23dd36['delete'](_0x3f16b0);}for(const _0x4a9ccb of _0x23dd36){const _0x1b1795=_0x4e2d15['insertions'][_0x4a9ccb];for(const _0x78db33 of _0x1b1795){const _0x23b38a=this['_getVidAttributeName'](_0x78db33),_0xe5640a=_0x78db33['item']['getAttribute'](_0x23b38a);_0x2558bd['delete'](_0xe5640a),_0xe5640a>=this['_startingRevisionId']&&_0xd475a0['set'](_0xe5640a,_0x2c62ec['get'](_0xe5640a));}}for(const _0x4ad21f of _0x23dd36){const _0x20bd88=_0x4e2d15['insertions'][_0x4ad21f],_0x2a6bd2=this['_getBaseVids'](_0x4e2d15['deletions'][_0x4ad21f]);let _0x2a11ae=0x0;for(const _0x50929a of _0x20bd88){const _0xcaf370=this['_getVidAttributeName'](_0x50929a),_0x1181bc=_0x50929a['item']['getAttribute'](_0xcaf370);if(!_0xd475a0['has'](_0x1181bc)&&!_0x435fd9['has'](_0x1181bc)){if(_0x2558bd['has'](_0x1181bc))_0x2a11ae++;else{if(_0x1181bc!=_0x2a6bd2[_0x2a11ae]){const _0x2dc900=_0x2c62ec['get'](_0x1181bc)||_0x2c62ec['get'](_0x2a6bd2[_0x2a11ae]);for(;_0x1181bc!=_0x2a6bd2[_0x2a11ae];)_0x2558bd['has'](_0x2a6bd2[_0x2a11ae])||(_0x435fd9['set'](_0x2a6bd2[_0x2a11ae],_0x2dc900),_0x2c62ec['set'](_0x2a6bd2[_0x2a11ae],_0x2dc900)),_0x2a11ae++;}_0x2a11ae++;}}}}for(const _0x260e88 of _0x23dd36){const _0x1e74b2=_0x4e2d15['insertions'][_0x260e88];for(const _0x2a4dfc of _0x1e74b2){const _0x2a7a50=this['_getVidAttributeName'](_0x2a4dfc),_0x544570=_0x2a4dfc['item']['getAttribute'](_0x2a7a50);if(_0x435fd9['has'](_0x544570)){const _0x2a10e1=_0x435fd9['get'](_0x544570);_0x2558bd['has'](_0x544570)||_0x2558bd['set'](_0x544570,{..._0x2a10e1}),_0xd475a0['set'](_0x544570,{..._0x2a10e1});}}}for(const _0x3dfbe6 of _0x2558bd['keys']())_0x3dfbe6>=this['_startingRevisionId']&&_0x2558bd['delete'](_0x3dfbe6);const _0x24eaef=new Map();for(const _0x5df8e3 of _0x23dd36){let _0x592bbe=_0x4e2d15['insertions'][_0x5df8e3];for(const _0x2fa24e of _0x592bbe)if(_0x2fa24e['item']['is']('element','tableCell')){const _0x264ae9=this['_getVidAttributeName'](_0x2fa24e),_0x31a78f=_0x2fa24e['item']['getAttribute'](_0x264ae9);if(_0xd475a0['has'](_0x31a78f)){const _0x554bbb=_0x2fa24e['item']['parent']['parent']['getAttribute']('vid_start'),_0xa21072=_0x24eaef['get'](_0x554bbb)||new Set();_0xa21072['add'](_0xd475a0['get'](_0x31a78f)['userId']),_0x24eaef['set'](_0x554bbb,_0xa21072);}}_0x592bbe=_0x4e2d15['deletions'][_0x5df8e3];for(const _0xb84141 of _0x592bbe)if(_0xb84141['item']['is']('element','tableCell')){const _0x239a33=this['_getVidAttributeName'](_0xb84141),_0x1ba183=_0xb84141['item']['getAttribute'](_0x239a33);if(_0x2558bd['has'](_0x1ba183)){const _0x43a938=_0xb84141['item']['parent']['parent']['getAttribute']('vid_start'),_0x220bc7=_0x24eaef['get'](_0x43a938)||new Set();_0x220bc7['add'](_0x2558bd['get'](_0x1ba183)['userId']),_0x24eaef['set'](_0x43a938,_0x220bc7);}}for(const _0x4c9291 of _0x24eaef['keys']())(_0xd475a0['has'](_0x4c9291)||_0x2558bd['has'](_0x4c9291))&&_0x24eaef['delete'](_0x4c9291);}for(const _0x26d23a of _0x23dd36){const _0x180de7=_0x4e2d15['insertions'][_0x26d23a];let _0xc6a999=null,_0x138226=null;for(const _0x117e7b of _0x180de7){const _0x38ecf1=this['_getVidAttributeName'](_0x117e7b),_0x21e6c0=_0x117e7b['item']['getAttribute'](_0x38ecf1),_0x2084b9=_0x24eaef['get'](_0x21e6c0);_0x2084b9&&'elementStart'==_0x117e7b['type']&&(_0xc6a999=Array['from'](_0x2084b9)[0x0],_0x138226=_0x117e7b['item']['getAttribute']('vid_end')),_0xc6a999&&(_0x2558bd['set'](_0x21e6c0,{'userId':_0xc6a999}),_0xd475a0['set'](_0x21e6c0,{'userId':_0xc6a999})),_0x21e6c0==_0x138226&&(_0xc6a999=null,_0x138226=null);}}const _0x245573={},_0x46c153=new Set();for(const _0x5bdde0 of _0x23dd36){const _0x40c1ac=_0x5fbb04['deletions'][_0x5bdde0],_0x22b068=_0x5fbb04['insertions'][_0x5bdde0];for(const {userId:_0x18ba2b}of this['_touchedMarkers']['values']())null!==_0x18ba2b&&_0x46c153['add'](_0x18ba2b);for(const {userId:_0x3ee5b1}of this['_touchedRoots']['values']())null!==_0x3ee5b1&&_0x46c153['add'](_0x3ee5b1);this['_markChanges'](_0x22b068,_0x4e2d15['insertions'][_0x5bdde0],_0xd475a0,'insertion',_0x46c153),this['_markChanges'](_0x40c1ac,_0x4e2d15['deletions'][_0x5bdde0],_0x2558bd,'deletion',_0x46c153),_0x245573[_0x5bdde0]={'insertions':this['_prepareViewToSave'](_0x22b068),'deletions':this['_prepareViewToSave'](_0x40c1ac),'attachChange':this['_touchedRoots']['get'](_0x5bdde0)||null,'attributesBefore':_0x1e8d51(this['_baseRootsAttributes']['get'](_0x5bdde0))||{},'attributesAfter':_0x1e8d51(this['_diffRootsAttributes']['get'](_0x5bdde0))};}return{'diffData':_0x245573,'authorsIds':Array['from'](_0x46c153)};}['_processRootBeforeSave'](_0xac8d5){for(const [,_0x544a41]of _0xac8d5['markers']){const _0x3a474a=_0x544a41['start']['getAncestors']()['filter'](_0x896a5d=>'tableCell'==_0x896a5d['name']);for(const _0x239f55 of _0x3a474a)0x1==_0x239f55['childCount']&&_0x239f55['getChild'](0x0)['is']('element','paragraph')&&_0x239f55['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x460c57){this['_processRootBeforeSave'](_0x460c57);const _0x28d0da=this['editor']['data']['toView'](_0x460c57,{}),_0x387880=Array['from'](_0x28d0da['getChildren']())['map'](_0x5bfd07=>this['_getViewJson'](_0x5bfd07));return JSON['stringify'](_0x387880);}['_getViewJson'](_0x3ce33b){if(_0x3ce33b['is']('$text'))return _0x3ce33b['data'];{const _0xd3ec87=_0x3ce33b;return{'type':Object['keys'](P)['find'](_0x525ac0=>_0x3ce33b instanceof P[_0x525ac0]),'name':_0xd3ec87['name'],'attributes':Array['from'](_0xd3ec87['getAttributes']()),'children':Array['from'](_0xd3ec87['getChildren']())['map'](_0x3a61f7=>this['_getViewJson'](_0x3a61f7))};}}['_markChanges'](_0x3d4142,_0xf4c54c,_0x224c6e,_0x376d2e,_0x290875){let _0x1c233d=null,_0xa8a022=null,_0xf0e22c=0x0;const _0x5cfdf6=this['editor']['model'];for(let _0x34d864=0x0;_0x34d864<_0xf4c54c['length'];_0x34d864++){const _0x5f19f9=this['_getVidAttributeName'](_0xf4c54c[_0x34d864]),_0x3ed263=_0xf4c54c[_0x34d864]['item']['getAttribute'](_0x5f19f9),_0x3bf171=_0x224c6e['get'](_0x3ed263),_0xcd0719=_0x34d864==_0xf4c54c['length']-0x1;(!_0x1c233d&&_0x3bf171&&(_0x1c233d=_0x3bf171,_0xa8a022=_0xf4c54c[_0x34d864]),_0x1c233d&&(!_0x3bf171||_0x3bf171['userId']!=_0x1c233d['userId']))&&(_0x24675a(_0x3bf171,B(_0xa8a022,_0x3d4142,_0x5cfdf6),B(_0xf4c54c[_0x34d864],_0x3d4142,_0x5cfdf6)),_0x1c233d=_0x3bf171||null,_0xa8a022=_0x3bf171?_0xf4c54c[_0x34d864]:null),_0x1c233d&&_0xcd0719&&_0x24675a(_0x3bf171,B(_0xa8a022,_0x3d4142,_0x5cfdf6),J(_0xf4c54c[_0x34d864],_0x3d4142,_0x5cfdf6));}function _0x24675a(_0x4c4603,_0x1d4e9f,_0x27c99f){const _0x2e8d66=_0x1c233d['userId'],_0x285b9d='revision:'+_0x376d2e+':'+_0x2e8d66+':'+_0xf0e22c++,_0x4ed8ac=_0x5cfdf6['createRange'](_0x1d4e9f,_0x27c99f);_0x3d4142['markers']['set'](_0x285b9d,_0x4ed8ac),null!==_0x2e8d66&&_0x290875['add'](_0x2e8d66);}}['_getVidAttributeName'](_0x1d82e0){switch(_0x1d82e0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1283dc,_0x2eb404){_0x1283dc['baseVersion']=null;for(const _0xc3460a in _0x1283dc){const _0x36ae2b=_0x1283dc[_0xc3460a];if(_0x36ae2b instanceof gt){const _0x156a21=_0x2eb404['get'](_0x36ae2b['root']['rootName']);_0x1283dc[_0xc3460a]=this['_fixPosition'](_0x36ae2b,_0x156a21);}if(_0x36ae2b instanceof vt){const _0x2517db=_0x2eb404['get'](_0x36ae2b['root']['rootName']);_0x1283dc[_0xc3460a]=this['_fixRange'](_0x36ae2b,_0x2517db);}'root'===_0xc3460a&&(_0x1283dc['root']=_0x2eb404['get'](_0x1283dc['root']['rootName']));}}['_fixRange'](_0x58a42e,_0x18f120){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58a42e['start'],_0x18f120),this['_fixPosition'](_0x58a42e['end'],_0x18f120));}['_fixPosition'](_0x425f99,_0x2a5a2e){return this['editor']['model']['createPositionFromPath'](_0x2a5a2e,_0x425f99['path'],_0x425f99['stickiness']);}['_handleInsertOperation'](_0x2739bb){const _0x4f4c96=this['_idsRoots']['get'](_0x2739bb['position']['root']['rootName']),_0x49d1bc=this['_fixPosition'](_0x2739bb['position'],_0x4f4c96),_0x4cc22e=null===_0x2739bb['_authorId']?null:_0x2739bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x539734=_0x49d1bc['parent'],_0x293a31=this['_revisionId'],_0x54c0fc=[];for(const _0x45a018 of _0x2739bb['nodes'])if(_0x45a018['is']('element'))_0x54c0fc['push'](this['_makeIdsRoot'](_0x45a018));else{for(let _0x50fa85=0x0;_0x50fa85<_0x45a018['offsetSize'];_0x50fa85++)_0x54c0fc['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x42cdc4=this['_revisionId'];for(let _0xd98803=_0x293a31;_0xd98803<_0x42cdc4;_0xd98803++)this['_touched']['set'](_0xd98803,{'userId':_0x4cc22e});_0x539734['_insertChild'](_0x49d1bc['offset'],_0x54c0fc);}['_handleMoveOperation'](_0x2b0f84){(_0x2b0f84=this['_cloneOperation'](_0x2b0f84,this['_idsRoots']))['_execute']();const _0x1112f4=null===_0x2b0f84['_authorId']?null:_0x2b0f84['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x90757e=_0x2b0f84['getMovedRangeStart'](),_0x39fb0e=_0x90757e['parent'],_0x30d893=_0x90757e['offset'];!function _0x16bda5(_0x55e72f,_0x24282f,_0x3bde9b,_0xd33026){for(let _0x5ef1df=_0x3bde9b;_0x5ef1df<_0xd33026;_0x5ef1df++){const _0x3a37e6=_0x24282f['getChild'](_0x5ef1df);_0x3a37e6['is']('element','$text')?_0x55e72f['set'](_0x3a37e6['getAttribute']('vid'),{'userId':_0x1112f4}):(_0x55e72f['set'](_0x3a37e6['getAttribute']('vid_start'),{'userId':_0x1112f4}),_0x16bda5(_0x55e72f,_0x3a37e6,0x0,_0x3a37e6['childCount']),_0x55e72f['set'](_0x3a37e6['getAttribute']('vid_end'),{'userId':_0x1112f4}));}}(this['_touched'],_0x39fb0e,_0x30d893,_0x30d893+_0x2b0f84['howMany']);}['_handleMergeOperation'](_0x19129b){const _0x210d7b=null===(_0x19129b=this['_cloneOperation'](_0x19129b,this['_idsRoots']))['_authorId']?null:_0x19129b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33a3e1=_0x19129b['targetPosition']['parent'],_0x5c0793=_0x19129b['sourcePosition']['parent'],_0x53ee30=_0x33a3e1['getAttribute']('vid_end'),_0x5e3713=_0x5c0793['getAttribute']('vid_start');_0x33a3e1['_setAttribute']('vid_end',_0x5c0793['getAttribute']('vid_end')),_0x5c0793['_setAttribute']('vid_end',_0x53ee30),this['_touched']['set'](_0x5e3713,{'userId':_0x210d7b}),this['_touched']['set'](_0x53ee30,{'userId':_0x210d7b}),_0x19129b['_execute']();}['_handleSplitOperation'](_0x34bce0){const _0x1bd2a8=null===(_0x34bce0=this['_cloneOperation'](_0x34bce0,this['_idsRoots']))['_authorId']?null:_0x34bce0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x291d21=_0x34bce0['graveyardPosition'],_0x160e44=_0x34bce0['splitPosition']['parent'];_0x34bce0['_execute']();const _0x916d22=_0x160e44['getAttribute']('vid_end'),_0x3bf3a9=_0x34bce0['insertionPosition']['nodeAfter'];if(_0x291d21){const _0x62d463=_0x3bf3a9['getAttribute']('vid_end'),_0x57053e=_0x160e44['getAttribute']('vid_end');_0x160e44['_setAttribute']('vid_end',_0x62d463),_0x3bf3a9['_setAttribute']('vid_end',_0x57053e),this['_touched']['set'](_0x160e44['getAttribute']('vid_end'),{'userId':_0x1bd2a8}),this['_touched']['set'](_0x3bf3a9['getAttribute']('vid_start'),{'userId':_0x1bd2a8});}else{const _0x4c01b4=this['_revisionId']++,_0x2402ff=this['_revisionId']++;_0x160e44['_setAttribute']('vid_end',_0x4c01b4),_0x3bf3a9['_setAttribute']('vid_start',_0x2402ff),_0x3bf3a9['_setAttribute']('vid_end',_0x916d22),this['_touched']['set'](_0x4c01b4,{'userId':_0x1bd2a8}),this['_touched']['set'](_0x2402ff,{'userId':_0x1bd2a8});}}['_handleMarkerOperation'](_0x5b769b){if(!_0x5b769b['affectsData'])return;const _0x4aa13b=(_0x5b769b=this['_cloneOperation'](_0x5b769b,this['_diffRoots']))['oldRange']?_0x5b769b['oldRange']['root']:null,_0x5c30c4=_0x5b769b['newRange']?_0x5b769b['newRange']['root']:null;_0x4aa13b&&this['_markers']['delete'](_0x5b769b['name']),_0x5c30c4&&this['_markers']['set'](_0x5b769b['name'],_0x5b769b['newRange']['clone']());const _0x40d796=null===_0x5b769b['_authorId']?null:_0x5b769b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cfb36=_0x5b769b['name'];if(!this['_touchedMarkers']['has'](_0x5cfb36))return void this['_touchedMarkers']['set'](_0x5cfb36,{'range':_0x5b769b['oldRange'],'userId':_0x40d796});const _0x1e502d=this['_touchedMarkers']['get'](_0x5cfb36),_0x49ecf5=_0x1e502d['range'],_0x524310=_0x5b769b['newRange'];null==_0x49ecf5&&null==_0x524310||_0x49ecf5&&_0x524310&&_0x49ecf5['isEqual'](_0x524310)?this['_touchedMarkers']['delete'](_0x5b769b['name']):_0x1e502d['userId']=_0x40d796;}['_handleRootOperation'](_0x5f0ee4,_0x2ba550){this['_diffRoots']['has'](_0x5f0ee4['rootName'])?this['_diffRoots']['get'](_0x5f0ee4['rootName'])['_isAttached']=_0x5f0ee4['isAdd']:(this['_diffRoots']['set'](_0x5f0ee4['rootName'],F(_0x5f0ee4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5f0ee4['rootName'],{}),_0x2ba550&&this['_idsRoots']['set'](_0x5f0ee4['rootName'],F(_0x5f0ee4['rootName'],!0x0)));const _0x32d288=null===_0x5f0ee4['_authorId']?null:_0x5f0ee4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a5d26=this['_touchedRoots']['get'](_0x5f0ee4['rootName']);_0x1a5d26&&_0x1a5d26['userId']===_0x32d288?this['_touchedRoots']['delete'](_0x5f0ee4['rootName']):this['_touchedRoots']['set'](_0x5f0ee4['rootName'],{'userId':_0x32d288,'isAttached':_0x5f0ee4['isAdd']});}['_handleRootAttributeOperation'](_0x8112e1){const _0x564afb=this['_diffRootsAttributes']['get'](_0x8112e1['root']['rootName']);null===_0x8112e1['newValue']?delete _0x564afb[_0x8112e1['key']]:_0x564afb[_0x8112e1['key']]=_0x8112e1['newValue'];}}function T(_0x593a8d){const _0x220b24=F(_0x593a8d['rootName'],_0x593a8d['isAttached']());for(const _0x32ba1e of _0x593a8d['getChildren']()){const _0x5bc7d9=_0x32ba1e['_clone'](!0x0);_0x220b24['_appendChild'](_0x5bc7d9);}return _0x220b24;}function F(_0x32488b,_0x5132b0=!0x0){const _0x2afb57=new mt();return _0x2afb57['rootName']=_0x32488b,_0x2afb57['_isAttached']=_0x5132b0,_0x2afb57['isAttached']=()=>_0x2afb57['_isAttached'],_0x2afb57;}function B(_0x2a0d9c,_0x115b77,_0x4b2ea1){const _0x449bf8='elementEnd'==_0x2a0d9c['type']?_0x4b2ea1['createPositionAt'](_0x2a0d9c['item'],'end'):_0x4b2ea1['createPositionBefore'](_0x2a0d9c['item']);return _0x4b2ea1['createPositionFromPath'](_0x115b77,_0x449bf8['path'],_0x449bf8['stickiness']);}function J(_0x375028,_0x47f338,_0x718d42){const _0x2cbacc='elementStart'==_0x375028['type']?_0x718d42['createPositionAt'](_0x375028['item'],0x0):_0x718d42['createPositionAfter'](_0x375028['item']);return _0x718d42['createPositionFromPath'](_0x47f338,_0x2cbacc['path'],_0x2cbacc['stickiness']);}class ns extends _0x1d6e15{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x10f10b,_0x2a3e6e){super(_0x10f10b),this['focusTracker']=new _0x1839c5(),this['keystrokes']=new _0x1b4f1b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2a3e6e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1a3f56({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4ef295=_0x4bd851=>_0x4bd851['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4ef295),this['keystrokes']['set']('arrowleft',_0x4ef295),this['keystrokes']['set']('arrowup',_0x4ef295),this['keystrokes']['set']('arrowdown',_0x4ef295);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x491f22){this['revisionNameInputView']['fieldView']['element']['value']=_0x491f22['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x50b95e){const _0x41aa7e=new nt(this['locale'],_0x5d5d36),_0x4ea7fe=_0x41aa7e['fieldView'];_0x4ea7fe['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ff985=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x50b95e&&(_0x4ff985+='\x20('+m(this['locale'],'optional')+')'),(_0x41aa7e['label']=_0x4ff985,_0x4ea7fe['on']('input',()=>{this['revisionNameInputValue']=_0x4ea7fe['element']['value']['trim']();}),_0x41aa7e);}}class u extends _0x15974b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x284fd5=this['editor'],_0x3afdb8=_0x284fd5['plugins']['get']('RevisionTracker');_0x284fd5['ui']['componentFactory']['add']('revisionHistory',_0x2f01d=>{const _0x566218=_0x3ccc2a(_0x2f01d),_0x1ec369=_0x566218['panelView']['children'],_0x450d8c=new te(_0x2f01d),_0x198135=new _0x5e7b7c(_0x2f01d),_0x2e25e3=new _0x3cc15e(_0x2f01d),_0xf686e3=new _0x5e7b7c(_0x2f01d),_0x390505=new _0x3cc15e(_0x2f01d);return _0x566218['bind']('isEnabled')['to'](_0x3afdb8,'isReady',_0x3afdb8,'isEnabled',_0x284fd5,'isReadOnly',(_0x3fbc77,_0x26929f,_0x2ee70f)=>_0x3fbc77&&_0x26929f&&!_0x2ee70f),_0x566218['buttonView']['set']({'icon':_0x470fce['history'],'label':m(_0x2f01d,'Revision\x20history'),'tooltip':!0x0}),_0x2e25e3['set']({'label':m(_0x2f01d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2e25e3['bind']('isEnabled')['to'](_0x3afdb8,'isReady',_0x3afdb8,'isEnabled',_0x284fd5,'isReadOnly',(_0x27a8c5,_0x4dd035,_0x2c3275)=>_0x27a8c5&&_0x4dd035&&!_0x2c3275),_0x2e25e3['on']('execute',()=>this['_showDialog']()),_0x390505['set']({'label':m(_0x2f01d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x390505['bind']('isEnabled')['to'](_0x3afdb8,'isReady',_0x284fd5,'isReadOnly',(_0x55db5b,_0xcfe12)=>_0x55db5b&&!_0xcfe12),_0x390505['on']('execute',()=>{_0x284fd5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x566218['isOpen']=!0x1,_0x284fd5['editing']['view']['focus']();}),_0x198135['children']['add'](_0x2e25e3),_0xf686e3['children']['add'](_0x390505),_0x450d8c['role']='menu',_0x450d8c['items']['addMany']([_0x198135,_0xf686e3]),_0x1ec369['add'](_0x450d8c),_0x566218;}),_0x284fd5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x174394=this['editor'],_0x5109dc=_0x174394['locale'],_0x7b86dc=new _0x461892(_0x5109dc),_0x5b249a=new _0xe5be03(_0x5109dc);_0x7b86dc['buttonView']['set']({'icon':_0x470fce['history'],'label':m(_0x5109dc,'Revision\x20history')});const _0x40b42=new _0x3139e6(_0x5109dc,_0x7b86dc),_0x432769=new _0x2df223(_0x5109dc);_0x432769['set']({'label':m(_0x5109dc,'Save\x20current\x20revision')}),_0x432769['delegate']('execute')['to'](_0x7b86dc),_0x432769['on']('execute',()=>{this['_showDialog']();}),_0x40b42['children']['add'](_0x432769),_0x5b249a['items']['add'](_0x40b42);const _0x5ec969=new _0x3139e6(_0x5109dc,_0x7b86dc),_0x96a050=new _0x2df223(_0x5109dc);return _0x96a050['set']({'label':m(_0x5109dc,'Open\x20revision\x20history')}),_0x96a050['delegate']('execute')['to'](_0x7b86dc),_0x96a050['on']('execute',()=>{_0x174394['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5ec969['children']['add'](_0x96a050),_0x5b249a['items']['add'](_0x5ec969),_0x7b86dc['panelView']['children']['add'](_0x5b249a),_0x7b86dc;}['_showDialog'](){const _0x26aedc=this['editor'],_0x4c9695=_0x26aedc['locale'],_0x3d1c88=_0x26aedc['plugins']['get']('Dialog'),_0x4d381e=_0x26aedc['plugins']['get']('RevisionTracker');function _0x17077d(_0x5eeef7){_0x26aedc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5eeef7['revisionName']?_0x5eeef7['revisionNameInputView']['errorText']=m(_0x4c9695,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x26aedc['plugins']['get'](l)['saveRevision']({'name':_0x5eeef7['revisionName']}),_0x3d1c88['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x17077d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3d1c88['show']({'id':'revisionSave','title':m(_0x4c9695,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x26aedc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3d1c88['hide']()},{'label':m(_0x26aedc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x747ab5){_0x747ab5['bind']('isEnabled')['to'](_0x4d381e,'isReady',_0x4d381e,'isEnabled',_0x26aedc,'isReadOnly',(_0x2605bc,_0x218dd2,_0x48852d)=>_0x2605bc&&_0x218dd2&&!_0x48852d);},'onExecute':()=>_0x17077d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3d61fd=this['editor'],_0x2d58be=_0x3d61fd['locale'];this['_saveRevisionFormView']=new ns(_0x2d58be,_0x3d61fd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x1d6e15{['changeId'];['_model'];constructor(_0x1862de,_0x411066){super(_0x1862de),this['_model']=_0x411066,this['changeId']=_0x411066['id'];const _0x295925=this['bindTemplate'],_0x363ce2=m(_0x1862de,_0x411066['data']['isSuggestion']?'Suggested\x20by':'add'==_0x411066['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x411066['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x295925['to']('type',_0x4f172d=>'ck-revision-change__'+_0x4f172d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x363ce2}]},{'text':'\x20'+_0x411066['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x167bf9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4899c4){super(),this['id']=_0x4899c4['id']||_0x41fc2a(),this['author']=_0x4899c4['author'],this['type']=_0x4899c4['type'],this['data']=_0x4899c4['data']||{},this['rootName']=_0x4899c4['rootName'],this['set']('createdAt',_0x4899c4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x51c256,_0x38016b){this['newRevisionId']=_0x51c256,this['oldRevisionId']=_0x38016b,this['changes']=new _0x53ab85();}['_setChanges'](_0x65f422){for(const _0x62f875 of _0x65f422)this['changes']['add'](_0x62f875);}}const Y={'c':_0x281cbc,'a':_0x31818f,'e':_0xbfca74,'r':_0x87c2e2,'u':_0x3bc906};class d extends _0x15974b{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x569660,_0x2e7606,j];}constructor(_0x5aa8b8){super(_0x5aa8b8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a809e,_0x19d20d,_0x17d9e4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3cf544=>{for(const _0x204a43 of this['editor']['editing']['view']['document']['roots'])_0x17d9e4?_0x3cf544['removeClass']('ck-editor__editable__overlay',_0x204a43):_0x3cf544['addClass']('ck-editor__editable__overlay',_0x204a43);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3590d3=>null!==_0x3590d3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x42572d,_0x20ad4f,_0x2cdf86)=>_0x42572d&&_0x2cdf86?_0x20ad4f['changes']['getIndex'](_0x2cdf86):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xfa9d0a,_0x2307c6)=>_0xfa9d0a?_0x2307c6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2e7606);}['init'](){const _0x4b7c80=this['editor'],_0x37b511=new yt(_0x4b7c80,{'direction':'backward'}),_0x2363f2=new yt(_0x4b7c80,{'direction':'forward'});(_0x4b7c80['commands']['add']('showPreviousChange',_0x37b511),_0x4b7c80['commands']['add']('showNextChange',_0x2363f2),_0x4b7c80['commands']['add']('restoreRevision',new _t(_0x4b7c80)),this['on']('change:numberOfChanges',()=>{_0x37b511['refresh'](),_0x2363f2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4b7c80['enableReadOnlyMode']('revision-viewer'),_0x4b7c80['plugins']['has']('WidgetToolbarRepository'))&&_0x4b7c80['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a160f){await this['loadRevisionData'](_0x1a160f);const _0x15a594={};for(const _0x41c76e in _0x1a160f['diffData']){if(_0x1a160f['diffData'][_0x41c76e]['attachChange']&&!_0x1a160f['diffData'][_0x41c76e]['attachChange']['isAttached'])continue;const _0x5110bf=this['_removeRevisionMarkers'](JSON['parse'](_0x1a160f['diffData'][_0x41c76e]['insertions'])),_0x533613=this['editor']['editing']['view']['document'],_0x1fd204=new _0x1a018e(_0x533613,_0x5110bf['map'](_0x4f0db6=>this['_getViewObj'](_0x4f0db6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x15a594[_0x41c76e]=this['editor']['data']['processor']['toData'](_0x1fd204),this['editor']['data']['processor']['useFillerType']('default');}return _0x15a594;}async['getRevisionRootsAttributes'](_0x33ca88){await this['loadRevisionData'](_0x33ca88);const _0x57231c={};for(const _0x55844f in _0x33ca88['diffData'])_0x33ca88['diffData'][_0x55844f]['attachChange']&&!_0x33ca88['diffData'][_0x55844f]['attachChange']['isAttached']||(_0x57231c[_0x55844f]=_0x33ca88['diffData'][_0x55844f]['attributesAfter']||{});return _0x57231c;}['_removeRevisionMarkers'](_0x2ab46d){return(_0x2ab46d=_0x2ab46d['filter'](_0x1b9d71=>!_0x1b9d71['name']||'revision-start'!==_0x1b9d71['name']&&'revision-end'!==_0x1b9d71['name']))['forEach'](_0x3fb9e1=>{'string'!=typeof _0x3fb9e1&&(_0x3fb9e1['children']=this['_removeRevisionMarkers'](_0x3fb9e1['children']),_0x3fb9e1['attributes']=_0x3fb9e1['attributes']['filter'](_0x250a4f=>!_0x250a4f[0x0]['startsWith']('data-revision-')));}),_0x2ab46d;}async['compare'](_0x45cdec,_0x5e0cf6,_0x39ea29=!0x1){if(!this['isEnabled'])return;const _0x5af6f1=this['diff'],_0x1c5435=this['repository'],_0x40e5c2='string'==typeof _0x45cdec?_0x1c5435['getRevision'](_0x45cdec):_0x45cdec,_0x55f710='string'==typeof _0x5e0cf6?_0x1c5435['getRevision'](_0x5e0cf6):_0x5e0cf6,_0x4254a3=_0x40e5c2['id'],_0x36f9fc=_0x55f710?_0x55f710['id']:null;if(!_0x39ea29&&this['diff']&&this['diff']['newRevisionId']===_0x4254a3&&this['diff']['oldRevisionId']===_0x36f9fc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4254a3,_0x36f9fc);const _0x348a24=this['_getRevisionsRange'](_0x40e5c2,_0x55f710,!0x0)['map'](_0x3d51db=>this['loadRevisionData'](_0x3d51db));return _0x348a24['push'](new Promise(_0x2e13bf=>{setTimeout(_0x2e13bf,0x14);})),Promise['all'](_0x348a24)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x51c52a=this['_getDiff'](_0x4254a3,_0x36f9fc);for(const _0x199fa7 of _0x51c52a['changes'])this['_changeIdToChange']['set'](_0x199fa7['id'],_0x199fa7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x241317=>{for(const _0x4dddca of this['editor']['model']['document']['getRootNames']())_0x241317['detachRoot'](_0x4dddca);for(const _0x41769f of Object['keys'](_0x51c52a['model'])){const _0x13863d=_0x241317['addRoot'](_0x41769f);for(const _0xd3cc70 of Object['keys'](_0x51c52a['attributes'][_0x41769f]))_0x241317['setAttribute'](_0xd3cc70,_0x51c52a['attributes'][_0x41769f][_0xd3cc70],_0x13863d);_0x241317['insert'](_0x51c52a['model'][_0x41769f],_0x13863d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x51c52a['changes'])),this['isReady']=!0x0;})['catch'](_0x1f4ee6=>{console['error'](_0x1f4ee6),this['_cleanUp'](),_0x5af6f1&&(this['diff']=_0x5af6f1),this['isReady']=!0x0;});}['addRevisionData'](_0x5f32ea,_0x4a5e01){const _0xe9c4cf=this['repository']['createRevision'](_0x5f32ea);return _0xe9c4cf['on']('_update',(_0xcc7c7f,_0x5dff89,_0x5eab22)=>_0x4a5e01(_0x5dff89,_0x5eab22,_0xe9c4cf)),this['repository']['addRevision'](_0xe9c4cf),_0xe9c4cf;}['loadRevisionData'](_0x45b8f5){if(!_0x45b8f5||_0x45b8f5['diffData'])return Promise['resolve']();{const _0xbfbf29=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xbfbf29,'revisionId':_0x45b8f5['id']})['then'](_0x45142e=>{_0x45b8f5['_update']({'diffData':_0x45142e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x39ec34=>{for(const _0x3181f5 of this['editor']['model']['document']['getRootNames']())_0x39ec34['detachRoot'](_0x3181f5);});}['_sortAndFilterDiffChanges'](_0x24c265){const _0x5aeab2=[],_0x36ac04=new Map();for(const _0x341bd2 of this['editor']['model']['document']['getRootNames']()){const _0x4700ec=this['editor']['editing']['view']['getDomRoot'](_0x341bd2);if(!_0x4700ec)continue;const _0x334197=_0x4700ec['getClientRects']()['item'](0x0);_0x334197&&(_0x5aeab2['push'](_0x341bd2),_0x36ac04['set'](_0x341bd2,_0x334197));}return _0x5aeab2['sort']((_0x56c53b,_0x3730ff)=>{const _0x3be70a=_0x36ac04['get'](_0x56c53b),_0x430cf2=_0x36ac04['get'](_0x3730ff);return _0x3be70a['y']-_0x430cf2['y']||_0x3be70a['x']-_0x430cf2['x'];}),(_0x24c265=_0x24c265['filter'](_0x4c594b=>_0x5aeab2['includes'](_0x4c594b['rootName'])))['sort']((_0x39baa5,_0x4372f7)=>_0x5aeab2['indexOf'](_0x39baa5['rootName'])-_0x5aeab2['indexOf'](_0x4372f7['rootName'])),_0x24c265;}['_makeTape'](_0x1a7e28){const _0x425d19=Array['from'](_0x1a7e28['markers'])['filter'](([_0x9a455d,_0x579098])=>_0x9a455d['startsWith']('revision:')&&!_0x579098['isCollapsed']),_0x13a2ce=Array['from'](this['editor']['model']['createRangeIn'](_0x1a7e28)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x425d19['length'])for(const _0x4dd613 of _0x13a2ce){const [_0x158669,_0xd9a0a9]=_0x425d19[0x0],[,_0x1dc772,_0x4bd866]=_0x158669['split'](':');if(_0xd9a0a9['end']['isEqual'](_0x4dd613['nextPosition'])&&_0x425d19['shift'](),(_0x4dd613['previousPosition']['isEqual'](_0xd9a0a9['start'])||_0x4dd613['previousPosition']['isAfter'](_0xd9a0a9['start']))&&('insertion'==_0x1dc772?_0x4dd613['isAdded']={'userId':_0x4bd866}:'deletion'==_0x1dc772&&(_0x4dd613['isRemoved']={'userId':_0x4bd866})),0x0==_0x425d19['length'])break;}return _0x13a2ce;}['_refreshStartEndIndex'](_0x122e0b){const _0x5674b3=new Map();for(let _0x556f28=0x0;_0x556f28<_0x122e0b['length'];_0x556f28++)'text'===_0x122e0b[_0x556f28]['type']?(_0x122e0b[_0x556f28]['item']['startIndex']=_0x556f28,_0x122e0b[_0x556f28]['item']['endIndex']=_0x556f28):('elementStart'===_0x122e0b[_0x556f28]['type']?_0x122e0b[_0x556f28]['item']['startIndex']=_0x556f28:'elementEnd'===_0x122e0b[_0x556f28]['type']&&(_0x122e0b[_0x556f28]['item']['endIndex']=_0x556f28),_0x5674b3['set'](_0x122e0b[_0x556f28]['id'],_0x556f28));for(const _0x58d1fc of _0x5674b3['values']())'elementStart'===_0x122e0b[_0x58d1fc]['type']?_0x122e0b[_0x58d1fc]['item']['endIndex']=_0x5674b3['get'](_0x122e0b[_0x58d1fc]['pairId']):'elementEnd'===_0x122e0b[_0x58d1fc]['type']&&(_0x122e0b[_0x58d1fc]['item']['startIndex']=_0x5674b3['get'](_0x122e0b[_0x58d1fc]['pairId']));}['_processTape'](_0x59cd17){for(let _0x4cc318=0x0;_0x4cc318<_0x59cd17['length'];_0x4cc318++){if('elementStart'===_0x59cd17[_0x4cc318]['type'])_0x59cd17[_0x4cc318]['item']['startIndex']=_0x4cc318;else{if('elementEnd'===_0x59cd17[_0x4cc318]['type']){_0x59cd17[_0x4cc318]['item']['endIndex']=_0x4cc318;const _0x4d83ab=_0x59cd17[_0x4cc318]['item']['startIndex'];_0x59cd17[_0x4d83ab]['pairId']=_0x59cd17[_0x4cc318]['id'],_0x59cd17[_0x4cc318]['pairId']=_0x59cd17[_0x4d83ab]['id'];}else _0x59cd17[_0x4cc318]['item']['startIndex']=_0x4cc318,_0x59cd17[_0x4cc318]['item']['endIndex']=_0x4cc318,_0x59cd17[_0x4cc318]['pairId']=null;}_0x59cd17[_0x4cc318]['markersStart']||(_0x59cd17[_0x4cc318]['markersStart']=[],_0x59cd17[_0x4cc318]['markersEnd']=[]);}}['_markInsertions'](_0x363b41,_0x1166ab){const _0x420846=_0x363b41['filter'](_0xeec581=>!_0xeec581['isAdded']);for(let _0x18e76c=0x0;_0x18e76c<_0x1166ab['length'];_0x18e76c++)_0x1166ab[_0x18e76c]['isAdded']&&(_0x420846[_0x18e76c]['isAdded']=_0x1166ab[_0x18e76c]['isAdded']);}['_makeModelFromViewString'](_0xa9aba8){const _0x367dc9=JSON['parse'](_0xa9aba8),_0x561ff5=this['editor']['editing']['view']['document'],_0x1b2f51=new _0x1a018e(_0x561ff5,_0x367dc9['map'](_0xe0bc28=>this['_getViewObj'](_0xe0bc28)));return this['editor']['data']['toModel'](_0x1b2f51);}['_getViewObj'](_0x12a4c6){const _0x566cb7=this['editor']['editing']['view']['document'];if('string'==typeof _0x12a4c6)return new _0xf6e769(_0x566cb7,_0x12a4c6);{const _0x1632c1=_0x12a4c6['children']['map'](_0x2ec173=>this['_getViewObj'](_0x2ec173));return new(Y[_0x12a4c6['type']]||_0xf7d26d)(_0x566cb7,_0x12a4c6['name'],_0x12a4c6['attributes'],_0x1632c1);}}['_getDiff'](_0x3c31d4,_0x251f6d=null){const _0xbf29f6=this['repository']['getRevision'](_0x3c31d4),_0xee2c0c=_0x251f6d?this['repository']['getRevision'](_0x251f6d):null,_0x5506c7=this['_getRevisionsRange'](_0xbf29f6,_0xee2c0c),_0x486368=_0x5506c7[_0x5506c7['length']-0x1],_0x19cb4e=new Map(),_0x3c297a={'model':{},'attributes':{},'changes':[]},_0x3f04e0=new Set(),_0xb0299b=new Map();for(let _0x394ac4=_0x5506c7['length']-0x1;_0x394ac4>=0x0;_0x394ac4--){const _0x6b39f4=_0x5506c7[_0x394ac4];for(const _0x2bba0d of Object['keys'](_0x6b39f4['diffData']))if(_0x6b39f4['diffData'][_0x2bba0d]['attachChange']){const _0x59afe9=_0x6b39f4['diffData'][_0x2bba0d]['attachChange'];_0x59afe9['isAttached']?(_0x3f04e0['add'](_0x2bba0d),_0xb0299b['has'](_0x2bba0d)&&_0xb0299b['get'](_0x2bba0d)['userId']==_0x59afe9['userId']?_0xb0299b['delete'](_0x2bba0d):_0xb0299b['set'](_0x2bba0d,_0x59afe9)):_0xb0299b['has'](_0x2bba0d)?(_0x3f04e0['delete'](_0x2bba0d),_0xb0299b['delete'](_0x2bba0d)):(_0x3f04e0['add'](_0x2bba0d),_0xb0299b['set'](_0x2bba0d,_0x59afe9));}else _0x3f04e0['add'](_0x2bba0d);}for(const _0x10c246 of _0x3f04e0){const _0x5d16d2=_0xb0299b['has'](_0x10c246)&&!_0xb0299b['get'](_0x10c246)['isAttached'];let _0x5f0e91=_0x5d16d2?_0x5506c7['length']-0x1:0x0;const _0x2015a4=_0x5d16d2?-0x1:0x1;for(;_0x5506c7[_0x5f0e91];){const _0x2ffdab=_0x5506c7[_0x5f0e91];if(_0x2ffdab['diffData'][_0x10c246]){const _0x407909=_0x5d16d2?_0x2ffdab['diffData'][_0x10c246]['attributesBefore']:_0x2ffdab['diffData'][_0x10c246]['attributesAfter'];_0x3c297a['attributes'][_0x10c246]=_0x407909?_0x1e8d51(_0x407909):{};break;}_0x5f0e91+=_0x2015a4;}}for(const _0x21055d of _0x5506c7){_0x21055d['model']={};for(const _0x5beee9 of _0x21055d['authors'])_0x19cb4e['set'](_0x5beee9['id'],_0x5beee9);for(const _0x25c5a0 of _0x3f04e0){const _0x387f0a=_0x21055d['diffData'][_0x25c5a0]?_0x21055d['diffData'][_0x25c5a0]['insertions']:'[]',_0x1eb9c2=_0x21055d['diffData'][_0x25c5a0]?_0x21055d['diffData'][_0x25c5a0]['deletions']:'[]';_0x21055d['model'][_0x25c5a0]={'insertions':this['_makeModelFromViewString'](_0x387f0a),'deletions':this['_makeModelFromViewString'](_0x1eb9c2)};}}for(const _0x307698 of _0x3f04e0){let _0x589ab7=null,_0x39ad62=0x0;const _0x1be7c3=new Map(Array['from'](_0xbf29f6['model'][_0x307698]['insertions']['markers'])['filter'](([_0x34e88d])=>!_0x34e88d['startsWith']('revision:')));let _0x5f04a9=0x0;for(const _0x16e482 of _0x5506c7){const _0xd0c4bf=this['_makeTape'](_0x16e482['model'][_0x307698]['insertions']);_0x16e482==_0xbf29f6?(_0x589ab7=_0xd0c4bf,_0x39ad62=_0x589ab7['length'],_0x589ab7['forEach'](_0xd3fbe8=>{_0xd3fbe8['id']=_0x5f04a9++;}),this['_processTape'](_0x589ab7)):this['_markInsertions'](_0x589ab7,_0xd0c4bf);const _0x2c94d0=_0x589ab7['filter'](_0x2d13ba=>!_0x2d13ba['isAdded'])['map'](_0x519f84=>_0x519f84['id']);let _0x5cc02c=0x0;const _0x15302c=this['_makeTape'](_0x16e482['model'][_0x307698]['deletions']);_0x15302c['forEach'](_0x18daa7=>{_0x18daa7['isRemoved']?_0x18daa7['id']=_0x39ad62++:_0x18daa7['id']=_0x2c94d0[_0x5cc02c++];}),this['_processTape'](_0x15302c),this['_setDistance'](_0x589ab7,'isAdded'),this['_setDistance'](_0x15302c,'isRemoved'),_0x16e482==_0xbf29f6&&this['_markMarkers'](_0x589ab7,_0x1be7c3),_0x589ab7=this['_joinTapes'](_0x589ab7,_0x15302c),this['_refreshStartEndIndex'](_0x589ab7),this['_setDistance'](_0x589ab7,'isRemoved');}_0x589ab7=_0x589ab7['filter'](_0x30fd21=>!(_0x30fd21['isAdded']&&_0x30fd21['isRemoved']));const _0x3384e6=new Map(_0x486368['model'][_0x307698]['deletions']['markers']),_0x406a8b=new Set(_0x1be7c3['keys']());for(const _0x17b11c of _0x3384e6['keys']())_0x406a8b['delete'](_0x17b11c);this['_markSuggestions'](_0x589ab7,_0x406a8b),this['_fixObsoleteTags'](_0x589ab7),_0x589ab7=this['_removeMissingPairs'](_0x589ab7),_0x589ab7=this['_markMismatchedRemovedTags'](_0x589ab7),_0x589ab7=this['_removeUnsupportedChanges'](_0x589ab7);const {root:_0x50883b,changes:_0x11cba1}=this['_makeModelFromTape'](_0x589ab7,_0x19cb4e,_0x307698);_0x3c297a['model'][_0x307698]=_0x50883b;const _0x8b4faa=_0xb0299b['get'](_0x307698);if(_0x8b4faa){const _0x24662c=_0x19cb4e['get'](_0x8b4faa['userId']),_0x477e49=new r({'author':_0x24662c,'type':_0x8b4faa['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x307698});_0x11cba1['unshift'](_0x477e49),_0x3c297a['attributes'][_0x307698]['revisionHistoryAttachChange']=_0x477e49['id'];}_0x3c297a['changes']=_0x3c297a['changes']['concat'](_0x11cba1);}return _0x3c297a;}['_markMarkers'](_0x5921a6,_0x288adb){for(let _0x39ad7c=0x0;_0x39ad7c<_0x5921a6['length'];_0x39ad7c++)for(const [_0x21f03c,_0x50f66d]of _0x288adb)_0x50f66d['start']['isEqual'](_0x5921a6[_0x39ad7c]['previousPosition'])&&_0x5921a6[_0x39ad7c]['markersStart']['push'](_0x21f03c),_0x50f66d['end']['isEqual'](_0x5921a6[_0x39ad7c]['nextPosition'])&&_0x5921a6[_0x39ad7c]['markersEnd']['push'](_0x21f03c);}['_joinTapes'](_0x5181e6,_0x59ebe1){let _0x539c18=[],_0x16c8dd=0x0,_0x1e6dcc=0x0;for(;_0x16c8dd<_0x5181e6['length']||_0x1e6dcc<_0x59ebe1['length'];){const _0xb272a2=_0x5181e6[_0x16c8dd]||{},_0x28cb70=_0x59ebe1[_0x1e6dcc]||{};if(_0xb272a2['id']==_0x28cb70['id'])_0x16c8dd++,_0x1e6dcc++,_0x539c18['push'](_0xb272a2);else{if(_0x28cb70['isRemoved']&&_0xb272a2['isAdded']){const {commonTape:_0x3737dc,iEnd:_0x2c2b64,jEnd:_0x57bb18}=this['_threeWayMerge'](_0x5181e6,_0x16c8dd,_0x59ebe1,_0x1e6dcc);_0x539c18=_0x539c18['concat'](_0x3737dc),_0x16c8dd=_0x2c2b64,_0x1e6dcc=_0x57bb18;}else _0x28cb70['isRemoved']?(_0x1e6dcc++,_0x539c18['push'](_0x28cb70)):(_0x16c8dd++,_0x539c18['push'](_0xb272a2));}}return _0x539c18;}['_markSuggestions'](_0x547fa8,_0x10c702){const _0x357eaf=[];for(let _0x361d58=0x0;_0x361d58<_0x547fa8['length'];_0x361d58++){for(let _0x2c9f64=0x0;_0x2c9f64<_0x547fa8[_0x361d58]['markersStart']['length'];_0x2c9f64++){const _0x282d7f=_0x547fa8[_0x361d58]['markersStart'][_0x2c9f64];if(!_0x10c702['has'](_0x282d7f))continue;const {group:_0x41fb5c,type:_0x1cabd0,authorId:_0x4b0e8f}=_0x2ec05e(_0x282d7f);'revision-suggestion'!=_0x41fb5c||'insertion'!=_0x1cabd0&&'deletion'!=_0x1cabd0||(_0x357eaf['unshift']({'type':_0x1cabd0,'name':_0x282d7f,'userId':_0x4b0e8f}),_0x547fa8[_0x361d58]['markersStart']['splice'](_0x2c9f64,0x1),_0x2c9f64--);}_0x24e88f(_0x547fa8[_0x361d58]);for(let _0xdeaba6=0x0;_0xdeaba6<_0x547fa8[_0x361d58]['markersEnd']['length'];_0xdeaba6++){const _0x301bae=_0x547fa8[_0x361d58]['markersEnd'][_0xdeaba6];if(!_0x10c702['has'](_0x301bae))continue;const {group:_0xbf290a,type:_0x2ebe9d}=_0x2ec05e(_0x301bae);if('revision-suggestion'!=_0xbf290a||'insertion'!=_0x2ebe9d&&'deletion'!=_0x2ebe9d)continue;_0x547fa8[_0x361d58]['markersEnd']['splice'](_0xdeaba6,0x1),_0xdeaba6--;const _0x3f9211=_0x357eaf['findIndex'](_0xb4946a=>_0xb4946a['name']==_0x301bae);_0x3f9211>-0x1&&_0x357eaf['splice'](_0x3f9211,0x1);}}function _0x2ec05e(_0x10397f){const _0x1f7607=_0x10397f['split'](':');return{'group':_0x1f7607[0x0],'type':_0x1f7607[0x1],'subType':_0x1f7607['length']>=0x5?_0x1f7607[0x2]:null,'id':_0x1f7607['length']<0x5?_0x1f7607[0x2]:_0x1f7607[0x3],'authorId':_0x1f7607['length']<0x5?_0x1f7607[0x3]:_0x1f7607[0x4],'markerCount':0x6==_0x1f7607['length']?_0x1f7607[0x5]:null};}function _0x24e88f(_0x4b19eb){for(let _0x2aca9c=0x0;_0x2aca9c<_0x357eaf['length'];_0x2aca9c++){if(_0x4b19eb['isAdded']&&'insertion'==_0x357eaf[_0x2aca9c]['type'])return _0x4b19eb['isAddSuggestion']=_0x357eaf[_0x2aca9c],void delete _0x4b19eb['isAdded'];if(!_0x4b19eb['isAdded']&&!_0x4b19eb['isRemoved']&&'deletion'==_0x357eaf[_0x2aca9c]['type'])return void(_0x4b19eb['isRemoveSuggestion']=_0x357eaf[_0x2aca9c]);}}}['_setDistance'](_0xd2b08c,_0x5bea88){let _0x3a5258=0x0,_0x55d4f5=!0x1;const _0x58a236=new Map();for(const _0xfa87ad of _0xd2b08c)_0xfa87ad[_0x5bea88]?_0x55d4f5&&(_0x3a5258++,_0x55d4f5=!0x1):(_0x3a5258++,_0x55d4f5=!0x0),_0x58a236['set'](_0xfa87ad['id'],_0x3a5258);for(let _0x4d338d=0x0;_0x4d338d<_0xd2b08c['length'];_0x4d338d++){if('isRemoved'==_0x5bea88&&_0xd2b08c[_0x4d338d]['isAdded']||'isAdded'==_0x5bea88&&_0xd2b08c[_0x4d338d]['isRemoved'])continue;if('text'==_0xd2b08c[_0x4d338d]['type']){_0xd2b08c[_0x4d338d]['distance']=0x0;continue;}const _0x307d54=_0x58a236['get'](_0xd2b08c[_0x4d338d]['pairId']),_0x155c60=_0x58a236['get'](_0xd2b08c[_0x4d338d]['id']);_0xd2b08c[_0x4d338d]['distance']=_0x307d54-_0x155c60;}}['_getRevisionsRange'](_0x4906b8,_0x16431e,_0x5ef862=!0x1){const _0x38123a=[];let _0x57ef98=this['repository']['getIndex'](_0x4906b8),_0x5d1ebd=this['repository']['getIndex'](_0x16431e);for(-0x1==_0x5d1ebd&&(_0x5d1ebd=this['repository']['_revisions']['length'],_0x5ef862=!0x1);_0x57ef98<_0x5d1ebd;)_0x38123a['push'](this['repository']['getRevision'](_0x57ef98)),_0x57ef98++;return _0x5ef862&&_0x38123a['push'](this['repository']['getRevision'](_0x57ef98)),_0x38123a;}['_threeWayMerge'](_0x494a1d,_0x51e92e,_0x54e1e9,_0x11b5cc){const _0x3a674c=this['editor']['model']['schema'];let _0x594ec1=_0x51e92e;for(;_0x494a1d[_0x594ec1]&&_0x494a1d[_0x594ec1]['isAdded'];)_0x594ec1++;let _0x22a3e2=_0x11b5cc;for(;_0x54e1e9[_0x22a3e2]&&_0x54e1e9[_0x22a3e2]['isRemoved'];)_0x22a3e2++;_0x3fdf90(_0x494a1d,_0x51e92e,_0x594ec1),_0x3fdf90(_0x54e1e9,_0x11b5cc,_0x22a3e2);const _0xd3cf44=_0x54e1e9['slice'](_0x11b5cc,_0x22a3e2)['concat'](_0x494a1d['slice'](_0x51e92e,_0x594ec1));return _0xd3cf44['sort']((_0x5dccc2,_0x3b3257)=>_0x5dccc2['side']!=_0x3b3257['side']?_0x5dccc2['side']-_0x3b3257['side']:_0x5dccc2['level']!=_0x3b3257['level']?_0x5dccc2['level']-_0x3b3257['level']:_0x5dccc2['distance']!=_0x3b3257['distance']?_0x3b3257['distance']-_0x5dccc2['distance']:!!_0x5dccc2['isAdded']!=!!_0x3b3257['isAdded']?-0x1==_0x5dccc2['side']||0x0==_0x5dccc2['side']?_0x5dccc2['isAdded']?-0x1:0x1:_0x5dccc2['isAdded']?0x1:-0x1:_0x5dccc2['index']-_0x3b3257['index']),{'commonTape':_0xd3cf44,'iEnd':_0x594ec1,'jEnd':_0x22a3e2};function _0x3fdf90(_0x4b4f02,_0x255093,_0x4adadb){let _0x23a54f=-0x1,_0x4ad5b6=Number['POSITIVE_INFINITY'],_0x26a026=!0x0;for(let _0x41fe74=_0x255093;_0x41fe74<_0x4adadb;_0x41fe74++)if(_0x3a674c['isInline'](_0x4b4f02[_0x41fe74]['item'])||(_0x26a026=!0x1),_0x4b4f02[_0x41fe74]['item']['startIndex']<_0x255093&&(_0x23a54f=_0x41fe74),_0x4b4f02[_0x41fe74]['item']['endIndex']>=_0x4adadb){_0x4ad5b6=_0x41fe74;break;}_0x26a026&&(_0x23a54f=_0x4adadb-0x1);for(let _0x54e523=_0x255093;_0x54e523<_0x4adadb;_0x54e523++)_0x4b4f02[_0x54e523]['side']=_0x54e523<=_0x23a54f?-0x1:_0x54e523<_0x4ad5b6?0x0:0x1,_0x4b4f02[_0x54e523]['index']=_0x54e523;let _0x2816ef=0x0;for(let _0x173254=_0x255093;_0x173254<=_0x23a54f;_0x173254++)0x0==_0x4b4f02[_0x173254]['distance']?_0x4b4f02[_0x173254]['level']=_0x2816ef:(_0x2816ef++,_0x4b4f02[_0x173254]['level']=_0x2816ef,_0x2816ef++);for(let _0x5de0aa=_0x255093;_0x5de0aa<_0x4adadb;_0x5de0aa++)0x0==_0x4b4f02[_0x5de0aa]['side']&&(_0x4b4f02[_0x5de0aa]['level']=_0x2816ef);_0x2816ef=0x0;for(let _0x469b41=_0x4adadb-0x1;_0x469b41>=_0x4ad5b6;_0x469b41--)0x0==_0x4b4f02[_0x469b41]['distance']?_0x4b4f02[_0x469b41]['level']=_0x2816ef:(_0x2816ef--,_0x4b4f02[_0x469b41]['level']=_0x2816ef,_0x2816ef--);}}['_fixObsoleteTags'](_0x685c7f){const _0x2a2b3b=new Map(),_0xb8f777=this['editor']['model']['schema'];for(let _0x4ae50a=0x1;_0x4ae50a<_0x685c7f['length'];_0x4ae50a++){let _0x59d9cd,_0x1ab55e,_0xc33cb4;const _0x4726f9=_0x685c7f[_0x4ae50a],_0xbcb96e=_0x685c7f[_0x4ae50a-0x1];if('text'==_0x4726f9['type'])continue;if(_0x4726f9['type']!=_0xbcb96e['type'])continue;if(!_0xb8f777['isBlock'](_0xbcb96e['item'])||_0xb8f777['isLimit'](_0xbcb96e['item']))continue;if(!_0xb8f777['isBlock'](_0x4726f9['item'])||_0xb8f777['isLimit'](_0x4726f9['item']))continue;if((_0x685c7f[_0x4ae50a]['isAdded']||_0x685c7f[_0x4ae50a]['isAddSuggestion'])&&_0x685c7f[_0x4ae50a-0x1]['isRemoved'])_0x59d9cd=_0x685c7f[_0x4ae50a],_0x1ab55e=_0x685c7f[_0x4ae50a-0x1],_0xc33cb4=_0x4ae50a-0x1;else{if(!_0x685c7f[_0x4ae50a]['isRemoved']||!_0x685c7f[_0x4ae50a-0x1]['isAdded']&&!_0x685c7f[_0x4ae50a-0x1]['isAddSuggestion'])continue;_0x59d9cd=_0x685c7f[_0x4ae50a-0x1],_0x1ab55e=_0x685c7f[_0x4ae50a],_0xc33cb4=_0x4ae50a;}const _0x3c275c=_0x59d9cd['level']==_0x1ab55e['level'],_0x325f02=Math['abs'](_0x59d9cd['level'])<Math['abs'](_0x1ab55e['level'])&&0x0==_0x1ab55e['distance'];(_0x3c275c||_0x325f02)&&(_0x2a2b3b['set'](_0x1ab55e['id'],_0x59d9cd['id']),_0x685c7f['splice'](_0xc33cb4,0x1),_0x4ae50a--,_0x59d9cd['isAdded']=!0x1);}for(let _0x214841=0x0;_0x214841<_0x685c7f['length'];_0x214841++)_0x2a2b3b['has'](_0x685c7f[_0x214841]['pairId'])&&(_0x685c7f[_0x214841]['pairId']=_0x2a2b3b['get'](_0x685c7f[_0x214841]['pairId']));}['_removeMissingPairs'](_0x3d0f3e){const _0x20ecf7=new Set(_0x3d0f3e['map'](_0x5cd065=>_0x5cd065['id']));for(let _0x26fcb3=0x0;_0x26fcb3<_0x3d0f3e['length'];_0x26fcb3++)_0x20ecf7['has'](_0x3d0f3e[_0x26fcb3]['pairId'])||0x0==_0x3d0f3e[_0x26fcb3]['distance']||(_0x3d0f3e[_0x26fcb3]['isIncorrect']=!0x0);return _0x3d0f3e['filter'](_0x31082f=>!_0x31082f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x57c6c2){const _0x1bb0d0=new Set();for(let _0x111846=0x0;_0x111846<_0x57c6c2['length'];_0x111846++){if(_0x1bb0d0['has'](_0x57c6c2[_0x111846]['id'])&&_0x57c6c2[_0x111846]['isRemoved']&&(_0x57c6c2[_0x111846]['isIncorrect']=!0x0),_0x57c6c2[_0x111846]['isIncorrect'])continue;if(0x0==_0x57c6c2[_0x111846]['distance'])continue;if('elementStart'!=_0x57c6c2[_0x111846]['type'])continue;if(null==_0x57c6c2[_0x111846]['pairId'])continue;let _0x523c11=_0x111846+0x1,_0x3992e7=0x0;for(;_0x57c6c2[_0x523c11]['id']!=_0x57c6c2[_0x111846]['pairId'];)'elementStart'==_0x57c6c2[_0x523c11]['type']?_0x3992e7++:'elementEnd'==_0x57c6c2[_0x523c11]['type']&&_0x3992e7--,_0x523c11++;if(0x0!=_0x3992e7){if(_0x57c6c2[_0x111846]['isRemoved'])_0x57c6c2[_0x111846]['isIncorrect']=!0x0;else{for(;_0x523c11!=_0x111846;)_0x57c6c2[_0x523c11]['isRemoved']&&0x0!=_0x57c6c2[_0x523c11]['distance']&&(_0x57c6c2[_0x523c11]['isIncorrect']=!0x0,_0x1bb0d0['add'](_0x57c6c2[_0x523c11]['pairId'])),_0x523c11--;}}}return _0x57c6c2['filter'](_0x42fa40=>!_0x42fa40['isIncorrect']);}['_removeUnsupportedChanges'](_0x923787){const _0x4e72ee=this['editor']['model']['schema'];for(let _0x307bee=0x0;_0x307bee<_0x923787['length'];_0x307bee++){if(!(_0x923787[_0x307bee]['isAdded']||_0x923787[_0x307bee]['isAddSuggestion']||_0x923787[_0x307bee]['isRemoved']||_0x923787[_0x307bee]['isRemoveSuggestion']))continue;if(0x0==_0x923787[_0x307bee]['distance'])continue;const _0x43c9c6=_0x923787[_0x307bee]['item'];_0x4e72ee['isBlock'](_0x43c9c6)||_0x4e72ee['isLimit'](_0x43c9c6)||(_0x923787[_0x307bee]['isAdded']&&delete _0x923787[_0x307bee]['isAdded'],_0x923787[_0x307bee]['isAddSuggestion']&&delete _0x923787[_0x307bee]['isAddSuggestion'],_0x923787[_0x307bee]['isRemoveSuggestion']&&delete _0x923787[_0x307bee]['isRemoveSuggestion'],_0x923787[_0x307bee]['isRemoved']&&(_0x923787[_0x307bee]['isIncorrect']=!0x0));}return _0x923787['filter'](_0x167117=>!_0x167117['isIncorrect']);}['_makeModelFromTape'](_0x3aabf1,_0x38e0bf,_0x59ac65){const _0x13e75f=new mt(),_0x189c83=[],_0x36dafc=new Map(),_0x36fd24=this['editor']['model'],_0x40d3b9=_0x36fd24['schema'],_0x554187=[_0x13e75f],_0x4f3f9d={},_0x474008={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1acd26=null;const _0x57403e=[0x0];for(let _0x25aeb8=0x0;_0x25aeb8<_0x3aabf1['length'];_0x25aeb8++)if('elementStart'===_0x3aabf1[_0x25aeb8]['type']){_0x3aabf1[_0x25aeb8]['previousPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e);const _0x85b46a=new ft(_0x3aabf1[_0x25aeb8]['item']['name'],_0x3aabf1[_0x25aeb8]['item']['getAttributes']());_0x554187[0x0]['_appendChild'](_0x85b46a),_0x57403e['push'](0x0),_0x554187['unshift'](_0x85b46a),_0x3aabf1[_0x25aeb8]['nextPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e);}else'elementEnd'===_0x3aabf1[_0x25aeb8]['type']?(_0x554187['shift'](),_0x3aabf1[_0x25aeb8]['previousPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e),_0x57403e['pop'](),_0x57403e[_0x57403e['length']-0x1]++,_0x3aabf1[_0x25aeb8]['nextPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e)):(_0x3aabf1[_0x25aeb8]['previousPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e),_0x1acd26?_0x1acd26['_data']+=_0x3aabf1[_0x25aeb8]['item']['data']:_0x1acd26=new wt(_0x3aabf1[_0x25aeb8]['item']['data'],_0x3aabf1[_0x25aeb8]['item']['getAttributes']()),_0x3aabf1[_0x25aeb8+0x1]&&'text'===_0x3aabf1[_0x25aeb8+0x1]['type']&&_0x3ea2b5(_0x1acd26,_0x3aabf1[_0x25aeb8+0x1]['item'])||(_0x554187[0x0]['_appendChild'](_0x1acd26),_0x1acd26=null),_0x57403e[_0x57403e['length']-0x1]+=_0x3aabf1[_0x25aeb8]['item']['offsetSize'],_0x3aabf1[_0x25aeb8]['nextPosition']=_0x36fd24['createPositionFromPath'](_0x13e75f,_0x57403e));for(let _0x3a0d17=0x0;_0x3a0d17<_0x3aabf1['length'];_0x3a0d17++){const _0x14ae25=_0x3aabf1[_0x3a0d17]['previousPosition'],_0x3c9350=_0x3aabf1[_0x3a0d17]['nextPosition'];for(const _0x512402 of _0x3aabf1[_0x3a0d17]['markersStart'])_0x36dafc['set'](_0x512402,{'start':_0x14ae25,'end':null});_0x2fad96('isRemoveSuggestion',_0x3a0d17,_0x14ae25,_0x3c9350),_0x2fad96('isAddSuggestion',_0x3a0d17,_0x14ae25,_0x3c9350),_0x2fad96('isRemoved',_0x3a0d17,_0x14ae25,_0x3c9350),_0x2fad96('isAdded',_0x3a0d17,_0x14ae25,_0x3c9350);for(const _0x2ae9ee of _0x3aabf1[_0x3a0d17]['markersEnd']){_0x36dafc['get'](_0x2ae9ee)['end']=_0x3c9350;}}for(const [_0xca33fb,_0x5915e7]of _0x36dafc){const _0x35d42e=this['editor']['model']['createRange'](_0x5915e7['start'],_0x5915e7['end']);_0x13e75f['markers']['set'](_0xca33fb,_0x35d42e);}return _0x189c83['sort']((_0x30bc00,_0xa9f051)=>{const _0x1f6880=_0x13e75f['markers']['get']('revision:'+_0x30bc00['id']),_0x57b09d=_0x13e75f['markers']['get']('revision:'+_0xa9f051['id']);return _0x1f6880['start']['isBefore'](_0x57b09d['start'])?-0x1:_0x1f6880['start']['isAfter'](_0x57b09d['start'])?0x1:_0x1f6880['end']['isBefore'](_0x57b09d['end'])?-0x1:_0x1f6880['end']['isAfter'](_0x57b09d['end'])?0x1:'add'===_0x30bc00['type']?-0x1:0x1;}),{'root':_0x13e75f,'changes':_0x189c83};function _0x2fad96(_0x54b073,_0x1e194c,_0x29bd80,_0x43108e){const _0x194dd6=!!_0x3aabf1[_0x1e194c][_0x54b073],_0x12dc48=_0x194dd6?_0x3aabf1[_0x1e194c][_0x54b073]['userId']:null,_0x46a04e=_0x1e194c===_0x3aabf1['length']-0x1,_0x5f0a12=_0x474008[_0x54b073][0x0],_0x51b780=_0x40d3b9['isObject'](_0x3aabf1[_0x1e194c]['item']);!_0x4f3f9d[_0x54b073]&&_0x194dd6?_0x4f3f9d[_0x54b073]={'start':_0x29bd80,'tapeItem':_0x3aabf1[_0x1e194c],'userId':_0x12dc48,'type':_0x54b073}:_0x4f3f9d[_0x54b073]&&!_0x194dd6?(_0x4f3f9d[_0x54b073]['end']=_0x29bd80,_0x3ca689(_0x4f3f9d[_0x54b073]),_0x4f3f9d[_0x54b073]=null):_0x4f3f9d[_0x54b073]&&_0x194dd6&&_0x4f3f9d[_0x54b073]['userId']!==_0x12dc48&&(_0x4f3f9d[_0x54b073]['end']=_0x29bd80,_0x5f0a12&&_0x5f0a12['userId']===_0x4f3f9d[_0x54b073]['userId']||_0x3ca689(_0x4f3f9d[_0x54b073]),_0x4f3f9d[_0x54b073]={'start':_0x29bd80,'tapeItem':_0x3aabf1[_0x1e194c],'userId':_0x12dc48,'type':_0x54b073}),_0x4f3f9d[_0x54b073]&&_0x51b780&&('elementStart'!==_0x3aabf1[_0x1e194c]['type']||_0x5f0a12&&_0x5f0a12['userId']===_0x12dc48||_0x474008[_0x54b073]['unshift']({'userId':_0x12dc48,'object':_0x3aabf1[_0x1e194c]['item'],'change':_0x4f3f9d[_0x54b073]}),'elementEnd'===_0x3aabf1[_0x1e194c]['type']&&_0x5f0a12&&_0x5f0a12['object']===_0x3aabf1[_0x1e194c]['item']&&(_0x474008[_0x54b073]['shift'](),_0x4f3f9d[_0x54b073]=_0x5f0a12['change'])),_0x4f3f9d[_0x54b073]&&_0x46a04e&&(_0x4f3f9d[_0x54b073]['end']=_0x43108e,_0x3ca689(_0x4f3f9d[_0x54b073]),_0x4f3f9d[_0x54b073]=null);}function _0x3ca689({start:_0x633433,end:_0x19a844,tapeItem:_0x14be99,userId:_0x5270f5,type:_0x162a2a}){const _0x380ece=_0x14be99['item'],_0x54f164=_0x36fd24['schema']['isBlock'](_0x380ece)&&!_0x36fd24['schema']['isLimit'](_0x380ece),_0x50a03f=_0x633433['nodeAfter']==_0x19a844['parent']&&_0x19a844['isAtStart'];if(_0x54f164&&_0x50a03f)return;const _0x179217=_0x36fd24['createRange'](_0x633433,_0x19a844),_0xca47c2=_0x38e0bf['get'](_0x5270f5),_0x3f72c5=new r({'author':_0xca47c2,'type':'isAdded'==_0x162a2a||'isAddSuggestion'==_0x162a2a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x162a2a||'isRemoveSuggestion'==_0x162a2a},'createdAt':new Date(),'rootName':_0x59ac65});_0x189c83['push'](_0x3f72c5),_0x13e75f['markers']['set']('revision:'+_0x3f72c5['id'],_0x179217);}function _0x3ea2b5(_0x5affbb,_0x399556){const _0x3886ae=_0x5affbb['getAttributes'](),_0x4b1269=_0x399556['getAttributes']();for(const _0x3b0558 of _0x3886ae){if(_0x3b0558[0x1]!==_0x399556['getAttribute'](_0x3b0558[0x0]))return!0x1;_0x4b1269['next']();}return _0x4b1269['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2eca35=>{const _0x56a92e=_0x2eca35['markerName']['split'](':')[0x1],_0x11ba18=this['_getChangeFromId'](_0x56a92e);if(!_0x11ba18)return null;const _0x110ded='add'==_0x11ba18['type']?'insertion':'deletion',_0x5ad387=['ck-suggestion-marker','ck-suggestion-marker-'+_0x110ded];return _0x11ba18['data']['isSuggestion']&&_0x5ad387['push']('ck-suggestion-marker-'+_0x110ded+'-new'),this['activeChange']==_0x11ba18&&_0x5ad387['push']('ck-suggestion-marker--active'),{'classes':_0x5ad387,'attributes':{'data-change-id':_0x56a92e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x574edb=>{_0x574edb['on']('element:pre',(_0x3f5afe,_0xc1203d,_0x4e2cf7)=>{const _0x545e02=_0xc1203d['viewItem']['getChild'](0x0);if(!_0x545e02||!_0x545e02['is']('element','code'))return;if(!_0x4e2cf7['consumable']['consume'](_0x545e02,{'attributes':['vid_start','vid_end']}))return;const _0x276cde=_0xc1203d['modelRange']['start']['nodeAfter'];_0x4e2cf7['writer']['setAttribute']('vid_start',_0x545e02['getAttribute']('vid_start'),_0x276cde),_0x4e2cf7['writer']['setAttribute']('vid_end',_0x545e02['getAttribute']('vid_end'),_0x276cde);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x45b431=>{_0x45b431['on']('element',(_0x3e57af,_0x5f5392,_0x3851bb)=>{if(!_0x3851bb['consumable']['consume'](_0x5f5392['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5f5392['modelRange']['isCollapsed'])return;const _0x4c385f=_0x5f5392['modelRange']['start']['nodeAfter'];_0x4c385f['hasAttribute']('vid_start')||_0x4c385f['hasAttribute']('vid')||(_0x3851bb['writer']['setAttribute']('vid_start',_0x5f5392['viewItem']['getAttribute']('vid_start'),_0x4c385f),_0x3851bb['writer']['setAttribute']('vid_end',_0x5f5392['viewItem']['getAttribute']('vid_end'),_0x4c385f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x336f44=>_0x336f44['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5aafd1,[,_0x2a65db])=>{['vid_start','vid_end','vid']['includes'](_0x2a65db)&&(_0x5aafd1['return']=!0x0,_0x5aafd1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ab0ab=>{_0x2ab0ab['on']('attribute:vid',(_0x4ae0dc,_0x564e42,_0x355b30)=>{if('\x20'!=_0x564e42['item']['data']||_0x564e42['item']['parent']['maxOffset']>0x1)return;if(!_0x355b30['consumable']['consume'](_0x564e42['item'],_0x4ae0dc['name']))return;const _0x50497a=_0x355b30['writer'],_0x300c92=_0x355b30['mapper']['toViewRange'](_0x564e42['range']);_0x50497a['wrap'](_0x300c92,_0x50497a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x16f1bd){const _0x45aa1c=_0x16f1bd['plugins']['get']('RevisionViewer');return(_0x2a97d3,_0x46b29b,_0x5da247)=>{const _0x135b34=_0x46b29b['markerName']['split'](':')[0x1],_0x5da7d9=_0x45aa1c['_getChangeFromId'](_0x135b34);if(!_0x5da7d9)return null;const _0x239092='add'==_0x5da7d9['type']?'split':'merge';if(!_0x5da247['consumable']['test'](_0x46b29b['markerRange'],_0x2a97d3['name']))return;const _0x371449=_0x46b29b['markerRange']['getWalker'](),_0x5dec10=_0x46b29b['markerRange']['start'],_0xef9a4f=_0x16f1bd['model']['schema'];let _0x104bad=null,_0x39efe6=null,_0x237632=!0x1,_0x20ce32=!0x1;for(const _0x2dd193 of _0x371449){const _0x41fcdd=_0x2dd193['item'];_0x237632=_0x237632||_0xef9a4f['isContent'](_0x41fcdd);const _0x3b2889=_0x5da247['mapper']['toViewElement'](_0x41fcdd);if(_0x3b2889&&_0x3b2889['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2dd193['type']&&(_0xef9a4f['isBlock'](_0x41fcdd)&&!_0xef9a4f['isLimit'](_0x41fcdd)&&(_0x41fcdd['nextSibling']||_0x5dec10['isAtEnd']?_0x104bad&&_0x104bad['parent']==_0x41fcdd||(_0x104bad=_0x41fcdd,_0x6b50e4(_0x2dd193['previousPosition']),_0x20ce32=!0x0):_0x39efe6=_0x39efe6||_0x2dd193['previousPosition']));}function _0x6b50e4(_0x596a62){const _0x16a353=_0x5da247['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x239092}),_0x13e7db=_0x5da247['mapper']['toViewPosition'](_0x596a62);_0x5da7d9['data']['isSuggestion']&&_0x5da247['writer']['addClass']('ck-suggestion-marker-'+_0x239092+'-new',_0x16a353),_0x45aa1c['activeChange']==_0x5da7d9&&_0x5da247['writer']['addClass']('ck-suggestion-marker--active',_0x16a353),_0x5da247['writer']['insert'](_0x13e7db,_0x16a353),_0x5da247['mapper']['bindElementToMarker'](_0x16a353,_0x46b29b['markerName']);}_0x237632||_0x20ce32||!_0x39efe6||_0x6b50e4(_0x39efe6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x412357,_0x436ec1,_0x306055)=>{const _0x714dfe=_0x306055['mapper']['markerNameToElements'](_0x436ec1['markerName']);if(_0x714dfe){for(const _0xd7ea9c of _0x714dfe)(_0xd7ea9c['hasClass']('ck-suggestion-marker-split')||_0xd7ea9c['hasClass']('ck-suggestion-marker-merge'))&&(_0x306055['mapper']['unbindElementFromMarkerName'](_0xd7ea9c,_0x436ec1['markerName']),_0x306055['writer']['remove'](_0xd7ea9c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1b412b,_0x1eece1,_0x156df1)=>{const _0x2e41fe=_0x1eece1['markerName']['split'](':')[0x1],_0x161648=this['_getChangeFromId'](_0x2e41fe);if(!_0x161648)return null;const _0x39e23f='add'==_0x161648['type']?'split':'merge';if(_0x156df1['consumable']['test'](_0x1eece1['markerRange'],_0x1b412b['name']))for(const _0x4d0dc3 of _0x1eece1['markerRange']['getItems']()){if(!_0x4d0dc3['is']('element','softBreak'))continue;const _0x37cca7=_0x156df1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39e23f}),_0x41caee=_0x156df1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4d0dc3));_0x161648['data']['isSuggestion']&&_0x156df1['writer']['addClass']('ck-suggestion-marker-'+_0x39e23f+'-new',_0x37cca7),this['activeChange']==_0x161648&&_0x156df1['writer']['addClass']('ck-suggestion-marker--active',_0x37cca7),_0x156df1['writer']['insert'](_0x41caee,_0x37cca7),_0x156df1['mapper']['bindElementToMarker'](_0x37cca7,_0x1eece1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x28df81=>{for(const _0x5ebc7f of this['editor']['model']['document']['getRootNames']()){const _0x126253=this['editor']['model']['document']['getRoot'](_0x5ebc7f),_0x3e8692=this['editor']['editing']['view']['document']['getRoot'](_0x5ebc7f);if(_0x3e8692){const _0x549e28=_0x126253['getAttribute']('revisionHistoryAttachChange');if(_0x28df81['removeAttribute']('data-change-id',_0x3e8692),_0x28df81['removeClass']('ck-revision-history-root-add',_0x3e8692),_0x28df81['removeClass']('ck-revision-history-root-remove',_0x3e8692),_0x28df81['removeClass']('ck-revision-history-root--active',_0x3e8692),_0x549e28){const _0x4f5afc=this['_getChangeFromId'](_0x549e28);if(!_0x4f5afc)return null;_0x28df81['setAttribute']('data-change-id',_0x549e28,_0x3e8692),_0x28df81['addClass']('ck-revision-history-root-'+_0x4f5afc['type'],_0x3e8692),this['activeChange']==_0x4f5afc&&_0x28df81['addClass']('ck-revision-history-root--active',_0x3e8692);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b2f64=>'revision-comment:'+_0x4b2f64,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x735caa=>'revision-suggestion:'+_0x735caa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x304c32=>({'name':'suggestion:'+_0x304c32,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3f497e=>{const _0x32c6b8=_0x3f497e['markerName']['split'](':')[0x1];return'insertion'!=_0x32c6b8&&'deletion'!=_0x32c6b8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32c6b8]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x491e5b,_0x3cd0c8,_0x207283)=>{const _0x4f60a9=_0x207283['mapper']['markerNameToElements'](_0x3cd0c8['markerName']);if(_0x4f60a9){for(const _0x18f5fb of _0x4f60a9)_0x18f5fb['is']('uiElement')&&(_0x207283['mapper']['unbindElementFromMarkerName'](_0x18f5fb,_0x3cd0c8['markerName']),_0x207283['writer']['remove'](_0x18f5fb));}},{'priority':'high'});}['_getChangeFromId'](_0x31c340){return this['_changeIdToChange']['get'](_0x31c340);}['_getViewForChange'](_0x5696ab){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5696ab),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5efd69,_0x463109,_0x4874ee,_0xda4e0b)=>{_0xda4e0b&&this['_balloon']['remove'](_0xda4e0b),_0x4874ee&&(this['_balloon']['add']({'view':_0x4874ee,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x12ae7a=this['editor']['editing'],_0x8b742=this['_getChangeFromId'](_0x4874ee['changeId']);let _0x26ea67;if(_0x8b742['data']['isOnRoot']){const _0x1bd75b=_0x12ae7a['view']['getDomRoot'](_0x8b742['rootName']);_0x26ea67=Array['from'](_0x1bd75b['getClientRects']());}else{const _0x2151c6=this['editor']['model']['markers']['get']('revision:'+_0x4874ee['changeId']);_0x26ea67=Array['from'](_0x12ae7a['mapper']['markerNameToElements'](_0x2151c6['name']))['map'](_0x1f83fe=>_0x12ae7a['view']['domConverter']['mapViewToDom'](_0x1f83fe))['map'](_0xdc065a=>Array['from'](_0xdc065a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x26ea67[0x0];return _0x26ea67['find'](_0x4ad069=>_0x4ad069['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ad069['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ad069['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ad069['right']+0x3>=this['_activeViewTarget']['x'])||_0x26ea67[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x10556c,_0x26a587,_0x556243,_0x5e1eae)=>{this['activeView']=_0x556243?this['_getViewForChange'](_0x556243):null,this['editor']['model']['change'](()=>{const _0x3e601c=this['editor']['editing'];_0x5e1eae&&(_0x5e1eae['data']['isOnRoot']?_0x3e601c['view']['change'](_0xe08e59=>{_0xe08e59['removeClass']('ck-revision-history-root--active',_0x3e601c['view']['document']['getRoot'](_0x5e1eae['rootName']));}):_0x3e601c['reconvertMarker']('revision:'+_0x5e1eae['id'])),_0x556243&&(_0x556243['data']['isOnRoot']?_0x3e601c['view']['change'](_0x4c9e79=>{_0x4c9e79['addClass']('ck-revision-history-root--active',_0x3e601c['view']['document']['getRoot'](_0x556243['rootName']));}):_0x3e601c['reconvertMarker']('revision:'+_0x556243['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1976bf,_0x16bc14)=>{if(this['activeChange'])return;const _0x2aea0d=this['_findChangeIdFromDomTarget'](_0x16bc14['target']),_0x5c9ca7=this['_changeIdToChange']['get'](_0x2aea0d);_0x5c9ca7?(this['_activeViewTarget']={'x':_0x16bc14['domEvent']['x'],'y':_0x16bc14['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5c9ca7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x394bd2,_0x429722)=>{const _0x4ba966=this['_findChangeIdFromDomTarget'](_0x429722['target']),_0x1aa761=this['_changeIdToChange']['get'](_0x4ba966);_0x1aa761?(this['_activeViewTarget']={'x':_0x429722['domEvent']['x'],'y':_0x429722['domEvent']['y']},_0x1aa761===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1aa761):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5555bf){do{const _0x23e9ca=_0x5555bf['getAttribute']('data-change-id');if(_0x23e9ca)return _0x23e9ca;_0x5555bf=_0x5555bf['parent'];}while(_0x5555bf);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ca236=>{for(const _0x23c01e of this['editor']['model']['markers'])_0x3ca236['removeMarker'](_0x23c01e);});}}function Z(_0x57248a,_0x572ae8){return(_0x3f77e2,_0x487cb5,_0x995c11)=>{if(!_0x995c11['consumable']['test'](_0x487cb5['markerRange'],_0x3f77e2['name']))return;const _0x293d46=_0x487cb5['markerRange']['getWalker'](),_0x100ee4=_0x487cb5['markerRange']['start'],_0x35056f=_0x57248a['model']['schema'];let _0x37e8c2=null,_0x2104f0=null,_0x28a6a4=!0x1,_0x504c8a=!0x1;for(const _0x4444b7 of _0x293d46){const _0x2eda53=_0x4444b7['item'];_0x28a6a4=_0x28a6a4||_0x35056f['isContent'](_0x2eda53);const _0x3c968c=_0x995c11['mapper']['toViewElement'](_0x2eda53);if(_0x3c968c&&_0x3c968c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4444b7['type']&&(_0x35056f['isBlock'](_0x2eda53)&&!_0x35056f['isLimit'](_0x2eda53)&&(_0x2eda53['nextSibling']||_0x100ee4['isAtEnd']?_0x37e8c2&&_0x37e8c2['parent']==_0x2eda53||(_0x37e8c2=_0x2eda53,_0x5bef26(_0x4444b7['previousPosition']),_0x504c8a=!0x0):_0x2104f0=_0x2104f0||_0x4444b7['previousPosition']));}function _0x5bef26(_0xfe2044){const _0x2fdcee=_0x995c11['mapper']['toViewPosition'](_0xfe2044),_0x2dae02=_0x995c11['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x572ae8});_0x995c11['writer']['insert'](_0x2fdcee,_0x2dae02),_0x995c11['mapper']['bindElementToMarker'](_0x2dae02,_0x487cb5['markerName']);}_0x28a6a4||_0x504c8a||!_0x2104f0||_0x5bef26(_0x2104f0);};}class _t extends _0x2c1871{constructor(_0x593077){super(_0x593077);const _0x464799=_0x593077['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x464799,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x464799,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x12ac0d=this['editor'],_0x3e96ac=_0x12ac0d['plugins']['get'](d),_0x38c89a=_0x3e96ac['isReady']?_0x3e96ac['diff']['newRevisionId']:null;_0x12ac0d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38c89a);}['refresh'](){const {isReady:_0x341331,isEnabled:_0x1a59cb,repository:_0x5b415f,diff:_0x4fd072}=this['editor']['plugins']['get'](d),_0x7ca91c=_0x4fd072&&_0x5b415f['getLaterVisibleRevision'](_0x4fd072['newRevisionId']);this['isEnabled']=_0x341331&&_0x1a59cb&&Boolean(_0x7ca91c);}}class yt extends _0x2c1871{['_step'];constructor(_0x38f2f7,{direction:_0x40972f}){super(_0x38f2f7);const _0xfaaab0=_0x38f2f7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40972f?0x1:-0x1,this['listenTo'](_0xfaaab0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xfaaab0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xfaaab0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4bd1a2=this['editor'],_0x437adc=_0x4bd1a2['plugins']['get'](d),{isNavigationMode:_0x30911e,currentChangeNumber:_0xcfc8b1}=_0x437adc;let _0x182141;if(_0x437adc['activeChange']=_0x30911e?_0x437adc['diff']['changes']['get'](_0xcfc8b1+this['_step']):_0x437adc['diff']['changes']['first'],_0x437adc['activeChange']['data']['isOnRoot'])_0x182141=_0x4bd1a2['editing']['view']['getDomRoot'](_0x437adc['activeChange']['rootName']);else{const _0x12c8d5=_0x4bd1a2['model']['markers']['get']('revision:'+_0x437adc['activeChange']['id']);_0x182141=_0x48dfde(_0x4bd1a2['editing'],_0x12c8d5);}_0x4a98c9({'target':_0x182141,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x53f61f,currentChangeNumber:_0x50b572,numberOfChanges:_0x33a213,isReady:_0x476683,isEnabled:_0x1419e1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1419e1&&_0x476683&&_0x33a213)&&(!_0x53f61f||(0x1===this['_step']?_0x50b572<_0x33a213-0x1:_0x50b572>0x0));}}class _i extends _0x1d6e15{constructor(_0x21ece6){super(_0x21ece6);const _0x24d2ee=this['bindTemplate'],_0x250508=new _0x3cc15e(_0x21ece6),_0x506b6e=new _0x3cc15e(_0x21ece6);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',(_0x395db8,_0x52a465)=>_0x395db8&&_0x52a465>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5d6214,_0xb7194,_0x5712f1,_0x635975)=>{if(!_0x5d6214)return m(_0x21ece6,'Loading...');if(!_0x5712f1)return m(_0x21ece6,'No\x20changes');const _0xcf4266=m(_0x21ece6,'NUMBER_OF_CHANGES',_0x5712f1);return _0x635975?m(_0x21ece6,'X_OF_Y_CHANGES',[_0xb7194+0x1,_0x5712f1]):_0xcf4266;}),_0x250508['set']({'label':m(_0x21ece6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x506b6e['set']({'label':m(_0x21ece6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x250508['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x506b6e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x250508['on']('execute',()=>this['fire']('execute','backward')),_0x506b6e['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',_0x24d2ee['if']('_isStatusLabelVisible','ck-hidden',_0xeb28e8=>!_0xeb28e8)]},'children':[{'text':_0x24d2ee['to']('isNavigationMode',_0x13302c=>_0x13302c?m(_0x21ece6,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x21ece6,'Total')+':\x20')}]},{'text':_0x24d2ee['to']('_statusText')}]},new _0x2cc299(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x250508,_0x506b6e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x15974b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x316731=this['editor']['editing']['view'];_0x316731['change'](_0x5dce06=>{for(const _0x5cfc8d of _0x316731['document']['roots'])_0x5dce06['addClass'](ce,_0x5cfc8d);});}['hide'](){const _0x16cc9b=this['editor']['editing']['view'];_0x16cc9b['change'](_0x16c7ae=>{for(const _0x37dbb5 of _0x16cc9b['document']['roots'])_0x16c7ae['removeClass'](ce,_0x37dbb5);});}}class g extends _0x15974b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x175aae=this['editor'],_0x148fce=_0x175aae['plugins']['get'](d),_0x1f54c0=_0x175aae['plugins']['get'](le);_0x175aae['ui']['componentFactory']['add']('exitToEditing',_0x4ab9e1=>{const _0xc439af=new _0x3cc15e(_0x4ab9e1);return _0xc439af['set']({'label':m(_0x4ab9e1,'Back\x20to\x20editing'),'icon':_0x470fce['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xc439af,'execute',()=>{_0x175aae['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xc439af;}),_0x175aae['ui']['componentFactory']['add']('restoreRevision',_0x58f811=>{const _0xf9a738=new _0x3cc15e(_0x58f811);return _0xf9a738['set']({'label':m(_0x58f811,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf9a738['bind']('isEnabled')['to'](_0x175aae['commands']['get']('restoreRevision')),this['listenTo'](_0xf9a738,'execute',()=>_0x175aae['execute']('restoreRevision')),_0xf9a738;}),_0x175aae['ui']['componentFactory']['add']('changesNavigation',_0x1d0b83=>{const _0x588a76=new _i(_0x1d0b83),_0x181e88=_0x175aae['commands']['get']('showPreviousChange'),_0x377871=_0x175aae['commands']['get']('showNextChange');return _0x588a76['bind']('isBackwardNavigationEnabled')['to'](_0x181e88,'isEnabled'),_0x588a76['bind']('isForwardNavigationEnabled')['to'](_0x377871,'isEnabled'),_0x588a76['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x148fce),this['listenTo'](_0x588a76,'execute',(_0x19058b,_0x233cf7)=>{_0x175aae['execute']('forward'===_0x233cf7?'showNextChange':'showPreviousChange');}),_0x588a76;}),_0x1f54c0['show'](),_0x148fce['on']('change:isReady',(_0x33864b,_0x1756f5,_0x2aa7cd)=>{_0x2aa7cd?_0x1f54c0['hide']():_0x1f54c0['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x43c521,_0x330731){super(_0x43c521,_0x330731);const _0xc5368c=this['bindTemplate'];this['set']({'label':m(_0x43c521,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x43c521,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc5368c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x151f51=this['fieldView']['element'];this['_tooltipString']=_0x151f51['scrollWidth']>_0x151f51['clientWidth']&&_0x151f51['value']||'';}}class ti extends _0x1d6e15{constructor(_0x2b5798,_0x368198,_0x12ba72){super(_0x2b5798);const _0x401244=new _0x228ef3();_0x401244['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2d343a=['ck','ck-revision-history-sidebar__revision-author'];_0x12ba72&&_0x2d343a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x30ac2d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2b5798,_0x12ba72?'Revision\x20creator':'Revision\x20author')},'children':[_0x401244,_0x368198['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2d343a},'children':_0x30ac2d});}}function ni(_0x539c2c,_0xb7cdd2){const _0x5e0b5d=_0x539c2c['bindTemplate'],_0x55e27f=_0x539c2c['locale'],_0x1af629=_0x3ccc2a(_0x55e27f);_0x1af629['panelPosition']='sw';const _0x49949e=function(_0x2830fb,_0x57d0fa){const _0x24dbec=function(_0x29ed02,_0x42769c){const _0x182172=_0x29ed02['locale'],_0x1e4859={'Compare\x20against\x20selected':m(_0x182172,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x182172,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x182172,'Restore\x20this\x20revision')};return _0x42769c['map'](_0x1ea9b2=>{const _0x225ec3=_0x1e4859[_0x1ea9b2['name']];return _0x225ec3&&_0x225ec3!==_0x1ea9b2['name']&&(_0x1ea9b2['name']=_0x225ec3),_0x1ea9b2;});}(_0x2830fb,_0x57d0fa),_0x14786a=new _0x53ab85();for(const _0xd4de59 of _0x24dbec){const _0x492b97={'type':'button','model':new to({'label':_0xd4de59['name'],'class':_0xd4de59['class'],'withText':!0x0,'role':'menuitem','_action':_0xd4de59['action']})};_0x492b97['model']['bind']('isEnabled')['to'](_0x2830fb,'isActionsDropdownOpen',_0x932d1a=>'function'!=typeof _0xd4de59['isEnabled']||(!_0x932d1a||_0xd4de59['isEnabled'](_0x2830fb))),_0x14786a['add'](_0x492b97);}return _0x14786a;}(_0x539c2c,_0xb7cdd2);return _0x539c2c['bind']('isActionsDropdownOpen')['to'](_0x1af629,'isOpen'),_0x1af629['buttonView']['set']({'label':m(_0x55e27f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x470fce['threeVerticalDots']}),_0x1af629['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5e0b5d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5e0b5d['to'](_0x2a4c39=>_0x2a4c39['stopPropagation']())}}),_0x1af629['on']('execute',_0x32cf93=>{_0x539c2c['isReady']&&'function'==typeof _0x32cf93['source']['_action']&&_0x32cf93['source']['_action'](_0x539c2c);}),_0x22175d(_0x1af629,_0x49949e,{'role':'menu'}),_0x1af629['listenTo'](_0x539c2c,'change:isActionsDropdownOpen',(_0x4061c8,_0x2c4959,_0x578338)=>{if(_0x578338)for(const _0xabeda1 of _0x1af629['listView']['items']){const _0x35b90b=_0xabeda1['children']['first'],_0x20ce15=_0xb7cdd2['find'](_0x445c10=>_0x445c10['action']===_0x35b90b['_action'])['isVisible'];_0xabeda1['isVisible']=void 0x0===_0x20ce15||_0x20ce15(_0x539c2c);}}),_0x1af629;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x29c051(_0x1d6e15){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1b8b35,_0x5619c6,_0x1381bf,_0x43c77a){super(_0x1b8b35);const _0x2cdf39=this['bindTemplate'],_0x1ad561=function(_0x4e3297,_0x4784dc){const _0x1eeff0=Array['from'](_0x4784dc['authors'])['filter'](_0x29008d=>_0x29008d!=_0x4784dc['creator']);return _0x4784dc['creator']&&_0x1eeff0['unshift'](_0x4784dc['creator']),_0x1eeff0['map'](_0x6a8cc9=>new ti(_0x4e3297,_0x6a8cc9,_0x6a8cc9==_0x4784dc['creator']));}(_0x1b8b35,_0x5619c6);this['id']=_0x5619c6['id'],this['_revision']=_0x5619c6,this['_requireRevisionName']=_0x43c77a,this['bind']('name','createdAt')['to'](_0x5619c6),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5dd997=>{return _0x4a25bc=_0x1b8b35['uiLanguage'],(_0x56f05e=_0x5dd997)['toLocaleDateString'](_0x4a25bc,{'month':'long','day':'numeric'})+',\x20'+_0x56f05e['toLocaleTimeString'](_0x4a25bc,{'hour':'numeric','minute':'numeric'});var _0x4a25bc,_0x56f05e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1b8b35,_0x5d5d36),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x26f07c=>_0x26f07c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x471719,_0x5b2837)=>_0x471719&&_0x5b2837),this['revisionActionsView']=_0x1381bf&&_0x1381bf['length']?ni(this,_0x1381bf):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2cdf39['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2cdf39['if']('isEnabled','ck-disabled',_0x466a90=>!_0x466a90),_0x2cdf39['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2cdf39['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2cdf39['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':_0x2cdf39['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':_0x1ad561}]},this['revisionActionsView']],'on':{'click':_0x2cdf39['to'](_0x729e74=>{_0x729e74['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5285e9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5285e9,'change',()=>{this['_requireRevisionName']&&!_0x5285e9['value']||this['fire']('setName',{'id':this['id'],'name':_0x5285e9['value']}),_0x5285e9['value']||(_0x5285e9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0xf83481,_0x2769c6){const _0x2158db=_0x343446['fromJSDate'](_0xf83481)['setLocale'](_0x2769c6),_0xb600df=_0x343446['local'](),_0x470423=_0xb600df['minus']({'days':0x1})['startOf']('day');let _0x426424,_0x5dd409;return _0x2158db['hasSame'](_0xb600df,'day')?(_0x426424=_0x2158db['startOf']('day')['toJSDate'](),_0x5dd409=_0x2158db['toRelativeCalendar']()):_0x2158db['hasSame'](_0x470423,'day')?(_0x426424=_0x470423['toJSDate'](),_0x5dd409=_0x2158db['toRelativeCalendar']()):_0x2158db['hasSame'](_0xb600df,'week')?(_0x426424=_0x2158db['startOf']('week')['toJSDate'](),_0x5dd409=_0x2158db['weekdayLong']||''):_0x2158db['hasSame'](_0xb600df,'year')?(_0x426424=_0x2158db['startOf']('month')['toJSDate'](),_0x5dd409=_0x2158db['monthLong']||''):(_0x426424=_0x2158db['startOf']('year')['toJSDate'](),_0x5dd409=String(_0x2158db['year'])),{'startDate':_0x426424,'localizedPeriodName':_0x5dd409};}class mi extends _0x1d6e15{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x12c934,_0x1c9d8c,_0x5c69a5,_0x3343b5){super(_0x12c934);const _0x23d02e=di(_0x1c9d8c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1c9d8c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5c69a5,this['_requireRevisionName']=_0x3343b5,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':_0x23d02e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3d7819){const _0x38ec9f=new ai(this['locale'],_0x3d7819,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x38ec9f);}['removeRevision'](_0x5c2fc8){const _0x39808e=this['revisionViews']['find'](_0x51c626=>_0x51c626['id']===_0x5c2fc8['id']);this['revisionViews']['remove'](_0x39808e);}}class as extends _0x1d6e15{constructor(_0x5a707e){super(_0x5a707e);const _0x13d638=new _0x228ef3();_0x13d638['content']=_0x470fce['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x13d638,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5a707e,'Revision\x20history')]}]});}}class ci extends _0x1d6e15{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a3d6a,_0x5148b8,_0x5e3cb6,_0x2d67b6){super(_0x1a3d6a);const _0x432eb2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5148b8,this['_revisionActions']=_0x5e3cb6,this['_requireRevisionName']=_0x2d67b6,this['on']('select',(_0x42491c,_0x5dfe56)=>{this['fire']('revisionSelected',_0x5dfe56);}),this['on']('setName',(_0x37b784,_0x129f0d)=>{this['fire']('revisionSetName',_0x129f0d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1a3d6a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x432eb2['if']('isEnabled','ck-disabled',_0x410eed=>!_0x410eed)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1e15b5 of this['_revisions'])this['_addRevision'](_0x1e15b5);this['_revisions']['on']('add',(_0x3b113e,_0x16f6c4)=>{this['_addRevision'](_0x16f6c4);}),this['_revisions']['on']('remove',(_0x42df84,_0x32a932)=>{this['_removeRevision'](_0x32a932);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3000cf=>_0x3000cf['revisionViews']['map'](_0x500617=>_0x500617))['flat']();}['selectRevision'](_0x10aba0){for(const _0x1061de of this['revisionViews'])_0x10aba0&&_0x10aba0['id']===_0x1061de['id']?_0x1061de['select']():_0x1061de['deselect']();}['highlightRevisions'](_0x432bae){for(const _0x26f18e of this['revisionViews'])_0x432bae['some'](({id:_0x139537})=>_0x139537===_0x26f18e['id'])?_0x26f18e['highlight']():_0x26f18e['unhighlight']();}['_addRevision'](_0x1f2982){const _0x54c63c=di(_0x1f2982['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x539619=this['timePeriodViews']['get'](0x0);_0x539619&&_0x539619['startDate']['getTime']()===_0x54c63c['getTime']()||(_0x539619=new mi(this['locale'],_0x54c63c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x539619)),_0x539619['addRevision'](_0x1f2982);}['_removeRevision'](_0x1748a5){const _0x5a4ce4=di(_0x1748a5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5a4ce4)['removeRevision'](_0x1748a5);}['_getTimePeriodViewByStartDate'](_0x52763d){return this['timePeriodViews']['find'](_0xc5557=>_0xc5557['startDate']['getTime']()===_0x52763d['getTime']());}}class w extends _0x15974b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1bb9b2,_0x313ad8){super(_0x313ad8),this['sourceElement']=_0x1bb9b2,this['model']['document']['createRoot']();const _0x2d3c8b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2d3c8b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1192a9,_0x5d8032){const _0xfeb96b=new this(_0x1192a9,_0x5d8032);return await _0xfeb96b['initPlugins'](),await _0xfeb96b['ui']['init'](_0x1192a9),await _0xfeb96b['data']['init'](_0xfeb96b['config']['get']('initialData')||''),_0xfeb96b['fire']('ready'),_0xfeb96b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0xa208af{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a8e0f){function _0x7a556c(_0x462dd4){return _0x462dd4['map'](_0x7ba4a5=>String['fromCharCode'](_0x7ba4a5))['join']('');}super(_0x4a8e0f),this['result']='end',_0x4a8e0f[_0x7a556c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a556c([0x76,0x69,0x65,0x77])][_0x7a556c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7a556c([0x61,0x75,0x74,0x6f]),_0x4a8e0f[_0x7a556c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7a556c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7a556c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7a556c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7a556c([0x6f,0x6b])});}}class k extends _0xa208af{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1cad23){if(super(_0x1cad23),!this['editor']['config']['get']('revisionHistory'))throw new _0x3d4ef3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f214a=>this['_showRevisionViewer']({..._0x2f214a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1d28a7=>this['_closeRevisionViewer'](_0x1d28a7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x462e91=>this['_restoreRevision'](_0x462e91)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4c654c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4c654c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3ab341){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3ab341);}['getRevision'](_0x30e4e8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x30e4e8);}['getRevisions'](_0x4de5a4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4de5a4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x166a69=this['editor'],_0xdc592a=_0x4b1cec(_0x166a69,p),_0x2af795=_0x166a69['plugins']['get']('RevisionTracker'),_0x5d0fc3=_0x166a69['plugins']['get']('Users')['users'];return _0xdc592a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xdc592a['lazyRoots'],(_0xdc592a['plugins']['push'](bt,d,g,class extends _0xa208af{static get['requires'](){return[d,'Users'];}['init'](){const _0x14cd98=this['editor']['plugins']['get']('Users');for(const _0x4b2ee1 of _0x5d0fc3)_0x4b2ee1['isAnonymous']||_0x14cd98['getUser'](_0x4b2ee1['id'])||_0x14cd98['addUser'](_0x4b2ee1);const _0x6dc394=_0x2af795['repository']['getRevisions']();let _0x5e1555=null;const _0x4bf4c5=this['editor']['plugins']['get']('RevisionViewer');_0x4bf4c5['adapter']=_0x2af795['adapter'],_0x4bf4c5['bind']('isEnabled')['to'](_0x2af795),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x166a69,'isReadOnly',_0x16d6e1=>!_0x16d6e1);for(const _0x353830 of _0x6dc394){const _0x181baa=null===_0x353830['creator'];if(_0x181baa&&_0x353830['toVersion']===_0x353830['fromVersion'])continue;const _0xe35b4d=_0x353830['toJSON']();_0x4bf4c5['addRevisionData'](_0xe35b4d,(_0x10e361,_0x2fdabf,_0x18d67a)=>{if(_0x181baa){if(_0x5e1555)_0x5e1555['_update'](_0x10e361,_0x2fdabf);else{if(!_0x2fdabf){const _0x3ae025=_0x18d67a['toJSON']();_0x3ae025['id']=_0x578618(),_0x2af795['saveRevision'](_0x3ae025,_0x18d67a['toVersion'])['then'](_0xdd9498=>{_0x5e1555=_0xdd9498;});}}}else _0x353830['_update'](_0x10e361,_0x2fdabf);});}}},w),_0xdc592a);}['_enhanceShowRevisionViewerCallback'](){const _0x15aa46=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x40d8ba=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2e4ef8=this['editor']['plugins']['get']('Autosave');await _0x2e4ef8['save']();}else await _0x40d8ba['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3a9310=this['editor']['plugins']['get']('Dialog');_0x3a9310['isOpen']&&_0x3a9310['hide']();}const _0x16965c=this['_getRevisionViewerEditorConfig']();return _0x15aa46(_0x16965c)['then'](_0x132337=>{return(this['_viewerEditor']=_0x132337,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x132337;})['catch'](_0x545c8b=>(console['error'](_0x545c8b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x17f28a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x17f28a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2676ff=this['editor']['plugins']['get']('Annotations');_0x2676ff['refreshVisibility'](),_0x2676ff['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2099ae){const _0x280256=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xcb21b6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x579e5f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x579e5f,_0x2099ae)['then'](_0xaefd56=>(_0xcb21b6['style']['display']='block',_0x280256['style']['display']='none',_0xaefd56));}['_closeRevisionViewer'](_0x4a1a59){const _0x44129e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x44129e['style']['display']='',_0x4a1a59['destroy']();}async['_restoreRevision'](_0x20f084){const _0x2f0375=this['editor'],_0x1fa193=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5f5119=_0x2f0375['plugins']['get']('RevisionTracker'),_0x584cd4=_0x1fa193['repository']['getRevision'](_0x20f084);let _0x2e3f22,_0x42883f,_0x34fd6a;try{_0x2e3f22=await _0x1fa193['getRevisionData'](_0x584cd4),_0x42883f=await _0x1fa193['getRevisionRootsAttributes'](_0x584cd4);}catch(_0x4c1fb7){return void console['error'](_0x4c1fb7);}_0x2f0375['model']['change'](_0x4e58c7=>{for(const _0xbf841 of Array['from'](_0x2f0375['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4e58c7['removeMarker'](_0xbf841);}),_0x1fa193['isReady']=!0x1,_0x2f0375['model']['enqueueChange'](_0x162473=>{_0x162473['setSelection'](null),_0x162473['removeSelectionAttribute'](_0x2f0375['model']['document']['selection']['getAttributeKeys']());const _0x566e70=Object['keys'](_0x2e3f22);for(const _0x3c6357 of _0x2f0375['model']['document']['roots'])'$graveyard'!=_0x3c6357['rootName']&&_0x3c6357['isAttached']()&&!_0x566e70['includes'](_0x3c6357['rootName'])&&_0x162473['detachRoot'](_0x3c6357);for(const _0x110850 of _0x566e70){let _0xa42161=_0x2f0375['model']['document']['getRoot'](_0x110850);_0xa42161&&_0xa42161['isAttached']()||(_0xa42161=_0x162473['addRoot'](_0x110850));const _0x3fd0eb=_0x42883f[_0x110850],_0x1b9bb8=Object['keys'](_0x3fd0eb),_0x8ead03=_0x2e3f22[_0x110850];for(const _0xd6be83 of _0xa42161['getAttributeKeys']())_0x1b9bb8['includes'](_0xd6be83)||_0x162473['removeAttribute'](_0xd6be83,_0xa42161);for(const _0x4b04f4 of _0x1b9bb8)_0x162473['setAttribute'](_0x4b04f4,_0x42883f[_0x110850][_0x4b04f4],_0xa42161);_0x162473['remove'](_0x162473['createRangeIn'](_0xa42161)),_0x162473['insert'](_0x2f0375['data']['parse'](_0x8ead03,_0xa42161),_0xa42161,0x0);}});const _0x5cae97=m(_0x2f0375['locale'],'Restored');if(_0x584cd4['name'])_0x34fd6a=-0x1==_0x584cd4['name']['indexOf'](_0x5cae97)?_0x5cae97+':\x20'+_0x584cd4['name']:_0x584cd4['name'];else _0x34fd6a=_0x5cae97+':\x20'+(_0x584cd4['createdAt']['toLocaleDateString'](_0x2f0375['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x584cd4['createdAt']['toLocaleTimeString'](_0x2f0375['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5f5119['saveRevision']({'name':_0x34fd6a}),_0x1fa193['isReady']=!0x0,_0x2f0375['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x537d86){super(_0x537d86),this['_revisionViewer']=_0x537d86['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xdc208=this['_revisionsRepository']['_revisions'],_0x33d37c=this['_createRevisionActions'](),_0x4d1373=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0xdc208,_0x33d37c,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',(_0x5ea574,_0x13d360)=>{_0x13d360['revisionViews']['on']('add',(_0x234900,_0x51c468)=>{_0x51c468['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)),_0x4d1373['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x16b49a=this['_revisionsRepository']['getRevision'](0x0);if(_0x16b49a){const _0x34fb56=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x16b49a['id']);this['_revisionViewer']['compare'](_0x16b49a,_0x34fb56);}}['_handleRevisionSelected'](_0x5252e9,_0x3a0f7a){const _0xac1368=this['_revisionsRepository']['getRevision'](_0x3a0f7a['id']),_0x291874=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xac1368['id']);this['_revisionViewer']['compare'](_0xac1368,_0x291874);}['_handleRevisionSetName'](_0x3d2a2d,_0x2a4f94){this['_revisionsRepository']['getRevision'](_0x2a4f94['id'])['setName'](_0x2a4f94['name']);}['_handleDiffChange'](_0x5a6fe3,_0x3ab3de,_0x411050){const _0x35cf95=this['_revisionsRepository']['getRevisionsInDiff'](_0x411050);_0x35cf95['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x35cf95),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x35cf95[0x0]));}['_createRevisionActions'](){const _0x4cbb44=this['editor'],_0x4c4328=w['availableRevisionActions'],_0x545882=_0x4cbb44['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x545882['length'])return _0x545882['map'](_0x3f1b52=>{const _0x397fe1='string'==typeof _0x3f1b52?Object['assign']({},_0x4c4328[_0x3f1b52]):_0x3f1b52;return _0x397fe1['action']=_0x397fe1['action']['bind'](this,_0x4cbb44),_0x397fe1['isVisible']&&(_0x397fe1['isVisible']=_0x397fe1['isVisible']['bind'](this,_0x4cbb44)),_0x397fe1;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4278b7},_0x3779a5)=>{const _0x410027=_0x4278b7['get'](d),_0x2b46e0=_0x410027['repository'];let _0x49d72b=_0x410027['diff']['newRevisionId'],_0x33666c=_0x3779a5['id'];_0x2b46e0['getIndex'](_0x49d72b)>_0x2b46e0['getIndex'](_0x33666c)&&([_0x49d72b,_0x33666c]=[_0x33666c,_0x49d72b]),_0x410027['compare'](_0x49d72b,_0x33666c);},'isVisible':({plugins:_0x56e258},_0x321a2c)=>{const _0x58328c=_0x56e258['get'](d);return!(_0x58328c['repository']['getRevisionsInDiff'](_0x58328c['diff'])['length']>0x2)&&!_0x321a2c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf3a851,{id:_0x425bc2})=>{_0xf3a851['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x425bc2);},'isVisible':({plugins:_0x2e042d},_0x3b41de)=>!!_0x2e042d['get'](d)['repository']['getLaterVisibleRevision'](_0x3b41de['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2a172a},{id:_0xb8c917,revisionNameView:_0x56e042})=>{const _0x435fa3=_0x2a172a['get'](d),_0xff1df3=_0x435fa3['repository']['getEarlierVisibleRevision'](_0xb8c917);_0x435fa3['compare'](_0xb8c917,_0xff1df3),_0x56e042['focus'](),_0x56e042['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x59c04f,_0x85fdc1){super(_0x59c04f),this['_view']=_0x85fdc1,this['_toolbarConfig']=ot(_0x59c04f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x25f625){const _0x2800da=this['editor'],_0x12c8bd=this['view'],_0x14ada0=_0x2800da['editing']['view'],_0xb54474=_0x12c8bd['editable'],_0x4de09b=_0x14ada0['document']['getRoot']();_0xb54474['name']=_0x4de09b['rootName'],_0x12c8bd['render']();const _0x160120=_0xb54474['element'];this['setEditableElement'](_0xb54474['name'],_0x160120),_0x12c8bd['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x14ada0['attachDomRoot'](_0x160120),this['_elementReplacer']['replace'](_0x25f625,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3add2a=this['view'],_0x46e00c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x46e00c['detachDomRoot'](_0x3add2a['editable']['name']),_0x3add2a['destroy']();}['_initToolbar'](){const _0x4474b9=this['view'];_0x4474b9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4474b9['stickyPanel']['limiterElement']=_0x4474b9['element'],_0x4474b9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x309354})=>_0x309354),_0x4474b9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4474b9['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1b47ca,_0x57441a,_0x4e01b8={}){super(_0x1b47ca),this['stickyPanel']=new ut(_0x1b47ca),this['toolbar']=new lt(_0x1b47ca,{'shouldGroupWhenFull':_0x4e01b8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1b47ca,_0x57441a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ecd46,_0x1f08bc){super(_0x1f08bc),this['sourceElement']=_0x2ecd46,this['model']['document']['createRoot']();const _0x9fc4aa=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x9fc4aa);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x26aea5,_0x33c6c5){const _0x43b1ae=new this(_0x26aea5,_0x33c6c5);return await _0x43b1ae['initPlugins'](),await _0x43b1ae['ui']['init'](_0x26aea5),await _0x43b1ae['data']['init'](_0x43b1ae['config']['get']('initialData')||''),_0x43b1ae['fire']('ready'),_0x43b1ae;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x15974b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5490ba){function _0x1bc5d2(_0x4fcc1d){return _0x4fcc1d['map'](_0x59f608=>String['fromCharCode'](_0x59f608))['join']('');}super(_0x5490ba),this['result']='end',_0x5490ba[_0x1bc5d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc5d2([0x76,0x69,0x65,0x77])][_0x1bc5d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bc5d2([0x61,0x75,0x74,0x6f]),_0x5490ba[_0x1bc5d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1bc5d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bc5d2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1bc5d2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1bc5d2([0x6f,0x6b])});}}class k extends _0x15974b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x421d55){if(super(_0x421d55),!this['editor']['config']['get']('revisionHistory'))throw new _0x479dc4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x174458=>this['_showRevisionViewer']({..._0x174458,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3af230=>this['_closeRevisionViewer'](_0x3af230)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xfedc37=>this['_restoreRevision'](_0xfedc37)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3c6309){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3c6309;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x331ec0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x331ec0);}['getRevision'](_0x3a639f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3a639f);}['getRevisions'](_0x468d7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x468d7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3dbdd0=this['editor'],_0x68b774=_0x1e0a56(_0x3dbdd0,p),_0x5b955e=_0x3dbdd0['plugins']['get']('RevisionTracker'),_0x3ca48c=_0x3dbdd0['plugins']['get']('Users')['users'];return _0x68b774['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x68b774['lazyRoots'],(_0x68b774['plugins']['push'](Rt,d,g,class extends _0x15974b{static get['requires'](){return[d,'Users'];}['init'](){const _0x2ac968=this['editor']['plugins']['get']('Users');for(const _0x4a8a33 of _0x3ca48c)_0x4a8a33['isAnonymous']||_0x2ac968['getUser'](_0x4a8a33['id'])||_0x2ac968['addUser'](_0x4a8a33);const _0x5f3557=_0x5b955e['repository']['getRevisions']();let _0x3f31ec=null;const _0x351c78=this['editor']['plugins']['get']('RevisionViewer');_0x351c78['adapter']=_0x5b955e['adapter'],_0x351c78['bind']('isEnabled')['to'](_0x5b955e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3dbdd0,'isReadOnly',_0x1dab34=>!_0x1dab34);for(const _0x40d507 of _0x5f3557){const _0x34d0fa=null===_0x40d507['creator'];if(_0x34d0fa&&_0x40d507['toVersion']===_0x40d507['fromVersion'])continue;const _0x27124c=_0x40d507['toJSON']();_0x351c78['addRevisionData'](_0x27124c,(_0x13d221,_0x3b2e6b,_0x4da1ca)=>{if(_0x34d0fa){if(_0x3f31ec)_0x3f31ec['_update'](_0x13d221,_0x3b2e6b);else{if(!_0x3b2e6b){const _0x885291=_0x4da1ca['toJSON']();_0x885291['id']=_0x41fc2a(),_0x5b955e['saveRevision'](_0x885291,_0x4da1ca['toVersion'])['then'](_0x4c21f9=>{_0x3f31ec=_0x4c21f9;});}}}else _0x40d507['_update'](_0x13d221,_0x3b2e6b);});}}},w),_0x68b774);}['_enhanceShowRevisionViewerCallback'](){const _0x1945a7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x560f80=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd49825=this['editor']['plugins']['get']('Autosave');await _0xd49825['save']();}else await _0x560f80['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4586e0=this['editor']['plugins']['get']('Dialog');_0x4586e0['isOpen']&&_0x4586e0['hide']();}const _0x1c09d9=this['_getRevisionViewerEditorConfig']();return _0x1945a7(_0x1c09d9)['then'](_0xcf6ee5=>{return(this['_viewerEditor']=_0xcf6ee5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xcf6ee5;})['catch'](_0x540e68=>(console['error'](_0x540e68),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55fb69=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x55fb69(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x14c020=this['editor']['plugins']['get']('Annotations');_0x14c020['refreshVisibility'](),_0x14c020['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d5f48){const _0x201567=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4a4654=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3e090e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3e090e,_0x4d5f48)['then'](_0x2d649c=>(_0x4a4654['style']['display']='block',_0x201567['style']['display']='none',_0x2d649c));}['_closeRevisionViewer'](_0x40d095){const _0x51f83d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x51f83d['style']['display']='',_0x40d095['destroy']();}async['_restoreRevision'](_0x1973a1){const _0x2a6386=this['editor'],_0x578bbd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x269b46=_0x2a6386['plugins']['get']('RevisionTracker'),_0x18a160=_0x578bbd['repository']['getRevision'](_0x1973a1);let _0x2c3099,_0x2d7b09,_0x1f1dc4;try{_0x2c3099=await _0x578bbd['getRevisionData'](_0x18a160),_0x2d7b09=await _0x578bbd['getRevisionRootsAttributes'](_0x18a160);}catch(_0x3d5a94){return void console['error'](_0x3d5a94);}_0x2a6386['model']['change'](_0x40f1e7=>{for(const _0x3964f5 of Array['from'](_0x2a6386['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x40f1e7['removeMarker'](_0x3964f5);}),_0x578bbd['isReady']=!0x1,_0x2a6386['model']['enqueueChange'](_0x477e7e=>{_0x477e7e['setSelection'](null),_0x477e7e['removeSelectionAttribute'](_0x2a6386['model']['document']['selection']['getAttributeKeys']());const _0x24ee92=Object['keys'](_0x2c3099);for(const _0x595320 of _0x2a6386['model']['document']['roots'])'$graveyard'!=_0x595320['rootName']&&_0x595320['isAttached']()&&!_0x24ee92['includes'](_0x595320['rootName'])&&_0x477e7e['detachRoot'](_0x595320);for(const _0x44bce8 of _0x24ee92){let _0x4b47da=_0x2a6386['model']['document']['getRoot'](_0x44bce8);_0x4b47da&&_0x4b47da['isAttached']()||(_0x4b47da=_0x477e7e['addRoot'](_0x44bce8));const _0x5612fe=_0x2d7b09[_0x44bce8],_0x4ae83e=Object['keys'](_0x5612fe),_0x5c57f0=_0x2c3099[_0x44bce8];for(const _0x45ad04 of _0x4b47da['getAttributeKeys']())_0x4ae83e['includes'](_0x45ad04)||_0x477e7e['removeAttribute'](_0x45ad04,_0x4b47da);for(const _0x47a0b3 of _0x4ae83e)_0x477e7e['setAttribute'](_0x47a0b3,_0x2d7b09[_0x44bce8][_0x47a0b3],_0x4b47da);_0x477e7e['remove'](_0x477e7e['createRangeIn'](_0x4b47da)),_0x477e7e['insert'](_0x2a6386['data']['parse'](_0x5c57f0,_0x4b47da),_0x4b47da,0x0);}});const _0x28efed=m(_0x2a6386['locale'],'Restored');if(_0x18a160['name'])_0x1f1dc4=-0x1==_0x18a160['name']['indexOf'](_0x28efed)?_0x28efed+':\x20'+_0x18a160['name']:_0x18a160['name'];else _0x1f1dc4=_0x28efed+':\x20'+(_0x18a160['createdAt']['toLocaleDateString'](_0x2a6386['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x18a160['createdAt']['toLocaleTimeString'](_0x2a6386['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x269b46['saveRevision']({'name':_0x1f1dc4}),_0x578bbd['isReady']=!0x0,_0x2a6386['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|