@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250301.0 → 0.0.0-nightly-next-20250302.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3b0b35(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xdf4a82){super(),this['id']=_0xdf4a82['id']||_0x535b38(),this['creator']=_0xdf4a82['creator']||null,this['authors']=_0xdf4a82['authors']||[],this['diffData']=_0xdf4a82['diffData']||null,this['toVersion']=_0xdf4a82['toVersion']||0x0,this['fromVersion']=_0xdf4a82['fromVersion']||0x0,this['set']('name',_0xdf4a82['name']||''),this['set']('createdAt',_0xdf4a82['createdAt']||new Date()),this['set']('attributes',_0xdf4a82['attributes']||{});}['setName'](_0x359a94){this['_update']({'name':_0x359a94});}['setAttribute'](_0x5408d2,_0x110660){const _0x1edecf=_0x154b69(this['attributes']);_0x58316b(_0x1edecf,_0x5408d2,_0x110660),this['_update']({'attributes':_0x1edecf});}['removeAttribute'](_0xecc7e5){const _0x182ea3=_0x154b69(this['attributes']);_0x2ade26(_0x182ea3,_0xecc7e5),this['_update']({'attributes':_0x182ea3});}['_update'](_0x2385b5,_0x1647a4=!0x1){let _0xb6ef71=!0x1;const _0x4cac62={'id':this['id']},_0x54562c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31aae3 of _0x54562c){const _0x53c201=_0x2385b5[_0x31aae3];void 0x0!==_0x53c201&&_0x53c201!==this[_0x31aae3]&&(this[_0x31aae3]=_0x53c201,_0x4cac62[_0x31aae3]=_0x53c201,_0xb6ef71=!0x0);}_0xb6ef71&&(_0x4cac62['authors']&&(_0x4cac62['authorsIds']=_0x4cac62['authors']['map'](_0x2523e1=>_0x2523e1['id']),delete _0x4cac62['authors']),this['fire']('_update',_0x4cac62,_0x1647a4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x425e6c=>_0x425e6c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c29cb{['_revisions'];static get['requires'](){return[_0x39ed24];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x570df9){super(_0x570df9),this['_revisions']=new _0x7305bb();}['afterInit'](){!async function(_0x4a44f4){const _0x1ad0cd=_0x59eb2e([0x43,0x39,0x4e,0x6f,0x78,0x6e,0x71,0x62,0x4c,0x30,0x4f,0x36,0x42,0x6c,0x53,0x45,0x61,0x41,0x65,0x34,0x67,0x44,0x38,0x4b,0x79,0x75,0x32,0x55,0x57,0x63,0x6b,0x72,0x6d,0x35,0x47,0x4d,0x58,0x49,0x76,0x59,0x37,0x69,0x50,0x77,0x48,0x73,0x74,0x46,0x6a,0x54,0x31,0x7a,0x70,0x5a,0x33,0x52,0x4a,0x56,0x68,0x64,0x66,0x51]),_0x1a3c5f=0xeb829,_0x428a75=0x10949b15,_0x26fb39=0x1093fbf5^_0x428a75,_0x5089ab=window[_0x59eb2e([0x44,0x61,0x74,0x65])][_0x59eb2e([0x6e,0x6f,0x77])](),_0x11ef93=_0x4a44f4[_0x59eb2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35e49f=new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421546=>{_0x11ef93[_0x59eb2e([0x6f,0x6e,0x63,0x65])](_0x59eb2e([0x72,0x65,0x61,0x64,0x79]),_0x421546);}),_0xe2a6cb={[_0x59eb2e([0x6b,0x74,0x79])]:_0x59eb2e([0x45,0x43]),[_0x59eb2e([0x75,0x73,0x65])]:_0x59eb2e([0x73,0x69,0x67]),[_0x59eb2e([0x63,0x72,0x76])]:_0x59eb2e([0x50,0x2d,0x32,0x35,0x36]),[_0x59eb2e([0x78])]:_0x59eb2e([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]),[_0x59eb2e([0x79])]:_0x59eb2e([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]),[_0x59eb2e([0x61,0x6c,0x67])]:_0x59eb2e([0x45,0x53,0x32,0x35,0x36])},_0x2ae418=_0x11ef93[_0x59eb2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59eb2e([0x67,0x65,0x74])](_0x59eb2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32c340(){let _0x3b2209,_0x31c070=null,_0x430d7f=null;try{if(_0x2ae418==_0x59eb2e([0x47,0x50,0x4c]))return _0x59eb2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b2209=_0x38c176(),!_0x3b2209)return _0x59eb2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b2209[_0x59eb2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x430d7f=_0x26d3a1(_0x3b2209[_0x59eb2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b2209[_0x59eb2e([0x6a,0x74,0x69])])),await _0x2b2d60()?_0x1be5a2()?_0x8b8ebd()?_0x59eb2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x135652()?(_0x3b2209[_0x59eb2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59eb2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31c070=_0x2596b8(_0x59eb2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b2209[_0x59eb2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59eb2e([0x74,0x72,0x69,0x61,0x6c])&&(_0x31c070=_0x2596b8(_0x59eb2e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bb4fa()):_0x59eb2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59eb2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x422aa1){return _0x59eb2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8b8ebd(){const _0x407d31=[_0x59eb2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59eb2e([0x74,0x72,0x69,0x61,0x6c])][_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2209[_0x59eb2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5089ab/0x3e8:0xe10*_0x26fb39;return _0x3b2209[_0x59eb2e([0x65,0x78,0x70])]<_0x407d31;}function _0x1be5a2(){const _0x18edc3=_0x3b2209[_0x59eb2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18edc3)return!0x1;if(_0x18edc3[_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb2e([0x2a])))return!0x0;if(_0x18edc3[_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb2e([0x52,0x48])))return!0x0;if(_0x18edc3[_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb2e([0x52,0x52,0x48]))){if(_0x41bad9())return!0x0;if(_0x5ba5c4()||_0x174469())return!0x0;}return!0x1;}function _0x135652(){const _0x3072f2=_0x3b2209[_0x59eb2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3072f2||0x0==_0x3072f2[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x173b5b}=new URL(window[_0x59eb2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3072f2[_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173b5b))return!0x0;const _0x4ffe69=_0x173b5b[_0x59eb2e([0x73,0x70,0x6c,0x69,0x74])](_0x59eb2e([0x2e]));return _0x3072f2[_0x59eb2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e7827=>_0x5e7827[_0x59eb2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb2e([0x2a])))[_0x59eb2e([0x6d,0x61,0x70])](_0x1c6100=>_0x1c6100[_0x59eb2e([0x73,0x70,0x6c,0x69,0x74])](_0x59eb2e([0x2e])))[_0x59eb2e([0x73,0x6f,0x6d,0x65])](_0x2ac7d3=>_0x4ffe69[_0x59eb2e([0x65,0x76,0x65,0x72,0x79])]((_0xd2057c,_0x218ce7)=>_0x2ac7d3[_0x218ce7]===_0xd2057c||_0x2ac7d3[_0x218ce7]===_0x59eb2e([0x2a])));}function _0x5bb4fa(){return _0x31c070&&_0x430d7f?new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e72a2,_0x400aad)=>{_0x31c070[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x4e72a2,_0x400aad),_0x430d7f[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x4d89ca=>{_0x4d89ca!=_0x59eb2e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e72a2(_0x4d89ca);},_0x400aad);}):_0x31c070||_0x430d7f||_0x59eb2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26d3a1(_0x4e30be,_0x26710d){return new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c242d=>{if(_0x1d1f88())return _0x2c242d(_0x59eb2e([0x56,0x61,0x6c,0x69,0x64]));_0x498489(),_0x11ef93[_0x59eb2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59eb2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b710d=!0x1;const _0x502e03=_0x535b38();function _0x4765db(_0x4d78cc){return!!_0x4d78cc&&(typeof _0x4d78cc===_0x59eb2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d78cc===_0x59eb2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d78cc[_0x59eb2e([0x74,0x68,0x65,0x6e])]===_0x59eb2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d78cc[_0x59eb2e([0x63,0x61,0x74,0x63,0x68])]===_0x59eb2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2628f3(_0x3feca5){_0x53c6f7(_0x3feca5)[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x53570e=>{if(!_0x53570e||_0x53570e[_0x59eb2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59eb2e([0x6f,0x6b]))return _0x59eb2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f472(_0x58e5e7(_0x502e03+_0x26710d))!=_0x53570e[_0x59eb2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59eb2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x5f85d3=>(_0x296c11(),_0x5f85d3),()=>{const _0x2bca11=_0x1787ee();return null==_0x2bca11?(_0x296c11(),_0x59eb2e([0x56,0x61,0x6c,0x69,0x64])):_0x59eb2e(_0x5089ab-_0x2bca11>(0x34981f15^_0x428a75)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x2c242d)[_0x59eb2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c242d(_0x59eb2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2575d9=0x10a27595^_0x428a75;function _0x296c11(){const _0x25a8fa=_0x59eb2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f472(_0x58e5e7(_0x4e30be)),_0x14c166=_0x1c5afb(_0x37f472(window[_0x59eb2e([0x4d,0x61,0x74,0x68])][_0x59eb2e([0x63,0x65,0x69,0x6c])](_0x5089ab/_0x2575d9)));window[_0x59eb2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25a8fa,_0x14c166);}function _0x1787ee(){const _0x26e3b8=_0x59eb2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f472(_0x58e5e7(_0x4e30be)),_0x271ea2=window[_0x59eb2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26e3b8);return _0x271ea2?window[_0x59eb2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c5afb(_0x271ea2),0x10)*_0x2575d9:null;}function _0x53c6f7(_0x88713c){return new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33ef83,_0xa9d11e)=>{_0x88713c[_0x59eb2e([0x74,0x68,0x65,0x6e])](_0x33ef83,_0xa9d11e),window[_0x59eb2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa9d11e,0x10954fd5^_0x428a75);});}}_0x11ef93[_0x59eb2e([0x6f,0x6e])](_0x59eb2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x453390,_0x29a1df)=>{if(_0x29a1df[0x0]!=_0x4e30be)return _0x2c242d(_0x59eb2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29a1df[0x1]={..._0x29a1df[0x1],[_0x59eb2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x502e03};},{[_0x59eb2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb2e([0x68,0x69,0x67,0x68])}),_0x11ef93[_0x59eb2e([0x6f,0x6e])](_0x59eb2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44f6a5=>{_0x4765db(_0x44f6a5[_0x59eb2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b710d=!0x0,_0x2628f3(_0x44f6a5[_0x59eb2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59eb2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb2e([0x6c,0x6f,0x77])}),_0x35e49f[_0x59eb2e([0x74,0x68,0x65,0x6e])](()=>{_0x5b710d||_0x2c242d(_0x59eb2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d1f88(){return _0x11ef93[_0x59eb2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb2e([0x76,0x69,0x65,0x77])][_0x59eb2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59eb2e([0x61,0x75,0x74,0x6f]);}function _0x498489(){_0x11ef93[_0x59eb2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb2e([0x76,0x69,0x65,0x77])][_0x59eb2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59eb2e([0x61,0x75,0x74,0x6f]);}}function _0x2596b8(_0x598b0f){const _0x25d275=[new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31cbf9=>setTimeout(_0x31cbf9,0x109da5d9^_0x428a75)),_0x35e49f[_0x59eb2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb226=>{const _0x33fd0b=0x10949b12^_0x428a75,_0x415d0a=_0x4a44f4[_0x59eb2e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf2de30(){_0x415d0a[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x33fd0b&&_0x2bb226();}_0xf2de30(),_0x415d0a[_0x59eb2e([0x6f,0x6e])](_0x59eb2e([0x61,0x64,0x64]),_0xf2de30);})),new window[(_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xec2182=>{function _0x299ae5(){for(const _0x3b26f1 in window)if(window[_0x59eb2e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x59eb2e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3b26f1))&&window[_0x3b26f1]==_0x1a3c5f)return _0xec2182();_0x11ef93[_0x59eb2e([0x73,0x74,0x61,0x74,0x65])]!=_0x59eb2e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x59eb2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x299ae5,0x1094889d^_0x428a75);}_0x28b7c7(_0x59eb2e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x299ae5();})];return window[_0x59eb2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59eb2e([0x72,0x61,0x63,0x65])](_0x25d275)[_0x59eb2e([0x74,0x68,0x65,0x6e])](()=>_0x598b0f);}async function _0x48d58c(){if(await _0x35e49f,_0x28b7c7(_0x59eb2e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5b1cae=_0x4a44f4[_0x59eb2e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x40938c=_0x4a44f4[_0x59eb2e([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])](_0x5b1cae[_0x59eb2e([0x69,0x64])]),_0x23027d=_0x3be1ce(_0x59eb2e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23027d[_0x59eb2e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5b1cae['id'],_0x40938c?_0x40938c['id']:null,!0x0),_0x23027d[_0x59eb2e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59eb2e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23027d[_0x59eb2e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23027d[_0x59eb2e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5298d8,void(_0x23027d[_0x59eb2e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5298d8);}if(_0x28b7c7(_0x59eb2e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3d6940=_0x3be1ce(_0x59eb2e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3d6940[_0x59eb2e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59eb2e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3d6940[_0x59eb2e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3d6940[_0x59eb2e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5298d8,_0x3d6940[_0x59eb2e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5298d8;}_0x11ef93[_0x59eb2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5298d8,_0x11ef93[_0x59eb2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5298d8,_0x11ef93[_0x59eb2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59eb2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41bad9(){return _0x28b7c7(_0x59eb2e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3be1ce(_0x59eb2e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59eb2e([0x73,0x74,0x61,0x74,0x65])]==_0x59eb2e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5ba5c4(){return _0x28b7c7(_0x59eb2e([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 _0x174469(){return _0x28b7c7(_0x59eb2e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b2bd8(_0x4fbba1){const _0x38805f=_0x16ac42();_0x11ef93[_0x38805f]=_0x59eb2e([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])+_0x4fbba1,_0x4fbba1[_0x59eb2e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x59eb2e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x16ac42()]=_0x1a3c5f),_0x4fbba1!=_0x59eb2e([0x56,0x61,0x6c,0x69,0x64])&&_0x48d58c();}function _0x16ac42(){const _0x29c7f3=window[_0x59eb2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59eb2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59eb2e([0x6e,0x6f,0x77])]())[_0x59eb2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59eb2e([0x2e]),'');let _0x52e371=_0x59eb2e([0x43]);for(let _0x5482c3=0x0;_0x5482c3<_0x29c7f3[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5482c3+=0x2){let _0x5018fd=window[_0x59eb2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29c7f3[_0x59eb2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5482c3,_0x5482c3+0x2));_0x5018fd>=_0x1ad0cd[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5018fd-=_0x1ad0cd[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x52e371+=_0x1ad0cd[_0x5018fd];}return _0x52e371;}function _0x38c176(){const _0x49e033=_0x2ae418[_0x59eb2e([0x73,0x70,0x6c,0x69,0x74])](_0x59eb2e([0x2e]));if(0x3!=_0x49e033[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48f617(_0x49e033[0x1]);function _0x48f617(_0x121292){const _0x1058f4=_0x1f3aa4(_0x121292);return _0x1058f4&&_0x96c6b()?_0x1058f4:null;function _0x96c6b(){const _0x37ff48=_0x1058f4[_0x59eb2e([0x6a,0x74,0x69])],_0x747cb3=window[_0x59eb2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37ff48[_0x59eb2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37ff48[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54e89e={..._0x1058f4,[_0x59eb2e([0x6a,0x74,0x69])]:_0x37ff48[_0x59eb2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37ff48[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54e89e[_0x59eb2e([0x76,0x63])],_0x58e5e7(_0x54e89e)==_0x747cb3;}}}async function _0x2b2d60(){let _0x5d1537=!0x0;try{const _0x45d619=_0x2ae418[_0x59eb2e([0x73,0x70,0x6c,0x69,0x74])](_0x59eb2e([0x2e])),[_0x34a47d,_0x437847,_0x2c812b]=_0x45d619;return _0x21fe15(_0x34a47d),await _0x19be78(_0x34a47d,_0x437847,_0x2c812b),_0x5d1537;}catch(_0xfb90a){return!0x1;}function _0x21fe15(_0x4f6c24){const _0x460cdf=_0x1f3aa4(_0x4f6c24);_0x460cdf&&_0x460cdf[_0x59eb2e([0x61,0x6c,0x67])]==_0x59eb2e([0x45,0x53,0x32,0x35,0x36])||(_0x5d1537=!0x1);}async function _0x19be78(_0x48ed3a,_0x487568,_0x510cbb){const _0x355c1a=window[_0x59eb2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59eb2e([0x66,0x72,0x6f,0x6d])](_0x9c2e43(_0x510cbb),_0x5dc9e7=>_0x5dc9e7[_0x59eb2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32a5b1=new window[(_0x59eb2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59eb2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48ed3a+_0x59eb2e([0x2e])+_0x487568),_0x1c5a0f=window[_0x59eb2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59eb2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c5a0f)return;const _0x270a79=await _0x1c5a0f[_0x59eb2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59eb2e([0x6a,0x77,0x6b]),_0xe2a6cb,{[_0x59eb2e([0x6e,0x61,0x6d,0x65])]:_0x59eb2e([0x45,0x43,0x44,0x53,0x41]),[_0x59eb2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59eb2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59eb2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c5a0f[_0x59eb2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59eb2e([0x6e,0x61,0x6d,0x65])]:_0x59eb2e([0x45,0x43,0x44,0x53,0x41]),[_0x59eb2e([0x68,0x61,0x73,0x68])]:{[_0x59eb2e([0x6e,0x61,0x6d,0x65])]:_0x59eb2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x270a79,_0x355c1a,_0x32a5b1)||(_0x5d1537=!0x1);}}function _0x1f3aa4(_0x4141a0){return _0x4141a0[_0x59eb2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59eb2e([0x65,0x79]))?JSON[_0x59eb2e([0x70,0x61,0x72,0x73,0x65])](_0x9c2e43(_0x4141a0)):null;}function _0x9c2e43(_0x2a0a00){return window[_0x59eb2e([0x61,0x74,0x6f,0x62])](_0x2a0a00[_0x59eb2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59eb2e([0x2b]))[_0x59eb2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59eb2e([0x2f])));}function _0x58e5e7(_0x50b6d8){let _0x48c930=0x1505;function _0x2a5cfa(_0x2b7d12){for(let _0x2e7024=0x0;_0x2e7024<_0x2b7d12[_0x59eb2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7024++){const _0x2eb6f2=_0x2b7d12[_0x59eb2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e7024);_0x48c930=(_0x48c930<<0x5)+_0x48c930+_0x2eb6f2,_0x48c930&=_0x48c930;}}function _0x3a3d4e(_0x4b94a4){Array[_0x59eb2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b94a4)?_0x4b94a4[_0x59eb2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a3d4e):_0x4b94a4&&typeof _0x4b94a4==_0x59eb2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59eb2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b94a4)[_0x59eb2e([0x73,0x6f,0x72,0x74])]()[_0x59eb2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15c5ee,_0x4354f1])=>{_0x2a5cfa(_0x15c5ee),_0x3a3d4e(_0x4354f1);}):_0x2a5cfa(window[_0x59eb2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b94a4));}return _0x3a3d4e(_0x50b6d8),_0x48c930>>>0x0;}function _0x37f472(_0x288aed){return _0x288aed[_0x59eb2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59eb2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59eb2e([0x30]));}function _0x1c5afb(_0x7551b2){return _0x7551b2[_0x59eb2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59eb2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59eb2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x28b7c7(_0x1f8dec){return _0x11ef93[_0x59eb2e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59eb2e([0x68,0x61,0x73])](_0x1f8dec);}function _0x3be1ce(_0x18af0b){return _0x11ef93[_0x59eb2e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59eb2e([0x67,0x65,0x74])](_0x18af0b);}function _0x5298d8(){}function _0x59eb2e(_0x2bad17){return _0x2bad17['map'](_0xc3ac76=>String['fromCharCode'](_0xc3ac76))['join']('');}_0x1b2bd8(await _0x32c340());}(this);}['createRevision'](_0x511097){const _0xf0e233=this['editor']['plugins']['get']('Users');return new h({'id':_0x511097['id'],'name':_0x511097['name'],'creator':_0x511097['creatorId']?_0xf0e233['getUser'](_0x511097['creatorId']):null,'diffData':_0x511097['diffData']||_0x511097['data'],'authors':_0x511097['authorsIds']['map'](_0x339bb3=>_0xf0e233['getUser'](_0x339bb3)),'createdAt':new Date(_0x511097['createdAt']),'attributes':_0x511097['attributes'],'fromVersion':_0x511097['fromVersion'],'toVersion':_0x511097['toVersion']});}['addRevision'](_0xf686f8,_0x5c10cc=0x0){this['_revisions']['add'](_0xf686f8,_0x5c10cc);}['getRevision'](_0x2f683f){return this['_revisions']['get'](_0x2f683f);}['getRevisions'](_0x45c901={'toJSON':!0x1}){const _0x24e3cc=Array['from'](this['_revisions']);return _0x24e3cc['reverse'](),_0x45c901['toJSON']?_0x24e3cc['map'](_0x41a916=>_0x41a916['toJSON']()):_0x24e3cc;}['getIndex'](_0x115a29){return this['_revisions']['getIndex'](_0x115a29);}['getEarlierVisibleRevision'](_0x5cc5af){const [,_0x39ddc6]=this['getRevisionsIterator'](_0x5cc5af,{'direction':'earlier'});return _0x39ddc6;}['getLaterVisibleRevision'](_0x28495a){const [,_0x5b9b21]=this['getRevisionsIterator'](_0x28495a,{'direction':'later'});return _0x5b9b21;}['getRevisionsInDiff'](_0x19a644){const _0x295e30=[];for(const _0x34adc2 of this['getRevisionsIterator'](_0x19a644['newRevisionId']))if(_0x295e30['push'](_0x34adc2),_0x34adc2['id']===_0x19a644['oldRevisionId'])break;return _0x295e30;}*['getRevisionsIterator'](_0x17398d,{direction:_0x384c3a='earlier',filter:_0x4a20a0=()=>!0x0}={}){const _0x3dd2ce='earlier'===_0x384c3a?0x1:-0x1;let _0x420d26=this['_revisions']['get'](_0x17398d),_0x4e4848=this['getIndex'](_0x420d26);for(yield _0x420d26;_0x420d26;){if(_0x4e4848+=_0x3dd2ce,_0x420d26=this['getRevision'](_0x4e4848),!_0x420d26)return;_0x4a20a0(_0x420d26)&&(yield _0x420d26);}}}function m(_0xd09052,_0x590b29,_0x57f8fe){const t=_0xd09052['t'];switch(_0x590b29){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'},_0x57f8fe);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57f8fe);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x31792c,'a':_0x1d94aa,'e':_0x2a33b5,'r':_0x5bf9d7,'u':_0x310570};class u extends _0x1c29cb{['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[_0x39ed24,j,_0x1838ca];}constructor(_0x1a8f2d){super(_0x1a8f2d),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 _0x40d82c=_0x535b38();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x40d82c},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 _0x262fd9=this['repository']['getRevision'](0x0),_0x4067b0=_0x262fd9&&null===_0x262fd9['creator']?_0x262fd9:null;if(this['_continueCurrentRevision']=!!_0x4067b0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x20f4ec=this['_source']['getCurrentRevisionId'](),_0x51ec9a=this['repository']['getRevision'](_0x20f4ec);if(_0x51ec9a)this['_startingVersion']=_0x51ec9a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4485f8=this['_source']['history']['_operations']['find'](_0x256e8e=>!_0x256e8e['_isInit']),_0x23f1a1=_0x4485f8?_0x4485f8['baseVersion']:this['_source']['history']['version'];_0x262fd9?(_0x262fd9['toVersion']<_0x23f1a1&&_0x262fd9['_update']({'toVersion':_0x23f1a1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4067b0['id'],this['_startingVersion']=_0x4067b0['fromVersion']):(this['_startingVersion']=_0x262fd9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23f1a1,this['_continueCurrentRevision']=!0x1);}}else _0x4067b0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4067b0['toVersion'],this['editor']['model']['document']['history']['version']),_0x4067b0['fromVersion']===_0x4067b0['toVersion']?(0x0!==_0x4067b0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4067b0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4067b0['id'],this['_startingVersion']=_0x4067b0['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',_0x236a8b=>!_0x236a8b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cc203=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fde3f;for(const _0x17c216 in _0x4cc203){const _0x53333a=_0x17c216,_0x183957=_0x4cc203[_0x53333a];if('revisionHistoryLicenseKeyValid'==_0x183957||'revisionHistoryLicenseKeyInvalid'==_0x183957||'revisionHistoryLicenseKeyExpired'==_0x183957||'revisionHistoryLicenseKeyDomainLimit'==_0x183957||'revisionHistoryLicenseKeyNotAllowed'==_0x183957||'revisionHistoryLicenseKeyEvaluationLimit'==_0x183957||'revisionHistoryLicenseKeyTrialLimit'==_0x183957||'revisionHistoryLicenseKeyUsageLimit'==_0x183957){delete _0x4cc203[_0x53333a],_0x2fde3f=_0x183957,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2fde3f&&_0x4cc203['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2fde3f&&_0x4cc203['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2fde3f&&_0x4cc203['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2fde3f&&_0x4cc203['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fde3f&&_0x4cc203['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2fde3f&&_0x4cc203['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2fde3f&&_0x4cc203['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x515817=this['repository']['getRevision'](0x0),_0x26275f=await this['getRevisionDocumentData'](_0x515817),_0x3f981c=await this['getRevisionRootsAttributes'](_0x515817);this['_replaceEditorDataWithRevisionData'](_0x26275f,_0x3f981c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x18b9eb){this['_source']=_0x18b9eb;}async['update'](){const _0x3a1753=await this['_source']['getLatestVersion']();if(_0x3a1753>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d93d2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3a1753});_0x1d93d2['authors']=_0x1d93d2['authorsIds']['map'](_0x1eaf5a=>this['editor']['plugins']['get']('Users')['getUser'](_0x1eaf5a)),this['currentRevision']['_update'](_0x1d93d2);}}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'](_0xa44438={},_0x536824=null){const _0x7fff67=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x536824>this['currentRevision']['toVersion']&&(_0x536824=null),null===_0x536824&&(_0x536824=await this['_source']['getLatestVersion']());const _0x220f3c=this['_getFromVersion'](_0x536824),_0x18161f=this['buildRevisionData']({'from':_0x220f3c,'to':_0x536824});if(this['currentRevision']['toVersion']<_0x536824){const _0x43bf2e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x536824,'to':_0x536824});_0x43bf2e['authors']=[],_0x43bf2e['authorsIds']=[],_0x43bf2e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43bf2e,!0x0),delete _0x43bf2e['authors'],_0x7fff67['push'](_0x43bf2e);}_0xa44438['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xa44438['name']=_0xa44438['name']||null,_0xa44438['id']=_0xa44438['id']||_0x535b38(),_0xa44438={..._0xa44438,..._0x18161f};const _0x323a41=this['addRevisionData'](_0xa44438);_0x7fff67['push'](_0xa44438);const _0x508eb4=this['repository']['getIndex'](_0x323a41);if(0x0!==_0x508eb4){const _0x4341ec=this['repository']['getRevision'](_0x508eb4-0x1);if(_0x4341ec['fromVersion']!==_0x536824){const _0x150c3c=this['_revisionDataBuilder']['getData'](_0x536824,_0x4341ec['toVersion']),_0x23501e={'id':_0x4341ec['id'],'diffData':_0x150c3c['diffData'],'authorsIds':_0x150c3c['authorsIds'],'authors':_0x150c3c['authorsIds']['map'](_0x157fa2=>this['editor']['plugins']['get']('Users')['getUser'](_0x157fa2)),'fromVersion':_0x536824};_0x4341ec===this['currentRevision']&&(_0x23501e['createdAt']=new Date(_0xa44438['createdAt']['getTime']()+0xa)),_0x4341ec['_update'](_0x23501e,!0x0),delete _0x23501e['authors'],_0x7fff67['push'](_0x23501e);}}if(this['adapter']){for(const _0x47a9f9 of _0x7fff67)this['_bufferUpdate'](_0x47a9f9['id'],_0x47a9f9,!0x0);this['sendBufferedUpdates']();}return _0x323a41;}['addRevisionData'](_0x1a93d9){const _0x50ebed=this['repository']['createRevision'](_0x1a93d9);return this['adapter']&&_0x50ebed['on']('_update',(_0x2c6d56,_0x1b5212,_0x2f66eb)=>{_0x2f66eb||(this['_bufferUpdate'](_0x1b5212['id'],_0x1b5212,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x50ebed,this['_findInsertionIndex'](_0x50ebed)),_0x50ebed;}async['getRevisionDocumentData'](_0x3ab0b7){await this['_loadRevisionData'](_0x3ab0b7);const _0x4c3e9f={};for(const _0x12ebf3 in _0x3ab0b7['diffData']){if(_0x3ab0b7['diffData'][_0x12ebf3]['attachChange']&&!_0x3ab0b7['diffData'][_0x12ebf3]['attachChange']['isAttached'])continue;const _0x277b5a=this['_removeRevisionMarkers'](JSON['parse'](_0x3ab0b7['diffData'][_0x12ebf3]['insertions'])),_0x2e88da=this['editor']['editing']['view']['document'],_0x206f44=new _0x1b43b4(_0x2e88da,_0x277b5a['map'](_0x18d434=>P(_0x18d434,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4c3e9f[_0x12ebf3]=this['editor']['data']['processor']['toData'](_0x206f44),this['editor']['data']['processor']['useFillerType']('default');}return _0x4c3e9f;}async['getRevisionRootsAttributes'](_0x419ca0){await this['_loadRevisionData'](_0x419ca0);const _0x34208d={};for(const _0x3b4c72 in _0x419ca0['diffData'])_0x419ca0['diffData'][_0x3b4c72]['attachChange']&&!_0x419ca0['diffData'][_0x3b4c72]['attachChange']['isAttached']||(_0x34208d[_0x3b4c72]=_0x419ca0['diffData'][_0x3b4c72]['attributesAfter']||{});return _0x34208d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3b683a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x23deb4=0x0;_0x23deb4<_0x3b683a['length'];_0x23deb4++){const _0x4b0196=_0x3b683a[_0x23deb4];let _0x42a78d=!0x1;for(const _0x391172 of Object['keys'](_0x4b0196))void 0x0===_0x4b0196[_0x391172]?delete _0x4b0196[_0x391172]:'id'!==_0x391172&&(_0x42a78d=!0x0);_0x42a78d||(_0x3b683a[_0x23deb4]=null);}if(_0x3b683a=_0x3b683a['filter'](_0x168a24=>null!==_0x168a24),!_0x3b683a['length'])return;for(let _0x3f80aa=0x0;_0x3f80aa<_0x3b683a['length'];_0x3f80aa++){const _0x2089f1=_0x3b683a[_0x3f80aa];void 0x0!==_0x2089f1['fromVersion']&&void 0x0===_0x2089f1['toVersion']&&(_0x2089f1['toVersion']=this['repository']['getRevision'](_0x2089f1['id'])['toVersion']),void 0x0!==_0x2089f1['toVersion']&&void 0x0===_0x2089f1['fromVersion']&&(_0x2089f1['fromVersion']=this['repository']['getRevision'](_0x2089f1['id'])['fromVersion']);}const _0x354e8e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3b683a,_0x354e8e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xaf0e=>{if(_0xaf0e){for(const _0x2dd072 of _0xaf0e)this['setRevisionData']({'id':_0x2dd072['id'],'createdAt':_0x2dd072['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x418015,_0x107ab7){let _0x253d4d=this['editor']['config']['get']('initialData'),_0x14458f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x253d4d){_0x253d4d={};for(const _0x363f36 of this['editor']['model']['document']['getRootNames']())_0x253d4d[_0x363f36]='';}if('string'==typeof _0x253d4d&&(_0x253d4d={'main':_0x253d4d}),void 0x0===_0x14458f){_0x14458f={};for(const _0x433308 of this['editor']['model']['document']['getRootNames']())_0x14458f[_0x433308]={};}let _0xc0aaf8=!0x1;const _0x31d0d9=Object['keys'](_0x253d4d),_0x48c02d=Object['keys'](_0x418015);for(const _0x719b58 of _0x31d0d9){if(_0x253d4d[_0x719b58]!==_0x418015[_0x719b58]&&''!==_0x253d4d[_0x719b58]['trim']()){_0xc0aaf8=!0x0;break;}if(!_0x868678(_0x14458f[_0x719b58],_0x107ab7[_0x719b58])&&Object['keys'](_0x14458f[_0x719b58])['length']>0x0){_0xc0aaf8=!0x0;break;}}_0xc0aaf8||(_0xc0aaf8=_0x48c02d['some'](_0x4aed17=>!this['editor']['model']['document']['getRoot'](_0x4aed17))),_0xc0aaf8&&_0x5d78d7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x253d4d,'editorRootsAttributes':_0x14458f,'revisionData':_0x418015,'revisionRootsAttributes':_0x107ab7}),this['editor']['config']['set']('initialData',_0x418015),this['editor']['config']['set']('rootsAttributes',_0x107ab7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3731c7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3731c7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36dec7){const _0x2db66d=this['repository']['getRevisions']();_0x2db66d['reverse']();let _0x26d285=0x0;for(;_0x26d285<_0x2db66d['length'];){const _0x5aca37=_0x2db66d[_0x26d285];if(_0x5aca37===this['currentRevision']){_0x26d285++;continue;}if(_0x5aca37['id']===this['_initialRevisionId'])break;const _0x323398=_0x36dec7['toVersion']-_0x5aca37['toVersion']||_0x36dec7['fromVersion']-_0x5aca37['fromVersion'];if(_0x323398>0x0)break;if(_0x323398<0x0)_0x26d285++;else{if(!_0x36dec7['creator']&&_0x5aca37['creator'])break;if(_0x5aca37['creator']||!_0x36dec7['creator']){if(_0x36dec7['createdAt']>_0x5aca37['createdAt'])break;_0x26d285++;}else _0x26d285++;}}return _0x26d285;}['setRevisionData'](_0x3097f9){const _0x4cabfb=this['repository']['getRevision'](_0x3097f9['id']);if(_0x3097f9['createdAt']&&(_0x3097f9['createdAt']=new Date(_0x3097f9['createdAt'])),_0x3097f9['authorsIds']){const _0x56a98d=this['editor']['plugins']['get']('Users');_0x3097f9['authors']=_0x3097f9['authorsIds']['map'](_0xf33695=>_0x56a98d['getUser'](_0xf33695));}_0x4cabfb['_update'](_0x3097f9,!0x0);}['buildRevisionData']({revision:_0x3d23d0=null,from:_0x21fb25=null,to:_0x2d962d=null}){_0x21fb25=null!==_0x21fb25?_0x21fb25:_0x3d23d0['fromVersion'],_0x2d962d=null!==_0x2d962d?_0x2d962d:_0x3d23d0['toVersion'];const _0x1e2d42=this['_revisionDataBuilder']['getData'](_0x21fb25,_0x2d962d),_0x5c7fbd={'diffData':_0x1e2d42['diffData'],'authorsIds':_0x1e2d42['authorsIds'],'fromVersion':_0x21fb25,'toVersion':_0x2d962d};if(!_0x3d23d0||_0x2d962d!==_0x3d23d0['toVersion']){const _0xb74c21=_0x2d962d-0x1,_0x2eaf9b=this['_source']['history']['getOperation'](_0xb74c21);_0x5c7fbd['createdAt']=_0x2eaf9b&&_0x2eaf9b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x21fb25===this['_loadedStateData']['fromVersion']){for(const _0x24b545 of this['_loadedStateData']['authors'])_0x5c7fbd['authorsIds']['includes'](_0x24b545['id'])||_0x5c7fbd['authorsIds']['push'](_0x24b545['id']);}return _0x5c7fbd;}['_loadRevisionData'](_0x31dcae){if(!_0x31dcae||_0x31dcae['diffData'])return Promise['resolve']();{const _0x487126=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x487126,'revisionId':_0x31dcae['id']})['then'](_0x54b1a1=>{_0x31dcae['diffData']=_0x54b1a1['diffData'];});}}['_bufferUpdate'](_0x109fba,_0x122a2d,_0x386ec6){if(this['_bufferedUpdates']['has'](_0x109fba)){const _0x22d31a=this['_bufferedUpdates']['get'](_0x109fba);_0x122a2d=_0x386ec6?{..._0x22d31a,..._0x122a2d}:{..._0x122a2d,..._0x22d31a};}this['_bufferedUpdates']['set'](_0x109fba,_0x122a2d);}['_getFromVersion'](_0xf16afe){const _0x7f7935=this['repository']['getRevisions']();_0x7f7935['reverse'](),_0x7f7935['shift']();const _0x535dc3=_0x7f7935['find'](_0x488c61=>_0x488c61['toVersion']<=_0xf16afe)['toVersion'];return _0x535dc3<this['_startingVersion']?this['_startingVersion']:_0x535dc3;}['_createInitialRevision'](_0x803fb0){const _0x58cda6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x58cda6)this['_initialRevisionId']=_0x58cda6['id'];else{const _0x3157f6=!this['editor']['model']['document']['roots']['find'](_0x44382e=>this['editor']['model']['hasContent'](_0x44382e)),_0x1f437b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1369ee=m(this['editor']['locale'],_0x3157f6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x803fb0,'to':_0x803fb0,'id':this['_initialRevisionId'],'name':_0x1369ee,'creatorId':_0x1f437b});}}['_createCurrentRevision'](_0x16bdac){const _0x1ccbaf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ccbaf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x16bdac,'to':_0x16bdac,'id':_0x1ccbaf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x417c0a,from:_0x1f0db6,to:_0x58b590,creatorId:_0x4d0dcc,id:_0x4cc06b}){const _0x1b6032=this['buildRevisionData']({'from':_0x1f0db6,'to':_0x58b590});_0x1b6032['name']=_0x417c0a,_0x1b6032['creatorId']=_0x4d0dcc,_0x1b6032['id']=_0x4cc06b;const _0x9224b2=this['addRevisionData'](_0x1b6032);return this['adapter']&&this['_bufferUpdate'](_0x1b6032['id'],_0x1b6032,!0x0),_0x9224b2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x31909c){return(_0x31909c=_0x31909c['filter'](_0xdfb189=>!_0xdfb189['name']||'revision-start'!==_0xdfb189['name']&&'revision-end'!==_0xdfb189['name']))['forEach'](_0x1b6fd5=>{'string'!=typeof _0x1b6fd5&&(_0x1b6fd5['children']=this['_removeRevisionMarkers'](_0x1b6fd5['children']),_0x1b6fd5['attributes']=_0x1b6fd5['attributes']['filter'](_0x2a088a=>!_0x2a088a[0x0]['startsWith']('data-revision-')));}),_0x31909c;}}function P(_0x392d5f,_0x1e9c4c){const _0x4a29ff=_0x1e9c4c['editing']['view']['document'];if('string'==typeof _0x392d5f)return new _0x3b8149(_0x4a29ff,_0x392d5f);{const _0x508248=_0x392d5f['children']['map'](_0x5a9f2b=>P(_0x5a9f2b,_0x1e9c4c));return new(E[_0x392d5f['type']]||_0x3a12cd)(_0x4a29ff,_0x392d5f['name'],_0x392d5f['attributes'],_0x508248);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x186a48){this['editor']=_0x186a48,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'](_0x4de597){this['source']=_0x4de597;const _0x153c5d=new Map(),_0x20fdf2=new Map(),_0x510fe0=this['editor']['model']['document']['roots']['map'](_0x3effcf=>_0x3effcf['rootName']);for(const _0x4bab4d of _0x510fe0){const _0x27604e=this['editor']['model']['document']['getRoot'](_0x4bab4d),_0x12ccd4=T(_0x27604e);_0x153c5d['set'](_0x4bab4d,_0x12ccd4),_0x20fdf2['set'](_0x4bab4d,Object['fromEntries'](_0x27604e['getAttributes']()));}const _0x4c2ddb=Array['from'](this['editor']['model']['markers'])['map'](_0x448261=>[_0x448261['name'],_0x448261['getRange']()]),_0x595004=this['source']['version'];this['_saveMetaData'](_0x595004,_0x153c5d,_0x4c2ddb,_0x20fdf2),this['_startingRevisionId']=this['_revisionId'];const _0xe7277c=new Map(),_0x58fda8=new Map();for(const _0x2085d4 of _0x510fe0){const _0x59a6c5=F(_0x2085d4);_0xe7277c['set'](_0x2085d4,_0x59a6c5),_0x58fda8['set'](_0x2085d4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xe7277c,[],_0x58fda8);}['getData'](_0x5795e4,_0xab8ca9){if(this['_lastFrom']===_0x5795e4&&this['_lastTo']<=_0xab8ca9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xab8ca9,!0x0);else{if(!this['_savedMetaData']['has'](_0x5795e4)){const _0x42fd4e=this['_getPreviousFrom'](_0x5795e4);this['_calculateMetaData'](_0x42fd4e,_0x5795e4,!0x1);}this['_calculateMetaData'](_0x5795e4,_0xab8ca9,!0x0);}return this['_lastFrom']=_0x5795e4,this['_lastTo']=_0xab8ca9,this['_getState']();}['loadState'](_0x2915c1){this['_reset'](),this['_lastFrom']=_0x2915c1['fromVersion'],this['_lastTo']=_0x2915c1['toVersion'];for(const _0x1521e1 in _0x2915c1['diffData']){const _0x45e243=_0x2915c1['diffData'][_0x1521e1]['attachChange'],_0x1a5170=_0x154b69(_0x2915c1['diffData'][_0x1521e1]['attributesBefore'])||{},_0x5f46f9=this['_makeModelFromViewString'](_0x2915c1['diffData'][_0x1521e1]['deletions']);_0x5f46f9['rootName']=_0x1521e1,_0x5f46f9['_isAttached']=!_0x45e243||!_0x45e243['isAttached'],_0x5f46f9['isAttached']=()=>_0x5f46f9['_isAttached'],this['_baseRoots']['set'](_0x1521e1,_0x5f46f9),this['_baseRootsAttributes']['set'](_0x1521e1,_0x1a5170),_0x45e243&&this['_touchedRoots']['set'](_0x1521e1,_0x45e243);const _0x41d1e0=this['_makeIdsRoot'](_0x5f46f9);this['_baseIdsRoots']['set'](_0x1521e1,_0x41d1e0);for(const [_0x1b94e1,_0x36257d]of _0x5f46f9['markers']){if(!_0x1b94e1['startsWith']('revision:'))continue;const _0x4679c4=_0x1b94e1['split'](':')[0x2];for(const _0x459655 of _0x36257d['getWalker']({'singleCharacters':!0x0})){const _0x1826f9=this['_getVidAttributeName'](_0x459655),_0x2e2d20='elementEnd'==_0x459655['type']?_0x459655['previousPosition']['path']['slice'](0x0,-0x1):_0x459655['previousPosition']['path'],_0x8a711d=_0x41d1e0['getNodeByPath'](_0x2e2d20)['getAttribute'](_0x1826f9);this['_touched']['set'](_0x8a711d,{'userId':_0x4679c4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x476169=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xbb1bb5=>!this['_touched']['has'](_0xbb1bb5));let _0x1d0c1e=0x0;const _0x5341f3=new Map();for(const _0x3c3a5f in _0x2915c1['diffData']){const _0x593333=_0x2915c1['diffData'][_0x3c3a5f]['attachChange'],_0x42aae2=_0x154b69(_0x2915c1['diffData'][_0x3c3a5f]['attributesAfter'])||{},_0x4d8f93=this['_makeModelFromViewString'](_0x2915c1['diffData'][_0x3c3a5f]['insertions']);_0x4d8f93['rootName']=_0x3c3a5f,_0x4d8f93['_isAttached']=!_0x593333||_0x593333['isAttached'],_0x4d8f93['isAttached']=()=>_0x4d8f93['_isAttached'],this['_diffRoots']['set'](_0x3c3a5f,_0x4d8f93),this['_diffRootsAttributes']['set'](_0x3c3a5f,_0x42aae2);const _0x259264=this['_makeIdsRoot'](_0x4d8f93,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3c3a5f,_0x259264),_0x5341f3['set'](_0x3c3a5f,_0x4d8f93['isAttached']()?_0x42aae2:{});for(const [_0x459f3c,_0x3f91a4]of _0x4d8f93['markers']){if(!_0x459f3c['startsWith']('revision:'))continue;const _0x3ad407=_0x459f3c['split'](':')[0x2];for(const _0x1ce106 of _0x3f91a4['getWalker']({'singleCharacters':!0x0})){const _0x1d47f9=this['_getVidAttributeName'](_0x1ce106),_0x44469c=this['_revisionId']++,_0x43536b='elementEnd'==_0x1ce106['type']?_0x1ce106['previousPosition']['path']['slice'](0x0,-0x1):_0x1ce106['previousPosition']['path'];_0x259264['getNodeByPath'](_0x43536b)['_setAttribute'](_0x1d47f9,_0x44469c),this['_touched']['set'](_0x44469c,{'userId':_0x3ad407});}}for(const _0x155d57 of this['editor']['model']['createRangeIn'](_0x4d8f93)['getWalker']({'singleCharacters':!0x0})){const _0x3b4d47=this['_getVidAttributeName'](_0x155d57),_0x37b463='elementEnd'==_0x155d57['type']?_0x155d57['previousPosition']['path']['slice'](0x0,-0x1):_0x155d57['previousPosition']['path'],_0x10c338=_0x259264['getNodeByPath'](_0x37b463);_0x10c338['getAttribute'](_0x3b4d47)>0x0||_0x10c338['_setAttribute'](_0x3b4d47,_0x476169[_0x1d0c1e++]);}for(const [_0x3813c0,_0x3657fe]of _0x4d8f93['markers'])_0x3813c0['startsWith']('revision:')||this['_markers']['set'](_0x3813c0,_0x3657fe);}const _0x254f68=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x254f68),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x254f68,0x1));const _0x321e9d=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x321e9d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x321e9d,0x1));const _0x75deda=Array['from'](this['_diffRoots'])['map'](([_0x15e20e,_0x1c9b6e])=>[_0x15e20e,T(_0x1c9b6e)]);this['_saveMetaData'](this['_lastTo'],_0x75deda,this['_markers'],_0x5341f3);}['_makeModelFromViewString'](_0x4692b8){const _0x509a52=JSON['parse'](_0x4692b8),_0x462e91=this['editor']['editing']['view']['document'],_0x6f59a1=new _0x1b43b4(_0x462e91,_0x509a52['map'](_0x429927=>P(_0x429927,this['editor'])));return this['editor']['data']['toModel'](_0x6f59a1);}['_saveMetaData'](_0x17c3f9,_0x3970c1,_0x14d8e8,_0x3ea2da){const _0x126c5a=new Map(_0x3970c1),_0x228533=new Map(_0x154b69(_0x3ea2da)),_0xeb3170=new Map();for(const [_0x31a83a,_0x4f0518]of _0x14d8e8)_0xeb3170['set'](_0x31a83a,{'start':_0x4f0518['start']['clone'](),'end':_0x4f0518['end']['clone'](),'rootName':_0x4f0518['root']['rootName']});this['_savedMetaData']['set'](_0x17c3f9,{'roots':_0x126c5a,'markers':_0xeb3170,'rootsAttributes':_0x228533});}['_removeMetaData'](_0x40224a){this['_savedMetaData']['delete'](_0x40224a);}['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'](_0x3184bf,_0x14f63b=null){let _0xf9eedd=null;_0x3184bf['is']('documentFragment')||(_0xf9eedd=new ut(_0x3184bf['name'],{'vid_start':null===_0x14f63b?this['_revisionId']++:_0x14f63b++}));const _0x2d850e=[];for(const _0x28a0cd of _0x3184bf['getChildren']())if(_0x28a0cd['is']('element')){_0x2d850e['push'](this['_makeIdsRoot'](_0x28a0cd,_0x14f63b));const _0x2302a6=_0x2d850e[_0x2d850e['length']-0x1];null!==_0x14f63b&&(_0x14f63b=_0x2302a6['is']('element','$text')?_0x2302a6['getAttribute']('vid')+0x1:_0x2302a6['getAttribute']('vid_end')+0x1);}else{for(let _0x5a6558=0x0;_0x5a6558<_0x28a0cd['offsetSize'];_0x5a6558++)_0x2d850e['push'](new ut('$text',{'vid':null===_0x14f63b?this['_revisionId']++:_0x14f63b++}));}if(_0x3184bf['is']('documentFragment')){const _0x56c1b4=F(_0x3184bf['rootName']);return _0x56c1b4['_insertChild'](0x0,_0x2d850e),_0x56c1b4;}return _0xf9eedd['_setAttribute']('vid_end',null===_0x14f63b?this['_revisionId']++:_0x14f63b++),_0xf9eedd['_insertChild'](0x0,_0x2d850e),_0xf9eedd;}['_calculateMetaData'](_0x426e09,_0x1fd11a,_0x52a9a1){this['_reset']();const {roots:_0x1e2b5f,markers:_0x245816,rootsAttributes:_0x2f4f1b}=this['_savedMetaData']['get'](_0x426e09);this['_baseRoots']=new Map(_0x1e2b5f),this['_baseRootsAttributes']=new Map(_0x154b69(_0x2f4f1b));for(const [_0x29da47,_0x27b5dd]of this['_baseRoots'])if('$graveyard'!==_0x29da47&&(this['_diffRoots']['set'](_0x29da47,T(_0x27b5dd)),this['_diffRootsAttributes']=new Map(_0x154b69(_0x2f4f1b)),_0x52a9a1)){const _0x15f33f=this['_revisionId'];this['_idsRoots']['set'](_0x29da47,this['_makeIdsRoot'](_0x27b5dd)),this['_baseIdsRoots']['set'](_0x29da47,this['_makeIdsRoot'](_0x27b5dd,_0x15f33f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x52a9a1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x502e89,_0x212220]of _0x245816){const _0x561170=this['_baseRoots']['get'](_0x212220['rootName']),_0x5646ca=this['_diffRoots']['get'](_0x212220['rootName']),_0x36f8a3=new ft(this['_fixPosition'](_0x212220['start'],_0x561170),this['_fixPosition'](_0x212220['end'],_0x561170)),_0x393063=this['_fixRange'](_0x36f8a3,_0x5646ca);_0x561170['markers']['set'](_0x502e89,_0x36f8a3),this['_markers']['set'](_0x502e89,_0x393063);}this['_applyOperations'](_0x426e09,_0x1fd11a,_0x52a9a1);}['_applyOperations'](_0x255cf4,_0x218524,_0x32c65a){for(const _0x499932 of this['source']['getOperations'](_0x255cf4,_0x218524))this['_handleOperation'](_0x499932,_0x32c65a);for(const _0x54a0fe of this['_diffRoots']['values']())_0x54a0fe['markers']['clear']();for(const [_0x299418,_0x213ede]of this['_markers']){this['_diffRoots']['get'](_0x213ede['root']['rootName'])['markers']['set'](_0x299418,_0x213ede['clone']());}const _0x399b39=new Map(),_0x5530c3=new Map();for(const [_0x1a91ac,_0x92ebe1]of this['_diffRoots'])_0x399b39['set'](_0x1a91ac,T(_0x92ebe1)),_0x5530c3['set'](_0x1a91ac,this['_diffRootsAttributes']['get'](_0x1a91ac));this['_saveMetaData'](_0x218524,_0x399b39,this['_markers'],_0x5530c3);}['_getPreviousFrom'](_0x3e1b53){const _0x143635=Array['from'](this['_savedMetaData']['keys']());_0x143635['sort']((_0x140dda,_0x3d4043)=>_0x140dda-_0x3d4043),_0x143635['reverse']();for(const _0x15ff08 of _0x143635)if(_0x15ff08<_0x3e1b53)return _0x15ff08;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x13cd10,_0x25fc49){const _0xce950e=Array['from'](_0x25fc49['markers'])['map'](([_0x208440,_0x256c3d])=>[_0x208440,this['_fixRange'](_0x256c3d,_0x13cd10)]);_0x13cd10['markers']=new Map(_0xce950e);}['_transformMarkers'](_0x286a51){for(const _0x1efc44 of this['_markers']['values']()){const _0x4ef79c=_0x1efc44['getTransformedByOperation'](_0x286a51),_0x4a67b4=ft['_createFromRanges'](_0x4ef79c);_0x1efc44['start']=_0x4a67b4['start'],_0x1efc44['end']=_0x4a67b4['end'];}}['_handleOperation'](_0x26e44e,_0x459ec5){if('addRoot'!=_0x26e44e['type']&&'detachRoot'!=_0x26e44e['type']){if('insert'==_0x26e44e['type']){const _0x438333=_0x26e44e['position']['root']['rootName'];this['_diffRoots']['has'](_0x438333)||(this['_diffRoots']['set'](_0x438333,F(_0x438333,!0x0)),this['_diffRootsAttributes']['set'](_0x438333,{}),_0x459ec5&&this['_idsRoots']['set'](_0x438333,F(_0x438333,!0x0)));}else{if('addRootAttribute'==_0x26e44e['type']||'removeRootAttribute'==_0x26e44e['type']||'changeRootAttribute'==_0x26e44e['type'])return void this['_handleRootAttributeOperation'](_0x26e44e);'marker'==_0x26e44e['type']&&this['_handleMarkerOperation'](_0x26e44e);}if('marker'!==_0x26e44e['type']){const _0x293794=this['_cloneOperation'](_0x26e44e,this['_diffRoots']);_0x293794['_execute'](),this['_transformMarkers'](_0x293794);}if(_0x459ec5)switch(_0x26e44e['type']){case'insert':this['_handleInsertOperation'](_0x26e44e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26e44e);break;case'merge':this['_handleMergeOperation'](_0x26e44e);break;case'split':this['_handleSplitOperation'](_0x26e44e);}}else this['_handleRootOperation'](_0x26e44e,_0x459ec5);}['_cloneOperation'](_0x1b2894,_0x473caa){const _0xaefe06=_0x1b2894['clone']();return _0xaefe06['_authorId']=_0x1b2894['_authorId'],this['_fixOperation'](_0xaefe06,_0x473caa),_0xaefe06;}['_getBaseVids'](_0x6cc59e){return _0x6cc59e['map'](_0x191931=>{const _0x2aa8d3=this['_getVidAttributeName'](_0x191931);return Number(_0x191931['item']['getAttribute'](_0x2aa8d3));});}['_generateTape'](_0x49a3eb,_0x57756b){if(_0x49a3eb['is']('element','$text'))_0x57756b['push']({'item':_0x49a3eb,'type':'text'});else{_0x49a3eb['is']('element')&&_0x57756b['push']({'item':_0x49a3eb,'type':'elementStart'});for(const _0x230746 of _0x49a3eb['getChildren']())this['_generateTape'](_0x230746,_0x57756b);_0x49a3eb['is']('element')&&_0x57756b['push']({'item':_0x49a3eb,'type':'elementEnd'});}return _0x57756b;}['_getState'](){const _0x2c6de9=new Map(this['_touched']),_0x1a7e24=new Map(_0x2c6de9),_0x2091d9=new Map(),_0x327931={'insertions':{},'deletions':{}},_0x5dd1c4={'insertions':{},'deletions':{}},_0x6c576b=new Map(),_0x1fc245=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1fc245['delete']('$graveyard');for(const _0x55e2dc of _0x1fc245){const _0x24521c=this['_diffRoots']['get'](_0x55e2dc)||F(_0x55e2dc,!0x1),_0x21efc8=this['_baseRoots']['get'](_0x55e2dc)||F(_0x55e2dc,!0x1);_0x24521c['isAttached']()||_0x21efc8['isAttached']()?(_0x327931['insertions'][_0x55e2dc]=T(_0x24521c),_0x327931['deletions'][_0x55e2dc]=T(_0x21efc8),this['_copyMarkers'](_0x327931['deletions'][_0x55e2dc],_0x21efc8),this['_copyMarkers'](_0x327931['insertions'][_0x55e2dc],_0x24521c),_0x5dd1c4['insertions'][_0x55e2dc]=this['_generateTape'](this['_idsRoots']['get'](_0x55e2dc),[]),_0x5dd1c4['deletions'][_0x55e2dc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x55e2dc)||F(_0x55e2dc,!0x1),[])):_0x1fc245['delete'](_0x55e2dc);}for(const _0x195e80 of _0x1fc245){const _0x16e279=_0x5dd1c4['insertions'][_0x195e80];for(const _0x3879de of _0x16e279){const _0x3ee0b1=this['_getVidAttributeName'](_0x3879de),_0x3f9114=_0x3879de['item']['getAttribute'](_0x3ee0b1);_0x1a7e24['delete'](_0x3f9114),_0x3f9114>=this['_startingRevisionId']&&_0x2091d9['set'](_0x3f9114,_0x2c6de9['get'](_0x3f9114));}}for(const _0x209fd6 of _0x1fc245){const _0x5d3092=_0x5dd1c4['insertions'][_0x209fd6],_0x4c0268=this['_getBaseVids'](_0x5dd1c4['deletions'][_0x209fd6]);let _0x350fc4=0x0;for(const _0x4d1593 of _0x5d3092){const _0x522785=this['_getVidAttributeName'](_0x4d1593),_0x331803=_0x4d1593['item']['getAttribute'](_0x522785);if(!_0x2091d9['has'](_0x331803)&&!_0x6c576b['has'](_0x331803)){if(_0x1a7e24['has'](_0x331803))_0x350fc4++;else{if(_0x331803!=_0x4c0268[_0x350fc4]){const _0x45fb6e=_0x2c6de9['get'](_0x331803)||_0x2c6de9['get'](_0x4c0268[_0x350fc4]);for(;_0x331803!=_0x4c0268[_0x350fc4];)_0x1a7e24['has'](_0x4c0268[_0x350fc4])||(_0x6c576b['set'](_0x4c0268[_0x350fc4],_0x45fb6e),_0x2c6de9['set'](_0x4c0268[_0x350fc4],_0x45fb6e)),_0x350fc4++;}_0x350fc4++;}}}}for(const _0x34bd3d of _0x1fc245){const _0x4aa847=_0x5dd1c4['insertions'][_0x34bd3d];for(const _0x3544e9 of _0x4aa847){const _0x3a57c4=this['_getVidAttributeName'](_0x3544e9),_0x27c44e=_0x3544e9['item']['getAttribute'](_0x3a57c4);if(_0x6c576b['has'](_0x27c44e)){const _0x2210dc=_0x6c576b['get'](_0x27c44e);_0x1a7e24['has'](_0x27c44e)||_0x1a7e24['set'](_0x27c44e,{..._0x2210dc}),_0x2091d9['set'](_0x27c44e,{..._0x2210dc});}}}for(const _0x55935a of _0x1a7e24['keys']())_0x55935a>=this['_startingRevisionId']&&_0x1a7e24['delete'](_0x55935a);const _0x55b120=new Map();for(const _0x4c53b3 of _0x1fc245){let _0x41b002=_0x5dd1c4['insertions'][_0x4c53b3];for(const _0x584055 of _0x41b002)if(_0x584055['item']['is']('element','tableCell')){const _0x2dbbb1=this['_getVidAttributeName'](_0x584055),_0x55c05a=_0x584055['item']['getAttribute'](_0x2dbbb1);if(_0x2091d9['has'](_0x55c05a)){const _0xfdb9d5=_0x584055['item']['parent']['parent']['getAttribute']('vid_start'),_0x5776a8=_0x55b120['get'](_0xfdb9d5)||new Set();_0x5776a8['add'](_0x2091d9['get'](_0x55c05a)['userId']),_0x55b120['set'](_0xfdb9d5,_0x5776a8);}}_0x41b002=_0x5dd1c4['deletions'][_0x4c53b3];for(const _0x47dafe of _0x41b002)if(_0x47dafe['item']['is']('element','tableCell')){const _0x5397e9=this['_getVidAttributeName'](_0x47dafe),_0x4307ff=_0x47dafe['item']['getAttribute'](_0x5397e9);if(_0x1a7e24['has'](_0x4307ff)){const _0x1250a2=_0x47dafe['item']['parent']['parent']['getAttribute']('vid_start'),_0xb71536=_0x55b120['get'](_0x1250a2)||new Set();_0xb71536['add'](_0x1a7e24['get'](_0x4307ff)['userId']),_0x55b120['set'](_0x1250a2,_0xb71536);}}for(const _0xd7f595 of _0x55b120['keys']())(_0x2091d9['has'](_0xd7f595)||_0x1a7e24['has'](_0xd7f595))&&_0x55b120['delete'](_0xd7f595);}for(const _0x5f49b5 of _0x1fc245){const _0x34f48c=_0x5dd1c4['insertions'][_0x5f49b5];let _0x46ead4=null,_0x4af588=null;for(const _0x30531 of _0x34f48c){const _0x6df873=this['_getVidAttributeName'](_0x30531),_0x1b8bce=_0x30531['item']['getAttribute'](_0x6df873),_0x54ce48=_0x55b120['get'](_0x1b8bce);_0x54ce48&&'elementStart'==_0x30531['type']&&(_0x46ead4=Array['from'](_0x54ce48)[0x0],_0x4af588=_0x30531['item']['getAttribute']('vid_end')),_0x46ead4&&(_0x1a7e24['set'](_0x1b8bce,{'userId':_0x46ead4}),_0x2091d9['set'](_0x1b8bce,{'userId':_0x46ead4})),_0x1b8bce==_0x4af588&&(_0x46ead4=null,_0x4af588=null);}}const _0x238f67={},_0x194796=new Set();for(const _0x3e6c17 of _0x1fc245){const _0x13e270=_0x327931['deletions'][_0x3e6c17],_0x321a91=_0x327931['insertions'][_0x3e6c17];for(const {userId:_0x1e1081}of this['_touchedMarkers']['values']())null!==_0x1e1081&&_0x194796['add'](_0x1e1081);for(const {userId:_0xfca78c}of this['_touchedRoots']['values']())null!==_0xfca78c&&_0x194796['add'](_0xfca78c);this['_markChanges'](_0x321a91,_0x5dd1c4['insertions'][_0x3e6c17],_0x2091d9,'insertion',_0x194796),this['_markChanges'](_0x13e270,_0x5dd1c4['deletions'][_0x3e6c17],_0x1a7e24,'deletion',_0x194796),_0x238f67[_0x3e6c17]={'insertions':this['_prepareViewToSave'](_0x321a91),'deletions':this['_prepareViewToSave'](_0x13e270),'attachChange':this['_touchedRoots']['get'](_0x3e6c17)||null,'attributesBefore':_0x154b69(this['_baseRootsAttributes']['get'](_0x3e6c17))||{},'attributesAfter':_0x154b69(this['_diffRootsAttributes']['get'](_0x3e6c17))};}return{'diffData':_0x238f67,'authorsIds':Array['from'](_0x194796)};}['_processRootBeforeSave'](_0x9d2bdb){for(const [,_0x5af315]of _0x9d2bdb['markers']){const _0x178bd0=_0x5af315['start']['getAncestors']()['filter'](_0x47c201=>'tableCell'==_0x47c201['name']);for(const _0x3b8c12 of _0x178bd0)0x1==_0x3b8c12['childCount']&&_0x3b8c12['getChild'](0x0)['is']('element','paragraph')&&_0x3b8c12['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x432c52){this['_processRootBeforeSave'](_0x432c52);const _0x4aff6f=this['editor']['data']['toView'](_0x432c52,{}),_0x12fc74=Array['from'](_0x4aff6f['getChildren']())['map'](_0x489af1=>this['_getViewJson'](_0x489af1));return JSON['stringify'](_0x12fc74);}['_getViewJson'](_0x3aae97){if(_0x3aae97['is']('$text'))return _0x3aae97['data'];{const _0x2e26cc=_0x3aae97;return{'type':Object['keys'](E)['find'](_0x21c8d7=>_0x3aae97 instanceof E[_0x21c8d7]),'name':_0x2e26cc['name'],'attributes':Array['from'](_0x2e26cc['getAttributes']()),'children':Array['from'](_0x2e26cc['getChildren']())['map'](_0x3beeb5=>this['_getViewJson'](_0x3beeb5))};}}['_markChanges'](_0x17519d,_0x118ea3,_0x571720,_0x40629e,_0x44aa74){let _0x4f53d2=null,_0x3014ad=null,_0x462b1e=0x0;const _0x204876=this['editor']['model'];for(let _0xe4f00a=0x0;_0xe4f00a<_0x118ea3['length'];_0xe4f00a++){const _0xe0d7d6=this['_getVidAttributeName'](_0x118ea3[_0xe4f00a]),_0xbe6020=_0x118ea3[_0xe4f00a]['item']['getAttribute'](_0xe0d7d6),_0x3990f4=_0x571720['get'](_0xbe6020),_0x2a7523=_0xe4f00a==_0x118ea3['length']-0x1;(!_0x4f53d2&&_0x3990f4&&(_0x4f53d2=_0x3990f4,_0x3014ad=_0x118ea3[_0xe4f00a]),_0x4f53d2&&(!_0x3990f4||_0x3990f4['userId']!=_0x4f53d2['userId']))&&(_0x4a8d51(_0x3990f4,B(_0x3014ad,_0x17519d,_0x204876),B(_0x118ea3[_0xe4f00a],_0x17519d,_0x204876)),_0x4f53d2=_0x3990f4||null,_0x3014ad=_0x3990f4?_0x118ea3[_0xe4f00a]:null),_0x4f53d2&&_0x2a7523&&_0x4a8d51(_0x3990f4,B(_0x3014ad,_0x17519d,_0x204876),J(_0x118ea3[_0xe4f00a],_0x17519d,_0x204876));}function _0x4a8d51(_0x412609,_0x2f1298,_0x2bbce4){const _0x21f810=_0x4f53d2['userId'],_0x111695='revision:'+_0x40629e+':'+_0x21f810+':'+_0x462b1e++,_0x4e361f=_0x204876['createRange'](_0x2f1298,_0x2bbce4);_0x17519d['markers']['set'](_0x111695,_0x4e361f),null!==_0x21f810&&_0x44aa74['add'](_0x21f810);}}['_getVidAttributeName'](_0x1a0931){switch(_0x1a0931['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4666f1,_0x325503){_0x4666f1['baseVersion']=null;for(const _0x2981dc in _0x4666f1){const _0x3481dd=_0x4666f1[_0x2981dc];if(_0x3481dd instanceof vt){const _0x5adec7=_0x325503['get'](_0x3481dd['root']['rootName']);_0x4666f1[_0x2981dc]=this['_fixPosition'](_0x3481dd,_0x5adec7);}if(_0x3481dd instanceof ft){const _0x4323c2=_0x325503['get'](_0x3481dd['root']['rootName']);_0x4666f1[_0x2981dc]=this['_fixRange'](_0x3481dd,_0x4323c2);}'root'===_0x2981dc&&(_0x4666f1['root']=_0x325503['get'](_0x4666f1['root']['rootName']));}}['_fixRange'](_0x5231ac,_0x4f1519){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5231ac['start'],_0x4f1519),this['_fixPosition'](_0x5231ac['end'],_0x4f1519));}['_fixPosition'](_0x417681,_0x2d2d14){return this['editor']['model']['createPositionFromPath'](_0x2d2d14,_0x417681['path'],_0x417681['stickiness']);}['_handleInsertOperation'](_0xcd3e19){const _0x5b26c2=this['_idsRoots']['get'](_0xcd3e19['position']['root']['rootName']),_0x4df749=this['_fixPosition'](_0xcd3e19['position'],_0x5b26c2),_0x532d56=null===_0xcd3e19['_authorId']?null:_0xcd3e19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x464901=_0x4df749['parent'],_0x47e3bc=this['_revisionId'],_0x2c8f7f=[];for(const _0x41a1a9 of _0xcd3e19['nodes'])if(_0x41a1a9['is']('element'))_0x2c8f7f['push'](this['_makeIdsRoot'](_0x41a1a9));else{for(let _0x317a4f=0x0;_0x317a4f<_0x41a1a9['offsetSize'];_0x317a4f++)_0x2c8f7f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5c1793=this['_revisionId'];for(let _0x2e51e0=_0x47e3bc;_0x2e51e0<_0x5c1793;_0x2e51e0++)this['_touched']['set'](_0x2e51e0,{'userId':_0x532d56});_0x464901['_insertChild'](_0x4df749['offset'],_0x2c8f7f);}['_handleMoveOperation'](_0x4b5bc0){(_0x4b5bc0=this['_cloneOperation'](_0x4b5bc0,this['_idsRoots']))['_execute']();const _0x393ab4=null===_0x4b5bc0['_authorId']?null:_0x4b5bc0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2dc2bf=_0x4b5bc0['getMovedRangeStart'](),_0x19578b=_0x2dc2bf['parent'],_0x356e38=_0x2dc2bf['offset'];!function _0xe9171c(_0x4f04e3,_0x2b03ea,_0x2f65fa,_0x2e33f0){for(let _0x2c4e2c=_0x2f65fa;_0x2c4e2c<_0x2e33f0;_0x2c4e2c++){const _0x4d7fba=_0x2b03ea['getChild'](_0x2c4e2c);_0x4d7fba['is']('element','$text')?_0x4f04e3['set'](_0x4d7fba['getAttribute']('vid'),{'userId':_0x393ab4}):(_0x4f04e3['set'](_0x4d7fba['getAttribute']('vid_start'),{'userId':_0x393ab4}),_0xe9171c(_0x4f04e3,_0x4d7fba,0x0,_0x4d7fba['childCount']),_0x4f04e3['set'](_0x4d7fba['getAttribute']('vid_end'),{'userId':_0x393ab4}));}}(this['_touched'],_0x19578b,_0x356e38,_0x356e38+_0x4b5bc0['howMany']);}['_handleMergeOperation'](_0x3e7b78){const _0x5a1821=null===(_0x3e7b78=this['_cloneOperation'](_0x3e7b78,this['_idsRoots']))['_authorId']?null:_0x3e7b78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa3efe3=_0x3e7b78['targetPosition']['parent'],_0x4aea52=_0x3e7b78['sourcePosition']['parent'],_0x4a5e89=_0xa3efe3['getAttribute']('vid_end'),_0x34f37e=_0x4aea52['getAttribute']('vid_start');_0xa3efe3['_setAttribute']('vid_end',_0x4aea52['getAttribute']('vid_end')),_0x4aea52['_setAttribute']('vid_end',_0x4a5e89),this['_touched']['set'](_0x34f37e,{'userId':_0x5a1821}),this['_touched']['set'](_0x4a5e89,{'userId':_0x5a1821}),_0x3e7b78['_execute']();}['_handleSplitOperation'](_0x1d2ce5){const _0x476edd=null===(_0x1d2ce5=this['_cloneOperation'](_0x1d2ce5,this['_idsRoots']))['_authorId']?null:_0x1d2ce5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37d58b=_0x1d2ce5['graveyardPosition'],_0x31a970=_0x1d2ce5['splitPosition']['parent'];_0x1d2ce5['_execute']();const _0x22a736=_0x31a970['getAttribute']('vid_end'),_0x16782b=_0x1d2ce5['insertionPosition']['nodeAfter'];if(_0x37d58b){const _0x2feda4=_0x16782b['getAttribute']('vid_end'),_0x2fb255=_0x31a970['getAttribute']('vid_end');_0x31a970['_setAttribute']('vid_end',_0x2feda4),_0x16782b['_setAttribute']('vid_end',_0x2fb255),this['_touched']['set'](_0x31a970['getAttribute']('vid_end'),{'userId':_0x476edd}),this['_touched']['set'](_0x16782b['getAttribute']('vid_start'),{'userId':_0x476edd});}else{const _0x14ee06=this['_revisionId']++,_0x253888=this['_revisionId']++;_0x31a970['_setAttribute']('vid_end',_0x14ee06),_0x16782b['_setAttribute']('vid_start',_0x253888),_0x16782b['_setAttribute']('vid_end',_0x22a736),this['_touched']['set'](_0x14ee06,{'userId':_0x476edd}),this['_touched']['set'](_0x253888,{'userId':_0x476edd});}}['_handleMarkerOperation'](_0x18ea80){if(!_0x18ea80['affectsData'])return;const _0x129c69=(_0x18ea80=this['_cloneOperation'](_0x18ea80,this['_diffRoots']))['oldRange']?_0x18ea80['oldRange']['root']:null,_0x4c76a6=_0x18ea80['newRange']?_0x18ea80['newRange']['root']:null;_0x129c69&&this['_markers']['delete'](_0x18ea80['name']),_0x4c76a6&&this['_markers']['set'](_0x18ea80['name'],_0x18ea80['newRange']['clone']());const _0x4db541=null===_0x18ea80['_authorId']?null:_0x18ea80['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2662f3=_0x18ea80['name'];if(!this['_touchedMarkers']['has'](_0x2662f3))return void this['_touchedMarkers']['set'](_0x2662f3,{'range':_0x18ea80['oldRange'],'userId':_0x4db541});const _0x5ec30f=this['_touchedMarkers']['get'](_0x2662f3),_0x519bc0=_0x5ec30f['range'],_0x197998=_0x18ea80['newRange'];null==_0x519bc0&&null==_0x197998||_0x519bc0&&_0x197998&&_0x519bc0['isEqual'](_0x197998)?this['_touchedMarkers']['delete'](_0x18ea80['name']):_0x5ec30f['userId']=_0x4db541;}['_handleRootOperation'](_0x3f55c3,_0x464fad){this['_diffRoots']['has'](_0x3f55c3['rootName'])?this['_diffRoots']['get'](_0x3f55c3['rootName'])['_isAttached']=_0x3f55c3['isAdd']:(this['_diffRoots']['set'](_0x3f55c3['rootName'],F(_0x3f55c3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3f55c3['rootName'],{}),_0x464fad&&this['_idsRoots']['set'](_0x3f55c3['rootName'],F(_0x3f55c3['rootName'],!0x0)));const _0x52792b=null===_0x3f55c3['_authorId']?null:_0x3f55c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b5399=this['_touchedRoots']['get'](_0x3f55c3['rootName']);_0x1b5399&&_0x1b5399['userId']===_0x52792b?this['_touchedRoots']['delete'](_0x3f55c3['rootName']):this['_touchedRoots']['set'](_0x3f55c3['rootName'],{'userId':_0x52792b,'isAttached':_0x3f55c3['isAdd']});}['_handleRootAttributeOperation'](_0x1fa204){const _0x316378=this['_diffRootsAttributes']['get'](_0x1fa204['root']['rootName']);null===_0x1fa204['newValue']?delete _0x316378[_0x1fa204['key']]:_0x316378[_0x1fa204['key']]=_0x1fa204['newValue'];}}function T(_0x191ba9){const _0x3cc278=F(_0x191ba9['rootName'],_0x191ba9['isAttached']());for(const _0x2a1e3e of _0x191ba9['getChildren']()){const _0x5b1a74=_0x2a1e3e['_clone'](!0x0);_0x3cc278['_appendChild'](_0x5b1a74);}return _0x3cc278;}function F(_0x41eecd,_0x17c0e2=!0x0){const _0x4313f1=new gt();return _0x4313f1['rootName']=_0x41eecd,_0x4313f1['_isAttached']=_0x17c0e2,_0x4313f1['isAttached']=()=>_0x4313f1['_isAttached'],_0x4313f1;}function B(_0x88a581,_0x22bec3,_0x3c98f3){const _0x41d76b='elementEnd'==_0x88a581['type']?_0x3c98f3['createPositionAt'](_0x88a581['item'],'end'):_0x3c98f3['createPositionBefore'](_0x88a581['item']);return _0x3c98f3['createPositionFromPath'](_0x22bec3,_0x41d76b['path'],_0x41d76b['stickiness']);}function J(_0x45cc88,_0x3dcc8e,_0x42ae09){const _0x579c43='elementStart'==_0x45cc88['type']?_0x42ae09['createPositionAt'](_0x45cc88['item'],0x0):_0x42ae09['createPositionAfter'](_0x45cc88['item']);return _0x42ae09['createPositionFromPath'](_0x3dcc8e,_0x579c43['path'],_0x579c43['stickiness']);}class os extends _0x593953{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x249002,_0xdffd22){super(_0x249002),this['focusTracker']=new _0x47cab5(),this['keystrokes']=new _0x497fc7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xdffd22),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'](),_0x16f4a6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2bc233=_0xdda57f=>_0xdda57f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2bc233),this['keystrokes']['set']('arrowleft',_0x2bc233),this['keystrokes']['set']('arrowup',_0x2bc233),this['keystrokes']['set']('arrowdown',_0x2bc233);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3d317a){this['revisionNameInputView']['fieldView']['element']['value']=_0x3d317a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x15dc67){const _0x2fe09d=new at(this['locale'],ti),_0x57ef44=_0x2fe09d['fieldView'];_0x57ef44['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x10f99c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x15dc67&&(_0x10f99c+='\x20('+m(this['locale'],'optional')+')'),(_0x2fe09d['label']=_0x10f99c,_0x57ef44['on']('input',()=>{this['revisionNameInputValue']=_0x57ef44['element']['value']['trim']();}),_0x2fe09d);}}class f extends _0x1c29cb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x58579d=this['editor'],_0x11e8b0=_0x58579d['plugins']['get']('RevisionTracker');_0x58579d['ui']['componentFactory']['add']('revisionHistory',_0x206850=>{const _0x54d10a=_0x46970d(_0x206850),_0x561f3f=_0x54d10a['panelView']['children'],_0x3d8c08=new _0x26dea6(_0x206850),_0x4399f6=new te(_0x206850),_0x13443c=new _0x49cd9a(_0x206850),_0x5f55d6=new te(_0x206850),_0x5ddd97=new _0x49cd9a(_0x206850);return _0x54d10a['bind']('isEnabled')['to'](_0x11e8b0,'isReady',_0x11e8b0,'isEnabled',_0x58579d,'isReadOnly',(_0x18c4a6,_0x213c8e,_0x5e586a)=>_0x18c4a6&&_0x213c8e&&!_0x5e586a),_0x54d10a['buttonView']['set']({'icon':_0x43bb68,'label':m(_0x206850,'Revision\x20history'),'tooltip':!0x0}),_0x13443c['set']({'label':m(_0x206850,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x13443c['bind']('isEnabled')['to'](_0x11e8b0,'isReady',_0x11e8b0,'isEnabled',_0x58579d,'isReadOnly',(_0x18a719,_0x394dd1,_0x228e70)=>_0x18a719&&_0x394dd1&&!_0x228e70),_0x13443c['on']('execute',()=>this['_showDialog']()),_0x5ddd97['set']({'label':m(_0x206850,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5ddd97['bind']('isEnabled')['to'](_0x11e8b0,'isReady',_0x58579d,'isReadOnly',(_0x5eb296,_0x46ee88)=>_0x5eb296&&!_0x46ee88),_0x5ddd97['on']('execute',()=>{_0x58579d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x54d10a['isOpen']=!0x1,_0x58579d['editing']['view']['focus']();}),_0x4399f6['children']['add'](_0x13443c),_0x5f55d6['children']['add'](_0x5ddd97),_0x3d8c08['role']='menu',_0x3d8c08['items']['addMany']([_0x4399f6,_0x5f55d6]),_0x561f3f['add'](_0x3d8c08),_0x54d10a;}),_0x58579d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1690e5=this['editor'],_0xba52e9=_0x1690e5['locale'],_0x31d80a=new _0x2ba480(_0xba52e9),_0x458fe2=new _0x1948e2(_0xba52e9);_0x31d80a['buttonView']['set']({'icon':_0x43bb68,'label':m(_0xba52e9,'Revision\x20history')});const _0x1cded3=new _0x56c279(_0xba52e9,_0x31d80a),_0x30600c=new _0x5de3fa(_0xba52e9);_0x30600c['set']({'label':m(_0xba52e9,'Save\x20current\x20revision')}),_0x30600c['delegate']('execute')['to'](_0x31d80a),_0x30600c['on']('execute',()=>{this['_showDialog']();}),_0x1cded3['children']['add'](_0x30600c),_0x458fe2['items']['add'](_0x1cded3);const _0x961ba7=new _0x56c279(_0xba52e9,_0x31d80a),_0x2899f5=new _0x5de3fa(_0xba52e9);return _0x2899f5['set']({'label':m(_0xba52e9,'Open\x20revision\x20history')}),_0x2899f5['delegate']('execute')['to'](_0x31d80a),_0x2899f5['on']('execute',()=>{_0x1690e5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x961ba7['children']['add'](_0x2899f5),_0x458fe2['items']['add'](_0x961ba7),_0x31d80a['panelView']['children']['add'](_0x458fe2),_0x31d80a;}['_showDialog'](){const _0x216be=this['editor'],_0xfac435=_0x216be['locale'],_0x47768f=_0x216be['plugins']['get']('Dialog'),_0x567c10=_0x216be['plugins']['get']('RevisionTracker');function _0x35bee2(_0xc5e772){_0x216be['config']['get']('revisionHistory.requireRevisionName')&&''===_0xc5e772['revisionName']?_0xc5e772['revisionNameInputView']['errorText']=m(_0xfac435,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x216be['plugins']['get'](u)['saveRevision']({'name':_0xc5e772['revisionName']}),_0x47768f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x35bee2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x47768f['show']({'id':'revisionSave','title':m(_0xfac435,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x216be['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x47768f['hide']()},{'label':m(_0x216be['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x556fd0){_0x556fd0['bind']('isEnabled')['to'](_0x567c10,'isReady',_0x567c10,'isEnabled',_0x216be,'isReadOnly',(_0x25a770,_0x5cedb3,_0x309828)=>_0x25a770&&_0x5cedb3&&!_0x309828);},'onExecute':()=>_0x35bee2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x35f583=this['editor'],_0x1c3394=_0x35f583['locale'];this['_saveRevisionFormView']=new os(_0x1c3394,_0x35f583['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x593953{['changeId'];['_model'];constructor(_0x285156,_0x5ef087){super(_0x285156),this['_model']=_0x5ef087,this['changeId']=_0x5ef087['id'];const _0x33bc6f=this['bindTemplate'],_0x58c422=m(_0x285156,_0x5ef087['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ef087['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ef087['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33bc6f['to']('type',_0x533f8d=>'ck-revision-change__'+_0x533f8d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x58c422}]},{'text':'\x20'+_0x5ef087['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3b0b35(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xcd94d3){super(),this['id']=_0xcd94d3['id']||_0x535b38(),this['author']=_0xcd94d3['author'],this['type']=_0xcd94d3['type'],this['data']=_0xcd94d3['data']||{},this['rootName']=_0xcd94d3['rootName'],this['set']('createdAt',_0xcd94d3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x6c6997,_0x29dea2){this['newRevisionId']=_0x6c6997,this['oldRevisionId']=_0x29dea2,this['changes']=new _0x7305bb();}['_setChanges'](_0x268702){for(const _0x392230 of _0x268702)this['changes']['add'](_0x392230);}}const Y={'c':_0x31792c,'a':_0x1d94aa,'e':_0x2a33b5,'r':_0x5bf9d7,'u':_0x310570};class d extends _0x1c29cb{['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[_0x39ed24,_0x1d725c,j];}constructor(_0x52d5b6){super(_0x52d5b6),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',(_0x1c8bc1,_0x154c14,_0x2ca314)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x546821=>{for(const _0x4c674d of this['editor']['editing']['view']['document']['roots'])_0x2ca314?_0x546821['removeClass']('ck-editor__editable__overlay',_0x4c674d):_0x546821['addClass']('ck-editor__editable__overlay',_0x4c674d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a94b0=>null!==_0x3a94b0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2fdb41,_0xcabcbc,_0x2d7697)=>_0x2fdb41&&_0x2d7697?_0xcabcbc['changes']['getIndex'](_0x2d7697):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4d0b34,_0xc0dbe2)=>_0x4d0b34?_0xc0dbe2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1d725c);}['init'](){const _0x3e625b=this['editor'],_0x4c47a7=new yt(_0x3e625b,{'direction':'backward'}),_0xd773c6=new yt(_0x3e625b,{'direction':'forward'});(_0x3e625b['commands']['add']('showPreviousChange',_0x4c47a7),_0x3e625b['commands']['add']('showNextChange',_0xd773c6),_0x3e625b['commands']['add']('restoreRevision',new _t(_0x3e625b)),this['on']('change:numberOfChanges',()=>{_0x4c47a7['refresh'](),_0xd773c6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3e625b['enableReadOnlyMode']('revision-viewer'),_0x3e625b['plugins']['has']('WidgetToolbarRepository'))&&_0x3e625b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4d19f5){await this['loadRevisionData'](_0x4d19f5);const _0x59b372={};for(const _0x54975a in _0x4d19f5['diffData']){if(_0x4d19f5['diffData'][_0x54975a]['attachChange']&&!_0x4d19f5['diffData'][_0x54975a]['attachChange']['isAttached'])continue;const _0x44818f=this['_removeRevisionMarkers'](JSON['parse'](_0x4d19f5['diffData'][_0x54975a]['insertions'])),_0xccd719=this['editor']['editing']['view']['document'],_0xb7ba7b=new _0x1b43b4(_0xccd719,_0x44818f['map'](_0x3fd326=>this['_getViewObj'](_0x3fd326)));this['editor']['data']['processor']['useFillerType']('marked'),_0x59b372[_0x54975a]=this['editor']['data']['processor']['toData'](_0xb7ba7b),this['editor']['data']['processor']['useFillerType']('default');}return _0x59b372;}async['getRevisionRootsAttributes'](_0x42318e){await this['loadRevisionData'](_0x42318e);const _0x231384={};for(const _0x52c4f8 in _0x42318e['diffData'])_0x42318e['diffData'][_0x52c4f8]['attachChange']&&!_0x42318e['diffData'][_0x52c4f8]['attachChange']['isAttached']||(_0x231384[_0x52c4f8]=_0x42318e['diffData'][_0x52c4f8]['attributesAfter']||{});return _0x231384;}['_removeRevisionMarkers'](_0x187f96){return(_0x187f96=_0x187f96['filter'](_0x201d01=>!_0x201d01['name']||'revision-start'!==_0x201d01['name']&&'revision-end'!==_0x201d01['name']))['forEach'](_0x2c52c3=>{'string'!=typeof _0x2c52c3&&(_0x2c52c3['children']=this['_removeRevisionMarkers'](_0x2c52c3['children']),_0x2c52c3['attributes']=_0x2c52c3['attributes']['filter'](_0x2f4de8=>!_0x2f4de8[0x0]['startsWith']('data-revision-')));}),_0x187f96;}async['compare'](_0x59c180,_0xda01fe,_0x4f1c19=!0x1){if(!this['isEnabled'])return;const _0xd8be53=this['diff'],_0x519828=this['repository'],_0x4dd316='string'==typeof _0x59c180?_0x519828['getRevision'](_0x59c180):_0x59c180,_0x2ee6b7='string'==typeof _0xda01fe?_0x519828['getRevision'](_0xda01fe):_0xda01fe,_0x17e0d4=_0x4dd316['id'],_0x506bea=_0x2ee6b7?_0x2ee6b7['id']:null;if(!_0x4f1c19&&this['diff']&&this['diff']['newRevisionId']===_0x17e0d4&&this['diff']['oldRevisionId']===_0x506bea)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x17e0d4,_0x506bea);const _0x5c4088=this['_getRevisionsRange'](_0x4dd316,_0x2ee6b7,!0x0)['map'](_0x49571c=>this['loadRevisionData'](_0x49571c));return _0x5c4088['push'](new Promise(_0x29b898=>{setTimeout(_0x29b898,0x14);})),Promise['all'](_0x5c4088)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xc91d14=this['_getDiff'](_0x17e0d4,_0x506bea);for(const _0x2a5b0d of _0xc91d14['changes'])this['_changeIdToChange']['set'](_0x2a5b0d['id'],_0x2a5b0d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2780d5=>{for(const _0x41b238 of this['editor']['model']['document']['getRootNames']())_0x2780d5['detachRoot'](_0x41b238);for(const _0x30b679 of Object['keys'](_0xc91d14['model'])){const _0xaa9931=_0x2780d5['addRoot'](_0x30b679);for(const _0x45c448 of Object['keys'](_0xc91d14['attributes'][_0x30b679]))_0x2780d5['setAttribute'](_0x45c448,_0xc91d14['attributes'][_0x30b679][_0x45c448],_0xaa9931);_0x2780d5['insert'](_0xc91d14['model'][_0x30b679],_0xaa9931,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xc91d14['changes'])),this['isReady']=!0x0;})['catch'](_0x377fdb=>{console['error'](_0x377fdb),this['_cleanUp'](),_0xd8be53&&(this['diff']=_0xd8be53),this['isReady']=!0x0;});}['addRevisionData'](_0x2aedbd,_0x25bd21){const _0x2be526=this['repository']['createRevision'](_0x2aedbd);return _0x2be526['on']('_update',(_0x1aeddd,_0x44d1a6,_0x1fd451)=>_0x25bd21(_0x44d1a6,_0x1fd451,_0x2be526)),this['repository']['addRevision'](_0x2be526),_0x2be526;}['loadRevisionData'](_0x372616){if(!_0x372616||_0x372616['diffData'])return Promise['resolve']();{const _0x461349=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x461349,'revisionId':_0x372616['id']})['then'](_0x563bdd=>{_0x372616['_update']({'diffData':_0x563bdd['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},_0x29d3eb=>{for(const _0x153dd8 of this['editor']['model']['document']['getRootNames']())_0x29d3eb['detachRoot'](_0x153dd8);});}['_sortAndFilterDiffChanges'](_0x15d74e){const _0x3eddd5=[],_0x2de3b0=new Map();for(const _0x4511a5 of this['editor']['model']['document']['getRootNames']()){const _0x4d73a9=this['editor']['editing']['view']['getDomRoot'](_0x4511a5);if(!_0x4d73a9)continue;const _0x3a191f=_0x4d73a9['getClientRects']()['item'](0x0);_0x3a191f&&(_0x3eddd5['push'](_0x4511a5),_0x2de3b0['set'](_0x4511a5,_0x3a191f));}return _0x3eddd5['sort']((_0x10a2c0,_0x338442)=>{const _0x155e9=_0x2de3b0['get'](_0x10a2c0),_0xf5a5af=_0x2de3b0['get'](_0x338442);return _0x155e9['y']-_0xf5a5af['y']||_0x155e9['x']-_0xf5a5af['x'];}),(_0x15d74e=_0x15d74e['filter'](_0x232401=>_0x3eddd5['includes'](_0x232401['rootName'])))['sort']((_0x203221,_0x563dbf)=>_0x3eddd5['indexOf'](_0x203221['rootName'])-_0x3eddd5['indexOf'](_0x563dbf['rootName'])),_0x15d74e;}['_makeTape'](_0x4c221f){const _0x16772b=Array['from'](_0x4c221f['markers'])['filter'](([_0x4c5337,_0x4d215b])=>_0x4c5337['startsWith']('revision:')&&!_0x4d215b['isCollapsed']),_0x3eee90=Array['from'](this['editor']['model']['createRangeIn'](_0x4c221f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x16772b['length'])for(const _0x33bec2 of _0x3eee90){const [_0x166f10,_0x878cf9]=_0x16772b[0x0],[,_0x4c5ac4,_0x14e67d]=_0x166f10['split'](':');if(_0x878cf9['end']['isEqual'](_0x33bec2['nextPosition'])&&_0x16772b['shift'](),(_0x33bec2['previousPosition']['isEqual'](_0x878cf9['start'])||_0x33bec2['previousPosition']['isAfter'](_0x878cf9['start']))&&('insertion'==_0x4c5ac4?_0x33bec2['isAdded']={'userId':_0x14e67d}:'deletion'==_0x4c5ac4&&(_0x33bec2['isRemoved']={'userId':_0x14e67d})),0x0==_0x16772b['length'])break;}return _0x3eee90;}['_refreshStartEndIndex'](_0x1beda2){const _0x391a17=new Map();for(let _0x22a50c=0x0;_0x22a50c<_0x1beda2['length'];_0x22a50c++)'text'===_0x1beda2[_0x22a50c]['type']?(_0x1beda2[_0x22a50c]['item']['startIndex']=_0x22a50c,_0x1beda2[_0x22a50c]['item']['endIndex']=_0x22a50c):('elementStart'===_0x1beda2[_0x22a50c]['type']?_0x1beda2[_0x22a50c]['item']['startIndex']=_0x22a50c:'elementEnd'===_0x1beda2[_0x22a50c]['type']&&(_0x1beda2[_0x22a50c]['item']['endIndex']=_0x22a50c),_0x391a17['set'](_0x1beda2[_0x22a50c]['id'],_0x22a50c));for(const _0x1f0adb of _0x391a17['values']())'elementStart'===_0x1beda2[_0x1f0adb]['type']?_0x1beda2[_0x1f0adb]['item']['endIndex']=_0x391a17['get'](_0x1beda2[_0x1f0adb]['pairId']):'elementEnd'===_0x1beda2[_0x1f0adb]['type']&&(_0x1beda2[_0x1f0adb]['item']['startIndex']=_0x391a17['get'](_0x1beda2[_0x1f0adb]['pairId']));}['_processTape'](_0x3fb5af){for(let _0x17d8e6=0x0;_0x17d8e6<_0x3fb5af['length'];_0x17d8e6++){if('elementStart'===_0x3fb5af[_0x17d8e6]['type'])_0x3fb5af[_0x17d8e6]['item']['startIndex']=_0x17d8e6;else{if('elementEnd'===_0x3fb5af[_0x17d8e6]['type']){_0x3fb5af[_0x17d8e6]['item']['endIndex']=_0x17d8e6;const _0x537e2e=_0x3fb5af[_0x17d8e6]['item']['startIndex'];_0x3fb5af[_0x537e2e]['pairId']=_0x3fb5af[_0x17d8e6]['id'],_0x3fb5af[_0x17d8e6]['pairId']=_0x3fb5af[_0x537e2e]['id'];}else _0x3fb5af[_0x17d8e6]['item']['startIndex']=_0x17d8e6,_0x3fb5af[_0x17d8e6]['item']['endIndex']=_0x17d8e6,_0x3fb5af[_0x17d8e6]['pairId']=null;}_0x3fb5af[_0x17d8e6]['markersStart']||(_0x3fb5af[_0x17d8e6]['markersStart']=[],_0x3fb5af[_0x17d8e6]['markersEnd']=[]);}}['_markInsertions'](_0x2c9219,_0x5b88a5){const _0x4c7cb8=_0x2c9219['filter'](_0x5088b1=>!_0x5088b1['isAdded']);for(let _0x5867c3=0x0;_0x5867c3<_0x5b88a5['length'];_0x5867c3++)_0x5b88a5[_0x5867c3]['isAdded']&&(_0x4c7cb8[_0x5867c3]['isAdded']=_0x5b88a5[_0x5867c3]['isAdded']);}['_makeModelFromViewString'](_0x394990){const _0x2b352f=JSON['parse'](_0x394990),_0x54e466=this['editor']['editing']['view']['document'],_0x14c117=new _0x1b43b4(_0x54e466,_0x2b352f['map'](_0x407a37=>this['_getViewObj'](_0x407a37)));return this['editor']['data']['toModel'](_0x14c117);}['_getViewObj'](_0x370e29){const _0x414a68=this['editor']['editing']['view']['document'];if('string'==typeof _0x370e29)return new _0x3b8149(_0x414a68,_0x370e29);{const _0xe94b01=_0x370e29['children']['map'](_0x38e912=>this['_getViewObj'](_0x38e912));return new(Y[_0x370e29['type']]||_0x3a12cd)(_0x414a68,_0x370e29['name'],_0x370e29['attributes'],_0xe94b01);}}['_getDiff'](_0x487f9f,_0x380f66=null){const _0x259523=this['repository']['getRevision'](_0x487f9f),_0x251d72=_0x380f66?this['repository']['getRevision'](_0x380f66):null,_0x350d3c=this['_getRevisionsRange'](_0x259523,_0x251d72),_0x233aa7=_0x350d3c[_0x350d3c['length']-0x1],_0x2de8d2=new Map(),_0x5dc92a={'model':{},'attributes':{},'changes':[]},_0x3a542f=new Set(),_0x2c2a97=new Map();for(let _0x414a96=_0x350d3c['length']-0x1;_0x414a96>=0x0;_0x414a96--){const _0x283383=_0x350d3c[_0x414a96];for(const _0x475dfe of Object['keys'](_0x283383['diffData']))if(_0x283383['diffData'][_0x475dfe]['attachChange']){const _0x13ba92=_0x283383['diffData'][_0x475dfe]['attachChange'];_0x13ba92['isAttached']?(_0x3a542f['add'](_0x475dfe),_0x2c2a97['has'](_0x475dfe)&&_0x2c2a97['get'](_0x475dfe)['userId']==_0x13ba92['userId']?_0x2c2a97['delete'](_0x475dfe):_0x2c2a97['set'](_0x475dfe,_0x13ba92)):_0x2c2a97['has'](_0x475dfe)?(_0x3a542f['delete'](_0x475dfe),_0x2c2a97['delete'](_0x475dfe)):(_0x3a542f['add'](_0x475dfe),_0x2c2a97['set'](_0x475dfe,_0x13ba92));}else _0x3a542f['add'](_0x475dfe);}for(const _0x115ef3 of _0x3a542f){const _0x5cfe7c=_0x2c2a97['has'](_0x115ef3)&&!_0x2c2a97['get'](_0x115ef3)['isAttached'];let _0x395c71=_0x5cfe7c?_0x350d3c['length']-0x1:0x0;const _0xc1958d=_0x5cfe7c?-0x1:0x1;for(;_0x350d3c[_0x395c71];){const _0x5945cc=_0x350d3c[_0x395c71];if(_0x5945cc['diffData'][_0x115ef3]){const _0x404717=_0x5cfe7c?_0x5945cc['diffData'][_0x115ef3]['attributesBefore']:_0x5945cc['diffData'][_0x115ef3]['attributesAfter'];_0x5dc92a['attributes'][_0x115ef3]=_0x404717?_0x154b69(_0x404717):{};break;}_0x395c71+=_0xc1958d;}}for(const _0x255093 of _0x350d3c){_0x255093['model']={};for(const _0x20f8c4 of _0x255093['authors'])_0x2de8d2['set'](_0x20f8c4['id'],_0x20f8c4);for(const _0x2a9c72 of _0x3a542f){const _0x25a5c5=_0x255093['diffData'][_0x2a9c72]?_0x255093['diffData'][_0x2a9c72]['insertions']:'[]',_0x5bf541=_0x255093['diffData'][_0x2a9c72]?_0x255093['diffData'][_0x2a9c72]['deletions']:'[]';_0x255093['model'][_0x2a9c72]={'insertions':this['_makeModelFromViewString'](_0x25a5c5),'deletions':this['_makeModelFromViewString'](_0x5bf541)};}}for(const _0x33b32d of _0x3a542f){let _0x399350=null,_0x271048=0x0;const _0x381eaf=new Map(Array['from'](_0x259523['model'][_0x33b32d]['insertions']['markers'])['filter'](([_0x668af])=>!_0x668af['startsWith']('revision:')));let _0x48b36c=0x0;for(const _0x2802eb of _0x350d3c){const _0x599648=this['_makeTape'](_0x2802eb['model'][_0x33b32d]['insertions']);_0x2802eb==_0x259523?(_0x399350=_0x599648,_0x271048=_0x399350['length'],_0x399350['forEach'](_0x41713e=>{_0x41713e['id']=_0x48b36c++;}),this['_processTape'](_0x399350)):this['_markInsertions'](_0x399350,_0x599648);const _0x2d51f4=_0x399350['filter'](_0x44753b=>!_0x44753b['isAdded'])['map'](_0x594d30=>_0x594d30['id']);let _0xd2a0f0=0x0;const _0x29f448=this['_makeTape'](_0x2802eb['model'][_0x33b32d]['deletions']);_0x29f448['forEach'](_0x4f0d7e=>{_0x4f0d7e['isRemoved']?_0x4f0d7e['id']=_0x271048++:_0x4f0d7e['id']=_0x2d51f4[_0xd2a0f0++];}),this['_processTape'](_0x29f448),this['_setDistance'](_0x399350,'isAdded'),this['_setDistance'](_0x29f448,'isRemoved'),_0x2802eb==_0x259523&&this['_markMarkers'](_0x399350,_0x381eaf),_0x399350=this['_joinTapes'](_0x399350,_0x29f448),this['_refreshStartEndIndex'](_0x399350),this['_setDistance'](_0x399350,'isRemoved');}_0x399350=_0x399350['filter'](_0x50a10e=>!(_0x50a10e['isAdded']&&_0x50a10e['isRemoved']));const _0x115784=new Map(_0x233aa7['model'][_0x33b32d]['deletions']['markers']),_0x42415c=new Set(_0x381eaf['keys']());for(const _0x22ecbf of _0x115784['keys']())_0x42415c['delete'](_0x22ecbf);this['_markSuggestions'](_0x399350,_0x42415c),this['_fixObsoleteTags'](_0x399350),_0x399350=this['_removeMissingPairs'](_0x399350),_0x399350=this['_markMismatchedRemovedTags'](_0x399350),_0x399350=this['_removeUnsupportedChanges'](_0x399350);const {root:_0x5bc732,changes:_0x50ddcb}=this['_makeModelFromTape'](_0x399350,_0x2de8d2,_0x33b32d);_0x5dc92a['model'][_0x33b32d]=_0x5bc732;const _0x376ec9=_0x2c2a97['get'](_0x33b32d);if(_0x376ec9){const _0x64e275=_0x2de8d2['get'](_0x376ec9['userId']),_0x3cf121=new r({'author':_0x64e275,'type':_0x376ec9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33b32d});_0x50ddcb['unshift'](_0x3cf121),_0x5dc92a['attributes'][_0x33b32d]['revisionHistoryAttachChange']=_0x3cf121['id'];}_0x5dc92a['changes']=_0x5dc92a['changes']['concat'](_0x50ddcb);}return _0x5dc92a;}['_markMarkers'](_0x4aa74d,_0x5c9d8d){for(let _0x45ce6e=0x0;_0x45ce6e<_0x4aa74d['length'];_0x45ce6e++)for(const [_0xbc4079,_0x3516ac]of _0x5c9d8d)_0x3516ac['start']['isEqual'](_0x4aa74d[_0x45ce6e]['previousPosition'])&&_0x4aa74d[_0x45ce6e]['markersStart']['push'](_0xbc4079),_0x3516ac['end']['isEqual'](_0x4aa74d[_0x45ce6e]['nextPosition'])&&_0x4aa74d[_0x45ce6e]['markersEnd']['push'](_0xbc4079);}['_joinTapes'](_0xbe9a0a,_0x48ddb6){let _0x55cd28=[],_0x2a8123=0x0,_0x3112f9=0x0;for(;_0x2a8123<_0xbe9a0a['length']||_0x3112f9<_0x48ddb6['length'];){const _0x2053c8=_0xbe9a0a[_0x2a8123]||{},_0x577e49=_0x48ddb6[_0x3112f9]||{};if(_0x2053c8['id']==_0x577e49['id'])_0x2a8123++,_0x3112f9++,_0x55cd28['push'](_0x2053c8);else{if(_0x577e49['isRemoved']&&_0x2053c8['isAdded']){const {commonTape:_0x5421bf,iEnd:_0x1b1113,jEnd:_0x3559a3}=this['_threeWayMerge'](_0xbe9a0a,_0x2a8123,_0x48ddb6,_0x3112f9);_0x55cd28=_0x55cd28['concat'](_0x5421bf),_0x2a8123=_0x1b1113,_0x3112f9=_0x3559a3;}else _0x577e49['isRemoved']?(_0x3112f9++,_0x55cd28['push'](_0x577e49)):(_0x2a8123++,_0x55cd28['push'](_0x2053c8));}}return _0x55cd28;}['_markSuggestions'](_0xcf0c1e,_0x56c78c){const _0x238305=[];for(let _0x4bdfdd=0x0;_0x4bdfdd<_0xcf0c1e['length'];_0x4bdfdd++){for(let _0x555f96=0x0;_0x555f96<_0xcf0c1e[_0x4bdfdd]['markersStart']['length'];_0x555f96++){const _0x596446=_0xcf0c1e[_0x4bdfdd]['markersStart'][_0x555f96];if(!_0x56c78c['has'](_0x596446))continue;const {group:_0xa8ac28,type:_0x141410,authorId:_0x40a245}=_0x1b6749(_0x596446);'revision-suggestion'!=_0xa8ac28||'insertion'!=_0x141410&&'deletion'!=_0x141410||(_0x238305['unshift']({'type':_0x141410,'name':_0x596446,'userId':_0x40a245}),_0xcf0c1e[_0x4bdfdd]['markersStart']['splice'](_0x555f96,0x1),_0x555f96--);}_0x3c957c(_0xcf0c1e[_0x4bdfdd]);for(let _0x49332d=0x0;_0x49332d<_0xcf0c1e[_0x4bdfdd]['markersEnd']['length'];_0x49332d++){const _0x226b94=_0xcf0c1e[_0x4bdfdd]['markersEnd'][_0x49332d];if(!_0x56c78c['has'](_0x226b94))continue;const {group:_0x21ddcb,type:_0x4cd512}=_0x1b6749(_0x226b94);if('revision-suggestion'!=_0x21ddcb||'insertion'!=_0x4cd512&&'deletion'!=_0x4cd512)continue;_0xcf0c1e[_0x4bdfdd]['markersEnd']['splice'](_0x49332d,0x1),_0x49332d--;const _0x547c89=_0x238305['findIndex'](_0x60c624=>_0x60c624['name']==_0x226b94);_0x547c89>-0x1&&_0x238305['splice'](_0x547c89,0x1);}}function _0x1b6749(_0x3f792e){const _0x2e4c07=_0x3f792e['split'](':');return{'group':_0x2e4c07[0x0],'type':_0x2e4c07[0x1],'subType':_0x2e4c07['length']>=0x5?_0x2e4c07[0x2]:null,'id':_0x2e4c07['length']<0x5?_0x2e4c07[0x2]:_0x2e4c07[0x3],'authorId':_0x2e4c07['length']<0x5?_0x2e4c07[0x3]:_0x2e4c07[0x4],'markerCount':0x6==_0x2e4c07['length']?_0x2e4c07[0x5]:null};}function _0x3c957c(_0x57ad81){for(let _0x62c0d2=0x0;_0x62c0d2<_0x238305['length'];_0x62c0d2++){if(_0x57ad81['isAdded']&&'insertion'==_0x238305[_0x62c0d2]['type'])return _0x57ad81['isAddSuggestion']=_0x238305[_0x62c0d2],void delete _0x57ad81['isAdded'];if(!_0x57ad81['isAdded']&&!_0x57ad81['isRemoved']&&'deletion'==_0x238305[_0x62c0d2]['type'])return void(_0x57ad81['isRemoveSuggestion']=_0x238305[_0x62c0d2]);}}}['_setDistance'](_0x475112,_0x856cb2){let _0x3bacbe=0x0,_0x3f3b4f=!0x1;const _0xaac9ef=new Map();for(const _0x9ca139 of _0x475112)_0x9ca139[_0x856cb2]?_0x3f3b4f&&(_0x3bacbe++,_0x3f3b4f=!0x1):(_0x3bacbe++,_0x3f3b4f=!0x0),_0xaac9ef['set'](_0x9ca139['id'],_0x3bacbe);for(let _0x2628fc=0x0;_0x2628fc<_0x475112['length'];_0x2628fc++){if('isRemoved'==_0x856cb2&&_0x475112[_0x2628fc]['isAdded']||'isAdded'==_0x856cb2&&_0x475112[_0x2628fc]['isRemoved'])continue;if('text'==_0x475112[_0x2628fc]['type']){_0x475112[_0x2628fc]['distance']=0x0;continue;}const _0x542d82=_0xaac9ef['get'](_0x475112[_0x2628fc]['pairId']),_0x46c9ca=_0xaac9ef['get'](_0x475112[_0x2628fc]['id']);_0x475112[_0x2628fc]['distance']=_0x542d82-_0x46c9ca;}}['_getRevisionsRange'](_0x500c14,_0x5dd908,_0x1d2363=!0x1){const _0x23236d=[];let _0x6c7eff=this['repository']['getIndex'](_0x500c14),_0x5c8035=this['repository']['getIndex'](_0x5dd908);for(-0x1==_0x5c8035&&(_0x5c8035=this['repository']['_revisions']['length'],_0x1d2363=!0x1);_0x6c7eff<_0x5c8035;)_0x23236d['push'](this['repository']['getRevision'](_0x6c7eff)),_0x6c7eff++;return _0x1d2363&&_0x23236d['push'](this['repository']['getRevision'](_0x6c7eff)),_0x23236d;}['_threeWayMerge'](_0x463fd7,_0x52565c,_0x34897a,_0x8f17d1){const _0x25330f=this['editor']['model']['schema'];let _0x3809bb=_0x52565c;for(;_0x463fd7[_0x3809bb]&&_0x463fd7[_0x3809bb]['isAdded'];)_0x3809bb++;let _0x27da50=_0x8f17d1;for(;_0x34897a[_0x27da50]&&_0x34897a[_0x27da50]['isRemoved'];)_0x27da50++;_0x39000a(_0x463fd7,_0x52565c,_0x3809bb),_0x39000a(_0x34897a,_0x8f17d1,_0x27da50);const _0x17b024=_0x34897a['slice'](_0x8f17d1,_0x27da50)['concat'](_0x463fd7['slice'](_0x52565c,_0x3809bb));return _0x17b024['sort']((_0x473bee,_0x110daf)=>_0x473bee['side']!=_0x110daf['side']?_0x473bee['side']-_0x110daf['side']:_0x473bee['level']!=_0x110daf['level']?_0x473bee['level']-_0x110daf['level']:_0x473bee['distance']!=_0x110daf['distance']?_0x110daf['distance']-_0x473bee['distance']:!!_0x473bee['isAdded']!=!!_0x110daf['isAdded']?-0x1==_0x473bee['side']||0x0==_0x473bee['side']?_0x473bee['isAdded']?-0x1:0x1:_0x473bee['isAdded']?0x1:-0x1:_0x473bee['index']-_0x110daf['index']),{'commonTape':_0x17b024,'iEnd':_0x3809bb,'jEnd':_0x27da50};function _0x39000a(_0x111f4c,_0xe23104,_0x3732a7){let _0x3b5f27=-0x1,_0x2a3a5d=Number['POSITIVE_INFINITY'],_0x29642f=!0x0;for(let _0x29cc00=_0xe23104;_0x29cc00<_0x3732a7;_0x29cc00++)if(_0x25330f['isInline'](_0x111f4c[_0x29cc00]['item'])||(_0x29642f=!0x1),_0x111f4c[_0x29cc00]['item']['startIndex']<_0xe23104&&(_0x3b5f27=_0x29cc00),_0x111f4c[_0x29cc00]['item']['endIndex']>=_0x3732a7){_0x2a3a5d=_0x29cc00;break;}_0x29642f&&(_0x3b5f27=_0x3732a7-0x1);for(let _0x3973eb=_0xe23104;_0x3973eb<_0x3732a7;_0x3973eb++)_0x111f4c[_0x3973eb]['side']=_0x3973eb<=_0x3b5f27?-0x1:_0x3973eb<_0x2a3a5d?0x0:0x1,_0x111f4c[_0x3973eb]['index']=_0x3973eb;let _0x4c4a36=0x0;for(let _0x2a8390=_0xe23104;_0x2a8390<=_0x3b5f27;_0x2a8390++)0x0==_0x111f4c[_0x2a8390]['distance']?_0x111f4c[_0x2a8390]['level']=_0x4c4a36:(_0x4c4a36++,_0x111f4c[_0x2a8390]['level']=_0x4c4a36,_0x4c4a36++);for(let _0x2cb449=_0xe23104;_0x2cb449<_0x3732a7;_0x2cb449++)0x0==_0x111f4c[_0x2cb449]['side']&&(_0x111f4c[_0x2cb449]['level']=_0x4c4a36);_0x4c4a36=0x0;for(let _0x58a0af=_0x3732a7-0x1;_0x58a0af>=_0x2a3a5d;_0x58a0af--)0x0==_0x111f4c[_0x58a0af]['distance']?_0x111f4c[_0x58a0af]['level']=_0x4c4a36:(_0x4c4a36--,_0x111f4c[_0x58a0af]['level']=_0x4c4a36,_0x4c4a36--);}}['_fixObsoleteTags'](_0x2e1dc7){const _0xcc07ab=new Map(),_0x20bb4a=this['editor']['model']['schema'];for(let _0x118593=0x1;_0x118593<_0x2e1dc7['length'];_0x118593++){let _0x1326c8,_0x2611d9,_0xa581a7;const _0x1e50bc=_0x2e1dc7[_0x118593],_0x201b4f=_0x2e1dc7[_0x118593-0x1];if('text'==_0x1e50bc['type'])continue;if(_0x1e50bc['type']!=_0x201b4f['type'])continue;if(!_0x20bb4a['isBlock'](_0x201b4f['item'])||_0x20bb4a['isLimit'](_0x201b4f['item']))continue;if(!_0x20bb4a['isBlock'](_0x1e50bc['item'])||_0x20bb4a['isLimit'](_0x1e50bc['item']))continue;if((_0x2e1dc7[_0x118593]['isAdded']||_0x2e1dc7[_0x118593]['isAddSuggestion'])&&_0x2e1dc7[_0x118593-0x1]['isRemoved'])_0x1326c8=_0x2e1dc7[_0x118593],_0x2611d9=_0x2e1dc7[_0x118593-0x1],_0xa581a7=_0x118593-0x1;else{if(!_0x2e1dc7[_0x118593]['isRemoved']||!_0x2e1dc7[_0x118593-0x1]['isAdded']&&!_0x2e1dc7[_0x118593-0x1]['isAddSuggestion'])continue;_0x1326c8=_0x2e1dc7[_0x118593-0x1],_0x2611d9=_0x2e1dc7[_0x118593],_0xa581a7=_0x118593;}const _0x2787b9=_0x1326c8['level']==_0x2611d9['level'],_0x201c3d=Math['abs'](_0x1326c8['level'])<Math['abs'](_0x2611d9['level'])&&0x0==_0x2611d9['distance'];(_0x2787b9||_0x201c3d)&&(_0xcc07ab['set'](_0x2611d9['id'],_0x1326c8['id']),_0x2e1dc7['splice'](_0xa581a7,0x1),_0x118593--,_0x1326c8['isAdded']=!0x1);}for(let _0x4dede8=0x0;_0x4dede8<_0x2e1dc7['length'];_0x4dede8++)_0xcc07ab['has'](_0x2e1dc7[_0x4dede8]['pairId'])&&(_0x2e1dc7[_0x4dede8]['pairId']=_0xcc07ab['get'](_0x2e1dc7[_0x4dede8]['pairId']));}['_removeMissingPairs'](_0x1fb39d){const _0x40db4f=new Set(_0x1fb39d['map'](_0x4f255e=>_0x4f255e['id']));for(let _0x524947=0x0;_0x524947<_0x1fb39d['length'];_0x524947++)_0x40db4f['has'](_0x1fb39d[_0x524947]['pairId'])||0x0==_0x1fb39d[_0x524947]['distance']||(_0x1fb39d[_0x524947]['isIncorrect']=!0x0);return _0x1fb39d['filter'](_0x47ee40=>!_0x47ee40['isIncorrect']);}['_markMismatchedRemovedTags'](_0x471e61){const _0xc576a=new Set();for(let _0xae2ce4=0x0;_0xae2ce4<_0x471e61['length'];_0xae2ce4++){if(_0xc576a['has'](_0x471e61[_0xae2ce4]['id'])&&_0x471e61[_0xae2ce4]['isRemoved']&&(_0x471e61[_0xae2ce4]['isIncorrect']=!0x0),_0x471e61[_0xae2ce4]['isIncorrect'])continue;if(0x0==_0x471e61[_0xae2ce4]['distance'])continue;if('elementStart'!=_0x471e61[_0xae2ce4]['type'])continue;if(null==_0x471e61[_0xae2ce4]['pairId'])continue;let _0x11ae20=_0xae2ce4+0x1,_0x7ac935=0x0;for(;_0x471e61[_0x11ae20]['id']!=_0x471e61[_0xae2ce4]['pairId'];)'elementStart'==_0x471e61[_0x11ae20]['type']?_0x7ac935++:'elementEnd'==_0x471e61[_0x11ae20]['type']&&_0x7ac935--,_0x11ae20++;if(0x0!=_0x7ac935){if(_0x471e61[_0xae2ce4]['isRemoved'])_0x471e61[_0xae2ce4]['isIncorrect']=!0x0;else{for(;_0x11ae20!=_0xae2ce4;)_0x471e61[_0x11ae20]['isRemoved']&&0x0!=_0x471e61[_0x11ae20]['distance']&&(_0x471e61[_0x11ae20]['isIncorrect']=!0x0,_0xc576a['add'](_0x471e61[_0x11ae20]['pairId'])),_0x11ae20--;}}}return _0x471e61['filter'](_0x43bebb=>!_0x43bebb['isIncorrect']);}['_removeUnsupportedChanges'](_0x3b1131){const _0x5d1392=this['editor']['model']['schema'];for(let _0x38530d=0x0;_0x38530d<_0x3b1131['length'];_0x38530d++){if(!(_0x3b1131[_0x38530d]['isAdded']||_0x3b1131[_0x38530d]['isAddSuggestion']||_0x3b1131[_0x38530d]['isRemoved']||_0x3b1131[_0x38530d]['isRemoveSuggestion']))continue;if(0x0==_0x3b1131[_0x38530d]['distance'])continue;const _0x277aef=_0x3b1131[_0x38530d]['item'];_0x5d1392['isBlock'](_0x277aef)||_0x5d1392['isLimit'](_0x277aef)||(_0x3b1131[_0x38530d]['isAdded']&&delete _0x3b1131[_0x38530d]['isAdded'],_0x3b1131[_0x38530d]['isAddSuggestion']&&delete _0x3b1131[_0x38530d]['isAddSuggestion'],_0x3b1131[_0x38530d]['isRemoveSuggestion']&&delete _0x3b1131[_0x38530d]['isRemoveSuggestion'],_0x3b1131[_0x38530d]['isRemoved']&&(_0x3b1131[_0x38530d]['isIncorrect']=!0x0));}return _0x3b1131['filter'](_0xf36ce8=>!_0xf36ce8['isIncorrect']);}['_makeModelFromTape'](_0x4240fa,_0x536041,_0x5bc98a){const _0x4433e8=new gt(),_0x11fd64=[],_0x5cf081=new Map(),_0x544bad=this['editor']['model'],_0x338fdd=_0x544bad['schema'],_0x59287c=[_0x4433e8],_0x2f227d={},_0x5b26dc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x703548=null;const _0xca6ca3=[0x0];for(let _0x18d971=0x0;_0x18d971<_0x4240fa['length'];_0x18d971++)if('elementStart'===_0x4240fa[_0x18d971]['type']){_0x4240fa[_0x18d971]['previousPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3);const _0x216d02=new ut(_0x4240fa[_0x18d971]['item']['name'],_0x4240fa[_0x18d971]['item']['getAttributes']());_0x59287c[0x0]['_appendChild'](_0x216d02),_0xca6ca3['push'](0x0),_0x59287c['unshift'](_0x216d02),_0x4240fa[_0x18d971]['nextPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3);}else'elementEnd'===_0x4240fa[_0x18d971]['type']?(_0x59287c['shift'](),_0x4240fa[_0x18d971]['previousPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3),_0xca6ca3['pop'](),_0xca6ca3[_0xca6ca3['length']-0x1]++,_0x4240fa[_0x18d971]['nextPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3)):(_0x4240fa[_0x18d971]['previousPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3),_0x703548?_0x703548['_data']+=_0x4240fa[_0x18d971]['item']['data']:_0x703548=new wt(_0x4240fa[_0x18d971]['item']['data'],_0x4240fa[_0x18d971]['item']['getAttributes']()),_0x4240fa[_0x18d971+0x1]&&'text'===_0x4240fa[_0x18d971+0x1]['type']&&_0x4756e4(_0x703548,_0x4240fa[_0x18d971+0x1]['item'])||(_0x59287c[0x0]['_appendChild'](_0x703548),_0x703548=null),_0xca6ca3[_0xca6ca3['length']-0x1]+=_0x4240fa[_0x18d971]['item']['offsetSize'],_0x4240fa[_0x18d971]['nextPosition']=_0x544bad['createPositionFromPath'](_0x4433e8,_0xca6ca3));for(let _0x39730d=0x0;_0x39730d<_0x4240fa['length'];_0x39730d++){const _0x52e2d1=_0x4240fa[_0x39730d]['previousPosition'],_0xb6aa0f=_0x4240fa[_0x39730d]['nextPosition'];for(const _0x395df8 of _0x4240fa[_0x39730d]['markersStart'])_0x5cf081['set'](_0x395df8,{'start':_0x52e2d1,'end':null});_0x4e2a27('isRemoveSuggestion',_0x39730d,_0x52e2d1,_0xb6aa0f),_0x4e2a27('isAddSuggestion',_0x39730d,_0x52e2d1,_0xb6aa0f),_0x4e2a27('isRemoved',_0x39730d,_0x52e2d1,_0xb6aa0f),_0x4e2a27('isAdded',_0x39730d,_0x52e2d1,_0xb6aa0f);for(const _0x11f051 of _0x4240fa[_0x39730d]['markersEnd']){_0x5cf081['get'](_0x11f051)['end']=_0xb6aa0f;}}for(const [_0x1b18cd,_0x5780db]of _0x5cf081){const _0x222f71=this['editor']['model']['createRange'](_0x5780db['start'],_0x5780db['end']);_0x4433e8['markers']['set'](_0x1b18cd,_0x222f71);}return _0x11fd64['sort']((_0x2cda7b,_0x174ea6)=>{const _0x17cc37=_0x4433e8['markers']['get']('revision:'+_0x2cda7b['id']),_0x511168=_0x4433e8['markers']['get']('revision:'+_0x174ea6['id']);return _0x17cc37['start']['isBefore'](_0x511168['start'])?-0x1:_0x17cc37['start']['isAfter'](_0x511168['start'])?0x1:_0x17cc37['end']['isBefore'](_0x511168['end'])?-0x1:_0x17cc37['end']['isAfter'](_0x511168['end'])?0x1:'add'===_0x2cda7b['type']?-0x1:0x1;}),{'root':_0x4433e8,'changes':_0x11fd64};function _0x4e2a27(_0x5cae5a,_0x13e9c6,_0x292cd5,_0x5eaeb4){const _0x2cd103=!!_0x4240fa[_0x13e9c6][_0x5cae5a],_0x4e5ebf=_0x2cd103?_0x4240fa[_0x13e9c6][_0x5cae5a]['userId']:null,_0x2c7256=_0x13e9c6===_0x4240fa['length']-0x1,_0x5d204a=_0x5b26dc[_0x5cae5a][0x0],_0x4d71d5=_0x338fdd['isObject'](_0x4240fa[_0x13e9c6]['item']);!_0x2f227d[_0x5cae5a]&&_0x2cd103?_0x2f227d[_0x5cae5a]={'start':_0x292cd5,'tapeItem':_0x4240fa[_0x13e9c6],'userId':_0x4e5ebf,'type':_0x5cae5a}:_0x2f227d[_0x5cae5a]&&!_0x2cd103?(_0x2f227d[_0x5cae5a]['end']=_0x292cd5,_0x1cfd54(_0x2f227d[_0x5cae5a]),_0x2f227d[_0x5cae5a]=null):_0x2f227d[_0x5cae5a]&&_0x2cd103&&_0x2f227d[_0x5cae5a]['userId']!==_0x4e5ebf&&(_0x2f227d[_0x5cae5a]['end']=_0x292cd5,_0x5d204a&&_0x5d204a['userId']===_0x2f227d[_0x5cae5a]['userId']||_0x1cfd54(_0x2f227d[_0x5cae5a]),_0x2f227d[_0x5cae5a]={'start':_0x292cd5,'tapeItem':_0x4240fa[_0x13e9c6],'userId':_0x4e5ebf,'type':_0x5cae5a}),_0x2f227d[_0x5cae5a]&&_0x4d71d5&&('elementStart'!==_0x4240fa[_0x13e9c6]['type']||_0x5d204a&&_0x5d204a['userId']===_0x4e5ebf||_0x5b26dc[_0x5cae5a]['unshift']({'userId':_0x4e5ebf,'object':_0x4240fa[_0x13e9c6]['item'],'change':_0x2f227d[_0x5cae5a]}),'elementEnd'===_0x4240fa[_0x13e9c6]['type']&&_0x5d204a&&_0x5d204a['object']===_0x4240fa[_0x13e9c6]['item']&&(_0x5b26dc[_0x5cae5a]['shift'](),_0x2f227d[_0x5cae5a]=_0x5d204a['change'])),_0x2f227d[_0x5cae5a]&&_0x2c7256&&(_0x2f227d[_0x5cae5a]['end']=_0x5eaeb4,_0x1cfd54(_0x2f227d[_0x5cae5a]),_0x2f227d[_0x5cae5a]=null);}function _0x1cfd54({start:_0xdb297f,end:_0x87dfb6,tapeItem:_0x5b0d08,userId:_0x2f6038,type:_0xe8bc6b}){const _0x2ff12b=_0x5b0d08['item'],_0x5f0747=_0x544bad['schema']['isBlock'](_0x2ff12b)&&!_0x544bad['schema']['isLimit'](_0x2ff12b),_0x17bca2=_0xdb297f['nodeAfter']==_0x87dfb6['parent']&&_0x87dfb6['isAtStart'];if(_0x5f0747&&_0x17bca2)return;const _0x72d4ae=_0x544bad['createRange'](_0xdb297f,_0x87dfb6),_0x2f3cd7=_0x536041['get'](_0x2f6038),_0x4865e5=new r({'author':_0x2f3cd7,'type':'isAdded'==_0xe8bc6b||'isAddSuggestion'==_0xe8bc6b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xe8bc6b||'isRemoveSuggestion'==_0xe8bc6b},'createdAt':new Date(),'rootName':_0x5bc98a});_0x11fd64['push'](_0x4865e5),_0x4433e8['markers']['set']('revision:'+_0x4865e5['id'],_0x72d4ae);}function _0x4756e4(_0x767199,_0x54a6ff){const _0x2ca649=_0x767199['getAttributes'](),_0x5b1e97=_0x54a6ff['getAttributes']();for(const _0x4fecb0 of _0x2ca649){if(_0x4fecb0[0x1]!==_0x54a6ff['getAttribute'](_0x4fecb0[0x0]))return!0x1;_0x5b1e97['next']();}return _0x5b1e97['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a3f01=>{const _0x30f24a=_0x3a3f01['markerName']['split'](':')[0x1],_0x461d40=this['_getChangeFromId'](_0x30f24a);if(!_0x461d40)return null;const _0x56879e='add'==_0x461d40['type']?'insertion':'deletion',_0xe48d4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x56879e];return _0x461d40['data']['isSuggestion']&&_0xe48d4['push']('ck-suggestion-marker-'+_0x56879e+'-new'),this['activeChange']==_0x461d40&&_0xe48d4['push']('ck-suggestion-marker--active'),{'classes':_0xe48d4,'attributes':{'data-change-id':_0x30f24a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x58551e=>{_0x58551e['on']('element:pre',(_0x23ff3e,_0x46fc0c,_0x5d5a6f)=>{const _0xfa4aff=_0x46fc0c['viewItem']['getChild'](0x0);if(!_0xfa4aff||!_0xfa4aff['is']('element','code'))return;if(!_0x5d5a6f['consumable']['consume'](_0xfa4aff,{'attributes':['vid_start','vid_end']}))return;const _0x280878=_0x46fc0c['modelRange']['start']['nodeAfter'];_0x5d5a6f['writer']['setAttribute']('vid_start',_0xfa4aff['getAttribute']('vid_start'),_0x280878),_0x5d5a6f['writer']['setAttribute']('vid_end',_0xfa4aff['getAttribute']('vid_end'),_0x280878);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x346a09=>{_0x346a09['on']('element',(_0x13cdf5,_0x290e95,_0x53531d)=>{if(!_0x53531d['consumable']['consume'](_0x290e95['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x290e95['modelRange']['isCollapsed'])return;const _0x395d81=_0x290e95['modelRange']['start']['nodeAfter'];_0x395d81['hasAttribute']('vid_start')||_0x395d81['hasAttribute']('vid')||(_0x53531d['writer']['setAttribute']('vid_start',_0x290e95['viewItem']['getAttribute']('vid_start'),_0x395d81),_0x53531d['writer']['setAttribute']('vid_end',_0x290e95['viewItem']['getAttribute']('vid_end'),_0x395d81));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d6b5e=>_0x4d6b5e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x167b78,[,_0x47f3d3])=>{['vid_start','vid_end','vid']['includes'](_0x47f3d3)&&(_0x167b78['return']=!0x0,_0x167b78['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6741f0=>{_0x6741f0['on']('attribute:vid',(_0x5525d6,_0x1fa1d6,_0x878aed)=>{if('\x20'!=_0x1fa1d6['item']['data']||_0x1fa1d6['item']['parent']['maxOffset']>0x1)return;if(!_0x878aed['consumable']['consume'](_0x1fa1d6['item'],_0x5525d6['name']))return;const _0x32a23a=_0x878aed['writer'],_0xa82403=_0x878aed['mapper']['toViewRange'](_0x1fa1d6['range']);_0x32a23a['wrap'](_0xa82403,_0x32a23a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x113f2a){const _0x24e89e=_0x113f2a['plugins']['get']('RevisionViewer');return(_0x20038d,_0x1b30de,_0x40d501)=>{const _0x5eb9a2=_0x1b30de['markerName']['split'](':')[0x1],_0x2c1528=_0x24e89e['_getChangeFromId'](_0x5eb9a2);if(!_0x2c1528)return null;const _0x8c3fd3='add'==_0x2c1528['type']?'split':'merge';if(!_0x40d501['consumable']['test'](_0x1b30de['markerRange'],_0x20038d['name']))return;const _0x19b8dc=_0x1b30de['markerRange']['getWalker'](),_0x5e797e=_0x1b30de['markerRange']['start'],_0x5e41b7=_0x113f2a['model']['schema'];let _0x5aa6e1=null,_0x4f4267=null,_0x346fdf=!0x1,_0x4e8afe=!0x1;for(const _0x2cd3c3 of _0x19b8dc){const _0x5ab849=_0x2cd3c3['item'];_0x346fdf=_0x346fdf||_0x5e41b7['isContent'](_0x5ab849);const _0x13bd5e=_0x40d501['mapper']['toViewElement'](_0x5ab849);if(_0x13bd5e&&_0x13bd5e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2cd3c3['type']&&(_0x5e41b7['isBlock'](_0x5ab849)&&!_0x5e41b7['isLimit'](_0x5ab849)&&(_0x5ab849['nextSibling']||_0x5e797e['isAtEnd']?_0x5aa6e1&&_0x5aa6e1['parent']==_0x5ab849||(_0x5aa6e1=_0x5ab849,_0x306fc5(_0x2cd3c3['previousPosition']),_0x4e8afe=!0x0):_0x4f4267=_0x4f4267||_0x2cd3c3['previousPosition']));}function _0x306fc5(_0x571bf6){const _0x28e32d=_0x40d501['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8c3fd3}),_0x1be318=_0x40d501['mapper']['toViewPosition'](_0x571bf6);_0x2c1528['data']['isSuggestion']&&_0x40d501['writer']['addClass']('ck-suggestion-marker-'+_0x8c3fd3+'-new',_0x28e32d),_0x24e89e['activeChange']==_0x2c1528&&_0x40d501['writer']['addClass']('ck-suggestion-marker--active',_0x28e32d),_0x40d501['writer']['insert'](_0x1be318,_0x28e32d),_0x40d501['mapper']['bindElementToMarker'](_0x28e32d,_0x1b30de['markerName']);}_0x346fdf||_0x4e8afe||!_0x4f4267||_0x306fc5(_0x4f4267);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3a5bf2,_0x2226cc,_0x5c1dec)=>{const _0x342f78=_0x5c1dec['mapper']['markerNameToElements'](_0x2226cc['markerName']);if(_0x342f78){for(const _0x5d04dc of _0x342f78)(_0x5d04dc['hasClass']('ck-suggestion-marker-split')||_0x5d04dc['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c1dec['mapper']['unbindElementFromMarkerName'](_0x5d04dc,_0x2226cc['markerName']),_0x5c1dec['writer']['remove'](_0x5d04dc));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5da343,_0x4f9c25,_0x537451)=>{const _0x562e7c=_0x4f9c25['markerName']['split'](':')[0x1],_0x2988f2=this['_getChangeFromId'](_0x562e7c);if(!_0x2988f2)return null;const _0x584f9d='add'==_0x2988f2['type']?'split':'merge';if(_0x537451['consumable']['test'](_0x4f9c25['markerRange'],_0x5da343['name']))for(const _0xa755b2 of _0x4f9c25['markerRange']['getItems']()){if(!_0xa755b2['is']('element','softBreak'))continue;const _0xfc13f0=_0x537451['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x584f9d}),_0x5c6c9e=_0x537451['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xa755b2));_0x2988f2['data']['isSuggestion']&&_0x537451['writer']['addClass']('ck-suggestion-marker-'+_0x584f9d+'-new',_0xfc13f0),this['activeChange']==_0x2988f2&&_0x537451['writer']['addClass']('ck-suggestion-marker--active',_0xfc13f0),_0x537451['writer']['insert'](_0x5c6c9e,_0xfc13f0),_0x537451['mapper']['bindElementToMarker'](_0xfc13f0,_0x4f9c25['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5722f8=>{for(const _0x578eb5 of this['editor']['model']['document']['getRootNames']()){const _0x1de0f8=this['editor']['model']['document']['getRoot'](_0x578eb5),_0x35d380=this['editor']['editing']['view']['document']['getRoot'](_0x578eb5);if(_0x35d380){const _0xf35ea2=_0x1de0f8['getAttribute']('revisionHistoryAttachChange');if(_0x5722f8['removeAttribute']('data-change-id',_0x35d380),_0x5722f8['removeClass']('ck-revision-history-root-add',_0x35d380),_0x5722f8['removeClass']('ck-revision-history-root-remove',_0x35d380),_0x5722f8['removeClass']('ck-revision-history-root--active',_0x35d380),_0xf35ea2){const _0x19a224=this['_getChangeFromId'](_0xf35ea2);if(!_0x19a224)return null;_0x5722f8['setAttribute']('data-change-id',_0xf35ea2,_0x35d380),_0x5722f8['addClass']('ck-revision-history-root-'+_0x19a224['type'],_0x35d380),this['activeChange']==_0x19a224&&_0x5722f8['addClass']('ck-revision-history-root--active',_0x35d380);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x17bea1=>'revision-comment:'+_0x17bea1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x333066=>'revision-suggestion:'+_0x333066,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x43d064=>({'name':'suggestion:'+_0x43d064,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5bebd4=>{const _0x5d22a2=_0x5bebd4['markerName']['split'](':')[0x1];return'insertion'!=_0x5d22a2&&'deletion'!=_0x5d22a2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d22a2]};}}),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',(_0x1b4a47,_0x3dc739,_0xd8f425)=>{const _0x1f904c=_0xd8f425['mapper']['markerNameToElements'](_0x3dc739['markerName']);if(_0x1f904c){for(const _0xe6262c of _0x1f904c)_0xe6262c['is']('uiElement')&&(_0xd8f425['mapper']['unbindElementFromMarkerName'](_0xe6262c,_0x3dc739['markerName']),_0xd8f425['writer']['remove'](_0xe6262c));}},{'priority':'high'});}['_getChangeFromId'](_0x5b1010){return this['_changeIdToChange']['get'](_0x5b1010);}['_getViewForChange'](_0x50e7b7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x50e7b7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x45a58e,_0x2de329,_0x4f4c1c,_0x3ad601)=>{_0x3ad601&&this['_balloon']['remove'](_0x3ad601),_0x4f4c1c&&(this['_balloon']['add']({'view':_0x4f4c1c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x18c1a8=this['editor']['editing'],_0x874d49=this['_getChangeFromId'](_0x4f4c1c['changeId']);let _0x4bc7a6;if(_0x874d49['data']['isOnRoot']){const _0xcc8512=_0x18c1a8['view']['getDomRoot'](_0x874d49['rootName']);_0x4bc7a6=Array['from'](_0xcc8512['getClientRects']());}else{const _0x14c3c5=this['editor']['model']['markers']['get']('revision:'+_0x4f4c1c['changeId']);_0x4bc7a6=Array['from'](_0x18c1a8['mapper']['markerNameToElements'](_0x14c3c5['name']))['map'](_0x32a3a1=>_0x18c1a8['view']['domConverter']['mapViewToDom'](_0x32a3a1))['map'](_0x1d422f=>Array['from'](_0x1d422f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4bc7a6[0x0];return _0x4bc7a6['find'](_0x1ec575=>_0x1ec575['top']-0x3<=this['_activeViewTarget']['y']&&_0x1ec575['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1ec575['left']-0x3<=this['_activeViewTarget']['x']&&_0x1ec575['right']+0x3>=this['_activeViewTarget']['x'])||_0x4bc7a6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x341047,_0x4566a5,_0x5021cf,_0x1fc72d)=>{this['activeView']=_0x5021cf?this['_getViewForChange'](_0x5021cf):null,this['editor']['model']['change'](()=>{const _0x5101d6=this['editor']['editing'];_0x1fc72d&&(_0x1fc72d['data']['isOnRoot']?_0x5101d6['view']['change'](_0x34fe0a=>{_0x34fe0a['removeClass']('ck-revision-history-root--active',_0x5101d6['view']['document']['getRoot'](_0x1fc72d['rootName']));}):_0x5101d6['reconvertMarker']('revision:'+_0x1fc72d['id'])),_0x5021cf&&(_0x5021cf['data']['isOnRoot']?_0x5101d6['view']['change'](_0x4ea537=>{_0x4ea537['addClass']('ck-revision-history-root--active',_0x5101d6['view']['document']['getRoot'](_0x5021cf['rootName']));}):_0x5101d6['reconvertMarker']('revision:'+_0x5021cf['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5201d6,_0x15fd39)=>{if(this['activeChange'])return;const _0x48e28a=this['_findChangeIdFromDomTarget'](_0x15fd39['target']),_0x5a9eb7=this['_changeIdToChange']['get'](_0x48e28a);_0x5a9eb7?(this['_activeViewTarget']={'x':_0x15fd39['domEvent']['x'],'y':_0x15fd39['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a9eb7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x23310c,_0x3c85a5)=>{const _0xd5da55=this['_findChangeIdFromDomTarget'](_0x3c85a5['target']),_0x2ff3e3=this['_changeIdToChange']['get'](_0xd5da55);_0x2ff3e3?(this['_activeViewTarget']={'x':_0x3c85a5['domEvent']['x'],'y':_0x3c85a5['domEvent']['y']},_0x2ff3e3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2ff3e3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x32323d){do{const _0x4029fb=_0x32323d['getAttribute']('data-change-id');if(_0x4029fb)return _0x4029fb;_0x32323d=_0x32323d['parent'];}while(_0x32323d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xc39f30=>{for(const _0x4b1a69 of this['editor']['model']['markers'])_0xc39f30['removeMarker'](_0x4b1a69);});}}function Z(_0x5ee08b,_0x38362f){return(_0xa4ba07,_0x231d1b,_0x3f6deb)=>{if(!_0x3f6deb['consumable']['test'](_0x231d1b['markerRange'],_0xa4ba07['name']))return;const _0x18e7c9=_0x231d1b['markerRange']['getWalker'](),_0x1dc4c6=_0x231d1b['markerRange']['start'],_0x48d59f=_0x5ee08b['model']['schema'];let _0x572801=null,_0x401b4c=null,_0x2eb9ed=!0x1,_0xb4df05=!0x1;for(const _0x1fceb4 of _0x18e7c9){const _0xbb77b4=_0x1fceb4['item'];_0x2eb9ed=_0x2eb9ed||_0x48d59f['isContent'](_0xbb77b4);const _0x40ae87=_0x3f6deb['mapper']['toViewElement'](_0xbb77b4);if(_0x40ae87&&_0x40ae87['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fceb4['type']&&(_0x48d59f['isBlock'](_0xbb77b4)&&!_0x48d59f['isLimit'](_0xbb77b4)&&(_0xbb77b4['nextSibling']||_0x1dc4c6['isAtEnd']?_0x572801&&_0x572801['parent']==_0xbb77b4||(_0x572801=_0xbb77b4,_0x552fbc(_0x1fceb4['previousPosition']),_0xb4df05=!0x0):_0x401b4c=_0x401b4c||_0x1fceb4['previousPosition']));}function _0x552fbc(_0x28bde0){const _0xc5ce74=_0x3f6deb['mapper']['toViewPosition'](_0x28bde0),_0x47e220=_0x3f6deb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x38362f});_0x3f6deb['writer']['insert'](_0xc5ce74,_0x47e220),_0x3f6deb['mapper']['bindElementToMarker'](_0x47e220,_0x231d1b['markerName']);}_0x2eb9ed||_0xb4df05||!_0x401b4c||_0x552fbc(_0x401b4c);};}class _t extends _0xf5f580{constructor(_0x212928){super(_0x212928);const _0x2d306e=_0x212928['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2d306e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d306e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x27d3a0=this['editor'],_0xa3ac33=_0x27d3a0['plugins']['get'](d),_0x4c8da8=_0xa3ac33['isReady']?_0xa3ac33['diff']['newRevisionId']:null;_0x27d3a0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4c8da8);}['refresh'](){const {isReady:_0x5234a0,isEnabled:_0x2df828,repository:_0x220a5b,diff:_0x58b5a1}=this['editor']['plugins']['get'](d),_0x9df89f=_0x58b5a1&&_0x220a5b['getLaterVisibleRevision'](_0x58b5a1['newRevisionId']);this['isEnabled']=_0x5234a0&&_0x2df828&&Boolean(_0x9df89f);}}class yt extends _0xf5f580{['_step'];constructor(_0x129a2d,{direction:_0x46d077}){super(_0x129a2d);const _0x4f8c86=_0x129a2d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x46d077?0x1:-0x1,this['listenTo'](_0x4f8c86,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4f8c86,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4f8c86,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x545d90=this['editor'],_0x2df269=_0x545d90['plugins']['get'](d),{isNavigationMode:_0x1012a6,currentChangeNumber:_0x1cb84a}=_0x2df269;let _0x53c90e;if(_0x2df269['activeChange']=_0x1012a6?_0x2df269['diff']['changes']['get'](_0x1cb84a+this['_step']):_0x2df269['diff']['changes']['first'],_0x2df269['activeChange']['data']['isOnRoot'])_0x53c90e=_0x545d90['editing']['view']['getDomRoot'](_0x2df269['activeChange']['rootName']);else{const _0x43a033=_0x545d90['model']['markers']['get']('revision:'+_0x2df269['activeChange']['id']);_0x53c90e=_0x3b2265(_0x545d90['editing'],_0x43a033);}_0x3544a3({'target':_0x53c90e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd23c8b,currentChangeNumber:_0x35b4ff,numberOfChanges:_0x1ead5b,isReady:_0xb491e4,isEnabled:_0x116cfb}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x116cfb&&_0xb491e4&&_0x1ead5b)&&(!_0xd23c8b||(0x1===this['_step']?_0x35b4ff<_0x1ead5b-0x1:_0x35b4ff>0x0));}}class _i extends _0x593953{constructor(_0x4eb3e1){super(_0x4eb3e1);const _0xc33bc7=this['bindTemplate'],_0x582e20=new _0x49cd9a(_0x4eb3e1),_0x29d6c8=new _0x49cd9a(_0x4eb3e1);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',(_0x437dec,_0x53df09)=>_0x437dec&&_0x53df09>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c1fce,_0x2a88fd,_0x272707,_0x45d788)=>{if(!_0x5c1fce)return m(_0x4eb3e1,'Loading...');if(!_0x272707)return m(_0x4eb3e1,'No\x20changes');const _0x2d9c63=m(_0x4eb3e1,'NUMBER_OF_CHANGES',_0x272707);return _0x45d788?m(_0x4eb3e1,'X_OF_Y_CHANGES',[_0x2a88fd+0x1,_0x272707]):_0x2d9c63;}),_0x582e20['set']({'label':m(_0x4eb3e1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x327a9e}),_0x29d6c8['set']({'label':m(_0x4eb3e1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x38f551}),_0x582e20['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x29d6c8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x582e20['on']('execute',()=>this['fire']('execute','backward')),_0x29d6c8['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',_0xc33bc7['if']('_isStatusLabelVisible','ck-hidden',_0x4fca14=>!_0x4fca14)]},'children':[{'text':_0xc33bc7['to']('isNavigationMode',_0x1ccf21=>_0x1ccf21?m(_0x4eb3e1,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4eb3e1,'Total')+':\x20')}]},{'text':_0xc33bc7['to']('_statusText')}]},new _0x2f682f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x582e20,_0x29d6c8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x1c29cb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1a54af=this['editor']['editing']['view'];_0x1a54af['change'](_0x351408=>{for(const _0x505352 of _0x1a54af['document']['roots'])_0x351408['addClass'](ce,_0x505352);});}['hide'](){const _0x1db099=this['editor']['editing']['view'];_0x1db099['change'](_0x20396c=>{for(const _0x5a4c95 of _0x1db099['document']['roots'])_0x20396c['removeClass'](ce,_0x5a4c95);});}}class w extends _0x1c29cb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2f60dd=this['editor'],_0x453457=_0x2f60dd['plugins']['get'](d),_0x39acaf=_0x2f60dd['plugins']['get'](le);_0x2f60dd['ui']['componentFactory']['add']('exitToEditing',_0x37c25e=>{const _0x1d74f7=new _0x49cd9a(_0x37c25e);return _0x1d74f7['set']({'label':m(_0x37c25e,'Back\x20to\x20editing'),'icon':_0x2873de,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1d74f7,'execute',()=>{_0x2f60dd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1d74f7;}),_0x2f60dd['ui']['componentFactory']['add']('restoreRevision',_0x1f43e6=>{const _0x2dbea7=new _0x49cd9a(_0x1f43e6);return _0x2dbea7['set']({'label':m(_0x1f43e6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2dbea7['bind']('isEnabled')['to'](_0x2f60dd['commands']['get']('restoreRevision')),this['listenTo'](_0x2dbea7,'execute',()=>_0x2f60dd['execute']('restoreRevision')),_0x2dbea7;}),_0x2f60dd['ui']['componentFactory']['add']('changesNavigation',_0x54e0f8=>{const _0x15dc39=new _i(_0x54e0f8),_0x1962d2=_0x2f60dd['commands']['get']('showPreviousChange'),_0x4a35ef=_0x2f60dd['commands']['get']('showNextChange');return _0x15dc39['bind']('isBackwardNavigationEnabled')['to'](_0x1962d2,'isEnabled'),_0x15dc39['bind']('isForwardNavigationEnabled')['to'](_0x4a35ef,'isEnabled'),_0x15dc39['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x453457),this['listenTo'](_0x15dc39,'execute',(_0x2f0026,_0x51f6de)=>{_0x2f60dd['execute']('forward'===_0x51f6de?'showNextChange':'showPreviousChange');}),_0x15dc39;}),_0x39acaf['show'](),_0x453457['on']('change:isReady',(_0x4ff461,_0x3391dc,_0x5b4ffc)=>{_0x5b4ffc?_0x39acaf['hide']():_0x39acaf['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x395116,_0x492f77){super(_0x395116,_0x492f77);const _0x2a6362=this['bindTemplate'];this['set']({'label':m(_0x395116,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x395116,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2a6362['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2b9cc4=this['fieldView']['element'];this['_tooltipString']=_0x2b9cc4['scrollWidth']>_0x2b9cc4['clientWidth']&&_0x2b9cc4['value']||'';}}class oi extends _0x593953{constructor(_0x10caf1,_0x3408bd,_0x55f0fc){super(_0x10caf1);const _0x23ec1a=new _0x324c92();_0x23ec1a['set']({'content':_0x95a132,'viewBox':'0\x200\x2011\x2010'});const _0x474d0b=['ck','ck-revision-history-sidebar__revision-author'];_0x55f0fc&&_0x474d0b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5efefd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x10caf1,_0x55f0fc?'Revision\x20creator':'Revision\x20author')},'children':[_0x23ec1a,_0x3408bd['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x474d0b},'children':_0x5efefd});}}function ni(_0x511e3f,_0x32e274){const _0x5a2693=_0x511e3f['bindTemplate'],_0x477966=_0x511e3f['locale'],_0x131b77=_0x46970d(_0x477966);_0x131b77['panelPosition']='sw';const _0xd834dd=function(_0x1ebea0,_0x318bf6){const _0x2954ec=function(_0x22633d,_0x33a7d7){const _0x12ec65=_0x22633d['locale'],_0x12a942={'Compare\x20against\x20selected':m(_0x12ec65,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12ec65,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12ec65,'Restore\x20this\x20revision')};return _0x33a7d7['map'](_0x1eb34b=>{const _0x24b836=_0x12a942[_0x1eb34b['name']];return _0x24b836&&_0x24b836!==_0x1eb34b['name']&&(_0x1eb34b['name']=_0x24b836),_0x1eb34b;});}(_0x1ebea0,_0x318bf6),_0x53555c=new _0x7305bb();for(const _0x55c987 of _0x2954ec){const _0x4e47bf={'type':'button','model':new to({'label':_0x55c987['name'],'class':_0x55c987['class'],'withText':!0x0,'role':'menuitem','_action':_0x55c987['action']})};_0x4e47bf['model']['bind']('isEnabled')['to'](_0x1ebea0,'isActionsDropdownOpen',_0x58515c=>'function'!=typeof _0x55c987['isEnabled']||(!_0x58515c||_0x55c987['isEnabled'](_0x1ebea0))),_0x53555c['add'](_0x4e47bf);}return _0x53555c;}(_0x511e3f,_0x32e274);return _0x511e3f['bind']('isActionsDropdownOpen')['to'](_0x131b77,'isOpen'),_0x131b77['buttonView']['set']({'label':m(_0x477966,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4e52db}),_0x131b77['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5a2693['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5a2693['to'](_0x3bf5b9=>_0x3bf5b9['stopPropagation']())}}),_0x131b77['on']('execute',_0x4f1cff=>{_0x511e3f['isReady']&&'function'==typeof _0x4f1cff['source']['_action']&&_0x4f1cff['source']['_action'](_0x511e3f);}),_0x3a6213(_0x131b77,_0xd834dd,{'role':'menu'}),_0x131b77['listenTo'](_0x511e3f,'change:isActionsDropdownOpen',(_0xf7cd94,_0x50ee0b,_0x3b69ca)=>{if(_0x3b69ca)for(const _0x47d8e1 of _0x131b77['listView']['items']){const _0x4587a1=_0x47d8e1['children']['first'],_0xde50a0=_0x32e274['find'](_0x335051=>_0x335051['action']===_0x4587a1['_action'])['isVisible'];_0x47d8e1['isVisible']=void 0x0===_0xde50a0||_0xde50a0(_0x511e3f);}}),_0x131b77;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x45caf0,uid as _0x118080,Collection as _0x3e452a,logWarning as _0x26aa91,FocusTracker as _0x2ebb35,KeystrokeHandler as _0x5c3c3a,scrollViewportToShowTarget as _0x498fcc,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1a0978}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x127b89,set as _0x22930c,unset as _0x51fe73,isEqual as _0x1ff0ec}from'es-toolkit/compat';import{Plugin as _0x118fc5,PendingActions as _0x16589e,Command as _0x969d2d,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1120ef,getMarkerDomElement as _0x25477c,ConfirmMixin as ti,sanitizeEditorConfig as _0x259f0a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x8157a,Element as ut,Range as ft,ViewUIElement as _0x28565d,ViewRawElement as _0xd3a339,ViewEmptyElement as _0x5d757a,ViewAttributeElement as _0x51cef1,ViewContainerElement as _0x536437,Position as vt,ViewText as _0x1b404c,ViewElement as _0x34db6a,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4709ad,IconChevronUp as _0x1fd3a6,IconChevronDown as _0x27dfe9,IconUndo as _0x5ec5f7,IconUser as _0x1c5cb8,IconThreeVerticalDots as _0x3cf2be}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x25c145,submitHandler as _0x4c2b40,LabeledFieldView as _0x3f0de8,createLabeledInputText as _0x153297,createDropdown as _0x243ed3,ListView as _0x2ac408,ListItemView as _0x1f298a,ButtonView as te,MenuBarMenuView as _0x361888,MenuBarMenuListView as _0xb5534c,MenuBarMenuListItemView as _0x11fa25,MenuBarMenuListItemButtonView as _0x5d5452,ContextualBalloon as _0x608ef,ToolbarSeparatorView as _0x5bb69f,IconView as _0x1f0c9d,addListToDropdown as _0x370af3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x140512}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x45caf0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c4564){super(),this['id']=_0x5c4564['id']||_0x118080(),this['creator']=_0x5c4564['creator']||null,this['authors']=_0x5c4564['authors']||[],this['diffData']=_0x5c4564['diffData']||null,this['toVersion']=_0x5c4564['toVersion']||0x0,this['fromVersion']=_0x5c4564['fromVersion']||0x0,this['set']('name',_0x5c4564['name']||''),this['set']('createdAt',_0x5c4564['createdAt']||new Date()),this['set']('attributes',_0x5c4564['attributes']||{});}['setName'](_0x2a4f32){this['_update']({'name':_0x2a4f32});}['setAttribute'](_0x3694dc,_0x3485c1){const _0x2b8aca=_0x127b89(this['attributes']);_0x22930c(_0x2b8aca,_0x3694dc,_0x3485c1),this['_update']({'attributes':_0x2b8aca});}['removeAttribute'](_0x5b5cf1){const _0x345a09=_0x127b89(this['attributes']);_0x51fe73(_0x345a09,_0x5b5cf1),this['_update']({'attributes':_0x345a09});}['_update'](_0x4bab03,_0x2632e1=!0x1){let _0x3c6306=!0x1;const _0x135a71={'id':this['id']},_0x5b24ea=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b3897 of _0x5b24ea){const _0xf62287=_0x4bab03[_0x2b3897];void 0x0!==_0xf62287&&_0xf62287!==this[_0x2b3897]&&(this[_0x2b3897]=_0xf62287,_0x135a71[_0x2b3897]=_0xf62287,_0x3c6306=!0x0);}_0x3c6306&&(_0x135a71['authors']&&(_0x135a71['authorsIds']=_0x135a71['authors']['map'](_0x472f22=>_0x472f22['id']),delete _0x135a71['authors']),this['fire']('_update',_0x135a71,_0x2632e1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4702ea=>_0x4702ea['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x118fc5{['_revisions'];static get['requires'](){return[_0x1120ef];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x412f4f){super(_0x412f4f),this['_revisions']=new _0x3e452a();}['afterInit'](){!async function(_0x35a945){const _0x2e9df8=_0x317079([0x34,0x51,0x41,0x33,0x79,0x77,0x36,0x31,0x5a,0x61,0x30,0x6b,0x64,0x6d,0x62,0x63,0x6a,0x76,0x59,0x4b,0x69,0x74,0x4c,0x57,0x75,0x49,0x45,0x4a,0x71,0x65,0x46,0x32,0x50,0x6c,0x72,0x53,0x6e,0x73,0x4d,0x35,0x44,0x42,0x6f,0x48,0x37,0x67,0x56,0x78,0x4f,0x66,0x58,0x68,0x47,0x70,0x54,0x55,0x43,0x4e,0x38,0x7a,0x52,0x39]),_0x27e13d=0xeb829,_0x45f9e6=0x3ad40895,_0x3c29db=0x3ad3686d^_0x45f9e6,_0x237b17=window[_0x317079([0x44,0x61,0x74,0x65])][_0x317079([0x6e,0x6f,0x77])](),_0x48adfb=_0x35a945[_0x317079([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x479169=new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b51f4=>{_0x48adfb[_0x317079([0x6f,0x6e,0x63,0x65])](_0x317079([0x72,0x65,0x61,0x64,0x79]),_0x3b51f4);}),_0x1ea8e8={[_0x317079([0x6b,0x74,0x79])]:_0x317079([0x45,0x43]),[_0x317079([0x75,0x73,0x65])]:_0x317079([0x73,0x69,0x67]),[_0x317079([0x63,0x72,0x76])]:_0x317079([0x50,0x2d,0x32,0x35,0x36]),[_0x317079([0x78])]:_0x317079([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]),[_0x317079([0x79])]:_0x317079([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]),[_0x317079([0x61,0x6c,0x67])]:_0x317079([0x45,0x53,0x32,0x35,0x36])},_0x5126d2=_0x48adfb[_0x317079([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317079([0x67,0x65,0x74])](_0x317079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x442e35(){let _0x407266,_0x23be09=null,_0x7eca8c=null;try{if(_0x5126d2==_0x317079([0x47,0x50,0x4c]))return _0x317079([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x407266=_0x2c0d8e(),!_0x407266)return _0x317079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x407266[_0x317079([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7eca8c=_0x4c8ff3(_0x407266[_0x317079([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x407266[_0x317079([0x6a,0x74,0x69])])),await _0x27dfb2()?_0x5d2e6b()?_0x59919b()?_0x317079([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43f2d3()?(_0x407266[_0x317079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317079([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23be09=_0x61c6a2(_0x317079([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x407266[_0x317079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317079([0x74,0x72,0x69,0x61,0x6c])&&(_0x23be09=_0x61c6a2(_0x317079([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a0167()):_0x317079([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317079([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3612d9){return _0x317079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59919b(){const _0xd91260=[_0x317079([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317079([0x74,0x72,0x69,0x61,0x6c])][_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x407266[_0x317079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x237b17/0x3e8:0xe10*_0x3c29db;return _0x407266[_0x317079([0x65,0x78,0x70])]<_0xd91260;}function _0x5d2e6b(){const _0x3c4a0d=_0x407266[_0x317079([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c4a0d)return!0x1;if(_0x3c4a0d[_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317079([0x2a])))return!0x0;if(_0x3c4a0d[_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317079([0x52,0x48])))return!0x0;if(_0x3c4a0d[_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317079([0x52,0x52,0x48]))){if(_0x3a604e())return!0x0;if(_0x884586()||_0x11bcff())return!0x0;}return!0x1;}function _0x43f2d3(){const _0x576ed2=_0x407266[_0x317079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x576ed2||0x0==_0x576ed2[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57255c}=new URL(window[_0x317079([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x576ed2[_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57255c))return!0x0;const _0x3cee48=_0x57255c[_0x317079([0x73,0x70,0x6c,0x69,0x74])](_0x317079([0x2e]));return _0x576ed2[_0x317079([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393348=>_0x393348[_0x317079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317079([0x2a])))[_0x317079([0x6d,0x61,0x70])](_0x291b65=>_0x291b65[_0x317079([0x73,0x70,0x6c,0x69,0x74])](_0x317079([0x2e])))[_0x317079([0x73,0x6f,0x6d,0x65])](_0x3c46a6=>_0x3cee48[_0x317079([0x65,0x76,0x65,0x72,0x79])]((_0x471516,_0x2ace8b)=>_0x3c46a6[_0x2ace8b]===_0x471516||_0x3c46a6[_0x2ace8b]===_0x317079([0x2a])));}function _0x1a0167(){return _0x23be09&&_0x7eca8c?new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6cbd7f,_0x2bac67)=>{_0x23be09[_0x317079([0x74,0x68,0x65,0x6e])](_0x6cbd7f,_0x2bac67),_0x7eca8c[_0x317079([0x74,0x68,0x65,0x6e])](_0x212186=>{_0x212186!=_0x317079([0x56,0x61,0x6c,0x69,0x64])&&_0x6cbd7f(_0x212186);},_0x2bac67);}):_0x23be09||_0x7eca8c||_0x317079([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c8ff3(_0x4acccd,_0x18f844){return new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6331=>{if(_0x302df())return _0x5e6331(_0x317079([0x56,0x61,0x6c,0x69,0x64]));_0x3906a2(),_0x48adfb[_0x317079([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b9a7c=!0x1;const _0x433093=_0x118080();function _0xc880fc(_0x4bf335){return!!_0x4bf335&&(typeof _0x4bf335===_0x317079([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bf335===_0x317079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bf335[_0x317079([0x74,0x68,0x65,0x6e])]===_0x317079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bf335[_0x317079([0x63,0x61,0x74,0x63,0x68])]===_0x317079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e62fc(_0x107420){_0x413110(_0x107420)[_0x317079([0x74,0x68,0x65,0x6e])](_0x10df42=>{if(!_0x10df42||_0x10df42[_0x317079([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317079([0x6f,0x6b]))return _0x317079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x589585(_0x1704d4(_0x433093+_0x18f844))!=_0x10df42[_0x317079([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317079([0x56,0x61,0x6c,0x69,0x64]);})[_0x317079([0x74,0x68,0x65,0x6e])](_0x98183e=>(_0x1c90ee(),_0x98183e),()=>{const _0x389c97=_0x8674b2();return null==_0x389c97?(_0x1c90ee(),_0x317079([0x56,0x61,0x6c,0x69,0x64])):_0x317079(_0x237b17-_0x389c97>(0x1ed88c95^_0x45f9e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317079([0x74,0x68,0x65,0x6e])](_0x5e6331)[_0x317079([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e6331(_0x317079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b8f78=0x3ae2e615^_0x45f9e6;function _0x1c90ee(){const _0x15c682=_0x317079([0x6c,0x6c,0x63,0x74,0x2d])+_0x589585(_0x1704d4(_0x4acccd)),_0x4ee13b=_0x2ace32(_0x589585(window[_0x317079([0x4d,0x61,0x74,0x68])][_0x317079([0x63,0x65,0x69,0x6c])](_0x237b17/_0x2b8f78)));window[_0x317079([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317079([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15c682,_0x4ee13b);}function _0x8674b2(){const _0x5a8244=_0x317079([0x6c,0x6c,0x63,0x74,0x2d])+_0x589585(_0x1704d4(_0x4acccd)),_0x9cf74a=window[_0x317079([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317079([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a8244);return _0x9cf74a?window[_0x317079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ace32(_0x9cf74a),0x10)*_0x2b8f78:null;}function _0x413110(_0x449d48){return new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a4e9d,_0x423122)=>{_0x449d48[_0x317079([0x74,0x68,0x65,0x6e])](_0x3a4e9d,_0x423122),window[_0x317079([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423122,0x3ad5dc55^_0x45f9e6);});}}_0x48adfb[_0x317079([0x6f,0x6e])](_0x317079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x482dd8,_0x1ad21c)=>{if(_0x1ad21c[0x0]!=_0x4acccd)return _0x5e6331(_0x317079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ad21c[0x1]={..._0x1ad21c[0x1],[_0x317079([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x433093};},{[_0x317079([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317079([0x68,0x69,0x67,0x68])}),_0x48adfb[_0x317079([0x6f,0x6e])](_0x317079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fb480=>{_0xc880fc(_0x1fb480[_0x317079([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b9a7c=!0x0,_0x2e62fc(_0x1fb480[_0x317079([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317079([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317079([0x6c,0x6f,0x77])}),_0x479169[_0x317079([0x74,0x68,0x65,0x6e])](()=>{_0x4b9a7c||_0x5e6331(_0x317079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x302df(){return _0x48adfb[_0x317079([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317079([0x76,0x69,0x65,0x77])][_0x317079([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317079([0x61,0x75,0x74,0x6f]);}function _0x3906a2(){_0x48adfb[_0x317079([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317079([0x76,0x69,0x65,0x77])][_0x317079([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317079([0x61,0x75,0x74,0x6f]);}}function _0x61c6a2(_0x5b5137){const _0x2cc94f=[new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c404b=>setTimeout(_0x1c404b,0x3add3659^_0x45f9e6)),_0x479169[_0x317079([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2edec0=>{const _0x190407=0x3ad40892^_0x45f9e6,_0x5cc1ee=_0x35a945[_0x317079([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x143f16(){_0x5cc1ee[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x190407&&_0x2edec0();}_0x143f16(),_0x5cc1ee[_0x317079([0x6f,0x6e])](_0x317079([0x61,0x64,0x64]),_0x143f16);})),new window[(_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181237=>{function _0x158cac(){for(const _0x39a604 in window)if(window[_0x317079([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x317079([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x39a604))&&window[_0x39a604]==_0x27e13d)return _0x181237();_0x48adfb[_0x317079([0x73,0x74,0x61,0x74,0x65])]!=_0x317079([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x317079([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x158cac,0x3ad41b1d^_0x45f9e6);}_0x5cc82(_0x317079([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x158cac();})];return window[_0x317079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317079([0x72,0x61,0x63,0x65])](_0x2cc94f)[_0x317079([0x74,0x68,0x65,0x6e])](()=>_0x5b5137);}async function _0x4c87c9(){if(await _0x479169,_0x5cc82(_0x317079([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x59a1aa=_0x35a945[_0x317079([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x144253=_0x35a945[_0x317079([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])](_0x59a1aa[_0x317079([0x69,0x64])]),_0x1bfa93=_0x256b32(_0x317079([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bfa93[_0x317079([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x59a1aa['id'],_0x144253?_0x144253['id']:null,!0x0),_0x1bfa93[_0x317079([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x317079([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bfa93[_0x317079([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bfa93[_0x317079([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x544f43,void(_0x1bfa93[_0x317079([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x544f43);}if(_0x5cc82(_0x317079([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x23aee5=_0x256b32(_0x317079([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x23aee5[_0x317079([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x317079([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23aee5[_0x317079([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23aee5[_0x317079([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x544f43,_0x23aee5[_0x317079([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x544f43;}_0x48adfb[_0x317079([0x6d,0x6f,0x64,0x65,0x6c])][_0x317079([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x544f43,_0x48adfb[_0x317079([0x6d,0x6f,0x64,0x65,0x6c])][_0x317079([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x544f43,_0x48adfb[_0x317079([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317079([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a604e(){return _0x5cc82(_0x317079([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x256b32(_0x317079([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x317079([0x73,0x74,0x61,0x74,0x65])]==_0x317079([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x884586(){return _0x5cc82(_0x317079([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 _0x11bcff(){return _0x5cc82(_0x317079([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fcd6b(_0x2992ed){const _0x2978e0=_0x4b1be9();_0x48adfb[_0x2978e0]=_0x317079([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])+_0x2992ed,_0x2992ed[_0x317079([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x317079([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b1be9()]=_0x27e13d),_0x2992ed!=_0x317079([0x56,0x61,0x6c,0x69,0x64])&&_0x4c87c9();}function _0x4b1be9(){const _0x25f192=window[_0x317079([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317079([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317079([0x6e,0x6f,0x77])]())[_0x317079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317079([0x2e]),'');let _0x3ae976=_0x317079([0x51]);for(let _0xe4d890=0x0;_0xe4d890<_0x25f192[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe4d890+=0x2){let _0x3c81cb=window[_0x317079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f192[_0x317079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4d890,_0xe4d890+0x2));_0x3c81cb>=_0x2e9df8[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c81cb-=_0x2e9df8[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ae976+=_0x2e9df8[_0x3c81cb];}return _0x3ae976;}function _0x2c0d8e(){const _0xf6d8cd=_0x5126d2[_0x317079([0x73,0x70,0x6c,0x69,0x74])](_0x317079([0x2e]));if(0x3!=_0xf6d8cd[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b3b16(_0xf6d8cd[0x1]);function _0x5b3b16(_0x4695ee){const _0x4fb653=_0x31bc99(_0x4695ee);return _0x4fb653&&_0x8812e()?_0x4fb653:null;function _0x8812e(){const _0x570ea5=_0x4fb653[_0x317079([0x6a,0x74,0x69])],_0x2e6351=window[_0x317079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x570ea5[_0x317079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570ea5[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa9dc5e={..._0x4fb653,[_0x317079([0x6a,0x74,0x69])]:_0x570ea5[_0x317079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x570ea5[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa9dc5e[_0x317079([0x76,0x63])],_0x1704d4(_0xa9dc5e)==_0x2e6351;}}}async function _0x27dfb2(){let _0xc0ca62=!0x0;try{const _0x5dc37d=_0x5126d2[_0x317079([0x73,0x70,0x6c,0x69,0x74])](_0x317079([0x2e])),[_0x30ac72,_0x35cd5e,_0x362fc2]=_0x5dc37d;return _0x14df3b(_0x30ac72),await _0x4ff37d(_0x30ac72,_0x35cd5e,_0x362fc2),_0xc0ca62;}catch(_0x59c471){return!0x1;}function _0x14df3b(_0x46a3d0){const _0x502a69=_0x31bc99(_0x46a3d0);_0x502a69&&_0x502a69[_0x317079([0x61,0x6c,0x67])]==_0x317079([0x45,0x53,0x32,0x35,0x36])||(_0xc0ca62=!0x1);}async function _0x4ff37d(_0x4d1843,_0x255539,_0x19aeab){const _0x2a627d=window[_0x317079([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317079([0x66,0x72,0x6f,0x6d])](_0x126af4(_0x19aeab),_0x4e7414=>_0x4e7414[_0x317079([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x96a00d=new window[(_0x317079([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317079([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d1843+_0x317079([0x2e])+_0x255539),_0x1048a8=window[_0x317079([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317079([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1048a8)return;const _0x562cd6=await _0x1048a8[_0x317079([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317079([0x6a,0x77,0x6b]),_0x1ea8e8,{[_0x317079([0x6e,0x61,0x6d,0x65])]:_0x317079([0x45,0x43,0x44,0x53,0x41]),[_0x317079([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317079([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317079([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1048a8[_0x317079([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317079([0x6e,0x61,0x6d,0x65])]:_0x317079([0x45,0x43,0x44,0x53,0x41]),[_0x317079([0x68,0x61,0x73,0x68])]:{[_0x317079([0x6e,0x61,0x6d,0x65])]:_0x317079([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x562cd6,_0x2a627d,_0x96a00d)||(_0xc0ca62=!0x1);}}function _0x31bc99(_0x458946){return _0x458946[_0x317079([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317079([0x65,0x79]))?JSON[_0x317079([0x70,0x61,0x72,0x73,0x65])](_0x126af4(_0x458946)):null;}function _0x126af4(_0x502be7){return window[_0x317079([0x61,0x74,0x6f,0x62])](_0x502be7[_0x317079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317079([0x2b]))[_0x317079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317079([0x2f])));}function _0x1704d4(_0x586359){let _0x3a859d=0x1505;function _0x5a5dff(_0x512da7){for(let _0x447132=0x0;_0x447132<_0x512da7[_0x317079([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x447132++){const _0x5214dd=_0x512da7[_0x317079([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x447132);_0x3a859d=(_0x3a859d<<0x5)+_0x3a859d+_0x5214dd,_0x3a859d&=_0x3a859d;}}function _0x3daa54(_0x68dea7){Array[_0x317079([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x68dea7)?_0x68dea7[_0x317079([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3daa54):_0x68dea7&&typeof _0x68dea7==_0x317079([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317079([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x68dea7)[_0x317079([0x73,0x6f,0x72,0x74])]()[_0x317079([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b047e,_0x9bc38a])=>{_0x5a5dff(_0x4b047e),_0x3daa54(_0x9bc38a);}):_0x5a5dff(window[_0x317079([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x68dea7));}return _0x3daa54(_0x586359),_0x3a859d>>>0x0;}function _0x589585(_0x421417){return _0x421417[_0x317079([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317079([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317079([0x30]));}function _0x2ace32(_0x4f04f5){return _0x4f04f5[_0x317079([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317079([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317079([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cc82(_0x5010e8){return _0x48adfb[_0x317079([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x317079([0x68,0x61,0x73])](_0x5010e8);}function _0x256b32(_0xb155b3){return _0x48adfb[_0x317079([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x317079([0x67,0x65,0x74])](_0xb155b3);}function _0x544f43(){}function _0x317079(_0x550af1){return _0x550af1['map'](_0x2e1b33=>String['fromCharCode'](_0x2e1b33))['join']('');}_0x1fcd6b(await _0x442e35());}(this);}['createRevision'](_0x25dcc6){const _0x1813d4=this['editor']['plugins']['get']('Users');return new h({'id':_0x25dcc6['id'],'name':_0x25dcc6['name'],'creator':_0x25dcc6['creatorId']?_0x1813d4['getUser'](_0x25dcc6['creatorId']):null,'diffData':_0x25dcc6['diffData']||_0x25dcc6['data'],'authors':_0x25dcc6['authorsIds']['map'](_0x3ecc66=>_0x1813d4['getUser'](_0x3ecc66)),'createdAt':new Date(_0x25dcc6['createdAt']),'attributes':_0x25dcc6['attributes'],'fromVersion':_0x25dcc6['fromVersion'],'toVersion':_0x25dcc6['toVersion']});}['addRevision'](_0x197831,_0x3ef246=0x0){this['_revisions']['add'](_0x197831,_0x3ef246);}['getRevision'](_0x99a768){return this['_revisions']['get'](_0x99a768);}['getRevisions'](_0x120234={'toJSON':!0x1}){const _0x56ccaa=Array['from'](this['_revisions']);return _0x56ccaa['reverse'](),_0x120234['toJSON']?_0x56ccaa['map'](_0x24ab22=>_0x24ab22['toJSON']()):_0x56ccaa;}['getIndex'](_0x54c2ae){return this['_revisions']['getIndex'](_0x54c2ae);}['getEarlierVisibleRevision'](_0x245b4f){const [,_0x365784]=this['getRevisionsIterator'](_0x245b4f,{'direction':'earlier'});return _0x365784;}['getLaterVisibleRevision'](_0x29f968){const [,_0x3b36c1]=this['getRevisionsIterator'](_0x29f968,{'direction':'later'});return _0x3b36c1;}['getRevisionsInDiff'](_0x313729){const _0xc70087=[];for(const _0x10e5be of this['getRevisionsIterator'](_0x313729['newRevisionId']))if(_0xc70087['push'](_0x10e5be),_0x10e5be['id']===_0x313729['oldRevisionId'])break;return _0xc70087;}*['getRevisionsIterator'](_0x4709ba,{direction:_0x896ee1='earlier',filter:_0x6a8303=()=>!0x0}={}){const _0x6b1a5f='earlier'===_0x896ee1?0x1:-0x1;let _0x128e63=this['_revisions']['get'](_0x4709ba),_0x194635=this['getIndex'](_0x128e63);for(yield _0x128e63;_0x128e63;){if(_0x194635+=_0x6b1a5f,_0x128e63=this['getRevision'](_0x194635),!_0x128e63)return;_0x6a8303(_0x128e63)&&(yield _0x128e63);}}}function m(_0x3c18df,_0x48502b,_0x42c865){const t=_0x3c18df['t'];switch(_0x48502b){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'},_0x42c865);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x42c865);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x536437,'a':_0x51cef1,'e':_0x5d757a,'r':_0xd3a339,'u':_0x28565d};class u extends _0x118fc5{['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[_0x1120ef,j,_0x16589e];}constructor(_0x3de7c1){super(_0x3de7c1),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 _0x2f1e4f=_0x118080();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f1e4f},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 _0x1735ea=this['repository']['getRevision'](0x0),_0x3e7159=_0x1735ea&&null===_0x1735ea['creator']?_0x1735ea:null;if(this['_continueCurrentRevision']=!!_0x3e7159&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3c4d3f=this['_source']['getCurrentRevisionId'](),_0x285431=this['repository']['getRevision'](_0x3c4d3f);if(_0x285431)this['_startingVersion']=_0x285431['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xca37d6=this['_source']['history']['_operations']['find'](_0x2a7d39=>!_0x2a7d39['_isInit']),_0x32fdcc=_0xca37d6?_0xca37d6['baseVersion']:this['_source']['history']['version'];_0x1735ea?(_0x1735ea['toVersion']<_0x32fdcc&&_0x1735ea['_update']({'toVersion':_0x32fdcc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3e7159['id'],this['_startingVersion']=_0x3e7159['fromVersion']):(this['_startingVersion']=_0x1735ea['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x32fdcc,this['_continueCurrentRevision']=!0x1);}}else _0x3e7159&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3e7159['toVersion'],this['editor']['model']['document']['history']['version']),_0x3e7159['fromVersion']===_0x3e7159['toVersion']?(0x0!==_0x3e7159['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e7159['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e7159['id'],this['_startingVersion']=_0x3e7159['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',_0xdf9c97=>!_0xdf9c97),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ff7ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a92b0;for(const _0x4182bb in _0x2ff7ab){const _0x3182a4=_0x4182bb,_0x144458=_0x2ff7ab[_0x3182a4];if('revisionHistoryLicenseKeyValid'==_0x144458||'revisionHistoryLicenseKeyInvalid'==_0x144458||'revisionHistoryLicenseKeyExpired'==_0x144458||'revisionHistoryLicenseKeyDomainLimit'==_0x144458||'revisionHistoryLicenseKeyNotAllowed'==_0x144458||'revisionHistoryLicenseKeyEvaluationLimit'==_0x144458||'revisionHistoryLicenseKeyTrialLimit'==_0x144458||'revisionHistoryLicenseKeyUsageLimit'==_0x144458){delete _0x2ff7ab[_0x3182a4],_0x5a92b0=_0x144458,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5a92b0&&_0x2ff7ab['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4d1ce5=this['repository']['getRevision'](0x0),_0x170376=await this['getRevisionDocumentData'](_0x4d1ce5),_0x1e65b8=await this['getRevisionRootsAttributes'](_0x4d1ce5);this['_replaceEditorDataWithRevisionData'](_0x170376,_0x1e65b8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4cab4a){this['_source']=_0x4cab4a;}async['update'](){const _0x225ea5=await this['_source']['getLatestVersion']();if(_0x225ea5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x319e56=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x225ea5});_0x319e56['authors']=_0x319e56['authorsIds']['map'](_0xd59e35=>this['editor']['plugins']['get']('Users')['getUser'](_0xd59e35)),this['currentRevision']['_update'](_0x319e56);}}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'](_0x501369={},_0xdeedcc=null){const _0x12bd1e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xdeedcc>this['currentRevision']['toVersion']&&(_0xdeedcc=null),null===_0xdeedcc&&(_0xdeedcc=await this['_source']['getLatestVersion']());const _0x20ceec=this['_getFromVersion'](_0xdeedcc),_0x54fe12=this['buildRevisionData']({'from':_0x20ceec,'to':_0xdeedcc});if(this['currentRevision']['toVersion']<_0xdeedcc){const _0x41b836=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xdeedcc,'to':_0xdeedcc});_0x41b836['authors']=[],_0x41b836['authorsIds']=[],_0x41b836['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x41b836,!0x0),delete _0x41b836['authors'],_0x12bd1e['push'](_0x41b836);}_0x501369['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x501369['name']=_0x501369['name']||null,_0x501369['id']=_0x501369['id']||_0x118080(),_0x501369={..._0x501369,..._0x54fe12};const _0x460e33=this['addRevisionData'](_0x501369);_0x12bd1e['push'](_0x501369);const _0x17aedd=this['repository']['getIndex'](_0x460e33);if(0x0!==_0x17aedd){const _0x6173cc=this['repository']['getRevision'](_0x17aedd-0x1);if(_0x6173cc['fromVersion']!==_0xdeedcc){const _0x2c0035=this['_revisionDataBuilder']['getData'](_0xdeedcc,_0x6173cc['toVersion']),_0x524596={'id':_0x6173cc['id'],'diffData':_0x2c0035['diffData'],'authorsIds':_0x2c0035['authorsIds'],'authors':_0x2c0035['authorsIds']['map'](_0x4a09b5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a09b5)),'fromVersion':_0xdeedcc};_0x6173cc===this['currentRevision']&&(_0x524596['createdAt']=new Date(_0x501369['createdAt']['getTime']()+0xa)),_0x6173cc['_update'](_0x524596,!0x0),delete _0x524596['authors'],_0x12bd1e['push'](_0x524596);}}if(this['adapter']){for(const _0x548cf3 of _0x12bd1e)this['_bufferUpdate'](_0x548cf3['id'],_0x548cf3,!0x0);this['sendBufferedUpdates']();}return _0x460e33;}['addRevisionData'](_0x6b6b1c){const _0x50eb17=this['repository']['createRevision'](_0x6b6b1c);return this['adapter']&&_0x50eb17['on']('_update',(_0x2cf93d,_0x2cee7f,_0x12bf66)=>{_0x12bf66||(this['_bufferUpdate'](_0x2cee7f['id'],_0x2cee7f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x50eb17,this['_findInsertionIndex'](_0x50eb17)),_0x50eb17;}async['getRevisionDocumentData'](_0x29b6be){await this['_loadRevisionData'](_0x29b6be);const _0x4a58a3={};for(const _0x48b351 in _0x29b6be['diffData']){if(_0x29b6be['diffData'][_0x48b351]['attachChange']&&!_0x29b6be['diffData'][_0x48b351]['attachChange']['isAttached'])continue;const _0x3c85cb=this['_removeRevisionMarkers'](JSON['parse'](_0x29b6be['diffData'][_0x48b351]['insertions'])),_0x196b96=this['editor']['editing']['view']['document'],_0x1a2e41=new _0x8157a(_0x196b96,_0x3c85cb['map'](_0x3e6215=>P(_0x3e6215,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4a58a3[_0x48b351]=this['editor']['data']['processor']['toData'](_0x1a2e41),this['editor']['data']['processor']['useFillerType']('default');}return _0x4a58a3;}async['getRevisionRootsAttributes'](_0x4f2fba){await this['_loadRevisionData'](_0x4f2fba);const _0x4cb4be={};for(const _0xed7f02 in _0x4f2fba['diffData'])_0x4f2fba['diffData'][_0xed7f02]['attachChange']&&!_0x4f2fba['diffData'][_0xed7f02]['attachChange']['isAttached']||(_0x4cb4be[_0xed7f02]=_0x4f2fba['diffData'][_0xed7f02]['attributesAfter']||{});return _0x4cb4be;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1661e8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x18c765=0x0;_0x18c765<_0x1661e8['length'];_0x18c765++){const _0x1578cc=_0x1661e8[_0x18c765];let _0x2e0e8e=!0x1;for(const _0x29c1c9 of Object['keys'](_0x1578cc))void 0x0===_0x1578cc[_0x29c1c9]?delete _0x1578cc[_0x29c1c9]:'id'!==_0x29c1c9&&(_0x2e0e8e=!0x0);_0x2e0e8e||(_0x1661e8[_0x18c765]=null);}if(_0x1661e8=_0x1661e8['filter'](_0x546edc=>null!==_0x546edc),!_0x1661e8['length'])return;for(let _0x261aac=0x0;_0x261aac<_0x1661e8['length'];_0x261aac++){const _0x2f894d=_0x1661e8[_0x261aac];void 0x0!==_0x2f894d['fromVersion']&&void 0x0===_0x2f894d['toVersion']&&(_0x2f894d['toVersion']=this['repository']['getRevision'](_0x2f894d['id'])['toVersion']),void 0x0!==_0x2f894d['toVersion']&&void 0x0===_0x2f894d['fromVersion']&&(_0x2f894d['fromVersion']=this['repository']['getRevision'](_0x2f894d['id'])['fromVersion']);}const _0x284030=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1661e8,_0x284030)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d1604=>{if(_0x5d1604){for(const _0x464721 of _0x5d1604)this['setRevisionData']({'id':_0x464721['id'],'createdAt':_0x464721['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xda42c5,_0x3da02b){let _0x41b9c9=this['editor']['config']['get']('initialData'),_0x25246e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x41b9c9){_0x41b9c9={};for(const _0x14fcd5 of this['editor']['model']['document']['getRootNames']())_0x41b9c9[_0x14fcd5]='';}if('string'==typeof _0x41b9c9&&(_0x41b9c9={'main':_0x41b9c9}),void 0x0===_0x25246e){_0x25246e={};for(const _0x4a569e of this['editor']['model']['document']['getRootNames']())_0x25246e[_0x4a569e]={};}let _0x205b7f=!0x1;const _0x566739=Object['keys'](_0x41b9c9),_0x4784f5=Object['keys'](_0xda42c5);for(const _0x4c5965 of _0x566739){if(_0x41b9c9[_0x4c5965]!==_0xda42c5[_0x4c5965]&&''!==_0x41b9c9[_0x4c5965]['trim']()){_0x205b7f=!0x0;break;}if(!_0x1ff0ec(_0x25246e[_0x4c5965],_0x3da02b[_0x4c5965])&&Object['keys'](_0x25246e[_0x4c5965])['length']>0x0){_0x205b7f=!0x0;break;}}_0x205b7f||(_0x205b7f=_0x4784f5['some'](_0x170ef9=>!this['editor']['model']['document']['getRoot'](_0x170ef9))),_0x205b7f&&_0x26aa91('editor-initial-data-replaced-with-revision-data',{'editorData':_0x41b9c9,'editorRootsAttributes':_0x25246e,'revisionData':_0xda42c5,'revisionRootsAttributes':_0x3da02b}),this['editor']['config']['set']('initialData',_0xda42c5),this['editor']['config']['set']('rootsAttributes',_0x3da02b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x434427=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x434427['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x356fdd){const _0x44aa92=this['repository']['getRevisions']();_0x44aa92['reverse']();let _0x1d3c74=0x0;for(;_0x1d3c74<_0x44aa92['length'];){const _0x5ec2ad=_0x44aa92[_0x1d3c74];if(_0x5ec2ad===this['currentRevision']){_0x1d3c74++;continue;}if(_0x5ec2ad['id']===this['_initialRevisionId'])break;const _0x324cd3=_0x356fdd['toVersion']-_0x5ec2ad['toVersion']||_0x356fdd['fromVersion']-_0x5ec2ad['fromVersion'];if(_0x324cd3>0x0)break;if(_0x324cd3<0x0)_0x1d3c74++;else{if(!_0x356fdd['creator']&&_0x5ec2ad['creator'])break;if(_0x5ec2ad['creator']||!_0x356fdd['creator']){if(_0x356fdd['createdAt']>_0x5ec2ad['createdAt'])break;_0x1d3c74++;}else _0x1d3c74++;}}return _0x1d3c74;}['setRevisionData'](_0x4a0856){const _0xc0d4e9=this['repository']['getRevision'](_0x4a0856['id']);if(_0x4a0856['createdAt']&&(_0x4a0856['createdAt']=new Date(_0x4a0856['createdAt'])),_0x4a0856['authorsIds']){const _0x45774a=this['editor']['plugins']['get']('Users');_0x4a0856['authors']=_0x4a0856['authorsIds']['map'](_0x4f196c=>_0x45774a['getUser'](_0x4f196c));}_0xc0d4e9['_update'](_0x4a0856,!0x0);}['buildRevisionData']({revision:_0x205698=null,from:_0x28a4fa=null,to:_0x32bb92=null}){_0x28a4fa=null!==_0x28a4fa?_0x28a4fa:_0x205698['fromVersion'],_0x32bb92=null!==_0x32bb92?_0x32bb92:_0x205698['toVersion'];const _0x32ab34=this['_revisionDataBuilder']['getData'](_0x28a4fa,_0x32bb92),_0x3eef3d={'diffData':_0x32ab34['diffData'],'authorsIds':_0x32ab34['authorsIds'],'fromVersion':_0x28a4fa,'toVersion':_0x32bb92};if(!_0x205698||_0x32bb92!==_0x205698['toVersion']){const _0x3fa9e3=_0x32bb92-0x1,_0x18cd12=this['_source']['history']['getOperation'](_0x3fa9e3);_0x3eef3d['createdAt']=_0x18cd12&&_0x18cd12['createdAt']||new Date();}if(this['_loadedStateData']&&_0x28a4fa===this['_loadedStateData']['fromVersion']){for(const _0x18491d of this['_loadedStateData']['authors'])_0x3eef3d['authorsIds']['includes'](_0x18491d['id'])||_0x3eef3d['authorsIds']['push'](_0x18491d['id']);}return _0x3eef3d;}['_loadRevisionData'](_0x447078){if(!_0x447078||_0x447078['diffData'])return Promise['resolve']();{const _0x2d2468=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2d2468,'revisionId':_0x447078['id']})['then'](_0x1adf9e=>{_0x447078['diffData']=_0x1adf9e['diffData'];});}}['_bufferUpdate'](_0x556675,_0x12d278,_0x286454){if(this['_bufferedUpdates']['has'](_0x556675)){const _0x2d4aff=this['_bufferedUpdates']['get'](_0x556675);_0x12d278=_0x286454?{..._0x2d4aff,..._0x12d278}:{..._0x12d278,..._0x2d4aff};}this['_bufferedUpdates']['set'](_0x556675,_0x12d278);}['_getFromVersion'](_0x154df2){const _0x533df2=this['repository']['getRevisions']();_0x533df2['reverse'](),_0x533df2['shift']();const _0x5dfabf=_0x533df2['find'](_0x5286e4=>_0x5286e4['toVersion']<=_0x154df2)['toVersion'];return _0x5dfabf<this['_startingVersion']?this['_startingVersion']:_0x5dfabf;}['_createInitialRevision'](_0x2a7456){const _0x2b2e88=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2b2e88)this['_initialRevisionId']=_0x2b2e88['id'];else{const _0x4f4d57=!this['editor']['model']['document']['roots']['find'](_0x4fcef4=>this['editor']['model']['hasContent'](_0x4fcef4)),_0x557fb3=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e6fd1=m(this['editor']['locale'],_0x4f4d57?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2a7456,'to':_0x2a7456,'id':this['_initialRevisionId'],'name':_0x1e6fd1,'creatorId':_0x557fb3});}}['_createCurrentRevision'](_0x12b8eb){const _0x472875=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x472875),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x12b8eb,'to':_0x12b8eb,'id':_0x472875,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4e530c,from:_0x509135,to:_0x38dbe8,creatorId:_0x25b031,id:_0x1a97ce}){const _0x2a8784=this['buildRevisionData']({'from':_0x509135,'to':_0x38dbe8});_0x2a8784['name']=_0x4e530c,_0x2a8784['creatorId']=_0x25b031,_0x2a8784['id']=_0x1a97ce;const _0x5afd74=this['addRevisionData'](_0x2a8784);return this['adapter']&&this['_bufferUpdate'](_0x2a8784['id'],_0x2a8784,!0x0),_0x5afd74;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33166f){return(_0x33166f=_0x33166f['filter'](_0x1fcaed=>!_0x1fcaed['name']||'revision-start'!==_0x1fcaed['name']&&'revision-end'!==_0x1fcaed['name']))['forEach'](_0x18bc62=>{'string'!=typeof _0x18bc62&&(_0x18bc62['children']=this['_removeRevisionMarkers'](_0x18bc62['children']),_0x18bc62['attributes']=_0x18bc62['attributes']['filter'](_0x49331e=>!_0x49331e[0x0]['startsWith']('data-revision-')));}),_0x33166f;}}function P(_0xe1d08b,_0x15718e){const _0x1d4678=_0x15718e['editing']['view']['document'];if('string'==typeof _0xe1d08b)return new _0x1b404c(_0x1d4678,_0xe1d08b);{const _0x392fd8=_0xe1d08b['children']['map'](_0x59607f=>P(_0x59607f,_0x15718e));return new(E[_0xe1d08b['type']]||_0x34db6a)(_0x1d4678,_0xe1d08b['name'],_0xe1d08b['attributes'],_0x392fd8);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3ce964){this['editor']=_0x3ce964,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'](_0xa3d850){this['source']=_0xa3d850;const _0x4af3ea=new Map(),_0x18b321=new Map(),_0x4d75ef=this['editor']['model']['document']['roots']['map'](_0x2e9d19=>_0x2e9d19['rootName']);for(const _0x59d823 of _0x4d75ef){const _0x261a84=this['editor']['model']['document']['getRoot'](_0x59d823),_0x45b33b=T(_0x261a84);_0x4af3ea['set'](_0x59d823,_0x45b33b),_0x18b321['set'](_0x59d823,Object['fromEntries'](_0x261a84['getAttributes']()));}const _0x3c67db=Array['from'](this['editor']['model']['markers'])['map'](_0xb95078=>[_0xb95078['name'],_0xb95078['getRange']()]),_0x326cd5=this['source']['version'];this['_saveMetaData'](_0x326cd5,_0x4af3ea,_0x3c67db,_0x18b321),this['_startingRevisionId']=this['_revisionId'];const _0x2856b4=new Map(),_0x2604bf=new Map();for(const _0x3f9cad of _0x4d75ef){const _0x522608=F(_0x3f9cad);_0x2856b4['set'](_0x3f9cad,_0x522608),_0x2604bf['set'](_0x3f9cad,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2856b4,[],_0x2604bf);}['getData'](_0x8cde68,_0x214c4a){if(this['_lastFrom']===_0x8cde68&&this['_lastTo']<=_0x214c4a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x214c4a,!0x0);else{if(!this['_savedMetaData']['has'](_0x8cde68)){const _0x123c8b=this['_getPreviousFrom'](_0x8cde68);this['_calculateMetaData'](_0x123c8b,_0x8cde68,!0x1);}this['_calculateMetaData'](_0x8cde68,_0x214c4a,!0x0);}return this['_lastFrom']=_0x8cde68,this['_lastTo']=_0x214c4a,this['_getState']();}['loadState'](_0x14a34f){this['_reset'](),this['_lastFrom']=_0x14a34f['fromVersion'],this['_lastTo']=_0x14a34f['toVersion'];for(const _0x1a02b1 in _0x14a34f['diffData']){const _0x434401=_0x14a34f['diffData'][_0x1a02b1]['attachChange'],_0x112be4=_0x127b89(_0x14a34f['diffData'][_0x1a02b1]['attributesBefore'])||{},_0x2a0f7c=this['_makeModelFromViewString'](_0x14a34f['diffData'][_0x1a02b1]['deletions']);_0x2a0f7c['rootName']=_0x1a02b1,_0x2a0f7c['_isAttached']=!_0x434401||!_0x434401['isAttached'],_0x2a0f7c['isAttached']=()=>_0x2a0f7c['_isAttached'],this['_baseRoots']['set'](_0x1a02b1,_0x2a0f7c),this['_baseRootsAttributes']['set'](_0x1a02b1,_0x112be4),_0x434401&&this['_touchedRoots']['set'](_0x1a02b1,_0x434401);const _0x4a2fce=this['_makeIdsRoot'](_0x2a0f7c);this['_baseIdsRoots']['set'](_0x1a02b1,_0x4a2fce);for(const [_0x171399,_0x19e85c]of _0x2a0f7c['markers']){if(!_0x171399['startsWith']('revision:'))continue;const _0x12a81e=_0x171399['split'](':')[0x2];for(const _0x2db0e0 of _0x19e85c['getWalker']({'singleCharacters':!0x0})){const _0x39ccc4=this['_getVidAttributeName'](_0x2db0e0),_0x5a6d43='elementEnd'==_0x2db0e0['type']?_0x2db0e0['previousPosition']['path']['slice'](0x0,-0x1):_0x2db0e0['previousPosition']['path'],_0x2e2baf=_0x4a2fce['getNodeByPath'](_0x5a6d43)['getAttribute'](_0x39ccc4);this['_touched']['set'](_0x2e2baf,{'userId':_0x12a81e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x42e872=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x53d9f3=>!this['_touched']['has'](_0x53d9f3));let _0x277f0a=0x0;const _0x1c67a5=new Map();for(const _0x593aff in _0x14a34f['diffData']){const _0x5b7682=_0x14a34f['diffData'][_0x593aff]['attachChange'],_0xcda059=_0x127b89(_0x14a34f['diffData'][_0x593aff]['attributesAfter'])||{},_0x349c01=this['_makeModelFromViewString'](_0x14a34f['diffData'][_0x593aff]['insertions']);_0x349c01['rootName']=_0x593aff,_0x349c01['_isAttached']=!_0x5b7682||_0x5b7682['isAttached'],_0x349c01['isAttached']=()=>_0x349c01['_isAttached'],this['_diffRoots']['set'](_0x593aff,_0x349c01),this['_diffRootsAttributes']['set'](_0x593aff,_0xcda059);const _0x344c45=this['_makeIdsRoot'](_0x349c01,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x593aff,_0x344c45),_0x1c67a5['set'](_0x593aff,_0x349c01['isAttached']()?_0xcda059:{});for(const [_0x356b78,_0x576fcc]of _0x349c01['markers']){if(!_0x356b78['startsWith']('revision:'))continue;const _0x3f65b3=_0x356b78['split'](':')[0x2];for(const _0x5313bb of _0x576fcc['getWalker']({'singleCharacters':!0x0})){const _0x160790=this['_getVidAttributeName'](_0x5313bb),_0x388a53=this['_revisionId']++,_0x480ae1='elementEnd'==_0x5313bb['type']?_0x5313bb['previousPosition']['path']['slice'](0x0,-0x1):_0x5313bb['previousPosition']['path'];_0x344c45['getNodeByPath'](_0x480ae1)['_setAttribute'](_0x160790,_0x388a53),this['_touched']['set'](_0x388a53,{'userId':_0x3f65b3});}}for(const _0x4a231a of this['editor']['model']['createRangeIn'](_0x349c01)['getWalker']({'singleCharacters':!0x0})){const _0x43d8d7=this['_getVidAttributeName'](_0x4a231a),_0x41ac82='elementEnd'==_0x4a231a['type']?_0x4a231a['previousPosition']['path']['slice'](0x0,-0x1):_0x4a231a['previousPosition']['path'],_0xd6b561=_0x344c45['getNodeByPath'](_0x41ac82);_0xd6b561['getAttribute'](_0x43d8d7)>0x0||_0xd6b561['_setAttribute'](_0x43d8d7,_0x42e872[_0x277f0a++]);}for(const [_0x47b1e5,_0xf7dfdf]of _0x349c01['markers'])_0x47b1e5['startsWith']('revision:')||this['_markers']['set'](_0x47b1e5,_0xf7dfdf);}const _0x34d056=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x34d056),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x34d056,0x1));const _0x5f0f17=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5f0f17),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f0f17,0x1));const _0x4fc82d=Array['from'](this['_diffRoots'])['map'](([_0x24a1a9,_0x368275])=>[_0x24a1a9,T(_0x368275)]);this['_saveMetaData'](this['_lastTo'],_0x4fc82d,this['_markers'],_0x1c67a5);}['_makeModelFromViewString'](_0x2d2d87){const _0xe0e642=JSON['parse'](_0x2d2d87),_0x213f83=this['editor']['editing']['view']['document'],_0x34efc5=new _0x8157a(_0x213f83,_0xe0e642['map'](_0x5d513c=>P(_0x5d513c,this['editor'])));return this['editor']['data']['toModel'](_0x34efc5);}['_saveMetaData'](_0x3994ad,_0x484ace,_0x37df11,_0x16ee3a){const _0x2daf0a=new Map(_0x484ace),_0x4e01d8=new Map(_0x127b89(_0x16ee3a)),_0x121ba3=new Map();for(const [_0x1ded2e,_0x43fd44]of _0x37df11)_0x121ba3['set'](_0x1ded2e,{'start':_0x43fd44['start']['clone'](),'end':_0x43fd44['end']['clone'](),'rootName':_0x43fd44['root']['rootName']});this['_savedMetaData']['set'](_0x3994ad,{'roots':_0x2daf0a,'markers':_0x121ba3,'rootsAttributes':_0x4e01d8});}['_removeMetaData'](_0x59a34b){this['_savedMetaData']['delete'](_0x59a34b);}['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'](_0x181543,_0x5c514a=null){let _0x1bb99a=null;_0x181543['is']('documentFragment')||(_0x1bb99a=new ut(_0x181543['name'],{'vid_start':null===_0x5c514a?this['_revisionId']++:_0x5c514a++}));const _0xb81981=[];for(const _0x5556bd of _0x181543['getChildren']())if(_0x5556bd['is']('element')){_0xb81981['push'](this['_makeIdsRoot'](_0x5556bd,_0x5c514a));const _0x57948a=_0xb81981[_0xb81981['length']-0x1];null!==_0x5c514a&&(_0x5c514a=_0x57948a['is']('element','$text')?_0x57948a['getAttribute']('vid')+0x1:_0x57948a['getAttribute']('vid_end')+0x1);}else{for(let _0x5b8960=0x0;_0x5b8960<_0x5556bd['offsetSize'];_0x5b8960++)_0xb81981['push'](new ut('$text',{'vid':null===_0x5c514a?this['_revisionId']++:_0x5c514a++}));}if(_0x181543['is']('documentFragment')){const _0x7f925c=F(_0x181543['rootName']);return _0x7f925c['_insertChild'](0x0,_0xb81981),_0x7f925c;}return _0x1bb99a['_setAttribute']('vid_end',null===_0x5c514a?this['_revisionId']++:_0x5c514a++),_0x1bb99a['_insertChild'](0x0,_0xb81981),_0x1bb99a;}['_calculateMetaData'](_0x4f5e18,_0x27a73e,_0x3bca20){this['_reset']();const {roots:_0x4241b0,markers:_0x8e72e3,rootsAttributes:_0x1a9c89}=this['_savedMetaData']['get'](_0x4f5e18);this['_baseRoots']=new Map(_0x4241b0),this['_baseRootsAttributes']=new Map(_0x127b89(_0x1a9c89));for(const [_0x4fba9d,_0x4e8866]of this['_baseRoots'])if('$graveyard'!==_0x4fba9d&&(this['_diffRoots']['set'](_0x4fba9d,T(_0x4e8866)),this['_diffRootsAttributes']=new Map(_0x127b89(_0x1a9c89)),_0x3bca20)){const _0xaaa154=this['_revisionId'];this['_idsRoots']['set'](_0x4fba9d,this['_makeIdsRoot'](_0x4e8866)),this['_baseIdsRoots']['set'](_0x4fba9d,this['_makeIdsRoot'](_0x4e8866,_0xaaa154));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3bca20&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1905ad,_0x36bb07]of _0x8e72e3){const _0x371794=this['_baseRoots']['get'](_0x36bb07['rootName']),_0x26061a=this['_diffRoots']['get'](_0x36bb07['rootName']),_0x35a758=new ft(this['_fixPosition'](_0x36bb07['start'],_0x371794),this['_fixPosition'](_0x36bb07['end'],_0x371794)),_0x45f832=this['_fixRange'](_0x35a758,_0x26061a);_0x371794['markers']['set'](_0x1905ad,_0x35a758),this['_markers']['set'](_0x1905ad,_0x45f832);}this['_applyOperations'](_0x4f5e18,_0x27a73e,_0x3bca20);}['_applyOperations'](_0x2f22ab,_0x2b5374,_0x23fb2b){for(const _0x396fcc of this['source']['getOperations'](_0x2f22ab,_0x2b5374))this['_handleOperation'](_0x396fcc,_0x23fb2b);for(const _0xb3f60c of this['_diffRoots']['values']())_0xb3f60c['markers']['clear']();for(const [_0x58eadb,_0x21b810]of this['_markers']){this['_diffRoots']['get'](_0x21b810['root']['rootName'])['markers']['set'](_0x58eadb,_0x21b810['clone']());}const _0x3bc12a=new Map(),_0x3e7358=new Map();for(const [_0x37d93d,_0x2307fd]of this['_diffRoots'])_0x3bc12a['set'](_0x37d93d,T(_0x2307fd)),_0x3e7358['set'](_0x37d93d,this['_diffRootsAttributes']['get'](_0x37d93d));this['_saveMetaData'](_0x2b5374,_0x3bc12a,this['_markers'],_0x3e7358);}['_getPreviousFrom'](_0x5d4dd9){const _0x588cdd=Array['from'](this['_savedMetaData']['keys']());_0x588cdd['sort']((_0x33619d,_0x1379fd)=>_0x33619d-_0x1379fd),_0x588cdd['reverse']();for(const _0x56ec47 of _0x588cdd)if(_0x56ec47<_0x5d4dd9)return _0x56ec47;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x209665,_0x5e050f){const _0x5bc9a2=Array['from'](_0x5e050f['markers'])['map'](([_0x24202f,_0x1405e5])=>[_0x24202f,this['_fixRange'](_0x1405e5,_0x209665)]);_0x209665['markers']=new Map(_0x5bc9a2);}['_transformMarkers'](_0x581037){for(const _0x36e6cf of this['_markers']['values']()){const _0x431870=_0x36e6cf['getTransformedByOperation'](_0x581037),_0x20583d=ft['_createFromRanges'](_0x431870);_0x36e6cf['start']=_0x20583d['start'],_0x36e6cf['end']=_0x20583d['end'];}}['_handleOperation'](_0x4fa64e,_0xb4970f){if('addRoot'!=_0x4fa64e['type']&&'detachRoot'!=_0x4fa64e['type']){if('insert'==_0x4fa64e['type']){const _0x24da00=_0x4fa64e['position']['root']['rootName'];this['_diffRoots']['has'](_0x24da00)||(this['_diffRoots']['set'](_0x24da00,F(_0x24da00,!0x0)),this['_diffRootsAttributes']['set'](_0x24da00,{}),_0xb4970f&&this['_idsRoots']['set'](_0x24da00,F(_0x24da00,!0x0)));}else{if('addRootAttribute'==_0x4fa64e['type']||'removeRootAttribute'==_0x4fa64e['type']||'changeRootAttribute'==_0x4fa64e['type'])return void this['_handleRootAttributeOperation'](_0x4fa64e);'marker'==_0x4fa64e['type']&&this['_handleMarkerOperation'](_0x4fa64e);}if('marker'!==_0x4fa64e['type']){const _0x53d684=this['_cloneOperation'](_0x4fa64e,this['_diffRoots']);_0x53d684['_execute'](),this['_transformMarkers'](_0x53d684);}if(_0xb4970f)switch(_0x4fa64e['type']){case'insert':this['_handleInsertOperation'](_0x4fa64e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4fa64e);break;case'merge':this['_handleMergeOperation'](_0x4fa64e);break;case'split':this['_handleSplitOperation'](_0x4fa64e);}}else this['_handleRootOperation'](_0x4fa64e,_0xb4970f);}['_cloneOperation'](_0x3bb9e8,_0x3b9945){const _0xf67592=_0x3bb9e8['clone']();return _0xf67592['_authorId']=_0x3bb9e8['_authorId'],this['_fixOperation'](_0xf67592,_0x3b9945),_0xf67592;}['_getBaseVids'](_0x336333){return _0x336333['map'](_0xa80f96=>{const _0x308327=this['_getVidAttributeName'](_0xa80f96);return Number(_0xa80f96['item']['getAttribute'](_0x308327));});}['_generateTape'](_0x57d4dc,_0x1d274d){if(_0x57d4dc['is']('element','$text'))_0x1d274d['push']({'item':_0x57d4dc,'type':'text'});else{_0x57d4dc['is']('element')&&_0x1d274d['push']({'item':_0x57d4dc,'type':'elementStart'});for(const _0x2acfa0 of _0x57d4dc['getChildren']())this['_generateTape'](_0x2acfa0,_0x1d274d);_0x57d4dc['is']('element')&&_0x1d274d['push']({'item':_0x57d4dc,'type':'elementEnd'});}return _0x1d274d;}['_getState'](){const _0x522624=new Map(this['_touched']),_0x32140e=new Map(_0x522624),_0x5be447=new Map(),_0x3b3eea={'insertions':{},'deletions':{}},_0x3db275={'insertions':{},'deletions':{}},_0x1b9ab1=new Map(),_0x2a4d01=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2a4d01['delete']('$graveyard');for(const _0x3f0058 of _0x2a4d01){const _0x13f0ac=this['_diffRoots']['get'](_0x3f0058)||F(_0x3f0058,!0x1),_0x429b45=this['_baseRoots']['get'](_0x3f0058)||F(_0x3f0058,!0x1);_0x13f0ac['isAttached']()||_0x429b45['isAttached']()?(_0x3b3eea['insertions'][_0x3f0058]=T(_0x13f0ac),_0x3b3eea['deletions'][_0x3f0058]=T(_0x429b45),this['_copyMarkers'](_0x3b3eea['deletions'][_0x3f0058],_0x429b45),this['_copyMarkers'](_0x3b3eea['insertions'][_0x3f0058],_0x13f0ac),_0x3db275['insertions'][_0x3f0058]=this['_generateTape'](this['_idsRoots']['get'](_0x3f0058),[]),_0x3db275['deletions'][_0x3f0058]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3f0058)||F(_0x3f0058,!0x1),[])):_0x2a4d01['delete'](_0x3f0058);}for(const _0x409610 of _0x2a4d01){const _0x30bfb8=_0x3db275['insertions'][_0x409610];for(const _0x257fab of _0x30bfb8){const _0x234371=this['_getVidAttributeName'](_0x257fab),_0x4ca88d=_0x257fab['item']['getAttribute'](_0x234371);_0x32140e['delete'](_0x4ca88d),_0x4ca88d>=this['_startingRevisionId']&&_0x5be447['set'](_0x4ca88d,_0x522624['get'](_0x4ca88d));}}for(const _0x39eba6 of _0x2a4d01){const _0xf016a1=_0x3db275['insertions'][_0x39eba6],_0x4b7b6e=this['_getBaseVids'](_0x3db275['deletions'][_0x39eba6]);let _0x15f395=0x0;for(const _0x370b7f of _0xf016a1){const _0x4e44b3=this['_getVidAttributeName'](_0x370b7f),_0x1f98ca=_0x370b7f['item']['getAttribute'](_0x4e44b3);if(!_0x5be447['has'](_0x1f98ca)&&!_0x1b9ab1['has'](_0x1f98ca)){if(_0x32140e['has'](_0x1f98ca))_0x15f395++;else{if(_0x1f98ca!=_0x4b7b6e[_0x15f395]){const _0x22cd0b=_0x522624['get'](_0x1f98ca)||_0x522624['get'](_0x4b7b6e[_0x15f395]);for(;_0x1f98ca!=_0x4b7b6e[_0x15f395];)_0x32140e['has'](_0x4b7b6e[_0x15f395])||(_0x1b9ab1['set'](_0x4b7b6e[_0x15f395],_0x22cd0b),_0x522624['set'](_0x4b7b6e[_0x15f395],_0x22cd0b)),_0x15f395++;}_0x15f395++;}}}}for(const _0x42a79c of _0x2a4d01){const _0x59baa0=_0x3db275['insertions'][_0x42a79c];for(const _0x37fe81 of _0x59baa0){const _0x43cb63=this['_getVidAttributeName'](_0x37fe81),_0x55c7c4=_0x37fe81['item']['getAttribute'](_0x43cb63);if(_0x1b9ab1['has'](_0x55c7c4)){const _0x19407c=_0x1b9ab1['get'](_0x55c7c4);_0x32140e['has'](_0x55c7c4)||_0x32140e['set'](_0x55c7c4,{..._0x19407c}),_0x5be447['set'](_0x55c7c4,{..._0x19407c});}}}for(const _0x45f97f of _0x32140e['keys']())_0x45f97f>=this['_startingRevisionId']&&_0x32140e['delete'](_0x45f97f);const _0x57d719=new Map();for(const _0x4a6d08 of _0x2a4d01){let _0x1ba377=_0x3db275['insertions'][_0x4a6d08];for(const _0x1f0bca of _0x1ba377)if(_0x1f0bca['item']['is']('element','tableCell')){const _0x2e73a4=this['_getVidAttributeName'](_0x1f0bca),_0x4f0c4f=_0x1f0bca['item']['getAttribute'](_0x2e73a4);if(_0x5be447['has'](_0x4f0c4f)){const _0x3c7e0b=_0x1f0bca['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a15b7=_0x57d719['get'](_0x3c7e0b)||new Set();_0x1a15b7['add'](_0x5be447['get'](_0x4f0c4f)['userId']),_0x57d719['set'](_0x3c7e0b,_0x1a15b7);}}_0x1ba377=_0x3db275['deletions'][_0x4a6d08];for(const _0x14c6d6 of _0x1ba377)if(_0x14c6d6['item']['is']('element','tableCell')){const _0x5f303b=this['_getVidAttributeName'](_0x14c6d6),_0x7f44f=_0x14c6d6['item']['getAttribute'](_0x5f303b);if(_0x32140e['has'](_0x7f44f)){const _0x533a4a=_0x14c6d6['item']['parent']['parent']['getAttribute']('vid_start'),_0x30bba0=_0x57d719['get'](_0x533a4a)||new Set();_0x30bba0['add'](_0x32140e['get'](_0x7f44f)['userId']),_0x57d719['set'](_0x533a4a,_0x30bba0);}}for(const _0x4f9969 of _0x57d719['keys']())(_0x5be447['has'](_0x4f9969)||_0x32140e['has'](_0x4f9969))&&_0x57d719['delete'](_0x4f9969);}for(const _0x390e82 of _0x2a4d01){const _0x568e21=_0x3db275['insertions'][_0x390e82];let _0x3d5689=null,_0x51ad42=null;for(const _0x2e2720 of _0x568e21){const _0x469a02=this['_getVidAttributeName'](_0x2e2720),_0x314a72=_0x2e2720['item']['getAttribute'](_0x469a02),_0x27306f=_0x57d719['get'](_0x314a72);_0x27306f&&'elementStart'==_0x2e2720['type']&&(_0x3d5689=Array['from'](_0x27306f)[0x0],_0x51ad42=_0x2e2720['item']['getAttribute']('vid_end')),_0x3d5689&&(_0x32140e['set'](_0x314a72,{'userId':_0x3d5689}),_0x5be447['set'](_0x314a72,{'userId':_0x3d5689})),_0x314a72==_0x51ad42&&(_0x3d5689=null,_0x51ad42=null);}}const _0x9d81c9={},_0x2ef3e1=new Set();for(const _0x534f57 of _0x2a4d01){const _0x4b6cc3=_0x3b3eea['deletions'][_0x534f57],_0x46960d=_0x3b3eea['insertions'][_0x534f57];for(const {userId:_0x434fad}of this['_touchedMarkers']['values']())null!==_0x434fad&&_0x2ef3e1['add'](_0x434fad);for(const {userId:_0x1cf523}of this['_touchedRoots']['values']())null!==_0x1cf523&&_0x2ef3e1['add'](_0x1cf523);this['_markChanges'](_0x46960d,_0x3db275['insertions'][_0x534f57],_0x5be447,'insertion',_0x2ef3e1),this['_markChanges'](_0x4b6cc3,_0x3db275['deletions'][_0x534f57],_0x32140e,'deletion',_0x2ef3e1),_0x9d81c9[_0x534f57]={'insertions':this['_prepareViewToSave'](_0x46960d),'deletions':this['_prepareViewToSave'](_0x4b6cc3),'attachChange':this['_touchedRoots']['get'](_0x534f57)||null,'attributesBefore':_0x127b89(this['_baseRootsAttributes']['get'](_0x534f57))||{},'attributesAfter':_0x127b89(this['_diffRootsAttributes']['get'](_0x534f57))};}return{'diffData':_0x9d81c9,'authorsIds':Array['from'](_0x2ef3e1)};}['_processRootBeforeSave'](_0x43c534){for(const [,_0x1632e9]of _0x43c534['markers']){const _0x1f9ba7=_0x1632e9['start']['getAncestors']()['filter'](_0x11da11=>'tableCell'==_0x11da11['name']);for(const _0x1ebcef of _0x1f9ba7)0x1==_0x1ebcef['childCount']&&_0x1ebcef['getChild'](0x0)['is']('element','paragraph')&&_0x1ebcef['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x274fe4){this['_processRootBeforeSave'](_0x274fe4);const _0x19e4ea=this['editor']['data']['toView'](_0x274fe4,{}),_0x135d24=Array['from'](_0x19e4ea['getChildren']())['map'](_0x10269c=>this['_getViewJson'](_0x10269c));return JSON['stringify'](_0x135d24);}['_getViewJson'](_0x31071d){if(_0x31071d['is']('$text'))return _0x31071d['data'];{const _0x561fa0=_0x31071d;return{'type':Object['keys'](E)['find'](_0x254bec=>_0x31071d instanceof E[_0x254bec]),'name':_0x561fa0['name'],'attributes':Array['from'](_0x561fa0['getAttributes']()),'children':Array['from'](_0x561fa0['getChildren']())['map'](_0x3a9898=>this['_getViewJson'](_0x3a9898))};}}['_markChanges'](_0x1b04a5,_0x25c8f7,_0x447e8e,_0x3fc7ed,_0xe6da8d){let _0x57da1f=null,_0x145da8=null,_0x39994a=0x0;const _0x5d402e=this['editor']['model'];for(let _0x3b6ca7=0x0;_0x3b6ca7<_0x25c8f7['length'];_0x3b6ca7++){const _0xd6c845=this['_getVidAttributeName'](_0x25c8f7[_0x3b6ca7]),_0x5865ce=_0x25c8f7[_0x3b6ca7]['item']['getAttribute'](_0xd6c845),_0x2c4b2c=_0x447e8e['get'](_0x5865ce),_0x398490=_0x3b6ca7==_0x25c8f7['length']-0x1;(!_0x57da1f&&_0x2c4b2c&&(_0x57da1f=_0x2c4b2c,_0x145da8=_0x25c8f7[_0x3b6ca7]),_0x57da1f&&(!_0x2c4b2c||_0x2c4b2c['userId']!=_0x57da1f['userId']))&&(_0x477485(_0x2c4b2c,B(_0x145da8,_0x1b04a5,_0x5d402e),B(_0x25c8f7[_0x3b6ca7],_0x1b04a5,_0x5d402e)),_0x57da1f=_0x2c4b2c||null,_0x145da8=_0x2c4b2c?_0x25c8f7[_0x3b6ca7]:null),_0x57da1f&&_0x398490&&_0x477485(_0x2c4b2c,B(_0x145da8,_0x1b04a5,_0x5d402e),J(_0x25c8f7[_0x3b6ca7],_0x1b04a5,_0x5d402e));}function _0x477485(_0x2e0bdf,_0x3cb92d,_0x34c80d){const _0x84d81=_0x57da1f['userId'],_0x5ba24c='revision:'+_0x3fc7ed+':'+_0x84d81+':'+_0x39994a++,_0x33685d=_0x5d402e['createRange'](_0x3cb92d,_0x34c80d);_0x1b04a5['markers']['set'](_0x5ba24c,_0x33685d),null!==_0x84d81&&_0xe6da8d['add'](_0x84d81);}}['_getVidAttributeName'](_0x12f727){switch(_0x12f727['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x139156,_0x33424c){_0x139156['baseVersion']=null;for(const _0x37a644 in _0x139156){const _0x4bbcd1=_0x139156[_0x37a644];if(_0x4bbcd1 instanceof vt){const _0x302a84=_0x33424c['get'](_0x4bbcd1['root']['rootName']);_0x139156[_0x37a644]=this['_fixPosition'](_0x4bbcd1,_0x302a84);}if(_0x4bbcd1 instanceof ft){const _0x16357c=_0x33424c['get'](_0x4bbcd1['root']['rootName']);_0x139156[_0x37a644]=this['_fixRange'](_0x4bbcd1,_0x16357c);}'root'===_0x37a644&&(_0x139156['root']=_0x33424c['get'](_0x139156['root']['rootName']));}}['_fixRange'](_0x4d2a8b,_0x53e292){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4d2a8b['start'],_0x53e292),this['_fixPosition'](_0x4d2a8b['end'],_0x53e292));}['_fixPosition'](_0x20e996,_0x4ab0bb){return this['editor']['model']['createPositionFromPath'](_0x4ab0bb,_0x20e996['path'],_0x20e996['stickiness']);}['_handleInsertOperation'](_0x587d87){const _0x1c3e45=this['_idsRoots']['get'](_0x587d87['position']['root']['rootName']),_0x4f2e3d=this['_fixPosition'](_0x587d87['position'],_0x1c3e45),_0x4d5ff4=null===_0x587d87['_authorId']?null:_0x587d87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3779d5=_0x4f2e3d['parent'],_0x363fe2=this['_revisionId'],_0x1b98f1=[];for(const _0x38e8cc of _0x587d87['nodes'])if(_0x38e8cc['is']('element'))_0x1b98f1['push'](this['_makeIdsRoot'](_0x38e8cc));else{for(let _0x13637f=0x0;_0x13637f<_0x38e8cc['offsetSize'];_0x13637f++)_0x1b98f1['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xb3d7fd=this['_revisionId'];for(let _0x533051=_0x363fe2;_0x533051<_0xb3d7fd;_0x533051++)this['_touched']['set'](_0x533051,{'userId':_0x4d5ff4});_0x3779d5['_insertChild'](_0x4f2e3d['offset'],_0x1b98f1);}['_handleMoveOperation'](_0x6c2c0d){(_0x6c2c0d=this['_cloneOperation'](_0x6c2c0d,this['_idsRoots']))['_execute']();const _0x422baf=null===_0x6c2c0d['_authorId']?null:_0x6c2c0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37af31=_0x6c2c0d['getMovedRangeStart'](),_0x3eff40=_0x37af31['parent'],_0x33d9fe=_0x37af31['offset'];!function _0x51a11d(_0x4bce6d,_0x298fd9,_0x16015b,_0x22245c){for(let _0x2c99d1=_0x16015b;_0x2c99d1<_0x22245c;_0x2c99d1++){const _0x5216c7=_0x298fd9['getChild'](_0x2c99d1);_0x5216c7['is']('element','$text')?_0x4bce6d['set'](_0x5216c7['getAttribute']('vid'),{'userId':_0x422baf}):(_0x4bce6d['set'](_0x5216c7['getAttribute']('vid_start'),{'userId':_0x422baf}),_0x51a11d(_0x4bce6d,_0x5216c7,0x0,_0x5216c7['childCount']),_0x4bce6d['set'](_0x5216c7['getAttribute']('vid_end'),{'userId':_0x422baf}));}}(this['_touched'],_0x3eff40,_0x33d9fe,_0x33d9fe+_0x6c2c0d['howMany']);}['_handleMergeOperation'](_0x32d846){const _0x587368=null===(_0x32d846=this['_cloneOperation'](_0x32d846,this['_idsRoots']))['_authorId']?null:_0x32d846['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16e719=_0x32d846['targetPosition']['parent'],_0x2ae087=_0x32d846['sourcePosition']['parent'],_0x206ecb=_0x16e719['getAttribute']('vid_end'),_0x59d00b=_0x2ae087['getAttribute']('vid_start');_0x16e719['_setAttribute']('vid_end',_0x2ae087['getAttribute']('vid_end')),_0x2ae087['_setAttribute']('vid_end',_0x206ecb),this['_touched']['set'](_0x59d00b,{'userId':_0x587368}),this['_touched']['set'](_0x206ecb,{'userId':_0x587368}),_0x32d846['_execute']();}['_handleSplitOperation'](_0x2dde5b){const _0x57fc9a=null===(_0x2dde5b=this['_cloneOperation'](_0x2dde5b,this['_idsRoots']))['_authorId']?null:_0x2dde5b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x546786=_0x2dde5b['graveyardPosition'],_0x2eeebe=_0x2dde5b['splitPosition']['parent'];_0x2dde5b['_execute']();const _0xa90907=_0x2eeebe['getAttribute']('vid_end'),_0x22ad2f=_0x2dde5b['insertionPosition']['nodeAfter'];if(_0x546786){const _0x3ebe85=_0x22ad2f['getAttribute']('vid_end'),_0x45d46e=_0x2eeebe['getAttribute']('vid_end');_0x2eeebe['_setAttribute']('vid_end',_0x3ebe85),_0x22ad2f['_setAttribute']('vid_end',_0x45d46e),this['_touched']['set'](_0x2eeebe['getAttribute']('vid_end'),{'userId':_0x57fc9a}),this['_touched']['set'](_0x22ad2f['getAttribute']('vid_start'),{'userId':_0x57fc9a});}else{const _0x47f8a2=this['_revisionId']++,_0x22eb04=this['_revisionId']++;_0x2eeebe['_setAttribute']('vid_end',_0x47f8a2),_0x22ad2f['_setAttribute']('vid_start',_0x22eb04),_0x22ad2f['_setAttribute']('vid_end',_0xa90907),this['_touched']['set'](_0x47f8a2,{'userId':_0x57fc9a}),this['_touched']['set'](_0x22eb04,{'userId':_0x57fc9a});}}['_handleMarkerOperation'](_0x397dbb){if(!_0x397dbb['affectsData'])return;const _0x18636b=(_0x397dbb=this['_cloneOperation'](_0x397dbb,this['_diffRoots']))['oldRange']?_0x397dbb['oldRange']['root']:null,_0x2465a1=_0x397dbb['newRange']?_0x397dbb['newRange']['root']:null;_0x18636b&&this['_markers']['delete'](_0x397dbb['name']),_0x2465a1&&this['_markers']['set'](_0x397dbb['name'],_0x397dbb['newRange']['clone']());const _0x2d4665=null===_0x397dbb['_authorId']?null:_0x397dbb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4bf15b=_0x397dbb['name'];if(!this['_touchedMarkers']['has'](_0x4bf15b))return void this['_touchedMarkers']['set'](_0x4bf15b,{'range':_0x397dbb['oldRange'],'userId':_0x2d4665});const _0xeb88c6=this['_touchedMarkers']['get'](_0x4bf15b),_0x47a78d=_0xeb88c6['range'],_0x520e59=_0x397dbb['newRange'];null==_0x47a78d&&null==_0x520e59||_0x47a78d&&_0x520e59&&_0x47a78d['isEqual'](_0x520e59)?this['_touchedMarkers']['delete'](_0x397dbb['name']):_0xeb88c6['userId']=_0x2d4665;}['_handleRootOperation'](_0x1ef46a,_0x3248af){this['_diffRoots']['has'](_0x1ef46a['rootName'])?this['_diffRoots']['get'](_0x1ef46a['rootName'])['_isAttached']=_0x1ef46a['isAdd']:(this['_diffRoots']['set'](_0x1ef46a['rootName'],F(_0x1ef46a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1ef46a['rootName'],{}),_0x3248af&&this['_idsRoots']['set'](_0x1ef46a['rootName'],F(_0x1ef46a['rootName'],!0x0)));const _0xe37b38=null===_0x1ef46a['_authorId']?null:_0x1ef46a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25a9aa=this['_touchedRoots']['get'](_0x1ef46a['rootName']);_0x25a9aa&&_0x25a9aa['userId']===_0xe37b38?this['_touchedRoots']['delete'](_0x1ef46a['rootName']):this['_touchedRoots']['set'](_0x1ef46a['rootName'],{'userId':_0xe37b38,'isAttached':_0x1ef46a['isAdd']});}['_handleRootAttributeOperation'](_0x8320){const _0x2f9a8f=this['_diffRootsAttributes']['get'](_0x8320['root']['rootName']);null===_0x8320['newValue']?delete _0x2f9a8f[_0x8320['key']]:_0x2f9a8f[_0x8320['key']]=_0x8320['newValue'];}}function T(_0x376178){const _0x1973d1=F(_0x376178['rootName'],_0x376178['isAttached']());for(const _0x5a02f8 of _0x376178['getChildren']()){const _0x2ae82b=_0x5a02f8['_clone'](!0x0);_0x1973d1['_appendChild'](_0x2ae82b);}return _0x1973d1;}function F(_0xf57d82,_0x14bec7=!0x0){const _0x4cb516=new gt();return _0x4cb516['rootName']=_0xf57d82,_0x4cb516['_isAttached']=_0x14bec7,_0x4cb516['isAttached']=()=>_0x4cb516['_isAttached'],_0x4cb516;}function B(_0xc5521d,_0x3275b8,_0x1cbc41){const _0x44a821='elementEnd'==_0xc5521d['type']?_0x1cbc41['createPositionAt'](_0xc5521d['item'],'end'):_0x1cbc41['createPositionBefore'](_0xc5521d['item']);return _0x1cbc41['createPositionFromPath'](_0x3275b8,_0x44a821['path'],_0x44a821['stickiness']);}function J(_0x4a33ec,_0x18a153,_0x7b850b){const _0x3a2153='elementStart'==_0x4a33ec['type']?_0x7b850b['createPositionAt'](_0x4a33ec['item'],0x0):_0x7b850b['createPositionAfter'](_0x4a33ec['item']);return _0x7b850b['createPositionFromPath'](_0x18a153,_0x3a2153['path'],_0x3a2153['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33586c,_0x5c2e83){super(_0x33586c),this['focusTracker']=new _0x2ebb35(),this['keystrokes']=new _0x5c3c3a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5c2e83),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25c145(this);}['render'](){super['render'](),_0x4c2b40({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x52aa48=_0x17fa9e=>_0x17fa9e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x52aa48),this['keystrokes']['set']('arrowleft',_0x52aa48),this['keystrokes']['set']('arrowup',_0x52aa48),this['keystrokes']['set']('arrowdown',_0x52aa48);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x375ae4){this['revisionNameInputView']['fieldView']['element']['value']=_0x375ae4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x43aa1a){const _0x5ccea7=new _0x3f0de8(this['locale'],_0x153297),_0x2e0de1=_0x5ccea7['fieldView'];_0x2e0de1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x47aac3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x43aa1a&&(_0x47aac3+='\x20('+m(this['locale'],'optional')+')'),(_0x5ccea7['label']=_0x47aac3,_0x2e0de1['on']('input',()=>{this['revisionNameInputValue']=_0x2e0de1['element']['value']['trim']();}),_0x5ccea7);}}class f extends _0x118fc5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4de00c=this['editor'],_0x1e658e=_0x4de00c['plugins']['get']('RevisionTracker');_0x4de00c['ui']['componentFactory']['add']('revisionHistory',_0x205f9b=>{const _0x9538e=_0x243ed3(_0x205f9b),_0x567f56=_0x9538e['panelView']['children'],_0x4b9501=new _0x2ac408(_0x205f9b),_0x49703d=new _0x1f298a(_0x205f9b),_0x1bcabe=new te(_0x205f9b),_0x51e2e5=new _0x1f298a(_0x205f9b),_0x2e796e=new te(_0x205f9b);return _0x9538e['bind']('isEnabled')['to'](_0x1e658e,'isReady',_0x1e658e,'isEnabled',_0x4de00c,'isReadOnly',(_0x36f651,_0x4a5b55,_0x332599)=>_0x36f651&&_0x4a5b55&&!_0x332599),_0x9538e['buttonView']['set']({'icon':_0x4709ad,'label':m(_0x205f9b,'Revision\x20history'),'tooltip':!0x0}),_0x1bcabe['set']({'label':m(_0x205f9b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1bcabe['bind']('isEnabled')['to'](_0x1e658e,'isReady',_0x1e658e,'isEnabled',_0x4de00c,'isReadOnly',(_0x12112e,_0xb26e0e,_0x41f362)=>_0x12112e&&_0xb26e0e&&!_0x41f362),_0x1bcabe['on']('execute',()=>this['_showDialog']()),_0x2e796e['set']({'label':m(_0x205f9b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2e796e['bind']('isEnabled')['to'](_0x1e658e,'isReady',_0x4de00c,'isReadOnly',(_0x40973b,_0x2d6a81)=>_0x40973b&&!_0x2d6a81),_0x2e796e['on']('execute',()=>{_0x4de00c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x9538e['isOpen']=!0x1,_0x4de00c['editing']['view']['focus']();}),_0x49703d['children']['add'](_0x1bcabe),_0x51e2e5['children']['add'](_0x2e796e),_0x4b9501['role']='menu',_0x4b9501['items']['addMany']([_0x49703d,_0x51e2e5]),_0x567f56['add'](_0x4b9501),_0x9538e;}),_0x4de00c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4cdad8=this['editor'],_0x3737be=_0x4cdad8['locale'],_0xe09965=new _0x361888(_0x3737be),_0x14d10e=new _0xb5534c(_0x3737be);_0xe09965['buttonView']['set']({'icon':_0x4709ad,'label':m(_0x3737be,'Revision\x20history')});const _0x57b807=new _0x11fa25(_0x3737be,_0xe09965),_0x4d7a4b=new _0x5d5452(_0x3737be);_0x4d7a4b['set']({'label':m(_0x3737be,'Save\x20current\x20revision')}),_0x4d7a4b['delegate']('execute')['to'](_0xe09965),_0x4d7a4b['on']('execute',()=>{this['_showDialog']();}),_0x57b807['children']['add'](_0x4d7a4b),_0x14d10e['items']['add'](_0x57b807);const _0x311efd=new _0x11fa25(_0x3737be,_0xe09965),_0x221148=new _0x5d5452(_0x3737be);return _0x221148['set']({'label':m(_0x3737be,'Open\x20revision\x20history')}),_0x221148['delegate']('execute')['to'](_0xe09965),_0x221148['on']('execute',()=>{_0x4cdad8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x311efd['children']['add'](_0x221148),_0x14d10e['items']['add'](_0x311efd),_0xe09965['panelView']['children']['add'](_0x14d10e),_0xe09965;}['_showDialog'](){const _0x15fedb=this['editor'],_0x54b5f0=_0x15fedb['locale'],_0x8c7efc=_0x15fedb['plugins']['get']('Dialog'),_0x3ee69c=_0x15fedb['plugins']['get']('RevisionTracker');function _0x33ae39(_0x251dab){_0x15fedb['config']['get']('revisionHistory.requireRevisionName')&&''===_0x251dab['revisionName']?_0x251dab['revisionNameInputView']['errorText']=m(_0x54b5f0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x15fedb['plugins']['get'](u)['saveRevision']({'name':_0x251dab['revisionName']}),_0x8c7efc['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x33ae39(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x8c7efc['show']({'id':'revisionSave','title':m(_0x54b5f0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x15fedb['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x8c7efc['hide']()},{'label':m(_0x15fedb['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5aa102){_0x5aa102['bind']('isEnabled')['to'](_0x3ee69c,'isReady',_0x3ee69c,'isEnabled',_0x15fedb,'isReadOnly',(_0x519e4f,_0x4e5d4,_0x384704)=>_0x519e4f&&_0x4e5d4&&!_0x384704);},'onExecute':()=>_0x33ae39(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x33f5eb=this['editor'],_0x1c7a41=_0x33f5eb['locale'];this['_saveRevisionFormView']=new hs(_0x1c7a41,_0x33f5eb['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4670a9,_0x17d1e2){super(_0x4670a9),this['_model']=_0x17d1e2,this['changeId']=_0x17d1e2['id'];const _0x52193a=this['bindTemplate'],_0x21b75c=m(_0x4670a9,_0x17d1e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x17d1e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x17d1e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52193a['to']('type',_0x1b4514=>'ck-revision-change__'+_0x1b4514)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x21b75c}]},{'text':'\x20'+_0x17d1e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x45caf0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5d23c1){super(),this['id']=_0x5d23c1['id']||_0x118080(),this['author']=_0x5d23c1['author'],this['type']=_0x5d23c1['type'],this['data']=_0x5d23c1['data']||{},this['rootName']=_0x5d23c1['rootName'],this['set']('createdAt',_0x5d23c1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x26ca04,_0x4fe8b5){this['newRevisionId']=_0x26ca04,this['oldRevisionId']=_0x4fe8b5,this['changes']=new _0x3e452a();}['_setChanges'](_0x14f1e2){for(const _0x310066 of _0x14f1e2)this['changes']['add'](_0x310066);}}const Y={'c':_0x536437,'a':_0x51cef1,'e':_0x5d757a,'r':_0xd3a339,'u':_0x28565d};class d extends _0x118fc5{['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[_0x1120ef,_0x608ef,j];}constructor(_0x3997ac){super(_0x3997ac),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',(_0x41edfa,_0x303d04,_0x39b0a2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b47f8=>{for(const _0x4495e7 of this['editor']['editing']['view']['document']['roots'])_0x39b0a2?_0x4b47f8['removeClass']('ck-editor__editable__overlay',_0x4495e7):_0x4b47f8['addClass']('ck-editor__editable__overlay',_0x4495e7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5c575e=>null!==_0x5c575e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1b7bef,_0x1dbe55,_0x494d8e)=>_0x1b7bef&&_0x494d8e?_0x1dbe55['changes']['getIndex'](_0x494d8e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x56b2e7,_0x4a6cdd)=>_0x56b2e7?_0x4a6cdd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x608ef);}['init'](){const _0x20304b=this['editor'],_0x1248ba=new _t(_0x20304b,{'direction':'backward'}),_0x36fc5a=new _t(_0x20304b,{'direction':'forward'});(_0x20304b['commands']['add']('showPreviousChange',_0x1248ba),_0x20304b['commands']['add']('showNextChange',_0x36fc5a),_0x20304b['commands']['add']('restoreRevision',new wt(_0x20304b)),this['on']('change:numberOfChanges',()=>{_0x1248ba['refresh'](),_0x36fc5a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x20304b['enableReadOnlyMode']('revision-viewer'),_0x20304b['plugins']['has']('WidgetToolbarRepository'))&&_0x20304b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5b28f5){await this['loadRevisionData'](_0x5b28f5);const _0x51e1e2={};for(const _0xff6cc1 in _0x5b28f5['diffData']){if(_0x5b28f5['diffData'][_0xff6cc1]['attachChange']&&!_0x5b28f5['diffData'][_0xff6cc1]['attachChange']['isAttached'])continue;const _0x2ac6c4=this['_removeRevisionMarkers'](JSON['parse'](_0x5b28f5['diffData'][_0xff6cc1]['insertions'])),_0x26f602=this['editor']['editing']['view']['document'],_0x1204cf=new _0x8157a(_0x26f602,_0x2ac6c4['map'](_0x5d76af=>this['_getViewObj'](_0x5d76af)));this['editor']['data']['processor']['useFillerType']('marked'),_0x51e1e2[_0xff6cc1]=this['editor']['data']['processor']['toData'](_0x1204cf),this['editor']['data']['processor']['useFillerType']('default');}return _0x51e1e2;}async['getRevisionRootsAttributes'](_0x3d9ed4){await this['loadRevisionData'](_0x3d9ed4);const _0x21503d={};for(const _0xec1b11 in _0x3d9ed4['diffData'])_0x3d9ed4['diffData'][_0xec1b11]['attachChange']&&!_0x3d9ed4['diffData'][_0xec1b11]['attachChange']['isAttached']||(_0x21503d[_0xec1b11]=_0x3d9ed4['diffData'][_0xec1b11]['attributesAfter']||{});return _0x21503d;}['_removeRevisionMarkers'](_0x447897){return(_0x447897=_0x447897['filter'](_0x5233ce=>!_0x5233ce['name']||'revision-start'!==_0x5233ce['name']&&'revision-end'!==_0x5233ce['name']))['forEach'](_0x57c281=>{'string'!=typeof _0x57c281&&(_0x57c281['children']=this['_removeRevisionMarkers'](_0x57c281['children']),_0x57c281['attributes']=_0x57c281['attributes']['filter'](_0x1951b5=>!_0x1951b5[0x0]['startsWith']('data-revision-')));}),_0x447897;}async['compare'](_0xa66f51,_0x347ed5,_0x2c76f3=!0x1){if(!this['isEnabled'])return;const _0x1f7102=this['diff'],_0x588479=this['repository'],_0x512acd='string'==typeof _0xa66f51?_0x588479['getRevision'](_0xa66f51):_0xa66f51,_0xdc5190='string'==typeof _0x347ed5?_0x588479['getRevision'](_0x347ed5):_0x347ed5,_0x18e89d=_0x512acd['id'],_0xa12ed8=_0xdc5190?_0xdc5190['id']:null;if(!_0x2c76f3&&this['diff']&&this['diff']['newRevisionId']===_0x18e89d&&this['diff']['oldRevisionId']===_0xa12ed8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x18e89d,_0xa12ed8);const _0x4b61be=this['_getRevisionsRange'](_0x512acd,_0xdc5190,!0x0)['map'](_0xb5bd06=>this['loadRevisionData'](_0xb5bd06));return _0x4b61be['push'](new Promise(_0x44e743=>{setTimeout(_0x44e743,0x14);})),Promise['all'](_0x4b61be)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d73c1=this['_getDiff'](_0x18e89d,_0xa12ed8);for(const _0x5c9751 of _0x2d73c1['changes'])this['_changeIdToChange']['set'](_0x5c9751['id'],_0x5c9751);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x32dc96=>{for(const _0x599656 of this['editor']['model']['document']['getRootNames']())_0x32dc96['detachRoot'](_0x599656);for(const _0xc337be of Object['keys'](_0x2d73c1['model'])){const _0x2c855b=_0x32dc96['addRoot'](_0xc337be);for(const _0x142a78 of Object['keys'](_0x2d73c1['attributes'][_0xc337be]))_0x32dc96['setAttribute'](_0x142a78,_0x2d73c1['attributes'][_0xc337be][_0x142a78],_0x2c855b);_0x32dc96['insert'](_0x2d73c1['model'][_0xc337be],_0x2c855b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2d73c1['changes'])),this['isReady']=!0x0;})['catch'](_0x3d75b9=>{console['error'](_0x3d75b9),this['_cleanUp'](),_0x1f7102&&(this['diff']=_0x1f7102),this['isReady']=!0x0;});}['addRevisionData'](_0x535226,_0x479389){const _0x8344f=this['repository']['createRevision'](_0x535226);return _0x8344f['on']('_update',(_0x2d0bc6,_0x393e71,_0x1535da)=>_0x479389(_0x393e71,_0x1535da,_0x8344f)),this['repository']['addRevision'](_0x8344f),_0x8344f;}['loadRevisionData'](_0x2447b5){if(!_0x2447b5||_0x2447b5['diffData'])return Promise['resolve']();{const _0x57524b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x57524b,'revisionId':_0x2447b5['id']})['then'](_0x305edf=>{_0x2447b5['_update']({'diffData':_0x305edf['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},_0x4dd61b=>{for(const _0x18a6c6 of this['editor']['model']['document']['getRootNames']())_0x4dd61b['detachRoot'](_0x18a6c6);});}['_sortAndFilterDiffChanges'](_0x44630f){const _0x2d0bce=[],_0x2efdb7=new Map();for(const _0x581f42 of this['editor']['model']['document']['getRootNames']()){const _0x390ebf=this['editor']['editing']['view']['getDomRoot'](_0x581f42);if(!_0x390ebf)continue;const _0x1f2965=_0x390ebf['getClientRects']()['item'](0x0);_0x1f2965&&(_0x2d0bce['push'](_0x581f42),_0x2efdb7['set'](_0x581f42,_0x1f2965));}return _0x2d0bce['sort']((_0x16141d,_0x16b860)=>{const _0x5da890=_0x2efdb7['get'](_0x16141d),_0x1ddea0=_0x2efdb7['get'](_0x16b860);return _0x5da890['y']-_0x1ddea0['y']||_0x5da890['x']-_0x1ddea0['x'];}),(_0x44630f=_0x44630f['filter'](_0x507758=>_0x2d0bce['includes'](_0x507758['rootName'])))['sort']((_0x1f12c5,_0x3ce401)=>_0x2d0bce['indexOf'](_0x1f12c5['rootName'])-_0x2d0bce['indexOf'](_0x3ce401['rootName'])),_0x44630f;}['_makeTape'](_0x5d8698){const _0x1184a5=Array['from'](_0x5d8698['markers'])['filter'](([_0x3e467f,_0x18eace])=>_0x3e467f['startsWith']('revision:')&&!_0x18eace['isCollapsed']),_0xef6496=Array['from'](this['editor']['model']['createRangeIn'](_0x5d8698)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1184a5['length'])for(const _0x54884f of _0xef6496){const [_0x5f5384,_0x5c079e]=_0x1184a5[0x0],[,_0x52787d,_0x8cdb03]=_0x5f5384['split'](':');if(_0x5c079e['end']['isEqual'](_0x54884f['nextPosition'])&&_0x1184a5['shift'](),(_0x54884f['previousPosition']['isEqual'](_0x5c079e['start'])||_0x54884f['previousPosition']['isAfter'](_0x5c079e['start']))&&('insertion'==_0x52787d?_0x54884f['isAdded']={'userId':_0x8cdb03}:'deletion'==_0x52787d&&(_0x54884f['isRemoved']={'userId':_0x8cdb03})),0x0==_0x1184a5['length'])break;}return _0xef6496;}['_refreshStartEndIndex'](_0x38819b){const _0x5ec1aa=new Map();for(let _0x32e188=0x0;_0x32e188<_0x38819b['length'];_0x32e188++)'text'===_0x38819b[_0x32e188]['type']?(_0x38819b[_0x32e188]['item']['startIndex']=_0x32e188,_0x38819b[_0x32e188]['item']['endIndex']=_0x32e188):('elementStart'===_0x38819b[_0x32e188]['type']?_0x38819b[_0x32e188]['item']['startIndex']=_0x32e188:'elementEnd'===_0x38819b[_0x32e188]['type']&&(_0x38819b[_0x32e188]['item']['endIndex']=_0x32e188),_0x5ec1aa['set'](_0x38819b[_0x32e188]['id'],_0x32e188));for(const _0x20b13a of _0x5ec1aa['values']())'elementStart'===_0x38819b[_0x20b13a]['type']?_0x38819b[_0x20b13a]['item']['endIndex']=_0x5ec1aa['get'](_0x38819b[_0x20b13a]['pairId']):'elementEnd'===_0x38819b[_0x20b13a]['type']&&(_0x38819b[_0x20b13a]['item']['startIndex']=_0x5ec1aa['get'](_0x38819b[_0x20b13a]['pairId']));}['_processTape'](_0x33db9b){for(let _0x34ce3b=0x0;_0x34ce3b<_0x33db9b['length'];_0x34ce3b++){if('elementStart'===_0x33db9b[_0x34ce3b]['type'])_0x33db9b[_0x34ce3b]['item']['startIndex']=_0x34ce3b;else{if('elementEnd'===_0x33db9b[_0x34ce3b]['type']){_0x33db9b[_0x34ce3b]['item']['endIndex']=_0x34ce3b;const _0x3e9678=_0x33db9b[_0x34ce3b]['item']['startIndex'];_0x33db9b[_0x3e9678]['pairId']=_0x33db9b[_0x34ce3b]['id'],_0x33db9b[_0x34ce3b]['pairId']=_0x33db9b[_0x3e9678]['id'];}else _0x33db9b[_0x34ce3b]['item']['startIndex']=_0x34ce3b,_0x33db9b[_0x34ce3b]['item']['endIndex']=_0x34ce3b,_0x33db9b[_0x34ce3b]['pairId']=null;}_0x33db9b[_0x34ce3b]['markersStart']||(_0x33db9b[_0x34ce3b]['markersStart']=[],_0x33db9b[_0x34ce3b]['markersEnd']=[]);}}['_markInsertions'](_0x4620c9,_0x10f624){const _0x511ea0=_0x4620c9['filter'](_0x427155=>!_0x427155['isAdded']);for(let _0x39486c=0x0;_0x39486c<_0x10f624['length'];_0x39486c++)_0x10f624[_0x39486c]['isAdded']&&(_0x511ea0[_0x39486c]['isAdded']=_0x10f624[_0x39486c]['isAdded']);}['_makeModelFromViewString'](_0xd6acfb){const _0x362e45=JSON['parse'](_0xd6acfb),_0x4e25ad=this['editor']['editing']['view']['document'],_0xf9822e=new _0x8157a(_0x4e25ad,_0x362e45['map'](_0x3f0388=>this['_getViewObj'](_0x3f0388)));return this['editor']['data']['toModel'](_0xf9822e);}['_getViewObj'](_0x51edce){const _0x5a83a2=this['editor']['editing']['view']['document'];if('string'==typeof _0x51edce)return new _0x1b404c(_0x5a83a2,_0x51edce);{const _0x3df86e=_0x51edce['children']['map'](_0x386d55=>this['_getViewObj'](_0x386d55));return new(Y[_0x51edce['type']]||_0x34db6a)(_0x5a83a2,_0x51edce['name'],_0x51edce['attributes'],_0x3df86e);}}['_getDiff'](_0x132b2,_0x427375=null){const _0x66f536=this['repository']['getRevision'](_0x132b2),_0x470ec4=_0x427375?this['repository']['getRevision'](_0x427375):null,_0x374136=this['_getRevisionsRange'](_0x66f536,_0x470ec4),_0x2b81d5=_0x374136[_0x374136['length']-0x1],_0x300d82=new Map(),_0x271946={'model':{},'attributes':{},'changes':[]},_0x34beb4=new Set(),_0xe5a273=new Map();for(let _0x52c58f=_0x374136['length']-0x1;_0x52c58f>=0x0;_0x52c58f--){const _0x5823c1=_0x374136[_0x52c58f];for(const _0x432b2a of Object['keys'](_0x5823c1['diffData']))if(_0x5823c1['diffData'][_0x432b2a]['attachChange']){const _0xe09d31=_0x5823c1['diffData'][_0x432b2a]['attachChange'];_0xe09d31['isAttached']?(_0x34beb4['add'](_0x432b2a),_0xe5a273['has'](_0x432b2a)&&_0xe5a273['get'](_0x432b2a)['userId']==_0xe09d31['userId']?_0xe5a273['delete'](_0x432b2a):_0xe5a273['set'](_0x432b2a,_0xe09d31)):_0xe5a273['has'](_0x432b2a)?(_0x34beb4['delete'](_0x432b2a),_0xe5a273['delete'](_0x432b2a)):(_0x34beb4['add'](_0x432b2a),_0xe5a273['set'](_0x432b2a,_0xe09d31));}else _0x34beb4['add'](_0x432b2a);}for(const _0x2556a2 of _0x34beb4){const _0x3954c2=_0xe5a273['has'](_0x2556a2)&&!_0xe5a273['get'](_0x2556a2)['isAttached'];let _0x4e528f=_0x3954c2?_0x374136['length']-0x1:0x0;const _0x339b1e=_0x3954c2?-0x1:0x1;for(;_0x374136[_0x4e528f];){const _0x222020=_0x374136[_0x4e528f];if(_0x222020['diffData'][_0x2556a2]){const _0x253e15=_0x3954c2?_0x222020['diffData'][_0x2556a2]['attributesBefore']:_0x222020['diffData'][_0x2556a2]['attributesAfter'];_0x271946['attributes'][_0x2556a2]=_0x253e15?_0x127b89(_0x253e15):{};break;}_0x4e528f+=_0x339b1e;}}for(const _0x48f9c7 of _0x374136){_0x48f9c7['model']={};for(const _0x22116e of _0x48f9c7['authors'])_0x300d82['set'](_0x22116e['id'],_0x22116e);for(const _0x3dec94 of _0x34beb4){const _0x452553=_0x48f9c7['diffData'][_0x3dec94]?_0x48f9c7['diffData'][_0x3dec94]['insertions']:'[]',_0x48489b=_0x48f9c7['diffData'][_0x3dec94]?_0x48f9c7['diffData'][_0x3dec94]['deletions']:'[]';_0x48f9c7['model'][_0x3dec94]={'insertions':this['_makeModelFromViewString'](_0x452553),'deletions':this['_makeModelFromViewString'](_0x48489b)};}}for(const _0x335ddd of _0x34beb4){let _0xa5a202=null,_0x178024=0x0;const _0x269442=new Map(Array['from'](_0x66f536['model'][_0x335ddd]['insertions']['markers'])['filter'](([_0x3090a1])=>!_0x3090a1['startsWith']('revision:')));let _0x451460=0x0;for(const _0x423610 of _0x374136){const _0x1de919=this['_makeTape'](_0x423610['model'][_0x335ddd]['insertions']);_0x423610==_0x66f536?(_0xa5a202=_0x1de919,_0x178024=_0xa5a202['length'],_0xa5a202['forEach'](_0x49996a=>{_0x49996a['id']=_0x451460++;}),this['_processTape'](_0xa5a202)):this['_markInsertions'](_0xa5a202,_0x1de919);const _0x3da1ec=_0xa5a202['filter'](_0x1389c6=>!_0x1389c6['isAdded'])['map'](_0x195628=>_0x195628['id']);let _0x5bc593=0x0;const _0x31817f=this['_makeTape'](_0x423610['model'][_0x335ddd]['deletions']);_0x31817f['forEach'](_0x498ede=>{_0x498ede['isRemoved']?_0x498ede['id']=_0x178024++:_0x498ede['id']=_0x3da1ec[_0x5bc593++];}),this['_processTape'](_0x31817f),this['_setDistance'](_0xa5a202,'isAdded'),this['_setDistance'](_0x31817f,'isRemoved'),_0x423610==_0x66f536&&this['_markMarkers'](_0xa5a202,_0x269442),_0xa5a202=this['_joinTapes'](_0xa5a202,_0x31817f),this['_refreshStartEndIndex'](_0xa5a202),this['_setDistance'](_0xa5a202,'isRemoved');}_0xa5a202=_0xa5a202['filter'](_0x187445=>!(_0x187445['isAdded']&&_0x187445['isRemoved']));const _0x4c12c2=new Map(_0x2b81d5['model'][_0x335ddd]['deletions']['markers']),_0x2658b5=new Set(_0x269442['keys']());for(const _0x9680db of _0x4c12c2['keys']())_0x2658b5['delete'](_0x9680db);this['_markSuggestions'](_0xa5a202,_0x2658b5),this['_fixObsoleteTags'](_0xa5a202),_0xa5a202=this['_removeMissingPairs'](_0xa5a202),_0xa5a202=this['_markMismatchedRemovedTags'](_0xa5a202),_0xa5a202=this['_removeUnsupportedChanges'](_0xa5a202);const {root:_0x149e2a,changes:_0x363f77}=this['_makeModelFromTape'](_0xa5a202,_0x300d82,_0x335ddd);_0x271946['model'][_0x335ddd]=_0x149e2a;const _0x5e2ced=_0xe5a273['get'](_0x335ddd);if(_0x5e2ced){const _0x40be85=_0x300d82['get'](_0x5e2ced['userId']),_0x3f1885=new r({'author':_0x40be85,'type':_0x5e2ced['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x335ddd});_0x363f77['unshift'](_0x3f1885),_0x271946['attributes'][_0x335ddd]['revisionHistoryAttachChange']=_0x3f1885['id'];}_0x271946['changes']=_0x271946['changes']['concat'](_0x363f77);}return _0x271946;}['_markMarkers'](_0x2f9fa1,_0x4d583e){for(let _0x1785a5=0x0;_0x1785a5<_0x2f9fa1['length'];_0x1785a5++)for(const [_0x16e44c,_0x2371aa]of _0x4d583e)_0x2371aa['start']['isEqual'](_0x2f9fa1[_0x1785a5]['previousPosition'])&&_0x2f9fa1[_0x1785a5]['markersStart']['push'](_0x16e44c),_0x2371aa['end']['isEqual'](_0x2f9fa1[_0x1785a5]['nextPosition'])&&_0x2f9fa1[_0x1785a5]['markersEnd']['push'](_0x16e44c);}['_joinTapes'](_0x3eb5c0,_0x59b9a6){let _0x142b3b=[],_0x95d431=0x0,_0x588c20=0x0;for(;_0x95d431<_0x3eb5c0['length']||_0x588c20<_0x59b9a6['length'];){const _0x3831ea=_0x3eb5c0[_0x95d431]||{},_0x201855=_0x59b9a6[_0x588c20]||{};if(_0x3831ea['id']==_0x201855['id'])_0x95d431++,_0x588c20++,_0x142b3b['push'](_0x3831ea);else{if(_0x201855['isRemoved']&&_0x3831ea['isAdded']){const {commonTape:_0x194126,iEnd:_0x572bb7,jEnd:_0x359d40}=this['_threeWayMerge'](_0x3eb5c0,_0x95d431,_0x59b9a6,_0x588c20);_0x142b3b=_0x142b3b['concat'](_0x194126),_0x95d431=_0x572bb7,_0x588c20=_0x359d40;}else _0x201855['isRemoved']?(_0x588c20++,_0x142b3b['push'](_0x201855)):(_0x95d431++,_0x142b3b['push'](_0x3831ea));}}return _0x142b3b;}['_markSuggestions'](_0x572d71,_0x26d9b6){const _0x3d8f15=[];for(let _0x35b949=0x0;_0x35b949<_0x572d71['length'];_0x35b949++){for(let _0x4a7b3b=0x0;_0x4a7b3b<_0x572d71[_0x35b949]['markersStart']['length'];_0x4a7b3b++){const _0x3bf127=_0x572d71[_0x35b949]['markersStart'][_0x4a7b3b];if(!_0x26d9b6['has'](_0x3bf127))continue;const {group:_0x395673,type:_0x4ba85f,authorId:_0x4b1649}=_0x81e32e(_0x3bf127);'revision-suggestion'!=_0x395673||'insertion'!=_0x4ba85f&&'deletion'!=_0x4ba85f||(_0x3d8f15['unshift']({'type':_0x4ba85f,'name':_0x3bf127,'userId':_0x4b1649}),_0x572d71[_0x35b949]['markersStart']['splice'](_0x4a7b3b,0x1),_0x4a7b3b--);}_0x4327d1(_0x572d71[_0x35b949]);for(let _0x26dd18=0x0;_0x26dd18<_0x572d71[_0x35b949]['markersEnd']['length'];_0x26dd18++){const _0x2bdca4=_0x572d71[_0x35b949]['markersEnd'][_0x26dd18];if(!_0x26d9b6['has'](_0x2bdca4))continue;const {group:_0x50586a,type:_0x3cd431}=_0x81e32e(_0x2bdca4);if('revision-suggestion'!=_0x50586a||'insertion'!=_0x3cd431&&'deletion'!=_0x3cd431)continue;_0x572d71[_0x35b949]['markersEnd']['splice'](_0x26dd18,0x1),_0x26dd18--;const _0x3bdbd1=_0x3d8f15['findIndex'](_0x4aaacf=>_0x4aaacf['name']==_0x2bdca4);_0x3bdbd1>-0x1&&_0x3d8f15['splice'](_0x3bdbd1,0x1);}}function _0x81e32e(_0x58fb0d){const _0x4efe01=_0x58fb0d['split'](':');return{'group':_0x4efe01[0x0],'type':_0x4efe01[0x1],'subType':_0x4efe01['length']>=0x5?_0x4efe01[0x2]:null,'id':_0x4efe01['length']<0x5?_0x4efe01[0x2]:_0x4efe01[0x3],'authorId':_0x4efe01['length']<0x5?_0x4efe01[0x3]:_0x4efe01[0x4],'markerCount':0x6==_0x4efe01['length']?_0x4efe01[0x5]:null};}function _0x4327d1(_0x1ec3c2){for(let _0x38b9f7=0x0;_0x38b9f7<_0x3d8f15['length'];_0x38b9f7++){if(_0x1ec3c2['isAdded']&&'insertion'==_0x3d8f15[_0x38b9f7]['type'])return _0x1ec3c2['isAddSuggestion']=_0x3d8f15[_0x38b9f7],void delete _0x1ec3c2['isAdded'];if(!_0x1ec3c2['isAdded']&&!_0x1ec3c2['isRemoved']&&'deletion'==_0x3d8f15[_0x38b9f7]['type'])return void(_0x1ec3c2['isRemoveSuggestion']=_0x3d8f15[_0x38b9f7]);}}}['_setDistance'](_0x594073,_0xafc3dd){let _0x17e55b=0x0,_0x14ef82=!0x1;const _0x351c42=new Map();for(const _0x2be29a of _0x594073)_0x2be29a[_0xafc3dd]?_0x14ef82&&(_0x17e55b++,_0x14ef82=!0x1):(_0x17e55b++,_0x14ef82=!0x0),_0x351c42['set'](_0x2be29a['id'],_0x17e55b);for(let _0x489354=0x0;_0x489354<_0x594073['length'];_0x489354++){if('isRemoved'==_0xafc3dd&&_0x594073[_0x489354]['isAdded']||'isAdded'==_0xafc3dd&&_0x594073[_0x489354]['isRemoved'])continue;if('text'==_0x594073[_0x489354]['type']){_0x594073[_0x489354]['distance']=0x0;continue;}const _0x51d0c2=_0x351c42['get'](_0x594073[_0x489354]['pairId']),_0x446068=_0x351c42['get'](_0x594073[_0x489354]['id']);_0x594073[_0x489354]['distance']=_0x51d0c2-_0x446068;}}['_getRevisionsRange'](_0xbae368,_0x1b5405,_0x2fc50a=!0x1){const _0x2ee176=[];let _0x28fb0c=this['repository']['getIndex'](_0xbae368),_0x478ddc=this['repository']['getIndex'](_0x1b5405);for(-0x1==_0x478ddc&&(_0x478ddc=this['repository']['_revisions']['length'],_0x2fc50a=!0x1);_0x28fb0c<_0x478ddc;)_0x2ee176['push'](this['repository']['getRevision'](_0x28fb0c)),_0x28fb0c++;return _0x2fc50a&&_0x2ee176['push'](this['repository']['getRevision'](_0x28fb0c)),_0x2ee176;}['_threeWayMerge'](_0x2f5f57,_0xe880f1,_0x4368e0,_0x49b5fb){const _0x2a9be0=this['editor']['model']['schema'];let _0x4217bc=_0xe880f1;for(;_0x2f5f57[_0x4217bc]&&_0x2f5f57[_0x4217bc]['isAdded'];)_0x4217bc++;let _0x4a5c66=_0x49b5fb;for(;_0x4368e0[_0x4a5c66]&&_0x4368e0[_0x4a5c66]['isRemoved'];)_0x4a5c66++;_0x10e8ae(_0x2f5f57,_0xe880f1,_0x4217bc),_0x10e8ae(_0x4368e0,_0x49b5fb,_0x4a5c66);const _0x2627b4=_0x4368e0['slice'](_0x49b5fb,_0x4a5c66)['concat'](_0x2f5f57['slice'](_0xe880f1,_0x4217bc));return _0x2627b4['sort']((_0x2ad39e,_0x56a2b5)=>_0x2ad39e['side']!=_0x56a2b5['side']?_0x2ad39e['side']-_0x56a2b5['side']:_0x2ad39e['level']!=_0x56a2b5['level']?_0x2ad39e['level']-_0x56a2b5['level']:_0x2ad39e['distance']!=_0x56a2b5['distance']?_0x56a2b5['distance']-_0x2ad39e['distance']:!!_0x2ad39e['isAdded']!=!!_0x56a2b5['isAdded']?-0x1==_0x2ad39e['side']||0x0==_0x2ad39e['side']?_0x2ad39e['isAdded']?-0x1:0x1:_0x2ad39e['isAdded']?0x1:-0x1:_0x2ad39e['index']-_0x56a2b5['index']),{'commonTape':_0x2627b4,'iEnd':_0x4217bc,'jEnd':_0x4a5c66};function _0x10e8ae(_0x49377d,_0x21cd00,_0x1a1ee0){let _0x87555b=-0x1,_0x1633c2=Number['POSITIVE_INFINITY'],_0x120d97=!0x0;for(let _0x4a5363=_0x21cd00;_0x4a5363<_0x1a1ee0;_0x4a5363++)if(_0x2a9be0['isInline'](_0x49377d[_0x4a5363]['item'])||(_0x120d97=!0x1),_0x49377d[_0x4a5363]['item']['startIndex']<_0x21cd00&&(_0x87555b=_0x4a5363),_0x49377d[_0x4a5363]['item']['endIndex']>=_0x1a1ee0){_0x1633c2=_0x4a5363;break;}_0x120d97&&(_0x87555b=_0x1a1ee0-0x1);for(let _0x14241c=_0x21cd00;_0x14241c<_0x1a1ee0;_0x14241c++)_0x49377d[_0x14241c]['side']=_0x14241c<=_0x87555b?-0x1:_0x14241c<_0x1633c2?0x0:0x1,_0x49377d[_0x14241c]['index']=_0x14241c;let _0x12e8a7=0x0;for(let _0x4b1a1e=_0x21cd00;_0x4b1a1e<=_0x87555b;_0x4b1a1e++)0x0==_0x49377d[_0x4b1a1e]['distance']?_0x49377d[_0x4b1a1e]['level']=_0x12e8a7:(_0x12e8a7++,_0x49377d[_0x4b1a1e]['level']=_0x12e8a7,_0x12e8a7++);for(let _0x27656f=_0x21cd00;_0x27656f<_0x1a1ee0;_0x27656f++)0x0==_0x49377d[_0x27656f]['side']&&(_0x49377d[_0x27656f]['level']=_0x12e8a7);_0x12e8a7=0x0;for(let _0x40491e=_0x1a1ee0-0x1;_0x40491e>=_0x1633c2;_0x40491e--)0x0==_0x49377d[_0x40491e]['distance']?_0x49377d[_0x40491e]['level']=_0x12e8a7:(_0x12e8a7--,_0x49377d[_0x40491e]['level']=_0x12e8a7,_0x12e8a7--);}}['_fixObsoleteTags'](_0x922f4d){const _0x116a21=new Map(),_0x412090=this['editor']['model']['schema'];for(let _0x252f2e=0x1;_0x252f2e<_0x922f4d['length'];_0x252f2e++){let _0x12997a,_0x3f31b1,_0x3be98c;const _0x2873d5=_0x922f4d[_0x252f2e],_0x17fcf2=_0x922f4d[_0x252f2e-0x1];if('text'==_0x2873d5['type'])continue;if(_0x2873d5['type']!=_0x17fcf2['type'])continue;if(!_0x412090['isBlock'](_0x17fcf2['item'])||_0x412090['isLimit'](_0x17fcf2['item']))continue;if(!_0x412090['isBlock'](_0x2873d5['item'])||_0x412090['isLimit'](_0x2873d5['item']))continue;if((_0x922f4d[_0x252f2e]['isAdded']||_0x922f4d[_0x252f2e]['isAddSuggestion'])&&_0x922f4d[_0x252f2e-0x1]['isRemoved'])_0x12997a=_0x922f4d[_0x252f2e],_0x3f31b1=_0x922f4d[_0x252f2e-0x1],_0x3be98c=_0x252f2e-0x1;else{if(!_0x922f4d[_0x252f2e]['isRemoved']||!_0x922f4d[_0x252f2e-0x1]['isAdded']&&!_0x922f4d[_0x252f2e-0x1]['isAddSuggestion'])continue;_0x12997a=_0x922f4d[_0x252f2e-0x1],_0x3f31b1=_0x922f4d[_0x252f2e],_0x3be98c=_0x252f2e;}const _0x274a48=_0x12997a['level']==_0x3f31b1['level'],_0x51fe32=Math['abs'](_0x12997a['level'])<Math['abs'](_0x3f31b1['level'])&&0x0==_0x3f31b1['distance'];(_0x274a48||_0x51fe32)&&(_0x116a21['set'](_0x3f31b1['id'],_0x12997a['id']),_0x922f4d['splice'](_0x3be98c,0x1),_0x252f2e--,_0x12997a['isAdded']=!0x1);}for(let _0x4d13da=0x0;_0x4d13da<_0x922f4d['length'];_0x4d13da++)_0x116a21['has'](_0x922f4d[_0x4d13da]['pairId'])&&(_0x922f4d[_0x4d13da]['pairId']=_0x116a21['get'](_0x922f4d[_0x4d13da]['pairId']));}['_removeMissingPairs'](_0x5ef7f9){const _0x2a5129=new Set(_0x5ef7f9['map'](_0x328e92=>_0x328e92['id']));for(let _0x5c4a46=0x0;_0x5c4a46<_0x5ef7f9['length'];_0x5c4a46++)_0x2a5129['has'](_0x5ef7f9[_0x5c4a46]['pairId'])||0x0==_0x5ef7f9[_0x5c4a46]['distance']||(_0x5ef7f9[_0x5c4a46]['isIncorrect']=!0x0);return _0x5ef7f9['filter'](_0x36ca9b=>!_0x36ca9b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x512373){const _0x5d14d5=new Set();for(let _0x5f2566=0x0;_0x5f2566<_0x512373['length'];_0x5f2566++){if(_0x5d14d5['has'](_0x512373[_0x5f2566]['id'])&&_0x512373[_0x5f2566]['isRemoved']&&(_0x512373[_0x5f2566]['isIncorrect']=!0x0),_0x512373[_0x5f2566]['isIncorrect'])continue;if(0x0==_0x512373[_0x5f2566]['distance'])continue;if('elementStart'!=_0x512373[_0x5f2566]['type'])continue;if(null==_0x512373[_0x5f2566]['pairId'])continue;let _0x2ef5cf=_0x5f2566+0x1,_0x5f6b48=0x0;for(;_0x512373[_0x2ef5cf]['id']!=_0x512373[_0x5f2566]['pairId'];)'elementStart'==_0x512373[_0x2ef5cf]['type']?_0x5f6b48++:'elementEnd'==_0x512373[_0x2ef5cf]['type']&&_0x5f6b48--,_0x2ef5cf++;if(0x0!=_0x5f6b48){if(_0x512373[_0x5f2566]['isRemoved'])_0x512373[_0x5f2566]['isIncorrect']=!0x0;else{for(;_0x2ef5cf!=_0x5f2566;)_0x512373[_0x2ef5cf]['isRemoved']&&0x0!=_0x512373[_0x2ef5cf]['distance']&&(_0x512373[_0x2ef5cf]['isIncorrect']=!0x0,_0x5d14d5['add'](_0x512373[_0x2ef5cf]['pairId'])),_0x2ef5cf--;}}}return _0x512373['filter'](_0x170886=>!_0x170886['isIncorrect']);}['_removeUnsupportedChanges'](_0x2ad39c){const _0x3a10b4=this['editor']['model']['schema'];for(let _0x31d8a8=0x0;_0x31d8a8<_0x2ad39c['length'];_0x31d8a8++){if(!(_0x2ad39c[_0x31d8a8]['isAdded']||_0x2ad39c[_0x31d8a8]['isAddSuggestion']||_0x2ad39c[_0x31d8a8]['isRemoved']||_0x2ad39c[_0x31d8a8]['isRemoveSuggestion']))continue;if(0x0==_0x2ad39c[_0x31d8a8]['distance'])continue;const _0x41e679=_0x2ad39c[_0x31d8a8]['item'];_0x3a10b4['isBlock'](_0x41e679)||_0x3a10b4['isLimit'](_0x41e679)||(_0x2ad39c[_0x31d8a8]['isAdded']&&delete _0x2ad39c[_0x31d8a8]['isAdded'],_0x2ad39c[_0x31d8a8]['isAddSuggestion']&&delete _0x2ad39c[_0x31d8a8]['isAddSuggestion'],_0x2ad39c[_0x31d8a8]['isRemoveSuggestion']&&delete _0x2ad39c[_0x31d8a8]['isRemoveSuggestion'],_0x2ad39c[_0x31d8a8]['isRemoved']&&(_0x2ad39c[_0x31d8a8]['isIncorrect']=!0x0));}return _0x2ad39c['filter'](_0x1cdd7b=>!_0x1cdd7b['isIncorrect']);}['_makeModelFromTape'](_0x4efee1,_0x2aeaa7,_0x1a5260){const _0xd2f1a2=new gt(),_0x46bcf3=[],_0x5e34c2=new Map(),_0x3a8c88=this['editor']['model'],_0xaf0f8d=_0x3a8c88['schema'],_0x230e2a=[_0xd2f1a2],_0x5ce697={},_0x1c9a3a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4a572e=null;const _0x58f1db=[0x0];for(let _0x326402=0x0;_0x326402<_0x4efee1['length'];_0x326402++)if('elementStart'===_0x4efee1[_0x326402]['type']){_0x4efee1[_0x326402]['previousPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db);const _0x22599e=new ut(_0x4efee1[_0x326402]['item']['name'],_0x4efee1[_0x326402]['item']['getAttributes']());_0x230e2a[0x0]['_appendChild'](_0x22599e),_0x58f1db['push'](0x0),_0x230e2a['unshift'](_0x22599e),_0x4efee1[_0x326402]['nextPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db);}else'elementEnd'===_0x4efee1[_0x326402]['type']?(_0x230e2a['shift'](),_0x4efee1[_0x326402]['previousPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db),_0x58f1db['pop'](),_0x58f1db[_0x58f1db['length']-0x1]++,_0x4efee1[_0x326402]['nextPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db)):(_0x4efee1[_0x326402]['previousPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db),_0x4a572e?_0x4a572e['_data']+=_0x4efee1[_0x326402]['item']['data']:_0x4a572e=new mt(_0x4efee1[_0x326402]['item']['data'],_0x4efee1[_0x326402]['item']['getAttributes']()),_0x4efee1[_0x326402+0x1]&&'text'===_0x4efee1[_0x326402+0x1]['type']&&_0x70727(_0x4a572e,_0x4efee1[_0x326402+0x1]['item'])||(_0x230e2a[0x0]['_appendChild'](_0x4a572e),_0x4a572e=null),_0x58f1db[_0x58f1db['length']-0x1]+=_0x4efee1[_0x326402]['item']['offsetSize'],_0x4efee1[_0x326402]['nextPosition']=_0x3a8c88['createPositionFromPath'](_0xd2f1a2,_0x58f1db));for(let _0x10d6d4=0x0;_0x10d6d4<_0x4efee1['length'];_0x10d6d4++){const _0x1cf714=_0x4efee1[_0x10d6d4]['previousPosition'],_0x1b7429=_0x4efee1[_0x10d6d4]['nextPosition'];for(const _0x24fd68 of _0x4efee1[_0x10d6d4]['markersStart'])_0x5e34c2['set'](_0x24fd68,{'start':_0x1cf714,'end':null});_0x554ad8('isRemoveSuggestion',_0x10d6d4,_0x1cf714,_0x1b7429),_0x554ad8('isAddSuggestion',_0x10d6d4,_0x1cf714,_0x1b7429),_0x554ad8('isRemoved',_0x10d6d4,_0x1cf714,_0x1b7429),_0x554ad8('isAdded',_0x10d6d4,_0x1cf714,_0x1b7429);for(const _0x4c3ee9 of _0x4efee1[_0x10d6d4]['markersEnd']){_0x5e34c2['get'](_0x4c3ee9)['end']=_0x1b7429;}}for(const [_0x2bab35,_0x35e986]of _0x5e34c2){const _0x313526=this['editor']['model']['createRange'](_0x35e986['start'],_0x35e986['end']);_0xd2f1a2['markers']['set'](_0x2bab35,_0x313526);}return _0x46bcf3['sort']((_0x27ff64,_0x474974)=>{const _0x4b4519=_0xd2f1a2['markers']['get']('revision:'+_0x27ff64['id']),_0x58dfb1=_0xd2f1a2['markers']['get']('revision:'+_0x474974['id']);return _0x4b4519['start']['isBefore'](_0x58dfb1['start'])?-0x1:_0x4b4519['start']['isAfter'](_0x58dfb1['start'])?0x1:_0x4b4519['end']['isBefore'](_0x58dfb1['end'])?-0x1:_0x4b4519['end']['isAfter'](_0x58dfb1['end'])?0x1:'add'===_0x27ff64['type']?-0x1:0x1;}),{'root':_0xd2f1a2,'changes':_0x46bcf3};function _0x554ad8(_0x15be74,_0x414fd7,_0x2a2e73,_0x4c6508){const _0x4c502e=!!_0x4efee1[_0x414fd7][_0x15be74],_0x37e783=_0x4c502e?_0x4efee1[_0x414fd7][_0x15be74]['userId']:null,_0x58a4b7=_0x414fd7===_0x4efee1['length']-0x1,_0x2dc0f3=_0x1c9a3a[_0x15be74][0x0],_0x537cc6=_0xaf0f8d['isObject'](_0x4efee1[_0x414fd7]['item']);!_0x5ce697[_0x15be74]&&_0x4c502e?_0x5ce697[_0x15be74]={'start':_0x2a2e73,'tapeItem':_0x4efee1[_0x414fd7],'userId':_0x37e783,'type':_0x15be74}:_0x5ce697[_0x15be74]&&!_0x4c502e?(_0x5ce697[_0x15be74]['end']=_0x2a2e73,_0x4db010(_0x5ce697[_0x15be74]),_0x5ce697[_0x15be74]=null):_0x5ce697[_0x15be74]&&_0x4c502e&&_0x5ce697[_0x15be74]['userId']!==_0x37e783&&(_0x5ce697[_0x15be74]['end']=_0x2a2e73,_0x2dc0f3&&_0x2dc0f3['userId']===_0x5ce697[_0x15be74]['userId']||_0x4db010(_0x5ce697[_0x15be74]),_0x5ce697[_0x15be74]={'start':_0x2a2e73,'tapeItem':_0x4efee1[_0x414fd7],'userId':_0x37e783,'type':_0x15be74}),_0x5ce697[_0x15be74]&&_0x537cc6&&('elementStart'!==_0x4efee1[_0x414fd7]['type']||_0x2dc0f3&&_0x2dc0f3['userId']===_0x37e783||_0x1c9a3a[_0x15be74]['unshift']({'userId':_0x37e783,'object':_0x4efee1[_0x414fd7]['item'],'change':_0x5ce697[_0x15be74]}),'elementEnd'===_0x4efee1[_0x414fd7]['type']&&_0x2dc0f3&&_0x2dc0f3['object']===_0x4efee1[_0x414fd7]['item']&&(_0x1c9a3a[_0x15be74]['shift'](),_0x5ce697[_0x15be74]=_0x2dc0f3['change'])),_0x5ce697[_0x15be74]&&_0x58a4b7&&(_0x5ce697[_0x15be74]['end']=_0x4c6508,_0x4db010(_0x5ce697[_0x15be74]),_0x5ce697[_0x15be74]=null);}function _0x4db010({start:_0x5746dc,end:_0x3df1ef,tapeItem:_0x389481,userId:_0x1d6fca,type:_0x3c45ff}){const _0x52d89b=_0x389481['item'],_0x2baa36=_0x3a8c88['schema']['isBlock'](_0x52d89b)&&!_0x3a8c88['schema']['isLimit'](_0x52d89b),_0x5174e5=_0x5746dc['nodeAfter']==_0x3df1ef['parent']&&_0x3df1ef['isAtStart'];if(_0x2baa36&&_0x5174e5)return;const _0x51be27=_0x3a8c88['createRange'](_0x5746dc,_0x3df1ef),_0x4c89c2=_0x2aeaa7['get'](_0x1d6fca),_0x4ab3c9=new r({'author':_0x4c89c2,'type':'isAdded'==_0x3c45ff||'isAddSuggestion'==_0x3c45ff?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3c45ff||'isRemoveSuggestion'==_0x3c45ff},'createdAt':new Date(),'rootName':_0x1a5260});_0x46bcf3['push'](_0x4ab3c9),_0xd2f1a2['markers']['set']('revision:'+_0x4ab3c9['id'],_0x51be27);}function _0x70727(_0x212f10,_0x349743){const _0x35249c=_0x212f10['getAttributes'](),_0x426923=_0x349743['getAttributes']();for(const _0x3986af of _0x35249c){if(_0x3986af[0x1]!==_0x349743['getAttribute'](_0x3986af[0x0]))return!0x1;_0x426923['next']();}return _0x426923['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5b72ca=>{const _0x390aed=_0x5b72ca['markerName']['split'](':')[0x1],_0x2b1a39=this['_getChangeFromId'](_0x390aed);if(!_0x2b1a39)return null;const _0x2ae7a3='add'==_0x2b1a39['type']?'insertion':'deletion',_0x48d7b1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ae7a3];return _0x2b1a39['data']['isSuggestion']&&_0x48d7b1['push']('ck-suggestion-marker-'+_0x2ae7a3+'-new'),this['activeChange']==_0x2b1a39&&_0x48d7b1['push']('ck-suggestion-marker--active'),{'classes':_0x48d7b1,'attributes':{'data-change-id':_0x390aed}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x506ed1=>{_0x506ed1['on']('element:pre',(_0x31afa4,_0x23a9b8,_0x1fa708)=>{const _0x40cdf1=_0x23a9b8['viewItem']['getChild'](0x0);if(!_0x40cdf1||!_0x40cdf1['is']('element','code'))return;if(!_0x1fa708['consumable']['consume'](_0x40cdf1,{'attributes':['vid_start','vid_end']}))return;const _0x14b28c=_0x23a9b8['modelRange']['start']['nodeAfter'];_0x1fa708['writer']['setAttribute']('vid_start',_0x40cdf1['getAttribute']('vid_start'),_0x14b28c),_0x1fa708['writer']['setAttribute']('vid_end',_0x40cdf1['getAttribute']('vid_end'),_0x14b28c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x388dc4=>{_0x388dc4['on']('element',(_0x34e5aa,_0x68eec0,_0xd65a51)=>{if(!_0xd65a51['consumable']['consume'](_0x68eec0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x68eec0['modelRange']['isCollapsed'])return;const _0x8db13=_0x68eec0['modelRange']['start']['nodeAfter'];_0x8db13['hasAttribute']('vid_start')||_0x8db13['hasAttribute']('vid')||(_0xd65a51['writer']['setAttribute']('vid_start',_0x68eec0['viewItem']['getAttribute']('vid_start'),_0x8db13),_0xd65a51['writer']['setAttribute']('vid_end',_0x68eec0['viewItem']['getAttribute']('vid_end'),_0x8db13));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x424c65=>_0x424c65['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x184a59,[,_0x7b0990])=>{['vid_start','vid_end','vid']['includes'](_0x7b0990)&&(_0x184a59['return']=!0x0,_0x184a59['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x569bf4=>{_0x569bf4['on']('attribute:vid',(_0x573458,_0x4093a0,_0x4f242c)=>{if('\x20'!=_0x4093a0['item']['data']||_0x4093a0['item']['parent']['maxOffset']>0x1)return;if(!_0x4f242c['consumable']['consume'](_0x4093a0['item'],_0x573458['name']))return;const _0x30aff0=_0x4f242c['writer'],_0x2c6a15=_0x4f242c['mapper']['toViewRange'](_0x4093a0['range']);_0x30aff0['wrap'](_0x2c6a15,_0x30aff0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e287d){const _0x264a3e=_0x4e287d['plugins']['get']('RevisionViewer');return(_0x2657ec,_0x1ebefa,_0x56055f)=>{const _0x1064b6=_0x1ebefa['markerName']['split'](':')[0x1],_0x48b610=_0x264a3e['_getChangeFromId'](_0x1064b6);if(!_0x48b610)return null;const _0xb6fc06='add'==_0x48b610['type']?'split':'merge';if(!_0x56055f['consumable']['test'](_0x1ebefa['markerRange'],_0x2657ec['name']))return;const _0x231015=_0x1ebefa['markerRange']['getWalker'](),_0x2ba57b=_0x1ebefa['markerRange']['start'],_0x3265d9=_0x4e287d['model']['schema'];let _0x18ba19=null,_0x11cecd=null,_0x463dd8=!0x1,_0x57f64f=!0x1;for(const _0xe69eff of _0x231015){const _0x315d3c=_0xe69eff['item'];_0x463dd8=_0x463dd8||_0x3265d9['isContent'](_0x315d3c);const _0x3f90ff=_0x56055f['mapper']['toViewElement'](_0x315d3c);if(_0x3f90ff&&_0x3f90ff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe69eff['type']&&(_0x3265d9['isBlock'](_0x315d3c)&&!_0x3265d9['isLimit'](_0x315d3c)&&(_0x315d3c['nextSibling']||_0x2ba57b['isAtEnd']?_0x18ba19&&_0x18ba19['parent']==_0x315d3c||(_0x18ba19=_0x315d3c,_0x2a9891(_0xe69eff['previousPosition']),_0x57f64f=!0x0):_0x11cecd=_0x11cecd||_0xe69eff['previousPosition']));}function _0x2a9891(_0x316bd2){const _0x586c7c=_0x56055f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb6fc06}),_0x397ba0=_0x56055f['mapper']['toViewPosition'](_0x316bd2);_0x48b610['data']['isSuggestion']&&_0x56055f['writer']['addClass']('ck-suggestion-marker-'+_0xb6fc06+'-new',_0x586c7c),_0x264a3e['activeChange']==_0x48b610&&_0x56055f['writer']['addClass']('ck-suggestion-marker--active',_0x586c7c),_0x56055f['writer']['insert'](_0x397ba0,_0x586c7c),_0x56055f['mapper']['bindElementToMarker'](_0x586c7c,_0x1ebefa['markerName']);}_0x463dd8||_0x57f64f||!_0x11cecd||_0x2a9891(_0x11cecd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb995d5,_0x3e3dfd,_0x4181cf)=>{const _0x1242f2=_0x4181cf['mapper']['markerNameToElements'](_0x3e3dfd['markerName']);if(_0x1242f2){for(const _0x39eb28 of _0x1242f2)(_0x39eb28['hasClass']('ck-suggestion-marker-split')||_0x39eb28['hasClass']('ck-suggestion-marker-merge'))&&(_0x4181cf['mapper']['unbindElementFromMarkerName'](_0x39eb28,_0x3e3dfd['markerName']),_0x4181cf['writer']['remove'](_0x39eb28));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x86f86b,_0x1d4a13,_0x16cdb9)=>{const _0xe52ec4=_0x1d4a13['markerName']['split'](':')[0x1],_0x421a7a=this['_getChangeFromId'](_0xe52ec4);if(!_0x421a7a)return null;const _0x4fe424='add'==_0x421a7a['type']?'split':'merge';if(_0x16cdb9['consumable']['test'](_0x1d4a13['markerRange'],_0x86f86b['name']))for(const _0x1d4e5c of _0x1d4a13['markerRange']['getItems']()){if(!_0x1d4e5c['is']('element','softBreak'))continue;const _0x5df5fd=_0x16cdb9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fe424}),_0x3941b8=_0x16cdb9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1d4e5c));_0x421a7a['data']['isSuggestion']&&_0x16cdb9['writer']['addClass']('ck-suggestion-marker-'+_0x4fe424+'-new',_0x5df5fd),this['activeChange']==_0x421a7a&&_0x16cdb9['writer']['addClass']('ck-suggestion-marker--active',_0x5df5fd),_0x16cdb9['writer']['insert'](_0x3941b8,_0x5df5fd),_0x16cdb9['mapper']['bindElementToMarker'](_0x5df5fd,_0x1d4a13['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x13c492=>{for(const _0x16d7b8 of this['editor']['model']['document']['getRootNames']()){const _0x3cabbb=this['editor']['model']['document']['getRoot'](_0x16d7b8),_0xb8a2c6=this['editor']['editing']['view']['document']['getRoot'](_0x16d7b8);if(_0xb8a2c6){const _0x2a5ed2=_0x3cabbb['getAttribute']('revisionHistoryAttachChange');if(_0x13c492['removeAttribute']('data-change-id',_0xb8a2c6),_0x13c492['removeClass']('ck-revision-history-root-add',_0xb8a2c6),_0x13c492['removeClass']('ck-revision-history-root-remove',_0xb8a2c6),_0x13c492['removeClass']('ck-revision-history-root--active',_0xb8a2c6),_0x2a5ed2){const _0x373fc4=this['_getChangeFromId'](_0x2a5ed2);if(!_0x373fc4)return null;_0x13c492['setAttribute']('data-change-id',_0x2a5ed2,_0xb8a2c6),_0x13c492['addClass']('ck-revision-history-root-'+_0x373fc4['type'],_0xb8a2c6),this['activeChange']==_0x373fc4&&_0x13c492['addClass']('ck-revision-history-root--active',_0xb8a2c6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x41d6ef=>'revision-comment:'+_0x41d6ef,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa18f3b=>'revision-suggestion:'+_0xa18f3b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x12d591=>({'name':'suggestion:'+_0x12d591,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2a774b=>{const _0x3e6295=_0x2a774b['markerName']['split'](':')[0x1];return'insertion'!=_0x3e6295&&'deletion'!=_0x3e6295?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e6295]};}}),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',(_0xad1427,_0x59adf6,_0x106550)=>{const _0x516da7=_0x106550['mapper']['markerNameToElements'](_0x59adf6['markerName']);if(_0x516da7){for(const _0x3aa79f of _0x516da7)_0x3aa79f['is']('uiElement')&&(_0x106550['mapper']['unbindElementFromMarkerName'](_0x3aa79f,_0x59adf6['markerName']),_0x106550['writer']['remove'](_0x3aa79f));}},{'priority':'high'});}['_getChangeFromId'](_0x46ba20){return this['_changeIdToChange']['get'](_0x46ba20);}['_getViewForChange'](_0x4b5664){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4b5664),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4fc261,_0x50b4ad,_0x1295c8,_0xbf35fd)=>{_0xbf35fd&&this['_balloon']['remove'](_0xbf35fd),_0x1295c8&&(this['_balloon']['add']({'view':_0x1295c8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c66d3=this['editor']['editing'],_0x40d0ae=this['_getChangeFromId'](_0x1295c8['changeId']);let _0x89b6c9;if(_0x40d0ae['data']['isOnRoot']){const _0x29f639=_0x2c66d3['view']['getDomRoot'](_0x40d0ae['rootName']);_0x89b6c9=Array['from'](_0x29f639['getClientRects']());}else{const _0x4f66b0=this['editor']['model']['markers']['get']('revision:'+_0x1295c8['changeId']);_0x89b6c9=Array['from'](_0x2c66d3['mapper']['markerNameToElements'](_0x4f66b0['name']))['map'](_0x498d0b=>_0x2c66d3['view']['domConverter']['mapViewToDom'](_0x498d0b))['map'](_0x1a9755=>Array['from'](_0x1a9755['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x89b6c9[0x0];return _0x89b6c9['find'](_0x1bbcd2=>_0x1bbcd2['top']-0x3<=this['_activeViewTarget']['y']&&_0x1bbcd2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1bbcd2['left']-0x3<=this['_activeViewTarget']['x']&&_0x1bbcd2['right']+0x3>=this['_activeViewTarget']['x'])||_0x89b6c9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x7cef32,_0x418dbb,_0xb0351,_0xd2cf95)=>{this['activeView']=_0xb0351?this['_getViewForChange'](_0xb0351):null,this['editor']['model']['change'](()=>{const _0x39fac0=this['editor']['editing'];_0xd2cf95&&(_0xd2cf95['data']['isOnRoot']?_0x39fac0['view']['change'](_0x54a149=>{_0x54a149['removeClass']('ck-revision-history-root--active',_0x39fac0['view']['document']['getRoot'](_0xd2cf95['rootName']));}):_0x39fac0['reconvertMarker']('revision:'+_0xd2cf95['id'])),_0xb0351&&(_0xb0351['data']['isOnRoot']?_0x39fac0['view']['change'](_0x547f18=>{_0x547f18['addClass']('ck-revision-history-root--active',_0x39fac0['view']['document']['getRoot'](_0xb0351['rootName']));}):_0x39fac0['reconvertMarker']('revision:'+_0xb0351['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3c307b,_0x450476)=>{if(this['activeChange'])return;const _0x2f3ecd=this['_findChangeIdFromDomTarget'](_0x450476['target']),_0x4c3d6d=this['_changeIdToChange']['get'](_0x2f3ecd);_0x4c3d6d?(this['_activeViewTarget']={'x':_0x450476['domEvent']['x'],'y':_0x450476['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4c3d6d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3cc916,_0x5ae548)=>{const _0x5895d4=this['_findChangeIdFromDomTarget'](_0x5ae548['target']),_0xab0a2e=this['_changeIdToChange']['get'](_0x5895d4);_0xab0a2e?(this['_activeViewTarget']={'x':_0x5ae548['domEvent']['x'],'y':_0x5ae548['domEvent']['y']},_0xab0a2e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xab0a2e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x48d0e7){do{const _0x4b1005=_0x48d0e7['getAttribute']('data-change-id');if(_0x4b1005)return _0x4b1005;_0x48d0e7=_0x48d0e7['parent'];}while(_0x48d0e7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2bc386=>{for(const _0x711f74 of this['editor']['model']['markers'])_0x2bc386['removeMarker'](_0x711f74);});}}function Z(_0x470893,_0x409b9a){return(_0x3685b8,_0x376d2f,_0x588b1e)=>{if(!_0x588b1e['consumable']['test'](_0x376d2f['markerRange'],_0x3685b8['name']))return;const _0xbeaf62=_0x376d2f['markerRange']['getWalker'](),_0xde9aea=_0x376d2f['markerRange']['start'],_0x1656f2=_0x470893['model']['schema'];let _0x32d620=null,_0x2ac70c=null,_0x476a7c=!0x1,_0x3e857e=!0x1;for(const _0x227d5f of _0xbeaf62){const _0xcd90f1=_0x227d5f['item'];_0x476a7c=_0x476a7c||_0x1656f2['isContent'](_0xcd90f1);const _0x247b8a=_0x588b1e['mapper']['toViewElement'](_0xcd90f1);if(_0x247b8a&&_0x247b8a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x227d5f['type']&&(_0x1656f2['isBlock'](_0xcd90f1)&&!_0x1656f2['isLimit'](_0xcd90f1)&&(_0xcd90f1['nextSibling']||_0xde9aea['isAtEnd']?_0x32d620&&_0x32d620['parent']==_0xcd90f1||(_0x32d620=_0xcd90f1,_0x4479db(_0x227d5f['previousPosition']),_0x3e857e=!0x0):_0x2ac70c=_0x2ac70c||_0x227d5f['previousPosition']));}function _0x4479db(_0xf4ef3f){const _0x154421=_0x588b1e['mapper']['toViewPosition'](_0xf4ef3f),_0x58cb00=_0x588b1e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x409b9a});_0x588b1e['writer']['insert'](_0x154421,_0x58cb00),_0x588b1e['mapper']['bindElementToMarker'](_0x58cb00,_0x376d2f['markerName']);}_0x476a7c||_0x3e857e||!_0x2ac70c||_0x4479db(_0x2ac70c);};}class wt extends _0x969d2d{constructor(_0x5584ac){super(_0x5584ac);const _0x31e2c5=_0x5584ac['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x31e2c5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x31e2c5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x256254=this['editor'],_0x388145=_0x256254['plugins']['get'](d),_0x44ce00=_0x388145['isReady']?_0x388145['diff']['newRevisionId']:null;_0x256254['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x44ce00);}['refresh'](){const {isReady:_0x4cae8f,isEnabled:_0x38b581,repository:_0x42bdde,diff:_0x12a9df}=this['editor']['plugins']['get'](d),_0x3204e3=_0x12a9df&&_0x42bdde['getLaterVisibleRevision'](_0x12a9df['newRevisionId']);this['isEnabled']=_0x4cae8f&&_0x38b581&&Boolean(_0x3204e3);}}class _t extends _0x969d2d{['_step'];constructor(_0x5e673c,{direction:_0x1ff181}){super(_0x5e673c);const _0x19aa55=_0x5e673c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1ff181?0x1:-0x1,this['listenTo'](_0x19aa55,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x19aa55,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x19aa55,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12d114=this['editor'],_0x3a6eac=_0x12d114['plugins']['get'](d),{isNavigationMode:_0x65071d,currentChangeNumber:_0x3a87e9}=_0x3a6eac;let _0xc7694a;if(_0x3a6eac['activeChange']=_0x65071d?_0x3a6eac['diff']['changes']['get'](_0x3a87e9+this['_step']):_0x3a6eac['diff']['changes']['first'],_0x3a6eac['activeChange']['data']['isOnRoot'])_0xc7694a=_0x12d114['editing']['view']['getDomRoot'](_0x3a6eac['activeChange']['rootName']);else{const _0x3b071a=_0x12d114['model']['markers']['get']('revision:'+_0x3a6eac['activeChange']['id']);_0xc7694a=_0x25477c(_0x12d114['editing'],_0x3b071a);}_0x498fcc({'target':_0xc7694a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x56ce3e,currentChangeNumber:_0x73ac43,numberOfChanges:_0x5e4fcc,isReady:_0x18f7d1,isEnabled:_0x4cdc33}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4cdc33&&_0x18f7d1&&_0x5e4fcc)&&(!_0x56ce3e||(0x1===this['_step']?_0x73ac43<_0x5e4fcc-0x1:_0x73ac43>0x0));}}class _i extends ts{constructor(_0x5700a2){super(_0x5700a2);const _0x4c015a=this['bindTemplate'],_0x359dec=new te(_0x5700a2),_0x15baf6=new te(_0x5700a2);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',(_0x384315,_0x48a8a7)=>_0x384315&&_0x48a8a7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3c92e2,_0x54a775,_0x16330c,_0x2fab05)=>{if(!_0x3c92e2)return m(_0x5700a2,'Loading...');if(!_0x16330c)return m(_0x5700a2,'No\x20changes');const _0x460789=m(_0x5700a2,'NUMBER_OF_CHANGES',_0x16330c);return _0x2fab05?m(_0x5700a2,'X_OF_Y_CHANGES',[_0x54a775+0x1,_0x16330c]):_0x460789;}),_0x359dec['set']({'label':m(_0x5700a2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1fd3a6}),_0x15baf6['set']({'label':m(_0x5700a2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x27dfe9}),_0x359dec['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x15baf6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x359dec['on']('execute',()=>this['fire']('execute','backward')),_0x15baf6['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',_0x4c015a['if']('_isStatusLabelVisible','ck-hidden',_0x1d6e68=>!_0x1d6e68)]},'children':[{'text':_0x4c015a['to']('isNavigationMode',_0x123763=>_0x123763?m(_0x5700a2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5700a2,'Total')+':\x20')}]},{'text':_0x4c015a['to']('_statusText')}]},new _0x5bb69f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x359dec,_0x15baf6]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x118fc5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xa93245=this['editor']['editing']['view'];_0xa93245['change'](_0x2ec4be=>{for(const _0xf82abb of _0xa93245['document']['roots'])_0x2ec4be['addClass'](le,_0xf82abb);});}['hide'](){const _0x5c4106=this['editor']['editing']['view'];_0x5c4106['change'](_0x1e8834=>{for(const _0x418e03 of _0x5c4106['document']['roots'])_0x1e8834['removeClass'](le,_0x418e03);});}}class w extends _0x118fc5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x5fa392=this['editor'],_0x5dd0ab=_0x5fa392['plugins']['get'](d),_0x4e9c9d=_0x5fa392['plugins']['get'](ge);_0x5fa392['ui']['componentFactory']['add']('exitToEditing',_0x475c91=>{const _0x38b6f1=new te(_0x475c91);return _0x38b6f1['set']({'label':m(_0x475c91,'Back\x20to\x20editing'),'icon':_0x5ec5f7,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x38b6f1,'execute',()=>{_0x5fa392['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x38b6f1;}),_0x5fa392['ui']['componentFactory']['add']('restoreRevision',_0x496cde=>{const _0x211c4f=new te(_0x496cde);return _0x211c4f['set']({'label':m(_0x496cde,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x211c4f['bind']('isEnabled')['to'](_0x5fa392['commands']['get']('restoreRevision')),this['listenTo'](_0x211c4f,'execute',()=>_0x5fa392['execute']('restoreRevision')),_0x211c4f;}),_0x5fa392['ui']['componentFactory']['add']('changesNavigation',_0x330a8e=>{const _0x2c12f1=new _i(_0x330a8e),_0x4e62aa=_0x5fa392['commands']['get']('showPreviousChange'),_0x26489e=_0x5fa392['commands']['get']('showNextChange');return _0x2c12f1['bind']('isBackwardNavigationEnabled')['to'](_0x4e62aa,'isEnabled'),_0x2c12f1['bind']('isForwardNavigationEnabled')['to'](_0x26489e,'isEnabled'),_0x2c12f1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5dd0ab),this['listenTo'](_0x2c12f1,'execute',(_0x1e488c,_0x3575cd)=>{_0x5fa392['execute']('forward'===_0x3575cd?'showNextChange':'showPreviousChange');}),_0x2c12f1;}),_0x4e9c9d['show'](),_0x5dd0ab['on']('change:isReady',(_0x347ec6,_0x5b5ab1,_0x332d07)=>{_0x332d07?_0x4e9c9d['hide']():_0x4e9c9d['show']();});}}class pt extends _0x3f0de8{['_resizeObserver']=null;constructor(_0x39cbce,_0x34c37b){super(_0x39cbce,_0x34c37b);const _0x335b79=this['bindTemplate'];this['set']({'label':m(_0x39cbce,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x39cbce,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x335b79['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 _0x134b1a=this['fieldView']['element'];this['_tooltipString']=_0x134b1a['scrollWidth']>_0x134b1a['clientWidth']&&_0x134b1a['value']||'';}}class si extends ts{constructor(_0x1091d3,_0x20b343,_0xb65fa5){super(_0x1091d3);const _0x3f2198=new _0x1f0c9d();_0x3f2198['set']({'content':_0x1c5cb8,'viewBox':'0\x200\x2011\x2010'});const _0x1c1724=['ck','ck-revision-history-sidebar__revision-author'];_0xb65fa5&&_0x1c1724['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4117d8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1091d3,_0xb65fa5?'Revision\x20creator':'Revision\x20author')},'children':[_0x3f2198,_0x20b343['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1c1724},'children':_0x4117d8});}}function oi(_0x31d47e,_0x3ef7f1){const _0x5bb0c8=_0x31d47e['bindTemplate'],_0xb3ac95=_0x31d47e['locale'],_0xb8ebc7=_0x243ed3(_0xb3ac95);_0xb8ebc7['panelPosition']='sw';const _0x51515f=function(_0x53389f,_0x59b315){const _0x206446=function(_0x3efab0,_0x3ebde6){const _0x1a7df3=_0x3efab0['locale'],_0x266426={'Compare\x20against\x20selected':m(_0x1a7df3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1a7df3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1a7df3,'Restore\x20this\x20revision')};return _0x3ebde6['map'](_0x5400a4=>{const _0x3f5afd=_0x266426[_0x5400a4['name']];return _0x3f5afd&&_0x3f5afd!==_0x5400a4['name']&&(_0x5400a4['name']=_0x3f5afd),_0x5400a4;});}(_0x53389f,_0x59b315),_0x24c022=new _0x3e452a();for(const _0x59312b of _0x206446){const _0x22dd47={'type':'button','model':new to({'label':_0x59312b['name'],'class':_0x59312b['class'],'withText':!0x0,'role':'menuitem','_action':_0x59312b['action']})};_0x22dd47['model']['bind']('isEnabled')['to'](_0x53389f,'isActionsDropdownOpen',_0x3f4f6e=>'function'!=typeof _0x59312b['isEnabled']||(!_0x3f4f6e||_0x59312b['isEnabled'](_0x53389f))),_0x24c022['add'](_0x22dd47);}return _0x24c022;}(_0x31d47e,_0x3ef7f1);return _0x31d47e['bind']('isActionsDropdownOpen')['to'](_0xb8ebc7,'isOpen'),_0xb8ebc7['buttonView']['set']({'label':m(_0xb3ac95,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3cf2be}),_0xb8ebc7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5bb0c8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5bb0c8['to'](_0x1beb17=>_0x1beb17['stopPropagation']())}}),_0xb8ebc7['on']('execute',_0x49039a=>{_0x31d47e['isReady']&&'function'==typeof _0x49039a['source']['_action']&&_0x49039a['source']['_action'](_0x31d47e);}),_0x370af3(_0xb8ebc7,_0x51515f,{'role':'menu'}),_0xb8ebc7['listenTo'](_0x31d47e,'change:isActionsDropdownOpen',(_0x4361b1,_0x120935,_0x2d5aae)=>{if(_0x2d5aae)for(const _0xa2188a of _0xb8ebc7['listView']['items']){const _0x121a17=_0xa2188a['children']['first'],_0x3adc58=_0x3ef7f1['find'](_0x22055d=>_0x22055d['action']===_0x121a17['_action'])['isVisible'];_0xa2188a['isVisible']=void 0x0===_0x3adc58||_0x3adc58(_0x31d47e);}}),_0xb8ebc7;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x515f9d,_0x164594,_0x341e6a,_0x6fb572){super(_0x515f9d);const _0x290932=this['bindTemplate'],_0x1e87fb=function(_0xb051d,_0x24cf84){const _0x1a7fbd=Array['from'](_0x24cf84['authors'])['filter'](_0x1037ca=>_0x1037ca!=_0x24cf84['creator']);return _0x24cf84['creator']&&_0x1a7fbd['unshift'](_0x24cf84['creator']),_0x1a7fbd['map'](_0x3dbeab=>new si(_0xb051d,_0x3dbeab,_0x3dbeab==_0x24cf84['creator']));}(_0x515f9d,_0x164594);this['id']=_0x164594['id'],this['_revision']=_0x164594,this['_requireRevisionName']=_0x6fb572,this['bind']('name','createdAt')['to'](_0x164594),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2ea6f8=>{return _0x3a8cef=_0x515f9d['uiLanguage'],(_0x1708ba=_0x2ea6f8)['toLocaleDateString'](_0x3a8cef,{'month':'long','day':'numeric'})+',\x20'+_0x1708ba['toLocaleTimeString'](_0x3a8cef,{'hour':'numeric','minute':'numeric'});var _0x3a8cef,_0x1708ba;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x515f9d,_0x153297),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x7ac68f=>_0x7ac68f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x529673,_0x2429f1)=>_0x529673&&_0x2429f1),this['revisionActionsView']=_0x341e6a&&_0x341e6a['length']?oi(this,_0x341e6a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x290932['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x290932['if']('isEnabled','ck-disabled',_0xd31409=>!_0xd31409),_0x290932['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x290932['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x290932['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':_0x290932['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':_0x1e87fb}]},this['revisionActionsView']],'on':{'click':_0x290932['to'](_0x2e925d=>{_0x2e925d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x80520d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x80520d,'change',()=>{this['_requireRevisionName']&&!_0x80520d['value']||this['fire']('setName',{'id':this['id'],'name':_0x80520d['value']}),_0x80520d['value']||(_0x80520d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x5a6535,_0x5d8dd4){const _0xdbfa02=_0x140512['fromJSDate'](_0x5a6535)['setLocale'](_0x5d8dd4),_0x226f16=_0x140512['local'](),_0x65cdbd=_0x226f16['minus']({'days':0x1})['startOf']('day');let _0xf31ab6,_0x410851;return _0xdbfa02['hasSame'](_0x226f16,'day')?(_0xf31ab6=_0xdbfa02['startOf']('day')['toJSDate'](),_0x410851=_0xdbfa02['toRelativeCalendar']()):_0xdbfa02['hasSame'](_0x65cdbd,'day')?(_0xf31ab6=_0x65cdbd['toJSDate'](),_0x410851=_0xdbfa02['toRelativeCalendar']()):_0xdbfa02['hasSame'](_0x226f16,'week')?(_0xf31ab6=_0xdbfa02['startOf']('week')['toJSDate'](),_0x410851=_0xdbfa02['weekdayLong']||''):_0xdbfa02['hasSame'](_0x226f16,'year')?(_0xf31ab6=_0xdbfa02['startOf']('month')['toJSDate'](),_0x410851=_0xdbfa02['monthLong']||''):(_0xf31ab6=_0xdbfa02['startOf']('year')['toJSDate'](),_0x410851=String(_0xdbfa02['year'])),{'startDate':_0xf31ab6,'localizedPeriodName':_0x410851};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x26258a,_0x2c7fbe,_0x5e7585,_0x4580af){super(_0x26258a);const _0x294802=ai(_0x2c7fbe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2c7fbe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5e7585,this['_requireRevisionName']=_0x4580af,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':_0x294802}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x17c52d){const _0x2e3681=new hi(this['locale'],_0x17c52d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2e3681);}['removeRevision'](_0x1219bd){const _0x339c45=this['revisionViews']['find'](_0x2b63b9=>_0x2b63b9['id']===_0x1219bd['id']);this['revisionViews']['remove'](_0x339c45);}}class as extends ts{constructor(_0x38fee1){super(_0x38fee1);const _0x4475d0=new _0x1f0c9d();_0x4475d0['content']=_0x4709ad,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4475d0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x38fee1,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35463d,_0x98f370,_0x12cfcd,_0x23d2ef){super(_0x35463d);const _0x402938=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x98f370,this['_revisionActions']=_0x12cfcd,this['_requireRevisionName']=_0x23d2ef,this['on']('select',(_0x2bdc85,_0x4fb382)=>{this['fire']('revisionSelected',_0x4fb382);}),this['on']('setName',(_0x300105,_0x408a60)=>{this['fire']('revisionSetName',_0x408a60);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x35463d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x402938['if']('isEnabled','ck-disabled',_0x40eda8=>!_0x40eda8)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x7abcdb of this['_revisions'])this['_addRevision'](_0x7abcdb);this['_revisions']['on']('add',(_0x2ab0c7,_0x2bfef5)=>{this['_addRevision'](_0x2bfef5);}),this['_revisions']['on']('remove',(_0x8aac7d,_0x3c1540)=>{this['_removeRevision'](_0x3c1540);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x16c31c=>_0x16c31c['revisionViews']['map'](_0x4077a6=>_0x4077a6))['flat']();}['selectRevision'](_0x53964e){for(const _0x291775 of this['revisionViews'])_0x53964e&&_0x53964e['id']===_0x291775['id']?_0x291775['select']():_0x291775['deselect']();}['highlightRevisions'](_0x20926f){for(const _0x5a8a65 of this['revisionViews'])_0x20926f['some'](({id:_0x286b45})=>_0x286b45===_0x5a8a65['id'])?_0x5a8a65['highlight']():_0x5a8a65['unhighlight']();}['_addRevision'](_0x150971){const _0x30965e=ai(_0x150971['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5d21b8=this['timePeriodViews']['get'](0x0);_0x5d21b8&&_0x5d21b8['startDate']['getTime']()===_0x30965e['getTime']()||(_0x5d21b8=new di(this['locale'],_0x30965e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5d21b8)),_0x5d21b8['addRevision'](_0x150971);}['_removeRevision'](_0x49a66e){const _0x339c59=ai(_0x49a66e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x339c59)['removeRevision'](_0x49a66e);}['_getTimePeriodViewByStartDate'](_0x4d9903){return this['timePeriodViews']['find'](_0x252c69=>_0x252c69['startDate']['getTime']()===_0x4d9903['getTime']());}}class g extends _0x118fc5{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1c01af,_0xbf97b4){super(_0xbf97b4),this['sourceElement']=_0x1c01af,this['model']['document']['createRoot']();const _0x5d6424=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5d6424);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3d75d1,_0xa267b4){const _0x1d3ce2=new this(_0x3d75d1,_0xa267b4);return await _0x1d3ce2['initPlugins'](),await _0x1d3ce2['ui']['init'](_0x3d75d1),await _0x1d3ce2['data']['init'](_0x1d3ce2['config']['get']('initialData')||''),_0x1d3ce2['fire']('ready'),_0x1d3ce2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1c29cb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17d31e){function _0x133ed2(_0xedb29c){return _0xedb29c['map'](_0x969c98=>String['fromCharCode'](_0x969c98))['join']('');}super(_0x17d31e),this['result']='end',_0x17d31e[_0x133ed2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x133ed2([0x76,0x69,0x65,0x77])][_0x133ed2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x133ed2([0x61,0x75,0x74,0x6f]),_0x17d31e[_0x133ed2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x133ed2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x133ed2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x133ed2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x133ed2([0x6f,0x6b])});}}class k extends _0x1c29cb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1c5dcf){if(super(_0x1c5dcf),!this['editor']['config']['get']('revisionHistory'))throw new _0xbe1dfd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4cc3b3=>this['_showRevisionViewer']({..._0x4cc3b3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3c01c8=>this['_closeRevisionViewer'](_0x3c01c8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5b05e5=>this['_restoreRevision'](_0x5b05e5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2d64e4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2d64e4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2d2616){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2d2616);}['getRevision'](_0x2dc578){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2dc578);}['getRevisions'](_0x2de461){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2de461||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b35fc=this['editor'],_0x1b0293=_0x43e183(_0x1b35fc,p),_0x20e210=_0x1b35fc['plugins']['get']('RevisionTracker'),_0x4cb705=_0x1b35fc['plugins']['get']('Users')['users'];return _0x1b0293['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b0293['lazyRoots'],(_0x1b0293['plugins']['push'](Rt,d,w,class extends _0x1c29cb{static get['requires'](){return[d,'Users'];}['init'](){const _0x1e90b7=this['editor']['plugins']['get']('Users');for(const _0x186b27 of _0x4cb705)_0x186b27['isAnonymous']||_0x1e90b7['getUser'](_0x186b27['id'])||_0x1e90b7['addUser'](_0x186b27);const _0x1ebf31=_0x20e210['repository']['getRevisions']();let _0x30f627=null;const _0x10232f=this['editor']['plugins']['get']('RevisionViewer');_0x10232f['adapter']=_0x20e210['adapter'],_0x10232f['bind']('isEnabled')['to'](_0x20e210),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b35fc,'isReadOnly',_0x382c18=>!_0x382c18);for(const _0x24c18d of _0x1ebf31){const _0x423445=null===_0x24c18d['creator'];if(_0x423445&&_0x24c18d['toVersion']===_0x24c18d['fromVersion'])continue;const _0x3dbd6f=_0x24c18d['toJSON']();_0x10232f['addRevisionData'](_0x3dbd6f,(_0xadaed3,_0xe638bf,_0x4864ec)=>{if(_0x423445){if(_0x30f627)_0x30f627['_update'](_0xadaed3,_0xe638bf);else{if(!_0xe638bf){const _0x2c942a=_0x4864ec['toJSON']();_0x2c942a['id']=_0x535b38(),_0x20e210['saveRevision'](_0x2c942a,_0x4864ec['toVersion'])['then'](_0x4ba8f6=>{_0x30f627=_0x4ba8f6;});}}}else _0x24c18d['_update'](_0xadaed3,_0xe638bf);});}}},g),_0x1b0293);}['_enhanceShowRevisionViewerCallback'](){const _0x26735f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x512ee5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x47fa74=this['editor']['plugins']['get']('Autosave');await _0x47fa74['save']();}else await _0x512ee5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3c3ad9=this['editor']['plugins']['get']('Dialog');_0x3c3ad9['isOpen']&&_0x3c3ad9['hide']();}const _0x1a63e2=this['_getRevisionViewerEditorConfig']();return _0x26735f(_0x1a63e2)['then'](_0x4b632e=>{return(this['_viewerEditor']=_0x4b632e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4b632e;})['catch'](_0x1257cc=>(console['error'](_0x1257cc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1bf20e=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'](),_0x1bf20e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x22de7b=this['editor']['plugins']['get']('Annotations');_0x22de7b['refreshVisibility'](),_0x22de7b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2d3b46){const _0x35c833=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5973d2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x15edb8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x15edb8,_0x2d3b46)['then'](_0x484ddd=>(_0x5973d2['style']['display']='block',_0x35c833['style']['display']='none',_0x484ddd));}['_closeRevisionViewer'](_0x1f140f){const _0x2eb581=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2eb581['style']['display']='',_0x1f140f['destroy']();}async['_restoreRevision'](_0x1fcbea){const _0x572242=this['editor'],_0x5ce731=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xf65bd1=_0x572242['plugins']['get']('RevisionTracker'),_0x3d96d4=_0x5ce731['repository']['getRevision'](_0x1fcbea);let _0x32408a,_0x83dd1e,_0x33ab68;try{_0x32408a=await _0x5ce731['getRevisionData'](_0x3d96d4),_0x83dd1e=await _0x5ce731['getRevisionRootsAttributes'](_0x3d96d4);}catch(_0x4aa884){return void console['error'](_0x4aa884);}_0x572242['model']['change'](_0x54d03a=>{for(const _0x31e3cd of Array['from'](_0x572242['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54d03a['removeMarker'](_0x31e3cd);}),_0x5ce731['isReady']=!0x1,_0x572242['model']['enqueueChange'](_0x3eaa54=>{_0x3eaa54['setSelection'](null),_0x3eaa54['removeSelectionAttribute'](_0x572242['model']['document']['selection']['getAttributeKeys']());const _0x52627b=Object['keys'](_0x32408a);for(const _0x1cc061 of _0x572242['model']['document']['roots'])'$graveyard'!=_0x1cc061['rootName']&&_0x1cc061['isAttached']()&&!_0x52627b['includes'](_0x1cc061['rootName'])&&_0x3eaa54['detachRoot'](_0x1cc061);for(const _0x107016 of _0x52627b){let _0x35f927=_0x572242['model']['document']['getRoot'](_0x107016);_0x35f927&&_0x35f927['isAttached']()||(_0x35f927=_0x3eaa54['addRoot'](_0x107016));const _0x5d49be=_0x83dd1e[_0x107016],_0x48d3b9=Object['keys'](_0x5d49be),_0xfa4eb0=_0x32408a[_0x107016];for(const _0xfb2646 of _0x35f927['getAttributeKeys']())_0x48d3b9['includes'](_0xfb2646)||_0x3eaa54['removeAttribute'](_0xfb2646,_0x35f927);for(const _0x5a699d of _0x48d3b9)_0x3eaa54['setAttribute'](_0x5a699d,_0x83dd1e[_0x107016][_0x5a699d],_0x35f927);_0x3eaa54['remove'](_0x3eaa54['createRangeIn'](_0x35f927)),_0x3eaa54['insert'](_0x572242['data']['parse'](_0xfa4eb0,_0x35f927),_0x35f927,0x0);}});const _0xc6d4c8=m(_0x572242['locale'],'Restored');if(_0x3d96d4['name'])_0x33ab68=-0x1==_0x3d96d4['name']['indexOf'](_0xc6d4c8)?_0xc6d4c8+':\x20'+_0x3d96d4['name']:_0x3d96d4['name'];else _0x33ab68=_0xc6d4c8+':\x20'+(_0x3d96d4['createdAt']['toLocaleDateString'](_0x572242['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3d96d4['createdAt']['toLocaleTimeString'](_0x572242['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xf65bd1['saveRevision']({'name':_0x33ab68}),_0x5ce731['isReady']=!0x0,_0x572242['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x59aa1e){super(_0x59aa1e),this['_revisionViewer']=_0x59aa1e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x429fb9=this['_revisionsRepository']['_revisions'],_0x53fffe=this['_createRevisionActions'](),_0x222c6c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x429fb9,_0x53fffe,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',(_0x2fb1ee,_0x178363)=>{_0x178363['revisionViews']['on']('add',(_0x5095d2,_0x9e693d)=>{_0x9e693d['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)),_0x222c6c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a5d02=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a5d02){const _0x198803=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a5d02['id']);this['_revisionViewer']['compare'](_0x4a5d02,_0x198803);}}['_handleRevisionSelected'](_0x18ab7c,_0x35cc4a){const _0x36839b=this['_revisionsRepository']['getRevision'](_0x35cc4a['id']),_0x2f8591=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36839b['id']);this['_revisionViewer']['compare'](_0x36839b,_0x2f8591);}['_handleRevisionSetName'](_0x399a8f,_0x38823c){this['_revisionsRepository']['getRevision'](_0x38823c['id'])['setName'](_0x38823c['name']);}['_handleDiffChange'](_0x22ee2c,_0x4732f2,_0x268a8e){const _0x20e374=this['_revisionsRepository']['getRevisionsInDiff'](_0x268a8e);_0x20e374['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x20e374),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x20e374[0x0]));}['_createRevisionActions'](){const _0x2732b9=this['editor'],_0xfe746c=g['availableRevisionActions'],_0x5d4ece=_0x2732b9['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5d4ece['length'])return _0x5d4ece['map'](_0x213567=>{const _0x4c0fac='string'==typeof _0x213567?Object['assign']({},_0xfe746c[_0x213567]):_0x213567;return _0x4c0fac['action']=_0x4c0fac['action']['bind'](this,_0x2732b9),_0x4c0fac['isVisible']&&(_0x4c0fac['isVisible']=_0x4c0fac['isVisible']['bind'](this,_0x2732b9)),_0x4c0fac;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x331d00},_0x70baa0)=>{const _0x56a7a9=_0x331d00['get'](d),_0x1a5a2c=_0x56a7a9['repository'];let _0x28d2cf=_0x56a7a9['diff']['newRevisionId'],_0x3356ba=_0x70baa0['id'];_0x1a5a2c['getIndex'](_0x28d2cf)>_0x1a5a2c['getIndex'](_0x3356ba)&&([_0x28d2cf,_0x3356ba]=[_0x3356ba,_0x28d2cf]),_0x56a7a9['compare'](_0x28d2cf,_0x3356ba);},'isVisible':({plugins:_0x449385},_0xfdb12c)=>{const _0x6e2682=_0x449385['get'](d);return!(_0x6e2682['repository']['getRevisionsInDiff'](_0x6e2682['diff'])['length']>0x2)&&!_0xfdb12c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x373bdd,{id:_0x2f7abe})=>{_0x373bdd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f7abe);},'isVisible':({plugins:_0x3690e5},_0x45bc37)=>!!_0x3690e5['get'](d)['repository']['getLaterVisibleRevision'](_0x45bc37['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x36b6ed},{id:_0x4a242b,revisionNameView:_0x40d6e1})=>{const _0x4da4eb=_0x36b6ed['get'](d),_0x4635a1=_0x4da4eb['repository']['getEarlierVisibleRevision'](_0x4a242b);_0x4da4eb['compare'](_0x4a242b,_0x4635a1),_0x40d6e1['focus'](),_0x40d6e1['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2215ec,_0x2b926c){super(_0x2215ec),this['_view']=_0x2b926c,this['_toolbarConfig']=ot(_0x2215ec['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x565fff){const _0x2830dd=this['editor'],_0xc749a9=this['view'],_0x4edf99=_0x2830dd['editing']['view'],_0x3d2797=_0xc749a9['editable'],_0xbc9187=_0x4edf99['document']['getRoot']();_0x3d2797['name']=_0xbc9187['rootName'],_0xc749a9['render']();const _0xf8c693=_0x3d2797['element'];this['setEditableElement'](_0x3d2797['name'],_0xf8c693),_0xc749a9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4edf99['attachDomRoot'](_0xf8c693),this['_elementReplacer']['replace'](_0x565fff,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c1f7c=this['view'],_0x15ce9c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x15ce9c['detachDomRoot'](_0x4c1f7c['editable']['name']),_0x4c1f7c['destroy']();}['_initToolbar'](){const _0x3b732c=this['view'];_0x3b732c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b732c['stickyPanel']['limiterElement']=_0x3b732c['element'],_0x3b732c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3bed65})=>_0x3bed65),_0x3b732c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b732c['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4c5158,_0x340702,_0x2c557d={}){super(_0x4c5158),this['stickyPanel']=new lt(_0x4c5158),this['toolbar']=new nt(_0x4c5158,{'shouldGroupWhenFull':_0x2c557d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x4c5158,_0x340702);}['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(_0x2df686,_0x30442f){super(_0x30442f),this['sourceElement']=_0x2df686,this['model']['document']['createRoot']();const _0x453e7f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x453e7f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x20f920,_0x26785f){const _0xfba09b=new this(_0x20f920,_0x26785f);return await _0xfba09b['initPlugins'](),await _0xfba09b['ui']['init'](_0x20f920),await _0xfba09b['data']['init'](_0xfba09b['config']['get']('initialData')||''),_0xfba09b['fire']('ready'),_0xfba09b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x118fc5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x339011){function _0x33b53a(_0x52a007){return _0x52a007['map'](_0x2a7239=>String['fromCharCode'](_0x2a7239))['join']('');}super(_0x339011),this['result']='end',_0x339011[_0x33b53a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33b53a([0x76,0x69,0x65,0x77])][_0x33b53a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33b53a([0x61,0x75,0x74,0x6f]),_0x339011[_0x33b53a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33b53a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33b53a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33b53a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33b53a([0x6f,0x6b])});}}class k extends _0x118fc5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x55e491){if(super(_0x55e491),!this['editor']['config']['get']('revisionHistory'))throw new _0x1a0978('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd59525=>this['_showRevisionViewer']({..._0xd59525,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xdde46=>this['_closeRevisionViewer'](_0xdde46)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xa4cd5d=>this['_restoreRevision'](_0xa4cd5d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x139eff){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x139eff;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x506174){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x506174);}['getRevision'](_0x2cbb3c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2cbb3c);}['getRevisions'](_0x7bdcec){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x7bdcec||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3baf92=this['editor'],_0xd8d063=_0x259f0a(_0x3baf92,p),_0x513dc9=_0x3baf92['plugins']['get']('RevisionTracker'),_0x14b51b=_0x3baf92['plugins']['get']('Users')['users'];return _0xd8d063['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xd8d063['lazyRoots'],(_0xd8d063['plugins']['push'](bt,d,w,class extends _0x118fc5{static get['requires'](){return[d,'Users'];}['init'](){const _0x1df7f0=this['editor']['plugins']['get']('Users');for(const _0x2d1421 of _0x14b51b)_0x2d1421['isAnonymous']||_0x1df7f0['getUser'](_0x2d1421['id'])||_0x1df7f0['addUser'](_0x2d1421);const _0x316b3b=_0x513dc9['repository']['getRevisions']();let _0x284117=null;const _0x1c1cf7=this['editor']['plugins']['get']('RevisionViewer');_0x1c1cf7['adapter']=_0x513dc9['adapter'],_0x1c1cf7['bind']('isEnabled')['to'](_0x513dc9),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3baf92,'isReadOnly',_0x343153=>!_0x343153);for(const _0x5b09e6 of _0x316b3b){const _0x560302=null===_0x5b09e6['creator'];if(_0x560302&&_0x5b09e6['toVersion']===_0x5b09e6['fromVersion'])continue;const _0x3a4f9c=_0x5b09e6['toJSON']();_0x1c1cf7['addRevisionData'](_0x3a4f9c,(_0x16ce4d,_0x52e1d4,_0x46cd59)=>{if(_0x560302){if(_0x284117)_0x284117['_update'](_0x16ce4d,_0x52e1d4);else{if(!_0x52e1d4){const _0x7b5490=_0x46cd59['toJSON']();_0x7b5490['id']=_0x118080(),_0x513dc9['saveRevision'](_0x7b5490,_0x46cd59['toVersion'])['then'](_0x543266=>{_0x284117=_0x543266;});}}}else _0x5b09e6['_update'](_0x16ce4d,_0x52e1d4);});}}},g),_0xd8d063);}['_enhanceShowRevisionViewerCallback'](){const _0x357daa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x108f93=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x409f45=this['editor']['plugins']['get']('Autosave');await _0x409f45['save']();}else await _0x108f93['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x568073=this['editor']['plugins']['get']('Dialog');_0x568073['isOpen']&&_0x568073['hide']();}const _0x402c4d=this['_getRevisionViewerEditorConfig']();return _0x357daa(_0x402c4d)['then'](_0x15e04b=>{return(this['_viewerEditor']=_0x15e04b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x15e04b;})['catch'](_0x3f11dd=>(console['error'](_0x3f11dd),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x664da4=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'](),_0x664da4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5cae11=this['editor']['plugins']['get']('Annotations');_0x5cae11['refreshVisibility'](),_0x5cae11['refreshPositioning']();}})));}['_showRevisionViewer'](_0x225a63){const _0x43d203=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3ffd36=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x26973a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x26973a,_0x225a63)['then'](_0x2adc44=>(_0x3ffd36['style']['display']='block',_0x43d203['style']['display']='none',_0x2adc44));}['_closeRevisionViewer'](_0x30f0b3){const _0x271278=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x271278['style']['display']='',_0x30f0b3['destroy']();}async['_restoreRevision'](_0x5c0926){const _0x5e7bda=this['editor'],_0x317791=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xe7d352=_0x5e7bda['plugins']['get']('RevisionTracker'),_0x1494ef=_0x317791['repository']['getRevision'](_0x5c0926);let _0x1a70b1,_0x440904,_0x5ba78f;try{_0x1a70b1=await _0x317791['getRevisionData'](_0x1494ef),_0x440904=await _0x317791['getRevisionRootsAttributes'](_0x1494ef);}catch(_0x5b25e3){return void console['error'](_0x5b25e3);}_0x5e7bda['model']['change'](_0x46b8cf=>{for(const _0x4e5eb3 of Array['from'](_0x5e7bda['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x46b8cf['removeMarker'](_0x4e5eb3);}),_0x317791['isReady']=!0x1,_0x5e7bda['model']['enqueueChange'](_0x58158b=>{_0x58158b['setSelection'](null),_0x58158b['removeSelectionAttribute'](_0x5e7bda['model']['document']['selection']['getAttributeKeys']());const _0x2b8273=Object['keys'](_0x1a70b1);for(const _0x14ae89 of _0x5e7bda['model']['document']['roots'])'$graveyard'!=_0x14ae89['rootName']&&_0x14ae89['isAttached']()&&!_0x2b8273['includes'](_0x14ae89['rootName'])&&_0x58158b['detachRoot'](_0x14ae89);for(const _0x5951cc of _0x2b8273){let _0x4ccc73=_0x5e7bda['model']['document']['getRoot'](_0x5951cc);_0x4ccc73&&_0x4ccc73['isAttached']()||(_0x4ccc73=_0x58158b['addRoot'](_0x5951cc));const _0x91481a=_0x440904[_0x5951cc],_0x158e56=Object['keys'](_0x91481a),_0x33e9ce=_0x1a70b1[_0x5951cc];for(const _0x3a6528 of _0x4ccc73['getAttributeKeys']())_0x158e56['includes'](_0x3a6528)||_0x58158b['removeAttribute'](_0x3a6528,_0x4ccc73);for(const _0x3a7acc of _0x158e56)_0x58158b['setAttribute'](_0x3a7acc,_0x440904[_0x5951cc][_0x3a7acc],_0x4ccc73);_0x58158b['remove'](_0x58158b['createRangeIn'](_0x4ccc73)),_0x58158b['insert'](_0x5e7bda['data']['parse'](_0x33e9ce,_0x4ccc73),_0x4ccc73,0x0);}});const _0x51aa33=m(_0x5e7bda['locale'],'Restored');if(_0x1494ef['name'])_0x5ba78f=-0x1==_0x1494ef['name']['indexOf'](_0x51aa33)?_0x51aa33+':\x20'+_0x1494ef['name']:_0x1494ef['name'];else _0x5ba78f=_0x51aa33+':\x20'+(_0x1494ef['createdAt']['toLocaleDateString'](_0x5e7bda['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1494ef['createdAt']['toLocaleTimeString'](_0x5e7bda['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xe7d352['saveRevision']({'name':_0x5ba78f}),_0x317791['isReady']=!0x0,_0x5e7bda['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|