@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250126.0 → 0.0.0-nightly-20250127.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/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4c7a34(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x219c82){super(),this['id']=_0x219c82['id']||_0x22b130(),this['creator']=_0x219c82['creator']||null,this['authors']=_0x219c82['authors']||[],this['diffData']=_0x219c82['diffData']||null,this['toVersion']=_0x219c82['toVersion']||0x0,this['fromVersion']=_0x219c82['fromVersion']||0x0,this['set']('name',_0x219c82['name']||''),this['set']('createdAt',_0x219c82['createdAt']||new Date()),this['set']('attributes',_0x219c82['attributes']||{});}['setName'](_0x13460b){this['_update']({'name':_0x13460b});}['setAttribute'](_0x1de5d1,_0x2623b7){const _0x5649bc=_0x2fbfef(this['attributes']);_0x1c0c86(_0x5649bc,_0x1de5d1,_0x2623b7),this['_update']({'attributes':_0x5649bc});}['removeAttribute'](_0x33f625){const _0x235597=_0x2fbfef(this['attributes']);_0x1183ab(_0x235597,_0x33f625),this['_update']({'attributes':_0x235597});}['_update'](_0x423f31,_0x59dc13=!0x1){let _0x2e1a88=!0x1;const _0x53b19d={'id':this['id']},_0x54c0d0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b9d1d of _0x54c0d0){const _0x5841ef=_0x423f31[_0x2b9d1d];void 0x0!==_0x5841ef&&_0x5841ef!==this[_0x2b9d1d]&&(this[_0x2b9d1d]=_0x5841ef,_0x53b19d[_0x2b9d1d]=_0x5841ef,_0x2e1a88=!0x0);}_0x2e1a88&&(_0x53b19d['authors']&&(_0x53b19d['authorsIds']=_0x53b19d['authors']['map'](_0x6ab33b=>_0x6ab33b['id']),delete _0x53b19d['authors']),this['fire']('_update',_0x53b19d,_0x59dc13));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ab571=>_0x2ab571['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x495045{['_revisions'];static get['requires'](){return[_0x48e3ae];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3847ca){super(_0x3847ca),this['_revisions']=new _0xb59600();}['afterInit'](){!async function(_0x17d80b){const _0x513269=_0x4b27eb([0x57,0x35,0x66,0x71,0x69,0x34,0x41,0x51,0x6b,0x53,0x4e,0x45,0x6d,0x70,0x4a,0x73,0x56,0x46,0x52,0x78,0x4f,0x77,0x39,0x38,0x47,0x5a,0x75,0x54,0x63,0x72,0x48,0x4b,0x36,0x67,0x7a,0x68,0x6a,0x32,0x30,0x62,0x58,0x31,0x64,0x59,0x49,0x76,0x6f,0x43,0x4d,0x6e,0x33,0x61,0x44,0x79,0x74,0x42,0x37,0x65,0x55,0x4c,0x6c,0x50]),_0x4a9bfc=0xeb829,_0x4b05ee=0x3c4434a9,_0x5a687f=0x3c436919^_0x4b05ee,_0x5ecc35=window[_0x4b27eb([0x44,0x61,0x74,0x65])][_0x4b27eb([0x6e,0x6f,0x77])](),_0x587b3d=_0x17d80b[_0x4b27eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ad3f9=new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328525=>{_0x587b3d[_0x4b27eb([0x6f,0x6e,0x63,0x65])](_0x4b27eb([0x72,0x65,0x61,0x64,0x79]),_0x328525);}),_0x113b98={[_0x4b27eb([0x6b,0x74,0x79])]:_0x4b27eb([0x45,0x43]),[_0x4b27eb([0x75,0x73,0x65])]:_0x4b27eb([0x73,0x69,0x67]),[_0x4b27eb([0x63,0x72,0x76])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36]),[_0x4b27eb([0x78])]:_0x4b27eb([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]),[_0x4b27eb([0x79])]:_0x4b27eb([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]),[_0x4b27eb([0x61,0x6c,0x67])]:_0x4b27eb([0x45,0x53,0x32,0x35,0x36])},_0x397786=_0x587b3d[_0x4b27eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b27eb([0x67,0x65,0x74])](_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d97fd(){let _0x4964c6,_0xc0a184=null,_0x104f12=null;try{if(_0x397786==_0x4b27eb([0x47,0x50,0x4c]))return _0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4964c6=_0x3d6fae(),!_0x4964c6)return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x104f12=_0x363ac0(_0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4964c6[_0x4b27eb([0x6a,0x74,0x69])])),await _0x1a3c3a()?_0x301aac()?_0x575ce()?_0x4b27eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x157d21()?(_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ec681()):_0x4b27eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24f928){return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x575ce(){const _0x1ba013=[_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])][_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ecc35/0x3e8:0xe10*_0x5a687f;return _0x4964c6[_0x4b27eb([0x65,0x78,0x70])]<_0x1ba013;}function _0x301aac(){const _0x599049=_0x4964c6[_0x4b27eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x599049)return!0x1;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x48])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x52,0x48]))){if(_0x15168a())return!0x0;if(_0x54dab2()||_0x298078())return!0x0;}return!0x1;}function _0x157d21(){const _0x5d16d5=_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d16d5||0x0==_0x5d16d5[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21e3d3}=new URL(window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d16d5[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21e3d3))return!0x0;const _0x442f21=_0x21e3d3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));return _0x5d16d5[_0x4b27eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9802=>_0x2f9802[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))[_0x4b27eb([0x6d,0x61,0x70])](_0x42b528=>_0x42b528[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])))[_0x4b27eb([0x73,0x6f,0x6d,0x65])](_0x240d76=>_0x442f21[_0x4b27eb([0x65,0x76,0x65,0x72,0x79])]((_0x35336c,_0x8bfce2)=>_0x240d76[_0x8bfce2]===_0x35336c||_0x240d76[_0x8bfce2]===_0x4b27eb([0x2a])));}function _0x3ec681(){return _0xc0a184&&_0x104f12?new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5af282,_0x16b6c1)=>{_0xc0a184[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5af282,_0x16b6c1),_0x104f12[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5b2cd4=>{_0x5b2cd4!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5af282(_0x5b2cd4);},_0x16b6c1);}):_0xc0a184||_0x104f12||_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x363ac0(_0x467bf3,_0x4cfb2f){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf090b4=>{if(_0x2e4bc8())return _0xf090b4(_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]));_0x3aa2a1(),_0x587b3d[_0x4b27eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd4ca5d=!0x1;const _0x72faa5=_0x22b130();function _0x554370(_0x1683fb){return!!_0x1683fb&&(typeof _0x1683fb===_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1683fb===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1683fb[_0x4b27eb([0x74,0x68,0x65,0x6e])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1683fb[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571594(_0x290ce8){_0x4b0fc2(_0x290ce8)[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5ec1c8=>{if(!_0x5ec1c8||_0x5ec1c8[_0x4b27eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b27eb([0x6f,0x6b]))return _0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x313c75(_0x5e1e74(_0x72faa5+_0x4cfb2f))!=_0x5ec1c8[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3bb87c=>(_0x171854(),_0x3bb87c),()=>{const _0x520bec=_0x294ed6();return null==_0x520bec?(_0x171854(),_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])):_0x4b27eb(_0x5ecc35-_0x520bec>(0x1848b0a9^_0x4b05ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0xf090b4)[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x234f30=0x3c72da29^_0x4b05ee;function _0x171854(){const _0x4fc7f8=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x5d994e=_0x4b2b80(_0x313c75(window[_0x4b27eb([0x4d,0x61,0x74,0x68])][_0x4b27eb([0x63,0x65,0x69,0x6c])](_0x5ecc35/_0x234f30)));window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc7f8,_0x5d994e);}function _0x294ed6(){const _0xb17659=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x363060=window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb17659);return _0x363060?window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2b80(_0x363060),0x10)*_0x234f30:null;}function _0x4b0fc2(_0x51bfa7){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d3531,_0x28947b)=>{_0x51bfa7[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3d3531,_0x28947b),window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28947b,0x3c45e069^_0x4b05ee);});}}_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21a5cb,_0x26ebd1)=>{if(_0x26ebd1[0x0]!=_0x467bf3)return _0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26ebd1[0x1]={..._0x26ebd1[0x1],[_0x4b27eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72faa5};},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x68,0x69,0x67,0x68])}),_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4b06=>{_0x554370(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd4ca5d=!0x0,_0x571594(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x6c,0x6f,0x77])}),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>{_0xd4ca5d||_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e4bc8(){return _0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b27eb([0x61,0x75,0x74,0x6f]);}function _0x3aa2a1(){_0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b27eb([0x61,0x75,0x74,0x6f]);}}function _0x4f380d(_0xb4f090){const _0x463b30=[new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473465=>setTimeout(_0x473465,0x3c4d0a65^_0x4b05ee)),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534720=>{const _0x42a08e=0x3c4434ae^_0x4b05ee,_0x48ee52=_0x17d80b[_0x4b27eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x244634(){_0x48ee52[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x42a08e&&_0x534720();}_0x244634(),_0x48ee52[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x61,0x64,0x64]),_0x244634);})),new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2183ab=>{function _0x20f718(){for(const _0x3ebcbb in window)if(window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ebcbb))&&window[_0x3ebcbb]==_0x4a9bfc)return _0x2183ab();_0x587b3d[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]!=_0x4b27eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20f718,0x3c442721^_0x4b05ee);}_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x20f718();})];return window[_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b27eb([0x72,0x61,0x63,0x65])](_0x463b30)[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>_0xb4f090);}async function _0x4c01e9(){if(await _0x5ad3f9,_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5c458c=_0x17d80b[_0x4b27eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x159ab4=_0x17d80b[_0x4b27eb([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])](_0x5c458c[_0x4b27eb([0x69,0x64])]),_0x68ad0e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5c458c['id'],_0x159ab4?_0x159ab4['id']:null,!0x0),_0x68ad0e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x68ad0e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23600d,void(_0x68ad0e[_0x4b27eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23600d);}if(_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x23232e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x23232e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23232e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23232e[_0x4b27eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23600d,_0x23232e[_0x4b27eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23600d;}_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15168a(){return _0x4aacea(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f4750(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]==_0x4b27eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x54dab2(){return _0x4aacea(_0x4b27eb([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 _0x298078(){return _0x4aacea(_0x4b27eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ec5c5(_0x534787){const _0x1a6a51=_0x2de711();_0x587b3d[_0x1a6a51]=_0x4b27eb([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])+_0x534787,_0x534787[_0x4b27eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2de711()]=_0x4a9bfc),_0x534787!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x4c01e9();}function _0x2de711(){const _0x5c891f=window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b27eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b27eb([0x6e,0x6f,0x77])]())[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b27eb([0x2e]),'');let _0x2c13b6=_0x4b27eb([0x57]);for(let _0x35d139=0x0;_0x35d139<_0x5c891f[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35d139+=0x2){let _0x27855d=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c891f[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35d139,_0x35d139+0x2));_0x27855d>=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27855d-=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c13b6+=_0x513269[_0x27855d];}return _0x2c13b6;}function _0x3d6fae(){const _0x5270bd=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));if(0x3!=_0x5270bd[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2984e4(_0x5270bd[0x1]);function _0x2984e4(_0x74a5d0){const _0x2b2dd6=_0x2b326c(_0x74a5d0);return _0x2b2dd6&&_0x3907bb()?_0x2b2dd6:null;function _0x3907bb(){const _0x2d2f67=_0x2b2dd6[_0x4b27eb([0x6a,0x74,0x69])],_0x2aa5ba=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x590028={..._0x2b2dd6,[_0x4b27eb([0x6a,0x74,0x69])]:_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x590028[_0x4b27eb([0x76,0x63])],_0x5e1e74(_0x590028)==_0x2aa5ba;}}}async function _0x1a3c3a(){let _0x13e7ec=!0x0;try{const _0xf4f56a=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])),[_0x3976e3,_0x1e394b,_0x4367b8]=_0xf4f56a;return _0xcebfcc(_0x3976e3),await _0x55cc17(_0x3976e3,_0x1e394b,_0x4367b8),_0x13e7ec;}catch(_0x1ca6ee){return!0x1;}function _0xcebfcc(_0x3db6d7){const _0x46c288=_0x2b326c(_0x3db6d7);_0x46c288&&_0x46c288[_0x4b27eb([0x61,0x6c,0x67])]==_0x4b27eb([0x45,0x53,0x32,0x35,0x36])||(_0x13e7ec=!0x1);}async function _0x55cc17(_0x4fb053,_0xedb7a9,_0x3773ff){const _0x230bef=window[_0x4b27eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b27eb([0x66,0x72,0x6f,0x6d])](_0x5a37a2(_0x3773ff),_0x5ec65e=>_0x5ec65e[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x327c6d=new window[(_0x4b27eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b27eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fb053+_0x4b27eb([0x2e])+_0xedb7a9),_0xe46d34=window[_0x4b27eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b27eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe46d34)return;const _0x23adb8=await _0xe46d34[_0x4b27eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b27eb([0x6a,0x77,0x6b]),_0x113b98,{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe46d34[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x68,0x61,0x73,0x68])]:{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23adb8,_0x230bef,_0x327c6d)||(_0x13e7ec=!0x1);}}function _0x2b326c(_0x136175){return _0x136175[_0x4b27eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x65,0x79]))?JSON[_0x4b27eb([0x70,0x61,0x72,0x73,0x65])](_0x5a37a2(_0x136175)):null;}function _0x5a37a2(_0x107b71){return window[_0x4b27eb([0x61,0x74,0x6f,0x62])](_0x107b71[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b27eb([0x2b]))[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b27eb([0x2f])));}function _0x5e1e74(_0xe3de33){let _0x38917b=0x1505;function _0x5b8e57(_0x4f90cb){for(let _0x477a8d=0x0;_0x477a8d<_0x4f90cb[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x477a8d++){const _0x5a4706=_0x4f90cb[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x477a8d);_0x38917b=(_0x38917b<<0x5)+_0x38917b+_0x5a4706,_0x38917b&=_0x38917b;}}function _0x32e420(_0x39f5a1){Array[_0x4b27eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39f5a1)?_0x39f5a1[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32e420):_0x39f5a1&&typeof _0x39f5a1==_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b27eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39f5a1)[_0x4b27eb([0x73,0x6f,0x72,0x74])]()[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1be938,_0x45b591])=>{_0x5b8e57(_0x1be938),_0x32e420(_0x45b591);}):_0x5b8e57(window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39f5a1));}return _0x32e420(_0xe3de33),_0x38917b>>>0x0;}function _0x313c75(_0x20102d){return _0x20102d[_0x4b27eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b27eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b27eb([0x30]));}function _0x4b2b80(_0x15f4a3){return _0x15f4a3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b27eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b27eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aacea(_0x104a0f){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x68,0x61,0x73])](_0x104a0f);}function _0x1f4750(_0x484c3c){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x67,0x65,0x74])](_0x484c3c);}function _0x23600d(){}function _0x4b27eb(_0x101251){return _0x101251['map'](_0x2cd9a6=>String['fromCharCode'](_0x2cd9a6))['join']('');}_0x1ec5c5(await _0x3d97fd());}(this);}['createRevision'](_0x489047){const _0x3ee96c=this['editor']['plugins']['get']('Users');return new a({'id':_0x489047['id'],'name':_0x489047['name'],'creator':_0x489047['creatorId']?_0x3ee96c['getUser'](_0x489047['creatorId']):null,'diffData':_0x489047['diffData']||_0x489047['data'],'authors':_0x489047['authorsIds']['map'](_0x3ef42a=>_0x3ee96c['getUser'](_0x3ef42a)),'createdAt':new Date(_0x489047['createdAt']),'attributes':_0x489047['attributes'],'fromVersion':_0x489047['fromVersion'],'toVersion':_0x489047['toVersion']});}['addRevision'](_0xd28b88,_0x3a76dc=0x0){this['_revisions']['add'](_0xd28b88,_0x3a76dc);}['getRevision'](_0x4bfb12){return this['_revisions']['get'](_0x4bfb12);}['getRevisions'](_0xacd5d6={'toJSON':!0x1}){const _0x953938=Array['from'](this['_revisions']);return _0x953938['reverse'](),_0xacd5d6['toJSON']?_0x953938['map'](_0x239e1d=>_0x239e1d['toJSON']()):_0x953938;}['getIndex'](_0x588a6c){return this['_revisions']['getIndex'](_0x588a6c);}['getEarlierVisibleRevision'](_0x28847b){const [,_0x336e74]=this['getRevisionsIterator'](_0x28847b,{'direction':'earlier'});return _0x336e74;}['getLaterVisibleRevision'](_0x45417b){const [,_0x40105e]=this['getRevisionsIterator'](_0x45417b,{'direction':'later'});return _0x40105e;}['getRevisionsInDiff'](_0x510be3){const _0x15f814=[];for(const _0x165fe5 of this['getRevisionsIterator'](_0x510be3['newRevisionId']))if(_0x15f814['push'](_0x165fe5),_0x165fe5['id']===_0x510be3['oldRevisionId'])break;return _0x15f814;}*['getRevisionsIterator'](_0x19f015,{direction:_0x1a84b5='earlier',filter:_0x391c4b=()=>!0x0}={}){const _0x4b90d4='earlier'===_0x1a84b5?0x1:-0x1;let _0xd918f4=this['_revisions']['get'](_0x19f015),_0x2dc8d1=this['getIndex'](_0xd918f4);for(yield _0xd918f4;_0xd918f4;){if(_0x2dc8d1+=_0x4b90d4,_0xd918f4=this['getRevision'](_0x2dc8d1),!_0xd918f4)return;_0x391c4b(_0xd918f4)&&(yield _0xd918f4);}}}function m(_0x1c0cfb,_0x144fae,_0x34ab8e){const t=_0x1c0cfb['t'];switch(_0x144fae){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'},_0x34ab8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x34ab8e);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':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class l extends _0x495045{['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[_0x48e3ae,j,_0x5e742d];}constructor(_0x454d66){super(_0x454d66),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 _0x4e4498=_0x22b130();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e4498},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 _0x416eb7=this['repository']['getRevision'](0x0),_0x1b6dff=_0x416eb7&&null===_0x416eb7['creator']?_0x416eb7:null;if(this['_continueCurrentRevision']=!!_0x1b6dff&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x845b05=this['_source']['getCurrentRevisionId'](),_0x2eb438=this['repository']['getRevision'](_0x845b05);if(_0x2eb438)this['_startingVersion']=_0x2eb438['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x494ba3=this['_source']['history']['_operations']['find'](_0xc4ec2c=>!_0xc4ec2c['_isInit']),_0x285121=_0x494ba3?_0x494ba3['baseVersion']:this['_source']['history']['version'];_0x416eb7?(_0x416eb7['toVersion']<_0x285121&&_0x416eb7['_update']({'toVersion':_0x285121}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['fromVersion']):(this['_startingVersion']=_0x416eb7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x285121,this['_continueCurrentRevision']=!0x1);}}else _0x1b6dff&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1b6dff['toVersion'],this['editor']['model']['document']['history']['version']),_0x1b6dff['fromVersion']===_0x1b6dff['toVersion']?(0x0!==_0x1b6dff['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['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',_0x23d70b=>!_0x23d70b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32d708=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf278d5;for(const _0x14fee5 in _0x32d708){const _0x2f86ff=_0x14fee5,_0x2c1070=_0x32d708[_0x2f86ff];if('revisionHistoryLicenseKeyValid'==_0x2c1070||'revisionHistoryLicenseKeyInvalid'==_0x2c1070||'revisionHistoryLicenseKeyExpired'==_0x2c1070||'revisionHistoryLicenseKeyDomainLimit'==_0x2c1070||'revisionHistoryLicenseKeyNotAllowed'==_0x2c1070||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c1070||'revisionHistoryLicenseKeyTrialLimit'==_0x2c1070||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2c1070||'revisionHistoryLicenseKeyUsageLimit'==_0x2c1070){delete _0x32d708[_0x2f86ff],_0xf278d5=_0x2c1070,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf278d5&&_0x32d708['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf278d5&&_0x32d708['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf278d5&&_0x32d708['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1541fc=this['repository']['getRevision'](0x0),_0x50519f=await this['getRevisionDocumentData'](_0x1541fc),_0x7ef5bb=await this['getRevisionRootsAttributes'](_0x1541fc);this['_replaceEditorDataWithRevisionData'](_0x50519f,_0x7ef5bb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x91e251){this['_source']=_0x91e251;}async['update'](){const _0x3d1f03=await this['_source']['getLatestVersion']();if(_0x3d1f03>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d73b4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d1f03});_0x1d73b4['authors']=_0x1d73b4['authorsIds']['map'](_0x3b51fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b51fb)),this['currentRevision']['_update'](_0x1d73b4);}}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'](_0x3df910={},_0x4947d3=null){const _0xfba5e8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4947d3>this['currentRevision']['toVersion']&&(_0x4947d3=null),null===_0x4947d3&&(_0x4947d3=await this['_source']['getLatestVersion']());const _0x5803ac=this['_getFromVersion'](_0x4947d3),_0x3fa976=this['buildRevisionData']({'from':_0x5803ac,'to':_0x4947d3});if(this['currentRevision']['toVersion']<_0x4947d3){const _0xbbc8e2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4947d3,'to':_0x4947d3});_0xbbc8e2['authors']=[],_0xbbc8e2['authorsIds']=[],_0xbbc8e2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbbc8e2,!0x0),delete _0xbbc8e2['authors'],_0xfba5e8['push'](_0xbbc8e2);}_0x3df910['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3df910['name']=_0x3df910['name']||null,_0x3df910['id']=_0x3df910['id']||_0x22b130(),_0x3df910={..._0x3df910,..._0x3fa976};const _0x27e292=this['addRevisionData'](_0x3df910);_0xfba5e8['push'](_0x3df910);const _0x3cd62a=this['repository']['getIndex'](_0x27e292);if(0x0!==_0x3cd62a){const _0x482c98=this['repository']['getRevision'](_0x3cd62a-0x1);if(_0x482c98['fromVersion']!==_0x4947d3){const _0x5fc901=this['_revisionDataBuilder']['getData'](_0x4947d3,_0x482c98['toVersion']),_0x4046cc={'id':_0x482c98['id'],'diffData':_0x5fc901['diffData'],'authorsIds':_0x5fc901['authorsIds'],'authors':_0x5fc901['authorsIds']['map'](_0x103735=>this['editor']['plugins']['get']('Users')['getUser'](_0x103735)),'fromVersion':_0x4947d3};_0x482c98===this['currentRevision']&&(_0x4046cc['createdAt']=new Date(_0x3df910['createdAt']['getTime']()+0xa)),_0x482c98['_update'](_0x4046cc,!0x0),delete _0x4046cc['authors'],_0xfba5e8['push'](_0x4046cc);}}if(this['adapter']){for(const _0x5da8ba of _0xfba5e8)this['_bufferUpdate'](_0x5da8ba['id'],_0x5da8ba,!0x0);this['sendBufferedUpdates']();}return _0x27e292;}['addRevisionData'](_0x2288b9){const _0x3994e0=this['repository']['createRevision'](_0x2288b9);return this['adapter']&&_0x3994e0['on']('_update',(_0x43d21c,_0x278c52,_0x10d2ec)=>{_0x10d2ec||(this['_bufferUpdate'](_0x278c52['id'],_0x278c52,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3994e0,this['_findInsertionIndex'](_0x3994e0)),_0x3994e0;}async['getRevisionDocumentData'](_0x322db3){await this['_loadRevisionData'](_0x322db3);const _0x12a420={};for(const _0x146a55 in _0x322db3['diffData']){if(_0x322db3['diffData'][_0x146a55]['attachChange']&&!_0x322db3['diffData'][_0x146a55]['attachChange']['isAttached'])continue;const _0x375640=this['_removeRevisionMarkers'](JSON['parse'](_0x322db3['diffData'][_0x146a55]['insertions'])),_0x1b6bad=this['editor']['editing']['view']['document'],_0x2ea98a=new _0x836cbc(_0x1b6bad,_0x375640['map'](_0x2d1433=>C(_0x2d1433,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x12a420[_0x146a55]=this['editor']['data']['processor']['toData'](_0x2ea98a),this['editor']['data']['processor']['useFillerType']('default');}return _0x12a420;}async['getRevisionRootsAttributes'](_0x14939d){await this['_loadRevisionData'](_0x14939d);const _0x18cc4a={};for(const _0x28d7a2 in _0x14939d['diffData'])_0x14939d['diffData'][_0x28d7a2]['attachChange']&&!_0x14939d['diffData'][_0x28d7a2]['attachChange']['isAttached']||(_0x18cc4a[_0x28d7a2]=_0x14939d['diffData'][_0x28d7a2]['attributesAfter']||{});return _0x18cc4a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x23f2ab=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f130e=0x0;_0x4f130e<_0x23f2ab['length'];_0x4f130e++){const _0x340c4a=_0x23f2ab[_0x4f130e];let _0x24d544=!0x1;for(const _0x3c8a92 of Object['keys'](_0x340c4a))void 0x0===_0x340c4a[_0x3c8a92]?delete _0x340c4a[_0x3c8a92]:'id'!==_0x3c8a92&&(_0x24d544=!0x0);_0x24d544||(_0x23f2ab[_0x4f130e]=null);}if(_0x23f2ab=_0x23f2ab['filter'](_0x1f0467=>null!==_0x1f0467),!_0x23f2ab['length'])return;for(let _0x457f82=0x0;_0x457f82<_0x23f2ab['length'];_0x457f82++){const _0x34c554=_0x23f2ab[_0x457f82];void 0x0!==_0x34c554['fromVersion']&&void 0x0===_0x34c554['toVersion']&&(_0x34c554['toVersion']=this['repository']['getRevision'](_0x34c554['id'])['toVersion']),void 0x0!==_0x34c554['toVersion']&&void 0x0===_0x34c554['fromVersion']&&(_0x34c554['fromVersion']=this['repository']['getRevision'](_0x34c554['id'])['fromVersion']);}const _0x5428ae=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x23f2ab,_0x5428ae)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5b1378=>{if(_0x5b1378){for(const _0x363c24 of _0x5b1378)this['setRevisionData']({'id':_0x363c24['id'],'createdAt':_0x363c24['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x120d7d,_0x3574eb){let _0xfcb538=this['editor']['config']['get']('initialData'),_0x472ee4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xfcb538){_0xfcb538={};for(const _0x16a5ca of this['editor']['model']['document']['getRootNames']())_0xfcb538[_0x16a5ca]='';}if('string'==typeof _0xfcb538&&(_0xfcb538={'main':_0xfcb538}),void 0x0===_0x472ee4){_0x472ee4={};for(const _0x382d74 of this['editor']['model']['document']['getRootNames']())_0x472ee4[_0x382d74]={};}let _0x1b74e6=!0x1;const _0x26d544=Object['keys'](_0xfcb538),_0x49aa44=Object['keys'](_0x120d7d);for(const _0x59b736 of _0x26d544){if(_0xfcb538[_0x59b736]!==_0x120d7d[_0x59b736]&&''!==_0xfcb538[_0x59b736]['trim']()){_0x1b74e6=!0x0;break;}if(!_0x5b775d(_0x472ee4[_0x59b736],_0x3574eb[_0x59b736])&&Object['keys'](_0x472ee4[_0x59b736])['length']>0x0){_0x1b74e6=!0x0;break;}}_0x1b74e6||(_0x1b74e6=_0x49aa44['some'](_0x1702b7=>!this['editor']['model']['document']['getRoot'](_0x1702b7))),_0x1b74e6&&_0x1ad235('editor-initial-data-replaced-with-revision-data',{'editorData':_0xfcb538,'editorRootsAttributes':_0x472ee4,'revisionData':_0x120d7d,'revisionRootsAttributes':_0x3574eb}),this['editor']['config']['set']('initialData',_0x120d7d),this['editor']['config']['set']('rootsAttributes',_0x3574eb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x122e6a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x122e6a['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3a7b89){const _0x1fe15f=this['repository']['getRevisions']();_0x1fe15f['reverse']();let _0x42ada1=0x0;for(;_0x42ada1<_0x1fe15f['length'];){const _0x3a62d3=_0x1fe15f[_0x42ada1];if(_0x3a62d3===this['currentRevision']){_0x42ada1++;continue;}if(_0x3a62d3['id']===this['_initialRevisionId'])break;const _0x382f49=_0x3a7b89['toVersion']-_0x3a62d3['toVersion']||_0x3a7b89['fromVersion']-_0x3a62d3['fromVersion'];if(_0x382f49>0x0)break;if(_0x382f49<0x0)_0x42ada1++;else{if(!_0x3a7b89['creator']&&_0x3a62d3['creator'])break;if(_0x3a62d3['creator']||!_0x3a7b89['creator']){if(_0x3a7b89['createdAt']>_0x3a62d3['createdAt'])break;_0x42ada1++;}else _0x42ada1++;}}return _0x42ada1;}['setRevisionData'](_0x21cd1a){const _0x542307=this['repository']['getRevision'](_0x21cd1a['id']);if(_0x21cd1a['createdAt']&&(_0x21cd1a['createdAt']=new Date(_0x21cd1a['createdAt'])),_0x21cd1a['authorsIds']){const _0x4ac28d=this['editor']['plugins']['get']('Users');_0x21cd1a['authors']=_0x21cd1a['authorsIds']['map'](_0x30b26e=>_0x4ac28d['getUser'](_0x30b26e));}_0x542307['_update'](_0x21cd1a,!0x0);}['buildRevisionData']({revision:_0x927377=null,from:_0x1fe68f=null,to:_0x8c5073=null}){_0x1fe68f=null!==_0x1fe68f?_0x1fe68f:_0x927377['fromVersion'],_0x8c5073=null!==_0x8c5073?_0x8c5073:_0x927377['toVersion'];const _0x597652=this['_revisionDataBuilder']['getData'](_0x1fe68f,_0x8c5073),_0x5ed51a={'diffData':_0x597652['diffData'],'authorsIds':_0x597652['authorsIds'],'fromVersion':_0x1fe68f,'toVersion':_0x8c5073};if(!_0x927377||_0x8c5073!==_0x927377['toVersion']){const _0x191c1d=_0x8c5073-0x1,_0xd3d2c0=this['_source']['history']['getOperation'](_0x191c1d);_0x5ed51a['createdAt']=_0xd3d2c0&&_0xd3d2c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1fe68f===this['_loadedStateData']['fromVersion']){for(const _0x264bd0 of this['_loadedStateData']['authors'])_0x5ed51a['authorsIds']['includes'](_0x264bd0['id'])||_0x5ed51a['authorsIds']['push'](_0x264bd0['id']);}return _0x5ed51a;}['_loadRevisionData'](_0x4745c9){if(!_0x4745c9||_0x4745c9['diffData'])return Promise['resolve']();{const _0x7eff2c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7eff2c,'revisionId':_0x4745c9['id']})['then'](_0x43fba0=>{_0x4745c9['diffData']=_0x43fba0['diffData'];});}}['_bufferUpdate'](_0x4d7d21,_0x55aa58,_0x4b005f){if(this['_bufferedUpdates']['has'](_0x4d7d21)){const _0x64f346=this['_bufferedUpdates']['get'](_0x4d7d21);_0x55aa58=_0x4b005f?{..._0x64f346,..._0x55aa58}:{..._0x55aa58,..._0x64f346};}this['_bufferedUpdates']['set'](_0x4d7d21,_0x55aa58);}['_getFromVersion'](_0x39884d){const _0x1ebce3=this['repository']['getRevisions']();_0x1ebce3['reverse'](),_0x1ebce3['shift']();const _0x59c90c=_0x1ebce3['find'](_0xbe22ca=>_0xbe22ca['toVersion']<=_0x39884d)['toVersion'];return _0x59c90c<this['_startingVersion']?this['_startingVersion']:_0x59c90c;}['_createInitialRevision'](_0x1b250f){const _0x315382=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x315382)this['_initialRevisionId']=_0x315382['id'];else{const _0x16bf7c=!this['editor']['model']['document']['roots']['find'](_0xdeaac1=>this['editor']['model']['hasContent'](_0xdeaac1)),_0x2c79b7=this['editor']['plugins']['get']('Users')['me']['id'],_0x29bb53=m(this['editor']['locale'],_0x16bf7c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1b250f,'to':_0x1b250f,'id':this['_initialRevisionId'],'name':_0x29bb53,'creatorId':_0x2c79b7});}}['_createCurrentRevision'](_0x1b1af5){const _0x2e04e7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e04e7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b1af5,'to':_0x1b1af5,'id':_0x2e04e7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x55398d,from:_0x3a7829,to:_0x419fe4,creatorId:_0x151157,id:_0x697ea2}){const _0xb0daed=this['buildRevisionData']({'from':_0x3a7829,'to':_0x419fe4});_0xb0daed['name']=_0x55398d,_0xb0daed['creatorId']=_0x151157,_0xb0daed['id']=_0x697ea2;const _0x3ef9f4=this['addRevisionData'](_0xb0daed);return this['adapter']&&this['_bufferUpdate'](_0xb0daed['id'],_0xb0daed,!0x0),_0x3ef9f4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x56e24d){return(_0x56e24d=_0x56e24d['filter'](_0x7fde85=>!_0x7fde85['name']||'revision-start'!==_0x7fde85['name']&&'revision-end'!==_0x7fde85['name']))['forEach'](_0x5d3671=>{'string'!=typeof _0x5d3671&&(_0x5d3671['children']=this['_removeRevisionMarkers'](_0x5d3671['children']),_0x5d3671['attributes']=_0x5d3671['attributes']['filter'](_0x55be79=>!_0x55be79[0x0]['startsWith']('data-revision-')));}),_0x56e24d;}}function C(_0xa7a634,_0x2045bc){const _0x23e953=_0x2045bc['editing']['view']['document'];if('string'==typeof _0xa7a634)return new _0x263cf6(_0x23e953,_0xa7a634);{const _0x488dc3=_0xa7a634['children']['map'](_0x387ae7=>C(_0x387ae7,_0x2045bc));return new(P[_0xa7a634['type']]||_0x2b857d)(_0x23e953,_0xa7a634['name'],_0xa7a634['attributes'],_0x488dc3);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x482a3c){this['editor']=_0x482a3c,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'](_0x2598f5){this['source']=_0x2598f5;const _0x4dba30=new Map(),_0x3c05e4=new Map(),_0x430ad3=this['editor']['model']['document']['roots']['map'](_0x33e3a5=>_0x33e3a5['rootName']);for(const _0x1e53a8 of _0x430ad3){const _0x53afb0=this['editor']['model']['document']['getRoot'](_0x1e53a8),_0x34130f=T(_0x53afb0);_0x4dba30['set'](_0x1e53a8,_0x34130f),_0x3c05e4['set'](_0x1e53a8,Object['fromEntries'](_0x53afb0['getAttributes']()));}const _0x1cfcb0=Array['from'](this['editor']['model']['markers'])['map'](_0x11b4ce=>[_0x11b4ce['name'],_0x11b4ce['getRange']()]),_0x5cf57f=this['source']['version'];this['_saveMetaData'](_0x5cf57f,_0x4dba30,_0x1cfcb0,_0x3c05e4),this['_startingRevisionId']=this['_revisionId'];const _0x101e40=new Map(),_0x4c8640=new Map();for(const _0x2ba6db of _0x430ad3){const _0x95b473=F(_0x2ba6db);_0x101e40['set'](_0x2ba6db,_0x95b473),_0x4c8640['set'](_0x2ba6db,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x101e40,[],_0x4c8640);}['getData'](_0x2ee8c3,_0x5c15b7){if(this['_lastFrom']===_0x2ee8c3&&this['_lastTo']<=_0x5c15b7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5c15b7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2ee8c3)){const _0x5b8552=this['_getPreviousFrom'](_0x2ee8c3);this['_calculateMetaData'](_0x5b8552,_0x2ee8c3,!0x1);}this['_calculateMetaData'](_0x2ee8c3,_0x5c15b7,!0x0);}return this['_lastFrom']=_0x2ee8c3,this['_lastTo']=_0x5c15b7,this['_getState']();}['loadState'](_0x2b3bb4){this['_reset'](),this['_lastFrom']=_0x2b3bb4['fromVersion'],this['_lastTo']=_0x2b3bb4['toVersion'];for(const _0x20a5c9 in _0x2b3bb4['diffData']){const _0x49821e=_0x2b3bb4['diffData'][_0x20a5c9]['attachChange'],_0x7be4ef=_0x2fbfef(_0x2b3bb4['diffData'][_0x20a5c9]['attributesBefore'])||{},_0x4c428f=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x20a5c9]['deletions']);_0x4c428f['rootName']=_0x20a5c9,_0x4c428f['_isAttached']=!_0x49821e||!_0x49821e['isAttached'],_0x4c428f['isAttached']=()=>_0x4c428f['_isAttached'],this['_baseRoots']['set'](_0x20a5c9,_0x4c428f),this['_baseRootsAttributes']['set'](_0x20a5c9,_0x7be4ef),_0x49821e&&this['_touchedRoots']['set'](_0x20a5c9,_0x49821e);const _0x548ae4=this['_makeIdsRoot'](_0x4c428f);this['_baseIdsRoots']['set'](_0x20a5c9,_0x548ae4);for(const [_0x6e5402,_0x5b2ab6]of _0x4c428f['markers']){if(!_0x6e5402['startsWith']('revision:'))continue;const _0x142b82=_0x6e5402['split'](':')[0x2];for(const _0xacff47 of _0x5b2ab6['getWalker']({'singleCharacters':!0x0})){const _0x41f71a=this['_getVidAttributeName'](_0xacff47),_0x591c20='elementEnd'==_0xacff47['type']?_0xacff47['previousPosition']['path']['slice'](0x0,-0x1):_0xacff47['previousPosition']['path'],_0x31e01a=_0x548ae4['getNodeByPath'](_0x591c20)['getAttribute'](_0x41f71a);this['_touched']['set'](_0x31e01a,{'userId':_0x142b82});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3ddea9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2171a5=>!this['_touched']['has'](_0x2171a5));let _0x135c84=0x0;const _0xc22a50=new Map();for(const _0x48c40b in _0x2b3bb4['diffData']){const _0x160c59=_0x2b3bb4['diffData'][_0x48c40b]['attachChange'],_0x2b88a2=_0x2fbfef(_0x2b3bb4['diffData'][_0x48c40b]['attributesAfter'])||{},_0x12d559=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x48c40b]['insertions']);_0x12d559['rootName']=_0x48c40b,_0x12d559['_isAttached']=!_0x160c59||_0x160c59['isAttached'],_0x12d559['isAttached']=()=>_0x12d559['_isAttached'],this['_diffRoots']['set'](_0x48c40b,_0x12d559),this['_diffRootsAttributes']['set'](_0x48c40b,_0x2b88a2);const _0x1318f4=this['_makeIdsRoot'](_0x12d559,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48c40b,_0x1318f4),_0xc22a50['set'](_0x48c40b,_0x12d559['isAttached']()?_0x2b88a2:{});for(const [_0x535b4c,_0xd68cc0]of _0x12d559['markers']){if(!_0x535b4c['startsWith']('revision:'))continue;const _0x363d5f=_0x535b4c['split'](':')[0x2];for(const _0x449315 of _0xd68cc0['getWalker']({'singleCharacters':!0x0})){const _0x32365d=this['_getVidAttributeName'](_0x449315),_0x2f523a=this['_revisionId']++,_0x1bcf58='elementEnd'==_0x449315['type']?_0x449315['previousPosition']['path']['slice'](0x0,-0x1):_0x449315['previousPosition']['path'];_0x1318f4['getNodeByPath'](_0x1bcf58)['_setAttribute'](_0x32365d,_0x2f523a),this['_touched']['set'](_0x2f523a,{'userId':_0x363d5f});}}for(const _0x21cdf8 of this['editor']['model']['createRangeIn'](_0x12d559)['getWalker']({'singleCharacters':!0x0})){const _0xa2c9bc=this['_getVidAttributeName'](_0x21cdf8),_0x2ce8a0='elementEnd'==_0x21cdf8['type']?_0x21cdf8['previousPosition']['path']['slice'](0x0,-0x1):_0x21cdf8['previousPosition']['path'],_0x38e120=_0x1318f4['getNodeByPath'](_0x2ce8a0);_0x38e120['getAttribute'](_0xa2c9bc)>0x0||_0x38e120['_setAttribute'](_0xa2c9bc,_0x3ddea9[_0x135c84++]);}for(const [_0x4fd0a5,_0x212dfc]of _0x12d559['markers'])_0x4fd0a5['startsWith']('revision:')||this['_markers']['set'](_0x4fd0a5,_0x212dfc);}const _0x99a08e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x99a08e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x99a08e,0x1));const _0x1881a8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1881a8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1881a8,0x1));const _0x4370f2=Array['from'](this['_diffRoots'])['map'](([_0x576403,_0xe23d6e])=>[_0x576403,T(_0xe23d6e)]);this['_saveMetaData'](this['_lastTo'],_0x4370f2,this['_markers'],_0xc22a50);}['_makeModelFromViewString'](_0x1b4379){const _0x46011a=JSON['parse'](_0x1b4379),_0x38af12=this['editor']['editing']['view']['document'],_0x48b2f8=new _0x836cbc(_0x38af12,_0x46011a['map'](_0x2c816c=>C(_0x2c816c,this['editor'])));return this['editor']['data']['toModel'](_0x48b2f8);}['_saveMetaData'](_0x5e6303,_0x3f05fc,_0x376cea,_0x437b10){const _0x164b8f=new Map(_0x3f05fc),_0xc9ea2b=new Map(_0x2fbfef(_0x437b10)),_0x14576e=new Map();for(const [_0x577c68,_0x13137f]of _0x376cea)_0x14576e['set'](_0x577c68,{'start':_0x13137f['start']['clone'](),'end':_0x13137f['end']['clone'](),'rootName':_0x13137f['root']['rootName']});this['_savedMetaData']['set'](_0x5e6303,{'roots':_0x164b8f,'markers':_0x14576e,'rootsAttributes':_0xc9ea2b});}['_removeMetaData'](_0x5c943c){this['_savedMetaData']['delete'](_0x5c943c);}['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'](_0x5c1760,_0x4cf3cb=null){let _0x291de1=null;_0x5c1760['is']('documentFragment')||(_0x291de1=new ft(_0x5c1760['name'],{'vid_start':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));const _0x2afa7c=[];for(const _0x34fe0a of _0x5c1760['getChildren']())if(_0x34fe0a['is']('element')){_0x2afa7c['push'](this['_makeIdsRoot'](_0x34fe0a,_0x4cf3cb));const _0x349f2c=_0x2afa7c[_0x2afa7c['length']-0x1];null!==_0x4cf3cb&&(_0x4cf3cb=_0x349f2c['is']('element','$text')?_0x349f2c['getAttribute']('vid')+0x1:_0x349f2c['getAttribute']('vid_end')+0x1);}else{for(let _0x4144b4=0x0;_0x4144b4<_0x34fe0a['offsetSize'];_0x4144b4++)_0x2afa7c['push'](new ft('$text',{'vid':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));}if(_0x5c1760['is']('documentFragment')){const _0x10596c=F(_0x5c1760['rootName']);return _0x10596c['_insertChild'](0x0,_0x2afa7c),_0x10596c;}return _0x291de1['_setAttribute']('vid_end',null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++),_0x291de1['_insertChild'](0x0,_0x2afa7c),_0x291de1;}['_calculateMetaData'](_0x4ce466,_0x190fb1,_0x39e0dd){this['_reset']();const {roots:_0x2e4a5c,markers:_0x12c7d2,rootsAttributes:_0x89f474}=this['_savedMetaData']['get'](_0x4ce466);this['_baseRoots']=new Map(_0x2e4a5c),this['_baseRootsAttributes']=new Map(_0x2fbfef(_0x89f474));for(const [_0x167303,_0x476138]of this['_baseRoots'])if('$graveyard'!==_0x167303&&(this['_diffRoots']['set'](_0x167303,T(_0x476138)),this['_diffRootsAttributes']=new Map(_0x2fbfef(_0x89f474)),_0x39e0dd)){const _0x32099f=this['_revisionId'];this['_idsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138)),this['_baseIdsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138,_0x32099f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x39e0dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1be912,_0x446ce0]of _0x12c7d2){const _0x48de42=this['_baseRoots']['get'](_0x446ce0['rootName']),_0x53a8eb=this['_diffRoots']['get'](_0x446ce0['rootName']),_0x3d5818=new vt(this['_fixPosition'](_0x446ce0['start'],_0x48de42),this['_fixPosition'](_0x446ce0['end'],_0x48de42)),_0x16bef7=this['_fixRange'](_0x3d5818,_0x53a8eb);_0x48de42['markers']['set'](_0x1be912,_0x3d5818),this['_markers']['set'](_0x1be912,_0x16bef7);}this['_applyOperations'](_0x4ce466,_0x190fb1,_0x39e0dd);}['_applyOperations'](_0x4dd1ff,_0x4cb7cd,_0x486b8d){for(const _0x445ac8 of this['source']['getOperations'](_0x4dd1ff,_0x4cb7cd))this['_handleOperation'](_0x445ac8,_0x486b8d);for(const _0x1e7068 of this['_diffRoots']['values']())_0x1e7068['markers']['clear']();for(const [_0xa47bca,_0x288cc9]of this['_markers']){this['_diffRoots']['get'](_0x288cc9['root']['rootName'])['markers']['set'](_0xa47bca,_0x288cc9['clone']());}const _0x50ef09=new Map(),_0x35c761=new Map();for(const [_0x438481,_0x2abe59]of this['_diffRoots'])_0x50ef09['set'](_0x438481,T(_0x2abe59)),_0x35c761['set'](_0x438481,this['_diffRootsAttributes']['get'](_0x438481));this['_saveMetaData'](_0x4cb7cd,_0x50ef09,this['_markers'],_0x35c761);}['_getPreviousFrom'](_0x40f884){const _0x5aa647=Array['from'](this['_savedMetaData']['keys']());_0x5aa647['sort']((_0xada8c1,_0x1f9601)=>_0xada8c1-_0x1f9601),_0x5aa647['reverse']();for(const _0x19eee7 of _0x5aa647)if(_0x19eee7<_0x40f884)return _0x19eee7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x150c19,_0x2f5fb3){const _0x3a3845=Array['from'](_0x2f5fb3['markers'])['map'](([_0x1cbe0d,_0x422aae])=>[_0x1cbe0d,this['_fixRange'](_0x422aae,_0x150c19)]);_0x150c19['markers']=new Map(_0x3a3845);}['_transformMarkers'](_0x1eac37){for(const _0x474f4b of this['_markers']['values']()){const _0x4552e3=_0x474f4b['getTransformedByOperation'](_0x1eac37),_0x5df6a7=vt['_createFromRanges'](_0x4552e3);_0x474f4b['start']=_0x5df6a7['start'],_0x474f4b['end']=_0x5df6a7['end'];}}['_handleOperation'](_0x23c6ff,_0x45e335){if('addRoot'!=_0x23c6ff['type']&&'detachRoot'!=_0x23c6ff['type']){if('insert'==_0x23c6ff['type']){const _0x11d477=_0x23c6ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x11d477)||(this['_diffRoots']['set'](_0x11d477,F(_0x11d477,!0x0)),this['_diffRootsAttributes']['set'](_0x11d477,{}),_0x45e335&&this['_idsRoots']['set'](_0x11d477,F(_0x11d477,!0x0)));}else{if('addRootAttribute'==_0x23c6ff['type']||'removeRootAttribute'==_0x23c6ff['type']||'changeRootAttribute'==_0x23c6ff['type'])return void this['_handleRootAttributeOperation'](_0x23c6ff);'marker'==_0x23c6ff['type']&&this['_handleMarkerOperation'](_0x23c6ff);}if('marker'!==_0x23c6ff['type']){const _0xdffe60=this['_cloneOperation'](_0x23c6ff,this['_diffRoots']);_0xdffe60['_execute'](),this['_transformMarkers'](_0xdffe60);}if(_0x45e335)switch(_0x23c6ff['type']){case'insert':this['_handleInsertOperation'](_0x23c6ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x23c6ff);break;case'merge':this['_handleMergeOperation'](_0x23c6ff);break;case'split':this['_handleSplitOperation'](_0x23c6ff);}}else this['_handleRootOperation'](_0x23c6ff,_0x45e335);}['_cloneOperation'](_0x6e0768,_0x5d6a38){const _0xfb9be1=_0x6e0768['clone']();return _0xfb9be1['_authorId']=_0x6e0768['_authorId'],this['_fixOperation'](_0xfb9be1,_0x5d6a38),_0xfb9be1;}['_getBaseVids'](_0x3d48a6){return _0x3d48a6['map'](_0x2ad389=>{const _0x12852f=this['_getVidAttributeName'](_0x2ad389);return Number(_0x2ad389['item']['getAttribute'](_0x12852f));});}['_generateTape'](_0x403685,_0x3d726b){if(_0x403685['is']('element','$text'))_0x3d726b['push']({'item':_0x403685,'type':'text'});else{_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementStart'});for(const _0x167048 of _0x403685['getChildren']())this['_generateTape'](_0x167048,_0x3d726b);_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementEnd'});}return _0x3d726b;}['_getState'](){const _0x6056ee=new Map(this['_touched']),_0x3c14a8=new Map(_0x6056ee),_0x1d0c0c=new Map(),_0x4ac0b5={'insertions':{},'deletions':{}},_0x1d113e={'insertions':{},'deletions':{}},_0x39cc65=new Map(),_0x41266c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x41266c['delete']('$graveyard');for(const _0xcaf507 of _0x41266c){const _0x21b873=this['_diffRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),_0x581245=this['_baseRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1);_0x21b873['isAttached']()||_0x581245['isAttached']()?(_0x4ac0b5['insertions'][_0xcaf507]=T(_0x21b873),_0x4ac0b5['deletions'][_0xcaf507]=T(_0x581245),this['_copyMarkers'](_0x4ac0b5['deletions'][_0xcaf507],_0x581245),this['_copyMarkers'](_0x4ac0b5['insertions'][_0xcaf507],_0x21b873),_0x1d113e['insertions'][_0xcaf507]=this['_generateTape'](this['_idsRoots']['get'](_0xcaf507),[]),_0x1d113e['deletions'][_0xcaf507]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),[])):_0x41266c['delete'](_0xcaf507);}for(const _0x3af84e of _0x41266c){const _0x2190de=_0x1d113e['insertions'][_0x3af84e];for(const _0x473b2f of _0x2190de){const _0x52546d=this['_getVidAttributeName'](_0x473b2f),_0x4b467b=_0x473b2f['item']['getAttribute'](_0x52546d);_0x3c14a8['delete'](_0x4b467b),_0x4b467b>=this['_startingRevisionId']&&_0x1d0c0c['set'](_0x4b467b,_0x6056ee['get'](_0x4b467b));}}for(const _0x2f24a6 of _0x41266c){const _0x1581a3=_0x1d113e['insertions'][_0x2f24a6],_0x564a6b=this['_getBaseVids'](_0x1d113e['deletions'][_0x2f24a6]);let _0x402786=0x0;for(const _0x371c0c of _0x1581a3){const _0x553f16=this['_getVidAttributeName'](_0x371c0c),_0x1e6a83=_0x371c0c['item']['getAttribute'](_0x553f16);if(!_0x1d0c0c['has'](_0x1e6a83)&&!_0x39cc65['has'](_0x1e6a83)){if(_0x3c14a8['has'](_0x1e6a83))_0x402786++;else{if(_0x1e6a83!=_0x564a6b[_0x402786]){const _0xf2aff2=_0x6056ee['get'](_0x1e6a83)||_0x6056ee['get'](_0x564a6b[_0x402786]);for(;_0x1e6a83!=_0x564a6b[_0x402786];)_0x3c14a8['has'](_0x564a6b[_0x402786])||(_0x39cc65['set'](_0x564a6b[_0x402786],_0xf2aff2),_0x6056ee['set'](_0x564a6b[_0x402786],_0xf2aff2)),_0x402786++;}_0x402786++;}}}}for(const _0x1d2c82 of _0x41266c){const _0x1e106f=_0x1d113e['insertions'][_0x1d2c82];for(const _0x2ff6a4 of _0x1e106f){const _0x1d64a2=this['_getVidAttributeName'](_0x2ff6a4),_0x26cfd6=_0x2ff6a4['item']['getAttribute'](_0x1d64a2);if(_0x39cc65['has'](_0x26cfd6)){const _0x4490d7=_0x39cc65['get'](_0x26cfd6);_0x3c14a8['has'](_0x26cfd6)||_0x3c14a8['set'](_0x26cfd6,{..._0x4490d7}),_0x1d0c0c['set'](_0x26cfd6,{..._0x4490d7});}}}for(const _0x5d0d46 of _0x3c14a8['keys']())_0x5d0d46>=this['_startingRevisionId']&&_0x3c14a8['delete'](_0x5d0d46);const _0x1378be=new Map();for(const _0x1844f2 of _0x41266c){let _0x12c4c3=_0x1d113e['insertions'][_0x1844f2];for(const _0x4b4288 of _0x12c4c3)if(_0x4b4288['item']['is']('element','tableCell')){const _0x358d0c=this['_getVidAttributeName'](_0x4b4288),_0x445478=_0x4b4288['item']['getAttribute'](_0x358d0c);if(_0x1d0c0c['has'](_0x445478)){const _0x106755=_0x4b4288['item']['parent']['parent']['getAttribute']('vid_start'),_0x550d6b=_0x1378be['get'](_0x106755)||new Set();_0x550d6b['add'](_0x1d0c0c['get'](_0x445478)['userId']),_0x1378be['set'](_0x106755,_0x550d6b);}}_0x12c4c3=_0x1d113e['deletions'][_0x1844f2];for(const _0x1469da of _0x12c4c3)if(_0x1469da['item']['is']('element','tableCell')){const _0x15c490=this['_getVidAttributeName'](_0x1469da),_0x3c0fd0=_0x1469da['item']['getAttribute'](_0x15c490);if(_0x3c14a8['has'](_0x3c0fd0)){const _0x39ae24=_0x1469da['item']['parent']['parent']['getAttribute']('vid_start'),_0xa7df61=_0x1378be['get'](_0x39ae24)||new Set();_0xa7df61['add'](_0x3c14a8['get'](_0x3c0fd0)['userId']),_0x1378be['set'](_0x39ae24,_0xa7df61);}}for(const _0x498521 of _0x1378be['keys']())(_0x1d0c0c['has'](_0x498521)||_0x3c14a8['has'](_0x498521))&&_0x1378be['delete'](_0x498521);}for(const _0x325ba5 of _0x41266c){const _0xdc15be=_0x1d113e['insertions'][_0x325ba5];let _0x27d8be=null,_0x30244d=null;for(const _0x5ce60d of _0xdc15be){const _0x3ea642=this['_getVidAttributeName'](_0x5ce60d),_0x2054d3=_0x5ce60d['item']['getAttribute'](_0x3ea642),_0x507846=_0x1378be['get'](_0x2054d3);_0x507846&&'elementStart'==_0x5ce60d['type']&&(_0x27d8be=Array['from'](_0x507846)[0x0],_0x30244d=_0x5ce60d['item']['getAttribute']('vid_end')),_0x27d8be&&(_0x3c14a8['set'](_0x2054d3,{'userId':_0x27d8be}),_0x1d0c0c['set'](_0x2054d3,{'userId':_0x27d8be})),_0x2054d3==_0x30244d&&(_0x27d8be=null,_0x30244d=null);}}const _0x9e3d07={},_0x56475f=new Set();for(const _0x4211b7 of _0x41266c){const _0x285d8b=_0x4ac0b5['deletions'][_0x4211b7],_0x39dc71=_0x4ac0b5['insertions'][_0x4211b7];for(const {userId:_0x58a620}of this['_touchedMarkers']['values']())null!==_0x58a620&&_0x56475f['add'](_0x58a620);for(const {userId:_0xedeb3f}of this['_touchedRoots']['values']())null!==_0xedeb3f&&_0x56475f['add'](_0xedeb3f);this['_markChanges'](_0x39dc71,_0x1d113e['insertions'][_0x4211b7],_0x1d0c0c,'insertion',_0x56475f),this['_markChanges'](_0x285d8b,_0x1d113e['deletions'][_0x4211b7],_0x3c14a8,'deletion',_0x56475f),_0x9e3d07[_0x4211b7]={'insertions':this['_prepareViewToSave'](_0x39dc71),'deletions':this['_prepareViewToSave'](_0x285d8b),'attachChange':this['_touchedRoots']['get'](_0x4211b7)||null,'attributesBefore':_0x2fbfef(this['_baseRootsAttributes']['get'](_0x4211b7))||{},'attributesAfter':_0x2fbfef(this['_diffRootsAttributes']['get'](_0x4211b7))};}return{'diffData':_0x9e3d07,'authorsIds':Array['from'](_0x56475f)};}['_processRootBeforeSave'](_0x423e52){for(const [,_0x45c3b3]of _0x423e52['markers']){const _0x2a01d5=_0x45c3b3['start']['getAncestors']()['filter'](_0x46bc95=>'tableCell'==_0x46bc95['name']);for(const _0x295b4e of _0x2a01d5)0x1==_0x295b4e['childCount']&&_0x295b4e['getChild'](0x0)['is']('element','paragraph')&&_0x295b4e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4da1ea){this['_processRootBeforeSave'](_0x4da1ea);const _0x63170b=this['editor']['data']['toView'](_0x4da1ea,{}),_0x367618=Array['from'](_0x63170b['getChildren']())['map'](_0x290f72=>this['_getViewJson'](_0x290f72));return JSON['stringify'](_0x367618);}['_getViewJson'](_0x5cddff){if(_0x5cddff['is']('$text'))return _0x5cddff['data'];{const _0x4da74a=_0x5cddff;return{'type':Object['keys'](P)['find'](_0x3acdfb=>_0x5cddff instanceof P[_0x3acdfb]),'name':_0x4da74a['name'],'attributes':Array['from'](_0x4da74a['getAttributes']()),'children':Array['from'](_0x4da74a['getChildren']())['map'](_0x405dde=>this['_getViewJson'](_0x405dde))};}}['_markChanges'](_0x248a0e,_0x548572,_0x488ca0,_0x1a85e9,_0x2b2992){let _0xa22b48=null,_0x16080f=null,_0x37e94d=0x0;const _0x5e7a8c=this['editor']['model'];for(let _0x155bf7=0x0;_0x155bf7<_0x548572['length'];_0x155bf7++){const _0x4375b3=this['_getVidAttributeName'](_0x548572[_0x155bf7]),_0x8885e=_0x548572[_0x155bf7]['item']['getAttribute'](_0x4375b3),_0x29dd69=_0x488ca0['get'](_0x8885e),_0x421140=_0x155bf7==_0x548572['length']-0x1;(!_0xa22b48&&_0x29dd69&&(_0xa22b48=_0x29dd69,_0x16080f=_0x548572[_0x155bf7]),_0xa22b48&&(!_0x29dd69||_0x29dd69['userId']!=_0xa22b48['userId']))&&(_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),B(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c)),_0xa22b48=_0x29dd69||null,_0x16080f=_0x29dd69?_0x548572[_0x155bf7]:null),_0xa22b48&&_0x421140&&_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),J(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c));}function _0x31aabe(_0x287ca0,_0x23d4bc,_0x559641){const _0x1de61=_0xa22b48['userId'],_0x36640d='revision:'+_0x1a85e9+':'+_0x1de61+':'+_0x37e94d++,_0x1d81e6=_0x5e7a8c['createRange'](_0x23d4bc,_0x559641);_0x248a0e['markers']['set'](_0x36640d,_0x1d81e6),null!==_0x1de61&&_0x2b2992['add'](_0x1de61);}}['_getVidAttributeName'](_0x5a7f4c){switch(_0x5a7f4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5dfde6,_0x2efb26){_0x5dfde6['baseVersion']=null;for(const _0x3e35ec in _0x5dfde6){const _0xd32d55=_0x5dfde6[_0x3e35ec];if(_0xd32d55 instanceof gt){const _0x5ad35d=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixPosition'](_0xd32d55,_0x5ad35d);}if(_0xd32d55 instanceof vt){const _0x41a1f6=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixRange'](_0xd32d55,_0x41a1f6);}'root'===_0x3e35ec&&(_0x5dfde6['root']=_0x2efb26['get'](_0x5dfde6['root']['rootName']));}}['_fixRange'](_0x146f4b,_0x18a8ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x146f4b['start'],_0x18a8ac),this['_fixPosition'](_0x146f4b['end'],_0x18a8ac));}['_fixPosition'](_0x28c624,_0x1417db){return this['editor']['model']['createPositionFromPath'](_0x1417db,_0x28c624['path'],_0x28c624['stickiness']);}['_handleInsertOperation'](_0x10f0df){const _0x1eb274=this['_idsRoots']['get'](_0x10f0df['position']['root']['rootName']),_0x404a14=this['_fixPosition'](_0x10f0df['position'],_0x1eb274),_0x3609a1=null===_0x10f0df['_authorId']?null:_0x10f0df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x115210=_0x404a14['parent'],_0x3db07f=this['_revisionId'],_0x1ee527=[];for(const _0x5c57cf of _0x10f0df['nodes'])if(_0x5c57cf['is']('element'))_0x1ee527['push'](this['_makeIdsRoot'](_0x5c57cf));else{for(let _0x4e2724=0x0;_0x4e2724<_0x5c57cf['offsetSize'];_0x4e2724++)_0x1ee527['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x313a4a=this['_revisionId'];for(let _0x46ca31=_0x3db07f;_0x46ca31<_0x313a4a;_0x46ca31++)this['_touched']['set'](_0x46ca31,{'userId':_0x3609a1});_0x115210['_insertChild'](_0x404a14['offset'],_0x1ee527);}['_handleMoveOperation'](_0x295989){(_0x295989=this['_cloneOperation'](_0x295989,this['_idsRoots']))['_execute']();const _0x3a98ee=null===_0x295989['_authorId']?null:_0x295989['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38bf48=_0x295989['getMovedRangeStart'](),_0x3b8a8c=_0x38bf48['parent'],_0x10037b=_0x38bf48['offset'];!function _0xd089(_0xf6c9bf,_0x4a4d7f,_0x433963,_0x4d695f){for(let _0x25b286=_0x433963;_0x25b286<_0x4d695f;_0x25b286++){const _0x1b2d29=_0x4a4d7f['getChild'](_0x25b286);_0x1b2d29['is']('element','$text')?_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid'),{'userId':_0x3a98ee}):(_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_start'),{'userId':_0x3a98ee}),_0xd089(_0xf6c9bf,_0x1b2d29,0x0,_0x1b2d29['childCount']),_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_end'),{'userId':_0x3a98ee}));}}(this['_touched'],_0x3b8a8c,_0x10037b,_0x10037b+_0x295989['howMany']);}['_handleMergeOperation'](_0x31118c){const _0x299418=null===(_0x31118c=this['_cloneOperation'](_0x31118c,this['_idsRoots']))['_authorId']?null:_0x31118c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf85761=_0x31118c['targetPosition']['parent'],_0x2cbbcd=_0x31118c['sourcePosition']['parent'],_0x2f11d0=_0xf85761['getAttribute']('vid_end'),_0x3935c9=_0x2cbbcd['getAttribute']('vid_start');_0xf85761['_setAttribute']('vid_end',_0x2cbbcd['getAttribute']('vid_end')),_0x2cbbcd['_setAttribute']('vid_end',_0x2f11d0),this['_touched']['set'](_0x3935c9,{'userId':_0x299418}),this['_touched']['set'](_0x2f11d0,{'userId':_0x299418}),_0x31118c['_execute']();}['_handleSplitOperation'](_0xcaf35){const _0x13b778=null===(_0xcaf35=this['_cloneOperation'](_0xcaf35,this['_idsRoots']))['_authorId']?null:_0xcaf35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a9ecc=_0xcaf35['graveyardPosition'],_0x536b45=_0xcaf35['splitPosition']['parent'];_0xcaf35['_execute']();const _0x44d845=_0x536b45['getAttribute']('vid_end'),_0x4999f6=_0xcaf35['insertionPosition']['nodeAfter'];if(_0x1a9ecc){const _0xe8b65e=_0x4999f6['getAttribute']('vid_end'),_0x175033=_0x536b45['getAttribute']('vid_end');_0x536b45['_setAttribute']('vid_end',_0xe8b65e),_0x4999f6['_setAttribute']('vid_end',_0x175033),this['_touched']['set'](_0x536b45['getAttribute']('vid_end'),{'userId':_0x13b778}),this['_touched']['set'](_0x4999f6['getAttribute']('vid_start'),{'userId':_0x13b778});}else{const _0x37f1f4=this['_revisionId']++,_0x658f6f=this['_revisionId']++;_0x536b45['_setAttribute']('vid_end',_0x37f1f4),_0x4999f6['_setAttribute']('vid_start',_0x658f6f),_0x4999f6['_setAttribute']('vid_end',_0x44d845),this['_touched']['set'](_0x37f1f4,{'userId':_0x13b778}),this['_touched']['set'](_0x658f6f,{'userId':_0x13b778});}}['_handleMarkerOperation'](_0x39e5b4){if(!_0x39e5b4['affectsData'])return;const _0x490e8d=(_0x39e5b4=this['_cloneOperation'](_0x39e5b4,this['_diffRoots']))['oldRange']?_0x39e5b4['oldRange']['root']:null,_0x3c679d=_0x39e5b4['newRange']?_0x39e5b4['newRange']['root']:null;_0x490e8d&&this['_markers']['delete'](_0x39e5b4['name']),_0x3c679d&&this['_markers']['set'](_0x39e5b4['name'],_0x39e5b4['newRange']['clone']());const _0x3ee29d=null===_0x39e5b4['_authorId']?null:_0x39e5b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a130b=_0x39e5b4['name'];if(!this['_touchedMarkers']['has'](_0x5a130b))return void this['_touchedMarkers']['set'](_0x5a130b,{'range':_0x39e5b4['oldRange'],'userId':_0x3ee29d});const _0x316b3b=this['_touchedMarkers']['get'](_0x5a130b),_0x4fc3be=_0x316b3b['range'],_0x4ee15b=_0x39e5b4['newRange'];null==_0x4fc3be&&null==_0x4ee15b||_0x4fc3be&&_0x4ee15b&&_0x4fc3be['isEqual'](_0x4ee15b)?this['_touchedMarkers']['delete'](_0x39e5b4['name']):_0x316b3b['userId']=_0x3ee29d;}['_handleRootOperation'](_0x1b5750,_0x5e727f){this['_diffRoots']['has'](_0x1b5750['rootName'])?this['_diffRoots']['get'](_0x1b5750['rootName'])['_isAttached']=_0x1b5750['isAdd']:(this['_diffRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b5750['rootName'],{}),_0x5e727f&&this['_idsRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)));const _0x1c5170=null===_0x1b5750['_authorId']?null:_0x1b5750['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55b7db=this['_touchedRoots']['get'](_0x1b5750['rootName']);_0x55b7db&&_0x55b7db['userId']===_0x1c5170?this['_touchedRoots']['delete'](_0x1b5750['rootName']):this['_touchedRoots']['set'](_0x1b5750['rootName'],{'userId':_0x1c5170,'isAttached':_0x1b5750['isAdd']});}['_handleRootAttributeOperation'](_0x4d4b75){const _0x46fd25=this['_diffRootsAttributes']['get'](_0x4d4b75['root']['rootName']);null===_0x4d4b75['newValue']?delete _0x46fd25[_0x4d4b75['key']]:_0x46fd25[_0x4d4b75['key']]=_0x4d4b75['newValue'];}}function T(_0x34e099){const _0x4bcfc4=F(_0x34e099['rootName'],_0x34e099['isAttached']());for(const _0x113f79 of _0x34e099['getChildren']()){const _0x5f17a1=_0x113f79['_clone'](!0x0);_0x4bcfc4['_appendChild'](_0x5f17a1);}return _0x4bcfc4;}function F(_0x453aee,_0x12f892=!0x0){const _0x54906f=new mt();return _0x54906f['rootName']=_0x453aee,_0x54906f['_isAttached']=_0x12f892,_0x54906f['isAttached']=()=>_0x54906f['_isAttached'],_0x54906f;}function B(_0x196a63,_0x137802,_0xfdd2ab){const _0x28b51d='elementEnd'==_0x196a63['type']?_0xfdd2ab['createPositionAt'](_0x196a63['item'],'end'):_0xfdd2ab['createPositionBefore'](_0x196a63['item']);return _0xfdd2ab['createPositionFromPath'](_0x137802,_0x28b51d['path'],_0x28b51d['stickiness']);}function J(_0x4fb179,_0x3406ad,_0x15b00f){const _0x3d3d49='elementStart'==_0x4fb179['type']?_0x15b00f['createPositionAt'](_0x4fb179['item'],0x0):_0x15b00f['createPositionAfter'](_0x4fb179['item']);return _0x15b00f['createPositionFromPath'](_0x3406ad,_0x3d3d49['path'],_0x3d3d49['stickiness']);}class ns extends _0x21a70e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3fa6a6,_0xe67989){super(_0x3fa6a6),this['focusTracker']=new _0x5d4331(),this['keystrokes']=new _0x197446(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe67989),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'](),_0x50a964({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14129c=_0x1517be=>_0x1517be['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14129c),this['keystrokes']['set']('arrowleft',_0x14129c),this['keystrokes']['set']('arrowup',_0x14129c),this['keystrokes']['set']('arrowdown',_0x14129c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xf24ce6){this['revisionNameInputView']['fieldView']['element']['value']=_0xf24ce6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x45031a){const _0x1bc680=new nt(this['locale'],_0x2f6061),_0x444b50=_0x1bc680['fieldView'];_0x444b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35012b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x45031a&&(_0x35012b+='\x20('+m(this['locale'],'optional')+')'),(_0x1bc680['label']=_0x35012b,_0x444b50['on']('input',()=>{this['revisionNameInputValue']=_0x444b50['element']['value']['trim']();}),_0x1bc680);}}class u extends _0x495045{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2ebe4d=this['editor'],_0x275798=_0x2ebe4d['plugins']['get']('RevisionTracker');_0x2ebe4d['ui']['componentFactory']['add']('revisionHistory',_0x2aa24c=>{const _0x286c7a=_0x4cd44e(_0x2aa24c),_0x4d95c9=_0x286c7a['panelView']['children'],_0x4c7e6a=new te(_0x2aa24c),_0x359c3d=new _0x5586df(_0x2aa24c),_0x1cc2e6=new _0x5f241f(_0x2aa24c),_0x2f4bd9=new _0x5586df(_0x2aa24c),_0x4e8804=new _0x5f241f(_0x2aa24c);return _0x286c7a['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x153f94,_0x2367e7,_0x1e49ee)=>_0x153f94&&_0x2367e7&&!_0x1e49ee),_0x286c7a['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x2aa24c,'Revision\x20history'),'tooltip':!0x0}),_0x1cc2e6['set']({'label':m(_0x2aa24c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1cc2e6['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x403e97,_0x2d831e,_0x38702b)=>_0x403e97&&_0x2d831e&&!_0x38702b),_0x1cc2e6['on']('execute',()=>this['_showDialog']()),_0x4e8804['set']({'label':m(_0x2aa24c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4e8804['bind']('isEnabled')['to'](_0x275798,'isReady',_0x2ebe4d,'isReadOnly',(_0x23b5c5,_0x9e03f7)=>_0x23b5c5&&!_0x9e03f7),_0x4e8804['on']('execute',()=>{_0x2ebe4d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x286c7a['isOpen']=!0x1,_0x2ebe4d['editing']['view']['focus']();}),_0x359c3d['children']['add'](_0x1cc2e6),_0x2f4bd9['children']['add'](_0x4e8804),_0x4c7e6a['role']='menu',_0x4c7e6a['items']['addMany']([_0x359c3d,_0x2f4bd9]),_0x4d95c9['add'](_0x4c7e6a),_0x286c7a;}),_0x2ebe4d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1499e1=this['editor'],_0x53e7d3=_0x1499e1['locale'],_0x4a2e17=new _0x57eb30(_0x53e7d3),_0x2db22d=new _0x2a4332(_0x53e7d3);_0x4a2e17['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x53e7d3,'Revision\x20history')});const _0x1d4633=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x1ac95a=new _0x33098b(_0x53e7d3);_0x1ac95a['set']({'label':m(_0x53e7d3,'Save\x20current\x20revision')}),_0x1ac95a['delegate']('execute')['to'](_0x4a2e17),_0x1ac95a['on']('execute',()=>{this['_showDialog']();}),_0x1d4633['children']['add'](_0x1ac95a),_0x2db22d['items']['add'](_0x1d4633);const _0x5447a3=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x467f72=new _0x33098b(_0x53e7d3);return _0x467f72['set']({'label':m(_0x53e7d3,'Open\x20revision\x20history')}),_0x467f72['delegate']('execute')['to'](_0x4a2e17),_0x467f72['on']('execute',()=>{_0x1499e1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5447a3['children']['add'](_0x467f72),_0x2db22d['items']['add'](_0x5447a3),_0x4a2e17['panelView']['children']['add'](_0x2db22d),_0x4a2e17;}['_showDialog'](){const _0x48064f=this['editor'],_0x36e158=_0x48064f['locale'],_0x3b4b0d=_0x48064f['plugins']['get']('Dialog'),_0x337e1a=_0x48064f['plugins']['get']('RevisionTracker');function _0x512e68(_0x33a149){_0x48064f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x33a149['revisionName']?_0x33a149['revisionNameInputView']['errorText']=m(_0x36e158,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x48064f['plugins']['get'](l)['saveRevision']({'name':_0x33a149['revisionName']}),_0x3b4b0d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x512e68(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3b4b0d['show']({'id':'revisionSave','title':m(_0x36e158,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x48064f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3b4b0d['hide']()},{'label':m(_0x48064f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x340342){_0x340342['bind']('isEnabled')['to'](_0x337e1a,'isReady',_0x337e1a,'isEnabled',_0x48064f,'isReadOnly',(_0x1fe563,_0x23e33c,_0x3c9e24)=>_0x1fe563&&_0x23e33c&&!_0x3c9e24);},'onExecute':()=>_0x512e68(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x30b739=this['editor'],_0x56158d=_0x30b739['locale'];this['_saveRevisionFormView']=new ns(_0x56158d,_0x30b739['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x21a70e{['changeId'];['_model'];constructor(_0x325ddb,_0x3160eb){super(_0x325ddb),this['_model']=_0x3160eb,this['changeId']=_0x3160eb['id'];const _0x3915f3=this['bindTemplate'],_0x44f23a=m(_0x325ddb,_0x3160eb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3160eb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3160eb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3915f3['to']('type',_0x540ca5=>'ck-revision-change__'+_0x540ca5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x44f23a}]},{'text':'\x20'+_0x3160eb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4c7a34(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4f465e){super(),this['id']=_0x4f465e['id']||_0x22b130(),this['author']=_0x4f465e['author'],this['type']=_0x4f465e['type'],this['data']=_0x4f465e['data']||{},this['rootName']=_0x4f465e['rootName'],this['set']('createdAt',_0x4f465e['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(_0x46612e,_0x23e292){this['newRevisionId']=_0x46612e,this['oldRevisionId']=_0x23e292,this['changes']=new _0xb59600();}['_setChanges'](_0x4efb66){for(const _0x46176c of _0x4efb66)this['changes']['add'](_0x46176c);}}const Y={'c':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class d extends _0x495045{['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[_0x48e3ae,_0x575c14,j];}constructor(_0x2e4153){super(_0x2e4153),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',(_0x141e86,_0x4c512d,_0x1b92d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x263267=>{for(const _0x423194 of this['editor']['editing']['view']['document']['roots'])_0x1b92d9?_0x263267['removeClass']('ck-editor__editable__overlay',_0x423194):_0x263267['addClass']('ck-editor__editable__overlay',_0x423194);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3365dc=>null!==_0x3365dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2191fe,_0x2eaa93,_0x3095cd)=>_0x2191fe&&_0x3095cd?_0x2eaa93['changes']['getIndex'](_0x3095cd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x22c348,_0x21133e)=>_0x22c348?_0x21133e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x575c14);}['init'](){const _0x4bfe99=this['editor'],_0x4fcca0=new yt(_0x4bfe99,{'direction':'backward'}),_0x2bd62a=new yt(_0x4bfe99,{'direction':'forward'});(_0x4bfe99['commands']['add']('showPreviousChange',_0x4fcca0),_0x4bfe99['commands']['add']('showNextChange',_0x2bd62a),_0x4bfe99['commands']['add']('restoreRevision',new _t(_0x4bfe99)),this['on']('change:numberOfChanges',()=>{_0x4fcca0['refresh'](),_0x2bd62a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4bfe99['enableReadOnlyMode']('revision-viewer'),_0x4bfe99['plugins']['has']('WidgetToolbarRepository'))&&_0x4bfe99['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x26ddba){await this['loadRevisionData'](_0x26ddba);const _0x5bf163={};for(const _0x4e6dff in _0x26ddba['diffData']){if(_0x26ddba['diffData'][_0x4e6dff]['attachChange']&&!_0x26ddba['diffData'][_0x4e6dff]['attachChange']['isAttached'])continue;const _0x142f6e=this['_removeRevisionMarkers'](JSON['parse'](_0x26ddba['diffData'][_0x4e6dff]['insertions'])),_0x3ad14a=this['editor']['editing']['view']['document'],_0x28be0d=new _0x836cbc(_0x3ad14a,_0x142f6e['map'](_0x3834de=>this['_getViewObj'](_0x3834de)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5bf163[_0x4e6dff]=this['editor']['data']['processor']['toData'](_0x28be0d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5bf163;}async['getRevisionRootsAttributes'](_0x21806e){await this['loadRevisionData'](_0x21806e);const _0x255a40={};for(const _0x310f17 in _0x21806e['diffData'])_0x21806e['diffData'][_0x310f17]['attachChange']&&!_0x21806e['diffData'][_0x310f17]['attachChange']['isAttached']||(_0x255a40[_0x310f17]=_0x21806e['diffData'][_0x310f17]['attributesAfter']||{});return _0x255a40;}['_removeRevisionMarkers'](_0x558fe6){return(_0x558fe6=_0x558fe6['filter'](_0x329372=>!_0x329372['name']||'revision-start'!==_0x329372['name']&&'revision-end'!==_0x329372['name']))['forEach'](_0x206b93=>{'string'!=typeof _0x206b93&&(_0x206b93['children']=this['_removeRevisionMarkers'](_0x206b93['children']),_0x206b93['attributes']=_0x206b93['attributes']['filter'](_0x51ee76=>!_0x51ee76[0x0]['startsWith']('data-revision-')));}),_0x558fe6;}async['compare'](_0x1a451d,_0x1594cb,_0x5de747=!0x1){if(!this['isEnabled'])return;const _0x4e8191=this['diff'],_0x1d8e4f=this['repository'],_0x4e173e='string'==typeof _0x1a451d?_0x1d8e4f['getRevision'](_0x1a451d):_0x1a451d,_0xb24dae='string'==typeof _0x1594cb?_0x1d8e4f['getRevision'](_0x1594cb):_0x1594cb,_0x4ea143=_0x4e173e['id'],_0x1ae81d=_0xb24dae?_0xb24dae['id']:null;if(!_0x5de747&&this['diff']&&this['diff']['newRevisionId']===_0x4ea143&&this['diff']['oldRevisionId']===_0x1ae81d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4ea143,_0x1ae81d);const _0x542aa4=this['_getRevisionsRange'](_0x4e173e,_0xb24dae,!0x0)['map'](_0x1ae6d0=>this['loadRevisionData'](_0x1ae6d0));return _0x542aa4['push'](new Promise(_0x1e7e7a=>{setTimeout(_0x1e7e7a,0x14);})),Promise['all'](_0x542aa4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29c481=this['_getDiff'](_0x4ea143,_0x1ae81d);for(const _0x42dd8a of _0x29c481['changes'])this['_changeIdToChange']['set'](_0x42dd8a['id'],_0x42dd8a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44bd3a=>{for(const _0x58521b of this['editor']['model']['document']['getRootNames']())_0x44bd3a['detachRoot'](_0x58521b);for(const _0x882c40 of Object['keys'](_0x29c481['model'])){const _0x4c1c32=_0x44bd3a['addRoot'](_0x882c40);for(const _0x3c3a71 of Object['keys'](_0x29c481['attributes'][_0x882c40]))_0x44bd3a['setAttribute'](_0x3c3a71,_0x29c481['attributes'][_0x882c40][_0x3c3a71],_0x4c1c32);_0x44bd3a['insert'](_0x29c481['model'][_0x882c40],_0x4c1c32,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29c481['changes'])),this['isReady']=!0x0;})['catch'](_0x48dfa3=>{console['error'](_0x48dfa3),this['_cleanUp'](),_0x4e8191&&(this['diff']=_0x4e8191),this['isReady']=!0x0;});}['addRevisionData'](_0x47c567,_0xa60ff5){const _0x5f0a15=this['repository']['createRevision'](_0x47c567);return _0x5f0a15['on']('_update',(_0x45c4ad,_0x326159,_0x467c10)=>_0xa60ff5(_0x326159,_0x467c10,_0x5f0a15)),this['repository']['addRevision'](_0x5f0a15),_0x5f0a15;}['loadRevisionData'](_0x55bb76){if(!_0x55bb76||_0x55bb76['diffData'])return Promise['resolve']();{const _0x1e3c06=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1e3c06,'revisionId':_0x55bb76['id']})['then'](_0x3adcd1=>{_0x55bb76['_update']({'diffData':_0x3adcd1['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},_0x8d2b17=>{for(const _0x581be0 of this['editor']['model']['document']['getRootNames']())_0x8d2b17['detachRoot'](_0x581be0);});}['_sortAndFilterDiffChanges'](_0x4d5cc5){const _0x3f824b=[],_0x164da9=new Map();for(const _0x2f63b6 of this['editor']['model']['document']['getRootNames']()){const _0x2a72e7=this['editor']['editing']['view']['getDomRoot'](_0x2f63b6);if(!_0x2a72e7)continue;const _0x268902=_0x2a72e7['getClientRects']()['item'](0x0);_0x268902&&(_0x3f824b['push'](_0x2f63b6),_0x164da9['set'](_0x2f63b6,_0x268902));}return _0x3f824b['sort']((_0x492aa4,_0x47a74b)=>{const _0x422c8f=_0x164da9['get'](_0x492aa4),_0x5ca1b6=_0x164da9['get'](_0x47a74b);return _0x422c8f['y']-_0x5ca1b6['y']||_0x422c8f['x']-_0x5ca1b6['x'];}),(_0x4d5cc5=_0x4d5cc5['filter'](_0x405fc5=>_0x3f824b['includes'](_0x405fc5['rootName'])))['sort']((_0x3466ba,_0x40fb51)=>_0x3f824b['indexOf'](_0x3466ba['rootName'])-_0x3f824b['indexOf'](_0x40fb51['rootName'])),_0x4d5cc5;}['_makeTape'](_0x3841a8){const _0xb8db66=Array['from'](_0x3841a8['markers'])['filter'](([_0x46839f,_0x17650b])=>_0x46839f['startsWith']('revision:')&&!_0x17650b['isCollapsed']),_0x362e4e=Array['from'](this['editor']['model']['createRangeIn'](_0x3841a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb8db66['length'])for(const _0x35ae8b of _0x362e4e){const [_0x32a2a0,_0x4df771]=_0xb8db66[0x0],[,_0x448c8f,_0x38e0e3]=_0x32a2a0['split'](':');if(_0x4df771['end']['isEqual'](_0x35ae8b['nextPosition'])&&_0xb8db66['shift'](),(_0x35ae8b['previousPosition']['isEqual'](_0x4df771['start'])||_0x35ae8b['previousPosition']['isAfter'](_0x4df771['start']))&&('insertion'==_0x448c8f?_0x35ae8b['isAdded']={'userId':_0x38e0e3}:'deletion'==_0x448c8f&&(_0x35ae8b['isRemoved']={'userId':_0x38e0e3})),0x0==_0xb8db66['length'])break;}return _0x362e4e;}['_refreshStartEndIndex'](_0x88464b){const _0x27de33=new Map();for(let _0x451c45=0x0;_0x451c45<_0x88464b['length'];_0x451c45++)'text'===_0x88464b[_0x451c45]['type']?(_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45,_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45):('elementStart'===_0x88464b[_0x451c45]['type']?_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45:'elementEnd'===_0x88464b[_0x451c45]['type']&&(_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45),_0x27de33['set'](_0x88464b[_0x451c45]['id'],_0x451c45));for(const _0x183572 of _0x27de33['values']())'elementStart'===_0x88464b[_0x183572]['type']?_0x88464b[_0x183572]['item']['endIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']):'elementEnd'===_0x88464b[_0x183572]['type']&&(_0x88464b[_0x183572]['item']['startIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']));}['_processTape'](_0x2e5b6d){for(let _0x16e1e9=0x0;_0x16e1e9<_0x2e5b6d['length'];_0x16e1e9++){if('elementStart'===_0x2e5b6d[_0x16e1e9]['type'])_0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9;else{if('elementEnd'===_0x2e5b6d[_0x16e1e9]['type']){_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9;const _0x229851=_0x2e5b6d[_0x16e1e9]['item']['startIndex'];_0x2e5b6d[_0x229851]['pairId']=_0x2e5b6d[_0x16e1e9]['id'],_0x2e5b6d[_0x16e1e9]['pairId']=_0x2e5b6d[_0x229851]['id'];}else _0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['pairId']=null;}_0x2e5b6d[_0x16e1e9]['markersStart']||(_0x2e5b6d[_0x16e1e9]['markersStart']=[],_0x2e5b6d[_0x16e1e9]['markersEnd']=[]);}}['_markInsertions'](_0x15626d,_0x1fd692){const _0x4d5ee3=_0x15626d['filter'](_0x2d6fb5=>!_0x2d6fb5['isAdded']);for(let _0x488efe=0x0;_0x488efe<_0x1fd692['length'];_0x488efe++)_0x1fd692[_0x488efe]['isAdded']&&(_0x4d5ee3[_0x488efe]['isAdded']=_0x1fd692[_0x488efe]['isAdded']);}['_makeModelFromViewString'](_0x3b1e9b){const _0x2462cb=JSON['parse'](_0x3b1e9b),_0x349f00=this['editor']['editing']['view']['document'],_0x3f40ce=new _0x836cbc(_0x349f00,_0x2462cb['map'](_0x452e01=>this['_getViewObj'](_0x452e01)));return this['editor']['data']['toModel'](_0x3f40ce);}['_getViewObj'](_0x57af62){const _0x142d1d=this['editor']['editing']['view']['document'];if('string'==typeof _0x57af62)return new _0x263cf6(_0x142d1d,_0x57af62);{const _0x542d9e=_0x57af62['children']['map'](_0xcdf013=>this['_getViewObj'](_0xcdf013));return new(Y[_0x57af62['type']]||_0x2b857d)(_0x142d1d,_0x57af62['name'],_0x57af62['attributes'],_0x542d9e);}}['_getDiff'](_0x54c5d3,_0x2ab68c=null){const _0x4381b3=this['repository']['getRevision'](_0x54c5d3),_0x5236a6=_0x2ab68c?this['repository']['getRevision'](_0x2ab68c):null,_0x2076e3=this['_getRevisionsRange'](_0x4381b3,_0x5236a6),_0x325067=_0x2076e3[_0x2076e3['length']-0x1],_0xd4b0ce=new Map(),_0xadc606={'model':{},'attributes':{},'changes':[]},_0x52bc2b=new Set(),_0x3ce31c=new Map();for(let _0x4b6e10=_0x2076e3['length']-0x1;_0x4b6e10>=0x0;_0x4b6e10--){const _0x27b6f9=_0x2076e3[_0x4b6e10];for(const _0x211129 of Object['keys'](_0x27b6f9['diffData']))if(_0x27b6f9['diffData'][_0x211129]['attachChange']){const _0x527bb9=_0x27b6f9['diffData'][_0x211129]['attachChange'];_0x527bb9['isAttached']?(_0x52bc2b['add'](_0x211129),_0x3ce31c['has'](_0x211129)&&_0x3ce31c['get'](_0x211129)['userId']==_0x527bb9['userId']?_0x3ce31c['delete'](_0x211129):_0x3ce31c['set'](_0x211129,_0x527bb9)):_0x3ce31c['has'](_0x211129)?(_0x52bc2b['delete'](_0x211129),_0x3ce31c['delete'](_0x211129)):(_0x52bc2b['add'](_0x211129),_0x3ce31c['set'](_0x211129,_0x527bb9));}else _0x52bc2b['add'](_0x211129);}for(const _0x25dc4c of _0x52bc2b){const _0x39e346=_0x3ce31c['has'](_0x25dc4c)&&!_0x3ce31c['get'](_0x25dc4c)['isAttached'];let _0x2dd39f=_0x39e346?_0x2076e3['length']-0x1:0x0;const _0x482a4e=_0x39e346?-0x1:0x1;for(;_0x2076e3[_0x2dd39f];){const _0x31546d=_0x2076e3[_0x2dd39f];if(_0x31546d['diffData'][_0x25dc4c]){const _0x46af50=_0x39e346?_0x31546d['diffData'][_0x25dc4c]['attributesBefore']:_0x31546d['diffData'][_0x25dc4c]['attributesAfter'];_0xadc606['attributes'][_0x25dc4c]=_0x46af50?_0x2fbfef(_0x46af50):{};break;}_0x2dd39f+=_0x482a4e;}}for(const _0x580011 of _0x2076e3){_0x580011['model']={};for(const _0x8da65a of _0x580011['authors'])_0xd4b0ce['set'](_0x8da65a['id'],_0x8da65a);for(const _0x50e548 of _0x52bc2b){const _0x14a02a=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['insertions']:'[]',_0x22dab7=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['deletions']:'[]';_0x580011['model'][_0x50e548]={'insertions':this['_makeModelFromViewString'](_0x14a02a),'deletions':this['_makeModelFromViewString'](_0x22dab7)};}}for(const _0x148fff of _0x52bc2b){let _0x5525c1=null,_0xf166ef=0x0;const _0x1774eb=new Map(Array['from'](_0x4381b3['model'][_0x148fff]['insertions']['markers'])['filter'](([_0x2099ca])=>!_0x2099ca['startsWith']('revision:')));let _0x2831bf=0x0;for(const _0x1030b6 of _0x2076e3){const _0x5c97d7=this['_makeTape'](_0x1030b6['model'][_0x148fff]['insertions']);_0x1030b6==_0x4381b3?(_0x5525c1=_0x5c97d7,_0xf166ef=_0x5525c1['length'],_0x5525c1['forEach'](_0x2ac0c3=>{_0x2ac0c3['id']=_0x2831bf++;}),this['_processTape'](_0x5525c1)):this['_markInsertions'](_0x5525c1,_0x5c97d7);const _0x42b706=_0x5525c1['filter'](_0x27157b=>!_0x27157b['isAdded'])['map'](_0x40f2a3=>_0x40f2a3['id']);let _0xab0ee3=0x0;const _0x26fbb8=this['_makeTape'](_0x1030b6['model'][_0x148fff]['deletions']);_0x26fbb8['forEach'](_0x3e5147=>{_0x3e5147['isRemoved']?_0x3e5147['id']=_0xf166ef++:_0x3e5147['id']=_0x42b706[_0xab0ee3++];}),this['_processTape'](_0x26fbb8),this['_setDistance'](_0x5525c1,'isAdded'),this['_setDistance'](_0x26fbb8,'isRemoved'),_0x1030b6==_0x4381b3&&this['_markMarkers'](_0x5525c1,_0x1774eb),_0x5525c1=this['_joinTapes'](_0x5525c1,_0x26fbb8),this['_refreshStartEndIndex'](_0x5525c1),this['_setDistance'](_0x5525c1,'isRemoved');}_0x5525c1=_0x5525c1['filter'](_0x55d2f7=>!(_0x55d2f7['isAdded']&&_0x55d2f7['isRemoved']));const _0x181b9e=new Map(_0x325067['model'][_0x148fff]['deletions']['markers']),_0x158827=new Set(_0x1774eb['keys']());for(const _0x57966b of _0x181b9e['keys']())_0x158827['delete'](_0x57966b);this['_markSuggestions'](_0x5525c1,_0x158827),this['_fixObsoleteTags'](_0x5525c1),_0x5525c1=this['_removeMissingPairs'](_0x5525c1),_0x5525c1=this['_markMismatchedRemovedTags'](_0x5525c1),_0x5525c1=this['_removeUnsupportedChanges'](_0x5525c1);const {root:_0xa6a75a,changes:_0x2f2ff4}=this['_makeModelFromTape'](_0x5525c1,_0xd4b0ce,_0x148fff);_0xadc606['model'][_0x148fff]=_0xa6a75a;const _0x2b1113=_0x3ce31c['get'](_0x148fff);if(_0x2b1113){const _0x40cd3e=_0xd4b0ce['get'](_0x2b1113['userId']),_0x241b12=new r({'author':_0x40cd3e,'type':_0x2b1113['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x148fff});_0x2f2ff4['unshift'](_0x241b12),_0xadc606['attributes'][_0x148fff]['revisionHistoryAttachChange']=_0x241b12['id'];}_0xadc606['changes']=_0xadc606['changes']['concat'](_0x2f2ff4);}return _0xadc606;}['_markMarkers'](_0x202969,_0x5b4988){for(let _0x25862e=0x0;_0x25862e<_0x202969['length'];_0x25862e++)for(const [_0xb34b4e,_0x27b6f7]of _0x5b4988)_0x27b6f7['start']['isEqual'](_0x202969[_0x25862e]['previousPosition'])&&_0x202969[_0x25862e]['markersStart']['push'](_0xb34b4e),_0x27b6f7['end']['isEqual'](_0x202969[_0x25862e]['nextPosition'])&&_0x202969[_0x25862e]['markersEnd']['push'](_0xb34b4e);}['_joinTapes'](_0xafe2ee,_0x10b76d){let _0x265b97=[],_0x56ce7a=0x0,_0x11ea73=0x0;for(;_0x56ce7a<_0xafe2ee['length']||_0x11ea73<_0x10b76d['length'];){const _0x2d76e0=_0xafe2ee[_0x56ce7a]||{},_0x5425be=_0x10b76d[_0x11ea73]||{};if(_0x2d76e0['id']==_0x5425be['id'])_0x56ce7a++,_0x11ea73++,_0x265b97['push'](_0x2d76e0);else{if(_0x5425be['isRemoved']&&_0x2d76e0['isAdded']){const {commonTape:_0x3b3d89,iEnd:_0x3286cf,jEnd:_0x23b75d}=this['_threeWayMerge'](_0xafe2ee,_0x56ce7a,_0x10b76d,_0x11ea73);_0x265b97=_0x265b97['concat'](_0x3b3d89),_0x56ce7a=_0x3286cf,_0x11ea73=_0x23b75d;}else _0x5425be['isRemoved']?(_0x11ea73++,_0x265b97['push'](_0x5425be)):(_0x56ce7a++,_0x265b97['push'](_0x2d76e0));}}return _0x265b97;}['_markSuggestions'](_0x41c53a,_0x356dbc){const _0x17b502=[];for(let _0x4d102d=0x0;_0x4d102d<_0x41c53a['length'];_0x4d102d++){for(let _0x181da4=0x0;_0x181da4<_0x41c53a[_0x4d102d]['markersStart']['length'];_0x181da4++){const _0x47d170=_0x41c53a[_0x4d102d]['markersStart'][_0x181da4];if(!_0x356dbc['has'](_0x47d170))continue;const {group:_0x573256,type:_0x4aed3f,authorId:_0x5127a4}=_0xaae500(_0x47d170);'revision-suggestion'!=_0x573256||'insertion'!=_0x4aed3f&&'deletion'!=_0x4aed3f||(_0x17b502['unshift']({'type':_0x4aed3f,'name':_0x47d170,'userId':_0x5127a4}),_0x41c53a[_0x4d102d]['markersStart']['splice'](_0x181da4,0x1),_0x181da4--);}_0x49b76c(_0x41c53a[_0x4d102d]);for(let _0x14b1b2=0x0;_0x14b1b2<_0x41c53a[_0x4d102d]['markersEnd']['length'];_0x14b1b2++){const _0x48ad4b=_0x41c53a[_0x4d102d]['markersEnd'][_0x14b1b2];if(!_0x356dbc['has'](_0x48ad4b))continue;const {group:_0x4ccd0f,type:_0x1f93dc}=_0xaae500(_0x48ad4b);if('revision-suggestion'!=_0x4ccd0f||'insertion'!=_0x1f93dc&&'deletion'!=_0x1f93dc)continue;_0x41c53a[_0x4d102d]['markersEnd']['splice'](_0x14b1b2,0x1),_0x14b1b2--;const _0x3345bf=_0x17b502['findIndex'](_0x55b391=>_0x55b391['name']==_0x48ad4b);_0x3345bf>-0x1&&_0x17b502['splice'](_0x3345bf,0x1);}}function _0xaae500(_0x26c14e){const _0x4707c6=_0x26c14e['split'](':');return{'group':_0x4707c6[0x0],'type':_0x4707c6[0x1],'subType':_0x4707c6['length']>=0x5?_0x4707c6[0x2]:null,'id':_0x4707c6['length']<0x5?_0x4707c6[0x2]:_0x4707c6[0x3],'authorId':_0x4707c6['length']<0x5?_0x4707c6[0x3]:_0x4707c6[0x4],'markerCount':0x6==_0x4707c6['length']?_0x4707c6[0x5]:null};}function _0x49b76c(_0xe23a5a){for(let _0x563e8a=0x0;_0x563e8a<_0x17b502['length'];_0x563e8a++){if(_0xe23a5a['isAdded']&&'insertion'==_0x17b502[_0x563e8a]['type'])return _0xe23a5a['isAddSuggestion']=_0x17b502[_0x563e8a],void delete _0xe23a5a['isAdded'];if(!_0xe23a5a['isAdded']&&!_0xe23a5a['isRemoved']&&'deletion'==_0x17b502[_0x563e8a]['type'])return void(_0xe23a5a['isRemoveSuggestion']=_0x17b502[_0x563e8a]);}}}['_setDistance'](_0x3789e2,_0x169925){let _0x1a23b9=0x0,_0x55260c=!0x1;const _0x35c6fa=new Map();for(const _0x5c3ec9 of _0x3789e2)_0x5c3ec9[_0x169925]?_0x55260c&&(_0x1a23b9++,_0x55260c=!0x1):(_0x1a23b9++,_0x55260c=!0x0),_0x35c6fa['set'](_0x5c3ec9['id'],_0x1a23b9);for(let _0x4f4808=0x0;_0x4f4808<_0x3789e2['length'];_0x4f4808++){if('isRemoved'==_0x169925&&_0x3789e2[_0x4f4808]['isAdded']||'isAdded'==_0x169925&&_0x3789e2[_0x4f4808]['isRemoved'])continue;if('text'==_0x3789e2[_0x4f4808]['type']){_0x3789e2[_0x4f4808]['distance']=0x0;continue;}const _0x16f18b=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['pairId']),_0x9ee178=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['id']);_0x3789e2[_0x4f4808]['distance']=_0x16f18b-_0x9ee178;}}['_getRevisionsRange'](_0x20e1e5,_0x1da669,_0x426043=!0x1){const _0x40c808=[];let _0x5c2471=this['repository']['getIndex'](_0x20e1e5),_0x29e8af=this['repository']['getIndex'](_0x1da669);for(-0x1==_0x29e8af&&(_0x29e8af=this['repository']['_revisions']['length'],_0x426043=!0x1);_0x5c2471<_0x29e8af;)_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x5c2471++;return _0x426043&&_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x40c808;}['_threeWayMerge'](_0x423e26,_0x12408a,_0x5dedf0,_0x15749c){const _0x18dde7=this['editor']['model']['schema'];let _0x15a8db=_0x12408a;for(;_0x423e26[_0x15a8db]&&_0x423e26[_0x15a8db]['isAdded'];)_0x15a8db++;let _0x2d7e8b=_0x15749c;for(;_0x5dedf0[_0x2d7e8b]&&_0x5dedf0[_0x2d7e8b]['isRemoved'];)_0x2d7e8b++;_0x4e98d4(_0x423e26,_0x12408a,_0x15a8db),_0x4e98d4(_0x5dedf0,_0x15749c,_0x2d7e8b);const _0x53c710=_0x5dedf0['slice'](_0x15749c,_0x2d7e8b)['concat'](_0x423e26['slice'](_0x12408a,_0x15a8db));return _0x53c710['sort']((_0x2db2b3,_0x39eb2d)=>_0x2db2b3['side']!=_0x39eb2d['side']?_0x2db2b3['side']-_0x39eb2d['side']:_0x2db2b3['level']!=_0x39eb2d['level']?_0x2db2b3['level']-_0x39eb2d['level']:_0x2db2b3['distance']!=_0x39eb2d['distance']?_0x39eb2d['distance']-_0x2db2b3['distance']:!!_0x2db2b3['isAdded']!=!!_0x39eb2d['isAdded']?-0x1==_0x2db2b3['side']||0x0==_0x2db2b3['side']?_0x2db2b3['isAdded']?-0x1:0x1:_0x2db2b3['isAdded']?0x1:-0x1:_0x2db2b3['index']-_0x39eb2d['index']),{'commonTape':_0x53c710,'iEnd':_0x15a8db,'jEnd':_0x2d7e8b};function _0x4e98d4(_0x40face,_0x23ffb5,_0xf9b5a1){let _0x2c10fe=-0x1,_0x1d13a1=Number['POSITIVE_INFINITY'],_0x39a5fd=!0x0;for(let _0x3ed44f=_0x23ffb5;_0x3ed44f<_0xf9b5a1;_0x3ed44f++)if(_0x18dde7['isInline'](_0x40face[_0x3ed44f]['item'])||(_0x39a5fd=!0x1),_0x40face[_0x3ed44f]['item']['startIndex']<_0x23ffb5&&(_0x2c10fe=_0x3ed44f),_0x40face[_0x3ed44f]['item']['endIndex']>=_0xf9b5a1){_0x1d13a1=_0x3ed44f;break;}_0x39a5fd&&(_0x2c10fe=_0xf9b5a1-0x1);for(let _0x22f11c=_0x23ffb5;_0x22f11c<_0xf9b5a1;_0x22f11c++)_0x40face[_0x22f11c]['side']=_0x22f11c<=_0x2c10fe?-0x1:_0x22f11c<_0x1d13a1?0x0:0x1,_0x40face[_0x22f11c]['index']=_0x22f11c;let _0x1f3fc3=0x0;for(let _0x36bb67=_0x23ffb5;_0x36bb67<=_0x2c10fe;_0x36bb67++)0x0==_0x40face[_0x36bb67]['distance']?_0x40face[_0x36bb67]['level']=_0x1f3fc3:(_0x1f3fc3++,_0x40face[_0x36bb67]['level']=_0x1f3fc3,_0x1f3fc3++);for(let _0x3044d9=_0x23ffb5;_0x3044d9<_0xf9b5a1;_0x3044d9++)0x0==_0x40face[_0x3044d9]['side']&&(_0x40face[_0x3044d9]['level']=_0x1f3fc3);_0x1f3fc3=0x0;for(let _0xf1875a=_0xf9b5a1-0x1;_0xf1875a>=_0x1d13a1;_0xf1875a--)0x0==_0x40face[_0xf1875a]['distance']?_0x40face[_0xf1875a]['level']=_0x1f3fc3:(_0x1f3fc3--,_0x40face[_0xf1875a]['level']=_0x1f3fc3,_0x1f3fc3--);}}['_fixObsoleteTags'](_0x48d347){const _0x1c39b6=new Map(),_0x5bbdfa=this['editor']['model']['schema'];for(let _0x4b4f79=0x1;_0x4b4f79<_0x48d347['length'];_0x4b4f79++){let _0x56d4f3,_0x3e7426,_0x312e30;const _0x11fd90=_0x48d347[_0x4b4f79],_0x3e0af5=_0x48d347[_0x4b4f79-0x1];if('text'==_0x11fd90['type'])continue;if(_0x11fd90['type']!=_0x3e0af5['type'])continue;if(!_0x5bbdfa['isBlock'](_0x3e0af5['item'])||_0x5bbdfa['isLimit'](_0x3e0af5['item']))continue;if(!_0x5bbdfa['isBlock'](_0x11fd90['item'])||_0x5bbdfa['isLimit'](_0x11fd90['item']))continue;if((_0x48d347[_0x4b4f79]['isAdded']||_0x48d347[_0x4b4f79]['isAddSuggestion'])&&_0x48d347[_0x4b4f79-0x1]['isRemoved'])_0x56d4f3=_0x48d347[_0x4b4f79],_0x3e7426=_0x48d347[_0x4b4f79-0x1],_0x312e30=_0x4b4f79-0x1;else{if(!_0x48d347[_0x4b4f79]['isRemoved']||!_0x48d347[_0x4b4f79-0x1]['isAdded']&&!_0x48d347[_0x4b4f79-0x1]['isAddSuggestion'])continue;_0x56d4f3=_0x48d347[_0x4b4f79-0x1],_0x3e7426=_0x48d347[_0x4b4f79],_0x312e30=_0x4b4f79;}const _0x2355ce=_0x56d4f3['level']==_0x3e7426['level'],_0x454673=Math['abs'](_0x56d4f3['level'])<Math['abs'](_0x3e7426['level'])&&0x0==_0x3e7426['distance'];(_0x2355ce||_0x454673)&&(_0x1c39b6['set'](_0x3e7426['id'],_0x56d4f3['id']),_0x48d347['splice'](_0x312e30,0x1),_0x4b4f79--,_0x56d4f3['isAdded']=!0x1);}for(let _0x133fed=0x0;_0x133fed<_0x48d347['length'];_0x133fed++)_0x1c39b6['has'](_0x48d347[_0x133fed]['pairId'])&&(_0x48d347[_0x133fed]['pairId']=_0x1c39b6['get'](_0x48d347[_0x133fed]['pairId']));}['_removeMissingPairs'](_0x5cf2aa){const _0x5bd8b6=new Set(_0x5cf2aa['map'](_0x21b4da=>_0x21b4da['id']));for(let _0x43413b=0x0;_0x43413b<_0x5cf2aa['length'];_0x43413b++)_0x5bd8b6['has'](_0x5cf2aa[_0x43413b]['pairId'])||0x0==_0x5cf2aa[_0x43413b]['distance']||(_0x5cf2aa[_0x43413b]['isIncorrect']=!0x0);return _0x5cf2aa['filter'](_0x18fd2b=>!_0x18fd2b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x589d24){const _0x4d288d=new Set();for(let _0x159df7=0x0;_0x159df7<_0x589d24['length'];_0x159df7++){if(_0x4d288d['has'](_0x589d24[_0x159df7]['id'])&&_0x589d24[_0x159df7]['isRemoved']&&(_0x589d24[_0x159df7]['isIncorrect']=!0x0),_0x589d24[_0x159df7]['isIncorrect'])continue;if(0x0==_0x589d24[_0x159df7]['distance'])continue;if('elementStart'!=_0x589d24[_0x159df7]['type'])continue;if(null==_0x589d24[_0x159df7]['pairId'])continue;let _0x16fc44=_0x159df7+0x1,_0x4d5b14=0x0;for(;_0x589d24[_0x16fc44]['id']!=_0x589d24[_0x159df7]['pairId'];)'elementStart'==_0x589d24[_0x16fc44]['type']?_0x4d5b14++:'elementEnd'==_0x589d24[_0x16fc44]['type']&&_0x4d5b14--,_0x16fc44++;if(0x0!=_0x4d5b14){if(_0x589d24[_0x159df7]['isRemoved'])_0x589d24[_0x159df7]['isIncorrect']=!0x0;else{for(;_0x16fc44!=_0x159df7;)_0x589d24[_0x16fc44]['isRemoved']&&0x0!=_0x589d24[_0x16fc44]['distance']&&(_0x589d24[_0x16fc44]['isIncorrect']=!0x0,_0x4d288d['add'](_0x589d24[_0x16fc44]['pairId'])),_0x16fc44--;}}}return _0x589d24['filter'](_0x5e7232=>!_0x5e7232['isIncorrect']);}['_removeUnsupportedChanges'](_0xac6bcd){const _0x251528=this['editor']['model']['schema'];for(let _0x5f25b2=0x0;_0x5f25b2<_0xac6bcd['length'];_0x5f25b2++){if(!(_0xac6bcd[_0x5f25b2]['isAdded']||_0xac6bcd[_0x5f25b2]['isAddSuggestion']||_0xac6bcd[_0x5f25b2]['isRemoved']||_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']))continue;if(0x0==_0xac6bcd[_0x5f25b2]['distance'])continue;const _0x3902d3=_0xac6bcd[_0x5f25b2]['item'];_0x251528['isBlock'](_0x3902d3)||_0x251528['isLimit'](_0x3902d3)||(_0xac6bcd[_0x5f25b2]['isAdded']&&delete _0xac6bcd[_0x5f25b2]['isAdded'],_0xac6bcd[_0x5f25b2]['isAddSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isAddSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isRemoveSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoved']&&(_0xac6bcd[_0x5f25b2]['isIncorrect']=!0x0));}return _0xac6bcd['filter'](_0xdd69c8=>!_0xdd69c8['isIncorrect']);}['_makeModelFromTape'](_0x141513,_0x4ffd6d,_0x31dfba){const _0x4c15ff=new mt(),_0x420415=[],_0x3c4994=new Map(),_0x2b1912=this['editor']['model'],_0x173ba6=_0x2b1912['schema'],_0x8ee595=[_0x4c15ff],_0x3d0288={},_0x3c9a5d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x59f8a5=null;const _0x446aaa=[0x0];for(let _0x3e6d1d=0x0;_0x3e6d1d<_0x141513['length'];_0x3e6d1d++)if('elementStart'===_0x141513[_0x3e6d1d]['type']){_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);const _0x4eed28=new ft(_0x141513[_0x3e6d1d]['item']['name'],_0x141513[_0x3e6d1d]['item']['getAttributes']());_0x8ee595[0x0]['_appendChild'](_0x4eed28),_0x446aaa['push'](0x0),_0x8ee595['unshift'](_0x4eed28),_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);}else'elementEnd'===_0x141513[_0x3e6d1d]['type']?(_0x8ee595['shift'](),_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x446aaa['pop'](),_0x446aaa[_0x446aaa['length']-0x1]++,_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa)):(_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x59f8a5?_0x59f8a5['_data']+=_0x141513[_0x3e6d1d]['item']['data']:_0x59f8a5=new wt(_0x141513[_0x3e6d1d]['item']['data'],_0x141513[_0x3e6d1d]['item']['getAttributes']()),_0x141513[_0x3e6d1d+0x1]&&'text'===_0x141513[_0x3e6d1d+0x1]['type']&&_0x560f96(_0x59f8a5,_0x141513[_0x3e6d1d+0x1]['item'])||(_0x8ee595[0x0]['_appendChild'](_0x59f8a5),_0x59f8a5=null),_0x446aaa[_0x446aaa['length']-0x1]+=_0x141513[_0x3e6d1d]['item']['offsetSize'],_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa));for(let _0x4d4803=0x0;_0x4d4803<_0x141513['length'];_0x4d4803++){const _0x217228=_0x141513[_0x4d4803]['previousPosition'],_0xb21da1=_0x141513[_0x4d4803]['nextPosition'];for(const _0x1c9b3c of _0x141513[_0x4d4803]['markersStart'])_0x3c4994['set'](_0x1c9b3c,{'start':_0x217228,'end':null});_0x4a31f3('isRemoveSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAddSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isRemoved',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAdded',_0x4d4803,_0x217228,_0xb21da1);for(const _0x26e8cf of _0x141513[_0x4d4803]['markersEnd']){_0x3c4994['get'](_0x26e8cf)['end']=_0xb21da1;}}for(const [_0x233481,_0x2584c8]of _0x3c4994){const _0x1b2dcf=this['editor']['model']['createRange'](_0x2584c8['start'],_0x2584c8['end']);_0x4c15ff['markers']['set'](_0x233481,_0x1b2dcf);}return _0x420415['sort']((_0x54743a,_0x567ca3)=>{const _0x33d046=_0x4c15ff['markers']['get']('revision:'+_0x54743a['id']),_0xbafe5e=_0x4c15ff['markers']['get']('revision:'+_0x567ca3['id']);return _0x33d046['start']['isBefore'](_0xbafe5e['start'])?-0x1:_0x33d046['start']['isAfter'](_0xbafe5e['start'])?0x1:_0x33d046['end']['isBefore'](_0xbafe5e['end'])?-0x1:_0x33d046['end']['isAfter'](_0xbafe5e['end'])?0x1:'add'===_0x54743a['type']?-0x1:0x1;}),{'root':_0x4c15ff,'changes':_0x420415};function _0x4a31f3(_0x5943ff,_0x380d60,_0x43efeb,_0x2d1b46){const _0x401b94=!!_0x141513[_0x380d60][_0x5943ff],_0x52aff8=_0x401b94?_0x141513[_0x380d60][_0x5943ff]['userId']:null,_0x6e2c58=_0x380d60===_0x141513['length']-0x1,_0x28a32b=_0x3c9a5d[_0x5943ff][0x0],_0xe7c66=_0x173ba6['isObject'](_0x141513[_0x380d60]['item']);!_0x3d0288[_0x5943ff]&&_0x401b94?_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}:_0x3d0288[_0x5943ff]&&!_0x401b94?(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null):_0x3d0288[_0x5943ff]&&_0x401b94&&_0x3d0288[_0x5943ff]['userId']!==_0x52aff8&&(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x28a32b&&_0x28a32b['userId']===_0x3d0288[_0x5943ff]['userId']||_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}),_0x3d0288[_0x5943ff]&&_0xe7c66&&('elementStart'!==_0x141513[_0x380d60]['type']||_0x28a32b&&_0x28a32b['userId']===_0x52aff8||_0x3c9a5d[_0x5943ff]['unshift']({'userId':_0x52aff8,'object':_0x141513[_0x380d60]['item'],'change':_0x3d0288[_0x5943ff]}),'elementEnd'===_0x141513[_0x380d60]['type']&&_0x28a32b&&_0x28a32b['object']===_0x141513[_0x380d60]['item']&&(_0x3c9a5d[_0x5943ff]['shift'](),_0x3d0288[_0x5943ff]=_0x28a32b['change'])),_0x3d0288[_0x5943ff]&&_0x6e2c58&&(_0x3d0288[_0x5943ff]['end']=_0x2d1b46,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null);}function _0x509482({start:_0x413925,end:_0x4bc9f3,tapeItem:_0x3ce389,userId:_0x1e6ea2,type:_0x4a344e}){const _0x3c87e2=_0x3ce389['item'],_0x56de05=_0x2b1912['schema']['isBlock'](_0x3c87e2)&&!_0x2b1912['schema']['isLimit'](_0x3c87e2),_0x494a83=_0x413925['nodeAfter']==_0x4bc9f3['parent']&&_0x4bc9f3['isAtStart'];if(_0x56de05&&_0x494a83)return;const _0x31b006=_0x2b1912['createRange'](_0x413925,_0x4bc9f3),_0x362455=_0x4ffd6d['get'](_0x1e6ea2),_0x57f287=new r({'author':_0x362455,'type':'isAdded'==_0x4a344e||'isAddSuggestion'==_0x4a344e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a344e||'isRemoveSuggestion'==_0x4a344e},'createdAt':new Date(),'rootName':_0x31dfba});_0x420415['push'](_0x57f287),_0x4c15ff['markers']['set']('revision:'+_0x57f287['id'],_0x31b006);}function _0x560f96(_0xde780e,_0xd6ec70){const _0x1def10=_0xde780e['getAttributes'](),_0x493aef=_0xd6ec70['getAttributes']();for(const _0x3f53e8 of _0x1def10){if(_0x3f53e8[0x1]!==_0xd6ec70['getAttribute'](_0x3f53e8[0x0]))return!0x1;_0x493aef['next']();}return _0x493aef['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x408a73=>{const _0x4bb029=_0x408a73['markerName']['split'](':')[0x1],_0x22cb26=this['_getChangeFromId'](_0x4bb029);if(!_0x22cb26)return null;const _0x30b80a='add'==_0x22cb26['type']?'insertion':'deletion',_0x4385c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30b80a];return _0x22cb26['data']['isSuggestion']&&_0x4385c['push']('ck-suggestion-marker-'+_0x30b80a+'-new'),this['activeChange']==_0x22cb26&&_0x4385c['push']('ck-suggestion-marker--active'),{'classes':_0x4385c,'attributes':{'data-change-id':_0x4bb029}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c7b9c=>{_0x3c7b9c['on']('element:pre',(_0x15622c,_0x402edb,_0x9b735e)=>{const _0x303192=_0x402edb['viewItem']['getChild'](0x0);if(!_0x303192||!_0x303192['is']('element','code'))return;if(!_0x9b735e['consumable']['consume'](_0x303192,{'attributes':['vid_start','vid_end']}))return;const _0x2de02f=_0x402edb['modelRange']['start']['nodeAfter'];_0x9b735e['writer']['setAttribute']('vid_start',_0x303192['getAttribute']('vid_start'),_0x2de02f),_0x9b735e['writer']['setAttribute']('vid_end',_0x303192['getAttribute']('vid_end'),_0x2de02f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x469c4f=>{_0x469c4f['on']('element',(_0x1160c8,_0x3dc9d8,_0xe4774e)=>{if(!_0xe4774e['consumable']['consume'](_0x3dc9d8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3dc9d8['modelRange']['isCollapsed'])return;const _0x1ca7a7=_0x3dc9d8['modelRange']['start']['nodeAfter'];_0x1ca7a7['hasAttribute']('vid_start')||_0x1ca7a7['hasAttribute']('vid')||(_0xe4774e['writer']['setAttribute']('vid_start',_0x3dc9d8['viewItem']['getAttribute']('vid_start'),_0x1ca7a7),_0xe4774e['writer']['setAttribute']('vid_end',_0x3dc9d8['viewItem']['getAttribute']('vid_end'),_0x1ca7a7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x59718b=>_0x59718b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x591e14,[,_0x2919bd])=>{['vid_start','vid_end','vid']['includes'](_0x2919bd)&&(_0x591e14['return']=!0x0,_0x591e14['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xbdef9c=>{_0xbdef9c['on']('attribute:vid',(_0x4d1f58,_0x1106d5,_0x50c8f1)=>{if('\x20'!=_0x1106d5['item']['data']||_0x1106d5['item']['parent']['maxOffset']>0x1)return;if(!_0x50c8f1['consumable']['consume'](_0x1106d5['item'],_0x4d1f58['name']))return;const _0x481ac7=_0x50c8f1['writer'],_0x35e17e=_0x50c8f1['mapper']['toViewRange'](_0x1106d5['range']);_0x481ac7['wrap'](_0x35e17e,_0x481ac7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x34b1c7){const _0x14bf12=_0x34b1c7['plugins']['get']('RevisionViewer');return(_0x18b7c5,_0x5d8788,_0x3485ea)=>{const _0x5bcf91=_0x5d8788['markerName']['split'](':')[0x1],_0x4958b9=_0x14bf12['_getChangeFromId'](_0x5bcf91);if(!_0x4958b9)return null;const _0x14a8ef='add'==_0x4958b9['type']?'split':'merge';if(!_0x3485ea['consumable']['test'](_0x5d8788['markerRange'],_0x18b7c5['name']))return;const _0x31fa2f=_0x5d8788['markerRange']['getWalker'](),_0x1cfcf=_0x5d8788['markerRange']['start'],_0x3fadf7=_0x34b1c7['model']['schema'];let _0x25fa2a=null,_0x51d47d=null,_0x460e41=!0x1,_0x5b9f1=!0x1;for(const _0xa6dd96 of _0x31fa2f){const _0xade07b=_0xa6dd96['item'];_0x460e41=_0x460e41||_0x3fadf7['isContent'](_0xade07b);const _0x34b5f8=_0x3485ea['mapper']['toViewElement'](_0xade07b);if(_0x34b5f8&&_0x34b5f8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa6dd96['type']&&(_0x3fadf7['isBlock'](_0xade07b)&&!_0x3fadf7['isLimit'](_0xade07b)&&(_0xade07b['nextSibling']||_0x1cfcf['isAtEnd']?_0x25fa2a&&_0x25fa2a['parent']==_0xade07b||(_0x25fa2a=_0xade07b,_0x128bf(_0xa6dd96['previousPosition']),_0x5b9f1=!0x0):_0x51d47d=_0x51d47d||_0xa6dd96['previousPosition']));}function _0x128bf(_0x2358c6){const _0x5dd25a=_0x3485ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a8ef}),_0x1e4b8b=_0x3485ea['mapper']['toViewPosition'](_0x2358c6);_0x4958b9['data']['isSuggestion']&&_0x3485ea['writer']['addClass']('ck-suggestion-marker-'+_0x14a8ef+'-new',_0x5dd25a),_0x14bf12['activeChange']==_0x4958b9&&_0x3485ea['writer']['addClass']('ck-suggestion-marker--active',_0x5dd25a),_0x3485ea['writer']['insert'](_0x1e4b8b,_0x5dd25a),_0x3485ea['mapper']['bindElementToMarker'](_0x5dd25a,_0x5d8788['markerName']);}_0x460e41||_0x5b9f1||!_0x51d47d||_0x128bf(_0x51d47d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x548056,_0x20291b,_0x20f6c6)=>{const _0x59e32b=_0x20f6c6['mapper']['markerNameToElements'](_0x20291b['markerName']);if(_0x59e32b){for(const _0x3b1e4b of _0x59e32b)(_0x3b1e4b['hasClass']('ck-suggestion-marker-split')||_0x3b1e4b['hasClass']('ck-suggestion-marker-merge'))&&(_0x20f6c6['mapper']['unbindElementFromMarkerName'](_0x3b1e4b,_0x20291b['markerName']),_0x20f6c6['writer']['remove'](_0x3b1e4b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x42c8f2,_0xbc4c4d,_0x138cda)=>{const _0x546484=_0xbc4c4d['markerName']['split'](':')[0x1],_0x4fac90=this['_getChangeFromId'](_0x546484);if(!_0x4fac90)return null;const _0x3ebfdd='add'==_0x4fac90['type']?'split':'merge';if(_0x138cda['consumable']['test'](_0xbc4c4d['markerRange'],_0x42c8f2['name']))for(const _0x14a14e of _0xbc4c4d['markerRange']['getItems']()){if(!_0x14a14e['is']('element','softBreak'))continue;const _0x2da241=_0x138cda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ebfdd}),_0x30ced4=_0x138cda['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x14a14e));_0x4fac90['data']['isSuggestion']&&_0x138cda['writer']['addClass']('ck-suggestion-marker-'+_0x3ebfdd+'-new',_0x2da241),this['activeChange']==_0x4fac90&&_0x138cda['writer']['addClass']('ck-suggestion-marker--active',_0x2da241),_0x138cda['writer']['insert'](_0x30ced4,_0x2da241),_0x138cda['mapper']['bindElementToMarker'](_0x2da241,_0xbc4c4d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3af3c6=>{for(const _0x4365e6 of this['editor']['model']['document']['getRootNames']()){const _0x1f85c0=this['editor']['model']['document']['getRoot'](_0x4365e6),_0x368bd9=this['editor']['editing']['view']['document']['getRoot'](_0x4365e6);if(_0x368bd9){const _0x4feaea=_0x1f85c0['getAttribute']('revisionHistoryAttachChange');if(_0x3af3c6['removeAttribute']('data-change-id',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-add',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-remove',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root--active',_0x368bd9),_0x4feaea){const _0x1fca5f=this['_getChangeFromId'](_0x4feaea);if(!_0x1fca5f)return null;_0x3af3c6['setAttribute']('data-change-id',_0x4feaea,_0x368bd9),_0x3af3c6['addClass']('ck-revision-history-root-'+_0x1fca5f['type'],_0x368bd9),this['activeChange']==_0x1fca5f&&_0x3af3c6['addClass']('ck-revision-history-root--active',_0x368bd9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5f57cf=>'revision-comment:'+_0x5f57cf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x598381=>'revision-suggestion:'+_0x598381,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34c33a=>({'name':'suggestion:'+_0x34c33a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51374d=>{const _0xbf3a2d=_0x51374d['markerName']['split'](':')[0x1];return'insertion'!=_0xbf3a2d&&'deletion'!=_0xbf3a2d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbf3a2d]};}}),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',(_0x2cb1f2,_0x25191b,_0x2855ba)=>{const _0x53f1be=_0x2855ba['mapper']['markerNameToElements'](_0x25191b['markerName']);if(_0x53f1be){for(const _0x19655a of _0x53f1be)_0x19655a['is']('uiElement')&&(_0x2855ba['mapper']['unbindElementFromMarkerName'](_0x19655a,_0x25191b['markerName']),_0x2855ba['writer']['remove'](_0x19655a));}},{'priority':'high'});}['_getChangeFromId'](_0xb329c9){return this['_changeIdToChange']['get'](_0xb329c9);}['_getViewForChange'](_0x1a0042){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1a0042),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb534c0,_0x18df94,_0x1e0748,_0x116be7)=>{_0x116be7&&this['_balloon']['remove'](_0x116be7),_0x1e0748&&(this['_balloon']['add']({'view':_0x1e0748,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x9637fc=this['editor']['editing'],_0x5b7bcd=this['_getChangeFromId'](_0x1e0748['changeId']);let _0x230bba;if(_0x5b7bcd['data']['isOnRoot']){const _0x4d4d62=_0x9637fc['view']['getDomRoot'](_0x5b7bcd['rootName']);_0x230bba=Array['from'](_0x4d4d62['getClientRects']());}else{const _0x1341cf=this['editor']['model']['markers']['get']('revision:'+_0x1e0748['changeId']);_0x230bba=Array['from'](_0x9637fc['mapper']['markerNameToElements'](_0x1341cf['name']))['map'](_0x3e87ef=>_0x9637fc['view']['domConverter']['mapViewToDom'](_0x3e87ef))['map'](_0x5b89ff=>Array['from'](_0x5b89ff['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x230bba[0x0];return _0x230bba['find'](_0x234948=>_0x234948['top']-0x3<=this['_activeViewTarget']['y']&&_0x234948['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x234948['left']-0x3<=this['_activeViewTarget']['x']&&_0x234948['right']+0x3>=this['_activeViewTarget']['x'])||_0x230bba[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x50a941,_0x2b3d32,_0x267155,_0x32f970)=>{this['activeView']=_0x267155?this['_getViewForChange'](_0x267155):null,this['editor']['model']['change'](()=>{const _0x5a9f42=this['editor']['editing'];_0x32f970&&(_0x32f970['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x4e85c1=>{_0x4e85c1['removeClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x32f970['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x32f970['id'])),_0x267155&&(_0x267155['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x192aa=>{_0x192aa['addClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x267155['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x267155['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x60be99,_0x26f515)=>{if(this['activeChange'])return;const _0x2fc433=this['_findChangeIdFromDomTarget'](_0x26f515['target']),_0x5782af=this['_changeIdToChange']['get'](_0x2fc433);_0x5782af?(this['_activeViewTarget']={'x':_0x26f515['domEvent']['x'],'y':_0x26f515['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5782af)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4fdc61,_0x4ac061)=>{const _0x3630ff=this['_findChangeIdFromDomTarget'](_0x4ac061['target']),_0x394214=this['_changeIdToChange']['get'](_0x3630ff);_0x394214?(this['_activeViewTarget']={'x':_0x4ac061['domEvent']['x'],'y':_0x4ac061['domEvent']['y']},_0x394214===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x394214):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fbcd8){do{const _0x1a519c=_0x1fbcd8['getAttribute']('data-change-id');if(_0x1a519c)return _0x1a519c;_0x1fbcd8=_0x1fbcd8['parent'];}while(_0x1fbcd8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x8ed715=>{for(const _0x514782 of this['editor']['model']['markers'])_0x8ed715['removeMarker'](_0x514782);});}}function Z(_0x3270da,_0x58680a){return(_0x2ca118,_0x599167,_0x15d159)=>{if(!_0x15d159['consumable']['test'](_0x599167['markerRange'],_0x2ca118['name']))return;const _0x2f0377=_0x599167['markerRange']['getWalker'](),_0x2f1fec=_0x599167['markerRange']['start'],_0x117766=_0x3270da['model']['schema'];let _0x49c44a=null,_0x814d4b=null,_0x3e6765=!0x1,_0x2ed3f6=!0x1;for(const _0x41c45a of _0x2f0377){const _0x201c70=_0x41c45a['item'];_0x3e6765=_0x3e6765||_0x117766['isContent'](_0x201c70);const _0x2b719f=_0x15d159['mapper']['toViewElement'](_0x201c70);if(_0x2b719f&&_0x2b719f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41c45a['type']&&(_0x117766['isBlock'](_0x201c70)&&!_0x117766['isLimit'](_0x201c70)&&(_0x201c70['nextSibling']||_0x2f1fec['isAtEnd']?_0x49c44a&&_0x49c44a['parent']==_0x201c70||(_0x49c44a=_0x201c70,_0x244955(_0x41c45a['previousPosition']),_0x2ed3f6=!0x0):_0x814d4b=_0x814d4b||_0x41c45a['previousPosition']));}function _0x244955(_0x20ea56){const _0x462e30=_0x15d159['mapper']['toViewPosition'](_0x20ea56),_0xa1d7df=_0x15d159['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58680a});_0x15d159['writer']['insert'](_0x462e30,_0xa1d7df),_0x15d159['mapper']['bindElementToMarker'](_0xa1d7df,_0x599167['markerName']);}_0x3e6765||_0x2ed3f6||!_0x814d4b||_0x244955(_0x814d4b);};}class _t extends _0x4329f6{constructor(_0x57917d){super(_0x57917d);const _0x1353c0=_0x57917d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1353c0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1353c0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfc6ed8=this['editor'],_0x5a4dd9=_0xfc6ed8['plugins']['get'](d),_0x8b0d96=_0x5a4dd9['isReady']?_0x5a4dd9['diff']['newRevisionId']:null;_0xfc6ed8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8b0d96);}['refresh'](){const {isReady:_0x3746fa,isEnabled:_0x501378,repository:_0x5b4887,diff:_0xecd784}=this['editor']['plugins']['get'](d),_0x3cedf9=_0xecd784&&_0x5b4887['getLaterVisibleRevision'](_0xecd784['newRevisionId']);this['isEnabled']=_0x3746fa&&_0x501378&&Boolean(_0x3cedf9);}}class yt extends _0x4329f6{['_step'];constructor(_0x4e4432,{direction:_0x40faf0}){super(_0x4e4432);const _0x4bd434=_0x4e4432['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40faf0?0x1:-0x1,this['listenTo'](_0x4bd434,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1aaad8=this['editor'],_0xb4ad65=_0x1aaad8['plugins']['get'](d),{isNavigationMode:_0x8336b4,currentChangeNumber:_0x2fc227}=_0xb4ad65;let _0x3e22d8;if(_0xb4ad65['activeChange']=_0x8336b4?_0xb4ad65['diff']['changes']['get'](_0x2fc227+this['_step']):_0xb4ad65['diff']['changes']['first'],_0xb4ad65['activeChange']['data']['isOnRoot'])_0x3e22d8=_0x1aaad8['editing']['view']['getDomRoot'](_0xb4ad65['activeChange']['rootName']);else{const _0x5789f6=_0x1aaad8['model']['markers']['get']('revision:'+_0xb4ad65['activeChange']['id']);_0x3e22d8=_0x6fa89f(_0x1aaad8['editing'],_0x5789f6);}_0x2a04c7({'target':_0x3e22d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x325500,currentChangeNumber:_0x1f9b22,numberOfChanges:_0x5903df,isReady:_0x3a7b33,isEnabled:_0xd51a13}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd51a13&&_0x3a7b33&&_0x5903df)&&(!_0x325500||(0x1===this['_step']?_0x1f9b22<_0x5903df-0x1:_0x1f9b22>0x0));}}class _i extends _0x21a70e{constructor(_0x458569){super(_0x458569);const _0xe7d7c5=this['bindTemplate'],_0x2467c5=new _0x5f241f(_0x458569),_0x4d619a=new _0x5f241f(_0x458569);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',(_0x5ba48f,_0x302ef3)=>_0x5ba48f&&_0x302ef3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x30854f,_0xfdf446,_0x3795b3,_0x5d44c0)=>{if(!_0x30854f)return m(_0x458569,'Loading...');if(!_0x3795b3)return m(_0x458569,'No\x20changes');const _0x245f46=m(_0x458569,'NUMBER_OF_CHANGES',_0x3795b3);return _0x5d44c0?m(_0x458569,'X_OF_Y_CHANGES',[_0xfdf446+0x1,_0x3795b3]):_0x245f46;}),_0x2467c5['set']({'label':m(_0x458569,'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'}),_0x4d619a['set']({'label':m(_0x458569,'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'}),_0x2467c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4d619a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2467c5['on']('execute',()=>this['fire']('execute','backward')),_0x4d619a['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',_0xe7d7c5['if']('_isStatusLabelVisible','ck-hidden',_0x3f0da0=>!_0x3f0da0)]},'children':[{'text':_0xe7d7c5['to']('isNavigationMode',_0x3d6563=>_0x3d6563?m(_0x458569,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x458569,'Total')+':\x20')}]},{'text':_0xe7d7c5['to']('_statusText')}]},new _0x5205f1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2467c5,_0x4d619a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x495045{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4db835=this['editor']['editing']['view'];_0x4db835['change'](_0x35c935=>{for(const _0x427367 of _0x4db835['document']['roots'])_0x35c935['addClass'](ce,_0x427367);});}['hide'](){const _0x2de2c6=this['editor']['editing']['view'];_0x2de2c6['change'](_0x58a2b0=>{for(const _0x44b875 of _0x2de2c6['document']['roots'])_0x58a2b0['removeClass'](ce,_0x44b875);});}}class g extends _0x495045{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x47abb0=this['editor'],_0x5991c1=_0x47abb0['plugins']['get'](d),_0x5b551c=_0x47abb0['plugins']['get'](le);_0x47abb0['ui']['componentFactory']['add']('exitToEditing',_0x189de5=>{const _0x2ddb6d=new _0x5f241f(_0x189de5);return _0x2ddb6d['set']({'label':m(_0x189de5,'Back\x20to\x20editing'),'icon':_0x3b9cd1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ddb6d,'execute',()=>{_0x47abb0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ddb6d;}),_0x47abb0['ui']['componentFactory']['add']('restoreRevision',_0x126c73=>{const _0x40e07e=new _0x5f241f(_0x126c73);return _0x40e07e['set']({'label':m(_0x126c73,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40e07e['bind']('isEnabled')['to'](_0x47abb0['commands']['get']('restoreRevision')),this['listenTo'](_0x40e07e,'execute',()=>_0x47abb0['execute']('restoreRevision')),_0x40e07e;}),_0x47abb0['ui']['componentFactory']['add']('changesNavigation',_0x358345=>{const _0x14c424=new _i(_0x358345),_0x1ad43c=_0x47abb0['commands']['get']('showPreviousChange'),_0x336b6e=_0x47abb0['commands']['get']('showNextChange');return _0x14c424['bind']('isBackwardNavigationEnabled')['to'](_0x1ad43c,'isEnabled'),_0x14c424['bind']('isForwardNavigationEnabled')['to'](_0x336b6e,'isEnabled'),_0x14c424['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5991c1),this['listenTo'](_0x14c424,'execute',(_0x492717,_0x4f95bb)=>{_0x47abb0['execute']('forward'===_0x4f95bb?'showNextChange':'showPreviousChange');}),_0x14c424;}),_0x5b551c['show'](),_0x5991c1['on']('change:isReady',(_0x722924,_0x1f53ba,_0x17e776)=>{_0x17e776?_0x5b551c['hide']():_0x5b551c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x11a2ae,_0x33ece6){super(_0x11a2ae,_0x33ece6);const _0x4ed403=this['bindTemplate'];this['set']({'label':m(_0x11a2ae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x11a2ae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ed403['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 _0x3825a7=this['fieldView']['element'];this['_tooltipString']=_0x3825a7['scrollWidth']>_0x3825a7['clientWidth']&&_0x3825a7['value']||'';}}class ti extends _0x21a70e{constructor(_0x360475,_0x44102f,_0x2d6ff9){super(_0x360475);const _0x53ec74=new _0x3183a9();_0x53ec74['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 _0x218e4c=['ck','ck-revision-history-sidebar__revision-author'];_0x2d6ff9&&_0x218e4c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x11e6ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x360475,_0x2d6ff9?'Revision\x20creator':'Revision\x20author')},'children':[_0x53ec74,_0x44102f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x218e4c},'children':_0x11e6ab});}}function ni(_0x8ba812,_0x467a73){const _0xb3f470=_0x8ba812['bindTemplate'],_0x1d7b07=_0x8ba812['locale'],_0x1a7c40=_0x4cd44e(_0x1d7b07);_0x1a7c40['panelPosition']='sw';const _0x47ec27=function(_0x533d84,_0x5ae851){const _0xd139dd=function(_0x2eedb5,_0x1d9a2f){const _0xc5b1e=_0x2eedb5['locale'],_0x11e25f={'Compare\x20against\x20selected':m(_0xc5b1e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xc5b1e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xc5b1e,'Restore\x20this\x20revision')};return _0x1d9a2f['map'](_0x2bf363=>{const _0x504e14=_0x11e25f[_0x2bf363['name']];return _0x504e14&&_0x504e14!==_0x2bf363['name']&&(_0x2bf363['name']=_0x504e14),_0x2bf363;});}(_0x533d84,_0x5ae851),_0x287887=new _0xb59600();for(const _0x3f8327 of _0xd139dd){const _0x1fbb6b={'type':'button','model':new to({'label':_0x3f8327['name'],'class':_0x3f8327['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f8327['action']})};_0x1fbb6b['model']['bind']('isEnabled')['to'](_0x533d84,'isActionsDropdownOpen',_0x5b28fa=>'function'!=typeof _0x3f8327['isEnabled']||(!_0x5b28fa||_0x3f8327['isEnabled'](_0x533d84))),_0x287887['add'](_0x1fbb6b);}return _0x287887;}(_0x8ba812,_0x467a73);return _0x8ba812['bind']('isActionsDropdownOpen')['to'](_0x1a7c40,'isOpen'),_0x1a7c40['buttonView']['set']({'label':m(_0x1d7b07,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b9cd1['threeVerticalDots']}),_0x1a7c40['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xb3f470['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xb3f470['to'](_0x4a47db=>_0x4a47db['stopPropagation']())}}),_0x1a7c40['on']('execute',_0x30a361=>{_0x8ba812['isReady']&&'function'==typeof _0x30a361['source']['_action']&&_0x30a361['source']['_action'](_0x8ba812);}),_0x34d2c0(_0x1a7c40,_0x47ec27,{'role':'menu'}),_0x1a7c40['listenTo'](_0x8ba812,'change:isActionsDropdownOpen',(_0x18902f,_0x3d6ab6,_0x3b8a8e)=>{if(_0x3b8a8e)for(const _0x161710 of _0x1a7c40['listView']['items']){const _0x4d846c=_0x161710['children']['first'],_0x3b230b=_0x467a73['find'](_0x4450ac=>_0x4450ac['action']===_0x4d846c['_action'])['isVisible'];_0x161710['isVisible']=void 0x0===_0x3b230b||_0x3b230b(_0x8ba812);}}),_0x1a7c40;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x1b0a2b,uid as _0x4e103a,Collection as _0x314e29,logWarning as _0xd09106,FocusTracker as _0x5b977d,KeystrokeHandler as _0x3e4776,scrollViewportToShowTarget as _0x44a078,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5789de}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5e1b59,set as _0x592e91,unset as _0x5eebab,isEqual as _0xfaa94d}from'lodash-es';import{Plugin as _0xca27d3,PendingActions as _0x116299,icons as _0x12fa6d,Command as _0x1f5cb3,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x20f03a,getMarkerDomElement as _0x5580dc,ConfirmMixin as _0x31dcf0,sanitizeEditorConfig as _0x581424}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a9627,ViewText as _0x5874de,ViewElement as _0x97d576,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0xba8963,ViewAttributeElement as _0x22eb5a,ViewEmptyElement as _0x8ce602,ViewRawElement as _0x32835c,ViewUIElement as _0x54718b,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0xe1dbd2,injectCssTransitionDisabler as ts,submitHandler as _0x1c28f2,LabeledFieldView as nt,createLabeledInputText as _0x573ceb,createDropdown as _0x3d7371,ListView as te,ListItemView as _0x2715ec,ButtonView as _0x126554,MenuBarMenuView as _0x149d8e,MenuBarMenuListView as _0x5d7be4,MenuBarMenuListItemView as _0x57d201,MenuBarMenuListItemButtonView as _0x30359d,ContextualBalloon as _0x4377fb,ToolbarSeparatorView as _0x9a9e37,IconView as _0x91a150,addListToDropdown as _0x2c37da,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 _0x154b11}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b0a2b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x578f26){super(),this['id']=_0x578f26['id']||_0x4e103a(),this['creator']=_0x578f26['creator']||null,this['authors']=_0x578f26['authors']||[],this['diffData']=_0x578f26['diffData']||null,this['toVersion']=_0x578f26['toVersion']||0x0,this['fromVersion']=_0x578f26['fromVersion']||0x0,this['set']('name',_0x578f26['name']||''),this['set']('createdAt',_0x578f26['createdAt']||new Date()),this['set']('attributes',_0x578f26['attributes']||{});}['setName'](_0x1b218e){this['_update']({'name':_0x1b218e});}['setAttribute'](_0x45f9a7,_0xdd9a){const _0x415201=_0x5e1b59(this['attributes']);_0x592e91(_0x415201,_0x45f9a7,_0xdd9a),this['_update']({'attributes':_0x415201});}['removeAttribute'](_0x29be2b){const _0x1be6e0=_0x5e1b59(this['attributes']);_0x5eebab(_0x1be6e0,_0x29be2b),this['_update']({'attributes':_0x1be6e0});}['_update'](_0x19f3a4,_0x5c6eba=!0x1){let _0x1aee5e=!0x1;const _0x546dc4={'id':this['id']},_0x3f07de=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xaac201 of _0x3f07de){const _0x46abc2=_0x19f3a4[_0xaac201];void 0x0!==_0x46abc2&&_0x46abc2!==this[_0xaac201]&&(this[_0xaac201]=_0x46abc2,_0x546dc4[_0xaac201]=_0x46abc2,_0x1aee5e=!0x0);}_0x1aee5e&&(_0x546dc4['authors']&&(_0x546dc4['authorsIds']=_0x546dc4['authors']['map'](_0xf311c3=>_0xf311c3['id']),delete _0x546dc4['authors']),this['fire']('_update',_0x546dc4,_0x5c6eba));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x219173=>_0x219173['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xca27d3{['_revisions'];static get['requires'](){return[_0x20f03a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c3cb6){super(_0x1c3cb6),this['_revisions']=new _0x314e29();}['afterInit'](){!async function(_0x53356b){const _0x51d92a=_0x1e2471([0x63,0x36,0x53,0x67,0x77,0x6d,0x4b,0x4a,0x69,0x39,0x44,0x6c,0x4c,0x74,0x55,0x76,0x68,0x71,0x59,0x57,0x54,0x72,0x48,0x42,0x35,0x78,0x6a,0x6b,0x70,0x47,0x4d,0x75,0x73,0x52,0x43,0x58,0x41,0x65,0x45,0x4e,0x33,0x6e,0x7a,0x51,0x62,0x66,0x46,0x31,0x32,0x79,0x30,0x6f,0x34,0x38,0x50,0x5a,0x56,0x61,0x37,0x4f,0x64,0x49]),_0x44b9ea=0xeb829,_0x2a0555=0x57c00399,_0x1bb10d=0x57c75e51^_0x2a0555,_0x247340=window[_0x1e2471([0x44,0x61,0x74,0x65])][_0x1e2471([0x6e,0x6f,0x77])](),_0x14e404=_0x53356b[_0x1e2471([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x167c6c=new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7006c4=>{_0x14e404[_0x1e2471([0x6f,0x6e,0x63,0x65])](_0x1e2471([0x72,0x65,0x61,0x64,0x79]),_0x7006c4);}),_0x305ae1={[_0x1e2471([0x6b,0x74,0x79])]:_0x1e2471([0x45,0x43]),[_0x1e2471([0x75,0x73,0x65])]:_0x1e2471([0x73,0x69,0x67]),[_0x1e2471([0x63,0x72,0x76])]:_0x1e2471([0x50,0x2d,0x32,0x35,0x36]),[_0x1e2471([0x78])]:_0x1e2471([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]),[_0x1e2471([0x79])]:_0x1e2471([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]),[_0x1e2471([0x61,0x6c,0x67])]:_0x1e2471([0x45,0x53,0x32,0x35,0x36])},_0x3b23ef=_0x14e404[_0x1e2471([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e2471([0x67,0x65,0x74])](_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3093c7(){let _0x1447bd,_0x218681=null,_0x56b057=null;try{if(_0x3b23ef==_0x1e2471([0x47,0x50,0x4c]))return _0x1e2471([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1447bd=_0x5aba34(),!_0x1447bd)return _0x1e2471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1447bd[_0x1e2471([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56b057=_0x1930e6(_0x1447bd[_0x1e2471([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1447bd[_0x1e2471([0x6a,0x74,0x69])])),await _0x4ecb14()?_0x14a725()?_0xb077da()?_0x1e2471([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c73a9()?(_0x1447bd[_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e2471([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x218681=_0x319163(_0x1e2471([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1447bd[_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e2471([0x74,0x72,0x69,0x61,0x6c])&&(_0x218681=_0x319163(_0x1e2471([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1447bd[_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e2471([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x218681=_0x319163(_0x1e2471([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbfe9b()):_0x1e2471([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e2471([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e2471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd9564a){return _0x1e2471([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb077da(){const _0x1ccecb=[_0x1e2471([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e2471([0x74,0x72,0x69,0x61,0x6c])][_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1447bd[_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x247340/0x3e8:0xe10*_0x1bb10d;return _0x1447bd[_0x1e2471([0x65,0x78,0x70])]<_0x1ccecb;}function _0x14a725(){const _0xa86c7=_0x1447bd[_0x1e2471([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa86c7)return!0x1;if(_0xa86c7[_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e2471([0x2a])))return!0x0;if(_0xa86c7[_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e2471([0x52,0x48])))return!0x0;if(_0xa86c7[_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e2471([0x52,0x52,0x48]))){if(_0x31ac38())return!0x0;if(_0x1047e1()||_0x1e8d83())return!0x0;}return!0x1;}function _0x5c73a9(){const _0x166aec=_0x1447bd[_0x1e2471([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x166aec||0x0==_0x166aec[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x191839}=new URL(window[_0x1e2471([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x166aec[_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x191839))return!0x0;const _0x26f0f7=_0x191839[_0x1e2471([0x73,0x70,0x6c,0x69,0x74])](_0x1e2471([0x2e]));return _0x166aec[_0x1e2471([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd3c68d=>_0xd3c68d[_0x1e2471([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e2471([0x2a])))[_0x1e2471([0x6d,0x61,0x70])](_0x76e6a1=>_0x76e6a1[_0x1e2471([0x73,0x70,0x6c,0x69,0x74])](_0x1e2471([0x2e])))[_0x1e2471([0x73,0x6f,0x6d,0x65])](_0x4f2ffa=>_0x26f0f7[_0x1e2471([0x65,0x76,0x65,0x72,0x79])]((_0x104d66,_0x149ce1)=>_0x4f2ffa[_0x149ce1]===_0x104d66||_0x4f2ffa[_0x149ce1]===_0x1e2471([0x2a])));}function _0xbfe9b(){return _0x218681&&_0x56b057?new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c900c,_0x940c61)=>{_0x218681[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x4c900c,_0x940c61),_0x56b057[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x48634e=>{_0x48634e!=_0x1e2471([0x56,0x61,0x6c,0x69,0x64])&&_0x4c900c(_0x48634e);},_0x940c61);}):_0x218681||_0x56b057||_0x1e2471([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1930e6(_0x8985ea,_0x1d32d7){return new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cfdb5=>{if(_0x5f1dc8())return _0x4cfdb5(_0x1e2471([0x56,0x61,0x6c,0x69,0x64]));_0x3f3ce7(),_0x14e404[_0x1e2471([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e2471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1445e9=!0x1;const _0x42cef6=_0x4e103a();function _0x666f58(_0x3b6d09){return!!_0x3b6d09&&(typeof _0x3b6d09===_0x1e2471([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b6d09===_0x1e2471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b6d09[_0x1e2471([0x74,0x68,0x65,0x6e])]===_0x1e2471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b6d09[_0x1e2471([0x63,0x61,0x74,0x63,0x68])]===_0x1e2471([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14444a(_0x57579a){_0x11bd91(_0x57579a)[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x160032=>{if(!_0x160032||_0x160032[_0x1e2471([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e2471([0x6f,0x6b]))return _0x1e2471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x113030(_0x396272(_0x42cef6+_0x1d32d7))!=_0x160032[_0x1e2471([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e2471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e2471([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x12b346=>(_0x6a65dd(),_0x12b346),()=>{const _0x498b02=_0x440692();return null==_0x498b02?(_0x6a65dd(),_0x1e2471([0x56,0x61,0x6c,0x69,0x64])):_0x1e2471(_0x247340-_0x498b02>(0x73cc8799^_0x2a0555)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x4cfdb5)[_0x1e2471([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cfdb5(_0x1e2471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6c40c6=0x57f6ed19^_0x2a0555;function _0x6a65dd(){const _0x5c888f=_0x1e2471([0x6c,0x6c,0x63,0x74,0x2d])+_0x113030(_0x396272(_0x8985ea)),_0x3bf4d0=_0x2d61cd(_0x113030(window[_0x1e2471([0x4d,0x61,0x74,0x68])][_0x1e2471([0x63,0x65,0x69,0x6c])](_0x247340/_0x6c40c6)));window[_0x1e2471([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e2471([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c888f,_0x3bf4d0);}function _0x440692(){const _0x4238f1=_0x1e2471([0x6c,0x6c,0x63,0x74,0x2d])+_0x113030(_0x396272(_0x8985ea)),_0x2459e3=window[_0x1e2471([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e2471([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4238f1);return _0x2459e3?window[_0x1e2471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d61cd(_0x2459e3),0x10)*_0x6c40c6:null;}function _0x11bd91(_0x3f433f){return new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44dc09,_0x3913ed)=>{_0x3f433f[_0x1e2471([0x74,0x68,0x65,0x6e])](_0x44dc09,_0x3913ed),window[_0x1e2471([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3913ed,0x57c1d759^_0x2a0555);});}}_0x14e404[_0x1e2471([0x6f,0x6e])](_0x1e2471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20ecba,_0x5d0210)=>{if(_0x5d0210[0x0]!=_0x8985ea)return _0x4cfdb5(_0x1e2471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d0210[0x1]={..._0x5d0210[0x1],[_0x1e2471([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42cef6};},{[_0x1e2471([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e2471([0x68,0x69,0x67,0x68])}),_0x14e404[_0x1e2471([0x6f,0x6e])](_0x1e2471([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x415c54=>{_0x666f58(_0x415c54[_0x1e2471([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1445e9=!0x0,_0x14444a(_0x415c54[_0x1e2471([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e2471([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e2471([0x6c,0x6f,0x77])}),_0x167c6c[_0x1e2471([0x74,0x68,0x65,0x6e])](()=>{_0x1445e9||_0x4cfdb5(_0x1e2471([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f1dc8(){return _0x14e404[_0x1e2471([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e2471([0x76,0x69,0x65,0x77])][_0x1e2471([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e2471([0x61,0x75,0x74,0x6f]);}function _0x3f3ce7(){_0x14e404[_0x1e2471([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e2471([0x76,0x69,0x65,0x77])][_0x1e2471([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e2471([0x61,0x75,0x74,0x6f]);}}function _0x319163(_0x3910c0){const _0x97d25f=[new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123a79=>setTimeout(_0x123a79,0x57c93d55^_0x2a0555)),_0x167c6c[_0x1e2471([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf26a69=>{const _0x50c69a=0x57c0039e^_0x2a0555,_0x56047b=_0x53356b[_0x1e2471([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x49bcc3(){_0x56047b[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50c69a&&_0xf26a69();}_0x49bcc3(),_0x56047b[_0x1e2471([0x6f,0x6e])](_0x1e2471([0x61,0x64,0x64]),_0x49bcc3);})),new window[(_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320391=>{function _0x4cc7c5(){for(const _0xafb221 in window)if(window[_0x1e2471([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1e2471([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xafb221))&&window[_0xafb221]==_0x44b9ea)return _0x320391();_0x14e404[_0x1e2471([0x73,0x74,0x61,0x74,0x65])]!=_0x1e2471([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1e2471([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cc7c5,0x57c01011^_0x2a0555);}_0x324361(_0x1e2471([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4cc7c5();})];return window[_0x1e2471([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e2471([0x72,0x61,0x63,0x65])](_0x97d25f)[_0x1e2471([0x74,0x68,0x65,0x6e])](()=>_0x3910c0);}async function _0x4af45a(){if(await _0x167c6c,_0x324361(_0x1e2471([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4faa92=_0x53356b[_0x1e2471([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4b3cfe=_0x53356b[_0x1e2471([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])](_0x4faa92[_0x1e2471([0x69,0x64])]),_0x5a7790=_0x287262(_0x1e2471([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5a7790[_0x1e2471([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4faa92['id'],_0x4b3cfe?_0x4b3cfe['id']:null,!0x0),_0x5a7790[_0x1e2471([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1e2471([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5a7790[_0x1e2471([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5a7790[_0x1e2471([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x57364e,void(_0x5a7790[_0x1e2471([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x57364e);}if(_0x324361(_0x1e2471([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x32915a=_0x287262(_0x1e2471([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x32915a[_0x1e2471([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1e2471([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32915a[_0x1e2471([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32915a[_0x1e2471([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x57364e,_0x32915a[_0x1e2471([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x57364e;}_0x14e404[_0x1e2471([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e2471([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57364e,_0x14e404[_0x1e2471([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e2471([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57364e,_0x14e404[_0x1e2471([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e2471([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31ac38(){return _0x324361(_0x1e2471([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x287262(_0x1e2471([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e2471([0x73,0x74,0x61,0x74,0x65])]==_0x1e2471([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1047e1(){return _0x324361(_0x1e2471([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 _0x1e8d83(){return _0x324361(_0x1e2471([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4cf543(_0x24c1e7){const _0x5e4838=_0x411e39();_0x14e404[_0x5e4838]=_0x1e2471([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])+_0x24c1e7,_0x24c1e7[_0x1e2471([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1e2471([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x411e39()]=_0x44b9ea),_0x24c1e7!=_0x1e2471([0x56,0x61,0x6c,0x69,0x64])&&_0x4af45a();}function _0x411e39(){const _0x5e645d=window[_0x1e2471([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e2471([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e2471([0x6e,0x6f,0x77])]())[_0x1e2471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e2471([0x2e]),'');let _0x584548=_0x1e2471([0x63]);for(let _0x151b05=0x0;_0x151b05<_0x5e645d[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151b05+=0x2){let _0xe284a1=window[_0x1e2471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e645d[_0x1e2471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x151b05,_0x151b05+0x2));_0xe284a1>=_0x51d92a[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe284a1-=_0x51d92a[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x584548+=_0x51d92a[_0xe284a1];}return _0x584548;}function _0x5aba34(){const _0xac7df9=_0x3b23ef[_0x1e2471([0x73,0x70,0x6c,0x69,0x74])](_0x1e2471([0x2e]));if(0x3!=_0xac7df9[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348a2c(_0xac7df9[0x1]);function _0x348a2c(_0x599463){const _0x1c7ed3=_0x88de0a(_0x599463);return _0x1c7ed3&&_0x3ba0c2()?_0x1c7ed3:null;function _0x3ba0c2(){const _0x589bb7=_0x1c7ed3[_0x1e2471([0x6a,0x74,0x69])],_0x5806d4=window[_0x1e2471([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x589bb7[_0x1e2471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x589bb7[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d70d9={..._0x1c7ed3,[_0x1e2471([0x6a,0x74,0x69])]:_0x589bb7[_0x1e2471([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x589bb7[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d70d9[_0x1e2471([0x76,0x63])],_0x396272(_0x4d70d9)==_0x5806d4;}}}async function _0x4ecb14(){let _0x54c98c=!0x0;try{const _0x26cd47=_0x3b23ef[_0x1e2471([0x73,0x70,0x6c,0x69,0x74])](_0x1e2471([0x2e])),[_0x2f810a,_0x5b0a88,_0x57bf35]=_0x26cd47;return _0x3233de(_0x2f810a),await _0x32d319(_0x2f810a,_0x5b0a88,_0x57bf35),_0x54c98c;}catch(_0x434ab2){return!0x1;}function _0x3233de(_0x50ec83){const _0x4d4b6c=_0x88de0a(_0x50ec83);_0x4d4b6c&&_0x4d4b6c[_0x1e2471([0x61,0x6c,0x67])]==_0x1e2471([0x45,0x53,0x32,0x35,0x36])||(_0x54c98c=!0x1);}async function _0x32d319(_0x741a45,_0x4746d5,_0x304551){const _0x4f0d0b=window[_0x1e2471([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e2471([0x66,0x72,0x6f,0x6d])](_0x2831ab(_0x304551),_0x34cec1=>_0x34cec1[_0x1e2471([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16e6c1=new window[(_0x1e2471([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e2471([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x741a45+_0x1e2471([0x2e])+_0x4746d5),_0x3a5a3f=window[_0x1e2471([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e2471([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a5a3f)return;const _0x4f6e00=await _0x3a5a3f[_0x1e2471([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e2471([0x6a,0x77,0x6b]),_0x305ae1,{[_0x1e2471([0x6e,0x61,0x6d,0x65])]:_0x1e2471([0x45,0x43,0x44,0x53,0x41]),[_0x1e2471([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e2471([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e2471([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a5a3f[_0x1e2471([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e2471([0x6e,0x61,0x6d,0x65])]:_0x1e2471([0x45,0x43,0x44,0x53,0x41]),[_0x1e2471([0x68,0x61,0x73,0x68])]:{[_0x1e2471([0x6e,0x61,0x6d,0x65])]:_0x1e2471([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f6e00,_0x4f0d0b,_0x16e6c1)||(_0x54c98c=!0x1);}}function _0x88de0a(_0x38bd59){return _0x38bd59[_0x1e2471([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e2471([0x65,0x79]))?JSON[_0x1e2471([0x70,0x61,0x72,0x73,0x65])](_0x2831ab(_0x38bd59)):null;}function _0x2831ab(_0xdc000c){return window[_0x1e2471([0x61,0x74,0x6f,0x62])](_0xdc000c[_0x1e2471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e2471([0x2b]))[_0x1e2471([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e2471([0x2f])));}function _0x396272(_0x5a1266){let _0x5b35e9=0x1505;function _0x3bc3d0(_0x524fb0){for(let _0x492293=0x0;_0x492293<_0x524fb0[_0x1e2471([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492293++){const _0x364742=_0x524fb0[_0x1e2471([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492293);_0x5b35e9=(_0x5b35e9<<0x5)+_0x5b35e9+_0x364742,_0x5b35e9&=_0x5b35e9;}}function _0x5f58f7(_0x238e7d){Array[_0x1e2471([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x238e7d)?_0x238e7d[_0x1e2471([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f58f7):_0x238e7d&&typeof _0x238e7d==_0x1e2471([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e2471([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x238e7d)[_0x1e2471([0x73,0x6f,0x72,0x74])]()[_0x1e2471([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d7a2e,_0x2356a6])=>{_0x3bc3d0(_0x4d7a2e),_0x5f58f7(_0x2356a6);}):_0x3bc3d0(window[_0x1e2471([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x238e7d));}return _0x5f58f7(_0x5a1266),_0x5b35e9>>>0x0;}function _0x113030(_0x38f984){return _0x38f984[_0x1e2471([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e2471([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e2471([0x30]));}function _0x2d61cd(_0x4c1f31){return _0x4c1f31[_0x1e2471([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e2471([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e2471([0x6a,0x6f,0x69,0x6e])]('');}function _0x324361(_0x3d42ae){return _0x14e404[_0x1e2471([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e2471([0x68,0x61,0x73])](_0x3d42ae);}function _0x287262(_0xaf8c08){return _0x14e404[_0x1e2471([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e2471([0x67,0x65,0x74])](_0xaf8c08);}function _0x57364e(){}function _0x1e2471(_0x11b0b8){return _0x11b0b8['map'](_0x3d5d68=>String['fromCharCode'](_0x3d5d68))['join']('');}_0x4cf543(await _0x3093c7());}(this);}['createRevision'](_0x356ed6){const _0x42cb97=this['editor']['plugins']['get']('Users');return new a({'id':_0x356ed6['id'],'name':_0x356ed6['name'],'creator':_0x356ed6['creatorId']?_0x42cb97['getUser'](_0x356ed6['creatorId']):null,'diffData':_0x356ed6['diffData']||_0x356ed6['data'],'authors':_0x356ed6['authorsIds']['map'](_0x5cd99b=>_0x42cb97['getUser'](_0x5cd99b)),'createdAt':new Date(_0x356ed6['createdAt']),'attributes':_0x356ed6['attributes'],'fromVersion':_0x356ed6['fromVersion'],'toVersion':_0x356ed6['toVersion']});}['addRevision'](_0x42ccfa,_0x469051=0x0){this['_revisions']['add'](_0x42ccfa,_0x469051);}['getRevision'](_0x2cb628){return this['_revisions']['get'](_0x2cb628);}['getRevisions'](_0x1bb79f={'toJSON':!0x1}){const _0x415ddc=Array['from'](this['_revisions']);return _0x415ddc['reverse'](),_0x1bb79f['toJSON']?_0x415ddc['map'](_0x4d2358=>_0x4d2358['toJSON']()):_0x415ddc;}['getIndex'](_0x5c2f44){return this['_revisions']['getIndex'](_0x5c2f44);}['getEarlierVisibleRevision'](_0x1a4eda){const [,_0x494c69]=this['getRevisionsIterator'](_0x1a4eda,{'direction':'earlier'});return _0x494c69;}['getLaterVisibleRevision'](_0x4ac04c){const [,_0xa65ddd]=this['getRevisionsIterator'](_0x4ac04c,{'direction':'later'});return _0xa65ddd;}['getRevisionsInDiff'](_0x184ffb){const _0x32e3e0=[];for(const _0x4072e2 of this['getRevisionsIterator'](_0x184ffb['newRevisionId']))if(_0x32e3e0['push'](_0x4072e2),_0x4072e2['id']===_0x184ffb['oldRevisionId'])break;return _0x32e3e0;}*['getRevisionsIterator'](_0x761623,{direction:_0x5082c5='earlier',filter:_0x53b57b=()=>!0x0}={}){const _0x23322d='earlier'===_0x5082c5?0x1:-0x1;let _0x2746b6=this['_revisions']['get'](_0x761623),_0x48c3b8=this['getIndex'](_0x2746b6);for(yield _0x2746b6;_0x2746b6;){if(_0x48c3b8+=_0x23322d,_0x2746b6=this['getRevision'](_0x48c3b8),!_0x2746b6)return;_0x53b57b(_0x2746b6)&&(yield _0x2746b6);}}}function m(_0x58d5fc,_0x110943,_0x21393d){const t=_0x58d5fc['t'];switch(_0x110943){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'},_0x21393d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21393d);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':_0xba8963,'a':_0x22eb5a,'e':_0x8ce602,'r':_0x32835c,'u':_0x54718b};class l extends _0xca27d3{['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[_0x20f03a,j,_0x116299];}constructor(_0x40f111){super(_0x40f111),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 _0x27c578=_0x4e103a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27c578},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 _0x273c6e=this['repository']['getRevision'](0x0),_0x42515e=_0x273c6e&&null===_0x273c6e['creator']?_0x273c6e:null;if(this['_continueCurrentRevision']=!!_0x42515e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd82b6c=this['_source']['getCurrentRevisionId'](),_0x4f3566=this['repository']['getRevision'](_0xd82b6c);if(_0x4f3566)this['_startingVersion']=_0x4f3566['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4c617c=this['_source']['history']['_operations']['find'](_0x315d60=>!_0x315d60['_isInit']),_0x117953=_0x4c617c?_0x4c617c['baseVersion']:this['_source']['history']['version'];_0x273c6e?(_0x273c6e['toVersion']<_0x117953&&_0x273c6e['_update']({'toVersion':_0x117953}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x42515e['id'],this['_startingVersion']=_0x42515e['fromVersion']):(this['_startingVersion']=_0x273c6e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x117953,this['_continueCurrentRevision']=!0x1);}}else _0x42515e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x42515e['toVersion'],this['editor']['model']['document']['history']['version']),_0x42515e['fromVersion']===_0x42515e['toVersion']?(0x0!==_0x42515e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x42515e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x42515e['id'],this['_startingVersion']=_0x42515e['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',_0x596443=>!_0x596443),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xebaa07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35983e;for(const _0x2658ae in _0xebaa07){const _0x3e4c1f=_0x2658ae,_0x747a3b=_0xebaa07[_0x3e4c1f];if('revisionHistoryLicenseKeyValid'==_0x747a3b||'revisionHistoryLicenseKeyInvalid'==_0x747a3b||'revisionHistoryLicenseKeyExpired'==_0x747a3b||'revisionHistoryLicenseKeyDomainLimit'==_0x747a3b||'revisionHistoryLicenseKeyNotAllowed'==_0x747a3b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x747a3b||'revisionHistoryLicenseKeyTrialLimit'==_0x747a3b||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x747a3b||'revisionHistoryLicenseKeyUsageLimit'==_0x747a3b){delete _0xebaa07[_0x3e4c1f],_0x35983e=_0x747a3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x35983e&&_0xebaa07['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x35983e&&_0xebaa07['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x35983e&&_0xebaa07['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x35983e&&_0xebaa07['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x35983e&&_0xebaa07['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x35983e&&_0xebaa07['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x35983e&&_0xebaa07['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x35983e&&_0xebaa07['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ac527=this['repository']['getRevision'](0x0),_0x28db14=await this['getRevisionDocumentData'](_0x4ac527),_0x5a7db4=await this['getRevisionRootsAttributes'](_0x4ac527);this['_replaceEditorDataWithRevisionData'](_0x28db14,_0x5a7db4);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1ebcdf){this['_source']=_0x1ebcdf;}async['update'](){const _0x528500=await this['_source']['getLatestVersion']();if(_0x528500>this['currentRevision']['toVersion']){await this['_loadState']();const _0x426883=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x528500});_0x426883['authors']=_0x426883['authorsIds']['map'](_0x294a4a=>this['editor']['plugins']['get']('Users')['getUser'](_0x294a4a)),this['currentRevision']['_update'](_0x426883);}}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'](_0x286398={},_0x2ab407=null){const _0x30f4a4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2ab407>this['currentRevision']['toVersion']&&(_0x2ab407=null),null===_0x2ab407&&(_0x2ab407=await this['_source']['getLatestVersion']());const _0xde6b4e=this['_getFromVersion'](_0x2ab407),_0x359c6c=this['buildRevisionData']({'from':_0xde6b4e,'to':_0x2ab407});if(this['currentRevision']['toVersion']<_0x2ab407){const _0x584415=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2ab407,'to':_0x2ab407});_0x584415['authors']=[],_0x584415['authorsIds']=[],_0x584415['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x584415,!0x0),delete _0x584415['authors'],_0x30f4a4['push'](_0x584415);}_0x286398['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x286398['name']=_0x286398['name']||null,_0x286398['id']=_0x286398['id']||_0x4e103a(),_0x286398={..._0x286398,..._0x359c6c};const _0x3f9e15=this['addRevisionData'](_0x286398);_0x30f4a4['push'](_0x286398);const _0x2a164f=this['repository']['getIndex'](_0x3f9e15);if(0x0!==_0x2a164f){const _0x26308a=this['repository']['getRevision'](_0x2a164f-0x1);if(_0x26308a['fromVersion']!==_0x2ab407){const _0xc60a96=this['_revisionDataBuilder']['getData'](_0x2ab407,_0x26308a['toVersion']),_0x32da5c={'id':_0x26308a['id'],'diffData':_0xc60a96['diffData'],'authorsIds':_0xc60a96['authorsIds'],'authors':_0xc60a96['authorsIds']['map'](_0x3fda16=>this['editor']['plugins']['get']('Users')['getUser'](_0x3fda16)),'fromVersion':_0x2ab407};_0x26308a===this['currentRevision']&&(_0x32da5c['createdAt']=new Date(_0x286398['createdAt']['getTime']()+0xa)),_0x26308a['_update'](_0x32da5c,!0x0),delete _0x32da5c['authors'],_0x30f4a4['push'](_0x32da5c);}}if(this['adapter']){for(const _0x3a76bc of _0x30f4a4)this['_bufferUpdate'](_0x3a76bc['id'],_0x3a76bc,!0x0);this['sendBufferedUpdates']();}return _0x3f9e15;}['addRevisionData'](_0x15aac1){const _0x67541b=this['repository']['createRevision'](_0x15aac1);return this['adapter']&&_0x67541b['on']('_update',(_0x13217c,_0x4aa5a2,_0x5408ef)=>{_0x5408ef||(this['_bufferUpdate'](_0x4aa5a2['id'],_0x4aa5a2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x67541b,this['_findInsertionIndex'](_0x67541b)),_0x67541b;}async['getRevisionDocumentData'](_0x4d6b19){await this['_loadRevisionData'](_0x4d6b19);const _0x5da4f9={};for(const _0x176108 in _0x4d6b19['diffData']){if(_0x4d6b19['diffData'][_0x176108]['attachChange']&&!_0x4d6b19['diffData'][_0x176108]['attachChange']['isAttached'])continue;const _0x40c20e=this['_removeRevisionMarkers'](JSON['parse'](_0x4d6b19['diffData'][_0x176108]['insertions'])),_0x50b47a=this['editor']['editing']['view']['document'],_0x460d24=new _0x4a9627(_0x50b47a,_0x40c20e['map'](_0x2562a9=>C(_0x2562a9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5da4f9[_0x176108]=this['editor']['data']['processor']['toData'](_0x460d24),this['editor']['data']['processor']['useFillerType']('default');}return _0x5da4f9;}async['getRevisionRootsAttributes'](_0x38c206){await this['_loadRevisionData'](_0x38c206);const _0x41eaef={};for(const _0x4e06fe in _0x38c206['diffData'])_0x38c206['diffData'][_0x4e06fe]['attachChange']&&!_0x38c206['diffData'][_0x4e06fe]['attachChange']['isAttached']||(_0x41eaef[_0x4e06fe]=_0x38c206['diffData'][_0x4e06fe]['attributesAfter']||{});return _0x41eaef;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5ee117=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x26f259=0x0;_0x26f259<_0x5ee117['length'];_0x26f259++){const _0x2cae8e=_0x5ee117[_0x26f259];let _0x41dcde=!0x1;for(const _0x2356ae of Object['keys'](_0x2cae8e))void 0x0===_0x2cae8e[_0x2356ae]?delete _0x2cae8e[_0x2356ae]:'id'!==_0x2356ae&&(_0x41dcde=!0x0);_0x41dcde||(_0x5ee117[_0x26f259]=null);}if(_0x5ee117=_0x5ee117['filter'](_0x391fba=>null!==_0x391fba),!_0x5ee117['length'])return;for(let _0x23b5b7=0x0;_0x23b5b7<_0x5ee117['length'];_0x23b5b7++){const _0x6d19ed=_0x5ee117[_0x23b5b7];void 0x0!==_0x6d19ed['fromVersion']&&void 0x0===_0x6d19ed['toVersion']&&(_0x6d19ed['toVersion']=this['repository']['getRevision'](_0x6d19ed['id'])['toVersion']),void 0x0!==_0x6d19ed['toVersion']&&void 0x0===_0x6d19ed['fromVersion']&&(_0x6d19ed['fromVersion']=this['repository']['getRevision'](_0x6d19ed['id'])['fromVersion']);}const _0x5bc6e3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5ee117,_0x5bc6e3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f6757=>{if(_0x3f6757){for(const _0x1124c9 of _0x3f6757)this['setRevisionData']({'id':_0x1124c9['id'],'createdAt':_0x1124c9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x17aca9,_0x22a869){let _0x3960e8=this['editor']['config']['get']('initialData'),_0x1a80f4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3960e8){_0x3960e8={};for(const _0x4da849 of this['editor']['model']['document']['getRootNames']())_0x3960e8[_0x4da849]='';}if('string'==typeof _0x3960e8&&(_0x3960e8={'main':_0x3960e8}),void 0x0===_0x1a80f4){_0x1a80f4={};for(const _0x1c2728 of this['editor']['model']['document']['getRootNames']())_0x1a80f4[_0x1c2728]={};}let _0x3efba4=!0x1;const _0x5969b0=Object['keys'](_0x3960e8),_0x5dda26=Object['keys'](_0x17aca9);for(const _0x48a2e6 of _0x5969b0){if(_0x3960e8[_0x48a2e6]!==_0x17aca9[_0x48a2e6]&&''!==_0x3960e8[_0x48a2e6]['trim']()){_0x3efba4=!0x0;break;}if(!_0xfaa94d(_0x1a80f4[_0x48a2e6],_0x22a869[_0x48a2e6])&&Object['keys'](_0x1a80f4[_0x48a2e6])['length']>0x0){_0x3efba4=!0x0;break;}}_0x3efba4||(_0x3efba4=_0x5dda26['some'](_0x4065ec=>!this['editor']['model']['document']['getRoot'](_0x4065ec))),_0x3efba4&&_0xd09106('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3960e8,'editorRootsAttributes':_0x1a80f4,'revisionData':_0x17aca9,'revisionRootsAttributes':_0x22a869}),this['editor']['config']['set']('initialData',_0x17aca9),this['editor']['config']['set']('rootsAttributes',_0x22a869);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2d5186=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2d5186['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3ae627){const _0xca3208=this['repository']['getRevisions']();_0xca3208['reverse']();let _0x1fcb57=0x0;for(;_0x1fcb57<_0xca3208['length'];){const _0x7e6100=_0xca3208[_0x1fcb57];if(_0x7e6100===this['currentRevision']){_0x1fcb57++;continue;}if(_0x7e6100['id']===this['_initialRevisionId'])break;const _0x11e56c=_0x3ae627['toVersion']-_0x7e6100['toVersion']||_0x3ae627['fromVersion']-_0x7e6100['fromVersion'];if(_0x11e56c>0x0)break;if(_0x11e56c<0x0)_0x1fcb57++;else{if(!_0x3ae627['creator']&&_0x7e6100['creator'])break;if(_0x7e6100['creator']||!_0x3ae627['creator']){if(_0x3ae627['createdAt']>_0x7e6100['createdAt'])break;_0x1fcb57++;}else _0x1fcb57++;}}return _0x1fcb57;}['setRevisionData'](_0x5cebe3){const _0x592102=this['repository']['getRevision'](_0x5cebe3['id']);if(_0x5cebe3['createdAt']&&(_0x5cebe3['createdAt']=new Date(_0x5cebe3['createdAt'])),_0x5cebe3['authorsIds']){const _0x50c29b=this['editor']['plugins']['get']('Users');_0x5cebe3['authors']=_0x5cebe3['authorsIds']['map'](_0x247c5c=>_0x50c29b['getUser'](_0x247c5c));}_0x592102['_update'](_0x5cebe3,!0x0);}['buildRevisionData']({revision:_0x5c4ac0=null,from:_0x100e8d=null,to:_0x3a3971=null}){_0x100e8d=null!==_0x100e8d?_0x100e8d:_0x5c4ac0['fromVersion'],_0x3a3971=null!==_0x3a3971?_0x3a3971:_0x5c4ac0['toVersion'];const _0x1e6cad=this['_revisionDataBuilder']['getData'](_0x100e8d,_0x3a3971),_0x287afb={'diffData':_0x1e6cad['diffData'],'authorsIds':_0x1e6cad['authorsIds'],'fromVersion':_0x100e8d,'toVersion':_0x3a3971};if(!_0x5c4ac0||_0x3a3971!==_0x5c4ac0['toVersion']){const _0x5eafa8=_0x3a3971-0x1,_0x204538=this['_source']['history']['getOperation'](_0x5eafa8);_0x287afb['createdAt']=_0x204538&&_0x204538['createdAt']||new Date();}if(this['_loadedStateData']&&_0x100e8d===this['_loadedStateData']['fromVersion']){for(const _0x44d529 of this['_loadedStateData']['authors'])_0x287afb['authorsIds']['includes'](_0x44d529['id'])||_0x287afb['authorsIds']['push'](_0x44d529['id']);}return _0x287afb;}['_loadRevisionData'](_0x3c8be7){if(!_0x3c8be7||_0x3c8be7['diffData'])return Promise['resolve']();{const _0x5e3034=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5e3034,'revisionId':_0x3c8be7['id']})['then'](_0x2bd1ca=>{_0x3c8be7['diffData']=_0x2bd1ca['diffData'];});}}['_bufferUpdate'](_0x1bca6d,_0x459604,_0x1916e4){if(this['_bufferedUpdates']['has'](_0x1bca6d)){const _0x1195cc=this['_bufferedUpdates']['get'](_0x1bca6d);_0x459604=_0x1916e4?{..._0x1195cc,..._0x459604}:{..._0x459604,..._0x1195cc};}this['_bufferedUpdates']['set'](_0x1bca6d,_0x459604);}['_getFromVersion'](_0x3bdd6e){const _0x4a9f0c=this['repository']['getRevisions']();_0x4a9f0c['reverse'](),_0x4a9f0c['shift']();const _0x404287=_0x4a9f0c['find'](_0x26dc0f=>_0x26dc0f['toVersion']<=_0x3bdd6e)['toVersion'];return _0x404287<this['_startingVersion']?this['_startingVersion']:_0x404287;}['_createInitialRevision'](_0x48256a){const _0x3ed45d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3ed45d)this['_initialRevisionId']=_0x3ed45d['id'];else{const _0x301ccd=!this['editor']['model']['document']['roots']['find'](_0x20a2d5=>this['editor']['model']['hasContent'](_0x20a2d5)),_0x1cb42f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a8c1d=m(this['editor']['locale'],_0x301ccd?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48256a,'to':_0x48256a,'id':this['_initialRevisionId'],'name':_0x1a8c1d,'creatorId':_0x1cb42f});}}['_createCurrentRevision'](_0x51fba0){const _0x1137fd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1137fd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x51fba0,'to':_0x51fba0,'id':_0x1137fd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1a4040,from:_0x11de10,to:_0x76845d,creatorId:_0x3ea62b,id:_0x2a87c1}){const _0x19f90b=this['buildRevisionData']({'from':_0x11de10,'to':_0x76845d});_0x19f90b['name']=_0x1a4040,_0x19f90b['creatorId']=_0x3ea62b,_0x19f90b['id']=_0x2a87c1;const _0x144e9b=this['addRevisionData'](_0x19f90b);return this['adapter']&&this['_bufferUpdate'](_0x19f90b['id'],_0x19f90b,!0x0),_0x144e9b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x364b34){return(_0x364b34=_0x364b34['filter'](_0x340935=>!_0x340935['name']||'revision-start'!==_0x340935['name']&&'revision-end'!==_0x340935['name']))['forEach'](_0x5a396e=>{'string'!=typeof _0x5a396e&&(_0x5a396e['children']=this['_removeRevisionMarkers'](_0x5a396e['children']),_0x5a396e['attributes']=_0x5a396e['attributes']['filter'](_0x1d6c8c=>!_0x1d6c8c[0x0]['startsWith']('data-revision-')));}),_0x364b34;}}function C(_0x2a6852,_0x503551){const _0x378bac=_0x503551['editing']['view']['document'];if('string'==typeof _0x2a6852)return new _0x5874de(_0x378bac,_0x2a6852);{const _0x1be83b=_0x2a6852['children']['map'](_0x32e6e9=>C(_0x32e6e9,_0x503551));return new(P[_0x2a6852['type']]||_0x97d576)(_0x378bac,_0x2a6852['name'],_0x2a6852['attributes'],_0x1be83b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x41cb68){this['editor']=_0x41cb68,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'](_0x3c0780){this['source']=_0x3c0780;const _0x5adef4=new Map(),_0x3936d3=new Map(),_0x143aa3=this['editor']['model']['document']['roots']['map'](_0x249e2e=>_0x249e2e['rootName']);for(const _0x9cf44f of _0x143aa3){const _0x2c9fa8=this['editor']['model']['document']['getRoot'](_0x9cf44f),_0x45b191=T(_0x2c9fa8);_0x5adef4['set'](_0x9cf44f,_0x45b191),_0x3936d3['set'](_0x9cf44f,Object['fromEntries'](_0x2c9fa8['getAttributes']()));}const _0x4f8dea=Array['from'](this['editor']['model']['markers'])['map'](_0x376ce4=>[_0x376ce4['name'],_0x376ce4['getRange']()]),_0x309895=this['source']['version'];this['_saveMetaData'](_0x309895,_0x5adef4,_0x4f8dea,_0x3936d3),this['_startingRevisionId']=this['_revisionId'];const _0x323610=new Map(),_0x4491c4=new Map();for(const _0x2ece3f of _0x143aa3){const _0x25aba5=F(_0x2ece3f);_0x323610['set'](_0x2ece3f,_0x25aba5),_0x4491c4['set'](_0x2ece3f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x323610,[],_0x4491c4);}['getData'](_0x507519,_0x122ea6){if(this['_lastFrom']===_0x507519&&this['_lastTo']<=_0x122ea6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x122ea6,!0x0);else{if(!this['_savedMetaData']['has'](_0x507519)){const _0x30f6b4=this['_getPreviousFrom'](_0x507519);this['_calculateMetaData'](_0x30f6b4,_0x507519,!0x1);}this['_calculateMetaData'](_0x507519,_0x122ea6,!0x0);}return this['_lastFrom']=_0x507519,this['_lastTo']=_0x122ea6,this['_getState']();}['loadState'](_0xb7a53a){this['_reset'](),this['_lastFrom']=_0xb7a53a['fromVersion'],this['_lastTo']=_0xb7a53a['toVersion'];for(const _0x42bc66 in _0xb7a53a['diffData']){const _0x36aeca=_0xb7a53a['diffData'][_0x42bc66]['attachChange'],_0x68cb1e=_0x5e1b59(_0xb7a53a['diffData'][_0x42bc66]['attributesBefore'])||{},_0x1a5ed6=this['_makeModelFromViewString'](_0xb7a53a['diffData'][_0x42bc66]['deletions']);_0x1a5ed6['rootName']=_0x42bc66,_0x1a5ed6['_isAttached']=!_0x36aeca||!_0x36aeca['isAttached'],_0x1a5ed6['isAttached']=()=>_0x1a5ed6['_isAttached'],this['_baseRoots']['set'](_0x42bc66,_0x1a5ed6),this['_baseRootsAttributes']['set'](_0x42bc66,_0x68cb1e),_0x36aeca&&this['_touchedRoots']['set'](_0x42bc66,_0x36aeca);const _0x2a12bb=this['_makeIdsRoot'](_0x1a5ed6);this['_baseIdsRoots']['set'](_0x42bc66,_0x2a12bb);for(const [_0x5cc4ae,_0x57e66b]of _0x1a5ed6['markers']){if(!_0x5cc4ae['startsWith']('revision:'))continue;const _0x8cba17=_0x5cc4ae['split'](':')[0x2];for(const _0x45237b of _0x57e66b['getWalker']({'singleCharacters':!0x0})){const _0x38d868=this['_getVidAttributeName'](_0x45237b),_0x5b27f0='elementEnd'==_0x45237b['type']?_0x45237b['previousPosition']['path']['slice'](0x0,-0x1):_0x45237b['previousPosition']['path'],_0xba5a4f=_0x2a12bb['getNodeByPath'](_0x5b27f0)['getAttribute'](_0x38d868);this['_touched']['set'](_0xba5a4f,{'userId':_0x8cba17});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4bbb66=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x18947c=>!this['_touched']['has'](_0x18947c));let _0x1181d8=0x0;const _0x7bf79e=new Map();for(const _0x42306f in _0xb7a53a['diffData']){const _0x3e7a2f=_0xb7a53a['diffData'][_0x42306f]['attachChange'],_0x529e9f=_0x5e1b59(_0xb7a53a['diffData'][_0x42306f]['attributesAfter'])||{},_0x162565=this['_makeModelFromViewString'](_0xb7a53a['diffData'][_0x42306f]['insertions']);_0x162565['rootName']=_0x42306f,_0x162565['_isAttached']=!_0x3e7a2f||_0x3e7a2f['isAttached'],_0x162565['isAttached']=()=>_0x162565['_isAttached'],this['_diffRoots']['set'](_0x42306f,_0x162565),this['_diffRootsAttributes']['set'](_0x42306f,_0x529e9f);const _0x4848f3=this['_makeIdsRoot'](_0x162565,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x42306f,_0x4848f3),_0x7bf79e['set'](_0x42306f,_0x162565['isAttached']()?_0x529e9f:{});for(const [_0x12576d,_0x260ec3]of _0x162565['markers']){if(!_0x12576d['startsWith']('revision:'))continue;const _0x34465a=_0x12576d['split'](':')[0x2];for(const _0x4e49b6 of _0x260ec3['getWalker']({'singleCharacters':!0x0})){const _0x338af4=this['_getVidAttributeName'](_0x4e49b6),_0x5ab06d=this['_revisionId']++,_0x3eb0d9='elementEnd'==_0x4e49b6['type']?_0x4e49b6['previousPosition']['path']['slice'](0x0,-0x1):_0x4e49b6['previousPosition']['path'];_0x4848f3['getNodeByPath'](_0x3eb0d9)['_setAttribute'](_0x338af4,_0x5ab06d),this['_touched']['set'](_0x5ab06d,{'userId':_0x34465a});}}for(const _0x32bf88 of this['editor']['model']['createRangeIn'](_0x162565)['getWalker']({'singleCharacters':!0x0})){const _0x37b30e=this['_getVidAttributeName'](_0x32bf88),_0x3d9475='elementEnd'==_0x32bf88['type']?_0x32bf88['previousPosition']['path']['slice'](0x0,-0x1):_0x32bf88['previousPosition']['path'],_0x8c1f54=_0x4848f3['getNodeByPath'](_0x3d9475);_0x8c1f54['getAttribute'](_0x37b30e)>0x0||_0x8c1f54['_setAttribute'](_0x37b30e,_0x4bbb66[_0x1181d8++]);}for(const [_0x320cf2,_0x37a37f]of _0x162565['markers'])_0x320cf2['startsWith']('revision:')||this['_markers']['set'](_0x320cf2,_0x37a37f);}const _0x29b9df=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29b9df),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29b9df,0x1));const _0x2c3233=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2c3233),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c3233,0x1));const _0x5f2c17=Array['from'](this['_diffRoots'])['map'](([_0x84c345,_0x1b098d])=>[_0x84c345,T(_0x1b098d)]);this['_saveMetaData'](this['_lastTo'],_0x5f2c17,this['_markers'],_0x7bf79e);}['_makeModelFromViewString'](_0x1cce60){const _0x141829=JSON['parse'](_0x1cce60),_0x391261=this['editor']['editing']['view']['document'],_0x49e3d9=new _0x4a9627(_0x391261,_0x141829['map'](_0x1de0a5=>C(_0x1de0a5,this['editor'])));return this['editor']['data']['toModel'](_0x49e3d9);}['_saveMetaData'](_0x476748,_0x536a45,_0x239a41,_0x2890ca){const _0x497393=new Map(_0x536a45),_0x2c2d81=new Map(_0x5e1b59(_0x2890ca)),_0x5e4e78=new Map();for(const [_0x533f52,_0x393d98]of _0x239a41)_0x5e4e78['set'](_0x533f52,{'start':_0x393d98['start']['clone'](),'end':_0x393d98['end']['clone'](),'rootName':_0x393d98['root']['rootName']});this['_savedMetaData']['set'](_0x476748,{'roots':_0x497393,'markers':_0x5e4e78,'rootsAttributes':_0x2c2d81});}['_removeMetaData'](_0x4f315f){this['_savedMetaData']['delete'](_0x4f315f);}['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'](_0x23ff85,_0x36e1a5=null){let _0x1bd903=null;_0x23ff85['is']('documentFragment')||(_0x1bd903=new ft(_0x23ff85['name'],{'vid_start':null===_0x36e1a5?this['_revisionId']++:_0x36e1a5++}));const _0x347c9d=[];for(const _0x10b2b1 of _0x23ff85['getChildren']())if(_0x10b2b1['is']('element')){_0x347c9d['push'](this['_makeIdsRoot'](_0x10b2b1,_0x36e1a5));const _0x42b4d4=_0x347c9d[_0x347c9d['length']-0x1];null!==_0x36e1a5&&(_0x36e1a5=_0x42b4d4['is']('element','$text')?_0x42b4d4['getAttribute']('vid')+0x1:_0x42b4d4['getAttribute']('vid_end')+0x1);}else{for(let _0x162c6c=0x0;_0x162c6c<_0x10b2b1['offsetSize'];_0x162c6c++)_0x347c9d['push'](new ft('$text',{'vid':null===_0x36e1a5?this['_revisionId']++:_0x36e1a5++}));}if(_0x23ff85['is']('documentFragment')){const _0x289ed5=F(_0x23ff85['rootName']);return _0x289ed5['_insertChild'](0x0,_0x347c9d),_0x289ed5;}return _0x1bd903['_setAttribute']('vid_end',null===_0x36e1a5?this['_revisionId']++:_0x36e1a5++),_0x1bd903['_insertChild'](0x0,_0x347c9d),_0x1bd903;}['_calculateMetaData'](_0x287554,_0x2d3ca9,_0x23f034){this['_reset']();const {roots:_0x30b1f9,markers:_0x1b764d,rootsAttributes:_0x4d7d84}=this['_savedMetaData']['get'](_0x287554);this['_baseRoots']=new Map(_0x30b1f9),this['_baseRootsAttributes']=new Map(_0x5e1b59(_0x4d7d84));for(const [_0x25c664,_0x5c6f3e]of this['_baseRoots'])if('$graveyard'!==_0x25c664&&(this['_diffRoots']['set'](_0x25c664,T(_0x5c6f3e)),this['_diffRootsAttributes']=new Map(_0x5e1b59(_0x4d7d84)),_0x23f034)){const _0x232f4e=this['_revisionId'];this['_idsRoots']['set'](_0x25c664,this['_makeIdsRoot'](_0x5c6f3e)),this['_baseIdsRoots']['set'](_0x25c664,this['_makeIdsRoot'](_0x5c6f3e,_0x232f4e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x23f034&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24ef5c,_0xf5a5c8]of _0x1b764d){const _0x328599=this['_baseRoots']['get'](_0xf5a5c8['rootName']),_0x459c73=this['_diffRoots']['get'](_0xf5a5c8['rootName']),_0x3db909=new vt(this['_fixPosition'](_0xf5a5c8['start'],_0x328599),this['_fixPosition'](_0xf5a5c8['end'],_0x328599)),_0x58592a=this['_fixRange'](_0x3db909,_0x459c73);_0x328599['markers']['set'](_0x24ef5c,_0x3db909),this['_markers']['set'](_0x24ef5c,_0x58592a);}this['_applyOperations'](_0x287554,_0x2d3ca9,_0x23f034);}['_applyOperations'](_0x419ab3,_0x596f5d,_0x457e3f){for(const _0x1db16f of this['source']['getOperations'](_0x419ab3,_0x596f5d))this['_handleOperation'](_0x1db16f,_0x457e3f);for(const _0x2e07ee of this['_diffRoots']['values']())_0x2e07ee['markers']['clear']();for(const [_0x59d318,_0x16d856]of this['_markers']){this['_diffRoots']['get'](_0x16d856['root']['rootName'])['markers']['set'](_0x59d318,_0x16d856['clone']());}const _0x35aa4c=new Map(),_0x4e08ad=new Map();for(const [_0x1e162d,_0x4d710a]of this['_diffRoots'])_0x35aa4c['set'](_0x1e162d,T(_0x4d710a)),_0x4e08ad['set'](_0x1e162d,this['_diffRootsAttributes']['get'](_0x1e162d));this['_saveMetaData'](_0x596f5d,_0x35aa4c,this['_markers'],_0x4e08ad);}['_getPreviousFrom'](_0x345214){const _0x24c09a=Array['from'](this['_savedMetaData']['keys']());_0x24c09a['sort']((_0x46dac1,_0xc0d985)=>_0x46dac1-_0xc0d985),_0x24c09a['reverse']();for(const _0x331280 of _0x24c09a)if(_0x331280<_0x345214)return _0x331280;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x31e03b,_0x5bb712){const _0xa15708=Array['from'](_0x5bb712['markers'])['map'](([_0x16b25d,_0x140e0b])=>[_0x16b25d,this['_fixRange'](_0x140e0b,_0x31e03b)]);_0x31e03b['markers']=new Map(_0xa15708);}['_transformMarkers'](_0x253e7d){for(const _0x575e30 of this['_markers']['values']()){const _0x439c01=_0x575e30['getTransformedByOperation'](_0x253e7d),_0x137a1d=vt['_createFromRanges'](_0x439c01);_0x575e30['start']=_0x137a1d['start'],_0x575e30['end']=_0x137a1d['end'];}}['_handleOperation'](_0x5bc0a2,_0x1664ba){if('addRoot'!=_0x5bc0a2['type']&&'detachRoot'!=_0x5bc0a2['type']){if('insert'==_0x5bc0a2['type']){const _0x5cfee4=_0x5bc0a2['position']['root']['rootName'];this['_diffRoots']['has'](_0x5cfee4)||(this['_diffRoots']['set'](_0x5cfee4,F(_0x5cfee4,!0x0)),this['_diffRootsAttributes']['set'](_0x5cfee4,{}),_0x1664ba&&this['_idsRoots']['set'](_0x5cfee4,F(_0x5cfee4,!0x0)));}else{if('addRootAttribute'==_0x5bc0a2['type']||'removeRootAttribute'==_0x5bc0a2['type']||'changeRootAttribute'==_0x5bc0a2['type'])return void this['_handleRootAttributeOperation'](_0x5bc0a2);'marker'==_0x5bc0a2['type']&&this['_handleMarkerOperation'](_0x5bc0a2);}if('marker'!==_0x5bc0a2['type']){const _0x3898be=this['_cloneOperation'](_0x5bc0a2,this['_diffRoots']);_0x3898be['_execute'](),this['_transformMarkers'](_0x3898be);}if(_0x1664ba)switch(_0x5bc0a2['type']){case'insert':this['_handleInsertOperation'](_0x5bc0a2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5bc0a2);break;case'merge':this['_handleMergeOperation'](_0x5bc0a2);break;case'split':this['_handleSplitOperation'](_0x5bc0a2);}}else this['_handleRootOperation'](_0x5bc0a2,_0x1664ba);}['_cloneOperation'](_0x56988c,_0x52b5a6){const _0xb1b141=_0x56988c['clone']();return _0xb1b141['_authorId']=_0x56988c['_authorId'],this['_fixOperation'](_0xb1b141,_0x52b5a6),_0xb1b141;}['_getBaseVids'](_0x5d7399){return _0x5d7399['map'](_0x1bbb1b=>{const _0x11b111=this['_getVidAttributeName'](_0x1bbb1b);return Number(_0x1bbb1b['item']['getAttribute'](_0x11b111));});}['_generateTape'](_0x3396f4,_0x1a7603){if(_0x3396f4['is']('element','$text'))_0x1a7603['push']({'item':_0x3396f4,'type':'text'});else{_0x3396f4['is']('element')&&_0x1a7603['push']({'item':_0x3396f4,'type':'elementStart'});for(const _0x316589 of _0x3396f4['getChildren']())this['_generateTape'](_0x316589,_0x1a7603);_0x3396f4['is']('element')&&_0x1a7603['push']({'item':_0x3396f4,'type':'elementEnd'});}return _0x1a7603;}['_getState'](){const _0x4715bc=new Map(this['_touched']),_0x28407a=new Map(_0x4715bc),_0x567210=new Map(),_0x271b22={'insertions':{},'deletions':{}},_0x158adf={'insertions':{},'deletions':{}},_0xe14812=new Map(),_0x1f7c1f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1f7c1f['delete']('$graveyard');for(const _0x3e07f7 of _0x1f7c1f){const _0x3047e5=this['_diffRoots']['get'](_0x3e07f7)||F(_0x3e07f7,!0x1),_0x38ba28=this['_baseRoots']['get'](_0x3e07f7)||F(_0x3e07f7,!0x1);_0x3047e5['isAttached']()||_0x38ba28['isAttached']()?(_0x271b22['insertions'][_0x3e07f7]=T(_0x3047e5),_0x271b22['deletions'][_0x3e07f7]=T(_0x38ba28),this['_copyMarkers'](_0x271b22['deletions'][_0x3e07f7],_0x38ba28),this['_copyMarkers'](_0x271b22['insertions'][_0x3e07f7],_0x3047e5),_0x158adf['insertions'][_0x3e07f7]=this['_generateTape'](this['_idsRoots']['get'](_0x3e07f7),[]),_0x158adf['deletions'][_0x3e07f7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3e07f7)||F(_0x3e07f7,!0x1),[])):_0x1f7c1f['delete'](_0x3e07f7);}for(const _0x426721 of _0x1f7c1f){const _0x366910=_0x158adf['insertions'][_0x426721];for(const _0x3bcc5f of _0x366910){const _0x1e96c9=this['_getVidAttributeName'](_0x3bcc5f),_0xcc4973=_0x3bcc5f['item']['getAttribute'](_0x1e96c9);_0x28407a['delete'](_0xcc4973),_0xcc4973>=this['_startingRevisionId']&&_0x567210['set'](_0xcc4973,_0x4715bc['get'](_0xcc4973));}}for(const _0x3ccb25 of _0x1f7c1f){const _0x547ec7=_0x158adf['insertions'][_0x3ccb25],_0x24e9ae=this['_getBaseVids'](_0x158adf['deletions'][_0x3ccb25]);let _0x215f30=0x0;for(const _0x24895e of _0x547ec7){const _0x5285bc=this['_getVidAttributeName'](_0x24895e),_0x40f5b7=_0x24895e['item']['getAttribute'](_0x5285bc);if(!_0x567210['has'](_0x40f5b7)&&!_0xe14812['has'](_0x40f5b7)){if(_0x28407a['has'](_0x40f5b7))_0x215f30++;else{if(_0x40f5b7!=_0x24e9ae[_0x215f30]){const _0x5b1154=_0x4715bc['get'](_0x40f5b7)||_0x4715bc['get'](_0x24e9ae[_0x215f30]);for(;_0x40f5b7!=_0x24e9ae[_0x215f30];)_0x28407a['has'](_0x24e9ae[_0x215f30])||(_0xe14812['set'](_0x24e9ae[_0x215f30],_0x5b1154),_0x4715bc['set'](_0x24e9ae[_0x215f30],_0x5b1154)),_0x215f30++;}_0x215f30++;}}}}for(const _0x1bbbdd of _0x1f7c1f){const _0x4ff8e3=_0x158adf['insertions'][_0x1bbbdd];for(const _0x2c78d0 of _0x4ff8e3){const _0x346a74=this['_getVidAttributeName'](_0x2c78d0),_0x42ab3a=_0x2c78d0['item']['getAttribute'](_0x346a74);if(_0xe14812['has'](_0x42ab3a)){const _0x5cb504=_0xe14812['get'](_0x42ab3a);_0x28407a['has'](_0x42ab3a)||_0x28407a['set'](_0x42ab3a,{..._0x5cb504}),_0x567210['set'](_0x42ab3a,{..._0x5cb504});}}}for(const _0xfa810 of _0x28407a['keys']())_0xfa810>=this['_startingRevisionId']&&_0x28407a['delete'](_0xfa810);const _0x206369=new Map();for(const _0x3ed963 of _0x1f7c1f){let _0x30bcaa=_0x158adf['insertions'][_0x3ed963];for(const _0x1cbb89 of _0x30bcaa)if(_0x1cbb89['item']['is']('element','tableCell')){const _0x2374ae=this['_getVidAttributeName'](_0x1cbb89),_0x2f4eb7=_0x1cbb89['item']['getAttribute'](_0x2374ae);if(_0x567210['has'](_0x2f4eb7)){const _0xb809f2=_0x1cbb89['item']['parent']['parent']['getAttribute']('vid_start'),_0x350318=_0x206369['get'](_0xb809f2)||new Set();_0x350318['add'](_0x567210['get'](_0x2f4eb7)['userId']),_0x206369['set'](_0xb809f2,_0x350318);}}_0x30bcaa=_0x158adf['deletions'][_0x3ed963];for(const _0x5344c3 of _0x30bcaa)if(_0x5344c3['item']['is']('element','tableCell')){const _0x1c2977=this['_getVidAttributeName'](_0x5344c3),_0x399a28=_0x5344c3['item']['getAttribute'](_0x1c2977);if(_0x28407a['has'](_0x399a28)){const _0x4b9522=_0x5344c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x51fd38=_0x206369['get'](_0x4b9522)||new Set();_0x51fd38['add'](_0x28407a['get'](_0x399a28)['userId']),_0x206369['set'](_0x4b9522,_0x51fd38);}}for(const _0x2ffc31 of _0x206369['keys']())(_0x567210['has'](_0x2ffc31)||_0x28407a['has'](_0x2ffc31))&&_0x206369['delete'](_0x2ffc31);}for(const _0x278d24 of _0x1f7c1f){const _0x12fb4a=_0x158adf['insertions'][_0x278d24];let _0x2011e6=null,_0xe8b877=null;for(const _0x33b030 of _0x12fb4a){const _0xdbcc70=this['_getVidAttributeName'](_0x33b030),_0x596ac6=_0x33b030['item']['getAttribute'](_0xdbcc70),_0x1337ed=_0x206369['get'](_0x596ac6);_0x1337ed&&'elementStart'==_0x33b030['type']&&(_0x2011e6=Array['from'](_0x1337ed)[0x0],_0xe8b877=_0x33b030['item']['getAttribute']('vid_end')),_0x2011e6&&(_0x28407a['set'](_0x596ac6,{'userId':_0x2011e6}),_0x567210['set'](_0x596ac6,{'userId':_0x2011e6})),_0x596ac6==_0xe8b877&&(_0x2011e6=null,_0xe8b877=null);}}const _0x182727={},_0x248882=new Set();for(const _0x5f37be of _0x1f7c1f){const _0x49a9f6=_0x271b22['deletions'][_0x5f37be],_0x650a7b=_0x271b22['insertions'][_0x5f37be];for(const {userId:_0x10292f}of this['_touchedMarkers']['values']())null!==_0x10292f&&_0x248882['add'](_0x10292f);for(const {userId:_0x35ff63}of this['_touchedRoots']['values']())null!==_0x35ff63&&_0x248882['add'](_0x35ff63);this['_markChanges'](_0x650a7b,_0x158adf['insertions'][_0x5f37be],_0x567210,'insertion',_0x248882),this['_markChanges'](_0x49a9f6,_0x158adf['deletions'][_0x5f37be],_0x28407a,'deletion',_0x248882),_0x182727[_0x5f37be]={'insertions':this['_prepareViewToSave'](_0x650a7b),'deletions':this['_prepareViewToSave'](_0x49a9f6),'attachChange':this['_touchedRoots']['get'](_0x5f37be)||null,'attributesBefore':_0x5e1b59(this['_baseRootsAttributes']['get'](_0x5f37be))||{},'attributesAfter':_0x5e1b59(this['_diffRootsAttributes']['get'](_0x5f37be))};}return{'diffData':_0x182727,'authorsIds':Array['from'](_0x248882)};}['_processRootBeforeSave'](_0x26b728){for(const [,_0x2ac729]of _0x26b728['markers']){const _0x130f57=_0x2ac729['start']['getAncestors']()['filter'](_0x31e438=>'tableCell'==_0x31e438['name']);for(const _0x6a35f of _0x130f57)0x1==_0x6a35f['childCount']&&_0x6a35f['getChild'](0x0)['is']('element','paragraph')&&_0x6a35f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x36bc2a){this['_processRootBeforeSave'](_0x36bc2a);const _0x581fd0=this['editor']['data']['toView'](_0x36bc2a,{}),_0x4bb6d6=Array['from'](_0x581fd0['getChildren']())['map'](_0x584193=>this['_getViewJson'](_0x584193));return JSON['stringify'](_0x4bb6d6);}['_getViewJson'](_0x22920b){if(_0x22920b['is']('$text'))return _0x22920b['data'];{const _0x51c5f9=_0x22920b;return{'type':Object['keys'](P)['find'](_0x48b190=>_0x22920b instanceof P[_0x48b190]),'name':_0x51c5f9['name'],'attributes':Array['from'](_0x51c5f9['getAttributes']()),'children':Array['from'](_0x51c5f9['getChildren']())['map'](_0x1735e2=>this['_getViewJson'](_0x1735e2))};}}['_markChanges'](_0x28bc34,_0x5b1d0e,_0x32d500,_0xeefe09,_0x211c27){let _0x568c97=null,_0x2eb30e=null,_0x182388=0x0;const _0x5d80fd=this['editor']['model'];for(let _0x34565f=0x0;_0x34565f<_0x5b1d0e['length'];_0x34565f++){const _0x6afdc1=this['_getVidAttributeName'](_0x5b1d0e[_0x34565f]),_0x40e905=_0x5b1d0e[_0x34565f]['item']['getAttribute'](_0x6afdc1),_0x2091fa=_0x32d500['get'](_0x40e905),_0x208b7a=_0x34565f==_0x5b1d0e['length']-0x1;(!_0x568c97&&_0x2091fa&&(_0x568c97=_0x2091fa,_0x2eb30e=_0x5b1d0e[_0x34565f]),_0x568c97&&(!_0x2091fa||_0x2091fa['userId']!=_0x568c97['userId']))&&(_0x9ac85e(_0x2091fa,B(_0x2eb30e,_0x28bc34,_0x5d80fd),B(_0x5b1d0e[_0x34565f],_0x28bc34,_0x5d80fd)),_0x568c97=_0x2091fa||null,_0x2eb30e=_0x2091fa?_0x5b1d0e[_0x34565f]:null),_0x568c97&&_0x208b7a&&_0x9ac85e(_0x2091fa,B(_0x2eb30e,_0x28bc34,_0x5d80fd),J(_0x5b1d0e[_0x34565f],_0x28bc34,_0x5d80fd));}function _0x9ac85e(_0x5716e5,_0x2096f3,_0x580dab){const _0x26f502=_0x568c97['userId'],_0xa3029e='revision:'+_0xeefe09+':'+_0x26f502+':'+_0x182388++,_0x63891d=_0x5d80fd['createRange'](_0x2096f3,_0x580dab);_0x28bc34['markers']['set'](_0xa3029e,_0x63891d),null!==_0x26f502&&_0x211c27['add'](_0x26f502);}}['_getVidAttributeName'](_0x5c792d){switch(_0x5c792d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1029d5,_0x46f2ae){_0x1029d5['baseVersion']=null;for(const _0x46570a in _0x1029d5){const _0xf14ef2=_0x1029d5[_0x46570a];if(_0xf14ef2 instanceof gt){const _0x3436c7=_0x46f2ae['get'](_0xf14ef2['root']['rootName']);_0x1029d5[_0x46570a]=this['_fixPosition'](_0xf14ef2,_0x3436c7);}if(_0xf14ef2 instanceof vt){const _0x1a8342=_0x46f2ae['get'](_0xf14ef2['root']['rootName']);_0x1029d5[_0x46570a]=this['_fixRange'](_0xf14ef2,_0x1a8342);}'root'===_0x46570a&&(_0x1029d5['root']=_0x46f2ae['get'](_0x1029d5['root']['rootName']));}}['_fixRange'](_0x14368b,_0x34a147){return this['editor']['model']['createRange'](this['_fixPosition'](_0x14368b['start'],_0x34a147),this['_fixPosition'](_0x14368b['end'],_0x34a147));}['_fixPosition'](_0x3ee2b1,_0x1c5234){return this['editor']['model']['createPositionFromPath'](_0x1c5234,_0x3ee2b1['path'],_0x3ee2b1['stickiness']);}['_handleInsertOperation'](_0x5c4cae){const _0x494f2d=this['_idsRoots']['get'](_0x5c4cae['position']['root']['rootName']),_0x2f90e7=this['_fixPosition'](_0x5c4cae['position'],_0x494f2d),_0x1a293a=null===_0x5c4cae['_authorId']?null:_0x5c4cae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48dd04=_0x2f90e7['parent'],_0x2f4741=this['_revisionId'],_0x77470f=[];for(const _0x14d98d of _0x5c4cae['nodes'])if(_0x14d98d['is']('element'))_0x77470f['push'](this['_makeIdsRoot'](_0x14d98d));else{for(let _0x630924=0x0;_0x630924<_0x14d98d['offsetSize'];_0x630924++)_0x77470f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5dec75=this['_revisionId'];for(let _0x305a31=_0x2f4741;_0x305a31<_0x5dec75;_0x305a31++)this['_touched']['set'](_0x305a31,{'userId':_0x1a293a});_0x48dd04['_insertChild'](_0x2f90e7['offset'],_0x77470f);}['_handleMoveOperation'](_0x54809a){(_0x54809a=this['_cloneOperation'](_0x54809a,this['_idsRoots']))['_execute']();const _0x458136=null===_0x54809a['_authorId']?null:_0x54809a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fba28=_0x54809a['getMovedRangeStart'](),_0x144701=_0x1fba28['parent'],_0x4ce741=_0x1fba28['offset'];!function _0xb72074(_0x1dcaca,_0x51fa77,_0x56d48b,_0x376476){for(let _0x3859cc=_0x56d48b;_0x3859cc<_0x376476;_0x3859cc++){const _0xd8f18d=_0x51fa77['getChild'](_0x3859cc);_0xd8f18d['is']('element','$text')?_0x1dcaca['set'](_0xd8f18d['getAttribute']('vid'),{'userId':_0x458136}):(_0x1dcaca['set'](_0xd8f18d['getAttribute']('vid_start'),{'userId':_0x458136}),_0xb72074(_0x1dcaca,_0xd8f18d,0x0,_0xd8f18d['childCount']),_0x1dcaca['set'](_0xd8f18d['getAttribute']('vid_end'),{'userId':_0x458136}));}}(this['_touched'],_0x144701,_0x4ce741,_0x4ce741+_0x54809a['howMany']);}['_handleMergeOperation'](_0x11ea71){const _0x5f1dfe=null===(_0x11ea71=this['_cloneOperation'](_0x11ea71,this['_idsRoots']))['_authorId']?null:_0x11ea71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa6d8a7=_0x11ea71['targetPosition']['parent'],_0x28a9fa=_0x11ea71['sourcePosition']['parent'],_0x3511df=_0xa6d8a7['getAttribute']('vid_end'),_0x4c0234=_0x28a9fa['getAttribute']('vid_start');_0xa6d8a7['_setAttribute']('vid_end',_0x28a9fa['getAttribute']('vid_end')),_0x28a9fa['_setAttribute']('vid_end',_0x3511df),this['_touched']['set'](_0x4c0234,{'userId':_0x5f1dfe}),this['_touched']['set'](_0x3511df,{'userId':_0x5f1dfe}),_0x11ea71['_execute']();}['_handleSplitOperation'](_0x44f9d7){const _0x10ec5d=null===(_0x44f9d7=this['_cloneOperation'](_0x44f9d7,this['_idsRoots']))['_authorId']?null:_0x44f9d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47b576=_0x44f9d7['graveyardPosition'],_0xb84e17=_0x44f9d7['splitPosition']['parent'];_0x44f9d7['_execute']();const _0xd22d28=_0xb84e17['getAttribute']('vid_end'),_0x7685ff=_0x44f9d7['insertionPosition']['nodeAfter'];if(_0x47b576){const _0x4863cd=_0x7685ff['getAttribute']('vid_end'),_0x10ef39=_0xb84e17['getAttribute']('vid_end');_0xb84e17['_setAttribute']('vid_end',_0x4863cd),_0x7685ff['_setAttribute']('vid_end',_0x10ef39),this['_touched']['set'](_0xb84e17['getAttribute']('vid_end'),{'userId':_0x10ec5d}),this['_touched']['set'](_0x7685ff['getAttribute']('vid_start'),{'userId':_0x10ec5d});}else{const _0x1ad5b8=this['_revisionId']++,_0x56eed0=this['_revisionId']++;_0xb84e17['_setAttribute']('vid_end',_0x1ad5b8),_0x7685ff['_setAttribute']('vid_start',_0x56eed0),_0x7685ff['_setAttribute']('vid_end',_0xd22d28),this['_touched']['set'](_0x1ad5b8,{'userId':_0x10ec5d}),this['_touched']['set'](_0x56eed0,{'userId':_0x10ec5d});}}['_handleMarkerOperation'](_0x4a87f8){if(!_0x4a87f8['affectsData'])return;const _0x32ee64=(_0x4a87f8=this['_cloneOperation'](_0x4a87f8,this['_diffRoots']))['oldRange']?_0x4a87f8['oldRange']['root']:null,_0x440128=_0x4a87f8['newRange']?_0x4a87f8['newRange']['root']:null;_0x32ee64&&this['_markers']['delete'](_0x4a87f8['name']),_0x440128&&this['_markers']['set'](_0x4a87f8['name'],_0x4a87f8['newRange']['clone']());const _0x4981a3=null===_0x4a87f8['_authorId']?null:_0x4a87f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13e909=_0x4a87f8['name'];if(!this['_touchedMarkers']['has'](_0x13e909))return void this['_touchedMarkers']['set'](_0x13e909,{'range':_0x4a87f8['oldRange'],'userId':_0x4981a3});const _0x397ce3=this['_touchedMarkers']['get'](_0x13e909),_0x5b6e64=_0x397ce3['range'],_0x136bf9=_0x4a87f8['newRange'];null==_0x5b6e64&&null==_0x136bf9||_0x5b6e64&&_0x136bf9&&_0x5b6e64['isEqual'](_0x136bf9)?this['_touchedMarkers']['delete'](_0x4a87f8['name']):_0x397ce3['userId']=_0x4981a3;}['_handleRootOperation'](_0x3fa2d4,_0x17a921){this['_diffRoots']['has'](_0x3fa2d4['rootName'])?this['_diffRoots']['get'](_0x3fa2d4['rootName'])['_isAttached']=_0x3fa2d4['isAdd']:(this['_diffRoots']['set'](_0x3fa2d4['rootName'],F(_0x3fa2d4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3fa2d4['rootName'],{}),_0x17a921&&this['_idsRoots']['set'](_0x3fa2d4['rootName'],F(_0x3fa2d4['rootName'],!0x0)));const _0x3cb05e=null===_0x3fa2d4['_authorId']?null:_0x3fa2d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3112ad=this['_touchedRoots']['get'](_0x3fa2d4['rootName']);_0x3112ad&&_0x3112ad['userId']===_0x3cb05e?this['_touchedRoots']['delete'](_0x3fa2d4['rootName']):this['_touchedRoots']['set'](_0x3fa2d4['rootName'],{'userId':_0x3cb05e,'isAttached':_0x3fa2d4['isAdd']});}['_handleRootAttributeOperation'](_0x278dee){const _0x4022a7=this['_diffRootsAttributes']['get'](_0x278dee['root']['rootName']);null===_0x278dee['newValue']?delete _0x4022a7[_0x278dee['key']]:_0x4022a7[_0x278dee['key']]=_0x278dee['newValue'];}}function T(_0x3146fb){const _0x1fe5ca=F(_0x3146fb['rootName'],_0x3146fb['isAttached']());for(const _0x4d24c7 of _0x3146fb['getChildren']()){const _0xcc3409=_0x4d24c7['_clone'](!0x0);_0x1fe5ca['_appendChild'](_0xcc3409);}return _0x1fe5ca;}function F(_0x2571da,_0x306deb=!0x0){const _0x487020=new mt();return _0x487020['rootName']=_0x2571da,_0x487020['_isAttached']=_0x306deb,_0x487020['isAttached']=()=>_0x487020['_isAttached'],_0x487020;}function B(_0x4fea52,_0x11cdd5,_0x4d062b){const _0x1ca9bd='elementEnd'==_0x4fea52['type']?_0x4d062b['createPositionAt'](_0x4fea52['item'],'end'):_0x4d062b['createPositionBefore'](_0x4fea52['item']);return _0x4d062b['createPositionFromPath'](_0x11cdd5,_0x1ca9bd['path'],_0x1ca9bd['stickiness']);}function J(_0x47c7a4,_0x30f002,_0xe972d9){const _0x33664b='elementStart'==_0x47c7a4['type']?_0xe972d9['createPositionAt'](_0x47c7a4['item'],0x0):_0xe972d9['createPositionAfter'](_0x47c7a4['item']);return _0xe972d9['createPositionFromPath'](_0x30f002,_0x33664b['path'],_0x33664b['stickiness']);}class ns extends _0xe1dbd2{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xc541c9,_0x2b049f){super(_0xc541c9),this['focusTracker']=new _0x5b977d(),this['keystrokes']=new _0x3e4776(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2b049f),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'](),_0x1c28f2({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xdbe898=_0x38c9ae=>_0x38c9ae['stopPropagation']();this['keystrokes']['set']('arrowright',_0xdbe898),this['keystrokes']['set']('arrowleft',_0xdbe898),this['keystrokes']['set']('arrowup',_0xdbe898),this['keystrokes']['set']('arrowdown',_0xdbe898);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4a41e0){this['revisionNameInputView']['fieldView']['element']['value']=_0x4a41e0['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xabde1d){const _0x48c620=new nt(this['locale'],_0x573ceb),_0x304539=_0x48c620['fieldView'];_0x304539['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1cd1b6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xabde1d&&(_0x1cd1b6+='\x20('+m(this['locale'],'optional')+')'),(_0x48c620['label']=_0x1cd1b6,_0x304539['on']('input',()=>{this['revisionNameInputValue']=_0x304539['element']['value']['trim']();}),_0x48c620);}}class u extends _0xca27d3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5de623=this['editor'],_0x138242=_0x5de623['plugins']['get']('RevisionTracker');_0x5de623['ui']['componentFactory']['add']('revisionHistory',_0x342e5f=>{const _0x27f0dc=_0x3d7371(_0x342e5f),_0x36536b=_0x27f0dc['panelView']['children'],_0x201040=new te(_0x342e5f),_0x2ee22c=new _0x2715ec(_0x342e5f),_0x13b81c=new _0x126554(_0x342e5f),_0x5f7e43=new _0x2715ec(_0x342e5f),_0x4ab608=new _0x126554(_0x342e5f);return _0x27f0dc['bind']('isEnabled')['to'](_0x138242,'isReady',_0x138242,'isEnabled',_0x5de623,'isReadOnly',(_0x49c907,_0x2d8dfa,_0xb8af1d)=>_0x49c907&&_0x2d8dfa&&!_0xb8af1d),_0x27f0dc['buttonView']['set']({'icon':_0x12fa6d['history'],'label':m(_0x342e5f,'Revision\x20history'),'tooltip':!0x0}),_0x13b81c['set']({'label':m(_0x342e5f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x13b81c['bind']('isEnabled')['to'](_0x138242,'isReady',_0x138242,'isEnabled',_0x5de623,'isReadOnly',(_0x5e7c69,_0x5b4e6e,_0x3f5703)=>_0x5e7c69&&_0x5b4e6e&&!_0x3f5703),_0x13b81c['on']('execute',()=>this['_showDialog']()),_0x4ab608['set']({'label':m(_0x342e5f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4ab608['bind']('isEnabled')['to'](_0x138242,'isReady',_0x5de623,'isReadOnly',(_0x12bfce,_0x1a90fb)=>_0x12bfce&&!_0x1a90fb),_0x4ab608['on']('execute',()=>{_0x5de623['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x27f0dc['isOpen']=!0x1,_0x5de623['editing']['view']['focus']();}),_0x2ee22c['children']['add'](_0x13b81c),_0x5f7e43['children']['add'](_0x4ab608),_0x201040['role']='menu',_0x201040['items']['addMany']([_0x2ee22c,_0x5f7e43]),_0x36536b['add'](_0x201040),_0x27f0dc;}),_0x5de623['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2ee039=this['editor'],_0xb6a0e4=_0x2ee039['locale'],_0x338929=new _0x149d8e(_0xb6a0e4),_0x3a4cd3=new _0x5d7be4(_0xb6a0e4);_0x338929['buttonView']['set']({'icon':_0x12fa6d['history'],'label':m(_0xb6a0e4,'Revision\x20history')});const _0x27b2a4=new _0x57d201(_0xb6a0e4,_0x338929),_0x537ec8=new _0x30359d(_0xb6a0e4);_0x537ec8['set']({'label':m(_0xb6a0e4,'Save\x20current\x20revision')}),_0x537ec8['delegate']('execute')['to'](_0x338929),_0x537ec8['on']('execute',()=>{this['_showDialog']();}),_0x27b2a4['children']['add'](_0x537ec8),_0x3a4cd3['items']['add'](_0x27b2a4);const _0x2e64ab=new _0x57d201(_0xb6a0e4,_0x338929),_0x461b32=new _0x30359d(_0xb6a0e4);return _0x461b32['set']({'label':m(_0xb6a0e4,'Open\x20revision\x20history')}),_0x461b32['delegate']('execute')['to'](_0x338929),_0x461b32['on']('execute',()=>{_0x2ee039['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2e64ab['children']['add'](_0x461b32),_0x3a4cd3['items']['add'](_0x2e64ab),_0x338929['panelView']['children']['add'](_0x3a4cd3),_0x338929;}['_showDialog'](){const _0x3b6873=this['editor'],_0x49fd64=_0x3b6873['locale'],_0x4c843e=_0x3b6873['plugins']['get']('Dialog'),_0x4fb3b3=_0x3b6873['plugins']['get']('RevisionTracker');function _0xea4bae(_0x466827){_0x3b6873['config']['get']('revisionHistory.requireRevisionName')&&''===_0x466827['revisionName']?_0x466827['revisionNameInputView']['errorText']=m(_0x49fd64,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3b6873['plugins']['get'](l)['saveRevision']({'name':_0x466827['revisionName']}),_0x4c843e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xea4bae(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4c843e['show']({'id':'revisionSave','title':m(_0x49fd64,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3b6873['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4c843e['hide']()},{'label':m(_0x3b6873['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1f77da){_0x1f77da['bind']('isEnabled')['to'](_0x4fb3b3,'isReady',_0x4fb3b3,'isEnabled',_0x3b6873,'isReadOnly',(_0x25492c,_0x580e9a,_0x68b91a)=>_0x25492c&&_0x580e9a&&!_0x68b91a);},'onExecute':()=>_0xea4bae(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1dcd2d=this['editor'],_0x2be717=_0x1dcd2d['locale'];this['_saveRevisionFormView']=new ns(_0x2be717,_0x1dcd2d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xe1dbd2{['changeId'];['_model'];constructor(_0x5567a1,_0x3d1819){super(_0x5567a1),this['_model']=_0x3d1819,this['changeId']=_0x3d1819['id'];const _0x44413d=this['bindTemplate'],_0x444839=m(_0x5567a1,_0x3d1819['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3d1819['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3d1819['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x44413d['to']('type',_0x263f45=>'ck-revision-change__'+_0x263f45)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x444839}]},{'text':'\x20'+_0x3d1819['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1b0a2b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x43a2b3){super(),this['id']=_0x43a2b3['id']||_0x4e103a(),this['author']=_0x43a2b3['author'],this['type']=_0x43a2b3['type'],this['data']=_0x43a2b3['data']||{},this['rootName']=_0x43a2b3['rootName'],this['set']('createdAt',_0x43a2b3['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(_0x19b49b,_0x45e516){this['newRevisionId']=_0x19b49b,this['oldRevisionId']=_0x45e516,this['changes']=new _0x314e29();}['_setChanges'](_0x2f2ca3){for(const _0x2b49b9 of _0x2f2ca3)this['changes']['add'](_0x2b49b9);}}const Y={'c':_0xba8963,'a':_0x22eb5a,'e':_0x8ce602,'r':_0x32835c,'u':_0x54718b};class d extends _0xca27d3{['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[_0x20f03a,_0x4377fb,j];}constructor(_0x5ba66e){super(_0x5ba66e),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',(_0x51c7c3,_0x6d8365,_0x2793a8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x152805=>{for(const _0x56a1d1 of this['editor']['editing']['view']['document']['roots'])_0x2793a8?_0x152805['removeClass']('ck-editor__editable__overlay',_0x56a1d1):_0x152805['addClass']('ck-editor__editable__overlay',_0x56a1d1);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xc2acb2=>null!==_0xc2acb2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5e8e0f,_0x5b3112,_0x446f6d)=>_0x5e8e0f&&_0x446f6d?_0x5b3112['changes']['getIndex'](_0x446f6d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xad5982,_0x5b5f67)=>_0xad5982?_0x5b5f67['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4377fb);}['init'](){const _0x242af0=this['editor'],_0x2be3b2=new yt(_0x242af0,{'direction':'backward'}),_0x2e9f99=new yt(_0x242af0,{'direction':'forward'});(_0x242af0['commands']['add']('showPreviousChange',_0x2be3b2),_0x242af0['commands']['add']('showNextChange',_0x2e9f99),_0x242af0['commands']['add']('restoreRevision',new _t(_0x242af0)),this['on']('change:numberOfChanges',()=>{_0x2be3b2['refresh'](),_0x2e9f99['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x242af0['enableReadOnlyMode']('revision-viewer'),_0x242af0['plugins']['has']('WidgetToolbarRepository'))&&_0x242af0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2f13df){await this['loadRevisionData'](_0x2f13df);const _0x2935e7={};for(const _0x58cb53 in _0x2f13df['diffData']){if(_0x2f13df['diffData'][_0x58cb53]['attachChange']&&!_0x2f13df['diffData'][_0x58cb53]['attachChange']['isAttached'])continue;const _0x2dc380=this['_removeRevisionMarkers'](JSON['parse'](_0x2f13df['diffData'][_0x58cb53]['insertions'])),_0xdacc2b=this['editor']['editing']['view']['document'],_0x354e3c=new _0x4a9627(_0xdacc2b,_0x2dc380['map'](_0xad47e=>this['_getViewObj'](_0xad47e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2935e7[_0x58cb53]=this['editor']['data']['processor']['toData'](_0x354e3c),this['editor']['data']['processor']['useFillerType']('default');}return _0x2935e7;}async['getRevisionRootsAttributes'](_0xb24fd5){await this['loadRevisionData'](_0xb24fd5);const _0x4b5bc7={};for(const _0x1d9fb3 in _0xb24fd5['diffData'])_0xb24fd5['diffData'][_0x1d9fb3]['attachChange']&&!_0xb24fd5['diffData'][_0x1d9fb3]['attachChange']['isAttached']||(_0x4b5bc7[_0x1d9fb3]=_0xb24fd5['diffData'][_0x1d9fb3]['attributesAfter']||{});return _0x4b5bc7;}['_removeRevisionMarkers'](_0x44d92d){return(_0x44d92d=_0x44d92d['filter'](_0x5ff4a5=>!_0x5ff4a5['name']||'revision-start'!==_0x5ff4a5['name']&&'revision-end'!==_0x5ff4a5['name']))['forEach'](_0x348363=>{'string'!=typeof _0x348363&&(_0x348363['children']=this['_removeRevisionMarkers'](_0x348363['children']),_0x348363['attributes']=_0x348363['attributes']['filter'](_0x24df4c=>!_0x24df4c[0x0]['startsWith']('data-revision-')));}),_0x44d92d;}async['compare'](_0x5a2f82,_0x141ef6,_0xf0a1fd=!0x1){if(!this['isEnabled'])return;const _0x3c8769=this['diff'],_0x36e3af=this['repository'],_0x195f38='string'==typeof _0x5a2f82?_0x36e3af['getRevision'](_0x5a2f82):_0x5a2f82,_0x90470='string'==typeof _0x141ef6?_0x36e3af['getRevision'](_0x141ef6):_0x141ef6,_0x49f1ff=_0x195f38['id'],_0x2a5ed9=_0x90470?_0x90470['id']:null;if(!_0xf0a1fd&&this['diff']&&this['diff']['newRevisionId']===_0x49f1ff&&this['diff']['oldRevisionId']===_0x2a5ed9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x49f1ff,_0x2a5ed9);const _0xb02847=this['_getRevisionsRange'](_0x195f38,_0x90470,!0x0)['map'](_0x284ce6=>this['loadRevisionData'](_0x284ce6));return _0xb02847['push'](new Promise(_0x4e9a07=>{setTimeout(_0x4e9a07,0x14);})),Promise['all'](_0xb02847)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4a0c73=this['_getDiff'](_0x49f1ff,_0x2a5ed9);for(const _0x2b1c76 of _0x4a0c73['changes'])this['_changeIdToChange']['set'](_0x2b1c76['id'],_0x2b1c76);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x37a6a2=>{for(const _0x5093d1 of this['editor']['model']['document']['getRootNames']())_0x37a6a2['detachRoot'](_0x5093d1);for(const _0x35fcb4 of Object['keys'](_0x4a0c73['model'])){const _0x1cd3c0=_0x37a6a2['addRoot'](_0x35fcb4);for(const _0x211be1 of Object['keys'](_0x4a0c73['attributes'][_0x35fcb4]))_0x37a6a2['setAttribute'](_0x211be1,_0x4a0c73['attributes'][_0x35fcb4][_0x211be1],_0x1cd3c0);_0x37a6a2['insert'](_0x4a0c73['model'][_0x35fcb4],_0x1cd3c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4a0c73['changes'])),this['isReady']=!0x0;})['catch'](_0x4332a2=>{console['error'](_0x4332a2),this['_cleanUp'](),_0x3c8769&&(this['diff']=_0x3c8769),this['isReady']=!0x0;});}['addRevisionData'](_0x2f0eed,_0x5710cc){const _0x2a1f49=this['repository']['createRevision'](_0x2f0eed);return _0x2a1f49['on']('_update',(_0x33eb97,_0x5ad20a,_0x152fe2)=>_0x5710cc(_0x5ad20a,_0x152fe2,_0x2a1f49)),this['repository']['addRevision'](_0x2a1f49),_0x2a1f49;}['loadRevisionData'](_0x262996){if(!_0x262996||_0x262996['diffData'])return Promise['resolve']();{const _0x393b87=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x393b87,'revisionId':_0x262996['id']})['then'](_0x576c6f=>{_0x262996['_update']({'diffData':_0x576c6f['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},_0x10da56=>{for(const _0x579b80 of this['editor']['model']['document']['getRootNames']())_0x10da56['detachRoot'](_0x579b80);});}['_sortAndFilterDiffChanges'](_0x5be5e0){const _0x5b0050=[],_0x11c59e=new Map();for(const _0x3fe1c8 of this['editor']['model']['document']['getRootNames']()){const _0x5a0882=this['editor']['editing']['view']['getDomRoot'](_0x3fe1c8);if(!_0x5a0882)continue;const _0x526567=_0x5a0882['getClientRects']()['item'](0x0);_0x526567&&(_0x5b0050['push'](_0x3fe1c8),_0x11c59e['set'](_0x3fe1c8,_0x526567));}return _0x5b0050['sort']((_0xf363b5,_0x3ffd41)=>{const _0x2f7064=_0x11c59e['get'](_0xf363b5),_0x396a7f=_0x11c59e['get'](_0x3ffd41);return _0x2f7064['y']-_0x396a7f['y']||_0x2f7064['x']-_0x396a7f['x'];}),(_0x5be5e0=_0x5be5e0['filter'](_0x33c006=>_0x5b0050['includes'](_0x33c006['rootName'])))['sort']((_0x57799d,_0x31350b)=>_0x5b0050['indexOf'](_0x57799d['rootName'])-_0x5b0050['indexOf'](_0x31350b['rootName'])),_0x5be5e0;}['_makeTape'](_0x23477a){const _0x2738e2=Array['from'](_0x23477a['markers'])['filter'](([_0x150843,_0x11205e])=>_0x150843['startsWith']('revision:')&&!_0x11205e['isCollapsed']),_0x251f9d=Array['from'](this['editor']['model']['createRangeIn'](_0x23477a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2738e2['length'])for(const _0x1245ce of _0x251f9d){const [_0x360bb2,_0x24a86c]=_0x2738e2[0x0],[,_0x44243d,_0xbecc11]=_0x360bb2['split'](':');if(_0x24a86c['end']['isEqual'](_0x1245ce['nextPosition'])&&_0x2738e2['shift'](),(_0x1245ce['previousPosition']['isEqual'](_0x24a86c['start'])||_0x1245ce['previousPosition']['isAfter'](_0x24a86c['start']))&&('insertion'==_0x44243d?_0x1245ce['isAdded']={'userId':_0xbecc11}:'deletion'==_0x44243d&&(_0x1245ce['isRemoved']={'userId':_0xbecc11})),0x0==_0x2738e2['length'])break;}return _0x251f9d;}['_refreshStartEndIndex'](_0x10654b){const _0x5bb3a8=new Map();for(let _0xc3c204=0x0;_0xc3c204<_0x10654b['length'];_0xc3c204++)'text'===_0x10654b[_0xc3c204]['type']?(_0x10654b[_0xc3c204]['item']['startIndex']=_0xc3c204,_0x10654b[_0xc3c204]['item']['endIndex']=_0xc3c204):('elementStart'===_0x10654b[_0xc3c204]['type']?_0x10654b[_0xc3c204]['item']['startIndex']=_0xc3c204:'elementEnd'===_0x10654b[_0xc3c204]['type']&&(_0x10654b[_0xc3c204]['item']['endIndex']=_0xc3c204),_0x5bb3a8['set'](_0x10654b[_0xc3c204]['id'],_0xc3c204));for(const _0xc7aee8 of _0x5bb3a8['values']())'elementStart'===_0x10654b[_0xc7aee8]['type']?_0x10654b[_0xc7aee8]['item']['endIndex']=_0x5bb3a8['get'](_0x10654b[_0xc7aee8]['pairId']):'elementEnd'===_0x10654b[_0xc7aee8]['type']&&(_0x10654b[_0xc7aee8]['item']['startIndex']=_0x5bb3a8['get'](_0x10654b[_0xc7aee8]['pairId']));}['_processTape'](_0x3f4d41){for(let _0x1e1fb6=0x0;_0x1e1fb6<_0x3f4d41['length'];_0x1e1fb6++){if('elementStart'===_0x3f4d41[_0x1e1fb6]['type'])_0x3f4d41[_0x1e1fb6]['item']['startIndex']=_0x1e1fb6;else{if('elementEnd'===_0x3f4d41[_0x1e1fb6]['type']){_0x3f4d41[_0x1e1fb6]['item']['endIndex']=_0x1e1fb6;const _0x45af39=_0x3f4d41[_0x1e1fb6]['item']['startIndex'];_0x3f4d41[_0x45af39]['pairId']=_0x3f4d41[_0x1e1fb6]['id'],_0x3f4d41[_0x1e1fb6]['pairId']=_0x3f4d41[_0x45af39]['id'];}else _0x3f4d41[_0x1e1fb6]['item']['startIndex']=_0x1e1fb6,_0x3f4d41[_0x1e1fb6]['item']['endIndex']=_0x1e1fb6,_0x3f4d41[_0x1e1fb6]['pairId']=null;}_0x3f4d41[_0x1e1fb6]['markersStart']||(_0x3f4d41[_0x1e1fb6]['markersStart']=[],_0x3f4d41[_0x1e1fb6]['markersEnd']=[]);}}['_markInsertions'](_0xc468a4,_0x315b99){const _0xa749f5=_0xc468a4['filter'](_0x181968=>!_0x181968['isAdded']);for(let _0x3e07d1=0x0;_0x3e07d1<_0x315b99['length'];_0x3e07d1++)_0x315b99[_0x3e07d1]['isAdded']&&(_0xa749f5[_0x3e07d1]['isAdded']=_0x315b99[_0x3e07d1]['isAdded']);}['_makeModelFromViewString'](_0x28b329){const _0x2cf74d=JSON['parse'](_0x28b329),_0x42fef9=this['editor']['editing']['view']['document'],_0x15f303=new _0x4a9627(_0x42fef9,_0x2cf74d['map'](_0x281b15=>this['_getViewObj'](_0x281b15)));return this['editor']['data']['toModel'](_0x15f303);}['_getViewObj'](_0x59e95b){const _0x36635f=this['editor']['editing']['view']['document'];if('string'==typeof _0x59e95b)return new _0x5874de(_0x36635f,_0x59e95b);{const _0x45a235=_0x59e95b['children']['map'](_0xce7b6a=>this['_getViewObj'](_0xce7b6a));return new(Y[_0x59e95b['type']]||_0x97d576)(_0x36635f,_0x59e95b['name'],_0x59e95b['attributes'],_0x45a235);}}['_getDiff'](_0x53da95,_0x348ca0=null){const _0x420a65=this['repository']['getRevision'](_0x53da95),_0x58ffbd=_0x348ca0?this['repository']['getRevision'](_0x348ca0):null,_0x2ed675=this['_getRevisionsRange'](_0x420a65,_0x58ffbd),_0x5e627e=_0x2ed675[_0x2ed675['length']-0x1],_0x59a8b1=new Map(),_0x22094a={'model':{},'attributes':{},'changes':[]},_0x3ec5f0=new Set(),_0x1154a5=new Map();for(let _0x47c9ef=_0x2ed675['length']-0x1;_0x47c9ef>=0x0;_0x47c9ef--){const _0x1a2533=_0x2ed675[_0x47c9ef];for(const _0x4d557d of Object['keys'](_0x1a2533['diffData']))if(_0x1a2533['diffData'][_0x4d557d]['attachChange']){const _0x1f024c=_0x1a2533['diffData'][_0x4d557d]['attachChange'];_0x1f024c['isAttached']?(_0x3ec5f0['add'](_0x4d557d),_0x1154a5['has'](_0x4d557d)&&_0x1154a5['get'](_0x4d557d)['userId']==_0x1f024c['userId']?_0x1154a5['delete'](_0x4d557d):_0x1154a5['set'](_0x4d557d,_0x1f024c)):_0x1154a5['has'](_0x4d557d)?(_0x3ec5f0['delete'](_0x4d557d),_0x1154a5['delete'](_0x4d557d)):(_0x3ec5f0['add'](_0x4d557d),_0x1154a5['set'](_0x4d557d,_0x1f024c));}else _0x3ec5f0['add'](_0x4d557d);}for(const _0x2075df of _0x3ec5f0){const _0x7a31af=_0x1154a5['has'](_0x2075df)&&!_0x1154a5['get'](_0x2075df)['isAttached'];let _0x520c64=_0x7a31af?_0x2ed675['length']-0x1:0x0;const _0x56b8a4=_0x7a31af?-0x1:0x1;for(;_0x2ed675[_0x520c64];){const _0xa6d2c7=_0x2ed675[_0x520c64];if(_0xa6d2c7['diffData'][_0x2075df]){const _0x1b517b=_0x7a31af?_0xa6d2c7['diffData'][_0x2075df]['attributesBefore']:_0xa6d2c7['diffData'][_0x2075df]['attributesAfter'];_0x22094a['attributes'][_0x2075df]=_0x1b517b?_0x5e1b59(_0x1b517b):{};break;}_0x520c64+=_0x56b8a4;}}for(const _0x1e9ce6 of _0x2ed675){_0x1e9ce6['model']={};for(const _0x28150d of _0x1e9ce6['authors'])_0x59a8b1['set'](_0x28150d['id'],_0x28150d);for(const _0x2845ee of _0x3ec5f0){const _0x132cd7=_0x1e9ce6['diffData'][_0x2845ee]?_0x1e9ce6['diffData'][_0x2845ee]['insertions']:'[]',_0x16d769=_0x1e9ce6['diffData'][_0x2845ee]?_0x1e9ce6['diffData'][_0x2845ee]['deletions']:'[]';_0x1e9ce6['model'][_0x2845ee]={'insertions':this['_makeModelFromViewString'](_0x132cd7),'deletions':this['_makeModelFromViewString'](_0x16d769)};}}for(const _0x4bdaf2 of _0x3ec5f0){let _0x1fa99e=null,_0x97bd1f=0x0;const _0x27eb4c=new Map(Array['from'](_0x420a65['model'][_0x4bdaf2]['insertions']['markers'])['filter'](([_0x28797d])=>!_0x28797d['startsWith']('revision:')));let _0x57581f=0x0;for(const _0x34c63c of _0x2ed675){const _0x132cb6=this['_makeTape'](_0x34c63c['model'][_0x4bdaf2]['insertions']);_0x34c63c==_0x420a65?(_0x1fa99e=_0x132cb6,_0x97bd1f=_0x1fa99e['length'],_0x1fa99e['forEach'](_0xae386c=>{_0xae386c['id']=_0x57581f++;}),this['_processTape'](_0x1fa99e)):this['_markInsertions'](_0x1fa99e,_0x132cb6);const _0x54d712=_0x1fa99e['filter'](_0x3bf1d9=>!_0x3bf1d9['isAdded'])['map'](_0x5a646c=>_0x5a646c['id']);let _0x30b090=0x0;const _0x3f92c9=this['_makeTape'](_0x34c63c['model'][_0x4bdaf2]['deletions']);_0x3f92c9['forEach'](_0x114c9b=>{_0x114c9b['isRemoved']?_0x114c9b['id']=_0x97bd1f++:_0x114c9b['id']=_0x54d712[_0x30b090++];}),this['_processTape'](_0x3f92c9),this['_setDistance'](_0x1fa99e,'isAdded'),this['_setDistance'](_0x3f92c9,'isRemoved'),_0x34c63c==_0x420a65&&this['_markMarkers'](_0x1fa99e,_0x27eb4c),_0x1fa99e=this['_joinTapes'](_0x1fa99e,_0x3f92c9),this['_refreshStartEndIndex'](_0x1fa99e),this['_setDistance'](_0x1fa99e,'isRemoved');}_0x1fa99e=_0x1fa99e['filter'](_0x38c2a0=>!(_0x38c2a0['isAdded']&&_0x38c2a0['isRemoved']));const _0x8bae62=new Map(_0x5e627e['model'][_0x4bdaf2]['deletions']['markers']),_0x569fcd=new Set(_0x27eb4c['keys']());for(const _0xe91b61 of _0x8bae62['keys']())_0x569fcd['delete'](_0xe91b61);this['_markSuggestions'](_0x1fa99e,_0x569fcd),this['_fixObsoleteTags'](_0x1fa99e),_0x1fa99e=this['_removeMissingPairs'](_0x1fa99e),_0x1fa99e=this['_markMismatchedRemovedTags'](_0x1fa99e),_0x1fa99e=this['_removeUnsupportedChanges'](_0x1fa99e);const {root:_0x16e62b,changes:_0x24eed1}=this['_makeModelFromTape'](_0x1fa99e,_0x59a8b1,_0x4bdaf2);_0x22094a['model'][_0x4bdaf2]=_0x16e62b;const _0x4f28b9=_0x1154a5['get'](_0x4bdaf2);if(_0x4f28b9){const _0x439a2d=_0x59a8b1['get'](_0x4f28b9['userId']),_0x5b1551=new r({'author':_0x439a2d,'type':_0x4f28b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4bdaf2});_0x24eed1['unshift'](_0x5b1551),_0x22094a['attributes'][_0x4bdaf2]['revisionHistoryAttachChange']=_0x5b1551['id'];}_0x22094a['changes']=_0x22094a['changes']['concat'](_0x24eed1);}return _0x22094a;}['_markMarkers'](_0xe6018d,_0x590527){for(let _0x50b52e=0x0;_0x50b52e<_0xe6018d['length'];_0x50b52e++)for(const [_0x5c6347,_0x1872fe]of _0x590527)_0x1872fe['start']['isEqual'](_0xe6018d[_0x50b52e]['previousPosition'])&&_0xe6018d[_0x50b52e]['markersStart']['push'](_0x5c6347),_0x1872fe['end']['isEqual'](_0xe6018d[_0x50b52e]['nextPosition'])&&_0xe6018d[_0x50b52e]['markersEnd']['push'](_0x5c6347);}['_joinTapes'](_0x4fb5db,_0x1ed5e8){let _0x48cff6=[],_0x369571=0x0,_0x43c2b9=0x0;for(;_0x369571<_0x4fb5db['length']||_0x43c2b9<_0x1ed5e8['length'];){const _0x10c04c=_0x4fb5db[_0x369571]||{},_0x90cac6=_0x1ed5e8[_0x43c2b9]||{};if(_0x10c04c['id']==_0x90cac6['id'])_0x369571++,_0x43c2b9++,_0x48cff6['push'](_0x10c04c);else{if(_0x90cac6['isRemoved']&&_0x10c04c['isAdded']){const {commonTape:_0x53063c,iEnd:_0x2fe934,jEnd:_0x393c9f}=this['_threeWayMerge'](_0x4fb5db,_0x369571,_0x1ed5e8,_0x43c2b9);_0x48cff6=_0x48cff6['concat'](_0x53063c),_0x369571=_0x2fe934,_0x43c2b9=_0x393c9f;}else _0x90cac6['isRemoved']?(_0x43c2b9++,_0x48cff6['push'](_0x90cac6)):(_0x369571++,_0x48cff6['push'](_0x10c04c));}}return _0x48cff6;}['_markSuggestions'](_0x4c6239,_0xbb2544){const _0x4762b8=[];for(let _0x34a9d0=0x0;_0x34a9d0<_0x4c6239['length'];_0x34a9d0++){for(let _0x98c7e=0x0;_0x98c7e<_0x4c6239[_0x34a9d0]['markersStart']['length'];_0x98c7e++){const _0x2d4fb4=_0x4c6239[_0x34a9d0]['markersStart'][_0x98c7e];if(!_0xbb2544['has'](_0x2d4fb4))continue;const {group:_0x1461ac,type:_0x470a0a,authorId:_0x323d3c}=_0x4fb6ba(_0x2d4fb4);'revision-suggestion'!=_0x1461ac||'insertion'!=_0x470a0a&&'deletion'!=_0x470a0a||(_0x4762b8['unshift']({'type':_0x470a0a,'name':_0x2d4fb4,'userId':_0x323d3c}),_0x4c6239[_0x34a9d0]['markersStart']['splice'](_0x98c7e,0x1),_0x98c7e--);}_0x3fe264(_0x4c6239[_0x34a9d0]);for(let _0x59b4a9=0x0;_0x59b4a9<_0x4c6239[_0x34a9d0]['markersEnd']['length'];_0x59b4a9++){const _0x3320e8=_0x4c6239[_0x34a9d0]['markersEnd'][_0x59b4a9];if(!_0xbb2544['has'](_0x3320e8))continue;const {group:_0x4fa947,type:_0x17ff61}=_0x4fb6ba(_0x3320e8);if('revision-suggestion'!=_0x4fa947||'insertion'!=_0x17ff61&&'deletion'!=_0x17ff61)continue;_0x4c6239[_0x34a9d0]['markersEnd']['splice'](_0x59b4a9,0x1),_0x59b4a9--;const _0x32e8d3=_0x4762b8['findIndex'](_0x48ecb9=>_0x48ecb9['name']==_0x3320e8);_0x32e8d3>-0x1&&_0x4762b8['splice'](_0x32e8d3,0x1);}}function _0x4fb6ba(_0x4fe814){const _0x1a1be4=_0x4fe814['split'](':');return{'group':_0x1a1be4[0x0],'type':_0x1a1be4[0x1],'subType':_0x1a1be4['length']>=0x5?_0x1a1be4[0x2]:null,'id':_0x1a1be4['length']<0x5?_0x1a1be4[0x2]:_0x1a1be4[0x3],'authorId':_0x1a1be4['length']<0x5?_0x1a1be4[0x3]:_0x1a1be4[0x4],'markerCount':0x6==_0x1a1be4['length']?_0x1a1be4[0x5]:null};}function _0x3fe264(_0x337c03){for(let _0x21d119=0x0;_0x21d119<_0x4762b8['length'];_0x21d119++){if(_0x337c03['isAdded']&&'insertion'==_0x4762b8[_0x21d119]['type'])return _0x337c03['isAddSuggestion']=_0x4762b8[_0x21d119],void delete _0x337c03['isAdded'];if(!_0x337c03['isAdded']&&!_0x337c03['isRemoved']&&'deletion'==_0x4762b8[_0x21d119]['type'])return void(_0x337c03['isRemoveSuggestion']=_0x4762b8[_0x21d119]);}}}['_setDistance'](_0x438c34,_0x23f0a7){let _0x5c4ee8=0x0,_0x2ca2ed=!0x1;const _0x45cd53=new Map();for(const _0x416fe0 of _0x438c34)_0x416fe0[_0x23f0a7]?_0x2ca2ed&&(_0x5c4ee8++,_0x2ca2ed=!0x1):(_0x5c4ee8++,_0x2ca2ed=!0x0),_0x45cd53['set'](_0x416fe0['id'],_0x5c4ee8);for(let _0x1e9004=0x0;_0x1e9004<_0x438c34['length'];_0x1e9004++){if('isRemoved'==_0x23f0a7&&_0x438c34[_0x1e9004]['isAdded']||'isAdded'==_0x23f0a7&&_0x438c34[_0x1e9004]['isRemoved'])continue;if('text'==_0x438c34[_0x1e9004]['type']){_0x438c34[_0x1e9004]['distance']=0x0;continue;}const _0x241ead=_0x45cd53['get'](_0x438c34[_0x1e9004]['pairId']),_0x1c11fd=_0x45cd53['get'](_0x438c34[_0x1e9004]['id']);_0x438c34[_0x1e9004]['distance']=_0x241ead-_0x1c11fd;}}['_getRevisionsRange'](_0x1162ff,_0x11a085,_0x3f8796=!0x1){const _0x29f889=[];let _0x316aed=this['repository']['getIndex'](_0x1162ff),_0x41fc75=this['repository']['getIndex'](_0x11a085);for(-0x1==_0x41fc75&&(_0x41fc75=this['repository']['_revisions']['length'],_0x3f8796=!0x1);_0x316aed<_0x41fc75;)_0x29f889['push'](this['repository']['getRevision'](_0x316aed)),_0x316aed++;return _0x3f8796&&_0x29f889['push'](this['repository']['getRevision'](_0x316aed)),_0x29f889;}['_threeWayMerge'](_0x3bebb9,_0x5302c0,_0x3041d7,_0xb5635f){const _0x2d6260=this['editor']['model']['schema'];let _0x4ff449=_0x5302c0;for(;_0x3bebb9[_0x4ff449]&&_0x3bebb9[_0x4ff449]['isAdded'];)_0x4ff449++;let _0x2ebaef=_0xb5635f;for(;_0x3041d7[_0x2ebaef]&&_0x3041d7[_0x2ebaef]['isRemoved'];)_0x2ebaef++;_0x230d12(_0x3bebb9,_0x5302c0,_0x4ff449),_0x230d12(_0x3041d7,_0xb5635f,_0x2ebaef);const _0x2e30e1=_0x3041d7['slice'](_0xb5635f,_0x2ebaef)['concat'](_0x3bebb9['slice'](_0x5302c0,_0x4ff449));return _0x2e30e1['sort']((_0x3a3ebb,_0x4fcd8b)=>_0x3a3ebb['side']!=_0x4fcd8b['side']?_0x3a3ebb['side']-_0x4fcd8b['side']:_0x3a3ebb['level']!=_0x4fcd8b['level']?_0x3a3ebb['level']-_0x4fcd8b['level']:_0x3a3ebb['distance']!=_0x4fcd8b['distance']?_0x4fcd8b['distance']-_0x3a3ebb['distance']:!!_0x3a3ebb['isAdded']!=!!_0x4fcd8b['isAdded']?-0x1==_0x3a3ebb['side']||0x0==_0x3a3ebb['side']?_0x3a3ebb['isAdded']?-0x1:0x1:_0x3a3ebb['isAdded']?0x1:-0x1:_0x3a3ebb['index']-_0x4fcd8b['index']),{'commonTape':_0x2e30e1,'iEnd':_0x4ff449,'jEnd':_0x2ebaef};function _0x230d12(_0xf4863a,_0x20a39c,_0x570311){let _0x3ff7db=-0x1,_0xd2aa64=Number['POSITIVE_INFINITY'],_0x16d779=!0x0;for(let _0x4ac1f0=_0x20a39c;_0x4ac1f0<_0x570311;_0x4ac1f0++)if(_0x2d6260['isInline'](_0xf4863a[_0x4ac1f0]['item'])||(_0x16d779=!0x1),_0xf4863a[_0x4ac1f0]['item']['startIndex']<_0x20a39c&&(_0x3ff7db=_0x4ac1f0),_0xf4863a[_0x4ac1f0]['item']['endIndex']>=_0x570311){_0xd2aa64=_0x4ac1f0;break;}_0x16d779&&(_0x3ff7db=_0x570311-0x1);for(let _0x3c9303=_0x20a39c;_0x3c9303<_0x570311;_0x3c9303++)_0xf4863a[_0x3c9303]['side']=_0x3c9303<=_0x3ff7db?-0x1:_0x3c9303<_0xd2aa64?0x0:0x1,_0xf4863a[_0x3c9303]['index']=_0x3c9303;let _0x1dff21=0x0;for(let _0x175aac=_0x20a39c;_0x175aac<=_0x3ff7db;_0x175aac++)0x0==_0xf4863a[_0x175aac]['distance']?_0xf4863a[_0x175aac]['level']=_0x1dff21:(_0x1dff21++,_0xf4863a[_0x175aac]['level']=_0x1dff21,_0x1dff21++);for(let _0x3fcdcd=_0x20a39c;_0x3fcdcd<_0x570311;_0x3fcdcd++)0x0==_0xf4863a[_0x3fcdcd]['side']&&(_0xf4863a[_0x3fcdcd]['level']=_0x1dff21);_0x1dff21=0x0;for(let _0x4b9dd6=_0x570311-0x1;_0x4b9dd6>=_0xd2aa64;_0x4b9dd6--)0x0==_0xf4863a[_0x4b9dd6]['distance']?_0xf4863a[_0x4b9dd6]['level']=_0x1dff21:(_0x1dff21--,_0xf4863a[_0x4b9dd6]['level']=_0x1dff21,_0x1dff21--);}}['_fixObsoleteTags'](_0x243493){const _0x1ebe7d=new Map(),_0x3118e8=this['editor']['model']['schema'];for(let _0x3492b0=0x1;_0x3492b0<_0x243493['length'];_0x3492b0++){let _0x233063,_0x5cbd05,_0x110017;const _0x4e33a5=_0x243493[_0x3492b0],_0x2130e1=_0x243493[_0x3492b0-0x1];if('text'==_0x4e33a5['type'])continue;if(_0x4e33a5['type']!=_0x2130e1['type'])continue;if(!_0x3118e8['isBlock'](_0x2130e1['item'])||_0x3118e8['isLimit'](_0x2130e1['item']))continue;if(!_0x3118e8['isBlock'](_0x4e33a5['item'])||_0x3118e8['isLimit'](_0x4e33a5['item']))continue;if((_0x243493[_0x3492b0]['isAdded']||_0x243493[_0x3492b0]['isAddSuggestion'])&&_0x243493[_0x3492b0-0x1]['isRemoved'])_0x233063=_0x243493[_0x3492b0],_0x5cbd05=_0x243493[_0x3492b0-0x1],_0x110017=_0x3492b0-0x1;else{if(!_0x243493[_0x3492b0]['isRemoved']||!_0x243493[_0x3492b0-0x1]['isAdded']&&!_0x243493[_0x3492b0-0x1]['isAddSuggestion'])continue;_0x233063=_0x243493[_0x3492b0-0x1],_0x5cbd05=_0x243493[_0x3492b0],_0x110017=_0x3492b0;}const _0x32abbe=_0x233063['level']==_0x5cbd05['level'],_0x2e0e34=Math['abs'](_0x233063['level'])<Math['abs'](_0x5cbd05['level'])&&0x0==_0x5cbd05['distance'];(_0x32abbe||_0x2e0e34)&&(_0x1ebe7d['set'](_0x5cbd05['id'],_0x233063['id']),_0x243493['splice'](_0x110017,0x1),_0x3492b0--,_0x233063['isAdded']=!0x1);}for(let _0x5a9079=0x0;_0x5a9079<_0x243493['length'];_0x5a9079++)_0x1ebe7d['has'](_0x243493[_0x5a9079]['pairId'])&&(_0x243493[_0x5a9079]['pairId']=_0x1ebe7d['get'](_0x243493[_0x5a9079]['pairId']));}['_removeMissingPairs'](_0x15f991){const _0x358c40=new Set(_0x15f991['map'](_0x1ac670=>_0x1ac670['id']));for(let _0x58dcdc=0x0;_0x58dcdc<_0x15f991['length'];_0x58dcdc++)_0x358c40['has'](_0x15f991[_0x58dcdc]['pairId'])||0x0==_0x15f991[_0x58dcdc]['distance']||(_0x15f991[_0x58dcdc]['isIncorrect']=!0x0);return _0x15f991['filter'](_0x3bbeb7=>!_0x3bbeb7['isIncorrect']);}['_markMismatchedRemovedTags'](_0xbc1c6d){const _0x65f84e=new Set();for(let _0x3d0ab8=0x0;_0x3d0ab8<_0xbc1c6d['length'];_0x3d0ab8++){if(_0x65f84e['has'](_0xbc1c6d[_0x3d0ab8]['id'])&&_0xbc1c6d[_0x3d0ab8]['isRemoved']&&(_0xbc1c6d[_0x3d0ab8]['isIncorrect']=!0x0),_0xbc1c6d[_0x3d0ab8]['isIncorrect'])continue;if(0x0==_0xbc1c6d[_0x3d0ab8]['distance'])continue;if('elementStart'!=_0xbc1c6d[_0x3d0ab8]['type'])continue;if(null==_0xbc1c6d[_0x3d0ab8]['pairId'])continue;let _0x156412=_0x3d0ab8+0x1,_0x7f75a=0x0;for(;_0xbc1c6d[_0x156412]['id']!=_0xbc1c6d[_0x3d0ab8]['pairId'];)'elementStart'==_0xbc1c6d[_0x156412]['type']?_0x7f75a++:'elementEnd'==_0xbc1c6d[_0x156412]['type']&&_0x7f75a--,_0x156412++;if(0x0!=_0x7f75a){if(_0xbc1c6d[_0x3d0ab8]['isRemoved'])_0xbc1c6d[_0x3d0ab8]['isIncorrect']=!0x0;else{for(;_0x156412!=_0x3d0ab8;)_0xbc1c6d[_0x156412]['isRemoved']&&0x0!=_0xbc1c6d[_0x156412]['distance']&&(_0xbc1c6d[_0x156412]['isIncorrect']=!0x0,_0x65f84e['add'](_0xbc1c6d[_0x156412]['pairId'])),_0x156412--;}}}return _0xbc1c6d['filter'](_0x5e5808=>!_0x5e5808['isIncorrect']);}['_removeUnsupportedChanges'](_0x46ce83){const _0x30e5a=this['editor']['model']['schema'];for(let _0x2eb652=0x0;_0x2eb652<_0x46ce83['length'];_0x2eb652++){if(!(_0x46ce83[_0x2eb652]['isAdded']||_0x46ce83[_0x2eb652]['isAddSuggestion']||_0x46ce83[_0x2eb652]['isRemoved']||_0x46ce83[_0x2eb652]['isRemoveSuggestion']))continue;if(0x0==_0x46ce83[_0x2eb652]['distance'])continue;const _0x42ce98=_0x46ce83[_0x2eb652]['item'];_0x30e5a['isBlock'](_0x42ce98)||_0x30e5a['isLimit'](_0x42ce98)||(_0x46ce83[_0x2eb652]['isAdded']&&delete _0x46ce83[_0x2eb652]['isAdded'],_0x46ce83[_0x2eb652]['isAddSuggestion']&&delete _0x46ce83[_0x2eb652]['isAddSuggestion'],_0x46ce83[_0x2eb652]['isRemoveSuggestion']&&delete _0x46ce83[_0x2eb652]['isRemoveSuggestion'],_0x46ce83[_0x2eb652]['isRemoved']&&(_0x46ce83[_0x2eb652]['isIncorrect']=!0x0));}return _0x46ce83['filter'](_0x127ba1=>!_0x127ba1['isIncorrect']);}['_makeModelFromTape'](_0x51ac01,_0xefb7cb,_0x16fe02){const _0x541ab9=new mt(),_0x4f8a41=[],_0x221a07=new Map(),_0x27a746=this['editor']['model'],_0x5b11b1=_0x27a746['schema'],_0x5965ff=[_0x541ab9],_0x280552={},_0x57139e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x10f600=null;const _0x241de7=[0x0];for(let _0x4beb7b=0x0;_0x4beb7b<_0x51ac01['length'];_0x4beb7b++)if('elementStart'===_0x51ac01[_0x4beb7b]['type']){_0x51ac01[_0x4beb7b]['previousPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7);const _0x904195=new ft(_0x51ac01[_0x4beb7b]['item']['name'],_0x51ac01[_0x4beb7b]['item']['getAttributes']());_0x5965ff[0x0]['_appendChild'](_0x904195),_0x241de7['push'](0x0),_0x5965ff['unshift'](_0x904195),_0x51ac01[_0x4beb7b]['nextPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7);}else'elementEnd'===_0x51ac01[_0x4beb7b]['type']?(_0x5965ff['shift'](),_0x51ac01[_0x4beb7b]['previousPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7),_0x241de7['pop'](),_0x241de7[_0x241de7['length']-0x1]++,_0x51ac01[_0x4beb7b]['nextPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7)):(_0x51ac01[_0x4beb7b]['previousPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7),_0x10f600?_0x10f600['_data']+=_0x51ac01[_0x4beb7b]['item']['data']:_0x10f600=new wt(_0x51ac01[_0x4beb7b]['item']['data'],_0x51ac01[_0x4beb7b]['item']['getAttributes']()),_0x51ac01[_0x4beb7b+0x1]&&'text'===_0x51ac01[_0x4beb7b+0x1]['type']&&_0x4c5103(_0x10f600,_0x51ac01[_0x4beb7b+0x1]['item'])||(_0x5965ff[0x0]['_appendChild'](_0x10f600),_0x10f600=null),_0x241de7[_0x241de7['length']-0x1]+=_0x51ac01[_0x4beb7b]['item']['offsetSize'],_0x51ac01[_0x4beb7b]['nextPosition']=_0x27a746['createPositionFromPath'](_0x541ab9,_0x241de7));for(let _0x1b09b2=0x0;_0x1b09b2<_0x51ac01['length'];_0x1b09b2++){const _0x5adb7e=_0x51ac01[_0x1b09b2]['previousPosition'],_0x107ddc=_0x51ac01[_0x1b09b2]['nextPosition'];for(const _0x58b846 of _0x51ac01[_0x1b09b2]['markersStart'])_0x221a07['set'](_0x58b846,{'start':_0x5adb7e,'end':null});_0x7c1524('isRemoveSuggestion',_0x1b09b2,_0x5adb7e,_0x107ddc),_0x7c1524('isAddSuggestion',_0x1b09b2,_0x5adb7e,_0x107ddc),_0x7c1524('isRemoved',_0x1b09b2,_0x5adb7e,_0x107ddc),_0x7c1524('isAdded',_0x1b09b2,_0x5adb7e,_0x107ddc);for(const _0x4a8124 of _0x51ac01[_0x1b09b2]['markersEnd']){_0x221a07['get'](_0x4a8124)['end']=_0x107ddc;}}for(const [_0x2c2ad1,_0x471110]of _0x221a07){const _0x363bf6=this['editor']['model']['createRange'](_0x471110['start'],_0x471110['end']);_0x541ab9['markers']['set'](_0x2c2ad1,_0x363bf6);}return _0x4f8a41['sort']((_0x1bb105,_0x3c387e)=>{const _0x338a8a=_0x541ab9['markers']['get']('revision:'+_0x1bb105['id']),_0x21f966=_0x541ab9['markers']['get']('revision:'+_0x3c387e['id']);return _0x338a8a['start']['isBefore'](_0x21f966['start'])?-0x1:_0x338a8a['start']['isAfter'](_0x21f966['start'])?0x1:_0x338a8a['end']['isBefore'](_0x21f966['end'])?-0x1:_0x338a8a['end']['isAfter'](_0x21f966['end'])?0x1:'add'===_0x1bb105['type']?-0x1:0x1;}),{'root':_0x541ab9,'changes':_0x4f8a41};function _0x7c1524(_0xfef137,_0x1d6b2b,_0x57ae4c,_0x44c956){const _0x26f756=!!_0x51ac01[_0x1d6b2b][_0xfef137],_0x528960=_0x26f756?_0x51ac01[_0x1d6b2b][_0xfef137]['userId']:null,_0x62885b=_0x1d6b2b===_0x51ac01['length']-0x1,_0xc8fd38=_0x57139e[_0xfef137][0x0],_0xc16f34=_0x5b11b1['isObject'](_0x51ac01[_0x1d6b2b]['item']);!_0x280552[_0xfef137]&&_0x26f756?_0x280552[_0xfef137]={'start':_0x57ae4c,'tapeItem':_0x51ac01[_0x1d6b2b],'userId':_0x528960,'type':_0xfef137}:_0x280552[_0xfef137]&&!_0x26f756?(_0x280552[_0xfef137]['end']=_0x57ae4c,_0x576481(_0x280552[_0xfef137]),_0x280552[_0xfef137]=null):_0x280552[_0xfef137]&&_0x26f756&&_0x280552[_0xfef137]['userId']!==_0x528960&&(_0x280552[_0xfef137]['end']=_0x57ae4c,_0xc8fd38&&_0xc8fd38['userId']===_0x280552[_0xfef137]['userId']||_0x576481(_0x280552[_0xfef137]),_0x280552[_0xfef137]={'start':_0x57ae4c,'tapeItem':_0x51ac01[_0x1d6b2b],'userId':_0x528960,'type':_0xfef137}),_0x280552[_0xfef137]&&_0xc16f34&&('elementStart'!==_0x51ac01[_0x1d6b2b]['type']||_0xc8fd38&&_0xc8fd38['userId']===_0x528960||_0x57139e[_0xfef137]['unshift']({'userId':_0x528960,'object':_0x51ac01[_0x1d6b2b]['item'],'change':_0x280552[_0xfef137]}),'elementEnd'===_0x51ac01[_0x1d6b2b]['type']&&_0xc8fd38&&_0xc8fd38['object']===_0x51ac01[_0x1d6b2b]['item']&&(_0x57139e[_0xfef137]['shift'](),_0x280552[_0xfef137]=_0xc8fd38['change'])),_0x280552[_0xfef137]&&_0x62885b&&(_0x280552[_0xfef137]['end']=_0x44c956,_0x576481(_0x280552[_0xfef137]),_0x280552[_0xfef137]=null);}function _0x576481({start:_0x3c1222,end:_0x432f4e,tapeItem:_0x17eb67,userId:_0x44ab23,type:_0x57918c}){const _0x1deda8=_0x17eb67['item'],_0x193f84=_0x27a746['schema']['isBlock'](_0x1deda8)&&!_0x27a746['schema']['isLimit'](_0x1deda8),_0x58e26f=_0x3c1222['nodeAfter']==_0x432f4e['parent']&&_0x432f4e['isAtStart'];if(_0x193f84&&_0x58e26f)return;const _0x25b543=_0x27a746['createRange'](_0x3c1222,_0x432f4e),_0x5b9e80=_0xefb7cb['get'](_0x44ab23),_0x153d8c=new r({'author':_0x5b9e80,'type':'isAdded'==_0x57918c||'isAddSuggestion'==_0x57918c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x57918c||'isRemoveSuggestion'==_0x57918c},'createdAt':new Date(),'rootName':_0x16fe02});_0x4f8a41['push'](_0x153d8c),_0x541ab9['markers']['set']('revision:'+_0x153d8c['id'],_0x25b543);}function _0x4c5103(_0x5dde1b,_0x4e22ae){const _0x597167=_0x5dde1b['getAttributes'](),_0x523c73=_0x4e22ae['getAttributes']();for(const _0x42bf7b of _0x597167){if(_0x42bf7b[0x1]!==_0x4e22ae['getAttribute'](_0x42bf7b[0x0]))return!0x1;_0x523c73['next']();}return _0x523c73['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x18ab56=>{const _0xdaa093=_0x18ab56['markerName']['split'](':')[0x1],_0x181e32=this['_getChangeFromId'](_0xdaa093);if(!_0x181e32)return null;const _0x278e0e='add'==_0x181e32['type']?'insertion':'deletion',_0x90226d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x278e0e];return _0x181e32['data']['isSuggestion']&&_0x90226d['push']('ck-suggestion-marker-'+_0x278e0e+'-new'),this['activeChange']==_0x181e32&&_0x90226d['push']('ck-suggestion-marker--active'),{'classes':_0x90226d,'attributes':{'data-change-id':_0xdaa093}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3e2d84=>{_0x3e2d84['on']('element:pre',(_0x4e59f1,_0x3bad41,_0x36c670)=>{const _0x31ba67=_0x3bad41['viewItem']['getChild'](0x0);if(!_0x31ba67||!_0x31ba67['is']('element','code'))return;if(!_0x36c670['consumable']['consume'](_0x31ba67,{'attributes':['vid_start','vid_end']}))return;const _0x481e70=_0x3bad41['modelRange']['start']['nodeAfter'];_0x36c670['writer']['setAttribute']('vid_start',_0x31ba67['getAttribute']('vid_start'),_0x481e70),_0x36c670['writer']['setAttribute']('vid_end',_0x31ba67['getAttribute']('vid_end'),_0x481e70);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1a8a34=>{_0x1a8a34['on']('element',(_0x17455c,_0x4d3325,_0x52793f)=>{if(!_0x52793f['consumable']['consume'](_0x4d3325['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4d3325['modelRange']['isCollapsed'])return;const _0x233a3c=_0x4d3325['modelRange']['start']['nodeAfter'];_0x233a3c['hasAttribute']('vid_start')||_0x233a3c['hasAttribute']('vid')||(_0x52793f['writer']['setAttribute']('vid_start',_0x4d3325['viewItem']['getAttribute']('vid_start'),_0x233a3c),_0x52793f['writer']['setAttribute']('vid_end',_0x4d3325['viewItem']['getAttribute']('vid_end'),_0x233a3c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x47566c=>_0x47566c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53287c,[,_0x1d7e1a])=>{['vid_start','vid_end','vid']['includes'](_0x1d7e1a)&&(_0x53287c['return']=!0x0,_0x53287c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x45bfd7=>{_0x45bfd7['on']('attribute:vid',(_0x380b8f,_0x44d2d2,_0x3a7701)=>{if('\x20'!=_0x44d2d2['item']['data']||_0x44d2d2['item']['parent']['maxOffset']>0x1)return;if(!_0x3a7701['consumable']['consume'](_0x44d2d2['item'],_0x380b8f['name']))return;const _0x2ed92e=_0x3a7701['writer'],_0x1b41de=_0x3a7701['mapper']['toViewRange'](_0x44d2d2['range']);_0x2ed92e['wrap'](_0x1b41de,_0x2ed92e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1e5b41){const _0x2e40df=_0x1e5b41['plugins']['get']('RevisionViewer');return(_0x357fa9,_0x382d6d,_0x5344cf)=>{const _0x4988af=_0x382d6d['markerName']['split'](':')[0x1],_0x2ca185=_0x2e40df['_getChangeFromId'](_0x4988af);if(!_0x2ca185)return null;const _0xe0c80='add'==_0x2ca185['type']?'split':'merge';if(!_0x5344cf['consumable']['test'](_0x382d6d['markerRange'],_0x357fa9['name']))return;const _0x4c34c9=_0x382d6d['markerRange']['getWalker'](),_0x19e425=_0x382d6d['markerRange']['start'],_0x1ea9f4=_0x1e5b41['model']['schema'];let _0x2d59c7=null,_0x1ce27d=null,_0x3a27bb=!0x1,_0x1771bb=!0x1;for(const _0x4f8ca6 of _0x4c34c9){const _0x2787ee=_0x4f8ca6['item'];_0x3a27bb=_0x3a27bb||_0x1ea9f4['isContent'](_0x2787ee);const _0x3823df=_0x5344cf['mapper']['toViewElement'](_0x2787ee);if(_0x3823df&&_0x3823df['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f8ca6['type']&&(_0x1ea9f4['isBlock'](_0x2787ee)&&!_0x1ea9f4['isLimit'](_0x2787ee)&&(_0x2787ee['nextSibling']||_0x19e425['isAtEnd']?_0x2d59c7&&_0x2d59c7['parent']==_0x2787ee||(_0x2d59c7=_0x2787ee,_0x3c11da(_0x4f8ca6['previousPosition']),_0x1771bb=!0x0):_0x1ce27d=_0x1ce27d||_0x4f8ca6['previousPosition']));}function _0x3c11da(_0x4e7cd8){const _0x46a7f2=_0x5344cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe0c80}),_0x1a7e3d=_0x5344cf['mapper']['toViewPosition'](_0x4e7cd8);_0x2ca185['data']['isSuggestion']&&_0x5344cf['writer']['addClass']('ck-suggestion-marker-'+_0xe0c80+'-new',_0x46a7f2),_0x2e40df['activeChange']==_0x2ca185&&_0x5344cf['writer']['addClass']('ck-suggestion-marker--active',_0x46a7f2),_0x5344cf['writer']['insert'](_0x1a7e3d,_0x46a7f2),_0x5344cf['mapper']['bindElementToMarker'](_0x46a7f2,_0x382d6d['markerName']);}_0x3a27bb||_0x1771bb||!_0x1ce27d||_0x3c11da(_0x1ce27d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5d23ab,_0x56041e,_0x57dd03)=>{const _0x54ae85=_0x57dd03['mapper']['markerNameToElements'](_0x56041e['markerName']);if(_0x54ae85){for(const _0x163763 of _0x54ae85)(_0x163763['hasClass']('ck-suggestion-marker-split')||_0x163763['hasClass']('ck-suggestion-marker-merge'))&&(_0x57dd03['mapper']['unbindElementFromMarkerName'](_0x163763,_0x56041e['markerName']),_0x57dd03['writer']['remove'](_0x163763));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x542364,_0x12b445,_0xc89db4)=>{const _0x50779e=_0x12b445['markerName']['split'](':')[0x1],_0x333f38=this['_getChangeFromId'](_0x50779e);if(!_0x333f38)return null;const _0x461ad8='add'==_0x333f38['type']?'split':'merge';if(_0xc89db4['consumable']['test'](_0x12b445['markerRange'],_0x542364['name']))for(const _0xd50725 of _0x12b445['markerRange']['getItems']()){if(!_0xd50725['is']('element','softBreak'))continue;const _0x16997d=_0xc89db4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x461ad8}),_0x390035=_0xc89db4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xd50725));_0x333f38['data']['isSuggestion']&&_0xc89db4['writer']['addClass']('ck-suggestion-marker-'+_0x461ad8+'-new',_0x16997d),this['activeChange']==_0x333f38&&_0xc89db4['writer']['addClass']('ck-suggestion-marker--active',_0x16997d),_0xc89db4['writer']['insert'](_0x390035,_0x16997d),_0xc89db4['mapper']['bindElementToMarker'](_0x16997d,_0x12b445['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x56b458=>{for(const _0x22d635 of this['editor']['model']['document']['getRootNames']()){const _0x3c6d39=this['editor']['model']['document']['getRoot'](_0x22d635),_0x1995e9=this['editor']['editing']['view']['document']['getRoot'](_0x22d635);if(_0x1995e9){const _0x5281f8=_0x3c6d39['getAttribute']('revisionHistoryAttachChange');if(_0x56b458['removeAttribute']('data-change-id',_0x1995e9),_0x56b458['removeClass']('ck-revision-history-root-add',_0x1995e9),_0x56b458['removeClass']('ck-revision-history-root-remove',_0x1995e9),_0x56b458['removeClass']('ck-revision-history-root--active',_0x1995e9),_0x5281f8){const _0x13d3ec=this['_getChangeFromId'](_0x5281f8);if(!_0x13d3ec)return null;_0x56b458['setAttribute']('data-change-id',_0x5281f8,_0x1995e9),_0x56b458['addClass']('ck-revision-history-root-'+_0x13d3ec['type'],_0x1995e9),this['activeChange']==_0x13d3ec&&_0x56b458['addClass']('ck-revision-history-root--active',_0x1995e9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c4caf=>'revision-comment:'+_0x1c4caf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4617c1=>'revision-suggestion:'+_0x4617c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ce418=>({'name':'suggestion:'+_0x1ce418,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x33b769=>{const _0x31c473=_0x33b769['markerName']['split'](':')[0x1];return'insertion'!=_0x31c473&&'deletion'!=_0x31c473?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x31c473]};}}),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',(_0xeec95b,_0x4aa8a9,_0x25a701)=>{const _0x5b7772=_0x25a701['mapper']['markerNameToElements'](_0x4aa8a9['markerName']);if(_0x5b7772){for(const _0x5c0f2a of _0x5b7772)_0x5c0f2a['is']('uiElement')&&(_0x25a701['mapper']['unbindElementFromMarkerName'](_0x5c0f2a,_0x4aa8a9['markerName']),_0x25a701['writer']['remove'](_0x5c0f2a));}},{'priority':'high'});}['_getChangeFromId'](_0x33a396){return this['_changeIdToChange']['get'](_0x33a396);}['_getViewForChange'](_0x34b0eb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x34b0eb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x9270b5,_0x2688dc,_0x4e1d67,_0x37f2fb)=>{_0x37f2fb&&this['_balloon']['remove'](_0x37f2fb),_0x4e1d67&&(this['_balloon']['add']({'view':_0x4e1d67,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x32e008=this['editor']['editing'],_0x4b5e28=this['_getChangeFromId'](_0x4e1d67['changeId']);let _0x499e3d;if(_0x4b5e28['data']['isOnRoot']){const _0x4e842d=_0x32e008['view']['getDomRoot'](_0x4b5e28['rootName']);_0x499e3d=Array['from'](_0x4e842d['getClientRects']());}else{const _0x3587c5=this['editor']['model']['markers']['get']('revision:'+_0x4e1d67['changeId']);_0x499e3d=Array['from'](_0x32e008['mapper']['markerNameToElements'](_0x3587c5['name']))['map'](_0x566be4=>_0x32e008['view']['domConverter']['mapViewToDom'](_0x566be4))['map'](_0x314920=>Array['from'](_0x314920['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x499e3d[0x0];return _0x499e3d['find'](_0xfda530=>_0xfda530['top']-0x3<=this['_activeViewTarget']['y']&&_0xfda530['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xfda530['left']-0x3<=this['_activeViewTarget']['x']&&_0xfda530['right']+0x3>=this['_activeViewTarget']['x'])||_0x499e3d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3a3b5f,_0x2c0736,_0xcd0ff0,_0x250d24)=>{this['activeView']=_0xcd0ff0?this['_getViewForChange'](_0xcd0ff0):null,this['editor']['model']['change'](()=>{const _0x142404=this['editor']['editing'];_0x250d24&&(_0x250d24['data']['isOnRoot']?_0x142404['view']['change'](_0x2a59da=>{_0x2a59da['removeClass']('ck-revision-history-root--active',_0x142404['view']['document']['getRoot'](_0x250d24['rootName']));}):_0x142404['reconvertMarker']('revision:'+_0x250d24['id'])),_0xcd0ff0&&(_0xcd0ff0['data']['isOnRoot']?_0x142404['view']['change'](_0x715ff0=>{_0x715ff0['addClass']('ck-revision-history-root--active',_0x142404['view']['document']['getRoot'](_0xcd0ff0['rootName']));}):_0x142404['reconvertMarker']('revision:'+_0xcd0ff0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4789dc,_0x54336a)=>{if(this['activeChange'])return;const _0x21c0db=this['_findChangeIdFromDomTarget'](_0x54336a['target']),_0x416de0=this['_changeIdToChange']['get'](_0x21c0db);_0x416de0?(this['_activeViewTarget']={'x':_0x54336a['domEvent']['x'],'y':_0x54336a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x416de0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5abcb7,_0x1fbf9e)=>{const _0x24d47b=this['_findChangeIdFromDomTarget'](_0x1fbf9e['target']),_0x3d76d6=this['_changeIdToChange']['get'](_0x24d47b);_0x3d76d6?(this['_activeViewTarget']={'x':_0x1fbf9e['domEvent']['x'],'y':_0x1fbf9e['domEvent']['y']},_0x3d76d6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3d76d6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x7c0bc1){do{const _0x16f559=_0x7c0bc1['getAttribute']('data-change-id');if(_0x16f559)return _0x16f559;_0x7c0bc1=_0x7c0bc1['parent'];}while(_0x7c0bc1);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x577eae=>{for(const _0x192b38 of this['editor']['model']['markers'])_0x577eae['removeMarker'](_0x192b38);});}}function Z(_0x4a6dcf,_0x55af2b){return(_0x46b9b3,_0x237bbb,_0x12c916)=>{if(!_0x12c916['consumable']['test'](_0x237bbb['markerRange'],_0x46b9b3['name']))return;const _0x9ee600=_0x237bbb['markerRange']['getWalker'](),_0xfc974a=_0x237bbb['markerRange']['start'],_0x432272=_0x4a6dcf['model']['schema'];let _0x4ae127=null,_0x242922=null,_0x2b6ac8=!0x1,_0x41b4b0=!0x1;for(const _0x1be9cb of _0x9ee600){const _0x524bf0=_0x1be9cb['item'];_0x2b6ac8=_0x2b6ac8||_0x432272['isContent'](_0x524bf0);const _0x280058=_0x12c916['mapper']['toViewElement'](_0x524bf0);if(_0x280058&&_0x280058['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1be9cb['type']&&(_0x432272['isBlock'](_0x524bf0)&&!_0x432272['isLimit'](_0x524bf0)&&(_0x524bf0['nextSibling']||_0xfc974a['isAtEnd']?_0x4ae127&&_0x4ae127['parent']==_0x524bf0||(_0x4ae127=_0x524bf0,_0x54cc5c(_0x1be9cb['previousPosition']),_0x41b4b0=!0x0):_0x242922=_0x242922||_0x1be9cb['previousPosition']));}function _0x54cc5c(_0x47641a){const _0x4698ef=_0x12c916['mapper']['toViewPosition'](_0x47641a),_0x72d996=_0x12c916['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55af2b});_0x12c916['writer']['insert'](_0x4698ef,_0x72d996),_0x12c916['mapper']['bindElementToMarker'](_0x72d996,_0x237bbb['markerName']);}_0x2b6ac8||_0x41b4b0||!_0x242922||_0x54cc5c(_0x242922);};}class _t extends _0x1f5cb3{constructor(_0x143379){super(_0x143379);const _0x4aebe2=_0x143379['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4aebe2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4aebe2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4fc608=this['editor'],_0x2819ee=_0x4fc608['plugins']['get'](d),_0x42ebe9=_0x2819ee['isReady']?_0x2819ee['diff']['newRevisionId']:null;_0x4fc608['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x42ebe9);}['refresh'](){const {isReady:_0x551e53,isEnabled:_0x2144a0,repository:_0x2677c0,diff:_0x2aabac}=this['editor']['plugins']['get'](d),_0x6cbb61=_0x2aabac&&_0x2677c0['getLaterVisibleRevision'](_0x2aabac['newRevisionId']);this['isEnabled']=_0x551e53&&_0x2144a0&&Boolean(_0x6cbb61);}}class yt extends _0x1f5cb3{['_step'];constructor(_0x558be7,{direction:_0x49dd4b}){super(_0x558be7);const _0x2bb565=_0x558be7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x49dd4b?0x1:-0x1,this['listenTo'](_0x2bb565,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bb565,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2bb565,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3ba35b=this['editor'],_0x2d044d=_0x3ba35b['plugins']['get'](d),{isNavigationMode:_0x3d833b,currentChangeNumber:_0xe73822}=_0x2d044d;let _0x5f3536;if(_0x2d044d['activeChange']=_0x3d833b?_0x2d044d['diff']['changes']['get'](_0xe73822+this['_step']):_0x2d044d['diff']['changes']['first'],_0x2d044d['activeChange']['data']['isOnRoot'])_0x5f3536=_0x3ba35b['editing']['view']['getDomRoot'](_0x2d044d['activeChange']['rootName']);else{const _0x548249=_0x3ba35b['model']['markers']['get']('revision:'+_0x2d044d['activeChange']['id']);_0x5f3536=_0x5580dc(_0x3ba35b['editing'],_0x548249);}_0x44a078({'target':_0x5f3536,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1a25ae,currentChangeNumber:_0x24d5d4,numberOfChanges:_0x55ac9e,isReady:_0x424a23,isEnabled:_0x21b8e4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x21b8e4&&_0x424a23&&_0x55ac9e)&&(!_0x1a25ae||(0x1===this['_step']?_0x24d5d4<_0x55ac9e-0x1:_0x24d5d4>0x0));}}class di extends _0xe1dbd2{constructor(_0x53b729){super(_0x53b729);const _0x2bfe7e=this['bindTemplate'],_0x2d2494=new _0x126554(_0x53b729),_0x14bd32=new _0x126554(_0x53b729);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',(_0x2df871,_0x12099c)=>_0x2df871&&_0x12099c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x270b78,_0x51a07f,_0x3802f2,_0x40eadd)=>{if(!_0x270b78)return m(_0x53b729,'Loading...');if(!_0x3802f2)return m(_0x53b729,'No\x20changes');const _0x53f4d6=m(_0x53b729,'NUMBER_OF_CHANGES',_0x3802f2);return _0x40eadd?m(_0x53b729,'X_OF_Y_CHANGES',[_0x51a07f+0x1,_0x3802f2]):_0x53f4d6;}),_0x2d2494['set']({'label':m(_0x53b729,'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'}),_0x14bd32['set']({'label':m(_0x53b729,'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'}),_0x2d2494['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x14bd32['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2d2494['on']('execute',()=>this['fire']('execute','backward')),_0x14bd32['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',_0x2bfe7e['if']('_isStatusLabelVisible','ck-hidden',_0x388c0a=>!_0x388c0a)]},'children':[{'text':_0x2bfe7e['to']('isNavigationMode',_0x434de4=>_0x434de4?m(_0x53b729,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x53b729,'Total')+':\x20')}]},{'text':_0x2bfe7e['to']('_statusText')}]},new _0x9a9e37(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2d2494,_0x14bd32]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0xca27d3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x7fb490=this['editor']['editing']['view'];_0x7fb490['change'](_0x2ac927=>{for(const _0x3e231f of _0x7fb490['document']['roots'])_0x2ac927['addClass'](ce,_0x3e231f);});}['hide'](){const _0x26ea32=this['editor']['editing']['view'];_0x26ea32['change'](_0x43cd45=>{for(const _0x3be4c0 of _0x26ea32['document']['roots'])_0x43cd45['removeClass'](ce,_0x3be4c0);});}}class g extends _0xca27d3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x355195=this['editor'],_0x39b325=_0x355195['plugins']['get'](d),_0x44c98b=_0x355195['plugins']['get'](ae);_0x355195['ui']['componentFactory']['add']('exitToEditing',_0x14ea7f=>{const _0xee1d20=new _0x126554(_0x14ea7f);return _0xee1d20['set']({'label':m(_0x14ea7f,'Back\x20to\x20editing'),'icon':_0x12fa6d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xee1d20,'execute',()=>{_0x355195['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xee1d20;}),_0x355195['ui']['componentFactory']['add']('restoreRevision',_0x2918d9=>{const _0x3ada9e=new _0x126554(_0x2918d9);return _0x3ada9e['set']({'label':m(_0x2918d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3ada9e['bind']('isEnabled')['to'](_0x355195['commands']['get']('restoreRevision')),this['listenTo'](_0x3ada9e,'execute',()=>_0x355195['execute']('restoreRevision')),_0x3ada9e;}),_0x355195['ui']['componentFactory']['add']('changesNavigation',_0x5d72b3=>{const _0x589bc0=new di(_0x5d72b3),_0x5ccfd7=_0x355195['commands']['get']('showPreviousChange'),_0x1fc292=_0x355195['commands']['get']('showNextChange');return _0x589bc0['bind']('isBackwardNavigationEnabled')['to'](_0x5ccfd7,'isEnabled'),_0x589bc0['bind']('isForwardNavigationEnabled')['to'](_0x1fc292,'isEnabled'),_0x589bc0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39b325),this['listenTo'](_0x589bc0,'execute',(_0x4b1e30,_0x4f159e)=>{_0x355195['execute']('forward'===_0x4f159e?'showNextChange':'showPreviousChange');}),_0x589bc0;}),_0x44c98b['show'](),_0x39b325['on']('change:isReady',(_0x1986cf,_0x3deab3,_0x31f2ac)=>{_0x31f2ac?_0x44c98b['hide']():_0x44c98b['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2e5223,_0x166d5a){super(_0x2e5223,_0x166d5a);const _0x5bb243=this['bindTemplate'];this['set']({'label':m(_0x2e5223,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2e5223,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5bb243['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 _0x58d93a=this['fieldView']['element'];this['_tooltipString']=_0x58d93a['scrollWidth']>_0x58d93a['clientWidth']&&_0x58d93a['value']||'';}}class ti extends _0xe1dbd2{constructor(_0x8a3a16,_0x3c68c7,_0xd58630){super(_0x8a3a16);const _0x24bf65=new _0x91a150();_0x24bf65['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 _0x96cf1a=['ck','ck-revision-history-sidebar__revision-author'];_0xd58630&&_0x96cf1a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x22814c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x8a3a16,_0xd58630?'Revision\x20creator':'Revision\x20author')},'children':[_0x24bf65,_0x3c68c7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x96cf1a},'children':_0x22814c});}}function ni(_0x2b4b0a,_0x42359c){const _0x1c31e1=_0x2b4b0a['bindTemplate'],_0x266ccb=_0x2b4b0a['locale'],_0x131b7a=_0x3d7371(_0x266ccb);_0x131b7a['panelPosition']='sw';const _0x10794d=function(_0x49cb82,_0x549fdf){const _0x2705e3=function(_0x4ad731,_0x25c38f){const _0x2b8134=_0x4ad731['locale'],_0x14aadc={'Compare\x20against\x20selected':m(_0x2b8134,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2b8134,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2b8134,'Restore\x20this\x20revision')};return _0x25c38f['map'](_0xb94b7a=>{const _0x330142=_0x14aadc[_0xb94b7a['name']];return _0x330142&&_0x330142!==_0xb94b7a['name']&&(_0xb94b7a['name']=_0x330142),_0xb94b7a;});}(_0x49cb82,_0x549fdf),_0x2cd6c5=new _0x314e29();for(const _0x4fac53 of _0x2705e3){const _0x576e24={'type':'button','model':new to({'label':_0x4fac53['name'],'class':_0x4fac53['class'],'withText':!0x0,'role':'menuitem','_action':_0x4fac53['action']})};_0x576e24['model']['bind']('isEnabled')['to'](_0x49cb82,'isActionsDropdownOpen',_0x5832fd=>'function'!=typeof _0x4fac53['isEnabled']||(!_0x5832fd||_0x4fac53['isEnabled'](_0x49cb82))),_0x2cd6c5['add'](_0x576e24);}return _0x2cd6c5;}(_0x2b4b0a,_0x42359c);return _0x2b4b0a['bind']('isActionsDropdownOpen')['to'](_0x131b7a,'isOpen'),_0x131b7a['buttonView']['set']({'label':m(_0x266ccb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x12fa6d['threeVerticalDots']}),_0x131b7a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1c31e1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1c31e1['to'](_0x2fb993=>_0x2fb993['stopPropagation']())}}),_0x131b7a['on']('execute',_0xa67a3c=>{_0x2b4b0a['isReady']&&'function'==typeof _0xa67a3c['source']['_action']&&_0xa67a3c['source']['_action'](_0x2b4b0a);}),_0x2c37da(_0x131b7a,_0x10794d,{'role':'menu'}),_0x131b7a['listenTo'](_0x2b4b0a,'change:isActionsDropdownOpen',(_0x510da1,_0x3aa312,_0x48aee8)=>{if(_0x48aee8)for(const _0x3e0537 of _0x131b7a['listView']['items']){const _0x3bb539=_0x3e0537['children']['first'],_0x201d68=_0x42359c['find'](_0x297fa8=>_0x297fa8['action']===_0x3bb539['_action'])['isVisible'];_0x3e0537['isVisible']=void 0x0===_0x201d68||_0x201d68(_0x2b4b0a);}}),_0x131b7a;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x31dcf0(_0xe1dbd2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x311c26,_0x3c3d7b,_0x1bbc94,_0x47ae8f){super(_0x311c26);const _0x27c293=this['bindTemplate'],_0x3ef19d=function(_0x233708,_0x26c546){const _0x4161d2=Array['from'](_0x26c546['authors'])['filter'](_0x143749=>_0x143749!=_0x26c546['creator']);return _0x26c546['creator']&&_0x4161d2['unshift'](_0x26c546['creator']),_0x4161d2['map'](_0x44ae40=>new ti(_0x233708,_0x44ae40,_0x44ae40==_0x26c546['creator']));}(_0x311c26,_0x3c3d7b);this['id']=_0x3c3d7b['id'],this['_revision']=_0x3c3d7b,this['_requireRevisionName']=_0x47ae8f,this['bind']('name','createdAt')['to'](_0x3c3d7b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x45bdbf=>{return _0x34dd3c=_0x311c26['uiLanguage'],(_0x24aab2=_0x45bdbf)['toLocaleDateString'](_0x34dd3c,{'month':'long','day':'numeric'})+',\x20'+_0x24aab2['toLocaleTimeString'](_0x34dd3c,{'hour':'numeric','minute':'numeric'});var _0x34dd3c,_0x24aab2;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x311c26,_0x573ceb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xa9bb7c=>_0xa9bb7c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x660706,_0x51d20d)=>_0x660706&&_0x51d20d),this['revisionActionsView']=_0x1bbc94&&_0x1bbc94['length']?ni(this,_0x1bbc94):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x27c293['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x27c293['if']('isEnabled','ck-disabled',_0x53acd3=>!_0x53acd3),_0x27c293['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x27c293['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x27c293['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':_0x27c293['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':_0x3ef19d}]},this['revisionActionsView']],'on':{'click':_0x27c293['to'](_0x39438d=>{_0x39438d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x410bd6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x410bd6,'change',()=>{this['_requireRevisionName']&&!_0x410bd6['value']||this['fire']('setName',{'id':this['id'],'name':_0x410bd6['value']}),_0x410bd6['value']||(_0x410bd6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1b1db9,_0x7ce5f8){const _0x4885b8=_0x154b11['fromJSDate'](_0x1b1db9)['setLocale'](_0x7ce5f8),_0x37568b=_0x154b11['local'](),_0x5f1092=_0x37568b['minus']({'days':0x1})['startOf']('day');let _0x4e2829,_0x12a12f;return _0x4885b8['hasSame'](_0x37568b,'day')?(_0x4e2829=_0x4885b8['startOf']('day')['toJSDate'](),_0x12a12f=_0x4885b8['toRelativeCalendar']()):_0x4885b8['hasSame'](_0x5f1092,'day')?(_0x4e2829=_0x5f1092['toJSDate'](),_0x12a12f=_0x4885b8['toRelativeCalendar']()):_0x4885b8['hasSame'](_0x37568b,'week')?(_0x4e2829=_0x4885b8['startOf']('week')['toJSDate'](),_0x12a12f=_0x4885b8['weekdayLong']||''):_0x4885b8['hasSame'](_0x37568b,'year')?(_0x4e2829=_0x4885b8['startOf']('month')['toJSDate'](),_0x12a12f=_0x4885b8['monthLong']||''):(_0x4e2829=_0x4885b8['startOf']('year')['toJSDate'](),_0x12a12f=String(_0x4885b8['year'])),{'startDate':_0x4e2829,'localizedPeriodName':_0x12a12f};}class vi extends _0xe1dbd2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x236006,_0x48f01e,_0x1549e5,_0x3f01ca){super(_0x236006);const _0x2ec29f=mi(_0x48f01e,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x48f01e,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1549e5,this['_requireRevisionName']=_0x3f01ca,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':_0x2ec29f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4ced45){const _0x31bc6f=new ai(this['locale'],_0x4ced45,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x31bc6f);}['removeRevision'](_0x37c4ea){const _0xc54903=this['revisionViews']['find'](_0x2e15a3=>_0x2e15a3['id']===_0x37c4ea['id']);this['revisionViews']['remove'](_0xc54903);}}class as extends _0xe1dbd2{constructor(_0x2b9608){super(_0x2b9608);const _0x5177d3=new _0x91a150();_0x5177d3['content']=_0x12fa6d['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5177d3,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x2b9608,'Revision\x20history')]}]});}}class li extends _0xe1dbd2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x61227e,_0x28a6d9,_0x11bfce,_0x2b28d9){super(_0x61227e);const _0x269efb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x28a6d9,this['_revisionActions']=_0x11bfce,this['_requireRevisionName']=_0x2b28d9,this['on']('select',(_0x49bf99,_0xafd1b5)=>{this['fire']('revisionSelected',_0xafd1b5);}),this['on']('setName',(_0x39a029,_0x16bf5c)=>{this['fire']('revisionSetName',_0x16bf5c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x61227e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x269efb['if']('isEnabled','ck-disabled',_0x2fbeb8=>!_0x2fbeb8)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4cd99f of this['_revisions'])this['_addRevision'](_0x4cd99f);this['_revisions']['on']('add',(_0x114a7a,_0x20f520)=>{this['_addRevision'](_0x20f520);}),this['_revisions']['on']('remove',(_0x513f88,_0x32a8d)=>{this['_removeRevision'](_0x32a8d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x916d09=>_0x916d09['revisionViews']['map'](_0x47763f=>_0x47763f))['flat']();}['selectRevision'](_0x32a4d3){for(const _0x370c34 of this['revisionViews'])_0x32a4d3&&_0x32a4d3['id']===_0x370c34['id']?_0x370c34['select']():_0x370c34['deselect']();}['highlightRevisions'](_0x2a9438){for(const _0x6832ed of this['revisionViews'])_0x2a9438['some'](({id:_0x345241})=>_0x345241===_0x6832ed['id'])?_0x6832ed['highlight']():_0x6832ed['unhighlight']();}['_addRevision'](_0x39b5ee){const _0x174cba=mi(_0x39b5ee['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x283727=this['timePeriodViews']['get'](0x0);_0x283727&&_0x283727['startDate']['getTime']()===_0x174cba['getTime']()||(_0x283727=new vi(this['locale'],_0x174cba,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x283727)),_0x283727['addRevision'](_0x39b5ee);}['_removeRevision'](_0x3e8281){const _0x5ea5f0=mi(_0x3e8281['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5ea5f0)['removeRevision'](_0x3e8281);}['_getTimePeriodViewByStartDate'](_0x3865d8){return this['timePeriodViews']['find'](_0x51f247=>_0x51f247['startDate']['getTime']()===_0x3865d8['getTime']());}}class w extends _0xca27d3{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x315b0b,_0x1b3f1e){super(_0x1b3f1e),this['sourceElement']=_0x315b0b,this['model']['document']['createRoot']();const _0x1d5282=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1d5282);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e1ef6,_0x46efc8){const _0x4b832b=new this(_0x4e1ef6,_0x46efc8);return await _0x4b832b['initPlugins'](),await _0x4b832b['ui']['init'](_0x4e1ef6),await _0x4b832b['data']['init'](_0x4b832b['config']['get']('initialData')||''),_0x4b832b['fire']('ready'),_0x4b832b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x495045{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5545d3){function _0x1217a0(_0x482957){return _0x482957['map'](_0x2778c8=>String['fromCharCode'](_0x2778c8))['join']('');}super(_0x5545d3),this['result']='end',_0x5545d3[_0x1217a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1217a0([0x76,0x69,0x65,0x77])][_0x1217a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1217a0([0x61,0x75,0x74,0x6f]),_0x5545d3[_0x1217a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1217a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1217a0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1217a0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1217a0([0x6f,0x6b])});}}class k extends _0x495045{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2f8a77){if(super(_0x2f8a77),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a49a4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4f1fcf=>this['_showRevisionViewer']({..._0x4f1fcf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b2d71=>this['_closeRevisionViewer'](_0x4b2d71)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x456d8e=>this['_restoreRevision'](_0x456d8e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d782b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d782b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x13a739){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x13a739);}['getRevision'](_0xe3a55c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xe3a55c);}['getRevisions'](_0x562e82){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x562e82||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5e7951=this['editor'],_0x3011f7=_0x5cd1f0(_0x5e7951,p),_0x4d9130=_0x5e7951['plugins']['get']('RevisionTracker'),_0x1078ea=_0x5e7951['plugins']['get']('Users')['users'];return _0x3011f7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3011f7['lazyRoots'],(_0x3011f7['plugins']['push'](Rt,d,g,class extends _0x495045{static get['requires'](){return[d,'Users'];}['init'](){const _0x54a106=this['editor']['plugins']['get']('Users');for(const _0x12dea7 of _0x1078ea)_0x12dea7['isAnonymous']||_0x54a106['getUser'](_0x12dea7['id'])||_0x54a106['addUser'](_0x12dea7);const _0x2bc50e=_0x4d9130['repository']['getRevisions']();let _0x492ad0=null;const _0x5ab251=this['editor']['plugins']['get']('RevisionViewer');_0x5ab251['adapter']=_0x4d9130['adapter'],_0x5ab251['bind']('isEnabled')['to'](_0x4d9130),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5e7951,'isReadOnly',_0xd2dc03=>!_0xd2dc03);for(const _0x58fc2b of _0x2bc50e){const _0x3f3754=null===_0x58fc2b['creator'];if(_0x3f3754&&_0x58fc2b['toVersion']===_0x58fc2b['fromVersion'])continue;const _0x51367e=_0x58fc2b['toJSON']();_0x5ab251['addRevisionData'](_0x51367e,(_0x156247,_0xf1c57d,_0x575002)=>{if(_0x3f3754){if(_0x492ad0)_0x492ad0['_update'](_0x156247,_0xf1c57d);else{if(!_0xf1c57d){const _0x26d2db=_0x575002['toJSON']();_0x26d2db['id']=_0x22b130(),_0x4d9130['saveRevision'](_0x26d2db,_0x575002['toVersion'])['then'](_0x3d8aaa=>{_0x492ad0=_0x3d8aaa;});}}}else _0x58fc2b['_update'](_0x156247,_0xf1c57d);});}}},w),_0x3011f7);}['_enhanceShowRevisionViewerCallback'](){const _0x308994=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4c2706=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5cd17b=this['editor']['plugins']['get']('Autosave');await _0x5cd17b['save']();}else await _0x4c2706['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x29f7ca=this['editor']['plugins']['get']('Dialog');_0x29f7ca['isOpen']&&_0x29f7ca['hide']();}const _0x1108fe=this['_getRevisionViewerEditorConfig']();return _0x308994(_0x1108fe)['then'](_0x11e8ab=>{return(this['_viewerEditor']=_0x11e8ab,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x11e8ab;})['catch'](_0x3389ba=>(console['error'](_0x3389ba),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57bad2=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'](),_0x57bad2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f9388=this['editor']['plugins']['get']('Annotations');_0x3f9388['refreshVisibility'](),_0x3f9388['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2dac0e){const _0x159c56=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1be374=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x59476b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x59476b,_0x2dac0e)['then'](_0x571673=>(_0x1be374['style']['display']='block',_0x159c56['style']['display']='none',_0x571673));}['_closeRevisionViewer'](_0x405876){const _0xf3a50b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xf3a50b['style']['display']='',_0x405876['destroy']();}async['_restoreRevision'](_0x3c7d1e){const _0x5847d2=this['editor'],_0xd6f9d0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5a5085=_0x5847d2['plugins']['get']('RevisionTracker'),_0x3b2a78=_0xd6f9d0['repository']['getRevision'](_0x3c7d1e);let _0x2edbac,_0x517392,_0x377a71;try{_0x2edbac=await _0xd6f9d0['getRevisionData'](_0x3b2a78),_0x517392=await _0xd6f9d0['getRevisionRootsAttributes'](_0x3b2a78);}catch(_0x15625b){return void console['error'](_0x15625b);}_0x5847d2['model']['change'](_0x5c0ddf=>{for(const _0x42b36f of Array['from'](_0x5847d2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5c0ddf['removeMarker'](_0x42b36f);}),_0xd6f9d0['isReady']=!0x1,_0x5847d2['model']['enqueueChange'](_0x44a2ee=>{_0x44a2ee['setSelection'](null),_0x44a2ee['removeSelectionAttribute'](_0x5847d2['model']['document']['selection']['getAttributeKeys']());const _0x38255b=Object['keys'](_0x2edbac);for(const _0x5c51d5 of _0x5847d2['model']['document']['roots'])'$graveyard'!=_0x5c51d5['rootName']&&_0x5c51d5['isAttached']()&&!_0x38255b['includes'](_0x5c51d5['rootName'])&&_0x44a2ee['detachRoot'](_0x5c51d5);for(const _0x45600d of _0x38255b){let _0xd76b8c=_0x5847d2['model']['document']['getRoot'](_0x45600d);_0xd76b8c&&_0xd76b8c['isAttached']()||(_0xd76b8c=_0x44a2ee['addRoot'](_0x45600d));const _0x3b1085=_0x517392[_0x45600d],_0x2ae4b2=Object['keys'](_0x3b1085),_0x2075c8=_0x2edbac[_0x45600d];for(const _0x2cb8ef of _0xd76b8c['getAttributeKeys']())_0x2ae4b2['includes'](_0x2cb8ef)||_0x44a2ee['removeAttribute'](_0x2cb8ef,_0xd76b8c);for(const _0x393d59 of _0x2ae4b2)_0x44a2ee['setAttribute'](_0x393d59,_0x517392[_0x45600d][_0x393d59],_0xd76b8c);_0x44a2ee['remove'](_0x44a2ee['createRangeIn'](_0xd76b8c)),_0x44a2ee['insert'](_0x5847d2['data']['parse'](_0x2075c8,_0xd76b8c),_0xd76b8c,0x0);}});const _0x406f50=m(_0x5847d2['locale'],'Restored');if(_0x3b2a78['name'])_0x377a71=-0x1==_0x3b2a78['name']['indexOf'](_0x406f50)?_0x406f50+':\x20'+_0x3b2a78['name']:_0x3b2a78['name'];else _0x377a71=_0x406f50+':\x20'+(_0x3b2a78['createdAt']['toLocaleDateString'](_0x5847d2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b2a78['createdAt']['toLocaleTimeString'](_0x5847d2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5a5085['saveRevision']({'name':_0x377a71}),_0xd6f9d0['isReady']=!0x0,_0x5847d2['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};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x13f9bf){super(_0x13f9bf),this['_revisionViewer']=_0x13f9bf['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5824ca=this['_revisionsRepository']['_revisions'],_0x167eee=this['_createRevisionActions'](),_0x44b540=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5824ca,_0x167eee,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',(_0xe8ab4b,_0x4a6827)=>{_0x4a6827['revisionViews']['on']('add',(_0x4ac2c3,_0x24e4fc)=>{_0x24e4fc['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)),_0x44b540['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4d4b8e=this['_revisionsRepository']['getRevision'](0x0);if(_0x4d4b8e){const _0x13fd05=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d4b8e['id']);this['_revisionViewer']['compare'](_0x4d4b8e,_0x13fd05);}}['_handleRevisionSelected'](_0x4cd052,_0x270aca){const _0xb2d959=this['_revisionsRepository']['getRevision'](_0x270aca['id']),_0x588bdc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xb2d959['id']);this['_revisionViewer']['compare'](_0xb2d959,_0x588bdc);}['_handleRevisionSetName'](_0x206d5f,_0x334070){this['_revisionsRepository']['getRevision'](_0x334070['id'])['setName'](_0x334070['name']);}['_handleDiffChange'](_0xb68500,_0x169b17,_0x3ef53e){const _0x4d80d9=this['_revisionsRepository']['getRevisionsInDiff'](_0x3ef53e);_0x4d80d9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4d80d9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4d80d9[0x0]));}['_createRevisionActions'](){const _0x3dda92=this['editor'],_0x4a5743=w['availableRevisionActions'],_0x2060d6=_0x3dda92['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x2060d6['length'])return _0x2060d6['map'](_0x4eda74=>{const _0x8d392a='string'==typeof _0x4eda74?Object['assign']({},_0x4a5743[_0x4eda74]):_0x4eda74;return _0x8d392a['action']=_0x8d392a['action']['bind'](this,_0x3dda92),_0x8d392a['isVisible']&&(_0x8d392a['isVisible']=_0x8d392a['isVisible']['bind'](this,_0x3dda92)),_0x8d392a;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1c8aa3},_0x2140c2)=>{const _0x3cc032=_0x1c8aa3['get'](d),_0x5dfb89=_0x3cc032['repository'];let _0x3df12b=_0x3cc032['diff']['newRevisionId'],_0x4c0cd5=_0x2140c2['id'];_0x5dfb89['getIndex'](_0x3df12b)>_0x5dfb89['getIndex'](_0x4c0cd5)&&([_0x3df12b,_0x4c0cd5]=[_0x4c0cd5,_0x3df12b]),_0x3cc032['compare'](_0x3df12b,_0x4c0cd5);},'isVisible':({plugins:_0x41850d},_0x18ca65)=>{const _0x4a6498=_0x41850d['get'](d);return!(_0x4a6498['repository']['getRevisionsInDiff'](_0x4a6498['diff'])['length']>0x2)&&!_0x18ca65['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x505e52,{id:_0x26b9fd})=>{_0x505e52['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26b9fd);},'isVisible':({plugins:_0x4e3746},_0x367c4a)=>!!_0x4e3746['get'](d)['repository']['getLaterVisibleRevision'](_0x367c4a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x488ec4},{id:_0x22555f,revisionNameView:_0x545698})=>{const _0x557bc1=_0x488ec4['get'](d),_0xc4fd72=_0x557bc1['repository']['getEarlierVisibleRevision'](_0x22555f);_0x557bc1['compare'](_0x22555f,_0xc4fd72),_0x545698['focus'](),_0x545698['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x496e96,_0x3e4a6e){super(_0x496e96),this['_view']=_0x3e4a6e,this['_toolbarConfig']=ot(_0x496e96['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3f28c5){const _0x575fc2=this['editor'],_0x31c192=this['view'],_0x2a9d66=_0x575fc2['editing']['view'],_0xa84449=_0x31c192['editable'],_0x35a51a=_0x2a9d66['document']['getRoot']();_0xa84449['name']=_0x35a51a['rootName'],_0x31c192['render']();const _0x5a8586=_0xa84449['element'];this['setEditableElement'](_0xa84449['name'],_0x5a8586),_0x31c192['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2a9d66['attachDomRoot'](_0x5a8586),this['_elementReplacer']['replace'](_0x3f28c5,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c4d6e=this['view'],_0x3edc8a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3edc8a['detachDomRoot'](_0x4c4d6e['editable']['name']),_0x4c4d6e['destroy']();}['_initToolbar'](){const _0x203449=this['view'];_0x203449['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x203449['stickyPanel']['limiterElement']=_0x203449['element'],_0x203449['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x28e5cc})=>_0x28e5cc),_0x203449['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x203449['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5f0d1a,_0x2e45b8,_0x55d942={}){super(_0x5f0d1a),this['stickyPanel']=new ut(_0x5f0d1a),this['toolbar']=new lt(_0x5f0d1a,{'shouldGroupWhenFull':_0x55d942['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5f0d1a,_0x2e45b8);}['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(_0x4a9ef3,_0x129e4a){super(_0x129e4a),this['sourceElement']=_0x4a9ef3,this['model']['document']['createRoot']();const _0x5a463c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5a463c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe0daca,_0x426096){const _0x480551=new this(_0xe0daca,_0x426096);return await _0x480551['initPlugins'](),await _0x480551['ui']['init'](_0xe0daca),await _0x480551['data']['init'](_0x480551['config']['get']('initialData')||''),_0x480551['fire']('ready'),_0x480551;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xca27d3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d2680){function _0x5c9b29(_0x3c2027){return _0x3c2027['map'](_0x42f5fc=>String['fromCharCode'](_0x42f5fc))['join']('');}super(_0x4d2680),this['result']='end',_0x4d2680[_0x5c9b29([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c9b29([0x76,0x69,0x65,0x77])][_0x5c9b29([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c9b29([0x61,0x75,0x74,0x6f]),_0x4d2680[_0x5c9b29([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5c9b29([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c9b29([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5c9b29([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5c9b29([0x6f,0x6b])});}}class k extends _0xca27d3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x33fd85){if(super(_0x33fd85),!this['editor']['config']['get']('revisionHistory'))throw new _0x5789de('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x490e1f=>this['_showRevisionViewer']({..._0x490e1f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1f1114=>this['_closeRevisionViewer'](_0x1f1114)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x306118=>this['_restoreRevision'](_0x306118)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x956e4e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x956e4e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5b201c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5b201c);}['getRevision'](_0x5640f9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5640f9);}['getRevisions'](_0x2235da){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2235da||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2b402b=this['editor'],_0xdc5ee2=_0x581424(_0x2b402b,p),_0x1cd502=_0x2b402b['plugins']['get']('RevisionTracker'),_0x2892d7=_0x2b402b['plugins']['get']('Users')['users'];return _0xdc5ee2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xdc5ee2['lazyRoots'],(_0xdc5ee2['plugins']['push'](Rt,d,g,class extends _0xca27d3{static get['requires'](){return[d,'Users'];}['init'](){const _0x30e13e=this['editor']['plugins']['get']('Users');for(const _0xf015e1 of _0x2892d7)_0xf015e1['isAnonymous']||_0x30e13e['getUser'](_0xf015e1['id'])||_0x30e13e['addUser'](_0xf015e1);const _0x23baee=_0x1cd502['repository']['getRevisions']();let _0x1d024f=null;const _0x8b0149=this['editor']['plugins']['get']('RevisionViewer');_0x8b0149['adapter']=_0x1cd502['adapter'],_0x8b0149['bind']('isEnabled')['to'](_0x1cd502),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2b402b,'isReadOnly',_0x465e6e=>!_0x465e6e);for(const _0x13e5d8 of _0x23baee){const _0xacde30=null===_0x13e5d8['creator'];if(_0xacde30&&_0x13e5d8['toVersion']===_0x13e5d8['fromVersion'])continue;const _0x123f74=_0x13e5d8['toJSON']();_0x8b0149['addRevisionData'](_0x123f74,(_0x266610,_0x462d4e,_0xb102fe)=>{if(_0xacde30){if(_0x1d024f)_0x1d024f['_update'](_0x266610,_0x462d4e);else{if(!_0x462d4e){const _0x35e1a8=_0xb102fe['toJSON']();_0x35e1a8['id']=_0x4e103a(),_0x1cd502['saveRevision'](_0x35e1a8,_0xb102fe['toVersion'])['then'](_0x2820de=>{_0x1d024f=_0x2820de;});}}}else _0x13e5d8['_update'](_0x266610,_0x462d4e);});}}},w),_0xdc5ee2);}['_enhanceShowRevisionViewerCallback'](){const _0x1ee503=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5da350=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2cdc51=this['editor']['plugins']['get']('Autosave');await _0x2cdc51['save']();}else await _0x5da350['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x18db33=this['editor']['plugins']['get']('Dialog');_0x18db33['isOpen']&&_0x18db33['hide']();}const _0x38b698=this['_getRevisionViewerEditorConfig']();return _0x1ee503(_0x38b698)['then'](_0x241be5=>{return(this['_viewerEditor']=_0x241be5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x241be5;})['catch'](_0x12935c=>(console['error'](_0x12935c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3ff68b=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'](),_0x3ff68b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ce4e5=this['editor']['plugins']['get']('Annotations');_0x1ce4e5['refreshVisibility'](),_0x1ce4e5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x393f7f){const _0x1d74f8=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3dfbe1=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x28e03f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x28e03f,_0x393f7f)['then'](_0x478a8b=>(_0x3dfbe1['style']['display']='block',_0x1d74f8['style']['display']='none',_0x478a8b));}['_closeRevisionViewer'](_0x3b3771){const _0x3a341d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3a341d['style']['display']='',_0x3b3771['destroy']();}async['_restoreRevision'](_0x29ebc2){const _0x480e14=this['editor'],_0x2a502b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1b1ba2=_0x480e14['plugins']['get']('RevisionTracker'),_0x25d1a4=_0x2a502b['repository']['getRevision'](_0x29ebc2);let _0x3af87a,_0x7c0351,_0x478903;try{_0x3af87a=await _0x2a502b['getRevisionData'](_0x25d1a4),_0x7c0351=await _0x2a502b['getRevisionRootsAttributes'](_0x25d1a4);}catch(_0x30131d){return void console['error'](_0x30131d);}_0x480e14['model']['change'](_0x196caf=>{for(const _0x1c81fb of Array['from'](_0x480e14['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x196caf['removeMarker'](_0x1c81fb);}),_0x2a502b['isReady']=!0x1,_0x480e14['model']['enqueueChange'](_0x3fc68c=>{_0x3fc68c['setSelection'](null),_0x3fc68c['removeSelectionAttribute'](_0x480e14['model']['document']['selection']['getAttributeKeys']());const _0x4ddf50=Object['keys'](_0x3af87a);for(const _0x3025a6 of _0x480e14['model']['document']['roots'])'$graveyard'!=_0x3025a6['rootName']&&_0x3025a6['isAttached']()&&!_0x4ddf50['includes'](_0x3025a6['rootName'])&&_0x3fc68c['detachRoot'](_0x3025a6);for(const _0x3a1af7 of _0x4ddf50){let _0x4b09a2=_0x480e14['model']['document']['getRoot'](_0x3a1af7);_0x4b09a2&&_0x4b09a2['isAttached']()||(_0x4b09a2=_0x3fc68c['addRoot'](_0x3a1af7));const _0x3dca1a=_0x7c0351[_0x3a1af7],_0x5ed52e=Object['keys'](_0x3dca1a),_0x11dbfc=_0x3af87a[_0x3a1af7];for(const _0x12f001 of _0x4b09a2['getAttributeKeys']())_0x5ed52e['includes'](_0x12f001)||_0x3fc68c['removeAttribute'](_0x12f001,_0x4b09a2);for(const _0x3d2473 of _0x5ed52e)_0x3fc68c['setAttribute'](_0x3d2473,_0x7c0351[_0x3a1af7][_0x3d2473],_0x4b09a2);_0x3fc68c['remove'](_0x3fc68c['createRangeIn'](_0x4b09a2)),_0x3fc68c['insert'](_0x480e14['data']['parse'](_0x11dbfc,_0x4b09a2),_0x4b09a2,0x0);}});const _0x5ce162=m(_0x480e14['locale'],'Restored');if(_0x25d1a4['name'])_0x478903=-0x1==_0x25d1a4['name']['indexOf'](_0x5ce162)?_0x5ce162+':\x20'+_0x25d1a4['name']:_0x25d1a4['name'];else _0x478903=_0x5ce162+':\x20'+(_0x25d1a4['createdAt']['toLocaleDateString'](_0x480e14['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25d1a4['createdAt']['toLocaleTimeString'](_0x480e14['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1b1ba2['saveRevision']({'name':_0x478903}),_0x2a502b['isReady']=!0x0,_0x480e14['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|