@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250102.0 → 0.0.0-nightly-20250103.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 +8 -8
- 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
|
-
_0x16ad9e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x53e82f){super(),this['id']=_0x53e82f['id']||_0x49b2b2(),this['creator']=_0x53e82f['creator']||null,this['authors']=_0x53e82f['authors']||[],this['diffData']=_0x53e82f['diffData']||null,this['toVersion']=_0x53e82f['toVersion']||0x0,this['fromVersion']=_0x53e82f['fromVersion']||0x0,this['set']('name',_0x53e82f['name']||''),this['set']('createdAt',_0x53e82f['createdAt']||new Date()),this['set']('attributes',_0x53e82f['attributes']||{});}['setName'](_0x511392){this['_update']({'name':_0x511392});}['setAttribute'](_0x43dbde,_0xf8623f){const _0x13a812=_0x2b9a95(this['attributes']);_0x90e3f0(_0x13a812,_0x43dbde,_0xf8623f),this['_update']({'attributes':_0x13a812});}['removeAttribute'](_0x5051c8){const _0x390dab=_0x2b9a95(this['attributes']);_0x4f9793(_0x390dab,_0x5051c8),this['_update']({'attributes':_0x390dab});}['_update'](_0x38d1ef,_0x5e6853=!0x1){let _0x4f8060=!0x1;const _0x1391af={'id':this['id']},_0x37f8ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x282257 of _0x37f8ad){const _0x10efad=_0x38d1ef[_0x282257];void 0x0!==_0x10efad&&_0x10efad!==this[_0x282257]&&(this[_0x282257]=_0x10efad,_0x1391af[_0x282257]=_0x10efad,_0x4f8060=!0x0);}_0x4f8060&&(_0x1391af['authors']&&(_0x1391af['authorsIds']=_0x1391af['authors']['map'](_0x3cd2a2=>_0x3cd2a2['id']),delete _0x1391af['authors']),this['fire']('_update',_0x1391af,_0x5e6853));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a1c96=>_0x5a1c96['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x27bfb5{['_revisions'];static get['requires'](){return[_0x3253d7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x50dddf){super(_0x50dddf),this['_revisions']=new _0x24f698();}['afterInit'](){!async function(_0x179738){const _0x29186=_0x3daf34([0x51,0x64,0x79,0x44,0x32,0x53,0x4e,0x49,0x41,0x42,0x46,0x43,0x75,0x68,0x31,0x4a,0x69,0x55,0x73,0x77,0x58,0x59,0x6c,0x66,0x67,0x50,0x30,0x6b,0x6d,0x57,0x36,0x7a,0x4c,0x6f,0x56,0x37,0x70,0x35,0x33,0x47,0x71,0x38,0x4d,0x6e,0x61,0x4f,0x78,0x62,0x65,0x74,0x5a,0x54,0x63,0x4b,0x72,0x6a,0x76,0x39,0x48,0x52,0x45,0x34]),_0x46ecfb=0xeb829,_0x5b25fa=0x405d899c,_0x88b36f=0x405ad2ec^_0x5b25fa,_0x252d22=window[_0x3daf34([0x44,0x61,0x74,0x65])][_0x3daf34([0x6e,0x6f,0x77])](),_0x2ea138=_0x179738[_0x3daf34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50cddb=new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cdcd=>{_0x2ea138[_0x3daf34([0x6f,0x6e,0x63,0x65])](_0x3daf34([0x72,0x65,0x61,0x64,0x79]),_0x51cdcd);}),_0x30a349={[_0x3daf34([0x6b,0x74,0x79])]:_0x3daf34([0x45,0x43]),[_0x3daf34([0x75,0x73,0x65])]:_0x3daf34([0x73,0x69,0x67]),[_0x3daf34([0x63,0x72,0x76])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36]),[_0x3daf34([0x78])]:_0x3daf34([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]),[_0x3daf34([0x79])]:_0x3daf34([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]),[_0x3daf34([0x61,0x6c,0x67])]:_0x3daf34([0x45,0x53,0x32,0x35,0x36])},_0x360883=_0x2ea138[_0x3daf34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3daf34([0x67,0x65,0x74])](_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e6979(){let _0x2b4dd7,_0x3d5bd=null,_0x26ec06=null;try{if(_0x360883==_0x3daf34([0x47,0x50,0x4c]))return _0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b4dd7=_0x28b455(),!_0x2b4dd7)return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26ec06=_0x4b44d6(_0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b4dd7[_0x3daf34([0x6a,0x74,0x69])])),await _0x4b393d()?_0x45fed4()?_0x4478df()?_0x3daf34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x518f26()?(_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf3c372()):_0x3daf34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4cbe8e){return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4478df(){const _0x4e75f5=[_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3daf34([0x74,0x72,0x69,0x61,0x6c])][_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x252d22/0x3e8:0xe10*_0x88b36f;return _0x2b4dd7[_0x3daf34([0x65,0x78,0x70])]<_0x4e75f5;}function _0x45fed4(){const _0x2d9fcc=_0x2b4dd7[_0x3daf34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d9fcc)return!0x1;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x48])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x52,0x48]))){if(_0x3c0712())return!0x0;if(_0x408483()||_0x20dc50())return!0x0;}return!0x1;}function _0x518f26(){const _0x5732e2=_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5732e2||0x0==_0x5732e2[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x486694}=new URL(window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5732e2[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486694))return!0x0;const _0x5669d0=_0x486694[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));return _0x5732e2[_0x3daf34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2160c4=>_0x2160c4[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))[_0x3daf34([0x6d,0x61,0x70])](_0x44d033=>_0x44d033[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])))[_0x3daf34([0x73,0x6f,0x6d,0x65])](_0x2a1216=>_0x5669d0[_0x3daf34([0x65,0x76,0x65,0x72,0x79])]((_0x1cf0ce,_0x1d7e49)=>_0x2a1216[_0x1d7e49]===_0x1cf0ce||_0x2a1216[_0x1d7e49]===_0x3daf34([0x2a])));}function _0xf3c372(){return _0x3d5bd&&_0x26ec06?new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd04e,_0x23f4b7)=>{_0x3d5bd[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2cd04e,_0x23f4b7),_0x26ec06[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2decda=>{_0x2decda!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd04e(_0x2decda);},_0x23f4b7);}):_0x3d5bd||_0x26ec06||_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b44d6(_0x20a1e8,_0x137a10){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efd79=>{if(_0x3fd7e3())return _0x2efd79(_0x3daf34([0x56,0x61,0x6c,0x69,0x64]));_0x4f495d(),_0x2ea138[_0x3daf34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ed219=!0x1;const _0x1d0f73=_0x49b2b2();function _0x2acff9(_0x502d77){return!!_0x502d77&&(typeof _0x502d77===_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x502d77===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x502d77[_0x3daf34([0x74,0x68,0x65,0x6e])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x502d77[_0x3daf34([0x63,0x61,0x74,0x63,0x68])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x423f8d(_0xbbc9a6){_0x54d5ca(_0xbbc9a6)[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x413b3b=>{if(!_0x413b3b||_0x413b3b[_0x3daf34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3daf34([0x6f,0x6b]))return _0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572711(_0x158add(_0x1d0f73+_0x137a10))!=_0x413b3b[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x1f6ca6=>(_0x534217(),_0x1f6ca6),()=>{const _0x387e2d=_0x2da112();return null==_0x387e2d?(_0x534217(),_0x3daf34([0x56,0x61,0x6c,0x69,0x64])):_0x3daf34(_0x252d22-_0x387e2d>(0x64510d9c^_0x5b25fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2efd79)[_0x3daf34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bb09e=0x406b671c^_0x5b25fa;function _0x534217(){const _0x4dd4c9=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x4bf69d=_0x1d3aec(_0x572711(window[_0x3daf34([0x4d,0x61,0x74,0x68])][_0x3daf34([0x63,0x65,0x69,0x6c])](_0x252d22/_0x4bb09e)));window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd4c9,_0x4bf69d);}function _0x2da112(){const _0x334483=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x5ec565=window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334483);return _0x5ec565?window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d3aec(_0x5ec565),0x10)*_0x4bb09e:null;}function _0x54d5ca(_0x520222){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b893,_0x1069c9)=>{_0x520222[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x49b893,_0x1069c9),window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1069c9,0x405c5d5c^_0x5b25fa);});}}_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x361a00,_0x3c986b)=>{if(_0x3c986b[0x0]!=_0x20a1e8)return _0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c986b[0x1]={..._0x3c986b[0x1],[_0x3daf34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0f73};},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x68,0x69,0x67,0x68])}),_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dbdbb=>{_0x2acff9(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ed219=!0x0,_0x423f8d(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x6c,0x6f,0x77])}),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>{_0x4ed219||_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd7e3(){return _0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3daf34([0x61,0x75,0x74,0x6f]);}function _0x4f495d(){_0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3daf34([0x61,0x75,0x74,0x6f]);}}function _0x54832f(_0x4df090){const _0xa643fe=[new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1188bb=>setTimeout(_0x1188bb,0x4054b750^_0x5b25fa)),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3c566=>{const _0x8d5ea=0x405d899b^_0x5b25fa,_0x5138a7=_0x179738[_0x3daf34([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x364cc1(){_0x5138a7[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8d5ea&&_0xf3c566();}_0x364cc1(),_0x5138a7[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x61,0x64,0x64]),_0x364cc1);})),new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a1ea3=>{function _0x2a1b08(){for(const _0x26d39b in window)if(window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x26d39b))&&window[_0x26d39b]==_0x46ecfb)return _0x7a1ea3();_0x2ea138[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]!=_0x3daf34([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a1b08,0x405d9a14^_0x5b25fa);}_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a1b08();})];return window[_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3daf34([0x72,0x61,0x63,0x65])](_0xa643fe)[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>_0x4df090);}async function _0x348dc5(){if(await _0x50cddb,_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1ead5e=_0x179738[_0x3daf34([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x553371=_0x179738[_0x3daf34([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])](_0x1ead5e[_0x3daf34([0x69,0x64])]),_0x4e4ad0=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1ead5e['id'],_0x553371?_0x553371['id']:null,!0x0),_0x4e4ad0[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e4ad0[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cc247,void(_0x4e4ad0[_0x3daf34([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cc247);}if(_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x472eb3=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x472eb3[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x472eb3[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x472eb3[_0x3daf34([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cc247,_0x472eb3[_0x3daf34([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cc247;}_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0712(){return _0x5e11a9(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40b1d7(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]==_0x3daf34([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x408483(){return _0x5e11a9(_0x3daf34([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 _0x20dc50(){return _0x5e11a9(_0x3daf34([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3cc412(_0x1f6f1b){const _0x3ce969=_0x83e8a1();_0x2ea138[_0x3ce969]=_0x3daf34([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])+_0x1f6f1b,_0x1f6f1b[_0x3daf34([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x83e8a1()]=_0x46ecfb),_0x1f6f1b!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x348dc5();}function _0x83e8a1(){const _0x2ea970=window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3daf34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3daf34([0x6e,0x6f,0x77])]())[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3daf34([0x2e]),'');let _0x3379da=_0x3daf34([0x51]);for(let _0x343cb8=0x0;_0x343cb8<_0x2ea970[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x343cb8+=0x2){let _0x5b2be0=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea970[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x343cb8,_0x343cb8+0x2));_0x5b2be0>=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b2be0-=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3379da+=_0x29186[_0x5b2be0];}return _0x3379da;}function _0x28b455(){const _0x2d198e=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));if(0x3!=_0x2d198e[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f0c9d(_0x2d198e[0x1]);function _0x4f0c9d(_0x4f4b7a){const _0x325eec=_0x22ae10(_0x4f4b7a);return _0x325eec&&_0x41eebe()?_0x325eec:null;function _0x41eebe(){const _0x31134b=_0x325eec[_0x3daf34([0x6a,0x74,0x69])],_0x489402=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x296af3={..._0x325eec,[_0x3daf34([0x6a,0x74,0x69])]:_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x296af3[_0x3daf34([0x76,0x63])],_0x158add(_0x296af3)==_0x489402;}}}async function _0x4b393d(){let _0x5a9f97=!0x0;try{const _0x5954ed=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])),[_0xe541af,_0x5a54cc,_0x2acc4c]=_0x5954ed;return _0x14ccf0(_0xe541af),await _0x3278e6(_0xe541af,_0x5a54cc,_0x2acc4c),_0x5a9f97;}catch(_0x2197ae){return!0x1;}function _0x14ccf0(_0xb7e847){const _0x2f6559=_0x22ae10(_0xb7e847);_0x2f6559&&_0x2f6559[_0x3daf34([0x61,0x6c,0x67])]==_0x3daf34([0x45,0x53,0x32,0x35,0x36])||(_0x5a9f97=!0x1);}async function _0x3278e6(_0x209e16,_0x1dba54,_0x2f9e43){const _0x410369=window[_0x3daf34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3daf34([0x66,0x72,0x6f,0x6d])](_0xe5e4aa(_0x2f9e43),_0x1675b2=>_0x1675b2[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19a98b=new window[(_0x3daf34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3daf34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209e16+_0x3daf34([0x2e])+_0x1dba54),_0x53bac4=window[_0x3daf34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3daf34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bac4)return;const _0x4074de=await _0x53bac4[_0x3daf34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3daf34([0x6a,0x77,0x6b]),_0x30a349,{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bac4[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x68,0x61,0x73,0x68])]:{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4074de,_0x410369,_0x19a98b)||(_0x5a9f97=!0x1);}}function _0x22ae10(_0x24fd1c){return _0x24fd1c[_0x3daf34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x65,0x79]))?JSON[_0x3daf34([0x70,0x61,0x72,0x73,0x65])](_0xe5e4aa(_0x24fd1c)):null;}function _0xe5e4aa(_0x5eb733){return window[_0x3daf34([0x61,0x74,0x6f,0x62])](_0x5eb733[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3daf34([0x2b]))[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3daf34([0x2f])));}function _0x158add(_0x5c6615){let _0xd92dbd=0x1505;function _0x2aa56b(_0x8c8104){for(let _0x23cce2=0x0;_0x23cce2<_0x8c8104[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23cce2++){const _0x4fe018=_0x8c8104[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23cce2);_0xd92dbd=(_0xd92dbd<<0x5)+_0xd92dbd+_0x4fe018,_0xd92dbd&=_0xd92dbd;}}function _0x1f2afe(_0x3c7492){Array[_0x3daf34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c7492)?_0x3c7492[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f2afe):_0x3c7492&&typeof _0x3c7492==_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3daf34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c7492)[_0x3daf34([0x73,0x6f,0x72,0x74])]()[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205236,_0x433d3b])=>{_0x2aa56b(_0x205236),_0x1f2afe(_0x433d3b);}):_0x2aa56b(window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c7492));}return _0x1f2afe(_0x5c6615),_0xd92dbd>>>0x0;}function _0x572711(_0x3dd9ba){return _0x3dd9ba[_0x3daf34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3daf34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3daf34([0x30]));}function _0x1d3aec(_0x25d67e){return _0x25d67e[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3daf34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3daf34([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e11a9(_0x4293e9){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x68,0x61,0x73])](_0x4293e9);}function _0x40b1d7(_0x2d2ee6){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x67,0x65,0x74])](_0x2d2ee6);}function _0x5cc247(){}function _0x3daf34(_0x3e1c5e){return _0x3e1c5e['map'](_0xbc90ba=>String['fromCharCode'](_0xbc90ba))['join']('');}_0x3cc412(await _0x3e6979());}(this);}['createRevision'](_0x4f124d){const _0xc1d1a1=this['editor']['plugins']['get']('Users');return new a({'id':_0x4f124d['id'],'name':_0x4f124d['name'],'creator':_0x4f124d['creatorId']?_0xc1d1a1['getUser'](_0x4f124d['creatorId']):null,'diffData':_0x4f124d['diffData']||_0x4f124d['data'],'authors':_0x4f124d['authorsIds']['map'](_0x543392=>_0xc1d1a1['getUser'](_0x543392)),'createdAt':new Date(_0x4f124d['createdAt']),'attributes':_0x4f124d['attributes'],'fromVersion':_0x4f124d['fromVersion'],'toVersion':_0x4f124d['toVersion']});}['addRevision'](_0x228128,_0x299714=0x0){this['_revisions']['add'](_0x228128,_0x299714);}['getRevision'](_0xf430e9){return this['_revisions']['get'](_0xf430e9);}['getRevisions'](_0x304ab8={'toJSON':!0x1}){const _0xa9e0c3=Array['from'](this['_revisions']);return _0xa9e0c3['reverse'](),_0x304ab8['toJSON']?_0xa9e0c3['map'](_0x3e39c3=>_0x3e39c3['toJSON']()):_0xa9e0c3;}['getIndex'](_0x54b95f){return this['_revisions']['getIndex'](_0x54b95f);}['getEarlierVisibleRevision'](_0x40e6ba){const [,_0x168b1c]=this['getRevisionsIterator'](_0x40e6ba,{'direction':'earlier'});return _0x168b1c;}['getLaterVisibleRevision'](_0x17e789){const [,_0x142c51]=this['getRevisionsIterator'](_0x17e789,{'direction':'later'});return _0x142c51;}['getRevisionsInDiff'](_0x57e9ef){const _0xdbf1e7=[];for(const _0x3a8f76 of this['getRevisionsIterator'](_0x57e9ef['newRevisionId']))if(_0xdbf1e7['push'](_0x3a8f76),_0x3a8f76['id']===_0x57e9ef['oldRevisionId'])break;return _0xdbf1e7;}*['getRevisionsIterator'](_0x42fc33,{direction:_0x1457f1='earlier',filter:_0x3daa93=()=>!0x0}={}){const _0x195d03='earlier'===_0x1457f1?0x1:-0x1;let _0x5044a2=this['_revisions']['get'](_0x42fc33),_0x3deebb=this['getIndex'](_0x5044a2);for(yield _0x5044a2;_0x5044a2;){if(_0x3deebb+=_0x195d03,_0x5044a2=this['getRevision'](_0x3deebb),!_0x5044a2)return;_0x3daa93(_0x5044a2)&&(yield _0x5044a2);}}}function R(_0x301c55,_0x42b82d,_0x3ee0ff){const t=_0x301c55['t'];switch(_0x42b82d){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'},_0x3ee0ff);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ee0ff);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 C={'c':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class l extends _0x27bfb5{['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[_0x3253d7,j,_0x382727];}constructor(_0x3303ed){super(_0x3303ed),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xb1856f=_0x49b2b2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb1856f},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 _0x576683=this['repository']['getRevision'](0x0),_0x3f7f5d=_0x576683&&null===_0x576683['creator']?_0x576683:null;if(this['_continueCurrentRevision']=!!_0x3f7f5d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50db27=this['_source']['getCurrentRevisionId'](),_0x3d1064=this['repository']['getRevision'](_0x50db27);if(_0x3d1064)this['_startingVersion']=_0x3d1064['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5cc675=this['_source']['history']['_operations']['find'](_0x123b56=>!_0x123b56['_isInit']),_0x2e75d8=_0x5cc675?_0x5cc675['baseVersion']:this['_source']['history']['version'];_0x576683?(_0x576683['toVersion']<_0x2e75d8&&_0x576683['_update']({'toVersion':_0x2e75d8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['fromVersion']):(this['_startingVersion']=_0x576683['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e75d8,this['_continueCurrentRevision']=!0x1);}}else _0x3f7f5d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3f7f5d['toVersion'],this['editor']['model']['document']['history']['version']),_0x3f7f5d['fromVersion']===_0x3f7f5d['toVersion']?(0x0!==_0x3f7f5d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['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',_0x3713ec=>!_0x3713ec),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x120bbc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b2dca;for(const _0x1b8166 in _0x120bbc){const _0x36eabd=_0x1b8166,_0x4c74b9=_0x120bbc[_0x36eabd];if('revisionHistoryLicenseKeyValid'==_0x4c74b9||'revisionHistoryLicenseKeyInvalid'==_0x4c74b9||'revisionHistoryLicenseKeyExpired'==_0x4c74b9||'revisionHistoryLicenseKeyDomainLimit'==_0x4c74b9||'revisionHistoryLicenseKeyNotAllowed'==_0x4c74b9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c74b9||'revisionHistoryLicenseKeyTrialLimit'==_0x4c74b9||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4c74b9||'revisionHistoryLicenseKeyUsageLimit'==_0x4c74b9){delete _0x120bbc[_0x36eabd],_0x4b2dca=_0x4c74b9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4b2dca&&_0x120bbc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4b2dca&&_0x120bbc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4b2dca&&_0x120bbc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5508f0=this['repository']['getRevision'](0x0),_0x32fac1=await this['getRevisionDocumentData'](_0x5508f0),_0x1874d1=await this['getRevisionRootsAttributes'](_0x5508f0);this['_replaceEditorDataWithRevisionData'](_0x32fac1,_0x1874d1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xad9af6){this['_source']=_0xad9af6;}async['update'](){const _0x379c5d=await this['_source']['getLatestVersion']();if(_0x379c5d>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa96159=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x379c5d});_0xa96159['authors']=_0xa96159['authorsIds']['map'](_0x2d0faa=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d0faa)),this['currentRevision']['_update'](_0xa96159);}}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'](_0x691d36={},_0x2739fa=null){const _0x1edd8b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2739fa>this['currentRevision']['toVersion']&&(_0x2739fa=null),null===_0x2739fa&&(_0x2739fa=await this['_source']['getLatestVersion']());const _0x2ed99d=this['_getFromVersion'](_0x2739fa),_0xd8afa7=this['buildRevisionData']({'from':_0x2ed99d,'to':_0x2739fa});if(this['currentRevision']['toVersion']<_0x2739fa){const _0xf9a99=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2739fa,'to':_0x2739fa});_0xf9a99['authors']=[],_0xf9a99['authorsIds']=[],_0xf9a99['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf9a99,!0x0),delete _0xf9a99['authors'],_0x1edd8b['push'](_0xf9a99);}_0x691d36['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x691d36['name']=_0x691d36['name']||null,_0x691d36['id']=_0x691d36['id']||_0x49b2b2(),_0x691d36={..._0x691d36,..._0xd8afa7};const _0x33f230=this['addRevisionData'](_0x691d36);_0x1edd8b['push'](_0x691d36);const _0x34300b=this['repository']['getIndex'](_0x33f230);if(0x0!==_0x34300b){const _0x333087=this['repository']['getRevision'](_0x34300b-0x1);if(_0x333087['fromVersion']!==_0x2739fa){const _0x31eed3=this['_revisionDataBuilder']['getData'](_0x2739fa,_0x333087['toVersion']),_0x2d7207={'id':_0x333087['id'],'diffData':_0x31eed3['diffData'],'authorsIds':_0x31eed3['authorsIds'],'authors':_0x31eed3['authorsIds']['map'](_0x90f6c3=>this['editor']['plugins']['get']('Users')['getUser'](_0x90f6c3)),'fromVersion':_0x2739fa};_0x333087===this['currentRevision']&&(_0x2d7207['createdAt']=new Date(_0x691d36['createdAt']['getTime']()+0xa)),_0x333087['_update'](_0x2d7207,!0x0),delete _0x2d7207['authors'],_0x1edd8b['push'](_0x2d7207);}}if(this['adapter']){for(const _0x813e7 of _0x1edd8b)this['_bufferUpdate'](_0x813e7['id'],_0x813e7,!0x0);this['sendBufferedUpdates']();}return _0x33f230;}['addRevisionData'](_0x5dc0e6){const _0x59a0ac=this['repository']['createRevision'](_0x5dc0e6);return this['adapter']&&_0x59a0ac['on']('_update',(_0x1c9927,_0x5d18ff,_0x5ea2ca)=>{_0x5ea2ca||(this['_bufferUpdate'](_0x5d18ff['id'],_0x5d18ff,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59a0ac,this['_findInsertionIndex'](_0x59a0ac)),_0x59a0ac;}async['getRevisionDocumentData'](_0x3fd0d5){await this['_loadRevisionData'](_0x3fd0d5);const _0x525de9={};for(const _0x52fc58 in _0x3fd0d5['diffData']){if(_0x3fd0d5['diffData'][_0x52fc58]['attachChange']&&!_0x3fd0d5['diffData'][_0x52fc58]['attachChange']['isAttached'])continue;const _0x238b58=this['_removeRevisionMarkers'](JSON['parse'](_0x3fd0d5['diffData'][_0x52fc58]['insertions'])),_0x4197a2=this['editor']['editing']['view']['document'],_0x481c97=new _0x2d7291(_0x4197a2,_0x238b58['map'](_0x454dc7=>V(_0x454dc7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x525de9[_0x52fc58]=this['editor']['data']['processor']['toData'](_0x481c97),this['editor']['data']['processor']['useFillerType']('default');}return _0x525de9;}async['getRevisionRootsAttributes'](_0x34d89e){await this['_loadRevisionData'](_0x34d89e);const _0x3ce859={};for(const _0xae3eb7 in _0x34d89e['diffData'])_0x34d89e['diffData'][_0xae3eb7]['attachChange']&&!_0x34d89e['diffData'][_0xae3eb7]['attachChange']['isAttached']||(_0x3ce859[_0xae3eb7]=_0x34d89e['diffData'][_0xae3eb7]['attributesAfter']||{});return _0x3ce859;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x21c2ba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b420e=0x0;_0x1b420e<_0x21c2ba['length'];_0x1b420e++){const _0x1d3e1e=_0x21c2ba[_0x1b420e];let _0x3a742f=!0x1;for(const _0x7a59b2 of Object['keys'](_0x1d3e1e))void 0x0===_0x1d3e1e[_0x7a59b2]?delete _0x1d3e1e[_0x7a59b2]:'id'!==_0x7a59b2&&(_0x3a742f=!0x0);_0x3a742f||(_0x21c2ba[_0x1b420e]=null);}if(_0x21c2ba=_0x21c2ba['filter'](_0x2de3c5=>null!==_0x2de3c5),!_0x21c2ba['length'])return;for(let _0x320f87=0x0;_0x320f87<_0x21c2ba['length'];_0x320f87++){const _0x482b5b=_0x21c2ba[_0x320f87];void 0x0!==_0x482b5b['fromVersion']&&void 0x0===_0x482b5b['toVersion']&&(_0x482b5b['toVersion']=this['repository']['getRevision'](_0x482b5b['id'])['toVersion']),void 0x0!==_0x482b5b['toVersion']&&void 0x0===_0x482b5b['fromVersion']&&(_0x482b5b['fromVersion']=this['repository']['getRevision'](_0x482b5b['id'])['fromVersion']);}const _0x25c7ee=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x21c2ba,_0x25c7ee)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x294161=>{if(_0x294161){for(const _0x5c7082 of _0x294161)this['setRevisionData']({'id':_0x5c7082['id'],'createdAt':_0x5c7082['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2e0073,_0x460ebc){let _0x23d465=this['editor']['config']['get']('initialData'),_0xff5a23=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x23d465){_0x23d465={};for(const _0x17b390 of this['editor']['model']['document']['getRootNames']())_0x23d465[_0x17b390]='';}if('string'==typeof _0x23d465&&(_0x23d465={'main':_0x23d465}),void 0x0===_0xff5a23){_0xff5a23={};for(const _0x330c84 of this['editor']['model']['document']['getRootNames']())_0xff5a23[_0x330c84]={};}let _0x47995a=!0x1;const _0x2c7baa=Object['keys'](_0x23d465),_0x5d9994=Object['keys'](_0x2e0073);for(const _0x4364c6 of _0x2c7baa){if(_0x23d465[_0x4364c6]!==_0x2e0073[_0x4364c6]&&''!==_0x23d465[_0x4364c6]['trim']()){_0x47995a=!0x0;break;}if(!_0x23f9d9(_0xff5a23[_0x4364c6],_0x460ebc[_0x4364c6])&&Object['keys'](_0xff5a23[_0x4364c6])['length']>0x0){_0x47995a=!0x0;break;}}_0x47995a||(_0x47995a=_0x5d9994['some'](_0x303e84=>!this['editor']['model']['document']['getRoot'](_0x303e84))),_0x47995a&&_0x263ef1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x23d465,'editorRootsAttributes':_0xff5a23,'revisionData':_0x2e0073,'revisionRootsAttributes':_0x460ebc}),this['editor']['config']['set']('initialData',_0x2e0073),this['editor']['config']['set']('rootsAttributes',_0x460ebc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51131d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51131d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36a908){const _0x71f104=this['repository']['getRevisions']();_0x71f104['reverse']();let _0x209974=0x0;for(;_0x209974<_0x71f104['length'];){const _0xe12989=_0x71f104[_0x209974];if(_0xe12989===this['currentRevision']){_0x209974++;continue;}if(_0xe12989['id']===this['_initialRevisionId'])break;const _0x7bd985=_0x36a908['toVersion']-_0xe12989['toVersion']||_0x36a908['fromVersion']-_0xe12989['fromVersion'];if(_0x7bd985>0x0)break;if(_0x7bd985<0x0)_0x209974++;else{if(!_0x36a908['creator']&&_0xe12989['creator'])break;if(_0xe12989['creator']||!_0x36a908['creator']){if(_0x36a908['createdAt']>_0xe12989['createdAt'])break;_0x209974++;}else _0x209974++;}}return _0x209974;}['setRevisionData'](_0xf1b75e){const _0x323f0d=this['repository']['getRevision'](_0xf1b75e['id']);if(_0xf1b75e['createdAt']&&(_0xf1b75e['createdAt']=new Date(_0xf1b75e['createdAt'])),_0xf1b75e['authorsIds']){const _0x1a03dd=this['editor']['plugins']['get']('Users');_0xf1b75e['authors']=_0xf1b75e['authorsIds']['map'](_0x3114d1=>_0x1a03dd['getUser'](_0x3114d1));}_0x323f0d['_update'](_0xf1b75e,!0x0);}['buildRevisionData']({revision:_0x2ecbd9=null,from:_0x5bfb8a=null,to:_0x1f3c24=null}){_0x5bfb8a=null!==_0x5bfb8a?_0x5bfb8a:_0x2ecbd9['fromVersion'],_0x1f3c24=null!==_0x1f3c24?_0x1f3c24:_0x2ecbd9['toVersion'];const _0x570540=this['_revisionDataBuilder']['getData'](_0x5bfb8a,_0x1f3c24),_0x31b111={'diffData':_0x570540['diffData'],'authorsIds':_0x570540['authorsIds'],'fromVersion':_0x5bfb8a,'toVersion':_0x1f3c24};if(!_0x2ecbd9||_0x1f3c24!==_0x2ecbd9['toVersion']){const _0x50f178=_0x1f3c24-0x1,_0x5abb5e=this['_source']['history']['getOperation'](_0x50f178);_0x31b111['createdAt']=_0x5abb5e&&_0x5abb5e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5bfb8a===this['_loadedStateData']['fromVersion']){for(const _0x271cbe of this['_loadedStateData']['authors'])_0x31b111['authorsIds']['includes'](_0x271cbe['id'])||_0x31b111['authorsIds']['push'](_0x271cbe['id']);}return _0x31b111;}['_loadRevisionData'](_0x3a5d15){if(!_0x3a5d15||_0x3a5d15['diffData'])return Promise['resolve']();{const _0x9e6ca2=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9e6ca2,'revisionId':_0x3a5d15['id']})['then'](_0x5cd110=>{_0x3a5d15['diffData']=_0x5cd110['diffData'];});}}['_bufferUpdate'](_0x3e9428,_0x66c2d7,_0x587e80){if(this['_bufferedUpdates']['has'](_0x3e9428)){const _0x397e3a=this['_bufferedUpdates']['get'](_0x3e9428);_0x66c2d7=_0x587e80?{..._0x397e3a,..._0x66c2d7}:{..._0x66c2d7,..._0x397e3a};}this['_bufferedUpdates']['set'](_0x3e9428,_0x66c2d7);}['_getFromVersion'](_0x3c5764){const _0x1d6110=this['repository']['getRevisions']();_0x1d6110['reverse'](),_0x1d6110['shift']();const _0x2f8445=_0x1d6110['find'](_0x260caa=>_0x260caa['toVersion']<=_0x3c5764)['toVersion'];return _0x2f8445<this['_startingVersion']?this['_startingVersion']:_0x2f8445;}['_createInitialRevision'](_0x1a2214){const _0x30d697=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x30d697)this['_initialRevisionId']=_0x30d697['id'];else{const _0x4d6ec0=!this['editor']['model']['document']['roots']['find'](_0x340772=>this['editor']['model']['hasContent'](_0x340772)),_0x2e6ec6=this['editor']['plugins']['get']('Users')['me']['id'],_0x4492f2=R(this['editor']['locale'],_0x4d6ec0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1a2214,'to':_0x1a2214,'id':this['_initialRevisionId'],'name':_0x4492f2,'creatorId':_0x2e6ec6});}}['_createCurrentRevision'](_0x46dabb){const _0x51a536=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x51a536),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x46dabb,'to':_0x46dabb,'id':_0x51a536,'name':'','creatorId':null}));}['_makeRevision']({name:_0x13f1ab,from:_0xaa543,to:_0x36235f,creatorId:_0xc2544f,id:_0x271a79}){const _0x576711=this['buildRevisionData']({'from':_0xaa543,'to':_0x36235f});_0x576711['name']=_0x13f1ab,_0x576711['creatorId']=_0xc2544f,_0x576711['id']=_0x271a79;const _0x234858=this['addRevisionData'](_0x576711);return this['adapter']&&this['_bufferUpdate'](_0x576711['id'],_0x576711,!0x0),_0x234858;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x25b89a){return(_0x25b89a=_0x25b89a['filter'](_0x5d1293=>!_0x5d1293['name']||'revision-start'!==_0x5d1293['name']&&'revision-end'!==_0x5d1293['name']))['forEach'](_0x358e5d=>{'string'!=typeof _0x358e5d&&(_0x358e5d['children']=this['_removeRevisionMarkers'](_0x358e5d['children']),_0x358e5d['attributes']=_0x358e5d['attributes']['filter'](_0x574c6f=>!_0x574c6f[0x0]['startsWith']('data-revision-')));}),_0x25b89a;}}function V(_0x61d035,_0x225d6e){const _0xeafad0=_0x225d6e['editing']['view']['document'];if('string'==typeof _0x61d035)return new _0x309635(_0xeafad0,_0x61d035);{const _0x3c70c5=_0x61d035['children']['map'](_0x125185=>V(_0x125185,_0x225d6e));return new(C[_0x61d035['type']]||_0x3489bf)(_0xeafad0,_0x61d035['name'],_0x61d035['attributes'],_0x3c70c5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1e3f73){this['editor']=_0x1e3f73,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'](_0x94e661){this['source']=_0x94e661;const _0x52b037=new Map(),_0x2851a0=new Map(),_0x7ed1=this['editor']['model']['document']['roots']['map'](_0x48e510=>_0x48e510['rootName']);for(const _0xa130ed of _0x7ed1){const _0x6f57ce=this['editor']['model']['document']['getRoot'](_0xa130ed),_0x52dbb8=F(_0x6f57ce);_0x52b037['set'](_0xa130ed,_0x52dbb8),_0x2851a0['set'](_0xa130ed,Object['fromEntries'](_0x6f57ce['getAttributes']()));}const _0x238299=Array['from'](this['editor']['model']['markers'])['map'](_0x51a495=>[_0x51a495['name'],_0x51a495['getRange']()]),_0x281844=this['source']['version'];this['_saveMetaData'](_0x281844,_0x52b037,_0x238299,_0x2851a0),this['_startingRevisionId']=this['_revisionId'];const _0x971ba5=new Map(),_0x45da51=new Map();for(const _0x103711 of _0x7ed1){const _0x2741c3=B(_0x103711);_0x971ba5['set'](_0x103711,_0x2741c3),_0x45da51['set'](_0x103711,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x971ba5,[],_0x45da51);}['getData'](_0x1a36c8,_0x53730a){if(this['_lastFrom']===_0x1a36c8&&this['_lastTo']<=_0x53730a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x53730a,!0x0);else{if(!this['_savedMetaData']['has'](_0x1a36c8)){const _0x5e5144=this['_getPreviousFrom'](_0x1a36c8);this['_calculateMetaData'](_0x5e5144,_0x1a36c8,!0x1);}this['_calculateMetaData'](_0x1a36c8,_0x53730a,!0x0);}return this['_lastFrom']=_0x1a36c8,this['_lastTo']=_0x53730a,this['_getState']();}['loadState'](_0xbe564b){this['_reset'](),this['_lastFrom']=_0xbe564b['fromVersion'],this['_lastTo']=_0xbe564b['toVersion'];for(const _0x248318 in _0xbe564b['diffData']){const _0x26e798=_0xbe564b['diffData'][_0x248318]['attachChange'],_0x46c922=_0x2b9a95(_0xbe564b['diffData'][_0x248318]['attributesBefore'])||{},_0x412fe3=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x248318]['deletions']);_0x412fe3['rootName']=_0x248318,_0x412fe3['_isAttached']=!_0x26e798||!_0x26e798['isAttached'],_0x412fe3['isAttached']=()=>_0x412fe3['_isAttached'],this['_baseRoots']['set'](_0x248318,_0x412fe3),this['_baseRootsAttributes']['set'](_0x248318,_0x46c922),_0x26e798&&this['_touchedRoots']['set'](_0x248318,_0x26e798);const _0x48e7a9=this['_makeIdsRoot'](_0x412fe3);this['_baseIdsRoots']['set'](_0x248318,_0x48e7a9);for(const [_0x84e5cf,_0x43648b]of _0x412fe3['markers']){if(!_0x84e5cf['startsWith']('revision:'))continue;const _0x48b185=_0x84e5cf['split'](':')[0x2];for(const _0x43d1bf of _0x43648b['getWalker']({'singleCharacters':!0x0})){const _0x5c6539=this['_getVidAttributeName'](_0x43d1bf),_0x3e557a='elementEnd'==_0x43d1bf['type']?_0x43d1bf['previousPosition']['path']['slice'](0x0,-0x1):_0x43d1bf['previousPosition']['path'],_0x25c67a=_0x48e7a9['getNodeByPath'](_0x3e557a)['getAttribute'](_0x5c6539);this['_touched']['set'](_0x25c67a,{'userId':_0x48b185});}}}this['_startingRevisionId']=this['_revisionId'];const _0x103241=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x582916=>!this['_touched']['has'](_0x582916));let _0x5bfa3e=0x0;const _0x3108fc=new Map();for(const _0x44f0d9 in _0xbe564b['diffData']){const _0x31fa80=_0xbe564b['diffData'][_0x44f0d9]['attachChange'],_0x290f1f=_0x2b9a95(_0xbe564b['diffData'][_0x44f0d9]['attributesAfter'])||{},_0x502f63=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x44f0d9]['insertions']);_0x502f63['rootName']=_0x44f0d9,_0x502f63['_isAttached']=!_0x31fa80||_0x31fa80['isAttached'],_0x502f63['isAttached']=()=>_0x502f63['_isAttached'],this['_diffRoots']['set'](_0x44f0d9,_0x502f63),this['_diffRootsAttributes']['set'](_0x44f0d9,_0x290f1f);const _0x15e4da=this['_makeIdsRoot'](_0x502f63,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44f0d9,_0x15e4da),_0x3108fc['set'](_0x44f0d9,_0x502f63['isAttached']()?_0x290f1f:{});for(const [_0x53074a,_0x158562]of _0x502f63['markers']){if(!_0x53074a['startsWith']('revision:'))continue;const _0x23c898=_0x53074a['split'](':')[0x2];for(const _0x125ecd of _0x158562['getWalker']({'singleCharacters':!0x0})){const _0x14b5c9=this['_getVidAttributeName'](_0x125ecd),_0x477d4b=this['_revisionId']++,_0xe704d='elementEnd'==_0x125ecd['type']?_0x125ecd['previousPosition']['path']['slice'](0x0,-0x1):_0x125ecd['previousPosition']['path'];_0x15e4da['getNodeByPath'](_0xe704d)['_setAttribute'](_0x14b5c9,_0x477d4b),this['_touched']['set'](_0x477d4b,{'userId':_0x23c898});}}for(const _0x525d13 of this['editor']['model']['createRangeIn'](_0x502f63)['getWalker']({'singleCharacters':!0x0})){const _0x41220e=this['_getVidAttributeName'](_0x525d13),_0x20b11a='elementEnd'==_0x525d13['type']?_0x525d13['previousPosition']['path']['slice'](0x0,-0x1):_0x525d13['previousPosition']['path'],_0x5353f4=_0x15e4da['getNodeByPath'](_0x20b11a);_0x5353f4['getAttribute'](_0x41220e)>0x0||_0x5353f4['_setAttribute'](_0x41220e,_0x103241[_0x5bfa3e++]);}for(const [_0x63bc3d,_0x143997]of _0x502f63['markers'])_0x63bc3d['startsWith']('revision:')||this['_markers']['set'](_0x63bc3d,_0x143997);}const _0x15ccfc=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x15ccfc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x15ccfc,0x1));const _0xf28af2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf28af2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf28af2,0x1));const _0x35fee5=Array['from'](this['_diffRoots'])['map'](([_0x46804b,_0xbaef83])=>[_0x46804b,F(_0xbaef83)]);this['_saveMetaData'](this['_lastTo'],_0x35fee5,this['_markers'],_0x3108fc);}['_makeModelFromViewString'](_0x4b98db){const _0x12a2ae=JSON['parse'](_0x4b98db),_0x5d84ff=this['editor']['editing']['view']['document'],_0x3eb596=new _0x2d7291(_0x5d84ff,_0x12a2ae['map'](_0x49e413=>V(_0x49e413,this['editor'])));return this['editor']['data']['toModel'](_0x3eb596);}['_saveMetaData'](_0x102d9a,_0x3bd018,_0x340b2b,_0x90fd01){const _0x338d7d=new Map(_0x3bd018),_0x3b17cc=new Map(_0x2b9a95(_0x90fd01)),_0x178169=new Map();for(const [_0x39f1f9,_0x32c01e]of _0x340b2b)_0x178169['set'](_0x39f1f9,{'start':_0x32c01e['start']['clone'](),'end':_0x32c01e['end']['clone'](),'rootName':_0x32c01e['root']['rootName']});this['_savedMetaData']['set'](_0x102d9a,{'roots':_0x338d7d,'markers':_0x178169,'rootsAttributes':_0x3b17cc});}['_removeMetaData'](_0x27a7c7){this['_savedMetaData']['delete'](_0x27a7c7);}['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'](_0x1be006,_0x3bfdbd=null){let _0x589904=null;_0x1be006['is']('documentFragment')||(_0x589904=new ft(_0x1be006['name'],{'vid_start':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));const _0x534edd=[];for(const _0x1ea679 of _0x1be006['getChildren']())if(_0x1ea679['is']('element')){_0x534edd['push'](this['_makeIdsRoot'](_0x1ea679,_0x3bfdbd));const _0x35761d=_0x534edd[_0x534edd['length']-0x1];null!==_0x3bfdbd&&(_0x3bfdbd=_0x35761d['is']('element','$text')?_0x35761d['getAttribute']('vid')+0x1:_0x35761d['getAttribute']('vid_end')+0x1);}else{for(let _0xb86fab=0x0;_0xb86fab<_0x1ea679['offsetSize'];_0xb86fab++)_0x534edd['push'](new ft('$text',{'vid':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));}if(_0x1be006['is']('documentFragment')){const _0x446e9e=B(_0x1be006['rootName']);return _0x446e9e['_insertChild'](0x0,_0x534edd),_0x446e9e;}return _0x589904['_setAttribute']('vid_end',null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++),_0x589904['_insertChild'](0x0,_0x534edd),_0x589904;}['_calculateMetaData'](_0x2ecc7a,_0x3538ef,_0x3887dd){this['_reset']();const {roots:_0x3effe5,markers:_0x136d40,rootsAttributes:_0xef34f9}=this['_savedMetaData']['get'](_0x2ecc7a);this['_baseRoots']=new Map(_0x3effe5),this['_baseRootsAttributes']=new Map(_0x2b9a95(_0xef34f9));for(const [_0x4372ca,_0x5c1e75]of this['_baseRoots'])if('$graveyard'!==_0x4372ca&&(this['_diffRoots']['set'](_0x4372ca,F(_0x5c1e75)),this['_diffRootsAttributes']=new Map(_0x2b9a95(_0xef34f9)),_0x3887dd)){const _0x38bb64=this['_revisionId'];this['_idsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75)),this['_baseIdsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75,_0x38bb64));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3887dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x358a8e,_0x2b4922]of _0x136d40){const _0x1443ac=this['_baseRoots']['get'](_0x2b4922['rootName']),_0xded7f0=this['_diffRoots']['get'](_0x2b4922['rootName']),_0x5bded7=new vt(this['_fixPosition'](_0x2b4922['start'],_0x1443ac),this['_fixPosition'](_0x2b4922['end'],_0x1443ac)),_0x56b804=this['_fixRange'](_0x5bded7,_0xded7f0);_0x1443ac['markers']['set'](_0x358a8e,_0x5bded7),this['_markers']['set'](_0x358a8e,_0x56b804);}this['_applyOperations'](_0x2ecc7a,_0x3538ef,_0x3887dd);}['_applyOperations'](_0xbb97cf,_0x2e0713,_0x54692e){for(const _0x407f95 of this['source']['getOperations'](_0xbb97cf,_0x2e0713))this['_handleOperation'](_0x407f95,_0x54692e);for(const _0x43d9d0 of this['_diffRoots']['values']())_0x43d9d0['markers']['clear']();for(const [_0x9367ec,_0x3fca48]of this['_markers']){this['_diffRoots']['get'](_0x3fca48['root']['rootName'])['markers']['set'](_0x9367ec,_0x3fca48['clone']());}const _0x4d6480=new Map(),_0x5877fc=new Map();for(const [_0x24b433,_0x404980]of this['_diffRoots'])_0x4d6480['set'](_0x24b433,F(_0x404980)),_0x5877fc['set'](_0x24b433,this['_diffRootsAttributes']['get'](_0x24b433));this['_saveMetaData'](_0x2e0713,_0x4d6480,this['_markers'],_0x5877fc);}['_getPreviousFrom'](_0x51b33c){const _0x36e8ad=Array['from'](this['_savedMetaData']['keys']());_0x36e8ad['sort']((_0x442ca5,_0x27defe)=>_0x442ca5-_0x27defe),_0x36e8ad['reverse']();for(const _0xaaa098 of _0x36e8ad)if(_0xaaa098<_0x51b33c)return _0xaaa098;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2bfcb8,_0x3c6814){const _0x467dcd=Array['from'](_0x3c6814['markers'])['map'](([_0x5c916a,_0x37fdee])=>[_0x5c916a,this['_fixRange'](_0x37fdee,_0x2bfcb8)]);_0x2bfcb8['markers']=new Map(_0x467dcd);}['_transformMarkers'](_0x1ad72d){for(const _0x33ab81 of this['_markers']['values']()){const _0x22c0bc=_0x33ab81['getTransformedByOperation'](_0x1ad72d),_0x196797=vt['_createFromRanges'](_0x22c0bc);_0x33ab81['start']=_0x196797['start'],_0x33ab81['end']=_0x196797['end'];}}['_handleOperation'](_0x230a2d,_0x5f1d59){if('addRoot'!=_0x230a2d['type']&&'detachRoot'!=_0x230a2d['type']){if('insert'==_0x230a2d['type']){const _0x21ed36=_0x230a2d['position']['root']['rootName'];this['_diffRoots']['has'](_0x21ed36)||(this['_diffRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)),this['_diffRootsAttributes']['set'](_0x21ed36,{}),_0x5f1d59&&this['_idsRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)));}else{if('addRootAttribute'==_0x230a2d['type']||'removeRootAttribute'==_0x230a2d['type']||'changeRootAttribute'==_0x230a2d['type'])return void this['_handleRootAttributeOperation'](_0x230a2d);'marker'==_0x230a2d['type']&&this['_handleMarkerOperation'](_0x230a2d);}if('marker'!==_0x230a2d['type']){const _0x248cda=this['_cloneOperation'](_0x230a2d,this['_diffRoots']);_0x248cda['_execute'](),this['_transformMarkers'](_0x248cda);}if(_0x5f1d59)switch(_0x230a2d['type']){case'insert':this['_handleInsertOperation'](_0x230a2d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x230a2d);break;case'merge':this['_handleMergeOperation'](_0x230a2d);break;case'split':this['_handleSplitOperation'](_0x230a2d);}}else this['_handleRootOperation'](_0x230a2d,_0x5f1d59);}['_cloneOperation'](_0x288e30,_0x7bef1d){const _0x513f6c=_0x288e30['clone']();return _0x513f6c['_authorId']=_0x288e30['_authorId'],this['_fixOperation'](_0x513f6c,_0x7bef1d),_0x513f6c;}['_getBaseVids'](_0x591058){return _0x591058['map'](_0x5502c0=>{const _0x5678bc=this['_getVidAttributeName'](_0x5502c0);return Number(_0x5502c0['item']['getAttribute'](_0x5678bc));});}['_generateTape'](_0x1a96ba,_0x7c5654){if(_0x1a96ba['is']('element','$text'))_0x7c5654['push']({'item':_0x1a96ba,'type':'text'});else{_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementStart'});for(const _0x2a8d57 of _0x1a96ba['getChildren']())this['_generateTape'](_0x2a8d57,_0x7c5654);_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementEnd'});}return _0x7c5654;}['_getState'](){const _0x1c5010=new Map(this['_touched']),_0x173263=new Map(_0x1c5010),_0x338dbc=new Map(),_0x3924b1={'insertions':{},'deletions':{}},_0x50a4c8={'insertions':{},'deletions':{}},_0x5436ff=new Map(),_0x2af4ce=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2af4ce['delete']('$graveyard');for(const _0x2df96f of _0x2af4ce){const _0x2864cc=this['_diffRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),_0x2252e4=this['_baseRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1);_0x2864cc['isAttached']()||_0x2252e4['isAttached']()?(_0x3924b1['insertions'][_0x2df96f]=F(_0x2864cc),_0x3924b1['deletions'][_0x2df96f]=F(_0x2252e4),this['_copyMarkers'](_0x3924b1['deletions'][_0x2df96f],_0x2252e4),this['_copyMarkers'](_0x3924b1['insertions'][_0x2df96f],_0x2864cc),_0x50a4c8['insertions'][_0x2df96f]=this['_generateTape'](this['_idsRoots']['get'](_0x2df96f),[]),_0x50a4c8['deletions'][_0x2df96f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),[])):_0x2af4ce['delete'](_0x2df96f);}for(const _0x9c8f71 of _0x2af4ce){const _0x13f96e=_0x50a4c8['insertions'][_0x9c8f71];for(const _0x2cd4fa of _0x13f96e){const _0x3de769=this['_getVidAttributeName'](_0x2cd4fa),_0x291cac=_0x2cd4fa['item']['getAttribute'](_0x3de769);_0x173263['delete'](_0x291cac),_0x291cac>=this['_startingRevisionId']&&_0x338dbc['set'](_0x291cac,_0x1c5010['get'](_0x291cac));}}for(const _0x2a8dd9 of _0x2af4ce){const _0x6f7ea9=_0x50a4c8['insertions'][_0x2a8dd9],_0x13b6ca=this['_getBaseVids'](_0x50a4c8['deletions'][_0x2a8dd9]);let _0x9b5023=0x0;for(const _0x30ddb3 of _0x6f7ea9){const _0x3a0c32=this['_getVidAttributeName'](_0x30ddb3),_0x17f767=_0x30ddb3['item']['getAttribute'](_0x3a0c32);if(!_0x338dbc['has'](_0x17f767)&&!_0x5436ff['has'](_0x17f767)){if(_0x173263['has'](_0x17f767))_0x9b5023++;else{if(_0x17f767!=_0x13b6ca[_0x9b5023]){const _0x1f2159=_0x1c5010['get'](_0x17f767)||_0x1c5010['get'](_0x13b6ca[_0x9b5023]);for(;_0x17f767!=_0x13b6ca[_0x9b5023];)_0x173263['has'](_0x13b6ca[_0x9b5023])||(_0x5436ff['set'](_0x13b6ca[_0x9b5023],_0x1f2159),_0x1c5010['set'](_0x13b6ca[_0x9b5023],_0x1f2159)),_0x9b5023++;}_0x9b5023++;}}}}for(const _0x5e8f78 of _0x2af4ce){const _0x10a7aa=_0x50a4c8['insertions'][_0x5e8f78];for(const _0x2ebdcc of _0x10a7aa){const _0x2669cb=this['_getVidAttributeName'](_0x2ebdcc),_0x1a7279=_0x2ebdcc['item']['getAttribute'](_0x2669cb);if(_0x5436ff['has'](_0x1a7279)){const _0xfabe47=_0x5436ff['get'](_0x1a7279);_0x173263['has'](_0x1a7279)||_0x173263['set'](_0x1a7279,{..._0xfabe47}),_0x338dbc['set'](_0x1a7279,{..._0xfabe47});}}}for(const _0x411a43 of _0x173263['keys']())_0x411a43>=this['_startingRevisionId']&&_0x173263['delete'](_0x411a43);const _0x353db0=new Map();for(const _0x47ae07 of _0x2af4ce){let _0x47dc77=_0x50a4c8['insertions'][_0x47ae07];for(const _0xf5b244 of _0x47dc77)if(_0xf5b244['item']['is']('element','tableCell')){const _0x356386=this['_getVidAttributeName'](_0xf5b244),_0xe5e052=_0xf5b244['item']['getAttribute'](_0x356386);if(_0x338dbc['has'](_0xe5e052)){const _0x2e3407=_0xf5b244['item']['parent']['parent']['getAttribute']('vid_start'),_0x348739=_0x353db0['get'](_0x2e3407)||new Set();_0x348739['add'](_0x338dbc['get'](_0xe5e052)['userId']),_0x353db0['set'](_0x2e3407,_0x348739);}}_0x47dc77=_0x50a4c8['deletions'][_0x47ae07];for(const _0x296156 of _0x47dc77)if(_0x296156['item']['is']('element','tableCell')){const _0x3ea9b9=this['_getVidAttributeName'](_0x296156),_0x1d2b73=_0x296156['item']['getAttribute'](_0x3ea9b9);if(_0x173263['has'](_0x1d2b73)){const _0x34b4b5=_0x296156['item']['parent']['parent']['getAttribute']('vid_start'),_0x80224=_0x353db0['get'](_0x34b4b5)||new Set();_0x80224['add'](_0x173263['get'](_0x1d2b73)['userId']),_0x353db0['set'](_0x34b4b5,_0x80224);}}for(const _0x138ce5 of _0x353db0['keys']())(_0x338dbc['has'](_0x138ce5)||_0x173263['has'](_0x138ce5))&&_0x353db0['delete'](_0x138ce5);}for(const _0x33630d of _0x2af4ce){const _0xa35c46=_0x50a4c8['insertions'][_0x33630d];let _0x3499ce=null,_0x2693e7=null;for(const _0x373a17 of _0xa35c46){const _0xe7e3e5=this['_getVidAttributeName'](_0x373a17),_0x5275d6=_0x373a17['item']['getAttribute'](_0xe7e3e5),_0x29e477=_0x353db0['get'](_0x5275d6);_0x29e477&&'elementStart'==_0x373a17['type']&&(_0x3499ce=Array['from'](_0x29e477)[0x0],_0x2693e7=_0x373a17['item']['getAttribute']('vid_end')),_0x3499ce&&(_0x173263['set'](_0x5275d6,{'userId':_0x3499ce}),_0x338dbc['set'](_0x5275d6,{'userId':_0x3499ce})),_0x5275d6==_0x2693e7&&(_0x3499ce=null,_0x2693e7=null);}}const _0x467ce2={},_0xef4baa=new Set();for(const _0x481ef3 of _0x2af4ce){const _0x4ac529=_0x3924b1['deletions'][_0x481ef3],_0x2bfdd9=_0x3924b1['insertions'][_0x481ef3];for(const {userId:_0x1a92b8}of this['_touchedMarkers']['values']())null!==_0x1a92b8&&_0xef4baa['add'](_0x1a92b8);for(const {userId:_0x47bf54}of this['_touchedRoots']['values']())null!==_0x47bf54&&_0xef4baa['add'](_0x47bf54);this['_markChanges'](_0x2bfdd9,_0x50a4c8['insertions'][_0x481ef3],_0x338dbc,'insertion',_0xef4baa),this['_markChanges'](_0x4ac529,_0x50a4c8['deletions'][_0x481ef3],_0x173263,'deletion',_0xef4baa),_0x467ce2[_0x481ef3]={'insertions':this['_prepareViewToSave'](_0x2bfdd9),'deletions':this['_prepareViewToSave'](_0x4ac529),'attachChange':this['_touchedRoots']['get'](_0x481ef3)||null,'attributesBefore':_0x2b9a95(this['_baseRootsAttributes']['get'](_0x481ef3))||{},'attributesAfter':_0x2b9a95(this['_diffRootsAttributes']['get'](_0x481ef3))};}return{'diffData':_0x467ce2,'authorsIds':Array['from'](_0xef4baa)};}['_processRootBeforeSave'](_0x225b88){for(const [,_0x3a769c]of _0x225b88['markers']){const _0x28b003=_0x3a769c['start']['getAncestors']()['filter'](_0x43cc78=>'tableCell'==_0x43cc78['name']);for(const _0x2f14bd of _0x28b003)0x1==_0x2f14bd['childCount']&&_0x2f14bd['getChild'](0x0)['is']('element','paragraph')&&_0x2f14bd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x363627){this['_processRootBeforeSave'](_0x363627);const _0x4d3e92=this['editor']['data']['toView'](_0x363627,{}),_0x5bb39b=Array['from'](_0x4d3e92['getChildren']())['map'](_0x5702d4=>this['_getViewJson'](_0x5702d4));return JSON['stringify'](_0x5bb39b);}['_getViewJson'](_0x25d110){if(_0x25d110['is']('$text'))return _0x25d110['data'];{const _0x3f08b5=_0x25d110;return{'type':Object['keys'](C)['find'](_0x218a88=>_0x25d110 instanceof C[_0x218a88]),'name':_0x3f08b5['name'],'attributes':Array['from'](_0x3f08b5['getAttributes']()),'children':Array['from'](_0x3f08b5['getChildren']())['map'](_0x5f4a2e=>this['_getViewJson'](_0x5f4a2e))};}}['_markChanges'](_0x2e4317,_0x34fa2f,_0x12f413,_0x34b45b,_0x4cbeca){let _0x44ace3=null,_0xc78b2d=null,_0x4812e6=0x0;const _0x345e92=this['editor']['model'];for(let _0x125b44=0x0;_0x125b44<_0x34fa2f['length'];_0x125b44++){const _0x27bb48=this['_getVidAttributeName'](_0x34fa2f[_0x125b44]),_0x36aa27=_0x34fa2f[_0x125b44]['item']['getAttribute'](_0x27bb48),_0x436005=_0x12f413['get'](_0x36aa27),_0x453be8=_0x125b44==_0x34fa2f['length']-0x1;(!_0x44ace3&&_0x436005&&(_0x44ace3=_0x436005,_0xc78b2d=_0x34fa2f[_0x125b44]),_0x44ace3&&(!_0x436005||_0x436005['userId']!=_0x44ace3['userId']))&&(_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),J(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92)),_0x44ace3=_0x436005||null,_0xc78b2d=_0x436005?_0x34fa2f[_0x125b44]:null),_0x44ace3&&_0x453be8&&_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),q(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92));}function _0x50737f(_0x3501cb,_0x169967,_0x54a080){const _0x1062b8=_0x44ace3['userId'],_0x166977='revision:'+_0x34b45b+':'+_0x1062b8+':'+_0x4812e6++,_0x1aa20c=_0x345e92['createRange'](_0x169967,_0x54a080);_0x2e4317['markers']['set'](_0x166977,_0x1aa20c),null!==_0x1062b8&&_0x4cbeca['add'](_0x1062b8);}}['_getVidAttributeName'](_0x28fb7e){switch(_0x28fb7e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x50b154,_0x494f68){_0x50b154['baseVersion']=null;for(const _0x2a2138 in _0x50b154){const _0x353f71=_0x50b154[_0x2a2138];if(_0x353f71 instanceof gt){const _0x321c5c=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixPosition'](_0x353f71,_0x321c5c);}if(_0x353f71 instanceof vt){const _0x457490=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixRange'](_0x353f71,_0x457490);}'root'===_0x2a2138&&(_0x50b154['root']=_0x494f68['get'](_0x50b154['root']['rootName']));}}['_fixRange'](_0x58a225,_0x4c366b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58a225['start'],_0x4c366b),this['_fixPosition'](_0x58a225['end'],_0x4c366b));}['_fixPosition'](_0x4514b1,_0x57339a){return this['editor']['model']['createPositionFromPath'](_0x57339a,_0x4514b1['path'],_0x4514b1['stickiness']);}['_handleInsertOperation'](_0x44901e){const _0x55f12e=this['_idsRoots']['get'](_0x44901e['position']['root']['rootName']),_0x4027eb=this['_fixPosition'](_0x44901e['position'],_0x55f12e),_0x3975cf=null===_0x44901e['_authorId']?null:_0x44901e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa20124=_0x4027eb['parent'],_0x1be5d9=this['_revisionId'],_0x5aeceb=[];for(const _0x3a9b6c of _0x44901e['nodes'])if(_0x3a9b6c['is']('element'))_0x5aeceb['push'](this['_makeIdsRoot'](_0x3a9b6c));else{for(let _0x5522e2=0x0;_0x5522e2<_0x3a9b6c['offsetSize'];_0x5522e2++)_0x5aeceb['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x52fa87=this['_revisionId'];for(let _0x4bbc01=_0x1be5d9;_0x4bbc01<_0x52fa87;_0x4bbc01++)this['_touched']['set'](_0x4bbc01,{'userId':_0x3975cf});_0xa20124['_insertChild'](_0x4027eb['offset'],_0x5aeceb);}['_handleMoveOperation'](_0x579b13){(_0x579b13=this['_cloneOperation'](_0x579b13,this['_idsRoots']))['_execute']();const _0x40f71d=null===_0x579b13['_authorId']?null:_0x579b13['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x143859=_0x579b13['getMovedRangeStart'](),_0x235570=_0x143859['parent'],_0x36180c=_0x143859['offset'];!function _0x4231a3(_0x27f816,_0x178271,_0x2753b3,_0x5e7dc2){for(let _0x26761b=_0x2753b3;_0x26761b<_0x5e7dc2;_0x26761b++){const _0x1272ba=_0x178271['getChild'](_0x26761b);_0x1272ba['is']('element','$text')?_0x27f816['set'](_0x1272ba['getAttribute']('vid'),{'userId':_0x40f71d}):(_0x27f816['set'](_0x1272ba['getAttribute']('vid_start'),{'userId':_0x40f71d}),_0x4231a3(_0x27f816,_0x1272ba,0x0,_0x1272ba['childCount']),_0x27f816['set'](_0x1272ba['getAttribute']('vid_end'),{'userId':_0x40f71d}));}}(this['_touched'],_0x235570,_0x36180c,_0x36180c+_0x579b13['howMany']);}['_handleMergeOperation'](_0x44f069){const _0x1ed7cd=null===(_0x44f069=this['_cloneOperation'](_0x44f069,this['_idsRoots']))['_authorId']?null:_0x44f069['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bdc5f=_0x44f069['targetPosition']['parent'],_0x32f4b0=_0x44f069['sourcePosition']['parent'],_0x4da512=_0x2bdc5f['getAttribute']('vid_end'),_0xab72b5=_0x32f4b0['getAttribute']('vid_start');_0x2bdc5f['_setAttribute']('vid_end',_0x32f4b0['getAttribute']('vid_end')),_0x32f4b0['_setAttribute']('vid_end',_0x4da512),this['_touched']['set'](_0xab72b5,{'userId':_0x1ed7cd}),this['_touched']['set'](_0x4da512,{'userId':_0x1ed7cd}),_0x44f069['_execute']();}['_handleSplitOperation'](_0x3988cf){const _0x5e4594=null===(_0x3988cf=this['_cloneOperation'](_0x3988cf,this['_idsRoots']))['_authorId']?null:_0x3988cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x920233=_0x3988cf['graveyardPosition'],_0xc5f0f3=_0x3988cf['splitPosition']['parent'];_0x3988cf['_execute']();const _0x34896c=_0xc5f0f3['getAttribute']('vid_end'),_0x39d160=_0x3988cf['insertionPosition']['nodeAfter'];if(_0x920233){const _0x214757=_0x39d160['getAttribute']('vid_end'),_0x28dcd7=_0xc5f0f3['getAttribute']('vid_end');_0xc5f0f3['_setAttribute']('vid_end',_0x214757),_0x39d160['_setAttribute']('vid_end',_0x28dcd7),this['_touched']['set'](_0xc5f0f3['getAttribute']('vid_end'),{'userId':_0x5e4594}),this['_touched']['set'](_0x39d160['getAttribute']('vid_start'),{'userId':_0x5e4594});}else{const _0x127e98=this['_revisionId']++,_0x9d10b3=this['_revisionId']++;_0xc5f0f3['_setAttribute']('vid_end',_0x127e98),_0x39d160['_setAttribute']('vid_start',_0x9d10b3),_0x39d160['_setAttribute']('vid_end',_0x34896c),this['_touched']['set'](_0x127e98,{'userId':_0x5e4594}),this['_touched']['set'](_0x9d10b3,{'userId':_0x5e4594});}}['_handleMarkerOperation'](_0x5c0105){if(!_0x5c0105['affectsData'])return;const _0x6c86d7=(_0x5c0105=this['_cloneOperation'](_0x5c0105,this['_diffRoots']))['oldRange']?_0x5c0105['oldRange']['root']:null,_0x3d7d4b=_0x5c0105['newRange']?_0x5c0105['newRange']['root']:null;_0x6c86d7&&this['_markers']['delete'](_0x5c0105['name']),_0x3d7d4b&&this['_markers']['set'](_0x5c0105['name'],_0x5c0105['newRange']['clone']());const _0x5ab811=null===_0x5c0105['_authorId']?null:_0x5c0105['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e86f6=_0x5c0105['name'];if(!this['_touchedMarkers']['has'](_0x2e86f6))return void this['_touchedMarkers']['set'](_0x2e86f6,{'range':_0x5c0105['oldRange'],'userId':_0x5ab811});const _0x4ed442=this['_touchedMarkers']['get'](_0x2e86f6),_0xa890d=_0x4ed442['range'],_0x2717de=_0x5c0105['newRange'];null==_0xa890d&&null==_0x2717de||_0xa890d&&_0x2717de&&_0xa890d['isEqual'](_0x2717de)?this['_touchedMarkers']['delete'](_0x5c0105['name']):_0x4ed442['userId']=_0x5ab811;}['_handleRootOperation'](_0x111d69,_0xea8da2){this['_diffRoots']['has'](_0x111d69['rootName'])?this['_diffRoots']['get'](_0x111d69['rootName'])['_isAttached']=_0x111d69['isAdd']:(this['_diffRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x111d69['rootName'],{}),_0xea8da2&&this['_idsRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)));const _0x36227e=null===_0x111d69['_authorId']?null:_0x111d69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa8ae2a=this['_touchedRoots']['get'](_0x111d69['rootName']);_0xa8ae2a&&_0xa8ae2a['userId']===_0x36227e?this['_touchedRoots']['delete'](_0x111d69['rootName']):this['_touchedRoots']['set'](_0x111d69['rootName'],{'userId':_0x36227e,'isAttached':_0x111d69['isAdd']});}['_handleRootAttributeOperation'](_0x577498){const _0x526c50=this['_diffRootsAttributes']['get'](_0x577498['root']['rootName']);null===_0x577498['newValue']?delete _0x526c50[_0x577498['key']]:_0x526c50[_0x577498['key']]=_0x577498['newValue'];}}function F(_0x3db3fe){const _0xe4da1e=B(_0x3db3fe['rootName'],_0x3db3fe['isAttached']());for(const _0x43f575 of _0x3db3fe['getChildren']()){const _0xfbc9b4=_0x43f575['_clone'](!0x0);_0xe4da1e['_appendChild'](_0xfbc9b4);}return _0xe4da1e;}function B(_0x2366bc,_0x24ef0b=!0x0){const _0x121983=new mt();return _0x121983['rootName']=_0x2366bc,_0x121983['_isAttached']=_0x24ef0b,_0x121983['isAttached']=()=>_0x121983['_isAttached'],_0x121983;}function J(_0x12341c,_0x444b44,_0x2d4234){const _0x45d692='elementEnd'==_0x12341c['type']?_0x2d4234['createPositionAt'](_0x12341c['item'],'end'):_0x2d4234['createPositionBefore'](_0x12341c['item']);return _0x2d4234['createPositionFromPath'](_0x444b44,_0x45d692['path'],_0x45d692['stickiness']);}function q(_0x494f87,_0x5c362f,_0x4750d4){const _0x53ae59='elementStart'==_0x494f87['type']?_0x4750d4['createPositionAt'](_0x494f87['item'],0x0):_0x4750d4['createPositionAfter'](_0x494f87['item']);return _0x4750d4['createPositionFromPath'](_0x5c362f,_0x53ae59['path'],_0x53ae59['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x368337,_0x355702){super(_0x368337),this['focusTracker']=new _0xf20832(),this['keystrokes']=new _0x282e49(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x355702),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x105f99(this);}['render'](){super['render'](),_0x24b08d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xa68cb3=_0x5d1638=>_0x5d1638['stopPropagation']();this['keystrokes']['set']('arrowright',_0xa68cb3),this['keystrokes']['set']('arrowleft',_0xa68cb3),this['keystrokes']['set']('arrowup',_0xa68cb3),this['keystrokes']['set']('arrowdown',_0xa68cb3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x165840){this['revisionNameInputView']['fieldView']['element']['value']=_0x165840['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35ea51){const _0x4e9177=new _0x3bef68(this['locale'],_0x4d2d9f),_0x498b50=_0x4e9177['fieldView'];_0x498b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3cc4d8=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35ea51&&(_0x3cc4d8+='\x20('+R(this['locale'],'optional')+')'),(_0x4e9177['label']=_0x3cc4d8,_0x498b50['on']('input',()=>{this['revisionNameInputValue']=_0x498b50['element']['value']['trim']();}),_0x4e9177);}}class u extends _0x27bfb5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xd33d9f=this['editor'],_0x538c26=_0xd33d9f['plugins']['get']('RevisionTracker');_0xd33d9f['ui']['componentFactory']['add']('revisionHistory',_0x32869e=>{const _0x4433f3=_0x327b70(_0x32869e),_0x4d294d=_0x4433f3['panelView']['children'],_0x386357=new _0x3362f5(_0x32869e),_0x2851af=new _0x2be56c(_0x32869e),_0x164115=new te(_0x32869e),_0x41e458=new _0x2be56c(_0x32869e),_0x4bda6b=new te(_0x32869e);return _0x4433f3['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x4405f2,_0x1fb57f,_0x349b7a)=>_0x4405f2&&_0x1fb57f&&!_0x349b7a),_0x4433f3['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x32869e,'Revision\x20history'),'tooltip':!0x0}),_0x164115['set']({'label':R(_0x32869e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x164115['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x39fa45,_0x2a2a14,_0x3b33ec)=>_0x39fa45&&_0x2a2a14&&!_0x3b33ec),_0x164115['on']('execute',()=>this['_showDialog']()),_0x4bda6b['set']({'label':R(_0x32869e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4bda6b['bind']('isEnabled')['to'](_0x538c26,'isReady',_0xd33d9f,'isReadOnly',(_0x2a688b,_0x5dfcea)=>_0x2a688b&&!_0x5dfcea),_0x4bda6b['on']('execute',()=>{_0xd33d9f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4433f3['isOpen']=!0x1,_0xd33d9f['editing']['view']['focus']();}),_0x2851af['children']['add'](_0x164115),_0x41e458['children']['add'](_0x4bda6b),_0x386357['role']='menu',_0x386357['items']['addMany']([_0x2851af,_0x41e458]),_0x4d294d['add'](_0x386357),_0x4433f3;}),_0xd33d9f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4f0c77=this['editor'],_0x4399b5=_0x4f0c77['locale'],_0x1d6249=new _0x236325(_0x4399b5),_0x5de0be=new _0x3ecedc(_0x4399b5);_0x1d6249['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x4399b5,'Revision\x20history')});const _0x34b169=new _0x391bac(_0x4399b5,_0x1d6249),_0x8ed6a9=new _0x47c8b3(_0x4399b5);_0x8ed6a9['set']({'label':R(_0x4399b5,'Save\x20current\x20revision')}),_0x8ed6a9['delegate']('execute')['to'](_0x1d6249),_0x8ed6a9['on']('execute',()=>{this['_showDialog']();}),_0x34b169['children']['add'](_0x8ed6a9),_0x5de0be['items']['add'](_0x34b169);const _0x24f1dc=new _0x391bac(_0x4399b5,_0x1d6249),_0x438cde=new _0x47c8b3(_0x4399b5);return _0x438cde['set']({'label':R(_0x4399b5,'Open\x20revision\x20history')}),_0x438cde['delegate']('execute')['to'](_0x1d6249),_0x438cde['on']('execute',()=>{_0x4f0c77['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x24f1dc['children']['add'](_0x438cde),_0x5de0be['items']['add'](_0x24f1dc),_0x1d6249['panelView']['children']['add'](_0x5de0be),_0x1d6249;}['_showDialog'](){const _0x328b5e=this['editor'],_0x177dc6=_0x328b5e['locale'],_0xb63fe2=_0x328b5e['plugins']['get']('Dialog'),_0x26c5c1=_0x328b5e['plugins']['get']('RevisionTracker');function _0x346d09(_0x1078eb){_0x328b5e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1078eb['revisionName']?_0x1078eb['revisionNameInputView']['errorText']=R(_0x177dc6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x328b5e['plugins']['get'](l)['saveRevision']({'name':_0x1078eb['revisionName']}),_0xb63fe2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x346d09(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb63fe2['show']({'id':'revisionSave','title':R(_0x177dc6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x328b5e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb63fe2['hide']()},{'label':R(_0x328b5e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4955da){_0x4955da['bind']('isEnabled')['to'](_0x26c5c1,'isReady',_0x26c5c1,'isEnabled',_0x328b5e,'isReadOnly',(_0x510720,_0x1aaf90,_0x496845)=>_0x510720&&_0x1aaf90&&!_0x496845);},'onExecute':()=>_0x346d09(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4717c7=this['editor'],_0x3621e0=_0x4717c7['locale'];this['_saveRevisionFormView']=new hs(_0x3621e0,_0x4717c7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x24507d,_0x43d1e2){super(_0x24507d),this['_model']=_0x43d1e2,this['changeId']=_0x43d1e2['id'];const _0x8f2c99=this['bindTemplate'],_0x49ff88=R(_0x24507d,_0x43d1e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x43d1e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x43d1e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x8f2c99['to']('type',_0x1b8325=>'ck-revision-change__'+_0x1b8325)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49ff88}]},{'text':'\x20'+_0x43d1e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x16ad9e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1b8c37){super(),this['id']=_0x1b8c37['id']||_0x49b2b2(),this['author']=_0x1b8c37['author'],this['type']=_0x1b8c37['type'],this['data']=_0x1b8c37['data']||{},this['rootName']=_0x1b8c37['rootName'],this['set']('createdAt',_0x1b8c37['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x557768,_0x1fd650){this['newRevisionId']=_0x557768,this['oldRevisionId']=_0x1fd650,this['changes']=new _0x24f698();}['_setChanges'](_0x444f85){for(const _0x419796 of _0x444f85)this['changes']['add'](_0x419796);}}const Z={'c':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class d extends _0x27bfb5{['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[_0x3253d7,_0x112130,j];}constructor(_0x3256d0){super(_0x3256d0),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',(_0x563515,_0x4e829c,_0x5295ac)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2c98a0=>{for(const _0x4b14c5 of this['editor']['editing']['view']['document']['roots'])_0x5295ac?_0x2c98a0['removeClass']('ck-editor__editable__overlay',_0x4b14c5):_0x2c98a0['addClass']('ck-editor__editable__overlay',_0x4b14c5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x540533=>null!==_0x540533),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27a754,_0x1f0be5,_0x43a2f2)=>_0x27a754&&_0x43a2f2?_0x1f0be5['changes']['getIndex'](_0x43a2f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x57d32c,_0xd3cec0)=>_0x57d32c?_0xd3cec0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x112130);}['init'](){const _0x229843=this['editor'],_0x593b7f=new yt(_0x229843,{'direction':'backward'}),_0x2855b3=new yt(_0x229843,{'direction':'forward'});(_0x229843['commands']['add']('showPreviousChange',_0x593b7f),_0x229843['commands']['add']('showNextChange',_0x2855b3),_0x229843['commands']['add']('restoreRevision',new _t(_0x229843)),this['on']('change:numberOfChanges',()=>{_0x593b7f['refresh'](),_0x2855b3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x229843['enableReadOnlyMode']('revision-viewer'),_0x229843['plugins']['has']('WidgetToolbarRepository'))&&_0x229843['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x376f17){await this['loadRevisionData'](_0x376f17);const _0x49456a={};for(const _0x20e344 in _0x376f17['diffData']){if(_0x376f17['diffData'][_0x20e344]['attachChange']&&!_0x376f17['diffData'][_0x20e344]['attachChange']['isAttached'])continue;const _0x4fbc45=this['_removeRevisionMarkers'](JSON['parse'](_0x376f17['diffData'][_0x20e344]['insertions'])),_0x50bb3b=this['editor']['editing']['view']['document'],_0x4a4ee0=new _0x2d7291(_0x50bb3b,_0x4fbc45['map'](_0x3e622e=>this['_getViewObj'](_0x3e622e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49456a[_0x20e344]=this['editor']['data']['processor']['toData'](_0x4a4ee0),this['editor']['data']['processor']['useFillerType']('default');}return _0x49456a;}async['getRevisionRootsAttributes'](_0x5ed7bd){await this['loadRevisionData'](_0x5ed7bd);const _0x1e8ae3={};for(const _0x2bbb8d in _0x5ed7bd['diffData'])_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']&&!_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']['isAttached']||(_0x1e8ae3[_0x2bbb8d]=_0x5ed7bd['diffData'][_0x2bbb8d]['attributesAfter']||{});return _0x1e8ae3;}['_removeRevisionMarkers'](_0x5d5010){return(_0x5d5010=_0x5d5010['filter'](_0x406a3f=>!_0x406a3f['name']||'revision-start'!==_0x406a3f['name']&&'revision-end'!==_0x406a3f['name']))['forEach'](_0x2c03f1=>{'string'!=typeof _0x2c03f1&&(_0x2c03f1['children']=this['_removeRevisionMarkers'](_0x2c03f1['children']),_0x2c03f1['attributes']=_0x2c03f1['attributes']['filter'](_0x3fae97=>!_0x3fae97[0x0]['startsWith']('data-revision-')));}),_0x5d5010;}async['compare'](_0x9d6dda,_0x5bdb4f,_0x55129e=!0x1){if(!this['isEnabled'])return;const _0x542fb2=this['diff'],_0x32254b=this['repository'],_0x3ebc7b='string'==typeof _0x9d6dda?_0x32254b['getRevision'](_0x9d6dda):_0x9d6dda,_0xf7a29d='string'==typeof _0x5bdb4f?_0x32254b['getRevision'](_0x5bdb4f):_0x5bdb4f,_0x1c09f7=_0x3ebc7b['id'],_0x4b20a0=_0xf7a29d?_0xf7a29d['id']:null;if(!_0x55129e&&this['diff']&&this['diff']['newRevisionId']===_0x1c09f7&&this['diff']['oldRevisionId']===_0x4b20a0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1c09f7,_0x4b20a0);const _0x29f774=this['_getRevisionsRange'](_0x3ebc7b,_0xf7a29d,!0x0)['map'](_0x2416c3=>this['loadRevisionData'](_0x2416c3));return _0x29f774['push'](new Promise(_0x443945=>{setTimeout(_0x443945,0x14);})),Promise['all'](_0x29f774)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3584ff=this['_getDiff'](_0x1c09f7,_0x4b20a0);for(const _0x176fa1 of _0x3584ff['changes'])this['_changeIdToChange']['set'](_0x176fa1['id'],_0x176fa1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc99371=>{for(const _0x35fb9f of this['editor']['model']['document']['getRootNames']())_0xc99371['detachRoot'](_0x35fb9f);for(const _0x2dc5ba of Object['keys'](_0x3584ff['model'])){const _0x70e35e=_0xc99371['addRoot'](_0x2dc5ba);for(const _0x3579f1 of Object['keys'](_0x3584ff['attributes'][_0x2dc5ba]))_0xc99371['setAttribute'](_0x3579f1,_0x3584ff['attributes'][_0x2dc5ba][_0x3579f1],_0x70e35e);_0xc99371['insert'](_0x3584ff['model'][_0x2dc5ba],_0x70e35e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3584ff['changes'])),this['isReady']=!0x0;})['catch'](_0x25b4b6=>{console['error'](_0x25b4b6),this['_cleanUp'](),_0x542fb2&&(this['diff']=_0x542fb2),this['isReady']=!0x0;});}['addRevisionData'](_0x54156a,_0x248d28){const _0x166317=this['repository']['createRevision'](_0x54156a);return _0x166317['on']('_update',(_0xb1bece,_0x29afa8,_0x6f96f9)=>_0x248d28(_0x29afa8,_0x6f96f9,_0x166317)),this['repository']['addRevision'](_0x166317),_0x166317;}['loadRevisionData'](_0x377330){if(!_0x377330||_0x377330['diffData'])return Promise['resolve']();{const _0xcd661d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xcd661d,'revisionId':_0x377330['id']})['then'](_0x4c3c54=>{_0x377330['_update']({'diffData':_0x4c3c54['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},_0x53fae0=>{for(const _0x4fcd30 of this['editor']['model']['document']['getRootNames']())_0x53fae0['detachRoot'](_0x4fcd30);});}['_sortAndFilterDiffChanges'](_0x458b2e){const _0x2f76c2=[],_0x1a61be=new Map();for(const _0x40acd0 of this['editor']['model']['document']['getRootNames']()){const _0x5df763=this['editor']['editing']['view']['getDomRoot'](_0x40acd0);if(!_0x5df763)continue;const _0xd9b013=_0x5df763['getClientRects']()['item'](0x0);_0xd9b013&&(_0x2f76c2['push'](_0x40acd0),_0x1a61be['set'](_0x40acd0,_0xd9b013));}return _0x2f76c2['sort']((_0x519e9d,_0x3fc077)=>{const _0x312bfd=_0x1a61be['get'](_0x519e9d),_0x52b6b1=_0x1a61be['get'](_0x3fc077);return _0x312bfd['y']-_0x52b6b1['y']||_0x312bfd['x']-_0x52b6b1['x'];}),(_0x458b2e=_0x458b2e['filter'](_0x360ec7=>_0x2f76c2['includes'](_0x360ec7['rootName'])))['sort']((_0x45a763,_0x254524)=>_0x2f76c2['indexOf'](_0x45a763['rootName'])-_0x2f76c2['indexOf'](_0x254524['rootName'])),_0x458b2e;}['_makeTape'](_0xc17974){const _0x59e0a3=Array['from'](_0xc17974['markers'])['filter'](([_0x2977ce,_0x2d6fc7])=>_0x2977ce['startsWith']('revision:')&&!_0x2d6fc7['isCollapsed']),_0x61ed7=Array['from'](this['editor']['model']['createRangeIn'](_0xc17974)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x59e0a3['length'])for(const _0xfd21f7 of _0x61ed7){const [_0xd10d80,_0x224d54]=_0x59e0a3[0x0],[,_0x3a74fe,_0x441b36]=_0xd10d80['split'](':');if(_0x224d54['end']['isEqual'](_0xfd21f7['nextPosition'])&&_0x59e0a3['shift'](),(_0xfd21f7['previousPosition']['isEqual'](_0x224d54['start'])||_0xfd21f7['previousPosition']['isAfter'](_0x224d54['start']))&&('insertion'==_0x3a74fe?_0xfd21f7['isAdded']={'userId':_0x441b36}:'deletion'==_0x3a74fe&&(_0xfd21f7['isRemoved']={'userId':_0x441b36})),0x0==_0x59e0a3['length'])break;}return _0x61ed7;}['_refreshStartEndIndex'](_0x4b4a04){const _0x3dbca6=new Map();for(let _0x2f5302=0x0;_0x2f5302<_0x4b4a04['length'];_0x2f5302++)'text'===_0x4b4a04[_0x2f5302]['type']?(_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302,_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302):('elementStart'===_0x4b4a04[_0x2f5302]['type']?_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302:'elementEnd'===_0x4b4a04[_0x2f5302]['type']&&(_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302),_0x3dbca6['set'](_0x4b4a04[_0x2f5302]['id'],_0x2f5302));for(const _0x2d2eb0 of _0x3dbca6['values']())'elementStart'===_0x4b4a04[_0x2d2eb0]['type']?_0x4b4a04[_0x2d2eb0]['item']['endIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']):'elementEnd'===_0x4b4a04[_0x2d2eb0]['type']&&(_0x4b4a04[_0x2d2eb0]['item']['startIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']));}['_processTape'](_0x4165f8){for(let _0x1df855=0x0;_0x1df855<_0x4165f8['length'];_0x1df855++){if('elementStart'===_0x4165f8[_0x1df855]['type'])_0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855;else{if('elementEnd'===_0x4165f8[_0x1df855]['type']){_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855;const _0x28ccfa=_0x4165f8[_0x1df855]['item']['startIndex'];_0x4165f8[_0x28ccfa]['pairId']=_0x4165f8[_0x1df855]['id'],_0x4165f8[_0x1df855]['pairId']=_0x4165f8[_0x28ccfa]['id'];}else _0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855,_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855,_0x4165f8[_0x1df855]['pairId']=null;}_0x4165f8[_0x1df855]['markersStart']||(_0x4165f8[_0x1df855]['markersStart']=[],_0x4165f8[_0x1df855]['markersEnd']=[]);}}['_markInsertions'](_0x539b59,_0x5c089b){const _0xb51e4b=_0x539b59['filter'](_0x6a9a58=>!_0x6a9a58['isAdded']);for(let _0x39ec74=0x0;_0x39ec74<_0x5c089b['length'];_0x39ec74++)_0x5c089b[_0x39ec74]['isAdded']&&(_0xb51e4b[_0x39ec74]['isAdded']=_0x5c089b[_0x39ec74]['isAdded']);}['_makeModelFromViewString'](_0x3b85a5){const _0x4cf8a=JSON['parse'](_0x3b85a5),_0x49c0fa=this['editor']['editing']['view']['document'],_0xfa0bd0=new _0x2d7291(_0x49c0fa,_0x4cf8a['map'](_0xf3953d=>this['_getViewObj'](_0xf3953d)));return this['editor']['data']['toModel'](_0xfa0bd0);}['_getViewObj'](_0x94b4fc){const _0x483c93=this['editor']['editing']['view']['document'];if('string'==typeof _0x94b4fc)return new _0x309635(_0x483c93,_0x94b4fc);{const _0x363636=_0x94b4fc['children']['map'](_0xe58112=>this['_getViewObj'](_0xe58112));return new(Z[_0x94b4fc['type']]||_0x3489bf)(_0x483c93,_0x94b4fc['name'],_0x94b4fc['attributes'],_0x363636);}}['_getDiff'](_0x178eb8,_0x3cd307=null){const _0x3a4a60=this['repository']['getRevision'](_0x178eb8),_0x361a9d=_0x3cd307?this['repository']['getRevision'](_0x3cd307):null,_0x8c127c=this['_getRevisionsRange'](_0x3a4a60,_0x361a9d),_0x516138=_0x8c127c[_0x8c127c['length']-0x1],_0x51f4ff=new Map(),_0x17661b={'model':{},'attributes':{},'changes':[]},_0x1e63ae=new Set(),_0x4b9f55=new Map();for(let _0x138754=_0x8c127c['length']-0x1;_0x138754>=0x0;_0x138754--){const _0x5be6b9=_0x8c127c[_0x138754];for(const _0x46c0a9 of Object['keys'](_0x5be6b9['diffData']))if(_0x5be6b9['diffData'][_0x46c0a9]['attachChange']){const _0x691fde=_0x5be6b9['diffData'][_0x46c0a9]['attachChange'];_0x691fde['isAttached']?(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['has'](_0x46c0a9)&&_0x4b9f55['get'](_0x46c0a9)['userId']==_0x691fde['userId']?_0x4b9f55['delete'](_0x46c0a9):_0x4b9f55['set'](_0x46c0a9,_0x691fde)):_0x4b9f55['has'](_0x46c0a9)?(_0x1e63ae['delete'](_0x46c0a9),_0x4b9f55['delete'](_0x46c0a9)):(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['set'](_0x46c0a9,_0x691fde));}else _0x1e63ae['add'](_0x46c0a9);}for(const _0x24bafd of _0x1e63ae){const _0x138072=_0x4b9f55['has'](_0x24bafd)&&!_0x4b9f55['get'](_0x24bafd)['isAttached'];let _0x20a843=_0x138072?_0x8c127c['length']-0x1:0x0;const _0x51154e=_0x138072?-0x1:0x1;for(;_0x8c127c[_0x20a843];){const _0x4a858b=_0x8c127c[_0x20a843];if(_0x4a858b['diffData'][_0x24bafd]){const _0x2e5790=_0x138072?_0x4a858b['diffData'][_0x24bafd]['attributesBefore']:_0x4a858b['diffData'][_0x24bafd]['attributesAfter'];_0x17661b['attributes'][_0x24bafd]=_0x2e5790?_0x2b9a95(_0x2e5790):{};break;}_0x20a843+=_0x51154e;}}for(const _0xe4a39f of _0x8c127c){_0xe4a39f['model']={};for(const _0xb70ded of _0xe4a39f['authors'])_0x51f4ff['set'](_0xb70ded['id'],_0xb70ded);for(const _0x41775e of _0x1e63ae){const _0x366bab=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['insertions']:'[]',_0x85ffa5=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['deletions']:'[]';_0xe4a39f['model'][_0x41775e]={'insertions':this['_makeModelFromViewString'](_0x366bab),'deletions':this['_makeModelFromViewString'](_0x85ffa5)};}}for(const _0x62e427 of _0x1e63ae){let _0x10004b=null,_0x74d701=0x0;const _0x130c58=new Map(Array['from'](_0x3a4a60['model'][_0x62e427]['insertions']['markers'])['filter'](([_0xf1da6b])=>!_0xf1da6b['startsWith']('revision:')));let _0x4c3cd3=0x0;for(const _0x449fc2 of _0x8c127c){const _0x4ab6a3=this['_makeTape'](_0x449fc2['model'][_0x62e427]['insertions']);_0x449fc2==_0x3a4a60?(_0x10004b=_0x4ab6a3,_0x74d701=_0x10004b['length'],_0x10004b['forEach'](_0x374e08=>{_0x374e08['id']=_0x4c3cd3++;}),this['_processTape'](_0x10004b)):this['_markInsertions'](_0x10004b,_0x4ab6a3);const _0x3ba2e5=_0x10004b['filter'](_0x1fce7b=>!_0x1fce7b['isAdded'])['map'](_0x102a36=>_0x102a36['id']);let _0x4d8842=0x0;const _0x2b964f=this['_makeTape'](_0x449fc2['model'][_0x62e427]['deletions']);_0x2b964f['forEach'](_0x4d1fcf=>{_0x4d1fcf['isRemoved']?_0x4d1fcf['id']=_0x74d701++:_0x4d1fcf['id']=_0x3ba2e5[_0x4d8842++];}),this['_processTape'](_0x2b964f),this['_setDistance'](_0x10004b,'isAdded'),this['_setDistance'](_0x2b964f,'isRemoved'),_0x449fc2==_0x3a4a60&&this['_markMarkers'](_0x10004b,_0x130c58),_0x10004b=this['_joinTapes'](_0x10004b,_0x2b964f),this['_refreshStartEndIndex'](_0x10004b),this['_setDistance'](_0x10004b,'isRemoved');}_0x10004b=_0x10004b['filter'](_0x4b80e2=>!(_0x4b80e2['isAdded']&&_0x4b80e2['isRemoved']));const _0x296ba9=new Map(_0x516138['model'][_0x62e427]['deletions']['markers']),_0x333095=new Set(_0x130c58['keys']());for(const _0x1e7a35 of _0x296ba9['keys']())_0x333095['delete'](_0x1e7a35);this['_markSuggestions'](_0x10004b,_0x333095),this['_fixObsoleteTags'](_0x10004b),_0x10004b=this['_removeMissingPairs'](_0x10004b),_0x10004b=this['_markMismatchedRemovedTags'](_0x10004b),_0x10004b=this['_removeUnsupportedChanges'](_0x10004b);const {root:_0x4a46c1,changes:_0x35e2b5}=this['_makeModelFromTape'](_0x10004b,_0x51f4ff,_0x62e427);_0x17661b['model'][_0x62e427]=_0x4a46c1;const _0x5ae188=_0x4b9f55['get'](_0x62e427);if(_0x5ae188){const _0x379a9c=_0x51f4ff['get'](_0x5ae188['userId']),_0x28f3fe=new r({'author':_0x379a9c,'type':_0x5ae188['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x62e427});_0x35e2b5['unshift'](_0x28f3fe),_0x17661b['attributes'][_0x62e427]['revisionHistoryAttachChange']=_0x28f3fe['id'];}_0x17661b['changes']=_0x17661b['changes']['concat'](_0x35e2b5);}return _0x17661b;}['_markMarkers'](_0x613dd0,_0x239c8a){for(let _0x5976db=0x0;_0x5976db<_0x613dd0['length'];_0x5976db++)for(const [_0x1f8255,_0x29fbda]of _0x239c8a)_0x29fbda['start']['isEqual'](_0x613dd0[_0x5976db]['previousPosition'])&&_0x613dd0[_0x5976db]['markersStart']['push'](_0x1f8255),_0x29fbda['end']['isEqual'](_0x613dd0[_0x5976db]['nextPosition'])&&_0x613dd0[_0x5976db]['markersEnd']['push'](_0x1f8255);}['_joinTapes'](_0x686dbc,_0x18da1d){let _0xd70e42=[],_0x47020f=0x0,_0x26207c=0x0;for(;_0x47020f<_0x686dbc['length']||_0x26207c<_0x18da1d['length'];){const _0x38478a=_0x686dbc[_0x47020f]||{},_0xda72b8=_0x18da1d[_0x26207c]||{};if(_0x38478a['id']==_0xda72b8['id'])_0x47020f++,_0x26207c++,_0xd70e42['push'](_0x38478a);else{if(_0xda72b8['isRemoved']&&_0x38478a['isAdded']){const {commonTape:_0xef2f68,iEnd:_0x4fdb38,jEnd:_0x140c0c}=this['_threeWayMerge'](_0x686dbc,_0x47020f,_0x18da1d,_0x26207c);_0xd70e42=_0xd70e42['concat'](_0xef2f68),_0x47020f=_0x4fdb38,_0x26207c=_0x140c0c;}else _0xda72b8['isRemoved']?(_0x26207c++,_0xd70e42['push'](_0xda72b8)):(_0x47020f++,_0xd70e42['push'](_0x38478a));}}return _0xd70e42;}['_markSuggestions'](_0x548cf7,_0x1a689b){const _0x32cb5d=[];for(let _0x978992=0x0;_0x978992<_0x548cf7['length'];_0x978992++){for(let _0x13fd12=0x0;_0x13fd12<_0x548cf7[_0x978992]['markersStart']['length'];_0x13fd12++){const _0x472637=_0x548cf7[_0x978992]['markersStart'][_0x13fd12];if(!_0x1a689b['has'](_0x472637))continue;const {group:_0x2ed440,type:_0x26956e,authorId:_0x4b4506}=_0x3f78d0(_0x472637);'revision-suggestion'!=_0x2ed440||'insertion'!=_0x26956e&&'deletion'!=_0x26956e||(_0x32cb5d['unshift']({'type':_0x26956e,'name':_0x472637,'userId':_0x4b4506}),_0x548cf7[_0x978992]['markersStart']['splice'](_0x13fd12,0x1),_0x13fd12--);}_0x3c29b7(_0x548cf7[_0x978992]);for(let _0x5e3167=0x0;_0x5e3167<_0x548cf7[_0x978992]['markersEnd']['length'];_0x5e3167++){const _0x2a014e=_0x548cf7[_0x978992]['markersEnd'][_0x5e3167];if(!_0x1a689b['has'](_0x2a014e))continue;const {group:_0x269f5a,type:_0x5c5820}=_0x3f78d0(_0x2a014e);if('revision-suggestion'!=_0x269f5a||'insertion'!=_0x5c5820&&'deletion'!=_0x5c5820)continue;_0x548cf7[_0x978992]['markersEnd']['splice'](_0x5e3167,0x1),_0x5e3167--;const _0x9a83a=_0x32cb5d['findIndex'](_0x1c6fde=>_0x1c6fde['name']==_0x2a014e);_0x9a83a>-0x1&&_0x32cb5d['splice'](_0x9a83a,0x1);}}function _0x3f78d0(_0x162a8b){const _0x32633d=_0x162a8b['split'](':');return{'group':_0x32633d[0x0],'type':_0x32633d[0x1],'subType':_0x32633d['length']>=0x5?_0x32633d[0x2]:null,'id':_0x32633d['length']<0x5?_0x32633d[0x2]:_0x32633d[0x3],'authorId':_0x32633d['length']<0x5?_0x32633d[0x3]:_0x32633d[0x4],'markerCount':0x6==_0x32633d['length']?_0x32633d[0x5]:null};}function _0x3c29b7(_0x3643f0){for(let _0x184257=0x0;_0x184257<_0x32cb5d['length'];_0x184257++){if(_0x3643f0['isAdded']&&'insertion'==_0x32cb5d[_0x184257]['type'])return _0x3643f0['isAddSuggestion']=_0x32cb5d[_0x184257],void delete _0x3643f0['isAdded'];if(!_0x3643f0['isAdded']&&!_0x3643f0['isRemoved']&&'deletion'==_0x32cb5d[_0x184257]['type'])return void(_0x3643f0['isRemoveSuggestion']=_0x32cb5d[_0x184257]);}}}['_setDistance'](_0x40c7a0,_0x427af7){let _0x58f780=0x0,_0x4391ac=!0x1;const _0x31361c=new Map();for(const _0x5d9542 of _0x40c7a0)_0x5d9542[_0x427af7]?_0x4391ac&&(_0x58f780++,_0x4391ac=!0x1):(_0x58f780++,_0x4391ac=!0x0),_0x31361c['set'](_0x5d9542['id'],_0x58f780);for(let _0x2d4fd6=0x0;_0x2d4fd6<_0x40c7a0['length'];_0x2d4fd6++){if('isRemoved'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isAdded']||'isAdded'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isRemoved'])continue;if('text'==_0x40c7a0[_0x2d4fd6]['type']){_0x40c7a0[_0x2d4fd6]['distance']=0x0;continue;}const _0x365901=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['pairId']),_0x517ae0=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['id']);_0x40c7a0[_0x2d4fd6]['distance']=_0x365901-_0x517ae0;}}['_getRevisionsRange'](_0x573d61,_0x3f7b54,_0x5adf4b=!0x1){const _0x112d3a=[];let _0x262658=this['repository']['getIndex'](_0x573d61),_0x4430ba=this['repository']['getIndex'](_0x3f7b54);for(-0x1==_0x4430ba&&(_0x4430ba=this['repository']['_revisions']['length'],_0x5adf4b=!0x1);_0x262658<_0x4430ba;)_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x262658++;return _0x5adf4b&&_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x112d3a;}['_threeWayMerge'](_0x19ae76,_0x351a83,_0x2cc293,_0x25fc5d){const _0x4efc1f=this['editor']['model']['schema'];let _0x3ea27f=_0x351a83;for(;_0x19ae76[_0x3ea27f]&&_0x19ae76[_0x3ea27f]['isAdded'];)_0x3ea27f++;let _0x512ff8=_0x25fc5d;for(;_0x2cc293[_0x512ff8]&&_0x2cc293[_0x512ff8]['isRemoved'];)_0x512ff8++;_0x393c89(_0x19ae76,_0x351a83,_0x3ea27f),_0x393c89(_0x2cc293,_0x25fc5d,_0x512ff8);const _0x380b86=_0x2cc293['slice'](_0x25fc5d,_0x512ff8)['concat'](_0x19ae76['slice'](_0x351a83,_0x3ea27f));return _0x380b86['sort']((_0x4b7920,_0x13350f)=>_0x4b7920['side']!=_0x13350f['side']?_0x4b7920['side']-_0x13350f['side']:_0x4b7920['level']!=_0x13350f['level']?_0x4b7920['level']-_0x13350f['level']:_0x4b7920['distance']!=_0x13350f['distance']?_0x13350f['distance']-_0x4b7920['distance']:!!_0x4b7920['isAdded']!=!!_0x13350f['isAdded']?-0x1==_0x4b7920['side']||0x0==_0x4b7920['side']?_0x4b7920['isAdded']?-0x1:0x1:_0x4b7920['isAdded']?0x1:-0x1:_0x4b7920['index']-_0x13350f['index']),{'commonTape':_0x380b86,'iEnd':_0x3ea27f,'jEnd':_0x512ff8};function _0x393c89(_0x548167,_0x3bfdf7,_0x28d169){let _0x107186=-0x1,_0x32127b=Number['POSITIVE_INFINITY'],_0x3a5357=!0x0;for(let _0x102e11=_0x3bfdf7;_0x102e11<_0x28d169;_0x102e11++)if(_0x4efc1f['isInline'](_0x548167[_0x102e11]['item'])||(_0x3a5357=!0x1),_0x548167[_0x102e11]['item']['startIndex']<_0x3bfdf7&&(_0x107186=_0x102e11),_0x548167[_0x102e11]['item']['endIndex']>=_0x28d169){_0x32127b=_0x102e11;break;}_0x3a5357&&(_0x107186=_0x28d169-0x1);for(let _0x5caea0=_0x3bfdf7;_0x5caea0<_0x28d169;_0x5caea0++)_0x548167[_0x5caea0]['side']=_0x5caea0<=_0x107186?-0x1:_0x5caea0<_0x32127b?0x0:0x1,_0x548167[_0x5caea0]['index']=_0x5caea0;let _0x17cdb9=0x0;for(let _0x5738c8=_0x3bfdf7;_0x5738c8<=_0x107186;_0x5738c8++)0x0==_0x548167[_0x5738c8]['distance']?_0x548167[_0x5738c8]['level']=_0x17cdb9:(_0x17cdb9++,_0x548167[_0x5738c8]['level']=_0x17cdb9,_0x17cdb9++);for(let _0x16528d=_0x3bfdf7;_0x16528d<_0x28d169;_0x16528d++)0x0==_0x548167[_0x16528d]['side']&&(_0x548167[_0x16528d]['level']=_0x17cdb9);_0x17cdb9=0x0;for(let _0x211252=_0x28d169-0x1;_0x211252>=_0x32127b;_0x211252--)0x0==_0x548167[_0x211252]['distance']?_0x548167[_0x211252]['level']=_0x17cdb9:(_0x17cdb9--,_0x548167[_0x211252]['level']=_0x17cdb9,_0x17cdb9--);}}['_fixObsoleteTags'](_0x1db992){const _0x1efb6a=new Map(),_0x1865b2=this['editor']['model']['schema'];for(let _0x7dd145=0x1;_0x7dd145<_0x1db992['length'];_0x7dd145++){let _0x1588b6,_0x293743,_0x13de96;const _0x30453b=_0x1db992[_0x7dd145],_0x1daa9f=_0x1db992[_0x7dd145-0x1];if('text'==_0x30453b['type'])continue;if(_0x30453b['type']!=_0x1daa9f['type'])continue;if(!_0x1865b2['isBlock'](_0x1daa9f['item'])||_0x1865b2['isLimit'](_0x1daa9f['item']))continue;if(!_0x1865b2['isBlock'](_0x30453b['item'])||_0x1865b2['isLimit'](_0x30453b['item']))continue;if((_0x1db992[_0x7dd145]['isAdded']||_0x1db992[_0x7dd145]['isAddSuggestion'])&&_0x1db992[_0x7dd145-0x1]['isRemoved'])_0x1588b6=_0x1db992[_0x7dd145],_0x293743=_0x1db992[_0x7dd145-0x1],_0x13de96=_0x7dd145-0x1;else{if(!_0x1db992[_0x7dd145]['isRemoved']||!_0x1db992[_0x7dd145-0x1]['isAdded']&&!_0x1db992[_0x7dd145-0x1]['isAddSuggestion'])continue;_0x1588b6=_0x1db992[_0x7dd145-0x1],_0x293743=_0x1db992[_0x7dd145],_0x13de96=_0x7dd145;}const _0x547259=_0x1588b6['level']==_0x293743['level'],_0x234769=Math['abs'](_0x1588b6['level'])<Math['abs'](_0x293743['level'])&&0x0==_0x293743['distance'];(_0x547259||_0x234769)&&(_0x1efb6a['set'](_0x293743['id'],_0x1588b6['id']),_0x1db992['splice'](_0x13de96,0x1),_0x7dd145--,_0x1588b6['isAdded']=!0x1);}for(let _0x5abda4=0x0;_0x5abda4<_0x1db992['length'];_0x5abda4++)_0x1efb6a['has'](_0x1db992[_0x5abda4]['pairId'])&&(_0x1db992[_0x5abda4]['pairId']=_0x1efb6a['get'](_0x1db992[_0x5abda4]['pairId']));}['_removeMissingPairs'](_0x3ced13){const _0x20730e=new Set(_0x3ced13['map'](_0x77e1b6=>_0x77e1b6['id']));for(let _0x4d1ef4=0x0;_0x4d1ef4<_0x3ced13['length'];_0x4d1ef4++)_0x20730e['has'](_0x3ced13[_0x4d1ef4]['pairId'])||0x0==_0x3ced13[_0x4d1ef4]['distance']||(_0x3ced13[_0x4d1ef4]['isIncorrect']=!0x0);return _0x3ced13['filter'](_0x3f91ff=>!_0x3f91ff['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4ec946){const _0x1c4319=new Set();for(let _0x103d3e=0x0;_0x103d3e<_0x4ec946['length'];_0x103d3e++){if(_0x1c4319['has'](_0x4ec946[_0x103d3e]['id'])&&_0x4ec946[_0x103d3e]['isRemoved']&&(_0x4ec946[_0x103d3e]['isIncorrect']=!0x0),_0x4ec946[_0x103d3e]['isIncorrect'])continue;if(0x0==_0x4ec946[_0x103d3e]['distance'])continue;if('elementStart'!=_0x4ec946[_0x103d3e]['type'])continue;if(null==_0x4ec946[_0x103d3e]['pairId'])continue;let _0x2342d0=_0x103d3e+0x1,_0x21e3d7=0x0;for(;_0x4ec946[_0x2342d0]['id']!=_0x4ec946[_0x103d3e]['pairId'];)'elementStart'==_0x4ec946[_0x2342d0]['type']?_0x21e3d7++:'elementEnd'==_0x4ec946[_0x2342d0]['type']&&_0x21e3d7--,_0x2342d0++;if(0x0!=_0x21e3d7){if(_0x4ec946[_0x103d3e]['isRemoved'])_0x4ec946[_0x103d3e]['isIncorrect']=!0x0;else{for(;_0x2342d0!=_0x103d3e;)_0x4ec946[_0x2342d0]['isRemoved']&&0x0!=_0x4ec946[_0x2342d0]['distance']&&(_0x4ec946[_0x2342d0]['isIncorrect']=!0x0,_0x1c4319['add'](_0x4ec946[_0x2342d0]['pairId'])),_0x2342d0--;}}}return _0x4ec946['filter'](_0x2ab2ef=>!_0x2ab2ef['isIncorrect']);}['_removeUnsupportedChanges'](_0x5b872d){const _0x3b8246=this['editor']['model']['schema'];for(let _0x59f589=0x0;_0x59f589<_0x5b872d['length'];_0x59f589++){if(!(_0x5b872d[_0x59f589]['isAdded']||_0x5b872d[_0x59f589]['isAddSuggestion']||_0x5b872d[_0x59f589]['isRemoved']||_0x5b872d[_0x59f589]['isRemoveSuggestion']))continue;if(0x0==_0x5b872d[_0x59f589]['distance'])continue;const _0x3b56b7=_0x5b872d[_0x59f589]['item'];_0x3b8246['isBlock'](_0x3b56b7)||_0x3b8246['isLimit'](_0x3b56b7)||(_0x5b872d[_0x59f589]['isAdded']&&delete _0x5b872d[_0x59f589]['isAdded'],_0x5b872d[_0x59f589]['isAddSuggestion']&&delete _0x5b872d[_0x59f589]['isAddSuggestion'],_0x5b872d[_0x59f589]['isRemoveSuggestion']&&delete _0x5b872d[_0x59f589]['isRemoveSuggestion'],_0x5b872d[_0x59f589]['isRemoved']&&(_0x5b872d[_0x59f589]['isIncorrect']=!0x0));}return _0x5b872d['filter'](_0x313dca=>!_0x313dca['isIncorrect']);}['_makeModelFromTape'](_0x310085,_0x2b5239,_0x416cf7){const _0x5cb760=new mt(),_0xab9630=[],_0x13faa9=new Map(),_0x4cedf5=this['editor']['model'],_0x37ece1=_0x4cedf5['schema'],_0xf93fc1=[_0x5cb760],_0x897120={},_0x56bea3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x443c98=null;const _0x4c3101=[0x0];for(let _0x3c9aef=0x0;_0x3c9aef<_0x310085['length'];_0x3c9aef++)if('elementStart'===_0x310085[_0x3c9aef]['type']){_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);const _0x3a6eaa=new ft(_0x310085[_0x3c9aef]['item']['name'],_0x310085[_0x3c9aef]['item']['getAttributes']());_0xf93fc1[0x0]['_appendChild'](_0x3a6eaa),_0x4c3101['push'](0x0),_0xf93fc1['unshift'](_0x3a6eaa),_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);}else'elementEnd'===_0x310085[_0x3c9aef]['type']?(_0xf93fc1['shift'](),_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x4c3101['pop'](),_0x4c3101[_0x4c3101['length']-0x1]++,_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101)):(_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x443c98?_0x443c98['_data']+=_0x310085[_0x3c9aef]['item']['data']:_0x443c98=new wt(_0x310085[_0x3c9aef]['item']['data'],_0x310085[_0x3c9aef]['item']['getAttributes']()),_0x310085[_0x3c9aef+0x1]&&'text'===_0x310085[_0x3c9aef+0x1]['type']&&_0x34bffc(_0x443c98,_0x310085[_0x3c9aef+0x1]['item'])||(_0xf93fc1[0x0]['_appendChild'](_0x443c98),_0x443c98=null),_0x4c3101[_0x4c3101['length']-0x1]+=_0x310085[_0x3c9aef]['item']['offsetSize'],_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101));for(let _0x42da9d=0x0;_0x42da9d<_0x310085['length'];_0x42da9d++){const _0x45d5bb=_0x310085[_0x42da9d]['previousPosition'],_0x1a17b5=_0x310085[_0x42da9d]['nextPosition'];for(const _0x4b5122 of _0x310085[_0x42da9d]['markersStart'])_0x13faa9['set'](_0x4b5122,{'start':_0x45d5bb,'end':null});_0x22ad7c('isRemoveSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAddSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isRemoved',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAdded',_0x42da9d,_0x45d5bb,_0x1a17b5);for(const _0x38c847 of _0x310085[_0x42da9d]['markersEnd']){_0x13faa9['get'](_0x38c847)['end']=_0x1a17b5;}}for(const [_0xf8407a,_0x4e95f4]of _0x13faa9){const _0x41275b=this['editor']['model']['createRange'](_0x4e95f4['start'],_0x4e95f4['end']);_0x5cb760['markers']['set'](_0xf8407a,_0x41275b);}return _0xab9630['sort']((_0x1c0558,_0x3a43c6)=>{const _0x521cb7=_0x5cb760['markers']['get']('revision:'+_0x1c0558['id']),_0xf26e44=_0x5cb760['markers']['get']('revision:'+_0x3a43c6['id']);return _0x521cb7['start']['isBefore'](_0xf26e44['start'])?-0x1:_0x521cb7['start']['isAfter'](_0xf26e44['start'])?0x1:_0x521cb7['end']['isBefore'](_0xf26e44['end'])?-0x1:_0x521cb7['end']['isAfter'](_0xf26e44['end'])?0x1:'add'===_0x1c0558['type']?-0x1:0x1;}),{'root':_0x5cb760,'changes':_0xab9630};function _0x22ad7c(_0x405736,_0x1fe17e,_0x260c34,_0x2ee222){const _0x189e87=!!_0x310085[_0x1fe17e][_0x405736],_0x55dfd8=_0x189e87?_0x310085[_0x1fe17e][_0x405736]['userId']:null,_0x3612b4=_0x1fe17e===_0x310085['length']-0x1,_0x37adc2=_0x56bea3[_0x405736][0x0],_0x272bd0=_0x37ece1['isObject'](_0x310085[_0x1fe17e]['item']);!_0x897120[_0x405736]&&_0x189e87?_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}:_0x897120[_0x405736]&&!_0x189e87?(_0x897120[_0x405736]['end']=_0x260c34,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null):_0x897120[_0x405736]&&_0x189e87&&_0x897120[_0x405736]['userId']!==_0x55dfd8&&(_0x897120[_0x405736]['end']=_0x260c34,_0x37adc2&&_0x37adc2['userId']===_0x897120[_0x405736]['userId']||_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}),_0x897120[_0x405736]&&_0x272bd0&&('elementStart'!==_0x310085[_0x1fe17e]['type']||_0x37adc2&&_0x37adc2['userId']===_0x55dfd8||_0x56bea3[_0x405736]['unshift']({'userId':_0x55dfd8,'object':_0x310085[_0x1fe17e]['item'],'change':_0x897120[_0x405736]}),'elementEnd'===_0x310085[_0x1fe17e]['type']&&_0x37adc2&&_0x37adc2['object']===_0x310085[_0x1fe17e]['item']&&(_0x56bea3[_0x405736]['shift'](),_0x897120[_0x405736]=_0x37adc2['change'])),_0x897120[_0x405736]&&_0x3612b4&&(_0x897120[_0x405736]['end']=_0x2ee222,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null);}function _0x585376({start:_0x36e853,end:_0x5211ce,tapeItem:_0x4a6a09,userId:_0x5ab361,type:_0x2d3342}){const _0x57aefd=_0x4a6a09['item'],_0x451705=_0x4cedf5['schema']['isBlock'](_0x57aefd)&&!_0x4cedf5['schema']['isLimit'](_0x57aefd),_0x529443=_0x36e853['nodeAfter']==_0x5211ce['parent']&&_0x5211ce['isAtStart'];if(_0x451705&&_0x529443)return;const _0x40cc3d=_0x4cedf5['createRange'](_0x36e853,_0x5211ce),_0x116daf=_0x2b5239['get'](_0x5ab361),_0x23f2c4=new r({'author':_0x116daf,'type':'isAdded'==_0x2d3342||'isAddSuggestion'==_0x2d3342?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2d3342||'isRemoveSuggestion'==_0x2d3342},'createdAt':new Date(),'rootName':_0x416cf7});_0xab9630['push'](_0x23f2c4),_0x5cb760['markers']['set']('revision:'+_0x23f2c4['id'],_0x40cc3d);}function _0x34bffc(_0x16793f,_0x5dfdde){const _0x4dd752=_0x16793f['getAttributes'](),_0xae642e=_0x5dfdde['getAttributes']();for(const _0x3ce68b of _0x4dd752){if(_0x3ce68b[0x1]!==_0x5dfdde['getAttribute'](_0x3ce68b[0x0]))return!0x1;_0xae642e['next']();}return _0xae642e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1c72ea=>{const _0x4b6b0d=_0x1c72ea['markerName']['split'](':')[0x1],_0x4e1a7e=this['_getChangeFromId'](_0x4b6b0d);if(!_0x4e1a7e)return null;const _0x1240d2='add'==_0x4e1a7e['type']?'insertion':'deletion',_0xb21a11=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1240d2];return _0x4e1a7e['data']['isSuggestion']&&_0xb21a11['push']('ck-suggestion-marker-'+_0x1240d2+'-new'),this['activeChange']==_0x4e1a7e&&_0xb21a11['push']('ck-suggestion-marker--active'),{'classes':_0xb21a11,'attributes':{'data-change-id':_0x4b6b0d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x16ae12=>{_0x16ae12['on']('element:pre',(_0x1c00a8,_0x14069a,_0x48608f)=>{const _0x2833af=_0x14069a['viewItem']['getChild'](0x0);if(!_0x2833af||!_0x2833af['is']('element','code'))return;if(!_0x48608f['consumable']['consume'](_0x2833af,{'attributes':['vid_start','vid_end']}))return;const _0x28068f=_0x14069a['modelRange']['start']['nodeAfter'];_0x48608f['writer']['setAttribute']('vid_start',_0x2833af['getAttribute']('vid_start'),_0x28068f),_0x48608f['writer']['setAttribute']('vid_end',_0x2833af['getAttribute']('vid_end'),_0x28068f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x32ec30=>{_0x32ec30['on']('element',(_0x2f7039,_0x3e7202,_0x1a2fff)=>{if(!_0x1a2fff['consumable']['consume'](_0x3e7202['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e7202['modelRange']['isCollapsed'])return;const _0x501eb9=_0x3e7202['modelRange']['start']['nodeAfter'];_0x501eb9['hasAttribute']('vid_start')||_0x501eb9['hasAttribute']('vid')||(_0x1a2fff['writer']['setAttribute']('vid_start',_0x3e7202['viewItem']['getAttribute']('vid_start'),_0x501eb9),_0x1a2fff['writer']['setAttribute']('vid_end',_0x3e7202['viewItem']['getAttribute']('vid_end'),_0x501eb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5cb223=>_0x5cb223['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3498ff,[,_0x1c1575])=>{['vid_start','vid_end','vid']['includes'](_0x1c1575)&&(_0x3498ff['return']=!0x0,_0x3498ff['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4435f1=>{_0x4435f1['on']('attribute:vid',(_0x4a89c8,_0x317e45,_0x19d441)=>{if('\x20'!=_0x317e45['item']['data']||_0x317e45['item']['parent']['maxOffset']>0x1)return;if(!_0x19d441['consumable']['consume'](_0x317e45['item'],_0x4a89c8['name']))return;const _0x28493b=_0x19d441['writer'],_0x456e64=_0x19d441['mapper']['toViewRange'](_0x317e45['range']);_0x28493b['wrap'](_0x456e64,_0x28493b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x24c6fc){const _0x163ec9=_0x24c6fc['plugins']['get']('RevisionViewer');return(_0x172f5d,_0x339015,_0x39330d)=>{const _0x27eafa=_0x339015['markerName']['split'](':')[0x1],_0x44abbc=_0x163ec9['_getChangeFromId'](_0x27eafa);if(!_0x44abbc)return null;const _0x5ddbc2='add'==_0x44abbc['type']?'split':'merge';if(!_0x39330d['consumable']['test'](_0x339015['markerRange'],_0x172f5d['name']))return;const _0x455beb=_0x339015['markerRange']['getWalker'](),_0x235486=_0x339015['markerRange']['start'],_0x132753=_0x24c6fc['model']['schema'];let _0x5765d8=null,_0x4d1f47=null,_0x14277f=!0x1,_0x22f4e8=!0x1;for(const _0x5829e5 of _0x455beb){const _0x470ac4=_0x5829e5['item'];_0x14277f=_0x14277f||_0x132753['isContent'](_0x470ac4);const _0x102b86=_0x39330d['mapper']['toViewElement'](_0x470ac4);if(_0x102b86&&_0x102b86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5829e5['type']&&(_0x132753['isBlock'](_0x470ac4)&&!_0x132753['isLimit'](_0x470ac4)&&(_0x470ac4['nextSibling']||_0x235486['isAtEnd']?_0x5765d8&&_0x5765d8['parent']==_0x470ac4||(_0x5765d8=_0x470ac4,_0x13c3f7(_0x5829e5['previousPosition']),_0x22f4e8=!0x0):_0x4d1f47=_0x4d1f47||_0x5829e5['previousPosition']));}function _0x13c3f7(_0x9706a4){const _0x2929b3=_0x39330d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ddbc2}),_0x4b7c35=_0x39330d['mapper']['toViewPosition'](_0x9706a4);_0x44abbc['data']['isSuggestion']&&_0x39330d['writer']['addClass']('ck-suggestion-marker-'+_0x5ddbc2+'-new',_0x2929b3),_0x163ec9['activeChange']==_0x44abbc&&_0x39330d['writer']['addClass']('ck-suggestion-marker--active',_0x2929b3),_0x39330d['writer']['insert'](_0x4b7c35,_0x2929b3),_0x39330d['mapper']['bindElementToMarker'](_0x2929b3,_0x339015['markerName']);}_0x14277f||_0x22f4e8||!_0x4d1f47||_0x13c3f7(_0x4d1f47);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x17ced5,_0x2c9af0,_0x7e90cc)=>{const _0x5c2030=_0x7e90cc['mapper']['markerNameToElements'](_0x2c9af0['markerName']);if(_0x5c2030){for(const _0x4a4d0e of _0x5c2030)(_0x4a4d0e['hasClass']('ck-suggestion-marker-split')||_0x4a4d0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x7e90cc['mapper']['unbindElementFromMarkerName'](_0x4a4d0e,_0x2c9af0['markerName']),_0x7e90cc['writer']['remove'](_0x4a4d0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2998f6,_0x52488b,_0x2331dd)=>{const _0x463b54=_0x52488b['markerName']['split'](':')[0x1],_0xafc038=this['_getChangeFromId'](_0x463b54);if(!_0xafc038)return null;const _0x1b9023='add'==_0xafc038['type']?'split':'merge';if(_0x2331dd['consumable']['test'](_0x52488b['markerRange'],_0x2998f6['name']))for(const _0x1eb889 of _0x52488b['markerRange']['getItems']()){if(!_0x1eb889['is']('element','softBreak'))continue;const _0x2aecda=_0x2331dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b9023}),_0x6cff97=_0x2331dd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1eb889));_0xafc038['data']['isSuggestion']&&_0x2331dd['writer']['addClass']('ck-suggestion-marker-'+_0x1b9023+'-new',_0x2aecda),this['activeChange']==_0xafc038&&_0x2331dd['writer']['addClass']('ck-suggestion-marker--active',_0x2aecda),_0x2331dd['writer']['insert'](_0x6cff97,_0x2aecda),_0x2331dd['mapper']['bindElementToMarker'](_0x2aecda,_0x52488b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x161edd=>{for(const _0x21cf4f of this['editor']['model']['document']['getRootNames']()){const _0x113549=this['editor']['model']['document']['getRoot'](_0x21cf4f),_0xf647d4=this['editor']['editing']['view']['document']['getRoot'](_0x21cf4f);if(_0xf647d4){const _0x3686c5=_0x113549['getAttribute']('revisionHistoryAttachChange');if(_0x161edd['removeAttribute']('data-change-id',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-add',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-remove',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root--active',_0xf647d4),_0x3686c5){const _0x3b1714=this['_getChangeFromId'](_0x3686c5);if(!_0x3b1714)return null;_0x161edd['setAttribute']('data-change-id',_0x3686c5,_0xf647d4),_0x161edd['addClass']('ck-revision-history-root-'+_0x3b1714['type'],_0xf647d4),this['activeChange']==_0x3b1714&&_0x161edd['addClass']('ck-revision-history-root--active',_0xf647d4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18e309=>'revision-comment:'+_0x18e309,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x123c22=>'revision-suggestion:'+_0x123c22,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x515086=>({'name':'suggestion:'+_0x515086,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x153bc4=>{const _0x299198=_0x153bc4['markerName']['split'](':')[0x1];return'insertion'!=_0x299198&&'deletion'!=_0x299198?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x299198]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x567407,_0x4d547d,_0x41c0c3)=>{const _0x24ea9e=_0x41c0c3['mapper']['markerNameToElements'](_0x4d547d['markerName']);if(_0x24ea9e){for(const _0x567835 of _0x24ea9e)_0x567835['is']('uiElement')&&(_0x41c0c3['mapper']['unbindElementFromMarkerName'](_0x567835,_0x4d547d['markerName']),_0x41c0c3['writer']['remove'](_0x567835));}},{'priority':'high'});}['_getChangeFromId'](_0x2608fd){return this['_changeIdToChange']['get'](_0x2608fd);}['_getViewForChange'](_0x24c4b3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x24c4b3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1912fc,_0x155eed,_0x4b95f5,_0x2dd2de)=>{_0x2dd2de&&this['_balloon']['remove'](_0x2dd2de),_0x4b95f5&&(this['_balloon']['add']({'view':_0x4b95f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3d106e=this['editor']['editing'],_0x7aca32=this['_getChangeFromId'](_0x4b95f5['changeId']);let _0x1279e3;if(_0x7aca32['data']['isOnRoot']){const _0x181633=_0x3d106e['view']['getDomRoot'](_0x7aca32['rootName']);_0x1279e3=Array['from'](_0x181633['getClientRects']());}else{const _0x31db13=this['editor']['model']['markers']['get']('revision:'+_0x4b95f5['changeId']);_0x1279e3=Array['from'](_0x3d106e['mapper']['markerNameToElements'](_0x31db13['name']))['map'](_0x3f990d=>_0x3d106e['view']['domConverter']['mapViewToDom'](_0x3f990d))['map'](_0x19ccfe=>Array['from'](_0x19ccfe['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1279e3[0x0];return _0x1279e3['find'](_0x319724=>_0x319724['top']-0x3<=this['_activeViewTarget']['y']&&_0x319724['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x319724['left']-0x3<=this['_activeViewTarget']['x']&&_0x319724['right']+0x3>=this['_activeViewTarget']['x'])||_0x1279e3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x425527,_0x216c93,_0x3b8da0,_0x2d8e2e)=>{this['activeView']=_0x3b8da0?this['_getViewForChange'](_0x3b8da0):null,this['editor']['model']['change'](()=>{const _0x23f2c0=this['editor']['editing'];_0x2d8e2e&&(_0x2d8e2e['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x957d14=>{_0x957d14['removeClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x2d8e2e['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x2d8e2e['id'])),_0x3b8da0&&(_0x3b8da0['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x58fc91=>{_0x58fc91['addClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x3b8da0['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x3b8da0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4185ed,_0x4fb9c6)=>{if(this['activeChange'])return;const _0x145922=this['_findChangeIdFromDomTarget'](_0x4fb9c6['target']),_0x2deb52=this['_changeIdToChange']['get'](_0x145922);_0x2deb52?(this['_activeViewTarget']={'x':_0x4fb9c6['domEvent']['x'],'y':_0x4fb9c6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2deb52)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50cf37,_0x13c33e)=>{const _0x36cb9a=this['_findChangeIdFromDomTarget'](_0x13c33e['target']),_0x4275b3=this['_changeIdToChange']['get'](_0x36cb9a);_0x4275b3?(this['_activeViewTarget']={'x':_0x13c33e['domEvent']['x'],'y':_0x13c33e['domEvent']['y']},_0x4275b3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4275b3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x140cc5){do{const _0x5a8746=_0x140cc5['getAttribute']('data-change-id');if(_0x5a8746)return _0x5a8746;_0x140cc5=_0x140cc5['parent'];}while(_0x140cc5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x287bb6=>{for(const _0x2042bc of this['editor']['model']['markers'])_0x287bb6['removeMarker'](_0x2042bc);});}}function tt(_0x3e845c,_0x1e7cbb){return(_0x1d3bb8,_0x9a56ce,_0xcadafa)=>{if(!_0xcadafa['consumable']['test'](_0x9a56ce['markerRange'],_0x1d3bb8['name']))return;const _0x364ad0=_0x9a56ce['markerRange']['getWalker'](),_0x3d93c4=_0x9a56ce['markerRange']['start'],_0x41b976=_0x3e845c['model']['schema'];let _0x3856a2=null,_0x2c635c=null,_0x4dd4af=!0x1,_0x498906=!0x1;for(const _0x35c464 of _0x364ad0){const _0x5d631d=_0x35c464['item'];_0x4dd4af=_0x4dd4af||_0x41b976['isContent'](_0x5d631d);const _0x54e612=_0xcadafa['mapper']['toViewElement'](_0x5d631d);if(_0x54e612&&_0x54e612['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35c464['type']&&(_0x41b976['isBlock'](_0x5d631d)&&!_0x41b976['isLimit'](_0x5d631d)&&(_0x5d631d['nextSibling']||_0x3d93c4['isAtEnd']?_0x3856a2&&_0x3856a2['parent']==_0x5d631d||(_0x3856a2=_0x5d631d,_0x405ce3(_0x35c464['previousPosition']),_0x498906=!0x0):_0x2c635c=_0x2c635c||_0x35c464['previousPosition']));}function _0x405ce3(_0x5f4af7){const _0x226925=_0xcadafa['mapper']['toViewPosition'](_0x5f4af7),_0x596724=_0xcadafa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e7cbb});_0xcadafa['writer']['insert'](_0x226925,_0x596724),_0xcadafa['mapper']['bindElementToMarker'](_0x596724,_0x9a56ce['markerName']);}_0x4dd4af||_0x498906||!_0x2c635c||_0x405ce3(_0x2c635c);};}class _t extends _0x419747{constructor(_0x4bd8cb){super(_0x4bd8cb);const _0x42298f=_0x4bd8cb['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x42298f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42298f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5bfddb=this['editor'],_0x3891a1=_0x5bfddb['plugins']['get'](d),_0x34a657=_0x3891a1['isReady']?_0x3891a1['diff']['newRevisionId']:null;_0x5bfddb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x34a657);}['refresh'](){const {isReady:_0x12f4db,isEnabled:_0x164ddc,repository:_0x1b201d,diff:_0x117002}=this['editor']['plugins']['get'](d),_0x3383bd=_0x117002&&_0x1b201d['getLaterVisibleRevision'](_0x117002['newRevisionId']);this['isEnabled']=_0x12f4db&&_0x164ddc&&Boolean(_0x3383bd);}}class yt extends _0x419747{['_step'];constructor(_0x1aa893,{direction:_0x5d3cfc}){super(_0x1aa893);const _0x13f990=_0x1aa893['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d3cfc?0x1:-0x1,this['listenTo'](_0x13f990,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x50a76f=this['editor'],_0x39c171=_0x50a76f['plugins']['get'](d),{isNavigationMode:_0x400131,currentChangeNumber:_0x29692e}=_0x39c171;let _0x52b84a;if(_0x39c171['activeChange']=_0x400131?_0x39c171['diff']['changes']['get'](_0x29692e+this['_step']):_0x39c171['diff']['changes']['first'],_0x39c171['activeChange']['data']['isOnRoot'])_0x52b84a=_0x50a76f['editing']['view']['getDomRoot'](_0x39c171['activeChange']['rootName']);else{const _0xf8eb79=_0x50a76f['model']['markers']['get']('revision:'+_0x39c171['activeChange']['id']);_0x52b84a=_0x4c1d78(_0x50a76f['editing'],_0xf8eb79);}_0x2ad45b({'target':_0x52b84a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5d1573,currentChangeNumber:_0x4e6ad0,numberOfChanges:_0x1e31e2,isReady:_0x5c0b1f,isEnabled:_0x345560}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x345560&&_0x5c0b1f&&_0x1e31e2)&&(!_0x5d1573||(0x1===this['_step']?_0x4e6ad0<_0x1e31e2-0x1:_0x4e6ad0>0x0));}}class li extends ts{constructor(_0x9e279c){super(_0x9e279c);const _0x15a34c=this['bindTemplate'],_0xb5df65=new te(_0x9e279c),_0x572a88=new te(_0x9e279c);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',(_0x171e08,_0x91ef6d)=>_0x171e08&&_0x91ef6d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ae3c4,_0x43c934,_0x5dc501,_0x2440d0)=>{if(!_0x5ae3c4)return R(_0x9e279c,'Loading...');if(!_0x5dc501)return R(_0x9e279c,'No\x20changes');const _0x4039be=R(_0x9e279c,'NUMBER_OF_CHANGES',_0x5dc501);return _0x2440d0?R(_0x9e279c,'X_OF_Y_CHANGES',[_0x43c934+0x1,_0x5dc501]):_0x4039be;}),_0xb5df65['set']({'label':R(_0x9e279c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x572a88['set']({'label':R(_0x9e279c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xb5df65['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x572a88['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xb5df65['on']('execute',()=>this['fire']('execute','backward')),_0x572a88['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',_0x15a34c['if']('_isStatusLabelVisible','ck-hidden',_0x41465b=>!_0x41465b)]},'children':[{'text':_0x15a34c['to']('isNavigationMode',_0x3adf38=>_0x3adf38?R(_0x9e279c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x9e279c,'Total')+':\x20')}]},{'text':_0x15a34c['to']('_statusText')}]},new _0x4e96f3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xb5df65,_0x572a88]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6303e4=this['editor']['editing']['view'];_0x6303e4['change'](_0x4864ad=>{for(const _0x4ccc37 of _0x6303e4['document']['roots'])_0x4864ad['addClass'](le,_0x4ccc37);});}['hide'](){const _0x3abcf4=this['editor']['editing']['view'];_0x3abcf4['change'](_0x1300d0=>{for(const _0x130fa7 of _0x3abcf4['document']['roots'])_0x1300d0['removeClass'](le,_0x130fa7);});}}class m extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1bac38=this['editor'],_0x2f737c=_0x1bac38['plugins']['get'](d),_0x4b7ae4=_0x1bac38['plugins']['get'](ge);_0x1bac38['ui']['componentFactory']['add']('exitToEditing',_0x1e4d70=>{const _0x44da0d=new te(_0x1e4d70);return _0x44da0d['set']({'label':R(_0x1e4d70,'Back\x20to\x20editing'),'icon':_0x1fbbe3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44da0d,'execute',()=>{_0x1bac38['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44da0d;}),_0x1bac38['ui']['componentFactory']['add']('restoreRevision',_0x1c63ad=>{const _0x5b0214=new te(_0x1c63ad);return _0x5b0214['set']({'label':R(_0x1c63ad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b0214['bind']('isEnabled')['to'](_0x1bac38['commands']['get']('restoreRevision')),this['listenTo'](_0x5b0214,'execute',()=>_0x1bac38['execute']('restoreRevision')),_0x5b0214;}),_0x1bac38['ui']['componentFactory']['add']('changesNavigation',_0xa73327=>{const _0x21f088=new li(_0xa73327),_0x46355e=_0x1bac38['commands']['get']('showPreviousChange'),_0x4bc63b=_0x1bac38['commands']['get']('showNextChange');return _0x21f088['bind']('isBackwardNavigationEnabled')['to'](_0x46355e,'isEnabled'),_0x21f088['bind']('isForwardNavigationEnabled')['to'](_0x4bc63b,'isEnabled'),_0x21f088['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f737c),this['listenTo'](_0x21f088,'execute',(_0x4d9a4f,_0x116a2b)=>{_0x1bac38['execute']('forward'===_0x116a2b?'showNextChange':'showPreviousChange');}),_0x21f088;}),_0x4b7ae4['show'](),_0x2f737c['on']('change:isReady',(_0x456c58,_0x489d39,_0x57fc95)=>{_0x57fc95?_0x4b7ae4['hide']():_0x4b7ae4['show']();});}}class pt extends _0x3bef68{['_resizeObserver']=null;constructor(_0x49af24,_0x32e227){super(_0x49af24,_0x32e227);const _0x1f3d26=this['bindTemplate'];this['set']({'label':R(_0x49af24,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x49af24,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1f3d26['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 _0x3c624e=this['fieldView']['element'];this['_tooltipString']=_0x3c624e['scrollWidth']>_0x3c624e['clientWidth']&&_0x3c624e['value']||'';}}class ri extends ts{constructor(_0x243498,_0x37d636,_0x1e4568){super(_0x243498);const _0x216ba3=new _0x32e90e();_0x216ba3['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0xa16476=['ck','ck-revision-history-sidebar__revision-author'];_0x1e4568&&_0xa16476['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1fc14e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x243498,_0x1e4568?'Revision\x20creator':'Revision\x20author')},'children':[_0x216ba3,_0x37d636['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xa16476},'children':_0x1fc14e});}}function oi(_0x2fd70b,_0xf11441){const _0x4da873=_0x2fd70b['bindTemplate'],_0x37fd3e=_0x2fd70b['locale'],_0xb5ba94=_0x327b70(_0x37fd3e);_0xb5ba94['panelPosition']='sw';const _0x24fd62=function(_0x2f90ce,_0x1b27ef){const _0xd9f2ac=function(_0x57ed47,_0x5e3f62){const _0x358434=_0x57ed47['locale'],_0x47e7d6={'Compare\x20against\x20selected':R(_0x358434,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x358434,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x358434,'Restore\x20this\x20revision')};return _0x5e3f62['map'](_0x5d4432=>{const _0x725f0=_0x47e7d6[_0x5d4432['name']];return _0x725f0&&_0x725f0!==_0x5d4432['name']&&(_0x5d4432['name']=_0x725f0),_0x5d4432;});}(_0x2f90ce,_0x1b27ef),_0x554be0=new _0x24f698();for(const _0x4f368e of _0xd9f2ac){const _0x2c6b5b={'type':'button','model':new _0x2cea3a({'label':_0x4f368e['name'],'class':_0x4f368e['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f368e['action']})};_0x2c6b5b['model']['bind']('isEnabled')['to'](_0x2f90ce,'isActionsDropdownOpen',_0x3f3863=>'function'!=typeof _0x4f368e['isEnabled']||(!_0x3f3863||_0x4f368e['isEnabled'](_0x2f90ce))),_0x554be0['add'](_0x2c6b5b);}return _0x554be0;}(_0x2fd70b,_0xf11441);return _0x2fd70b['bind']('isActionsDropdownOpen')['to'](_0xb5ba94,'isOpen'),_0xb5ba94['buttonView']['set']({'label':R(_0x37fd3e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1fbbe3['threeVerticalDots']}),_0xb5ba94['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4da873['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4da873['to'](_0x22ab55=>_0x22ab55['stopPropagation']())}}),_0xb5ba94['on']('execute',_0x47038d=>{_0x2fd70b['isReady']&&'function'==typeof _0x47038d['source']['_action']&&_0x47038d['source']['_action'](_0x2fd70b);}),to(_0xb5ba94,_0x24fd62,{'role':'menu'}),_0xb5ba94['listenTo'](_0x2fd70b,'change:isActionsDropdownOpen',(_0x127d2c,_0x374868,_0x308f47)=>{if(_0x308f47)for(const _0x1a08e1 of _0xb5ba94['listView']['items']){const _0x4e93f7=_0x1a08e1['children']['first'],_0x4f03f6=_0xf11441['find'](_0x326912=>_0x326912['action']===_0x4e93f7['_action'])['isVisible'];_0x1a08e1['isVisible']=void 0x0===_0x4f03f6||_0x4f03f6(_0x2fd70b);}}),_0xb5ba94;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2f855c,uid as _0x152f7f,Collection as _0x55c105,logWarning as _0x319ed7,FocusTracker as _0x9bb3eb,KeystrokeHandler as _0x1b5681,scrollViewportToShowTarget as _0x373097,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x122181}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4839cc,set as _0x26c2f5,unset as _0x1184ad,isEqual as _0x3cb56d}from'lodash-es';import{Plugin as _0x4632d0,PendingActions as _0x49b076,icons as _0x535503,Command as _0x1c762c,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x31bb84,getMarkerDomElement as _0x45f010,ConfirmMixin as _0x238ffe,sanitizeEditorConfig as _0x41ed26}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x46f024,ViewText as _0x441ee8,ViewElement as _0x194c7d,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x471041,ViewAttributeElement as _0xe030e4,ViewEmptyElement as _0x473571,ViewRawElement as _0x41ad37,ViewUIElement as _0x478289,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x52b1f5,injectCssTransitionDisabler as ts,submitHandler as _0x48be9e,LabeledFieldView as at,createLabeledInputText as _0x520970,createDropdown as _0x119c84,ListView as te,ListItemView as _0x54fe30,ButtonView as _0x36250d,MenuBarMenuView as _0x1f1e67,MenuBarMenuListView as _0x576da8,MenuBarMenuListItemView as _0x3845b0,MenuBarMenuListItemButtonView as _0x51aa12,ContextualBalloon as _0x162a1c,ToolbarSeparatorView as _0x6e8557,IconView as _0xd7ed67,addListToDropdown as _0x1fc102,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2999da}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f855c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x45c25b){super(),this['id']=_0x45c25b['id']||_0x152f7f(),this['creator']=_0x45c25b['creator']||null,this['authors']=_0x45c25b['authors']||[],this['diffData']=_0x45c25b['diffData']||null,this['toVersion']=_0x45c25b['toVersion']||0x0,this['fromVersion']=_0x45c25b['fromVersion']||0x0,this['set']('name',_0x45c25b['name']||''),this['set']('createdAt',_0x45c25b['createdAt']||new Date()),this['set']('attributes',_0x45c25b['attributes']||{});}['setName'](_0x320eda){this['_update']({'name':_0x320eda});}['setAttribute'](_0xe18c25,_0x45406d){const _0x323eb5=_0x4839cc(this['attributes']);_0x26c2f5(_0x323eb5,_0xe18c25,_0x45406d),this['_update']({'attributes':_0x323eb5});}['removeAttribute'](_0x15876c){const _0x58f01a=_0x4839cc(this['attributes']);_0x1184ad(_0x58f01a,_0x15876c),this['_update']({'attributes':_0x58f01a});}['_update'](_0x18d0f0,_0x918af3=!0x1){let _0x28afc8=!0x1;const _0x242076={'id':this['id']},_0x58e0c2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x30a5ef of _0x58e0c2){const _0xd27bf9=_0x18d0f0[_0x30a5ef];void 0x0!==_0xd27bf9&&_0xd27bf9!==this[_0x30a5ef]&&(this[_0x30a5ef]=_0xd27bf9,_0x242076[_0x30a5ef]=_0xd27bf9,_0x28afc8=!0x0);}_0x28afc8&&(_0x242076['authors']&&(_0x242076['authorsIds']=_0x242076['authors']['map'](_0x5127be=>_0x5127be['id']),delete _0x242076['authors']),this['fire']('_update',_0x242076,_0x918af3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x23ac4e=>_0x23ac4e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4632d0{['_revisions'];static get['requires'](){return[_0x31bb84];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1a7300){super(_0x1a7300),this['_revisions']=new _0x55c105();}['afterInit'](){!async function(_0x5cd7dc){const _0x4937c0=_0x3e9383([0x52,0x78,0x43,0x71,0x47,0x34,0x6e,0x69,0x63,0x57,0x36,0x48,0x42,0x62,0x77,0x68,0x6d,0x72,0x65,0x30,0x7a,0x70,0x58,0x53,0x79,0x6f,0x4a,0x31,0x4d,0x4c,0x73,0x44,0x50,0x32,0x39,0x6a,0x66,0x51,0x46,0x64,0x33,0x56,0x5a,0x6b,0x4f,0x76,0x49,0x59,0x67,0x45,0x6c,0x61,0x75,0x54,0x38,0x35,0x37,0x4e,0x55,0x74,0x41,0x4b]),_0x3ccc3f=0xeb829,_0x68ceac=0x4c156120,_0x23e31b=0x4c123aa8^_0x68ceac,_0x33d484=window[_0x3e9383([0x44,0x61,0x74,0x65])][_0x3e9383([0x6e,0x6f,0x77])](),_0x392429=_0x5cd7dc[_0x3e9383([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17893d=new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250a2f=>{_0x392429[_0x3e9383([0x6f,0x6e,0x63,0x65])](_0x3e9383([0x72,0x65,0x61,0x64,0x79]),_0x250a2f);}),_0x470d02={[_0x3e9383([0x6b,0x74,0x79])]:_0x3e9383([0x45,0x43]),[_0x3e9383([0x75,0x73,0x65])]:_0x3e9383([0x73,0x69,0x67]),[_0x3e9383([0x63,0x72,0x76])]:_0x3e9383([0x50,0x2d,0x32,0x35,0x36]),[_0x3e9383([0x78])]:_0x3e9383([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]),[_0x3e9383([0x79])]:_0x3e9383([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]),[_0x3e9383([0x61,0x6c,0x67])]:_0x3e9383([0x45,0x53,0x32,0x35,0x36])},_0x20967d=_0x392429[_0x3e9383([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e9383([0x67,0x65,0x74])](_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x196c4e(){let _0x1aedb9,_0x261646=null,_0x3b641b=null;try{if(_0x20967d==_0x3e9383([0x47,0x50,0x4c]))return _0x3e9383([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1aedb9=_0x2e25c5(),!_0x1aedb9)return _0x3e9383([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1aedb9[_0x3e9383([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b641b=_0x665f45(_0x1aedb9[_0x3e9383([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1aedb9[_0x3e9383([0x6a,0x74,0x69])])),await _0x5aafba()?_0xe61f21()?_0x40bc55()?_0x3e9383([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b626d()?(_0x1aedb9[_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e9383([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x261646=_0x63e4dd(_0x3e9383([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1aedb9[_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e9383([0x74,0x72,0x69,0x61,0x6c])&&(_0x261646=_0x63e4dd(_0x3e9383([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1aedb9[_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e9383([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x261646=_0x63e4dd(_0x3e9383([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5cdf76()):_0x3e9383([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9383([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e9383([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37ff07){return _0x3e9383([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40bc55(){const _0x2d0b0b=[_0x3e9383([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e9383([0x74,0x72,0x69,0x61,0x6c])][_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aedb9[_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33d484/0x3e8:0xe10*_0x23e31b;return _0x1aedb9[_0x3e9383([0x65,0x78,0x70])]<_0x2d0b0b;}function _0xe61f21(){const _0x917712=_0x1aedb9[_0x3e9383([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x917712)return!0x1;if(_0x917712[_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9383([0x2a])))return!0x0;if(_0x917712[_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9383([0x52,0x48])))return!0x0;if(_0x917712[_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9383([0x52,0x52,0x48]))){if(_0x2faea0())return!0x0;if(_0x4eb683()||_0x4005b6())return!0x0;}return!0x1;}function _0x1b626d(){const _0xb16a2c=_0x1aedb9[_0x3e9383([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb16a2c||0x0==_0xb16a2c[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18f3f1}=new URL(window[_0x3e9383([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb16a2c[_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f3f1))return!0x0;const _0x4016aa=_0x18f3f1[_0x3e9383([0x73,0x70,0x6c,0x69,0x74])](_0x3e9383([0x2e]));return _0xb16a2c[_0x3e9383([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36845f=>_0x36845f[_0x3e9383([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9383([0x2a])))[_0x3e9383([0x6d,0x61,0x70])](_0x573b23=>_0x573b23[_0x3e9383([0x73,0x70,0x6c,0x69,0x74])](_0x3e9383([0x2e])))[_0x3e9383([0x73,0x6f,0x6d,0x65])](_0x2aa3c1=>_0x4016aa[_0x3e9383([0x65,0x76,0x65,0x72,0x79])]((_0x4a413a,_0x13724b)=>_0x2aa3c1[_0x13724b]===_0x4a413a||_0x2aa3c1[_0x13724b]===_0x3e9383([0x2a])));}function _0x5cdf76(){return _0x261646&&_0x3b641b?new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x352fb1,_0x917159)=>{_0x261646[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x352fb1,_0x917159),_0x3b641b[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x328638=>{_0x328638!=_0x3e9383([0x56,0x61,0x6c,0x69,0x64])&&_0x352fb1(_0x328638);},_0x917159);}):_0x261646||_0x3b641b||_0x3e9383([0x56,0x61,0x6c,0x69,0x64]);}}function _0x665f45(_0x25fb8d,_0x13e69f){return new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434bcf=>{if(_0x6f70ab())return _0x434bcf(_0x3e9383([0x56,0x61,0x6c,0x69,0x64]));_0x6ed089(),_0x392429[_0x3e9383([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e9383([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49fbd=!0x1;const _0x12f070=_0x152f7f();function _0x4a2106(_0x1d6516){return!!_0x1d6516&&(typeof _0x1d6516===_0x3e9383([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d6516===_0x3e9383([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d6516[_0x3e9383([0x74,0x68,0x65,0x6e])]===_0x3e9383([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d6516[_0x3e9383([0x63,0x61,0x74,0x63,0x68])]===_0x3e9383([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8324be(_0xace973){_0x40fea6(_0xace973)[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x5a8ece=>{if(!_0x5a8ece||_0x5a8ece[_0x3e9383([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e9383([0x6f,0x6b]))return _0x3e9383([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bc6f5(_0x2f413e(_0x12f070+_0x13e69f))!=_0x5a8ece[_0x3e9383([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e9383([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9383([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x551274=>(_0x528205(),_0x551274),()=>{const _0x3832d9=_0x4bb0df();return null==_0x3832d9?(_0x528205(),_0x3e9383([0x56,0x61,0x6c,0x69,0x64])):_0x3e9383(_0x33d484-_0x3832d9>(0x6819e520^_0x68ceac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x434bcf)[_0x3e9383([0x63,0x61,0x74,0x63,0x68])](()=>{_0x434bcf(_0x3e9383([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x381cd4=0x4c238fa0^_0x68ceac;function _0x528205(){const _0x30a6e7=_0x3e9383([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc6f5(_0x2f413e(_0x25fb8d)),_0x5cb038=_0x12d1fd(_0x3bc6f5(window[_0x3e9383([0x4d,0x61,0x74,0x68])][_0x3e9383([0x63,0x65,0x69,0x6c])](_0x33d484/_0x381cd4)));window[_0x3e9383([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9383([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30a6e7,_0x5cb038);}function _0x4bb0df(){const _0x33a83f=_0x3e9383([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc6f5(_0x2f413e(_0x25fb8d)),_0x2ee2d9=window[_0x3e9383([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9383([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33a83f);return _0x2ee2d9?window[_0x3e9383([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d1fd(_0x2ee2d9),0x10)*_0x381cd4:null;}function _0x40fea6(_0x5b66c9){return new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377bb3,_0x5d0252)=>{_0x5b66c9[_0x3e9383([0x74,0x68,0x65,0x6e])](_0x377bb3,_0x5d0252),window[_0x3e9383([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d0252,0x4c14b5e0^_0x68ceac);});}}_0x392429[_0x3e9383([0x6f,0x6e])](_0x3e9383([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc58cf1,_0x4ad4d4)=>{if(_0x4ad4d4[0x0]!=_0x25fb8d)return _0x434bcf(_0x3e9383([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ad4d4[0x1]={..._0x4ad4d4[0x1],[_0x3e9383([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12f070};},{[_0x3e9383([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9383([0x68,0x69,0x67,0x68])}),_0x392429[_0x3e9383([0x6f,0x6e])](_0x3e9383([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1085a1=>{_0x4a2106(_0x1085a1[_0x3e9383([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49fbd=!0x0,_0x8324be(_0x1085a1[_0x3e9383([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e9383([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9383([0x6c,0x6f,0x77])}),_0x17893d[_0x3e9383([0x74,0x68,0x65,0x6e])](()=>{_0x49fbd||_0x434bcf(_0x3e9383([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f70ab(){return _0x392429[_0x3e9383([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9383([0x76,0x69,0x65,0x77])][_0x3e9383([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e9383([0x61,0x75,0x74,0x6f]);}function _0x6ed089(){_0x392429[_0x3e9383([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9383([0x76,0x69,0x65,0x77])][_0x3e9383([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e9383([0x61,0x75,0x74,0x6f]);}}function _0x63e4dd(_0x517df3){const _0x564f44=[new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1524fb=>setTimeout(_0x1524fb,0x4c1c5fec^_0x68ceac)),_0x17893d[_0x3e9383([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6e71=>{const _0x20e970=0x4c156127^_0x68ceac,_0x16ff1f=_0x5cd7dc[_0x3e9383([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5dbbd8(){_0x16ff1f[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x20e970&&_0x2c6e71();}_0x5dbbd8(),_0x16ff1f[_0x3e9383([0x6f,0x6e])](_0x3e9383([0x61,0x64,0x64]),_0x5dbbd8);})),new window[(_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ae386=>{function _0x2f06b8(){for(const _0x1c9497 in window)if(window[_0x3e9383([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3e9383([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1c9497))&&window[_0x1c9497]==_0x3ccc3f)return _0x5ae386();_0x392429[_0x3e9383([0x73,0x74,0x61,0x74,0x65])]!=_0x3e9383([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3e9383([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f06b8,0x4c1572a8^_0x68ceac);}_0x27b913(_0x3e9383([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2f06b8();})];return window[_0x3e9383([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e9383([0x72,0x61,0x63,0x65])](_0x564f44)[_0x3e9383([0x74,0x68,0x65,0x6e])](()=>_0x517df3);}async function _0xe9b762(){if(await _0x17893d,_0x27b913(_0x3e9383([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x339e14=_0x5cd7dc[_0x3e9383([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x441876=_0x5cd7dc[_0x3e9383([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])](_0x339e14[_0x3e9383([0x69,0x64])]),_0x2e35c0=_0x1b4515(_0x3e9383([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2e35c0[_0x3e9383([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x339e14['id'],_0x441876?_0x441876['id']:null,!0x0),_0x2e35c0[_0x3e9383([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e9383([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2e35c0[_0x3e9383([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2e35c0[_0x3e9383([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x10e0ec,void(_0x2e35c0[_0x3e9383([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x10e0ec);}if(_0x27b913(_0x3e9383([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2d8e6e=_0x1b4515(_0x3e9383([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2d8e6e[_0x3e9383([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e9383([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d8e6e[_0x3e9383([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d8e6e[_0x3e9383([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x10e0ec,_0x2d8e6e[_0x3e9383([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x10e0ec;}_0x392429[_0x3e9383([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9383([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10e0ec,_0x392429[_0x3e9383([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9383([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10e0ec,_0x392429[_0x3e9383([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e9383([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2faea0(){return _0x27b913(_0x3e9383([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1b4515(_0x3e9383([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e9383([0x73,0x74,0x61,0x74,0x65])]==_0x3e9383([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4eb683(){return _0x27b913(_0x3e9383([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 _0x4005b6(){return _0x27b913(_0x3e9383([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a4c26(_0x165200){const _0x1d45f7=_0x2e91ee();_0x392429[_0x1d45f7]=_0x3e9383([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])+_0x165200,_0x165200[_0x3e9383([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3e9383([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2e91ee()]=_0x3ccc3f),_0x165200!=_0x3e9383([0x56,0x61,0x6c,0x69,0x64])&&_0xe9b762();}function _0x2e91ee(){const _0x23b8e3=window[_0x3e9383([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e9383([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e9383([0x6e,0x6f,0x77])]())[_0x3e9383([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e9383([0x2e]),'');let _0x383704=_0x3e9383([0x52]);for(let _0x495d9a=0x0;_0x495d9a<_0x23b8e3[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x495d9a+=0x2){let _0x2fbf5b=window[_0x3e9383([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23b8e3[_0x3e9383([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x495d9a,_0x495d9a+0x2));_0x2fbf5b>=_0x4937c0[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fbf5b-=_0x4937c0[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x383704+=_0x4937c0[_0x2fbf5b];}return _0x383704;}function _0x2e25c5(){const _0x1b9abb=_0x20967d[_0x3e9383([0x73,0x70,0x6c,0x69,0x74])](_0x3e9383([0x2e]));if(0x3!=_0x1b9abb[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x239ce4(_0x1b9abb[0x1]);function _0x239ce4(_0x302045){const _0x5cfe71=_0x12cab7(_0x302045);return _0x5cfe71&&_0x1a3d5f()?_0x5cfe71:null;function _0x1a3d5f(){const _0x4c09f7=_0x5cfe71[_0x3e9383([0x6a,0x74,0x69])],_0x28f958=window[_0x3e9383([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c09f7[_0x3e9383([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c09f7[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x79e21={..._0x5cfe71,[_0x3e9383([0x6a,0x74,0x69])]:_0x4c09f7[_0x3e9383([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c09f7[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x79e21[_0x3e9383([0x76,0x63])],_0x2f413e(_0x79e21)==_0x28f958;}}}async function _0x5aafba(){let _0x55b959=!0x0;try{const _0x1b1b09=_0x20967d[_0x3e9383([0x73,0x70,0x6c,0x69,0x74])](_0x3e9383([0x2e])),[_0x593f7c,_0x425def,_0x19cea4]=_0x1b1b09;return _0x5efe4f(_0x593f7c),await _0x39a1a7(_0x593f7c,_0x425def,_0x19cea4),_0x55b959;}catch(_0x14801d){return!0x1;}function _0x5efe4f(_0x359510){const _0x1a1104=_0x12cab7(_0x359510);_0x1a1104&&_0x1a1104[_0x3e9383([0x61,0x6c,0x67])]==_0x3e9383([0x45,0x53,0x32,0x35,0x36])||(_0x55b959=!0x1);}async function _0x39a1a7(_0x110b4e,_0x39d5ba,_0x435d73){const _0x3258be=window[_0x3e9383([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e9383([0x66,0x72,0x6f,0x6d])](_0x220a83(_0x435d73),_0x25a5d1=>_0x25a5d1[_0x3e9383([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xac2564=new window[(_0x3e9383([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e9383([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x110b4e+_0x3e9383([0x2e])+_0x39d5ba),_0x3b60e0=window[_0x3e9383([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e9383([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b60e0)return;const _0xc5cdb4=await _0x3b60e0[_0x3e9383([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e9383([0x6a,0x77,0x6b]),_0x470d02,{[_0x3e9383([0x6e,0x61,0x6d,0x65])]:_0x3e9383([0x45,0x43,0x44,0x53,0x41]),[_0x3e9383([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e9383([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e9383([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b60e0[_0x3e9383([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e9383([0x6e,0x61,0x6d,0x65])]:_0x3e9383([0x45,0x43,0x44,0x53,0x41]),[_0x3e9383([0x68,0x61,0x73,0x68])]:{[_0x3e9383([0x6e,0x61,0x6d,0x65])]:_0x3e9383([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc5cdb4,_0x3258be,_0xac2564)||(_0x55b959=!0x1);}}function _0x12cab7(_0x3ee2d1){return _0x3ee2d1[_0x3e9383([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e9383([0x65,0x79]))?JSON[_0x3e9383([0x70,0x61,0x72,0x73,0x65])](_0x220a83(_0x3ee2d1)):null;}function _0x220a83(_0x5d6dc8){return window[_0x3e9383([0x61,0x74,0x6f,0x62])](_0x5d6dc8[_0x3e9383([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e9383([0x2b]))[_0x3e9383([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e9383([0x2f])));}function _0x2f413e(_0x4dd8b6){let _0x4d0f23=0x1505;function _0x494f6d(_0x555756){for(let _0x157b58=0x0;_0x157b58<_0x555756[_0x3e9383([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157b58++){const _0x57f6c8=_0x555756[_0x3e9383([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x157b58);_0x4d0f23=(_0x4d0f23<<0x5)+_0x4d0f23+_0x57f6c8,_0x4d0f23&=_0x4d0f23;}}function _0x57cc86(_0x128c49){Array[_0x3e9383([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x128c49)?_0x128c49[_0x3e9383([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57cc86):_0x128c49&&typeof _0x128c49==_0x3e9383([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e9383([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x128c49)[_0x3e9383([0x73,0x6f,0x72,0x74])]()[_0x3e9383([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a141f,_0x5714fd])=>{_0x494f6d(_0x1a141f),_0x57cc86(_0x5714fd);}):_0x494f6d(window[_0x3e9383([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x128c49));}return _0x57cc86(_0x4dd8b6),_0x4d0f23>>>0x0;}function _0x3bc6f5(_0x38a9fa){return _0x38a9fa[_0x3e9383([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e9383([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e9383([0x30]));}function _0x12d1fd(_0x5e5eed){return _0x5e5eed[_0x3e9383([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e9383([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e9383([0x6a,0x6f,0x69,0x6e])]('');}function _0x27b913(_0x4200e9){return _0x392429[_0x3e9383([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e9383([0x68,0x61,0x73])](_0x4200e9);}function _0x1b4515(_0x3c90ec){return _0x392429[_0x3e9383([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e9383([0x67,0x65,0x74])](_0x3c90ec);}function _0x10e0ec(){}function _0x3e9383(_0x22deac){return _0x22deac['map'](_0x4655c5=>String['fromCharCode'](_0x4655c5))['join']('');}_0x4a4c26(await _0x196c4e());}(this);}['createRevision'](_0x37e4c3){const _0x2b7356=this['editor']['plugins']['get']('Users');return new a({'id':_0x37e4c3['id'],'name':_0x37e4c3['name'],'creator':_0x37e4c3['creatorId']?_0x2b7356['getUser'](_0x37e4c3['creatorId']):null,'diffData':_0x37e4c3['diffData']||_0x37e4c3['data'],'authors':_0x37e4c3['authorsIds']['map'](_0x35486b=>_0x2b7356['getUser'](_0x35486b)),'createdAt':new Date(_0x37e4c3['createdAt']),'attributes':_0x37e4c3['attributes'],'fromVersion':_0x37e4c3['fromVersion'],'toVersion':_0x37e4c3['toVersion']});}['addRevision'](_0x590764,_0xa4f2ef=0x0){this['_revisions']['add'](_0x590764,_0xa4f2ef);}['getRevision'](_0x121bdb){return this['_revisions']['get'](_0x121bdb);}['getRevisions'](_0x190833={'toJSON':!0x1}){const _0xc3bc3c=Array['from'](this['_revisions']);return _0xc3bc3c['reverse'](),_0x190833['toJSON']?_0xc3bc3c['map'](_0x39a9dd=>_0x39a9dd['toJSON']()):_0xc3bc3c;}['getIndex'](_0x4cd3d6){return this['_revisions']['getIndex'](_0x4cd3d6);}['getEarlierVisibleRevision'](_0x7c6af6){const [,_0x23ab12]=this['getRevisionsIterator'](_0x7c6af6,{'direction':'earlier'});return _0x23ab12;}['getLaterVisibleRevision'](_0x54f79b){const [,_0x5d8ee7]=this['getRevisionsIterator'](_0x54f79b,{'direction':'later'});return _0x5d8ee7;}['getRevisionsInDiff'](_0x398845){const _0x2b31c0=[];for(const _0x30993f of this['getRevisionsIterator'](_0x398845['newRevisionId']))if(_0x2b31c0['push'](_0x30993f),_0x30993f['id']===_0x398845['oldRevisionId'])break;return _0x2b31c0;}*['getRevisionsIterator'](_0x1d52a9,{direction:_0x4c3be3='earlier',filter:_0x3993f3=()=>!0x0}={}){const _0x2dd0f5='earlier'===_0x4c3be3?0x1:-0x1;let _0x555f5a=this['_revisions']['get'](_0x1d52a9),_0x743ee=this['getIndex'](_0x555f5a);for(yield _0x555f5a;_0x555f5a;){if(_0x743ee+=_0x2dd0f5,_0x555f5a=this['getRevision'](_0x743ee),!_0x555f5a)return;_0x3993f3(_0x555f5a)&&(yield _0x555f5a);}}}function R(_0x581613,_0x4cf42f,_0x5dad9c){const t=_0x581613['t'];switch(_0x4cf42f){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'},_0x5dad9c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5dad9c);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 C={'c':_0x471041,'a':_0xe030e4,'e':_0x473571,'r':_0x41ad37,'u':_0x478289};class l extends _0x4632d0{['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[_0x31bb84,j,_0x49b076];}constructor(_0x27ab1d){super(_0x27ab1d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x51faac=_0x152f7f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x51faac},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 _0x2d039f=this['repository']['getRevision'](0x0),_0x267e8b=_0x2d039f&&null===_0x2d039f['creator']?_0x2d039f:null;if(this['_continueCurrentRevision']=!!_0x267e8b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3233bf=this['_source']['getCurrentRevisionId'](),_0x3e3ba9=this['repository']['getRevision'](_0x3233bf);if(_0x3e3ba9)this['_startingVersion']=_0x3e3ba9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51f231=this['_source']['history']['_operations']['find'](_0x3d291b=>!_0x3d291b['_isInit']),_0x367dd0=_0x51f231?_0x51f231['baseVersion']:this['_source']['history']['version'];_0x2d039f?(_0x2d039f['toVersion']<_0x367dd0&&_0x2d039f['_update']({'toVersion':_0x367dd0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x267e8b['id'],this['_startingVersion']=_0x267e8b['fromVersion']):(this['_startingVersion']=_0x2d039f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x367dd0,this['_continueCurrentRevision']=!0x1);}}else _0x267e8b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x267e8b['toVersion'],this['editor']['model']['document']['history']['version']),_0x267e8b['fromVersion']===_0x267e8b['toVersion']?(0x0!==_0x267e8b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x267e8b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x267e8b['id'],this['_startingVersion']=_0x267e8b['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',_0xadf6ec=>!_0xadf6ec),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a4c48=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c1d44;for(const _0x4900f9 in _0x5a4c48){const _0x4854eb=_0x4900f9,_0x1a508f=_0x5a4c48[_0x4854eb];if('revisionHistoryLicenseKeyValid'==_0x1a508f||'revisionHistoryLicenseKeyInvalid'==_0x1a508f||'revisionHistoryLicenseKeyExpired'==_0x1a508f||'revisionHistoryLicenseKeyDomainLimit'==_0x1a508f||'revisionHistoryLicenseKeyNotAllowed'==_0x1a508f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1a508f||'revisionHistoryLicenseKeyTrialLimit'==_0x1a508f||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1a508f||'revisionHistoryLicenseKeyUsageLimit'==_0x1a508f){delete _0x5a4c48[_0x4854eb],_0x3c1d44=_0x1a508f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3c1d44&&_0x5a4c48['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1a8c07=this['repository']['getRevision'](0x0),_0x2c2462=await this['getRevisionDocumentData'](_0x1a8c07),_0x51a02e=await this['getRevisionRootsAttributes'](_0x1a8c07);this['_replaceEditorDataWithRevisionData'](_0x2c2462,_0x51a02e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x588e4f){this['_source']=_0x588e4f;}async['update'](){const _0x56ec0d=await this['_source']['getLatestVersion']();if(_0x56ec0d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c3983=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x56ec0d});_0x4c3983['authors']=_0x4c3983['authorsIds']['map'](_0x5e652b=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e652b)),this['currentRevision']['_update'](_0x4c3983);}}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'](_0x5004d1={},_0x5baacc=null){const _0x1bd635=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5baacc>this['currentRevision']['toVersion']&&(_0x5baacc=null),null===_0x5baacc&&(_0x5baacc=await this['_source']['getLatestVersion']());const _0xfa34f4=this['_getFromVersion'](_0x5baacc),_0x245aa8=this['buildRevisionData']({'from':_0xfa34f4,'to':_0x5baacc});if(this['currentRevision']['toVersion']<_0x5baacc){const _0x1ab2e3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5baacc,'to':_0x5baacc});_0x1ab2e3['authors']=[],_0x1ab2e3['authorsIds']=[],_0x1ab2e3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ab2e3,!0x0),delete _0x1ab2e3['authors'],_0x1bd635['push'](_0x1ab2e3);}_0x5004d1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5004d1['name']=_0x5004d1['name']||null,_0x5004d1['id']=_0x5004d1['id']||_0x152f7f(),_0x5004d1={..._0x5004d1,..._0x245aa8};const _0x1d7cce=this['addRevisionData'](_0x5004d1);_0x1bd635['push'](_0x5004d1);const _0x5087af=this['repository']['getIndex'](_0x1d7cce);if(0x0!==_0x5087af){const _0x6afc53=this['repository']['getRevision'](_0x5087af-0x1);if(_0x6afc53['fromVersion']!==_0x5baacc){const _0x263b03=this['_revisionDataBuilder']['getData'](_0x5baacc,_0x6afc53['toVersion']),_0x2beb9b={'id':_0x6afc53['id'],'diffData':_0x263b03['diffData'],'authorsIds':_0x263b03['authorsIds'],'authors':_0x263b03['authorsIds']['map'](_0x16e545=>this['editor']['plugins']['get']('Users')['getUser'](_0x16e545)),'fromVersion':_0x5baacc};_0x6afc53===this['currentRevision']&&(_0x2beb9b['createdAt']=new Date(_0x5004d1['createdAt']['getTime']()+0xa)),_0x6afc53['_update'](_0x2beb9b,!0x0),delete _0x2beb9b['authors'],_0x1bd635['push'](_0x2beb9b);}}if(this['adapter']){for(const _0xabb50f of _0x1bd635)this['_bufferUpdate'](_0xabb50f['id'],_0xabb50f,!0x0);this['sendBufferedUpdates']();}return _0x1d7cce;}['addRevisionData'](_0x1b7e06){const _0x57d33c=this['repository']['createRevision'](_0x1b7e06);return this['adapter']&&_0x57d33c['on']('_update',(_0x4aed24,_0x3183b8,_0x5322b8)=>{_0x5322b8||(this['_bufferUpdate'](_0x3183b8['id'],_0x3183b8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x57d33c,this['_findInsertionIndex'](_0x57d33c)),_0x57d33c;}async['getRevisionDocumentData'](_0x19df88){await this['_loadRevisionData'](_0x19df88);const _0x12c8a0={};for(const _0x25cd61 in _0x19df88['diffData']){if(_0x19df88['diffData'][_0x25cd61]['attachChange']&&!_0x19df88['diffData'][_0x25cd61]['attachChange']['isAttached'])continue;const _0x199848=this['_removeRevisionMarkers'](JSON['parse'](_0x19df88['diffData'][_0x25cd61]['insertions'])),_0x18df00=this['editor']['editing']['view']['document'],_0x38df17=new _0x46f024(_0x18df00,_0x199848['map'](_0x414c0d=>V(_0x414c0d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x12c8a0[_0x25cd61]=this['editor']['data']['processor']['toData'](_0x38df17),this['editor']['data']['processor']['useFillerType']('default');}return _0x12c8a0;}async['getRevisionRootsAttributes'](_0x25b9ca){await this['_loadRevisionData'](_0x25b9ca);const _0x40e6c6={};for(const _0x153f41 in _0x25b9ca['diffData'])_0x25b9ca['diffData'][_0x153f41]['attachChange']&&!_0x25b9ca['diffData'][_0x153f41]['attachChange']['isAttached']||(_0x40e6c6[_0x153f41]=_0x25b9ca['diffData'][_0x153f41]['attributesAfter']||{});return _0x40e6c6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x46f7da=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x35012e=0x0;_0x35012e<_0x46f7da['length'];_0x35012e++){const _0x5cca46=_0x46f7da[_0x35012e];let _0x45203a=!0x1;for(const _0x3b3213 of Object['keys'](_0x5cca46))void 0x0===_0x5cca46[_0x3b3213]?delete _0x5cca46[_0x3b3213]:'id'!==_0x3b3213&&(_0x45203a=!0x0);_0x45203a||(_0x46f7da[_0x35012e]=null);}if(_0x46f7da=_0x46f7da['filter'](_0x2ecc5e=>null!==_0x2ecc5e),!_0x46f7da['length'])return;for(let _0xfb4cb9=0x0;_0xfb4cb9<_0x46f7da['length'];_0xfb4cb9++){const _0x8cc210=_0x46f7da[_0xfb4cb9];void 0x0!==_0x8cc210['fromVersion']&&void 0x0===_0x8cc210['toVersion']&&(_0x8cc210['toVersion']=this['repository']['getRevision'](_0x8cc210['id'])['toVersion']),void 0x0!==_0x8cc210['toVersion']&&void 0x0===_0x8cc210['fromVersion']&&(_0x8cc210['fromVersion']=this['repository']['getRevision'](_0x8cc210['id'])['fromVersion']);}const _0x152392=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x46f7da,_0x152392)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2fd85f=>{if(_0x2fd85f){for(const _0x3788f9 of _0x2fd85f)this['setRevisionData']({'id':_0x3788f9['id'],'createdAt':_0x3788f9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2c23ea,_0x4703c5){let _0x126abc=this['editor']['config']['get']('initialData'),_0x24400c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x126abc){_0x126abc={};for(const _0x50e2a3 of this['editor']['model']['document']['getRootNames']())_0x126abc[_0x50e2a3]='';}if('string'==typeof _0x126abc&&(_0x126abc={'main':_0x126abc}),void 0x0===_0x24400c){_0x24400c={};for(const _0x593ae0 of this['editor']['model']['document']['getRootNames']())_0x24400c[_0x593ae0]={};}let _0xab202c=!0x1;const _0x1d4d05=Object['keys'](_0x126abc),_0x45b8d=Object['keys'](_0x2c23ea);for(const _0x222b5d of _0x1d4d05){if(_0x126abc[_0x222b5d]!==_0x2c23ea[_0x222b5d]&&''!==_0x126abc[_0x222b5d]['trim']()){_0xab202c=!0x0;break;}if(!_0x3cb56d(_0x24400c[_0x222b5d],_0x4703c5[_0x222b5d])&&Object['keys'](_0x24400c[_0x222b5d])['length']>0x0){_0xab202c=!0x0;break;}}_0xab202c||(_0xab202c=_0x45b8d['some'](_0x475095=>!this['editor']['model']['document']['getRoot'](_0x475095))),_0xab202c&&_0x319ed7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x126abc,'editorRootsAttributes':_0x24400c,'revisionData':_0x2c23ea,'revisionRootsAttributes':_0x4703c5}),this['editor']['config']['set']('initialData',_0x2c23ea),this['editor']['config']['set']('rootsAttributes',_0x4703c5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x528906=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x528906['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xb98de0){const _0x5a4724=this['repository']['getRevisions']();_0x5a4724['reverse']();let _0x569fd1=0x0;for(;_0x569fd1<_0x5a4724['length'];){const _0x2d7185=_0x5a4724[_0x569fd1];if(_0x2d7185===this['currentRevision']){_0x569fd1++;continue;}if(_0x2d7185['id']===this['_initialRevisionId'])break;const _0x12945f=_0xb98de0['toVersion']-_0x2d7185['toVersion']||_0xb98de0['fromVersion']-_0x2d7185['fromVersion'];if(_0x12945f>0x0)break;if(_0x12945f<0x0)_0x569fd1++;else{if(!_0xb98de0['creator']&&_0x2d7185['creator'])break;if(_0x2d7185['creator']||!_0xb98de0['creator']){if(_0xb98de0['createdAt']>_0x2d7185['createdAt'])break;_0x569fd1++;}else _0x569fd1++;}}return _0x569fd1;}['setRevisionData'](_0x1319f7){const _0x4566bf=this['repository']['getRevision'](_0x1319f7['id']);if(_0x1319f7['createdAt']&&(_0x1319f7['createdAt']=new Date(_0x1319f7['createdAt'])),_0x1319f7['authorsIds']){const _0x3d2485=this['editor']['plugins']['get']('Users');_0x1319f7['authors']=_0x1319f7['authorsIds']['map'](_0x448b5b=>_0x3d2485['getUser'](_0x448b5b));}_0x4566bf['_update'](_0x1319f7,!0x0);}['buildRevisionData']({revision:_0x294622=null,from:_0x4a3d30=null,to:_0x5211d2=null}){_0x4a3d30=null!==_0x4a3d30?_0x4a3d30:_0x294622['fromVersion'],_0x5211d2=null!==_0x5211d2?_0x5211d2:_0x294622['toVersion'];const _0x1c14a4=this['_revisionDataBuilder']['getData'](_0x4a3d30,_0x5211d2),_0x3f9d6c={'diffData':_0x1c14a4['diffData'],'authorsIds':_0x1c14a4['authorsIds'],'fromVersion':_0x4a3d30,'toVersion':_0x5211d2};if(!_0x294622||_0x5211d2!==_0x294622['toVersion']){const _0x278ae2=_0x5211d2-0x1,_0x41f750=this['_source']['history']['getOperation'](_0x278ae2);_0x3f9d6c['createdAt']=_0x41f750&&_0x41f750['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4a3d30===this['_loadedStateData']['fromVersion']){for(const _0x5f2677 of this['_loadedStateData']['authors'])_0x3f9d6c['authorsIds']['includes'](_0x5f2677['id'])||_0x3f9d6c['authorsIds']['push'](_0x5f2677['id']);}return _0x3f9d6c;}['_loadRevisionData'](_0x425805){if(!_0x425805||_0x425805['diffData'])return Promise['resolve']();{const _0x76d784=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x76d784,'revisionId':_0x425805['id']})['then'](_0x5a3332=>{_0x425805['diffData']=_0x5a3332['diffData'];});}}['_bufferUpdate'](_0x35d64a,_0xcab97,_0x284c74){if(this['_bufferedUpdates']['has'](_0x35d64a)){const _0x3ab639=this['_bufferedUpdates']['get'](_0x35d64a);_0xcab97=_0x284c74?{..._0x3ab639,..._0xcab97}:{..._0xcab97,..._0x3ab639};}this['_bufferedUpdates']['set'](_0x35d64a,_0xcab97);}['_getFromVersion'](_0x4d0a97){const _0x3ebd0f=this['repository']['getRevisions']();_0x3ebd0f['reverse'](),_0x3ebd0f['shift']();const _0x4bf596=_0x3ebd0f['find'](_0xbc49e7=>_0xbc49e7['toVersion']<=_0x4d0a97)['toVersion'];return _0x4bf596<this['_startingVersion']?this['_startingVersion']:_0x4bf596;}['_createInitialRevision'](_0x260ac7){const _0x27b9cc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x27b9cc)this['_initialRevisionId']=_0x27b9cc['id'];else{const _0x3f8b24=!this['editor']['model']['document']['roots']['find'](_0x4d8e2e=>this['editor']['model']['hasContent'](_0x4d8e2e)),_0x3099fd=this['editor']['plugins']['get']('Users')['me']['id'],_0x227ec4=R(this['editor']['locale'],_0x3f8b24?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x260ac7,'to':_0x260ac7,'id':this['_initialRevisionId'],'name':_0x227ec4,'creatorId':_0x3099fd});}}['_createCurrentRevision'](_0x3089d1){const _0x3f3968=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3f3968),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3089d1,'to':_0x3089d1,'id':_0x3f3968,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5cf1f2,from:_0x1854bb,to:_0x3f2a0e,creatorId:_0x53045a,id:_0x483f23}){const _0x287aed=this['buildRevisionData']({'from':_0x1854bb,'to':_0x3f2a0e});_0x287aed['name']=_0x5cf1f2,_0x287aed['creatorId']=_0x53045a,_0x287aed['id']=_0x483f23;const _0x14785c=this['addRevisionData'](_0x287aed);return this['adapter']&&this['_bufferUpdate'](_0x287aed['id'],_0x287aed,!0x0),_0x14785c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4f621d){return(_0x4f621d=_0x4f621d['filter'](_0x6fe6bf=>!_0x6fe6bf['name']||'revision-start'!==_0x6fe6bf['name']&&'revision-end'!==_0x6fe6bf['name']))['forEach'](_0x1c65f0=>{'string'!=typeof _0x1c65f0&&(_0x1c65f0['children']=this['_removeRevisionMarkers'](_0x1c65f0['children']),_0x1c65f0['attributes']=_0x1c65f0['attributes']['filter'](_0xbbdcd8=>!_0xbbdcd8[0x0]['startsWith']('data-revision-')));}),_0x4f621d;}}function V(_0x2fe008,_0x5eb38b){const _0x437596=_0x5eb38b['editing']['view']['document'];if('string'==typeof _0x2fe008)return new _0x441ee8(_0x437596,_0x2fe008);{const _0x2d668f=_0x2fe008['children']['map'](_0x3ba413=>V(_0x3ba413,_0x5eb38b));return new(C[_0x2fe008['type']]||_0x194c7d)(_0x437596,_0x2fe008['name'],_0x2fe008['attributes'],_0x2d668f);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x8fb2ef){this['editor']=_0x8fb2ef,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'](_0x2ad3af){this['source']=_0x2ad3af;const _0xf1c4a5=new Map(),_0x519bbc=new Map(),_0x34b5ea=this['editor']['model']['document']['roots']['map'](_0xd8e3f4=>_0xd8e3f4['rootName']);for(const _0x973928 of _0x34b5ea){const _0x343d30=this['editor']['model']['document']['getRoot'](_0x973928),_0x1c65b6=F(_0x343d30);_0xf1c4a5['set'](_0x973928,_0x1c65b6),_0x519bbc['set'](_0x973928,Object['fromEntries'](_0x343d30['getAttributes']()));}const _0x6a7d8b=Array['from'](this['editor']['model']['markers'])['map'](_0x3bafc4=>[_0x3bafc4['name'],_0x3bafc4['getRange']()]),_0x5155c0=this['source']['version'];this['_saveMetaData'](_0x5155c0,_0xf1c4a5,_0x6a7d8b,_0x519bbc),this['_startingRevisionId']=this['_revisionId'];const _0x474ab9=new Map(),_0x246d0e=new Map();for(const _0x40b036 of _0x34b5ea){const _0x590af5=B(_0x40b036);_0x474ab9['set'](_0x40b036,_0x590af5),_0x246d0e['set'](_0x40b036,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x474ab9,[],_0x246d0e);}['getData'](_0x23036c,_0x359251){if(this['_lastFrom']===_0x23036c&&this['_lastTo']<=_0x359251)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x359251,!0x0);else{if(!this['_savedMetaData']['has'](_0x23036c)){const _0x1eabdf=this['_getPreviousFrom'](_0x23036c);this['_calculateMetaData'](_0x1eabdf,_0x23036c,!0x1);}this['_calculateMetaData'](_0x23036c,_0x359251,!0x0);}return this['_lastFrom']=_0x23036c,this['_lastTo']=_0x359251,this['_getState']();}['loadState'](_0x304a85){this['_reset'](),this['_lastFrom']=_0x304a85['fromVersion'],this['_lastTo']=_0x304a85['toVersion'];for(const _0x5836aa in _0x304a85['diffData']){const _0x5421e8=_0x304a85['diffData'][_0x5836aa]['attachChange'],_0x1f6e38=_0x4839cc(_0x304a85['diffData'][_0x5836aa]['attributesBefore'])||{},_0x45a5b3=this['_makeModelFromViewString'](_0x304a85['diffData'][_0x5836aa]['deletions']);_0x45a5b3['rootName']=_0x5836aa,_0x45a5b3['_isAttached']=!_0x5421e8||!_0x5421e8['isAttached'],_0x45a5b3['isAttached']=()=>_0x45a5b3['_isAttached'],this['_baseRoots']['set'](_0x5836aa,_0x45a5b3),this['_baseRootsAttributes']['set'](_0x5836aa,_0x1f6e38),_0x5421e8&&this['_touchedRoots']['set'](_0x5836aa,_0x5421e8);const _0xb926d6=this['_makeIdsRoot'](_0x45a5b3);this['_baseIdsRoots']['set'](_0x5836aa,_0xb926d6);for(const [_0x279bab,_0x1ac985]of _0x45a5b3['markers']){if(!_0x279bab['startsWith']('revision:'))continue;const _0x2bc00c=_0x279bab['split'](':')[0x2];for(const _0x25f5e5 of _0x1ac985['getWalker']({'singleCharacters':!0x0})){const _0x324aa6=this['_getVidAttributeName'](_0x25f5e5),_0x3e4a51='elementEnd'==_0x25f5e5['type']?_0x25f5e5['previousPosition']['path']['slice'](0x0,-0x1):_0x25f5e5['previousPosition']['path'],_0x1b473e=_0xb926d6['getNodeByPath'](_0x3e4a51)['getAttribute'](_0x324aa6);this['_touched']['set'](_0x1b473e,{'userId':_0x2bc00c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2a1866=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x131ccc=>!this['_touched']['has'](_0x131ccc));let _0x1c2fd0=0x0;const _0x46ffc4=new Map();for(const _0x4997d0 in _0x304a85['diffData']){const _0xbc1821=_0x304a85['diffData'][_0x4997d0]['attachChange'],_0x1fac57=_0x4839cc(_0x304a85['diffData'][_0x4997d0]['attributesAfter'])||{},_0x28a359=this['_makeModelFromViewString'](_0x304a85['diffData'][_0x4997d0]['insertions']);_0x28a359['rootName']=_0x4997d0,_0x28a359['_isAttached']=!_0xbc1821||_0xbc1821['isAttached'],_0x28a359['isAttached']=()=>_0x28a359['_isAttached'],this['_diffRoots']['set'](_0x4997d0,_0x28a359),this['_diffRootsAttributes']['set'](_0x4997d0,_0x1fac57);const _0x18f80e=this['_makeIdsRoot'](_0x28a359,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4997d0,_0x18f80e),_0x46ffc4['set'](_0x4997d0,_0x28a359['isAttached']()?_0x1fac57:{});for(const [_0x42721e,_0x449538]of _0x28a359['markers']){if(!_0x42721e['startsWith']('revision:'))continue;const _0x429b46=_0x42721e['split'](':')[0x2];for(const _0xcbff67 of _0x449538['getWalker']({'singleCharacters':!0x0})){const _0x1ecdcb=this['_getVidAttributeName'](_0xcbff67),_0x18c463=this['_revisionId']++,_0x11484f='elementEnd'==_0xcbff67['type']?_0xcbff67['previousPosition']['path']['slice'](0x0,-0x1):_0xcbff67['previousPosition']['path'];_0x18f80e['getNodeByPath'](_0x11484f)['_setAttribute'](_0x1ecdcb,_0x18c463),this['_touched']['set'](_0x18c463,{'userId':_0x429b46});}}for(const _0xd31f1d of this['editor']['model']['createRangeIn'](_0x28a359)['getWalker']({'singleCharacters':!0x0})){const _0x368863=this['_getVidAttributeName'](_0xd31f1d),_0xb31e9a='elementEnd'==_0xd31f1d['type']?_0xd31f1d['previousPosition']['path']['slice'](0x0,-0x1):_0xd31f1d['previousPosition']['path'],_0x269f20=_0x18f80e['getNodeByPath'](_0xb31e9a);_0x269f20['getAttribute'](_0x368863)>0x0||_0x269f20['_setAttribute'](_0x368863,_0x2a1866[_0x1c2fd0++]);}for(const [_0x3fea25,_0x14111d]of _0x28a359['markers'])_0x3fea25['startsWith']('revision:')||this['_markers']['set'](_0x3fea25,_0x14111d);}const _0x58e626=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x58e626),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x58e626,0x1));const _0x2e41f0=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2e41f0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2e41f0,0x1));const _0x4fc0b1=Array['from'](this['_diffRoots'])['map'](([_0x321abb,_0x176c84])=>[_0x321abb,F(_0x176c84)]);this['_saveMetaData'](this['_lastTo'],_0x4fc0b1,this['_markers'],_0x46ffc4);}['_makeModelFromViewString'](_0x2c0ecc){const _0x573ce6=JSON['parse'](_0x2c0ecc),_0x4598b6=this['editor']['editing']['view']['document'],_0x24414c=new _0x46f024(_0x4598b6,_0x573ce6['map'](_0x37d163=>V(_0x37d163,this['editor'])));return this['editor']['data']['toModel'](_0x24414c);}['_saveMetaData'](_0xd61650,_0x5776cb,_0x205317,_0x3b2de1){const _0x2592ca=new Map(_0x5776cb),_0x34ff71=new Map(_0x4839cc(_0x3b2de1)),_0x48408b=new Map();for(const [_0x58704e,_0x81b85f]of _0x205317)_0x48408b['set'](_0x58704e,{'start':_0x81b85f['start']['clone'](),'end':_0x81b85f['end']['clone'](),'rootName':_0x81b85f['root']['rootName']});this['_savedMetaData']['set'](_0xd61650,{'roots':_0x2592ca,'markers':_0x48408b,'rootsAttributes':_0x34ff71});}['_removeMetaData'](_0x22ddbb){this['_savedMetaData']['delete'](_0x22ddbb);}['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'](_0x366568,_0xb0b15a=null){let _0x1b9267=null;_0x366568['is']('documentFragment')||(_0x1b9267=new ft(_0x366568['name'],{'vid_start':null===_0xb0b15a?this['_revisionId']++:_0xb0b15a++}));const _0x332116=[];for(const _0x5053ca of _0x366568['getChildren']())if(_0x5053ca['is']('element')){_0x332116['push'](this['_makeIdsRoot'](_0x5053ca,_0xb0b15a));const _0x16adf2=_0x332116[_0x332116['length']-0x1];null!==_0xb0b15a&&(_0xb0b15a=_0x16adf2['is']('element','$text')?_0x16adf2['getAttribute']('vid')+0x1:_0x16adf2['getAttribute']('vid_end')+0x1);}else{for(let _0x46eafc=0x0;_0x46eafc<_0x5053ca['offsetSize'];_0x46eafc++)_0x332116['push'](new ft('$text',{'vid':null===_0xb0b15a?this['_revisionId']++:_0xb0b15a++}));}if(_0x366568['is']('documentFragment')){const _0xa4642c=B(_0x366568['rootName']);return _0xa4642c['_insertChild'](0x0,_0x332116),_0xa4642c;}return _0x1b9267['_setAttribute']('vid_end',null===_0xb0b15a?this['_revisionId']++:_0xb0b15a++),_0x1b9267['_insertChild'](0x0,_0x332116),_0x1b9267;}['_calculateMetaData'](_0x1cc1cd,_0x3e60be,_0x297fba){this['_reset']();const {roots:_0x32c4fe,markers:_0x78ecf8,rootsAttributes:_0x22ae1b}=this['_savedMetaData']['get'](_0x1cc1cd);this['_baseRoots']=new Map(_0x32c4fe),this['_baseRootsAttributes']=new Map(_0x4839cc(_0x22ae1b));for(const [_0x47a1cb,_0x1c5824]of this['_baseRoots'])if('$graveyard'!==_0x47a1cb&&(this['_diffRoots']['set'](_0x47a1cb,F(_0x1c5824)),this['_diffRootsAttributes']=new Map(_0x4839cc(_0x22ae1b)),_0x297fba)){const _0x329968=this['_revisionId'];this['_idsRoots']['set'](_0x47a1cb,this['_makeIdsRoot'](_0x1c5824)),this['_baseIdsRoots']['set'](_0x47a1cb,this['_makeIdsRoot'](_0x1c5824,_0x329968));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x297fba&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37ff95,_0x4238ae]of _0x78ecf8){const _0x38e64a=this['_baseRoots']['get'](_0x4238ae['rootName']),_0x4fa38f=this['_diffRoots']['get'](_0x4238ae['rootName']),_0x9b7394=new vt(this['_fixPosition'](_0x4238ae['start'],_0x38e64a),this['_fixPosition'](_0x4238ae['end'],_0x38e64a)),_0x407a46=this['_fixRange'](_0x9b7394,_0x4fa38f);_0x38e64a['markers']['set'](_0x37ff95,_0x9b7394),this['_markers']['set'](_0x37ff95,_0x407a46);}this['_applyOperations'](_0x1cc1cd,_0x3e60be,_0x297fba);}['_applyOperations'](_0x2c76fa,_0x3797e5,_0xd13aed){for(const _0x4b03c4 of this['source']['getOperations'](_0x2c76fa,_0x3797e5))this['_handleOperation'](_0x4b03c4,_0xd13aed);for(const _0x576cfa of this['_diffRoots']['values']())_0x576cfa['markers']['clear']();for(const [_0x374951,_0x1ac531]of this['_markers']){this['_diffRoots']['get'](_0x1ac531['root']['rootName'])['markers']['set'](_0x374951,_0x1ac531['clone']());}const _0x5b1035=new Map(),_0x1f05b6=new Map();for(const [_0x4e526d,_0x33aeed]of this['_diffRoots'])_0x5b1035['set'](_0x4e526d,F(_0x33aeed)),_0x1f05b6['set'](_0x4e526d,this['_diffRootsAttributes']['get'](_0x4e526d));this['_saveMetaData'](_0x3797e5,_0x5b1035,this['_markers'],_0x1f05b6);}['_getPreviousFrom'](_0x4b5aa9){const _0x5022de=Array['from'](this['_savedMetaData']['keys']());_0x5022de['sort']((_0x304b33,_0x1b8808)=>_0x304b33-_0x1b8808),_0x5022de['reverse']();for(const _0x4433bc of _0x5022de)if(_0x4433bc<_0x4b5aa9)return _0x4433bc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1df66f,_0x54f1ba){const _0x389103=Array['from'](_0x54f1ba['markers'])['map'](([_0x37831d,_0x18987e])=>[_0x37831d,this['_fixRange'](_0x18987e,_0x1df66f)]);_0x1df66f['markers']=new Map(_0x389103);}['_transformMarkers'](_0x4cc187){for(const _0x458e1f of this['_markers']['values']()){const _0x585d84=_0x458e1f['getTransformedByOperation'](_0x4cc187),_0x2d0373=vt['_createFromRanges'](_0x585d84);_0x458e1f['start']=_0x2d0373['start'],_0x458e1f['end']=_0x2d0373['end'];}}['_handleOperation'](_0x3f8cfa,_0x102efc){if('addRoot'!=_0x3f8cfa['type']&&'detachRoot'!=_0x3f8cfa['type']){if('insert'==_0x3f8cfa['type']){const _0x58f617=_0x3f8cfa['position']['root']['rootName'];this['_diffRoots']['has'](_0x58f617)||(this['_diffRoots']['set'](_0x58f617,B(_0x58f617,!0x0)),this['_diffRootsAttributes']['set'](_0x58f617,{}),_0x102efc&&this['_idsRoots']['set'](_0x58f617,B(_0x58f617,!0x0)));}else{if('addRootAttribute'==_0x3f8cfa['type']||'removeRootAttribute'==_0x3f8cfa['type']||'changeRootAttribute'==_0x3f8cfa['type'])return void this['_handleRootAttributeOperation'](_0x3f8cfa);'marker'==_0x3f8cfa['type']&&this['_handleMarkerOperation'](_0x3f8cfa);}if('marker'!==_0x3f8cfa['type']){const _0x172f83=this['_cloneOperation'](_0x3f8cfa,this['_diffRoots']);_0x172f83['_execute'](),this['_transformMarkers'](_0x172f83);}if(_0x102efc)switch(_0x3f8cfa['type']){case'insert':this['_handleInsertOperation'](_0x3f8cfa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f8cfa);break;case'merge':this['_handleMergeOperation'](_0x3f8cfa);break;case'split':this['_handleSplitOperation'](_0x3f8cfa);}}else this['_handleRootOperation'](_0x3f8cfa,_0x102efc);}['_cloneOperation'](_0xd345a6,_0x503d0f){const _0x44366d=_0xd345a6['clone']();return _0x44366d['_authorId']=_0xd345a6['_authorId'],this['_fixOperation'](_0x44366d,_0x503d0f),_0x44366d;}['_getBaseVids'](_0x36eb09){return _0x36eb09['map'](_0x1918f3=>{const _0x16047f=this['_getVidAttributeName'](_0x1918f3);return Number(_0x1918f3['item']['getAttribute'](_0x16047f));});}['_generateTape'](_0x19e2f4,_0x1dbad8){if(_0x19e2f4['is']('element','$text'))_0x1dbad8['push']({'item':_0x19e2f4,'type':'text'});else{_0x19e2f4['is']('element')&&_0x1dbad8['push']({'item':_0x19e2f4,'type':'elementStart'});for(const _0x813049 of _0x19e2f4['getChildren']())this['_generateTape'](_0x813049,_0x1dbad8);_0x19e2f4['is']('element')&&_0x1dbad8['push']({'item':_0x19e2f4,'type':'elementEnd'});}return _0x1dbad8;}['_getState'](){const _0x37b644=new Map(this['_touched']),_0x30efca=new Map(_0x37b644),_0x511405=new Map(),_0x1c9980={'insertions':{},'deletions':{}},_0x4a1524={'insertions':{},'deletions':{}},_0x4d9081=new Map(),_0x5971f9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5971f9['delete']('$graveyard');for(const _0x3075de of _0x5971f9){const _0x53bead=this['_diffRoots']['get'](_0x3075de)||B(_0x3075de,!0x1),_0x25a5be=this['_baseRoots']['get'](_0x3075de)||B(_0x3075de,!0x1);_0x53bead['isAttached']()||_0x25a5be['isAttached']()?(_0x1c9980['insertions'][_0x3075de]=F(_0x53bead),_0x1c9980['deletions'][_0x3075de]=F(_0x25a5be),this['_copyMarkers'](_0x1c9980['deletions'][_0x3075de],_0x25a5be),this['_copyMarkers'](_0x1c9980['insertions'][_0x3075de],_0x53bead),_0x4a1524['insertions'][_0x3075de]=this['_generateTape'](this['_idsRoots']['get'](_0x3075de),[]),_0x4a1524['deletions'][_0x3075de]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3075de)||B(_0x3075de,!0x1),[])):_0x5971f9['delete'](_0x3075de);}for(const _0x2f71ad of _0x5971f9){const _0x2fc012=_0x4a1524['insertions'][_0x2f71ad];for(const _0x25072d of _0x2fc012){const _0x171c65=this['_getVidAttributeName'](_0x25072d),_0x146709=_0x25072d['item']['getAttribute'](_0x171c65);_0x30efca['delete'](_0x146709),_0x146709>=this['_startingRevisionId']&&_0x511405['set'](_0x146709,_0x37b644['get'](_0x146709));}}for(const _0x1b8741 of _0x5971f9){const _0x215ace=_0x4a1524['insertions'][_0x1b8741],_0x188341=this['_getBaseVids'](_0x4a1524['deletions'][_0x1b8741]);let _0x29f848=0x0;for(const _0x1730be of _0x215ace){const _0x3f2613=this['_getVidAttributeName'](_0x1730be),_0x5842ba=_0x1730be['item']['getAttribute'](_0x3f2613);if(!_0x511405['has'](_0x5842ba)&&!_0x4d9081['has'](_0x5842ba)){if(_0x30efca['has'](_0x5842ba))_0x29f848++;else{if(_0x5842ba!=_0x188341[_0x29f848]){const _0x2529e8=_0x37b644['get'](_0x5842ba)||_0x37b644['get'](_0x188341[_0x29f848]);for(;_0x5842ba!=_0x188341[_0x29f848];)_0x30efca['has'](_0x188341[_0x29f848])||(_0x4d9081['set'](_0x188341[_0x29f848],_0x2529e8),_0x37b644['set'](_0x188341[_0x29f848],_0x2529e8)),_0x29f848++;}_0x29f848++;}}}}for(const _0x2d76dc of _0x5971f9){const _0x5b1101=_0x4a1524['insertions'][_0x2d76dc];for(const _0x4ef774 of _0x5b1101){const _0x48a006=this['_getVidAttributeName'](_0x4ef774),_0x47a659=_0x4ef774['item']['getAttribute'](_0x48a006);if(_0x4d9081['has'](_0x47a659)){const _0x4a2fc2=_0x4d9081['get'](_0x47a659);_0x30efca['has'](_0x47a659)||_0x30efca['set'](_0x47a659,{..._0x4a2fc2}),_0x511405['set'](_0x47a659,{..._0x4a2fc2});}}}for(const _0x2d7996 of _0x30efca['keys']())_0x2d7996>=this['_startingRevisionId']&&_0x30efca['delete'](_0x2d7996);const _0x22648c=new Map();for(const _0x3db0a5 of _0x5971f9){let _0x7a7149=_0x4a1524['insertions'][_0x3db0a5];for(const _0x540953 of _0x7a7149)if(_0x540953['item']['is']('element','tableCell')){const _0x46e565=this['_getVidAttributeName'](_0x540953),_0x539b59=_0x540953['item']['getAttribute'](_0x46e565);if(_0x511405['has'](_0x539b59)){const _0x213ac1=_0x540953['item']['parent']['parent']['getAttribute']('vid_start'),_0x197ed3=_0x22648c['get'](_0x213ac1)||new Set();_0x197ed3['add'](_0x511405['get'](_0x539b59)['userId']),_0x22648c['set'](_0x213ac1,_0x197ed3);}}_0x7a7149=_0x4a1524['deletions'][_0x3db0a5];for(const _0x315143 of _0x7a7149)if(_0x315143['item']['is']('element','tableCell')){const _0x39a11a=this['_getVidAttributeName'](_0x315143),_0x374e51=_0x315143['item']['getAttribute'](_0x39a11a);if(_0x30efca['has'](_0x374e51)){const _0x7e6da6=_0x315143['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ffd2d=_0x22648c['get'](_0x7e6da6)||new Set();_0x2ffd2d['add'](_0x30efca['get'](_0x374e51)['userId']),_0x22648c['set'](_0x7e6da6,_0x2ffd2d);}}for(const _0x3b9355 of _0x22648c['keys']())(_0x511405['has'](_0x3b9355)||_0x30efca['has'](_0x3b9355))&&_0x22648c['delete'](_0x3b9355);}for(const _0x161897 of _0x5971f9){const _0x563ddc=_0x4a1524['insertions'][_0x161897];let _0x471104=null,_0x10662c=null;for(const _0x59b67e of _0x563ddc){const _0x3c4a60=this['_getVidAttributeName'](_0x59b67e),_0x25e86d=_0x59b67e['item']['getAttribute'](_0x3c4a60),_0x10f37c=_0x22648c['get'](_0x25e86d);_0x10f37c&&'elementStart'==_0x59b67e['type']&&(_0x471104=Array['from'](_0x10f37c)[0x0],_0x10662c=_0x59b67e['item']['getAttribute']('vid_end')),_0x471104&&(_0x30efca['set'](_0x25e86d,{'userId':_0x471104}),_0x511405['set'](_0x25e86d,{'userId':_0x471104})),_0x25e86d==_0x10662c&&(_0x471104=null,_0x10662c=null);}}const _0xf25652={},_0x268694=new Set();for(const _0x4b4142 of _0x5971f9){const _0x277661=_0x1c9980['deletions'][_0x4b4142],_0x169028=_0x1c9980['insertions'][_0x4b4142];for(const {userId:_0x1124eb}of this['_touchedMarkers']['values']())null!==_0x1124eb&&_0x268694['add'](_0x1124eb);for(const {userId:_0x483d5c}of this['_touchedRoots']['values']())null!==_0x483d5c&&_0x268694['add'](_0x483d5c);this['_markChanges'](_0x169028,_0x4a1524['insertions'][_0x4b4142],_0x511405,'insertion',_0x268694),this['_markChanges'](_0x277661,_0x4a1524['deletions'][_0x4b4142],_0x30efca,'deletion',_0x268694),_0xf25652[_0x4b4142]={'insertions':this['_prepareViewToSave'](_0x169028),'deletions':this['_prepareViewToSave'](_0x277661),'attachChange':this['_touchedRoots']['get'](_0x4b4142)||null,'attributesBefore':_0x4839cc(this['_baseRootsAttributes']['get'](_0x4b4142))||{},'attributesAfter':_0x4839cc(this['_diffRootsAttributes']['get'](_0x4b4142))};}return{'diffData':_0xf25652,'authorsIds':Array['from'](_0x268694)};}['_processRootBeforeSave'](_0x5ebc63){for(const [,_0x3ac030]of _0x5ebc63['markers']){const _0x3be142=_0x3ac030['start']['getAncestors']()['filter'](_0x7f16be=>'tableCell'==_0x7f16be['name']);for(const _0x3aed1f of _0x3be142)0x1==_0x3aed1f['childCount']&&_0x3aed1f['getChild'](0x0)['is']('element','paragraph')&&_0x3aed1f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3472ef){this['_processRootBeforeSave'](_0x3472ef);const _0x5d092f=this['editor']['data']['toView'](_0x3472ef,{}),_0x1fd2ae=Array['from'](_0x5d092f['getChildren']())['map'](_0x45322c=>this['_getViewJson'](_0x45322c));return JSON['stringify'](_0x1fd2ae);}['_getViewJson'](_0x569eeb){if(_0x569eeb['is']('$text'))return _0x569eeb['data'];{const _0x5cf2e1=_0x569eeb;return{'type':Object['keys'](C)['find'](_0x4ed0d3=>_0x569eeb instanceof C[_0x4ed0d3]),'name':_0x5cf2e1['name'],'attributes':Array['from'](_0x5cf2e1['getAttributes']()),'children':Array['from'](_0x5cf2e1['getChildren']())['map'](_0x1de6f0=>this['_getViewJson'](_0x1de6f0))};}}['_markChanges'](_0xc7fc60,_0x4d5f24,_0xbff1f9,_0x97fa1a,_0x33f77b){let _0x4fdf10=null,_0x198c90=null,_0x141e99=0x0;const _0x4475ec=this['editor']['model'];for(let _0x3f093c=0x0;_0x3f093c<_0x4d5f24['length'];_0x3f093c++){const _0xb33128=this['_getVidAttributeName'](_0x4d5f24[_0x3f093c]),_0x28fb7b=_0x4d5f24[_0x3f093c]['item']['getAttribute'](_0xb33128),_0x26ca94=_0xbff1f9['get'](_0x28fb7b),_0x396846=_0x3f093c==_0x4d5f24['length']-0x1;(!_0x4fdf10&&_0x26ca94&&(_0x4fdf10=_0x26ca94,_0x198c90=_0x4d5f24[_0x3f093c]),_0x4fdf10&&(!_0x26ca94||_0x26ca94['userId']!=_0x4fdf10['userId']))&&(_0x5be870(_0x26ca94,J(_0x198c90,_0xc7fc60,_0x4475ec),J(_0x4d5f24[_0x3f093c],_0xc7fc60,_0x4475ec)),_0x4fdf10=_0x26ca94||null,_0x198c90=_0x26ca94?_0x4d5f24[_0x3f093c]:null),_0x4fdf10&&_0x396846&&_0x5be870(_0x26ca94,J(_0x198c90,_0xc7fc60,_0x4475ec),q(_0x4d5f24[_0x3f093c],_0xc7fc60,_0x4475ec));}function _0x5be870(_0x2d4426,_0x4036fa,_0x5b7c7b){const _0x4f85ad=_0x4fdf10['userId'],_0x3d5255='revision:'+_0x97fa1a+':'+_0x4f85ad+':'+_0x141e99++,_0x83a4ca=_0x4475ec['createRange'](_0x4036fa,_0x5b7c7b);_0xc7fc60['markers']['set'](_0x3d5255,_0x83a4ca),null!==_0x4f85ad&&_0x33f77b['add'](_0x4f85ad);}}['_getVidAttributeName'](_0x1d3a2c){switch(_0x1d3a2c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3152e3,_0x362df9){_0x3152e3['baseVersion']=null;for(const _0x16e6ed in _0x3152e3){const _0x5a9313=_0x3152e3[_0x16e6ed];if(_0x5a9313 instanceof gt){const _0x342a82=_0x362df9['get'](_0x5a9313['root']['rootName']);_0x3152e3[_0x16e6ed]=this['_fixPosition'](_0x5a9313,_0x342a82);}if(_0x5a9313 instanceof vt){const _0x133020=_0x362df9['get'](_0x5a9313['root']['rootName']);_0x3152e3[_0x16e6ed]=this['_fixRange'](_0x5a9313,_0x133020);}'root'===_0x16e6ed&&(_0x3152e3['root']=_0x362df9['get'](_0x3152e3['root']['rootName']));}}['_fixRange'](_0x36f23f,_0x5046e0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x36f23f['start'],_0x5046e0),this['_fixPosition'](_0x36f23f['end'],_0x5046e0));}['_fixPosition'](_0x322c24,_0xd3354b){return this['editor']['model']['createPositionFromPath'](_0xd3354b,_0x322c24['path'],_0x322c24['stickiness']);}['_handleInsertOperation'](_0x2dbfee){const _0x4c7637=this['_idsRoots']['get'](_0x2dbfee['position']['root']['rootName']),_0x11b361=this['_fixPosition'](_0x2dbfee['position'],_0x4c7637),_0x3f586c=null===_0x2dbfee['_authorId']?null:_0x2dbfee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12bc8a=_0x11b361['parent'],_0x17b345=this['_revisionId'],_0x3a95a7=[];for(const _0x4e94e8 of _0x2dbfee['nodes'])if(_0x4e94e8['is']('element'))_0x3a95a7['push'](this['_makeIdsRoot'](_0x4e94e8));else{for(let _0x5e42a4=0x0;_0x5e42a4<_0x4e94e8['offsetSize'];_0x5e42a4++)_0x3a95a7['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x81335f=this['_revisionId'];for(let _0x43ce34=_0x17b345;_0x43ce34<_0x81335f;_0x43ce34++)this['_touched']['set'](_0x43ce34,{'userId':_0x3f586c});_0x12bc8a['_insertChild'](_0x11b361['offset'],_0x3a95a7);}['_handleMoveOperation'](_0x211e3a){(_0x211e3a=this['_cloneOperation'](_0x211e3a,this['_idsRoots']))['_execute']();const _0x2a6d37=null===_0x211e3a['_authorId']?null:_0x211e3a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3cbb77=_0x211e3a['getMovedRangeStart'](),_0x28693f=_0x3cbb77['parent'],_0x1c4b84=_0x3cbb77['offset'];!function _0x47c26a(_0x98cb54,_0x4ad1fd,_0x405f25,_0x3e25fa){for(let _0x5c377e=_0x405f25;_0x5c377e<_0x3e25fa;_0x5c377e++){const _0x126b27=_0x4ad1fd['getChild'](_0x5c377e);_0x126b27['is']('element','$text')?_0x98cb54['set'](_0x126b27['getAttribute']('vid'),{'userId':_0x2a6d37}):(_0x98cb54['set'](_0x126b27['getAttribute']('vid_start'),{'userId':_0x2a6d37}),_0x47c26a(_0x98cb54,_0x126b27,0x0,_0x126b27['childCount']),_0x98cb54['set'](_0x126b27['getAttribute']('vid_end'),{'userId':_0x2a6d37}));}}(this['_touched'],_0x28693f,_0x1c4b84,_0x1c4b84+_0x211e3a['howMany']);}['_handleMergeOperation'](_0x560970){const _0xa3b36f=null===(_0x560970=this['_cloneOperation'](_0x560970,this['_idsRoots']))['_authorId']?null:_0x560970['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x332a0a=_0x560970['targetPosition']['parent'],_0x2c3965=_0x560970['sourcePosition']['parent'],_0x2e7ee7=_0x332a0a['getAttribute']('vid_end'),_0x29fee7=_0x2c3965['getAttribute']('vid_start');_0x332a0a['_setAttribute']('vid_end',_0x2c3965['getAttribute']('vid_end')),_0x2c3965['_setAttribute']('vid_end',_0x2e7ee7),this['_touched']['set'](_0x29fee7,{'userId':_0xa3b36f}),this['_touched']['set'](_0x2e7ee7,{'userId':_0xa3b36f}),_0x560970['_execute']();}['_handleSplitOperation'](_0x549ae1){const _0x2ce161=null===(_0x549ae1=this['_cloneOperation'](_0x549ae1,this['_idsRoots']))['_authorId']?null:_0x549ae1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c8d7a=_0x549ae1['graveyardPosition'],_0x3d0642=_0x549ae1['splitPosition']['parent'];_0x549ae1['_execute']();const _0x2e6ceb=_0x3d0642['getAttribute']('vid_end'),_0x5d401d=_0x549ae1['insertionPosition']['nodeAfter'];if(_0x4c8d7a){const _0xe9ef9c=_0x5d401d['getAttribute']('vid_end'),_0x838c41=_0x3d0642['getAttribute']('vid_end');_0x3d0642['_setAttribute']('vid_end',_0xe9ef9c),_0x5d401d['_setAttribute']('vid_end',_0x838c41),this['_touched']['set'](_0x3d0642['getAttribute']('vid_end'),{'userId':_0x2ce161}),this['_touched']['set'](_0x5d401d['getAttribute']('vid_start'),{'userId':_0x2ce161});}else{const _0x3bdbfe=this['_revisionId']++,_0x301f60=this['_revisionId']++;_0x3d0642['_setAttribute']('vid_end',_0x3bdbfe),_0x5d401d['_setAttribute']('vid_start',_0x301f60),_0x5d401d['_setAttribute']('vid_end',_0x2e6ceb),this['_touched']['set'](_0x3bdbfe,{'userId':_0x2ce161}),this['_touched']['set'](_0x301f60,{'userId':_0x2ce161});}}['_handleMarkerOperation'](_0x4817b4){if(!_0x4817b4['affectsData'])return;const _0x46d3dd=(_0x4817b4=this['_cloneOperation'](_0x4817b4,this['_diffRoots']))['oldRange']?_0x4817b4['oldRange']['root']:null,_0x8c9ce9=_0x4817b4['newRange']?_0x4817b4['newRange']['root']:null;_0x46d3dd&&this['_markers']['delete'](_0x4817b4['name']),_0x8c9ce9&&this['_markers']['set'](_0x4817b4['name'],_0x4817b4['newRange']['clone']());const _0x5160a5=null===_0x4817b4['_authorId']?null:_0x4817b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x270aeb=_0x4817b4['name'];if(!this['_touchedMarkers']['has'](_0x270aeb))return void this['_touchedMarkers']['set'](_0x270aeb,{'range':_0x4817b4['oldRange'],'userId':_0x5160a5});const _0x3ccd7a=this['_touchedMarkers']['get'](_0x270aeb),_0x461d89=_0x3ccd7a['range'],_0x4e3f27=_0x4817b4['newRange'];null==_0x461d89&&null==_0x4e3f27||_0x461d89&&_0x4e3f27&&_0x461d89['isEqual'](_0x4e3f27)?this['_touchedMarkers']['delete'](_0x4817b4['name']):_0x3ccd7a['userId']=_0x5160a5;}['_handleRootOperation'](_0x8fa6d9,_0x1559ab){this['_diffRoots']['has'](_0x8fa6d9['rootName'])?this['_diffRoots']['get'](_0x8fa6d9['rootName'])['_isAttached']=_0x8fa6d9['isAdd']:(this['_diffRoots']['set'](_0x8fa6d9['rootName'],B(_0x8fa6d9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8fa6d9['rootName'],{}),_0x1559ab&&this['_idsRoots']['set'](_0x8fa6d9['rootName'],B(_0x8fa6d9['rootName'],!0x0)));const _0x39c03b=null===_0x8fa6d9['_authorId']?null:_0x8fa6d9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5081bc=this['_touchedRoots']['get'](_0x8fa6d9['rootName']);_0x5081bc&&_0x5081bc['userId']===_0x39c03b?this['_touchedRoots']['delete'](_0x8fa6d9['rootName']):this['_touchedRoots']['set'](_0x8fa6d9['rootName'],{'userId':_0x39c03b,'isAttached':_0x8fa6d9['isAdd']});}['_handleRootAttributeOperation'](_0x33a4ef){const _0x59c90b=this['_diffRootsAttributes']['get'](_0x33a4ef['root']['rootName']);null===_0x33a4ef['newValue']?delete _0x59c90b[_0x33a4ef['key']]:_0x59c90b[_0x33a4ef['key']]=_0x33a4ef['newValue'];}}function F(_0x3f1afc){const _0x19e69b=B(_0x3f1afc['rootName'],_0x3f1afc['isAttached']());for(const _0x268c4b of _0x3f1afc['getChildren']()){const _0x8b6cab=_0x268c4b['_clone'](!0x0);_0x19e69b['_appendChild'](_0x8b6cab);}return _0x19e69b;}function B(_0x880c91,_0x58beb9=!0x0){const _0x569551=new wt();return _0x569551['rootName']=_0x880c91,_0x569551['_isAttached']=_0x58beb9,_0x569551['isAttached']=()=>_0x569551['_isAttached'],_0x569551;}function J(_0x177f07,_0x54c978,_0x3050c0){const _0xf1a7c2='elementEnd'==_0x177f07['type']?_0x3050c0['createPositionAt'](_0x177f07['item'],'end'):_0x3050c0['createPositionBefore'](_0x177f07['item']);return _0x3050c0['createPositionFromPath'](_0x54c978,_0xf1a7c2['path'],_0xf1a7c2['stickiness']);}function q(_0x8691a0,_0x2a3171,_0x51af61){const _0x62b00e='elementStart'==_0x8691a0['type']?_0x51af61['createPositionAt'](_0x8691a0['item'],0x0):_0x51af61['createPositionAfter'](_0x8691a0['item']);return _0x51af61['createPositionFromPath'](_0x2a3171,_0x62b00e['path'],_0x62b00e['stickiness']);}class ns extends _0x52b1f5{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3ca695,_0x439875){super(_0x3ca695),this['focusTracker']=new _0x9bb3eb(),this['keystrokes']=new _0x1b5681(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x439875),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'](),_0x48be9e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x18910f=_0x4214ce=>_0x4214ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18910f),this['keystrokes']['set']('arrowleft',_0x18910f),this['keystrokes']['set']('arrowup',_0x18910f),this['keystrokes']['set']('arrowdown',_0x18910f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x42dd2a){this['revisionNameInputView']['fieldView']['element']['value']=_0x42dd2a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x34c37b){const _0x1d77df=new at(this['locale'],_0x520970),_0x102c96=_0x1d77df['fieldView'];_0x102c96['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xf6bb27=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x34c37b&&(_0xf6bb27+='\x20('+R(this['locale'],'optional')+')'),(_0x1d77df['label']=_0xf6bb27,_0x102c96['on']('input',()=>{this['revisionNameInputValue']=_0x102c96['element']['value']['trim']();}),_0x1d77df);}}class u extends _0x4632d0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5cbc8f=this['editor'],_0x55a32d=_0x5cbc8f['plugins']['get']('RevisionTracker');_0x5cbc8f['ui']['componentFactory']['add']('revisionHistory',_0x25bdae=>{const _0x2739eb=_0x119c84(_0x25bdae),_0x2ac276=_0x2739eb['panelView']['children'],_0x4a09f9=new te(_0x25bdae),_0x484ece=new _0x54fe30(_0x25bdae),_0x27c6b4=new _0x36250d(_0x25bdae),_0x2d9434=new _0x54fe30(_0x25bdae),_0x4573b2=new _0x36250d(_0x25bdae);return _0x2739eb['bind']('isEnabled')['to'](_0x55a32d,'isReady',_0x55a32d,'isEnabled',_0x5cbc8f,'isReadOnly',(_0x4fb7f4,_0x395909,_0x4c0ef4)=>_0x4fb7f4&&_0x395909&&!_0x4c0ef4),_0x2739eb['buttonView']['set']({'icon':_0x535503['history'],'label':R(_0x25bdae,'Revision\x20history'),'tooltip':!0x0}),_0x27c6b4['set']({'label':R(_0x25bdae,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x27c6b4['bind']('isEnabled')['to'](_0x55a32d,'isReady',_0x55a32d,'isEnabled',_0x5cbc8f,'isReadOnly',(_0x33e814,_0x55842c,_0x46652f)=>_0x33e814&&_0x55842c&&!_0x46652f),_0x27c6b4['on']('execute',()=>this['_showDialog']()),_0x4573b2['set']({'label':R(_0x25bdae,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4573b2['bind']('isEnabled')['to'](_0x55a32d,'isReady',_0x5cbc8f,'isReadOnly',(_0x307ecb,_0x337bcf)=>_0x307ecb&&!_0x337bcf),_0x4573b2['on']('execute',()=>{_0x5cbc8f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2739eb['isOpen']=!0x1,_0x5cbc8f['editing']['view']['focus']();}),_0x484ece['children']['add'](_0x27c6b4),_0x2d9434['children']['add'](_0x4573b2),_0x4a09f9['role']='menu',_0x4a09f9['items']['addMany']([_0x484ece,_0x2d9434]),_0x2ac276['add'](_0x4a09f9),_0x2739eb;}),_0x5cbc8f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x399de1=this['editor'],_0x23caf9=_0x399de1['locale'],_0x44a264=new _0x1f1e67(_0x23caf9),_0x3443ec=new _0x576da8(_0x23caf9);_0x44a264['buttonView']['set']({'icon':_0x535503['history'],'label':R(_0x23caf9,'Revision\x20history')});const _0x1bdc76=new _0x3845b0(_0x23caf9,_0x44a264),_0x59f6ad=new _0x51aa12(_0x23caf9);_0x59f6ad['set']({'label':R(_0x23caf9,'Save\x20current\x20revision')}),_0x59f6ad['delegate']('execute')['to'](_0x44a264),_0x59f6ad['on']('execute',()=>{this['_showDialog']();}),_0x1bdc76['children']['add'](_0x59f6ad),_0x3443ec['items']['add'](_0x1bdc76);const _0x2c526d=new _0x3845b0(_0x23caf9,_0x44a264),_0x3dc1c3=new _0x51aa12(_0x23caf9);return _0x3dc1c3['set']({'label':R(_0x23caf9,'Open\x20revision\x20history')}),_0x3dc1c3['delegate']('execute')['to'](_0x44a264),_0x3dc1c3['on']('execute',()=>{_0x399de1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2c526d['children']['add'](_0x3dc1c3),_0x3443ec['items']['add'](_0x2c526d),_0x44a264['panelView']['children']['add'](_0x3443ec),_0x44a264;}['_showDialog'](){const _0x491d0c=this['editor'],_0x5b7218=_0x491d0c['locale'],_0x28c399=_0x491d0c['plugins']['get']('Dialog'),_0x455c4e=_0x491d0c['plugins']['get']('RevisionTracker');function _0x117f8e(_0x557a44){_0x491d0c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x557a44['revisionName']?_0x557a44['revisionNameInputView']['errorText']=R(_0x5b7218,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x491d0c['plugins']['get'](l)['saveRevision']({'name':_0x557a44['revisionName']}),_0x28c399['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x117f8e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x28c399['show']({'id':'revisionSave','title':R(_0x5b7218,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x491d0c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x28c399['hide']()},{'label':R(_0x491d0c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4b4ea2){_0x4b4ea2['bind']('isEnabled')['to'](_0x455c4e,'isReady',_0x455c4e,'isEnabled',_0x491d0c,'isReadOnly',(_0x4935b4,_0x24f600,_0x4f6c89)=>_0x4935b4&&_0x24f600&&!_0x4f6c89);},'onExecute':()=>_0x117f8e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2ed912=this['editor'],_0x1aad6f=_0x2ed912['locale'];this['_saveRevisionFormView']=new ns(_0x1aad6f,_0x2ed912['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x52b1f5{['changeId'];['_model'];constructor(_0x35dec2,_0x612eb3){super(_0x35dec2),this['_model']=_0x612eb3,this['changeId']=_0x612eb3['id'];const _0x30b707=this['bindTemplate'],_0xb87f96=R(_0x35dec2,_0x612eb3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x612eb3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x612eb3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30b707['to']('type',_0xb7f1a2=>'ck-revision-change__'+_0xb7f1a2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xb87f96}]},{'text':'\x20'+_0x612eb3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2f855c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xbee6cb){super(),this['id']=_0xbee6cb['id']||_0x152f7f(),this['author']=_0xbee6cb['author'],this['type']=_0xbee6cb['type'],this['data']=_0xbee6cb['data']||{},this['rootName']=_0xbee6cb['rootName'],this['set']('createdAt',_0xbee6cb['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4747b4,_0x4fd65f){this['newRevisionId']=_0x4747b4,this['oldRevisionId']=_0x4fd65f,this['changes']=new _0x55c105();}['_setChanges'](_0xcf7106){for(const _0x176553 of _0xcf7106)this['changes']['add'](_0x176553);}}const Z={'c':_0x471041,'a':_0xe030e4,'e':_0x473571,'r':_0x41ad37,'u':_0x478289};class d extends _0x4632d0{['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[_0x31bb84,_0x162a1c,j];}constructor(_0x3407fc){super(_0x3407fc),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',(_0x5b1049,_0x15d690,_0x45f062)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5ebbb5=>{for(const _0x3bc212 of this['editor']['editing']['view']['document']['roots'])_0x45f062?_0x5ebbb5['removeClass']('ck-editor__editable__overlay',_0x3bc212):_0x5ebbb5['addClass']('ck-editor__editable__overlay',_0x3bc212);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x591305=>null!==_0x591305),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b99e2,_0x561848,_0x441acb)=>_0x2b99e2&&_0x441acb?_0x561848['changes']['getIndex'](_0x441acb):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xbdf72f,_0x1e7044)=>_0xbdf72f?_0x1e7044['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x162a1c);}['init'](){const _0xbdab20=this['editor'],_0x4e348e=new bt(_0xbdab20,{'direction':'backward'}),_0x2b52af=new bt(_0xbdab20,{'direction':'forward'});(_0xbdab20['commands']['add']('showPreviousChange',_0x4e348e),_0xbdab20['commands']['add']('showNextChange',_0x2b52af),_0xbdab20['commands']['add']('restoreRevision',new yt(_0xbdab20)),this['on']('change:numberOfChanges',()=>{_0x4e348e['refresh'](),_0x2b52af['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xbdab20['enableReadOnlyMode']('revision-viewer'),_0xbdab20['plugins']['has']('WidgetToolbarRepository'))&&_0xbdab20['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1273ff){await this['loadRevisionData'](_0x1273ff);const _0x4769b7={};for(const _0x1f86da in _0x1273ff['diffData']){if(_0x1273ff['diffData'][_0x1f86da]['attachChange']&&!_0x1273ff['diffData'][_0x1f86da]['attachChange']['isAttached'])continue;const _0x52ccae=this['_removeRevisionMarkers'](JSON['parse'](_0x1273ff['diffData'][_0x1f86da]['insertions'])),_0x203ea6=this['editor']['editing']['view']['document'],_0x110fde=new _0x46f024(_0x203ea6,_0x52ccae['map'](_0x2b1a44=>this['_getViewObj'](_0x2b1a44)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4769b7[_0x1f86da]=this['editor']['data']['processor']['toData'](_0x110fde),this['editor']['data']['processor']['useFillerType']('default');}return _0x4769b7;}async['getRevisionRootsAttributes'](_0x2ab17f){await this['loadRevisionData'](_0x2ab17f);const _0x29b2e5={};for(const _0x3bef5d in _0x2ab17f['diffData'])_0x2ab17f['diffData'][_0x3bef5d]['attachChange']&&!_0x2ab17f['diffData'][_0x3bef5d]['attachChange']['isAttached']||(_0x29b2e5[_0x3bef5d]=_0x2ab17f['diffData'][_0x3bef5d]['attributesAfter']||{});return _0x29b2e5;}['_removeRevisionMarkers'](_0x1688c7){return(_0x1688c7=_0x1688c7['filter'](_0x17c9ce=>!_0x17c9ce['name']||'revision-start'!==_0x17c9ce['name']&&'revision-end'!==_0x17c9ce['name']))['forEach'](_0x5752ef=>{'string'!=typeof _0x5752ef&&(_0x5752ef['children']=this['_removeRevisionMarkers'](_0x5752ef['children']),_0x5752ef['attributes']=_0x5752ef['attributes']['filter'](_0x1a5377=>!_0x1a5377[0x0]['startsWith']('data-revision-')));}),_0x1688c7;}async['compare'](_0x5666a3,_0x3b0cdb,_0xa91092=!0x1){if(!this['isEnabled'])return;const _0x505195=this['diff'],_0x238d02=this['repository'],_0x45d7e2='string'==typeof _0x5666a3?_0x238d02['getRevision'](_0x5666a3):_0x5666a3,_0x31ff9c='string'==typeof _0x3b0cdb?_0x238d02['getRevision'](_0x3b0cdb):_0x3b0cdb,_0x62fb85=_0x45d7e2['id'],_0x52ff01=_0x31ff9c?_0x31ff9c['id']:null;if(!_0xa91092&&this['diff']&&this['diff']['newRevisionId']===_0x62fb85&&this['diff']['oldRevisionId']===_0x52ff01)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x62fb85,_0x52ff01);const _0xe6e9b3=this['_getRevisionsRange'](_0x45d7e2,_0x31ff9c,!0x0)['map'](_0x17d074=>this['loadRevisionData'](_0x17d074));return _0xe6e9b3['push'](new Promise(_0x4a34e4=>{setTimeout(_0x4a34e4,0x14);})),Promise['all'](_0xe6e9b3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52cbec=this['_getDiff'](_0x62fb85,_0x52ff01);for(const _0x2d792e of _0x52cbec['changes'])this['_changeIdToChange']['set'](_0x2d792e['id'],_0x2d792e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x462392=>{for(const _0x11475a of this['editor']['model']['document']['getRootNames']())_0x462392['detachRoot'](_0x11475a);for(const _0x33a823 of Object['keys'](_0x52cbec['model'])){const _0x53db9e=_0x462392['addRoot'](_0x33a823);for(const _0x245902 of Object['keys'](_0x52cbec['attributes'][_0x33a823]))_0x462392['setAttribute'](_0x245902,_0x52cbec['attributes'][_0x33a823][_0x245902],_0x53db9e);_0x462392['insert'](_0x52cbec['model'][_0x33a823],_0x53db9e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52cbec['changes'])),this['isReady']=!0x0;})['catch'](_0x5f1887=>{console['error'](_0x5f1887),this['_cleanUp'](),_0x505195&&(this['diff']=_0x505195),this['isReady']=!0x0;});}['addRevisionData'](_0x4ec875,_0x55b683){const _0xe5e226=this['repository']['createRevision'](_0x4ec875);return _0xe5e226['on']('_update',(_0x1b5e29,_0x5a3b71,_0xc17ef7)=>_0x55b683(_0x5a3b71,_0xc17ef7,_0xe5e226)),this['repository']['addRevision'](_0xe5e226),_0xe5e226;}['loadRevisionData'](_0x218682){if(!_0x218682||_0x218682['diffData'])return Promise['resolve']();{const _0x50a5c3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x50a5c3,'revisionId':_0x218682['id']})['then'](_0x110894=>{_0x218682['_update']({'diffData':_0x110894['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},_0xc6f4cb=>{for(const _0x311851 of this['editor']['model']['document']['getRootNames']())_0xc6f4cb['detachRoot'](_0x311851);});}['_sortAndFilterDiffChanges'](_0x14a75a){const _0x26b998=[],_0x279bc6=new Map();for(const _0x6837d of this['editor']['model']['document']['getRootNames']()){const _0x121e0e=this['editor']['editing']['view']['getDomRoot'](_0x6837d);if(!_0x121e0e)continue;const _0x58a643=_0x121e0e['getClientRects']()['item'](0x0);_0x58a643&&(_0x26b998['push'](_0x6837d),_0x279bc6['set'](_0x6837d,_0x58a643));}return _0x26b998['sort']((_0x5cc96f,_0xf0902b)=>{const _0x5be4cf=_0x279bc6['get'](_0x5cc96f),_0x5b8b0a=_0x279bc6['get'](_0xf0902b);return _0x5be4cf['y']-_0x5b8b0a['y']||_0x5be4cf['x']-_0x5b8b0a['x'];}),(_0x14a75a=_0x14a75a['filter'](_0x263f80=>_0x26b998['includes'](_0x263f80['rootName'])))['sort']((_0x966ff4,_0xeb04d)=>_0x26b998['indexOf'](_0x966ff4['rootName'])-_0x26b998['indexOf'](_0xeb04d['rootName'])),_0x14a75a;}['_makeTape'](_0x586905){const _0x23cfd3=Array['from'](_0x586905['markers'])['filter'](([_0x5389ad,_0x42df24])=>_0x5389ad['startsWith']('revision:')&&!_0x42df24['isCollapsed']),_0x11d34d=Array['from'](this['editor']['model']['createRangeIn'](_0x586905)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x23cfd3['length'])for(const _0x5ac96f of _0x11d34d){const [_0x46a98f,_0x40b73b]=_0x23cfd3[0x0],[,_0x48da9e,_0xded59a]=_0x46a98f['split'](':');if(_0x40b73b['end']['isEqual'](_0x5ac96f['nextPosition'])&&_0x23cfd3['shift'](),(_0x5ac96f['previousPosition']['isEqual'](_0x40b73b['start'])||_0x5ac96f['previousPosition']['isAfter'](_0x40b73b['start']))&&('insertion'==_0x48da9e?_0x5ac96f['isAdded']={'userId':_0xded59a}:'deletion'==_0x48da9e&&(_0x5ac96f['isRemoved']={'userId':_0xded59a})),0x0==_0x23cfd3['length'])break;}return _0x11d34d;}['_refreshStartEndIndex'](_0x11135b){const _0xf3a168=new Map();for(let _0x4c5ef8=0x0;_0x4c5ef8<_0x11135b['length'];_0x4c5ef8++)'text'===_0x11135b[_0x4c5ef8]['type']?(_0x11135b[_0x4c5ef8]['item']['startIndex']=_0x4c5ef8,_0x11135b[_0x4c5ef8]['item']['endIndex']=_0x4c5ef8):('elementStart'===_0x11135b[_0x4c5ef8]['type']?_0x11135b[_0x4c5ef8]['item']['startIndex']=_0x4c5ef8:'elementEnd'===_0x11135b[_0x4c5ef8]['type']&&(_0x11135b[_0x4c5ef8]['item']['endIndex']=_0x4c5ef8),_0xf3a168['set'](_0x11135b[_0x4c5ef8]['id'],_0x4c5ef8));for(const _0x57d5af of _0xf3a168['values']())'elementStart'===_0x11135b[_0x57d5af]['type']?_0x11135b[_0x57d5af]['item']['endIndex']=_0xf3a168['get'](_0x11135b[_0x57d5af]['pairId']):'elementEnd'===_0x11135b[_0x57d5af]['type']&&(_0x11135b[_0x57d5af]['item']['startIndex']=_0xf3a168['get'](_0x11135b[_0x57d5af]['pairId']));}['_processTape'](_0x31ddd8){for(let _0x51832f=0x0;_0x51832f<_0x31ddd8['length'];_0x51832f++){if('elementStart'===_0x31ddd8[_0x51832f]['type'])_0x31ddd8[_0x51832f]['item']['startIndex']=_0x51832f;else{if('elementEnd'===_0x31ddd8[_0x51832f]['type']){_0x31ddd8[_0x51832f]['item']['endIndex']=_0x51832f;const _0x9a8d95=_0x31ddd8[_0x51832f]['item']['startIndex'];_0x31ddd8[_0x9a8d95]['pairId']=_0x31ddd8[_0x51832f]['id'],_0x31ddd8[_0x51832f]['pairId']=_0x31ddd8[_0x9a8d95]['id'];}else _0x31ddd8[_0x51832f]['item']['startIndex']=_0x51832f,_0x31ddd8[_0x51832f]['item']['endIndex']=_0x51832f,_0x31ddd8[_0x51832f]['pairId']=null;}_0x31ddd8[_0x51832f]['markersStart']||(_0x31ddd8[_0x51832f]['markersStart']=[],_0x31ddd8[_0x51832f]['markersEnd']=[]);}}['_markInsertions'](_0x1c1da0,_0x5c5006){const _0x471c71=_0x1c1da0['filter'](_0x24f72e=>!_0x24f72e['isAdded']);for(let _0xa5dd48=0x0;_0xa5dd48<_0x5c5006['length'];_0xa5dd48++)_0x5c5006[_0xa5dd48]['isAdded']&&(_0x471c71[_0xa5dd48]['isAdded']=_0x5c5006[_0xa5dd48]['isAdded']);}['_makeModelFromViewString'](_0x20f479){const _0x13058a=JSON['parse'](_0x20f479),_0x213a00=this['editor']['editing']['view']['document'],_0x184446=new _0x46f024(_0x213a00,_0x13058a['map'](_0x1e594a=>this['_getViewObj'](_0x1e594a)));return this['editor']['data']['toModel'](_0x184446);}['_getViewObj'](_0x15746b){const _0xa5f139=this['editor']['editing']['view']['document'];if('string'==typeof _0x15746b)return new _0x441ee8(_0xa5f139,_0x15746b);{const _0x155aaf=_0x15746b['children']['map'](_0x445196=>this['_getViewObj'](_0x445196));return new(Z[_0x15746b['type']]||_0x194c7d)(_0xa5f139,_0x15746b['name'],_0x15746b['attributes'],_0x155aaf);}}['_getDiff'](_0x2e029d,_0xd050c=null){const _0x4b4e4d=this['repository']['getRevision'](_0x2e029d),_0xa791eb=_0xd050c?this['repository']['getRevision'](_0xd050c):null,_0x7f8e33=this['_getRevisionsRange'](_0x4b4e4d,_0xa791eb),_0x561bfc=_0x7f8e33[_0x7f8e33['length']-0x1],_0x37ad22=new Map(),_0x49bd46={'model':{},'attributes':{},'changes':[]},_0x2428f8=new Set(),_0x5a8305=new Map();for(let _0x5e4bb1=_0x7f8e33['length']-0x1;_0x5e4bb1>=0x0;_0x5e4bb1--){const _0x39dd42=_0x7f8e33[_0x5e4bb1];for(const _0x14002e of Object['keys'](_0x39dd42['diffData']))if(_0x39dd42['diffData'][_0x14002e]['attachChange']){const _0x4a6f91=_0x39dd42['diffData'][_0x14002e]['attachChange'];_0x4a6f91['isAttached']?(_0x2428f8['add'](_0x14002e),_0x5a8305['has'](_0x14002e)&&_0x5a8305['get'](_0x14002e)['userId']==_0x4a6f91['userId']?_0x5a8305['delete'](_0x14002e):_0x5a8305['set'](_0x14002e,_0x4a6f91)):_0x5a8305['has'](_0x14002e)?(_0x2428f8['delete'](_0x14002e),_0x5a8305['delete'](_0x14002e)):(_0x2428f8['add'](_0x14002e),_0x5a8305['set'](_0x14002e,_0x4a6f91));}else _0x2428f8['add'](_0x14002e);}for(const _0x942567 of _0x2428f8){const _0x11a11a=_0x5a8305['has'](_0x942567)&&!_0x5a8305['get'](_0x942567)['isAttached'];let _0x3caa69=_0x11a11a?_0x7f8e33['length']-0x1:0x0;const _0x3dbeec=_0x11a11a?-0x1:0x1;for(;_0x7f8e33[_0x3caa69];){const _0x3b47b8=_0x7f8e33[_0x3caa69];if(_0x3b47b8['diffData'][_0x942567]){const _0x531fc9=_0x11a11a?_0x3b47b8['diffData'][_0x942567]['attributesBefore']:_0x3b47b8['diffData'][_0x942567]['attributesAfter'];_0x49bd46['attributes'][_0x942567]=_0x531fc9?_0x4839cc(_0x531fc9):{};break;}_0x3caa69+=_0x3dbeec;}}for(const _0x4c970e of _0x7f8e33){_0x4c970e['model']={};for(const _0x41aa12 of _0x4c970e['authors'])_0x37ad22['set'](_0x41aa12['id'],_0x41aa12);for(const _0x5d0d6f of _0x2428f8){const _0x315341=_0x4c970e['diffData'][_0x5d0d6f]?_0x4c970e['diffData'][_0x5d0d6f]['insertions']:'[]',_0x3536dd=_0x4c970e['diffData'][_0x5d0d6f]?_0x4c970e['diffData'][_0x5d0d6f]['deletions']:'[]';_0x4c970e['model'][_0x5d0d6f]={'insertions':this['_makeModelFromViewString'](_0x315341),'deletions':this['_makeModelFromViewString'](_0x3536dd)};}}for(const _0x34d6cb of _0x2428f8){let _0x12f61b=null,_0x375c40=0x0;const _0x4d8ac6=new Map(Array['from'](_0x4b4e4d['model'][_0x34d6cb]['insertions']['markers'])['filter'](([_0x370bbe])=>!_0x370bbe['startsWith']('revision:')));let _0x4ed278=0x0;for(const _0xbb4689 of _0x7f8e33){const _0xdb7995=this['_makeTape'](_0xbb4689['model'][_0x34d6cb]['insertions']);_0xbb4689==_0x4b4e4d?(_0x12f61b=_0xdb7995,_0x375c40=_0x12f61b['length'],_0x12f61b['forEach'](_0x5788d9=>{_0x5788d9['id']=_0x4ed278++;}),this['_processTape'](_0x12f61b)):this['_markInsertions'](_0x12f61b,_0xdb7995);const _0x3742ff=_0x12f61b['filter'](_0x46a10b=>!_0x46a10b['isAdded'])['map'](_0x2a9ba7=>_0x2a9ba7['id']);let _0x26c265=0x0;const _0x22e6b8=this['_makeTape'](_0xbb4689['model'][_0x34d6cb]['deletions']);_0x22e6b8['forEach'](_0x96d994=>{_0x96d994['isRemoved']?_0x96d994['id']=_0x375c40++:_0x96d994['id']=_0x3742ff[_0x26c265++];}),this['_processTape'](_0x22e6b8),this['_setDistance'](_0x12f61b,'isAdded'),this['_setDistance'](_0x22e6b8,'isRemoved'),_0xbb4689==_0x4b4e4d&&this['_markMarkers'](_0x12f61b,_0x4d8ac6),_0x12f61b=this['_joinTapes'](_0x12f61b,_0x22e6b8),this['_refreshStartEndIndex'](_0x12f61b),this['_setDistance'](_0x12f61b,'isRemoved');}_0x12f61b=_0x12f61b['filter'](_0x3061fd=>!(_0x3061fd['isAdded']&&_0x3061fd['isRemoved']));const _0x287919=new Map(_0x561bfc['model'][_0x34d6cb]['deletions']['markers']),_0x24d06b=new Set(_0x4d8ac6['keys']());for(const _0x564d39 of _0x287919['keys']())_0x24d06b['delete'](_0x564d39);this['_markSuggestions'](_0x12f61b,_0x24d06b),this['_fixObsoleteTags'](_0x12f61b),_0x12f61b=this['_removeMissingPairs'](_0x12f61b),_0x12f61b=this['_markMismatchedRemovedTags'](_0x12f61b),_0x12f61b=this['_removeUnsupportedChanges'](_0x12f61b);const {root:_0x370b27,changes:_0x42dba2}=this['_makeModelFromTape'](_0x12f61b,_0x37ad22,_0x34d6cb);_0x49bd46['model'][_0x34d6cb]=_0x370b27;const _0x5cd033=_0x5a8305['get'](_0x34d6cb);if(_0x5cd033){const _0x5c2c7f=_0x37ad22['get'](_0x5cd033['userId']),_0x4d4e7e=new r({'author':_0x5c2c7f,'type':_0x5cd033['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x34d6cb});_0x42dba2['unshift'](_0x4d4e7e),_0x49bd46['attributes'][_0x34d6cb]['revisionHistoryAttachChange']=_0x4d4e7e['id'];}_0x49bd46['changes']=_0x49bd46['changes']['concat'](_0x42dba2);}return _0x49bd46;}['_markMarkers'](_0x298636,_0x29f0ef){for(let _0x23c702=0x0;_0x23c702<_0x298636['length'];_0x23c702++)for(const [_0x59cd23,_0x20f6c5]of _0x29f0ef)_0x20f6c5['start']['isEqual'](_0x298636[_0x23c702]['previousPosition'])&&_0x298636[_0x23c702]['markersStart']['push'](_0x59cd23),_0x20f6c5['end']['isEqual'](_0x298636[_0x23c702]['nextPosition'])&&_0x298636[_0x23c702]['markersEnd']['push'](_0x59cd23);}['_joinTapes'](_0x14ef46,_0x259898){let _0x4815b9=[],_0x10b5c3=0x0,_0x33d123=0x0;for(;_0x10b5c3<_0x14ef46['length']||_0x33d123<_0x259898['length'];){const _0xc47cee=_0x14ef46[_0x10b5c3]||{},_0xf35ccd=_0x259898[_0x33d123]||{};if(_0xc47cee['id']==_0xf35ccd['id'])_0x10b5c3++,_0x33d123++,_0x4815b9['push'](_0xc47cee);else{if(_0xf35ccd['isRemoved']&&_0xc47cee['isAdded']){const {commonTape:_0x2ade31,iEnd:_0x22f786,jEnd:_0x27423b}=this['_threeWayMerge'](_0x14ef46,_0x10b5c3,_0x259898,_0x33d123);_0x4815b9=_0x4815b9['concat'](_0x2ade31),_0x10b5c3=_0x22f786,_0x33d123=_0x27423b;}else _0xf35ccd['isRemoved']?(_0x33d123++,_0x4815b9['push'](_0xf35ccd)):(_0x10b5c3++,_0x4815b9['push'](_0xc47cee));}}return _0x4815b9;}['_markSuggestions'](_0x38f169,_0x105e9d){const _0x5c9c17=[];for(let _0x195d41=0x0;_0x195d41<_0x38f169['length'];_0x195d41++){for(let _0x36f254=0x0;_0x36f254<_0x38f169[_0x195d41]['markersStart']['length'];_0x36f254++){const _0x3e4d23=_0x38f169[_0x195d41]['markersStart'][_0x36f254];if(!_0x105e9d['has'](_0x3e4d23))continue;const {group:_0x34cf8e,type:_0xb225a3,authorId:_0x340ccc}=_0x3705fc(_0x3e4d23);'revision-suggestion'!=_0x34cf8e||'insertion'!=_0xb225a3&&'deletion'!=_0xb225a3||(_0x5c9c17['unshift']({'type':_0xb225a3,'name':_0x3e4d23,'userId':_0x340ccc}),_0x38f169[_0x195d41]['markersStart']['splice'](_0x36f254,0x1),_0x36f254--);}_0x157dcf(_0x38f169[_0x195d41]);for(let _0x4ae580=0x0;_0x4ae580<_0x38f169[_0x195d41]['markersEnd']['length'];_0x4ae580++){const _0x302dea=_0x38f169[_0x195d41]['markersEnd'][_0x4ae580];if(!_0x105e9d['has'](_0x302dea))continue;const {group:_0x3dce4e,type:_0x45ea8d}=_0x3705fc(_0x302dea);if('revision-suggestion'!=_0x3dce4e||'insertion'!=_0x45ea8d&&'deletion'!=_0x45ea8d)continue;_0x38f169[_0x195d41]['markersEnd']['splice'](_0x4ae580,0x1),_0x4ae580--;const _0x56a636=_0x5c9c17['findIndex'](_0x1e243d=>_0x1e243d['name']==_0x302dea);_0x56a636>-0x1&&_0x5c9c17['splice'](_0x56a636,0x1);}}function _0x3705fc(_0x5c2e52){const _0x3e42df=_0x5c2e52['split'](':');return{'group':_0x3e42df[0x0],'type':_0x3e42df[0x1],'subType':_0x3e42df['length']>=0x5?_0x3e42df[0x2]:null,'id':_0x3e42df['length']<0x5?_0x3e42df[0x2]:_0x3e42df[0x3],'authorId':_0x3e42df['length']<0x5?_0x3e42df[0x3]:_0x3e42df[0x4],'markerCount':0x6==_0x3e42df['length']?_0x3e42df[0x5]:null};}function _0x157dcf(_0x573328){for(let _0x253f7b=0x0;_0x253f7b<_0x5c9c17['length'];_0x253f7b++){if(_0x573328['isAdded']&&'insertion'==_0x5c9c17[_0x253f7b]['type'])return _0x573328['isAddSuggestion']=_0x5c9c17[_0x253f7b],void delete _0x573328['isAdded'];if(!_0x573328['isAdded']&&!_0x573328['isRemoved']&&'deletion'==_0x5c9c17[_0x253f7b]['type'])return void(_0x573328['isRemoveSuggestion']=_0x5c9c17[_0x253f7b]);}}}['_setDistance'](_0x3373b4,_0x2300b9){let _0x5421b3=0x0,_0x5445d=!0x1;const _0x326f8c=new Map();for(const _0x460269 of _0x3373b4)_0x460269[_0x2300b9]?_0x5445d&&(_0x5421b3++,_0x5445d=!0x1):(_0x5421b3++,_0x5445d=!0x0),_0x326f8c['set'](_0x460269['id'],_0x5421b3);for(let _0x540769=0x0;_0x540769<_0x3373b4['length'];_0x540769++){if('isRemoved'==_0x2300b9&&_0x3373b4[_0x540769]['isAdded']||'isAdded'==_0x2300b9&&_0x3373b4[_0x540769]['isRemoved'])continue;if('text'==_0x3373b4[_0x540769]['type']){_0x3373b4[_0x540769]['distance']=0x0;continue;}const _0x42e02a=_0x326f8c['get'](_0x3373b4[_0x540769]['pairId']),_0x529c78=_0x326f8c['get'](_0x3373b4[_0x540769]['id']);_0x3373b4[_0x540769]['distance']=_0x42e02a-_0x529c78;}}['_getRevisionsRange'](_0x464773,_0x1f898e,_0x2cd4e9=!0x1){const _0x46b420=[];let _0x128d00=this['repository']['getIndex'](_0x464773),_0x44eaa7=this['repository']['getIndex'](_0x1f898e);for(-0x1==_0x44eaa7&&(_0x44eaa7=this['repository']['_revisions']['length'],_0x2cd4e9=!0x1);_0x128d00<_0x44eaa7;)_0x46b420['push'](this['repository']['getRevision'](_0x128d00)),_0x128d00++;return _0x2cd4e9&&_0x46b420['push'](this['repository']['getRevision'](_0x128d00)),_0x46b420;}['_threeWayMerge'](_0x5eea43,_0x2dde9b,_0x11d36b,_0x572b3b){const _0x5974db=this['editor']['model']['schema'];let _0x354482=_0x2dde9b;for(;_0x5eea43[_0x354482]&&_0x5eea43[_0x354482]['isAdded'];)_0x354482++;let _0x313d6b=_0x572b3b;for(;_0x11d36b[_0x313d6b]&&_0x11d36b[_0x313d6b]['isRemoved'];)_0x313d6b++;_0x15448c(_0x5eea43,_0x2dde9b,_0x354482),_0x15448c(_0x11d36b,_0x572b3b,_0x313d6b);const _0x9550b9=_0x11d36b['slice'](_0x572b3b,_0x313d6b)['concat'](_0x5eea43['slice'](_0x2dde9b,_0x354482));return _0x9550b9['sort']((_0x3064f1,_0x4bedb3)=>_0x3064f1['side']!=_0x4bedb3['side']?_0x3064f1['side']-_0x4bedb3['side']:_0x3064f1['level']!=_0x4bedb3['level']?_0x3064f1['level']-_0x4bedb3['level']:_0x3064f1['distance']!=_0x4bedb3['distance']?_0x4bedb3['distance']-_0x3064f1['distance']:!!_0x3064f1['isAdded']!=!!_0x4bedb3['isAdded']?-0x1==_0x3064f1['side']||0x0==_0x3064f1['side']?_0x3064f1['isAdded']?-0x1:0x1:_0x3064f1['isAdded']?0x1:-0x1:_0x3064f1['index']-_0x4bedb3['index']),{'commonTape':_0x9550b9,'iEnd':_0x354482,'jEnd':_0x313d6b};function _0x15448c(_0x213aeb,_0x37aa10,_0x2b4462){let _0x4a5633=-0x1,_0x2f21ed=Number['POSITIVE_INFINITY'],_0xffad6a=!0x0;for(let _0x1d63bc=_0x37aa10;_0x1d63bc<_0x2b4462;_0x1d63bc++)if(_0x5974db['isInline'](_0x213aeb[_0x1d63bc]['item'])||(_0xffad6a=!0x1),_0x213aeb[_0x1d63bc]['item']['startIndex']<_0x37aa10&&(_0x4a5633=_0x1d63bc),_0x213aeb[_0x1d63bc]['item']['endIndex']>=_0x2b4462){_0x2f21ed=_0x1d63bc;break;}_0xffad6a&&(_0x4a5633=_0x2b4462-0x1);for(let _0x2eca58=_0x37aa10;_0x2eca58<_0x2b4462;_0x2eca58++)_0x213aeb[_0x2eca58]['side']=_0x2eca58<=_0x4a5633?-0x1:_0x2eca58<_0x2f21ed?0x0:0x1,_0x213aeb[_0x2eca58]['index']=_0x2eca58;let _0x5b746b=0x0;for(let _0x1061fe=_0x37aa10;_0x1061fe<=_0x4a5633;_0x1061fe++)0x0==_0x213aeb[_0x1061fe]['distance']?_0x213aeb[_0x1061fe]['level']=_0x5b746b:(_0x5b746b++,_0x213aeb[_0x1061fe]['level']=_0x5b746b,_0x5b746b++);for(let _0x314674=_0x37aa10;_0x314674<_0x2b4462;_0x314674++)0x0==_0x213aeb[_0x314674]['side']&&(_0x213aeb[_0x314674]['level']=_0x5b746b);_0x5b746b=0x0;for(let _0xf08de4=_0x2b4462-0x1;_0xf08de4>=_0x2f21ed;_0xf08de4--)0x0==_0x213aeb[_0xf08de4]['distance']?_0x213aeb[_0xf08de4]['level']=_0x5b746b:(_0x5b746b--,_0x213aeb[_0xf08de4]['level']=_0x5b746b,_0x5b746b--);}}['_fixObsoleteTags'](_0x76e55a){const _0x4c8741=new Map(),_0x204edc=this['editor']['model']['schema'];for(let _0x45b262=0x1;_0x45b262<_0x76e55a['length'];_0x45b262++){let _0x373bdb,_0x32ec4c,_0x5e90f4;const _0x11c3c4=_0x76e55a[_0x45b262],_0x879093=_0x76e55a[_0x45b262-0x1];if('text'==_0x11c3c4['type'])continue;if(_0x11c3c4['type']!=_0x879093['type'])continue;if(!_0x204edc['isBlock'](_0x879093['item'])||_0x204edc['isLimit'](_0x879093['item']))continue;if(!_0x204edc['isBlock'](_0x11c3c4['item'])||_0x204edc['isLimit'](_0x11c3c4['item']))continue;if((_0x76e55a[_0x45b262]['isAdded']||_0x76e55a[_0x45b262]['isAddSuggestion'])&&_0x76e55a[_0x45b262-0x1]['isRemoved'])_0x373bdb=_0x76e55a[_0x45b262],_0x32ec4c=_0x76e55a[_0x45b262-0x1],_0x5e90f4=_0x45b262-0x1;else{if(!_0x76e55a[_0x45b262]['isRemoved']||!_0x76e55a[_0x45b262-0x1]['isAdded']&&!_0x76e55a[_0x45b262-0x1]['isAddSuggestion'])continue;_0x373bdb=_0x76e55a[_0x45b262-0x1],_0x32ec4c=_0x76e55a[_0x45b262],_0x5e90f4=_0x45b262;}const _0x2d72c2=_0x373bdb['level']==_0x32ec4c['level'],_0x2ce484=Math['abs'](_0x373bdb['level'])<Math['abs'](_0x32ec4c['level'])&&0x0==_0x32ec4c['distance'];(_0x2d72c2||_0x2ce484)&&(_0x4c8741['set'](_0x32ec4c['id'],_0x373bdb['id']),_0x76e55a['splice'](_0x5e90f4,0x1),_0x45b262--,_0x373bdb['isAdded']=!0x1);}for(let _0x222e4b=0x0;_0x222e4b<_0x76e55a['length'];_0x222e4b++)_0x4c8741['has'](_0x76e55a[_0x222e4b]['pairId'])&&(_0x76e55a[_0x222e4b]['pairId']=_0x4c8741['get'](_0x76e55a[_0x222e4b]['pairId']));}['_removeMissingPairs'](_0x28c8e9){const _0x130a66=new Set(_0x28c8e9['map'](_0x4e38ab=>_0x4e38ab['id']));for(let _0x138e28=0x0;_0x138e28<_0x28c8e9['length'];_0x138e28++)_0x130a66['has'](_0x28c8e9[_0x138e28]['pairId'])||0x0==_0x28c8e9[_0x138e28]['distance']||(_0x28c8e9[_0x138e28]['isIncorrect']=!0x0);return _0x28c8e9['filter'](_0xd4fd8d=>!_0xd4fd8d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x478eef){const _0x3aed81=new Set();for(let _0x5ecb33=0x0;_0x5ecb33<_0x478eef['length'];_0x5ecb33++){if(_0x3aed81['has'](_0x478eef[_0x5ecb33]['id'])&&_0x478eef[_0x5ecb33]['isRemoved']&&(_0x478eef[_0x5ecb33]['isIncorrect']=!0x0),_0x478eef[_0x5ecb33]['isIncorrect'])continue;if(0x0==_0x478eef[_0x5ecb33]['distance'])continue;if('elementStart'!=_0x478eef[_0x5ecb33]['type'])continue;if(null==_0x478eef[_0x5ecb33]['pairId'])continue;let _0x4fc929=_0x5ecb33+0x1,_0x28c7ac=0x0;for(;_0x478eef[_0x4fc929]['id']!=_0x478eef[_0x5ecb33]['pairId'];)'elementStart'==_0x478eef[_0x4fc929]['type']?_0x28c7ac++:'elementEnd'==_0x478eef[_0x4fc929]['type']&&_0x28c7ac--,_0x4fc929++;if(0x0!=_0x28c7ac){if(_0x478eef[_0x5ecb33]['isRemoved'])_0x478eef[_0x5ecb33]['isIncorrect']=!0x0;else{for(;_0x4fc929!=_0x5ecb33;)_0x478eef[_0x4fc929]['isRemoved']&&0x0!=_0x478eef[_0x4fc929]['distance']&&(_0x478eef[_0x4fc929]['isIncorrect']=!0x0,_0x3aed81['add'](_0x478eef[_0x4fc929]['pairId'])),_0x4fc929--;}}}return _0x478eef['filter'](_0x17c121=>!_0x17c121['isIncorrect']);}['_removeUnsupportedChanges'](_0x58746d){const _0x3b9f1f=this['editor']['model']['schema'];for(let _0x335e07=0x0;_0x335e07<_0x58746d['length'];_0x335e07++){if(!(_0x58746d[_0x335e07]['isAdded']||_0x58746d[_0x335e07]['isAddSuggestion']||_0x58746d[_0x335e07]['isRemoved']||_0x58746d[_0x335e07]['isRemoveSuggestion']))continue;if(0x0==_0x58746d[_0x335e07]['distance'])continue;const _0x10e1bf=_0x58746d[_0x335e07]['item'];_0x3b9f1f['isBlock'](_0x10e1bf)||_0x3b9f1f['isLimit'](_0x10e1bf)||(_0x58746d[_0x335e07]['isAdded']&&delete _0x58746d[_0x335e07]['isAdded'],_0x58746d[_0x335e07]['isAddSuggestion']&&delete _0x58746d[_0x335e07]['isAddSuggestion'],_0x58746d[_0x335e07]['isRemoveSuggestion']&&delete _0x58746d[_0x335e07]['isRemoveSuggestion'],_0x58746d[_0x335e07]['isRemoved']&&(_0x58746d[_0x335e07]['isIncorrect']=!0x0));}return _0x58746d['filter'](_0x213e3f=>!_0x213e3f['isIncorrect']);}['_makeModelFromTape'](_0x30ee01,_0x2d198d,_0x24c1e3){const _0x355b65=new wt(),_0x5627aa=[],_0x1f18f1=new Map(),_0x3a3678=this['editor']['model'],_0x567e64=_0x3a3678['schema'],_0x5e028b=[_0x355b65],_0x141f7b={},_0x30a1c9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x443517=null;const _0x7f812d=[0x0];for(let _0x9ecaf2=0x0;_0x9ecaf2<_0x30ee01['length'];_0x9ecaf2++)if('elementStart'===_0x30ee01[_0x9ecaf2]['type']){_0x30ee01[_0x9ecaf2]['previousPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d);const _0x24cbaf=new ft(_0x30ee01[_0x9ecaf2]['item']['name'],_0x30ee01[_0x9ecaf2]['item']['getAttributes']());_0x5e028b[0x0]['_appendChild'](_0x24cbaf),_0x7f812d['push'](0x0),_0x5e028b['unshift'](_0x24cbaf),_0x30ee01[_0x9ecaf2]['nextPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d);}else'elementEnd'===_0x30ee01[_0x9ecaf2]['type']?(_0x5e028b['shift'](),_0x30ee01[_0x9ecaf2]['previousPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d),_0x7f812d['pop'](),_0x7f812d[_0x7f812d['length']-0x1]++,_0x30ee01[_0x9ecaf2]['nextPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d)):(_0x30ee01[_0x9ecaf2]['previousPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d),_0x443517?_0x443517['_data']+=_0x30ee01[_0x9ecaf2]['item']['data']:_0x443517=new _t(_0x30ee01[_0x9ecaf2]['item']['data'],_0x30ee01[_0x9ecaf2]['item']['getAttributes']()),_0x30ee01[_0x9ecaf2+0x1]&&'text'===_0x30ee01[_0x9ecaf2+0x1]['type']&&_0x1b5e1f(_0x443517,_0x30ee01[_0x9ecaf2+0x1]['item'])||(_0x5e028b[0x0]['_appendChild'](_0x443517),_0x443517=null),_0x7f812d[_0x7f812d['length']-0x1]+=_0x30ee01[_0x9ecaf2]['item']['offsetSize'],_0x30ee01[_0x9ecaf2]['nextPosition']=_0x3a3678['createPositionFromPath'](_0x355b65,_0x7f812d));for(let _0x25e080=0x0;_0x25e080<_0x30ee01['length'];_0x25e080++){const _0x433781=_0x30ee01[_0x25e080]['previousPosition'],_0xc2f2c7=_0x30ee01[_0x25e080]['nextPosition'];for(const _0x38901a of _0x30ee01[_0x25e080]['markersStart'])_0x1f18f1['set'](_0x38901a,{'start':_0x433781,'end':null});_0x50b164('isRemoveSuggestion',_0x25e080,_0x433781,_0xc2f2c7),_0x50b164('isAddSuggestion',_0x25e080,_0x433781,_0xc2f2c7),_0x50b164('isRemoved',_0x25e080,_0x433781,_0xc2f2c7),_0x50b164('isAdded',_0x25e080,_0x433781,_0xc2f2c7);for(const _0x5102e7 of _0x30ee01[_0x25e080]['markersEnd']){_0x1f18f1['get'](_0x5102e7)['end']=_0xc2f2c7;}}for(const [_0x12bb19,_0x28dcde]of _0x1f18f1){const _0x48eeaf=this['editor']['model']['createRange'](_0x28dcde['start'],_0x28dcde['end']);_0x355b65['markers']['set'](_0x12bb19,_0x48eeaf);}return _0x5627aa['sort']((_0x552089,_0x26dfda)=>{const _0x1ab738=_0x355b65['markers']['get']('revision:'+_0x552089['id']),_0x371f28=_0x355b65['markers']['get']('revision:'+_0x26dfda['id']);return _0x1ab738['start']['isBefore'](_0x371f28['start'])?-0x1:_0x1ab738['start']['isAfter'](_0x371f28['start'])?0x1:_0x1ab738['end']['isBefore'](_0x371f28['end'])?-0x1:_0x1ab738['end']['isAfter'](_0x371f28['end'])?0x1:'add'===_0x552089['type']?-0x1:0x1;}),{'root':_0x355b65,'changes':_0x5627aa};function _0x50b164(_0x4b8a12,_0x49ea83,_0x3485ee,_0x298792){const _0x5ee169=!!_0x30ee01[_0x49ea83][_0x4b8a12],_0x107a99=_0x5ee169?_0x30ee01[_0x49ea83][_0x4b8a12]['userId']:null,_0x2243c1=_0x49ea83===_0x30ee01['length']-0x1,_0x33fbc8=_0x30a1c9[_0x4b8a12][0x0],_0xd352b2=_0x567e64['isObject'](_0x30ee01[_0x49ea83]['item']);!_0x141f7b[_0x4b8a12]&&_0x5ee169?_0x141f7b[_0x4b8a12]={'start':_0x3485ee,'tapeItem':_0x30ee01[_0x49ea83],'userId':_0x107a99,'type':_0x4b8a12}:_0x141f7b[_0x4b8a12]&&!_0x5ee169?(_0x141f7b[_0x4b8a12]['end']=_0x3485ee,_0x573793(_0x141f7b[_0x4b8a12]),_0x141f7b[_0x4b8a12]=null):_0x141f7b[_0x4b8a12]&&_0x5ee169&&_0x141f7b[_0x4b8a12]['userId']!==_0x107a99&&(_0x141f7b[_0x4b8a12]['end']=_0x3485ee,_0x33fbc8&&_0x33fbc8['userId']===_0x141f7b[_0x4b8a12]['userId']||_0x573793(_0x141f7b[_0x4b8a12]),_0x141f7b[_0x4b8a12]={'start':_0x3485ee,'tapeItem':_0x30ee01[_0x49ea83],'userId':_0x107a99,'type':_0x4b8a12}),_0x141f7b[_0x4b8a12]&&_0xd352b2&&('elementStart'!==_0x30ee01[_0x49ea83]['type']||_0x33fbc8&&_0x33fbc8['userId']===_0x107a99||_0x30a1c9[_0x4b8a12]['unshift']({'userId':_0x107a99,'object':_0x30ee01[_0x49ea83]['item'],'change':_0x141f7b[_0x4b8a12]}),'elementEnd'===_0x30ee01[_0x49ea83]['type']&&_0x33fbc8&&_0x33fbc8['object']===_0x30ee01[_0x49ea83]['item']&&(_0x30a1c9[_0x4b8a12]['shift'](),_0x141f7b[_0x4b8a12]=_0x33fbc8['change'])),_0x141f7b[_0x4b8a12]&&_0x2243c1&&(_0x141f7b[_0x4b8a12]['end']=_0x298792,_0x573793(_0x141f7b[_0x4b8a12]),_0x141f7b[_0x4b8a12]=null);}function _0x573793({start:_0x559b54,end:_0x37e396,tapeItem:_0x3230b8,userId:_0x545433,type:_0x4f8e69}){const _0x2f01e7=_0x3230b8['item'],_0x120e61=_0x3a3678['schema']['isBlock'](_0x2f01e7)&&!_0x3a3678['schema']['isLimit'](_0x2f01e7),_0xbeee31=_0x559b54['nodeAfter']==_0x37e396['parent']&&_0x37e396['isAtStart'];if(_0x120e61&&_0xbeee31)return;const _0x1b6d0b=_0x3a3678['createRange'](_0x559b54,_0x37e396),_0x571b31=_0x2d198d['get'](_0x545433),_0x544fb4=new r({'author':_0x571b31,'type':'isAdded'==_0x4f8e69||'isAddSuggestion'==_0x4f8e69?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4f8e69||'isRemoveSuggestion'==_0x4f8e69},'createdAt':new Date(),'rootName':_0x24c1e3});_0x5627aa['push'](_0x544fb4),_0x355b65['markers']['set']('revision:'+_0x544fb4['id'],_0x1b6d0b);}function _0x1b5e1f(_0x3d8bad,_0x119742){const _0x1923b3=_0x3d8bad['getAttributes'](),_0x1b7056=_0x119742['getAttributes']();for(const _0x3c76cf of _0x1923b3){if(_0x3c76cf[0x1]!==_0x119742['getAttribute'](_0x3c76cf[0x0]))return!0x1;_0x1b7056['next']();}return _0x1b7056['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3fcb69=>{const _0x4033e9=_0x3fcb69['markerName']['split'](':')[0x1],_0x59dcfd=this['_getChangeFromId'](_0x4033e9);if(!_0x59dcfd)return null;const _0x4bfccc='add'==_0x59dcfd['type']?'insertion':'deletion',_0x5003eb=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4bfccc];return _0x59dcfd['data']['isSuggestion']&&_0x5003eb['push']('ck-suggestion-marker-'+_0x4bfccc+'-new'),this['activeChange']==_0x59dcfd&&_0x5003eb['push']('ck-suggestion-marker--active'),{'classes':_0x5003eb,'attributes':{'data-change-id':_0x4033e9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28c85c=>{_0x28c85c['on']('element:pre',(_0x508965,_0x13b76e,_0x310867)=>{const _0x4c5758=_0x13b76e['viewItem']['getChild'](0x0);if(!_0x4c5758||!_0x4c5758['is']('element','code'))return;if(!_0x310867['consumable']['consume'](_0x4c5758,{'attributes':['vid_start','vid_end']}))return;const _0xa2b731=_0x13b76e['modelRange']['start']['nodeAfter'];_0x310867['writer']['setAttribute']('vid_start',_0x4c5758['getAttribute']('vid_start'),_0xa2b731),_0x310867['writer']['setAttribute']('vid_end',_0x4c5758['getAttribute']('vid_end'),_0xa2b731);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x50ba4c=>{_0x50ba4c['on']('element',(_0x2c7b39,_0x508898,_0x277836)=>{if(!_0x277836['consumable']['consume'](_0x508898['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x508898['modelRange']['isCollapsed'])return;const _0x57d1b7=_0x508898['modelRange']['start']['nodeAfter'];_0x57d1b7['hasAttribute']('vid_start')||_0x57d1b7['hasAttribute']('vid')||(_0x277836['writer']['setAttribute']('vid_start',_0x508898['viewItem']['getAttribute']('vid_start'),_0x57d1b7),_0x277836['writer']['setAttribute']('vid_end',_0x508898['viewItem']['getAttribute']('vid_end'),_0x57d1b7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x296707=>_0x296707['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x629fa1,[,_0x100a1e])=>{['vid_start','vid_end','vid']['includes'](_0x100a1e)&&(_0x629fa1['return']=!0x0,_0x629fa1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x322405=>{_0x322405['on']('attribute:vid',(_0x11edae,_0x4fad26,_0x23cd7c)=>{if('\x20'!=_0x4fad26['item']['data']||_0x4fad26['item']['parent']['maxOffset']>0x1)return;if(!_0x23cd7c['consumable']['consume'](_0x4fad26['item'],_0x11edae['name']))return;const _0x1d9949=_0x23cd7c['writer'],_0x2f51f5=_0x23cd7c['mapper']['toViewRange'](_0x4fad26['range']);_0x1d9949['wrap'](_0x2f51f5,_0x1d9949['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x202aa6){const _0x10dc9e=_0x202aa6['plugins']['get']('RevisionViewer');return(_0xec0053,_0xab5a91,_0x114408)=>{const _0xe0c6ee=_0xab5a91['markerName']['split'](':')[0x1],_0x2ce395=_0x10dc9e['_getChangeFromId'](_0xe0c6ee);if(!_0x2ce395)return null;const _0x12f755='add'==_0x2ce395['type']?'split':'merge';if(!_0x114408['consumable']['test'](_0xab5a91['markerRange'],_0xec0053['name']))return;const _0x4daa90=_0xab5a91['markerRange']['getWalker'](),_0x3f5fcc=_0xab5a91['markerRange']['start'],_0x4b8467=_0x202aa6['model']['schema'];let _0x5db029=null,_0x36df61=null,_0x1ea9c5=!0x1,_0x380477=!0x1;for(const _0x374636 of _0x4daa90){const _0x458c34=_0x374636['item'];_0x1ea9c5=_0x1ea9c5||_0x4b8467['isContent'](_0x458c34);const _0x316a72=_0x114408['mapper']['toViewElement'](_0x458c34);if(_0x316a72&&_0x316a72['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x374636['type']&&(_0x4b8467['isBlock'](_0x458c34)&&!_0x4b8467['isLimit'](_0x458c34)&&(_0x458c34['nextSibling']||_0x3f5fcc['isAtEnd']?_0x5db029&&_0x5db029['parent']==_0x458c34||(_0x5db029=_0x458c34,_0x465099(_0x374636['previousPosition']),_0x380477=!0x0):_0x36df61=_0x36df61||_0x374636['previousPosition']));}function _0x465099(_0x212155){const _0x161471=_0x114408['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12f755}),_0x533725=_0x114408['mapper']['toViewPosition'](_0x212155);_0x2ce395['data']['isSuggestion']&&_0x114408['writer']['addClass']('ck-suggestion-marker-'+_0x12f755+'-new',_0x161471),_0x10dc9e['activeChange']==_0x2ce395&&_0x114408['writer']['addClass']('ck-suggestion-marker--active',_0x161471),_0x114408['writer']['insert'](_0x533725,_0x161471),_0x114408['mapper']['bindElementToMarker'](_0x161471,_0xab5a91['markerName']);}_0x1ea9c5||_0x380477||!_0x36df61||_0x465099(_0x36df61);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x585e3a,_0xae8552,_0x5d2976)=>{const _0x5af0e1=_0x5d2976['mapper']['markerNameToElements'](_0xae8552['markerName']);if(_0x5af0e1){for(const _0x22eee4 of _0x5af0e1)(_0x22eee4['hasClass']('ck-suggestion-marker-split')||_0x22eee4['hasClass']('ck-suggestion-marker-merge'))&&(_0x5d2976['mapper']['unbindElementFromMarkerName'](_0x22eee4,_0xae8552['markerName']),_0x5d2976['writer']['remove'](_0x22eee4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4a2225,_0x3dc4a9,_0x3545f8)=>{const _0xabe4d0=_0x3dc4a9['markerName']['split'](':')[0x1],_0x49f98f=this['_getChangeFromId'](_0xabe4d0);if(!_0x49f98f)return null;const _0x448651='add'==_0x49f98f['type']?'split':'merge';if(_0x3545f8['consumable']['test'](_0x3dc4a9['markerRange'],_0x4a2225['name']))for(const _0x79d67a of _0x3dc4a9['markerRange']['getItems']()){if(!_0x79d67a['is']('element','softBreak'))continue;const _0x2ed526=_0x3545f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x448651}),_0x2d295a=_0x3545f8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x79d67a));_0x49f98f['data']['isSuggestion']&&_0x3545f8['writer']['addClass']('ck-suggestion-marker-'+_0x448651+'-new',_0x2ed526),this['activeChange']==_0x49f98f&&_0x3545f8['writer']['addClass']('ck-suggestion-marker--active',_0x2ed526),_0x3545f8['writer']['insert'](_0x2d295a,_0x2ed526),_0x3545f8['mapper']['bindElementToMarker'](_0x2ed526,_0x3dc4a9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5be1d2=>{for(const _0x27c9c9 of this['editor']['model']['document']['getRootNames']()){const _0xee6268=this['editor']['model']['document']['getRoot'](_0x27c9c9),_0xcf6915=this['editor']['editing']['view']['document']['getRoot'](_0x27c9c9);if(_0xcf6915){const _0x5844b1=_0xee6268['getAttribute']('revisionHistoryAttachChange');if(_0x5be1d2['removeAttribute']('data-change-id',_0xcf6915),_0x5be1d2['removeClass']('ck-revision-history-root-add',_0xcf6915),_0x5be1d2['removeClass']('ck-revision-history-root-remove',_0xcf6915),_0x5be1d2['removeClass']('ck-revision-history-root--active',_0xcf6915),_0x5844b1){const _0x4b29ed=this['_getChangeFromId'](_0x5844b1);if(!_0x4b29ed)return null;_0x5be1d2['setAttribute']('data-change-id',_0x5844b1,_0xcf6915),_0x5be1d2['addClass']('ck-revision-history-root-'+_0x4b29ed['type'],_0xcf6915),this['activeChange']==_0x4b29ed&&_0x5be1d2['addClass']('ck-revision-history-root--active',_0xcf6915);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x9ea911=>'revision-comment:'+_0x9ea911,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x569c78=>'revision-suggestion:'+_0x569c78,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xf6ca2f=>({'name':'suggestion:'+_0xf6ca2f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5e3fcf=>{const _0x14cab6=_0x5e3fcf['markerName']['split'](':')[0x1];return'insertion'!=_0x14cab6&&'deletion'!=_0x14cab6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x14cab6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5c8106,_0x37dbab,_0x544459)=>{const _0x587788=_0x544459['mapper']['markerNameToElements'](_0x37dbab['markerName']);if(_0x587788){for(const _0x4c2b29 of _0x587788)_0x4c2b29['is']('uiElement')&&(_0x544459['mapper']['unbindElementFromMarkerName'](_0x4c2b29,_0x37dbab['markerName']),_0x544459['writer']['remove'](_0x4c2b29));}},{'priority':'high'});}['_getChangeFromId'](_0x3d9230){return this['_changeIdToChange']['get'](_0x3d9230);}['_getViewForChange'](_0x5de327){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5de327),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1d2896,_0x3f2c75,_0x370a91,_0x5dfee4)=>{_0x5dfee4&&this['_balloon']['remove'](_0x5dfee4),_0x370a91&&(this['_balloon']['add']({'view':_0x370a91,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f92c3=this['editor']['editing'],_0xd00a3=this['_getChangeFromId'](_0x370a91['changeId']);let _0x13e890;if(_0xd00a3['data']['isOnRoot']){const _0x4dd258=_0x2f92c3['view']['getDomRoot'](_0xd00a3['rootName']);_0x13e890=Array['from'](_0x4dd258['getClientRects']());}else{const _0x4dbaea=this['editor']['model']['markers']['get']('revision:'+_0x370a91['changeId']);_0x13e890=Array['from'](_0x2f92c3['mapper']['markerNameToElements'](_0x4dbaea['name']))['map'](_0xa5084e=>_0x2f92c3['view']['domConverter']['mapViewToDom'](_0xa5084e))['map'](_0x57a4ec=>Array['from'](_0x57a4ec['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x13e890[0x0];return _0x13e890['find'](_0xcd74ec=>_0xcd74ec['top']-0x3<=this['_activeViewTarget']['y']&&_0xcd74ec['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xcd74ec['left']-0x3<=this['_activeViewTarget']['x']&&_0xcd74ec['right']+0x3>=this['_activeViewTarget']['x'])||_0x13e890[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2ecd68,_0x481af2,_0x5cf5a7,_0x133071)=>{this['activeView']=_0x5cf5a7?this['_getViewForChange'](_0x5cf5a7):null,this['editor']['model']['change'](()=>{const _0x213378=this['editor']['editing'];_0x133071&&(_0x133071['data']['isOnRoot']?_0x213378['view']['change'](_0x1b5871=>{_0x1b5871['removeClass']('ck-revision-history-root--active',_0x213378['view']['document']['getRoot'](_0x133071['rootName']));}):_0x213378['reconvertMarker']('revision:'+_0x133071['id'])),_0x5cf5a7&&(_0x5cf5a7['data']['isOnRoot']?_0x213378['view']['change'](_0x167293=>{_0x167293['addClass']('ck-revision-history-root--active',_0x213378['view']['document']['getRoot'](_0x5cf5a7['rootName']));}):_0x213378['reconvertMarker']('revision:'+_0x5cf5a7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4aa157,_0x5572a5)=>{if(this['activeChange'])return;const _0x390b5e=this['_findChangeIdFromDomTarget'](_0x5572a5['target']),_0xee6cf7=this['_changeIdToChange']['get'](_0x390b5e);_0xee6cf7?(this['_activeViewTarget']={'x':_0x5572a5['domEvent']['x'],'y':_0x5572a5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xee6cf7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x52c14a,_0x1862fd)=>{const _0x113568=this['_findChangeIdFromDomTarget'](_0x1862fd['target']),_0x4977a3=this['_changeIdToChange']['get'](_0x113568);_0x4977a3?(this['_activeViewTarget']={'x':_0x1862fd['domEvent']['x'],'y':_0x1862fd['domEvent']['y']},_0x4977a3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4977a3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42adc8){do{const _0x46392f=_0x42adc8['getAttribute']('data-change-id');if(_0x46392f)return _0x46392f;_0x42adc8=_0x42adc8['parent'];}while(_0x42adc8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x617c63=>{for(const _0x3d464f of this['editor']['model']['markers'])_0x617c63['removeMarker'](_0x3d464f);});}}function tt(_0x5cd41f,_0x11f970){return(_0x46898d,_0x313c09,_0x474c99)=>{if(!_0x474c99['consumable']['test'](_0x313c09['markerRange'],_0x46898d['name']))return;const _0x3958e1=_0x313c09['markerRange']['getWalker'](),_0x5e090d=_0x313c09['markerRange']['start'],_0x54bcf2=_0x5cd41f['model']['schema'];let _0xfb21b9=null,_0x5481da=null,_0x367e88=!0x1,_0x58485e=!0x1;for(const _0x5878db of _0x3958e1){const _0x760d92=_0x5878db['item'];_0x367e88=_0x367e88||_0x54bcf2['isContent'](_0x760d92);const _0x541fed=_0x474c99['mapper']['toViewElement'](_0x760d92);if(_0x541fed&&_0x541fed['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5878db['type']&&(_0x54bcf2['isBlock'](_0x760d92)&&!_0x54bcf2['isLimit'](_0x760d92)&&(_0x760d92['nextSibling']||_0x5e090d['isAtEnd']?_0xfb21b9&&_0xfb21b9['parent']==_0x760d92||(_0xfb21b9=_0x760d92,_0x51fe04(_0x5878db['previousPosition']),_0x58485e=!0x0):_0x5481da=_0x5481da||_0x5878db['previousPosition']));}function _0x51fe04(_0x36e57d){const _0x19f4c9=_0x474c99['mapper']['toViewPosition'](_0x36e57d),_0x44e5bd=_0x474c99['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11f970});_0x474c99['writer']['insert'](_0x19f4c9,_0x44e5bd),_0x474c99['mapper']['bindElementToMarker'](_0x44e5bd,_0x313c09['markerName']);}_0x367e88||_0x58485e||!_0x5481da||_0x51fe04(_0x5481da);};}class yt extends _0x1c762c{constructor(_0x20160d){super(_0x20160d);const _0x5f3897=_0x20160d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5f3897,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f3897,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x10358a=this['editor'],_0x2f86ac=_0x10358a['plugins']['get'](d),_0x4d41de=_0x2f86ac['isReady']?_0x2f86ac['diff']['newRevisionId']:null;_0x10358a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4d41de);}['refresh'](){const {isReady:_0x2c1886,isEnabled:_0x29d28a,repository:_0x3626a2,diff:_0x5eab3e}=this['editor']['plugins']['get'](d),_0x2e9032=_0x5eab3e&&_0x3626a2['getLaterVisibleRevision'](_0x5eab3e['newRevisionId']);this['isEnabled']=_0x2c1886&&_0x29d28a&&Boolean(_0x2e9032);}}class bt extends _0x1c762c{['_step'];constructor(_0x403d5a,{direction:_0x27acd6}){super(_0x403d5a);const _0x2d56ea=_0x403d5a['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x27acd6?0x1:-0x1,this['listenTo'](_0x2d56ea,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d56ea,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d56ea,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xa60084=this['editor'],_0x33568f=_0xa60084['plugins']['get'](d),{isNavigationMode:_0xfbfa9a,currentChangeNumber:_0x103723}=_0x33568f;let _0x3aff1d;if(_0x33568f['activeChange']=_0xfbfa9a?_0x33568f['diff']['changes']['get'](_0x103723+this['_step']):_0x33568f['diff']['changes']['first'],_0x33568f['activeChange']['data']['isOnRoot'])_0x3aff1d=_0xa60084['editing']['view']['getDomRoot'](_0x33568f['activeChange']['rootName']);else{const _0x2303bf=_0xa60084['model']['markers']['get']('revision:'+_0x33568f['activeChange']['id']);_0x3aff1d=_0x45f010(_0xa60084['editing'],_0x2303bf);}_0x373097({'target':_0x3aff1d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x59cf6a,currentChangeNumber:_0x27ce5d,numberOfChanges:_0x17d5e1,isReady:_0x2a851f,isEnabled:_0x5387b7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5387b7&&_0x2a851f&&_0x17d5e1)&&(!_0x59cf6a||(0x1===this['_step']?_0x27ce5d<_0x17d5e1-0x1:_0x27ce5d>0x0));}}class di extends _0x52b1f5{constructor(_0x342eb1){super(_0x342eb1);const _0x3362ad=this['bindTemplate'],_0x345d05=new _0x36250d(_0x342eb1),_0x3e8207=new _0x36250d(_0x342eb1);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',(_0x2528a0,_0x2b445b)=>_0x2528a0&&_0x2b445b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51959d,_0x39eecf,_0x44cb3e,_0x285091)=>{if(!_0x51959d)return R(_0x342eb1,'Loading...');if(!_0x44cb3e)return R(_0x342eb1,'No\x20changes');const _0x5c34ff=R(_0x342eb1,'NUMBER_OF_CHANGES',_0x44cb3e);return _0x285091?R(_0x342eb1,'X_OF_Y_CHANGES',[_0x39eecf+0x1,_0x44cb3e]):_0x5c34ff;}),_0x345d05['set']({'label':R(_0x342eb1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3e8207['set']({'label':R(_0x342eb1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x345d05['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3e8207['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x345d05['on']('execute',()=>this['fire']('execute','backward')),_0x3e8207['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',_0x3362ad['if']('_isStatusLabelVisible','ck-hidden',_0x994c73=>!_0x994c73)]},'children':[{'text':_0x3362ad['to']('isNavigationMode',_0x7a0393=>_0x7a0393?R(_0x342eb1,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x342eb1,'Total')+':\x20')}]},{'text':_0x3362ad['to']('_statusText')}]},new _0x6e8557(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x345d05,_0x3e8207]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x4632d0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2375c2=this['editor']['editing']['view'];_0x2375c2['change'](_0x59e503=>{for(const _0x5b9d36 of _0x2375c2['document']['roots'])_0x59e503['addClass'](ce,_0x5b9d36);});}['hide'](){const _0x41505d=this['editor']['editing']['view'];_0x41505d['change'](_0x3998b0=>{for(const _0x39731f of _0x41505d['document']['roots'])_0x3998b0['removeClass'](ce,_0x39731f);});}}class m extends _0x4632d0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2bba96=this['editor'],_0x1bd402=_0x2bba96['plugins']['get'](d),_0x3e5062=_0x2bba96['plugins']['get'](ae);_0x2bba96['ui']['componentFactory']['add']('exitToEditing',_0x279a17=>{const _0x1f7a1=new _0x36250d(_0x279a17);return _0x1f7a1['set']({'label':R(_0x279a17,'Back\x20to\x20editing'),'icon':_0x535503['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f7a1,'execute',()=>{_0x2bba96['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f7a1;}),_0x2bba96['ui']['componentFactory']['add']('restoreRevision',_0x13c21b=>{const _0x5e1966=new _0x36250d(_0x13c21b);return _0x5e1966['set']({'label':R(_0x13c21b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5e1966['bind']('isEnabled')['to'](_0x2bba96['commands']['get']('restoreRevision')),this['listenTo'](_0x5e1966,'execute',()=>_0x2bba96['execute']('restoreRevision')),_0x5e1966;}),_0x2bba96['ui']['componentFactory']['add']('changesNavigation',_0x3b0a6f=>{const _0x1401de=new di(_0x3b0a6f),_0x532611=_0x2bba96['commands']['get']('showPreviousChange'),_0x1f87b6=_0x2bba96['commands']['get']('showNextChange');return _0x1401de['bind']('isBackwardNavigationEnabled')['to'](_0x532611,'isEnabled'),_0x1401de['bind']('isForwardNavigationEnabled')['to'](_0x1f87b6,'isEnabled'),_0x1401de['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1bd402),this['listenTo'](_0x1401de,'execute',(_0x5d58e6,_0x5b8021)=>{_0x2bba96['execute']('forward'===_0x5b8021?'showNextChange':'showPreviousChange');}),_0x1401de;}),_0x3e5062['show'](),_0x1bd402['on']('change:isReady',(_0x591db9,_0x30e5b9,_0x5dae62)=>{_0x5dae62?_0x3e5062['hide']():_0x3e5062['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x378277,_0xc5dc67){super(_0x378277,_0xc5dc67);const _0x3737e2=this['bindTemplate'];this['set']({'label':R(_0x378277,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x378277,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3737e2['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 _0x158f49=this['fieldView']['element'];this['_tooltipString']=_0x158f49['scrollWidth']>_0x158f49['clientWidth']&&_0x158f49['value']||'';}}class ti extends _0x52b1f5{constructor(_0x41036d,_0x11786a,_0x185399){super(_0x41036d);const _0x135f48=new _0xd7ed67();_0x135f48['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0xf1658c=['ck','ck-revision-history-sidebar__revision-author'];_0x185399&&_0xf1658c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3f76de=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x41036d,_0x185399?'Revision\x20creator':'Revision\x20author')},'children':[_0x135f48,_0x11786a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xf1658c},'children':_0x3f76de});}}function ni(_0x163aaf,_0x5c3b05){const _0x413089=_0x163aaf['bindTemplate'],_0x2738f0=_0x163aaf['locale'],_0x214e82=_0x119c84(_0x2738f0);_0x214e82['panelPosition']='sw';const _0x3b185e=function(_0x456ac1,_0x2ed563){const _0x385a45=function(_0x42a52d,_0x136173){const _0x71ed5c=_0x42a52d['locale'],_0x122f78={'Compare\x20against\x20selected':R(_0x71ed5c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x71ed5c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x71ed5c,'Restore\x20this\x20revision')};return _0x136173['map'](_0x46dcc3=>{const _0x492631=_0x122f78[_0x46dcc3['name']];return _0x492631&&_0x492631!==_0x46dcc3['name']&&(_0x46dcc3['name']=_0x492631),_0x46dcc3;});}(_0x456ac1,_0x2ed563),_0x11337e=new _0x55c105();for(const _0x420363 of _0x385a45){const _0x4f4d2e={'type':'button','model':new to({'label':_0x420363['name'],'class':_0x420363['class'],'withText':!0x0,'role':'menuitem','_action':_0x420363['action']})};_0x4f4d2e['model']['bind']('isEnabled')['to'](_0x456ac1,'isActionsDropdownOpen',_0x2cb735=>'function'!=typeof _0x420363['isEnabled']||(!_0x2cb735||_0x420363['isEnabled'](_0x456ac1))),_0x11337e['add'](_0x4f4d2e);}return _0x11337e;}(_0x163aaf,_0x5c3b05);return _0x163aaf['bind']('isActionsDropdownOpen')['to'](_0x214e82,'isOpen'),_0x214e82['buttonView']['set']({'label':R(_0x2738f0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x535503['threeVerticalDots']}),_0x214e82['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x413089['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x413089['to'](_0x56737f=>_0x56737f['stopPropagation']())}}),_0x214e82['on']('execute',_0x599ccf=>{_0x163aaf['isReady']&&'function'==typeof _0x599ccf['source']['_action']&&_0x599ccf['source']['_action'](_0x163aaf);}),_0x1fc102(_0x214e82,_0x3b185e,{'role':'menu'}),_0x214e82['listenTo'](_0x163aaf,'change:isActionsDropdownOpen',(_0x208ddb,_0x28b73e,_0x4534bc)=>{if(_0x4534bc)for(const _0x29e8e0 of _0x214e82['listView']['items']){const _0x2bfce6=_0x29e8e0['children']['first'],_0x2d46c4=_0x5c3b05['find'](_0xd7d056=>_0xd7d056['action']===_0x2bfce6['_action'])['isVisible'];_0x29e8e0['isVisible']=void 0x0===_0x2d46c4||_0x2d46c4(_0x163aaf);}}),_0x214e82;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x238ffe(_0x52b1f5){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3608d1,_0x234f8c,_0x1a4df4,_0x260516){super(_0x3608d1);const _0x43374f=this['bindTemplate'],_0x40f3ea=function(_0x27a5dd,_0x32234a){const _0x440362=Array['from'](_0x32234a['authors'])['filter'](_0x3a6faa=>_0x3a6faa!=_0x32234a['creator']);return _0x32234a['creator']&&_0x440362['unshift'](_0x32234a['creator']),_0x440362['map'](_0x55d6b6=>new ti(_0x27a5dd,_0x55d6b6,_0x55d6b6==_0x32234a['creator']));}(_0x3608d1,_0x234f8c);this['id']=_0x234f8c['id'],this['_revision']=_0x234f8c,this['_requireRevisionName']=_0x260516,this['bind']('name','createdAt')['to'](_0x234f8c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5f5081=>{return _0x1e472=_0x3608d1['uiLanguage'],(_0x35e449=_0x5f5081)['toLocaleDateString'](_0x1e472,{'month':'long','day':'numeric'})+',\x20'+_0x35e449['toLocaleTimeString'](_0x1e472,{'hour':'numeric','minute':'numeric'});var _0x1e472,_0x35e449;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3608d1,_0x520970),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x28da6f=>_0x28da6f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x23197c,_0x2e83e8)=>_0x23197c&&_0x2e83e8),this['revisionActionsView']=_0x1a4df4&&_0x1a4df4['length']?ni(this,_0x1a4df4):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x43374f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x43374f['if']('isEnabled','ck-disabled',_0x38b2e1=>!_0x38b2e1),_0x43374f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x43374f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x43374f['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':_0x43374f['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':_0x40f3ea}]},this['revisionActionsView']],'on':{'click':_0x43374f['to'](_0x3957f5=>{_0x3957f5['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c82fd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c82fd,'change',()=>{this['_requireRevisionName']&&!_0x5c82fd['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c82fd['value']}),_0x5c82fd['value']||(_0x5c82fd['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x523009,_0x527842){const _0x5a6a3f=_0x2999da['fromJSDate'](_0x523009)['setLocale'](_0x527842),_0x48f45c=_0x2999da['local'](),_0x16be15=_0x48f45c['minus']({'days':0x1})['startOf']('day');let _0x26ed2e,_0x4db417;return _0x5a6a3f['hasSame'](_0x48f45c,'day')?(_0x26ed2e=_0x5a6a3f['startOf']('day')['toJSDate'](),_0x4db417=_0x5a6a3f['toRelativeCalendar']()):_0x5a6a3f['hasSame'](_0x16be15,'day')?(_0x26ed2e=_0x16be15['toJSDate'](),_0x4db417=_0x5a6a3f['toRelativeCalendar']()):_0x5a6a3f['hasSame'](_0x48f45c,'week')?(_0x26ed2e=_0x5a6a3f['startOf']('week')['toJSDate'](),_0x4db417=_0x5a6a3f['weekdayLong']||''):_0x5a6a3f['hasSame'](_0x48f45c,'year')?(_0x26ed2e=_0x5a6a3f['startOf']('month')['toJSDate'](),_0x4db417=_0x5a6a3f['monthLong']||''):(_0x26ed2e=_0x5a6a3f['startOf']('year')['toJSDate'](),_0x4db417=String(_0x5a6a3f['year'])),{'startDate':_0x26ed2e,'localizedPeriodName':_0x4db417};}class vi extends _0x52b1f5{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2b181c,_0x1a0890,_0x48b028,_0x2ea8b8){super(_0x2b181c);const _0x115abc=mi(_0x1a0890,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a0890,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x48b028,this['_requireRevisionName']=_0x2ea8b8,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':_0x115abc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x51346a){const _0x1e2198=new ai(this['locale'],_0x51346a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1e2198);}['removeRevision'](_0x4d73aa){const _0x128af8=this['revisionViews']['find'](_0x1d44b2=>_0x1d44b2['id']===_0x4d73aa['id']);this['revisionViews']['remove'](_0x128af8);}}class as extends _0x52b1f5{constructor(_0x59a834){super(_0x59a834);const _0x38b8df=new _0xd7ed67();_0x38b8df['content']=_0x535503['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x38b8df,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x59a834,'Revision\x20history')]}]});}}class li extends _0x52b1f5{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x49501b,_0x4ff4ae,_0x186fcc,_0x165bae){super(_0x49501b);const _0x2107e9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4ff4ae,this['_revisionActions']=_0x186fcc,this['_requireRevisionName']=_0x165bae,this['on']('select',(_0x36e5f4,_0x3a8dae)=>{this['fire']('revisionSelected',_0x3a8dae);}),this['on']('setName',(_0x40434e,_0x1a1d35)=>{this['fire']('revisionSetName',_0x1a1d35);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x49501b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2107e9['if']('isEnabled','ck-disabled',_0x44dbdb=>!_0x44dbdb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2a9112 of this['_revisions'])this['_addRevision'](_0x2a9112);this['_revisions']['on']('add',(_0x3ffbb2,_0x44dd0e)=>{this['_addRevision'](_0x44dd0e);}),this['_revisions']['on']('remove',(_0x240aa6,_0x2050b9)=>{this['_removeRevision'](_0x2050b9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x167544=>_0x167544['revisionViews']['map'](_0x49c4e3=>_0x49c4e3))['flat']();}['selectRevision'](_0x4f6080){for(const _0x20ed36 of this['revisionViews'])_0x4f6080&&_0x4f6080['id']===_0x20ed36['id']?_0x20ed36['select']():_0x20ed36['deselect']();}['highlightRevisions'](_0x530fe3){for(const _0x19ed63 of this['revisionViews'])_0x530fe3['some'](({id:_0x1128f3})=>_0x1128f3===_0x19ed63['id'])?_0x19ed63['highlight']():_0x19ed63['unhighlight']();}['_addRevision'](_0x512e0f){const _0x12ce73=mi(_0x512e0f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4881c8=this['timePeriodViews']['get'](0x0);_0x4881c8&&_0x4881c8['startDate']['getTime']()===_0x12ce73['getTime']()||(_0x4881c8=new vi(this['locale'],_0x12ce73,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4881c8)),_0x4881c8['addRevision'](_0x512e0f);}['_removeRevision'](_0x4fd868){const _0x54ce37=mi(_0x4fd868['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x54ce37)['removeRevision'](_0x4fd868);}['_getTimePeriodViewByStartDate'](_0x3824bc){return this['timePeriodViews']['find'](_0x12dea5=>_0x12dea5['startDate']['getTime']()===_0x3824bc['getTime']());}}class g extends _0x4632d0{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2275a8,_0x1e1d8a){super(_0x1e1d8a),this['sourceElement']=_0x2275a8,this['model']['document']['createRoot']();const _0x585b93=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x585b93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xa6a62,_0x1181e3){const _0x43503e=new this(_0xa6a62,_0x1181e3);return await _0x43503e['initPlugins'](),await _0x43503e['ui']['init'](_0xa6a62),await _0x43503e['data']['init'](_0x43503e['config']['get']('initialData')||''),_0x43503e['fire']('ready'),_0x43503e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x27bfb5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11d80b){function _0x4211c1(_0x12e4dd){return _0x12e4dd['map'](_0x467dc3=>String['fromCharCode'](_0x467dc3))['join']('');}super(_0x11d80b),this['result']='end',_0x11d80b[_0x4211c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4211c1([0x76,0x69,0x65,0x77])][_0x4211c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4211c1([0x61,0x75,0x74,0x6f]),_0x11d80b[_0x4211c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4211c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4211c1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4211c1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4211c1([0x6f,0x6b])});}}class H extends _0x27bfb5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x26644a){if(super(_0x26644a),!this['editor']['config']['get']('revisionHistory'))throw new _0x53c33b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5f189a=>this['_showRevisionViewer']({..._0x5f189a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3869c4=>this['_closeRevisionViewer'](_0x3869c4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b801b=>this['_restoreRevision'](_0x2b801b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x351c5c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x351c5c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x263ac3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x263ac3);}['getRevision'](_0x6b2169){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6b2169);}['getRevisions'](_0x4b4e78){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b4e78||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x104fb8=this['editor'],_0x5dede2=_0x25769a(_0x104fb8,p),_0x3aa9b7=_0x104fb8['plugins']['get']('RevisionTracker'),_0x1bb9c6=_0x104fb8['plugins']['get']('Users')['users'];return _0x5dede2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5dede2['lazyRoots'],(_0x5dede2['plugins']['push'](k,d,m,class extends _0x27bfb5{static get['requires'](){return[d,'Users'];}['init'](){const _0x40a6a9=this['editor']['plugins']['get']('Users');for(const _0x324f77 of _0x1bb9c6)_0x324f77['isAnonymous']||_0x40a6a9['getUser'](_0x324f77['id'])||_0x40a6a9['addUser'](_0x324f77);const _0x3ca9d4=_0x3aa9b7['repository']['getRevisions']();let _0x4cbb94=null;const _0x189cd0=this['editor']['plugins']['get']('RevisionViewer');_0x189cd0['adapter']=_0x3aa9b7['adapter'],_0x189cd0['bind']('isEnabled')['to'](_0x3aa9b7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x104fb8,'isReadOnly',_0x5ba649=>!_0x5ba649);for(const _0x2b69f6 of _0x3ca9d4){const _0x56479a=null===_0x2b69f6['creator'];if(_0x56479a&&_0x2b69f6['toVersion']===_0x2b69f6['fromVersion'])continue;const _0x3787e7=_0x2b69f6['toJSON']();_0x189cd0['addRevisionData'](_0x3787e7,(_0x5d5c46,_0x3e58fa,_0x32fbd1)=>{if(_0x56479a){if(_0x4cbb94)_0x4cbb94['_update'](_0x5d5c46,_0x3e58fa);else{if(!_0x3e58fa){const _0x4b8f48=_0x32fbd1['toJSON']();_0x4b8f48['id']=_0x49b2b2(),_0x3aa9b7['saveRevision'](_0x4b8f48,_0x32fbd1['toVersion'])['then'](_0x39bae0=>{_0x4cbb94=_0x39bae0;});}}}else _0x2b69f6['_update'](_0x5d5c46,_0x3e58fa);});}}},g),_0x5dede2);}['_enhanceShowRevisionViewerCallback'](){const _0x2b8794=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5689a3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bb7e6=this['editor']['plugins']['get']('Autosave');await _0x4bb7e6['save']();}else await _0x5689a3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6a7eaa=this['editor']['plugins']['get']('Dialog');_0x6a7eaa['isOpen']&&_0x6a7eaa['hide']();}const _0x3d921f=this['_getRevisionViewerEditorConfig']();return _0x2b8794(_0x3d921f)['then'](_0x27c591=>{return(this['_viewerEditor']=_0x27c591,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x27c591;})['catch'](_0x131e49=>(console['error'](_0x131e49),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5896bd=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'](),_0x5896bd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x342515=this['editor']['plugins']['get']('Annotations');_0x342515['refreshVisibility'](),_0x342515['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5d040a){const _0x2b54d5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5a68e7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33bd77=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33bd77,_0x5d040a)['then'](_0x4b9126=>(_0x5a68e7['style']['display']='block',_0x2b54d5['style']['display']='none',_0x4b9126));}['_closeRevisionViewer'](_0x5552fc){const _0x55d5af=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x55d5af['style']['display']='',_0x5552fc['destroy']();}async['_restoreRevision'](_0x527666){const _0x49346b=this['editor'],_0x504897=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x674c8d=_0x49346b['plugins']['get']('RevisionTracker'),_0x113a94=_0x504897['repository']['getRevision'](_0x527666);let _0x25484d,_0x299753,_0x43c8a5;try{_0x25484d=await _0x504897['getRevisionData'](_0x113a94),_0x299753=await _0x504897['getRevisionRootsAttributes'](_0x113a94);}catch(_0x41d365){return void console['error'](_0x41d365);}_0x49346b['model']['change'](_0x441aa1=>{for(const _0x1d2e20 of Array['from'](_0x49346b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x441aa1['removeMarker'](_0x1d2e20);}),_0x504897['isReady']=!0x1,_0x49346b['model']['enqueueChange'](_0x35a0c9=>{_0x35a0c9['setSelection'](null),_0x35a0c9['removeSelectionAttribute'](_0x49346b['model']['document']['selection']['getAttributeKeys']());const _0x1b4784=Object['keys'](_0x25484d);for(const _0x1f55c2 of _0x49346b['model']['document']['roots'])'$graveyard'!=_0x1f55c2['rootName']&&_0x1f55c2['isAttached']()&&!_0x1b4784['includes'](_0x1f55c2['rootName'])&&_0x35a0c9['detachRoot'](_0x1f55c2);for(const _0x1f00c2 of _0x1b4784){let _0x160e6c=_0x49346b['model']['document']['getRoot'](_0x1f00c2);_0x160e6c&&_0x160e6c['isAttached']()||(_0x160e6c=_0x35a0c9['addRoot'](_0x1f00c2));const _0x2f7f39=_0x299753[_0x1f00c2],_0x2c3ed3=Object['keys'](_0x2f7f39),_0x2166bb=_0x25484d[_0x1f00c2];for(const _0x8f0a69 of _0x160e6c['getAttributeKeys']())_0x2c3ed3['includes'](_0x8f0a69)||_0x35a0c9['removeAttribute'](_0x8f0a69,_0x160e6c);for(const _0x1d9eae of _0x2c3ed3)_0x35a0c9['setAttribute'](_0x1d9eae,_0x299753[_0x1f00c2][_0x1d9eae],_0x160e6c);_0x35a0c9['remove'](_0x35a0c9['createRangeIn'](_0x160e6c)),_0x35a0c9['insert'](_0x49346b['data']['parse'](_0x2166bb,_0x160e6c),_0x160e6c,0x0);}});const _0xc0b4a6=R(_0x49346b['locale'],'Restored');if(_0x113a94['name'])_0x43c8a5=-0x1==_0x113a94['name']['indexOf'](_0xc0b4a6)?_0xc0b4a6+':\x20'+_0x113a94['name']:_0x113a94['name'];else _0x43c8a5=_0xc0b4a6+':\x20'+(_0x113a94['createdAt']['toLocaleDateString'](_0x49346b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a94['createdAt']['toLocaleTimeString'](_0x49346b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x674c8d['saveRevision']({'name':_0x43c8a5}),_0x504897['isReady']=!0x0,_0x49346b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x40ce3a){super(_0x40ce3a),this['_revisionViewer']=_0x40ce3a['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5ed47e=this['_revisionsRepository']['_revisions'],_0x15eeed=this['_createRevisionActions'](),_0x275b83=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5ed47e,_0x15eeed,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',(_0x5a6541,_0x56f8c6)=>{_0x56f8c6['revisionViews']['on']('add',(_0x434774,_0xdd4d58)=>{_0xdd4d58['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)),_0x275b83['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x14d5cb=this['_revisionsRepository']['getRevision'](0x0);if(_0x14d5cb){const _0x30ed5b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14d5cb['id']);this['_revisionViewer']['compare'](_0x14d5cb,_0x30ed5b);}}['_handleRevisionSelected'](_0x1b6716,_0x2980ce){const _0x5a1790=this['_revisionsRepository']['getRevision'](_0x2980ce['id']),_0x22a8bf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5a1790['id']);this['_revisionViewer']['compare'](_0x5a1790,_0x22a8bf);}['_handleRevisionSetName'](_0x4c30f3,_0x5c7122){this['_revisionsRepository']['getRevision'](_0x5c7122['id'])['setName'](_0x5c7122['name']);}['_handleDiffChange'](_0x15541f,_0x19e313,_0x485fea){const _0x18c34f=this['_revisionsRepository']['getRevisionsInDiff'](_0x485fea);_0x18c34f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x18c34f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x18c34f[0x0]));}['_createRevisionActions'](){const _0x8bda48=this['editor'],_0x3da43f=g['availableRevisionActions'],_0x5d7d55=_0x8bda48['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5d7d55['length'])return _0x5d7d55['map'](_0x3c5621=>{const _0x533819='string'==typeof _0x3c5621?Object['assign']({},_0x3da43f[_0x3c5621]):_0x3c5621;return _0x533819['action']=_0x533819['action']['bind'](this,_0x8bda48),_0x533819['isVisible']&&(_0x533819['isVisible']=_0x533819['isVisible']['bind'](this,_0x8bda48)),_0x533819;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4cfa0c},_0x23eb0a)=>{const _0x2bc989=_0x4cfa0c['get'](d),_0x5395aa=_0x2bc989['repository'];let _0x2b085a=_0x2bc989['diff']['newRevisionId'],_0x29f2ba=_0x23eb0a['id'];_0x5395aa['getIndex'](_0x2b085a)>_0x5395aa['getIndex'](_0x29f2ba)&&([_0x2b085a,_0x29f2ba]=[_0x29f2ba,_0x2b085a]),_0x2bc989['compare'](_0x2b085a,_0x29f2ba);},'isVisible':({plugins:_0x495f23},_0x991695)=>{const _0x43e7eb=_0x495f23['get'](d);return!(_0x43e7eb['repository']['getRevisionsInDiff'](_0x43e7eb['diff'])['length']>0x2)&&!_0x991695['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46a103,{id:_0x4cfffb})=>{_0x46a103['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4cfffb);},'isVisible':({plugins:_0xf0c778},_0x8144c0)=>!!_0xf0c778['get'](d)['repository']['getLaterVisibleRevision'](_0x8144c0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x38197b},{id:_0xf9b44,revisionNameView:_0x2ddb1a})=>{const _0x432945=_0x38197b['get'](d),_0x534f49=_0x432945['repository']['getEarlierVisibleRevision'](_0xf9b44);_0x432945['compare'](_0xf9b44,_0x534f49),_0x2ddb1a['focus'](),_0x2ddb1a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x435716,_0xeac4bc){super(_0x435716),this['_view']=_0xeac4bc,this['_toolbarConfig']=ht(_0x435716['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x27b7f9){const _0x44ff3d=this['editor'],_0x3b01f9=this['view'],_0x5c16c7=_0x44ff3d['editing']['view'],_0x52f1d2=_0x3b01f9['editable'],_0x1206f1=_0x5c16c7['document']['getRoot']();_0x52f1d2['name']=_0x1206f1['rootName'],_0x3b01f9['render']();const _0x6c4962=_0x52f1d2['element'];this['setEditableElement'](_0x52f1d2['name'],_0x6c4962),_0x3b01f9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5c16c7['attachDomRoot'](_0x6c4962),this['_elementReplacer']['replace'](_0x27b7f9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x218ac8=this['view'],_0x56d569=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x56d569['detachDomRoot'](_0x218ac8['editable']['name']),_0x218ac8['destroy']();}['_initToolbar'](){const _0x4a18ed=this['view'];_0x4a18ed['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4a18ed['stickyPanel']['limiterElement']=_0x4a18ed['element'],_0x4a18ed['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d377b})=>_0x2d377b),_0x4a18ed['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4a18ed['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x22d7ad,_0x3390ed,_0x2bb012={}){super(_0x22d7ad),this['stickyPanel']=new lt(_0x22d7ad),this['toolbar']=new nt(_0x22d7ad,{'shouldGroupWhenFull':_0x2bb012['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x22d7ad,_0x3390ed);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2be806,_0x3e89b4){super(_0x3e89b4),this['sourceElement']=_0x2be806,this['model']['document']['createRoot']();const _0x229b85=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x229b85);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xb0c2e0,_0x452323){const _0x5c0072=new this(_0xb0c2e0,_0x452323);return await _0x5c0072['initPlugins'](),await _0x5c0072['ui']['init'](_0xb0c2e0),await _0x5c0072['data']['init'](_0x5c0072['config']['get']('initialData')||''),_0x5c0072['fire']('ready'),_0x5c0072;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x4632d0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x374947){function _0x2e7075(_0x54955f){return _0x54955f['map'](_0x42d16c=>String['fromCharCode'](_0x42d16c))['join']('');}super(_0x374947),this['result']='end',_0x374947[_0x2e7075([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e7075([0x76,0x69,0x65,0x77])][_0x2e7075([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e7075([0x61,0x75,0x74,0x6f]),_0x374947[_0x2e7075([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e7075([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e7075([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e7075([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e7075([0x6f,0x6b])});}}class H extends _0x4632d0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x11e209){if(super(_0x11e209),!this['editor']['config']['get']('revisionHistory'))throw new _0x122181('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5dbf26=>this['_showRevisionViewer']({..._0x5dbf26,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x10cc6e=>this['_closeRevisionViewer'](_0x10cc6e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x291de4=>this['_restoreRevision'](_0x291de4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x28f41f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x28f41f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x535e56){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x535e56);}['getRevision'](_0x5d8d96){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d8d96);}['getRevisions'](_0x7417b7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x7417b7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2a681a=this['editor'],_0x5a5698=_0x41ed26(_0x2a681a,p),_0x31a8be=_0x2a681a['plugins']['get']('RevisionTracker'),_0x492955=_0x2a681a['plugins']['get']('Users')['users'];return _0x5a5698['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a5698['lazyRoots'],(_0x5a5698['plugins']['push'](k,d,m,class extends _0x4632d0{static get['requires'](){return[d,'Users'];}['init'](){const _0xefc969=this['editor']['plugins']['get']('Users');for(const _0x4f0544 of _0x492955)_0x4f0544['isAnonymous']||_0xefc969['getUser'](_0x4f0544['id'])||_0xefc969['addUser'](_0x4f0544);const _0x463c33=_0x31a8be['repository']['getRevisions']();let _0x403372=null;const _0x26fdfd=this['editor']['plugins']['get']('RevisionViewer');_0x26fdfd['adapter']=_0x31a8be['adapter'],_0x26fdfd['bind']('isEnabled')['to'](_0x31a8be),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2a681a,'isReadOnly',_0xc1b614=>!_0xc1b614);for(const _0x2a637c of _0x463c33){const _0x2cabcb=null===_0x2a637c['creator'];if(_0x2cabcb&&_0x2a637c['toVersion']===_0x2a637c['fromVersion'])continue;const _0x93587c=_0x2a637c['toJSON']();_0x26fdfd['addRevisionData'](_0x93587c,(_0x39a1b8,_0x575aed,_0x31edfe)=>{if(_0x2cabcb){if(_0x403372)_0x403372['_update'](_0x39a1b8,_0x575aed);else{if(!_0x575aed){const _0x1ffa9b=_0x31edfe['toJSON']();_0x1ffa9b['id']=_0x152f7f(),_0x31a8be['saveRevision'](_0x1ffa9b,_0x31edfe['toVersion'])['then'](_0x5859de=>{_0x403372=_0x5859de;});}}}else _0x2a637c['_update'](_0x39a1b8,_0x575aed);});}}},g),_0x5a5698);}['_enhanceShowRevisionViewerCallback'](){const _0x4b4a9c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xa723d5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x762f59=this['editor']['plugins']['get']('Autosave');await _0x762f59['save']();}else await _0xa723d5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x192a34=this['editor']['plugins']['get']('Dialog');_0x192a34['isOpen']&&_0x192a34['hide']();}const _0x1d0d37=this['_getRevisionViewerEditorConfig']();return _0x4b4a9c(_0x1d0d37)['then'](_0x37c0b3=>{return(this['_viewerEditor']=_0x37c0b3,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x37c0b3;})['catch'](_0x15b8b3=>(console['error'](_0x15b8b3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x37658d=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'](),_0x37658d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31c011=this['editor']['plugins']['get']('Annotations');_0x31c011['refreshVisibility'](),_0x31c011['refreshPositioning']();}})));}['_showRevisionViewer'](_0x46a008){const _0x414a13=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x199894=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3d7fa3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3d7fa3,_0x46a008)['then'](_0x20ebab=>(_0x199894['style']['display']='block',_0x414a13['style']['display']='none',_0x20ebab));}['_closeRevisionViewer'](_0x4cb45f){const _0x36ea2b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x36ea2b['style']['display']='',_0x4cb45f['destroy']();}async['_restoreRevision'](_0x5c8bd5){const _0x1ebd1b=this['editor'],_0x5e0e39=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x513fe4=_0x1ebd1b['plugins']['get']('RevisionTracker'),_0x367c58=_0x5e0e39['repository']['getRevision'](_0x5c8bd5);let _0x135586,_0x1574ed,_0x4734b4;try{_0x135586=await _0x5e0e39['getRevisionData'](_0x367c58),_0x1574ed=await _0x5e0e39['getRevisionRootsAttributes'](_0x367c58);}catch(_0x149638){return void console['error'](_0x149638);}_0x1ebd1b['model']['change'](_0x428470=>{for(const _0x175b63 of Array['from'](_0x1ebd1b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x428470['removeMarker'](_0x175b63);}),_0x5e0e39['isReady']=!0x1,_0x1ebd1b['model']['enqueueChange'](_0x515dfc=>{_0x515dfc['setSelection'](null),_0x515dfc['removeSelectionAttribute'](_0x1ebd1b['model']['document']['selection']['getAttributeKeys']());const _0x38f6b5=Object['keys'](_0x135586);for(const _0x28baa9 of _0x1ebd1b['model']['document']['roots'])'$graveyard'!=_0x28baa9['rootName']&&_0x28baa9['isAttached']()&&!_0x38f6b5['includes'](_0x28baa9['rootName'])&&_0x515dfc['detachRoot'](_0x28baa9);for(const _0x32f9d2 of _0x38f6b5){let _0x21d930=_0x1ebd1b['model']['document']['getRoot'](_0x32f9d2);_0x21d930&&_0x21d930['isAttached']()||(_0x21d930=_0x515dfc['addRoot'](_0x32f9d2));const _0x65b2c8=_0x1574ed[_0x32f9d2],_0x4b07e7=Object['keys'](_0x65b2c8),_0x51e2ad=_0x135586[_0x32f9d2];for(const _0x119af4 of _0x21d930['getAttributeKeys']())_0x4b07e7['includes'](_0x119af4)||_0x515dfc['removeAttribute'](_0x119af4,_0x21d930);for(const _0x141054 of _0x4b07e7)_0x515dfc['setAttribute'](_0x141054,_0x1574ed[_0x32f9d2][_0x141054],_0x21d930);_0x515dfc['remove'](_0x515dfc['createRangeIn'](_0x21d930)),_0x515dfc['insert'](_0x1ebd1b['data']['parse'](_0x51e2ad,_0x21d930),_0x21d930,0x0);}});const _0x4f39ab=R(_0x1ebd1b['locale'],'Restored');if(_0x367c58['name'])_0x4734b4=-0x1==_0x367c58['name']['indexOf'](_0x4f39ab)?_0x4f39ab+':\x20'+_0x367c58['name']:_0x367c58['name'];else _0x4734b4=_0x4f39ab+':\x20'+(_0x367c58['createdAt']['toLocaleDateString'](_0x1ebd1b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x367c58['createdAt']['toLocaleTimeString'](_0x1ebd1b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x513fe4['saveRevision']({'name':_0x4734b4}),_0x5e0e39['isReady']=!0x0,_0x1ebd1b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|